ace-component-lib 0.0.74 → 0.0.76
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ace-component-lib.umd.js +4 -4
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(te,U){typeof exports=="object"&&typeof module<"u"?module.exports=U(require("pinia"),require("@wangeditor/editor"),require("vue"),require("element-plus"),require("vue-draggable-plus"),require("dayjs"),require("echarts/core"),require("@wangeditor/editor-for-vue"),require("jsoneditor")):typeof define=="function"&&define.amd?define(["pinia","@wangeditor/editor","vue","element-plus","vue-draggable-plus","dayjs","echarts/core","@wangeditor/editor-for-vue","jsoneditor"],U):(te=typeof globalThis<"u"?globalThis:te||self,te["ace-component-lib"]=U(te.pinia,te.editor,te.Vue,te.elementPlus,te.vueDraggablePlus,te.dayjs,te.core,te.editorForVue,te.JsonEditor))})(this,function(pinia,editor,vue,elementPlus,vueDraggablePlus,dayjs,core,editorForVue,JsonEditor){"use strict";const version="0.0.74",aceLib="";let e$3=class{constructor(U){this.standards={strict:"strict",loose:"loose",html5:"html5"},this.previewBody=null,this.close=null,this.previewBodyUtilPrintBtn=null,this.selectArray=[],this.counter=0,this.settings={standard:this.standards.html5},Object.assign(this.settings,U),this.init()}init(){this.counter++,this.settings.id=`printArea_${this.counter}`;let U="";this.settings.url&&!this.settings.asyncUrl&&(U=this.settings.url);let G=this;if(this.settings.asyncUrl)return void G.settings.asyncUrl(function(ne){let re=G.getPrintWindow(ne);G.settings.preview?G.previewIfrmaeLoad():G.print(re)},G.settings.vue);let ee=this.getPrintWindow(U);this.settings.url||this.write(ee.doc),this.settings.preview?this.previewIfrmaeLoad():this.print(ee)}addEvent(U,G,ee){U.addEventListener?U.addEventListener(G,ee,!1):U.attachEvent?U.attachEvent("on"+G,ee):U["on"+G]=ee}previewIfrmaeLoad(){let U=document.getElementById("vue-pirnt-nb-previewBox");if(U){let G=this,ee=U.querySelector("iframe");this.settings.previewBeforeOpenCallback(),this.addEvent(ee,"load",function(){G.previewBoxShow(),G.removeCanvasImg(),G.settings.previewOpenCallback()}),this.addEvent(U.querySelector(".previewBodyUtilPrintBtn"),"click",function(){G.settings.beforeOpenCallback(),G.settings.openCallback(),ee.contentWindow.print(),G.settings.closeCallback()})}}removeCanvasImg(){let U=this;try{if(U.elsdom){let G=U.elsdom.querySelectorAll(".canvasImg");for(let ee=0;ee<G.length;ee++)G[ee].remove()}}catch(G){console.log(G)}}print(U){var G=this;let ee=document.getElementById(this.settings.id)||U.f,ne=document.getElementById(this.settings.id).contentWindow||U.f.contentWindow;G.settings.beforeOpenCallback(),G.addEvent(ee,"load",function(){ne.focus(),G.settings.openCallback(),ne.print(),ee.remove(),G.settings.closeCallback(),G.removeCanvasImg()})}write(U){U.open(),U.write(`${this.docType()}<html>${this.getHead()}${this.getBody()}</html>`),U.close()}docType(){return this.settings.standard===this.standards.html5?"<!DOCTYPE html>":`<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01${this.settings.standard===this.standards.loose?" Transitional":""}//EN" "http://www.w3.org/TR/html4/${this.settings.standard===this.standards.loose?"loose":"strict"}.dtd">`}getHead(){let U="",G="",ee="";this.settings.extraHead&&this.settings.extraHead.replace(/([^,]+)/g,re=>{U+=re}),[].forEach.call(document.querySelectorAll("link"),function(re){re.href.indexOf(".css")>=0&&(G+=`<link type="text/css" rel="stylesheet" href="${re.href}" >`)});let ne=document.styleSheets;if(ne&&ne.length>0)for(let re=0;re<ne.length;re++)try{if(ne[re].cssRules||ne[re].rules){let oe=ne[re].cssRules||ne[re].rules;for(let ie=0;ie<oe.length;ie++)ee+=oe[ie].cssText}}catch(oe){console.log(ne[re].href+oe)}return this.settings.extraCss&&this.settings.extraCss.replace(/([^,\s]+)/g,re=>{G+=`<link type="text/css" rel="stylesheet" href="${re}">`}),`<head><title>${this.settings.popTitle}</title>${U}${G}<style type="text/css">${ee}</style></head>`}getBody(){let U=this.settings.ids;return U=U.replace(new RegExp("#","g"),""),this.elsdom=this.beforeHanler(document.getElementById(U)),"<body>"+this.getFormData(this.elsdom).outerHTML+"</body>"}beforeHanler(U){let G=U.querySelectorAll("canvas");for(let ee=0;ee<G.length;ee++)if(!G[ee].style.display){let ne=G[ee].parentNode,re=G[ee].toDataURL("image/png"),oe=new Image;oe.className="canvasImg",oe.style.display="none",oe.src=re,ne.appendChild(oe)}return U}getFormData(U){let G=U.cloneNode(!0),ee=G.querySelectorAll("input,select,textarea"),ne=G.querySelectorAll(".canvasImg,canvas"),re=-1;for(let oe=0;oe<ne.length;oe++){let ie=ne[oe].parentNode,le=ne[oe];le.tagName.toLowerCase()==="canvas"?ie.removeChild(le):le.style.display="block"}for(let oe=0;oe<ee.length;oe++){let ie=ee[oe],le=ie.getAttribute("type"),ae=ee[oe];if(le||(le=ie.tagName==="SELECT"?"select":ie.tagName==="TEXTAREA"?"textarea":""),ie.tagName==="INPUT")le==="radio"||le==="checkbox"?ie.checked&&ae.setAttribute("checked",ie.checked):(ae.value=ie.value,ae.setAttribute("value",ie.value));else if(le==="select"){re++;for(let se=0;se<U.querySelectorAll("select").length;se++){let ue=U.querySelectorAll("select")[se];if(!ue.getAttribute("newbs")&&ue.setAttribute("newbs",se),ue.getAttribute("newbs")==re){let ce=U.querySelectorAll("select")[re].selectedIndex;ie.options[ce].setAttribute("selected",!0)}}}else ae.innerHTML=ie.value,ae.setAttribute("html",ie.value)}return G}getPrintWindow(U){var G=this.Iframe(U);return{f:G,win:G.contentWindow||G,doc:G.doc}}previewBoxShow(){let U=document.getElementById("vue-pirnt-nb-previewBox");U&&(document.querySelector("html").setAttribute("style","overflow: hidden"),U.style.display="block")}previewBoxHide(){let U=document.getElementById("vue-pirnt-nb-previewBox");U&&(document.querySelector("html").setAttribute("style","overflow: visible;"),U.querySelector("iframe")&&U.querySelector("iframe").remove(),U.style.display="none")}previewBox(){let U=document.getElementById("vue-pirnt-nb-previewBox"),G="previewBody";if(U)return U.querySelector("iframe")&&U.querySelector("iframe").remove(),{close:U.querySelector(".previewClose"),previewBody:U.querySelector(".previewBody")};let ee=document.createElement("div");ee.setAttribute("id","vue-pirnt-nb-previewBox"),ee.setAttribute("style","position: fixed;top: 0px;left: 0px;width: 100%;height: 100%;background: white;display:none"),ee.style.zIndex=this.settings.zIndex;let ne=document.createElement("div");ne.setAttribute("class","previewHeader"),ne.setAttribute("style","padding: 5px 20px;"),ne.innerHTML=this.settings.previewTitle,ee.appendChild(ne),this.close=document.createElement("div");let re=this.close;re.setAttribute("class","previewClose"),re.setAttribute("style","position: absolute;top: 5px;right: 20px;width: 25px;height: 20px;cursor: pointer;");let oe=document.createElement("div"),ie=document.createElement("div");oe.setAttribute("class","closeBefore"),oe.setAttribute("style","position: absolute;width: 3px;height: 100%;background: #040404;transform: rotate(45deg); top: 0px;left: 50%;"),ie.setAttribute("class","closeAfter"),ie.setAttribute("style","position: absolute;width: 3px;height: 100%;background: #040404;transform: rotate(-45deg); top: 0px;left: 50%;"),re.appendChild(oe),re.appendChild(ie),ne.appendChild(re),this.previewBody=document.createElement("div");let le=this.previewBody;le.setAttribute("class",G),le.setAttribute("style","display: flex;flex-direction: column; height: 100%;"),ee.appendChild(le);let ae=document.createElement("div");ae.setAttribute("class","previewBodyUtil"),ae.setAttribute("style","height: 32px;background: #474747;position: relative;"),le.appendChild(ae),this.previewBodyUtilPrintBtn=document.createElement("div");let se=this.previewBodyUtilPrintBtn;return se.setAttribute("class","previewBodyUtilPrintBtn"),se.innerHTML=this.settings.previewPrintBtnLabel,se.setAttribute("style","position: absolute;padding: 2px 10px;margin-top: 3px;left: 24px;font-size: 14px;color: white;cursor: pointer;background-color: rgba(0,0,0,.12);background-image: linear-gradient(hsla(0,0%,100%,.05),hsla(0,0%,100%,0));background-clip: padding-box;border: 1px solid rgba(0,0,0,.35);border-color: rgba(0,0,0,.32) rgba(0,0,0,.38) rgba(0,0,0,.42);box-shadow: inset 0 1px 0 hsla(0,0%,100%,.05), inset 0 0 1px hsla(0,0%,100%,.15), 0 1px 0 hsla(0,0%,100%,.05);"),ae.appendChild(se),document.body.appendChild(ee),{close:this.close,previewBody:this.previewBody}}iframeBox(U,G){let ee=document.createElement("iframe");return ee.style.border="0px",ee.style.position="absolute",ee.style.width="0px",ee.style.height="0px",ee.style.right="0px",ee.style.top="0px",ee.setAttribute("id",U),ee.setAttribute("src",G),ee}Iframe(U){let G=this.settings.id;U=U||new Date().getTime();let ee=this,ne=this.iframeBox(G,U);try{if(this.settings.preview){ne.setAttribute("style","border: 0px;flex: 1;");let re=this.previewBox(),oe=re.previewBody,ie=re.close;oe.appendChild(ne),this.addEvent(ie,"click",function(){ee.previewBoxHide()})}else document.body.appendChild(ne);ne.doc=null,ne.doc=ne.contentDocument?ne.contentDocument:ne.contentWindow?ne.contentWindow.document:ne.document}catch(re){throw new Error(re+". iframes may not be supported in this browser.")}if(ne.doc==null)throw new Error("Cannot find document.");return ne}};var t$2={directiveName:"print",mounted(te,U,G){let ee=U.instance,ne="";var re,oe,ie;oe="click",ie=()=>{if(typeof U.value=="string")ne=U.value;else{if(typeof U.value!="object"||!U.value.id)return void window.print();{ne=U.value.id;let ae=ne.replace(new RegExp("#","g"),"");document.getElementById(ae)||(console.log("id in Error"),ne="")}}le()},(re=te).addEventListener?re.addEventListener(oe,ie,!1):re.attachEvent?re.attachEvent("on"+oe,ie):re["on"+oe]=ie;const le=()=>{new e$3({ids:ne,vue:ee,url:U.value.url,standard:"",extraHead:U.value.extraHead,extraCss:U.value.extraCss,zIndex:U.value.zIndex||20002,previewTitle:U.value.previewTitle||"打印预览",previewPrintBtnLabel:U.value.previewPrintBtnLabel||"打印",popTitle:U.value.popTitle,preview:U.value.preview||!1,asyncUrl:U.value.asyncUrl,previewBeforeOpenCallback(){U.value.previewBeforeOpenCallback&&U.value.previewBeforeOpenCallback(ee)},previewOpenCallback(){U.value.previewOpenCallback&&U.value.previewOpenCallback(ee)},openCallback(){U.value.openCallback&&U.value.openCallback(ee)},closeCallback(){U.value.closeCallback&&U.value.closeCallback(ee)},beforeOpenCallback(){U.value.beforeOpenCallback&&U.value.beforeOpenCallback(ee)}})}},install:function(te){te.directive("print",t$2)}},FieldRenderType=(te=>(te.String="string",te.Integer="interget",te))(FieldRenderType||{}),DynamicTableType=(te=>(te.Default="default",te.DataForm="dataForm",te))(DynamicTableType||{}),ItableType=(te=>(te.Link="link",te))(ItableType||{}),FieldType=(te=>(te.Text="text",te.Select="select",te.Date="date",te.DateTime="datetime",te.CheckBox="checkbox",te.Switch="switch",te.Radio="radio",te.Textarea="textarea",te.Number="number",te.NumberRange="numberRange",te.Cascader="cascader",te.Daterange="daterange",te.Monthrange="monthrange",te.File="file",te.TreeSelect="treeSelect",te.Year="year",te.Month="month",te.Hr="hr",te.Slot="slot",te.Editor="editor",te.Password="password",te.Json="json",te.Markdown="markdown",te.Rate="rate",te.TimeRange="timerange",te.Time="time",te.DateTimeRange="datetimerange",te))(FieldType||{});let nanoid=(te=21)=>crypto.getRandomValues(new Uint8Array(te)).reduce((U,G)=>(G&=63,G<36?U+=G.toString(36):G<62?U+=(G-26).toString(36).toUpperCase():G>62?U+="-":U+="_",U),"");const screenDesignMainStore=pinia.defineStore({id:"design",state:()=>({theme:localStorage.getItem("design-theme")||"",stageWidth:1920,stageHeight:1080,scale:.2,targetsWidget:[],sketchRuleLine:{h:[],v:[]},widgetConfg:{config:{backgroundColor:"transparent",backgroundImage:""},list:[]},widgetHoverIds:[],pasteWidget:[],createLoading:!1,showRightPannel:!1,tempChartData:{},chartData:{},countMap:{}}),getters:{getScale(){return this.scale},getStage(){return{stageWidth:this.stageWidth,stageHeight:this.stageHeight}},getSketchRuleLine(){return this.sketchRuleLine},getTargetWidget(){return this.targetsWidget},getWidgetConfig(){return this.widgetConfg.config},getWidgetList(){return this.widgetConfg.list},getWidgetHoverIds(){return this.widgetHoverIds},getPasteWidget(){return this.pasteWidget},getCreateLoading(){return this.createLoading},getRightPannel(){return this.showRightPannel},getTheme(){return this.theme},getChartData(){return this.chartData},getCountMap(){return this.countMap}},actions:{setSacle(te){this.scale=te/100},setSketchRuleLine(te,U){this.sketchRuleLine.h=te,this.sketchRuleLine.v=U},clearSketchRuleLine(){this.sketchRuleLine={h:[],v:[]}},setTargetWidget(te){this.targetsWidget=te},setWidgetList(te){this.widgetConfg.list=te},setWidgetHoverIds(te){this.widgetHoverIds=te},delWidgetItem(te){this.setWidgetList(this.getWidgetList.filter(U=>!te.includes(U.id))),this.setTargetWidget(this.getTargetWidget.filter(U=>!te.includes(U.id)))},copyWidgetItem(te){this.pasteWidget=[],te.forEach(U=>{const G=this.getWidgetList.find(ee=>ee.id==U);G&&this.pasteWidget.push(G)})},pasteWidgetItem(){this.pasteWidget.forEach(G=>{const ee=JSON.parse(JSON.stringify(G));let ne=ee.x,re=ee.y;ee.x+40>this.stageWidth-ee.w?ne=this.stageWidth-ee.w-40:ne+=40,ee.y+40>this.stageHeight-ee.h?re=this.stageHeight-ee.h-40:re+=40,this.widgetConfg.list.unshift({...ee,id:nanoid(),x:ne,y:re,z:this.widgetConfg.list.length+1,locked:!1})})},sortWidgetList(){this.widgetConfg.list.sort((te,U)=>U.z-te.z)},setCreateLoading(te){this.createLoading=te,te&&(this.targetsWidget=[],this.clearSketchRuleLine())},setRightPannel(te){this.showRightPannel=te},setStageWidth(te){this.stageWidth=te,this.widgetConfg.config.stageWidth=te},setStageHeight(te){this.stageHeight=te,this.widgetConfg.config.stageHeight=te},setTheme(){this.theme=this.theme=="dark"?"":"dark",document.getElementsByTagName("html")[0].className=this.theme,localStorage.setItem("design-theme",this.theme)},setChartData(te){this.chartData=te},setCountMap(te,U){this.countMap[te]=U}}});/*!
|
|
1
|
+
(function(te,U){typeof exports=="object"&&typeof module<"u"?module.exports=U(require("pinia"),require("@wangeditor/editor"),require("vue"),require("element-plus"),require("vue-draggable-plus"),require("dayjs"),require("echarts/core"),require("@wangeditor/editor-for-vue"),require("jsoneditor")):typeof define=="function"&&define.amd?define(["pinia","@wangeditor/editor","vue","element-plus","vue-draggable-plus","dayjs","echarts/core","@wangeditor/editor-for-vue","jsoneditor"],U):(te=typeof globalThis<"u"?globalThis:te||self,te["ace-component-lib"]=U(te.pinia,te.editor,te.Vue,te.elementPlus,te.vueDraggablePlus,te.dayjs,te.core,te.editorForVue,te.JsonEditor))})(this,function(pinia,editor,vue,elementPlus,vueDraggablePlus,dayjs,core,editorForVue,JsonEditor){"use strict";const version="0.0.76",aceLib="";let e$3=class{constructor(U){this.standards={strict:"strict",loose:"loose",html5:"html5"},this.previewBody=null,this.close=null,this.previewBodyUtilPrintBtn=null,this.selectArray=[],this.counter=0,this.settings={standard:this.standards.html5},Object.assign(this.settings,U),this.init()}init(){this.counter++,this.settings.id=`printArea_${this.counter}`;let U="";this.settings.url&&!this.settings.asyncUrl&&(U=this.settings.url);let G=this;if(this.settings.asyncUrl)return void G.settings.asyncUrl(function(ne){let re=G.getPrintWindow(ne);G.settings.preview?G.previewIfrmaeLoad():G.print(re)},G.settings.vue);let ee=this.getPrintWindow(U);this.settings.url||this.write(ee.doc),this.settings.preview?this.previewIfrmaeLoad():this.print(ee)}addEvent(U,G,ee){U.addEventListener?U.addEventListener(G,ee,!1):U.attachEvent?U.attachEvent("on"+G,ee):U["on"+G]=ee}previewIfrmaeLoad(){let U=document.getElementById("vue-pirnt-nb-previewBox");if(U){let G=this,ee=U.querySelector("iframe");this.settings.previewBeforeOpenCallback(),this.addEvent(ee,"load",function(){G.previewBoxShow(),G.removeCanvasImg(),G.settings.previewOpenCallback()}),this.addEvent(U.querySelector(".previewBodyUtilPrintBtn"),"click",function(){G.settings.beforeOpenCallback(),G.settings.openCallback(),ee.contentWindow.print(),G.settings.closeCallback()})}}removeCanvasImg(){let U=this;try{if(U.elsdom){let G=U.elsdom.querySelectorAll(".canvasImg");for(let ee=0;ee<G.length;ee++)G[ee].remove()}}catch(G){console.log(G)}}print(U){var G=this;let ee=document.getElementById(this.settings.id)||U.f,ne=document.getElementById(this.settings.id).contentWindow||U.f.contentWindow;G.settings.beforeOpenCallback(),G.addEvent(ee,"load",function(){ne.focus(),G.settings.openCallback(),ne.print(),ee.remove(),G.settings.closeCallback(),G.removeCanvasImg()})}write(U){U.open(),U.write(`${this.docType()}<html>${this.getHead()}${this.getBody()}</html>`),U.close()}docType(){return this.settings.standard===this.standards.html5?"<!DOCTYPE html>":`<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01${this.settings.standard===this.standards.loose?" Transitional":""}//EN" "http://www.w3.org/TR/html4/${this.settings.standard===this.standards.loose?"loose":"strict"}.dtd">`}getHead(){let U="",G="",ee="";this.settings.extraHead&&this.settings.extraHead.replace(/([^,]+)/g,re=>{U+=re}),[].forEach.call(document.querySelectorAll("link"),function(re){re.href.indexOf(".css")>=0&&(G+=`<link type="text/css" rel="stylesheet" href="${re.href}" >`)});let ne=document.styleSheets;if(ne&&ne.length>0)for(let re=0;re<ne.length;re++)try{if(ne[re].cssRules||ne[re].rules){let oe=ne[re].cssRules||ne[re].rules;for(let ie=0;ie<oe.length;ie++)ee+=oe[ie].cssText}}catch(oe){console.log(ne[re].href+oe)}return this.settings.extraCss&&this.settings.extraCss.replace(/([^,\s]+)/g,re=>{G+=`<link type="text/css" rel="stylesheet" href="${re}">`}),`<head><title>${this.settings.popTitle}</title>${U}${G}<style type="text/css">${ee}</style></head>`}getBody(){let U=this.settings.ids;return U=U.replace(new RegExp("#","g"),""),this.elsdom=this.beforeHanler(document.getElementById(U)),"<body>"+this.getFormData(this.elsdom).outerHTML+"</body>"}beforeHanler(U){let G=U.querySelectorAll("canvas");for(let ee=0;ee<G.length;ee++)if(!G[ee].style.display){let ne=G[ee].parentNode,re=G[ee].toDataURL("image/png"),oe=new Image;oe.className="canvasImg",oe.style.display="none",oe.src=re,ne.appendChild(oe)}return U}getFormData(U){let G=U.cloneNode(!0),ee=G.querySelectorAll("input,select,textarea"),ne=G.querySelectorAll(".canvasImg,canvas"),re=-1;for(let oe=0;oe<ne.length;oe++){let ie=ne[oe].parentNode,le=ne[oe];le.tagName.toLowerCase()==="canvas"?ie.removeChild(le):le.style.display="block"}for(let oe=0;oe<ee.length;oe++){let ie=ee[oe],le=ie.getAttribute("type"),ae=ee[oe];if(le||(le=ie.tagName==="SELECT"?"select":ie.tagName==="TEXTAREA"?"textarea":""),ie.tagName==="INPUT")le==="radio"||le==="checkbox"?ie.checked&&ae.setAttribute("checked",ie.checked):(ae.value=ie.value,ae.setAttribute("value",ie.value));else if(le==="select"){re++;for(let se=0;se<U.querySelectorAll("select").length;se++){let ue=U.querySelectorAll("select")[se];if(!ue.getAttribute("newbs")&&ue.setAttribute("newbs",se),ue.getAttribute("newbs")==re){let ce=U.querySelectorAll("select")[re].selectedIndex;ie.options[ce].setAttribute("selected",!0)}}}else ae.innerHTML=ie.value,ae.setAttribute("html",ie.value)}return G}getPrintWindow(U){var G=this.Iframe(U);return{f:G,win:G.contentWindow||G,doc:G.doc}}previewBoxShow(){let U=document.getElementById("vue-pirnt-nb-previewBox");U&&(document.querySelector("html").setAttribute("style","overflow: hidden"),U.style.display="block")}previewBoxHide(){let U=document.getElementById("vue-pirnt-nb-previewBox");U&&(document.querySelector("html").setAttribute("style","overflow: visible;"),U.querySelector("iframe")&&U.querySelector("iframe").remove(),U.style.display="none")}previewBox(){let U=document.getElementById("vue-pirnt-nb-previewBox"),G="previewBody";if(U)return U.querySelector("iframe")&&U.querySelector("iframe").remove(),{close:U.querySelector(".previewClose"),previewBody:U.querySelector(".previewBody")};let ee=document.createElement("div");ee.setAttribute("id","vue-pirnt-nb-previewBox"),ee.setAttribute("style","position: fixed;top: 0px;left: 0px;width: 100%;height: 100%;background: white;display:none"),ee.style.zIndex=this.settings.zIndex;let ne=document.createElement("div");ne.setAttribute("class","previewHeader"),ne.setAttribute("style","padding: 5px 20px;"),ne.innerHTML=this.settings.previewTitle,ee.appendChild(ne),this.close=document.createElement("div");let re=this.close;re.setAttribute("class","previewClose"),re.setAttribute("style","position: absolute;top: 5px;right: 20px;width: 25px;height: 20px;cursor: pointer;");let oe=document.createElement("div"),ie=document.createElement("div");oe.setAttribute("class","closeBefore"),oe.setAttribute("style","position: absolute;width: 3px;height: 100%;background: #040404;transform: rotate(45deg); top: 0px;left: 50%;"),ie.setAttribute("class","closeAfter"),ie.setAttribute("style","position: absolute;width: 3px;height: 100%;background: #040404;transform: rotate(-45deg); top: 0px;left: 50%;"),re.appendChild(oe),re.appendChild(ie),ne.appendChild(re),this.previewBody=document.createElement("div");let le=this.previewBody;le.setAttribute("class",G),le.setAttribute("style","display: flex;flex-direction: column; height: 100%;"),ee.appendChild(le);let ae=document.createElement("div");ae.setAttribute("class","previewBodyUtil"),ae.setAttribute("style","height: 32px;background: #474747;position: relative;"),le.appendChild(ae),this.previewBodyUtilPrintBtn=document.createElement("div");let se=this.previewBodyUtilPrintBtn;return se.setAttribute("class","previewBodyUtilPrintBtn"),se.innerHTML=this.settings.previewPrintBtnLabel,se.setAttribute("style","position: absolute;padding: 2px 10px;margin-top: 3px;left: 24px;font-size: 14px;color: white;cursor: pointer;background-color: rgba(0,0,0,.12);background-image: linear-gradient(hsla(0,0%,100%,.05),hsla(0,0%,100%,0));background-clip: padding-box;border: 1px solid rgba(0,0,0,.35);border-color: rgba(0,0,0,.32) rgba(0,0,0,.38) rgba(0,0,0,.42);box-shadow: inset 0 1px 0 hsla(0,0%,100%,.05), inset 0 0 1px hsla(0,0%,100%,.15), 0 1px 0 hsla(0,0%,100%,.05);"),ae.appendChild(se),document.body.appendChild(ee),{close:this.close,previewBody:this.previewBody}}iframeBox(U,G){let ee=document.createElement("iframe");return ee.style.border="0px",ee.style.position="absolute",ee.style.width="0px",ee.style.height="0px",ee.style.right="0px",ee.style.top="0px",ee.setAttribute("id",U),ee.setAttribute("src",G),ee}Iframe(U){let G=this.settings.id;U=U||new Date().getTime();let ee=this,ne=this.iframeBox(G,U);try{if(this.settings.preview){ne.setAttribute("style","border: 0px;flex: 1;");let re=this.previewBox(),oe=re.previewBody,ie=re.close;oe.appendChild(ne),this.addEvent(ie,"click",function(){ee.previewBoxHide()})}else document.body.appendChild(ne);ne.doc=null,ne.doc=ne.contentDocument?ne.contentDocument:ne.contentWindow?ne.contentWindow.document:ne.document}catch(re){throw new Error(re+". iframes may not be supported in this browser.")}if(ne.doc==null)throw new Error("Cannot find document.");return ne}};var t$2={directiveName:"print",mounted(te,U,G){let ee=U.instance,ne="";var re,oe,ie;oe="click",ie=()=>{if(typeof U.value=="string")ne=U.value;else{if(typeof U.value!="object"||!U.value.id)return void window.print();{ne=U.value.id;let ae=ne.replace(new RegExp("#","g"),"");document.getElementById(ae)||(console.log("id in Error"),ne="")}}le()},(re=te).addEventListener?re.addEventListener(oe,ie,!1):re.attachEvent?re.attachEvent("on"+oe,ie):re["on"+oe]=ie;const le=()=>{new e$3({ids:ne,vue:ee,url:U.value.url,standard:"",extraHead:U.value.extraHead,extraCss:U.value.extraCss,zIndex:U.value.zIndex||20002,previewTitle:U.value.previewTitle||"打印预览",previewPrintBtnLabel:U.value.previewPrintBtnLabel||"打印",popTitle:U.value.popTitle,preview:U.value.preview||!1,asyncUrl:U.value.asyncUrl,previewBeforeOpenCallback(){U.value.previewBeforeOpenCallback&&U.value.previewBeforeOpenCallback(ee)},previewOpenCallback(){U.value.previewOpenCallback&&U.value.previewOpenCallback(ee)},openCallback(){U.value.openCallback&&U.value.openCallback(ee)},closeCallback(){U.value.closeCallback&&U.value.closeCallback(ee)},beforeOpenCallback(){U.value.beforeOpenCallback&&U.value.beforeOpenCallback(ee)}})}},install:function(te){te.directive("print",t$2)}},FieldRenderType=(te=>(te.String="string",te.Integer="interget",te))(FieldRenderType||{}),DynamicTableType=(te=>(te.Default="default",te.DataForm="dataForm",te))(DynamicTableType||{}),ItableType=(te=>(te.Link="link",te))(ItableType||{}),FieldType=(te=>(te.Text="text",te.Select="select",te.Date="date",te.DateTime="datetime",te.CheckBox="checkbox",te.Switch="switch",te.Radio="radio",te.Textarea="textarea",te.Number="number",te.NumberRange="numberRange",te.Cascader="cascader",te.Daterange="daterange",te.Monthrange="monthrange",te.File="file",te.TreeSelect="treeSelect",te.Year="year",te.Month="month",te.Hr="hr",te.Slot="slot",te.Editor="editor",te.Password="password",te.Json="json",te.Markdown="markdown",te.Rate="rate",te.TimeRange="timerange",te.Time="time",te.DateTimeRange="datetimerange",te))(FieldType||{});let nanoid=(te=21)=>crypto.getRandomValues(new Uint8Array(te)).reduce((U,G)=>(G&=63,G<36?U+=G.toString(36):G<62?U+=(G-26).toString(36).toUpperCase():G>62?U+="-":U+="_",U),"");const screenDesignMainStore=pinia.defineStore({id:"design",state:()=>({theme:localStorage.getItem("design-theme")||"",stageWidth:1920,stageHeight:1080,scale:.2,targetsWidget:[],sketchRuleLine:{h:[],v:[]},widgetConfg:{config:{backgroundColor:"transparent",backgroundImage:""},list:[]},widgetHoverIds:[],pasteWidget:[],createLoading:!1,showRightPannel:!1,tempChartData:{},chartData:{},countMap:{}}),getters:{getScale(){return this.scale},getStage(){return{stageWidth:this.stageWidth,stageHeight:this.stageHeight}},getSketchRuleLine(){return this.sketchRuleLine},getTargetWidget(){return this.targetsWidget},getWidgetConfig(){return this.widgetConfg.config},getWidgetList(){return this.widgetConfg.list},getWidgetHoverIds(){return this.widgetHoverIds},getPasteWidget(){return this.pasteWidget},getCreateLoading(){return this.createLoading},getRightPannel(){return this.showRightPannel},getTheme(){return this.theme},getChartData(){return this.chartData},getCountMap(){return this.countMap}},actions:{setSacle(te){this.scale=te/100},setSketchRuleLine(te,U){this.sketchRuleLine.h=te,this.sketchRuleLine.v=U},clearSketchRuleLine(){this.sketchRuleLine={h:[],v:[]}},setTargetWidget(te){this.targetsWidget=te},setWidgetList(te){this.widgetConfg.list=te},setWidgetHoverIds(te){this.widgetHoverIds=te},delWidgetItem(te){this.setWidgetList(this.getWidgetList.filter(U=>!te.includes(U.id))),this.setTargetWidget(this.getTargetWidget.filter(U=>!te.includes(U.id)))},copyWidgetItem(te){this.pasteWidget=[],te.forEach(U=>{const G=this.getWidgetList.find(ee=>ee.id==U);G&&this.pasteWidget.push(G)})},pasteWidgetItem(){this.pasteWidget.forEach(G=>{const ee=JSON.parse(JSON.stringify(G));let ne=ee.x,re=ee.y;ee.x+40>this.stageWidth-ee.w?ne=this.stageWidth-ee.w-40:ne+=40,ee.y+40>this.stageHeight-ee.h?re=this.stageHeight-ee.h-40:re+=40,this.widgetConfg.list.unshift({...ee,id:nanoid(),x:ne,y:re,z:this.widgetConfg.list.length+1,locked:!1})})},sortWidgetList(){this.widgetConfg.list.sort((te,U)=>U.z-te.z)},setCreateLoading(te){this.createLoading=te,te&&(this.targetsWidget=[],this.clearSketchRuleLine())},setRightPannel(te){this.showRightPannel=te},setStageWidth(te){this.stageWidth=te,this.widgetConfg.config.stageWidth=te},setStageHeight(te){this.stageHeight=te,this.widgetConfg.config.stageHeight=te},setTheme(){this.theme=this.theme=="dark"?"":"dark",document.getElementsByTagName("html")[0].className=this.theme,localStorage.setItem("design-theme",this.theme)},setChartData(te){this.chartData=te},setCountMap(te,U){this.countMap[te]=U}}});/*!
|
|
2
2
|
* Compressor.js v1.2.1
|
|
3
3
|
* https://fengyuanchen.github.io/compressorjs
|
|
4
4
|
*
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*
|
|
8
8
|
* Date: 2023-02-28T14:09:41.732Z
|
|
9
9
|
*/function ownKeys(te,U){var G=Object.keys(te);if(Object.getOwnPropertySymbols){var ee=Object.getOwnPropertySymbols(te);U&&(ee=ee.filter(function(ne){return Object.getOwnPropertyDescriptor(te,ne).enumerable})),G.push.apply(G,ee)}return G}function _objectSpread2(te){for(var U=1;U<arguments.length;U++){var G=arguments[U]!=null?arguments[U]:{};U%2?ownKeys(Object(G),!0).forEach(function(ee){_defineProperty(te,ee,G[ee])}):Object.getOwnPropertyDescriptors?Object.defineProperties(te,Object.getOwnPropertyDescriptors(G)):ownKeys(Object(G)).forEach(function(ee){Object.defineProperty(te,ee,Object.getOwnPropertyDescriptor(G,ee))})}return te}function _classCallCheck(te,U){if(!(te instanceof U))throw new TypeError("Cannot call a class as a function")}function _defineProperties(te,U){for(var G=0;G<U.length;G++){var ee=U[G];ee.enumerable=ee.enumerable||!1,ee.configurable=!0,"value"in ee&&(ee.writable=!0),Object.defineProperty(te,_toPropertyKey(ee.key),ee)}}function _createClass(te,U,G){return U&&_defineProperties(te.prototype,U),G&&_defineProperties(te,G),Object.defineProperty(te,"prototype",{writable:!1}),te}function _defineProperty(te,U,G){return U=_toPropertyKey(U),U in te?Object.defineProperty(te,U,{value:G,enumerable:!0,configurable:!0,writable:!0}):te[U]=G,te}function _extends(){return _extends=Object.assign?Object.assign.bind():function(te){for(var U=1;U<arguments.length;U++){var G=arguments[U];for(var ee in G)Object.prototype.hasOwnProperty.call(G,ee)&&(te[ee]=G[ee])}return te},_extends.apply(this,arguments)}function _toPrimitive(te,U){if(typeof te!="object"||te===null)return te;var G=te[Symbol.toPrimitive];if(G!==void 0){var ee=G.call(te,U||"default");if(typeof ee!="object")return ee;throw new TypeError("@@toPrimitive must return a primitive value.")}return(U==="string"?String:Number)(te)}function _toPropertyKey(te){var U=_toPrimitive(te,"string");return typeof U=="symbol"?U:String(U)}var canvasToBlob={exports:{}};(function(te){typeof window>"u"||function(U){var G=U.HTMLCanvasElement&&U.HTMLCanvasElement.prototype,ee=U.Blob&&function(){try{return!!new Blob}catch{return!1}}(),ne=ee&&U.Uint8Array&&function(){try{return new Blob([new Uint8Array(100)]).size===100}catch{return!1}}(),re=U.BlobBuilder||U.WebKitBlobBuilder||U.MozBlobBuilder||U.MSBlobBuilder,oe=/^data:((.*?)(;charset=.*?)?)(;base64)?,/,ie=(ee||re)&&U.atob&&U.ArrayBuffer&&U.Uint8Array&&function(le){var ae,se,ue,ce,de,fe,ve,he,pe;if(ae=le.match(oe),!ae)throw new Error("invalid data URI");for(se=ae[2]?ae[1]:"text/plain"+(ae[3]||";charset=US-ASCII"),ue=!!ae[4],ce=le.slice(ae[0].length),ue?de=atob(ce):de=decodeURIComponent(ce),fe=new ArrayBuffer(de.length),ve=new Uint8Array(fe),he=0;he<de.length;he+=1)ve[he]=de.charCodeAt(he);return ee?new Blob([ne?ve:fe],{type:se}):(pe=new re,pe.append(fe),pe.getBlob(se))};U.HTMLCanvasElement&&!G.toBlob&&(G.mozGetAsFile?G.toBlob=function(le,ae,se){var ue=this;setTimeout(function(){se&&G.toDataURL&&ie?le(ie(ue.toDataURL(ae,se))):le(ue.mozGetAsFile("blob",ae))})}:G.toDataURL&&ie&&(G.msToBlob?G.toBlob=function(le,ae,se){var ue=this;setTimeout(function(){(ae&&ae!=="image/png"||se)&&G.toDataURL&&ie?le(ie(ue.toDataURL(ae,se))):le(ue.msToBlob(ae))})}:G.toBlob=function(le,ae,se){var ue=this;setTimeout(function(){le(ie(ue.toDataURL(ae,se)))})})),te.exports?te.exports=ie:U.dataURLtoBlob=ie}(window)})(canvasToBlob);var toBlob=canvasToBlob.exports,isBlob=function(U){return typeof Blob>"u"?!1:U instanceof Blob||Object.prototype.toString.call(U)==="[object Blob]"},DEFAULTS={strict:!0,checkOrientation:!0,retainExif:!1,maxWidth:1/0,maxHeight:1/0,minWidth:0,minHeight:0,width:void 0,height:void 0,resize:"none",quality:.8,mimeType:"auto",convertTypes:["image/png"],convertSize:5e6,beforeDraw:null,drew:null,success:null,error:null},IS_BROWSER=typeof window<"u"&&typeof window.document<"u",WINDOW=IS_BROWSER?window:{},isPositiveNumber=function(U){return U>0&&U<1/0},slice=Array.prototype.slice;function toArray$1(te){return Array.from?Array.from(te):slice.call(te)}var REGEXP_IMAGE_TYPE=/^image\/.+$/;function isImageType(te){return REGEXP_IMAGE_TYPE.test(te)}function imageTypeToExtension(te){var U=isImageType(te)?te.substr(6):"";return U==="jpeg"&&(U="jpg"),".".concat(U)}var fromCharCode=String.fromCharCode;function getStringFromCharCode(te,U,G){var ee="",ne;for(G+=U,ne=U;ne<G;ne+=1)ee+=fromCharCode(te.getUint8(ne));return ee}var btoa$1=WINDOW.btoa;function arrayBufferToDataURL(te,U){for(var G=[],ee=8192,ne=new Uint8Array(te);ne.length>0;)G.push(fromCharCode.apply(null,toArray$1(ne.subarray(0,ee)))),ne=ne.subarray(ee);return"data:".concat(U,";base64,").concat(btoa$1(G.join("")))}function resetAndGetOrientation(te){var U=new DataView(te),G;try{var ee,ne,re;if(U.getUint8(0)===255&&U.getUint8(1)===216)for(var oe=U.byteLength,ie=2;ie+1<oe;){if(U.getUint8(ie)===255&&U.getUint8(ie+1)===225){ne=ie;break}ie+=1}if(ne){var le=ne+4,ae=ne+10;if(getStringFromCharCode(U,le,4)==="Exif"){var se=U.getUint16(ae);if(ee=se===18761,(ee||se===19789)&&U.getUint16(ae+2,ee)===42){var ue=U.getUint32(ae+4,ee);ue>=8&&(re=ae+ue)}}}if(re){var ce=U.getUint16(re,ee),de,fe;for(fe=0;fe<ce;fe+=1)if(de=re+fe*12+2,U.getUint16(de,ee)===274){de+=8,G=U.getUint16(de,ee),U.setUint16(de,1,ee);break}}}catch{G=1}return G}function parseOrientation(te){var U=0,G=1,ee=1;switch(te){case 2:G=-1;break;case 3:U=-180;break;case 4:ee=-1;break;case 5:U=90,ee=-1;break;case 6:U=90;break;case 7:U=90,G=-1;break;case 8:U=-90;break}return{rotate:U,scaleX:G,scaleY:ee}}var REGEXP_DECIMALS=/\.\d*(?:0|9){12}\d*$/;function normalizeDecimalNumber(te){var U=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1e11;return REGEXP_DECIMALS.test(te)?Math.round(te*U)/U:te}function getAdjustedSizes(te){var U=te.aspectRatio,G=te.height,ee=te.width,ne=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"none",re=isPositiveNumber(ee),oe=isPositiveNumber(G);if(re&&oe){var ie=G*U;(ne==="contain"||ne==="none")&&ie>ee||ne==="cover"&&ie<ee?G=ee/U:ee=G*U}else re?G=ee/U:oe&&(ee=G*U);return{width:ee,height:G}}function getExif(te){for(var U=toArray$1(new Uint8Array(te)),G=U.length,ee=[],ne=0;ne+3<G;){var re=U[ne],oe=U[ne+1];if(re===255&&oe===218)break;if(re===255&&oe===216)ne+=2;else{var ie=U[ne+2]*256+U[ne+3],le=ne+ie+2,ae=U.slice(ne,le);ee.push(ae),ne=le}}return ee.reduce(function(se,ue){return ue[0]===255&&ue[1]===225?se.concat(ue):se},[])}function insertExif(te,U){var G=toArray$1(new Uint8Array(te));if(G[2]!==255||G[3]!==224)return te;var ee=G[4]*256+G[5],ne=[255,216].concat(U,G.slice(4+ee));return new Uint8Array(ne)}var ArrayBuffer$1=WINDOW.ArrayBuffer,FileReader$1=WINDOW.FileReader,URL$1=WINDOW.URL||WINDOW.webkitURL,REGEXP_EXTENSION=/\.\w+$/,AnotherCompressor=WINDOW.Compressor,Compressor=function(){function te(U,G){_classCallCheck(this,te),this.file=U,this.exif=[],this.image=new Image,this.options=_objectSpread2(_objectSpread2({},DEFAULTS),G),this.aborted=!1,this.result=null,this.init()}return _createClass(te,[{key:"init",value:function(){var G=this,ee=this.file,ne=this.options;if(!isBlob(ee)){this.fail(new Error("The first argument must be a File or Blob object."));return}var re=ee.type;if(!isImageType(re)){this.fail(new Error("The first argument must be an image File or Blob object."));return}if(!URL$1||!FileReader$1){this.fail(new Error("The current browser does not support image compression."));return}ArrayBuffer$1||(ne.checkOrientation=!1,ne.retainExif=!1);var oe=re==="image/jpeg",ie=oe&&ne.checkOrientation,le=oe&&ne.retainExif;if(URL$1&&!ie&&!le)this.load({url:URL$1.createObjectURL(ee)});else{var ae=new FileReader$1;this.reader=ae,ae.onload=function(se){var ue=se.target,ce=ue.result,de={},fe=1;ie&&(fe=resetAndGetOrientation(ce),fe>1&&_extends(de,parseOrientation(fe))),le&&(G.exif=getExif(ce)),ie||le?!URL$1||fe>1?de.url=arrayBufferToDataURL(ce,re):de.url=URL$1.createObjectURL(ee):de.url=ce,G.load(de)},ae.onabort=function(){G.fail(new Error("Aborted to read the image with FileReader."))},ae.onerror=function(){G.fail(new Error("Failed to read the image with FileReader."))},ae.onloadend=function(){G.reader=null},ie||le?ae.readAsArrayBuffer(ee):ae.readAsDataURL(ee)}}},{key:"load",value:function(G){var ee=this,ne=this.file,re=this.image;re.onload=function(){ee.draw(_objectSpread2(_objectSpread2({},G),{},{naturalWidth:re.naturalWidth,naturalHeight:re.naturalHeight}))},re.onabort=function(){ee.fail(new Error("Aborted to load the image."))},re.onerror=function(){ee.fail(new Error("Failed to load the image."))},WINDOW.navigator&&/(?:iPad|iPhone|iPod).*?AppleWebKit/i.test(WINDOW.navigator.userAgent)&&(re.crossOrigin="anonymous"),re.alt=ne.name,re.src=G.url}},{key:"draw",value:function(G){var ee=this,ne=G.naturalWidth,re=G.naturalHeight,oe=G.rotate,ie=oe===void 0?0:oe,le=G.scaleX,ae=le===void 0?1:le,se=G.scaleY,ue=se===void 0?1:se,ce=this.file,de=this.image,fe=this.options,ve=document.createElement("canvas"),he=ve.getContext("2d"),pe=Math.abs(ie)%180===90,ge=(fe.resize==="contain"||fe.resize==="cover")&&isPositiveNumber(fe.width)&&isPositiveNumber(fe.height),me=Math.max(fe.maxWidth,0)||1/0,_e=Math.max(fe.maxHeight,0)||1/0,ye=Math.max(fe.minWidth,0)||0,be=Math.max(fe.minHeight,0)||0,xe=ne/re,Ce=fe.width,$e=fe.height;if(pe){var Ee=[_e,me];me=Ee[0],_e=Ee[1];var Ve=[be,ye];ye=Ve[0],be=Ve[1];var Ne=[$e,Ce];Ce=Ne[0],$e=Ne[1]}ge&&(xe=Ce/$e);var Se=getAdjustedSizes({aspectRatio:xe,width:me,height:_e},"contain");me=Se.width,_e=Se.height;var Pe=getAdjustedSizes({aspectRatio:xe,width:ye,height:be},"cover");if(ye=Pe.width,be=Pe.height,ge){var we=getAdjustedSizes({aspectRatio:xe,width:Ce,height:$e},fe.resize);Ce=we.width,$e=we.height}else{var ke=getAdjustedSizes({aspectRatio:xe,width:Ce,height:$e}),Te=ke.width;Ce=Te===void 0?ne:Te;var De=ke.height;$e=De===void 0?re:De}Ce=Math.floor(normalizeDecimalNumber(Math.min(Math.max(Ce,ye),me))),$e=Math.floor(normalizeDecimalNumber(Math.min(Math.max($e,be),_e)));var Ie=-Ce/2,Me=-$e/2,Be=Ce,Ae=$e,ze=[];if(ge){var Re=0,Fe=0,je=ne,Oe=re,Le=getAdjustedSizes({aspectRatio:xe,width:ne,height:re},{contain:"cover",cover:"contain"}[fe.resize]);je=Le.width,Oe=Le.height,Re=(ne-je)/2,Fe=(re-Oe)/2,ze.push(Re,Fe,je,Oe)}if(ze.push(Ie,Me,Be,Ae),pe){var Ge=[$e,Ce];Ce=Ge[0],$e=Ge[1]}ve.width=Ce,ve.height=$e,isImageType(fe.mimeType)||(fe.mimeType=ce.type);var qe="transparent";ce.size>fe.convertSize&&fe.convertTypes.indexOf(fe.mimeType)>=0&&(fe.mimeType="image/jpeg");var Ue=fe.mimeType==="image/jpeg";if(Ue&&(qe="#fff"),he.fillStyle=qe,he.fillRect(0,0,Ce,$e),fe.beforeDraw&&fe.beforeDraw.call(this,he,ve),!this.aborted&&(he.save(),he.translate(Ce/2,$e/2),he.rotate(ie*Math.PI/180),he.scale(ae,ue),he.drawImage.apply(he,[de].concat(ze)),he.restore(),fe.drew&&fe.drew.call(this,he,ve),!this.aborted)){var We=function(Je){if(!ee.aborted){var Xe=function(Ze){return ee.done({naturalWidth:ne,naturalHeight:re,result:Ze})};if(Je&&Ue&&fe.retainExif&&ee.exif&&ee.exif.length>0){var Ke=function(Ze){return Xe(toBlob(arrayBufferToDataURL(insertExif(Ze,ee.exif),fe.mimeType)))};if(Je.arrayBuffer)Je.arrayBuffer().then(Ke).catch(function(){ee.fail(new Error("Failed to read the compressed image with Blob.arrayBuffer()."))});else{var He=new FileReader$1;ee.reader=He,He.onload=function(Qe){var Ze=Qe.target;Ke(Ze.result)},He.onabort=function(){ee.fail(new Error("Aborted to read the compressed image with FileReader."))},He.onerror=function(){ee.fail(new Error("Failed to read the compressed image with FileReader."))},He.onloadend=function(){ee.reader=null},He.readAsArrayBuffer(Je)}}else Xe(Je)}};ve.toBlob?ve.toBlob(We,fe.mimeType,fe.quality):We(toBlob(ve.toDataURL(fe.mimeType,fe.quality)))}}},{key:"done",value:function(G){var ee=G.naturalWidth,ne=G.naturalHeight,re=G.result,oe=this.file,ie=this.image,le=this.options;if(URL$1&&ie.src.indexOf("blob:")===0&&URL$1.revokeObjectURL(ie.src),re)if(le.strict&&!le.retainExif&&re.size>oe.size&&le.mimeType===oe.type&&!(le.width>ee||le.height>ne||le.minWidth>ee||le.minHeight>ne||le.maxWidth<ee||le.maxHeight<ne))re=oe;else{var ae=new Date;re.lastModified=ae.getTime(),re.lastModifiedDate=ae,re.name=oe.name,re.name&&re.type!==oe.type&&(re.name=re.name.replace(REGEXP_EXTENSION,imageTypeToExtension(re.type)))}else re=oe;this.result=re,le.success&&le.success.call(this,re)}},{key:"fail",value:function(G){var ee=this.options;if(ee.error)ee.error.call(this,G);else throw G}},{key:"abort",value:function(){this.aborted||(this.aborted=!0,this.reader?this.reader.abort():this.image.complete?this.fail(new Error("The compression process has been aborted.")):(this.image.onload=null,this.image.onabort()))}}],[{key:"noConflict",value:function(){return window.Compressor=AnotherCompressor,te}},{key:"setDefaults",value:function(G){_extends(DEFAULTS,G)}}]),te}();function resolveUrl(te,U){if(te.match(/^[a-z]+:\/\//i))return te;if(te.match(/^\/\//))return window.location.protocol+te;if(te.match(/^[a-z]+:/i))return te;const G=document.implementation.createHTMLDocument(),ee=G.createElement("base"),ne=G.createElement("a");return G.head.appendChild(ee),G.body.appendChild(ne),U&&(ee.href=U),ne.href=te,ne.href}const uuid$1=(()=>{let te=0;const U=()=>`0000${(Math.random()*36**4<<0).toString(36)}`.slice(-4);return()=>(te+=1,`u${U()}${te}`)})();function toArray(te){const U=[];for(let G=0,ee=te.length;G<ee;G++)U.push(te[G]);return U}function px(te,U){const ee=(te.ownerDocument.defaultView||window).getComputedStyle(te).getPropertyValue(U);return ee?parseFloat(ee.replace("px","")):0}function getNodeWidth(te){const U=px(te,"border-left-width"),G=px(te,"border-right-width");return te.clientWidth+U+G}function getNodeHeight(te){const U=px(te,"border-top-width"),G=px(te,"border-bottom-width");return te.clientHeight+U+G}function getImageSize(te,U={}){const G=U.width||getNodeWidth(te),ee=U.height||getNodeHeight(te);return{width:G,height:ee}}function getPixelRatio(){let te,U;try{U=process}catch{}const G=U&&U.env?U.env.devicePixelRatio:null;return G&&(te=parseInt(G,10),Number.isNaN(te)&&(te=1)),te||window.devicePixelRatio||1}const canvasDimensionLimit=16384;function checkCanvasDimensions(te){(te.width>canvasDimensionLimit||te.height>canvasDimensionLimit)&&(te.width>canvasDimensionLimit&&te.height>canvasDimensionLimit?te.width>te.height?(te.height*=canvasDimensionLimit/te.width,te.width=canvasDimensionLimit):(te.width*=canvasDimensionLimit/te.height,te.height=canvasDimensionLimit):te.width>canvasDimensionLimit?(te.height*=canvasDimensionLimit/te.width,te.width=canvasDimensionLimit):(te.width*=canvasDimensionLimit/te.height,te.height=canvasDimensionLimit))}function createImage(te){return new Promise((U,G)=>{const ee=new Image;ee.decode=()=>U(ee),ee.onload=()=>U(ee),ee.onerror=G,ee.crossOrigin="anonymous",ee.decoding="async",ee.src=te})}async function svgToDataURL(te){return Promise.resolve().then(()=>new XMLSerializer().serializeToString(te)).then(encodeURIComponent).then(U=>`data:image/svg+xml;charset=utf-8,${U}`)}async function nodeToDataURL(te,U,G){const ee="http://www.w3.org/2000/svg",ne=document.createElementNS(ee,"svg"),re=document.createElementNS(ee,"foreignObject");return ne.setAttribute("width",`${U}`),ne.setAttribute("height",`${G}`),ne.setAttribute("viewBox",`0 0 ${U} ${G}`),re.setAttribute("width","100%"),re.setAttribute("height","100%"),re.setAttribute("x","0"),re.setAttribute("y","0"),re.setAttribute("externalResourcesRequired","true"),ne.appendChild(re),re.appendChild(te),svgToDataURL(ne)}const isInstanceOfElement=(te,U)=>{if(te instanceof U)return!0;const G=Object.getPrototypeOf(te);return G===null?!1:G.constructor.name===U.name||isInstanceOfElement(G,U)};function formatCSSText(te){const U=te.getPropertyValue("content");return`${te.cssText} content: '${U.replace(/'|"/g,"")}';`}function formatCSSProperties(te){return toArray(te).map(U=>{const G=te.getPropertyValue(U),ee=te.getPropertyPriority(U);return`${U}: ${G}${ee?" !important":""};`}).join(" ")}function getPseudoElementStyle(te,U,G){const ee=`.${te}:${U}`,ne=G.cssText?formatCSSText(G):formatCSSProperties(G);return document.createTextNode(`${ee}{${ne}}`)}function clonePseudoElement(te,U,G){const ee=window.getComputedStyle(te,G),ne=ee.getPropertyValue("content");if(ne===""||ne==="none")return;const re=uuid$1();try{U.className=`${U.className} ${re}`}catch{return}const oe=document.createElement("style");oe.appendChild(getPseudoElementStyle(re,G,ee)),U.appendChild(oe)}function clonePseudoElements(te,U){clonePseudoElement(te,U,":before"),clonePseudoElement(te,U,":after")}const WOFF="application/font-woff",JPEG="image/jpeg",mimes={woff:WOFF,woff2:WOFF,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:JPEG,jpeg:JPEG,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml",webp:"image/webp"};function getExtension(te){const U=/\.([^./]*?)$/g.exec(te);return U?U[1]:""}function getMimeType(te){const U=getExtension(te).toLowerCase();return mimes[U]||""}function getContentFromDataUrl(te){return te.split(/,/)[1]}function isDataUrl(te){return te.search(/^(data:)/)!==-1}function makeDataUrl(te,U){return`data:${U};base64,${te}`}async function fetchAsDataURL(te,U,G){const ee=await fetch(te,U);if(ee.status===404)throw new Error(`Resource "${ee.url}" not found`);const ne=await ee.blob();return new Promise((re,oe)=>{const ie=new FileReader;ie.onerror=oe,ie.onloadend=()=>{try{re(G({res:ee,result:ie.result}))}catch(le){oe(le)}},ie.readAsDataURL(ne)})}const cache={};function getCacheKey(te,U,G){let ee=te.replace(/\?.*/,"");return G&&(ee=te),/ttf|otf|eot|woff2?/i.test(ee)&&(ee=ee.replace(/.*\//,"")),U?`[${U}]${ee}`:ee}async function resourceToDataURL(te,U,G){const ee=getCacheKey(te,U,G.includeQueryParams);if(cache[ee]!=null)return cache[ee];G.cacheBust&&(te+=(/\?/.test(te)?"&":"?")+new Date().getTime());let ne;try{const re=await fetchAsDataURL(te,G.fetchRequestInit,({res:oe,result:ie})=>(U||(U=oe.headers.get("Content-Type")||""),getContentFromDataUrl(ie)));ne=makeDataUrl(re,U)}catch(re){ne=G.imagePlaceholder||"";let oe=`Failed to fetch resource: ${te}`;re&&(oe=typeof re=="string"?re:re.message),oe&&console.warn(oe)}return cache[ee]=ne,ne}async function cloneCanvasElement(te){const U=te.toDataURL();return U==="data:,"?te.cloneNode(!1):createImage(U)}async function cloneVideoElement(te,U){if(te.currentSrc){const re=document.createElement("canvas"),oe=re.getContext("2d");re.width=te.clientWidth,re.height=te.clientHeight,oe==null||oe.drawImage(te,0,0,re.width,re.height);const ie=re.toDataURL();return createImage(ie)}const G=te.poster,ee=getMimeType(G),ne=await resourceToDataURL(G,ee,U);return createImage(ne)}async function cloneIFrameElement(te){var U;try{if(!((U=te==null?void 0:te.contentDocument)===null||U===void 0)&&U.body)return await cloneNode(te.contentDocument.body,{},!0)}catch{}return te.cloneNode(!1)}async function cloneSingleNode(te,U){return isInstanceOfElement(te,HTMLCanvasElement)?cloneCanvasElement(te):isInstanceOfElement(te,HTMLVideoElement)?cloneVideoElement(te,U):isInstanceOfElement(te,HTMLIFrameElement)?cloneIFrameElement(te):te.cloneNode(!1)}const isSlotElement=te=>te.tagName!=null&&te.tagName.toUpperCase()==="SLOT";async function cloneChildren(te,U,G){var ee,ne;let re=[];return isSlotElement(te)&&te.assignedNodes?re=toArray(te.assignedNodes()):isInstanceOfElement(te,HTMLIFrameElement)&&(!((ee=te.contentDocument)===null||ee===void 0)&&ee.body)?re=toArray(te.contentDocument.body.childNodes):re=toArray(((ne=te.shadowRoot)!==null&&ne!==void 0?ne:te).childNodes),re.length===0||isInstanceOfElement(te,HTMLVideoElement)||await re.reduce((oe,ie)=>oe.then(()=>cloneNode(ie,G)).then(le=>{le&&U.appendChild(le)}),Promise.resolve()),U}function cloneCSSStyle(te,U){const G=U.style;if(!G)return;const ee=window.getComputedStyle(te);ee.cssText?(G.cssText=ee.cssText,G.transformOrigin=ee.transformOrigin):toArray(ee).forEach(ne=>{let re=ee.getPropertyValue(ne);ne==="font-size"&&re.endsWith("px")&&(re=`${Math.floor(parseFloat(re.substring(0,re.length-2)))-.1}px`),isInstanceOfElement(te,HTMLIFrameElement)&&ne==="display"&&re==="inline"&&(re="block"),ne==="d"&&U.getAttribute("d")&&(re=`path(${U.getAttribute("d")})`),G.setProperty(ne,re,ee.getPropertyPriority(ne))})}function cloneInputValue(te,U){isInstanceOfElement(te,HTMLTextAreaElement)&&(U.innerHTML=te.value),isInstanceOfElement(te,HTMLInputElement)&&U.setAttribute("value",te.value)}function cloneSelectValue(te,U){if(isInstanceOfElement(te,HTMLSelectElement)){const G=U,ee=Array.from(G.children).find(ne=>te.value===ne.getAttribute("value"));ee&&ee.setAttribute("selected","")}}function decorate(te,U){return isInstanceOfElement(U,Element)&&(cloneCSSStyle(te,U),clonePseudoElements(te,U),cloneInputValue(te,U),cloneSelectValue(te,U)),U}async function ensureSVGSymbols(te,U){const G=te.querySelectorAll?te.querySelectorAll("use"):[];if(G.length===0)return te;const ee={};for(let re=0;re<G.length;re++){const ie=G[re].getAttribute("xlink:href");if(ie){const le=te.querySelector(ie),ae=document.querySelector(ie);!le&&ae&&!ee[ie]&&(ee[ie]=await cloneNode(ae,U,!0))}}const ne=Object.values(ee);if(ne.length){const re="http://www.w3.org/1999/xhtml",oe=document.createElementNS(re,"svg");oe.setAttribute("xmlns",re),oe.style.position="absolute",oe.style.width="0",oe.style.height="0",oe.style.overflow="hidden",oe.style.display="none";const ie=document.createElementNS(re,"defs");oe.appendChild(ie);for(let le=0;le<ne.length;le++)ie.appendChild(ne[le]);te.appendChild(oe)}return te}async function cloneNode(te,U,G){return!G&&U.filter&&!U.filter(te)?null:Promise.resolve(te).then(ee=>cloneSingleNode(ee,U)).then(ee=>cloneChildren(te,ee,U)).then(ee=>decorate(te,ee)).then(ee=>ensureSVGSymbols(ee,U))}const URL_REGEX=/url\((['"]?)([^'"]+?)\1\)/g,URL_WITH_FORMAT_REGEX=/url\([^)]+\)\s*format\((["']?)([^"']+)\1\)/g,FONT_SRC_REGEX=/src:\s*(?:url\([^)]+\)\s*format\([^)]+\)[,;]\s*)+/g;function toRegex(te){const U=te.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1");return new RegExp(`(url\\(['"]?)(${U})(['"]?\\))`,"g")}function parseURLs(te){const U=[];return te.replace(URL_REGEX,(G,ee,ne)=>(U.push(ne),G)),U.filter(G=>!isDataUrl(G))}async function embed(te,U,G,ee,ne){try{const re=G?resolveUrl(U,G):U,oe=getMimeType(U);let ie;if(ne){const le=await ne(re);ie=makeDataUrl(le,oe)}else ie=await resourceToDataURL(re,oe,ee);return te.replace(toRegex(U),`$1${ie}$3`)}catch{}return te}function filterPreferredFontFormat(te,{preferredFontFormat:U}){return U?te.replace(FONT_SRC_REGEX,G=>{for(;;){const[ee,,ne]=URL_WITH_FORMAT_REGEX.exec(G)||[];if(!ne)return"";if(ne===U)return`src: ${ee};`}}):te}function shouldEmbed(te){return te.search(URL_REGEX)!==-1}async function embedResources(te,U,G){if(!shouldEmbed(te))return te;const ee=filterPreferredFontFormat(te,G);return parseURLs(ee).reduce((re,oe)=>re.then(ie=>embed(ie,oe,U,G)),Promise.resolve(ee))}async function embedProp(te,U,G){var ee;const ne=(ee=U.style)===null||ee===void 0?void 0:ee.getPropertyValue(te);if(ne){const re=await embedResources(ne,null,G);return U.style.setProperty(te,re,U.style.getPropertyPriority(te)),!0}return!1}async function embedBackground(te,U){await embedProp("background",te,U)||await embedProp("background-image",te,U),await embedProp("mask",te,U)||await embedProp("mask-image",te,U)}async function embedImageNode(te,U){const G=isInstanceOfElement(te,HTMLImageElement);if(!(G&&!isDataUrl(te.src))&&!(isInstanceOfElement(te,SVGImageElement)&&!isDataUrl(te.href.baseVal)))return;const ee=G?te.src:te.href.baseVal,ne=await resourceToDataURL(ee,getMimeType(ee),U);await new Promise((re,oe)=>{te.onload=re,te.onerror=oe;const ie=te;ie.decode&&(ie.decode=re),ie.loading==="lazy"&&(ie.loading="eager"),G?(te.srcset="",te.src=ne):te.href.baseVal=ne})}async function embedChildren(te,U){const ee=toArray(te.childNodes).map(ne=>embedImages(ne,U));await Promise.all(ee).then(()=>te)}async function embedImages(te,U){isInstanceOfElement(te,Element)&&(await embedBackground(te,U),await embedImageNode(te,U),await embedChildren(te,U))}function applyStyle(te,U){const{style:G}=te;U.backgroundColor&&(G.backgroundColor=U.backgroundColor),U.width&&(G.width=`${U.width}px`),U.height&&(G.height=`${U.height}px`);const ee=U.style;return ee!=null&&Object.keys(ee).forEach(ne=>{G[ne]=ee[ne]}),te}const cssFetchCache={};async function fetchCSS(te){let U=cssFetchCache[te];if(U!=null)return U;const ee=await(await fetch(te)).text();return U={url:te,cssText:ee},cssFetchCache[te]=U,U}async function embedFonts(te,U){let G=te.cssText;const ee=/url\(["']?([^"')]+)["']?\)/g,re=(G.match(/url\([^)]+\)/g)||[]).map(async oe=>{let ie=oe.replace(ee,"$1");return ie.startsWith("https://")||(ie=new URL(ie,te.url).href),fetchAsDataURL(ie,U.fetchRequestInit,({result:le})=>(G=G.replace(oe,`url(${le})`),[oe,le]))});return Promise.all(re).then(()=>G)}function parseCSS(te){if(te==null)return[];const U=[],G=/(\/\*[\s\S]*?\*\/)/gi;let ee=te.replace(G,"");const ne=new RegExp("((@.*?keyframes [\\s\\S]*?){([\\s\\S]*?}\\s*?)})","gi");for(;;){const le=ne.exec(ee);if(le===null)break;U.push(le[0])}ee=ee.replace(ne,"");const re=/@import[\s\S]*?url\([^)]*\)[\s\S]*?;/gi,oe="((\\s*?(?:\\/\\*[\\s\\S]*?\\*\\/)?\\s*?@media[\\s\\S]*?){([\\s\\S]*?)}\\s*?})|(([\\s\\S]*?){([\\s\\S]*?)})",ie=new RegExp(oe,"gi");for(;;){let le=re.exec(ee);if(le===null){if(le=ie.exec(ee),le===null)break;re.lastIndex=ie.lastIndex}else ie.lastIndex=re.lastIndex;U.push(le[0])}return U}async function getCSSRules(te,U){const G=[],ee=[];return te.forEach(ne=>{if("cssRules"in ne)try{toArray(ne.cssRules||[]).forEach((re,oe)=>{if(re.type===CSSRule.IMPORT_RULE){let ie=oe+1;const le=re.href,ae=fetchCSS(le).then(se=>embedFonts(se,U)).then(se=>parseCSS(se).forEach(ue=>{try{ne.insertRule(ue,ue.startsWith("@import")?ie+=1:ne.cssRules.length)}catch(ce){console.error("Error inserting rule from remote css",{rule:ue,error:ce})}})).catch(se=>{console.error("Error loading remote css",se.toString())});ee.push(ae)}})}catch(re){const oe=te.find(ie=>ie.href==null)||document.styleSheets[0];ne.href!=null&&ee.push(fetchCSS(ne.href).then(ie=>embedFonts(ie,U)).then(ie=>parseCSS(ie).forEach(le=>{oe.insertRule(le,ne.cssRules.length)})).catch(ie=>{console.error("Error loading remote stylesheet",ie)})),console.error("Error inlining remote css file",re)}}),Promise.all(ee).then(()=>(te.forEach(ne=>{if("cssRules"in ne)try{toArray(ne.cssRules||[]).forEach(re=>{G.push(re)})}catch(re){console.error(`Error while reading CSS rules from ${ne.href}`,re)}}),G))}function getWebFontRules(te){return te.filter(U=>U.type===CSSRule.FONT_FACE_RULE).filter(U=>shouldEmbed(U.style.getPropertyValue("src")))}async function parseWebFontRules(te,U){if(te.ownerDocument==null)throw new Error("Provided element is not within a Document");const G=toArray(te.ownerDocument.styleSheets),ee=await getCSSRules(G,U);return getWebFontRules(ee)}async function getWebFontCSS(te,U){const G=await parseWebFontRules(te,U);return(await Promise.all(G.map(ne=>{const re=ne.parentStyleSheet?ne.parentStyleSheet.href:null;return embedResources(ne.cssText,re,U)}))).join(`
|
|
10
|
-
`)}async function embedWebFonts(te,U){const G=U.fontEmbedCSS!=null?U.fontEmbedCSS:U.skipFonts?null:await getWebFontCSS(te,U);if(G){const ee=document.createElement("style"),ne=document.createTextNode(G);ee.appendChild(ne),te.firstChild?te.insertBefore(ee,te.firstChild):te.appendChild(ee)}}async function toSvg(te,U={}){const{width:G,height:ee}=getImageSize(te,U),ne=await cloneNode(te,U,!0);return await embedWebFonts(ne,U),await embedImages(ne,U),applyStyle(ne,U),await nodeToDataURL(ne,G,ee)}async function toCanvas(te,U={}){const{width:G,height:ee}=getImageSize(te,U),ne=await toSvg(te,U),re=await createImage(ne),oe=document.createElement("canvas"),ie=oe.getContext("2d"),le=U.pixelRatio||getPixelRatio(),ae=U.canvasWidth||G,se=U.canvasHeight||ee;return oe.width=ae*le,oe.height=se*le,U.skipAutoScale||checkCanvasDimensions(oe),oe.style.width=`${ae}`,oe.style.height=`${se}`,U.backgroundColor&&(ie.fillStyle=U.backgroundColor,ie.fillRect(0,0,oe.width,oe.height)),ie.drawImage(re,0,0,oe.width,oe.height),oe}async function toPng(te,U={}){return(await toCanvas(te,U)).toDataURL()}const resetUrl=(te="")=>{if(process.env.NODE_ENV==="development"){const U="http://192.168.70.09:30010/".split(":")[1].split("."),G=U[U.length-1],ee=`http://192.168.70.${Number(G)}:9000`;return te=te.replace("http://172.17.95.13:9000",ee),te=te.replace("http://172.29.26.123:9000",ee),te=te.replace("http://192.168.0.22:9000",ee),te}return te=te.replace(/http:\/\/172\.17\.95\.13:9000/g,""),te=te.replace(/http:\/\/172\.29\.26\.123:9000/g,""),te=te.replace(/http:\/\/172\.17\.95\.13:9000/g,""),te},echartsTypeList={1:{name:"折线图",icon:"ri-line-chart-line"},2:{name:"饼状图",icon:"ri-pie-chart-line"},3:{name:"柱状图",icon:"ri-bar-chart-2-line"},4:{name:"雷达图",icon:"ri-radar-line"},5:{name:"柱状折线图",icon:"ri-bar-chart-line"},6:{name:"散点图",icon:"ri-bubble-chart-line"},7:{name:"单值",icon:"ri-infinity-line"},8:{name:"表格",icon:"ri-grid-fill"},9:{name:"地图",icon:"ri-road-map-line"}},chartJsonFormat=te=>JSON.parse(te,(U,G)=>G&&typeof G=="string"&&G.indexOf("FUNCTION_FLAG")>-1?G.indexOf(".custom")==-1?new Function(`return ${G.toString().replace("FUNCTION_FLAG","")}`)():"":G),chartJsonToStringFormat=te=>JSON.stringify(te,(U,G)=>typeof G=="function"?"FUNCTION_FLAG"+G:G),base64ToBlob=(te,U="image/png",G="")=>{const ne=atob(te.split(",")[1]),re=[];for(let le=0;le<ne.length;le+=1024){const ae=ne.slice(le,le+1024),se=new Array(ae.length);for(let ue=0;ue<ae.length;ue++)se[ue]=ae.charCodeAt(ue);re.push(new Uint8Array(se))}const oe=new Blob(re,{type:U});return new File([oe],G||`${nanoid()}.png`,{type:U})},commonDataType=[{label:"字符串",value:"varchar"},{label:"整数",value:"int"},{label:"长整数",value:"bigint"},{label:"高精度小数",value:"decimal"},{label:"小数",value:"double"},{label:"日期",value:"date"},{label:"日期时间",value:"datetime"},{label:"文本",value:"text"},{label:"长文本",value:"longtext"}],dictArratToTree=te=>{const U=new Map,G=[];for(const ee of te)U.set(ee.code,{...ee,children:[]});for(const ee of te){const ne=U.get(ee.parentCode);ne?ne.children.push(U.get(ee.code)):G.push(U.get(ee.code))}return G},isMobile=/Android|webOS|iPhone|iPod|BlackBerry/i.test(navigator.userAgent),_withScopeId$F=te=>(vue.pushScopeId("data-v-25032105"),te=te(),vue.popScopeId(),te),_hoisted_1$1K={class:"flex items-center justify-between h-full pl-2 pr-2"},_hoisted_2$1q={class:"flex items-center text-sm"},_hoisted_3$1d=_withScopeId$F(()=>vue.createElementVNode("i",{class:"mr-2 text-sm ri-draft-line"},null,-1)),_hoisted_4$16={class:"flex items-center"},_hoisted_5$V=_withScopeId$F(()=>vue.createElementVNode("span",{class:"mr-2"},"缩放",-1)),_hoisted_6$J=_withScopeId$F(()=>vue.createElementVNode("div",{class:"head-btn"},[vue.createTextVNode(" 对齐方式 "),vue.createElementVNode("i",{class:"ml-1 ri-arrow-down-s-line"})],-1)),_sfc_main$32=vue.defineComponent({__name:"TopPannel",props:{title:{default:""},id:{default:""}},emits:["update:title","preview","save","back"],setup(te,{emit:U}){const G=te,ee=U,ne=screenDesignMainStore(),{proxy:re}=vue.getCurrentInstance(),oe=vue.computed(()=>Number((ne.scale*100).toFixed(0))),ie=[{label:"左侧对齐",value:"left"},{label:"居中对齐",value:"center"},{label:"右侧对齐",value:"right"},{label:"顶部对齐",value:"top"},{label:"中部对齐",value:"middle"},{label:"底部对齐",value:"bottom"},{label:"水平均分",value:"levelAround",disabled:()=>ne.getTargetWidget.length<=1},{label:"垂直均分",value:"verticalAround",disabled:()=>ne.getTargetWidget.length<=1}],le=fe=>{re.$baseEventBus.emit("change-align",fe)},ae=()=>{re.$baseEventBus.emit("auto-scale")},se=async fe=>{if(ne.setTargetWidget([]),ne.getCreateLoading)return;const ve=document.querySelector(".render");return ne.setCreateLoading(!0),await new Promise(he=>{setTimeout(()=>{toPng(ve).then(pe=>{if(ne.setCreateLoading(!1),he(pe),fe=="export"){const ge=document.createElement("a");ge.download=`${new Date().getTime()}.png`,ge.href=pe,ge.click(),ge.addEventListener("click",()=>{ge.remove()})}}).catch(pe=>{ne.setCreateLoading(!1),re.$message({type:"warning",message:"导出失败请联系管理员",plain:!0}),console.log(pe)})},100)})},ue=()=>{const fe=chartJsonFormat(chartJsonToStringFormat(ne.widgetConfg));fe.list.forEach(ve=>{var he;ve.chartId&&(((he=ve==null?void 0:ve.customize)==null?void 0:he.series)??[]).forEach(pe=>{pe.label&&delete pe.label.formatter})}),ee("preview",chartJsonToStringFormat(fe))},ce=()=>{re.$baseConfirm({content:"是否清空画布",customclass:"design-screen-messagebox",callConfirm:async()=>{re.$baseEventBus.emit("clear-stage")}})},de=async()=>{if(!G.title)return;const fe={config:chartJsonFormat(chartJsonToStringFormat(ne.widgetConfg)),id:G.id,title:G.title};fe.config.list.forEach(be=>{var xe;be.chartId&&(((xe=be==null?void 0:be.customize)==null?void 0:xe.series)??[]).forEach(Ce=>{Ce.label&&delete Ce.label.formatter})}),fe.config=chartJsonToStringFormat(fe.config);let he=(await se("file")).split(","),pe=he[0].match(/:(.*?);/)[1],ge=atob(he[1]),me=ge.length,_e=new Uint8Array(me);for(;me--;)_e[me]=ge.charCodeAt(me);const ye=new File([_e],new Date().getTime().toString(),{type:pe});new Compressor(ye,{quality:.9,convertSize:1e6,width:1920,success:async be=>{const xe=new FormData;xe.append("file",new File([be],be.name,{type:be.type}));let Ce;Ce=await re.$baseHttp.post("/api/ace-api/blade-resource/oss/endpoint/put-file",xe,{headers:{"Content-Type":"multipart/form-data",loading:!0}}),Ce&&(fe.imageUrl=Ce==null?void 0:Ce.data.link,fe.projectId=re.$baseGetCurrentProjectId(),Ce=await re.$baseHttp.post("/api/ace-data-center/screen/submit",fe,{headers:{loading:!0}}),Ce&&(ee("save",Ce.data),re.$message({type:"success",message:"操作成功",plain:!0})))},error:()=>{}})};return vue.onBeforeUnmount(()=>{re.$baseEventBus.off("clear-stage"),re.$baseEventBus.off("change-align"),re.$baseEventBus.off("auto-scale"),re.$baseEventBus.off("update-rect")}),(fe,ve)=>(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$1K,[vue.createElementVNode("div",_hoisted_2$1q,[vue.createElementVNode("i",{class:"mr-2 text-xl cursor-pointer ri-home-6-line",onClick:ve[0]||(ve[0]=he=>ee("back"))}),_hoisted_3$1d,vue.createVNode(vue.unref(elementPlus.ElInput),{placeholder:"请输入标题","model-value":fe.title,size:"small",onInput:ve[1]||(ve[1]=he=>ee("update:title",he))},null,8,["model-value"])]),vue.createElementVNode("div",_hoisted_4$16,[_hoisted_5$V,vue.createVNode(vue.unref(elementPlus.ElInputNumber),{class:"design-screen-input-number","model-value":vue.unref(oe),size:"small",max:100,min:0,controls:!0,onChange:ve[2]||(ve[2]=he=>vue.unref(ne).setSacle(he))},null,8,["model-value"]),vue.createElementVNode("div",{class:"ml-2 head-btn",onClick:ae},"自适应"),vue.createVNode(vue.unref(elementPlus.ElDropdown),{"popper-class":"design-screen-popper",onCommand:le,teleported:!1},{dropdown:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElDropdownMenu),null,{default:vue.withCtx(()=>[(vue.openBlock(),vue.createElementBlock(vue.Fragment,null,vue.renderList(ie,he=>vue.createVNode(vue.unref(elementPlus.ElDropdownItem),{key:he.value,command:he.value,disabled:(he.disabled&&he.disabled())??!1},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(he.label),1)]),_:2},1032,["command","disabled"])),64))]),_:1})]),default:vue.withCtx(()=>[_hoisted_6$J]),_:1}),vue.createElementVNode("div",{class:"head-btn",onClick:ve[3]||(ve[3]=he=>se("export"))},"生成图片"),vue.createElementVNode("div",{class:"head-btn",onClick:ue},"预览"),vue.createElementVNode("div",{class:vue.normalizeClass(["head-btn",{disabled:!G.title}]),onClick:de},"保存",2),vue.createElementVNode("div",{class:"head-btn",onClick:ce},"清空"),vue.createElementVNode("div",{class:"head-btn",onClick:ve[4]||(ve[4]=he=>{vue.unref(ne).setTargetWidget([]),vue.unref(ne).setRightPannel(!0)})}," 设置 "),vue.createElementVNode("div",{class:"head-btn",onClick:ve[5]||(ve[5]=vue.withModifiers(he=>vue.unref(ne).setTheme(),["stop"]))},[vue.createElementVNode("i",{class:vue.normalizeClass(vue.unref(ne).theme=="dark"?"ri-sun-line":"ri-moon-line")},null,2)]),vue.createElementVNode("div",{class:"head-btn",onClick:ve[6]||(ve[6]=he=>vue.unref(ne).setRightPannel(!vue.unref(ne).getRightPannel))},[vue.createElementVNode("i",{class:vue.normalizeClass(vue.unref(ne).getRightPannel?"ri-menu-unfold-fill":"ri-menu-fold-fill")},null,2)])])]))}}),TopPannel_vue_vue_type_style_index_0_scoped_25032105_lang="",_export_sfc$2=(te,U)=>{const G=te.__vccOpts||te;for(const[ee,ne]of U)G[ee]=ne;return G},TopPannel=_export_sfc$2(_sfc_main$32,[["__scopeId","data-v-25032105"]]),getItemFromElement=te=>document.getElementById(te.id),getItemStyle=te=>{let U=`translate(${te.x}px, ${te.y}px)`;return{width:te.w+"px",height:te.h+"px",zIndex:te.z,transform:U}},_withScopeId$E=te=>(vue.pushScopeId("data-v-7c2b133e"),te=te(),vue.popScopeId(),te),_hoisted_1$1J=_withScopeId$E(()=>vue.createElementVNode("div",{class:"flex items-center h-10 p-2",style:{"background-color":"var(--design-bg-color3)"}},[vue.createElementVNode("span",{class:"w-1 h-4 mr-2 rounded-sm bg-color-primary"}),vue.createTextVNode(" 图层 ")],-1)),_hoisted_2$1p={class:"flex-1 overflow-hidden"},_hoisted_3$1c=["onMouseenter","onClick"],_hoisted_4$15=_withScopeId$E(()=>vue.createElementVNode("i",{class:"ml-2 mr-2 text-xl cursor-move ri-drag-move-2-line sortable-handle"},null,-1)),_hoisted_5$U=["title"],_sfc_main$31=vue.defineComponent({__name:"layer",setup(te){const U=screenDesignMainStore();vue.getCurrentInstance(),vue.ref(null);const G=vue.computed(()=>U.targetsWidget.map(re=>re.id)),ee=()=>{const re=U.widgetConfg.list;re.forEach((oe,ie)=>{oe.z=re.length-ie})},ne=re=>{const oe=getItemFromElement(re);U.setTargetWidget([oe])};return(re,oe)=>(vue.openBlock(),vue.createElementBlock(vue.Fragment,null,[_hoisted_1$1J,vue.createElementVNode("div",_hoisted_2$1p,[vue.createVNode(vue.unref(elementPlus.ElScrollbar),null,{default:vue.withCtx(()=>[vue.createVNode(vue.unref(vueDraggablePlus.VueDraggable),{modelValue:vue.unref(U).widgetConfg.list,"onUpdate:modelValue":oe[1]||(oe[1]=ie=>vue.unref(U).widgetConfg.list=ie),animation:150,handle:".sortable-handle",onUpdate:ee},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vue.unref(U).getWidgetList,ie=>(vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(["flex items-center h-10 pl-2 pr-2 item",{active:vue.unref(G).includes(ie.id),"hover-item":vue.unref(U).widgetHoverIds.includes(ie.id)}]),key:ie.id,onMouseenter:vue.withModifiers(le=>vue.unref(U).setWidgetHoverIds([ie.id]),["stop"]),onMouseleave:oe[0]||(oe[0]=vue.withModifiers(le=>vue.unref(U).setWidgetHoverIds([]),["stop"])),onClick:vue.withModifiers(le=>ne(ie),["stop"])},[_hoisted_4$15,vue.createElementVNode("div",{class:"overflow-hidden text-xs whitespace-nowrap text-ellipsis",title:ie.name},vue.toDisplayString(ie.name),9,_hoisted_5$U)],42,_hoisted_3$1c))),128))]),_:1},8,["modelValue"])]),_:1})])],64))}}),layer_vue_vue_type_style_index_0_scoped_7c2b133e_lang="",Layer=_export_sfc$2(_sfc_main$31,[["__scopeId","data-v-7c2b133e"]]),commonSetting={root:{}},setting$z={...commonSetting,customize:{decorationColor1:"#1296db",decorationColor2:"#0de7c2"}},__vite_glob_0_0$5=Object.freeze(Object.defineProperty({__proto__:null,default:setting$z},Symbol.toStringTag,{value:"Module"})),setting$y={...commonSetting,customize:{decorationColor1:"#00c2ff",decorationColor2:"rgba(0, 194, 255, 0.3)"}},__vite_glob_0_1$5=Object.freeze(Object.defineProperty({__proto__:null,default:setting$y},Symbol.toStringTag,{value:"Module"})),setting$x={...commonSetting,customize:{decorationColor1:"#1a98fc",decorationColor2:"#2cf7fe"}},__vite_glob_0_2$4=Object.freeze(Object.defineProperty({__proto__:null,default:setting$x},Symbol.toStringTag,{value:"Module"})),setting$w={...commonSetting,customize:{decorationColor1:null,decorationColor2:null,scanDuration:3,haloDuration:2}},__vite_glob_0_3$4=Object.freeze(Object.defineProperty({__proto__:null,default:setting$w},Symbol.toStringTag,{value:"Module"})),setting$v={...commonSetting,customize:{decorationColor1:"#1296db",decorationColor2:"#0de7c2",duration:6,reverse:!1}},__vite_glob_0_4$4=Object.freeze(Object.defineProperty({__proto__:null,default:setting$v},Symbol.toStringTag,{value:"Module"})),setting$u={...commonSetting,customize:{decorationColor1:"#7acaec",decorationColor2:"#000"}},__vite_glob_0_5$4=Object.freeze(Object.defineProperty({__proto__:null,default:setting$u},Symbol.toStringTag,{value:"Module"})),setting$t={...commonSetting,customize:{decorationColor1:"rgba(255, 255, 255, 0.3)",decorationColor2:"rgba(255, 255, 255, 0.3)",duration:3,reverse:!1}},__vite_glob_0_6$4=Object.freeze(Object.defineProperty({__proto__:null,default:setting$t},Symbol.toStringTag,{value:"Module"})),setting$s={...commonSetting,customize:{decorationColor1:"#3f96a5",decorationColor2:"#3f96a5",duration:1.2}},__vite_glob_0_7$4=Object.freeze(Object.defineProperty({__proto__:null,default:setting$s},Symbol.toStringTag,{value:"Module"})),setting$r={...commonSetting,customize:{decorationColor1:"#7acaec",decorationColor2:"#7acaec"}},__vite_glob_0_8$3=Object.freeze(Object.defineProperty({__proto__:null,default:setting$r},Symbol.toStringTag,{value:"Module"})),setting$q={...commonSetting,customize:{decorationColor1:"#3f96a5",decorationColor2:"#3f96a5",reverse:!1}},__vite_glob_0_9$3=Object.freeze(Object.defineProperty({__proto__:null,default:setting$q},Symbol.toStringTag,{value:"Module"})),setting$p={...commonSetting,customize:{decorationColor1:"rgba(3, 166, 224, 0.8)",decorationColor2:"rgba(3, 166, 224, 0.5)",duration:3}},__vite_glob_0_10$3=Object.freeze(Object.defineProperty({__proto__:null,default:setting$p},Symbol.toStringTag,{value:"Module"})),modulesFiles$3=Object.assign({"../decoration/decoration1/setting.ts":__vite_glob_0_0$5,"../decoration/decoration10/setting.ts":__vite_glob_0_1$5,"../decoration/decoration11/setting.ts":__vite_glob_0_2$4,"../decoration/decoration12/setting.ts":__vite_glob_0_3$4,"../decoration/decoration2/setting.ts":__vite_glob_0_4$4,"../decoration/decoration3/setting.ts":__vite_glob_0_5$4,"../decoration/decoration4/setting.ts":__vite_glob_0_6$4,"../decoration/decoration5/setting.ts":__vite_glob_0_7$4,"../decoration/decoration6/setting.ts":__vite_glob_0_8$3,"../decoration/decoration8/setting.ts":__vite_glob_0_9$3,"../decoration/decoration9/setting.ts":__vite_glob_0_10$3}),modules$3=[];for(const[te,U]of Object.entries(modulesFiles$3)){const G=te.split("/")[2];let ee={};switch(G){case"decoration1":ee={name:"装饰一",w:350,h:30};break;case"decoration2":ee={name:"装饰二(可旋转)",w:350,h:20};break;case"decoration3":ee={name:"装饰三",w:350,h:30};break;case"decoration4":ee={name:"装饰四",w:30,h:320};break;case"decoration5":ee={name:"装饰五",w:350,h:50};break;case"decoration6":ee={name:"装饰六",w:350,h:50};break;case"decoration8":ee={name:"装饰七(可旋转)",w:350,h:50};break;case"decoration9":ee={name:"装饰八",w:150,h:150};break;case"decoration10":ee={name:"装饰九",w:350,h:50};break;case"decoration11":ee={name:"装饰十",w:350,h:100};break;case"decoration12":ee={name:"装饰十一",w:150,h:150};break}modules$3.push({...ee,type:G,...U.default})}modules$3.sort((te,U)=>Number(te.type.replace("decoration",""))-Number(U.type.replace("decoration","")));const setting$o={...commonSetting,customize:{borderMainColor:"#83bff6",borderSecondaryColor:"#00CED1",backgroundColor:"transparent"}},__vite_glob_0_0$4=Object.freeze(Object.defineProperty({__proto__:null,default:setting$o},Symbol.toStringTag,{value:"Module"})),setting$n={...commonSetting,customize:{borderMainColor:"#83bff6",borderSecondaryColor:"#00CED1",backgroundColor:"transparent"}},__vite_glob_0_1$4=Object.freeze(Object.defineProperty({__proto__:null,default:setting$n},Symbol.toStringTag,{value:"Module"})),setting$m={...commonSetting,customize:{borderMainColor:"#83bff6",borderSecondaryColor:"#00CED1",backgroundColor:"transparent",titleWidth:250,title:"我是标题"}},__vite_glob_0_2$3=Object.freeze(Object.defineProperty({__proto__:null,default:setting$m},Symbol.toStringTag,{value:"Module"})),setting$l={...commonSetting,customize:{borderMainColor:"#83bff6",borderSecondaryColor:"#00CED1",backgroundColor:"transparent"}},__vite_glob_0_3$3=Object.freeze(Object.defineProperty({__proto__:null,default:setting$l},Symbol.toStringTag,{value:"Module"})),setting$k={...commonSetting,customize:{borderMainColor:"#83bff6",borderSecondaryColor:"#00CED1",backgroundColor:"transparent"}},__vite_glob_0_4$3=Object.freeze(Object.defineProperty({__proto__:null,default:setting$k},Symbol.toStringTag,{value:"Module"})),setting$j={...commonSetting,customize:{borderMainColor:"#83bff6",borderSecondaryColor:"#00CED1",backgroundColor:"transparent"}},__vite_glob_0_5$3=Object.freeze(Object.defineProperty({__proto__:null,default:setting$j},Symbol.toStringTag,{value:"Module"})),setting$i={...commonSetting,customize:{borderMainColor:"#83bff6",borderSecondaryColor:"#00CED1",backgroundColor:"transparent"}},__vite_glob_0_6$3=Object.freeze(Object.defineProperty({__proto__:null,default:setting$i},Symbol.toStringTag,{value:"Module"})),setting$h={...commonSetting,customize:{borderMainColor:"#83bff6",borderSecondaryColor:"#00CED1",backgroundColor:"transparent",reverse:!1}},__vite_glob_0_7$3=Object.freeze(Object.defineProperty({__proto__:null,default:setting$h},Symbol.toStringTag,{value:"Module"})),setting$g={...commonSetting,customize:{borderMainColor:"#83bff6",borderSecondaryColor:"#00CED1",backgroundColor:"transparent",reverse:!1}},__vite_glob_0_8$2=Object.freeze(Object.defineProperty({__proto__:null,default:setting$g},Symbol.toStringTag,{value:"Module"})),setting$f={...commonSetting,customize:{borderMainColor:"#83bff6",borderSecondaryColor:"#00CED1",backgroundColor:"transparent"}},__vite_glob_0_9$2=Object.freeze(Object.defineProperty({__proto__:null,default:setting$f},Symbol.toStringTag,{value:"Module"})),setting$e={...commonSetting,customize:{borderMainColor:"#83bff6",borderSecondaryColor:"#00CED1",backgroundColor:"transparent"}},__vite_glob_0_10$2=Object.freeze(Object.defineProperty({__proto__:null,default:setting$e},Symbol.toStringTag,{value:"Module"})),setting$d={...commonSetting,customize:{borderMainColor:"#83bff6",borderSecondaryColor:"#00CED1",backgroundColor:"transparent",duration:3,reverse:!1}},__vite_glob_0_11=Object.freeze(Object.defineProperty({__proto__:null,default:setting$d},Symbol.toStringTag,{value:"Module"})),setting$c={...commonSetting,customize:{borderMainColor:"#83bff6",borderSecondaryColor:"#00CED1",backgroundColor:"transparent"}},__vite_glob_0_12=Object.freeze(Object.defineProperty({__proto__:null,default:setting$c},Symbol.toStringTag,{value:"Module"})),modulesFiles$2=Object.assign({"../border/border1/setting.ts":__vite_glob_0_0$4,"../border/border10/setting.ts":__vite_glob_0_1$4,"../border/border11/setting.ts":__vite_glob_0_2$3,"../border/border12/setting.ts":__vite_glob_0_3$3,"../border/border13/setting.ts":__vite_glob_0_4$3,"../border/border2/setting.ts":__vite_glob_0_5$3,"../border/border3/setting.ts":__vite_glob_0_6$3,"../border/border4/setting.ts":__vite_glob_0_7$3,"../border/border5/setting.ts":__vite_glob_0_8$2,"../border/border6/setting.ts":__vite_glob_0_9$2,"../border/border7/setting.ts":__vite_glob_0_10$2,"../border/border8/setting.ts":__vite_glob_0_11,"../border/border9/setting.ts":__vite_glob_0_12}),modules$2=[];for(const[te,U]of Object.entries(modulesFiles$2)){const G=te.split("/")[2],ne={name:{border1:"边框一",border2:"边框二",border3:"边框三",border4:"边框四(可翻转)",border5:"边框五(可翻转)",border6:"边框六",border7:"边框七",border8:"边框八",border9:"边框九",border10:"边框十",border11:"边框十一",border12:"边框十二",border13:"边框十三"}[G],w:450,h:320,type:G,...U.default};modules$2.push({...ne})}modules$2.sort((te,U)=>Number(te.type.replace("border",""))-Number(U.type.replace("border","")));const setting$b={...commonSetting,customize:{gradientColor0:"#1296db",gradientColor1:"#1296db",width:2}},__vite_glob_0_0$3=Object.freeze(Object.defineProperty({__proto__:null,default:setting$b},Symbol.toStringTag,{value:"Module"})),setting$a={...commonSetting,customize:{url:"https://cn.bing.com/"}},__vite_glob_0_1$3=Object.freeze(Object.defineProperty({__proto__:null,default:setting$a},Symbol.toStringTag,{value:"Module"})),setting$9={...commonSetting,customize:{fit:"contain",url:"https://fuss10.elemecdn.com/e/5d/4a731a90594a4af544c0c25941171jpeg.jpeg"}},__vite_glob_0_2$2=Object.freeze(Object.defineProperty({__proto__:null,default:setting$9},Symbol.toStringTag,{value:"Module"})),setting$8={...commonSetting,customize:{title:"1234",color:"#1296db",fontSize:20,fontWeight:700,textAlign:"center",letterSpacing:1,colorPosition:"top",startColor:"#1296db",endColor:"#1296db",formula:"",toFixed:2}},__vite_glob_0_3$2=Object.freeze(Object.defineProperty({__proto__:null,default:setting$8},Symbol.toStringTag,{value:"Module"})),setting$7={...commonSetting,customize:{colorPosition:"bottom",gradientColor0:"#1296db",gradientColor1:"#1296db",borderRadius:0}},__vite_glob_0_4$2=Object.freeze(Object.defineProperty({__proto__:null,default:setting$7},Symbol.toStringTag,{value:"Module"})),setting$6={...commonSetting,customize:{title:"文本数据",color:"#1296db",fontSize:20,fontWeight:700,textAlign:"center",letterSpacing:1,colorPosition:"top",startColor:"#1296db",endColor:"#1296db"}},__vite_glob_0_5$2=Object.freeze(Object.defineProperty({__proto__:null,default:setting$6},Symbol.toStringTag,{value:"Module"})),setting$5={...commonSetting,customize:{title:"1234",color:"#1296db",fontSize:20,fontWeight:700,textAlign:"center",letterSpacing:1,colorPosition:"top",startColor:"#1296db",endColor:"#1296db"}},__vite_glob_0_6$2=Object.freeze(Object.defineProperty({__proto__:null,default:setting$5},Symbol.toStringTag,{value:"Module"})),setting$4={...commonSetting,customize:{gradientColor0:"#1296db",gradientColor1:"#1296db",height:2}},__vite_glob_0_7$2=Object.freeze(Object.defineProperty({__proto__:null,default:setting$4},Symbol.toStringTag,{value:"Module"})),modulesFiles$1=Object.assign({"../basic/horizontal-line/setting.ts":__vite_glob_0_0$3,"../basic/iframe/setting.ts":__vite_glob_0_1$3,"../basic/img/setting.ts":__vite_glob_0_2$2,"../basic/number/setting.ts":__vite_glob_0_3$2,"../basic/square/setting.ts":__vite_glob_0_4$2,"../basic/text/setting.ts":__vite_glob_0_5$2,"../basic/time/setting.ts":__vite_glob_0_6$2,"../basic/vertical-line/setting.ts":__vite_glob_0_7$2}),modules$1=[];for(const[te,U]of Object.entries(modulesFiles$1)){const G=te.split("/")[2];let ee={};switch(G){case"square":ee={name:"正方形",w:200,h:200};break;case"img":ee={name:"图片",w:200,h:200};break;case"number":ee={name:"数字",w:200,h:50};break;case"text":ee={name:"文本",w:200,h:50};break;case"time":ee={name:"当前时间",w:200,h:50};break;case"horizontal-line":ee={name:"竖线",w:10,h:100};break;case"vertical-line":ee={name:"横线",w:100,h:10};break;case"iframe":ee={name:"iframe",w:1e3,h:500};break}modules$1.push({...ee,type:G,...U.default})}const sortMap$1={text:1,number:2,img:3,time:4,"vertical-line":5,"horizontal-line":6,circular:7,square:8,iframe:9};modules$1.sort((te,U)=>(sortMap$1[te.type]??99)-(sortMap$1[U.type]??99));const setting$3={...commonSetting,customize:{backgroundColor:"transparent",borderColor:"#ebeef5",borderTopWidth:0,borderRightWidth:0,borderBottomWidth:1,borderLeftWidth:0,color:"#000",fontSize:14,borderRadius:0,placeholder:"请输入文字",modelValue:"",linkage:[]}},__vite_glob_0_0$2=Object.freeze(Object.defineProperty({__proto__:null,default:setting$3},Symbol.toStringTag,{value:"Module"})),setting$2={...commonSetting,customize:{placeholder:"请选择",clearable:!0,modelValue:"",linkage:[]}},__vite_glob_0_1$2=Object.freeze(Object.defineProperty({__proto__:null,default:setting$2},Symbol.toStringTag,{value:"Module"})),modulesFiles=Object.assign({"../control/input/setting.ts":__vite_glob_0_0$2,"../control/select/setting.ts":__vite_glob_0_1$2}),modules=[];for(const[te,U]of Object.entries(modulesFiles)){const G=te.split("/")[2];let ee={};switch(G){case"input":ee={name:"输入框",w:200,h:40};break;case"select":ee={name:"下拉框",w:200,h:40};break}modules.push({...ee,type:G,...U.default})}const sortMap={input:1};modules.sort((te,U)=>(sortMap[te.type]??99)-(sortMap[U.type]??99));const _withScopeId$D=te=>(vue.pushScopeId("data-v-945ce3a3"),te=te(),vue.popScopeId(),te),_hoisted_1$1I={class:"text-xs"},_hoisted_2$1o={class:"flex items-center h-10 p-2",style:{"background-color":"var(--design-bg-color3)"}},_hoisted_3$1b=_withScopeId$D(()=>vue.createElementVNode("span",{class:"w-1 h-4 mr-2 rounded-sm bg-color-primary"},null,-1)),_hoisted_4$14={class:"flex-1 p-2 overflow-hidden"},_hoisted_5$T=["onClick"],_hoisted_6$I=["data-type","data-id"],_hoisted_7$B={class:"p-1 overflow-hidden text-xs text-ellipsis whitespace-nowrap",style:{"background-color":"var(--design-bg-color4)"}},_hoisted_8$v={class:"flex items-center justify-center"},_hoisted_9$q={key:0,class:"flex items-center justify-center pb-3 mt-2"},_hoisted_10$l=["onClick"],_hoisted_11$g=["data-type","data-ptype"],_hoisted_12$e={class:"p-1 text-xs",style:{"background-color":"var(--design-bg-color4)"}},_hoisted_13$c={class:"flex items-center justify-center pt-1 pb-1",style:{"background-color":"var(--design-bg-color3)"}},_sfc_main$30=vue.defineComponent({__name:"leftPannel",setup(te){const{proxy:U}=vue.getCurrentInstance(),G=vue.ref([{label:"图层",type:"layer",icon:"ri-stack-line"},{label:"基础",type:"base",icon:"ri-supabase-line",list:modules$1},{label:"指标",type:"indicators",icon:"ri-database-2-line",list:[]},{label:"边框",type:"border",icon:"ri-body-scan-line",list:modules$2},{label:"装饰",type:"decoration",icon:"ri-sparkling-line",list:modules$3},{label:"控件",type:"controal",icon:"ri-remote-control-2-line",list:modules}]),ee=vue.ref("layer"),ne=re=>{const oe=vue.unref(G).find(ie=>ie.type=="indicators");oe&&(oe.list=oe.list.map(ie=>({...ie,isOpen:ie.isOpen?!1:ie.id==re.id})))};return vue.nextTick(()=>{U.$baseHttp.get("/api/ace-data-center/indicators/loadIndicatorsMenu",{params:{projectId:U.$baseGetCurrentProjectId()}}).then(re=>{const oe=[],ie=vue.unref(G).find(le=>le.type=="indicators");ie&&(ie.list=Object.keys(re.data).map((le,ae)=>({name:le,id:le,isOpen:ae==0,children:re.data[le].map(se=>{var ue;return{...se,echartsType:(ue=se.echarts)!=null&&ue.length?se.echarts[0].echartsType:""}})})),oe.push(...ie.list.map(le=>le.children))),vue.nextTick(()=>{document.querySelectorAll(".drag-node").forEach(ae=>{const{ptype:se,type:ue,id:ce}=ae.dataset;ae.addEventListener("dragstart",de=>{var ve;let fe=(ve=vue.unref(G).find(he=>he.type==se))==null?void 0:ve.list.find(he=>he.type==ue);if(["MODEL_INDICATORS","INDICATORS"].includes(ue)){const he=oe.flat().find(ge=>ge.id==ce),pe=he==null?void 0:he.echarts.find(ge=>ge.echartsType==he.echartsType);fe={name:`${he.name}(${echartsTypeList[pe.echartsType].name})`,chartType:he.echartsType,chartId:he.id,indicatorsId:ce,w:500,h:500,customize:pe.echartsConfig,modelType:he.type}}U.$baseEventBus.emit("drag-start"),de.dataTransfer.setData("dragComponent",JSON.stringify({...fe,id:nanoid(),locked:!1}))}),ae.addEventListener("dragend",de=>{U.$baseEventBus.emit("drag-end")})}),document.addEventListener("drop",ae=>{ae.preventDefault()},!1)})})}),vue.onBeforeUnmount(()=>{U.$baseEventBus.off("drag-start"),U.$baseEventBus.off("drag-end")}),(re,oe)=>(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElTabs),{"tab-position":"left",modelValue:vue.unref(ee),"onUpdate:modelValue":oe[0]||(oe[0]=ie=>vue.isRef(ee)?ee.value=ie:null),onKeydownCapture:oe[1]||(oe[1]=vue.withKeys(vue.withModifiers(()=>{},["stop","prevent"]),["native"]))},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vue.unref(G),ie=>(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElTabPane),{name:ie.type,key:ie.type},{label:vue.withCtx(()=>[vue.createElementVNode("div",null,[vue.createElementVNode("i",{class:vue.normalizeClass(["text-xl",ie.icon])},null,2),vue.createElementVNode("div",_hoisted_1$1I,vue.toDisplayString(ie.label),1)])]),default:vue.withCtx(()=>[ie.type=="layer"?(vue.openBlock(),vue.createBlock(Layer,{key:0})):(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:1},[vue.createElementVNode("div",_hoisted_2$1o,[_hoisted_3$1b,vue.createTextVNode(" "+vue.toDisplayString(ie.label),1)]),vue.createElementVNode("div",_hoisted_4$14,[vue.createVNode(vue.unref(elementPlus.ElScrollbar),null,{default:vue.withCtx(()=>[ie.type=="indicators"?(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,{key:0},vue.renderList(ie.list,le=>(vue.openBlock(),vue.createElementBlock("div",{key:le.label},[vue.createElementVNode("div",{class:"mb-2 overflow-hidden cursor-pointer text-ellipsis whitespace-nowrap",onClick:ae=>ne(le)},[vue.createElementVNode("i",{class:vue.normalizeClass(["text-base",le.isOpen?"ri-folder-open-line":"ri-folder-line"])},null,2),vue.createTextVNode(" "+vue.toDisplayString(le.name),1)],8,_hoisted_5$T),vue.withDirectives(vue.createElementVNode("div",null,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(le.children,ae=>{var se;return vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:ae.modelId},[["MODEL_INDICATORS","INDICATORS"].includes(ae.type)&&((se=ae.echarts)!=null&&se.length)?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"mb-2 cursor-move drag-node",draggable:!0,"data-type":ae.type,"data-id":ae.id},[vue.createElementVNode("div",_hoisted_7$B,vue.toDisplayString(ae.name),1),vue.createElementVNode("div",_hoisted_8$v,[vue.createElementVNode("div",{class:vue.normalizeClass([`bg-${ae.echartsType}`,"item-img"])},null,2)]),ae.echarts.length>1?(vue.openBlock(),vue.createElementBlock("div",_hoisted_9$q,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(ae.echarts,ue=>(vue.openBlock(),vue.createElementBlock("i",{class:vue.normalizeClass([[vue.unref(echartsTypeList)[ue.echartsType].icon,ue.echartsType==ae.echartsType?"activeCode":""],"cursor-pointer chart-item"]),onClick:ce=>ae.echartsType=ue.echartsType,key:ue.code},null,10,_hoisted_10$l))),128))])):vue.createCommentVNode("",!0)],8,_hoisted_6$I)):vue.createCommentVNode("",!0)],64)}),128))],512),[[vue.vShow,le.isOpen]])]))),128)):(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,{key:1},vue.renderList(ie.list,le=>(vue.openBlock(),vue.createElementBlock("div",{key:ie.type,class:"mb-2 cursor-move drag-node",draggable:!0,"data-type":le.type,"data-ptype":ie.type},[vue.createElementVNode("div",_hoisted_12$e,vue.toDisplayString(le.name),1),vue.createElementVNode("div",_hoisted_13$c,[vue.createElementVNode("div",{class:vue.normalizeClass([`bg-${le.type}`,"item-img"])},null,2)])],8,_hoisted_11$g))),128))]),_:2},1024)])],64))]),_:2},1032,["name"]))),128))]),_:1},8,["modelValue"]))}}),leftPannel_vue_vue_type_style_index_0_scoped_945ce3a3_lang="",LeftPannel=_export_sfc$2(_sfc_main$30,[["__scopeId","data-v-945ce3a3"]]);function tryOnScopeDispose(te){return vue.getCurrentScope()?(vue.onScopeDispose(te),!0):!1}function toValue(te){return typeof te=="function"?te():vue.unref(te)}const isClient=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const toString$1=Object.prototype.toString,isObject$2=te=>toString$1.call(te)==="[object Object]",noop$2=()=>{};function unrefElement(te){var U;const G=toValue(te);return(U=G==null?void 0:G.$el)!=null?U:G}const defaultWindow=isClient?window:void 0,defaultDocument=isClient?window.document:void 0;function useEventListener(...te){let U,G,ee,ne;if(typeof te[0]=="string"||Array.isArray(te[0])?([G,ee,ne]=te,U=defaultWindow):[U,G,ee,ne]=te,!U)return noop$2;Array.isArray(G)||(G=[G]),Array.isArray(ee)||(ee=[ee]);const re=[],oe=()=>{re.forEach(se=>se()),re.length=0},ie=(se,ue,ce,de)=>(se.addEventListener(ue,ce,de),()=>se.removeEventListener(ue,ce,de)),le=vue.watch(()=>[unrefElement(U),toValue(ne)],([se,ue])=>{if(oe(),!se)return;const ce=isObject$2(ue)?{...ue}:ue;re.push(...G.flatMap(de=>ee.map(fe=>ie(se,de,fe,ce))))},{immediate:!0,flush:"post"}),ae=()=>{le(),oe()};return tryOnScopeDispose(ae),ae}function createKeyPredicate(te){return typeof te=="function"?te:typeof te=="string"?U=>U.key===te:Array.isArray(te)?U=>te.includes(U.key):()=>!0}function onKeyStroke(...te){let U,G,ee={};te.length===3?(U=te[0],G=te[1],ee=te[2]):te.length===2?typeof te[1]=="object"?(U=!0,G=te[0],ee=te[1]):(U=te[0],G=te[1]):(U=!0,G=te[0]);const{target:ne=defaultWindow,eventName:re="keydown",passive:oe=!1,dedupe:ie=!1}=ee,le=createKeyPredicate(U);return useEventListener(ne,re,se=>{se.repeat&&toValue(ie)||le(se)&&G(se)},oe)}const defaultEvents=["mousedown","mouseup","keydown","keyup"];function useKeyModifier(te,U={}){const{events:G=defaultEvents,document:ee=defaultDocument,initial:ne=null}=U,re=vue.ref(ne);return ee&&G.forEach(oe=>{useEventListener(ee,oe,ie=>{typeof ie.getModifierState=="function"&&(re.value=ie.getModifierState(te))})}),re}var __defProp=Object.defineProperty,__getOwnPropSymbols=Object.getOwnPropertySymbols,__hasOwnProp=Object.prototype.hasOwnProperty,__propIsEnum=Object.prototype.propertyIsEnumerable,__defNormalProp=(te,U,G)=>U in te?__defProp(te,U,{enumerable:!0,configurable:!0,writable:!0,value:G}):te[U]=G,__spreadValues=(te,U)=>{for(var G in U||(U={}))__hasOwnProp.call(U,G)&&__defNormalProp(te,G,U[G]);if(__getOwnPropSymbols)for(var G of __getOwnPropSymbols(U))__propIsEnum.call(U,G)&&__defNormalProp(te,G,U[G]);return te};const lineProps={scale:Number,thick:Number,palette:Object,index:Number,start:Number,vertical:Boolean,value:Number,isShowReferLine:Boolean};var _export_sfc$1=(te,U)=>{const G=te.__vccOpts||te;for(const[ee,ne]of U)G[ee]=ne;return G};const _sfc_main$3$1=vue.defineComponent({name:"LineRuler",props:lineProps,emits:["onMouseDown","onRelease","onRemove"],setup(te,{emit:U}){const G=vue.ref(0),ee=vue.ref(!0);vue.onMounted(()=>{G.value=te.value});const ne=se=>{ee.value=se>=0},re=vue.computed(()=>{const se=(G.value-te.start)*te.scale;ne(se);const ue=se+"px";return te.vertical?{top:ue}:{left:ue}}),oe=vue.computed(()=>{var se;const ue=`1px solid ${(se=te.palette)==null?void 0:se.lineColor}`,ce=te.vertical?{borderTop:ue}:{borderLeft:ue},de=te.isShowReferLine?te.vertical?"ns-resize":"ew-resize":"none";return __spreadValues({cursor:de},ce)}),ie=vue.computed(()=>te.vertical?{left:te.thick+"px"}:{top:te.thick+"px"});return{startValue:G,showLine:ee,offset:re,borderCursor:oe,actionStyle:ie,handleDown:se=>{const ue=te.vertical?se.clientY:se.clientX,ce=G.value;U("onMouseDown");const de=ve=>{const he=te.vertical?ve.clientY:ve.clientX,pe=Math.round(ce+(he-ue)/te.scale);G.value=pe},fe=()=>{U("onRelease",G.value,te.index),document.removeEventListener("mousemove",de),document.removeEventListener("mouseup",fe)};document.addEventListener("mousemove",de),document.addEventListener("mouseup",fe)},handleRemove:()=>{U("onRemove",te.index)}}}}),_hoisted_1$2$1={class:"value"};function _sfc_render$3(te,U,G,ee,ne,re){return vue.withDirectives((vue.openBlock(),vue.createElementBlock("div",{class:"line",style:vue.normalizeStyle([te.offset,te.borderCursor]),onMousedown:U[1]||(U[1]=(...oe)=>te.handleDown&&te.handleDown(...oe))},[vue.createElementVNode("div",{class:"action",style:vue.normalizeStyle(te.actionStyle)},[vue.createElementVNode("span",{class:"del",onClick:U[0]||(U[0]=(...oe)=>te.handleRemove&&te.handleRemove(...oe))},"×"),vue.createElementVNode("span",_hoisted_1$2$1,vue.toDisplayString(te.startValue),1)],4)],36)),[[vue.vShow,te.showLine]])}var RulerLine=_export_sfc$1(_sfc_main$3$1,[["render",_sfc_render$3],["__scopeId","data-v-7cc5d020"]]);const getGridSize=te=>te<=.25?40:te<=.5?20:te<=1?10:te<=2?5:te<=4?2:1,FONT_SCALE=.83,drawCavaseRuler=(te,U,G,ee,ne,re)=>{const{scale:oe,width:ie,height:le,ratio:ae,palette:se}=ne,{bgColor:ue,fontColor:ce,shadowColor:de,longfgColor:fe,shortfgColor:ve}=se;if(te.scale(ae,ae),te.clearRect(0,0,ie,le),te.fillStyle=ue,te.fillRect(0,0,ie,le),ee){const $e=(G-U)*oe,Ee=ee*oe;te.fillStyle=de,re?te.fillRect($e,0,Ee,le*3/8):te.fillRect(0,$e,ie*3/8,Ee)}const he=getGridSize(oe),pe=he*oe,ge=he*10,me=ge*oe,_e=Math.floor(U/he)*he,ye=Math.floor(U/ge)*ge,be=(_e-U)/he*pe,xe=(ye-U)/ge*me,Ce=U+Math.ceil((re?ie:le)/oe);te.beginPath(),te.fillStyle=ce,te.strokeStyle=fe;for(let $e=ye,Ee=0;$e<Ce;$e+=ge,Ee++){const Ve=xe+Ee*me+.5;re?te.moveTo(Ve,0):te.moveTo(0,Ve),te.save(),re?te.translate(Ve,le*.4):te.translate(ie*.4,Ve),re||te.rotate(-Math.PI/2),te.scale(FONT_SCALE/ae,FONT_SCALE/ae),te.fillText($e.toString(),4*ae,7*ae),te.restore(),re?te.lineTo(Ve,le*9/16):te.lineTo(ie*9/16,Ve)}te.stroke(),te.closePath(),te.beginPath(),te.strokeStyle=ve;for(let $e=_e,Ee=0;$e<Ce;$e+=he,Ee++){const Ve=be+Ee*pe+.5;re?te.moveTo(Ve,0):te.moveTo(0,Ve),$e%ge!==0&&(re?te.lineTo(Ve,le*1/4):te.lineTo(ie*1/4,Ve))}te.stroke(),te.closePath(),te.setTransform(1,0,0,1,0,0)},_sfc_main$2$1=vue.defineComponent({name:"CanvasRuler",props:{showIndicator:Boolean,valueNum:Number,scale:Number,ratio:Number,palette:Object,vertical:Boolean,start:Number,width:Number,height:Number,selectStart:Number,selectLength:Number},emits:["onAddLine","update:showIndicator","update:valueNum"],setup(te,{emit:U}){const G=vue.reactive({canvasContext:null});let ee=1;const ne=vue.ref(null);vue.onMounted(()=>{ee=te.ratio||window.devicePixelRatio||1,re(),oe(ee),ie(ee)});const re=()=>{G.canvasContext=ne.value&&ne.value.getContext("2d")},oe=ae=>{if(ne.value){ne.value.width=te.width*ae,ne.value.height=te.height*ae;const se=G.canvasContext;se&&(se.font=`${12*ae}px -apple-system,
|
|
10
|
+
`)}async function embedWebFonts(te,U){const G=U.fontEmbedCSS!=null?U.fontEmbedCSS:U.skipFonts?null:await getWebFontCSS(te,U);if(G){const ee=document.createElement("style"),ne=document.createTextNode(G);ee.appendChild(ne),te.firstChild?te.insertBefore(ee,te.firstChild):te.appendChild(ee)}}async function toSvg(te,U={}){const{width:G,height:ee}=getImageSize(te,U),ne=await cloneNode(te,U,!0);return await embedWebFonts(ne,U),await embedImages(ne,U),applyStyle(ne,U),await nodeToDataURL(ne,G,ee)}async function toCanvas(te,U={}){const{width:G,height:ee}=getImageSize(te,U),ne=await toSvg(te,U),re=await createImage(ne),oe=document.createElement("canvas"),ie=oe.getContext("2d"),le=U.pixelRatio||getPixelRatio(),ae=U.canvasWidth||G,se=U.canvasHeight||ee;return oe.width=ae*le,oe.height=se*le,U.skipAutoScale||checkCanvasDimensions(oe),oe.style.width=`${ae}`,oe.style.height=`${se}`,U.backgroundColor&&(ie.fillStyle=U.backgroundColor,ie.fillRect(0,0,oe.width,oe.height)),ie.drawImage(re,0,0,oe.width,oe.height),oe}async function toPng(te,U={}){return(await toCanvas(te,U)).toDataURL()}const resetUrl=(te="")=>{if(process.env.NODE_ENV==="development"){const U="http://192.168.70.09:30010/".split(":")[1].split("."),G=U[U.length-1],ee=`http://192.168.70.${Number(G)}:9000`;return te=te.replace("http://172.17.95.13:9000",ee),te=te.replace("http://172.29.26.123:9000",ee),te=te.replace("http://192.168.0.22:9000",ee),te}return te=te.replace(/http:\/\/172\.17\.95\.13:9000/g,""),te=te.replace(/http:\/\/172\.29\.26\.123:9000/g,""),te=te.replace(/http:\/\/172\.17\.95\.13:9000/g,""),te},echartsTypeList={1:{name:"折线图",icon:"ri-line-chart-line"},2:{name:"饼状图",icon:"ri-pie-chart-line"},3:{name:"柱状图",icon:"ri-bar-chart-2-line"},4:{name:"雷达图",icon:"ri-radar-line"},5:{name:"柱状折线图",icon:"ri-bar-chart-line"},6:{name:"散点图",icon:"ri-bubble-chart-line"},7:{name:"单值",icon:"ri-infinity-line"},8:{name:"表格",icon:"ri-grid-fill"},9:{name:"地图",icon:"ri-road-map-line"}},chartJsonFormat=te=>JSON.parse(te,(U,G)=>G&&typeof G=="string"&&G.indexOf("FUNCTION_FLAG")>-1?G.indexOf(".custom")==-1?new Function(`return ${G.toString().replace("FUNCTION_FLAG","")}`)():"":G),chartJsonToStringFormat=te=>JSON.stringify(te,(U,G)=>typeof G=="function"?"FUNCTION_FLAG"+G:G),base64ToBlob=(te,U="image/png",G="")=>{const ne=atob(te.split(",")[1]),re=[];for(let le=0;le<ne.length;le+=1024){const ae=ne.slice(le,le+1024),se=new Array(ae.length);for(let ue=0;ue<ae.length;ue++)se[ue]=ae.charCodeAt(ue);re.push(new Uint8Array(se))}const oe=new Blob(re,{type:U});return new File([oe],G||`${nanoid()}.png`,{type:U})},commonDataType=[{label:"字符串",value:"varchar"},{label:"整数",value:"int"},{label:"长整数",value:"bigint"},{label:"高精度小数",value:"decimal"},{label:"小数",value:"double"},{label:"日期",value:"date"},{label:"日期时间",value:"datetime"},{label:"文本",value:"text"},{label:"长文本",value:"longtext"}],dictArratToTree=te=>{const U=new Map,G=[];for(const ee of te)U.set(ee.code,{...ee,children:[]});for(const ee of te){const ne=U.get(ee.parentCode);ne?ne.children.push(U.get(ee.code)):G.push(U.get(ee.code))}return G},isMobile=/Android|webOS|iPhone|iPod|BlackBerry/i.test(navigator.userAgent),_withScopeId$F=te=>(vue.pushScopeId("data-v-7f398de1"),te=te(),vue.popScopeId(),te),_hoisted_1$1K={class:"flex items-center justify-between h-full pl-2 pr-2"},_hoisted_2$1q={class:"flex items-center text-sm"},_hoisted_3$1d=_withScopeId$F(()=>vue.createElementVNode("i",{class:"mr-2 text-sm ri-draft-line"},null,-1)),_hoisted_4$16={class:"flex items-center"},_hoisted_5$V=_withScopeId$F(()=>vue.createElementVNode("span",{class:"ml-2"},"缩放",-1)),_hoisted_6$J=_withScopeId$F(()=>vue.createElementVNode("div",{class:"head-btn"},[vue.createTextVNode(" 对齐方式 "),vue.createElementVNode("i",{class:"ml-1 ri-arrow-down-s-line"})],-1)),_sfc_main$32=vue.defineComponent({__name:"TopPannel",props:{title:{default:""},id:{default:""}},emits:["update:title","preview","save","back"],setup(te,{emit:U}){const G=te,ee=U,ne=screenDesignMainStore(),{proxy:re}=vue.getCurrentInstance(),oe=vue.computed(()=>Number((ne.scale*100).toFixed(0))),ie=[{label:"左侧对齐",value:"left"},{label:"居中对齐",value:"center"},{label:"右侧对齐",value:"right"},{label:"顶部对齐",value:"top"},{label:"中部对齐",value:"middle"},{label:"底部对齐",value:"bottom"},{label:"水平均分",value:"levelAround",disabled:()=>ne.getTargetWidget.length<=1},{label:"垂直均分",value:"verticalAround",disabled:()=>ne.getTargetWidget.length<=1}],le=fe=>{re.$baseEventBus.emit("change-align",fe)},ae=()=>{re.$baseEventBus.emit("auto-scale")},se=async fe=>{if(ne.setTargetWidget([]),ne.getCreateLoading)return;const ve=document.querySelector(".render");return ne.setCreateLoading(!0),await new Promise(he=>{setTimeout(()=>{toPng(ve).then(pe=>{if(ne.setCreateLoading(!1),he(pe),fe=="export"){const ge=document.createElement("a");ge.download=`${new Date().getTime()}.png`,ge.href=pe,ge.click(),ge.addEventListener("click",()=>{ge.remove()})}}).catch(pe=>{ne.setCreateLoading(!1),re.$message({type:"warning",message:"导出失败请联系管理员",plain:!0}),console.log(pe)})},100)})},ue=()=>{const fe=chartJsonFormat(chartJsonToStringFormat(ne.widgetConfg));fe.list.forEach(ve=>{var he;ve.chartId&&(((he=ve==null?void 0:ve.customize)==null?void 0:he.series)??[]).forEach(pe=>{pe.label&&delete pe.label.formatter})}),ee("preview",chartJsonToStringFormat(fe))},ce=()=>{re.$baseConfirm({content:"是否清空画布",customclass:"design-screen-messagebox",callConfirm:async()=>{re.$baseEventBus.emit("clear-stage")}})},de=async()=>{if(!G.title)return;const fe={config:chartJsonFormat(chartJsonToStringFormat(ne.widgetConfg)),id:G.id,title:G.title};fe.config.list.forEach(be=>{var xe;be.chartId&&(((xe=be==null?void 0:be.customize)==null?void 0:xe.series)??[]).forEach(Ce=>{Ce.label&&delete Ce.label.formatter})}),fe.config=chartJsonToStringFormat(fe.config);let he=(await se("file")).split(","),pe=he[0].match(/:(.*?);/)[1],ge=atob(he[1]),me=ge.length,_e=new Uint8Array(me);for(;me--;)_e[me]=ge.charCodeAt(me);const ye=new File([_e],new Date().getTime().toString(),{type:pe});new Compressor(ye,{quality:.9,convertSize:1e6,width:1920,success:async be=>{const xe=new FormData;xe.append("file",new File([be],be.name,{type:be.type}));let Ce;Ce=await re.$baseHttp.post("/api/ace-api/blade-resource/oss/endpoint/put-file",xe,{headers:{"Content-Type":"multipart/form-data",loading:!0}}),Ce&&(fe.imageUrl=Ce==null?void 0:Ce.data.link,fe.projectId=re.$baseGetCurrentProjectId(),Ce=await re.$baseHttp.post("/api/ace-data-center/screen/submit",fe,{headers:{loading:!0}}),Ce&&(ee("save",Ce.data),re.$message({type:"success",message:"操作成功",plain:!0})))},error:()=>{}})};return vue.onBeforeUnmount(()=>{re.$baseEventBus.off("clear-stage"),re.$baseEventBus.off("change-align"),re.$baseEventBus.off("auto-scale"),re.$baseEventBus.off("update-rect")}),(fe,ve)=>(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$1K,[vue.createElementVNode("div",_hoisted_2$1q,[_hoisted_3$1d,vue.createVNode(vue.unref(elementPlus.ElInput),{placeholder:"请输入标题","model-value":fe.title,size:"small",onInput:ve[0]||(ve[0]=he=>ee("update:title",he))},null,8,["model-value"])]),vue.createElementVNode("div",_hoisted_4$16,[vue.createElementVNode("div",{class:"mr-2 head-btn",onClick:ve[1]||(ve[1]=he=>ee("back"))},"返回"),_hoisted_5$V,vue.createVNode(vue.unref(elementPlus.ElInputNumber),{class:"design-screen-input-number","model-value":vue.unref(oe),size:"small",max:100,min:0,controls:!0,onChange:ve[2]||(ve[2]=he=>vue.unref(ne).setSacle(he))},null,8,["model-value"]),vue.createElementVNode("div",{class:"ml-2 head-btn",onClick:ae},"自适应"),vue.createVNode(vue.unref(elementPlus.ElDropdown),{"popper-class":"design-screen-popper",onCommand:le,teleported:!1},{dropdown:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElDropdownMenu),null,{default:vue.withCtx(()=>[(vue.openBlock(),vue.createElementBlock(vue.Fragment,null,vue.renderList(ie,he=>vue.createVNode(vue.unref(elementPlus.ElDropdownItem),{key:he.value,command:he.value,disabled:(he.disabled&&he.disabled())??!1},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(he.label),1)]),_:2},1032,["command","disabled"])),64))]),_:1})]),default:vue.withCtx(()=>[_hoisted_6$J]),_:1}),vue.createElementVNode("div",{class:"head-btn",onClick:ve[3]||(ve[3]=he=>se("export"))},"生成图片"),vue.createElementVNode("div",{class:"head-btn",onClick:ue},"预览"),vue.createElementVNode("div",{class:vue.normalizeClass(["head-btn",{disabled:!G.title}]),onClick:de},"保存",2),vue.createElementVNode("div",{class:"head-btn",onClick:ce},"清空"),vue.createElementVNode("div",{class:"head-btn",onClick:ve[4]||(ve[4]=he=>{vue.unref(ne).setTargetWidget([]),vue.unref(ne).setRightPannel(!0)})}," 设置 "),vue.createElementVNode("div",{class:"head-btn",onClick:ve[5]||(ve[5]=vue.withModifiers(he=>vue.unref(ne).setTheme(),["stop"]))},[vue.createElementVNode("i",{class:vue.normalizeClass(vue.unref(ne).theme=="dark"?"ri-sun-line":"ri-moon-line")},null,2)]),vue.createElementVNode("div",{class:"head-btn",onClick:ve[6]||(ve[6]=he=>vue.unref(ne).setRightPannel(!vue.unref(ne).getRightPannel))},[vue.createElementVNode("i",{class:vue.normalizeClass(vue.unref(ne).getRightPannel?"ri-menu-unfold-fill":"ri-menu-fold-fill")},null,2)])])]))}}),TopPannel_vue_vue_type_style_index_0_scoped_7f398de1_lang="",_export_sfc$2=(te,U)=>{const G=te.__vccOpts||te;for(const[ee,ne]of U)G[ee]=ne;return G},TopPannel=_export_sfc$2(_sfc_main$32,[["__scopeId","data-v-7f398de1"]]),getItemFromElement=te=>document.getElementById(te.id),getItemStyle=te=>{let U=`translate(${te.x}px, ${te.y}px)`;return{width:te.w+"px",height:te.h+"px",zIndex:te.z,transform:U}},_withScopeId$E=te=>(vue.pushScopeId("data-v-7c2b133e"),te=te(),vue.popScopeId(),te),_hoisted_1$1J=_withScopeId$E(()=>vue.createElementVNode("div",{class:"flex items-center h-10 p-2",style:{"background-color":"var(--design-bg-color3)"}},[vue.createElementVNode("span",{class:"w-1 h-4 mr-2 rounded-sm bg-color-primary"}),vue.createTextVNode(" 图层 ")],-1)),_hoisted_2$1p={class:"flex-1 overflow-hidden"},_hoisted_3$1c=["onMouseenter","onClick"],_hoisted_4$15=_withScopeId$E(()=>vue.createElementVNode("i",{class:"ml-2 mr-2 text-xl cursor-move ri-drag-move-2-line sortable-handle"},null,-1)),_hoisted_5$U=["title"],_sfc_main$31=vue.defineComponent({__name:"layer",setup(te){const U=screenDesignMainStore();vue.getCurrentInstance(),vue.ref(null);const G=vue.computed(()=>U.targetsWidget.map(re=>re.id)),ee=()=>{const re=U.widgetConfg.list;re.forEach((oe,ie)=>{oe.z=re.length-ie})},ne=re=>{const oe=getItemFromElement(re);U.setTargetWidget([oe])};return(re,oe)=>(vue.openBlock(),vue.createElementBlock(vue.Fragment,null,[_hoisted_1$1J,vue.createElementVNode("div",_hoisted_2$1p,[vue.createVNode(vue.unref(elementPlus.ElScrollbar),null,{default:vue.withCtx(()=>[vue.createVNode(vue.unref(vueDraggablePlus.VueDraggable),{modelValue:vue.unref(U).widgetConfg.list,"onUpdate:modelValue":oe[1]||(oe[1]=ie=>vue.unref(U).widgetConfg.list=ie),animation:150,handle:".sortable-handle",onUpdate:ee},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vue.unref(U).getWidgetList,ie=>(vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(["flex items-center h-10 pl-2 pr-2 item",{active:vue.unref(G).includes(ie.id),"hover-item":vue.unref(U).widgetHoverIds.includes(ie.id)}]),key:ie.id,onMouseenter:vue.withModifiers(le=>vue.unref(U).setWidgetHoverIds([ie.id]),["stop"]),onMouseleave:oe[0]||(oe[0]=vue.withModifiers(le=>vue.unref(U).setWidgetHoverIds([]),["stop"])),onClick:vue.withModifiers(le=>ne(ie),["stop"])},[_hoisted_4$15,vue.createElementVNode("div",{class:"overflow-hidden text-xs whitespace-nowrap text-ellipsis",title:ie.name},vue.toDisplayString(ie.name),9,_hoisted_5$U)],42,_hoisted_3$1c))),128))]),_:1},8,["modelValue"])]),_:1})])],64))}}),layer_vue_vue_type_style_index_0_scoped_7c2b133e_lang="",Layer=_export_sfc$2(_sfc_main$31,[["__scopeId","data-v-7c2b133e"]]),commonSetting={root:{}},setting$z={...commonSetting,customize:{decorationColor1:"#1296db",decorationColor2:"#0de7c2"}},__vite_glob_0_0$5=Object.freeze(Object.defineProperty({__proto__:null,default:setting$z},Symbol.toStringTag,{value:"Module"})),setting$y={...commonSetting,customize:{decorationColor1:"#00c2ff",decorationColor2:"rgba(0, 194, 255, 0.3)"}},__vite_glob_0_1$5=Object.freeze(Object.defineProperty({__proto__:null,default:setting$y},Symbol.toStringTag,{value:"Module"})),setting$x={...commonSetting,customize:{decorationColor1:"#1a98fc",decorationColor2:"#2cf7fe"}},__vite_glob_0_2$4=Object.freeze(Object.defineProperty({__proto__:null,default:setting$x},Symbol.toStringTag,{value:"Module"})),setting$w={...commonSetting,customize:{decorationColor1:null,decorationColor2:null,scanDuration:3,haloDuration:2}},__vite_glob_0_3$4=Object.freeze(Object.defineProperty({__proto__:null,default:setting$w},Symbol.toStringTag,{value:"Module"})),setting$v={...commonSetting,customize:{decorationColor1:"#1296db",decorationColor2:"#0de7c2",duration:6,reverse:!1}},__vite_glob_0_4$4=Object.freeze(Object.defineProperty({__proto__:null,default:setting$v},Symbol.toStringTag,{value:"Module"})),setting$u={...commonSetting,customize:{decorationColor1:"#7acaec",decorationColor2:"#000"}},__vite_glob_0_5$4=Object.freeze(Object.defineProperty({__proto__:null,default:setting$u},Symbol.toStringTag,{value:"Module"})),setting$t={...commonSetting,customize:{decorationColor1:"rgba(255, 255, 255, 0.3)",decorationColor2:"rgba(255, 255, 255, 0.3)",duration:3,reverse:!1}},__vite_glob_0_6$4=Object.freeze(Object.defineProperty({__proto__:null,default:setting$t},Symbol.toStringTag,{value:"Module"})),setting$s={...commonSetting,customize:{decorationColor1:"#3f96a5",decorationColor2:"#3f96a5",duration:1.2}},__vite_glob_0_7$4=Object.freeze(Object.defineProperty({__proto__:null,default:setting$s},Symbol.toStringTag,{value:"Module"})),setting$r={...commonSetting,customize:{decorationColor1:"#7acaec",decorationColor2:"#7acaec"}},__vite_glob_0_8$3=Object.freeze(Object.defineProperty({__proto__:null,default:setting$r},Symbol.toStringTag,{value:"Module"})),setting$q={...commonSetting,customize:{decorationColor1:"#3f96a5",decorationColor2:"#3f96a5",reverse:!1}},__vite_glob_0_9$3=Object.freeze(Object.defineProperty({__proto__:null,default:setting$q},Symbol.toStringTag,{value:"Module"})),setting$p={...commonSetting,customize:{decorationColor1:"rgba(3, 166, 224, 0.8)",decorationColor2:"rgba(3, 166, 224, 0.5)",duration:3}},__vite_glob_0_10$3=Object.freeze(Object.defineProperty({__proto__:null,default:setting$p},Symbol.toStringTag,{value:"Module"})),modulesFiles$3=Object.assign({"../decoration/decoration1/setting.ts":__vite_glob_0_0$5,"../decoration/decoration10/setting.ts":__vite_glob_0_1$5,"../decoration/decoration11/setting.ts":__vite_glob_0_2$4,"../decoration/decoration12/setting.ts":__vite_glob_0_3$4,"../decoration/decoration2/setting.ts":__vite_glob_0_4$4,"../decoration/decoration3/setting.ts":__vite_glob_0_5$4,"../decoration/decoration4/setting.ts":__vite_glob_0_6$4,"../decoration/decoration5/setting.ts":__vite_glob_0_7$4,"../decoration/decoration6/setting.ts":__vite_glob_0_8$3,"../decoration/decoration8/setting.ts":__vite_glob_0_9$3,"../decoration/decoration9/setting.ts":__vite_glob_0_10$3}),modules$3=[];for(const[te,U]of Object.entries(modulesFiles$3)){const G=te.split("/")[2];let ee={};switch(G){case"decoration1":ee={name:"装饰一",w:350,h:30};break;case"decoration2":ee={name:"装饰二(可旋转)",w:350,h:20};break;case"decoration3":ee={name:"装饰三",w:350,h:30};break;case"decoration4":ee={name:"装饰四",w:30,h:320};break;case"decoration5":ee={name:"装饰五",w:350,h:50};break;case"decoration6":ee={name:"装饰六",w:350,h:50};break;case"decoration8":ee={name:"装饰七(可旋转)",w:350,h:50};break;case"decoration9":ee={name:"装饰八",w:150,h:150};break;case"decoration10":ee={name:"装饰九",w:350,h:50};break;case"decoration11":ee={name:"装饰十",w:350,h:100};break;case"decoration12":ee={name:"装饰十一",w:150,h:150};break}modules$3.push({...ee,type:G,...U.default})}modules$3.sort((te,U)=>Number(te.type.replace("decoration",""))-Number(U.type.replace("decoration","")));const setting$o={...commonSetting,customize:{borderMainColor:"#83bff6",borderSecondaryColor:"#00CED1",backgroundColor:"transparent"}},__vite_glob_0_0$4=Object.freeze(Object.defineProperty({__proto__:null,default:setting$o},Symbol.toStringTag,{value:"Module"})),setting$n={...commonSetting,customize:{borderMainColor:"#83bff6",borderSecondaryColor:"#00CED1",backgroundColor:"transparent"}},__vite_glob_0_1$4=Object.freeze(Object.defineProperty({__proto__:null,default:setting$n},Symbol.toStringTag,{value:"Module"})),setting$m={...commonSetting,customize:{borderMainColor:"#83bff6",borderSecondaryColor:"#00CED1",backgroundColor:"transparent",titleWidth:250,title:"我是标题"}},__vite_glob_0_2$3=Object.freeze(Object.defineProperty({__proto__:null,default:setting$m},Symbol.toStringTag,{value:"Module"})),setting$l={...commonSetting,customize:{borderMainColor:"#83bff6",borderSecondaryColor:"#00CED1",backgroundColor:"transparent"}},__vite_glob_0_3$3=Object.freeze(Object.defineProperty({__proto__:null,default:setting$l},Symbol.toStringTag,{value:"Module"})),setting$k={...commonSetting,customize:{borderMainColor:"#83bff6",borderSecondaryColor:"#00CED1",backgroundColor:"transparent"}},__vite_glob_0_4$3=Object.freeze(Object.defineProperty({__proto__:null,default:setting$k},Symbol.toStringTag,{value:"Module"})),setting$j={...commonSetting,customize:{borderMainColor:"#83bff6",borderSecondaryColor:"#00CED1",backgroundColor:"transparent"}},__vite_glob_0_5$3=Object.freeze(Object.defineProperty({__proto__:null,default:setting$j},Symbol.toStringTag,{value:"Module"})),setting$i={...commonSetting,customize:{borderMainColor:"#83bff6",borderSecondaryColor:"#00CED1",backgroundColor:"transparent"}},__vite_glob_0_6$3=Object.freeze(Object.defineProperty({__proto__:null,default:setting$i},Symbol.toStringTag,{value:"Module"})),setting$h={...commonSetting,customize:{borderMainColor:"#83bff6",borderSecondaryColor:"#00CED1",backgroundColor:"transparent",reverse:!1}},__vite_glob_0_7$3=Object.freeze(Object.defineProperty({__proto__:null,default:setting$h},Symbol.toStringTag,{value:"Module"})),setting$g={...commonSetting,customize:{borderMainColor:"#83bff6",borderSecondaryColor:"#00CED1",backgroundColor:"transparent",reverse:!1}},__vite_glob_0_8$2=Object.freeze(Object.defineProperty({__proto__:null,default:setting$g},Symbol.toStringTag,{value:"Module"})),setting$f={...commonSetting,customize:{borderMainColor:"#83bff6",borderSecondaryColor:"#00CED1",backgroundColor:"transparent"}},__vite_glob_0_9$2=Object.freeze(Object.defineProperty({__proto__:null,default:setting$f},Symbol.toStringTag,{value:"Module"})),setting$e={...commonSetting,customize:{borderMainColor:"#83bff6",borderSecondaryColor:"#00CED1",backgroundColor:"transparent"}},__vite_glob_0_10$2=Object.freeze(Object.defineProperty({__proto__:null,default:setting$e},Symbol.toStringTag,{value:"Module"})),setting$d={...commonSetting,customize:{borderMainColor:"#83bff6",borderSecondaryColor:"#00CED1",backgroundColor:"transparent",duration:3,reverse:!1}},__vite_glob_0_11=Object.freeze(Object.defineProperty({__proto__:null,default:setting$d},Symbol.toStringTag,{value:"Module"})),setting$c={...commonSetting,customize:{borderMainColor:"#83bff6",borderSecondaryColor:"#00CED1",backgroundColor:"transparent"}},__vite_glob_0_12=Object.freeze(Object.defineProperty({__proto__:null,default:setting$c},Symbol.toStringTag,{value:"Module"})),modulesFiles$2=Object.assign({"../border/border1/setting.ts":__vite_glob_0_0$4,"../border/border10/setting.ts":__vite_glob_0_1$4,"../border/border11/setting.ts":__vite_glob_0_2$3,"../border/border12/setting.ts":__vite_glob_0_3$3,"../border/border13/setting.ts":__vite_glob_0_4$3,"../border/border2/setting.ts":__vite_glob_0_5$3,"../border/border3/setting.ts":__vite_glob_0_6$3,"../border/border4/setting.ts":__vite_glob_0_7$3,"../border/border5/setting.ts":__vite_glob_0_8$2,"../border/border6/setting.ts":__vite_glob_0_9$2,"../border/border7/setting.ts":__vite_glob_0_10$2,"../border/border8/setting.ts":__vite_glob_0_11,"../border/border9/setting.ts":__vite_glob_0_12}),modules$2=[];for(const[te,U]of Object.entries(modulesFiles$2)){const G=te.split("/")[2],ne={name:{border1:"边框一",border2:"边框二",border3:"边框三",border4:"边框四(可翻转)",border5:"边框五(可翻转)",border6:"边框六",border7:"边框七",border8:"边框八",border9:"边框九",border10:"边框十",border11:"边框十一",border12:"边框十二",border13:"边框十三"}[G],w:450,h:320,type:G,...U.default};modules$2.push({...ne})}modules$2.sort((te,U)=>Number(te.type.replace("border",""))-Number(U.type.replace("border","")));const setting$b={...commonSetting,customize:{gradientColor0:"#1296db",gradientColor1:"#1296db",width:2}},__vite_glob_0_0$3=Object.freeze(Object.defineProperty({__proto__:null,default:setting$b},Symbol.toStringTag,{value:"Module"})),setting$a={...commonSetting,customize:{url:"https://cn.bing.com/"}},__vite_glob_0_1$3=Object.freeze(Object.defineProperty({__proto__:null,default:setting$a},Symbol.toStringTag,{value:"Module"})),setting$9={...commonSetting,customize:{fit:"contain",url:"https://fuss10.elemecdn.com/e/5d/4a731a90594a4af544c0c25941171jpeg.jpeg"}},__vite_glob_0_2$2=Object.freeze(Object.defineProperty({__proto__:null,default:setting$9},Symbol.toStringTag,{value:"Module"})),setting$8={...commonSetting,customize:{title:"1234",color:"#1296db",fontSize:20,fontWeight:700,textAlign:"center",letterSpacing:1,colorPosition:"top",startColor:"#1296db",endColor:"#1296db",formula:"",toFixed:2}},__vite_glob_0_3$2=Object.freeze(Object.defineProperty({__proto__:null,default:setting$8},Symbol.toStringTag,{value:"Module"})),setting$7={...commonSetting,customize:{colorPosition:"bottom",gradientColor0:"#1296db",gradientColor1:"#1296db",borderRadius:0}},__vite_glob_0_4$2=Object.freeze(Object.defineProperty({__proto__:null,default:setting$7},Symbol.toStringTag,{value:"Module"})),setting$6={...commonSetting,customize:{title:"文本数据",color:"#1296db",fontSize:20,fontWeight:700,textAlign:"center",letterSpacing:1,colorPosition:"top",startColor:"#1296db",endColor:"#1296db"}},__vite_glob_0_5$2=Object.freeze(Object.defineProperty({__proto__:null,default:setting$6},Symbol.toStringTag,{value:"Module"})),setting$5={...commonSetting,customize:{title:"1234",color:"#1296db",fontSize:20,fontWeight:700,textAlign:"center",letterSpacing:1,colorPosition:"top",startColor:"#1296db",endColor:"#1296db"}},__vite_glob_0_6$2=Object.freeze(Object.defineProperty({__proto__:null,default:setting$5},Symbol.toStringTag,{value:"Module"})),setting$4={...commonSetting,customize:{gradientColor0:"#1296db",gradientColor1:"#1296db",height:2}},__vite_glob_0_7$2=Object.freeze(Object.defineProperty({__proto__:null,default:setting$4},Symbol.toStringTag,{value:"Module"})),modulesFiles$1=Object.assign({"../basic/horizontal-line/setting.ts":__vite_glob_0_0$3,"../basic/iframe/setting.ts":__vite_glob_0_1$3,"../basic/img/setting.ts":__vite_glob_0_2$2,"../basic/number/setting.ts":__vite_glob_0_3$2,"../basic/square/setting.ts":__vite_glob_0_4$2,"../basic/text/setting.ts":__vite_glob_0_5$2,"../basic/time/setting.ts":__vite_glob_0_6$2,"../basic/vertical-line/setting.ts":__vite_glob_0_7$2}),modules$1=[];for(const[te,U]of Object.entries(modulesFiles$1)){const G=te.split("/")[2];let ee={};switch(G){case"square":ee={name:"正方形",w:200,h:200};break;case"img":ee={name:"图片",w:200,h:200};break;case"number":ee={name:"数字",w:200,h:50};break;case"text":ee={name:"文本",w:200,h:50};break;case"time":ee={name:"当前时间",w:200,h:50};break;case"horizontal-line":ee={name:"竖线",w:10,h:100};break;case"vertical-line":ee={name:"横线",w:100,h:10};break;case"iframe":ee={name:"iframe",w:1e3,h:500};break}modules$1.push({...ee,type:G,...U.default})}const sortMap$1={text:1,number:2,img:3,time:4,"vertical-line":5,"horizontal-line":6,circular:7,square:8,iframe:9};modules$1.sort((te,U)=>(sortMap$1[te.type]??99)-(sortMap$1[U.type]??99));const setting$3={...commonSetting,customize:{backgroundColor:"transparent",borderColor:"#ebeef5",borderTopWidth:0,borderRightWidth:0,borderBottomWidth:1,borderLeftWidth:0,color:"#000",fontSize:14,borderRadius:0,placeholder:"请输入文字",modelValue:"",linkage:[]}},__vite_glob_0_0$2=Object.freeze(Object.defineProperty({__proto__:null,default:setting$3},Symbol.toStringTag,{value:"Module"})),setting$2={...commonSetting,customize:{placeholder:"请选择",clearable:!0,modelValue:"",linkage:[]}},__vite_glob_0_1$2=Object.freeze(Object.defineProperty({__proto__:null,default:setting$2},Symbol.toStringTag,{value:"Module"})),modulesFiles=Object.assign({"../control/input/setting.ts":__vite_glob_0_0$2,"../control/select/setting.ts":__vite_glob_0_1$2}),modules=[];for(const[te,U]of Object.entries(modulesFiles)){const G=te.split("/")[2];let ee={};switch(G){case"input":ee={name:"输入框",w:200,h:40};break;case"select":ee={name:"下拉框",w:200,h:40};break}modules.push({...ee,type:G,...U.default})}const sortMap={input:1};modules.sort((te,U)=>(sortMap[te.type]??99)-(sortMap[U.type]??99));const _withScopeId$D=te=>(vue.pushScopeId("data-v-945ce3a3"),te=te(),vue.popScopeId(),te),_hoisted_1$1I={class:"text-xs"},_hoisted_2$1o={class:"flex items-center h-10 p-2",style:{"background-color":"var(--design-bg-color3)"}},_hoisted_3$1b=_withScopeId$D(()=>vue.createElementVNode("span",{class:"w-1 h-4 mr-2 rounded-sm bg-color-primary"},null,-1)),_hoisted_4$14={class:"flex-1 p-2 overflow-hidden"},_hoisted_5$T=["onClick"],_hoisted_6$I=["data-type","data-id"],_hoisted_7$B={class:"p-1 overflow-hidden text-xs text-ellipsis whitespace-nowrap",style:{"background-color":"var(--design-bg-color4)"}},_hoisted_8$v={class:"flex items-center justify-center"},_hoisted_9$q={key:0,class:"flex items-center justify-center pb-3 mt-2"},_hoisted_10$l=["onClick"],_hoisted_11$g=["data-type","data-ptype"],_hoisted_12$e={class:"p-1 text-xs",style:{"background-color":"var(--design-bg-color4)"}},_hoisted_13$c={class:"flex items-center justify-center pt-1 pb-1",style:{"background-color":"var(--design-bg-color3)"}},_sfc_main$30=vue.defineComponent({__name:"leftPannel",setup(te){const{proxy:U}=vue.getCurrentInstance(),G=vue.ref([{label:"图层",type:"layer",icon:"ri-stack-line"},{label:"基础",type:"base",icon:"ri-supabase-line",list:modules$1},{label:"指标",type:"indicators",icon:"ri-database-2-line",list:[]},{label:"边框",type:"border",icon:"ri-body-scan-line",list:modules$2},{label:"装饰",type:"decoration",icon:"ri-sparkling-line",list:modules$3},{label:"控件",type:"controal",icon:"ri-remote-control-2-line",list:modules}]),ee=vue.ref("layer"),ne=re=>{const oe=vue.unref(G).find(ie=>ie.type=="indicators");oe&&(oe.list=oe.list.map(ie=>({...ie,isOpen:ie.isOpen?!1:ie.id==re.id})))};return vue.nextTick(()=>{U.$baseHttp.get("/api/ace-data-center/indicators/loadIndicatorsMenu",{params:{projectId:U.$baseGetCurrentProjectId()}}).then(re=>{const oe=[],ie=vue.unref(G).find(le=>le.type=="indicators");ie&&(ie.list=Object.keys(re.data).map((le,ae)=>({name:le,id:le,isOpen:ae==0,children:re.data[le].map(se=>{var ue;return{...se,echartsType:(ue=se.echarts)!=null&&ue.length?se.echarts[0].echartsType:""}})})),oe.push(...ie.list.map(le=>le.children))),vue.nextTick(()=>{document.querySelectorAll(".drag-node").forEach(ae=>{const{ptype:se,type:ue,id:ce}=ae.dataset;ae.addEventListener("dragstart",de=>{var ve;let fe=(ve=vue.unref(G).find(he=>he.type==se))==null?void 0:ve.list.find(he=>he.type==ue);if(["MODEL_INDICATORS","INDICATORS"].includes(ue)){const he=oe.flat().find(ge=>ge.id==ce),pe=he==null?void 0:he.echarts.find(ge=>ge.echartsType==he.echartsType);fe={name:`${he.name}(${echartsTypeList[pe.echartsType].name})`,chartType:he.echartsType,chartId:he.id,indicatorsId:ce,w:500,h:500,customize:pe.echartsConfig,modelType:he.type}}U.$baseEventBus.emit("drag-start"),de.dataTransfer.setData("dragComponent",JSON.stringify({...fe,id:nanoid(),locked:!1}))}),ae.addEventListener("dragend",de=>{U.$baseEventBus.emit("drag-end")})}),document.addEventListener("drop",ae=>{ae.preventDefault()},!1)})})}),vue.onBeforeUnmount(()=>{U.$baseEventBus.off("drag-start"),U.$baseEventBus.off("drag-end")}),(re,oe)=>(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElTabs),{"tab-position":"left",modelValue:vue.unref(ee),"onUpdate:modelValue":oe[0]||(oe[0]=ie=>vue.isRef(ee)?ee.value=ie:null),onKeydownCapture:oe[1]||(oe[1]=vue.withKeys(vue.withModifiers(()=>{},["stop","prevent"]),["native"]))},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vue.unref(G),ie=>(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElTabPane),{name:ie.type,key:ie.type},{label:vue.withCtx(()=>[vue.createElementVNode("div",null,[vue.createElementVNode("i",{class:vue.normalizeClass(["text-xl",ie.icon])},null,2),vue.createElementVNode("div",_hoisted_1$1I,vue.toDisplayString(ie.label),1)])]),default:vue.withCtx(()=>[ie.type=="layer"?(vue.openBlock(),vue.createBlock(Layer,{key:0})):(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:1},[vue.createElementVNode("div",_hoisted_2$1o,[_hoisted_3$1b,vue.createTextVNode(" "+vue.toDisplayString(ie.label),1)]),vue.createElementVNode("div",_hoisted_4$14,[vue.createVNode(vue.unref(elementPlus.ElScrollbar),null,{default:vue.withCtx(()=>[ie.type=="indicators"?(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,{key:0},vue.renderList(ie.list,le=>(vue.openBlock(),vue.createElementBlock("div",{key:le.label},[vue.createElementVNode("div",{class:"mb-2 overflow-hidden cursor-pointer text-ellipsis whitespace-nowrap",onClick:ae=>ne(le)},[vue.createElementVNode("i",{class:vue.normalizeClass(["text-base",le.isOpen?"ri-folder-open-line":"ri-folder-line"])},null,2),vue.createTextVNode(" "+vue.toDisplayString(le.name),1)],8,_hoisted_5$T),vue.withDirectives(vue.createElementVNode("div",null,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(le.children,ae=>{var se;return vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:ae.modelId},[["MODEL_INDICATORS","INDICATORS"].includes(ae.type)&&((se=ae.echarts)!=null&&se.length)?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"mb-2 cursor-move drag-node",draggable:!0,"data-type":ae.type,"data-id":ae.id},[vue.createElementVNode("div",_hoisted_7$B,vue.toDisplayString(ae.name),1),vue.createElementVNode("div",_hoisted_8$v,[vue.createElementVNode("div",{class:vue.normalizeClass([`bg-${ae.echartsType}`,"item-img"])},null,2)]),ae.echarts.length>1?(vue.openBlock(),vue.createElementBlock("div",_hoisted_9$q,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(ae.echarts,ue=>(vue.openBlock(),vue.createElementBlock("i",{class:vue.normalizeClass([[vue.unref(echartsTypeList)[ue.echartsType].icon,ue.echartsType==ae.echartsType?"activeCode":""],"cursor-pointer chart-item"]),onClick:ce=>ae.echartsType=ue.echartsType,key:ue.code},null,10,_hoisted_10$l))),128))])):vue.createCommentVNode("",!0)],8,_hoisted_6$I)):vue.createCommentVNode("",!0)],64)}),128))],512),[[vue.vShow,le.isOpen]])]))),128)):(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,{key:1},vue.renderList(ie.list,le=>(vue.openBlock(),vue.createElementBlock("div",{key:ie.type,class:"mb-2 cursor-move drag-node",draggable:!0,"data-type":le.type,"data-ptype":ie.type},[vue.createElementVNode("div",_hoisted_12$e,vue.toDisplayString(le.name),1),vue.createElementVNode("div",_hoisted_13$c,[vue.createElementVNode("div",{class:vue.normalizeClass([`bg-${le.type}`,"item-img"])},null,2)])],8,_hoisted_11$g))),128))]),_:2},1024)])],64))]),_:2},1032,["name"]))),128))]),_:1},8,["modelValue"]))}}),leftPannel_vue_vue_type_style_index_0_scoped_945ce3a3_lang="",LeftPannel=_export_sfc$2(_sfc_main$30,[["__scopeId","data-v-945ce3a3"]]);function tryOnScopeDispose(te){return vue.getCurrentScope()?(vue.onScopeDispose(te),!0):!1}function toValue(te){return typeof te=="function"?te():vue.unref(te)}const isClient=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const toString$1=Object.prototype.toString,isObject$2=te=>toString$1.call(te)==="[object Object]",noop$2=()=>{};function unrefElement(te){var U;const G=toValue(te);return(U=G==null?void 0:G.$el)!=null?U:G}const defaultWindow=isClient?window:void 0,defaultDocument=isClient?window.document:void 0;function useEventListener(...te){let U,G,ee,ne;if(typeof te[0]=="string"||Array.isArray(te[0])?([G,ee,ne]=te,U=defaultWindow):[U,G,ee,ne]=te,!U)return noop$2;Array.isArray(G)||(G=[G]),Array.isArray(ee)||(ee=[ee]);const re=[],oe=()=>{re.forEach(se=>se()),re.length=0},ie=(se,ue,ce,de)=>(se.addEventListener(ue,ce,de),()=>se.removeEventListener(ue,ce,de)),le=vue.watch(()=>[unrefElement(U),toValue(ne)],([se,ue])=>{if(oe(),!se)return;const ce=isObject$2(ue)?{...ue}:ue;re.push(...G.flatMap(de=>ee.map(fe=>ie(se,de,fe,ce))))},{immediate:!0,flush:"post"}),ae=()=>{le(),oe()};return tryOnScopeDispose(ae),ae}function createKeyPredicate(te){return typeof te=="function"?te:typeof te=="string"?U=>U.key===te:Array.isArray(te)?U=>te.includes(U.key):()=>!0}function onKeyStroke(...te){let U,G,ee={};te.length===3?(U=te[0],G=te[1],ee=te[2]):te.length===2?typeof te[1]=="object"?(U=!0,G=te[0],ee=te[1]):(U=te[0],G=te[1]):(U=!0,G=te[0]);const{target:ne=defaultWindow,eventName:re="keydown",passive:oe=!1,dedupe:ie=!1}=ee,le=createKeyPredicate(U);return useEventListener(ne,re,se=>{se.repeat&&toValue(ie)||le(se)&&G(se)},oe)}const defaultEvents=["mousedown","mouseup","keydown","keyup"];function useKeyModifier(te,U={}){const{events:G=defaultEvents,document:ee=defaultDocument,initial:ne=null}=U,re=vue.ref(ne);return ee&&G.forEach(oe=>{useEventListener(ee,oe,ie=>{typeof ie.getModifierState=="function"&&(re.value=ie.getModifierState(te))})}),re}var __defProp=Object.defineProperty,__getOwnPropSymbols=Object.getOwnPropertySymbols,__hasOwnProp=Object.prototype.hasOwnProperty,__propIsEnum=Object.prototype.propertyIsEnumerable,__defNormalProp=(te,U,G)=>U in te?__defProp(te,U,{enumerable:!0,configurable:!0,writable:!0,value:G}):te[U]=G,__spreadValues=(te,U)=>{for(var G in U||(U={}))__hasOwnProp.call(U,G)&&__defNormalProp(te,G,U[G]);if(__getOwnPropSymbols)for(var G of __getOwnPropSymbols(U))__propIsEnum.call(U,G)&&__defNormalProp(te,G,U[G]);return te};const lineProps={scale:Number,thick:Number,palette:Object,index:Number,start:Number,vertical:Boolean,value:Number,isShowReferLine:Boolean};var _export_sfc$1=(te,U)=>{const G=te.__vccOpts||te;for(const[ee,ne]of U)G[ee]=ne;return G};const _sfc_main$3$1=vue.defineComponent({name:"LineRuler",props:lineProps,emits:["onMouseDown","onRelease","onRemove"],setup(te,{emit:U}){const G=vue.ref(0),ee=vue.ref(!0);vue.onMounted(()=>{G.value=te.value});const ne=se=>{ee.value=se>=0},re=vue.computed(()=>{const se=(G.value-te.start)*te.scale;ne(se);const ue=se+"px";return te.vertical?{top:ue}:{left:ue}}),oe=vue.computed(()=>{var se;const ue=`1px solid ${(se=te.palette)==null?void 0:se.lineColor}`,ce=te.vertical?{borderTop:ue}:{borderLeft:ue},de=te.isShowReferLine?te.vertical?"ns-resize":"ew-resize":"none";return __spreadValues({cursor:de},ce)}),ie=vue.computed(()=>te.vertical?{left:te.thick+"px"}:{top:te.thick+"px"});return{startValue:G,showLine:ee,offset:re,borderCursor:oe,actionStyle:ie,handleDown:se=>{const ue=te.vertical?se.clientY:se.clientX,ce=G.value;U("onMouseDown");const de=ve=>{const he=te.vertical?ve.clientY:ve.clientX,pe=Math.round(ce+(he-ue)/te.scale);G.value=pe},fe=()=>{U("onRelease",G.value,te.index),document.removeEventListener("mousemove",de),document.removeEventListener("mouseup",fe)};document.addEventListener("mousemove",de),document.addEventListener("mouseup",fe)},handleRemove:()=>{U("onRemove",te.index)}}}}),_hoisted_1$2$1={class:"value"};function _sfc_render$3(te,U,G,ee,ne,re){return vue.withDirectives((vue.openBlock(),vue.createElementBlock("div",{class:"line",style:vue.normalizeStyle([te.offset,te.borderCursor]),onMousedown:U[1]||(U[1]=(...oe)=>te.handleDown&&te.handleDown(...oe))},[vue.createElementVNode("div",{class:"action",style:vue.normalizeStyle(te.actionStyle)},[vue.createElementVNode("span",{class:"del",onClick:U[0]||(U[0]=(...oe)=>te.handleRemove&&te.handleRemove(...oe))},"×"),vue.createElementVNode("span",_hoisted_1$2$1,vue.toDisplayString(te.startValue),1)],4)],36)),[[vue.vShow,te.showLine]])}var RulerLine=_export_sfc$1(_sfc_main$3$1,[["render",_sfc_render$3],["__scopeId","data-v-7cc5d020"]]);const getGridSize=te=>te<=.25?40:te<=.5?20:te<=1?10:te<=2?5:te<=4?2:1,FONT_SCALE=.83,drawCavaseRuler=(te,U,G,ee,ne,re)=>{const{scale:oe,width:ie,height:le,ratio:ae,palette:se}=ne,{bgColor:ue,fontColor:ce,shadowColor:de,longfgColor:fe,shortfgColor:ve}=se;if(te.scale(ae,ae),te.clearRect(0,0,ie,le),te.fillStyle=ue,te.fillRect(0,0,ie,le),ee){const $e=(G-U)*oe,Ee=ee*oe;te.fillStyle=de,re?te.fillRect($e,0,Ee,le*3/8):te.fillRect(0,$e,ie*3/8,Ee)}const he=getGridSize(oe),pe=he*oe,ge=he*10,me=ge*oe,_e=Math.floor(U/he)*he,ye=Math.floor(U/ge)*ge,be=(_e-U)/he*pe,xe=(ye-U)/ge*me,Ce=U+Math.ceil((re?ie:le)/oe);te.beginPath(),te.fillStyle=ce,te.strokeStyle=fe;for(let $e=ye,Ee=0;$e<Ce;$e+=ge,Ee++){const Ve=xe+Ee*me+.5;re?te.moveTo(Ve,0):te.moveTo(0,Ve),te.save(),re?te.translate(Ve,le*.4):te.translate(ie*.4,Ve),re||te.rotate(-Math.PI/2),te.scale(FONT_SCALE/ae,FONT_SCALE/ae),te.fillText($e.toString(),4*ae,7*ae),te.restore(),re?te.lineTo(Ve,le*9/16):te.lineTo(ie*9/16,Ve)}te.stroke(),te.closePath(),te.beginPath(),te.strokeStyle=ve;for(let $e=_e,Ee=0;$e<Ce;$e+=he,Ee++){const Ve=be+Ee*pe+.5;re?te.moveTo(Ve,0):te.moveTo(0,Ve),$e%ge!==0&&(re?te.lineTo(Ve,le*1/4):te.lineTo(ie*1/4,Ve))}te.stroke(),te.closePath(),te.setTransform(1,0,0,1,0,0)},_sfc_main$2$1=vue.defineComponent({name:"CanvasRuler",props:{showIndicator:Boolean,valueNum:Number,scale:Number,ratio:Number,palette:Object,vertical:Boolean,start:Number,width:Number,height:Number,selectStart:Number,selectLength:Number},emits:["onAddLine","update:showIndicator","update:valueNum"],setup(te,{emit:U}){const G=vue.reactive({canvasContext:null});let ee=1;const ne=vue.ref(null);vue.onMounted(()=>{ee=te.ratio||window.devicePixelRatio||1,re(),oe(ee),ie(ee)});const re=()=>{G.canvasContext=ne.value&&ne.value.getContext("2d")},oe=ae=>{if(ne.value){ne.value.width=te.width*ae,ne.value.height=te.height*ae;const se=G.canvasContext;se&&(se.font=`${12*ae}px -apple-system,
|
|
11
11
|
"Helvetica Neue", ".SFNSText-Regular",
|
|
12
12
|
"SF UI Text", Arial, "PingFang SC", "Hiragino Sans GB",
|
|
13
13
|
"Microsoft YaHei", "WenQuanYi Zen Hei", sans-serif`,se.lineWidth=1,se.textBaseline="middle")}},ie=ae=>{const se={scale:te.scale,width:te.width,height:te.height,palette:te.palette,ratio:ae};G.canvasContext&&drawCavaseRuler(G.canvasContext,te.start,te.selectStart,te.selectLength,se,!te.vertical)};return vue.watch(()=>te.start,()=>ie(ee)),vue.watch([()=>te.width,()=>te.height],()=>{oe(ee),ie(ee)}),{handle:(ae,se)=>{const ue=(fe,ve,he)=>Math.round(ve+fe/he),ce=te.vertical?ae.offsetY:ae.offsetX,de=ue(ce,te.start,te.scale);switch(se){case"click":U("onAddLine",de);break;case"enter":U("update:valueNum",de),U("update:showIndicator",!0);break;default:U("update:valueNum",de);break}},canvas:ne}}});function _sfc_render$2(te,U,G,ee,ne,re){return vue.openBlock(),vue.createElementBlock("canvas",{ref:"canvas",class:"ruler",onClick:U[0]||(U[0]=oe=>te.handle(oe,"click")),onMouseenter:U[1]||(U[1]=oe=>te.handle(oe,"enter")),onMousemove:U[2]||(U[2]=oe=>te.handle(oe,"move")),onMouseleave:U[3]||(U[3]=oe=>te.$emit("update:showIndicator",!1))},null,544)}var CanvasRuler=_export_sfc$1(_sfc_main$2$1,[["render",_sfc_render$2]]);const wrapperProps={scale:Number,ratio:Number,thick:Number,palette:Object,vertical:{type:Boolean,default:!0},width:{type:Number,default:200},height:{type:Number,default:200},start:{type:Number,default:0},lines:{type:Array,default:()=>[]},selectStart:{type:Number},selectLength:{type:Number},isShowReferLine:{type:Boolean}},_sfc_main$1$1=vue.defineComponent({name:"RulerWrapper",components:{CanvasRuler,RulerLine},props:wrapperProps,setup(te){const U=vue.ref(!1),G=vue.ref(0),ee=vue.computed(()=>te.vertical?"v-container":"h-container"),ne=vue.computed(()=>{const ae={width:`calc(100% - ${te.thick}px)`,height:`${te.thick+1}px`,left:`${te.thick}px`},se={width:`${te.thick&&te.thick+1}px`,height:`calc(100% - ${te.thick}px)`,top:`${te.thick}px`};return te.vertical?se:ae}),re=vue.computed(()=>{var ae;const se=(G.value-te.start)*te.scale;let ue="top",ce="borderLeft";return ue=te.vertical?"top":"left",ce=te.vertical?"borderBottom":"borderLeft",{[ue]:se+"px",[ce]:`1px solid ${(ae=te.palette)==null?void 0:ae.lineColor}`}}),oe=ae=>{te.lines.push(ae)},ie=(ae,se)=>{const ue=ae-te.start,ce=(te.vertical?te.height:te.width)/te.scale;ue<0||ue>ce?le(se):te.lines[se]=ae},le=ae=>{te.lines.splice(ae,1)};return{showIndicator:U,valueNum:G,rwClassName:ee,rwStyle:ne,indicatorStyle:re,handleNewLine:oe,handleLineRelease:ie,handleLineRemove:le}}}),_hoisted_1$1$1={class:"lines"},_hoisted_2$1n={class:"value"};function _sfc_render$1$1(te,U,G,ee,ne,re){const oe=vue.resolveComponent("CanvasRuler"),ie=vue.resolveComponent("RulerLine");return vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(te.rwClassName),style:vue.normalizeStyle(te.rwStyle)},[vue.createVNode(oe,{vertical:te.vertical,scale:te.scale,width:te.width,height:te.height,start:te.start,ratio:te.ratio,"select-start":te.selectStart,"select-length":te.selectLength,palette:te.palette,valueNum:te.valueNum,"onUpdate:valueNum":U[0]||(U[0]=le=>te.valueNum=le),showIndicator:te.showIndicator,"onUpdate:showIndicator":U[1]||(U[1]=le=>te.showIndicator=le),onOnAddLine:te.handleNewLine},null,8,["vertical","scale","width","height","start","ratio","select-start","select-length","palette","valueNum","showIndicator","onOnAddLine"]),vue.withDirectives(vue.createElementVNode("div",_hoisted_1$1$1,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(te.lines,(le,ae)=>(vue.openBlock(),vue.createBlock(ie,{key:le+ae,index:ae,value:le>>0,scale:te.scale,start:te.start,thick:te.thick,palette:te.palette,vertical:te.vertical,"is-show-refer-line":te.isShowReferLine,onOnRemove:te.handleLineRemove,onOnRelease:te.handleLineRelease},null,8,["index","value","scale","start","thick","palette","vertical","is-show-refer-line","onOnRemove","onOnRelease"]))),128))],512),[[vue.vShow,te.isShowReferLine]]),vue.withDirectives(vue.createElementVNode("div",{class:"indicator",style:vue.normalizeStyle(te.indicatorStyle)},[vue.createElementVNode("div",_hoisted_2$1n,vue.toDisplayString(te.valueNum),1)],4),[[vue.vShow,te.showIndicator]])],6)}var RulerWrapper=_export_sfc$1(_sfc_main$1$1,[["render",_sfc_render$1$1],["__scopeId","data-v-65a7f0f6"]]);const eye64="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAVCAYAAACpF6WWAAAAAXNSR0IArs4c6QAAAopJREFUOE/FlE9IVEEcx7+/N9ouds1Mu0QUSFZYdIgoUqQoKPBQHsKozpXE7jbTO/U8xLJvn6usBHWQ6hBFXupSkQeVbh0KJEPp0sH+eLGTsKs77xcj78m0ax0E8cHjzZv5zef3/c33xxA24KENYGJzoEEQbNNaN4Zh2OQ4znwYhr9c1/39vwrXVDo0NNS0tLR0GYB5D64BmAMwzMyvlFKz1es10Hw+f4mZ7wHYBeA9gNdENFepVOaEEM3M3OI4Thczn41gt6WUgQ3+C+r7/h0AWQD3mXnYqPA8L9nQ0HCemduIaFpKOWoAhUJhT6VSuQXgOjP3K6W8GLwKzeVyp4jonR0QBEErM48w8zFLyayUsjX+z+VyHhHdZebTSqkxM78CHRgYOKS1/ghgVErZY214RkQ7ADyRUj72ff8qgCtmXUrZGcf5vv8CwEUhxOF0Ov1pBRpla5dSdseBhUJhpznH6tIsZb1KqacW+BGArUaUXX63UuplHJTNZjuEEONSyhozfd/n6mQ1RkXZL2itz7mu+80EDA4ONi8vL/8AcM2UbikyR2BU9cSmmTU70YqKIAj2hWFo2uenlHK/BRg3Y2aeNO5GyU8S0ZbFxcUuz/NKEXAGQKPjOCcymcyX1dIi8DSAiWQyeaavr68cbSgCuBknYubnQoj+TCYzUywWE6VS6S2ADsdx2gxw1X3L7SNENMbMnwE8qK+vf5NKpRaMaeVyeW8ikfiaSqW+R7BuZr5BRMe11p2u607U9Gk8kc/ntzPzQwCmExYATDLzVBiGE0KIowAOADDf3QA+aK2VDaxRajto3K+rq+tl5nYAzQBamHmeiOYBTGmtR6ph/1Rqg9c73pz7dD1qN0TpHyNQRCUDJXrAAAAAAElFTkSuQmCC",closeEye64="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAVCAYAAACpF6WWAAAAAXNSR0IArs4c6QAAAjtJREFUOE/NlD9oFEEUxn9v9ghC0hpRUogIAUmniGAT/5Q2FrETPSNRJILg7RwimI0ox85eQFCEBGIUO1PYpFM0jSConQoBEZGgGPsgl+w+2eM2bC57SopAFqYZ3v7m+977ZoQt+GQLmGxPaBiGgYiMWWvXBHZUGoZhH3BERPYC+4F+4Keq/urt7b1RLpf/ZEBVHa9Wq0HWyg3QKIoGVPU8cA7wgK/pUtXPQJ8xZk+pVBpuNBqXUoUiEvi+P56fzTpo6+SbwHNg1lo7WzTITGEKXFlZeeB53tVCpa3CK8AFa+1cBgvD8LKIXAQOJkkyICJDeYVBEJS6u7s/qeoLa+1o+l9TqXNuBLhmjDlbqVQ+5ICjInIfOBPH8W9jzGCR5YmJiRNxHM+papgqzqDvgSlr7VTernPuO3An3c9bBt74vv+yrdaKyLDv+/1Sq9UGPc97nY9EVuycU2AQOA7cAm4Dr4D5TvVxHB9rKo2iaEFVp621Ln96FEUngaOqGmSxabVqsh3a2h+x1h5qQjNrae/yE4+iaCwDJkky73neTuBZe129Xk+H+BS4l7ZqLVIZ2BhzuFKpvMsDVXXWGPMxFdAedOfcKeCRqj7MYrUhpz09PfXl5eXrectFWXXODQHpOq2qd/95o/JXr6ura3J1dXU6SZIfwKKIHAD2tVYMPBGRx77vN10UXtO85fTkmZmZHUtLSzUR2QXsBhaAL6r6DXhbrVYXi1yss59GqOgub/bN3Z7v6X/tb9Zmp/q/kN8s+lJb8oEAAAAASUVORK5CYII=",sketchRulerProps={scale:{type:Number,default:1},ratio:{type:Number},thick:{type:Number,default:16},palette:Object,startX:{type:Number},startY:{type:Number,default:0},width:{type:Number,default:200},height:{type:Number,default:200},shadow:{type:Object,default:()=>({x:0,y:0,width:0,height:0})},lines:{type:Object,default:()=>({h:[],v:[]})},cornerActive:{type:Boolean,default:!1},isShowReferLine:{type:Boolean,default:!0}},_sfc_main$2$=vue.defineComponent({name:"SketchRule",components:{RulerWrapper},props:sketchRulerProps,emits:["onCornerClick","handleLine"],setup(te,{emit:U}){let G=vue.ref(!0);G.value=te.isShowReferLine;const ee=vue.computed(()=>{function ie(ae,se){return Object.keys(ae).forEach(ue=>{ue&&ae.hasOwnProperty(ue)&&(typeof se.key=="object"?ae[ue]=ie(ae[ue],se[ue]):se.hasOwnProperty(ue)&&(ae[ue]=se[ue]))}),ae}return ie({bgColor:"rgba(225,225,225, 0)",longfgColor:"#BABBBC",shortfgColor:"#C8CDD0",fontColor:"#7D8694",shadowColor:"#E8E8E8",lineColor:"#EB5648",borderColor:"#DADADC",cornerActiveColor:"rgb(235, 86, 72, 0.6)",menu:{bgColor:"#fff",dividerColor:"#DBDBDB",listItem:{textColor:"#415058",hoverTextColor:"#298DF8",disabledTextColor:"rgba(65, 80, 88, 0.4)",bgColor:"#fff",hoverBgColor:"#F2F2F2"}}},te.palette||{})}),ne=vue.computed(()=>te.cornerActive?" active":""),re=vue.computed(()=>({backgroundImage:G.value?`url(${eye64})`:`url(${closeEye64})`,width:te.thick+"px",height:te.thick+"px",borderRight:`1px solid ${ee.value.borderColor}`,borderBottom:`1px solid ${ee.value.borderColor}`}));return{isShowReferLine:G,paletteCpu:ee,cornerActiveClass:ne,cornerStyle:re,onCornerClick:ie=>{G.value=!G.value,U("onCornerClick",ie)}}}}),_hoisted_1$1H={id:"mb-ruler",class:"style-ruler mb-ruler"};function _sfc_render$4(te,U,G,ee,ne,re){const oe=vue.resolveComponent("RulerWrapper");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$1H,[vue.createVNode(oe,{vertical:!1,width:te.width,height:te.thick,"is-show-refer-line":te.isShowReferLine,thick:te.thick,ratio:te.ratio,start:te.startX,lines:te.lines.h,"select-start":te.shadow.x,"select-length":te.shadow.width,scale:te.scale,palette:te.paletteCpu},null,8,["width","height","is-show-refer-line","thick","ratio","start","lines","select-start","select-length","scale","palette"]),vue.createVNode(oe,{vertical:!0,width:te.thick,height:te.height,"is-show-refer-line":te.isShowReferLine,thick:te.thick,ratio:te.ratio,start:te.startY,lines:te.lines.v,"select-start":te.shadow.y,"select-length":te.shadow.height,scale:te.scale,palette:te.paletteCpu},null,8,["width","height","is-show-refer-line","thick","ratio","start","lines","select-start","select-length","scale","palette"]),vue.createElementVNode("a",{class:vue.normalizeClass(["corner",te.cornerActiveClass]),style:vue.normalizeStyle(te.cornerStyle),onClick:U[0]||(U[0]=(...ie)=>te.onCornerClick&&te.onCornerClick(...ie))},null,6)])}var SketchRule$1=_export_sfc$1(_sfc_main$2$,[["render",_sfc_render$4]]);const style$1="",_sfc_main$2_=vue.defineComponent({__name:"sketchRule",setup(te){const U=screenDesignMainStore(),{proxy:G}=vue.getCurrentInstance(),ee=vue.computed(()=>U.stageWidth),ne=vue.computed(()=>U.stageHeight),{resetUrl:re}=G.$globalUtils,oe={bgColor:"rgba(225,225,225, 0)",longfgColor:"#BABBBC",shortfgColor:"#C8CDD0",fontColor:"#7D8694",shadowColor:"transparent",lineColor:"#0089d0",borderColor:"#transparent",cornerActiveColor:"rgb(235, 86, 72, 0.6)"},ie=vue.reactive({innerWidth:0,innerHeight:0,thick:20,width:3e3,height:3e3,startX:0,startY:0}),le=vue.ref({});vue.watch(()=>U.scale,()=>{ue()});const ae=()=>{vue.nextTick(()=>{var _e;const ce=(_e=document.querySelector("#design-container"))==null?void 0:_e.getBoundingClientRect();if(!ce)return;ie.innerWidth=ce.width,ie.innerHeight=ce.height;const{width:de,height:fe,thick:ve,innerWidth:he,innerHeight:pe}=ie,ge=de-he,me=fe-pe;le.value={width:ge>0?de+ge+ve+30+"px":vue.unref(de)+"px",height:me>0?fe+me+ve+30+"px":vue.unref(fe)+"px"},se()})},se=()=>{const ce=ie.innerWidth/(vue.unref(ee)+120),de=ie.innerHeight/(vue.unref(ne)+120),fe=Math.floor(Math.min(ce*100,de*100));U.setSacle(fe<100?fe:100)},ue=()=>{vue.nextTick(()=>{const ce=document.querySelector("#screens").getBoundingClientRect(),de=document.querySelector("#canvas").getBoundingClientRect(),fe=(ce.left+ie.thick-de.left)/U.getScale,ve=(ce.top+ie.thick-de.top)/U.getScale;ie.startX=fe>>0,ie.startY=ve>>0})};return G.$baseEventBus.on("auto-scale",()=>{se()}),ae(),ue(),window.addEventListener("resize",ae),vue.onUnmounted(()=>{window.removeEventListener("resize",ae)}),(ce,de)=>(vue.openBlock(),vue.createElementBlock("div",{class:"absolute top-0 left-0 grid-bg",style:vue.normalizeStyle({width:vue.unref(ie).width+vue.unref(ie).thick+"px",height:vue.unref(ie).height+vue.unref(ie).thick+"px"})},[(vue.openBlock(),vue.createBlock(vue.unref(SketchRule$1),{key:vue.unref(U).getScale,thick:vue.unref(ie).thick,scale:vue.unref(U).getScale,width:vue.unref(ie).width,height:vue.unref(ie).height,startX:vue.unref(ie).startX,startY:vue.unref(ie).startY,palette:oe,lines:vue.unref(U).getSketchRuleLine},null,8,["thick","scale","width","height","startX","startY","lines"])),vue.createElementVNode("div",{id:"screens",class:"absolute overflow-scroll",style:vue.normalizeStyle({width:vue.unref(ie).innerWidth+"px",height:vue.unref(ie).innerHeight+"px"}),onScroll:ue},[vue.createElementVNode("div",{class:"absolute top-0 left-0",style:vue.normalizeStyle(vue.unref(le))},[vue.createElementVNode("div",{id:"canvas",style:vue.normalizeStyle({transform:`scale(${vue.unref(U).getScale})`,transformOrigin:"0 0 0",background:"var(--design-bg-color2)"})},[vue.createElementVNode("div",{class:"render",style:vue.normalizeStyle({width:vue.unref(ee)+"px",height:vue.unref(ne)+"px",backgroundColor:vue.unref(U).getWidgetConfig.backgroundColor=="transparent"?"var(--design-bg-color2)":vue.unref(U).getWidgetConfig.backgroundColor,backgroundImage:`url(${vue.unref(re)(vue.unref(U).getWidgetConfig.backgroundImage)})`,backgroundSize:vue.unref(U).getWidgetConfig.backgroundSize,backgroundRepeat:vue.unref(U).getWidgetConfig.backgroundRepeat,backgroundPosition:vue.unref(U).getWidgetConfig.backgroundPosition})},[vue.renderSlot(ce.$slots,"default",{},void 0,!0)],4)],4)],4)],36)],4))}}),sketchRule_vue_vue_type_style_index_0_scoped_4c8c02c1_lang="",SketchRule=_export_sfc$2(_sfc_main$2_,[["__scopeId","data-v-4c8c02c1"]]);function prefixNames(te){for(var U=[],G=1;G<arguments.length;G++)U[G-1]=arguments[G];return U.map(function(ee){return ee.split(" ").map(function(ne){return ne?""+te+ne:""}).join(" ")}).join(" ")}function prefixCSS(te,U){return U.replace(/([^}{]*){/gm,function(G,ee){return ee.replace(/\.([^{,\s\d.]+)/g,"."+te+"$1")+"{"})}function ref$1(te,U){return function(G){G&&(te[U]=G)}}function refs(te,U,G){return function(ee){ee&&(te[U][G]=ee)}}function Properties(te,U){return function(G){var ee=G.prototype;te.forEach(function(ne){U(ee,ne)})}}function withMethods(te,U){return U===void 0&&(U={}),function(G,ee){te.forEach(function(ne){var re=U[ne]||ne;re in G||(G[re]=function(){for(var oe,ie=[],le=0;le<arguments.length;le++)ie[le]=arguments[le];var ae=(oe=this[ee])[ne].apply(oe,ie);return ae===this[ee]?this:ae})})}}var FUNCTION="function",OBJECT="object",STRING="string",NUMBER="number",UNDEFINED="undefined",IS_WINDOW=typeof window!==UNDEFINED,doc=typeof document!==UNDEFINED&&document,OPEN_CLOSED_CHARACTERS=[{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:'\\"',close:'\\"'},{open:"\\'",close:"\\'"}],TINY_NUM$1=1e-7,DEFAULT_UNIT_PRESETS={cm:function(te){return te*96/2.54},mm:function(te){return te*96/254},in:function(te){return te*96},pt:function(te){return te*96/72},pc:function(te){return te*96/6},"%":function(te,U){return te*U/100},vw:function(te,U){return U===void 0&&(U=window.innerWidth),te/100*U},vh:function(te,U){return U===void 0&&(U=window.innerHeight),te/100*U},vmax:function(te,U){return U===void 0&&(U=Math.max(window.innerWidth,window.innerHeight)),te/100*U},vmin:function(te,U){return U===void 0&&(U=Math.min(window.innerWidth,window.innerHeight)),te/100*U}};/*! *****************************************************************************
|
|
@@ -786,7 +786,7 @@ cursor: move;
|
|
|
786
786
|
}
|
|
787
787
|
.__STYLED__ .loading-tip {
|
|
788
788
|
font-size: 15px;
|
|
789
|
-
`("loading");vue.defineComponent({name:"Loading",setup(te,{slots:U}){return()=>vue.createVNode(o,null,{default:()=>{var G;return[vue.createVNode("svg",{width:"50px",height:"50px"},[vue.createVNode("circle",{cx:"25",cy:"25",r:"20",fill:"transparent","stroke-width":"3","stroke-dasharray":"31.415, 31.415",stroke:"#02bcfe","stroke-linecap":"round"},[vue.createVNode("animateTransform",{attributeName:"transform",type:"rotate",values:"0, 25 25;360, 25 25",dur:"1.5s",repeatCount:"indefinite"},null),vue.createVNode("animate",{attributeName:"stroke",values:"#02bcfe;#3be6cb;#02bcfe",dur:"3s",repeatCount:"indefinite"},null)]),vue.createVNode("circle",{cx:"25",cy:"25",r:"10",fill:"transparent","stroke-width":"3","stroke-dasharray":"15.7, 15.7",stroke:"#3be6cb","stroke-linecap":"round"},[vue.createVNode("animateTransform",{attributeName:"transform",type:"rotate",values:"360, 25 25;0, 25 25",dur:"1.5s",repeatCount:"indefinite"},null),vue.createVNode("animate",{attributeName:"stroke",values:"#3be6cb;#02bcfe;#3be6cb",dur:"3s",repeatCount:"indefinite"},null)])]),vue.createVNode("div",{class:"loading-tip"},[(G=U.default)==null?void 0:G.call(U)])]}})}});const _sfc_main$2Y=vue.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})},list:{default:()=>[]}},setup(te){const U=te,G=vue.computed(()=>{var ne,re;return(ne=U.config.customize)!=null&&ne.decorationColor1||(re=U.config.customize)!=null&&re.decorationColor2?[U.config.customize.decorationColor1,U.config.customize.decorationColor2]:[]}),{customRef:ee}=useRefresh(U.config);return(ne,re)=>(vue.openBlock(),vue.createBlock(vue.unref(V$3),{color:vue.unref(G),ref_key:"customRef",ref:ee},null,8,["color"]))}}),__vite_glob_0_0$1=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$2Y},Symbol.toStringTag,{value:"Module"})),_sfc_main$2X=vue.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})},list:{default:()=>[]}},setup(te){const U=te,G=vue.computed(()=>{var ne,re;return(ne=U.config.customize)!=null&&ne.decorationColor1||(re=U.config.customize)!=null&&re.decorationColor2?[U.config.customize.decorationColor1,U.config.customize.decorationColor2]:[]}),{customRef:ee}=useRefresh(U.config);return(ne,re)=>(vue.openBlock(),vue.createBlock(vue.unref(V$2),{color:vue.unref(G),ref_key:"customRef",ref:ee},null,8,["color"]))}}),__vite_glob_0_1$1=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$2X},Symbol.toStringTag,{value:"Module"})),_sfc_main$2W=vue.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})},list:{default:()=>[]}},setup(te){const U=te,G=vue.computed(()=>{var ne,re;return(ne=U.config.customize)!=null&&ne.decorationColor1||(re=U.config.customize)!=null&&re.decorationColor2?[U.config.customize.decorationColor1,U.config.customize.decorationColor2]:[]}),{customRef:ee}=useRefresh(U.config);return(ne,re)=>(vue.openBlock(),vue.createBlock(vue.unref(B$1),{color:vue.unref(G),ref_key:"customRef",ref:ee},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(U.config.customize.title),1)]),_:1},8,["color"]))}}),__vite_glob_0_2$1=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$2W},Symbol.toStringTag,{value:"Module"})),_sfc_main$2V=vue.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})},list:{default:()=>[]}},setup(te){const U=te,G=vue.computed(()=>{var ne,re;return(ne=U.config.customize)!=null&&ne.decorationColor1||(re=U.config.customize)!=null&&re.decorationColor2?[U.config.customize.decorationColor1,U.config.customize.decorationColor2]:[]}),{customRef:ee}=useRefresh(U.config);return(ne,re)=>(vue.openBlock(),vue.createBlock(vue.unref(dt),{color:vue.unref(G),scanDuration:ne.config.customize.scanDuration,haloDuration:ne.config.customize.haloDuration,ref_key:"customRef",ref:ee},null,8,["color","scanDuration","haloDuration"]))}}),__vite_glob_0_3$1=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$2V},Symbol.toStringTag,{value:"Module"})),_sfc_main$2U=vue.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})},list:{default:()=>[]}},setup(te){const U=te,G=vue.computed(()=>{var ne,re;return(ne=U.config.customize)!=null&&ne.decorationColor1||(re=U.config.customize)!=null&&re.decorationColor2?[U.config.customize.decorationColor1,U.config.customize.decorationColor2]:[]}),{customRef:ee}=useRefresh(U.config);return(ne,re)=>(vue.openBlock(),vue.createBlock(vue.unref(A$3),{color:vue.unref(G),duration:ne.config.customize.duration,reverse:ne.config.customize.reverse,ref_key:"customRef",ref:ee},null,8,["color","duration","reverse"]))}}),__vite_glob_0_4$1=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$2U},Symbol.toStringTag,{value:"Module"})),_sfc_main$2T=vue.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})},list:{default:()=>[]}},setup(te){const U=te,G=vue.computed(()=>{var ne,re;return(ne=U.config.customize)!=null&&ne.decorationColor1||(re=U.config.customize)!=null&&re.decorationColor2?[U.config.customize.decorationColor1,U.config.customize.decorationColor2]:[]}),{customRef:ee}=useRefresh(U.config);return(ne,re)=>(vue.openBlock(),vue.createBlock(vue.unref(E$1),{color:vue.unref(G),ref_key:"customRef",ref:ee},null,8,["color"]))}}),__vite_glob_0_5$1=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$2T},Symbol.toStringTag,{value:"Module"})),_sfc_main$2S=vue.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})},list:{default:()=>[]}},setup(te){const U=te,G=vue.computed(()=>{var ne,re;return(ne=U.config.customize)!=null&&ne.decorationColor1||(re=U.config.customize)!=null&&re.decorationColor2?[U.config.customize.decorationColor1,U.config.customize.decorationColor2]:[]}),{customRef:ee}=useRefresh(U.config);return(ne,re)=>(vue.openBlock(),vue.createBlock(vue.unref(F),{color:vue.unref(G),duration:ne.config.customize.duration,reverse:ne.config.customize.reverse,ref_key:"customRef",ref:ee},null,8,["color","duration","reverse"]))}}),__vite_glob_0_6$1=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$2S},Symbol.toStringTag,{value:"Module"})),_sfc_main$2R=vue.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})},list:{default:()=>[]}},setup(te){const U=te,G=vue.computed(()=>{var ne,re;return(ne=U.config.customize)!=null&&ne.decorationColor1||(re=U.config.customize)!=null&&re.decorationColor2?[U.config.customize.decorationColor1,U.config.customize.decorationColor2]:[]}),{customRef:ee}=useRefresh(U.config);return(ne,re)=>(vue.openBlock(),vue.createBlock(vue.unref(J$1),{color:vue.unref(G),duration:ne.config.customize.duration,ref_key:"customRef",ref:ee},null,8,["color","duration"]))}}),__vite_glob_0_7$1=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$2R},Symbol.toStringTag,{value:"Module"})),_sfc_main$2Q=vue.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})},list:{default:()=>[]}},setup(te){const U=te,G=vue.computed(()=>{var ne,re;return(ne=U.config.customize)!=null&&ne.decorationColor1||(re=U.config.customize)!=null&&re.decorationColor2?[U.config.customize.decorationColor1,U.config.customize.decorationColor2]:[]}),{customRef:ee}=useRefresh(U.config);return(ne,re)=>(vue.openBlock(),vue.createBlock(vue.unref(Y),{color:vue.unref(G),ref_key:"customRef",ref:ee},null,8,["color"]))}}),__vite_glob_0_8$1=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$2Q},Symbol.toStringTag,{value:"Module"})),_sfc_main$2P=vue.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})},list:{default:()=>[]}},setup(te){const U=te,G=vue.computed(()=>{var ne,re;return(ne=U.config.customize)!=null&&ne.decorationColor1||(re=U.config.customize)!=null&&re.decorationColor2?[U.config.customize.decorationColor1,U.config.customize.decorationColor2]:[]}),{customRef:ee}=useRefresh(U.config);return(ne,re)=>(vue.openBlock(),vue.createBlock(vue.unref(A$1),{color:vue.unref(G),reverse:ne.config.customize.reverse,ref_key:"customRef",ref:ee},null,8,["color","reverse"]))}}),__vite_glob_0_9$1=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$2P},Symbol.toStringTag,{value:"Module"})),_sfc_main$2O=vue.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})},list:{default:()=>[]}},setup(te){const U=te,G=vue.computed(()=>{var ne,re;return(ne=U.config.customize)!=null&&ne.decorationColor1||(re=U.config.customize)!=null&&re.decorationColor2?[U.config.customize.decorationColor1,U.config.customize.decorationColor2]:[]}),{customRef:ee}=useRefresh(U.config);return(ne,re)=>(vue.openBlock(),vue.createBlock(vue.unref(J),{color:vue.unref(G),reverse:ne.config.customize.duration,ref_key:"customRef",ref:ee},null,8,["color","reverse"]))}}),__vite_glob_0_10$1=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$2O},Symbol.toStringTag,{value:"Module"})),_sfc_main$2N=vue.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})},list:{default:()=>[]}},setup(te){const U=te,G=vue.computed(()=>{var ne,re;return(ne=U.config.customize)!=null&&ne.borderMainColor||(re=U.config.customize)!=null&&re.borderSecondaryColor?[U.config.customize.borderMainColor,U.config.customize.borderSecondaryColor]:[]}),{customRef:ee}=useRefresh(U.config);return(ne,re)=>{var oe;return vue.openBlock(),vue.createBlock(vue.unref(D$7),{color:vue.unref(G),backgroundColor:(oe=U.config)==null?void 0:oe.customize.backgroundColor,ref_key:"customRef",ref:ee},null,8,["color","backgroundColor"])}}}),__vite_glob_1_0$1=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$2N},Symbol.toStringTag,{value:"Module"})),_sfc_main$2M=vue.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})},list:{default:()=>[]}},setup(te){const U=te,G=vue.computed(()=>{var ne,re;return(ne=U.config.customize)!=null&&ne.borderMainColor||(re=U.config.customize)!=null&&re.borderSecondaryColor?[U.config.customize.borderMainColor,U.config.customize.borderSecondaryColor]:[]}),{customRef:ee}=useRefresh(U.config);return(ne,re)=>{var oe;return vue.openBlock(),vue.createBlock(vue.unref(E$4),{color:vue.unref(G),backgroundColor:(oe=U.config)==null?void 0:oe.customize.backgroundColor,ref_key:"customRef",ref:ee},null,8,["color","backgroundColor"])}}}),__vite_glob_1_1$1=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$2M},Symbol.toStringTag,{value:"Module"})),_sfc_main$2L=vue.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})},list:{default:()=>[]}},setup(te){const U=te,G=vue.computed(()=>{var ne,re;return(ne=U.config.customize)!=null&&ne.borderMainColor||(re=U.config.customize)!=null&&re.borderSecondaryColor?[U.config.customize.borderMainColor,U.config.customize.borderSecondaryColor]:[]}),{customRef:ee}=useRefresh(U.config);return(ne,re)=>{var oe,ie,le;return vue.openBlock(),vue.createBlock(vue.unref(O$1),{color:vue.unref(G),title:(oe=U.config)==null?void 0:oe.customize.title,titleWidth:(ie=U.config)==null?void 0:ie.customize.titleWidth,backgroundColor:(le=U.config)==null?void 0:le.customize.backgroundColor,ref_key:"customRef",ref:ee},null,8,["color","title","titleWidth","backgroundColor"])}}}),__vite_glob_1_2$1=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$2L},Symbol.toStringTag,{value:"Module"})),_sfc_main$2K=vue.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})},list:{default:()=>[]}},setup(te){const U=te,G=vue.computed(()=>{var ne,re;return(ne=U.config.customize)!=null&&ne.borderMainColor||(re=U.config.customize)!=null&&re.borderSecondaryColor?[U.config.customize.borderMainColor,U.config.customize.borderSecondaryColor]:[]}),{customRef:ee}=useRefresh(U.config);return(ne,re)=>{var oe;return vue.openBlock(),vue.createBlock(vue.unref(D$6),{color:vue.unref(G),backgroundColor:(oe=U.config)==null?void 0:oe.customize.backgroundColor,ref_key:"customRef",ref:ee},null,8,["color","backgroundColor"])}}}),__vite_glob_1_3$1=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$2K},Symbol.toStringTag,{value:"Module"})),_sfc_main$2J=vue.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})},list:{default:()=>[]}},setup(te){const U=te,G=vue.computed(()=>{var ne,re;return(ne=U.config.customize)!=null&&ne.borderMainColor||(re=U.config.customize)!=null&&re.borderSecondaryColor?[U.config.customize.borderMainColor,U.config.customize.borderSecondaryColor]:[]}),{customRef:ee}=useRefresh(U.config);return(ne,re)=>{var oe;return vue.openBlock(),vue.createBlock(vue.unref(R$7),{color:vue.unref(G),backgroundColor:(oe=U.config)==null?void 0:oe.customize.backgroundColor,ref_key:"customRef",ref:ee},null,8,["color","backgroundColor"])}}}),__vite_glob_1_4$1=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$2J},Symbol.toStringTag,{value:"Module"})),_sfc_main$2I=vue.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})},list:{default:()=>[]}},setup(te){const U=te,G=vue.computed(()=>{var ne,re;return(ne=U.config.customize)!=null&&ne.borderMainColor||(re=U.config.customize)!=null&&re.borderSecondaryColor?[U.config.customize.borderMainColor,U.config.customize.borderSecondaryColor]:[]}),{customRef:ee}=useRefresh(U.config);return(ne,re)=>{var oe;return vue.openBlock(),vue.createBlock(vue.unref(R$6),{color:vue.unref(G),backgroundColor:(oe=U.config)==null?void 0:oe.customize.backgroundColor,ref_key:"customRef",ref:ee},null,8,["color","backgroundColor"])}}}),__vite_glob_1_5$1=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$2I},Symbol.toStringTag,{value:"Module"})),_sfc_main$2H=vue.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})},list:{default:()=>[]}},setup(te){const U=te,G=vue.computed(()=>{var ne,re;return(ne=U.config.customize)!=null&&ne.borderMainColor||(re=U.config.customize)!=null&&re.borderSecondaryColor?[U.config.customize.borderMainColor,U.config.customize.borderSecondaryColor]:[]}),{customRef:ee}=useRefresh(U.config);return(ne,re)=>{var oe;return vue.openBlock(),vue.createBlock(vue.unref(E$3),{color:vue.unref(G),backgroundColor:(oe=U.config)==null?void 0:oe.customize.backgroundColor,ref_key:"customRef",ref:ee},null,8,["color","backgroundColor"])}}}),__vite_glob_1_6$1=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$2H},Symbol.toStringTag,{value:"Module"})),_sfc_main$2G=vue.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})},list:{default:()=>[]}},setup(te){const U=te,G=vue.computed(()=>{var ne,re;return(ne=U.config.customize)!=null&&ne.borderMainColor||(re=U.config.customize)!=null&&re.borderSecondaryColor?[U.config.customize.borderMainColor,U.config.customize.borderSecondaryColor]:[]}),{customRef:ee}=useRefresh(U.config);return(ne,re)=>{var oe,ie;return vue.openBlock(),vue.createBlock(vue.unref(J$4),{color:vue.unref(G),backgroundColor:(oe=U.config)==null?void 0:oe.customize.backgroundColor,reverse:(ie=U.config)==null?void 0:ie.customize.reverse,ref_key:"customRef",ref:ee},null,8,["color","backgroundColor","reverse"])}}}),__vite_glob_1_7$1=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$2G},Symbol.toStringTag,{value:"Module"})),_sfc_main$2F=vue.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})},list:{default:()=>[]}},setup(te){const U=te,G=vue.computed(()=>{var ne,re;return(ne=U.config.customize)!=null&&ne.borderMainColor||(re=U.config.customize)!=null&&re.borderSecondaryColor?[U.config.customize.borderMainColor,U.config.customize.borderSecondaryColor]:[]}),{customRef:ee}=useRefresh(U.config);return(ne,re)=>{var oe,ie;return vue.openBlock(),vue.createBlock(vue.unref(J$3),{color:vue.unref(G),backgroundColor:(oe=U.config)==null?void 0:oe.customize.backgroundColor,reverse:(ie=U.config)==null?void 0:ie.customize.reverse,ref_key:"customRef",ref:ee},null,8,["color","backgroundColor","reverse"])}}}),__vite_glob_1_8$1=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$2F},Symbol.toStringTag,{value:"Module"})),_sfc_main$2E=vue.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})},list:{default:()=>[]}},setup(te){const U=te,G=vue.computed(()=>{var ne,re;return(ne=U.config.customize)!=null&&ne.borderMainColor||(re=U.config.customize)!=null&&re.borderSecondaryColor?[U.config.customize.borderMainColor,U.config.customize.borderSecondaryColor]:[]}),{customRef:ee}=useRefresh(U.config);return(ne,re)=>{var oe;return vue.openBlock(),vue.createBlock(vue.unref(R$5),{color:vue.unref(G),backgroundColor:(oe=U.config)==null?void 0:oe.customize.backgroundColor,ref_key:"customRef",ref:ee},null,8,["color","backgroundColor"])}}}),__vite_glob_1_9$1=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$2E},Symbol.toStringTag,{value:"Module"})),_sfc_main$2D=vue.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})},list:{default:()=>[]}},setup(te){const U=te,G=vue.computed(()=>{var ne,re;return(ne=U.config.customize)!=null&&ne.borderMainColor||(re=U.config.customize)!=null&&re.borderSecondaryColor?[U.config.customize.borderMainColor,U.config.customize.borderSecondaryColor]:[]}),{customRef:ee}=useRefresh(U.config);return(ne,re)=>{var oe;return vue.openBlock(),vue.createBlock(vue.unref(E$2),{color:vue.unref(G),backgroundColor:(oe=U.config)==null?void 0:oe.customize.backgroundColor,ref_key:"customRef",ref:ee},null,8,["color","backgroundColor"])}}}),__vite_glob_1_10$1=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$2D},Symbol.toStringTag,{value:"Module"})),_sfc_main$2C=vue.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})},list:{default:()=>[]}},setup(te){const U=te,G=vue.computed(()=>{var ne,re;return(ne=U.config.customize)!=null&&ne.borderMainColor||(re=U.config.customize)!=null&&re.borderSecondaryColor?[U.config.customize.borderMainColor,U.config.customize.borderSecondaryColor]:[]}),{customRef:ee}=useRefresh(U.config);return(ne,re)=>{var oe,ie,le;return vue.openBlock(),vue.createBlock(vue.unref(Y$3),{color:vue.unref(G),backgroundColor:(oe=U.config)==null?void 0:oe.customize.backgroundColor,reverse:(ie=U.config)==null?void 0:ie.customize.reverse,duration:(le=U.config)==null?void 0:le.customize.duration,ref_key:"customRef",ref:ee},null,8,["color","backgroundColor","reverse","duration"])}}}),__vite_glob_1_11$1=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$2C},Symbol.toStringTag,{value:"Module"})),_sfc_main$2B=vue.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})},list:{default:()=>[]}},setup(te){const U=te,G=vue.computed(()=>{var ne,re;return(ne=U.config.customize)!=null&&ne.borderMainColor||(re=U.config.customize)!=null&&re.borderSecondaryColor?[U.config.customize.borderMainColor,U.config.customize.borderSecondaryColor]:[]}),{customRef:ee}=useRefresh(U.config);return(ne,re)=>{var oe;return vue.openBlock(),vue.createBlock(vue.unref(V$4),{color:vue.unref(G),backgroundColor:(oe=U.config)==null?void 0:oe.customize.backgroundColor,ref_key:"customRef",ref:ee},null,8,["color","backgroundColor"])}}}),__vite_glob_1_12$1=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$2B},Symbol.toStringTag,{value:"Module"})),_sfc_main$2A=vue.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})},list:{default:()=>[]}},setup(te){const U=te,G=vue.computed(()=>{const ee=U.config.customize.gradientColor0,ne=U.config.customize.gradientColor1;return`linear-gradient(to bottom, ${ee||ne} , ${ne||ee})`});return(ee,ne)=>(vue.openBlock(),vue.createElementBlock("div",{style:vue.normalizeStyle({width:U.config.customize.width+"px","background-image":vue.unref(G)}),class:"h-full"},null,4))}}),__vite_glob_2_0$1=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$2A},Symbol.toStringTag,{value:"Module"})),_hoisted_1$1F=["src"],_sfc_main$2z=vue.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})},list:{default:()=>[]}},setup(te){const U=te;return(G,ee)=>(vue.openBlock(),vue.createElementBlock("iframe",{src:U.config.customize.url,class:"w-full h-full border-0"},null,8,_hoisted_1$1F))}}),__vite_glob_2_1$1=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$2z},Symbol.toStringTag,{value:"Module"})),_sfc_main$2y=vue.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})},list:{default:()=>[]}},setup(te){const{proxy:U}=vue.getCurrentInstance(),{resetUrl:G}=U.$globalUtils,ee=te;return(ne,re)=>(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElImage),{class:"w-full h-full",src:vue.unref(G)(ee.config.customize.url),fit:ee.config.customize.fit},null,8,["src","fit"]))}}),__vite_glob_2_2$1=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$2y},Symbol.toStringTag,{value:"Module"})),_sfc_main$2x=vue.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})},list:{default:()=>[]}},setup(te){const U=te,G=vue.computed(()=>`-webkit-linear-gradient(${U.config.customize.colorPosition}, ${U.config.customize.startColor}, ${U.config.customize.endColor}`);return(ee,ne)=>(vue.openBlock(),vue.createElementBlock("div",{style:vue.normalizeStyle({...U.config.customize,fontSize:U.config.customize.fontSize+"px",letterSpacing:U.config.customize.letterSpacing+"px",backgroundImage:vue.unref(G),"-webkit-background-clip":"text","-webkit-text-fill-color":"transparent"})},vue.toDisplayString(U.config.customize.title),5))}}),__vite_glob_2_3$1=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$2x},Symbol.toStringTag,{value:"Module"})),_sfc_main$2w=vue.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})},list:{default:()=>[]}},setup(te){const U=te,G=vue.computed(()=>{const ee=U.config.customize.gradientColor0,ne=U.config.customize.gradientColor1;return`linear-gradient(to ${U.config.customize.colorPosition}, ${ee||ne} , ${ne||ee})`});return(ee,ne)=>(vue.openBlock(),vue.createElementBlock("div",{class:"w-full h-full",style:vue.normalizeStyle({"background-image":vue.unref(G),borderRadius:U.config.customize.borderRadius+"px"})},null,4))}}),__vite_glob_2_4$1=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$2w},Symbol.toStringTag,{value:"Module"})),_sfc_main$2v=vue.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})},list:{default:()=>[]}},setup(te){const U=te,G=vue.computed(()=>`-webkit-linear-gradient(${U.config.customize.colorPosition}, ${U.config.customize.startColor}, ${U.config.customize.endColor}`);return(ee,ne)=>(vue.openBlock(),vue.createElementBlock("div",{style:vue.normalizeStyle({...U.config.customize,fontSize:U.config.customize.fontSize+"px",letterSpacing:U.config.customize.letterSpacing+"px",backgroundImage:vue.unref(G),"-webkit-background-clip":"text","-webkit-text-fill-color":"transparent"})},vue.toDisplayString(U.config.customize.title),5))}}),__vite_glob_2_5$1=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$2v},Symbol.toStringTag,{value:"Module"})),_sfc_main$2u=vue.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})},list:{default:()=>[]}},setup(te){const U=te,G=vue.ref(),ee=()=>{G.value=dayjs().format("YYYY-MM-DD HH:mm:ss")},ne=setInterval(()=>{ee()},1e3);ee(),vue.onBeforeUnmount(()=>{ne&&clearInterval(ne)});const re=vue.computed(()=>`-webkit-linear-gradient(${U.config.customize.colorPosition}, ${U.config.customize.startColor}, ${U.config.customize.endColor}`);return(oe,ie)=>(vue.openBlock(),vue.createElementBlock("div",{style:vue.normalizeStyle({...U.config.customize,fontSize:U.config.customize.fontSize+"px",letterSpacing:U.config.customize.letterSpacing+"px",backgroundImage:vue.unref(re),"-webkit-background-clip":"text","-webkit-text-fill-color":"transparent"})},vue.toDisplayString(vue.unref(G)),5))}}),__vite_glob_2_6$1=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$2u},Symbol.toStringTag,{value:"Module"})),_sfc_main$2t=vue.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})},list:{default:()=>[]}},setup(te){const U=te,G=vue.computed(()=>{const ee=U.config.customize.gradientColor0,ne=U.config.customize.gradientColor1;return`linear-gradient(to right, ${ee||ne} , ${ne||ee})`});return(ee,ne)=>(vue.openBlock(),vue.createElementBlock("div",{style:vue.normalizeStyle({height:U.config.customize.height+"px","background-image":vue.unref(G)}),class:"w-full"},null,4))}}),__vite_glob_2_7$1=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$2t},Symbol.toStringTag,{value:"Module"})),_hoisted_1$1E={class:"w-full h-full"},_hoisted_2$1m=["placeholder"],_sfc_main$2s=vue.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})},list:{default:()=>[]}},setup(te){vue.useCssVars(re=>({"75aca5f8":vue.unref(ee)}));const U=te,{proxy:G}=vue.getCurrentInstance(),ee=vue.computed(()=>U.config.customize.color),ne=()=>{const re=U.config.customize.linkage;G.$baseEventBus.emit("ace-screen-indicators-linkage",re.map(oe=>oe[0]))};return(re,oe)=>(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$1E,[vue.withDirectives(vue.createElementVNode("input",{"onUpdate:modelValue":oe[0]||(oe[0]=ie=>U.config.customize.modelValue=ie),placeholder:U.config.customize.placeholder,style:vue.normalizeStyle({width:"100%",height:"100%",backgroundColor:U.config.customize.backgroundColor,borderWidth:`${U.config.customize.borderTopWidth}px ${U.config.customize.borderRightWidth}px ${U.config.customize.borderBottomWidth}px ${U.config.customize.borderLeftWidth}px `,borderColor:U.config.customize.borderColor,color:U.config.customize.color,fontSize:U.config.customize.fontSize+"px",borderRadius:U.config.customize.borderRadius+"px"}),onBlur:ne},null,44,_hoisted_2$1m),[[vue.vModelText,U.config.customize.modelValue]])]))}}),index_vue_vue_type_style_index_0_scoped_4faa96c2_lang="",index$2=_export_sfc$2(_sfc_main$2s,[["__scopeId","data-v-4faa96c2"]]),__vite_glob_3_0$1=Object.freeze(Object.defineProperty({__proto__:null,default:index$2},Symbol.toStringTag,{value:"Module"})),_hoisted_1$1D={class:"w-full h-full"},_sfc_main$2r=vue.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})},list:{default:()=>[]}},setup(te){const U=te,{proxy:G}=vue.getCurrentInstance(),ee=vue.ref([]);vue.watch(()=>U.config.customize.dictId,()=>{ne()},{});const ne=()=>{const oe=U.config.customize.dictId;oe&&G.$baseHttp.get(`/api/ace-data-center/custom-dic/readDict/${oe}`).then(ie=>{ee.value=ie.data??[]})};vue.onMounted(()=>{ne()});const re=()=>{const oe=U.config.customize.linkage;G.$baseEventBus.emit("ace-screen-indicators-linkage",oe.map(ie=>ie[0]))};return(oe,ie)=>(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$1D,[vue.createVNode(vue.unref(elementPlus.ElSelect),{modelValue:U.config.customize.modelValue,"onUpdate:modelValue":ie[0]||(ie[0]=le=>U.config.customize.modelValue=le),placeholder:U.config.customize.placeholder,style:{width:"100%",height:"100%"},onChange:re,clearable:U.config.customize.clearable},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vue.unref(ee),le=>(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElOption),{label:le.name,value:le.code,key:le.code},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder","clearable"])]))}}),__vite_glob_3_1$1=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$2r},Symbol.toStringTag,{value:"Module"})),moudleComponents$1={};for(let te=0;te<=5;te+=1){let U=null;if(te==0&&(U=Object.assign({"../decoration/decoration1/index.vue":__vite_glob_0_0$1,"../decoration/decoration10/index.vue":__vite_glob_0_1$1,"../decoration/decoration11/index.vue":__vite_glob_0_2$1,"../decoration/decoration12/index.vue":__vite_glob_0_3$1,"../decoration/decoration2/index.vue":__vite_glob_0_4$1,"../decoration/decoration3/index.vue":__vite_glob_0_5$1,"../decoration/decoration4/index.vue":__vite_glob_0_6$1,"../decoration/decoration5/index.vue":__vite_glob_0_7$1,"../decoration/decoration6/index.vue":__vite_glob_0_8$1,"../decoration/decoration8/index.vue":__vite_glob_0_9$1,"../decoration/decoration9/index.vue":__vite_glob_0_10$1})),te==1&&(U=Object.assign({"../border/border1/index.vue":__vite_glob_1_0$1,"../border/border10/index.vue":__vite_glob_1_1$1,"../border/border11/index.vue":__vite_glob_1_2$1,"../border/border12/index.vue":__vite_glob_1_3$1,"../border/border13/index.vue":__vite_glob_1_4$1,"../border/border2/index.vue":__vite_glob_1_5$1,"../border/border3/index.vue":__vite_glob_1_6$1,"../border/border4/index.vue":__vite_glob_1_7$1,"../border/border5/index.vue":__vite_glob_1_8$1,"../border/border6/index.vue":__vite_glob_1_9$1,"../border/border7/index.vue":__vite_glob_1_10$1,"../border/border8/index.vue":__vite_glob_1_11$1,"../border/border9/index.vue":__vite_glob_1_12$1})),te==2&&(U=Object.assign({"../basic/horizontal-line/index.vue":__vite_glob_2_0$1,"../basic/iframe/index.vue":__vite_glob_2_1$1,"../basic/img/index.vue":__vite_glob_2_2$1,"../basic/number/index.vue":__vite_glob_2_3$1,"../basic/square/index.vue":__vite_glob_2_4$1,"../basic/text/index.vue":__vite_glob_2_5$1,"../basic/time/index.vue":__vite_glob_2_6$1,"../basic/vertical-line/index.vue":__vite_glob_2_7$1})),te==3&&(U=Object.assign({"../control/input/index.vue":__vite_glob_3_0$1,"../control/select/index.vue":__vite_glob_3_1$1})),U)for(const[G,ee]of Object.entries(U)){const ne=G.split("/")[2];moudleComponents$1[ne]=ee.default}}function useBarCommon(){const te=vue.ref((window==null?void 0:window.customSeriesData)??{}),U=(ne,re)=>{ne.series=[],setTimeout(()=>{const oe=ne.dataShow.y.filter(ie=>!ne.dataShow.hide.includes(ie));ne.dataset.dimensions=[ne.dataShow.x,...oe],ne.dataShow.y.forEach(ie=>{te.value[ie]||(te.value[ie]=JSON.parse(JSON.stringify(G)))}),window.customSeriesData=te.value,Object.values(vue.unref(te)).forEach(ie=>{ie.label.formatter=le=>{const ae=ne.custom,se=le.data[le.seriesName];if((ae==null?void 0:ae.toFixed)!=="")try{return Number(se).toFixed(ae.toFixed)}catch{return se}return se}}),ne.series=oe.map((ie,le)=>te.value[ie]),re&&re()})},G={type:"bar",barWidth:15,stack:!1,borderRadiusNumber:4,itemStyle:{color:null,borderRadius:[4,4,0,0]},label:{show:!0,rotate:0,position:"top",color:"#000000",fontSize:10}};return{init:U,customSeriesData:te,seriesItem:G,barConfig:{tooltip:{show:!0,confine:!0,valueFormatter:ne=>ne,trigger:"axis",axisPointer:{show:!0,type:"shadow"}},custom:{prefix:"",suffix:"",toFixed:0},dataShow:{x:[],y:[],hide:[]},grid:{left:"3%",right:"3%",bottom:"3%",top:"10%",containLabel:!0},legend:{show:!0,textStyle:{fontSize:12},x:"center",y:"top",orient:"horizontal",icon:"roundRect",itemWidth:20,itemHeight:10},xAxis:{show:!0,axisLabel:{fontSize:12,interval:0,rotate:0},nameTextStyle:{fontSize:12},splitLine:{lineStyle:{width:1,type:"solid"}},position:"bottom",type:"category"},yAxis:{show:!0,axisLabel:{fontSize:12,interval:0,rotate:0},nameTextStyle:{fontSize:12},splitLine:{lineStyle:{width:1,type:"solid"}},position:"left",type:"value"},dataset:{},series:[]}}}function useLineCommon(){const te=vue.ref((window==null?void 0:window.customSeriesData)??{}),U=(ne,re)=>{ne.series=[],setTimeout(()=>{const oe=ne.dataShow.y.filter(ie=>!ne.dataShow.hide.includes(ie));ne.dataset.dimensions=[ne.dataShow.x,...oe],ne.dataShow.y.forEach(ie=>{te.value[ie]||(te.value[ie]=JSON.parse(JSON.stringify(G)))}),window.customSeriesData=te.value,Object.values(vue.unref(te)).forEach(ie=>{ie.label.formatter=le=>{const ae=ne.custom,se=le.data[le.seriesName];if((ae==null?void 0:ae.toFixed)!=="")try{return Number(se).toFixed(ae.toFixed)}catch{return se}return se}}),ne.series=oe.map((ie,le)=>te.value[ie]),re&&re()})},G={type:"line",symbolSize:5,smooth:!0,lineStyle:{type:"solid",width:3,color:null},label:{show:!0,position:"top",color:"#000000",fontSize:10,rotate:0}};return{init:U,customSeriesData:te,seriesItem:G,lineConfig:{tooltip:{show:!0,confine:!0,valueFormatter:ne=>ne,trigger:"axis",axisPointer:{show:!0,type:"shadow"}},custom:{prefix:"",suffix:"",toFixed:0},dataShow:{x:[],y:[],hide:[]},grid:{left:"3%",right:"3%",bottom:"3%",top:"10%",containLabel:!0},legend:{show:!0,textStyle:{fontSize:12},x:"center",y:"top",orient:"horizontal",itemWidth:20,itemHeight:10},xAxis:{show:!0,axisLabel:{fontSize:12,interval:0,rotate:0},nameTextStyle:{fontSize:12},splitLine:{lineStyle:{width:1,type:"solid"}},position:"bottom",type:"category"},yAxis:{show:!0,axisLabel:{fontSize:12,interval:0,rotate:0},nameTextStyle:{fontSize:12},splitLine:{lineStyle:{width:1,type:"solid"}},position:"left",type:"value"},dataset:{},series:[]}}}function usePieCommon(){const te=vue.ref((window==null?void 0:window.customSeriesData)??{}),U=(ne,re)=>{ne.series=[],setTimeout(()=>{ne.dataset.dimensions=[ne.dataShow.x,ne.dataShow.y],te.value[ne.dataShow.y]||(te.value[ne.dataShow.y]=JSON.parse(JSON.stringify(G))),window.customSeriesData=te.value,ne.series=[te.value[ne.dataShow.y]],re&&re()})},G={type:"pie",radius:["40%","65%"],center:["50%","50%"],roseType:!1,avoidLabelOverlap:!1,itemStyle:{show:!0,borderRadius:10,borderColor:"#fff",borderWidth:2},emphasis:{labelLine:{show:!0}},labelLine:{show:!0},label:{show:!0,color:"#000000",fontSize:10,position:"center",formatter:"{b}"}};return{init:U,customSeriesData:te,seriesItem:G,pieConfig:{tooltip:{show:!0,confine:!0,valueFormatter:ne=>ne,trigger:"item"},dataShow:{x:"",y:""},grid:{left:"3%",right:"3%",bottom:"3%",top:"10%",containLabel:!0},legend:{show:!0,textStyle:{fontSize:12},x:"center",y:"top",orient:"horizontal",icon:"roundRect",itemWidth:20,itemHeight:10},dataset:{},series:[]}}}function useBarLineCommon(){const te=vue.ref((window==null?void 0:window.customSeriesData)??{}),U=(re,oe)=>{re.series=[],setTimeout(()=>{const ie=re.dataShow.y.filter(le=>!re.dataShow.hide.includes(le));re.dataset.dimensions=[re.dataShow.x,...ie],re.dataShow.y.forEach((le,ae)=>{if(te.value[le])return;const se=re.dataShow.y.length==ae+1&&re.dataShow.y.length>0;te.value[le]=JSON.parse(JSON.stringify(se?G:ee))}),window.customSeriesData=te.value,Object.values(vue.unref(te)).forEach(le=>{le.label.formatter=ae=>{const se=re.custom,ue=ae.data[ae.seriesName];if((se==null?void 0:se.toFixed)!=="")try{return Number(ue).toFixed(se.toFixed)}catch{return ue}return ue}}),re.series=ie.map((le,ae)=>te.value[le]),oe&&oe()})},G={type:"line",symbolSize:5,smooth:!0,lineStyle:{type:"solid",width:3,color:null},label:{show:!0,rotate:0,position:"top",color:"#000000",fontSize:10}},ee={type:"bar",barWidth:15,stack:!1,borderRadiusNumber:4,itemStyle:{color:null,borderRadius:[4,4,0,0]},label:{show:!0,rotate:0,position:"top",color:"#000000",fontSize:10}};return{init:U,customSeriesData:te,seriesLineItem:G,seriesBarItem:ee,barsLinesConfig:{tooltip:{show:!0,confine:!0,valueFormatter:re=>re,trigger:"axis",axisPointer:{show:!0,type:"shadow"}},custom:{prefix:"",suffix:"",toFixed:0},dataShow:{x:[],y:[],hide:[]},grid:{left:"3%",right:"3%",bottom:"3%",top:"10%",containLabel:!0},legend:{show:!0,textStyle:{fontSize:12},x:"center",y:"top",orient:"horizontal",itemWidth:20,itemHeight:10},xAxis:{show:!0,axisLabel:{fontSize:12,interval:0,rotate:0},nameTextStyle:{fontSize:12},splitLine:{lineStyle:{width:1,type:"solid"}},position:"bottom",type:"category"},yAxis:{show:!0,axisLabel:{fontSize:12,interval:0,rotate:0},nameTextStyle:{fontSize:12},splitLine:{lineStyle:{width:1,type:"solid"}},position:"left",type:"value"},dataset:{},series:[]}}}function useScatterCommon(){const te=vue.ref((window==null?void 0:window.customSeriesData)??{}),U=(ne,re)=>{ne.series=[],setTimeout(()=>{const oe=ne.dataShow.y.filter(ie=>!ne.dataShow.hide.includes(ie));ne.dataset.dimensions=[ne.dataShow.x,...oe],ne.dataShow.y.forEach(ie=>{te.value[ie]||(te.value[ie]=JSON.parse(JSON.stringify(G)))}),window.customSeriesData=te.value,Object.values(vue.unref(te)).forEach(ie=>{ie.label.formatter=le=>{const ae=ne.custom,se=le.data[le.seriesName];if((ae==null?void 0:ae.toFixed)!=="")try{return Number(se).toFixed(ae.toFixed)}catch{return se}return se}}),ne.series=oe.map((ie,le)=>te.value[ie]),re&&re()})},G={type:"scatter",emphasis:{focus:"series"},symbolSize:12,itemStyle:{color:null},markArea:{silent:!0,itemStyle:{color:"transparent",borderWidth:1,borderType:"dashed"},data:[[{xAxis:"min",yAxis:"min"},{xAxis:"max",yAxis:"max"}]]},label:{show:!0,rotate:0,position:"top",color:"#000000",fontSize:10}};return{init:U,customSeriesData:te,seriesItem:G,scatterCfg:{tooltip:{show:!0,confine:!0,valueFormatter:ne=>ne,trigger:"axis",axisPointer:{show:!0,type:"shadow"}},custom:{prefix:"",suffix:"",toFixed:0},dataShow:{x:[],y:[],hide:[]},grid:{left:"3%",right:"3%",bottom:"3%",top:"10%",containLabel:!0},legend:{show:!0,textStyle:{fontSize:12},x:"center",y:"top",orient:"horizontal",icon:"roundRect",itemWidth:20,itemHeight:10},xAxis:{show:!0,axisLabel:{fontSize:12,interval:0,rotate:0},nameTextStyle:{fontSize:12},splitLine:{lineStyle:{width:1,type:"solid"}},position:"bottom",type:"category"},yAxis:{show:!0,axisLabel:{fontSize:12,interval:0,rotate:0},nameTextStyle:{fontSize:12},splitLine:{lineStyle:{width:1,type:"solid"}},position:"left",type:"value"},dataset:{},series:[]}}}function useRadar(){const te=vue.ref((window==null?void 0:window.customSeriesData)??{}),U=(ne,re)=>{ne.series=[],setTimeout(()=>{const oe=ne.dataShow.y.filter(le=>!ne.dataShow.hide.includes(le));ne.dataset.dimensions=oe,vue.unref(te).type||(te.value=JSON.parse(JSON.stringify(G))),window.customSeriesData=te.value,ne.radar.indicator=ne.dataset.source.map(le=>({name:le[ne.dataShow.x]}));const ie=[];ne.dataset.dimensions.forEach(le=>{ie.push({name:le,value:ne.dataset.source.map(ae=>ae[le])})}),ne.series=[{...te.value,data:ie}],vue.unref(te).label.formatter=le=>{const ae=ne.custom,se=le.value;if((ae==null?void 0:ae.toFixed)!=="")try{return Number(se).toFixed(ae.toFixed)}catch{return se}return se},re&&re()})},G={type:"radar",areaStyle:{opacity:.1},label:{show:!0,rotate:0,position:"top",color:"#000000",fontSize:10},data:[]};return{init:U,customSeriesData:te,seriesItem:G,radarConfig:{tooltip:{show:!0,confine:!0,valueFormatter:ne=>ne},custom:{prefix:"",suffix:"",toFixed:0},dataShow:{x:[],y:[],hide:[]},grid:{left:"3%",right:"3%",bottom:"3%",top:"10%",containLabel:!0},legend:{show:!0,textStyle:{fontSize:12},x:"center",y:"top",orient:"horizontal",icon:"roundRect",itemWidth:20,itemHeight:10},radar:{shape:"polygon",radius:["0%","60%"],center:["50%","55%"],splitArea:{show:!0},splitLine:{show:!0},axisName:{show:!0,color:"#000",fontSize:12},axisLine:{show:!0},axisTick:{show:!0},indicator:[]},dataset:{},series:[]}}}function useNumber(){const te=vue.ref((window==null?void 0:window.customSeriesData)??{}),U=(ne,re)=>{ne.series=[],setTimeout(()=>{typeof ne.dataShow.y=="string"&&ne.dataShow.y&&(ne.dataShow.y=[ne.dataShow.y]);const oe=ne.dataShow.y.filter(ie=>{var le;return!(((le=ne.dataShow)==null?void 0:le.hide)??[]).includes(ie)});ne.dataset.dimensions=oe,ne.dataShow.y.forEach(ie=>{te.value[ie]||(te.value[ie]=JSON.parse(JSON.stringify(G)))}),ne.customSeriesData=te.value,window.customSeriesData=te.value,re&&re()})},G={prefix:"",suffix:"",toFixed:0,color:null,fontSize:14,bgColor:null};return{init:U,seriesItem:G,customSeriesData:te,numberConfig:{dataShow:{x:"",y:[],hide:[]},dataset:{}}}}function useTable(){const te=vue.ref((window==null?void 0:window.customSeriesData)??{}),U=(ne,re)=>{ne.series=[],setTimeout(()=>{const oe=ne.dataShow.y.filter(ie=>!ne.dataShow.hide.includes(ie));ne.dataset.dimensions=oe,ne.dataShow.y.forEach(ie=>{te.value[ie]||(te.value[ie]=JSON.parse(JSON.stringify(G)))}),ne.customSeriesData=te.value,window.customSeriesData=te.value,re&&re()})},G={prefix:"",suffix:"",toFixed:0,color:null};return{init:U,customSeriesData:te,tableConfig:{dataShow:{x:"",y:[],hide:[]},dataset:{}}}}const city=[{code:"100000",name:"中华人民共和国",region_level:0,children:[{code:"11",name:"北京市",region_level:1,children:[{code:"1101",name:"北京市",region_level:2,children:[{code:"110101",name:"东城区",region_level:3,children:[]},{code:"110102",name:"西城区",region_level:3,children:[]},{code:"110105",name:"朝阳区",region_level:3,children:[]},{code:"110106",name:"丰台区",region_level:3,children:[]},{code:"110107",name:"石景山区",region_level:3,children:[]},{code:"110108",name:"海淀区",region_level:3,children:[]},{code:"110109",name:"门头沟区",region_level:3,children:[]},{code:"110111",name:"房山区",region_level:3,children:[]},{code:"110112",name:"通州区",region_level:3,children:[]},{code:"110113",name:"顺义区",region_level:3,children:[]},{code:"110114",name:"昌平区",region_level:3,children:[]},{code:"110115",name:"大兴区",region_level:3,children:[]},{code:"110116",name:"怀柔区",region_level:3,children:[]},{code:"110117",name:"平谷区",region_level:3,children:[]},{code:"110118",name:"密云区",region_level:3,children:[]},{code:"110119",name:"延庆区",region_level:3,children:[]}]}]},{code:"12",name:"天津市",region_level:1,children:[{code:"1201",name:"天津市",region_level:2,children:[{code:"120101",name:"和平区",region_level:3,children:[]},{code:"120102",name:"河东区",region_level:3,children:[]},{code:"120103",name:"河西区",region_level:3,children:[]},{code:"120104",name:"南开区",region_level:3,children:[]},{code:"120105",name:"河北区",region_level:3,children:[]},{code:"120106",name:"红桥区",region_level:3,children:[]},{code:"120110",name:"东丽区",region_level:3,children:[]},{code:"120111",name:"西青区",region_level:3,children:[]},{code:"120112",name:"津南区",region_level:3,children:[]},{code:"120113",name:"北辰区",region_level:3,children:[]},{code:"120114",name:"武清区",region_level:3,children:[]},{code:"120115",name:"宝坻区",region_level:3,children:[]},{code:"120116",name:"滨海新区",region_level:3,children:[]},{code:"120117",name:"宁河区",region_level:3,children:[]},{code:"120118",name:"静海区",region_level:3,children:[]},{code:"120119",name:"蓟州区",region_level:3,children:[]}]}]},{code:"13",name:"河北省",region_level:1,children:[{code:"1301",name:"石家庄市",region_level:2,children:[{code:"130102",name:"长安区",region_level:3,children:[]},{code:"130104",name:"桥西区",region_level:3,children:[]},{code:"130105",name:"新华区",region_level:3,children:[]},{code:"130107",name:"井陉矿区",region_level:3,children:[]},{code:"130108",name:"裕华区",region_level:3,children:[]},{code:"130109",name:"藁城区",region_level:3,children:[]},{code:"130110",name:"鹿泉区",region_level:3,children:[]},{code:"130111",name:"栾城区",region_level:3,children:[]},{code:"130121",name:"井陉县",region_level:3,children:[]},{code:"130123",name:"正定县",region_level:3,children:[]},{code:"130125",name:"行唐县",region_level:3,children:[]},{code:"130126",name:"灵寿县",region_level:3,children:[]},{code:"130127",name:"高邑县",region_level:3,children:[]},{code:"130128",name:"深泽县",region_level:3,children:[]},{code:"130129",name:"赞皇县",region_level:3,children:[]},{code:"130130",name:"无极县",region_level:3,children:[]},{code:"130131",name:"平山县",region_level:3,children:[]},{code:"130132",name:"元氏县",region_level:3,children:[]},{code:"130133",name:"赵县",region_level:3,children:[]},{code:"130181",name:"辛集市",region_level:3,children:[]},{code:"130183",name:"晋州市",region_level:3,children:[]},{code:"130184",name:"新乐市",region_level:3,children:[]}]},{code:"1302",name:"唐山市",region_level:2,children:[{code:"130202",name:"路南区",region_level:3,children:[]},{code:"130203",name:"路北区",region_level:3,children:[]},{code:"130204",name:"古冶区",region_level:3,children:[]},{code:"130205",name:"开平区",region_level:3,children:[]},{code:"130207",name:"丰南区",region_level:3,children:[]},{code:"130208",name:"丰润区",region_level:3,children:[]},{code:"130209",name:"曹妃甸区",region_level:3,children:[]},{code:"130224",name:"滦南县",region_level:3,children:[]},{code:"130225",name:"乐亭县",region_level:3,children:[]},{code:"130227",name:"迁西县",region_level:3,children:[]},{code:"130229",name:"玉田县",region_level:3,children:[]},{code:"130281",name:"遵化市",region_level:3,children:[]},{code:"130283",name:"迁安市",region_level:3,children:[]},{code:"130284",name:"滦州市",region_level:3,children:[]}]},{code:"1303",name:"秦皇岛市",region_level:2,children:[{code:"130302",name:"海港区",region_level:3,children:[]},{code:"130303",name:"山海关区",region_level:3,children:[]},{code:"130304",name:"北戴河区",region_level:3,children:[]},{code:"130306",name:"抚宁区",region_level:3,children:[]},{code:"130321",name:"青龙满族自治县",region_level:3,children:[]},{code:"130322",name:"昌黎县",region_level:3,children:[]},{code:"130324",name:"卢龙县",region_level:3,children:[]}]},{code:"1304",name:"邯郸市",region_level:2,children:[{code:"130402",name:"邯山区",region_level:3,children:[]},{code:"130403",name:"丛台区",region_level:3,children:[]},{code:"130404",name:"复兴区",region_level:3,children:[]},{code:"130406",name:"峰峰矿区",region_level:3,children:[]},{code:"130407",name:"肥乡区",region_level:3,children:[]},{code:"130408",name:"永年区",region_level:3,children:[]},{code:"130423",name:"临漳县",region_level:3,children:[]},{code:"130424",name:"成安县",region_level:3,children:[]},{code:"130425",name:"大名县",region_level:3,children:[]},{code:"130426",name:"涉县",region_level:3,children:[]},{code:"130427",name:"磁县",region_level:3,children:[]},{code:"130430",name:"邱县",region_level:3,children:[]},{code:"130431",name:"鸡泽县",region_level:3,children:[]},{code:"130432",name:"广平县",region_level:3,children:[]},{code:"130433",name:"馆陶县",region_level:3,children:[]},{code:"130434",name:"魏县",region_level:3,children:[]},{code:"130435",name:"曲周县",region_level:3,children:[]},{code:"130481",name:"武安市",region_level:3,children:[]}]},{code:"1305",name:"邢台市",region_level:2,children:[{code:"130502",name:"桥东区",region_level:3,children:[]},{code:"130503",name:"桥西区",region_level:3,children:[]},{code:"130521",name:"邢台县",region_level:3,children:[]},{code:"130522",name:"临城县",region_level:3,children:[]},{code:"130523",name:"内丘县",region_level:3,children:[]},{code:"130524",name:"柏乡县",region_level:3,children:[]},{code:"130525",name:"隆尧县",region_level:3,children:[]},{code:"130526",name:"任县",region_level:3,children:[]},{code:"130527",name:"南和县",region_level:3,children:[]},{code:"130528",name:"宁晋县",region_level:3,children:[]},{code:"130529",name:"巨鹿县",region_level:3,children:[]},{code:"130530",name:"新河县",region_level:3,children:[]},{code:"130531",name:"广宗县",region_level:3,children:[]},{code:"130532",name:"平乡县",region_level:3,children:[]},{code:"130533",name:"威县",region_level:3,children:[]},{code:"130534",name:"清河县",region_level:3,children:[]},{code:"130535",name:"临西县",region_level:3,children:[]},{code:"130581",name:"南宫市",region_level:3,children:[]},{code:"130582",name:"沙河市",region_level:3,children:[]}]},{code:"1306",name:"保定市",region_level:2,children:[{code:"130602",name:"竞秀区",region_level:3,children:[]},{code:"130606",name:"莲池区",region_level:3,children:[]},{code:"130607",name:"满城区",region_level:3,children:[]},{code:"130608",name:"清苑区",region_level:3,children:[]},{code:"130609",name:"徐水区",region_level:3,children:[]},{code:"130623",name:"涞水县",region_level:3,children:[]},{code:"130624",name:"阜平县",region_level:3,children:[]},{code:"130626",name:"定兴县",region_level:3,children:[]},{code:"130627",name:"唐县",region_level:3,children:[]},{code:"130628",name:"高阳县",region_level:3,children:[]},{code:"130629",name:"容城县",region_level:3,children:[]},{code:"130630",name:"涞源县",region_level:3,children:[]},{code:"130631",name:"望都县",region_level:3,children:[]},{code:"130632",name:"安新县",region_level:3,children:[]},{code:"130633",name:"易县",region_level:3,children:[]},{code:"130634",name:"曲阳县",region_level:3,children:[]},{code:"130635",name:"蠡县",region_level:3,children:[]},{code:"130636",name:"顺平县",region_level:3,children:[]},{code:"130637",name:"博野县",region_level:3,children:[]},{code:"130638",name:"雄县",region_level:3,children:[]},{code:"130681",name:"涿州市",region_level:3,children:[]},{code:"130682",name:"定州市",region_level:3,children:[]},{code:"130683",name:"安国市",region_level:3,children:[]},{code:"130684",name:"高碑店市",region_level:3,children:[]}]},{code:"1307",name:"张家口市",region_level:2,children:[{code:"130702",name:"桥东区",region_level:3,children:[]},{code:"130703",name:"桥西区",region_level:3,children:[]},{code:"130705",name:"宣化区",region_level:3,children:[]},{code:"130706",name:"下花园区",region_level:3,children:[]},{code:"130708",name:"万全区",region_level:3,children:[]},{code:"130709",name:"崇礼区",region_level:3,children:[]},{code:"130722",name:"张北县",region_level:3,children:[]},{code:"130723",name:"康保县",region_level:3,children:[]},{code:"130724",name:"沽源县",region_level:3,children:[]},{code:"130725",name:"尚义县",region_level:3,children:[]},{code:"130726",name:"蔚县",region_level:3,children:[]},{code:"130727",name:"阳原县",region_level:3,children:[]},{code:"130728",name:"怀安县",region_level:3,children:[]},{code:"130730",name:"怀来县",region_level:3,children:[]},{code:"130731",name:"涿鹿县",region_level:3,children:[]},{code:"130732",name:"赤城县",region_level:3,children:[]}]},{code:"1308",name:"承德市",region_level:2,children:[{code:"130802",name:"双桥区",region_level:3,children:[]},{code:"130803",name:"双滦区",region_level:3,children:[]},{code:"130804",name:"鹰手营子矿区",region_level:3,children:[]},{code:"130821",name:"承德县",region_level:3,children:[]},{code:"130822",name:"兴隆县",region_level:3,children:[]},{code:"130824",name:"滦平县",region_level:3,children:[]},{code:"130825",name:"隆化县",region_level:3,children:[]},{code:"130826",name:"丰宁满族自治县",region_level:3,children:[]},{code:"130827",name:"宽城满族自治县",region_level:3,children:[]},{code:"130828",name:"围场满族蒙古族自治县",region_level:3,children:[]},{code:"130881",name:"平泉市",region_level:3,children:[]}]},{code:"1309",name:"沧州市",region_level:2,children:[{code:"130902",name:"新华区",region_level:3,children:[]},{code:"130903",name:"运河区",region_level:3,children:[]},{code:"130921",name:"沧县",region_level:3,children:[]},{code:"130922",name:"青县",region_level:3,children:[]},{code:"130923",name:"东光县",region_level:3,children:[]},{code:"130924",name:"海兴县",region_level:3,children:[]},{code:"130925",name:"盐山县",region_level:3,children:[]},{code:"130926",name:"肃宁县",region_level:3,children:[]},{code:"130927",name:"南皮县",region_level:3,children:[]},{code:"130928",name:"吴桥县",region_level:3,children:[]},{code:"130929",name:"献县",region_level:3,children:[]},{code:"130930",name:"孟村回族自治县",region_level:3,children:[]},{code:"130981",name:"泊头市",region_level:3,children:[]},{code:"130982",name:"任丘市",region_level:3,children:[]},{code:"130983",name:"黄骅市",region_level:3,children:[]},{code:"130984",name:"河间市",region_level:3,children:[]}]},{code:"1310",name:"廊坊市",region_level:2,children:[{code:"131002",name:"安次区",region_level:3,children:[]},{code:"131003",name:"广阳区",region_level:3,children:[]},{code:"131022",name:"固安县",region_level:3,children:[]},{code:"131023",name:"永清县",region_level:3,children:[]},{code:"131024",name:"香河县",region_level:3,children:[]},{code:"131025",name:"大城县",region_level:3,children:[]},{code:"131026",name:"文安县",region_level:3,children:[]},{code:"131028",name:"大厂回族自治县",region_level:3,children:[]},{code:"131081",name:"霸州市",region_level:3,children:[]},{code:"131082",name:"三河市",region_level:3,children:[]}]},{code:"1311",name:"衡水市",region_level:2,children:[{code:"131102",name:"桃城区",region_level:3,children:[]},{code:"131103",name:"冀州区",region_level:3,children:[]},{code:"131121",name:"枣强县",region_level:3,children:[]},{code:"131122",name:"武邑县",region_level:3,children:[]},{code:"131123",name:"武强县",region_level:3,children:[]},{code:"131124",name:"饶阳县",region_level:3,children:[]},{code:"131125",name:"安平县",region_level:3,children:[]},{code:"131126",name:"故城县",region_level:3,children:[]},{code:"131127",name:"景县",region_level:3,children:[]},{code:"131128",name:"阜城县",region_level:3,children:[]},{code:"131182",name:"深州市",region_level:3,children:[]}]}]},{code:"14",name:"山西省",region_level:1,children:[{code:"1401",name:"太原市",region_level:2,children:[{code:"140105",name:"小店区",region_level:3,children:[]},{code:"140106",name:"迎泽区",region_level:3,children:[]},{code:"140107",name:"杏花岭区",region_level:3,children:[]},{code:"140108",name:"尖草坪区",region_level:3,children:[]},{code:"140109",name:"万柏林区",region_level:3,children:[]},{code:"140110",name:"晋源区",region_level:3,children:[]},{code:"140121",name:"清徐县",region_level:3,children:[]},{code:"140122",name:"阳曲县",region_level:3,children:[]},{code:"140123",name:"娄烦县",region_level:3,children:[]},{code:"140181",name:"古交市",region_level:3,children:[]}]},{code:"1402",name:"大同市",region_level:2,children:[{code:"140212",name:"新荣区",region_level:3,children:[]},{code:"140213",name:"平城区",region_level:3,children:[]},{code:"140214",name:"云冈区",region_level:3,children:[]},{code:"140215",name:"云州区",region_level:3,children:[]},{code:"140221",name:"阳高县",region_level:3,children:[]},{code:"140222",name:"天镇县",region_level:3,children:[]},{code:"140223",name:"广灵县",region_level:3,children:[]},{code:"140224",name:"灵丘县",region_level:3,children:[]},{code:"140225",name:"浑源县",region_level:3,children:[]},{code:"140226",name:"左云县",region_level:3,children:[]}]},{code:"1403",name:"阳泉市",region_level:2,children:[{code:"140302",name:"城区",region_level:3,children:[]},{code:"140303",name:"矿区",region_level:3,children:[]},{code:"140311",name:"郊区",region_level:3,children:[]},{code:"140321",name:"平定县",region_level:3,children:[]},{code:"140322",name:"盂县",region_level:3,children:[]}]},{code:"1404",name:"长治市",region_level:2,children:[{code:"140403",name:"潞州区",region_level:3,children:[]},{code:"140404",name:"上党区",region_level:3,children:[]},{code:"140405",name:"屯留区",region_level:3,children:[]},{code:"140406",name:"潞城区",region_level:3,children:[]},{code:"140423",name:"襄垣县",region_level:3,children:[]},{code:"140425",name:"平顺县",region_level:3,children:[]},{code:"140426",name:"黎城县",region_level:3,children:[]},{code:"140427",name:"壶关县",region_level:3,children:[]},{code:"140428",name:"长子县",region_level:3,children:[]},{code:"140429",name:"武乡县",region_level:3,children:[]},{code:"140430",name:"沁县",region_level:3,children:[]},{code:"140431",name:"沁源县",region_level:3,children:[]}]},{code:"1405",name:"晋城市",region_level:2,children:[{code:"140502",name:"城区",region_level:3,children:[]},{code:"140521",name:"沁水县",region_level:3,children:[]},{code:"140522",name:"阳城县",region_level:3,children:[]},{code:"140524",name:"陵川县",region_level:3,children:[]},{code:"140525",name:"泽州县",region_level:3,children:[]},{code:"140581",name:"高平市",region_level:3,children:[]}]},{code:"1406",name:"朔州市",region_level:2,children:[{code:"140602",name:"朔城区",region_level:3,children:[]},{code:"140603",name:"平鲁区",region_level:3,children:[]},{code:"140621",name:"山阴县",region_level:3,children:[]},{code:"140622",name:"应县",region_level:3,children:[]},{code:"140623",name:"右玉县",region_level:3,children:[]},{code:"140681",name:"怀仁市",region_level:3,children:[]}]},{code:"1407",name:"晋中市",region_level:2,children:[{code:"140702",name:"榆次区",region_level:3,children:[]},{code:"140703",name:"太谷区",region_level:3,children:[]},{code:"140721",name:"榆社县",region_level:3,children:[]},{code:"140722",name:"左权县",region_level:3,children:[]},{code:"140723",name:"和顺县",region_level:3,children:[]},{code:"140724",name:"昔阳县",region_level:3,children:[]},{code:"140725",name:"寿阳县",region_level:3,children:[]},{code:"140727",name:"祁县",region_level:3,children:[]},{code:"140728",name:"平遥县",region_level:3,children:[]},{code:"140729",name:"灵石县",region_level:3,children:[]},{code:"140781",name:"介休市",region_level:3,children:[]}]},{code:"1408",name:"运城市",region_level:2,children:[{code:"140802",name:"盐湖区",region_level:3,children:[]},{code:"140821",name:"临猗县",region_level:3,children:[]},{code:"140822",name:"万荣县",region_level:3,children:[]},{code:"140823",name:"闻喜县",region_level:3,children:[]},{code:"140824",name:"稷山县",region_level:3,children:[]},{code:"140825",name:"新绛县",region_level:3,children:[]},{code:"140826",name:"绛县",region_level:3,children:[]},{code:"140827",name:"垣曲县",region_level:3,children:[]},{code:"140828",name:"夏县",region_level:3,children:[]},{code:"140829",name:"平陆县",region_level:3,children:[]},{code:"140830",name:"芮城县",region_level:3,children:[]},{code:"140881",name:"永济市",region_level:3,children:[]},{code:"140882",name:"河津市",region_level:3,children:[]}]},{code:"1409",name:"忻州市",region_level:2,children:[{code:"140902",name:"忻府区",region_level:3,children:[]},{code:"140921",name:"定襄县",region_level:3,children:[]},{code:"140922",name:"五台县",region_level:3,children:[]},{code:"140923",name:"代县",region_level:3,children:[]},{code:"140924",name:"繁峙县",region_level:3,children:[]},{code:"140925",name:"宁武县",region_level:3,children:[]},{code:"140926",name:"静乐县",region_level:3,children:[]},{code:"140927",name:"神池县",region_level:3,children:[]},{code:"140928",name:"五寨县",region_level:3,children:[]},{code:"140929",name:"岢岚县",region_level:3,children:[]},{code:"140930",name:"河曲县",region_level:3,children:[]},{code:"140931",name:"保德县",region_level:3,children:[]},{code:"140932",name:"偏关县",region_level:3,children:[]},{code:"140981",name:"原平市",region_level:3,children:[]}]},{code:"1410",name:"临汾市",region_level:2,children:[{code:"141002",name:"尧都区",region_level:3,children:[]},{code:"141021",name:"曲沃县",region_level:3,children:[]},{code:"141022",name:"翼城县",region_level:3,children:[]},{code:"141023",name:"襄汾县",region_level:3,children:[]},{code:"141024",name:"洪洞县",region_level:3,children:[]},{code:"141025",name:"古县",region_level:3,children:[]},{code:"141026",name:"安泽县",region_level:3,children:[]},{code:"141027",name:"浮山县",region_level:3,children:[]},{code:"141028",name:"吉县",region_level:3,children:[]},{code:"141029",name:"乡宁县",region_level:3,children:[]},{code:"141030",name:"大宁县",region_level:3,children:[]},{code:"141031",name:"隰县",region_level:3,children:[]},{code:"141032",name:"永和县",region_level:3,children:[]},{code:"141033",name:"蒲县",region_level:3,children:[]},{code:"141034",name:"汾西县",region_level:3,children:[]},{code:"141081",name:"侯马市",region_level:3,children:[]},{code:"141082",name:"霍州市",region_level:3,children:[]}]},{code:"1411",name:"吕梁市",region_level:2,children:[{code:"141102",name:"离石区",region_level:3,children:[]},{code:"141121",name:"文水县",region_level:3,children:[]},{code:"141122",name:"交城县",region_level:3,children:[]},{code:"141123",name:"兴县",region_level:3,children:[]},{code:"141124",name:"临县",region_level:3,children:[]},{code:"141125",name:"柳林县",region_level:3,children:[]},{code:"141126",name:"石楼县",region_level:3,children:[]},{code:"141127",name:"岚县",region_level:3,children:[]},{code:"141128",name:"方山县",region_level:3,children:[]},{code:"141129",name:"中阳县",region_level:3,children:[]},{code:"141130",name:"交口县",region_level:3,children:[]},{code:"141181",name:"孝义市",region_level:3,children:[]},{code:"141182",name:"汾阳市",region_level:3,children:[]}]}]},{code:"15",name:"内蒙古自治区",region_level:1,children:[{code:"1501",name:"呼和浩特市",region_level:2,children:[{code:"150102",name:"新城区",region_level:3,children:[]},{code:"150103",name:"回民区",region_level:3,children:[]},{code:"150104",name:"玉泉区",region_level:3,children:[]},{code:"150105",name:"赛罕区",region_level:3,children:[]},{code:"150121",name:"土默特左旗",region_level:3,children:[]},{code:"150122",name:"托克托县",region_level:3,children:[]},{code:"150123",name:"和林格尔县",region_level:3,children:[]},{code:"150124",name:"清水河县",region_level:3,children:[]},{code:"150125",name:"武川县",region_level:3,children:[]}]},{code:"1502",name:"包头市",region_level:2,children:[{code:"150202",name:"东河区",region_level:3,children:[]},{code:"150203",name:"昆都仑区",region_level:3,children:[]},{code:"150204",name:"青山区",region_level:3,children:[]},{code:"150205",name:"石拐区",region_level:3,children:[]},{code:"150206",name:"白云鄂博矿区",region_level:3,children:[]},{code:"150207",name:"九原区",region_level:3,children:[]},{code:"150221",name:"土默特右旗",region_level:3,children:[]},{code:"150222",name:"固阳县",region_level:3,children:[]},{code:"150223",name:"达尔罕茂明安联合旗",region_level:3,children:[]}]},{code:"1503",name:"乌海市",region_level:2,children:[{code:"150302",name:"海勃湾区",region_level:3,children:[]},{code:"150303",name:"海南区",region_level:3,children:[]},{code:"150304",name:"乌达区",region_level:3,children:[]}]},{code:"1504",name:"赤峰市",region_level:2,children:[{code:"150402",name:"红山区",region_level:3,children:[]},{code:"150403",name:"元宝山区",region_level:3,children:[]},{code:"150404",name:"松山区",region_level:3,children:[]},{code:"150421",name:"阿鲁科尔沁旗",region_level:3,children:[]},{code:"150422",name:"巴林左旗",region_level:3,children:[]},{code:"150423",name:"巴林右旗",region_level:3,children:[]},{code:"150424",name:"林西县",region_level:3,children:[]},{code:"150425",name:"克什克腾旗",region_level:3,children:[]},{code:"150426",name:"翁牛特旗",region_level:3,children:[]},{code:"150428",name:"喀喇沁旗",region_level:3,children:[]},{code:"150429",name:"宁城县",region_level:3,children:[]},{code:"150430",name:"敖汉旗",region_level:3,children:[]}]},{code:"1505",name:"通辽市",region_level:2,children:[{code:"150502",name:"科尔沁区",region_level:3,children:[]},{code:"150521",name:"科尔沁左翼中旗",region_level:3,children:[]},{code:"150522",name:"科尔沁左翼后旗",region_level:3,children:[]},{code:"150523",name:"开鲁县",region_level:3,children:[]},{code:"150524",name:"库伦旗",region_level:3,children:[]},{code:"150525",name:"奈曼旗",region_level:3,children:[]},{code:"150526",name:"扎鲁特旗",region_level:3,children:[]},{code:"150581",name:"霍林郭勒市",region_level:3,children:[]}]},{code:"1506",name:"鄂尔多斯市",region_level:2,children:[{code:"150602",name:"东胜区",region_level:3,children:[]},{code:"150603",name:"康巴什区",region_level:3,children:[]},{code:"150621",name:"达拉特旗",region_level:3,children:[]},{code:"150622",name:"准格尔旗",region_level:3,children:[]},{code:"150623",name:"鄂托克前旗",region_level:3,children:[]},{code:"150624",name:"鄂托克旗",region_level:3,children:[]},{code:"150625",name:"杭锦旗",region_level:3,children:[]},{code:"150626",name:"乌审旗",region_level:3,children:[]},{code:"150627",name:"伊金霍洛旗",region_level:3,children:[]}]},{code:"1507",name:"呼伦贝尔市",region_level:2,children:[{code:"150702",name:"海拉尔区",region_level:3,children:[]},{code:"150703",name:"扎赉诺尔区",region_level:3,children:[]},{code:"150721",name:"阿荣旗",region_level:3,children:[]},{code:"150722",name:"莫力达瓦达斡尔族自治旗",region_level:3,children:[]},{code:"150723",name:"鄂伦春自治旗",region_level:3,children:[]},{code:"150724",name:"鄂温克族自治旗",region_level:3,children:[]},{code:"150725",name:"陈巴尔虎旗",region_level:3,children:[]},{code:"150726",name:"新巴尔虎左旗",region_level:3,children:[]},{code:"150727",name:"新巴尔虎右旗",region_level:3,children:[]},{code:"150781",name:"满洲里市",region_level:3,children:[]},{code:"150782",name:"牙克石市",region_level:3,children:[]},{code:"150783",name:"扎兰屯市",region_level:3,children:[]},{code:"150784",name:"额尔古纳市",region_level:3,children:[]},{code:"150785",name:"根河市",region_level:3,children:[]}]},{code:"1508",name:"巴彦淖尔市",region_level:2,children:[{code:"150802",name:"临河区",region_level:3,children:[]},{code:"150821",name:"五原县",region_level:3,children:[]},{code:"150822",name:"磴口县",region_level:3,children:[]},{code:"150823",name:"乌拉特前旗",region_level:3,children:[]},{code:"150824",name:"乌拉特中旗",region_level:3,children:[]},{code:"150825",name:"乌拉特后旗",region_level:3,children:[]},{code:"150826",name:"杭锦后旗",region_level:3,children:[]}]},{code:"1509",name:"乌兰察布市",region_level:2,children:[{code:"150902",name:"集宁区",region_level:3,children:[]},{code:"150921",name:"卓资县",region_level:3,children:[]},{code:"150922",name:"化德县",region_level:3,children:[]},{code:"150923",name:"商都县",region_level:3,children:[]},{code:"150924",name:"兴和县",region_level:3,children:[]},{code:"150925",name:"凉城县",region_level:3,children:[]},{code:"150926",name:"察哈尔右翼前旗",region_level:3,children:[]},{code:"150927",name:"察哈尔右翼中旗",region_level:3,children:[]},{code:"150928",name:"察哈尔右翼后旗",region_level:3,children:[]},{code:"150929",name:"四子王旗",region_level:3,children:[]},{code:"150981",name:"丰镇市",region_level:3,children:[]}]},{code:"1522",name:"兴安盟",region_level:2,children:[{code:"152201",name:"乌兰浩特市",region_level:3,children:[]},{code:"152202",name:"阿尔山市",region_level:3,children:[]},{code:"152221",name:"科尔沁右翼前旗",region_level:3,children:[]},{code:"152222",name:"科尔沁右翼中旗",region_level:3,children:[]},{code:"152223",name:"扎赉特旗",region_level:3,children:[]},{code:"152224",name:"突泉县",region_level:3,children:[]}]},{code:"1525",name:"锡林郭勒盟",region_level:2,children:[{code:"152501",name:"二连浩特市",region_level:3,children:[]},{code:"152502",name:"锡林浩特市",region_level:3,children:[]},{code:"152522",name:"阿巴嘎旗",region_level:3,children:[]},{code:"152523",name:"苏尼特左旗",region_level:3,children:[]},{code:"152524",name:"苏尼特右旗",region_level:3,children:[]},{code:"152525",name:"东乌珠穆沁旗",region_level:3,children:[]},{code:"152526",name:"西乌珠穆沁旗",region_level:3,children:[]},{code:"152527",name:"太仆寺旗",region_level:3,children:[]},{code:"152528",name:"镶黄旗",region_level:3,children:[]},{code:"152529",name:"正镶白旗",region_level:3,children:[]},{code:"152530",name:"正蓝旗",region_level:3,children:[]},{code:"152531",name:"多伦县",region_level:3,children:[]}]},{code:"1529",name:"阿拉善盟",region_level:2,children:[{code:"152921",name:"阿拉善左旗",region_level:3,children:[]},{code:"152922",name:"阿拉善右旗",region_level:3,children:[]},{code:"152923",name:"额济纳旗",region_level:3,children:[]}]}]},{code:"21",name:"辽宁省",region_level:1,children:[{code:"2101",name:"沈阳市",region_level:2,children:[{code:"210102",name:"和平区",region_level:3,children:[]},{code:"210103",name:"沈河区",region_level:3,children:[]},{code:"210104",name:"大东区",region_level:3,children:[]},{code:"210105",name:"皇姑区",region_level:3,children:[]},{code:"210106",name:"铁西区",region_level:3,children:[]},{code:"210111",name:"苏家屯区",region_level:3,children:[]},{code:"210112",name:"浑南区",region_level:3,children:[]},{code:"210113",name:"沈北新区",region_level:3,children:[]},{code:"210114",name:"于洪区",region_level:3,children:[]},{code:"210115",name:"辽中区",region_level:3,children:[]},{code:"210123",name:"康平县",region_level:3,children:[]},{code:"210124",name:"法库县",region_level:3,children:[]},{code:"210181",name:"新民市",region_level:3,children:[]}]},{code:"2102",name:"大连市",region_level:2,children:[{code:"210202",name:"中山区",region_level:3,children:[]},{code:"210203",name:"西岗区",region_level:3,children:[]},{code:"210204",name:"沙河口区",region_level:3,children:[]},{code:"210211",name:"甘井子区",region_level:3,children:[]},{code:"210212",name:"旅顺口区",region_level:3,children:[]},{code:"210213",name:"金州区",region_level:3,children:[]},{code:"210214",name:"普兰店区",region_level:3,children:[]},{code:"210224",name:"长海县",region_level:3,children:[]},{code:"210281",name:"瓦房店市",region_level:3,children:[]},{code:"210283",name:"庄河市",region_level:3,children:[]}]},{code:"2103",name:"鞍山市",region_level:2,children:[{code:"210302",name:"铁东区",region_level:3,children:[]},{code:"210303",name:"铁西区",region_level:3,children:[]},{code:"210304",name:"立山区",region_level:3,children:[]},{code:"210311",name:"千山区",region_level:3,children:[]},{code:"210321",name:"台安县",region_level:3,children:[]},{code:"210323",name:"岫岩满族自治县",region_level:3,children:[]},{code:"210381",name:"海城市",region_level:3,children:[]}]},{code:"2104",name:"抚顺市",region_level:2,children:[{code:"210402",name:"新抚区",region_level:3,children:[]},{code:"210403",name:"东洲区",region_level:3,children:[]},{code:"210404",name:"望花区",region_level:3,children:[]},{code:"210411",name:"顺城区",region_level:3,children:[]},{code:"210421",name:"抚顺县",region_level:3,children:[]},{code:"210422",name:"新宾满族自治县",region_level:3,children:[]},{code:"210423",name:"清原满族自治县",region_level:3,children:[]}]},{code:"2105",name:"本溪市",region_level:2,children:[{code:"210502",name:"平山区",region_level:3,children:[]},{code:"210503",name:"溪湖区",region_level:3,children:[]},{code:"210504",name:"明山区",region_level:3,children:[]},{code:"210505",name:"南芬区",region_level:3,children:[]},{code:"210521",name:"本溪满族自治县",region_level:3,children:[]},{code:"210522",name:"桓仁满族自治县",region_level:3,children:[]}]},{code:"2106",name:"丹东市",region_level:2,children:[{code:"210602",name:"元宝区",region_level:3,children:[]},{code:"210603",name:"振兴区",region_level:3,children:[]},{code:"210604",name:"振安区",region_level:3,children:[]},{code:"210624",name:"宽甸满族自治县",region_level:3,children:[]},{code:"210681",name:"东港市",region_level:3,children:[]},{code:"210682",name:"凤城市",region_level:3,children:[]}]},{code:"2107",name:"锦州市",region_level:2,children:[{code:"210702",name:"古塔区",region_level:3,children:[]},{code:"210703",name:"凌河区",region_level:3,children:[]},{code:"210711",name:"太和区",region_level:3,children:[]},{code:"210726",name:"黑山县",region_level:3,children:[]},{code:"210727",name:"义县",region_level:3,children:[]},{code:"210781",name:"凌海市",region_level:3,children:[]},{code:"210782",name:"北镇市",region_level:3,children:[]}]},{code:"2108",name:"营口市",region_level:2,children:[{code:"210802",name:"站前区",region_level:3,children:[]},{code:"210803",name:"西市区",region_level:3,children:[]},{code:"210804",name:"鲅鱼圈区",region_level:3,children:[]},{code:"210811",name:"老边区",region_level:3,children:[]},{code:"210881",name:"盖州市",region_level:3,children:[]},{code:"210882",name:"大石桥市",region_level:3,children:[]}]},{code:"2109",name:"阜新市",region_level:2,children:[{code:"210902",name:"海州区",region_level:3,children:[]},{code:"210903",name:"新邱区",region_level:3,children:[]},{code:"210904",name:"太平区",region_level:3,children:[]},{code:"210905",name:"清河门区",region_level:3,children:[]},{code:"210911",name:"细河区",region_level:3,children:[]},{code:"210921",name:"阜新蒙古族自治县",region_level:3,children:[]},{code:"210922",name:"彰武县",region_level:3,children:[]}]},{code:"2110",name:"辽阳市",region_level:2,children:[{code:"211002",name:"白塔区",region_level:3,children:[]},{code:"211003",name:"文圣区",region_level:3,children:[]},{code:"211004",name:"宏伟区",region_level:3,children:[]},{code:"211005",name:"弓长岭区",region_level:3,children:[]},{code:"211011",name:"太子河区",region_level:3,children:[]},{code:"211021",name:"辽阳县",region_level:3,children:[]},{code:"211081",name:"灯塔市",region_level:3,children:[]}]},{code:"2111",name:"盘锦市",region_level:2,children:[{code:"211102",name:"双台子区",region_level:3,children:[]},{code:"211103",name:"兴隆台区",region_level:3,children:[]},{code:"211104",name:"大洼区",region_level:3,children:[]},{code:"211122",name:"盘山县",region_level:3,children:[]}]},{code:"2112",name:"铁岭市",region_level:2,children:[{code:"211202",name:"银州区",region_level:3,children:[]},{code:"211204",name:"清河区",region_level:3,children:[]},{code:"211221",name:"铁岭县",region_level:3,children:[]},{code:"211223",name:"西丰县",region_level:3,children:[]},{code:"211224",name:"昌图县",region_level:3,children:[]},{code:"211281",name:"调兵山市",region_level:3,children:[]},{code:"211282",name:"开原市",region_level:3,children:[]}]},{code:"2113",name:"朝阳市",region_level:2,children:[{code:"211302",name:"双塔区",region_level:3,children:[]},{code:"211303",name:"龙城区",region_level:3,children:[]},{code:"211321",name:"朝阳县",region_level:3,children:[]},{code:"211322",name:"建平县",region_level:3,children:[]},{code:"211324",name:"喀喇沁左翼蒙古族自治县",region_level:3,children:[]},{code:"211381",name:"北票市",region_level:3,children:[]},{code:"211382",name:"凌源市",region_level:3,children:[]}]},{code:"2114",name:"葫芦岛市",region_level:2,children:[{code:"211402",name:"连山区",region_level:3,children:[]},{code:"211403",name:"龙港区",region_level:3,children:[]},{code:"211404",name:"南票区",region_level:3,children:[]},{code:"211421",name:"绥中县",region_level:3,children:[]},{code:"211422",name:"建昌县",region_level:3,children:[]},{code:"211481",name:"兴城市",region_level:3,children:[]}]}]},{code:"22",name:"吉林省",region_level:1,children:[{code:"2201",name:"长春市",region_level:2,children:[{code:"220102",name:"南关区",region_level:3,children:[]},{code:"220103",name:"宽城区",region_level:3,children:[]},{code:"220104",name:"朝阳区",region_level:3,children:[]},{code:"220105",name:"二道区",region_level:3,children:[]},{code:"220106",name:"绿园区",region_level:3,children:[]},{code:"220112",name:"双阳区",region_level:3,children:[]},{code:"220113",name:"九台区",region_level:3,children:[]},{code:"220122",name:"农安县",region_level:3,children:[]},{code:"220182",name:"榆树市",region_level:3,children:[]},{code:"220183",name:"德惠市",region_level:3,children:[]}]},{code:"2202",name:"吉林市",region_level:2,children:[{code:"220202",name:"昌邑区",region_level:3,children:[]},{code:"220203",name:"龙潭区",region_level:3,children:[]},{code:"220204",name:"船营区",region_level:3,children:[]},{code:"220211",name:"丰满区",region_level:3,children:[]},{code:"220221",name:"永吉县",region_level:3,children:[]},{code:"220281",name:"蛟河市",region_level:3,children:[]},{code:"220282",name:"桦甸市",region_level:3,children:[]},{code:"220283",name:"舒兰市",region_level:3,children:[]},{code:"220284",name:"磐石市",region_level:3,children:[]}]},{code:"2203",name:"四平市",region_level:2,children:[{code:"220302",name:"铁西区",region_level:3,children:[]},{code:"220303",name:"铁东区",region_level:3,children:[]},{code:"220322",name:"梨树县",region_level:3,children:[]},{code:"220323",name:"伊通满族自治县",region_level:3,children:[]},{code:"220381",name:"公主岭市",region_level:3,children:[]},{code:"220382",name:"双辽市",region_level:3,children:[]}]},{code:"2204",name:"辽源市",region_level:2,children:[{code:"220402",name:"龙山区",region_level:3,children:[]},{code:"220403",name:"西安区",region_level:3,children:[]},{code:"220421",name:"东丰县",region_level:3,children:[]},{code:"220422",name:"东辽县",region_level:3,children:[]}]},{code:"2205",name:"通化市",region_level:2,children:[{code:"220502",name:"东昌区",region_level:3,children:[]},{code:"220503",name:"二道江区",region_level:3,children:[]},{code:"220521",name:"通化县",region_level:3,children:[]},{code:"220523",name:"辉南县",region_level:3,children:[]},{code:"220524",name:"柳河县",region_level:3,children:[]},{code:"220581",name:"梅河口市",region_level:3,children:[]},{code:"220582",name:"集安市",region_level:3,children:[]}]},{code:"2206",name:"白山市",region_level:2,children:[{code:"220602",name:"浑江区",region_level:3,children:[]},{code:"220605",name:"江源区",region_level:3,children:[]},{code:"220621",name:"抚松县",region_level:3,children:[]},{code:"220622",name:"靖宇县",region_level:3,children:[]},{code:"220623",name:"长白朝鲜族自治县",region_level:3,children:[]},{code:"220681",name:"临江市",region_level:3,children:[]}]},{code:"2207",name:"松原市",region_level:2,children:[{code:"220702",name:"宁江区",region_level:3,children:[]},{code:"220721",name:"前郭尔罗斯蒙古族自治县",region_level:3,children:[]},{code:"220722",name:"长岭县",region_level:3,children:[]},{code:"220723",name:"乾安县",region_level:3,children:[]},{code:"220781",name:"扶余市",region_level:3,children:[]}]},{code:"2208",name:"白城市",region_level:2,children:[{code:"220802",name:"洮北区",region_level:3,children:[]},{code:"220821",name:"镇赉县",region_level:3,children:[]},{code:"220822",name:"通榆县",region_level:3,children:[]},{code:"220881",name:"洮南市",region_level:3,children:[]},{code:"220882",name:"大安市",region_level:3,children:[]}]},{code:"2224",name:"延边朝鲜族自治州",region_level:2,children:[{code:"222401",name:"延吉市",region_level:3,children:[]},{code:"222402",name:"图们市",region_level:3,children:[]},{code:"222403",name:"敦化市",region_level:3,children:[]},{code:"222404",name:"珲春市",region_level:3,children:[]},{code:"222405",name:"龙井市",region_level:3,children:[]},{code:"222406",name:"和龙市",region_level:3,children:[]},{code:"222424",name:"汪清县",region_level:3,children:[]},{code:"222426",name:"安图县",region_level:3,children:[]}]}]},{code:"23",name:"黑龙江省",region_level:1,children:[{code:"2301",name:"哈尔滨市",region_level:2,children:[{code:"230102",name:"道里区",region_level:3,children:[]},{code:"230103",name:"南岗区",region_level:3,children:[]},{code:"230104",name:"道外区",region_level:3,children:[]},{code:"230108",name:"平房区",region_level:3,children:[]},{code:"230109",name:"松北区",region_level:3,children:[]},{code:"230110",name:"香坊区",region_level:3,children:[]},{code:"230111",name:"呼兰区",region_level:3,children:[]},{code:"230112",name:"阿城区",region_level:3,children:[]},{code:"230113",name:"双城区",region_level:3,children:[]},{code:"230123",name:"依兰县",region_level:3,children:[]},{code:"230124",name:"方正县",region_level:3,children:[]},{code:"230125",name:"宾县",region_level:3,children:[]},{code:"230126",name:"巴彦县",region_level:3,children:[]},{code:"230127",name:"木兰县",region_level:3,children:[]},{code:"230128",name:"通河县",region_level:3,children:[]},{code:"230129",name:"延寿县",region_level:3,children:[]},{code:"230183",name:"尚志市",region_level:3,children:[]},{code:"230184",name:"五常市",region_level:3,children:[]}]},{code:"2302",name:"齐齐哈尔市",region_level:2,children:[{code:"230202",name:"龙沙区",region_level:3,children:[]},{code:"230203",name:"建华区",region_level:3,children:[]},{code:"230204",name:"铁锋区",region_level:3,children:[]},{code:"230205",name:"昂昂溪区",region_level:3,children:[]},{code:"230206",name:"富拉尔基区",region_level:3,children:[]},{code:"230207",name:"碾子山区",region_level:3,children:[]},{code:"230208",name:"梅里斯达斡尔族区",region_level:3,children:[]},{code:"230221",name:"龙江县",region_level:3,children:[]},{code:"230223",name:"依安县",region_level:3,children:[]},{code:"230224",name:"泰来县",region_level:3,children:[]},{code:"230225",name:"甘南县",region_level:3,children:[]},{code:"230227",name:"富裕县",region_level:3,children:[]},{code:"230229",name:"克山县",region_level:3,children:[]},{code:"230230",name:"克东县",region_level:3,children:[]},{code:"230231",name:"拜泉县",region_level:3,children:[]},{code:"230281",name:"讷河市",region_level:3,children:[]}]},{code:"2303",name:"鸡西市",region_level:2,children:[{code:"230302",name:"鸡冠区",region_level:3,children:[]},{code:"230303",name:"恒山区",region_level:3,children:[]},{code:"230304",name:"滴道区",region_level:3,children:[]},{code:"230305",name:"梨树区",region_level:3,children:[]},{code:"230306",name:"城子河区",region_level:3,children:[]},{code:"230307",name:"麻山区",region_level:3,children:[]},{code:"230321",name:"鸡东县",region_level:3,children:[]},{code:"230381",name:"虎林市",region_level:3,children:[]},{code:"230382",name:"密山市",region_level:3,children:[]}]},{code:"2304",name:"鹤岗市",region_level:2,children:[{code:"230402",name:"向阳区",region_level:3,children:[]},{code:"230403",name:"工农区",region_level:3,children:[]},{code:"230404",name:"南山区",region_level:3,children:[]},{code:"230405",name:"兴安区",region_level:3,children:[]},{code:"230406",name:"东山区",region_level:3,children:[]},{code:"230407",name:"兴山区",region_level:3,children:[]},{code:"230421",name:"萝北县",region_level:3,children:[]},{code:"230422",name:"绥滨县",region_level:3,children:[]}]},{code:"2305",name:"双鸭山市",region_level:2,children:[{code:"230502",name:"尖山区",region_level:3,children:[]},{code:"230503",name:"岭东区",region_level:3,children:[]},{code:"230505",name:"四方台区",region_level:3,children:[]},{code:"230506",name:"宝山区",region_level:3,children:[]},{code:"230521",name:"集贤县",region_level:3,children:[]},{code:"230522",name:"友谊县",region_level:3,children:[]},{code:"230523",name:"宝清县",region_level:3,children:[]},{code:"230524",name:"饶河县",region_level:3,children:[]}]},{code:"2306",name:"大庆市",region_level:2,children:[{code:"230602",name:"萨尔图区",region_level:3,children:[]},{code:"230603",name:"龙凤区",region_level:3,children:[]},{code:"230604",name:"让胡路区",region_level:3,children:[]},{code:"230605",name:"红岗区",region_level:3,children:[]},{code:"230606",name:"大同区",region_level:3,children:[]},{code:"230621",name:"肇州县",region_level:3,children:[]},{code:"230622",name:"肇源县",region_level:3,children:[]},{code:"230623",name:"林甸县",region_level:3,children:[]},{code:"230624",name:"杜尔伯特蒙古族自治县",region_level:3,children:[]}]},{code:"2307",name:"伊春市",region_level:2,children:[{code:"230717",name:"伊美区",region_level:3,children:[]},{code:"230718",name:"乌翠区",region_level:3,children:[]},{code:"230719",name:"友好区",region_level:3,children:[]},{code:"230722",name:"嘉荫县",region_level:3,children:[]},{code:"230723",name:"汤旺县",region_level:3,children:[]},{code:"230724",name:"丰林县",region_level:3,children:[]},{code:"230725",name:"大箐山县",region_level:3,children:[]},{code:"230726",name:"南岔县",region_level:3,children:[]},{code:"230751",name:"金林区",region_level:3,children:[]},{code:"230781",name:"铁力市",region_level:3,children:[]}]},{code:"2308",name:"佳木斯市",region_level:2,children:[{code:"230803",name:"向阳区",region_level:3,children:[]},{code:"230804",name:"前进区",region_level:3,children:[]},{code:"230805",name:"东风区",region_level:3,children:[]},{code:"230811",name:"郊区",region_level:3,children:[]},{code:"230822",name:"桦南县",region_level:3,children:[]},{code:"230826",name:"桦川县",region_level:3,children:[]},{code:"230828",name:"汤原县",region_level:3,children:[]},{code:"230881",name:"同江市",region_level:3,children:[]},{code:"230882",name:"富锦市",region_level:3,children:[]},{code:"230883",name:"抚远市",region_level:3,children:[]}]},{code:"2309",name:"七台河市",region_level:2,children:[{code:"230902",name:"新兴区",region_level:3,children:[]},{code:"230903",name:"桃山区",region_level:3,children:[]},{code:"230904",name:"茄子河区",region_level:3,children:[]},{code:"230921",name:"勃利县",region_level:3,children:[]}]},{code:"2310",name:"牡丹江市",region_level:2,children:[{code:"231002",name:"东安区",region_level:3,children:[]},{code:"231003",name:"阳明区",region_level:3,children:[]},{code:"231004",name:"爱民区",region_level:3,children:[]},{code:"231005",name:"西安区",region_level:3,children:[]},{code:"231025",name:"林口县",region_level:3,children:[]},{code:"231081",name:"绥芬河市",region_level:3,children:[]},{code:"231083",name:"海林市",region_level:3,children:[]},{code:"231084",name:"宁安市",region_level:3,children:[]},{code:"231085",name:"穆棱市",region_level:3,children:[]},{code:"231086",name:"东宁市",region_level:3,children:[]}]},{code:"2311",name:"黑河市",region_level:2,children:[{code:"231102",name:"爱辉区",region_level:3,children:[]},{code:"231123",name:"逊克县",region_level:3,children:[]},{code:"231124",name:"孙吴县",region_level:3,children:[]},{code:"231181",name:"北安市",region_level:3,children:[]},{code:"231182",name:"五大连池市",region_level:3,children:[]},{code:"231183",name:"嫩江市",region_level:3,children:[]}]},{code:"2312",name:"绥化市",region_level:2,children:[{code:"231202",name:"北林区",region_level:3,children:[]},{code:"231221",name:"望奎县",region_level:3,children:[]},{code:"231222",name:"兰西县",region_level:3,children:[]},{code:"231223",name:"青冈县",region_level:3,children:[]},{code:"231224",name:"庆安县",region_level:3,children:[]},{code:"231225",name:"明水县",region_level:3,children:[]},{code:"231226",name:"绥棱县",region_level:3,children:[]},{code:"231281",name:"安达市",region_level:3,children:[]},{code:"231282",name:"肇东市",region_level:3,children:[]},{code:"231283",name:"海伦市",region_level:3,children:[]}]},{code:"2327",name:"大兴安岭地区",region_level:2,children:[{code:"232701",name:"漠河市",region_level:3,children:[]},{code:"232721",name:"呼玛县",region_level:3,children:[]},{code:"232722",name:"塔河县",region_level:3,children:[]}]}]},{code:"31",name:"上海市",region_level:1,children:[{code:"3101",name:"上海市",region_level:2,children:[{code:"310101",name:"黄浦区",region_level:3,children:[]},{code:"310104",name:"徐汇区",region_level:3,children:[]},{code:"310105",name:"长宁区",region_level:3,children:[]},{code:"310106",name:"静安区",region_level:3,children:[]},{code:"310107",name:"普陀区",region_level:3,children:[]},{code:"310109",name:"虹口区",region_level:3,children:[]},{code:"310110",name:"杨浦区",region_level:3,children:[]},{code:"310112",name:"闵行区",region_level:3,children:[]},{code:"310113",name:"宝山区",region_level:3,children:[]},{code:"310114",name:"嘉定区",region_level:3,children:[]},{code:"310115",name:"浦东新区",region_level:3,children:[]},{code:"310116",name:"金山区",region_level:3,children:[]},{code:"310117",name:"松江区",region_level:3,children:[]},{code:"310118",name:"青浦区",region_level:3,children:[]},{code:"310120",name:"奉贤区",region_level:3,children:[]},{code:"310151",name:"崇明区",region_level:3,children:[]}]}]},{code:"32",name:"江苏省",region_level:1,children:[{code:"3201",name:"南京市",region_level:2,children:[{code:"320102",name:"玄武区",region_level:3,children:[]},{code:"320104",name:"秦淮区",region_level:3,children:[]},{code:"320105",name:"建邺区",region_level:3,children:[]},{code:"320106",name:"鼓楼区",region_level:3,children:[]},{code:"320111",name:"浦口区",region_level:3,children:[]},{code:"320113",name:"栖霞区",region_level:3,children:[]},{code:"320114",name:"雨花台区",region_level:3,children:[]},{code:"320115",name:"江宁区",region_level:3,children:[]},{code:"320116",name:"六合区",region_level:3,children:[]},{code:"320117",name:"溧水区",region_level:3,children:[]},{code:"320118",name:"高淳区",region_level:3,children:[]}]},{code:"3202",name:"无锡市",region_level:2,children:[{code:"320205",name:"锡山区",region_level:3,children:[]},{code:"320206",name:"惠山区",region_level:3,children:[]},{code:"320211",name:"滨湖区",region_level:3,children:[]},{code:"320213",name:"梁溪区",region_level:3,children:[]},{code:"320214",name:"新吴区",region_level:3,children:[]},{code:"320281",name:"江阴市",region_level:3,children:[]},{code:"320282",name:"宜兴市",region_level:3,children:[]}]},{code:"3203",name:"徐州市",region_level:2,children:[{code:"320302",name:"鼓楼区",region_level:3,children:[]},{code:"320303",name:"云龙区",region_level:3,children:[]},{code:"320305",name:"贾汪区",region_level:3,children:[]},{code:"320311",name:"泉山区",region_level:3,children:[]},{code:"320312",name:"铜山区",region_level:3,children:[]},{code:"320321",name:"丰县",region_level:3,children:[]},{code:"320322",name:"沛县",region_level:3,children:[]},{code:"320324",name:"睢宁县",region_level:3,children:[]},{code:"320381",name:"新沂市",region_level:3,children:[]},{code:"320382",name:"邳州市",region_level:3,children:[]}]},{code:"3204",name:"常州市",region_level:2,children:[{code:"320402",name:"天宁区",region_level:3,children:[]},{code:"320404",name:"钟楼区",region_level:3,children:[]},{code:"320411",name:"新北区",region_level:3,children:[]},{code:"320412",name:"武进区",region_level:3,children:[]},{code:"320413",name:"金坛区",region_level:3,children:[]},{code:"320481",name:"溧阳市",region_level:3,children:[]}]},{code:"3205",name:"苏州市",region_level:2,children:[{code:"320505",name:"虎丘区",region_level:3,children:[]},{code:"320506",name:"吴中区",region_level:3,children:[]},{code:"320507",name:"相城区",region_level:3,children:[]},{code:"320508",name:"姑苏区",region_level:3,children:[]},{code:"320509",name:"吴江区",region_level:3,children:[]},{code:"320581",name:"常熟市",region_level:3,children:[]},{code:"320582",name:"张家港市",region_level:3,children:[]},{code:"320583",name:"昆山市",region_level:3,children:[]},{code:"320585",name:"太仓市",region_level:3,children:[]}]},{code:"3206",name:"南通市",region_level:2,children:[{code:"320602",name:"崇川区",region_level:3,children:[]},{code:"320611",name:"港闸区",region_level:3,children:[]},{code:"320612",name:"通州区",region_level:3,children:[]},{code:"320623",name:"如东县",region_level:3,children:[]},{code:"320681",name:"启东市",region_level:3,children:[]},{code:"320682",name:"如皋市",region_level:3,children:[]},{code:"320684",name:"海门市",region_level:3,children:[]},{code:"320685",name:"海安市",region_level:3,children:[]}]},{code:"3207",name:"连云港市",region_level:2,children:[{code:"320703",name:"连云区",region_level:3,children:[]},{code:"320706",name:"海州区",region_level:3,children:[]},{code:"320707",name:"赣榆区",region_level:3,children:[]},{code:"320722",name:"东海县",region_level:3,children:[]},{code:"320723",name:"灌云县",region_level:3,children:[]},{code:"320724",name:"灌南县",region_level:3,children:[]}]},{code:"3208",name:"淮安市",region_level:2,children:[{code:"320803",name:"淮安区",region_level:3,children:[]},{code:"320804",name:"淮阴区",region_level:3,children:[]},{code:"320812",name:"清江浦区",region_level:3,children:[]},{code:"320813",name:"洪泽区",region_level:3,children:[]},{code:"320826",name:"涟水县",region_level:3,children:[]},{code:"320830",name:"盱眙县",region_level:3,children:[]},{code:"320831",name:"金湖县",region_level:3,children:[]}]},{code:"3209",name:"盐城市",region_level:2,children:[{code:"320902",name:"亭湖区",region_level:3,children:[]},{code:"320903",name:"盐都区",region_level:3,children:[]},{code:"320904",name:"大丰区",region_level:3,children:[]},{code:"320921",name:"响水县",region_level:3,children:[]},{code:"320922",name:"滨海县",region_level:3,children:[]},{code:"320923",name:"阜宁县",region_level:3,children:[]},{code:"320924",name:"射阳县",region_level:3,children:[]},{code:"320925",name:"建湖县",region_level:3,children:[]},{code:"320981",name:"东台市",region_level:3,children:[]}]},{code:"3210",name:"扬州市",region_level:2,children:[{code:"321002",name:"广陵区",region_level:3,children:[]},{code:"321003",name:"邗江区",region_level:3,children:[]},{code:"321012",name:"江都区",region_level:3,children:[]},{code:"321023",name:"宝应县",region_level:3,children:[]},{code:"321081",name:"仪征市",region_level:3,children:[]},{code:"321084",name:"高邮市",region_level:3,children:[]}]},{code:"3211",name:"镇江市",region_level:2,children:[{code:"321102",name:"京口区",region_level:3,children:[]},{code:"321111",name:"润州区",region_level:3,children:[]},{code:"321112",name:"丹徒区",region_level:3,children:[]},{code:"321181",name:"丹阳市",region_level:3,children:[]},{code:"321182",name:"扬中市",region_level:3,children:[]},{code:"321183",name:"句容市",region_level:3,children:[]}]},{code:"3212",name:"泰州市",region_level:2,children:[{code:"321202",name:"海陵区",region_level:3,children:[]},{code:"321203",name:"高港区",region_level:3,children:[]},{code:"321204",name:"姜堰区",region_level:3,children:[]},{code:"321281",name:"兴化市",region_level:3,children:[]},{code:"321282",name:"靖江市",region_level:3,children:[]},{code:"321283",name:"泰兴市",region_level:3,children:[]}]},{code:"3213",name:"宿迁市",region_level:2,children:[{code:"321302",name:"宿城区",region_level:3,children:[]},{code:"321311",name:"宿豫区",region_level:3,children:[]},{code:"321322",name:"沭阳县",region_level:3,children:[]},{code:"321323",name:"泗阳县",region_level:3,children:[]},{code:"321324",name:"泗洪县",region_level:3,children:[]}]}]},{code:"33",name:"浙江省",region_level:1,children:[{code:"3301",name:"杭州市",region_level:2,children:[{code:"330102",name:"上城区",region_level:3,children:[]},{code:"330103",name:"下城区",region_level:3,children:[]},{code:"330104",name:"江干区",region_level:3,children:[]},{code:"330105",name:"拱墅区",region_level:3,children:[]},{code:"330106",name:"西湖区",region_level:3,children:[]},{code:"330108",name:"滨江区",region_level:3,children:[]},{code:"330109",name:"萧山区",region_level:3,children:[]},{code:"330110",name:"余杭区",region_level:3,children:[]},{code:"330111",name:"富阳区",region_level:3,children:[]},{code:"330112",name:"临安区",region_level:3,children:[]},{code:"330122",name:"桐庐县",region_level:3,children:[]},{code:"330127",name:"淳安县",region_level:3,children:[]},{code:"330182",name:"建德市",region_level:3,children:[]}]},{code:"3302",name:"宁波市",region_level:2,children:[{code:"330203",name:"海曙区",region_level:3,children:[]},{code:"330205",name:"江北区",region_level:3,children:[]},{code:"330206",name:"北仑区",region_level:3,children:[]},{code:"330211",name:"镇海区",region_level:3,children:[]},{code:"330212",name:"鄞州区",region_level:3,children:[]},{code:"330213",name:"奉化区",region_level:3,children:[]},{code:"330225",name:"象山县",region_level:3,children:[]},{code:"330226",name:"宁海县",region_level:3,children:[]},{code:"330281",name:"余姚市",region_level:3,children:[]},{code:"330282",name:"慈溪市",region_level:3,children:[]}]},{code:"3303",name:"温州市",region_level:2,children:[{code:"330302",name:"鹿城区",region_level:3,children:[]},{code:"330303",name:"龙湾区",region_level:3,children:[]},{code:"330304",name:"瓯海区",region_level:3,children:[]},{code:"330305",name:"洞头区",region_level:3,children:[]},{code:"330324",name:"永嘉县",region_level:3,children:[]},{code:"330326",name:"平阳县",region_level:3,children:[]},{code:"330327",name:"苍南县",region_level:3,children:[]},{code:"330328",name:"文成县",region_level:3,children:[]},{code:"330329",name:"泰顺县",region_level:3,children:[]},{code:"330381",name:"瑞安市",region_level:3,children:[]},{code:"330382",name:"乐清市",region_level:3,children:[]},{code:"330383",name:"龙港市",region_level:3,children:[]}]},{code:"3304",name:"嘉兴市",region_level:2,children:[{code:"330402",name:"南湖区",region_level:3,children:[]},{code:"330411",name:"秀洲区",region_level:3,children:[]},{code:"330421",name:"嘉善县",region_level:3,children:[]},{code:"330424",name:"海盐县",region_level:3,children:[]},{code:"330481",name:"海宁市",region_level:3,children:[]},{code:"330482",name:"平湖市",region_level:3,children:[]},{code:"330483",name:"桐乡市",region_level:3,children:[]}]},{code:"3305",name:"湖州市",region_level:2,children:[{code:"330502",name:"吴兴区",region_level:3,children:[]},{code:"330503",name:"南浔区",region_level:3,children:[]},{code:"330521",name:"德清县",region_level:3,children:[]},{code:"330522",name:"长兴县",region_level:3,children:[]},{code:"330523",name:"安吉县",region_level:3,children:[]}]},{code:"3306",name:"绍兴市",region_level:2,children:[{code:"330602",name:"越城区",region_level:3,children:[]},{code:"330603",name:"柯桥区",region_level:3,children:[]},{code:"330604",name:"上虞区",region_level:3,children:[]},{code:"330624",name:"新昌县",region_level:3,children:[]},{code:"330681",name:"诸暨市",region_level:3,children:[]},{code:"330683",name:"嵊州市",region_level:3,children:[]}]},{code:"3307",name:"金华市",region_level:2,children:[{code:"330702",name:"婺城区",region_level:3,children:[]},{code:"330703",name:"金东区",region_level:3,children:[]},{code:"330723",name:"武义县",region_level:3,children:[]},{code:"330726",name:"浦江县",region_level:3,children:[]},{code:"330727",name:"磐安县",region_level:3,children:[]},{code:"330781",name:"兰溪市",region_level:3,children:[]},{code:"330782",name:"义乌市",region_level:3,children:[]},{code:"330783",name:"东阳市",region_level:3,children:[]},{code:"330784",name:"永康市",region_level:3,children:[]}]},{code:"3308",name:"衢州市",region_level:2,children:[{code:"330802",name:"柯城区",region_level:3,children:[]},{code:"330803",name:"衢江区",region_level:3,children:[]},{code:"330822",name:"常山县",region_level:3,children:[]},{code:"330824",name:"开化县",region_level:3,children:[]},{code:"330825",name:"龙游县",region_level:3,children:[]},{code:"330881",name:"江山市",region_level:3,children:[]}]},{code:"3309",name:"舟山市",region_level:2,children:[{code:"330902",name:"定海区",region_level:3,children:[]},{code:"330903",name:"普陀区",region_level:3,children:[]},{code:"330921",name:"岱山县",region_level:3,children:[]},{code:"330922",name:"嵊泗县",region_level:3,children:[]}]},{code:"3310",name:"台州市",region_level:2,children:[{code:"331002",name:"椒江区",region_level:3,children:[]},{code:"331003",name:"黄岩区",region_level:3,children:[]},{code:"331004",name:"路桥区",region_level:3,children:[]},{code:"331022",name:"三门县",region_level:3,children:[]},{code:"331023",name:"天台县",region_level:3,children:[]},{code:"331024",name:"仙居县",region_level:3,children:[]},{code:"331081",name:"温岭市",region_level:3,children:[]},{code:"331082",name:"临海市",region_level:3,children:[]},{code:"331083",name:"玉环市",region_level:3,children:[]}]},{code:"3311",name:"丽水市",region_level:2,children:[{code:"331102",name:"莲都区",region_level:3,children:[]},{code:"331121",name:"青田县",region_level:3,children:[]},{code:"331122",name:"缙云县",region_level:3,children:[]},{code:"331123",name:"遂昌县",region_level:3,children:[]},{code:"331124",name:"松阳县",region_level:3,children:[]},{code:"331125",name:"云和县",region_level:3,children:[]},{code:"331126",name:"庆元县",region_level:3,children:[]},{code:"331127",name:"景宁畲族自治县",region_level:3,children:[]},{code:"331181",name:"龙泉市",region_level:3,children:[]}]}]},{code:"34",name:"安徽省",region_level:1,children:[{code:"3401",name:"合肥市",region_level:2,children:[{code:"340102",name:"瑶海区",region_level:3,children:[]},{code:"340103",name:"庐阳区",region_level:3,children:[]},{code:"340104",name:"蜀山区",region_level:3,children:[]},{code:"340111",name:"包河区",region_level:3,children:[]},{code:"340121",name:"长丰县",region_level:3,children:[]},{code:"340122",name:"肥东县",region_level:3,children:[]},{code:"340123",name:"肥西县",region_level:3,children:[]},{code:"340124",name:"庐江县",region_level:3,children:[]},{code:"340181",name:"巢湖市",region_level:3,children:[]}]},{code:"3402",name:"芜湖市",region_level:2,children:[{code:"340202",name:"镜湖区",region_level:3,children:[]},{code:"340203",name:"弋江区",region_level:3,children:[]},{code:"340207",name:"鸠江区",region_level:3,children:[]},{code:"340208",name:"三山区",region_level:3,children:[]},{code:"340221",name:"芜湖县",region_level:3,children:[]},{code:"340222",name:"繁昌县",region_level:3,children:[]},{code:"340223",name:"南陵县",region_level:3,children:[]},{code:"340281",name:"无为市",region_level:3,children:[]}]},{code:"3403",name:"蚌埠市",region_level:2,children:[{code:"340302",name:"龙子湖区",region_level:3,children:[]},{code:"340303",name:"蚌山区",region_level:3,children:[]},{code:"340304",name:"禹会区",region_level:3,children:[]},{code:"340311",name:"淮上区",region_level:3,children:[]},{code:"340321",name:"怀远县",region_level:3,children:[]},{code:"340322",name:"五河县",region_level:3,children:[]},{code:"340323",name:"固镇县",region_level:3,children:[]}]},{code:"3404",name:"淮南市",region_level:2,children:[{code:"340402",name:"大通区",region_level:3,children:[]},{code:"340403",name:"田家庵区",region_level:3,children:[]},{code:"340404",name:"谢家集区",region_level:3,children:[]},{code:"340405",name:"八公山区",region_level:3,children:[]},{code:"340406",name:"潘集区",region_level:3,children:[]},{code:"340421",name:"凤台县",region_level:3,children:[]},{code:"340422",name:"寿县",region_level:3,children:[]}]},{code:"3405",name:"马鞍山市",region_level:2,children:[{code:"340503",name:"花山区",region_level:3,children:[]},{code:"340504",name:"雨山区",region_level:3,children:[]},{code:"340506",name:"博望区",region_level:3,children:[]},{code:"340521",name:"当涂县",region_level:3,children:[]},{code:"340522",name:"含山县",region_level:3,children:[]},{code:"340523",name:"和县",region_level:3,children:[]}]},{code:"3406",name:"淮北市",region_level:2,children:[{code:"340602",name:"杜集区",region_level:3,children:[]},{code:"340603",name:"相山区",region_level:3,children:[]},{code:"340604",name:"烈山区",region_level:3,children:[]},{code:"340621",name:"濉溪县",region_level:3,children:[]}]},{code:"3407",name:"铜陵市",region_level:2,children:[{code:"340705",name:"铜官区",region_level:3,children:[]},{code:"340706",name:"义安区",region_level:3,children:[]},{code:"340711",name:"郊区",region_level:3,children:[]},{code:"340722",name:"枞阳县",region_level:3,children:[]}]},{code:"3408",name:"安庆市",region_level:2,children:[{code:"340802",name:"迎江区",region_level:3,children:[]},{code:"340803",name:"大观区",region_level:3,children:[]},{code:"340811",name:"宜秀区",region_level:3,children:[]},{code:"340822",name:"怀宁县",region_level:3,children:[]},{code:"340825",name:"太湖县",region_level:3,children:[]},{code:"340826",name:"宿松县",region_level:3,children:[]},{code:"340827",name:"望江县",region_level:3,children:[]},{code:"340828",name:"岳西县",region_level:3,children:[]},{code:"340881",name:"桐城市",region_level:3,children:[]},{code:"340882",name:"潜山市",region_level:3,children:[]}]},{code:"3410",name:"黄山市",region_level:2,children:[{code:"341002",name:"屯溪区",region_level:3,children:[]},{code:"341003",name:"黄山区",region_level:3,children:[]},{code:"341004",name:"徽州区",region_level:3,children:[]},{code:"341021",name:"歙县",region_level:3,children:[]},{code:"341022",name:"休宁县",region_level:3,children:[]},{code:"341023",name:"黟县",region_level:3,children:[]},{code:"341024",name:"祁门县",region_level:3,children:[]}]},{code:"3411",name:"滁州市",region_level:2,children:[{code:"341102",name:"琅琊区",region_level:3,children:[]},{code:"341103",name:"南谯区",region_level:3,children:[]},{code:"341122",name:"来安县",region_level:3,children:[]},{code:"341124",name:"全椒县",region_level:3,children:[]},{code:"341125",name:"定远县",region_level:3,children:[]},{code:"341126",name:"凤阳县",region_level:3,children:[]},{code:"341181",name:"天长市",region_level:3,children:[]},{code:"341182",name:"明光市",region_level:3,children:[]}]},{code:"3412",name:"阜阳市",region_level:2,children:[{code:"341202",name:"颍州区",region_level:3,children:[]},{code:"341203",name:"颍东区",region_level:3,children:[]},{code:"341204",name:"颍泉区",region_level:3,children:[]},{code:"341221",name:"临泉县",region_level:3,children:[]},{code:"341222",name:"太和县",region_level:3,children:[]},{code:"341225",name:"阜南县",region_level:3,children:[]},{code:"341226",name:"颍上县",region_level:3,children:[]},{code:"341282",name:"界首市",region_level:3,children:[]}]},{code:"3413",name:"宿州市",region_level:2,children:[{code:"341302",name:"埇桥区",region_level:3,children:[]},{code:"341321",name:"砀山县",region_level:3,children:[]},{code:"341322",name:"萧县",region_level:3,children:[]},{code:"341323",name:"灵璧县",region_level:3,children:[]},{code:"341324",name:"泗县",region_level:3,children:[]}]},{code:"3415",name:"六安市",region_level:2,children:[{code:"341502",name:"金安区",region_level:3,children:[]},{code:"341503",name:"裕安区",region_level:3,children:[]},{code:"341504",name:"叶集区",region_level:3,children:[]},{code:"341522",name:"霍邱县",region_level:3,children:[]},{code:"341523",name:"舒城县",region_level:3,children:[]},{code:"341524",name:"金寨县",region_level:3,children:[]},{code:"341525",name:"霍山县",region_level:3,children:[]}]},{code:"3416",name:"亳州市",region_level:2,children:[{code:"341602",name:"谯城区",region_level:3,children:[]},{code:"341621",name:"涡阳县",region_level:3,children:[]},{code:"341622",name:"蒙城县",region_level:3,children:[]},{code:"341623",name:"利辛县",region_level:3,children:[]}]},{code:"3417",name:"池州市",region_level:2,children:[{code:"341702",name:"贵池区",region_level:3,children:[]},{code:"341721",name:"东至县",region_level:3,children:[]},{code:"341722",name:"石台县",region_level:3,children:[]},{code:"341723",name:"青阳县",region_level:3,children:[]}]},{code:"3418",name:"宣城市",region_level:2,children:[{code:"341802",name:"宣州区",region_level:3,children:[]},{code:"341821",name:"郎溪县",region_level:3,children:[]},{code:"341823",name:"泾县",region_level:3,children:[]},{code:"341824",name:"绩溪县",region_level:3,children:[]},{code:"341825",name:"旌德县",region_level:3,children:[]},{code:"341881",name:"宁国市",region_level:3,children:[]},{code:"341882",name:"广德市",region_level:3,children:[]}]}]},{code:"35",name:"福建省",region_level:1,children:[{code:"3501",name:"福州市",region_level:2,children:[{code:"350102",name:"鼓楼区",region_level:3,children:[]},{code:"350103",name:"台江区",region_level:3,children:[]},{code:"350104",name:"仓山区",region_level:3,children:[]},{code:"350105",name:"马尾区",region_level:3,children:[]},{code:"350111",name:"晋安区",region_level:3,children:[]},{code:"350112",name:"长乐区",region_level:3,children:[]},{code:"350121",name:"闽侯县",region_level:3,children:[]},{code:"350122",name:"连江县",region_level:3,children:[]},{code:"350123",name:"罗源县",region_level:3,children:[]},{code:"350124",name:"闽清县",region_level:3,children:[]},{code:"350125",name:"永泰县",region_level:3,children:[]},{code:"350128",name:"平潭县",region_level:3,children:[]},{code:"350181",name:"福清市",region_level:3,children:[]}]},{code:"3502",name:"厦门市",region_level:2,children:[{code:"350203",name:"思明区",region_level:3,children:[]},{code:"350205",name:"海沧区",region_level:3,children:[]},{code:"350206",name:"湖里区",region_level:3,children:[]},{code:"350211",name:"集美区",region_level:3,children:[]},{code:"350212",name:"同安区",region_level:3,children:[]},{code:"350213",name:"翔安区",region_level:3,children:[]}]},{code:"3503",name:"莆田市",region_level:2,children:[{code:"350302",name:"城厢区",region_level:3,children:[]},{code:"350303",name:"涵江区",region_level:3,children:[]},{code:"350304",name:"荔城区",region_level:3,children:[]},{code:"350305",name:"秀屿区",region_level:3,children:[]},{code:"350322",name:"仙游县",region_level:3,children:[]}]},{code:"3504",name:"三明市",region_level:2,children:[{code:"350402",name:"梅列区",region_level:3,children:[]},{code:"350403",name:"三元区",region_level:3,children:[]},{code:"350421",name:"明溪县",region_level:3,children:[]},{code:"350423",name:"清流县",region_level:3,children:[]},{code:"350424",name:"宁化县",region_level:3,children:[]},{code:"350425",name:"大田县",region_level:3,children:[]},{code:"350426",name:"尤溪县",region_level:3,children:[]},{code:"350427",name:"沙县",region_level:3,children:[]},{code:"350428",name:"将乐县",region_level:3,children:[]},{code:"350429",name:"泰宁县",region_level:3,children:[]},{code:"350430",name:"建宁县",region_level:3,children:[]},{code:"350481",name:"永安市",region_level:3,children:[]}]},{code:"3505",name:"泉州市",region_level:2,children:[{code:"350502",name:"鲤城区",region_level:3,children:[]},{code:"350503",name:"丰泽区",region_level:3,children:[]},{code:"350504",name:"洛江区",region_level:3,children:[]},{code:"350505",name:"泉港区",region_level:3,children:[]},{code:"350521",name:"惠安县",region_level:3,children:[]},{code:"350524",name:"安溪县",region_level:3,children:[]},{code:"350525",name:"永春县",region_level:3,children:[]},{code:"350526",name:"德化县",region_level:3,children:[]},{code:"350527",name:"金门县",region_level:3,children:[]},{code:"350581",name:"石狮市",region_level:3,children:[]},{code:"350582",name:"晋江市",region_level:3,children:[]},{code:"350583",name:"南安市",region_level:3,children:[]}]},{code:"3506",name:"漳州市",region_level:2,children:[{code:"350602",name:"芗城区",region_level:3,children:[]},{code:"350603",name:"龙文区",region_level:3,children:[]},{code:"350622",name:"云霄县",region_level:3,children:[]},{code:"350623",name:"漳浦县",region_level:3,children:[]},{code:"350624",name:"诏安县",region_level:3,children:[]},{code:"350625",name:"长泰县",region_level:3,children:[]},{code:"350626",name:"东山县",region_level:3,children:[]},{code:"350627",name:"南靖县",region_level:3,children:[]},{code:"350628",name:"平和县",region_level:3,children:[]},{code:"350629",name:"华安县",region_level:3,children:[]},{code:"350681",name:"龙海市",region_level:3,children:[]}]},{code:"3507",name:"南平市",region_level:2,children:[{code:"350702",name:"延平区",region_level:3,children:[]},{code:"350703",name:"建阳区",region_level:3,children:[]},{code:"350721",name:"顺昌县",region_level:3,children:[]},{code:"350722",name:"浦城县",region_level:3,children:[]},{code:"350723",name:"光泽县",region_level:3,children:[]},{code:"350724",name:"松溪县",region_level:3,children:[]},{code:"350725",name:"政和县",region_level:3,children:[]},{code:"350781",name:"邵武市",region_level:3,children:[]},{code:"350782",name:"武夷山市",region_level:3,children:[]},{code:"350783",name:"建瓯市",region_level:3,children:[]}]},{code:"3508",name:"龙岩市",region_level:2,children:[{code:"350802",name:"新罗区",region_level:3,children:[]},{code:"350803",name:"永定区",region_level:3,children:[]},{code:"350821",name:"长汀县",region_level:3,children:[]},{code:"350823",name:"上杭县",region_level:3,children:[]},{code:"350824",name:"武平县",region_level:3,children:[]},{code:"350825",name:"连城县",region_level:3,children:[]},{code:"350881",name:"漳平市",region_level:3,children:[]}]},{code:"3509",name:"宁德市",region_level:2,children:[{code:"350902",name:"蕉城区",region_level:3,children:[]},{code:"350921",name:"霞浦县",region_level:3,children:[]},{code:"350922",name:"古田县",region_level:3,children:[]},{code:"350923",name:"屏南县",region_level:3,children:[]},{code:"350924",name:"寿宁县",region_level:3,children:[]},{code:"350925",name:"周宁县",region_level:3,children:[]},{code:"350926",name:"柘荣县",region_level:3,children:[]},{code:"350981",name:"福安市",region_level:3,children:[]},{code:"350982",name:"福鼎市",region_level:3,children:[]}]}]},{code:"36",name:"江西省",region_level:1,children:[{code:"3601",name:"南昌市",region_level:2,children:[{code:"360102",name:"东湖区",region_level:3,children:[]},{code:"360103",name:"西湖区",region_level:3,children:[]},{code:"360104",name:"青云谱区",region_level:3,children:[]},{code:"360111",name:"青山湖区",region_level:3,children:[]},{code:"360112",name:"新建区",region_level:3,children:[]},{code:"360113",name:"红谷滩区",region_level:3,children:[]},{code:"360121",name:"南昌县",region_level:3,children:[]},{code:"360123",name:"安义县",region_level:3,children:[]},{code:"360124",name:"进贤县",region_level:3,children:[]}]},{code:"3602",name:"景德镇市",region_level:2,children:[{code:"360202",name:"昌江区",region_level:3,children:[]},{code:"360203",name:"珠山区",region_level:3,children:[]},{code:"360222",name:"浮梁县",region_level:3,children:[]},{code:"360281",name:"乐平市",region_level:3,children:[]}]},{code:"3603",name:"萍乡市",region_level:2,children:[{code:"360302",name:"安源区",region_level:3,children:[]},{code:"360313",name:"湘东区",region_level:3,children:[]},{code:"360321",name:"莲花县",region_level:3,children:[]},{code:"360322",name:"上栗县",region_level:3,children:[]},{code:"360323",name:"芦溪县",region_level:3,children:[]}]},{code:"3604",name:"九江市",region_level:2,children:[{code:"360402",name:"濂溪区",region_level:3,children:[]},{code:"360403",name:"浔阳区",region_level:3,children:[]},{code:"360404",name:"柴桑区",region_level:3,children:[]},{code:"360423",name:"武宁县",region_level:3,children:[]},{code:"360424",name:"修水县",region_level:3,children:[]},{code:"360425",name:"永修县",region_level:3,children:[]},{code:"360426",name:"德安县",region_level:3,children:[]},{code:"360428",name:"都昌县",region_level:3,children:[]},{code:"360429",name:"湖口县",region_level:3,children:[]},{code:"360430",name:"彭泽县",region_level:3,children:[]},{code:"360481",name:"瑞昌市",region_level:3,children:[]},{code:"360482",name:"共青城市",region_level:3,children:[]},{code:"360483",name:"庐山市",region_level:3,children:[]}]},{code:"3605",name:"新余市",region_level:2,children:[{code:"360502",name:"渝水区",region_level:3,children:[]},{code:"360521",name:"分宜县",region_level:3,children:[]}]},{code:"3606",name:"鹰潭市",region_level:2,children:[{code:"360602",name:"月湖区",region_level:3,children:[]},{code:"360603",name:"余江区",region_level:3,children:[]},{code:"360681",name:"贵溪市",region_level:3,children:[]}]},{code:"3607",name:"赣州市",region_level:2,children:[{code:"360702",name:"章贡区",region_level:3,children:[]},{code:"360703",name:"南康区",region_level:3,children:[]},{code:"360704",name:"赣县区",region_level:3,children:[]},{code:"360722",name:"信丰县",region_level:3,children:[]},{code:"360723",name:"大余县",region_level:3,children:[]},{code:"360724",name:"上犹县",region_level:3,children:[]},{code:"360725",name:"崇义县",region_level:3,children:[]},{code:"360726",name:"安远县",region_level:3,children:[]},{code:"360727",name:"龙南县",region_level:3,children:[]},{code:"360728",name:"定南县",region_level:3,children:[]},{code:"360729",name:"全南县",region_level:3,children:[]},{code:"360730",name:"宁都县",region_level:3,children:[]},{code:"360731",name:"于都县",region_level:3,children:[]},{code:"360732",name:"兴国县",region_level:3,children:[]},{code:"360733",name:"会昌县",region_level:3,children:[]},{code:"360734",name:"寻乌县",region_level:3,children:[]},{code:"360735",name:"石城县",region_level:3,children:[]},{code:"360781",name:"瑞金市",region_level:3,children:[]}]},{code:"3608",name:"吉安市",region_level:2,children:[{code:"360802",name:"吉州区",region_level:3,children:[]},{code:"360803",name:"青原区",region_level:3,children:[]},{code:"360821",name:"吉安县",region_level:3,children:[]},{code:"360822",name:"吉水县",region_level:3,children:[]},{code:"360823",name:"峡江县",region_level:3,children:[]},{code:"360824",name:"新干县",region_level:3,children:[]},{code:"360825",name:"永丰县",region_level:3,children:[]},{code:"360826",name:"泰和县",region_level:3,children:[]},{code:"360827",name:"遂川县",region_level:3,children:[]},{code:"360828",name:"万安县",region_level:3,children:[]},{code:"360829",name:"安福县",region_level:3,children:[]},{code:"360830",name:"永新县",region_level:3,children:[]},{code:"360881",name:"井冈山市",region_level:3,children:[]}]},{code:"3609",name:"宜春市",region_level:2,children:[{code:"360902",name:"袁州区",region_level:3,children:[]},{code:"360921",name:"奉新县",region_level:3,children:[]},{code:"360922",name:"万载县",region_level:3,children:[]},{code:"360923",name:"上高县",region_level:3,children:[]},{code:"360924",name:"宜丰县",region_level:3,children:[]},{code:"360925",name:"靖安县",region_level:3,children:[]},{code:"360926",name:"铜鼓县",region_level:3,children:[]},{code:"360981",name:"丰城市",region_level:3,children:[]},{code:"360982",name:"樟树市",region_level:3,children:[]},{code:"360983",name:"高安市",region_level:3,children:[]}]},{code:"3610",name:"抚州市",region_level:2,children:[{code:"361002",name:"临川区",region_level:3,children:[]},{code:"361003",name:"东乡区",region_level:3,children:[]},{code:"361021",name:"南城县",region_level:3,children:[]},{code:"361022",name:"黎川县",region_level:3,children:[]},{code:"361023",name:"南丰县",region_level:3,children:[]},{code:"361024",name:"崇仁县",region_level:3,children:[]},{code:"361025",name:"乐安县",region_level:3,children:[]},{code:"361026",name:"宜黄县",region_level:3,children:[]},{code:"361027",name:"金溪县",region_level:3,children:[]},{code:"361028",name:"资溪县",region_level:3,children:[]},{code:"361030",name:"广昌县",region_level:3,children:[]}]},{code:"3611",name:"上饶市",region_level:2,children:[{code:"361102",name:"信州区",region_level:3,children:[]},{code:"361103",name:"广丰区",region_level:3,children:[]},{code:"361104",name:"广信区",region_level:3,children:[]},{code:"361123",name:"玉山县",region_level:3,children:[]},{code:"361124",name:"铅山县",region_level:3,children:[]},{code:"361125",name:"横峰县",region_level:3,children:[]},{code:"361126",name:"弋阳县",region_level:3,children:[]},{code:"361127",name:"余干县",region_level:3,children:[]},{code:"361128",name:"鄱阳县",region_level:3,children:[]},{code:"361129",name:"万年县",region_level:3,children:[]},{code:"361130",name:"婺源县",region_level:3,children:[]},{code:"361181",name:"德兴市",region_level:3,children:[]}]}]},{code:"37",name:"山东省",region_level:1,children:[{code:"3701",name:"济南市",region_level:2,children:[{code:"370102",name:"历下区",region_level:3,children:[]},{code:"370103",name:"市中区",region_level:3,children:[]},{code:"370104",name:"槐荫区",region_level:3,children:[]},{code:"370105",name:"天桥区",region_level:3,children:[]},{code:"370112",name:"历城区",region_level:3,children:[]},{code:"370113",name:"长清区",region_level:3,children:[]},{code:"370114",name:"章丘区",region_level:3,children:[]},{code:"370115",name:"济阳区",region_level:3,children:[]},{code:"370116",name:"莱芜区",region_level:3,children:[]},{code:"370117",name:"钢城区",region_level:3,children:[]},{code:"370124",name:"平阴县",region_level:3,children:[]},{code:"370126",name:"商河县",region_level:3,children:[]}]},{code:"3702",name:"青岛市",region_level:2,children:[{code:"370202",name:"市南区",region_level:3,children:[]},{code:"370203",name:"市北区",region_level:3,children:[]},{code:"370211",name:"黄岛区",region_level:3,children:[]},{code:"370212",name:"崂山区",region_level:3,children:[]},{code:"370213",name:"李沧区",region_level:3,children:[]},{code:"370214",name:"城阳区",region_level:3,children:[]},{code:"370215",name:"即墨区",region_level:3,children:[]},{code:"370281",name:"胶州市",region_level:3,children:[]},{code:"370283",name:"平度市",region_level:3,children:[]},{code:"370285",name:"莱西市",region_level:3,children:[]}]},{code:"3703",name:"淄博市",region_level:2,children:[{code:"370302",name:"淄川区",region_level:3,children:[]},{code:"370303",name:"张店区",region_level:3,children:[]},{code:"370304",name:"博山区",region_level:3,children:[]},{code:"370305",name:"临淄区",region_level:3,children:[]},{code:"370306",name:"周村区",region_level:3,children:[]},{code:"370321",name:"桓台县",region_level:3,children:[]},{code:"370322",name:"高青县",region_level:3,children:[]},{code:"370323",name:"沂源县",region_level:3,children:[]}]},{code:"3704",name:"枣庄市",region_level:2,children:[{code:"370402",name:"市中区",region_level:3,children:[]},{code:"370403",name:"薛城区",region_level:3,children:[]},{code:"370404",name:"峄城区",region_level:3,children:[]},{code:"370405",name:"台儿庄区",region_level:3,children:[]},{code:"370406",name:"山亭区",region_level:3,children:[]},{code:"370481",name:"滕州市",region_level:3,children:[]}]},{code:"3705",name:"东营市",region_level:2,children:[{code:"370502",name:"东营区",region_level:3,children:[]},{code:"370503",name:"河口区",region_level:3,children:[]},{code:"370505",name:"垦利区",region_level:3,children:[]},{code:"370522",name:"利津县",region_level:3,children:[]},{code:"370523",name:"广饶县",region_level:3,children:[]}]},{code:"3706",name:"烟台市",region_level:2,children:[{code:"370602",name:"芝罘区",region_level:3,children:[]},{code:"370611",name:"福山区",region_level:3,children:[]},{code:"370612",name:"牟平区",region_level:3,children:[]},{code:"370613",name:"莱山区",region_level:3,children:[]},{code:"370634",name:"长岛县",region_level:3,children:[]},{code:"370681",name:"龙口市",region_level:3,children:[]},{code:"370682",name:"莱阳市",region_level:3,children:[]},{code:"370683",name:"莱州市",region_level:3,children:[]},{code:"370684",name:"蓬莱市",region_level:3,children:[]},{code:"370685",name:"招远市",region_level:3,children:[]},{code:"370686",name:"栖霞市",region_level:3,children:[]},{code:"370687",name:"海阳市",region_level:3,children:[]}]},{code:"3707",name:"潍坊市",region_level:2,children:[{code:"370702",name:"潍城区",region_level:3,children:[]},{code:"370703",name:"寒亭区",region_level:3,children:[]},{code:"370704",name:"坊子区",region_level:3,children:[]},{code:"370705",name:"奎文区",region_level:3,children:[]},{code:"370724",name:"临朐县",region_level:3,children:[]},{code:"370725",name:"昌乐县",region_level:3,children:[]},{code:"370781",name:"青州市",region_level:3,children:[]},{code:"370782",name:"诸城市",region_level:3,children:[]},{code:"370783",name:"寿光市",region_level:3,children:[]},{code:"370784",name:"安丘市",region_level:3,children:[]},{code:"370785",name:"高密市",region_level:3,children:[]},{code:"370786",name:"昌邑市",region_level:3,children:[]}]},{code:"3708",name:"济宁市",region_level:2,children:[{code:"370811",name:"任城区",region_level:3,children:[]},{code:"370812",name:"兖州区",region_level:3,children:[]},{code:"370826",name:"微山县",region_level:3,children:[]},{code:"370827",name:"鱼台县",region_level:3,children:[]},{code:"370828",name:"金乡县",region_level:3,children:[]},{code:"370829",name:"嘉祥县",region_level:3,children:[]},{code:"370830",name:"汶上县",region_level:3,children:[]},{code:"370831",name:"泗水县",region_level:3,children:[]},{code:"370832",name:"梁山县",region_level:3,children:[]},{code:"370881",name:"曲阜市",region_level:3,children:[]},{code:"370883",name:"邹城市",region_level:3,children:[]}]},{code:"3709",name:"泰安市",region_level:2,children:[{code:"370902",name:"泰山区",region_level:3,children:[]},{code:"370911",name:"岱岳区",region_level:3,children:[]},{code:"370921",name:"宁阳县",region_level:3,children:[]},{code:"370923",name:"东平县",region_level:3,children:[]},{code:"370982",name:"新泰市",region_level:3,children:[]},{code:"370983",name:"肥城市",region_level:3,children:[]}]},{code:"3710",name:"威海市",region_level:2,children:[{code:"371002",name:"环翠区",region_level:3,children:[]},{code:"371003",name:"文登区",region_level:3,children:[]},{code:"371082",name:"荣成市",region_level:3,children:[]},{code:"371083",name:"乳山市",region_level:3,children:[]}]},{code:"3711",name:"日照市",region_level:2,children:[{code:"371102",name:"东港区",region_level:3,children:[]},{code:"371103",name:"岚山区",region_level:3,children:[]},{code:"371121",name:"五莲县",region_level:3,children:[]},{code:"371122",name:"莒县",region_level:3,children:[]}]},{code:"3713",name:"临沂市",region_level:2,children:[{code:"371302",name:"兰山区",region_level:3,children:[]},{code:"371311",name:"罗庄区",region_level:3,children:[]},{code:"371312",name:"河东区",region_level:3,children:[]},{code:"371321",name:"沂南县",region_level:3,children:[]},{code:"371322",name:"郯城县",region_level:3,children:[]},{code:"371323",name:"沂水县",region_level:3,children:[]},{code:"371324",name:"兰陵县",region_level:3,children:[]},{code:"371325",name:"费县",region_level:3,children:[]},{code:"371326",name:"平邑县",region_level:3,children:[]},{code:"371327",name:"莒南县",region_level:3,children:[]},{code:"371328",name:"蒙阴县",region_level:3,children:[]},{code:"371329",name:"临沭县",region_level:3,children:[]}]},{code:"3714",name:"德州市",region_level:2,children:[{code:"371402",name:"德城区",region_level:3,children:[]},{code:"371403",name:"陵城区",region_level:3,children:[]},{code:"371422",name:"宁津县",region_level:3,children:[]},{code:"371423",name:"庆云县",region_level:3,children:[]},{code:"371424",name:"临邑县",region_level:3,children:[]},{code:"371425",name:"齐河县",region_level:3,children:[]},{code:"371426",name:"平原县",region_level:3,children:[]},{code:"371427",name:"夏津县",region_level:3,children:[]},{code:"371428",name:"武城县",region_level:3,children:[]},{code:"371481",name:"乐陵市",region_level:3,children:[]},{code:"371482",name:"禹城市",region_level:3,children:[]}]},{code:"3715",name:"聊城市",region_level:2,children:[{code:"371502",name:"东昌府区",region_level:3,children:[]},{code:"371503",name:"茌平区",region_level:3,children:[]},{code:"371521",name:"阳谷县",region_level:3,children:[]},{code:"371522",name:"莘县",region_level:3,children:[]},{code:"371524",name:"东阿县",region_level:3,children:[]},{code:"371525",name:"冠县",region_level:3,children:[]},{code:"371526",name:"高唐县",region_level:3,children:[]},{code:"371581",name:"临清市",region_level:3,children:[]}]},{code:"3716",name:"滨州市",region_level:2,children:[{code:"371602",name:"滨城区",region_level:3,children:[]},{code:"371603",name:"沾化区",region_level:3,children:[]},{code:"371621",name:"惠民县",region_level:3,children:[]},{code:"371622",name:"阳信县",region_level:3,children:[]},{code:"371623",name:"无棣县",region_level:3,children:[]},{code:"371625",name:"博兴县",region_level:3,children:[]},{code:"371681",name:"邹平市",region_level:3,children:[]}]},{code:"3717",name:"菏泽市",region_level:2,children:[{code:"371702",name:"牡丹区",region_level:3,children:[]},{code:"371703",name:"定陶区",region_level:3,children:[]},{code:"371721",name:"曹县",region_level:3,children:[]},{code:"371722",name:"单县",region_level:3,children:[]},{code:"371723",name:"成武县",region_level:3,children:[]},{code:"371724",name:"巨野县",region_level:3,children:[]},{code:"371725",name:"郓城县",region_level:3,children:[]},{code:"371726",name:"鄄城县",region_level:3,children:[]},{code:"371728",name:"东明县",region_level:3,children:[]}]}]},{code:"41",name:"河南省",region_level:1,children:[{code:"4101",name:"郑州市",region_level:2,children:[{code:"410102",name:"中原区",region_level:3,children:[]},{code:"410103",name:"二七区",region_level:3,children:[]},{code:"410104",name:"管城回族区",region_level:3,children:[]},{code:"410105",name:"金水区",region_level:3,children:[]},{code:"410106",name:"上街区",region_level:3,children:[]},{code:"410108",name:"惠济区",region_level:3,children:[]},{code:"410122",name:"中牟县",region_level:3,children:[]},{code:"410181",name:"巩义市",region_level:3,children:[]},{code:"410182",name:"荥阳市",region_level:3,children:[]},{code:"410183",name:"新密市",region_level:3,children:[]},{code:"410184",name:"新郑市",region_level:3,children:[]},{code:"410185",name:"登封市",region_level:3,children:[]}]},{code:"4102",name:"开封市",region_level:2,children:[{code:"410202",name:"龙亭区",region_level:3,children:[]},{code:"410203",name:"顺河回族区",region_level:3,children:[]},{code:"410204",name:"鼓楼区",region_level:3,children:[]},{code:"410205",name:"禹王台区",region_level:3,children:[]},{code:"410212",name:"祥符区",region_level:3,children:[]},{code:"410221",name:"杞县",region_level:3,children:[]},{code:"410222",name:"通许县",region_level:3,children:[]},{code:"410223",name:"尉氏县",region_level:3,children:[]},{code:"410225",name:"兰考县",region_level:3,children:[]}]},{code:"4103",name:"洛阳市",region_level:2,children:[{code:"410302",name:"老城区",region_level:3,children:[]},{code:"410303",name:"西工区",region_level:3,children:[]},{code:"410304",name:"瀍河回族区",region_level:3,children:[]},{code:"410305",name:"涧西区",region_level:3,children:[]},{code:"410306",name:"吉利区",region_level:3,children:[]},{code:"410311",name:"洛龙区",region_level:3,children:[]},{code:"410322",name:"孟津县",region_level:3,children:[]},{code:"410323",name:"新安县",region_level:3,children:[]},{code:"410324",name:"栾川县",region_level:3,children:[]},{code:"410325",name:"嵩县",region_level:3,children:[]},{code:"410326",name:"汝阳县",region_level:3,children:[]},{code:"410327",name:"宜阳县",region_level:3,children:[]},{code:"410328",name:"洛宁县",region_level:3,children:[]},{code:"410329",name:"伊川县",region_level:3,children:[]},{code:"410381",name:"偃师市",region_level:3,children:[]}]},{code:"4104",name:"平顶山市",region_level:2,children:[{code:"410402",name:"新华区",region_level:3,children:[]},{code:"410403",name:"卫东区",region_level:3,children:[]},{code:"410404",name:"石龙区",region_level:3,children:[]},{code:"410411",name:"湛河区",region_level:3,children:[]},{code:"410421",name:"宝丰县",region_level:3,children:[]},{code:"410422",name:"叶县",region_level:3,children:[]},{code:"410423",name:"鲁山县",region_level:3,children:[]},{code:"410425",name:"郏县",region_level:3,children:[]},{code:"410481",name:"舞钢市",region_level:3,children:[]},{code:"410482",name:"汝州市",region_level:3,children:[]}]},{code:"4105",name:"安阳市",region_level:2,children:[{code:"410502",name:"文峰区",region_level:3,children:[]},{code:"410503",name:"北关区",region_level:3,children:[]},{code:"410505",name:"殷都区",region_level:3,children:[]},{code:"410506",name:"龙安区",region_level:3,children:[]},{code:"410522",name:"安阳县",region_level:3,children:[]},{code:"410523",name:"汤阴县",region_level:3,children:[]},{code:"410526",name:"滑县",region_level:3,children:[]},{code:"410527",name:"内黄县",region_level:3,children:[]},{code:"410581",name:"林州市",region_level:3,children:[]}]},{code:"4106",name:"鹤壁市",region_level:2,children:[{code:"410602",name:"鹤山区",region_level:3,children:[]},{code:"410603",name:"山城区",region_level:3,children:[]},{code:"410611",name:"淇滨区",region_level:3,children:[]},{code:"410621",name:"浚县",region_level:3,children:[]},{code:"410622",name:"淇县",region_level:3,children:[]}]},{code:"4107",name:"新乡市",region_level:2,children:[{code:"410702",name:"红旗区",region_level:3,children:[]},{code:"410703",name:"卫滨区",region_level:3,children:[]},{code:"410704",name:"凤泉区",region_level:3,children:[]},{code:"410711",name:"牧野区",region_level:3,children:[]},{code:"410721",name:"新乡县",region_level:3,children:[]},{code:"410724",name:"获嘉县",region_level:3,children:[]},{code:"410725",name:"原阳县",region_level:3,children:[]},{code:"410726",name:"延津县",region_level:3,children:[]},{code:"410727",name:"封丘县",region_level:3,children:[]},{code:"410781",name:"卫辉市",region_level:3,children:[]},{code:"410782",name:"辉县市",region_level:3,children:[]},{code:"410783",name:"长垣市",region_level:3,children:[]}]},{code:"4108",name:"焦作市",region_level:2,children:[{code:"410802",name:"解放区",region_level:3,children:[]},{code:"410803",name:"中站区",region_level:3,children:[]},{code:"410804",name:"马村区",region_level:3,children:[]},{code:"410811",name:"山阳区",region_level:3,children:[]},{code:"410821",name:"修武县",region_level:3,children:[]},{code:"410822",name:"博爱县",region_level:3,children:[]},{code:"410823",name:"武陟县",region_level:3,children:[]},{code:"410825",name:"温县",region_level:3,children:[]},{code:"410882",name:"沁阳市",region_level:3,children:[]},{code:"410883",name:"孟州市",region_level:3,children:[]}]},{code:"4109",name:"濮阳市",region_level:2,children:[{code:"410902",name:"华龙区",region_level:3,children:[]},{code:"410922",name:"清丰县",region_level:3,children:[]},{code:"410923",name:"南乐县",region_level:3,children:[]},{code:"410926",name:"范县",region_level:3,children:[]},{code:"410927",name:"台前县",region_level:3,children:[]},{code:"410928",name:"濮阳县",region_level:3,children:[]}]},{code:"4110",name:"许昌市",region_level:2,children:[{code:"411002",name:"魏都区",region_level:3,children:[]},{code:"411003",name:"建安区",region_level:3,children:[]},{code:"411024",name:"鄢陵县",region_level:3,children:[]},{code:"411025",name:"襄城县",region_level:3,children:[]},{code:"411081",name:"禹州市",region_level:3,children:[]},{code:"411082",name:"长葛市",region_level:3,children:[]}]},{code:"4111",name:"漯河市",region_level:2,children:[{code:"411102",name:"源汇区",region_level:3,children:[]},{code:"411103",name:"郾城区",region_level:3,children:[]},{code:"411104",name:"召陵区",region_level:3,children:[]},{code:"411121",name:"舞阳县",region_level:3,children:[]},{code:"411122",name:"临颍县",region_level:3,children:[]}]},{code:"4112",name:"三门峡市",region_level:2,children:[{code:"411202",name:"湖滨区",region_level:3,children:[]},{code:"411203",name:"陕州区",region_level:3,children:[]},{code:"411221",name:"渑池县",region_level:3,children:[]},{code:"411224",name:"卢氏县",region_level:3,children:[]},{code:"411281",name:"义马市",region_level:3,children:[]},{code:"411282",name:"灵宝市",region_level:3,children:[]}]},{code:"4113",name:"南阳市",region_level:2,children:[{code:"411302",name:"宛城区",region_level:3,children:[]},{code:"411303",name:"卧龙区",region_level:3,children:[]},{code:"411321",name:"南召县",region_level:3,children:[]},{code:"411322",name:"方城县",region_level:3,children:[]},{code:"411323",name:"西峡县",region_level:3,children:[]},{code:"411324",name:"镇平县",region_level:3,children:[]},{code:"411325",name:"内乡县",region_level:3,children:[]},{code:"411326",name:"淅川县",region_level:3,children:[]},{code:"411327",name:"社旗县",region_level:3,children:[]},{code:"411328",name:"唐河县",region_level:3,children:[]},{code:"411329",name:"新野县",region_level:3,children:[]},{code:"411330",name:"桐柏县",region_level:3,children:[]},{code:"411381",name:"邓州市",region_level:3,children:[]}]},{code:"4114",name:"商丘市",region_level:2,children:[{code:"411402",name:"梁园区",region_level:3,children:[]},{code:"411403",name:"睢阳区",region_level:3,children:[]},{code:"411421",name:"民权县",region_level:3,children:[]},{code:"411422",name:"睢县",region_level:3,children:[]},{code:"411423",name:"宁陵县",region_level:3,children:[]},{code:"411424",name:"柘城县",region_level:3,children:[]},{code:"411425",name:"虞城县",region_level:3,children:[]},{code:"411426",name:"夏邑县",region_level:3,children:[]},{code:"411481",name:"永城市",region_level:3,children:[]}]},{code:"4115",name:"信阳市",region_level:2,children:[{code:"411502",name:"浉河区",region_level:3,children:[]},{code:"411503",name:"平桥区",region_level:3,children:[]},{code:"411521",name:"罗山县",region_level:3,children:[]},{code:"411522",name:"光山县",region_level:3,children:[]},{code:"411523",name:"新县",region_level:3,children:[]},{code:"411524",name:"商城县",region_level:3,children:[]},{code:"411525",name:"固始县",region_level:3,children:[]},{code:"411526",name:"潢川县",region_level:3,children:[]},{code:"411527",name:"淮滨县",region_level:3,children:[]},{code:"411528",name:"息县",region_level:3,children:[]}]},{code:"4116",name:"周口市",region_level:2,children:[{code:"411602",name:"川汇区",region_level:3,children:[]},{code:"411603",name:"淮阳区",region_level:3,children:[]},{code:"411621",name:"扶沟县",region_level:3,children:[]},{code:"411622",name:"西华县",region_level:3,children:[]},{code:"411623",name:"商水县",region_level:3,children:[]},{code:"411624",name:"沈丘县",region_level:3,children:[]},{code:"411625",name:"郸城县",region_level:3,children:[]},{code:"411627",name:"太康县",region_level:3,children:[]},{code:"411628",name:"鹿邑县",region_level:3,children:[]},{code:"411681",name:"项城市",region_level:3,children:[]}]},{code:"4117",name:"驻马店市",region_level:2,children:[{code:"411702",name:"驿城区",region_level:3,children:[]},{code:"411721",name:"西平县",region_level:3,children:[]},{code:"411722",name:"上蔡县",region_level:3,children:[]},{code:"411723",name:"平舆县",region_level:3,children:[]},{code:"411724",name:"正阳县",region_level:3,children:[]},{code:"411725",name:"确山县",region_level:3,children:[]},{code:"411726",name:"泌阳县",region_level:3,children:[]},{code:"411727",name:"汝南县",region_level:3,children:[]},{code:"411728",name:"遂平县",region_level:3,children:[]},{code:"411729",name:"新蔡县",region_level:3,children:[]}]},{code:"4190",name:"省直辖县级行政区",region_level:2,children:[{code:"419001",name:"济源市",region_level:3,children:[]}]}]},{code:"42",name:"湖北省",region_level:1,children:[{code:"4201",name:"武汉市",region_level:2,children:[{code:"420102",name:"江岸区",region_level:3,children:[]},{code:"420103",name:"江汉区",region_level:3,children:[]},{code:"420104",name:"硚口区",region_level:3,children:[]},{code:"420105",name:"汉阳区",region_level:3,children:[]},{code:"420106",name:"武昌区",region_level:3,children:[]},{code:"420107",name:"青山区",region_level:3,children:[]},{code:"420111",name:"洪山区",region_level:3,children:[]},{code:"420112",name:"东西湖区",region_level:3,children:[]},{code:"420113",name:"汉南区",region_level:3,children:[]},{code:"420114",name:"蔡甸区",region_level:3,children:[]},{code:"420115",name:"江夏区",region_level:3,children:[]},{code:"420116",name:"黄陂区",region_level:3,children:[]},{code:"420117",name:"新洲区",region_level:3,children:[]}]},{code:"4202",name:"黄石市",region_level:2,children:[{code:"420202",name:"黄石港区",region_level:3,children:[]},{code:"420203",name:"西塞山区",region_level:3,children:[]},{code:"420204",name:"下陆区",region_level:3,children:[]},{code:"420205",name:"铁山区",region_level:3,children:[]},{code:"420222",name:"阳新县",region_level:3,children:[]},{code:"420281",name:"大冶市",region_level:3,children:[]}]},{code:"4203",name:"十堰市",region_level:2,children:[{code:"420302",name:"茅箭区",region_level:3,children:[]},{code:"420303",name:"张湾区",region_level:3,children:[]},{code:"420304",name:"郧阳区",region_level:3,children:[]},{code:"420322",name:"郧西县",region_level:3,children:[]},{code:"420323",name:"竹山县",region_level:3,children:[]},{code:"420324",name:"竹溪县",region_level:3,children:[]},{code:"420325",name:"房县",region_level:3,children:[]},{code:"420381",name:"丹江口市",region_level:3,children:[]}]},{code:"4205",name:"宜昌市",region_level:2,children:[{code:"420502",name:"西陵区",region_level:3,children:[]},{code:"420503",name:"伍家岗区",region_level:3,children:[]},{code:"420504",name:"点军区",region_level:3,children:[]},{code:"420505",name:"猇亭区",region_level:3,children:[]},{code:"420506",name:"夷陵区",region_level:3,children:[]},{code:"420525",name:"远安县",region_level:3,children:[]},{code:"420526",name:"兴山县",region_level:3,children:[]},{code:"420527",name:"秭归县",region_level:3,children:[]},{code:"420528",name:"长阳土家族自治县",region_level:3,children:[]},{code:"420529",name:"五峰土家族自治县",region_level:3,children:[]},{code:"420581",name:"宜都市",region_level:3,children:[]},{code:"420582",name:"当阳市",region_level:3,children:[]},{code:"420583",name:"枝江市",region_level:3,children:[]}]},{code:"4206",name:"襄阳市",region_level:2,children:[{code:"420602",name:"襄城区",region_level:3,children:[]},{code:"420606",name:"樊城区",region_level:3,children:[]},{code:"420607",name:"襄州区",region_level:3,children:[]},{code:"420624",name:"南漳县",region_level:3,children:[]},{code:"420625",name:"谷城县",region_level:3,children:[]},{code:"420626",name:"保康县",region_level:3,children:[]},{code:"420682",name:"老河口市",region_level:3,children:[]},{code:"420683",name:"枣阳市",region_level:3,children:[]},{code:"420684",name:"宜城市",region_level:3,children:[]}]},{code:"4207",name:"鄂州市",region_level:2,children:[{code:"420702",name:"梁子湖区",region_level:3,children:[]},{code:"420703",name:"华容区",region_level:3,children:[]},{code:"420704",name:"鄂城区",region_level:3,children:[]}]},{code:"4208",name:"荆门市",region_level:2,children:[{code:"420802",name:"东宝区",region_level:3,children:[]},{code:"420804",name:"掇刀区",region_level:3,children:[]},{code:"420822",name:"沙洋县",region_level:3,children:[]},{code:"420881",name:"钟祥市",region_level:3,children:[]},{code:"420882",name:"京山市",region_level:3,children:[]}]},{code:"4209",name:"孝感市",region_level:2,children:[{code:"420902",name:"孝南区",region_level:3,children:[]},{code:"420921",name:"孝昌县",region_level:3,children:[]},{code:"420922",name:"大悟县",region_level:3,children:[]},{code:"420923",name:"云梦县",region_level:3,children:[]},{code:"420981",name:"应城市",region_level:3,children:[]},{code:"420982",name:"安陆市",region_level:3,children:[]},{code:"420984",name:"汉川市",region_level:3,children:[]}]},{code:"4210",name:"荆州市",region_level:2,children:[{code:"421002",name:"沙市区",region_level:3,children:[]},{code:"421003",name:"荆州区",region_level:3,children:[]},{code:"421022",name:"公安县",region_level:3,children:[]},{code:"421023",name:"监利县",region_level:3,children:[]},{code:"421024",name:"江陵县",region_level:3,children:[]},{code:"421081",name:"石首市",region_level:3,children:[]},{code:"421083",name:"洪湖市",region_level:3,children:[]},{code:"421087",name:"松滋市",region_level:3,children:[]}]},{code:"4211",name:"黄冈市",region_level:2,children:[{code:"421102",name:"黄州区",region_level:3,children:[]},{code:"421121",name:"团风县",region_level:3,children:[]},{code:"421122",name:"红安县",region_level:3,children:[]},{code:"421123",name:"罗田县",region_level:3,children:[]},{code:"421124",name:"英山县",region_level:3,children:[]},{code:"421125",name:"浠水县",region_level:3,children:[]},{code:"421126",name:"蕲春县",region_level:3,children:[]},{code:"421127",name:"黄梅县",region_level:3,children:[]},{code:"421181",name:"麻城市",region_level:3,children:[]},{code:"421182",name:"武穴市",region_level:3,children:[]}]},{code:"4212",name:"咸宁市",region_level:2,children:[{code:"421202",name:"咸安区",region_level:3,children:[]},{code:"421221",name:"嘉鱼县",region_level:3,children:[]},{code:"421222",name:"通城县",region_level:3,children:[]},{code:"421223",name:"崇阳县",region_level:3,children:[]},{code:"421224",name:"通山县",region_level:3,children:[]},{code:"421281",name:"赤壁市",region_level:3,children:[]}]},{code:"4213",name:"随州市",region_level:2,children:[{code:"421303",name:"曾都区",region_level:3,children:[]},{code:"421321",name:"随县",region_level:3,children:[]},{code:"421381",name:"广水市",region_level:3,children:[]}]},{code:"4228",name:"恩施土家族苗族自治州",region_level:2,children:[{code:"422801",name:"恩施市",region_level:3,children:[]},{code:"422802",name:"利川市",region_level:3,children:[]},{code:"422822",name:"建始县",region_level:3,children:[]},{code:"422823",name:"巴东县",region_level:3,children:[]},{code:"422825",name:"宣恩县",region_level:3,children:[]},{code:"422826",name:"咸丰县",region_level:3,children:[]},{code:"422827",name:"来凤县",region_level:3,children:[]},{code:"422828",name:"鹤峰县",region_level:3,children:[]}]},{code:"4290",name:"省直辖县级行政区",region_level:2,children:[{code:"429004",name:"仙桃市",region_level:3,children:[]},{code:"429005",name:"潜江市",region_level:3,children:[]},{code:"429006",name:"天门市",region_level:3,children:[]},{code:"429021",name:"神农架林区",region_level:3,children:[]}]}]},{code:"43",name:"湖南省",region_level:1,children:[{code:"4301",name:"长沙市",region_level:2,children:[{code:"430102",name:"芙蓉区",region_level:3,children:[]},{code:"430103",name:"天心区",region_level:3,children:[]},{code:"430104",name:"岳麓区",region_level:3,children:[]},{code:"430105",name:"开福区",region_level:3,children:[]},{code:"430111",name:"雨花区",region_level:3,children:[]},{code:"430112",name:"望城区",region_level:3,children:[]},{code:"430121",name:"长沙县",region_level:3,children:[]},{code:"430181",name:"浏阳市",region_level:3,children:[]},{code:"430182",name:"宁乡市",region_level:3,children:[]}]},{code:"4302",name:"株洲市",region_level:2,children:[{code:"430202",name:"荷塘区",region_level:3,children:[]},{code:"430203",name:"芦淞区",region_level:3,children:[]},{code:"430204",name:"石峰区",region_level:3,children:[]},{code:"430211",name:"天元区",region_level:3,children:[]},{code:"430212",name:"渌口区",region_level:3,children:[]},{code:"430223",name:"攸县",region_level:3,children:[]},{code:"430224",name:"茶陵县",region_level:3,children:[]},{code:"430225",name:"炎陵县",region_level:3,children:[]},{code:"430281",name:"醴陵市",region_level:3,children:[]}]},{code:"4303",name:"湘潭市",region_level:2,children:[{code:"430302",name:"雨湖区",region_level:3,children:[]},{code:"430304",name:"岳塘区",region_level:3,children:[]},{code:"430321",name:"湘潭县",region_level:3,children:[]},{code:"430381",name:"湘乡市",region_level:3,children:[]},{code:"430382",name:"韶山市",region_level:3,children:[]}]},{code:"4304",name:"衡阳市",region_level:2,children:[{code:"430405",name:"珠晖区",region_level:3,children:[]},{code:"430406",name:"雁峰区",region_level:3,children:[]},{code:"430407",name:"石鼓区",region_level:3,children:[]},{code:"430408",name:"蒸湘区",region_level:3,children:[]},{code:"430412",name:"南岳区",region_level:3,children:[]},{code:"430421",name:"衡阳县",region_level:3,children:[]},{code:"430422",name:"衡南县",region_level:3,children:[]},{code:"430423",name:"衡山县",region_level:3,children:[]},{code:"430424",name:"衡东县",region_level:3,children:[]},{code:"430426",name:"祁东县",region_level:3,children:[]},{code:"430481",name:"耒阳市",region_level:3,children:[]},{code:"430482",name:"常宁市",region_level:3,children:[]}]},{code:"4305",name:"邵阳市",region_level:2,children:[{code:"430502",name:"双清区",region_level:3,children:[]},{code:"430503",name:"大祥区",region_level:3,children:[]},{code:"430511",name:"北塔区",region_level:3,children:[]},{code:"430522",name:"新邵县",region_level:3,children:[]},{code:"430523",name:"邵阳县",region_level:3,children:[]},{code:"430524",name:"隆回县",region_level:3,children:[]},{code:"430525",name:"洞口县",region_level:3,children:[]},{code:"430527",name:"绥宁县",region_level:3,children:[]},{code:"430528",name:"新宁县",region_level:3,children:[]},{code:"430529",name:"城步苗族自治县",region_level:3,children:[]},{code:"430581",name:"武冈市",region_level:3,children:[]},{code:"430582",name:"邵东市",region_level:3,children:[]}]},{code:"4306",name:"岳阳市",region_level:2,children:[{code:"430602",name:"岳阳楼区",region_level:3,children:[]},{code:"430603",name:"云溪区",region_level:3,children:[]},{code:"430611",name:"君山区",region_level:3,children:[]},{code:"430621",name:"岳阳县",region_level:3,children:[]},{code:"430623",name:"华容县",region_level:3,children:[]},{code:"430624",name:"湘阴县",region_level:3,children:[]},{code:"430626",name:"平江县",region_level:3,children:[]},{code:"430681",name:"汨罗市",region_level:3,children:[]},{code:"430682",name:"临湘市",region_level:3,children:[]}]},{code:"4307",name:"常德市",region_level:2,children:[{code:"430702",name:"武陵区",region_level:3,children:[]},{code:"430703",name:"鼎城区",region_level:3,children:[]},{code:"430721",name:"安乡县",region_level:3,children:[]},{code:"430722",name:"汉寿县",region_level:3,children:[]},{code:"430723",name:"澧县",region_level:3,children:[]},{code:"430724",name:"临澧县",region_level:3,children:[]},{code:"430725",name:"桃源县",region_level:3,children:[]},{code:"430726",name:"石门县",region_level:3,children:[]},{code:"430781",name:"津市市",region_level:3,children:[]}]},{code:"4308",name:"张家界市",region_level:2,children:[{code:"430802",name:"永定区",region_level:3,children:[]},{code:"430811",name:"武陵源区",region_level:3,children:[]},{code:"430821",name:"慈利县",region_level:3,children:[]},{code:"430822",name:"桑植县",region_level:3,children:[]}]},{code:"4309",name:"益阳市",region_level:2,children:[{code:"430902",name:"资阳区",region_level:3,children:[]},{code:"430903",name:"赫山区",region_level:3,children:[]},{code:"430921",name:"南县",region_level:3,children:[]},{code:"430922",name:"桃江县",region_level:3,children:[]},{code:"430923",name:"安化县",region_level:3,children:[]},{code:"430981",name:"沅江市",region_level:3,children:[]}]},{code:"4310",name:"郴州市",region_level:2,children:[{code:"431002",name:"北湖区",region_level:3,children:[]},{code:"431003",name:"苏仙区",region_level:3,children:[]},{code:"431021",name:"桂阳县",region_level:3,children:[]},{code:"431022",name:"宜章县",region_level:3,children:[]},{code:"431023",name:"永兴县",region_level:3,children:[]},{code:"431024",name:"嘉禾县",region_level:3,children:[]},{code:"431025",name:"临武县",region_level:3,children:[]},{code:"431026",name:"汝城县",region_level:3,children:[]},{code:"431027",name:"桂东县",region_level:3,children:[]},{code:"431028",name:"安仁县",region_level:3,children:[]},{code:"431081",name:"资兴市",region_level:3,children:[]}]},{code:"4311",name:"永州市",region_level:2,children:[{code:"431102",name:"零陵区",region_level:3,children:[]},{code:"431103",name:"冷水滩区",region_level:3,children:[]},{code:"431121",name:"祁阳县",region_level:3,children:[]},{code:"431122",name:"东安县",region_level:3,children:[]},{code:"431123",name:"双牌县",region_level:3,children:[]},{code:"431124",name:"道县",region_level:3,children:[]},{code:"431125",name:"江永县",region_level:3,children:[]},{code:"431126",name:"宁远县",region_level:3,children:[]},{code:"431127",name:"蓝山县",region_level:3,children:[]},{code:"431128",name:"新田县",region_level:3,children:[]},{code:"431129",name:"江华瑶族自治县",region_level:3,children:[]}]},{code:"4312",name:"怀化市",region_level:2,children:[{code:"431202",name:"鹤城区",region_level:3,children:[]},{code:"431221",name:"中方县",region_level:3,children:[]},{code:"431222",name:"沅陵县",region_level:3,children:[]},{code:"431223",name:"辰溪县",region_level:3,children:[]},{code:"431224",name:"溆浦县",region_level:3,children:[]},{code:"431225",name:"会同县",region_level:3,children:[]},{code:"431226",name:"麻阳苗族自治县",region_level:3,children:[]},{code:"431227",name:"新晃侗族自治县",region_level:3,children:[]},{code:"431228",name:"芷江侗族自治县",region_level:3,children:[]},{code:"431229",name:"靖州苗族侗族自治县",region_level:3,children:[]},{code:"431230",name:"通道侗族自治县",region_level:3,children:[]},{code:"431281",name:"洪江市",region_level:3,children:[]}]},{code:"4313",name:"娄底市",region_level:2,children:[{code:"431302",name:"娄星区",region_level:3,children:[]},{code:"431321",name:"双峰县",region_level:3,children:[]},{code:"431322",name:"新化县",region_level:3,children:[]},{code:"431381",name:"冷水江市",region_level:3,children:[]},{code:"431382",name:"涟源市",region_level:3,children:[]}]},{code:"4331",name:"湘西土家族苗族自治州",region_level:2,children:[{code:"433101",name:"吉首市",region_level:3,children:[]},{code:"433122",name:"泸溪县",region_level:3,children:[]},{code:"433123",name:"凤凰县",region_level:3,children:[]},{code:"433124",name:"花垣县",region_level:3,children:[]},{code:"433125",name:"保靖县",region_level:3,children:[]},{code:"433126",name:"古丈县",region_level:3,children:[]},{code:"433127",name:"永顺县",region_level:3,children:[]},{code:"433130",name:"龙山县",region_level:3,children:[]}]}]},{code:"44",name:"广东省",region_level:1,children:[{code:"4401",name:"广州市",region_level:2,children:[{code:"440103",name:"荔湾区",region_level:3,children:[]},{code:"440104",name:"越秀区",region_level:3,children:[]},{code:"440105",name:"海珠区",region_level:3,children:[]},{code:"440106",name:"天河区",region_level:3,children:[]},{code:"440111",name:"白云区",region_level:3,children:[]},{code:"440112",name:"黄埔区",region_level:3,children:[]},{code:"440113",name:"番禺区",region_level:3,children:[]},{code:"440114",name:"花都区",region_level:3,children:[]},{code:"440115",name:"南沙区",region_level:3,children:[]},{code:"440117",name:"从化区",region_level:3,children:[]},{code:"440118",name:"增城区",region_level:3,children:[]}]},{code:"4402",name:"韶关市",region_level:2,children:[{code:"440203",name:"武江区",region_level:3,children:[]},{code:"440204",name:"浈江区",region_level:3,children:[]},{code:"440205",name:"曲江区",region_level:3,children:[]},{code:"440222",name:"始兴县",region_level:3,children:[]},{code:"440224",name:"仁化县",region_level:3,children:[]},{code:"440229",name:"翁源县",region_level:3,children:[]},{code:"440232",name:"乳源瑶族自治县",region_level:3,children:[]},{code:"440233",name:"新丰县",region_level:3,children:[]},{code:"440281",name:"乐昌市",region_level:3,children:[]},{code:"440282",name:"南雄市",region_level:3,children:[]}]},{code:"4403",name:"深圳市",region_level:2,children:[{code:"440303",name:"罗湖区",region_level:3,children:[]},{code:"440304",name:"福田区",region_level:3,children:[]},{code:"440305",name:"南山区",region_level:3,children:[]},{code:"440306",name:"宝安区",region_level:3,children:[]},{code:"440307",name:"龙岗区",region_level:3,children:[]},{code:"440308",name:"盐田区",region_level:3,children:[]},{code:"440309",name:"龙华区",region_level:3,children:[]},{code:"440310",name:"坪山区",region_level:3,children:[]},{code:"440311",name:"光明区",region_level:3,children:[]}]},{code:"4404",name:"珠海市",region_level:2,children:[{code:"440402",name:"香洲区",region_level:3,children:[]},{code:"440403",name:"斗门区",region_level:3,children:[]},{code:"440404",name:"金湾区",region_level:3,children:[]}]},{code:"4405",name:"汕头市",region_level:2,children:[{code:"440507",name:"龙湖区",region_level:3,children:[]},{code:"440511",name:"金平区",region_level:3,children:[]},{code:"440512",name:"濠江区",region_level:3,children:[]},{code:"440513",name:"潮阳区",region_level:3,children:[]},{code:"440514",name:"潮南区",region_level:3,children:[]},{code:"440515",name:"澄海区",region_level:3,children:[]},{code:"440523",name:"南澳县",region_level:3,children:[]}]},{code:"4406",name:"佛山市",region_level:2,children:[{code:"440604",name:"禅城区",region_level:3,children:[]},{code:"440605",name:"南海区",region_level:3,children:[]},{code:"440606",name:"顺德区",region_level:3,children:[]},{code:"440607",name:"三水区",region_level:3,children:[]},{code:"440608",name:"高明区",region_level:3,children:[]}]},{code:"4407",name:"江门市",region_level:2,children:[{code:"440703",name:"蓬江区",region_level:3,children:[]},{code:"440704",name:"江海区",region_level:3,children:[]},{code:"440705",name:"新会区",region_level:3,children:[]},{code:"440781",name:"台山市",region_level:3,children:[]},{code:"440783",name:"开平市",region_level:3,children:[]},{code:"440784",name:"鹤山市",region_level:3,children:[]},{code:"440785",name:"恩平市",region_level:3,children:[]}]},{code:"4408",name:"湛江市",region_level:2,children:[{code:"440802",name:"赤坎区",region_level:3,children:[]},{code:"440803",name:"霞山区",region_level:3,children:[]},{code:"440804",name:"坡头区",region_level:3,children:[]},{code:"440811",name:"麻章区",region_level:3,children:[]},{code:"440823",name:"遂溪县",region_level:3,children:[]},{code:"440825",name:"徐闻县",region_level:3,children:[]},{code:"440881",name:"廉江市",region_level:3,children:[]},{code:"440882",name:"雷州市",region_level:3,children:[]},{code:"440883",name:"吴川市",region_level:3,children:[]}]},{code:"4409",name:"茂名市",region_level:2,children:[{code:"440902",name:"茂南区",region_level:3,children:[]},{code:"440904",name:"电白区",region_level:3,children:[]},{code:"440981",name:"高州市",region_level:3,children:[]},{code:"440982",name:"化州市",region_level:3,children:[]},{code:"440983",name:"信宜市",region_level:3,children:[]}]},{code:"4412",name:"肇庆市",region_level:2,children:[{code:"441202",name:"端州区",region_level:3,children:[]},{code:"441203",name:"鼎湖区",region_level:3,children:[]},{code:"441204",name:"高要区",region_level:3,children:[]},{code:"441223",name:"广宁县",region_level:3,children:[]},{code:"441224",name:"怀集县",region_level:3,children:[]},{code:"441225",name:"封开县",region_level:3,children:[]},{code:"441226",name:"德庆县",region_level:3,children:[]},{code:"441284",name:"四会市",region_level:3,children:[]}]},{code:"4413",name:"惠州市",region_level:2,children:[{code:"441302",name:"惠城区",region_level:3,children:[]},{code:"441303",name:"惠阳区",region_level:3,children:[]},{code:"441322",name:"博罗县",region_level:3,children:[]},{code:"441323",name:"惠东县",region_level:3,children:[]},{code:"441324",name:"龙门县",region_level:3,children:[]}]},{code:"4414",name:"梅州市",region_level:2,children:[{code:"441402",name:"梅江区",region_level:3,children:[]},{code:"441403",name:"梅县区",region_level:3,children:[]},{code:"441422",name:"大埔县",region_level:3,children:[]},{code:"441423",name:"丰顺县",region_level:3,children:[]},{code:"441424",name:"五华县",region_level:3,children:[]},{code:"441426",name:"平远县",region_level:3,children:[]},{code:"441427",name:"蕉岭县",region_level:3,children:[]},{code:"441481",name:"兴宁市",region_level:3,children:[]}]},{code:"4415",name:"汕尾市",region_level:2,children:[{code:"441502",name:"城区",region_level:3,children:[]},{code:"441521",name:"海丰县",region_level:3,children:[]},{code:"441523",name:"陆河县",region_level:3,children:[]},{code:"441581",name:"陆丰市",region_level:3,children:[]}]},{code:"4416",name:"河源市",region_level:2,children:[{code:"441602",name:"源城区",region_level:3,children:[]},{code:"441621",name:"紫金县",region_level:3,children:[]},{code:"441622",name:"龙川县",region_level:3,children:[]},{code:"441623",name:"连平县",region_level:3,children:[]},{code:"441624",name:"和平县",region_level:3,children:[]},{code:"441625",name:"东源县",region_level:3,children:[]}]},{code:"4417",name:"阳江市",region_level:2,children:[{code:"441702",name:"江城区",region_level:3,children:[]},{code:"441704",name:"阳东区",region_level:3,children:[]},{code:"441721",name:"阳西县",region_level:3,children:[]},{code:"441781",name:"阳春市",region_level:3,children:[]}]},{code:"4418",name:"清远市",region_level:2,children:[{code:"441802",name:"清城区",region_level:3,children:[]},{code:"441803",name:"清新区",region_level:3,children:[]},{code:"441821",name:"佛冈县",region_level:3,children:[]},{code:"441823",name:"阳山县",region_level:3,children:[]},{code:"441825",name:"连山壮族瑶族自治县",region_level:3,children:[]},{code:"441826",name:"连南瑶族自治县",region_level:3,children:[]},{code:"441881",name:"英德市",region_level:3,children:[]},{code:"441882",name:"连州市",region_level:3,children:[]}]},{code:"4419",name:"东莞市",region_level:2,children:[{code:"441900",name:"东莞市",region_level:3,children:[]}]},{code:"4420",name:"中山市",region_level:2,children:[{code:"442000",name:"中山市",region_level:3,children:[]}]},{code:"4451",name:"潮州市",region_level:2,children:[{code:"445102",name:"湘桥区",region_level:3,children:[]},{code:"445103",name:"潮安区",region_level:3,children:[]},{code:"445122",name:"饶平县",region_level:3,children:[]}]},{code:"4452",name:"揭阳市",region_level:2,children:[{code:"445202",name:"榕城区",region_level:3,children:[]},{code:"445203",name:"揭东区",region_level:3,children:[]},{code:"445222",name:"揭西县",region_level:3,children:[]},{code:"445224",name:"惠来县",region_level:3,children:[]},{code:"445281",name:"普宁市",region_level:3,children:[]}]},{code:"4453",name:"云浮市",region_level:2,children:[{code:"445302",name:"云城区",region_level:3,children:[]},{code:"445303",name:"云安区",region_level:3,children:[]},{code:"445321",name:"新兴县",region_level:3,children:[]},{code:"445322",name:"郁南县",region_level:3,children:[]},{code:"445381",name:"罗定市",region_level:3,children:[]}]}]},{code:"45",name:"广西壮族自治区",region_level:1,children:[{code:"4501",name:"南宁市",region_level:2,children:[{code:"450102",name:"兴宁区",region_level:3,children:[]},{code:"450103",name:"青秀区",region_level:3,children:[]},{code:"450105",name:"江南区",region_level:3,children:[]},{code:"450107",name:"西乡塘区",region_level:3,children:[]},{code:"450108",name:"良庆区",region_level:3,children:[]},{code:"450109",name:"邕宁区",region_level:3,children:[]},{code:"450110",name:"武鸣区",region_level:3,children:[]},{code:"450123",name:"隆安县",region_level:3,children:[]},{code:"450124",name:"马山县",region_level:3,children:[]},{code:"450125",name:"上林县",region_level:3,children:[]},{code:"450126",name:"宾阳县",region_level:3,children:[]},{code:"450127",name:"横县",region_level:3,children:[]}]},{code:"4502",name:"柳州市",region_level:2,children:[{code:"450202",name:"城中区",region_level:3,children:[]},{code:"450203",name:"鱼峰区",region_level:3,children:[]},{code:"450204",name:"柳南区",region_level:3,children:[]},{code:"450205",name:"柳北区",region_level:3,children:[]},{code:"450206",name:"柳江区",region_level:3,children:[]},{code:"450222",name:"柳城县",region_level:3,children:[]},{code:"450223",name:"鹿寨县",region_level:3,children:[]},{code:"450224",name:"融安县",region_level:3,children:[]},{code:"450225",name:"融水苗族自治县",region_level:3,children:[]},{code:"450226",name:"三江侗族自治县",region_level:3,children:[]}]},{code:"4503",name:"桂林市",region_level:2,children:[{code:"450302",name:"秀峰区",region_level:3,children:[]},{code:"450303",name:"叠彩区",region_level:3,children:[]},{code:"450304",name:"象山区",region_level:3,children:[]},{code:"450305",name:"七星区",region_level:3,children:[]},{code:"450311",name:"雁山区",region_level:3,children:[]},{code:"450312",name:"临桂区",region_level:3,children:[]},{code:"450321",name:"阳朔县",region_level:3,children:[]},{code:"450323",name:"灵川县",region_level:3,children:[]},{code:"450324",name:"全州县",region_level:3,children:[]},{code:"450325",name:"兴安县",region_level:3,children:[]},{code:"450326",name:"永福县",region_level:3,children:[]},{code:"450327",name:"灌阳县",region_level:3,children:[]},{code:"450328",name:"龙胜各族自治县",region_level:3,children:[]},{code:"450329",name:"资源县",region_level:3,children:[]},{code:"450330",name:"平乐县",region_level:3,children:[]},{code:"450332",name:"恭城瑶族自治县",region_level:3,children:[]},{code:"450381",name:"荔浦市",region_level:3,children:[]}]},{code:"4504",name:"梧州市",region_level:2,children:[{code:"450403",name:"万秀区",region_level:3,children:[]},{code:"450405",name:"长洲区",region_level:3,children:[]},{code:"450406",name:"龙圩区",region_level:3,children:[]},{code:"450421",name:"苍梧县",region_level:3,children:[]},{code:"450422",name:"藤县",region_level:3,children:[]},{code:"450423",name:"蒙山县",region_level:3,children:[]},{code:"450481",name:"岑溪市",region_level:3,children:[]}]},{code:"4505",name:"北海市",region_level:2,children:[{code:"450502",name:"海城区",region_level:3,children:[]},{code:"450503",name:"银海区",region_level:3,children:[]},{code:"450512",name:"铁山港区",region_level:3,children:[]},{code:"450521",name:"合浦县",region_level:3,children:[]}]},{code:"4506",name:"防城港市",region_level:2,children:[{code:"450602",name:"港口区",region_level:3,children:[]},{code:"450603",name:"防城区",region_level:3,children:[]},{code:"450621",name:"上思县",region_level:3,children:[]},{code:"450681",name:"东兴市",region_level:3,children:[]}]},{code:"4507",name:"钦州市",region_level:2,children:[{code:"450702",name:"钦南区",region_level:3,children:[]},{code:"450703",name:"钦北区",region_level:3,children:[]},{code:"450721",name:"灵山县",region_level:3,children:[]},{code:"450722",name:"浦北县",region_level:3,children:[]}]},{code:"4508",name:"贵港市",region_level:2,children:[{code:"450802",name:"港北区",region_level:3,children:[]},{code:"450803",name:"港南区",region_level:3,children:[]},{code:"450804",name:"覃塘区",region_level:3,children:[]},{code:"450821",name:"平南县",region_level:3,children:[]},{code:"450881",name:"桂平市",region_level:3,children:[]}]},{code:"4509",name:"玉林市",region_level:2,children:[{code:"450902",name:"玉州区",region_level:3,children:[]},{code:"450903",name:"福绵区",region_level:3,children:[]},{code:"450921",name:"容县",region_level:3,children:[]},{code:"450922",name:"陆川县",region_level:3,children:[]},{code:"450923",name:"博白县",region_level:3,children:[]},{code:"450924",name:"兴业县",region_level:3,children:[]},{code:"450981",name:"北流市",region_level:3,children:[]}]},{code:"4510",name:"百色市",region_level:2,children:[{code:"451002",name:"右江区",region_level:3,children:[]},{code:"451003",name:"田阳区",region_level:3,children:[]},{code:"451022",name:"田东县",region_level:3,children:[]},{code:"451024",name:"德保县",region_level:3,children:[]},{code:"451026",name:"那坡县",region_level:3,children:[]},{code:"451027",name:"凌云县",region_level:3,children:[]},{code:"451028",name:"乐业县",region_level:3,children:[]},{code:"451029",name:"田林县",region_level:3,children:[]},{code:"451030",name:"西林县",region_level:3,children:[]},{code:"451031",name:"隆林各族自治县",region_level:3,children:[]},{code:"451081",name:"靖西市",region_level:3,children:[]},{code:"451082",name:"平果市",region_level:3,children:[]}]},{code:"4511",name:"贺州市",region_level:2,children:[{code:"451102",name:"八步区",region_level:3,children:[]},{code:"451103",name:"平桂区",region_level:3,children:[]},{code:"451121",name:"昭平县",region_level:3,children:[]},{code:"451122",name:"钟山县",region_level:3,children:[]},{code:"451123",name:"富川瑶族自治县",region_level:3,children:[]}]},{code:"4512",name:"河池市",region_level:2,children:[{code:"451202",name:"金城江区",region_level:3,children:[]},{code:"451203",name:"宜州区",region_level:3,children:[]},{code:"451221",name:"南丹县",region_level:3,children:[]},{code:"451222",name:"天峨县",region_level:3,children:[]},{code:"451223",name:"凤山县",region_level:3,children:[]},{code:"451224",name:"东兰县",region_level:3,children:[]},{code:"451225",name:"罗城仫佬族自治县",region_level:3,children:[]},{code:"451226",name:"环江毛南族自治县",region_level:3,children:[]},{code:"451227",name:"巴马瑶族自治县",region_level:3,children:[]},{code:"451228",name:"都安瑶族自治县",region_level:3,children:[]},{code:"451229",name:"大化瑶族自治县",region_level:3,children:[]}]},{code:"4513",name:"来宾市",region_level:2,children:[{code:"451302",name:"兴宾区",region_level:3,children:[]},{code:"451321",name:"忻城县",region_level:3,children:[]},{code:"451322",name:"象州县",region_level:3,children:[]},{code:"451323",name:"武宣县",region_level:3,children:[]},{code:"451324",name:"金秀瑶族自治县",region_level:3,children:[]},{code:"451381",name:"合山市",region_level:3,children:[]}]},{code:"4514",name:"崇左市",region_level:2,children:[{code:"451402",name:"江州区",region_level:3,children:[]},{code:"451421",name:"扶绥县",region_level:3,children:[]},{code:"451422",name:"宁明县",region_level:3,children:[]},{code:"451423",name:"龙州县",region_level:3,children:[]},{code:"451424",name:"大新县",region_level:3,children:[]},{code:"451425",name:"天等县",region_level:3,children:[]},{code:"451481",name:"凭祥市",region_level:3,children:[]}]}]},{code:"46",name:"海南省",region_level:1,children:[{code:"4601",name:"海口市",region_level:2,children:[{code:"460105",name:"秀英区",region_level:3,children:[]},{code:"460106",name:"龙华区",region_level:3,children:[]},{code:"460107",name:"琼山区",region_level:3,children:[]},{code:"460108",name:"美兰区",region_level:3,children:[]}]},{code:"4602",name:"三亚市",region_level:2,children:[{code:"460202",name:"海棠区",region_level:3,children:[]},{code:"460203",name:"吉阳区",region_level:3,children:[]},{code:"460204",name:"天涯区",region_level:3,children:[]},{code:"460205",name:"崖州区",region_level:3,children:[]}]},{code:"4603",name:"三沙市",region_level:2,children:[{code:"460300",name:"三沙市",region_level:3,children:[]}]},{code:"4604",name:"儋州市",region_level:2,children:[{code:"460400",name:"儋州市",region_level:3,children:[]}]},{code:"4690",name:"省直辖县级行政区",region_level:2,children:[{code:"469001",name:"五指山市",region_level:3,children:[]},{code:"469002",name:"琼海市",region_level:3,children:[]},{code:"469005",name:"文昌市",region_level:3,children:[]},{code:"469006",name:"万宁市",region_level:3,children:[]},{code:"469007",name:"东方市",region_level:3,children:[]},{code:"469021",name:"定安县",region_level:3,children:[]},{code:"469022",name:"屯昌县",region_level:3,children:[]},{code:"469023",name:"澄迈县",region_level:3,children:[]},{code:"469024",name:"临高县",region_level:3,children:[]},{code:"469025",name:"白沙黎族自治县",region_level:3,children:[]},{code:"469026",name:"昌江黎族自治县",region_level:3,children:[]},{code:"469027",name:"乐东黎族自治县",region_level:3,children:[]},{code:"469028",name:"陵水黎族自治县",region_level:3,children:[]},{code:"469029",name:"保亭黎族苗族自治县",region_level:3,children:[]},{code:"469030",name:"琼中黎族苗族自治县",region_level:3,children:[]}]}]},{code:"50",name:"重庆市",region_level:1,children:[{code:"5001",name:"重庆市",region_level:2,children:[{code:"500101",name:"万州区",region_level:3,children:[]},{code:"500102",name:"涪陵区",region_level:3,children:[]},{code:"500103",name:"渝中区",region_level:3,children:[]},{code:"500104",name:"大渡口区",region_level:3,children:[]},{code:"500105",name:"江北区",region_level:3,children:[]},{code:"500106",name:"沙坪坝区",region_level:3,children:[]},{code:"500107",name:"九龙坡区",region_level:3,children:[]},{code:"500108",name:"南岸区",region_level:3,children:[]},{code:"500109",name:"北碚区",region_level:3,children:[]},{code:"500110",name:"綦江区",region_level:3,children:[]},{code:"500111",name:"大足区",region_level:3,children:[]},{code:"500112",name:"渝北区",region_level:3,children:[]},{code:"500113",name:"巴南区",region_level:3,children:[]},{code:"500114",name:"黔江区",region_level:3,children:[]},{code:"500115",name:"长寿区",region_level:3,children:[]},{code:"500116",name:"江津区",region_level:3,children:[]},{code:"500117",name:"合川区",region_level:3,children:[]},{code:"500118",name:"永川区",region_level:3,children:[]},{code:"500119",name:"南川区",region_level:3,children:[]},{code:"500120",name:"璧山区",region_level:3,children:[]},{code:"500151",name:"铜梁区",region_level:3,children:[]},{code:"500152",name:"潼南区",region_level:3,children:[]},{code:"500153",name:"荣昌区",region_level:3,children:[]},{code:"500154",name:"开州区",region_level:3,children:[]},{code:"500155",name:"梁平区",region_level:3,children:[]},{code:"500156",name:"武隆区",region_level:3,children:[]}]},{code:"5002",name:"重庆市",region_level:2,children:[{code:"500229",name:"城口县",region_level:3,children:[]},{code:"500230",name:"丰都县",region_level:3,children:[]},{code:"500231",name:"垫江县",region_level:3,children:[]},{code:"500233",name:"忠县",region_level:3,children:[]},{code:"500235",name:"云阳县",region_level:3,children:[]},{code:"500236",name:"奉节县",region_level:3,children:[]},{code:"500237",name:"巫山县",region_level:3,children:[]},{code:"500238",name:"巫溪县",region_level:3,children:[]},{code:"500240",name:"石柱土家族自治县",region_level:3,children:[]},{code:"500241",name:"秀山土家族苗族自治县",region_level:3,children:[]},{code:"500242",name:"酉阳土家族苗族自治县",region_level:3,children:[]},{code:"500243",name:"彭水苗族土家族自治县",region_level:3,children:[]}]}]},{code:"51",name:"四川省",region_level:1,children:[{code:"5101",name:"成都市",region_level:2,children:[{code:"510104",name:"锦江区",region_level:3,children:[]},{code:"510105",name:"青羊区",region_level:3,children:[]},{code:"510106",name:"金牛区",region_level:3,children:[]},{code:"510107",name:"武侯区",region_level:3,children:[]},{code:"510108",name:"成华区",region_level:3,children:[]},{code:"510112",name:"龙泉驿区",region_level:3,children:[]},{code:"510113",name:"青白江区",region_level:3,children:[]},{code:"510114",name:"新都区",region_level:3,children:[]},{code:"510115",name:"温江区",region_level:3,children:[]},{code:"510116",name:"双流区",region_level:3,children:[]},{code:"510117",name:"郫都区",region_level:3,children:[]},{code:"510121",name:"金堂县",region_level:3,children:[]},{code:"510129",name:"大邑县",region_level:3,children:[]},{code:"510131",name:"蒲江县",region_level:3,children:[]},{code:"510132",name:"新津县",region_level:3,children:[]},{code:"510181",name:"都江堰市",region_level:3,children:[]},{code:"510182",name:"彭州市",region_level:3,children:[]},{code:"510183",name:"邛崃市",region_level:3,children:[]},{code:"510184",name:"崇州市",region_level:3,children:[]},{code:"510185",name:"简阳市",region_level:3,children:[]}]},{code:"5103",name:"自贡市",region_level:2,children:[{code:"510302",name:"自流井区",region_level:3,children:[]},{code:"510303",name:"贡井区",region_level:3,children:[]},{code:"510304",name:"大安区",region_level:3,children:[]},{code:"510311",name:"沿滩区",region_level:3,children:[]},{code:"510321",name:"荣县",region_level:3,children:[]},{code:"510322",name:"富顺县",region_level:3,children:[]}]},{code:"5104",name:"攀枝花市",region_level:2,children:[{code:"510402",name:"东区",region_level:3,children:[]},{code:"510403",name:"西区",region_level:3,children:[]},{code:"510411",name:"仁和区",region_level:3,children:[]},{code:"510421",name:"米易县",region_level:3,children:[]},{code:"510422",name:"盐边县",region_level:3,children:[]}]},{code:"5105",name:"泸州市",region_level:2,children:[{code:"510502",name:"江阳区",region_level:3,children:[]},{code:"510503",name:"纳溪区",region_level:3,children:[]},{code:"510504",name:"龙马潭区",region_level:3,children:[]},{code:"510521",name:"泸县",region_level:3,children:[]},{code:"510522",name:"合江县",region_level:3,children:[]},{code:"510524",name:"叙永县",region_level:3,children:[]},{code:"510525",name:"古蔺县",region_level:3,children:[]}]},{code:"5106",name:"德阳市",region_level:2,children:[{code:"510603",name:"旌阳区",region_level:3,children:[]},{code:"510604",name:"罗江区",region_level:3,children:[]},{code:"510623",name:"中江县",region_level:3,children:[]},{code:"510681",name:"广汉市",region_level:3,children:[]},{code:"510682",name:"什邡市",region_level:3,children:[]},{code:"510683",name:"绵竹市",region_level:3,children:[]}]},{code:"5107",name:"绵阳市",region_level:2,children:[{code:"510703",name:"涪城区",region_level:3,children:[]},{code:"510704",name:"游仙区",region_level:3,children:[]},{code:"510705",name:"安州区",region_level:3,children:[]},{code:"510722",name:"三台县",region_level:3,children:[]},{code:"510723",name:"盐亭县",region_level:3,children:[]},{code:"510725",name:"梓潼县",region_level:3,children:[]},{code:"510726",name:"北川羌族自治县",region_level:3,children:[]},{code:"510727",name:"平武县",region_level:3,children:[]},{code:"510781",name:"江油市",region_level:3,children:[]}]},{code:"5108",name:"广元市",region_level:2,children:[{code:"510802",name:"利州区",region_level:3,children:[]},{code:"510811",name:"昭化区",region_level:3,children:[]},{code:"510812",name:"朝天区",region_level:3,children:[]},{code:"510821",name:"旺苍县",region_level:3,children:[]},{code:"510822",name:"青川县",region_level:3,children:[]},{code:"510823",name:"剑阁县",region_level:3,children:[]},{code:"510824",name:"苍溪县",region_level:3,children:[]}]},{code:"5109",name:"遂宁市",region_level:2,children:[{code:"510903",name:"船山区",region_level:3,children:[]},{code:"510904",name:"安居区",region_level:3,children:[]},{code:"510921",name:"蓬溪县",region_level:3,children:[]},{code:"510923",name:"大英县",region_level:3,children:[]},{code:"510981",name:"射洪市",region_level:3,children:[]}]},{code:"5110",name:"内江市",region_level:2,children:[{code:"511002",name:"市中区",region_level:3,children:[]},{code:"511011",name:"东兴区",region_level:3,children:[]},{code:"511024",name:"威远县",region_level:3,children:[]},{code:"511025",name:"资中县",region_level:3,children:[]},{code:"511083",name:"隆昌市",region_level:3,children:[]}]},{code:"5111",name:"乐山市",region_level:2,children:[{code:"511102",name:"市中区",region_level:3,children:[]},{code:"511111",name:"沙湾区",region_level:3,children:[]},{code:"511112",name:"五通桥区",region_level:3,children:[]},{code:"511113",name:"金口河区",region_level:3,children:[]},{code:"511123",name:"犍为县",region_level:3,children:[]},{code:"511124",name:"井研县",region_level:3,children:[]},{code:"511126",name:"夹江县",region_level:3,children:[]},{code:"511129",name:"沐川县",region_level:3,children:[]},{code:"511132",name:"峨边彝族自治县",region_level:3,children:[]},{code:"511133",name:"马边彝族自治县",region_level:3,children:[]},{code:"511181",name:"峨眉山市",region_level:3,children:[]}]},{code:"5113",name:"南充市",region_level:2,children:[{code:"511302",name:"顺庆区",region_level:3,children:[]},{code:"511303",name:"高坪区",region_level:3,children:[]},{code:"511304",name:"嘉陵区",region_level:3,children:[]},{code:"511321",name:"南部县",region_level:3,children:[]},{code:"511322",name:"营山县",region_level:3,children:[]},{code:"511323",name:"蓬安县",region_level:3,children:[]},{code:"511324",name:"仪陇县",region_level:3,children:[]},{code:"511325",name:"西充县",region_level:3,children:[]},{code:"511381",name:"阆中市",region_level:3,children:[]}]},{code:"5114",name:"眉山市",region_level:2,children:[{code:"511402",name:"东坡区",region_level:3,children:[]},{code:"511403",name:"彭山区",region_level:3,children:[]},{code:"511421",name:"仁寿县",region_level:3,children:[]},{code:"511423",name:"洪雅县",region_level:3,children:[]},{code:"511424",name:"丹棱县",region_level:3,children:[]},{code:"511425",name:"青神县",region_level:3,children:[]}]},{code:"5115",name:"宜宾市",region_level:2,children:[{code:"511502",name:"翠屏区",region_level:3,children:[]},{code:"511503",name:"南溪区",region_level:3,children:[]},{code:"511504",name:"叙州区",region_level:3,children:[]},{code:"511523",name:"江安县",region_level:3,children:[]},{code:"511524",name:"长宁县",region_level:3,children:[]},{code:"511525",name:"高县",region_level:3,children:[]},{code:"511526",name:"珙县",region_level:3,children:[]},{code:"511527",name:"筠连县",region_level:3,children:[]},{code:"511528",name:"兴文县",region_level:3,children:[]},{code:"511529",name:"屏山县",region_level:3,children:[]}]},{code:"5116",name:"广安市",region_level:2,children:[{code:"511602",name:"广安区",region_level:3,children:[]},{code:"511603",name:"前锋区",region_level:3,children:[]},{code:"511621",name:"岳池县",region_level:3,children:[]},{code:"511622",name:"武胜县",region_level:3,children:[]},{code:"511623",name:"邻水县",region_level:3,children:[]},{code:"511681",name:"华蓥市",region_level:3,children:[]}]},{code:"5117",name:"达州市",region_level:2,children:[{code:"511702",name:"通川区",region_level:3,children:[]},{code:"511703",name:"达川区",region_level:3,children:[]},{code:"511722",name:"宣汉县",region_level:3,children:[]},{code:"511723",name:"开江县",region_level:3,children:[]},{code:"511724",name:"大竹县",region_level:3,children:[]},{code:"511725",name:"渠县",region_level:3,children:[]},{code:"511781",name:"万源市",region_level:3,children:[]}]},{code:"5118",name:"雅安市",region_level:2,children:[{code:"511802",name:"雨城区",region_level:3,children:[]},{code:"511803",name:"名山区",region_level:3,children:[]},{code:"511822",name:"荥经县",region_level:3,children:[]},{code:"511823",name:"汉源县",region_level:3,children:[]},{code:"511824",name:"石棉县",region_level:3,children:[]},{code:"511825",name:"天全县",region_level:3,children:[]},{code:"511826",name:"芦山县",region_level:3,children:[]},{code:"511827",name:"宝兴县",region_level:3,children:[]}]},{code:"5119",name:"巴中市",region_level:2,children:[{code:"511902",name:"巴州区",region_level:3,children:[]},{code:"511903",name:"恩阳区",region_level:3,children:[]},{code:"511921",name:"通江县",region_level:3,children:[]},{code:"511922",name:"南江县",region_level:3,children:[]},{code:"511923",name:"平昌县",region_level:3,children:[]}]},{code:"5120",name:"资阳市",region_level:2,children:[{code:"512002",name:"雁江区",region_level:3,children:[]},{code:"512021",name:"安岳县",region_level:3,children:[]},{code:"512022",name:"乐至县",region_level:3,children:[]}]},{code:"5132",name:"阿坝藏族羌族自治州",region_level:2,children:[{code:"513201",name:"马尔康市",region_level:3,children:[]},{code:"513221",name:"汶川县",region_level:3,children:[]},{code:"513222",name:"理县",region_level:3,children:[]},{code:"513223",name:"茂县",region_level:3,children:[]},{code:"513224",name:"松潘县",region_level:3,children:[]},{code:"513225",name:"九寨沟县",region_level:3,children:[]},{code:"513226",name:"金川县",region_level:3,children:[]},{code:"513227",name:"小金县",region_level:3,children:[]},{code:"513228",name:"黑水县",region_level:3,children:[]},{code:"513230",name:"壤塘县",region_level:3,children:[]},{code:"513231",name:"阿坝县",region_level:3,children:[]},{code:"513232",name:"若尔盖县",region_level:3,children:[]},{code:"513233",name:"红原县",region_level:3,children:[]}]},{code:"5133",name:"甘孜藏族自治州",region_level:2,children:[{code:"513301",name:"康定市",region_level:3,children:[]},{code:"513322",name:"泸定县",region_level:3,children:[]},{code:"513323",name:"丹巴县",region_level:3,children:[]},{code:"513324",name:"九龙县",region_level:3,children:[]},{code:"513325",name:"雅江县",region_level:3,children:[]},{code:"513326",name:"道孚县",region_level:3,children:[]},{code:"513327",name:"炉霍县",region_level:3,children:[]},{code:"513328",name:"甘孜县",region_level:3,children:[]},{code:"513329",name:"新龙县",region_level:3,children:[]},{code:"513330",name:"德格县",region_level:3,children:[]},{code:"513331",name:"白玉县",region_level:3,children:[]},{code:"513332",name:"石渠县",region_level:3,children:[]},{code:"513333",name:"色达县",region_level:3,children:[]},{code:"513334",name:"理塘县",region_level:3,children:[]},{code:"513335",name:"巴塘县",region_level:3,children:[]},{code:"513336",name:"乡城县",region_level:3,children:[]},{code:"513337",name:"稻城县",region_level:3,children:[]},{code:"513338",name:"得荣县",region_level:3,children:[]}]},{code:"5134",name:"凉山彝族自治州",region_level:2,children:[{code:"513401",name:"西昌市",region_level:3,children:[]},{code:"513422",name:"木里藏族自治县",region_level:3,children:[]},{code:"513423",name:"盐源县",region_level:3,children:[]},{code:"513424",name:"德昌县",region_level:3,children:[]},{code:"513425",name:"会理县",region_level:3,children:[]},{code:"513426",name:"会东县",region_level:3,children:[]},{code:"513427",name:"宁南县",region_level:3,children:[]},{code:"513428",name:"普格县",region_level:3,children:[]},{code:"513429",name:"布拖县",region_level:3,children:[]},{code:"513430",name:"金阳县",region_level:3,children:[]},{code:"513431",name:"昭觉县",region_level:3,children:[]},{code:"513432",name:"喜德县",region_level:3,children:[]},{code:"513433",name:"冕宁县",region_level:3,children:[]},{code:"513434",name:"越西县",region_level:3,children:[]},{code:"513435",name:"甘洛县",region_level:3,children:[]},{code:"513436",name:"美姑县",region_level:3,children:[]},{code:"513437",name:"雷波县",region_level:3,children:[]}]}]},{code:"52",name:"贵州省",region_level:1,children:[{code:"5201",name:"贵阳市",region_level:2,children:[{code:"520102",name:"南明区",region_level:3,children:[]},{code:"520103",name:"云岩区",region_level:3,children:[]},{code:"520111",name:"花溪区",region_level:3,children:[]},{code:"520112",name:"乌当区",region_level:3,children:[]},{code:"520113",name:"白云区",region_level:3,children:[]},{code:"520115",name:"观山湖区",region_level:3,children:[]},{code:"520121",name:"开阳县",region_level:3,children:[]},{code:"520122",name:"息烽县",region_level:3,children:[]},{code:"520123",name:"修文县",region_level:3,children:[]},{code:"520181",name:"清镇市",region_level:3,children:[]}]},{code:"5202",name:"六盘水市",region_level:2,children:[{code:"520201",name:"钟山区",region_level:3,children:[]},{code:"520203",name:"六枝特区",region_level:3,children:[]},{code:"520221",name:"水城县",region_level:3,children:[]},{code:"520281",name:"盘州市",region_level:3,children:[]}]},{code:"5203",name:"遵义市",region_level:2,children:[{code:"520302",name:"红花岗区",region_level:3,children:[]},{code:"520303",name:"汇川区",region_level:3,children:[]},{code:"520304",name:"播州区",region_level:3,children:[]},{code:"520322",name:"桐梓县",region_level:3,children:[]},{code:"520323",name:"绥阳县",region_level:3,children:[]},{code:"520324",name:"正安县",region_level:3,children:[]},{code:"520325",name:"道真仡佬族苗族自治县",region_level:3,children:[]},{code:"520326",name:"务川仡佬族苗族自治县",region_level:3,children:[]},{code:"520327",name:"凤冈县",region_level:3,children:[]},{code:"520328",name:"湄潭县",region_level:3,children:[]},{code:"520329",name:"余庆县",region_level:3,children:[]},{code:"520330",name:"习水县",region_level:3,children:[]},{code:"520381",name:"赤水市",region_level:3,children:[]},{code:"520382",name:"仁怀市",region_level:3,children:[]}]},{code:"5204",name:"安顺市",region_level:2,children:[{code:"520402",name:"西秀区",region_level:3,children:[]},{code:"520403",name:"平坝区",region_level:3,children:[]},{code:"520422",name:"普定县",region_level:3,children:[]},{code:"520423",name:"镇宁布依族苗族自治县",region_level:3,children:[]},{code:"520424",name:"关岭布依族苗族自治县",region_level:3,children:[]},{code:"520425",name:"紫云苗族布依族自治县",region_level:3,children:[]}]},{code:"5205",name:"毕节市",region_level:2,children:[{code:"520502",name:"七星关区",region_level:3,children:[]},{code:"520521",name:"大方县",region_level:3,children:[]},{code:"520522",name:"黔西县",region_level:3,children:[]},{code:"520523",name:"金沙县",region_level:3,children:[]},{code:"520524",name:"织金县",region_level:3,children:[]},{code:"520525",name:"纳雍县",region_level:3,children:[]},{code:"520526",name:"威宁彝族回族苗族自治县",region_level:3,children:[]},{code:"520527",name:"赫章县",region_level:3,children:[]}]},{code:"5206",name:"铜仁市",region_level:2,children:[{code:"520602",name:"碧江区",region_level:3,children:[]},{code:"520603",name:"万山区",region_level:3,children:[]},{code:"520621",name:"江口县",region_level:3,children:[]},{code:"520622",name:"玉屏侗族自治县",region_level:3,children:[]},{code:"520623",name:"石阡县",region_level:3,children:[]},{code:"520624",name:"思南县",region_level:3,children:[]},{code:"520625",name:"印江土家族苗族自治县",region_level:3,children:[]},{code:"520626",name:"德江县",region_level:3,children:[]},{code:"520627",name:"沿河土家族自治县",region_level:3,children:[]},{code:"520628",name:"松桃苗族自治县",region_level:3,children:[]}]},{code:"5223",name:"黔西南布依族苗族自治州",region_level:2,children:[{code:"522301",name:"兴义市",region_level:3,children:[]},{code:"522302",name:"兴仁市",region_level:3,children:[]},{code:"522323",name:"普安县",region_level:3,children:[]},{code:"522324",name:"晴隆县",region_level:3,children:[]},{code:"522325",name:"贞丰县",region_level:3,children:[]},{code:"522326",name:"望谟县",region_level:3,children:[]},{code:"522327",name:"册亨县",region_level:3,children:[]},{code:"522328",name:"安龙县",region_level:3,children:[]}]},{code:"5226",name:"黔东南苗族侗族自治州",region_level:2,children:[{code:"522601",name:"凯里市",region_level:3,children:[]},{code:"522622",name:"黄平县",region_level:3,children:[]},{code:"522623",name:"施秉县",region_level:3,children:[]},{code:"522624",name:"三穗县",region_level:3,children:[]},{code:"522625",name:"镇远县",region_level:3,children:[]},{code:"522626",name:"岑巩县",region_level:3,children:[]},{code:"522627",name:"天柱县",region_level:3,children:[]},{code:"522628",name:"锦屏县",region_level:3,children:[]},{code:"522629",name:"剑河县",region_level:3,children:[]},{code:"522630",name:"台江县",region_level:3,children:[]},{code:"522631",name:"黎平县",region_level:3,children:[]},{code:"522632",name:"榕江县",region_level:3,children:[]},{code:"522633",name:"从江县",region_level:3,children:[]},{code:"522634",name:"雷山县",region_level:3,children:[]},{code:"522635",name:"麻江县",region_level:3,children:[]},{code:"522636",name:"丹寨县",region_level:3,children:[]}]},{code:"5227",name:"黔南布依族苗族自治州",region_level:2,children:[{code:"522701",name:"都匀市",region_level:3,children:[]},{code:"522702",name:"福泉市",region_level:3,children:[]},{code:"522722",name:"荔波县",region_level:3,children:[]},{code:"522723",name:"贵定县",region_level:3,children:[]},{code:"522725",name:"瓮安县",region_level:3,children:[]},{code:"522726",name:"独山县",region_level:3,children:[]},{code:"522727",name:"平塘县",region_level:3,children:[]},{code:"522728",name:"罗甸县",region_level:3,children:[]},{code:"522729",name:"长顺县",region_level:3,children:[]},{code:"522730",name:"龙里县",region_level:3,children:[]},{code:"522731",name:"惠水县",region_level:3,children:[]},{code:"522732",name:"三都水族自治县",region_level:3,children:[]}]}]},{code:"53",name:"云南省",region_level:1,children:[{code:"5301",name:"昆明市",region_level:2,children:[{code:"530102",name:"五华区",region_level:3,children:[]},{code:"530103",name:"盘龙区",region_level:3,children:[]},{code:"530111",name:"官渡区",region_level:3,children:[]},{code:"530112",name:"西山区",region_level:3,children:[]},{code:"530113",name:"东川区",region_level:3,children:[]},{code:"530114",name:"呈贡区",region_level:3,children:[]},{code:"530115",name:"晋宁区",region_level:3,children:[]},{code:"530124",name:"富民县",region_level:3,children:[]},{code:"530125",name:"宜良县",region_level:3,children:[]},{code:"530126",name:"石林彝族自治县",region_level:3,children:[]},{code:"530127",name:"嵩明县",region_level:3,children:[]},{code:"530128",name:"禄劝彝族苗族自治县",region_level:3,children:[]},{code:"530129",name:"寻甸回族彝族自治县",region_level:3,children:[]},{code:"530181",name:"安宁市",region_level:3,children:[]}]},{code:"5303",name:"曲靖市",region_level:2,children:[{code:"530302",name:"麒麟区",region_level:3,children:[]},{code:"530303",name:"沾益区",region_level:3,children:[]},{code:"530304",name:"马龙区",region_level:3,children:[]},{code:"530322",name:"陆良县",region_level:3,children:[]},{code:"530323",name:"师宗县",region_level:3,children:[]},{code:"530324",name:"罗平县",region_level:3,children:[]},{code:"530325",name:"富源县",region_level:3,children:[]},{code:"530326",name:"会泽县",region_level:3,children:[]},{code:"530381",name:"宣威市",region_level:3,children:[]}]},{code:"5304",name:"玉溪市",region_level:2,children:[{code:"530402",name:"红塔区",region_level:3,children:[]},{code:"530403",name:"江川区",region_level:3,children:[]},{code:"530423",name:"通海县",region_level:3,children:[]},{code:"530424",name:"华宁县",region_level:3,children:[]},{code:"530425",name:"易门县",region_level:3,children:[]},{code:"530426",name:"峨山彝族自治县",region_level:3,children:[]},{code:"530427",name:"新平彝族傣族自治县",region_level:3,children:[]},{code:"530428",name:"元江哈尼族彝族傣族自治县",region_level:3,children:[]},{code:"530481",name:"澄江市",region_level:3,children:[]}]},{code:"5305",name:"保山市",region_level:2,children:[{code:"530502",name:"隆阳区",region_level:3,children:[]},{code:"530521",name:"施甸县",region_level:3,children:[]},{code:"530523",name:"龙陵县",region_level:3,children:[]},{code:"530524",name:"昌宁县",region_level:3,children:[]},{code:"530581",name:"腾冲市",region_level:3,children:[]}]},{code:"5306",name:"昭通市",region_level:2,children:[{code:"530602",name:"昭阳区",region_level:3,children:[]},{code:"530621",name:"鲁甸县",region_level:3,children:[]},{code:"530622",name:"巧家县",region_level:3,children:[]},{code:"530623",name:"盐津县",region_level:3,children:[]},{code:"530624",name:"大关县",region_level:3,children:[]},{code:"530625",name:"永善县",region_level:3,children:[]},{code:"530626",name:"绥江县",region_level:3,children:[]},{code:"530627",name:"镇雄县",region_level:3,children:[]},{code:"530628",name:"彝良县",region_level:3,children:[]},{code:"530629",name:"威信县",region_level:3,children:[]},{code:"530681",name:"水富市",region_level:3,children:[]}]},{code:"5307",name:"丽江市",region_level:2,children:[{code:"530702",name:"古城区",region_level:3,children:[]},{code:"530721",name:"玉龙纳西族自治县",region_level:3,children:[]},{code:"530722",name:"永胜县",region_level:3,children:[]},{code:"530723",name:"华坪县",region_level:3,children:[]},{code:"530724",name:"宁蒗彝族自治县",region_level:3,children:[]}]},{code:"5308",name:"普洱市",region_level:2,children:[{code:"530802",name:"思茅区",region_level:3,children:[]},{code:"530821",name:"宁洱哈尼族彝族自治县",region_level:3,children:[]},{code:"530822",name:"墨江哈尼族自治县",region_level:3,children:[]},{code:"530823",name:"景东彝族自治县",region_level:3,children:[]},{code:"530824",name:"景谷傣族彝族自治县",region_level:3,children:[]},{code:"530825",name:"镇沅彝族哈尼族拉祜族自治县",region_level:3,children:[]},{code:"530826",name:"江城哈尼族彝族自治县",region_level:3,children:[]},{code:"530827",name:"孟连傣族拉祜族佤族自治县",region_level:3,children:[]},{code:"530828",name:"澜沧拉祜族自治县",region_level:3,children:[]},{code:"530829",name:"西盟佤族自治县",region_level:3,children:[]}]},{code:"5309",name:"临沧市",region_level:2,children:[{code:"530902",name:"临翔区",region_level:3,children:[]},{code:"530921",name:"凤庆县",region_level:3,children:[]},{code:"530922",name:"云县",region_level:3,children:[]},{code:"530923",name:"永德县",region_level:3,children:[]},{code:"530924",name:"镇康县",region_level:3,children:[]},{code:"530925",name:"双江拉祜族佤族布朗族傣族自治县",region_level:3,children:[]},{code:"530926",name:"耿马傣族佤族自治县",region_level:3,children:[]},{code:"530927",name:"沧源佤族自治县",region_level:3,children:[]}]},{code:"5323",name:"楚雄彝族自治州",region_level:2,children:[{code:"532301",name:"楚雄市",region_level:3,children:[]},{code:"532322",name:"双柏县",region_level:3,children:[]},{code:"532323",name:"牟定县",region_level:3,children:[]},{code:"532324",name:"南华县",region_level:3,children:[]},{code:"532325",name:"姚安县",region_level:3,children:[]},{code:"532326",name:"大姚县",region_level:3,children:[]},{code:"532327",name:"永仁县",region_level:3,children:[]},{code:"532328",name:"元谋县",region_level:3,children:[]},{code:"532329",name:"武定县",region_level:3,children:[]},{code:"532331",name:"禄丰县",region_level:3,children:[]}]},{code:"5325",name:"红河哈尼族彝族自治州",region_level:2,children:[{code:"532501",name:"个旧市",region_level:3,children:[]},{code:"532502",name:"开远市",region_level:3,children:[]},{code:"532503",name:"蒙自市",region_level:3,children:[]},{code:"532504",name:"弥勒市",region_level:3,children:[]},{code:"532523",name:"屏边苗族自治县",region_level:3,children:[]},{code:"532524",name:"建水县",region_level:3,children:[]},{code:"532525",name:"石屏县",region_level:3,children:[]},{code:"532527",name:"泸西县",region_level:3,children:[]},{code:"532528",name:"元阳县",region_level:3,children:[]},{code:"532529",name:"红河县",region_level:3,children:[]},{code:"532530",name:"金平苗族瑶族傣族自治县",region_level:3,children:[]},{code:"532531",name:"绿春县",region_level:3,children:[]},{code:"532532",name:"河口瑶族自治县",region_level:3,children:[]}]},{code:"5326",name:"文山壮族苗族自治州",region_level:2,children:[{code:"532601",name:"文山市",region_level:3,children:[]},{code:"532622",name:"砚山县",region_level:3,children:[]},{code:"532623",name:"西畴县",region_level:3,children:[]},{code:"532624",name:"麻栗坡县",region_level:3,children:[]},{code:"532625",name:"马关县",region_level:3,children:[]},{code:"532626",name:"丘北县",region_level:3,children:[]},{code:"532627",name:"广南县",region_level:3,children:[]},{code:"532628",name:"富宁县",region_level:3,children:[]}]},{code:"5328",name:"西双版纳傣族自治州",region_level:2,children:[{code:"532801",name:"景洪市",region_level:3,children:[]},{code:"532822",name:"勐海县",region_level:3,children:[]},{code:"532823",name:"勐腊县",region_level:3,children:[]}]},{code:"5329",name:"大理白族自治州",region_level:2,children:[{code:"532901",name:"大理市",region_level:3,children:[]},{code:"532922",name:"漾濞彝族自治县",region_level:3,children:[]},{code:"532923",name:"祥云县",region_level:3,children:[]},{code:"532924",name:"宾川县",region_level:3,children:[]},{code:"532925",name:"弥渡县",region_level:3,children:[]},{code:"532926",name:"南涧彝族自治县",region_level:3,children:[]},{code:"532927",name:"巍山彝族回族自治县",region_level:3,children:[]},{code:"532928",name:"永平县",region_level:3,children:[]},{code:"532929",name:"云龙县",region_level:3,children:[]},{code:"532930",name:"洱源县",region_level:3,children:[]},{code:"532931",name:"剑川县",region_level:3,children:[]},{code:"532932",name:"鹤庆县",region_level:3,children:[]}]},{code:"5331",name:"德宏傣族景颇族自治州",region_level:2,children:[{code:"533102",name:"瑞丽市",region_level:3,children:[]},{code:"533103",name:"芒市",region_level:3,children:[]},{code:"533122",name:"梁河县",region_level:3,children:[]},{code:"533123",name:"盈江县",region_level:3,children:[]},{code:"533124",name:"陇川县",region_level:3,children:[]}]},{code:"5333",name:"怒江傈僳族自治州",region_level:2,children:[{code:"533301",name:"泸水市",region_level:3,children:[]},{code:"533323",name:"福贡县",region_level:3,children:[]},{code:"533324",name:"贡山独龙族怒族自治县",region_level:3,children:[]},{code:"533325",name:"兰坪白族普米族自治县",region_level:3,children:[]}]},{code:"5334",name:"迪庆藏族自治州",region_level:2,children:[{code:"533401",name:"香格里拉市",region_level:3,children:[]},{code:"533422",name:"德钦县",region_level:3,children:[]},{code:"533423",name:"维西傈僳族自治县",region_level:3,children:[]}]}]},{code:"54",name:"西藏自治区",region_level:1,children:[{code:"5401",name:"拉萨市",region_level:2,children:[{code:"540102",name:"城关区",region_level:3,children:[]},{code:"540103",name:"堆龙德庆区",region_level:3,children:[]},{code:"540104",name:"达孜区",region_level:3,children:[]},{code:"540121",name:"林周县",region_level:3,children:[]},{code:"540122",name:"当雄县",region_level:3,children:[]},{code:"540123",name:"尼木县",region_level:3,children:[]},{code:"540124",name:"曲水县",region_level:3,children:[]},{code:"540127",name:"墨竹工卡县",region_level:3,children:[]}]},{code:"5402",name:"日喀则市",region_level:2,children:[{code:"540202",name:"桑珠孜区",region_level:3,children:[]},{code:"540221",name:"南木林县",region_level:3,children:[]},{code:"540222",name:"江孜县",region_level:3,children:[]},{code:"540223",name:"定日县",region_level:3,children:[]},{code:"540224",name:"萨迦县",region_level:3,children:[]},{code:"540225",name:"拉孜县",region_level:3,children:[]},{code:"540226",name:"昂仁县",region_level:3,children:[]},{code:"540227",name:"谢通门县",region_level:3,children:[]},{code:"540228",name:"白朗县",region_level:3,children:[]},{code:"540229",name:"仁布县",region_level:3,children:[]},{code:"540230",name:"康马县",region_level:3,children:[]},{code:"540231",name:"定结县",region_level:3,children:[]},{code:"540232",name:"仲巴县",region_level:3,children:[]},{code:"540233",name:"亚东县",region_level:3,children:[]},{code:"540234",name:"吉隆县",region_level:3,children:[]},{code:"540235",name:"聂拉木县",region_level:3,children:[]},{code:"540236",name:"萨嘎县",region_level:3,children:[]},{code:"540237",name:"岗巴县",region_level:3,children:[]}]},{code:"5403",name:"昌都市",region_level:2,children:[{code:"540302",name:"卡若区",region_level:3,children:[]},{code:"540321",name:"江达县",region_level:3,children:[]},{code:"540322",name:"贡觉县",region_level:3,children:[]},{code:"540323",name:"类乌齐县",region_level:3,children:[]},{code:"540324",name:"丁青县",region_level:3,children:[]},{code:"540325",name:"察雅县",region_level:3,children:[]},{code:"540326",name:"八宿县",region_level:3,children:[]},{code:"540327",name:"左贡县",region_level:3,children:[]},{code:"540328",name:"芒康县",region_level:3,children:[]},{code:"540329",name:"洛隆县",region_level:3,children:[]},{code:"540330",name:"边坝县",region_level:3,children:[]}]},{code:"5404",name:"林芝市",region_level:2,children:[{code:"540402",name:"巴宜区",region_level:3,children:[]},{code:"540421",name:"工布江达县",region_level:3,children:[]},{code:"540422",name:"米林县",region_level:3,children:[]},{code:"540423",name:"墨脱县",region_level:3,children:[]},{code:"540424",name:"波密县",region_level:3,children:[]},{code:"540425",name:"察隅县",region_level:3,children:[]},{code:"540426",name:"朗县",region_level:3,children:[]}]},{code:"5405",name:"山南市",region_level:2,children:[{code:"540502",name:"乃东区",region_level:3,children:[]},{code:"540521",name:"扎囊县",region_level:3,children:[]},{code:"540522",name:"贡嘎县",region_level:3,children:[]},{code:"540523",name:"桑日县",region_level:3,children:[]},{code:"540524",name:"琼结县",region_level:3,children:[]},{code:"540525",name:"曲松县",region_level:3,children:[]},{code:"540526",name:"措美县",region_level:3,children:[]},{code:"540527",name:"洛扎县",region_level:3,children:[]},{code:"540528",name:"加查县",region_level:3,children:[]},{code:"540529",name:"隆子县",region_level:3,children:[]},{code:"540530",name:"错那县",region_level:3,children:[]},{code:"540531",name:"浪卡子县",region_level:3,children:[]}]},{code:"5406",name:"那曲市",region_level:2,children:[{code:"540602",name:"色尼区",region_level:3,children:[]},{code:"540621",name:"嘉黎县",region_level:3,children:[]},{code:"540622",name:"比如县",region_level:3,children:[]},{code:"540623",name:"聂荣县",region_level:3,children:[]},{code:"540624",name:"安多县",region_level:3,children:[]},{code:"540625",name:"申扎县",region_level:3,children:[]},{code:"540626",name:"索县",region_level:3,children:[]},{code:"540627",name:"班戈县",region_level:3,children:[]},{code:"540628",name:"巴青县",region_level:3,children:[]},{code:"540629",name:"尼玛县",region_level:3,children:[]},{code:"540630",name:"双湖县",region_level:3,children:[]}]},{code:"5425",name:"阿里地区",region_level:2,children:[{code:"542521",name:"普兰县",region_level:3,children:[]},{code:"542522",name:"札达县",region_level:3,children:[]},{code:"542523",name:"噶尔县",region_level:3,children:[]},{code:"542524",name:"日土县",region_level:3,children:[]},{code:"542525",name:"革吉县",region_level:3,children:[]},{code:"542526",name:"改则县",region_level:3,children:[]},{code:"542527",name:"措勤县",region_level:3,children:[]}]}]},{code:"61",name:"陕西省",region_level:1,children:[{code:"6101",name:"西安市",region_level:2,children:[{code:"610102",name:"新城区",region_level:3,children:[]},{code:"610103",name:"碑林区",region_level:3,children:[]},{code:"610104",name:"莲湖区",region_level:3,children:[]},{code:"610111",name:"灞桥区",region_level:3,children:[]},{code:"610112",name:"未央区",region_level:3,children:[]},{code:"610113",name:"雁塔区",region_level:3,children:[]},{code:"610114",name:"阎良区",region_level:3,children:[]},{code:"610115",name:"临潼区",region_level:3,children:[]},{code:"610116",name:"长安区",region_level:3,children:[]},{code:"610117",name:"高陵区",region_level:3,children:[]},{code:"610118",name:"鄠邑区",region_level:3,children:[]},{code:"610122",name:"蓝田县",region_level:3,children:[]},{code:"610124",name:"周至县",region_level:3,children:[]}]},{code:"6102",name:"铜川市",region_level:2,children:[{code:"610202",name:"王益区",region_level:3,children:[]},{code:"610203",name:"印台区",region_level:3,children:[]},{code:"610204",name:"耀州区",region_level:3,children:[]},{code:"610222",name:"宜君县",region_level:3,children:[]}]},{code:"6103",name:"宝鸡市",region_level:2,children:[{code:"610302",name:"渭滨区",region_level:3,children:[]},{code:"610303",name:"金台区",region_level:3,children:[]},{code:"610304",name:"陈仓区",region_level:3,children:[]},{code:"610322",name:"凤翔县",region_level:3,children:[]},{code:"610323",name:"岐山县",region_level:3,children:[]},{code:"610324",name:"扶风县",region_level:3,children:[]},{code:"610326",name:"眉县",region_level:3,children:[]},{code:"610327",name:"陇县",region_level:3,children:[]},{code:"610328",name:"千阳县",region_level:3,children:[]},{code:"610329",name:"麟游县",region_level:3,children:[]},{code:"610330",name:"凤县",region_level:3,children:[]},{code:"610331",name:"太白县",region_level:3,children:[]}]},{code:"6104",name:"咸阳市",region_level:2,children:[{code:"610402",name:"秦都区",region_level:3,children:[]},{code:"610403",name:"杨陵区",region_level:3,children:[]},{code:"610404",name:"渭城区",region_level:3,children:[]},{code:"610422",name:"三原县",region_level:3,children:[]},{code:"610423",name:"泾阳县",region_level:3,children:[]},{code:"610424",name:"乾县",region_level:3,children:[]},{code:"610425",name:"礼泉县",region_level:3,children:[]},{code:"610426",name:"永寿县",region_level:3,children:[]},{code:"610428",name:"长武县",region_level:3,children:[]},{code:"610429",name:"旬邑县",region_level:3,children:[]},{code:"610430",name:"淳化县",region_level:3,children:[]},{code:"610431",name:"武功县",region_level:3,children:[]},{code:"610481",name:"兴平市",region_level:3,children:[]},{code:"610482",name:"彬州市",region_level:3,children:[]}]},{code:"6105",name:"渭南市",region_level:2,children:[{code:"610502",name:"临渭区",region_level:3,children:[]},{code:"610503",name:"华州区",region_level:3,children:[]},{code:"610522",name:"潼关县",region_level:3,children:[]},{code:"610523",name:"大荔县",region_level:3,children:[]},{code:"610524",name:"合阳县",region_level:3,children:[]},{code:"610525",name:"澄城县",region_level:3,children:[]},{code:"610526",name:"蒲城县",region_level:3,children:[]},{code:"610527",name:"白水县",region_level:3,children:[]},{code:"610528",name:"富平县",region_level:3,children:[]},{code:"610581",name:"韩城市",region_level:3,children:[]},{code:"610582",name:"华阴市",region_level:3,children:[]}]},{code:"6106",name:"延安市",region_level:2,children:[{code:"610602",name:"宝塔区",region_level:3,children:[]},{code:"610603",name:"安塞区",region_level:3,children:[]},{code:"610621",name:"延长县",region_level:3,children:[]},{code:"610622",name:"延川县",region_level:3,children:[]},{code:"610625",name:"志丹县",region_level:3,children:[]},{code:"610626",name:"吴起县",region_level:3,children:[]},{code:"610627",name:"甘泉县",region_level:3,children:[]},{code:"610628",name:"富县",region_level:3,children:[]},{code:"610629",name:"洛川县",region_level:3,children:[]},{code:"610630",name:"宜川县",region_level:3,children:[]},{code:"610631",name:"黄龙县",region_level:3,children:[]},{code:"610632",name:"黄陵县",region_level:3,children:[]},{code:"610681",name:"子长市",region_level:3,children:[]}]},{code:"6107",name:"汉中市",region_level:2,children:[{code:"610702",name:"汉台区",region_level:3,children:[]},{code:"610703",name:"南郑区",region_level:3,children:[]},{code:"610722",name:"城固县",region_level:3,children:[]},{code:"610723",name:"洋县",region_level:3,children:[]},{code:"610724",name:"西乡县",region_level:3,children:[]},{code:"610725",name:"勉县",region_level:3,children:[]},{code:"610726",name:"宁强县",region_level:3,children:[]},{code:"610727",name:"略阳县",region_level:3,children:[]},{code:"610728",name:"镇巴县",region_level:3,children:[]},{code:"610729",name:"留坝县",region_level:3,children:[]},{code:"610730",name:"佛坪县",region_level:3,children:[]}]},{code:"6108",name:"榆林市",region_level:2,children:[{code:"610802",name:"榆阳区",region_level:3,children:[]},{code:"610803",name:"横山区",region_level:3,children:[]},{code:"610822",name:"府谷县",region_level:3,children:[]},{code:"610824",name:"靖边县",region_level:3,children:[]},{code:"610825",name:"定边县",region_level:3,children:[]},{code:"610826",name:"绥德县",region_level:3,children:[]},{code:"610827",name:"米脂县",region_level:3,children:[]},{code:"610828",name:"佳县",region_level:3,children:[]},{code:"610829",name:"吴堡县",region_level:3,children:[]},{code:"610830",name:"清涧县",region_level:3,children:[]},{code:"610831",name:"子洲县",region_level:3,children:[]},{code:"610881",name:"神木市",region_level:3,children:[]}]},{code:"6109",name:"安康市",region_level:2,children:[{code:"610902",name:"汉滨区",region_level:3,children:[]},{code:"610921",name:"汉阴县",region_level:3,children:[]},{code:"610922",name:"石泉县",region_level:3,children:[]},{code:"610923",name:"宁陕县",region_level:3,children:[]},{code:"610924",name:"紫阳县",region_level:3,children:[]},{code:"610925",name:"岚皋县",region_level:3,children:[]},{code:"610926",name:"平利县",region_level:3,children:[]},{code:"610927",name:"镇坪县",region_level:3,children:[]},{code:"610928",name:"旬阳县",region_level:3,children:[]},{code:"610929",name:"白河县",region_level:3,children:[]}]},{code:"6110",name:"商洛市",region_level:2,children:[{code:"611002",name:"商州区",region_level:3,children:[]},{code:"611021",name:"洛南县",region_level:3,children:[]},{code:"611022",name:"丹凤县",region_level:3,children:[]},{code:"611023",name:"商南县",region_level:3,children:[]},{code:"611024",name:"山阳县",region_level:3,children:[]},{code:"611025",name:"镇安县",region_level:3,children:[]},{code:"611026",name:"柞水县",region_level:3,children:[]}]}]},{code:"62",name:"甘肃省",region_level:1,children:[{code:"6201",name:"兰州市",region_level:2,children:[{code:"620102",name:"城关区",region_level:3,children:[]},{code:"620103",name:"七里河区",region_level:3,children:[]},{code:"620104",name:"西固区",region_level:3,children:[]},{code:"620105",name:"安宁区",region_level:3,children:[]},{code:"620111",name:"红古区",region_level:3,children:[]},{code:"620121",name:"永登县",region_level:3,children:[]},{code:"620122",name:"皋兰县",region_level:3,children:[]},{code:"620123",name:"榆中县",region_level:3,children:[]}]},{code:"6202",name:"嘉峪关市",region_level:2,children:[{code:"620200",name:"嘉峪关市",region_level:3,children:[]}]},{code:"6203",name:"金昌市",region_level:2,children:[{code:"620302",name:"金川区",region_level:3,children:[]},{code:"620321",name:"永昌县",region_level:3,children:[]}]},{code:"6204",name:"白银市",region_level:2,children:[{code:"620402",name:"白银区",region_level:3,children:[]},{code:"620403",name:"平川区",region_level:3,children:[]},{code:"620421",name:"靖远县",region_level:3,children:[]},{code:"620422",name:"会宁县",region_level:3,children:[]},{code:"620423",name:"景泰县",region_level:3,children:[]}]},{code:"6205",name:"天水市",region_level:2,children:[{code:"620502",name:"秦州区",region_level:3,children:[]},{code:"620503",name:"麦积区",region_level:3,children:[]},{code:"620521",name:"清水县",region_level:3,children:[]},{code:"620522",name:"秦安县",region_level:3,children:[]},{code:"620523",name:"甘谷县",region_level:3,children:[]},{code:"620524",name:"武山县",region_level:3,children:[]},{code:"620525",name:"张家川回族自治县",region_level:3,children:[]}]},{code:"6206",name:"武威市",region_level:2,children:[{code:"620602",name:"凉州区",region_level:3,children:[]},{code:"620621",name:"民勤县",region_level:3,children:[]},{code:"620622",name:"古浪县",region_level:3,children:[]},{code:"620623",name:"天祝藏族自治县",region_level:3,children:[]}]},{code:"6207",name:"张掖市",region_level:2,children:[{code:"620702",name:"甘州区",region_level:3,children:[]},{code:"620721",name:"肃南裕固族自治县",region_level:3,children:[]},{code:"620722",name:"民乐县",region_level:3,children:[]},{code:"620723",name:"临泽县",region_level:3,children:[]},{code:"620724",name:"高台县",region_level:3,children:[]},{code:"620725",name:"山丹县",region_level:3,children:[]}]},{code:"6208",name:"平凉市",region_level:2,children:[{code:"620802",name:"崆峒区",region_level:3,children:[]},{code:"620821",name:"泾川县",region_level:3,children:[]},{code:"620822",name:"灵台县",region_level:3,children:[]},{code:"620823",name:"崇信县",region_level:3,children:[]},{code:"620825",name:"庄浪县",region_level:3,children:[]},{code:"620826",name:"静宁县",region_level:3,children:[]},{code:"620881",name:"华亭市",region_level:3,children:[]}]},{code:"6209",name:"酒泉市",region_level:2,children:[{code:"620902",name:"肃州区",region_level:3,children:[]},{code:"620921",name:"金塔县",region_level:3,children:[]},{code:"620922",name:"瓜州县",region_level:3,children:[]},{code:"620923",name:"肃北蒙古族自治县",region_level:3,children:[]},{code:"620924",name:"阿克塞哈萨克族自治县",region_level:3,children:[]},{code:"620981",name:"玉门市",region_level:3,children:[]},{code:"620982",name:"敦煌市",region_level:3,children:[]}]},{code:"6210",name:"庆阳市",region_level:2,children:[{code:"621002",name:"西峰区",region_level:3,children:[]},{code:"621021",name:"庆城县",region_level:3,children:[]},{code:"621022",name:"环县",region_level:3,children:[]},{code:"621023",name:"华池县",region_level:3,children:[]},{code:"621024",name:"合水县",region_level:3,children:[]},{code:"621025",name:"正宁县",region_level:3,children:[]},{code:"621026",name:"宁县",region_level:3,children:[]},{code:"621027",name:"镇原县",region_level:3,children:[]}]},{code:"6211",name:"定西市",region_level:2,children:[{code:"621102",name:"安定区",region_level:3,children:[]},{code:"621121",name:"通渭县",region_level:3,children:[]},{code:"621122",name:"陇西县",region_level:3,children:[]},{code:"621123",name:"渭源县",region_level:3,children:[]},{code:"621124",name:"临洮县",region_level:3,children:[]},{code:"621125",name:"漳县",region_level:3,children:[]},{code:"621126",name:"岷县",region_level:3,children:[]}]},{code:"6212",name:"陇南市",region_level:2,children:[{code:"621202",name:"武都区",region_level:3,children:[]},{code:"621221",name:"成县",region_level:3,children:[]},{code:"621222",name:"文县",region_level:3,children:[]},{code:"621223",name:"宕昌县",region_level:3,children:[]},{code:"621224",name:"康县",region_level:3,children:[]},{code:"621225",name:"西和县",region_level:3,children:[]},{code:"621226",name:"礼县",region_level:3,children:[]},{code:"621227",name:"徽县",region_level:3,children:[]},{code:"621228",name:"两当县",region_level:3,children:[]}]},{code:"6229",name:"临夏回族自治州",region_level:2,children:[{code:"622901",name:"临夏市",region_level:3,children:[]},{code:"622921",name:"临夏县",region_level:3,children:[]},{code:"622922",name:"康乐县",region_level:3,children:[]},{code:"622923",name:"永靖县",region_level:3,children:[]},{code:"622924",name:"广河县",region_level:3,children:[]},{code:"622925",name:"和政县",region_level:3,children:[]},{code:"622926",name:"东乡族自治县",region_level:3,children:[]},{code:"622927",name:"积石山保安族东乡族撒拉族自治县",region_level:3,children:[]}]},{code:"6230",name:"甘南藏族自治州",region_level:2,children:[{code:"623001",name:"合作市",region_level:3,children:[]},{code:"623021",name:"临潭县",region_level:3,children:[]},{code:"623022",name:"卓尼县",region_level:3,children:[]},{code:"623023",name:"舟曲县",region_level:3,children:[]},{code:"623024",name:"迭部县",region_level:3,children:[]},{code:"623025",name:"玛曲县",region_level:3,children:[]},{code:"623026",name:"碌曲县",region_level:3,children:[]},{code:"623027",name:"夏河县",region_level:3,children:[]}]}]},{code:"63",name:"青海省",region_level:1,children:[{code:"6301",name:"西宁市",region_level:2,children:[{code:"630102",name:"城东区",region_level:3,children:[]},{code:"630103",name:"城中区",region_level:3,children:[]},{code:"630104",name:"城西区",region_level:3,children:[]},{code:"630105",name:"城北区",region_level:3,children:[]},{code:"630106",name:"湟中区",region_level:3,children:[]},{code:"630121",name:"大通回族土族自治县",region_level:3,children:[]},{code:"630123",name:"湟源县",region_level:3,children:[]}]},{code:"6302",name:"海东市",region_level:2,children:[{code:"630202",name:"乐都区",region_level:3,children:[]},{code:"630203",name:"平安区",region_level:3,children:[]},{code:"630222",name:"民和回族土族自治县",region_level:3,children:[]},{code:"630223",name:"互助土族自治县",region_level:3,children:[]},{code:"630224",name:"化隆回族自治县",region_level:3,children:[]},{code:"630225",name:"循化撒拉族自治县",region_level:3,children:[]}]},{code:"6322",name:"海北藏族自治州",region_level:2,children:[{code:"632221",name:"门源回族自治县",region_level:3,children:[]},{code:"632222",name:"祁连县",region_level:3,children:[]},{code:"632223",name:"海晏县",region_level:3,children:[]},{code:"632224",name:"刚察县",region_level:3,children:[]}]},{code:"6323",name:"黄南藏族自治州",region_level:2,children:[{code:"632321",name:"同仁县",region_level:3,children:[]},{code:"632322",name:"尖扎县",region_level:3,children:[]},{code:"632323",name:"泽库县",region_level:3,children:[]},{code:"632324",name:"河南蒙古族自治县",region_level:3,children:[]}]},{code:"6325",name:"海南藏族自治州",region_level:2,children:[{code:"632521",name:"共和县",region_level:3,children:[]},{code:"632522",name:"同德县",region_level:3,children:[]},{code:"632523",name:"贵德县",region_level:3,children:[]},{code:"632524",name:"兴海县",region_level:3,children:[]},{code:"632525",name:"贵南县",region_level:3,children:[]}]},{code:"6326",name:"果洛藏族自治州",region_level:2,children:[{code:"632621",name:"玛沁县",region_level:3,children:[]},{code:"632622",name:"班玛县",region_level:3,children:[]},{code:"632623",name:"甘德县",region_level:3,children:[]},{code:"632624",name:"达日县",region_level:3,children:[]},{code:"632625",name:"久治县",region_level:3,children:[]},{code:"632626",name:"玛多县",region_level:3,children:[]}]},{code:"6327",name:"玉树藏族自治州",region_level:2,children:[{code:"632701",name:"玉树市",region_level:3,children:[]},{code:"632722",name:"杂多县",region_level:3,children:[]},{code:"632723",name:"称多县",region_level:3,children:[]},{code:"632724",name:"治多县",region_level:3,children:[]},{code:"632725",name:"囊谦县",region_level:3,children:[]},{code:"632726",name:"曲麻莱县",region_level:3,children:[]}]},{code:"6328",name:"海西蒙古族藏族自治州",region_level:2,children:[{code:"632801",name:"格尔木市",region_level:3,children:[]},{code:"632802",name:"德令哈市",region_level:3,children:[]},{code:"632803",name:"茫崖市",region_level:3,children:[]},{code:"632821",name:"乌兰县",region_level:3,children:[]},{code:"632822",name:"都兰县",region_level:3,children:[]},{code:"632823",name:"天峻县",region_level:3,children:[]}]}]},{code:"64",name:"宁夏回族自治区",region_level:1,children:[{code:"6401",name:"银川市",region_level:2,children:[{code:"640104",name:"兴庆区",region_level:3,children:[]},{code:"640105",name:"西夏区",region_level:3,children:[]},{code:"640106",name:"金凤区",region_level:3,children:[]},{code:"640121",name:"永宁县",region_level:3,children:[]},{code:"640122",name:"贺兰县",region_level:3,children:[]},{code:"640181",name:"灵武市",region_level:3,children:[]}]},{code:"6402",name:"石嘴山市",region_level:2,children:[{code:"640202",name:"大武口区",region_level:3,children:[]},{code:"640205",name:"惠农区",region_level:3,children:[]},{code:"640221",name:"平罗县",region_level:3,children:[]}]},{code:"6403",name:"吴忠市",region_level:2,children:[{code:"640302",name:"利通区",region_level:3,children:[]},{code:"640303",name:"红寺堡区",region_level:3,children:[]},{code:"640323",name:"盐池县",region_level:3,children:[]},{code:"640324",name:"同心县",region_level:3,children:[]},{code:"640381",name:"青铜峡市",region_level:3,children:[]}]},{code:"6404",name:"固原市",region_level:2,children:[{code:"640402",name:"原州区",region_level:3,children:[]},{code:"640422",name:"西吉县",region_level:3,children:[]},{code:"640423",name:"隆德县",region_level:3,children:[]},{code:"640424",name:"泾源县",region_level:3,children:[]},{code:"640425",name:"彭阳县",region_level:3,children:[]}]},{code:"6405",name:"中卫市",region_level:2,children:[{code:"640502",name:"沙坡头区",region_level:3,children:[]},{code:"640521",name:"中宁县",region_level:3,children:[]},{code:"640522",name:"海原县",region_level:3,children:[]}]}]},{code:"65",name:"新疆维吾尔自治区",region_level:1,children:[{code:"6501",name:"乌鲁木齐市",region_level:2,children:[{code:"650102",name:"天山区",region_level:3,children:[]},{code:"650103",name:"沙依巴克区",region_level:3,children:[]},{code:"650104",name:"新市区",region_level:3,children:[]},{code:"650105",name:"水磨沟区",region_level:3,children:[]},{code:"650106",name:"头屯河区",region_level:3,children:[]},{code:"650107",name:"达坂城区",region_level:3,children:[]},{code:"650109",name:"米东区",region_level:3,children:[]},{code:"650121",name:"乌鲁木齐县",region_level:3,children:[]}]},{code:"6502",name:"克拉玛依市",region_level:2,children:[{code:"650202",name:"独山子区",region_level:3,children:[]},{code:"650203",name:"克拉玛依区",region_level:3,children:[]},{code:"650204",name:"白碱滩区",region_level:3,children:[]},{code:"650205",name:"乌尔禾区",region_level:3,children:[]}]},{code:"6504",name:"吐鲁番市",region_level:2,children:[{code:"650402",name:"高昌区",region_level:3,children:[]},{code:"650421",name:"鄯善县",region_level:3,children:[]},{code:"650422",name:"托克逊县",region_level:3,children:[]}]},{code:"6505",name:"哈密市",region_level:2,children:[{code:"650502",name:"伊州区",region_level:3,children:[]},{code:"650521",name:"巴里坤哈萨克自治县",region_level:3,children:[]},{code:"650522",name:"伊吾县",region_level:3,children:[]}]},{code:"6523",name:"昌吉回族自治州",region_level:2,children:[{code:"652301",name:"昌吉市",region_level:3,children:[]},{code:"652302",name:"阜康市",region_level:3,children:[]},{code:"652323",name:"呼图壁县",region_level:3,children:[]},{code:"652324",name:"玛纳斯县",region_level:3,children:[]},{code:"652325",name:"奇台县",region_level:3,children:[]},{code:"652327",name:"吉木萨尔县",region_level:3,children:[]},{code:"652328",name:"木垒哈萨克自治县",region_level:3,children:[]}]},{code:"6527",name:"博尔塔拉蒙古自治州",region_level:2,children:[{code:"652701",name:"博乐市",region_level:3,children:[]},{code:"652702",name:"阿拉山口市",region_level:3,children:[]},{code:"652722",name:"精河县",region_level:3,children:[]},{code:"652723",name:"温泉县",region_level:3,children:[]}]},{code:"6528",name:"巴音郭楞蒙古自治州",region_level:2,children:[{code:"652801",name:"库尔勒市",region_level:3,children:[]},{code:"652822",name:"轮台县",region_level:3,children:[]},{code:"652823",name:"尉犁县",region_level:3,children:[]},{code:"652824",name:"若羌县",region_level:3,children:[]},{code:"652825",name:"且末县",region_level:3,children:[]},{code:"652826",name:"焉耆回族自治县",region_level:3,children:[]},{code:"652827",name:"和静县",region_level:3,children:[]},{code:"652828",name:"和硕县",region_level:3,children:[]},{code:"652829",name:"博湖县",region_level:3,children:[]}]},{code:"6529",name:"阿克苏地区",region_level:2,children:[{code:"652901",name:"阿克苏市",region_level:3,children:[]},{code:"652902",name:"库车市",region_level:3,children:[]},{code:"652922",name:"温宿县",region_level:3,children:[]},{code:"652924",name:"沙雅县",region_level:3,children:[]},{code:"652925",name:"新和县",region_level:3,children:[]},{code:"652926",name:"拜城县",region_level:3,children:[]},{code:"652927",name:"乌什县",region_level:3,children:[]},{code:"652928",name:"阿瓦提县",region_level:3,children:[]},{code:"652929",name:"柯坪县",region_level:3,children:[]}]},{code:"6530",name:"克孜勒苏柯尔克孜自治州",region_level:2,children:[{code:"653001",name:"阿图什市",region_level:3,children:[]},{code:"653022",name:"阿克陶县",region_level:3,children:[]},{code:"653023",name:"阿合奇县",region_level:3,children:[]},{code:"653024",name:"乌恰县",region_level:3,children:[]}]},{code:"6531",name:"喀什地区",region_level:2,children:[{code:"653101",name:"喀什市",region_level:3,children:[]},{code:"653121",name:"疏附县",region_level:3,children:[]},{code:"653122",name:"疏勒县",region_level:3,children:[]},{code:"653123",name:"英吉沙县",region_level:3,children:[]},{code:"653124",name:"泽普县",region_level:3,children:[]},{code:"653125",name:"莎车县",region_level:3,children:[]},{code:"653126",name:"叶城县",region_level:3,children:[]},{code:"653127",name:"麦盖提县",region_level:3,children:[]},{code:"653128",name:"岳普湖县",region_level:3,children:[]},{code:"653129",name:"伽师县",region_level:3,children:[]},{code:"653130",name:"巴楚县",region_level:3,children:[]},{code:"653131",name:"塔什库尔干塔吉克自治县",region_level:3,children:[]}]},{code:"6532",name:"和田地区",region_level:2,children:[{code:"653201",name:"和田市",region_level:3,children:[]},{code:"653221",name:"和田县",region_level:3,children:[]},{code:"653222",name:"墨玉县",region_level:3,children:[]},{code:"653223",name:"皮山县",region_level:3,children:[]},{code:"653224",name:"洛浦县",region_level:3,children:[]},{code:"653225",name:"策勒县",region_level:3,children:[]},{code:"653226",name:"于田县",region_level:3,children:[]},{code:"653227",name:"民丰县",region_level:3,children:[]}]},{code:"6540",name:"伊犁哈萨克自治州",region_level:2,children:[{code:"654002",name:"伊宁市",region_level:3,children:[]},{code:"654003",name:"奎屯市",region_level:3,children:[]},{code:"654004",name:"霍尔果斯市",region_level:3,children:[]},{code:"654021",name:"伊宁县",region_level:3,children:[]},{code:"654022",name:"察布查尔锡伯自治县",region_level:3,children:[]},{code:"654023",name:"霍城县",region_level:3,children:[]},{code:"654024",name:"巩留县",region_level:3,children:[]},{code:"654025",name:"新源县",region_level:3,children:[]},{code:"654026",name:"昭苏县",region_level:3,children:[]},{code:"654027",name:"特克斯县",region_level:3,children:[]},{code:"654028",name:"尼勒克县",region_level:3,children:[]}]},{code:"6542",name:"塔城地区",region_level:2,children:[{code:"654201",name:"塔城市",region_level:3,children:[]},{code:"654202",name:"乌苏市",region_level:3,children:[]},{code:"654221",name:"额敏县",region_level:3,children:[]},{code:"654223",name:"沙湾县",region_level:3,children:[]},{code:"654224",name:"托里县",region_level:3,children:[]},{code:"654225",name:"裕民县",region_level:3,children:[]},{code:"654226",name:"和布克赛尔蒙古自治县",region_level:3,children:[]}]},{code:"6543",name:"阿勒泰地区",region_level:2,children:[{code:"654301",name:"阿勒泰市",region_level:3,children:[]},{code:"654321",name:"布尔津县",region_level:3,children:[]},{code:"654322",name:"富蕴县",region_level:3,children:[]},{code:"654323",name:"福海县",region_level:3,children:[]},{code:"654324",name:"哈巴河县",region_level:3,children:[]},{code:"654325",name:"青河县",region_level:3,children:[]},{code:"654326",name:"吉木乃县",region_level:3,children:[]}]},{code:"6590",name:"自治区直辖县级行政区",region_level:2,children:[{code:"659001",name:"石河子市",region_level:3,children:[]},{code:"659002",name:"阿拉尔市",region_level:3,children:[]},{code:"659003",name:"图木舒克市",region_level:3,children:[]},{code:"659004",name:"五家渠市",region_level:3,children:[]},{code:"659005",name:"北屯市",region_level:3,children:[]},{code:"659006",name:"铁门关市",region_level:3,children:[]},{code:"659007",name:"双河市",region_level:3,children:[]},{code:"659008",name:"可克达拉市",region_level:3,children:[]},{code:"659009",name:"昆玉市",region_level:3,children:[]},{code:"659010",name:"胡杨河市",region_level:3,children:[]}]}]},{code:"71",name:"台湾省",region_level:1,children:[]},{code:"81",name:"香港特别行政区",region_level:1,children:[]},{code:"82",name:"澳门特别行政区",region_level:1,children:[]}]}];function useMap(){const te=async(ne,re)=>{let oe=String(ne.code).padEnd(6,"0");const ie=G(vue.unref(city)[0],oe),le=await U(`${oe}${(ie==null?void 0:ie.region_level)!=3?"_full":""}`);core.registerMap(oe,le),ne.geo.map=oe;const ae=ne.dataset.source,se=[];((le==null?void 0:le.features)??[]).forEach(ue=>{const de=(ae.find(he=>he[ne.dataShow.x]==ue.properties.name)??{})[ne.dataShow.y]??0,fe=ue.properties.center?[...ue.properties.center,de]:ue.properties.center,ve={name:ue.properties.name,value:fe,code:ue.properties.adcode,data:de};Number(de)<=0&&(ve.symbolSize=0),se.push(ve)}),ne.series=[{type:"map",map:oe,roam:!0,geoIndex:0,select:!1,data:se},{...ne.style.style1,data:se},{...ne.style.style2,data:se}],re&&re()},U=async ne=>{const re=`https://geo.datav.aliyun.com/areas_v3/bound/${ne}.json`;return await fetch(re).then(ie=>ie.json())};function G(ne,re){var oe;if(String(ne.code).padEnd(6,"0")==re)return ne;for(let ie=0;ie<((oe=ne==null?void 0:ne.children)==null?void 0:oe.length);ie+=1){const le=ne.children[ie],ae=G(le,re);if(ae)return ae}return null}return{init:te,city,mapConfig:{code:"100000",tooltip:{show:!0},dataShow:{x:"",y:""},custom:{prefix:"",suffix:"",toFixed:0},style:{style1:{name:"散点",type:"scatter",coordinateSystem:"geo",symbol:"circle",itemStyle:{color:"#05C3F9"}},style2:{name:"点",type:"scatter",coordinateSystem:"geo",symbol:"pin",symbolSize:20,itemStyle:{color:"#F62157"},label:{show:!0,formatter:ne=>ne.data.data||"",color:"#fff",fontSize:9},zlevel:6}},geo:{map:"",roam:!0,zoom:1.2,label:{show:!0,fontSize:12,color:"#000"},emphasis:{itemStyle:{areaColor:"#389BB7",borderColor:"#389BB7",borderWidth:0},label:{fontSize:14,color:"#fff"}}},visualMap:{show:!0,left:"left",top:"bottom",text:["高","低"],min:0,max:200,calculable:!0,seriesIndex:[0],inRange:{color:["#00467F","#A5CC82"]}},dataset:{},series:[]}}}function useCustomChart(){const{proxy:te}=vue.getCurrentInstance(),U=vue.ref({}),G=vue.ref(""),ee=vue.ref(null),ne=vue.ref(null),re=vue.ref(""),oe=async(ce,de,fe)=>await new Promise(async ve=>{var ye,be;const he=screenDesignMainStore(),pe=JSON.parse(JSON.stringify(((ye=vue.unref(ee))==null?void 0:ye.params)??((be=he.getChartData)==null?void 0:be.params))),ge=JSON.parse((pe==null?void 0:pe.groupArgsJson)??"[]");let me=JSON.parse((pe==null?void 0:pe.aggArgsJson)??"[]");if(de){const xe=ge.find(Ce=>Ce.comment==de);xe&&(pe.groupArgsJson=JSON.stringify([xe]))}if(["2"].includes(ce)&&fe){const xe=me.find(Ce=>Ce.showLabel==fe);xe&&(pe.aggArgsJson=JSON.stringify([xe]))}["8"].includes(ce)||(pe.aggArgsJson=JSON.stringify(me.filter(xe=>xe.aggType!="other")));const _e=await te.$baseHttp.post("/api/ace-data-center/model-indicators/exec",pe);ne.value=_e.data.var,re.value=_e.data.modelIndicatorsName,ve(_e.data.page.records)}),ie=async(ce,de,fe)=>await new Promise(async ve=>{let he=de;const pe=screenDesignMainStore();if(ce){const ge=await te.$baseHttp.get(`/api/ace-data-center/model-indicators-echarts/detail?id=${ce}`);if(!ge)return;fe=chartJsonFormat(ge.data.echartsConfig),he=ge.data.echartsType}G.value=he,setTimeout(async()=>{var ge,me,_e,ye,be,xe,Ce,$e,Ee,Ve,Ne,Se,Pe,we,ke,Te,De,Ie,Me,Be,Ae,ze,Re,Fe,je,Oe,Le,Ge,qe,Ue,We,Ye,Je,Xe,Ke,He,Qe,Ze,et,at,ct,st,it,lt,pt,mt,bt,xt,wt;switch(he){case"1":{const{lineConfig:ft,customSeriesData:ut,init:ht}=useLineCommon();ut.value=((ge=vue.unref(fe))==null?void 0:ge.customSeriesData)??{},U.value=fe??chartJsonFormat(chartJsonToStringFormat(ft)),delete U.value.legend.icon,vue.unref(U).dataShow.x=((me=fe==null?void 0:fe.dataShow)==null?void 0:me.x)??((ye=(_e=pe.getChartData)==null?void 0:_e.x[0])==null?void 0:ye.comment),vue.unref(U).dataShow.y=(((be=vue.unref(ee))==null?void 0:be.y)??((xe=pe.getChartData)==null?void 0:xe.y)).filter(rt=>rt.aggType!="other").map(rt=>rt.showLabel),vue.unref(U).dataset.source=await oe(he,vue.unref(U).dataShow.x),ht(vue.unref(U),()=>ue())}break;case"2":{const{pieConfig:ft,customSeriesData:ut,init:ht}=usePieCommon();ut.value=(fe==null?void 0:fe.customSeriesData)??{},U.value=fe??chartJsonFormat(chartJsonToStringFormat(ft)),vue.unref(U).dataShow.x=((Ce=fe==null?void 0:fe.dataShow)==null?void 0:Ce.x)??((Ee=($e=pe.getChartData)==null?void 0:$e.x[0])==null?void 0:Ee.comment),vue.unref(U).dataShow.y=((Ve=fe==null?void 0:fe.dataShow)==null?void 0:Ve.y)??((Se=(Ne=pe.getChartData)==null?void 0:Ne.y[0])==null?void 0:Se.showLabel),vue.unref(U).dataset.source=await oe(he,vue.unref(U).dataShow.x,vue.unref(U).dataShow.y),ht(vue.unref(U),()=>ue())}break;case"3":{const{barConfig:ft,customSeriesData:ut,init:ht}=useBarCommon();ut.value=(fe==null?void 0:fe.customSeriesData)??{},U.value=fe??chartJsonFormat(chartJsonToStringFormat(ft)),vue.unref(U).dataShow.x=((Pe=fe==null?void 0:fe.dataShow)==null?void 0:Pe.x)??((ke=(we=pe.getChartData)==null?void 0:we.x[0])==null?void 0:ke.comment),vue.unref(U).dataShow.y=(((Te=vue.unref(ee))==null?void 0:Te.y)??((De=pe.getChartData)==null?void 0:De.y)).filter(rt=>rt.aggType!="other").map(rt=>rt.showLabel),vue.unref(U).dataset.source=await oe(he,vue.unref(U).dataShow.x),ht(vue.unref(U),()=>ue())}break;case"4":{const{radarConfig:ft,customSeriesData:ut,init:ht}=useRadar();ut.value=((Ie=vue.unref(fe))==null?void 0:Ie.customSeriesData)??{},U.value=fe??chartJsonFormat(chartJsonToStringFormat(ft)),vue.unref(U).dataShow.x=((Me=fe==null?void 0:fe.dataShow)==null?void 0:Me.x)??((Ae=(Be=pe.getChartData)==null?void 0:Be.x[0])==null?void 0:Ae.comment),vue.unref(U).dataShow.y=(((ze=vue.unref(ee))==null?void 0:ze.y)??((Re=pe.getChartData)==null?void 0:Re.y)).filter(rt=>rt.aggType!="other").map(rt=>rt.showLabel),vue.unref(U).dataset.source=await oe(he,vue.unref(U).dataShow.x),ht(vue.unref(U),()=>ue())}break;case"5":{const{barsLinesConfig:ft,customSeriesData:ut,init:ht}=useBarLineCommon();ut.value=((Fe=vue.unref(fe))==null?void 0:Fe.customSeriesData)??{},U.value=fe??chartJsonFormat(chartJsonToStringFormat(ft)),vue.unref(U).dataShow.x=((je=fe==null?void 0:fe.dataShow)==null?void 0:je.x)??((Le=(Oe=pe.getChartData)==null?void 0:Oe.x[0])==null?void 0:Le.comment),vue.unref(U).dataShow.y=(((Ge=vue.unref(ee))==null?void 0:Ge.y)??((qe=pe.getChartData)==null?void 0:qe.y)).filter(rt=>rt.aggType!="other").map(rt=>rt.showLabel),vue.unref(U).dataset.source=await oe(he,vue.unref(U).dataShow.x),ht(vue.unref(U),()=>ue())}break;case"6":{const{scatterCfg:ft,customSeriesData:ut,init:ht}=useScatterCommon();ut.value=((Ue=vue.unref(fe))==null?void 0:Ue.customSeriesData)??{},U.value=fe??chartJsonFormat(chartJsonToStringFormat(ft)),vue.unref(U).dataShow.x=((We=fe==null?void 0:fe.dataShow)==null?void 0:We.x)??((Je=(Ye=pe.getChartData)==null?void 0:Ye.x[0])==null?void 0:Je.comment),vue.unref(U).dataShow.y=(((Xe=vue.unref(ee))==null?void 0:Xe.y)??((Ke=pe.getChartData)==null?void 0:Ke.y)).filter(rt=>rt.aggType!="other").map(rt=>rt.showLabel),vue.unref(U).dataset.source=await oe(he,vue.unref(U).dataShow.x),ht(vue.unref(U),()=>ue())}break;case"7":{const{numberConfig:ft,customSeriesData:ut,init:ht}=useNumber();ut.value=(fe==null?void 0:fe.customSeriesData)??{},U.value=fe??chartJsonFormat(chartJsonToStringFormat(ft)),vue.unref(U).dataShow.y=(((He=vue.unref(ee))==null?void 0:He.y)??((Qe=pe.getChartData)==null?void 0:Qe.y)).filter(rt=>rt.aggType!="other").map(rt=>rt.showLabel),vue.unref(U).dataset.source=await oe(he),ht(vue.unref(U),()=>ue())}break;case"8":{const{customSeriesData:ft,tableConfig:ut,init:ht}=useTable();U.value=fe??chartJsonFormat(chartJsonToStringFormat(ut)),ft.value=((Ze=vue.unref(fe))==null?void 0:Ze.customSeriesData)??{};const rt=[...(((et=vue.unref(ee))==null?void 0:et.x)??((at=pe.getChartData)==null?void 0:at.x)).map(_t=>_t.comment),...(((ct=vue.unref(ee))==null?void 0:ct.y)??((st=pe.getChartData)==null?void 0:st.y)).map(_t=>_t.showLabel)];let $t=[];(((it=vue.unref(U).dataShow)==null?void 0:it.y)??[]).forEach(_t=>{$t.push(_t)}),$t.push(...rt),vue.unref(U).dataShow.y=[...new Set($t)],vue.unref(U).dataset.source=await oe(he),ht(vue.unref(U),()=>ue())}break;case"9":const{mapConfig:yt,init:Ct}=useMap(),gt=fe??chartJsonFormat(chartJsonToStringFormat(yt));console.log(gt),gt.series=[],gt.dataShow.x=((lt=fe==null?void 0:fe.dataShow)==null?void 0:lt.x)??((mt=(pt=pe.getChartData)==null?void 0:pt.x[0])==null?void 0:mt.comment),gt.dataShow.y=((bt=fe==null?void 0:fe.dataShow)==null?void 0:bt.y)??((wt=(xt=pe.getChartData)==null?void 0:xt.y[0])==null?void 0:wt.showLabel),gt.dataset.source=await oe(he,gt.dataShow.x,gt.dataShow.y),Ct(gt,()=>{U.value=gt,ue()});break}ve(U.value)},100)}),le=()=>{var ce,de,fe,ve,he,pe,ge;switch(vue.unref(G)){case"1":{const{customSeriesData:me,init:_e}=useLineCommon();me.value=((ce=vue.unref(U))==null?void 0:ce.customSeriesData)??{},_e(vue.unref(U))}break;case"2":{const{customSeriesData:me,init:_e}=usePieCommon();me.value=((de=vue.unref(U))==null?void 0:de.customSeriesData)??{},_e(vue.unref(U))}break;case"3":{const{customSeriesData:me,init:_e}=useBarCommon();me.value=((fe=vue.unref(U))==null?void 0:fe.customSeriesData)??{},_e(vue.unref(U))}break;case"4":{const{customSeriesData:me,init:_e}=useRadar();me.value=((ve=vue.unref(U))==null?void 0:ve.customSeriesData)??{},_e(vue.unref(U))}break;case"5":{const{customSeriesData:me,init:_e}=useBarLineCommon();me.value=((he=vue.unref(U))==null?void 0:he.customSeriesData)??{},_e(vue.unref(U))}break;case"6":{const{customSeriesData:me,init:_e}=useScatterCommon();me.value=((pe=vue.unref(U))==null?void 0:pe.customSeriesData)??{},_e(vue.unref(U))}break;case"7":{const{init:me}=useNumber();me(vue.unref(U))}break;case"8":{const{customSeriesData:me,init:_e}=useTable();me.value=((ge=vue.unref(U))==null?void 0:ge.customSeriesData)??{},_e(vue.unref(U))}break}},ae=async(ce,de,fe)=>{await new Promise(async ve=>{var xe;const he=screenDesignMainStore(),{dynamicSearchFormat:pe,dynamicSearchParams:ge}=te.$aceDynamicSearch();let me;me=await te.$baseHttp.get(`/api/ace-data-center/model-indicators/detail?id=${ce}`);const _e=JSON.parse(me.data.sortArgsJson??"{}"),ye=Object.keys(vue.unref(_e)).map(Ce=>({field:Ce,type:_e[Ce]=="ascending"?"asc":"desc"}));he.setChartData({x:JSON.parse(me.data.groupArgsJson),y:JSON.parse(me.data.aggArgsJson),params:{aggArgsJson:me.data.aggArgsJson,groupArgsJson:me.data.groupArgsJson,sortArgsJson:JSON.stringify(ye),params:ge(pe(JSON.parse(fe??((xe=vue.unref(me))==null?void 0:xe.formConfJson)??"[]"))),pageSize:me.data.pageSize,modelIndicatorsId:me.data.id,modelId:me.data.modelId}});const be=me.data.echarts.find(Ce=>Ce.type==de);await ie(be==null?void 0:be.code),ve(be==null?void 0:be.code)})},se=ce=>{const de=vue.unref(U),fe=vue.unref(U).customSeriesData[ce]??{};return((fe==null?void 0:fe.prefix)??"")+de.dataset.source.reduce((ve,he)=>ve+(he[ce]?Number(he[ce]):0),0).toFixed(fe.toFixed??0)+(fe.suffix??"")},ue=()=>{if(vue.unref(G)=="9"){U.value.tooltip.formatter=de=>{const fe=U.value.custom;if(de&&de.data){const{name:ve,data:he}=de.data;return`${ve}: ${(fe==null?void 0:fe.prefix)??""}${Number(he).toFixed((fe==null?void 0:fe.toFixed)??0)}${(fe==null?void 0:fe.suffix)??""}`}},U.value.series[2].label.formatter=de=>{const fe=U.value.custom,ve=de.data.data;return ve?`${(fe==null?void 0:fe.prefix)??""}${Number(ve).toFixed((fe==null?void 0:fe.toFixed)??0)}${(fe==null?void 0:fe.suffix)??""}`:""};return}if(vue.unref(U).tooltip){const de=U.value.custom;U.value.tooltip.valueFormatter=fe=>`${(de==null?void 0:de.prefix)??""}${Number(fe).toFixed(de==null?void 0:de.toFixed)}${(de==null?void 0:de.suffix)??""}`}vue.unref(U).dataset.temp_source=JSON.parse(JSON.stringify(U.value.dataset.source))};return{option:U,varData:ne,modelIndicatorsName:re,chartDataParams:ee,chartType:G,setChartData:oe,formatChart:ie,getModelIndicatorsData:ae,changeChartSeries:le,setSingleValue:se}}const _hoisted_1$1C={key:1,class:"flex items-center justify-center w-full h-full"},_sfc_main$2q=vue.defineComponent({__name:"render",props:{config:{default:()=>({})},list:{default:()=>[]},isLinkageQuery:{type:Boolean,default:!0},isCount:{type:Boolean,default:!0}},setup(__props){const props=__props,{proxy}=vue.getCurrentInstance(),design=screenDesignMainStore(),loading=vue.ref(!1),{dynamicSearchFormat,dynamicSearchParams}=proxy.$aceDynamicSearch(),{option,formatChart,varData,chartDataParams,modelIndicatorsName}=useCustomChart(),init=()=>{const linkageMap={},formulaList=[];if(props.isLinkageQuery&&props.list.forEach(te=>{const U=te.customize.modelValue;((te==null?void 0:te.customize.linkage)??[]).forEach(G=>{(U??"")!==""&&(linkageMap[G[0]]=[G[1],U])})}),props.isCount&&props.list.forEach(te=>{var ne;if(te.type!="number"&&!((ne=te.customize.formula)!=null&&ne.exp))return;te.customize.formulaCopy=JSON.parse(JSON.stringify(te.customize.formula));const U=te.customize.formulaCopy.identifier.split(","),G=/\{([^}]+)\}/g;let ee=0;te.customize.formulaCopy.exp=te.customize.formulaCopy.exp.replace(G,(re,oe)=>{const ie=oe.split(".");return ie[0]=U[ee],ee+=1,ie.join(".")}),te.customize.title=0,formulaList.push(te)}),props.config.modelType=="INDICATORS"){Promise.all([fetch$1(proxy).detailAndTask(props.config.indicatorsId),fetch$1(proxy).getEchartDetail({indicatorsId:props.config.indicatorsId})]).then(async te=>{var ne,re;let U=dynamicSearchParams(dynamicSearchFormat(JSON.parse(((re=(ne=te[0])==null?void 0:ne.data)==null?void 0:re.formConfJson)??"[]")));if(linkageMap[props.config.indicatorsId]){const[oe,ie]=linkageMap[props.config.indicatorsId];U[oe]=ie}const G=te[1].data,ee=await fetch$1(proxy).pullEchartsDataVO({indicatorsId:props.config.indicatorsId,loadType:(G==null?void 0:G.loadType)??3,params:U,targetClient:G.targetClient,echartsType:props.config.chartType});try{option.value=chartJsonFormat(ee.data.config)}catch{option.value=ee.data.config}loading.value=!1});return}if(props.config.chartId&&props.config.indicatorsId){props.config.chartType=="9"&&delete props.config.customize.series,option.value=props.config.customize;const{indicatorsId,chartType}=props.config;loading.value=!0,proxy.$baseHttp.get(`/api/ace-data-center/model-indicators/detail?id=${indicatorsId}`).then(async response=>{const sortArgsJson=JSON.parse(response.data.sortArgsJson??"{}"),sort=Object.keys(vue.unref(sortArgsJson)).map(te=>({field:te,type:sortArgsJson[te]=="ascending"?"asc":"desc"}));let params=dynamicSearchParams(dynamicSearchFormat(JSON.parse(response.data.formConfJson??"[]")));if(linkageMap[props.config.indicatorsId]){const[te,U]=linkageMap[props.config.indicatorsId];params[te]=U}chartDataParams.value={x:JSON.parse(response.data.groupArgsJson),y:JSON.parse(response.data.aggArgsJson),params:{aggArgsJson:response.data.aggArgsJson,groupArgsJson:response.data.groupArgsJson,sortArgsJson:JSON.stringify(sort),modelIndicatorsId:indicatorsId,params,pageSize:response.data.pageSize,modelId:response.data.modelId}},design.tempChartData[props.config.id]={params:chartDataParams.value,customize:props.config.customize},design.setChartData(chartDataParams.value),await formatChart("",chartType,{...props.config.customize,id:props.config.id}),props.isCount&&formulaList.length&&formulaList.forEach(el=>{var te;Object.keys(vue.unref(varData)).forEach(U=>{el.customize.formulaCopy.exp.indexOf(U)>=0&&(el.customize.formulaCopy.exp=el.customize.formulaCopy.exp.replace(U,varData.value[U]))}),/[\u4e00-\u9fa5]/.test((te=el.customize.formulaCopy)==null?void 0:te.exp)||(el.customize.title=eval(el.customize.formulaCopy.exp),(el.customize.toFixed??"")!==""&&(el.customize.title=el.customize.title.toFixed(el.customize.toFixed)))}),design.setCountMap(props.config.indicatorsId,{title:vue.unref(modelIndicatorsName),var:vue.unref(varData)}),loading.value=!1})}};vue.onMounted(()=>{init()}),proxy.$baseEventBus.on("ace-screen-indicators-linkage",te=>{te.includes(props.config.indicatorsId)&&init()});const widgetView=vue.computed(()=>moudleComponents$1[props.config.type]);return(te,U)=>{const G=vue.resolveComponent("AppEmpty"),ee=vue.resolveComponent("AppTable"),ne=vue.resolveComponent("v-chart"),re=vue.resolveComponent("aceCustomChart"),oe=vue.resolveComponent("aceLoading");return props.config.chartId?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[vue.unref(loading)?(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$1C,[vue.createVNode(oe,{size:"50"})])):(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[props.config.modelType=="INDICATORS"?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[props.config.chartType==7?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[vue.createTextVNode(vue.toDisplayString(vue.unref(option)),1)],64)):props.config.chartType==8?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:1},[vue.unref(option).length==0?(vue.openBlock(),vue.createBlock(G,{key:0,description:"暂无数据"})):vue.createCommentVNode("",!0),Array.isArray(vue.unref(option))&&vue.unref(option).length>0?(vue.openBlock(),vue.createBlock(ee,{key:1,tableData:Object.keys(vue.unref(option)[0]).map(ie=>({label:ie,prop:ie})),list:vue.unref(option),maxHeight:props.config.h-10+"px"},null,8,["tableData","list","maxHeight"])):vue.createCommentVNode("",!0)],64)):(vue.openBlock(),vue.createBlock(ne,{key:2,ref:"echart",option:vue.unref(option),autoresize:""},null,8,["option"]))],64)):(vue.openBlock(),vue.createBlock(re,{key:1,option:props.config.customize,chartType:props.config.chartType,maxHeight:props.config.h-10+"px"},null,8,["option","chartType","maxHeight"]))],64))],64)):(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:1},[vue.unref(widgetView)?(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(vue.unref(widgetView)),{key:0,ref:"componentRef",list:props.list,config:props.config},null,8,["list","config"])):vue.createCommentVNode("",!0)],64))}}}),render_vue_vue_type_style_index_0_scoped_01efe827_lang="",Render=_export_sfc$2(_sfc_main$2q,[["__scopeId","data-v-01efe827"]]),_withScopeId$C=te=>(vue.pushScopeId("data-v-d83296c5"),te=te(),vue.popScopeId(),te),_hoisted_1$1B={class:"relative w-full h-full"},_hoisted_2$1l=["id","onDblclick","onMousedown","onClick"],_hoisted_3$1a={key:0,class:"absolute flex items-center justify-center w-8 h-8 bg-blue-500 rounded-full -right-2 -top-2"},_hoisted_4$13=_withScopeId$C(()=>vue.createElementVNode("i",{class:"text-base text-white ri-lock-line"},null,-1)),_hoisted_5$S=[_hoisted_4$13],_hoisted_6$H={key:1,class:"absolute ml-4 text-xs tool left-full whitespace-nowrap"},_hoisted_7$A=["onClick"],_hoisted_8$u={key:1,class:"absolute w-full h-full z-[999]"},_sfc_main$2p=vue.defineComponent({__name:"main",setup(te){vue.useCssVars(we=>({"565e7a12":vue.unref(se)}));const{proxy:U}=vue.getCurrentInstance(),G=screenDesignMainStore(),ee=vue.computed(()=>G.stageWidth),ne=vue.computed(()=>G.stageHeight),re=document.body,oe=vue.ref(null),ie=useKeyModifier("Shift"),le=vue.computed(()=>G.targetsWidget.length===1?getItemFromElement(G.targetsWidget[0]):null),ae=[{label:"置于顶层",clickFunc:we=>{we.z=G.getWidgetList.length,G.widgetConfg.list.filter(ke=>ke.id!=we.id).forEach((ke,Te)=>{ke.z=G.getWidgetList.length-1-Te}),G.sortWidgetList()}},{label:"置于底层",clickFunc:we=>{we.z=1,G.widgetConfg.list.filter(ke=>ke.id!=we.id).forEach((ke,Te)=>{ke.z=G.getWidgetList.length-Te}),G.sortWidgetList()}}],se=vue.computed(()=>.8/G.getScale),ue=()=>Array.prototype.slice.call(document.querySelectorAll(".drag-item"),0),ce=(we,ke)=>{if(Array.isArray(we)){if(we.length===0){G.setTargetWidget([]);return}G.setTargetWidget(we.filter(De=>De.className.indexOf("locked")==-1).map(De=>getItemFromElement(De)));return}const Te=getItemFromElement(we);!Te||G.targetsWidget.includes(Te)||we.locked||(ie.value===!0?G.setTargetWidget([...G.getTargetWidget.filter(De=>De.className.indexOf("locked")==-1),Te]):G.setTargetWidget([Te]),vue.nextTick(()=>{ke&&vue.nextTick(()=>{var De;return(De=vue.unref(oe))==null?void 0:De.dragStart(ke)})}))},de=we=>{const ke=Ee(vue.unref(le));ke!=null&&ke.locked&&we.stopDrag(),console.log("开始拖拽",we)},fe=we=>{console.log("拖拽中",we),we.target.style.transform=we.transform;const[ke,Te]=we.translate;G.setSketchRuleLine([ke],[Te]);const De=Ee(vue.unref(le));De&&(De.x=Math.floor(we.translate[0]),De.y=Math.floor(we.translate[1]))},ve=we=>{console.log("拖拽结束",we),G.clearSketchRuleLine()},he=we=>{console.log("开始组拖拽",we)},pe=we=>{console.log("组拖拽中",we),we.events.forEach(ke=>{ke.target.style.transform=ke.transform})},ge=we=>{console.log("组拖拽完毕",we),we.events.forEach(ke=>{const Te=Ee(ke.target);!Te||!ke.lastEvent||(Te.x=Math.floor(ke.lastEvent.translate[0]),Te.y=Math.floor(ke.lastEvent.translate[1]))}),G.clearSketchRuleLine()},me=we=>{console.log("开始组修改大小",we)},_e=we=>{console.log("组修改大小中",we),we.events.forEach(ke=>{ke.target.style.transform=ke.drag.transform,ke.target.style.width=`${ke.width}px`,ke.target.style.height=`${ke.height}px`;const Te=Ee(ke.target);Te&&(Te.x=Math.floor(ke.drag.translate[0]),Te.y=Math.floor(ke.drag.translate[1]),Te.w=ke.drag.width,Te.h=ke.drag.height)})},ye=we=>{console.log("修改大小结束",we),G.clearSketchRuleLine()},be=we=>{const ke=Ee(vue.unref(le));ke!=null&&ke.locked&&we.stopDrag(),console.log("开始改变大小",we)},xe=we=>{console.log("改变中",we),we.target.style.transform=we.drag.transform,we.target.style.width=`${we.width}px`,we.target.style.height=`${we.height}px`;const ke=Ee(we.target);if(!ke)return;ke.x=Math.floor(we.drag.translate[0]),ke.y=Math.floor(we.drag.translate[1]),ke.w=we.drag.width,ke.h=we.drag.height;const[Te,De]=we.drag.translate;G.setSketchRuleLine([Te],[De])};function Ce(we){console.log("改变结束",we),G.clearSketchRuleLine()}const $e=vue.ref(!1);U.$baseEventBus.on("drag-start",()=>{$e.value=!0}),U.$baseEventBus.on("drag-end",()=>{$e.value=!1}),U.$baseEventBus.on("clear-stage",()=>{console.log("清空画布"),G.setWidgetList([]),G.setTargetWidget([]),G.clearSketchRuleLine()}),U.$baseEventBus.on("update-rect",()=>{var we,ke;console.log("更新画布"),(we=oe.value)==null||we.updateTarget(),(ke=oe.value)==null||ke.updateRect()}),U.$baseEventBus.on("change-align",we=>{vue.nextTick(()=>{var De;if(console.log("修改居中方式"),!G.targetsWidget.length)return;const ke=oe.value.getRect(),Te=oe.value.getMoveables();if(Te.length<=1){const Ie={};we=="left"&&(Ie.x=0),we=="right"&&(Ie.x=vue.unref(ee)-ke.width),we=="top"&&(Ie.y=0),we=="bottom"&&(Ie.y=vue.unref(ne)-ke.height),we=="middle"&&(Ie.y=vue.unref(ne)/2-ke.height/2),we=="center"&&(Ie.x=vue.unref(ee)/2-ke.width/2),Te[0].request("draggable",Ie,!0);const Me=Ee(Te[0].props.target);if(!Me)return;Object.keys(Ie).forEach(Be=>{Me[Be]=Ie[Be]})}else switch(we){case"left":case"right":case"top":case"bottom":case"middle":case"center":{const Ie=Math.max.apply(Math,ke.children.map(Be=>Be.top+Be.height)),Me=Math.max.apply(Math,ke.children.map(Be=>Be.left+Be.width));Te.forEach((Be,Ae)=>{const ze={};we=="left"&&(ze.x=ke.left),we=="right"&&(ze.x=Me-ke.children[Ae].width),we=="top"&&(ze.y=ke.top),we=="bottom"&&(ze.y=Ie-ke.children[Ae].height),we=="middle"&&(ze.y=ke.top+ke.height/2-ke.children[Ae].height/2),we=="center"&&(ze.x=ke.left+ke.width/2-ke.children[Ae].width/2),Be.request("draggable",ze,!0);const Re=Ee(Be.props.target);Re&&Object.keys(ze).forEach(Fe=>{Re[Fe]=ze[Fe]})}),G.clearSketchRuleLine()}break;case"verticalAround":case"levelAround":{const Ie=we=="verticalAround"?"top":"left",Me=we=="verticalAround"?"height":"width";let Be=ke[Ie];const Ae=(ke[Me]-ke.children.reduce((ze,Re)=>ze+Re[Me],0))/(Te.length-1);Te.sort((ze,Re)=>ze.state[Ie]-Re.state[Ie]),Te.forEach(ze=>{const Re=ze.getRect(),Fe={};Ie=="top"&&(Fe.y=Be),Ie=="left"&&(Fe.x=Be),ze.request("draggable",Fe,!0);const je=Ee(ze.props.target);je&&(Object.keys(Fe).forEach(Oe=>{je[Oe]=Fe[Oe]}),Be+=Re[Me]+Ae)}),G.clearSketchRuleLine()}break}(De=oe.value)==null||De.updateRect()})});const Ee=we=>G.getWidgetList.find(ke=>ke.id==(we==null?void 0:we.id)),Ve=we=>{we.preventDefault(),we.stopPropagation();const ke=we.dataTransfer.getData("dragComponent");if(ke){let Te=JSON.parse(ke);Te.chartId&&(Te.customize=chartJsonFormat(Te.customize));const{w:De,h:Ie}=Te;let Me=we.offsetX-De/2,Be=we.offsetY-Ie/2;Me<=0?Me=0:Me+De>=vue.unref(ee)&&(Me=vue.unref(ee)-De),Be<=0?Be=0:Be+Ie>=vue.unref(ne)&&(Be=vue.unref(ne)-Ie),G.setWidgetList([{...Te,x:Me,y:Be,z:G.getWidgetList.length+1},...G.getWidgetList])}},Ne=vue.ref([]),Se=()=>{const we=(Te,De)=>{const Ie=onKeyStroke(Te,Me=>{document.activeElement&&["INPUT"].includes(document.activeElement.tagName)||(Me.preventDefault(),Me.stopPropagation(),De(Me))},{eventName:"keydown"});Ne.value.push(Ie)},ke=Te=>navigator.userAgent.toLowerCase().includes("macintosh")?Te.metaKey:Te.ctrlKey;we(["Backspace","Delete"],Te=>{console.log("删除触发",Te),G.targetsWidget.length&&G.delWidgetItem(G.getTargetWidget.map(De=>De.id))}),we(["ArrowLeft","ArrowRight","ArrowDown","ArrowUp"],Te=>{if(!G.targetsWidget.length)return;console.log("触发移动",Te);let De=0,Ie=0;Te.key=="ArrowLeft"&&(De=-2),Te.key=="ArrowRight"&&(De=2),Te.key=="ArrowUp"&&(Ie=-2),Te.key=="ArrowDown"&&(Ie=2),Te.shiftKey&&(De*=10,Ie*=10),vue.nextTick(()=>{oe.value.getMoveables().forEach(Be=>{const Ae=Ee(Be.props.target);!Ae||Ae.locked||(Ae.x+De<0?Ae.x=0:Ae.x+De>vue.unref(ee)-Ae.w?Ae.x=vue.unref(ee)-Ae.w:Ae.x+=De,Ae.y+Ie<0?Ae.y=0:Ae.y+Ie>vue.unref(ne)-Ae.h?Ae.y=vue.unref(ne)-Ae.h:Ae.y+=Ie)}),vue.nextTick(()=>{var Be;return(Be=oe.value)==null?void 0:Be.updateRect()})})}),we(["c"],Te=>{console.log("复制",Te),ke(Te)&&G.getTargetWidget.length&&G.copyWidgetItem(G.getTargetWidget.map(De=>De.id))}),we(["v"],Te=>{console.log("粘贴",Te),ke(Te)&&G.getPasteWidget.length&&G.pasteWidgetItem()})},Pe=vue.ref(null);return vue.nextTick(()=>{Se(),Pe.value=new Selecto$2({rootContainer:null,dragContainer:".render",selectableTargets:[".drag-item"],selectByClick:!0,selectFromInside:!0,continueSelect:!1,preventDefault:!0,toggleContinueSelect:null,keyContainer:window,hitRate:0}),vue.unref(Pe).on("dragStart",we=>{G.setRightPannel(!1),console.log("开始全选拖拽",we)}),vue.unref(Pe).on("dragEnd",we=>{console.log("全选拖拽结束",we)}),vue.unref(Pe).on("select",we=>{console.log("选中结果",we),we.added.forEach(ke=>{ke.className.indexOf("loccked")||ke.classList.add("selected")}),we.removed.forEach(ke=>{ke.classList.remove("selected")}),ce(we.selected)}),vue.unref(Pe).on("selectEnd",we=>{console.log("选中结束",we),ce(we.selected)})}),vue.onBeforeUnmount(()=>{Ne.value.forEach(we=>we()),vue.unref(Pe)&&vue.unref(Pe).destroy()}),(we,ke)=>(vue.openBlock(),vue.createBlock(SketchRule,null,{default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_1$1B,[vue.unref($e)?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"absolute w-full h-full z-[9999]",onDrop:ke[0]||(ke[0]=Te=>Ve(Te)),onDragover:ke[1]||(ke[1]=vue.withModifiers(()=>{},["prevent"]))},null,32)):vue.createCommentVNode("",!0),(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vue.unref(G).getWidgetList,Te=>{var De,Ie;return vue.openBlock(),vue.createElementBlock("div",{key:Te.id,class:vue.normalizeClass(["absolute",{"drag-item":!0,locked:Te.locked,selected:vue.unref(G).widgetHoverIds.includes(Te.id),active:((De=vue.unref(le))==null?void 0:De.id)==Te.id}]),id:Te.id,style:vue.normalizeStyle(vue.unref(getItemStyle)(Te)),onDblclick:vue.withModifiers(Me=>Te.locked=!Te.locked,["stop"]),onMousedown:Me=>ce(Te,Me),onClick:vue.withModifiers(Me=>ce(Te,Me),["stop"])},[vue.unref(G).createLoading?vue.createCommentVNode("",!0):(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[Te.locked?(vue.openBlock(),vue.createElementBlock("div",_hoisted_3$1a,_hoisted_5$S)):vue.createCommentVNode("",!0),((Ie=vue.unref(le))==null?void 0:Ie.id)==Te.id&&!Te.locked?(vue.openBlock(),vue.createElementBlock("div",_hoisted_6$H,[(vue.openBlock(),vue.createElementBlock(vue.Fragment,null,vue.renderList(ae,Me=>vue.createElementVNode("div",{key:Te.label,onClick:vue.withModifiers(Be=>Me.clickFunc(Te),["stop"]),onDblclick:ke[2]||(ke[2]=vue.withModifiers(()=>{},["prevent","stop"])),class:"flex items-center justify-center w-16 h-6 mb-2 text-white rounded-sm cursor-pointer bg-color-primary"},vue.toDisplayString(Me.label),41,_hoisted_7$A)),64))])):vue.createCommentVNode("",!0)],64)),["iframe","select"].includes(Te.type)?(vue.openBlock(),vue.createElementBlock("div",_hoisted_8$u)):vue.createCommentVNode("",!0),vue.createVNode(Render,{config:Te,list:vue.unref(G).getWidgetList,isLinkageQuery:!1,isCount:!1},null,8,["config","list"])],46,_hoisted_2$1l)}),128)),vue.createVNode(vue.unref(Moveable),{rootContainer:vue.unref(re),ref_key:"moveableRef",ref:oe,origin:!1,stopPropagation:!0,target:vue.unref(G).targetsWidget,draggable:!0,resizable:!0,scalable:!1,snappable:!0,maxSnapElementGuidelineDistance:100,maxSnapElementGapDistance:100,isDisplayInnerSnapDigit:!0,snapDirections:!0,elementSnapDirections:!0,elementGuidelines:ue(),bounds:{left:0,top:0,bottom:0,right:0,position:"css"},onDragStart:de,onDrag:fe,onDragEnd:ve,onResizeStart:be,onResize:xe,onResizeEnd:Ce,onDragGroupStart:he,onDragGroup:pe,onDragGroupEnd:ge,onResizeGroupStart:me,onResizeGroup:_e,onResizeGroupEnd:ye},null,8,["rootContainer","target","elementGuidelines"])])]),_:1}))}}),main_vue_vue_type_style_index_0_scoped_d83296c5_lang="",Main=_export_sfc$2(_sfc_main$2p,[["__scopeId","data-v-d83296c5"]]),_sfc_main$2o=vue.defineComponent({__name:"colorPicker",props:{modelValue:{default:""},showInput:{type:Boolean,default:!0}},emits:["update:modelValue"],setup(te,{emit:U}){const G=te,{proxy:ee}=vue.getCurrentInstance(),ne=ee.$globalPreColor,re=vue.ref(G.modelValue=="transparent"?"":G.modelValue),oe=U;return vue.watch(re,ie=>{oe("update:modelValue",ie||"transparent")}),(ie,le)=>(vue.openBlock(),vue.createElementBlock(vue.Fragment,null,[ie.showInput?(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElInput),{key:0,value:vue.unref(re),class:"mr-1",style:{width:"80%"}},null,8,["value"])):vue.createCommentVNode("",!0),vue.createVNode(vue.unref(elementPlus.ElColorPicker),{modelValue:vue.unref(re),"onUpdate:modelValue":le[0]||(le[0]=ae=>vue.isRef(re)?re.value=ae:null),predefine:vue.unref(ne),"show-alpha":""},null,8,["modelValue","predefine"])],64))}}),_hoisted_1$1A={class:"flex items-center h-10 p-2"},_hoisted_2$1k=vue.createElementVNode("span",{class:"w-1 h-4 mr-2",style:{background:"var(--el-color-primary)"}},null,-1),_sfc_main$2n=vue.defineComponent({__name:"group",props:{title:{default:"标题"}},setup(te){return(U,G)=>(vue.openBlock(),vue.createElementBlock(vue.Fragment,null,[vue.createElementVNode("div",_hoisted_1$1A,[_hoisted_2$1k,vue.createTextVNode(" "+vue.toDisplayString(U.title),1)]),vue.renderSlot(U.$slots,"default")],64))}}),_withScopeId$B=te=>(vue.pushScopeId("data-v-9ebd23bc"),te=te(),vue.popScopeId(),te),_hoisted_1$1z={class:"flex items-center"},_hoisted_2$1j=_withScopeId$B(()=>vue.createElementVNode("span",{class:"ml-1 mr-1"},"-",-1)),_hoisted_3$19=["src"],_hoisted_4$12={key:1,class:"pt-4 pb-4"},_hoisted_5$R=_withScopeId$B(()=>vue.createElementVNode("p",{class:"mb-5"},"拖拽文件上传图片",-1)),_hoisted_6$G=_withScopeId$B(()=>vue.createElementVNode("i",{class:"text-6xl ri-image-add-line"},null,-1)),_hoisted_7$z=[_hoisted_5$R,_hoisted_6$G],_sfc_main$2m=vue.defineComponent({__name:"stageSetting",setup(te){const U=screenDesignMainStore(),{proxy:G}=vue.getCurrentInstance(),{resetUrl:ee}=G.$globalUtils,ne=[{label:"平铺",value:"repeat"},{label:"平铺X",value:"repeat-x"},{label:"平铺Y",value:"repeat-y"},{label:"不平铺",value:"no-repeat"}],re=[{label:"拉伸",value:"cover"},{label:"自适应",value:"contain"}],oe=[{label:"左上",value:"top left"},{label:"左中",value:"top center"},{label:"左右",value:"top right"},{label:"居左",value:"center left"},{label:"居中",value:"center center"},{label:"局右",value:"center right"},{label:"左下",value:"bottom left"},{label:"左中",value:"bottom center"},{label:"左右",value:"bottom right"}],ie=async le=>{const ae=new FormData;ae.append("file",le.file);const se=await G.$baseHttp.post("/api/ace-api/blade-resource/oss/endpoint/put-file",ae,{headers:{"Content-Type":"multipart/form-data",loading:!0}});se&&(U.widgetConfg.config.backgroundImage=se.data.link)};return(le,ae)=>(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElForm),{"label-position":"left",size:"small","label-width":"100px"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$2n,{title:"整体布局"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:"尺寸"},{default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_1$1z,[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{"model-value":vue.unref(U).stageWidth,onChange:vue.unref(U).setStageWidth,size:"small",min:0,"value-on-clear":1920},null,8,["model-value","onChange"]),_hoisted_2$1j,vue.createVNode(vue.unref(elementPlus.ElInputNumber),{"model-value":vue.unref(U).stageHeight,onChange:vue.unref(U).setStageHeight,size:"small",min:0,"value-on-clear":1080},null,8,["model-value","onChange"])])]),_:1}),vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:"背景图"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElUpload),{drag:"",limit:1,"http-request":ie,"show-file-list":!1,accept:"image/*"},{default:vue.withCtx(()=>[vue.unref(U).widgetConfg.config.backgroundImage?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[vue.createElementVNode("img",{class:"object-contain max-h-40",src:vue.unref(ee)(vue.unref(U).widgetConfg.config.backgroundImage)},null,8,_hoisted_3$19),vue.createElementVNode("i",{class:"absolute text-xl ri-close-circle-line right-4 top-4",onClick:ae[0]||(ae[0]=vue.withModifiers(se=>vue.unref(U).widgetConfg.config.backgroundImage=null,["stop"]))})],64)):(vue.openBlock(),vue.createElementBlock("div",_hoisted_4$12,_hoisted_7$z))]),_:1})]),_:1}),vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:"背景颜色"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$2o,{modelValue:vue.unref(U).widgetConfg.config.backgroundColor,"onUpdate:modelValue":ae[1]||(ae[1]=se=>vue.unref(U).widgetConfg.config.backgroundColor=se)},null,8,["modelValue"])]),_:1}),vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:"背景平铺"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSelect),{modelValue:vue.unref(U).widgetConfg.config.backgroundRepeat,"onUpdate:modelValue":ae[2]||(ae[2]=se=>vue.unref(U).widgetConfg.config.backgroundRepeat=se),size:"small",style:{width:"100%"},placeholder:"请选择",clearable:""},{default:vue.withCtx(()=>[(vue.openBlock(),vue.createElementBlock(vue.Fragment,null,vue.renderList(ne,se=>vue.createVNode(vue.unref(elementPlus.ElOption),{key:se.value,label:se.label,value:se.value},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1}),vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:"背景大小"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSelect),{modelValue:vue.unref(U).widgetConfg.config.backgroundSize,"onUpdate:modelValue":ae[3]||(ae[3]=se=>vue.unref(U).widgetConfg.config.backgroundSize=se),size:"small",style:{width:"100%"},placeholder:"请选择",clearable:""},{default:vue.withCtx(()=>[(vue.openBlock(),vue.createElementBlock(vue.Fragment,null,vue.renderList(re,se=>vue.createVNode(vue.unref(elementPlus.ElOption),{key:se.value,label:se.label,value:se.value},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1}),vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:"背景位置"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSelect),{modelValue:vue.unref(U).widgetConfg.config.backgroundPosition,"onUpdate:modelValue":ae[4]||(ae[4]=se=>vue.unref(U).widgetConfg.config.backgroundPosition=se),size:"small",style:{width:"100%"},placeholder:"请选择",clearable:""},{default:vue.withCtx(()=>[(vue.openBlock(),vue.createElementBlock(vue.Fragment,null,vue.renderList(oe,se=>vue.createVNode(vue.unref(elementPlus.ElOption),{key:se.value,label:se.label,value:se.value},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1}))}}),stageSetting_vue_vue_type_style_index_0_scoped_9ebd23bc_lang="",stagetSetting=_export_sfc$2(_sfc_main$2m,[["__scopeId","data-v-9ebd23bc"]]),_sfc_main$2l=vue.defineComponent({__name:"decorationSetting",setup(te){const U=vue.inject("widgetConfig");return(G,ee)=>vue.unref(U)?(vue.openBlock(),vue.createBlock(_sfc_main$2n,{key:0,title:"基础"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:"主颜色"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$2o,{modelValue:vue.unref(U).customize.decorationColor1,"onUpdate:modelValue":ee[0]||(ee[0]=ne=>vue.unref(U).customize.decorationColor1=ne)},null,8,["modelValue"])]),_:1}),vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:"副颜色"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$2o,{modelValue:vue.unref(U).customize.decorationColor2,"onUpdate:modelValue":ee[1]||(ee[1]=ne=>vue.unref(U).customize.decorationColor2=ne)},null,8,["modelValue"])]),_:1}),Object.keys(vue.unref(U).customize).includes("reverse")?(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElFormItem),{key:0,label:"是否反转"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSwitch),{modelValue:vue.unref(U).customize.reverse,"onUpdate:modelValue":ee[2]||(ee[2]=ne=>vue.unref(U).customize.reverse=ne)},null,8,["modelValue"])]),_:1})):vue.createCommentVNode("",!0),Object.keys(vue.unref(U).customize).includes("duration")?(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElFormItem),{key:1,label:"动画时长"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:vue.unref(U).customize.duration,"onUpdate:modelValue":ee[3]||(ee[3]=ne=>vue.unref(U).customize.duration=ne)},null,8,["modelValue"])]),_:1})):vue.createCommentVNode("",!0)]),_:1})):vue.createCommentVNode("",!0)}}),_sfc_main$2k=vue.defineComponent({__name:"setting",setup(te){const{proxy:U}=vue.getCurrentInstance(),G=vue.inject("widgetConfig");return(ee,ne)=>vue.unref(G)?(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElForm),{key:0,"label-position":"left",size:"small","label-width":"90px",class:"design-form"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$2n,{title:"标题"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:"标题"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInput),{modelValue:vue.unref(G).name,"onUpdate:modelValue":ne[0]||(ne[0]=re=>vue.unref(G).name=re)},null,8,["modelValue"])]),_:1})]),_:1}),vue.createVNode(_sfc_main$2n,{title:"位置"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:"宽度"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:vue.unref(G).w,"onUpdate:modelValue":ne[1]||(ne[1]=re=>vue.unref(G).w=re),onBlur:ne[2]||(ne[2]=re=>vue.unref(U).$baseEventBus.emit("update-rect"))},null,8,["modelValue"])]),_:1}),vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:"高度"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:vue.unref(G).h,"onUpdate:modelValue":ne[3]||(ne[3]=re=>vue.unref(G).h=re),onBlur:ne[4]||(ne[4]=re=>vue.unref(U).$baseEventBus.emit("update-rect"))},null,8,["modelValue"])]),_:1}),vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:"x轴坐标"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:vue.unref(G).x,"onUpdate:modelValue":ne[5]||(ne[5]=re=>vue.unref(G).x=re),onBlur:ne[6]||(ne[6]=re=>vue.unref(U).$baseEventBus.emit("update-rect"))},null,8,["modelValue"])]),_:1}),vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:"y轴坐标"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:vue.unref(G).y,"onUpdate:modelValue":ne[7]||(ne[7]=re=>vue.unref(G).y=re),onBlur:ne[8]||(ne[8]=re=>vue.unref(U).$baseEventBus.emit("update-rect"))},null,8,["modelValue"])]),_:1})]),_:1}),vue.renderSlot(ee.$slots,"default")]),_:3})):vue.createCommentVNode("",!0)}}),_sfc_main$2j=vue.defineComponent({__name:"setting",setup(te){return vue.inject("widgetConfig"),(U,G)=>(vue.openBlock(),vue.createBlock(_sfc_main$2k,null,{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$2l)]),_:1}))}}),__vite_glob_0_0=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$2j},Symbol.toStringTag,{value:"Module"})),_sfc_main$2i=vue.defineComponent({__name:"setting",setup(te){return vue.inject("widgetConfig"),(U,G)=>(vue.openBlock(),vue.createBlock(_sfc_main$2k,null,{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$2l)]),_:1}))}}),__vite_glob_0_1=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$2i},Symbol.toStringTag,{value:"Module"})),_sfc_main$2h=vue.defineComponent({__name:"setting",setup(te){return vue.inject("widgetConfig"),(U,G)=>(vue.openBlock(),vue.createBlock(_sfc_main$2k,null,{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$2l)]),_:1}))}}),__vite_glob_0_2=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$2h},Symbol.toStringTag,{value:"Module"})),_sfc_main$2g=vue.defineComponent({__name:"setting",setup(te){return vue.inject("widgetConfig"),(U,G)=>(vue.openBlock(),vue.createBlock(_sfc_main$2k,null,{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$2l)]),_:1}))}}),__vite_glob_0_3=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$2g},Symbol.toStringTag,{value:"Module"})),_sfc_main$2f=vue.defineComponent({__name:"setting",setup(te){return vue.inject("widgetConfig"),(U,G)=>(vue.openBlock(),vue.createBlock(_sfc_main$2k,null,{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$2l)]),_:1}))}}),__vite_glob_0_4=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$2f},Symbol.toStringTag,{value:"Module"})),_sfc_main$2e=vue.defineComponent({__name:"setting",setup(te){return vue.inject("widgetConfig"),(U,G)=>(vue.openBlock(),vue.createBlock(_sfc_main$2k,null,{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$2l)]),_:1}))}}),__vite_glob_0_5=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$2e},Symbol.toStringTag,{value:"Module"})),_sfc_main$2d=vue.defineComponent({__name:"setting",setup(te){return vue.inject("widgetConfig"),(U,G)=>(vue.openBlock(),vue.createBlock(_sfc_main$2k,null,{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$2l)]),_:1}))}}),__vite_glob_0_6=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$2d},Symbol.toStringTag,{value:"Module"})),_sfc_main$2c=vue.defineComponent({__name:"setting",setup(te){return vue.inject("widgetConfig"),(U,G)=>(vue.openBlock(),vue.createBlock(_sfc_main$2k,null,{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$2l)]),_:1}))}}),__vite_glob_0_7=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$2c},Symbol.toStringTag,{value:"Module"})),_sfc_main$2b=vue.defineComponent({__name:"setting",setup(te){return vue.inject("widgetConfig"),(U,G)=>(vue.openBlock(),vue.createBlock(_sfc_main$2k,null,{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$2l)]),_:1}))}}),__vite_glob_0_8=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$2b},Symbol.toStringTag,{value:"Module"})),_sfc_main$2a=vue.defineComponent({__name:"setting",setup(te){return vue.inject("widgetConfig"),(U,G)=>(vue.openBlock(),vue.createBlock(_sfc_main$2k,null,{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$2l)]),_:1}))}}),__vite_glob_0_9=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$2a},Symbol.toStringTag,{value:"Module"})),_sfc_main$29=vue.defineComponent({__name:"setting",setup(te){return vue.inject("widgetConfig"),(U,G)=>(vue.openBlock(),vue.createBlock(_sfc_main$2k,null,{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$2l)]),_:1}))}}),__vite_glob_0_10=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$29},Symbol.toStringTag,{value:"Module"})),_sfc_main$28=vue.defineComponent({__name:"borderSetting",setup(te){const U=vue.inject("widgetConfig");return(G,ee)=>vue.unref(U)?(vue.openBlock(),vue.createBlock(_sfc_main$2n,{key:0,title:"基础"},{default:vue.withCtx(()=>[Object.keys(vue.unref(U).customize).includes("title")?(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElFormItem),{key:0,label:"标题"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInput),{modelValue:vue.unref(U).customize.title,"onUpdate:modelValue":ee[0]||(ee[0]=ne=>vue.unref(U).customize.title=ne)},null,8,["modelValue"])]),_:1})):vue.createCommentVNode("",!0),Object.keys(vue.unref(U).customize).includes("titleWidth")?(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElFormItem),{key:1,label:"标题宽度"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:vue.unref(U).customize.titleWidth,"onUpdate:modelValue":ee[1]||(ee[1]=ne=>vue.unref(U).customize.titleWidth=ne)},null,8,["modelValue"])]),_:1})):vue.createCommentVNode("",!0),vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:"边框主颜色"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$2o,{modelValue:vue.unref(U).customize.borderMainColor,"onUpdate:modelValue":ee[2]||(ee[2]=ne=>vue.unref(U).customize.borderMainColor=ne)},null,8,["modelValue"])]),_:1}),vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:"边框副颜色"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$2o,{modelValue:vue.unref(U).customize.borderSecondaryColor,"onUpdate:modelValue":ee[3]||(ee[3]=ne=>vue.unref(U).customize.borderSecondaryColor=ne)},null,8,["modelValue"])]),_:1}),Object.keys(vue.unref(U).customize).includes("reverse")?(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElFormItem),{key:2,label:"是否反转"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSwitch),{modelValue:vue.unref(U).customize.reverse,"onUpdate:modelValue":ee[4]||(ee[4]=ne=>vue.unref(U).customize.reverse=ne)},null,8,["modelValue"])]),_:1})):vue.createCommentVNode("",!0),Object.keys(vue.unref(U).customize).includes("duration")?(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElFormItem),{key:3,label:"动画时长"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:vue.unref(U).customize.duration,"onUpdate:modelValue":ee[5]||(ee[5]=ne=>vue.unref(U).customize.duration=ne)},null,8,["modelValue"])]),_:1})):vue.createCommentVNode("",!0),vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:"背景"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$2o,{modelValue:vue.unref(U).customize.backgroundColor,"onUpdate:modelValue":ee[6]||(ee[6]=ne=>vue.unref(U).customize.backgroundColor=ne)},null,8,["modelValue"])]),_:1})]),_:1})):vue.createCommentVNode("",!0)}}),_sfc_main$27=vue.defineComponent({__name:"setting",setup(te){return vue.inject("widgetConfig"),(U,G)=>(vue.openBlock(),vue.createBlock(_sfc_main$2k,null,{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$28)]),_:1}))}}),__vite_glob_1_0=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$27},Symbol.toStringTag,{value:"Module"})),_sfc_main$26=vue.defineComponent({__name:"setting",setup(te){return vue.inject("widgetConfig"),(U,G)=>(vue.openBlock(),vue.createBlock(_sfc_main$2k,null,{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$28)]),_:1}))}}),__vite_glob_1_1=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$26},Symbol.toStringTag,{value:"Module"})),_sfc_main$25=vue.defineComponent({__name:"setting",setup(te){return vue.inject("widgetConfig"),(U,G)=>(vue.openBlock(),vue.createBlock(_sfc_main$2k,null,{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$28)]),_:1}))}}),__vite_glob_1_2=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$25},Symbol.toStringTag,{value:"Module"})),_sfc_main$24=vue.defineComponent({__name:"setting",setup(te){return vue.inject("widgetConfig"),(U,G)=>(vue.openBlock(),vue.createBlock(_sfc_main$2k,null,{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$28)]),_:1}))}}),__vite_glob_1_3=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$24},Symbol.toStringTag,{value:"Module"})),_sfc_main$23=vue.defineComponent({__name:"setting",setup(te){return vue.inject("widgetConfig"),(U,G)=>(vue.openBlock(),vue.createBlock(_sfc_main$2k,null,{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$28)]),_:1}))}}),__vite_glob_1_4=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$23},Symbol.toStringTag,{value:"Module"})),_sfc_main$22=vue.defineComponent({__name:"setting",setup(te){return vue.inject("widgetConfig"),(U,G)=>(vue.openBlock(),vue.createBlock(_sfc_main$2k,null,{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$28)]),_:1}))}}),__vite_glob_1_5=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$22},Symbol.toStringTag,{value:"Module"})),_sfc_main$21=vue.defineComponent({__name:"setting",setup(te){return vue.inject("widgetConfig"),(U,G)=>(vue.openBlock(),vue.createBlock(_sfc_main$2k,null,{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$28)]),_:1}))}}),__vite_glob_1_6=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$21},Symbol.toStringTag,{value:"Module"})),_sfc_main$20=vue.defineComponent({__name:"setting",setup(te){return vue.inject("widgetConfig"),(U,G)=>(vue.openBlock(),vue.createBlock(_sfc_main$2k,null,{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$28)]),_:1}))}}),__vite_glob_1_7=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$20},Symbol.toStringTag,{value:"Module"})),_sfc_main$1$=vue.defineComponent({__name:"setting",setup(te){return vue.inject("widgetConfig"),(U,G)=>(vue.openBlock(),vue.createBlock(_sfc_main$2k,null,{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$28)]),_:1}))}}),__vite_glob_1_8=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$1$},Symbol.toStringTag,{value:"Module"})),_sfc_main$1_=vue.defineComponent({__name:"setting",setup(te){return vue.inject("widgetConfig"),(U,G)=>(vue.openBlock(),vue.createBlock(_sfc_main$2k,null,{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$28)]),_:1}))}}),__vite_glob_1_9=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$1_},Symbol.toStringTag,{value:"Module"})),_sfc_main$1Z=vue.defineComponent({__name:"setting",setup(te){return vue.inject("widgetConfig"),(U,G)=>(vue.openBlock(),vue.createBlock(_sfc_main$2k,null,{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$28)]),_:1}))}}),__vite_glob_1_10=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$1Z},Symbol.toStringTag,{value:"Module"})),_sfc_main$1Y=vue.defineComponent({__name:"setting",setup(te){return vue.inject("widgetConfig"),(U,G)=>(vue.openBlock(),vue.createBlock(_sfc_main$2k,null,{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$28)]),_:1}))}}),__vite_glob_1_11=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$1Y},Symbol.toStringTag,{value:"Module"})),_sfc_main$1X=vue.defineComponent({__name:"setting",setup(te){return vue.inject("widgetConfig"),(U,G)=>(vue.openBlock(),vue.createBlock(_sfc_main$2k,null,{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$28)]),_:1}))}}),__vite_glob_1_12=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$1X},Symbol.toStringTag,{value:"Module"})),_sfc_main$1W=vue.defineComponent({__name:"setting",setup(te){const U=vue.inject("widgetConfig");return(G,ee)=>{const ne=vue.resolveComponent("el-form-item"),re=vue.resolveComponent("el-input-number");return vue.unref(U)?(vue.openBlock(),vue.createBlock(_sfc_main$2k,{key:0},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$2n,{title:"基础"},{default:vue.withCtx(()=>[vue.createVNode(ne,{label:"背景色一"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$2o,{modelValue:vue.unref(U).customize.gradientColor0,"onUpdate:modelValue":ee[0]||(ee[0]=oe=>vue.unref(U).customize.gradientColor0=oe)},null,8,["modelValue"])]),_:1}),vue.createVNode(ne,{label:"背景色二"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$2o,{modelValue:vue.unref(U).customize.gradientColor1,"onUpdate:modelValue":ee[1]||(ee[1]=oe=>vue.unref(U).customize.gradientColor1=oe)},null,8,["modelValue"])]),_:1}),vue.createVNode(ne,{label:"宽度"},{default:vue.withCtx(()=>[vue.createVNode(re,{modelValue:vue.unref(U).customize.width,"onUpdate:modelValue":ee[2]||(ee[2]=oe=>vue.unref(U).customize.width=oe)},null,8,["modelValue"])]),_:1})]),_:1})]),_:1})):vue.createCommentVNode("",!0)}}}),__vite_glob_2_0=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$1W},Symbol.toStringTag,{value:"Module"})),_sfc_main$1V=vue.defineComponent({__name:"setting",setup(te){const U=vue.inject("widgetConfig");return(G,ee)=>vue.unref(U)?(vue.openBlock(),vue.createBlock(_sfc_main$2k,{key:0},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$2n,{title:"地址配置"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:"地址"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInput),{modelValue:vue.unref(U).customize.url,"onUpdate:modelValue":ee[0]||(ee[0]=ne=>vue.unref(U).customize.url=ne)},null,8,["modelValue"])]),_:1})]),_:1})]),_:1})):vue.createCommentVNode("",!0)}}),__vite_glob_2_1=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$1V},Symbol.toStringTag,{value:"Module"})),_withScopeId$A=te=>(vue.pushScopeId("data-v-ba7d8f9c"),te=te(),vue.popScopeId(),te),_hoisted_1$1y={class:"p-3"},_hoisted_2$1i=["src"],_hoisted_3$18={key:1,class:"pt-4 pb-4"},_hoisted_4$11=_withScopeId$A(()=>vue.createElementVNode("p",{class:"mb-5"},"拖拽文件上传图片",-1)),_hoisted_5$Q=_withScopeId$A(()=>vue.createElementVNode("i",{class:"text-6xl ri-image-add-line"},null,-1)),_hoisted_6$F=[_hoisted_4$11,_hoisted_5$Q],_sfc_main$1U=vue.defineComponent({__name:"setting",setup(te){const U=[{label:"压缩",value:"fill"},{label:"填充",value:"cover"},{label:"自适应",value:"contain"},{label:"原始大小",value:"none"},{label:"展示最小",value:"scale-down"}],{proxy:G}=vue.getCurrentInstance(),{resetUrl:ee}=G.$globalUtils,ne=vue.inject("widgetConfig"),re=async oe=>{const ie=new FormData;ie.append("file",oe.file);const le=await G.$baseHttp.post("/api/ace-api/blade-resource/oss/endpoint/put-file",ie,{headers:{"Content-Type":"multipart/form-data",loading:!0}});le&&(ne.value.customize.url=le.data.link)};return(oe,ie)=>vue.unref(ne)?(vue.openBlock(),vue.createBlock(_sfc_main$2k,{key:0},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$2n,{title:"图片配置"},{default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_1$1y,[vue.createVNode(vue.unref(elementPlus.ElUpload),{drag:"",limit:1,"http-request":re,"show-file-list":!1,accept:"image/*"},{default:vue.withCtx(()=>[vue.unref(ne).customize.url?(vue.openBlock(),vue.createElementBlock("img",{key:0,class:"max-h-40",src:vue.unref(ee)(vue.unref(ne).customize.url)},null,8,_hoisted_2$1i)):(vue.openBlock(),vue.createElementBlock("div",_hoisted_3$18,_hoisted_6$F))]),_:1})]),vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:"地址"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInput),{modelValue:vue.unref(ne).customize.url,"onUpdate:modelValue":ie[0]||(ie[0]=le=>vue.unref(ne).customize.url=le)},null,8,["modelValue"])]),_:1}),vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:"展示方式"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSelect),{modelValue:vue.unref(ne).customize.fit,"onUpdate:modelValue":ie[1]||(ie[1]=le=>vue.unref(ne).customize.fit=le)},{default:vue.withCtx(()=>[(vue.openBlock(),vue.createElementBlock(vue.Fragment,null,vue.renderList(U,le=>vue.createVNode(vue.unref(elementPlus.ElOption),{key:le.value,label:le.label,value:le.value},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1})):vue.createCommentVNode("",!0)}}),setting_vue_vue_type_style_index_0_scoped_ba7d8f9c_lang="",setting$1=_export_sfc$2(_sfc_main$1U,[["__scopeId","data-v-ba7d8f9c"]]),__vite_glob_2_2=Object.freeze(Object.defineProperty({__proto__:null,default:setting$1},Symbol.toStringTag,{value:"Module"})),_hoisted_1$1x=vue.createElementVNode("i",{class:"ri-arrow-right-fill ml-2 mr-2"},null,-1),_sfc_main$1T=vue.defineComponent({__name:"text",setup(te){const U=[{label:"靠左",value:"left"},{label:"居中",value:"center"},{label:"靠右",value:"right"}],G=vue.inject("widgetConfig");return(ee,ne)=>vue.unref(G)?(vue.openBlock(),vue.createBlock(_sfc_main$2n,{key:0,title:"文本"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:"文本"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInput),{modelValue:vue.unref(G).customize.title,"onUpdate:modelValue":ne[0]||(ne[0]=re=>vue.unref(G).customize.title=re)},null,8,["modelValue"])]),_:1}),vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:"字体大小"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInput),{modelValue:vue.unref(G).customize.fontSize,"onUpdate:modelValue":ne[1]||(ne[1]=re=>vue.unref(G).customize.fontSize=re)},{suffix:vue.withCtx(()=>[vue.createTextVNode("px")]),_:1},8,["modelValue"])]),_:1}),vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:"文字权重"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInput),{modelValue:vue.unref(G).customize.fontWeight,"onUpdate:modelValue":ne[2]||(ne[2]=re=>vue.unref(G).customize.fontWeight=re)},null,8,["modelValue"])]),_:1}),vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:"文字间距"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:vue.unref(G).customize.letterSpacing,"onUpdate:modelValue":ne[3]||(ne[3]=re=>vue.unref(G).customize.letterSpacing=re)},null,8,["modelValue"])]),_:1}),vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:"文字对齐方式"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSelect),{modelValue:vue.unref(G).customize.textAlign,"onUpdate:modelValue":ne[4]||(ne[4]=re=>vue.unref(G).customize.textAlign=re)},{default:vue.withCtx(()=>[(vue.openBlock(),vue.createElementBlock(vue.Fragment,null,vue.renderList(U,re=>vue.createVNode(vue.unref(elementPlus.ElOption),{key:re.value,label:re.label,value:re.value},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1}),vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:"文字渐变方向"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElRadioGroup),{modelValue:vue.unref(G).customize.colorPosition,"onUpdate:modelValue":ne[5]||(ne[5]=re=>vue.unref(G).customize.colorPosition=re)},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElRadio),{value:"top",label:"top"},{default:vue.withCtx(()=>[vue.createTextVNode("上下")]),_:1}),vue.createVNode(vue.unref(elementPlus.ElRadio),{value:"left",label:"left"},{default:vue.withCtx(()=>[vue.createTextVNode("左右")]),_:1})]),_:1},8,["modelValue"])]),_:1}),vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:"文字渐变颜色"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$2o,{modelValue:vue.unref(G).customize.startColor,"onUpdate:modelValue":ne[6]||(ne[6]=re=>vue.unref(G).customize.startColor=re),showInput:!1},null,8,["modelValue"]),_hoisted_1$1x,vue.createVNode(_sfc_main$2o,{modelValue:vue.unref(G).customize.endColor,"onUpdate:modelValue":ne[7]||(ne[7]=re=>vue.unref(G).customize.endColor=re),showInput:!1},null,8,["modelValue"])]),_:1})]),_:1})):vue.createCommentVNode("",!0)}}),_withScopeId$z=te=>(vue.pushScopeId("data-v-63b0e6ae"),te=te(),vue.popScopeId(),te),_hoisted_1$1w={class:"selection el-popper is-light el-popover"},_hoisted_2$1h=_withScopeId$z(()=>vue.createElementVNode("span",{class:"el-popper__arrow","data-popper-arrow":""},null,-1)),validKeys$1="0123456789+-*/@.()",_sfc_main$1S=vue.defineComponent({__name:"exp",setup(te){const U=screenDesignMainStore(),G=vue.inject("widgetConfig"),ee=vue.ref(null),ne=vue.ref(""),re=vue.computed(()=>{const be=[];return Object.keys(U.getCountMap).forEach(xe=>{const Ce=U.getCountMap[xe],$e=[];Object.keys(Ce.var).forEach(Ee=>{const Ve=Ee.replace(xe,Ce.title);$e.push({label:Ve.replace(`${Ce.title}.`,""),value:`${Ve}||${xe}`})}),be.push({label:Ce.title,value:xe,children:$e})}),be}),oe=be=>{const{key:xe}=be;switch(xe){case"Enter":be.preventDefault();break;case"@":case"Process":se();break}};let ie=null;const le=()=>{const be=vue.unref(ee).innerHTML;let xe=pe(be.replace(/<br>/g,""));xe=xe.map($e=>me($e)?ge($e):$e.data.split("").filter(Ee=>validKeys$1.includes(Ee)).join(""));const Ce=xe.join("");if(be!==Ce){const $e=_e(be,Ce);vue.unref(ee).innerHTML=Ce,ye(vue.unref(ee),$e)}clearTimeout(ie),ie=setTimeout(async()=>{fe()},500)},ae=vue.ref(!1),se=()=>{ne.value="",ae.value=!0},ue=be=>{ae.value=!1;const[xe,Ce]=be.split("||"),$e=`<div contenteditable="false">${xe}<span>${Ce}</span></div>`;de("@",$e)};(()=>{var be;if((be=vue.unref(G).customize.formula)!=null&&be.exp){const xe=vue.unref(G).customize.formula;let Ce=xe.exp??"";const $e=xe.identifier.split(","),Ee=/\{([^}]+)\}/g;let Ve=-1;Ce=Ce.replace(Ee,(Ne,Se)=>(Ve+=1,`<div contenteditable="false">${Se}<span>${$e[Ve]}</span></div>`)),vue.nextTick(()=>{vue.unref(ee).innerHTML=Ce.replace(/@/g,""),setTimeout(()=>{fe()},100)})}})();const de=(be,xe="")=>{if(!vue.unref(ee))return;let Ce=vue.unref(ee).innerHTML;Ce.includes(be)&&(Ce=Ce.replace(new RegExp(be,"g"),xe),vue.unref(ee).innerHTML=Ce),fe()},fe=()=>{let be="";const xe=[],Ce=vue.unref(ee).innerHTML.replace(/\sdata-spm-anchor-id=".*?"/g,"");he({text:Ce,prefix:'<div contenteditable="false">',suffix:"</div>"}).forEach(Ee=>{const[Ve,Ne]=he({text:Ee,prefix:"<span>",suffix:"</span>"});Ne?(be+=`{${Ve}}`,xe.push(Ne)):be+=Ve}),G.value.customize.formula={exp:be,identifier:xe.toString()}},ve=be=>{ae.value=!1,be&&de("@")},he=({text:be,prefix:xe,suffix:Ce})=>be.replace(new RegExp(xe,"g"),",").replace(new RegExp(Ce,"g"),",").split(",").filter($e=>!!$e),pe=be=>{const xe=document.createElement("div");return xe.innerHTML=be,[...xe.childNodes]},ge=be=>{let xe=document.createElement("div");xe.appendChild(be);let Ce=xe.innerHTML;return xe=be=null,Ce},me=be=>Object.prototype.toString.call(be)==="[object HTMLDivElement]",_e=(be,xe)=>{const Ce=be.split(""),$e=xe.split(""),Ee=Math.max(Ce.length,$e.length);let Ve=0;for(let Ne=0;Ne<Ee&&Ce[Ne]==$e[Ne];Ne++)Ve++;return Ve},ye=(be,xe)=>{const Ce=document.createRange(),$e=window.getSelection();let Ee=0,Ve=0;const Ne=pe(be.innerHTML);for(let Se=0;Se<Ne.length;Se++){const Pe=Ne[Se];if(me(Pe))xe-=ge(Pe).length;else if(xe>Pe.length)xe-=Pe.length;else{Ve=xe;break}Ee++}Ce.selectNodeContents(be),Ce.collapse(!1),be.childNodes[Ee]&&Ce.setStart(be.childNodes[Ee],Ve),Ce.collapse(!0),$e.removeAllRanges(),$e.addRange(Ce)};return(be,xe)=>(vue.openBlock(),vue.createElementBlock(vue.Fragment,null,[vue.createElementVNode("div",{ref_key:"formulaRef",ref:ee,class:"flex-1 formula",contenteditable:"",placeholder:"请输入表达式 输入「@」后选择指标",style:{"ime-mode":"disabled"},onKeydown:vue.withModifiers(oe,["stop"]),onKeyup:le},null,544),vue.withDirectives(vue.createElementVNode("div",_hoisted_1$1w,[vue.createElementVNode("div",{class:"mb-2.5 flex justify-between"},[vue.createTextVNode(" 选择变量 "),vue.createElementVNode("i",{class:"text-base cursor-pointer ri-close-circle-line",onClick:ve})]),vue.createVNode(vue.unref(elementPlus.ElTreeSelect),{onChange:ue,filterable:"",accordion:"",placeholder:"请选择变量",teleported:!1,modelValue:vue.unref(ne),"onUpdate:modelValue":xe[0]||(xe[0]=Ce=>vue.isRef(ne)?ne.value=Ce:null),data:vue.unref(re)},null,8,["modelValue","data"]),_hoisted_2$1h],512),[[vue.vShow,vue.unref(ae)]])],64))}}),exp_vue_vue_type_style_index_0_scoped_63b0e6ae_lang="",Exp=_export_sfc$2(_sfc_main$1S,[["__scopeId","data-v-63b0e6ae"]]),_withScopeId$y=te=>(vue.pushScopeId("data-v-ae8d9af3"),te=te(),vue.popScopeId(),te),_hoisted_1$1v=_withScopeId$y(()=>vue.createElementVNode("div",{class:"h-12"},null,-1)),_sfc_main$1R=vue.defineComponent({__name:"setting",setup(te){const U=vue.inject("widgetConfig");return(G,ee)=>(vue.openBlock(),vue.createBlock(_sfc_main$2k,null,{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1T),vue.createVNode(_sfc_main$2n,{title:"计算设置"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:"小数位"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{min:0,modelValue:vue.unref(U).customize.toFixed,"onUpdate:modelValue":ee[0]||(ee[0]=ne=>vue.unref(U).customize.toFixed=ne),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:"公式",class:"formula-item"},{default:vue.withCtx(()=>[vue.createVNode(Exp)]),_:1})]),_:1}),_hoisted_1$1v]),_:1}))}}),setting_vue_vue_type_style_index_0_scoped_ae8d9af3_lang="",setting=_export_sfc$2(_sfc_main$1R,[["__scopeId","data-v-ae8d9af3"]]),__vite_glob_2_3=Object.freeze(Object.defineProperty({__proto__:null,default:setting},Symbol.toStringTag,{value:"Module"})),_sfc_main$1Q=vue.defineComponent({__name:"setting",setup(te){const U=vue.inject("widgetConfig");return(G,ee)=>vue.unref(U)?(vue.openBlock(),vue.createBlock(_sfc_main$2k,{key:0},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$2n,{title:"基础"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:"渐变方向"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElRadioGroup),{modelValue:vue.unref(U).customize.colorPosition,"onUpdate:modelValue":ee[0]||(ee[0]=ne=>vue.unref(U).customize.colorPosition=ne)},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElRadio),{value:"bottom",label:"bottom"},{default:vue.withCtx(()=>[vue.createTextVNode("上下")]),_:1}),vue.createVNode(vue.unref(elementPlus.ElRadio),{value:"right",label:"right"},{default:vue.withCtx(()=>[vue.createTextVNode("左右")]),_:1})]),_:1},8,["modelValue"])]),_:1}),vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:"边角宽度"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:vue.unref(U).customize.borderRadius,"onUpdate:modelValue":ee[1]||(ee[1]=ne=>vue.unref(U).customize.borderRadius=ne)},null,8,["modelValue"])]),_:1}),vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:"背景色一"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$2o,{modelValue:vue.unref(U).customize.gradientColor0,"onUpdate:modelValue":ee[2]||(ee[2]=ne=>vue.unref(U).customize.gradientColor0=ne)},null,8,["modelValue"])]),_:1}),vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:"背景色二"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$2o,{modelValue:vue.unref(U).customize.gradientColor1,"onUpdate:modelValue":ee[3]||(ee[3]=ne=>vue.unref(U).customize.gradientColor1=ne)},null,8,["modelValue"])]),_:1})]),_:1})]),_:1})):vue.createCommentVNode("",!0)}}),__vite_glob_2_4=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$1Q},Symbol.toStringTag,{value:"Module"})),_sfc_main$1P=vue.defineComponent({__name:"setting",setup(te){return vue.inject("widgetConfig"),(U,G)=>(vue.openBlock(),vue.createBlock(_sfc_main$2k,null,{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1T)]),_:1}))}}),__vite_glob_2_5=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$1P},Symbol.toStringTag,{value:"Module"})),_sfc_main$1O=vue.defineComponent({__name:"setting",setup(te){return vue.inject("widgetConfig"),(U,G)=>(vue.openBlock(),vue.createBlock(_sfc_main$2k,null,{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1T)]),_:1}))}}),__vite_glob_2_6=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$1O},Symbol.toStringTag,{value:"Module"})),_sfc_main$1N=vue.defineComponent({__name:"setting",setup(te){const U=vue.inject("widgetConfig");return(G,ee)=>{const ne=vue.resolveComponent("el-form-item"),re=vue.resolveComponent("el-input-number");return vue.unref(U)?(vue.openBlock(),vue.createBlock(_sfc_main$2k,{key:0},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$2n,{title:"基础"},{default:vue.withCtx(()=>[vue.createVNode(ne,{label:"背景色一"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$2o,{modelValue:vue.unref(U).customize.gradientColor0,"onUpdate:modelValue":ee[0]||(ee[0]=oe=>vue.unref(U).customize.gradientColor0=oe)},null,8,["modelValue"])]),_:1}),vue.createVNode(ne,{label:"背景色二"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$2o,{modelValue:vue.unref(U).customize.gradientColor1,"onUpdate:modelValue":ee[1]||(ee[1]=oe=>vue.unref(U).customize.gradientColor1=oe)},null,8,["modelValue"])]),_:1}),vue.createVNode(ne,{label:"高度"},{default:vue.withCtx(()=>[vue.createVNode(re,{modelValue:vue.unref(U).customize.height,"onUpdate:modelValue":ee[2]||(ee[2]=oe=>vue.unref(U).customize.height=oe)},null,8,["modelValue"])]),_:1})]),_:1})]),_:1})):vue.createCommentVNode("",!0)}}}),__vite_glob_2_7=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$1N},Symbol.toStringTag,{value:"Module"})),_withScopeId$x=te=>(vue.pushScopeId("data-v-7afca816"),te=te(),vue.popScopeId(),te),_hoisted_1$1u=_withScopeId$x(()=>vue.createElementVNode("div",{class:"h-14"},null,-1)),_sfc_main$1M=vue.defineComponent({__name:"linkage",setup(te){const{proxy:U}=vue.getCurrentInstance(),G=screenDesignMainStore(),ee=vue.computed(()=>G.getWidgetList.filter(oe=>oe.modelType=="MODEL_INDICATORS")),ne=vue.inject("widgetConfig"),re=vue.ref([]);return U.$baseHttp.get("/api/ace-data-center/model-indicators/getConfJson",{params:{modelIndicatorsIds:vue.unref(ee).map(oe=>oe.indicatorsId).toString()}}).then(oe=>{re.value=[],console.log(vue.unref(ee)),vue.unref(ee).forEach(ie=>{const le=oe.data.formConfJsonMap[ie.indicatorsId];le&&re.value.push({label:ie.name,value:ie.indicatorsId,children:JSON.parse(le).map(ae=>({label:ae.name,value:ae.key}))})})}),(oe,ie)=>(vue.openBlock(),vue.createBlock(_sfc_main$2n,{title:"联动组件"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:""},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElCascader),{teleported:!1,style:{width:"100%"},placeholder:"请选择指标",modelValue:vue.unref(ne).customize.linkage,"onUpdate:modelValue":ie[0]||(ie[0]=le=>vue.unref(ne).customize.linkage=le),options:vue.unref(re),props:{multiple:!0},clearable:""},null,8,["modelValue","options"])]),_:1}),_hoisted_1$1u]),_:1}))}}),linkage_vue_vue_type_style_index_0_scoped_7afca816_lang="",linkage=_export_sfc$2(_sfc_main$1M,[["__scopeId","data-v-7afca816"]]),_hoisted_1$1t={class:"flex flex-wrap gap-1"},_hoisted_2$1g={class:"flex items-center gap-1"},_hoisted_3$17={class:"flex items-center gap-1"},_hoisted_4$10={class:"flex items-center gap-1"},_hoisted_5$P={class:"flex items-center gap-1"},_sfc_main$1L=vue.defineComponent({__name:"setting",setup(te){const U=vue.inject("widgetConfig");return(G,ee)=>vue.unref(U)?(vue.openBlock(),vue.createBlock(_sfc_main$2k,{key:0},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$2n,{title:"基础"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:"背景色"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$2o,{modelValue:vue.unref(U).customize.backgroundColor,"onUpdate:modelValue":ee[0]||(ee[0]=ne=>vue.unref(U).customize.backgroundColor=ne)},null,8,["modelValue"])]),_:1}),vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:"边框颜色"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$2o,{modelValue:vue.unref(U).customize.borderColor,"onUpdate:modelValue":ee[1]||(ee[1]=ne=>vue.unref(U).customize.borderColor=ne)},null,8,["modelValue"])]),_:1}),vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:"边框大小"},{default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_1$1t,[vue.createElementVNode("div",_hoisted_2$1g,[vue.createTextVNode(" 上 "),vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:vue.unref(U).customize.borderTopWidth,"onUpdate:modelValue":ee[2]||(ee[2]=ne=>vue.unref(U).customize.borderTopWidth=ne),"controls-position":"right"},null,8,["modelValue"])]),vue.createElementVNode("div",_hoisted_3$17,[vue.createTextVNode(" 右 "),vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:vue.unref(U).customize.borderRightWidth,"onUpdate:modelValue":ee[3]||(ee[3]=ne=>vue.unref(U).customize.borderRightWidth=ne),"controls-position":"right"},null,8,["modelValue"])]),vue.createElementVNode("div",_hoisted_4$10,[vue.createTextVNode(" 下 "),vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:vue.unref(U).customize.borderBottomWidth,"onUpdate:modelValue":ee[4]||(ee[4]=ne=>vue.unref(U).customize.borderBottomWidth=ne),"controls-position":"right"},null,8,["modelValue"])]),vue.createElementVNode("div",_hoisted_5$P,[vue.createTextVNode(" 左 "),vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:vue.unref(U).customize.borderLeftWidth,"onUpdate:modelValue":ee[5]||(ee[5]=ne=>vue.unref(U).customize.borderLeftWidth=ne),"controls-position":"right"},null,8,["modelValue"])])])]),_:1}),vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:"字体颜色"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$2o,{modelValue:vue.unref(U).customize.color,"onUpdate:modelValue":ee[6]||(ee[6]=ne=>vue.unref(U).customize.color=ne)},null,8,["modelValue"])]),_:1}),vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:"字体大小"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:vue.unref(U).customize.fontSize,"onUpdate:modelValue":ee[7]||(ee[7]=ne=>vue.unref(U).customize.fontSize=ne)},null,8,["modelValue"])]),_:1}),vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:"圆角大小"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:vue.unref(U).customize.borderRadius,"onUpdate:modelValue":ee[8]||(ee[8]=ne=>vue.unref(U).customize.borderRadius=ne)},null,8,["modelValue"])]),_:1})]),_:1}),vue.createVNode(_sfc_main$2n,{title:"输入框配置"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:"默认值"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInput),{modelValue:vue.unref(U).customize.modelValue,"onUpdate:modelValue":ee[9]||(ee[9]=ne=>vue.unref(U).customize.modelValue=ne)},null,8,["modelValue"])]),_:1}),vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:"空值显示"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInput),{modelValue:vue.unref(U).customize.placeholder,"onUpdate:modelValue":ee[10]||(ee[10]=ne=>vue.unref(U).customize.placeholder=ne)},null,8,["modelValue"])]),_:1})]),_:1}),vue.createVNode(linkage)]),_:1})):vue.createCommentVNode("",!0)}}),__vite_glob_3_0=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$1L},Symbol.toStringTag,{value:"Module"})),_sfc_main$1K=vue.defineComponent({__name:"setting",setup(te){const{proxy:U}=vue.getCurrentInstance(),G=vue.ref([]),ee=vue.ref([]),ne=vue.inject("widgetConfig");U.$baseHttp.get(`/api/ace-data-center/custom-dic/options?projectId=${U.$baseGetCurrentProjectId()}`).then(oe=>{G.value=oe.data,re(!1)});const re=(oe=!0)=>{const ie=vue.unref(ne).customize.dictId;oe&&(ee.value=[],vue.unref(ne).customize.modelValue=""),ie&&U.$baseHttp.get(`/api/ace-data-center/custom-dic/readDict/${ie}`).then(le=>{ee.value=le.data??[]})};return(oe,ie)=>vue.unref(ne)?(vue.openBlock(),vue.createBlock(_sfc_main$2k,{key:0},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$2n,{title:"基础信息"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:"值可清空"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSwitch),{modelValue:vue.unref(ne).customize.clearable,"onUpdate:modelValue":ie[0]||(ie[0]=le=>vue.unref(ne).customize.clearable=le)},null,8,["modelValue"])]),_:1})]),_:1}),vue.createVNode(_sfc_main$2n,{title:"下拉框配置"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:"字典"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSelect),{teleported:!1,modelValue:vue.unref(ne).customize.dictId,"onUpdate:modelValue":ie[1]||(ie[1]=le=>vue.unref(ne).customize.dictId=le),placeholder:"字典值",onChange:re},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vue.unref(G),le=>(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElOption),{label:le.label,value:le.code,key:le.code},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:"默认值"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSelect),{teleported:!1,modelValue:vue.unref(ne).customize.modelValue,"onUpdate:modelValue":ie[2]||(ie[2]=le=>vue.unref(ne).customize.modelValue=le),placeholder:"请选择",clearable:""},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vue.unref(ee),le=>(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElOption),{label:le.name,value:le.code,key:le.code},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:"空值显示"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInput),{modelValue:vue.unref(ne).customize.placeholder,"onUpdate:modelValue":ie[3]||(ie[3]=le=>vue.unref(ne).customize.placeholder=le)},null,8,["modelValue"])]),_:1})]),_:1}),vue.createVNode(linkage)]),_:1})):vue.createCommentVNode("",!0)}}),__vite_glob_3_1=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$1K},Symbol.toStringTag,{value:"Module"})),dict={lengendX:[{label:"靠左",value:"left"},{label:"居中",value:"center"},{label:"靠右",value:"right"}],lengendY:[{label:"靠上",value:"top"},{label:"居中",value:"center"},{label:"靠下",value:"bottom"}],orient:[{label:"水平",value:"horizontal"},{label:"垂直",value:"vertical"}],shape:[{label:"圆形",value:"circle"},{label:"方形",value:"rect"},{label:"圆角方形",value:"roundRect"},{label:"三角形",value:"triangle"},{label:"钢笔形",value:"pin"},{label:"箭头形",value:"arrow"}],xposition:[{label:"顶部",value:"top"},{label:"底部",value:"bottom"}],yposition:[{label:"左侧",value:"left"},{label:"右侧",value:"right"}],lineStyle:[{label:"实线",value:"solid"},{label:"虚线",value:"dashed"},{label:"点线",value:"dotted"}],category:[{label:"数据轴",value:"value"},{label:"类目轴",value:"category"}]},_hoisted_1$1s={class:"flex flex-col justify-start w-full"},_hoisted_2$1f={key:0,class:"flex items-center w-16 font-bold"},_hoisted_3$16=vue.createElementVNode("span",{class:"w-1 h-4 mr-2",style:{background:"var(--el-color-primary)"}},null,-1),_hoisted_4$$={class:"flex flex-wrap flex-1"},_hoisted_5$O=vue.createElementVNode("div",{class:"h-4"},null,-1),_sfc_main$1J=vue.defineComponent({__name:"setting-item-box",props:{name:{default:""}},setup(te){return(U,G)=>(vue.openBlock(),vue.createElementBlock(vue.Fragment,null,[vue.createElementVNode("div",_hoisted_1$1s,[U.name?(vue.openBlock(),vue.createElementBlock("div",_hoisted_2$1f,[_hoisted_3$16,vue.createTextVNode(" "+vue.toDisplayString(U.name),1)])):vue.createCommentVNode("",!0),vue.createElementVNode("div",_hoisted_4$$,[vue.renderSlot(U.$slots,"default")])]),_hoisted_5$O],64))}}),_hoisted_1$1r={class:"w-1/2 pr-2 mt-2"},_hoisted_2$1e={class:"text-xs mb-2"},_sfc_main$1I=vue.defineComponent({__name:"setting-item",props:{name:{default:""}},setup(te){return(U,G)=>(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$1r,[vue.createElementVNode("div",_hoisted_2$1e,vue.toDisplayString(U.name),1),vue.renderSlot(U.$slots,"default")]))}}),_sfc_main$1H=vue.defineComponent({__name:"setting-common",props:{option:{default:{}},type:{default:0}},setup(te){const U=te,{proxy:G}=vue.getCurrentInstance(),ee=G.$globalPreColor,ne=[{label:"横向",value:"horizontal"},{label:"纵向",value:"vertical"}];return vue.watch(()=>U.option.custom,re=>{U.option.yAxis&&(U.option.yAxis.axisLabel.formatter=`${re.prefix??""}{value}${re.suffix??""}`)},{deep:!0}),vue.watch(()=>U.option.showScroll,re=>{if(re)U.option.dataZoom=[{type:"slider",backgroundColor:"#eef8fd",fillerColor:"#14b1f8",borderColor:"#eef8fd",startValue:0,endValue:5,filterMode:"",showDetail:!1,width:"90%",height:10,handleSize:30,left:"5%",bottom:15},{type:"inside",zoomOnMouseWheel:!1,moveOnMouseWheel:!0,moveOnMouseMove:!0}];else{const oe=U.option.series;U.option.series=[],U.option.direction="",setTimeout(()=>{delete U.option.dataZoom,U.option.series=oe})}}),vue.watch(()=>U.option.direction,re=>{U.option.dataZoom.forEach((oe,ie)=>{re=="vertical"?oe.yAxisIndex=[0]:delete oe.yAxisIndex})}),(re,oe)=>(vue.openBlock(),vue.createElementBlock(vue.Fragment,null,[re.option.grid?(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElCollapseItem),{key:0,title:"容器"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1J,{name:""},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"左侧距离"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInput),{modelValue:re.option.grid.left,"onUpdate:modelValue":oe[0]||(oe[0]=ie=>re.option.grid.left=ie),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"右侧距离"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInput),{modelValue:re.option.grid.right,"onUpdate:modelValue":oe[1]||(oe[1]=ie=>re.option.grid.right=ie),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"上侧距离"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInput),{modelValue:re.option.grid.top,"onUpdate:modelValue":oe[2]||(oe[2]=ie=>re.option.grid.top=ie),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"下侧距离"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInput),{modelValue:re.option.grid.bottom,"onUpdate:modelValue":oe[3]||(oe[3]=ie=>re.option.grid.bottom=ie),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"自适应"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSwitch),{modelValue:re.option.grid.containLabel,"onUpdate:modelValue":oe[4]||(oe[4]=ie=>re.option.grid.containLabel=ie)},null,8,["modelValue"])]),_:1})]),_:1})]),_:1})):vue.createCommentVNode("",!0),[1,3,5].includes(re.type)?(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElCollapseItem),{key:1,title:"滚动条"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1J,{name:""},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"显示"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSwitch),{modelValue:re.option.showScroll,"onUpdate:modelValue":oe[5]||(oe[5]=ie=>re.option.showScroll=ie)},null,8,["modelValue"])]),_:1})]),_:1}),re.option.showScroll?(vue.openBlock(),vue.createBlock(_sfc_main$1J,{key:0,name:"参数"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"滚动条方向"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSelect),{modelValue:re.option.direction,"onUpdate:modelValue":oe[6]||(oe[6]=ie=>re.option.direction=ie),size:"small",style:{width:"100%"}},{default:vue.withCtx(()=>[(vue.openBlock(),vue.createElementBlock(vue.Fragment,null,vue.renderList(ne,ie=>vue.createVNode(vue.unref(elementPlus.ElOption),{key:ie.value,label:ie.label,value:ie.value},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"范围结束值"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:re.option.dataZoom[0].endValue,"onUpdate:modelValue":oe[7]||(oe[7]=ie=>re.option.dataZoom[0].endValue=ie),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"拖拽宽度"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInput),{modelValue:re.option.dataZoom[0].handleSize,"onUpdate:modelValue":oe[8]||(oe[8]=ie=>re.option.dataZoom[0].handleSize=ie),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"宽度"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInput),{modelValue:re.option.dataZoom[0].width,"onUpdate:modelValue":oe[9]||(oe[9]=ie=>re.option.dataZoom[0].width=ie),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"高度"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInput),{modelValue:re.option.dataZoom[0].height,"onUpdate:modelValue":oe[10]||(oe[10]=ie=>re.option.dataZoom[0].height=ie),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"上"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInput),{modelValue:re.option.dataZoom[0].top,"onUpdate:modelValue":oe[11]||(oe[11]=ie=>re.option.dataZoom[0].top=ie),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"右"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInput),{modelValue:re.option.dataZoom[0].right,"onUpdate:modelValue":oe[12]||(oe[12]=ie=>re.option.dataZoom[0].right=ie),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"下"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInput),{modelValue:re.option.dataZoom[0].bottom,"onUpdate:modelValue":oe[13]||(oe[13]=ie=>re.option.dataZoom[0].bottom=ie),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"左"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInput),{modelValue:re.option.dataZoom[0].left,"onUpdate:modelValue":oe[14]||(oe[14]=ie=>re.option.dataZoom[0].left=ie),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"背景颜色"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElColorPicker),{predefine:vue.unref(ee),modelValue:re.option.dataZoom[0].backgroundColor,"onUpdate:modelValue":oe[15]||(oe[15]=ie=>re.option.dataZoom[0].backgroundColor=ie)},null,8,["predefine","modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"选中范围颜色"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElColorPicker),{predefine:vue.unref(ee),modelValue:re.option.dataZoom[0].fillerColor,"onUpdate:modelValue":oe[16]||(oe[16]=ie=>re.option.dataZoom[0].fillerColor=ie)},null,8,["predefine","modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"边框颜色"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElColorPicker),{predefine:vue.unref(ee),modelValue:re.option.dataZoom[0].borderColor,"onUpdate:modelValue":oe[17]||(oe[17]=ie=>re.option.dataZoom[0].borderColor=ie)},null,8,["predefine","modelValue"])]),_:1})]),_:1})):vue.createCommentVNode("",!0)]),_:1})):vue.createCommentVNode("",!0),re.option.legend?(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElCollapseItem),{key:2,title:"图例"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1J,{name:""},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"显示"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSwitch),{modelValue:re.option.legend.show,"onUpdate:modelValue":oe[18]||(oe[18]=ie=>re.option.legend.show=ie)},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"字体颜色"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElColorPicker),{predefine:vue.unref(ee),modelValue:re.option.legend.textStyle.color,"onUpdate:modelValue":oe[19]||(oe[19]=ie=>re.option.legend.textStyle.color=ie)},null,8,["predefine","modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"字体大小"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:re.option.legend.textStyle.fontSize,"onUpdate:modelValue":oe[20]||(oe[20]=ie=>re.option.legend.textStyle.fontSize=ie),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"x轴"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSelect),{modelValue:re.option.legend.x,"onUpdate:modelValue":oe[21]||(oe[21]=ie=>re.option.legend.x=ie),size:"small"},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vue.unref(dict).lengendX,ie=>(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElOption),{key:ie.value,label:ie.label,value:ie.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"y轴"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSelect),{modelValue:re.option.legend.y,"onUpdate:modelValue":oe[22]||(oe[22]=ie=>re.option.legend.y=ie),size:"small"},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vue.unref(dict).lengendY,ie=>(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElOption),{key:ie.value,label:ie.label,value:ie.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"方向"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSelect),{modelValue:re.option.legend.orient,"onUpdate:modelValue":oe[23]||(oe[23]=ie=>re.option.legend.orient=ie),size:"small"},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vue.unref(dict).orient,ie=>(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElOption),{key:ie.value,label:ie.label,value:ie.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),re.option.legend.icon?(vue.openBlock(),vue.createBlock(_sfc_main$1I,{key:0,name:"形状"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSelect),{modelValue:re.option.legend.icon,"onUpdate:modelValue":oe[24]||(oe[24]=ie=>re.option.legend.icon=ie),size:"small"},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vue.unref(dict).shape,ie=>(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElOption),{key:ie.value,label:ie.label,value:ie.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})):vue.createCommentVNode("",!0),vue.createVNode(_sfc_main$1I,{name:"宽"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:re.option.legend.itemWidth,"onUpdate:modelValue":oe[25]||(oe[25]=ie=>re.option.legend.itemWidth=ie),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"高"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:re.option.legend.itemHeight,"onUpdate:modelValue":oe[26]||(oe[26]=ie=>re.option.legend.itemHeight=ie),size:"small"},null,8,["modelValue"])]),_:1})]),_:1})]),_:1})):vue.createCommentVNode("",!0),re.option.xAxis?(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElCollapseItem),{key:3,title:"x轴"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1J,{name:""},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"显示"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSwitch),{modelValue:re.option.xAxis.show,"onUpdate:modelValue":oe[27]||(oe[27]=ie=>re.option.xAxis.show=ie)},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"类型"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSelect),{modelValue:re.option.xAxis.type,"onUpdate:modelValue":oe[28]||(oe[28]=ie=>re.option.xAxis.type=ie),size:"small"},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vue.unref(dict).category,ie=>(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElOption),{key:ie.value,label:ie.label,value:ie.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"最小值"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSelect),{"allow-create":"",filterable:"",clearable:"",modelValue:re.option.xAxis.min,"onUpdate:modelValue":oe[29]||(oe[29]=ie=>re.option.xAxis.min=ie),size:"small"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElOption),{label:"dataMin",value:"dataMin"})]),_:1},8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"最大值"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSelect),{"allow-create":"",filterable:"",clearable:"",modelValue:re.option.xAxis.max,"onUpdate:modelValue":oe[30]||(oe[30]=ie=>re.option.xAxis.max=ie),size:"small"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElOption),{label:"dataMax",value:"dataMax"})]),_:1},8,["modelValue"])]),_:1})]),_:1}),vue.createVNode(_sfc_main$1J,{name:"轴线"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"位置"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSelect),{modelValue:re.option.xAxis.position,"onUpdate:modelValue":oe[31]||(oe[31]=ie=>re.option.xAxis.position=ie),size:"small"},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vue.unref(dict).xposition,ie=>(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElOption),{key:ie.value,label:ie.label,value:ie.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"反向"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSwitch),{modelValue:re.option.xAxis.inverse,"onUpdate:modelValue":oe[32]||(oe[32]=ie=>re.option.xAxis.inverse=ie)},null,8,["modelValue"])]),_:1})]),_:1}),vue.createVNode(_sfc_main$1J,{name:"标签"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"大小"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:re.option.xAxis.axisLabel.fontSize,"onUpdate:modelValue":oe[33]||(oe[33]=ie=>re.option.xAxis.axisLabel.fontSize=ie),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"间隔"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:re.option.xAxis.axisLabel.interval,"onUpdate:modelValue":oe[34]||(oe[34]=ie=>re.option.xAxis.axisLabel.interval=ie),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"旋转"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:re.option.xAxis.axisLabel.rotate,"onUpdate:modelValue":oe[35]||(oe[35]=ie=>re.option.xAxis.axisLabel.rotate=ie),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"颜色"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElColorPicker),{predefine:vue.unref(ee),modelValue:re.option.xAxis.axisLabel.color,"onUpdate:modelValue":oe[36]||(oe[36]=ie=>re.option.xAxis.axisLabel.color=ie)},null,8,["predefine","modelValue"])]),_:1})]),_:1}),vue.createVNode(_sfc_main$1J,{name:"单位"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"名称"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInput),{modelValue:re.option.xAxis.name,"onUpdate:modelValue":oe[37]||(oe[37]=ie=>re.option.xAxis.name=ie),size:"small",placeholder:"请输入单位"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"大小"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:re.option.xAxis.nameTextStyle.fontSize,"onUpdate:modelValue":oe[38]||(oe[38]=ie=>re.option.xAxis.nameTextStyle.fontSize=ie),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"颜色"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElColorPicker),{predefine:vue.unref(ee),modelValue:re.option.xAxis.nameTextStyle.color,"onUpdate:modelValue":oe[39]||(oe[39]=ie=>re.option.xAxis.nameTextStyle.color=ie)},null,8,["predefine","modelValue"])]),_:1})]),_:1}),vue.createVNode(_sfc_main$1J,{name:"分割线"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"显示"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSwitch),{modelValue:re.option.xAxis.splitLine.show,"onUpdate:modelValue":oe[40]||(oe[40]=ie=>re.option.xAxis.splitLine.show=ie)},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"粗细"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:re.option.xAxis.splitLine.lineStyle.width,"onUpdate:modelValue":oe[41]||(oe[41]=ie=>re.option.xAxis.splitLine.lineStyle.width=ie),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"类型"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSelect),{modelValue:re.option.xAxis.splitLine.lineStyle.type,"onUpdate:modelValue":oe[42]||(oe[42]=ie=>re.option.xAxis.splitLine.lineStyle.type=ie),size:"small"},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vue.unref(dict).lineStyle,ie=>(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElOption),{key:ie.value,label:ie.label,value:ie.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"颜色"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElColorPicker),{predefine:vue.unref(ee),modelValue:re.option.xAxis.splitLine.lineStyle.color,"onUpdate:modelValue":oe[43]||(oe[43]=ie=>re.option.xAxis.splitLine.lineStyle.color=ie)},null,8,["predefine","modelValue"])]),_:1})]),_:1})]),_:1})):vue.createCommentVNode("",!0),re.option.yAxis?(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElCollapseItem),{key:4,title:"y轴"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1J,{name:""},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"显示"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSwitch),{modelValue:re.option.yAxis.show,"onUpdate:modelValue":oe[44]||(oe[44]=ie=>re.option.yAxis.show=ie)},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"类型"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSelect),{modelValue:re.option.yAxis.type,"onUpdate:modelValue":oe[45]||(oe[45]=ie=>re.option.yAxis.type=ie),size:"small"},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vue.unref(dict).category,ie=>(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElOption),{key:ie.value,label:ie.label,value:ie.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"最小值"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSelect),{"allow-create":"",filterable:"",clearable:"",modelValue:re.option.yAxis.min,"onUpdate:modelValue":oe[46]||(oe[46]=ie=>re.option.yAxis.min=ie),size:"small"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElOption),{label:"dataMin",value:"dataMin"})]),_:1},8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"最大值"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSelect),{"allow-create":"",filterable:"",clearable:"",modelValue:re.option.yAxis.max,"onUpdate:modelValue":oe[47]||(oe[47]=ie=>re.option.yAxis.max=ie),size:"small"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElOption),{label:"dataMax",value:"dataMax"})]),_:1},8,["modelValue"])]),_:1})]),_:1}),vue.createVNode(_sfc_main$1J,{name:"轴线"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"位置"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSelect),{modelValue:re.option.yAxis.position,"onUpdate:modelValue":oe[48]||(oe[48]=ie=>re.option.yAxis.position=ie),size:"small"},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vue.unref(dict).yposition,ie=>(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElOption),{key:ie.value,label:ie.label,value:ie.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"反向"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSwitch),{modelValue:re.option.yAxis.inverse,"onUpdate:modelValue":oe[49]||(oe[49]=ie=>re.option.yAxis.inverse=ie)},null,8,["modelValue"])]),_:1})]),_:1}),vue.createVNode(_sfc_main$1J,{name:"标签"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"大小"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:re.option.yAxis.axisLabel.fontSize,"onUpdate:modelValue":oe[50]||(oe[50]=ie=>re.option.yAxis.axisLabel.fontSize=ie),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"间隔"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:re.option.yAxis.axisLabel.interval,"onUpdate:modelValue":oe[51]||(oe[51]=ie=>re.option.yAxis.axisLabel.interval=ie),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"旋转"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:re.option.yAxis.axisLabel.rotate,"onUpdate:modelValue":oe[52]||(oe[52]=ie=>re.option.yAxis.axisLabel.rotate=ie),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"颜色"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElColorPicker),{predefine:vue.unref(ee),modelValue:re.option.yAxis.axisLabel.color,"onUpdate:modelValue":oe[53]||(oe[53]=ie=>re.option.yAxis.axisLabel.color=ie)},null,8,["predefine","modelValue"])]),_:1})]),_:1}),vue.createVNode(_sfc_main$1J,{name:"单位"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"名称"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInput),{modelValue:re.option.yAxis.name,"onUpdate:modelValue":oe[54]||(oe[54]=ie=>re.option.yAxis.name=ie),size:"small",placeholder:"请输入单位"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"大小"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:re.option.yAxis.nameTextStyle.fontSize,"onUpdate:modelValue":oe[55]||(oe[55]=ie=>re.option.yAxis.nameTextStyle.fontSize=ie),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"颜色"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElColorPicker),{predefine:vue.unref(ee),modelValue:re.option.yAxis.nameTextStyle.color,"onUpdate:modelValue":oe[56]||(oe[56]=ie=>re.option.yAxis.nameTextStyle.color=ie)},null,8,["predefine","modelValue"])]),_:1})]),_:1}),vue.createVNode(_sfc_main$1J,{name:"分割线"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"显示"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSwitch),{modelValue:re.option.yAxis.splitLine.show,"onUpdate:modelValue":oe[57]||(oe[57]=ie=>re.option.yAxis.splitLine.show=ie)},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"粗细"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:re.option.yAxis.splitLine.lineStyle.width,"onUpdate:modelValue":oe[58]||(oe[58]=ie=>re.option.yAxis.splitLine.lineStyle.width=ie),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"类型"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSelect),{modelValue:re.option.yAxis.splitLine.lineStyle.type,"onUpdate:modelValue":oe[59]||(oe[59]=ie=>re.option.yAxis.splitLine.lineStyle.type=ie),size:"small"},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vue.unref(dict).lineStyle,ie=>(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElOption),{key:ie.value,label:ie.label,value:ie.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"颜色"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElColorPicker),{predefine:vue.unref(ee),modelValue:re.option.yAxis.splitLine.lineStyle.color,"onUpdate:modelValue":oe[60]||(oe[60]=ie=>re.option.yAxis.splitLine.lineStyle.color=ie)},null,8,["predefine","modelValue"])]),_:1})]),_:1})]),_:1})):vue.createCommentVNode("",!0),re.option.custom&&![2].includes(re.type)?(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElCollapseItem),{key:5,title:"显示"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1J,{name:""},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"前缀"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInput),{modelValue:re.option.custom.prefix,"onUpdate:modelValue":oe[61]||(oe[61]=ie=>re.option.custom.prefix=ie),size:"small",placeholder:"前缀"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"后缀"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInput),{modelValue:re.option.custom.suffix,"onUpdate:modelValue":oe[62]||(oe[62]=ie=>re.option.custom.suffix=ie),size:"small",placeholder:"后缀"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"保留小数"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{min:0,modelValue:re.option.custom.toFixed,"onUpdate:modelValue":oe[63]||(oe[63]=ie=>re.option.custom.toFixed=ie),size:"small"},null,8,["modelValue"])]),_:1}),re.type==7?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[vue.createVNode(_sfc_main$1I,{name:"字体大小"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:re.option.custom.fontSize,"onUpdate:modelValue":oe[64]||(oe[64]=ie=>re.option.custom.fontSize=ie),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"颜色"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElColorPicker),{predefine:vue.unref(ee),modelValue:re.option.custom.color,"onUpdate:modelValue":oe[65]||(oe[65]=ie=>re.option.custom.color=ie)},null,8,["predefine","modelValue"])]),_:1})],64)):vue.createCommentVNode("",!0)]),_:1})]),_:1})):vue.createCommentVNode("",!0)],64))}}),settingCommon_vue_vue_type_style_index_0_scoped_003224ac_lang="",SettingCommon=_export_sfc$2(_sfc_main$1H,[["__scopeId","data-v-003224ac"]]),_hoisted_1$1q={class:"ml-2"},_hoisted_2$1d={class:"flex justify-end flex-1"},_hoisted_3$15=["onClick"],_hoisted_4$_=vue.createElementVNode("i",{class:"cursor-move ri-draggable sortable-handle"},null,-1),_sfc_main$1G=vue.defineComponent({__name:"config",props:{option:{default:{}},type:{default:""},immediate:{type:Boolean,default:!1}},setup(te){const U=screenDesignMainStore(),G=te,{proxy:ee}=vue.getCurrentInstance(),ne=ee.$globalPreColor,re=[{label:"顶部",value:"top"},{label:"左侧",value:"left"},{label:"右侧",value:"right"},{label:"底部",value:"bottom"}],{setChartData:oe}=useCustomChart(),{seriesItem:ie,init:le,customSeriesData:ae}=useBarCommon();vue.ref(null);const se=vue.ref(JSON.parse(JSON.stringify(Object.values(ae.value)[0]??ie)));vue.watch(se,()=>ue(),{deep:!0}),vue.watch(()=>G.option.dataShow,()=>{le(G.option,()=>{ue()})},{deep:!0,immediate:G.immediate}),vue.watch(()=>G.option.dataShow.x,async()=>{G.option.dataset.source=await oe(G.type,G.option.dataShow.x)});const ue=()=>{const de=se.value,fe=ve=>{ve.barWidth=de.barWidth,ve.stack=de.stack,ve.label.show=de.label.show,ve.label.color=de.label.color,ve.label.position=de.label.position,ve.label.fontSize=de.label.fontSize,ve.label.rotate=de.label.rotate,ve.itemStyle.borderRadius=[de.borderRadiusNumber,de.borderRadiusNumber,0,0]};G.option.series.forEach(ve=>{fe(ve)}),Object.keys(ae.value).forEach(ve=>{fe(vue.unref(ae)[ve])}),window.customSeriesData=ae.value},ce=de=>{const{hide:fe}=G.option.dataShow;fe.includes(de)?fe.splice(fe.findIndex(ve=>ve==de),1):fe.push(de)};return(de,fe)=>(vue.openBlock(),vue.createElementBlock(vue.Fragment,null,[vue.createVNode(SettingCommon,{option:de.option,type:3},null,8,["option"]),vue.createVNode(vue.unref(elementPlus.ElCollapseItem),{title:"柱状配置"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1J,{name:""},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"大小"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:vue.unref(se).barWidth,"onUpdate:modelValue":fe[0]||(fe[0]=ve=>vue.unref(se).barWidth=ve),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"堆栈"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSwitch),{modelValue:vue.unref(se).stack,"onUpdate:modelValue":fe[1]||(fe[1]=ve=>vue.unref(se).stack=ve)},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"圆角"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{min:0,modelValue:vue.unref(se).borderRadiusNumber,"onUpdate:modelValue":fe[2]||(fe[2]=ve=>vue.unref(se).borderRadiusNumber=ve),size:"small"},null,8,["modelValue"])]),_:1})]),_:1}),vue.createVNode(_sfc_main$1J,{name:"标签"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"展示"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSwitch),{modelValue:vue.unref(se).label.show,"onUpdate:modelValue":fe[3]||(fe[3]=ve=>vue.unref(se).label.show=ve)},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"位置"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSelect),{modelValue:vue.unref(se).label.position,"onUpdate:modelValue":fe[4]||(fe[4]=ve=>vue.unref(se).label.position=ve),size:"small"},{default:vue.withCtx(()=>[(vue.openBlock(),vue.createElementBlock(vue.Fragment,null,vue.renderList(re,ve=>vue.createVNode(vue.unref(elementPlus.ElOption),{key:ve.value,label:ve.label,value:ve.value},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"旋转"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:vue.unref(se).label.rotate,"onUpdate:modelValue":fe[5]||(fe[5]=ve=>vue.unref(se).label.rotate=ve),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"大小"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:vue.unref(se).label.fontSize,"onUpdate:modelValue":fe[6]||(fe[6]=ve=>vue.unref(se).label.fontSize=ve),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"颜色"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElColorPicker),{predefine:vue.unref(ne),modelValue:vue.unref(se).label.color,"onUpdate:modelValue":fe[7]||(fe[7]=ve=>vue.unref(se).label.color=ve)},null,8,["predefine","modelValue"])]),_:1})]),_:1})]),_:1}),vue.createVNode(vue.unref(elementPlus.ElCollapseItem),{title:"数据",name:"data"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1J,{name:""},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"X轴",style:{width:"100%"}},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSelect),{modelValue:de.option.dataShow.x,"onUpdate:modelValue":fe[8]||(fe[8]=ve=>de.option.dataShow.x=ve),size:"small",style:{width:"100%"}},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vue.unref(U).getChartData.x,ve=>(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElOption),{key:ve.comment,label:ve.comment,value:ve.comment},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"Y轴",style:{width:"100%","margin-top":"10px"}},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(vueDraggablePlus.VueDraggable),{modelValue:de.option.dataShow.y,"onUpdate:modelValue":fe[9]||(fe[9]=ve=>de.option.dataShow.y=ve),animation:150,handle:".sortable-handle"},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(de.option.dataShow.y,(ve,he)=>(vue.openBlock(),vue.createElementBlock("div",{key:ve,class:"w-full sort-item"},[vue.unref(ae)[ve]?(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElColorPicker),{key:0,predefine:vue.unref(ne),size:"small",modelValue:vue.unref(ae)[ve].itemStyle.color,"onUpdate:modelValue":pe=>vue.unref(ae)[ve].itemStyle.color=pe},null,8,["predefine","modelValue","onUpdate:modelValue"])):vue.createCommentVNode("",!0),vue.createTextVNode(" "+vue.toDisplayString(vue.unref(ae)[ve].itemStyle.color)+" ",1),vue.createElementVNode("span",_hoisted_1$1q,vue.toDisplayString(ve),1),vue.createElementVNode("div",_hoisted_2$1d,[vue.createElementVNode("i",{onClick:pe=>ce(ve),class:vue.normalizeClass([de.option.dataShow.hide.includes(ve)?"ri-eye-off-line":"ri-eye-line","mr-2 cursor-pointer"])},null,10,_hoisted_3$15),_hoisted_4$_])]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1})],64))}}),_hoisted_1$1p={class:"ml-2"},_hoisted_2$1c={class:"flex justify-end flex-1"},_hoisted_3$14=["onClick"],_hoisted_4$Z=vue.createElementVNode("i",{class:"cursor-move ri-draggable sortable-handle"},null,-1),_sfc_main$1F=vue.defineComponent({__name:"config",props:{option:{default:{}},type:{default:""},immediate:{type:Boolean,default:!1}},setup(te){const U=screenDesignMainStore(),G=te,{proxy:ee}=vue.getCurrentInstance(),ne=ee.$globalPreColor,re=[{label:"顶部",value:"top"},{label:"左侧",value:"left"},{label:"右侧",value:"right"},{label:"底部",value:"bottom"}],oe=[{label:"实线",value:"solid"},{label:"虚线",value:"dashed"},{label:"点线",value:"dotted"}],{setChartData:ie}=useCustomChart(),{seriesItem:le,init:ae,customSeriesData:se}=useLineCommon();vue.ref(null);const ue=vue.ref(JSON.parse(JSON.stringify(Object.values(se.value)[0]??le)));vue.watch(ue,()=>ce(),{deep:!0}),vue.watch(()=>G.option.dataShow,()=>{ae(G.option,()=>{ce()})},{deep:!0,immediate:G.immediate}),vue.watch(()=>G.option.dataShow.x,async()=>{G.option.dataset.source=await ie(G.type,G.option.dataShow.x)});const ce=()=>{const fe=JSON.parse(JSON.stringify(ue.value)),ve=he=>{Object.keys(fe).forEach(pe=>{pe=="lineStyle"?Object.keys(he[pe]).forEach(ge=>{ge!="color"&&(he[pe][ge]=fe[pe][ge])}):he[pe]=fe[pe]})};G.option.series.forEach(he=>{ve(he)}),Object.keys(se.value).forEach(he=>{ve(vue.unref(se)[he])}),window.customSeriesData=se.value},de=fe=>{const{hide:ve}=G.option.dataShow;ve.includes(fe)?ve.splice(ve.findIndex(he=>he==fe),1):ve.push(fe)};return(fe,ve)=>(vue.openBlock(),vue.createElementBlock(vue.Fragment,null,[vue.createVNode(SettingCommon,{option:fe.option,type:1},null,8,["option"]),vue.createVNode(vue.unref(elementPlus.ElCollapseItem),{title:"折线配置"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1J,{name:"线条"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"宽度"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:vue.unref(ue).lineStyle.width,"onUpdate:modelValue":ve[0]||(ve[0]=he=>vue.unref(ue).lineStyle.width=he),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"类型"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSelect),{modelValue:vue.unref(ue).lineStyle.type,"onUpdate:modelValue":ve[1]||(ve[1]=he=>vue.unref(ue).lineStyle.type=he),size:"small"},{default:vue.withCtx(()=>[(vue.openBlock(),vue.createElementBlock(vue.Fragment,null,vue.renderList(oe,he=>vue.createVNode(vue.unref(elementPlus.ElOption),{key:he.value,label:he.label,value:he.value},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1})]),_:1}),vue.createVNode(_sfc_main$1J,{name:"实心点"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"大小"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:vue.unref(ue).symbolSize,"onUpdate:modelValue":ve[2]||(ve[2]=he=>vue.unref(ue).symbolSize=he),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"平滑"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSwitch),{modelValue:vue.unref(ue).smooth,"onUpdate:modelValue":ve[3]||(ve[3]=he=>vue.unref(ue).smooth=he)},null,8,["modelValue"])]),_:1})]),_:1}),vue.createVNode(_sfc_main$1J,{name:"标签"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"展示"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSwitch),{modelValue:vue.unref(ue).label.show,"onUpdate:modelValue":ve[4]||(ve[4]=he=>vue.unref(ue).label.show=he)},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"位置"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSelect),{modelValue:vue.unref(ue).label.position,"onUpdate:modelValue":ve[5]||(ve[5]=he=>vue.unref(ue).label.position=he),size:"small"},{default:vue.withCtx(()=>[(vue.openBlock(),vue.createElementBlock(vue.Fragment,null,vue.renderList(re,he=>vue.createVNode(vue.unref(elementPlus.ElOption),{key:he.value,label:he.label,value:he.value},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"旋转"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:vue.unref(ue).label.rotate,"onUpdate:modelValue":ve[6]||(ve[6]=he=>vue.unref(ue).label.rotate=he),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"大小"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:vue.unref(ue).label.fontSize,"onUpdate:modelValue":ve[7]||(ve[7]=he=>vue.unref(ue).label.fontSize=he),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"颜色"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElColorPicker),{predefine:vue.unref(ne),modelValue:vue.unref(ue).label.color,"onUpdate:modelValue":ve[8]||(ve[8]=he=>vue.unref(ue).label.color=he)},null,8,["predefine","modelValue"])]),_:1})]),_:1})]),_:1}),vue.createVNode(vue.unref(elementPlus.ElCollapseItem),{title:"数据",name:"data"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1J,{name:""},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"X轴",style:{width:"100%"}},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSelect),{modelValue:fe.option.dataShow.x,"onUpdate:modelValue":ve[9]||(ve[9]=he=>fe.option.dataShow.x=he),size:"small",style:{width:"100%"}},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vue.unref(U).getChartData.x,he=>(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElOption),{key:he.comment,label:he.comment,value:he.comment},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"Y轴",style:{width:"100%","margin-top":"10px"}},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(vueDraggablePlus.VueDraggable),{modelValue:fe.option.dataShow.y,"onUpdate:modelValue":ve[10]||(ve[10]=he=>fe.option.dataShow.y=he),animation:150,handle:".sortable-handle"},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(fe.option.dataShow.y,(he,pe)=>(vue.openBlock(),vue.createElementBlock("div",{key:he,class:"w-full sort-item"},[vue.unref(se)[he]?(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElColorPicker),{key:0,size:"small",predefine:vue.unref(ne),modelValue:vue.unref(se)[he].lineStyle.color,"onUpdate:modelValue":ge=>vue.unref(se)[he].lineStyle.color=ge},null,8,["predefine","modelValue","onUpdate:modelValue"])):vue.createCommentVNode("",!0),vue.createElementVNode("span",_hoisted_1$1p,vue.toDisplayString(he),1),vue.createElementVNode("div",_hoisted_2$1c,[vue.createElementVNode("i",{onClick:ge=>de(he),class:vue.normalizeClass([fe.option.dataShow.hide.includes(he)?"ri-eye-off-line":"ri-eye-line","mr-2 cursor-pointer"])},null,10,_hoisted_3$14),_hoisted_4$Z])]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1})],64))}}),_sfc_main$1E=vue.defineComponent({__name:"config",props:{option:{default:{}},type:{default:""},immediate:{type:Boolean,default:!1}},setup(te){const U=screenDesignMainStore(),G=te,{proxy:ee}=vue.getCurrentInstance(),ne=ee.$globalPreColor,re=[{label:"外侧",value:"outside"},{label:"内部",value:"inside"},{label:"中心",value:"center"}],oe=[{label:"数据名",value:"{b}"},{label:"百分比",value:"{d}"},{label:"列名:百分比",value:"{b}:{d}%"}],{setChartData:ie}=useCustomChart(),{seriesItem:le,init:ae,customSeriesData:se}=usePieCommon(),ue=vue.ref(JSON.parse(JSON.stringify(Object.values(se.value)[0]??le)));vue.watch(ue,()=>ce(),{deep:!0}),vue.watch(()=>G.option.dataShow,async()=>{G.option.dataset.source=await ie(G.type,G.option.dataShow.x),ae(G.option,()=>{ce()})},{deep:!0,immediate:G.immediate});const ce=()=>{const de=ue.value,fe=ve=>{Object.keys(de).forEach(he=>{ve[he]=de[he]})};G.option.series.forEach(ve=>{fe(ve)}),Object.keys(se.value).forEach(ve=>{fe(vue.unref(se)[ve])}),window.customSeriesData=se.value};return(de,fe)=>(vue.openBlock(),vue.createElementBlock(vue.Fragment,null,[vue.createVNode(SettingCommon,{option:de.option,type:2},null,8,["option"]),vue.createVNode(vue.unref(elementPlus.ElCollapseItem),{title:"饼图配置"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1J,{name:"样式"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"半径1"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInput),{modelValue:vue.unref(ue).radius[0],"onUpdate:modelValue":fe[0]||(fe[0]=ve=>vue.unref(ue).radius[0]=ve),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"半径2"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInput),{modelValue:vue.unref(ue).radius[1],"onUpdate:modelValue":fe[1]||(fe[1]=ve=>vue.unref(ue).radius[1]=ve),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"距离1"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInput),{modelValue:vue.unref(ue).center[0],"onUpdate:modelValue":fe[2]||(fe[2]=ve=>vue.unref(ue).center[0]=ve),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"距离2"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInput),{modelValue:vue.unref(ue).center[1],"onUpdate:modelValue":fe[3]||(fe[3]=ve=>vue.unref(ue).center[1]=ve),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"南丁格尔图"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSwitch),{modelValue:vue.unref(ue).roseType,"onUpdate:modelValue":fe[4]||(fe[4]=ve=>vue.unref(ue).roseType=ve)},null,8,["modelValue"])]),_:1})]),_:1}),vue.createVNode(_sfc_main$1J,{name:"标签"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"展示"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSwitch),{modelValue:vue.unref(ue).label.show,"onUpdate:modelValue":fe[5]||(fe[5]=ve=>vue.unref(ue).label.show=ve)},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"引导线"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSwitch),{modelValue:vue.unref(ue).labelLine.show,"onUpdate:modelValue":fe[6]||(fe[6]=ve=>vue.unref(ue).labelLine.show=ve)},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"展示类型"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSelect),{modelValue:vue.unref(ue).label.formatter,"onUpdate:modelValue":fe[7]||(fe[7]=ve=>vue.unref(ue).label.formatter=ve),size:"small"},{default:vue.withCtx(()=>[(vue.openBlock(),vue.createElementBlock(vue.Fragment,null,vue.renderList(oe,ve=>vue.createVNode(vue.unref(elementPlus.ElOption),{key:ve.value,label:ve.label,value:ve.value},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"位置"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSelect),{modelValue:vue.unref(ue).label.position,"onUpdate:modelValue":fe[8]||(fe[8]=ve=>vue.unref(ue).label.position=ve),size:"small"},{default:vue.withCtx(()=>[(vue.openBlock(),vue.createElementBlock(vue.Fragment,null,vue.renderList(re,ve=>vue.createVNode(vue.unref(elementPlus.ElOption),{key:ve.value,label:ve.label,value:ve.value},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"大小"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{predefine:vue.unref(ne),modelValue:vue.unref(ue).label.fontSize,"onUpdate:modelValue":fe[9]||(fe[9]=ve=>vue.unref(ue).label.fontSize=ve),size:"small"},null,8,["predefine","modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"颜色"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElColorPicker),{predefine:vue.unref(ne),modelValue:vue.unref(ue).label.color,"onUpdate:modelValue":fe[10]||(fe[10]=ve=>vue.unref(ue).label.color=ve)},null,8,["predefine","modelValue"])]),_:1})]),_:1}),vue.createVNode(_sfc_main$1J,{name:"圆角"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"大小"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:vue.unref(ue).itemStyle.borderRadius,"onUpdate:modelValue":fe[11]||(fe[11]=ve=>vue.unref(ue).itemStyle.borderRadius=ve),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"宽度"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:vue.unref(ue).itemStyle.borderWidth,"onUpdate:modelValue":fe[12]||(fe[12]=ve=>vue.unref(ue).itemStyle.borderWidth=ve),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"颜色"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElColorPicker),{predefine:vue.unref(ne),modelValue:vue.unref(ue).itemStyle.borderColor,"onUpdate:modelValue":fe[13]||(fe[13]=ve=>vue.unref(ue).itemStyle.borderColor=ve)},null,8,["predefine","modelValue"])]),_:1})]),_:1})]),_:1}),vue.createVNode(vue.unref(elementPlus.ElCollapseItem),{title:"数据",name:"data"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1J,{name:""},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"维度",style:{width:"100%"}},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSelect),{modelValue:de.option.dataShow.x,"onUpdate:modelValue":fe[14]||(fe[14]=ve=>de.option.dataShow.x=ve),size:"small",style:{width:"100%"}},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vue.unref(U).getChartData.x,ve=>(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElOption),{key:ve.comment,label:ve.comment,value:ve.comment},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"统计",style:{width:"100%"}},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSelect),{modelValue:de.option.dataShow.y,"onUpdate:modelValue":fe[15]||(fe[15]=ve=>de.option.dataShow.y=ve),size:"small",style:{width:"100%"}},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vue.unref(U).getChartData.y.filter(ve=>ve.aggType!="other"),ve=>(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElOption),{key:ve.showLabel,label:ve.showLabel,value:ve.showLabel},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1})],64))}}),_hoisted_1$1o={class:"ml-2"},_hoisted_2$1b={class:"flex items-center justify-end flex-1"},_hoisted_3$13={class:"mr-2 text-xs cursor-pointer"},_hoisted_4$Y=["onClick"],_hoisted_5$N=vue.createElementVNode("i",{class:"cursor-move ri-draggable sortable-handle"},null,-1),_sfc_main$1D=vue.defineComponent({__name:"config",props:{option:{default:{}},type:{default:""},immediate:{type:Boolean,default:!1}},setup(te){const U=screenDesignMainStore(),G=te,{proxy:ee}=vue.getCurrentInstance(),ne=ee.$globalPreColor,re=[{label:"顶部",value:"top"},{label:"左侧",value:"left"},{label:"右侧",value:"right"},{label:"底部",value:"bottom"}],oe=[{label:"实线",value:"solid"},{label:"虚线",value:"dashed"},{label:"点线",value:"dotted"}],{setChartData:ie}=useCustomChart(),{seriesLineItem:le,seriesBarItem:ae,init:se,customSeriesData:ue}=useBarLineCommon();vue.ref(null);const ce=vue.ref(JSON.parse(JSON.stringify(Object.values(ue.value).find(pe=>pe.type=="bar")??ae))),de=vue.ref(JSON.parse(JSON.stringify(Object.values(ue.value).find(pe=>pe.type=="line")??le)));vue.watch([ce,de],()=>ve(),{deep:!0}),vue.watch(()=>G.option.dataShow,()=>{se(G.option,()=>{ve()})},{deep:!0,immediate:G.immediate}),vue.watch(()=>G.option.dataShow.x,async()=>{G.option.dataset.source=await ie(G.type,G.option.dataShow.x)});const fe=(pe,ge)=>{var _e,ye,be,xe;if(vue.unref(ue)[ge].type!=pe){const Ce=JSON.parse(JSON.stringify({...pe=="line"?de.value:ce.value})),$e=((ye=(_e=vue.unref(ue)[ge])==null?void 0:_e.lineStyle)==null?void 0:ye.color)??((xe=(be=vue.unref(ue)[ge])==null?void 0:be.itemStyle)==null?void 0:xe.color);Ce[Ce!=null&&Ce.lineStyle?"lineStyle":"itemStyle"].color=$e,ue.value[ge]=Ce,se(G.option,()=>{})}},ve=()=>{const pe=ce.value,ge=de.value,me=_e=>{const ye=JSON.parse(JSON.stringify(_e.type=="bar"?pe:ge));Object.keys(ye).forEach(be=>{["lineStyle","itemStyle"].includes(be)?Object.keys(_e[be]).forEach(xe=>{xe=="borderRadius"?_e[be][xe]=[pe.borderRadiusNumber,pe.borderRadiusNumber,0,0]:xe!="color"&&(_e[be][xe]=ye[be][xe])}):_e[be]=ye[be]})};G.option.series.forEach(_e=>{me(_e)}),Object.keys(ue.value).forEach(_e=>{me(vue.unref(ue)[_e])}),window.customSeriesData=ue.value},he=pe=>{const{hide:ge}=G.option.dataShow;ge.includes(pe)?ge.splice(ge.findIndex(me=>me==pe),1):ge.push(pe)};return(pe,ge)=>(vue.openBlock(),vue.createElementBlock(vue.Fragment,null,[vue.createVNode(SettingCommon,{option:pe.option,type:5},null,8,["option"]),vue.createVNode(vue.unref(elementPlus.ElCollapseItem),{title:"柱状配置"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1J,{name:""},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"大小"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:vue.unref(ce).barWidth,"onUpdate:modelValue":ge[0]||(ge[0]=me=>vue.unref(ce).barWidth=me),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"圆角"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{min:0,modelValue:vue.unref(ce).borderRadiusNumber,"onUpdate:modelValue":ge[1]||(ge[1]=me=>vue.unref(ce).borderRadiusNumber=me),size:"small"},null,8,["modelValue"])]),_:1})]),_:1}),vue.createVNode(_sfc_main$1J,{name:"标签"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"展示"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSwitch),{modelValue:vue.unref(ce).label.show,"onUpdate:modelValue":ge[2]||(ge[2]=me=>vue.unref(ce).label.show=me)},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"位置"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSelect),{modelValue:vue.unref(ce).label.position,"onUpdate:modelValue":ge[3]||(ge[3]=me=>vue.unref(ce).label.position=me),size:"small"},{default:vue.withCtx(()=>[(vue.openBlock(),vue.createElementBlock(vue.Fragment,null,vue.renderList(re,me=>vue.createVNode(vue.unref(elementPlus.ElOption),{key:me.value,label:me.label,value:me.value},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"旋转"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:vue.unref(ce).label.rotate,"onUpdate:modelValue":ge[4]||(ge[4]=me=>vue.unref(ce).label.rotate=me),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"大小"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:vue.unref(ce).label.fontSize,"onUpdate:modelValue":ge[5]||(ge[5]=me=>vue.unref(ce).label.fontSize=me),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"颜色"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElColorPicker),{predefine:vue.unref(ne),modelValue:vue.unref(ce).label.color,"onUpdate:modelValue":ge[6]||(ge[6]=me=>vue.unref(ce).label.color=me)},null,8,["predefine","modelValue"])]),_:1})]),_:1})]),_:1}),vue.createVNode(vue.unref(elementPlus.ElCollapseItem),{title:"折线配置"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1J,{name:"线条"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"宽度"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:vue.unref(de).lineStyle.width,"onUpdate:modelValue":ge[7]||(ge[7]=me=>vue.unref(de).lineStyle.width=me),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"类型"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSelect),{modelValue:vue.unref(de).lineStyle.type,"onUpdate:modelValue":ge[8]||(ge[8]=me=>vue.unref(de).lineStyle.type=me),size:"small"},{default:vue.withCtx(()=>[(vue.openBlock(),vue.createElementBlock(vue.Fragment,null,vue.renderList(oe,me=>vue.createVNode(vue.unref(elementPlus.ElOption),{key:me.value,label:me.label,value:me.value},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1})]),_:1}),vue.createVNode(_sfc_main$1J,{name:"实心点"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"大小"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:vue.unref(de).symbolSize,"onUpdate:modelValue":ge[9]||(ge[9]=me=>vue.unref(de).symbolSize=me),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"平滑"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSwitch),{modelValue:vue.unref(de).smooth,"onUpdate:modelValue":ge[10]||(ge[10]=me=>vue.unref(de).smooth=me)},null,8,["modelValue"])]),_:1})]),_:1}),vue.createVNode(_sfc_main$1J,{name:"标签"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"展示"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSwitch),{modelValue:vue.unref(de).label.show,"onUpdate:modelValue":ge[11]||(ge[11]=me=>vue.unref(de).label.show=me)},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"位置"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSelect),{modelValue:vue.unref(de).label.position,"onUpdate:modelValue":ge[12]||(ge[12]=me=>vue.unref(de).label.position=me),size:"small"},{default:vue.withCtx(()=>[(vue.openBlock(),vue.createElementBlock(vue.Fragment,null,vue.renderList(re,me=>vue.createVNode(vue.unref(elementPlus.ElOption),{key:me.value,label:me.label,value:me.value},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"旋转"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:vue.unref(de).label.rotate,"onUpdate:modelValue":ge[13]||(ge[13]=me=>vue.unref(de).label.rotate=me),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"大小"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:vue.unref(de).label.fontSize,"onUpdate:modelValue":ge[14]||(ge[14]=me=>vue.unref(de).label.fontSize=me),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"颜色"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElColorPicker),{predefine:vue.unref(ne),modelValue:vue.unref(de).label.color,"onUpdate:modelValue":ge[15]||(ge[15]=me=>vue.unref(de).label.color=me)},null,8,["predefine","modelValue"])]),_:1})]),_:1})]),_:1}),vue.createVNode(vue.unref(elementPlus.ElCollapseItem),{title:"数据",name:"data"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1J,{name:""},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"X轴",style:{width:"100%"}},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSelect),{modelValue:pe.option.dataShow.x,"onUpdate:modelValue":ge[16]||(ge[16]=me=>pe.option.dataShow.x=me),size:"small",style:{width:"100%"}},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vue.unref(U).getChartData.x,me=>(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElOption),{key:me.comment,label:me.comment,value:me.comment},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"Y轴",style:{width:"100%","margin-top":"10px"}},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(vueDraggablePlus.VueDraggable),{modelValue:pe.option.dataShow.y,"onUpdate:modelValue":ge[17]||(ge[17]=me=>pe.option.dataShow.y=me),animation:150,handle:".sortable-handle"},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(pe.option.dataShow.y,(me,_e)=>(vue.openBlock(),vue.createElementBlock("div",{key:me,class:"w-full sort-item"},[vue.unref(ue)[me]?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[vue.unref(ue)[me].type=="bar"?(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElColorPicker),{key:0,predefine:vue.unref(ne),size:"small",modelValue:vue.unref(ue)[me].itemStyle.color,"onUpdate:modelValue":ye=>vue.unref(ue)[me].itemStyle.color=ye},null,8,["predefine","modelValue","onUpdate:modelValue"])):(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElColorPicker),{key:1,predefine:vue.unref(ne),size:"small",modelValue:vue.unref(ue)[me].lineStyle.color,"onUpdate:modelValue":ye=>vue.unref(ue)[me].lineStyle.color=ye},null,8,["predefine","modelValue","onUpdate:modelValue"]))],64)):vue.createCommentVNode("",!0),vue.createElementVNode("span",_hoisted_1$1o,vue.toDisplayString(me),1),vue.createElementVNode("div",_hoisted_2$1b,[vue.unref(ue)[me]?(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElDropdown),{key:0,onCommand:ye=>fe(ye,me)},{dropdown:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElDropdownMenu),null,{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElDropdownItem),{command:"bar"},{default:vue.withCtx(()=>[vue.createTextVNode("柱状")]),_:1}),vue.createVNode(vue.unref(elementPlus.ElDropdownItem),{command:"line"},{default:vue.withCtx(()=>[vue.createTextVNode("折线")]),_:1})]),_:1})]),default:vue.withCtx(()=>[vue.createElementVNode("span",_hoisted_3$13,vue.toDisplayString(vue.unref(ue)[me].type=="bar"?"柱状":"折线"),1)]),_:2},1032,["onCommand"])):vue.createCommentVNode("",!0),vue.createElementVNode("i",{onClick:ye=>he(me),class:vue.normalizeClass([pe.option.dataShow.hide.includes(me)?"ri-eye-off-line":"ri-eye-line","mr-2 cursor-pointer"])},null,10,_hoisted_4$Y),_hoisted_5$N])]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1})],64))}}),_hoisted_1$1n={class:"ml-2"},_hoisted_2$1a={class:"flex items-center justify-end flex-1"},_hoisted_3$12={class:"mr-2 text-xs cursor-pointer"},_hoisted_4$X=["onClick"],_hoisted_5$M=vue.createElementVNode("i",{class:"cursor-move ri-draggable sortable-handle"},null,-1),_sfc_main$1C=vue.defineComponent({__name:"config",props:{option:{default:{}},type:{default:""},immediate:{type:Boolean,default:!1}},setup(te){const U=screenDesignMainStore(),G=te,{proxy:ee}=vue.getCurrentInstance(),ne=ee.$globalPreColor,re=[{label:"实线",value:"solid"},{label:"虚线",value:"dashed"},{label:"点线",value:"dotted"}],oe=[{label:"顶部",value:"top"},{label:"左侧",value:"left"},{label:"右侧",value:"right"},{label:"底部",value:"bottom"}],{setChartData:ie}=useCustomChart(),{seriesItem:le,init:ae,customSeriesData:se}=useScatterCommon();vue.ref(null);const ue=vue.ref(JSON.parse(JSON.stringify(Object.values(se.value)[0]??le)));vue.watch(ue,()=>ce(),{deep:!0}),vue.watch(()=>G.option.dataShow,()=>{ae(G.option,()=>{ce()})},{deep:!0,immediate:G.immediate}),vue.watch(()=>G.option.dataShow.x,async()=>{G.option.dataset.source=await ie(G.type,G.option.dataShow.x)});const ce=()=>{const ve=JSON.parse(JSON.stringify(ue.value)),he=pe=>{Object.keys(ve).forEach(ge=>{ge!="type"&&(["itemStyle"].includes(ge)||(pe[ge]=ve[ge]))})};G.option.series.forEach(pe=>{he(pe)}),Object.keys(se.value).forEach(pe=>{he(vue.unref(se)[pe])}),window.customSeriesData=se.value},de=(ve,he)=>{const pe=vue.unref(se)[he];pe.type!=ve&&(pe.type=ve,ae(G.option,()=>{}))},fe=ve=>{const{hide:he}=G.option.dataShow;he.includes(ve)?he.splice(he.findIndex(pe=>pe==ve),1):he.push(ve)};return(ve,he)=>(vue.openBlock(),vue.createElementBlock(vue.Fragment,null,[vue.createVNode(SettingCommon,{option:ve.option,type:6},null,8,["option"]),vue.createVNode(vue.unref(elementPlus.ElCollapseItem),{title:"散点图配置"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1J,{name:""},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"大小"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:vue.unref(ue).symbolSize,"onUpdate:modelValue":he[0]||(he[0]=pe=>vue.unref(ue).symbolSize=pe),size:"small"},null,8,["modelValue"])]),_:1})]),_:1}),vue.createVNode(_sfc_main$1J,{name:"标域"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"粗细(0不显示)"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:vue.unref(ue).markArea.itemStyle.borderWidth,"onUpdate:modelValue":he[1]||(he[1]=pe=>vue.unref(ue).markArea.itemStyle.borderWidth=pe),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"样式"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSelect),{modelValue:vue.unref(ue).markArea.itemStyle.borderType,"onUpdate:modelValue":he[2]||(he[2]=pe=>vue.unref(ue).markArea.itemStyle.borderType=pe),size:"small"},{default:vue.withCtx(()=>[(vue.openBlock(),vue.createElementBlock(vue.Fragment,null,vue.renderList(re,pe=>vue.createVNode(vue.unref(elementPlus.ElOption),{key:pe.value,label:pe.label,value:pe.value},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1})]),_:1}),vue.createVNode(_sfc_main$1J,{name:"标签"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"展示"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSwitch),{modelValue:vue.unref(ue).label.show,"onUpdate:modelValue":he[3]||(he[3]=pe=>vue.unref(ue).label.show=pe)},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"位置"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSelect),{modelValue:vue.unref(ue).label.position,"onUpdate:modelValue":he[4]||(he[4]=pe=>vue.unref(ue).label.position=pe),size:"small"},{default:vue.withCtx(()=>[(vue.openBlock(),vue.createElementBlock(vue.Fragment,null,vue.renderList(oe,pe=>vue.createVNode(vue.unref(elementPlus.ElOption),{key:pe.value,label:pe.label,value:pe.value},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"旋转"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:vue.unref(ue).label.rotate,"onUpdate:modelValue":he[5]||(he[5]=pe=>vue.unref(ue).label.rotate=pe),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"大小"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:vue.unref(ue).label.fontSize,"onUpdate:modelValue":he[6]||(he[6]=pe=>vue.unref(ue).label.fontSize=pe),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"颜色"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElColorPicker),{predefine:vue.unref(ne),modelValue:vue.unref(ue).label.color,"onUpdate:modelValue":he[7]||(he[7]=pe=>vue.unref(ue).label.color=pe)},null,8,["predefine","modelValue"])]),_:1})]),_:1})]),_:1}),vue.createVNode(vue.unref(elementPlus.ElCollapseItem),{title:"数据",name:"data"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1J,{name:""},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"X轴",style:{width:"100%"}},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSelect),{modelValue:ve.option.dataShow.x,"onUpdate:modelValue":he[8]||(he[8]=pe=>ve.option.dataShow.x=pe),size:"small",style:{width:"100%"}},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vue.unref(U).getChartData.x,pe=>(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElOption),{key:pe.comment,label:pe.comment,value:pe.comment},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"Y轴",style:{width:"100%","margin-top":"10px"}},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(vueDraggablePlus.VueDraggable),{modelValue:ve.option.dataShow.y,"onUpdate:modelValue":he[9]||(he[9]=pe=>ve.option.dataShow.y=pe),animation:150,handle:".sortable-handle"},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(ve.option.dataShow.y,(pe,ge)=>(vue.openBlock(),vue.createElementBlock("div",{key:pe,class:"w-full sort-item"},[vue.unref(se)[pe]?(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElColorPicker),{key:0,predefine:vue.unref(ne),size:"small",modelValue:vue.unref(se)[pe].itemStyle.color,"onUpdate:modelValue":me=>vue.unref(se)[pe].itemStyle.color=me},null,8,["predefine","modelValue","onUpdate:modelValue"])):vue.createCommentVNode("",!0),vue.createElementVNode("span",_hoisted_1$1n,vue.toDisplayString(pe),1),vue.createElementVNode("div",_hoisted_2$1a,[vue.unref(se)[pe]?(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElDropdown),{key:0,onCommand:me=>de(me,pe)},{dropdown:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElDropdownMenu),null,{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElDropdownItem),{command:"scatter"},{default:vue.withCtx(()=>[vue.createTextVNode("普通")]),_:1}),vue.createVNode(vue.unref(elementPlus.ElDropdownItem),{command:"effectScatter"},{default:vue.withCtx(()=>[vue.createTextVNode("特效")]),_:1})]),_:1})]),default:vue.withCtx(()=>[vue.createElementVNode("span",_hoisted_3$12,vue.toDisplayString(vue.unref(se)[pe].type=="scatter"?"普通":"特效"),1)]),_:2},1032,["onCommand"])):vue.createCommentVNode("",!0),vue.createElementVNode("i",{onClick:me=>fe(pe),class:vue.normalizeClass([ve.option.dataShow.hide.includes(pe)?"ri-eye-off-line":"ri-eye-line","mr-2 cursor-pointer"])},null,10,_hoisted_4$X),_hoisted_5$M])]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1})],64))}}),_hoisted_1$1m={class:"flex items-center justify-end flex-1"},_hoisted_2$19=["onClick"],_hoisted_3$11=vue.createElementVNode("i",{class:"cursor-move ri-draggable sortable-handle"},null,-1),_sfc_main$1B=vue.defineComponent({__name:"config",props:{option:{default:{}},type:{default:""},immediate:{type:Boolean,default:!1}},setup(te){var fe;const U=screenDesignMainStore(),G=te,{proxy:ee}=vue.getCurrentInstance(),ne=ee.$globalPreColor,re=[{label:"顶部",value:"top"},{label:"左侧",value:"left"},{label:"右侧",value:"right"},{label:"底部",value:"bottom"}],oe=[{label:"多边形",value:"polygon"},{label:"圆形",value:"circle"}],{setChartData:ie}=useCustomChart(),{seriesItem:le,init:ae,customSeriesData:se}=useRadar();vue.ref(null);const ue=vue.ref(JSON.parse(JSON.stringify((fe=vue.unref(se))!=null&&fe.type?se.value:le)));vue.watch(ue,()=>ce(),{deep:!0}),vue.watch([()=>G.option.dataShow.y,()=>G.option.dataShow.hide],()=>{ae(G.option,()=>{ce()})},{deep:!0,immediate:G.immediate}),vue.watch(()=>G.option.dataShow.x,async()=>{G.option.dataset.source=await ie(G.type,G.option.dataShow.x),ae(G.option,()=>{ce()})});const ce=()=>{const ve=ue.value;Object.keys(G.option.series[0]).forEach(he=>{["areaStyle","label"].includes(he)&&(G.option.series[0][he]=ve[he])}),se.value={...G.option.series[0],data:[]},window.customSeriesData=se.value},de=ve=>{const{hide:he}=G.option.dataShow;he.includes(ve)?he.splice(he.findIndex(pe=>pe==ve),1):he.push(ve)};return(ve,he)=>(vue.openBlock(),vue.createElementBlock(vue.Fragment,null,[vue.createVNode(SettingCommon,{option:ve.option,type:4},null,8,["option"]),vue.createVNode(vue.unref(elementPlus.ElCollapseItem),{title:"雷达图配置"},{default:vue.withCtx(()=>{var pe;return[vue.createVNode(_sfc_main$1J,{name:"样式"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"背景"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSwitch),{modelValue:ve.option.radar.splitArea.show,"onUpdate:modelValue":he[0]||(he[0]=ge=>ve.option.radar.splitArea.show=ge)},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"分割线"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSwitch),{modelValue:ve.option.radar.splitLine.show,"onUpdate:modelValue":he[1]||(he[1]=ge=>ve.option.radar.splitLine.show=ge)},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"形状"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSelect),{modelValue:ve.option.radar.shape,"onUpdate:modelValue":he[2]||(he[2]=ge=>ve.option.radar.shape=ge),size:"small"},{default:vue.withCtx(()=>[(vue.openBlock(),vue.createElementBlock(vue.Fragment,null,vue.renderList(oe,ge=>vue.createVNode(vue.unref(elementPlus.ElOption),{key:ge.value,label:ge.label,value:ge.value},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1})]),_:1}),vue.createVNode(_sfc_main$1J,{name:"坐标轴"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"轴线"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSwitch),{modelValue:ve.option.radar.axisLine.show,"onUpdate:modelValue":he[3]||(he[3]=ge=>ve.option.radar.axisLine.show=ge)},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"刻度"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSwitch),{modelValue:ve.option.radar.axisTick.show,"onUpdate:modelValue":he[4]||(he[4]=ge=>ve.option.radar.axisTick.show=ge)},null,8,["modelValue"])]),_:1})]),_:1}),vue.createVNode(_sfc_main$1J,{name:"范围"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"最小"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInput),{modelValue:ve.option.radar.radius[0],"onUpdate:modelValue":he[5]||(he[5]=ge=>ve.option.radar.radius[0]=ge),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"最大"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInput),{modelValue:ve.option.radar.radius[1],"onUpdate:modelValue":he[6]||(he[6]=ge=>ve.option.radar.radius[1]=ge),size:"small"},null,8,["modelValue"])]),_:1})]),_:1}),vue.createVNode(_sfc_main$1J,{name:"偏移"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"x"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInput),{modelValue:ve.option.radar.center[0],"onUpdate:modelValue":he[7]||(he[7]=ge=>ve.option.radar.center[0]=ge),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"y"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInput),{modelValue:ve.option.radar.center[1],"onUpdate:modelValue":he[8]||(he[8]=ge=>ve.option.radar.center[1]=ge),size:"small"},null,8,["modelValue"])]),_:1})]),_:1}),vue.createVNode(_sfc_main$1J,{name:"指示器"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"展示"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSwitch),{modelValue:ve.option.radar.axisName.show,"onUpdate:modelValue":he[9]||(he[9]=ge=>ve.option.radar.axisName.show=ge)},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"大小"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:ve.option.radar.axisName.fontSize,"onUpdate:modelValue":he[10]||(he[10]=ge=>ve.option.radar.axisName.fontSize=ge),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"颜色"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElColorPicker),{predefine:vue.unref(ne),modelValue:ve.option.radar.axisName.color,"onUpdate:modelValue":he[11]||(he[11]=ge=>ve.option.radar.axisName.color=ge)},null,8,["predefine","modelValue"])]),_:1})]),_:1}),vue.createVNode(_sfc_main$1J,{name:"标签"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"展示"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSwitch),{modelValue:vue.unref(ue).label.show,"onUpdate:modelValue":he[12]||(he[12]=ge=>vue.unref(ue).label.show=ge)},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"位置"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSelect),{modelValue:vue.unref(ue).label.position,"onUpdate:modelValue":he[13]||(he[13]=ge=>vue.unref(ue).label.position=ge),size:"small"},{default:vue.withCtx(()=>[(vue.openBlock(),vue.createElementBlock(vue.Fragment,null,vue.renderList(re,ge=>vue.createVNode(vue.unref(elementPlus.ElOption),{key:ge.value,label:ge.label,value:ge.value},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"旋转"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:vue.unref(ue).label.rotate,"onUpdate:modelValue":he[14]||(he[14]=ge=>vue.unref(ue).label.rotate=ge),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"大小"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:vue.unref(ue).label.fontSize,"onUpdate:modelValue":he[15]||(he[15]=ge=>vue.unref(ue).label.fontSize=ge),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"颜色"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElColorPicker),{predefine:vue.unref(ne),modelValue:vue.unref(ue).label.color,"onUpdate:modelValue":he[16]||(he[16]=ge=>vue.unref(ue).label.color=ge)},null,8,["predefine","modelValue"])]),_:1})]),_:1}),(pe=vue.unref(ue))!=null&&pe.type?(vue.openBlock(),vue.createBlock(_sfc_main$1J,{key:0,name:"系列"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"背景透明度"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:vue.unref(ue).areaStyle.opacity,"onUpdate:modelValue":he[17]||(he[17]=ge=>vue.unref(ue).areaStyle.opacity=ge),min:0,max:1,size:"small",step:.1},null,8,["modelValue"])]),_:1})]),_:1})):vue.createCommentVNode("",!0)]}),_:1}),vue.createVNode(vue.unref(elementPlus.ElCollapseItem),{title:"数据",name:"data"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1J,{name:""},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"X轴",style:{width:"100%"}},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSelect),{modelValue:ve.option.dataShow.x,"onUpdate:modelValue":he[18]||(he[18]=pe=>ve.option.dataShow.x=pe),size:"small",style:{width:"100%"}},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vue.unref(U).getChartData.x,pe=>(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElOption),{key:pe.comment,label:pe.comment,value:pe.comment},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"Y轴",style:{width:"100%","margin-top":"10px"}},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(vueDraggablePlus.VueDraggable),{modelValue:ve.option.dataShow.y,"onUpdate:modelValue":he[19]||(he[19]=pe=>ve.option.dataShow.y=pe),animation:150,handle:".sortable-handle"},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(ve.option.dataShow.y,(pe,ge)=>(vue.openBlock(),vue.createElementBlock("div",{key:pe,class:"w-full sort-item"},[vue.createElementVNode("span",null,vue.toDisplayString(pe),1),vue.createElementVNode("div",_hoisted_1$1m,[vue.createElementVNode("i",{onClick:me=>de(pe),class:vue.normalizeClass([ve.option.dataShow.hide.includes(pe)?"ri-eye-off-line":"ri-eye-line","mr-2 cursor-pointer"])},null,10,_hoisted_2$19),_hoisted_3$11])]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1})],64))}}),_hoisted_1$1l={class:"ml-2"},_hoisted_2$18={class:"flex items-center justify-end flex-1"},_hoisted_3$10=vue.createElementVNode("i",{class:"mr-2 cursor-pointer ri-more-line"},null,-1),_hoisted_4$W=["onClick"],_hoisted_5$L=vue.createElementVNode("i",{class:"cursor-move ri-draggable sortable-handle"},null,-1),_sfc_main$1A=vue.defineComponent({__name:"config",props:{option:{default:{}},type:{default:""},immediate:{type:Boolean,default:!1}},setup(te){screenDesignMainStore();const U=te,{proxy:G}=vue.getCurrentInstance(),ee=G.$globalPreColor;useCustomChart();const{init:ne,tableConfig:re,customSeriesData:oe}=useTable();vue.ref(null);const ie=vue.ref(JSON.parse(JSON.stringify(re)));vue.watch(ie,()=>le(),{deep:!0}),vue.watch(()=>U.option.dataShow,()=>{ne(U.option)},{deep:!0,immediate:U.immediate});const le=()=>{},ae=se=>{const{hide:ue=[]}=U.option.dataShow;ue.includes(se)?ue.splice(ue.findIndex(ce=>ce==se),1):ue.push(se),U.option.dataShow.hide=ue};return(se,ue)=>(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElCollapseItem),{title:"数据",name:"data"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1J,{name:"列名"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"",style:{width:"100%","margin-top":"10px"}},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(vueDraggablePlus.VueDraggable),{modelValue:se.option.dataShow.y,"onUpdate:modelValue":ue[0]||(ue[0]=ce=>se.option.dataShow.y=ce),animation:150,handle:".sortable-handle"},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(se.option.dataShow.y,(ce,de)=>(vue.openBlock(),vue.createElementBlock("div",{key:ce,class:"w-full sort-item"},[vue.unref(oe)[ce]?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[vue.createVNode(vue.unref(elementPlus.ElColorPicker),{predefine:vue.unref(ee),size:"small",modelValue:vue.unref(oe)[ce].bgColor,"onUpdate:modelValue":fe=>vue.unref(oe)[ce].bgColor=fe},null,8,["predefine","modelValue","onUpdate:modelValue"]),vue.createVNode(vue.unref(elementPlus.ElColorPicker),{predefine:vue.unref(ee),size:"small",modelValue:vue.unref(oe)[ce].color,"onUpdate:modelValue":fe=>vue.unref(oe)[ce].color=fe},null,8,["predefine","modelValue","onUpdate:modelValue"])],64)):vue.createCommentVNode("",!0),vue.createElementVNode("span",_hoisted_1$1l,vue.toDisplayString(ce),1),vue.createElementVNode("div",_hoisted_2$18,[vue.unref(oe)[ce]?(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElPopover),{key:0,width:400,trigger:"hover"},{reference:vue.withCtx(()=>[_hoisted_3$10]),default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1J,{name:""},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"前缀"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInput),{modelValue:vue.unref(oe)[ce].prefix,"onUpdate:modelValue":fe=>vue.unref(oe)[ce].prefix=fe,size:"small",placeholder:"前缀"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024),vue.createVNode(_sfc_main$1I,{name:"后缀"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInput),{modelValue:vue.unref(oe)[ce].suffix,"onUpdate:modelValue":fe=>vue.unref(oe)[ce].suffix=fe,size:"small",placeholder:"后缀"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024),vue.createVNode(_sfc_main$1I,{name:"保留小数"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{min:0,modelValue:vue.unref(oe)[ce].toFixed,"onUpdate:modelValue":fe=>vue.unref(oe)[ce].toFixed=fe,size:"small"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024),vue.createVNode(_sfc_main$1I,{name:"字体大小"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:vue.unref(oe)[ce].fontSize,"onUpdate:modelValue":fe=>vue.unref(oe)[ce].fontSize=fe,size:"small"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024),vue.createVNode(_sfc_main$1I,{name:"隐藏标题"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSwitch),{modelValue:vue.unref(oe)[ce].hideLabel,"onUpdate:modelValue":fe=>vue.unref(oe)[ce].hideLabel=fe,size:"small"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024)]),_:2},1024)]),_:2},1024)):vue.createCommentVNode("",!0),vue.createElementVNode("i",{onClick:fe=>ae(ce),class:vue.normalizeClass([(se.option.dataShow.hide??[]).includes(ce)?"ri-eye-off-line":"ri-eye-line","mr-2 cursor-pointer"])},null,10,_hoisted_4$W),_hoisted_5$L])]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1}))}}),_hoisted_1$1k={class:"ml-2"},_hoisted_2$17={class:"flex items-center justify-end flex-1"},_hoisted_3$$=vue.createElementVNode("i",{class:"mr-2 cursor-pointer ri-more-line"},null,-1),_hoisted_4$V=["onClick"],_hoisted_5$K=vue.createElementVNode("i",{class:"cursor-move ri-draggable sortable-handle"},null,-1),_sfc_main$1z=vue.defineComponent({__name:"config",props:{option:{default:{}},type:{default:""},immediate:{type:Boolean,default:!1}},setup(te){screenDesignMainStore();const U=te,{proxy:G}=vue.getCurrentInstance(),ee=G.$globalPreColor;useCustomChart();const{init:ne,tableConfig:re,customSeriesData:oe}=useTable();vue.ref(null);const ie=vue.ref(JSON.parse(JSON.stringify(re)));vue.watch(ie,()=>le(),{deep:!0}),vue.watch(()=>U.option.dataShow,()=>{ne(U.option)},{deep:!0,immediate:U.immediate});const le=()=>{},ae=se=>{const{hide:ue}=U.option.dataShow;ue.includes(se)?ue.splice(ue.findIndex(ce=>ce==se),1):ue.push(se)};return(se,ue)=>(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElCollapseItem),{title:"数据",name:"data"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1J,{name:"表格设置"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"显示序号"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSwitch),{modelValue:U.option.showIndex,"onUpdate:modelValue":ue[0]||(ue[0]=ce=>U.option.showIndex=ce)},null,8,["modelValue"])]),_:1})]),_:1}),vue.createVNode(_sfc_main$1J,{name:"列名"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"",style:{width:"100%","margin-top":"10px"}},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(vueDraggablePlus.VueDraggable),{modelValue:se.option.dataShow.y,"onUpdate:modelValue":ue[1]||(ue[1]=ce=>se.option.dataShow.y=ce),animation:150,handle:".sortable-handle"},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(se.option.dataShow.y,(ce,de)=>(vue.openBlock(),vue.createElementBlock("div",{key:ce,class:"w-full sort-item"},[vue.unref(oe)[ce]?(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElColorPicker),{key:0,predefine:vue.unref(ee),size:"small",modelValue:vue.unref(oe)[ce].color,"onUpdate:modelValue":fe=>vue.unref(oe)[ce].color=fe},null,8,["predefine","modelValue","onUpdate:modelValue"])):vue.createCommentVNode("",!0),vue.createElementVNode("span",_hoisted_1$1k,vue.toDisplayString(ce),1),vue.createElementVNode("div",_hoisted_2$17,[vue.unref(oe)[ce]?(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElPopover),{key:0,width:400,trigger:"hover"},{reference:vue.withCtx(()=>[_hoisted_3$$]),default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1J,{name:""},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"前缀"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInput),{modelValue:vue.unref(oe)[ce].prefix,"onUpdate:modelValue":fe=>vue.unref(oe)[ce].prefix=fe,size:"small",placeholder:"前缀"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024),vue.createVNode(_sfc_main$1I,{name:"后缀"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInput),{modelValue:vue.unref(oe)[ce].suffix,"onUpdate:modelValue":fe=>vue.unref(oe)[ce].suffix=fe,size:"small",placeholder:"后缀"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024),vue.createVNode(_sfc_main$1I,{name:"保留小数"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{min:0,modelValue:vue.unref(oe)[ce].toFixed,"onUpdate:modelValue":fe=>vue.unref(oe)[ce].toFixed=fe,size:"small"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024),vue.createVNode(_sfc_main$1I,{name:"统计"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSwitch),{modelValue:vue.unref(oe)[ce].sum,"onUpdate:modelValue":fe=>vue.unref(oe)[ce].sum=fe},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024)]),_:2},1024)]),_:2},1024)):vue.createCommentVNode("",!0),vue.createElementVNode("i",{onClick:fe=>ae(ce),class:vue.normalizeClass([se.option.dataShow.hide.includes(ce)?"ri-eye-off-line":"ri-eye-line","mr-2 cursor-pointer"])},null,10,_hoisted_4$V),_hoisted_5$K])]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1}))}}),_hoisted_1$1j={class:"flex items-center"},_hoisted_2$16=vue.createElementVNode("span",{class:"ml-1 mr-1"},"-",-1),_hoisted_3$_={class:"flex items-center"},_hoisted_4$U=vue.createElementVNode("span",{class:"ml-1 mr-1"},"-",-1),_sfc_main$1y=vue.defineComponent({__name:"config",props:{option:{default:{}},type:{default:""},immediate:{type:Boolean,default:!1}},setup(te){const U=screenDesignMainStore(),G=te,{proxy:ee}=vue.getCurrentInstance(),ne=ee.$globalPreColor,{init:re,city:oe}=useMap();return vue.watch(()=>G.option.style.style1,async ie=>{G.option.series[1]=ie},{deep:!0,immediate:G.immediate}),vue.watch(()=>G.option.style.style2,async ie=>{G.option.series[2]=ie},{deep:!0,immediate:G.immediate}),(ie,le)=>(vue.openBlock(),vue.createElementBlock(vue.Fragment,null,[vue.createVNode(SettingCommon,{option:ie.option,type:9},null,8,["option"]),vue.createVNode(vue.unref(elementPlus.ElCollapseItem),{title:"地图数据"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1J,{name:""},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElTreeSelect),{modelValue:ie.option.code,"onUpdate:modelValue":le[0]||(le[0]=ae=>ie.option.code=ae),data:vue.unref(oe),props:{label:"name",value:"code",children:"children"},onChange:le[1]||(le[1]=ae=>vue.unref(re)(ie.option)),filterable:"","node-key":"code","check-strictly":""},null,8,["modelValue","data"])]),_:1})]),_:1}),vue.createVNode(vue.unref(elementPlus.ElCollapseItem),{title:"视觉映射"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1J,{name:""},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"展示"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSwitch),{modelValue:ie.option.visualMap.show,"onUpdate:modelValue":le[2]||(le[2]=ae=>ie.option.visualMap.show=ae)},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"文本"},{default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_1$1j,[vue.createVNode(vue.unref(elementPlus.ElInput),{modelValue:ie.option.visualMap.text[1],"onUpdate:modelValue":le[3]||(le[3]=ae=>ie.option.visualMap.text[1]=ae),size:"small"},null,8,["modelValue"]),_hoisted_2$16,vue.createVNode(vue.unref(elementPlus.ElInput),{modelValue:ie.option.visualMap.text[0],"onUpdate:modelValue":le[4]||(le[4]=ae=>ie.option.visualMap.text[0]=ae),size:"small"},null,8,["modelValue"])])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"最小值-最高值"},{default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_3$_,[vue.createVNode(vue.unref(elementPlus.ElInput),{modelValue:ie.option.visualMap.min,"onUpdate:modelValue":le[5]||(le[5]=ae=>ie.option.visualMap.min=ae),size:"small"},null,8,["modelValue"]),_hoisted_4$U,vue.createVNode(vue.unref(elementPlus.ElInput),{modelValue:ie.option.visualMap.max,"onUpdate:modelValue":le[6]||(le[6]=ae=>ie.option.visualMap.max=ae),size:"small"},null,8,["modelValue"])])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"最小颜色-最高颜色"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElColorPicker),{predefine:vue.unref(ne),modelValue:ie.option.visualMap.inRange.color[0],"onUpdate:modelValue":le[7]||(le[7]=ae=>ie.option.visualMap.inRange.color[0]=ae)},null,8,["predefine","modelValue"]),vue.createTextVNode(" - "),vue.createVNode(vue.unref(elementPlus.ElColorPicker),{predefine:vue.unref(ne),modelValue:ie.option.visualMap.inRange.color[1],"onUpdate:modelValue":le[8]||(le[8]=ae=>ie.option.visualMap.inRange.color[1]=ae)},null,8,["predefine","modelValue"])]),_:1})]),_:1})]),_:1}),vue.createVNode(vue.unref(elementPlus.ElCollapseItem),{title:"地图"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1J,{name:""},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"展示标签"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSwitch),{modelValue:ie.option.geo.label.show,"onUpdate:modelValue":le[9]||(le[9]=ae=>ie.option.geo.label.show=ae)},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"缩放"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{step:.1,modelValue:ie.option.geo.zoom,"onUpdate:modelValue":le[10]||(le[10]=ae=>ie.option.geo.zoom=ae),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"字体大小"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:ie.option.geo.label.fontSize,"onUpdate:modelValue":le[11]||(le[11]=ae=>ie.option.geo.label.fontSize=ae),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"字体颜色"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElColorPicker),{predefine:vue.unref(ne),modelValue:ie.option.geo.label.color,"onUpdate:modelValue":le[12]||(le[12]=ae=>ie.option.geo.label.color=ae)},null,8,["predefine","modelValue"])]),_:1})]),_:1}),vue.createVNode(_sfc_main$1J,{name:"移动效果"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"区块颜色"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElColorPicker),{predefine:vue.unref(ne),modelValue:ie.option.geo.emphasis.itemStyle.areaColor,"onUpdate:modelValue":le[13]||(le[13]=ae=>ie.option.geo.emphasis.itemStyle.areaColor=ae)},null,8,["predefine","modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"边框颜色"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElColorPicker),{predefine:vue.unref(ne),modelValue:ie.option.geo.emphasis.itemStyle.borderColor,"onUpdate:modelValue":le[14]||(le[14]=ae=>ie.option.geo.emphasis.itemStyle.borderColor=ae)},null,8,["predefine","modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"边框大小"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:ie.option.geo.emphasis.itemStyle.borderWidth,"onUpdate:modelValue":le[15]||(le[15]=ae=>ie.option.geo.emphasis.itemStyle.borderWidth=ae),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"字体大小"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:ie.option.geo.emphasis.label.fontSize,"onUpdate:modelValue":le[16]||(le[16]=ae=>ie.option.geo.emphasis.label.fontSize=ae),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"字体颜色"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElColorPicker),{predefine:vue.unref(ne),modelValue:ie.option.geo.emphasis.label.color,"onUpdate:modelValue":le[17]||(le[17]=ae=>ie.option.geo.emphasis.label.color=ae)},null,8,["predefine","modelValue"])]),_:1})]),_:1})]),_:1}),(vue.openBlock(),vue.createElementBlock(vue.Fragment,null,vue.renderList(["style1","style2"],ae=>vue.createVNode(vue.unref(elementPlus.ElCollapseItem),{title:ae=="style1"?"散点样式":"点位样式"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1J,{name:""},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"形状"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSelect),{modelValue:ie.option.style[ae].symbol,"onUpdate:modelValue":se=>ie.option.style[ae].symbol=se,size:"small"},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vue.unref(dict).shape,se=>(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElOption),{key:se.value,label:se.label,value:se.value},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue"])]),_:2},1024),vue.createVNode(_sfc_main$1I,{name:"大小"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:ie.option.style[ae].symbolSize,"onUpdate:modelValue":se=>ie.option.style[ae].symbolSize=se,size:"small"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024),vue.createVNode(_sfc_main$1I,{name:"形状颜色"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElColorPicker),{predefine:vue.unref(ne),modelValue:ie.option.style[ae].itemStyle.color,"onUpdate:modelValue":se=>ie.option.style[ae].itemStyle.color=se},null,8,["predefine","modelValue","onUpdate:modelValue"])]),_:2},1024),ie.option.style[ae].label?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[vue.createVNode(_sfc_main$1I,{name:"值显示"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSwitch),{modelValue:ie.option.style[ae].label.show,"onUpdate:modelValue":se=>ie.option.style[ae].label.show=se},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024),vue.createVNode(_sfc_main$1I,{name:"颜色"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElColorPicker),{predefine:vue.unref(ne),modelValue:ie.option.style[ae].label.color,"onUpdate:modelValue":se=>ie.option.style[ae].label.color=se},null,8,["predefine","modelValue","onUpdate:modelValue"])]),_:2},1024),vue.createVNode(_sfc_main$1I,{name:"字体大小"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:ie.option.style[ae].label.fontSize,"onUpdate:modelValue":se=>ie.option.style[ae].label.fontSize=se,size:"small"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024)],64)):vue.createCommentVNode("",!0)]),_:2},1024)]),_:2},1032,["title"])),64)),vue.createVNode(vue.unref(elementPlus.ElCollapseItem),{title:"数据",name:"data"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1J,{name:""},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"维度",style:{width:"100%"}},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSelect),{modelValue:ie.option.dataShow.x,"onUpdate:modelValue":le[18]||(le[18]=ae=>ie.option.dataShow.x=ae),size:"small",style:{width:"100%"}},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vue.unref(U).getChartData.x,ae=>(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElOption),{key:ae.comment,label:ae.comment,value:ae.comment},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"统计",style:{width:"100%"}},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSelect),{modelValue:ie.option.dataShow.y,"onUpdate:modelValue":le[19]||(le[19]=ae=>ie.option.dataShow.y=ae),size:"small",style:{width:"100%"}},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vue.unref(U).getChartData.y.filter(ae=>ae.aggType!="other"),ae=>(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElOption),{key:ae.showLabel,label:ae.showLabel,value:ae.showLabel},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1})],64))}}),moudleComponents={};for(let te=0;te<=4;te+=1){let U=null;if(te==0&&(U=Object.assign({"../decoration/decoration1/setting.vue":__vite_glob_0_0,"../decoration/decoration10/setting.vue":__vite_glob_0_1,"../decoration/decoration11/setting.vue":__vite_glob_0_2,"../decoration/decoration12/setting.vue":__vite_glob_0_3,"../decoration/decoration2/setting.vue":__vite_glob_0_4,"../decoration/decoration3/setting.vue":__vite_glob_0_5,"../decoration/decoration4/setting.vue":__vite_glob_0_6,"../decoration/decoration5/setting.vue":__vite_glob_0_7,"../decoration/decoration6/setting.vue":__vite_glob_0_8,"../decoration/decoration8/setting.vue":__vite_glob_0_9,"../decoration/decoration9/setting.vue":__vite_glob_0_10})),te==1&&(U=Object.assign({"../border/border1/setting.vue":__vite_glob_1_0,"../border/border10/setting.vue":__vite_glob_1_1,"../border/border11/setting.vue":__vite_glob_1_2,"../border/border12/setting.vue":__vite_glob_1_3,"../border/border13/setting.vue":__vite_glob_1_4,"../border/border2/setting.vue":__vite_glob_1_5,"../border/border3/setting.vue":__vite_glob_1_6,"../border/border4/setting.vue":__vite_glob_1_7,"../border/border5/setting.vue":__vite_glob_1_8,"../border/border6/setting.vue":__vite_glob_1_9,"../border/border7/setting.vue":__vite_glob_1_10,"../border/border8/setting.vue":__vite_glob_1_11,"../border/border9/setting.vue":__vite_glob_1_12})),te==2&&(U=Object.assign({"../basic/horizontal-line/setting.vue":__vite_glob_2_0,"../basic/iframe/setting.vue":__vite_glob_2_1,"../basic/img/setting.vue":__vite_glob_2_2,"../basic/number/setting.vue":__vite_glob_2_3,"../basic/square/setting.vue":__vite_glob_2_4,"../basic/text/setting.vue":__vite_glob_2_5,"../basic/time/setting.vue":__vite_glob_2_6,"../basic/vertical-line/setting.vue":__vite_glob_2_7})),te==3&&(moudleComponents[3]=_sfc_main$1G,moudleComponents[2]=_sfc_main$1E,moudleComponents[1]=_sfc_main$1F,moudleComponents[4]=_sfc_main$1B,moudleComponents[5]=_sfc_main$1D,moudleComponents[6]=_sfc_main$1C,moudleComponents[7]=_sfc_main$1A,moudleComponents[8]=_sfc_main$1z,moudleComponents[9]=_sfc_main$1y),te==4&&(U=Object.assign({"../control/input/setting.vue":__vite_glob_3_0,"../control/select/setting.vue":__vite_glob_3_1})),U)for(const[G,ee]of Object.entries(U)){const ne=G.split("/")[2];moudleComponents[ne]=ee.default}}const _withScopeId$w=te=>(vue.pushScopeId("data-v-91a48762"),te=te(),vue.popScopeId(),te),_hoisted_1$1i=_withScopeId$w(()=>vue.createElementVNode("div",{class:"flex items-center h-10 p-2"},[vue.createElementVNode("span",{class:"w-1 h-4 mr-2 bg-color-primary"}),vue.createTextVNode(" 大屏设置 ")],-1)),_hoisted_2$15=_withScopeId$w(()=>vue.createElementVNode("div",{class:"h-px mb-2",style:{"background-color":"var(--el-border-color-light)"}},null,-1)),_hoisted_3$Z={class:"p-2"},_sfc_main$1x=vue.defineComponent({__name:"rightPannel",setup(te){const U=screenDesignMainStore(),G=vue.ref({});vue.provide("widgetConfig",G);const ee=vue.ref(""),ne=vue.computed(()=>U.targetsWidget.length===1?U.getWidgetList.find(oe=>{var ie;return oe.id==((ie=U.targetsWidget[0])==null?void 0:ie.id)}):null);vue.watch(ne,oe=>{re()});const re=()=>{if(!vue.unref(ne)){G.value={};return}const oe=U.getWidgetList.find(ie=>ie.id==vue.unref(ne).id);vue.unref(ne).chartType&&(oe==null?void 0:oe.modelType)!="INDICATORS"&&(window.customSeriesData=oe.customize.customSeriesData,U.setChartData(U.tempChartData[oe.id].params)),G.value=oe,ee.value=""};return re(),(oe,ie)=>(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElScrollbar),{height:"100%"},{default:vue.withCtx(()=>{var le,ae,se;return[_hoisted_1$1i,_hoisted_2$15,((le=vue.unref(G))==null?void 0:le.modelType)=="INDICATORS"?(vue.openBlock(),vue.createBlock(_sfc_main$2k,{key:0})):(ae=vue.unref(G))!=null&&ae.chartType?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:1},[vue.createVNode(_sfc_main$2k),vue.createElementVNode("div",_hoisted_3$Z,[vue.createVNode(vue.unref(elementPlus.ElCollapse),{accordion:"",modelValue:vue.unref(ee),"onUpdate:modelValue":ie[0]||(ie[0]=ue=>vue.isRef(ee)?ee.value=ue:null)},{default:vue.withCtx(()=>[(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(vue.unref(moudleComponents)[vue.unref(G).chartType]),{key:vue.unref(G).id,immediate:"",option:vue.unref(G).customize,type:vue.unref(G).chartType},null,8,["option","type"]))]),_:1},8,["modelValue"])])],64)):vue.unref(moudleComponents)[(se=vue.unref(G))==null?void 0:se.type]?(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(vue.unref(moudleComponents)[vue.unref(G).type]),{key:vue.unref(G).id})):(vue.openBlock(),vue.createBlock(stagetSetting,{key:3}))]}),_:1}))}}),rightPannel_vue_vue_type_style_index_0_scoped_91a48762_lang="",RightPannel=_export_sfc$2(_sfc_main$1x,[["__scopeId","data-v-91a48762"]]),_hoisted_1$1h={class:"flex flex-col overflow-hidden ace-big-screen"},_hoisted_2$14={class:"h-10 top-pannel"},_hoisted_3$Y={class:"relative flex flex-1"},_hoisted_4$T={class:"left-pannel"},_hoisted_5$J={class:"flex-1 p-2 overflow-hidden",id:"design-container"},_hoisted_6$E={class:"relative w-full h-full"},_hoisted_7$y={key:0,class:"right-pannel w-80"},_sfc_main$1w=vue.defineComponent({__name:"design",emits:["preview","save"],setup(te,{expose:U,emit:G}){const ee=G,{proxy:ne}=vue.getCurrentInstance(),re=screenDesignMainStore(),oe=vue.ref(!1),ie=vue.ref(""),le=vue.ref("");return vue.watch(oe,se=>{se?document.getElementsByTagName("html")[0].className=re.theme:document.getElementsByTagName("html")[0].className=""}),U({init:async(se="")=>{if(le.value=se,ie.value="大屏管理",oe.value=!0,re.widgetConfg={config:{},list:[]},re.clearSketchRuleLine(),re.setRightPannel(!1),se){const ue=await ne.$baseHttp.get("/api/ace-data-center/screen/detail",{params:{id:se},headers:{loading:!0}});ie.value=ue.data.title,re.widgetConfg=chartJsonFormat(ue.data.config)}re.setStageWidth(re.widgetConfg.config.stageWidth??1920),re.setStageHeight(re.widgetConfg.config.stageHeight??1080)}}),(se,ue)=>{const ce=vue.resolveComponent("AppDrawer");return vue.openBlock(),vue.createBlock(ce,{modelValue:vue.unref(oe),"onUpdate:modelValue":ue[4]||(ue[4]=de=>vue.isRef(oe)?oe.value=de:null),title:"大屏设计",size:"100%",withHeader:!1,modalClass:"ace-modal-drawer",customClass:"ace-big-design-dialog"},{default:vue.withCtx(()=>[vue.withDirectives((vue.openBlock(),vue.createElementBlock("div",_hoisted_1$1h,[vue.createElementVNode("div",_hoisted_2$14,[vue.createVNode(TopPannel,{title:vue.unref(ie),"onUpdate:title":ue[0]||(ue[0]=de=>vue.isRef(ie)?ie.value=de:null),id:vue.unref(le),onPreview:ue[1]||(ue[1]=de=>ee("preview",de)),onSave:ue[2]||(ue[2]=de=>{le.value=de,ee("save")}),onBack:ue[3]||(ue[3]=()=>oe.value=!1)},null,8,["title","id"])]),vue.createElementVNode("div",_hoisted_3$Y,[vue.createElementVNode("div",_hoisted_4$T,[vue.createVNode(LeftPannel)]),vue.createElementVNode("div",_hoisted_5$J,[vue.createElementVNode("div",_hoisted_6$E,[vue.createVNode(Main)])]),vue.unref(re).getRightPannel?(vue.openBlock(),vue.createElementBlock("div",_hoisted_7$y,[vue.createVNode(RightPannel)])):vue.createCommentVNode("",!0)])])),[[vue.unref(elementPlus.vLoading),vue.unref(re).createLoading]])]),_:1},8,["modelValue"])}}}),design_vue_vue_type_style_index_0_lang="",_withScopeId$v=te=>(vue.pushScopeId("data-v-ec07a7d2"),te=te(),vue.popScopeId(),te),_hoisted_1$1g={key:1,class:"flex flex-wrap items-center justify-between"},_hoisted_2$13={class:"item-container"},_hoisted_3$X={class:"item-image"},_hoisted_4$S=["src"],_hoisted_5$I=["onClick"],_hoisted_6$D=_withScopeId$v(()=>vue.createElementVNode("span",{class:"text-base text-white cursor-pointer"},"预览大屏",-1)),_hoisted_7$x=[_hoisted_6$D],_hoisted_8$t={class:"flex items-center justify-between item-footer"},_hoisted_9$p={class:"flex"},_hoisted_10$k=["onClick"],_hoisted_11$f=_withScopeId$v(()=>vue.createElementVNode("i",{class:"mr-1 ri-edit-line"},null,-1)),_hoisted_12$d=["onClick"],_hoisted_13$b=_withScopeId$v(()=>vue.createElementVNode("i",{class:"mr-1 ri-delete-bin-line"},null,-1)),_hoisted_14$a=_withScopeId$v(()=>vue.createElementVNode("div",{class:"item"},null,-1)),_hoisted_15$6=_withScopeId$v(()=>vue.createElementVNode("div",{class:"item"},null,-1)),_sfc_main$1v=vue.defineComponent({__name:"index",emits:["preview","auto-play"],setup(te,{emit:U}){const G=U,{proxy:ee}=vue.getCurrentInstance(),{resetUrl:ne}=ee.$globalUtils,re=vue.ref(null),oe=vue.ref(null),ie=vue.reactive([{name:"新增",key:"ADD",type:"primary"},{name:"自动播放",key:"AUTO-PLAY",type:"primary"}]),le=vue.reactive([{name:"名称",type:FieldType.Text,fieldName:"title",value:""}]),ae=async se=>{const{type:ue,row:ce}=se;switch(ue){case"PREVIEW":G("preview","list",(ce==null?void 0:ce.id)??"");break;case"AUTO-PLAY":G("auto-play");break;case"ADD":case"EDIT":vue.unref(oe).init((ce==null?void 0:ce.id)??"");break;case"DEL":ee.$baseConfirm({content:"是否确定删除",callConfirm:async()=>{await ee.$baseHttp.post("/api/ace-data-center/screen/remove",{},{params:{ids:ce.id},headers:{loading:!0}})&&(ee.$message({type:"success",message:"删除成功",plain:!0}),vue.unref(re).getData())}});break}};return(se,ue)=>{const ce=vue.resolveComponent("AppEmpty"),de=vue.resolveComponent("AppList");return vue.openBlock(),vue.createBlock(de,{url:`/api/ace-data-center/screen/list?descs=create_time&projectId=${vue.unref(ee).$baseGetCurrentProjectId()}`,tableData:[],searchForm:vue.unref(le),searchBtns:vue.unref(ie),listType:"custom",onBtnClick:ae,ref_key:"appListRef",ref:re},{"list-slot":vue.withCtx(({list:fe,loading:ve})=>[vue.createVNode(vue.unref(elementPlus.ElSkeleton),{loading:ve,animated:""},{default:vue.withCtx(()=>[fe.length==0?(vue.openBlock(),vue.createBlock(ce,{key:0,description:"暂无数据"})):(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$1g,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(fe,(he,pe)=>(vue.openBlock(),vue.createElementBlock("div",{key:pe,class:"item"},[vue.createElementVNode("div",_hoisted_2$13,[vue.createElementVNode("div",_hoisted_3$X,[vue.createElementVNode("img",{src:vue.unref(ne)(he.imageUrl??"")||"https://fuss10.elemecdn.com/d/e6/c4d93a3805b3ce3f323f7974e6f78jpeg.jpeg"},null,8,_hoisted_4$S),vue.createElementVNode("div",{class:"flex items-center justify-center item-popup",onClick:ge=>ae({type:"PREVIEW",row:he,index:pe})},_hoisted_7$x,8,_hoisted_5$I)]),vue.createElementVNode("div",_hoisted_8$t,[vue.createElementVNode("div",null,vue.toDisplayString(he.title),1),vue.createElementVNode("div",_hoisted_9$p,[vue.createElementVNode("span",{onClick:ge=>ae({type:"EDIT",row:he,index:pe}),class:"flex items-center text-xs text-gray-600 cursor-pointer"},[_hoisted_11$f,vue.createTextVNode(" 编辑大屏 ")],8,_hoisted_10$k),vue.createElementVNode("span",{onClick:ge=>ae({type:"DEL",row:he,index:pe}),class:"flex items-center ml-2 text-xs cursor-pointer text-color-danger"},[_hoisted_13$b,vue.createTextVNode(" 删除 ")],8,_hoisted_12$d)])])])]))),128)),_hoisted_14$a,_hoisted_15$6]))]),_:2},1032,["loading"])]),default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1w,{ref_key:"designRef",ref:oe,onSave:ue[0]||(ue[0]=fe=>vue.unref(re).getData()),onPreview:ue[1]||(ue[1]=fe=>G("preview","content",fe))},null,512)]),_:1},8,["url","searchForm","searchBtns"])}}}),index_vue_vue_type_style_index_0_scoped_ec07a7d2_lang="",aceBigScreen=_export_sfc$2(_sfc_main$1v,[["__scopeId","data-v-ec07a7d2"]]);let currRenderDom=null,currelRectification="",currelRectificationLevel="",currelRectificationIsKeepRatio="",resizeListener=null,timer=null,currScale=1,isElRectification=!1;const autofit={isAutofitRunnig:!1,init(te={},U=!0){U&&console.log("autofit.js is running");const{dw:G=1920,dh:ee=1080,el:ne=typeof te=="string"?te:"body",resize:re=!0,ignore:oe=[],transition:ie="none",delay:le=0,limit:ae=.1}=te;currRenderDom=ne;let se=document.querySelector(ne);if(!se){console.error(`autofit: '${ne}' is not exist`);return}const ue=document.createElement("style"),ce=document.createElement("style");ue.lang="text/css",ce.lang="text/css",ue.id="autofit-style",ce.id="ignoreStyle",ue.innerHTML="body {overflow: hidden;}";const de=document.querySelector("body");de.appendChild(ue),de.appendChild(ce),se.style.height=`${ee}px`,se.style.width=`${G}px`,se.style.transformOrigin="0 0",se.style.overflow="hidden",keepFit(G,ee,se,oe,ae),resizeListener=()=>{clearTimeout(timer),le!=0?timer=setTimeout(()=>{keepFit(G,ee,se,oe,ae),isElRectification&&elRectification(currelRectification,currelRectificationIsKeepRatio,currelRectificationLevel)},le):(keepFit(G,ee,se,oe,ae),isElRectification&&elRectification(currelRectification,currelRectificationIsKeepRatio,currelRectificationLevel))},re&&window.addEventListener("resize",resizeListener),this.isAutofitRunnig=!0,setTimeout(()=>{se.style.transition=`${ie}s`})},off(te="body"){try{isElRectification=!1,window.removeEventListener("resize",resizeListener),document.querySelector("#autofit-style").remove();const U=document.querySelector("#ignoreStyle");U&&U.remove(),document.querySelector(currRenderDom||te).style="",isElRectification&&offelRectification()}catch(U){console.error("autofit: Failed to remove normally",U),this.isAutofitRunnig=!1}this.isAutofitRunnig&&console.log("autofit.js is off")}};function elRectification(te,U=!0,G=1){autofit.isAutofitRunnig||console.error("autofit.js:autofit has not been initialized yet"),!te&&console.error(`autofit.js:bad selector: ${te}`),currelRectification=te,currelRectificationLevel=G,currelRectificationIsKeepRatio=U;const ee=document.querySelectorAll(te);if(ee.length==0){console.error("autofit.js:elRectification found no element");return}for(let ne of ee){let re=currScale==1?1:currScale*G;isElRectification||(ne.originalWidth=ne.clientWidth,ne.originalHeight=ne.clientHeight),U?(ne.style.width=`${ne.originalWidth*re}px`,ne.style.height=`${ne.originalHeight*re}px`):(ne.style.width=`${100*re}%`,ne.style.height=`${100*re}%`),ne.style.transform=`scale(${1/currScale})`,ne.style.transformOrigin="0 0"}isElRectification=!0}function offelRectification(){if(currelRectification)for(let te of document.querySelectorAll(currelRectification))te.style.width="",te.style.height="",te.style.transform=""}function keepFit(te,U,G,ee,ne){let re=document.documentElement.clientHeight,oe=document.documentElement.clientWidth;currScale=oe/re<te/U?oe/te:re/U,currScale=Math.abs(1-currScale)>ne?currScale.toFixed(2):1;let ie=Math.round(re/currScale),le=Math.round(oe/currScale);G.style.height=`${ie}px`,G.style.width=`${le}px`,G.style.transform=`scale(${currScale})`;const ae=document.querySelector("#ignoreStyle");ae.innerHTML="";for(let se of ee){let ue=se.el||se.dom;if(typeof se=="string"&&(ue=se),!ue){console.error(`autofit: bad selector: ${ue}`);continue}let ce=se.scale?se.scale:1/currScale,de=ce!=currScale?se.fontSize:"autofit",fe=ce!=currScale?se.width:"autofit",ve=ce!=currScale?se.height:"autofit";new RegExp(`${ue}( |{)`,"gm").test(ae.innerHTML)||(ae.innerHTML+=`
|
|
789
|
+
`("loading");vue.defineComponent({name:"Loading",setup(te,{slots:U}){return()=>vue.createVNode(o,null,{default:()=>{var G;return[vue.createVNode("svg",{width:"50px",height:"50px"},[vue.createVNode("circle",{cx:"25",cy:"25",r:"20",fill:"transparent","stroke-width":"3","stroke-dasharray":"31.415, 31.415",stroke:"#02bcfe","stroke-linecap":"round"},[vue.createVNode("animateTransform",{attributeName:"transform",type:"rotate",values:"0, 25 25;360, 25 25",dur:"1.5s",repeatCount:"indefinite"},null),vue.createVNode("animate",{attributeName:"stroke",values:"#02bcfe;#3be6cb;#02bcfe",dur:"3s",repeatCount:"indefinite"},null)]),vue.createVNode("circle",{cx:"25",cy:"25",r:"10",fill:"transparent","stroke-width":"3","stroke-dasharray":"15.7, 15.7",stroke:"#3be6cb","stroke-linecap":"round"},[vue.createVNode("animateTransform",{attributeName:"transform",type:"rotate",values:"360, 25 25;0, 25 25",dur:"1.5s",repeatCount:"indefinite"},null),vue.createVNode("animate",{attributeName:"stroke",values:"#3be6cb;#02bcfe;#3be6cb",dur:"3s",repeatCount:"indefinite"},null)])]),vue.createVNode("div",{class:"loading-tip"},[(G=U.default)==null?void 0:G.call(U)])]}})}});const _sfc_main$2Y=vue.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})},list:{default:()=>[]}},setup(te){const U=te,G=vue.computed(()=>{var ne,re;return(ne=U.config.customize)!=null&&ne.decorationColor1||(re=U.config.customize)!=null&&re.decorationColor2?[U.config.customize.decorationColor1,U.config.customize.decorationColor2]:[]}),{customRef:ee}=useRefresh(U.config);return(ne,re)=>(vue.openBlock(),vue.createBlock(vue.unref(V$3),{color:vue.unref(G),ref_key:"customRef",ref:ee},null,8,["color"]))}}),__vite_glob_0_0$1=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$2Y},Symbol.toStringTag,{value:"Module"})),_sfc_main$2X=vue.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})},list:{default:()=>[]}},setup(te){const U=te,G=vue.computed(()=>{var ne,re;return(ne=U.config.customize)!=null&&ne.decorationColor1||(re=U.config.customize)!=null&&re.decorationColor2?[U.config.customize.decorationColor1,U.config.customize.decorationColor2]:[]}),{customRef:ee}=useRefresh(U.config);return(ne,re)=>(vue.openBlock(),vue.createBlock(vue.unref(V$2),{color:vue.unref(G),ref_key:"customRef",ref:ee},null,8,["color"]))}}),__vite_glob_0_1$1=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$2X},Symbol.toStringTag,{value:"Module"})),_sfc_main$2W=vue.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})},list:{default:()=>[]}},setup(te){const U=te,G=vue.computed(()=>{var ne,re;return(ne=U.config.customize)!=null&&ne.decorationColor1||(re=U.config.customize)!=null&&re.decorationColor2?[U.config.customize.decorationColor1,U.config.customize.decorationColor2]:[]}),{customRef:ee}=useRefresh(U.config);return(ne,re)=>(vue.openBlock(),vue.createBlock(vue.unref(B$1),{color:vue.unref(G),ref_key:"customRef",ref:ee},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(U.config.customize.title),1)]),_:1},8,["color"]))}}),__vite_glob_0_2$1=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$2W},Symbol.toStringTag,{value:"Module"})),_sfc_main$2V=vue.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})},list:{default:()=>[]}},setup(te){const U=te,G=vue.computed(()=>{var ne,re;return(ne=U.config.customize)!=null&&ne.decorationColor1||(re=U.config.customize)!=null&&re.decorationColor2?[U.config.customize.decorationColor1,U.config.customize.decorationColor2]:[]}),{customRef:ee}=useRefresh(U.config);return(ne,re)=>(vue.openBlock(),vue.createBlock(vue.unref(dt),{color:vue.unref(G),scanDuration:ne.config.customize.scanDuration,haloDuration:ne.config.customize.haloDuration,ref_key:"customRef",ref:ee},null,8,["color","scanDuration","haloDuration"]))}}),__vite_glob_0_3$1=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$2V},Symbol.toStringTag,{value:"Module"})),_sfc_main$2U=vue.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})},list:{default:()=>[]}},setup(te){const U=te,G=vue.computed(()=>{var ne,re;return(ne=U.config.customize)!=null&&ne.decorationColor1||(re=U.config.customize)!=null&&re.decorationColor2?[U.config.customize.decorationColor1,U.config.customize.decorationColor2]:[]}),{customRef:ee}=useRefresh(U.config);return(ne,re)=>(vue.openBlock(),vue.createBlock(vue.unref(A$3),{color:vue.unref(G),duration:ne.config.customize.duration,reverse:ne.config.customize.reverse,ref_key:"customRef",ref:ee},null,8,["color","duration","reverse"]))}}),__vite_glob_0_4$1=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$2U},Symbol.toStringTag,{value:"Module"})),_sfc_main$2T=vue.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})},list:{default:()=>[]}},setup(te){const U=te,G=vue.computed(()=>{var ne,re;return(ne=U.config.customize)!=null&&ne.decorationColor1||(re=U.config.customize)!=null&&re.decorationColor2?[U.config.customize.decorationColor1,U.config.customize.decorationColor2]:[]}),{customRef:ee}=useRefresh(U.config);return(ne,re)=>(vue.openBlock(),vue.createBlock(vue.unref(E$1),{color:vue.unref(G),ref_key:"customRef",ref:ee},null,8,["color"]))}}),__vite_glob_0_5$1=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$2T},Symbol.toStringTag,{value:"Module"})),_sfc_main$2S=vue.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})},list:{default:()=>[]}},setup(te){const U=te,G=vue.computed(()=>{var ne,re;return(ne=U.config.customize)!=null&&ne.decorationColor1||(re=U.config.customize)!=null&&re.decorationColor2?[U.config.customize.decorationColor1,U.config.customize.decorationColor2]:[]}),{customRef:ee}=useRefresh(U.config);return(ne,re)=>(vue.openBlock(),vue.createBlock(vue.unref(F),{color:vue.unref(G),duration:ne.config.customize.duration,reverse:ne.config.customize.reverse,ref_key:"customRef",ref:ee},null,8,["color","duration","reverse"]))}}),__vite_glob_0_6$1=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$2S},Symbol.toStringTag,{value:"Module"})),_sfc_main$2R=vue.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})},list:{default:()=>[]}},setup(te){const U=te,G=vue.computed(()=>{var ne,re;return(ne=U.config.customize)!=null&&ne.decorationColor1||(re=U.config.customize)!=null&&re.decorationColor2?[U.config.customize.decorationColor1,U.config.customize.decorationColor2]:[]}),{customRef:ee}=useRefresh(U.config);return(ne,re)=>(vue.openBlock(),vue.createBlock(vue.unref(J$1),{color:vue.unref(G),duration:ne.config.customize.duration,ref_key:"customRef",ref:ee},null,8,["color","duration"]))}}),__vite_glob_0_7$1=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$2R},Symbol.toStringTag,{value:"Module"})),_sfc_main$2Q=vue.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})},list:{default:()=>[]}},setup(te){const U=te,G=vue.computed(()=>{var ne,re;return(ne=U.config.customize)!=null&&ne.decorationColor1||(re=U.config.customize)!=null&&re.decorationColor2?[U.config.customize.decorationColor1,U.config.customize.decorationColor2]:[]}),{customRef:ee}=useRefresh(U.config);return(ne,re)=>(vue.openBlock(),vue.createBlock(vue.unref(Y),{color:vue.unref(G),ref_key:"customRef",ref:ee},null,8,["color"]))}}),__vite_glob_0_8$1=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$2Q},Symbol.toStringTag,{value:"Module"})),_sfc_main$2P=vue.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})},list:{default:()=>[]}},setup(te){const U=te,G=vue.computed(()=>{var ne,re;return(ne=U.config.customize)!=null&&ne.decorationColor1||(re=U.config.customize)!=null&&re.decorationColor2?[U.config.customize.decorationColor1,U.config.customize.decorationColor2]:[]}),{customRef:ee}=useRefresh(U.config);return(ne,re)=>(vue.openBlock(),vue.createBlock(vue.unref(A$1),{color:vue.unref(G),reverse:ne.config.customize.reverse,ref_key:"customRef",ref:ee},null,8,["color","reverse"]))}}),__vite_glob_0_9$1=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$2P},Symbol.toStringTag,{value:"Module"})),_sfc_main$2O=vue.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})},list:{default:()=>[]}},setup(te){const U=te,G=vue.computed(()=>{var ne,re;return(ne=U.config.customize)!=null&&ne.decorationColor1||(re=U.config.customize)!=null&&re.decorationColor2?[U.config.customize.decorationColor1,U.config.customize.decorationColor2]:[]}),{customRef:ee}=useRefresh(U.config);return(ne,re)=>(vue.openBlock(),vue.createBlock(vue.unref(J),{color:vue.unref(G),reverse:ne.config.customize.duration,ref_key:"customRef",ref:ee},null,8,["color","reverse"]))}}),__vite_glob_0_10$1=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$2O},Symbol.toStringTag,{value:"Module"})),_sfc_main$2N=vue.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})},list:{default:()=>[]}},setup(te){const U=te,G=vue.computed(()=>{var ne,re;return(ne=U.config.customize)!=null&&ne.borderMainColor||(re=U.config.customize)!=null&&re.borderSecondaryColor?[U.config.customize.borderMainColor,U.config.customize.borderSecondaryColor]:[]}),{customRef:ee}=useRefresh(U.config);return(ne,re)=>{var oe;return vue.openBlock(),vue.createBlock(vue.unref(D$7),{color:vue.unref(G),backgroundColor:(oe=U.config)==null?void 0:oe.customize.backgroundColor,ref_key:"customRef",ref:ee},null,8,["color","backgroundColor"])}}}),__vite_glob_1_0$1=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$2N},Symbol.toStringTag,{value:"Module"})),_sfc_main$2M=vue.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})},list:{default:()=>[]}},setup(te){const U=te,G=vue.computed(()=>{var ne,re;return(ne=U.config.customize)!=null&&ne.borderMainColor||(re=U.config.customize)!=null&&re.borderSecondaryColor?[U.config.customize.borderMainColor,U.config.customize.borderSecondaryColor]:[]}),{customRef:ee}=useRefresh(U.config);return(ne,re)=>{var oe;return vue.openBlock(),vue.createBlock(vue.unref(E$4),{color:vue.unref(G),backgroundColor:(oe=U.config)==null?void 0:oe.customize.backgroundColor,ref_key:"customRef",ref:ee},null,8,["color","backgroundColor"])}}}),__vite_glob_1_1$1=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$2M},Symbol.toStringTag,{value:"Module"})),_sfc_main$2L=vue.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})},list:{default:()=>[]}},setup(te){const U=te,G=vue.computed(()=>{var ne,re;return(ne=U.config.customize)!=null&&ne.borderMainColor||(re=U.config.customize)!=null&&re.borderSecondaryColor?[U.config.customize.borderMainColor,U.config.customize.borderSecondaryColor]:[]}),{customRef:ee}=useRefresh(U.config);return(ne,re)=>{var oe,ie,le;return vue.openBlock(),vue.createBlock(vue.unref(O$1),{color:vue.unref(G),title:(oe=U.config)==null?void 0:oe.customize.title,titleWidth:(ie=U.config)==null?void 0:ie.customize.titleWidth,backgroundColor:(le=U.config)==null?void 0:le.customize.backgroundColor,ref_key:"customRef",ref:ee},null,8,["color","title","titleWidth","backgroundColor"])}}}),__vite_glob_1_2$1=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$2L},Symbol.toStringTag,{value:"Module"})),_sfc_main$2K=vue.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})},list:{default:()=>[]}},setup(te){const U=te,G=vue.computed(()=>{var ne,re;return(ne=U.config.customize)!=null&&ne.borderMainColor||(re=U.config.customize)!=null&&re.borderSecondaryColor?[U.config.customize.borderMainColor,U.config.customize.borderSecondaryColor]:[]}),{customRef:ee}=useRefresh(U.config);return(ne,re)=>{var oe;return vue.openBlock(),vue.createBlock(vue.unref(D$6),{color:vue.unref(G),backgroundColor:(oe=U.config)==null?void 0:oe.customize.backgroundColor,ref_key:"customRef",ref:ee},null,8,["color","backgroundColor"])}}}),__vite_glob_1_3$1=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$2K},Symbol.toStringTag,{value:"Module"})),_sfc_main$2J=vue.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})},list:{default:()=>[]}},setup(te){const U=te,G=vue.computed(()=>{var ne,re;return(ne=U.config.customize)!=null&&ne.borderMainColor||(re=U.config.customize)!=null&&re.borderSecondaryColor?[U.config.customize.borderMainColor,U.config.customize.borderSecondaryColor]:[]}),{customRef:ee}=useRefresh(U.config);return(ne,re)=>{var oe;return vue.openBlock(),vue.createBlock(vue.unref(R$7),{color:vue.unref(G),backgroundColor:(oe=U.config)==null?void 0:oe.customize.backgroundColor,ref_key:"customRef",ref:ee},null,8,["color","backgroundColor"])}}}),__vite_glob_1_4$1=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$2J},Symbol.toStringTag,{value:"Module"})),_sfc_main$2I=vue.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})},list:{default:()=>[]}},setup(te){const U=te,G=vue.computed(()=>{var ne,re;return(ne=U.config.customize)!=null&&ne.borderMainColor||(re=U.config.customize)!=null&&re.borderSecondaryColor?[U.config.customize.borderMainColor,U.config.customize.borderSecondaryColor]:[]}),{customRef:ee}=useRefresh(U.config);return(ne,re)=>{var oe;return vue.openBlock(),vue.createBlock(vue.unref(R$6),{color:vue.unref(G),backgroundColor:(oe=U.config)==null?void 0:oe.customize.backgroundColor,ref_key:"customRef",ref:ee},null,8,["color","backgroundColor"])}}}),__vite_glob_1_5$1=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$2I},Symbol.toStringTag,{value:"Module"})),_sfc_main$2H=vue.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})},list:{default:()=>[]}},setup(te){const U=te,G=vue.computed(()=>{var ne,re;return(ne=U.config.customize)!=null&&ne.borderMainColor||(re=U.config.customize)!=null&&re.borderSecondaryColor?[U.config.customize.borderMainColor,U.config.customize.borderSecondaryColor]:[]}),{customRef:ee}=useRefresh(U.config);return(ne,re)=>{var oe;return vue.openBlock(),vue.createBlock(vue.unref(E$3),{color:vue.unref(G),backgroundColor:(oe=U.config)==null?void 0:oe.customize.backgroundColor,ref_key:"customRef",ref:ee},null,8,["color","backgroundColor"])}}}),__vite_glob_1_6$1=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$2H},Symbol.toStringTag,{value:"Module"})),_sfc_main$2G=vue.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})},list:{default:()=>[]}},setup(te){const U=te,G=vue.computed(()=>{var ne,re;return(ne=U.config.customize)!=null&&ne.borderMainColor||(re=U.config.customize)!=null&&re.borderSecondaryColor?[U.config.customize.borderMainColor,U.config.customize.borderSecondaryColor]:[]}),{customRef:ee}=useRefresh(U.config);return(ne,re)=>{var oe,ie;return vue.openBlock(),vue.createBlock(vue.unref(J$4),{color:vue.unref(G),backgroundColor:(oe=U.config)==null?void 0:oe.customize.backgroundColor,reverse:(ie=U.config)==null?void 0:ie.customize.reverse,ref_key:"customRef",ref:ee},null,8,["color","backgroundColor","reverse"])}}}),__vite_glob_1_7$1=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$2G},Symbol.toStringTag,{value:"Module"})),_sfc_main$2F=vue.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})},list:{default:()=>[]}},setup(te){const U=te,G=vue.computed(()=>{var ne,re;return(ne=U.config.customize)!=null&&ne.borderMainColor||(re=U.config.customize)!=null&&re.borderSecondaryColor?[U.config.customize.borderMainColor,U.config.customize.borderSecondaryColor]:[]}),{customRef:ee}=useRefresh(U.config);return(ne,re)=>{var oe,ie;return vue.openBlock(),vue.createBlock(vue.unref(J$3),{color:vue.unref(G),backgroundColor:(oe=U.config)==null?void 0:oe.customize.backgroundColor,reverse:(ie=U.config)==null?void 0:ie.customize.reverse,ref_key:"customRef",ref:ee},null,8,["color","backgroundColor","reverse"])}}}),__vite_glob_1_8$1=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$2F},Symbol.toStringTag,{value:"Module"})),_sfc_main$2E=vue.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})},list:{default:()=>[]}},setup(te){const U=te,G=vue.computed(()=>{var ne,re;return(ne=U.config.customize)!=null&&ne.borderMainColor||(re=U.config.customize)!=null&&re.borderSecondaryColor?[U.config.customize.borderMainColor,U.config.customize.borderSecondaryColor]:[]}),{customRef:ee}=useRefresh(U.config);return(ne,re)=>{var oe;return vue.openBlock(),vue.createBlock(vue.unref(R$5),{color:vue.unref(G),backgroundColor:(oe=U.config)==null?void 0:oe.customize.backgroundColor,ref_key:"customRef",ref:ee},null,8,["color","backgroundColor"])}}}),__vite_glob_1_9$1=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$2E},Symbol.toStringTag,{value:"Module"})),_sfc_main$2D=vue.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})},list:{default:()=>[]}},setup(te){const U=te,G=vue.computed(()=>{var ne,re;return(ne=U.config.customize)!=null&&ne.borderMainColor||(re=U.config.customize)!=null&&re.borderSecondaryColor?[U.config.customize.borderMainColor,U.config.customize.borderSecondaryColor]:[]}),{customRef:ee}=useRefresh(U.config);return(ne,re)=>{var oe;return vue.openBlock(),vue.createBlock(vue.unref(E$2),{color:vue.unref(G),backgroundColor:(oe=U.config)==null?void 0:oe.customize.backgroundColor,ref_key:"customRef",ref:ee},null,8,["color","backgroundColor"])}}}),__vite_glob_1_10$1=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$2D},Symbol.toStringTag,{value:"Module"})),_sfc_main$2C=vue.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})},list:{default:()=>[]}},setup(te){const U=te,G=vue.computed(()=>{var ne,re;return(ne=U.config.customize)!=null&&ne.borderMainColor||(re=U.config.customize)!=null&&re.borderSecondaryColor?[U.config.customize.borderMainColor,U.config.customize.borderSecondaryColor]:[]}),{customRef:ee}=useRefresh(U.config);return(ne,re)=>{var oe,ie,le;return vue.openBlock(),vue.createBlock(vue.unref(Y$3),{color:vue.unref(G),backgroundColor:(oe=U.config)==null?void 0:oe.customize.backgroundColor,reverse:(ie=U.config)==null?void 0:ie.customize.reverse,duration:(le=U.config)==null?void 0:le.customize.duration,ref_key:"customRef",ref:ee},null,8,["color","backgroundColor","reverse","duration"])}}}),__vite_glob_1_11$1=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$2C},Symbol.toStringTag,{value:"Module"})),_sfc_main$2B=vue.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})},list:{default:()=>[]}},setup(te){const U=te,G=vue.computed(()=>{var ne,re;return(ne=U.config.customize)!=null&&ne.borderMainColor||(re=U.config.customize)!=null&&re.borderSecondaryColor?[U.config.customize.borderMainColor,U.config.customize.borderSecondaryColor]:[]}),{customRef:ee}=useRefresh(U.config);return(ne,re)=>{var oe;return vue.openBlock(),vue.createBlock(vue.unref(V$4),{color:vue.unref(G),backgroundColor:(oe=U.config)==null?void 0:oe.customize.backgroundColor,ref_key:"customRef",ref:ee},null,8,["color","backgroundColor"])}}}),__vite_glob_1_12$1=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$2B},Symbol.toStringTag,{value:"Module"})),_sfc_main$2A=vue.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})},list:{default:()=>[]}},setup(te){const U=te,G=vue.computed(()=>{const ee=U.config.customize.gradientColor0,ne=U.config.customize.gradientColor1;return`linear-gradient(to bottom, ${ee||ne} , ${ne||ee})`});return(ee,ne)=>(vue.openBlock(),vue.createElementBlock("div",{style:vue.normalizeStyle({width:U.config.customize.width+"px","background-image":vue.unref(G)}),class:"h-full"},null,4))}}),__vite_glob_2_0$1=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$2A},Symbol.toStringTag,{value:"Module"})),_hoisted_1$1F=["src"],_sfc_main$2z=vue.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})},list:{default:()=>[]}},setup(te){const U=te;return(G,ee)=>(vue.openBlock(),vue.createElementBlock("iframe",{src:U.config.customize.url,class:"w-full h-full border-0"},null,8,_hoisted_1$1F))}}),__vite_glob_2_1$1=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$2z},Symbol.toStringTag,{value:"Module"})),_sfc_main$2y=vue.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})},list:{default:()=>[]}},setup(te){const{proxy:U}=vue.getCurrentInstance(),{resetUrl:G}=U.$globalUtils,ee=te;return(ne,re)=>(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElImage),{class:"w-full h-full",src:vue.unref(G)(ee.config.customize.url),fit:ee.config.customize.fit},null,8,["src","fit"]))}}),__vite_glob_2_2$1=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$2y},Symbol.toStringTag,{value:"Module"})),_sfc_main$2x=vue.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})},list:{default:()=>[]}},setup(te){const U=te,G=vue.computed(()=>`-webkit-linear-gradient(${U.config.customize.colorPosition}, ${U.config.customize.startColor}, ${U.config.customize.endColor}`);return(ee,ne)=>(vue.openBlock(),vue.createElementBlock("div",{style:vue.normalizeStyle({...U.config.customize,fontSize:U.config.customize.fontSize+"px",letterSpacing:U.config.customize.letterSpacing+"px",backgroundImage:vue.unref(G),"-webkit-background-clip":"text","-webkit-text-fill-color":"transparent"})},vue.toDisplayString(U.config.customize.title),5))}}),__vite_glob_2_3$1=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$2x},Symbol.toStringTag,{value:"Module"})),_sfc_main$2w=vue.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})},list:{default:()=>[]}},setup(te){const U=te,G=vue.computed(()=>{const ee=U.config.customize.gradientColor0,ne=U.config.customize.gradientColor1;return`linear-gradient(to ${U.config.customize.colorPosition}, ${ee||ne} , ${ne||ee})`});return(ee,ne)=>(vue.openBlock(),vue.createElementBlock("div",{class:"w-full h-full",style:vue.normalizeStyle({"background-image":vue.unref(G),borderRadius:U.config.customize.borderRadius+"px"})},null,4))}}),__vite_glob_2_4$1=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$2w},Symbol.toStringTag,{value:"Module"})),_sfc_main$2v=vue.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})},list:{default:()=>[]}},setup(te){const U=te,G=vue.computed(()=>`-webkit-linear-gradient(${U.config.customize.colorPosition}, ${U.config.customize.startColor}, ${U.config.customize.endColor}`);return(ee,ne)=>(vue.openBlock(),vue.createElementBlock("div",{style:vue.normalizeStyle({...U.config.customize,fontSize:U.config.customize.fontSize+"px",letterSpacing:U.config.customize.letterSpacing+"px",backgroundImage:vue.unref(G),"-webkit-background-clip":"text","-webkit-text-fill-color":"transparent"})},vue.toDisplayString(U.config.customize.title),5))}}),__vite_glob_2_5$1=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$2v},Symbol.toStringTag,{value:"Module"})),_sfc_main$2u=vue.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})},list:{default:()=>[]}},setup(te){const U=te,G=vue.ref(),ee=()=>{G.value=dayjs().format("YYYY-MM-DD HH:mm:ss")},ne=setInterval(()=>{ee()},1e3);ee(),vue.onBeforeUnmount(()=>{ne&&clearInterval(ne)});const re=vue.computed(()=>`-webkit-linear-gradient(${U.config.customize.colorPosition}, ${U.config.customize.startColor}, ${U.config.customize.endColor}`);return(oe,ie)=>(vue.openBlock(),vue.createElementBlock("div",{style:vue.normalizeStyle({...U.config.customize,fontSize:U.config.customize.fontSize+"px",letterSpacing:U.config.customize.letterSpacing+"px",backgroundImage:vue.unref(re),"-webkit-background-clip":"text","-webkit-text-fill-color":"transparent"})},vue.toDisplayString(vue.unref(G)),5))}}),__vite_glob_2_6$1=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$2u},Symbol.toStringTag,{value:"Module"})),_sfc_main$2t=vue.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})},list:{default:()=>[]}},setup(te){const U=te,G=vue.computed(()=>{const ee=U.config.customize.gradientColor0,ne=U.config.customize.gradientColor1;return`linear-gradient(to right, ${ee||ne} , ${ne||ee})`});return(ee,ne)=>(vue.openBlock(),vue.createElementBlock("div",{style:vue.normalizeStyle({height:U.config.customize.height+"px","background-image":vue.unref(G)}),class:"w-full"},null,4))}}),__vite_glob_2_7$1=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$2t},Symbol.toStringTag,{value:"Module"})),_hoisted_1$1E={class:"w-full h-full"},_hoisted_2$1m=["placeholder"],_sfc_main$2s=vue.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})},list:{default:()=>[]}},setup(te){vue.useCssVars(re=>({"75aca5f8":vue.unref(ee)}));const U=te,{proxy:G}=vue.getCurrentInstance(),ee=vue.computed(()=>U.config.customize.color),ne=()=>{const re=U.config.customize.linkage;G.$baseEventBus.emit("ace-screen-indicators-linkage",re.map(oe=>oe[0]))};return(re,oe)=>(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$1E,[vue.withDirectives(vue.createElementVNode("input",{"onUpdate:modelValue":oe[0]||(oe[0]=ie=>U.config.customize.modelValue=ie),placeholder:U.config.customize.placeholder,style:vue.normalizeStyle({width:"100%",height:"100%",backgroundColor:U.config.customize.backgroundColor,borderWidth:`${U.config.customize.borderTopWidth}px ${U.config.customize.borderRightWidth}px ${U.config.customize.borderBottomWidth}px ${U.config.customize.borderLeftWidth}px `,borderColor:U.config.customize.borderColor,color:U.config.customize.color,fontSize:U.config.customize.fontSize+"px",borderRadius:U.config.customize.borderRadius+"px"}),onBlur:ne},null,44,_hoisted_2$1m),[[vue.vModelText,U.config.customize.modelValue]])]))}}),index_vue_vue_type_style_index_0_scoped_4faa96c2_lang="",index$2=_export_sfc$2(_sfc_main$2s,[["__scopeId","data-v-4faa96c2"]]),__vite_glob_3_0$1=Object.freeze(Object.defineProperty({__proto__:null,default:index$2},Symbol.toStringTag,{value:"Module"})),_hoisted_1$1D={class:"w-full h-full"},_sfc_main$2r=vue.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})},list:{default:()=>[]}},setup(te){const U=te,{proxy:G}=vue.getCurrentInstance(),ee=vue.ref([]);vue.watch(()=>U.config.customize.dictId,()=>{ne()},{});const ne=()=>{const oe=U.config.customize.dictId;oe&&G.$baseHttp.get(`/api/ace-data-center/custom-dic/readDict/${oe}`).then(ie=>{ee.value=ie.data??[]})};vue.onMounted(()=>{ne()});const re=()=>{const oe=U.config.customize.linkage;G.$baseEventBus.emit("ace-screen-indicators-linkage",oe.map(ie=>ie[0]))};return(oe,ie)=>(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$1D,[vue.createVNode(vue.unref(elementPlus.ElSelect),{modelValue:U.config.customize.modelValue,"onUpdate:modelValue":ie[0]||(ie[0]=le=>U.config.customize.modelValue=le),placeholder:U.config.customize.placeholder,style:{width:"100%",height:"100%"},onChange:re,clearable:U.config.customize.clearable},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vue.unref(ee),le=>(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElOption),{label:le.name,value:le.code,key:le.code},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder","clearable"])]))}}),__vite_glob_3_1$1=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$2r},Symbol.toStringTag,{value:"Module"})),moudleComponents$1={};for(let te=0;te<=5;te+=1){let U=null;if(te==0&&(U=Object.assign({"../decoration/decoration1/index.vue":__vite_glob_0_0$1,"../decoration/decoration10/index.vue":__vite_glob_0_1$1,"../decoration/decoration11/index.vue":__vite_glob_0_2$1,"../decoration/decoration12/index.vue":__vite_glob_0_3$1,"../decoration/decoration2/index.vue":__vite_glob_0_4$1,"../decoration/decoration3/index.vue":__vite_glob_0_5$1,"../decoration/decoration4/index.vue":__vite_glob_0_6$1,"../decoration/decoration5/index.vue":__vite_glob_0_7$1,"../decoration/decoration6/index.vue":__vite_glob_0_8$1,"../decoration/decoration8/index.vue":__vite_glob_0_9$1,"../decoration/decoration9/index.vue":__vite_glob_0_10$1})),te==1&&(U=Object.assign({"../border/border1/index.vue":__vite_glob_1_0$1,"../border/border10/index.vue":__vite_glob_1_1$1,"../border/border11/index.vue":__vite_glob_1_2$1,"../border/border12/index.vue":__vite_glob_1_3$1,"../border/border13/index.vue":__vite_glob_1_4$1,"../border/border2/index.vue":__vite_glob_1_5$1,"../border/border3/index.vue":__vite_glob_1_6$1,"../border/border4/index.vue":__vite_glob_1_7$1,"../border/border5/index.vue":__vite_glob_1_8$1,"../border/border6/index.vue":__vite_glob_1_9$1,"../border/border7/index.vue":__vite_glob_1_10$1,"../border/border8/index.vue":__vite_glob_1_11$1,"../border/border9/index.vue":__vite_glob_1_12$1})),te==2&&(U=Object.assign({"../basic/horizontal-line/index.vue":__vite_glob_2_0$1,"../basic/iframe/index.vue":__vite_glob_2_1$1,"../basic/img/index.vue":__vite_glob_2_2$1,"../basic/number/index.vue":__vite_glob_2_3$1,"../basic/square/index.vue":__vite_glob_2_4$1,"../basic/text/index.vue":__vite_glob_2_5$1,"../basic/time/index.vue":__vite_glob_2_6$1,"../basic/vertical-line/index.vue":__vite_glob_2_7$1})),te==3&&(U=Object.assign({"../control/input/index.vue":__vite_glob_3_0$1,"../control/select/index.vue":__vite_glob_3_1$1})),U)for(const[G,ee]of Object.entries(U)){const ne=G.split("/")[2];moudleComponents$1[ne]=ee.default}}function useBarCommon(){const te=vue.ref((window==null?void 0:window.customSeriesData)??{}),U=(ne,re)=>{ne.series=[],setTimeout(()=>{const oe=ne.dataShow.y.filter(ie=>!ne.dataShow.hide.includes(ie));ne.dataset.dimensions=[ne.dataShow.x,...oe],ne.dataShow.y.forEach(ie=>{te.value[ie]||(te.value[ie]=JSON.parse(JSON.stringify(G)))}),window.customSeriesData=te.value,Object.values(vue.unref(te)).forEach(ie=>{ie.label.formatter=le=>{const ae=ne.custom,se=le.data[le.seriesName];if((ae==null?void 0:ae.toFixed)!=="")try{return Number(se).toFixed(ae.toFixed)}catch{return se}return se}}),ne.series=oe.map((ie,le)=>te.value[ie]),re&&re()})},G={type:"bar",barWidth:15,stack:!1,borderRadiusNumber:4,itemStyle:{color:null,borderRadius:[4,4,0,0]},label:{show:!0,rotate:0,position:"top",color:"#000000",fontSize:10}};return{init:U,customSeriesData:te,seriesItem:G,barConfig:{tooltip:{show:!0,confine:!0,valueFormatter:ne=>ne,trigger:"axis",axisPointer:{show:!0,type:"shadow"}},custom:{prefix:"",suffix:"",toFixed:0},dataShow:{x:[],y:[],hide:[]},grid:{left:"3%",right:"3%",bottom:"3%",top:"10%",containLabel:!0},legend:{show:!0,textStyle:{fontSize:12},x:"center",y:"top",orient:"horizontal",icon:"roundRect",itemWidth:20,itemHeight:10},xAxis:{show:!0,axisLabel:{fontSize:12,interval:0,rotate:0},nameTextStyle:{fontSize:12},splitLine:{lineStyle:{width:1,type:"solid"}},position:"bottom",type:"category"},yAxis:{show:!0,axisLabel:{fontSize:12,interval:0,rotate:0},nameTextStyle:{fontSize:12},splitLine:{lineStyle:{width:1,type:"solid"}},position:"left",type:"value"},dataset:{},series:[]}}}function useLineCommon(){const te=vue.ref((window==null?void 0:window.customSeriesData)??{}),U=(ne,re)=>{ne.series=[],setTimeout(()=>{const oe=ne.dataShow.y.filter(ie=>!ne.dataShow.hide.includes(ie));ne.dataset.dimensions=[ne.dataShow.x,...oe],ne.dataShow.y.forEach(ie=>{te.value[ie]||(te.value[ie]=JSON.parse(JSON.stringify(G)))}),window.customSeriesData=te.value,Object.values(vue.unref(te)).forEach(ie=>{ie.label.formatter=le=>{const ae=ne.custom,se=le.data[le.seriesName];if((ae==null?void 0:ae.toFixed)!=="")try{return Number(se).toFixed(ae.toFixed)}catch{return se}return se}}),ne.series=oe.map((ie,le)=>te.value[ie]),re&&re()})},G={type:"line",symbolSize:5,smooth:!0,lineStyle:{type:"solid",width:3,color:null},label:{show:!0,position:"top",color:"#000000",fontSize:10,rotate:0}};return{init:U,customSeriesData:te,seriesItem:G,lineConfig:{tooltip:{show:!0,confine:!0,valueFormatter:ne=>ne,trigger:"axis",axisPointer:{show:!0,type:"shadow"}},custom:{prefix:"",suffix:"",toFixed:0},dataShow:{x:[],y:[],hide:[]},grid:{left:"3%",right:"3%",bottom:"3%",top:"10%",containLabel:!0},legend:{show:!0,textStyle:{fontSize:12},x:"center",y:"top",orient:"horizontal",itemWidth:20,itemHeight:10},xAxis:{show:!0,axisLabel:{fontSize:12,interval:0,rotate:0},nameTextStyle:{fontSize:12},splitLine:{lineStyle:{width:1,type:"solid"}},position:"bottom",type:"category"},yAxis:{show:!0,axisLabel:{fontSize:12,interval:0,rotate:0},nameTextStyle:{fontSize:12},splitLine:{lineStyle:{width:1,type:"solid"}},position:"left",type:"value"},dataset:{},series:[]}}}function usePieCommon(){const te=vue.ref((window==null?void 0:window.customSeriesData)??{}),U=(ne,re)=>{ne.series=[],setTimeout(()=>{ne.dataset.dimensions=[ne.dataShow.x,ne.dataShow.y],te.value[ne.dataShow.y]||(te.value[ne.dataShow.y]=JSON.parse(JSON.stringify(G))),window.customSeriesData=te.value,ne.series=[te.value[ne.dataShow.y]],re&&re()})},G={type:"pie",radius:["40%","65%"],center:["50%","50%"],roseType:!1,avoidLabelOverlap:!1,itemStyle:{show:!0,borderRadius:10,borderColor:"#fff",borderWidth:2},emphasis:{labelLine:{show:!0}},labelLine:{show:!0},label:{show:!0,color:"#000000",fontSize:10,position:"center",formatter:"{b}"}};return{init:U,customSeriesData:te,seriesItem:G,pieConfig:{tooltip:{show:!0,confine:!0,valueFormatter:ne=>ne,trigger:"item"},dataShow:{x:"",y:""},grid:{left:"3%",right:"3%",bottom:"3%",top:"10%",containLabel:!0},legend:{show:!0,textStyle:{fontSize:12},x:"center",y:"top",orient:"horizontal",icon:"roundRect",itemWidth:20,itemHeight:10},dataset:{},series:[]}}}function useBarLineCommon(){const te=vue.ref((window==null?void 0:window.customSeriesData)??{}),U=(re,oe)=>{re.series=[],setTimeout(()=>{const ie=re.dataShow.y.filter(le=>!re.dataShow.hide.includes(le));re.dataset.dimensions=[re.dataShow.x,...ie],re.dataShow.y.forEach((le,ae)=>{if(te.value[le])return;const se=re.dataShow.y.length==ae+1&&re.dataShow.y.length>0;te.value[le]=JSON.parse(JSON.stringify(se?G:ee))}),window.customSeriesData=te.value,Object.values(vue.unref(te)).forEach(le=>{le.label.formatter=ae=>{const se=re.custom,ue=ae.data[ae.seriesName];if((se==null?void 0:se.toFixed)!=="")try{return Number(ue).toFixed(se.toFixed)}catch{return ue}return ue}}),re.series=ie.map((le,ae)=>te.value[le]),oe&&oe()})},G={type:"line",symbolSize:5,smooth:!0,lineStyle:{type:"solid",width:3,color:null},label:{show:!0,rotate:0,position:"top",color:"#000000",fontSize:10}},ee={type:"bar",barWidth:15,stack:!1,borderRadiusNumber:4,itemStyle:{color:null,borderRadius:[4,4,0,0]},label:{show:!0,rotate:0,position:"top",color:"#000000",fontSize:10}};return{init:U,customSeriesData:te,seriesLineItem:G,seriesBarItem:ee,barsLinesConfig:{tooltip:{show:!0,confine:!0,valueFormatter:re=>re,trigger:"axis",axisPointer:{show:!0,type:"shadow"}},custom:{prefix:"",suffix:"",toFixed:0},dataShow:{x:[],y:[],hide:[]},grid:{left:"3%",right:"3%",bottom:"3%",top:"10%",containLabel:!0},legend:{show:!0,textStyle:{fontSize:12},x:"center",y:"top",orient:"horizontal",itemWidth:20,itemHeight:10},xAxis:{show:!0,axisLabel:{fontSize:12,interval:0,rotate:0},nameTextStyle:{fontSize:12},splitLine:{lineStyle:{width:1,type:"solid"}},position:"bottom",type:"category"},yAxis:{show:!0,axisLabel:{fontSize:12,interval:0,rotate:0},nameTextStyle:{fontSize:12},splitLine:{lineStyle:{width:1,type:"solid"}},position:"left",type:"value"},dataset:{},series:[]}}}function useScatterCommon(){const te=vue.ref((window==null?void 0:window.customSeriesData)??{}),U=(ne,re)=>{ne.series=[],setTimeout(()=>{const oe=ne.dataShow.y.filter(ie=>!ne.dataShow.hide.includes(ie));ne.dataset.dimensions=[ne.dataShow.x,...oe],ne.dataShow.y.forEach(ie=>{te.value[ie]||(te.value[ie]=JSON.parse(JSON.stringify(G)))}),window.customSeriesData=te.value,Object.values(vue.unref(te)).forEach(ie=>{ie.label.formatter=le=>{const ae=ne.custom,se=le.data[le.seriesName];if((ae==null?void 0:ae.toFixed)!=="")try{return Number(se).toFixed(ae.toFixed)}catch{return se}return se}}),ne.series=oe.map((ie,le)=>te.value[ie]),re&&re()})},G={type:"scatter",emphasis:{focus:"series"},symbolSize:12,itemStyle:{color:null},markArea:{silent:!0,itemStyle:{color:"transparent",borderWidth:1,borderType:"dashed"},data:[[{xAxis:"min",yAxis:"min"},{xAxis:"max",yAxis:"max"}]]},label:{show:!0,rotate:0,position:"top",color:"#000000",fontSize:10}};return{init:U,customSeriesData:te,seriesItem:G,scatterCfg:{tooltip:{show:!0,confine:!0,valueFormatter:ne=>ne,trigger:"axis",axisPointer:{show:!0,type:"shadow"}},custom:{prefix:"",suffix:"",toFixed:0},dataShow:{x:[],y:[],hide:[]},grid:{left:"3%",right:"3%",bottom:"3%",top:"10%",containLabel:!0},legend:{show:!0,textStyle:{fontSize:12},x:"center",y:"top",orient:"horizontal",icon:"roundRect",itemWidth:20,itemHeight:10},xAxis:{show:!0,axisLabel:{fontSize:12,interval:0,rotate:0},nameTextStyle:{fontSize:12},splitLine:{lineStyle:{width:1,type:"solid"}},position:"bottom",type:"category"},yAxis:{show:!0,axisLabel:{fontSize:12,interval:0,rotate:0},nameTextStyle:{fontSize:12},splitLine:{lineStyle:{width:1,type:"solid"}},position:"left",type:"value"},dataset:{},series:[]}}}function useRadar(){const te=vue.ref((window==null?void 0:window.customSeriesData)??{}),U=(ne,re)=>{ne.series=[],setTimeout(()=>{const oe=ne.dataShow.y.filter(le=>!ne.dataShow.hide.includes(le));ne.dataset.dimensions=oe,vue.unref(te).type||(te.value=JSON.parse(JSON.stringify(G))),window.customSeriesData=te.value,ne.radar.indicator=ne.dataset.source.map(le=>({name:le[ne.dataShow.x]}));const ie=[];ne.dataset.dimensions.forEach(le=>{ie.push({name:le,value:ne.dataset.source.map(ae=>ae[le])})}),ne.series=[{...te.value,data:ie}],vue.unref(te).label.formatter=le=>{const ae=ne.custom,se=le.value;if((ae==null?void 0:ae.toFixed)!=="")try{return Number(se).toFixed(ae.toFixed)}catch{return se}return se},re&&re()})},G={type:"radar",areaStyle:{opacity:.1},label:{show:!0,rotate:0,position:"top",color:"#000000",fontSize:10},data:[]};return{init:U,customSeriesData:te,seriesItem:G,radarConfig:{tooltip:{show:!0,confine:!0,valueFormatter:ne=>ne},custom:{prefix:"",suffix:"",toFixed:0},dataShow:{x:[],y:[],hide:[]},grid:{left:"3%",right:"3%",bottom:"3%",top:"10%",containLabel:!0},legend:{show:!0,textStyle:{fontSize:12},x:"center",y:"top",orient:"horizontal",icon:"roundRect",itemWidth:20,itemHeight:10},radar:{shape:"polygon",radius:["0%","60%"],center:["50%","55%"],splitArea:{show:!0},splitLine:{show:!0},axisName:{show:!0,color:"#000",fontSize:12},axisLine:{show:!0},axisTick:{show:!0},indicator:[]},dataset:{},series:[]}}}function useNumber(){const te=vue.ref((window==null?void 0:window.customSeriesData)??{}),U=(ne,re)=>{ne.series=[],setTimeout(()=>{typeof ne.dataShow.y=="string"&&ne.dataShow.y&&(ne.dataShow.y=[ne.dataShow.y]);const oe=ne.dataShow.y.filter(ie=>{var le;return!(((le=ne.dataShow)==null?void 0:le.hide)??[]).includes(ie)});ne.dataset.dimensions=oe,ne.dataShow.y.forEach(ie=>{te.value[ie]||(te.value[ie]=JSON.parse(JSON.stringify(G)))}),ne.customSeriesData=te.value,window.customSeriesData=te.value,re&&re()})},G={prefix:"",suffix:"",toFixed:0,color:null,fontSize:14,bgColor:null};return{init:U,seriesItem:G,customSeriesData:te,numberConfig:{dataShow:{x:"",y:[],hide:[]},dataset:{}}}}function useTable(){const te=vue.ref((window==null?void 0:window.customSeriesData)??{}),U=(ne,re)=>{ne.series=[],setTimeout(()=>{const oe=ne.dataShow.y.filter(ie=>!ne.dataShow.hide.includes(ie));ne.dataset.dimensions=oe,ne.dataShow.y.forEach(ie=>{te.value[ie]||(te.value[ie]=JSON.parse(JSON.stringify(G)))}),ne.customSeriesData=te.value,window.customSeriesData=te.value,re&&re()})},G={prefix:"",suffix:"",toFixed:0,color:null};return{init:U,customSeriesData:te,tableConfig:{dataShow:{x:"",y:[],hide:[]},dataset:{}}}}const city=[{code:"100000",name:"中华人民共和国",region_level:0,children:[{code:"11",name:"北京市",region_level:1,children:[{code:"1101",name:"北京市",region_level:2,children:[{code:"110101",name:"东城区",region_level:3,children:[]},{code:"110102",name:"西城区",region_level:3,children:[]},{code:"110105",name:"朝阳区",region_level:3,children:[]},{code:"110106",name:"丰台区",region_level:3,children:[]},{code:"110107",name:"石景山区",region_level:3,children:[]},{code:"110108",name:"海淀区",region_level:3,children:[]},{code:"110109",name:"门头沟区",region_level:3,children:[]},{code:"110111",name:"房山区",region_level:3,children:[]},{code:"110112",name:"通州区",region_level:3,children:[]},{code:"110113",name:"顺义区",region_level:3,children:[]},{code:"110114",name:"昌平区",region_level:3,children:[]},{code:"110115",name:"大兴区",region_level:3,children:[]},{code:"110116",name:"怀柔区",region_level:3,children:[]},{code:"110117",name:"平谷区",region_level:3,children:[]},{code:"110118",name:"密云区",region_level:3,children:[]},{code:"110119",name:"延庆区",region_level:3,children:[]}]}]},{code:"12",name:"天津市",region_level:1,children:[{code:"1201",name:"天津市",region_level:2,children:[{code:"120101",name:"和平区",region_level:3,children:[]},{code:"120102",name:"河东区",region_level:3,children:[]},{code:"120103",name:"河西区",region_level:3,children:[]},{code:"120104",name:"南开区",region_level:3,children:[]},{code:"120105",name:"河北区",region_level:3,children:[]},{code:"120106",name:"红桥区",region_level:3,children:[]},{code:"120110",name:"东丽区",region_level:3,children:[]},{code:"120111",name:"西青区",region_level:3,children:[]},{code:"120112",name:"津南区",region_level:3,children:[]},{code:"120113",name:"北辰区",region_level:3,children:[]},{code:"120114",name:"武清区",region_level:3,children:[]},{code:"120115",name:"宝坻区",region_level:3,children:[]},{code:"120116",name:"滨海新区",region_level:3,children:[]},{code:"120117",name:"宁河区",region_level:3,children:[]},{code:"120118",name:"静海区",region_level:3,children:[]},{code:"120119",name:"蓟州区",region_level:3,children:[]}]}]},{code:"13",name:"河北省",region_level:1,children:[{code:"1301",name:"石家庄市",region_level:2,children:[{code:"130102",name:"长安区",region_level:3,children:[]},{code:"130104",name:"桥西区",region_level:3,children:[]},{code:"130105",name:"新华区",region_level:3,children:[]},{code:"130107",name:"井陉矿区",region_level:3,children:[]},{code:"130108",name:"裕华区",region_level:3,children:[]},{code:"130109",name:"藁城区",region_level:3,children:[]},{code:"130110",name:"鹿泉区",region_level:3,children:[]},{code:"130111",name:"栾城区",region_level:3,children:[]},{code:"130121",name:"井陉县",region_level:3,children:[]},{code:"130123",name:"正定县",region_level:3,children:[]},{code:"130125",name:"行唐县",region_level:3,children:[]},{code:"130126",name:"灵寿县",region_level:3,children:[]},{code:"130127",name:"高邑县",region_level:3,children:[]},{code:"130128",name:"深泽县",region_level:3,children:[]},{code:"130129",name:"赞皇县",region_level:3,children:[]},{code:"130130",name:"无极县",region_level:3,children:[]},{code:"130131",name:"平山县",region_level:3,children:[]},{code:"130132",name:"元氏县",region_level:3,children:[]},{code:"130133",name:"赵县",region_level:3,children:[]},{code:"130181",name:"辛集市",region_level:3,children:[]},{code:"130183",name:"晋州市",region_level:3,children:[]},{code:"130184",name:"新乐市",region_level:3,children:[]}]},{code:"1302",name:"唐山市",region_level:2,children:[{code:"130202",name:"路南区",region_level:3,children:[]},{code:"130203",name:"路北区",region_level:3,children:[]},{code:"130204",name:"古冶区",region_level:3,children:[]},{code:"130205",name:"开平区",region_level:3,children:[]},{code:"130207",name:"丰南区",region_level:3,children:[]},{code:"130208",name:"丰润区",region_level:3,children:[]},{code:"130209",name:"曹妃甸区",region_level:3,children:[]},{code:"130224",name:"滦南县",region_level:3,children:[]},{code:"130225",name:"乐亭县",region_level:3,children:[]},{code:"130227",name:"迁西县",region_level:3,children:[]},{code:"130229",name:"玉田县",region_level:3,children:[]},{code:"130281",name:"遵化市",region_level:3,children:[]},{code:"130283",name:"迁安市",region_level:3,children:[]},{code:"130284",name:"滦州市",region_level:3,children:[]}]},{code:"1303",name:"秦皇岛市",region_level:2,children:[{code:"130302",name:"海港区",region_level:3,children:[]},{code:"130303",name:"山海关区",region_level:3,children:[]},{code:"130304",name:"北戴河区",region_level:3,children:[]},{code:"130306",name:"抚宁区",region_level:3,children:[]},{code:"130321",name:"青龙满族自治县",region_level:3,children:[]},{code:"130322",name:"昌黎县",region_level:3,children:[]},{code:"130324",name:"卢龙县",region_level:3,children:[]}]},{code:"1304",name:"邯郸市",region_level:2,children:[{code:"130402",name:"邯山区",region_level:3,children:[]},{code:"130403",name:"丛台区",region_level:3,children:[]},{code:"130404",name:"复兴区",region_level:3,children:[]},{code:"130406",name:"峰峰矿区",region_level:3,children:[]},{code:"130407",name:"肥乡区",region_level:3,children:[]},{code:"130408",name:"永年区",region_level:3,children:[]},{code:"130423",name:"临漳县",region_level:3,children:[]},{code:"130424",name:"成安县",region_level:3,children:[]},{code:"130425",name:"大名县",region_level:3,children:[]},{code:"130426",name:"涉县",region_level:3,children:[]},{code:"130427",name:"磁县",region_level:3,children:[]},{code:"130430",name:"邱县",region_level:3,children:[]},{code:"130431",name:"鸡泽县",region_level:3,children:[]},{code:"130432",name:"广平县",region_level:3,children:[]},{code:"130433",name:"馆陶县",region_level:3,children:[]},{code:"130434",name:"魏县",region_level:3,children:[]},{code:"130435",name:"曲周县",region_level:3,children:[]},{code:"130481",name:"武安市",region_level:3,children:[]}]},{code:"1305",name:"邢台市",region_level:2,children:[{code:"130502",name:"桥东区",region_level:3,children:[]},{code:"130503",name:"桥西区",region_level:3,children:[]},{code:"130521",name:"邢台县",region_level:3,children:[]},{code:"130522",name:"临城县",region_level:3,children:[]},{code:"130523",name:"内丘县",region_level:3,children:[]},{code:"130524",name:"柏乡县",region_level:3,children:[]},{code:"130525",name:"隆尧县",region_level:3,children:[]},{code:"130526",name:"任县",region_level:3,children:[]},{code:"130527",name:"南和县",region_level:3,children:[]},{code:"130528",name:"宁晋县",region_level:3,children:[]},{code:"130529",name:"巨鹿县",region_level:3,children:[]},{code:"130530",name:"新河县",region_level:3,children:[]},{code:"130531",name:"广宗县",region_level:3,children:[]},{code:"130532",name:"平乡县",region_level:3,children:[]},{code:"130533",name:"威县",region_level:3,children:[]},{code:"130534",name:"清河县",region_level:3,children:[]},{code:"130535",name:"临西县",region_level:3,children:[]},{code:"130581",name:"南宫市",region_level:3,children:[]},{code:"130582",name:"沙河市",region_level:3,children:[]}]},{code:"1306",name:"保定市",region_level:2,children:[{code:"130602",name:"竞秀区",region_level:3,children:[]},{code:"130606",name:"莲池区",region_level:3,children:[]},{code:"130607",name:"满城区",region_level:3,children:[]},{code:"130608",name:"清苑区",region_level:3,children:[]},{code:"130609",name:"徐水区",region_level:3,children:[]},{code:"130623",name:"涞水县",region_level:3,children:[]},{code:"130624",name:"阜平县",region_level:3,children:[]},{code:"130626",name:"定兴县",region_level:3,children:[]},{code:"130627",name:"唐县",region_level:3,children:[]},{code:"130628",name:"高阳县",region_level:3,children:[]},{code:"130629",name:"容城县",region_level:3,children:[]},{code:"130630",name:"涞源县",region_level:3,children:[]},{code:"130631",name:"望都县",region_level:3,children:[]},{code:"130632",name:"安新县",region_level:3,children:[]},{code:"130633",name:"易县",region_level:3,children:[]},{code:"130634",name:"曲阳县",region_level:3,children:[]},{code:"130635",name:"蠡县",region_level:3,children:[]},{code:"130636",name:"顺平县",region_level:3,children:[]},{code:"130637",name:"博野县",region_level:3,children:[]},{code:"130638",name:"雄县",region_level:3,children:[]},{code:"130681",name:"涿州市",region_level:3,children:[]},{code:"130682",name:"定州市",region_level:3,children:[]},{code:"130683",name:"安国市",region_level:3,children:[]},{code:"130684",name:"高碑店市",region_level:3,children:[]}]},{code:"1307",name:"张家口市",region_level:2,children:[{code:"130702",name:"桥东区",region_level:3,children:[]},{code:"130703",name:"桥西区",region_level:3,children:[]},{code:"130705",name:"宣化区",region_level:3,children:[]},{code:"130706",name:"下花园区",region_level:3,children:[]},{code:"130708",name:"万全区",region_level:3,children:[]},{code:"130709",name:"崇礼区",region_level:3,children:[]},{code:"130722",name:"张北县",region_level:3,children:[]},{code:"130723",name:"康保县",region_level:3,children:[]},{code:"130724",name:"沽源县",region_level:3,children:[]},{code:"130725",name:"尚义县",region_level:3,children:[]},{code:"130726",name:"蔚县",region_level:3,children:[]},{code:"130727",name:"阳原县",region_level:3,children:[]},{code:"130728",name:"怀安县",region_level:3,children:[]},{code:"130730",name:"怀来县",region_level:3,children:[]},{code:"130731",name:"涿鹿县",region_level:3,children:[]},{code:"130732",name:"赤城县",region_level:3,children:[]}]},{code:"1308",name:"承德市",region_level:2,children:[{code:"130802",name:"双桥区",region_level:3,children:[]},{code:"130803",name:"双滦区",region_level:3,children:[]},{code:"130804",name:"鹰手营子矿区",region_level:3,children:[]},{code:"130821",name:"承德县",region_level:3,children:[]},{code:"130822",name:"兴隆县",region_level:3,children:[]},{code:"130824",name:"滦平县",region_level:3,children:[]},{code:"130825",name:"隆化县",region_level:3,children:[]},{code:"130826",name:"丰宁满族自治县",region_level:3,children:[]},{code:"130827",name:"宽城满族自治县",region_level:3,children:[]},{code:"130828",name:"围场满族蒙古族自治县",region_level:3,children:[]},{code:"130881",name:"平泉市",region_level:3,children:[]}]},{code:"1309",name:"沧州市",region_level:2,children:[{code:"130902",name:"新华区",region_level:3,children:[]},{code:"130903",name:"运河区",region_level:3,children:[]},{code:"130921",name:"沧县",region_level:3,children:[]},{code:"130922",name:"青县",region_level:3,children:[]},{code:"130923",name:"东光县",region_level:3,children:[]},{code:"130924",name:"海兴县",region_level:3,children:[]},{code:"130925",name:"盐山县",region_level:3,children:[]},{code:"130926",name:"肃宁县",region_level:3,children:[]},{code:"130927",name:"南皮县",region_level:3,children:[]},{code:"130928",name:"吴桥县",region_level:3,children:[]},{code:"130929",name:"献县",region_level:3,children:[]},{code:"130930",name:"孟村回族自治县",region_level:3,children:[]},{code:"130981",name:"泊头市",region_level:3,children:[]},{code:"130982",name:"任丘市",region_level:3,children:[]},{code:"130983",name:"黄骅市",region_level:3,children:[]},{code:"130984",name:"河间市",region_level:3,children:[]}]},{code:"1310",name:"廊坊市",region_level:2,children:[{code:"131002",name:"安次区",region_level:3,children:[]},{code:"131003",name:"广阳区",region_level:3,children:[]},{code:"131022",name:"固安县",region_level:3,children:[]},{code:"131023",name:"永清县",region_level:3,children:[]},{code:"131024",name:"香河县",region_level:3,children:[]},{code:"131025",name:"大城县",region_level:3,children:[]},{code:"131026",name:"文安县",region_level:3,children:[]},{code:"131028",name:"大厂回族自治县",region_level:3,children:[]},{code:"131081",name:"霸州市",region_level:3,children:[]},{code:"131082",name:"三河市",region_level:3,children:[]}]},{code:"1311",name:"衡水市",region_level:2,children:[{code:"131102",name:"桃城区",region_level:3,children:[]},{code:"131103",name:"冀州区",region_level:3,children:[]},{code:"131121",name:"枣强县",region_level:3,children:[]},{code:"131122",name:"武邑县",region_level:3,children:[]},{code:"131123",name:"武强县",region_level:3,children:[]},{code:"131124",name:"饶阳县",region_level:3,children:[]},{code:"131125",name:"安平县",region_level:3,children:[]},{code:"131126",name:"故城县",region_level:3,children:[]},{code:"131127",name:"景县",region_level:3,children:[]},{code:"131128",name:"阜城县",region_level:3,children:[]},{code:"131182",name:"深州市",region_level:3,children:[]}]}]},{code:"14",name:"山西省",region_level:1,children:[{code:"1401",name:"太原市",region_level:2,children:[{code:"140105",name:"小店区",region_level:3,children:[]},{code:"140106",name:"迎泽区",region_level:3,children:[]},{code:"140107",name:"杏花岭区",region_level:3,children:[]},{code:"140108",name:"尖草坪区",region_level:3,children:[]},{code:"140109",name:"万柏林区",region_level:3,children:[]},{code:"140110",name:"晋源区",region_level:3,children:[]},{code:"140121",name:"清徐县",region_level:3,children:[]},{code:"140122",name:"阳曲县",region_level:3,children:[]},{code:"140123",name:"娄烦县",region_level:3,children:[]},{code:"140181",name:"古交市",region_level:3,children:[]}]},{code:"1402",name:"大同市",region_level:2,children:[{code:"140212",name:"新荣区",region_level:3,children:[]},{code:"140213",name:"平城区",region_level:3,children:[]},{code:"140214",name:"云冈区",region_level:3,children:[]},{code:"140215",name:"云州区",region_level:3,children:[]},{code:"140221",name:"阳高县",region_level:3,children:[]},{code:"140222",name:"天镇县",region_level:3,children:[]},{code:"140223",name:"广灵县",region_level:3,children:[]},{code:"140224",name:"灵丘县",region_level:3,children:[]},{code:"140225",name:"浑源县",region_level:3,children:[]},{code:"140226",name:"左云县",region_level:3,children:[]}]},{code:"1403",name:"阳泉市",region_level:2,children:[{code:"140302",name:"城区",region_level:3,children:[]},{code:"140303",name:"矿区",region_level:3,children:[]},{code:"140311",name:"郊区",region_level:3,children:[]},{code:"140321",name:"平定县",region_level:3,children:[]},{code:"140322",name:"盂县",region_level:3,children:[]}]},{code:"1404",name:"长治市",region_level:2,children:[{code:"140403",name:"潞州区",region_level:3,children:[]},{code:"140404",name:"上党区",region_level:3,children:[]},{code:"140405",name:"屯留区",region_level:3,children:[]},{code:"140406",name:"潞城区",region_level:3,children:[]},{code:"140423",name:"襄垣县",region_level:3,children:[]},{code:"140425",name:"平顺县",region_level:3,children:[]},{code:"140426",name:"黎城县",region_level:3,children:[]},{code:"140427",name:"壶关县",region_level:3,children:[]},{code:"140428",name:"长子县",region_level:3,children:[]},{code:"140429",name:"武乡县",region_level:3,children:[]},{code:"140430",name:"沁县",region_level:3,children:[]},{code:"140431",name:"沁源县",region_level:3,children:[]}]},{code:"1405",name:"晋城市",region_level:2,children:[{code:"140502",name:"城区",region_level:3,children:[]},{code:"140521",name:"沁水县",region_level:3,children:[]},{code:"140522",name:"阳城县",region_level:3,children:[]},{code:"140524",name:"陵川县",region_level:3,children:[]},{code:"140525",name:"泽州县",region_level:3,children:[]},{code:"140581",name:"高平市",region_level:3,children:[]}]},{code:"1406",name:"朔州市",region_level:2,children:[{code:"140602",name:"朔城区",region_level:3,children:[]},{code:"140603",name:"平鲁区",region_level:3,children:[]},{code:"140621",name:"山阴县",region_level:3,children:[]},{code:"140622",name:"应县",region_level:3,children:[]},{code:"140623",name:"右玉县",region_level:3,children:[]},{code:"140681",name:"怀仁市",region_level:3,children:[]}]},{code:"1407",name:"晋中市",region_level:2,children:[{code:"140702",name:"榆次区",region_level:3,children:[]},{code:"140703",name:"太谷区",region_level:3,children:[]},{code:"140721",name:"榆社县",region_level:3,children:[]},{code:"140722",name:"左权县",region_level:3,children:[]},{code:"140723",name:"和顺县",region_level:3,children:[]},{code:"140724",name:"昔阳县",region_level:3,children:[]},{code:"140725",name:"寿阳县",region_level:3,children:[]},{code:"140727",name:"祁县",region_level:3,children:[]},{code:"140728",name:"平遥县",region_level:3,children:[]},{code:"140729",name:"灵石县",region_level:3,children:[]},{code:"140781",name:"介休市",region_level:3,children:[]}]},{code:"1408",name:"运城市",region_level:2,children:[{code:"140802",name:"盐湖区",region_level:3,children:[]},{code:"140821",name:"临猗县",region_level:3,children:[]},{code:"140822",name:"万荣县",region_level:3,children:[]},{code:"140823",name:"闻喜县",region_level:3,children:[]},{code:"140824",name:"稷山县",region_level:3,children:[]},{code:"140825",name:"新绛县",region_level:3,children:[]},{code:"140826",name:"绛县",region_level:3,children:[]},{code:"140827",name:"垣曲县",region_level:3,children:[]},{code:"140828",name:"夏县",region_level:3,children:[]},{code:"140829",name:"平陆县",region_level:3,children:[]},{code:"140830",name:"芮城县",region_level:3,children:[]},{code:"140881",name:"永济市",region_level:3,children:[]},{code:"140882",name:"河津市",region_level:3,children:[]}]},{code:"1409",name:"忻州市",region_level:2,children:[{code:"140902",name:"忻府区",region_level:3,children:[]},{code:"140921",name:"定襄县",region_level:3,children:[]},{code:"140922",name:"五台县",region_level:3,children:[]},{code:"140923",name:"代县",region_level:3,children:[]},{code:"140924",name:"繁峙县",region_level:3,children:[]},{code:"140925",name:"宁武县",region_level:3,children:[]},{code:"140926",name:"静乐县",region_level:3,children:[]},{code:"140927",name:"神池县",region_level:3,children:[]},{code:"140928",name:"五寨县",region_level:3,children:[]},{code:"140929",name:"岢岚县",region_level:3,children:[]},{code:"140930",name:"河曲县",region_level:3,children:[]},{code:"140931",name:"保德县",region_level:3,children:[]},{code:"140932",name:"偏关县",region_level:3,children:[]},{code:"140981",name:"原平市",region_level:3,children:[]}]},{code:"1410",name:"临汾市",region_level:2,children:[{code:"141002",name:"尧都区",region_level:3,children:[]},{code:"141021",name:"曲沃县",region_level:3,children:[]},{code:"141022",name:"翼城县",region_level:3,children:[]},{code:"141023",name:"襄汾县",region_level:3,children:[]},{code:"141024",name:"洪洞县",region_level:3,children:[]},{code:"141025",name:"古县",region_level:3,children:[]},{code:"141026",name:"安泽县",region_level:3,children:[]},{code:"141027",name:"浮山县",region_level:3,children:[]},{code:"141028",name:"吉县",region_level:3,children:[]},{code:"141029",name:"乡宁县",region_level:3,children:[]},{code:"141030",name:"大宁县",region_level:3,children:[]},{code:"141031",name:"隰县",region_level:3,children:[]},{code:"141032",name:"永和县",region_level:3,children:[]},{code:"141033",name:"蒲县",region_level:3,children:[]},{code:"141034",name:"汾西县",region_level:3,children:[]},{code:"141081",name:"侯马市",region_level:3,children:[]},{code:"141082",name:"霍州市",region_level:3,children:[]}]},{code:"1411",name:"吕梁市",region_level:2,children:[{code:"141102",name:"离石区",region_level:3,children:[]},{code:"141121",name:"文水县",region_level:3,children:[]},{code:"141122",name:"交城县",region_level:3,children:[]},{code:"141123",name:"兴县",region_level:3,children:[]},{code:"141124",name:"临县",region_level:3,children:[]},{code:"141125",name:"柳林县",region_level:3,children:[]},{code:"141126",name:"石楼县",region_level:3,children:[]},{code:"141127",name:"岚县",region_level:3,children:[]},{code:"141128",name:"方山县",region_level:3,children:[]},{code:"141129",name:"中阳县",region_level:3,children:[]},{code:"141130",name:"交口县",region_level:3,children:[]},{code:"141181",name:"孝义市",region_level:3,children:[]},{code:"141182",name:"汾阳市",region_level:3,children:[]}]}]},{code:"15",name:"内蒙古自治区",region_level:1,children:[{code:"1501",name:"呼和浩特市",region_level:2,children:[{code:"150102",name:"新城区",region_level:3,children:[]},{code:"150103",name:"回民区",region_level:3,children:[]},{code:"150104",name:"玉泉区",region_level:3,children:[]},{code:"150105",name:"赛罕区",region_level:3,children:[]},{code:"150121",name:"土默特左旗",region_level:3,children:[]},{code:"150122",name:"托克托县",region_level:3,children:[]},{code:"150123",name:"和林格尔县",region_level:3,children:[]},{code:"150124",name:"清水河县",region_level:3,children:[]},{code:"150125",name:"武川县",region_level:3,children:[]}]},{code:"1502",name:"包头市",region_level:2,children:[{code:"150202",name:"东河区",region_level:3,children:[]},{code:"150203",name:"昆都仑区",region_level:3,children:[]},{code:"150204",name:"青山区",region_level:3,children:[]},{code:"150205",name:"石拐区",region_level:3,children:[]},{code:"150206",name:"白云鄂博矿区",region_level:3,children:[]},{code:"150207",name:"九原区",region_level:3,children:[]},{code:"150221",name:"土默特右旗",region_level:3,children:[]},{code:"150222",name:"固阳县",region_level:3,children:[]},{code:"150223",name:"达尔罕茂明安联合旗",region_level:3,children:[]}]},{code:"1503",name:"乌海市",region_level:2,children:[{code:"150302",name:"海勃湾区",region_level:3,children:[]},{code:"150303",name:"海南区",region_level:3,children:[]},{code:"150304",name:"乌达区",region_level:3,children:[]}]},{code:"1504",name:"赤峰市",region_level:2,children:[{code:"150402",name:"红山区",region_level:3,children:[]},{code:"150403",name:"元宝山区",region_level:3,children:[]},{code:"150404",name:"松山区",region_level:3,children:[]},{code:"150421",name:"阿鲁科尔沁旗",region_level:3,children:[]},{code:"150422",name:"巴林左旗",region_level:3,children:[]},{code:"150423",name:"巴林右旗",region_level:3,children:[]},{code:"150424",name:"林西县",region_level:3,children:[]},{code:"150425",name:"克什克腾旗",region_level:3,children:[]},{code:"150426",name:"翁牛特旗",region_level:3,children:[]},{code:"150428",name:"喀喇沁旗",region_level:3,children:[]},{code:"150429",name:"宁城县",region_level:3,children:[]},{code:"150430",name:"敖汉旗",region_level:3,children:[]}]},{code:"1505",name:"通辽市",region_level:2,children:[{code:"150502",name:"科尔沁区",region_level:3,children:[]},{code:"150521",name:"科尔沁左翼中旗",region_level:3,children:[]},{code:"150522",name:"科尔沁左翼后旗",region_level:3,children:[]},{code:"150523",name:"开鲁县",region_level:3,children:[]},{code:"150524",name:"库伦旗",region_level:3,children:[]},{code:"150525",name:"奈曼旗",region_level:3,children:[]},{code:"150526",name:"扎鲁特旗",region_level:3,children:[]},{code:"150581",name:"霍林郭勒市",region_level:3,children:[]}]},{code:"1506",name:"鄂尔多斯市",region_level:2,children:[{code:"150602",name:"东胜区",region_level:3,children:[]},{code:"150603",name:"康巴什区",region_level:3,children:[]},{code:"150621",name:"达拉特旗",region_level:3,children:[]},{code:"150622",name:"准格尔旗",region_level:3,children:[]},{code:"150623",name:"鄂托克前旗",region_level:3,children:[]},{code:"150624",name:"鄂托克旗",region_level:3,children:[]},{code:"150625",name:"杭锦旗",region_level:3,children:[]},{code:"150626",name:"乌审旗",region_level:3,children:[]},{code:"150627",name:"伊金霍洛旗",region_level:3,children:[]}]},{code:"1507",name:"呼伦贝尔市",region_level:2,children:[{code:"150702",name:"海拉尔区",region_level:3,children:[]},{code:"150703",name:"扎赉诺尔区",region_level:3,children:[]},{code:"150721",name:"阿荣旗",region_level:3,children:[]},{code:"150722",name:"莫力达瓦达斡尔族自治旗",region_level:3,children:[]},{code:"150723",name:"鄂伦春自治旗",region_level:3,children:[]},{code:"150724",name:"鄂温克族自治旗",region_level:3,children:[]},{code:"150725",name:"陈巴尔虎旗",region_level:3,children:[]},{code:"150726",name:"新巴尔虎左旗",region_level:3,children:[]},{code:"150727",name:"新巴尔虎右旗",region_level:3,children:[]},{code:"150781",name:"满洲里市",region_level:3,children:[]},{code:"150782",name:"牙克石市",region_level:3,children:[]},{code:"150783",name:"扎兰屯市",region_level:3,children:[]},{code:"150784",name:"额尔古纳市",region_level:3,children:[]},{code:"150785",name:"根河市",region_level:3,children:[]}]},{code:"1508",name:"巴彦淖尔市",region_level:2,children:[{code:"150802",name:"临河区",region_level:3,children:[]},{code:"150821",name:"五原县",region_level:3,children:[]},{code:"150822",name:"磴口县",region_level:3,children:[]},{code:"150823",name:"乌拉特前旗",region_level:3,children:[]},{code:"150824",name:"乌拉特中旗",region_level:3,children:[]},{code:"150825",name:"乌拉特后旗",region_level:3,children:[]},{code:"150826",name:"杭锦后旗",region_level:3,children:[]}]},{code:"1509",name:"乌兰察布市",region_level:2,children:[{code:"150902",name:"集宁区",region_level:3,children:[]},{code:"150921",name:"卓资县",region_level:3,children:[]},{code:"150922",name:"化德县",region_level:3,children:[]},{code:"150923",name:"商都县",region_level:3,children:[]},{code:"150924",name:"兴和县",region_level:3,children:[]},{code:"150925",name:"凉城县",region_level:3,children:[]},{code:"150926",name:"察哈尔右翼前旗",region_level:3,children:[]},{code:"150927",name:"察哈尔右翼中旗",region_level:3,children:[]},{code:"150928",name:"察哈尔右翼后旗",region_level:3,children:[]},{code:"150929",name:"四子王旗",region_level:3,children:[]},{code:"150981",name:"丰镇市",region_level:3,children:[]}]},{code:"1522",name:"兴安盟",region_level:2,children:[{code:"152201",name:"乌兰浩特市",region_level:3,children:[]},{code:"152202",name:"阿尔山市",region_level:3,children:[]},{code:"152221",name:"科尔沁右翼前旗",region_level:3,children:[]},{code:"152222",name:"科尔沁右翼中旗",region_level:3,children:[]},{code:"152223",name:"扎赉特旗",region_level:3,children:[]},{code:"152224",name:"突泉县",region_level:3,children:[]}]},{code:"1525",name:"锡林郭勒盟",region_level:2,children:[{code:"152501",name:"二连浩特市",region_level:3,children:[]},{code:"152502",name:"锡林浩特市",region_level:3,children:[]},{code:"152522",name:"阿巴嘎旗",region_level:3,children:[]},{code:"152523",name:"苏尼特左旗",region_level:3,children:[]},{code:"152524",name:"苏尼特右旗",region_level:3,children:[]},{code:"152525",name:"东乌珠穆沁旗",region_level:3,children:[]},{code:"152526",name:"西乌珠穆沁旗",region_level:3,children:[]},{code:"152527",name:"太仆寺旗",region_level:3,children:[]},{code:"152528",name:"镶黄旗",region_level:3,children:[]},{code:"152529",name:"正镶白旗",region_level:3,children:[]},{code:"152530",name:"正蓝旗",region_level:3,children:[]},{code:"152531",name:"多伦县",region_level:3,children:[]}]},{code:"1529",name:"阿拉善盟",region_level:2,children:[{code:"152921",name:"阿拉善左旗",region_level:3,children:[]},{code:"152922",name:"阿拉善右旗",region_level:3,children:[]},{code:"152923",name:"额济纳旗",region_level:3,children:[]}]}]},{code:"21",name:"辽宁省",region_level:1,children:[{code:"2101",name:"沈阳市",region_level:2,children:[{code:"210102",name:"和平区",region_level:3,children:[]},{code:"210103",name:"沈河区",region_level:3,children:[]},{code:"210104",name:"大东区",region_level:3,children:[]},{code:"210105",name:"皇姑区",region_level:3,children:[]},{code:"210106",name:"铁西区",region_level:3,children:[]},{code:"210111",name:"苏家屯区",region_level:3,children:[]},{code:"210112",name:"浑南区",region_level:3,children:[]},{code:"210113",name:"沈北新区",region_level:3,children:[]},{code:"210114",name:"于洪区",region_level:3,children:[]},{code:"210115",name:"辽中区",region_level:3,children:[]},{code:"210123",name:"康平县",region_level:3,children:[]},{code:"210124",name:"法库县",region_level:3,children:[]},{code:"210181",name:"新民市",region_level:3,children:[]}]},{code:"2102",name:"大连市",region_level:2,children:[{code:"210202",name:"中山区",region_level:3,children:[]},{code:"210203",name:"西岗区",region_level:3,children:[]},{code:"210204",name:"沙河口区",region_level:3,children:[]},{code:"210211",name:"甘井子区",region_level:3,children:[]},{code:"210212",name:"旅顺口区",region_level:3,children:[]},{code:"210213",name:"金州区",region_level:3,children:[]},{code:"210214",name:"普兰店区",region_level:3,children:[]},{code:"210224",name:"长海县",region_level:3,children:[]},{code:"210281",name:"瓦房店市",region_level:3,children:[]},{code:"210283",name:"庄河市",region_level:3,children:[]}]},{code:"2103",name:"鞍山市",region_level:2,children:[{code:"210302",name:"铁东区",region_level:3,children:[]},{code:"210303",name:"铁西区",region_level:3,children:[]},{code:"210304",name:"立山区",region_level:3,children:[]},{code:"210311",name:"千山区",region_level:3,children:[]},{code:"210321",name:"台安县",region_level:3,children:[]},{code:"210323",name:"岫岩满族自治县",region_level:3,children:[]},{code:"210381",name:"海城市",region_level:3,children:[]}]},{code:"2104",name:"抚顺市",region_level:2,children:[{code:"210402",name:"新抚区",region_level:3,children:[]},{code:"210403",name:"东洲区",region_level:3,children:[]},{code:"210404",name:"望花区",region_level:3,children:[]},{code:"210411",name:"顺城区",region_level:3,children:[]},{code:"210421",name:"抚顺县",region_level:3,children:[]},{code:"210422",name:"新宾满族自治县",region_level:3,children:[]},{code:"210423",name:"清原满族自治县",region_level:3,children:[]}]},{code:"2105",name:"本溪市",region_level:2,children:[{code:"210502",name:"平山区",region_level:3,children:[]},{code:"210503",name:"溪湖区",region_level:3,children:[]},{code:"210504",name:"明山区",region_level:3,children:[]},{code:"210505",name:"南芬区",region_level:3,children:[]},{code:"210521",name:"本溪满族自治县",region_level:3,children:[]},{code:"210522",name:"桓仁满族自治县",region_level:3,children:[]}]},{code:"2106",name:"丹东市",region_level:2,children:[{code:"210602",name:"元宝区",region_level:3,children:[]},{code:"210603",name:"振兴区",region_level:3,children:[]},{code:"210604",name:"振安区",region_level:3,children:[]},{code:"210624",name:"宽甸满族自治县",region_level:3,children:[]},{code:"210681",name:"东港市",region_level:3,children:[]},{code:"210682",name:"凤城市",region_level:3,children:[]}]},{code:"2107",name:"锦州市",region_level:2,children:[{code:"210702",name:"古塔区",region_level:3,children:[]},{code:"210703",name:"凌河区",region_level:3,children:[]},{code:"210711",name:"太和区",region_level:3,children:[]},{code:"210726",name:"黑山县",region_level:3,children:[]},{code:"210727",name:"义县",region_level:3,children:[]},{code:"210781",name:"凌海市",region_level:3,children:[]},{code:"210782",name:"北镇市",region_level:3,children:[]}]},{code:"2108",name:"营口市",region_level:2,children:[{code:"210802",name:"站前区",region_level:3,children:[]},{code:"210803",name:"西市区",region_level:3,children:[]},{code:"210804",name:"鲅鱼圈区",region_level:3,children:[]},{code:"210811",name:"老边区",region_level:3,children:[]},{code:"210881",name:"盖州市",region_level:3,children:[]},{code:"210882",name:"大石桥市",region_level:3,children:[]}]},{code:"2109",name:"阜新市",region_level:2,children:[{code:"210902",name:"海州区",region_level:3,children:[]},{code:"210903",name:"新邱区",region_level:3,children:[]},{code:"210904",name:"太平区",region_level:3,children:[]},{code:"210905",name:"清河门区",region_level:3,children:[]},{code:"210911",name:"细河区",region_level:3,children:[]},{code:"210921",name:"阜新蒙古族自治县",region_level:3,children:[]},{code:"210922",name:"彰武县",region_level:3,children:[]}]},{code:"2110",name:"辽阳市",region_level:2,children:[{code:"211002",name:"白塔区",region_level:3,children:[]},{code:"211003",name:"文圣区",region_level:3,children:[]},{code:"211004",name:"宏伟区",region_level:3,children:[]},{code:"211005",name:"弓长岭区",region_level:3,children:[]},{code:"211011",name:"太子河区",region_level:3,children:[]},{code:"211021",name:"辽阳县",region_level:3,children:[]},{code:"211081",name:"灯塔市",region_level:3,children:[]}]},{code:"2111",name:"盘锦市",region_level:2,children:[{code:"211102",name:"双台子区",region_level:3,children:[]},{code:"211103",name:"兴隆台区",region_level:3,children:[]},{code:"211104",name:"大洼区",region_level:3,children:[]},{code:"211122",name:"盘山县",region_level:3,children:[]}]},{code:"2112",name:"铁岭市",region_level:2,children:[{code:"211202",name:"银州区",region_level:3,children:[]},{code:"211204",name:"清河区",region_level:3,children:[]},{code:"211221",name:"铁岭县",region_level:3,children:[]},{code:"211223",name:"西丰县",region_level:3,children:[]},{code:"211224",name:"昌图县",region_level:3,children:[]},{code:"211281",name:"调兵山市",region_level:3,children:[]},{code:"211282",name:"开原市",region_level:3,children:[]}]},{code:"2113",name:"朝阳市",region_level:2,children:[{code:"211302",name:"双塔区",region_level:3,children:[]},{code:"211303",name:"龙城区",region_level:3,children:[]},{code:"211321",name:"朝阳县",region_level:3,children:[]},{code:"211322",name:"建平县",region_level:3,children:[]},{code:"211324",name:"喀喇沁左翼蒙古族自治县",region_level:3,children:[]},{code:"211381",name:"北票市",region_level:3,children:[]},{code:"211382",name:"凌源市",region_level:3,children:[]}]},{code:"2114",name:"葫芦岛市",region_level:2,children:[{code:"211402",name:"连山区",region_level:3,children:[]},{code:"211403",name:"龙港区",region_level:3,children:[]},{code:"211404",name:"南票区",region_level:3,children:[]},{code:"211421",name:"绥中县",region_level:3,children:[]},{code:"211422",name:"建昌县",region_level:3,children:[]},{code:"211481",name:"兴城市",region_level:3,children:[]}]}]},{code:"22",name:"吉林省",region_level:1,children:[{code:"2201",name:"长春市",region_level:2,children:[{code:"220102",name:"南关区",region_level:3,children:[]},{code:"220103",name:"宽城区",region_level:3,children:[]},{code:"220104",name:"朝阳区",region_level:3,children:[]},{code:"220105",name:"二道区",region_level:3,children:[]},{code:"220106",name:"绿园区",region_level:3,children:[]},{code:"220112",name:"双阳区",region_level:3,children:[]},{code:"220113",name:"九台区",region_level:3,children:[]},{code:"220122",name:"农安县",region_level:3,children:[]},{code:"220182",name:"榆树市",region_level:3,children:[]},{code:"220183",name:"德惠市",region_level:3,children:[]}]},{code:"2202",name:"吉林市",region_level:2,children:[{code:"220202",name:"昌邑区",region_level:3,children:[]},{code:"220203",name:"龙潭区",region_level:3,children:[]},{code:"220204",name:"船营区",region_level:3,children:[]},{code:"220211",name:"丰满区",region_level:3,children:[]},{code:"220221",name:"永吉县",region_level:3,children:[]},{code:"220281",name:"蛟河市",region_level:3,children:[]},{code:"220282",name:"桦甸市",region_level:3,children:[]},{code:"220283",name:"舒兰市",region_level:3,children:[]},{code:"220284",name:"磐石市",region_level:3,children:[]}]},{code:"2203",name:"四平市",region_level:2,children:[{code:"220302",name:"铁西区",region_level:3,children:[]},{code:"220303",name:"铁东区",region_level:3,children:[]},{code:"220322",name:"梨树县",region_level:3,children:[]},{code:"220323",name:"伊通满族自治县",region_level:3,children:[]},{code:"220381",name:"公主岭市",region_level:3,children:[]},{code:"220382",name:"双辽市",region_level:3,children:[]}]},{code:"2204",name:"辽源市",region_level:2,children:[{code:"220402",name:"龙山区",region_level:3,children:[]},{code:"220403",name:"西安区",region_level:3,children:[]},{code:"220421",name:"东丰县",region_level:3,children:[]},{code:"220422",name:"东辽县",region_level:3,children:[]}]},{code:"2205",name:"通化市",region_level:2,children:[{code:"220502",name:"东昌区",region_level:3,children:[]},{code:"220503",name:"二道江区",region_level:3,children:[]},{code:"220521",name:"通化县",region_level:3,children:[]},{code:"220523",name:"辉南县",region_level:3,children:[]},{code:"220524",name:"柳河县",region_level:3,children:[]},{code:"220581",name:"梅河口市",region_level:3,children:[]},{code:"220582",name:"集安市",region_level:3,children:[]}]},{code:"2206",name:"白山市",region_level:2,children:[{code:"220602",name:"浑江区",region_level:3,children:[]},{code:"220605",name:"江源区",region_level:3,children:[]},{code:"220621",name:"抚松县",region_level:3,children:[]},{code:"220622",name:"靖宇县",region_level:3,children:[]},{code:"220623",name:"长白朝鲜族自治县",region_level:3,children:[]},{code:"220681",name:"临江市",region_level:3,children:[]}]},{code:"2207",name:"松原市",region_level:2,children:[{code:"220702",name:"宁江区",region_level:3,children:[]},{code:"220721",name:"前郭尔罗斯蒙古族自治县",region_level:3,children:[]},{code:"220722",name:"长岭县",region_level:3,children:[]},{code:"220723",name:"乾安县",region_level:3,children:[]},{code:"220781",name:"扶余市",region_level:3,children:[]}]},{code:"2208",name:"白城市",region_level:2,children:[{code:"220802",name:"洮北区",region_level:3,children:[]},{code:"220821",name:"镇赉县",region_level:3,children:[]},{code:"220822",name:"通榆县",region_level:3,children:[]},{code:"220881",name:"洮南市",region_level:3,children:[]},{code:"220882",name:"大安市",region_level:3,children:[]}]},{code:"2224",name:"延边朝鲜族自治州",region_level:2,children:[{code:"222401",name:"延吉市",region_level:3,children:[]},{code:"222402",name:"图们市",region_level:3,children:[]},{code:"222403",name:"敦化市",region_level:3,children:[]},{code:"222404",name:"珲春市",region_level:3,children:[]},{code:"222405",name:"龙井市",region_level:3,children:[]},{code:"222406",name:"和龙市",region_level:3,children:[]},{code:"222424",name:"汪清县",region_level:3,children:[]},{code:"222426",name:"安图县",region_level:3,children:[]}]}]},{code:"23",name:"黑龙江省",region_level:1,children:[{code:"2301",name:"哈尔滨市",region_level:2,children:[{code:"230102",name:"道里区",region_level:3,children:[]},{code:"230103",name:"南岗区",region_level:3,children:[]},{code:"230104",name:"道外区",region_level:3,children:[]},{code:"230108",name:"平房区",region_level:3,children:[]},{code:"230109",name:"松北区",region_level:3,children:[]},{code:"230110",name:"香坊区",region_level:3,children:[]},{code:"230111",name:"呼兰区",region_level:3,children:[]},{code:"230112",name:"阿城区",region_level:3,children:[]},{code:"230113",name:"双城区",region_level:3,children:[]},{code:"230123",name:"依兰县",region_level:3,children:[]},{code:"230124",name:"方正县",region_level:3,children:[]},{code:"230125",name:"宾县",region_level:3,children:[]},{code:"230126",name:"巴彦县",region_level:3,children:[]},{code:"230127",name:"木兰县",region_level:3,children:[]},{code:"230128",name:"通河县",region_level:3,children:[]},{code:"230129",name:"延寿县",region_level:3,children:[]},{code:"230183",name:"尚志市",region_level:3,children:[]},{code:"230184",name:"五常市",region_level:3,children:[]}]},{code:"2302",name:"齐齐哈尔市",region_level:2,children:[{code:"230202",name:"龙沙区",region_level:3,children:[]},{code:"230203",name:"建华区",region_level:3,children:[]},{code:"230204",name:"铁锋区",region_level:3,children:[]},{code:"230205",name:"昂昂溪区",region_level:3,children:[]},{code:"230206",name:"富拉尔基区",region_level:3,children:[]},{code:"230207",name:"碾子山区",region_level:3,children:[]},{code:"230208",name:"梅里斯达斡尔族区",region_level:3,children:[]},{code:"230221",name:"龙江县",region_level:3,children:[]},{code:"230223",name:"依安县",region_level:3,children:[]},{code:"230224",name:"泰来县",region_level:3,children:[]},{code:"230225",name:"甘南县",region_level:3,children:[]},{code:"230227",name:"富裕县",region_level:3,children:[]},{code:"230229",name:"克山县",region_level:3,children:[]},{code:"230230",name:"克东县",region_level:3,children:[]},{code:"230231",name:"拜泉县",region_level:3,children:[]},{code:"230281",name:"讷河市",region_level:3,children:[]}]},{code:"2303",name:"鸡西市",region_level:2,children:[{code:"230302",name:"鸡冠区",region_level:3,children:[]},{code:"230303",name:"恒山区",region_level:3,children:[]},{code:"230304",name:"滴道区",region_level:3,children:[]},{code:"230305",name:"梨树区",region_level:3,children:[]},{code:"230306",name:"城子河区",region_level:3,children:[]},{code:"230307",name:"麻山区",region_level:3,children:[]},{code:"230321",name:"鸡东县",region_level:3,children:[]},{code:"230381",name:"虎林市",region_level:3,children:[]},{code:"230382",name:"密山市",region_level:3,children:[]}]},{code:"2304",name:"鹤岗市",region_level:2,children:[{code:"230402",name:"向阳区",region_level:3,children:[]},{code:"230403",name:"工农区",region_level:3,children:[]},{code:"230404",name:"南山区",region_level:3,children:[]},{code:"230405",name:"兴安区",region_level:3,children:[]},{code:"230406",name:"东山区",region_level:3,children:[]},{code:"230407",name:"兴山区",region_level:3,children:[]},{code:"230421",name:"萝北县",region_level:3,children:[]},{code:"230422",name:"绥滨县",region_level:3,children:[]}]},{code:"2305",name:"双鸭山市",region_level:2,children:[{code:"230502",name:"尖山区",region_level:3,children:[]},{code:"230503",name:"岭东区",region_level:3,children:[]},{code:"230505",name:"四方台区",region_level:3,children:[]},{code:"230506",name:"宝山区",region_level:3,children:[]},{code:"230521",name:"集贤县",region_level:3,children:[]},{code:"230522",name:"友谊县",region_level:3,children:[]},{code:"230523",name:"宝清县",region_level:3,children:[]},{code:"230524",name:"饶河县",region_level:3,children:[]}]},{code:"2306",name:"大庆市",region_level:2,children:[{code:"230602",name:"萨尔图区",region_level:3,children:[]},{code:"230603",name:"龙凤区",region_level:3,children:[]},{code:"230604",name:"让胡路区",region_level:3,children:[]},{code:"230605",name:"红岗区",region_level:3,children:[]},{code:"230606",name:"大同区",region_level:3,children:[]},{code:"230621",name:"肇州县",region_level:3,children:[]},{code:"230622",name:"肇源县",region_level:3,children:[]},{code:"230623",name:"林甸县",region_level:3,children:[]},{code:"230624",name:"杜尔伯特蒙古族自治县",region_level:3,children:[]}]},{code:"2307",name:"伊春市",region_level:2,children:[{code:"230717",name:"伊美区",region_level:3,children:[]},{code:"230718",name:"乌翠区",region_level:3,children:[]},{code:"230719",name:"友好区",region_level:3,children:[]},{code:"230722",name:"嘉荫县",region_level:3,children:[]},{code:"230723",name:"汤旺县",region_level:3,children:[]},{code:"230724",name:"丰林县",region_level:3,children:[]},{code:"230725",name:"大箐山县",region_level:3,children:[]},{code:"230726",name:"南岔县",region_level:3,children:[]},{code:"230751",name:"金林区",region_level:3,children:[]},{code:"230781",name:"铁力市",region_level:3,children:[]}]},{code:"2308",name:"佳木斯市",region_level:2,children:[{code:"230803",name:"向阳区",region_level:3,children:[]},{code:"230804",name:"前进区",region_level:3,children:[]},{code:"230805",name:"东风区",region_level:3,children:[]},{code:"230811",name:"郊区",region_level:3,children:[]},{code:"230822",name:"桦南县",region_level:3,children:[]},{code:"230826",name:"桦川县",region_level:3,children:[]},{code:"230828",name:"汤原县",region_level:3,children:[]},{code:"230881",name:"同江市",region_level:3,children:[]},{code:"230882",name:"富锦市",region_level:3,children:[]},{code:"230883",name:"抚远市",region_level:3,children:[]}]},{code:"2309",name:"七台河市",region_level:2,children:[{code:"230902",name:"新兴区",region_level:3,children:[]},{code:"230903",name:"桃山区",region_level:3,children:[]},{code:"230904",name:"茄子河区",region_level:3,children:[]},{code:"230921",name:"勃利县",region_level:3,children:[]}]},{code:"2310",name:"牡丹江市",region_level:2,children:[{code:"231002",name:"东安区",region_level:3,children:[]},{code:"231003",name:"阳明区",region_level:3,children:[]},{code:"231004",name:"爱民区",region_level:3,children:[]},{code:"231005",name:"西安区",region_level:3,children:[]},{code:"231025",name:"林口县",region_level:3,children:[]},{code:"231081",name:"绥芬河市",region_level:3,children:[]},{code:"231083",name:"海林市",region_level:3,children:[]},{code:"231084",name:"宁安市",region_level:3,children:[]},{code:"231085",name:"穆棱市",region_level:3,children:[]},{code:"231086",name:"东宁市",region_level:3,children:[]}]},{code:"2311",name:"黑河市",region_level:2,children:[{code:"231102",name:"爱辉区",region_level:3,children:[]},{code:"231123",name:"逊克县",region_level:3,children:[]},{code:"231124",name:"孙吴县",region_level:3,children:[]},{code:"231181",name:"北安市",region_level:3,children:[]},{code:"231182",name:"五大连池市",region_level:3,children:[]},{code:"231183",name:"嫩江市",region_level:3,children:[]}]},{code:"2312",name:"绥化市",region_level:2,children:[{code:"231202",name:"北林区",region_level:3,children:[]},{code:"231221",name:"望奎县",region_level:3,children:[]},{code:"231222",name:"兰西县",region_level:3,children:[]},{code:"231223",name:"青冈县",region_level:3,children:[]},{code:"231224",name:"庆安县",region_level:3,children:[]},{code:"231225",name:"明水县",region_level:3,children:[]},{code:"231226",name:"绥棱县",region_level:3,children:[]},{code:"231281",name:"安达市",region_level:3,children:[]},{code:"231282",name:"肇东市",region_level:3,children:[]},{code:"231283",name:"海伦市",region_level:3,children:[]}]},{code:"2327",name:"大兴安岭地区",region_level:2,children:[{code:"232701",name:"漠河市",region_level:3,children:[]},{code:"232721",name:"呼玛县",region_level:3,children:[]},{code:"232722",name:"塔河县",region_level:3,children:[]}]}]},{code:"31",name:"上海市",region_level:1,children:[{code:"3101",name:"上海市",region_level:2,children:[{code:"310101",name:"黄浦区",region_level:3,children:[]},{code:"310104",name:"徐汇区",region_level:3,children:[]},{code:"310105",name:"长宁区",region_level:3,children:[]},{code:"310106",name:"静安区",region_level:3,children:[]},{code:"310107",name:"普陀区",region_level:3,children:[]},{code:"310109",name:"虹口区",region_level:3,children:[]},{code:"310110",name:"杨浦区",region_level:3,children:[]},{code:"310112",name:"闵行区",region_level:3,children:[]},{code:"310113",name:"宝山区",region_level:3,children:[]},{code:"310114",name:"嘉定区",region_level:3,children:[]},{code:"310115",name:"浦东新区",region_level:3,children:[]},{code:"310116",name:"金山区",region_level:3,children:[]},{code:"310117",name:"松江区",region_level:3,children:[]},{code:"310118",name:"青浦区",region_level:3,children:[]},{code:"310120",name:"奉贤区",region_level:3,children:[]},{code:"310151",name:"崇明区",region_level:3,children:[]}]}]},{code:"32",name:"江苏省",region_level:1,children:[{code:"3201",name:"南京市",region_level:2,children:[{code:"320102",name:"玄武区",region_level:3,children:[]},{code:"320104",name:"秦淮区",region_level:3,children:[]},{code:"320105",name:"建邺区",region_level:3,children:[]},{code:"320106",name:"鼓楼区",region_level:3,children:[]},{code:"320111",name:"浦口区",region_level:3,children:[]},{code:"320113",name:"栖霞区",region_level:3,children:[]},{code:"320114",name:"雨花台区",region_level:3,children:[]},{code:"320115",name:"江宁区",region_level:3,children:[]},{code:"320116",name:"六合区",region_level:3,children:[]},{code:"320117",name:"溧水区",region_level:3,children:[]},{code:"320118",name:"高淳区",region_level:3,children:[]}]},{code:"3202",name:"无锡市",region_level:2,children:[{code:"320205",name:"锡山区",region_level:3,children:[]},{code:"320206",name:"惠山区",region_level:3,children:[]},{code:"320211",name:"滨湖区",region_level:3,children:[]},{code:"320213",name:"梁溪区",region_level:3,children:[]},{code:"320214",name:"新吴区",region_level:3,children:[]},{code:"320281",name:"江阴市",region_level:3,children:[]},{code:"320282",name:"宜兴市",region_level:3,children:[]}]},{code:"3203",name:"徐州市",region_level:2,children:[{code:"320302",name:"鼓楼区",region_level:3,children:[]},{code:"320303",name:"云龙区",region_level:3,children:[]},{code:"320305",name:"贾汪区",region_level:3,children:[]},{code:"320311",name:"泉山区",region_level:3,children:[]},{code:"320312",name:"铜山区",region_level:3,children:[]},{code:"320321",name:"丰县",region_level:3,children:[]},{code:"320322",name:"沛县",region_level:3,children:[]},{code:"320324",name:"睢宁县",region_level:3,children:[]},{code:"320381",name:"新沂市",region_level:3,children:[]},{code:"320382",name:"邳州市",region_level:3,children:[]}]},{code:"3204",name:"常州市",region_level:2,children:[{code:"320402",name:"天宁区",region_level:3,children:[]},{code:"320404",name:"钟楼区",region_level:3,children:[]},{code:"320411",name:"新北区",region_level:3,children:[]},{code:"320412",name:"武进区",region_level:3,children:[]},{code:"320413",name:"金坛区",region_level:3,children:[]},{code:"320481",name:"溧阳市",region_level:3,children:[]}]},{code:"3205",name:"苏州市",region_level:2,children:[{code:"320505",name:"虎丘区",region_level:3,children:[]},{code:"320506",name:"吴中区",region_level:3,children:[]},{code:"320507",name:"相城区",region_level:3,children:[]},{code:"320508",name:"姑苏区",region_level:3,children:[]},{code:"320509",name:"吴江区",region_level:3,children:[]},{code:"320581",name:"常熟市",region_level:3,children:[]},{code:"320582",name:"张家港市",region_level:3,children:[]},{code:"320583",name:"昆山市",region_level:3,children:[]},{code:"320585",name:"太仓市",region_level:3,children:[]}]},{code:"3206",name:"南通市",region_level:2,children:[{code:"320602",name:"崇川区",region_level:3,children:[]},{code:"320611",name:"港闸区",region_level:3,children:[]},{code:"320612",name:"通州区",region_level:3,children:[]},{code:"320623",name:"如东县",region_level:3,children:[]},{code:"320681",name:"启东市",region_level:3,children:[]},{code:"320682",name:"如皋市",region_level:3,children:[]},{code:"320684",name:"海门市",region_level:3,children:[]},{code:"320685",name:"海安市",region_level:3,children:[]}]},{code:"3207",name:"连云港市",region_level:2,children:[{code:"320703",name:"连云区",region_level:3,children:[]},{code:"320706",name:"海州区",region_level:3,children:[]},{code:"320707",name:"赣榆区",region_level:3,children:[]},{code:"320722",name:"东海县",region_level:3,children:[]},{code:"320723",name:"灌云县",region_level:3,children:[]},{code:"320724",name:"灌南县",region_level:3,children:[]}]},{code:"3208",name:"淮安市",region_level:2,children:[{code:"320803",name:"淮安区",region_level:3,children:[]},{code:"320804",name:"淮阴区",region_level:3,children:[]},{code:"320812",name:"清江浦区",region_level:3,children:[]},{code:"320813",name:"洪泽区",region_level:3,children:[]},{code:"320826",name:"涟水县",region_level:3,children:[]},{code:"320830",name:"盱眙县",region_level:3,children:[]},{code:"320831",name:"金湖县",region_level:3,children:[]}]},{code:"3209",name:"盐城市",region_level:2,children:[{code:"320902",name:"亭湖区",region_level:3,children:[]},{code:"320903",name:"盐都区",region_level:3,children:[]},{code:"320904",name:"大丰区",region_level:3,children:[]},{code:"320921",name:"响水县",region_level:3,children:[]},{code:"320922",name:"滨海县",region_level:3,children:[]},{code:"320923",name:"阜宁县",region_level:3,children:[]},{code:"320924",name:"射阳县",region_level:3,children:[]},{code:"320925",name:"建湖县",region_level:3,children:[]},{code:"320981",name:"东台市",region_level:3,children:[]}]},{code:"3210",name:"扬州市",region_level:2,children:[{code:"321002",name:"广陵区",region_level:3,children:[]},{code:"321003",name:"邗江区",region_level:3,children:[]},{code:"321012",name:"江都区",region_level:3,children:[]},{code:"321023",name:"宝应县",region_level:3,children:[]},{code:"321081",name:"仪征市",region_level:3,children:[]},{code:"321084",name:"高邮市",region_level:3,children:[]}]},{code:"3211",name:"镇江市",region_level:2,children:[{code:"321102",name:"京口区",region_level:3,children:[]},{code:"321111",name:"润州区",region_level:3,children:[]},{code:"321112",name:"丹徒区",region_level:3,children:[]},{code:"321181",name:"丹阳市",region_level:3,children:[]},{code:"321182",name:"扬中市",region_level:3,children:[]},{code:"321183",name:"句容市",region_level:3,children:[]}]},{code:"3212",name:"泰州市",region_level:2,children:[{code:"321202",name:"海陵区",region_level:3,children:[]},{code:"321203",name:"高港区",region_level:3,children:[]},{code:"321204",name:"姜堰区",region_level:3,children:[]},{code:"321281",name:"兴化市",region_level:3,children:[]},{code:"321282",name:"靖江市",region_level:3,children:[]},{code:"321283",name:"泰兴市",region_level:3,children:[]}]},{code:"3213",name:"宿迁市",region_level:2,children:[{code:"321302",name:"宿城区",region_level:3,children:[]},{code:"321311",name:"宿豫区",region_level:3,children:[]},{code:"321322",name:"沭阳县",region_level:3,children:[]},{code:"321323",name:"泗阳县",region_level:3,children:[]},{code:"321324",name:"泗洪县",region_level:3,children:[]}]}]},{code:"33",name:"浙江省",region_level:1,children:[{code:"3301",name:"杭州市",region_level:2,children:[{code:"330102",name:"上城区",region_level:3,children:[]},{code:"330103",name:"下城区",region_level:3,children:[]},{code:"330104",name:"江干区",region_level:3,children:[]},{code:"330105",name:"拱墅区",region_level:3,children:[]},{code:"330106",name:"西湖区",region_level:3,children:[]},{code:"330108",name:"滨江区",region_level:3,children:[]},{code:"330109",name:"萧山区",region_level:3,children:[]},{code:"330110",name:"余杭区",region_level:3,children:[]},{code:"330111",name:"富阳区",region_level:3,children:[]},{code:"330112",name:"临安区",region_level:3,children:[]},{code:"330122",name:"桐庐县",region_level:3,children:[]},{code:"330127",name:"淳安县",region_level:3,children:[]},{code:"330182",name:"建德市",region_level:3,children:[]}]},{code:"3302",name:"宁波市",region_level:2,children:[{code:"330203",name:"海曙区",region_level:3,children:[]},{code:"330205",name:"江北区",region_level:3,children:[]},{code:"330206",name:"北仑区",region_level:3,children:[]},{code:"330211",name:"镇海区",region_level:3,children:[]},{code:"330212",name:"鄞州区",region_level:3,children:[]},{code:"330213",name:"奉化区",region_level:3,children:[]},{code:"330225",name:"象山县",region_level:3,children:[]},{code:"330226",name:"宁海县",region_level:3,children:[]},{code:"330281",name:"余姚市",region_level:3,children:[]},{code:"330282",name:"慈溪市",region_level:3,children:[]}]},{code:"3303",name:"温州市",region_level:2,children:[{code:"330302",name:"鹿城区",region_level:3,children:[]},{code:"330303",name:"龙湾区",region_level:3,children:[]},{code:"330304",name:"瓯海区",region_level:3,children:[]},{code:"330305",name:"洞头区",region_level:3,children:[]},{code:"330324",name:"永嘉县",region_level:3,children:[]},{code:"330326",name:"平阳县",region_level:3,children:[]},{code:"330327",name:"苍南县",region_level:3,children:[]},{code:"330328",name:"文成县",region_level:3,children:[]},{code:"330329",name:"泰顺县",region_level:3,children:[]},{code:"330381",name:"瑞安市",region_level:3,children:[]},{code:"330382",name:"乐清市",region_level:3,children:[]},{code:"330383",name:"龙港市",region_level:3,children:[]}]},{code:"3304",name:"嘉兴市",region_level:2,children:[{code:"330402",name:"南湖区",region_level:3,children:[]},{code:"330411",name:"秀洲区",region_level:3,children:[]},{code:"330421",name:"嘉善县",region_level:3,children:[]},{code:"330424",name:"海盐县",region_level:3,children:[]},{code:"330481",name:"海宁市",region_level:3,children:[]},{code:"330482",name:"平湖市",region_level:3,children:[]},{code:"330483",name:"桐乡市",region_level:3,children:[]}]},{code:"3305",name:"湖州市",region_level:2,children:[{code:"330502",name:"吴兴区",region_level:3,children:[]},{code:"330503",name:"南浔区",region_level:3,children:[]},{code:"330521",name:"德清县",region_level:3,children:[]},{code:"330522",name:"长兴县",region_level:3,children:[]},{code:"330523",name:"安吉县",region_level:3,children:[]}]},{code:"3306",name:"绍兴市",region_level:2,children:[{code:"330602",name:"越城区",region_level:3,children:[]},{code:"330603",name:"柯桥区",region_level:3,children:[]},{code:"330604",name:"上虞区",region_level:3,children:[]},{code:"330624",name:"新昌县",region_level:3,children:[]},{code:"330681",name:"诸暨市",region_level:3,children:[]},{code:"330683",name:"嵊州市",region_level:3,children:[]}]},{code:"3307",name:"金华市",region_level:2,children:[{code:"330702",name:"婺城区",region_level:3,children:[]},{code:"330703",name:"金东区",region_level:3,children:[]},{code:"330723",name:"武义县",region_level:3,children:[]},{code:"330726",name:"浦江县",region_level:3,children:[]},{code:"330727",name:"磐安县",region_level:3,children:[]},{code:"330781",name:"兰溪市",region_level:3,children:[]},{code:"330782",name:"义乌市",region_level:3,children:[]},{code:"330783",name:"东阳市",region_level:3,children:[]},{code:"330784",name:"永康市",region_level:3,children:[]}]},{code:"3308",name:"衢州市",region_level:2,children:[{code:"330802",name:"柯城区",region_level:3,children:[]},{code:"330803",name:"衢江区",region_level:3,children:[]},{code:"330822",name:"常山县",region_level:3,children:[]},{code:"330824",name:"开化县",region_level:3,children:[]},{code:"330825",name:"龙游县",region_level:3,children:[]},{code:"330881",name:"江山市",region_level:3,children:[]}]},{code:"3309",name:"舟山市",region_level:2,children:[{code:"330902",name:"定海区",region_level:3,children:[]},{code:"330903",name:"普陀区",region_level:3,children:[]},{code:"330921",name:"岱山县",region_level:3,children:[]},{code:"330922",name:"嵊泗县",region_level:3,children:[]}]},{code:"3310",name:"台州市",region_level:2,children:[{code:"331002",name:"椒江区",region_level:3,children:[]},{code:"331003",name:"黄岩区",region_level:3,children:[]},{code:"331004",name:"路桥区",region_level:3,children:[]},{code:"331022",name:"三门县",region_level:3,children:[]},{code:"331023",name:"天台县",region_level:3,children:[]},{code:"331024",name:"仙居县",region_level:3,children:[]},{code:"331081",name:"温岭市",region_level:3,children:[]},{code:"331082",name:"临海市",region_level:3,children:[]},{code:"331083",name:"玉环市",region_level:3,children:[]}]},{code:"3311",name:"丽水市",region_level:2,children:[{code:"331102",name:"莲都区",region_level:3,children:[]},{code:"331121",name:"青田县",region_level:3,children:[]},{code:"331122",name:"缙云县",region_level:3,children:[]},{code:"331123",name:"遂昌县",region_level:3,children:[]},{code:"331124",name:"松阳县",region_level:3,children:[]},{code:"331125",name:"云和县",region_level:3,children:[]},{code:"331126",name:"庆元县",region_level:3,children:[]},{code:"331127",name:"景宁畲族自治县",region_level:3,children:[]},{code:"331181",name:"龙泉市",region_level:3,children:[]}]}]},{code:"34",name:"安徽省",region_level:1,children:[{code:"3401",name:"合肥市",region_level:2,children:[{code:"340102",name:"瑶海区",region_level:3,children:[]},{code:"340103",name:"庐阳区",region_level:3,children:[]},{code:"340104",name:"蜀山区",region_level:3,children:[]},{code:"340111",name:"包河区",region_level:3,children:[]},{code:"340121",name:"长丰县",region_level:3,children:[]},{code:"340122",name:"肥东县",region_level:3,children:[]},{code:"340123",name:"肥西县",region_level:3,children:[]},{code:"340124",name:"庐江县",region_level:3,children:[]},{code:"340181",name:"巢湖市",region_level:3,children:[]}]},{code:"3402",name:"芜湖市",region_level:2,children:[{code:"340202",name:"镜湖区",region_level:3,children:[]},{code:"340203",name:"弋江区",region_level:3,children:[]},{code:"340207",name:"鸠江区",region_level:3,children:[]},{code:"340208",name:"三山区",region_level:3,children:[]},{code:"340221",name:"芜湖县",region_level:3,children:[]},{code:"340222",name:"繁昌县",region_level:3,children:[]},{code:"340223",name:"南陵县",region_level:3,children:[]},{code:"340281",name:"无为市",region_level:3,children:[]}]},{code:"3403",name:"蚌埠市",region_level:2,children:[{code:"340302",name:"龙子湖区",region_level:3,children:[]},{code:"340303",name:"蚌山区",region_level:3,children:[]},{code:"340304",name:"禹会区",region_level:3,children:[]},{code:"340311",name:"淮上区",region_level:3,children:[]},{code:"340321",name:"怀远县",region_level:3,children:[]},{code:"340322",name:"五河县",region_level:3,children:[]},{code:"340323",name:"固镇县",region_level:3,children:[]}]},{code:"3404",name:"淮南市",region_level:2,children:[{code:"340402",name:"大通区",region_level:3,children:[]},{code:"340403",name:"田家庵区",region_level:3,children:[]},{code:"340404",name:"谢家集区",region_level:3,children:[]},{code:"340405",name:"八公山区",region_level:3,children:[]},{code:"340406",name:"潘集区",region_level:3,children:[]},{code:"340421",name:"凤台县",region_level:3,children:[]},{code:"340422",name:"寿县",region_level:3,children:[]}]},{code:"3405",name:"马鞍山市",region_level:2,children:[{code:"340503",name:"花山区",region_level:3,children:[]},{code:"340504",name:"雨山区",region_level:3,children:[]},{code:"340506",name:"博望区",region_level:3,children:[]},{code:"340521",name:"当涂县",region_level:3,children:[]},{code:"340522",name:"含山县",region_level:3,children:[]},{code:"340523",name:"和县",region_level:3,children:[]}]},{code:"3406",name:"淮北市",region_level:2,children:[{code:"340602",name:"杜集区",region_level:3,children:[]},{code:"340603",name:"相山区",region_level:3,children:[]},{code:"340604",name:"烈山区",region_level:3,children:[]},{code:"340621",name:"濉溪县",region_level:3,children:[]}]},{code:"3407",name:"铜陵市",region_level:2,children:[{code:"340705",name:"铜官区",region_level:3,children:[]},{code:"340706",name:"义安区",region_level:3,children:[]},{code:"340711",name:"郊区",region_level:3,children:[]},{code:"340722",name:"枞阳县",region_level:3,children:[]}]},{code:"3408",name:"安庆市",region_level:2,children:[{code:"340802",name:"迎江区",region_level:3,children:[]},{code:"340803",name:"大观区",region_level:3,children:[]},{code:"340811",name:"宜秀区",region_level:3,children:[]},{code:"340822",name:"怀宁县",region_level:3,children:[]},{code:"340825",name:"太湖县",region_level:3,children:[]},{code:"340826",name:"宿松县",region_level:3,children:[]},{code:"340827",name:"望江县",region_level:3,children:[]},{code:"340828",name:"岳西县",region_level:3,children:[]},{code:"340881",name:"桐城市",region_level:3,children:[]},{code:"340882",name:"潜山市",region_level:3,children:[]}]},{code:"3410",name:"黄山市",region_level:2,children:[{code:"341002",name:"屯溪区",region_level:3,children:[]},{code:"341003",name:"黄山区",region_level:3,children:[]},{code:"341004",name:"徽州区",region_level:3,children:[]},{code:"341021",name:"歙县",region_level:3,children:[]},{code:"341022",name:"休宁县",region_level:3,children:[]},{code:"341023",name:"黟县",region_level:3,children:[]},{code:"341024",name:"祁门县",region_level:3,children:[]}]},{code:"3411",name:"滁州市",region_level:2,children:[{code:"341102",name:"琅琊区",region_level:3,children:[]},{code:"341103",name:"南谯区",region_level:3,children:[]},{code:"341122",name:"来安县",region_level:3,children:[]},{code:"341124",name:"全椒县",region_level:3,children:[]},{code:"341125",name:"定远县",region_level:3,children:[]},{code:"341126",name:"凤阳县",region_level:3,children:[]},{code:"341181",name:"天长市",region_level:3,children:[]},{code:"341182",name:"明光市",region_level:3,children:[]}]},{code:"3412",name:"阜阳市",region_level:2,children:[{code:"341202",name:"颍州区",region_level:3,children:[]},{code:"341203",name:"颍东区",region_level:3,children:[]},{code:"341204",name:"颍泉区",region_level:3,children:[]},{code:"341221",name:"临泉县",region_level:3,children:[]},{code:"341222",name:"太和县",region_level:3,children:[]},{code:"341225",name:"阜南县",region_level:3,children:[]},{code:"341226",name:"颍上县",region_level:3,children:[]},{code:"341282",name:"界首市",region_level:3,children:[]}]},{code:"3413",name:"宿州市",region_level:2,children:[{code:"341302",name:"埇桥区",region_level:3,children:[]},{code:"341321",name:"砀山县",region_level:3,children:[]},{code:"341322",name:"萧县",region_level:3,children:[]},{code:"341323",name:"灵璧县",region_level:3,children:[]},{code:"341324",name:"泗县",region_level:3,children:[]}]},{code:"3415",name:"六安市",region_level:2,children:[{code:"341502",name:"金安区",region_level:3,children:[]},{code:"341503",name:"裕安区",region_level:3,children:[]},{code:"341504",name:"叶集区",region_level:3,children:[]},{code:"341522",name:"霍邱县",region_level:3,children:[]},{code:"341523",name:"舒城县",region_level:3,children:[]},{code:"341524",name:"金寨县",region_level:3,children:[]},{code:"341525",name:"霍山县",region_level:3,children:[]}]},{code:"3416",name:"亳州市",region_level:2,children:[{code:"341602",name:"谯城区",region_level:3,children:[]},{code:"341621",name:"涡阳县",region_level:3,children:[]},{code:"341622",name:"蒙城县",region_level:3,children:[]},{code:"341623",name:"利辛县",region_level:3,children:[]}]},{code:"3417",name:"池州市",region_level:2,children:[{code:"341702",name:"贵池区",region_level:3,children:[]},{code:"341721",name:"东至县",region_level:3,children:[]},{code:"341722",name:"石台县",region_level:3,children:[]},{code:"341723",name:"青阳县",region_level:3,children:[]}]},{code:"3418",name:"宣城市",region_level:2,children:[{code:"341802",name:"宣州区",region_level:3,children:[]},{code:"341821",name:"郎溪县",region_level:3,children:[]},{code:"341823",name:"泾县",region_level:3,children:[]},{code:"341824",name:"绩溪县",region_level:3,children:[]},{code:"341825",name:"旌德县",region_level:3,children:[]},{code:"341881",name:"宁国市",region_level:3,children:[]},{code:"341882",name:"广德市",region_level:3,children:[]}]}]},{code:"35",name:"福建省",region_level:1,children:[{code:"3501",name:"福州市",region_level:2,children:[{code:"350102",name:"鼓楼区",region_level:3,children:[]},{code:"350103",name:"台江区",region_level:3,children:[]},{code:"350104",name:"仓山区",region_level:3,children:[]},{code:"350105",name:"马尾区",region_level:3,children:[]},{code:"350111",name:"晋安区",region_level:3,children:[]},{code:"350112",name:"长乐区",region_level:3,children:[]},{code:"350121",name:"闽侯县",region_level:3,children:[]},{code:"350122",name:"连江县",region_level:3,children:[]},{code:"350123",name:"罗源县",region_level:3,children:[]},{code:"350124",name:"闽清县",region_level:3,children:[]},{code:"350125",name:"永泰县",region_level:3,children:[]},{code:"350128",name:"平潭县",region_level:3,children:[]},{code:"350181",name:"福清市",region_level:3,children:[]}]},{code:"3502",name:"厦门市",region_level:2,children:[{code:"350203",name:"思明区",region_level:3,children:[]},{code:"350205",name:"海沧区",region_level:3,children:[]},{code:"350206",name:"湖里区",region_level:3,children:[]},{code:"350211",name:"集美区",region_level:3,children:[]},{code:"350212",name:"同安区",region_level:3,children:[]},{code:"350213",name:"翔安区",region_level:3,children:[]}]},{code:"3503",name:"莆田市",region_level:2,children:[{code:"350302",name:"城厢区",region_level:3,children:[]},{code:"350303",name:"涵江区",region_level:3,children:[]},{code:"350304",name:"荔城区",region_level:3,children:[]},{code:"350305",name:"秀屿区",region_level:3,children:[]},{code:"350322",name:"仙游县",region_level:3,children:[]}]},{code:"3504",name:"三明市",region_level:2,children:[{code:"350402",name:"梅列区",region_level:3,children:[]},{code:"350403",name:"三元区",region_level:3,children:[]},{code:"350421",name:"明溪县",region_level:3,children:[]},{code:"350423",name:"清流县",region_level:3,children:[]},{code:"350424",name:"宁化县",region_level:3,children:[]},{code:"350425",name:"大田县",region_level:3,children:[]},{code:"350426",name:"尤溪县",region_level:3,children:[]},{code:"350427",name:"沙县",region_level:3,children:[]},{code:"350428",name:"将乐县",region_level:3,children:[]},{code:"350429",name:"泰宁县",region_level:3,children:[]},{code:"350430",name:"建宁县",region_level:3,children:[]},{code:"350481",name:"永安市",region_level:3,children:[]}]},{code:"3505",name:"泉州市",region_level:2,children:[{code:"350502",name:"鲤城区",region_level:3,children:[]},{code:"350503",name:"丰泽区",region_level:3,children:[]},{code:"350504",name:"洛江区",region_level:3,children:[]},{code:"350505",name:"泉港区",region_level:3,children:[]},{code:"350521",name:"惠安县",region_level:3,children:[]},{code:"350524",name:"安溪县",region_level:3,children:[]},{code:"350525",name:"永春县",region_level:3,children:[]},{code:"350526",name:"德化县",region_level:3,children:[]},{code:"350527",name:"金门县",region_level:3,children:[]},{code:"350581",name:"石狮市",region_level:3,children:[]},{code:"350582",name:"晋江市",region_level:3,children:[]},{code:"350583",name:"南安市",region_level:3,children:[]}]},{code:"3506",name:"漳州市",region_level:2,children:[{code:"350602",name:"芗城区",region_level:3,children:[]},{code:"350603",name:"龙文区",region_level:3,children:[]},{code:"350622",name:"云霄县",region_level:3,children:[]},{code:"350623",name:"漳浦县",region_level:3,children:[]},{code:"350624",name:"诏安县",region_level:3,children:[]},{code:"350625",name:"长泰县",region_level:3,children:[]},{code:"350626",name:"东山县",region_level:3,children:[]},{code:"350627",name:"南靖县",region_level:3,children:[]},{code:"350628",name:"平和县",region_level:3,children:[]},{code:"350629",name:"华安县",region_level:3,children:[]},{code:"350681",name:"龙海市",region_level:3,children:[]}]},{code:"3507",name:"南平市",region_level:2,children:[{code:"350702",name:"延平区",region_level:3,children:[]},{code:"350703",name:"建阳区",region_level:3,children:[]},{code:"350721",name:"顺昌县",region_level:3,children:[]},{code:"350722",name:"浦城县",region_level:3,children:[]},{code:"350723",name:"光泽县",region_level:3,children:[]},{code:"350724",name:"松溪县",region_level:3,children:[]},{code:"350725",name:"政和县",region_level:3,children:[]},{code:"350781",name:"邵武市",region_level:3,children:[]},{code:"350782",name:"武夷山市",region_level:3,children:[]},{code:"350783",name:"建瓯市",region_level:3,children:[]}]},{code:"3508",name:"龙岩市",region_level:2,children:[{code:"350802",name:"新罗区",region_level:3,children:[]},{code:"350803",name:"永定区",region_level:3,children:[]},{code:"350821",name:"长汀县",region_level:3,children:[]},{code:"350823",name:"上杭县",region_level:3,children:[]},{code:"350824",name:"武平县",region_level:3,children:[]},{code:"350825",name:"连城县",region_level:3,children:[]},{code:"350881",name:"漳平市",region_level:3,children:[]}]},{code:"3509",name:"宁德市",region_level:2,children:[{code:"350902",name:"蕉城区",region_level:3,children:[]},{code:"350921",name:"霞浦县",region_level:3,children:[]},{code:"350922",name:"古田县",region_level:3,children:[]},{code:"350923",name:"屏南县",region_level:3,children:[]},{code:"350924",name:"寿宁县",region_level:3,children:[]},{code:"350925",name:"周宁县",region_level:3,children:[]},{code:"350926",name:"柘荣县",region_level:3,children:[]},{code:"350981",name:"福安市",region_level:3,children:[]},{code:"350982",name:"福鼎市",region_level:3,children:[]}]}]},{code:"36",name:"江西省",region_level:1,children:[{code:"3601",name:"南昌市",region_level:2,children:[{code:"360102",name:"东湖区",region_level:3,children:[]},{code:"360103",name:"西湖区",region_level:3,children:[]},{code:"360104",name:"青云谱区",region_level:3,children:[]},{code:"360111",name:"青山湖区",region_level:3,children:[]},{code:"360112",name:"新建区",region_level:3,children:[]},{code:"360113",name:"红谷滩区",region_level:3,children:[]},{code:"360121",name:"南昌县",region_level:3,children:[]},{code:"360123",name:"安义县",region_level:3,children:[]},{code:"360124",name:"进贤县",region_level:3,children:[]}]},{code:"3602",name:"景德镇市",region_level:2,children:[{code:"360202",name:"昌江区",region_level:3,children:[]},{code:"360203",name:"珠山区",region_level:3,children:[]},{code:"360222",name:"浮梁县",region_level:3,children:[]},{code:"360281",name:"乐平市",region_level:3,children:[]}]},{code:"3603",name:"萍乡市",region_level:2,children:[{code:"360302",name:"安源区",region_level:3,children:[]},{code:"360313",name:"湘东区",region_level:3,children:[]},{code:"360321",name:"莲花县",region_level:3,children:[]},{code:"360322",name:"上栗县",region_level:3,children:[]},{code:"360323",name:"芦溪县",region_level:3,children:[]}]},{code:"3604",name:"九江市",region_level:2,children:[{code:"360402",name:"濂溪区",region_level:3,children:[]},{code:"360403",name:"浔阳区",region_level:3,children:[]},{code:"360404",name:"柴桑区",region_level:3,children:[]},{code:"360423",name:"武宁县",region_level:3,children:[]},{code:"360424",name:"修水县",region_level:3,children:[]},{code:"360425",name:"永修县",region_level:3,children:[]},{code:"360426",name:"德安县",region_level:3,children:[]},{code:"360428",name:"都昌县",region_level:3,children:[]},{code:"360429",name:"湖口县",region_level:3,children:[]},{code:"360430",name:"彭泽县",region_level:3,children:[]},{code:"360481",name:"瑞昌市",region_level:3,children:[]},{code:"360482",name:"共青城市",region_level:3,children:[]},{code:"360483",name:"庐山市",region_level:3,children:[]}]},{code:"3605",name:"新余市",region_level:2,children:[{code:"360502",name:"渝水区",region_level:3,children:[]},{code:"360521",name:"分宜县",region_level:3,children:[]}]},{code:"3606",name:"鹰潭市",region_level:2,children:[{code:"360602",name:"月湖区",region_level:3,children:[]},{code:"360603",name:"余江区",region_level:3,children:[]},{code:"360681",name:"贵溪市",region_level:3,children:[]}]},{code:"3607",name:"赣州市",region_level:2,children:[{code:"360702",name:"章贡区",region_level:3,children:[]},{code:"360703",name:"南康区",region_level:3,children:[]},{code:"360704",name:"赣县区",region_level:3,children:[]},{code:"360722",name:"信丰县",region_level:3,children:[]},{code:"360723",name:"大余县",region_level:3,children:[]},{code:"360724",name:"上犹县",region_level:3,children:[]},{code:"360725",name:"崇义县",region_level:3,children:[]},{code:"360726",name:"安远县",region_level:3,children:[]},{code:"360727",name:"龙南县",region_level:3,children:[]},{code:"360728",name:"定南县",region_level:3,children:[]},{code:"360729",name:"全南县",region_level:3,children:[]},{code:"360730",name:"宁都县",region_level:3,children:[]},{code:"360731",name:"于都县",region_level:3,children:[]},{code:"360732",name:"兴国县",region_level:3,children:[]},{code:"360733",name:"会昌县",region_level:3,children:[]},{code:"360734",name:"寻乌县",region_level:3,children:[]},{code:"360735",name:"石城县",region_level:3,children:[]},{code:"360781",name:"瑞金市",region_level:3,children:[]}]},{code:"3608",name:"吉安市",region_level:2,children:[{code:"360802",name:"吉州区",region_level:3,children:[]},{code:"360803",name:"青原区",region_level:3,children:[]},{code:"360821",name:"吉安县",region_level:3,children:[]},{code:"360822",name:"吉水县",region_level:3,children:[]},{code:"360823",name:"峡江县",region_level:3,children:[]},{code:"360824",name:"新干县",region_level:3,children:[]},{code:"360825",name:"永丰县",region_level:3,children:[]},{code:"360826",name:"泰和县",region_level:3,children:[]},{code:"360827",name:"遂川县",region_level:3,children:[]},{code:"360828",name:"万安县",region_level:3,children:[]},{code:"360829",name:"安福县",region_level:3,children:[]},{code:"360830",name:"永新县",region_level:3,children:[]},{code:"360881",name:"井冈山市",region_level:3,children:[]}]},{code:"3609",name:"宜春市",region_level:2,children:[{code:"360902",name:"袁州区",region_level:3,children:[]},{code:"360921",name:"奉新县",region_level:3,children:[]},{code:"360922",name:"万载县",region_level:3,children:[]},{code:"360923",name:"上高县",region_level:3,children:[]},{code:"360924",name:"宜丰县",region_level:3,children:[]},{code:"360925",name:"靖安县",region_level:3,children:[]},{code:"360926",name:"铜鼓县",region_level:3,children:[]},{code:"360981",name:"丰城市",region_level:3,children:[]},{code:"360982",name:"樟树市",region_level:3,children:[]},{code:"360983",name:"高安市",region_level:3,children:[]}]},{code:"3610",name:"抚州市",region_level:2,children:[{code:"361002",name:"临川区",region_level:3,children:[]},{code:"361003",name:"东乡区",region_level:3,children:[]},{code:"361021",name:"南城县",region_level:3,children:[]},{code:"361022",name:"黎川县",region_level:3,children:[]},{code:"361023",name:"南丰县",region_level:3,children:[]},{code:"361024",name:"崇仁县",region_level:3,children:[]},{code:"361025",name:"乐安县",region_level:3,children:[]},{code:"361026",name:"宜黄县",region_level:3,children:[]},{code:"361027",name:"金溪县",region_level:3,children:[]},{code:"361028",name:"资溪县",region_level:3,children:[]},{code:"361030",name:"广昌县",region_level:3,children:[]}]},{code:"3611",name:"上饶市",region_level:2,children:[{code:"361102",name:"信州区",region_level:3,children:[]},{code:"361103",name:"广丰区",region_level:3,children:[]},{code:"361104",name:"广信区",region_level:3,children:[]},{code:"361123",name:"玉山县",region_level:3,children:[]},{code:"361124",name:"铅山县",region_level:3,children:[]},{code:"361125",name:"横峰县",region_level:3,children:[]},{code:"361126",name:"弋阳县",region_level:3,children:[]},{code:"361127",name:"余干县",region_level:3,children:[]},{code:"361128",name:"鄱阳县",region_level:3,children:[]},{code:"361129",name:"万年县",region_level:3,children:[]},{code:"361130",name:"婺源县",region_level:3,children:[]},{code:"361181",name:"德兴市",region_level:3,children:[]}]}]},{code:"37",name:"山东省",region_level:1,children:[{code:"3701",name:"济南市",region_level:2,children:[{code:"370102",name:"历下区",region_level:3,children:[]},{code:"370103",name:"市中区",region_level:3,children:[]},{code:"370104",name:"槐荫区",region_level:3,children:[]},{code:"370105",name:"天桥区",region_level:3,children:[]},{code:"370112",name:"历城区",region_level:3,children:[]},{code:"370113",name:"长清区",region_level:3,children:[]},{code:"370114",name:"章丘区",region_level:3,children:[]},{code:"370115",name:"济阳区",region_level:3,children:[]},{code:"370116",name:"莱芜区",region_level:3,children:[]},{code:"370117",name:"钢城区",region_level:3,children:[]},{code:"370124",name:"平阴县",region_level:3,children:[]},{code:"370126",name:"商河县",region_level:3,children:[]}]},{code:"3702",name:"青岛市",region_level:2,children:[{code:"370202",name:"市南区",region_level:3,children:[]},{code:"370203",name:"市北区",region_level:3,children:[]},{code:"370211",name:"黄岛区",region_level:3,children:[]},{code:"370212",name:"崂山区",region_level:3,children:[]},{code:"370213",name:"李沧区",region_level:3,children:[]},{code:"370214",name:"城阳区",region_level:3,children:[]},{code:"370215",name:"即墨区",region_level:3,children:[]},{code:"370281",name:"胶州市",region_level:3,children:[]},{code:"370283",name:"平度市",region_level:3,children:[]},{code:"370285",name:"莱西市",region_level:3,children:[]}]},{code:"3703",name:"淄博市",region_level:2,children:[{code:"370302",name:"淄川区",region_level:3,children:[]},{code:"370303",name:"张店区",region_level:3,children:[]},{code:"370304",name:"博山区",region_level:3,children:[]},{code:"370305",name:"临淄区",region_level:3,children:[]},{code:"370306",name:"周村区",region_level:3,children:[]},{code:"370321",name:"桓台县",region_level:3,children:[]},{code:"370322",name:"高青县",region_level:3,children:[]},{code:"370323",name:"沂源县",region_level:3,children:[]}]},{code:"3704",name:"枣庄市",region_level:2,children:[{code:"370402",name:"市中区",region_level:3,children:[]},{code:"370403",name:"薛城区",region_level:3,children:[]},{code:"370404",name:"峄城区",region_level:3,children:[]},{code:"370405",name:"台儿庄区",region_level:3,children:[]},{code:"370406",name:"山亭区",region_level:3,children:[]},{code:"370481",name:"滕州市",region_level:3,children:[]}]},{code:"3705",name:"东营市",region_level:2,children:[{code:"370502",name:"东营区",region_level:3,children:[]},{code:"370503",name:"河口区",region_level:3,children:[]},{code:"370505",name:"垦利区",region_level:3,children:[]},{code:"370522",name:"利津县",region_level:3,children:[]},{code:"370523",name:"广饶县",region_level:3,children:[]}]},{code:"3706",name:"烟台市",region_level:2,children:[{code:"370602",name:"芝罘区",region_level:3,children:[]},{code:"370611",name:"福山区",region_level:3,children:[]},{code:"370612",name:"牟平区",region_level:3,children:[]},{code:"370613",name:"莱山区",region_level:3,children:[]},{code:"370634",name:"长岛县",region_level:3,children:[]},{code:"370681",name:"龙口市",region_level:3,children:[]},{code:"370682",name:"莱阳市",region_level:3,children:[]},{code:"370683",name:"莱州市",region_level:3,children:[]},{code:"370684",name:"蓬莱市",region_level:3,children:[]},{code:"370685",name:"招远市",region_level:3,children:[]},{code:"370686",name:"栖霞市",region_level:3,children:[]},{code:"370687",name:"海阳市",region_level:3,children:[]}]},{code:"3707",name:"潍坊市",region_level:2,children:[{code:"370702",name:"潍城区",region_level:3,children:[]},{code:"370703",name:"寒亭区",region_level:3,children:[]},{code:"370704",name:"坊子区",region_level:3,children:[]},{code:"370705",name:"奎文区",region_level:3,children:[]},{code:"370724",name:"临朐县",region_level:3,children:[]},{code:"370725",name:"昌乐县",region_level:3,children:[]},{code:"370781",name:"青州市",region_level:3,children:[]},{code:"370782",name:"诸城市",region_level:3,children:[]},{code:"370783",name:"寿光市",region_level:3,children:[]},{code:"370784",name:"安丘市",region_level:3,children:[]},{code:"370785",name:"高密市",region_level:3,children:[]},{code:"370786",name:"昌邑市",region_level:3,children:[]}]},{code:"3708",name:"济宁市",region_level:2,children:[{code:"370811",name:"任城区",region_level:3,children:[]},{code:"370812",name:"兖州区",region_level:3,children:[]},{code:"370826",name:"微山县",region_level:3,children:[]},{code:"370827",name:"鱼台县",region_level:3,children:[]},{code:"370828",name:"金乡县",region_level:3,children:[]},{code:"370829",name:"嘉祥县",region_level:3,children:[]},{code:"370830",name:"汶上县",region_level:3,children:[]},{code:"370831",name:"泗水县",region_level:3,children:[]},{code:"370832",name:"梁山县",region_level:3,children:[]},{code:"370881",name:"曲阜市",region_level:3,children:[]},{code:"370883",name:"邹城市",region_level:3,children:[]}]},{code:"3709",name:"泰安市",region_level:2,children:[{code:"370902",name:"泰山区",region_level:3,children:[]},{code:"370911",name:"岱岳区",region_level:3,children:[]},{code:"370921",name:"宁阳县",region_level:3,children:[]},{code:"370923",name:"东平县",region_level:3,children:[]},{code:"370982",name:"新泰市",region_level:3,children:[]},{code:"370983",name:"肥城市",region_level:3,children:[]}]},{code:"3710",name:"威海市",region_level:2,children:[{code:"371002",name:"环翠区",region_level:3,children:[]},{code:"371003",name:"文登区",region_level:3,children:[]},{code:"371082",name:"荣成市",region_level:3,children:[]},{code:"371083",name:"乳山市",region_level:3,children:[]}]},{code:"3711",name:"日照市",region_level:2,children:[{code:"371102",name:"东港区",region_level:3,children:[]},{code:"371103",name:"岚山区",region_level:3,children:[]},{code:"371121",name:"五莲县",region_level:3,children:[]},{code:"371122",name:"莒县",region_level:3,children:[]}]},{code:"3713",name:"临沂市",region_level:2,children:[{code:"371302",name:"兰山区",region_level:3,children:[]},{code:"371311",name:"罗庄区",region_level:3,children:[]},{code:"371312",name:"河东区",region_level:3,children:[]},{code:"371321",name:"沂南县",region_level:3,children:[]},{code:"371322",name:"郯城县",region_level:3,children:[]},{code:"371323",name:"沂水县",region_level:3,children:[]},{code:"371324",name:"兰陵县",region_level:3,children:[]},{code:"371325",name:"费县",region_level:3,children:[]},{code:"371326",name:"平邑县",region_level:3,children:[]},{code:"371327",name:"莒南县",region_level:3,children:[]},{code:"371328",name:"蒙阴县",region_level:3,children:[]},{code:"371329",name:"临沭县",region_level:3,children:[]}]},{code:"3714",name:"德州市",region_level:2,children:[{code:"371402",name:"德城区",region_level:3,children:[]},{code:"371403",name:"陵城区",region_level:3,children:[]},{code:"371422",name:"宁津县",region_level:3,children:[]},{code:"371423",name:"庆云县",region_level:3,children:[]},{code:"371424",name:"临邑县",region_level:3,children:[]},{code:"371425",name:"齐河县",region_level:3,children:[]},{code:"371426",name:"平原县",region_level:3,children:[]},{code:"371427",name:"夏津县",region_level:3,children:[]},{code:"371428",name:"武城县",region_level:3,children:[]},{code:"371481",name:"乐陵市",region_level:3,children:[]},{code:"371482",name:"禹城市",region_level:3,children:[]}]},{code:"3715",name:"聊城市",region_level:2,children:[{code:"371502",name:"东昌府区",region_level:3,children:[]},{code:"371503",name:"茌平区",region_level:3,children:[]},{code:"371521",name:"阳谷县",region_level:3,children:[]},{code:"371522",name:"莘县",region_level:3,children:[]},{code:"371524",name:"东阿县",region_level:3,children:[]},{code:"371525",name:"冠县",region_level:3,children:[]},{code:"371526",name:"高唐县",region_level:3,children:[]},{code:"371581",name:"临清市",region_level:3,children:[]}]},{code:"3716",name:"滨州市",region_level:2,children:[{code:"371602",name:"滨城区",region_level:3,children:[]},{code:"371603",name:"沾化区",region_level:3,children:[]},{code:"371621",name:"惠民县",region_level:3,children:[]},{code:"371622",name:"阳信县",region_level:3,children:[]},{code:"371623",name:"无棣县",region_level:3,children:[]},{code:"371625",name:"博兴县",region_level:3,children:[]},{code:"371681",name:"邹平市",region_level:3,children:[]}]},{code:"3717",name:"菏泽市",region_level:2,children:[{code:"371702",name:"牡丹区",region_level:3,children:[]},{code:"371703",name:"定陶区",region_level:3,children:[]},{code:"371721",name:"曹县",region_level:3,children:[]},{code:"371722",name:"单县",region_level:3,children:[]},{code:"371723",name:"成武县",region_level:3,children:[]},{code:"371724",name:"巨野县",region_level:3,children:[]},{code:"371725",name:"郓城县",region_level:3,children:[]},{code:"371726",name:"鄄城县",region_level:3,children:[]},{code:"371728",name:"东明县",region_level:3,children:[]}]}]},{code:"41",name:"河南省",region_level:1,children:[{code:"4101",name:"郑州市",region_level:2,children:[{code:"410102",name:"中原区",region_level:3,children:[]},{code:"410103",name:"二七区",region_level:3,children:[]},{code:"410104",name:"管城回族区",region_level:3,children:[]},{code:"410105",name:"金水区",region_level:3,children:[]},{code:"410106",name:"上街区",region_level:3,children:[]},{code:"410108",name:"惠济区",region_level:3,children:[]},{code:"410122",name:"中牟县",region_level:3,children:[]},{code:"410181",name:"巩义市",region_level:3,children:[]},{code:"410182",name:"荥阳市",region_level:3,children:[]},{code:"410183",name:"新密市",region_level:3,children:[]},{code:"410184",name:"新郑市",region_level:3,children:[]},{code:"410185",name:"登封市",region_level:3,children:[]}]},{code:"4102",name:"开封市",region_level:2,children:[{code:"410202",name:"龙亭区",region_level:3,children:[]},{code:"410203",name:"顺河回族区",region_level:3,children:[]},{code:"410204",name:"鼓楼区",region_level:3,children:[]},{code:"410205",name:"禹王台区",region_level:3,children:[]},{code:"410212",name:"祥符区",region_level:3,children:[]},{code:"410221",name:"杞县",region_level:3,children:[]},{code:"410222",name:"通许县",region_level:3,children:[]},{code:"410223",name:"尉氏县",region_level:3,children:[]},{code:"410225",name:"兰考县",region_level:3,children:[]}]},{code:"4103",name:"洛阳市",region_level:2,children:[{code:"410302",name:"老城区",region_level:3,children:[]},{code:"410303",name:"西工区",region_level:3,children:[]},{code:"410304",name:"瀍河回族区",region_level:3,children:[]},{code:"410305",name:"涧西区",region_level:3,children:[]},{code:"410306",name:"吉利区",region_level:3,children:[]},{code:"410311",name:"洛龙区",region_level:3,children:[]},{code:"410322",name:"孟津县",region_level:3,children:[]},{code:"410323",name:"新安县",region_level:3,children:[]},{code:"410324",name:"栾川县",region_level:3,children:[]},{code:"410325",name:"嵩县",region_level:3,children:[]},{code:"410326",name:"汝阳县",region_level:3,children:[]},{code:"410327",name:"宜阳县",region_level:3,children:[]},{code:"410328",name:"洛宁县",region_level:3,children:[]},{code:"410329",name:"伊川县",region_level:3,children:[]},{code:"410381",name:"偃师市",region_level:3,children:[]}]},{code:"4104",name:"平顶山市",region_level:2,children:[{code:"410402",name:"新华区",region_level:3,children:[]},{code:"410403",name:"卫东区",region_level:3,children:[]},{code:"410404",name:"石龙区",region_level:3,children:[]},{code:"410411",name:"湛河区",region_level:3,children:[]},{code:"410421",name:"宝丰县",region_level:3,children:[]},{code:"410422",name:"叶县",region_level:3,children:[]},{code:"410423",name:"鲁山县",region_level:3,children:[]},{code:"410425",name:"郏县",region_level:3,children:[]},{code:"410481",name:"舞钢市",region_level:3,children:[]},{code:"410482",name:"汝州市",region_level:3,children:[]}]},{code:"4105",name:"安阳市",region_level:2,children:[{code:"410502",name:"文峰区",region_level:3,children:[]},{code:"410503",name:"北关区",region_level:3,children:[]},{code:"410505",name:"殷都区",region_level:3,children:[]},{code:"410506",name:"龙安区",region_level:3,children:[]},{code:"410522",name:"安阳县",region_level:3,children:[]},{code:"410523",name:"汤阴县",region_level:3,children:[]},{code:"410526",name:"滑县",region_level:3,children:[]},{code:"410527",name:"内黄县",region_level:3,children:[]},{code:"410581",name:"林州市",region_level:3,children:[]}]},{code:"4106",name:"鹤壁市",region_level:2,children:[{code:"410602",name:"鹤山区",region_level:3,children:[]},{code:"410603",name:"山城区",region_level:3,children:[]},{code:"410611",name:"淇滨区",region_level:3,children:[]},{code:"410621",name:"浚县",region_level:3,children:[]},{code:"410622",name:"淇县",region_level:3,children:[]}]},{code:"4107",name:"新乡市",region_level:2,children:[{code:"410702",name:"红旗区",region_level:3,children:[]},{code:"410703",name:"卫滨区",region_level:3,children:[]},{code:"410704",name:"凤泉区",region_level:3,children:[]},{code:"410711",name:"牧野区",region_level:3,children:[]},{code:"410721",name:"新乡县",region_level:3,children:[]},{code:"410724",name:"获嘉县",region_level:3,children:[]},{code:"410725",name:"原阳县",region_level:3,children:[]},{code:"410726",name:"延津县",region_level:3,children:[]},{code:"410727",name:"封丘县",region_level:3,children:[]},{code:"410781",name:"卫辉市",region_level:3,children:[]},{code:"410782",name:"辉县市",region_level:3,children:[]},{code:"410783",name:"长垣市",region_level:3,children:[]}]},{code:"4108",name:"焦作市",region_level:2,children:[{code:"410802",name:"解放区",region_level:3,children:[]},{code:"410803",name:"中站区",region_level:3,children:[]},{code:"410804",name:"马村区",region_level:3,children:[]},{code:"410811",name:"山阳区",region_level:3,children:[]},{code:"410821",name:"修武县",region_level:3,children:[]},{code:"410822",name:"博爱县",region_level:3,children:[]},{code:"410823",name:"武陟县",region_level:3,children:[]},{code:"410825",name:"温县",region_level:3,children:[]},{code:"410882",name:"沁阳市",region_level:3,children:[]},{code:"410883",name:"孟州市",region_level:3,children:[]}]},{code:"4109",name:"濮阳市",region_level:2,children:[{code:"410902",name:"华龙区",region_level:3,children:[]},{code:"410922",name:"清丰县",region_level:3,children:[]},{code:"410923",name:"南乐县",region_level:3,children:[]},{code:"410926",name:"范县",region_level:3,children:[]},{code:"410927",name:"台前县",region_level:3,children:[]},{code:"410928",name:"濮阳县",region_level:3,children:[]}]},{code:"4110",name:"许昌市",region_level:2,children:[{code:"411002",name:"魏都区",region_level:3,children:[]},{code:"411003",name:"建安区",region_level:3,children:[]},{code:"411024",name:"鄢陵县",region_level:3,children:[]},{code:"411025",name:"襄城县",region_level:3,children:[]},{code:"411081",name:"禹州市",region_level:3,children:[]},{code:"411082",name:"长葛市",region_level:3,children:[]}]},{code:"4111",name:"漯河市",region_level:2,children:[{code:"411102",name:"源汇区",region_level:3,children:[]},{code:"411103",name:"郾城区",region_level:3,children:[]},{code:"411104",name:"召陵区",region_level:3,children:[]},{code:"411121",name:"舞阳县",region_level:3,children:[]},{code:"411122",name:"临颍县",region_level:3,children:[]}]},{code:"4112",name:"三门峡市",region_level:2,children:[{code:"411202",name:"湖滨区",region_level:3,children:[]},{code:"411203",name:"陕州区",region_level:3,children:[]},{code:"411221",name:"渑池县",region_level:3,children:[]},{code:"411224",name:"卢氏县",region_level:3,children:[]},{code:"411281",name:"义马市",region_level:3,children:[]},{code:"411282",name:"灵宝市",region_level:3,children:[]}]},{code:"4113",name:"南阳市",region_level:2,children:[{code:"411302",name:"宛城区",region_level:3,children:[]},{code:"411303",name:"卧龙区",region_level:3,children:[]},{code:"411321",name:"南召县",region_level:3,children:[]},{code:"411322",name:"方城县",region_level:3,children:[]},{code:"411323",name:"西峡县",region_level:3,children:[]},{code:"411324",name:"镇平县",region_level:3,children:[]},{code:"411325",name:"内乡县",region_level:3,children:[]},{code:"411326",name:"淅川县",region_level:3,children:[]},{code:"411327",name:"社旗县",region_level:3,children:[]},{code:"411328",name:"唐河县",region_level:3,children:[]},{code:"411329",name:"新野县",region_level:3,children:[]},{code:"411330",name:"桐柏县",region_level:3,children:[]},{code:"411381",name:"邓州市",region_level:3,children:[]}]},{code:"4114",name:"商丘市",region_level:2,children:[{code:"411402",name:"梁园区",region_level:3,children:[]},{code:"411403",name:"睢阳区",region_level:3,children:[]},{code:"411421",name:"民权县",region_level:3,children:[]},{code:"411422",name:"睢县",region_level:3,children:[]},{code:"411423",name:"宁陵县",region_level:3,children:[]},{code:"411424",name:"柘城县",region_level:3,children:[]},{code:"411425",name:"虞城县",region_level:3,children:[]},{code:"411426",name:"夏邑县",region_level:3,children:[]},{code:"411481",name:"永城市",region_level:3,children:[]}]},{code:"4115",name:"信阳市",region_level:2,children:[{code:"411502",name:"浉河区",region_level:3,children:[]},{code:"411503",name:"平桥区",region_level:3,children:[]},{code:"411521",name:"罗山县",region_level:3,children:[]},{code:"411522",name:"光山县",region_level:3,children:[]},{code:"411523",name:"新县",region_level:3,children:[]},{code:"411524",name:"商城县",region_level:3,children:[]},{code:"411525",name:"固始县",region_level:3,children:[]},{code:"411526",name:"潢川县",region_level:3,children:[]},{code:"411527",name:"淮滨县",region_level:3,children:[]},{code:"411528",name:"息县",region_level:3,children:[]}]},{code:"4116",name:"周口市",region_level:2,children:[{code:"411602",name:"川汇区",region_level:3,children:[]},{code:"411603",name:"淮阳区",region_level:3,children:[]},{code:"411621",name:"扶沟县",region_level:3,children:[]},{code:"411622",name:"西华县",region_level:3,children:[]},{code:"411623",name:"商水县",region_level:3,children:[]},{code:"411624",name:"沈丘县",region_level:3,children:[]},{code:"411625",name:"郸城县",region_level:3,children:[]},{code:"411627",name:"太康县",region_level:3,children:[]},{code:"411628",name:"鹿邑县",region_level:3,children:[]},{code:"411681",name:"项城市",region_level:3,children:[]}]},{code:"4117",name:"驻马店市",region_level:2,children:[{code:"411702",name:"驿城区",region_level:3,children:[]},{code:"411721",name:"西平县",region_level:3,children:[]},{code:"411722",name:"上蔡县",region_level:3,children:[]},{code:"411723",name:"平舆县",region_level:3,children:[]},{code:"411724",name:"正阳县",region_level:3,children:[]},{code:"411725",name:"确山县",region_level:3,children:[]},{code:"411726",name:"泌阳县",region_level:3,children:[]},{code:"411727",name:"汝南县",region_level:3,children:[]},{code:"411728",name:"遂平县",region_level:3,children:[]},{code:"411729",name:"新蔡县",region_level:3,children:[]}]},{code:"4190",name:"省直辖县级行政区",region_level:2,children:[{code:"419001",name:"济源市",region_level:3,children:[]}]}]},{code:"42",name:"湖北省",region_level:1,children:[{code:"4201",name:"武汉市",region_level:2,children:[{code:"420102",name:"江岸区",region_level:3,children:[]},{code:"420103",name:"江汉区",region_level:3,children:[]},{code:"420104",name:"硚口区",region_level:3,children:[]},{code:"420105",name:"汉阳区",region_level:3,children:[]},{code:"420106",name:"武昌区",region_level:3,children:[]},{code:"420107",name:"青山区",region_level:3,children:[]},{code:"420111",name:"洪山区",region_level:3,children:[]},{code:"420112",name:"东西湖区",region_level:3,children:[]},{code:"420113",name:"汉南区",region_level:3,children:[]},{code:"420114",name:"蔡甸区",region_level:3,children:[]},{code:"420115",name:"江夏区",region_level:3,children:[]},{code:"420116",name:"黄陂区",region_level:3,children:[]},{code:"420117",name:"新洲区",region_level:3,children:[]}]},{code:"4202",name:"黄石市",region_level:2,children:[{code:"420202",name:"黄石港区",region_level:3,children:[]},{code:"420203",name:"西塞山区",region_level:3,children:[]},{code:"420204",name:"下陆区",region_level:3,children:[]},{code:"420205",name:"铁山区",region_level:3,children:[]},{code:"420222",name:"阳新县",region_level:3,children:[]},{code:"420281",name:"大冶市",region_level:3,children:[]}]},{code:"4203",name:"十堰市",region_level:2,children:[{code:"420302",name:"茅箭区",region_level:3,children:[]},{code:"420303",name:"张湾区",region_level:3,children:[]},{code:"420304",name:"郧阳区",region_level:3,children:[]},{code:"420322",name:"郧西县",region_level:3,children:[]},{code:"420323",name:"竹山县",region_level:3,children:[]},{code:"420324",name:"竹溪县",region_level:3,children:[]},{code:"420325",name:"房县",region_level:3,children:[]},{code:"420381",name:"丹江口市",region_level:3,children:[]}]},{code:"4205",name:"宜昌市",region_level:2,children:[{code:"420502",name:"西陵区",region_level:3,children:[]},{code:"420503",name:"伍家岗区",region_level:3,children:[]},{code:"420504",name:"点军区",region_level:3,children:[]},{code:"420505",name:"猇亭区",region_level:3,children:[]},{code:"420506",name:"夷陵区",region_level:3,children:[]},{code:"420525",name:"远安县",region_level:3,children:[]},{code:"420526",name:"兴山县",region_level:3,children:[]},{code:"420527",name:"秭归县",region_level:3,children:[]},{code:"420528",name:"长阳土家族自治县",region_level:3,children:[]},{code:"420529",name:"五峰土家族自治县",region_level:3,children:[]},{code:"420581",name:"宜都市",region_level:3,children:[]},{code:"420582",name:"当阳市",region_level:3,children:[]},{code:"420583",name:"枝江市",region_level:3,children:[]}]},{code:"4206",name:"襄阳市",region_level:2,children:[{code:"420602",name:"襄城区",region_level:3,children:[]},{code:"420606",name:"樊城区",region_level:3,children:[]},{code:"420607",name:"襄州区",region_level:3,children:[]},{code:"420624",name:"南漳县",region_level:3,children:[]},{code:"420625",name:"谷城县",region_level:3,children:[]},{code:"420626",name:"保康县",region_level:3,children:[]},{code:"420682",name:"老河口市",region_level:3,children:[]},{code:"420683",name:"枣阳市",region_level:3,children:[]},{code:"420684",name:"宜城市",region_level:3,children:[]}]},{code:"4207",name:"鄂州市",region_level:2,children:[{code:"420702",name:"梁子湖区",region_level:3,children:[]},{code:"420703",name:"华容区",region_level:3,children:[]},{code:"420704",name:"鄂城区",region_level:3,children:[]}]},{code:"4208",name:"荆门市",region_level:2,children:[{code:"420802",name:"东宝区",region_level:3,children:[]},{code:"420804",name:"掇刀区",region_level:3,children:[]},{code:"420822",name:"沙洋县",region_level:3,children:[]},{code:"420881",name:"钟祥市",region_level:3,children:[]},{code:"420882",name:"京山市",region_level:3,children:[]}]},{code:"4209",name:"孝感市",region_level:2,children:[{code:"420902",name:"孝南区",region_level:3,children:[]},{code:"420921",name:"孝昌县",region_level:3,children:[]},{code:"420922",name:"大悟县",region_level:3,children:[]},{code:"420923",name:"云梦县",region_level:3,children:[]},{code:"420981",name:"应城市",region_level:3,children:[]},{code:"420982",name:"安陆市",region_level:3,children:[]},{code:"420984",name:"汉川市",region_level:3,children:[]}]},{code:"4210",name:"荆州市",region_level:2,children:[{code:"421002",name:"沙市区",region_level:3,children:[]},{code:"421003",name:"荆州区",region_level:3,children:[]},{code:"421022",name:"公安县",region_level:3,children:[]},{code:"421023",name:"监利县",region_level:3,children:[]},{code:"421024",name:"江陵县",region_level:3,children:[]},{code:"421081",name:"石首市",region_level:3,children:[]},{code:"421083",name:"洪湖市",region_level:3,children:[]},{code:"421087",name:"松滋市",region_level:3,children:[]}]},{code:"4211",name:"黄冈市",region_level:2,children:[{code:"421102",name:"黄州区",region_level:3,children:[]},{code:"421121",name:"团风县",region_level:3,children:[]},{code:"421122",name:"红安县",region_level:3,children:[]},{code:"421123",name:"罗田县",region_level:3,children:[]},{code:"421124",name:"英山县",region_level:3,children:[]},{code:"421125",name:"浠水县",region_level:3,children:[]},{code:"421126",name:"蕲春县",region_level:3,children:[]},{code:"421127",name:"黄梅县",region_level:3,children:[]},{code:"421181",name:"麻城市",region_level:3,children:[]},{code:"421182",name:"武穴市",region_level:3,children:[]}]},{code:"4212",name:"咸宁市",region_level:2,children:[{code:"421202",name:"咸安区",region_level:3,children:[]},{code:"421221",name:"嘉鱼县",region_level:3,children:[]},{code:"421222",name:"通城县",region_level:3,children:[]},{code:"421223",name:"崇阳县",region_level:3,children:[]},{code:"421224",name:"通山县",region_level:3,children:[]},{code:"421281",name:"赤壁市",region_level:3,children:[]}]},{code:"4213",name:"随州市",region_level:2,children:[{code:"421303",name:"曾都区",region_level:3,children:[]},{code:"421321",name:"随县",region_level:3,children:[]},{code:"421381",name:"广水市",region_level:3,children:[]}]},{code:"4228",name:"恩施土家族苗族自治州",region_level:2,children:[{code:"422801",name:"恩施市",region_level:3,children:[]},{code:"422802",name:"利川市",region_level:3,children:[]},{code:"422822",name:"建始县",region_level:3,children:[]},{code:"422823",name:"巴东县",region_level:3,children:[]},{code:"422825",name:"宣恩县",region_level:3,children:[]},{code:"422826",name:"咸丰县",region_level:3,children:[]},{code:"422827",name:"来凤县",region_level:3,children:[]},{code:"422828",name:"鹤峰县",region_level:3,children:[]}]},{code:"4290",name:"省直辖县级行政区",region_level:2,children:[{code:"429004",name:"仙桃市",region_level:3,children:[]},{code:"429005",name:"潜江市",region_level:3,children:[]},{code:"429006",name:"天门市",region_level:3,children:[]},{code:"429021",name:"神农架林区",region_level:3,children:[]}]}]},{code:"43",name:"湖南省",region_level:1,children:[{code:"4301",name:"长沙市",region_level:2,children:[{code:"430102",name:"芙蓉区",region_level:3,children:[]},{code:"430103",name:"天心区",region_level:3,children:[]},{code:"430104",name:"岳麓区",region_level:3,children:[]},{code:"430105",name:"开福区",region_level:3,children:[]},{code:"430111",name:"雨花区",region_level:3,children:[]},{code:"430112",name:"望城区",region_level:3,children:[]},{code:"430121",name:"长沙县",region_level:3,children:[]},{code:"430181",name:"浏阳市",region_level:3,children:[]},{code:"430182",name:"宁乡市",region_level:3,children:[]}]},{code:"4302",name:"株洲市",region_level:2,children:[{code:"430202",name:"荷塘区",region_level:3,children:[]},{code:"430203",name:"芦淞区",region_level:3,children:[]},{code:"430204",name:"石峰区",region_level:3,children:[]},{code:"430211",name:"天元区",region_level:3,children:[]},{code:"430212",name:"渌口区",region_level:3,children:[]},{code:"430223",name:"攸县",region_level:3,children:[]},{code:"430224",name:"茶陵县",region_level:3,children:[]},{code:"430225",name:"炎陵县",region_level:3,children:[]},{code:"430281",name:"醴陵市",region_level:3,children:[]}]},{code:"4303",name:"湘潭市",region_level:2,children:[{code:"430302",name:"雨湖区",region_level:3,children:[]},{code:"430304",name:"岳塘区",region_level:3,children:[]},{code:"430321",name:"湘潭县",region_level:3,children:[]},{code:"430381",name:"湘乡市",region_level:3,children:[]},{code:"430382",name:"韶山市",region_level:3,children:[]}]},{code:"4304",name:"衡阳市",region_level:2,children:[{code:"430405",name:"珠晖区",region_level:3,children:[]},{code:"430406",name:"雁峰区",region_level:3,children:[]},{code:"430407",name:"石鼓区",region_level:3,children:[]},{code:"430408",name:"蒸湘区",region_level:3,children:[]},{code:"430412",name:"南岳区",region_level:3,children:[]},{code:"430421",name:"衡阳县",region_level:3,children:[]},{code:"430422",name:"衡南县",region_level:3,children:[]},{code:"430423",name:"衡山县",region_level:3,children:[]},{code:"430424",name:"衡东县",region_level:3,children:[]},{code:"430426",name:"祁东县",region_level:3,children:[]},{code:"430481",name:"耒阳市",region_level:3,children:[]},{code:"430482",name:"常宁市",region_level:3,children:[]}]},{code:"4305",name:"邵阳市",region_level:2,children:[{code:"430502",name:"双清区",region_level:3,children:[]},{code:"430503",name:"大祥区",region_level:3,children:[]},{code:"430511",name:"北塔区",region_level:3,children:[]},{code:"430522",name:"新邵县",region_level:3,children:[]},{code:"430523",name:"邵阳县",region_level:3,children:[]},{code:"430524",name:"隆回县",region_level:3,children:[]},{code:"430525",name:"洞口县",region_level:3,children:[]},{code:"430527",name:"绥宁县",region_level:3,children:[]},{code:"430528",name:"新宁县",region_level:3,children:[]},{code:"430529",name:"城步苗族自治县",region_level:3,children:[]},{code:"430581",name:"武冈市",region_level:3,children:[]},{code:"430582",name:"邵东市",region_level:3,children:[]}]},{code:"4306",name:"岳阳市",region_level:2,children:[{code:"430602",name:"岳阳楼区",region_level:3,children:[]},{code:"430603",name:"云溪区",region_level:3,children:[]},{code:"430611",name:"君山区",region_level:3,children:[]},{code:"430621",name:"岳阳县",region_level:3,children:[]},{code:"430623",name:"华容县",region_level:3,children:[]},{code:"430624",name:"湘阴县",region_level:3,children:[]},{code:"430626",name:"平江县",region_level:3,children:[]},{code:"430681",name:"汨罗市",region_level:3,children:[]},{code:"430682",name:"临湘市",region_level:3,children:[]}]},{code:"4307",name:"常德市",region_level:2,children:[{code:"430702",name:"武陵区",region_level:3,children:[]},{code:"430703",name:"鼎城区",region_level:3,children:[]},{code:"430721",name:"安乡县",region_level:3,children:[]},{code:"430722",name:"汉寿县",region_level:3,children:[]},{code:"430723",name:"澧县",region_level:3,children:[]},{code:"430724",name:"临澧县",region_level:3,children:[]},{code:"430725",name:"桃源县",region_level:3,children:[]},{code:"430726",name:"石门县",region_level:3,children:[]},{code:"430781",name:"津市市",region_level:3,children:[]}]},{code:"4308",name:"张家界市",region_level:2,children:[{code:"430802",name:"永定区",region_level:3,children:[]},{code:"430811",name:"武陵源区",region_level:3,children:[]},{code:"430821",name:"慈利县",region_level:3,children:[]},{code:"430822",name:"桑植县",region_level:3,children:[]}]},{code:"4309",name:"益阳市",region_level:2,children:[{code:"430902",name:"资阳区",region_level:3,children:[]},{code:"430903",name:"赫山区",region_level:3,children:[]},{code:"430921",name:"南县",region_level:3,children:[]},{code:"430922",name:"桃江县",region_level:3,children:[]},{code:"430923",name:"安化县",region_level:3,children:[]},{code:"430981",name:"沅江市",region_level:3,children:[]}]},{code:"4310",name:"郴州市",region_level:2,children:[{code:"431002",name:"北湖区",region_level:3,children:[]},{code:"431003",name:"苏仙区",region_level:3,children:[]},{code:"431021",name:"桂阳县",region_level:3,children:[]},{code:"431022",name:"宜章县",region_level:3,children:[]},{code:"431023",name:"永兴县",region_level:3,children:[]},{code:"431024",name:"嘉禾县",region_level:3,children:[]},{code:"431025",name:"临武县",region_level:3,children:[]},{code:"431026",name:"汝城县",region_level:3,children:[]},{code:"431027",name:"桂东县",region_level:3,children:[]},{code:"431028",name:"安仁县",region_level:3,children:[]},{code:"431081",name:"资兴市",region_level:3,children:[]}]},{code:"4311",name:"永州市",region_level:2,children:[{code:"431102",name:"零陵区",region_level:3,children:[]},{code:"431103",name:"冷水滩区",region_level:3,children:[]},{code:"431121",name:"祁阳县",region_level:3,children:[]},{code:"431122",name:"东安县",region_level:3,children:[]},{code:"431123",name:"双牌县",region_level:3,children:[]},{code:"431124",name:"道县",region_level:3,children:[]},{code:"431125",name:"江永县",region_level:3,children:[]},{code:"431126",name:"宁远县",region_level:3,children:[]},{code:"431127",name:"蓝山县",region_level:3,children:[]},{code:"431128",name:"新田县",region_level:3,children:[]},{code:"431129",name:"江华瑶族自治县",region_level:3,children:[]}]},{code:"4312",name:"怀化市",region_level:2,children:[{code:"431202",name:"鹤城区",region_level:3,children:[]},{code:"431221",name:"中方县",region_level:3,children:[]},{code:"431222",name:"沅陵县",region_level:3,children:[]},{code:"431223",name:"辰溪县",region_level:3,children:[]},{code:"431224",name:"溆浦县",region_level:3,children:[]},{code:"431225",name:"会同县",region_level:3,children:[]},{code:"431226",name:"麻阳苗族自治县",region_level:3,children:[]},{code:"431227",name:"新晃侗族自治县",region_level:3,children:[]},{code:"431228",name:"芷江侗族自治县",region_level:3,children:[]},{code:"431229",name:"靖州苗族侗族自治县",region_level:3,children:[]},{code:"431230",name:"通道侗族自治县",region_level:3,children:[]},{code:"431281",name:"洪江市",region_level:3,children:[]}]},{code:"4313",name:"娄底市",region_level:2,children:[{code:"431302",name:"娄星区",region_level:3,children:[]},{code:"431321",name:"双峰县",region_level:3,children:[]},{code:"431322",name:"新化县",region_level:3,children:[]},{code:"431381",name:"冷水江市",region_level:3,children:[]},{code:"431382",name:"涟源市",region_level:3,children:[]}]},{code:"4331",name:"湘西土家族苗族自治州",region_level:2,children:[{code:"433101",name:"吉首市",region_level:3,children:[]},{code:"433122",name:"泸溪县",region_level:3,children:[]},{code:"433123",name:"凤凰县",region_level:3,children:[]},{code:"433124",name:"花垣县",region_level:3,children:[]},{code:"433125",name:"保靖县",region_level:3,children:[]},{code:"433126",name:"古丈县",region_level:3,children:[]},{code:"433127",name:"永顺县",region_level:3,children:[]},{code:"433130",name:"龙山县",region_level:3,children:[]}]}]},{code:"44",name:"广东省",region_level:1,children:[{code:"4401",name:"广州市",region_level:2,children:[{code:"440103",name:"荔湾区",region_level:3,children:[]},{code:"440104",name:"越秀区",region_level:3,children:[]},{code:"440105",name:"海珠区",region_level:3,children:[]},{code:"440106",name:"天河区",region_level:3,children:[]},{code:"440111",name:"白云区",region_level:3,children:[]},{code:"440112",name:"黄埔区",region_level:3,children:[]},{code:"440113",name:"番禺区",region_level:3,children:[]},{code:"440114",name:"花都区",region_level:3,children:[]},{code:"440115",name:"南沙区",region_level:3,children:[]},{code:"440117",name:"从化区",region_level:3,children:[]},{code:"440118",name:"增城区",region_level:3,children:[]}]},{code:"4402",name:"韶关市",region_level:2,children:[{code:"440203",name:"武江区",region_level:3,children:[]},{code:"440204",name:"浈江区",region_level:3,children:[]},{code:"440205",name:"曲江区",region_level:3,children:[]},{code:"440222",name:"始兴县",region_level:3,children:[]},{code:"440224",name:"仁化县",region_level:3,children:[]},{code:"440229",name:"翁源县",region_level:3,children:[]},{code:"440232",name:"乳源瑶族自治县",region_level:3,children:[]},{code:"440233",name:"新丰县",region_level:3,children:[]},{code:"440281",name:"乐昌市",region_level:3,children:[]},{code:"440282",name:"南雄市",region_level:3,children:[]}]},{code:"4403",name:"深圳市",region_level:2,children:[{code:"440303",name:"罗湖区",region_level:3,children:[]},{code:"440304",name:"福田区",region_level:3,children:[]},{code:"440305",name:"南山区",region_level:3,children:[]},{code:"440306",name:"宝安区",region_level:3,children:[]},{code:"440307",name:"龙岗区",region_level:3,children:[]},{code:"440308",name:"盐田区",region_level:3,children:[]},{code:"440309",name:"龙华区",region_level:3,children:[]},{code:"440310",name:"坪山区",region_level:3,children:[]},{code:"440311",name:"光明区",region_level:3,children:[]}]},{code:"4404",name:"珠海市",region_level:2,children:[{code:"440402",name:"香洲区",region_level:3,children:[]},{code:"440403",name:"斗门区",region_level:3,children:[]},{code:"440404",name:"金湾区",region_level:3,children:[]}]},{code:"4405",name:"汕头市",region_level:2,children:[{code:"440507",name:"龙湖区",region_level:3,children:[]},{code:"440511",name:"金平区",region_level:3,children:[]},{code:"440512",name:"濠江区",region_level:3,children:[]},{code:"440513",name:"潮阳区",region_level:3,children:[]},{code:"440514",name:"潮南区",region_level:3,children:[]},{code:"440515",name:"澄海区",region_level:3,children:[]},{code:"440523",name:"南澳县",region_level:3,children:[]}]},{code:"4406",name:"佛山市",region_level:2,children:[{code:"440604",name:"禅城区",region_level:3,children:[]},{code:"440605",name:"南海区",region_level:3,children:[]},{code:"440606",name:"顺德区",region_level:3,children:[]},{code:"440607",name:"三水区",region_level:3,children:[]},{code:"440608",name:"高明区",region_level:3,children:[]}]},{code:"4407",name:"江门市",region_level:2,children:[{code:"440703",name:"蓬江区",region_level:3,children:[]},{code:"440704",name:"江海区",region_level:3,children:[]},{code:"440705",name:"新会区",region_level:3,children:[]},{code:"440781",name:"台山市",region_level:3,children:[]},{code:"440783",name:"开平市",region_level:3,children:[]},{code:"440784",name:"鹤山市",region_level:3,children:[]},{code:"440785",name:"恩平市",region_level:3,children:[]}]},{code:"4408",name:"湛江市",region_level:2,children:[{code:"440802",name:"赤坎区",region_level:3,children:[]},{code:"440803",name:"霞山区",region_level:3,children:[]},{code:"440804",name:"坡头区",region_level:3,children:[]},{code:"440811",name:"麻章区",region_level:3,children:[]},{code:"440823",name:"遂溪县",region_level:3,children:[]},{code:"440825",name:"徐闻县",region_level:3,children:[]},{code:"440881",name:"廉江市",region_level:3,children:[]},{code:"440882",name:"雷州市",region_level:3,children:[]},{code:"440883",name:"吴川市",region_level:3,children:[]}]},{code:"4409",name:"茂名市",region_level:2,children:[{code:"440902",name:"茂南区",region_level:3,children:[]},{code:"440904",name:"电白区",region_level:3,children:[]},{code:"440981",name:"高州市",region_level:3,children:[]},{code:"440982",name:"化州市",region_level:3,children:[]},{code:"440983",name:"信宜市",region_level:3,children:[]}]},{code:"4412",name:"肇庆市",region_level:2,children:[{code:"441202",name:"端州区",region_level:3,children:[]},{code:"441203",name:"鼎湖区",region_level:3,children:[]},{code:"441204",name:"高要区",region_level:3,children:[]},{code:"441223",name:"广宁县",region_level:3,children:[]},{code:"441224",name:"怀集县",region_level:3,children:[]},{code:"441225",name:"封开县",region_level:3,children:[]},{code:"441226",name:"德庆县",region_level:3,children:[]},{code:"441284",name:"四会市",region_level:3,children:[]}]},{code:"4413",name:"惠州市",region_level:2,children:[{code:"441302",name:"惠城区",region_level:3,children:[]},{code:"441303",name:"惠阳区",region_level:3,children:[]},{code:"441322",name:"博罗县",region_level:3,children:[]},{code:"441323",name:"惠东县",region_level:3,children:[]},{code:"441324",name:"龙门县",region_level:3,children:[]}]},{code:"4414",name:"梅州市",region_level:2,children:[{code:"441402",name:"梅江区",region_level:3,children:[]},{code:"441403",name:"梅县区",region_level:3,children:[]},{code:"441422",name:"大埔县",region_level:3,children:[]},{code:"441423",name:"丰顺县",region_level:3,children:[]},{code:"441424",name:"五华县",region_level:3,children:[]},{code:"441426",name:"平远县",region_level:3,children:[]},{code:"441427",name:"蕉岭县",region_level:3,children:[]},{code:"441481",name:"兴宁市",region_level:3,children:[]}]},{code:"4415",name:"汕尾市",region_level:2,children:[{code:"441502",name:"城区",region_level:3,children:[]},{code:"441521",name:"海丰县",region_level:3,children:[]},{code:"441523",name:"陆河县",region_level:3,children:[]},{code:"441581",name:"陆丰市",region_level:3,children:[]}]},{code:"4416",name:"河源市",region_level:2,children:[{code:"441602",name:"源城区",region_level:3,children:[]},{code:"441621",name:"紫金县",region_level:3,children:[]},{code:"441622",name:"龙川县",region_level:3,children:[]},{code:"441623",name:"连平县",region_level:3,children:[]},{code:"441624",name:"和平县",region_level:3,children:[]},{code:"441625",name:"东源县",region_level:3,children:[]}]},{code:"4417",name:"阳江市",region_level:2,children:[{code:"441702",name:"江城区",region_level:3,children:[]},{code:"441704",name:"阳东区",region_level:3,children:[]},{code:"441721",name:"阳西县",region_level:3,children:[]},{code:"441781",name:"阳春市",region_level:3,children:[]}]},{code:"4418",name:"清远市",region_level:2,children:[{code:"441802",name:"清城区",region_level:3,children:[]},{code:"441803",name:"清新区",region_level:3,children:[]},{code:"441821",name:"佛冈县",region_level:3,children:[]},{code:"441823",name:"阳山县",region_level:3,children:[]},{code:"441825",name:"连山壮族瑶族自治县",region_level:3,children:[]},{code:"441826",name:"连南瑶族自治县",region_level:3,children:[]},{code:"441881",name:"英德市",region_level:3,children:[]},{code:"441882",name:"连州市",region_level:3,children:[]}]},{code:"4419",name:"东莞市",region_level:2,children:[{code:"441900",name:"东莞市",region_level:3,children:[]}]},{code:"4420",name:"中山市",region_level:2,children:[{code:"442000",name:"中山市",region_level:3,children:[]}]},{code:"4451",name:"潮州市",region_level:2,children:[{code:"445102",name:"湘桥区",region_level:3,children:[]},{code:"445103",name:"潮安区",region_level:3,children:[]},{code:"445122",name:"饶平县",region_level:3,children:[]}]},{code:"4452",name:"揭阳市",region_level:2,children:[{code:"445202",name:"榕城区",region_level:3,children:[]},{code:"445203",name:"揭东区",region_level:3,children:[]},{code:"445222",name:"揭西县",region_level:3,children:[]},{code:"445224",name:"惠来县",region_level:3,children:[]},{code:"445281",name:"普宁市",region_level:3,children:[]}]},{code:"4453",name:"云浮市",region_level:2,children:[{code:"445302",name:"云城区",region_level:3,children:[]},{code:"445303",name:"云安区",region_level:3,children:[]},{code:"445321",name:"新兴县",region_level:3,children:[]},{code:"445322",name:"郁南县",region_level:3,children:[]},{code:"445381",name:"罗定市",region_level:3,children:[]}]}]},{code:"45",name:"广西壮族自治区",region_level:1,children:[{code:"4501",name:"南宁市",region_level:2,children:[{code:"450102",name:"兴宁区",region_level:3,children:[]},{code:"450103",name:"青秀区",region_level:3,children:[]},{code:"450105",name:"江南区",region_level:3,children:[]},{code:"450107",name:"西乡塘区",region_level:3,children:[]},{code:"450108",name:"良庆区",region_level:3,children:[]},{code:"450109",name:"邕宁区",region_level:3,children:[]},{code:"450110",name:"武鸣区",region_level:3,children:[]},{code:"450123",name:"隆安县",region_level:3,children:[]},{code:"450124",name:"马山县",region_level:3,children:[]},{code:"450125",name:"上林县",region_level:3,children:[]},{code:"450126",name:"宾阳县",region_level:3,children:[]},{code:"450127",name:"横县",region_level:3,children:[]}]},{code:"4502",name:"柳州市",region_level:2,children:[{code:"450202",name:"城中区",region_level:3,children:[]},{code:"450203",name:"鱼峰区",region_level:3,children:[]},{code:"450204",name:"柳南区",region_level:3,children:[]},{code:"450205",name:"柳北区",region_level:3,children:[]},{code:"450206",name:"柳江区",region_level:3,children:[]},{code:"450222",name:"柳城县",region_level:3,children:[]},{code:"450223",name:"鹿寨县",region_level:3,children:[]},{code:"450224",name:"融安县",region_level:3,children:[]},{code:"450225",name:"融水苗族自治县",region_level:3,children:[]},{code:"450226",name:"三江侗族自治县",region_level:3,children:[]}]},{code:"4503",name:"桂林市",region_level:2,children:[{code:"450302",name:"秀峰区",region_level:3,children:[]},{code:"450303",name:"叠彩区",region_level:3,children:[]},{code:"450304",name:"象山区",region_level:3,children:[]},{code:"450305",name:"七星区",region_level:3,children:[]},{code:"450311",name:"雁山区",region_level:3,children:[]},{code:"450312",name:"临桂区",region_level:3,children:[]},{code:"450321",name:"阳朔县",region_level:3,children:[]},{code:"450323",name:"灵川县",region_level:3,children:[]},{code:"450324",name:"全州县",region_level:3,children:[]},{code:"450325",name:"兴安县",region_level:3,children:[]},{code:"450326",name:"永福县",region_level:3,children:[]},{code:"450327",name:"灌阳县",region_level:3,children:[]},{code:"450328",name:"龙胜各族自治县",region_level:3,children:[]},{code:"450329",name:"资源县",region_level:3,children:[]},{code:"450330",name:"平乐县",region_level:3,children:[]},{code:"450332",name:"恭城瑶族自治县",region_level:3,children:[]},{code:"450381",name:"荔浦市",region_level:3,children:[]}]},{code:"4504",name:"梧州市",region_level:2,children:[{code:"450403",name:"万秀区",region_level:3,children:[]},{code:"450405",name:"长洲区",region_level:3,children:[]},{code:"450406",name:"龙圩区",region_level:3,children:[]},{code:"450421",name:"苍梧县",region_level:3,children:[]},{code:"450422",name:"藤县",region_level:3,children:[]},{code:"450423",name:"蒙山县",region_level:3,children:[]},{code:"450481",name:"岑溪市",region_level:3,children:[]}]},{code:"4505",name:"北海市",region_level:2,children:[{code:"450502",name:"海城区",region_level:3,children:[]},{code:"450503",name:"银海区",region_level:3,children:[]},{code:"450512",name:"铁山港区",region_level:3,children:[]},{code:"450521",name:"合浦县",region_level:3,children:[]}]},{code:"4506",name:"防城港市",region_level:2,children:[{code:"450602",name:"港口区",region_level:3,children:[]},{code:"450603",name:"防城区",region_level:3,children:[]},{code:"450621",name:"上思县",region_level:3,children:[]},{code:"450681",name:"东兴市",region_level:3,children:[]}]},{code:"4507",name:"钦州市",region_level:2,children:[{code:"450702",name:"钦南区",region_level:3,children:[]},{code:"450703",name:"钦北区",region_level:3,children:[]},{code:"450721",name:"灵山县",region_level:3,children:[]},{code:"450722",name:"浦北县",region_level:3,children:[]}]},{code:"4508",name:"贵港市",region_level:2,children:[{code:"450802",name:"港北区",region_level:3,children:[]},{code:"450803",name:"港南区",region_level:3,children:[]},{code:"450804",name:"覃塘区",region_level:3,children:[]},{code:"450821",name:"平南县",region_level:3,children:[]},{code:"450881",name:"桂平市",region_level:3,children:[]}]},{code:"4509",name:"玉林市",region_level:2,children:[{code:"450902",name:"玉州区",region_level:3,children:[]},{code:"450903",name:"福绵区",region_level:3,children:[]},{code:"450921",name:"容县",region_level:3,children:[]},{code:"450922",name:"陆川县",region_level:3,children:[]},{code:"450923",name:"博白县",region_level:3,children:[]},{code:"450924",name:"兴业县",region_level:3,children:[]},{code:"450981",name:"北流市",region_level:3,children:[]}]},{code:"4510",name:"百色市",region_level:2,children:[{code:"451002",name:"右江区",region_level:3,children:[]},{code:"451003",name:"田阳区",region_level:3,children:[]},{code:"451022",name:"田东县",region_level:3,children:[]},{code:"451024",name:"德保县",region_level:3,children:[]},{code:"451026",name:"那坡县",region_level:3,children:[]},{code:"451027",name:"凌云县",region_level:3,children:[]},{code:"451028",name:"乐业县",region_level:3,children:[]},{code:"451029",name:"田林县",region_level:3,children:[]},{code:"451030",name:"西林县",region_level:3,children:[]},{code:"451031",name:"隆林各族自治县",region_level:3,children:[]},{code:"451081",name:"靖西市",region_level:3,children:[]},{code:"451082",name:"平果市",region_level:3,children:[]}]},{code:"4511",name:"贺州市",region_level:2,children:[{code:"451102",name:"八步区",region_level:3,children:[]},{code:"451103",name:"平桂区",region_level:3,children:[]},{code:"451121",name:"昭平县",region_level:3,children:[]},{code:"451122",name:"钟山县",region_level:3,children:[]},{code:"451123",name:"富川瑶族自治县",region_level:3,children:[]}]},{code:"4512",name:"河池市",region_level:2,children:[{code:"451202",name:"金城江区",region_level:3,children:[]},{code:"451203",name:"宜州区",region_level:3,children:[]},{code:"451221",name:"南丹县",region_level:3,children:[]},{code:"451222",name:"天峨县",region_level:3,children:[]},{code:"451223",name:"凤山县",region_level:3,children:[]},{code:"451224",name:"东兰县",region_level:3,children:[]},{code:"451225",name:"罗城仫佬族自治县",region_level:3,children:[]},{code:"451226",name:"环江毛南族自治县",region_level:3,children:[]},{code:"451227",name:"巴马瑶族自治县",region_level:3,children:[]},{code:"451228",name:"都安瑶族自治县",region_level:3,children:[]},{code:"451229",name:"大化瑶族自治县",region_level:3,children:[]}]},{code:"4513",name:"来宾市",region_level:2,children:[{code:"451302",name:"兴宾区",region_level:3,children:[]},{code:"451321",name:"忻城县",region_level:3,children:[]},{code:"451322",name:"象州县",region_level:3,children:[]},{code:"451323",name:"武宣县",region_level:3,children:[]},{code:"451324",name:"金秀瑶族自治县",region_level:3,children:[]},{code:"451381",name:"合山市",region_level:3,children:[]}]},{code:"4514",name:"崇左市",region_level:2,children:[{code:"451402",name:"江州区",region_level:3,children:[]},{code:"451421",name:"扶绥县",region_level:3,children:[]},{code:"451422",name:"宁明县",region_level:3,children:[]},{code:"451423",name:"龙州县",region_level:3,children:[]},{code:"451424",name:"大新县",region_level:3,children:[]},{code:"451425",name:"天等县",region_level:3,children:[]},{code:"451481",name:"凭祥市",region_level:3,children:[]}]}]},{code:"46",name:"海南省",region_level:1,children:[{code:"4601",name:"海口市",region_level:2,children:[{code:"460105",name:"秀英区",region_level:3,children:[]},{code:"460106",name:"龙华区",region_level:3,children:[]},{code:"460107",name:"琼山区",region_level:3,children:[]},{code:"460108",name:"美兰区",region_level:3,children:[]}]},{code:"4602",name:"三亚市",region_level:2,children:[{code:"460202",name:"海棠区",region_level:3,children:[]},{code:"460203",name:"吉阳区",region_level:3,children:[]},{code:"460204",name:"天涯区",region_level:3,children:[]},{code:"460205",name:"崖州区",region_level:3,children:[]}]},{code:"4603",name:"三沙市",region_level:2,children:[{code:"460300",name:"三沙市",region_level:3,children:[]}]},{code:"4604",name:"儋州市",region_level:2,children:[{code:"460400",name:"儋州市",region_level:3,children:[]}]},{code:"4690",name:"省直辖县级行政区",region_level:2,children:[{code:"469001",name:"五指山市",region_level:3,children:[]},{code:"469002",name:"琼海市",region_level:3,children:[]},{code:"469005",name:"文昌市",region_level:3,children:[]},{code:"469006",name:"万宁市",region_level:3,children:[]},{code:"469007",name:"东方市",region_level:3,children:[]},{code:"469021",name:"定安县",region_level:3,children:[]},{code:"469022",name:"屯昌县",region_level:3,children:[]},{code:"469023",name:"澄迈县",region_level:3,children:[]},{code:"469024",name:"临高县",region_level:3,children:[]},{code:"469025",name:"白沙黎族自治县",region_level:3,children:[]},{code:"469026",name:"昌江黎族自治县",region_level:3,children:[]},{code:"469027",name:"乐东黎族自治县",region_level:3,children:[]},{code:"469028",name:"陵水黎族自治县",region_level:3,children:[]},{code:"469029",name:"保亭黎族苗族自治县",region_level:3,children:[]},{code:"469030",name:"琼中黎族苗族自治县",region_level:3,children:[]}]}]},{code:"50",name:"重庆市",region_level:1,children:[{code:"5001",name:"重庆市",region_level:2,children:[{code:"500101",name:"万州区",region_level:3,children:[]},{code:"500102",name:"涪陵区",region_level:3,children:[]},{code:"500103",name:"渝中区",region_level:3,children:[]},{code:"500104",name:"大渡口区",region_level:3,children:[]},{code:"500105",name:"江北区",region_level:3,children:[]},{code:"500106",name:"沙坪坝区",region_level:3,children:[]},{code:"500107",name:"九龙坡区",region_level:3,children:[]},{code:"500108",name:"南岸区",region_level:3,children:[]},{code:"500109",name:"北碚区",region_level:3,children:[]},{code:"500110",name:"綦江区",region_level:3,children:[]},{code:"500111",name:"大足区",region_level:3,children:[]},{code:"500112",name:"渝北区",region_level:3,children:[]},{code:"500113",name:"巴南区",region_level:3,children:[]},{code:"500114",name:"黔江区",region_level:3,children:[]},{code:"500115",name:"长寿区",region_level:3,children:[]},{code:"500116",name:"江津区",region_level:3,children:[]},{code:"500117",name:"合川区",region_level:3,children:[]},{code:"500118",name:"永川区",region_level:3,children:[]},{code:"500119",name:"南川区",region_level:3,children:[]},{code:"500120",name:"璧山区",region_level:3,children:[]},{code:"500151",name:"铜梁区",region_level:3,children:[]},{code:"500152",name:"潼南区",region_level:3,children:[]},{code:"500153",name:"荣昌区",region_level:3,children:[]},{code:"500154",name:"开州区",region_level:3,children:[]},{code:"500155",name:"梁平区",region_level:3,children:[]},{code:"500156",name:"武隆区",region_level:3,children:[]}]},{code:"5002",name:"重庆市",region_level:2,children:[{code:"500229",name:"城口县",region_level:3,children:[]},{code:"500230",name:"丰都县",region_level:3,children:[]},{code:"500231",name:"垫江县",region_level:3,children:[]},{code:"500233",name:"忠县",region_level:3,children:[]},{code:"500235",name:"云阳县",region_level:3,children:[]},{code:"500236",name:"奉节县",region_level:3,children:[]},{code:"500237",name:"巫山县",region_level:3,children:[]},{code:"500238",name:"巫溪县",region_level:3,children:[]},{code:"500240",name:"石柱土家族自治县",region_level:3,children:[]},{code:"500241",name:"秀山土家族苗族自治县",region_level:3,children:[]},{code:"500242",name:"酉阳土家族苗族自治县",region_level:3,children:[]},{code:"500243",name:"彭水苗族土家族自治县",region_level:3,children:[]}]}]},{code:"51",name:"四川省",region_level:1,children:[{code:"5101",name:"成都市",region_level:2,children:[{code:"510104",name:"锦江区",region_level:3,children:[]},{code:"510105",name:"青羊区",region_level:3,children:[]},{code:"510106",name:"金牛区",region_level:3,children:[]},{code:"510107",name:"武侯区",region_level:3,children:[]},{code:"510108",name:"成华区",region_level:3,children:[]},{code:"510112",name:"龙泉驿区",region_level:3,children:[]},{code:"510113",name:"青白江区",region_level:3,children:[]},{code:"510114",name:"新都区",region_level:3,children:[]},{code:"510115",name:"温江区",region_level:3,children:[]},{code:"510116",name:"双流区",region_level:3,children:[]},{code:"510117",name:"郫都区",region_level:3,children:[]},{code:"510121",name:"金堂县",region_level:3,children:[]},{code:"510129",name:"大邑县",region_level:3,children:[]},{code:"510131",name:"蒲江县",region_level:3,children:[]},{code:"510132",name:"新津县",region_level:3,children:[]},{code:"510181",name:"都江堰市",region_level:3,children:[]},{code:"510182",name:"彭州市",region_level:3,children:[]},{code:"510183",name:"邛崃市",region_level:3,children:[]},{code:"510184",name:"崇州市",region_level:3,children:[]},{code:"510185",name:"简阳市",region_level:3,children:[]}]},{code:"5103",name:"自贡市",region_level:2,children:[{code:"510302",name:"自流井区",region_level:3,children:[]},{code:"510303",name:"贡井区",region_level:3,children:[]},{code:"510304",name:"大安区",region_level:3,children:[]},{code:"510311",name:"沿滩区",region_level:3,children:[]},{code:"510321",name:"荣县",region_level:3,children:[]},{code:"510322",name:"富顺县",region_level:3,children:[]}]},{code:"5104",name:"攀枝花市",region_level:2,children:[{code:"510402",name:"东区",region_level:3,children:[]},{code:"510403",name:"西区",region_level:3,children:[]},{code:"510411",name:"仁和区",region_level:3,children:[]},{code:"510421",name:"米易县",region_level:3,children:[]},{code:"510422",name:"盐边县",region_level:3,children:[]}]},{code:"5105",name:"泸州市",region_level:2,children:[{code:"510502",name:"江阳区",region_level:3,children:[]},{code:"510503",name:"纳溪区",region_level:3,children:[]},{code:"510504",name:"龙马潭区",region_level:3,children:[]},{code:"510521",name:"泸县",region_level:3,children:[]},{code:"510522",name:"合江县",region_level:3,children:[]},{code:"510524",name:"叙永县",region_level:3,children:[]},{code:"510525",name:"古蔺县",region_level:3,children:[]}]},{code:"5106",name:"德阳市",region_level:2,children:[{code:"510603",name:"旌阳区",region_level:3,children:[]},{code:"510604",name:"罗江区",region_level:3,children:[]},{code:"510623",name:"中江县",region_level:3,children:[]},{code:"510681",name:"广汉市",region_level:3,children:[]},{code:"510682",name:"什邡市",region_level:3,children:[]},{code:"510683",name:"绵竹市",region_level:3,children:[]}]},{code:"5107",name:"绵阳市",region_level:2,children:[{code:"510703",name:"涪城区",region_level:3,children:[]},{code:"510704",name:"游仙区",region_level:3,children:[]},{code:"510705",name:"安州区",region_level:3,children:[]},{code:"510722",name:"三台县",region_level:3,children:[]},{code:"510723",name:"盐亭县",region_level:3,children:[]},{code:"510725",name:"梓潼县",region_level:3,children:[]},{code:"510726",name:"北川羌族自治县",region_level:3,children:[]},{code:"510727",name:"平武县",region_level:3,children:[]},{code:"510781",name:"江油市",region_level:3,children:[]}]},{code:"5108",name:"广元市",region_level:2,children:[{code:"510802",name:"利州区",region_level:3,children:[]},{code:"510811",name:"昭化区",region_level:3,children:[]},{code:"510812",name:"朝天区",region_level:3,children:[]},{code:"510821",name:"旺苍县",region_level:3,children:[]},{code:"510822",name:"青川县",region_level:3,children:[]},{code:"510823",name:"剑阁县",region_level:3,children:[]},{code:"510824",name:"苍溪县",region_level:3,children:[]}]},{code:"5109",name:"遂宁市",region_level:2,children:[{code:"510903",name:"船山区",region_level:3,children:[]},{code:"510904",name:"安居区",region_level:3,children:[]},{code:"510921",name:"蓬溪县",region_level:3,children:[]},{code:"510923",name:"大英县",region_level:3,children:[]},{code:"510981",name:"射洪市",region_level:3,children:[]}]},{code:"5110",name:"内江市",region_level:2,children:[{code:"511002",name:"市中区",region_level:3,children:[]},{code:"511011",name:"东兴区",region_level:3,children:[]},{code:"511024",name:"威远县",region_level:3,children:[]},{code:"511025",name:"资中县",region_level:3,children:[]},{code:"511083",name:"隆昌市",region_level:3,children:[]}]},{code:"5111",name:"乐山市",region_level:2,children:[{code:"511102",name:"市中区",region_level:3,children:[]},{code:"511111",name:"沙湾区",region_level:3,children:[]},{code:"511112",name:"五通桥区",region_level:3,children:[]},{code:"511113",name:"金口河区",region_level:3,children:[]},{code:"511123",name:"犍为县",region_level:3,children:[]},{code:"511124",name:"井研县",region_level:3,children:[]},{code:"511126",name:"夹江县",region_level:3,children:[]},{code:"511129",name:"沐川县",region_level:3,children:[]},{code:"511132",name:"峨边彝族自治县",region_level:3,children:[]},{code:"511133",name:"马边彝族自治县",region_level:3,children:[]},{code:"511181",name:"峨眉山市",region_level:3,children:[]}]},{code:"5113",name:"南充市",region_level:2,children:[{code:"511302",name:"顺庆区",region_level:3,children:[]},{code:"511303",name:"高坪区",region_level:3,children:[]},{code:"511304",name:"嘉陵区",region_level:3,children:[]},{code:"511321",name:"南部县",region_level:3,children:[]},{code:"511322",name:"营山县",region_level:3,children:[]},{code:"511323",name:"蓬安县",region_level:3,children:[]},{code:"511324",name:"仪陇县",region_level:3,children:[]},{code:"511325",name:"西充县",region_level:3,children:[]},{code:"511381",name:"阆中市",region_level:3,children:[]}]},{code:"5114",name:"眉山市",region_level:2,children:[{code:"511402",name:"东坡区",region_level:3,children:[]},{code:"511403",name:"彭山区",region_level:3,children:[]},{code:"511421",name:"仁寿县",region_level:3,children:[]},{code:"511423",name:"洪雅县",region_level:3,children:[]},{code:"511424",name:"丹棱县",region_level:3,children:[]},{code:"511425",name:"青神县",region_level:3,children:[]}]},{code:"5115",name:"宜宾市",region_level:2,children:[{code:"511502",name:"翠屏区",region_level:3,children:[]},{code:"511503",name:"南溪区",region_level:3,children:[]},{code:"511504",name:"叙州区",region_level:3,children:[]},{code:"511523",name:"江安县",region_level:3,children:[]},{code:"511524",name:"长宁县",region_level:3,children:[]},{code:"511525",name:"高县",region_level:3,children:[]},{code:"511526",name:"珙县",region_level:3,children:[]},{code:"511527",name:"筠连县",region_level:3,children:[]},{code:"511528",name:"兴文县",region_level:3,children:[]},{code:"511529",name:"屏山县",region_level:3,children:[]}]},{code:"5116",name:"广安市",region_level:2,children:[{code:"511602",name:"广安区",region_level:3,children:[]},{code:"511603",name:"前锋区",region_level:3,children:[]},{code:"511621",name:"岳池县",region_level:3,children:[]},{code:"511622",name:"武胜县",region_level:3,children:[]},{code:"511623",name:"邻水县",region_level:3,children:[]},{code:"511681",name:"华蓥市",region_level:3,children:[]}]},{code:"5117",name:"达州市",region_level:2,children:[{code:"511702",name:"通川区",region_level:3,children:[]},{code:"511703",name:"达川区",region_level:3,children:[]},{code:"511722",name:"宣汉县",region_level:3,children:[]},{code:"511723",name:"开江县",region_level:3,children:[]},{code:"511724",name:"大竹县",region_level:3,children:[]},{code:"511725",name:"渠县",region_level:3,children:[]},{code:"511781",name:"万源市",region_level:3,children:[]}]},{code:"5118",name:"雅安市",region_level:2,children:[{code:"511802",name:"雨城区",region_level:3,children:[]},{code:"511803",name:"名山区",region_level:3,children:[]},{code:"511822",name:"荥经县",region_level:3,children:[]},{code:"511823",name:"汉源县",region_level:3,children:[]},{code:"511824",name:"石棉县",region_level:3,children:[]},{code:"511825",name:"天全县",region_level:3,children:[]},{code:"511826",name:"芦山县",region_level:3,children:[]},{code:"511827",name:"宝兴县",region_level:3,children:[]}]},{code:"5119",name:"巴中市",region_level:2,children:[{code:"511902",name:"巴州区",region_level:3,children:[]},{code:"511903",name:"恩阳区",region_level:3,children:[]},{code:"511921",name:"通江县",region_level:3,children:[]},{code:"511922",name:"南江县",region_level:3,children:[]},{code:"511923",name:"平昌县",region_level:3,children:[]}]},{code:"5120",name:"资阳市",region_level:2,children:[{code:"512002",name:"雁江区",region_level:3,children:[]},{code:"512021",name:"安岳县",region_level:3,children:[]},{code:"512022",name:"乐至县",region_level:3,children:[]}]},{code:"5132",name:"阿坝藏族羌族自治州",region_level:2,children:[{code:"513201",name:"马尔康市",region_level:3,children:[]},{code:"513221",name:"汶川县",region_level:3,children:[]},{code:"513222",name:"理县",region_level:3,children:[]},{code:"513223",name:"茂县",region_level:3,children:[]},{code:"513224",name:"松潘县",region_level:3,children:[]},{code:"513225",name:"九寨沟县",region_level:3,children:[]},{code:"513226",name:"金川县",region_level:3,children:[]},{code:"513227",name:"小金县",region_level:3,children:[]},{code:"513228",name:"黑水县",region_level:3,children:[]},{code:"513230",name:"壤塘县",region_level:3,children:[]},{code:"513231",name:"阿坝县",region_level:3,children:[]},{code:"513232",name:"若尔盖县",region_level:3,children:[]},{code:"513233",name:"红原县",region_level:3,children:[]}]},{code:"5133",name:"甘孜藏族自治州",region_level:2,children:[{code:"513301",name:"康定市",region_level:3,children:[]},{code:"513322",name:"泸定县",region_level:3,children:[]},{code:"513323",name:"丹巴县",region_level:3,children:[]},{code:"513324",name:"九龙县",region_level:3,children:[]},{code:"513325",name:"雅江县",region_level:3,children:[]},{code:"513326",name:"道孚县",region_level:3,children:[]},{code:"513327",name:"炉霍县",region_level:3,children:[]},{code:"513328",name:"甘孜县",region_level:3,children:[]},{code:"513329",name:"新龙县",region_level:3,children:[]},{code:"513330",name:"德格县",region_level:3,children:[]},{code:"513331",name:"白玉县",region_level:3,children:[]},{code:"513332",name:"石渠县",region_level:3,children:[]},{code:"513333",name:"色达县",region_level:3,children:[]},{code:"513334",name:"理塘县",region_level:3,children:[]},{code:"513335",name:"巴塘县",region_level:3,children:[]},{code:"513336",name:"乡城县",region_level:3,children:[]},{code:"513337",name:"稻城县",region_level:3,children:[]},{code:"513338",name:"得荣县",region_level:3,children:[]}]},{code:"5134",name:"凉山彝族自治州",region_level:2,children:[{code:"513401",name:"西昌市",region_level:3,children:[]},{code:"513422",name:"木里藏族自治县",region_level:3,children:[]},{code:"513423",name:"盐源县",region_level:3,children:[]},{code:"513424",name:"德昌县",region_level:3,children:[]},{code:"513425",name:"会理县",region_level:3,children:[]},{code:"513426",name:"会东县",region_level:3,children:[]},{code:"513427",name:"宁南县",region_level:3,children:[]},{code:"513428",name:"普格县",region_level:3,children:[]},{code:"513429",name:"布拖县",region_level:3,children:[]},{code:"513430",name:"金阳县",region_level:3,children:[]},{code:"513431",name:"昭觉县",region_level:3,children:[]},{code:"513432",name:"喜德县",region_level:3,children:[]},{code:"513433",name:"冕宁县",region_level:3,children:[]},{code:"513434",name:"越西县",region_level:3,children:[]},{code:"513435",name:"甘洛县",region_level:3,children:[]},{code:"513436",name:"美姑县",region_level:3,children:[]},{code:"513437",name:"雷波县",region_level:3,children:[]}]}]},{code:"52",name:"贵州省",region_level:1,children:[{code:"5201",name:"贵阳市",region_level:2,children:[{code:"520102",name:"南明区",region_level:3,children:[]},{code:"520103",name:"云岩区",region_level:3,children:[]},{code:"520111",name:"花溪区",region_level:3,children:[]},{code:"520112",name:"乌当区",region_level:3,children:[]},{code:"520113",name:"白云区",region_level:3,children:[]},{code:"520115",name:"观山湖区",region_level:3,children:[]},{code:"520121",name:"开阳县",region_level:3,children:[]},{code:"520122",name:"息烽县",region_level:3,children:[]},{code:"520123",name:"修文县",region_level:3,children:[]},{code:"520181",name:"清镇市",region_level:3,children:[]}]},{code:"5202",name:"六盘水市",region_level:2,children:[{code:"520201",name:"钟山区",region_level:3,children:[]},{code:"520203",name:"六枝特区",region_level:3,children:[]},{code:"520221",name:"水城县",region_level:3,children:[]},{code:"520281",name:"盘州市",region_level:3,children:[]}]},{code:"5203",name:"遵义市",region_level:2,children:[{code:"520302",name:"红花岗区",region_level:3,children:[]},{code:"520303",name:"汇川区",region_level:3,children:[]},{code:"520304",name:"播州区",region_level:3,children:[]},{code:"520322",name:"桐梓县",region_level:3,children:[]},{code:"520323",name:"绥阳县",region_level:3,children:[]},{code:"520324",name:"正安县",region_level:3,children:[]},{code:"520325",name:"道真仡佬族苗族自治县",region_level:3,children:[]},{code:"520326",name:"务川仡佬族苗族自治县",region_level:3,children:[]},{code:"520327",name:"凤冈县",region_level:3,children:[]},{code:"520328",name:"湄潭县",region_level:3,children:[]},{code:"520329",name:"余庆县",region_level:3,children:[]},{code:"520330",name:"习水县",region_level:3,children:[]},{code:"520381",name:"赤水市",region_level:3,children:[]},{code:"520382",name:"仁怀市",region_level:3,children:[]}]},{code:"5204",name:"安顺市",region_level:2,children:[{code:"520402",name:"西秀区",region_level:3,children:[]},{code:"520403",name:"平坝区",region_level:3,children:[]},{code:"520422",name:"普定县",region_level:3,children:[]},{code:"520423",name:"镇宁布依族苗族自治县",region_level:3,children:[]},{code:"520424",name:"关岭布依族苗族自治县",region_level:3,children:[]},{code:"520425",name:"紫云苗族布依族自治县",region_level:3,children:[]}]},{code:"5205",name:"毕节市",region_level:2,children:[{code:"520502",name:"七星关区",region_level:3,children:[]},{code:"520521",name:"大方县",region_level:3,children:[]},{code:"520522",name:"黔西县",region_level:3,children:[]},{code:"520523",name:"金沙县",region_level:3,children:[]},{code:"520524",name:"织金县",region_level:3,children:[]},{code:"520525",name:"纳雍县",region_level:3,children:[]},{code:"520526",name:"威宁彝族回族苗族自治县",region_level:3,children:[]},{code:"520527",name:"赫章县",region_level:3,children:[]}]},{code:"5206",name:"铜仁市",region_level:2,children:[{code:"520602",name:"碧江区",region_level:3,children:[]},{code:"520603",name:"万山区",region_level:3,children:[]},{code:"520621",name:"江口县",region_level:3,children:[]},{code:"520622",name:"玉屏侗族自治县",region_level:3,children:[]},{code:"520623",name:"石阡县",region_level:3,children:[]},{code:"520624",name:"思南县",region_level:3,children:[]},{code:"520625",name:"印江土家族苗族自治县",region_level:3,children:[]},{code:"520626",name:"德江县",region_level:3,children:[]},{code:"520627",name:"沿河土家族自治县",region_level:3,children:[]},{code:"520628",name:"松桃苗族自治县",region_level:3,children:[]}]},{code:"5223",name:"黔西南布依族苗族自治州",region_level:2,children:[{code:"522301",name:"兴义市",region_level:3,children:[]},{code:"522302",name:"兴仁市",region_level:3,children:[]},{code:"522323",name:"普安县",region_level:3,children:[]},{code:"522324",name:"晴隆县",region_level:3,children:[]},{code:"522325",name:"贞丰县",region_level:3,children:[]},{code:"522326",name:"望谟县",region_level:3,children:[]},{code:"522327",name:"册亨县",region_level:3,children:[]},{code:"522328",name:"安龙县",region_level:3,children:[]}]},{code:"5226",name:"黔东南苗族侗族自治州",region_level:2,children:[{code:"522601",name:"凯里市",region_level:3,children:[]},{code:"522622",name:"黄平县",region_level:3,children:[]},{code:"522623",name:"施秉县",region_level:3,children:[]},{code:"522624",name:"三穗县",region_level:3,children:[]},{code:"522625",name:"镇远县",region_level:3,children:[]},{code:"522626",name:"岑巩县",region_level:3,children:[]},{code:"522627",name:"天柱县",region_level:3,children:[]},{code:"522628",name:"锦屏县",region_level:3,children:[]},{code:"522629",name:"剑河县",region_level:3,children:[]},{code:"522630",name:"台江县",region_level:3,children:[]},{code:"522631",name:"黎平县",region_level:3,children:[]},{code:"522632",name:"榕江县",region_level:3,children:[]},{code:"522633",name:"从江县",region_level:3,children:[]},{code:"522634",name:"雷山县",region_level:3,children:[]},{code:"522635",name:"麻江县",region_level:3,children:[]},{code:"522636",name:"丹寨县",region_level:3,children:[]}]},{code:"5227",name:"黔南布依族苗族自治州",region_level:2,children:[{code:"522701",name:"都匀市",region_level:3,children:[]},{code:"522702",name:"福泉市",region_level:3,children:[]},{code:"522722",name:"荔波县",region_level:3,children:[]},{code:"522723",name:"贵定县",region_level:3,children:[]},{code:"522725",name:"瓮安县",region_level:3,children:[]},{code:"522726",name:"独山县",region_level:3,children:[]},{code:"522727",name:"平塘县",region_level:3,children:[]},{code:"522728",name:"罗甸县",region_level:3,children:[]},{code:"522729",name:"长顺县",region_level:3,children:[]},{code:"522730",name:"龙里县",region_level:3,children:[]},{code:"522731",name:"惠水县",region_level:3,children:[]},{code:"522732",name:"三都水族自治县",region_level:3,children:[]}]}]},{code:"53",name:"云南省",region_level:1,children:[{code:"5301",name:"昆明市",region_level:2,children:[{code:"530102",name:"五华区",region_level:3,children:[]},{code:"530103",name:"盘龙区",region_level:3,children:[]},{code:"530111",name:"官渡区",region_level:3,children:[]},{code:"530112",name:"西山区",region_level:3,children:[]},{code:"530113",name:"东川区",region_level:3,children:[]},{code:"530114",name:"呈贡区",region_level:3,children:[]},{code:"530115",name:"晋宁区",region_level:3,children:[]},{code:"530124",name:"富民县",region_level:3,children:[]},{code:"530125",name:"宜良县",region_level:3,children:[]},{code:"530126",name:"石林彝族自治县",region_level:3,children:[]},{code:"530127",name:"嵩明县",region_level:3,children:[]},{code:"530128",name:"禄劝彝族苗族自治县",region_level:3,children:[]},{code:"530129",name:"寻甸回族彝族自治县",region_level:3,children:[]},{code:"530181",name:"安宁市",region_level:3,children:[]}]},{code:"5303",name:"曲靖市",region_level:2,children:[{code:"530302",name:"麒麟区",region_level:3,children:[]},{code:"530303",name:"沾益区",region_level:3,children:[]},{code:"530304",name:"马龙区",region_level:3,children:[]},{code:"530322",name:"陆良县",region_level:3,children:[]},{code:"530323",name:"师宗县",region_level:3,children:[]},{code:"530324",name:"罗平县",region_level:3,children:[]},{code:"530325",name:"富源县",region_level:3,children:[]},{code:"530326",name:"会泽县",region_level:3,children:[]},{code:"530381",name:"宣威市",region_level:3,children:[]}]},{code:"5304",name:"玉溪市",region_level:2,children:[{code:"530402",name:"红塔区",region_level:3,children:[]},{code:"530403",name:"江川区",region_level:3,children:[]},{code:"530423",name:"通海县",region_level:3,children:[]},{code:"530424",name:"华宁县",region_level:3,children:[]},{code:"530425",name:"易门县",region_level:3,children:[]},{code:"530426",name:"峨山彝族自治县",region_level:3,children:[]},{code:"530427",name:"新平彝族傣族自治县",region_level:3,children:[]},{code:"530428",name:"元江哈尼族彝族傣族自治县",region_level:3,children:[]},{code:"530481",name:"澄江市",region_level:3,children:[]}]},{code:"5305",name:"保山市",region_level:2,children:[{code:"530502",name:"隆阳区",region_level:3,children:[]},{code:"530521",name:"施甸县",region_level:3,children:[]},{code:"530523",name:"龙陵县",region_level:3,children:[]},{code:"530524",name:"昌宁县",region_level:3,children:[]},{code:"530581",name:"腾冲市",region_level:3,children:[]}]},{code:"5306",name:"昭通市",region_level:2,children:[{code:"530602",name:"昭阳区",region_level:3,children:[]},{code:"530621",name:"鲁甸县",region_level:3,children:[]},{code:"530622",name:"巧家县",region_level:3,children:[]},{code:"530623",name:"盐津县",region_level:3,children:[]},{code:"530624",name:"大关县",region_level:3,children:[]},{code:"530625",name:"永善县",region_level:3,children:[]},{code:"530626",name:"绥江县",region_level:3,children:[]},{code:"530627",name:"镇雄县",region_level:3,children:[]},{code:"530628",name:"彝良县",region_level:3,children:[]},{code:"530629",name:"威信县",region_level:3,children:[]},{code:"530681",name:"水富市",region_level:3,children:[]}]},{code:"5307",name:"丽江市",region_level:2,children:[{code:"530702",name:"古城区",region_level:3,children:[]},{code:"530721",name:"玉龙纳西族自治县",region_level:3,children:[]},{code:"530722",name:"永胜县",region_level:3,children:[]},{code:"530723",name:"华坪县",region_level:3,children:[]},{code:"530724",name:"宁蒗彝族自治县",region_level:3,children:[]}]},{code:"5308",name:"普洱市",region_level:2,children:[{code:"530802",name:"思茅区",region_level:3,children:[]},{code:"530821",name:"宁洱哈尼族彝族自治县",region_level:3,children:[]},{code:"530822",name:"墨江哈尼族自治县",region_level:3,children:[]},{code:"530823",name:"景东彝族自治县",region_level:3,children:[]},{code:"530824",name:"景谷傣族彝族自治县",region_level:3,children:[]},{code:"530825",name:"镇沅彝族哈尼族拉祜族自治县",region_level:3,children:[]},{code:"530826",name:"江城哈尼族彝族自治县",region_level:3,children:[]},{code:"530827",name:"孟连傣族拉祜族佤族自治县",region_level:3,children:[]},{code:"530828",name:"澜沧拉祜族自治县",region_level:3,children:[]},{code:"530829",name:"西盟佤族自治县",region_level:3,children:[]}]},{code:"5309",name:"临沧市",region_level:2,children:[{code:"530902",name:"临翔区",region_level:3,children:[]},{code:"530921",name:"凤庆县",region_level:3,children:[]},{code:"530922",name:"云县",region_level:3,children:[]},{code:"530923",name:"永德县",region_level:3,children:[]},{code:"530924",name:"镇康县",region_level:3,children:[]},{code:"530925",name:"双江拉祜族佤族布朗族傣族自治县",region_level:3,children:[]},{code:"530926",name:"耿马傣族佤族自治县",region_level:3,children:[]},{code:"530927",name:"沧源佤族自治县",region_level:3,children:[]}]},{code:"5323",name:"楚雄彝族自治州",region_level:2,children:[{code:"532301",name:"楚雄市",region_level:3,children:[]},{code:"532322",name:"双柏县",region_level:3,children:[]},{code:"532323",name:"牟定县",region_level:3,children:[]},{code:"532324",name:"南华县",region_level:3,children:[]},{code:"532325",name:"姚安县",region_level:3,children:[]},{code:"532326",name:"大姚县",region_level:3,children:[]},{code:"532327",name:"永仁县",region_level:3,children:[]},{code:"532328",name:"元谋县",region_level:3,children:[]},{code:"532329",name:"武定县",region_level:3,children:[]},{code:"532331",name:"禄丰县",region_level:3,children:[]}]},{code:"5325",name:"红河哈尼族彝族自治州",region_level:2,children:[{code:"532501",name:"个旧市",region_level:3,children:[]},{code:"532502",name:"开远市",region_level:3,children:[]},{code:"532503",name:"蒙自市",region_level:3,children:[]},{code:"532504",name:"弥勒市",region_level:3,children:[]},{code:"532523",name:"屏边苗族自治县",region_level:3,children:[]},{code:"532524",name:"建水县",region_level:3,children:[]},{code:"532525",name:"石屏县",region_level:3,children:[]},{code:"532527",name:"泸西县",region_level:3,children:[]},{code:"532528",name:"元阳县",region_level:3,children:[]},{code:"532529",name:"红河县",region_level:3,children:[]},{code:"532530",name:"金平苗族瑶族傣族自治县",region_level:3,children:[]},{code:"532531",name:"绿春县",region_level:3,children:[]},{code:"532532",name:"河口瑶族自治县",region_level:3,children:[]}]},{code:"5326",name:"文山壮族苗族自治州",region_level:2,children:[{code:"532601",name:"文山市",region_level:3,children:[]},{code:"532622",name:"砚山县",region_level:3,children:[]},{code:"532623",name:"西畴县",region_level:3,children:[]},{code:"532624",name:"麻栗坡县",region_level:3,children:[]},{code:"532625",name:"马关县",region_level:3,children:[]},{code:"532626",name:"丘北县",region_level:3,children:[]},{code:"532627",name:"广南县",region_level:3,children:[]},{code:"532628",name:"富宁县",region_level:3,children:[]}]},{code:"5328",name:"西双版纳傣族自治州",region_level:2,children:[{code:"532801",name:"景洪市",region_level:3,children:[]},{code:"532822",name:"勐海县",region_level:3,children:[]},{code:"532823",name:"勐腊县",region_level:3,children:[]}]},{code:"5329",name:"大理白族自治州",region_level:2,children:[{code:"532901",name:"大理市",region_level:3,children:[]},{code:"532922",name:"漾濞彝族自治县",region_level:3,children:[]},{code:"532923",name:"祥云县",region_level:3,children:[]},{code:"532924",name:"宾川县",region_level:3,children:[]},{code:"532925",name:"弥渡县",region_level:3,children:[]},{code:"532926",name:"南涧彝族自治县",region_level:3,children:[]},{code:"532927",name:"巍山彝族回族自治县",region_level:3,children:[]},{code:"532928",name:"永平县",region_level:3,children:[]},{code:"532929",name:"云龙县",region_level:3,children:[]},{code:"532930",name:"洱源县",region_level:3,children:[]},{code:"532931",name:"剑川县",region_level:3,children:[]},{code:"532932",name:"鹤庆县",region_level:3,children:[]}]},{code:"5331",name:"德宏傣族景颇族自治州",region_level:2,children:[{code:"533102",name:"瑞丽市",region_level:3,children:[]},{code:"533103",name:"芒市",region_level:3,children:[]},{code:"533122",name:"梁河县",region_level:3,children:[]},{code:"533123",name:"盈江县",region_level:3,children:[]},{code:"533124",name:"陇川县",region_level:3,children:[]}]},{code:"5333",name:"怒江傈僳族自治州",region_level:2,children:[{code:"533301",name:"泸水市",region_level:3,children:[]},{code:"533323",name:"福贡县",region_level:3,children:[]},{code:"533324",name:"贡山独龙族怒族自治县",region_level:3,children:[]},{code:"533325",name:"兰坪白族普米族自治县",region_level:3,children:[]}]},{code:"5334",name:"迪庆藏族自治州",region_level:2,children:[{code:"533401",name:"香格里拉市",region_level:3,children:[]},{code:"533422",name:"德钦县",region_level:3,children:[]},{code:"533423",name:"维西傈僳族自治县",region_level:3,children:[]}]}]},{code:"54",name:"西藏自治区",region_level:1,children:[{code:"5401",name:"拉萨市",region_level:2,children:[{code:"540102",name:"城关区",region_level:3,children:[]},{code:"540103",name:"堆龙德庆区",region_level:3,children:[]},{code:"540104",name:"达孜区",region_level:3,children:[]},{code:"540121",name:"林周县",region_level:3,children:[]},{code:"540122",name:"当雄县",region_level:3,children:[]},{code:"540123",name:"尼木县",region_level:3,children:[]},{code:"540124",name:"曲水县",region_level:3,children:[]},{code:"540127",name:"墨竹工卡县",region_level:3,children:[]}]},{code:"5402",name:"日喀则市",region_level:2,children:[{code:"540202",name:"桑珠孜区",region_level:3,children:[]},{code:"540221",name:"南木林县",region_level:3,children:[]},{code:"540222",name:"江孜县",region_level:3,children:[]},{code:"540223",name:"定日县",region_level:3,children:[]},{code:"540224",name:"萨迦县",region_level:3,children:[]},{code:"540225",name:"拉孜县",region_level:3,children:[]},{code:"540226",name:"昂仁县",region_level:3,children:[]},{code:"540227",name:"谢通门县",region_level:3,children:[]},{code:"540228",name:"白朗县",region_level:3,children:[]},{code:"540229",name:"仁布县",region_level:3,children:[]},{code:"540230",name:"康马县",region_level:3,children:[]},{code:"540231",name:"定结县",region_level:3,children:[]},{code:"540232",name:"仲巴县",region_level:3,children:[]},{code:"540233",name:"亚东县",region_level:3,children:[]},{code:"540234",name:"吉隆县",region_level:3,children:[]},{code:"540235",name:"聂拉木县",region_level:3,children:[]},{code:"540236",name:"萨嘎县",region_level:3,children:[]},{code:"540237",name:"岗巴县",region_level:3,children:[]}]},{code:"5403",name:"昌都市",region_level:2,children:[{code:"540302",name:"卡若区",region_level:3,children:[]},{code:"540321",name:"江达县",region_level:3,children:[]},{code:"540322",name:"贡觉县",region_level:3,children:[]},{code:"540323",name:"类乌齐县",region_level:3,children:[]},{code:"540324",name:"丁青县",region_level:3,children:[]},{code:"540325",name:"察雅县",region_level:3,children:[]},{code:"540326",name:"八宿县",region_level:3,children:[]},{code:"540327",name:"左贡县",region_level:3,children:[]},{code:"540328",name:"芒康县",region_level:3,children:[]},{code:"540329",name:"洛隆县",region_level:3,children:[]},{code:"540330",name:"边坝县",region_level:3,children:[]}]},{code:"5404",name:"林芝市",region_level:2,children:[{code:"540402",name:"巴宜区",region_level:3,children:[]},{code:"540421",name:"工布江达县",region_level:3,children:[]},{code:"540422",name:"米林县",region_level:3,children:[]},{code:"540423",name:"墨脱县",region_level:3,children:[]},{code:"540424",name:"波密县",region_level:3,children:[]},{code:"540425",name:"察隅县",region_level:3,children:[]},{code:"540426",name:"朗县",region_level:3,children:[]}]},{code:"5405",name:"山南市",region_level:2,children:[{code:"540502",name:"乃东区",region_level:3,children:[]},{code:"540521",name:"扎囊县",region_level:3,children:[]},{code:"540522",name:"贡嘎县",region_level:3,children:[]},{code:"540523",name:"桑日县",region_level:3,children:[]},{code:"540524",name:"琼结县",region_level:3,children:[]},{code:"540525",name:"曲松县",region_level:3,children:[]},{code:"540526",name:"措美县",region_level:3,children:[]},{code:"540527",name:"洛扎县",region_level:3,children:[]},{code:"540528",name:"加查县",region_level:3,children:[]},{code:"540529",name:"隆子县",region_level:3,children:[]},{code:"540530",name:"错那县",region_level:3,children:[]},{code:"540531",name:"浪卡子县",region_level:3,children:[]}]},{code:"5406",name:"那曲市",region_level:2,children:[{code:"540602",name:"色尼区",region_level:3,children:[]},{code:"540621",name:"嘉黎县",region_level:3,children:[]},{code:"540622",name:"比如县",region_level:3,children:[]},{code:"540623",name:"聂荣县",region_level:3,children:[]},{code:"540624",name:"安多县",region_level:3,children:[]},{code:"540625",name:"申扎县",region_level:3,children:[]},{code:"540626",name:"索县",region_level:3,children:[]},{code:"540627",name:"班戈县",region_level:3,children:[]},{code:"540628",name:"巴青县",region_level:3,children:[]},{code:"540629",name:"尼玛县",region_level:3,children:[]},{code:"540630",name:"双湖县",region_level:3,children:[]}]},{code:"5425",name:"阿里地区",region_level:2,children:[{code:"542521",name:"普兰县",region_level:3,children:[]},{code:"542522",name:"札达县",region_level:3,children:[]},{code:"542523",name:"噶尔县",region_level:3,children:[]},{code:"542524",name:"日土县",region_level:3,children:[]},{code:"542525",name:"革吉县",region_level:3,children:[]},{code:"542526",name:"改则县",region_level:3,children:[]},{code:"542527",name:"措勤县",region_level:3,children:[]}]}]},{code:"61",name:"陕西省",region_level:1,children:[{code:"6101",name:"西安市",region_level:2,children:[{code:"610102",name:"新城区",region_level:3,children:[]},{code:"610103",name:"碑林区",region_level:3,children:[]},{code:"610104",name:"莲湖区",region_level:3,children:[]},{code:"610111",name:"灞桥区",region_level:3,children:[]},{code:"610112",name:"未央区",region_level:3,children:[]},{code:"610113",name:"雁塔区",region_level:3,children:[]},{code:"610114",name:"阎良区",region_level:3,children:[]},{code:"610115",name:"临潼区",region_level:3,children:[]},{code:"610116",name:"长安区",region_level:3,children:[]},{code:"610117",name:"高陵区",region_level:3,children:[]},{code:"610118",name:"鄠邑区",region_level:3,children:[]},{code:"610122",name:"蓝田县",region_level:3,children:[]},{code:"610124",name:"周至县",region_level:3,children:[]}]},{code:"6102",name:"铜川市",region_level:2,children:[{code:"610202",name:"王益区",region_level:3,children:[]},{code:"610203",name:"印台区",region_level:3,children:[]},{code:"610204",name:"耀州区",region_level:3,children:[]},{code:"610222",name:"宜君县",region_level:3,children:[]}]},{code:"6103",name:"宝鸡市",region_level:2,children:[{code:"610302",name:"渭滨区",region_level:3,children:[]},{code:"610303",name:"金台区",region_level:3,children:[]},{code:"610304",name:"陈仓区",region_level:3,children:[]},{code:"610322",name:"凤翔县",region_level:3,children:[]},{code:"610323",name:"岐山县",region_level:3,children:[]},{code:"610324",name:"扶风县",region_level:3,children:[]},{code:"610326",name:"眉县",region_level:3,children:[]},{code:"610327",name:"陇县",region_level:3,children:[]},{code:"610328",name:"千阳县",region_level:3,children:[]},{code:"610329",name:"麟游县",region_level:3,children:[]},{code:"610330",name:"凤县",region_level:3,children:[]},{code:"610331",name:"太白县",region_level:3,children:[]}]},{code:"6104",name:"咸阳市",region_level:2,children:[{code:"610402",name:"秦都区",region_level:3,children:[]},{code:"610403",name:"杨陵区",region_level:3,children:[]},{code:"610404",name:"渭城区",region_level:3,children:[]},{code:"610422",name:"三原县",region_level:3,children:[]},{code:"610423",name:"泾阳县",region_level:3,children:[]},{code:"610424",name:"乾县",region_level:3,children:[]},{code:"610425",name:"礼泉县",region_level:3,children:[]},{code:"610426",name:"永寿县",region_level:3,children:[]},{code:"610428",name:"长武县",region_level:3,children:[]},{code:"610429",name:"旬邑县",region_level:3,children:[]},{code:"610430",name:"淳化县",region_level:3,children:[]},{code:"610431",name:"武功县",region_level:3,children:[]},{code:"610481",name:"兴平市",region_level:3,children:[]},{code:"610482",name:"彬州市",region_level:3,children:[]}]},{code:"6105",name:"渭南市",region_level:2,children:[{code:"610502",name:"临渭区",region_level:3,children:[]},{code:"610503",name:"华州区",region_level:3,children:[]},{code:"610522",name:"潼关县",region_level:3,children:[]},{code:"610523",name:"大荔县",region_level:3,children:[]},{code:"610524",name:"合阳县",region_level:3,children:[]},{code:"610525",name:"澄城县",region_level:3,children:[]},{code:"610526",name:"蒲城县",region_level:3,children:[]},{code:"610527",name:"白水县",region_level:3,children:[]},{code:"610528",name:"富平县",region_level:3,children:[]},{code:"610581",name:"韩城市",region_level:3,children:[]},{code:"610582",name:"华阴市",region_level:3,children:[]}]},{code:"6106",name:"延安市",region_level:2,children:[{code:"610602",name:"宝塔区",region_level:3,children:[]},{code:"610603",name:"安塞区",region_level:3,children:[]},{code:"610621",name:"延长县",region_level:3,children:[]},{code:"610622",name:"延川县",region_level:3,children:[]},{code:"610625",name:"志丹县",region_level:3,children:[]},{code:"610626",name:"吴起县",region_level:3,children:[]},{code:"610627",name:"甘泉县",region_level:3,children:[]},{code:"610628",name:"富县",region_level:3,children:[]},{code:"610629",name:"洛川县",region_level:3,children:[]},{code:"610630",name:"宜川县",region_level:3,children:[]},{code:"610631",name:"黄龙县",region_level:3,children:[]},{code:"610632",name:"黄陵县",region_level:3,children:[]},{code:"610681",name:"子长市",region_level:3,children:[]}]},{code:"6107",name:"汉中市",region_level:2,children:[{code:"610702",name:"汉台区",region_level:3,children:[]},{code:"610703",name:"南郑区",region_level:3,children:[]},{code:"610722",name:"城固县",region_level:3,children:[]},{code:"610723",name:"洋县",region_level:3,children:[]},{code:"610724",name:"西乡县",region_level:3,children:[]},{code:"610725",name:"勉县",region_level:3,children:[]},{code:"610726",name:"宁强县",region_level:3,children:[]},{code:"610727",name:"略阳县",region_level:3,children:[]},{code:"610728",name:"镇巴县",region_level:3,children:[]},{code:"610729",name:"留坝县",region_level:3,children:[]},{code:"610730",name:"佛坪县",region_level:3,children:[]}]},{code:"6108",name:"榆林市",region_level:2,children:[{code:"610802",name:"榆阳区",region_level:3,children:[]},{code:"610803",name:"横山区",region_level:3,children:[]},{code:"610822",name:"府谷县",region_level:3,children:[]},{code:"610824",name:"靖边县",region_level:3,children:[]},{code:"610825",name:"定边县",region_level:3,children:[]},{code:"610826",name:"绥德县",region_level:3,children:[]},{code:"610827",name:"米脂县",region_level:3,children:[]},{code:"610828",name:"佳县",region_level:3,children:[]},{code:"610829",name:"吴堡县",region_level:3,children:[]},{code:"610830",name:"清涧县",region_level:3,children:[]},{code:"610831",name:"子洲县",region_level:3,children:[]},{code:"610881",name:"神木市",region_level:3,children:[]}]},{code:"6109",name:"安康市",region_level:2,children:[{code:"610902",name:"汉滨区",region_level:3,children:[]},{code:"610921",name:"汉阴县",region_level:3,children:[]},{code:"610922",name:"石泉县",region_level:3,children:[]},{code:"610923",name:"宁陕县",region_level:3,children:[]},{code:"610924",name:"紫阳县",region_level:3,children:[]},{code:"610925",name:"岚皋县",region_level:3,children:[]},{code:"610926",name:"平利县",region_level:3,children:[]},{code:"610927",name:"镇坪县",region_level:3,children:[]},{code:"610928",name:"旬阳县",region_level:3,children:[]},{code:"610929",name:"白河县",region_level:3,children:[]}]},{code:"6110",name:"商洛市",region_level:2,children:[{code:"611002",name:"商州区",region_level:3,children:[]},{code:"611021",name:"洛南县",region_level:3,children:[]},{code:"611022",name:"丹凤县",region_level:3,children:[]},{code:"611023",name:"商南县",region_level:3,children:[]},{code:"611024",name:"山阳县",region_level:3,children:[]},{code:"611025",name:"镇安县",region_level:3,children:[]},{code:"611026",name:"柞水县",region_level:3,children:[]}]}]},{code:"62",name:"甘肃省",region_level:1,children:[{code:"6201",name:"兰州市",region_level:2,children:[{code:"620102",name:"城关区",region_level:3,children:[]},{code:"620103",name:"七里河区",region_level:3,children:[]},{code:"620104",name:"西固区",region_level:3,children:[]},{code:"620105",name:"安宁区",region_level:3,children:[]},{code:"620111",name:"红古区",region_level:3,children:[]},{code:"620121",name:"永登县",region_level:3,children:[]},{code:"620122",name:"皋兰县",region_level:3,children:[]},{code:"620123",name:"榆中县",region_level:3,children:[]}]},{code:"6202",name:"嘉峪关市",region_level:2,children:[{code:"620200",name:"嘉峪关市",region_level:3,children:[]}]},{code:"6203",name:"金昌市",region_level:2,children:[{code:"620302",name:"金川区",region_level:3,children:[]},{code:"620321",name:"永昌县",region_level:3,children:[]}]},{code:"6204",name:"白银市",region_level:2,children:[{code:"620402",name:"白银区",region_level:3,children:[]},{code:"620403",name:"平川区",region_level:3,children:[]},{code:"620421",name:"靖远县",region_level:3,children:[]},{code:"620422",name:"会宁县",region_level:3,children:[]},{code:"620423",name:"景泰县",region_level:3,children:[]}]},{code:"6205",name:"天水市",region_level:2,children:[{code:"620502",name:"秦州区",region_level:3,children:[]},{code:"620503",name:"麦积区",region_level:3,children:[]},{code:"620521",name:"清水县",region_level:3,children:[]},{code:"620522",name:"秦安县",region_level:3,children:[]},{code:"620523",name:"甘谷县",region_level:3,children:[]},{code:"620524",name:"武山县",region_level:3,children:[]},{code:"620525",name:"张家川回族自治县",region_level:3,children:[]}]},{code:"6206",name:"武威市",region_level:2,children:[{code:"620602",name:"凉州区",region_level:3,children:[]},{code:"620621",name:"民勤县",region_level:3,children:[]},{code:"620622",name:"古浪县",region_level:3,children:[]},{code:"620623",name:"天祝藏族自治县",region_level:3,children:[]}]},{code:"6207",name:"张掖市",region_level:2,children:[{code:"620702",name:"甘州区",region_level:3,children:[]},{code:"620721",name:"肃南裕固族自治县",region_level:3,children:[]},{code:"620722",name:"民乐县",region_level:3,children:[]},{code:"620723",name:"临泽县",region_level:3,children:[]},{code:"620724",name:"高台县",region_level:3,children:[]},{code:"620725",name:"山丹县",region_level:3,children:[]}]},{code:"6208",name:"平凉市",region_level:2,children:[{code:"620802",name:"崆峒区",region_level:3,children:[]},{code:"620821",name:"泾川县",region_level:3,children:[]},{code:"620822",name:"灵台县",region_level:3,children:[]},{code:"620823",name:"崇信县",region_level:3,children:[]},{code:"620825",name:"庄浪县",region_level:3,children:[]},{code:"620826",name:"静宁县",region_level:3,children:[]},{code:"620881",name:"华亭市",region_level:3,children:[]}]},{code:"6209",name:"酒泉市",region_level:2,children:[{code:"620902",name:"肃州区",region_level:3,children:[]},{code:"620921",name:"金塔县",region_level:3,children:[]},{code:"620922",name:"瓜州县",region_level:3,children:[]},{code:"620923",name:"肃北蒙古族自治县",region_level:3,children:[]},{code:"620924",name:"阿克塞哈萨克族自治县",region_level:3,children:[]},{code:"620981",name:"玉门市",region_level:3,children:[]},{code:"620982",name:"敦煌市",region_level:3,children:[]}]},{code:"6210",name:"庆阳市",region_level:2,children:[{code:"621002",name:"西峰区",region_level:3,children:[]},{code:"621021",name:"庆城县",region_level:3,children:[]},{code:"621022",name:"环县",region_level:3,children:[]},{code:"621023",name:"华池县",region_level:3,children:[]},{code:"621024",name:"合水县",region_level:3,children:[]},{code:"621025",name:"正宁县",region_level:3,children:[]},{code:"621026",name:"宁县",region_level:3,children:[]},{code:"621027",name:"镇原县",region_level:3,children:[]}]},{code:"6211",name:"定西市",region_level:2,children:[{code:"621102",name:"安定区",region_level:3,children:[]},{code:"621121",name:"通渭县",region_level:3,children:[]},{code:"621122",name:"陇西县",region_level:3,children:[]},{code:"621123",name:"渭源县",region_level:3,children:[]},{code:"621124",name:"临洮县",region_level:3,children:[]},{code:"621125",name:"漳县",region_level:3,children:[]},{code:"621126",name:"岷县",region_level:3,children:[]}]},{code:"6212",name:"陇南市",region_level:2,children:[{code:"621202",name:"武都区",region_level:3,children:[]},{code:"621221",name:"成县",region_level:3,children:[]},{code:"621222",name:"文县",region_level:3,children:[]},{code:"621223",name:"宕昌县",region_level:3,children:[]},{code:"621224",name:"康县",region_level:3,children:[]},{code:"621225",name:"西和县",region_level:3,children:[]},{code:"621226",name:"礼县",region_level:3,children:[]},{code:"621227",name:"徽县",region_level:3,children:[]},{code:"621228",name:"两当县",region_level:3,children:[]}]},{code:"6229",name:"临夏回族自治州",region_level:2,children:[{code:"622901",name:"临夏市",region_level:3,children:[]},{code:"622921",name:"临夏县",region_level:3,children:[]},{code:"622922",name:"康乐县",region_level:3,children:[]},{code:"622923",name:"永靖县",region_level:3,children:[]},{code:"622924",name:"广河县",region_level:3,children:[]},{code:"622925",name:"和政县",region_level:3,children:[]},{code:"622926",name:"东乡族自治县",region_level:3,children:[]},{code:"622927",name:"积石山保安族东乡族撒拉族自治县",region_level:3,children:[]}]},{code:"6230",name:"甘南藏族自治州",region_level:2,children:[{code:"623001",name:"合作市",region_level:3,children:[]},{code:"623021",name:"临潭县",region_level:3,children:[]},{code:"623022",name:"卓尼县",region_level:3,children:[]},{code:"623023",name:"舟曲县",region_level:3,children:[]},{code:"623024",name:"迭部县",region_level:3,children:[]},{code:"623025",name:"玛曲县",region_level:3,children:[]},{code:"623026",name:"碌曲县",region_level:3,children:[]},{code:"623027",name:"夏河县",region_level:3,children:[]}]}]},{code:"63",name:"青海省",region_level:1,children:[{code:"6301",name:"西宁市",region_level:2,children:[{code:"630102",name:"城东区",region_level:3,children:[]},{code:"630103",name:"城中区",region_level:3,children:[]},{code:"630104",name:"城西区",region_level:3,children:[]},{code:"630105",name:"城北区",region_level:3,children:[]},{code:"630106",name:"湟中区",region_level:3,children:[]},{code:"630121",name:"大通回族土族自治县",region_level:3,children:[]},{code:"630123",name:"湟源县",region_level:3,children:[]}]},{code:"6302",name:"海东市",region_level:2,children:[{code:"630202",name:"乐都区",region_level:3,children:[]},{code:"630203",name:"平安区",region_level:3,children:[]},{code:"630222",name:"民和回族土族自治县",region_level:3,children:[]},{code:"630223",name:"互助土族自治县",region_level:3,children:[]},{code:"630224",name:"化隆回族自治县",region_level:3,children:[]},{code:"630225",name:"循化撒拉族自治县",region_level:3,children:[]}]},{code:"6322",name:"海北藏族自治州",region_level:2,children:[{code:"632221",name:"门源回族自治县",region_level:3,children:[]},{code:"632222",name:"祁连县",region_level:3,children:[]},{code:"632223",name:"海晏县",region_level:3,children:[]},{code:"632224",name:"刚察县",region_level:3,children:[]}]},{code:"6323",name:"黄南藏族自治州",region_level:2,children:[{code:"632321",name:"同仁县",region_level:3,children:[]},{code:"632322",name:"尖扎县",region_level:3,children:[]},{code:"632323",name:"泽库县",region_level:3,children:[]},{code:"632324",name:"河南蒙古族自治县",region_level:3,children:[]}]},{code:"6325",name:"海南藏族自治州",region_level:2,children:[{code:"632521",name:"共和县",region_level:3,children:[]},{code:"632522",name:"同德县",region_level:3,children:[]},{code:"632523",name:"贵德县",region_level:3,children:[]},{code:"632524",name:"兴海县",region_level:3,children:[]},{code:"632525",name:"贵南县",region_level:3,children:[]}]},{code:"6326",name:"果洛藏族自治州",region_level:2,children:[{code:"632621",name:"玛沁县",region_level:3,children:[]},{code:"632622",name:"班玛县",region_level:3,children:[]},{code:"632623",name:"甘德县",region_level:3,children:[]},{code:"632624",name:"达日县",region_level:3,children:[]},{code:"632625",name:"久治县",region_level:3,children:[]},{code:"632626",name:"玛多县",region_level:3,children:[]}]},{code:"6327",name:"玉树藏族自治州",region_level:2,children:[{code:"632701",name:"玉树市",region_level:3,children:[]},{code:"632722",name:"杂多县",region_level:3,children:[]},{code:"632723",name:"称多县",region_level:3,children:[]},{code:"632724",name:"治多县",region_level:3,children:[]},{code:"632725",name:"囊谦县",region_level:3,children:[]},{code:"632726",name:"曲麻莱县",region_level:3,children:[]}]},{code:"6328",name:"海西蒙古族藏族自治州",region_level:2,children:[{code:"632801",name:"格尔木市",region_level:3,children:[]},{code:"632802",name:"德令哈市",region_level:3,children:[]},{code:"632803",name:"茫崖市",region_level:3,children:[]},{code:"632821",name:"乌兰县",region_level:3,children:[]},{code:"632822",name:"都兰县",region_level:3,children:[]},{code:"632823",name:"天峻县",region_level:3,children:[]}]}]},{code:"64",name:"宁夏回族自治区",region_level:1,children:[{code:"6401",name:"银川市",region_level:2,children:[{code:"640104",name:"兴庆区",region_level:3,children:[]},{code:"640105",name:"西夏区",region_level:3,children:[]},{code:"640106",name:"金凤区",region_level:3,children:[]},{code:"640121",name:"永宁县",region_level:3,children:[]},{code:"640122",name:"贺兰县",region_level:3,children:[]},{code:"640181",name:"灵武市",region_level:3,children:[]}]},{code:"6402",name:"石嘴山市",region_level:2,children:[{code:"640202",name:"大武口区",region_level:3,children:[]},{code:"640205",name:"惠农区",region_level:3,children:[]},{code:"640221",name:"平罗县",region_level:3,children:[]}]},{code:"6403",name:"吴忠市",region_level:2,children:[{code:"640302",name:"利通区",region_level:3,children:[]},{code:"640303",name:"红寺堡区",region_level:3,children:[]},{code:"640323",name:"盐池县",region_level:3,children:[]},{code:"640324",name:"同心县",region_level:3,children:[]},{code:"640381",name:"青铜峡市",region_level:3,children:[]}]},{code:"6404",name:"固原市",region_level:2,children:[{code:"640402",name:"原州区",region_level:3,children:[]},{code:"640422",name:"西吉县",region_level:3,children:[]},{code:"640423",name:"隆德县",region_level:3,children:[]},{code:"640424",name:"泾源县",region_level:3,children:[]},{code:"640425",name:"彭阳县",region_level:3,children:[]}]},{code:"6405",name:"中卫市",region_level:2,children:[{code:"640502",name:"沙坡头区",region_level:3,children:[]},{code:"640521",name:"中宁县",region_level:3,children:[]},{code:"640522",name:"海原县",region_level:3,children:[]}]}]},{code:"65",name:"新疆维吾尔自治区",region_level:1,children:[{code:"6501",name:"乌鲁木齐市",region_level:2,children:[{code:"650102",name:"天山区",region_level:3,children:[]},{code:"650103",name:"沙依巴克区",region_level:3,children:[]},{code:"650104",name:"新市区",region_level:3,children:[]},{code:"650105",name:"水磨沟区",region_level:3,children:[]},{code:"650106",name:"头屯河区",region_level:3,children:[]},{code:"650107",name:"达坂城区",region_level:3,children:[]},{code:"650109",name:"米东区",region_level:3,children:[]},{code:"650121",name:"乌鲁木齐县",region_level:3,children:[]}]},{code:"6502",name:"克拉玛依市",region_level:2,children:[{code:"650202",name:"独山子区",region_level:3,children:[]},{code:"650203",name:"克拉玛依区",region_level:3,children:[]},{code:"650204",name:"白碱滩区",region_level:3,children:[]},{code:"650205",name:"乌尔禾区",region_level:3,children:[]}]},{code:"6504",name:"吐鲁番市",region_level:2,children:[{code:"650402",name:"高昌区",region_level:3,children:[]},{code:"650421",name:"鄯善县",region_level:3,children:[]},{code:"650422",name:"托克逊县",region_level:3,children:[]}]},{code:"6505",name:"哈密市",region_level:2,children:[{code:"650502",name:"伊州区",region_level:3,children:[]},{code:"650521",name:"巴里坤哈萨克自治县",region_level:3,children:[]},{code:"650522",name:"伊吾县",region_level:3,children:[]}]},{code:"6523",name:"昌吉回族自治州",region_level:2,children:[{code:"652301",name:"昌吉市",region_level:3,children:[]},{code:"652302",name:"阜康市",region_level:3,children:[]},{code:"652323",name:"呼图壁县",region_level:3,children:[]},{code:"652324",name:"玛纳斯县",region_level:3,children:[]},{code:"652325",name:"奇台县",region_level:3,children:[]},{code:"652327",name:"吉木萨尔县",region_level:3,children:[]},{code:"652328",name:"木垒哈萨克自治县",region_level:3,children:[]}]},{code:"6527",name:"博尔塔拉蒙古自治州",region_level:2,children:[{code:"652701",name:"博乐市",region_level:3,children:[]},{code:"652702",name:"阿拉山口市",region_level:3,children:[]},{code:"652722",name:"精河县",region_level:3,children:[]},{code:"652723",name:"温泉县",region_level:3,children:[]}]},{code:"6528",name:"巴音郭楞蒙古自治州",region_level:2,children:[{code:"652801",name:"库尔勒市",region_level:3,children:[]},{code:"652822",name:"轮台县",region_level:3,children:[]},{code:"652823",name:"尉犁县",region_level:3,children:[]},{code:"652824",name:"若羌县",region_level:3,children:[]},{code:"652825",name:"且末县",region_level:3,children:[]},{code:"652826",name:"焉耆回族自治县",region_level:3,children:[]},{code:"652827",name:"和静县",region_level:3,children:[]},{code:"652828",name:"和硕县",region_level:3,children:[]},{code:"652829",name:"博湖县",region_level:3,children:[]}]},{code:"6529",name:"阿克苏地区",region_level:2,children:[{code:"652901",name:"阿克苏市",region_level:3,children:[]},{code:"652902",name:"库车市",region_level:3,children:[]},{code:"652922",name:"温宿县",region_level:3,children:[]},{code:"652924",name:"沙雅县",region_level:3,children:[]},{code:"652925",name:"新和县",region_level:3,children:[]},{code:"652926",name:"拜城县",region_level:3,children:[]},{code:"652927",name:"乌什县",region_level:3,children:[]},{code:"652928",name:"阿瓦提县",region_level:3,children:[]},{code:"652929",name:"柯坪县",region_level:3,children:[]}]},{code:"6530",name:"克孜勒苏柯尔克孜自治州",region_level:2,children:[{code:"653001",name:"阿图什市",region_level:3,children:[]},{code:"653022",name:"阿克陶县",region_level:3,children:[]},{code:"653023",name:"阿合奇县",region_level:3,children:[]},{code:"653024",name:"乌恰县",region_level:3,children:[]}]},{code:"6531",name:"喀什地区",region_level:2,children:[{code:"653101",name:"喀什市",region_level:3,children:[]},{code:"653121",name:"疏附县",region_level:3,children:[]},{code:"653122",name:"疏勒县",region_level:3,children:[]},{code:"653123",name:"英吉沙县",region_level:3,children:[]},{code:"653124",name:"泽普县",region_level:3,children:[]},{code:"653125",name:"莎车县",region_level:3,children:[]},{code:"653126",name:"叶城县",region_level:3,children:[]},{code:"653127",name:"麦盖提县",region_level:3,children:[]},{code:"653128",name:"岳普湖县",region_level:3,children:[]},{code:"653129",name:"伽师县",region_level:3,children:[]},{code:"653130",name:"巴楚县",region_level:3,children:[]},{code:"653131",name:"塔什库尔干塔吉克自治县",region_level:3,children:[]}]},{code:"6532",name:"和田地区",region_level:2,children:[{code:"653201",name:"和田市",region_level:3,children:[]},{code:"653221",name:"和田县",region_level:3,children:[]},{code:"653222",name:"墨玉县",region_level:3,children:[]},{code:"653223",name:"皮山县",region_level:3,children:[]},{code:"653224",name:"洛浦县",region_level:3,children:[]},{code:"653225",name:"策勒县",region_level:3,children:[]},{code:"653226",name:"于田县",region_level:3,children:[]},{code:"653227",name:"民丰县",region_level:3,children:[]}]},{code:"6540",name:"伊犁哈萨克自治州",region_level:2,children:[{code:"654002",name:"伊宁市",region_level:3,children:[]},{code:"654003",name:"奎屯市",region_level:3,children:[]},{code:"654004",name:"霍尔果斯市",region_level:3,children:[]},{code:"654021",name:"伊宁县",region_level:3,children:[]},{code:"654022",name:"察布查尔锡伯自治县",region_level:3,children:[]},{code:"654023",name:"霍城县",region_level:3,children:[]},{code:"654024",name:"巩留县",region_level:3,children:[]},{code:"654025",name:"新源县",region_level:3,children:[]},{code:"654026",name:"昭苏县",region_level:3,children:[]},{code:"654027",name:"特克斯县",region_level:3,children:[]},{code:"654028",name:"尼勒克县",region_level:3,children:[]}]},{code:"6542",name:"塔城地区",region_level:2,children:[{code:"654201",name:"塔城市",region_level:3,children:[]},{code:"654202",name:"乌苏市",region_level:3,children:[]},{code:"654221",name:"额敏县",region_level:3,children:[]},{code:"654223",name:"沙湾县",region_level:3,children:[]},{code:"654224",name:"托里县",region_level:3,children:[]},{code:"654225",name:"裕民县",region_level:3,children:[]},{code:"654226",name:"和布克赛尔蒙古自治县",region_level:3,children:[]}]},{code:"6543",name:"阿勒泰地区",region_level:2,children:[{code:"654301",name:"阿勒泰市",region_level:3,children:[]},{code:"654321",name:"布尔津县",region_level:3,children:[]},{code:"654322",name:"富蕴县",region_level:3,children:[]},{code:"654323",name:"福海县",region_level:3,children:[]},{code:"654324",name:"哈巴河县",region_level:3,children:[]},{code:"654325",name:"青河县",region_level:3,children:[]},{code:"654326",name:"吉木乃县",region_level:3,children:[]}]},{code:"6590",name:"自治区直辖县级行政区",region_level:2,children:[{code:"659001",name:"石河子市",region_level:3,children:[]},{code:"659002",name:"阿拉尔市",region_level:3,children:[]},{code:"659003",name:"图木舒克市",region_level:3,children:[]},{code:"659004",name:"五家渠市",region_level:3,children:[]},{code:"659005",name:"北屯市",region_level:3,children:[]},{code:"659006",name:"铁门关市",region_level:3,children:[]},{code:"659007",name:"双河市",region_level:3,children:[]},{code:"659008",name:"可克达拉市",region_level:3,children:[]},{code:"659009",name:"昆玉市",region_level:3,children:[]},{code:"659010",name:"胡杨河市",region_level:3,children:[]}]}]},{code:"71",name:"台湾省",region_level:1,children:[]},{code:"81",name:"香港特别行政区",region_level:1,children:[]},{code:"82",name:"澳门特别行政区",region_level:1,children:[]}]}];function useMap(){const te=async(ne,re)=>{let oe=String(ne.code).padEnd(6,"0");const ie=G(vue.unref(city)[0],oe),le=await U(`${oe}${(ie==null?void 0:ie.region_level)!=3?"_full":""}`);core.registerMap(oe,le),ne.geo.map=oe;const ae=ne.dataset.source,se=[];((le==null?void 0:le.features)??[]).forEach(ue=>{const de=(ae.find(he=>he[ne.dataShow.x]==ue.properties.name)??{})[ne.dataShow.y]??0,fe=ue.properties.center?[...ue.properties.center,de]:ue.properties.center,ve={name:ue.properties.name,value:fe,code:ue.properties.adcode,data:de};Number(de)<=0&&(ve.symbolSize=0),se.push(ve)}),ne.series=[{type:"map",map:oe,roam:!0,geoIndex:0,select:!1,data:se},{...ne.style.style1,data:se},{...ne.style.style2,data:se}],re&&re()},U=async ne=>{const re=`https://geo.datav.aliyun.com/areas_v3/bound/${ne}.json`;return await fetch(re).then(ie=>ie.json())};function G(ne,re){var oe;if(String(ne.code).padEnd(6,"0")==re)return ne;for(let ie=0;ie<((oe=ne==null?void 0:ne.children)==null?void 0:oe.length);ie+=1){const le=ne.children[ie],ae=G(le,re);if(ae)return ae}return null}return{init:te,city,mapConfig:{code:"100000",tooltip:{show:!0},dataShow:{x:"",y:""},custom:{prefix:"",suffix:"",toFixed:0},style:{style1:{name:"散点",type:"scatter",coordinateSystem:"geo",symbol:"circle",itemStyle:{color:"#05C3F9"}},style2:{name:"点",type:"scatter",coordinateSystem:"geo",symbol:"pin",symbolSize:20,itemStyle:{color:"#F62157"},label:{show:!0,formatter:ne=>ne.data.data||"",color:"#fff",fontSize:9},zlevel:6}},geo:{map:"",roam:!0,zoom:1.2,label:{show:!0,fontSize:12,color:"#000"},emphasis:{itemStyle:{areaColor:"#389BB7",borderColor:"#389BB7",borderWidth:0},label:{fontSize:14,color:"#fff"}}},visualMap:{show:!0,left:"left",top:"bottom",text:["高","低"],min:0,max:200,calculable:!0,seriesIndex:[0],inRange:{color:["#00467F","#A5CC82"]}},dataset:{},series:[]}}}function useCustomChart(){const{proxy:te}=vue.getCurrentInstance(),U=vue.ref({}),G=vue.ref(""),ee=vue.ref(null),ne=vue.ref(null),re=vue.ref(""),oe=async(ce,de,fe)=>await new Promise(async ve=>{var ye,be;const he=screenDesignMainStore(),pe=JSON.parse(JSON.stringify(((ye=vue.unref(ee))==null?void 0:ye.params)??((be=he.getChartData)==null?void 0:be.params))),ge=JSON.parse((pe==null?void 0:pe.groupArgsJson)??"[]");let me=JSON.parse((pe==null?void 0:pe.aggArgsJson)??"[]");if(de){const xe=ge.find(Ce=>Ce.comment==de);xe&&(pe.groupArgsJson=JSON.stringify([xe]))}if(["2"].includes(ce)&&fe){const xe=me.find(Ce=>Ce.showLabel==fe);xe&&(pe.aggArgsJson=JSON.stringify([xe]))}["8"].includes(ce)||(pe.aggArgsJson=JSON.stringify(me.filter(xe=>xe.aggType!="other")));const _e=await te.$baseHttp.post("/api/ace-data-center/model-indicators/exec",pe);ne.value=_e.data.var,re.value=_e.data.modelIndicatorsName,ve(_e.data.page.records)}),ie=async(ce,de,fe)=>await new Promise(async ve=>{let he=de;const pe=screenDesignMainStore();if(ce){const ge=await te.$baseHttp.get(`/api/ace-data-center/model-indicators-echarts/detail?id=${ce}`);if(!ge)return;fe=chartJsonFormat(ge.data.echartsConfig),he=ge.data.echartsType}G.value=he,setTimeout(async()=>{var ge,me,_e,ye,be,xe,Ce,$e,Ee,Ve,Ne,Se,Pe,we,ke,Te,De,Ie,Me,Be,Ae,ze,Re,Fe,je,Oe,Le,Ge,qe,Ue,We,Ye,Je,Xe,Ke,He,Qe,Ze,et,at,ct,st,it,lt,pt,mt,bt,xt,wt;switch(he){case"1":{const{lineConfig:ft,customSeriesData:ut,init:ht}=useLineCommon();ut.value=((ge=vue.unref(fe))==null?void 0:ge.customSeriesData)??{},U.value=fe??chartJsonFormat(chartJsonToStringFormat(ft)),delete U.value.legend.icon,vue.unref(U).dataShow.x=((me=fe==null?void 0:fe.dataShow)==null?void 0:me.x)??((ye=(_e=pe.getChartData)==null?void 0:_e.x[0])==null?void 0:ye.comment),vue.unref(U).dataShow.y=(((be=vue.unref(ee))==null?void 0:be.y)??((xe=pe.getChartData)==null?void 0:xe.y)).filter(rt=>rt.aggType!="other").map(rt=>rt.showLabel),vue.unref(U).dataset.source=await oe(he,vue.unref(U).dataShow.x),ht(vue.unref(U),()=>ue())}break;case"2":{const{pieConfig:ft,customSeriesData:ut,init:ht}=usePieCommon();ut.value=(fe==null?void 0:fe.customSeriesData)??{},U.value=fe??chartJsonFormat(chartJsonToStringFormat(ft)),vue.unref(U).dataShow.x=((Ce=fe==null?void 0:fe.dataShow)==null?void 0:Ce.x)??((Ee=($e=pe.getChartData)==null?void 0:$e.x[0])==null?void 0:Ee.comment),vue.unref(U).dataShow.y=((Ve=fe==null?void 0:fe.dataShow)==null?void 0:Ve.y)??((Se=(Ne=pe.getChartData)==null?void 0:Ne.y[0])==null?void 0:Se.showLabel),vue.unref(U).dataset.source=await oe(he,vue.unref(U).dataShow.x,vue.unref(U).dataShow.y),ht(vue.unref(U),()=>ue())}break;case"3":{const{barConfig:ft,customSeriesData:ut,init:ht}=useBarCommon();ut.value=(fe==null?void 0:fe.customSeriesData)??{},U.value=fe??chartJsonFormat(chartJsonToStringFormat(ft)),vue.unref(U).dataShow.x=((Pe=fe==null?void 0:fe.dataShow)==null?void 0:Pe.x)??((ke=(we=pe.getChartData)==null?void 0:we.x[0])==null?void 0:ke.comment),vue.unref(U).dataShow.y=(((Te=vue.unref(ee))==null?void 0:Te.y)??((De=pe.getChartData)==null?void 0:De.y)).filter(rt=>rt.aggType!="other").map(rt=>rt.showLabel),vue.unref(U).dataset.source=await oe(he,vue.unref(U).dataShow.x),ht(vue.unref(U),()=>ue())}break;case"4":{const{radarConfig:ft,customSeriesData:ut,init:ht}=useRadar();ut.value=((Ie=vue.unref(fe))==null?void 0:Ie.customSeriesData)??{},U.value=fe??chartJsonFormat(chartJsonToStringFormat(ft)),vue.unref(U).dataShow.x=((Me=fe==null?void 0:fe.dataShow)==null?void 0:Me.x)??((Ae=(Be=pe.getChartData)==null?void 0:Be.x[0])==null?void 0:Ae.comment),vue.unref(U).dataShow.y=(((ze=vue.unref(ee))==null?void 0:ze.y)??((Re=pe.getChartData)==null?void 0:Re.y)).filter(rt=>rt.aggType!="other").map(rt=>rt.showLabel),vue.unref(U).dataset.source=await oe(he,vue.unref(U).dataShow.x),ht(vue.unref(U),()=>ue())}break;case"5":{const{barsLinesConfig:ft,customSeriesData:ut,init:ht}=useBarLineCommon();ut.value=((Fe=vue.unref(fe))==null?void 0:Fe.customSeriesData)??{},U.value=fe??chartJsonFormat(chartJsonToStringFormat(ft)),vue.unref(U).dataShow.x=((je=fe==null?void 0:fe.dataShow)==null?void 0:je.x)??((Le=(Oe=pe.getChartData)==null?void 0:Oe.x[0])==null?void 0:Le.comment),vue.unref(U).dataShow.y=(((Ge=vue.unref(ee))==null?void 0:Ge.y)??((qe=pe.getChartData)==null?void 0:qe.y)).filter(rt=>rt.aggType!="other").map(rt=>rt.showLabel),vue.unref(U).dataset.source=await oe(he,vue.unref(U).dataShow.x),ht(vue.unref(U),()=>ue())}break;case"6":{const{scatterCfg:ft,customSeriesData:ut,init:ht}=useScatterCommon();ut.value=((Ue=vue.unref(fe))==null?void 0:Ue.customSeriesData)??{},U.value=fe??chartJsonFormat(chartJsonToStringFormat(ft)),vue.unref(U).dataShow.x=((We=fe==null?void 0:fe.dataShow)==null?void 0:We.x)??((Je=(Ye=pe.getChartData)==null?void 0:Ye.x[0])==null?void 0:Je.comment),vue.unref(U).dataShow.y=(((Xe=vue.unref(ee))==null?void 0:Xe.y)??((Ke=pe.getChartData)==null?void 0:Ke.y)).filter(rt=>rt.aggType!="other").map(rt=>rt.showLabel),vue.unref(U).dataset.source=await oe(he,vue.unref(U).dataShow.x),ht(vue.unref(U),()=>ue())}break;case"7":{const{numberConfig:ft,customSeriesData:ut,init:ht}=useNumber();ut.value=(fe==null?void 0:fe.customSeriesData)??{},U.value=fe??chartJsonFormat(chartJsonToStringFormat(ft)),vue.unref(U).dataShow.y=(((He=vue.unref(ee))==null?void 0:He.y)??((Qe=pe.getChartData)==null?void 0:Qe.y)).filter(rt=>rt.aggType!="other").map(rt=>rt.showLabel),vue.unref(U).dataset.source=await oe(he),ht(vue.unref(U),()=>ue())}break;case"8":{const{customSeriesData:ft,tableConfig:ut,init:ht}=useTable();U.value=fe??chartJsonFormat(chartJsonToStringFormat(ut)),ft.value=((Ze=vue.unref(fe))==null?void 0:Ze.customSeriesData)??{};const rt=[...(((et=vue.unref(ee))==null?void 0:et.x)??((at=pe.getChartData)==null?void 0:at.x)).map(_t=>_t.comment),...(((ct=vue.unref(ee))==null?void 0:ct.y)??((st=pe.getChartData)==null?void 0:st.y)).map(_t=>_t.showLabel)];let $t=[];(((it=vue.unref(U).dataShow)==null?void 0:it.y)??[]).forEach(_t=>{$t.push(_t)}),$t.push(...rt),vue.unref(U).dataShow.y=[...new Set($t)],vue.unref(U).dataset.source=await oe(he),ht(vue.unref(U),()=>ue())}break;case"9":const{mapConfig:yt,init:Ct}=useMap(),gt=fe??chartJsonFormat(chartJsonToStringFormat(yt));console.log(gt),gt.series=[],gt.dataShow.x=((lt=fe==null?void 0:fe.dataShow)==null?void 0:lt.x)??((mt=(pt=pe.getChartData)==null?void 0:pt.x[0])==null?void 0:mt.comment),gt.dataShow.y=((bt=fe==null?void 0:fe.dataShow)==null?void 0:bt.y)??((wt=(xt=pe.getChartData)==null?void 0:xt.y[0])==null?void 0:wt.showLabel),gt.dataset.source=await oe(he,gt.dataShow.x,gt.dataShow.y),Ct(gt,()=>{U.value=gt,ue()});break}ve(U.value)},100)}),le=()=>{var ce,de,fe,ve,he,pe,ge;switch(vue.unref(G)){case"1":{const{customSeriesData:me,init:_e}=useLineCommon();me.value=((ce=vue.unref(U))==null?void 0:ce.customSeriesData)??{},_e(vue.unref(U))}break;case"2":{const{customSeriesData:me,init:_e}=usePieCommon();me.value=((de=vue.unref(U))==null?void 0:de.customSeriesData)??{},_e(vue.unref(U))}break;case"3":{const{customSeriesData:me,init:_e}=useBarCommon();me.value=((fe=vue.unref(U))==null?void 0:fe.customSeriesData)??{},_e(vue.unref(U))}break;case"4":{const{customSeriesData:me,init:_e}=useRadar();me.value=((ve=vue.unref(U))==null?void 0:ve.customSeriesData)??{},_e(vue.unref(U))}break;case"5":{const{customSeriesData:me,init:_e}=useBarLineCommon();me.value=((he=vue.unref(U))==null?void 0:he.customSeriesData)??{},_e(vue.unref(U))}break;case"6":{const{customSeriesData:me,init:_e}=useScatterCommon();me.value=((pe=vue.unref(U))==null?void 0:pe.customSeriesData)??{},_e(vue.unref(U))}break;case"7":{const{init:me}=useNumber();me(vue.unref(U))}break;case"8":{const{customSeriesData:me,init:_e}=useTable();me.value=((ge=vue.unref(U))==null?void 0:ge.customSeriesData)??{},_e(vue.unref(U))}break}},ae=async(ce,de,fe)=>{await new Promise(async ve=>{var xe;const he=screenDesignMainStore(),{dynamicSearchFormat:pe,dynamicSearchParams:ge}=te.$aceDynamicSearch();let me;me=await te.$baseHttp.get(`/api/ace-data-center/model-indicators/detail?id=${ce}`);const _e=JSON.parse(me.data.sortArgsJson??"{}"),ye=Object.keys(vue.unref(_e)).map(Ce=>({field:Ce,type:_e[Ce]=="ascending"?"asc":"desc"}));he.setChartData({x:JSON.parse(me.data.groupArgsJson),y:JSON.parse(me.data.aggArgsJson),params:{aggArgsJson:me.data.aggArgsJson,groupArgsJson:me.data.groupArgsJson,sortArgsJson:JSON.stringify(ye),params:ge(pe(JSON.parse(fe??((xe=vue.unref(me))==null?void 0:xe.formConfJson)??"[]"))),pageSize:me.data.pageSize,modelIndicatorsId:me.data.id,modelId:me.data.modelId}});const be=me.data.echarts.find(Ce=>Ce.type==de);await ie(be==null?void 0:be.code),ve(be==null?void 0:be.code)})},se=ce=>{const de=vue.unref(U),fe=vue.unref(U).customSeriesData[ce]??{};return((fe==null?void 0:fe.prefix)??"")+de.dataset.source.reduce((ve,he)=>ve+(he[ce]?Number(he[ce]):0),0).toFixed(fe.toFixed??0)+(fe.suffix??"")},ue=()=>{if(vue.unref(G)=="9"){U.value.tooltip.formatter=de=>{const fe=U.value.custom;if(de&&de.data){const{name:ve,data:he}=de.data;return`${ve}: ${(fe==null?void 0:fe.prefix)??""}${Number(he).toFixed((fe==null?void 0:fe.toFixed)??0)}${(fe==null?void 0:fe.suffix)??""}`}},U.value.series[2].label.formatter=de=>{const fe=U.value.custom,ve=de.data.data;return ve?`${(fe==null?void 0:fe.prefix)??""}${Number(ve).toFixed((fe==null?void 0:fe.toFixed)??0)}${(fe==null?void 0:fe.suffix)??""}`:""};return}if(vue.unref(U).tooltip){const de=U.value.custom;U.value.tooltip.valueFormatter=fe=>`${(de==null?void 0:de.prefix)??""}${Number(fe).toFixed(de==null?void 0:de.toFixed)}${(de==null?void 0:de.suffix)??""}`}vue.unref(U).dataset.temp_source=JSON.parse(JSON.stringify(U.value.dataset.source))};return{option:U,varData:ne,modelIndicatorsName:re,chartDataParams:ee,chartType:G,setChartData:oe,formatChart:ie,getModelIndicatorsData:ae,changeChartSeries:le,setSingleValue:se}}const _hoisted_1$1C={key:1,class:"flex items-center justify-center w-full h-full"},_sfc_main$2q=vue.defineComponent({__name:"render",props:{config:{default:()=>({})},list:{default:()=>[]},isLinkageQuery:{type:Boolean,default:!0},isCount:{type:Boolean,default:!0}},setup(__props){const props=__props,{proxy}=vue.getCurrentInstance(),design=screenDesignMainStore(),loading=vue.ref(!1),{dynamicSearchFormat,dynamicSearchParams}=proxy.$aceDynamicSearch(),{option,formatChart,varData,chartDataParams,modelIndicatorsName}=useCustomChart(),init=()=>{const linkageMap={},formulaList=[];if(props.isLinkageQuery&&props.list.forEach(te=>{const U=te.customize.modelValue;((te==null?void 0:te.customize.linkage)??[]).forEach(G=>{(U??"")!==""&&(linkageMap[G[0]]=[G[1],U])})}),props.isCount&&props.list.forEach(te=>{var ne;if(te.type!="number"&&!((ne=te.customize.formula)!=null&&ne.exp))return;te.customize.formulaCopy=JSON.parse(JSON.stringify(te.customize.formula));const U=te.customize.formulaCopy.identifier.split(","),G=/\{([^}]+)\}/g;let ee=0;te.customize.formulaCopy.exp=te.customize.formulaCopy.exp.replace(G,(re,oe)=>{const ie=oe.split(".");return ie[0]=U[ee],ee+=1,ie.join(".")}),te.customize.title=0,formulaList.push(te)}),props.config.modelType=="INDICATORS"){Promise.all([fetch$1(proxy).detailAndTask(props.config.indicatorsId),fetch$1(proxy).getEchartDetail({indicatorsId:props.config.indicatorsId})]).then(async te=>{var ne,re;let U=dynamicSearchParams(dynamicSearchFormat(JSON.parse(((re=(ne=te[0])==null?void 0:ne.data)==null?void 0:re.formConfJson)??"[]")));if(linkageMap[props.config.indicatorsId]){const[oe,ie]=linkageMap[props.config.indicatorsId];U[oe]=ie}const G=te[1].data,ee=await fetch$1(proxy).pullEchartsDataVO({indicatorsId:props.config.indicatorsId,loadType:(G==null?void 0:G.loadType)??3,params:U,targetClient:G.targetClient,echartsType:props.config.chartType});try{option.value=chartJsonFormat(ee.data.config)}catch{option.value=ee.data.config}loading.value=!1});return}if(props.config.chartId&&props.config.indicatorsId){props.config.chartType=="9"&&delete props.config.customize.series,option.value=props.config.customize;const{indicatorsId,chartType}=props.config;loading.value=!0,proxy.$baseHttp.get(`/api/ace-data-center/model-indicators/detail?id=${indicatorsId}`).then(async response=>{const sortArgsJson=JSON.parse(response.data.sortArgsJson??"{}"),sort=Object.keys(vue.unref(sortArgsJson)).map(te=>({field:te,type:sortArgsJson[te]=="ascending"?"asc":"desc"}));let params=dynamicSearchParams(dynamicSearchFormat(JSON.parse(response.data.formConfJson??"[]")));if(linkageMap[props.config.indicatorsId]){const[te,U]=linkageMap[props.config.indicatorsId];params[te]=U}chartDataParams.value={x:JSON.parse(response.data.groupArgsJson),y:JSON.parse(response.data.aggArgsJson),params:{aggArgsJson:response.data.aggArgsJson,groupArgsJson:response.data.groupArgsJson,sortArgsJson:JSON.stringify(sort),modelIndicatorsId:indicatorsId,params,pageSize:response.data.pageSize,modelId:response.data.modelId}},design.tempChartData[props.config.id]={params:chartDataParams.value,customize:props.config.customize},design.setChartData(chartDataParams.value),await formatChart("",chartType,{...props.config.customize,id:props.config.id}),props.isCount&&formulaList.length&&formulaList.forEach(el=>{var te;Object.keys(vue.unref(varData)).forEach(U=>{el.customize.formulaCopy.exp.indexOf(U)>=0&&(el.customize.formulaCopy.exp=el.customize.formulaCopy.exp.replaceAll(U,varData.value[U]))}),/[\u4e00-\u9fa5]/.test((te=el.customize.formulaCopy)==null?void 0:te.exp)||(el.customize.title=eval(el.customize.formulaCopy.exp),(el.customize.toFixed??"")!==""&&(el.customize.title=el.customize.title.toFixed(el.customize.toFixed)))}),design.setCountMap(props.config.indicatorsId,{title:vue.unref(modelIndicatorsName),var:vue.unref(varData)}),loading.value=!1})}};vue.onMounted(()=>{init()}),proxy.$baseEventBus.on("ace-screen-indicators-linkage",te=>{te.includes(props.config.indicatorsId)&&init()});const widgetView=vue.computed(()=>moudleComponents$1[props.config.type]);return(te,U)=>{const G=vue.resolveComponent("AppEmpty"),ee=vue.resolveComponent("AppTable"),ne=vue.resolveComponent("v-chart"),re=vue.resolveComponent("aceCustomChart"),oe=vue.resolveComponent("aceLoading");return props.config.chartId?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[vue.unref(loading)?(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$1C,[vue.createVNode(oe,{size:"50"})])):(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[props.config.modelType=="INDICATORS"?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[props.config.chartType==7?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[vue.createTextVNode(vue.toDisplayString(vue.unref(option)),1)],64)):props.config.chartType==8?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:1},[vue.unref(option).length==0?(vue.openBlock(),vue.createBlock(G,{key:0,description:"暂无数据"})):vue.createCommentVNode("",!0),Array.isArray(vue.unref(option))&&vue.unref(option).length>0?(vue.openBlock(),vue.createBlock(ee,{key:1,tableData:Object.keys(vue.unref(option)[0]).map(ie=>({label:ie,prop:ie})),list:vue.unref(option),maxHeight:props.config.h-10+"px"},null,8,["tableData","list","maxHeight"])):vue.createCommentVNode("",!0)],64)):(vue.openBlock(),vue.createBlock(ne,{key:2,ref:"echart",option:vue.unref(option),autoresize:""},null,8,["option"]))],64)):(vue.openBlock(),vue.createBlock(re,{key:1,option:props.config.customize,chartType:props.config.chartType,maxHeight:props.config.h-10+"px"},null,8,["option","chartType","maxHeight"]))],64))],64)):(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:1},[vue.unref(widgetView)?(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(vue.unref(widgetView)),{key:0,ref:"componentRef",list:props.list,config:props.config},null,8,["list","config"])):vue.createCommentVNode("",!0)],64))}}}),render_vue_vue_type_style_index_0_scoped_94f69288_lang="",Render=_export_sfc$2(_sfc_main$2q,[["__scopeId","data-v-94f69288"]]),_withScopeId$C=te=>(vue.pushScopeId("data-v-d83296c5"),te=te(),vue.popScopeId(),te),_hoisted_1$1B={class:"relative w-full h-full"},_hoisted_2$1l=["id","onDblclick","onMousedown","onClick"],_hoisted_3$1a={key:0,class:"absolute flex items-center justify-center w-8 h-8 bg-blue-500 rounded-full -right-2 -top-2"},_hoisted_4$13=_withScopeId$C(()=>vue.createElementVNode("i",{class:"text-base text-white ri-lock-line"},null,-1)),_hoisted_5$S=[_hoisted_4$13],_hoisted_6$H={key:1,class:"absolute ml-4 text-xs tool left-full whitespace-nowrap"},_hoisted_7$A=["onClick"],_hoisted_8$u={key:1,class:"absolute w-full h-full z-[999]"},_sfc_main$2p=vue.defineComponent({__name:"main",setup(te){vue.useCssVars(we=>({"565e7a12":vue.unref(se)}));const{proxy:U}=vue.getCurrentInstance(),G=screenDesignMainStore(),ee=vue.computed(()=>G.stageWidth),ne=vue.computed(()=>G.stageHeight),re=document.body,oe=vue.ref(null),ie=useKeyModifier("Shift"),le=vue.computed(()=>G.targetsWidget.length===1?getItemFromElement(G.targetsWidget[0]):null),ae=[{label:"置于顶层",clickFunc:we=>{we.z=G.getWidgetList.length,G.widgetConfg.list.filter(ke=>ke.id!=we.id).forEach((ke,Te)=>{ke.z=G.getWidgetList.length-1-Te}),G.sortWidgetList()}},{label:"置于底层",clickFunc:we=>{we.z=1,G.widgetConfg.list.filter(ke=>ke.id!=we.id).forEach((ke,Te)=>{ke.z=G.getWidgetList.length-Te}),G.sortWidgetList()}}],se=vue.computed(()=>.8/G.getScale),ue=()=>Array.prototype.slice.call(document.querySelectorAll(".drag-item"),0),ce=(we,ke)=>{if(Array.isArray(we)){if(we.length===0){G.setTargetWidget([]);return}G.setTargetWidget(we.filter(De=>De.className.indexOf("locked")==-1).map(De=>getItemFromElement(De)));return}const Te=getItemFromElement(we);!Te||G.targetsWidget.includes(Te)||we.locked||(ie.value===!0?G.setTargetWidget([...G.getTargetWidget.filter(De=>De.className.indexOf("locked")==-1),Te]):G.setTargetWidget([Te]),vue.nextTick(()=>{ke&&vue.nextTick(()=>{var De;return(De=vue.unref(oe))==null?void 0:De.dragStart(ke)})}))},de=we=>{const ke=Ee(vue.unref(le));ke!=null&&ke.locked&&we.stopDrag(),console.log("开始拖拽",we)},fe=we=>{console.log("拖拽中",we),we.target.style.transform=we.transform;const[ke,Te]=we.translate;G.setSketchRuleLine([ke],[Te]);const De=Ee(vue.unref(le));De&&(De.x=Math.floor(we.translate[0]),De.y=Math.floor(we.translate[1]))},ve=we=>{console.log("拖拽结束",we),G.clearSketchRuleLine()},he=we=>{console.log("开始组拖拽",we)},pe=we=>{console.log("组拖拽中",we),we.events.forEach(ke=>{ke.target.style.transform=ke.transform})},ge=we=>{console.log("组拖拽完毕",we),we.events.forEach(ke=>{const Te=Ee(ke.target);!Te||!ke.lastEvent||(Te.x=Math.floor(ke.lastEvent.translate[0]),Te.y=Math.floor(ke.lastEvent.translate[1]))}),G.clearSketchRuleLine()},me=we=>{console.log("开始组修改大小",we)},_e=we=>{console.log("组修改大小中",we),we.events.forEach(ke=>{ke.target.style.transform=ke.drag.transform,ke.target.style.width=`${ke.width}px`,ke.target.style.height=`${ke.height}px`;const Te=Ee(ke.target);Te&&(Te.x=Math.floor(ke.drag.translate[0]),Te.y=Math.floor(ke.drag.translate[1]),Te.w=ke.drag.width,Te.h=ke.drag.height)})},ye=we=>{console.log("修改大小结束",we),G.clearSketchRuleLine()},be=we=>{const ke=Ee(vue.unref(le));ke!=null&&ke.locked&&we.stopDrag(),console.log("开始改变大小",we)},xe=we=>{console.log("改变中",we),we.target.style.transform=we.drag.transform,we.target.style.width=`${we.width}px`,we.target.style.height=`${we.height}px`;const ke=Ee(we.target);if(!ke)return;ke.x=Math.floor(we.drag.translate[0]),ke.y=Math.floor(we.drag.translate[1]),ke.w=we.drag.width,ke.h=we.drag.height;const[Te,De]=we.drag.translate;G.setSketchRuleLine([Te],[De])};function Ce(we){console.log("改变结束",we),G.clearSketchRuleLine()}const $e=vue.ref(!1);U.$baseEventBus.on("drag-start",()=>{$e.value=!0}),U.$baseEventBus.on("drag-end",()=>{$e.value=!1}),U.$baseEventBus.on("clear-stage",()=>{console.log("清空画布"),G.setWidgetList([]),G.setTargetWidget([]),G.clearSketchRuleLine()}),U.$baseEventBus.on("update-rect",()=>{var we,ke;console.log("更新画布"),(we=oe.value)==null||we.updateTarget(),(ke=oe.value)==null||ke.updateRect()}),U.$baseEventBus.on("change-align",we=>{vue.nextTick(()=>{var De;if(console.log("修改居中方式"),!G.targetsWidget.length)return;const ke=oe.value.getRect(),Te=oe.value.getMoveables();if(Te.length<=1){const Ie={};we=="left"&&(Ie.x=0),we=="right"&&(Ie.x=vue.unref(ee)-ke.width),we=="top"&&(Ie.y=0),we=="bottom"&&(Ie.y=vue.unref(ne)-ke.height),we=="middle"&&(Ie.y=vue.unref(ne)/2-ke.height/2),we=="center"&&(Ie.x=vue.unref(ee)/2-ke.width/2),Te[0].request("draggable",Ie,!0);const Me=Ee(Te[0].props.target);if(!Me)return;Object.keys(Ie).forEach(Be=>{Me[Be]=Ie[Be]})}else switch(we){case"left":case"right":case"top":case"bottom":case"middle":case"center":{const Ie=Math.max.apply(Math,ke.children.map(Be=>Be.top+Be.height)),Me=Math.max.apply(Math,ke.children.map(Be=>Be.left+Be.width));Te.forEach((Be,Ae)=>{const ze={};we=="left"&&(ze.x=ke.left),we=="right"&&(ze.x=Me-ke.children[Ae].width),we=="top"&&(ze.y=ke.top),we=="bottom"&&(ze.y=Ie-ke.children[Ae].height),we=="middle"&&(ze.y=ke.top+ke.height/2-ke.children[Ae].height/2),we=="center"&&(ze.x=ke.left+ke.width/2-ke.children[Ae].width/2),Be.request("draggable",ze,!0);const Re=Ee(Be.props.target);Re&&Object.keys(ze).forEach(Fe=>{Re[Fe]=ze[Fe]})}),G.clearSketchRuleLine()}break;case"verticalAround":case"levelAround":{const Ie=we=="verticalAround"?"top":"left",Me=we=="verticalAround"?"height":"width";let Be=ke[Ie];const Ae=(ke[Me]-ke.children.reduce((ze,Re)=>ze+Re[Me],0))/(Te.length-1);Te.sort((ze,Re)=>ze.state[Ie]-Re.state[Ie]),Te.forEach(ze=>{const Re=ze.getRect(),Fe={};Ie=="top"&&(Fe.y=Be),Ie=="left"&&(Fe.x=Be),ze.request("draggable",Fe,!0);const je=Ee(ze.props.target);je&&(Object.keys(Fe).forEach(Oe=>{je[Oe]=Fe[Oe]}),Be+=Re[Me]+Ae)}),G.clearSketchRuleLine()}break}(De=oe.value)==null||De.updateRect()})});const Ee=we=>G.getWidgetList.find(ke=>ke.id==(we==null?void 0:we.id)),Ve=we=>{we.preventDefault(),we.stopPropagation();const ke=we.dataTransfer.getData("dragComponent");if(ke){let Te=JSON.parse(ke);Te.chartId&&(Te.customize=chartJsonFormat(Te.customize));const{w:De,h:Ie}=Te;let Me=we.offsetX-De/2,Be=we.offsetY-Ie/2;Me<=0?Me=0:Me+De>=vue.unref(ee)&&(Me=vue.unref(ee)-De),Be<=0?Be=0:Be+Ie>=vue.unref(ne)&&(Be=vue.unref(ne)-Ie),G.setWidgetList([{...Te,x:Me,y:Be,z:G.getWidgetList.length+1},...G.getWidgetList])}},Ne=vue.ref([]),Se=()=>{const we=(Te,De)=>{const Ie=onKeyStroke(Te,Me=>{document.activeElement&&["INPUT"].includes(document.activeElement.tagName)||(Me.preventDefault(),Me.stopPropagation(),De(Me))},{eventName:"keydown"});Ne.value.push(Ie)},ke=Te=>navigator.userAgent.toLowerCase().includes("macintosh")?Te.metaKey:Te.ctrlKey;we(["Backspace","Delete"],Te=>{console.log("删除触发",Te),G.targetsWidget.length&&G.delWidgetItem(G.getTargetWidget.map(De=>De.id))}),we(["ArrowLeft","ArrowRight","ArrowDown","ArrowUp"],Te=>{if(!G.targetsWidget.length)return;console.log("触发移动",Te);let De=0,Ie=0;Te.key=="ArrowLeft"&&(De=-2),Te.key=="ArrowRight"&&(De=2),Te.key=="ArrowUp"&&(Ie=-2),Te.key=="ArrowDown"&&(Ie=2),Te.shiftKey&&(De*=10,Ie*=10),vue.nextTick(()=>{oe.value.getMoveables().forEach(Be=>{const Ae=Ee(Be.props.target);!Ae||Ae.locked||(Ae.x+De<0?Ae.x=0:Ae.x+De>vue.unref(ee)-Ae.w?Ae.x=vue.unref(ee)-Ae.w:Ae.x+=De,Ae.y+Ie<0?Ae.y=0:Ae.y+Ie>vue.unref(ne)-Ae.h?Ae.y=vue.unref(ne)-Ae.h:Ae.y+=Ie)}),vue.nextTick(()=>{var Be;return(Be=oe.value)==null?void 0:Be.updateRect()})})}),we(["c"],Te=>{console.log("复制",Te),ke(Te)&&G.getTargetWidget.length&&G.copyWidgetItem(G.getTargetWidget.map(De=>De.id))}),we(["v"],Te=>{console.log("粘贴",Te),ke(Te)&&G.getPasteWidget.length&&G.pasteWidgetItem()})},Pe=vue.ref(null);return vue.nextTick(()=>{Se(),Pe.value=new Selecto$2({rootContainer:null,dragContainer:".render",selectableTargets:[".drag-item"],selectByClick:!0,selectFromInside:!0,continueSelect:!1,preventDefault:!0,toggleContinueSelect:null,keyContainer:window,hitRate:0}),vue.unref(Pe).on("dragStart",we=>{G.setRightPannel(!1),console.log("开始全选拖拽",we)}),vue.unref(Pe).on("dragEnd",we=>{console.log("全选拖拽结束",we)}),vue.unref(Pe).on("select",we=>{console.log("选中结果",we),we.added.forEach(ke=>{ke.className.indexOf("loccked")||ke.classList.add("selected")}),we.removed.forEach(ke=>{ke.classList.remove("selected")}),ce(we.selected)}),vue.unref(Pe).on("selectEnd",we=>{console.log("选中结束",we),ce(we.selected)})}),vue.onBeforeUnmount(()=>{Ne.value.forEach(we=>we()),vue.unref(Pe)&&vue.unref(Pe).destroy()}),(we,ke)=>(vue.openBlock(),vue.createBlock(SketchRule,null,{default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_1$1B,[vue.unref($e)?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"absolute w-full h-full z-[9999]",onDrop:ke[0]||(ke[0]=Te=>Ve(Te)),onDragover:ke[1]||(ke[1]=vue.withModifiers(()=>{},["prevent"]))},null,32)):vue.createCommentVNode("",!0),(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vue.unref(G).getWidgetList,Te=>{var De,Ie;return vue.openBlock(),vue.createElementBlock("div",{key:Te.id,class:vue.normalizeClass(["absolute",{"drag-item":!0,locked:Te.locked,selected:vue.unref(G).widgetHoverIds.includes(Te.id),active:((De=vue.unref(le))==null?void 0:De.id)==Te.id}]),id:Te.id,style:vue.normalizeStyle(vue.unref(getItemStyle)(Te)),onDblclick:vue.withModifiers(Me=>Te.locked=!Te.locked,["stop"]),onMousedown:Me=>ce(Te,Me),onClick:vue.withModifiers(Me=>ce(Te,Me),["stop"])},[vue.unref(G).createLoading?vue.createCommentVNode("",!0):(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[Te.locked?(vue.openBlock(),vue.createElementBlock("div",_hoisted_3$1a,_hoisted_5$S)):vue.createCommentVNode("",!0),((Ie=vue.unref(le))==null?void 0:Ie.id)==Te.id&&!Te.locked?(vue.openBlock(),vue.createElementBlock("div",_hoisted_6$H,[(vue.openBlock(),vue.createElementBlock(vue.Fragment,null,vue.renderList(ae,Me=>vue.createElementVNode("div",{key:Te.label,onClick:vue.withModifiers(Be=>Me.clickFunc(Te),["stop"]),onDblclick:ke[2]||(ke[2]=vue.withModifiers(()=>{},["prevent","stop"])),class:"flex items-center justify-center w-16 h-6 mb-2 text-white rounded-sm cursor-pointer bg-color-primary"},vue.toDisplayString(Me.label),41,_hoisted_7$A)),64))])):vue.createCommentVNode("",!0)],64)),["iframe","select"].includes(Te.type)?(vue.openBlock(),vue.createElementBlock("div",_hoisted_8$u)):vue.createCommentVNode("",!0),vue.createVNode(Render,{config:Te,list:vue.unref(G).getWidgetList,isLinkageQuery:!1,isCount:!1},null,8,["config","list"])],46,_hoisted_2$1l)}),128)),vue.createVNode(vue.unref(Moveable),{rootContainer:vue.unref(re),ref_key:"moveableRef",ref:oe,origin:!1,stopPropagation:!0,target:vue.unref(G).targetsWidget,draggable:!0,resizable:!0,scalable:!1,snappable:!0,maxSnapElementGuidelineDistance:100,maxSnapElementGapDistance:100,isDisplayInnerSnapDigit:!0,snapDirections:!0,elementSnapDirections:!0,elementGuidelines:ue(),bounds:{left:0,top:0,bottom:0,right:0,position:"css"},onDragStart:de,onDrag:fe,onDragEnd:ve,onResizeStart:be,onResize:xe,onResizeEnd:Ce,onDragGroupStart:he,onDragGroup:pe,onDragGroupEnd:ge,onResizeGroupStart:me,onResizeGroup:_e,onResizeGroupEnd:ye},null,8,["rootContainer","target","elementGuidelines"])])]),_:1}))}}),main_vue_vue_type_style_index_0_scoped_d83296c5_lang="",Main=_export_sfc$2(_sfc_main$2p,[["__scopeId","data-v-d83296c5"]]),_sfc_main$2o=vue.defineComponent({__name:"colorPicker",props:{modelValue:{default:""},showInput:{type:Boolean,default:!0}},emits:["update:modelValue"],setup(te,{emit:U}){const G=te,{proxy:ee}=vue.getCurrentInstance(),ne=ee.$globalPreColor,re=vue.ref(G.modelValue=="transparent"?"":G.modelValue),oe=U;return vue.watch(re,ie=>{oe("update:modelValue",ie||"transparent")}),(ie,le)=>(vue.openBlock(),vue.createElementBlock(vue.Fragment,null,[ie.showInput?(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElInput),{key:0,value:vue.unref(re),class:"mr-1",style:{width:"80%"}},null,8,["value"])):vue.createCommentVNode("",!0),vue.createVNode(vue.unref(elementPlus.ElColorPicker),{modelValue:vue.unref(re),"onUpdate:modelValue":le[0]||(le[0]=ae=>vue.isRef(re)?re.value=ae:null),predefine:vue.unref(ne),"show-alpha":""},null,8,["modelValue","predefine"])],64))}}),_hoisted_1$1A={class:"flex items-center h-10 p-2"},_hoisted_2$1k=vue.createElementVNode("span",{class:"w-1 h-4 mr-2",style:{background:"var(--el-color-primary)"}},null,-1),_sfc_main$2n=vue.defineComponent({__name:"group",props:{title:{default:"标题"}},setup(te){return(U,G)=>(vue.openBlock(),vue.createElementBlock(vue.Fragment,null,[vue.createElementVNode("div",_hoisted_1$1A,[_hoisted_2$1k,vue.createTextVNode(" "+vue.toDisplayString(U.title),1)]),vue.renderSlot(U.$slots,"default")],64))}}),_withScopeId$B=te=>(vue.pushScopeId("data-v-9ebd23bc"),te=te(),vue.popScopeId(),te),_hoisted_1$1z={class:"flex items-center"},_hoisted_2$1j=_withScopeId$B(()=>vue.createElementVNode("span",{class:"ml-1 mr-1"},"-",-1)),_hoisted_3$19=["src"],_hoisted_4$12={key:1,class:"pt-4 pb-4"},_hoisted_5$R=_withScopeId$B(()=>vue.createElementVNode("p",{class:"mb-5"},"拖拽文件上传图片",-1)),_hoisted_6$G=_withScopeId$B(()=>vue.createElementVNode("i",{class:"text-6xl ri-image-add-line"},null,-1)),_hoisted_7$z=[_hoisted_5$R,_hoisted_6$G],_sfc_main$2m=vue.defineComponent({__name:"stageSetting",setup(te){const U=screenDesignMainStore(),{proxy:G}=vue.getCurrentInstance(),{resetUrl:ee}=G.$globalUtils,ne=[{label:"平铺",value:"repeat"},{label:"平铺X",value:"repeat-x"},{label:"平铺Y",value:"repeat-y"},{label:"不平铺",value:"no-repeat"}],re=[{label:"拉伸",value:"cover"},{label:"自适应",value:"contain"}],oe=[{label:"左上",value:"top left"},{label:"左中",value:"top center"},{label:"左右",value:"top right"},{label:"居左",value:"center left"},{label:"居中",value:"center center"},{label:"局右",value:"center right"},{label:"左下",value:"bottom left"},{label:"左中",value:"bottom center"},{label:"左右",value:"bottom right"}],ie=async le=>{const ae=new FormData;ae.append("file",le.file);const se=await G.$baseHttp.post("/api/ace-api/blade-resource/oss/endpoint/put-file",ae,{headers:{"Content-Type":"multipart/form-data",loading:!0}});se&&(U.widgetConfg.config.backgroundImage=se.data.link)};return(le,ae)=>(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElForm),{"label-position":"left",size:"small","label-width":"100px"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$2n,{title:"整体布局"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:"尺寸"},{default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_1$1z,[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{"model-value":vue.unref(U).stageWidth,onChange:vue.unref(U).setStageWidth,size:"small",min:0,"value-on-clear":1920},null,8,["model-value","onChange"]),_hoisted_2$1j,vue.createVNode(vue.unref(elementPlus.ElInputNumber),{"model-value":vue.unref(U).stageHeight,onChange:vue.unref(U).setStageHeight,size:"small",min:0,"value-on-clear":1080},null,8,["model-value","onChange"])])]),_:1}),vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:"背景图"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElUpload),{drag:"",limit:1,"http-request":ie,"show-file-list":!1,accept:"image/*"},{default:vue.withCtx(()=>[vue.unref(U).widgetConfg.config.backgroundImage?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[vue.createElementVNode("img",{class:"object-contain max-h-40",src:vue.unref(ee)(vue.unref(U).widgetConfg.config.backgroundImage)},null,8,_hoisted_3$19),vue.createElementVNode("i",{class:"absolute text-xl ri-close-circle-line right-4 top-4",onClick:ae[0]||(ae[0]=vue.withModifiers(se=>vue.unref(U).widgetConfg.config.backgroundImage=null,["stop"]))})],64)):(vue.openBlock(),vue.createElementBlock("div",_hoisted_4$12,_hoisted_7$z))]),_:1})]),_:1}),vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:"背景颜色"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$2o,{modelValue:vue.unref(U).widgetConfg.config.backgroundColor,"onUpdate:modelValue":ae[1]||(ae[1]=se=>vue.unref(U).widgetConfg.config.backgroundColor=se)},null,8,["modelValue"])]),_:1}),vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:"背景平铺"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSelect),{modelValue:vue.unref(U).widgetConfg.config.backgroundRepeat,"onUpdate:modelValue":ae[2]||(ae[2]=se=>vue.unref(U).widgetConfg.config.backgroundRepeat=se),size:"small",style:{width:"100%"},placeholder:"请选择",clearable:""},{default:vue.withCtx(()=>[(vue.openBlock(),vue.createElementBlock(vue.Fragment,null,vue.renderList(ne,se=>vue.createVNode(vue.unref(elementPlus.ElOption),{key:se.value,label:se.label,value:se.value},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1}),vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:"背景大小"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSelect),{modelValue:vue.unref(U).widgetConfg.config.backgroundSize,"onUpdate:modelValue":ae[3]||(ae[3]=se=>vue.unref(U).widgetConfg.config.backgroundSize=se),size:"small",style:{width:"100%"},placeholder:"请选择",clearable:""},{default:vue.withCtx(()=>[(vue.openBlock(),vue.createElementBlock(vue.Fragment,null,vue.renderList(re,se=>vue.createVNode(vue.unref(elementPlus.ElOption),{key:se.value,label:se.label,value:se.value},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1}),vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:"背景位置"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSelect),{modelValue:vue.unref(U).widgetConfg.config.backgroundPosition,"onUpdate:modelValue":ae[4]||(ae[4]=se=>vue.unref(U).widgetConfg.config.backgroundPosition=se),size:"small",style:{width:"100%"},placeholder:"请选择",clearable:""},{default:vue.withCtx(()=>[(vue.openBlock(),vue.createElementBlock(vue.Fragment,null,vue.renderList(oe,se=>vue.createVNode(vue.unref(elementPlus.ElOption),{key:se.value,label:se.label,value:se.value},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1}))}}),stageSetting_vue_vue_type_style_index_0_scoped_9ebd23bc_lang="",stagetSetting=_export_sfc$2(_sfc_main$2m,[["__scopeId","data-v-9ebd23bc"]]),_sfc_main$2l=vue.defineComponent({__name:"decorationSetting",setup(te){const U=vue.inject("widgetConfig");return(G,ee)=>vue.unref(U)?(vue.openBlock(),vue.createBlock(_sfc_main$2n,{key:0,title:"基础"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:"主颜色"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$2o,{modelValue:vue.unref(U).customize.decorationColor1,"onUpdate:modelValue":ee[0]||(ee[0]=ne=>vue.unref(U).customize.decorationColor1=ne)},null,8,["modelValue"])]),_:1}),vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:"副颜色"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$2o,{modelValue:vue.unref(U).customize.decorationColor2,"onUpdate:modelValue":ee[1]||(ee[1]=ne=>vue.unref(U).customize.decorationColor2=ne)},null,8,["modelValue"])]),_:1}),Object.keys(vue.unref(U).customize).includes("reverse")?(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElFormItem),{key:0,label:"是否反转"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSwitch),{modelValue:vue.unref(U).customize.reverse,"onUpdate:modelValue":ee[2]||(ee[2]=ne=>vue.unref(U).customize.reverse=ne)},null,8,["modelValue"])]),_:1})):vue.createCommentVNode("",!0),Object.keys(vue.unref(U).customize).includes("duration")?(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElFormItem),{key:1,label:"动画时长"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:vue.unref(U).customize.duration,"onUpdate:modelValue":ee[3]||(ee[3]=ne=>vue.unref(U).customize.duration=ne)},null,8,["modelValue"])]),_:1})):vue.createCommentVNode("",!0)]),_:1})):vue.createCommentVNode("",!0)}}),_sfc_main$2k=vue.defineComponent({__name:"setting",setup(te){const{proxy:U}=vue.getCurrentInstance(),G=vue.inject("widgetConfig");return(ee,ne)=>vue.unref(G)?(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElForm),{key:0,"label-position":"left",size:"small","label-width":"90px",class:"design-form"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$2n,{title:"标题"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:"标题"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInput),{modelValue:vue.unref(G).name,"onUpdate:modelValue":ne[0]||(ne[0]=re=>vue.unref(G).name=re)},null,8,["modelValue"])]),_:1})]),_:1}),vue.createVNode(_sfc_main$2n,{title:"位置"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:"宽度"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:vue.unref(G).w,"onUpdate:modelValue":ne[1]||(ne[1]=re=>vue.unref(G).w=re),onBlur:ne[2]||(ne[2]=re=>vue.unref(U).$baseEventBus.emit("update-rect"))},null,8,["modelValue"])]),_:1}),vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:"高度"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:vue.unref(G).h,"onUpdate:modelValue":ne[3]||(ne[3]=re=>vue.unref(G).h=re),onBlur:ne[4]||(ne[4]=re=>vue.unref(U).$baseEventBus.emit("update-rect"))},null,8,["modelValue"])]),_:1}),vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:"x轴坐标"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:vue.unref(G).x,"onUpdate:modelValue":ne[5]||(ne[5]=re=>vue.unref(G).x=re),onBlur:ne[6]||(ne[6]=re=>vue.unref(U).$baseEventBus.emit("update-rect"))},null,8,["modelValue"])]),_:1}),vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:"y轴坐标"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:vue.unref(G).y,"onUpdate:modelValue":ne[7]||(ne[7]=re=>vue.unref(G).y=re),onBlur:ne[8]||(ne[8]=re=>vue.unref(U).$baseEventBus.emit("update-rect"))},null,8,["modelValue"])]),_:1})]),_:1}),vue.renderSlot(ee.$slots,"default")]),_:3})):vue.createCommentVNode("",!0)}}),_sfc_main$2j=vue.defineComponent({__name:"setting",setup(te){return vue.inject("widgetConfig"),(U,G)=>(vue.openBlock(),vue.createBlock(_sfc_main$2k,null,{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$2l)]),_:1}))}}),__vite_glob_0_0=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$2j},Symbol.toStringTag,{value:"Module"})),_sfc_main$2i=vue.defineComponent({__name:"setting",setup(te){return vue.inject("widgetConfig"),(U,G)=>(vue.openBlock(),vue.createBlock(_sfc_main$2k,null,{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$2l)]),_:1}))}}),__vite_glob_0_1=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$2i},Symbol.toStringTag,{value:"Module"})),_sfc_main$2h=vue.defineComponent({__name:"setting",setup(te){return vue.inject("widgetConfig"),(U,G)=>(vue.openBlock(),vue.createBlock(_sfc_main$2k,null,{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$2l)]),_:1}))}}),__vite_glob_0_2=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$2h},Symbol.toStringTag,{value:"Module"})),_sfc_main$2g=vue.defineComponent({__name:"setting",setup(te){return vue.inject("widgetConfig"),(U,G)=>(vue.openBlock(),vue.createBlock(_sfc_main$2k,null,{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$2l)]),_:1}))}}),__vite_glob_0_3=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$2g},Symbol.toStringTag,{value:"Module"})),_sfc_main$2f=vue.defineComponent({__name:"setting",setup(te){return vue.inject("widgetConfig"),(U,G)=>(vue.openBlock(),vue.createBlock(_sfc_main$2k,null,{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$2l)]),_:1}))}}),__vite_glob_0_4=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$2f},Symbol.toStringTag,{value:"Module"})),_sfc_main$2e=vue.defineComponent({__name:"setting",setup(te){return vue.inject("widgetConfig"),(U,G)=>(vue.openBlock(),vue.createBlock(_sfc_main$2k,null,{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$2l)]),_:1}))}}),__vite_glob_0_5=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$2e},Symbol.toStringTag,{value:"Module"})),_sfc_main$2d=vue.defineComponent({__name:"setting",setup(te){return vue.inject("widgetConfig"),(U,G)=>(vue.openBlock(),vue.createBlock(_sfc_main$2k,null,{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$2l)]),_:1}))}}),__vite_glob_0_6=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$2d},Symbol.toStringTag,{value:"Module"})),_sfc_main$2c=vue.defineComponent({__name:"setting",setup(te){return vue.inject("widgetConfig"),(U,G)=>(vue.openBlock(),vue.createBlock(_sfc_main$2k,null,{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$2l)]),_:1}))}}),__vite_glob_0_7=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$2c},Symbol.toStringTag,{value:"Module"})),_sfc_main$2b=vue.defineComponent({__name:"setting",setup(te){return vue.inject("widgetConfig"),(U,G)=>(vue.openBlock(),vue.createBlock(_sfc_main$2k,null,{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$2l)]),_:1}))}}),__vite_glob_0_8=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$2b},Symbol.toStringTag,{value:"Module"})),_sfc_main$2a=vue.defineComponent({__name:"setting",setup(te){return vue.inject("widgetConfig"),(U,G)=>(vue.openBlock(),vue.createBlock(_sfc_main$2k,null,{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$2l)]),_:1}))}}),__vite_glob_0_9=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$2a},Symbol.toStringTag,{value:"Module"})),_sfc_main$29=vue.defineComponent({__name:"setting",setup(te){return vue.inject("widgetConfig"),(U,G)=>(vue.openBlock(),vue.createBlock(_sfc_main$2k,null,{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$2l)]),_:1}))}}),__vite_glob_0_10=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$29},Symbol.toStringTag,{value:"Module"})),_sfc_main$28=vue.defineComponent({__name:"borderSetting",setup(te){const U=vue.inject("widgetConfig");return(G,ee)=>vue.unref(U)?(vue.openBlock(),vue.createBlock(_sfc_main$2n,{key:0,title:"基础"},{default:vue.withCtx(()=>[Object.keys(vue.unref(U).customize).includes("title")?(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElFormItem),{key:0,label:"标题"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInput),{modelValue:vue.unref(U).customize.title,"onUpdate:modelValue":ee[0]||(ee[0]=ne=>vue.unref(U).customize.title=ne)},null,8,["modelValue"])]),_:1})):vue.createCommentVNode("",!0),Object.keys(vue.unref(U).customize).includes("titleWidth")?(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElFormItem),{key:1,label:"标题宽度"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:vue.unref(U).customize.titleWidth,"onUpdate:modelValue":ee[1]||(ee[1]=ne=>vue.unref(U).customize.titleWidth=ne)},null,8,["modelValue"])]),_:1})):vue.createCommentVNode("",!0),vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:"边框主颜色"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$2o,{modelValue:vue.unref(U).customize.borderMainColor,"onUpdate:modelValue":ee[2]||(ee[2]=ne=>vue.unref(U).customize.borderMainColor=ne)},null,8,["modelValue"])]),_:1}),vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:"边框副颜色"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$2o,{modelValue:vue.unref(U).customize.borderSecondaryColor,"onUpdate:modelValue":ee[3]||(ee[3]=ne=>vue.unref(U).customize.borderSecondaryColor=ne)},null,8,["modelValue"])]),_:1}),Object.keys(vue.unref(U).customize).includes("reverse")?(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElFormItem),{key:2,label:"是否反转"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSwitch),{modelValue:vue.unref(U).customize.reverse,"onUpdate:modelValue":ee[4]||(ee[4]=ne=>vue.unref(U).customize.reverse=ne)},null,8,["modelValue"])]),_:1})):vue.createCommentVNode("",!0),Object.keys(vue.unref(U).customize).includes("duration")?(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElFormItem),{key:3,label:"动画时长"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:vue.unref(U).customize.duration,"onUpdate:modelValue":ee[5]||(ee[5]=ne=>vue.unref(U).customize.duration=ne)},null,8,["modelValue"])]),_:1})):vue.createCommentVNode("",!0),vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:"背景"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$2o,{modelValue:vue.unref(U).customize.backgroundColor,"onUpdate:modelValue":ee[6]||(ee[6]=ne=>vue.unref(U).customize.backgroundColor=ne)},null,8,["modelValue"])]),_:1})]),_:1})):vue.createCommentVNode("",!0)}}),_sfc_main$27=vue.defineComponent({__name:"setting",setup(te){return vue.inject("widgetConfig"),(U,G)=>(vue.openBlock(),vue.createBlock(_sfc_main$2k,null,{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$28)]),_:1}))}}),__vite_glob_1_0=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$27},Symbol.toStringTag,{value:"Module"})),_sfc_main$26=vue.defineComponent({__name:"setting",setup(te){return vue.inject("widgetConfig"),(U,G)=>(vue.openBlock(),vue.createBlock(_sfc_main$2k,null,{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$28)]),_:1}))}}),__vite_glob_1_1=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$26},Symbol.toStringTag,{value:"Module"})),_sfc_main$25=vue.defineComponent({__name:"setting",setup(te){return vue.inject("widgetConfig"),(U,G)=>(vue.openBlock(),vue.createBlock(_sfc_main$2k,null,{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$28)]),_:1}))}}),__vite_glob_1_2=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$25},Symbol.toStringTag,{value:"Module"})),_sfc_main$24=vue.defineComponent({__name:"setting",setup(te){return vue.inject("widgetConfig"),(U,G)=>(vue.openBlock(),vue.createBlock(_sfc_main$2k,null,{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$28)]),_:1}))}}),__vite_glob_1_3=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$24},Symbol.toStringTag,{value:"Module"})),_sfc_main$23=vue.defineComponent({__name:"setting",setup(te){return vue.inject("widgetConfig"),(U,G)=>(vue.openBlock(),vue.createBlock(_sfc_main$2k,null,{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$28)]),_:1}))}}),__vite_glob_1_4=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$23},Symbol.toStringTag,{value:"Module"})),_sfc_main$22=vue.defineComponent({__name:"setting",setup(te){return vue.inject("widgetConfig"),(U,G)=>(vue.openBlock(),vue.createBlock(_sfc_main$2k,null,{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$28)]),_:1}))}}),__vite_glob_1_5=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$22},Symbol.toStringTag,{value:"Module"})),_sfc_main$21=vue.defineComponent({__name:"setting",setup(te){return vue.inject("widgetConfig"),(U,G)=>(vue.openBlock(),vue.createBlock(_sfc_main$2k,null,{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$28)]),_:1}))}}),__vite_glob_1_6=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$21},Symbol.toStringTag,{value:"Module"})),_sfc_main$20=vue.defineComponent({__name:"setting",setup(te){return vue.inject("widgetConfig"),(U,G)=>(vue.openBlock(),vue.createBlock(_sfc_main$2k,null,{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$28)]),_:1}))}}),__vite_glob_1_7=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$20},Symbol.toStringTag,{value:"Module"})),_sfc_main$1$=vue.defineComponent({__name:"setting",setup(te){return vue.inject("widgetConfig"),(U,G)=>(vue.openBlock(),vue.createBlock(_sfc_main$2k,null,{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$28)]),_:1}))}}),__vite_glob_1_8=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$1$},Symbol.toStringTag,{value:"Module"})),_sfc_main$1_=vue.defineComponent({__name:"setting",setup(te){return vue.inject("widgetConfig"),(U,G)=>(vue.openBlock(),vue.createBlock(_sfc_main$2k,null,{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$28)]),_:1}))}}),__vite_glob_1_9=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$1_},Symbol.toStringTag,{value:"Module"})),_sfc_main$1Z=vue.defineComponent({__name:"setting",setup(te){return vue.inject("widgetConfig"),(U,G)=>(vue.openBlock(),vue.createBlock(_sfc_main$2k,null,{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$28)]),_:1}))}}),__vite_glob_1_10=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$1Z},Symbol.toStringTag,{value:"Module"})),_sfc_main$1Y=vue.defineComponent({__name:"setting",setup(te){return vue.inject("widgetConfig"),(U,G)=>(vue.openBlock(),vue.createBlock(_sfc_main$2k,null,{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$28)]),_:1}))}}),__vite_glob_1_11=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$1Y},Symbol.toStringTag,{value:"Module"})),_sfc_main$1X=vue.defineComponent({__name:"setting",setup(te){return vue.inject("widgetConfig"),(U,G)=>(vue.openBlock(),vue.createBlock(_sfc_main$2k,null,{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$28)]),_:1}))}}),__vite_glob_1_12=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$1X},Symbol.toStringTag,{value:"Module"})),_sfc_main$1W=vue.defineComponent({__name:"setting",setup(te){const U=vue.inject("widgetConfig");return(G,ee)=>{const ne=vue.resolveComponent("el-form-item"),re=vue.resolveComponent("el-input-number");return vue.unref(U)?(vue.openBlock(),vue.createBlock(_sfc_main$2k,{key:0},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$2n,{title:"基础"},{default:vue.withCtx(()=>[vue.createVNode(ne,{label:"背景色一"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$2o,{modelValue:vue.unref(U).customize.gradientColor0,"onUpdate:modelValue":ee[0]||(ee[0]=oe=>vue.unref(U).customize.gradientColor0=oe)},null,8,["modelValue"])]),_:1}),vue.createVNode(ne,{label:"背景色二"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$2o,{modelValue:vue.unref(U).customize.gradientColor1,"onUpdate:modelValue":ee[1]||(ee[1]=oe=>vue.unref(U).customize.gradientColor1=oe)},null,8,["modelValue"])]),_:1}),vue.createVNode(ne,{label:"宽度"},{default:vue.withCtx(()=>[vue.createVNode(re,{modelValue:vue.unref(U).customize.width,"onUpdate:modelValue":ee[2]||(ee[2]=oe=>vue.unref(U).customize.width=oe)},null,8,["modelValue"])]),_:1})]),_:1})]),_:1})):vue.createCommentVNode("",!0)}}}),__vite_glob_2_0=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$1W},Symbol.toStringTag,{value:"Module"})),_sfc_main$1V=vue.defineComponent({__name:"setting",setup(te){const U=vue.inject("widgetConfig");return(G,ee)=>vue.unref(U)?(vue.openBlock(),vue.createBlock(_sfc_main$2k,{key:0},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$2n,{title:"地址配置"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:"地址"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInput),{modelValue:vue.unref(U).customize.url,"onUpdate:modelValue":ee[0]||(ee[0]=ne=>vue.unref(U).customize.url=ne)},null,8,["modelValue"])]),_:1})]),_:1})]),_:1})):vue.createCommentVNode("",!0)}}),__vite_glob_2_1=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$1V},Symbol.toStringTag,{value:"Module"})),_withScopeId$A=te=>(vue.pushScopeId("data-v-ba7d8f9c"),te=te(),vue.popScopeId(),te),_hoisted_1$1y={class:"p-3"},_hoisted_2$1i=["src"],_hoisted_3$18={key:1,class:"pt-4 pb-4"},_hoisted_4$11=_withScopeId$A(()=>vue.createElementVNode("p",{class:"mb-5"},"拖拽文件上传图片",-1)),_hoisted_5$Q=_withScopeId$A(()=>vue.createElementVNode("i",{class:"text-6xl ri-image-add-line"},null,-1)),_hoisted_6$F=[_hoisted_4$11,_hoisted_5$Q],_sfc_main$1U=vue.defineComponent({__name:"setting",setup(te){const U=[{label:"压缩",value:"fill"},{label:"填充",value:"cover"},{label:"自适应",value:"contain"},{label:"原始大小",value:"none"},{label:"展示最小",value:"scale-down"}],{proxy:G}=vue.getCurrentInstance(),{resetUrl:ee}=G.$globalUtils,ne=vue.inject("widgetConfig"),re=async oe=>{const ie=new FormData;ie.append("file",oe.file);const le=await G.$baseHttp.post("/api/ace-api/blade-resource/oss/endpoint/put-file",ie,{headers:{"Content-Type":"multipart/form-data",loading:!0}});le&&(ne.value.customize.url=le.data.link)};return(oe,ie)=>vue.unref(ne)?(vue.openBlock(),vue.createBlock(_sfc_main$2k,{key:0},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$2n,{title:"图片配置"},{default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_1$1y,[vue.createVNode(vue.unref(elementPlus.ElUpload),{drag:"",limit:1,"http-request":re,"show-file-list":!1,accept:"image/*"},{default:vue.withCtx(()=>[vue.unref(ne).customize.url?(vue.openBlock(),vue.createElementBlock("img",{key:0,class:"max-h-40",src:vue.unref(ee)(vue.unref(ne).customize.url)},null,8,_hoisted_2$1i)):(vue.openBlock(),vue.createElementBlock("div",_hoisted_3$18,_hoisted_6$F))]),_:1})]),vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:"地址"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInput),{modelValue:vue.unref(ne).customize.url,"onUpdate:modelValue":ie[0]||(ie[0]=le=>vue.unref(ne).customize.url=le)},null,8,["modelValue"])]),_:1}),vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:"展示方式"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSelect),{modelValue:vue.unref(ne).customize.fit,"onUpdate:modelValue":ie[1]||(ie[1]=le=>vue.unref(ne).customize.fit=le)},{default:vue.withCtx(()=>[(vue.openBlock(),vue.createElementBlock(vue.Fragment,null,vue.renderList(U,le=>vue.createVNode(vue.unref(elementPlus.ElOption),{key:le.value,label:le.label,value:le.value},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1})):vue.createCommentVNode("",!0)}}),setting_vue_vue_type_style_index_0_scoped_ba7d8f9c_lang="",setting$1=_export_sfc$2(_sfc_main$1U,[["__scopeId","data-v-ba7d8f9c"]]),__vite_glob_2_2=Object.freeze(Object.defineProperty({__proto__:null,default:setting$1},Symbol.toStringTag,{value:"Module"})),_hoisted_1$1x=vue.createElementVNode("i",{class:"ri-arrow-right-fill ml-2 mr-2"},null,-1),_sfc_main$1T=vue.defineComponent({__name:"text",setup(te){const U=[{label:"靠左",value:"left"},{label:"居中",value:"center"},{label:"靠右",value:"right"}],G=vue.inject("widgetConfig");return(ee,ne)=>vue.unref(G)?(vue.openBlock(),vue.createBlock(_sfc_main$2n,{key:0,title:"文本"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:"文本"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInput),{modelValue:vue.unref(G).customize.title,"onUpdate:modelValue":ne[0]||(ne[0]=re=>vue.unref(G).customize.title=re)},null,8,["modelValue"])]),_:1}),vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:"字体大小"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInput),{modelValue:vue.unref(G).customize.fontSize,"onUpdate:modelValue":ne[1]||(ne[1]=re=>vue.unref(G).customize.fontSize=re)},{suffix:vue.withCtx(()=>[vue.createTextVNode("px")]),_:1},8,["modelValue"])]),_:1}),vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:"文字权重"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInput),{modelValue:vue.unref(G).customize.fontWeight,"onUpdate:modelValue":ne[2]||(ne[2]=re=>vue.unref(G).customize.fontWeight=re)},null,8,["modelValue"])]),_:1}),vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:"文字间距"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:vue.unref(G).customize.letterSpacing,"onUpdate:modelValue":ne[3]||(ne[3]=re=>vue.unref(G).customize.letterSpacing=re)},null,8,["modelValue"])]),_:1}),vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:"文字对齐方式"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSelect),{modelValue:vue.unref(G).customize.textAlign,"onUpdate:modelValue":ne[4]||(ne[4]=re=>vue.unref(G).customize.textAlign=re)},{default:vue.withCtx(()=>[(vue.openBlock(),vue.createElementBlock(vue.Fragment,null,vue.renderList(U,re=>vue.createVNode(vue.unref(elementPlus.ElOption),{key:re.value,label:re.label,value:re.value},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1}),vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:"文字渐变方向"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElRadioGroup),{modelValue:vue.unref(G).customize.colorPosition,"onUpdate:modelValue":ne[5]||(ne[5]=re=>vue.unref(G).customize.colorPosition=re)},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElRadio),{value:"top",label:"top"},{default:vue.withCtx(()=>[vue.createTextVNode("上下")]),_:1}),vue.createVNode(vue.unref(elementPlus.ElRadio),{value:"left",label:"left"},{default:vue.withCtx(()=>[vue.createTextVNode("左右")]),_:1})]),_:1},8,["modelValue"])]),_:1}),vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:"文字渐变颜色"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$2o,{modelValue:vue.unref(G).customize.startColor,"onUpdate:modelValue":ne[6]||(ne[6]=re=>vue.unref(G).customize.startColor=re),showInput:!1},null,8,["modelValue"]),_hoisted_1$1x,vue.createVNode(_sfc_main$2o,{modelValue:vue.unref(G).customize.endColor,"onUpdate:modelValue":ne[7]||(ne[7]=re=>vue.unref(G).customize.endColor=re),showInput:!1},null,8,["modelValue"])]),_:1})]),_:1})):vue.createCommentVNode("",!0)}}),_withScopeId$z=te=>(vue.pushScopeId("data-v-63b0e6ae"),te=te(),vue.popScopeId(),te),_hoisted_1$1w={class:"selection el-popper is-light el-popover"},_hoisted_2$1h=_withScopeId$z(()=>vue.createElementVNode("span",{class:"el-popper__arrow","data-popper-arrow":""},null,-1)),validKeys$1="0123456789+-*/@.()",_sfc_main$1S=vue.defineComponent({__name:"exp",setup(te){const U=screenDesignMainStore(),G=vue.inject("widgetConfig"),ee=vue.ref(null),ne=vue.ref(""),re=vue.computed(()=>{const be=[];return Object.keys(U.getCountMap).forEach(xe=>{const Ce=U.getCountMap[xe],$e=[];Object.keys(Ce.var).forEach(Ee=>{const Ve=Ee.replace(xe,Ce.title);$e.push({label:Ve.replace(`${Ce.title}.`,""),value:`${Ve}||${xe}`})}),be.push({label:Ce.title,value:xe,children:$e})}),be}),oe=be=>{const{key:xe}=be;switch(xe){case"Enter":be.preventDefault();break;case"@":case"Process":se();break}};let ie=null;const le=()=>{const be=vue.unref(ee).innerHTML;let xe=pe(be.replace(/<br>/g,""));xe=xe.map($e=>me($e)?ge($e):$e.data.split("").filter(Ee=>validKeys$1.includes(Ee)).join(""));const Ce=xe.join("");if(be!==Ce){const $e=_e(be,Ce);vue.unref(ee).innerHTML=Ce,ye(vue.unref(ee),$e)}clearTimeout(ie),ie=setTimeout(async()=>{fe()},500)},ae=vue.ref(!1),se=()=>{ne.value="",ae.value=!0},ue=be=>{ae.value=!1;const[xe,Ce]=be.split("||"),$e=`<div contenteditable="false">${xe}<span>${Ce}</span></div>`;de("@",$e)};(()=>{var be;if((be=vue.unref(G).customize.formula)!=null&&be.exp){const xe=vue.unref(G).customize.formula;let Ce=xe.exp??"";const $e=xe.identifier.split(","),Ee=/\{([^}]+)\}/g;let Ve=-1;Ce=Ce.replace(Ee,(Ne,Se)=>(Ve+=1,`<div contenteditable="false">${Se}<span>${$e[Ve]}</span></div>`)),vue.nextTick(()=>{vue.unref(ee).innerHTML=Ce.replace(/@/g,""),setTimeout(()=>{fe()},100)})}})();const de=(be,xe="")=>{if(!vue.unref(ee))return;let Ce=vue.unref(ee).innerHTML;Ce.includes(be)&&(Ce=Ce.replace(new RegExp(be,"g"),xe),vue.unref(ee).innerHTML=Ce),fe()},fe=()=>{let be="";const xe=[],Ce=vue.unref(ee).innerHTML.replace(/\sdata-spm-anchor-id=".*?"/g,"");he({text:Ce,prefix:'<div contenteditable="false">',suffix:"</div>"}).forEach(Ee=>{const[Ve,Ne]=he({text:Ee,prefix:"<span>",suffix:"</span>"});Ne?(be+=`{${Ve}}`,xe.push(Ne)):be+=Ve}),G.value.customize.formula={exp:be,identifier:xe.toString()}},ve=be=>{ae.value=!1,be&&de("@")},he=({text:be,prefix:xe,suffix:Ce})=>be.replace(new RegExp(xe,"g"),",").replace(new RegExp(Ce,"g"),",").split(",").filter($e=>!!$e),pe=be=>{const xe=document.createElement("div");return xe.innerHTML=be,[...xe.childNodes]},ge=be=>{let xe=document.createElement("div");xe.appendChild(be);let Ce=xe.innerHTML;return xe=be=null,Ce},me=be=>Object.prototype.toString.call(be)==="[object HTMLDivElement]",_e=(be,xe)=>{const Ce=be.split(""),$e=xe.split(""),Ee=Math.max(Ce.length,$e.length);let Ve=0;for(let Ne=0;Ne<Ee&&Ce[Ne]==$e[Ne];Ne++)Ve++;return Ve},ye=(be,xe)=>{const Ce=document.createRange(),$e=window.getSelection();let Ee=0,Ve=0;const Ne=pe(be.innerHTML);for(let Se=0;Se<Ne.length;Se++){const Pe=Ne[Se];if(me(Pe))xe-=ge(Pe).length;else if(xe>Pe.length)xe-=Pe.length;else{Ve=xe;break}Ee++}Ce.selectNodeContents(be),Ce.collapse(!1),be.childNodes[Ee]&&Ce.setStart(be.childNodes[Ee],Ve),Ce.collapse(!0),$e.removeAllRanges(),$e.addRange(Ce)};return(be,xe)=>(vue.openBlock(),vue.createElementBlock(vue.Fragment,null,[vue.createElementVNode("div",{ref_key:"formulaRef",ref:ee,class:"flex-1 formula",contenteditable:"",placeholder:"请输入表达式 输入「@」后选择指标",style:{"ime-mode":"disabled"},onKeydown:vue.withModifiers(oe,["stop"]),onKeyup:le},null,544),vue.withDirectives(vue.createElementVNode("div",_hoisted_1$1w,[vue.createElementVNode("div",{class:"mb-2.5 flex justify-between"},[vue.createTextVNode(" 选择变量 "),vue.createElementVNode("i",{class:"text-base cursor-pointer ri-close-circle-line",onClick:ve})]),vue.createVNode(vue.unref(elementPlus.ElTreeSelect),{onChange:ue,filterable:"",accordion:"",placeholder:"请选择变量",teleported:!1,modelValue:vue.unref(ne),"onUpdate:modelValue":xe[0]||(xe[0]=Ce=>vue.isRef(ne)?ne.value=Ce:null),data:vue.unref(re)},null,8,["modelValue","data"]),_hoisted_2$1h],512),[[vue.vShow,vue.unref(ae)]])],64))}}),exp_vue_vue_type_style_index_0_scoped_63b0e6ae_lang="",Exp=_export_sfc$2(_sfc_main$1S,[["__scopeId","data-v-63b0e6ae"]]),_withScopeId$y=te=>(vue.pushScopeId("data-v-ae8d9af3"),te=te(),vue.popScopeId(),te),_hoisted_1$1v=_withScopeId$y(()=>vue.createElementVNode("div",{class:"h-12"},null,-1)),_sfc_main$1R=vue.defineComponent({__name:"setting",setup(te){const U=vue.inject("widgetConfig");return(G,ee)=>(vue.openBlock(),vue.createBlock(_sfc_main$2k,null,{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1T),vue.createVNode(_sfc_main$2n,{title:"计算设置"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:"小数位"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{min:0,modelValue:vue.unref(U).customize.toFixed,"onUpdate:modelValue":ee[0]||(ee[0]=ne=>vue.unref(U).customize.toFixed=ne),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:"公式",class:"formula-item"},{default:vue.withCtx(()=>[vue.createVNode(Exp)]),_:1})]),_:1}),_hoisted_1$1v]),_:1}))}}),setting_vue_vue_type_style_index_0_scoped_ae8d9af3_lang="",setting=_export_sfc$2(_sfc_main$1R,[["__scopeId","data-v-ae8d9af3"]]),__vite_glob_2_3=Object.freeze(Object.defineProperty({__proto__:null,default:setting},Symbol.toStringTag,{value:"Module"})),_sfc_main$1Q=vue.defineComponent({__name:"setting",setup(te){const U=vue.inject("widgetConfig");return(G,ee)=>vue.unref(U)?(vue.openBlock(),vue.createBlock(_sfc_main$2k,{key:0},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$2n,{title:"基础"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:"渐变方向"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElRadioGroup),{modelValue:vue.unref(U).customize.colorPosition,"onUpdate:modelValue":ee[0]||(ee[0]=ne=>vue.unref(U).customize.colorPosition=ne)},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElRadio),{value:"bottom",label:"bottom"},{default:vue.withCtx(()=>[vue.createTextVNode("上下")]),_:1}),vue.createVNode(vue.unref(elementPlus.ElRadio),{value:"right",label:"right"},{default:vue.withCtx(()=>[vue.createTextVNode("左右")]),_:1})]),_:1},8,["modelValue"])]),_:1}),vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:"边角宽度"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:vue.unref(U).customize.borderRadius,"onUpdate:modelValue":ee[1]||(ee[1]=ne=>vue.unref(U).customize.borderRadius=ne)},null,8,["modelValue"])]),_:1}),vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:"背景色一"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$2o,{modelValue:vue.unref(U).customize.gradientColor0,"onUpdate:modelValue":ee[2]||(ee[2]=ne=>vue.unref(U).customize.gradientColor0=ne)},null,8,["modelValue"])]),_:1}),vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:"背景色二"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$2o,{modelValue:vue.unref(U).customize.gradientColor1,"onUpdate:modelValue":ee[3]||(ee[3]=ne=>vue.unref(U).customize.gradientColor1=ne)},null,8,["modelValue"])]),_:1})]),_:1})]),_:1})):vue.createCommentVNode("",!0)}}),__vite_glob_2_4=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$1Q},Symbol.toStringTag,{value:"Module"})),_sfc_main$1P=vue.defineComponent({__name:"setting",setup(te){return vue.inject("widgetConfig"),(U,G)=>(vue.openBlock(),vue.createBlock(_sfc_main$2k,null,{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1T)]),_:1}))}}),__vite_glob_2_5=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$1P},Symbol.toStringTag,{value:"Module"})),_sfc_main$1O=vue.defineComponent({__name:"setting",setup(te){return vue.inject("widgetConfig"),(U,G)=>(vue.openBlock(),vue.createBlock(_sfc_main$2k,null,{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1T)]),_:1}))}}),__vite_glob_2_6=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$1O},Symbol.toStringTag,{value:"Module"})),_sfc_main$1N=vue.defineComponent({__name:"setting",setup(te){const U=vue.inject("widgetConfig");return(G,ee)=>{const ne=vue.resolveComponent("el-form-item"),re=vue.resolveComponent("el-input-number");return vue.unref(U)?(vue.openBlock(),vue.createBlock(_sfc_main$2k,{key:0},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$2n,{title:"基础"},{default:vue.withCtx(()=>[vue.createVNode(ne,{label:"背景色一"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$2o,{modelValue:vue.unref(U).customize.gradientColor0,"onUpdate:modelValue":ee[0]||(ee[0]=oe=>vue.unref(U).customize.gradientColor0=oe)},null,8,["modelValue"])]),_:1}),vue.createVNode(ne,{label:"背景色二"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$2o,{modelValue:vue.unref(U).customize.gradientColor1,"onUpdate:modelValue":ee[1]||(ee[1]=oe=>vue.unref(U).customize.gradientColor1=oe)},null,8,["modelValue"])]),_:1}),vue.createVNode(ne,{label:"高度"},{default:vue.withCtx(()=>[vue.createVNode(re,{modelValue:vue.unref(U).customize.height,"onUpdate:modelValue":ee[2]||(ee[2]=oe=>vue.unref(U).customize.height=oe)},null,8,["modelValue"])]),_:1})]),_:1})]),_:1})):vue.createCommentVNode("",!0)}}}),__vite_glob_2_7=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$1N},Symbol.toStringTag,{value:"Module"})),_withScopeId$x=te=>(vue.pushScopeId("data-v-7afca816"),te=te(),vue.popScopeId(),te),_hoisted_1$1u=_withScopeId$x(()=>vue.createElementVNode("div",{class:"h-14"},null,-1)),_sfc_main$1M=vue.defineComponent({__name:"linkage",setup(te){const{proxy:U}=vue.getCurrentInstance(),G=screenDesignMainStore(),ee=vue.computed(()=>G.getWidgetList.filter(oe=>oe.modelType=="MODEL_INDICATORS")),ne=vue.inject("widgetConfig"),re=vue.ref([]);return U.$baseHttp.get("/api/ace-data-center/model-indicators/getConfJson",{params:{modelIndicatorsIds:vue.unref(ee).map(oe=>oe.indicatorsId).toString()}}).then(oe=>{re.value=[],console.log(vue.unref(ee)),vue.unref(ee).forEach(ie=>{const le=oe.data.formConfJsonMap[ie.indicatorsId];le&&re.value.push({label:ie.name,value:ie.indicatorsId,children:JSON.parse(le).map(ae=>({label:ae.name,value:ae.key}))})})}),(oe,ie)=>(vue.openBlock(),vue.createBlock(_sfc_main$2n,{title:"联动组件"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:""},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElCascader),{teleported:!1,style:{width:"100%"},placeholder:"请选择指标",modelValue:vue.unref(ne).customize.linkage,"onUpdate:modelValue":ie[0]||(ie[0]=le=>vue.unref(ne).customize.linkage=le),options:vue.unref(re),props:{multiple:!0},clearable:""},null,8,["modelValue","options"])]),_:1}),_hoisted_1$1u]),_:1}))}}),linkage_vue_vue_type_style_index_0_scoped_7afca816_lang="",linkage=_export_sfc$2(_sfc_main$1M,[["__scopeId","data-v-7afca816"]]),_hoisted_1$1t={class:"flex flex-wrap gap-1"},_hoisted_2$1g={class:"flex items-center gap-1"},_hoisted_3$17={class:"flex items-center gap-1"},_hoisted_4$10={class:"flex items-center gap-1"},_hoisted_5$P={class:"flex items-center gap-1"},_sfc_main$1L=vue.defineComponent({__name:"setting",setup(te){const U=vue.inject("widgetConfig");return(G,ee)=>vue.unref(U)?(vue.openBlock(),vue.createBlock(_sfc_main$2k,{key:0},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$2n,{title:"基础"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:"背景色"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$2o,{modelValue:vue.unref(U).customize.backgroundColor,"onUpdate:modelValue":ee[0]||(ee[0]=ne=>vue.unref(U).customize.backgroundColor=ne)},null,8,["modelValue"])]),_:1}),vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:"边框颜色"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$2o,{modelValue:vue.unref(U).customize.borderColor,"onUpdate:modelValue":ee[1]||(ee[1]=ne=>vue.unref(U).customize.borderColor=ne)},null,8,["modelValue"])]),_:1}),vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:"边框大小"},{default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_1$1t,[vue.createElementVNode("div",_hoisted_2$1g,[vue.createTextVNode(" 上 "),vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:vue.unref(U).customize.borderTopWidth,"onUpdate:modelValue":ee[2]||(ee[2]=ne=>vue.unref(U).customize.borderTopWidth=ne),"controls-position":"right"},null,8,["modelValue"])]),vue.createElementVNode("div",_hoisted_3$17,[vue.createTextVNode(" 右 "),vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:vue.unref(U).customize.borderRightWidth,"onUpdate:modelValue":ee[3]||(ee[3]=ne=>vue.unref(U).customize.borderRightWidth=ne),"controls-position":"right"},null,8,["modelValue"])]),vue.createElementVNode("div",_hoisted_4$10,[vue.createTextVNode(" 下 "),vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:vue.unref(U).customize.borderBottomWidth,"onUpdate:modelValue":ee[4]||(ee[4]=ne=>vue.unref(U).customize.borderBottomWidth=ne),"controls-position":"right"},null,8,["modelValue"])]),vue.createElementVNode("div",_hoisted_5$P,[vue.createTextVNode(" 左 "),vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:vue.unref(U).customize.borderLeftWidth,"onUpdate:modelValue":ee[5]||(ee[5]=ne=>vue.unref(U).customize.borderLeftWidth=ne),"controls-position":"right"},null,8,["modelValue"])])])]),_:1}),vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:"字体颜色"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$2o,{modelValue:vue.unref(U).customize.color,"onUpdate:modelValue":ee[6]||(ee[6]=ne=>vue.unref(U).customize.color=ne)},null,8,["modelValue"])]),_:1}),vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:"字体大小"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:vue.unref(U).customize.fontSize,"onUpdate:modelValue":ee[7]||(ee[7]=ne=>vue.unref(U).customize.fontSize=ne)},null,8,["modelValue"])]),_:1}),vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:"圆角大小"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:vue.unref(U).customize.borderRadius,"onUpdate:modelValue":ee[8]||(ee[8]=ne=>vue.unref(U).customize.borderRadius=ne)},null,8,["modelValue"])]),_:1})]),_:1}),vue.createVNode(_sfc_main$2n,{title:"输入框配置"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:"默认值"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInput),{modelValue:vue.unref(U).customize.modelValue,"onUpdate:modelValue":ee[9]||(ee[9]=ne=>vue.unref(U).customize.modelValue=ne)},null,8,["modelValue"])]),_:1}),vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:"空值显示"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInput),{modelValue:vue.unref(U).customize.placeholder,"onUpdate:modelValue":ee[10]||(ee[10]=ne=>vue.unref(U).customize.placeholder=ne)},null,8,["modelValue"])]),_:1})]),_:1}),vue.createVNode(linkage)]),_:1})):vue.createCommentVNode("",!0)}}),__vite_glob_3_0=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$1L},Symbol.toStringTag,{value:"Module"})),_sfc_main$1K=vue.defineComponent({__name:"setting",setup(te){const{proxy:U}=vue.getCurrentInstance(),G=vue.ref([]),ee=vue.ref([]),ne=vue.inject("widgetConfig");U.$baseHttp.get(`/api/ace-data-center/custom-dic/options?projectId=${U.$baseGetCurrentProjectId()}`).then(oe=>{G.value=oe.data,re(!1)});const re=(oe=!0)=>{const ie=vue.unref(ne).customize.dictId;oe&&(ee.value=[],vue.unref(ne).customize.modelValue=""),ie&&U.$baseHttp.get(`/api/ace-data-center/custom-dic/readDict/${ie}`).then(le=>{ee.value=le.data??[]})};return(oe,ie)=>vue.unref(ne)?(vue.openBlock(),vue.createBlock(_sfc_main$2k,{key:0},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$2n,{title:"基础信息"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:"值可清空"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSwitch),{modelValue:vue.unref(ne).customize.clearable,"onUpdate:modelValue":ie[0]||(ie[0]=le=>vue.unref(ne).customize.clearable=le)},null,8,["modelValue"])]),_:1})]),_:1}),vue.createVNode(_sfc_main$2n,{title:"下拉框配置"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:"字典"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSelect),{teleported:!1,modelValue:vue.unref(ne).customize.dictId,"onUpdate:modelValue":ie[1]||(ie[1]=le=>vue.unref(ne).customize.dictId=le),placeholder:"字典值",onChange:re},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vue.unref(G),le=>(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElOption),{label:le.label,value:le.code,key:le.code},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:"默认值"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSelect),{teleported:!1,modelValue:vue.unref(ne).customize.modelValue,"onUpdate:modelValue":ie[2]||(ie[2]=le=>vue.unref(ne).customize.modelValue=le),placeholder:"请选择",clearable:""},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vue.unref(ee),le=>(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElOption),{label:le.name,value:le.code,key:le.code},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:"空值显示"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInput),{modelValue:vue.unref(ne).customize.placeholder,"onUpdate:modelValue":ie[3]||(ie[3]=le=>vue.unref(ne).customize.placeholder=le)},null,8,["modelValue"])]),_:1})]),_:1}),vue.createVNode(linkage)]),_:1})):vue.createCommentVNode("",!0)}}),__vite_glob_3_1=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$1K},Symbol.toStringTag,{value:"Module"})),dict={lengendX:[{label:"靠左",value:"left"},{label:"居中",value:"center"},{label:"靠右",value:"right"}],lengendY:[{label:"靠上",value:"top"},{label:"居中",value:"center"},{label:"靠下",value:"bottom"}],orient:[{label:"水平",value:"horizontal"},{label:"垂直",value:"vertical"}],shape:[{label:"圆形",value:"circle"},{label:"方形",value:"rect"},{label:"圆角方形",value:"roundRect"},{label:"三角形",value:"triangle"},{label:"钢笔形",value:"pin"},{label:"箭头形",value:"arrow"}],xposition:[{label:"顶部",value:"top"},{label:"底部",value:"bottom"}],yposition:[{label:"左侧",value:"left"},{label:"右侧",value:"right"}],lineStyle:[{label:"实线",value:"solid"},{label:"虚线",value:"dashed"},{label:"点线",value:"dotted"}],category:[{label:"数据轴",value:"value"},{label:"类目轴",value:"category"}]},_hoisted_1$1s={class:"flex flex-col justify-start w-full"},_hoisted_2$1f={key:0,class:"flex items-center w-16 font-bold"},_hoisted_3$16=vue.createElementVNode("span",{class:"w-1 h-4 mr-2",style:{background:"var(--el-color-primary)"}},null,-1),_hoisted_4$$={class:"flex flex-wrap flex-1"},_hoisted_5$O=vue.createElementVNode("div",{class:"h-4"},null,-1),_sfc_main$1J=vue.defineComponent({__name:"setting-item-box",props:{name:{default:""}},setup(te){return(U,G)=>(vue.openBlock(),vue.createElementBlock(vue.Fragment,null,[vue.createElementVNode("div",_hoisted_1$1s,[U.name?(vue.openBlock(),vue.createElementBlock("div",_hoisted_2$1f,[_hoisted_3$16,vue.createTextVNode(" "+vue.toDisplayString(U.name),1)])):vue.createCommentVNode("",!0),vue.createElementVNode("div",_hoisted_4$$,[vue.renderSlot(U.$slots,"default")])]),_hoisted_5$O],64))}}),_hoisted_1$1r={class:"w-1/2 pr-2 mt-2"},_hoisted_2$1e={class:"text-xs mb-2"},_sfc_main$1I=vue.defineComponent({__name:"setting-item",props:{name:{default:""}},setup(te){return(U,G)=>(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$1r,[vue.createElementVNode("div",_hoisted_2$1e,vue.toDisplayString(U.name),1),vue.renderSlot(U.$slots,"default")]))}}),_sfc_main$1H=vue.defineComponent({__name:"setting-common",props:{option:{default:{}},type:{default:0}},setup(te){const U=te,{proxy:G}=vue.getCurrentInstance(),ee=G.$globalPreColor,ne=[{label:"横向",value:"horizontal"},{label:"纵向",value:"vertical"}];return vue.watch(()=>U.option.custom,re=>{U.option.yAxis&&(U.option.yAxis.axisLabel.formatter=`${re.prefix??""}{value}${re.suffix??""}`)},{deep:!0}),vue.watch(()=>U.option.showScroll,re=>{if(re)U.option.dataZoom=[{type:"slider",backgroundColor:"#eef8fd",fillerColor:"#14b1f8",borderColor:"#eef8fd",startValue:0,endValue:5,filterMode:"",showDetail:!1,width:"90%",height:10,handleSize:30,left:"5%",bottom:15},{type:"inside",zoomOnMouseWheel:!1,moveOnMouseWheel:!0,moveOnMouseMove:!0}];else{const oe=U.option.series;U.option.series=[],U.option.direction="",setTimeout(()=>{delete U.option.dataZoom,U.option.series=oe})}}),vue.watch(()=>U.option.direction,re=>{U.option.dataZoom.forEach((oe,ie)=>{re=="vertical"?oe.yAxisIndex=[0]:delete oe.yAxisIndex})}),(re,oe)=>(vue.openBlock(),vue.createElementBlock(vue.Fragment,null,[re.option.grid?(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElCollapseItem),{key:0,title:"容器"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1J,{name:""},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"左侧距离"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInput),{modelValue:re.option.grid.left,"onUpdate:modelValue":oe[0]||(oe[0]=ie=>re.option.grid.left=ie),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"右侧距离"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInput),{modelValue:re.option.grid.right,"onUpdate:modelValue":oe[1]||(oe[1]=ie=>re.option.grid.right=ie),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"上侧距离"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInput),{modelValue:re.option.grid.top,"onUpdate:modelValue":oe[2]||(oe[2]=ie=>re.option.grid.top=ie),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"下侧距离"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInput),{modelValue:re.option.grid.bottom,"onUpdate:modelValue":oe[3]||(oe[3]=ie=>re.option.grid.bottom=ie),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"自适应"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSwitch),{modelValue:re.option.grid.containLabel,"onUpdate:modelValue":oe[4]||(oe[4]=ie=>re.option.grid.containLabel=ie)},null,8,["modelValue"])]),_:1})]),_:1})]),_:1})):vue.createCommentVNode("",!0),[1,3,5].includes(re.type)?(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElCollapseItem),{key:1,title:"滚动条"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1J,{name:""},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"显示"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSwitch),{modelValue:re.option.showScroll,"onUpdate:modelValue":oe[5]||(oe[5]=ie=>re.option.showScroll=ie)},null,8,["modelValue"])]),_:1})]),_:1}),re.option.showScroll?(vue.openBlock(),vue.createBlock(_sfc_main$1J,{key:0,name:"参数"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"滚动条方向"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSelect),{modelValue:re.option.direction,"onUpdate:modelValue":oe[6]||(oe[6]=ie=>re.option.direction=ie),size:"small",style:{width:"100%"}},{default:vue.withCtx(()=>[(vue.openBlock(),vue.createElementBlock(vue.Fragment,null,vue.renderList(ne,ie=>vue.createVNode(vue.unref(elementPlus.ElOption),{key:ie.value,label:ie.label,value:ie.value},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"范围结束值"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:re.option.dataZoom[0].endValue,"onUpdate:modelValue":oe[7]||(oe[7]=ie=>re.option.dataZoom[0].endValue=ie),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"拖拽宽度"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInput),{modelValue:re.option.dataZoom[0].handleSize,"onUpdate:modelValue":oe[8]||(oe[8]=ie=>re.option.dataZoom[0].handleSize=ie),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"宽度"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInput),{modelValue:re.option.dataZoom[0].width,"onUpdate:modelValue":oe[9]||(oe[9]=ie=>re.option.dataZoom[0].width=ie),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"高度"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInput),{modelValue:re.option.dataZoom[0].height,"onUpdate:modelValue":oe[10]||(oe[10]=ie=>re.option.dataZoom[0].height=ie),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"上"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInput),{modelValue:re.option.dataZoom[0].top,"onUpdate:modelValue":oe[11]||(oe[11]=ie=>re.option.dataZoom[0].top=ie),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"右"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInput),{modelValue:re.option.dataZoom[0].right,"onUpdate:modelValue":oe[12]||(oe[12]=ie=>re.option.dataZoom[0].right=ie),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"下"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInput),{modelValue:re.option.dataZoom[0].bottom,"onUpdate:modelValue":oe[13]||(oe[13]=ie=>re.option.dataZoom[0].bottom=ie),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"左"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInput),{modelValue:re.option.dataZoom[0].left,"onUpdate:modelValue":oe[14]||(oe[14]=ie=>re.option.dataZoom[0].left=ie),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"背景颜色"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElColorPicker),{predefine:vue.unref(ee),modelValue:re.option.dataZoom[0].backgroundColor,"onUpdate:modelValue":oe[15]||(oe[15]=ie=>re.option.dataZoom[0].backgroundColor=ie)},null,8,["predefine","modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"选中范围颜色"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElColorPicker),{predefine:vue.unref(ee),modelValue:re.option.dataZoom[0].fillerColor,"onUpdate:modelValue":oe[16]||(oe[16]=ie=>re.option.dataZoom[0].fillerColor=ie)},null,8,["predefine","modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"边框颜色"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElColorPicker),{predefine:vue.unref(ee),modelValue:re.option.dataZoom[0].borderColor,"onUpdate:modelValue":oe[17]||(oe[17]=ie=>re.option.dataZoom[0].borderColor=ie)},null,8,["predefine","modelValue"])]),_:1})]),_:1})):vue.createCommentVNode("",!0)]),_:1})):vue.createCommentVNode("",!0),re.option.legend?(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElCollapseItem),{key:2,title:"图例"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1J,{name:""},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"显示"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSwitch),{modelValue:re.option.legend.show,"onUpdate:modelValue":oe[18]||(oe[18]=ie=>re.option.legend.show=ie)},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"字体颜色"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElColorPicker),{predefine:vue.unref(ee),modelValue:re.option.legend.textStyle.color,"onUpdate:modelValue":oe[19]||(oe[19]=ie=>re.option.legend.textStyle.color=ie)},null,8,["predefine","modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"字体大小"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:re.option.legend.textStyle.fontSize,"onUpdate:modelValue":oe[20]||(oe[20]=ie=>re.option.legend.textStyle.fontSize=ie),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"x轴"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSelect),{modelValue:re.option.legend.x,"onUpdate:modelValue":oe[21]||(oe[21]=ie=>re.option.legend.x=ie),size:"small"},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vue.unref(dict).lengendX,ie=>(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElOption),{key:ie.value,label:ie.label,value:ie.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"y轴"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSelect),{modelValue:re.option.legend.y,"onUpdate:modelValue":oe[22]||(oe[22]=ie=>re.option.legend.y=ie),size:"small"},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vue.unref(dict).lengendY,ie=>(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElOption),{key:ie.value,label:ie.label,value:ie.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"方向"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSelect),{modelValue:re.option.legend.orient,"onUpdate:modelValue":oe[23]||(oe[23]=ie=>re.option.legend.orient=ie),size:"small"},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vue.unref(dict).orient,ie=>(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElOption),{key:ie.value,label:ie.label,value:ie.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),re.option.legend.icon?(vue.openBlock(),vue.createBlock(_sfc_main$1I,{key:0,name:"形状"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSelect),{modelValue:re.option.legend.icon,"onUpdate:modelValue":oe[24]||(oe[24]=ie=>re.option.legend.icon=ie),size:"small"},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vue.unref(dict).shape,ie=>(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElOption),{key:ie.value,label:ie.label,value:ie.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})):vue.createCommentVNode("",!0),vue.createVNode(_sfc_main$1I,{name:"宽"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:re.option.legend.itemWidth,"onUpdate:modelValue":oe[25]||(oe[25]=ie=>re.option.legend.itemWidth=ie),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"高"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:re.option.legend.itemHeight,"onUpdate:modelValue":oe[26]||(oe[26]=ie=>re.option.legend.itemHeight=ie),size:"small"},null,8,["modelValue"])]),_:1})]),_:1})]),_:1})):vue.createCommentVNode("",!0),re.option.xAxis?(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElCollapseItem),{key:3,title:"x轴"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1J,{name:""},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"显示"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSwitch),{modelValue:re.option.xAxis.show,"onUpdate:modelValue":oe[27]||(oe[27]=ie=>re.option.xAxis.show=ie)},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"类型"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSelect),{modelValue:re.option.xAxis.type,"onUpdate:modelValue":oe[28]||(oe[28]=ie=>re.option.xAxis.type=ie),size:"small"},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vue.unref(dict).category,ie=>(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElOption),{key:ie.value,label:ie.label,value:ie.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"最小值"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSelect),{"allow-create":"",filterable:"",clearable:"",modelValue:re.option.xAxis.min,"onUpdate:modelValue":oe[29]||(oe[29]=ie=>re.option.xAxis.min=ie),size:"small"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElOption),{label:"dataMin",value:"dataMin"})]),_:1},8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"最大值"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSelect),{"allow-create":"",filterable:"",clearable:"",modelValue:re.option.xAxis.max,"onUpdate:modelValue":oe[30]||(oe[30]=ie=>re.option.xAxis.max=ie),size:"small"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElOption),{label:"dataMax",value:"dataMax"})]),_:1},8,["modelValue"])]),_:1})]),_:1}),vue.createVNode(_sfc_main$1J,{name:"轴线"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"位置"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSelect),{modelValue:re.option.xAxis.position,"onUpdate:modelValue":oe[31]||(oe[31]=ie=>re.option.xAxis.position=ie),size:"small"},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vue.unref(dict).xposition,ie=>(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElOption),{key:ie.value,label:ie.label,value:ie.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"反向"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSwitch),{modelValue:re.option.xAxis.inverse,"onUpdate:modelValue":oe[32]||(oe[32]=ie=>re.option.xAxis.inverse=ie)},null,8,["modelValue"])]),_:1})]),_:1}),vue.createVNode(_sfc_main$1J,{name:"标签"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"大小"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:re.option.xAxis.axisLabel.fontSize,"onUpdate:modelValue":oe[33]||(oe[33]=ie=>re.option.xAxis.axisLabel.fontSize=ie),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"间隔"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:re.option.xAxis.axisLabel.interval,"onUpdate:modelValue":oe[34]||(oe[34]=ie=>re.option.xAxis.axisLabel.interval=ie),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"旋转"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:re.option.xAxis.axisLabel.rotate,"onUpdate:modelValue":oe[35]||(oe[35]=ie=>re.option.xAxis.axisLabel.rotate=ie),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"颜色"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElColorPicker),{predefine:vue.unref(ee),modelValue:re.option.xAxis.axisLabel.color,"onUpdate:modelValue":oe[36]||(oe[36]=ie=>re.option.xAxis.axisLabel.color=ie)},null,8,["predefine","modelValue"])]),_:1})]),_:1}),vue.createVNode(_sfc_main$1J,{name:"单位"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"名称"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInput),{modelValue:re.option.xAxis.name,"onUpdate:modelValue":oe[37]||(oe[37]=ie=>re.option.xAxis.name=ie),size:"small",placeholder:"请输入单位"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"大小"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:re.option.xAxis.nameTextStyle.fontSize,"onUpdate:modelValue":oe[38]||(oe[38]=ie=>re.option.xAxis.nameTextStyle.fontSize=ie),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"颜色"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElColorPicker),{predefine:vue.unref(ee),modelValue:re.option.xAxis.nameTextStyle.color,"onUpdate:modelValue":oe[39]||(oe[39]=ie=>re.option.xAxis.nameTextStyle.color=ie)},null,8,["predefine","modelValue"])]),_:1})]),_:1}),vue.createVNode(_sfc_main$1J,{name:"分割线"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"显示"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSwitch),{modelValue:re.option.xAxis.splitLine.show,"onUpdate:modelValue":oe[40]||(oe[40]=ie=>re.option.xAxis.splitLine.show=ie)},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"粗细"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:re.option.xAxis.splitLine.lineStyle.width,"onUpdate:modelValue":oe[41]||(oe[41]=ie=>re.option.xAxis.splitLine.lineStyle.width=ie),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"类型"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSelect),{modelValue:re.option.xAxis.splitLine.lineStyle.type,"onUpdate:modelValue":oe[42]||(oe[42]=ie=>re.option.xAxis.splitLine.lineStyle.type=ie),size:"small"},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vue.unref(dict).lineStyle,ie=>(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElOption),{key:ie.value,label:ie.label,value:ie.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"颜色"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElColorPicker),{predefine:vue.unref(ee),modelValue:re.option.xAxis.splitLine.lineStyle.color,"onUpdate:modelValue":oe[43]||(oe[43]=ie=>re.option.xAxis.splitLine.lineStyle.color=ie)},null,8,["predefine","modelValue"])]),_:1})]),_:1})]),_:1})):vue.createCommentVNode("",!0),re.option.yAxis?(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElCollapseItem),{key:4,title:"y轴"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1J,{name:""},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"显示"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSwitch),{modelValue:re.option.yAxis.show,"onUpdate:modelValue":oe[44]||(oe[44]=ie=>re.option.yAxis.show=ie)},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"类型"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSelect),{modelValue:re.option.yAxis.type,"onUpdate:modelValue":oe[45]||(oe[45]=ie=>re.option.yAxis.type=ie),size:"small"},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vue.unref(dict).category,ie=>(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElOption),{key:ie.value,label:ie.label,value:ie.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"最小值"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSelect),{"allow-create":"",filterable:"",clearable:"",modelValue:re.option.yAxis.min,"onUpdate:modelValue":oe[46]||(oe[46]=ie=>re.option.yAxis.min=ie),size:"small"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElOption),{label:"dataMin",value:"dataMin"})]),_:1},8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"最大值"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSelect),{"allow-create":"",filterable:"",clearable:"",modelValue:re.option.yAxis.max,"onUpdate:modelValue":oe[47]||(oe[47]=ie=>re.option.yAxis.max=ie),size:"small"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElOption),{label:"dataMax",value:"dataMax"})]),_:1},8,["modelValue"])]),_:1})]),_:1}),vue.createVNode(_sfc_main$1J,{name:"轴线"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"位置"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSelect),{modelValue:re.option.yAxis.position,"onUpdate:modelValue":oe[48]||(oe[48]=ie=>re.option.yAxis.position=ie),size:"small"},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vue.unref(dict).yposition,ie=>(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElOption),{key:ie.value,label:ie.label,value:ie.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"反向"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSwitch),{modelValue:re.option.yAxis.inverse,"onUpdate:modelValue":oe[49]||(oe[49]=ie=>re.option.yAxis.inverse=ie)},null,8,["modelValue"])]),_:1})]),_:1}),vue.createVNode(_sfc_main$1J,{name:"标签"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"大小"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:re.option.yAxis.axisLabel.fontSize,"onUpdate:modelValue":oe[50]||(oe[50]=ie=>re.option.yAxis.axisLabel.fontSize=ie),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"间隔"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:re.option.yAxis.axisLabel.interval,"onUpdate:modelValue":oe[51]||(oe[51]=ie=>re.option.yAxis.axisLabel.interval=ie),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"旋转"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:re.option.yAxis.axisLabel.rotate,"onUpdate:modelValue":oe[52]||(oe[52]=ie=>re.option.yAxis.axisLabel.rotate=ie),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"颜色"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElColorPicker),{predefine:vue.unref(ee),modelValue:re.option.yAxis.axisLabel.color,"onUpdate:modelValue":oe[53]||(oe[53]=ie=>re.option.yAxis.axisLabel.color=ie)},null,8,["predefine","modelValue"])]),_:1})]),_:1}),vue.createVNode(_sfc_main$1J,{name:"单位"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"名称"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInput),{modelValue:re.option.yAxis.name,"onUpdate:modelValue":oe[54]||(oe[54]=ie=>re.option.yAxis.name=ie),size:"small",placeholder:"请输入单位"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"大小"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:re.option.yAxis.nameTextStyle.fontSize,"onUpdate:modelValue":oe[55]||(oe[55]=ie=>re.option.yAxis.nameTextStyle.fontSize=ie),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"颜色"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElColorPicker),{predefine:vue.unref(ee),modelValue:re.option.yAxis.nameTextStyle.color,"onUpdate:modelValue":oe[56]||(oe[56]=ie=>re.option.yAxis.nameTextStyle.color=ie)},null,8,["predefine","modelValue"])]),_:1})]),_:1}),vue.createVNode(_sfc_main$1J,{name:"分割线"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"显示"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSwitch),{modelValue:re.option.yAxis.splitLine.show,"onUpdate:modelValue":oe[57]||(oe[57]=ie=>re.option.yAxis.splitLine.show=ie)},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"粗细"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:re.option.yAxis.splitLine.lineStyle.width,"onUpdate:modelValue":oe[58]||(oe[58]=ie=>re.option.yAxis.splitLine.lineStyle.width=ie),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"类型"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSelect),{modelValue:re.option.yAxis.splitLine.lineStyle.type,"onUpdate:modelValue":oe[59]||(oe[59]=ie=>re.option.yAxis.splitLine.lineStyle.type=ie),size:"small"},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vue.unref(dict).lineStyle,ie=>(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElOption),{key:ie.value,label:ie.label,value:ie.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"颜色"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElColorPicker),{predefine:vue.unref(ee),modelValue:re.option.yAxis.splitLine.lineStyle.color,"onUpdate:modelValue":oe[60]||(oe[60]=ie=>re.option.yAxis.splitLine.lineStyle.color=ie)},null,8,["predefine","modelValue"])]),_:1})]),_:1})]),_:1})):vue.createCommentVNode("",!0),re.option.custom&&![2].includes(re.type)?(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElCollapseItem),{key:5,title:"显示"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1J,{name:""},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"前缀"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInput),{modelValue:re.option.custom.prefix,"onUpdate:modelValue":oe[61]||(oe[61]=ie=>re.option.custom.prefix=ie),size:"small",placeholder:"前缀"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"后缀"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInput),{modelValue:re.option.custom.suffix,"onUpdate:modelValue":oe[62]||(oe[62]=ie=>re.option.custom.suffix=ie),size:"small",placeholder:"后缀"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"保留小数"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{min:0,modelValue:re.option.custom.toFixed,"onUpdate:modelValue":oe[63]||(oe[63]=ie=>re.option.custom.toFixed=ie),size:"small"},null,8,["modelValue"])]),_:1}),re.type==7?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[vue.createVNode(_sfc_main$1I,{name:"字体大小"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:re.option.custom.fontSize,"onUpdate:modelValue":oe[64]||(oe[64]=ie=>re.option.custom.fontSize=ie),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"颜色"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElColorPicker),{predefine:vue.unref(ee),modelValue:re.option.custom.color,"onUpdate:modelValue":oe[65]||(oe[65]=ie=>re.option.custom.color=ie)},null,8,["predefine","modelValue"])]),_:1})],64)):vue.createCommentVNode("",!0)]),_:1})]),_:1})):vue.createCommentVNode("",!0)],64))}}),settingCommon_vue_vue_type_style_index_0_scoped_003224ac_lang="",SettingCommon=_export_sfc$2(_sfc_main$1H,[["__scopeId","data-v-003224ac"]]),_hoisted_1$1q={class:"ml-2"},_hoisted_2$1d={class:"flex justify-end flex-1"},_hoisted_3$15=["onClick"],_hoisted_4$_=vue.createElementVNode("i",{class:"cursor-move ri-draggable sortable-handle"},null,-1),_sfc_main$1G=vue.defineComponent({__name:"config",props:{option:{default:{}},type:{default:""},immediate:{type:Boolean,default:!1}},setup(te){const U=screenDesignMainStore(),G=te,{proxy:ee}=vue.getCurrentInstance(),ne=ee.$globalPreColor,re=[{label:"顶部",value:"top"},{label:"左侧",value:"left"},{label:"右侧",value:"right"},{label:"底部",value:"bottom"}],{setChartData:oe}=useCustomChart(),{seriesItem:ie,init:le,customSeriesData:ae}=useBarCommon();vue.ref(null);const se=vue.ref(JSON.parse(JSON.stringify(Object.values(ae.value)[0]??ie)));vue.watch(se,()=>ue(),{deep:!0}),vue.watch(()=>G.option.dataShow,()=>{le(G.option,()=>{ue()})},{deep:!0,immediate:G.immediate}),vue.watch(()=>G.option.dataShow.x,async()=>{G.option.dataset.source=await oe(G.type,G.option.dataShow.x)});const ue=()=>{const de=se.value,fe=ve=>{ve.barWidth=de.barWidth,ve.stack=de.stack,ve.label.show=de.label.show,ve.label.color=de.label.color,ve.label.position=de.label.position,ve.label.fontSize=de.label.fontSize,ve.label.rotate=de.label.rotate,ve.itemStyle.borderRadius=[de.borderRadiusNumber,de.borderRadiusNumber,0,0]};G.option.series.forEach(ve=>{fe(ve)}),Object.keys(ae.value).forEach(ve=>{fe(vue.unref(ae)[ve])}),window.customSeriesData=ae.value},ce=de=>{const{hide:fe}=G.option.dataShow;fe.includes(de)?fe.splice(fe.findIndex(ve=>ve==de),1):fe.push(de)};return(de,fe)=>(vue.openBlock(),vue.createElementBlock(vue.Fragment,null,[vue.createVNode(SettingCommon,{option:de.option,type:3},null,8,["option"]),vue.createVNode(vue.unref(elementPlus.ElCollapseItem),{title:"柱状配置"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1J,{name:""},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"大小"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:vue.unref(se).barWidth,"onUpdate:modelValue":fe[0]||(fe[0]=ve=>vue.unref(se).barWidth=ve),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"堆栈"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSwitch),{modelValue:vue.unref(se).stack,"onUpdate:modelValue":fe[1]||(fe[1]=ve=>vue.unref(se).stack=ve)},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"圆角"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{min:0,modelValue:vue.unref(se).borderRadiusNumber,"onUpdate:modelValue":fe[2]||(fe[2]=ve=>vue.unref(se).borderRadiusNumber=ve),size:"small"},null,8,["modelValue"])]),_:1})]),_:1}),vue.createVNode(_sfc_main$1J,{name:"标签"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"展示"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSwitch),{modelValue:vue.unref(se).label.show,"onUpdate:modelValue":fe[3]||(fe[3]=ve=>vue.unref(se).label.show=ve)},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"位置"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSelect),{modelValue:vue.unref(se).label.position,"onUpdate:modelValue":fe[4]||(fe[4]=ve=>vue.unref(se).label.position=ve),size:"small"},{default:vue.withCtx(()=>[(vue.openBlock(),vue.createElementBlock(vue.Fragment,null,vue.renderList(re,ve=>vue.createVNode(vue.unref(elementPlus.ElOption),{key:ve.value,label:ve.label,value:ve.value},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"旋转"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:vue.unref(se).label.rotate,"onUpdate:modelValue":fe[5]||(fe[5]=ve=>vue.unref(se).label.rotate=ve),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"大小"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:vue.unref(se).label.fontSize,"onUpdate:modelValue":fe[6]||(fe[6]=ve=>vue.unref(se).label.fontSize=ve),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"颜色"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElColorPicker),{predefine:vue.unref(ne),modelValue:vue.unref(se).label.color,"onUpdate:modelValue":fe[7]||(fe[7]=ve=>vue.unref(se).label.color=ve)},null,8,["predefine","modelValue"])]),_:1})]),_:1})]),_:1}),vue.createVNode(vue.unref(elementPlus.ElCollapseItem),{title:"数据",name:"data"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1J,{name:""},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"X轴",style:{width:"100%"}},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSelect),{modelValue:de.option.dataShow.x,"onUpdate:modelValue":fe[8]||(fe[8]=ve=>de.option.dataShow.x=ve),size:"small",style:{width:"100%"}},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vue.unref(U).getChartData.x,ve=>(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElOption),{key:ve.comment,label:ve.comment,value:ve.comment},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"Y轴",style:{width:"100%","margin-top":"10px"}},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(vueDraggablePlus.VueDraggable),{modelValue:de.option.dataShow.y,"onUpdate:modelValue":fe[9]||(fe[9]=ve=>de.option.dataShow.y=ve),animation:150,handle:".sortable-handle"},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(de.option.dataShow.y,(ve,he)=>(vue.openBlock(),vue.createElementBlock("div",{key:ve,class:"w-full sort-item"},[vue.unref(ae)[ve]?(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElColorPicker),{key:0,predefine:vue.unref(ne),size:"small",modelValue:vue.unref(ae)[ve].itemStyle.color,"onUpdate:modelValue":pe=>vue.unref(ae)[ve].itemStyle.color=pe},null,8,["predefine","modelValue","onUpdate:modelValue"])):vue.createCommentVNode("",!0),vue.createTextVNode(" "+vue.toDisplayString(vue.unref(ae)[ve].itemStyle.color)+" ",1),vue.createElementVNode("span",_hoisted_1$1q,vue.toDisplayString(ve),1),vue.createElementVNode("div",_hoisted_2$1d,[vue.createElementVNode("i",{onClick:pe=>ce(ve),class:vue.normalizeClass([de.option.dataShow.hide.includes(ve)?"ri-eye-off-line":"ri-eye-line","mr-2 cursor-pointer"])},null,10,_hoisted_3$15),_hoisted_4$_])]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1})],64))}}),_hoisted_1$1p={class:"ml-2"},_hoisted_2$1c={class:"flex justify-end flex-1"},_hoisted_3$14=["onClick"],_hoisted_4$Z=vue.createElementVNode("i",{class:"cursor-move ri-draggable sortable-handle"},null,-1),_sfc_main$1F=vue.defineComponent({__name:"config",props:{option:{default:{}},type:{default:""},immediate:{type:Boolean,default:!1}},setup(te){const U=screenDesignMainStore(),G=te,{proxy:ee}=vue.getCurrentInstance(),ne=ee.$globalPreColor,re=[{label:"顶部",value:"top"},{label:"左侧",value:"left"},{label:"右侧",value:"right"},{label:"底部",value:"bottom"}],oe=[{label:"实线",value:"solid"},{label:"虚线",value:"dashed"},{label:"点线",value:"dotted"}],{setChartData:ie}=useCustomChart(),{seriesItem:le,init:ae,customSeriesData:se}=useLineCommon();vue.ref(null);const ue=vue.ref(JSON.parse(JSON.stringify(Object.values(se.value)[0]??le)));vue.watch(ue,()=>ce(),{deep:!0}),vue.watch(()=>G.option.dataShow,()=>{ae(G.option,()=>{ce()})},{deep:!0,immediate:G.immediate}),vue.watch(()=>G.option.dataShow.x,async()=>{G.option.dataset.source=await ie(G.type,G.option.dataShow.x)});const ce=()=>{const fe=JSON.parse(JSON.stringify(ue.value)),ve=he=>{Object.keys(fe).forEach(pe=>{pe=="lineStyle"?Object.keys(he[pe]).forEach(ge=>{ge!="color"&&(he[pe][ge]=fe[pe][ge])}):he[pe]=fe[pe]})};G.option.series.forEach(he=>{ve(he)}),Object.keys(se.value).forEach(he=>{ve(vue.unref(se)[he])}),window.customSeriesData=se.value},de=fe=>{const{hide:ve}=G.option.dataShow;ve.includes(fe)?ve.splice(ve.findIndex(he=>he==fe),1):ve.push(fe)};return(fe,ve)=>(vue.openBlock(),vue.createElementBlock(vue.Fragment,null,[vue.createVNode(SettingCommon,{option:fe.option,type:1},null,8,["option"]),vue.createVNode(vue.unref(elementPlus.ElCollapseItem),{title:"折线配置"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1J,{name:"线条"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"宽度"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:vue.unref(ue).lineStyle.width,"onUpdate:modelValue":ve[0]||(ve[0]=he=>vue.unref(ue).lineStyle.width=he),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"类型"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSelect),{modelValue:vue.unref(ue).lineStyle.type,"onUpdate:modelValue":ve[1]||(ve[1]=he=>vue.unref(ue).lineStyle.type=he),size:"small"},{default:vue.withCtx(()=>[(vue.openBlock(),vue.createElementBlock(vue.Fragment,null,vue.renderList(oe,he=>vue.createVNode(vue.unref(elementPlus.ElOption),{key:he.value,label:he.label,value:he.value},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1})]),_:1}),vue.createVNode(_sfc_main$1J,{name:"实心点"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"大小"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:vue.unref(ue).symbolSize,"onUpdate:modelValue":ve[2]||(ve[2]=he=>vue.unref(ue).symbolSize=he),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"平滑"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSwitch),{modelValue:vue.unref(ue).smooth,"onUpdate:modelValue":ve[3]||(ve[3]=he=>vue.unref(ue).smooth=he)},null,8,["modelValue"])]),_:1})]),_:1}),vue.createVNode(_sfc_main$1J,{name:"标签"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"展示"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSwitch),{modelValue:vue.unref(ue).label.show,"onUpdate:modelValue":ve[4]||(ve[4]=he=>vue.unref(ue).label.show=he)},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"位置"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSelect),{modelValue:vue.unref(ue).label.position,"onUpdate:modelValue":ve[5]||(ve[5]=he=>vue.unref(ue).label.position=he),size:"small"},{default:vue.withCtx(()=>[(vue.openBlock(),vue.createElementBlock(vue.Fragment,null,vue.renderList(re,he=>vue.createVNode(vue.unref(elementPlus.ElOption),{key:he.value,label:he.label,value:he.value},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"旋转"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:vue.unref(ue).label.rotate,"onUpdate:modelValue":ve[6]||(ve[6]=he=>vue.unref(ue).label.rotate=he),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"大小"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:vue.unref(ue).label.fontSize,"onUpdate:modelValue":ve[7]||(ve[7]=he=>vue.unref(ue).label.fontSize=he),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"颜色"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElColorPicker),{predefine:vue.unref(ne),modelValue:vue.unref(ue).label.color,"onUpdate:modelValue":ve[8]||(ve[8]=he=>vue.unref(ue).label.color=he)},null,8,["predefine","modelValue"])]),_:1})]),_:1})]),_:1}),vue.createVNode(vue.unref(elementPlus.ElCollapseItem),{title:"数据",name:"data"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1J,{name:""},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"X轴",style:{width:"100%"}},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSelect),{modelValue:fe.option.dataShow.x,"onUpdate:modelValue":ve[9]||(ve[9]=he=>fe.option.dataShow.x=he),size:"small",style:{width:"100%"}},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vue.unref(U).getChartData.x,he=>(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElOption),{key:he.comment,label:he.comment,value:he.comment},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"Y轴",style:{width:"100%","margin-top":"10px"}},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(vueDraggablePlus.VueDraggable),{modelValue:fe.option.dataShow.y,"onUpdate:modelValue":ve[10]||(ve[10]=he=>fe.option.dataShow.y=he),animation:150,handle:".sortable-handle"},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(fe.option.dataShow.y,(he,pe)=>(vue.openBlock(),vue.createElementBlock("div",{key:he,class:"w-full sort-item"},[vue.unref(se)[he]?(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElColorPicker),{key:0,size:"small",predefine:vue.unref(ne),modelValue:vue.unref(se)[he].lineStyle.color,"onUpdate:modelValue":ge=>vue.unref(se)[he].lineStyle.color=ge},null,8,["predefine","modelValue","onUpdate:modelValue"])):vue.createCommentVNode("",!0),vue.createElementVNode("span",_hoisted_1$1p,vue.toDisplayString(he),1),vue.createElementVNode("div",_hoisted_2$1c,[vue.createElementVNode("i",{onClick:ge=>de(he),class:vue.normalizeClass([fe.option.dataShow.hide.includes(he)?"ri-eye-off-line":"ri-eye-line","mr-2 cursor-pointer"])},null,10,_hoisted_3$14),_hoisted_4$Z])]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1})],64))}}),_sfc_main$1E=vue.defineComponent({__name:"config",props:{option:{default:{}},type:{default:""},immediate:{type:Boolean,default:!1}},setup(te){const U=screenDesignMainStore(),G=te,{proxy:ee}=vue.getCurrentInstance(),ne=ee.$globalPreColor,re=[{label:"外侧",value:"outside"},{label:"内部",value:"inside"},{label:"中心",value:"center"}],oe=[{label:"数据名",value:"{b}"},{label:"百分比",value:"{d}"},{label:"列名:百分比",value:"{b}:{d}%"}],{setChartData:ie}=useCustomChart(),{seriesItem:le,init:ae,customSeriesData:se}=usePieCommon(),ue=vue.ref(JSON.parse(JSON.stringify(Object.values(se.value)[0]??le)));vue.watch(ue,()=>ce(),{deep:!0}),vue.watch(()=>G.option.dataShow,async()=>{G.option.dataset.source=await ie(G.type,G.option.dataShow.x),ae(G.option,()=>{ce()})},{deep:!0,immediate:G.immediate});const ce=()=>{const de=ue.value,fe=ve=>{Object.keys(de).forEach(he=>{ve[he]=de[he]})};G.option.series.forEach(ve=>{fe(ve)}),Object.keys(se.value).forEach(ve=>{fe(vue.unref(se)[ve])}),window.customSeriesData=se.value};return(de,fe)=>(vue.openBlock(),vue.createElementBlock(vue.Fragment,null,[vue.createVNode(SettingCommon,{option:de.option,type:2},null,8,["option"]),vue.createVNode(vue.unref(elementPlus.ElCollapseItem),{title:"饼图配置"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1J,{name:"样式"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"半径1"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInput),{modelValue:vue.unref(ue).radius[0],"onUpdate:modelValue":fe[0]||(fe[0]=ve=>vue.unref(ue).radius[0]=ve),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"半径2"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInput),{modelValue:vue.unref(ue).radius[1],"onUpdate:modelValue":fe[1]||(fe[1]=ve=>vue.unref(ue).radius[1]=ve),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"距离1"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInput),{modelValue:vue.unref(ue).center[0],"onUpdate:modelValue":fe[2]||(fe[2]=ve=>vue.unref(ue).center[0]=ve),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"距离2"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInput),{modelValue:vue.unref(ue).center[1],"onUpdate:modelValue":fe[3]||(fe[3]=ve=>vue.unref(ue).center[1]=ve),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"南丁格尔图"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSwitch),{modelValue:vue.unref(ue).roseType,"onUpdate:modelValue":fe[4]||(fe[4]=ve=>vue.unref(ue).roseType=ve)},null,8,["modelValue"])]),_:1})]),_:1}),vue.createVNode(_sfc_main$1J,{name:"标签"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"展示"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSwitch),{modelValue:vue.unref(ue).label.show,"onUpdate:modelValue":fe[5]||(fe[5]=ve=>vue.unref(ue).label.show=ve)},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"引导线"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSwitch),{modelValue:vue.unref(ue).labelLine.show,"onUpdate:modelValue":fe[6]||(fe[6]=ve=>vue.unref(ue).labelLine.show=ve)},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"展示类型"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSelect),{modelValue:vue.unref(ue).label.formatter,"onUpdate:modelValue":fe[7]||(fe[7]=ve=>vue.unref(ue).label.formatter=ve),size:"small"},{default:vue.withCtx(()=>[(vue.openBlock(),vue.createElementBlock(vue.Fragment,null,vue.renderList(oe,ve=>vue.createVNode(vue.unref(elementPlus.ElOption),{key:ve.value,label:ve.label,value:ve.value},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"位置"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSelect),{modelValue:vue.unref(ue).label.position,"onUpdate:modelValue":fe[8]||(fe[8]=ve=>vue.unref(ue).label.position=ve),size:"small"},{default:vue.withCtx(()=>[(vue.openBlock(),vue.createElementBlock(vue.Fragment,null,vue.renderList(re,ve=>vue.createVNode(vue.unref(elementPlus.ElOption),{key:ve.value,label:ve.label,value:ve.value},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"大小"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{predefine:vue.unref(ne),modelValue:vue.unref(ue).label.fontSize,"onUpdate:modelValue":fe[9]||(fe[9]=ve=>vue.unref(ue).label.fontSize=ve),size:"small"},null,8,["predefine","modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"颜色"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElColorPicker),{predefine:vue.unref(ne),modelValue:vue.unref(ue).label.color,"onUpdate:modelValue":fe[10]||(fe[10]=ve=>vue.unref(ue).label.color=ve)},null,8,["predefine","modelValue"])]),_:1})]),_:1}),vue.createVNode(_sfc_main$1J,{name:"圆角"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"大小"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:vue.unref(ue).itemStyle.borderRadius,"onUpdate:modelValue":fe[11]||(fe[11]=ve=>vue.unref(ue).itemStyle.borderRadius=ve),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"宽度"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:vue.unref(ue).itemStyle.borderWidth,"onUpdate:modelValue":fe[12]||(fe[12]=ve=>vue.unref(ue).itemStyle.borderWidth=ve),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"颜色"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElColorPicker),{predefine:vue.unref(ne),modelValue:vue.unref(ue).itemStyle.borderColor,"onUpdate:modelValue":fe[13]||(fe[13]=ve=>vue.unref(ue).itemStyle.borderColor=ve)},null,8,["predefine","modelValue"])]),_:1})]),_:1})]),_:1}),vue.createVNode(vue.unref(elementPlus.ElCollapseItem),{title:"数据",name:"data"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1J,{name:""},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"维度",style:{width:"100%"}},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSelect),{modelValue:de.option.dataShow.x,"onUpdate:modelValue":fe[14]||(fe[14]=ve=>de.option.dataShow.x=ve),size:"small",style:{width:"100%"}},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vue.unref(U).getChartData.x,ve=>(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElOption),{key:ve.comment,label:ve.comment,value:ve.comment},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"统计",style:{width:"100%"}},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSelect),{modelValue:de.option.dataShow.y,"onUpdate:modelValue":fe[15]||(fe[15]=ve=>de.option.dataShow.y=ve),size:"small",style:{width:"100%"}},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vue.unref(U).getChartData.y.filter(ve=>ve.aggType!="other"),ve=>(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElOption),{key:ve.showLabel,label:ve.showLabel,value:ve.showLabel},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1})],64))}}),_hoisted_1$1o={class:"ml-2"},_hoisted_2$1b={class:"flex items-center justify-end flex-1"},_hoisted_3$13={class:"mr-2 text-xs cursor-pointer"},_hoisted_4$Y=["onClick"],_hoisted_5$N=vue.createElementVNode("i",{class:"cursor-move ri-draggable sortable-handle"},null,-1),_sfc_main$1D=vue.defineComponent({__name:"config",props:{option:{default:{}},type:{default:""},immediate:{type:Boolean,default:!1}},setup(te){const U=screenDesignMainStore(),G=te,{proxy:ee}=vue.getCurrentInstance(),ne=ee.$globalPreColor,re=[{label:"顶部",value:"top"},{label:"左侧",value:"left"},{label:"右侧",value:"right"},{label:"底部",value:"bottom"}],oe=[{label:"实线",value:"solid"},{label:"虚线",value:"dashed"},{label:"点线",value:"dotted"}],{setChartData:ie}=useCustomChart(),{seriesLineItem:le,seriesBarItem:ae,init:se,customSeriesData:ue}=useBarLineCommon();vue.ref(null);const ce=vue.ref(JSON.parse(JSON.stringify(Object.values(ue.value).find(pe=>pe.type=="bar")??ae))),de=vue.ref(JSON.parse(JSON.stringify(Object.values(ue.value).find(pe=>pe.type=="line")??le)));vue.watch([ce,de],()=>ve(),{deep:!0}),vue.watch(()=>G.option.dataShow,()=>{se(G.option,()=>{ve()})},{deep:!0,immediate:G.immediate}),vue.watch(()=>G.option.dataShow.x,async()=>{G.option.dataset.source=await ie(G.type,G.option.dataShow.x)});const fe=(pe,ge)=>{var _e,ye,be,xe;if(vue.unref(ue)[ge].type!=pe){const Ce=JSON.parse(JSON.stringify({...pe=="line"?de.value:ce.value})),$e=((ye=(_e=vue.unref(ue)[ge])==null?void 0:_e.lineStyle)==null?void 0:ye.color)??((xe=(be=vue.unref(ue)[ge])==null?void 0:be.itemStyle)==null?void 0:xe.color);Ce[Ce!=null&&Ce.lineStyle?"lineStyle":"itemStyle"].color=$e,ue.value[ge]=Ce,se(G.option,()=>{})}},ve=()=>{const pe=ce.value,ge=de.value,me=_e=>{const ye=JSON.parse(JSON.stringify(_e.type=="bar"?pe:ge));Object.keys(ye).forEach(be=>{["lineStyle","itemStyle"].includes(be)?Object.keys(_e[be]).forEach(xe=>{xe=="borderRadius"?_e[be][xe]=[pe.borderRadiusNumber,pe.borderRadiusNumber,0,0]:xe!="color"&&(_e[be][xe]=ye[be][xe])}):_e[be]=ye[be]})};G.option.series.forEach(_e=>{me(_e)}),Object.keys(ue.value).forEach(_e=>{me(vue.unref(ue)[_e])}),window.customSeriesData=ue.value},he=pe=>{const{hide:ge}=G.option.dataShow;ge.includes(pe)?ge.splice(ge.findIndex(me=>me==pe),1):ge.push(pe)};return(pe,ge)=>(vue.openBlock(),vue.createElementBlock(vue.Fragment,null,[vue.createVNode(SettingCommon,{option:pe.option,type:5},null,8,["option"]),vue.createVNode(vue.unref(elementPlus.ElCollapseItem),{title:"柱状配置"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1J,{name:""},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"大小"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:vue.unref(ce).barWidth,"onUpdate:modelValue":ge[0]||(ge[0]=me=>vue.unref(ce).barWidth=me),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"圆角"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{min:0,modelValue:vue.unref(ce).borderRadiusNumber,"onUpdate:modelValue":ge[1]||(ge[1]=me=>vue.unref(ce).borderRadiusNumber=me),size:"small"},null,8,["modelValue"])]),_:1})]),_:1}),vue.createVNode(_sfc_main$1J,{name:"标签"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"展示"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSwitch),{modelValue:vue.unref(ce).label.show,"onUpdate:modelValue":ge[2]||(ge[2]=me=>vue.unref(ce).label.show=me)},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"位置"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSelect),{modelValue:vue.unref(ce).label.position,"onUpdate:modelValue":ge[3]||(ge[3]=me=>vue.unref(ce).label.position=me),size:"small"},{default:vue.withCtx(()=>[(vue.openBlock(),vue.createElementBlock(vue.Fragment,null,vue.renderList(re,me=>vue.createVNode(vue.unref(elementPlus.ElOption),{key:me.value,label:me.label,value:me.value},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"旋转"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:vue.unref(ce).label.rotate,"onUpdate:modelValue":ge[4]||(ge[4]=me=>vue.unref(ce).label.rotate=me),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"大小"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:vue.unref(ce).label.fontSize,"onUpdate:modelValue":ge[5]||(ge[5]=me=>vue.unref(ce).label.fontSize=me),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"颜色"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElColorPicker),{predefine:vue.unref(ne),modelValue:vue.unref(ce).label.color,"onUpdate:modelValue":ge[6]||(ge[6]=me=>vue.unref(ce).label.color=me)},null,8,["predefine","modelValue"])]),_:1})]),_:1})]),_:1}),vue.createVNode(vue.unref(elementPlus.ElCollapseItem),{title:"折线配置"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1J,{name:"线条"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"宽度"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:vue.unref(de).lineStyle.width,"onUpdate:modelValue":ge[7]||(ge[7]=me=>vue.unref(de).lineStyle.width=me),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"类型"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSelect),{modelValue:vue.unref(de).lineStyle.type,"onUpdate:modelValue":ge[8]||(ge[8]=me=>vue.unref(de).lineStyle.type=me),size:"small"},{default:vue.withCtx(()=>[(vue.openBlock(),vue.createElementBlock(vue.Fragment,null,vue.renderList(oe,me=>vue.createVNode(vue.unref(elementPlus.ElOption),{key:me.value,label:me.label,value:me.value},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1})]),_:1}),vue.createVNode(_sfc_main$1J,{name:"实心点"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"大小"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:vue.unref(de).symbolSize,"onUpdate:modelValue":ge[9]||(ge[9]=me=>vue.unref(de).symbolSize=me),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"平滑"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSwitch),{modelValue:vue.unref(de).smooth,"onUpdate:modelValue":ge[10]||(ge[10]=me=>vue.unref(de).smooth=me)},null,8,["modelValue"])]),_:1})]),_:1}),vue.createVNode(_sfc_main$1J,{name:"标签"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"展示"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSwitch),{modelValue:vue.unref(de).label.show,"onUpdate:modelValue":ge[11]||(ge[11]=me=>vue.unref(de).label.show=me)},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"位置"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSelect),{modelValue:vue.unref(de).label.position,"onUpdate:modelValue":ge[12]||(ge[12]=me=>vue.unref(de).label.position=me),size:"small"},{default:vue.withCtx(()=>[(vue.openBlock(),vue.createElementBlock(vue.Fragment,null,vue.renderList(re,me=>vue.createVNode(vue.unref(elementPlus.ElOption),{key:me.value,label:me.label,value:me.value},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"旋转"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:vue.unref(de).label.rotate,"onUpdate:modelValue":ge[13]||(ge[13]=me=>vue.unref(de).label.rotate=me),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"大小"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:vue.unref(de).label.fontSize,"onUpdate:modelValue":ge[14]||(ge[14]=me=>vue.unref(de).label.fontSize=me),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"颜色"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElColorPicker),{predefine:vue.unref(ne),modelValue:vue.unref(de).label.color,"onUpdate:modelValue":ge[15]||(ge[15]=me=>vue.unref(de).label.color=me)},null,8,["predefine","modelValue"])]),_:1})]),_:1})]),_:1}),vue.createVNode(vue.unref(elementPlus.ElCollapseItem),{title:"数据",name:"data"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1J,{name:""},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"X轴",style:{width:"100%"}},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSelect),{modelValue:pe.option.dataShow.x,"onUpdate:modelValue":ge[16]||(ge[16]=me=>pe.option.dataShow.x=me),size:"small",style:{width:"100%"}},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vue.unref(U).getChartData.x,me=>(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElOption),{key:me.comment,label:me.comment,value:me.comment},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"Y轴",style:{width:"100%","margin-top":"10px"}},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(vueDraggablePlus.VueDraggable),{modelValue:pe.option.dataShow.y,"onUpdate:modelValue":ge[17]||(ge[17]=me=>pe.option.dataShow.y=me),animation:150,handle:".sortable-handle"},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(pe.option.dataShow.y,(me,_e)=>(vue.openBlock(),vue.createElementBlock("div",{key:me,class:"w-full sort-item"},[vue.unref(ue)[me]?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[vue.unref(ue)[me].type=="bar"?(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElColorPicker),{key:0,predefine:vue.unref(ne),size:"small",modelValue:vue.unref(ue)[me].itemStyle.color,"onUpdate:modelValue":ye=>vue.unref(ue)[me].itemStyle.color=ye},null,8,["predefine","modelValue","onUpdate:modelValue"])):(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElColorPicker),{key:1,predefine:vue.unref(ne),size:"small",modelValue:vue.unref(ue)[me].lineStyle.color,"onUpdate:modelValue":ye=>vue.unref(ue)[me].lineStyle.color=ye},null,8,["predefine","modelValue","onUpdate:modelValue"]))],64)):vue.createCommentVNode("",!0),vue.createElementVNode("span",_hoisted_1$1o,vue.toDisplayString(me),1),vue.createElementVNode("div",_hoisted_2$1b,[vue.unref(ue)[me]?(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElDropdown),{key:0,onCommand:ye=>fe(ye,me)},{dropdown:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElDropdownMenu),null,{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElDropdownItem),{command:"bar"},{default:vue.withCtx(()=>[vue.createTextVNode("柱状")]),_:1}),vue.createVNode(vue.unref(elementPlus.ElDropdownItem),{command:"line"},{default:vue.withCtx(()=>[vue.createTextVNode("折线")]),_:1})]),_:1})]),default:vue.withCtx(()=>[vue.createElementVNode("span",_hoisted_3$13,vue.toDisplayString(vue.unref(ue)[me].type=="bar"?"柱状":"折线"),1)]),_:2},1032,["onCommand"])):vue.createCommentVNode("",!0),vue.createElementVNode("i",{onClick:ye=>he(me),class:vue.normalizeClass([pe.option.dataShow.hide.includes(me)?"ri-eye-off-line":"ri-eye-line","mr-2 cursor-pointer"])},null,10,_hoisted_4$Y),_hoisted_5$N])]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1})],64))}}),_hoisted_1$1n={class:"ml-2"},_hoisted_2$1a={class:"flex items-center justify-end flex-1"},_hoisted_3$12={class:"mr-2 text-xs cursor-pointer"},_hoisted_4$X=["onClick"],_hoisted_5$M=vue.createElementVNode("i",{class:"cursor-move ri-draggable sortable-handle"},null,-1),_sfc_main$1C=vue.defineComponent({__name:"config",props:{option:{default:{}},type:{default:""},immediate:{type:Boolean,default:!1}},setup(te){const U=screenDesignMainStore(),G=te,{proxy:ee}=vue.getCurrentInstance(),ne=ee.$globalPreColor,re=[{label:"实线",value:"solid"},{label:"虚线",value:"dashed"},{label:"点线",value:"dotted"}],oe=[{label:"顶部",value:"top"},{label:"左侧",value:"left"},{label:"右侧",value:"right"},{label:"底部",value:"bottom"}],{setChartData:ie}=useCustomChart(),{seriesItem:le,init:ae,customSeriesData:se}=useScatterCommon();vue.ref(null);const ue=vue.ref(JSON.parse(JSON.stringify(Object.values(se.value)[0]??le)));vue.watch(ue,()=>ce(),{deep:!0}),vue.watch(()=>G.option.dataShow,()=>{ae(G.option,()=>{ce()})},{deep:!0,immediate:G.immediate}),vue.watch(()=>G.option.dataShow.x,async()=>{G.option.dataset.source=await ie(G.type,G.option.dataShow.x)});const ce=()=>{const ve=JSON.parse(JSON.stringify(ue.value)),he=pe=>{Object.keys(ve).forEach(ge=>{ge!="type"&&(["itemStyle"].includes(ge)||(pe[ge]=ve[ge]))})};G.option.series.forEach(pe=>{he(pe)}),Object.keys(se.value).forEach(pe=>{he(vue.unref(se)[pe])}),window.customSeriesData=se.value},de=(ve,he)=>{const pe=vue.unref(se)[he];pe.type!=ve&&(pe.type=ve,ae(G.option,()=>{}))},fe=ve=>{const{hide:he}=G.option.dataShow;he.includes(ve)?he.splice(he.findIndex(pe=>pe==ve),1):he.push(ve)};return(ve,he)=>(vue.openBlock(),vue.createElementBlock(vue.Fragment,null,[vue.createVNode(SettingCommon,{option:ve.option,type:6},null,8,["option"]),vue.createVNode(vue.unref(elementPlus.ElCollapseItem),{title:"散点图配置"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1J,{name:""},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"大小"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:vue.unref(ue).symbolSize,"onUpdate:modelValue":he[0]||(he[0]=pe=>vue.unref(ue).symbolSize=pe),size:"small"},null,8,["modelValue"])]),_:1})]),_:1}),vue.createVNode(_sfc_main$1J,{name:"标域"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"粗细(0不显示)"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:vue.unref(ue).markArea.itemStyle.borderWidth,"onUpdate:modelValue":he[1]||(he[1]=pe=>vue.unref(ue).markArea.itemStyle.borderWidth=pe),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"样式"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSelect),{modelValue:vue.unref(ue).markArea.itemStyle.borderType,"onUpdate:modelValue":he[2]||(he[2]=pe=>vue.unref(ue).markArea.itemStyle.borderType=pe),size:"small"},{default:vue.withCtx(()=>[(vue.openBlock(),vue.createElementBlock(vue.Fragment,null,vue.renderList(re,pe=>vue.createVNode(vue.unref(elementPlus.ElOption),{key:pe.value,label:pe.label,value:pe.value},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1})]),_:1}),vue.createVNode(_sfc_main$1J,{name:"标签"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"展示"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSwitch),{modelValue:vue.unref(ue).label.show,"onUpdate:modelValue":he[3]||(he[3]=pe=>vue.unref(ue).label.show=pe)},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"位置"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSelect),{modelValue:vue.unref(ue).label.position,"onUpdate:modelValue":he[4]||(he[4]=pe=>vue.unref(ue).label.position=pe),size:"small"},{default:vue.withCtx(()=>[(vue.openBlock(),vue.createElementBlock(vue.Fragment,null,vue.renderList(oe,pe=>vue.createVNode(vue.unref(elementPlus.ElOption),{key:pe.value,label:pe.label,value:pe.value},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"旋转"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:vue.unref(ue).label.rotate,"onUpdate:modelValue":he[5]||(he[5]=pe=>vue.unref(ue).label.rotate=pe),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"大小"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:vue.unref(ue).label.fontSize,"onUpdate:modelValue":he[6]||(he[6]=pe=>vue.unref(ue).label.fontSize=pe),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"颜色"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElColorPicker),{predefine:vue.unref(ne),modelValue:vue.unref(ue).label.color,"onUpdate:modelValue":he[7]||(he[7]=pe=>vue.unref(ue).label.color=pe)},null,8,["predefine","modelValue"])]),_:1})]),_:1})]),_:1}),vue.createVNode(vue.unref(elementPlus.ElCollapseItem),{title:"数据",name:"data"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1J,{name:""},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"X轴",style:{width:"100%"}},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSelect),{modelValue:ve.option.dataShow.x,"onUpdate:modelValue":he[8]||(he[8]=pe=>ve.option.dataShow.x=pe),size:"small",style:{width:"100%"}},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vue.unref(U).getChartData.x,pe=>(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElOption),{key:pe.comment,label:pe.comment,value:pe.comment},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"Y轴",style:{width:"100%","margin-top":"10px"}},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(vueDraggablePlus.VueDraggable),{modelValue:ve.option.dataShow.y,"onUpdate:modelValue":he[9]||(he[9]=pe=>ve.option.dataShow.y=pe),animation:150,handle:".sortable-handle"},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(ve.option.dataShow.y,(pe,ge)=>(vue.openBlock(),vue.createElementBlock("div",{key:pe,class:"w-full sort-item"},[vue.unref(se)[pe]?(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElColorPicker),{key:0,predefine:vue.unref(ne),size:"small",modelValue:vue.unref(se)[pe].itemStyle.color,"onUpdate:modelValue":me=>vue.unref(se)[pe].itemStyle.color=me},null,8,["predefine","modelValue","onUpdate:modelValue"])):vue.createCommentVNode("",!0),vue.createElementVNode("span",_hoisted_1$1n,vue.toDisplayString(pe),1),vue.createElementVNode("div",_hoisted_2$1a,[vue.unref(se)[pe]?(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElDropdown),{key:0,onCommand:me=>de(me,pe)},{dropdown:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElDropdownMenu),null,{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElDropdownItem),{command:"scatter"},{default:vue.withCtx(()=>[vue.createTextVNode("普通")]),_:1}),vue.createVNode(vue.unref(elementPlus.ElDropdownItem),{command:"effectScatter"},{default:vue.withCtx(()=>[vue.createTextVNode("特效")]),_:1})]),_:1})]),default:vue.withCtx(()=>[vue.createElementVNode("span",_hoisted_3$12,vue.toDisplayString(vue.unref(se)[pe].type=="scatter"?"普通":"特效"),1)]),_:2},1032,["onCommand"])):vue.createCommentVNode("",!0),vue.createElementVNode("i",{onClick:me=>fe(pe),class:vue.normalizeClass([ve.option.dataShow.hide.includes(pe)?"ri-eye-off-line":"ri-eye-line","mr-2 cursor-pointer"])},null,10,_hoisted_4$X),_hoisted_5$M])]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1})],64))}}),_hoisted_1$1m={class:"flex items-center justify-end flex-1"},_hoisted_2$19=["onClick"],_hoisted_3$11=vue.createElementVNode("i",{class:"cursor-move ri-draggable sortable-handle"},null,-1),_sfc_main$1B=vue.defineComponent({__name:"config",props:{option:{default:{}},type:{default:""},immediate:{type:Boolean,default:!1}},setup(te){var fe;const U=screenDesignMainStore(),G=te,{proxy:ee}=vue.getCurrentInstance(),ne=ee.$globalPreColor,re=[{label:"顶部",value:"top"},{label:"左侧",value:"left"},{label:"右侧",value:"right"},{label:"底部",value:"bottom"}],oe=[{label:"多边形",value:"polygon"},{label:"圆形",value:"circle"}],{setChartData:ie}=useCustomChart(),{seriesItem:le,init:ae,customSeriesData:se}=useRadar();vue.ref(null);const ue=vue.ref(JSON.parse(JSON.stringify((fe=vue.unref(se))!=null&&fe.type?se.value:le)));vue.watch(ue,()=>ce(),{deep:!0}),vue.watch([()=>G.option.dataShow.y,()=>G.option.dataShow.hide],()=>{ae(G.option,()=>{ce()})},{deep:!0,immediate:G.immediate}),vue.watch(()=>G.option.dataShow.x,async()=>{G.option.dataset.source=await ie(G.type,G.option.dataShow.x),ae(G.option,()=>{ce()})});const ce=()=>{const ve=ue.value;Object.keys(G.option.series[0]).forEach(he=>{["areaStyle","label"].includes(he)&&(G.option.series[0][he]=ve[he])}),se.value={...G.option.series[0],data:[]},window.customSeriesData=se.value},de=ve=>{const{hide:he}=G.option.dataShow;he.includes(ve)?he.splice(he.findIndex(pe=>pe==ve),1):he.push(ve)};return(ve,he)=>(vue.openBlock(),vue.createElementBlock(vue.Fragment,null,[vue.createVNode(SettingCommon,{option:ve.option,type:4},null,8,["option"]),vue.createVNode(vue.unref(elementPlus.ElCollapseItem),{title:"雷达图配置"},{default:vue.withCtx(()=>{var pe;return[vue.createVNode(_sfc_main$1J,{name:"样式"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"背景"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSwitch),{modelValue:ve.option.radar.splitArea.show,"onUpdate:modelValue":he[0]||(he[0]=ge=>ve.option.radar.splitArea.show=ge)},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"分割线"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSwitch),{modelValue:ve.option.radar.splitLine.show,"onUpdate:modelValue":he[1]||(he[1]=ge=>ve.option.radar.splitLine.show=ge)},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"形状"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSelect),{modelValue:ve.option.radar.shape,"onUpdate:modelValue":he[2]||(he[2]=ge=>ve.option.radar.shape=ge),size:"small"},{default:vue.withCtx(()=>[(vue.openBlock(),vue.createElementBlock(vue.Fragment,null,vue.renderList(oe,ge=>vue.createVNode(vue.unref(elementPlus.ElOption),{key:ge.value,label:ge.label,value:ge.value},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1})]),_:1}),vue.createVNode(_sfc_main$1J,{name:"坐标轴"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"轴线"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSwitch),{modelValue:ve.option.radar.axisLine.show,"onUpdate:modelValue":he[3]||(he[3]=ge=>ve.option.radar.axisLine.show=ge)},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"刻度"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSwitch),{modelValue:ve.option.radar.axisTick.show,"onUpdate:modelValue":he[4]||(he[4]=ge=>ve.option.radar.axisTick.show=ge)},null,8,["modelValue"])]),_:1})]),_:1}),vue.createVNode(_sfc_main$1J,{name:"范围"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"最小"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInput),{modelValue:ve.option.radar.radius[0],"onUpdate:modelValue":he[5]||(he[5]=ge=>ve.option.radar.radius[0]=ge),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"最大"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInput),{modelValue:ve.option.radar.radius[1],"onUpdate:modelValue":he[6]||(he[6]=ge=>ve.option.radar.radius[1]=ge),size:"small"},null,8,["modelValue"])]),_:1})]),_:1}),vue.createVNode(_sfc_main$1J,{name:"偏移"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"x"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInput),{modelValue:ve.option.radar.center[0],"onUpdate:modelValue":he[7]||(he[7]=ge=>ve.option.radar.center[0]=ge),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"y"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInput),{modelValue:ve.option.radar.center[1],"onUpdate:modelValue":he[8]||(he[8]=ge=>ve.option.radar.center[1]=ge),size:"small"},null,8,["modelValue"])]),_:1})]),_:1}),vue.createVNode(_sfc_main$1J,{name:"指示器"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"展示"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSwitch),{modelValue:ve.option.radar.axisName.show,"onUpdate:modelValue":he[9]||(he[9]=ge=>ve.option.radar.axisName.show=ge)},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"大小"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:ve.option.radar.axisName.fontSize,"onUpdate:modelValue":he[10]||(he[10]=ge=>ve.option.radar.axisName.fontSize=ge),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"颜色"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElColorPicker),{predefine:vue.unref(ne),modelValue:ve.option.radar.axisName.color,"onUpdate:modelValue":he[11]||(he[11]=ge=>ve.option.radar.axisName.color=ge)},null,8,["predefine","modelValue"])]),_:1})]),_:1}),vue.createVNode(_sfc_main$1J,{name:"标签"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"展示"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSwitch),{modelValue:vue.unref(ue).label.show,"onUpdate:modelValue":he[12]||(he[12]=ge=>vue.unref(ue).label.show=ge)},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"位置"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSelect),{modelValue:vue.unref(ue).label.position,"onUpdate:modelValue":he[13]||(he[13]=ge=>vue.unref(ue).label.position=ge),size:"small"},{default:vue.withCtx(()=>[(vue.openBlock(),vue.createElementBlock(vue.Fragment,null,vue.renderList(re,ge=>vue.createVNode(vue.unref(elementPlus.ElOption),{key:ge.value,label:ge.label,value:ge.value},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"旋转"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:vue.unref(ue).label.rotate,"onUpdate:modelValue":he[14]||(he[14]=ge=>vue.unref(ue).label.rotate=ge),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"大小"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:vue.unref(ue).label.fontSize,"onUpdate:modelValue":he[15]||(he[15]=ge=>vue.unref(ue).label.fontSize=ge),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"颜色"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElColorPicker),{predefine:vue.unref(ne),modelValue:vue.unref(ue).label.color,"onUpdate:modelValue":he[16]||(he[16]=ge=>vue.unref(ue).label.color=ge)},null,8,["predefine","modelValue"])]),_:1})]),_:1}),(pe=vue.unref(ue))!=null&&pe.type?(vue.openBlock(),vue.createBlock(_sfc_main$1J,{key:0,name:"系列"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"背景透明度"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:vue.unref(ue).areaStyle.opacity,"onUpdate:modelValue":he[17]||(he[17]=ge=>vue.unref(ue).areaStyle.opacity=ge),min:0,max:1,size:"small",step:.1},null,8,["modelValue"])]),_:1})]),_:1})):vue.createCommentVNode("",!0)]}),_:1}),vue.createVNode(vue.unref(elementPlus.ElCollapseItem),{title:"数据",name:"data"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1J,{name:""},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"X轴",style:{width:"100%"}},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSelect),{modelValue:ve.option.dataShow.x,"onUpdate:modelValue":he[18]||(he[18]=pe=>ve.option.dataShow.x=pe),size:"small",style:{width:"100%"}},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vue.unref(U).getChartData.x,pe=>(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElOption),{key:pe.comment,label:pe.comment,value:pe.comment},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"Y轴",style:{width:"100%","margin-top":"10px"}},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(vueDraggablePlus.VueDraggable),{modelValue:ve.option.dataShow.y,"onUpdate:modelValue":he[19]||(he[19]=pe=>ve.option.dataShow.y=pe),animation:150,handle:".sortable-handle"},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(ve.option.dataShow.y,(pe,ge)=>(vue.openBlock(),vue.createElementBlock("div",{key:pe,class:"w-full sort-item"},[vue.createElementVNode("span",null,vue.toDisplayString(pe),1),vue.createElementVNode("div",_hoisted_1$1m,[vue.createElementVNode("i",{onClick:me=>de(pe),class:vue.normalizeClass([ve.option.dataShow.hide.includes(pe)?"ri-eye-off-line":"ri-eye-line","mr-2 cursor-pointer"])},null,10,_hoisted_2$19),_hoisted_3$11])]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1})],64))}}),_hoisted_1$1l={class:"ml-2"},_hoisted_2$18={class:"flex items-center justify-end flex-1"},_hoisted_3$10=vue.createElementVNode("i",{class:"mr-2 cursor-pointer ri-more-line"},null,-1),_hoisted_4$W=["onClick"],_hoisted_5$L=vue.createElementVNode("i",{class:"cursor-move ri-draggable sortable-handle"},null,-1),_sfc_main$1A=vue.defineComponent({__name:"config",props:{option:{default:{}},type:{default:""},immediate:{type:Boolean,default:!1}},setup(te){screenDesignMainStore();const U=te,{proxy:G}=vue.getCurrentInstance(),ee=G.$globalPreColor;useCustomChart();const{init:ne,tableConfig:re,customSeriesData:oe}=useTable();vue.ref(null);const ie=vue.ref(JSON.parse(JSON.stringify(re)));vue.watch(ie,()=>le(),{deep:!0}),vue.watch(()=>U.option.dataShow,()=>{ne(U.option)},{deep:!0,immediate:U.immediate});const le=()=>{},ae=se=>{const{hide:ue=[]}=U.option.dataShow;ue.includes(se)?ue.splice(ue.findIndex(ce=>ce==se),1):ue.push(se),U.option.dataShow.hide=ue};return(se,ue)=>(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElCollapseItem),{title:"数据",name:"data"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1J,{name:"列名"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"",style:{width:"100%","margin-top":"10px"}},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(vueDraggablePlus.VueDraggable),{modelValue:se.option.dataShow.y,"onUpdate:modelValue":ue[0]||(ue[0]=ce=>se.option.dataShow.y=ce),animation:150,handle:".sortable-handle"},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(se.option.dataShow.y,(ce,de)=>(vue.openBlock(),vue.createElementBlock("div",{key:ce,class:"w-full sort-item"},[vue.unref(oe)[ce]?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[vue.createVNode(vue.unref(elementPlus.ElColorPicker),{predefine:vue.unref(ee),size:"small",modelValue:vue.unref(oe)[ce].bgColor,"onUpdate:modelValue":fe=>vue.unref(oe)[ce].bgColor=fe},null,8,["predefine","modelValue","onUpdate:modelValue"]),vue.createVNode(vue.unref(elementPlus.ElColorPicker),{predefine:vue.unref(ee),size:"small",modelValue:vue.unref(oe)[ce].color,"onUpdate:modelValue":fe=>vue.unref(oe)[ce].color=fe},null,8,["predefine","modelValue","onUpdate:modelValue"])],64)):vue.createCommentVNode("",!0),vue.createElementVNode("span",_hoisted_1$1l,vue.toDisplayString(ce),1),vue.createElementVNode("div",_hoisted_2$18,[vue.unref(oe)[ce]?(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElPopover),{key:0,width:400,trigger:"hover"},{reference:vue.withCtx(()=>[_hoisted_3$10]),default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1J,{name:""},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"前缀"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInput),{modelValue:vue.unref(oe)[ce].prefix,"onUpdate:modelValue":fe=>vue.unref(oe)[ce].prefix=fe,size:"small",placeholder:"前缀"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024),vue.createVNode(_sfc_main$1I,{name:"后缀"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInput),{modelValue:vue.unref(oe)[ce].suffix,"onUpdate:modelValue":fe=>vue.unref(oe)[ce].suffix=fe,size:"small",placeholder:"后缀"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024),vue.createVNode(_sfc_main$1I,{name:"保留小数"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{min:0,modelValue:vue.unref(oe)[ce].toFixed,"onUpdate:modelValue":fe=>vue.unref(oe)[ce].toFixed=fe,size:"small"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024),vue.createVNode(_sfc_main$1I,{name:"字体大小"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:vue.unref(oe)[ce].fontSize,"onUpdate:modelValue":fe=>vue.unref(oe)[ce].fontSize=fe,size:"small"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024),vue.createVNode(_sfc_main$1I,{name:"隐藏标题"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSwitch),{modelValue:vue.unref(oe)[ce].hideLabel,"onUpdate:modelValue":fe=>vue.unref(oe)[ce].hideLabel=fe,size:"small"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024)]),_:2},1024)]),_:2},1024)):vue.createCommentVNode("",!0),vue.createElementVNode("i",{onClick:fe=>ae(ce),class:vue.normalizeClass([(se.option.dataShow.hide??[]).includes(ce)?"ri-eye-off-line":"ri-eye-line","mr-2 cursor-pointer"])},null,10,_hoisted_4$W),_hoisted_5$L])]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1}))}}),_hoisted_1$1k={class:"ml-2"},_hoisted_2$17={class:"flex items-center justify-end flex-1"},_hoisted_3$$=vue.createElementVNode("i",{class:"mr-2 cursor-pointer ri-more-line"},null,-1),_hoisted_4$V=["onClick"],_hoisted_5$K=vue.createElementVNode("i",{class:"cursor-move ri-draggable sortable-handle"},null,-1),_sfc_main$1z=vue.defineComponent({__name:"config",props:{option:{default:{}},type:{default:""},immediate:{type:Boolean,default:!1}},setup(te){screenDesignMainStore();const U=te,{proxy:G}=vue.getCurrentInstance(),ee=G.$globalPreColor;useCustomChart();const{init:ne,tableConfig:re,customSeriesData:oe}=useTable();vue.ref(null);const ie=vue.ref(JSON.parse(JSON.stringify(re)));vue.watch(ie,()=>le(),{deep:!0}),vue.watch(()=>U.option.dataShow,()=>{ne(U.option)},{deep:!0,immediate:U.immediate});const le=()=>{},ae=se=>{const{hide:ue}=U.option.dataShow;ue.includes(se)?ue.splice(ue.findIndex(ce=>ce==se),1):ue.push(se)};return(se,ue)=>(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElCollapseItem),{title:"数据",name:"data"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1J,{name:"表格设置"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"显示序号"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSwitch),{modelValue:U.option.showIndex,"onUpdate:modelValue":ue[0]||(ue[0]=ce=>U.option.showIndex=ce)},null,8,["modelValue"])]),_:1})]),_:1}),vue.createVNode(_sfc_main$1J,{name:"列名"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"",style:{width:"100%","margin-top":"10px"}},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(vueDraggablePlus.VueDraggable),{modelValue:se.option.dataShow.y,"onUpdate:modelValue":ue[1]||(ue[1]=ce=>se.option.dataShow.y=ce),animation:150,handle:".sortable-handle"},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(se.option.dataShow.y,(ce,de)=>(vue.openBlock(),vue.createElementBlock("div",{key:ce,class:"w-full sort-item"},[vue.unref(oe)[ce]?(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElColorPicker),{key:0,predefine:vue.unref(ee),size:"small",modelValue:vue.unref(oe)[ce].color,"onUpdate:modelValue":fe=>vue.unref(oe)[ce].color=fe},null,8,["predefine","modelValue","onUpdate:modelValue"])):vue.createCommentVNode("",!0),vue.createElementVNode("span",_hoisted_1$1k,vue.toDisplayString(ce),1),vue.createElementVNode("div",_hoisted_2$17,[vue.unref(oe)[ce]?(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElPopover),{key:0,width:400,trigger:"hover"},{reference:vue.withCtx(()=>[_hoisted_3$$]),default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1J,{name:""},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"前缀"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInput),{modelValue:vue.unref(oe)[ce].prefix,"onUpdate:modelValue":fe=>vue.unref(oe)[ce].prefix=fe,size:"small",placeholder:"前缀"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024),vue.createVNode(_sfc_main$1I,{name:"后缀"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInput),{modelValue:vue.unref(oe)[ce].suffix,"onUpdate:modelValue":fe=>vue.unref(oe)[ce].suffix=fe,size:"small",placeholder:"后缀"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024),vue.createVNode(_sfc_main$1I,{name:"保留小数"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{min:0,modelValue:vue.unref(oe)[ce].toFixed,"onUpdate:modelValue":fe=>vue.unref(oe)[ce].toFixed=fe,size:"small"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024),vue.createVNode(_sfc_main$1I,{name:"统计"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSwitch),{modelValue:vue.unref(oe)[ce].sum,"onUpdate:modelValue":fe=>vue.unref(oe)[ce].sum=fe},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024)]),_:2},1024)]),_:2},1024)):vue.createCommentVNode("",!0),vue.createElementVNode("i",{onClick:fe=>ae(ce),class:vue.normalizeClass([se.option.dataShow.hide.includes(ce)?"ri-eye-off-line":"ri-eye-line","mr-2 cursor-pointer"])},null,10,_hoisted_4$V),_hoisted_5$K])]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1}))}}),_hoisted_1$1j={class:"flex items-center"},_hoisted_2$16=vue.createElementVNode("span",{class:"ml-1 mr-1"},"-",-1),_hoisted_3$_={class:"flex items-center"},_hoisted_4$U=vue.createElementVNode("span",{class:"ml-1 mr-1"},"-",-1),_sfc_main$1y=vue.defineComponent({__name:"config",props:{option:{default:{}},type:{default:""},immediate:{type:Boolean,default:!1}},setup(te){const U=screenDesignMainStore(),G=te,{proxy:ee}=vue.getCurrentInstance(),ne=ee.$globalPreColor,{init:re,city:oe}=useMap();return vue.watch(()=>G.option.style.style1,async ie=>{G.option.series[1]=ie},{deep:!0,immediate:G.immediate}),vue.watch(()=>G.option.style.style2,async ie=>{G.option.series[2]=ie},{deep:!0,immediate:G.immediate}),(ie,le)=>(vue.openBlock(),vue.createElementBlock(vue.Fragment,null,[vue.createVNode(SettingCommon,{option:ie.option,type:9},null,8,["option"]),vue.createVNode(vue.unref(elementPlus.ElCollapseItem),{title:"地图数据"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1J,{name:""},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElTreeSelect),{modelValue:ie.option.code,"onUpdate:modelValue":le[0]||(le[0]=ae=>ie.option.code=ae),data:vue.unref(oe),props:{label:"name",value:"code",children:"children"},onChange:le[1]||(le[1]=ae=>vue.unref(re)(ie.option)),filterable:"","node-key":"code","check-strictly":""},null,8,["modelValue","data"])]),_:1})]),_:1}),vue.createVNode(vue.unref(elementPlus.ElCollapseItem),{title:"视觉映射"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1J,{name:""},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"展示"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSwitch),{modelValue:ie.option.visualMap.show,"onUpdate:modelValue":le[2]||(le[2]=ae=>ie.option.visualMap.show=ae)},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"文本"},{default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_1$1j,[vue.createVNode(vue.unref(elementPlus.ElInput),{modelValue:ie.option.visualMap.text[1],"onUpdate:modelValue":le[3]||(le[3]=ae=>ie.option.visualMap.text[1]=ae),size:"small"},null,8,["modelValue"]),_hoisted_2$16,vue.createVNode(vue.unref(elementPlus.ElInput),{modelValue:ie.option.visualMap.text[0],"onUpdate:modelValue":le[4]||(le[4]=ae=>ie.option.visualMap.text[0]=ae),size:"small"},null,8,["modelValue"])])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"最小值-最高值"},{default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_3$_,[vue.createVNode(vue.unref(elementPlus.ElInput),{modelValue:ie.option.visualMap.min,"onUpdate:modelValue":le[5]||(le[5]=ae=>ie.option.visualMap.min=ae),size:"small"},null,8,["modelValue"]),_hoisted_4$U,vue.createVNode(vue.unref(elementPlus.ElInput),{modelValue:ie.option.visualMap.max,"onUpdate:modelValue":le[6]||(le[6]=ae=>ie.option.visualMap.max=ae),size:"small"},null,8,["modelValue"])])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"最小颜色-最高颜色"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElColorPicker),{predefine:vue.unref(ne),modelValue:ie.option.visualMap.inRange.color[0],"onUpdate:modelValue":le[7]||(le[7]=ae=>ie.option.visualMap.inRange.color[0]=ae)},null,8,["predefine","modelValue"]),vue.createTextVNode(" - "),vue.createVNode(vue.unref(elementPlus.ElColorPicker),{predefine:vue.unref(ne),modelValue:ie.option.visualMap.inRange.color[1],"onUpdate:modelValue":le[8]||(le[8]=ae=>ie.option.visualMap.inRange.color[1]=ae)},null,8,["predefine","modelValue"])]),_:1})]),_:1})]),_:1}),vue.createVNode(vue.unref(elementPlus.ElCollapseItem),{title:"地图"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1J,{name:""},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"展示标签"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSwitch),{modelValue:ie.option.geo.label.show,"onUpdate:modelValue":le[9]||(le[9]=ae=>ie.option.geo.label.show=ae)},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"缩放"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{step:.1,modelValue:ie.option.geo.zoom,"onUpdate:modelValue":le[10]||(le[10]=ae=>ie.option.geo.zoom=ae),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"字体大小"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:ie.option.geo.label.fontSize,"onUpdate:modelValue":le[11]||(le[11]=ae=>ie.option.geo.label.fontSize=ae),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"字体颜色"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElColorPicker),{predefine:vue.unref(ne),modelValue:ie.option.geo.label.color,"onUpdate:modelValue":le[12]||(le[12]=ae=>ie.option.geo.label.color=ae)},null,8,["predefine","modelValue"])]),_:1})]),_:1}),vue.createVNode(_sfc_main$1J,{name:"移动效果"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"区块颜色"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElColorPicker),{predefine:vue.unref(ne),modelValue:ie.option.geo.emphasis.itemStyle.areaColor,"onUpdate:modelValue":le[13]||(le[13]=ae=>ie.option.geo.emphasis.itemStyle.areaColor=ae)},null,8,["predefine","modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"边框颜色"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElColorPicker),{predefine:vue.unref(ne),modelValue:ie.option.geo.emphasis.itemStyle.borderColor,"onUpdate:modelValue":le[14]||(le[14]=ae=>ie.option.geo.emphasis.itemStyle.borderColor=ae)},null,8,["predefine","modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"边框大小"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:ie.option.geo.emphasis.itemStyle.borderWidth,"onUpdate:modelValue":le[15]||(le[15]=ae=>ie.option.geo.emphasis.itemStyle.borderWidth=ae),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"字体大小"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:ie.option.geo.emphasis.label.fontSize,"onUpdate:modelValue":le[16]||(le[16]=ae=>ie.option.geo.emphasis.label.fontSize=ae),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"字体颜色"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElColorPicker),{predefine:vue.unref(ne),modelValue:ie.option.geo.emphasis.label.color,"onUpdate:modelValue":le[17]||(le[17]=ae=>ie.option.geo.emphasis.label.color=ae)},null,8,["predefine","modelValue"])]),_:1})]),_:1})]),_:1}),(vue.openBlock(),vue.createElementBlock(vue.Fragment,null,vue.renderList(["style1","style2"],ae=>vue.createVNode(vue.unref(elementPlus.ElCollapseItem),{title:ae=="style1"?"散点样式":"点位样式"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1J,{name:""},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"形状"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSelect),{modelValue:ie.option.style[ae].symbol,"onUpdate:modelValue":se=>ie.option.style[ae].symbol=se,size:"small"},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vue.unref(dict).shape,se=>(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElOption),{key:se.value,label:se.label,value:se.value},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue"])]),_:2},1024),vue.createVNode(_sfc_main$1I,{name:"大小"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:ie.option.style[ae].symbolSize,"onUpdate:modelValue":se=>ie.option.style[ae].symbolSize=se,size:"small"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024),vue.createVNode(_sfc_main$1I,{name:"形状颜色"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElColorPicker),{predefine:vue.unref(ne),modelValue:ie.option.style[ae].itemStyle.color,"onUpdate:modelValue":se=>ie.option.style[ae].itemStyle.color=se},null,8,["predefine","modelValue","onUpdate:modelValue"])]),_:2},1024),ie.option.style[ae].label?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[vue.createVNode(_sfc_main$1I,{name:"值显示"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSwitch),{modelValue:ie.option.style[ae].label.show,"onUpdate:modelValue":se=>ie.option.style[ae].label.show=se},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024),vue.createVNode(_sfc_main$1I,{name:"颜色"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElColorPicker),{predefine:vue.unref(ne),modelValue:ie.option.style[ae].label.color,"onUpdate:modelValue":se=>ie.option.style[ae].label.color=se},null,8,["predefine","modelValue","onUpdate:modelValue"])]),_:2},1024),vue.createVNode(_sfc_main$1I,{name:"字体大小"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:ie.option.style[ae].label.fontSize,"onUpdate:modelValue":se=>ie.option.style[ae].label.fontSize=se,size:"small"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024)],64)):vue.createCommentVNode("",!0)]),_:2},1024)]),_:2},1032,["title"])),64)),vue.createVNode(vue.unref(elementPlus.ElCollapseItem),{title:"数据",name:"data"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1J,{name:""},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"维度",style:{width:"100%"}},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSelect),{modelValue:ie.option.dataShow.x,"onUpdate:modelValue":le[18]||(le[18]=ae=>ie.option.dataShow.x=ae),size:"small",style:{width:"100%"}},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vue.unref(U).getChartData.x,ae=>(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElOption),{key:ae.comment,label:ae.comment,value:ae.comment},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"统计",style:{width:"100%"}},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSelect),{modelValue:ie.option.dataShow.y,"onUpdate:modelValue":le[19]||(le[19]=ae=>ie.option.dataShow.y=ae),size:"small",style:{width:"100%"}},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vue.unref(U).getChartData.y.filter(ae=>ae.aggType!="other"),ae=>(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElOption),{key:ae.showLabel,label:ae.showLabel,value:ae.showLabel},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1})],64))}}),moudleComponents={};for(let te=0;te<=4;te+=1){let U=null;if(te==0&&(U=Object.assign({"../decoration/decoration1/setting.vue":__vite_glob_0_0,"../decoration/decoration10/setting.vue":__vite_glob_0_1,"../decoration/decoration11/setting.vue":__vite_glob_0_2,"../decoration/decoration12/setting.vue":__vite_glob_0_3,"../decoration/decoration2/setting.vue":__vite_glob_0_4,"../decoration/decoration3/setting.vue":__vite_glob_0_5,"../decoration/decoration4/setting.vue":__vite_glob_0_6,"../decoration/decoration5/setting.vue":__vite_glob_0_7,"../decoration/decoration6/setting.vue":__vite_glob_0_8,"../decoration/decoration8/setting.vue":__vite_glob_0_9,"../decoration/decoration9/setting.vue":__vite_glob_0_10})),te==1&&(U=Object.assign({"../border/border1/setting.vue":__vite_glob_1_0,"../border/border10/setting.vue":__vite_glob_1_1,"../border/border11/setting.vue":__vite_glob_1_2,"../border/border12/setting.vue":__vite_glob_1_3,"../border/border13/setting.vue":__vite_glob_1_4,"../border/border2/setting.vue":__vite_glob_1_5,"../border/border3/setting.vue":__vite_glob_1_6,"../border/border4/setting.vue":__vite_glob_1_7,"../border/border5/setting.vue":__vite_glob_1_8,"../border/border6/setting.vue":__vite_glob_1_9,"../border/border7/setting.vue":__vite_glob_1_10,"../border/border8/setting.vue":__vite_glob_1_11,"../border/border9/setting.vue":__vite_glob_1_12})),te==2&&(U=Object.assign({"../basic/horizontal-line/setting.vue":__vite_glob_2_0,"../basic/iframe/setting.vue":__vite_glob_2_1,"../basic/img/setting.vue":__vite_glob_2_2,"../basic/number/setting.vue":__vite_glob_2_3,"../basic/square/setting.vue":__vite_glob_2_4,"../basic/text/setting.vue":__vite_glob_2_5,"../basic/time/setting.vue":__vite_glob_2_6,"../basic/vertical-line/setting.vue":__vite_glob_2_7})),te==3&&(moudleComponents[3]=_sfc_main$1G,moudleComponents[2]=_sfc_main$1E,moudleComponents[1]=_sfc_main$1F,moudleComponents[4]=_sfc_main$1B,moudleComponents[5]=_sfc_main$1D,moudleComponents[6]=_sfc_main$1C,moudleComponents[7]=_sfc_main$1A,moudleComponents[8]=_sfc_main$1z,moudleComponents[9]=_sfc_main$1y),te==4&&(U=Object.assign({"../control/input/setting.vue":__vite_glob_3_0,"../control/select/setting.vue":__vite_glob_3_1})),U)for(const[G,ee]of Object.entries(U)){const ne=G.split("/")[2];moudleComponents[ne]=ee.default}}const _withScopeId$w=te=>(vue.pushScopeId("data-v-91a48762"),te=te(),vue.popScopeId(),te),_hoisted_1$1i=_withScopeId$w(()=>vue.createElementVNode("div",{class:"flex items-center h-10 p-2"},[vue.createElementVNode("span",{class:"w-1 h-4 mr-2 bg-color-primary"}),vue.createTextVNode(" 大屏设置 ")],-1)),_hoisted_2$15=_withScopeId$w(()=>vue.createElementVNode("div",{class:"h-px mb-2",style:{"background-color":"var(--el-border-color-light)"}},null,-1)),_hoisted_3$Z={class:"p-2"},_sfc_main$1x=vue.defineComponent({__name:"rightPannel",setup(te){const U=screenDesignMainStore(),G=vue.ref({});vue.provide("widgetConfig",G);const ee=vue.ref(""),ne=vue.computed(()=>U.targetsWidget.length===1?U.getWidgetList.find(oe=>{var ie;return oe.id==((ie=U.targetsWidget[0])==null?void 0:ie.id)}):null);vue.watch(ne,oe=>{re()});const re=()=>{if(!vue.unref(ne)){G.value={};return}const oe=U.getWidgetList.find(ie=>ie.id==vue.unref(ne).id);vue.unref(ne).chartType&&(oe==null?void 0:oe.modelType)!="INDICATORS"&&(window.customSeriesData=oe.customize.customSeriesData,U.setChartData(U.tempChartData[oe.id].params)),G.value=oe,ee.value=""};return re(),(oe,ie)=>(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElScrollbar),{height:"100%"},{default:vue.withCtx(()=>{var le,ae,se;return[_hoisted_1$1i,_hoisted_2$15,((le=vue.unref(G))==null?void 0:le.modelType)=="INDICATORS"?(vue.openBlock(),vue.createBlock(_sfc_main$2k,{key:0})):(ae=vue.unref(G))!=null&&ae.chartType?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:1},[vue.createVNode(_sfc_main$2k),vue.createElementVNode("div",_hoisted_3$Z,[vue.createVNode(vue.unref(elementPlus.ElCollapse),{accordion:"",modelValue:vue.unref(ee),"onUpdate:modelValue":ie[0]||(ie[0]=ue=>vue.isRef(ee)?ee.value=ue:null)},{default:vue.withCtx(()=>[(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(vue.unref(moudleComponents)[vue.unref(G).chartType]),{key:vue.unref(G).id,immediate:"",option:vue.unref(G).customize,type:vue.unref(G).chartType},null,8,["option","type"]))]),_:1},8,["modelValue"])])],64)):vue.unref(moudleComponents)[(se=vue.unref(G))==null?void 0:se.type]?(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(vue.unref(moudleComponents)[vue.unref(G).type]),{key:vue.unref(G).id})):(vue.openBlock(),vue.createBlock(stagetSetting,{key:3}))]}),_:1}))}}),rightPannel_vue_vue_type_style_index_0_scoped_91a48762_lang="",RightPannel=_export_sfc$2(_sfc_main$1x,[["__scopeId","data-v-91a48762"]]),_hoisted_1$1h={class:"flex flex-col overflow-hidden ace-big-screen"},_hoisted_2$14={class:"h-10 top-pannel"},_hoisted_3$Y={class:"relative flex flex-1"},_hoisted_4$T={class:"left-pannel"},_hoisted_5$J={class:"flex-1 p-2 overflow-hidden",id:"design-container"},_hoisted_6$E={class:"relative w-full h-full"},_hoisted_7$y={key:0,class:"right-pannel w-80"},_sfc_main$1w=vue.defineComponent({__name:"design",emits:["preview","save"],setup(te,{expose:U,emit:G}){const ee=G,{proxy:ne}=vue.getCurrentInstance(),re=screenDesignMainStore(),oe=vue.ref(!1),ie=vue.ref(""),le=vue.ref("");return vue.watch(oe,se=>{se?document.getElementsByTagName("html")[0].className=re.theme:document.getElementsByTagName("html")[0].className=""}),U({init:async(se="")=>{if(le.value=se,ie.value="大屏管理",oe.value=!0,re.widgetConfg={config:{},list:[]},re.clearSketchRuleLine(),re.setRightPannel(!1),se){const ue=await ne.$baseHttp.get("/api/ace-data-center/screen/detail",{params:{id:se},headers:{loading:!0}});ie.value=ue.data.title,re.widgetConfg=chartJsonFormat(ue.data.config)}re.setStageWidth(re.widgetConfg.config.stageWidth??1920),re.setStageHeight(re.widgetConfg.config.stageHeight??1080)}}),(se,ue)=>{const ce=vue.resolveComponent("AppDrawer");return vue.openBlock(),vue.createBlock(ce,{modelValue:vue.unref(oe),"onUpdate:modelValue":ue[4]||(ue[4]=de=>vue.isRef(oe)?oe.value=de:null),title:"大屏设计",size:"100%",withHeader:!1,modalClass:"ace-modal-drawer",customClass:"ace-big-design-dialog"},{default:vue.withCtx(()=>[vue.withDirectives((vue.openBlock(),vue.createElementBlock("div",_hoisted_1$1h,[vue.createElementVNode("div",_hoisted_2$14,[vue.createVNode(TopPannel,{title:vue.unref(ie),"onUpdate:title":ue[0]||(ue[0]=de=>vue.isRef(ie)?ie.value=de:null),id:vue.unref(le),onPreview:ue[1]||(ue[1]=de=>ee("preview",de)),onSave:ue[2]||(ue[2]=de=>{le.value=de,ee("save")}),onBack:ue[3]||(ue[3]=()=>oe.value=!1)},null,8,["title","id"])]),vue.createElementVNode("div",_hoisted_3$Y,[vue.createElementVNode("div",_hoisted_4$T,[vue.createVNode(LeftPannel)]),vue.createElementVNode("div",_hoisted_5$J,[vue.createElementVNode("div",_hoisted_6$E,[vue.createVNode(Main)])]),vue.unref(re).getRightPannel?(vue.openBlock(),vue.createElementBlock("div",_hoisted_7$y,[vue.createVNode(RightPannel)])):vue.createCommentVNode("",!0)])])),[[vue.unref(elementPlus.vLoading),vue.unref(re).createLoading]])]),_:1},8,["modelValue"])}}}),design_vue_vue_type_style_index_0_lang="",_withScopeId$v=te=>(vue.pushScopeId("data-v-ec07a7d2"),te=te(),vue.popScopeId(),te),_hoisted_1$1g={key:1,class:"flex flex-wrap items-center justify-between"},_hoisted_2$13={class:"item-container"},_hoisted_3$X={class:"item-image"},_hoisted_4$S=["src"],_hoisted_5$I=["onClick"],_hoisted_6$D=_withScopeId$v(()=>vue.createElementVNode("span",{class:"text-base text-white cursor-pointer"},"预览大屏",-1)),_hoisted_7$x=[_hoisted_6$D],_hoisted_8$t={class:"flex items-center justify-between item-footer"},_hoisted_9$p={class:"flex"},_hoisted_10$k=["onClick"],_hoisted_11$f=_withScopeId$v(()=>vue.createElementVNode("i",{class:"mr-1 ri-edit-line"},null,-1)),_hoisted_12$d=["onClick"],_hoisted_13$b=_withScopeId$v(()=>vue.createElementVNode("i",{class:"mr-1 ri-delete-bin-line"},null,-1)),_hoisted_14$a=_withScopeId$v(()=>vue.createElementVNode("div",{class:"item"},null,-1)),_hoisted_15$6=_withScopeId$v(()=>vue.createElementVNode("div",{class:"item"},null,-1)),_sfc_main$1v=vue.defineComponent({__name:"index",emits:["preview","auto-play"],setup(te,{emit:U}){const G=U,{proxy:ee}=vue.getCurrentInstance(),{resetUrl:ne}=ee.$globalUtils,re=vue.ref(null),oe=vue.ref(null),ie=vue.reactive([{name:"新增",key:"ADD",type:"primary"},{name:"自动播放",key:"AUTO-PLAY",type:"primary"}]),le=vue.reactive([{name:"名称",type:FieldType.Text,fieldName:"title",value:""}]),ae=async se=>{const{type:ue,row:ce}=se;switch(ue){case"PREVIEW":G("preview","list",(ce==null?void 0:ce.id)??"");break;case"AUTO-PLAY":G("auto-play");break;case"ADD":case"EDIT":vue.unref(oe).init((ce==null?void 0:ce.id)??"");break;case"DEL":ee.$baseConfirm({content:"是否确定删除",callConfirm:async()=>{await ee.$baseHttp.post("/api/ace-data-center/screen/remove",{},{params:{ids:ce.id},headers:{loading:!0}})&&(ee.$message({type:"success",message:"删除成功",plain:!0}),vue.unref(re).getData())}});break}};return(se,ue)=>{const ce=vue.resolveComponent("AppEmpty"),de=vue.resolveComponent("AppList");return vue.openBlock(),vue.createBlock(de,{url:`/api/ace-data-center/screen/list?descs=create_time&projectId=${vue.unref(ee).$baseGetCurrentProjectId()}`,tableData:[],searchForm:vue.unref(le),searchBtns:vue.unref(ie),listType:"custom",onBtnClick:ae,ref_key:"appListRef",ref:re},{"list-slot":vue.withCtx(({list:fe,loading:ve})=>[vue.createVNode(vue.unref(elementPlus.ElSkeleton),{loading:ve,animated:""},{default:vue.withCtx(()=>[fe.length==0?(vue.openBlock(),vue.createBlock(ce,{key:0,description:"暂无数据"})):(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$1g,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(fe,(he,pe)=>(vue.openBlock(),vue.createElementBlock("div",{key:pe,class:"item"},[vue.createElementVNode("div",_hoisted_2$13,[vue.createElementVNode("div",_hoisted_3$X,[vue.createElementVNode("img",{src:vue.unref(ne)(he.imageUrl??"")||"https://fuss10.elemecdn.com/d/e6/c4d93a3805b3ce3f323f7974e6f78jpeg.jpeg"},null,8,_hoisted_4$S),vue.createElementVNode("div",{class:"flex items-center justify-center item-popup",onClick:ge=>ae({type:"PREVIEW",row:he,index:pe})},_hoisted_7$x,8,_hoisted_5$I)]),vue.createElementVNode("div",_hoisted_8$t,[vue.createElementVNode("div",null,vue.toDisplayString(he.title),1),vue.createElementVNode("div",_hoisted_9$p,[vue.createElementVNode("span",{onClick:ge=>ae({type:"EDIT",row:he,index:pe}),class:"flex items-center text-xs text-gray-600 cursor-pointer"},[_hoisted_11$f,vue.createTextVNode(" 编辑大屏 ")],8,_hoisted_10$k),vue.createElementVNode("span",{onClick:ge=>ae({type:"DEL",row:he,index:pe}),class:"flex items-center ml-2 text-xs cursor-pointer text-color-danger"},[_hoisted_13$b,vue.createTextVNode(" 删除 ")],8,_hoisted_12$d)])])])]))),128)),_hoisted_14$a,_hoisted_15$6]))]),_:2},1032,["loading"])]),default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1w,{ref_key:"designRef",ref:oe,onSave:ue[0]||(ue[0]=fe=>vue.unref(re).getData()),onPreview:ue[1]||(ue[1]=fe=>G("preview","content",fe))},null,512)]),_:1},8,["url","searchForm","searchBtns"])}}}),index_vue_vue_type_style_index_0_scoped_ec07a7d2_lang="",aceBigScreen=_export_sfc$2(_sfc_main$1v,[["__scopeId","data-v-ec07a7d2"]]);let currRenderDom=null,currelRectification="",currelRectificationLevel="",currelRectificationIsKeepRatio="",resizeListener=null,timer=null,currScale=1,isElRectification=!1;const autofit={isAutofitRunnig:!1,init(te={},U=!0){U&&console.log("autofit.js is running");const{dw:G=1920,dh:ee=1080,el:ne=typeof te=="string"?te:"body",resize:re=!0,ignore:oe=[],transition:ie="none",delay:le=0,limit:ae=.1}=te;currRenderDom=ne;let se=document.querySelector(ne);if(!se){console.error(`autofit: '${ne}' is not exist`);return}const ue=document.createElement("style"),ce=document.createElement("style");ue.lang="text/css",ce.lang="text/css",ue.id="autofit-style",ce.id="ignoreStyle",ue.innerHTML="body {overflow: hidden;}";const de=document.querySelector("body");de.appendChild(ue),de.appendChild(ce),se.style.height=`${ee}px`,se.style.width=`${G}px`,se.style.transformOrigin="0 0",se.style.overflow="hidden",keepFit(G,ee,se,oe,ae),resizeListener=()=>{clearTimeout(timer),le!=0?timer=setTimeout(()=>{keepFit(G,ee,se,oe,ae),isElRectification&&elRectification(currelRectification,currelRectificationIsKeepRatio,currelRectificationLevel)},le):(keepFit(G,ee,se,oe,ae),isElRectification&&elRectification(currelRectification,currelRectificationIsKeepRatio,currelRectificationLevel))},re&&window.addEventListener("resize",resizeListener),this.isAutofitRunnig=!0,setTimeout(()=>{se.style.transition=`${ie}s`})},off(te="body"){try{isElRectification=!1,window.removeEventListener("resize",resizeListener),document.querySelector("#autofit-style").remove();const U=document.querySelector("#ignoreStyle");U&&U.remove(),document.querySelector(currRenderDom||te).style="",isElRectification&&offelRectification()}catch(U){console.error("autofit: Failed to remove normally",U),this.isAutofitRunnig=!1}this.isAutofitRunnig&&console.log("autofit.js is off")}};function elRectification(te,U=!0,G=1){autofit.isAutofitRunnig||console.error("autofit.js:autofit has not been initialized yet"),!te&&console.error(`autofit.js:bad selector: ${te}`),currelRectification=te,currelRectificationLevel=G,currelRectificationIsKeepRatio=U;const ee=document.querySelectorAll(te);if(ee.length==0){console.error("autofit.js:elRectification found no element");return}for(let ne of ee){let re=currScale==1?1:currScale*G;isElRectification||(ne.originalWidth=ne.clientWidth,ne.originalHeight=ne.clientHeight),U?(ne.style.width=`${ne.originalWidth*re}px`,ne.style.height=`${ne.originalHeight*re}px`):(ne.style.width=`${100*re}%`,ne.style.height=`${100*re}%`),ne.style.transform=`scale(${1/currScale})`,ne.style.transformOrigin="0 0"}isElRectification=!0}function offelRectification(){if(currelRectification)for(let te of document.querySelectorAll(currelRectification))te.style.width="",te.style.height="",te.style.transform=""}function keepFit(te,U,G,ee,ne){let re=document.documentElement.clientHeight,oe=document.documentElement.clientWidth;currScale=oe/re<te/U?oe/te:re/U,currScale=Math.abs(1-currScale)>ne?currScale.toFixed(2):1;let ie=Math.round(re/currScale),le=Math.round(oe/currScale);G.style.height=`${ie}px`,G.style.width=`${le}px`,G.style.transform=`scale(${currScale})`;const ae=document.querySelector("#ignoreStyle");ae.innerHTML="";for(let se of ee){let ue=se.el||se.dom;if(typeof se=="string"&&(ue=se),!ue){console.error(`autofit: bad selector: ${ue}`);continue}let ce=se.scale?se.scale:1/currScale,de=ce!=currScale?se.fontSize:"autofit",fe=ce!=currScale?se.width:"autofit",ve=ce!=currScale?se.height:"autofit";new RegExp(`${ue}( |{)`,"gm").test(ae.innerHTML)||(ae.innerHTML+=`
|
|
790
790
|
${ue} {
|
|
791
791
|
transform: scale(${ce})!important;
|
|
792
792
|
transform-origin: 0 0;
|
|
@@ -900,7 +900,7 @@ ${ue} div ,${ue} span,${ue} a,${ue} * {
|
|
|
900
900
|
}`),de=vue.ref({});G({},oe);const fe=vue.ref(0),ve=async()=>{var Ne;const Ve=await U.$baseHttp.post("/api/ace-data-center/file-extract-cache/count",{modelId:(Ne=re==null?void 0:re.model)==null?void 0:Ne.id,extractStatus:"00"});fe.value=Ve.data};ve();const he=vue.ref({}),pe=()=>{var Ve;if(((Ve=re.model)==null?void 0:Ve.publishStatus)!=2){U.$message.warning("模型未发布无法抽取");return}U.$baseConfirm({content:"是否立即执行",callConfirm:async()=>{var Pe,we;me.value=[],_e.value=[],ue.value=null;const{params:Ne}=ee(oe),Se=await U.$baseHttp.post("/api/ace-data-center/file-extract/extract",{title:re.model.modelName,modelId:re.model.id,fileUrl:vue.unref(he).link,fileName:vue.unref(he).originalName,extractType:Ne.extractType,hasPicture:Ne.hasPicture,projectId:U.$baseGetCurrentProjectId(),pluginScript:vue.unref(ce)},{headers:{loading:!0}});if(Se&&(ue.value=Se.data,(Pe=Se.data)!=null&&Pe.isExtractSuccess?U.$message.success("抽取成功"):U.$message.warning("抽取失败"),!Se.data.isValidateSuccess)){me.value=((we=Se.data)==null?void 0:we.errorValidateData)??[];const ke=await ne(re.model.id);ke.data&&ke.data.unshift({label:"异常情况",prop:"异常情况",mapLabel:"异常情况"}),_e.value=(ke.data??[]).map(Te=>({...Te,prop:Te.mapLabel}));return}}})},ge=async()=>{var Ve;if(((Ve=re.model)==null?void 0:Ve.publishStatus)!=2){U.$message.warning("模型未发布无法抽取");return}U.$baseConfirm({content:"是否立即执行批量抽取",callConfirm:async()=>{const{params:Ne}=ee(oe);await U.$baseHttp.post("/api/ace-data-center/file-extract/batch-extract",{title:re.model.modelName,modelId:re.model.id,extractType:Ne.extractType,hasPicture:Ne.hasPicture,projectId:U.$baseGetCurrentProjectId(),pluginScript:vue.unref(ce)},{headers:{loading:!0}})&&(U.$message.success("操作完成"),ve())}})},me=vue.ref([]),_e=vue.ref([]),ye=async Ve=>{const Ne=new FormData;Ne.append("file",Ve.file);const Se=await U.$baseHttp.post("/api/ace-api/blade-resource/oss/endpoint/put-file",Ne,{headers:{"Content-Type":"multipart/form-data",loading:!0}});Se&&(he.value=Se.data,U.$message.success("上传成功"))},be=async Ve=>{const Ne=new FormData;Ne.append("file",Ve.file);const Se=await U.$baseHttp.post("/api/ace-api/blade-resource/oss/endpoint/put-file",Ne,{headers:{"Content-Type":"multipart/form-data",loading:!0}});!Se||!await U.$baseHttp.post("/api/ace-data-center/file-extract-cache/submit",{modelId:re.model.id,fileUrl:Se.data.link,fileName:Se.data.originalName,extractStatus:"00",projectId:U.$baseGetCurrentProjectId()},{headers:{loading:!0}})||(U.$message.success("操作完成"),ve())},xe=async()=>{var Ne,Se;let Ve;Ve=await U.$baseHttp.get("/api/ace-data-center/file-extract/getDebugData",{params:{fileUrl:(Ne=vue.unref(he))==null?void 0:Ne.link,modelId:(Se=re.model)==null?void 0:Se.id}}),Ve&&(Ve=await U.$baseHttp.post("/api/ace-data-center/plugin-script/pluginScriptDebug",{paramData:JSON.stringify(Ve.data[0]),pluginScript:vue.unref(ce)}),Ve&&(de.value=JSON.parse(Ve.data||"{}"),U.$message.success("插件执行完成")))},Ce=async()=>{const Ve=await U.$baseHttp.get(`/api/ace-data-center/file-extract-template/detailByParams?modelId=${re.model.id}`);if(Ve){if(!Ve.data){U.$message.warning("暂无数据");return}U.$globalUtils.exportFile(Ve.data.modelTemplateFileUrl,Ve.data.modelTemplateFileName)}},$e=()=>{vue.unref(ae).init({businessId:re.model.id})},Ee=async()=>{vue.unref(se).init()};return(Ve,Ne)=>{var Te,De;const Se=vue.resolveComponent("aceHeader"),Pe=vue.resolveComponent("AppCodemirror"),we=vue.resolveComponent("AppForm"),ke=vue.resolveComponent("AppTable");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$n,[vue.createElementVNode("div",_hoisted_2$i,[vue.createVNode(vue.unref(elementPlus.ElLink),{type:"success",onClick:Ee},{default:vue.withCtx(()=>[_hoisted_3$h,vue.createTextVNode(" 模板上传 ")]),_:1}),vue.createVNode(vue.unref(elementPlus.ElLink),{type:"warning",class:"ml-3",onClick:Ce},{default:vue.withCtx(()=>[_hoisted_4$f,vue.createTextVNode(" 模板下载 ")]),_:1}),vue.createVNode(vue.unref(elementPlus.ElLink),{type:"primary",class:"ml-3",onClick:$e},{default:vue.withCtx(()=>[_hoisted_5$d,vue.createTextVNode(" 导入历史 ")]),_:1})]),vue.unref(ue)?(vue.openBlock(),vue.createElementBlock("div",_hoisted_6$b,[vue.createVNode(vue.unref(elementPlus.ElAlert),{title:"温馨提醒",type:vue.unref(ue).isExtractSuccess?"success":"warning","show-icon":"",closable:!1},{default:vue.withCtx(()=>[vue.unref(ue).isTitleCheckSuccess===!1?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[_hoisted_7$a,vue.createTextVNode(" 请检查Excel文件数据! ")],64)):vue.unref(ue).isValidateSuccess?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:2},[vue.createTextVNode(" 本批数据共有"+vue.toDisplayString(vue.unref(ue).dataTotalNum)+"条,全部通过校验。 ",1)],64)):(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:1},[vue.createTextVNode(" 本批数据共有"+vue.toDisplayString(vue.unref(ue).dataTotalNum)+"条, 已校验"+vue.toDisplayString(vue.unref(ue).validateSuccessNum+vue.unref(ue).validateFailNum)+"条, "+vue.toDisplayString(vue.unref(ue).validateFailNum)+"条 ",1),_hoisted_8$8,vue.createTextVNode(" 当前异常率约为"+vue.toDisplayString(Number(vue.unref(ue).validateFailNum/(vue.unref(ue).validateSuccessNum+vue.unref(ue).validateFailNum)*100).toFixed(2))+"% ",1)],64))]),_:1},8,["type"])])):vue.createCommentVNode("",!0),vue.createVNode(we,{form:vue.unref(oe)},{debug:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElPopover),{width:1e3,trigger:"hover"},{reference:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElLink),{type:"primary"},{default:vue.withCtx(()=>[_hoisted_12$4,vue.createTextVNode(" 插件编写 ")]),_:1})]),default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_9$8,[vue.createElementVNode("div",_hoisted_10$7,[vue.createVNode(Se,{title:"插件编写",class:"mb-2"},{default:vue.withCtx(()=>{var Ie;return[vue.createVNode(vue.unref(elementPlus.ElLink),{type:"primary",onClick:xe,disabled:(((Ie=vue.unref(he))==null?void 0:Ie.link)??"")==""},{default:vue.withCtx(()=>[vue.createTextVNode(" 执行插件 ")]),_:1},8,["disabled"])]}),_:1}),vue.createVNode(Pe,{modelValue:vue.unref(ce),"onUpdate:modelValue":Ne[0]||(Ne[0]=Ie=>vue.isRef(ce)?ce.value=Ie:null)},null,8,["modelValue"])]),vue.createElementVNode("div",_hoisted_11$5,[vue.createVNode(Se,{title:"插件执行结果",class:"mb-2"}),vue.createVNode(vue.unref(JsonEditorVue),{style:{height:"300px"},modelValue:vue.unref(de),"onUpdate:modelValue":Ne[1]||(Ne[1]=Ie=>vue.isRef(de)?de.value=Ie:null)},null,8,["modelValue"])])])]),_:1})]),fileUrl:vue.withCtx(({element:Ie})=>[vue.createVNode(vue.unref(elementPlus.ElUpload),{style:{width:"300px"},drag:"","on-remove":()=>Ie.value="","on-success":()=>Ie.value="1",ref_key:"uploadRef",ref:ie,"http-request":ye,accept:"'.xls', '.xlsx'",multiple:!1},{default:vue.withCtx(()=>[_hoisted_13$2,_hoisted_14$2]),_:2},1032,["on-remove","on-success"]),vue.createElementVNode("div",_hoisted_15$1,[vue.createVNode(vue.unref(elementPlus.ElButton),{type:"primary",disabled:Ie.value=="",onClick:pe},{default:vue.withCtx(()=>[_hoisted_16$1,vue.createTextVNode(" 立即抽取 ")]),_:2},1032,["disabled"])])]),batchFileUrl:vue.withCtx(({element:Ie})=>[vue.createVNode(vue.unref(elementPlus.ElUpload),{style:{width:"300px"},drag:"","http-request":be,accept:"'.xls', '.xlsx'",multiple:"","show-file-list":!1},{default:vue.withCtx(()=>[_hoisted_17$1,_hoisted_18$1]),_:1}),vue.createElementVNode("div",_hoisted_19$1,[vue.createElementVNode("span",_hoisted_20$1,"批量待抽取数:"+vue.toDisplayString(vue.unref(fe))+"个",1),vue.createVNode(vue.unref(elementPlus.ElLink),{type:"primary",onClick:Ne[2]||(Ne[2]=Me=>vue.unref(le).init())},{default:vue.withCtx(()=>[vue.createTextVNode("查看详情")]),_:1})]),vue.createElementVNode("div",_hoisted_21$1,[vue.createVNode(vue.unref(elementPlus.ElButton),{type:"primary",disabled:vue.unref(fe)<=0,onClick:ge},{default:vue.withCtx(()=>[_hoisted_22$1,vue.createTextVNode(" 批量抽取 ")]),_:1},8,["disabled"])])]),_:1},8,["form"]),vue.unref(_e).length>0?(vue.openBlock(),vue.createBlock(ke,{key:1,class:"mt-4",list:vue.unref(me),tableData:vue.unref(_e),loading:!1},null,8,["list","tableData"])):vue.createCommentVNode("",!0),vue.createVNode(_sfc_main$u,{ref_key:"modelFileCacheListRef",ref:le,modelId:(Te=re==null?void 0:re.model)==null?void 0:Te.id,onSuccess:Ne[3]||(Ne[3]=Ie=>ve())},null,8,["modelId"]),vue.createVNode(_sfc_main$t,{ref_key:"modelExtractLogRef",ref:ae},null,512),vue.createVNode(_sfc_main$s,{ref_key:"modelExecelEditRef",ref:se,modelId:(De=re==null?void 0:re.model)==null?void 0:De.id},null,8,["modelId"])])}}}),_sfc_main$p=vue.defineComponent({__name:"taskDesign",setup(te,{expose:U}){const{proxy:G}=vue.getCurrentInstance(),{setFormValue:ee,getFormValue:ne}=G.$globalHooks.useForm(),re=vue.reactive([{name:"执行周期",type:FieldType.Radio,fieldName:"fd",value:"",required:!0,options:[{label:"每天",value:"DAY"},{label:"每周",value:"WEEK"},{label:"每月",value:"MONTH"}],changeFunc:le=>{const ae=re.find(se=>se.fieldName==="xxlJobId");le.isChange&&(ae.value=null,ae.options=[]),(le.value??"")!=""&&(ae.options=G.$globalUtils.taskOptions.filter(se=>se.type==le.value))}},{name:"执行时间",type:FieldType.Select,fieldName:"xxlJobId",value:"",required:!0,fieldType:FieldRenderType.String},{name:"是否开启",type:FieldType.Radio,fieldName:"status",value:"",required:!0,dict:"taskStatus"}]);return U({init:(le={})=>{var ae;!le.fd&&le.xxlJobId&&(le.fd=((ae=G.$globalUtils.taskOptions.find(se=>se.value==le.xxlJobId))==null?void 0:ae.type)??""),ee(le,re)},getForm:()=>ne(re),formData:re}),(le,ae)=>{const se=vue.resolveComponent("AppForm");return vue.openBlock(),vue.createBlock(se,{form:vue.unref(re)},null,8,["form"])}}}),taskDesign_vue_vue_type_style_index_0_scoped_16c11e9a_lang="",taskDesign=_export_sfc$2(_sfc_main$p,[["__scopeId","data-v-16c11e9a"]]),_hoisted_1$m={class:"flex"},_hoisted_2$h={class:"flex-1 overflow-hidden"},_hoisted_3$g=vue.createElementVNode("i",{class:"ml-2 cursor-pointer ri-lightbulb-line text-color-warning"},null,-1),_hoisted_4$e={class:"mt-2"},_hoisted_5$c={class:"flex-1 ml-5"},_hoisted_6$a={class:"mt-2"},_hoisted_7$9={class:"flex mt-3"},_hoisted_8$7={class:"flex-1 overflow-hidden"},_hoisted_9$7={class:"mt-2"},_hoisted_10$6={class:"flex-1 ml-5"},_hoisted_11$4={class:"mt-2"},_hoisted_12$3={class:"mt-2"},_sfc_main$o=vue.defineComponent({__name:"main",props:{modelAttributeList:{default:()=>[]}},setup(te,{expose:U}){const{proxy:G}=vue.getCurrentInstance(),{setFormValue:ee,getFormValue:ne}=G.$globalHooks.useForm(),re=[{sql:"select * from "}],oe=vue.ref(""),ie=vue.ref({}),le=vue.ref(),ae=vue.ref({}),se=vue.ref(!1),ue=vue.ref(!1),ce=vue.ref(null),de=vue.computed(()=>fe.find(me=>me.fieldName=="extractType")),fe=vue.reactive([{name:"方案名称",type:FieldType.Text,fieldName:"extractName",value:"",required:!0},{name:"数据流类型",type:FieldType.Radio,fieldName:"streamType",value:"",required:!0,options:[{label:"标准流",value:"STANDARD"},{label:"自定义流",value:"CUSTOM"}]},{name:"数据流类型",type:FieldType.Radio,fieldName:"extractType",value:"",required:!0,options:[{label:"全量抽取",value:"1"},{label:"增量抽取",value:"2"},{label:"协同抽取",value:"3"}],changeFunc:me=>{fe.find(_e=>_e.fieldName=="incrementalField").hide=me.value!=2}},{name:"增量字段",type:FieldType.Slot,fieldName:"incrementalField",value:"",required:!0,tip:"该字段必须为本模型字段,并且是SQL结果集中存在的字段"},{name:"taskDefinedId",type:FieldType.Text,fieldName:"taskDefinedId",hide:!0},{name:"id",type:FieldType.Text,fieldName:"id",hide:!0}]),ve=vue.ref(null),he=me=>{vue.nextTick(()=>{ee(me??{},fe),me!=null&&me.taskDefined&&(ue.value=!0),oe.value=(me==null?void 0:me.extractSql)??"",le.value=(me==null?void 0:me.extractPluginScript)??`function plugin(item){
|
|
901
901
|
var data=JSON.parse(item);
|
|
902
902
|
return JSON.stringify(data)
|
|
903
|
-
}`,vue.unref(ce).init((me==null?void 0:me.taskDefined)??{}),ve.value=(me==null?void 0:me.taskDefined)??null})},pe=()=>{if(!vue.unref(oe)){G.$message.warning("请输入SQL");return}const{params:me,error:_e}=ne(fe);if(!(_e.length>0)){if(vue.unref(ue)){const{params:ye,error:be}=vue.unref(ce).getForm();if(be.length>0)return;me.taskDefined={...vue.unref(ve)??{},...ye}}return{...me,extractPluginScript:vue.unref(le),extractSql:vue.unref(oe)}}},ge=async me=>{se.value=!0;const _e={dataSourceId:0,extractSql:vue.unref(oe),projectId:G.$baseGetCurrentProjectId()};me==="javascript"&&(_e.extractPluginScript=vue.unref(le)||"",_e.streamType=fe.find(be=>be.fieldName=="streamType").value);const ye=await G.$baseHttp.post("/api/ace-data-center/db-extract/dbExtractDebug",_e);se.value=!1,ye&&(me==="sql"?ie.value=ye.data:ae.value=ye.data,G.$message.success("执行成功"))};return U({extractSql:oe,init:he,getValue:pe}),(me,_e)=>{const ye=vue.resolveComponent("aceHeader"),be=vue.resolveComponent("AppCodemirror"),xe=vue.resolveComponent("AppForm");return vue.openBlock(),vue.createElementBlock(vue.Fragment,null,[vue.createElementVNode("div",_hoisted_1$m,[vue.createElementVNode("div",_hoisted_2$h,[vue.createVNode(ye,{title:"SQL数据抽取"},{left:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElPopover),{width:"600",placement:"bottom",trigger:"hover"},{reference:vue.withCtx(()=>[_hoisted_3$g]),default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElTable),{data:re},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElTableColumn),{prop:"sql",label:"SQL示例"},{default:vue.withCtx(({row:Ce})=>[vue.createVNode(vue.unref(elementPlus.ElTooltip),{content:Ce.sql,placement:"top"},{default:vue.withCtx(()=>[vue.createElementVNode("span",null,vue.toDisplayString(String(Ce.sql).substring(1,30))+"...",1)]),_:2},1032,["content"])]),_:1}),vue.createVNode(vue.unref(elementPlus.ElTableColumn),{label:"操作",width:"120"},{default:vue.withCtx(({row:Ce})=>[vue.createVNode(vue.unref(elementPlus.ElLink),{type:"primary",onClick:$e=>oe.value=Ce.sql},{default:vue.withCtx(()=>[vue.createTextVNode("复制到编辑框")]),_:2},1032,["onClick"])]),_:1})]),_:1})]),_:1})]),default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElLink),{disabled:vue.unref(se),type:"warning",onClick:_e[0]||(_e[0]=Ce=>ge("sql"))},{default:vue.withCtx(()=>[vue.createTextVNode("执行SQL")]),_:1},8,["disabled"])]),_:1}),vue.createElementVNode("div",_hoisted_4$e,[vue.createVNode(be,{extensions:"sql",modelValue:vue.unref(oe),"onUpdate:modelValue":_e[1]||(_e[1]=Ce=>vue.isRef(oe)?oe.value=Ce:null),style:{height:"250px"}},null,8,["modelValue"])])]),vue.createElementVNode("div",_hoisted_5$c,[vue.createVNode(ye,{title:"执行结果"}),vue.createElementVNode("div",_hoisted_6$a,[vue.createVNode(vue.unref(JsonEditorVue),{style:{height:"250px"},modelValue:vue.unref(ie),"onUpdate:modelValue":_e[2]||(_e[2]=Ce=>vue.isRef(ie)?ie.value=Ce:null)},null,8,["modelValue"])])])]),vue.createElementVNode("div",_hoisted_7$9,[vue.createElementVNode("div",_hoisted_8$7,[vue.createVNode(ye,{title:"插件编写"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElLink),{disabled:vue.unref(se),type:"warning",onClick:_e[3]||(_e[3]=Ce=>ge("javascript"))},{default:vue.withCtx(()=>[vue.createTextVNode(" 执行插件 ")]),_:1},8,["disabled"])]),_:1}),vue.createElementVNode("div",_hoisted_9$7,[vue.createVNode(be,{modelValue:vue.unref(le),"onUpdate:modelValue":_e[4]||(_e[4]=Ce=>vue.isRef(le)?le.value=Ce:null),style:{height:"250px"}},null,8,["modelValue"])])]),vue.createElementVNode("div",_hoisted_10$6,[vue.createVNode(ye,{title:"插件执行结果"}),vue.createElementVNode("div",_hoisted_11$4,[vue.createVNode(vue.unref(JsonEditorVue),{style:{height:"250px"},modelValue:vue.unref(ae),"onUpdate:modelValue":_e[5]||(_e[5]=Ce=>vue.isRef(ae)?ae.value=Ce:null)},null,8,["modelValue"])])])]),vue.createVNode(ye,{title:"抽取方案",class:"mt-4"}),vue.createVNode(xe,{form:vue.unref(fe)},{incrementalField:vue.withCtx(({element:Ce})=>[vue.createVNode(vue.unref(elementPlus.ElSelect),{modelValue:Ce.value,"onUpdate:modelValue":$e=>Ce.value=$e,placeholder:"请选择"},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(me.modelAttributeList,$e=>(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElOption),{key:$e.id,label:`${$e.attributeCode}(${$e.attributeComment||$e.attributeCode})`,value:$e.attributeCode},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue"])]),_:1},8,["form"]),vue.withDirectives(vue.createElementVNode("div",_hoisted_12$3,[vue.createVNode(ye,{title:"作业配置",class:"mb-2"},{left:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElCheckbox),{class:"ml-2",modelValue:vue.unref(ue),"onUpdate:modelValue":_e[6]||(_e[6]=Ce=>vue.isRef(ue)?ue.value=Ce:null)},{default:vue.withCtx(()=>[vue.createTextVNode("作业配置")]),_:1},8,["modelValue"])]),_:1}),vue.withDirectives(vue.createElementVNode("div",null,[vue.createVNode(taskDesign,{ref_key:"taskDesignRef",ref:ce},null,512)],512),[[vue.vShow,vue.unref(ue)]])],512),[[vue.vShow,["1","2"].includes(vue.unref(de).value)]])],64)}}}),_withScopeId$8=te=>(vue.pushScopeId("data-v-5e352c92"),te=te(),vue.popScopeId(),te),_hoisted_1$l={class:"flex items-center mt-2"},_hoisted_2$g={class:"flex-1"},_hoisted_3$f={class:"mt-2 text-gray-400"},_hoisted_4$d=_withScopeId$8(()=>vue.createElementVNode("label",null,"模型名称:",-1)),_hoisted_5$b=_withScopeId$8(()=>vue.createElementVNode("label",null,"模型代码:",-1)),_hoisted_6$9=_withScopeId$8(()=>vue.createElementVNode("label",null,"模型描述:",-1)),_sfc_main$n=vue.defineComponent({__name:"model-db-extract-design",props:{modelId:{default:""}},emits:["success"],setup(te,{expose:U,emit:G}){const ee=te,ne=G,{proxy:re}=vue.getCurrentInstance(),{allModel:oe,allModelAttribute:ie,getDetail:le}=fetch$1(re).model,ae=vue.ref(!1),se=vue.ref(null),ue=vue.ref([]),ce=vue.ref(""),de=vue.ref({}),fe=(ye,be="")=>{de.value={},ue.value=[],ae.value=!0,[{label:"ODS源",value:"odsy"},{label:"DWD源",value:"dwdy"},{label:"DWD目标",value:"dwdmb"}].forEach(xe=>{ue.value.push({...xe,attributeList:xe.value=="dwdmb"?[]:{},options:[],selectValue:[],currentVal:"",checkAttributeList:[]})}),ce.value=vue.unref(ue)[0].value,oe({modelLayer:"ODS"}).then(xe=>{vue.unref(ue).find(Ce=>Ce.value=="odsy").options=xe.data}),oe({modelLayer:"DWD"}).then(xe=>{vue.unref(ue).find(Ce=>Ce.value=="dwdy").options=xe.data}),ie({modelId:ee.modelId}).then(xe=>{vue.unref(ue).find(Ce=>Ce.value=="dwdmb").attributeList=xe.data}),le(ee.modelId).then(xe=>{de.value=xe.data}),vue.nextTick(()=>{be?re.$baseHttp.get(`/api/ace-data-center/db-extract/detailAndTask?dbExtractId=${be}`).then(xe=>{vue.unref(se).init(ye=="COPY"?{...xe.data,id:null,extractType:null,incrementalField:null,status:null,taskDefined:null,taskDefinedId:null,createUser:null,createDept:null,createTime:null,updateUser:null,updateTime:null}:xe.data)}):vue.unref(se).init()})},ve=(ye,be="")=>be?ye.options.find(xe=>xe.id==be):ye.options.find(xe=>xe.id==ye.currentVal),he=ye=>{var be;if(ye.selectValue.length){const xe=ye.selectValue.at(-1);ye.currentVal=(be=ve(ye,xe))==null?void 0:be.id,pe(ye);return}ye.currentVal=""},pe=ye=>{ye.attributeList[ye.currentVal]||ie({modelId:ye.currentVal}).then(be=>{ye.attributeList[ye.currentVal]=be.data})},ge=ye=>{ce.value=ye},me=ye=>{var be;vue.unref(se).extractSql+=`select ${ye.checkAttributeList.map(xe=>xe.attributeCode).toString()} from ${(be=ve(ye))==null?void 0:be.modelCode}`},_e=async()=>{const ye={execExtract:0,dataSourceId:0,modelId:ee.modelId,projectId:re.$baseGetCurrentProjectId()},be=vue.unref(se).getValue();!be||!await re.$baseHttp.post("/api/ace-data-center/db-extract/submitDbExtract",{...ye,...be},{headers:{loading:!0}})||(re.$message.success("操作成功"),ae.value=!1,ne("success"))};return U({init:fe}),(ye,be)=>{const xe=vue.resolveComponent("aceHeader"),Ce=vue.resolveComponent("AppDrawer");return vue.openBlock(),vue.createBlock(Ce,{modelValue:vue.unref(ae),"onUpdate:modelValue":be[1]||(be[1]=$e=>vue.isRef(ae)?ae.value=$e:null),title:"数据抽取",size:"100%"},{footer:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElButton),{class:"ml-3",type:"primary",onClick:_e},{default:vue.withCtx(()=>[vue.createTextVNode("保存")]),_:1}),vue.createVNode(vue.unref(elementPlus.ElButton),{class:"ml-3",onClick:be[0]||(be[0]=$e=>ae.value=!1)},{default:vue.withCtx(()=>[vue.createTextVNode("取消")]),_:1})]),default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElContainer),{class:"h-full overflow-hidden",style:{"margin-top":"0"}},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElAside),{class:"flex flex-col pr-4 mr-5",style:{width:"320px",overflow:"hidden"}},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElButtonGroup),null,{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vue.unref(ue),$e=>(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElButton),{onClick:Ee=>ge($e.value),type:vue.unref(ce)==$e.value?"primary":"",key:$e.value},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString($e.label),1)]),_:2},1032,["onClick","type"]))),128))]),_:1}),(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vue.unref(ue),$e=>(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:$e.value},[$e.value==vue.unref(ce)&&["odsy","dwdy"].includes($e.value)?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[vue.createVNode(xe,{class:"mt-2",title:"模型选择"}),vue.createElementVNode("div",_hoisted_1$l,[vue.createElementVNode("div",_hoisted_2$g,[vue.createVNode(vue.unref(elementPlus.ElSelect),{modelValue:$e.selectValue,"onUpdate:modelValue":Ee=>$e.selectValue=Ee,onChange:()=>he($e),multiple:"","collapse-tags":"",clearable:"",placeholder:"请选择一个模型",class:"w-full"},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList($e.options,Ee=>(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElOption),{key:Ee.id,label:Ee.modelName,value:Ee.id},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","onChange"])]),$e.selectValue.length?(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElPopover),{key:0,placement:"right",width:"300",trigger:"hover"},{reference:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElBadge),{value:$e.selectValue.length,class:"ml-4"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElLink),null,{default:vue.withCtx(()=>[vue.createTextVNode("模型")]),_:1})]),_:2},1032,["value"])]),default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList($e.selectValue,Ee=>(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElTag),{key:Ee,type:$e.currentVal==Ee?"warning":"primary",onClick:Ve=>{$e.currentVal=Ee,pe($e)},style:{margin:"0 7px 7px 0",cursor:"pointer"}},{default:vue.withCtx(()=>{var Ve;return[vue.createTextVNode(vue.toDisplayString((Ve=ve($e,Ee))==null?void 0:Ve.modelName),1)]}),_:2},1032,["type","onClick"]))),128))]),_:2},1024)):vue.createCommentVNode("",!0)]),$e.currentVal?(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElTooltip),{key:0,effect:"dark",content:`${ve($e).modelName}[${ve($e).modelCode}]`,placement:"bottom"},{default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_3$f,vue.toDisplayString(`${ve($e).modelName}[${ve($e).modelCode}]`),1)]),_:2},1032,["content"])):vue.createCommentVNode("",!0),vue.createVNode(xe,{class:"mt-2 mb-2",title:"字段属性"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElLink),{disabled:$e.checkAttributeList.length==0,type:"primary",onClick:Ee=>me($e)},{default:vue.withCtx(()=>[vue.createTextVNode(" 复制select语句到编辑框 ")]),_:2},1032,["disabled","onClick"])]),_:2},1024),vue.createVNode(vue.unref(elementPlus.ElTable),{data:$e.attributeList[$e.currentVal],height:"100%",onSelectionChange:Ee=>$e.checkAttributeList=Ee},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElTableColumn),{type:"selection",width:"55"}),vue.createVNode(vue.unref(elementPlus.ElTableColumn),{prop:"attributeCode",label:"字段名称"}),vue.createVNode(vue.unref(elementPlus.ElTableColumn),{prop:"attributeComment",label:"字段描述"}),vue.createVNode(vue.unref(elementPlus.ElTableColumn),{prop:"dataType",label:"数据类型"})]),_:2},1032,["data","onSelectionChange"])],64)):vue.createCommentVNode("",!0),$e.value==vue.unref(ce)&&["dwdmb"].includes($e.value)?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:1},[vue.createVNode(xe,{class:"mt-2",title:"DWD模型信息"}),vue.createElementVNode("section",null,[vue.createElementVNode("div",null,[_hoisted_4$d,vue.createTextVNode(" "+vue.toDisplayString(vue.unref(de).modelName),1)]),vue.createElementVNode("div",null,[_hoisted_5$b,vue.createTextVNode(" "+vue.toDisplayString(vue.unref(de).modelCode),1)]),vue.createElementVNode("div",null,[_hoisted_6$9,vue.createTextVNode(" "+vue.toDisplayString(vue.unref(de).modelDesc),1)])]),vue.createVNode(vue.unref(elementPlus.ElTable),{data:$e.attributeList,height:"100%"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElTableColumn),{prop:"mapCode",label:"映射字段"}),vue.createVNode(vue.unref(elementPlus.ElTableColumn),{prop:"attributeComment",label:"名称"}),vue.createVNode(vue.unref(elementPlus.ElTableColumn),{label:"来源"},{default:vue.withCtx(({row:Ee,$index:Ve})=>[vue.createTextVNode(vue.toDisplayString(Ee.sourceModelName)+"."+vue.toDisplayString(Ee.sourceColumnName),1)]),_:1})]),_:2},1032,["data"])],64)):vue.createCommentVNode("",!0)],64))),128))]),_:1}),vue.createVNode(vue.unref(elementPlus.ElMain),null,{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$o,{ref_key:"designMainRef",ref:se,modelAttributeList:vue.unref(ue).at(-1).attributeList},null,8,["modelAttributeList"])]),_:1})]),_:1})]),_:1},8,["modelValue"])}}}),modelDbExtractDesign_vue_vue_type_style_index_0_scoped_5e352c92_lang="",modelDbExtractDesign=_export_sfc$2(_sfc_main$n,[["__scopeId","data-v-5e352c92"]]),_sfc_main$m=vue.defineComponent({__name:"taskLog",setup(te,{expose:U}){const G=vue.ref(!1),ee=vue.ref(!1),ne=vue.ref(null),re=vue.ref(""),oe=vue.reactive([]),ie=vue.reactive([]),le=vue.reactive([{label:"调度参数",prop:"args"},{label:"调度结果",prop:"code"},{label:"调度日志",prop:"msg",slot:!0},{label:"调度开始时间",prop:"execBeginTime"},{label:"调度结束时间",prop:"execEndTime"}]),ae=vue.reactive([]),se=ve=>{ve.data.forEach(he=>{})},ue=(ve,he,pe)=>{},ce=async ve=>{},de=async ve=>{G.value=!0,vue.nextTick(()=>{vue.unref(ne).getData({url:`/api/ace-api/blade-system/task-log/list?taskId=${ve}&descs=create_time`})})},fe=ve=>{ee.value=!0,re.value=ve.msg};return U({init:de}),(ve,he)=>{const pe=vue.resolveComponent("el-link"),ge=vue.resolveComponent("appList"),me=vue.resolveComponent("AppDrawer");return vue.openBlock(),vue.createBlock(me,{modelValue:vue.unref(G),"onUpdate:modelValue":he[1]||(he[1]=_e=>vue.isRef(G)?G.value=_e:null),title:"调度日志",size:1e3},{default:vue.withCtx(()=>[vue.createVNode(ge,{ref_key:"appRef",ref:ne,tableData:vue.unref(le),searchForm:vue.unref(oe),searchBtns:vue.unref(ie),formData:vue.unref(ae),onFormSuccess:ue,onSuccess:se,onBtnClick:ce},{msg:vue.withCtx(({row:_e})=>[vue.createVNode(pe,{type:"primary",onClick:ye=>fe(_e)},{default:vue.withCtx(()=>[vue.createTextVNode("查看调度日志")]),_:2},1032,["onClick"])]),_:1},8,["tableData","searchForm","searchBtns","formData"]),vue.createVNode(me,{modelValue:vue.unref(ee),"onUpdate:modelValue":he[0]||(he[0]=_e=>vue.isRef(ee)?ee.value=_e:null),title:"调度日志",size:"100%"},{default:vue.withCtx(()=>[vue.createElementVNode("pre",null,vue.toDisplayString(vue.unref(re)),1)]),_:1},8,["modelValue"])]),_:1},8,["modelValue"])}}}),_sfc_main$l=vue.defineComponent({__name:"model-db-extract",props:{model:{default:{}}},setup(te){const U=te,{proxy:G}=vue.getCurrentInstance(),ee=vue.ref(null),ne=vue.ref(null),re=vue.ref(null),oe=vue.ref(null),ie=`/api/ace-data-center/db-extract/list?modelId=${U.model.id}&projectId=${G.$baseGetCurrentProjectId()}`,le=vue.reactive([{name:"新增",key:"ADD",type:"primary",icon:"ri-add-line"}]),ae=vue.reactive([{label:"抽取方案名称",prop:"extractName"},{label:"抽取类型",prop:"extractType",props:{url:"/api/ace-api/blade-system/dict-biz/dictionary?code=extractType",label:"dictValue",value:"dictKey"}},{label:"操作",prop:"htmlButton",fixed:"right"}]),se=ce=>{ce.data.forEach(de=>{de.htmlButton=[],de.htmlButton.push({name:"编辑",key:"EDIT",type:"primary",icon:"ri-edit-line"}),de.htmlButton.push({name:"复制",key:"COPY",type:"primary",icon:"ri-file-copy-line"}),de.htmlButton.push({name:"抽取记录",key:"LOG",type:"primary",icon:"ri-file-line"}),de.taskDefinedId&&de.htmlButton.push({name:"作业调度日志",key:"TASK-LOG",type:"primary",icon:"ri-file-line"}),[1,2].includes(de.extractType)&&de.htmlButton.push({name:"抽取",key:"PUSH",type:"primary",icon:"ri-pushpin-line"}),de.htmlButton.push({name:"删除",key:"DEL",type:"danger",icon:"ri-delete-bin-6-line"})})},ue=ce=>{const{type:de,row:fe}=ce;switch(de){case"ADD":case"COPY":case"EDIT":vue.unref(oe).init(de,(fe==null?void 0:fe.id)??"");break;case"LOG":vue.unref(ee).init({businessId:fe.id,businessType:"db_extract",table:[{label:"日期",prop:"createTime"},{label:"数据总数",prop:"totalNum"},{label:"成功数",prop:"successNum"},{label:"失败数",prop:"failNum"},{label:"协同参数",prop:"collaborateValue"},{label:"操作",prop:"action",slot:!0,fixed:"right"}]});break;case"TASK-LOG":vue.unref(ne).init(fe.taskDefinedId??"");break;case"PUSH":G.$baseConfirm({content:"是否抽取?",callConfirm:async()=>{await G.$baseHttp.post(`/api/ace-data-center/db-extract/extract/${fe.id}`,{},{headers:{loading:!0}})&&G.$message.success("操作成功")}});break;case"DEL":G.$baseConfirm({content:"是否删除?",callConfirm:async()=>{await G.$baseHttp.post(`/api/ace-data-center/db-extract/removeById/${fe.id}`,{},{headers:{loading:!0}})&&(G.$message.success("操作成功"),vue.unref(re).getData())}});break}};return(ce,de)=>{const fe=vue.resolveComponent("appList");return vue.openBlock(),vue.createBlock(fe,{ref_key:"appRef",ref:re,url:ie,tableData:vue.unref(ae),searchBtns:vue.unref(le),onSuccess:se,onBtnClick:ue},{default:vue.withCtx(()=>{var ve;return[vue.createVNode(_sfc_main$t,{ref_key:"modelExtractLogRef",ref:ee},null,512),vue.createVNode(modelDbExtractDesign,{ref_key:"modelDbExtractDesignRef",ref:oe,modelId:(ve=U==null?void 0:U.model)==null?void 0:ve.id,onSuccess:de[0]||(de[0]=he=>vue.unref(re).getData())},null,8,["modelId"]),vue.createVNode(_sfc_main$m,{ref_key:"taskLogRef",ref:ne},null,512)]}),_:1},8,["tableData","searchBtns"])}}}),_hoisted_1$k={class:"flex max-h-80"},_hoisted_2$f={key:0,class:"p-2 mr-3 border border-gray-200 border-solid w-80"},_hoisted_3$e=vue.createElementVNode("div",{class:"h-px mt-2 mb-2 bg-gray-200"},null,-1),_hoisted_4$c={key:0,class:"overflow-x-hidden overflow-y-auto max-h-60"},_hoisted_5$a={key:1},_hoisted_6$8={class:"flex-1 overflow-hidden border border-gray-200 border-solid"},_hoisted_7$8={class:"flex justify-between p-2"},_hoisted_8$6=vue.createElementVNode("i",{class:"mr-1 ri-add-line"},null,-1),_hoisted_9$6=vue.createElementVNode("div",{class:"h-px mt-2 mb-2 bg-gray-200"},null,-1),_hoisted_10$5={class:"flex-1 h-full p-2 overflow-y-auto"},_sfc_main$k=vue.defineComponent({__name:"model-search-setting",props:{menu:{default:()=>[]},businessType:{default:"indicators"},businessId:{default:""}},emits:["success"],setup(te,{expose:U,emit:G}){const ee=te,ne=G,{proxy:re}=vue.getCurrentInstance(),{getDetail:oe}=fetch$1(re).model,{dynamicSearchForm:ie,dynamicSearchFormat:le,dynamicSearchParams:ae}=re.$aceDynamicSearch(),se=vue.computed(()=>{let he="select * from yourTable temp where ";const pe=[];return ie.value.forEach(ge=>{ge.type=="stringSingle"?pe.push(`temp.xxx like concat('%',#{query.${ge.key}},'%')`):ge.type=="numberSingle"||ge.type=="select"?pe.push(`temp.xxx = #{query.${ge.key}}`):ge.type=="numberRange"?(pe.push(`temp.xxx>= #{query.${ge.key}1}`),pe.push(`temp.xxx<= #{query.${ge.key}2}`)):ge.type=="yySingle"?pe.push(`toYear(temp.xxx)= #{query.${ge.key}}`):ge.type=="yyRange"?(pe.push(`toYear(temp.xxx)>= #{query.${ge.key}1}`),pe.push(`toYear(temp.xxx)<#{query.${ge.key}2}`)):ge.type=="yymmSingle"?pe.push(`formatDateTime(temp.xxx,'%Y-%m') = #{query.${ge.key}}`):ge.type=="yymmRange"?pe.push(`formatDateTime(temp.xxx,'%Y-%m') BETWEEN #{query.${ge.key}1} and #{query.${ge.key}2}`):ge.type=="yymmddSingle"?pe.push(`formatDateTime(temp.xxx,'%Y-%m-%d') = #{query.${ge.key}}`):ge.type=="yymmddRange"&&pe.push(`formatDateTime(temp.xxx,'%Y-%m-%d') BETWEEN #{query.${ge.key}1} and #{query.${ge.key}2}`)}),he+=pe.join(" and ")}),ue=vue.ref(ee.menu.length?ee.menu[0].value:""),ce=vue.ref(!1),de=vue.ref(!1);vue.watch(ce,async he=>{var me;if(!he)return;if(!ee.businessId){de.value=!1,ie.value=[];return}let pe;switch(de.value=!0,ie.value=[],ee.businessType){case"model":pe=await re.$baseHttp.post(`/api/ace-data-center/model/getFormJsonConfig/${ee.businessId}`);break;case"dataform":pe=await re.$baseHttp.get(`/api/ace-data-center/dataform/detail?id=${ee.businessId}`);break;case"rule":pe=await re.$baseHttp.get(`/api/ace-data-center/rule/detail?id=${ee.businessId}`);break;case"indicators":pe=await re.$baseHttp.get(`/api/ace-data-center/indicators/detail?id=${ee.businessId}`);break}const ge=JSON.parse(((me=pe==null?void 0:pe.data)==null?void 0:me.formConfJson)??"[]");["model"].includes(ee.businessType)?oe(ee.businessId).then(_e=>{ie.value=_e.data.listModelAttribute.map(ye=>({name:ye.attributeComment,key:ye.attributeCode,dataType:ye.dataType,hide:ye.hide,checked:!1,type:"",value:"",minValue:"",maxValue:"",defaultRule:"",dictId:"",options:""})),ge.forEach(ye=>{const be=vue.unref(ie).find(xe=>xe.key==ye.key);be&&(Object.keys(be).forEach(xe=>{be[xe]=ye[xe]}),be.checked=!0),["varchar","text"].includes(ye.dataType)&&!be&&(ye.type="stringSingle")}),de.value=!1}):(ie.value=ge,de.value=!1)});const fe=async()=>{let he=!1,pe=JSON.parse(JSON.stringify(vue.unref(ie)));if(["model"].includes(ee.businessType)&&(pe=pe.filter(ye=>ye.checked)),pe.forEach(ye=>{delete ye.options,(ye.key==""||ye.name==""||ye.type=="")&&(he=!0)}),he){re.$message.warning("存在字段未填写请核对");return}const ge=ae(vue.unref(ie));if(!ee.businessId){ne("success",ge),ce.value=!1;return}let me="";switch(ee.businessType){case"model":me="/api/ace-data-center/model/updateFormConfJson";break;case"dataform":me="/api/ace-data-center/dataform/submit";break;case"rule":me="/api/ace-data-center/rule/submit";break;case"indicators":me="/api/ace-data-center/indicators/updateFormConfJson";break}await re.$baseHttp.post(me,{id:ee.businessId,formConfJson:JSON.stringify(pe),paramsRemark:JSON.stringify(ge),projectId:re.$baseGetCurrentProjectId()},{headers:{loading:!0}})&&(re.$message.success("操作成功"),ne("success",ge),ce.value=!1)},ve=()=>{const he=vue.unref(ie).length;ie.value.push({key:"temp"+he,name:"字段"+he,type:"stringSingle",value:""})};return U({visible:ce,dynamicSearchForm:ie}),(he,pe)=>{const ge=vue.resolveComponent("aceDynamicSearchEdit"),me=vue.resolveComponent("AppCodemirror");return vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElPopover),{placement:"bottom",visible:vue.unref(ce),"onUpdate:visible":pe[2]||(pe[2]=_e=>vue.isRef(ce)?ce.value=_e:null),trigger:"click","popper-style":{zIndex:9999999},width:he.menu.length?"1400px":"800px"},{reference:vue.withCtx(()=>[vue.renderSlot(he.$slots,"reference")]),default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_1$k,[he.menu.length?(vue.openBlock(),vue.createElementBlock("div",_hoisted_2$f,[vue.createVNode(vue.unref(elementPlus.ElButtonGroup),null,{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(he.menu,_e=>(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElButton),{type:vue.unref(ue)==_e.value?"primary":"",key:_e.value,onClick:ye=>ue.value=_e.value},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(_e.label),1)]),_:2},1032,["type","onClick"]))),128))]),_:1}),_hoisted_3$e,(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(he.menu,_e=>(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:_e.value},[_e.value==vue.unref(ue)?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[vue.renderSlot(he.$slots,_e.value),_e.value=="tool"?(vue.openBlock(),vue.createElementBlock("div",_hoisted_4$c,[vue.createVNode(ge,{form:vue.unref(ie).filter(ye=>ye.checked||ye.checked==null),isEdit:!1},null,8,["form"])])):vue.createCommentVNode("",!0),_e.value=="json"?(vue.openBlock(),vue.createElementBlock("pre",_hoisted_5$a,vue.toDisplayString(vue.unref(ae)(vue.unref(ie))),1)):vue.createCommentVNode("",!0),_e.value=="sql"?(vue.openBlock(),vue.createBlock(me,{key:2,extensions:"sql",disabled:"",modelValue:vue.unref(se),"onUpdate:modelValue":pe[0]||(pe[0]=ye=>vue.isRef(se)?se.value=ye:null),style:{height:"250px"}},null,8,["modelValue"])):vue.createCommentVNode("",!0)],64)):vue.createCommentVNode("",!0)],64))),128))])):vue.createCommentVNode("",!0),vue.createElementVNode("div",_hoisted_6$8,[vue.createElementVNode("div",_hoisted_7$8,[vue.createElementVNode("div",null,[["model"].includes(ee.businessType)?vue.createCommentVNode("",!0):(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElLink),{key:0,type:"primary",onClick:ve},{default:vue.withCtx(()=>[_hoisted_8$6,vue.createTextVNode(" 新增参数 ")]),_:1}))]),vue.createElementVNode("div",null,[vue.createVNode(vue.unref(elementPlus.ElButton),{type:"primary",size:"small",onClick:fe},{default:vue.withCtx(()=>[vue.createTextVNode("保存")]),_:1}),vue.createVNode(vue.unref(elementPlus.ElButton),{type:"primary",class:"ml-3",size:"small",onClick:pe[1]||(pe[1]=_e=>ce.value=!1)},{default:vue.withCtx(()=>[vue.createTextVNode(" 关闭 ")]),_:1})])]),_hoisted_9$6,vue.createVNode(vue.unref(elementPlus.ElSkeleton),{loading:vue.unref(de),animated:""},{default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_10$5,[vue.createVNode(ge,{form:vue.unref(ie),businessType:ee.businessType},null,8,["form","businessType"])])]),_:1},8,["loading"])])])]),_:3},8,["visible","width"])}}}),_withScopeId$7=te=>(vue.pushScopeId("data-v-13eb82bd"),te=te(),vue.popScopeId(),te),_hoisted_1$j={class:"flex justify-end"},_hoisted_2$e=_withScopeId$7(()=>vue.createElementVNode("div",{class:"h-px mt-2 mb-2 bg-gray-200"},null,-1)),_hoisted_3$d={class:"overflow-y-auto max-h-96"},_hoisted_4$b=_withScopeId$7(()=>vue.createElementVNode("thead",null,[vue.createElementVNode("tr",null,[vue.createElementVNode("td",null,"字段名称"),vue.createElementVNode("td",null,"字段描述"),vue.createElementVNode("td",null,"数据类型"),vue.createElementVNode("td",{style:{width:"150px"}},"标题栏名称"),vue.createElementVNode("td",{style:{width:"150px"}},"列的宽度"),vue.createElementVNode("td",{style:{width:"60px"}},"固定"),vue.createElementVNode("td",{style:{width:"60px"}},"列显示"),vue.createElementVNode("td",{style:{width:"150px"}},"类型"),vue.createElementVNode("td",{style:{width:"150px"}},"额外参数"),vue.createElementVNode("td",{style:{width:"30px"}})])],-1)),_hoisted_5$9={class:"sort-target"},_hoisted_6$7=_withScopeId$7(()=>vue.createElementVNode("td",null,[vue.createElementVNode("i",{class:"text-lg cursor-move ri-mouse-line sortable-handle text-color-warning"})],-1)),_hoisted_7$7=_withScopeId$7(()=>vue.createElementVNode("i",{class:"mr-1 ri-file-cloud-line"},null,-1)),_sfc_main$j=vue.defineComponent({__name:"dynamicTableCol",props:{model:{default:{}},title:{default:"标题栏配置"}},emits:["success"],setup(te,{emit:U}){const{proxy:G}=vue.getCurrentInstance(),{getDetail:ee}=fetch$1(G).model,ne=te,re=vue.ref([]),oe=vue.ref([]),ie=vue.ref(!1),le=vue.ref(!1),ae=[{label:"文本",value:"txt"},{label:"字典",value:"dict"},{label:"地图",value:"map"},{label:"图片",value:"img"}],se=U,ue=async()=>{le.value=!0,re.value=[];const de=await ee(ne.model.id);le.value=!1,G.$baseHttp.get(`/api/ace-data-center/custom-dic/options?projectId=${G.$baseGetCurrentProjectId()}`).then(he=>{oe.value=he.data});const fe=de.data.listModelAttribute,ve=JSON.parse(de.data.columnOption||"[]");fe.forEach(he=>{const pe=ve.find(ge=>ge.prop==he.attributeCode);pe?he.columnOption=pe:he.columnOption={prop:he.attributeCode,label:he.attributeComment,labelWidth:"",fixed:!1,isShow:!["id","project_id","create_time","create_user","create_dept","_project_id","tag","_create_time","_create_user","_create_dept","_tag","_data_from"].includes(he.attributeCode),sort:"",type:"txt",ext:{}}}),fe.sort((he,pe)=>he.columnOption.sort-pe.columnOption.sort),re.value=fe},ce=async()=>{const de=[],fe=[];if(vue.unref(re).forEach((he,pe)=>{const ge=he.columnOption;ge.sort=pe+1,ge.type=="dict"?ge.ext.dictId||fe.push(`${he.attributeComment}字典值为空`):ge.ext={},de.push(ge)}),fe.length>0){G.$message.error(fe[0]);return}await G.$baseHttp.post("/api/ace-data-center/model/saveColumnOption",{id:ne.model.id,columnOption:JSON.stringify(de)})&&(G.$message.success("操作成功"),ie.value=!1,se("success"))};return(de,fe)=>(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElPopover),{placement:"bottom",visible:vue.unref(ie),"onUpdate:visible":fe[3]||(fe[3]=ve=>vue.isRef(ie)?ie.value=ve:null),trigger:"click",width:"1200px"},{reference:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElLink),{type:"warning",class:"ml-3",onClick:fe[2]||(fe[2]=ve=>ue())},{default:vue.withCtx(()=>[_hoisted_7$7,vue.createTextVNode(" "+vue.toDisplayString(de.title),1)]),_:1})]),default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_1$j,[vue.createVNode(vue.unref(elementPlus.ElButton),{type:"primary",size:"small",onClick:ce},{default:vue.withCtx(()=>[vue.createTextVNode("保存")]),_:1}),vue.createVNode(vue.unref(elementPlus.ElButton),{type:"primary",class:"ml-3",size:"small",onClick:fe[0]||(fe[0]=ve=>ie.value=!1)},{default:vue.withCtx(()=>[vue.createTextVNode("关闭")]),_:1})]),_hoisted_2$e,vue.createVNode(vue.unref(elementPlus.ElSkeleton),{loading:vue.unref(le),animated:""},{default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_3$d,[vue.createVNode(vue.unref(vueDraggablePlus.VueDraggable),{modelValue:vue.unref(re),"onUpdate:modelValue":fe[1]||(fe[1]=ve=>vue.isRef(re)?re.value=ve:null),target:".sort-target",animation:150,handle:".sortable-handle"},{default:vue.withCtx(()=>[vue.createElementVNode("table",null,[_hoisted_4$b,vue.createElementVNode("tbody",_hoisted_5$9,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vue.unref(re),ve=>(vue.openBlock(),vue.createElementBlock("tr",{key:ve.id},[vue.createElementVNode("td",null,vue.toDisplayString(ve.attributeCode),1),vue.createElementVNode("td",null,vue.toDisplayString(ve.attributeComment),1),vue.createElementVNode("td",null,vue.toDisplayString(ve.dataType),1),vue.createElementVNode("td",null,[vue.createVNode(vue.unref(elementPlus.ElInput),{size:"small",modelValue:ve.columnOption.label,"onUpdate:modelValue":he=>ve.columnOption.label=he,placeholder:"名称"},null,8,["modelValue","onUpdate:modelValue"])]),vue.createElementVNode("td",null,[vue.createVNode(vue.unref(elementPlus.ElInput),{size:"small",modelValue:ve.columnOption.labelWidth,"onUpdate:modelValue":he=>ve.columnOption.labelWidth=he,placeholder:"列的宽度"},null,8,["modelValue","onUpdate:modelValue"])]),vue.createElementVNode("td",null,[vue.createVNode(vue.unref(elementPlus.ElCheckbox),{modelValue:ve.columnOption.fixed,"onUpdate:modelValue":he=>ve.columnOption.fixed=he},null,8,["modelValue","onUpdate:modelValue"])]),vue.createElementVNode("td",null,[vue.createVNode(vue.unref(elementPlus.ElCheckbox),{modelValue:ve.columnOption.isShow,"onUpdate:modelValue":he=>ve.columnOption.isShow=he},null,8,["modelValue","onUpdate:modelValue"])]),vue.createElementVNode("td",null,[vue.createVNode(vue.unref(elementPlus.ElSelect),{teleported:!1,size:"small",class:"w-full",modelValue:ve.columnOption.type,"onUpdate:modelValue":he=>ve.columnOption.type=he,placeholder:"请选择"},{default:vue.withCtx(()=>[(vue.openBlock(),vue.createElementBlock(vue.Fragment,null,vue.renderList(ae,he=>vue.createVNode(vue.unref(elementPlus.ElOption),{key:he.value,label:he.label,value:he.value},null,8,["label","value"])),64))]),_:2},1032,["modelValue","onUpdate:modelValue"])]),vue.createElementVNode("td",null,[["dict"].includes(ve.columnOption.type)?(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElSelect),{key:0,teleported:!1,size:"small",modelValue:ve.columnOption.ext.dictId,"onUpdate:modelValue":he=>ve.columnOption.ext.dictId=he,placeholder:"字典值"},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vue.unref(oe),he=>(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElOption),{label:he.label,value:he.code,key:he.code},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue"])):vue.createCommentVNode("",!0)]),_hoisted_6$7]))),128))])])]),_:1},8,["modelValue"])])]),_:1},8,["loading"])]),_:1},8,["visible"]))}}),dynamicTableCol_vue_vue_type_style_index_0_scoped_13eb82bd_lang="",dynamicTableCol=_export_sfc$2(_sfc_main$j,[["__scopeId","data-v-13eb82bd"]]),_hoisted_1$i={class:"relative pt-2.5"},_sfc_main$i=vue.defineComponent({__name:"insert",props:{model:{default:{}},permission:{default:()=>[]}},emits:["success"],setup(te,{expose:U,emit:G}){const ee=G,ne=vue.ref(!1),re=vue.ref(null),oe=se=>{re.value=se,ne.value=!0},ie=()=>ee("success"),le=vue.inject("masterData"),ae=se=>{const ue=vue.unref(re).joinFieldMapping.split(":")[0],ce=vue.unref(re).joinFieldMapping.split(":")[1];se.dataMap[ce]=vue.unref(le)[ue]};return U({init:oe}),(se,ue)=>{const ce=vue.resolveComponent("AppDrawer");return vue.openBlock(),vue.createBlock(ce,{modelValue:vue.unref(ne),"onUpdate:modelValue":ue[0]||(ue[0]=de=>vue.isRef(ne)?ne.value=de:null),title:"从表数据编辑",size:"1200px"},{default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_1$i,[vue.createVNode(_sfc_main$G,{model:vue.unref(re),permission:se.permission,onSuccess:ie,paramsCallback:ae},null,8,["model","permission"])])]),_:1},8,["modelValue"])}}}),insert_vue_vue_type_style_index_0_scoped_9480ca97_lang="",Insert=_export_sfc$2(_sfc_main$i,[["__scopeId","data-v-9480ca97"]]),_withScopeId$6=te=>(vue.pushScopeId("data-v-0f244db2"),te=te(),vue.popScopeId(),te),_hoisted_1$h={class:"mt-2.5 mb-2.5"},_hoisted_2$d={class:"flex items-center justify-between"},_hoisted_3$c={key:0,class:"relative"},_hoisted_4$a={key:0},_hoisted_5$8=_withScopeId$6(()=>vue.createElementVNode("i",{class:"ri-add-line"},null,-1)),_sfc_main$h=vue.defineComponent({__name:"slave",props:{model:{default:{}},permission:{default:()=>[]}},setup(te){const U=te,G=vue.inject("masterData"),ee=()=>{oe.value=!1,setTimeout(()=>oe.value=!0,10)},ne=vue.ref(null),re=vue.ref(""),oe=vue.ref(!0);vue.nextTick(()=>{re.value=U.model.slaveModels[0].id});const ie=vue.computed(()=>U.model.slaveModels.find(le=>le.id==vue.unref(re)));return vue.watch(re,le=>{}),(le,ae)=>(vue.openBlock(),vue.createElementBlock(vue.Fragment,null,[vue.createElementVNode("div",_hoisted_1$h,[vue.createElementVNode("div",_hoisted_2$d,[vue.createVNode(vue.unref(elementPlus.ElButtonGroup),null,{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(le.model.slaveModels,(se,ue)=>(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElButton),{type:se.id==vue.unref(re)?"primary":"",onClick:ce=>re.value=se.id},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(se.modelName),1)]),_:2},1032,["type","onClick"]))),256))]),_:1})]),vue.unref(ie)?(vue.openBlock(),vue.createElementBlock("div",_hoisted_3$c,[vue.unref(oe)?(vue.openBlock(),vue.createElementBlock("div",_hoisted_4$a,[vue.createVNode(_sfc_main$f,{model:vue.unref(ie),permission:le.permission,masterData:vue.unref(G)},{btns:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElLink),{disabled:vue.unref(ie).publishStatus=="1",type:"primary",class:"flex items-center mr-2",onClick:ae[0]||(ae[0]=se=>vue.unref(ne).init(vue.unref(ie)))},{default:vue.withCtx(()=>[_hoisted_5$8,vue.createTextVNode(" 新增数据 ")]),_:1},8,["disabled"])]),_:1},8,["model","permission","masterData"])])):vue.createCommentVNode("",!0)])):vue.createCommentVNode("",!0)]),vue.createVNode(Insert,{ref_key:"insertRef",ref:ne,masterId:"",model:le.model,permission:le.permission,onSuccess:ee},null,8,["model","permission"])],64))}}),slave_vue_vue_type_style_index_0_scoped_0f244db2_lang="",ModelSlave=_export_sfc$2(_sfc_main$h,[["__scopeId","data-v-0f244db2"]]),_hoisted_1$g={class:"p-4"},_sfc_main$g=vue.defineComponent({__name:"view",props:{model:{default:{}},permission:{default:()=>[]}},setup(te,{expose:U}){const G=te,{loading:ee,colValue:ne,formData:re,init:oe}=useInsertForm(G.model.id),ie=vue.ref(!1),le=vue.ref({});return vue.provide("masterData",le),U({init:se=>{ie.value=!0,le.value=se,oe(se,"update")}}),(se,ue)=>{const ce=vue.resolveComponent("aceHeader"),de=vue.resolveComponent("AppForm"),fe=vue.resolveComponent("AppDrawer");return vue.openBlock(),vue.createBlock(fe,{modelValue:vue.unref(ie),"onUpdate:modelValue":ue[0]||(ue[0]=ve=>vue.isRef(ie)?ie.value=ve:null),title:"主从详情数据",size:"90%"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSkeleton),{animated:"",loading:vue.unref(ee)},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vue.unref(re),ve=>(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:ve.key},[ve.key?(vue.openBlock(),vue.createBlock(ce,{key:0,title:ve.key},null,8,["title"])):vue.createCommentVNode("",!0),vue.createElementVNode("div",_hoisted_1$g,[vue.createVNode(de,{form:ve.list,col:vue.unref(ne),disabled:""},null,8,["form","col"])])],64))),128)),vue.createVNode(ModelSlave,{model:se.model,permission:se.permission},null,8,["model","permission"])]),_:1},8,["loading"])]),_:1},8,["modelValue"])}}}),_hoisted_1$f={class:"absolute right-0 flex items-center -top-10"},_hoisted_2$c=vue.createElementVNode("i",{class:"mr-1 ri-file-upload-line"},null,-1),_hoisted_3$b=vue.createElementVNode("i",{class:"mr-1 ri-file-history-line"},null,-1),_sfc_main$f=vue.defineComponent({__name:"model-data",props:{model:{default:{}},masterData:{default:null},permission:{default:()=>[]}},setup(te){const U=te,{proxy:G}=vue.getCurrentInstance(),ee=vue.ref(null),ne=vue.ref([]),re=ae=>{ne.value=ae},oe=ae=>{const{data:se}=ae;se.forEach(ue=>{var de;(((de=U.model)==null?void 0:de.slaveModels)??[]).some(fe=>fe.parentModelId)&&ue.htmlButton.unshift({name:"详情",key:"viewBTN",type:"primary",icon:"ri-file-2-line"})})},ie=ae=>{const{type:se,row:ue}=ae;if(se=="viewBTN"){const ce={};U.model.listModelAttribute.forEach(de=>{ce[de.mapCode]=ue[de.attributeCode]}),vue.unref(ee).init(ce,"update")}},le=ae=>{const{joinFieldMapping:se}=U.model;if(U.model.joinFieldMapping&&U.masterData){const ue=se.split(":")[0],ce=se.split(":")[1];ae.params[ce]=U.masterData[ue]}return ae};return(ae,se)=>{var de,fe,ve;const ue=vue.resolveComponent("AppTable"),ce=vue.resolveComponent("aceDynamicList");return vue.openBlock(),vue.createElementBlock(vue.Fragment,null,[vue.createElementVNode("div",_hoisted_1$f,[vue.renderSlot(ae.$slots,"btns"),vue.createVNode(_sfc_main$k,{ref:"modelSearchSettingRef",menu:[],businessType:"model",businessId:(de=ae.model)==null?void 0:de.id,onSuccess:se[0]||(se[0]=he=>vue.unref(G).$refs.aceDynamicListRef.init())},{reference:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElLink),{type:"success"},{default:vue.withCtx(()=>[_hoisted_2$c,vue.createTextVNode(" 查询配置 ")]),_:1})]),attr:vue.withCtx(()=>[vue.createVNode(ue,{maxHeight:"250px",tableData:[{label:"标识符",prop:"prop"},{label:"字段名",prop:"label"}],list:vue.unref(ne)},null,8,["list"])]),_:1},8,["businessId"]),vue.createVNode(dynamicTableCol,{model:ae.model,onSuccess:se[1]||(se[1]=he=>vue.unref(G).$refs.aceDynamicListRef.init())},null,8,["model"]),vue.createVNode(vue.unref(elementPlus.ElLink),{type:"primary",class:"ml-3",onClick:se[2]||(se[2]=he=>vue.unref(G).$refs.aceDynamicListRef.handleExport())},{default:vue.withCtx(()=>[_hoisted_3$b,vue.createTextVNode(" 导出EXCEL ")]),_:1}),vue.createVNode(_sfc_main$g,{ref_key:"modelSlaveViewRef",ref:ee,model:ae.model,permission:ae.permission},null,8,["model","permission"])]),vue.createVNode(ce,{id:(fe=ae.model)==null?void 0:fe.id,title:(ve=ae.model)==null?void 0:ve.modelName,showPageIndex:!0,isDownLoad:!1,onTableHeader:re,formatParamsFunc:le,isDelete:ae.permission.includes("DATA_DEL")&&ae.model.modelLayer!="ODSVIEW"&&!ae.model.shadowModelId,isEdit:ae.model.openForm==2&&ae.permission.includes("DATA_EDIT"),ref:"aceDynamicListRef",onBtnClick:ie,onSuccessList:oe},null,8,["id","title","isDelete","isEdit"])],64)}}}),_hoisted_1$e={class:"flex flex-col h-full"},_hoisted_2$b={class:"flex flex-col w-full tab-container"},_hoisted_3$a={key:0},_hoisted_4$9={key:1},_hoisted_5$7={key:2},_sfc_main$e=vue.defineComponent({__name:"model-view",props:{type:{default:"ODS"},permission:{default:()=>[]}},setup(te,{expose:U}){const G=te,{proxy:ee}=vue.getCurrentInstance(),{getDetail:ne}=fetch$1(ee).model,re=vue.ref({}),oe=vue.ref(!1),ie=vue.ref(""),le=vue.ref([]),ae=vue.ref([{label:"字段名称",prop:"attributeCode",fixed:!0},{label:"字段描述",prop:"attributeComment"},{label:"映射字段",prop:"mapCode"},{label:"数据类型",prop:"dataType"},{label:"数据长度",prop:"dataLength"},{label:"数据标度",prop:"dataScale"},{label:"选择主键",prop:"primaryKey",props:{url:"/api/ace-api/blade-system/dict/dictionary?code=yes_no",label:"dictValue",value:"dictKey"}},{label:"唯一键",prop:"uniqueKey",slot:!0},{label:"查询字段",prop:"searchKey",slot:!0},{label:"协同字段",prop:"teamworkKey",slot:!0},{label:"字段来源",prop:"sourceModelName"},{label:"数据来源",prop:"sourceColumnName"}]),se=async he=>{oe.value=!0,ie.value="",le.value=[];const pe=await ne(he==null?void 0:he.id,!1);pe&&(re.value=pe.data,oe.value=!1,le.value.push({label:"模型数据",value:"data"}),G.type=="ODS"&&G.permission.includes("EXCEL_EXTRACT")&&!pe.data.parentModelId&&le.value.push({label:"Excel抽取",value:"fileExtract"}),G.type=="DWD"&&le.value.push({label:"抽取数据",value:"dbExtract"}),le.value.push({label:"模型信息",value:"info"}),vue.unref(re).openForm==2&&vue.unref(re).publishStatus==2&&!pe.data.parentModelId&&le.value.push({label:"录入数据",value:"insertForm"}),ie.value=vue.unref(le)[0].value)},ue=async he=>{await ee.$baseHttp.post("/api/ace-data-center/model-attribute/submit",{...he,projectId:ee.$baseGetCurrentProjectId()})&&ee.$message.success("操作成功")},ce=async he=>{await ee.$baseHttp.post("/api/ace-data-center/model-attribute/submit",{id:he.id,searchKey:he.searchKey,projectId:ee.$baseGetCurrentProjectId()})&&(ee.$message.success("操作成功"),he.searchKey=="1"&&he.indexKey=="2"&&(he.indexKey=1,de(he)))},de=async he=>{await ee.$baseHttp.post("/api/ace-data-center/model-attribute/changeIndexKey",he)&&ee.$message.success("操作成功")},fe=async he=>{he.teamworkKey=="2"&&vue.unref(re).listModelAttribute.filter(ge=>ge.id!=he.id).forEach(ge=>{ge.teamworkKey=1}),await ee.$baseHttp.post("/api/ace-data-center/model-attribute/changeTeamworkKey",he)&&ee.$message.success("操作成功")},ve=async he=>(he.loading=!0,new Promise(async pe=>{const ge=await ee.$baseHttp.post("/api/ace-data-center/model-attribute/changeRequiredStatus",{modelAttributeId:he.id,status:he.required==2?1:2});return he.loading=!1,pe(!!ge)}));return U({init:se}),(he,pe)=>{const ge=vue.resolveComponent("AppTable");return vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElSkeleton),{loading:vue.unref(oe),animated:""},{default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_1$e,[vue.createVNode(vue.unref(elementPlus.ElTabs),{modelValue:vue.unref(ie),"onUpdate:modelValue":pe[0]||(pe[0]=me=>vue.isRef(ie)?ie.value=me:null),type:"card"},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vue.unref(le),me=>(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElTabPane),{label:me.label,name:me.value,key:me.value},null,8,["label","name"]))),128))]),_:1},8,["modelValue"]),vue.createElementVNode("div",_hoisted_2$b,[vue.unref(ie)=="dbExtract"?(vue.openBlock(),vue.createBlock(_sfc_main$l,{key:0,model:vue.unref(re)},null,8,["model"])):vue.createCommentVNode("",!0),vue.unref(ie)=="fileExtract"?(vue.openBlock(),vue.createBlock(_sfc_main$q,{key:1,model:vue.unref(re)},null,8,["model"])):vue.createCommentVNode("",!0),vue.unref(ie)=="info"?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:2},[vue.createVNode(vue.unref(elementPlus.ElDescriptions),{column:2,border:!0,style:{width:"100%"}},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElDescriptionsItem),{label:"模型名称"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(vue.unref(re).modelName),1)]),_:1}),vue.createVNode(vue.unref(elementPlus.ElDescriptionsItem),{label:"模型代码"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(vue.unref(re).modelCode),1)]),_:1}),vue.createVNode(vue.unref(elementPlus.ElDescriptionsItem),{label:"模型层级"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElTag),{type:"danger"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(vue.unref(re).modelLayer),1)]),_:1})]),_:1}),vue.createVNode(vue.unref(elementPlus.ElDescriptionsItem),{label:"模型类型"},{default:vue.withCtx(()=>[vue.unref(re).modelType==1?(vue.openBlock(),vue.createElementBlock("span",_hoisted_3$a,"维度模型")):vue.createCommentVNode("",!0),vue.unref(re).modelType==2?(vue.openBlock(),vue.createElementBlock("span",_hoisted_4$9,"事实模型")):vue.createCommentVNode("",!0),vue.unref(re).modelType==3?(vue.openBlock(),vue.createElementBlock("span",_hoisted_5$7,"其他模型")):vue.createCommentVNode("",!0)]),_:1}),vue.createVNode(vue.unref(elementPlus.ElDescriptionsItem),{label:"模型描述"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(vue.unref(re).modelDesc),1)]),_:1}),vue.createVNode(vue.unref(elementPlus.ElDescriptionsItem),{label:"数据仓库"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(vue.unref(re).modelStore),1)]),_:1}),vue.createVNode(vue.unref(elementPlus.ElDescriptionsItem),{label:"发布状态"},{default:vue.withCtx(()=>[vue.unref(re).publishStatus==1?(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElTag),{key:0,type:"warning"},{default:vue.withCtx(()=>[vue.createTextVNode("未发布")]),_:1})):vue.createCommentVNode("",!0),vue.unref(re).publishStatus==2?(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElTag),{key:1,type:"success"},{default:vue.withCtx(()=>[vue.createTextVNode("已发布")]),_:1})):vue.createCommentVNode("",!0)]),_:1}),vue.createVNode(vue.unref(elementPlus.ElDescriptionsItem),{label:"表单录入数据"},{default:vue.withCtx(()=>[vue.unref(re).openForm==1?(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElTag),{key:0,type:"warning"},{default:vue.withCtx(()=>[vue.createTextVNode("未开启")]),_:1})):vue.createCommentVNode("",!0),vue.unref(re).openForm==2?(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElTag),{key:1,type:"success"},{default:vue.withCtx(()=>[vue.createTextVNode("已开启")]),_:1})):vue.createCommentVNode("",!0)]),_:1})]),_:1}),vue.createVNode(ge,{class:"mt-2.5",tableData:vue.unref(ae),list:vue.unref(re).listModelAttribute,ref:"appTable"},{uniqueKey:vue.withCtx(({row:me})=>[vue.createVNode(vue.unref(elementPlus.ElCheckbox),{"true-value":"2","false-value":"1",modelValue:me.uniqueKey,"onUpdate:modelValue":_e=>me.uniqueKey=_e,onChange:_e=>ue(me)},null,8,["modelValue","onUpdate:modelValue","onChange"])]),required:vue.withCtx(({row:me})=>[vue.createVNode(vue.unref(elementPlus.ElSwitch),{modelValue:me.required,"onUpdate:modelValue":_e=>me.required=_e,"inline-prompt":"","active-text":"是","inactive-text":"否","active-value":2,"inactive-value":1,loading:me.loading,"before-change":()=>ve(me)},null,8,["modelValue","onUpdate:modelValue","loading","before-change"])]),searchKey:vue.withCtx(({row:me})=>[vue.createVNode(vue.unref(elementPlus.ElCheckbox),{modelValue:me.searchKey,"onUpdate:modelValue":_e=>me.searchKey=_e,"true-value":"2","false-value":"1",onChange:_e=>ce(me)},null,8,["modelValue","onUpdate:modelValue","onChange"]),me.searchKey==="2"?(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElCheckbox),{key:0,modelValue:me.indexKey,"onUpdate:modelValue":_e=>me.indexKey=_e,"true-value":"2","false-value":"1",onChange:_e=>de(me)},{default:vue.withCtx(()=>[vue.createTextVNode(" 创建索引 ")]),_:2},1032,["modelValue","onUpdate:modelValue","onChange"])):vue.createCommentVNode("",!0)]),teamworkKey:vue.withCtx(({row:me})=>[vue.createVNode(vue.unref(elementPlus.ElCheckbox),{disabled:!["date","time","datetime"].includes(me.dataType),modelValue:me.teamworkKey,"onUpdate:modelValue":_e=>me.teamworkKey=_e,"true-value":"2","false-value":"1",onChange:_e=>fe(me)},null,8,["disabled","modelValue","onUpdate:modelValue","onChange"])]),_:1},8,["tableData","list"])],64)):vue.createCommentVNode("",!0),vue.unref(ie)=="data"?(vue.openBlock(),vue.createBlock(_sfc_main$f,{key:3,model:vue.unref(re),permission:he.permission},null,8,["model","permission"])):vue.createCommentVNode("",!0),vue.unref(ie)=="insertForm"?(vue.openBlock(),vue.createBlock(_sfc_main$G,{key:4,model:vue.unref(re),permission:he.permission},null,8,["model","permission"])):vue.createCommentVNode("",!0)])])]),_:1},8,["loading"])}}}),modelView_vue_vue_type_style_index_0_scoped_d55b8fbb_lang="",aceModelView=_export_sfc$2(_sfc_main$e,[["__scopeId","data-v-d55b8fbb"]]),_withScopeId$5=te=>(vue.pushScopeId("data-v-9af70b95"),te=te(),vue.popScopeId(),te),_hoisted_1$d={class:"overflow-y-auto"},_hoisted_2$a={class:"fadeIn animated"},_hoisted_3$9=_withScopeId$5(()=>vue.createElementVNode("th",null,null,-1)),_hoisted_4$8={class:"h-80"},_hoisted_5$6=["title"],_hoisted_6$6={class:"name"},_hoisted_7$6={class:"total"},_hoisted_8$5={class:"h-80"},_hoisted_9$5=["title"],_hoisted_10$4={class:"name"},_hoisted_11$3={class:"total"},_hoisted_12$2=_withScopeId$5(()=>vue.createElementVNode("br",null,null,-1)),_sfc_main$d=vue.defineComponent({__name:"matrix",setup(te,{expose:U}){const{proxy:G}=vue.getCurrentInstance(),{allModel:ee,allModelAttribute:ne,allModelMatrix:re,queryRows:oe}=fetch$1(G).model,ie=vue.ref([]),le=vue.ref([]),ae=vue.ref({}),se=vue.ref([]),ue=vue.ref([]),ce=vue.ref(!0),de=vue.reactive([{label:"字段",prop:"attributeCode"},{label:"名称",prop:"attributeComment"},{label:"类型",prop:"dataType",func:ve=>commonDataType[ve.dataType]}]);Promise.all([ee({modelLayer:"DWD",publishStatus:2}),re({modelLayer:"DWD"}),oe({modelLayer:"DWD"})]).then(ve=>{ce.value=!1,ie.value=ve[0].data,le.value=ve[1].data,ae.value=ve[2].data;const he=[];vue.unref(ie).forEach(pe=>{(pe==null?void 0:pe.modelType)==="1"?(pe.rows=vue.unref(ae)[pe.modelCode],se.value.push(pe)):(pe==null?void 0:pe.modelType)==="2"&&he.push(pe)}),he.forEach(pe=>{pe.checked=[],vue.unref(se).forEach(ge=>{pe[ge.modelCode]=vue.unref(le).some(me=>me.targetModelId===ge.id&&me.modelId===pe.id)}),pe.rows=vue.unref(ae)[pe.modelCode],ue.value.push(pe)})});const fe=ve=>{ve.attr||(ve.loading=!0,ne({modelId:ve.id}).then(he=>{ve.loading=!1,ve.attr=he.data.filter(pe=>!["project_id","create_time","create_user","create_dept","tag"].includes(pe.attributeCode))}))};return U({wdModel:ue}),(ve,he)=>{const pe=vue.resolveComponent("AppTable");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$d,[vue.createVNode(vue.unref(elementPlus.ElSkeleton),{loading:vue.unref(ce),animated:""},{default:vue.withCtx(()=>[vue.createElementVNode("table",_hoisted_2$a,[vue.createElementVNode("thead",null,[vue.createElementVNode("tr",null,[_hoisted_3$9,(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vue.unref(se),(ge,me)=>(vue.openBlock(),vue.createElementBlock("th",{key:me},[vue.createVNode(vue.unref(elementPlus.ElPopover),{trigger:"hover",onShow:_e=>fe(ge),width:500},{reference:vue.withCtx(()=>[vue.createElementVNode("div",{title:ge.modelName,class:"flex items-center justify-center"},[vue.createElementVNode("span",_hoisted_6$6,[vue.createElementVNode("label",null,vue.toDisplayString(ge.modelName),1)]),vue.createElementVNode("span",_hoisted_7$6,vue.toDisplayString(ge.rows),1)],8,_hoisted_5$6)]),default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_4$8,[vue.createVNode(pe,{tableData:vue.unref(de),list:ge.attr,loading:ge.loading},null,8,["tableData","list","loading"])])]),_:2},1032,["onShow"])]))),128))])]),vue.createElementVNode("tbody",null,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vue.unref(ue),(ge,me)=>(vue.openBlock(),vue.createElementBlock("tr",{key:me},[vue.createElementVNode("td",null,[vue.createVNode(vue.unref(elementPlus.ElPopover),{trigger:"hover",onShow:_e=>fe(ge),placement:"right",width:500},{reference:vue.withCtx(()=>[vue.createElementVNode("div",{title:ge.modelName,class:"flex items-center justify-start"},[vue.createElementVNode("span",_hoisted_10$4,[vue.createElementVNode("label",null,vue.toDisplayString(ge.modelName),1)]),vue.createElementVNode("span",_hoisted_11$3,vue.toDisplayString(ge.rows),1)],8,_hoisted_9$5)]),default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_8$5,[vue.createVNode(pe,{tableData:vue.unref(de),list:ge.attr,loading:ge.loading},null,8,["tableData","list","loading"])])]),_:2},1032,["onShow"])]),(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vue.unref(se),_e=>(vue.openBlock(),vue.createElementBlock("td",{key:_e.id},[vue.createVNode(vue.unref(elementPlus.ElCheckboxGroup),{modelValue:ge.checked,"onUpdate:modelValue":ye=>ge.checked=ye},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElCheckbox),{value:_e.id,checked:ge[_e.modelCode]},{default:vue.withCtx(()=>[_hoisted_12$2]),_:2},1032,["value","checked"])]),_:2},1032,["modelValue","onUpdate:modelValue"])]))),128))]))),128))])])]),_:1},8,["loading"])])}}}),matrix_vue_vue_type_style_index_0_scoped_9af70b95_lang="",Matrix=_export_sfc$2(_sfc_main$d,[["__scopeId","data-v-9af70b95"]]),_hoisted_1$c={class:"flex justify-end flex-1"},_hoisted_2$9=vue.createElementVNode("div",{class:"text-color-primary mr-2.5 flex items-center"},[vue.createElementVNode("i",{class:"mr-1 ri-add-circle-line"}),vue.createTextVNode(" 新建模型 ")],-1),_hoisted_3$8=vue.createElementVNode("i",{class:"mr-1 ri-add-circle-line"},null,-1),_hoisted_4$7={key:0},_hoisted_5$5=vue.createElementVNode("span",{class:"ml-2 mr-2 text-gray-300"},"|",-1),_hoisted_6$5=["onClick"],_hoisted_7$5={key:0,class:"flex items-center justify-center h-full"},_sfc_main$c=vue.defineComponent({__name:"index",props:{isCustom:{type:Boolean,default:!1},element:{default:null}},setup(te){const U=te,G=vue.inject("local"),{proxy:ee}=vue.getCurrentInstance(),{getDetail:ne,settingPublishStatus:re}=fetch$1(ee).model,oe=vue.ref([{label:"源数据",value:"ODS",rule:"VIEW_ODS",disabled:!0},{label:"源视图",value:"ODSVIEW",rule:"VIEW_ODSVIEW",disabled:!0},{label:"重构数据",value:"DWD",rule:"VIEW_DWD",disabled:!0},{label:"总线矩阵",value:"MATRIX",rule:"SAVE_MODEL_MATRIX",disabled:!0}]),ie=vue.ref([]),le=vue.ref([]),ae=vue.ref(""),se=vue.ref(U.element??{}),ue=vue.ref([]);U.isCustom&&vue.nextTick(()=>{ee.$refs.modelViewRef.init(vue.unref(se))}),fetch$1(ee).getCurrFunc("MODEL").then(he=>{vue.unref(oe).forEach(pe=>{pe.disabled=!he.data.includes(pe.rule),!vue.unref(ae)&&!pe.disabled&&(ae.value=pe.value)}),ue.value=he.data,U.isCustom||(le.value=[{label:"数据源导入模型",value:"conn",icon:"ri-add-circle-line",show:()=>he.data.includes("DB_IMPORT_MODEL")&&vue.unref(ae)!="ODSVIEW"},{label:"SQL新建模型",value:"sql",icon:"ri-add-circle-line",show:()=>["ODS","DWD"].includes(vue.unref(ae))&&he.data.includes("SQL_CREATE")},{label:"手动新建模型",value:"normal",icon:"ri-add-circle-line",show:()=>["ODS","DWD"].includes(vue.unref(ae))&&he.data.includes("DO_CREATE")},{label:"Excel生成模型",value:"excel",icon:"ri-add-circle-line",show:()=>["ODS"].includes(vue.unref(ae))&&he.data.includes("EXCEL_CREATE")},{label:"ODS抽取模型",value:"extract",icon:"ri-add-circle-line",show:()=>["DWD"].includes(vue.unref(ae))&&he.data.includes("ODS_CREATE")}],ie.value=[{label:"保存",type:"warning",value:"SAVE_MODEL_MATRIX",icon:"ri-save-line",show:()=>["MATRIX"].includes(vue.unref(ae))&&he.data.includes("SAVE_MODEL_MATRIX")},{label:"复制",value:"COPY",icon:"ri-file-copy-line",show:()=>{var pe,ge;return["ODS","DWD"].includes(vue.unref(ae))&&((pe=vue.unref(se))==null?void 0:pe.id)&&((ge=vue.unref(se))==null?void 0:ge.shadowFlag)!=2&&he.data.includes("PUBLISH")}},{label:"发布",value:"PUBLISH",icon:"ri-book-open-line",show:()=>{var pe,ge;return["ODS","DWD"].includes(vue.unref(ae))&&((pe=vue.unref(se))==null?void 0:pe.shadowFlag)!=2&&((ge=vue.unref(se))==null?void 0:ge.publishStatus)==1&&he.data.includes("PUBLISH")}},{label:"删除数据仓",value:"REMOVE_PUBLISH",type:"danger",icon:"ri-delete-bin-2-line",show:()=>{var pe,ge;return["ODS","DWD"].includes(vue.unref(ae))&&((pe=vue.unref(se))==null?void 0:pe.shadowFlag)!=2&&((ge=vue.unref(se))==null?void 0:ge.publishStatus)==2&&he.data.includes("REMOVE_PUBLISH")}},{label:"编辑",value:"EDIT",icon:"ri-file-line",show:()=>{var pe,ge;return["ODS","DWD"].includes(vue.unref(ae))&&((pe=vue.unref(se))==null?void 0:pe.shadowFlag)!=2&&((ge=vue.unref(se))==null?void 0:ge.id)&&he.data.includes("EDIT")}},{label:"删除",value:"DEL",type:"danger",icon:"ri-delete-bin-2-line",show:()=>{var pe,ge;return["ODS","DWD","ODSVIEW"].includes(vue.unref(ae))&&((pe=vue.unref(se))==null?void 0:pe.shadowFlag)!=2&&((ge=vue.unref(se))==null?void 0:ge.id)&&he.data.includes("DEL")}}])});const ce=he=>{ae.value=he,vue.nextTick(()=>{var pe;ee.$refs.menuRef.$refs.treeRef.setCurrentKey((pe=vue.unref(se))==null?void 0:pe.id)})},de=he=>{se.value=he,vue.nextTick(()=>{ee.$refs.modelViewRef.init(vue.unref(se))})},fe=async(he,pe)=>{var ge,me;switch(he){case"conn":case"sql":case"normal":case"excel":case"extract":ee.$refs[`${he}Ref`].init();break;case"DEL":ee.$baseConfirm({content:"是否确认删除?",callConfirm:async()=>{var ye;await ee.$baseHttp.post(`/ace-data-center/model/remove?ids=${(ye=vue.unref(se))==null?void 0:ye.id}`,{},{headers:{loading:!0}})&&(ee.$message.success("操作成功"),se.value={},ve())}});break;case"EDIT":{const _e=await ne((ge=vue.unref(se))==null?void 0:ge.id,!0);if(!_e)return;if(_e.data.publishStatus==1){ee.$refs.normalRef.init(_e.data);return}ee.$message.warning("模型已发布,无法编辑")}break;case"COPY":{const _e=await ne((me=vue.unref(se))==null?void 0:me.id,!0);if(!_e)return;delete _e.data.id,_e.data.listModelAttribute.forEach(ye=>{ye.id=null,ye.createUser=null,ye.createDept=null,ye.createTime=null,ye.updateUser=null,ye.updateTime=null,ye.modelId=null,ye.nanoid=nanoid()}),_e.data.slaveModels&&_e.data.slaveModels.forEach(ye=>{delete ye.id,ye.listModelAttribute.forEach(be=>{delete be.id,be.createUser=null,be.createDept=null,be.createTime=null,be.updateUser=null,be.updateTime=null,be.modelId=null,be.nanoid=nanoid()})}),ee.$refs.normalRef.init(_e.data)}break;case"PUBLISH":case"REMOVE_PUBLISH":{const _e=he==="PUBLISH"?"模型发布后,模型信息无法再进行变更操作,是否立即执行?":"确定删除数仓表,删除后模型数据将清空,是否执行?",ye=he==="PUBLISH"?"2":"1";ee.$baseConfirm({content:_e,callConfirm:async()=>{var xe;await re((xe=vue.unref(se))==null?void 0:xe.id,ye)&&(vue.unref(se).publishStatus=ye,ee.$message.success("操作成功"),ve())}})}break;case"editTag":ee.$refs.tagEditRef.init(pe);break;case"SAVE_MODEL_MATRIX":{if(!await ee.$baseHttp.post("/api/ace-data-center/model-matrix/save",{modelLayer:"DWD",projectId:ee.$baseGetCurrentProjectId(),list:ee.$refs.MatrixRef.wdModel.map(ye=>({modelId:ye.id,listTargetModelId:ye.checked}))},{headers:{loading:!0}}))return;ee.$message.success("操作成功")}break}},ve=()=>{var he;ee.$refs.menuRef.init(),(he=vue.unref(se))!=null&&he.id&&ee.$refs.modelViewRef.init(vue.unref(se))};return(he,pe)=>(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElContainer),{class:"overflow-hidden app-basic-container"},{default:vue.withCtx(()=>[he.isCustom?vue.createCommentVNode("",!0):(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElHeader),{key:0,style:{height:"auto",padding:"0"},class:"flex items-center mb-3 fadeIn animated"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElButtonGroup),null,{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vue.unref(oe),ge=>(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElButton),{type:vue.unref(ae)==ge.value?"primary":"",key:ge.value,disabled:ge.disabled,onClick:me=>ce(ge.value)},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(ge.label),1)]),_:2},1032,["type","disabled","onClick"]))),128))]),_:1}),vue.createElementVNode("div",_hoisted_1$c,[vue.unref(le).length?(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElDropdown),{key:0,onCommand:fe},{dropdown:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElDropdownMenu),null,{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vue.unref(le),ge=>(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElDropdownItem),{disabled:!ge.show(),command:ge.value},{default:vue.withCtx(()=>[_hoisted_3$8,vue.createTextVNode(" "+vue.toDisplayString(ge.label),1)]),_:2},1032,["disabled","command"]))),256))]),_:1})]),default:vue.withCtx(()=>[_hoisted_2$9]),_:1})):vue.createCommentVNode("",!0),(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vue.unref(ie),ge=>(vue.openBlock(),vue.createElementBlock(vue.Fragment,null,[ge.show()?(vue.openBlock(),vue.createElementBlock("span",_hoisted_4$7,[vue.createVNode(vue.unref(elementPlus.ElLink),{type:ge.type||"primary",onClick:me=>fe(ge.value)},{default:vue.withCtx(()=>[vue.createElementVNode("i",{class:vue.normalizeClass([ge.icon,"mr-1"])},null,2),vue.createTextVNode(" "+vue.toDisplayString(ge.label),1)]),_:2},1032,["type","onClick"]),_hoisted_5$5])):vue.createCommentVNode("",!0)],64))),256))])]),_:1})),vue.withDirectives(vue.createVNode(vue.unref(elementPlus.ElContainer),{class:"overflow-hidden"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElConfigProvider),{locale:vue.unref(G)},{default:vue.withCtx(()=>[he.isCustom?vue.createCommentVNode("",!0):(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElAside),{key:0,class:"pr-5 mr-5"},{default:vue.withCtx(()=>{var ge;return[vue.createVNode(_sfc_main$C,{ref:"menuRef",type:vue.unref(ae),onNodeClick:de,id:(ge=vue.unref(se))==null?void 0:ge.id},{default:vue.withCtx(({element:me})=>[me.modelCode&&vue.unref(ue).includes("EDIT")?(vue.openBlock(),vue.createElementBlock("i",{key:0,class:"ml-2 ri-edit-box-line",onClick:vue.withModifiers(_e=>fe("editTag",me),["stop"])},null,8,_hoisted_6$5)):vue.createCommentVNode("",!0)]),_:1},8,["type","id"])]}),_:1})),vue.createVNode(vue.unref(elementPlus.ElMain),null,{default:vue.withCtx(()=>{var ge;return[(ge=vue.unref(se))!=null&&ge.id?(vue.openBlock(),vue.createBlock(aceModelView,{key:1,ref:"modelViewRef",type:vue.unref(ae),permission:vue.unref(ue)},null,8,["type","permission"])):(vue.openBlock(),vue.createElementBlock("div",_hoisted_7$5,[vue.createVNode(vue.unref(elementPlus.ElEmpty),{description:"请在左侧选择模型"})]))]}),_:1})]),_:1},8,["locale"])]),_:1},512),[[vue.vShow,["ODS","DWD","ODSVIEW"].includes(vue.unref(ae))]]),["MATRIX"].includes(vue.unref(ae))?(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElContainer),{key:1,class:"overflow-hidden"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElMain),null,{default:vue.withCtx(()=>[vue.createVNode(Matrix,{ref:"MatrixRef"},null,512)]),_:1})]),_:1})):vue.createCommentVNode("",!0),vue.createVNode(_sfc_main$A,{ref:"connRef",onSuccess:pe[0]||(pe[0]=ge=>ve()),permission:vue.unref(ue)},null,8,["permission"]),vue.createVNode(_sfc_main$z,{ref:"sqlRef",onSuccess:pe[1]||(pe[1]=ge=>ve()),permission:vue.unref(ue)},null,8,["permission"]),vue.createVNode(_sfc_main$y,{ref:"normalRef",onSuccess:pe[2]||(pe[2]=ge=>ve()),permission:vue.unref(ue)},null,8,["permission"]),vue.createVNode(_sfc_main$x,{ref:"excelRef",onSuccess:pe[3]||(pe[3]=ge=>ve()),permission:vue.unref(ue)},null,8,["permission"]),vue.createVNode(_sfc_main$w,{ref:"extractRef",onSuccess:pe[4]||(pe[4]=ge=>ve()),permission:vue.unref(ue)},null,8,["permission"]),vue.createVNode(_sfc_main$v,{ref:"tagEditRef",permission:vue.unref(ue),onSuccess:pe[5]||(pe[5]=ge=>ve())},null,8,["permission"])]),_:1}))}});typeof window=="object"&&window.NodeList&&!NodeList.prototype.forEach&&(NodeList.prototype.forEach=Array.prototype.forEach),typeof window<"u"&&function(te){te.forEach(U=>{Object.prototype.hasOwnProperty.call(U,"append")||Object.defineProperty(U,"append",{configurable:!0,enumerable:!0,writable:!0,value(...G){const ee=document.createDocumentFragment();G.forEach(ne=>{const re=ne instanceof Node;ee.appendChild(re?ne:document.createTextNode(String(ne)))}),this.appendChild(ee)}})})}([Element.prototype,Document.prototype,DocumentFragment.prototype]);class Disposable{get disposed(){return this._disposed===!0}dispose(){this._disposed=!0}}(function(te){function U(){return(G,ee,ne)=>{const re=ne.value,oe=G.__proto__;ne.value=function(...ie){this.disposed||(re.call(this,...ie),oe.dispose.call(this))}}}te.dispose=U})(Disposable||(Disposable={}));class DisposableSet{constructor(){this.isDisposed=!1,this.items=new Set}get disposed(){return this.isDisposed}dispose(){this.isDisposed||(this.isDisposed=!0,this.items.forEach(U=>{U.dispose()}),this.items.clear())}contains(U){return this.items.has(U)}add(U){this.items.add(U)}remove(U){this.items.delete(U)}clear(){this.items.clear()}}(function(te){function U(G){const ee=new te;return G.forEach(ne=>{ee.add(ne)}),ee}te.from=U})(DisposableSet||(DisposableSet={}));function apply(te,U,G){if(G)switch(G.length){case 0:return te.call(U);case 1:return te.call(U,G[0]);case 2:return te.call(U,G[0],G[1]);case 3:return te.call(U,G[0],G[1],G[2]);case 4:return te.call(U,G[0],G[1],G[2],G[3]);case 5:return te.call(U,G[0],G[1],G[2],G[3],G[4]);case 6:return te.call(U,G[0],G[1],G[2],G[3],G[4],G[5]);default:return te.apply(U,G)}return te.call(U)}function call$1(te,U,...G){return apply(te,U,G)}function isAsyncLike(te){return typeof te=="object"&&te.then&&typeof te.then=="function"}function isAsync(te){return te!=null&&(te instanceof Promise||isAsyncLike(te))}function toAsyncBoolean(...te){const U=[];if(te.forEach(ee=>{Array.isArray(ee)?U.push(...ee):U.push(ee)}),U.some(ee=>isAsync(ee))){const ee=U.map(ne=>isAsync(ne)?ne:Promise.resolve(ne!==!1));return Promise.all(ee).then(ne=>ne.reduce((re,oe)=>oe!==!1&&re,!0))}return U.every(ee=>ee!==!1)}function toDeferredBoolean(...te){const U=toAsyncBoolean(te);return typeof U=="boolean"?Promise.resolve(U):U}function call(te,U){const G=[];for(let ee=0;ee<te.length;ee+=2){const ne=te[ee],re=te[ee+1],oe=Array.isArray(U)?U:[U],ie=apply(ne,re,oe);G.push(ie)}return toAsyncBoolean(G)}class Events{constructor(){this.listeners={}}on(U,G,ee){return G==null?this:(this.listeners[U]||(this.listeners[U]=[]),this.listeners[U].push(G,ee),this)}once(U,G,ee){const ne=(...re)=>(this.off(U,ne),call([G,ee],re));return this.on(U,ne,this)}off(U,G,ee){if(!(U||G||ee))return this.listeners={},this;const ne=this.listeners;return(U?[U]:Object.keys(ne)).forEach(oe=>{const ie=ne[oe];if(ie){if(!(G||ee)){delete ne[oe];return}for(let le=ie.length-2;le>=0;le-=2)G&&ie[le]!==G||ee&&ie[le+1]!==ee||ie.splice(le,2)}}),this}trigger(U,...G){let ee=!0;if(U!=="*"){const re=this.listeners[U];re!=null&&(ee=call([...re],G))}const ne=this.listeners["*"];return ne!=null?toAsyncBoolean([ee,call([...ne],[U,...G])]):ee}emit(U,...G){return this.trigger(U,...G)}}function applyMixins(te,...U){U.forEach(G=>{Object.getOwnPropertyNames(G.prototype).forEach(ee=>{ee!=="constructor"&&Object.defineProperty(te.prototype,ee,Object.getOwnPropertyDescriptor(G.prototype,ee))})})}const extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(te,U){te.__proto__=U}||function(te,U){for(const G in U)Object.prototype.hasOwnProperty.call(U,G)&&(te[G]=U[G])};function inherit(te,U){extendStatics(te,U);function G(){this.constructor=te}te.prototype=U===null?Object.create(U):(G.prototype=U.prototype,new G)}class A{}const isNativeClass=/^\s*class\s+/.test(`${A}`)||/^\s*class\s*\{/.test(`${class{}}`);function createClass(te,U){let G;return isNativeClass?G=class extends U{}:(G=function(){return U.apply(this,arguments)},inherit(G,U)),Object.defineProperty(G,"name",{value:te}),G}function isMaliciousProp(te){return te==="__proto__"}function getByPath(te,U,G="/"){let ee;const ne=Array.isArray(U)?U:U.split(G);if(ne.length)for(ee=te;ne.length;){const re=ne.shift();if(Object(ee)===ee&&re&&re in ee)ee=ee[re];else return}return ee}function setByPath(te,U,G,ee="/"){const ne=Array.isArray(U)?U:U.split(ee),re=ne.pop();if(re&&!isMaliciousProp(re)){let oe=te;ne.forEach(ie=>{isMaliciousProp(ie)||(oe[ie]==null&&(oe[ie]={}),oe=oe[ie])}),oe[re]=G}return te}function unsetByPath(te,U,G="/"){const ee=Array.isArray(U)?U.slice():U.split(G),ne=ee.pop();if(ne)if(ee.length>0){const re=getByPath(te,ee);re&&delete re[ne]}else delete te[ne];return te}var __decorate$u=globalThis&&globalThis.__decorate||function(te,U,G,ee){var ne=arguments.length,re=ne<3?U:ee===null?ee=Object.getOwnPropertyDescriptor(U,G):ee,oe;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")re=Reflect.decorate(te,U,G,ee);else for(var ie=te.length-1;ie>=0;ie--)(oe=te[ie])&&(re=(ne<3?oe(re):ne>3?oe(U,G,re):oe(U,G))||re);return ne>3&&re&&Object.defineProperty(U,G,re),re};class Basecoat extends Events{dispose(){this.off()}}__decorate$u([Disposable.dispose()],Basecoat.prototype,"dispose",null),function(te){te.dispose=Disposable.dispose}(Basecoat||(Basecoat={})),applyMixins(Basecoat,Disposable);const cacheStringFunction=te=>{const U=Object.create(null);return G=>U[G]||(U[G]=te(G))},kebabCase=cacheStringFunction(te=>te.replace(/\B([A-Z])/g,"-$1").toLowerCase()),pascalCase=cacheStringFunction(te=>startCase$1(camelCase$1(te)).replace(/ /g,""));function hashcode(te){let U=2166136261,G=!1,ee=te;for(let ne=0,re=ee.length;ne<re;ne+=1){let oe=ee.charCodeAt(ne);oe>127&&!G&&(ee=unescape(encodeURIComponent(ee)),oe=ee.charCodeAt(ne),G=!0),U^=oe,U+=(U<<1)+(U<<4)+(U<<7)+(U<<8)+(U<<24)}return U>>>0}function uuid(){let te="";const U="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx";for(let G=0,ee=U.length;G<ee;G+=1){const ne=U[G],re=Math.random()*16|0,oe=ne==="x"?re:ne==="y"?re&3|8:ne;te+=oe.toString(16)}return te}function getSpellingSuggestion(te,U,G){const ee=Math.min(2,Math.floor(te.length*.34));let ne=Math.floor(te.length*.4)+1,re,oe=!1;const ie=te.toLowerCase();for(const le of U){const ae=G(le);if(ae!==void 0&&Math.abs(ae.length-ie.length)<=ee){const se=ae.toLowerCase();if(se===ie){if(ae===te)continue;return le}if(oe||ae.length<3)continue;const ue=levenshteinWithMax(ie,se,ne-1);if(ue===void 0)continue;ue<3?(oe=!0,re=le):(ne=ue,re=le)}}return re}function levenshteinWithMax(te,U,G){let ee=new Array(U.length+1),ne=new Array(U.length+1);const re=G+1;for(let ie=0;ie<=U.length;ie+=1)ee[ie]=ie;for(let ie=1;ie<=te.length;ie+=1){const le=te.charCodeAt(ie-1),ae=ie>G?ie-G:1,se=U.length>G+ie?G+ie:U.length;ne[0]=ie;let ue=ie;for(let de=1;de<ae;de+=1)ne[de]=re;for(let de=ae;de<=se;de+=1){const fe=le===U.charCodeAt(de-1)?ee[de-1]:Math.min(ee[de]+1,ne[de-1]+1,ee[de-1]+2);ne[de]=fe,ue=Math.min(ue,fe)}for(let de=se+1;de<=U.length;de+=1)ne[de]=re;if(ue>G)return;const ce=ee;ee=ne,ne=ce}const oe=ee[U.length];return oe>G?void 0:oe}function isPercentage(te){return typeof te=="string"&&te.slice(-1)==="%"}function normalizePercentage(te,U){if(te==null)return 0;let G;if(typeof te=="string"){if(G=parseFloat(te),isPercentage(te)&&(G/=100,Number.isFinite(G)))return G*U}else G=te;return Number.isFinite(G)?G>0&&G<1?G*U:G:0}function normalizeSides(te){if(typeof te=="object"){let G=0,ee=0,ne=0,re=0;return te.vertical!=null&&Number.isFinite(te.vertical)&&(ee=re=te.vertical),te.horizontal!=null&&Number.isFinite(te.horizontal)&&(ne=G=te.horizontal),te.left!=null&&Number.isFinite(te.left)&&(G=te.left),te.top!=null&&Number.isFinite(te.top)&&(ee=te.top),te.right!=null&&Number.isFinite(te.right)&&(ne=te.right),te.bottom!=null&&Number.isFinite(te.bottom)&&(re=te.bottom),{top:ee,right:ne,bottom:re,left:G}}let U=0;return te!=null&&Number.isFinite(te)&&(U=te),{top:U,right:U,bottom:U,left:U}}let _IS_MAC=!1,_IS_IOS=!1,_IS_WINDOWS=!1,_IS_IE=!1,_IS_IE11=!1,_IS_EDGE=!1,_IS_NETSCAPE=!1,_IS_CHROME_APP=!1,_IS_CHROME=!1,_IS_OPERA=!1,_IS_FIREFOX=!1,_IS_SAFARI=!1,_SUPPORT_TOUCH=!1,_SUPPORT_POINTER=!1,_SUPPORT_PASSIVE=!1,_NO_FOREIGNOBJECT=!1;if(typeof navigator=="object"){const te=navigator.userAgent;_IS_MAC=te.indexOf("Macintosh")>=0,_IS_IOS=!!te.match(/(iPad|iPhone|iPod)/g),_IS_WINDOWS=te.indexOf("Windows")>=0,_IS_IE=te.indexOf("MSIE")>=0,_IS_IE11=!!te.match(/Trident\/7\./),_IS_EDGE=!!te.match(/Edge\//),_IS_NETSCAPE=te.indexOf("Mozilla/")>=0&&te.indexOf("MSIE")<0&&te.indexOf("Edge/")<0,_IS_CHROME=te.indexOf("Chrome/")>=0&&te.indexOf("Edge/")<0,_IS_OPERA=te.indexOf("Opera/")>=0||te.indexOf("OPR/")>=0,_IS_FIREFOX=te.indexOf("Firefox/")>=0,_IS_SAFARI=te.indexOf("AppleWebKit/")>=0&&te.indexOf("Chrome/")<0&&te.indexOf("Edge/")<0,typeof document=="object"&&(_NO_FOREIGNOBJECT=!document.createElementNS||`${document.createElementNS("http://www.w3.org/2000/svg","foreignObject")}`!="[object SVGForeignObjectElement]"||te.indexOf("Opera/")>=0)}if(typeof window=="object"&&(_IS_CHROME_APP=window.chrome!=null&&window.chrome.app!=null&&window.chrome.app.runtime!=null,_SUPPORT_POINTER=window.PointerEvent!=null&&!_IS_MAC),typeof document=="object"){_SUPPORT_TOUCH="ontouchstart"in document.documentElement;try{const te=Object.defineProperty({},"passive",{get(){_SUPPORT_PASSIVE=!0}}),U=document.createElement("div");U.addEventListener&&U.addEventListener("click",()=>{},te)}catch{}}var Platform;(function(te){te.IS_MAC=_IS_MAC,te.IS_IOS=_IS_IOS,te.IS_WINDOWS=_IS_WINDOWS,te.IS_IE=_IS_IE,te.IS_IE11=_IS_IE11,te.IS_EDGE=_IS_EDGE,te.IS_NETSCAPE=_IS_NETSCAPE,te.IS_CHROME_APP=_IS_CHROME_APP,te.IS_CHROME=_IS_CHROME,te.IS_OPERA=_IS_OPERA,te.IS_FIREFOX=_IS_FIREFOX,te.IS_SAFARI=_IS_SAFARI,te.SUPPORT_TOUCH=_SUPPORT_TOUCH,te.SUPPORT_POINTER=_SUPPORT_POINTER,te.SUPPORT_PASSIVE=_SUPPORT_PASSIVE,te.NO_FOREIGNOBJECT=_NO_FOREIGNOBJECT,te.SUPPORT_FOREIGNOBJECT=!te.NO_FOREIGNOBJECT})(Platform||(Platform={})),function(te){function U(){const re=window.module;return re!=null&&re.hot!=null&&re.hot.status!=null?re.hot.status():"unkonwn"}te.getHMRStatus=U;function G(){return U()==="apply"}te.isApplyingHMR=G;const ee={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"};function ne(re){const oe=document.createElement(ee[re]||"div"),ie=`on${re}`;let le=ie in oe;return le||(oe.setAttribute(ie,"return;"),le=typeof oe[ie]=="function"),le}te.isEventSupported=ne}(Platform||(Platform={}));const rclass=/[\t\r\n\f]/g,rnotwhite=/\S+/g,fillSpaces=te=>` ${te} `;function getClass(te){return te&&te.getAttribute&&te.getAttribute("class")||""}function hasClass(te,U){if(te==null||U==null)return!1;const G=fillSpaces(getClass(te)),ee=fillSpaces(U);return te.nodeType===1?G.replace(rclass," ").includes(ee):!1}function addClass(te,U){if(!(te==null||U==null)){if(typeof U=="function")return addClass(te,U(getClass(te)));if(typeof U=="string"&&te.nodeType===1){const G=U.match(rnotwhite)||[],ee=fillSpaces(getClass(te)).replace(rclass," ");let ne=G.reduce((re,oe)=>re.indexOf(fillSpaces(oe))<0?`${re}${oe} `:re,ee);ne=ne.trim(),ee!==ne&&te.setAttribute("class",ne)}}}function removeClass(te,U){if(te!=null){if(typeof U=="function")return removeClass(te,U(getClass(te)));if((!U||typeof U=="string")&&te.nodeType===1){const G=(U||"").match(rnotwhite)||[],ee=fillSpaces(getClass(te)).replace(rclass," ");let ne=G.reduce((re,oe)=>{const ie=fillSpaces(oe);return re.indexOf(ie)>-1?re.replace(ie," "):re},ee);ne=U?ne.trim():"",ee!==ne&&te.setAttribute("class",ne)}}}function toggleClass(te,U,G){if(!(te==null||U==null)){if(G!=null&&typeof U=="string"){G?addClass(te,U):removeClass(te,U);return}if(typeof U=="function")return toggleClass(te,U(getClass(te),G),G);typeof U=="string"&&(U.match(rnotwhite)||[]).forEach(ne=>{hasClass(te,ne)?removeClass(te,ne):addClass(te,ne)})}}let idCounter=0;function uniqueId(){return idCounter+=1,`v${idCounter}`}function ensureId(te){return(te.id==null||te.id==="")&&(te.id=uniqueId()),te.id}function isSVGGraphicsElement(te){return te==null?!1:typeof te.getScreenCTM=="function"&&te instanceof SVGElement}const ns={svg:"http://www.w3.org/2000/svg",xmlns:"http://www.w3.org/2000/xmlns/",xml:"http://www.w3.org/XML/1998/namespace",xlink:"http://www.w3.org/1999/xlink",xhtml:"http://www.w3.org/1999/xhtml"},svgVersion="1.1";function createElement(te,U=document){return U.createElement(te)}function createElementNS(te,U=ns.xhtml,G=document){return G.createElementNS(U,te)}function createSvgElement(te,U=document){return createElementNS(te,ns.svg,U)}function createSvgDocument(te){if(te){const G=`<svg xmlns="${ns.svg}" xmlns:xlink="${ns.xlink}" version="${svgVersion}">${te}</svg>`,{documentElement:ee}=parseXML(G,{async:!1});return ee}const U=document.createElementNS(ns.svg,"svg");return U.setAttributeNS(ns.xmlns,"xmlns:xlink",ns.xlink),U.setAttribute("version",svgVersion),U}function parseXML(te,U={}){let G;try{const ee=new DOMParser;if(U.async!=null){const ne=ee;ne.async=U.async}G=ee.parseFromString(te,U.mimeType||"text/xml")}catch{G=void 0}if(!G||G.getElementsByTagName("parsererror").length)throw new Error(`Invalid XML: ${te}`);return G}function tagName(te,U=!0){const G=te.nodeName;return U?G.toLowerCase():G.toUpperCase()}function index$1(te){let U=0,G=te.previousSibling;for(;G;)G.nodeType===1&&(U+=1),G=G.previousSibling;return U}function find(te,U){return te.querySelectorAll(U)}function findOne(te,U){return te.querySelector(U)}function findParentByClass(te,U,G){const ee=te.ownerSVGElement;let ne=te.parentNode;for(;ne&&ne!==G&&ne!==ee;){if(hasClass(ne,U))return ne;ne=ne.parentNode}return null}function contains(te,U){const G=U&&U.parentNode;return te===G||!!(G&&G.nodeType===1&&te.compareDocumentPosition(G)&16)}function remove(te){te&&(Array.isArray(te)?te:[te]).forEach(G=>{G.parentNode&&G.parentNode.removeChild(G)})}function empty(te){for(;te.firstChild;)te.removeChild(te.firstChild)}function append(te,U){(Array.isArray(U)?U:[U]).forEach(ee=>{ee!=null&&te.appendChild(ee)})}function prepend(te,U){const G=te.firstChild;return G?before(G,U):append(te,U)}function before(te,U){const G=te.parentNode;G&&(Array.isArray(U)?U:[U]).forEach(ne=>{ne!=null&&G.insertBefore(ne,te)})}function after(te,U){const G=te.parentNode;G&&(Array.isArray(U)?U:[U]).forEach(ne=>{ne!=null&&G.insertBefore(ne,te.nextSibling)})}function appendTo(te,U){U!=null&&U.appendChild(te)}function isHTMLElement(te){try{return te instanceof HTMLElement}catch{return typeof te=="object"&&te.nodeType===1&&typeof te.style=="object"&&typeof te.ownerDocument=="object"}}function children(te,U){const G=[];let ee=te.firstChild;for(;ee;ee=ee.nextSibling)ee.nodeType===1&&(!U||hasClass(ee,U))&&G.push(ee);return G}const CASE_SENSITIVE_ATTR=["viewBox","attributeName","attributeType","repeatCount","textLength","lengthAdjust","gradientUnits"];function getAttribute(te,U){return te.getAttribute(U)}function removeAttribute(te,U){const G=qualifyAttr(U);G.ns?te.hasAttributeNS(G.ns,G.local)&&te.removeAttributeNS(G.ns,G.local):te.hasAttribute(U)&&te.removeAttribute(U)}function setAttribute(te,U,G){if(G==null)return removeAttribute(te,U);const ee=qualifyAttr(U);ee.ns&&typeof G=="string"?te.setAttributeNS(ee.ns,U,G):U==="id"?te.id=`${G}`:te.setAttribute(U,`${G}`)}function setAttributes(te,U){Object.keys(U).forEach(G=>{setAttribute(te,G,U[G])})}function attr(te,U,G){if(U==null){const ee=te.attributes,ne={};for(let re=0;re<ee.length;re+=1)ne[ee[re].name]=ee[re].value;return ne}if(typeof U=="string"&&G===void 0)return te.getAttribute(U);typeof U=="object"?setAttributes(te,U):setAttribute(te,U,G)}function qualifyAttr(te){if(te.indexOf(":")!==-1){const U=te.split(":");return{ns:ns[U[0]],local:U[1]}}return{ns:null,local:te}}function kebablizeAttrs(te){const U={};return Object.keys(te).forEach(G=>{const ee=CASE_SENSITIVE_ATTR.includes(G)?G:kebabCase(G);U[ee]=te[G]}),U}function styleToObject(te){const U={};return te.split(";").forEach(ee=>{const ne=ee.trim();if(ne){const re=ne.split("=");re.length&&(U[re[0].trim()]=re[1]?re[1].trim():"")}}),U}function mergeAttrs(te,U){return Object.keys(U).forEach(G=>{if(G==="class")te[G]=te[G]?`${te[G]} ${U[G]}`:U[G];else if(G==="style"){const ee=typeof te[G]=="object",ne=typeof U[G]=="object";let re,oe;ee&&ne?(re=te[G],oe=U[G]):ee?(re=te[G],oe=styleToObject(U[G])):ne?(re=styleToObject(te[G]),oe=U[G]):(re=styleToObject(te[G]),oe=styleToObject(U[G])),te[G]=mergeAttrs(re,oe)}else te[G]=U[G]}),te}function annotate(te,U,G={}){const ee=G.offset||0,ne=[],re=[];let oe,ie,le=null;for(let ae=0;ae<te.length;ae+=1){oe=re[ae]=te[ae];for(let se=0,ue=U.length;se<ue;se+=1){const ce=U[se],de=ce.start+ee,fe=ce.end+ee;ae>=de&&ae<fe&&(typeof oe=="string"?oe=re[ae]={t:te[ae],attrs:ce.attrs}:oe.attrs=mergeAttrs(mergeAttrs({},oe.attrs),ce.attrs),G.includeAnnotationIndices&&(oe.annotations==null&&(oe.annotations=[]),oe.annotations.push(se)))}ie=re[ae-1],ie?isObject(oe)&&isObject(ie)?(le=le,JSON.stringify(oe.attrs)===JSON.stringify(ie.attrs)?le.t+=oe.t:(ne.push(le),le=oe)):isObject(oe)||isObject(ie)?(le=le,ne.push(le),le=oe):le=(le||"")+oe:le=oe}return le!=null&&ne.push(le),ne}function sanitize(te){return te.replace(/ /g," ")}var DataUri;(function(te){function U(ae){const se="data:";return ae.substr(0,se.length)===se}te.isDataUrl=U;function G(ae,se){if(!ae||U(ae)){setTimeout(()=>se(null,ae));return}const ue=()=>{se(new Error(`Failed to load image: ${ae}`))},ce=window.FileReader?fe=>{if(fe.status===200){const ve=new FileReader;ve.onload=he=>{const pe=he.target.result;se(null,pe)},ve.onerror=ue,ve.readAsDataURL(fe.response)}else ue()}:fe=>{const ve=he=>{const ge=[];for(let me=0;me<he.length;me+=32768)ge.push(String.fromCharCode.apply(null,he.subarray(me,me+32768)));return ge.join("")};if(fe.status===200){let he=ae.split(".").pop()||"png";he==="svg"&&(he="svg+xml");const pe=`data:image/${he};base64,`,ge=new Uint8Array(fe.response),me=pe+btoa(ve(ge));se(null,me)}else ue()},de=new XMLHttpRequest;de.responseType=window.FileReader?"blob":"arraybuffer",de.open("GET",ae,!0),de.addEventListener("error",ue),de.addEventListener("load",()=>ce(de)),de.send()}te.imageToDataUri=G;function ee(ae){let se=ae.replace(/\s/g,"");se=decodeURIComponent(se);const ue=se.indexOf(","),ce=se.slice(0,ue),de=ce.split(":")[1].split(";")[0],fe=se.slice(ue+1);let ve;ce.indexOf("base64")>=0?ve=atob(fe):ve=unescape(encodeURIComponent(fe));const he=new Uint8Array(ve.length);for(let pe=0;pe<ve.length;pe+=1)he[pe]=ve.charCodeAt(pe);return new Blob([he],{type:de})}te.dataUriToBlob=ee;function ne(ae,se){const ue=window.navigator.msSaveBlob;if(ue)ue(ae,se);else{const ce=window.URL.createObjectURL(ae),de=document.createElement("a");de.href=ce,de.download=se,document.body.appendChild(de),de.click(),document.body.removeChild(de),window.URL.revokeObjectURL(ce)}}te.downloadBlob=ne;function re(ae,se){const ue=ee(ae);ne(ue,se)}te.downloadDataUri=re;function oe(ae){const se=ae.match(/<svg[^>]*viewBox\s*=\s*(["']?)(.+?)\1[^>]*>/i);return se&&se[2]?se[2].replace(/\s+/," ").split(" "):null}function ie(ae){const se=parseFloat(ae);return Number.isNaN(se)?null:se}function le(ae,se={}){let ue=null;const ce=me=>(ue==null&&(ue=oe(ae)),ue!=null?ie(ue[me]):null),de=me=>{const _e=ae.match(me);return _e&&_e[2]?ie(_e[2]):null};let fe=se.width;if(fe==null&&(fe=de(/<svg[^>]*width\s*=\s*(["']?)(.+?)\1[^>]*>/i)),fe==null&&(fe=ce(2)),fe==null)throw new Error("Can not parse width from svg string");let ve=se.height;if(ve==null&&(ve=de(/<svg[^>]*height\s*=\s*(["']?)(.+?)\1[^>]*>/i)),ve==null&&(ve=ce(3)),ve==null)throw new Error("Can not parse height from svg string");return`data:image/svg+xml,${encodeURIComponent(ae).replace(/'/g,"%27").replace(/"/g,"%22")}`}te.svgToDataUrl=le})(DataUri||(DataUri={}));let millimeterSize;const supportedUnits={px(te){return te},mm(te){return millimeterSize*te},cm(te){return millimeterSize*te*10},in(te){return millimeterSize*te*25.4},pt(te){return millimeterSize*(25.4*te/72)},pc(te){return millimeterSize*(25.4*te/6)}};var Unit;(function(te){function U(ee,ne,re){const oe=document.createElement("div"),ie=oe.style;ie.display="inline-block",ie.position="absolute",ie.left="-15000px",ie.top="-15000px",ie.width=ee+(re||"px"),ie.height=ne+(re||"px"),document.body.appendChild(oe);const le=oe.getBoundingClientRect(),ae={width:le.width||0,height:le.height||0};return document.body.removeChild(oe),ae}te.measure=U;function G(ee,ne){millimeterSize==null&&(millimeterSize=U("1","1","mm").width);const re=ne?supportedUnits[ne]:null;return re?re(ee):ee}te.toPx=G})(Unit||(Unit={}));const hyphenPattern=/-(.)/g;function camelize(te){return te.replace(hyphenPattern,(U,G)=>G.toUpperCase())}const memoized={},prefixes=["webkit","ms","moz","o"],testStyle=typeof document<"u"?document.createElement("div").style:{};function getWithPrefix(te){for(let U=0;U<prefixes.length;U+=1){const G=prefixes[U]+te;if(G in testStyle)return G}return null}function getVendorPrefixedName(te){const U=camelize(te);if(memoized[U]==null){const G=U.charAt(0).toUpperCase()+U.slice(1);memoized[U]=U in testStyle?U:getWithPrefix(G)}return memoized[U]}function getComputedStyle$1(te,U){const G=te.ownerDocument&&te.ownerDocument.defaultView&&te.ownerDocument.defaultView.opener?te.ownerDocument.defaultView.getComputedStyle(te,null):window.getComputedStyle(te,null);return G&&U?G.getPropertyValue(U)||G[U]:G}const numericProps={animationIterationCount:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0};function isCSSVariable(te){return/^--/.test(te)}function computeStyle(te,U,G){const ee=window.getComputedStyle(te,null);return G?ee.getPropertyValue(U)||void 0:ee[U]||te.style[U]}function getSuffixedValue(te,U){return!numericProps[te]&&typeof U=="number"?`${U}px`:U}function css(te,U,G){if(typeof U=="string"){const ee=isCSSVariable(U);if(ee||(U=getVendorPrefixedName(U)),G===void 0)return computeStyle(te,U,ee);ee||(G=getSuffixedValue(U,G));const ne=te.style;ee?ne.setProperty(U,G):ne[U]=G;return}for(const ee in U)css(te,ee,U[ee])}const dataset=new WeakMap;function getData(te,U){const G=camelCase$1(U),ee=dataset.get(te);if(ee)return ee[G]}function setData(te,U,G){const ee=camelCase$1(U),ne=dataset.get(te);ne?ne[ee]=G:dataset.set(te,{[ee]:G})}function data(te,U,G){if(!U){const ee={};return Object.keys(dataset).forEach(ne=>{ee[ne]=getData(te,ne)}),ee}if(typeof U=="string"){if(G===void 0)return getData(te,U);setData(te,U,G);return}for(const ee in U)data(te,ee,U[ee])}const propMap={class:"className",contenteditable:"contentEditable",for:"htmlFor",readonly:"readOnly",maxlength:"maxLength",tabindex:"tabIndex",colspan:"colSpan",rowspan:"rowSpan",usemap:"useMap"};function prop(te,U,G){if(U){if(typeof U=="string"){if(U=propMap[U]||U,arguments.length<3)return te[U];te[U]=G;return}for(const ee in U)prop(te,ee,U[ee])}}class Vector{get[Symbol.toStringTag](){return Vector.toStringTag}get type(){return this.node.nodeName}get id(){return this.node.id}set id(U){this.node.id=U}constructor(U,G,ee){if(!U)throw new TypeError("Invalid element to create vector");let ne;if(Vector.isVector(U))ne=U.node;else if(typeof U=="string")if(U.toLowerCase()==="svg")ne=createSvgDocument();else if(U[0]==="<"){const re=createSvgDocument(U);ne=document.importNode(re.firstChild,!0)}else ne=document.createElementNS(ns.svg,U);else ne=U;this.node=ne,G&&this.setAttributes(G),ee&&this.append(ee)}transform(U,G){return U==null?transform(this.node):(transform(this.node,U,G),this)}translate(U,G=0,ee={}){return U==null?translate(this.node):(translate(this.node,U,G,ee),this)}rotate(U,G,ee,ne={}){return U==null?rotate$1(this.node):(rotate$1(this.node,U,G,ee,ne),this)}scale(U,G){return U==null?scale(this.node):(scale(this.node,U,G),this)}getTransformToElement(U){const G=Vector.toNode(U);return getTransformToElement(this.node,G)}removeAttribute(U){return removeAttribute(this.node,U),this}getAttribute(U){return getAttribute(this.node,U)}setAttribute(U,G){return setAttribute(this.node,U,G),this}setAttributes(U){return setAttributes(this.node,U),this}attr(U,G){return U==null?attr(this.node):typeof U=="string"&&G===void 0?attr(this.node,U):(typeof U=="object"?attr(this.node,U):attr(this.node,U,G),this)}svg(){return this.node instanceof SVGSVGElement?this:Vector.create(this.node.ownerSVGElement)}defs(){const U=this.svg()||this,G=U.node.getElementsByTagName("defs")[0];return G?Vector.create(G):Vector.create("defs").appendTo(U)}text(U,G={}){return text$1(this.node,U,G),this}tagName(){return tagName(this.node)}clone(){return Vector.create(this.node.cloneNode(!0))}remove(){return remove(this.node),this}empty(){return empty(this.node),this}append(U){return append(this.node,Vector.toNodes(U)),this}appendTo(U){return appendTo(this.node,Vector.isVector(U)?U.node:U),this}prepend(U){return prepend(this.node,Vector.toNodes(U)),this}before(U){return before(this.node,Vector.toNodes(U)),this}replace(U){return this.node.parentNode&&this.node.parentNode.replaceChild(Vector.toNode(U),this.node),Vector.create(U)}first(){return this.node.firstChild?Vector.create(this.node.firstChild):null}last(){return this.node.lastChild?Vector.create(this.node.lastChild):null}get(U){const G=this.node.childNodes[U];return G?Vector.create(G):null}indexOf(U){return Array.prototype.slice.call(this.node.childNodes).indexOf(Vector.toNode(U))}find(U){const G=[],ee=find(this.node,U);if(ee)for(let ne=0,re=ee.length;ne<re;ne+=1)G.push(Vector.create(ee[ne]));return G}findOne(U){const G=findOne(this.node,U);return G?Vector.create(G):null}findParentByClass(U,G){const ee=findParentByClass(this.node,U,G);return ee?Vector.create(ee):null}matches(U){const G=this.node;this.node.matches;const ee=G.matches||G.matchesSelector||G.msMatchesSelector||G.mozMatchesSelector||G.webkitMatchesSelector||G.oMatchesSelector||null;return ee&&ee.call(G,U)}contains(U){return contains(this.node,Vector.isVector(U)?U.node:U)}wrap(U){const G=Vector.create(U),ee=this.node.parentNode;return ee!=null&&ee.insertBefore(G.node,this.node),G.append(this)}parent(U){let G=this;if(G.node.parentNode==null)return null;if(G=Vector.create(G.node.parentNode),U==null)return G;do if(typeof U=="string"?G.matches(U):G instanceof U)return G;while(G=Vector.create(G.node.parentNode));return G}children(){const U=this.node.childNodes,G=[];for(let ee=0;ee<U.length;ee+=1)U[ee].nodeType===1&&G.push(Vector.create(U[ee]));return G}eachChild(U,G){const ee=this.children();for(let ne=0,re=ee.length;ne<re;ne+=1)U.call(ee[ne],ee[ne],ne,ee),G&&ee[ne].eachChild(U,G);return this}index(){return index$1(this.node)}hasClass(U){return hasClass(this.node,U)}addClass(U){return addClass(this.node,U),this}removeClass(U){return removeClass(this.node,U),this}toggleClass(U,G){return toggleClass(this.node,U,G),this}toLocalPoint(U,G){return toLocalPoint(this.node,U,G)}sample(U=1){return this.node instanceof SVGPathElement?sample(this.node,U):[]}toPath(){return Vector.create(toPath(this.node))}toPathData(){return toPathData(this.node)}}(function(te){te.toStringTag=`X6.${te.name}`;function U(oe){if(oe==null)return!1;if(oe instanceof te)return!0;const ie=oe[Symbol.toStringTag],le=oe;return(ie==null||ie===te.toStringTag)&&le.node instanceof SVGElement&&typeof le.sample=="function"&&typeof le.toPath=="function"}te.isVector=U;function G(oe,ie,le){return new te(oe,ie,le)}te.create=G;function ee(oe){if(oe[0]==="<"){const ie=createSvgDocument(oe),le=[];for(let ae=0,se=ie.childNodes.length;ae<se;ae+=1){const ue=ie.childNodes[ae];le.push(G(document.importNode(ue,!0)))}return le}return[G(oe)]}te.createVectors=ee;function ne(oe){return U(oe)?oe.node:oe}te.toNode=ne;function re(oe){return Array.isArray(oe)?oe.map(ie=>ne(ie)):[ne(oe)]}te.toNodes=re})(Vector||(Vector={}));function createTextPathNode(te,U){const G=Vector.create(U),ee=Vector.create("textPath"),ne=te.d;if(ne&&te["xlink:href"]===void 0){const re=Vector.create("path").attr("d",ne).appendTo(G.defs());ee.attr("xlink:href",`#${re.id}`)}return typeof te=="object"&&ee.attr(te),ee.node}function annotateTextLine(te,U,G){const ee=G.eol,ne=G.baseSize,re=G.lineHeight;let oe=0,ie;const le={},ae=U.length-1;for(let se=0;se<=ae;se+=1){let ue=U[se],ce=null;if(typeof ue=="object"){const de=ue.attrs,fe=Vector.create("tspan",de);ie=fe.node;let ve=ue.t;ee&&se===ae&&(ve+=ee),ie.textContent=ve;const he=de.class;he&&fe.addClass(he),G.includeAnnotationIndices&&fe.attr("annotations",ue.annotations.join(",")),ce=parseFloat(de["font-size"]),ce===void 0&&(ce=ne),ce&&ce>oe&&(oe=ce)}else ee&&se===ae&&(ue+=ee),ie=document.createTextNode(ue||" "),ne&&ne>oe&&(oe=ne);te.appendChild(ie)}return oe&&(le.maxFontSize=oe),re?le.lineHeight=re:oe&&(le.lineHeight=oe*1.2),le}const emRegex=/em$/;function emToPx(te,U){const G=parseFloat(te);return emRegex.test(te)?G*U:G}function calculateDY(te,U,G,ee){if(!Array.isArray(U))return 0;const ne=U.length;if(!ne)return 0;let re=U[0];const oe=emToPx(re.maxFontSize,G)||G;let ie=0;const le=emToPx(ee,G);for(let ue=1;ue<ne;ue+=1){re=U[ue];const ce=emToPx(re.lineHeight,G)||le;ie+=ce}const ae=emToPx(re.maxFontSize,G)||G;let se;switch(te){case"middle":se=oe/2-.15*ae-ie/2;break;case"bottom":se=-(.25*ae)-ie;break;case"top":default:se=.8*oe;break}return se}function text$1(te,U,G={}){U=sanitize(U);const ee=G.eol;let ne=G.textPath;const re=G.textVerticalAnchor,oe=re==="middle"||re==="bottom"||re==="top";let ie=G.x;ie===void 0&&(ie=te.getAttribute("x")||0);const le=G.includeAnnotationIndices;let ae=G.annotations;ae&&!Array.isArray(ae)&&(ae=[ae]);const se=G.lineHeight,ue=se==="auto",ce=ue?"1.5em":se||"1em";let de=!0;const fe=te.childNodes;if(fe.length===1){const $e=fe[0];$e&&$e.tagName.toUpperCase()==="TITLE"&&(de=!1)}de&&empty(te),attr(te,{"xml:space":"preserve",display:U||G.displayEmpty?null:"none"});const ve=attr(te,"font-size");let he=parseFloat(ve);he||(he=16,(oe||ae)&&!ve&&attr(te,"font-size",`${he}`));let pe;ne?(typeof ne=="string"&&(ne={d:ne}),pe=createTextPathNode(ne,te)):pe=document.createDocumentFragment();let ge,me=0,_e;const ye=U.split(`
|
|
903
|
+
}`,vue.unref(ce).init((me==null?void 0:me.taskDefined)??{}),ve.value=(me==null?void 0:me.taskDefined)??null})},pe=()=>{if(!vue.unref(oe)){G.$message.warning("请输入SQL");return}const{params:me,error:_e}=ne(fe);if(!(_e.length>0)){if(vue.unref(ue)){const{params:ye,error:be}=vue.unref(ce).getForm();if(be.length>0)return;me.taskDefined={...vue.unref(ve)??{},...ye}}return{...me,extractPluginScript:vue.unref(le),extractSql:vue.unref(oe)}}},ge=async me=>{se.value=!0;const _e={dataSourceId:0,extractSql:vue.unref(oe),projectId:G.$baseGetCurrentProjectId()};me==="javascript"&&(_e.extractPluginScript=vue.unref(le)||"",_e.streamType=fe.find(be=>be.fieldName=="streamType").value);const ye=await G.$baseHttp.post("/api/ace-data-center/db-extract/dbExtractDebug",_e);se.value=!1,ye&&(me==="sql"?ie.value=ye.data:ae.value=ye.data,G.$message.success("执行成功"))};return U({extractSql:oe,init:he,getValue:pe}),(me,_e)=>{const ye=vue.resolveComponent("aceHeader"),be=vue.resolveComponent("AppCodemirror"),xe=vue.resolveComponent("AppForm");return vue.openBlock(),vue.createElementBlock(vue.Fragment,null,[vue.createElementVNode("div",_hoisted_1$m,[vue.createElementVNode("div",_hoisted_2$h,[vue.createVNode(ye,{title:"SQL数据抽取"},{left:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElPopover),{width:"600",placement:"bottom",trigger:"hover"},{reference:vue.withCtx(()=>[_hoisted_3$g]),default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElTable),{data:re},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElTableColumn),{prop:"sql",label:"SQL示例"},{default:vue.withCtx(({row:Ce})=>[vue.createVNode(vue.unref(elementPlus.ElTooltip),{content:Ce.sql,placement:"top"},{default:vue.withCtx(()=>[vue.createElementVNode("span",null,vue.toDisplayString(String(Ce.sql).substring(1,30))+"...",1)]),_:2},1032,["content"])]),_:1}),vue.createVNode(vue.unref(elementPlus.ElTableColumn),{label:"操作",width:"120"},{default:vue.withCtx(({row:Ce})=>[vue.createVNode(vue.unref(elementPlus.ElLink),{type:"primary",onClick:$e=>oe.value=Ce.sql},{default:vue.withCtx(()=>[vue.createTextVNode("复制到编辑框")]),_:2},1032,["onClick"])]),_:1})]),_:1})]),_:1})]),default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElLink),{disabled:vue.unref(se),type:"warning",onClick:_e[0]||(_e[0]=Ce=>ge("sql"))},{default:vue.withCtx(()=>[vue.createTextVNode("执行SQL")]),_:1},8,["disabled"])]),_:1}),vue.createElementVNode("div",_hoisted_4$e,[vue.createVNode(be,{extensions:"sql",modelValue:vue.unref(oe),"onUpdate:modelValue":_e[1]||(_e[1]=Ce=>vue.isRef(oe)?oe.value=Ce:null),style:{height:"250px"}},null,8,["modelValue"])])]),vue.createElementVNode("div",_hoisted_5$c,[vue.createVNode(ye,{title:"执行结果"}),vue.createElementVNode("div",_hoisted_6$a,[vue.createVNode(vue.unref(JsonEditorVue),{style:{height:"250px"},modelValue:vue.unref(ie),"onUpdate:modelValue":_e[2]||(_e[2]=Ce=>vue.isRef(ie)?ie.value=Ce:null)},null,8,["modelValue"])])])]),vue.createElementVNode("div",_hoisted_7$9,[vue.createElementVNode("div",_hoisted_8$7,[vue.createVNode(ye,{title:"插件编写"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElLink),{disabled:vue.unref(se),type:"warning",onClick:_e[3]||(_e[3]=Ce=>ge("javascript"))},{default:vue.withCtx(()=>[vue.createTextVNode(" 执行插件 ")]),_:1},8,["disabled"])]),_:1}),vue.createElementVNode("div",_hoisted_9$7,[vue.createVNode(be,{modelValue:vue.unref(le),"onUpdate:modelValue":_e[4]||(_e[4]=Ce=>vue.isRef(le)?le.value=Ce:null),style:{height:"250px"}},null,8,["modelValue"])])]),vue.createElementVNode("div",_hoisted_10$6,[vue.createVNode(ye,{title:"插件执行结果"}),vue.createElementVNode("div",_hoisted_11$4,[vue.createVNode(vue.unref(JsonEditorVue),{style:{height:"250px"},modelValue:vue.unref(ae),"onUpdate:modelValue":_e[5]||(_e[5]=Ce=>vue.isRef(ae)?ae.value=Ce:null)},null,8,["modelValue"])])])]),vue.createVNode(ye,{title:"抽取方案",class:"mt-4"}),vue.createVNode(xe,{form:vue.unref(fe)},{incrementalField:vue.withCtx(({element:Ce})=>[vue.createVNode(vue.unref(elementPlus.ElSelect),{modelValue:Ce.value,"onUpdate:modelValue":$e=>Ce.value=$e,placeholder:"请选择"},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(me.modelAttributeList,$e=>(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElOption),{key:$e.id,label:`${$e.attributeCode}(${$e.attributeComment||$e.attributeCode})`,value:$e.attributeCode},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue"])]),_:1},8,["form"]),vue.withDirectives(vue.createElementVNode("div",_hoisted_12$3,[vue.createVNode(ye,{title:"作业配置",class:"mb-2"},{left:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElCheckbox),{class:"ml-2",modelValue:vue.unref(ue),"onUpdate:modelValue":_e[6]||(_e[6]=Ce=>vue.isRef(ue)?ue.value=Ce:null)},{default:vue.withCtx(()=>[vue.createTextVNode("作业配置")]),_:1},8,["modelValue"])]),_:1}),vue.withDirectives(vue.createElementVNode("div",null,[vue.createVNode(taskDesign,{ref_key:"taskDesignRef",ref:ce},null,512)],512),[[vue.vShow,vue.unref(ue)]])],512),[[vue.vShow,["1","2"].includes(vue.unref(de).value)]])],64)}}}),_withScopeId$8=te=>(vue.pushScopeId("data-v-5e352c92"),te=te(),vue.popScopeId(),te),_hoisted_1$l={class:"flex items-center mt-2"},_hoisted_2$g={class:"flex-1"},_hoisted_3$f={class:"mt-2 text-gray-400"},_hoisted_4$d=_withScopeId$8(()=>vue.createElementVNode("label",null,"模型名称:",-1)),_hoisted_5$b=_withScopeId$8(()=>vue.createElementVNode("label",null,"模型代码:",-1)),_hoisted_6$9=_withScopeId$8(()=>vue.createElementVNode("label",null,"模型描述:",-1)),_sfc_main$n=vue.defineComponent({__name:"model-db-extract-design",props:{modelId:{default:""}},emits:["success"],setup(te,{expose:U,emit:G}){const ee=te,ne=G,{proxy:re}=vue.getCurrentInstance(),{allModel:oe,allModelAttribute:ie,getDetail:le}=fetch$1(re).model,ae=vue.ref(!1),se=vue.ref(null),ue=vue.ref([]),ce=vue.ref(""),de=vue.ref({}),fe=(ye,be="")=>{de.value={},ue.value=[],ae.value=!0,[{label:"ODS源",value:"odsy"},{label:"DWD源",value:"dwdy"},{label:"DWD目标",value:"dwdmb"}].forEach(xe=>{ue.value.push({...xe,attributeList:xe.value=="dwdmb"?[]:{},options:[],selectValue:[],currentVal:"",checkAttributeList:[]})}),ce.value=vue.unref(ue)[0].value,oe({modelLayer:"ODS"}).then(xe=>{vue.unref(ue).find(Ce=>Ce.value=="odsy").options=xe.data}),oe({modelLayer:"DWD"}).then(xe=>{vue.unref(ue).find(Ce=>Ce.value=="dwdy").options=xe.data}),ie({modelId:ee.modelId}).then(xe=>{vue.unref(ue).find(Ce=>Ce.value=="dwdmb").attributeList=xe.data}),le(ee.modelId).then(xe=>{de.value=xe.data}),vue.nextTick(()=>{be?re.$baseHttp.get(`/api/ace-data-center/db-extract/detailAndTask?dbExtractId=${be}`).then(xe=>{vue.unref(se).init(ye=="COPY"?{...xe.data,id:null,extractType:null,incrementalField:null,status:null,taskDefined:null,taskDefinedId:null,createUser:null,createDept:null,createTime:null,updateUser:null,updateTime:null}:xe.data)}):vue.unref(se).init()})},ve=(ye,be="")=>be?ye.options.find(xe=>xe.id==be):ye.options.find(xe=>xe.id==ye.currentVal),he=ye=>{var be;if(ye.selectValue.length){const xe=ye.selectValue.at(-1);ye.currentVal=(be=ve(ye,xe))==null?void 0:be.id,pe(ye);return}ye.currentVal=""},pe=ye=>{ye.attributeList[ye.currentVal]||ie({modelId:ye.currentVal}).then(be=>{ye.attributeList[ye.currentVal]=be.data})},ge=ye=>{ce.value=ye},me=ye=>{var be;vue.unref(se).extractSql+=`select ${ye.checkAttributeList.map(xe=>xe.attributeCode).toString()} from ${(be=ve(ye))==null?void 0:be.modelCode}`},_e=async()=>{const ye={execExtract:0,dataSourceId:0,modelId:ee.modelId,projectId:re.$baseGetCurrentProjectId()},be=vue.unref(se).getValue();!be||!await re.$baseHttp.post("/api/ace-data-center/db-extract/submitDbExtract",{...ye,...be},{headers:{loading:!0}})||(re.$message.success("操作成功"),ae.value=!1,ne("success"))};return U({init:fe}),(ye,be)=>{const xe=vue.resolveComponent("aceHeader"),Ce=vue.resolveComponent("AppDrawer");return vue.openBlock(),vue.createBlock(Ce,{modelValue:vue.unref(ae),"onUpdate:modelValue":be[1]||(be[1]=$e=>vue.isRef(ae)?ae.value=$e:null),title:"数据抽取",size:"100%"},{footer:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElButton),{class:"ml-3",type:"primary",onClick:_e},{default:vue.withCtx(()=>[vue.createTextVNode("保存")]),_:1}),vue.createVNode(vue.unref(elementPlus.ElButton),{class:"ml-3",onClick:be[0]||(be[0]=$e=>ae.value=!1)},{default:vue.withCtx(()=>[vue.createTextVNode("取消")]),_:1})]),default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElContainer),{class:"h-full overflow-hidden",style:{"margin-top":"0"}},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElAside),{class:"flex flex-col pr-4 mr-5",style:{width:"320px",overflow:"hidden"}},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElButtonGroup),null,{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vue.unref(ue),$e=>(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElButton),{onClick:Ee=>ge($e.value),type:vue.unref(ce)==$e.value?"primary":"",key:$e.value},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString($e.label),1)]),_:2},1032,["onClick","type"]))),128))]),_:1}),(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vue.unref(ue),$e=>(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:$e.value},[$e.value==vue.unref(ce)&&["odsy","dwdy"].includes($e.value)?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[vue.createVNode(xe,{class:"mt-2",title:"模型选择"}),vue.createElementVNode("div",_hoisted_1$l,[vue.createElementVNode("div",_hoisted_2$g,[vue.createVNode(vue.unref(elementPlus.ElSelect),{modelValue:$e.selectValue,"onUpdate:modelValue":Ee=>$e.selectValue=Ee,onChange:()=>he($e),multiple:"","collapse-tags":"",clearable:"",placeholder:"请选择一个模型",class:"w-full"},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList($e.options,Ee=>(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElOption),{key:Ee.id,label:Ee.modelName,value:Ee.id},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","onChange"])]),$e.selectValue.length?(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElPopover),{key:0,placement:"right",width:"300",trigger:"hover"},{reference:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElBadge),{value:$e.selectValue.length,class:"ml-4"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElLink),null,{default:vue.withCtx(()=>[vue.createTextVNode("模型")]),_:1})]),_:2},1032,["value"])]),default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList($e.selectValue,Ee=>(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElTag),{key:Ee,type:$e.currentVal==Ee?"warning":"primary",onClick:Ve=>{$e.currentVal=Ee,pe($e)},style:{margin:"0 7px 7px 0",cursor:"pointer"}},{default:vue.withCtx(()=>{var Ve;return[vue.createTextVNode(vue.toDisplayString((Ve=ve($e,Ee))==null?void 0:Ve.modelName),1)]}),_:2},1032,["type","onClick"]))),128))]),_:2},1024)):vue.createCommentVNode("",!0)]),$e.currentVal?(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElTooltip),{key:0,effect:"dark",content:`${ve($e).modelName}[${ve($e).modelCode}]`,placement:"bottom"},{default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_3$f,vue.toDisplayString(`${ve($e).modelName}[${ve($e).modelCode}]`),1)]),_:2},1032,["content"])):vue.createCommentVNode("",!0),vue.createVNode(xe,{class:"mt-2 mb-2",title:"字段属性"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElLink),{disabled:$e.checkAttributeList.length==0,type:"primary",onClick:Ee=>me($e)},{default:vue.withCtx(()=>[vue.createTextVNode(" 复制select语句到编辑框 ")]),_:2},1032,["disabled","onClick"])]),_:2},1024),vue.createVNode(vue.unref(elementPlus.ElTable),{data:$e.attributeList[$e.currentVal],height:"100%",onSelectionChange:Ee=>$e.checkAttributeList=Ee},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElTableColumn),{type:"selection",width:"55"}),vue.createVNode(vue.unref(elementPlus.ElTableColumn),{prop:"attributeCode",label:"字段名称"}),vue.createVNode(vue.unref(elementPlus.ElTableColumn),{prop:"attributeComment",label:"字段描述"}),vue.createVNode(vue.unref(elementPlus.ElTableColumn),{prop:"dataType",label:"数据类型"})]),_:2},1032,["data","onSelectionChange"])],64)):vue.createCommentVNode("",!0),$e.value==vue.unref(ce)&&["dwdmb"].includes($e.value)?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:1},[vue.createVNode(xe,{class:"mt-2",title:"DWD模型信息"}),vue.createElementVNode("section",null,[vue.createElementVNode("div",null,[_hoisted_4$d,vue.createTextVNode(" "+vue.toDisplayString(vue.unref(de).modelName),1)]),vue.createElementVNode("div",null,[_hoisted_5$b,vue.createTextVNode(" "+vue.toDisplayString(vue.unref(de).modelCode),1)]),vue.createElementVNode("div",null,[_hoisted_6$9,vue.createTextVNode(" "+vue.toDisplayString(vue.unref(de).modelDesc),1)])]),vue.createVNode(vue.unref(elementPlus.ElTable),{data:$e.attributeList,height:"100%"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElTableColumn),{prop:"mapCode",label:"映射字段"}),vue.createVNode(vue.unref(elementPlus.ElTableColumn),{prop:"attributeComment",label:"名称"}),vue.createVNode(vue.unref(elementPlus.ElTableColumn),{label:"来源"},{default:vue.withCtx(({row:Ee,$index:Ve})=>[vue.createTextVNode(vue.toDisplayString(Ee.sourceModelName)+"."+vue.toDisplayString(Ee.sourceColumnName),1)]),_:1})]),_:2},1032,["data"])],64)):vue.createCommentVNode("",!0)],64))),128))]),_:1}),vue.createVNode(vue.unref(elementPlus.ElMain),null,{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$o,{ref_key:"designMainRef",ref:se,modelAttributeList:vue.unref(ue).at(-1).attributeList},null,8,["modelAttributeList"])]),_:1})]),_:1})]),_:1},8,["modelValue"])}}}),modelDbExtractDesign_vue_vue_type_style_index_0_scoped_5e352c92_lang="",modelDbExtractDesign=_export_sfc$2(_sfc_main$n,[["__scopeId","data-v-5e352c92"]]),_sfc_main$m=vue.defineComponent({__name:"taskLog",setup(te,{expose:U}){const G=vue.ref(!1),ee=vue.ref(!1),ne=vue.ref(null),re=vue.ref(""),oe=vue.reactive([]),ie=vue.reactive([]),le=vue.reactive([{label:"调度参数",prop:"args"},{label:"调度结果",prop:"code"},{label:"调度日志",prop:"msg",slot:!0},{label:"调度开始时间",prop:"execBeginTime"},{label:"调度结束时间",prop:"execEndTime"}]),ae=vue.reactive([]),se=ve=>{ve.data.forEach(he=>{})},ue=(ve,he,pe)=>{},ce=async ve=>{},de=async ve=>{G.value=!0,vue.nextTick(()=>{vue.unref(ne).getData({url:`/api/ace-api/blade-system/task-log/list?taskId=${ve}&descs=create_time`})})},fe=ve=>{ee.value=!0,re.value=ve.msg};return U({init:de}),(ve,he)=>{const pe=vue.resolveComponent("el-link"),ge=vue.resolveComponent("appList"),me=vue.resolveComponent("AppDrawer");return vue.openBlock(),vue.createBlock(me,{modelValue:vue.unref(G),"onUpdate:modelValue":he[1]||(he[1]=_e=>vue.isRef(G)?G.value=_e:null),title:"调度日志",size:1e3},{default:vue.withCtx(()=>[vue.createVNode(ge,{ref_key:"appRef",ref:ne,tableData:vue.unref(le),searchForm:vue.unref(oe),searchBtns:vue.unref(ie),formData:vue.unref(ae),onFormSuccess:ue,onSuccess:se,onBtnClick:ce},{msg:vue.withCtx(({row:_e})=>[vue.createVNode(pe,{type:"primary",onClick:ye=>fe(_e)},{default:vue.withCtx(()=>[vue.createTextVNode("查看调度日志")]),_:2},1032,["onClick"])]),_:1},8,["tableData","searchForm","searchBtns","formData"]),vue.createVNode(me,{modelValue:vue.unref(ee),"onUpdate:modelValue":he[0]||(he[0]=_e=>vue.isRef(ee)?ee.value=_e:null),title:"调度日志",size:"100%"},{default:vue.withCtx(()=>[vue.createElementVNode("pre",null,vue.toDisplayString(vue.unref(re)),1)]),_:1},8,["modelValue"])]),_:1},8,["modelValue"])}}}),_sfc_main$l=vue.defineComponent({__name:"model-db-extract",props:{model:{default:{}}},setup(te){const U=te,{proxy:G}=vue.getCurrentInstance(),ee=vue.ref(null),ne=vue.ref(null),re=vue.ref(null),oe=vue.ref(null),ie=`/api/ace-data-center/db-extract/list?modelId=${U.model.id}&projectId=${G.$baseGetCurrentProjectId()}`,le=vue.reactive([{name:"新增",key:"ADD",type:"primary",icon:"ri-add-line"}]),ae=vue.reactive([{label:"抽取方案名称",prop:"extractName"},{label:"抽取类型",prop:"extractType",props:{url:"/api/ace-api/blade-system/dict-biz/dictionary?code=extractType",label:"dictValue",value:"dictKey"}},{label:"操作",prop:"htmlButton",fixed:"right"}]),se=ce=>{ce.data.forEach(de=>{de.htmlButton=[],de.htmlButton.push({name:"编辑",key:"EDIT",type:"primary",icon:"ri-edit-line"}),de.htmlButton.push({name:"复制",key:"COPY",type:"primary",icon:"ri-file-copy-line"}),de.htmlButton.push({name:"抽取记录",key:"LOG",type:"primary",icon:"ri-file-line"}),de.taskDefinedId&&de.htmlButton.push({name:"作业调度日志",key:"TASK-LOG",type:"primary",icon:"ri-file-line"}),[1,2].includes(de.extractType)&&de.htmlButton.push({name:"抽取",key:"PUSH",type:"primary",icon:"ri-pushpin-line"}),de.htmlButton.push({name:"删除",key:"DEL",type:"danger",icon:"ri-delete-bin-6-line"})})},ue=ce=>{const{type:de,row:fe}=ce;switch(de){case"ADD":case"COPY":case"EDIT":vue.unref(oe).init(de,(fe==null?void 0:fe.id)??"");break;case"LOG":vue.unref(ee).init({businessId:fe.id,businessType:"db_extract",table:[{label:"日期",prop:"createTime"},{label:"数据总数",prop:"totalNum"},{label:"成功数",prop:"successNum"},{label:"失败数",prop:"failNum"},{label:"协同参数",prop:"collaborateValue"},{label:"操作",prop:"action",slot:!0,fixed:"right"}]});break;case"TASK-LOG":vue.unref(ne).init(fe.taskDefinedId??"");break;case"PUSH":G.$baseConfirm({content:"是否抽取?",callConfirm:async()=>{await G.$baseHttp.post(`/api/ace-data-center/db-extract/extract/${fe.id}`,{},{headers:{loading:!0}})&&G.$message.success("操作成功")}});break;case"DEL":G.$baseConfirm({content:"是否删除?",callConfirm:async()=>{await G.$baseHttp.post(`/api/ace-data-center/db-extract/removeById/${fe.id}`,{},{headers:{loading:!0}})&&(G.$message.success("操作成功"),vue.unref(re).getData())}});break}};return(ce,de)=>{const fe=vue.resolveComponent("appList");return vue.openBlock(),vue.createBlock(fe,{ref_key:"appRef",ref:re,url:ie,tableData:vue.unref(ae),searchBtns:vue.unref(le),onSuccess:se,onBtnClick:ue},{default:vue.withCtx(()=>{var ve;return[vue.createVNode(_sfc_main$t,{ref_key:"modelExtractLogRef",ref:ee},null,512),vue.createVNode(modelDbExtractDesign,{ref_key:"modelDbExtractDesignRef",ref:oe,modelId:(ve=U==null?void 0:U.model)==null?void 0:ve.id,onSuccess:de[0]||(de[0]=he=>vue.unref(re).getData())},null,8,["modelId"]),vue.createVNode(_sfc_main$m,{ref_key:"taskLogRef",ref:ne},null,512)]}),_:1},8,["tableData","searchBtns"])}}}),_hoisted_1$k={class:"flex max-h-80"},_hoisted_2$f={key:0,class:"p-2 mr-3 border border-gray-200 border-solid w-80"},_hoisted_3$e=vue.createElementVNode("div",{class:"h-px mt-2 mb-2 bg-gray-200"},null,-1),_hoisted_4$c={key:0,class:"overflow-x-hidden overflow-y-auto max-h-60"},_hoisted_5$a={key:1},_hoisted_6$8={class:"flex flex-col flex-1 overflow-hidden border border-gray-200 border-solid"},_hoisted_7$8={class:"flex justify-between p-2"},_hoisted_8$6=vue.createElementVNode("i",{class:"mr-1 ri-add-line"},null,-1),_hoisted_9$6=vue.createElementVNode("div",{class:"h-px mt-2 mb-2 bg-gray-200"},null,-1),_hoisted_10$5={class:"flex-1 h-full p-2 overflow-y-auto"},_sfc_main$k=vue.defineComponent({__name:"model-search-setting",props:{menu:{default:()=>[]},businessType:{default:"indicators"},businessId:{default:""}},emits:["success"],setup(te,{expose:U,emit:G}){const ee=te,ne=G,{proxy:re}=vue.getCurrentInstance(),{getDetail:oe}=fetch$1(re).model,{dynamicSearchForm:ie,dynamicSearchFormat:le,dynamicSearchParams:ae}=re.$aceDynamicSearch(),se=vue.computed(()=>{let he="select * from yourTable temp where ";const pe=[];return ie.value.forEach(ge=>{ge.type=="stringSingle"?pe.push(`temp.xxx like concat('%',#{query.${ge.key}},'%')`):ge.type=="numberSingle"||ge.type=="select"?pe.push(`temp.xxx = #{query.${ge.key}}`):ge.type=="numberRange"?(pe.push(`temp.xxx>= #{query.${ge.key}1}`),pe.push(`temp.xxx<= #{query.${ge.key}2}`)):ge.type=="yySingle"?pe.push(`toYear(temp.xxx)= #{query.${ge.key}}`):ge.type=="yyRange"?(pe.push(`toYear(temp.xxx)>= #{query.${ge.key}1}`),pe.push(`toYear(temp.xxx)<#{query.${ge.key}2}`)):ge.type=="yymmSingle"?pe.push(`formatDateTime(temp.xxx,'%Y-%m') = #{query.${ge.key}}`):ge.type=="yymmRange"?pe.push(`formatDateTime(temp.xxx,'%Y-%m') BETWEEN #{query.${ge.key}1} and #{query.${ge.key}2}`):ge.type=="yymmddSingle"?pe.push(`formatDateTime(temp.xxx,'%Y-%m-%d') = #{query.${ge.key}}`):ge.type=="yymmddRange"&&pe.push(`formatDateTime(temp.xxx,'%Y-%m-%d') BETWEEN #{query.${ge.key}1} and #{query.${ge.key}2}`)}),he+=pe.join(" and ")}),ue=vue.ref(ee.menu.length?ee.menu[0].value:""),ce=vue.ref(!1),de=vue.ref(!1);vue.watch(ce,async he=>{var me;if(!he)return;if(!ee.businessId){de.value=!1,ie.value=[];return}let pe;switch(de.value=!0,ie.value=[],ee.businessType){case"model":pe=await re.$baseHttp.post(`/api/ace-data-center/model/getFormJsonConfig/${ee.businessId}`);break;case"dataform":pe=await re.$baseHttp.get(`/api/ace-data-center/dataform/detail?id=${ee.businessId}`);break;case"rule":pe=await re.$baseHttp.get(`/api/ace-data-center/rule/detail?id=${ee.businessId}`);break;case"indicators":pe=await re.$baseHttp.get(`/api/ace-data-center/indicators/detail?id=${ee.businessId}`);break}const ge=JSON.parse(((me=pe==null?void 0:pe.data)==null?void 0:me.formConfJson)??"[]");["model"].includes(ee.businessType)?oe(ee.businessId).then(_e=>{ie.value=_e.data.listModelAttribute.map(ye=>({name:ye.attributeComment,key:ye.attributeCode,dataType:ye.dataType,hide:ye.hide,checked:!1,type:"",value:"",minValue:"",maxValue:"",defaultRule:"",dictId:"",options:""})),ge.forEach(ye=>{const be=vue.unref(ie).find(xe=>xe.key==ye.key);be&&(Object.keys(be).forEach(xe=>{be[xe]=ye[xe]}),be.checked=!0),["varchar","text"].includes(ye.dataType)&&!be&&(ye.type="stringSingle")}),de.value=!1}):(ie.value=ge,de.value=!1)});const fe=async()=>{let he=!1,pe=JSON.parse(JSON.stringify(vue.unref(ie)));if(["model"].includes(ee.businessType)&&(pe=pe.filter(ye=>ye.checked)),pe.forEach(ye=>{delete ye.options,(ye.key==""||ye.name==""||ye.type=="")&&(he=!0)}),he){re.$message.warning("存在字段未填写请核对");return}const ge=ae(vue.unref(ie));if(!ee.businessId){ne("success",ge),ce.value=!1;return}let me="";switch(ee.businessType){case"model":me="/api/ace-data-center/model/updateFormConfJson";break;case"dataform":me="/api/ace-data-center/dataform/submit";break;case"rule":me="/api/ace-data-center/rule/submit";break;case"indicators":me="/api/ace-data-center/indicators/updateFormConfJson";break}await re.$baseHttp.post(me,{id:ee.businessId,formConfJson:JSON.stringify(pe),paramsRemark:JSON.stringify(ge),projectId:re.$baseGetCurrentProjectId()},{headers:{loading:!0}})&&(re.$message.success("操作成功"),ne("success",ge),ce.value=!1)},ve=()=>{const he=vue.unref(ie).length;ie.value.push({key:"temp"+he,name:"字段"+he,type:"stringSingle",value:""})};return U({visible:ce,dynamicSearchForm:ie}),(he,pe)=>{const ge=vue.resolveComponent("aceDynamicSearchEdit"),me=vue.resolveComponent("AppCodemirror");return vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElPopover),{placement:"bottom",visible:vue.unref(ce),"onUpdate:visible":pe[2]||(pe[2]=_e=>vue.isRef(ce)?ce.value=_e:null),trigger:"click","popper-style":{zIndex:9999999},width:he.menu.length?"1400px":"800px"},{reference:vue.withCtx(()=>[vue.renderSlot(he.$slots,"reference")]),default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_1$k,[he.menu.length?(vue.openBlock(),vue.createElementBlock("div",_hoisted_2$f,[vue.createVNode(vue.unref(elementPlus.ElButtonGroup),null,{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(he.menu,_e=>(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElButton),{type:vue.unref(ue)==_e.value?"primary":"",key:_e.value,onClick:ye=>ue.value=_e.value},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(_e.label),1)]),_:2},1032,["type","onClick"]))),128))]),_:1}),_hoisted_3$e,(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(he.menu,_e=>(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:_e.value},[_e.value==vue.unref(ue)?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[vue.renderSlot(he.$slots,_e.value),_e.value=="tool"?(vue.openBlock(),vue.createElementBlock("div",_hoisted_4$c,[vue.createVNode(ge,{form:vue.unref(ie).filter(ye=>ye.checked||ye.checked==null),isEdit:!1},null,8,["form"])])):vue.createCommentVNode("",!0),_e.value=="json"?(vue.openBlock(),vue.createElementBlock("pre",_hoisted_5$a,vue.toDisplayString(vue.unref(ae)(vue.unref(ie))),1)):vue.createCommentVNode("",!0),_e.value=="sql"?(vue.openBlock(),vue.createBlock(me,{key:2,extensions:"sql",disabled:"",modelValue:vue.unref(se),"onUpdate:modelValue":pe[0]||(pe[0]=ye=>vue.isRef(se)?se.value=ye:null),style:{height:"250px"}},null,8,["modelValue"])):vue.createCommentVNode("",!0)],64)):vue.createCommentVNode("",!0)],64))),128))])):vue.createCommentVNode("",!0),vue.createElementVNode("div",_hoisted_6$8,[vue.createElementVNode("div",_hoisted_7$8,[vue.createElementVNode("div",null,[["model"].includes(ee.businessType)?vue.createCommentVNode("",!0):(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElLink),{key:0,type:"primary",onClick:ve},{default:vue.withCtx(()=>[_hoisted_8$6,vue.createTextVNode(" 新增参数 ")]),_:1}))]),vue.createElementVNode("div",null,[vue.createVNode(vue.unref(elementPlus.ElButton),{type:"primary",size:"small",onClick:fe},{default:vue.withCtx(()=>[vue.createTextVNode("保存")]),_:1}),vue.createVNode(vue.unref(elementPlus.ElButton),{type:"primary",class:"ml-3",size:"small",onClick:pe[1]||(pe[1]=_e=>ce.value=!1)},{default:vue.withCtx(()=>[vue.createTextVNode(" 关闭 ")]),_:1})])]),_hoisted_9$6,vue.createVNode(vue.unref(elementPlus.ElSkeleton),{loading:vue.unref(de),animated:""},{default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_10$5,[vue.createVNode(ge,{form:vue.unref(ie),businessType:ee.businessType},null,8,["form","businessType"])])]),_:1},8,["loading"])])])]),_:3},8,["visible","width"])}}}),_withScopeId$7=te=>(vue.pushScopeId("data-v-13eb82bd"),te=te(),vue.popScopeId(),te),_hoisted_1$j={class:"flex justify-end"},_hoisted_2$e=_withScopeId$7(()=>vue.createElementVNode("div",{class:"h-px mt-2 mb-2 bg-gray-200"},null,-1)),_hoisted_3$d={class:"overflow-y-auto max-h-96"},_hoisted_4$b=_withScopeId$7(()=>vue.createElementVNode("thead",null,[vue.createElementVNode("tr",null,[vue.createElementVNode("td",null,"字段名称"),vue.createElementVNode("td",null,"字段描述"),vue.createElementVNode("td",null,"数据类型"),vue.createElementVNode("td",{style:{width:"150px"}},"标题栏名称"),vue.createElementVNode("td",{style:{width:"150px"}},"列的宽度"),vue.createElementVNode("td",{style:{width:"60px"}},"固定"),vue.createElementVNode("td",{style:{width:"60px"}},"列显示"),vue.createElementVNode("td",{style:{width:"150px"}},"类型"),vue.createElementVNode("td",{style:{width:"150px"}},"额外参数"),vue.createElementVNode("td",{style:{width:"30px"}})])],-1)),_hoisted_5$9={class:"sort-target"},_hoisted_6$7=_withScopeId$7(()=>vue.createElementVNode("td",null,[vue.createElementVNode("i",{class:"text-lg cursor-move ri-mouse-line sortable-handle text-color-warning"})],-1)),_hoisted_7$7=_withScopeId$7(()=>vue.createElementVNode("i",{class:"mr-1 ri-file-cloud-line"},null,-1)),_sfc_main$j=vue.defineComponent({__name:"dynamicTableCol",props:{model:{default:{}},title:{default:"标题栏配置"}},emits:["success"],setup(te,{emit:U}){const{proxy:G}=vue.getCurrentInstance(),{getDetail:ee}=fetch$1(G).model,ne=te,re=vue.ref([]),oe=vue.ref([]),ie=vue.ref(!1),le=vue.ref(!1),ae=[{label:"文本",value:"txt"},{label:"字典",value:"dict"},{label:"地图",value:"map"},{label:"图片",value:"img"}],se=U,ue=async()=>{le.value=!0,re.value=[];const de=await ee(ne.model.id);le.value=!1,G.$baseHttp.get(`/api/ace-data-center/custom-dic/options?projectId=${G.$baseGetCurrentProjectId()}`).then(he=>{oe.value=he.data});const fe=de.data.listModelAttribute,ve=JSON.parse(de.data.columnOption||"[]");fe.forEach(he=>{const pe=ve.find(ge=>ge.prop==he.attributeCode);pe?he.columnOption=pe:he.columnOption={prop:he.attributeCode,label:he.attributeComment,labelWidth:"",fixed:!1,isShow:!["id","project_id","create_time","create_user","create_dept","_project_id","tag","_create_time","_create_user","_create_dept","_tag","_data_from"].includes(he.attributeCode),sort:"",type:"txt",ext:{}}}),fe.sort((he,pe)=>he.columnOption.sort-pe.columnOption.sort),re.value=fe},ce=async()=>{const de=[],fe=[];if(vue.unref(re).forEach((he,pe)=>{const ge=he.columnOption;ge.sort=pe+1,ge.type=="dict"?ge.ext.dictId||fe.push(`${he.attributeComment}字典值为空`):ge.ext={},de.push(ge)}),fe.length>0){G.$message.error(fe[0]);return}await G.$baseHttp.post("/api/ace-data-center/model/saveColumnOption",{id:ne.model.id,columnOption:JSON.stringify(de)})&&(G.$message.success("操作成功"),ie.value=!1,se("success"))};return(de,fe)=>(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElPopover),{placement:"bottom",visible:vue.unref(ie),"onUpdate:visible":fe[3]||(fe[3]=ve=>vue.isRef(ie)?ie.value=ve:null),trigger:"click",width:"1200px"},{reference:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElLink),{type:"warning",class:"ml-3",onClick:fe[2]||(fe[2]=ve=>ue())},{default:vue.withCtx(()=>[_hoisted_7$7,vue.createTextVNode(" "+vue.toDisplayString(de.title),1)]),_:1})]),default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_1$j,[vue.createVNode(vue.unref(elementPlus.ElButton),{type:"primary",size:"small",onClick:ce},{default:vue.withCtx(()=>[vue.createTextVNode("保存")]),_:1}),vue.createVNode(vue.unref(elementPlus.ElButton),{type:"primary",class:"ml-3",size:"small",onClick:fe[0]||(fe[0]=ve=>ie.value=!1)},{default:vue.withCtx(()=>[vue.createTextVNode("关闭")]),_:1})]),_hoisted_2$e,vue.createVNode(vue.unref(elementPlus.ElSkeleton),{loading:vue.unref(le),animated:""},{default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_3$d,[vue.createVNode(vue.unref(vueDraggablePlus.VueDraggable),{modelValue:vue.unref(re),"onUpdate:modelValue":fe[1]||(fe[1]=ve=>vue.isRef(re)?re.value=ve:null),target:".sort-target",animation:150,handle:".sortable-handle"},{default:vue.withCtx(()=>[vue.createElementVNode("table",null,[_hoisted_4$b,vue.createElementVNode("tbody",_hoisted_5$9,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vue.unref(re),ve=>(vue.openBlock(),vue.createElementBlock("tr",{key:ve.id},[vue.createElementVNode("td",null,vue.toDisplayString(ve.attributeCode),1),vue.createElementVNode("td",null,vue.toDisplayString(ve.attributeComment),1),vue.createElementVNode("td",null,vue.toDisplayString(ve.dataType),1),vue.createElementVNode("td",null,[vue.createVNode(vue.unref(elementPlus.ElInput),{size:"small",modelValue:ve.columnOption.label,"onUpdate:modelValue":he=>ve.columnOption.label=he,placeholder:"名称"},null,8,["modelValue","onUpdate:modelValue"])]),vue.createElementVNode("td",null,[vue.createVNode(vue.unref(elementPlus.ElInput),{size:"small",modelValue:ve.columnOption.labelWidth,"onUpdate:modelValue":he=>ve.columnOption.labelWidth=he,placeholder:"列的宽度"},null,8,["modelValue","onUpdate:modelValue"])]),vue.createElementVNode("td",null,[vue.createVNode(vue.unref(elementPlus.ElCheckbox),{modelValue:ve.columnOption.fixed,"onUpdate:modelValue":he=>ve.columnOption.fixed=he},null,8,["modelValue","onUpdate:modelValue"])]),vue.createElementVNode("td",null,[vue.createVNode(vue.unref(elementPlus.ElCheckbox),{modelValue:ve.columnOption.isShow,"onUpdate:modelValue":he=>ve.columnOption.isShow=he},null,8,["modelValue","onUpdate:modelValue"])]),vue.createElementVNode("td",null,[vue.createVNode(vue.unref(elementPlus.ElSelect),{teleported:!1,size:"small",class:"w-full",modelValue:ve.columnOption.type,"onUpdate:modelValue":he=>ve.columnOption.type=he,placeholder:"请选择"},{default:vue.withCtx(()=>[(vue.openBlock(),vue.createElementBlock(vue.Fragment,null,vue.renderList(ae,he=>vue.createVNode(vue.unref(elementPlus.ElOption),{key:he.value,label:he.label,value:he.value},null,8,["label","value"])),64))]),_:2},1032,["modelValue","onUpdate:modelValue"])]),vue.createElementVNode("td",null,[["dict"].includes(ve.columnOption.type)?(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElSelect),{key:0,teleported:!1,size:"small",modelValue:ve.columnOption.ext.dictId,"onUpdate:modelValue":he=>ve.columnOption.ext.dictId=he,placeholder:"字典值"},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vue.unref(oe),he=>(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElOption),{label:he.label,value:he.code,key:he.code},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue"])):vue.createCommentVNode("",!0)]),_hoisted_6$7]))),128))])])]),_:1},8,["modelValue"])])]),_:1},8,["loading"])]),_:1},8,["visible"]))}}),dynamicTableCol_vue_vue_type_style_index_0_scoped_13eb82bd_lang="",dynamicTableCol=_export_sfc$2(_sfc_main$j,[["__scopeId","data-v-13eb82bd"]]),_hoisted_1$i={class:"relative pt-2.5"},_sfc_main$i=vue.defineComponent({__name:"insert",props:{model:{default:{}},permission:{default:()=>[]}},emits:["success"],setup(te,{expose:U,emit:G}){const ee=G,ne=vue.ref(!1),re=vue.ref(null),oe=se=>{re.value=se,ne.value=!0},ie=()=>ee("success"),le=vue.inject("masterData"),ae=se=>{const ue=vue.unref(re).joinFieldMapping.split(":")[0],ce=vue.unref(re).joinFieldMapping.split(":")[1];se.dataMap[ce]=vue.unref(le)[ue]};return U({init:oe}),(se,ue)=>{const ce=vue.resolveComponent("AppDrawer");return vue.openBlock(),vue.createBlock(ce,{modelValue:vue.unref(ne),"onUpdate:modelValue":ue[0]||(ue[0]=de=>vue.isRef(ne)?ne.value=de:null),title:"从表数据编辑",size:"1200px"},{default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_1$i,[vue.createVNode(_sfc_main$G,{model:vue.unref(re),permission:se.permission,onSuccess:ie,paramsCallback:ae},null,8,["model","permission"])])]),_:1},8,["modelValue"])}}}),insert_vue_vue_type_style_index_0_scoped_9480ca97_lang="",Insert=_export_sfc$2(_sfc_main$i,[["__scopeId","data-v-9480ca97"]]),_withScopeId$6=te=>(vue.pushScopeId("data-v-0f244db2"),te=te(),vue.popScopeId(),te),_hoisted_1$h={class:"mt-2.5 mb-2.5"},_hoisted_2$d={class:"flex items-center justify-between"},_hoisted_3$c={key:0,class:"relative"},_hoisted_4$a={key:0},_hoisted_5$8=_withScopeId$6(()=>vue.createElementVNode("i",{class:"ri-add-line"},null,-1)),_sfc_main$h=vue.defineComponent({__name:"slave",props:{model:{default:{}},permission:{default:()=>[]}},setup(te){const U=te,G=vue.inject("masterData"),ee=()=>{oe.value=!1,setTimeout(()=>oe.value=!0,10)},ne=vue.ref(null),re=vue.ref(""),oe=vue.ref(!0);vue.nextTick(()=>{re.value=U.model.slaveModels[0].id});const ie=vue.computed(()=>U.model.slaveModels.find(le=>le.id==vue.unref(re)));return vue.watch(re,le=>{}),(le,ae)=>(vue.openBlock(),vue.createElementBlock(vue.Fragment,null,[vue.createElementVNode("div",_hoisted_1$h,[vue.createElementVNode("div",_hoisted_2$d,[vue.createVNode(vue.unref(elementPlus.ElButtonGroup),null,{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(le.model.slaveModels,(se,ue)=>(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElButton),{type:se.id==vue.unref(re)?"primary":"",onClick:ce=>re.value=se.id},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(se.modelName),1)]),_:2},1032,["type","onClick"]))),256))]),_:1})]),vue.unref(ie)?(vue.openBlock(),vue.createElementBlock("div",_hoisted_3$c,[vue.unref(oe)?(vue.openBlock(),vue.createElementBlock("div",_hoisted_4$a,[vue.createVNode(_sfc_main$f,{model:vue.unref(ie),permission:le.permission,masterData:vue.unref(G)},{btns:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElLink),{disabled:vue.unref(ie).publishStatus=="1",type:"primary",class:"flex items-center mr-2",onClick:ae[0]||(ae[0]=se=>vue.unref(ne).init(vue.unref(ie)))},{default:vue.withCtx(()=>[_hoisted_5$8,vue.createTextVNode(" 新增数据 ")]),_:1},8,["disabled"])]),_:1},8,["model","permission","masterData"])])):vue.createCommentVNode("",!0)])):vue.createCommentVNode("",!0)]),vue.createVNode(Insert,{ref_key:"insertRef",ref:ne,masterId:"",model:le.model,permission:le.permission,onSuccess:ee},null,8,["model","permission"])],64))}}),slave_vue_vue_type_style_index_0_scoped_0f244db2_lang="",ModelSlave=_export_sfc$2(_sfc_main$h,[["__scopeId","data-v-0f244db2"]]),_hoisted_1$g={class:"p-4"},_sfc_main$g=vue.defineComponent({__name:"view",props:{model:{default:{}},permission:{default:()=>[]}},setup(te,{expose:U}){const G=te,{loading:ee,colValue:ne,formData:re,init:oe}=useInsertForm(G.model.id),ie=vue.ref(!1),le=vue.ref({});return vue.provide("masterData",le),U({init:se=>{ie.value=!0,le.value=se,oe(se,"update")}}),(se,ue)=>{const ce=vue.resolveComponent("aceHeader"),de=vue.resolveComponent("AppForm"),fe=vue.resolveComponent("AppDrawer");return vue.openBlock(),vue.createBlock(fe,{modelValue:vue.unref(ie),"onUpdate:modelValue":ue[0]||(ue[0]=ve=>vue.isRef(ie)?ie.value=ve:null),title:"主从详情数据",size:"90%"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSkeleton),{animated:"",loading:vue.unref(ee)},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vue.unref(re),ve=>(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:ve.key},[ve.key?(vue.openBlock(),vue.createBlock(ce,{key:0,title:ve.key},null,8,["title"])):vue.createCommentVNode("",!0),vue.createElementVNode("div",_hoisted_1$g,[vue.createVNode(de,{form:ve.list,col:vue.unref(ne),disabled:""},null,8,["form","col"])])],64))),128)),vue.createVNode(ModelSlave,{model:se.model,permission:se.permission},null,8,["model","permission"])]),_:1},8,["loading"])]),_:1},8,["modelValue"])}}}),_hoisted_1$f={class:"absolute right-0 flex items-center -top-10"},_hoisted_2$c=vue.createElementVNode("i",{class:"mr-1 ri-file-upload-line"},null,-1),_hoisted_3$b=vue.createElementVNode("i",{class:"mr-1 ri-file-history-line"},null,-1),_sfc_main$f=vue.defineComponent({__name:"model-data",props:{model:{default:{}},masterData:{default:null},permission:{default:()=>[]}},setup(te){const U=te,{proxy:G}=vue.getCurrentInstance(),ee=vue.ref(null),ne=vue.ref([]),re=ae=>{ne.value=ae},oe=ae=>{const{data:se}=ae;se.forEach(ue=>{var de;(((de=U.model)==null?void 0:de.slaveModels)??[]).some(fe=>fe.parentModelId)&&ue.htmlButton.unshift({name:"详情",key:"viewBTN",type:"primary",icon:"ri-file-2-line"})})},ie=ae=>{const{type:se,row:ue}=ae;if(se=="viewBTN"){const ce={};U.model.listModelAttribute.forEach(de=>{ce[de.mapCode]=ue[de.attributeCode]}),vue.unref(ee).init(ce,"update")}},le=ae=>{const{joinFieldMapping:se}=U.model;if(U.model.joinFieldMapping&&U.masterData){const ue=se.split(":")[0],ce=se.split(":")[1];ae.params[ce]=U.masterData[ue]}return ae};return(ae,se)=>{var de,fe,ve;const ue=vue.resolveComponent("AppTable"),ce=vue.resolveComponent("aceDynamicList");return vue.openBlock(),vue.createElementBlock(vue.Fragment,null,[vue.createElementVNode("div",_hoisted_1$f,[vue.renderSlot(ae.$slots,"btns"),vue.createVNode(_sfc_main$k,{ref:"modelSearchSettingRef",menu:[],businessType:"model",businessId:(de=ae.model)==null?void 0:de.id,onSuccess:se[0]||(se[0]=he=>vue.unref(G).$refs.aceDynamicListRef.init())},{reference:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElLink),{type:"success"},{default:vue.withCtx(()=>[_hoisted_2$c,vue.createTextVNode(" 查询配置 ")]),_:1})]),attr:vue.withCtx(()=>[vue.createVNode(ue,{maxHeight:"250px",tableData:[{label:"标识符",prop:"prop"},{label:"字段名",prop:"label"}],list:vue.unref(ne)},null,8,["list"])]),_:1},8,["businessId"]),vue.createVNode(dynamicTableCol,{model:ae.model,onSuccess:se[1]||(se[1]=he=>vue.unref(G).$refs.aceDynamicListRef.init())},null,8,["model"]),vue.createVNode(vue.unref(elementPlus.ElLink),{type:"primary",class:"ml-3",onClick:se[2]||(se[2]=he=>vue.unref(G).$refs.aceDynamicListRef.handleExport())},{default:vue.withCtx(()=>[_hoisted_3$b,vue.createTextVNode(" 导出EXCEL ")]),_:1}),vue.createVNode(_sfc_main$g,{ref_key:"modelSlaveViewRef",ref:ee,model:ae.model,permission:ae.permission},null,8,["model","permission"])]),vue.createVNode(ce,{id:(fe=ae.model)==null?void 0:fe.id,title:(ve=ae.model)==null?void 0:ve.modelName,showPageIndex:!0,isDownLoad:!1,onTableHeader:re,formatParamsFunc:le,isDelete:ae.permission.includes("DATA_DEL")&&ae.model.modelLayer!="ODSVIEW"&&!ae.model.shadowModelId,isEdit:ae.model.openForm==2&&ae.permission.includes("DATA_EDIT"),ref:"aceDynamicListRef",onBtnClick:ie,onSuccessList:oe},null,8,["id","title","isDelete","isEdit"])],64)}}}),_hoisted_1$e={class:"flex flex-col h-full"},_hoisted_2$b={class:"flex flex-col w-full tab-container"},_hoisted_3$a={key:0},_hoisted_4$9={key:1},_hoisted_5$7={key:2},_sfc_main$e=vue.defineComponent({__name:"model-view",props:{type:{default:"ODS"},permission:{default:()=>[]}},setup(te,{expose:U}){const G=te,{proxy:ee}=vue.getCurrentInstance(),{getDetail:ne}=fetch$1(ee).model,re=vue.ref({}),oe=vue.ref(!1),ie=vue.ref(""),le=vue.ref([]),ae=vue.ref([{label:"字段名称",prop:"attributeCode",fixed:!0},{label:"字段描述",prop:"attributeComment"},{label:"映射字段",prop:"mapCode"},{label:"数据类型",prop:"dataType"},{label:"数据长度",prop:"dataLength"},{label:"数据标度",prop:"dataScale"},{label:"选择主键",prop:"primaryKey",props:{url:"/api/ace-api/blade-system/dict/dictionary?code=yes_no",label:"dictValue",value:"dictKey"}},{label:"唯一键",prop:"uniqueKey",slot:!0},{label:"查询字段",prop:"searchKey",slot:!0},{label:"协同字段",prop:"teamworkKey",slot:!0},{label:"字段来源",prop:"sourceModelName"},{label:"数据来源",prop:"sourceColumnName"}]),se=async he=>{oe.value=!0,ie.value="",le.value=[];const pe=await ne(he==null?void 0:he.id,!1);pe&&(re.value=pe.data,oe.value=!1,le.value.push({label:"模型数据",value:"data"}),G.type=="ODS"&&G.permission.includes("EXCEL_EXTRACT")&&!pe.data.parentModelId&&le.value.push({label:"Excel抽取",value:"fileExtract"}),G.type=="DWD"&&le.value.push({label:"抽取数据",value:"dbExtract"}),le.value.push({label:"模型信息",value:"info"}),vue.unref(re).openForm==2&&vue.unref(re).publishStatus==2&&!pe.data.parentModelId&&le.value.push({label:"录入数据",value:"insertForm"}),ie.value=vue.unref(le)[0].value)},ue=async he=>{await ee.$baseHttp.post("/api/ace-data-center/model-attribute/submit",{...he,projectId:ee.$baseGetCurrentProjectId()})&&ee.$message.success("操作成功")},ce=async he=>{await ee.$baseHttp.post("/api/ace-data-center/model-attribute/submit",{id:he.id,searchKey:he.searchKey,projectId:ee.$baseGetCurrentProjectId()})&&(ee.$message.success("操作成功"),he.searchKey=="1"&&he.indexKey=="2"&&(he.indexKey=1,de(he)))},de=async he=>{await ee.$baseHttp.post("/api/ace-data-center/model-attribute/changeIndexKey",he)&&ee.$message.success("操作成功")},fe=async he=>{he.teamworkKey=="2"&&vue.unref(re).listModelAttribute.filter(ge=>ge.id!=he.id).forEach(ge=>{ge.teamworkKey=1}),await ee.$baseHttp.post("/api/ace-data-center/model-attribute/changeTeamworkKey",he)&&ee.$message.success("操作成功")},ve=async he=>(he.loading=!0,new Promise(async pe=>{const ge=await ee.$baseHttp.post("/api/ace-data-center/model-attribute/changeRequiredStatus",{modelAttributeId:he.id,status:he.required==2?1:2});return he.loading=!1,pe(!!ge)}));return U({init:se}),(he,pe)=>{const ge=vue.resolveComponent("AppTable");return vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElSkeleton),{loading:vue.unref(oe),animated:""},{default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_1$e,[vue.createVNode(vue.unref(elementPlus.ElTabs),{modelValue:vue.unref(ie),"onUpdate:modelValue":pe[0]||(pe[0]=me=>vue.isRef(ie)?ie.value=me:null),type:"card"},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vue.unref(le),me=>(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElTabPane),{label:me.label,name:me.value,key:me.value},null,8,["label","name"]))),128))]),_:1},8,["modelValue"]),vue.createElementVNode("div",_hoisted_2$b,[vue.unref(ie)=="dbExtract"?(vue.openBlock(),vue.createBlock(_sfc_main$l,{key:0,model:vue.unref(re)},null,8,["model"])):vue.createCommentVNode("",!0),vue.unref(ie)=="fileExtract"?(vue.openBlock(),vue.createBlock(_sfc_main$q,{key:1,model:vue.unref(re)},null,8,["model"])):vue.createCommentVNode("",!0),vue.unref(ie)=="info"?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:2},[vue.createVNode(vue.unref(elementPlus.ElDescriptions),{column:2,border:!0,style:{width:"100%"}},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElDescriptionsItem),{label:"模型名称"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(vue.unref(re).modelName),1)]),_:1}),vue.createVNode(vue.unref(elementPlus.ElDescriptionsItem),{label:"模型代码"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(vue.unref(re).modelCode),1)]),_:1}),vue.createVNode(vue.unref(elementPlus.ElDescriptionsItem),{label:"模型层级"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElTag),{type:"danger"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(vue.unref(re).modelLayer),1)]),_:1})]),_:1}),vue.createVNode(vue.unref(elementPlus.ElDescriptionsItem),{label:"模型类型"},{default:vue.withCtx(()=>[vue.unref(re).modelType==1?(vue.openBlock(),vue.createElementBlock("span",_hoisted_3$a,"维度模型")):vue.createCommentVNode("",!0),vue.unref(re).modelType==2?(vue.openBlock(),vue.createElementBlock("span",_hoisted_4$9,"事实模型")):vue.createCommentVNode("",!0),vue.unref(re).modelType==3?(vue.openBlock(),vue.createElementBlock("span",_hoisted_5$7,"其他模型")):vue.createCommentVNode("",!0)]),_:1}),vue.createVNode(vue.unref(elementPlus.ElDescriptionsItem),{label:"模型描述"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(vue.unref(re).modelDesc),1)]),_:1}),vue.createVNode(vue.unref(elementPlus.ElDescriptionsItem),{label:"数据仓库"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(vue.unref(re).modelStore),1)]),_:1}),vue.createVNode(vue.unref(elementPlus.ElDescriptionsItem),{label:"发布状态"},{default:vue.withCtx(()=>[vue.unref(re).publishStatus==1?(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElTag),{key:0,type:"warning"},{default:vue.withCtx(()=>[vue.createTextVNode("未发布")]),_:1})):vue.createCommentVNode("",!0),vue.unref(re).publishStatus==2?(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElTag),{key:1,type:"success"},{default:vue.withCtx(()=>[vue.createTextVNode("已发布")]),_:1})):vue.createCommentVNode("",!0)]),_:1}),vue.createVNode(vue.unref(elementPlus.ElDescriptionsItem),{label:"表单录入数据"},{default:vue.withCtx(()=>[vue.unref(re).openForm==1?(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElTag),{key:0,type:"warning"},{default:vue.withCtx(()=>[vue.createTextVNode("未开启")]),_:1})):vue.createCommentVNode("",!0),vue.unref(re).openForm==2?(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElTag),{key:1,type:"success"},{default:vue.withCtx(()=>[vue.createTextVNode("已开启")]),_:1})):vue.createCommentVNode("",!0)]),_:1})]),_:1}),vue.createVNode(ge,{class:"mt-2.5",tableData:vue.unref(ae),list:vue.unref(re).listModelAttribute,ref:"appTable"},{uniqueKey:vue.withCtx(({row:me})=>[vue.createVNode(vue.unref(elementPlus.ElCheckbox),{"true-value":"2","false-value":"1",modelValue:me.uniqueKey,"onUpdate:modelValue":_e=>me.uniqueKey=_e,onChange:_e=>ue(me)},null,8,["modelValue","onUpdate:modelValue","onChange"])]),required:vue.withCtx(({row:me})=>[vue.createVNode(vue.unref(elementPlus.ElSwitch),{modelValue:me.required,"onUpdate:modelValue":_e=>me.required=_e,"inline-prompt":"","active-text":"是","inactive-text":"否","active-value":2,"inactive-value":1,loading:me.loading,"before-change":()=>ve(me)},null,8,["modelValue","onUpdate:modelValue","loading","before-change"])]),searchKey:vue.withCtx(({row:me})=>[vue.createVNode(vue.unref(elementPlus.ElCheckbox),{modelValue:me.searchKey,"onUpdate:modelValue":_e=>me.searchKey=_e,"true-value":"2","false-value":"1",onChange:_e=>ce(me)},null,8,["modelValue","onUpdate:modelValue","onChange"]),me.searchKey==="2"?(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElCheckbox),{key:0,modelValue:me.indexKey,"onUpdate:modelValue":_e=>me.indexKey=_e,"true-value":"2","false-value":"1",onChange:_e=>de(me)},{default:vue.withCtx(()=>[vue.createTextVNode(" 创建索引 ")]),_:2},1032,["modelValue","onUpdate:modelValue","onChange"])):vue.createCommentVNode("",!0)]),teamworkKey:vue.withCtx(({row:me})=>[vue.createVNode(vue.unref(elementPlus.ElCheckbox),{disabled:!["date","time","datetime"].includes(me.dataType),modelValue:me.teamworkKey,"onUpdate:modelValue":_e=>me.teamworkKey=_e,"true-value":"2","false-value":"1",onChange:_e=>fe(me)},null,8,["disabled","modelValue","onUpdate:modelValue","onChange"])]),_:1},8,["tableData","list"])],64)):vue.createCommentVNode("",!0),vue.unref(ie)=="data"?(vue.openBlock(),vue.createBlock(_sfc_main$f,{key:3,model:vue.unref(re),permission:he.permission},null,8,["model","permission"])):vue.createCommentVNode("",!0),vue.unref(ie)=="insertForm"?(vue.openBlock(),vue.createBlock(_sfc_main$G,{key:4,model:vue.unref(re),permission:he.permission},null,8,["model","permission"])):vue.createCommentVNode("",!0)])])]),_:1},8,["loading"])}}}),modelView_vue_vue_type_style_index_0_scoped_d55b8fbb_lang="",aceModelView=_export_sfc$2(_sfc_main$e,[["__scopeId","data-v-d55b8fbb"]]),_withScopeId$5=te=>(vue.pushScopeId("data-v-9af70b95"),te=te(),vue.popScopeId(),te),_hoisted_1$d={class:"overflow-y-auto"},_hoisted_2$a={class:"fadeIn animated"},_hoisted_3$9=_withScopeId$5(()=>vue.createElementVNode("th",null,null,-1)),_hoisted_4$8={class:"h-80"},_hoisted_5$6=["title"],_hoisted_6$6={class:"name"},_hoisted_7$6={class:"total"},_hoisted_8$5={class:"h-80"},_hoisted_9$5=["title"],_hoisted_10$4={class:"name"},_hoisted_11$3={class:"total"},_hoisted_12$2=_withScopeId$5(()=>vue.createElementVNode("br",null,null,-1)),_sfc_main$d=vue.defineComponent({__name:"matrix",setup(te,{expose:U}){const{proxy:G}=vue.getCurrentInstance(),{allModel:ee,allModelAttribute:ne,allModelMatrix:re,queryRows:oe}=fetch$1(G).model,ie=vue.ref([]),le=vue.ref([]),ae=vue.ref({}),se=vue.ref([]),ue=vue.ref([]),ce=vue.ref(!0),de=vue.reactive([{label:"字段",prop:"attributeCode"},{label:"名称",prop:"attributeComment"},{label:"类型",prop:"dataType",func:ve=>commonDataType[ve.dataType]}]);Promise.all([ee({modelLayer:"DWD",publishStatus:2}),re({modelLayer:"DWD"}),oe({modelLayer:"DWD"})]).then(ve=>{ce.value=!1,ie.value=ve[0].data,le.value=ve[1].data,ae.value=ve[2].data;const he=[];vue.unref(ie).forEach(pe=>{(pe==null?void 0:pe.modelType)==="1"?(pe.rows=vue.unref(ae)[pe.modelCode],se.value.push(pe)):(pe==null?void 0:pe.modelType)==="2"&&he.push(pe)}),he.forEach(pe=>{pe.checked=[],vue.unref(se).forEach(ge=>{pe[ge.modelCode]=vue.unref(le).some(me=>me.targetModelId===ge.id&&me.modelId===pe.id)}),pe.rows=vue.unref(ae)[pe.modelCode],ue.value.push(pe)})});const fe=ve=>{ve.attr||(ve.loading=!0,ne({modelId:ve.id}).then(he=>{ve.loading=!1,ve.attr=he.data.filter(pe=>!["project_id","create_time","create_user","create_dept","tag"].includes(pe.attributeCode))}))};return U({wdModel:ue}),(ve,he)=>{const pe=vue.resolveComponent("AppTable");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$d,[vue.createVNode(vue.unref(elementPlus.ElSkeleton),{loading:vue.unref(ce),animated:""},{default:vue.withCtx(()=>[vue.createElementVNode("table",_hoisted_2$a,[vue.createElementVNode("thead",null,[vue.createElementVNode("tr",null,[_hoisted_3$9,(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vue.unref(se),(ge,me)=>(vue.openBlock(),vue.createElementBlock("th",{key:me},[vue.createVNode(vue.unref(elementPlus.ElPopover),{trigger:"hover",onShow:_e=>fe(ge),width:500},{reference:vue.withCtx(()=>[vue.createElementVNode("div",{title:ge.modelName,class:"flex items-center justify-center"},[vue.createElementVNode("span",_hoisted_6$6,[vue.createElementVNode("label",null,vue.toDisplayString(ge.modelName),1)]),vue.createElementVNode("span",_hoisted_7$6,vue.toDisplayString(ge.rows),1)],8,_hoisted_5$6)]),default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_4$8,[vue.createVNode(pe,{tableData:vue.unref(de),list:ge.attr,loading:ge.loading},null,8,["tableData","list","loading"])])]),_:2},1032,["onShow"])]))),128))])]),vue.createElementVNode("tbody",null,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vue.unref(ue),(ge,me)=>(vue.openBlock(),vue.createElementBlock("tr",{key:me},[vue.createElementVNode("td",null,[vue.createVNode(vue.unref(elementPlus.ElPopover),{trigger:"hover",onShow:_e=>fe(ge),placement:"right",width:500},{reference:vue.withCtx(()=>[vue.createElementVNode("div",{title:ge.modelName,class:"flex items-center justify-start"},[vue.createElementVNode("span",_hoisted_10$4,[vue.createElementVNode("label",null,vue.toDisplayString(ge.modelName),1)]),vue.createElementVNode("span",_hoisted_11$3,vue.toDisplayString(ge.rows),1)],8,_hoisted_9$5)]),default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_8$5,[vue.createVNode(pe,{tableData:vue.unref(de),list:ge.attr,loading:ge.loading},null,8,["tableData","list","loading"])])]),_:2},1032,["onShow"])]),(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vue.unref(se),_e=>(vue.openBlock(),vue.createElementBlock("td",{key:_e.id},[vue.createVNode(vue.unref(elementPlus.ElCheckboxGroup),{modelValue:ge.checked,"onUpdate:modelValue":ye=>ge.checked=ye},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElCheckbox),{value:_e.id,checked:ge[_e.modelCode]},{default:vue.withCtx(()=>[_hoisted_12$2]),_:2},1032,["value","checked"])]),_:2},1032,["modelValue","onUpdate:modelValue"])]))),128))]))),128))])])]),_:1},8,["loading"])])}}}),matrix_vue_vue_type_style_index_0_scoped_9af70b95_lang="",Matrix=_export_sfc$2(_sfc_main$d,[["__scopeId","data-v-9af70b95"]]),_hoisted_1$c={class:"flex justify-end flex-1"},_hoisted_2$9=vue.createElementVNode("div",{class:"text-color-primary mr-2.5 flex items-center"},[vue.createElementVNode("i",{class:"mr-1 ri-add-circle-line"}),vue.createTextVNode(" 新建模型 ")],-1),_hoisted_3$8=vue.createElementVNode("i",{class:"mr-1 ri-add-circle-line"},null,-1),_hoisted_4$7={key:0},_hoisted_5$5=vue.createElementVNode("span",{class:"ml-2 mr-2 text-gray-300"},"|",-1),_hoisted_6$5=["onClick"],_hoisted_7$5={key:0,class:"flex items-center justify-center h-full"},_sfc_main$c=vue.defineComponent({__name:"index",props:{isCustom:{type:Boolean,default:!1},element:{default:null}},setup(te){const U=te,G=vue.inject("local"),{proxy:ee}=vue.getCurrentInstance(),{getDetail:ne,settingPublishStatus:re}=fetch$1(ee).model,oe=vue.ref([{label:"源数据",value:"ODS",rule:"VIEW_ODS",disabled:!0},{label:"源视图",value:"ODSVIEW",rule:"VIEW_ODSVIEW",disabled:!0},{label:"重构数据",value:"DWD",rule:"VIEW_DWD",disabled:!0},{label:"总线矩阵",value:"MATRIX",rule:"SAVE_MODEL_MATRIX",disabled:!0}]),ie=vue.ref([]),le=vue.ref([]),ae=vue.ref(""),se=vue.ref(U.element??{}),ue=vue.ref([]);U.isCustom&&vue.nextTick(()=>{ee.$refs.modelViewRef.init(vue.unref(se))}),fetch$1(ee).getCurrFunc("MODEL").then(he=>{vue.unref(oe).forEach(pe=>{pe.disabled=!he.data.includes(pe.rule),!vue.unref(ae)&&!pe.disabled&&(ae.value=pe.value)}),ue.value=he.data,U.isCustom||(le.value=[{label:"数据源导入模型",value:"conn",icon:"ri-add-circle-line",show:()=>he.data.includes("DB_IMPORT_MODEL")&&vue.unref(ae)!="ODSVIEW"},{label:"SQL新建模型",value:"sql",icon:"ri-add-circle-line",show:()=>["ODS","DWD"].includes(vue.unref(ae))&&he.data.includes("SQL_CREATE")},{label:"手动新建模型",value:"normal",icon:"ri-add-circle-line",show:()=>["ODS","DWD"].includes(vue.unref(ae))&&he.data.includes("DO_CREATE")},{label:"Excel生成模型",value:"excel",icon:"ri-add-circle-line",show:()=>["ODS"].includes(vue.unref(ae))&&he.data.includes("EXCEL_CREATE")},{label:"ODS抽取模型",value:"extract",icon:"ri-add-circle-line",show:()=>["DWD"].includes(vue.unref(ae))&&he.data.includes("ODS_CREATE")}],ie.value=[{label:"保存",type:"warning",value:"SAVE_MODEL_MATRIX",icon:"ri-save-line",show:()=>["MATRIX"].includes(vue.unref(ae))&&he.data.includes("SAVE_MODEL_MATRIX")},{label:"复制",value:"COPY",icon:"ri-file-copy-line",show:()=>{var pe,ge;return["ODS","DWD"].includes(vue.unref(ae))&&((pe=vue.unref(se))==null?void 0:pe.id)&&((ge=vue.unref(se))==null?void 0:ge.shadowFlag)!=2&&he.data.includes("PUBLISH")}},{label:"发布",value:"PUBLISH",icon:"ri-book-open-line",show:()=>{var pe,ge;return["ODS","DWD"].includes(vue.unref(ae))&&((pe=vue.unref(se))==null?void 0:pe.shadowFlag)!=2&&((ge=vue.unref(se))==null?void 0:ge.publishStatus)==1&&he.data.includes("PUBLISH")}},{label:"删除数据仓",value:"REMOVE_PUBLISH",type:"danger",icon:"ri-delete-bin-2-line",show:()=>{var pe,ge;return["ODS","DWD"].includes(vue.unref(ae))&&((pe=vue.unref(se))==null?void 0:pe.shadowFlag)!=2&&((ge=vue.unref(se))==null?void 0:ge.publishStatus)==2&&he.data.includes("REMOVE_PUBLISH")}},{label:"编辑",value:"EDIT",icon:"ri-file-line",show:()=>{var pe,ge;return["ODS","DWD"].includes(vue.unref(ae))&&((pe=vue.unref(se))==null?void 0:pe.shadowFlag)!=2&&((ge=vue.unref(se))==null?void 0:ge.id)&&he.data.includes("EDIT")}},{label:"删除",value:"DEL",type:"danger",icon:"ri-delete-bin-2-line",show:()=>{var pe,ge;return["ODS","DWD","ODSVIEW"].includes(vue.unref(ae))&&((pe=vue.unref(se))==null?void 0:pe.shadowFlag)!=2&&((ge=vue.unref(se))==null?void 0:ge.id)&&he.data.includes("DEL")}}])});const ce=he=>{ae.value=he,vue.nextTick(()=>{var pe;ee.$refs.menuRef.$refs.treeRef.setCurrentKey((pe=vue.unref(se))==null?void 0:pe.id)})},de=he=>{se.value=he,vue.nextTick(()=>{ee.$refs.modelViewRef.init(vue.unref(se))})},fe=async(he,pe)=>{var ge,me;switch(he){case"conn":case"sql":case"normal":case"excel":case"extract":ee.$refs[`${he}Ref`].init();break;case"DEL":ee.$baseConfirm({content:"是否确认删除?",callConfirm:async()=>{var ye;await ee.$baseHttp.post(`/ace-data-center/model/remove?ids=${(ye=vue.unref(se))==null?void 0:ye.id}`,{},{headers:{loading:!0}})&&(ee.$message.success("操作成功"),se.value={},ve())}});break;case"EDIT":{const _e=await ne((ge=vue.unref(se))==null?void 0:ge.id,!0);if(!_e)return;if(_e.data.publishStatus==1){ee.$refs.normalRef.init(_e.data);return}ee.$message.warning("模型已发布,无法编辑")}break;case"COPY":{const _e=await ne((me=vue.unref(se))==null?void 0:me.id,!0);if(!_e)return;delete _e.data.id,_e.data.listModelAttribute.forEach(ye=>{ye.id=null,ye.createUser=null,ye.createDept=null,ye.createTime=null,ye.updateUser=null,ye.updateTime=null,ye.modelId=null,ye.nanoid=nanoid()}),_e.data.slaveModels&&_e.data.slaveModels.forEach(ye=>{delete ye.id,ye.listModelAttribute.forEach(be=>{delete be.id,be.createUser=null,be.createDept=null,be.createTime=null,be.updateUser=null,be.updateTime=null,be.modelId=null,be.nanoid=nanoid()})}),ee.$refs.normalRef.init(_e.data)}break;case"PUBLISH":case"REMOVE_PUBLISH":{const _e=he==="PUBLISH"?"模型发布后,模型信息无法再进行变更操作,是否立即执行?":"确定删除数仓表,删除后模型数据将清空,是否执行?",ye=he==="PUBLISH"?"2":"1";ee.$baseConfirm({content:_e,callConfirm:async()=>{var xe;await re((xe=vue.unref(se))==null?void 0:xe.id,ye)&&(vue.unref(se).publishStatus=ye,ee.$message.success("操作成功"),ve())}})}break;case"editTag":ee.$refs.tagEditRef.init(pe);break;case"SAVE_MODEL_MATRIX":{if(!await ee.$baseHttp.post("/api/ace-data-center/model-matrix/save",{modelLayer:"DWD",projectId:ee.$baseGetCurrentProjectId(),list:ee.$refs.MatrixRef.wdModel.map(ye=>({modelId:ye.id,listTargetModelId:ye.checked}))},{headers:{loading:!0}}))return;ee.$message.success("操作成功")}break}},ve=()=>{var he;ee.$refs.menuRef.init(),(he=vue.unref(se))!=null&&he.id&&ee.$refs.modelViewRef.init(vue.unref(se))};return(he,pe)=>(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElContainer),{class:"overflow-hidden app-basic-container"},{default:vue.withCtx(()=>[he.isCustom?vue.createCommentVNode("",!0):(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElHeader),{key:0,style:{height:"auto",padding:"0"},class:"flex items-center mb-3 fadeIn animated"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElButtonGroup),null,{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vue.unref(oe),ge=>(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElButton),{type:vue.unref(ae)==ge.value?"primary":"",key:ge.value,disabled:ge.disabled,onClick:me=>ce(ge.value)},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(ge.label),1)]),_:2},1032,["type","disabled","onClick"]))),128))]),_:1}),vue.createElementVNode("div",_hoisted_1$c,[vue.unref(le).length?(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElDropdown),{key:0,onCommand:fe},{dropdown:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElDropdownMenu),null,{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vue.unref(le),ge=>(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElDropdownItem),{disabled:!ge.show(),command:ge.value},{default:vue.withCtx(()=>[_hoisted_3$8,vue.createTextVNode(" "+vue.toDisplayString(ge.label),1)]),_:2},1032,["disabled","command"]))),256))]),_:1})]),default:vue.withCtx(()=>[_hoisted_2$9]),_:1})):vue.createCommentVNode("",!0),(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vue.unref(ie),ge=>(vue.openBlock(),vue.createElementBlock(vue.Fragment,null,[ge.show()?(vue.openBlock(),vue.createElementBlock("span",_hoisted_4$7,[vue.createVNode(vue.unref(elementPlus.ElLink),{type:ge.type||"primary",onClick:me=>fe(ge.value)},{default:vue.withCtx(()=>[vue.createElementVNode("i",{class:vue.normalizeClass([ge.icon,"mr-1"])},null,2),vue.createTextVNode(" "+vue.toDisplayString(ge.label),1)]),_:2},1032,["type","onClick"]),_hoisted_5$5])):vue.createCommentVNode("",!0)],64))),256))])]),_:1})),vue.withDirectives(vue.createVNode(vue.unref(elementPlus.ElContainer),{class:"overflow-hidden"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElConfigProvider),{locale:vue.unref(G)},{default:vue.withCtx(()=>[he.isCustom?vue.createCommentVNode("",!0):(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElAside),{key:0,class:"pr-5 mr-5"},{default:vue.withCtx(()=>{var ge;return[vue.createVNode(_sfc_main$C,{ref:"menuRef",type:vue.unref(ae),onNodeClick:de,id:(ge=vue.unref(se))==null?void 0:ge.id},{default:vue.withCtx(({element:me})=>[me.modelCode&&vue.unref(ue).includes("EDIT")?(vue.openBlock(),vue.createElementBlock("i",{key:0,class:"ml-2 ri-edit-box-line",onClick:vue.withModifiers(_e=>fe("editTag",me),["stop"])},null,8,_hoisted_6$5)):vue.createCommentVNode("",!0)]),_:1},8,["type","id"])]}),_:1})),vue.createVNode(vue.unref(elementPlus.ElMain),null,{default:vue.withCtx(()=>{var ge;return[(ge=vue.unref(se))!=null&&ge.id?(vue.openBlock(),vue.createBlock(aceModelView,{key:1,ref:"modelViewRef",type:vue.unref(ae),permission:vue.unref(ue)},null,8,["type","permission"])):(vue.openBlock(),vue.createElementBlock("div",_hoisted_7$5,[vue.createVNode(vue.unref(elementPlus.ElEmpty),{description:"请在左侧选择模型"})]))]}),_:1})]),_:1},8,["locale"])]),_:1},512),[[vue.vShow,["ODS","DWD","ODSVIEW"].includes(vue.unref(ae))]]),["MATRIX"].includes(vue.unref(ae))?(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElContainer),{key:1,class:"overflow-hidden"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElMain),null,{default:vue.withCtx(()=>[vue.createVNode(Matrix,{ref:"MatrixRef"},null,512)]),_:1})]),_:1})):vue.createCommentVNode("",!0),vue.createVNode(_sfc_main$A,{ref:"connRef",onSuccess:pe[0]||(pe[0]=ge=>ve()),permission:vue.unref(ue)},null,8,["permission"]),vue.createVNode(_sfc_main$z,{ref:"sqlRef",onSuccess:pe[1]||(pe[1]=ge=>ve()),permission:vue.unref(ue)},null,8,["permission"]),vue.createVNode(_sfc_main$y,{ref:"normalRef",onSuccess:pe[2]||(pe[2]=ge=>ve()),permission:vue.unref(ue)},null,8,["permission"]),vue.createVNode(_sfc_main$x,{ref:"excelRef",onSuccess:pe[3]||(pe[3]=ge=>ve()),permission:vue.unref(ue)},null,8,["permission"]),vue.createVNode(_sfc_main$w,{ref:"extractRef",onSuccess:pe[4]||(pe[4]=ge=>ve()),permission:vue.unref(ue)},null,8,["permission"]),vue.createVNode(_sfc_main$v,{ref:"tagEditRef",permission:vue.unref(ue),onSuccess:pe[5]||(pe[5]=ge=>ve())},null,8,["permission"])]),_:1}))}});typeof window=="object"&&window.NodeList&&!NodeList.prototype.forEach&&(NodeList.prototype.forEach=Array.prototype.forEach),typeof window<"u"&&function(te){te.forEach(U=>{Object.prototype.hasOwnProperty.call(U,"append")||Object.defineProperty(U,"append",{configurable:!0,enumerable:!0,writable:!0,value(...G){const ee=document.createDocumentFragment();G.forEach(ne=>{const re=ne instanceof Node;ee.appendChild(re?ne:document.createTextNode(String(ne)))}),this.appendChild(ee)}})})}([Element.prototype,Document.prototype,DocumentFragment.prototype]);class Disposable{get disposed(){return this._disposed===!0}dispose(){this._disposed=!0}}(function(te){function U(){return(G,ee,ne)=>{const re=ne.value,oe=G.__proto__;ne.value=function(...ie){this.disposed||(re.call(this,...ie),oe.dispose.call(this))}}}te.dispose=U})(Disposable||(Disposable={}));class DisposableSet{constructor(){this.isDisposed=!1,this.items=new Set}get disposed(){return this.isDisposed}dispose(){this.isDisposed||(this.isDisposed=!0,this.items.forEach(U=>{U.dispose()}),this.items.clear())}contains(U){return this.items.has(U)}add(U){this.items.add(U)}remove(U){this.items.delete(U)}clear(){this.items.clear()}}(function(te){function U(G){const ee=new te;return G.forEach(ne=>{ee.add(ne)}),ee}te.from=U})(DisposableSet||(DisposableSet={}));function apply(te,U,G){if(G)switch(G.length){case 0:return te.call(U);case 1:return te.call(U,G[0]);case 2:return te.call(U,G[0],G[1]);case 3:return te.call(U,G[0],G[1],G[2]);case 4:return te.call(U,G[0],G[1],G[2],G[3]);case 5:return te.call(U,G[0],G[1],G[2],G[3],G[4]);case 6:return te.call(U,G[0],G[1],G[2],G[3],G[4],G[5]);default:return te.apply(U,G)}return te.call(U)}function call$1(te,U,...G){return apply(te,U,G)}function isAsyncLike(te){return typeof te=="object"&&te.then&&typeof te.then=="function"}function isAsync(te){return te!=null&&(te instanceof Promise||isAsyncLike(te))}function toAsyncBoolean(...te){const U=[];if(te.forEach(ee=>{Array.isArray(ee)?U.push(...ee):U.push(ee)}),U.some(ee=>isAsync(ee))){const ee=U.map(ne=>isAsync(ne)?ne:Promise.resolve(ne!==!1));return Promise.all(ee).then(ne=>ne.reduce((re,oe)=>oe!==!1&&re,!0))}return U.every(ee=>ee!==!1)}function toDeferredBoolean(...te){const U=toAsyncBoolean(te);return typeof U=="boolean"?Promise.resolve(U):U}function call(te,U){const G=[];for(let ee=0;ee<te.length;ee+=2){const ne=te[ee],re=te[ee+1],oe=Array.isArray(U)?U:[U],ie=apply(ne,re,oe);G.push(ie)}return toAsyncBoolean(G)}class Events{constructor(){this.listeners={}}on(U,G,ee){return G==null?this:(this.listeners[U]||(this.listeners[U]=[]),this.listeners[U].push(G,ee),this)}once(U,G,ee){const ne=(...re)=>(this.off(U,ne),call([G,ee],re));return this.on(U,ne,this)}off(U,G,ee){if(!(U||G||ee))return this.listeners={},this;const ne=this.listeners;return(U?[U]:Object.keys(ne)).forEach(oe=>{const ie=ne[oe];if(ie){if(!(G||ee)){delete ne[oe];return}for(let le=ie.length-2;le>=0;le-=2)G&&ie[le]!==G||ee&&ie[le+1]!==ee||ie.splice(le,2)}}),this}trigger(U,...G){let ee=!0;if(U!=="*"){const re=this.listeners[U];re!=null&&(ee=call([...re],G))}const ne=this.listeners["*"];return ne!=null?toAsyncBoolean([ee,call([...ne],[U,...G])]):ee}emit(U,...G){return this.trigger(U,...G)}}function applyMixins(te,...U){U.forEach(G=>{Object.getOwnPropertyNames(G.prototype).forEach(ee=>{ee!=="constructor"&&Object.defineProperty(te.prototype,ee,Object.getOwnPropertyDescriptor(G.prototype,ee))})})}const extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(te,U){te.__proto__=U}||function(te,U){for(const G in U)Object.prototype.hasOwnProperty.call(U,G)&&(te[G]=U[G])};function inherit(te,U){extendStatics(te,U);function G(){this.constructor=te}te.prototype=U===null?Object.create(U):(G.prototype=U.prototype,new G)}class A{}const isNativeClass=/^\s*class\s+/.test(`${A}`)||/^\s*class\s*\{/.test(`${class{}}`);function createClass(te,U){let G;return isNativeClass?G=class extends U{}:(G=function(){return U.apply(this,arguments)},inherit(G,U)),Object.defineProperty(G,"name",{value:te}),G}function isMaliciousProp(te){return te==="__proto__"}function getByPath(te,U,G="/"){let ee;const ne=Array.isArray(U)?U:U.split(G);if(ne.length)for(ee=te;ne.length;){const re=ne.shift();if(Object(ee)===ee&&re&&re in ee)ee=ee[re];else return}return ee}function setByPath(te,U,G,ee="/"){const ne=Array.isArray(U)?U:U.split(ee),re=ne.pop();if(re&&!isMaliciousProp(re)){let oe=te;ne.forEach(ie=>{isMaliciousProp(ie)||(oe[ie]==null&&(oe[ie]={}),oe=oe[ie])}),oe[re]=G}return te}function unsetByPath(te,U,G="/"){const ee=Array.isArray(U)?U.slice():U.split(G),ne=ee.pop();if(ne)if(ee.length>0){const re=getByPath(te,ee);re&&delete re[ne]}else delete te[ne];return te}var __decorate$u=globalThis&&globalThis.__decorate||function(te,U,G,ee){var ne=arguments.length,re=ne<3?U:ee===null?ee=Object.getOwnPropertyDescriptor(U,G):ee,oe;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")re=Reflect.decorate(te,U,G,ee);else for(var ie=te.length-1;ie>=0;ie--)(oe=te[ie])&&(re=(ne<3?oe(re):ne>3?oe(U,G,re):oe(U,G))||re);return ne>3&&re&&Object.defineProperty(U,G,re),re};class Basecoat extends Events{dispose(){this.off()}}__decorate$u([Disposable.dispose()],Basecoat.prototype,"dispose",null),function(te){te.dispose=Disposable.dispose}(Basecoat||(Basecoat={})),applyMixins(Basecoat,Disposable);const cacheStringFunction=te=>{const U=Object.create(null);return G=>U[G]||(U[G]=te(G))},kebabCase=cacheStringFunction(te=>te.replace(/\B([A-Z])/g,"-$1").toLowerCase()),pascalCase=cacheStringFunction(te=>startCase$1(camelCase$1(te)).replace(/ /g,""));function hashcode(te){let U=2166136261,G=!1,ee=te;for(let ne=0,re=ee.length;ne<re;ne+=1){let oe=ee.charCodeAt(ne);oe>127&&!G&&(ee=unescape(encodeURIComponent(ee)),oe=ee.charCodeAt(ne),G=!0),U^=oe,U+=(U<<1)+(U<<4)+(U<<7)+(U<<8)+(U<<24)}return U>>>0}function uuid(){let te="";const U="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx";for(let G=0,ee=U.length;G<ee;G+=1){const ne=U[G],re=Math.random()*16|0,oe=ne==="x"?re:ne==="y"?re&3|8:ne;te+=oe.toString(16)}return te}function getSpellingSuggestion(te,U,G){const ee=Math.min(2,Math.floor(te.length*.34));let ne=Math.floor(te.length*.4)+1,re,oe=!1;const ie=te.toLowerCase();for(const le of U){const ae=G(le);if(ae!==void 0&&Math.abs(ae.length-ie.length)<=ee){const se=ae.toLowerCase();if(se===ie){if(ae===te)continue;return le}if(oe||ae.length<3)continue;const ue=levenshteinWithMax(ie,se,ne-1);if(ue===void 0)continue;ue<3?(oe=!0,re=le):(ne=ue,re=le)}}return re}function levenshteinWithMax(te,U,G){let ee=new Array(U.length+1),ne=new Array(U.length+1);const re=G+1;for(let ie=0;ie<=U.length;ie+=1)ee[ie]=ie;for(let ie=1;ie<=te.length;ie+=1){const le=te.charCodeAt(ie-1),ae=ie>G?ie-G:1,se=U.length>G+ie?G+ie:U.length;ne[0]=ie;let ue=ie;for(let de=1;de<ae;de+=1)ne[de]=re;for(let de=ae;de<=se;de+=1){const fe=le===U.charCodeAt(de-1)?ee[de-1]:Math.min(ee[de]+1,ne[de-1]+1,ee[de-1]+2);ne[de]=fe,ue=Math.min(ue,fe)}for(let de=se+1;de<=U.length;de+=1)ne[de]=re;if(ue>G)return;const ce=ee;ee=ne,ne=ce}const oe=ee[U.length];return oe>G?void 0:oe}function isPercentage(te){return typeof te=="string"&&te.slice(-1)==="%"}function normalizePercentage(te,U){if(te==null)return 0;let G;if(typeof te=="string"){if(G=parseFloat(te),isPercentage(te)&&(G/=100,Number.isFinite(G)))return G*U}else G=te;return Number.isFinite(G)?G>0&&G<1?G*U:G:0}function normalizeSides(te){if(typeof te=="object"){let G=0,ee=0,ne=0,re=0;return te.vertical!=null&&Number.isFinite(te.vertical)&&(ee=re=te.vertical),te.horizontal!=null&&Number.isFinite(te.horizontal)&&(ne=G=te.horizontal),te.left!=null&&Number.isFinite(te.left)&&(G=te.left),te.top!=null&&Number.isFinite(te.top)&&(ee=te.top),te.right!=null&&Number.isFinite(te.right)&&(ne=te.right),te.bottom!=null&&Number.isFinite(te.bottom)&&(re=te.bottom),{top:ee,right:ne,bottom:re,left:G}}let U=0;return te!=null&&Number.isFinite(te)&&(U=te),{top:U,right:U,bottom:U,left:U}}let _IS_MAC=!1,_IS_IOS=!1,_IS_WINDOWS=!1,_IS_IE=!1,_IS_IE11=!1,_IS_EDGE=!1,_IS_NETSCAPE=!1,_IS_CHROME_APP=!1,_IS_CHROME=!1,_IS_OPERA=!1,_IS_FIREFOX=!1,_IS_SAFARI=!1,_SUPPORT_TOUCH=!1,_SUPPORT_POINTER=!1,_SUPPORT_PASSIVE=!1,_NO_FOREIGNOBJECT=!1;if(typeof navigator=="object"){const te=navigator.userAgent;_IS_MAC=te.indexOf("Macintosh")>=0,_IS_IOS=!!te.match(/(iPad|iPhone|iPod)/g),_IS_WINDOWS=te.indexOf("Windows")>=0,_IS_IE=te.indexOf("MSIE")>=0,_IS_IE11=!!te.match(/Trident\/7\./),_IS_EDGE=!!te.match(/Edge\//),_IS_NETSCAPE=te.indexOf("Mozilla/")>=0&&te.indexOf("MSIE")<0&&te.indexOf("Edge/")<0,_IS_CHROME=te.indexOf("Chrome/")>=0&&te.indexOf("Edge/")<0,_IS_OPERA=te.indexOf("Opera/")>=0||te.indexOf("OPR/")>=0,_IS_FIREFOX=te.indexOf("Firefox/")>=0,_IS_SAFARI=te.indexOf("AppleWebKit/")>=0&&te.indexOf("Chrome/")<0&&te.indexOf("Edge/")<0,typeof document=="object"&&(_NO_FOREIGNOBJECT=!document.createElementNS||`${document.createElementNS("http://www.w3.org/2000/svg","foreignObject")}`!="[object SVGForeignObjectElement]"||te.indexOf("Opera/")>=0)}if(typeof window=="object"&&(_IS_CHROME_APP=window.chrome!=null&&window.chrome.app!=null&&window.chrome.app.runtime!=null,_SUPPORT_POINTER=window.PointerEvent!=null&&!_IS_MAC),typeof document=="object"){_SUPPORT_TOUCH="ontouchstart"in document.documentElement;try{const te=Object.defineProperty({},"passive",{get(){_SUPPORT_PASSIVE=!0}}),U=document.createElement("div");U.addEventListener&&U.addEventListener("click",()=>{},te)}catch{}}var Platform;(function(te){te.IS_MAC=_IS_MAC,te.IS_IOS=_IS_IOS,te.IS_WINDOWS=_IS_WINDOWS,te.IS_IE=_IS_IE,te.IS_IE11=_IS_IE11,te.IS_EDGE=_IS_EDGE,te.IS_NETSCAPE=_IS_NETSCAPE,te.IS_CHROME_APP=_IS_CHROME_APP,te.IS_CHROME=_IS_CHROME,te.IS_OPERA=_IS_OPERA,te.IS_FIREFOX=_IS_FIREFOX,te.IS_SAFARI=_IS_SAFARI,te.SUPPORT_TOUCH=_SUPPORT_TOUCH,te.SUPPORT_POINTER=_SUPPORT_POINTER,te.SUPPORT_PASSIVE=_SUPPORT_PASSIVE,te.NO_FOREIGNOBJECT=_NO_FOREIGNOBJECT,te.SUPPORT_FOREIGNOBJECT=!te.NO_FOREIGNOBJECT})(Platform||(Platform={})),function(te){function U(){const re=window.module;return re!=null&&re.hot!=null&&re.hot.status!=null?re.hot.status():"unkonwn"}te.getHMRStatus=U;function G(){return U()==="apply"}te.isApplyingHMR=G;const ee={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"};function ne(re){const oe=document.createElement(ee[re]||"div"),ie=`on${re}`;let le=ie in oe;return le||(oe.setAttribute(ie,"return;"),le=typeof oe[ie]=="function"),le}te.isEventSupported=ne}(Platform||(Platform={}));const rclass=/[\t\r\n\f]/g,rnotwhite=/\S+/g,fillSpaces=te=>` ${te} `;function getClass(te){return te&&te.getAttribute&&te.getAttribute("class")||""}function hasClass(te,U){if(te==null||U==null)return!1;const G=fillSpaces(getClass(te)),ee=fillSpaces(U);return te.nodeType===1?G.replace(rclass," ").includes(ee):!1}function addClass(te,U){if(!(te==null||U==null)){if(typeof U=="function")return addClass(te,U(getClass(te)));if(typeof U=="string"&&te.nodeType===1){const G=U.match(rnotwhite)||[],ee=fillSpaces(getClass(te)).replace(rclass," ");let ne=G.reduce((re,oe)=>re.indexOf(fillSpaces(oe))<0?`${re}${oe} `:re,ee);ne=ne.trim(),ee!==ne&&te.setAttribute("class",ne)}}}function removeClass(te,U){if(te!=null){if(typeof U=="function")return removeClass(te,U(getClass(te)));if((!U||typeof U=="string")&&te.nodeType===1){const G=(U||"").match(rnotwhite)||[],ee=fillSpaces(getClass(te)).replace(rclass," ");let ne=G.reduce((re,oe)=>{const ie=fillSpaces(oe);return re.indexOf(ie)>-1?re.replace(ie," "):re},ee);ne=U?ne.trim():"",ee!==ne&&te.setAttribute("class",ne)}}}function toggleClass(te,U,G){if(!(te==null||U==null)){if(G!=null&&typeof U=="string"){G?addClass(te,U):removeClass(te,U);return}if(typeof U=="function")return toggleClass(te,U(getClass(te),G),G);typeof U=="string"&&(U.match(rnotwhite)||[]).forEach(ne=>{hasClass(te,ne)?removeClass(te,ne):addClass(te,ne)})}}let idCounter=0;function uniqueId(){return idCounter+=1,`v${idCounter}`}function ensureId(te){return(te.id==null||te.id==="")&&(te.id=uniqueId()),te.id}function isSVGGraphicsElement(te){return te==null?!1:typeof te.getScreenCTM=="function"&&te instanceof SVGElement}const ns={svg:"http://www.w3.org/2000/svg",xmlns:"http://www.w3.org/2000/xmlns/",xml:"http://www.w3.org/XML/1998/namespace",xlink:"http://www.w3.org/1999/xlink",xhtml:"http://www.w3.org/1999/xhtml"},svgVersion="1.1";function createElement(te,U=document){return U.createElement(te)}function createElementNS(te,U=ns.xhtml,G=document){return G.createElementNS(U,te)}function createSvgElement(te,U=document){return createElementNS(te,ns.svg,U)}function createSvgDocument(te){if(te){const G=`<svg xmlns="${ns.svg}" xmlns:xlink="${ns.xlink}" version="${svgVersion}">${te}</svg>`,{documentElement:ee}=parseXML(G,{async:!1});return ee}const U=document.createElementNS(ns.svg,"svg");return U.setAttributeNS(ns.xmlns,"xmlns:xlink",ns.xlink),U.setAttribute("version",svgVersion),U}function parseXML(te,U={}){let G;try{const ee=new DOMParser;if(U.async!=null){const ne=ee;ne.async=U.async}G=ee.parseFromString(te,U.mimeType||"text/xml")}catch{G=void 0}if(!G||G.getElementsByTagName("parsererror").length)throw new Error(`Invalid XML: ${te}`);return G}function tagName(te,U=!0){const G=te.nodeName;return U?G.toLowerCase():G.toUpperCase()}function index$1(te){let U=0,G=te.previousSibling;for(;G;)G.nodeType===1&&(U+=1),G=G.previousSibling;return U}function find(te,U){return te.querySelectorAll(U)}function findOne(te,U){return te.querySelector(U)}function findParentByClass(te,U,G){const ee=te.ownerSVGElement;let ne=te.parentNode;for(;ne&&ne!==G&&ne!==ee;){if(hasClass(ne,U))return ne;ne=ne.parentNode}return null}function contains(te,U){const G=U&&U.parentNode;return te===G||!!(G&&G.nodeType===1&&te.compareDocumentPosition(G)&16)}function remove(te){te&&(Array.isArray(te)?te:[te]).forEach(G=>{G.parentNode&&G.parentNode.removeChild(G)})}function empty(te){for(;te.firstChild;)te.removeChild(te.firstChild)}function append(te,U){(Array.isArray(U)?U:[U]).forEach(ee=>{ee!=null&&te.appendChild(ee)})}function prepend(te,U){const G=te.firstChild;return G?before(G,U):append(te,U)}function before(te,U){const G=te.parentNode;G&&(Array.isArray(U)?U:[U]).forEach(ne=>{ne!=null&&G.insertBefore(ne,te)})}function after(te,U){const G=te.parentNode;G&&(Array.isArray(U)?U:[U]).forEach(ne=>{ne!=null&&G.insertBefore(ne,te.nextSibling)})}function appendTo(te,U){U!=null&&U.appendChild(te)}function isHTMLElement(te){try{return te instanceof HTMLElement}catch{return typeof te=="object"&&te.nodeType===1&&typeof te.style=="object"&&typeof te.ownerDocument=="object"}}function children(te,U){const G=[];let ee=te.firstChild;for(;ee;ee=ee.nextSibling)ee.nodeType===1&&(!U||hasClass(ee,U))&&G.push(ee);return G}const CASE_SENSITIVE_ATTR=["viewBox","attributeName","attributeType","repeatCount","textLength","lengthAdjust","gradientUnits"];function getAttribute(te,U){return te.getAttribute(U)}function removeAttribute(te,U){const G=qualifyAttr(U);G.ns?te.hasAttributeNS(G.ns,G.local)&&te.removeAttributeNS(G.ns,G.local):te.hasAttribute(U)&&te.removeAttribute(U)}function setAttribute(te,U,G){if(G==null)return removeAttribute(te,U);const ee=qualifyAttr(U);ee.ns&&typeof G=="string"?te.setAttributeNS(ee.ns,U,G):U==="id"?te.id=`${G}`:te.setAttribute(U,`${G}`)}function setAttributes(te,U){Object.keys(U).forEach(G=>{setAttribute(te,G,U[G])})}function attr(te,U,G){if(U==null){const ee=te.attributes,ne={};for(let re=0;re<ee.length;re+=1)ne[ee[re].name]=ee[re].value;return ne}if(typeof U=="string"&&G===void 0)return te.getAttribute(U);typeof U=="object"?setAttributes(te,U):setAttribute(te,U,G)}function qualifyAttr(te){if(te.indexOf(":")!==-1){const U=te.split(":");return{ns:ns[U[0]],local:U[1]}}return{ns:null,local:te}}function kebablizeAttrs(te){const U={};return Object.keys(te).forEach(G=>{const ee=CASE_SENSITIVE_ATTR.includes(G)?G:kebabCase(G);U[ee]=te[G]}),U}function styleToObject(te){const U={};return te.split(";").forEach(ee=>{const ne=ee.trim();if(ne){const re=ne.split("=");re.length&&(U[re[0].trim()]=re[1]?re[1].trim():"")}}),U}function mergeAttrs(te,U){return Object.keys(U).forEach(G=>{if(G==="class")te[G]=te[G]?`${te[G]} ${U[G]}`:U[G];else if(G==="style"){const ee=typeof te[G]=="object",ne=typeof U[G]=="object";let re,oe;ee&&ne?(re=te[G],oe=U[G]):ee?(re=te[G],oe=styleToObject(U[G])):ne?(re=styleToObject(te[G]),oe=U[G]):(re=styleToObject(te[G]),oe=styleToObject(U[G])),te[G]=mergeAttrs(re,oe)}else te[G]=U[G]}),te}function annotate(te,U,G={}){const ee=G.offset||0,ne=[],re=[];let oe,ie,le=null;for(let ae=0;ae<te.length;ae+=1){oe=re[ae]=te[ae];for(let se=0,ue=U.length;se<ue;se+=1){const ce=U[se],de=ce.start+ee,fe=ce.end+ee;ae>=de&&ae<fe&&(typeof oe=="string"?oe=re[ae]={t:te[ae],attrs:ce.attrs}:oe.attrs=mergeAttrs(mergeAttrs({},oe.attrs),ce.attrs),G.includeAnnotationIndices&&(oe.annotations==null&&(oe.annotations=[]),oe.annotations.push(se)))}ie=re[ae-1],ie?isObject(oe)&&isObject(ie)?(le=le,JSON.stringify(oe.attrs)===JSON.stringify(ie.attrs)?le.t+=oe.t:(ne.push(le),le=oe)):isObject(oe)||isObject(ie)?(le=le,ne.push(le),le=oe):le=(le||"")+oe:le=oe}return le!=null&&ne.push(le),ne}function sanitize(te){return te.replace(/ /g," ")}var DataUri;(function(te){function U(ae){const se="data:";return ae.substr(0,se.length)===se}te.isDataUrl=U;function G(ae,se){if(!ae||U(ae)){setTimeout(()=>se(null,ae));return}const ue=()=>{se(new Error(`Failed to load image: ${ae}`))},ce=window.FileReader?fe=>{if(fe.status===200){const ve=new FileReader;ve.onload=he=>{const pe=he.target.result;se(null,pe)},ve.onerror=ue,ve.readAsDataURL(fe.response)}else ue()}:fe=>{const ve=he=>{const ge=[];for(let me=0;me<he.length;me+=32768)ge.push(String.fromCharCode.apply(null,he.subarray(me,me+32768)));return ge.join("")};if(fe.status===200){let he=ae.split(".").pop()||"png";he==="svg"&&(he="svg+xml");const pe=`data:image/${he};base64,`,ge=new Uint8Array(fe.response),me=pe+btoa(ve(ge));se(null,me)}else ue()},de=new XMLHttpRequest;de.responseType=window.FileReader?"blob":"arraybuffer",de.open("GET",ae,!0),de.addEventListener("error",ue),de.addEventListener("load",()=>ce(de)),de.send()}te.imageToDataUri=G;function ee(ae){let se=ae.replace(/\s/g,"");se=decodeURIComponent(se);const ue=se.indexOf(","),ce=se.slice(0,ue),de=ce.split(":")[1].split(";")[0],fe=se.slice(ue+1);let ve;ce.indexOf("base64")>=0?ve=atob(fe):ve=unescape(encodeURIComponent(fe));const he=new Uint8Array(ve.length);for(let pe=0;pe<ve.length;pe+=1)he[pe]=ve.charCodeAt(pe);return new Blob([he],{type:de})}te.dataUriToBlob=ee;function ne(ae,se){const ue=window.navigator.msSaveBlob;if(ue)ue(ae,se);else{const ce=window.URL.createObjectURL(ae),de=document.createElement("a");de.href=ce,de.download=se,document.body.appendChild(de),de.click(),document.body.removeChild(de),window.URL.revokeObjectURL(ce)}}te.downloadBlob=ne;function re(ae,se){const ue=ee(ae);ne(ue,se)}te.downloadDataUri=re;function oe(ae){const se=ae.match(/<svg[^>]*viewBox\s*=\s*(["']?)(.+?)\1[^>]*>/i);return se&&se[2]?se[2].replace(/\s+/," ").split(" "):null}function ie(ae){const se=parseFloat(ae);return Number.isNaN(se)?null:se}function le(ae,se={}){let ue=null;const ce=me=>(ue==null&&(ue=oe(ae)),ue!=null?ie(ue[me]):null),de=me=>{const _e=ae.match(me);return _e&&_e[2]?ie(_e[2]):null};let fe=se.width;if(fe==null&&(fe=de(/<svg[^>]*width\s*=\s*(["']?)(.+?)\1[^>]*>/i)),fe==null&&(fe=ce(2)),fe==null)throw new Error("Can not parse width from svg string");let ve=se.height;if(ve==null&&(ve=de(/<svg[^>]*height\s*=\s*(["']?)(.+?)\1[^>]*>/i)),ve==null&&(ve=ce(3)),ve==null)throw new Error("Can not parse height from svg string");return`data:image/svg+xml,${encodeURIComponent(ae).replace(/'/g,"%27").replace(/"/g,"%22")}`}te.svgToDataUrl=le})(DataUri||(DataUri={}));let millimeterSize;const supportedUnits={px(te){return te},mm(te){return millimeterSize*te},cm(te){return millimeterSize*te*10},in(te){return millimeterSize*te*25.4},pt(te){return millimeterSize*(25.4*te/72)},pc(te){return millimeterSize*(25.4*te/6)}};var Unit;(function(te){function U(ee,ne,re){const oe=document.createElement("div"),ie=oe.style;ie.display="inline-block",ie.position="absolute",ie.left="-15000px",ie.top="-15000px",ie.width=ee+(re||"px"),ie.height=ne+(re||"px"),document.body.appendChild(oe);const le=oe.getBoundingClientRect(),ae={width:le.width||0,height:le.height||0};return document.body.removeChild(oe),ae}te.measure=U;function G(ee,ne){millimeterSize==null&&(millimeterSize=U("1","1","mm").width);const re=ne?supportedUnits[ne]:null;return re?re(ee):ee}te.toPx=G})(Unit||(Unit={}));const hyphenPattern=/-(.)/g;function camelize(te){return te.replace(hyphenPattern,(U,G)=>G.toUpperCase())}const memoized={},prefixes=["webkit","ms","moz","o"],testStyle=typeof document<"u"?document.createElement("div").style:{};function getWithPrefix(te){for(let U=0;U<prefixes.length;U+=1){const G=prefixes[U]+te;if(G in testStyle)return G}return null}function getVendorPrefixedName(te){const U=camelize(te);if(memoized[U]==null){const G=U.charAt(0).toUpperCase()+U.slice(1);memoized[U]=U in testStyle?U:getWithPrefix(G)}return memoized[U]}function getComputedStyle$1(te,U){const G=te.ownerDocument&&te.ownerDocument.defaultView&&te.ownerDocument.defaultView.opener?te.ownerDocument.defaultView.getComputedStyle(te,null):window.getComputedStyle(te,null);return G&&U?G.getPropertyValue(U)||G[U]:G}const numericProps={animationIterationCount:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0};function isCSSVariable(te){return/^--/.test(te)}function computeStyle(te,U,G){const ee=window.getComputedStyle(te,null);return G?ee.getPropertyValue(U)||void 0:ee[U]||te.style[U]}function getSuffixedValue(te,U){return!numericProps[te]&&typeof U=="number"?`${U}px`:U}function css(te,U,G){if(typeof U=="string"){const ee=isCSSVariable(U);if(ee||(U=getVendorPrefixedName(U)),G===void 0)return computeStyle(te,U,ee);ee||(G=getSuffixedValue(U,G));const ne=te.style;ee?ne.setProperty(U,G):ne[U]=G;return}for(const ee in U)css(te,ee,U[ee])}const dataset=new WeakMap;function getData(te,U){const G=camelCase$1(U),ee=dataset.get(te);if(ee)return ee[G]}function setData(te,U,G){const ee=camelCase$1(U),ne=dataset.get(te);ne?ne[ee]=G:dataset.set(te,{[ee]:G})}function data(te,U,G){if(!U){const ee={};return Object.keys(dataset).forEach(ne=>{ee[ne]=getData(te,ne)}),ee}if(typeof U=="string"){if(G===void 0)return getData(te,U);setData(te,U,G);return}for(const ee in U)data(te,ee,U[ee])}const propMap={class:"className",contenteditable:"contentEditable",for:"htmlFor",readonly:"readOnly",maxlength:"maxLength",tabindex:"tabIndex",colspan:"colSpan",rowspan:"rowSpan",usemap:"useMap"};function prop(te,U,G){if(U){if(typeof U=="string"){if(U=propMap[U]||U,arguments.length<3)return te[U];te[U]=G;return}for(const ee in U)prop(te,ee,U[ee])}}class Vector{get[Symbol.toStringTag](){return Vector.toStringTag}get type(){return this.node.nodeName}get id(){return this.node.id}set id(U){this.node.id=U}constructor(U,G,ee){if(!U)throw new TypeError("Invalid element to create vector");let ne;if(Vector.isVector(U))ne=U.node;else if(typeof U=="string")if(U.toLowerCase()==="svg")ne=createSvgDocument();else if(U[0]==="<"){const re=createSvgDocument(U);ne=document.importNode(re.firstChild,!0)}else ne=document.createElementNS(ns.svg,U);else ne=U;this.node=ne,G&&this.setAttributes(G),ee&&this.append(ee)}transform(U,G){return U==null?transform(this.node):(transform(this.node,U,G),this)}translate(U,G=0,ee={}){return U==null?translate(this.node):(translate(this.node,U,G,ee),this)}rotate(U,G,ee,ne={}){return U==null?rotate$1(this.node):(rotate$1(this.node,U,G,ee,ne),this)}scale(U,G){return U==null?scale(this.node):(scale(this.node,U,G),this)}getTransformToElement(U){const G=Vector.toNode(U);return getTransformToElement(this.node,G)}removeAttribute(U){return removeAttribute(this.node,U),this}getAttribute(U){return getAttribute(this.node,U)}setAttribute(U,G){return setAttribute(this.node,U,G),this}setAttributes(U){return setAttributes(this.node,U),this}attr(U,G){return U==null?attr(this.node):typeof U=="string"&&G===void 0?attr(this.node,U):(typeof U=="object"?attr(this.node,U):attr(this.node,U,G),this)}svg(){return this.node instanceof SVGSVGElement?this:Vector.create(this.node.ownerSVGElement)}defs(){const U=this.svg()||this,G=U.node.getElementsByTagName("defs")[0];return G?Vector.create(G):Vector.create("defs").appendTo(U)}text(U,G={}){return text$1(this.node,U,G),this}tagName(){return tagName(this.node)}clone(){return Vector.create(this.node.cloneNode(!0))}remove(){return remove(this.node),this}empty(){return empty(this.node),this}append(U){return append(this.node,Vector.toNodes(U)),this}appendTo(U){return appendTo(this.node,Vector.isVector(U)?U.node:U),this}prepend(U){return prepend(this.node,Vector.toNodes(U)),this}before(U){return before(this.node,Vector.toNodes(U)),this}replace(U){return this.node.parentNode&&this.node.parentNode.replaceChild(Vector.toNode(U),this.node),Vector.create(U)}first(){return this.node.firstChild?Vector.create(this.node.firstChild):null}last(){return this.node.lastChild?Vector.create(this.node.lastChild):null}get(U){const G=this.node.childNodes[U];return G?Vector.create(G):null}indexOf(U){return Array.prototype.slice.call(this.node.childNodes).indexOf(Vector.toNode(U))}find(U){const G=[],ee=find(this.node,U);if(ee)for(let ne=0,re=ee.length;ne<re;ne+=1)G.push(Vector.create(ee[ne]));return G}findOne(U){const G=findOne(this.node,U);return G?Vector.create(G):null}findParentByClass(U,G){const ee=findParentByClass(this.node,U,G);return ee?Vector.create(ee):null}matches(U){const G=this.node;this.node.matches;const ee=G.matches||G.matchesSelector||G.msMatchesSelector||G.mozMatchesSelector||G.webkitMatchesSelector||G.oMatchesSelector||null;return ee&&ee.call(G,U)}contains(U){return contains(this.node,Vector.isVector(U)?U.node:U)}wrap(U){const G=Vector.create(U),ee=this.node.parentNode;return ee!=null&&ee.insertBefore(G.node,this.node),G.append(this)}parent(U){let G=this;if(G.node.parentNode==null)return null;if(G=Vector.create(G.node.parentNode),U==null)return G;do if(typeof U=="string"?G.matches(U):G instanceof U)return G;while(G=Vector.create(G.node.parentNode));return G}children(){const U=this.node.childNodes,G=[];for(let ee=0;ee<U.length;ee+=1)U[ee].nodeType===1&&G.push(Vector.create(U[ee]));return G}eachChild(U,G){const ee=this.children();for(let ne=0,re=ee.length;ne<re;ne+=1)U.call(ee[ne],ee[ne],ne,ee),G&&ee[ne].eachChild(U,G);return this}index(){return index$1(this.node)}hasClass(U){return hasClass(this.node,U)}addClass(U){return addClass(this.node,U),this}removeClass(U){return removeClass(this.node,U),this}toggleClass(U,G){return toggleClass(this.node,U,G),this}toLocalPoint(U,G){return toLocalPoint(this.node,U,G)}sample(U=1){return this.node instanceof SVGPathElement?sample(this.node,U):[]}toPath(){return Vector.create(toPath(this.node))}toPathData(){return toPathData(this.node)}}(function(te){te.toStringTag=`X6.${te.name}`;function U(oe){if(oe==null)return!1;if(oe instanceof te)return!0;const ie=oe[Symbol.toStringTag],le=oe;return(ie==null||ie===te.toStringTag)&&le.node instanceof SVGElement&&typeof le.sample=="function"&&typeof le.toPath=="function"}te.isVector=U;function G(oe,ie,le){return new te(oe,ie,le)}te.create=G;function ee(oe){if(oe[0]==="<"){const ie=createSvgDocument(oe),le=[];for(let ae=0,se=ie.childNodes.length;ae<se;ae+=1){const ue=ie.childNodes[ae];le.push(G(document.importNode(ue,!0)))}return le}return[G(oe)]}te.createVectors=ee;function ne(oe){return U(oe)?oe.node:oe}te.toNode=ne;function re(oe){return Array.isArray(oe)?oe.map(ie=>ne(ie)):[ne(oe)]}te.toNodes=re})(Vector||(Vector={}));function createTextPathNode(te,U){const G=Vector.create(U),ee=Vector.create("textPath"),ne=te.d;if(ne&&te["xlink:href"]===void 0){const re=Vector.create("path").attr("d",ne).appendTo(G.defs());ee.attr("xlink:href",`#${re.id}`)}return typeof te=="object"&&ee.attr(te),ee.node}function annotateTextLine(te,U,G){const ee=G.eol,ne=G.baseSize,re=G.lineHeight;let oe=0,ie;const le={},ae=U.length-1;for(let se=0;se<=ae;se+=1){let ue=U[se],ce=null;if(typeof ue=="object"){const de=ue.attrs,fe=Vector.create("tspan",de);ie=fe.node;let ve=ue.t;ee&&se===ae&&(ve+=ee),ie.textContent=ve;const he=de.class;he&&fe.addClass(he),G.includeAnnotationIndices&&fe.attr("annotations",ue.annotations.join(",")),ce=parseFloat(de["font-size"]),ce===void 0&&(ce=ne),ce&&ce>oe&&(oe=ce)}else ee&&se===ae&&(ue+=ee),ie=document.createTextNode(ue||" "),ne&&ne>oe&&(oe=ne);te.appendChild(ie)}return oe&&(le.maxFontSize=oe),re?le.lineHeight=re:oe&&(le.lineHeight=oe*1.2),le}const emRegex=/em$/;function emToPx(te,U){const G=parseFloat(te);return emRegex.test(te)?G*U:G}function calculateDY(te,U,G,ee){if(!Array.isArray(U))return 0;const ne=U.length;if(!ne)return 0;let re=U[0];const oe=emToPx(re.maxFontSize,G)||G;let ie=0;const le=emToPx(ee,G);for(let ue=1;ue<ne;ue+=1){re=U[ue];const ce=emToPx(re.lineHeight,G)||le;ie+=ce}const ae=emToPx(re.maxFontSize,G)||G;let se;switch(te){case"middle":se=oe/2-.15*ae-ie/2;break;case"bottom":se=-(.25*ae)-ie;break;case"top":default:se=.8*oe;break}return se}function text$1(te,U,G={}){U=sanitize(U);const ee=G.eol;let ne=G.textPath;const re=G.textVerticalAnchor,oe=re==="middle"||re==="bottom"||re==="top";let ie=G.x;ie===void 0&&(ie=te.getAttribute("x")||0);const le=G.includeAnnotationIndices;let ae=G.annotations;ae&&!Array.isArray(ae)&&(ae=[ae]);const se=G.lineHeight,ue=se==="auto",ce=ue?"1.5em":se||"1em";let de=!0;const fe=te.childNodes;if(fe.length===1){const $e=fe[0];$e&&$e.tagName.toUpperCase()==="TITLE"&&(de=!1)}de&&empty(te),attr(te,{"xml:space":"preserve",display:U||G.displayEmpty?null:"none"});const ve=attr(te,"font-size");let he=parseFloat(ve);he||(he=16,(oe||ae)&&!ve&&attr(te,"font-size",`${he}`));let pe;ne?(typeof ne=="string"&&(ne={d:ne}),pe=createTextPathNode(ne,te)):pe=document.createDocumentFragment();let ge,me=0,_e;const ye=U.split(`
|
|
904
904
|
`),be=[],xe=ye.length-1;for(let $e=0;$e<=xe;$e+=1){ge=ce;let Ee="v-line";const Ve=createSvgElement("tspan");let Ne,Se=ye[$e];if(Se)if(ae){const Pe=annotate(Se,ae,{offset:-me,includeAnnotationIndices:le});Ne=annotateTextLine(Ve,Pe,{eol:$e!==xe&&ee,baseSize:he,lineHeight:ue?null:ce,includeAnnotationIndices:le});const we=Ne.lineHeight;we&&ue&&$e!==0&&(ge=we),$e===0&&(_e=Ne.maxFontSize*.8)}else ee&&$e!==xe&&(Se+=ee),Ve.textContent=Se;else{Ve.textContent="-",Ee+=" v-empty-line";const Pe=Ve.style;Pe.fillOpacity=0,Pe.strokeOpacity=0,ae&&(Ne={})}Ne&&be.push(Ne),$e>0&&Ve.setAttribute("dy",ge),($e>0||ne)&&Ve.setAttribute("x",ie),Ve.className.baseVal=Ee,pe.appendChild(Ve),me+=Se.length+1}if(oe)if(ae)ge=calculateDY(re,be,he,ce);else if(re==="top")ge="0.8em";else{let $e;switch(xe>0?($e=parseFloat(ce)||1,$e*=xe,emRegex.test(ce)||($e/=he)):$e=0,re){case"middle":ge=`${.3-$e/2}em`;break;case"bottom":ge=`${-$e-.3}em`;break}}else re===0?ge="0em":re?ge=re:(ge=0,te.getAttribute("y")==null&&te.setAttribute("y",`${_e||"0.8em"}`));pe.firstChild.setAttribute("dy",ge),te.appendChild(pe)}function measureText(te,U={}){const G=document.createElement("canvas").getContext("2d");if(!te)return{width:0};const ee=[],ne=U["font-size"]?`${parseFloat(U["font-size"])}px`:"14px";return ee.push(U["font-style"]||"normal"),ee.push(U["font-variant"]||"normal"),ee.push(U["font-weight"]||400),ee.push(ne),ee.push(U["font-family"]||"sans-serif"),G.font=ee.join(" "),G.measureText(te)}function splitTextByLength(te,U,G,ee={}){if(U>=G)return[te,""];const ne=te.length,re={};let oe=Math.round(U/G*ne-1);for(oe<0&&(oe=0);oe>=0&&oe<ne;){const ie=te.slice(0,oe),le=re[ie]||measureText(ie,ee).width,ae=te.slice(0,oe+1),se=re[ae]||measureText(ae,ee).width;if(re[ie]=le,re[ae]=se,le>U)oe-=1;else if(se<=U)oe+=1;else break}return[te.slice(0,oe),te.slice(oe)]}function breakText(te,U,G={},ee={}){const ne=U.width,re=U.height,oe=ee.eol||`
|
|
905
905
|
`,ie=G.fontSize||14,le=G.lineHeight?parseFloat(G.lineHeight):Math.ceil(ie*1.4),ae=Math.floor(re/le);if(te.indexOf(oe)>-1){const he=uuid(),pe=[];return te.split(oe).map(ge=>{const me=breakText(ge,Object.assign(Object.assign({},U),{height:Number.MAX_SAFE_INTEGER}),G,Object.assign(Object.assign({},ee),{eol:he}));me&&pe.push(...me.split(he))}),pe.slice(0,ae).join(oe)}const{width:se}=measureText(te,G);if(se<ne)return te;const ue=[];let ce=te,de=se,fe=ee.ellipsis,ve=0;fe&&(typeof fe!="string"&&(fe="…"),ve=measureText(fe,G).width);for(let he=0;he<ae;he+=1)if(de>ne)if(he===ae-1){const[ge]=splitTextByLength(ce,ne-ve,de,G);ue.push(fe?`${ge}${fe}`:ge)}else{const[ge,me]=splitTextByLength(ce,ne,de,G);ue.push(ge),ce=me,de=measureText(ce,G).width}else{ue.push(ce);break}return ue.join(oe)}const KAPPA=.551784;function getNumbericAttribute(te,U,G=NaN){const ee=te.getAttribute(U);if(ee==null)return G;const ne=parseFloat(ee);return Number.isNaN(ne)?G:ne}function sample(te,U=1){const G=te.getTotalLength(),ee=[];let ne=0,re;for(;ne<G;)re=te.getPointAtLength(ne),ee.push({distance:ne,x:re.x,y:re.y}),ne+=U;return ee}function lineToPathData(te){return["M",getNumbericAttribute(te,"x1"),getNumbericAttribute(te,"y1"),"L",getNumbericAttribute(te,"x2"),getNumbericAttribute(te,"y2")].join(" ")}function polygonToPathData(te){const U=getPointsFromSvgElement(te);return U.length===0?null:`${svgPointsToPath(U)} Z`}function polylineToPathData(te){const U=getPointsFromSvgElement(te);return U.length===0?null:svgPointsToPath(U)}function svgPointsToPath(te){return`M ${te.map(G=>`${G.x} ${G.y}`).join(" L")}`}function getPointsFromSvgElement(te){const U=[],G=te.points;if(G)for(let ee=0,ne=G.numberOfItems;ee<ne;ee+=1)U.push(G.getItem(ee));return U}function circleToPathData(te){const U=getNumbericAttribute(te,"cx",0),G=getNumbericAttribute(te,"cy",0),ee=getNumbericAttribute(te,"r"),ne=ee*KAPPA;return["M",U,G-ee,"C",U+ne,G-ee,U+ee,G-ne,U+ee,G,"C",U+ee,G+ne,U+ne,G+ee,U,G+ee,"C",U-ne,G+ee,U-ee,G+ne,U-ee,G,"C",U-ee,G-ne,U-ne,G-ee,U,G-ee,"Z"].join(" ")}function ellipseToPathData(te){const U=getNumbericAttribute(te,"cx",0),G=getNumbericAttribute(te,"cy",0),ee=getNumbericAttribute(te,"rx"),ne=getNumbericAttribute(te,"ry")||ee,re=ee*KAPPA,oe=ne*KAPPA;return["M",U,G-ne,"C",U+re,G-ne,U+ee,G-oe,U+ee,G,"C",U+ee,G+oe,U+re,G+ne,U,G+ne,"C",U-re,G+ne,U-ee,G+oe,U-ee,G,"C",U-ee,G-oe,U-re,G-ne,U,G-ne,"Z"].join(" ")}function rectangleToPathData(te){return rectToPathData({x:getNumbericAttribute(te,"x",0),y:getNumbericAttribute(te,"y",0),width:getNumbericAttribute(te,"width",0),height:getNumbericAttribute(te,"height",0),rx:getNumbericAttribute(te,"rx",0),ry:getNumbericAttribute(te,"ry",0)})}function rectToPathData(te){let U;const G=te.x,ee=te.y,ne=te.width,re=te.height,oe=Math.min(te.rx||te["top-rx"]||0,ne/2),ie=Math.min(te.rx||te["bottom-rx"]||0,ne/2),le=Math.min(te.ry||te["top-ry"]||0,re/2),ae=Math.min(te.ry||te["bottom-ry"]||0,re/2);return oe||ie||le||ae?U=["M",G,ee+le,"v",re-le-ae,"a",ie,ae,0,0,0,ie,ae,"h",ne-2*ie,"a",ie,ae,0,0,0,ie,-ae,"v",-(re-ae-le),"a",oe,le,0,0,0,-oe,-le,"h",-(ne-2*oe),"a",oe,le,0,0,0,-oe,le,"Z"]:U=["M",G,ee,"H",G+ne,"V",ee+re,"H",G,"V",ee,"Z"],U.join(" ")}function toPath(te){const U=createSvgElement("path");attr(U,attr(te));const G=toPathData(te);return G&&U.setAttribute("d",G),U}function toPathData(te){const U=te.tagName.toLowerCase();switch(U){case"path":return te.getAttribute("d");case"line":return lineToPathData(te);case"polygon":return polygonToPathData(te);case"polyline":return polylineToPathData(te);case"ellipse":return ellipseToPathData(te);case"circle":return circleToPathData(te);case"rect":return rectangleToPathData(te)}throw new Error(`"${U}" cannot be converted to svg path element.`)}const transformRegex=/(\w+)\(([^,)]+),?([^)]+)?\)/gi,transformSeparatorRegex=/[ ,]+/,transformationListRegex=/^(\w+)\((.*)\)/;function createSVGPoint(te,U){const ee=createSvgElement("svg").createSVGPoint();return ee.x=te,ee.y=U,ee}function createSVGMatrix(te){const G=createSvgElement("svg").createSVGMatrix();if(te!=null){const ee=te,ne=G;for(const re in ee)ne[re]=ee[re]}return G}function createSVGTransform(te){const U=createSvgElement("svg");return te!=null?(te instanceof DOMMatrix||(te=createSVGMatrix(te)),U.createSVGTransformFromMatrix(te)):U.createSVGTransform()}function transformStringToMatrix(te){let U=createSVGMatrix();const G=te!=null&&te.match(transformRegex);if(!G)return U;for(let ee=0,ne=G.length;ee<ne;ee+=1){const oe=G[ee].match(transformationListRegex);if(oe){let ie,le,ae,se,ue,ce=createSVGMatrix();const de=oe[2].split(transformSeparatorRegex);switch(oe[1].toLowerCase()){case"scale":ie=parseFloat(de[0]),le=de[1]===void 0?ie:parseFloat(de[1]),ce=ce.scaleNonUniform(ie,le);break;case"translate":ae=parseFloat(de[0]),se=parseFloat(de[1]),ce=ce.translate(ae,se);break;case"rotate":ue=parseFloat(de[0]),ae=parseFloat(de[1])||0,se=parseFloat(de[2])||0,ae!==0||se!==0?ce=ce.translate(ae,se).rotate(ue).translate(-ae,-se):ce=ce.rotate(ue);break;case"skewx":ue=parseFloat(de[0]),ce=ce.skewX(ue);break;case"skewy":ue=parseFloat(de[0]),ce=ce.skewY(ue);break;case"matrix":ce.a=parseFloat(de[0]),ce.b=parseFloat(de[1]),ce.c=parseFloat(de[2]),ce.d=parseFloat(de[3]),ce.e=parseFloat(de[4]),ce.f=parseFloat(de[5]);break;default:continue}U=U.multiply(ce)}}return U}function matrixToTransformString(te){const U=te||{},G=U.a!=null?U.a:1,ee=U.b!=null?U.b:0,ne=U.c!=null?U.c:0,re=U.d!=null?U.d:1,oe=U.e!=null?U.e:0,ie=U.f!=null?U.f:0;return`matrix(${G},${ee},${ne},${re},${oe},${ie})`}function parseTransformString(te){let U,G,ee;if(te){const re=transformSeparatorRegex;if(te.trim().indexOf("matrix")>=0){const oe=transformStringToMatrix(te),ie=decomposeMatrix(oe);U=[ie.translateX,ie.translateY],G=[ie.rotation],ee=[ie.scaleX,ie.scaleY];const le=[];(U[0]!==0||U[1]!==0)&&le.push(`translate(${U.join(",")})`),(ee[0]!==1||ee[1]!==1)&&le.push(`scale(${ee.join(",")})`),G[0]!==0&&le.push(`rotate(${G[0]})`),te=le.join(" ")}else{const oe=te.match(/translate\((.*?)\)/);oe&&(U=oe[1].split(re));const ie=te.match(/rotate\((.*?)\)/);ie&&(G=ie[1].split(re));const le=te.match(/scale\((.*?)\)/);le&&(ee=le[1].split(re))}}const ne=ee&&ee[0]?parseFloat(ee[0]):1;return{raw:te||"",translation:{tx:U&&U[0]?parseInt(U[0],10):0,ty:U&&U[1]?parseInt(U[1],10):0},rotation:{angle:G&&G[0]?parseInt(G[0],10):0,cx:G&&G[1]?parseInt(G[1],10):void 0,cy:G&&G[2]?parseInt(G[2],10):void 0},scale:{sx:ne,sy:ee&&ee[1]?parseFloat(ee[1]):ne}}}function deltaTransformPoint(te,U){const G=U.x*te.a+U.y*te.c+0,ee=U.x*te.b+U.y*te.d+0;return{x:G,y:ee}}function decomposeMatrix(te){const U=deltaTransformPoint(te,{x:0,y:1}),G=deltaTransformPoint(te,{x:1,y:0}),ee=180/Math.PI*Math.atan2(U.y,U.x)-90,ne=180/Math.PI*Math.atan2(G.y,G.x);return{skewX:ee,skewY:ne,translateX:te.e,translateY:te.f,scaleX:Math.sqrt(te.a*te.a+te.b*te.b),scaleY:Math.sqrt(te.c*te.c+te.d*te.d),rotation:ee}}function matrixToScale(te){let U,G,ee,ne;return te?(U=te.a==null?1:te.a,ne=te.d==null?1:te.d,G=te.b,ee=te.c):U=ne=1,{sx:G?Math.sqrt(U*U+G*G):U,sy:ee?Math.sqrt(ee*ee+ne*ne):ne}}function matrixToRotation(te){let U={x:0,y:1};te&&(U=deltaTransformPoint(te,U));const G=180*Math.atan2(U.y,U.x)/Math.PI%360-90;return{angle:G%360+(G<0?360:0)}}function matrixToTranslation(te){return{tx:te&&te.e||0,ty:te&&te.f||0}}function transform(te,U,G={}){if(U==null)return transformStringToMatrix(attr(te,"transform"));if(G.absolute){te.setAttribute("transform",matrixToTransformString(U));return}const ee=te.transform,ne=createSVGTransform(U);ee.baseVal.appendItem(ne)}function translate(te,U,G=0,ee={}){let ne=attr(te,"transform");const re=parseTransformString(ne);if(U==null)return re.translation;ne=re.raw,ne=ne.replace(/translate\([^)]*\)/g,"").trim();const oe=ee.absolute?U:re.translation.tx+U,ie=ee.absolute?G:re.translation.ty+G,le=`translate(${oe},${ie})`;te.setAttribute("transform",`${le} ${ne}`.trim())}function rotate$1(te,U,G,ee,ne={}){let re=attr(te,"transform");const oe=parseTransformString(re);if(U==null)return oe.rotation;re=oe.raw,re=re.replace(/rotate\([^)]*\)/g,"").trim(),U%=360;const ie=ne.absolute?U:oe.rotation.angle+U,le=G!=null&&ee!=null?`,${G},${ee}`:"",ae=`rotate(${ie}${le})`;te.setAttribute("transform",`${re} ${ae}`.trim())}function scale(te,U,G){let ee=attr(te,"transform");const ne=parseTransformString(ee);if(U==null)return ne.scale;G=G??U,ee=ne.raw,ee=ee.replace(/scale\([^)]*\)/g,"").trim();const re=`scale(${U},${G})`;te.setAttribute("transform",`${ee} ${re}`.trim())}function getTransformToElement(te,U){if(isSVGGraphicsElement(U)&&isSVGGraphicsElement(te)){const G=U.getScreenCTM(),ee=te.getScreenCTM();if(G&&ee)return G.inverse().multiply(ee)}return createSVGMatrix()}function getTransformToParentElement(te,U){let G=createSVGMatrix();if(isSVGGraphicsElement(U)&&isSVGGraphicsElement(te)){let ee=te;const ne=[];for(;ee&&ee!==U;){const re=ee.getAttribute("transform")||null,oe=transformStringToMatrix(re);ne.push(oe),ee=ee.parentNode}ne.reverse().forEach(re=>{G=G.multiply(re)})}return G}function toLocalPoint(te,U,G){const ee=te instanceof SVGSVGElement?te:te.ownerSVGElement,ne=ee.createSVGPoint();ne.x=U,ne.y=G;try{const re=ee.getScreenCTM(),oe=ne.matrixTransform(re.inverse()),ie=getTransformToElement(te,ee).inverse();return oe.matrixTransform(ie)}catch{return ne}}var EventHook;(function(te){const U={};function G(re){return U[re]||{}}te.get=G;function ee(re,oe){U[re]=oe}te.register=ee;function ne(re){delete U[re]}te.unregister=ne})(EventHook||(EventHook={}));var Store$1;(function(te){const U=new WeakMap;function G(re){return U.has(re)||U.set(re,{events:Object.create(null)}),U.get(re)}te.ensure=G;function ee(re){return U.get(re)}te.get=ee;function ne(re){return U.delete(re)}te.remove=ne})(Store$1||(Store$1={}));var Util$2;(function(te){te.returnTrue=()=>!0,te.returnFalse=()=>!1;function U(ne){ne.stopPropagation()}te.stopPropagationCallback=U;function G(ne,re,oe){ne.addEventListener!=null&&ne.addEventListener(re,oe)}te.addEventListener=G;function ee(ne,re,oe){ne.removeEventListener!=null&&ne.removeEventListener(re,oe)}te.removeEventListener=ee})(Util$2||(Util$2={})),function(te){const U=/[^\x20\t\r\n\f]+/g,G=/^([^.]*)(?:\.(.+)|)/;function ee(ie){return(ie||"").match(U)||[""]}te.splitType=ee;function ne(ie){const le=G.exec(ie)||[];return{originType:le[1]?le[1].trim():le[1],namespaces:le[2]?le[2].split(".").map(ae=>ae.trim()).sort():[]}}te.normalizeType=ne;function re(ie){return ie.nodeType===1||ie.nodeType===9||!+ie.nodeType}te.isValidTarget=re;function oe(ie,le){if(le){const ae=ie;return ae.querySelector!=null&&ae.querySelector(le)!=null}return!0}te.isValidSelector=oe}(Util$2||(Util$2={})),function(te){let U=0;const G=new WeakMap;function ee(ie){return G.has(ie)||(G.set(ie,U),U+=1),G.get(ie)}te.ensureHandlerId=ee;function ne(ie){return G.get(ie)}te.getHandlerId=ne;function re(ie){return G.delete(ie)}te.removeHandlerId=re;function oe(ie,le){return G.set(ie,le)}te.setHandlerId=oe}(Util$2||(Util$2={})),function(te){function U(G,ee){const ne=[],re=Store$1.get(G),oe=re&&re.events&&re.events[ee.type],ie=oe&&oe.handlers||[],le=oe?oe.delegateCount:0;if(le>0&&!(ee.type==="click"&&typeof ee.button=="number"&&ee.button>=1)){for(let ae=ee.target;ae!==G;ae=ae.parentNode||G)if(ae.nodeType===1&&!(ee.type==="click"&&ae.disabled===!0)){const se=[],ue={};for(let ce=0;ce<le;ce+=1){const de=ie[ce],fe=de.selector;if(fe!=null&&ue[fe]==null){const ve=G,he=[];ve.querySelectorAll(fe).forEach(pe=>{he.push(pe)}),ue[fe]=he.includes(ae)}ue[fe]&&se.push(de)}se.length&&ne.push({elem:ae,handlers:se})}}return le<ie.length&&ne.push({elem:G,handlers:ie.slice(le)}),ne}te.getHandlerQueue=U}(Util$2||(Util$2={})),function(te){function U(G){return G!=null&&G===G.window}te.isWindow=U}(Util$2||(Util$2={})),function(te){function U(G,ee){const ne=G.nodeType===9?G.documentElement:G,re=ee&&ee.parentNode;return G===re||!!(re&&re.nodeType===1&&(ne.contains?ne.contains(re):G.compareDocumentPosition&&G.compareDocumentPosition(re)&16))}te.contains=U}(Util$2||(Util$2={}));class EventObject{constructor(U,G){this.isDefaultPrevented=Util$2.returnFalse,this.isPropagationStopped=Util$2.returnFalse,this.isImmediatePropagationStopped=Util$2.returnFalse,this.isSimulated=!1,this.preventDefault=()=>{const ee=this.originalEvent;this.isDefaultPrevented=Util$2.returnTrue,ee&&!this.isSimulated&&ee.preventDefault()},this.stopPropagation=()=>{const ee=this.originalEvent;this.isPropagationStopped=Util$2.returnTrue,ee&&!this.isSimulated&&ee.stopPropagation()},this.stopImmediatePropagation=()=>{const ee=this.originalEvent;this.isImmediatePropagationStopped=Util$2.returnTrue,ee&&!this.isSimulated&&ee.stopImmediatePropagation(),this.stopPropagation()},typeof U=="string"?this.type=U:U.type&&(this.originalEvent=U,this.type=U.type,this.isDefaultPrevented=U.defaultPrevented?Util$2.returnTrue:Util$2.returnFalse,this.target=U.target,this.currentTarget=U.currentTarget,this.relatedTarget=U.relatedTarget,this.timeStamp=U.timeStamp),G&&Object.assign(this,G),this.timeStamp||(this.timeStamp=Date.now())}}(function(te){function U(G){return G instanceof te?G:new te(G)}te.create=U})(EventObject||(EventObject={})),function(te){function U(G,ee){Object.defineProperty(te.prototype,G,{enumerable:!0,configurable:!0,get:typeof ee=="function"?function(){if(this.originalEvent)return ee(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[G]},set(ne){Object.defineProperty(this,G,{enumerable:!0,configurable:!0,writable:!0,value:ne})}})}te.addProperty=U}(EventObject||(EventObject={})),function(te){const U={bubbles:!0,cancelable:!0,eventPhase:!0,detail:!0,view:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pageX:!0,pageY:!0,screenX:!0,screenY:!0,toElement:!0,pointerId:!0,pointerType:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,touches:!0,changedTouches:!0,targetTouches:!0,which:!0,altKey:!0,ctrlKey:!0,metaKey:!0,shiftKey:!0};Object.keys(U).forEach(G=>te.addProperty(G,U[G]))}(EventObject||(EventObject={})),function(te){EventHook.register("load",{noBubble:!0})}(),function(te){EventHook.register("beforeunload",{postDispatch(U,G){G.result!==void 0&&G.originalEvent&&(G.originalEvent.returnValue=G.result)}})}(),function(te){EventHook.register("mouseenter",{delegateType:"mouseover",bindType:"mouseover",handle(U,G){let ee;const ne=G.relatedTarget,re=G.handleObj;return(!ne||ne!==U&&!Util$2.contains(U,ne))&&(G.type=re.originType,ee=re.handler.call(U,G),G.type="mouseover"),ee}}),EventHook.register("mouseleave",{delegateType:"mouseout",bindType:"mouseout",handle(U,G){let ee;const ne=G.relatedTarget,re=G.handleObj;return(!ne||ne!==U&&!Util$2.contains(U,ne))&&(G.type=re.originType,ee=re.handler.call(U,G),G.type="mouseout"),ee}})}();var __rest$u=globalThis&&globalThis.__rest||function(te,U){var G={};for(var ee in te)Object.prototype.hasOwnProperty.call(te,ee)&&U.indexOf(ee)<0&&(G[ee]=te[ee]);if(te!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ne=0,ee=Object.getOwnPropertySymbols(te);ne<ee.length;ne++)U.indexOf(ee[ne])<0&&Object.prototype.propertyIsEnumerable.call(te,ee[ne])&&(G[ee[ne]]=te[ee[ne]]);return G},Core;(function(te){let U;function G(oe,ie,le,ae,se){if(!Util$2.isValidTarget(oe))return;let ue;if(typeof le!="function"){const{handler:ve,selector:he}=le,pe=__rest$u(le,["handler","selector"]);le=ve,se=he,ue=pe}const ce=Store$1.ensure(oe);let de=ce.handler;de==null&&(de=ce.handler=function(ve,...he){return U!==ve.type?ne(oe,ve,...he):void 0});const fe=Util$2.ensureHandlerId(le);Util$2.splitType(ie).forEach(ve=>{const{originType:he,namespaces:pe}=Util$2.normalizeType(ve);if(!he)return;let ge=he,me=EventHook.get(ge);ge=(se?me.delegateType:me.bindType)||ge,me=EventHook.get(ge);const _e=Object.assign({type:ge,originType:he,data:ae,selector:se,guid:fe,handler:le,namespace:pe.join(".")},ue),ye=ce.events;let be=ye[ge];be||(be=ye[ge]={handlers:[],delegateCount:0},(!me.setup||me.setup(oe,ae,pe,de)===!1)&&Util$2.addEventListener(oe,ge,de)),me.add&&(Util$2.removeHandlerId(_e.handler),me.add(oe,_e),Util$2.setHandlerId(_e.handler,fe)),se?(be.handlers.splice(be.delegateCount,0,_e),be.delegateCount+=1):be.handlers.push(_e)})}te.on=G;function ee(oe,ie,le,ae,se){const ue=Store$1.get(oe);if(!ue)return;const ce=ue.events;ce&&(Util$2.splitType(ie).forEach(de=>{const{originType:fe,namespaces:ve}=Util$2.normalizeType(de);if(!fe){Object.keys(ce).forEach(ye=>{ee(oe,ye+de,le,ae,!0)});return}let he=fe;const pe=EventHook.get(he);he=(ae?pe.delegateType:pe.bindType)||he;const ge=ce[he];if(!ge)return;const me=ve.length>0?new RegExp(`(^|\\.)${ve.join("\\.(?:.*\\.|)")}(\\.|$)`):null,_e=ge.handlers.length;for(let ye=ge.handlers.length-1;ye>=0;ye-=1){const be=ge.handlers[ye];(se||fe===be.originType)&&(!le||Util$2.getHandlerId(le)===be.guid)&&(me==null||be.namespace&&me.test(be.namespace))&&(ae==null||ae===be.selector||ae==="**"&&be.selector)&&(ge.handlers.splice(ye,1),be.selector&&(ge.delegateCount-=1),pe.remove&&pe.remove(oe,be))}_e&&ge.handlers.length===0&&((!pe.teardown||pe.teardown(oe,ve,ue.handler)===!1)&&Util$2.removeEventListener(oe,he,ue.handler),delete ce[he])}),Object.keys(ce).length===0&&Store$1.remove(oe))}te.off=ee;function ne(oe,ie,...le){const ae=EventObject.create(ie);ae.delegateTarget=oe;const se=EventHook.get(ae.type);if(se.preDispatch&&se.preDispatch(oe,ae)===!1)return;const ue=Util$2.getHandlerQueue(oe,ae);for(let ce=0,de=ue.length;ce<de&&!ae.isPropagationStopped();ce+=1){const fe=ue[ce];ae.currentTarget=fe.elem;for(let ve=0,he=fe.handlers.length;ve<he&&!ae.isImmediatePropagationStopped();ve+=1){const pe=fe.handlers[ve];if(ae.rnamespace==null||pe.namespace&&ae.rnamespace.test(pe.namespace)){ae.handleObj=pe,ae.data=pe.data;const ge=EventHook.get(pe.originType).handle,me=ge?ge(fe.elem,ae,...le):pe.handler.call(fe.elem,ae,...le);me!==void 0&&(ae.result=me,me===!1&&(ae.preventDefault(),ae.stopPropagation()))}}}return se.postDispatch&&se.postDispatch(oe,ae),ae.result}te.dispatch=ne;function re(oe,ie,le,ae){let se=oe,ue=typeof oe=="string"?oe:oe.type,ce=typeof oe=="string"||se.namespace==null?[]:se.namespace.split(".");const de=le;if(de.nodeType===3||de.nodeType===8)return;ue.indexOf(".")>-1&&(ce=ue.split("."),ue=ce.shift(),ce.sort());const fe=ue.indexOf(":")<0&&`on${ue}`;se=oe instanceof EventObject?oe:new EventObject(ue,typeof oe=="object"?oe:null),se.namespace=ce.join("."),se.rnamespace=se.namespace?new RegExp(`(^|\\.)${ce.join("\\.(?:.*\\.|)")}(\\.|$)`):null,se.result=void 0,se.target||(se.target=de);const ve=[se];Array.isArray(ie)?ve.push(...ie):ve.push(ie);const he=EventHook.get(ue);if(!ae&&he.trigger&&he.trigger(de,se,ie)===!1)return;let pe;const ge=[de];if(!ae&&!he.noBubble&&!Util$2.isWindow(de)){pe=he.delegateType||ue;let _e=de,ye=de.parentNode;for(;ye!=null;)ge.push(ye),_e=ye,ye=ye.parentNode;const be=de.ownerDocument||document;if(_e===be){const xe=_e.defaultView||_e.parentWindow||window;ge.push(xe)}}let me=de;for(let _e=0,ye=ge.length;_e<ye&&!se.isPropagationStopped();_e+=1){const be=ge[_e];me=be,se.type=_e>1?pe:he.bindType||ue;const xe=Store$1.get(be);xe&&xe.events[se.type]&&xe.handler&&xe.handler.call(be,...ve);const Ce=fe&&be[fe]||null;Ce&&Util$2.isValidTarget(be)&&(se.result=Ce.call(be,...ve),se.result===!1&&se.preventDefault())}if(se.type=ue,!ae&&!se.isDefaultPrevented()){const _e=he.preventDefault;if((_e==null||_e(ge.pop(),se,ie)===!1)&&Util$2.isValidTarget(de)&&fe&&typeof de[ue]=="function"&&!Util$2.isWindow(de)){const ye=de[fe];ye&&(de[fe]=null),U=ue,se.isPropagationStopped()&&me.addEventListener(ue,Util$2.stopPropagationCallback),de[ue](),se.isPropagationStopped()&&me.removeEventListener(ue,Util$2.stopPropagationCallback),U=void 0,ye&&(de[fe]=ye)}}return se.result}te.trigger=re})(Core||(Core={}));var Event$1;(function(te){function U(re,oe,ie,le,ae){return Private$4.on(re,oe,ie,le,ae),re}te.on=U;function G(re,oe,ie,le,ae){return Private$4.on(re,oe,ie,le,ae,!0),re}te.once=G;function ee(re,oe,ie,le){return Private$4.off(re,oe,ie,le),re}te.off=ee;function ne(re,oe,ie,le){return Core.trigger(oe,ie,re,le),re}te.trigger=ne})(Event$1||(Event$1={}));var Private$4;(function(te){function U(ee,ne,re,oe,ie,le){if(typeof ne=="object"){typeof re!="string"&&(oe=oe||re,re=void 0),Object.keys(ne).forEach(ae=>U(ee,ae,re,oe,ne[ae],le));return}if(oe==null&&ie==null?(ie=re,oe=re=void 0):ie==null&&(typeof re=="string"?(ie=oe,oe=void 0):(ie=oe,oe=re,re=void 0)),ie===!1)ie=Util$2.returnFalse;else if(!ie)return;if(le){const ae=ie;ie=function(se,...ue){return te.off(ee,se),ae.call(this,se,...ue)},Util$2.setHandlerId(ie,Util$2.ensureHandlerId(ae))}Core.on(ee,ne,ie,oe,re)}te.on=U;function G(ee,ne,re,oe){const ie=ne;if(ie&&ie.preventDefault!=null&&ie.handleObj!=null){const le=ie.handleObj;G(ie.delegateTarget,le.namespace?`${le.originType}.${le.namespace}`:le.originType,le.selector,le.handler);return}if(typeof ne=="object"){const le=ne;Object.keys(le).forEach(ae=>G(ee,ae,re,le[ae]));return}(re===!1||typeof re=="function")&&(oe=re,re=void 0),oe===!1&&(oe=Util$2.returnFalse),Core.off(ee,ne,oe,re)}te.off=G})(Private$4||(Private$4={}));class MouseWheelHandle{constructor(U,G,ee){this.animationFrameId=0,this.deltaX=0,this.deltaY=0,this.eventName=Platform.isEventSupported("wheel")?"wheel":"mousewheel",this.target=U,this.onWheelCallback=G,this.onWheelGuard=ee,this.onWheel=this.onWheel.bind(this),this.didWheel=this.didWheel.bind(this)}enable(){this.target.addEventListener(this.eventName,this.onWheel,{passive:!1})}disable(){this.target.removeEventListener(this.eventName,this.onWheel)}onWheel(U){if(this.onWheelGuard!=null&&!this.onWheelGuard(U))return;this.deltaX+=U.deltaX,this.deltaY+=U.deltaY,U.preventDefault();let G;(this.deltaX!==0||this.deltaY!==0)&&(U.stopPropagation(),G=!0),G===!0&&this.animationFrameId===0&&(this.animationFrameId=requestAnimationFrame(()=>{this.didWheel(U)}))}didWheel(U){this.animationFrameId=0,this.onWheelCallback(U,this.deltaX,this.deltaY),this.deltaX=0,this.deltaY=0}}function offset$1(te){const U=te.getBoundingClientRect(),G=te.ownerDocument.defaultView;return{top:U.top+G.pageYOffset,left:U.left+G.pageXOffset}}function width(te){return te.getBoundingClientRect().width}function height(te){return te.getBoundingClientRect().height}function debounce(te,U=60){let G=null;return(...ee)=>{G&&clearTimeout(G),G=window.setTimeout(()=>{te.apply(this,ee)},U)}}function createSensor$2(te){let U=null,G=[];const ee=()=>{if(getComputedStyle(te).position==="static"){const ae=te.style;ae.position="relative"}const le=document.createElement("object");return le.onload=()=>{le.contentDocument.defaultView.addEventListener("resize",ne),ne()},le.style.display="block",le.style.position="absolute",le.style.top="0",le.style.left="0",le.style.height="100%",le.style.width="100%",le.style.overflow="hidden",le.style.pointerEvents="none",le.style.zIndex="-1",le.style.opacity="0",le.setAttribute("tabindex","-1"),le.type="text/html",te.appendChild(le),le.data="about:blank",le},ne=debounce(()=>{G.forEach(le=>le(te))}),re=le=>{U||(U=ee()),G.indexOf(le)===-1&&G.push(le)},oe=()=>{U&&U.parentNode&&(U.contentDocument&&U.contentDocument.defaultView.removeEventListener("resize",ne),U.parentNode.removeChild(U),U=null,G=[])};return{element:te,bind:re,destroy:oe,unbind:le=>{const ae=G.indexOf(le);ae!==-1&&G.splice(ae,1),G.length===0&&U&&oe()}}}function createSensor$1(te){let U=null,G=[];const ee=debounce(()=>{G.forEach(le=>{le(te)})}),ne=()=>{const le=new ResizeObserver(ee);return le.observe(te),ee(),le},re=le=>{U||(U=ne()),G.indexOf(le)===-1&&G.push(le)},oe=()=>{U&&(U.disconnect(),G=[],U=null)};return{element:te,bind:re,destroy:oe,unbind:le=>{const ae=G.indexOf(le);ae!==-1&&G.splice(ae,1),G.length===0&&U&&oe()}}}const createSensor=typeof ResizeObserver<"u"?createSensor$1:createSensor$2;var SizeSensor;(function(te){const U=new WeakMap;function G(ne){let re=U.get(ne);return re||(re=createSensor(ne),U.set(ne,re),re)}function ee(ne){ne.destroy(),U.delete(ne.element)}te.bind=(ne,re)=>{const oe=G(ne);return oe.bind(re),()=>oe.unbind(re)},te.clear=ne=>{const re=G(ne);ee(re)}})(SizeSensor||(SizeSensor={}));class PriorityQueue{constructor(U={}){this.comparator=U.comparator||PriorityQueue.defaultComparator,this.index={},this.data=U.data||[],this.heapify()}isEmpty(){return this.data.length===0}insert(U,G,ee){const ne={priority:U,value:G},re=this.data.length;return ee&&(ne.id=ee,this.index[ee]=re),this.data.push(ne),this.bubbleUp(re),this}peek(){return this.data[0]?this.data[0].value:null}peekPriority(){return this.data[0]?this.data[0].priority:null}updatePriority(U,G){const ee=this.index[U];if(typeof ee>"u")throw new Error(`Node with id '${U}' was not found in the heap.`);const ne=this.data,re=ne[ee].priority,oe=this.comparator(G,re);oe<0?(ne[ee].priority=G,this.bubbleUp(ee)):oe>0&&(ne[ee].priority=G,this.bubbleDown(ee))}remove(){const U=this.data,G=U[0],ee=U.pop();return G.id&&delete this.index[G.id],U.length>0&&(U[0]=ee,ee.id&&(this.index[ee.id]=0),this.bubbleDown(0)),G?G.value:null}heapify(){for(let U=0;U<this.data.length;U+=1)this.bubbleUp(U)}bubbleUp(U){const G=this.data;let ee,ne,re=U;for(;re>0&&(ne=re-1>>>1,this.comparator(G[re].priority,G[ne].priority)<0);){ee=G[ne],G[ne]=G[re];let oe=G[re].id;oe!=null&&(this.index[oe]=ne),G[re]=ee,oe=G[re].id,oe!=null&&(this.index[oe]=re),re=ne}}bubbleDown(U){const G=this.data,ee=G.length-1;let ne=U;for(;;){const re=(ne<<1)+1,oe=re+1;let ie=ne;if(re<=ee&&this.comparator(G[re].priority,G[ie].priority)<0&&(ie=re),oe<=ee&&this.comparator(G[oe].priority,G[ie].priority)<0&&(ie=oe),ie!==ne){const le=G[ie];G[ie]=G[ne];let ae=G[ne].id;ae!=null&&(this.index[ae]=ie),G[ne]=le,ae=G[ne].id,ae!=null&&(this.index[ae]=ne),ne=ie}else break}}}(function(te){te.defaultComparator=(U,G)=>U-G})(PriorityQueue||(PriorityQueue={}));var Dijkstra;(function(te){function U(G,ee,ne=(re,oe)=>1){const re={},oe={},ie={},le=new PriorityQueue;for(re[ee]=0,Object.keys(G).forEach(ae=>{ae!==ee&&(re[ae]=1/0),le.insert(re[ae],ae,ae)});!le.isEmpty();){const ae=le.remove();ie[ae]=!0;const se=G[ae]||[];for(let ue=0;ue<se.length;ue+=1){const ce=se[ue];if(!ie[ce]){const de=re[ae]+ne(ae,ce);de<re[ce]&&(re[ce]=de,oe[ce]=ae,le.updatePriority(ce,de))}}}return oe}te.run=U})(Dijkstra||(Dijkstra={}));class Color{constructor(U,G,ee,ne){if(U==null)return this.set(255,255,255,1);if(typeof U=="number")return this.set(U,G,ee,ne);if(typeof U=="string")return Color.fromString(U)||this;if(Array.isArray(U))return this.set(U);this.set(U.r,U.g,U.b,U.a==null?1:U.a)}blend(U,G,ee){this.set(U.r+(G.r-U.r)*ee,U.g+(G.g-U.g)*ee,U.b+(G.b-U.b)*ee,U.a+(G.a-U.a)*ee)}lighten(U){const G=Color.lighten(this.toArray(),U);this.r=G[0],this.g=G[1],this.b=G[2],this.a=G[3]}darken(U){this.lighten(-U)}set(U,G,ee,ne){const re=Array.isArray(U)?U[0]:U,oe=Array.isArray(U)?U[1]:G,ie=Array.isArray(U)?U[2]:ee,le=Array.isArray(U)?U[3]:ne;return this.r=Math.round(clamp(re,0,255)),this.g=Math.round(clamp(oe,0,255)),this.b=Math.round(clamp(ie,0,255)),this.a=le==null?1:clamp(le,0,1),this}toHex(){return`#${["r","g","b"].map(G=>{const ee=this[G].toString(16);return ee.length<2?`0${ee}`:ee}).join("")}`}toRGBA(){return this.toArray()}toHSLA(){return Color.rgba2hsla(this.r,this.g,this.b,this.a)}toCSS(U){const G=`${this.r},${this.g},${this.b},`;return U?`rgb(${G})`:`rgba(${G},${this.a})`}toGrey(){return Color.makeGrey(Math.round((this.r+this.g+this.b)/3),this.a)}toArray(){return[this.r,this.g,this.b,this.a]}toString(){return this.toCSS()}}(function(te){function U(me){return new te(me)}te.fromArray=U;function G(me){return new te([...fe(me),1])}te.fromHex=G;function ee(me){const _e=me.toLowerCase().match(/^rgba?\(([\s.,0-9]+)\)/);if(_e){const ye=_e[1].split(/\s*,\s*/).map(be=>parseInt(be,10));return new te(ye)}return null}te.fromRGBA=ee;function ne(me,_e,ye){ye<0&&++ye,ye>1&&--ye;const be=6*ye;return be<1?me+(_e-me)*be:2*ye<1?_e:3*ye<2?me+(_e-me)*(2/3-ye)*6:me}function re(me){const _e=me.toLowerCase().match(/^hsla?\(([\s.,0-9]+)\)/);if(_e){const ye=_e[2].split(/\s*,\s*/),be=(parseFloat(ye[0])%360+360)%360/360,xe=parseFloat(ye[1])/100,Ce=parseFloat(ye[2])/100,$e=ye[3]==null?1:parseInt(ye[3],10);return new te(ae(be,xe,Ce,$e))}return null}te.fromHSLA=re;function oe(me){if(me.startsWith("#"))return G(me);if(me.startsWith("rgb"))return ee(me);const _e=te.named[me];return _e?G(_e):re(me)}te.fromString=oe;function ie(me,_e){return te.fromArray([me,me,me,_e])}te.makeGrey=ie;function le(me,_e,ye,be){const xe=Array.isArray(me)?me[0]:me,Ce=Array.isArray(me)?me[1]:_e,$e=Array.isArray(me)?me[2]:ye,Ee=Array.isArray(me)?me[3]:be,Ve=Math.max(xe,Ce,$e),Ne=Math.min(xe,Ce,$e),Se=(Ve+Ne)/2;let Pe=0,we=0;if(Ne!==Ve){const ke=Ve-Ne;switch(we=Se>.5?ke/(2-Ve-Ne):ke/(Ve+Ne),Ve){case xe:Pe=(Ce-$e)/ke+(Ce<$e?6:0);break;case Ce:Pe=($e-xe)/ke+2;break;case $e:Pe=(xe-Ce)/ke+4;break}Pe/=6}return[Pe,we,Se,Ee??1]}te.rgba2hsla=le;function ae(me,_e,ye,be){const xe=Array.isArray(me)?me[0]:me,Ce=Array.isArray(me)?me[1]:_e,$e=Array.isArray(me)?me[2]:ye,Ee=Array.isArray(me)?me[3]:be,Ve=$e<=.5?$e*(Ce+1):$e+Ce-$e*Ce,Ne=2*$e-Ve;return[ne(Ne,Ve,xe+1/3)*256,ne(Ne,Ve,xe)*256,ne(Ne,Ve,xe-1/3)*256,Ee??1]}te.hsla2rgba=ae;function se(me){return new te(Math.round(Math.random()*256),Math.round(Math.random()*256),Math.round(Math.random()*256),me?void 0:parseFloat(Math.random().toFixed(2)))}te.random=se;function ue(){const me="0123456789ABCDEF";let _e="#";for(let ye=0;ye<6;ye+=1)_e+=me[Math.floor(Math.random()*16)];return _e}te.randomHex=ue;function ce(me){return se(me).toString()}te.randomRGBA=ce;function de(me,_e){if(typeof me=="string"){const $e=me[0]==="#",[Ee,Ve,Ne]=fe(me);return _e?Ee*.299+Ve*.587+Ne*.114>186?"#000000":"#ffffff":`${$e?"#":""}${ve(255-Ee,255-Ve,255-Ne)}`}const ye=me[0],be=me[1],xe=me[2],Ce=me[3];return _e?ye*.299+be*.587+xe*.114>186?[0,0,0,Ce]:[255,255,255,Ce]:[255-ye,255-be,255-xe,Ce]}te.invert=de;function fe(me){const _e=me.indexOf("#")===0?me:`#${me}`;let ye=+`0x${_e.substr(1)}`;if(!(_e.length===4||_e.length===7)||Number.isNaN(ye))throw new Error("Invalid hex color.");const be=_e.length===4?4:8,xe=(1<<be)-1,Ce=["b","g","r"].map(()=>{const $e=ye&xe;return ye>>=be,be===4?17*$e:$e});return[Ce[2],Ce[1],Ce[0]]}function ve(me,_e,ye){const be=xe=>xe.length<2?`0${xe}`:xe;return`${be(me.toString(16))}${be(_e.toString(16))}${be(ye.toString(16))}`}function he(me,_e){return ge(me,_e)}te.lighten=he;function pe(me,_e){return ge(me,-_e)}te.darken=pe;function ge(me,_e){if(typeof me=="string"){const xe=me[0]==="#",Ce=parseInt(xe?me.substr(1):me,16),$e=clamp((Ce>>16)+_e,0,255),Ee=clamp((Ce>>8&255)+_e,0,255),Ve=clamp((Ce&255)+_e,0,255);return`${xe?"#":""}${(Ve|Ee<<8|$e<<16).toString(16)}`}const ye=ve(me[0],me[1],me[2]),be=fe(ge(ye,_e));return[be[0],be[1],be[2],me[3]]}})(Color||(Color={})),function(te){te.named={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",burntsienna:"#ea7e5d",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",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:"#ff00ff",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:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",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:"#ff0000",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:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"}}(Color||(Color={}));class Dictionary{constructor(){this.clear()}clear(){this.map=new WeakMap,this.arr=[]}has(U){return this.map.has(U)}get(U){return this.map.get(U)}set(U,G){this.map.set(U,G),this.arr.push(U)}delete(U){const G=this.arr.indexOf(U);G>=0&&this.arr.splice(G,1);const ee=this.map.get(U);return this.map.delete(U),ee}each(U){this.arr.forEach(G=>{const ee=this.map.get(G);U(ee,G)})}dispose(){this.clear()}}var ModifierKey;(function(te){function U(ne){const re=[],oe=[];return Array.isArray(ne)?re.push(...ne):ne.split("|").forEach(ie=>{ie.indexOf("&")===-1?re.push(ie):oe.push(...ie.split("&"))}),{or:re,and:oe}}te.parse=U;function G(ne,re){if(ne!=null&&re!=null){const oe=U(ne),ie=U(re),le=oe.or.sort(),ae=ie.or.sort(),se=oe.and.sort(),ue=ie.and.sort(),ce=(de,fe)=>de.length===fe.length&&(de.length===0||de.every((ve,he)=>ve===fe[he]));return ce(le,ae)&&ce(se,ue)}return ne==null&&re==null}te.equals=G;function ee(ne,re,oe){if(re==null||Array.isArray(re)&&re.length===0)return oe?ne.altKey!==!0&&ne.ctrlKey!==!0&&ne.metaKey!==!0&&ne.shiftKey!==!0:!0;const{or:ie,and:le}=U(re),ae=se=>{const ue=`${se.toLowerCase()}Key`;return ne[ue]===!0};return ie.some(se=>ae(se))&&le.every(se=>ae(se))}te.isMatch=ee})(ModifierKey||(ModifierKey={}));var Timing;(function(te){te.linear=U=>U,te.quad=U=>U*U,te.cubic=U=>U*U*U,te.inout=U=>{if(U<=0)return 0;if(U>=1)return 1;const G=U*U,ee=G*U;return 4*(U<.5?ee:3*(U-G)+ee-.75)},te.exponential=U=>Math.pow(2,10*(U-1)),te.bounce=U=>{for(let G=0,ee=1;;G+=ee,ee/=2)if(U>=(7-4*G)/11){const ne=(11-6*G-11*U)/4;return-ne*ne+ee*ee}}})(Timing||(Timing={})),function(te){te.decorators={reverse(U){return G=>1-U(1-G)},reflect(U){return G=>.5*(G<.5?U(2*G):2-U(2-2*G))},clamp(U,G=0,ee=1){return ne=>{const re=U(ne);return re<G?G:re>ee?ee:re}},back(U=1.70158){return G=>G*G*((U+1)*G-U)},elastic(U=1.5){return G=>Math.pow(2,10*(G-1))*Math.cos(20*Math.PI*U/3*G)}}}(Timing||(Timing={})),function(te){function U(we){return-1*Math.cos(we*(Math.PI/2))+1}te.easeInSine=U;function G(we){return Math.sin(we*(Math.PI/2))}te.easeOutSine=G;function ee(we){return-.5*(Math.cos(Math.PI*we)-1)}te.easeInOutSine=ee;function ne(we){return we*we}te.easeInQuad=ne;function re(we){return we*(2-we)}te.easeOutQuad=re;function oe(we){return we<.5?2*we*we:-1+(4-2*we)*we}te.easeInOutQuad=oe;function ie(we){return we*we*we}te.easeInCubic=ie;function le(we){const ke=we-1;return ke*ke*ke+1}te.easeOutCubic=le;function ae(we){return we<.5?4*we*we*we:(we-1)*(2*we-2)*(2*we-2)+1}te.easeInOutCubic=ae;function se(we){return we*we*we*we}te.easeInQuart=se;function ue(we){const ke=we-1;return 1-ke*ke*ke*ke}te.easeOutQuart=ue;function ce(we){const ke=we-1;return we<.5?8*we*we*we*we:1-8*ke*ke*ke*ke}te.easeInOutQuart=ce;function de(we){return we*we*we*we*we}te.easeInQuint=de;function fe(we){const ke=we-1;return 1+ke*ke*ke*ke*ke}te.easeOutQuint=fe;function ve(we){const ke=we-1;return we<.5?16*we*we*we*we*we:1+16*ke*ke*ke*ke*ke}te.easeInOutQuint=ve;function he(we){return we===0?0:Math.pow(2,10*(we-1))}te.easeInExpo=he;function pe(we){return we===1?1:-Math.pow(2,-10*we)+1}te.easeOutExpo=pe;function ge(we){if(we===0||we===1)return we;const ke=we*2,Te=ke-1;return ke<1?.5*Math.pow(2,10*Te):.5*(-Math.pow(2,-10*Te)+2)}te.easeInOutExpo=ge;function me(we){const ke=we/1;return-1*(Math.sqrt(1-ke*we)-1)}te.easeInCirc=me;function _e(we){const ke=we-1;return Math.sqrt(1-ke*ke)}te.easeOutCirc=_e;function ye(we){const ke=we*2,Te=ke-2;return ke<1?-.5*(Math.sqrt(1-ke*ke)-1):.5*(Math.sqrt(1-Te*Te)+1)}te.easeInOutCirc=ye;function be(we,ke=1.70158){return we*we*((ke+1)*we-ke)}te.easeInBack=be;function xe(we,ke=1.70158){const Te=we/1-1;return Te*Te*((ke+1)*Te+ke)+1}te.easeOutBack=xe;function Ce(we,ke=1.70158){const Te=we*2,De=Te-2,Ie=ke*1.525;return Te<1?.5*Te*Te*((Ie+1)*Te-Ie):.5*(De*De*((Ie+1)*De+Ie)+2)}te.easeInOutBack=Ce;function $e(we,ke=.7){if(we===0||we===1)return we;const De=we/1-1,Ie=1-ke,Me=Ie/(2*Math.PI)*Math.asin(1);return-(Math.pow(2,10*De)*Math.sin((De-Me)*(2*Math.PI)/Ie))}te.easeInElastic=$e;function Ee(we,ke=.7){const Te=1-ke,De=we*2;if(we===0||we===1)return we;const Ie=Te/(2*Math.PI)*Math.asin(1);return Math.pow(2,-10*De)*Math.sin((De-Ie)*(2*Math.PI)/Te)+1}te.easeOutElastic=Ee;function Ve(we,ke=.65){const Te=1-ke;if(we===0||we===1)return we;const De=we*2,Ie=De-1,Me=Te/(2*Math.PI)*Math.asin(1);return De<1?-.5*(Math.pow(2,10*Ie)*Math.sin((Ie-Me)*(2*Math.PI)/Te)):Math.pow(2,-10*Ie)*Math.sin((Ie-Me)*(2*Math.PI)/Te)*.5+1}te.easeInOutElastic=Ve;function Ne(we){const ke=we/1;if(ke<1/2.75)return 7.5625*ke*ke;if(ke<2/2.75){const Te=ke-.5454545454545454;return 7.5625*Te*Te+.75}if(ke<2.5/2.75){const Te=ke-.8181818181818182;return 7.5625*Te*Te+.9375}{const Te=ke-.9545454545454546;return 7.5625*Te*Te+.984375}}te.easeOutBounce=Ne;function Se(we){return 1-Ne(1-we)}te.easeInBounce=Se;function Pe(we){return we<.5?Se(we*2)*.5:Ne(we*2-1)*.5+.5}te.easeInOutBounce=Pe}(Timing||(Timing={}));var Interp;(function(te){te.number=(U,G)=>{const ee=G-U;return ne=>U+ee*ne},te.object=(U,G)=>{const ee=Object.keys(U);return ne=>{const re={};for(let oe=ee.length-1;oe!==-1;oe-=1){const ie=ee[oe];re[ie]=U[ie]+(G[ie]-U[ie])*ne}return re}},te.unit=(U,G)=>{const ee=/(-?[0-9]*.[0-9]*)(px|em|cm|mm|in|pt|pc|%)/,ne=ee.exec(U),re=ee.exec(G),oe=re?re[1]:"",ie=ne?+ne[1]:0,le=re?+re[1]:0,ae=oe.indexOf("."),se=ae>0?oe[1].length-ae-1:0,ue=le-ie,ce=ne?ne[2]:"";return de=>(ie+ue*de).toFixed(se)+ce},te.color=(U,G)=>{const ee=parseInt(U.slice(1),16),ne=parseInt(G.slice(1),16),re=ee&255,oe=(ne&255)-re,ie=ee&65280,le=(ne&65280)-ie,ae=ee&16711680,se=(ne&16711680)-ae;return ue=>{const ce=re+oe*ue&255,de=ie+le*ue&65280,fe=ae+se*ue&16711680;return`#${(1<<24|ce|de|fe).toString(16).slice(1)}`}}})(Interp||(Interp={}));const cssModules=[];function ensure(te,U){const G=cssModules.find(ee=>ee.name===te);if(!(G&&(G.loadTimes+=1,G.loadTimes>1))&&!Platform.isApplyingHMR()){const ee=document.createElement("style");ee.setAttribute("type","text/css"),ee.textContent=U;const ne=document.querySelector("head");ne&&ne.insertBefore(ee,ne.firstChild),cssModules.push({name:te,loadTimes:1,styleElement:ee})}}function clean(te){const U=cssModules.findIndex(G=>G.name===te);if(U>-1){const G=cssModules[U];if(G.loadTimes-=1,G.loadTimes>0)return;let ee=G.styleElement;ee&&ee.parentNode&&ee.parentNode.removeChild(ee),ee=null,cssModules.splice(U,1)}}var Angle;(function(te){function U(ee){return 180*ee/Math.PI%360}te.toDeg=U,te.toRad=function(ee,ne=!1){return(ne?ee:ee%360)*Math.PI/180};function G(ee){return ee%360+(ee<0?360:0)}te.normalize=G})(Angle||(Angle={}));var GeometryUtil;(function(te){function U(ie,le=0){return Number.isInteger(ie)?ie:+ie.toFixed(le)}te.round=U;function G(ie,le){let ae,se;if(le==null?(se=ie??1,ae=0):(se=le,ae=ie??0),se<ae){const ue=ae;ae=se,se=ue}return Math.floor(Math.random()*(se-ae+1)+ae)}te.random=G;function ee(ie,le,ae){return Number.isNaN(ie)?NaN:Number.isNaN(le)||Number.isNaN(ae)?0:le<ae?ie<le?le:ie>ae?ae:ie:ie<ae?ae:ie>le?le:ie}te.clamp=ee;function ne(ie,le){return le*Math.round(ie/le)}te.snapToGrid=ne;function re(ie,le){return le!=null&&ie!=null&&le.x>=ie.x&&le.x<=ie.x+ie.width&&le.y>=ie.y&&le.y<=ie.y+ie.height}te.containsPoint=re;function oe(ie,le){const ae=ie.x-le.x,se=ie.y-le.y;return ae*ae+se*se}te.squaredLength=oe})(GeometryUtil||(GeometryUtil={}));class Geometry{valueOf(){return this.toJSON()}toString(){return JSON.stringify(this.toJSON())}}class Point extends Geometry{constructor(U,G){super(),this.x=U??0,this.y=G??0}round(U=0){return this.x=GeometryUtil.round(this.x,U),this.y=GeometryUtil.round(this.y,U),this}add(U,G){const ee=Point.create(U,G);return this.x+=ee.x,this.y+=ee.y,this}update(U,G){const ee=Point.create(U,G);return this.x=ee.x,this.y=ee.y,this}translate(U,G){const ee=Point.create(U,G);return this.x+=ee.x,this.y+=ee.y,this}rotate(U,G){const ee=Point.rotate(this,U,G);return this.x=ee.x,this.y=ee.y,this}scale(U,G,ee=new Point){const ne=Point.create(ee);return this.x=ne.x+U*(this.x-ne.x),this.y=ne.y+G*(this.y-ne.y),this}closest(U){if(U.length===1)return Point.create(U[0]);let G=null,ee=1/0;return U.forEach(ne=>{const re=this.squaredDistance(ne);re<ee&&(G=ne,ee=re)}),G?Point.create(G):null}distance(U){return Math.sqrt(this.squaredDistance(U))}squaredDistance(U){const G=Point.create(U),ee=this.x-G.x,ne=this.y-G.y;return ee*ee+ne*ne}manhattanDistance(U){const G=Point.create(U);return Math.abs(G.x-this.x)+Math.abs(G.y-this.y)}magnitude(){return Math.sqrt(this.x*this.x+this.y*this.y)||.01}theta(U=new Point){const G=Point.create(U),ee=-(G.y-this.y),ne=G.x-this.x;let re=Math.atan2(ee,ne);return re<0&&(re=2*Math.PI+re),180*re/Math.PI}angleBetween(U,G){if(this.equals(U)||this.equals(G))return NaN;let ee=this.theta(G)-this.theta(U);return ee<0&&(ee+=360),ee}vectorAngle(U){return new Point(0,0).angleBetween(this,U)}toPolar(U){return this.update(Point.toPolar(this,U)),this}changeInAngle(U,G,ee=new Point){return this.clone().translate(-U,-G).theta(ee)-this.theta(ee)}adhereToRect(U){return GeometryUtil.containsPoint(U,this)||(this.x=Math.min(Math.max(this.x,U.x),U.x+U.width),this.y=Math.min(Math.max(this.y,U.y),U.y+U.height)),this}bearing(U){const G=Point.create(U),ee=Angle.toRad(this.y),ne=Angle.toRad(G.y),re=this.x,oe=G.x,ie=Angle.toRad(oe-re),le=Math.sin(ie)*Math.cos(ne),ae=Math.cos(ee)*Math.sin(ne)-Math.sin(ee)*Math.cos(ne)*Math.cos(ie),se=Angle.toDeg(Math.atan2(le,ae)),ue=["NE","E","SE","S","SW","W","NW","N"];let ce=se-22.5;return ce<0&&(ce+=360),ce=parseInt(ce/45,10),ue[ce]}cross(U,G){if(U!=null&&G!=null){const ee=Point.create(U),ne=Point.create(G);return(ne.x-this.x)*(ee.y-this.y)-(ne.y-this.y)*(ee.x-this.x)}return NaN}dot(U){const G=Point.create(U);return this.x*G.x+this.y*G.y}diff(U,G){if(typeof U=="number")return new Point(this.x-U,this.y-G);const ee=Point.create(U);return new Point(this.x-ee.x,this.y-ee.y)}lerp(U,G){const ee=Point.create(U);return new Point((1-G)*this.x+G*ee.x,(1-G)*this.y+G*ee.y)}normalize(U=1){const G=U/this.magnitude();return this.scale(G,G)}move(U,G){const ee=Point.create(U),ne=Angle.toRad(ee.theta(this));return this.translate(Math.cos(ne)*G,-Math.sin(ne)*G)}reflection(U){return Point.create(U).move(this,this.distance(U))}snapToGrid(U,G){return this.x=GeometryUtil.snapToGrid(this.x,U),this.y=GeometryUtil.snapToGrid(this.y,G??U),this}equals(U){const G=Point.create(U);return G!=null&&G.x===this.x&&G.y===this.y}clone(){return Point.clone(this)}toJSON(){return Point.toJSON(this)}serialize(){return`${this.x} ${this.y}`}}(function(te){function U(G){return G!=null&&G instanceof te}te.isPoint=U})(Point||(Point={})),function(te){function U(ee){return ee!=null&&typeof ee=="object"&&typeof ee.x=="number"&&typeof ee.y=="number"}te.isPointLike=U;function G(ee){return ee!=null&&Array.isArray(ee)&&ee.length===2&&typeof ee[0]=="number"&&typeof ee[1]=="number"}te.isPointData=G}(Point||(Point={})),function(te){function U(ue,ce){return ue==null||typeof ue=="number"?new te(ue,ce):G(ue)}te.create=U;function G(ue){return te.isPoint(ue)?new te(ue.x,ue.y):Array.isArray(ue)?new te(ue[0],ue[1]):new te(ue.x,ue.y)}te.clone=G;function ee(ue){return te.isPoint(ue)?{x:ue.x,y:ue.y}:Array.isArray(ue)?{x:ue[0],y:ue[1]}:{x:ue.x,y:ue.y}}te.toJSON=ee;function ne(ue,ce,de=new te){let fe=Math.abs(ue*Math.cos(ce)),ve=Math.abs(ue*Math.sin(ce));const he=G(de),pe=Angle.normalize(Angle.toDeg(ce));return pe<90?ve=-ve:pe<180?(fe=-fe,ve=-ve):pe<270&&(fe=-fe),new te(he.x+fe,he.y+ve)}te.fromPolar=ne;function re(ue,ce=new te){const de=G(ue),fe=G(ce),ve=de.x-fe.x,he=de.y-fe.y;return new te(Math.sqrt(ve*ve+he*he),Angle.toRad(fe.theta(de)))}te.toPolar=re;function oe(ue,ce){return ue===ce?!0:ue!=null&&ce!=null?ue.x===ce.x&&ue.y===ce.y:!1}te.equals=oe;function ie(ue,ce){if(ue==null&&ce!=null||ue!=null&&ce==null||ue!=null&&ce!=null&&ue.length!==ce.length)return!1;if(ue!=null&&ce!=null){for(let de=0,fe=ue.length;de<fe;de+=1)if(!oe(ue[de],ce[de]))return!1}return!0}te.equalPoints=ie;function le(ue,ce,de,fe){return new te(GeometryUtil.random(ue,ce),GeometryUtil.random(de,fe))}te.random=le;function ae(ue,ce,de){const fe=Angle.toRad(Angle.normalize(-ce)),ve=Math.sin(fe),he=Math.cos(fe);return se(ue,he,ve,de)}te.rotate=ae;function se(ue,ce,de,fe=new te){const ve=G(ue),he=G(fe),pe=ve.x-he.x,ge=ve.y-he.y,me=pe*ce-ge*de,_e=ge*ce+pe*de;return new te(me+he.x,_e+he.y)}te.rotateEx=se}(Point||(Point={}));class Rectangle extends Geometry{get left(){return this.x}get top(){return this.y}get right(){return this.x+this.width}get bottom(){return this.y+this.height}get origin(){return new Point(this.x,this.y)}get topLeft(){return new Point(this.x,this.y)}get topCenter(){return new Point(this.x+this.width/2,this.y)}get topRight(){return new Point(this.x+this.width,this.y)}get center(){return new Point(this.x+this.width/2,this.y+this.height/2)}get bottomLeft(){return new Point(this.x,this.y+this.height)}get bottomCenter(){return new Point(this.x+this.width/2,this.y+this.height)}get bottomRight(){return new Point(this.x+this.width,this.y+this.height)}get corner(){return new Point(this.x+this.width,this.y+this.height)}get rightMiddle(){return new Point(this.x+this.width,this.y+this.height/2)}get leftMiddle(){return new Point(this.x,this.y+this.height/2)}get topLine(){return new Line(this.topLeft,this.topRight)}get rightLine(){return new Line(this.topRight,this.bottomRight)}get bottomLine(){return new Line(this.bottomLeft,this.bottomRight)}get leftLine(){return new Line(this.topLeft,this.bottomLeft)}constructor(U,G,ee,ne){super(),this.x=U??0,this.y=G??0,this.width=ee??0,this.height=ne??0}getOrigin(){return this.origin}getTopLeft(){return this.topLeft}getTopCenter(){return this.topCenter}getTopRight(){return this.topRight}getCenter(){return this.center}getCenterX(){return this.x+this.width/2}getCenterY(){return this.y+this.height/2}getBottomLeft(){return this.bottomLeft}getBottomCenter(){return this.bottomCenter}getBottomRight(){return this.bottomRight}getCorner(){return this.corner}getRightMiddle(){return this.rightMiddle}getLeftMiddle(){return this.leftMiddle}getTopLine(){return this.topLine}getRightLine(){return this.rightLine}getBottomLine(){return this.bottomLine}getLeftLine(){return this.leftLine}bbox(U){if(!U)return this.clone();const G=Angle.toRad(U),ee=Math.abs(Math.sin(G)),ne=Math.abs(Math.cos(G)),re=this.width*ne+this.height*ee,oe=this.width*ee+this.height*ne;return new Rectangle(this.x+(this.width-re)/2,this.y+(this.height-oe)/2,re,oe)}round(U=0){return this.x=GeometryUtil.round(this.x,U),this.y=GeometryUtil.round(this.y,U),this.width=GeometryUtil.round(this.width,U),this.height=GeometryUtil.round(this.height,U),this}add(U,G,ee,ne){const re=Rectangle.create(U,G,ee,ne),oe=Math.min(this.x,re.x),ie=Math.min(this.y,re.y),le=Math.max(this.x+this.width,re.x+re.width),ae=Math.max(this.y+this.height,re.y+re.height);return this.x=oe,this.y=ie,this.width=le-oe,this.height=ae-ie,this}update(U,G,ee,ne){const re=Rectangle.create(U,G,ee,ne);return this.x=re.x,this.y=re.y,this.width=re.width,this.height=re.height,this}inflate(U,G){const ee=U,ne=G??U;return this.x-=ee,this.y-=ne,this.width+=2*ee,this.height+=2*ne,this}snapToGrid(U,G){const ee=this.origin.snapToGrid(U,G),ne=this.corner.snapToGrid(U,G);return this.x=ee.x,this.y=ee.y,this.width=ne.x-ee.x,this.height=ne.y-ee.y,this}translate(U,G){const ee=Point.create(U,G);return this.x+=ee.x,this.y+=ee.y,this}scale(U,G,ee=new Point){const ne=this.origin.scale(U,G,ee);return this.x=ne.x,this.y=ne.y,this.width*=U,this.height*=G,this}rotate(U,G=this.getCenter()){if(U!==0){const ee=Angle.toRad(U),ne=Math.cos(ee),re=Math.sin(ee);let oe=this.getOrigin(),ie=this.getTopRight(),le=this.getBottomRight(),ae=this.getBottomLeft();oe=Point.rotateEx(oe,ne,re,G),ie=Point.rotateEx(ie,ne,re,G),le=Point.rotateEx(le,ne,re,G),ae=Point.rotateEx(ae,ne,re,G);const se=new Rectangle(oe.x,oe.y,0,0);se.add(ie.x,ie.y,0,0),se.add(le.x,le.y,0,0),se.add(ae.x,ae.y,0,0),this.update(se)}return this}rotate90(){const U=(this.width-this.height)/2;this.x+=U,this.y-=U;const G=this.width;return this.width=this.height,this.height=G,this}moveAndExpand(U){const G=Rectangle.clone(U);return this.x+=G.x||0,this.y+=G.y||0,this.width+=G.width||0,this.height+=G.height||0,this}getMaxScaleToFit(U,G=this.center){const ee=Rectangle.clone(U),ne=G.x,re=G.y;let oe=1/0,ie=1/0,le=1/0,ae=1/0,se=1/0,ue=1/0,ce=1/0,de=1/0;const fe=ee.topLeft;fe.x<ne&&(oe=(this.x-ne)/(fe.x-ne)),fe.y<re&&(se=(this.y-re)/(fe.y-re));const ve=ee.bottomRight;ve.x>ne&&(ie=(this.x+this.width-ne)/(ve.x-ne)),ve.y>re&&(ue=(this.y+this.height-re)/(ve.y-re));const he=ee.topRight;he.x>ne&&(le=(this.x+this.width-ne)/(he.x-ne)),he.y<re&&(ce=(this.y-re)/(he.y-re));const pe=ee.bottomLeft;return pe.x<ne&&(ae=(this.x-ne)/(pe.x-ne)),pe.y>re&&(de=(this.y+this.height-re)/(pe.y-re)),{sx:Math.min(oe,ie,le,ae),sy:Math.min(se,ue,ce,de)}}getMaxUniformScaleToFit(U,G=this.center){const ee=this.getMaxScaleToFit(U,G);return Math.min(ee.sx,ee.sy)}containsPoint(U,G){return GeometryUtil.containsPoint(this,Point.create(U,G))}containsRect(U,G,ee,ne){const re=Rectangle.create(U,G,ee,ne),oe=this.x,ie=this.y,le=this.width,ae=this.height,se=re.x,ue=re.y,ce=re.width,de=re.height;return le===0||ae===0||ce===0||de===0?!1:se>=oe&&ue>=ie&&se+ce<=oe+le&&ue+de<=ie+ae}intersectsWithLine(U){const G=[this.topLine,this.rightLine,this.bottomLine,this.leftLine],ee=[],ne=[];return G.forEach(re=>{const oe=U.intersectsWithLine(re);oe!==null&&ne.indexOf(oe.toString())<0&&(ee.push(oe),ne.push(oe.toString()))}),ee.length>0?ee:null}intersectsWithLineFromCenterToPoint(U,G){const ee=Point.clone(U),ne=this.center;let re=null;G!=null&&G!==0&&ee.rotate(G,ne);const oe=[this.topLine,this.rightLine,this.bottomLine,this.leftLine],ie=new Line(ne,ee);for(let le=oe.length-1;le>=0;le-=1){const ae=oe[le].intersectsWithLine(ie);if(ae!==null){re=ae;break}}return re&&G!=null&&G!==0&&re.rotate(-G,ne),re}intersectsWithRect(U,G,ee,ne){const re=Rectangle.create(U,G,ee,ne);if(!this.isIntersectWithRect(re))return null;const oe=this.origin,ie=this.corner,le=re.origin,ae=re.corner,se=Math.max(oe.x,le.x),ue=Math.max(oe.y,le.y);return new Rectangle(se,ue,Math.min(ie.x,ae.x)-se,Math.min(ie.y,ae.y)-ue)}isIntersectWithRect(U,G,ee,ne){const re=Rectangle.create(U,G,ee,ne),oe=this.origin,ie=this.corner,le=re.origin,ae=re.corner;return!(ae.x<=oe.x||ae.y<=oe.y||le.x>=ie.x||le.y>=ie.y)}normalize(){let U=this.x,G=this.y,ee=this.width,ne=this.height;return this.width<0&&(U=this.x+this.width,ee=-this.width),this.height<0&&(G=this.y+this.height,ne=-this.height),this.x=U,this.y=G,this.width=ee,this.height=ne,this}union(U){const G=Rectangle.clone(U),ee=this.origin,ne=this.corner,re=G.origin,oe=G.corner,ie=Math.min(ee.x,re.x),le=Math.min(ee.y,re.y),ae=Math.max(ne.x,oe.x),se=Math.max(ne.y,oe.y);return new Rectangle(ie,le,ae-ie,se-le)}getNearestSideToPoint(U){const G=Point.clone(U),ee=G.x-this.x,ne=this.x+this.width-G.x,re=G.y-this.y,oe=this.y+this.height-G.y;let ie=ee,le="left";return ne<ie&&(ie=ne,le="right"),re<ie&&(ie=re,le="top"),oe<ie&&(le="bottom"),le}getNearestPointToPoint(U){const G=Point.clone(U);if(this.containsPoint(G)){const ee=this.getNearestSideToPoint(G);if(ee==="left")return new Point(this.x,G.y);if(ee==="top")return new Point(G.x,this.y);if(ee==="right")return new Point(this.x+this.width,G.y);if(ee==="bottom")return new Point(G.x,this.y+this.height)}return G.adhereToRect(this)}equals(U){return U!=null&&U.x===this.x&&U.y===this.y&&U.width===this.width&&U.height===this.height}clone(){return new Rectangle(this.x,this.y,this.width,this.height)}toJSON(){return{x:this.x,y:this.y,width:this.width,height:this.height}}serialize(){return`${this.x} ${this.y} ${this.width} ${this.height}`}}(function(te){function U(G){return G!=null&&G instanceof te}te.isRectangle=U})(Rectangle||(Rectangle={})),function(te){function U(G){return G!=null&&typeof G=="object"&&typeof G.x=="number"&&typeof G.y=="number"&&typeof G.width=="number"&&typeof G.height=="number"}te.isRectangleLike=U}(Rectangle||(Rectangle={})),function(te){function U(oe,ie,le,ae){return oe==null||typeof oe=="number"?new te(oe,ie,le,ae):G(oe)}te.create=U;function G(oe){return te.isRectangle(oe)?oe.clone():Array.isArray(oe)?new te(oe[0],oe[1],oe[2],oe[3]):new te(oe.x,oe.y,oe.width,oe.height)}te.clone=G;function ee(oe){return new te(oe.x-oe.a,oe.y-oe.b,2*oe.a,2*oe.b)}te.fromEllipse=ee;function ne(oe){return new te(0,0,oe.width,oe.height)}te.fromSize=ne;function re(oe,ie){return new te(oe.x,oe.y,ie.width,ie.height)}te.fromPositionAndSize=re}(Rectangle||(Rectangle={}));class Line extends Geometry{get center(){return new Point((this.start.x+this.end.x)/2,(this.start.y+this.end.y)/2)}constructor(U,G,ee,ne){super(),typeof U=="number"&&typeof G=="number"?(this.start=new Point(U,G),this.end=new Point(ee,ne)):(this.start=Point.create(U),this.end=Point.create(G))}getCenter(){return this.center}round(U=0){return this.start.round(U),this.end.round(U),this}translate(U,G){return typeof U=="number"?(this.start.translate(U,G),this.end.translate(U,G)):(this.start.translate(U),this.end.translate(U)),this}rotate(U,G){return this.start.rotate(U,G),this.end.rotate(U,G),this}scale(U,G,ee){return this.start.scale(U,G,ee),this.end.scale(U,G,ee),this}length(){return Math.sqrt(this.squaredLength())}squaredLength(){const U=this.start.x-this.end.x,G=this.start.y-this.end.y;return U*U+G*G}setLength(U){const G=this.length();if(!G)return this;const ee=U/G;return this.scale(ee,ee,this.start)}parallel(U){const G=this.clone();if(!G.isDifferentiable())return G;const{start:ee,end:ne}=G,re=ee.clone().rotate(270,ne),oe=ne.clone().rotate(90,ee);return ee.move(oe,U),ne.move(re,U),G}vector(){return new Point(this.end.x-this.start.x,this.end.y-this.start.y)}angle(){const U=new Point(this.start.x+1,this.start.y);return this.start.angleBetween(this.end,U)}bbox(){const U=Math.min(this.start.x,this.end.x),G=Math.min(this.start.y,this.end.y),ee=Math.max(this.start.x,this.end.x),ne=Math.max(this.start.y,this.end.y);return new Rectangle(U,G,ee-U,ne-G)}bearing(){return this.start.bearing(this.end)}closestPoint(U){return this.pointAt(this.closestPointNormalizedLength(U))}closestPointLength(U){return this.closestPointNormalizedLength(U)*this.length()}closestPointTangent(U){return this.tangentAt(this.closestPointNormalizedLength(U))}closestPointNormalizedLength(U){const G=this.vector().dot(new Line(this.start,U).vector()),ee=Math.min(1,Math.max(0,G/this.squaredLength()));return Number.isNaN(ee)?0:ee}pointAt(U){const G=this.start,ee=this.end;return U<=0?G.clone():U>=1?ee.clone():G.lerp(ee,U)}pointAtLength(U){const G=this.start,ee=this.end;let ne=!0;U<0&&(ne=!1,U=-U);const re=this.length();if(U>=re)return ne?ee.clone():G.clone();const oe=(ne?U:re-U)/re;return this.pointAt(oe)}divideAt(U){const G=this.pointAt(U);return[new Line(this.start,G),new Line(G,this.end)]}divideAtLength(U){const G=this.pointAtLength(U);return[new Line(this.start,G),new Line(G,this.end)]}containsPoint(U){const G=this.start,ee=this.end;if(G.cross(U,ee)!==0)return!1;const ne=this.length();return!(new Line(G,U).length()>ne||new Line(U,ee).length()>ne)}intersect(U,G){const ee=U.intersectsWithLine(this,G);return ee?Array.isArray(ee)?ee:[ee]:null}intersectsWithLine(U){const G=new Point(this.end.x-this.start.x,this.end.y-this.start.y),ee=new Point(U.end.x-U.start.x,U.end.y-U.start.y),ne=G.x*ee.y-G.y*ee.x,re=new Point(U.start.x-this.start.x,U.start.y-this.start.y),oe=re.x*ee.y-re.y*ee.x,ie=re.x*G.y-re.y*G.x;if(ne===0||oe*ne<0||ie*ne<0)return null;if(ne>0){if(oe>ne||ie>ne)return null}else if(oe<ne||ie<ne)return null;return new Point(this.start.x+oe*G.x/ne,this.start.y+oe*G.y/ne)}isDifferentiable(){return!this.start.equals(this.end)}pointOffset(U){const G=Point.clone(U),ee=this.start,ne=this.end;return((ne.x-ee.x)*(G.y-ee.y)-(ne.y-ee.y)*(G.x-ee.x))/this.length()}pointSquaredDistance(U,G){const ee=Point.create(U,G);return this.closestPoint(ee).squaredDistance(ee)}pointDistance(U,G){const ee=Point.create(U,G);return this.closestPoint(ee).distance(ee)}tangentAt(U){if(!this.isDifferentiable())return null;const G=this.start,ee=this.end,ne=this.pointAt(U),re=new Line(G,ee);return re.translate(ne.x-G.x,ne.y-G.y),re}tangentAtLength(U){if(!this.isDifferentiable())return null;const G=this.start,ee=this.end,ne=this.pointAtLength(U),re=new Line(G,ee);return re.translate(ne.x-G.x,ne.y-G.y),re}relativeCcw(U,G){const ee=Point.create(U,G);let ne=ee.x-this.start.x,re=ee.y-this.start.y;const oe=this.end.x-this.start.x,ie=this.end.y-this.start.y;let le=ne*ie-re*oe;return le===0&&(le=ne*oe+re*ie,le>0&&(ne-=oe,re-=ie,le=ne*oe+re*ie,le<0&&(le=0))),le<0?-1:le>0?1:0}equals(U){return U!=null&&this.start.x===U.start.x&&this.start.y===U.start.y&&this.end.x===U.end.x&&this.end.y===U.end.y}clone(){return new Line(this.start,this.end)}toJSON(){return{start:this.start.toJSON(),end:this.end.toJSON()}}serialize(){return[this.start.serialize(),this.end.serialize()].join(" ")}}(function(te){function U(G){return G!=null&&G instanceof te}te.isLine=U})(Line||(Line={}));class Ellipse extends Geometry{get center(){return new Point(this.x,this.y)}constructor(U,G,ee,ne){super(),this.x=U??0,this.y=G??0,this.a=ee??0,this.b=ne??0}bbox(){return Rectangle.fromEllipse(this)}getCenter(){return this.center}inflate(U,G){const ee=U,ne=G??U;return this.a+=2*ee,this.b+=2*ne,this}normalizedDistance(U,G){const ee=Point.create(U,G),ne=ee.x-this.x,re=ee.y-this.y,oe=this.a,ie=this.b;return ne*ne/(oe*oe)+re*re/(ie*ie)}containsPoint(U,G){return this.normalizedDistance(U,G)<=1}intersectsWithLine(U){const G=[],ee=this.a,ne=this.b,re=U.start,oe=U.end,ie=U.vector(),le=re.diff(new Point(this.x,this.y)),ae=new Point(ie.x/(ee*ee),ie.y/(ne*ne)),se=new Point(le.x/(ee*ee),le.y/(ne*ne)),ue=ie.dot(ae),ce=ie.dot(se),de=le.dot(se)-1,fe=ce*ce-ue*de;if(fe<0)return null;if(fe>0){const ve=Math.sqrt(fe),he=(-ce-ve)/ue,pe=(-ce+ve)/ue;if((he<0||he>1)&&(pe<0||pe>1))return null;he>=0&&he<=1&&G.push(re.lerp(oe,he)),pe>=0&&pe<=1&&G.push(re.lerp(oe,pe))}else{const ve=-ce/ue;if(ve>=0&&ve<=1)G.push(re.lerp(oe,ve));else return null}return G}intersectsWithLineFromCenterToPoint(U,G=0){const ee=Point.clone(U);G&&ee.rotate(G,this.getCenter());const ne=ee.x-this.x,re=ee.y-this.y;let oe;if(ne===0)return oe=this.bbox().getNearestPointToPoint(ee),G?oe.rotate(-G,this.getCenter()):oe;const ie=re/ne,le=ie*ie,ae=this.a*this.a,se=this.b*this.b;let ue=Math.sqrt(1/(1/ae+le/se));ue=ne<0?-ue:ue;const ce=ie*ue;return oe=new Point(this.x+ue,this.y+ce),G?oe.rotate(-G,this.getCenter()):oe}tangentTheta(U){const G=Point.clone(U),ee=G.x,ne=G.y,re=this.a,oe=this.b,ie=this.bbox().center,le=ie.x,ae=ie.y,se=30,ue=ee>ie.x+re/2,ce=ee<ie.x-re/2;let de,fe;return ue||ce?(fe=ee>ie.x?ne-se:ne+se,de=re*re/(ee-le)-re*re*(ne-ae)*(fe-ae)/(oe*oe*(ee-le))+le):(de=ne>ie.y?ee+se:ee-se,fe=oe*oe/(ne-ae)-oe*oe*(ee-le)*(de-le)/(re*re*(ne-ae))+ae),new Point(de,fe).theta(G)}scale(U,G){return this.a*=U,this.b*=G,this}rotate(U,G){const ee=Rectangle.fromEllipse(this);ee.rotate(U,G);const ne=Ellipse.fromRect(ee);return this.a=ne.a,this.b=ne.b,this.x=ne.x,this.y=ne.y,this}translate(U,G){const ee=Point.create(U,G);return this.x+=ee.x,this.y+=ee.y,this}equals(U){return U!=null&&U.x===this.x&&U.y===this.y&&U.a===this.a&&U.b===this.b}clone(){return new Ellipse(this.x,this.y,this.a,this.b)}toJSON(){return{x:this.x,y:this.y,a:this.a,b:this.b}}serialize(){return`${this.x} ${this.y} ${this.a} ${this.b}`}}(function(te){function U(G){return G!=null&&G instanceof te}te.isEllipse=U})(Ellipse||(Ellipse={})),function(te){function U(ne,re,oe,ie){return ne==null||typeof ne=="number"?new te(ne,re,oe,ie):G(ne)}te.create=U;function G(ne){return te.isEllipse(ne)?ne.clone():Array.isArray(ne)?new te(ne[0],ne[1],ne[2],ne[3]):new te(ne.x,ne.y,ne.a,ne.b)}te.parse=G;function ee(ne){const re=ne.center;return new te(re.x,re.y,ne.width/2,ne.height/2)}te.fromRect=ee}(Ellipse||(Ellipse={}));const regexSupportedData=new RegExp("^[\\s\\dLMCZz,.]*$");function isValid(te){return typeof te!="string"?!1:regexSupportedData.test(te)}function mod(te,U){return(te%U+U)%U}function draw(te,U,G,ee,ne){const re=[],oe=te[te.length-1],ie=U!=null&&U>0,le=U||0;if(ee&&ie){te=te.slice();const ue=te[0],ce=new Point(oe.x+(ue.x-oe.x)/2,oe.y+(ue.y-oe.y)/2);te.splice(0,0,ce)}let ae=te[0],se=1;for(G?re.push("M",ae.x,ae.y):re.push("L",ae.x,ae.y);se<(ee?te.length:te.length-1);){let ue=te[mod(se,te.length)],ce=ae.x-ue.x,de=ae.y-ue.y;if(ie&&(ce!==0||de!==0)&&(ne==null||ne.indexOf(se-1)<0)){let fe=Math.sqrt(ce*ce+de*de);const ve=ce*Math.min(le,fe/2)/fe,he=de*Math.min(le,fe/2)/fe,pe=ue.x+ve,ge=ue.y+he;re.push("L",pe,ge);let me=te[mod(se+1,te.length)];for(;se<te.length-2&&Math.round(me.x-ue.x)===0&&Math.round(me.y-ue.y)===0;)me=te[mod(se+2,te.length)],se+=1;ce=me.x-ue.x,de=me.y-ue.y,fe=Math.max(1,Math.sqrt(ce*ce+de*de));const _e=ce*Math.min(le,fe/2)/fe,ye=de*Math.min(le,fe/2)/fe,be=ue.x+_e,xe=ue.y+ye;re.push("Q",ue.x,ue.y,be,xe),ue=new Point(be,xe)}else re.push("L",ue.x,ue.y);ae=ue,se+=1}return ee?re.push("Z"):re.push("L",oe.x,oe.y),re.map(ue=>typeof ue=="string"?ue:+ue.toFixed(3)).join(" ")}function drawPoints(te,U={}){const G=[];return te&&te.length&&te.forEach(ee=>{Array.isArray(ee)?G.push({x:ee[0],y:ee[1]}):G.push({x:ee.x,y:ee.y})}),draw(G,U.round,U.initialMove==null||U.initialMove,U.close,U.exclude)}function arcToCurves(te,U,G,ee,ne=0,re=0,oe=0,ie,le){if(G===0||ee===0)return[];ie-=te,le-=U,G=Math.abs(G),ee=Math.abs(ee);const ae=-ie/2,se=-le/2,ue=Math.cos(ne*Math.PI/180),ce=Math.sin(ne*Math.PI/180),de=ue*ae+ce*se,fe=-1*ce*ae+ue*se,ve=de*de,he=fe*fe,pe=G*G,ge=ee*ee,me=ve/pe+he/ge;let _e;if(me>1)G=Math.sqrt(me)*G,ee=Math.sqrt(me)*ee,_e=0;else{let Oe=1;re===oe&&(Oe=-1),_e=Oe*Math.sqrt((pe*ge-pe*he-ge*ve)/(pe*he+ge*ve))}const ye=_e*G*fe/ee,be=-1*_e*ee*de/G,xe=ue*ye-ce*be+ie/2,Ce=ce*ye+ue*be+le/2;let $e=Math.atan2((fe-be)/ee,(de-ye)/G)-Math.atan2(0,1),Ee=$e>=0?$e:2*Math.PI+$e;$e=Math.atan2((-fe-be)/ee,(-de-ye)/G)-Math.atan2((fe-be)/ee,(de-ye)/G);let Ve=$e>=0?$e:2*Math.PI+$e;oe===0&&Ve>0?Ve-=2*Math.PI:oe!==0&&Ve<0&&(Ve+=2*Math.PI);const Ne=Ve*2/Math.PI,Se=Math.ceil(Ne<0?-1*Ne:Ne),Pe=Ve/Se,we=8/3*Math.sin(Pe/4)*Math.sin(Pe/4)/Math.sin(Pe/2),ke=ue*G,Te=ue*ee,De=ce*G,Ie=ce*ee;let Me=Math.cos(Ee),Be=Math.sin(Ee),Ae=-we*(ke*Be+Ie*Me),ze=-we*(De*Be-Te*Me),Re=0,Fe=0;const je=[];for(let Oe=0;Oe<Se;Oe+=1){Ee+=Pe,Me=Math.cos(Ee),Be=Math.sin(Ee),Re=ke*Me-Ie*Be+xe,Fe=De*Me+Te*Be+Ce;const Le=-we*(ke*Be+Ie*Me),Ge=-we*(De*Be-Te*Me),qe=Oe*6;je[qe]=Number(Ae+te),je[qe+1]=Number(ze+U),je[qe+2]=Number(Re-Le+te),je[qe+3]=Number(Fe-Ge+U),je[qe+4]=Number(Re+te),je[qe+5]=Number(Fe+U),Ae=Re+Le,ze=Fe+Ge}return je.map(Oe=>+Oe.toFixed(2))}function drawArc(te,U,G,ee,ne=0,re=0,oe=0,ie,le){const ae=[],se=arcToCurves(te,U,G,ee,ne,re,oe,ie,le);if(se!=null)for(let ue=0,ce=se.length;ue<ce;ue+=6)ae.push("C",se[ue],se[ue+1],se[ue+2],se[ue+3],se[ue+4],se[ue+5]);return ae.join(" ")}class Polyline extends Geometry{get start(){return this.points[0]||null}get end(){return this.points[this.points.length-1]||null}constructor(U){if(super(),U!=null){if(typeof U=="string")return Polyline.parse(U);this.points=U.map(G=>Point.create(G))}else this.points=[]}scale(U,G,ee=new Point){return this.points.forEach(ne=>ne.scale(U,G,ee)),this}rotate(U,G){return this.points.forEach(ee=>ee.rotate(U,G)),this}translate(U,G){const ee=Point.create(U,G);return this.points.forEach(ne=>ne.translate(ee.x,ee.y)),this}round(U=0){return this.points.forEach(G=>G.round(U)),this}bbox(){if(this.points.length===0)return new Rectangle;let U=1/0,G=-1/0,ee=1/0,ne=-1/0;const re=this.points;for(let oe=0,ie=re.length;oe<ie;oe+=1){const le=re[oe],ae=le.x,se=le.y;ae<U&&(U=ae),ae>G&&(G=ae),se<ee&&(ee=se),se>ne&&(ne=se)}return new Rectangle(U,ee,G-U,ne-ee)}closestPoint(U){const G=this.closestPointLength(U);return this.pointAtLength(G)}closestPointLength(U){const G=this.points,ee=G.length;if(ee===0||ee===1)return 0;let ne=0,re=0,oe=1/0;for(let ie=0,le=ee-1;ie<le;ie+=1){const ae=new Line(G[ie],G[ie+1]),se=ae.length(),ue=ae.closestPointNormalizedLength(U),de=ae.pointAt(ue).squaredDistance(U);de<oe&&(oe=de,re=ne+ue*se),ne+=se}return re}closestPointNormalizedLength(U){const G=this.length();return G===0?0:this.closestPointLength(U)/G}closestPointTangent(U){const G=this.closestPointLength(U);return this.tangentAtLength(G)}containsPoint(U){if(this.points.length===0)return!1;const G=Point.clone(U),ee=G.x,ne=G.y,re=this.points,oe=re.length;let ie=oe-1,le=0;for(let ae=0;ae<oe;ae+=1){const se=re[ie],ue=re[ae];if(G.equals(se))return!0;const ce=new Line(se,ue);if(ce.containsPoint(U))return!0;if(ne<=se.y&&ne>ue.y||ne>se.y&&ne<=ue.y){const de=se.x-ee>ue.x-ee?se.x-ee:ue.x-ee;if(de>=0){const fe=new Point(ee+de,ne),ve=new Line(U,fe);ce.intersectsWithLine(ve)&&(le+=1)}}ie=ae}return le%2===1}intersectsWithLine(U){const G=[];for(let ee=0,ne=this.points.length-1;ee<ne;ee+=1){const re=this.points[ee],oe=this.points[ee+1],ie=U.intersectsWithLine(new Line(re,oe));ie&&G.push(ie)}return G.length>0?G:null}isDifferentiable(){for(let U=0,G=this.points.length-1;U<G;U+=1){const ee=this.points[U],ne=this.points[U+1];if(new Line(ee,ne).isDifferentiable())return!0}return!1}length(){let U=0;for(let G=0,ee=this.points.length-1;G<ee;G+=1){const ne=this.points[G],re=this.points[G+1];U+=ne.distance(re)}return U}pointAt(U){const G=this.points,ee=G.length;if(ee===0)return null;if(ee===1||U<=0)return G[0].clone();if(U>=1)return G[ee-1].clone();const re=this.length()*U;return this.pointAtLength(re)}pointAtLength(U){const G=this.points,ee=G.length;if(ee===0)return null;if(ee===1)return G[0].clone();let ne=!0;U<0&&(ne=!1,U=-U);let re=0;for(let ie=0,le=ee-1;ie<le;ie+=1){const ae=ne?ie:le-1-ie,se=G[ae],ue=G[ae+1],ce=new Line(se,ue),de=se.distance(ue);if(U<=re+de)return ce.pointAtLength((ne?1:-1)*(U-re));re+=de}return(ne?G[ee-1]:G[0]).clone()}tangentAt(U){const ee=this.points.length;if(ee===0||ee===1)return null;U<0&&(U=0),U>1&&(U=1);const re=this.length()*U;return this.tangentAtLength(re)}tangentAtLength(U){const G=this.points,ee=G.length;if(ee===0||ee===1)return null;let ne=!0;U<0&&(ne=!1,U=-U);let re,oe=0;for(let ie=0,le=ee-1;ie<le;ie+=1){const ae=ne?ie:le-1-ie,se=G[ae],ue=G[ae+1],ce=new Line(se,ue),de=se.distance(ue);if(ce.isDifferentiable()){if(U<=oe+de)return ce.tangentAtLength((ne?1:-1)*(U-oe));re=ce}oe+=de}if(re){const ie=ne?1:0;return re.tangentAt(ie)}return null}simplify(U={}){const G=this.points;if(G.length<3)return this;const ee=U.threshold||0;let ne=0;for(;G[ne+2];){const re=ne,oe=ne+1,ie=ne+2,le=G[re],ae=G[oe],se=G[ie];new Line(le,se).closestPoint(ae).distance(ae)<=ee?G.splice(oe,1):ne+=1}return this}toHull(){const U=this.points,G=U.length;if(G===0)return new Polyline;let ee=U[0];for(let ce=1;ce<G;ce+=1)(U[ce].y<ee.y||U[ce].y===ee.y&&U[ce].x>ee.x)&&(ee=U[ce]);const ne=[];for(let ce=0;ce<G;ce+=1){let de=ee.theta(U[ce]);de===0&&(de=360),ne.push([U[ce],ce,de])}if(ne.sort((ce,de)=>{let fe=ce[2]-de[2];return fe===0&&(fe=de[1]-ce[1]),fe}),ne.length>2){const ce=ne[ne.length-1];ne.unshift(ce)}const re={},oe=[],ie=ce=>`${ce[0].toString()}@${ce[1]}`;for(;ne.length!==0;){const ce=ne.pop(),de=ce[0];if(re[ie(ce)])continue;let fe=!1;for(;!fe;)if(oe.length<2)oe.push(ce),fe=!0;else{const ve=oe.pop(),he=ve[0],pe=oe.pop(),ge=pe[0],me=ge.cross(he,de);if(me<0)oe.push(pe),oe.push(ve),oe.push(ce),fe=!0;else if(me===0){const ye=he.angleBetween(ge,de);Math.abs(ye-180)<1e-10||he.equals(de)||ge.equals(he)?(re[ie(ve)]=he,oe.push(pe)):Math.abs((ye+1)%360-1)<1e-10&&(oe.push(pe),ne.push(ve))}else re[ie(ve)]=he,oe.push(pe)}}oe.length>2&&oe.pop();let le,ae=-1;for(let ce=0,de=oe.length;ce<de;ce+=1){const fe=oe[ce][1];(le===void 0||fe<le)&&(le=fe,ae=ce)}let se=[];if(ae>0){const ce=oe.slice(ae),de=oe.slice(0,ae);se=ce.concat(de)}else se=oe;const ue=[];for(let ce=0,de=se.length;ce<de;ce+=1)ue.push(se[ce][0]);return new Polyline(ue)}equals(U){return U==null||U.points.length!==this.points.length?!1:U.points.every((G,ee)=>G.equals(this.points[ee]))}clone(){return new Polyline(this.points.map(U=>U.clone()))}toJSON(){return this.points.map(U=>U.toJSON())}serialize(){return this.points.map(U=>`${U.serialize()}`).join(" ")}}(function(te){function U(G){return G!=null&&G instanceof te}te.isPolyline=U})(Polyline||(Polyline={})),function(te){function U(G){const ee=G.trim();if(ee==="")return new te;const ne=[],re=ee.split(/\s*,\s*|\s+/);for(let oe=0,ie=re.length;oe<ie;oe+=2)ne.push({x:+re[oe],y:+re[oe+1]});return new te(ne)}te.parse=U}(Polyline||(Polyline={}));class Curve extends Geometry{constructor(U,G,ee,ne){super(),this.PRECISION=3,this.start=Point.create(U),this.controlPoint1=Point.create(G),this.controlPoint2=Point.create(ee),this.end=Point.create(ne)}bbox(){const U=this.start,G=this.controlPoint1,ee=this.controlPoint2,ne=this.end,re=U.x,oe=U.y,ie=G.x,le=G.y,ae=ee.x,se=ee.y,ue=ne.x,ce=ne.y,de=[],fe=[[],[]];let ve,he,pe,ge,me,_e,ye,be;for(let ke=0;ke<2;ke+=1){if(ke===0?(he=6*re-12*ie+6*ae,ve=-3*re+9*ie-9*ae+3*ue,pe=3*ie-3*re):(he=6*oe-12*le+6*se,ve=-3*oe+9*le-9*se+3*ce,pe=3*le-3*oe),Math.abs(ve)<1e-12){if(Math.abs(he)<1e-12)continue;ge=-pe/he,ge>0&&ge<1&&de.push(ge);continue}ye=he*he-4*pe*ve,be=Math.sqrt(ye),!(ye<0)&&(me=(-he+be)/(2*ve),me>0&&me<1&&de.push(me),_e=(-he-be)/(2*ve),_e>0&&_e<1&&de.push(_e))}let xe,Ce,$e,Ee=de.length;const Ve=Ee;for(;Ee;)Ee-=1,ge=de[Ee],$e=1-ge,xe=$e*$e*$e*re+3*$e*$e*ge*ie+3*$e*ge*ge*ae+ge*ge*ge*ue,fe[0][Ee]=xe,Ce=$e*$e*$e*oe+3*$e*$e*ge*le+3*$e*ge*ge*se+ge*ge*ge*ce,fe[1][Ee]=Ce;de[Ve]=0,de[Ve+1]=1,fe[0][Ve]=re,fe[1][Ve]=oe,fe[0][Ve+1]=ue,fe[1][Ve+1]=ce,de.length=Ve+2,fe[0].length=Ve+2,fe[1].length=Ve+2;const Ne=Math.min.apply(null,fe[0]),Se=Math.min.apply(null,fe[1]),Pe=Math.max.apply(null,fe[0]),we=Math.max.apply(null,fe[1]);return new Rectangle(Ne,Se,Pe-Ne,we-Se)}closestPoint(U,G={}){return this.pointAtT(this.closestPointT(U,G))}closestPointLength(U,G={}){const ee=this.getOptions(G);return this.lengthAtT(this.closestPointT(U,ee),ee)}closestPointNormalizedLength(U,G={}){const ee=this.getOptions(G),ne=this.closestPointLength(U,ee);if(!ne)return 0;const re=this.length(ee);return re===0?0:ne/re}closestPointT(U,G={}){const ee=this.getPrecision(G),ne=this.getDivisions(G),re=Math.pow(10,-ee);let oe=null,ie=0,le=0,ae=0,se=0,ue=0,ce=null;const de=ne.length;let fe=de>0?1/de:0;for(ne.forEach((ve,he)=>{const pe=ve.start.distance(U),ge=ve.end.distance(U),me=pe+ge;(ce==null||me<ce)&&(oe=ve,ie=he*fe,le=(he+1)*fe,ae=pe,se=ge,ce=me,ue=ve.endpointDistance())});;){const ve=ae?Math.abs(ae-se)/ae:0,he=se!=null?Math.abs(ae-se)/se:0,pe=ve<re||he<re,ge=ae?ae<ue*re:!0,me=se?se<ue*re:!0;if(pe||(ge||me))return ae<=se?ie:le;const ye=oe.divide(.5);fe/=2;const be=ye[0].start.distance(U),xe=ye[0].end.distance(U),Ce=be+xe,$e=ye[1].start.distance(U),Ee=ye[1].end.distance(U),Ve=$e+Ee;Ce<=Ve?(oe=ye[0],le-=fe,ae=be,se=xe):(oe=ye[1],ie+=fe,ae=$e,se=Ee)}}closestPointTangent(U,G={}){return this.tangentAtT(this.closestPointT(U,G))}containsPoint(U,G={}){return this.toPolyline(G).containsPoint(U)}divideAt(U,G={}){if(U<=0)return this.divideAtT(0);if(U>=1)return this.divideAtT(1);const ee=this.tAt(U,G);return this.divideAtT(ee)}divideAtLength(U,G={}){const ee=this.tAtLength(U,G);return this.divideAtT(ee)}divide(U){return this.divideAtT(U)}divideAtT(U){const G=this.start,ee=this.controlPoint1,ne=this.controlPoint2,re=this.end;if(U<=0)return[new Curve(G,G,G,G),new Curve(G,ee,ne,re)];if(U>=1)return[new Curve(G,ee,ne,re),new Curve(re,re,re,re)];const oe=this.getSkeletonPoints(U),ie=oe.startControlPoint1,le=oe.startControlPoint2,ae=oe.divider,se=oe.dividerControlPoint1,ue=oe.dividerControlPoint2;return[new Curve(G,ie,le,ae),new Curve(ae,se,ue,re)]}endpointDistance(){return this.start.distance(this.end)}getSkeletonPoints(U){const G=this.start,ee=this.controlPoint1,ne=this.controlPoint2,re=this.end;if(U<=0)return{startControlPoint1:G.clone(),startControlPoint2:G.clone(),divider:G.clone(),dividerControlPoint1:ee.clone(),dividerControlPoint2:ne.clone()};if(U>=1)return{startControlPoint1:ee.clone(),startControlPoint2:ne.clone(),divider:re.clone(),dividerControlPoint1:re.clone(),dividerControlPoint2:re.clone()};const oe=new Line(G,ee).pointAt(U),ie=new Line(ee,ne).pointAt(U),le=new Line(ne,re).pointAt(U),ae=new Line(oe,ie).pointAt(U),se=new Line(ie,le).pointAt(U),ue=new Line(ae,se).pointAt(U);return{startControlPoint1:oe,startControlPoint2:ae,divider:ue,dividerControlPoint1:se,dividerControlPoint2:le}}getSubdivisions(U={}){const G=this.getPrecision(U);let ee=[new Curve(this.start,this.controlPoint1,this.controlPoint2,this.end)];if(G===0)return ee;let ne=this.endpointDistance();const re=Math.pow(10,-G);let oe=0;for(;;){oe+=1;const ie=[];ee.forEach(se=>{const ue=se.divide(.5);ie.push(ue[0],ue[1])});const le=ie.reduce((se,ue)=>se+ue.endpointDistance(),0),ae=le!==0?(le-ne)/le:0;if(oe>1&&ae<re)return ie;ee=ie,ne=le}}length(U={}){return this.getDivisions(U).reduce((ee,ne)=>ee+ne.endpointDistance(),0)}lengthAtT(U,G={}){if(U<=0)return 0;const ee=G.precision===void 0?this.PRECISION:G.precision;return this.divide(U)[0].length({precision:ee})}pointAt(U,G={}){if(U<=0)return this.start.clone();if(U>=1)return this.end.clone();const ee=this.tAt(U,G);return this.pointAtT(ee)}pointAtLength(U,G={}){const ee=this.tAtLength(U,G);return this.pointAtT(ee)}pointAtT(U){return U<=0?this.start.clone():U>=1?this.end.clone():this.getSkeletonPoints(U).divider}isDifferentiable(){const U=this.start,G=this.controlPoint1,ee=this.controlPoint2,ne=this.end;return!(U.equals(G)&&G.equals(ee)&&ee.equals(ne))}tangentAt(U,G={}){if(!this.isDifferentiable())return null;U<0?U=0:U>1&&(U=1);const ee=this.tAt(U,G);return this.tangentAtT(ee)}tangentAtLength(U,G={}){if(!this.isDifferentiable())return null;const ee=this.tAtLength(U,G);return this.tangentAtT(ee)}tangentAtT(U){if(!this.isDifferentiable())return null;U<0&&(U=0),U>1&&(U=1);const G=this.getSkeletonPoints(U),ee=G.startControlPoint2,ne=G.dividerControlPoint1,re=G.divider,oe=new Line(ee,ne);return oe.translate(re.x-ee.x,re.y-ee.y),oe}getPrecision(U={}){return U.precision==null?this.PRECISION:U.precision}getDivisions(U={}){if(U.subdivisions!=null)return U.subdivisions;const G=this.getPrecision(U);return this.getSubdivisions({precision:G})}getOptions(U={}){const G=this.getPrecision(U),ee=this.getDivisions(U);return{precision:G,subdivisions:ee}}tAt(U,G={}){if(U<=0)return 0;if(U>=1)return 1;const ee=this.getOptions(G),re=this.length(ee)*U;return this.tAtLength(re,ee)}tAtLength(U,G={}){let ee=!0;U<0&&(ee=!1,U=-U);const ne=this.getPrecision(G),re=this.getDivisions(G),oe={precision:ne,subdivisions:re};let ie=null,le,ae,se=0,ue=0,ce=0;const de=re.length;let fe=de>0?1/de:0;for(let pe=0;pe<de;pe+=1){const ge=ee?pe:de-1-pe,me=re[pe],_e=me.endpointDistance();if(U<=ce+_e){ie=me,le=ge*fe,ae=(ge+1)*fe,se=ee?U-ce:_e+ce-U,ue=ee?_e+ce-U:U-ce;break}ce+=_e}if(ie==null)return ee?1:0;const ve=this.length(oe),he=Math.pow(10,-ne);for(;;){let pe;if(pe=ve!==0?se/ve:0,pe<he)return le;if(pe=ve!==0?ue/ve:0,pe<he)return ae;let ge,me;const _e=ie.divide(.5);fe/=2;const ye=_e[0].endpointDistance(),be=_e[1].endpointDistance();se<=ye?(ie=_e[0],ae-=fe,ge=se,me=ye-ge):(ie=_e[1],le+=fe,ge=se-ye,me=be-ge),se=ge,ue=me}}toPoints(U={}){const G=this.getDivisions(U),ee=[G[0].start.clone()];return G.forEach(ne=>ee.push(ne.end.clone())),ee}toPolyline(U={}){return new Polyline(this.toPoints(U))}scale(U,G,ee){return this.start.scale(U,G,ee),this.controlPoint1.scale(U,G,ee),this.controlPoint2.scale(U,G,ee),this.end.scale(U,G,ee),this}rotate(U,G){return this.start.rotate(U,G),this.controlPoint1.rotate(U,G),this.controlPoint2.rotate(U,G),this.end.rotate(U,G),this}translate(U,G){return typeof U=="number"?(this.start.translate(U,G),this.controlPoint1.translate(U,G),this.controlPoint2.translate(U,G),this.end.translate(U,G)):(this.start.translate(U),this.controlPoint1.translate(U),this.controlPoint2.translate(U),this.end.translate(U)),this}equals(U){return U!=null&&this.start.equals(U.start)&&this.controlPoint1.equals(U.controlPoint1)&&this.controlPoint2.equals(U.controlPoint2)&&this.end.equals(U.end)}clone(){return new Curve(this.start,this.controlPoint1,this.controlPoint2,this.end)}toJSON(){return{start:this.start.toJSON(),controlPoint1:this.controlPoint1.toJSON(),controlPoint2:this.controlPoint2.toJSON(),end:this.end.toJSON()}}serialize(){return[this.start.serialize(),this.controlPoint1.serialize(),this.controlPoint2.serialize(),this.end.serialize()].join(" ")}}(function(te){function U(G){return G!=null&&G instanceof te}te.isCurve=U})(Curve||(Curve={})),function(te){function U(ne){const re=ne.length,oe=[],ie=[];let le=2;oe[0]=ne[0]/le;for(let ae=1;ae<re;ae+=1)ie[ae]=1/le,le=(ae<re-1?4:3.5)-ie[ae],oe[ae]=(ne[ae]-oe[ae-1])/le;for(let ae=1;ae<re;ae+=1)oe[re-ae-1]-=ie[re-ae]*oe[re-ae];return oe}function G(ne){const re=ne.map(ce=>Point.clone(ce)),oe=[],ie=[],le=re.length-1;if(le===1)return oe[0]=new Point((2*re[0].x+re[1].x)/3,(2*re[0].y+re[1].y)/3),ie[0]=new Point(2*oe[0].x-re[0].x,2*oe[0].y-re[0].y),[oe,ie];const ae=[];for(let ce=1;ce<le-1;ce+=1)ae[ce]=4*re[ce].x+2*re[ce+1].x;ae[0]=re[0].x+2*re[1].x,ae[le-1]=(8*re[le-1].x+re[le].x)/2;const se=U(ae);for(let ce=1;ce<le-1;ce+=1)ae[ce]=4*re[ce].y+2*re[ce+1].y;ae[0]=re[0].y+2*re[1].y,ae[le-1]=(8*re[le-1].y+re[le].y)/2;const ue=U(ae);for(let ce=0;ce<le;ce+=1)oe.push(new Point(se[ce],ue[ce])),ce<le-1?ie.push(new Point(2*re[ce+1].x-se[ce+1],2*re[ce+1].y-ue[ce+1])):ie.push(new Point((re[le].x+se[le-1])/2,(re[le].y+ue[le-1])/2));return[oe,ie]}function ee(ne){if(ne==null||Array.isArray(ne)&&ne.length<2)throw new Error("At least 2 points are required");const re=G(ne),oe=[];for(let ie=0,le=re[0].length;ie<le;ie+=1){const ae=new Point(re[0][ie].x,re[0][ie].y),se=new Point(re[1][ie].x,re[1][ie].y);oe.push(new te(ne[ie],ae,se,ne[ie+1]))}return oe}te.throughPoints=ee}(Curve||(Curve={}));class Segment extends Geometry{constructor(){super(...arguments),this.isVisible=!0,this.isSegment=!0,this.isSubpathStart=!1}get end(){return this.endPoint}get start(){if(this.previousSegment==null)throw new Error("Missing previous segment. (This segment cannot be the first segment of a path, or segment has not yet been added to a path.)");return this.previousSegment.end}closestPointT(U,G){if(this.closestPointNormalizedLength)return this.closestPointNormalizedLength(U);throw new Error("Neither `closestPointT` nor `closestPointNormalizedLength` method is implemented.")}lengthAtT(U,G){if(U<=0)return 0;const ee=this.length();return U>=1?ee:ee*U}divideAtT(U){if(this.divideAt)return this.divideAt(U);throw new Error("Neither `divideAtT` nor `divideAt` method is implemented.")}pointAtT(U){if(this.pointAt)return this.pointAt(U);throw new Error("Neither `pointAtT` nor `pointAt` method is implemented.")}tangentAtT(U){if(this.tangentAt)return this.tangentAt(U);throw new Error("Neither `tangentAtT` nor `tangentAt` method is implemented.")}}class LineTo extends Segment{constructor(U,G){super(),Line.isLine(U)?this.endPoint=U.end.clone().round(2):this.endPoint=Point.create(U,G).round(2)}get type(){return"L"}get line(){return new Line(this.start,this.end)}bbox(){return this.line.bbox()}closestPoint(U){return this.line.closestPoint(U)}closestPointLength(U){return this.line.closestPointLength(U)}closestPointNormalizedLength(U){return this.line.closestPointNormalizedLength(U)}closestPointTangent(U){return this.line.closestPointTangent(U)}length(){return this.line.length()}divideAt(U){const G=this.line.divideAt(U);return[new LineTo(G[0]),new LineTo(G[1])]}divideAtLength(U){const G=this.line.divideAtLength(U);return[new LineTo(G[0]),new LineTo(G[1])]}getSubdivisions(){return[]}pointAt(U){return this.line.pointAt(U)}pointAtLength(U){return this.line.pointAtLength(U)}tangentAt(U){return this.line.tangentAt(U)}tangentAtLength(U){return this.line.tangentAtLength(U)}isDifferentiable(){return this.previousSegment==null?!1:!this.start.equals(this.end)}clone(){return new LineTo(this.end)}scale(U,G,ee){return this.end.scale(U,G,ee),this}rotate(U,G){return this.end.rotate(U,G),this}translate(U,G){return typeof U=="number"?this.end.translate(U,G):this.end.translate(U),this}equals(U){return this.type===U.type&&this.start.equals(U.start)&&this.end.equals(U.end)}toJSON(){return{type:this.type,start:this.start.toJSON(),end:this.end.toJSON()}}serialize(){const U=this.end;return`${this.type} ${U.x} ${U.y}`}}(function(te){function U(...G){const ee=G.length,ne=G[0];if(Line.isLine(ne))return new te(ne);if(Point.isPointLike(ne))return ee===1?new te(ne):G.map(oe=>new te(oe));if(ee===2)return new te(+G[0],+G[1]);const re=[];for(let oe=0;oe<ee;oe+=2){const ie=+G[oe],le=+G[oe+1];re.push(new te(ie,le))}return re}te.create=U})(LineTo||(LineTo={}));class Close extends Segment{get end(){if(!this.subpathStartSegment)throw new Error("Missing subpath start segment. (This segment needs a subpath start segment (e.g. MoveTo), or segment has not yet been added to a path.)");return this.subpathStartSegment.end}get type(){return"Z"}get line(){return new Line(this.start,this.end)}bbox(){return this.line.bbox()}closestPoint(U){return this.line.closestPoint(U)}closestPointLength(U){return this.line.closestPointLength(U)}closestPointNormalizedLength(U){return this.line.closestPointNormalizedLength(U)}closestPointTangent(U){return this.line.closestPointTangent(U)}length(){return this.line.length()}divideAt(U){const G=this.line.divideAt(U);return[G[1].isDifferentiable()?new LineTo(G[0]):this.clone(),new LineTo(G[1])]}divideAtLength(U){const G=this.line.divideAtLength(U);return[G[1].isDifferentiable()?new LineTo(G[0]):this.clone(),new LineTo(G[1])]}getSubdivisions(){return[]}pointAt(U){return this.line.pointAt(U)}pointAtLength(U){return this.line.pointAtLength(U)}tangentAt(U){return this.line.tangentAt(U)}tangentAtLength(U){return this.line.tangentAtLength(U)}isDifferentiable(){return!this.previousSegment||!this.subpathStartSegment?!1:!this.start.equals(this.end)}scale(){return this}rotate(){return this}translate(){return this}equals(U){return this.type===U.type&&this.start.equals(U.start)&&this.end.equals(U.end)}clone(){return new Close}toJSON(){return{type:this.type,start:this.start.toJSON(),end:this.end.toJSON()}}serialize(){return this.type}}(function(te){function U(){return new te}te.create=U})(Close||(Close={}));class MoveTo extends Segment{constructor(U,G){super(),this.isVisible=!1,this.isSubpathStart=!0,Line.isLine(U)||Curve.isCurve(U)?this.endPoint=U.end.clone().round(2):this.endPoint=Point.create(U,G).round(2)}get start(){throw new Error("Illegal access. Moveto segments should not need a start property.")}get type(){return"M"}bbox(){return null}closestPoint(){return this.end.clone()}closestPointLength(){return 0}closestPointNormalizedLength(){return 0}closestPointT(){return 1}closestPointTangent(){return null}length(){return 0}lengthAtT(){return 0}divideAt(){return[this.clone(),this.clone()]}divideAtLength(){return[this.clone(),this.clone()]}getSubdivisions(){return[]}pointAt(){return this.end.clone()}pointAtLength(){return this.end.clone()}pointAtT(){return this.end.clone()}tangentAt(){return null}tangentAtLength(){return null}tangentAtT(){return null}isDifferentiable(){return!1}scale(U,G,ee){return this.end.scale(U,G,ee),this}rotate(U,G){return this.end.rotate(U,G),this}translate(U,G){return typeof U=="number"?this.end.translate(U,G):this.end.translate(U),this}clone(){return new MoveTo(this.end)}equals(U){return this.type===U.type&&this.end.equals(U.end)}toJSON(){return{type:this.type,end:this.end.toJSON()}}serialize(){const U=this.end;return`${this.type} ${U.x} ${U.y}`}}(function(te){function U(...G){const ee=G.length,ne=G[0];if(Line.isLine(ne))return new te(ne);if(Curve.isCurve(ne))return new te(ne);if(Point.isPointLike(ne)){if(ee===1)return new te(ne);const oe=[];for(let ie=0;ie<ee;ie+=1)ie===0?oe.push(new te(G[ie])):oe.push(new LineTo(G[ie]));return oe}if(ee===2)return new te(+G[0],+G[1]);const re=[];for(let oe=0;oe<ee;oe+=2){const ie=+G[oe],le=+G[oe+1];oe===0?re.push(new te(ie,le)):re.push(new LineTo(ie,le))}return re}te.create=U})(MoveTo||(MoveTo={}));class CurveTo extends Segment{constructor(U,G,ee,ne,re,oe){super(),Curve.isCurve(U)?(this.controlPoint1=U.controlPoint1.clone().round(2),this.controlPoint2=U.controlPoint2.clone().round(2),this.endPoint=U.end.clone().round(2)):typeof U=="number"?(this.controlPoint1=new Point(U,G).round(2),this.controlPoint2=new Point(ee,ne).round(2),this.endPoint=new Point(re,oe).round(2)):(this.controlPoint1=Point.create(U).round(2),this.controlPoint2=Point.create(G).round(2),this.endPoint=Point.create(ee).round(2))}get type(){return"C"}get curve(){return new Curve(this.start,this.controlPoint1,this.controlPoint2,this.end)}bbox(){return this.curve.bbox()}closestPoint(U){return this.curve.closestPoint(U)}closestPointLength(U){return this.curve.closestPointLength(U)}closestPointNormalizedLength(U){return this.curve.closestPointNormalizedLength(U)}closestPointTangent(U){return this.curve.closestPointTangent(U)}length(){return this.curve.length()}divideAt(U,G={}){const ee=this.curve.divideAt(U,G);return[new CurveTo(ee[0]),new CurveTo(ee[1])]}divideAtLength(U,G={}){const ee=this.curve.divideAtLength(U,G);return[new CurveTo(ee[0]),new CurveTo(ee[1])]}divideAtT(U){const G=this.curve.divideAtT(U);return[new CurveTo(G[0]),new CurveTo(G[1])]}getSubdivisions(){return[]}pointAt(U){return this.curve.pointAt(U)}pointAtLength(U){return this.curve.pointAtLength(U)}tangentAt(U){return this.curve.tangentAt(U)}tangentAtLength(U){return this.curve.tangentAtLength(U)}isDifferentiable(){if(!this.previousSegment)return!1;const U=this.start,G=this.controlPoint1,ee=this.controlPoint2,ne=this.end;return!(U.equals(G)&&G.equals(ee)&&ee.equals(ne))}scale(U,G,ee){return this.controlPoint1.scale(U,G,ee),this.controlPoint2.scale(U,G,ee),this.end.scale(U,G,ee),this}rotate(U,G){return this.controlPoint1.rotate(U,G),this.controlPoint2.rotate(U,G),this.end.rotate(U,G),this}translate(U,G){return typeof U=="number"?(this.controlPoint1.translate(U,G),this.controlPoint2.translate(U,G),this.end.translate(U,G)):(this.controlPoint1.translate(U),this.controlPoint2.translate(U),this.end.translate(U)),this}equals(U){return this.start.equals(U.start)&&this.end.equals(U.end)&&this.controlPoint1.equals(U.controlPoint1)&&this.controlPoint2.equals(U.controlPoint2)}clone(){return new CurveTo(this.controlPoint1,this.controlPoint2,this.end)}toJSON(){return{type:this.type,start:this.start.toJSON(),controlPoint1:this.controlPoint1.toJSON(),controlPoint2:this.controlPoint2.toJSON(),end:this.end.toJSON()}}serialize(){const U=this.controlPoint1,G=this.controlPoint2,ee=this.end;return[this.type,U.x,U.y,G.x,G.y,ee.x,ee.y].join(" ")}}(function(te){function U(...G){const ee=G.length,ne=G[0];if(Curve.isCurve(ne))return new te(ne);if(Point.isPointLike(ne)){if(ee===3)return new te(G[0],G[1],G[2]);const oe=[];for(let ie=0;ie<ee;ie+=3)oe.push(new te(G[ie],G[ie+1],G[ie+2]));return oe}if(ee===6)return new te(G[0],G[1],G[2],G[3],G[4],G[5]);const re=[];for(let oe=0;oe<ee;oe+=6)re.push(new te(G[oe],G[oe+1],G[oe+2],G[oe+3],G[oe+4],G[oe+5]));return re}te.create=U})(CurveTo||(CurveTo={}));function rotate(te,U,G){return{x:te*Math.cos(G)-U*Math.sin(G),y:te*Math.sin(G)+U*Math.cos(G)}}function q2c(te,U,G,ee,ne,re){const oe=.3333333333333333,ie=2/3;return[oe*te+ie*G,oe*U+ie*ee,oe*ne+ie*G,oe*re+ie*ee,ne,re]}function a2c(te,U,G,ee,ne,re,oe,ie,le,ae){const se=Math.PI*120/180,ue=Math.PI/180*(+ne||0);let ce=[],de,fe,ve,he,pe;if(ae)fe=ae[0],ve=ae[1],he=ae[2],pe=ae[3];else{de=rotate(te,U,-ue),te=de.x,U=de.y,de=rotate(ie,le,-ue),ie=de.x,le=de.y;const Pe=(te-ie)/2,we=(U-le)/2;let ke=Pe*Pe/(G*G)+we*we/(ee*ee);ke>1&&(ke=Math.sqrt(ke),G=ke*G,ee=ke*ee);const Te=G*G,De=ee*ee,Ie=(re===oe?-1:1)*Math.sqrt(Math.abs((Te*De-Te*we*we-De*Pe*Pe)/(Te*we*we+De*Pe*Pe)));he=Ie*G*we/ee+(te+ie)/2,pe=Ie*-ee*Pe/G+(U+le)/2,fe=Math.asin((U-pe)/ee),ve=Math.asin((le-pe)/ee),fe=te<he?Math.PI-fe:fe,ve=ie<he?Math.PI-ve:ve,fe<0&&(fe=Math.PI*2+fe),ve<0&&(ve=Math.PI*2+ve),oe&&fe>ve&&(fe-=Math.PI*2),!oe&&ve>fe&&(ve-=Math.PI*2)}let ge=ve-fe;if(Math.abs(ge)>se){const Pe=ve,we=ie,ke=le;ve=fe+se*(oe&&ve>fe?1:-1),ie=he+G*Math.cos(ve),le=pe+ee*Math.sin(ve),ce=a2c(ie,le,G,ee,ne,0,oe,we,ke,[ve,Pe,he,pe])}ge=ve-fe;const me=Math.cos(fe),_e=Math.sin(fe),ye=Math.cos(ve),be=Math.sin(ve),xe=Math.tan(ge/4),Ce=4/3*(G*xe),$e=4/3*(ee*xe),Ee=[te,U],Ve=[te+Ce*_e,U-$e*me],Ne=[ie+Ce*be,le-$e*ye],Se=[ie,le];if(Ve[0]=2*Ee[0]-Ve[0],Ve[1]=2*Ee[1]-Ve[1],ae)return[Ve,Ne,Se].concat(ce);{ce=[Ve,Ne,Se].concat(ce).join().split(",");const Pe=[],we=ce.length;for(let ke=0;ke<we;ke+=1)Pe[ke]=ke%2?rotate(+ce[ke-1],+ce[ke],ue).y:rotate(+ce[ke],+ce[ke+1],ue).x;return Pe}}function parse(te){if(!te)return null;const U=`
|
|
906
906
|
\v\f\r \u2028\u2029`,G=new RegExp(`([a-z])[${U},]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?[${U}]*,?[${U}]*)+)`,"ig"),ee=new RegExp(`(-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?)[${U}]*,?[${U}]*`,"ig"),ne={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},re=[];return te.replace(G,(oe,ie,le)=>{const ae=[];let se=ie.toLowerCase();le.replace(ee,(ce,de)=>(de&&ae.push(+de),ce)),se==="m"&&ae.length>2&&(re.push([ie,...ae.splice(0,2)]),se="l",ie=ie==="m"?"l":"L");const ue=ne[se];for(;ae.length>=ue&&(re.push([ie,...ae.splice(0,ue)]),!!ue););return oe}),re}function abs(te){const U=parse(te);if(!U||!U.length)return[["M",0,0]];let G=0,ee=0,ne=0,re=0;const oe=[];for(let ie=0,le=U.length;ie<le;ie+=1){const ae=[];oe.push(ae);const se=U[ie],ue=se[0];if(ue!==ue.toUpperCase())switch(ae[0]=ue.toUpperCase(),ae[0]){case"A":ae[1]=se[1],ae[2]=se[2],ae[3]=se[3],ae[4]=se[4],ae[5]=se[5],ae[6]=+se[6]+G,ae[7]=+se[7]+ee;break;case"V":ae[1]=+se[1]+ee;break;case"H":ae[1]=+se[1]+G;break;case"M":ne=+se[1]+G,re=+se[2]+ee;for(let ce=1,de=se.length;ce<de;ce+=1)ae[ce]=+se[ce]+(ce%2?G:ee);break;default:for(let ce=1,de=se.length;ce<de;ce+=1)ae[ce]=+se[ce]+(ce%2?G:ee);break}else for(let ce=0,de=se.length;ce<de;ce+=1)ae[ce]=se[ce];switch(ae[0]){case"Z":G=+ne,ee=+re;break;case"H":G=ae[1];break;case"V":ee=ae[1];break;case"M":ne=ae[ae.length-2],re=ae[ae.length-1],G=ae[ae.length-2],ee=ae[ae.length-1];break;default:G=ae[ae.length-2],ee=ae[ae.length-1];break}}return oe}function normalize$1(te){const U=abs(te),G={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null};function ee(le,ae,se){let ue,ce;if(!le)return["C",ae.x,ae.y,ae.x,ae.y,ae.x,ae.y];switch(le[0]in{T:1,Q:1}||(ae.qx=null,ae.qy=null),le[0]){case"M":ae.X=le[1],ae.Y=le[2];break;case"A":return parseFloat(le[1])===0||parseFloat(le[2])===0?["L",le[6],le[7]]:["C"].concat(a2c.apply(0,[ae.x,ae.y].concat(le.slice(1))));case"S":return se==="C"||se==="S"?(ue=ae.x*2-ae.bx,ce=ae.y*2-ae.by):(ue=ae.x,ce=ae.y),["C",ue,ce].concat(le.slice(1));case"T":return se==="Q"||se==="T"?(ae.qx=ae.x*2-ae.qx,ae.qy=ae.y*2-ae.qy):(ae.qx=ae.x,ae.qy=ae.y),["C"].concat(q2c(ae.x,ae.y,ae.qx,ae.qy,le[1],le[2]));case"Q":return ae.qx=le[1],ae.qy=le[2],["C"].concat(q2c(ae.x,ae.y,le[1],le[2],le[3],le[4]));case"H":return["L"].concat(le[1],ae.y);case"V":return["L"].concat(ae.x,le[1])}return le}function ne(le,ae){if(le[ae].length>7){le[ae].shift();const se=le[ae];for(;se.length;)re[ae]="A",ae+=1,le.splice(ae,0,["C"].concat(se.splice(0,6)));le.splice(ae,1),ie=U.length}}const re=[];let oe="",ie=U.length;for(let le=0;le<ie;le+=1){let ae="";U[le]&&(ae=U[le][0]),ae!=="C"&&(re[le]=ae,le>0&&(oe=re[le-1])),U[le]=ee(U[le],G,oe),re[le]!=="A"&&ae==="C"&&(re[le]="C"),ne(U,le);const se=U[le],ue=se.length;G.x=se[ue-2],G.y=se[ue-1],G.bx=parseFloat(se[ue-4])||G.x,G.by=parseFloat(se[ue-3])||G.y}return(!U[0][0]||U[0][0]!=="M")&&U.unshift(["M",0,0]),U}function normalizePathData(te){return normalize$1(te).map(U=>U.map(G=>typeof G=="string"?G:GeometryUtil.round(G,2))).join(",").split(",").join(" ")}class Path extends Geometry{constructor(U){if(super(),this.PRECISION=3,this.segments=[],Array.isArray(U))if(Line.isLine(U[0])||Curve.isCurve(U[0])){let G=null;U.forEach((ne,re)=>{re===0&&this.appendSegment(Path.createSegment("M",ne.start)),G!=null&&!G.end.equals(ne.start)&&this.appendSegment(Path.createSegment("M",ne.start)),Line.isLine(ne)?this.appendSegment(Path.createSegment("L",ne.end)):Curve.isCurve(ne)&&this.appendSegment(Path.createSegment("C",ne.controlPoint1,ne.controlPoint2,ne.end)),G=ne})}else U.forEach(ee=>{ee.isSegment&&this.appendSegment(ee)});else U!=null&&(Line.isLine(U)?(this.appendSegment(Path.createSegment("M",U.start)),this.appendSegment(Path.createSegment("L",U.end))):Curve.isCurve(U)?(this.appendSegment(Path.createSegment("M",U.start)),this.appendSegment(Path.createSegment("C",U.controlPoint1,U.controlPoint2,U.end))):Polyline.isPolyline(U)?U.points&&U.points.length&&U.points.forEach((G,ee)=>{const ne=ee===0?Path.createSegment("M",G):Path.createSegment("L",G);this.appendSegment(ne)}):U.isSegment&&this.appendSegment(U))}get start(){const U=this.segments,G=U.length;if(G===0)return null;for(let ee=0;ee<G;ee+=1){const ne=U[ee];if(ne.isVisible)return ne.start}return U[G-1].end}get end(){const U=this.segments,G=U.length;if(G===0)return null;for(let ee=G-1;ee>=0;ee-=1){const ne=U[ee];if(ne.isVisible)return ne.end}return U[G-1].end}moveTo(...U){return this.appendSegment(MoveTo.create.call(null,...U))}lineTo(...U){return this.appendSegment(LineTo.create.call(null,...U))}curveTo(...U){return this.appendSegment(CurveTo.create.call(null,...U))}arcTo(U,G,ee,ne,re,oe,ie){const le=this.end||new Point,ae=typeof oe=="number"?arcToCurves(le.x,le.y,U,G,ee,ne,re,oe,ie):arcToCurves(le.x,le.y,U,G,ee,ne,re,oe.x,oe.y);if(ae!=null)for(let se=0,ue=ae.length;se<ue;se+=6)this.curveTo(ae[se],ae[se+1],ae[se+2],ae[se+3],ae[se+4],ae[se+5]);return this}quadTo(U,G,ee,ne){const re=this.end||new Point,oe=["M",re.x,re.y];if(typeof U=="number")oe.push("Q",U,G,ee,ne);else{const le=G;oe.push("Q",U.x,U.y,le.x,le.y)}const ie=Path.parse(oe.join(" "));return this.appendSegment(ie.segments.slice(1)),this}close(){return this.appendSegment(Close.create())}drawPoints(U,G={}){const ee=drawPoints(U,G),ne=Path.parse(ee);ne&&ne.segments&&this.appendSegment(ne.segments)}bbox(){const U=this.segments,G=U.length;if(G===0)return null;let ee;for(let re=0;re<G;re+=1){const oe=U[re];if(oe.isVisible){const ie=oe.bbox();ie!=null&&(ee=ee?ee.union(ie):ie)}}if(ee!=null)return ee;const ne=U[G-1];return new Rectangle(ne.end.x,ne.end.y,0,0)}appendSegment(U){const G=this.segments.length;let ee=G!==0?this.segments[G-1]:null,ne;const re=null;if(Array.isArray(U))for(let oe=0,ie=U.length;oe<ie;oe+=1){const le=U[oe];ne=this.prepareSegment(le,ee,re),this.segments.push(ne),ee=ne}else U!=null&&U.isSegment&&(ne=this.prepareSegment(U,ee,re),this.segments.push(ne));return this}insertSegment(U,G){const ee=this.segments.length;if(U<0&&(U=ee+U+1),U>ee||U<0)throw new Error("Index out of range.");let ne,re=null,oe=null;if(ee!==0&&(U>=1?(re=this.segments[U-1],oe=re.nextSegment):(re=null,oe=this.segments[0])),!Array.isArray(G))ne=this.prepareSegment(G,re,oe),this.segments.splice(U,0,ne);else for(let ie=0,le=G.length;ie<le;ie+=1){const ae=G[ie];ne=this.prepareSegment(ae,re,oe),this.segments.splice(U+ie,0,ne),re=ne}return this}removeSegment(U){const G=this.fixIndex(U),ee=this.segments.splice(G,1)[0],ne=ee.previousSegment,re=ee.nextSegment;return ne&&(ne.nextSegment=re),re&&(re.previousSegment=ne),ee.isSubpathStart&&re&&this.updateSubpathStartSegment(re),ee}replaceSegment(U,G){const ee=this.fixIndex(U);let ne;const re=this.segments[ee];let oe=re.previousSegment;const ie=re.nextSegment;let le=re.isSubpathStart;if(!Array.isArray(G))ne=this.prepareSegment(G,oe,ie),this.segments.splice(ee,1,ne),le&&ne.isSubpathStart&&(le=!1);else{this.segments.splice(U,1);for(let ae=0,se=G.length;ae<se;ae+=1){const ue=G[ae];ne=this.prepareSegment(ue,oe,ie),this.segments.splice(U+ae,0,ne),oe=ne,le&&ne.isSubpathStart&&(le=!1)}}le&&ie&&this.updateSubpathStartSegment(ie)}getSegment(U){const G=this.fixIndex(U);return this.segments[G]}fixIndex(U){const G=this.segments.length;if(G===0)throw new Error("Path has no segments.");let ee=U;for(;ee<0;)ee=G+ee;if(ee>=G||ee<0)throw new Error("Index out of range.");return ee}segmentAt(U,G={}){const ee=this.segmentIndexAt(U,G);return ee?this.getSegment(ee):null}segmentAtLength(U,G={}){const ee=this.segmentIndexAtLength(U,G);return ee?this.getSegment(ee):null}segmentIndexAt(U,G={}){if(this.segments.length===0)return null;const ee=GeometryUtil.clamp(U,0,1),ne=this.getOptions(G),oe=this.length(ne)*ee;return this.segmentIndexAtLength(oe,ne)}segmentIndexAtLength(U,G={}){const ee=this.segments.length;if(ee===0)return null;let ne=!0;U<0&&(ne=!1,U=-U);const re=this.getPrecision(G),oe=this.getSubdivisions(G);let ie=0,le=null;for(let ae=0;ae<ee;ae+=1){const se=ne?ae:ee-1-ae,ue=this.segments[se],ce=oe[se],de=ue.length({precision:re,subdivisions:ce});if(ue.isVisible){if(U<=ie+de)return se;le=se}ie+=de}return le}getSegmentSubdivisions(U={}){const G=this.getPrecision(U),ee=[];for(let ne=0,re=this.segments.length;ne<re;ne+=1){const ie=this.segments[ne].getSubdivisions({precision:G});ee.push(ie)}return ee}updateSubpathStartSegment(U){let G=U.previousSegment,ee=U;for(;ee&&!ee.isSubpathStart;)G!=null?ee.subpathStartSegment=G.subpathStartSegment:ee.subpathStartSegment=null,G=ee,ee=ee.nextSegment}prepareSegment(U,G,ee){U.previousSegment=G,U.nextSegment=ee,G!=null&&(G.nextSegment=U),ee!=null&&(ee.previousSegment=U);let ne=U;return U.isSubpathStart&&(U.subpathStartSegment=U,ne=ee),ne!=null&&this.updateSubpathStartSegment(ne),U}closestPoint(U,G={}){const ee=this.closestPointT(U,G);return ee?this.pointAtT(ee):null}closestPointLength(U,G={}){const ee=this.getOptions(G),ne=this.closestPointT(U,ee);return ne?this.lengthAtT(ne,ee):0}closestPointNormalizedLength(U,G={}){const ee=this.getOptions(G),ne=this.closestPointLength(U,ee);if(ne===0)return 0;const re=this.length(ee);return re===0?0:ne/re}closestPointT(U,G={}){if(this.segments.length===0)return null;const ee=this.getPrecision(G),ne=this.getSubdivisions(G);let re,oe=1/0;for(let ie=0,le=this.segments.length;ie<le;ie+=1){const ae=this.segments[ie],se=ne[ie];if(ae.isVisible){const ue=ae.closestPointT(U,{precision:ee,subdivisions:se}),ce=ae.pointAtT(ue),de=GeometryUtil.squaredLength(ce,U);de<oe&&(re={segmentIndex:ie,value:ue},oe=de)}}return re||{segmentIndex:this.segments.length-1,value:1}}closestPointTangent(U,G={}){if(this.segments.length===0)return null;const ee=this.getPrecision(G),ne=this.getSubdivisions(G);let re,oe=1/0;for(let ie=0,le=this.segments.length;ie<le;ie+=1){const ae=this.segments[ie],se=ne[ie];if(ae.isDifferentiable()){const ue=ae.closestPointT(U,{precision:ee,subdivisions:se}),ce=ae.pointAtT(ue),de=GeometryUtil.squaredLength(ce,U);de<oe&&(re=ae.tangentAtT(ue),oe=de)}}return re||null}containsPoint(U,G={}){const ee=this.toPolylines(G);if(!ee)return!1;let ne=0;for(let re=0,oe=ee.length;re<oe;re+=1)ee[re].containsPoint(U)&&(ne+=1);return ne%2===1}pointAt(U,G={}){if(this.segments.length===0)return null;if(U<=0)return this.start.clone();if(U>=1)return this.end.clone();const ee=this.getOptions(G),re=this.length(ee)*U;return this.pointAtLength(re,ee)}pointAtLength(U,G={}){if(this.segments.length===0)return null;if(U===0)return this.start.clone();let ee=!0;U<0&&(ee=!1,U=-U);const ne=this.getPrecision(G),re=this.getSubdivisions(G);let oe,ie=0;for(let ae=0,se=this.segments.length;ae<se;ae+=1){const ue=ee?ae:se-1-ae,ce=this.segments[ue],de=re[ue],fe=ce.length({precision:ne,subdivisions:de});if(ce.isVisible){if(U<=ie+fe)return ce.pointAtLength((ee?1:-1)*(U-ie),{precision:ne,subdivisions:de});oe=ce}ie+=fe}return oe?ee?oe.end:oe.start:this.segments[this.segments.length-1].end.clone()}pointAtT(U){const G=this.segments,ee=G.length;if(ee===0)return null;const ne=U.segmentIndex;if(ne<0)return G[0].pointAtT(0);if(ne>=ee)return G[ee-1].pointAtT(1);const re=GeometryUtil.clamp(U.value,0,1);return G[ne].pointAtT(re)}divideAt(U,G={}){if(this.segments.length===0)return null;const ee=GeometryUtil.clamp(U,0,1),ne=this.getOptions(G),oe=this.length(ne)*ee;return this.divideAtLength(oe,ne)}divideAtLength(U,G={}){if(this.segments.length===0)return null;let ee=!0;U<0&&(ee=!1,U=-U);const ne=this.getPrecision(G),re=this.getSubdivisions(G);let oe=0,ie,le,ae,se,ue;for(let ye=0,be=this.segments.length;ye<be;ye+=1){const xe=ee?ye:be-1-ye,Ce=this.getSegment(xe),$e=re[xe],Ee={precision:ne,subdivisions:$e},Ve=Ce.length(Ee);if(Ce.isDifferentiable()&&(ae=Ce,se=xe,U<=oe+Ve)){le=xe,ie=Ce.divideAtLength((ee?1:-1)*(U-oe),Ee);break}oe+=Ve}if(!ae)return null;ie||(le=se,ue=ee?1:0,ie=ae.divideAtT(ue));const ce=this.clone(),de=le;ce.replaceSegment(de,ie);const fe=de;let ve=de+1,he=de+2;ie[0].isDifferentiable()||(ce.removeSegment(fe),ve-=1,he-=1);const pe=ce.getSegment(ve).start;ce.insertSegment(ve,Path.createSegment("M",pe)),he+=1,ie[1].isDifferentiable()||(ce.removeSegment(he-1),he-=1);const ge=he-fe-1;for(let ye=he,be=ce.segments.length;ye<be;ye+=1){const xe=this.getSegment(ye-ge),Ce=ce.getSegment(ye);if(Ce.type==="Z"&&!xe.subpathStartSegment.end.equals(Ce.subpathStartSegment.end)){const $e=Path.createSegment("L",xe.end);ce.replaceSegment(ye,$e)}}const me=new Path(ce.segments.slice(0,ve)),_e=new Path(ce.segments.slice(ve));return[me,_e]}intersectsWithLine(U,G={}){const ee=this.toPolylines(G);if(ee==null)return null;let ne=null;for(let re=0,oe=ee.length;re<oe;re+=1){const ie=ee[re],le=U.intersect(ie);le&&(ne==null&&(ne=[]),Array.isArray(le)?ne.push(...le):ne.push(le))}return ne}isDifferentiable(){for(let U=0,G=this.segments.length;U<G;U+=1)if(this.segments[U].isDifferentiable())return!0;return!1}isValid(){const U=this.segments;return U.length===0||U[0].type==="M"}length(U={}){if(this.segments.length===0)return 0;const G=this.getSubdivisions(U);let ee=0;for(let ne=0,re=this.segments.length;ne<re;ne+=1){const oe=this.segments[ne],ie=G[ne];ee+=oe.length({subdivisions:ie})}return ee}lengthAtT(U,G={}){const ee=this.segments.length;if(ee===0)return 0;let ne=U.segmentIndex;if(ne<0)return 0;let re=GeometryUtil.clamp(U.value,0,1);ne>=ee&&(ne=ee-1,re=1);const oe=this.getPrecision(G),ie=this.getSubdivisions(G);let le=0;for(let ue=0;ue<ne;ue+=1){const ce=this.segments[ue],de=ie[ue];le+=ce.length({precision:oe,subdivisions:de})}const ae=this.segments[ne],se=ie[ne];return le+=ae.lengthAtT(re,{precision:oe,subdivisions:se}),le}tangentAt(U,G={}){if(this.segments.length===0)return null;const ee=GeometryUtil.clamp(U,0,1),ne=this.getOptions(G),oe=this.length(ne)*ee;return this.tangentAtLength(oe,ne)}tangentAtLength(U,G={}){if(this.segments.length===0)return null;let ee=!0;U<0&&(ee=!1,U=-U);const ne=this.getPrecision(G),re=this.getSubdivisions(G);let oe,ie=0;for(let le=0,ae=this.segments.length;le<ae;le+=1){const se=ee?le:ae-1-le,ue=this.segments[se],ce=re[se],de=ue.length({precision:ne,subdivisions:ce});if(ue.isDifferentiable()){if(U<=ie+de)return ue.tangentAtLength((ee?1:-1)*(U-ie),{precision:ne,subdivisions:ce});oe=ue}ie+=de}if(oe){const le=ee?1:0;return oe.tangentAtT(le)}return null}tangentAtT(U){const G=this.segments.length;if(G===0)return null;const ee=U.segmentIndex;if(ee<0)return this.segments[0].tangentAtT(0);if(ee>=G)return this.segments[G-1].tangentAtT(1);const ne=GeometryUtil.clamp(U.value,0,1);return this.segments[ee].tangentAtT(ne)}getPrecision(U={}){return U.precision==null?this.PRECISION:U.precision}getSubdivisions(U={}){if(U.segmentSubdivisions==null){const G=this.getPrecision(U);return this.getSegmentSubdivisions({precision:G})}return U.segmentSubdivisions}getOptions(U={}){const G=this.getPrecision(U),ee=this.getSubdivisions(U);return{precision:G,segmentSubdivisions:ee}}toPoints(U={}){const G=this.segments,ee=G.length;if(ee===0)return null;const ne=this.getSubdivisions(U),re=[];let oe=[];for(let ie=0;ie<ee;ie+=1){const le=G[ie];if(le.isVisible){const ae=ne[ie];ae.length>0?ae.forEach(se=>oe.push(se.start)):oe.push(le.start)}else oe.length>0&&(oe.push(G[ie-1].end),re.push(oe),oe=[])}return oe.length>0&&(oe.push(this.end),re.push(oe)),re}toPolylines(U={}){const G=this.toPoints(U);return G?G.map(ee=>new Polyline(ee)):null}scale(U,G,ee){return this.segments.forEach(ne=>ne.scale(U,G,ee)),this}rotate(U,G){return this.segments.forEach(ee=>ee.rotate(U,G)),this}translate(U,G){return typeof U=="number"?this.segments.forEach(ee=>ee.translate(U,G)):this.segments.forEach(ee=>ee.translate(U)),this}clone(){const U=new Path;return this.segments.forEach(G=>U.appendSegment(G.clone())),U}equals(U){if(U==null)return!1;const G=this.segments,ee=U.segments,ne=G.length;if(ee.length!==ne)return!1;for(let re=0;re<ne;re+=1){const oe=G[re],ie=ee[re];if(oe.type!==ie.type||!oe.equals(ie))return!1}return!0}toJSON(){return this.segments.map(U=>U.toJSON())}serialize(){if(!this.isValid())throw new Error("Invalid path segments.");return this.segments.map(U=>U.serialize()).join(" ")}toString(){return this.serialize()}}(function(te){function U(G){return G!=null&&G instanceof te}te.isPath=U})(Path||(Path={})),function(te){function U(ee){if(!ee)return new te;const ne=new te,re=/(?:[a-zA-Z] *)(?:(?:-?\d+(?:\.\d+)?(?:e[-+]?\d+)? *,? *)|(?:-?\.\d+ *,? *))+|(?:[a-zA-Z] *)(?! |\d|-|\.)/g,oe=te.normalize(ee).match(re);if(oe!=null)for(let ie=0,le=oe.length;ie<le;ie+=1){const ae=oe[ie],se=/(?:[a-zA-Z])|(?:(?:-?\d+(?:\.\d+)?(?:e[-+]?\d+)?))|(?:(?:-?\.\d+))/g,ue=ae.match(se);if(ue!=null){const ce=ue[0],de=ue.slice(1).map(ve=>+ve),fe=G.call(null,ce,...de);ne.appendSegment(fe)}}return ne}te.parse=U;function G(ee,...ne){if(ee==="M")return MoveTo.create.call(null,...ne);if(ee==="L")return LineTo.create.call(null,...ne);if(ee==="C")return CurveTo.create.call(null,...ne);if(ee==="z"||ee==="Z")return Close.create();throw new Error(`Invalid path segment type "${ee}"`)}te.createSegment=G}(Path||(Path={})),function(te){te.normalize=normalizePathData,te.isValid=isValid,te.drawArc=drawArc,te.drawPoints=drawPoints,te.arcToCurves=arcToCurves}(Path||(Path={}));class Registry{constructor(U){this.options=Object.assign({},U),this.data=this.options.data||{},this.register=this.register.bind(this),this.unregister=this.unregister.bind(this)}get names(){return Object.keys(this.data)}register(U,G,ee=!1){if(typeof U=="object"){Object.entries(U).forEach(([oe,ie])=>{this.register(oe,ie,G)});return}this.exist(U)&&!ee&&!Platform.isApplyingHMR()&&this.onDuplicated(U);const ne=this.options.process,re=ne?call$1(ne,this,U,G):G;return this.data[U]=re,re}unregister(U){const G=U?this.data[U]:null;return delete this.data[U],G}get(U){return U?this.data[U]:null}exist(U){return U?this.data[U]!=null:!1}onDuplicated(U){try{throw this.options.onConflict&&call$1(this.options.onConflict,this,U),new Error(`${upperFirst$1(this.options.type)} with name '${U}' already registered.`)}catch(G){throw G}}onNotFound(U,G){throw new Error(this.getSpellingSuggestion(U,G))}getSpellingSuggestion(U,G){const ee=this.getSpellingSuggestionForName(U),ne=G?`${G} ${lowerFirst$1(this.options.type)}`:this.options.type;return`${upperFirst$1(ne)} with name '${U}' does not exist.${ee?` Did you mean '${ee}'?`:""}`}getSpellingSuggestionForName(U){return getSpellingSuggestion(U,Object.keys(this.data),G=>G)}}(function(te){function U(G){return new te(G)}te.create=U})(Registry||(Registry={}));const dot={color:"#aaaaaa",thickness:1,markup:"rect",update(te,U){const G=U.thickness*U.sx,ee=U.thickness*U.sy;attr(te,{width:G,height:ee,rx:G,ry:ee,fill:U.color})}},fixedDot={color:"#aaaaaa",thickness:1,markup:"rect",update(te,U){const G=U.sx<=1?U.thickness*U.sx:U.thickness;attr(te,{width:G,height:G,rx:G,ry:G,fill:U.color})}},mesh={color:"rgba(224,224,224,1)",thickness:1,markup:"path",update(te,U){let G;const ee=U.width,ne=U.height,re=U.thickness;ee-re>=0&&ne-re>=0?G=["M",ee,0,"H0 M0 0 V0",ne].join(" "):G="M 0 0 0 0",attr(te,{d:G,stroke:U.color,"stroke-width":U.thickness})}},doubleMesh=[{color:"rgba(224,224,224,1)",thickness:1,markup:"path",update(te,U){let G;const ee=U.width,ne=U.height,re=U.thickness;ee-re>=0&&ne-re>=0?G=["M",ee,0,"H0 M0 0 V0",ne].join(" "):G="M 0 0 0 0",attr(te,{d:G,stroke:U.color,"stroke-width":U.thickness})}},{color:"rgba(224,224,224,0.2)",thickness:3,factor:4,markup:"path",update(te,U){let G;const ee=U.factor||1,ne=U.width*ee,re=U.height*ee,oe=U.thickness;ne-oe>=0&&re-oe>=0?G=["M",ne,0,"H0 M0 0 V0",re].join(" "):G="M 0 0 0 0",U.width=ne,U.height=re,attr(te,{d:G,stroke:U.color,"stroke-width":U.thickness})}}],patterns$1=Object.freeze(Object.defineProperty({__proto__:null,dot,doubleMesh,fixedDot,mesh},Symbol.toStringTag,{value:"Module"}));class Grid{constructor(){this.patterns={},this.root=Vector.create(createSvgDocument(),{width:"100%",height:"100%"},[createSvgElement("defs")]).node}add(U,G){const ee=this.root.childNodes[0];ee&&ee.appendChild(G),this.patterns[U]=G,Vector.create("rect",{width:"100%",height:"100%",fill:`url(#${U})`}).appendTo(this.root)}get(U){return this.patterns[U]}has(U){return this.patterns[U]!=null}}(function(te){te.presets=patterns$1,te.registry=Registry.create({type:"grid"}),te.registry.register(te.presets,!0)})(Grid||(Grid={}));const flipX=function(te){const U=document.createElement("canvas"),G=te.width,ee=te.height;U.width=G*2,U.height=ee;const ne=U.getContext("2d");return ne.drawImage(te,0,0,G,ee),ne.translate(2*G,0),ne.scale(-1,1),ne.drawImage(te,0,0,G,ee),U},flipY=function(te){const U=document.createElement("canvas"),G=te.width,ee=te.height;U.width=G,U.height=ee*2;const ne=U.getContext("2d");return ne.drawImage(te,0,0,G,ee),ne.translate(0,2*ee),ne.scale(1,-1),ne.drawImage(te,0,0,G,ee),U},flipXY=function(te){const U=document.createElement("canvas"),G=te.width,ee=te.height;U.width=2*G,U.height=2*ee;const ne=U.getContext("2d");return ne.drawImage(te,0,0,G,ee),ne.setTransform(-1,0,0,-1,U.width,U.height),ne.drawImage(te,0,0,G,ee),ne.setTransform(-1,0,0,1,U.width,0),ne.drawImage(te,0,0,G,ee),ne.setTransform(1,0,0,-1,0,U.height),ne.drawImage(te,0,0,G,ee),U},watermark=function(te,U){const G=te.width,ee=te.height,ne=document.createElement("canvas");ne.width=G*3,ne.height=ee*3;const re=ne.getContext("2d"),oe=U.angle!=null?-U.angle:-20,ie=Angle.toRad(oe),le=ne.width/4,ae=ne.height/4;for(let se=0;se<4;se+=1)for(let ue=0;ue<4;ue+=1)(se+ue)%2>0&&(re.setTransform(1,0,0,1,(2*se-1)*le,(2*ue-1)*ae),re.rotate(ie),re.drawImage(te,-G/2,-ee/2,G,ee));return ne},patterns=Object.freeze(Object.defineProperty({__proto__:null,flipX,flipXY,flipY,watermark},Symbol.toStringTag,{value:"Module"}));var Background;(function(te){te.presets=Object.assign({},patterns),te.presets["flip-x"]=flipX,te.presets["flip-y"]=flipY,te.presets["flip-xy"]=flipXY,te.registry=Registry.create({type:"background pattern"}),te.registry.register(te.presets,!0)})(Background||(Background={}));function getString(te,U){return te??U}function getNumber(te,U){return te!=null&&Number.isFinite(te)?te:U}function outline(te={}){const U=getString(te.color,"blue"),G=getNumber(te.width,1),ee=getNumber(te.margin,2),ne=getNumber(te.opacity,1),re=ee,oe=ee+G;return`
|