@ecan-bi/datav 1.5.67 → 1.5.69

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/index.umd.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! @ecan-bi/datav@1.5.67 */
1
+ /*! @ecan-bi/datav@1.5.69 */
2
2
  (function(di,_i){typeof exports=="object"&&typeof module<"u"?_i(exports,require("vue"),require("echarts/core"),require("resize-detector"),require("ant-design-vue"),require("ant-design-vue/es/spin/style"),require("ant-design-vue/es/skeleton/style"),require("lodash-es"),require("dayjs"),require("axios"),require("mitt"),require("echarts/renderers"),require("echarts/charts"),require("echarts/components"),require("ant-design-vue/es/modal/style"),require("ant-design-vue/es/progress/style"),require("ant-design-vue/es/input/style"),require("ant-design-vue/es/date-picker/style"),require("ant-design-vue/es/date-picker/locale/zh_CN"),require("ant-design-vue/es/button/style"),require("ant-design-vue/es/checkbox/style"),require("ant-design-vue/es/select/style"),require("ant-design-vue/es/tree-select/style"),require("echarts"),require("ant-design-vue/es/table/style"),require("ant-design-vue/es/notification/style"),require("xlsx"),require("big.js")):typeof define=="function"&&define.amd?define(["exports","vue","echarts/core","resize-detector","ant-design-vue","ant-design-vue/es/spin/style","ant-design-vue/es/skeleton/style","lodash-es","dayjs","axios","mitt","echarts/renderers","echarts/charts","echarts/components","ant-design-vue/es/modal/style","ant-design-vue/es/progress/style","ant-design-vue/es/input/style","ant-design-vue/es/date-picker/style","ant-design-vue/es/date-picker/locale/zh_CN","ant-design-vue/es/button/style","ant-design-vue/es/checkbox/style","ant-design-vue/es/select/style","ant-design-vue/es/tree-select/style","echarts","ant-design-vue/es/table/style","ant-design-vue/es/notification/style","xlsx","big.js"],_i):(di=typeof globalThis<"u"?globalThis:di||self,_i(di["@ecan/bi-datav"]={},di.Vue,di["echarts/core"],di.ResizeDetector,di.AntDesignVue,null,null,di.LodashEs,di.Dayjs,di.Axios,di.Mitt,di["echarts/renderers"],di["echarts/charts"],di["echarts/components"],null,null,null,null,di["ant-design-vue/es/date-picker/locale/zh_CN"],null,null,null,null,di.Echarts,null,null,di.Xlsx,di.big.js))})(this,function(exports,vue,core$1,resizeDetector,antDesignVue,style$1,style$2,lodashEs,dayjs,axios,mitt,renderers,charts,components$1,style$3,style$4,style$5,style$6,locale,style$7,style$8,style$9,style$a,echarts,style$b,style$c,xlsx,big_js){var di,_i,Ii,Di;"use strict";function _interopNamespaceDefault(c){const u=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(c){for(const f in c)if(f!=="default"){const d=Object.getOwnPropertyDescriptor(c,f);Object.defineProperty(u,f,d.get?d:{enumerable:!0,get:()=>c[f]})}}return u.default=c,Object.freeze(u)}const echarts__namespace=_interopNamespaceDefault(echarts),METHOD_NAMES=["getWidth","getHeight","getDom","getOption","resize","dispatchAction","convertToPixel","convertFromPixel","containPixel","getDataURL","getConnectedDataURL","appendData","clear","isDisposed","dispose"];function usePublicAPI(c,u){function f(h){return(...v)=>{if(c.value||u(),!c.value)throw new Error("ECharts is not initialized yet.");return c.value[h].apply(c.value,v)}}function d(){const h=Object.create(null);return METHOD_NAMES.forEach(v=>{h[v]=f(v)}),h}return d()}function useAutoresize(c,u,f){let d=null;vue.watch([f,c,u],([h,v,p],m,g)=>{h&&v&&p&&(d=core$1.throttle(()=>{v.resize()},100),resizeDetector.addListener(h,d)),g(()=>{d&&h&&resizeDetector.removeListener(h,d)})})}const autoresizeProps={autoresize:Boolean},LOADING_OPTIONS_KEY="ecLoadingOptions";function useLoading(c,u,f){const d=vue.inject(LOADING_OPTIONS_KEY,{}),h=vue.computed(()=>({...vue.unref(d),...f==null?void 0:f.value}));vue.watchEffect(()=>{const v=c.value;v&&(u.value?v.showLoading(h.value):v.hideLoading())})}const loadingProps$1={loading:Boolean,loadingOptions:Object},style="",onRE=/^on[^a-z]/,isOn=c=>onRE.test(c);function omitOn(c){const u={};for(const f in c)isOn(f)||(u[f]=c[f]);return u}const TAG_NAME="x-vue-echarts",THEME_KEY="ecTheme",INIT_OPTIONS_KEY="ecInitOptions",UPDATE_OPTIONS_KEY="ecUpdateOptions",Echarts=vue.defineComponent({name:"echarts",props:{option:Object,theme:{type:[Object,String]},initOptions:Object,updateOptions:Object,group:String,manualUpdate:Boolean,...autoresizeProps,...loadingProps$1},inheritAttrs:!1,setup(c,{attrs:u,listeners:f}){const d=vue.shallowRef(),h=vue.shallowRef(),v=vue.shallowRef(),p=vue.inject(THEME_KEY,null),m=vue.inject(INIT_OPTIONS_KEY,null),g=vue.inject(UPDATE_OPTIONS_KEY,null),{autoresize:y,manualUpdate:b,loading:Pn,loadingOptions:x}=vue.toRefs(c),gn=vue.computed(()=>v.value||c.option||Object.create(null)),J=vue.computed(()=>c.theme||vue.unref(p)||{}),j=vue.computed(()=>c.initOptions||vue.unref(m)||{}),Rn=vue.computed(()=>c.updateOptions||vue.unref(g)||{}),Bn=vue.computed(()=>omitOn(u));function w(Yn){if(h.value||!d.value)return;const Wn=h.value=core$1.init(d.value,J.value,j.value);c.group&&(Wn.group=c.group);let Jn=f;Jn||(Jn={},Object.keys(u).filter(Qn=>Qn.indexOf("on")===0&&Qn.length>2).forEach(Qn=>{const ar=Qn.charAt(2).toLowerCase()+Qn.slice(3);Jn[ar]=u[Qn]})),Object.keys(Jn).forEach(Qn=>{const ar=Jn[Qn];ar&&(Qn.indexOf("zr:")===0?Wn.getZr().on(Qn.slice(3).toLowerCase(),ar):Wn.on(Qn.toLowerCase(),ar))});function tr(){if(Wn&&!Wn.isDisposed())try{Wn.resize()}catch(Qn){if(Qn.message==="Cannot read property 'get' of undefined")return;throw Qn}}function er(){Wn.setOption(Yn||gn.value,Rn.value)}y.value?vue.nextTick(()=>{tr(),er()}):er()}function vn(Yn,Wn){c.manualUpdate&&(v.value=Yn),h.value?h.value.setOption(Yn,Wn||{}):w(Yn)}function re(){h.value&&(h.value.dispose(),h.value=void 0)}let qn=null;vue.watch(b,Yn=>{typeof qn=="function"&&(qn(),qn=null),Yn||(qn=vue.watch(()=>c.option,Wn=>{Wn&&(h.value?h.value.setOption(Wn,Rn.value):w())},{deep:!0}))},{immediate:!0}),vue.watch([J,j],()=>{re(),w()},{deep:!0}),vue.watchEffect(()=>{c.group&&h.value&&(h.value.group=c.group)});const zn=usePublicAPI(h,w);return useLoading(h,Pn,x),useAutoresize(h,y,d),vue.onMounted(()=>{c.option&&w()}),vue.onUnmounted(re),{chart:h,root:d,setOption:vn,nonEventAttrs:Bn,...zn}},render(){const c={...this.nonEventAttrs};return c.ref="root",c.class=c.class?["echarts"].concat(c.class):"echarts",vue.h(TAG_NAME,c)}});function bound01(c,u){isOnePointZero(c)&&(c="100%");var f=isPercentage(c);return c=u===360?c:Math.min(u,Math.max(0,parseFloat(c))),f&&(c=parseInt(String(c*u),10)/100),Math.abs(c-u)<1e-6?1:(u===360?c=(c<0?c%u+u:c%u)/parseFloat(String(u)):c=c%u/parseFloat(String(u)),c)}function isOnePointZero(c){return typeof c=="string"&&c.indexOf(".")!==-1&&parseFloat(c)===1}function isPercentage(c){return typeof c=="string"&&c.indexOf("%")!==-1}function boundAlpha(c){return c=parseFloat(c),(isNaN(c)||c<0||c>1)&&(c=1),c}function convertToPercentage(c){return c<=1?"".concat(Number(c)*100,"%"):c}function pad2(c){return c.length===1?"0"+c:String(c)}function rgbToRgb(c,u,f){return{r:bound01(c,255)*255,g:bound01(u,255)*255,b:bound01(f,255)*255}}function hue2rgb(c,u,f){return f<0&&(f+=1),f>1&&(f-=1),f<1/6?c+(u-c)*(6*f):f<1/2?u:f<2/3?c+(u-c)*(2/3-f)*6:c}function hslToRgb(c,u,f){var d,h,v;if(c=bound01(c,360),u=bound01(u,100),f=bound01(f,100),u===0)h=f,v=f,d=f;else{var p=f<.5?f*(1+u):f+u-f*u,m=2*f-p;d=hue2rgb(m,p,c+1/3),h=hue2rgb(m,p,c),v=hue2rgb(m,p,c-1/3)}return{r:d*255,g:h*255,b:v*255}}function rgbToHsv(c,u,f){c=bound01(c,255),u=bound01(u,255),f=bound01(f,255);var d=Math.max(c,u,f),h=Math.min(c,u,f),v=0,p=d,m=d-h,g=d===0?0:m/d;if(d===h)v=0;else{switch(d){case c:v=(u-f)/m+(u<f?6:0);break;case u:v=(f-c)/m+2;break;case f:v=(c-u)/m+4;break}v/=6}return{h:v,s:g,v:p}}function hsvToRgb(c,u,f){c=bound01(c,360)*6,u=bound01(u,100),f=bound01(f,100);var d=Math.floor(c),h=c-d,v=f*(1-u),p=f*(1-h*u),m=f*(1-(1-h)*u),g=d%6,y=[f,p,v,v,m,f][g],b=[m,f,f,p,v,v][g],Pn=[v,v,m,f,f,p][g];return{r:y*255,g:b*255,b:Pn*255}}function rgbToHex(c,u,f,d){var h=[pad2(Math.round(c).toString(16)),pad2(Math.round(u).toString(16)),pad2(Math.round(f).toString(16))];return d&&h[0].startsWith(h[0].charAt(1))&&h[1].startsWith(h[1].charAt(1))&&h[2].startsWith(h[2].charAt(1))?h[0].charAt(0)+h[1].charAt(0)+h[2].charAt(0):h.join("")}function convertHexToDecimal(c){return parseIntFromHex(c)/255}function parseIntFromHex(c){return parseInt(c,16)}var names={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",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",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",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"};function inputToRGB(c){var u={r:0,g:0,b:0},f=1,d=null,h=null,v=null,p=!1,m=!1;return typeof c=="string"&&(c=stringInputToObject(c)),typeof c=="object"&&(isValidCSSUnit(c.r)&&isValidCSSUnit(c.g)&&isValidCSSUnit(c.b)?(u=rgbToRgb(c.r,c.g,c.b),p=!0,m=String(c.r).substr(-1)==="%"?"prgb":"rgb"):isValidCSSUnit(c.h)&&isValidCSSUnit(c.s)&&isValidCSSUnit(c.v)?(d=convertToPercentage(c.s),h=convertToPercentage(c.v),u=hsvToRgb(c.h,d,h),p=!0,m="hsv"):isValidCSSUnit(c.h)&&isValidCSSUnit(c.s)&&isValidCSSUnit(c.l)&&(d=convertToPercentage(c.s),v=convertToPercentage(c.l),u=hslToRgb(c.h,d,v),p=!0,m="hsl"),Object.prototype.hasOwnProperty.call(c,"a")&&(f=c.a)),f=boundAlpha(f),{ok:p,format:c.format||m,r:Math.min(255,Math.max(u.r,0)),g:Math.min(255,Math.max(u.g,0)),b:Math.min(255,Math.max(u.b,0)),a:f}}var CSS_INTEGER="[-\\+]?\\d+%?",CSS_NUMBER="[-\\+]?\\d*\\.\\d+%?",CSS_UNIT="(?:".concat(CSS_NUMBER,")|(?:").concat(CSS_INTEGER,")"),PERMISSIVE_MATCH3="[\\s|\\(]+(".concat(CSS_UNIT,")[,|\\s]+(").concat(CSS_UNIT,")[,|\\s]+(").concat(CSS_UNIT,")\\s*\\)?"),PERMISSIVE_MATCH4="[\\s|\\(]+(".concat(CSS_UNIT,")[,|\\s]+(").concat(CSS_UNIT,")[,|\\s]+(").concat(CSS_UNIT,")[,|\\s]+(").concat(CSS_UNIT,")\\s*\\)?"),matchers={CSS_UNIT:new RegExp(CSS_UNIT),rgb:new RegExp("rgb"+PERMISSIVE_MATCH3),rgba:new RegExp("rgba"+PERMISSIVE_MATCH4),hsl:new RegExp("hsl"+PERMISSIVE_MATCH3),hsla:new RegExp("hsla"+PERMISSIVE_MATCH4),hsv:new RegExp("hsv"+PERMISSIVE_MATCH3),hsva:new RegExp("hsva"+PERMISSIVE_MATCH4),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function stringInputToObject(c){if(c=c.trim().toLowerCase(),c.length===0)return!1;var u=!1;if(names[c])c=names[c],u=!0;else if(c==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var f=matchers.rgb.exec(c);return f?{r:f[1],g:f[2],b:f[3]}:(f=matchers.rgba.exec(c),f?{r:f[1],g:f[2],b:f[3],a:f[4]}:(f=matchers.hsl.exec(c),f?{h:f[1],s:f[2],l:f[3]}:(f=matchers.hsla.exec(c),f?{h:f[1],s:f[2],l:f[3],a:f[4]}:(f=matchers.hsv.exec(c),f?{h:f[1],s:f[2],v:f[3]}:(f=matchers.hsva.exec(c),f?{h:f[1],s:f[2],v:f[3],a:f[4]}:(f=matchers.hex8.exec(c),f?{r:parseIntFromHex(f[1]),g:parseIntFromHex(f[2]),b:parseIntFromHex(f[3]),a:convertHexToDecimal(f[4]),format:u?"name":"hex8"}:(f=matchers.hex6.exec(c),f?{r:parseIntFromHex(f[1]),g:parseIntFromHex(f[2]),b:parseIntFromHex(f[3]),format:u?"name":"hex"}:(f=matchers.hex4.exec(c),f?{r:parseIntFromHex(f[1]+f[1]),g:parseIntFromHex(f[2]+f[2]),b:parseIntFromHex(f[3]+f[3]),a:convertHexToDecimal(f[4]+f[4]),format:u?"name":"hex8"}:(f=matchers.hex3.exec(c),f?{r:parseIntFromHex(f[1]+f[1]),g:parseIntFromHex(f[2]+f[2]),b:parseIntFromHex(f[3]+f[3]),format:u?"name":"hex"}:!1)))))))))}function isValidCSSUnit(c){return!!matchers.CSS_UNIT.exec(String(c))}var hueStep=2,saturationStep=.16,saturationStep2=.05,brightnessStep1=.05,brightnessStep2=.15,lightColorCount=5,darkColorCount=4,darkColorMap=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function toHsv(c){var u=c.r,f=c.g,d=c.b,h=rgbToHsv(u,f,d);return{h:h.h*360,s:h.s,v:h.v}}function toHex(c){var u=c.r,f=c.g,d=c.b;return"#".concat(rgbToHex(u,f,d,!1))}function mix(c,u,f){var d=f/100,h={r:(u.r-c.r)*d+c.r,g:(u.g-c.g)*d+c.g,b:(u.b-c.b)*d+c.b};return h}function getHue(c,u,f){var d;return Math.round(c.h)>=60&&Math.round(c.h)<=240?d=f?Math.round(c.h)-hueStep*u:Math.round(c.h)+hueStep*u:d=f?Math.round(c.h)+hueStep*u:Math.round(c.h)-hueStep*u,d<0?d+=360:d>=360&&(d-=360),d}function getSaturation(c,u,f){if(c.h===0&&c.s===0)return c.s;var d;return f?d=c.s-saturationStep*u:u===darkColorCount?d=c.s+saturationStep:d=c.s+saturationStep2*u,d>1&&(d=1),f&&u===lightColorCount&&d>.1&&(d=.1),d<.06&&(d=.06),Number(d.toFixed(2))}function getValue(c,u,f){var d;return f?d=c.v+brightnessStep1*u:d=c.v-brightnessStep2*u,d>1&&(d=1),Number(d.toFixed(2))}function generate$1(c){for(var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},f=[],d=inputToRGB(c),h=lightColorCount;h>0;h-=1){var v=toHsv(d),p=toHex(inputToRGB({h:getHue(v,h,!0),s:getSaturation(v,h,!0),v:getValue(v,h,!0)}));f.push(p)}f.push(toHex(d));for(var m=1;m<=darkColorCount;m+=1){var g=toHsv(d),y=toHex(inputToRGB({h:getHue(g,m),s:getSaturation(g,m),v:getValue(g,m)}));f.push(y)}return u.theme==="dark"?darkColorMap.map(function(b){var Pn=b.index,x=b.opacity,gn=toHex(mix(inputToRGB(u.backgroundColor||"#141414"),inputToRGB(f[Pn]),x*100));return gn}):f}var presetPrimaryColors={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1890FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},presetPalettes={},presetDarkPalettes={};Object.keys(presetPrimaryColors).forEach(function(c){presetPalettes[c]=generate$1(presetPrimaryColors[c]),presetPalettes[c].primary=presetPalettes[c][5],presetDarkPalettes[c]=generate$1(presetPrimaryColors[c],{theme:"dark",backgroundColor:"#141414"}),presetDarkPalettes[c].primary=presetDarkPalettes[c][5]});var containers=[],styleElements=[],usage="insert-css: You need to provide a CSS string. Usage: insertCss(cssString[, options]).";function createStyleElement(){var c=document.createElement("style");return c.setAttribute("type","text/css"),c}function insertCss(c,u){if(u=u||{},c===void 0)throw new Error(usage);var f=u.prepend===!0?"prepend":"append",d=u.container!==void 0?u.container:document.querySelector("head"),h=containers.indexOf(d);h===-1&&(h=containers.push(d)-1,styleElements[h]={});var v;return styleElements[h]!==void 0&&styleElements[h][f]!==void 0?v=styleElements[h][f]:(v=styleElements[h][f]=createStyleElement(),f==="prepend"?d.insertBefore(v,d.childNodes[0]):d.appendChild(v)),c.charCodeAt(0)===65279&&(c=c.substr(1,c.length)),v.styleSheet?v.styleSheet.cssText+=c:v.textContent+=c,v}function _objectSpread$d(c){for(var u=1;u<arguments.length;u++){var f=arguments[u]!=null?Object(arguments[u]):{},d=Object.keys(f);typeof Object.getOwnPropertySymbols=="function"&&(d=d.concat(Object.getOwnPropertySymbols(f).filter(function(h){return Object.getOwnPropertyDescriptor(f,h).enumerable}))),d.forEach(function(h){_defineProperty$e(c,h,f[h])})}return c}function _defineProperty$e(c,u,f){return u in c?Object.defineProperty(c,u,{value:f,enumerable:!0,configurable:!0,writable:!0}):c[u]=f,c}function warn(c,u){process.env.NODE_ENV!=="production"&&!c&&console!==void 0&&console.error("Warning: ".concat(u))}function warning(c,u){warn(c,"[@ant-design/icons-vue] ".concat(u))}function isIconDefinition(c){return typeof c=="object"&&typeof c.name=="string"&&typeof c.theme=="string"&&(typeof c.icon=="object"||typeof c.icon=="function")}function generate(c,u,f){return f?vue.h(c.tag,_objectSpread$d({key:u},f,c.attrs),(c.children||[]).map(function(d,h){return generate(d,"".concat(u,"-").concat(c.tag,"-").concat(h))})):vue.h(c.tag,_objectSpread$d({key:u},c.attrs),(c.children||[]).map(function(d,h){return generate(d,"".concat(u,"-").concat(c.tag,"-").concat(h))}))}function getSecondaryColor(c){return generate$1(c)[0]}function normalizeTwoToneColors(c){return c?Array.isArray(c)?c:[c]:[]}var iconStyles=`
3
3
  .anticon {
4
4
  display: inline-block;
@@ -58,7 +58,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
58
58
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray$1(c,u){if(c){if(typeof c=="string")return _arrayLikeToArray$1(c,u);var f=Object.prototype.toString.call(c).slice(8,-1);if(f==="Object"&&c.constructor&&(f=c.constructor.name),f==="Map"||f==="Set")return Array.from(c);if(f==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(f))return _arrayLikeToArray$1(c,u)}}function _arrayLikeToArray$1(c,u){(u==null||u>c.length)&&(u=c.length);for(var f=0,d=new Array(u);f<u;f++)d[f]=c[f];return d}function _iterableToArrayLimit(c,u){var f=c==null?null:typeof Symbol<"u"&&c[Symbol.iterator]||c["@@iterator"];if(f!=null){var d=[],h=!0,v=!1,p,m;try{for(f=f.call(c);!(h=(p=f.next()).done)&&(d.push(p.value),!(u&&d.length===u));h=!0);}catch(g){v=!0,m=g}finally{try{!h&&f.return!=null&&f.return()}finally{if(v)throw m}}return d}}function _arrayWithHoles(c){if(Array.isArray(c))return c}function _objectSpread$b(c){for(var u=1;u<arguments.length;u++){var f=arguments[u]!=null?Object(arguments[u]):{},d=Object.keys(f);typeof Object.getOwnPropertySymbols=="function"&&(d=d.concat(Object.getOwnPropertySymbols(f).filter(function(h){return Object.getOwnPropertyDescriptor(f,h).enumerable}))),d.forEach(function(h){_defineProperty$c(c,h,f[h])})}return c}function _defineProperty$c(c,u,f){return u in c?Object.defineProperty(c,u,{value:f,enumerable:!0,configurable:!0,writable:!0}):c[u]=f,c}function _objectWithoutProperties(c,u){if(c==null)return{};var f=_objectWithoutPropertiesLoose(c,u),d,h;if(Object.getOwnPropertySymbols){var v=Object.getOwnPropertySymbols(c);for(h=0;h<v.length;h++)d=v[h],!(u.indexOf(d)>=0)&&Object.prototype.propertyIsEnumerable.call(c,d)&&(f[d]=c[d])}return f}function _objectWithoutPropertiesLoose(c,u){if(c==null)return{};var f={},d=Object.keys(c),h,v;for(v=0;v<d.length;v++)h=d[v],!(u.indexOf(h)>=0)&&(f[h]=c[h]);return f}setTwoToneColor("#1890ff");var Icon$1=function(u,f){var d,h=_objectSpread$b({},u,f.attrs),v=h.class,p=h.icon,m=h.spin,g=h.rotate,y=h.tabindex,b=h.twoToneColor,Pn=h.onClick,x=_objectWithoutProperties(h,_excluded),gn=(d={anticon:!0},_defineProperty$c(d,"anticon-".concat(p.name),!!p.name),_defineProperty$c(d,v,v),d),J=m===""||m||p.name==="loading"?"anticon-spin":"",j=y;j===void 0&&Pn&&(j=-1,x.tabindex=j);var Rn=g?{msTransform:"rotate(".concat(g,"deg)"),transform:"rotate(".concat(g,"deg)")}:void 0,Bn=normalizeTwoToneColors(b),w=_slicedToArray(Bn,2),vn=w[0],re=w[1];return vue.createVNode("span",_objectSpread$b({role:"img","aria-label":p.name},x,{onClick:Pn,class:gn}),[vue.createVNode(VueIcon,{class:J,icon:p,primaryColor:vn,secondaryColor:re,style:Rn},null)])};Icon$1.props={spin:Boolean,rotate:Number,icon:Object,twoToneColor:String},Icon$1.displayName="AntdIcon",Icon$1.inheritAttrs=!1,Icon$1.getTwoToneColor=getTwoToneColor,Icon$1.setTwoToneColor=setTwoToneColor;const AntdIcon=Icon$1;var BorderOutlined$2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"border",theme:"outlined"};const BorderOutlinedSvg=BorderOutlined$2;function _objectSpread$a(c){for(var u=1;u<arguments.length;u++){var f=arguments[u]!=null?Object(arguments[u]):{},d=Object.keys(f);typeof Object.getOwnPropertySymbols=="function"&&(d=d.concat(Object.getOwnPropertySymbols(f).filter(function(h){return Object.getOwnPropertyDescriptor(f,h).enumerable}))),d.forEach(function(h){_defineProperty$b(c,h,f[h])})}return c}function _defineProperty$b(c,u,f){return u in c?Object.defineProperty(c,u,{value:f,enumerable:!0,configurable:!0,writable:!0}):c[u]=f,c}var BorderOutlined=function(u,f){var d=_objectSpread$a({},u,f.attrs);return vue.createVNode(AntdIcon,_objectSpread$a({},d,{icon:BorderOutlinedSvg}),null)};BorderOutlined.displayName="BorderOutlined",BorderOutlined.inheritAttrs=!1;const BorderOutlined$1=BorderOutlined;var CalendarOutlined$2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z"}}]},name:"calendar",theme:"outlined"};const CalendarOutlinedSvg=CalendarOutlined$2;function _objectSpread$9(c){for(var u=1;u<arguments.length;u++){var f=arguments[u]!=null?Object(arguments[u]):{},d=Object.keys(f);typeof Object.getOwnPropertySymbols=="function"&&(d=d.concat(Object.getOwnPropertySymbols(f).filter(function(h){return Object.getOwnPropertyDescriptor(f,h).enumerable}))),d.forEach(function(h){_defineProperty$a(c,h,f[h])})}return c}function _defineProperty$a(c,u,f){return u in c?Object.defineProperty(c,u,{value:f,enumerable:!0,configurable:!0,writable:!0}):c[u]=f,c}var CalendarOutlined=function(u,f){var d=_objectSpread$9({},u,f.attrs);return vue.createVNode(AntdIcon,_objectSpread$9({},d,{icon:CalendarOutlinedSvg}),null)};CalendarOutlined.displayName="CalendarOutlined",CalendarOutlined.inheritAttrs=!1;const CalendarOutlined$1=CalendarOutlined;var CloseCircleFilled$2={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"};const CloseCircleFilledSvg=CloseCircleFilled$2;function _objectSpread$8(c){for(var u=1;u<arguments.length;u++){var f=arguments[u]!=null?Object(arguments[u]):{},d=Object.keys(f);typeof Object.getOwnPropertySymbols=="function"&&(d=d.concat(Object.getOwnPropertySymbols(f).filter(function(h){return Object.getOwnPropertyDescriptor(f,h).enumerable}))),d.forEach(function(h){_defineProperty$9(c,h,f[h])})}return c}function _defineProperty$9(c,u,f){return u in c?Object.defineProperty(c,u,{value:f,enumerable:!0,configurable:!0,writable:!0}):c[u]=f,c}var CloseCircleFilled=function(u,f){var d=_objectSpread$8({},u,f.attrs);return vue.createVNode(AntdIcon,_objectSpread$8({},d,{icon:CloseCircleFilledSvg}),null)};CloseCircleFilled.displayName="CloseCircleFilled",CloseCircleFilled.inheritAttrs=!1;const CloseCircleFilled$1=CloseCircleFilled;var CloseOutlined$2={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"};const CloseOutlinedSvg=CloseOutlined$2;function _objectSpread$7(c){for(var u=1;u<arguments.length;u++){var f=arguments[u]!=null?Object(arguments[u]):{},d=Object.keys(f);typeof Object.getOwnPropertySymbols=="function"&&(d=d.concat(Object.getOwnPropertySymbols(f).filter(function(h){return Object.getOwnPropertyDescriptor(f,h).enumerable}))),d.forEach(function(h){_defineProperty$8(c,h,f[h])})}return c}function _defineProperty$8(c,u,f){return u in c?Object.defineProperty(c,u,{value:f,enumerable:!0,configurable:!0,writable:!0}):c[u]=f,c}var CloseOutlined=function(u,f){var d=_objectSpread$7({},u,f.attrs);return vue.createVNode(AntdIcon,_objectSpread$7({},d,{icon:CloseOutlinedSvg}),null)};CloseOutlined.displayName="CloseOutlined",CloseOutlined.inheritAttrs=!1;const CloseOutlined$1=CloseOutlined;var DownOutlined$2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"};const DownOutlinedSvg=DownOutlined$2;function _objectSpread$6(c){for(var u=1;u<arguments.length;u++){var f=arguments[u]!=null?Object(arguments[u]):{},d=Object.keys(f);typeof Object.getOwnPropertySymbols=="function"&&(d=d.concat(Object.getOwnPropertySymbols(f).filter(function(h){return Object.getOwnPropertyDescriptor(f,h).enumerable}))),d.forEach(function(h){_defineProperty$7(c,h,f[h])})}return c}function _defineProperty$7(c,u,f){return u in c?Object.defineProperty(c,u,{value:f,enumerable:!0,configurable:!0,writable:!0}):c[u]=f,c}var DownOutlined=function(u,f){var d=_objectSpread$6({},u,f.attrs);return vue.createVNode(AntdIcon,_objectSpread$6({},d,{icon:DownOutlinedSvg}),null)};DownOutlined.displayName="DownOutlined",DownOutlined.inheritAttrs=!1;const DownOutlined$1=DownOutlined;var LoadingOutlined$2={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"};const LoadingOutlinedSvg=LoadingOutlined$2;function _objectSpread$5(c){for(var u=1;u<arguments.length;u++){var f=arguments[u]!=null?Object(arguments[u]):{},d=Object.keys(f);typeof Object.getOwnPropertySymbols=="function"&&(d=d.concat(Object.getOwnPropertySymbols(f).filter(function(h){return Object.getOwnPropertyDescriptor(f,h).enumerable}))),d.forEach(function(h){_defineProperty$6(c,h,f[h])})}return c}function _defineProperty$6(c,u,f){return u in c?Object.defineProperty(c,u,{value:f,enumerable:!0,configurable:!0,writable:!0}):c[u]=f,c}var LoadingOutlined=function(u,f){var d=_objectSpread$5({},u,f.attrs);return vue.createVNode(AntdIcon,_objectSpread$5({},d,{icon:LoadingOutlinedSvg}),null)};LoadingOutlined.displayName="LoadingOutlined",LoadingOutlined.inheritAttrs=!1;const LoadingOutlined$1=LoadingOutlined;var RedoOutlined$2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M758.2 839.1C851.8 765.9 912 651.9 912 523.9 912 303 733.5 124.3 512.6 124 291.4 123.7 112 302.8 112 523.9c0 125.2 57.5 236.9 147.6 310.2 3.5 2.8 8.6 2.2 11.4-1.3l39.4-50.5c2.7-3.4 2.1-8.3-1.2-11.1-8.1-6.6-15.9-13.7-23.4-21.2a318.64 318.64 0 01-68.6-101.7C200.4 609 192 567.1 192 523.9s8.4-85.1 25.1-124.5c16.1-38.1 39.2-72.3 68.6-101.7 29.4-29.4 63.6-52.5 101.7-68.6C426.9 212.4 468.8 204 512 204s85.1 8.4 124.5 25.1c38.1 16.1 72.3 39.2 101.7 68.6 29.4 29.4 52.5 63.6 68.6 101.7 16.7 39.4 25.1 81.3 25.1 124.5s-8.4 85.1-25.1 124.5a318.64 318.64 0 01-68.6 101.7c-9.3 9.3-19.1 18-29.3 26L668.2 724a8 8 0 00-14.1 3l-39.6 162.2c-1.2 5 2.6 9.9 7.7 9.9l167 .8c6.7 0 10.5-7.7 6.3-12.9l-37.3-47.9z"}}]},name:"redo",theme:"outlined"};const RedoOutlinedSvg=RedoOutlined$2;function _objectSpread$4(c){for(var u=1;u<arguments.length;u++){var f=arguments[u]!=null?Object(arguments[u]):{},d=Object.keys(f);typeof Object.getOwnPropertySymbols=="function"&&(d=d.concat(Object.getOwnPropertySymbols(f).filter(function(h){return Object.getOwnPropertyDescriptor(f,h).enumerable}))),d.forEach(function(h){_defineProperty$5(c,h,f[h])})}return c}function _defineProperty$5(c,u,f){return u in c?Object.defineProperty(c,u,{value:f,enumerable:!0,configurable:!0,writable:!0}):c[u]=f,c}var RedoOutlined=function(u,f){var d=_objectSpread$4({},u,f.attrs);return vue.createVNode(AntdIcon,_objectSpread$4({},d,{icon:RedoOutlinedSvg}),null)};RedoOutlined.displayName="RedoOutlined",RedoOutlined.inheritAttrs=!1;const RedoOutlined$1=RedoOutlined;var RightOutlined$2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"};const RightOutlinedSvg=RightOutlined$2;function _objectSpread$3(c){for(var u=1;u<arguments.length;u++){var f=arguments[u]!=null?Object(arguments[u]):{},d=Object.keys(f);typeof Object.getOwnPropertySymbols=="function"&&(d=d.concat(Object.getOwnPropertySymbols(f).filter(function(h){return Object.getOwnPropertyDescriptor(f,h).enumerable}))),d.forEach(function(h){_defineProperty$4(c,h,f[h])})}return c}function _defineProperty$4(c,u,f){return u in c?Object.defineProperty(c,u,{value:f,enumerable:!0,configurable:!0,writable:!0}):c[u]=f,c}var RightOutlined=function(u,f){var d=_objectSpread$3({},u,f.attrs);return vue.createVNode(AntdIcon,_objectSpread$3({},d,{icon:RightOutlinedSvg}),null)};RightOutlined.displayName="RightOutlined",RightOutlined.inheritAttrs=!1;const RightOutlined$1=RightOutlined;var SwitcherOutlined$2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M752 240H144c-17.7 0-32 14.3-32 32v608c0 17.7 14.3 32 32 32h608c17.7 0 32-14.3 32-32V272c0-17.7-14.3-32-32-32zm-40 600H184V312h528v528zm168-728H264c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h576v576c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V144c0-17.7-14.3-32-32-32zM300 550h296v64H300z"}}]},name:"switcher",theme:"outlined"};const SwitcherOutlinedSvg=SwitcherOutlined$2;function _objectSpread$2(c){for(var u=1;u<arguments.length;u++){var f=arguments[u]!=null?Object(arguments[u]):{},d=Object.keys(f);typeof Object.getOwnPropertySymbols=="function"&&(d=d.concat(Object.getOwnPropertySymbols(f).filter(function(h){return Object.getOwnPropertyDescriptor(f,h).enumerable}))),d.forEach(function(h){_defineProperty$3(c,h,f[h])})}return c}function _defineProperty$3(c,u,f){return u in c?Object.defineProperty(c,u,{value:f,enumerable:!0,configurable:!0,writable:!0}):c[u]=f,c}var SwitcherOutlined=function(u,f){var d=_objectSpread$2({},u,f.attrs);return vue.createVNode(AntdIcon,_objectSpread$2({},d,{icon:SwitcherOutlinedSvg}),null)};SwitcherOutlined.displayName="SwitcherOutlined",SwitcherOutlined.inheritAttrs=!1;const SwitcherOutlined$1=SwitcherOutlined;var ZoomInOutlined$2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H519V309c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v134H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h118v134c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V519h118c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-in",theme:"outlined"};const ZoomInOutlinedSvg=ZoomInOutlined$2;function _objectSpread$1(c){for(var u=1;u<arguments.length;u++){var f=arguments[u]!=null?Object(arguments[u]):{},d=Object.keys(f);typeof Object.getOwnPropertySymbols=="function"&&(d=d.concat(Object.getOwnPropertySymbols(f).filter(function(h){return Object.getOwnPropertyDescriptor(f,h).enumerable}))),d.forEach(function(h){_defineProperty$2(c,h,f[h])})}return c}function _defineProperty$2(c,u,f){return u in c?Object.defineProperty(c,u,{value:f,enumerable:!0,configurable:!0,writable:!0}):c[u]=f,c}var ZoomInOutlined=function(u,f){var d=_objectSpread$1({},u,f.attrs);return vue.createVNode(AntdIcon,_objectSpread$1({},d,{icon:ZoomInOutlinedSvg}),null)};ZoomInOutlined.displayName="ZoomInOutlined",ZoomInOutlined.inheritAttrs=!1;const ZoomInOutlined$1=ZoomInOutlined;var ZoomOutOutlined$2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h312c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-out",theme:"outlined"};const ZoomOutOutlinedSvg=ZoomOutOutlined$2;function _objectSpread(c){for(var u=1;u<arguments.length;u++){var f=arguments[u]!=null?Object(arguments[u]):{},d=Object.keys(f);typeof Object.getOwnPropertySymbols=="function"&&(d=d.concat(Object.getOwnPropertySymbols(f).filter(function(h){return Object.getOwnPropertyDescriptor(f,h).enumerable}))),d.forEach(function(h){_defineProperty$1(c,h,f[h])})}return c}function _defineProperty$1(c,u,f){return u in c?Object.defineProperty(c,u,{value:f,enumerable:!0,configurable:!0,writable:!0}):c[u]=f,c}var ZoomOutOutlined=function(u,f){var d=_objectSpread({},u,f.attrs);return vue.createVNode(AntdIcon,_objectSpread({},d,{icon:ZoomOutOutlinedSvg}),null)};ZoomOutOutlined.displayName="ZoomOutOutlined",ZoomOutOutlined.inheritAttrs=!1;const ZoomOutOutlined$1=ZoomOutOutlined,_sfc_main$F=vue.defineComponent({props:{spinning:{type:Boolean,default:!1}},components:{ASpin:antDesignVue.Spin},setup(){return{indicator:vue.h(LoadingOutlined$1,{style:{fontSize:"24px",color:"#1890ff"},spin:!0})}}}),Spin_vue_vue_type_style_index_0_lang="",_export_sfc$1=(c,u)=>{const f=c.__vccOpts||c;for(const[d,h]of u)f[d]=h;return f},_hoisted_1$r={class:"spin-wrapper"};function _sfc_render$K(c,u,f,d,h,v){const p=vue.resolveComponent("a-spin");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$r,[c.spinning?(vue.openBlock(),vue.createBlock(p,{key:0,class:"spin",spinning:c.spinning,indicator:c.indicator,tip:"加载中..."},null,8,["spinning","indicator"])):vue.renderSlot(c.$slots,"default",{key:1})])}const Spin=_export_sfc$1(_sfc_main$F,[["render",_sfc_render$K]]),_sfc_main$E=vue.defineComponent({name:"Skeleton",props:{loading:{type:Boolean,default:!1}},components:{ASkeleton:antDesignVue.Skeleton}});function _sfc_render$J(c,u,f,d,h,v){const p=vue.resolveComponent("a-skeleton");return vue.openBlock(),vue.createBlock(p,{active:"",loading:c.loading},{default:vue.withCtx(()=>[vue.renderSlot(c.$slots,"default")]),_:3},8,["loading"])}const Skeleton=_export_sfc$1(_sfc_main$E,[["render",_sfc_render$J]]);(function(){try{if(typeof document<"u"){var c=document.createElement("style");c.appendChild(document.createTextNode('.vue3-marquee{display:flex!important;position:relative}.vue3-marquee.horizontal{overflow-x:hidden!important;flex-direction:row!important;width:100%;height:max-content}.vue3-marquee.vertical{overflow-y:hidden!important;flex-direction:column!important;height:100%;width:max-content}.vue3-marquee:hover>.marquee{animation-play-state:var(--pauseOnHover)}.vue3-marquee:active>.marquee{animation-play-state:var(--pauseOnClick)}.vue3-marquee>.marquee{flex:0 0 auto;min-width:var(--min-width);min-height:var(--min-height);z-index:1;animation:var(--orientation) var(--duration) linear var(--delay) var(--loops);animation-play-state:var(--pauseAnimation);animation-direction:var(--direction)}.vue3-marquee.horizontal>.marquee{display:flex;flex-direction:row;align-items:center}.vue3-marquee.vertical>.marquee{display:flex;flex-direction:column;align-items:center}@keyframes scrollX{0%{transform:translate(0)}to{transform:translate(-100%)}}@keyframes scrollY{0%{transform:translateY(0)}to{transform:translateY(-100%)}}.vue3-marquee>.overlay{position:absolute;width:100%;height:100%}.vue3-marquee>.transparent-overlay{position:absolute;width:100%;height:100%}.vue3-marquee>.overlay:before,.vue3-marquee>.overlay:after{content:"";position:absolute;z-index:2}.vue3-marquee.horizontal>.overlay:before,.vue3-marquee.horizontal>.overlay:after{background:linear-gradient(to right,var(--gradient-color));height:100%;width:var(--gradient-length)}.vue3-marquee.vertical>.overlay:before,.vue3-marquee.vertical>.overlay:after{background:linear-gradient(to bottom,var(--gradient-color));height:var(--gradient-length);width:100%}.vue3-marquee.horizontal>.overlay:after{transform:rotate(180deg)}.vue3-marquee.vertical>.overlay:after{transform:rotate(-180deg)}.vue3-marquee>.overlay:before{left:0;top:0}.vue3-marquee.horizontal>.overlay:after{right:0;top:0}.vue3-marquee.vertical>.overlay:after{left:0;bottom:0}')),document.head.appendChild(c)}}catch(u){console.error("vite-plugin-css-injected-by-js",u)}})();var __defProp=Object.defineProperty,__getOwnPropSymbols=Object.getOwnPropertySymbols,__hasOwnProp=Object.prototype.hasOwnProperty,__propIsEnum=Object.prototype.propertyIsEnumerable,__defNormalProp=(c,u,f)=>u in c?__defProp(c,u,{enumerable:!0,configurable:!0,writable:!0,value:f}):c[u]=f,__spreadValues=(c,u)=>{for(var f in u||(u={}))__hasOwnProp.call(u,f)&&__defNormalProp(c,f,u[f]);if(__getOwnPropSymbols)for(var f of __getOwnPropSymbols(u))__propIsEnum.call(u,f)&&__defNormalProp(c,f,u[f]);return c},_export_sfc=(c,u)=>{const f=c.__vccOpts||c;for(const[d,h]of u)f[d]=h;return f};const _sfc_main$D=vue.defineComponent({props:{vertical:{type:Boolean,default:!1},direction:{type:String,default:"normal"},duration:{type:Number,default:20},delay:{type:Number,default:0},loop:{type:Number,default:0},clone:{type:Boolean,default:!1},gradient:{type:Boolean,default:!1},gradientColor:{type:Array,default:[255,255,255]},gradientWidth:{type:String},gradientLength:{type:String},pauseOnHover:{type:Boolean,default:!1},pauseOnClick:{type:Boolean,default:!1},pause:{type:Boolean,default:!1},animateOnOverflowOnly:{type:Boolean,default:!1}},emits:["onComplete","onLoopComplete","onPause","onResume","onOverflowDetected","onOverflowCleared"],setup(c,{emit:u}){const f=vue.ref(0),d=vue.ref("100%"),h=vue.ref("100%"),v=vue.ref(0),p=vue.ref(!1),m=vue.ref(!1),g=vue.ref(0),y=vue.ref(0),b=vue.ref(0),Pn=vue.ref(0),x=vue.ref(!1),gn=vue.ref(!1),J=vue.ref(0),j=vue.ref(null),Rn=vue.ref("200px"),Bn=vue.ref(!1),w=vue.ref(null),vn=vue.ref(null),re=async()=>{await qn(),v.value++},qn=async()=>{c.vertical&&(p.value=!0),setInterval(()=>{if(d.value="0%",h.value="0%",w.value!==null&&vn.value!==null&&w.value&&vn.value)if(c.vertical&&"clientHeight"in w.value&&"clientHeight"in vn.value){Pn.value=w.value.clientHeight,b.value=vn.value.clientHeight;const Un=Math.ceil(b.value/Pn.value);return f.value=isFinite(Un)?Un:0,p.value=!1,f.value}else if(!c.vertical&&"clientWidth"in w.value&&"clientWidth"in vn.value){if(y.value=w.value.clientWidth,g.value=vn.value.clientWidth,c.animateOnOverflowOnly)return y.value<g.value?(m.value=!0,u("onOverflowDetected")):(m.value=!1,u("onOverflowCleared")),0;const Un=Math.ceil(g.value/y.value);return f.value=isFinite(Un)?Un:0,f.value}else return d.value="100%",h.value="100%",0;else return d.value="100%",h.value="100%",0},100)};vue.watch(y,async()=>{c.clone&&re()}),vue.watch(g,async()=>{(c.clone||c.animateOnOverflowOnly)&&re()}),vue.watch(()=>c.pause,(Un,Zn)=>{Un!==Zn&&u(Un?"onResume":"onPause")});const zn=()=>{c.pauseOnHover&&(u("onPause"),x.value=!0)},Yn=()=>{c.pauseOnHover&&(u("onResume"),x.value=!1)},Wn=()=>{c.pauseOnClick&&(u("onPause"),gn.value=!0)},Jn=()=>{c.pauseOnClick&&(u("onResume"),gn.value=!1)},tr=vue.computed(()=>c.pause||c.vertical&&p.value||c.animateOnOverflowOnly&&m.value?"paused":"running"),er=vue.computed(()=>c.pauseOnHover&&(x.value||gn.value)||!c.pauseOnHover&&tr.value==="paused"?"paused":"running"),Qn=vue.computed(()=>c.pauseOnHover&&x.value||c.pauseOnClick&&gn.value||!c.pauseOnHover&&tr.value==="paused"?"paused":"running"),ar=vue.computed(()=>{const Un={"--duration":`${c.duration}s`,"--delay":`${c.delay}s`,"--direction":`${c.direction}`,"--pauseOnHover":`${er.value}`,"--pauseOnClick":`${Qn.value}`,"--pauseAnimation":`${tr.value}`,"--loops":`${c.loop===0?"infinite":c.loop}`,"--gradient-color":`rgba(${c.gradientColor[0]}, ${c.gradientColor[1]}, ${c.gradientColor[2]}, 1), rgba(${c.gradientColor[0]}, ${c.gradientColor[1]}, ${c.gradientColor[2]}, 0)`,"--gradient-length":`${Rn.value}`,"--min-width":`${d.value}`,"--min-height":`${h.value}`},Zn={"--orientation":"scrollX",orientation:"horizontal"};return c.vertical&&(Zn["--orientation"]="scrollY"),__spreadValues(__spreadValues({},Un),Zn)}),hr=vue.computed(()=>!!c.gradient),sr=async()=>{c.vertical?(h.value="100%",d.value="auto",c.animateOnOverflowOnly&&console.warn("The `animateOnOverflowOnly` prop is not supported for vertical marquees.")):(h.value="auto",c.animateOnOverflowOnly?d.value="auto":d.value="100%"),c.gradient&&(c.gradientWidth?(console.warn("The `gradientWidth` prop has been deprecated and will be removed in a future release. Please use `gradientLength` instead."),Rn.value=c.gradientWidth):c.gradientLength&&(Rn.value=c.gradientLength)),(c.clone||c.animateOnOverflowOnly)&&(await qn(),re()),Bn.value=!0};return vue.onMounted(async()=>{sr(),j.value=setInterval(()=>{J.value++,c.loop!==0&&J.value===c.loop&&(u("onComplete"),clearInterval(j.value)),u("onLoopComplete")},c.duration*1e3)}),vue.onBeforeUnmount(()=>{clearInterval(j.value)}),{ready:Bn,contentWidth:y,containerWidth:g,contentHeight:Pn,containerHeight:b,loopCounter:J,loopInterval:j,mouseOverMarquee:x,mouseDownMarquee:gn,minWidth:d,minHeight:h,animateOnOverflowPause:m,marqueeContent:w,marqueeOverlayContainer:vn,componentKey:v,showGradient:hr,cloneAmount:f,ForcesUpdate:re,checkForClone:qn,setupMarquee:sr,getCurrentStyle:ar,hoverStarted:zn,hoverEnded:Yn,mouseDown:Wn,mouseUp:Jn}}}),_hoisted_1$q={class:"transparent-overlay",ref:"marqueeOverlayContainer","aria-hidden":!0},_hoisted_2$g={class:"marquee",ref:"marqueeContent"},_hoisted_3$8={key:1,"aria-hidden":!0,class:"marquee"};function _sfc_render$I(c,u,f,d,h,v){return c.ready?(vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(["vue3-marquee",{vertical:c.vertical,horizontal:!c.vertical}]),style:vue.normalizeStyle(c.getCurrentStyle),key:c.componentKey,onMouseenter:u[0]||(u[0]=(...p)=>c.hoverStarted&&c.hoverStarted(...p)),onMouseleave:u[1]||(u[1]=(...p)=>c.hoverEnded&&c.hoverEnded(...p)),onMousedown:u[2]||(u[2]=(...p)=>c.mouseDown&&c.mouseDown(...p)),onMouseup:u[3]||(u[3]=(...p)=>c.mouseUp&&c.mouseUp(...p))},[vue.createElementVNode("div",_hoisted_1$q,null,512),c.showGradient?(vue.openBlock(),vue.createElementBlock("div",{key:0,"aria-hidden":!0,class:vue.normalizeClass(["overlay",{vertical:c.vertical,horizontal:!c.vertical}])},null,2)):vue.createCommentVNode("",!0),vue.createElementVNode("div",_hoisted_2$g,[vue.renderSlot(c.$slots,"default")],512),!c.animateOnOverflowOnly||c.animateOnOverflowOnly&&!c.animateOnOverflowPause?(vue.openBlock(),vue.createElementBlock("div",_hoisted_3$8,[vue.renderSlot(c.$slots,"default")])):vue.createCommentVNode("",!0),(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(c.cloneAmount,p=>(vue.openBlock(),vue.createElementBlock("div",{"aria-hidden":!0,class:"marquee cloned",key:p},[vue.renderSlot(c.$slots,"default")]))),128))],38)):vue.createCommentVNode("",!0)}var Vue3Marquee=_export_sfc(_sfc_main$D,[["render",_sfc_render$I]]);const _sfc_main$C=vue.defineComponent({name:"SeamScroll",components:{Vue3Marquee},props:{dataSource:{type:Object,default:()=>{}},visible:{type:Boolean,default:!1},vertical:{type:Boolean,default:!0},step:{type:Number,default:1},wrapStyle:{type:Object,default:()=>({})},marqueeStyle:{type:Object,default:()=>({})}},setup(c){return{isAutoScroll:vue.ref(c.visible)}}}),MarqueeScroll_vue_vue_type_style_index_0_lang="";function _sfc_render$H(c,u,f,d,h,v){const p=vue.resolveComponent("Vue3Marquee");return c.isAutoScroll?(vue.openBlock(),vue.createBlock(p,{key:0,class:"vue-marquee",style:vue.normalizeStyle({...c.marqueeStyle,width:"100%"}),duration:c.step,vertical:c.vertical,pauseOnHover:!0},{default:vue.withCtx(()=>[vue.renderSlot(c.$slots,"default")]),_:3},8,["style","duration","vertical"])):(vue.openBlock(),vue.createElementBlock("div",{key:1,class:"list-wrap",style:vue.normalizeStyle(c.wrapStyle)},[vue.renderSlot(c.$slots,"default")],4))}const MarqueeScroll=_export_sfc$1(_sfc_main$C,[["render",_sfc_render$H]]);process.env.NODE_ENV!=="production"&&Object.freeze({}),process.env.NODE_ENV!=="production"&&Object.freeze([]);const withInstall$1=(c,u)=>{if(c.install=f=>{for(const d of[c,...Object.values(u??{})])f.component(d.name,d)},u)for(const[f,d]of Object.entries(u))c[f]=d;return c},props$1={id:"",name:"",keyName:"",type:"",width:"100px",height:"40px",position:"absolute",top:"0px",left:"0px",zIndex:1,rotate:"0deg",isShow:!0,isRender:!0,requestUrl:"",requestType:0,requestMethod:"get",dataSetParam:{},requestHeaders:"{}",isOpenRequestTimer:!1,isViewRedrawing:!1,requestInterval:1,requestSort:0,requestParams:[{key:null,value:{}}],events:[],dataType:"static",scale:1,requestParamsMode:"1",customRequestParams:"{}",componentDoc:null,extendData:{},toolboxShow:!1,isShowIndDetail:!1,isShowTrend:!1,indDetailIconColor:"#333",indDetailIconFontSize:"16px"},transformToComponentProps=c=>{const u={};if(typeof c=="object"&&c!=null)for(const f in c){const d=c[f];let h=d==null?void 0:d.constructor;["width","height","requestHeaders"].includes(f)?h=[d==null?void 0:d.constructor,Object]:["left","top"].includes(f)&&(h=[d==null?void 0:d.constructor,Number]),u[f]={type:h,default:d}}return u},pageConfig={width:"1920px",height:"1080px",backgroundColor:"#ffffff",backgroundImage:"",backgroundSize:"100% 100%",contextRequestUrl:"",mode:"normal",pageFontFamily:"",textColor:"",jumpType:"page",jumpTime:null,jumpPage:"",jumpLink:"",requestList:[],isCompatible:!0,variableList:[],drillingMode:"pivotTable",pivotTableFontSize:"16px",drillDetailUrl:""},pageConfigComponentProps=transformToComponentProps(pageConfig),EVENT_BUS="EVENT_BUS",GLOBAL_CONFIG="GLOBAL_CONFIG",GLOBAL_MODEL="GLOBAL_MODEL",REQUEST_MODEL="REQUEST_MODEL",GLOBAL_TOKEN="GLOBAL_TOKEN",REFRESH_PAGE="REFRESH_PAGE",MODAL_MODEL="MODAL_MODEL",LOADED_DATA="LOADED_DATA",COMMON_OPERATE="COMMON_OPERATE",All_COMPONENT_RES_DATA="All_COMPONENT_RES_DATA",GLOBAL_VARIABLE="GLOBAL_VARIABLE",ZOOM_FONT_SIZE=18,CONTEXT="ygt",INDICATOR_URL=((di=window==null?void 0:window.config)==null?void 0:di.indicatorURL)||"";(_i=window==null?void 0:window.config)!=null&&_i.uploadPath;const BASE_URL=((Ii=window==null?void 0:window.config)==null?void 0:Ii.routerBaseURL)||"./",ERD_URL=((Di=window==null?void 0:window.config)==null?void 0:Di.erdURL)||"",MODEL_KEY_LIST=["table","bar","combograph","line","pie","radar","scatter","list","circulate"];function e(c,u){var f={};for(var d in c)Object.prototype.hasOwnProperty.call(c,d)&&u.indexOf(d)<0&&(f[d]=c[d]);if(c!=null&&typeof Object.getOwnPropertySymbols=="function"){var h=0;for(d=Object.getOwnPropertySymbols(c);h<d.length;h++)u.indexOf(d[h])<0&&Object.prototype.propertyIsEnumerable.call(c,d[h])&&(f[d[h]]=c[d[h]])}return f}const n=()=>{},o=Object.assign,r=Array.isArray,i=c=>typeof c=="function",a=c=>typeof c=="symbol";let l;const s=()=>l||(l=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function S(c){const u=c&&c.__v_raw;return u?S(u):c}function A(c){return!(!c||c.__v_isRef!==!0)}function _(c){return A(c)?c.value:c}new Set(Object.getOwnPropertyNames(Symbol).filter(c=>c!=="arguments"&&c!=="caller").map(c=>Symbol[c]).filter(a));const O=[];function C(c,...u){if(process.env.NODE_ENV==="production")return;const f=O.length?O[O.length-1].component:null,d=f&&f.appContext.config.warnHandler,h=function(){let v=O[O.length-1];if(!v)return[];const p=[];for(;v;){const m=p[0];m&&m.vnode===v?m.recurseCount++:p.push({vnode:v,recurseCount:0});const g=v.component&&v.component.parent;v=g&&g.vnode}return p}();if(d)$(d,f,11,[c+u.join(""),f&&f.proxy,h.map(({vnode:v})=>`at <${oe(f,v.type)}>`).join(`
59
59
  `),h]);else{const v=[`[Vue warn]: ${c}`,...u];h.length&&v.push(`
60
60
  `,...function(p){const m=[];return p.forEach((g,y)=>{m.push(...y===0?[]:[`
61
- `],...function({vnode:b,recurseCount:Pn}){const x=Pn>0?`... (${Pn} recursive calls)`:"",gn=!!b.component&&b.component.parent==null,J=` at <${oe(b.component,b.type,gn)}`,j=">"+x;return b.props?[J,...L(b.props),j]:[J+j]}(g))}),m}(h)),console.warn(...v)}}function L(c){const u=[],f=Object.keys(c);return f.slice(0,3).forEach(d=>{u.push(...T(d,c[d]))}),f.length>3&&u.push(" ..."),u}function T(c,u,f){return typeof u=="string"?(u=JSON.stringify(u),f?u:[`${c}=${u}`]):typeof u=="number"||typeof u=="boolean"||u==null?f?u:[`${c}=${u}`]:A(u)?(u=T(c,S(u.value),!0),f?u:[`${c}=Ref<`,u,">"]):i(u)?[`${c}=fn${u.name?`<${u.name}>`:""}`]:(u=S(u),f?u:[`${c}=`,u])}const N={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",0:"setup function",1:"render function",2:"watcher getter",3:"watcher callback",4:"watcher cleanup function",5:"native event handler",6:"component event handler",7:"vnode hook",8:"directive hook",9:"transition hook",10:"app errorHandler",11:"app warnHandler",12:"ref function",13:"async component loader",14:"scheduler flush. This is likely a Vue internals bug. Please open an issue at https://new-issue.vuejs.org/?repo=vuejs/core"};function $(c,u,f,d){let h;try{h=d?c(...d):c()}catch(v){(function(p,m,g,y=!0){const b=m?m.vnode:null;if(m){let Pn=m.parent;const x=m.proxy,gn=process.env.NODE_ENV!=="production"?N[g]:g;for(;Pn;){const j=Pn.ec;if(j){for(let Rn=0;Rn<j.length;Rn++)if(j[Rn](p,x,gn)===!1)return}Pn=Pn.parent}const J=m.appContext.config.errorHandler;if(J)return void $(J,null,10,[p,x,gn])}(function(Pn,x,gn,J=!0){if(process.env.NODE_ENV!=="production"){const Rn=N[x];if(gn&&(j=gn,O.push(j)),C("Unhandled error"+(Rn?` during execution of ${Rn}`:"")),gn&&O.pop(),J)throw Pn;console.error(Pn)}else console.error(Pn);var j})(p,g,b,y)})(v,u,f)}return h}let k=!1,D=!1;const M=[];let E=0;const I=[];let V=null,F=0;const z$1=Promise.resolve();function R(c){M.length&&M.includes(c,k&&c.allowRecurse?E+1:E)||(c.id==null?M.push(c):M.splice(function(u){let f=E+1,d=M.length;for(;f<d;){const h=f+d>>>1,v=M[h],p=P(v);p<u||p===u&&v.pre?f=h+1:d=h}return f}(c.id),0,c),U())}function U(){k||D||(D=!0,z$1.then(Y))}const P=c=>c.id==null?1/0:c.id,G=(c,u)=>{const f=P(c)-P(u);if(f===0){if(c.pre&&!u.pre)return-1;if(u.pre&&!c.pre)return 1}return f};function Y(c){D=!1,k=!0,process.env.NODE_ENV!=="production"&&(c=c||new Map),M.sort(G);const u=process.env.NODE_ENV!=="production"?f=>W(c,f):n;try{for(E=0;E<M.length;E++){const f=M[E];if(f&&f.active!==!1){if(process.env.NODE_ENV!=="production"&&u(f))continue;$(f,null,14)}}}finally{E=0,M.length=0,function(f){if(I.length){const d=[...new Set(I)];if(I.length=0,V)return void V.push(...d);for(V=d,process.env.NODE_ENV!=="production"&&(f=f||new Map),V.sort((h,v)=>P(h)-P(v)),F=0;F<V.length;F++)process.env.NODE_ENV!=="production"&&W(f,V[F])||V[F]();V=null,F=0}}(c),k=!1,(M.length||I.length)&&Y(c)}}function W(c,u){if(c.has(u)){const f=c.get(u);if(f>100){const d=u.ownerInstance,h=d&&ne(d.type);return C(`Maximum recursive updates exceeded${h?` in component <${h}>`:""}. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.`),!0}c.set(u,f+1)}else c.set(u,1)}const H=new Set;process.env.NODE_ENV!=="production"&&(s().__VUE_HMR_RUNTIME__={createRecord:Q(function(c,u){return B.has(c)?!1:(B.set(c,{initialDef:K(u),instances:new Set}),!0)}),rerender:Q(function(c,u){const f=B.get(c);f&&(f.initialDef.render=u,[...f.instances].forEach(d=>{u&&(d.render=u,K(d.type).render=u),d.renderCache=[],d.update()}))}),reload:Q(function(c,u){const f=B.get(c);if(!f)return;u=K(u),q(f.initialDef,u);const d=[...f.instances];for(const v of d){const p=K(v.type);H.has(p)||(p!==f.initialDef&&q(p,u),H.add(p)),v.appContext.propsCache.delete(v.type),v.appContext.emitsCache.delete(v.type),v.appContext.optionsCache.delete(v.type),v.ceReload?(H.add(p),v.ceReload(u.styles),H.delete(p)):v.parent?R(v.parent.update):v.appContext.reload?v.appContext.reload():typeof window<"u"?window.location.reload():console.warn("[HMR] Root or manually mounted instance modified. Full reload required.")}h=()=>{for(const v of d)H.delete(K(v.type))},r(h)?I.push(...h):V&&V.includes(h,h.allowRecurse?F+1:F)||I.push(h),U();var h})});const B=new Map;function K(c){return i(u=c)&&"__vccOpts"in u?c.__vccOpts:c;var u}function q(c,u){o(c,u);for(const f in c)f==="__file"||f in u||delete c[f]}function Q(c){return(u,f)=>{try{return c(u,f)}catch(d){console.error(d),console.warn("[HMR] Something went wrong during Vue component hot-reload. Full reload required.")}}}let X;process.env.NODE_ENV;let Z="__VUE_INSTANCE_SETTERS__";(X=s()[Z])||(X=s()[Z]=[]),X.push(c=>c);const ee=/(?:^|[-_])(\w)/g,te=c=>c.replace(ee,u=>u.toUpperCase()).replace(/[-_]/g,"");function ne(c,u=!0){return i(c)?c.displayName||c.name:c.name||u&&c.__name}function oe(c,u,f=!1){let d=ne(u);if(!d&&u.__file){const h=u.__file.match(/([^/\\]+)\.\w+$/);h&&(d=h[1])}if(!d&&c&&c.parent){const h=v=>{for(const p in v)if(v[p]===u)return p};d=h(c.components||c.parent.type.components)||h(c.appContext.components)}return d?te(d):f?"App":"Anonymous"}function ie(c){return c&&c.__esModule&&Object.prototype.hasOwnProperty.call(c,"default")?c.default:c}var ae,le={exports:{}};function se(){return ae||(ae=1,le.exports=function(){var c=1e3,u=6e4,f=36e5,d="millisecond",h="second",v="minute",p="hour",m="day",g="week",y="month",b="quarter",Pn="year",x="date",gn="Invalid Date",J=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,j=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,Rn={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(Qn){var ar=["th","st","nd","rd"],hr=Qn%100;return"["+Qn+(ar[(hr-20)%10]||ar[hr]||ar[0])+"]"}},Bn=function(Qn,ar,hr){var sr=String(Qn);return!sr||sr.length>=ar?Qn:""+Array(ar+1-sr.length).join(hr)+Qn},w={s:Bn,z:function(Qn){var ar=-Qn.utcOffset(),hr=Math.abs(ar),sr=Math.floor(hr/60),Un=hr%60;return(ar<=0?"+":"-")+Bn(sr,2,"0")+":"+Bn(Un,2,"0")},m:function Qn(ar,hr){if(ar.date()<hr.date())return-Qn(hr,ar);var sr=12*(hr.year()-ar.year())+(hr.month()-ar.month()),Un=ar.clone().add(sr,y),Zn=hr-Un<0,Hn=ar.clone().add(sr+(Zn?-1:1),y);return+(-(sr+(hr-Un)/(Zn?Un-Hn:Hn-Un))||0)},a:function(Qn){return Qn<0?Math.ceil(Qn)||0:Math.floor(Qn)},p:function(Qn){return{M:y,y:Pn,w:g,d:m,D:x,h:p,m:v,s:h,ms:d,Q:b}[Qn]||String(Qn||"").toLowerCase().replace(/s$/,"")},u:function(Qn){return Qn===void 0}},vn="en",re={};re[vn]=Rn;var qn="$isDayjsObject",zn=function(Qn){return Qn instanceof tr||!(!Qn||!Qn[qn])},Yn=function Qn(ar,hr,sr){var Un;if(!ar)return vn;if(typeof ar=="string"){var Zn=ar.toLowerCase();re[Zn]&&(Un=Zn),hr&&(re[Zn]=hr,Un=Zn);var Hn=ar.split("-");if(!Un&&Hn.length>1)return Qn(Hn[0])}else{var Gn=ar.name;re[Gn]=ar,Un=Gn}return!sr&&Un&&(vn=Un),Un||!sr&&vn},Wn=function(Qn,ar){if(zn(Qn))return Qn.clone();var hr=typeof ar=="object"?ar:{};return hr.date=Qn,hr.args=arguments,new tr(hr)},Jn=w;Jn.l=Yn,Jn.i=zn,Jn.w=function(Qn,ar){return Wn(Qn,{locale:ar.$L,utc:ar.$u,x:ar.$x,$offset:ar.$offset})};var tr=function(){function Qn(hr){this.$L=Yn(hr.locale,null,!0),this.parse(hr),this.$x=this.$x||hr.x||{},this[qn]=!0}var ar=Qn.prototype;return ar.parse=function(hr){this.$d=function(sr){var Un=sr.date,Zn=sr.utc;if(Un===null)return new Date(NaN);if(Jn.u(Un))return new Date;if(Un instanceof Date)return new Date(Un);if(typeof Un=="string"&&!/Z$/i.test(Un)){var Hn=Un.match(J);if(Hn){var Gn=Hn[2]-1||0,ir=(Hn[7]||"0").substring(0,3);return Zn?new Date(Date.UTC(Hn[1],Gn,Hn[3]||1,Hn[4]||0,Hn[5]||0,Hn[6]||0,ir)):new Date(Hn[1],Gn,Hn[3]||1,Hn[4]||0,Hn[5]||0,Hn[6]||0,ir)}}return new Date(Un)}(hr),this.init()},ar.init=function(){var hr=this.$d;this.$y=hr.getFullYear(),this.$M=hr.getMonth(),this.$D=hr.getDate(),this.$W=hr.getDay(),this.$H=hr.getHours(),this.$m=hr.getMinutes(),this.$s=hr.getSeconds(),this.$ms=hr.getMilliseconds()},ar.$utils=function(){return Jn},ar.isValid=function(){return this.$d.toString()!==gn},ar.isSame=function(hr,sr){var Un=Wn(hr);return this.startOf(sr)<=Un&&Un<=this.endOf(sr)},ar.isAfter=function(hr,sr){return Wn(hr)<this.startOf(sr)},ar.isBefore=function(hr,sr){return this.endOf(sr)<Wn(hr)},ar.$g=function(hr,sr,Un){return Jn.u(hr)?this[sr]:this.set(Un,hr)},ar.unix=function(){return Math.floor(this.valueOf()/1e3)},ar.valueOf=function(){return this.$d.getTime()},ar.startOf=function(hr,sr){var Un=this,Zn=!!Jn.u(sr)||sr,Hn=Jn.p(hr),Gn=function(Xn,cr){var mr=Jn.w(Un.$u?Date.UTC(Un.$y,cr,Xn):new Date(Un.$y,cr,Xn),Un);return Zn?mr:mr.endOf(m)},ir=function(Xn,cr){return Jn.w(Un.toDate()[Xn].apply(Un.toDate("s"),(Zn?[0,0,0,0]:[23,59,59,999]).slice(cr)),Un)},Kn=this.$W,or=this.$M,dr=this.$D,nr="set"+(this.$u?"UTC":"");switch(Hn){case Pn:return Zn?Gn(1,0):Gn(31,11);case y:return Zn?Gn(1,or):Gn(0,or+1);case g:var lr=this.$locale().weekStart||0,fr=(Kn<lr?Kn+7:Kn)-lr;return Gn(Zn?dr-fr:dr+(6-fr),or);case m:case x:return ir(nr+"Hours",0);case p:return ir(nr+"Minutes",1);case v:return ir(nr+"Seconds",2);case h:return ir(nr+"Milliseconds",3);default:return this.clone()}},ar.endOf=function(hr){return this.startOf(hr,!1)},ar.$set=function(hr,sr){var Un,Zn=Jn.p(hr),Hn="set"+(this.$u?"UTC":""),Gn=(Un={},Un[m]=Hn+"Date",Un[x]=Hn+"Date",Un[y]=Hn+"Month",Un[Pn]=Hn+"FullYear",Un[p]=Hn+"Hours",Un[v]=Hn+"Minutes",Un[h]=Hn+"Seconds",Un[d]=Hn+"Milliseconds",Un)[Zn],ir=Zn===m?this.$D+(sr-this.$W):sr;if(Zn===y||Zn===Pn){var Kn=this.clone().set(x,1);Kn.$d[Gn](ir),Kn.init(),this.$d=Kn.set(x,Math.min(this.$D,Kn.daysInMonth())).$d}else Gn&&this.$d[Gn](ir);return this.init(),this},ar.set=function(hr,sr){return this.clone().$set(hr,sr)},ar.get=function(hr){return this[Jn.p(hr)]()},ar.add=function(hr,sr){var Un,Zn=this;hr=Number(hr);var Hn=Jn.p(sr),Gn=function(or){var dr=Wn(Zn);return Jn.w(dr.date(dr.date()+Math.round(or*hr)),Zn)};if(Hn===y)return this.set(y,this.$M+hr);if(Hn===Pn)return this.set(Pn,this.$y+hr);if(Hn===m)return Gn(1);if(Hn===g)return Gn(7);var ir=(Un={},Un[v]=u,Un[p]=f,Un[h]=c,Un)[Hn]||1,Kn=this.$d.getTime()+hr*ir;return Jn.w(Kn,this)},ar.subtract=function(hr,sr){return this.add(-1*hr,sr)},ar.format=function(hr){var sr=this,Un=this.$locale();if(!this.isValid())return Un.invalidDate||gn;var Zn=hr||"YYYY-MM-DDTHH:mm:ssZ",Hn=Jn.z(this),Gn=this.$H,ir=this.$m,Kn=this.$M,or=Un.weekdays,dr=Un.months,nr=Un.meridiem,lr=function(cr,mr,gr,yr){return cr&&(cr[mr]||cr(sr,Zn))||gr[mr].slice(0,yr)},fr=function(cr){return Jn.s(Gn%12||12,cr,"0")},Xn=nr||function(cr,mr,gr){var yr=cr<12?"AM":"PM";return gr?yr.toLowerCase():yr};return Zn.replace(j,function(cr,mr){return mr||function(gr){switch(gr){case"YY":return String(sr.$y).slice(-2);case"YYYY":return Jn.s(sr.$y,4,"0");case"M":return Kn+1;case"MM":return Jn.s(Kn+1,2,"0");case"MMM":return lr(Un.monthsShort,Kn,dr,3);case"MMMM":return lr(dr,Kn);case"D":return sr.$D;case"DD":return Jn.s(sr.$D,2,"0");case"d":return String(sr.$W);case"dd":return lr(Un.weekdaysMin,sr.$W,or,2);case"ddd":return lr(Un.weekdaysShort,sr.$W,or,3);case"dddd":return or[sr.$W];case"H":return String(Gn);case"HH":return Jn.s(Gn,2,"0");case"h":return fr(1);case"hh":return fr(2);case"a":return Xn(Gn,ir,!0);case"A":return Xn(Gn,ir,!1);case"m":return String(ir);case"mm":return Jn.s(ir,2,"0");case"s":return String(sr.$s);case"ss":return Jn.s(sr.$s,2,"0");case"SSS":return Jn.s(sr.$ms,3,"0");case"Z":return Hn}return null}(cr)||Hn.replace(":","")})},ar.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},ar.diff=function(hr,sr,Un){var Zn,Hn=this,Gn=Jn.p(sr),ir=Wn(hr),Kn=(ir.utcOffset()-this.utcOffset())*u,or=this-ir,dr=function(){return Jn.m(Hn,ir)};switch(Gn){case Pn:Zn=dr()/12;break;case y:Zn=dr();break;case b:Zn=dr()/3;break;case g:Zn=(or-Kn)/6048e5;break;case m:Zn=(or-Kn)/864e5;break;case p:Zn=or/f;break;case v:Zn=or/u;break;case h:Zn=or/c;break;default:Zn=or}return Un?Zn:Jn.a(Zn)},ar.daysInMonth=function(){return this.endOf(y).$D},ar.$locale=function(){return re[this.$L]},ar.locale=function(hr,sr){if(!hr)return this.$L;var Un=this.clone(),Zn=Yn(hr,sr,!0);return Zn&&(Un.$L=Zn),Un},ar.clone=function(){return Jn.w(this.$d,this)},ar.toDate=function(){return new Date(this.valueOf())},ar.toJSON=function(){return this.isValid()?this.toISOString():null},ar.toISOString=function(){return this.$d.toISOString()},ar.toString=function(){return this.$d.toUTCString()},Qn}(),er=tr.prototype;return Wn.prototype=er,[["$ms",d],["$s",h],["$m",v],["$H",p],["$W",m],["$M",y],["$y",Pn],["$D",x]].forEach(function(Qn){er[Qn[1]]=function(ar){return this.$g(ar,Qn[0],Qn[1])}}),Wn.extend=function(Qn,ar){return Qn.$i||(Qn(ar,tr,Wn),Qn.$i=!0),Wn},Wn.locale=Yn,Wn.isDayjs=zn,Wn.unix=function(Qn){return Wn(1e3*Qn)},Wn.en=re[vn],Wn.Ls=re,Wn.p={},Wn}()),le.exports}var ce=ie(se()),ue=typeof global=="object"&&global&&global.Object===Object&&global,de=typeof self=="object"&&self&&self.Object===Object&&self,fe=ue||de||Function("return this")(),pe=fe.Symbol,he=Object.prototype,ye=he.hasOwnProperty,me=he.toString,be=pe?pe.toStringTag:void 0,ge=Object.prototype.toString,ve=pe?pe.toStringTag:void 0;function xe(c){return c==null?c===void 0?"[object Undefined]":"[object Null]":ve&&ve in Object(c)?function(u){var f=ye.call(u,be),d=u[be];try{u[be]=void 0;var h=!0}catch{}var v=me.call(u);return h&&(f?u[be]=d:delete u[be]),v}(c):function(u){return ge.call(u)}(c)}function we(c){return c!=null&&typeof c=="object"}var Se=Array.isArray;function Ae(c){var u=typeof c;return c!=null&&(u=="object"||u=="function")}function _e(c){if(!Ae(c))return!1;var u=xe(c);return u=="[object Function]"||u=="[object GeneratorFunction]"||u=="[object AsyncFunction]"||u=="[object Proxy]"}var je,Oe=fe["__core-js_shared__"],Ce=(je=/[^.]+$/.exec(Oe&&Oe.keys&&Oe.keys.IE_PROTO||""))?"Symbol(src)_1."+je:"",Le=Function.prototype.toString;function Te(c){if(c!=null){try{return Le.call(c)}catch{}try{return c+""}catch{}}return""}var Ne=/^\[object .+?Constructor\]$/,$e=Function.prototype,ke=Object.prototype,De=$e.toString,Me=ke.hasOwnProperty,Ee=RegExp("^"+De.call(Me).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Ie(c){return!(!Ae(c)||(u=c,Ce&&Ce in u))&&(_e(c)?Ee:Ne).test(Te(c));var u}function Ve(c,u){var f=function(d,h){return d==null?void 0:d[h]}(c,u);return Ie(f)?f:void 0}var Fe=Ve(fe,"WeakMap"),ze=Object.create,Re=function(){function c(){}return function(u){if(!Ae(u))return{};if(ze)return ze(u);c.prototype=u;var f=new c;return c.prototype=void 0,f}}(),Ue=function(){try{var c=Ve(Object,"defineProperty");return c({},"",{}),c}catch{}}(),Pe=/^(?:0|[1-9]\d*)$/;function Ge(c,u){var f=typeof c;return!!(u=u??9007199254740991)&&(f=="number"||f!="symbol"&&Pe.test(c))&&c>-1&&c%1==0&&c<u}function Ye(c,u){return c===u||c!=c&&u!=u}var We=Object.prototype.hasOwnProperty;function He(c,u,f){var d=c[u];We.call(c,u)&&Ye(d,f)&&(f!==void 0||u in c)||function(h,v,p){v=="__proto__"&&Ue?Ue(h,v,{configurable:!0,enumerable:!0,value:p,writable:!0}):h[v]=p}(c,u,f)}function Be(c){return typeof c=="number"&&c>-1&&c%1==0&&c<=9007199254740991}var Ke=Object.prototype;function qe(c){var u=c&&c.constructor;return c===(typeof u=="function"&&u.prototype||Ke)}function Qe(c){return we(c)&&xe(c)=="[object Arguments]"}var Je=Object.prototype,Xe=Je.hasOwnProperty,Ze=Je.propertyIsEnumerable,et=Qe(function(){return arguments}())?Qe:function(c){return we(c)&&Xe.call(c,"callee")&&!Ze.call(c,"callee")},tt=typeof exports=="object"&&exports&&!exports.nodeType&&exports,nt=tt&&typeof module=="object"&&module&&!module.nodeType&&module,ot=nt&&nt.exports===tt?fe.Buffer:void 0,rt=(ot?ot.isBuffer:void 0)||function(){return!1},it={};function at(c){return function(u){return c(u)}}it["[object Float32Array]"]=it["[object Float64Array]"]=it["[object Int8Array]"]=it["[object Int16Array]"]=it["[object Int32Array]"]=it["[object Uint8Array]"]=it["[object Uint8ClampedArray]"]=it["[object Uint16Array]"]=it["[object Uint32Array]"]=!0,it["[object Arguments]"]=it["[object Array]"]=it["[object ArrayBuffer]"]=it["[object Boolean]"]=it["[object DataView]"]=it["[object Date]"]=it["[object Error]"]=it["[object Function]"]=it["[object Map]"]=it["[object Number]"]=it["[object Object]"]=it["[object RegExp]"]=it["[object Set]"]=it["[object String]"]=it["[object WeakMap]"]=!1;var lt=typeof exports=="object"&&exports&&!exports.nodeType&&exports,st=lt&&typeof module=="object"&&module&&!module.nodeType&&module,ct=st&&st.exports===lt&&ue.process,ut=function(){try{var c=st&&st.require&&st.require("util").types;return c||ct&&ct.binding&&ct.binding("util")}catch{}}(),dt=ut&&ut.isTypedArray,ft=dt?at(dt):function(c){return we(c)&&Be(c.length)&&!!it[xe(c)]},pt=Object.prototype.hasOwnProperty;function ht(c,u){var f=Se(c),d=!f&&et(c),h=!f&&!d&&rt(c),v=!f&&!d&&!h&&ft(c),p=f||d||h||v,m=p?function(b,Pn){for(var x=-1,gn=Array(b);++x<b;)gn[x]=Pn(x);return gn}(c.length,String):[],g=m.length;for(var y in c)!pt.call(c,y)||p&&(y=="length"||h&&(y=="offset"||y=="parent")||v&&(y=="buffer"||y=="byteLength"||y=="byteOffset")||Ge(y,g))||m.push(y);return m}function yt(c,u){return function(f){return c(u(f))}}var mt=yt(Object.keys,Object),bt=Object.prototype.hasOwnProperty;function gt(c){return(u=c)!=null&&Be(u.length)&&!_e(u)?ht(c):function(f){if(!qe(f))return mt(f);var d=[];for(var h in Object(f))bt.call(f,h)&&h!="constructor"&&d.push(h);return d}(c);var u}var vt=Ve(Object,"create"),xt=Object.prototype.hasOwnProperty,wt=Object.prototype.hasOwnProperty;function St(c){var u=-1,f=c==null?0:c.length;for(this.clear();++u<f;){var d=c[u];this.set(d[0],d[1])}}function At(c,u){for(var f=c.length;f--;)if(Ye(c[f][0],u))return f;return-1}St.prototype.clear=function(){this.__data__=vt?vt(null):{},this.size=0},St.prototype.delete=function(c){var u=this.has(c)&&delete this.__data__[c];return this.size-=u?1:0,u},St.prototype.get=function(c){var u=this.__data__;if(vt){var f=u[c];return f==="__lodash_hash_undefined__"?void 0:f}return xt.call(u,c)?u[c]:void 0},St.prototype.has=function(c){var u=this.__data__;return vt?u[c]!==void 0:wt.call(u,c)},St.prototype.set=function(c,u){var f=this.__data__;return this.size+=this.has(c)?0:1,f[c]=vt&&u===void 0?"__lodash_hash_undefined__":u,this};var _t=Array.prototype.splice;function jt(c){var u=-1,f=c==null?0:c.length;for(this.clear();++u<f;){var d=c[u];this.set(d[0],d[1])}}jt.prototype.clear=function(){this.__data__=[],this.size=0},jt.prototype.delete=function(c){var u=this.__data__,f=At(u,c);return!(f<0)&&(f==u.length-1?u.pop():_t.call(u,f,1),--this.size,!0)},jt.prototype.get=function(c){var u=this.__data__,f=At(u,c);return f<0?void 0:u[f][1]},jt.prototype.has=function(c){return At(this.__data__,c)>-1},jt.prototype.set=function(c,u){var f=this.__data__,d=At(f,c);return d<0?(++this.size,f.push([c,u])):f[d][1]=u,this};var Ot=Ve(fe,"Map");function Ct(c,u){var f,d,h=c.__data__;return((d=typeof(f=u))=="string"||d=="number"||d=="symbol"||d=="boolean"?f!=="__proto__":f===null)?h[typeof u=="string"?"string":"hash"]:h.map}function Lt(c){var u=-1,f=c==null?0:c.length;for(this.clear();++u<f;){var d=c[u];this.set(d[0],d[1])}}Lt.prototype.clear=function(){this.size=0,this.__data__={hash:new St,map:new(Ot||jt),string:new St}},Lt.prototype.delete=function(c){var u=Ct(this,c).delete(c);return this.size-=u?1:0,u},Lt.prototype.get=function(c){return Ct(this,c).get(c)},Lt.prototype.has=function(c){return Ct(this,c).has(c)},Lt.prototype.set=function(c,u){var f=Ct(this,c),d=f.size;return f.set(c,u),this.size+=f.size==d?0:1,this};var Tt=yt(Object.getPrototypeOf,Object);function Nt(c){var u=this.__data__=new jt(c);this.size=u.size}Nt.prototype.clear=function(){this.__data__=new jt,this.size=0},Nt.prototype.delete=function(c){var u=this.__data__,f=u.delete(c);return this.size=u.size,f},Nt.prototype.get=function(c){return this.__data__.get(c)},Nt.prototype.has=function(c){return this.__data__.has(c)},Nt.prototype.set=function(c,u){var f=this.__data__;if(f instanceof jt){var d=f.__data__;if(!Ot||d.length<199)return d.push([c,u]),this.size=++f.size,this;f=this.__data__=new Lt(d)}return f.set(c,u),this.size=f.size,this};var $t=Object.prototype.propertyIsEnumerable,kt=Object.getOwnPropertySymbols,Dt=kt?function(c){return c==null?[]:(c=Object(c),function(u,f){for(var d=-1,h=u==null?0:u.length,v=0,p=[];++d<h;){var m=u[d];f(m,d,u)&&(p[v++]=m)}return p}(kt(c),function(u){return $t.call(c,u)}))}:function(){return[]};function Mt(c){return function(u,f,d){var h=f(u);return Se(u)?h:function(v,p){for(var m=-1,g=p.length,y=v.length;++m<g;)v[y+m]=p[m];return v}(h,d(u))}(c,gt,Dt)}var Et=Ve(fe,"DataView"),It=Ve(fe,"Promise"),Vt=Ve(fe,"Set"),Ft="[object Map]",zt="[object Promise]",Rt="[object Set]",Ut="[object WeakMap]",Pt="[object DataView]",Gt=Te(Et),Yt=Te(Ot),Wt=Te(It),Ht=Te(Vt),Bt=Te(Fe),Kt=xe;(Et&&Kt(new Et(new ArrayBuffer(1)))!=Pt||Ot&&Kt(new Ot)!=Ft||It&&Kt(It.resolve())!=zt||Vt&&Kt(new Vt)!=Rt||Fe&&Kt(new Fe)!=Ut)&&(Kt=function(c){var u=xe(c),f=u=="[object Object]"?c.constructor:void 0,d=f?Te(f):"";if(d)switch(d){case Gt:return Pt;case Yt:return Ft;case Wt:return zt;case Ht:return Rt;case Bt:return Ut}return u});var qt=Object.prototype.hasOwnProperty,Qt=fe.Uint8Array;function Jt(c){var u=new c.constructor(c.byteLength);return new Qt(u).set(new Qt(c)),u}var Xt=/\w*$/,Zt=pe?pe.prototype:void 0,en=Zt?Zt.valueOf:void 0;function tn(c,u,f){var d,h,v,p,m,g=c.constructor;switch(u){case"[object ArrayBuffer]":return Jt(c);case"[object Boolean]":case"[object Date]":return new g(+c);case"[object DataView]":return m=Jt((p=c).buffer),new p.constructor(m,p.byteOffset,p.byteLength);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return function(y){var b=Jt(y.buffer);return new y.constructor(b,y.byteOffset,y.length)}(c);case"[object Map]":case"[object Set]":return new g;case"[object Number]":case"[object String]":return new g(c);case"[object RegExp]":return(v=new(h=c).constructor(h.source,Xt.exec(h))).lastIndex=h.lastIndex,v;case"[object Symbol]":return d=c,en?Object(en.call(d)):{}}}var nn=ut&&ut.isMap,on=nn?at(nn):function(c){return we(c)&&Kt(c)=="[object Map]"},rn=ut&&ut.isSet,an=rn?at(rn):function(c){return we(c)&&Kt(c)=="[object Set]"},ln="[object Arguments]",sn="[object Function]",cn="[object Object]",un={};function dn(c,u,f,d,h,v){var p;if(p!==void 0)return p;if(!Ae(c))return c;var m=Se(c);if(m)p=function(x){var gn=x.length,J=new x.constructor(gn);return gn&&typeof x[0]=="string"&&qt.call(x,"index")&&(J.index=x.index,J.input=x.input),J}(c);else{var g=Kt(c),y=g==sn||g=="[object GeneratorFunction]";if(rt(c))return c.slice();if(g==cn||g==ln||y&&!h)p=y?{}:function(x){return typeof x.constructor!="function"||qe(x)?{}:Re(Tt(x))}(c);else{if(!un[g])return h?c:{};p=tn(c,g)}}v||(v=new Nt);var b=v.get(c);if(b)return b;v.set(c,p),an(c)?c.forEach(function(x){p.add(dn(x,u,f,x,c,v))}):on(c)&&c.forEach(function(x,gn){p.set(gn,dn(x,u,f,gn,c,v))});var Pn=m?void 0:Mt(c);return function(x,gn){for(var J=-1,j=x==null?0:x.length;++J<j&&gn(x[J],J,x)!==!1;);}(Pn||c,function(x,gn){Pn&&(x=c[gn=x]),He(p,gn,dn(x,u,f,gn,c,v))}),p}un[ln]=un["[object Array]"]=un["[object ArrayBuffer]"]=un["[object DataView]"]=un["[object Boolean]"]=un["[object Date]"]=un["[object Float32Array]"]=un["[object Float64Array]"]=un["[object Int8Array]"]=un["[object Int16Array]"]=un["[object Int32Array]"]=un["[object Map]"]=un["[object Number]"]=un[cn]=un["[object RegExp]"]=un["[object Set]"]=un["[object String]"]=un["[object Symbol]"]=un["[object Uint8Array]"]=un["[object Uint8ClampedArray]"]=un["[object Uint16Array]"]=un["[object Uint32Array]"]=!0,un["[object Error]"]=un[sn]=un["[object WeakMap]"]=!1;function fn(c){return dn(c,5)}const pn=(c,u)=>{const f=Object.assign({dayjs:ce},u);let d="";const h=[];for(const m in f)d+=`${m},`,h.push(f[m]);d=d.replace(/,$/,"");const v=`function (${d}){return ${c}}`;let p;try{p=Function(`"use strict";return (${v})`)()(...h)}catch{return c}return p},hn=(c="",{textData:u,codeData:f}={},{useNewline:d=!1,useSpace:h=!1}={})=>{const v=window.config||{},p=Object.assign(Object.assign({},v),u),m=String(c||"").match(/\{(.+?)\}/g);if(m==null||m.length===0)return c;for(let g=0;g<m.length;g++){const y=m[g];let b=y.slice(1,-1).trim();const Pn=/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,x=b.match(Pn);for(let gn=0;gn<x.length;gn++){const J=x[gn],j=p[J];j!=null&&typeof j!="function"&&(b=b.replace(J,j))}(/\(.*\)/g.test(b)||/[+/\\*]/g.test(b))&&(b=pn(b,f)),c=c.replace(y,b)}return d&&(c=c==null?void 0:c.replace(/\n|\\n/g,"<br/>")),h&&(c=c==null?void 0:c.replace(/\s{2,}?/g,"&nbsp;&nbsp;")),c=c.replace(/Qfw\((.*?)\)/,(g,y)=>u!=null&&u.Qfw?u==null?void 0:u.Qfw(y):y)},yn=(c,u)=>{if(typeof c=="string"&&typeof u=="string")return c.toLocaleLowerCase().includes(u.toLocaleLowerCase());if(typeof c=="string"&&Array.isArray(u)){const f=u.length;for(let d=0;d<f;d++){const h=u[d];if(typeof h=="string"&&c.toLocaleLowerCase().includes(h.toLocaleLowerCase()))return!0}}return!1},mn=(c,u)=>Object.prototype.hasOwnProperty.call(c,u),bn=c=>{const u=[];for(const f of c)f.conditions?u.push(...bn(f.conditions)):(f==null?void 0:f.dataType)==="component"&&u.push(f);return u},xn=["table","bar","combograph","line","pie","radar","scatter","list","circulate"];let wn=new Map,Sn=[];const An=["keyValue","conditionKey","conditionLabel","conditionName","conditionValueType","customValue","id","keyName"],_n=c=>wn.get(c),jn=(c,u)=>{if(u)mn(c,"indexCode")&&(c.hrpIndexCode=c.indexCode,delete c.indexCode),mn(c,"indexCodeNum")&&(c.hrpIndexCodeNum=c.indexCodeNum,delete c.indexCodeNum),mn(c,"dataType")&&delete c.dataType,c.fieldValue||delete c.fieldValue;else{const{calcWays:f=[],dateCalcTypes:d=[],activeKey:h,componentId:v=""}=c;if(h===5&&(f!=null&&f.length)&&(d!=null&&d.length)&&v){const p=f[0].split("-");(p==null?void 0:p.length)>1&&p[0]==="rangeValue"&&(c.calcWays=((m,g={})=>{const{around:y,unit:b,id:Pn}=m;let x="";const{pageMode:gn="",componentList:J=[]}=(g==null?void 0:g.graphicConfig)||{};let j=null,Rn=null;if(gn==="design"){const Bn=J==null?void 0:J.find(Wn=>Wn.id===Pn);if(!Bn)return[];const{interval:w,intervalUnit:vn,startTime:re,endTime:qn,operate:zn,useCurrentTime:Yn}=Bn||{};if(Yn&&(j=ce().subtract(w,vn),Rn=ce()),re&&(j=ce(re)),qn&&(Rn=ce(qn)),zn){const{type:Wn,value:Jn,mode:tr}=zn;switch(Wn){case"add":j=j&&j.add(Jn,tr),Rn=Rn&&Rn.add(Jn,tr);break;case"minus":j=j&&j.subtract(Jn,tr),Rn=Rn&&Rn.subtract(Jn,tr)}}}else{const Bn=_n(Pn)||{};_(Bn.startTime)&&(j=ce(_(Bn.startTime))),_(Bn.endTime)&&(Rn=ce(_(Bn.endTime)))}return j&&Rn&&(x=`${y==="before"?"-":""}${Rn.diff(j,b.toLowerCase())+1}`),x?[x]:[]})({around:p[1],unit:d[0],id:v})),delete c.radioValue}if(mn(c,"dataType")){if(c.fieldType==="DATE"&&(c.label=c.fieldName),c.dataType==="component")if(c.fieldValue==="PARENT"){let p=c.modelKey;p&&c.prop&&(p+=`-${c.prop}`),c.fieldValue="${"+p+"}"}else c.fieldValue="${"+c.fieldValue+"}";delete c.dataType}mn(c,"activeKey")&&delete c.activeKey,mn(c,"radioValue")&&delete c.radioValue,mn(c,"indexCode")&&(c.hrpIndexCode=c.indexCode,delete c.indexCode),mn(c,"indexCodeNum")&&(c.hrpIndexCodeNum=c.indexCodeNum,delete c.indexCodeNum),c.dataType!=="component"&&c.useCurrentTime&&(c.fieldValue=ce().format(c.dateFormat)),mn(c,"modelKey")&&delete c.modelKey,mn(c,"prop")&&delete c.prop,delete c.useCurrentTime}},On=(c,u)=>{const f=[];return c!=null&&c.length&&fn(c).forEach(d=>{if(d.join&&d.conditions){const h=!d.conditions.some(v=>v.join&&v.conditions);d.conditions.forEach((v,p)=>{jn(v,u);const m={};if(p<d.conditions.length-1&&(m.join=d.join),h)f.push(Object.assign(Object.assign({},m),v));else if(v.join&&v.conditions){const g=u?"sqlConditions":"conditions";f.push(Object.assign({[g]:On([v],u)},m))}else f.push(Object.assign(Object.assign({},m),v))})}else jn(d,u),f.push(d)}),f},Cn=(c={},u)=>{if(c!=null&&c.sortCpnts&&u){const qn=Mn(c);qn&&(u.sort=qn)}const{label:f,name:d,location:h,show:v,indexCode:p,indexCodeNum:m,calcType:g="COLUMN",builtInFormula:y,builtInValueSource:b,builtInCalcWay:Pn,formula:x,conditions:gn,aggregate:J,distinct:j,dimByCount:Rn,dataTo:Bn,sort:w}=c;let vn;if(gn&&(vn=On(gn)),g==="COMPONENT"){const qn={};return kn(qn,b),{label:f.trim(),columnName:d,show:v,calcType:g,componentAlias:Pn,componentValue:qn.fieldValue||null}}const re={label:f.trim(),columnName:d,location:h,show:v,calcType:Bn==="1"?"VIEW":g,hrpIndexCode:p,hrpIndexCodeNum:m,aggregate:J,builtInFormula:y,builtInValueSource:b,formula:x,conditions:vn};if(w&&(re.sort={columnName:d,label:re.label,order:w,type:"NORMAL"}),y!=="DATE_OFFSET")return d==="the_count"&&(re.calcType="AGGREGATE",re.distinct=!!j,re.typeGuid=Rn),Object.assign(Object.assign({},re),{builtInCalcWay:Pn});{const qn=Pn.split("-");if((qn==null?void 0:qn.length)===3){let zn=qn[0];return qn[2]==="before"&&qn[0]!=="0"&&(zn=`-${qn[0]}`),Object.assign(Object.assign({},re),{calcWays:[zn],dateCalcTypes:[qn[1]]})}}},Ln=(c,u)=>{const f=Sn.find(h=>h.id===c),{keyName:d}=f;if(d){const h=/-(startTime|endTime)/g,v=u.match(h);return v!=null&&v.length?`${d}${v[0]}`:d}return u||""},Tn=c=>{if(!c)return[];const u=fn((c==null?void 0:c.controlList)||[]).filter(j=>j.conditionKey!=="parentCode"),{classificationList:f=[],rowHeaderList:d=[],dimensionList:h=[],seriesList:v=[],leftAxisList:p=[],rightAxisList:m=[],queryColumnList:g=[],indexLibColumns:y=[],indicators:b=[]}=c;$n(u);const Pn=[...f,...d,...h,...v,...p,...m,...g,...y,...b],x=[];for(const j of Pn){const Rn=bn((j==null?void 0:j.conditions)||[]);if(Rn!=null&&Rn.length){const Bn=Rn.filter(w=>(w==null?void 0:w.dataType)==="component").map(w=>{const vn={};return w!=null&&w.dateFormat&&(vn.format=w.dateFormat),w.fieldValue==="PARENT"&&(vn.id="PARENT",vn.keyName=w.modelKey,vn.modelKey=w.modelKey,vn.prop=w.prop),Object.assign({conditionKey:w.fieldName,conditionLabel:w.fieldName,conditionName:w.fieldName,conditionValueType:w.fieldType,id:w.componentId,keyName:w.fieldValue,rule:w.rule,notGlobal:!0,indexCode:w.indexCode,typeGuid:w.typeGuid,indexCodeNum:w.indexCodeNum},vn)});if(Bn!=null&&Bn.length)for(const w of Bn)x.find(vn=>vn.id===w.id)||x.push(w)}}const gn=x.length,J=u;for(let j=0;j<gn;j++){const Rn=x[j];if((Rn==null?void 0:Rn.conditionKey)==="parentCode")continue;const{id:Bn,keyName:w,prop:vn,format:re,modelKey:qn,dataType:zn="component",customValue:Yn}=Rn,Wn=Ln(Bn,w),Jn=Nn(Rn);kn(Jn,Bn,{prop:vn,dateFormat:re,modelKey:qn,keyName:Wn}),zn===""&&(Jn.fieldValue=Yn||""),J.push(Jn)}for(let j=J.length-1;j>=0;j--){const Rn=J[j];Rn.globalCondition||bn(J).find(Bn=>Bn.alias===Rn.alias&&Bn.globalCondition)&&J.splice(j,1)}return J};function Nn(c){const{id:u,keyName:f,conditionLabel:d,conditionKey:h,conditionValueType:v,prop:p,rule:m="NONE",notGlobal:g=!1,indexCode:y,typeGuid:b,indexCodeNum:Pn,dataType:x="component"}=c,gn=Ln(u,f);let J=gn||u;J&&p&&(J+=`-${p}`);let j=m;return j==="NONE"&&(j=["startTime","endTime"].includes(p)?p==="startTime"?"GREATER_EQUAL":"LESS_EQUAL":gn!=null&&gn.includes("startTime")?p==="GREATER_EQUAL":gn!=null&&gn.includes("endTime")?p==="LESS_EQUAL":"EQUAL"),u==="PARENT"&&(J=c.modelKey,J&&p&&(J+=`-${p}`),j=m),{rule:j,label:d,fieldName:h,fieldValue:"",valueType:v,alias:J,globalCondition:!g,indexCode:y,typeGuid:b,indexCodeNum:Pn,dataType:x}}function $n(c){if(c!=null&&c.length)for(const u of c)if(u!=null&&u.conditions)$n(u.conditions);else{const{id:f,keyName:d,prop:h,modelKey:v,format:p,dataType:m="component",customValue:g}=u,y=Ln(f,d),b=Nn(u);kn(b,f,{prop:h,dateFormat:p,modelKey:v,keyName:y}),m===""&&(b.fieldValue=g||"");for(const Pn in b)u[Pn]=b[Pn];for(const Pn of An)delete u[Pn]}}function kn(c,u,f){const{prop:d="",dateFormat:h="",modelKey:v="",keyName:p="",operateValue:m,operateMode:g,operateType:y}=f||{},b=v||p;if(u==="PARENT"&&b&&d){const w=window.config.record;let vn=d,re=h;const qn=d.match(/\{(.+?)\}/g);if(qn!=null&&qn.length){const zn=qn[0].slice(1,-1).trim();vn=d.replace(qn[0],""),re=zn,c.dateFormat=re}if(w&&w[b]){const zn=_(w[b][vn]);ce.isDayjs(zn)?c.fieldValue=zn.format(re||"YYYY-MM-DD"):c.fieldValue=zn}return}const Pn=_n(u)||{},{value:x,format:gn="YYYY-MM-DD",type:J="",useCurrentTime:j,RECORD:Rn}=Pn||{},Bn=h||gn;if(yn(J,"date")){let w;if(w=j?x?_(x):ce():_(x),typeof w=="string"&&(w=ce(w)),m&&g&&y)switch(y){case"add":w=w.add(m,g);break;case"minus":w=w.subtract(m,g)}c.fieldValue=w==null?void 0:w.format(Bn),c.dateFormat=Bn}else if(yn(J,"rangepicker")){let w=d;if(!d){const re=p&&p.split("-");re!=null&&re.length&&(w=re[re.length-1])}if(!w)return;let vn=null;if(_(Pn[w])&&(vn=ce(_(Pn[w]))),m&&g&&y){if(m==="rangeValue"){if(Pn.startTime&&Pn.endTime){const re=_(Pn.endTime).diff(_(Pn.startTime),g)+1;switch(y){case"add":vn=vn&&vn.add(re,g);break;case"minus":vn=vn&&vn.subtract(re,g)}}}else if(!isNaN(+m))switch(y){case"add":vn=vn&&vn.add(m,g);break;case"minus":vn=vn&&vn.subtract(m,g)}}if(vn&&(c.fieldValue=vn==null?void 0:vn.format(Bn)),w==="rangeValue"&&Pn.startTime&&Pn.endTime){const re=function(qn){const zn=qn.split("-");let Yn="";if(zn!=null&&zn.length)switch(zn[zn.length-1]){case"YYYY":Yn="year";break;case"MM":Yn="month";break;case"DD":Yn="day"}return Yn}(Bn);re&&(c.fieldValue=_(Pn.endTime).diff(_(Pn.startTime),re)+1)}c.dateFormat=Bn}else yn(J,xn)?c.fieldValue=v&&Rn?Rn[v]:!v&&Rn?Rn.value:_(x):yn(J,"select")&&Array.isArray(_(x))?c.fieldValue=_(x).join(","):c.fieldValue=_(x)}const Dn=c=>{var u;if(c){const f=Array.isArray(c)?fn(c):[fn(c)];let d="",h=[];const v=[],p=[],m=[];for(const g of f){if(g.defaultCode&&(g.label=g.columnName,delete g.defaultCode),g.type==="CUSTOM"&&(h=g.customOrderColumns),d=g.type,v.push(g.label),(u=g.columnName)===null||u===void 0?void 0:u.includes("_ecanrepeat_")){const y=g.columnName.split("_ecanrepeat_");p.push(y[0])}else p.push(g.columnName);m.push(g.order)}return d!=="CUSTOM"&&(v==null?void 0:v.length)>1&&(d="COMBINATION"),d==="CUSTOM"?{label:v.join(","),columnName:p.join(","),type:d,customOrderColumns:h}:{label:v.join(","),columnName:p.join(","),order:m.join(","),type:d}}return c},Mn=c=>{const{sortCpnts:u=[]}=c;let f,d="";for(const h of u){const v=_n(h)||{},{type:p,RECORD:m}=v;if(yn(p,"image")&&yn(m==null?void 0:m.value,["asc","desc"])){d=m.value.toUpperCase();break}}return d&&(f={label:c.label,columnName:c.name,order:d,type:"NORMAL"}),f},En=(c,u={})=>{var f,d,h,v,p,m,g,y;const{graphicConfig:b,type:Pn,globalModel:x,isGroupTable:gn=!1,allComponentList:J}=c;x&&(wn=x),J!=null&&J.length&&(Sn=J);const j=yn(Pn,"pivottable");let Rn,{source:Bn,dataViewId:w,plugin:vn="1",layer:re,chartType:qn,classificationList:zn=[],rowHeaderList:Yn=[],dimensionList:Wn=[],seriesList:Jn=[],leftAxisList:tr=[],rightAxisList:er=[],queryColumnList:Qn=[],indexLibColumns:ar=[],indicators:hr=[],controlList:sr=[],formFields:Un={},variableList:Zn=[],variableConditions:Hn=[],dataSourceId:Gn="",idxLibMode:ir,preview:Kn=!1,edvDataSetId:or,compositeIndicator:dr}=b||{},nr=[];if((b==null?void 0:b.pageMode)==="design"?(nr=((f=b.sqlConditions)!==null&&f!==void 0?f:[]).map(vr=>{const Sr={};if(mn(vr,"globalCondition")||vr.join||(Sr.globalCondition=!0),!vr.join){const Cr=vr.rule||"EQUAL";Sr.rule=Cr==="NONE"?"EQUAL":Cr}return Object.assign(Object.assign({},vr),Sr)}),Hn!=null&&Hn.length&&(nr=nr.concat(Hn))):(nr=Tn(b),Zn!=null&&Zn.length&&(nr=nr.concat(function(vr){const Sr=[];if(vr!=null&&vr.length){for(const Cr of vr)if(Cr.variableName){const Tr=Ln(Cr.id,Cr.keyName),Er={variateName:Cr.variableName,globalCondition:!1,valueType:Cr.variableType,alias:Tr||""};kn(Er,Cr.id,{dateFormat:Cr.format,prop:Cr.dateTypeValue,keyName:Tr,operateType:Cr.operateType,operateMode:Cr.operateMode,operateValue:Cr.operateValue}),Cr.dataType===""&&(Er.fieldValue=Cr.variableValue),Cr.format&&(Er.dateFormat=Cr.format),Cr.label&&(Er.label=Cr.label),Sr.push(Er)}}return Sr}(Zn)))),nr==null?void 0:nr.length){const vr=nr.filter(Cr=>Cr.globalCondition),Sr=nr.filter(Cr=>!Cr.globalCondition);(vr==null?void 0:vr.length)>1&&(nr=[{join:"&&",conditions:vr},...Sr])}nr!=null&&nr.length&&(nr=On(nr,"1")),re==null&&(re=yn(Pn,["table","card"])||yn(Pn,["list","circulate"])&&(zn==null?void 0:zn.length)>1?"1":yn(Pn,["select","checkbox","radio"])?"3":yn(Pn,["indexPanel"])?"4":"2"),yn(Pn,["indexPanel"])&&(vn="3");const lr=[];let fr,Xn="";if(Array.isArray(zn)&&zn.length>0&&(!["ecanList","ecanCirculate"].includes(Pn)||(zn==null?void 0:zn.length)===1)){const vr=zn.length;for(let Sr=0;Sr<vr;Sr++){const Cr=zn[Sr]||{},{label:Tr="",name:Er="",show:Mr=!1,sort:Br,customGroup:Kr,conditions:Lr,dateFormat:Nr,typeGuid:qr="",truncations:Wr=[]}=Cr;if(Mr||vr===1){Xn=qr,Rn={label:Tr.trim(),columnName:Er,show:Mr,sort:Mn(Cr)||Dn(Br)||Br,customGroup:Kr,conditions:On(Lr),typeGuid:qr},Nr&&(Rn.dateFormat=Nr),Er!=="the_date"||Rn.dateFormat||(Rn.dateFormat="YYYY-MM-DD");const Ur={};if(Array.isArray(Wr)&&Wr.length>0){const Xr=Wr.length;for(let ri=0;ri<Xr;ri++){const ei=Wr[ri]||{},{rule:ui="",num:ii=0,name:pi=""}=ei;ui&&ii&&(Ur.num=ii,Ur.rule=ui,pi&&(Ur.otherGroupName=pi))}}if(!((d=Object.keys(Ur))===null||d===void 0)&&d.length&&(Rn.truncation=Ur),!yn(Pn,["scatter","valueline"]))break;lr.push(Rn)}}}if(Array.isArray(Jn)&&Jn.length>0){const vr=Jn.length;for(let Sr=0;Sr<vr;Sr++){const Cr=Jn[Sr]||{},{label:Tr="",name:Er="",show:Mr=!1,sort:Br,customGroup:Kr,conditions:Lr,typeGuid:Nr,dateFormat:qr=""}=Cr;if(Mr||vr===1){fr={label:Tr.trim(),columnName:Er,show:Mr,sort:Dn(Br),customGroup:Kr,conditions:On(Lr),typeGuid:Nr},qr?fr.dateFormat=qr:Er==="the_date"&&(fr.dateFormat="YYYY-MM-DD");break}}}const cr=[];tr==null||tr.forEach(vr=>{vr.location="LEFT",cr.push(Cn(vr,Rn))}),er==null||er.forEach(vr=>{vr.location="RIGHT",cr.push(Cn(vr,Rn))});let mr=hr;u!=null&&u.pivotTableCal&&(mr=((h=u.pivotTableCal)===null||h===void 0?void 0:h.indicators)||[]),mr==null||mr.forEach(vr=>{vr.location="LEFT",cr.push(Cn(vr,Rn))});const gr=[];["ecanList","ecanCirculate"].includes(Pn)&&(zn==null?void 0:zn.length)>1&&(Qn=zn),u!=null&&u.pivotTableCal&&(Qn=((v=u.pivotTableCal)===null||v===void 0?void 0:v.dimensions)||[]),Qn==null||Qn.forEach(vr=>{const{label:Sr,name:Cr,location:Tr,show:Er,indexCode:Mr,sort:Br,typeGuid:Kr,indexCodeNum:Lr,dateFormat:Nr,conditions:qr}=vr;let Wr=Dn(Br);if(u.sort){const{field:Xr,order:ri}=u.sort;let ei=cr.find(ui=>ui.label===Xr);ei||Sr!==Xr||(ei=vr),ei&&(Wr={columnName:ei.columnName,label:u.sort.field,order:ri.toUpperCase(),type:"NORMAL"})}const Ur={label:Sr,columnName:Cr,location:Tr,show:Er,sort:Wr,calcType:"COLUMN",hrpIndexCode:Mr,hrpIndexCodeNum:Lr,conditions:On(qr),typeGuid:Kr};Nr&&(Ur.dateFormat=Nr),Cr!=="the_date"||Ur.dateFormat||(Ur.dateFormat="YYYY-MM-DD"),gr.push(Ur)});const yr=[];["ecanTable"].includes(Pn)&&b.isIndexSet&&ar.forEach(vr=>{const Sr={label:vr.label,calcType:vr.calcType,show:vr.show};vr.formula&&(Sr.formula=vr.formula),yr.push(Sr)});let br=[],ur=[];if(Array.isArray(Yn)&&Yn.length>0?ur=Yn:Array.isArray(Wn)&&Wn.length>0&&(ur=Wn),ur==null?void 0:ur.length){const vr=ur.length;for(let Sr=0;Sr<vr;Sr++){const Cr=ur[Sr]||{},{label:Tr="",name:Er="",show:Mr=!1,sort:Br,customGroup:Kr,conditions:Lr,truncations:Nr,typeGuid:qr="",dateFormat:Wr}=Cr;let Ur=Dn(Br);if(u.sort){const{field:ei,order:ui}=u.sort;let ii=cr.find(pi=>pi.label===ei);ii||Cr.label!==ei||(ii=Cr),ii&&(Ur={columnName:ii.columnName,label:u.sort.field,order:ui.toUpperCase(),type:"NORMAL"})}const Xr={label:Tr.trim(),columnName:Er,show:Mr,sort:Ur,customGroup:Kr,conditions:On(Lr),typeGuid:qr};Wr&&(Xr.dateFormat=Wr),Er!=="the_date"||Xr.dateFormat||(Xr.dateFormat="YYYY-MM-DD");const ri={};if(Array.isArray(Nr)&&Nr.length>0){const ei=Nr.length;for(let ui=0;ui<ei;ui++){const ii=Nr[ui]||{},{rule:pi="",num:bi=0,name:xi=""}=ii;pi&&bi&&(ri.num=bi,ri.rule=pi,xi&&(ri.otherGroupName=xi))}}!((p=Object.keys(ri))===null||p===void 0)&&p.length&&(Xr.truncation=ri),br.push(Xr)}}let pr,_r=[];const xr=[];if(u!=null&&u.pivotTableCal){let vr=[];const{calc:Sr=[],filter:Cr=[],truncations:Tr=[],sorts:Er=[],aggregateMethod:Mr=[],rowDimensionKeys:Br=[],colDimensionKeys:Kr=[]}=u.pivotTableCal;if(cr.push(...Sr),Cr==null?void 0:Cr.length){const Lr=function Nr(qr){const Wr=[];for(const Ur of qr)Ur.conditions?Wr.push(...Nr(Ur.conditions)):Ur.conditionKey==="the_date"&&Wr.push(Ur);return Wr}(sr);for(const Nr of Cr){const{type:qr}=Nr,Wr=e(Nr,["type"]);qr==="indicators"?vr=cr:qr==="dimension"&&(vr=gr);const Ur=vr.find(Xr=>Xr.columnName===Nr.fieldName&&Xr.label===Nr.label);if(Ur){if(qr==="indicators")Ur.filter={rule:Wr.rule,fieldValue:Wr.fieldValue};else if(qr==="dimension"){let Xr=!0;Wr.fieldName==="the_date"&&(Lr==null?void 0:Lr.length)===2&&(Xr=!1,xr.push(Wr)),Xr&&(Ur.conditions||(Ur.conditions=[]),Ur.conditions.push(Wr))}}}}if(Tr!=null&&Tr.length)for(const Lr of Tr){const Nr=gr.find(qr=>qr.label===Lr.key);Nr&&(Nr.truncation={num:Lr.num,rule:Lr.rule})}if(Er!=null&&Er.length)for(const Lr of Er){const{fieldType:Nr,columnData:qr}=Lr,Wr=e(Lr,["fieldType","columnData"]);Nr==="indicators"?(vr=cr,pr=qr):Nr==="dimension"&&(vr=gr);const Ur=vr.find(Xr=>Xr.label===Wr.label);Ur&&(Ur.sort=Object.assign(Object.assign({},Wr),{columnName:Ur.columnName}))}if(!((m=Object.keys(Mr))===null||m===void 0)&&m.length)for(const Lr in Mr){const Nr=gr.find(qr=>qr.label===Lr);Nr&&(!((g=Mr[Lr])===null||g===void 0)&&g.length)&&(Nr.aggregateMethod=Mr[Lr])}br=[],_r=[];for(const Lr of gr)Br.includes(Lr.columnName)?br.push(Lr):Kr.includes(Lr.columnName)&&_r.push(Lr)}if(yn(Pn,["text","proportion","counter"])?qn="zb":yn(Pn,["valueline"])?qn="valueline":yn(Pn,["indexPanel"])&&(qn="indexPanel"),gn||Pn==="card"){if(br.length===0||cr.length===0)return;qn="grouptable"}else if(re==="1"&&!gr.length&&!yr.length||["2","4"].includes(re)&&cr.length===0||!(re!=="3"||(Xn||Bn==="EDV_DATA_SET")&&Un.labelField&&Un.valueField)||re==="3"&&Pn==="ecanDataSelect"&&cr.length===0)return;let kr;if(Wn!=null&&Wn.length&&(re="1",qn="grouptable"),j||yn(Pn,["scatter","valueline"])||!(!((y=Object.keys(Un))===null||y===void 0)&&y.length)){let vr={};vr=yn(Pn,["scatter","valueline"])?{classifications:lr}:{classification:Rn},yr!=null&&yr.length&&(vr.indexLibColumns=yr,vr.isIndexSet=!0),yn(Pn,"table")&&b.isIndexSet&&(vr.compositeIndicator=dr);const Sr=nr.map(Cr=>{const{fieldValue:Tr}=Cr,Er={};return Tr&&Array.isArray(Tr)&&(Er.fieldValue=JSON.stringify(Tr)),Object.assign(Object.assign({},Cr),Er)});xr!=null&&xr.length&&function Cr(Tr){for(const Er of Tr)if(Er.sqlConditions)Cr(Er.sqlConditions);else if(Er.fieldName==="the_date"){const Mr=xr.find(Br=>Br.prop===Er.prop);Mr&&(Er.fieldValue=Mr.fieldValue)}}(Sr),kr=Object.assign({url:"/diagram",source:Bn,dataViewId:w,plugin:j?"5":vn,layer:re,chartType:j?"pivot-table":qn,series:fr,indicatorList:cr,queryColumns:gn?[]:gr,pageFlag:!0,edvDataSetId:or||"",sqlConditions:Sr,idxLibMode:ir,dataSourceId:Gn,preview:Kn,rowHeaders:br,keyName:c.keyName,columnData:pr,columnHeaders:_r},vr)}else{const vr=bn(sr).find(Cr=>Cr.conditionKey==="parentCode"),Sr={};if(vr){const Cr=_n(vr.id)||{};if(!(Cr!=null&&Cr.itemCodes))return;Sr.parentItemCodes=Cr.itemCodes}Pn==="ecanDataSelect"&&(Sr.indicatorList=cr.filter(Cr=>Cr.show)),Bn==="EDV_DATA_SET"&&(Sr.edvDataSetId=or),Rn!=null&&Rn.sort&&(Sr.sort=Rn.sort),kr=Object.assign({url:"/diagram/formData",source:Bn,dataViewId:w,plugin:"4",layer:re,chartType:"normalSelect",rangeIndexTypeGuid:Xn,type:Pn==="ecanDataSelect"?"normalSelectData":"normalSelect",labelField:Un.labelField,valueField:Un.valueField,sqlConditions:nr,idxLibMode:"WITH_DATE_DIM_TABLE",dataSourceId:Gn,keyName:c.keyName},Sr)}return kr},In=(c=[],u,f=!1)=>{let{name:d="name",types:h=[]}=u||{};d=(d==null?void 0:d.trim())||d;const v=new Set,p=new Map,m=c.length,g=h.length;if(m!==1||f)for(let Pn=0;Pn<m;Pn++){const x=c[Pn],gn=x[d];v.add(gn);for(let J=0;J<g;J++){const j=h[J],{label:Rn,value:Bn}=j,w=Object.assign(Object.assign({},x),{value:x[Bn]});if(p.has(Rn)){const vn=p.get(Rn);vn.push(w),p.set(Rn,vn)}else p.set(Rn,[w])}}else{const Pn=[];for(let gn=0;gn<g;gn++){const J=h[gn],{label:j,value:Rn}=J,Bn=Object.assign(Object.assign({},c[0]),{value:c[0][Rn]});v.add(j),Pn.push(Bn)}const x=c[0][d]||"";p.set(x,Pn)}const y=Array.from(v),b=[];for(const[Pn,x]of p)b.push({name:Pn,data:x});return{dimensions:y,dataset:b}},Vn=(c,u)=>{let{name:f="name",value:d="value",type:h="type"}=u||{};f=f==null?void 0:f.trim(),d=d==null?void 0:d.trim(),h=h==null?void 0:h.trim();const v=new Map,p=c.length;for(let y=0;y<p;y++){const b=c[y],Pn=b[f]||"",x=b[d]||"",gn=b[h]||"";if(v.has(gn)){const J=v.get(gn);J.push(Object.assign({name:Pn,value:x},b)),v.set(gn,J)}else v.set(gn,[Object.assign({name:Pn,value:x},b)])}const m=[],g=[];for(const[y,b]of v)if(g.push({name:y,data:b}),b==null?void 0:b.length)if(m.length)for(const Pn of b)m.includes(Pn.name)||m.push(Pn.name);else m.push(...b.map(Pn=>Pn.name));return{dimensions:m,dataset:g}},Fn=(c,u)=>{var f;if(c==null)return u;const d=c.match(/\{.*\}/g);if(d==null||d.length===0)return u;const h=d.length;for(let v=0;v<h;v++){const p=d[v];if(p==null||p==="")break;let m=(f=p.slice(1,-1))===null||f===void 0?void 0:f.trim();m=m==null?void 0:m.replace(/value/g,u);try{let g=m;(/\(.*\)/g.test(m)||/[+/\\*]/g.test(m))&&(g=pn(m)),c=c.replace(p,g)}catch{c=c.replace(p,m)}}return c},styleList=["width","height","color","position","top","left","rotate","fontSize","fontFamily","fontWeight","textDecoration","textAlign","lineHeight","verticalAlign","overflow","backgroundColor","backgroundImage","backgroundSize","borderWidth","borderStyle","borderRadius","borderColor","textShadow","justifyContent","alignItems","zIndex","scale"],usePickComponentStyle=(c,u=[])=>{const{pageMode:f}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"}),d=lodashEs.without(styleList,...u);return vue.computed(()=>{var p,m;const h=lodashEs.pick(c,d),v=["width","height","top","left"];for(const g of v)mn(h,g)&&(["width","height"].includes(g)&&((p=c[g])==null?void 0:p.suffix)==="%"&&vue.unref(f)==="design"?h[g]="100%":(m=c[g])!=null&&m.suffix&&(h[g]=(c[g].value||0)+c[g].suffix));return h})},useOnEvent=(c,u)=>{vue.watch(()=>c.id,f=>{const d=vue.inject(EVENT_BUS,{onEvent:(h,v)=>{}});f!=null&&f!==""&&d.onEvent(f,u)},{immediate:!0})},ignoreClickType=["ecanTable"],useEmitEvent=c=>{const u=c.events,f=c.id,d=vue.inject(EVENT_BUS,{emitEvent:(p,m,g)=>{}}),h=vue.inject(COMMON_OPERATE,{operateAction:(p,m)=>{}}),{touchEventId:v}=vue.inject(GLOBAL_CONFIG,{touchEventId:vue.ref("")});return(p,m=()=>{},g)=>function(){m.call(this,...arguments);const{emitEvent:y}=d,{operateAction:b}=h;p==="click"&&!u.find(x=>x.on==="click")&&(!ignoreClickType.includes(c.type)&&c.dataType==="indicator"||c.parentId)&&b("SHOW_INDICATOR_DETAIL_MODAL",{props:c}),u.forEach(Pn=>{if(p===Pn.on)try{v.value=f,g?y(Pn.target,Pn.emit,g):y(Pn.target,Pn.emit)}catch(x){console.error(x)}})}};var commonjsGlobal=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function getDefaultExportFromCjs(c){return c&&c.__esModule&&Object.prototype.hasOwnProperty.call(c,"default")?c.default:c}function getAugmentedNamespace(c){if(c.__esModule)return c;var u=c.default;if(typeof u=="function"){var f=function d(){return this instanceof d?Reflect.construct(u,arguments,this.constructor):u.apply(this,arguments)};f.prototype=u.prototype}else f={};return Object.defineProperty(f,"__esModule",{value:!0}),Object.keys(c).forEach(function(d){var h=Object.getOwnPropertyDescriptor(c,d);Object.defineProperty(f,d,h.get?h:{enumerable:!0,get:function(){return c[d]}})}),f}var cryptoJs={exports:{}};function commonjsRequire(c){throw new Error('Could not dynamically require "'+c+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var core={exports:{}};const __viteBrowserExternal={},__viteBrowserExternal$1=Object.freeze(Object.defineProperty({__proto__:null,default:__viteBrowserExternal},Symbol.toStringTag,{value:"Module"})),require$$0=getAugmentedNamespace(__viteBrowserExternal$1);var hasRequiredCore;function requireCore(){return hasRequiredCore||(hasRequiredCore=1,function(c,u){(function(f,d){c.exports=d()})(commonjsGlobal,function(){var f=f||function(d,h){var v;if(typeof window<"u"&&window.crypto&&(v=window.crypto),typeof self<"u"&&self.crypto&&(v=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(v=globalThis.crypto),!v&&typeof window<"u"&&window.msCrypto&&(v=window.msCrypto),!v&&typeof commonjsGlobal<"u"&&commonjsGlobal.crypto&&(v=commonjsGlobal.crypto),!v&&typeof commonjsRequire=="function")try{v=require$$0}catch{}var p=function(){if(v){if(typeof v.getRandomValues=="function")try{return v.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof v.randomBytes=="function")try{return v.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},m=Object.create||function(){function w(){}return function(vn){var re;return w.prototype=vn,re=new w,w.prototype=null,re}}(),g={},y=g.lib={},b=y.Base=function(){return{extend:function(w){var vn=m(this);return w&&vn.mixIn(w),(!vn.hasOwnProperty("init")||this.init===vn.init)&&(vn.init=function(){vn.$super.init.apply(this,arguments)}),vn.init.prototype=vn,vn.$super=this,vn},create:function(){var w=this.extend();return w.init.apply(w,arguments),w},init:function(){},mixIn:function(w){for(var vn in w)w.hasOwnProperty(vn)&&(this[vn]=w[vn]);w.hasOwnProperty("toString")&&(this.toString=w.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),Pn=y.WordArray=b.extend({init:function(w,vn){w=this.words=w||[],vn!=h?this.sigBytes=vn:this.sigBytes=w.length*4},toString:function(w){return(w||gn).stringify(this)},concat:function(w){var vn=this.words,re=w.words,qn=this.sigBytes,zn=w.sigBytes;if(this.clamp(),qn%4)for(var Yn=0;Yn<zn;Yn++){var Wn=re[Yn>>>2]>>>24-Yn%4*8&255;vn[qn+Yn>>>2]|=Wn<<24-(qn+Yn)%4*8}else for(var Jn=0;Jn<zn;Jn+=4)vn[qn+Jn>>>2]=re[Jn>>>2];return this.sigBytes+=zn,this},clamp:function(){var w=this.words,vn=this.sigBytes;w[vn>>>2]&=4294967295<<32-vn%4*8,w.length=d.ceil(vn/4)},clone:function(){var w=b.clone.call(this);return w.words=this.words.slice(0),w},random:function(w){for(var vn=[],re=0;re<w;re+=4)vn.push(p());return new Pn.init(vn,w)}}),x=g.enc={},gn=x.Hex={stringify:function(w){for(var vn=w.words,re=w.sigBytes,qn=[],zn=0;zn<re;zn++){var Yn=vn[zn>>>2]>>>24-zn%4*8&255;qn.push((Yn>>>4).toString(16)),qn.push((Yn&15).toString(16))}return qn.join("")},parse:function(w){for(var vn=w.length,re=[],qn=0;qn<vn;qn+=2)re[qn>>>3]|=parseInt(w.substr(qn,2),16)<<24-qn%8*4;return new Pn.init(re,vn/2)}},J=x.Latin1={stringify:function(w){for(var vn=w.words,re=w.sigBytes,qn=[],zn=0;zn<re;zn++){var Yn=vn[zn>>>2]>>>24-zn%4*8&255;qn.push(String.fromCharCode(Yn))}return qn.join("")},parse:function(w){for(var vn=w.length,re=[],qn=0;qn<vn;qn++)re[qn>>>2]|=(w.charCodeAt(qn)&255)<<24-qn%4*8;return new Pn.init(re,vn)}},j=x.Utf8={stringify:function(w){try{return decodeURIComponent(escape(J.stringify(w)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(w){return J.parse(unescape(encodeURIComponent(w)))}},Rn=y.BufferedBlockAlgorithm=b.extend({reset:function(){this._data=new Pn.init,this._nDataBytes=0},_append:function(w){typeof w=="string"&&(w=j.parse(w)),this._data.concat(w),this._nDataBytes+=w.sigBytes},_process:function(w){var vn,re=this._data,qn=re.words,zn=re.sigBytes,Yn=this.blockSize,Wn=Yn*4,Jn=zn/Wn;w?Jn=d.ceil(Jn):Jn=d.max((Jn|0)-this._minBufferSize,0);var tr=Jn*Yn,er=d.min(tr*4,zn);if(tr){for(var Qn=0;Qn<tr;Qn+=Yn)this._doProcessBlock(qn,Qn);vn=qn.splice(0,tr),re.sigBytes-=er}return new Pn.init(vn,er)},clone:function(){var w=b.clone.call(this);return w._data=this._data.clone(),w},_minBufferSize:0});y.Hasher=Rn.extend({cfg:b.extend(),init:function(w){this.cfg=this.cfg.extend(w),this.reset()},reset:function(){Rn.reset.call(this),this._doReset()},update:function(w){return this._append(w),this._process(),this},finalize:function(w){w&&this._append(w);var vn=this._doFinalize();return vn},blockSize:16,_createHelper:function(w){return function(vn,re){return new w.init(re).finalize(vn)}},_createHmacHelper:function(w){return function(vn,re){return new Bn.HMAC.init(w,re).finalize(vn)}}});var Bn=g.algo={};return g}(Math);return f})}(core)),core.exports}var x64Core={exports:{}},hasRequiredX64Core;function requireX64Core(){return hasRequiredX64Core||(hasRequiredX64Core=1,function(c,u){(function(f,d){c.exports=d(requireCore())})(commonjsGlobal,function(f){return function(d){var h=f,v=h.lib,p=v.Base,m=v.WordArray,g=h.x64={};g.Word=p.extend({init:function(y,b){this.high=y,this.low=b}}),g.WordArray=p.extend({init:function(y,b){y=this.words=y||[],b!=d?this.sigBytes=b:this.sigBytes=y.length*8},toX32:function(){for(var y=this.words,b=y.length,Pn=[],x=0;x<b;x++){var gn=y[x];Pn.push(gn.high),Pn.push(gn.low)}return m.create(Pn,this.sigBytes)},clone:function(){for(var y=p.clone.call(this),b=y.words=this.words.slice(0),Pn=b.length,x=0;x<Pn;x++)b[x]=b[x].clone();return y}})}(),f})}(x64Core)),x64Core.exports}var libTypedarrays={exports:{}},hasRequiredLibTypedarrays;function requireLibTypedarrays(){return hasRequiredLibTypedarrays||(hasRequiredLibTypedarrays=1,function(c,u){(function(f,d){c.exports=d(requireCore())})(commonjsGlobal,function(f){return function(){if(typeof ArrayBuffer=="function"){var d=f,h=d.lib,v=h.WordArray,p=v.init,m=v.init=function(g){if(g instanceof ArrayBuffer&&(g=new Uint8Array(g)),(g instanceof Int8Array||typeof Uint8ClampedArray<"u"&&g instanceof Uint8ClampedArray||g instanceof Int16Array||g instanceof Uint16Array||g instanceof Int32Array||g instanceof Uint32Array||g instanceof Float32Array||g instanceof Float64Array)&&(g=new Uint8Array(g.buffer,g.byteOffset,g.byteLength)),g instanceof Uint8Array){for(var y=g.byteLength,b=[],Pn=0;Pn<y;Pn++)b[Pn>>>2]|=g[Pn]<<24-Pn%4*8;p.call(this,b,y)}else p.apply(this,arguments)};m.prototype=v}}(),f.lib.WordArray})}(libTypedarrays)),libTypedarrays.exports}var encUtf16={exports:{}},hasRequiredEncUtf16;function requireEncUtf16(){return hasRequiredEncUtf16||(hasRequiredEncUtf16=1,function(c,u){(function(f,d){c.exports=d(requireCore())})(commonjsGlobal,function(f){return function(){var d=f,h=d.lib,v=h.WordArray,p=d.enc;p.Utf16=p.Utf16BE={stringify:function(g){for(var y=g.words,b=g.sigBytes,Pn=[],x=0;x<b;x+=2){var gn=y[x>>>2]>>>16-x%4*8&65535;Pn.push(String.fromCharCode(gn))}return Pn.join("")},parse:function(g){for(var y=g.length,b=[],Pn=0;Pn<y;Pn++)b[Pn>>>1]|=g.charCodeAt(Pn)<<16-Pn%2*16;return v.create(b,y*2)}},p.Utf16LE={stringify:function(g){for(var y=g.words,b=g.sigBytes,Pn=[],x=0;x<b;x+=2){var gn=m(y[x>>>2]>>>16-x%4*8&65535);Pn.push(String.fromCharCode(gn))}return Pn.join("")},parse:function(g){for(var y=g.length,b=[],Pn=0;Pn<y;Pn++)b[Pn>>>1]|=m(g.charCodeAt(Pn)<<16-Pn%2*16);return v.create(b,y*2)}};function m(g){return g<<8&4278255360|g>>>8&16711935}}(),f.enc.Utf16})}(encUtf16)),encUtf16.exports}var encBase64={exports:{}},hasRequiredEncBase64;function requireEncBase64(){return hasRequiredEncBase64||(hasRequiredEncBase64=1,function(c,u){(function(f,d){c.exports=d(requireCore())})(commonjsGlobal,function(f){return function(){var d=f,h=d.lib,v=h.WordArray,p=d.enc;p.Base64={stringify:function(g){var y=g.words,b=g.sigBytes,Pn=this._map;g.clamp();for(var x=[],gn=0;gn<b;gn+=3)for(var J=y[gn>>>2]>>>24-gn%4*8&255,j=y[gn+1>>>2]>>>24-(gn+1)%4*8&255,Rn=y[gn+2>>>2]>>>24-(gn+2)%4*8&255,Bn=J<<16|j<<8|Rn,w=0;w<4&&gn+w*.75<b;w++)x.push(Pn.charAt(Bn>>>6*(3-w)&63));var vn=Pn.charAt(64);if(vn)for(;x.length%4;)x.push(vn);return x.join("")},parse:function(g){var y=g.length,b=this._map,Pn=this._reverseMap;if(!Pn){Pn=this._reverseMap=[];for(var x=0;x<b.length;x++)Pn[b.charCodeAt(x)]=x}var gn=b.charAt(64);if(gn){var J=g.indexOf(gn);J!==-1&&(y=J)}return m(g,y,Pn)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function m(g,y,b){for(var Pn=[],x=0,gn=0;gn<y;gn++)if(gn%4){var J=b[g.charCodeAt(gn-1)]<<gn%4*2,j=b[g.charCodeAt(gn)]>>>6-gn%4*2,Rn=J|j;Pn[x>>>2]|=Rn<<24-x%4*8,x++}return v.create(Pn,x)}}(),f.enc.Base64})}(encBase64)),encBase64.exports}var encBase64url={exports:{}},hasRequiredEncBase64url;function requireEncBase64url(){return hasRequiredEncBase64url||(hasRequiredEncBase64url=1,function(c,u){(function(f,d){c.exports=d(requireCore())})(commonjsGlobal,function(f){return function(){var d=f,h=d.lib,v=h.WordArray,p=d.enc;p.Base64url={stringify:function(g,y=!0){var b=g.words,Pn=g.sigBytes,x=y?this._safe_map:this._map;g.clamp();for(var gn=[],J=0;J<Pn;J+=3)for(var j=b[J>>>2]>>>24-J%4*8&255,Rn=b[J+1>>>2]>>>24-(J+1)%4*8&255,Bn=b[J+2>>>2]>>>24-(J+2)%4*8&255,w=j<<16|Rn<<8|Bn,vn=0;vn<4&&J+vn*.75<Pn;vn++)gn.push(x.charAt(w>>>6*(3-vn)&63));var re=x.charAt(64);if(re)for(;gn.length%4;)gn.push(re);return gn.join("")},parse:function(g,y=!0){var b=g.length,Pn=y?this._safe_map:this._map,x=this._reverseMap;if(!x){x=this._reverseMap=[];for(var gn=0;gn<Pn.length;gn++)x[Pn.charCodeAt(gn)]=gn}var J=Pn.charAt(64);if(J){var j=g.indexOf(J);j!==-1&&(b=j)}return m(g,b,x)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function m(g,y,b){for(var Pn=[],x=0,gn=0;gn<y;gn++)if(gn%4){var J=b[g.charCodeAt(gn-1)]<<gn%4*2,j=b[g.charCodeAt(gn)]>>>6-gn%4*2,Rn=J|j;Pn[x>>>2]|=Rn<<24-x%4*8,x++}return v.create(Pn,x)}}(),f.enc.Base64url})}(encBase64url)),encBase64url.exports}var md5={exports:{}},hasRequiredMd5;function requireMd5(){return hasRequiredMd5||(hasRequiredMd5=1,function(c,u){(function(f,d){c.exports=d(requireCore())})(commonjsGlobal,function(f){return function(d){var h=f,v=h.lib,p=v.WordArray,m=v.Hasher,g=h.algo,y=[];(function(){for(var j=0;j<64;j++)y[j]=d.abs(d.sin(j+1))*4294967296|0})();var b=g.MD5=m.extend({_doReset:function(){this._hash=new p.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(j,Rn){for(var Bn=0;Bn<16;Bn++){var w=Rn+Bn,vn=j[w];j[w]=(vn<<8|vn>>>24)&16711935|(vn<<24|vn>>>8)&4278255360}var re=this._hash.words,qn=j[Rn+0],zn=j[Rn+1],Yn=j[Rn+2],Wn=j[Rn+3],Jn=j[Rn+4],tr=j[Rn+5],er=j[Rn+6],Qn=j[Rn+7],ar=j[Rn+8],hr=j[Rn+9],sr=j[Rn+10],Un=j[Rn+11],Zn=j[Rn+12],Hn=j[Rn+13],Gn=j[Rn+14],ir=j[Rn+15],Kn=re[0],or=re[1],dr=re[2],nr=re[3];Kn=Pn(Kn,or,dr,nr,qn,7,y[0]),nr=Pn(nr,Kn,or,dr,zn,12,y[1]),dr=Pn(dr,nr,Kn,or,Yn,17,y[2]),or=Pn(or,dr,nr,Kn,Wn,22,y[3]),Kn=Pn(Kn,or,dr,nr,Jn,7,y[4]),nr=Pn(nr,Kn,or,dr,tr,12,y[5]),dr=Pn(dr,nr,Kn,or,er,17,y[6]),or=Pn(or,dr,nr,Kn,Qn,22,y[7]),Kn=Pn(Kn,or,dr,nr,ar,7,y[8]),nr=Pn(nr,Kn,or,dr,hr,12,y[9]),dr=Pn(dr,nr,Kn,or,sr,17,y[10]),or=Pn(or,dr,nr,Kn,Un,22,y[11]),Kn=Pn(Kn,or,dr,nr,Zn,7,y[12]),nr=Pn(nr,Kn,or,dr,Hn,12,y[13]),dr=Pn(dr,nr,Kn,or,Gn,17,y[14]),or=Pn(or,dr,nr,Kn,ir,22,y[15]),Kn=x(Kn,or,dr,nr,zn,5,y[16]),nr=x(nr,Kn,or,dr,er,9,y[17]),dr=x(dr,nr,Kn,or,Un,14,y[18]),or=x(or,dr,nr,Kn,qn,20,y[19]),Kn=x(Kn,or,dr,nr,tr,5,y[20]),nr=x(nr,Kn,or,dr,sr,9,y[21]),dr=x(dr,nr,Kn,or,ir,14,y[22]),or=x(or,dr,nr,Kn,Jn,20,y[23]),Kn=x(Kn,or,dr,nr,hr,5,y[24]),nr=x(nr,Kn,or,dr,Gn,9,y[25]),dr=x(dr,nr,Kn,or,Wn,14,y[26]),or=x(or,dr,nr,Kn,ar,20,y[27]),Kn=x(Kn,or,dr,nr,Hn,5,y[28]),nr=x(nr,Kn,or,dr,Yn,9,y[29]),dr=x(dr,nr,Kn,or,Qn,14,y[30]),or=x(or,dr,nr,Kn,Zn,20,y[31]),Kn=gn(Kn,or,dr,nr,tr,4,y[32]),nr=gn(nr,Kn,or,dr,ar,11,y[33]),dr=gn(dr,nr,Kn,or,Un,16,y[34]),or=gn(or,dr,nr,Kn,Gn,23,y[35]),Kn=gn(Kn,or,dr,nr,zn,4,y[36]),nr=gn(nr,Kn,or,dr,Jn,11,y[37]),dr=gn(dr,nr,Kn,or,Qn,16,y[38]),or=gn(or,dr,nr,Kn,sr,23,y[39]),Kn=gn(Kn,or,dr,nr,Hn,4,y[40]),nr=gn(nr,Kn,or,dr,qn,11,y[41]),dr=gn(dr,nr,Kn,or,Wn,16,y[42]),or=gn(or,dr,nr,Kn,er,23,y[43]),Kn=gn(Kn,or,dr,nr,hr,4,y[44]),nr=gn(nr,Kn,or,dr,Zn,11,y[45]),dr=gn(dr,nr,Kn,or,ir,16,y[46]),or=gn(or,dr,nr,Kn,Yn,23,y[47]),Kn=J(Kn,or,dr,nr,qn,6,y[48]),nr=J(nr,Kn,or,dr,Qn,10,y[49]),dr=J(dr,nr,Kn,or,Gn,15,y[50]),or=J(or,dr,nr,Kn,tr,21,y[51]),Kn=J(Kn,or,dr,nr,Zn,6,y[52]),nr=J(nr,Kn,or,dr,Wn,10,y[53]),dr=J(dr,nr,Kn,or,sr,15,y[54]),or=J(or,dr,nr,Kn,zn,21,y[55]),Kn=J(Kn,or,dr,nr,ar,6,y[56]),nr=J(nr,Kn,or,dr,ir,10,y[57]),dr=J(dr,nr,Kn,or,er,15,y[58]),or=J(or,dr,nr,Kn,Hn,21,y[59]),Kn=J(Kn,or,dr,nr,Jn,6,y[60]),nr=J(nr,Kn,or,dr,Un,10,y[61]),dr=J(dr,nr,Kn,or,Yn,15,y[62]),or=J(or,dr,nr,Kn,hr,21,y[63]),re[0]=re[0]+Kn|0,re[1]=re[1]+or|0,re[2]=re[2]+dr|0,re[3]=re[3]+nr|0},_doFinalize:function(){var j=this._data,Rn=j.words,Bn=this._nDataBytes*8,w=j.sigBytes*8;Rn[w>>>5]|=128<<24-w%32;var vn=d.floor(Bn/4294967296),re=Bn;Rn[(w+64>>>9<<4)+15]=(vn<<8|vn>>>24)&16711935|(vn<<24|vn>>>8)&4278255360,Rn[(w+64>>>9<<4)+14]=(re<<8|re>>>24)&16711935|(re<<24|re>>>8)&4278255360,j.sigBytes=(Rn.length+1)*4,this._process();for(var qn=this._hash,zn=qn.words,Yn=0;Yn<4;Yn++){var Wn=zn[Yn];zn[Yn]=(Wn<<8|Wn>>>24)&16711935|(Wn<<24|Wn>>>8)&4278255360}return qn},clone:function(){var j=m.clone.call(this);return j._hash=this._hash.clone(),j}});function Pn(j,Rn,Bn,w,vn,re,qn){var zn=j+(Rn&Bn|~Rn&w)+vn+qn;return(zn<<re|zn>>>32-re)+Rn}function x(j,Rn,Bn,w,vn,re,qn){var zn=j+(Rn&w|Bn&~w)+vn+qn;return(zn<<re|zn>>>32-re)+Rn}function gn(j,Rn,Bn,w,vn,re,qn){var zn=j+(Rn^Bn^w)+vn+qn;return(zn<<re|zn>>>32-re)+Rn}function J(j,Rn,Bn,w,vn,re,qn){var zn=j+(Bn^(Rn|~w))+vn+qn;return(zn<<re|zn>>>32-re)+Rn}h.MD5=m._createHelper(b),h.HmacMD5=m._createHmacHelper(b)}(Math),f.MD5})}(md5)),md5.exports}var sha1={exports:{}},hasRequiredSha1;function requireSha1(){return hasRequiredSha1||(hasRequiredSha1=1,function(c,u){(function(f,d){c.exports=d(requireCore())})(commonjsGlobal,function(f){return function(){var d=f,h=d.lib,v=h.WordArray,p=h.Hasher,m=d.algo,g=[],y=m.SHA1=p.extend({_doReset:function(){this._hash=new v.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(b,Pn){for(var x=this._hash.words,gn=x[0],J=x[1],j=x[2],Rn=x[3],Bn=x[4],w=0;w<80;w++){if(w<16)g[w]=b[Pn+w]|0;else{var vn=g[w-3]^g[w-8]^g[w-14]^g[w-16];g[w]=vn<<1|vn>>>31}var re=(gn<<5|gn>>>27)+Bn+g[w];w<20?re+=(J&j|~J&Rn)+1518500249:w<40?re+=(J^j^Rn)+1859775393:w<60?re+=(J&j|J&Rn|j&Rn)-1894007588:re+=(J^j^Rn)-899497514,Bn=Rn,Rn=j,j=J<<30|J>>>2,J=gn,gn=re}x[0]=x[0]+gn|0,x[1]=x[1]+J|0,x[2]=x[2]+j|0,x[3]=x[3]+Rn|0,x[4]=x[4]+Bn|0},_doFinalize:function(){var b=this._data,Pn=b.words,x=this._nDataBytes*8,gn=b.sigBytes*8;return Pn[gn>>>5]|=128<<24-gn%32,Pn[(gn+64>>>9<<4)+14]=Math.floor(x/4294967296),Pn[(gn+64>>>9<<4)+15]=x,b.sigBytes=Pn.length*4,this._process(),this._hash},clone:function(){var b=p.clone.call(this);return b._hash=this._hash.clone(),b}});d.SHA1=p._createHelper(y),d.HmacSHA1=p._createHmacHelper(y)}(),f.SHA1})}(sha1)),sha1.exports}var sha256={exports:{}},hasRequiredSha256;function requireSha256(){return hasRequiredSha256||(hasRequiredSha256=1,function(c,u){(function(f,d){c.exports=d(requireCore())})(commonjsGlobal,function(f){return function(d){var h=f,v=h.lib,p=v.WordArray,m=v.Hasher,g=h.algo,y=[],b=[];(function(){function gn(Bn){for(var w=d.sqrt(Bn),vn=2;vn<=w;vn++)if(!(Bn%vn))return!1;return!0}function J(Bn){return(Bn-(Bn|0))*4294967296|0}for(var j=2,Rn=0;Rn<64;)gn(j)&&(Rn<8&&(y[Rn]=J(d.pow(j,1/2))),b[Rn]=J(d.pow(j,1/3)),Rn++),j++})();var Pn=[],x=g.SHA256=m.extend({_doReset:function(){this._hash=new p.init(y.slice(0))},_doProcessBlock:function(gn,J){for(var j=this._hash.words,Rn=j[0],Bn=j[1],w=j[2],vn=j[3],re=j[4],qn=j[5],zn=j[6],Yn=j[7],Wn=0;Wn<64;Wn++){if(Wn<16)Pn[Wn]=gn[J+Wn]|0;else{var Jn=Pn[Wn-15],tr=(Jn<<25|Jn>>>7)^(Jn<<14|Jn>>>18)^Jn>>>3,er=Pn[Wn-2],Qn=(er<<15|er>>>17)^(er<<13|er>>>19)^er>>>10;Pn[Wn]=tr+Pn[Wn-7]+Qn+Pn[Wn-16]}var ar=re&qn^~re&zn,hr=Rn&Bn^Rn&w^Bn&w,sr=(Rn<<30|Rn>>>2)^(Rn<<19|Rn>>>13)^(Rn<<10|Rn>>>22),Un=(re<<26|re>>>6)^(re<<21|re>>>11)^(re<<7|re>>>25),Zn=Yn+Un+ar+b[Wn]+Pn[Wn],Hn=sr+hr;Yn=zn,zn=qn,qn=re,re=vn+Zn|0,vn=w,w=Bn,Bn=Rn,Rn=Zn+Hn|0}j[0]=j[0]+Rn|0,j[1]=j[1]+Bn|0,j[2]=j[2]+w|0,j[3]=j[3]+vn|0,j[4]=j[4]+re|0,j[5]=j[5]+qn|0,j[6]=j[6]+zn|0,j[7]=j[7]+Yn|0},_doFinalize:function(){var gn=this._data,J=gn.words,j=this._nDataBytes*8,Rn=gn.sigBytes*8;return J[Rn>>>5]|=128<<24-Rn%32,J[(Rn+64>>>9<<4)+14]=d.floor(j/4294967296),J[(Rn+64>>>9<<4)+15]=j,gn.sigBytes=J.length*4,this._process(),this._hash},clone:function(){var gn=m.clone.call(this);return gn._hash=this._hash.clone(),gn}});h.SHA256=m._createHelper(x),h.HmacSHA256=m._createHmacHelper(x)}(Math),f.SHA256})}(sha256)),sha256.exports}var sha224={exports:{}},hasRequiredSha224;function requireSha224(){return hasRequiredSha224||(hasRequiredSha224=1,function(c,u){(function(f,d,h){c.exports=d(requireCore(),requireSha256())})(commonjsGlobal,function(f){return function(){var d=f,h=d.lib,v=h.WordArray,p=d.algo,m=p.SHA256,g=p.SHA224=m.extend({_doReset:function(){this._hash=new v.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var y=m._doFinalize.call(this);return y.sigBytes-=4,y}});d.SHA224=m._createHelper(g),d.HmacSHA224=m._createHmacHelper(g)}(),f.SHA224})}(sha224)),sha224.exports}var sha512={exports:{}},hasRequiredSha512;function requireSha512(){return hasRequiredSha512||(hasRequiredSha512=1,function(c,u){(function(f,d,h){c.exports=d(requireCore(),requireX64Core())})(commonjsGlobal,function(f){return function(){var d=f,h=d.lib,v=h.Hasher,p=d.x64,m=p.Word,g=p.WordArray,y=d.algo;function b(){return m.create.apply(m,arguments)}var Pn=[b(1116352408,3609767458),b(1899447441,602891725),b(3049323471,3964484399),b(3921009573,2173295548),b(961987163,4081628472),b(1508970993,3053834265),b(2453635748,2937671579),b(2870763221,3664609560),b(3624381080,2734883394),b(310598401,1164996542),b(607225278,1323610764),b(1426881987,3590304994),b(1925078388,4068182383),b(2162078206,991336113),b(2614888103,633803317),b(3248222580,3479774868),b(3835390401,2666613458),b(4022224774,944711139),b(264347078,2341262773),b(604807628,2007800933),b(770255983,1495990901),b(1249150122,1856431235),b(1555081692,3175218132),b(1996064986,2198950837),b(2554220882,3999719339),b(2821834349,766784016),b(2952996808,2566594879),b(3210313671,3203337956),b(3336571891,1034457026),b(3584528711,2466948901),b(113926993,3758326383),b(338241895,168717936),b(666307205,1188179964),b(773529912,1546045734),b(1294757372,1522805485),b(1396182291,2643833823),b(1695183700,2343527390),b(1986661051,1014477480),b(2177026350,1206759142),b(2456956037,344077627),b(2730485921,1290863460),b(2820302411,3158454273),b(3259730800,3505952657),b(3345764771,106217008),b(3516065817,3606008344),b(3600352804,1432725776),b(4094571909,1467031594),b(275423344,851169720),b(430227734,3100823752),b(506948616,1363258195),b(659060556,3750685593),b(883997877,3785050280),b(958139571,3318307427),b(1322822218,3812723403),b(1537002063,2003034995),b(1747873779,3602036899),b(1955562222,1575990012),b(2024104815,1125592928),b(2227730452,2716904306),b(2361852424,442776044),b(2428436474,593698344),b(2756734187,3733110249),b(3204031479,2999351573),b(3329325298,3815920427),b(3391569614,3928383900),b(3515267271,566280711),b(3940187606,3454069534),b(4118630271,4000239992),b(116418474,1914138554),b(174292421,2731055270),b(289380356,3203993006),b(460393269,320620315),b(685471733,587496836),b(852142971,1086792851),b(1017036298,365543100),b(1126000580,2618297676),b(1288033470,3409855158),b(1501505948,4234509866),b(1607167915,987167468),b(1816402316,1246189591)],x=[];(function(){for(var J=0;J<80;J++)x[J]=b()})();var gn=y.SHA512=v.extend({_doReset:function(){this._hash=new g.init([new m.init(1779033703,4089235720),new m.init(3144134277,2227873595),new m.init(1013904242,4271175723),new m.init(2773480762,1595750129),new m.init(1359893119,2917565137),new m.init(2600822924,725511199),new m.init(528734635,4215389547),new m.init(1541459225,327033209)])},_doProcessBlock:function(J,j){for(var Rn=this._hash.words,Bn=Rn[0],w=Rn[1],vn=Rn[2],re=Rn[3],qn=Rn[4],zn=Rn[5],Yn=Rn[6],Wn=Rn[7],Jn=Bn.high,tr=Bn.low,er=w.high,Qn=w.low,ar=vn.high,hr=vn.low,sr=re.high,Un=re.low,Zn=qn.high,Hn=qn.low,Gn=zn.high,ir=zn.low,Kn=Yn.high,or=Yn.low,dr=Wn.high,nr=Wn.low,lr=Jn,fr=tr,Xn=er,cr=Qn,mr=ar,gr=hr,yr=sr,br=Un,ur=Zn,pr=Hn,_r=Gn,xr=ir,kr=Kn,vr=or,Sr=dr,Cr=nr,Tr=0;Tr<80;Tr++){var Er,Mr,Br=x[Tr];if(Tr<16)Mr=Br.high=J[j+Tr*2]|0,Er=Br.low=J[j+Tr*2+1]|0;else{var Kr=x[Tr-15],Lr=Kr.high,Nr=Kr.low,qr=(Lr>>>1|Nr<<31)^(Lr>>>8|Nr<<24)^Lr>>>7,Wr=(Nr>>>1|Lr<<31)^(Nr>>>8|Lr<<24)^(Nr>>>7|Lr<<25),Ur=x[Tr-2],Xr=Ur.high,ri=Ur.low,ei=(Xr>>>19|ri<<13)^(Xr<<3|ri>>>29)^Xr>>>6,ui=(ri>>>19|Xr<<13)^(ri<<3|Xr>>>29)^(ri>>>6|Xr<<26),ii=x[Tr-7],pi=ii.high,bi=ii.low,xi=x[Tr-16],Ir=xi.high,Dr=xi.low;Er=Wr+bi,Mr=qr+pi+(Er>>>0<Wr>>>0?1:0),Er=Er+ui,Mr=Mr+ei+(Er>>>0<ui>>>0?1:0),Er=Er+Dr,Mr=Mr+Ir+(Er>>>0<Dr>>>0?1:0),Br.high=Mr,Br.low=Er}var Rr=ur&_r^~ur&kr,$r=pr&xr^~pr&vr,zr=lr&Xn^lr&mr^Xn&mr,Hr=fr&cr^fr&gr^cr&gr,Qr=(lr>>>28|fr<<4)^(lr<<30|fr>>>2)^(lr<<25|fr>>>7),li=(fr>>>28|lr<<4)^(fr<<30|lr>>>2)^(fr<<25|lr>>>7),ai=(ur>>>14|pr<<18)^(ur>>>18|pr<<14)^(ur<<23|pr>>>9),fi=(pr>>>14|ur<<18)^(pr>>>18|ur<<14)^(pr<<23|ur>>>9),yi=Pn[Tr],hi=yi.high,oi=yi.low,Yr=Cr+fi,ci=Sr+ai+(Yr>>>0<Cr>>>0?1:0),Yr=Yr+$r,ci=ci+Rr+(Yr>>>0<$r>>>0?1:0),Yr=Yr+oi,ci=ci+hi+(Yr>>>0<oi>>>0?1:0),Yr=Yr+Er,ci=ci+Mr+(Yr>>>0<Er>>>0?1:0),wi=li+Hr,vi=Qr+zr+(wi>>>0<li>>>0?1:0);Sr=kr,Cr=vr,kr=_r,vr=xr,_r=ur,xr=pr,pr=br+Yr|0,ur=yr+ci+(pr>>>0<br>>>0?1:0)|0,yr=mr,br=gr,mr=Xn,gr=cr,Xn=lr,cr=fr,fr=Yr+wi|0,lr=ci+vi+(fr>>>0<Yr>>>0?1:0)|0}tr=Bn.low=tr+fr,Bn.high=Jn+lr+(tr>>>0<fr>>>0?1:0),Qn=w.low=Qn+cr,w.high=er+Xn+(Qn>>>0<cr>>>0?1:0),hr=vn.low=hr+gr,vn.high=ar+mr+(hr>>>0<gr>>>0?1:0),Un=re.low=Un+br,re.high=sr+yr+(Un>>>0<br>>>0?1:0),Hn=qn.low=Hn+pr,qn.high=Zn+ur+(Hn>>>0<pr>>>0?1:0),ir=zn.low=ir+xr,zn.high=Gn+_r+(ir>>>0<xr>>>0?1:0),or=Yn.low=or+vr,Yn.high=Kn+kr+(or>>>0<vr>>>0?1:0),nr=Wn.low=nr+Cr,Wn.high=dr+Sr+(nr>>>0<Cr>>>0?1:0)},_doFinalize:function(){var J=this._data,j=J.words,Rn=this._nDataBytes*8,Bn=J.sigBytes*8;j[Bn>>>5]|=128<<24-Bn%32,j[(Bn+128>>>10<<5)+30]=Math.floor(Rn/4294967296),j[(Bn+128>>>10<<5)+31]=Rn,J.sigBytes=j.length*4,this._process();var w=this._hash.toX32();return w},clone:function(){var J=v.clone.call(this);return J._hash=this._hash.clone(),J},blockSize:1024/32});d.SHA512=v._createHelper(gn),d.HmacSHA512=v._createHmacHelper(gn)}(),f.SHA512})}(sha512)),sha512.exports}var sha384={exports:{}},hasRequiredSha384;function requireSha384(){return hasRequiredSha384||(hasRequiredSha384=1,function(c,u){(function(f,d,h){c.exports=d(requireCore(),requireX64Core(),requireSha512())})(commonjsGlobal,function(f){return function(){var d=f,h=d.x64,v=h.Word,p=h.WordArray,m=d.algo,g=m.SHA512,y=m.SHA384=g.extend({_doReset:function(){this._hash=new p.init([new v.init(3418070365,3238371032),new v.init(1654270250,914150663),new v.init(2438529370,812702999),new v.init(355462360,4144912697),new v.init(1731405415,4290775857),new v.init(2394180231,1750603025),new v.init(3675008525,1694076839),new v.init(1203062813,3204075428)])},_doFinalize:function(){var b=g._doFinalize.call(this);return b.sigBytes-=16,b}});d.SHA384=g._createHelper(y),d.HmacSHA384=g._createHmacHelper(y)}(),f.SHA384})}(sha384)),sha384.exports}var sha3={exports:{}},hasRequiredSha3;function requireSha3(){return hasRequiredSha3||(hasRequiredSha3=1,function(c,u){(function(f,d,h){c.exports=d(requireCore(),requireX64Core())})(commonjsGlobal,function(f){return function(d){var h=f,v=h.lib,p=v.WordArray,m=v.Hasher,g=h.x64,y=g.Word,b=h.algo,Pn=[],x=[],gn=[];(function(){for(var Rn=1,Bn=0,w=0;w<24;w++){Pn[Rn+5*Bn]=(w+1)*(w+2)/2%64;var vn=Bn%5,re=(2*Rn+3*Bn)%5;Rn=vn,Bn=re}for(var Rn=0;Rn<5;Rn++)for(var Bn=0;Bn<5;Bn++)x[Rn+5*Bn]=Bn+(2*Rn+3*Bn)%5*5;for(var qn=1,zn=0;zn<24;zn++){for(var Yn=0,Wn=0,Jn=0;Jn<7;Jn++){if(qn&1){var tr=(1<<Jn)-1;tr<32?Wn^=1<<tr:Yn^=1<<tr-32}qn&128?qn=qn<<1^113:qn<<=1}gn[zn]=y.create(Yn,Wn)}})();var J=[];(function(){for(var Rn=0;Rn<25;Rn++)J[Rn]=y.create()})();var j=b.SHA3=m.extend({cfg:m.cfg.extend({outputLength:512}),_doReset:function(){for(var Rn=this._state=[],Bn=0;Bn<25;Bn++)Rn[Bn]=new y.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(Rn,Bn){for(var w=this._state,vn=this.blockSize/2,re=0;re<vn;re++){var qn=Rn[Bn+2*re],zn=Rn[Bn+2*re+1];qn=(qn<<8|qn>>>24)&16711935|(qn<<24|qn>>>8)&4278255360,zn=(zn<<8|zn>>>24)&16711935|(zn<<24|zn>>>8)&4278255360;var Yn=w[re];Yn.high^=zn,Yn.low^=qn}for(var Wn=0;Wn<24;Wn++){for(var Jn=0;Jn<5;Jn++){for(var tr=0,er=0,Qn=0;Qn<5;Qn++){var Yn=w[Jn+5*Qn];tr^=Yn.high,er^=Yn.low}var ar=J[Jn];ar.high=tr,ar.low=er}for(var Jn=0;Jn<5;Jn++)for(var hr=J[(Jn+4)%5],sr=J[(Jn+1)%5],Un=sr.high,Zn=sr.low,tr=hr.high^(Un<<1|Zn>>>31),er=hr.low^(Zn<<1|Un>>>31),Qn=0;Qn<5;Qn++){var Yn=w[Jn+5*Qn];Yn.high^=tr,Yn.low^=er}for(var Hn=1;Hn<25;Hn++){var tr,er,Yn=w[Hn],Gn=Yn.high,ir=Yn.low,Kn=Pn[Hn];Kn<32?(tr=Gn<<Kn|ir>>>32-Kn,er=ir<<Kn|Gn>>>32-Kn):(tr=ir<<Kn-32|Gn>>>64-Kn,er=Gn<<Kn-32|ir>>>64-Kn);var or=J[x[Hn]];or.high=tr,or.low=er}var dr=J[0],nr=w[0];dr.high=nr.high,dr.low=nr.low;for(var Jn=0;Jn<5;Jn++)for(var Qn=0;Qn<5;Qn++){var Hn=Jn+5*Qn,Yn=w[Hn],lr=J[Hn],fr=J[(Jn+1)%5+5*Qn],Xn=J[(Jn+2)%5+5*Qn];Yn.high=lr.high^~fr.high&Xn.high,Yn.low=lr.low^~fr.low&Xn.low}var Yn=w[0],cr=gn[Wn];Yn.high^=cr.high,Yn.low^=cr.low}},_doFinalize:function(){var Rn=this._data,Bn=Rn.words;this._nDataBytes*8;var w=Rn.sigBytes*8,vn=this.blockSize*32;Bn[w>>>5]|=1<<24-w%32,Bn[(d.ceil((w+1)/vn)*vn>>>5)-1]|=128,Rn.sigBytes=Bn.length*4,this._process();for(var re=this._state,qn=this.cfg.outputLength/8,zn=qn/8,Yn=[],Wn=0;Wn<zn;Wn++){var Jn=re[Wn],tr=Jn.high,er=Jn.low;tr=(tr<<8|tr>>>24)&16711935|(tr<<24|tr>>>8)&4278255360,er=(er<<8|er>>>24)&16711935|(er<<24|er>>>8)&4278255360,Yn.push(er),Yn.push(tr)}return new p.init(Yn,qn)},clone:function(){for(var Rn=m.clone.call(this),Bn=Rn._state=this._state.slice(0),w=0;w<25;w++)Bn[w]=Bn[w].clone();return Rn}});h.SHA3=m._createHelper(j),h.HmacSHA3=m._createHmacHelper(j)}(Math),f.SHA3})}(sha3)),sha3.exports}var ripemd160={exports:{}},hasRequiredRipemd160;function requireRipemd160(){return hasRequiredRipemd160||(hasRequiredRipemd160=1,function(c,u){(function(f,d){c.exports=d(requireCore())})(commonjsGlobal,function(f){/** @preserve
61
+ `],...function({vnode:b,recurseCount:Pn}){const x=Pn>0?`... (${Pn} recursive calls)`:"",gn=!!b.component&&b.component.parent==null,J=` at <${oe(b.component,b.type,gn)}`,j=">"+x;return b.props?[J,...L(b.props),j]:[J+j]}(g))}),m}(h)),console.warn(...v)}}function L(c){const u=[],f=Object.keys(c);return f.slice(0,3).forEach(d=>{u.push(...T(d,c[d]))}),f.length>3&&u.push(" ..."),u}function T(c,u,f){return typeof u=="string"?(u=JSON.stringify(u),f?u:[`${c}=${u}`]):typeof u=="number"||typeof u=="boolean"||u==null?f?u:[`${c}=${u}`]:A(u)?(u=T(c,S(u.value),!0),f?u:[`${c}=Ref<`,u,">"]):i(u)?[`${c}=fn${u.name?`<${u.name}>`:""}`]:(u=S(u),f?u:[`${c}=`,u])}const N={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",0:"setup function",1:"render function",2:"watcher getter",3:"watcher callback",4:"watcher cleanup function",5:"native event handler",6:"component event handler",7:"vnode hook",8:"directive hook",9:"transition hook",10:"app errorHandler",11:"app warnHandler",12:"ref function",13:"async component loader",14:"scheduler flush. This is likely a Vue internals bug. Please open an issue at https://new-issue.vuejs.org/?repo=vuejs/core"};function $(c,u,f,d){let h;try{h=d?c(...d):c()}catch(v){(function(p,m,g,y=!0){const b=m?m.vnode:null;if(m){let Pn=m.parent;const x=m.proxy,gn=process.env.NODE_ENV!=="production"?N[g]:g;for(;Pn;){const j=Pn.ec;if(j){for(let Rn=0;Rn<j.length;Rn++)if(j[Rn](p,x,gn)===!1)return}Pn=Pn.parent}const J=m.appContext.config.errorHandler;if(J)return void $(J,null,10,[p,x,gn])}(function(Pn,x,gn,J=!0){if(process.env.NODE_ENV!=="production"){const Rn=N[x];if(gn&&(j=gn,O.push(j)),C("Unhandled error"+(Rn?` during execution of ${Rn}`:"")),gn&&O.pop(),J)throw Pn;console.error(Pn)}else console.error(Pn);var j})(p,g,b,y)})(v,u,f)}return h}let k=!1,D=!1;const M=[];let E=0;const I=[];let V=null,F=0;const z$1=Promise.resolve();function R(c){M.length&&M.includes(c,k&&c.allowRecurse?E+1:E)||(c.id==null?M.push(c):M.splice(function(u){let f=E+1,d=M.length;for(;f<d;){const h=f+d>>>1,v=M[h],p=P(v);p<u||p===u&&v.pre?f=h+1:d=h}return f}(c.id),0,c),U())}function U(){k||D||(D=!0,z$1.then(Y))}const P=c=>c.id==null?1/0:c.id,G=(c,u)=>{const f=P(c)-P(u);if(f===0){if(c.pre&&!u.pre)return-1;if(u.pre&&!c.pre)return 1}return f};function Y(c){D=!1,k=!0,process.env.NODE_ENV!=="production"&&(c=c||new Map),M.sort(G);const u=process.env.NODE_ENV!=="production"?f=>W(c,f):n;try{for(E=0;E<M.length;E++){const f=M[E];if(f&&f.active!==!1){if(process.env.NODE_ENV!=="production"&&u(f))continue;$(f,null,14)}}}finally{E=0,M.length=0,function(f){if(I.length){const d=[...new Set(I)];if(I.length=0,V)return void V.push(...d);for(V=d,process.env.NODE_ENV!=="production"&&(f=f||new Map),V.sort((h,v)=>P(h)-P(v)),F=0;F<V.length;F++)process.env.NODE_ENV!=="production"&&W(f,V[F])||V[F]();V=null,F=0}}(c),k=!1,(M.length||I.length)&&Y(c)}}function W(c,u){if(c.has(u)){const f=c.get(u);if(f>100){const d=u.ownerInstance,h=d&&ne(d.type);return C(`Maximum recursive updates exceeded${h?` in component <${h}>`:""}. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.`),!0}c.set(u,f+1)}else c.set(u,1)}const H=new Set;process.env.NODE_ENV!=="production"&&(s().__VUE_HMR_RUNTIME__={createRecord:Q(function(c,u){return B.has(c)?!1:(B.set(c,{initialDef:K(u),instances:new Set}),!0)}),rerender:Q(function(c,u){const f=B.get(c);f&&(f.initialDef.render=u,[...f.instances].forEach(d=>{u&&(d.render=u,K(d.type).render=u),d.renderCache=[],d.update()}))}),reload:Q(function(c,u){const f=B.get(c);if(!f)return;u=K(u),q(f.initialDef,u);const d=[...f.instances];for(const v of d){const p=K(v.type);H.has(p)||(p!==f.initialDef&&q(p,u),H.add(p)),v.appContext.propsCache.delete(v.type),v.appContext.emitsCache.delete(v.type),v.appContext.optionsCache.delete(v.type),v.ceReload?(H.add(p),v.ceReload(u.styles),H.delete(p)):v.parent?R(v.parent.update):v.appContext.reload?v.appContext.reload():typeof window<"u"?window.location.reload():console.warn("[HMR] Root or manually mounted instance modified. Full reload required.")}h=()=>{for(const v of d)H.delete(K(v.type))},r(h)?I.push(...h):V&&V.includes(h,h.allowRecurse?F+1:F)||I.push(h),U();var h})});const B=new Map;function K(c){return i(u=c)&&"__vccOpts"in u?c.__vccOpts:c;var u}function q(c,u){o(c,u);for(const f in c)f==="__file"||f in u||delete c[f]}function Q(c){return(u,f)=>{try{return c(u,f)}catch(d){console.error(d),console.warn("[HMR] Something went wrong during Vue component hot-reload. Full reload required.")}}}let X;process.env.NODE_ENV;let Z="__VUE_INSTANCE_SETTERS__";(X=s()[Z])||(X=s()[Z]=[]),X.push(c=>c);const ee=/(?:^|[-_])(\w)/g,te=c=>c.replace(ee,u=>u.toUpperCase()).replace(/[-_]/g,"");function ne(c,u=!0){return i(c)?c.displayName||c.name:c.name||u&&c.__name}function oe(c,u,f=!1){let d=ne(u);if(!d&&u.__file){const h=u.__file.match(/([^/\\]+)\.\w+$/);h&&(d=h[1])}if(!d&&c&&c.parent){const h=v=>{for(const p in v)if(v[p]===u)return p};d=h(c.components||c.parent.type.components)||h(c.appContext.components)}return d?te(d):f?"App":"Anonymous"}function ie(c){return c&&c.__esModule&&Object.prototype.hasOwnProperty.call(c,"default")?c.default:c}var ae,le={exports:{}};function se(){return ae||(ae=1,le.exports=function(){var c=1e3,u=6e4,f=36e5,d="millisecond",h="second",v="minute",p="hour",m="day",g="week",y="month",b="quarter",Pn="year",x="date",gn="Invalid Date",J=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,j=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,Rn={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(Qn){var ar=["th","st","nd","rd"],hr=Qn%100;return"["+Qn+(ar[(hr-20)%10]||ar[hr]||ar[0])+"]"}},Bn=function(Qn,ar,hr){var sr=String(Qn);return!sr||sr.length>=ar?Qn:""+Array(ar+1-sr.length).join(hr)+Qn},w={s:Bn,z:function(Qn){var ar=-Qn.utcOffset(),hr=Math.abs(ar),sr=Math.floor(hr/60),Un=hr%60;return(ar<=0?"+":"-")+Bn(sr,2,"0")+":"+Bn(Un,2,"0")},m:function Qn(ar,hr){if(ar.date()<hr.date())return-Qn(hr,ar);var sr=12*(hr.year()-ar.year())+(hr.month()-ar.month()),Un=ar.clone().add(sr,y),Zn=hr-Un<0,Hn=ar.clone().add(sr+(Zn?-1:1),y);return+(-(sr+(hr-Un)/(Zn?Un-Hn:Hn-Un))||0)},a:function(Qn){return Qn<0?Math.ceil(Qn)||0:Math.floor(Qn)},p:function(Qn){return{M:y,y:Pn,w:g,d:m,D:x,h:p,m:v,s:h,ms:d,Q:b}[Qn]||String(Qn||"").toLowerCase().replace(/s$/,"")},u:function(Qn){return Qn===void 0}},vn="en",re={};re[vn]=Rn;var qn="$isDayjsObject",zn=function(Qn){return Qn instanceof tr||!(!Qn||!Qn[qn])},Yn=function Qn(ar,hr,sr){var Un;if(!ar)return vn;if(typeof ar=="string"){var Zn=ar.toLowerCase();re[Zn]&&(Un=Zn),hr&&(re[Zn]=hr,Un=Zn);var Hn=ar.split("-");if(!Un&&Hn.length>1)return Qn(Hn[0])}else{var Gn=ar.name;re[Gn]=ar,Un=Gn}return!sr&&Un&&(vn=Un),Un||!sr&&vn},Wn=function(Qn,ar){if(zn(Qn))return Qn.clone();var hr=typeof ar=="object"?ar:{};return hr.date=Qn,hr.args=arguments,new tr(hr)},Jn=w;Jn.l=Yn,Jn.i=zn,Jn.w=function(Qn,ar){return Wn(Qn,{locale:ar.$L,utc:ar.$u,x:ar.$x,$offset:ar.$offset})};var tr=function(){function Qn(hr){this.$L=Yn(hr.locale,null,!0),this.parse(hr),this.$x=this.$x||hr.x||{},this[qn]=!0}var ar=Qn.prototype;return ar.parse=function(hr){this.$d=function(sr){var Un=sr.date,Zn=sr.utc;if(Un===null)return new Date(NaN);if(Jn.u(Un))return new Date;if(Un instanceof Date)return new Date(Un);if(typeof Un=="string"&&!/Z$/i.test(Un)){var Hn=Un.match(J);if(Hn){var Gn=Hn[2]-1||0,ir=(Hn[7]||"0").substring(0,3);return Zn?new Date(Date.UTC(Hn[1],Gn,Hn[3]||1,Hn[4]||0,Hn[5]||0,Hn[6]||0,ir)):new Date(Hn[1],Gn,Hn[3]||1,Hn[4]||0,Hn[5]||0,Hn[6]||0,ir)}}return new Date(Un)}(hr),this.init()},ar.init=function(){var hr=this.$d;this.$y=hr.getFullYear(),this.$M=hr.getMonth(),this.$D=hr.getDate(),this.$W=hr.getDay(),this.$H=hr.getHours(),this.$m=hr.getMinutes(),this.$s=hr.getSeconds(),this.$ms=hr.getMilliseconds()},ar.$utils=function(){return Jn},ar.isValid=function(){return this.$d.toString()!==gn},ar.isSame=function(hr,sr){var Un=Wn(hr);return this.startOf(sr)<=Un&&Un<=this.endOf(sr)},ar.isAfter=function(hr,sr){return Wn(hr)<this.startOf(sr)},ar.isBefore=function(hr,sr){return this.endOf(sr)<Wn(hr)},ar.$g=function(hr,sr,Un){return Jn.u(hr)?this[sr]:this.set(Un,hr)},ar.unix=function(){return Math.floor(this.valueOf()/1e3)},ar.valueOf=function(){return this.$d.getTime()},ar.startOf=function(hr,sr){var Un=this,Zn=!!Jn.u(sr)||sr,Hn=Jn.p(hr),Gn=function(Xn,cr){var mr=Jn.w(Un.$u?Date.UTC(Un.$y,cr,Xn):new Date(Un.$y,cr,Xn),Un);return Zn?mr:mr.endOf(m)},ir=function(Xn,cr){return Jn.w(Un.toDate()[Xn].apply(Un.toDate("s"),(Zn?[0,0,0,0]:[23,59,59,999]).slice(cr)),Un)},Kn=this.$W,or=this.$M,dr=this.$D,nr="set"+(this.$u?"UTC":"");switch(Hn){case Pn:return Zn?Gn(1,0):Gn(31,11);case y:return Zn?Gn(1,or):Gn(0,or+1);case g:var lr=this.$locale().weekStart||0,fr=(Kn<lr?Kn+7:Kn)-lr;return Gn(Zn?dr-fr:dr+(6-fr),or);case m:case x:return ir(nr+"Hours",0);case p:return ir(nr+"Minutes",1);case v:return ir(nr+"Seconds",2);case h:return ir(nr+"Milliseconds",3);default:return this.clone()}},ar.endOf=function(hr){return this.startOf(hr,!1)},ar.$set=function(hr,sr){var Un,Zn=Jn.p(hr),Hn="set"+(this.$u?"UTC":""),Gn=(Un={},Un[m]=Hn+"Date",Un[x]=Hn+"Date",Un[y]=Hn+"Month",Un[Pn]=Hn+"FullYear",Un[p]=Hn+"Hours",Un[v]=Hn+"Minutes",Un[h]=Hn+"Seconds",Un[d]=Hn+"Milliseconds",Un)[Zn],ir=Zn===m?this.$D+(sr-this.$W):sr;if(Zn===y||Zn===Pn){var Kn=this.clone().set(x,1);Kn.$d[Gn](ir),Kn.init(),this.$d=Kn.set(x,Math.min(this.$D,Kn.daysInMonth())).$d}else Gn&&this.$d[Gn](ir);return this.init(),this},ar.set=function(hr,sr){return this.clone().$set(hr,sr)},ar.get=function(hr){return this[Jn.p(hr)]()},ar.add=function(hr,sr){var Un,Zn=this;hr=Number(hr);var Hn=Jn.p(sr),Gn=function(or){var dr=Wn(Zn);return Jn.w(dr.date(dr.date()+Math.round(or*hr)),Zn)};if(Hn===y)return this.set(y,this.$M+hr);if(Hn===Pn)return this.set(Pn,this.$y+hr);if(Hn===m)return Gn(1);if(Hn===g)return Gn(7);var ir=(Un={},Un[v]=u,Un[p]=f,Un[h]=c,Un)[Hn]||1,Kn=this.$d.getTime()+hr*ir;return Jn.w(Kn,this)},ar.subtract=function(hr,sr){return this.add(-1*hr,sr)},ar.format=function(hr){var sr=this,Un=this.$locale();if(!this.isValid())return Un.invalidDate||gn;var Zn=hr||"YYYY-MM-DDTHH:mm:ssZ",Hn=Jn.z(this),Gn=this.$H,ir=this.$m,Kn=this.$M,or=Un.weekdays,dr=Un.months,nr=Un.meridiem,lr=function(cr,mr,gr,yr){return cr&&(cr[mr]||cr(sr,Zn))||gr[mr].slice(0,yr)},fr=function(cr){return Jn.s(Gn%12||12,cr,"0")},Xn=nr||function(cr,mr,gr){var yr=cr<12?"AM":"PM";return gr?yr.toLowerCase():yr};return Zn.replace(j,function(cr,mr){return mr||function(gr){switch(gr){case"YY":return String(sr.$y).slice(-2);case"YYYY":return Jn.s(sr.$y,4,"0");case"M":return Kn+1;case"MM":return Jn.s(Kn+1,2,"0");case"MMM":return lr(Un.monthsShort,Kn,dr,3);case"MMMM":return lr(dr,Kn);case"D":return sr.$D;case"DD":return Jn.s(sr.$D,2,"0");case"d":return String(sr.$W);case"dd":return lr(Un.weekdaysMin,sr.$W,or,2);case"ddd":return lr(Un.weekdaysShort,sr.$W,or,3);case"dddd":return or[sr.$W];case"H":return String(Gn);case"HH":return Jn.s(Gn,2,"0");case"h":return fr(1);case"hh":return fr(2);case"a":return Xn(Gn,ir,!0);case"A":return Xn(Gn,ir,!1);case"m":return String(ir);case"mm":return Jn.s(ir,2,"0");case"s":return String(sr.$s);case"ss":return Jn.s(sr.$s,2,"0");case"SSS":return Jn.s(sr.$ms,3,"0");case"Z":return Hn}return null}(cr)||Hn.replace(":","")})},ar.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},ar.diff=function(hr,sr,Un){var Zn,Hn=this,Gn=Jn.p(sr),ir=Wn(hr),Kn=(ir.utcOffset()-this.utcOffset())*u,or=this-ir,dr=function(){return Jn.m(Hn,ir)};switch(Gn){case Pn:Zn=dr()/12;break;case y:Zn=dr();break;case b:Zn=dr()/3;break;case g:Zn=(or-Kn)/6048e5;break;case m:Zn=(or-Kn)/864e5;break;case p:Zn=or/f;break;case v:Zn=or/u;break;case h:Zn=or/c;break;default:Zn=or}return Un?Zn:Jn.a(Zn)},ar.daysInMonth=function(){return this.endOf(y).$D},ar.$locale=function(){return re[this.$L]},ar.locale=function(hr,sr){if(!hr)return this.$L;var Un=this.clone(),Zn=Yn(hr,sr,!0);return Zn&&(Un.$L=Zn),Un},ar.clone=function(){return Jn.w(this.$d,this)},ar.toDate=function(){return new Date(this.valueOf())},ar.toJSON=function(){return this.isValid()?this.toISOString():null},ar.toISOString=function(){return this.$d.toISOString()},ar.toString=function(){return this.$d.toUTCString()},Qn}(),er=tr.prototype;return Wn.prototype=er,[["$ms",d],["$s",h],["$m",v],["$H",p],["$W",m],["$M",y],["$y",Pn],["$D",x]].forEach(function(Qn){er[Qn[1]]=function(ar){return this.$g(ar,Qn[0],Qn[1])}}),Wn.extend=function(Qn,ar){return Qn.$i||(Qn(ar,tr,Wn),Qn.$i=!0),Wn},Wn.locale=Yn,Wn.isDayjs=zn,Wn.unix=function(Qn){return Wn(1e3*Qn)},Wn.en=re[vn],Wn.Ls=re,Wn.p={},Wn}()),le.exports}var ce=ie(se()),ue=typeof global=="object"&&global&&global.Object===Object&&global,de=typeof self=="object"&&self&&self.Object===Object&&self,fe=ue||de||Function("return this")(),pe=fe.Symbol,he=Object.prototype,ye=he.hasOwnProperty,me=he.toString,be=pe?pe.toStringTag:void 0,ge=Object.prototype.toString,ve=pe?pe.toStringTag:void 0;function xe(c){return c==null?c===void 0?"[object Undefined]":"[object Null]":ve&&ve in Object(c)?function(u){var f=ye.call(u,be),d=u[be];try{u[be]=void 0;var h=!0}catch{}var v=me.call(u);return h&&(f?u[be]=d:delete u[be]),v}(c):function(u){return ge.call(u)}(c)}function we(c){return c!=null&&typeof c=="object"}var Se=Array.isArray;function Ae(c){var u=typeof c;return c!=null&&(u=="object"||u=="function")}function _e(c){if(!Ae(c))return!1;var u=xe(c);return u=="[object Function]"||u=="[object GeneratorFunction]"||u=="[object AsyncFunction]"||u=="[object Proxy]"}var je,Oe=fe["__core-js_shared__"],Ce=(je=/[^.]+$/.exec(Oe&&Oe.keys&&Oe.keys.IE_PROTO||""))?"Symbol(src)_1."+je:"",Le=Function.prototype.toString;function Te(c){if(c!=null){try{return Le.call(c)}catch{}try{return c+""}catch{}}return""}var Ne=/^\[object .+?Constructor\]$/,$e=Function.prototype,ke=Object.prototype,De=$e.toString,Me=ke.hasOwnProperty,Ee=RegExp("^"+De.call(Me).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Ie(c){return!(!Ae(c)||(u=c,Ce&&Ce in u))&&(_e(c)?Ee:Ne).test(Te(c));var u}function Ve(c,u){var f=function(d,h){return d==null?void 0:d[h]}(c,u);return Ie(f)?f:void 0}var Fe=Ve(fe,"WeakMap"),ze=Object.create,Re=function(){function c(){}return function(u){if(!Ae(u))return{};if(ze)return ze(u);c.prototype=u;var f=new c;return c.prototype=void 0,f}}(),Ue=function(){try{var c=Ve(Object,"defineProperty");return c({},"",{}),c}catch{}}(),Pe=/^(?:0|[1-9]\d*)$/;function Ge(c,u){var f=typeof c;return!!(u=u??9007199254740991)&&(f=="number"||f!="symbol"&&Pe.test(c))&&c>-1&&c%1==0&&c<u}function Ye(c,u){return c===u||c!=c&&u!=u}var We=Object.prototype.hasOwnProperty;function He(c,u,f){var d=c[u];We.call(c,u)&&Ye(d,f)&&(f!==void 0||u in c)||function(h,v,p){v=="__proto__"&&Ue?Ue(h,v,{configurable:!0,enumerable:!0,value:p,writable:!0}):h[v]=p}(c,u,f)}function Be(c){return typeof c=="number"&&c>-1&&c%1==0&&c<=9007199254740991}var Ke=Object.prototype;function qe(c){var u=c&&c.constructor;return c===(typeof u=="function"&&u.prototype||Ke)}function Qe(c){return we(c)&&xe(c)=="[object Arguments]"}var Je=Object.prototype,Xe=Je.hasOwnProperty,Ze=Je.propertyIsEnumerable,et=Qe(function(){return arguments}())?Qe:function(c){return we(c)&&Xe.call(c,"callee")&&!Ze.call(c,"callee")},tt=typeof exports=="object"&&exports&&!exports.nodeType&&exports,nt=tt&&typeof module=="object"&&module&&!module.nodeType&&module,ot=nt&&nt.exports===tt?fe.Buffer:void 0,rt=(ot?ot.isBuffer:void 0)||function(){return!1},it={};function at(c){return function(u){return c(u)}}it["[object Float32Array]"]=it["[object Float64Array]"]=it["[object Int8Array]"]=it["[object Int16Array]"]=it["[object Int32Array]"]=it["[object Uint8Array]"]=it["[object Uint8ClampedArray]"]=it["[object Uint16Array]"]=it["[object Uint32Array]"]=!0,it["[object Arguments]"]=it["[object Array]"]=it["[object ArrayBuffer]"]=it["[object Boolean]"]=it["[object DataView]"]=it["[object Date]"]=it["[object Error]"]=it["[object Function]"]=it["[object Map]"]=it["[object Number]"]=it["[object Object]"]=it["[object RegExp]"]=it["[object Set]"]=it["[object String]"]=it["[object WeakMap]"]=!1;var lt=typeof exports=="object"&&exports&&!exports.nodeType&&exports,st=lt&&typeof module=="object"&&module&&!module.nodeType&&module,ct=st&&st.exports===lt&&ue.process,ut=function(){try{var c=st&&st.require&&st.require("util").types;return c||ct&&ct.binding&&ct.binding("util")}catch{}}(),dt=ut&&ut.isTypedArray,ft=dt?at(dt):function(c){return we(c)&&Be(c.length)&&!!it[xe(c)]},pt=Object.prototype.hasOwnProperty;function ht(c,u){var f=Se(c),d=!f&&et(c),h=!f&&!d&&rt(c),v=!f&&!d&&!h&&ft(c),p=f||d||h||v,m=p?function(b,Pn){for(var x=-1,gn=Array(b);++x<b;)gn[x]=Pn(x);return gn}(c.length,String):[],g=m.length;for(var y in c)!pt.call(c,y)||p&&(y=="length"||h&&(y=="offset"||y=="parent")||v&&(y=="buffer"||y=="byteLength"||y=="byteOffset")||Ge(y,g))||m.push(y);return m}function yt(c,u){return function(f){return c(u(f))}}var mt=yt(Object.keys,Object),bt=Object.prototype.hasOwnProperty;function gt(c){return(u=c)!=null&&Be(u.length)&&!_e(u)?ht(c):function(f){if(!qe(f))return mt(f);var d=[];for(var h in Object(f))bt.call(f,h)&&h!="constructor"&&d.push(h);return d}(c);var u}var vt=Ve(Object,"create"),xt=Object.prototype.hasOwnProperty,wt=Object.prototype.hasOwnProperty;function St(c){var u=-1,f=c==null?0:c.length;for(this.clear();++u<f;){var d=c[u];this.set(d[0],d[1])}}function At(c,u){for(var f=c.length;f--;)if(Ye(c[f][0],u))return f;return-1}St.prototype.clear=function(){this.__data__=vt?vt(null):{},this.size=0},St.prototype.delete=function(c){var u=this.has(c)&&delete this.__data__[c];return this.size-=u?1:0,u},St.prototype.get=function(c){var u=this.__data__;if(vt){var f=u[c];return f==="__lodash_hash_undefined__"?void 0:f}return xt.call(u,c)?u[c]:void 0},St.prototype.has=function(c){var u=this.__data__;return vt?u[c]!==void 0:wt.call(u,c)},St.prototype.set=function(c,u){var f=this.__data__;return this.size+=this.has(c)?0:1,f[c]=vt&&u===void 0?"__lodash_hash_undefined__":u,this};var _t=Array.prototype.splice;function jt(c){var u=-1,f=c==null?0:c.length;for(this.clear();++u<f;){var d=c[u];this.set(d[0],d[1])}}jt.prototype.clear=function(){this.__data__=[],this.size=0},jt.prototype.delete=function(c){var u=this.__data__,f=At(u,c);return!(f<0)&&(f==u.length-1?u.pop():_t.call(u,f,1),--this.size,!0)},jt.prototype.get=function(c){var u=this.__data__,f=At(u,c);return f<0?void 0:u[f][1]},jt.prototype.has=function(c){return At(this.__data__,c)>-1},jt.prototype.set=function(c,u){var f=this.__data__,d=At(f,c);return d<0?(++this.size,f.push([c,u])):f[d][1]=u,this};var Ot=Ve(fe,"Map");function Ct(c,u){var f,d,h=c.__data__;return((d=typeof(f=u))=="string"||d=="number"||d=="symbol"||d=="boolean"?f!=="__proto__":f===null)?h[typeof u=="string"?"string":"hash"]:h.map}function Lt(c){var u=-1,f=c==null?0:c.length;for(this.clear();++u<f;){var d=c[u];this.set(d[0],d[1])}}Lt.prototype.clear=function(){this.size=0,this.__data__={hash:new St,map:new(Ot||jt),string:new St}},Lt.prototype.delete=function(c){var u=Ct(this,c).delete(c);return this.size-=u?1:0,u},Lt.prototype.get=function(c){return Ct(this,c).get(c)},Lt.prototype.has=function(c){return Ct(this,c).has(c)},Lt.prototype.set=function(c,u){var f=Ct(this,c),d=f.size;return f.set(c,u),this.size+=f.size==d?0:1,this};var Tt=yt(Object.getPrototypeOf,Object);function Nt(c){var u=this.__data__=new jt(c);this.size=u.size}Nt.prototype.clear=function(){this.__data__=new jt,this.size=0},Nt.prototype.delete=function(c){var u=this.__data__,f=u.delete(c);return this.size=u.size,f},Nt.prototype.get=function(c){return this.__data__.get(c)},Nt.prototype.has=function(c){return this.__data__.has(c)},Nt.prototype.set=function(c,u){var f=this.__data__;if(f instanceof jt){var d=f.__data__;if(!Ot||d.length<199)return d.push([c,u]),this.size=++f.size,this;f=this.__data__=new Lt(d)}return f.set(c,u),this.size=f.size,this};var $t=Object.prototype.propertyIsEnumerable,kt=Object.getOwnPropertySymbols,Dt=kt?function(c){return c==null?[]:(c=Object(c),function(u,f){for(var d=-1,h=u==null?0:u.length,v=0,p=[];++d<h;){var m=u[d];f(m,d,u)&&(p[v++]=m)}return p}(kt(c),function(u){return $t.call(c,u)}))}:function(){return[]};function Mt(c){return function(u,f,d){var h=f(u);return Se(u)?h:function(v,p){for(var m=-1,g=p.length,y=v.length;++m<g;)v[y+m]=p[m];return v}(h,d(u))}(c,gt,Dt)}var Et=Ve(fe,"DataView"),It=Ve(fe,"Promise"),Vt=Ve(fe,"Set"),Ft="[object Map]",zt="[object Promise]",Rt="[object Set]",Ut="[object WeakMap]",Pt="[object DataView]",Gt=Te(Et),Yt=Te(Ot),Wt=Te(It),Ht=Te(Vt),Bt=Te(Fe),Kt=xe;(Et&&Kt(new Et(new ArrayBuffer(1)))!=Pt||Ot&&Kt(new Ot)!=Ft||It&&Kt(It.resolve())!=zt||Vt&&Kt(new Vt)!=Rt||Fe&&Kt(new Fe)!=Ut)&&(Kt=function(c){var u=xe(c),f=u=="[object Object]"?c.constructor:void 0,d=f?Te(f):"";if(d)switch(d){case Gt:return Pt;case Yt:return Ft;case Wt:return zt;case Ht:return Rt;case Bt:return Ut}return u});var qt=Object.prototype.hasOwnProperty,Qt=fe.Uint8Array;function Jt(c){var u=new c.constructor(c.byteLength);return new Qt(u).set(new Qt(c)),u}var Xt=/\w*$/,Zt=pe?pe.prototype:void 0,en=Zt?Zt.valueOf:void 0;function tn(c,u,f){var d,h,v,p,m,g=c.constructor;switch(u){case"[object ArrayBuffer]":return Jt(c);case"[object Boolean]":case"[object Date]":return new g(+c);case"[object DataView]":return m=Jt((p=c).buffer),new p.constructor(m,p.byteOffset,p.byteLength);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return function(y){var b=Jt(y.buffer);return new y.constructor(b,y.byteOffset,y.length)}(c);case"[object Map]":case"[object Set]":return new g;case"[object Number]":case"[object String]":return new g(c);case"[object RegExp]":return(v=new(h=c).constructor(h.source,Xt.exec(h))).lastIndex=h.lastIndex,v;case"[object Symbol]":return d=c,en?Object(en.call(d)):{}}}var nn=ut&&ut.isMap,on=nn?at(nn):function(c){return we(c)&&Kt(c)=="[object Map]"},rn=ut&&ut.isSet,an=rn?at(rn):function(c){return we(c)&&Kt(c)=="[object Set]"},ln="[object Arguments]",sn="[object Function]",cn="[object Object]",un={};function dn(c,u,f,d,h,v){var p;if(p!==void 0)return p;if(!Ae(c))return c;var m=Se(c);if(m)p=function(x){var gn=x.length,J=new x.constructor(gn);return gn&&typeof x[0]=="string"&&qt.call(x,"index")&&(J.index=x.index,J.input=x.input),J}(c);else{var g=Kt(c),y=g==sn||g=="[object GeneratorFunction]";if(rt(c))return c.slice();if(g==cn||g==ln||y&&!h)p=y?{}:function(x){return typeof x.constructor!="function"||qe(x)?{}:Re(Tt(x))}(c);else{if(!un[g])return h?c:{};p=tn(c,g)}}v||(v=new Nt);var b=v.get(c);if(b)return b;v.set(c,p),an(c)?c.forEach(function(x){p.add(dn(x,u,f,x,c,v))}):on(c)&&c.forEach(function(x,gn){p.set(gn,dn(x,u,f,gn,c,v))});var Pn=m?void 0:Mt(c);return function(x,gn){for(var J=-1,j=x==null?0:x.length;++J<j&&gn(x[J],J,x)!==!1;);}(Pn||c,function(x,gn){Pn&&(x=c[gn=x]),He(p,gn,dn(x,u,f,gn,c,v))}),p}un[ln]=un["[object Array]"]=un["[object ArrayBuffer]"]=un["[object DataView]"]=un["[object Boolean]"]=un["[object Date]"]=un["[object Float32Array]"]=un["[object Float64Array]"]=un["[object Int8Array]"]=un["[object Int16Array]"]=un["[object Int32Array]"]=un["[object Map]"]=un["[object Number]"]=un[cn]=un["[object RegExp]"]=un["[object Set]"]=un["[object String]"]=un["[object Symbol]"]=un["[object Uint8Array]"]=un["[object Uint8ClampedArray]"]=un["[object Uint16Array]"]=un["[object Uint32Array]"]=!0,un["[object Error]"]=un[sn]=un["[object WeakMap]"]=!1;function fn(c){return dn(c,5)}const pn=(c,u)=>{const f=Object.assign({dayjs:ce},u);let d="";const h=[];for(const m in f)d+=`${m},`,h.push(f[m]);d=d.replace(/,$/,"");const v=`function (${d}){return ${c}}`;let p;try{p=Function(`"use strict";return (${v})`)()(...h)}catch{return c}return p},hn=(c="",{textData:u,codeData:f}={},{useNewline:d=!1,useSpace:h=!1}={})=>{const v=window.config||{},p=Object.assign(Object.assign({},v),u),m=String(c||"").match(/\{(.+?)\}/g);if(m==null||m.length===0)return c;for(let g=0;g<m.length;g++){const y=m[g];let b=y.slice(1,-1).trim();const Pn=/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,x=b.match(Pn);for(let gn=0;gn<x.length;gn++){const J=x[gn],j=p[J];j!=null&&typeof j!="function"&&(b=b.replace(J,j))}(/\(.*\)/g.test(b)||/[+/\\*]/g.test(b))&&(b=pn(b,f)),c=c.replace(y,b)}return d&&(c=c==null?void 0:c.replace(/\n|\\n/g,"<br/>")),h&&(c=c==null?void 0:c.replace(/\s{2,}?/g,"&nbsp;&nbsp;")),c=c.replace(/Qfw\((.*?)\)/,(g,y)=>u!=null&&u.Qfw?u==null?void 0:u.Qfw(y):y)},yn=(c,u)=>{if(typeof c=="string"&&typeof u=="string")return c.toLocaleLowerCase().includes(u.toLocaleLowerCase());if(typeof c=="string"&&Array.isArray(u)){const f=u.length;for(let d=0;d<f;d++){const h=u[d];if(typeof h=="string"&&c.toLocaleLowerCase().includes(h.toLocaleLowerCase()))return!0}}return!1},mn=(c,u)=>Object.prototype.hasOwnProperty.call(c,u),bn=c=>{const u=[];for(const f of c)f.conditions?u.push(...bn(f.conditions)):(f==null?void 0:f.dataType)==="component"&&u.push(f);return u},xn=["table","bar","combograph","line","pie","radar","scatter","list","circulate"];let wn=new Map,Sn=[];const An=["keyValue","conditionKey","conditionLabel","conditionName","conditionValueType","customValue","id","keyName"],_n=c=>wn.get(c),jn=(c,u)=>{if(u)mn(c,"indexCode")&&(c.hrpIndexCode=c.indexCode,delete c.indexCode),mn(c,"indexCodeNum")&&(c.hrpIndexCodeNum=c.indexCodeNum,delete c.indexCodeNum),mn(c,"dataType")&&delete c.dataType,c.fieldValue||delete c.fieldValue;else{const{calcWays:f=[],dateCalcTypes:d=[],activeKey:h,componentId:v=""}=c;if(h===5&&(f!=null&&f.length)&&(d!=null&&d.length)&&v){const p=f[0].split("-");(p==null?void 0:p.length)>1&&p[0]==="rangeValue"&&(c.calcWays=((m,g={})=>{const{around:y,unit:b,id:Pn}=m;let x="";const{pageMode:gn="",componentList:J=[]}=(g==null?void 0:g.graphicConfig)||{};let j=null,Rn=null;if(gn==="design"){const Bn=J==null?void 0:J.find(Wn=>Wn.id===Pn);if(!Bn)return[];const{interval:w,intervalUnit:vn,startTime:re,endTime:qn,operate:zn,useCurrentTime:Yn}=Bn||{};if(Yn&&(j=ce().subtract(w,vn),Rn=ce()),re&&(j=ce(re)),qn&&(Rn=ce(qn)),zn){const{type:Wn,value:Jn,mode:tr}=zn;switch(Wn){case"add":j=j&&j.add(Jn,tr),Rn=Rn&&Rn.add(Jn,tr);break;case"minus":j=j&&j.subtract(Jn,tr),Rn=Rn&&Rn.subtract(Jn,tr)}}}else{const Bn=_n(Pn)||{};_(Bn.startTime)&&(j=ce(_(Bn.startTime))),_(Bn.endTime)&&(Rn=ce(_(Bn.endTime)))}return j&&Rn&&(x=`${y==="before"?"-":""}${Rn.diff(j,b.toLowerCase())+1}`),x?[x]:[]})({around:p[1],unit:d[0],id:v})),delete c.radioValue}if(mn(c,"dataType")){if(c.fieldType==="DATE"&&(c.label=c.fieldName),c.dataType==="component")if(c.fieldValue==="PARENT"){let p=c.modelKey;p&&c.prop&&(p+=`-${c.prop}`),c.fieldValue="${"+p+"}"}else c.fieldValue="${"+c.fieldValue+"}";delete c.dataType}mn(c,"activeKey")&&delete c.activeKey,mn(c,"radioValue")&&delete c.radioValue,mn(c,"indexCode")&&(c.hrpIndexCode=c.indexCode,delete c.indexCode),mn(c,"indexCodeNum")&&(c.hrpIndexCodeNum=c.indexCodeNum,delete c.indexCodeNum),c.dataType!=="component"&&c.useCurrentTime&&(c.fieldValue=ce().format(c.dateFormat)),mn(c,"modelKey")&&delete c.modelKey,mn(c,"prop")&&delete c.prop,delete c.useCurrentTime}},On=(c,u)=>{const f=[];return c!=null&&c.length&&fn(c).forEach(d=>{if(d.join&&d.conditions){const h=!d.conditions.some(v=>v.join&&v.conditions);d.conditions.forEach((v,p)=>{jn(v,u);const m={};if(p<d.conditions.length-1&&(m.join=d.join),h)f.push(Object.assign(Object.assign({},m),v));else if(v.join&&v.conditions){const g=u?"sqlConditions":"conditions";f.push(Object.assign({[g]:On([v],u)},m))}else f.push(Object.assign(Object.assign({},m),v))})}else jn(d,u),f.push(d)}),f},Cn=(c={},u)=>{if(c!=null&&c.sortCpnts&&u){const qn=Mn(c);qn&&(u.sort=qn)}const{label:f,name:d,location:h,show:v,indexCode:p,indexCodeNum:m,calcType:g="COLUMN",builtInFormula:y,builtInValueSource:b,builtInCalcWay:Pn,formula:x,conditions:gn,aggregate:J,distinct:j,dimByCount:Rn,dataTo:Bn,sort:w}=c;let vn;if(gn&&(vn=On(gn)),g==="COMPONENT"){const qn={};return kn(qn,b),{label:f.trim(),columnName:d,show:v,calcType:g,componentAlias:Pn,componentValue:qn.fieldValue||null}}const re={label:f.trim(),columnName:d,location:h,show:v,calcType:Bn==="1"?"VIEW":g,hrpIndexCode:p,hrpIndexCodeNum:m,aggregate:J,builtInFormula:y,builtInValueSource:b,formula:x,conditions:vn};if(w&&(re.sort={columnName:d,label:re.label,order:w,type:"NORMAL"}),y!=="DATE_OFFSET")return d==="the_count"&&(re.calcType="AGGREGATE",re.distinct=!!j,re.typeGuid=Rn),Object.assign(Object.assign({},re),{builtInCalcWay:Pn});{const qn=Pn.split("-");if((qn==null?void 0:qn.length)===3){let zn=qn[0];return qn[2]==="before"&&qn[0]!=="0"&&(zn=`-${qn[0]}`),Object.assign(Object.assign({},re),{calcWays:[zn],dateCalcTypes:[qn[1]]})}}},Ln=(c,u)=>{const f=Sn.find(h=>h.id===c),{keyName:d}=f||{};if(d){const h=/-(startTime|endTime)/g,v=u.match(h);return v!=null&&v.length?`${d}${v[0]}`:d}return u||""},Tn=c=>{if(!c)return[];const u=fn((c==null?void 0:c.controlList)||[]).filter(j=>j.conditionKey!=="parentCode"),{classificationList:f=[],rowHeaderList:d=[],dimensionList:h=[],seriesList:v=[],leftAxisList:p=[],rightAxisList:m=[],queryColumnList:g=[],indexLibColumns:y=[],indicators:b=[]}=c;$n(u);const Pn=[...f,...d,...h,...v,...p,...m,...g,...y,...b],x=[];for(const j of Pn){const Rn=bn((j==null?void 0:j.conditions)||[]);if(Rn!=null&&Rn.length){const Bn=Rn.filter(w=>(w==null?void 0:w.dataType)==="component").map(w=>{const vn={};return w!=null&&w.dateFormat&&(vn.format=w.dateFormat),w.fieldValue==="PARENT"&&(vn.id="PARENT",vn.keyName=w.modelKey,vn.modelKey=w.modelKey,vn.prop=w.prop),Object.assign({conditionKey:w.fieldName,conditionLabel:w.fieldName,conditionName:w.fieldName,conditionValueType:w.fieldType,id:w.componentId,keyName:w.fieldValue,rule:w.rule,notGlobal:!0,indexCode:w.indexCode,typeGuid:w.typeGuid,indexCodeNum:w.indexCodeNum},vn)});if(Bn!=null&&Bn.length)for(const w of Bn)x.find(vn=>vn.id===w.id)||x.push(w)}}const gn=x.length,J=u;for(let j=0;j<gn;j++){const Rn=x[j];if((Rn==null?void 0:Rn.conditionKey)==="parentCode")continue;const{id:Bn,keyName:w,prop:vn,format:re,modelKey:qn,dataType:zn="component",customValue:Yn}=Rn,Wn=Ln(Bn,w),Jn=Nn(Rn);kn(Jn,Bn,{prop:vn,dateFormat:re,modelKey:qn,keyName:Wn}),zn===""&&(Jn.fieldValue=Yn||""),J.push(Jn)}for(let j=J.length-1;j>=0;j--){const Rn=J[j];Rn.globalCondition||bn(J).find(Bn=>Bn.alias===Rn.alias&&Bn.globalCondition)&&J.splice(j,1)}return J};function Nn(c){const{id:u,keyName:f,conditionLabel:d,conditionKey:h,conditionValueType:v,prop:p,rule:m="NONE",notGlobal:g=!1,indexCode:y,typeGuid:b,indexCodeNum:Pn,dataType:x="component"}=c,gn=Ln(u,f);let J=gn||u;J&&p&&(J+=`-${p}`);let j=m;return j==="NONE"&&(j=["startTime","endTime"].includes(p)?p==="startTime"?"GREATER_EQUAL":"LESS_EQUAL":gn!=null&&gn.includes("startTime")?p==="GREATER_EQUAL":gn!=null&&gn.includes("endTime")?p==="LESS_EQUAL":"EQUAL"),u==="PARENT"&&(J=c.modelKey,J&&p&&(J+=`-${p}`),j=m),{rule:j,label:d,fieldName:h,fieldValue:"",valueType:v,alias:J,globalCondition:!g,indexCode:y,typeGuid:b,indexCodeNum:Pn,dataType:x}}function $n(c){if(c!=null&&c.length)for(const u of c)if(u!=null&&u.conditions)$n(u.conditions);else{const{id:f,keyName:d,prop:h,modelKey:v,format:p,dataType:m="component",customValue:g}=u,y=Ln(f,d),b=Nn(u);kn(b,f,{prop:h,dateFormat:p,modelKey:v,keyName:y}),m===""&&(b.fieldValue=g||"");for(const Pn in b)u[Pn]=b[Pn];for(const Pn of An)delete u[Pn]}}function kn(c,u,f){const{prop:d="",dateFormat:h="",modelKey:v="",keyName:p="",operateValue:m,operateMode:g,operateType:y}=f||{},b=v||p;if(u==="PARENT"&&b&&d){const w=window.config.record;let vn=d,re=h;const qn=d.match(/\{(.+?)\}/g);if(qn!=null&&qn.length){const zn=qn[0].slice(1,-1).trim();vn=d.replace(qn[0],""),re=zn,c.dateFormat=re}if(w&&w[b]){const zn=_(w[b][vn]);ce.isDayjs(zn)?c.fieldValue=zn.format(re||"YYYY-MM-DD"):c.fieldValue=zn}return}const Pn=_n(u)||{},{value:x,format:gn="YYYY-MM-DD",type:J="",useCurrentTime:j,RECORD:Rn}=Pn||{},Bn=h||gn;if(yn(J,"date")){let w;if(w=j?x?_(x):ce():_(x),typeof w=="string"&&(w=ce(w)),m&&g&&y)switch(y){case"add":w=w.add(m,g);break;case"minus":w=w.subtract(m,g)}c.fieldValue=w==null?void 0:w.format(Bn),c.dateFormat=Bn}else if(yn(J,"rangepicker")){let w=d;if(!d){const re=p&&p.split("-");re!=null&&re.length&&(w=re[re.length-1])}if(!w)return;let vn=null;if(_(Pn[w])&&(vn=ce(_(Pn[w]))),m&&g&&y){if(m==="rangeValue"){if(Pn.startTime&&Pn.endTime){const re=_(Pn.endTime).diff(_(Pn.startTime),g)+1;switch(y){case"add":vn=vn&&vn.add(re,g);break;case"minus":vn=vn&&vn.subtract(re,g)}}}else if(!isNaN(+m))switch(y){case"add":vn=vn&&vn.add(m,g);break;case"minus":vn=vn&&vn.subtract(m,g)}}if(vn&&(c.fieldValue=vn==null?void 0:vn.format(Bn)),w==="rangeValue"&&Pn.startTime&&Pn.endTime){const re=function(qn){const zn=qn.split("-");let Yn="";if(zn!=null&&zn.length)switch(zn[zn.length-1]){case"YYYY":Yn="year";break;case"MM":Yn="month";break;case"DD":Yn="day"}return Yn}(Bn);re&&(c.fieldValue=_(Pn.endTime).diff(_(Pn.startTime),re)+1)}c.dateFormat=Bn}else yn(J,xn)?c.fieldValue=v&&Rn?Rn[v]:!v&&Rn?Rn.value:_(x):yn(J,"select")&&Array.isArray(_(x))?c.fieldValue=_(x).join(","):c.fieldValue=_(x)}const Dn=c=>{var u;if(c){const f=Array.isArray(c)?fn(c):[fn(c)];let d="",h=[];const v=[],p=[],m=[];for(const g of f){if(g.defaultCode&&(g.label=g.columnName,delete g.defaultCode),g.type==="CUSTOM"&&(h=g.customOrderColumns),d=g.type,v.push(g.label),(u=g.columnName)===null||u===void 0?void 0:u.includes("_ecanrepeat_")){const y=g.columnName.split("_ecanrepeat_");p.push(y[0])}else p.push(g.columnName);m.push(g.order)}return d!=="CUSTOM"&&(v==null?void 0:v.length)>1&&(d="COMBINATION"),d==="CUSTOM"?{label:v.join(","),columnName:p.join(","),type:d,customOrderColumns:h}:{label:v.join(","),columnName:p.join(","),order:m.join(","),type:d}}return c},Mn=c=>{const{sortCpnts:u=[]}=c;let f,d="";for(const h of u){const v=_n(h)||{},{type:p,RECORD:m}=v;if(yn(p,"image")&&yn(m==null?void 0:m.value,["asc","desc"])){d=m.value.toUpperCase();break}}return d&&(f={label:c.label,columnName:c.name,order:d,type:"NORMAL"}),f},En=(c,u={})=>{var f,d,h,v,p,m,g,y;const{graphicConfig:b,type:Pn,globalModel:x,isGroupTable:gn=!1,allComponentList:J}=c;x&&(wn=x),J!=null&&J.length&&(Sn=J);const j=yn(Pn,"pivottable");let Rn,{source:Bn,dataViewId:w,plugin:vn="1",layer:re,chartType:qn,classificationList:zn=[],rowHeaderList:Yn=[],dimensionList:Wn=[],seriesList:Jn=[],leftAxisList:tr=[],rightAxisList:er=[],queryColumnList:Qn=[],indexLibColumns:ar=[],indicators:hr=[],controlList:sr=[],formFields:Un={},variableList:Zn=[],variableConditions:Hn=[],dataSourceId:Gn="",idxLibMode:ir,preview:Kn=!1,edvDataSetId:or,compositeIndicator:dr}=b||{},nr=[];if((b==null?void 0:b.pageMode)==="design"?(nr=((f=b.sqlConditions)!==null&&f!==void 0?f:[]).map(vr=>{const Sr={};if(mn(vr,"globalCondition")||vr.join||(Sr.globalCondition=!0),!vr.join){const Cr=vr.rule||"EQUAL";Sr.rule=Cr==="NONE"?"EQUAL":Cr}return Object.assign(Object.assign({},vr),Sr)}),Hn!=null&&Hn.length&&(nr=nr.concat(Hn))):(nr=Tn(b),Zn!=null&&Zn.length&&(nr=nr.concat(function(vr){const Sr=[];if(vr!=null&&vr.length){for(const Cr of vr)if(Cr.variableName){const Tr=Ln(Cr.id,Cr.keyName),Er={variateName:Cr.variableName,globalCondition:!1,valueType:Cr.variableType,alias:Tr||""};kn(Er,Cr.id,{dateFormat:Cr.format,prop:Cr.dateTypeValue,keyName:Tr,operateType:Cr.operateType,operateMode:Cr.operateMode,operateValue:Cr.operateValue}),Cr.dataType===""&&(Er.fieldValue=Cr.variableValue),Cr.format&&(Er.dateFormat=Cr.format),Cr.label&&(Er.label=Cr.label),Sr.push(Er)}}return Sr}(Zn)))),nr==null?void 0:nr.length){const vr=nr.filter(Cr=>Cr.globalCondition),Sr=nr.filter(Cr=>!Cr.globalCondition);(vr==null?void 0:vr.length)>1&&(nr=[{join:"&&",conditions:vr},...Sr])}nr!=null&&nr.length&&(nr=On(nr,"1")),re==null&&(re=yn(Pn,["table","card"])||yn(Pn,["list","circulate"])&&(zn==null?void 0:zn.length)>1?"1":yn(Pn,["select","checkbox","radio"])?"3":yn(Pn,["indexPanel"])?"4":"2"),yn(Pn,["indexPanel"])&&(vn="3");const lr=[];let fr,Xn="";if(Array.isArray(zn)&&zn.length>0&&(!["ecanList","ecanCirculate"].includes(Pn)||(zn==null?void 0:zn.length)===1)){const vr=zn.length;for(let Sr=0;Sr<vr;Sr++){const Cr=zn[Sr]||{},{label:Tr="",name:Er="",show:Mr=!1,sort:Br,customGroup:Kr,conditions:Lr,dateFormat:Nr,typeGuid:qr="",truncations:Wr=[]}=Cr;if(Mr||vr===1){Xn=qr,Rn={label:Tr.trim(),columnName:Er,show:Mr,sort:Mn(Cr)||Dn(Br)||Br,customGroup:Kr,conditions:On(Lr),typeGuid:qr},Nr&&(Rn.dateFormat=Nr),Er!=="the_date"||Rn.dateFormat||(Rn.dateFormat="YYYY-MM-DD");const Ur={};if(Array.isArray(Wr)&&Wr.length>0){const Xr=Wr.length;for(let ri=0;ri<Xr;ri++){const ei=Wr[ri]||{},{rule:ui="",num:ii=0,name:pi=""}=ei;ui&&ii&&(Ur.num=ii,Ur.rule=ui,pi&&(Ur.otherGroupName=pi))}}if(!((d=Object.keys(Ur))===null||d===void 0)&&d.length&&(Rn.truncation=Ur),!yn(Pn,["scatter","valueline"]))break;lr.push(Rn)}}}if(Array.isArray(Jn)&&Jn.length>0){const vr=Jn.length;for(let Sr=0;Sr<vr;Sr++){const Cr=Jn[Sr]||{},{label:Tr="",name:Er="",show:Mr=!1,sort:Br,customGroup:Kr,conditions:Lr,typeGuid:Nr,dateFormat:qr=""}=Cr;if(Mr||vr===1){fr={label:Tr.trim(),columnName:Er,show:Mr,sort:Dn(Br),customGroup:Kr,conditions:On(Lr),typeGuid:Nr},qr?fr.dateFormat=qr:Er==="the_date"&&(fr.dateFormat="YYYY-MM-DD");break}}}const cr=[];tr==null||tr.forEach(vr=>{vr.location="LEFT",cr.push(Cn(vr,Rn))}),er==null||er.forEach(vr=>{vr.location="RIGHT",cr.push(Cn(vr,Rn))});let mr=hr;u!=null&&u.pivotTableCal&&(mr=((h=u.pivotTableCal)===null||h===void 0?void 0:h.indicators)||[]),mr==null||mr.forEach(vr=>{vr.location="LEFT",cr.push(Cn(vr,Rn))});const gr=[];["ecanList","ecanCirculate"].includes(Pn)&&(zn==null?void 0:zn.length)>1&&(Qn=zn),u!=null&&u.pivotTableCal&&(Qn=((v=u.pivotTableCal)===null||v===void 0?void 0:v.dimensions)||[]),Qn==null||Qn.forEach(vr=>{const{label:Sr,name:Cr,location:Tr,show:Er,indexCode:Mr,sort:Br,typeGuid:Kr,indexCodeNum:Lr,dateFormat:Nr,conditions:qr}=vr;let Wr=Dn(Br);if(u.sort){const{field:Xr,order:ri}=u.sort;let ei=cr.find(ui=>ui.label===Xr);ei||Sr!==Xr||(ei=vr),ei&&(Wr={columnName:ei.columnName,label:u.sort.field,order:ri.toUpperCase(),type:"NORMAL"})}const Ur={label:Sr,columnName:Cr,location:Tr,show:Er,sort:Wr,calcType:"COLUMN",hrpIndexCode:Mr,hrpIndexCodeNum:Lr,conditions:On(qr),typeGuid:Kr};Nr&&(Ur.dateFormat=Nr),Cr!=="the_date"||Ur.dateFormat||(Ur.dateFormat="YYYY-MM-DD"),gr.push(Ur)});const yr=[];["ecanTable"].includes(Pn)&&b.isIndexSet&&ar.forEach(vr=>{const Sr={label:vr.label,calcType:vr.calcType,show:vr.show};vr.formula&&(Sr.formula=vr.formula),yr.push(Sr)});let br=[],ur=[];if(Array.isArray(Yn)&&Yn.length>0?ur=Yn:Array.isArray(Wn)&&Wn.length>0&&(ur=Wn),ur==null?void 0:ur.length){const vr=ur.length;for(let Sr=0;Sr<vr;Sr++){const Cr=ur[Sr]||{},{label:Tr="",name:Er="",show:Mr=!1,sort:Br,customGroup:Kr,conditions:Lr,truncations:Nr,typeGuid:qr="",dateFormat:Wr}=Cr;let Ur=Dn(Br);if(u.sort){const{field:ei,order:ui}=u.sort;let ii=cr.find(pi=>pi.label===ei);ii||Cr.label!==ei||(ii=Cr),ii&&(Ur={columnName:ii.columnName,label:u.sort.field,order:ui.toUpperCase(),type:"NORMAL"})}const Xr={label:Tr.trim(),columnName:Er,show:Mr,sort:Ur,customGroup:Kr,conditions:On(Lr),typeGuid:qr};Wr&&(Xr.dateFormat=Wr),Er!=="the_date"||Xr.dateFormat||(Xr.dateFormat="YYYY-MM-DD");const ri={};if(Array.isArray(Nr)&&Nr.length>0){const ei=Nr.length;for(let ui=0;ui<ei;ui++){const ii=Nr[ui]||{},{rule:pi="",num:bi=0,name:xi=""}=ii;pi&&bi&&(ri.num=bi,ri.rule=pi,xi&&(ri.otherGroupName=xi))}}!((p=Object.keys(ri))===null||p===void 0)&&p.length&&(Xr.truncation=ri),br.push(Xr)}}let pr,_r=[];const xr=[];if(u!=null&&u.pivotTableCal){let vr=[];const{calc:Sr=[],filter:Cr=[],truncations:Tr=[],sorts:Er=[],aggregateMethod:Mr=[],rowDimensionKeys:Br=[],colDimensionKeys:Kr=[]}=u.pivotTableCal;if(cr.push(...Sr),Cr==null?void 0:Cr.length){const Lr=function Nr(qr){const Wr=[];for(const Ur of qr)Ur.conditions?Wr.push(...Nr(Ur.conditions)):Ur.conditionKey==="the_date"&&Wr.push(Ur);return Wr}(sr);for(const Nr of Cr){const{type:qr}=Nr,Wr=e(Nr,["type"]);qr==="indicators"?vr=cr:qr==="dimension"&&(vr=gr);const Ur=vr.find(Xr=>Xr.columnName===Nr.fieldName&&Xr.label===Nr.label);if(Ur){if(qr==="indicators")Ur.filter={rule:Wr.rule,fieldValue:Wr.fieldValue};else if(qr==="dimension"){let Xr=!0;Wr.fieldName==="the_date"&&(Lr==null?void 0:Lr.length)===2&&(Xr=!1,xr.push(Wr)),Xr&&(Ur.conditions||(Ur.conditions=[]),Ur.conditions.push(Wr))}}}}if(Tr!=null&&Tr.length)for(const Lr of Tr){const Nr=gr.find(qr=>qr.label===Lr.key);Nr&&(Nr.truncation={num:Lr.num,rule:Lr.rule})}if(Er!=null&&Er.length)for(const Lr of Er){const{fieldType:Nr,columnData:qr}=Lr,Wr=e(Lr,["fieldType","columnData"]);Nr==="indicators"?(vr=cr,pr=qr):Nr==="dimension"&&(vr=gr);const Ur=vr.find(Xr=>Xr.label===Wr.label);Ur&&(Ur.sort=Object.assign(Object.assign({},Wr),{columnName:Ur.columnName}))}if(!((m=Object.keys(Mr))===null||m===void 0)&&m.length)for(const Lr in Mr){const Nr=gr.find(qr=>qr.label===Lr);Nr&&(!((g=Mr[Lr])===null||g===void 0)&&g.length)&&(Nr.aggregateMethod=Mr[Lr])}br=[],_r=[];for(const Lr of gr)Br.includes(Lr.columnName)?br.push(Lr):Kr.includes(Lr.columnName)&&_r.push(Lr)}if(yn(Pn,["text","proportion","counter"])?qn="zb":yn(Pn,["valueline"])?qn="valueline":yn(Pn,["indexPanel"])&&(qn="indexPanel"),gn||Pn==="card"){if(br.length===0||cr.length===0)return;qn="grouptable"}else if(re==="1"&&!gr.length&&!yr.length||["2","4"].includes(re)&&cr.length===0||!(re!=="3"||(Xn||Bn==="EDV_DATA_SET")&&Un.labelField&&Un.valueField)||re==="3"&&Pn==="ecanDataSelect"&&cr.length===0)return;let kr;if(Wn!=null&&Wn.length&&(re="1",qn="grouptable"),j||yn(Pn,["scatter","valueline"])||!(!((y=Object.keys(Un))===null||y===void 0)&&y.length)){let vr={};vr=yn(Pn,["scatter","valueline"])?{classifications:lr}:{classification:Rn},yr!=null&&yr.length&&(vr.indexLibColumns=yr,vr.isIndexSet=!0),yn(Pn,"table")&&b.isIndexSet&&(vr.compositeIndicator=dr);const Sr=nr.map(Cr=>{const{fieldValue:Tr}=Cr,Er={};return Tr&&Array.isArray(Tr)&&(Er.fieldValue=JSON.stringify(Tr)),Object.assign(Object.assign({},Cr),Er)});xr!=null&&xr.length&&function Cr(Tr){for(const Er of Tr)if(Er.sqlConditions)Cr(Er.sqlConditions);else if(Er.fieldName==="the_date"){const Mr=xr.find(Br=>Br.prop===Er.prop);Mr&&(Er.fieldValue=Mr.fieldValue)}}(Sr),kr=Object.assign({url:"/diagram",source:Bn,dataViewId:w,plugin:j?"5":vn,layer:re,chartType:j?"pivot-table":qn,series:fr,indicatorList:cr,queryColumns:gn?[]:gr,pageFlag:!0,edvDataSetId:or||"",sqlConditions:Sr,idxLibMode:ir,dataSourceId:Gn,preview:Kn,rowHeaders:br,keyName:c.keyName,columnData:pr,columnHeaders:_r},vr)}else{const vr=bn(sr).find(Cr=>Cr.conditionKey==="parentCode"),Sr={};if(vr){const Cr=_n(vr.id)||{};if(!(Cr!=null&&Cr.itemCodes))return;Sr.parentItemCodes=Cr.itemCodes}Pn==="ecanDataSelect"&&(Sr.indicatorList=cr.filter(Cr=>Cr.show)),Bn==="EDV_DATA_SET"&&(Sr.edvDataSetId=or),Rn!=null&&Rn.sort&&(Sr.sort=Rn.sort),kr=Object.assign({url:"/diagram/formData",source:Bn,dataViewId:w,plugin:"4",layer:re,chartType:"normalSelect",rangeIndexTypeGuid:Xn,type:Pn==="ecanDataSelect"?"normalSelectData":"normalSelect",labelField:Un.labelField,valueField:Un.valueField,sqlConditions:nr,idxLibMode:"WITH_DATE_DIM_TABLE",dataSourceId:Gn,keyName:c.keyName},Sr)}return kr},In=(c=[],u,f=!1)=>{let{name:d="name",types:h=[]}=u||{};d=(d==null?void 0:d.trim())||d;const v=new Set,p=new Map,m=c.length,g=h.length;if(m!==1||f)for(let Pn=0;Pn<m;Pn++){const x=c[Pn],gn=x[d];v.add(gn);for(let J=0;J<g;J++){const j=h[J],{label:Rn,value:Bn}=j,w=Object.assign(Object.assign({},x),{value:x[Bn]});if(p.has(Rn)){const vn=p.get(Rn);vn.push(w),p.set(Rn,vn)}else p.set(Rn,[w])}}else{const Pn=[];for(let gn=0;gn<g;gn++){const J=h[gn],{label:j,value:Rn}=J,Bn=Object.assign(Object.assign({},c[0]),{value:c[0][Rn]});v.add(j),Pn.push(Bn)}const x=c[0][d]||"";p.set(x,Pn)}const y=Array.from(v),b=[];for(const[Pn,x]of p)b.push({name:Pn,data:x});return{dimensions:y,dataset:b}},Vn=(c,u)=>{let{name:f="name",value:d="value",type:h="type"}=u||{};f=f==null?void 0:f.trim(),d=d==null?void 0:d.trim(),h=h==null?void 0:h.trim();const v=new Map,p=c.length;for(let y=0;y<p;y++){const b=c[y],Pn=b[f]||"",x=b[d]||"",gn=b[h]||"";if(v.has(gn)){const J=v.get(gn);J.push(Object.assign({name:Pn,value:x},b)),v.set(gn,J)}else v.set(gn,[Object.assign({name:Pn,value:x},b)])}const m=[],g=[];for(const[y,b]of v)if(g.push({name:y,data:b}),b==null?void 0:b.length)if(m.length)for(const Pn of b)m.includes(Pn.name)||m.push(Pn.name);else m.push(...b.map(Pn=>Pn.name));return{dimensions:m,dataset:g}},Fn=(c,u)=>{var f;if(c==null)return u;const d=c.match(/\{.*\}/g);if(d==null||d.length===0)return u;const h=d.length;for(let v=0;v<h;v++){const p=d[v];if(p==null||p==="")break;let m=(f=p.slice(1,-1))===null||f===void 0?void 0:f.trim();m=m==null?void 0:m.replace(/value/g,u);try{let g=m;(/\(.*\)/g.test(m)||/[+/\\*]/g.test(m))&&(g=pn(m)),c=c.replace(p,g)}catch{c=c.replace(p,m)}}return c},styleList=["width","height","color","position","top","left","rotate","fontSize","fontFamily","fontWeight","textDecoration","textAlign","lineHeight","verticalAlign","overflow","backgroundColor","backgroundImage","backgroundSize","borderWidth","borderStyle","borderRadius","borderColor","textShadow","justifyContent","alignItems","zIndex","scale"],usePickComponentStyle=(c,u=[])=>{const{pageMode:f}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"}),d=lodashEs.without(styleList,...u);return vue.computed(()=>{var p,m;const h=lodashEs.pick(c,d),v=["width","height","top","left"];for(const g of v)mn(h,g)&&(["width","height"].includes(g)&&((p=c[g])==null?void 0:p.suffix)==="%"&&vue.unref(f)==="design"?h[g]="100%":(m=c[g])!=null&&m.suffix&&(h[g]=(c[g].value||0)+c[g].suffix));return h})},useOnEvent=(c,u)=>{vue.watch(()=>c.id,f=>{const d=vue.inject(EVENT_BUS,{onEvent:(h,v)=>{}});f!=null&&f!==""&&d.onEvent(f,u)},{immediate:!0})},ignoreClickType=["ecanTable"],useEmitEvent=c=>{const u=c.events,f=c.id,d=vue.inject(EVENT_BUS,{emitEvent:(p,m,g)=>{}}),h=vue.inject(COMMON_OPERATE,{operateAction:(p,m)=>{}}),{touchEventId:v}=vue.inject(GLOBAL_CONFIG,{touchEventId:vue.ref("")});return(p,m=()=>{},g)=>function(){m.call(this,...arguments);const{emitEvent:y}=d,{operateAction:b}=h;p==="click"&&!u.find(x=>x.on==="click")&&(!ignoreClickType.includes(c.type)&&c.dataType==="indicator"||c.parentId)&&b("SHOW_INDICATOR_DETAIL_MODAL",{props:c}),u.forEach(Pn=>{if(p===Pn.on)try{v.value=f,g?y(Pn.target,Pn.emit,g):y(Pn.target,Pn.emit)}catch(x){console.error(x)}})}};var commonjsGlobal=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function getDefaultExportFromCjs(c){return c&&c.__esModule&&Object.prototype.hasOwnProperty.call(c,"default")?c.default:c}function getAugmentedNamespace(c){if(c.__esModule)return c;var u=c.default;if(typeof u=="function"){var f=function d(){return this instanceof d?Reflect.construct(u,arguments,this.constructor):u.apply(this,arguments)};f.prototype=u.prototype}else f={};return Object.defineProperty(f,"__esModule",{value:!0}),Object.keys(c).forEach(function(d){var h=Object.getOwnPropertyDescriptor(c,d);Object.defineProperty(f,d,h.get?h:{enumerable:!0,get:function(){return c[d]}})}),f}var cryptoJs={exports:{}};function commonjsRequire(c){throw new Error('Could not dynamically require "'+c+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var core={exports:{}};const __viteBrowserExternal={},__viteBrowserExternal$1=Object.freeze(Object.defineProperty({__proto__:null,default:__viteBrowserExternal},Symbol.toStringTag,{value:"Module"})),require$$0=getAugmentedNamespace(__viteBrowserExternal$1);var hasRequiredCore;function requireCore(){return hasRequiredCore||(hasRequiredCore=1,function(c,u){(function(f,d){c.exports=d()})(commonjsGlobal,function(){var f=f||function(d,h){var v;if(typeof window<"u"&&window.crypto&&(v=window.crypto),typeof self<"u"&&self.crypto&&(v=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(v=globalThis.crypto),!v&&typeof window<"u"&&window.msCrypto&&(v=window.msCrypto),!v&&typeof commonjsGlobal<"u"&&commonjsGlobal.crypto&&(v=commonjsGlobal.crypto),!v&&typeof commonjsRequire=="function")try{v=require$$0}catch{}var p=function(){if(v){if(typeof v.getRandomValues=="function")try{return v.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof v.randomBytes=="function")try{return v.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},m=Object.create||function(){function w(){}return function(vn){var re;return w.prototype=vn,re=new w,w.prototype=null,re}}(),g={},y=g.lib={},b=y.Base=function(){return{extend:function(w){var vn=m(this);return w&&vn.mixIn(w),(!vn.hasOwnProperty("init")||this.init===vn.init)&&(vn.init=function(){vn.$super.init.apply(this,arguments)}),vn.init.prototype=vn,vn.$super=this,vn},create:function(){var w=this.extend();return w.init.apply(w,arguments),w},init:function(){},mixIn:function(w){for(var vn in w)w.hasOwnProperty(vn)&&(this[vn]=w[vn]);w.hasOwnProperty("toString")&&(this.toString=w.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),Pn=y.WordArray=b.extend({init:function(w,vn){w=this.words=w||[],vn!=h?this.sigBytes=vn:this.sigBytes=w.length*4},toString:function(w){return(w||gn).stringify(this)},concat:function(w){var vn=this.words,re=w.words,qn=this.sigBytes,zn=w.sigBytes;if(this.clamp(),qn%4)for(var Yn=0;Yn<zn;Yn++){var Wn=re[Yn>>>2]>>>24-Yn%4*8&255;vn[qn+Yn>>>2]|=Wn<<24-(qn+Yn)%4*8}else for(var Jn=0;Jn<zn;Jn+=4)vn[qn+Jn>>>2]=re[Jn>>>2];return this.sigBytes+=zn,this},clamp:function(){var w=this.words,vn=this.sigBytes;w[vn>>>2]&=4294967295<<32-vn%4*8,w.length=d.ceil(vn/4)},clone:function(){var w=b.clone.call(this);return w.words=this.words.slice(0),w},random:function(w){for(var vn=[],re=0;re<w;re+=4)vn.push(p());return new Pn.init(vn,w)}}),x=g.enc={},gn=x.Hex={stringify:function(w){for(var vn=w.words,re=w.sigBytes,qn=[],zn=0;zn<re;zn++){var Yn=vn[zn>>>2]>>>24-zn%4*8&255;qn.push((Yn>>>4).toString(16)),qn.push((Yn&15).toString(16))}return qn.join("")},parse:function(w){for(var vn=w.length,re=[],qn=0;qn<vn;qn+=2)re[qn>>>3]|=parseInt(w.substr(qn,2),16)<<24-qn%8*4;return new Pn.init(re,vn/2)}},J=x.Latin1={stringify:function(w){for(var vn=w.words,re=w.sigBytes,qn=[],zn=0;zn<re;zn++){var Yn=vn[zn>>>2]>>>24-zn%4*8&255;qn.push(String.fromCharCode(Yn))}return qn.join("")},parse:function(w){for(var vn=w.length,re=[],qn=0;qn<vn;qn++)re[qn>>>2]|=(w.charCodeAt(qn)&255)<<24-qn%4*8;return new Pn.init(re,vn)}},j=x.Utf8={stringify:function(w){try{return decodeURIComponent(escape(J.stringify(w)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(w){return J.parse(unescape(encodeURIComponent(w)))}},Rn=y.BufferedBlockAlgorithm=b.extend({reset:function(){this._data=new Pn.init,this._nDataBytes=0},_append:function(w){typeof w=="string"&&(w=j.parse(w)),this._data.concat(w),this._nDataBytes+=w.sigBytes},_process:function(w){var vn,re=this._data,qn=re.words,zn=re.sigBytes,Yn=this.blockSize,Wn=Yn*4,Jn=zn/Wn;w?Jn=d.ceil(Jn):Jn=d.max((Jn|0)-this._minBufferSize,0);var tr=Jn*Yn,er=d.min(tr*4,zn);if(tr){for(var Qn=0;Qn<tr;Qn+=Yn)this._doProcessBlock(qn,Qn);vn=qn.splice(0,tr),re.sigBytes-=er}return new Pn.init(vn,er)},clone:function(){var w=b.clone.call(this);return w._data=this._data.clone(),w},_minBufferSize:0});y.Hasher=Rn.extend({cfg:b.extend(),init:function(w){this.cfg=this.cfg.extend(w),this.reset()},reset:function(){Rn.reset.call(this),this._doReset()},update:function(w){return this._append(w),this._process(),this},finalize:function(w){w&&this._append(w);var vn=this._doFinalize();return vn},blockSize:16,_createHelper:function(w){return function(vn,re){return new w.init(re).finalize(vn)}},_createHmacHelper:function(w){return function(vn,re){return new Bn.HMAC.init(w,re).finalize(vn)}}});var Bn=g.algo={};return g}(Math);return f})}(core)),core.exports}var x64Core={exports:{}},hasRequiredX64Core;function requireX64Core(){return hasRequiredX64Core||(hasRequiredX64Core=1,function(c,u){(function(f,d){c.exports=d(requireCore())})(commonjsGlobal,function(f){return function(d){var h=f,v=h.lib,p=v.Base,m=v.WordArray,g=h.x64={};g.Word=p.extend({init:function(y,b){this.high=y,this.low=b}}),g.WordArray=p.extend({init:function(y,b){y=this.words=y||[],b!=d?this.sigBytes=b:this.sigBytes=y.length*8},toX32:function(){for(var y=this.words,b=y.length,Pn=[],x=0;x<b;x++){var gn=y[x];Pn.push(gn.high),Pn.push(gn.low)}return m.create(Pn,this.sigBytes)},clone:function(){for(var y=p.clone.call(this),b=y.words=this.words.slice(0),Pn=b.length,x=0;x<Pn;x++)b[x]=b[x].clone();return y}})}(),f})}(x64Core)),x64Core.exports}var libTypedarrays={exports:{}},hasRequiredLibTypedarrays;function requireLibTypedarrays(){return hasRequiredLibTypedarrays||(hasRequiredLibTypedarrays=1,function(c,u){(function(f,d){c.exports=d(requireCore())})(commonjsGlobal,function(f){return function(){if(typeof ArrayBuffer=="function"){var d=f,h=d.lib,v=h.WordArray,p=v.init,m=v.init=function(g){if(g instanceof ArrayBuffer&&(g=new Uint8Array(g)),(g instanceof Int8Array||typeof Uint8ClampedArray<"u"&&g instanceof Uint8ClampedArray||g instanceof Int16Array||g instanceof Uint16Array||g instanceof Int32Array||g instanceof Uint32Array||g instanceof Float32Array||g instanceof Float64Array)&&(g=new Uint8Array(g.buffer,g.byteOffset,g.byteLength)),g instanceof Uint8Array){for(var y=g.byteLength,b=[],Pn=0;Pn<y;Pn++)b[Pn>>>2]|=g[Pn]<<24-Pn%4*8;p.call(this,b,y)}else p.apply(this,arguments)};m.prototype=v}}(),f.lib.WordArray})}(libTypedarrays)),libTypedarrays.exports}var encUtf16={exports:{}},hasRequiredEncUtf16;function requireEncUtf16(){return hasRequiredEncUtf16||(hasRequiredEncUtf16=1,function(c,u){(function(f,d){c.exports=d(requireCore())})(commonjsGlobal,function(f){return function(){var d=f,h=d.lib,v=h.WordArray,p=d.enc;p.Utf16=p.Utf16BE={stringify:function(g){for(var y=g.words,b=g.sigBytes,Pn=[],x=0;x<b;x+=2){var gn=y[x>>>2]>>>16-x%4*8&65535;Pn.push(String.fromCharCode(gn))}return Pn.join("")},parse:function(g){for(var y=g.length,b=[],Pn=0;Pn<y;Pn++)b[Pn>>>1]|=g.charCodeAt(Pn)<<16-Pn%2*16;return v.create(b,y*2)}},p.Utf16LE={stringify:function(g){for(var y=g.words,b=g.sigBytes,Pn=[],x=0;x<b;x+=2){var gn=m(y[x>>>2]>>>16-x%4*8&65535);Pn.push(String.fromCharCode(gn))}return Pn.join("")},parse:function(g){for(var y=g.length,b=[],Pn=0;Pn<y;Pn++)b[Pn>>>1]|=m(g.charCodeAt(Pn)<<16-Pn%2*16);return v.create(b,y*2)}};function m(g){return g<<8&4278255360|g>>>8&16711935}}(),f.enc.Utf16})}(encUtf16)),encUtf16.exports}var encBase64={exports:{}},hasRequiredEncBase64;function requireEncBase64(){return hasRequiredEncBase64||(hasRequiredEncBase64=1,function(c,u){(function(f,d){c.exports=d(requireCore())})(commonjsGlobal,function(f){return function(){var d=f,h=d.lib,v=h.WordArray,p=d.enc;p.Base64={stringify:function(g){var y=g.words,b=g.sigBytes,Pn=this._map;g.clamp();for(var x=[],gn=0;gn<b;gn+=3)for(var J=y[gn>>>2]>>>24-gn%4*8&255,j=y[gn+1>>>2]>>>24-(gn+1)%4*8&255,Rn=y[gn+2>>>2]>>>24-(gn+2)%4*8&255,Bn=J<<16|j<<8|Rn,w=0;w<4&&gn+w*.75<b;w++)x.push(Pn.charAt(Bn>>>6*(3-w)&63));var vn=Pn.charAt(64);if(vn)for(;x.length%4;)x.push(vn);return x.join("")},parse:function(g){var y=g.length,b=this._map,Pn=this._reverseMap;if(!Pn){Pn=this._reverseMap=[];for(var x=0;x<b.length;x++)Pn[b.charCodeAt(x)]=x}var gn=b.charAt(64);if(gn){var J=g.indexOf(gn);J!==-1&&(y=J)}return m(g,y,Pn)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function m(g,y,b){for(var Pn=[],x=0,gn=0;gn<y;gn++)if(gn%4){var J=b[g.charCodeAt(gn-1)]<<gn%4*2,j=b[g.charCodeAt(gn)]>>>6-gn%4*2,Rn=J|j;Pn[x>>>2]|=Rn<<24-x%4*8,x++}return v.create(Pn,x)}}(),f.enc.Base64})}(encBase64)),encBase64.exports}var encBase64url={exports:{}},hasRequiredEncBase64url;function requireEncBase64url(){return hasRequiredEncBase64url||(hasRequiredEncBase64url=1,function(c,u){(function(f,d){c.exports=d(requireCore())})(commonjsGlobal,function(f){return function(){var d=f,h=d.lib,v=h.WordArray,p=d.enc;p.Base64url={stringify:function(g,y=!0){var b=g.words,Pn=g.sigBytes,x=y?this._safe_map:this._map;g.clamp();for(var gn=[],J=0;J<Pn;J+=3)for(var j=b[J>>>2]>>>24-J%4*8&255,Rn=b[J+1>>>2]>>>24-(J+1)%4*8&255,Bn=b[J+2>>>2]>>>24-(J+2)%4*8&255,w=j<<16|Rn<<8|Bn,vn=0;vn<4&&J+vn*.75<Pn;vn++)gn.push(x.charAt(w>>>6*(3-vn)&63));var re=x.charAt(64);if(re)for(;gn.length%4;)gn.push(re);return gn.join("")},parse:function(g,y=!0){var b=g.length,Pn=y?this._safe_map:this._map,x=this._reverseMap;if(!x){x=this._reverseMap=[];for(var gn=0;gn<Pn.length;gn++)x[Pn.charCodeAt(gn)]=gn}var J=Pn.charAt(64);if(J){var j=g.indexOf(J);j!==-1&&(b=j)}return m(g,b,x)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function m(g,y,b){for(var Pn=[],x=0,gn=0;gn<y;gn++)if(gn%4){var J=b[g.charCodeAt(gn-1)]<<gn%4*2,j=b[g.charCodeAt(gn)]>>>6-gn%4*2,Rn=J|j;Pn[x>>>2]|=Rn<<24-x%4*8,x++}return v.create(Pn,x)}}(),f.enc.Base64url})}(encBase64url)),encBase64url.exports}var md5={exports:{}},hasRequiredMd5;function requireMd5(){return hasRequiredMd5||(hasRequiredMd5=1,function(c,u){(function(f,d){c.exports=d(requireCore())})(commonjsGlobal,function(f){return function(d){var h=f,v=h.lib,p=v.WordArray,m=v.Hasher,g=h.algo,y=[];(function(){for(var j=0;j<64;j++)y[j]=d.abs(d.sin(j+1))*4294967296|0})();var b=g.MD5=m.extend({_doReset:function(){this._hash=new p.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(j,Rn){for(var Bn=0;Bn<16;Bn++){var w=Rn+Bn,vn=j[w];j[w]=(vn<<8|vn>>>24)&16711935|(vn<<24|vn>>>8)&4278255360}var re=this._hash.words,qn=j[Rn+0],zn=j[Rn+1],Yn=j[Rn+2],Wn=j[Rn+3],Jn=j[Rn+4],tr=j[Rn+5],er=j[Rn+6],Qn=j[Rn+7],ar=j[Rn+8],hr=j[Rn+9],sr=j[Rn+10],Un=j[Rn+11],Zn=j[Rn+12],Hn=j[Rn+13],Gn=j[Rn+14],ir=j[Rn+15],Kn=re[0],or=re[1],dr=re[2],nr=re[3];Kn=Pn(Kn,or,dr,nr,qn,7,y[0]),nr=Pn(nr,Kn,or,dr,zn,12,y[1]),dr=Pn(dr,nr,Kn,or,Yn,17,y[2]),or=Pn(or,dr,nr,Kn,Wn,22,y[3]),Kn=Pn(Kn,or,dr,nr,Jn,7,y[4]),nr=Pn(nr,Kn,or,dr,tr,12,y[5]),dr=Pn(dr,nr,Kn,or,er,17,y[6]),or=Pn(or,dr,nr,Kn,Qn,22,y[7]),Kn=Pn(Kn,or,dr,nr,ar,7,y[8]),nr=Pn(nr,Kn,or,dr,hr,12,y[9]),dr=Pn(dr,nr,Kn,or,sr,17,y[10]),or=Pn(or,dr,nr,Kn,Un,22,y[11]),Kn=Pn(Kn,or,dr,nr,Zn,7,y[12]),nr=Pn(nr,Kn,or,dr,Hn,12,y[13]),dr=Pn(dr,nr,Kn,or,Gn,17,y[14]),or=Pn(or,dr,nr,Kn,ir,22,y[15]),Kn=x(Kn,or,dr,nr,zn,5,y[16]),nr=x(nr,Kn,or,dr,er,9,y[17]),dr=x(dr,nr,Kn,or,Un,14,y[18]),or=x(or,dr,nr,Kn,qn,20,y[19]),Kn=x(Kn,or,dr,nr,tr,5,y[20]),nr=x(nr,Kn,or,dr,sr,9,y[21]),dr=x(dr,nr,Kn,or,ir,14,y[22]),or=x(or,dr,nr,Kn,Jn,20,y[23]),Kn=x(Kn,or,dr,nr,hr,5,y[24]),nr=x(nr,Kn,or,dr,Gn,9,y[25]),dr=x(dr,nr,Kn,or,Wn,14,y[26]),or=x(or,dr,nr,Kn,ar,20,y[27]),Kn=x(Kn,or,dr,nr,Hn,5,y[28]),nr=x(nr,Kn,or,dr,Yn,9,y[29]),dr=x(dr,nr,Kn,or,Qn,14,y[30]),or=x(or,dr,nr,Kn,Zn,20,y[31]),Kn=gn(Kn,or,dr,nr,tr,4,y[32]),nr=gn(nr,Kn,or,dr,ar,11,y[33]),dr=gn(dr,nr,Kn,or,Un,16,y[34]),or=gn(or,dr,nr,Kn,Gn,23,y[35]),Kn=gn(Kn,or,dr,nr,zn,4,y[36]),nr=gn(nr,Kn,or,dr,Jn,11,y[37]),dr=gn(dr,nr,Kn,or,Qn,16,y[38]),or=gn(or,dr,nr,Kn,sr,23,y[39]),Kn=gn(Kn,or,dr,nr,Hn,4,y[40]),nr=gn(nr,Kn,or,dr,qn,11,y[41]),dr=gn(dr,nr,Kn,or,Wn,16,y[42]),or=gn(or,dr,nr,Kn,er,23,y[43]),Kn=gn(Kn,or,dr,nr,hr,4,y[44]),nr=gn(nr,Kn,or,dr,Zn,11,y[45]),dr=gn(dr,nr,Kn,or,ir,16,y[46]),or=gn(or,dr,nr,Kn,Yn,23,y[47]),Kn=J(Kn,or,dr,nr,qn,6,y[48]),nr=J(nr,Kn,or,dr,Qn,10,y[49]),dr=J(dr,nr,Kn,or,Gn,15,y[50]),or=J(or,dr,nr,Kn,tr,21,y[51]),Kn=J(Kn,or,dr,nr,Zn,6,y[52]),nr=J(nr,Kn,or,dr,Wn,10,y[53]),dr=J(dr,nr,Kn,or,sr,15,y[54]),or=J(or,dr,nr,Kn,zn,21,y[55]),Kn=J(Kn,or,dr,nr,ar,6,y[56]),nr=J(nr,Kn,or,dr,ir,10,y[57]),dr=J(dr,nr,Kn,or,er,15,y[58]),or=J(or,dr,nr,Kn,Hn,21,y[59]),Kn=J(Kn,or,dr,nr,Jn,6,y[60]),nr=J(nr,Kn,or,dr,Un,10,y[61]),dr=J(dr,nr,Kn,or,Yn,15,y[62]),or=J(or,dr,nr,Kn,hr,21,y[63]),re[0]=re[0]+Kn|0,re[1]=re[1]+or|0,re[2]=re[2]+dr|0,re[3]=re[3]+nr|0},_doFinalize:function(){var j=this._data,Rn=j.words,Bn=this._nDataBytes*8,w=j.sigBytes*8;Rn[w>>>5]|=128<<24-w%32;var vn=d.floor(Bn/4294967296),re=Bn;Rn[(w+64>>>9<<4)+15]=(vn<<8|vn>>>24)&16711935|(vn<<24|vn>>>8)&4278255360,Rn[(w+64>>>9<<4)+14]=(re<<8|re>>>24)&16711935|(re<<24|re>>>8)&4278255360,j.sigBytes=(Rn.length+1)*4,this._process();for(var qn=this._hash,zn=qn.words,Yn=0;Yn<4;Yn++){var Wn=zn[Yn];zn[Yn]=(Wn<<8|Wn>>>24)&16711935|(Wn<<24|Wn>>>8)&4278255360}return qn},clone:function(){var j=m.clone.call(this);return j._hash=this._hash.clone(),j}});function Pn(j,Rn,Bn,w,vn,re,qn){var zn=j+(Rn&Bn|~Rn&w)+vn+qn;return(zn<<re|zn>>>32-re)+Rn}function x(j,Rn,Bn,w,vn,re,qn){var zn=j+(Rn&w|Bn&~w)+vn+qn;return(zn<<re|zn>>>32-re)+Rn}function gn(j,Rn,Bn,w,vn,re,qn){var zn=j+(Rn^Bn^w)+vn+qn;return(zn<<re|zn>>>32-re)+Rn}function J(j,Rn,Bn,w,vn,re,qn){var zn=j+(Bn^(Rn|~w))+vn+qn;return(zn<<re|zn>>>32-re)+Rn}h.MD5=m._createHelper(b),h.HmacMD5=m._createHmacHelper(b)}(Math),f.MD5})}(md5)),md5.exports}var sha1={exports:{}},hasRequiredSha1;function requireSha1(){return hasRequiredSha1||(hasRequiredSha1=1,function(c,u){(function(f,d){c.exports=d(requireCore())})(commonjsGlobal,function(f){return function(){var d=f,h=d.lib,v=h.WordArray,p=h.Hasher,m=d.algo,g=[],y=m.SHA1=p.extend({_doReset:function(){this._hash=new v.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(b,Pn){for(var x=this._hash.words,gn=x[0],J=x[1],j=x[2],Rn=x[3],Bn=x[4],w=0;w<80;w++){if(w<16)g[w]=b[Pn+w]|0;else{var vn=g[w-3]^g[w-8]^g[w-14]^g[w-16];g[w]=vn<<1|vn>>>31}var re=(gn<<5|gn>>>27)+Bn+g[w];w<20?re+=(J&j|~J&Rn)+1518500249:w<40?re+=(J^j^Rn)+1859775393:w<60?re+=(J&j|J&Rn|j&Rn)-1894007588:re+=(J^j^Rn)-899497514,Bn=Rn,Rn=j,j=J<<30|J>>>2,J=gn,gn=re}x[0]=x[0]+gn|0,x[1]=x[1]+J|0,x[2]=x[2]+j|0,x[3]=x[3]+Rn|0,x[4]=x[4]+Bn|0},_doFinalize:function(){var b=this._data,Pn=b.words,x=this._nDataBytes*8,gn=b.sigBytes*8;return Pn[gn>>>5]|=128<<24-gn%32,Pn[(gn+64>>>9<<4)+14]=Math.floor(x/4294967296),Pn[(gn+64>>>9<<4)+15]=x,b.sigBytes=Pn.length*4,this._process(),this._hash},clone:function(){var b=p.clone.call(this);return b._hash=this._hash.clone(),b}});d.SHA1=p._createHelper(y),d.HmacSHA1=p._createHmacHelper(y)}(),f.SHA1})}(sha1)),sha1.exports}var sha256={exports:{}},hasRequiredSha256;function requireSha256(){return hasRequiredSha256||(hasRequiredSha256=1,function(c,u){(function(f,d){c.exports=d(requireCore())})(commonjsGlobal,function(f){return function(d){var h=f,v=h.lib,p=v.WordArray,m=v.Hasher,g=h.algo,y=[],b=[];(function(){function gn(Bn){for(var w=d.sqrt(Bn),vn=2;vn<=w;vn++)if(!(Bn%vn))return!1;return!0}function J(Bn){return(Bn-(Bn|0))*4294967296|0}for(var j=2,Rn=0;Rn<64;)gn(j)&&(Rn<8&&(y[Rn]=J(d.pow(j,1/2))),b[Rn]=J(d.pow(j,1/3)),Rn++),j++})();var Pn=[],x=g.SHA256=m.extend({_doReset:function(){this._hash=new p.init(y.slice(0))},_doProcessBlock:function(gn,J){for(var j=this._hash.words,Rn=j[0],Bn=j[1],w=j[2],vn=j[3],re=j[4],qn=j[5],zn=j[6],Yn=j[7],Wn=0;Wn<64;Wn++){if(Wn<16)Pn[Wn]=gn[J+Wn]|0;else{var Jn=Pn[Wn-15],tr=(Jn<<25|Jn>>>7)^(Jn<<14|Jn>>>18)^Jn>>>3,er=Pn[Wn-2],Qn=(er<<15|er>>>17)^(er<<13|er>>>19)^er>>>10;Pn[Wn]=tr+Pn[Wn-7]+Qn+Pn[Wn-16]}var ar=re&qn^~re&zn,hr=Rn&Bn^Rn&w^Bn&w,sr=(Rn<<30|Rn>>>2)^(Rn<<19|Rn>>>13)^(Rn<<10|Rn>>>22),Un=(re<<26|re>>>6)^(re<<21|re>>>11)^(re<<7|re>>>25),Zn=Yn+Un+ar+b[Wn]+Pn[Wn],Hn=sr+hr;Yn=zn,zn=qn,qn=re,re=vn+Zn|0,vn=w,w=Bn,Bn=Rn,Rn=Zn+Hn|0}j[0]=j[0]+Rn|0,j[1]=j[1]+Bn|0,j[2]=j[2]+w|0,j[3]=j[3]+vn|0,j[4]=j[4]+re|0,j[5]=j[5]+qn|0,j[6]=j[6]+zn|0,j[7]=j[7]+Yn|0},_doFinalize:function(){var gn=this._data,J=gn.words,j=this._nDataBytes*8,Rn=gn.sigBytes*8;return J[Rn>>>5]|=128<<24-Rn%32,J[(Rn+64>>>9<<4)+14]=d.floor(j/4294967296),J[(Rn+64>>>9<<4)+15]=j,gn.sigBytes=J.length*4,this._process(),this._hash},clone:function(){var gn=m.clone.call(this);return gn._hash=this._hash.clone(),gn}});h.SHA256=m._createHelper(x),h.HmacSHA256=m._createHmacHelper(x)}(Math),f.SHA256})}(sha256)),sha256.exports}var sha224={exports:{}},hasRequiredSha224;function requireSha224(){return hasRequiredSha224||(hasRequiredSha224=1,function(c,u){(function(f,d,h){c.exports=d(requireCore(),requireSha256())})(commonjsGlobal,function(f){return function(){var d=f,h=d.lib,v=h.WordArray,p=d.algo,m=p.SHA256,g=p.SHA224=m.extend({_doReset:function(){this._hash=new v.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var y=m._doFinalize.call(this);return y.sigBytes-=4,y}});d.SHA224=m._createHelper(g),d.HmacSHA224=m._createHmacHelper(g)}(),f.SHA224})}(sha224)),sha224.exports}var sha512={exports:{}},hasRequiredSha512;function requireSha512(){return hasRequiredSha512||(hasRequiredSha512=1,function(c,u){(function(f,d,h){c.exports=d(requireCore(),requireX64Core())})(commonjsGlobal,function(f){return function(){var d=f,h=d.lib,v=h.Hasher,p=d.x64,m=p.Word,g=p.WordArray,y=d.algo;function b(){return m.create.apply(m,arguments)}var Pn=[b(1116352408,3609767458),b(1899447441,602891725),b(3049323471,3964484399),b(3921009573,2173295548),b(961987163,4081628472),b(1508970993,3053834265),b(2453635748,2937671579),b(2870763221,3664609560),b(3624381080,2734883394),b(310598401,1164996542),b(607225278,1323610764),b(1426881987,3590304994),b(1925078388,4068182383),b(2162078206,991336113),b(2614888103,633803317),b(3248222580,3479774868),b(3835390401,2666613458),b(4022224774,944711139),b(264347078,2341262773),b(604807628,2007800933),b(770255983,1495990901),b(1249150122,1856431235),b(1555081692,3175218132),b(1996064986,2198950837),b(2554220882,3999719339),b(2821834349,766784016),b(2952996808,2566594879),b(3210313671,3203337956),b(3336571891,1034457026),b(3584528711,2466948901),b(113926993,3758326383),b(338241895,168717936),b(666307205,1188179964),b(773529912,1546045734),b(1294757372,1522805485),b(1396182291,2643833823),b(1695183700,2343527390),b(1986661051,1014477480),b(2177026350,1206759142),b(2456956037,344077627),b(2730485921,1290863460),b(2820302411,3158454273),b(3259730800,3505952657),b(3345764771,106217008),b(3516065817,3606008344),b(3600352804,1432725776),b(4094571909,1467031594),b(275423344,851169720),b(430227734,3100823752),b(506948616,1363258195),b(659060556,3750685593),b(883997877,3785050280),b(958139571,3318307427),b(1322822218,3812723403),b(1537002063,2003034995),b(1747873779,3602036899),b(1955562222,1575990012),b(2024104815,1125592928),b(2227730452,2716904306),b(2361852424,442776044),b(2428436474,593698344),b(2756734187,3733110249),b(3204031479,2999351573),b(3329325298,3815920427),b(3391569614,3928383900),b(3515267271,566280711),b(3940187606,3454069534),b(4118630271,4000239992),b(116418474,1914138554),b(174292421,2731055270),b(289380356,3203993006),b(460393269,320620315),b(685471733,587496836),b(852142971,1086792851),b(1017036298,365543100),b(1126000580,2618297676),b(1288033470,3409855158),b(1501505948,4234509866),b(1607167915,987167468),b(1816402316,1246189591)],x=[];(function(){for(var J=0;J<80;J++)x[J]=b()})();var gn=y.SHA512=v.extend({_doReset:function(){this._hash=new g.init([new m.init(1779033703,4089235720),new m.init(3144134277,2227873595),new m.init(1013904242,4271175723),new m.init(2773480762,1595750129),new m.init(1359893119,2917565137),new m.init(2600822924,725511199),new m.init(528734635,4215389547),new m.init(1541459225,327033209)])},_doProcessBlock:function(J,j){for(var Rn=this._hash.words,Bn=Rn[0],w=Rn[1],vn=Rn[2],re=Rn[3],qn=Rn[4],zn=Rn[5],Yn=Rn[6],Wn=Rn[7],Jn=Bn.high,tr=Bn.low,er=w.high,Qn=w.low,ar=vn.high,hr=vn.low,sr=re.high,Un=re.low,Zn=qn.high,Hn=qn.low,Gn=zn.high,ir=zn.low,Kn=Yn.high,or=Yn.low,dr=Wn.high,nr=Wn.low,lr=Jn,fr=tr,Xn=er,cr=Qn,mr=ar,gr=hr,yr=sr,br=Un,ur=Zn,pr=Hn,_r=Gn,xr=ir,kr=Kn,vr=or,Sr=dr,Cr=nr,Tr=0;Tr<80;Tr++){var Er,Mr,Br=x[Tr];if(Tr<16)Mr=Br.high=J[j+Tr*2]|0,Er=Br.low=J[j+Tr*2+1]|0;else{var Kr=x[Tr-15],Lr=Kr.high,Nr=Kr.low,qr=(Lr>>>1|Nr<<31)^(Lr>>>8|Nr<<24)^Lr>>>7,Wr=(Nr>>>1|Lr<<31)^(Nr>>>8|Lr<<24)^(Nr>>>7|Lr<<25),Ur=x[Tr-2],Xr=Ur.high,ri=Ur.low,ei=(Xr>>>19|ri<<13)^(Xr<<3|ri>>>29)^Xr>>>6,ui=(ri>>>19|Xr<<13)^(ri<<3|Xr>>>29)^(ri>>>6|Xr<<26),ii=x[Tr-7],pi=ii.high,bi=ii.low,xi=x[Tr-16],Ir=xi.high,Dr=xi.low;Er=Wr+bi,Mr=qr+pi+(Er>>>0<Wr>>>0?1:0),Er=Er+ui,Mr=Mr+ei+(Er>>>0<ui>>>0?1:0),Er=Er+Dr,Mr=Mr+Ir+(Er>>>0<Dr>>>0?1:0),Br.high=Mr,Br.low=Er}var Rr=ur&_r^~ur&kr,$r=pr&xr^~pr&vr,zr=lr&Xn^lr&mr^Xn&mr,Hr=fr&cr^fr&gr^cr&gr,Qr=(lr>>>28|fr<<4)^(lr<<30|fr>>>2)^(lr<<25|fr>>>7),li=(fr>>>28|lr<<4)^(fr<<30|lr>>>2)^(fr<<25|lr>>>7),ai=(ur>>>14|pr<<18)^(ur>>>18|pr<<14)^(ur<<23|pr>>>9),fi=(pr>>>14|ur<<18)^(pr>>>18|ur<<14)^(pr<<23|ur>>>9),yi=Pn[Tr],hi=yi.high,oi=yi.low,Yr=Cr+fi,ci=Sr+ai+(Yr>>>0<Cr>>>0?1:0),Yr=Yr+$r,ci=ci+Rr+(Yr>>>0<$r>>>0?1:0),Yr=Yr+oi,ci=ci+hi+(Yr>>>0<oi>>>0?1:0),Yr=Yr+Er,ci=ci+Mr+(Yr>>>0<Er>>>0?1:0),wi=li+Hr,vi=Qr+zr+(wi>>>0<li>>>0?1:0);Sr=kr,Cr=vr,kr=_r,vr=xr,_r=ur,xr=pr,pr=br+Yr|0,ur=yr+ci+(pr>>>0<br>>>0?1:0)|0,yr=mr,br=gr,mr=Xn,gr=cr,Xn=lr,cr=fr,fr=Yr+wi|0,lr=ci+vi+(fr>>>0<Yr>>>0?1:0)|0}tr=Bn.low=tr+fr,Bn.high=Jn+lr+(tr>>>0<fr>>>0?1:0),Qn=w.low=Qn+cr,w.high=er+Xn+(Qn>>>0<cr>>>0?1:0),hr=vn.low=hr+gr,vn.high=ar+mr+(hr>>>0<gr>>>0?1:0),Un=re.low=Un+br,re.high=sr+yr+(Un>>>0<br>>>0?1:0),Hn=qn.low=Hn+pr,qn.high=Zn+ur+(Hn>>>0<pr>>>0?1:0),ir=zn.low=ir+xr,zn.high=Gn+_r+(ir>>>0<xr>>>0?1:0),or=Yn.low=or+vr,Yn.high=Kn+kr+(or>>>0<vr>>>0?1:0),nr=Wn.low=nr+Cr,Wn.high=dr+Sr+(nr>>>0<Cr>>>0?1:0)},_doFinalize:function(){var J=this._data,j=J.words,Rn=this._nDataBytes*8,Bn=J.sigBytes*8;j[Bn>>>5]|=128<<24-Bn%32,j[(Bn+128>>>10<<5)+30]=Math.floor(Rn/4294967296),j[(Bn+128>>>10<<5)+31]=Rn,J.sigBytes=j.length*4,this._process();var w=this._hash.toX32();return w},clone:function(){var J=v.clone.call(this);return J._hash=this._hash.clone(),J},blockSize:1024/32});d.SHA512=v._createHelper(gn),d.HmacSHA512=v._createHmacHelper(gn)}(),f.SHA512})}(sha512)),sha512.exports}var sha384={exports:{}},hasRequiredSha384;function requireSha384(){return hasRequiredSha384||(hasRequiredSha384=1,function(c,u){(function(f,d,h){c.exports=d(requireCore(),requireX64Core(),requireSha512())})(commonjsGlobal,function(f){return function(){var d=f,h=d.x64,v=h.Word,p=h.WordArray,m=d.algo,g=m.SHA512,y=m.SHA384=g.extend({_doReset:function(){this._hash=new p.init([new v.init(3418070365,3238371032),new v.init(1654270250,914150663),new v.init(2438529370,812702999),new v.init(355462360,4144912697),new v.init(1731405415,4290775857),new v.init(2394180231,1750603025),new v.init(3675008525,1694076839),new v.init(1203062813,3204075428)])},_doFinalize:function(){var b=g._doFinalize.call(this);return b.sigBytes-=16,b}});d.SHA384=g._createHelper(y),d.HmacSHA384=g._createHmacHelper(y)}(),f.SHA384})}(sha384)),sha384.exports}var sha3={exports:{}},hasRequiredSha3;function requireSha3(){return hasRequiredSha3||(hasRequiredSha3=1,function(c,u){(function(f,d,h){c.exports=d(requireCore(),requireX64Core())})(commonjsGlobal,function(f){return function(d){var h=f,v=h.lib,p=v.WordArray,m=v.Hasher,g=h.x64,y=g.Word,b=h.algo,Pn=[],x=[],gn=[];(function(){for(var Rn=1,Bn=0,w=0;w<24;w++){Pn[Rn+5*Bn]=(w+1)*(w+2)/2%64;var vn=Bn%5,re=(2*Rn+3*Bn)%5;Rn=vn,Bn=re}for(var Rn=0;Rn<5;Rn++)for(var Bn=0;Bn<5;Bn++)x[Rn+5*Bn]=Bn+(2*Rn+3*Bn)%5*5;for(var qn=1,zn=0;zn<24;zn++){for(var Yn=0,Wn=0,Jn=0;Jn<7;Jn++){if(qn&1){var tr=(1<<Jn)-1;tr<32?Wn^=1<<tr:Yn^=1<<tr-32}qn&128?qn=qn<<1^113:qn<<=1}gn[zn]=y.create(Yn,Wn)}})();var J=[];(function(){for(var Rn=0;Rn<25;Rn++)J[Rn]=y.create()})();var j=b.SHA3=m.extend({cfg:m.cfg.extend({outputLength:512}),_doReset:function(){for(var Rn=this._state=[],Bn=0;Bn<25;Bn++)Rn[Bn]=new y.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(Rn,Bn){for(var w=this._state,vn=this.blockSize/2,re=0;re<vn;re++){var qn=Rn[Bn+2*re],zn=Rn[Bn+2*re+1];qn=(qn<<8|qn>>>24)&16711935|(qn<<24|qn>>>8)&4278255360,zn=(zn<<8|zn>>>24)&16711935|(zn<<24|zn>>>8)&4278255360;var Yn=w[re];Yn.high^=zn,Yn.low^=qn}for(var Wn=0;Wn<24;Wn++){for(var Jn=0;Jn<5;Jn++){for(var tr=0,er=0,Qn=0;Qn<5;Qn++){var Yn=w[Jn+5*Qn];tr^=Yn.high,er^=Yn.low}var ar=J[Jn];ar.high=tr,ar.low=er}for(var Jn=0;Jn<5;Jn++)for(var hr=J[(Jn+4)%5],sr=J[(Jn+1)%5],Un=sr.high,Zn=sr.low,tr=hr.high^(Un<<1|Zn>>>31),er=hr.low^(Zn<<1|Un>>>31),Qn=0;Qn<5;Qn++){var Yn=w[Jn+5*Qn];Yn.high^=tr,Yn.low^=er}for(var Hn=1;Hn<25;Hn++){var tr,er,Yn=w[Hn],Gn=Yn.high,ir=Yn.low,Kn=Pn[Hn];Kn<32?(tr=Gn<<Kn|ir>>>32-Kn,er=ir<<Kn|Gn>>>32-Kn):(tr=ir<<Kn-32|Gn>>>64-Kn,er=Gn<<Kn-32|ir>>>64-Kn);var or=J[x[Hn]];or.high=tr,or.low=er}var dr=J[0],nr=w[0];dr.high=nr.high,dr.low=nr.low;for(var Jn=0;Jn<5;Jn++)for(var Qn=0;Qn<5;Qn++){var Hn=Jn+5*Qn,Yn=w[Hn],lr=J[Hn],fr=J[(Jn+1)%5+5*Qn],Xn=J[(Jn+2)%5+5*Qn];Yn.high=lr.high^~fr.high&Xn.high,Yn.low=lr.low^~fr.low&Xn.low}var Yn=w[0],cr=gn[Wn];Yn.high^=cr.high,Yn.low^=cr.low}},_doFinalize:function(){var Rn=this._data,Bn=Rn.words;this._nDataBytes*8;var w=Rn.sigBytes*8,vn=this.blockSize*32;Bn[w>>>5]|=1<<24-w%32,Bn[(d.ceil((w+1)/vn)*vn>>>5)-1]|=128,Rn.sigBytes=Bn.length*4,this._process();for(var re=this._state,qn=this.cfg.outputLength/8,zn=qn/8,Yn=[],Wn=0;Wn<zn;Wn++){var Jn=re[Wn],tr=Jn.high,er=Jn.low;tr=(tr<<8|tr>>>24)&16711935|(tr<<24|tr>>>8)&4278255360,er=(er<<8|er>>>24)&16711935|(er<<24|er>>>8)&4278255360,Yn.push(er),Yn.push(tr)}return new p.init(Yn,qn)},clone:function(){for(var Rn=m.clone.call(this),Bn=Rn._state=this._state.slice(0),w=0;w<25;w++)Bn[w]=Bn[w].clone();return Rn}});h.SHA3=m._createHelper(j),h.HmacSHA3=m._createHmacHelper(j)}(Math),f.SHA3})}(sha3)),sha3.exports}var ripemd160={exports:{}},hasRequiredRipemd160;function requireRipemd160(){return hasRequiredRipemd160||(hasRequiredRipemd160=1,function(c,u){(function(f,d){c.exports=d(requireCore())})(commonjsGlobal,function(f){/** @preserve
62
62
  (c) 2012 by Cédric Mesnil. All rights reserved.
63
63
 
64
64
  Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
@@ -100,7 +100,7 @@ version: 2.9.0
100
100
  `),formatMoney=(c,u=2)=>{const f=parseFloat(c+"");return isNaN(f)?c:f.toFixed(u).replace(/(\d)(?=(\d{3})+\.)/g,"$1,")},formatThousands=c=>{const u=parseFloat(c+"");return isNaN(u)?c:(u+"").replace(/\B(?=(\d{3})+(?!\d))/g,",")},formatPercentage=(c,u=2)=>{const f=c+"";if(f.includes("%"))return c;const d=parseFloat(f);return isNaN(d)?c:`${(d*100).toFixed(u)}%`},formatDecimals=(c,u=2)=>{const f=c+"",d=parseFloat(f);return isNaN(d)?c:d.toFixed(u)},formatCustom=(c,u)=>Fn(u,c),getFixedValueDatas=c=>{const{leftAxisList:u=[],rightAxisList:f=[],queryColumnList:d=[],indicators:h=[]}=c;return[...u,...f,...d,...h].filter(v=>(v==null?void 0:v.calcType)==="COMPONENT").map(v=>({keyName:v.builtInCalcWay,id:v.builtInValueSource}))},canRequestIndicator=(c,u)=>{let f=!0;const d=getFixedValueDatas(c);return d!=null&&d.length&&(f=d.map(h=>u[h.id]).every(h=>h)),f},getLegendFormat=(c,u)=>{var p;const f=c.match(/\{(.+?)\}/g),d=((p=c.split(`
101
101
  `))==null?void 0:p.length)-1;let h="";if(d)for(let m=0;m<d;m++)h+=`
102
102
  `;let v=c;if(f!=null&&f.length){for(const m of f){const g=hn(m,{textData:u},{useNewline:!1,useSpace:!1});g&&(v=v.replace(m,g))}return`${h}{text|${v}}`}else return c},setDefaultRangeVal=(c,u)=>{const{props:f,componentList:d,getGlobalModel:h}=c,{graphicConfig:v={},startValue:p,endValue:m}=f,g=getdefCompleteData({graphicConfig:v,startValue:p,endValue:m,componentList:d,getGlobalModel:h}),{dimensions:y,dataset:b}=u,{classificationList:Pn=[]}=v,gn=Pn.find(J=>J.show).label||"";for(const J of g)!y.find(j=>+j==+J)&&!isNaN(+J)&&y.push(+J);y.sort((J,j)=>dayjs(J).isBefore(dayjs(j))?-1:1);for(const J of b){const{data:j}=J;if(j!=null&&j.length){const Rn=[];for(const Bn of g)if(!j.find(w=>+w[gn]==+Bn)&&!isNaN(+Bn)){const w=lodashEs.cloneDeep(j[0]);for(const vn in w)vn===gn?w[vn]=+Bn:w[vn]=0;Rn.push(w)}J.data.push(...Rn),J.data.sort((Bn,w)=>dayjs(Bn[gn]).isBefore(dayjs(w[gn]))?-1:1)}}};function getdefCompleteData(c){const{startValue:u,endValue:f,componentList:d,graphicConfig:h,getGlobalModel:v}=c,p=getVariableAndField(u),m=getVariableAndField(f),g=[];if(p&&m){const y=d.find(Pn=>Pn.keyName===p.keyName),b=d.find(Pn=>Pn.keyName===m.keyName);if(y&&b){const Pn=v(y.id),x=v(b.id),{classificationList:gn=[]}=h,J=gn.find(j=>j.show);if(J){let j="YYYY-MM";switch(J.name){case"the_year":j="YYYY";break;case"the_month":j="MM";break;case"the_day":j="DD";break;case"the_date":j=(J==null?void 0:J.dateFormat)||j;break}const Rn=getFormatStep(j);if(j){const Bn=vue.unref(Pn[p.field]),w=vue.unref(x[m.field]);let vn=dayjs(Bn);const re=dayjs(w);for(g.push(re.format(j));vn.isBefore(re);)g.push(vn.format(j)),vn=vn.add(1,Rn)}}}}return g}function getVariableAndField(c){let u=null;if(c){const f=c.match(/\{(.+?)\}/g);if(f!=null&&f.length){let d=f[0].slice(1,-1).trim();const h=d.match(/\[(.+?)\]/g);let v="";h!=null&&h.length&&(d=d.replace(h[0],""),v=h[0].slice(1,-1).trim()),u={keyName:d,field:v}}}return u}function getFormatStep(c){const u=c.split("-");let f="";if(u!=null&&u.length)switch(u[u.length-1]){case"YYYY":f="year";break;case"MM":f="month";break;case"DD":f="day";break}return f}function handleJumpLink(c,u){var Pn;const{pageMode:f,targetTemplate:d,getRecordValueByKeyName:h,setTemplateData:v}=u,p=c.linkPage||"",m=usePageUrl(f,p),g=c.href;let y=g||m;y=hn(y);const b=c.target;if(b)if(b==="event")window.parent.postMessage({type:"openPage",url:g},"*");else{const x={pageId:p,componentId:d};if((Pn=c.transParams)!=null&&Pn.length){y.includes("?")?y+="&":y+="?";const gn=[];for(const J of c.transParams){const j=h(String(J.fieldName));gn.push(`${J.keyName}=${j}`),x[J.keyName]=j}y+=gn.join("&")}b==="template"?(Object.prototype.hasOwnProperty.call(window,"oldPageId")||(window.oldPageId=""),window.oldPageId&&(window.controller.abort(),window.controller=new AbortController),window.oldPageId=p,v(x)):(b==="blank"&&(y+=`${y.includes("?")?"&":"?"}drillFlag=1`),window.open(y,"_"+b))}}function getPageUrlParams(c){var f,d;let u={};if(c){const h=(((f=window.config)==null?void 0:f.urlParams)||{})[c]||{};for(const v in h)v.includes("{")||(u[v]=h[v])}else u=((d=window.config)==null?void 0:d.requestParams)||{};return u}function getNewValueFromUrlParams(c,u,f){let d="";const{urlParams:h}=window.config;if(c&&h[c])for(const v in h[c]){const p=h[c][v];if(v===`{${u}[${f}]}`&&p){d=p;break}}return d}function getFormatWh(c,u){return typeof c=="number"?c:typeof c=="string"?parseFloat(c):c.suffix==="px"?+c.value:c.suffix==="%"?parseFloat(u)*(c.value/100):0}const hasChinese=c=>/[\u4e00-\u9fa5]/.test(c),dragModalAction=(c,u)=>{const f=document.querySelector(u);if(!f)return;f.style.cursor="move",f.style.userSelect="none";const d=f.parentElement,h=200,v=d.getBoundingClientRect(),{width:p,left:m,top:g}=v,y=window.innerWidth,b=window.innerHeight,Pn=c.clientX,x=c.clientY,gn=parseFloat(d.style.left)||0,J=parseFloat(d.style.top)||0,j=-(m+p-h-gn),Rn=y-m+gn-h,Bn=-(g-J),w=b-g+J-h,vn=qn=>{qn.preventDefault();const zn=qn.clientX-Pn,Yn=qn.clientY-x;let Wn=gn+zn,Jn=J+Yn;Wn=Math.max(j,Math.min(Wn,Rn)),Jn=Math.max(Bn,Math.min(Jn,w)),d.style.left=`${Wn}px`,d.style.top=`${Jn}px`},re=()=>{f.style.cursor="",f.style.userSelect="",document.removeEventListener("mousemove",vn),document.removeEventListener("mouseup",re)};document.addEventListener("mousemove",vn),document.addEventListener("mouseup",re)},getPageId=()=>{var u;let c=((u=window==null?void 0:window.config)==null?void 0:u.pageId)||"";if(!c){const{pathname:f}=window==null?void 0:window.location;if(f){const d=f.split("/");d!=null&&d.length&&(c=d[d.length-1])}}return c};function loopConditions(c,u,f){const d=[];for(const h of c)h[u]?d.push(...loopConditions(h[u],u,f)):h.filter?d.push({...h.filter,label:h.label}):(!f||h.dataType!=="component"&&!(h.fieldValue.startsWith("${")&&h.fieldValue.endsWith("}")))&&d.push(h);return d}const useRequestData=(c,u,f=()=>{})=>{var ar;const{requestUrl:d,requestMethod:h,requestHeaders:v,requestParams:p,requestInterval:m,isOpenRequestTimer:g,openCustomRequestData:y,projectRequestUrl:b="",getModel:Pn,requestParamsMode:x,customRequestParams:gn,dataSetParam:J,requestType:j,dataType:Rn,dataSetchecked:Bn}=c,{pageMode:w}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"})||{},{pageId:vn}=vue.inject("templateOperate",{pageId:""})||{},{contextRequestUrl:re,touchEventId:qn}=vue.inject(GLOBAL_CONFIG,{contextRequestUrl:"",touchEventId:""})||{},{getGlobalModel:zn}=vue.inject(GLOBAL_MODEL,{getGlobalModel:hr=>{}})||{},Yn=vue.inject(COMMON_OPERATE,{operateAction:(hr,sr)=>{}}),Wn=Pn||zn;let Jn=hn(d),tr=vue.unref(re)||b||"";(Rn==="request"&&Bn||j===1)&&(tr="",Jn=((ar=window.config)==null?void 0:ar.dataSetUrl)||"/api/datav/dataset/data2");const er=async(hr={})=>{var dr;if(vue.unref(w)==="design")return;if(Rn!=="request"&&Qn){clearInterval(Qn);return}if(!Jn||!h||!v)return;let sr={};for(const nr of p){const{key:lr,value:fr}=nr;if((fr==null?void 0:fr.id)==="PARENT"&&(fr!=null&&fr.prop)){const cr=(((dr=window.config)==null?void 0:dr.record)||{})[fr.prop];if(cr){const mr=cr[fr.propKey||"value"];mr&&(["date","range"].some(yr=>yn(cr==null?void 0:cr.type,yr))?sr[lr]=vue.unref(mr).format(cr.format||"YYYY-MM-DD"):sr[lr]=vue.unref(mr))}continue}if(typeof fr=="object"&&fr!=null&&fr.id){let Xn={};const{id:cr,prop:mr,propKey:gr,operate:yr}=fr;let br=!1;try{JSON.parse(cr),br=!0}catch{br=!1}cr==="THIS"?Xn=Wn(vue.unref(qn))||{}:Xn=Wn(cr)||{};const ur=vue.unref(Xn[mr]);let pr=null;if(["date","range"].some(xr=>yn(Xn==null?void 0:Xn.type,xr))){const{value:xr,type:kr,mode:vr}=yr||{};if(xr&&kr&&vr)switch(kr){case"add":pr=vue.unref(ur).add(xr,vr);break;case"minus":pr=vue.unref(ur).subtract(xr,vr);break}pr==null&&(pr=vue.unref(ur)),pr=pr&&(pr==null?void 0:pr.format((gr==null?void 0:gr.trim())||Xn.format))||""}else if(Object.prototype.toString.call(ur)==="[object Object]")gr?pr=ur[gr]:pr=mr?ur[mr]:ur;else if(yn(Xn==null?void 0:Xn.type,"select")&&vue.unref(ur)&&mr&&Array.isArray(vue.unref(ur)))pr=vue.unref(ur).map(xr=>Object.prototype.hasOwnProperty.call(xr,mr)?xr[mr]:xr);else if(br){const xr=JSON.parse(cr);console.log(xr,"urlvalue"),pr=xr.value}else pr=ur;sr[lr]=pr}else typeof fr=="object"&&!fr.id&&j===1?(console.log(fr.propKey,"value.propKey"),sr[lr]=fr.propKey):typeof fr=="string"&&(sr[lr]=hn(fr))}if(j===1){console.log(sr,"_params");const nr=Object.entries(sr);let lr=J;if(!J.param&&Array.isArray(J)){const fr={};for(const Xn of J)fr[Xn.key]=Xn.value;lr=fr}lr.param=lr.param.map((fr,Xn)=>({...fr,paramKey:nr[Xn][0],defaultValue:nr[Xn][1]||""})),sr=lr}if(x==="2"&&gn!=="{}"){const nr=JSON.parse(gn);Un(nr),nr&&(sr=nr)}function Un(nr){const lr={...sr,...getPageUrlParams(vn)};if(Array.isArray(nr))nr.forEach((fr,Xn)=>{if(typeof fr=="string"){const cr=fr.match(/\${(.+?)\}/g);if(cr!=null&&cr.length){const mr=cr[0].slice(2,-1);mr&&lr[mr]?nr[Xn]=lr[mr]:nr[Xn]=""}}else Un(fr)});else if(Object.prototype.toString.call(nr)==="[object Object]")for(const fr in nr)if(typeof nr[fr]=="string"){const Xn=nr[fr].match(/\${(.+?)\}/g);if(Xn!=null&&Xn.length){const cr=Xn[0].slice(2,-1);cr&&lr[cr]?nr[fr]=lr[cr]:nr[fr]=""}}else Un(nr[fr])}const Zn=getPageUrlParams(vn);for(const nr in Zn)Zn[nr]&&(Zn[nr]=decodeURIComponent(Zn[nr]));sr={...Zn,...hr,...sr};let Hn="";const Gn=Object.keys(sr),ir=Gn.length-1,Kn=Gn.length;Gn.forEach((nr,lr)=>{let fr=sr[nr];Object.prototype.toString.call(fr)==="[object Object]"&&(fr=JSON.stringify(fr)),lr===0?Kn!==1?Hn+=`?${nr}=${fr}&`:Hn+=`?${nr}=${fr}`:lr===ir?Hn+=`${nr}=${fr}`:Hn+=`${nr}=${fr}&`}),Jn.includes("?")&&(Hn=Hn.replace("?","&"));function or(nr){var lr;if(j===1)return{Authentication:(lr=window==null?void 0:window.config)==null?void 0:lr.indicatorToken};if(typeof nr=="string"){const fr=JSON.parse(nr),Xn=getPageUrlParams(vn);if(Object.prototype.toString.call(fr)==="[object Object]"){for(const cr in fr)if(typeof fr[cr]=="string"){const mr=fr[cr].match(/\${(.+?)\}/g);if(mr!=null&&mr.length){const gr=mr[0].slice(2,-1);gr&&Xn[gr]?fr[cr]=Xn[gr]:fr[cr]=""}}}return fr}else return nr}try{const nr=["get","head"].includes(h),lr={};let fr=nr?Jn+Hn:Jn;sr.dataSqlId&&!fr.includes("dataSqlId")&&(fr+=`${fr.includes("?")?"&":"?"}dataSqlId=${sr.dataSqlId}`),Object.prototype.hasOwnProperty.call(sr,"signal")?lr.signal=sr.signal:window.controller&&(lr.signal=window.controller.signal);const Xn=await request({baseURL:tr,url:fr,method:h,headers:v?or(v):{},data:nr?{}:sr,...lr});return f(Xn),Yn==null||Yn.operateAction("SAVE_COMPONENT_RES_DATA",{id:c.id,data:(Xn==null?void 0:Xn.data)||{}}),Xn}catch(nr){console.error(nr)}},Qn=vue.unref(w)!=="design"&&g&&(y||y===void 0)&&setInterval(er,m*1e3);return vue.onUnmounted(()=>{clearInterval(Qn)}),er},useImagePath=(c,u=!1)=>{var d;if(!c)return c;let f="";return c!=null&&c.includes("://")?f=c:f=((d=window==null?void 0:window.config)==null?void 0:d.uploadPath)+c,u&&(f=`url(${f})`),f},usePageUrl=(c,u)=>{const f=`${BASE_URL}/preview?pageId=${u}`,d=`${BASE_URL}/${u}`;return c==="preview"?f:d},useIndicatorData=(c={},u=()=>{})=>{var Pn;const{pageMode:f}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"}),{requestToken:d}=vue.inject(GLOBAL_TOKEN,{requestToken:()=>{}}),{setLoadedData:h}=vue.inject(LOADED_DATA,{setLoadedData:(x,gn)=>{}}),{getAllGlobalModel:v}=vue.inject(GLOBAL_MODEL,{getAllGlobalModel:()=>{}}),{pageId:p}=vue.inject("templateOperate",{pageId:""})||{},m=vue.inject(COMMON_OPERATE,{operateAction:(x,gn)=>{}}),g=vue.inject("componentList",[]);c.dataType==="indicator"&&d();const y=async(x={})=>{var re,qn,zn,Yn,Wn;if(vue.unref(f)==="design")return;const gn=v();h(c.id,!1);const J=En({...c,globalModel:gn,allComponentList:vue.unref(g)},x),{url:j,...Rn}=J||{},{pathname:Bn,search:w}=window==null?void 0:window.location;let vn=p||((re=window==null?void 0:window.config)==null?void 0:re.pageId);if(!vn&&Bn){const Jn=Bn.split("/");Jn!=null&&Jn.length&&(vn=Jn[Jn.length-1])}if(j&&Rn){let Jn,tr;if(c.type==="ecanIndexPanel"&&(Jn=c.theFlag),["/diagram/formData","/diagram"].includes(j)){tr={};const Qn=w.slice(1,w.length).split("&");for(const ar of Qn)if(ar){const hr=ar.split("=");if(hr[0])if(hr[0]==="userInfo")try{tr.token=(zn=(qn=JSON.parse(decodeURIComponent(hr[1])))==null?void 0:qn.baseInfo)==null?void 0:zn.hrpToken}catch(sr){console.log(sr)}else tr[hr[0]]=hr[1]}}try{const er=await request({url:`${INDICATOR_URL}${j}`,method:"post",headers:{Authentication:(Yn=window==null?void 0:window.config)==null?void 0:Yn.indicatorToken,operateContext:CONTEXT},data:{...Rn,pageId:vn,theFlag:Jn,extParam:tr},signal:((Wn=window.controller)==null?void 0:Wn.signal)||""});return x!=null&&x.isTimer&&u(er),m==null||m.operateAction("SAVE_COMPONENT_RES_DATA",{id:c.id,data:(er==null?void 0:er.data)||{}}),c.type==="ecanIndexPanel"&&(m==null||m.operateAction("SAVE_INDEX_PANEL_REQ_PARAMS",Rn)),er}catch(er){console.error(er)}}},b=vue.unref(f)!=="design"&&((Pn=c==null?void 0:c.graphicConfig)==null?void 0:Pn.pageMode)!=="design"&&c.isOpenRequestTimer&&c.requestInterval&&setInterval(()=>{y({isTimer:!0})},c.requestInterval*1e3);return vue.onUnmounted(()=>{clearInterval(b)}),y},useHrefParamsToGlobalVariables=()=>{const u=window.location.search.slice(1).split("&"),f=u.length,d={};for(let h=0;h<f;h++){const v=u[h];if(v==null||v==="")continue;const p=v.split("=");if(Array.isArray(p)){const m=p[0];m.includes("{")||(d[m]=p[1])}}window.config.requestParams={...window.config.requestParams,...d},window.config={...window.config,...d}},_sfc_main$B=vue.defineComponent({name:"EcanPageConfig",inheritAttrs:!1,props:{...pageConfigComponentProps,pageId:{type:String,default:""},customId:{type:String,default:"container"},portId:{type:String,default:"norPageConfig"}},setup(c){const{width:u,height:f,isCompatible:d}=vue.inject(GLOBAL_CONFIG,{width:null,height:null,isCompatible:null}),h=vue.inject("setPageHeight",zn=>{}),v=vue.inject("isMobile",!1),p=vue.computed(()=>{const zn={};return(!d.value||!v)&&(zn.width=u.value,zn.height=f.value),{...zn,backgroundColor:c.pageId?"transparent":c.backgroundColor,backgroundImage:useImagePath(c.backgroundImage,!0),backgroundSize:c.backgroundSize}}),m=vue.ref(0),g=vue.ref(0),y=vue.ref(0),b=vue.ref(0),Pn=vue.ref(!1),x=vue.ref();let gn;const J=()=>new Promise(zn=>{vue.nextTick(()=>{u.value&&f.value?(m.value=parseFloat(u.value),g.value=parseFloat(f.value)):(m.value=x.value.clientWidth,g.value=x.value.clientHeight),(!y.value||!b.value)&&(y.value=window.screen.width,b.value=window.screen.height),zn()})}),j=()=>{m.value&&g.value?(x.value.style.width=`${m.value}px`,x.value.style.height=`${g.value}px`):(x.value.style.width=`${y.value}px`,x.value.style.height=`${b.value}px`)};vue.watch([u,f],async()=>{c.pageId||(await J(),j(),Bn(),window.addEventListener("resize",vn),re()),Pn.value=!0},{immediate:!0});const Rn=vue.ref({});vue.provide("scaleValue",Rn);const Bn=()=>{if(d.value&&v){x.value.style.width="100%",x.value.style.height="auto",h("auto");return}const zn=document.body.clientWidth,Yn=document.body.clientHeight,Wn=m.value||y.value,Jn=g.value||b.value,tr=zn/Wn;let er=Yn/Jn;(m.value!==1920||g.value!==1080)&&(er=g.value/m.value*zn/Jn),Rn.value={widthScale:tr,heightScale:er},x.value&&(x.value.style.transform=`scale(${tr}, ${er})`),h(Rn.value)},w=vue.computed(()=>{var Yn;let zn={};return c.customId==="modalContainer"&&((Yn=vue.unref(Rn))!=null&&Yn.heightScale)&&(zn.height=100/vue.unref(Rn).heightScale+"vh"),zn}),vn=lodashEs.debounce(async()=>{await J(),Bn()},100),re=()=>{const zn=window.MutationObserver;gn=new zn(vn),gn.observe(x.value,{attributes:!0,attributeFilter:["style"],attributeOldValue:!0})},qn=()=>{gn&&(gn.disconnect(),gn.takeRecords(),gn=null)};return vue.onMounted(()=>{Pn.value=!1}),vue.onUnmounted(()=>{window.removeEventListener("resize",vn),qn()}),{style:p,container:x,ready:Pn,scaleValue:Rn,containerStyle:w}}}),PageConfig_vue_vue_type_style_index_0_scoped_eced44d2_lang="",_hoisted_1$p=["id"],_hoisted_2$f=["id"];function _sfc_render$G(c,u,f,d,h,v){return vue.openBlock(),vue.createElementBlock("div",{class:"page-config-container",id:c.customId,style:vue.normalizeStyle(c.containerStyle),ref:"container"},[c.customId!=="modalContainer"&&(c.ready||c.pageId)?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"page-config",id:c.portId,style:vue.normalizeStyle(c.style)},[vue.renderSlot(c.$slots,"default",{},void 0,!0)],12,_hoisted_2$f)):vue.createCommentVNode("",!0)],12,_hoisted_1$p)}const PageConfig=_export_sfc$1(_sfc_main$B,[["render",_sfc_render$G],["__scopeId","data-v-eced44d2"]]),EcanPageConfig=withInstall$1(PageConfig),providerConfig={contextRequestUrl:"",pageMode:"normal",theme:"light",containerMap:{},combinationMap:{},width:"1920px",height:"1080px",pageFontFamily:"",textColor:"",jumpType:"page",jumpTime:null,jumpPage:"",jumpLink:"",requestList:[],events:[],isCompatible:!0,variableList:[],drillingMode:"pivotTable",pivotTableFontSize:"16px",drillDetailUrl:""},providerConfigComponentProps=transformToComponentProps(providerConfig),_sfc_main$A=vue.defineComponent({name:"IndicatorDetailModal",components:{BorderOutlined:BorderOutlined$1,SwitcherOutlined:SwitcherOutlined$1,CloseOutlined:CloseOutlined$1,ZoomInOutlined:ZoomInOutlined$1,ZoomOutOutlined:ZoomOutOutlined$1,RedoOutlined:RedoOutlined$1},props:{theme:{type:String,default:"light"}},setup(c,{expose:u}){const f=vue.ref(!1),d=vue.ref([]),h=vue.ref(!1),v=vue.ref(),p=vue.ref(!0),m=vue.ref(1),g=vue.inject("isMobile",!1),y=vue.computed(()=>c.theme),b=vue.computed(()=>m.value!==1?{transform:`scale(${m.value})`,transformOrigin:"left top"}:{}),Pn=async({data:zn,indicatorUrl:Yn,indicatorToken:Wn,context:Jn,pageId:tr})=>{var hr,sr;p.value=!0,h.value=!0,f.value=!0;let er=[];const{graphicConfig:Qn,theFlag:ar}=vue.unref(zn)||{};if(Qn){const{leftAxisList:Un=[],rightAxisList:Zn=[],indicators:Hn=[]}=Qn,Gn=Un.concat(Zn).concat(Hn);Gn!=null&&Gn.length&&(er=Gn.map(ir=>({calcType:ir.calcType||"COLUMN",columnName:ir.name,hrpIndexCode:ir.indexCode,hrpIndexCodeNum:ir.indexCodeNum,label:ir.label,show:ir.show,formula:ir.formula})))}if(er!=null&&er.length)try{const Un=await request({url:`${vue.unref(Yn)}/diagram/obtainIndicatorInfo`,method:"post",headers:{Authentication:Wn,operateContext:Jn},data:{source:"INDICATOR_LIB",pageId:tr,indicatorList:er,theFlag:ar}}),Zn=((hr=Un==null?void 0:Un.data)==null?void 0:hr.data)||[];(sr=Zn[0])!=null&&sr.remark?(v.value=Zn[0].remark,d.value=[]):(v.value=null,d.value=Zn)}catch{}finally{h.value=!1}vue.nextTick(()=>{J(!0),j(!0)})},x=()=>document.querySelector("#modalContainer")||document.body,gn=vue.computed(()=>{let zn="ind-detail-modal";return(p.value||vue.unref(g))&&(zn+=" full",vue.unref(g)&&(zn+=" mobile")),vue.unref(y)==="darkBlue"&&(zn+=" darkBlue"),zn}),J=zn=>{const Yn=document.querySelector(".ind-detail-modal .ant-modal-header");Yn&&(zn?Yn.addEventListener("dblclick",Bn):Yn.removeEventListener("dblclick",Bn))},j=zn=>{const Yn=document.querySelector(".ind-detail-modal .ant-modal-header");if(Yn)if(zn)Yn.addEventListener("mousedown",Rn);else{const Wn=Yn.parentElement;Wn&&(Wn.style.left="",Wn.style.top=""),Yn.removeEventListener("mousedown",Rn)}};function Rn(zn){dragModalAction(zn,".ind-detail-modal .ant-modal-header")}const Bn=()=>{p.value=!p.value,vue.nextTick(()=>{p.value?j(!1):j(!0)})},w=()=>{J(!1),j(!1)},vn=()=>{m.value+=.5},re=()=>{vue.unref(m)>1&&(m.value-=.5)},qn=()=>{m.value=1};return vue.watch(m,zn=>{localStorage.setItem("indDetailZoom",String(zn))}),vue.watch(f,zn=>{zn?document.documentElement.style.overflow="hidden":document.documentElement.style.overflow="hidden auto"}),vue.onMounted(()=>{var Yn,Wn;const zn=localStorage.getItem("indDetailZoom");if(zn&&(m.value=+zn),vue.unref(g)){const Jn=document.querySelector("#modalContainer");p.value=!0,(Yn=Jn==null?void 0:Jn.style)==null||Yn.setProperty("--window-screen-width",document.body.clientWidth+"px"),(Wn=Jn==null?void 0:Jn.style)==null||Wn.setProperty("--window-screen-height",document.body.clientHeight+"px")}}),u({showModal:Pn}),{visible:f,dataList:d,isLoading:h,hasOwn:mn,remarkData:v,wrapClassName:gn,isIndFullScreen:p,infoStyle:b,indDetailZoom:m,isMobile:g,getContainer:x,toggleFullScreen:Bn,onDetailCancel:w,handleZoomIn:vn,handleZoomOut:re,handleResetZoom:qn}}}),IndicatorDetailModal_vue_vue_type_style_index_0_scoped_3af47b3e_lang="",IndicatorDetailModal_vue_vue_type_style_index_1_lang="",_withScopeId$7=c=>(vue.pushScopeId("data-v-3af47b3e"),c=c(),vue.popScopeId(),c),_hoisted_1$o=_withScopeId$7(()=>vue.createElementVNode("div",{class:"modal-title"},"指标详情",-1)),_hoisted_2$e={class:"zoom-btn"},_hoisted_3$7={key:0,class:"spin-container"},_hoisted_4$6=["innerHTML"],_hoisted_5$4={class:"index-name"},_hoisted_6$4={key:0,class:"card-row"},_hoisted_7$4=_withScopeId$7(()=>vue.createElementVNode("div",{class:"label"},"计量单位:",-1)),_hoisted_8$4={class:"content"},_hoisted_9$3={key:1,class:"card-row"},_hoisted_10$3=_withScopeId$7(()=>vue.createElementVNode("div",{class:"label"},"指标定义:",-1)),_hoisted_11$3={class:"content"},_hoisted_12$3={key:2,class:"card-row"},_hoisted_13$3=_withScopeId$7(()=>vue.createElementVNode("div",{class:"label"},"计算方法:",-1)),_hoisted_14$3={class:"content"},_hoisted_15$2={key:3,class:"card-row"},_hoisted_16$1=_withScopeId$7(()=>vue.createElementVNode("div",{class:"label"},"指标说明:",-1)),_hoisted_17$1={class:"content"};function _sfc_render$F(c,u,f,d,h,v){const p=vue.resolveComponent("close-outlined"),m=vue.resolveComponent("redo-outlined"),g=vue.resolveComponent("zoom-out-outlined"),y=vue.resolveComponent("zoom-in-outlined"),b=vue.resolveComponent("switcher-outlined"),Pn=vue.resolveComponent("border-outlined"),x=vue.resolveComponent("a-spin"),gn=vue.resolveComponent("a-modal");return vue.openBlock(),vue.createBlock(gn,{visible:c.visible,"onUpdate:visible":u[0]||(u[0]=J=>c.visible=J),width:"55%",getContainer:c.getContainer,footer:null,destroyOnClose:!0,bodyStyle:{maxHeight:c.isIndFullScreen?"":"70vh",height:c.isIndFullScreen?"100vh":"",overflow:"auto",padding:"20px 24px 24px"},"wrap-class-name":c.wrapClassName,onCancel:c.onDetailCancel},{title:vue.withCtx(()=>[_hoisted_1$o]),closeIcon:vue.withCtx(()=>[vue.createVNode(p,{class:vue.normalizeClass(["close-icon",c.theme])},null,8,["class"])]),default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_2$e,[c.indDetailZoom>1?(vue.openBlock(),vue.createBlock(m,{key:0,class:"modal-icon",title:"还原",onClick:c.handleResetZoom},null,8,["onClick"])):vue.createCommentVNode("",!0),c.indDetailZoom>1?(vue.openBlock(),vue.createBlock(g,{key:1,class:"modal-icon",title:"缩小内容",onClick:c.handleZoomOut},null,8,["onClick"])):vue.createCommentVNode("",!0),vue.createVNode(y,{class:"modal-icon",title:"放大内容",onClick:vue.withModifiers(c.handleZoomIn,["stop","prevent"])},null,8,["onClick"]),!c.isMobile&&c.isIndFullScreen?(vue.openBlock(),vue.createBlock(b,{key:2,class:vue.normalizeClass(["modal-icon",c.theme]),title:"取消全屏",onClick:c.toggleFullScreen},null,8,["class","onClick"])):c.isMobile?vue.createCommentVNode("",!0):(vue.openBlock(),vue.createBlock(Pn,{key:3,class:vue.normalizeClass(["modal-icon",c.theme]),title:"全屏",onClick:c.toggleFullScreen},null,8,["class","onClick"]))]),c.isLoading?(vue.openBlock(),vue.createElementBlock("div",_hoisted_3$7,[vue.createVNode(x,{size:"large"})])):(vue.openBlock(),vue.createElementBlock("div",{key:1,class:"info-container",style:vue.normalizeStyle(c.infoStyle)},[c.remarkData?(vue.openBlock(),vue.createElementBlock("div",{key:0,innerHTML:c.remarkData},null,8,_hoisted_4$6)):c.dataList.length?(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,{key:1},vue.renderList(c.dataList,(J,j)=>(vue.openBlock(),vue.createElementBlock("div",{class:"detail-wrap",key:j},[vue.createElementVNode("div",_hoisted_5$4,vue.toDisplayString(J.indexName||"--"),1),c.hasOwn(J,"theUnit")?(vue.openBlock(),vue.createElementBlock("div",_hoisted_6$4,[_hoisted_7$4,vue.createElementVNode("div",_hoisted_8$4,vue.toDisplayString(J.theUnit||"--"),1)])):vue.createCommentVNode("",!0),c.hasOwn(J,"meaning")?(vue.openBlock(),vue.createElementBlock("div",_hoisted_9$3,[_hoisted_10$3,vue.createElementVNode("div",_hoisted_11$3,vue.toDisplayString(J.meaning||"--"),1)])):vue.createCommentVNode("",!0),c.hasOwn(J,"theFormula")?(vue.openBlock(),vue.createElementBlock("div",_hoisted_12$3,[_hoisted_13$3,vue.createElementVNode("div",_hoisted_14$3,vue.toDisplayString(J.theFormula||"--"),1)])):vue.createCommentVNode("",!0),c.hasOwn(J,"theExplain")?(vue.openBlock(),vue.createElementBlock("div",_hoisted_15$2,[_hoisted_16$1,vue.createElementVNode("div",_hoisted_17$1,vue.toDisplayString(J.theExplain||"--"),1)])):vue.createCommentVNode("",!0)]))),128)):vue.createCommentVNode("",!0)],4))]),_:1},8,["visible","getContainer","bodyStyle","wrap-class-name","onCancel"])}const IndicatorDetailModal=_export_sfc$1(_sfc_main$A,[["render",_sfc_render$F],["__scopeId","data-v-3af47b3e"]]),lineProps={...props$1,id:"",name:"折线图",keyName:"折线图",type:"ecanLine",width:"400px",height:"400px",top:"",left:"",rotate:"",data:[{name:"名称一",value:235,type:"类型一"},{name:"名称二",value:280,type:"类型一"},{name:"名称三",value:230,type:"类型一"},{name:"名称四",value:335,type:"类型一"}],titleText:"",titleFontSize:"12px",titleColor:"#333",fontWeight:400,textAlign:"left",titleSubtext:"",titleLeft:"",legendShow:!0,legendOrient:"horizontal",legendTextStyleColor:"#333",legendTop:"top",legendLeft:"center",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],symbolSize:4,lineStyleWidth:2,smooth:!1,xAxisLabelWidth:void 0,xAxisLabelRotate:0,xAxisLabelOverflow:"none",xAxisLabelInterval:0,xAxisSplitLineShow:!0,xAxisSplitAreaShow:!1,xAxisSplitLineInterval:0,xAxisSplitLineStyleColor:"#333",xAxisLabelColor:"#333",xAxisLineShow:!0,xAxisLineStyleColor:"#333",xAxisTickShow:!0,xAxisLabelFormatter:"{value}",xAxisMinInterval:0,yAxisMinInterval:0,yAxisSplitLineShow:!0,yAxisSplitAreaShow:!1,yAxisSplitLineStyleColor:"#333",yAxisLabelColor:"#333",yAxisLineStyleColor:"#333",yAxisLineAlwaysDisplay:!1,yAxisLabelFormatter:"{value}",gridContainLabel:!0,gridTop:"10%",gridBottom:"10%",gridLeft:"5%",gridRight:"5%",valueTypeDataFieldNames:{name:"name",value:"value",type:"type"},keyTypeDataFieldNames:{name:"name",types:[]},dataFieldConfigType:"value",graphicConfig:{},tooltipShow:!0,tooltipFormatter:"{marker} {a} {c}",toolboxShow:!1,toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息",areaStyleOpacity:0,areaGradientShow:!1,areaGradientColor:"",isBoundaryGap:!0,yAxisLabelShow:!0,yAxisSplitLineType:"solid",legendItemGap:10,legendItemWidth:25,legendItemHeight:14,legendType:"",shadowColor:"",shadowBlur:0,shadowOffsetY:0,shadowOffsetX:0,legendFontSize:"12px",xAxisLabelFontSize:"12px",yAxisLabelFontSize:"12px",graphicType:"ecanLine",tooltipPosition:"",isShowMarkLine:!1,markLineType:"average",legendFormatter:"{name}",legendWidth:null,legendHeight:null,legendTextWidth:null,legendScroll:!1,yAxisName:"",xAxisName:"",xAxisMaxValue:null,yAxisMaxValue:null,xAxisLabelShow:!0,tooltipTextStyleColor:"",noDataTip:!1,tipText:"暂无数据",tipTextColor:"#000000",tipTextFontSize:"18px",defaultRangeValue:!1,startValue:"",endValue:"",isForbidClick:!1},lineComponentProps=transformToComponentProps(lineProps),lineEvents=["click","refreshData","resetRecord"],useDownloadFile=async c=>{var g;const u=await request.post(c,{},{responseType:"blob"}),{data:f,headers:d}=u,h=d["content-disposition"].replace(/\w+;filename=(.*)/,"$1"),v=new Blob([f]),p=document.createElement("a"),m=window.URL.createObjectURL(v);p.href=m,p.download=decodeURI(h),p.style.display="none",document.body.appendChild(p),p.click(),(g=p.parentNode)==null||g.removeChild(p),window.URL.revokeObjectURL(m)},modalProps={id:"",type:"ecanModal",title:"",titleFontSize:"14px",titleColor:"",width:"1000px",height:"800px",originalWidth:"1920px",originalHeight:"1080px",backgroundColor:"#fff",backgroundImage:"",backgroundSize:"100% 100%",keyName:"弹窗",componentList:[],fullModal:!1,destroyOnClose:!0,position:"default",closeBtnColor:"#333",isShowCloseBtn:!0,events:[],borderRadius:"0",borderWidth:"0px",borderColor:"",boxShadow:"0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 9px 28px 8px rgba(0, 0, 0, 0.05)",allComponentList:[],requestList:[],parentIframeId:"",banScale:!1},modalComponentProps=transformToComponentProps(modalProps),modalEvents=["showModal","hideModal"],containerType=["ecanBorder","ecanTabs","ecanCirculate"];function handleScrollCombinations(c){const{containerMap:u={},sourceList:f=[],pageConfig:d={}}=c,h=lodashEs.cloneDeep(c.componentList),v=h.filter(p=>p.type==="ecanTabs"&&p.isAutoScroll);if(v!=null&&v.length)for(const p of v){const m=u[p.id],g=[];if((!mn(p,"componentList")||!(p!=null&&p.componentList))&&(p.componentList=[]),m){let y=0;for(const b in m){const Pn=m[b],x=[];if(Pn!=null&&Pn.length)for(const gn of Pn){let J=h.find(j=>j.id===gn);J||(J=f.find(j=>j.id===gn)),J&&(x.push(J),containerType.includes(J.type)&&x.push(...getComponentByContainer(J.id,u,f)))}for(const gn of x)mn(gn,"scale")?parseFloat(b)>0&&(gn.left=parseFloat(gn.left)+y+"px"):(gn.left=parseFloat(gn.sourceLeft||gn.left)-parseFloat(p.sourceLeft||p.left)+y+"px",gn.top=parseFloat(gn.sourceTop||gn.top)-parseFloat(p.sourceTop||p.top)+"px"),g.includes(gn.id)||g.push(gn.id);p.componentList.push(...x),y=getMaxLeftInComponents(x,d)}}for(const y of g){const b=h.findIndex(Pn=>Pn.id===y);b!==-1&&h.splice(b,1)}}return h}function compatibleMobileList(c){var m,g,y;const u=document.body.clientWidth,{combinationMap:f={},sourceList:d=[],pageConfig:h={}}=c,v=c.containerMap,p=lodashEs.cloneDeep([...c.componentList,...getTabsSomeComponentList(v,d)]);if(handleContainerMap(v,p),(m=Object.keys(v))!=null&&m.length||(g=Object.keys(f))!=null&&g.length){for(const j in v){const Rn=p.find(Bn=>Bn.id===j);if(Rn){if(Rn!=null&&Rn.isFlowGrid){Rn.sourceLeft=Rn.left,Rn.sourceTop=Rn.top;continue}mn(Rn,"parentId")||(Rn.parentId="",Rn.sourceLeft=Rn.left,Rn.sourceTop=Rn.top);for(const Bn in v[j])if(v[j][Bn])for(const w of v[j][Bn]){const vn=p.find(re=>re.id===w);if(vn&&(vn.parentId=j,vn.sourceLeft=vn.left,vn.sourceTop=vn.top,vn.left=parseFloat(vn.left)-parseFloat(Rn.sourceLeft||Rn.left)+"px",vn.top=parseFloat(vn.top)-parseFloat(Rn.sourceTop||Rn.top)+"px",vn.type==="ecanIndexPanel")){const{componentIds:re}=vn;for(const qn of re){const zn=p.find(Yn=>Yn.id===qn);zn&&(zn.left=parseFloat(zn.left)-parseFloat(vn.sourceLeft)+"px",zn.top=parseFloat(zn.top)-parseFloat(vn.sourceTop)+"px")}}}}}const b=Array.from(new Set(p.filter(j=>(!mn(j,"parentId")||j.parentId==="")&&j.combinationId).map(j=>j.combinationId))),Pn=getCombinationList(b,{...c,componentList:p,pageConfig:h});Pn!=null&&Pn.length&&p.unshift(...Pn);const x=["ecanPie","ecanLine","ecanBar","ecanScatter","ecanComboGraph","ecanCustomGraph","ecanRadar","ecanMap","ecanTable"],gn=p.filter(j=>x.includes(j.type)&&!mn(j,"parentId")),J=[];for(const j of gn)if(j){const Rn=j.id+"_vir";if(J.push({id:Rn,keyName:j.keyName+"_vir",parentId:"",type:"ecanBorder",borderRadius:"",borderWidth:null,width:u,height:getFormatWh(j.height,h==null?void 0:h.height),left:j.left,top:j.top,sourceLeft:j.left,sourceTop:j.top}),j.parentId=Rn,j.sourceLeft=j.left,j.sourceTop=j.top,j.left=10,j.top=0,j.width=u-20+"px",j.type==="ecanTable"){const{columns:Bn=[]}=j;j.scrollX="max-content";for(const w of Bn)(y=w==null?void 0:w.width)!=null&&y.includes("%")&&(w.width=parseFloat(w.width)/100*u+"px")}}J!=null&&J.length&&p.unshift(...J);for(const j of p){if(j.parentId===""&&containerType.includes(j.type))j.sourceWidth=getFormatWh(j.width,h==null?void 0:h.width),j.height=(u/(j.sourceWidth/getFormatWh(j.height,h==null?void 0:h.height))).toFixed(2)+"px",j.width="100%",j.position="relative",j.top="auto",j.left="auto";else{const Rn=p.find(Bn=>Bn.id===j.parentId);if((Rn==null?void 0:Rn.parentId)===""){const Bn=Rn.sourceWidth||getFormatWh(Rn.width,h==null?void 0:h.width),w=u/Bn;j.scale=w,j.top=parseFloat(j.top)*w-getFormatWh(j.height,h==null?void 0:h.height)*(1-w)/2+"px",j.left=parseFloat(j.left)*w-getFormatWh(j.width,h==null?void 0:h.width)*(1-w)/2+"px"}}j.type==="ecanModal"&&(j.parentId="",j.fullModal=!0)}return sortList(p)}return p}function handleContainerMap(c,u){const f=lodashEs.cloneDeep(c),d=u.filter(h=>h.type==="ecanTabs"&&h.isAutoScroll);if(d!=null&&d.length)for(const h of d){const v=f[h.id];for(const p in v)for(const m of v[p]){const g=u.find(y=>y.id===m);if(g&&containerType.includes(g.type)){const y=getComponentByContainer(g.id,f,u);for(const b of y)c[h.id][p].push(b.id),containerType.includes(b.type)&&delete c[b.id];delete c[g.id]}}}}function getTabsSomeComponentList(c,u){const f=[],d=u.filter(h=>h.type==="ecanTabs"&&h.isAutoScroll);if(d!=null&&d.length)for(const h of d){const v=c[h.id];for(const p in v)if(parseFloat(p)>0)for(const m of v[p]){const g=u.find(y=>y.id===m);g&&(f.push(g),containerType.includes(g.type)&&f.push(...getComponentByContainer(g.id,c,u)))}}return f}function getComponentByContainer(c,u,f){const d=[],h=u[c];for(const v in h)for(const p of h[v]){const m=f.find(g=>g.id===p);m&&(d.push(m),containerType.includes(m.type)&&d.push(...getComponentByContainer(m.id,u,f)))}return d}function getCombinationList(c,u,f){const{combinationMap:d={},componentList:h=[],pageConfig:v={}}=u,p=[];for(const m of c){const g=d[m];if(g!=null&&g.length){const y=h.filter(b=>g.includes(b.id));if(y!=null&&y.length){const b=getCombinateRect(y,v);if(b){p.push({...b,id:m,keyName:m,parentId:f||"",type:"ecanBorder",borderRadius:"",borderWidth:null,sourceLeft:b.left,sourceTop:b.top});for(const Pn of y)Pn&&(Pn.parentId=m,Pn.sourceLeft=Pn.left,Pn.sourceTop=Pn.top,Pn.left=parseFloat(Pn.left)-parseFloat(b.left)+"px",Pn.top=parseFloat(Pn.top)-parseFloat(b.top)+"px")}}}}return p}function sortList(c){const f=c.filter(d=>d.parentId===""||(d==null?void 0:d.isFlowGrid));if(f!=null&&f.length){const d=lodashEs.cloneDeep(f).map(h=>({...h,sourceTop:parseFloat(h.sourceTop),sourceLeft:parseFloat(h.sourceLeft)}));for(let h=0;h<d.length-1;h++)for(let v=0;v<d.length-h-1;v++){let p=!1;if((d[v].sourceTop-d[v+1].sourceTop>40||Math.abs(d[v+1].sourceTop-d[v].sourceTop)<=40&&d[v].sourceLeft>d[v+1].sourceLeft)&&(p=!0),p){const m=d[v];d[v]=d[v+1],d[v+1]=m}}for(const h of d){const v=c.findIndex(p=>p.id===h.id);v!==-1&&c.splice(v,1)}return[...d,...c]}return c}function getCombinateRect(c,u){const f=c.sort((p,m)=>parseFloat(p.top)-parseFloat(m.top))[0],d=c.sort((p,m)=>parseFloat(p.left)-parseFloat(m.left))[0],h=c.map(p=>({...p,computedTop:parseFloat(p.top)+getFormatWh(p.height,u==null?void 0:u.height)})).sort((p,m)=>m.computedTop-p.computedTop)[0],v=c.map(p=>({...p,computedLeft:parseFloat(p.left)+getFormatWh(p.width,u==null?void 0:u.width)})).sort((p,m)=>m.computedLeft-p.computedLeft)[0];return f&&d&&h&&v?{left:d.left,top:f.top,width:v.computedLeft-parseFloat(d.left)+"px",height:h.computedTop-parseFloat(f.top)+"px"}:null}function getMaxLeftInComponents(c,u){const f=c.map(d=>parseFloat(d.left)+getFormatWh(d.width,u==null?void 0:u.width)).sort((d,h)=>h-d)[0];return f||0}function moveToComponentList(c,u,f){const d=c[f],h=[];if(d)for(const v in d){const p=d[v];for(const m of p){const g=u.find(y=>y.id===m);g&&(h.push(g),containerType.includes(g.type)&&h.push(...getComponentByContainer(g.id,c,u)))}}return h}const _sfc_main$z=vue.defineComponent({name:"Render",props:{component:{type:Object,default:()=>{}}},setup(c,{emit:u}){u("ready",c.component.id)}});function _sfc_render$E(c,u,f,d,h,v){return c.component.parentId?(vue.openBlock(),vue.createBlock(vue.Teleport,{key:0,to:"#container_"+c.component.parentId},[(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(c.component.type),vue.mergeProps({style:{scale:c.component.scale}},c.component),null,16,["style"]))],8,["to"])):(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(c.component.type),vue.normalizeProps(vue.mergeProps({key:1},c.component)),null,16))}const Render=_export_sfc$1(_sfc_main$z,[["render",_sfc_render$E]]),EcanRender=withInstall$1(Render),_sfc_main$y=vue.defineComponent({name:"EcanModal",components:{AModal:antDesignVue.Modal,CloseOutlined:CloseOutlined$1,Render:EcanRender},props:{...modalComponentProps},setup(c,{emit:u}){const f=vue.ref([]),d=vue.inject("isMobile",!1),{width:h,height:v}=vue.inject(GLOBAL_CONFIG,{width:null,height:null}),p=vue.computed(()=>c.fullModal),m=vue.inject("getContainerMap",()=>{}),g=vue.inject("getCombinationMap",()=>{}),{clearInteractiveData:y,interactiveData:b,setRequestData:Pn}=vue.inject(GLOBAL_MODEL,{setRequestData:(xr,kr)=>{},clearInteractiveData:()=>{},interactiveData:null}),x=()=>document.getElementById("ProviderConfig")||document.body,gn=vue.computed(()=>{const xr=c.position;return{verticalAlign:{default:"",top:"top",center:"middle",bottom:"bottom"}[xr]}}),J=c.fullModal?"1920px":c.width,j=c.fullModal?"1080px":c.height,Rn=c.originalWidth,Bn=c.originalHeight,w=vue.ref("80%"),vn=vue.ref(0),re=vue.ref(),qn=vue.ref(0),zn=vue.ref({}),Yn=usePickComponentStyle(c),Wn=vue.ref({}),Jn=vue.ref(!1),tr=vue.ref();let er;const Qn=()=>{re.value=parseFloat(J)/parseFloat(Rn);const xr=parseFloat(j)/parseFloat(Bn),kr=document.body.offsetWidth,vr=document.body.offsetHeight;if(vn.value=kr*vue.unref(re),qn.value=vr*xr,w.value=`${vue.unref(re)*100}%`,zn.value={width:`${vue.unref(vn)}px`,height:`${vue.unref(qn)}px`,border:`${c.borderWidth} solid ${c.borderColor}`,borderRadius:c.borderRadius+"px",boxShadow:c.boxShadow},Wn.value={...vue.unref(Yn),backgroundImage:useImagePath(c.backgroundImage,!0)},d)Wn.value={...Wn.value,width:"100%",height:"100%"};else{const Sr={...Wn.value,width:J,height:j};c.banScale&&vue.unref(p)?(Sr.width="100%",Sr.height="100%"):Sr.transform=`scale(${vue.unref(vn)/parseFloat(J)},${vue.unref(qn)/parseFloat(j)})`,Wn.value=Sr}},ar=lodashEs.debounce(()=>{Qn()},100),hr=()=>{const xr=window.MutationObserver;er=new xr(ar),er.observe(document.body,{attributes:!0,attributeFilter:["style"],attributeOldValue:!0})},sr=()=>{er&&(er.disconnect(),er.takeRecords(),er=null)},Un=vue.ref(!1),{touchRequest:Zn}=vue.inject(REQUEST_MODEL,{touchRequest:()=>{}}),Hn=vue.ref(""),Gn=()=>{var vr;const{title:xr}=c,kr=(vr=vue.unref(b))==null?void 0:vr.RECORD;return kr?hn(xr,{textData:kr},{useNewline:!1,useSpace:!1}):xr},ir=useEmitEvent(c),Kn=xr=>{const{changeIframeStyle:kr}=window.parent;kr&&typeof kr=="function"&&kr({iframeId:c.parentIframeId||"",action:xr})},or=()=>{vue.unref(p)&&Kn("open"),d&&(document.documentElement.style.overflow="hidden"),Hn.value=Gn(),Un.value=!0},dr=ir("hideModal",()=>{vue.unref(p)&&Kn("close"),u("close"),d&&(document.documentElement.style.overflow="hidden auto",f.value=[]),Un.value=!1}),nr=()=>{dr()},lr=()=>{dr(),y()},{setModalModel:fr,pushUseModalIds:Xn,popUseModalIds:cr}=vue.inject(MODAL_MODEL,{pushUseModalIds:xr=>{},popUseModalIds:()=>{},setModalModel:(xr,kr)=>{}}),mr=vue.computed(()=>{let xr=c.componentList;const kr=lodashEs.cloneDeep(c.componentList),vr=m(),Sr=g(),Cr={containerMap:vr,combinationMap:Sr};d&&(xr=compatibleMobileList({...Cr,componentList:kr,sourceList:c.allComponentList,pageConfig:{width:vue.unref(h),height:vue.unref(v)}})),xr=handleScrollCombinations({...Cr,componentList:xr,sourceList:c.allComponentList,pageConfig:{width:vue.unref(h),height:vue.unref(v)}});const Tr=[];for(const Er of xr)if(Er.type==="ecanCirculate"){const Mr=moveToComponentList(vr,vue.unref(kr),Er.id);Er.componentList=Mr,Tr.push(...Mr.map(Br=>Br.id))}else if(Er.type==="ecanTable"){const{headerFontSize:Mr,fontSize:Br,size:Kr,bodyRowHeight:Lr,headRowHeight:Nr}=Er;if(!Lr||!Nr)if(Er.size){let qr=0;switch(Kr){case"default":qr=16;break;case"middle":qr=12;break;case"small":qr=8;break}Lr||(Er.bodyRowHeight=(qr*2+parseFloat(Br)*1.5715).toFixed(0)+"px"),Nr||(Er.headRowHeight=(qr*2+parseFloat(Mr)*1.5715).toFixed(0)+"px")}else Lr||(Er.bodyRowHeight="54px"),Nr||(Er.headRowHeight="54px")}if(Tr!=null&&Tr.length)for(const Er of Tr){const Mr=xr.findIndex(Br=>Br.id===Er);Mr!==-1&&xr.splice(Mr,1)}return xr}),gr=()=>{const xr=c.id;let kr=[];const vr=c.componentList;Array.isArray(vr)&&(kr=vr.map(Sr=>Sr.id),fr(xr,[...new Set(kr)]))},yr=vue.ref(!1),br={};for(const xr of c.requestList)br[xr.requestName]=useRequestData(xr);vue.watch(()=>Un.value,async xr=>{if(xr)Jn.value=!1,Xn(c.id),gr(),await vue.nextTick(()=>{Qn(),window.addEventListener("resize",ar),hr(),Jn.value=!0}),Zn();else{if(Pn)for(const kr in br)Pn(kr,{});cr(),window.removeEventListener("resize",ar),sr()}});const ur=vue.computed(()=>vue.unref(re)>=1),pr=vue.computed(()=>{let xr="ecan-modal";return vue.unref(ur)&&(xr+=" ecan-full-width-modal"),vue.unref(p)&&(xr+=" ecan-full-modal"),xr});return useOnEvent(c,{showModal:or,hideModal:dr}),{modalRef:tr,containStyle:zn,contentStyle:Wn,getContainer:x,modalStyle:gn,modalWith:w,isFullModal:p,style:Yn,visible:Un,showModal:or,onOk:nr,onCancel:lr,isFullWidth:ur,wrapClassName:pr,ready:Jn,usedComponentList:mr,isMobile:d,readyIds:f,hasOwn:mn,onComponentReady:xr=>{f.value.push(xr)},formatTitle:Hn,requestLoaded:yr}}}),Modal_vue_vue_type_style_index_0_scoped_cb5d6923_lang="",Modal_vue_vue_type_style_index_1_lang="";function _sfc_render$D(c,u,f,d,h,v){const p=vue.resolveComponent("close-outlined"),m=vue.resolveComponent("render"),g=vue.resolveComponent("a-modal");return vue.openBlock(),vue.createBlock(g,{getContainer:c.getContainer,wrapClassName:c.wrapClassName,centered:"",visible:c.visible,footer:null,width:c.isFullModal||c.isFullWidth?"100%":c.modalWith,destroyOnClose:c.destroyOnClose,style:vue.normalizeStyle(c.modalStyle),closable:!1,onOk:c.onOk,onCancel:c.onCancel,ref:"modalRef",id:"container_"+c.id},{default:vue.withCtx(()=>[vue.createElementVNode("div",{class:"contain",ref:"containRef",style:vue.normalizeStyle(c.containStyle)},[c.ready?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"content",style:vue.normalizeStyle(c.contentStyle)},[vue.createElementVNode("div",{class:"header-bar",style:vue.normalizeStyle({backgroundColor:c.backgroundColor,padding:"20px 30px",height:c.isMobile?"62px":""})},[c.formatTitle?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"ant-modal-title",style:vue.normalizeStyle({fontSize:c.titleFontSize,color:c.titleColor})},vue.toDisplayString(c.formatTitle),5)):vue.createCommentVNode("",!0),c.isShowCloseBtn?(vue.openBlock(),vue.createBlock(p,{key:1,class:"close-icon",style:vue.normalizeStyle({color:c.closeBtnColor}),onClick:c.onCancel},null,8,["style","onClick"])):vue.createCommentVNode("",!0)],4),c.usedComponentList.length?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:vue.normalizeClass(c.isMobile?"mobile-wrap":"")},[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(c.usedComponentList,(y,b)=>(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:y.id+b},[c.isMobile?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[c.hasOwn(y,"parentId")&&(c.readyIds.includes(y.parentId)||y.parentId==="")?(vue.openBlock(),vue.createBlock(m,{key:0,component:y,onReady:c.onComponentReady},null,8,["component","onReady"])):vue.createCommentVNode("",!0)],64)):(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(y.type),vue.normalizeProps(vue.mergeProps({key:1},y)),null,16))],64))),128))],2)):vue.renderSlot(c.$slots,"default",{key:1},void 0,!0)],4)):vue.createCommentVNode("",!0)],4)]),_:3},8,["getContainer","wrapClassName","visible","width","destroyOnClose","style","onOk","onCancel","id"])}const Modal=_export_sfc$1(_sfc_main$y,[["render",_sfc_render$D],["__scopeId","data-v-cb5d6923"]]),EcanModal=withInstall$1(Modal);core$1.use([renderers.CanvasRenderer,charts.LineChart,components$1.ToolboxComponent,components$1.TitleComponent,components$1.LegendComponent,components$1.MarkLineComponent]);const _sfc_main$x=vue.defineComponent({name:"EcanLine",props:{...lineComponentProps},components:{Spin,Echarts,EcanModal},setup(c,{expose:u}){const f=vue.ref(!1),{pageMode:d,fontFamily:h}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal",fontFamily:""}),v=vue.inject("showIndDetail",ir=>{}),p=vue.inject("usedComponentList",[]),m=vue.ref(),g=vue.ref(!1),y=usePickComponentStyle(c),b=vue.ref([]),Pn=vue.ref([]),x=vue.ref(),gn=vue.computed(()=>g.value?ZOOM_FONT_SIZE:12),J=vue.ref({});let j;const Rn=vue.ref([]),Bn=vue.computed(()=>{const ir=c.xAxisLabelFormatter,Kn=c.yAxisLabelFormatter;return{textStyle:{fontFamily:vue.unref(h)},toolbox:{show:c.toolboxShow,left:c.toolboxLeft,top:c.toolboxTop,itemSize:c.toolboxItemSize,itemGap:c.toolboxItemGap,orient:c.toolboxOrient,feature:{myDownload:{show:c.toolboxDownloadShow,title:"数据下载",icon:"path://M502.010485 765.939573c3.773953 3.719718 8.686846 5.573949 13.596669 5.573949 0.075725 0 0.151449-0.010233 0.227174-0.011256 0.329505 0.016373 0.654916 0.050142 0.988514 0.050142 0.706081 0 1.400906-0.042979 2.087545-0.116657 4.352121-0.366344 8.607028-2.190899 11.961426-5.496178l335.053985-330.166675c7.619538-7.509021 7.709589-19.773346 0.200568-27.393907s-19.774369-7.711636-27.39493-0.201591L536.193005 706.304358 536.193005 50.019207c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 657.032164-306.881342-302.44838c-7.618515-7.509021-19.883863-7.419993-27.393907 0.199545-7.509021 7.619538-7.419993 19.884886 0.199545 27.393907L502.010485 765.939573z, M867.170139 711.020776c-10.698666 0-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 13.054317-10.620895 23.675212-23.676236 23.675212L205.182103 919.486668c-13.054317 0-23.676236-10.620895-23.676236-23.675212L181.505867 730.391962c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 34.416857 28.000728 62.416562 62.417585 62.416562l618.941638 0c34.417881 0 62.417585-27.999704 62.417585-62.416562L886.540302 730.391962C886.541325 719.693296 877.868805 711.020776 867.170139 711.020776z",onclick(){useDownloadFile(c.toolboxDownloadUrl)}},myDataZoom:{show:g.value?!1:c.toolboxDataZoomShow,title:"放大",icon:"path://M932.42 902.246667L792 761.793333A403.84 403.84 0 0 0 896 490.666667c0-223.86-181.473333-405.333333-405.333333-405.333334S85.333333 266.806667 85.333333 490.666667s181.473333 405.333333 405.333334 405.333333a403.84 403.84 0 0 0 271.126666-104l140.453334 140.453333a21.333333 21.333333 0 0 0 30.173333-30.173333zM128 490.666667c0-200.293333 162.373333-362.666667 362.666667-362.666667s362.666667 162.373333 362.666666 362.666667-162.373333 362.666667-362.666666 362.666666-362.666667-162.373333-362.666667-362.666666z m512 0a21.333333 21.333333 0 0 1-21.333333 21.333333H512v106.666667a21.333333 21.333333 0 0 1-42.666667 0V512H362.666667a21.333333 21.333333 0 0 1 0-42.666667h106.666666V362.666667a21.333333 21.333333 0 0 1 42.666667 0v106.666666h106.666667a21.333333 21.333333 0 0 1 21.333333 21.333334z",onclick(){var or;g.value=!0,(or=x.value)==null||or.showModal()}},myInfo:{show:c.toolboxInfoShow,title:"详情",icon:"path://M512.50142 958.397886c-119.320573 0-231.499491-46.465265-315.871087-130.837884C112.258737 743.188406 65.792449 631.010511 65.792449 511.688915c0-119.319549 46.466288-231.499491 130.837884-315.871087C281.002952 111.445208 393.180847 64.979944 512.50142 64.979944s231.499491 46.465265 315.871087 130.837884c84.372619 84.372619 130.837884 196.551538 130.837884 315.871087 0 119.321596-46.465265 231.499491-130.837884 315.871087C744.000911 911.932622 631.821993 958.397886 512.50142 958.397886zM512.50142 105.962334c-223.718271 0-405.726581 182.00831-405.726581 405.726581s182.00831 405.726581 405.726581 405.726581c223.718271 0 405.727605-182.00831 405.727605-405.726581S736.220714 105.962334 512.50142 105.962334z M510.150886 775.953647c-18.107403 0-32.745798-14.678304-32.745798-32.785707L477.405087 452.191846c0-18.108426 14.638395-32.785707 32.745798-32.785707 18.107403 0 32.745798 14.678304 32.745798 32.785707l0 290.976094C542.896684 761.275343 528.258289 775.953647 510.150886 775.953647z M511.357364 296.458969m-45.080731 0a44.054 44.054 0 1 0 90.161463 0 44.054 44.054 0 1 0-90.161463 0Z",onclick(){v(c)}}}},title:{text:c.titleText,subText:c.titleSubtext,textStyle:{fontSize:c.titleFontSize,fontWeight:c.fontWeight,color:c.titleColor},left:c.textAlign},grid:{top:c.gridTop,bottom:c.gridBottom,left:c.gridLeft,right:c.gridRight,containLabel:c.gridContainLabel},color:c.colors,tooltip:{trigger:"axis",textStyle:{fontSize:gn.value,color:c.tooltipTextStyleColor},show:c.tooltipShow,formatter:or=>{var fr;const dr=or.length;let nr="",lr=c.tooltipFormatter;j=(fr=or[0])==null?void 0:fr.data,lr===""&&(lr="{marker} {a} {c}");for(let Xn=0;Xn<dr;Xn++){const{marker:cr,seriesName:mr,name:gr,value:yr,data:br}=or[Xn]||{};if(Xn===0){let ur=gr;typeof gr=="string"&&gr[0]==="0"&&!isNaN(+gr)&&(ur=(+gr).toString()),nr+=`${Fn(ir,ur)}<br/>`}nr+=hn(lr,{textData:{marker:cr,name:gr,value:yr,a:mr,b:gr,c:yr||0,...br}},{useNewline:!0,useSpace:!0}),nr+="<br/>"}return nr},position:c.tooltipPosition||void 0},xAxis:{type:"category",boundaryGap:c.isBoundaryGap,data:vue.unref(Pn).map(or=>{let dr={};return or&&typeof or=="object"?dr={...or}:dr={value:or},dr}),minInterval:c.xAxisMinInterval,splitLine:{show:c.xAxisSplitLineShow,lineStyle:{color:c.xAxisSplitLineStyleColor},interval:c.xAxisSplitLineInterval},splitArea:{show:c.xAxisSplitAreaShow},axisLabel:{show:c.xAxisLabelShow,color:c.xAxisLabelColor,interval:c.xAxisLabelInterval||0,rotate:c.xAxisLabelRotate,width:c.xAxisLabelWidth,overflow:c.xAxisLabelOverflow,fontSize:c.xAxisLabelFontSize,formatter(or){return typeof or=="string"&&or[0]==="0"&&!isNaN(+or)&&(or=(+or).toString()),Fn(ir,or)}},axisLine:{show:c.xAxisLineShow,lineStyle:{color:c.xAxisLineStyleColor}},axisTick:{show:c.xAxisTickShow},name:c.xAxisName,nameTextStyle:{fontSize:c.xAxisLabelFontSize,color:c.xAxisLabelColor,align:"left"},max:c.xAxisMaxValue||null},yAxis:{type:"value",minInterval:c.yAxisMinInterval,splitLine:{show:c.yAxisSplitLineShow,lineStyle:{color:c.yAxisSplitLineStyleColor,type:c.yAxisSplitLineType}},splitArea:{show:c.yAxisSplitAreaShow},axisLabel:{show:c.yAxisLabelShow,fontSize:c.yAxisLabelFontSize,color:c.yAxisLabelColor,formatter(or){return Fn(Kn,or)}},axisLine:{show:c.yAxisLineAlwaysDisplay,lineStyle:{color:c.yAxisLineStyleColor}},name:c.yAxisName,nameTextStyle:{fontSize:c.yAxisLabelFontSize,color:c.yAxisLabelColor,align:"right"},max:c.yAxisMaxValue||null},legend:{type:c.legendScroll?"scroll":"plain",width:c.legendWidth,height:c.legendHeight,show:c.legendShow,orient:c.legendOrient,top:c.legendTop,left:c.legendLeft,textStyle:{lineHeight:(g.value?ZOOM_FONT_SIZE:parseFloat(c.legendFontSize))+8,rich:{text:{width:c.legendTextWidth,color:c.legendTextStyleColor,fontSize:g.value?ZOOM_FONT_SIZE:c.legendFontSize}}},itemHeight:c.legendItemHeight,itemWidth:c.legendItemWidth,itemGap:c.legendItemGap,data:vue.unref(Rn).map(or=>({name:or.name,icon:c.legendType})),formatter:or=>getLegendFormat(c.legendFormatter,{name:or})},series:vue.unref(b)}}),w=()=>{g.value=!1},{getGlobalModel:vn,setGlobalModel:re}=vue.inject(GLOBAL_MODEL,{getGlobalModel:ir=>{},setGlobalModel:(ir,Kn)=>{}}),qn=vue.computed(()=>c.isShowMarkLine?{markLine:{data:[{type:c.markLineType}]}}:{}),zn=(ir=[],Kn=!1)=>{var fr;let or;if(c.dataFieldConfigType==="key"){const Xn=Kn?c.keyTypeDataFieldNames:null;or=In(ir,Xn)}else if(c.dataFieldConfigType==="value"){const Xn=Kn?c.valueTypeDataFieldNames:null;or=Vn(ir,Xn)}Pn.value=or.dimensions,Rn.value=or.dataset;const dr=or.dataset,nr=[],lr=dr.length;for(let Xn=0;Xn<lr;Xn++){const cr={};c.shadowColor&&(cr.shadowColor=c.shadowColor,cr.shadowBlur=c.shadowBlur,cr.shadowOffsetY=c.shadowOffsetY,cr.shadowOffsetX=c.shadowOffsetX);let mr=c.colors[Xn];if(!mr&&c.colors.length){const gr=(Xn+1)%c.colors.length-1;mr=gr>0?c.colors[gr]:c.colors[0]}mr||(mr="#5470C6"),nr.push({type:"line",...dr[Xn],symbolSize:c.symbolSize,smooth:c.smooth,areaStyle:{color:c.areaGradientShow?{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:mr},{offset:1,color:c.areaGradientColor||"transparent"}],global:!1}:mr,opacity:c.areaStyleOpacity},lineStyle:{width:c.lineStyleWidth,...cr},...vue.unref(qn)})}b.value=nr,(fr=or.dataset)!=null&&fr.length?f.value=!1:f.value=!0},Yn=(ir=[],Kn,or=!1)=>{var cr,mr,gr;const nr=In(ir,or?Kn:null,!0);if(c.defaultRangeValue&&setDefaultRangeVal({props:c,componentList:vue.unref(p),getGlobalModel:vn},nr),(cr=nr.dataset)!=null&&cr.length){for(const yr of nr.dataset)if((mr=yr.data)!=null&&mr.length)for(const br of yr.data)(br.value===null||br.value===void 0)&&(br.value=0)}Pn.value=nr.dimensions,Rn.value=nr.dataset;const lr=nr.dataset,fr=[],Xn=lr.length;for(let yr=0;yr<Xn;yr++){const br={};c.shadowColor&&(br.shadowColor=c.shadowColor,br.shadowBlur=c.shadowBlur,br.shadowOffsetY=c.shadowOffsetY,br.shadowOffsetX=c.shadowOffsetX);let ur=c.colors[yr];if(!ur&&c.colors.length){const pr=(yr+1)%c.colors.length-1;ur=pr>0?c.colors[pr]:c.colors[0]}ur||(ur="#5470C6"),fr.push({type:"line",...lr[yr],symbolSize:c.symbolSize,smooth:c.smooth,areaStyle:{color:c.areaGradientShow?{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:ur||yr%(c.colors.length||1)},{offset:1,color:c.areaGradientColor||"transparent"}],global:!1}:ur,opacity:c.areaStyleOpacity},lineStyle:{width:c.lineStyleWidth,...br},...vue.unref(qn)})}b.value=fr,(gr=nr.dataset)!=null&&gr.length?f.value=!1:f.value=!0};vue.watch(()=>[c.data,c.symbolSize,c.smooth,c.lineStyleWidth,c.areaStyleOpacity,c.areaGradientShow,c.areaGradientColor,c.shadowColor,c.shadowBlur,c.shadowOffsetY,c.shadowOffsetX,c.legendFontSize,c.isShowMarkLine,c.markLineType,c.legendFormatter,c.legendWidth,c.legendHeight,c.legendTextWidth,c.legendScroll],([ir])=>{(c.dataType==="static"||vue.unref(d)==="design")&&zn(ir)},{immediate:!0,deep:!0});const Wn=vue.ref(!1),Jn=useRequestData(c),tr=async()=>{var ir,Kn;if(c.dataType==="request")try{Wn.value=!0;const or=await Jn();zn((Kn=(ir=or==null?void 0:or.data)==null?void 0:ir.data)==null?void 0:Kn.rows,!0)}catch(or){console.error(or)}finally{Wn.value=!1}},er=useEmitEvent(c);re(c.id,{type:c.type,RECORD:""});const Qn=er("click",ir=>{const Kn=vn(c.id);re(c.id,{...Kn,type:c.type,RECORD:c.tooltipShow?j:ir.data})}),ar=ir=>{m.value.chart.containPixel("grid",[ir.offsetX,ir.offsetY])&&Qn()};c.isForbidClick||(c.tooltipShow?J.value["zr:click"]=ar:J.value.click=Qn);const hr=ir=>{var fr;const{columns:Kn=[],rows:or=[]}=((fr=ir==null?void 0:ir.data)==null?void 0:fr.data)??{};let dr;Kn.length>0&&(dr={name:Kn[0],types:Kn.slice(1).map(Xn=>({label:Xn,value:Xn}))});const{leftAxisList:nr=[]}=c.graphicConfig,lr=nr.filter(Xn=>Xn.show).map(Xn=>Xn.label);for(const Xn of or)if(Xn)for(const cr in Xn)typeof Xn[cr]=="string"&&lr.includes(cr)&&!isNaN(parseFloat(Xn[cr]))&&(Xn[cr]=parseFloat(Xn[cr]));Yn(or,dr,!0)},sr=useIndicatorData(c,ir=>{c.isViewRedrawing&&m.value.clear(),hr(ir)}),Un=async()=>{try{Wn.value=!0;const ir=await sr();hr(ir)}catch(ir){console.error(ir)}finally{Wn.value=!1}},Zn=async()=>{switch(c.dataType){case"indicator":await Un();break;case"request":await tr();break}};useOnEvent(c,{refreshData:Zn,resetRecord:()=>{const ir=c.id,Kn=vn(ir);re(ir,{...Kn,RECORD:""})},click:Qn});const{setRequest:Gn}=vue.inject(REQUEST_MODEL,{setRequest:ir=>{}});return typeof Gn=="function"&&Gn({id:c.id,requestFn:Zn,sortNum:c.requestSort}),u({refreshData:Zn}),{option:Bn,style:y,click:Qn,loading:Wn,onClose:w,ecanModal:x,eventObj:J,echartRef:m,emptyData:f}}}),Line_vue_vue_type_style_index_0_lang="",Line_vue_vue_type_style_index_1_scoped_fadf491b_lang="";function _sfc_render$C(c,u,f,d,h,v){const p=vue.resolveComponent("echarts"),m=vue.resolveComponent("spin"),g=vue.resolveComponent("ecan-modal");return vue.openBlock(),vue.createElementBlock("div",{style:vue.normalizeStyle(c.style)},[vue.createVNode(m,{spinning:c.loading},{default:vue.withCtx(()=>[c.noDataTip&&c.emptyData?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"empty-wrap",style:vue.normalizeStyle({color:c.tipTextColor,fontSize:c.tipTextFontSize})},[vue.createElementVNode("span",null,vue.toDisplayString(c.tipText),1)],4)):(vue.openBlock(),vue.createBlock(p,vue.mergeProps({key:1,ref:"echartRef",option:c.option,autoresize:""},vue.toHandlers(c.eventObj)),null,16,["option"]))]),_:1},8,["spinning"]),vue.createVNode(g,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:c.onClose},{default:vue.withCtx(()=>[vue.createVNode(m,{class:"spin-wrap",spinning:c.loading},{default:vue.withCtx(()=>[vue.createVNode(p,{option:c.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"])],4)}const Line=_export_sfc$1(_sfc_main$x,[["render",_sfc_render$C],["__scopeId","data-v-fadf491b"]]),EcanLine=withInstall$1(Line);let random=c=>crypto.getRandomValues(new Uint8Array(c)),customRandom=(c,u,f)=>{let d=(2<<Math.log(c.length-1)/Math.LN2)-1,h=-~(1.6*d*u/c.length);return(v=u)=>{let p="";for(;;){let m=f(h),g=h;for(;g--;)if(p+=c[m[g]&d]||"",p.length===v)return p}}},customAlphabet=(c,u=21)=>customRandom(c,u,random),nanoid=(c=21)=>crypto.getRandomValues(new Uint8Array(c)).reduce((u,f)=>(f&=63,f<36?u+=f.toString(36):f<62?u+=(f-26).toString(36).toUpperCase():f>62?u+="-":u+="_",u),"");const _sfc_main$w=vue.defineComponent({name:"TrendModal",components:{EcanLine,CloseOutlined:CloseOutlined$1,BorderOutlined:BorderOutlined$1,SwitcherOutlined:SwitcherOutlined$1},props:{theme:{type:String,default:"light"}},setup(c,{expose:u}){const f=vue.ref(!1),d=vue.ref(),h=vue.ref(),v=vue.ref(!0),p=vue.ref({}),m=vue.ref(!0),g=vue.inject("isMobile",!1),y=async({data:Bn,pageConfig:w,unitText:vn})=>{if(Bn){v.value=!0,p.value=w;const{graphicConfig:re}=Bn,qn=nanoid(6),zn={source:"INDICATOR_LIB",dataSourceId:"",idxLibMode:"",classificationList:[{id:"3f5bda70a08a442085857adb7fc547de",indexCode:null,indexCodeNum:null,title:"日期",name:"the_date",label:"日期",typeGuid:"the_date",genericType:"DATE",hrpIndexComplexid:"the_date",scope:"BUILT_IN_DIM",fromTable:"hrp_index_complex",parentId:"3f5bda70a08a442085857adb7fc547de",show:!0,edit:!1,dataTo:"0",dateFormat:"YYYY-MM",dataSetParams:{}}],leftAxisList:(re==null?void 0:re.indicators)||[],controlList:(re==null?void 0:re.controlList)||[],variableList:(re==null?void 0:re.variableList)||[],variableConditions:(re==null?void 0:re.variableConditions)||[]};d.value={...lodashEs.cloneDeep(lineProps),id:qn,keyName:`折线图_${qn}`,position:"relative",top:0,left:0,width:vue.unref(g)||vue.unref(v)?"100%":parseFloat(w.width)*.57+"px",height:vue.unref(g)||vue.unref(v)?"100%":parseFloat(w.height)*.4+"px",dataType:"indicator",tooltipFormatter:"{marker} {a} {c}"+vn,xAxisLabelRotate:45,yAxisLabelFormatter:vn?`{value}${vn}`:"{value}",isForbidClick:!0,graphicConfig:zn},f.value=!0,vue.nextTick(()=>{x(!0),gn(!0),vue.unref(h).refreshData()})}},b=()=>document.querySelector("#modalContainer")||document.body,Pn=vue.computed(()=>{let Bn="trend-modal";return vue.unref(g)?Bn+=" mobile":v.value&&(Bn+=" full"),c.theme==="darkBlue"&&(Bn+=" darkBlue"),Bn});vue.watch(f,Bn=>{Bn?document.documentElement.style.overflow="hidden":document.documentElement.style.overflow="hidden auto"}),vue.watch(v,Bn=>{m.value=!1,vue.unref(d).width=Bn?"100%":parseFloat(vue.unref(p).width)*.57+"px",vue.unref(d).height=Bn?"100%":parseFloat(vue.unref(p).height)*.4+"px",vue.nextTick(()=>{m.value=!0,vue.nextTick(()=>{vue.unref(h).refreshData()})})});const x=Bn=>{const w=document.querySelector(".trend-modal .ant-modal-header");w&&(Bn?w.addEventListener("dblclick",j):w.removeEventListener("dblclick",j))},gn=Bn=>{const w=document.querySelector(".trend-modal .ant-modal-header");if(w)if(Bn)w.addEventListener("mousedown",J);else{const vn=w.parentElement;vn&&(vn.style.left="",vn.style.top=""),w.removeEventListener("mousedown",J)}};function J(Bn){dragModalAction(Bn,".trend-modal .ant-modal-header")}const j=()=>{v.value=!v.value,vue.nextTick(()=>{v.value?gn(!1):gn(!0)})},Rn=()=>{x(!1),gn(!1)};return vue.onMounted(()=>{var Bn,w;if(vue.unref(g)){const vn=document.querySelector("#modalContainer");v.value=!0,(Bn=vn==null?void 0:vn.style)==null||Bn.setProperty("--window-screen-width",document.body.clientWidth+"px"),(w=vn==null?void 0:vn.style)==null||w.setProperty("--window-screen-height",document.body.clientHeight+"px")}}),u({showModal:y}),{visible:f,componentConfig:d,lineRef:h,wrapClassName:Pn,isMobile:g,isIndFullScreen:v,isRender:m,getContainer:b,toggleFullScreen:j,onDetailCancel:Rn}}}),TrendModal_vue_vue_type_style_index_0_scoped_a24645dd_lang="",TrendModal_vue_vue_type_style_index_1_lang="",_withScopeId$6=c=>(vue.pushScopeId("data-v-a24645dd"),c=c(),vue.popScopeId(),c),_hoisted_1$n=_withScopeId$6(()=>vue.createElementVNode("div",{class:"modal-title"},"趋势图",-1)),_hoisted_2$d={class:"zoom-btn"};function _sfc_render$B(c,u,f,d,h,v){const p=vue.resolveComponent("close-outlined"),m=vue.resolveComponent("switcher-outlined"),g=vue.resolveComponent("border-outlined"),y=vue.resolveComponent("ecan-line"),b=vue.resolveComponent("a-modal");return vue.openBlock(),vue.createBlock(b,{visible:c.visible,"onUpdate:visible":u[0]||(u[0]=Pn=>c.visible=Pn),width:"60%",getContainer:c.getContainer,footer:null,destroyOnClose:!0,bodyStyle:{maxHeight:c.isMobile||c.isIndFullScreen?"":"70vh",height:c.isMobile||c.isIndFullScreen?"100vh":"",overflow:"auto",padding:"20px 24px 24px"},"wrap-class-name":c.wrapClassName,onCancel:c.onDetailCancel},{title:vue.withCtx(()=>[_hoisted_1$n]),closeIcon:vue.withCtx(()=>[vue.createVNode(p,{class:vue.normalizeClass(["close-icon",c.theme])},null,8,["class"])]),default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_2$d,[!c.isMobile&&c.isIndFullScreen?(vue.openBlock(),vue.createBlock(m,{key:0,class:vue.normalizeClass(["modal-icon",c.theme]),title:"取消全屏",onClick:c.toggleFullScreen},null,8,["class","onClick"])):c.isMobile?vue.createCommentVNode("",!0):(vue.openBlock(),vue.createBlock(g,{key:1,class:vue.normalizeClass(["modal-icon",c.theme]),title:"全屏",onClick:c.toggleFullScreen},null,8,["class","onClick"]))]),c.componentConfig&&c.isRender?(vue.openBlock(),vue.createBlock(y,vue.mergeProps({key:0},c.componentConfig,{ref:"lineRef"}),null,16)):vue.createCommentVNode("",!0)]),_:1},8,["visible","getContainer","bodyStyle","wrap-class-name","onCancel"])}const TrendModal=_export_sfc$1(_sfc_main$w,[["render",_sfc_render$B],["__scopeId","data-v-a24645dd"]]),pivotTableProps={...props$1,name:"透视表",keyName:"透视表",width:"800px",height:"400px",type:"ecanPivotTable",graphicConfig:{},dataType:"indicator",data:[],dimensionList:[],indicatorList:[],styleConfig:{borderColor:"#E3E3E3",headerBgColor:"#ECF1F5",headerColor:"#000000",bodyBgColor:"#FFFFFF",bodyColor:"#000000",indicatorsHeaderBgColor:"#ECF1F5",indicatorsHeaderColor:"#000000",indicatorsBodyBgColor:"#FFFFFF",indicatorsBodyColor:"#000000",aggregateBgColor:"#ECF1F5",aggregateColor:"#000000",sortNotActiveColor:"#CCCCCC",sortActiveColor:"#416EFF",dropDownMenuBgColor:"#FFFFFF",dropDownMenuColor:"#141414",dropDownMenuHightLightColor:"#2E68CF"},configMode:"halfMode"},pivotTableComponentProps=transformToComponentProps(pivotTableProps),pivotTableEvents=["refreshData"];var zhCn={exports:{}};(function(c,u){(function(f,d){c.exports=d(dayjs)})(commonjsGlobal,function(f){function d(p){return p&&typeof p=="object"&&"default"in p?p:{default:p}}var h=d(f),v={name:"zh-cn",weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),ordinal:function(p,m){return m==="W"?p+"周":p+"日"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},relativeTime:{future:"%s内",past:"%s前",s:"几秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},meridiem:function(p,m){var g=100*p+m;return g<600?"凌晨":g<900?"早上":g<1100?"上午":g<1300?"中午":g<1800?"下午":"晚上"}};return h.default.locale(v,null,!0),v})})(zhCn);const LastDetail_vue_vue_type_style_index_0_scoped_4e73fb65_lang="",LastDetail_vue_vue_type_style_index_1_lang="";dayjs.locale("zh-cn");const _sfc_main$v=vue.defineComponent({name:"LastDetail",components:{ATable:antDesignVue.Table,BorderOutlined:BorderOutlined$1,SwitcherOutlined:SwitcherOutlined$1,CloseOutlined:CloseOutlined$1},props:{theme:{type:String,default:"light"},theDateInfo:{type:Object,default:()=>({})},scaleValue:{type:Object,default:()=>({})},fontSize:{type:Number,default:16},allDimensions:{type:Array,default:()=>[]}},setup(c,{emit:u,expose:f}){const d=`dtmodal_${nanoid(6)}`,h=vue.ref(!1),v=vue.ref(!1),p=vue.ref(!1),m=vue.ref([]),g=vue.ref([]),y=vue.ref({current:1,pageSize:10,total:0,showSizeChanger:!1,showQuickJumper:!1,showLessItems:!0,showTotal:tr=>`共 ${tr} 条数据`}),b=vue.ref(""),Pn=vue.ref(""),x=vue.ref(),gn=vue.inject("isMobile",!1),J=vue.computed(()=>INDICATOR_URL),j=()=>document.querySelector("#modalContainer")||document.body,Rn=tr=>{const er=document.querySelector(`.${d} .ant-modal-header`);if(er)if(tr)er.addEventListener("mousedown",w);else{const Qn=er.parentElement;Qn&&(Qn.style.left="",Qn.style.top=""),er.removeEventListener("mousedown",w)}},Bn=tr=>{const er=document.querySelector(`.${d} .ant-modal-header`);er&&(tr?er.addEventListener("dblclick",vn):er.removeEventListener("dblclick",vn))},w=tr=>{dragModalAction(tr,`.${d} .ant-modal-header`)},vn=()=>{h.value=!h.value,vue.nextTick(()=>{h.value?Rn(!1):Rn(!0)})},re=()=>{h.value=!1,Bn(!1),Rn(!1)};async function qn(tr){var nr,lr;p.value=!0,v.value=!0;const er=((nr=window==null?void 0:window.config)==null?void 0:nr.indicatorToken)||"",{record:Qn,dimOpts:ar,column:hr,formatParams:sr,cpntProps:Un={},drillDetailUrl:Zn}=tr,{indicatorList:Hn=[]}=sr,Gn=Hn.find(fr=>fr.label===hr.dataIndex),ir={};for(const fr in Qn){const Xn=ar.find(cr=>cr.name===fr);Xn&&(ir[Xn.typeGuid]=Qn[fr])}const{startTime:Kn,endTime:or,rangeFormat:dr}=c.theDateInfo;if(Kn&&or&&(ir.startTime=dayjs(Kn).format(dr),ir.endTime=dayjs(or).format(dr)),x.value=ir,Zn)h.value=!0,b.value=Zn,Pn.value=encodeURIComponent(JSON.stringify({indexCode:(Gn==null?void 0:Gn.hrpIndexCode)||"",indexName:Gn.label,theFlag:Un.theFlag,param:ir,conditions:drillConditions})),p.value=!1;else{const fr=await request.post(`${vue.unref(J)}/diagram/obtainDataSetData`,{pageId:getPageId(),indexCode:(Gn==null?void 0:Gn.hrpIndexCode)||"",indexName:Gn.label,theFlag:Un.theFlag,param:ir},{headers:{Authentication:er,operateContext:CONTEXT}}),{columns:Xn=[],data:cr=[]}=((lr=fr==null?void 0:fr.data)==null?void 0:lr.data)||{};m.value=Xn.filter(mr=>mr).map(mr=>({title:mr,dataIndex:mr,width:"120px"})),g.value=cr.map(mr=>({...mr,uid:nanoid(6)})),p.value=!1}vue.nextTick(()=>{Bn(!0),Rn(!0)})}const zn=tr=>{vue.unref(y).current=tr.current},Yn=vue.computed(()=>{let tr=`last-detail-modal ${d}`;return(vue.unref(gn)||h.value)&&(tr+=" full"),c.theme==="darkBlue"&&(tr+=" darkBlue"),vue.unref(b)||(tr+=" table"),tr}),Wn=vue.computed(()=>vue.unref(gn)?{padding:"10px 0"}:{height:vue.unref(h)?"":window.screen.height*.6+48+"px",overflow:vue.unref(b)?"hidden":"auto"});return f({getRecordData:()=>{const tr=vue.unref(x).the_date,{startTime:er,endTime:Qn}=vue.unref(x),ar={};tr?ar.时间范围=tr:ar.时间范围=`${er}至${Qn}`;for(const hr in vue.unref(x))if(!["startTime","endTime","the_date"].includes(hr)){const sr=c.allDimensions.find(Un=>Un.typeGuid===hr);sr&&(ar[sr.title||sr.label]=vue.unref(x)[hr])}return{drillContext:ar,data:vue.toRaw(vue.unref(g)),type:"detailTable"}},showModal:qn,visible:v}),{visible:v,loading:p,pagination:y,columns:m,dataSource:g,wrapClassName:Yn,detailBodyStyle:Wn,isMobile:gn,urlJsonStr:Pn,drillDetailUrl:b,isIndFullScreen:h,handleTableChange:zn,getContainer:j,onDetailCancel:re,toggleFullScreen:vn}}}),_hoisted_1$m=["src"],_hoisted_2$c={key:0,class:"spin-container"},_hoisted_3$6=["title"],_hoisted_4$5=["title"];function _sfc_render$A(c,u,f,d,h,v){const p=vue.resolveComponent("close-outlined"),m=vue.resolveComponent("switcher-outlined"),g=vue.resolveComponent("border-outlined"),y=vue.resolveComponent("a-spin"),b=vue.resolveComponent("a-table"),Pn=vue.resolveComponent("a-modal");return vue.openBlock(),vue.createBlock(Pn,{wrapClassName:c.wrapClassName,visible:c.visible,"onUpdate:visible":u[1]||(u[1]=x=>c.visible=x),width:"60%",title:"指标明细",destroyOnClose:!0,footer:null,bodyStyle:c.detailBodyStyle,getContainer:c.getContainer,onCancel:c.onDetailCancel},{closeIcon:vue.withCtx(()=>[vue.createVNode(p,{class:vue.normalizeClass(["modal-icon",c.theme])},null,8,["class"])]),default:vue.withCtx(()=>[vue.createElementVNode("div",{class:"zoom-btn",onClick:u[0]||(u[0]=(...x)=>c.toggleFullScreen&&c.toggleFullScreen(...x))},[c.isIndFullScreen?(vue.openBlock(),vue.createBlock(m,{key:0,class:vue.normalizeClass(["modal-icon",c.theme])},null,8,["class"])):(vue.openBlock(),vue.createBlock(g,{key:1,class:vue.normalizeClass(["modal-icon",c.theme])},null,8,["class"]))]),c.drillDetailUrl&&c.urlJsonStr?(vue.openBlock(),vue.createElementBlock("iframe",{key:0,src:`${c.drillDetailUrl}${c.drillDetailUrl.includes("?")?"&":"?"}params=${c.urlJsonStr}`,frameborder:"0",width:"100%",height:"100%"},`\r
103
- `,8,_hoisted_1$m)):c.drillDetailUrl?vue.createCommentVNode("",!0):(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:1},[c.loading?(vue.openBlock(),vue.createElementBlock("div",_hoisted_2$c,[vue.createVNode(y,{size:"large"})])):(vue.openBlock(),vue.createBlock(b,{key:1,"row-key":x=>x.uid,columns:c.columns,"data-source":c.dataSource,pagination:c.pagination,scroll:{x:"max-content",y:c.isMobile?"70vh":""},onChange:c.handleTableChange},{headerCell:vue.withCtx(({title:x})=>[vue.createElementVNode("div",{title:x,style:vue.normalizeStyle({fontSize:c.fontSize+"px"})},vue.toDisplayString(x),13,_hoisted_3$6)]),bodyCell:vue.withCtx(({text:x})=>[vue.createElementVNode("div",{title:x,style:vue.normalizeStyle({fontSize:c.fontSize+"px"})},vue.toDisplayString(x),13,_hoisted_4$5)]),_:1},8,["row-key","columns","data-source","pagination","scroll","onChange"]))],64))]),_:1},8,["wrapClassName","visible","bodyStyle","getContainer","onCancel"])}const LastDetail=_export_sfc$1(_sfc_main$v,[["render",_sfc_render$A],["__scopeId","data-v-4e73fb65"]]),_sfc_main$u=vue.defineComponent({name:"DrillModal",components:{ATable:antDesignVue.Table,BorderOutlined:BorderOutlined$1,SwitcherOutlined:SwitcherOutlined$1,CloseOutlined:CloseOutlined$1,LastDetail},props:{theme:{type:String,default:"light"},drillingMode:{type:String,default:"default"},pageMode:{type:String,default:"normal"},scaleValue:{type:Object,default:()=>({})},pivotTableFontSize:{type:Number,default:16},width:{type:String,default:""},drillDetailUrl:{type:String,default:""}},setup(c,{expose:u,emit:f}){const m={IN:"属于",NOT_IN:"不属于",LIKE:"包含",NOT_LIKE:"不包含","LIKE%":"开头是","%LIKE":"结尾是",EQUAL:"等于",LESS:"小于",LESS_EQUAL:"小于等于",GREATER:"大于",GREATER_EQUAL:"大于等于",NOT_EQUAL:"不等于"},g={borderColor:"#666E8D",headerBgColor:"#06347C",headerColor:"#DEE5EF",bodyBgColor:"#112861",bodyColor:"#B2CCE7",indicatorsHeaderBgColor:"#184273",indicatorsHeaderColor:"#FFFFFF",indicatorsBodyBgColor:"#184273",indicatorsBodyColor:"#FFFFFF",aggregateBgColor:"#0F4F9B",aggregateColor:"#FFFCFC",sortNotActiveColor:"#B0B0B0",sortActiveColor:"#00CCFF",dropDownMenuBgColor:"#08154F",dropDownMenuColor:"#B2C3DD",dropDownMenuHightLightColor:"#2E68CF"},y=vue.ref(!1),b=vue.ref(),Pn=vue.ref(),x=vue.ref(),gn=vue.ref(!1),J=vue.ref({}),j=vue.ref([]),Rn=vue.ref([]),Bn=vue.ref([]),w=vue.ref(!1),vn=vue.ref({dateFormat:"YYYY-MM-DD"}),re=vue.reactive({keyName:"",visible:!1,dataSource:[],columns:[],title:"",pagination:{current:1,pageSize:10,total:0,showSizeChanger:!1,showQuickJumper:!1,showLessItems:!0,showTotal:br=>`共 ${br} 条数据`}}),qn=vue.ref({}),zn=vue.ref({}),Yn=vue.inject("isMobile",!1),Wn=vue.inject("usedComponentList",[]),Jn=vue.inject("componentList",[]),{getAllGlobalModel:tr}=vue.inject(GLOBAL_MODEL,{getAllGlobalModel:()=>{}}),er=vue.computed(()=>INDICATOR_URL);vue.watch(()=>re.visible,br=>{br?document.documentElement.style.overflow="hidden":document.documentElement.style.overflow="hidden auto"});const Qn=vue.computed(()=>({width:vue.unref(J).width,height:vue.unref(J).height})),ar=vue.computed(()=>vue.unref(Yn)?{padding:"10px 0"}:c.drillingMode==="normalTable"&&!gn.value?{height:window.screen.height*.6+48+"px",overflow:"auto"}:{}),hr=vue.computed(()=>{let br="datav-drill-modal";return(gn.value||vue.unref(Yn))&&(br+=" full"),c.theme==="darkBlue"&&(br+=" darkBlue"),br}),sr=(br,ur)=>{const{leftAxisList:pr=[],rightAxisList:_r=[],indicators:xr=[],classificationList:kr=[],rowHeaderList:vr=[],dimensionList:Sr=[],seriesList:Cr=[],queryColumns:Tr=[],indexLibColumns:Er=[]}=ur.graphicConfig,Br=pr.concat(_r).concat(xr).concat(kr).concat(vr).concat(Sr).concat(Cr).concat(Tr).concat(Er).filter(Nr=>Nr.conditions),Kr=loopConditions(Br,"conditions",!0),Lr=loopConditions(br.sqlConditions,"sqlConditions",!1);Rn.value=Kr.concat(Lr).filter(Nr=>Nr.label)||[]},Un=()=>document.querySelector("#modalContainer")||document.body,Zn=async({cpntProps:br,pageId:ur,formatParams:pr,classifications:_r,indicatorToken:xr})=>{var kr,vr,Sr;return await request({url:`${vue.unref(er)}/diagram/obtainDrillAbleDimensionOptions`,method:"post",headers:{Authentication:xr,operateContext:CONTEXT},data:{source:((kr=br==null?void 0:br.graphicConfig)==null?void 0:kr.source)||"INDICATOR_LIB",pageId:ur,indicatorList:(pr==null?void 0:pr.indicatorList)||[],classifications:_r,dataSourceId:((vr=br==null?void 0:br.graphicConfig)==null?void 0:vr.dataSourceId)||""},signal:((Sr=window.controller)==null?void 0:Sr.signal)||""})},Hn=br=>{let ur="",pr="";const{componentConfig:_r}=br;for(const kr in _r)if(_r[kr].key==="currentValue"){pr=kr;break}const xr=vue.unref(Jn).find(kr=>kr.id===pr);return xr!=null&&xr.unitText&&(ur=xr.unitText),ur};function Gn(br){const ur=[];for(const pr of br)pr.sqlConditions?ur.push(...Gn(pr.sqlConditions)):pr.fieldName==="the_date"&&ur.push(pr);return ur}const ir=br=>{var kr;const{sqlConditions:ur=[],queryColumns:pr=[]}=br||{},_r=Gn(ur),xr=pr.find(vr=>vr.typeGuid==="the_date");if(xr&&(vn.value={dateFormat:xr.dateFormat||"YYYY-MM-DD"}),_r!=null&&_r.length)for(const vr of _r)["startTime","endTime"].includes(vr.prop)&&(vue.unref(vn)[vr.prop]=vr.fieldValue||"",(kr=vue.unref(vn))!=null&&kr.rangeFormat||(vue.unref(vn).rangeFormat=vr.dateFormat||"YYYY-MM-DD"))},Kn=async br=>{var Mr,Br,Kr,Lr,Nr;if(c.drillingMode==="default")return;let ur=lodashEs.cloneDeep(br).props;if(ur.parentId){const qr=vue.unref(Wn).find(Wr=>Wr.id===ur.parentId);if((qr==null?void 0:qr.dataType)==="indicator")ur=lodashEs.cloneDeep(qr);else return}re.keyName=ur==null?void 0:ur.keyName;const pr=((Mr=window==null?void 0:window.config)==null?void 0:Mr.indicatorToken)||"",_r=getPageId(),xr=(ur==null?void 0:ur.graphicConfig)||{},{leftAxisList:kr=[],rightAxisList:vr=[],indicators:Sr=[]}=xr,Cr=kr.concat(vr).concat(Sr);if(!(Cr!=null&&Cr.length))return;const Tr=Cr.filter(qr=>qr.show).map(qr=>qr.label);Tr!=null&&Tr.length&&(re.title=`下钻:${Tr.join("、")}`);const Er=En({...ur,allComponentList:vue.unref(Jn),globalModel:tr()});if(c.drillingMode==="normalTable"||vue.unref(Yn)){re.pagination.current=1;let qr=(Er==null?void 0:Er.classification)||(Er==null?void 0:Er.classifications)||[];Array.isArray(qr)||(qr=[qr]);try{w.value=!0,re.visible=!0;const Wr=await Zn({cpntProps:ur,pageId:_r,formatParams:Er,classifications:qr,indicatorToken:pr}),Ur=((Br=Wr==null?void 0:Wr.data)==null?void 0:Br.data)||[];Bn.value=Ur;let Xr=[],ri=[];const{usedDimensions:ei=[],params:ui={}}=br;if(ei!=null&&ei.length){for(const $r of Ur)if(!ei.find(zr=>zr.label===$r.name)){ri.push($r);break}Er.sqlConditions=lodashEs.cloneDeep(ui.sqlConditions);const{sqlConditions:Dr=[]}=Er,{record:Rr={}}=br;ei.forEach(($r,zr)=>{if(mn(Rr,$r.label)){const Hr=Ur.find(li=>li.name===$r.label),Qr={fieldName:$r.label,fieldValue:Rr[$r.label],globalCondition:!0,hrpIndexCode:null,hrpIndexCodeNum:null,label:$r.label,rule:"EQUAL",typeGuid:$r.typeGuid,valueType:(Hr==null?void 0:Hr.genericType)||"TEXT"};zr!==ei.length-1&&(Qr.join="&&"),zr===0&&(Dr!=null&&Dr.length)&&(Dr[Dr.length-1].join="&&"),Dr.push(Qr)}})}else Xr=qr.map(Dr=>({...Dr,calcType:"COLUMN"})),ri=Ur.slice(0,2).sort((Dr,Rr)=>Dr.typeGuid-Rr.typeGuid);sr(Er,lodashEs.cloneDeep(br.props));for(const Dr of ri)Xr.push({calcType:"COLUMN",columnName:Dr.name,label:Dr.name,show:!0,typeGuid:Dr.typeGuid});Er.queryColumns=Xr,Er.layer="1",Er.plugin="1",delete Er.classification,delete Er.classifications;const{url:ii,...pi}=Er||{};zn.value=pi,ir(Er);const bi=await request({url:`${vue.unref(er)}${ii}`,method:"post",headers:{Authentication:pr,operateContext:CONTEXT},data:{...pi,pageId:_r}}),{columns:xi=[],rows:Ir=[]}=((Kr=bi==null?void 0:bi.data)==null?void 0:Kr.data)||{};if(yn(ur.type,"indexPanel")){const Dr=xr.indicators.find($r=>$r.show),Rr=Hn(ur);Rr&&Dr&&(qn.value={[Dr.label]:Rr})}re.columns=xi.filter(Dr=>!!Dr).map(Dr=>{let Rr=Dr;const $r=Ur.find(zr=>zr.name===Dr);return $r&&(Rr=$r.title||$r.label),{title:Rr,dataIndex:Dr,width:"120px",customCell:(zr,Hr,Qr)=>({[vue.unref(Yn)?"onClick":"onDblclick"]:()=>{Ur.find(ai=>Qr.dataIndex===ai.name)?(!(ei!=null&&ei.length)||Ur.length-1>ei.length)&&(y.value=!0,vue.nextTick(()=>{vue.unref(b).showModal({...br,record:zr,usedDimensions:[...ei,...Xr],params:Er})})):vue.unref(Pn).showModal({record:zr,dimOpts:Ur,column:Qr,formatParams:Er,cpntProps:ur,drillDetailUrl:c.drillDetailUrl,drillConditions:vue.unref(mr)})}})}}),re.dataSource=(Array.isArray(Ir)?Ir:[Ir]).map(Dr=>({...Dr,uuid:nanoid(6)})),re.pagination.total=(Ir==null?void 0:Ir.length)||0,w.value=!1}catch(Wr){console.error(Wr)}}else if(c.drillingMode==="pivotTable"){const qr=await Zn({cpntProps:ur,pageId:_r,formatParams:Er,classifications:[],indicatorToken:pr});Bn.value=((Lr=qr==null?void 0:qr.data)==null?void 0:Lr.data)||[];const Wr=nanoid(6);xr.queryColumnList||(xr.queryColumnList=[]),xr!=null&&xr.classificationList&&(xr.queryColumnList=xr.classificationList,delete xr.classificationList),xr!=null&&xr.seriesList&&(xr.queryColumnList=xr.queryColumnList.concat(xr.seriesList),delete xr.seriesList),xr.indicators=lodashEs.cloneDeep(Cr||[]),delete xr.leftAxisList,delete xr.rightAxisList;const Ur={};if(yn(ur.type,"indexPanel")){const ri=xr.indicators.find(ii=>ii.show),ei=vue.unref(Bn).slice(0,2).sort((ii,pi)=>ii.typeGuid-pi.typeGuid).map(ii=>({...ii,show:!0,edit:!1,dataTo:"0",width:ii.name==="the_date"?15:0,dataSetParams:{}}));ei!=null&&ei.length&&(xr.queryColumnList=ei);const ui=Hn(ur);if(ui&&ri){const{label:ii}=ri;Ur.defaultConfig={indexFormatConfig:{[ii]:{fieldName:ii,indicatorKey:ii,position:"right",unit:ui}}}}}ur!=null&&ur.theFlag&&(Ur.theFlag=ur.theFlag),(Nr=xr.queryColumnList)!=null&&Nr.length||(xr.queryColumnList=[{id:"3f5bda70a08a442085857adb7fc547de",indexCode:null,indexCodeNum:null,title:"日期(内置)",name:"the_date",label:"日期(内置)",typeGuid:"the_date",genericType:"DATE",hrpIndexComplexid:"the_date",scope:"BUILT_IN_DIM",fromTable:"hrp_index_complex",parentId:"3f5bda70a08a442085857adb7fc547de",show:!0,edit:!1,dataTo:"0",dataSetParams:{}}]);const Xr={...lodashEs.cloneDeep(pivotTableProps),id:Wr,keyName:`透视表_${Wr}`,position:"relative",top:0,left:0,width:parseFloat(c.width)*.57+"px",height:window.screen.height*.6+"px",pageId:_r,indicatorToken:pr,context:CONTEXT,globalModel:tr(),graphicConfig:xr,pageConfig:c,...Ur};c.theme==="darkBlue"&&(Xr.styleConfig=g),J.value=Xr,re.visible=!0,vue.nextTick(()=>{vue.unref(x).refreshData()})}vue.nextTick(()=>{dr(!0),nr(!0)})},or=br=>{re.pagination.current=br.current},dr=br=>{const ur=document.querySelector(".datav-drill-modal .ant-modal-header");ur&&(br?ur.addEventListener("dblclick",fr):ur.removeEventListener("dblclick",fr))},nr=br=>{const ur=document.querySelector(".datav-drill-modal .ant-modal-header");if(ur)if(br)ur.addEventListener("mousedown",lr);else{const pr=ur.parentElement;pr&&(pr.style.left="",pr.style.top=""),ur.removeEventListener("mousedown",lr)}};function lr(br){dragModalAction(br,".datav-drill-modal .ant-modal-header")}const fr=()=>{gn.value=!gn.value,vue.nextTick(()=>{gn.value?(vue.unref(J).width=parseFloat(c.width)*.97+"px",vue.unref(J).height=window.screen.height*.9+"px",nr(!1)):(vue.unref(J).width=parseFloat(c.width)*.57+"px",vue.unref(J).height=window.screen.height*.6+"px",nr(!0))})},Xn=()=>{gn.value=!1,dr(!1),nr(!1),f("close")},cr=({type:br,data:ur})=>{if(br==="11"&&ur){const{indicatorList:pr=[],queryColumns:_r=[]}=ur,kr=pr.concat(_r).filter(Cr=>Cr.conditions||Cr.filter),vr=loopConditions(kr,"conditions",!0),Sr=loopConditions(ur.sqlConditions,"sqlConditions",!1);Rn.value=vr.concat(Sr).filter(Cr=>Cr.label)||[]}};vue.watch(Rn,(br=[])=>{j.value=br.map(ur=>{let pr=ur.fieldValue;if(pr&&typeof pr=="string"){const _r=pr.split(",");(_r==null?void 0:_r.length)>3&&(pr=_r.slice(0,3).join(",")+"等")}else pr||(pr='""');if(c.drillingMode==="normalTable")return`${ur.label} ${m[ur.rule]} ${pr}`;{const _r=vue.unref(Bn).find(xr=>xr.label===ur.label);return`${(_r==null?void 0:_r.title)||ur.label} ${m[ur.rule]} ${pr}`}})||[]},{deep:!0});const mr=vue.computed(()=>vue.unref(Rn).map(br=>({label:br.title||br.label,typeGuid:br.typeGuid,rule:br.rule,value:br.fieldValue}))),gr=()=>{y.value=!1};return u({indDetailInfo:re,showModal:Kn,getPivotRecordData:()=>{var br,ur,pr,_r,xr,kr,vr,Sr,Cr,Tr;if(c.drillingMode==="normalTable"){if((br=vue.unref(Pn))!=null&&br.visible)return(ur=vue.unref(Pn))==null?void 0:ur.getRecordData();if((_r=(pr=vue.unref(b))==null?void 0:pr.indDetailInfo)!=null&&_r.visible)return(xr=vue.unref(b))==null?void 0:xr.getPivotRecordData();{const{sqlConditions:Er,...Mr}=vue.unref(zn);for(const Br of Er){const Kr=vue.unref(Bn).find(Lr=>Lr.typeGuid===Br.typeGuid);Kr!=null&&Kr.title&&(Br.title=Kr.title)}return{data:vue.toRaw(re.dataSource),columns:[],rows:((vr=(kr=vue.unref(zn))==null?void 0:kr.queryColumns)==null?void 0:vr.map(Br=>({title:Br.label})))||[],indicators:((Cr=(Sr=vue.unref(zn))==null?void 0:Sr.indicatorList)==null?void 0:Cr.map(Br=>({title:Br.label})))||[],requestParams:{...Mr,sqlConditions:Er},type:"pivotTable"}}}else if(c.drillingMode==="pivotTable")return(Tr=vue.unref(x))==null?void 0:Tr.getPivotRecordData()}}),{indDetailInfo:re,pivotTableConfig:J,pivotTableStyle:Qn,detailBodyStyle:ar,wrapClassName:hr,isIndFullScreen:gn,isMobile:Yn,conditionInfo:j,indicatorUrl:er,allDimensions:Bn,detailLoading:w,pivotTableRef:x,lastDetailRef:Pn,subDrillModalRef:b,theDateInfo:vn,isShowSubDrillModal:y,normalTableUnits:qn,drillConditions:mr,allComponentList:Jn,getContainer:Un,toggleFullScreen:fr,onDetailCancel:Xn,onPivotTableChange:cr,handleTableChange:or,onCloseModal:gr}}}),DrillModal_vue_vue_type_style_index_0_scoped_519a7174_lang="",DrillModal_vue_vue_type_style_index_1_lang="",_hoisted_1$l=["title"],_hoisted_2$b={key:0,class:"spin-container"},_hoisted_3$5=["title"],_hoisted_4$4=["title"];function _sfc_render$z(c,u,f,d,h,v){const p=vue.resolveComponent("close-outlined"),m=vue.resolveComponent("switcher-outlined"),g=vue.resolveComponent("border-outlined"),y=vue.resolveComponent("a-spin"),b=vue.resolveComponent("a-table"),Pn=vue.resolveComponent("pivot-table"),x=vue.resolveComponent("a-modal"),gn=vue.resolveComponent("last-detail"),J=vue.resolveComponent("drill-modal",!0);return vue.openBlock(),vue.createElementBlock(vue.Fragment,null,[vue.createVNode(x,{visible:c.indDetailInfo.visible,"onUpdate:visible":u[1]||(u[1]=j=>c.indDetailInfo.visible=j),width:"60%",getContainer:c.getContainer,footer:null,destroyOnClose:!0,"wrap-class-name":c.wrapClassName,bodyStyle:c.detailBodyStyle,onCancel:c.onDetailCancel},{title:vue.withCtx(()=>[vue.createElementVNode("div",{class:"detail-modal-title",title:c.conditionInfo.join("、")},vue.toDisplayString(c.indDetailInfo.title)+" "+vue.toDisplayString(c.conditionInfo.join("、")),9,_hoisted_1$l)]),closeIcon:vue.withCtx(()=>[vue.createVNode(p,{class:vue.normalizeClass(["modal-icon",c.theme])},null,8,["class"])]),default:vue.withCtx(()=>[c.isMobile?vue.createCommentVNode("",!0):(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"zoom-btn",onClick:u[0]||(u[0]=(...j)=>c.toggleFullScreen&&c.toggleFullScreen(...j))},[c.isIndFullScreen?(vue.openBlock(),vue.createBlock(m,{key:0,class:vue.normalizeClass(["modal-icon",c.theme])},null,8,["class"])):(vue.openBlock(),vue.createBlock(g,{key:1,class:vue.normalizeClass(["modal-icon",c.theme])},null,8,["class"]))])),c.drillingMode==="normalTable"||c.isMobile?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:1},[c.detailLoading?(vue.openBlock(),vue.createElementBlock("div",_hoisted_2$b,[vue.createVNode(y,{size:"large"})])):(vue.openBlock(),vue.createBlock(b,{key:1,"row-key":j=>j.uuid,columns:c.indDetailInfo.columns,"data-source":c.indDetailInfo.dataSource,pagination:c.indDetailInfo.pagination,onChange:c.handleTableChange},{headerCell:vue.withCtx(({title:j})=>[vue.createElementVNode("div",{class:"detail-table-header-cell",title:j,style:vue.normalizeStyle({fontSize:c.pivotTableFontSize+"px"})},vue.toDisplayString(j),13,_hoisted_3$5)]),bodyCell:vue.withCtx(({text:j,column:Rn})=>[vue.createElementVNode("div",{title:j,style:vue.normalizeStyle({fontSize:c.pivotTableFontSize+"px"})},vue.toDisplayString(j)+vue.toDisplayString(c.normalTableUnits[Rn.title]),13,_hoisted_4$4)]),_:1},8,["row-key","columns","data-source","pagination","onChange"]))],64)):c.drillingMode==="pivotTable"?(vue.openBlock(),vue.createElementBlock("div",{key:2,style:vue.normalizeStyle({position:"relative",...c.pivotTableStyle})},[vue.createVNode(Pn,vue.mergeProps({ref:"pivotTableRef"},c.pivotTableConfig,{pageMode:c.pageMode,theme:c.theme,fullMode:!1,allowDrill:!0,showFullScreen:!1,indicatorUrl:c.indicatorUrl,relateKeyName:c.indDetailInfo.keyName,allDimensions:c.allDimensions,scaleValue:c.scaleValue,defaultFontSize:c.pivotTableFontSize,drillDetailUrl:c.drillDetailUrl,drillConditions:c.drillConditions,isMobile:c.isMobile,isNeedEmptyRow:!1,componentList:c.allComponentList,enlargeContainer:"#norPageConfig",onTableChange:c.onPivotTableChange}),null,16,["pageMode","theme","indicatorUrl","relateKeyName","allDimensions","scaleValue","defaultFontSize","drillDetailUrl","drillConditions","isMobile","componentList","onTableChange"])],4)):vue.createCommentVNode("",!0)]),_:1},8,["visible","getContainer","wrap-class-name","bodyStyle","onCancel"]),vue.createVNode(gn,{ref:"lastDetailRef",theme:c.theme,theDateInfo:c.theDateInfo,scaleValue:c.scaleValue,fontSize:c.pivotTableFontSize,allDimensions:c.allDimensions},null,8,["theme","theDateInfo","scaleValue","fontSize","allDimensions"]),c.isShowSubDrillModal?(vue.openBlock(),vue.createBlock(J,{key:0,ref:"subDrillModalRef",width:c.width,theme:c.theme,drillingMode:c.drillingMode,pageMode:c.pageMode,scaleValue:c.scaleValue,pivotTableFontSize:c.pivotTableFontSize,drillDetailUrl:c.drillDetailUrl,onClose:c.onCloseModal},null,8,["width","theme","drillingMode","pageMode","scaleValue","pivotTableFontSize","drillDetailUrl","onClose"])):vue.createCommentVNode("",!0)],64)}const DrillModal=_export_sfc$1(_sfc_main$u,[["render",_sfc_render$z],["__scopeId","data-v-519a7174"]]),_sfc_main$t=vue.defineComponent({name:"EcanProviderConfig",inheritAttrs:!1,components:{IndicatorDetailModal,TrendModal,DrillModal},props:{...providerConfigComponentProps,pageId:{type:String,default:""},customId:{type:String,default:"ProviderConfig"},customStyle:{type:Object,default:()=>({})},fixedHeight:{type:String,default:"0px"}},setup(c,{expose:u,emit:f}){c.pageId||useHrefParamsToGlobalVariables();const d=vue.ref(),h=vue.ref(),v=vue.ref(),p=vue.computed(()=>INDICATOR_URL),m=vue.computed(()=>hn(c.contextRequestUrl)),g=vue.computed(()=>c.pageMode),y=vue.computed(()=>c.theme),b=vue.computed(()=>c.width),Pn=vue.computed(()=>c.height),x=vue.computed(()=>c.pageFontFamily),gn=vue.computed(()=>c.textColor),J=vue.computed(()=>c.fixedHeight?parseFloat(c.fixedHeight):0),j=vue.computed(()=>c.isCompatible),Rn=vue.computed(()=>c.variableList),Bn=vue.computed(()=>!!navigator.userAgent.match(/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i)),w=vue.computed(()=>parseFloat(c.pivotTableFontSize)),vn=vue.ref(),re=vue.ref({}),qn=()=>{vn.value.setAttribute("datav-theme",c.theme)},zn=vue.ref({currentYmd:dayjs().format("YYYY-MM-DD"),currentYear:dayjs().format("YYYY"),currentMonth:dayjs().format("MM"),currentDay:dayjs().format("DD")}),Yn=vue.computed(()=>{const Ir={};if(vue.unref(Rn))for(const Rr of vue.unref(Rn))Ir[Rr.label]=Rr.value;return{$page:{...vue.unref(zn),...Ir}}});vue.provide(GLOBAL_VARIABLE,{globalVariable:Yn});const Wn=vue.inject("usedComponentList",[]),Jn=vue.inject("componentList",[]);vue.watch(Yn,()=>{f("setGlobalVar",vue.unref(zn))},{deep:!0,immediate:!0});const tr=vue.computed(()=>{const Ir=[];for(const Dr of vue.unref(Wn))Dr.type==="ecanModal"?Ir.push(...Dr.componentList):Ir.push(Dr);return Ir});vue.watch(()=>c.theme,()=>{qn()}),vue.onMounted(()=>{qn()});const er=vue.computed(()=>{const Ir=[],Dr=vue.unref(Jn).filter(Rr=>Rr.type==="ecanModal");for(const Rr of Dr)Rr!=null&&Rr.requestList&&Ir.push(...Rr.requestList);return[...Ir,...c.requestList]}),Qn=Ir=>Object.prototype.toString.call(Ir)==="[object Object]",ar=Ir=>{const Dr=Ir.split(".");let Rr=vue.unref(Yn);for(const $r of Dr)if(Rr&&Qn(Rr))Rr=Rr[$r];else{Rr="";break}return Rr},hr=vue.ref("");vue.provide(GLOBAL_CONFIG,{contextRequestUrl:m,pageMode:g,theme:y,touchEventId:hr,width:b,height:Pn,fontFamily:x,textColor:gn,requestList:er,isCompatible:j,fixedHeight:J,getGlobalVar:ar});const sr=vue.ref({height:"100%",overflow:c.pageMode==="design"?"":"hidden"});vue.provide("setPageHeight",Ir=>{let Dr=0;Ir==="auto"?(Dr=Ir,re.value={widthScale:1,heightScale:1}):(Dr=Ir.heightScale,re.value=Ir),(!j.value||!Bn.value)&&(Dr=parseFloat(Pn.value)*Dr+"px"),sr.value.height=Dr}),vue.provide("isMobile",Bn.value),vue.provide("getContainerMap",()=>c.containerMap),vue.provide("getCombinationMap",()=>c.combinationMap),vue.provide("templateOperate",{pageId:c.pageId,templateEmit:f,setTemplateData:Ir=>{var Dr;if(Ir!=null&&Ir.pageId){const{componentId:Rr,...$r}=Ir;(Dr=window.config)!=null&&Dr.urlParams||(window.config.urlParams={}),window.config.urlParams[Ir.pageId]=$r,f("templateChange",Ir)}}});const Un=vue.ref(),Zn=new Map,Hn=()=>Zn,Gn=Ir=>{let Dr=Zn.get(Ir);if(!Dr){const Rr=vue.unref(Jn).find($r=>$r.keyName===Ir);Rr&&(Dr=Zn.get(Rr.id))}return Dr},ir=(Ir,Dr)=>{var Rr;if(Un.value=Dr,Zn.set(Ir,Dr),!c.pageId){const $r=vue.unref(Wn).find(zr=>zr.id===Ir);$r&&((Rr=window.config)!=null&&Rr.record||(window.config.record={}),window.config.record[$r.keyName]=Dr)}},Kn=()=>{Un.value=null},or=Ir=>{let Dr=Ir;if(Dr){const Rr=Ir.match(/\{(.+?)\}/g);if(Rr!=null&&Rr.length){let $r=Rr[0].slice(1,-1).trim();const zr=$r.match(/\[(.+?)\]/g);let Hr="";zr!=null&&zr.length&&($r=$r.replace(zr[0],""),Hr=zr[0].slice(1,-1).trim());const Qr=vue.unref(tr).find(li=>li.keyName===$r);if(Qr){const li=Gn(Qr.id),{type:ai,value:fi,RECORD:yi,recordData:hi}=li||{};yn(ai,MODEL_KEY_LIST)?Dr=yi[Hr]:yn(ai,"select")?hi[Hr]?Dr=hi[Hr]:Dr=vue.unref(fi):yn(ai,["rangePicker","date"])?dayjs.isDayjs(vue.unref(li[Hr]))?Dr=vue.unref(li[Hr]).format(li.format):Dr=vue.unref(li[Hr]):Dr=fi}else{const li=window.config.requestParams||{},ai=window.location.search.slice(1).split("&"),fi={};for(const hi of ai)if(hi!=null&&hi.includes("=")){const oi=hi.split("=");fi[oi[0]]=oi[1]||""}Dr={...fi,...li}[$r]||""}}}return Dr},dr=new Map,nr={},lr=async(Ir,Dr)=>{var Qr;const{requestName:Rr}=Ir,$r=await useRequestData({...Ir,projectRequestUrl:vue.unref(m),getModel:Gn})(),zr=((Qr=$r==null?void 0:$r.data)==null?void 0:Qr.data)||{};Ir.requestKeyName&&(zn.value[Ir.requestKeyName]=zr);const Hr=dr.get(Rr);if(Hr!=null&&Hr.length&&(!Dr||nr[Rr])){for(const li of Hr)li(zr);Dr||dr.delete(Rr)}},fr=(Ir,Dr)=>{nr[Ir]&&(clearInterval(nr[Ir]),delete nr[Ir],dr.delete(Ir));const Rr=vue.unref(tr).filter(zr=>zr.dataType==="request"&&!zr.openCustomRequestData&&zr.customRequestName===Ir),$r=dr.get(Ir)||[];if((Rr==null?void 0:Rr.length)>$r.length&&($r.push(Dr),dr.set(Ir,$r),(Rr==null?void 0:Rr.length)===$r.length)){const zr=vue.unref(er).find(Hr=>Hr.requestName===Ir);zr&&(zr!=null&&zr.isOpenRequestTimer&&(zr!=null&&zr.requestInterval)?(lr(zr,!0),nr[Ir]=setInterval(()=>{lr(zr,!0)},zr.requestInterval*1e3)):lr(zr))}};vue.provide(GLOBAL_MODEL,{getGlobalModel:Gn,setGlobalModel:ir,getAllGlobalModel:Hn,clearInteractiveData:Kn,getRecordValueByKeyName:or,hanldePageRequestData:fr,interactiveData:Un});const Xn=vue.ref({}),cr=(Ir,Dr)=>{Xn.value[Ir]=Dr};vue.provide(LOADED_DATA,{loadedData:Xn,setLoadedData:cr});const mr=[],gr=()=>{mr.pop()},yr=Ir=>{mr.push(Ir)},br=new Map,ur=Ir=>br.get(Ir),pr=(Ir,Dr)=>{br.set(Ir,Dr)};vue.provide(MODAL_MODEL,{popUseModalIds:gr,pushUseModalIds:yr,getModalModel:ur,setModalModel:pr});const _r=mitt(),xr=new Set,kr=(Ir,Dr)=>{xr.add(Ir),_r.on(Ir,Rr=>{const{eventName:$r,params:zr}=Rr;return typeof Dr[$r]=="function"&&Dr[$r](zr)}),vue.onBeforeUnmount(()=>{vr(Ir)})},vr=Ir=>{xr.delete(Ir),_r.off(Ir)},Sr=(Ir,Dr,Rr={})=>{if(Ir==="PAGE"){const $r=mr.length;let zr=[];if($r===0)zr=[...xr];else{const Hr=mr[$r-1];zr=[...ur(Hr)]}zr.forEach(Hr=>{_r.emit(Hr,{eventName:Dr,params:Rr})})}else _r.emit(Ir,{eventName:Dr,params:Rr})};vue.provide(EVENT_BUS,{onEvent:kr,offEvent:vr,emitEvent:Sr});const Cr=vue.ref(0),Tr=()=>{Cr.value=vue.unref(Cr)+1};vue.provide(GLOBAL_TOKEN,{requestToken:Tr});const Er=new Map,Mr=new Map,Br=({requestFn:Ir=()=>{},sortNum:Dr=0,id:Rr=""})=>{if(Er.has(Dr)){const $r=Er.get(Dr);$r==null||$r.push(Ir)}else Er.set(Dr,[Ir]);Mr.set(Rr,Ir)},Kr=Ir=>new Promise((Dr,Rr)=>{const $r=[];for(const zr of Ir)$r.push(new Promise(async Hr=>{await zr(),Hr()}));Promise.all($r).then(zr=>{Dr(zr)}).catch(zr=>{Rr(zr)})}),Lr=Ir=>new Promise(async(Dr,Rr)=>{if(Ir){if(typeof Ir=="string"){const $r=Mr.get(Ir);if(typeof $r=="function"){const zr=request.interceptors.response.use(Hr=>(Dr(Hr),Hr),Hr=>(Rr(Hr),Promise.reject(Hr)));$r(),request.interceptors.response.eject(zr)}}}else{const $r=Array.from(Er);$r.sort((Hr,Qr)=>Qr[0]-Hr[0]);const zr=$r.length;try{c.pageMode!=="design"&&vue.unref(Cr)>0;for(let Hr=0;Hr<zr;Hr++){const Qr=$r[Hr][1];await Kr(Qr)}}catch(Hr){console.error(Hr)}finally{Er.clear(),Dr(null)}}});vue.provide(REQUEST_MODEL,{setRequest:Br,touchRequest:Lr});const Nr=()=>{_r.emit(REFRESH_PAGE)};vue.provide(REFRESH_PAGE,{emitRefreshPage:Nr});const qr=Ir=>{_r.on(REFRESH_PAGE,()=>Ir()),vue.onMounted(()=>{_r.off(REFRESH_PAGE)})},Wr=vue.ref({}),Ur=vue.ref();vue.provide(All_COMPONENT_RES_DATA,{allComponentResData:Wr});const Xr=Ir=>{const{id:Dr,data:Rr}=Ir;Rr.success&&(Wr.value[Dr]=(Rr==null?void 0:Rr.data)||{})},ri=Ir=>{Ur.value=Ir},ei=(Ir,Dr)=>{switch(Ir){case"SHOW_INDICATOR_DETAIL_MODAL":vue.unref(d).showModal(Dr);break;case"SAVE_COMPONENT_RES_DATA":Xr(Dr);break;case"SAVE_INDEX_PANEL_REQ_PARAMS":ri(Dr);break}};vue.provide(COMMON_OPERATE,{operateAction:(Ir,Dr)=>{ei(Ir,Dr)}}),vue.watchEffect(()=>{var Ir;if((Ir=vue.unref(Wn))!=null&&Ir.length&&vue.unref(g)!=="design"){const{jumpType:Dr,jumpTime:Rr,jumpPage:$r,jumpLink:zr}=c;if(Rr!=null&&Rr.value){let Hr=0;switch(Rr==null?void 0:Rr.suffix){case"hours":Hr=Rr.value*60*60*1e3;break;case"minute":Hr=Rr.value*60*1e3;break;case"seconds":Hr=Rr.value*1e3;break}setTimeout(()=>{let Qr="";Dr==="page"&&$r?Qr=usePageUrl(vue.unref(g),$r):Dr==="link"&&zr&&(Qr=zr),Qr=hn(Qr),window.open(Qr,"_self")},Hr)}}});const ui=Ir=>{var Dr;vue.unref(h).showModal({data:Ir,indicatorUrl:vue.unref(p),indicatorToken:((Dr=window==null?void 0:window.config)==null?void 0:Dr.indicatorToken)||"",context:CONTEXT,pageId:getPageId()})},ii=Ir=>{vue.unref(v).showModal({data:Ir,pageConfig:c,unitText:pi(Ir)})},pi=Ir=>{let Dr="",Rr="";const{componentConfig:$r}=Ir;for(const Hr in $r)if($r[Hr].key==="currentValue"){Rr=Hr;break}const zr=vue.unref(Jn).find(Hr=>Hr.id===Rr);return zr!=null&&zr.unitText&&(Dr=zr.unitText),Dr};vue.provide("showIndDetail",ui);const bi={indexName:"指标名",currentValue:"当前值",refValue:"目标值",lastValueRate:"同比",lastCycleValueRate:"环比",systemSource:"指标标记"};window.addEventListener("message",async Ir=>{var Dr,Rr;if(c.customId==="ProviderConfig"){const $r=Ir.data||{};let zr;try{const Hr=(Dr=vue.unref(Wn))==null?void 0:Dr.filter(Qr=>Qr.type==="ecanIndexPanel");if($r.type==="checkData")zr={type:"checkDataRes",hasData:!!(Hr!=null&&Hr.length)};else if($r.type==="getData"){const Qr={};let li="";if(Hr!=null&&Hr.length)if((Rr=vue.unref(d).indDetailInfo)!=null&&Rr.visible){const ai=vue.unref(d).getPivotRecordData(),{columns:fi,rows:yi,indicators:hi,requestParams:oi,data:Yr,type:ci,drillContext:wi}=ai;ci==="pivotTable"?(oi&&(Qr.全局筛选条件=xi({params:oi,onlySql:!1})),Qr.当前表结构声明={分析维度:yi.concat(fi).map(vi=>vi.title),绝对值指标:hi.filter(vi=>!vi.calculateType).map(vi=>vi.title),"趋势/比率指标":hi.filter(vi=>vi.calculateType).map(vi=>vi.title)},Qr.明细数据=Yr):(Qr.钻取上下文=wi,Qr.流水日志=Yr),li=ci}else{Qr.运营数据=[];for(const ai of Hr){const fi={};for(const yi in ai.componentConfig){const hi=ai.componentConfig[yi];if(hi.show){const Yr=(yi?document.querySelector(`div[cpntid="${yi}"]`).textContent:"").split(/:|:/);Yr!=null&&Yr.length&&(fi[bi[hi.key]]=Yr[Yr.length-1])}}Qr.运营数据.push(fi)}vue.unref(Ur)&&(Qr.分析背景=xi({params:vue.unref(Ur),onlySql:!0}))}zr={type:"getDataRes",data:Qr},li&&(zr.dataType=li)}}catch(Hr){zr={error:Hr.message}}debugger;Ir.source.postMessage(zr,Ir.origin)}});function xi({params:Ir,onlySql:Dr}){var hi;const{sqlConditions:Rr,queryColumns:$r,indicatorList:zr}=Ir,Hr=$r.concat(zr).filter(oi=>oi.conditions),Qr=loopConditions(Hr,"conditions",!0),li=loopConditions(Rr,"sqlConditions",!1);let ai=[];const fi={};if(Dr)ai=li;else{ai=lodashEs.cloneDeep(Qr);for(const oi of li)if(!Qr.find(Yr=>Yr.typeGuid===oi.typeGuid)){const Yr=ai.findIndex(ci=>oi.typeGuid!=="the_date"&&(ci.typeGuid===oi.typeGuid||ci.typeGuid+"_code"===oi.typeGuid)||ci.typeGuid===oi.typeGuid+"_code");Yr!==-1&&ai.splice(Yr,1),ai.push(oi)}}if(!ai.find(oi=>oi.typeGuid==="the_date"&&!oi.alias)){const oi=ai.find(ci=>ci.alias.includes("-startTime")),Yr=ai.find(ci=>ci.alias.includes("-endTime"));if(oi&&Yr){const ci=oi.alias.replace("-startTime","");ci&&(fi[ci]=`${oi.fieldValue}至${Yr.fieldValue}`)}}for(const oi of ai){const{alias:Yr,label:ci,title:wi,fieldValue:vi,variateName:Ai}=oi;if(Yr){if(!Yr.includes("-startTime")&&!Yr.includes("-endTime")&&!Ai){const wr=vue.unref(Wn).find(Ar=>Ar.keyName===Yr);if(["ecanSelect"].includes(wr==null?void 0:wr.type)){const Ar=((hi=vue.unref(Wr)[wr.id])==null?void 0:hi.rows)||[];if(wr.mode==="multiple"){const Pr=vi.split(",");(Pr==null?void 0:Pr.length)===(Ar==null?void 0:Ar.length)?fi[Yr]="全院":fi[Yr]=Ar.filter(Fr=>Pr.includes(Fr.value)).map(Fr=>Fr.label).join(",")}else{const Pr=Ar.find(Fr=>Fr.value===vi);Pr&&(fi[Yr]=Pr.label)}}else fi[Yr]=vi}}else fi[wi||ci]=vi}return fi}return vue.onBeforeUnmount(()=>{Er==null||Er.clear(),Mr==null||Mr.clear()}),u({touchRequest:Lr,getGlobalModel:Gn,onRefreshPage:qr,emitEvent:Sr,getRecordValueByKeyName:or,showIndDetail:ui,showTrend:ii,props:c,systemVariable:zn}),{providerConfig:vn,configStyle:sr,indicatorUrl:p,theme:y,drillModalRef:d,indDetailModalRef:h,trendModalRef:v,scaleValue:re,defaultPivotTableFontSize:w,isMobile:Bn}}}),ProviderConfig_vue_vue_type_style_index_0_scoped_ef36476e_lang="",ProviderConfig_vue_vue_type_style_index_1_lang="",_hoisted_1$k=["id"];function _sfc_render$y(c,u,f,d,h,v){const p=vue.resolveComponent("drill-modal"),m=vue.resolveComponent("indicator-detail-modal"),g=vue.resolveComponent("trend-modal");return vue.openBlock(),vue.createElementBlock(vue.Fragment,null,[vue.createElementVNode("div",{class:"provider-config-container",id:c.customId,ref:"providerConfig",style:vue.normalizeStyle({...c.configStyle,fontFamily:c.pageFontFamily,...c.customStyle})},[vue.renderSlot(c.$slots,"default",{},void 0,!0)],12,_hoisted_1$k),vue.createVNode(p,{ref:"drillModalRef",width:c.width,theme:c.theme,drillingMode:c.drillingMode,pageMode:c.pageMode,scaleValue:c.scaleValue,pivotTableFontSize:c.defaultPivotTableFontSize,drillDetailUrl:c.drillDetailUrl},null,8,["width","theme","drillingMode","pageMode","scaleValue","pivotTableFontSize","drillDetailUrl"]),vue.createVNode(m,{ref:"indDetailModalRef",theme:c.theme},null,8,["theme"]),vue.createVNode(g,{ref:"trendModalRef",theme:c.theme},null,8,["theme"])],64)}const ProviderConfig=_export_sfc$1(_sfc_main$t,[["render",_sfc_render$y],["__scopeId","data-v-ef36476e"]]),EcanProviderConfig=withInstall$1(ProviderConfig),textProps={...props$1,name:"文本",keyName:"文本",type:"ecanText",width:"100px",height:"40px",text:"文字",lineHeight:"18px",color:"",variableColor:"",fontSize:"14px",fontFamily:"",fontWeight:400,textShadow:"",justifyContent:"center",alignItems:"center",variableFontSize:"14px",variableDefaultValue:"0",format:"",target:"self",href:"",linkPage:"",data:{},percentageSide:"left",increaseColor:"",declineColor:"",minusSignShow:!0,unitShow:!0,unitText:"",unitFontSize:"14px",unitFontWeight:400,unitColor:"#333",unitTop:"",unitLeft:"",graphicConfig:{},targetShow:!1,targetRule:"",targetValue:"",notExpectColor:"",gradientShow:!1,gradientColor:"",gradientOffset:1,gradientAngle:"180deg",openCustomRequestData:!0,customRequestName:"",customRequestField:"",showEllipsis:!1,showAnimation:!1,transParams:[],exceedConfig:"",targetTemplate:"",dataSetchecked:!1,titleContent:"",titleBackgroundColor:"#ffffff",titleFontColor:"#000000",isMarkDown:!1,isContentMarkDown:!1,parentId:""},textComponentProps=transformToComponentProps(textProps),textEvents=["refreshData","click","valueChange"],goUp="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAMAAADXqc3KAAAAV1BMVEUAAAD/WzT/WjP/WDD/WzT/WzP/WzT/WzT/WzT/WjT/WzT/WDT/YED/WzT/WzT/WjT/YED/WzT/WzT/WzT/XDT/WzT/WjX/WjP/XDT/XDT/WTL/Tif/WzReH8z5AAAAHHRSTlMA8RgS9W9YHbePZyME5sVjCP7bzcCxgndOQC4GFJJgKwAAAIJJREFUKM+Nkd0OgyAMRjvqcLA53fzXvv9zaokmxq8mnsue5ACFDjiy+XyjLZ7yyK35OxN5mSFZKa2QojEIKRhrZKM0QnsMQxirmJ0kBubTIZvAtUyiFAT4JFoUIYmIotZ5xjDPfyoCAV16nMPdFir8xZ16nM//tePtXw2ODOJY0V0WqQwM2rgKrU0AAAAASUVORK5CYII=",goDown="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAACXBIWXMAAAsTAAALEwEAmpwYAAAFHGlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNS42LWMxNDUgNzkuMTYzNDk5LCAyMDE4LzA4LzEzLTE2OjQwOjIyICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIgeG1sbnM6cGhvdG9zaG9wPSJodHRwOi8vbnMuYWRvYmUuY29tL3Bob3Rvc2hvcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RFdnQ9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZUV2ZW50IyIgeG1wOkNyZWF0b3JUb29sPSJBZG9iZSBQaG90b3Nob3AgQ0MgMjAxOSAoV2luZG93cykiIHhtcDpDcmVhdGVEYXRlPSIyMDIyLTA3LTIyVDA5OjM1OjE5KzA4OjAwIiB4bXA6TW9kaWZ5RGF0ZT0iMjAyMi0wNy0yMlQwOTozNTozNyswODowMCIgeG1wOk1ldGFkYXRhRGF0ZT0iMjAyMi0wNy0yMlQwOTozNTozNyswODowMCIgZGM6Zm9ybWF0PSJpbWFnZS9wbmciIHBob3Rvc2hvcDpDb2xvck1vZGU9IjMiIHBob3Rvc2hvcDpJQ0NQcm9maWxlPSJzUkdCIElFQzYxOTY2LTIuMSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDozNmRlNzg2MS1kNzhmLTQyNGYtYTNjOS01ZTk0MjkwY2RjZjEiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6MzZkZTc4NjEtZDc4Zi00MjRmLWEzYzktNWU5NDI5MGNkY2YxIiB4bXBNTTpPcmlnaW5hbERvY3VtZW50SUQ9InhtcC5kaWQ6MzZkZTc4NjEtZDc4Zi00MjRmLWEzYzktNWU5NDI5MGNkY2YxIj4gPHhtcE1NOkhpc3Rvcnk+IDxyZGY6U2VxPiA8cmRmOmxpIHN0RXZ0OmFjdGlvbj0iY3JlYXRlZCIgc3RFdnQ6aW5zdGFuY2VJRD0ieG1wLmlpZDozNmRlNzg2MS1kNzhmLTQyNGYtYTNjOS01ZTk0MjkwY2RjZjEiIHN0RXZ0OndoZW49IjIwMjItMDctMjJUMDk6MzU6MTkrMDg6MDAiIHN0RXZ0OnNvZnR3YXJlQWdlbnQ9IkFkb2JlIFBob3Rvc2hvcCBDQyAyMDE5IChXaW5kb3dzKSIvPiA8L3JkZjpTZXE+IDwveG1wTU06SGlzdG9yeT4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz6VDI+BAAABUUlEQVRIia3WPyhGURgG8B8pi0xisStKMioZLQaLiaQMBoxiVBImCwaLf6MssloUk8Gmb7GgJFKSUvIZ7qe+bvd89+A+03uf989z3nPPPe+tK5fLqtF3tSESzRjFAJ4vemams4IaYqulCq9gEo34QGco+LcCg9hHaxW3jpsiBIZxmMp5kXQTRH1k8S4cZCxoE6//FaiXbEtThm87JjkPI+jN4E9xW4TAQoA/isjNFehCT8B3VoTAUID/xHURAn0B/g5fRQh0B/j7mOJkf2gTaKvY7YG8FsxXPe/hIVbgCTs5C+vAasU+xlooMGuLTrCVI/CDR0zVCgi9gzmUIgQmBbYmT+AdY5LjGMKWpNuaqHWKLrEY8JUkXeYi75iu4DzFfUi6ey9C4AvjeKviliTdRSHmsrvBbMU+lzNg0oidaLvox7LIK+IHdem/iqIROzL/jG+NrT1BRsXKNQAAAABJRU5ErkJggg==";var esmEntry$1={exports:{}},defaults$5={exports:{}};function getDefaults$1(){return{baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}function changeDefaults$1(c){defaults$5.exports.defaults=c}defaults$5.exports={defaults:getDefaults$1(),getDefaults:getDefaults$1,changeDefaults:changeDefaults$1};const escapeTest=/[&<>"']/,escapeReplace=/[&<>"']/g,escapeTestNoEncode=/[<>"']|&(?!#?\w+;)/,escapeReplaceNoEncode=/[<>"']|&(?!#?\w+;)/g,escapeReplacements={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},getEscapeReplacement=c=>escapeReplacements[c];function escape$3(c,u){if(u){if(escapeTest.test(c))return c.replace(escapeReplace,getEscapeReplacement)}else if(escapeTestNoEncode.test(c))return c.replace(escapeReplaceNoEncode,getEscapeReplacement);return c}const unescapeTest=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function unescape$1(c){return c.replace(unescapeTest,(u,f)=>(f=f.toLowerCase(),f==="colon"?":":f.charAt(0)==="#"?f.charAt(1)==="x"?String.fromCharCode(parseInt(f.substring(2),16)):String.fromCharCode(+f.substring(1)):""))}const caret=/(^|[^\[])\^/g;function edit$1(c,u){c=c.source||c,u=u||"";const f={replace:(d,h)=>(h=h.source||h,h=h.replace(caret,"$1"),c=c.replace(d,h),f),getRegex:()=>new RegExp(c,u)};return f}const nonWordAndColonTest=/[^\w:]/g,originIndependentUrl=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function cleanUrl$1(c,u,f){if(c){let d;try{d=decodeURIComponent(unescape$1(f)).replace(nonWordAndColonTest,"").toLowerCase()}catch{return null}if(d.indexOf("javascript:")===0||d.indexOf("vbscript:")===0||d.indexOf("data:")===0)return null}u&&!originIndependentUrl.test(f)&&(f=resolveUrl(u,f));try{f=encodeURI(f).replace(/%25/g,"%")}catch{return null}return f}const baseUrls={},justDomain=/^[^:]+:\/*[^/]*$/,protocol=/^([^:]+:)[\s\S]*$/,domain=/^([^:]+:\/*[^/]*)[\s\S]*$/;function resolveUrl(c,u){baseUrls[" "+c]||(justDomain.test(c)?baseUrls[" "+c]=c+"/":baseUrls[" "+c]=rtrim$1(c,"/",!0)),c=baseUrls[" "+c];const f=c.indexOf(":")===-1;return u.substring(0,2)==="//"?f?u:c.replace(protocol,"$1")+u:u.charAt(0)==="/"?f?u:c.replace(domain,"$1")+u:c+u}const noopTest$1={exec:function(){}};function merge$2(c){let u=1,f,d;for(;u<arguments.length;u++){f=arguments[u];for(d in f)Object.prototype.hasOwnProperty.call(f,d)&&(c[d]=f[d])}return c}function splitCells$1(c,u){const f=c.replace(/\|/g,(v,p,m)=>{let g=!1,y=p;for(;--y>=0&&m[y]==="\\";)g=!g;return g?"|":" |"}),d=f.split(/ \|/);let h=0;if(d[0].trim()||d.shift(),d[d.length-1].trim()||d.pop(),d.length>u)d.splice(u);else for(;d.length<u;)d.push("");for(;h<d.length;h++)d[h]=d[h].trim().replace(/\\\|/g,"|");return d}function rtrim$1(c,u,f){const d=c.length;if(d===0)return"";let h=0;for(;h<d;){const v=c.charAt(d-h-1);if(v===u&&!f)h++;else if(v!==u&&f)h++;else break}return c.substr(0,d-h)}function findClosingBracket$1(c,u){if(c.indexOf(u[1])===-1)return-1;const f=c.length;let d=0,h=0;for(;h<f;h++)if(c[h]==="\\")h++;else if(c[h]===u[0])d++;else if(c[h]===u[1]&&(d--,d<0))return h;return-1}function checkSanitizeDeprecation$1(c){c&&c.sanitize&&!c.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}function repeatString$1(c,u){if(u<1)return"";let f="";for(;u>1;)u&1&&(f+=c),u>>=1,c+=c;return f+c}var helpers={escape:escape$3,unescape:unescape$1,edit:edit$1,cleanUrl:cleanUrl$1,resolveUrl,noopTest:noopTest$1,merge:merge$2,splitCells:splitCells$1,rtrim:rtrim$1,findClosingBracket:findClosingBracket$1,checkSanitizeDeprecation:checkSanitizeDeprecation$1,repeatString:repeatString$1};const{defaults:defaults$4}=defaults$5.exports,{rtrim,splitCells,escape:escape$2,findClosingBracket}=helpers;function outputLink(c,u,f,d){const h=u.href,v=u.title?escape$2(u.title):null,p=c[1].replace(/\\([\[\]])/g,"$1");if(c[0].charAt(0)!=="!"){d.state.inLink=!0;const m={type:"link",raw:f,href:h,title:v,text:p,tokens:d.inlineTokens(p,[])};return d.state.inLink=!1,m}else return{type:"image",raw:f,href:h,title:v,text:escape$2(p)}}function indentCodeCompensation(c,u){const f=c.match(/^(\s+)(?:```)/);if(f===null)return u;const d=f[1];return u.split(`
103
+ `,8,_hoisted_1$m)):c.drillDetailUrl?vue.createCommentVNode("",!0):(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:1},[c.loading?(vue.openBlock(),vue.createElementBlock("div",_hoisted_2$c,[vue.createVNode(y,{size:"large"})])):(vue.openBlock(),vue.createBlock(b,{key:1,"row-key":x=>x.uid,columns:c.columns,"data-source":c.dataSource,pagination:c.pagination,scroll:{x:"max-content",y:c.isMobile?"70vh":""},onChange:c.handleTableChange},{headerCell:vue.withCtx(({title:x})=>[vue.createElementVNode("div",{title:x,style:vue.normalizeStyle({fontSize:c.fontSize+"px"})},vue.toDisplayString(x),13,_hoisted_3$6)]),bodyCell:vue.withCtx(({text:x})=>[vue.createElementVNode("div",{title:x,style:vue.normalizeStyle({fontSize:c.fontSize+"px"})},vue.toDisplayString(x),13,_hoisted_4$5)]),_:1},8,["row-key","columns","data-source","pagination","scroll","onChange"]))],64))]),_:1},8,["wrapClassName","visible","bodyStyle","getContainer","onCancel"])}const LastDetail=_export_sfc$1(_sfc_main$v,[["render",_sfc_render$A],["__scopeId","data-v-4e73fb65"]]),_sfc_main$u=vue.defineComponent({name:"DrillModal",components:{ATable:antDesignVue.Table,BorderOutlined:BorderOutlined$1,SwitcherOutlined:SwitcherOutlined$1,CloseOutlined:CloseOutlined$1,LastDetail},props:{theme:{type:String,default:"light"},drillingMode:{type:String,default:"default"},pageMode:{type:String,default:"normal"},scaleValue:{type:Object,default:()=>({})},pivotTableFontSize:{type:Number,default:16},width:{type:String,default:""},drillDetailUrl:{type:String,default:""}},setup(c,{expose:u,emit:f}){const m={IN:"属于",NOT_IN:"不属于",LIKE:"包含",NOT_LIKE:"不包含","LIKE%":"开头是","%LIKE":"结尾是",EQUAL:"等于",LESS:"小于",LESS_EQUAL:"小于等于",GREATER:"大于",GREATER_EQUAL:"大于等于",NOT_EQUAL:"不等于"},g={borderColor:"#666E8D",headerBgColor:"#06347C",headerColor:"#DEE5EF",bodyBgColor:"#112861",bodyColor:"#B2CCE7",indicatorsHeaderBgColor:"#184273",indicatorsHeaderColor:"#FFFFFF",indicatorsBodyBgColor:"#184273",indicatorsBodyColor:"#FFFFFF",aggregateBgColor:"#0F4F9B",aggregateColor:"#FFFCFC",sortNotActiveColor:"#B0B0B0",sortActiveColor:"#00CCFF",dropDownMenuBgColor:"#08154F",dropDownMenuColor:"#B2C3DD",dropDownMenuHightLightColor:"#2E68CF"},y=vue.ref(!1),b=vue.ref(),Pn=vue.ref(),x=vue.ref(),gn=vue.ref(!1),J=vue.ref({}),j=vue.ref([]),Rn=vue.ref([]),Bn=vue.ref([]),w=vue.ref(!1),vn=vue.ref({dateFormat:"YYYY-MM-DD"}),re=vue.reactive({keyName:"",visible:!1,dataSource:[],columns:[],title:"",pagination:{current:1,pageSize:10,total:0,showSizeChanger:!1,showQuickJumper:!1,showLessItems:!0,showTotal:br=>`共 ${br} 条数据`}}),qn=vue.ref({}),zn=vue.ref({}),Yn=vue.inject("isMobile",!1),Wn=vue.inject("usedComponentList",[]),Jn=vue.inject("componentList",[]),{getAllGlobalModel:tr}=vue.inject(GLOBAL_MODEL,{getAllGlobalModel:()=>{}}),er=vue.computed(()=>INDICATOR_URL);vue.watch(()=>re.visible,br=>{br?document.documentElement.style.overflow="hidden":document.documentElement.style.overflow="hidden auto"});const Qn=vue.computed(()=>({width:vue.unref(J).width,height:vue.unref(J).height})),ar=vue.computed(()=>vue.unref(Yn)?{padding:"10px 0"}:c.drillingMode==="normalTable"&&!gn.value?{height:window.screen.height*.6+48+"px",overflow:"auto"}:{}),hr=vue.computed(()=>{let br="datav-drill-modal";return(gn.value||vue.unref(Yn))&&(br+=" full"),c.theme==="darkBlue"&&(br+=" darkBlue"),br}),sr=(br,ur)=>{const{leftAxisList:pr=[],rightAxisList:_r=[],indicators:xr=[],classificationList:kr=[],rowHeaderList:vr=[],dimensionList:Sr=[],seriesList:Cr=[],queryColumns:Tr=[],indexLibColumns:Er=[]}=ur.graphicConfig,Br=pr.concat(_r).concat(xr).concat(kr).concat(vr).concat(Sr).concat(Cr).concat(Tr).concat(Er).filter(Nr=>Nr.conditions),Kr=loopConditions(Br,"conditions",!0),Lr=loopConditions(br.sqlConditions,"sqlConditions",!1);Rn.value=Kr.concat(Lr).filter(Nr=>Nr.label)||[]},Un=()=>document.querySelector("#modalContainer")||document.body,Zn=async({cpntProps:br,pageId:ur,formatParams:pr,classifications:_r,indicatorToken:xr})=>{var kr,vr,Sr;return await request({url:`${vue.unref(er)}/diagram/obtainDrillAbleDimensionOptions`,method:"post",headers:{Authentication:xr,operateContext:CONTEXT},data:{source:((kr=br==null?void 0:br.graphicConfig)==null?void 0:kr.source)||"INDICATOR_LIB",pageId:ur,indicatorList:(pr==null?void 0:pr.indicatorList)||[],classifications:_r,dataSourceId:((vr=br==null?void 0:br.graphicConfig)==null?void 0:vr.dataSourceId)||""},signal:((Sr=window.controller)==null?void 0:Sr.signal)||""})},Hn=br=>{let ur="",pr="";const{componentConfig:_r}=br;for(const kr in _r)if(_r[kr].key==="currentValue"){pr=kr;break}const xr=vue.unref(Jn).find(kr=>kr.id===pr);return xr!=null&&xr.unitText&&(ur=xr.unitText),ur};function Gn(br){const ur=[];for(const pr of br)pr.sqlConditions?ur.push(...Gn(pr.sqlConditions)):pr.fieldName==="the_date"&&ur.push(pr);return ur}const ir=br=>{var kr;const{sqlConditions:ur=[],queryColumns:pr=[]}=br||{},_r=Gn(ur),xr=pr.find(vr=>vr.typeGuid==="the_date");if(xr&&(vn.value={dateFormat:xr.dateFormat||"YYYY-MM-DD"}),_r!=null&&_r.length)for(const vr of _r)["startTime","endTime"].includes(vr.prop)&&(vue.unref(vn)[vr.prop]=vr.fieldValue||"",(kr=vue.unref(vn))!=null&&kr.rangeFormat||(vue.unref(vn).rangeFormat=vr.dateFormat||"YYYY-MM-DD"))},Kn=async br=>{var Mr,Br,Kr,Lr,Nr;if(c.drillingMode==="default")return;let ur=lodashEs.cloneDeep(br).props;if(ur.parentId){const qr=vue.unref(Wn).find(Wr=>Wr.id===ur.parentId);if((qr==null?void 0:qr.dataType)==="indicator")ur=lodashEs.cloneDeep(qr);else return}re.keyName=ur==null?void 0:ur.keyName;const pr=((Mr=window==null?void 0:window.config)==null?void 0:Mr.indicatorToken)||"",_r=getPageId(),xr=(ur==null?void 0:ur.graphicConfig)||{},{leftAxisList:kr=[],rightAxisList:vr=[],indicators:Sr=[]}=xr,Cr=kr.concat(vr).concat(Sr);if(!(Cr!=null&&Cr.length))return;const Tr=Cr.filter(qr=>qr.show).map(qr=>qr.label);Tr!=null&&Tr.length&&(re.title=`下钻:${Tr.join("、")}`);const Er=En({...ur,allComponentList:vue.unref(Jn),globalModel:tr()});if(c.drillingMode==="normalTable"||vue.unref(Yn)){re.pagination.current=1;let qr=(Er==null?void 0:Er.classification)||(Er==null?void 0:Er.classifications)||[];Array.isArray(qr)||(qr=[qr]);try{w.value=!0,re.visible=!0;const Wr=await Zn({cpntProps:ur,pageId:_r,formatParams:Er,classifications:qr,indicatorToken:pr}),Ur=((Br=Wr==null?void 0:Wr.data)==null?void 0:Br.data)||[];Bn.value=Ur;let Xr=[],ri=[];const{usedDimensions:ei=[],params:ui={}}=br;if(ei!=null&&ei.length){for(const $r of Ur)if(!ei.find(zr=>zr.label===$r.name)){ri.push($r);break}Er.sqlConditions=lodashEs.cloneDeep(ui.sqlConditions);const{sqlConditions:Dr=[]}=Er,{record:Rr={}}=br;ei.forEach(($r,zr)=>{if(mn(Rr,$r.label)){const Hr=Ur.find(li=>li.name===$r.label),Qr={fieldName:$r.label,fieldValue:Rr[$r.label],globalCondition:!0,hrpIndexCode:null,hrpIndexCodeNum:null,label:$r.label,rule:"EQUAL",typeGuid:$r.typeGuid,valueType:(Hr==null?void 0:Hr.genericType)||"TEXT"};zr!==ei.length-1&&(Qr.join="&&"),zr===0&&(Dr!=null&&Dr.length)&&(Dr[Dr.length-1].join="&&"),Dr.push(Qr)}})}else Xr=qr.map(Dr=>({...Dr,calcType:"COLUMN"})),ri=Ur.slice(0,2).sort((Dr,Rr)=>Dr.typeGuid-Rr.typeGuid);sr(Er,lodashEs.cloneDeep(br.props));for(const Dr of ri)Xr.push({calcType:"COLUMN",columnName:Dr.name,label:Dr.name,show:!0,typeGuid:Dr.typeGuid});Er.queryColumns=Xr,Er.layer="1",Er.plugin="1",delete Er.classification,delete Er.classifications;const{url:ii,...pi}=Er||{};zn.value=pi,ir(Er);const bi=await request({url:`${vue.unref(er)}${ii}`,method:"post",headers:{Authentication:pr,operateContext:CONTEXT},data:{...pi,pageId:_r}}),{columns:xi=[],rows:Ir=[]}=((Kr=bi==null?void 0:bi.data)==null?void 0:Kr.data)||{};if(yn(ur.type,"indexPanel")){const Dr=xr.indicators.find($r=>$r.show),Rr=Hn(ur);Rr&&Dr&&(qn.value={[Dr.label]:Rr})}re.columns=xi.filter(Dr=>!!Dr).map(Dr=>{let Rr=Dr;const $r=Ur.find(zr=>zr.name===Dr);return $r&&(Rr=$r.title||$r.label),{title:Rr,dataIndex:Dr,width:"120px",customCell:(zr,Hr,Qr)=>({[vue.unref(Yn)?"onClick":"onDblclick"]:()=>{Ur.find(ai=>Qr.dataIndex===ai.name)?(!(ei!=null&&ei.length)||Ur.length-1>ei.length)&&(y.value=!0,vue.nextTick(()=>{vue.unref(b).showModal({...br,record:zr,usedDimensions:[...ei,...Xr],params:Er})})):vue.unref(Pn).showModal({record:zr,dimOpts:Ur,column:Qr,formatParams:Er,cpntProps:ur,drillDetailUrl:c.drillDetailUrl,drillConditions:vue.unref(mr)})}})}}),re.dataSource=(Array.isArray(Ir)?Ir:[Ir]).map(Dr=>({...Dr,uuid:nanoid(6)})),re.pagination.total=(Ir==null?void 0:Ir.length)||0,w.value=!1}catch(Wr){console.error(Wr)}}else if(c.drillingMode==="pivotTable"){const qr=await Zn({cpntProps:ur,pageId:_r,formatParams:Er,classifications:[],indicatorToken:pr});Bn.value=((Lr=qr==null?void 0:qr.data)==null?void 0:Lr.data)||[];const Wr=nanoid(6);xr.queryColumnList||(xr.queryColumnList=[]),xr!=null&&xr.classificationList&&(xr.queryColumnList=xr.classificationList,delete xr.classificationList),xr!=null&&xr.seriesList&&(xr.queryColumnList=xr.queryColumnList.concat(xr.seriesList),delete xr.seriesList),xr.indicators=lodashEs.cloneDeep(Cr||[]),delete xr.leftAxisList,delete xr.rightAxisList;const Ur={};if(yn(ur.type,"indexPanel")){const ri=xr.indicators.find(ii=>ii.show),ei=vue.unref(Bn).slice(0,2).sort((ii,pi)=>ii.typeGuid-pi.typeGuid).map(ii=>({...ii,show:!0,edit:!1,dataTo:"0",width:ii.name==="the_date"?15:0,dataSetParams:{}}));ei!=null&&ei.length&&(xr.queryColumnList=ei);const ui=Hn(ur);if(ui&&ri){const{label:ii}=ri;Ur.defaultConfig={indexFormatConfig:{[ii]:{fieldName:ii,indicatorKey:ii,position:"right",unit:ui}}}}}ur!=null&&ur.theFlag&&(Ur.theFlag=ur.theFlag),(Nr=xr.queryColumnList)!=null&&Nr.length||(xr.queryColumnList=[{id:"3f5bda70a08a442085857adb7fc547de",indexCode:null,indexCodeNum:null,title:"日期(内置)",name:"the_date",label:"日期(内置)",typeGuid:"the_date",genericType:"DATE",hrpIndexComplexid:"the_date",scope:"BUILT_IN_DIM",fromTable:"hrp_index_complex",parentId:"3f5bda70a08a442085857adb7fc547de",show:!0,edit:!1,dataTo:"0",dataSetParams:{}}]);const Xr={...lodashEs.cloneDeep(pivotTableProps),id:Wr,keyName:`透视表_${Wr}`,position:"relative",top:0,left:0,width:parseFloat(c.width)*.57+"px",height:window.screen.height*.6+"px",pageId:_r,indicatorToken:pr,context:CONTEXT,globalModel:tr(),graphicConfig:xr,pageConfig:c,...Ur};c.theme==="darkBlue"&&(Xr.styleConfig=g),J.value=Xr,re.visible=!0,vue.nextTick(()=>{vue.unref(x).refreshData()})}vue.nextTick(()=>{dr(!0),nr(!0)})},or=br=>{re.pagination.current=br.current},dr=br=>{const ur=document.querySelector(".datav-drill-modal .ant-modal-header");ur&&(br?ur.addEventListener("dblclick",fr):ur.removeEventListener("dblclick",fr))},nr=br=>{const ur=document.querySelector(".datav-drill-modal .ant-modal-header");if(ur)if(br)ur.addEventListener("mousedown",lr);else{const pr=ur.parentElement;pr&&(pr.style.left="",pr.style.top=""),ur.removeEventListener("mousedown",lr)}};function lr(br){dragModalAction(br,".datav-drill-modal .ant-modal-header")}const fr=()=>{gn.value=!gn.value,vue.nextTick(()=>{gn.value?(vue.unref(J).width=parseFloat(c.width)*.97+"px",vue.unref(J).height=window.screen.height*.9+"px",nr(!1)):(vue.unref(J).width=parseFloat(c.width)*.57+"px",vue.unref(J).height=window.screen.height*.6+"px",nr(!0))})},Xn=()=>{gn.value=!1,dr(!1),nr(!1),f("close")},cr=({type:br,data:ur})=>{if(br==="11"&&ur){const{indicatorList:pr=[],queryColumns:_r=[]}=ur,kr=pr.concat(_r).filter(Cr=>Cr.conditions||Cr.filter),vr=loopConditions(kr,"conditions",!0),Sr=loopConditions(ur.sqlConditions,"sqlConditions",!1);Rn.value=vr.concat(Sr).filter(Cr=>Cr.label)||[]}};vue.watch(Rn,(br=[])=>{j.value=br.map(ur=>{let pr=ur.fieldValue;if(pr&&typeof pr=="string"){const _r=pr.split(",");(_r==null?void 0:_r.length)>3&&(pr=_r.slice(0,3).join(",")+"等")}else pr||(pr='""');if(c.drillingMode==="normalTable")return`${ur.label} ${m[ur.rule]} ${pr}`;{const _r=vue.unref(Bn).find(xr=>xr.label===ur.label);return`${(_r==null?void 0:_r.title)||ur.label} ${m[ur.rule]} ${pr}`}})||[]},{deep:!0});const mr=vue.computed(()=>vue.unref(Rn).map(br=>({label:br.title||br.label,typeGuid:br.typeGuid,rule:br.rule,value:br.fieldValue}))),gr=()=>{y.value=!1};return u({indDetailInfo:re,showModal:Kn,getPivotRecordData:()=>{var br,ur,pr,_r,xr,kr,vr,Sr,Cr,Tr;if(c.drillingMode==="normalTable"){if((br=vue.unref(Pn))!=null&&br.visible)return(ur=vue.unref(Pn))==null?void 0:ur.getRecordData();if((_r=(pr=vue.unref(b))==null?void 0:pr.indDetailInfo)!=null&&_r.visible)return(xr=vue.unref(b))==null?void 0:xr.getPivotRecordData();{const{sqlConditions:Er,...Mr}=vue.unref(zn);for(const Br of Er){const Kr=vue.unref(Bn).find(Lr=>Lr.typeGuid===Br.typeGuid);Kr!=null&&Kr.title&&(Br.title=Kr.title)}return{data:vue.toRaw(re.dataSource),columns:[],rows:((vr=(kr=vue.unref(zn))==null?void 0:kr.queryColumns)==null?void 0:vr.map(Br=>({title:Br.label})))||[],indicators:((Cr=(Sr=vue.unref(zn))==null?void 0:Sr.indicatorList)==null?void 0:Cr.map(Br=>({title:Br.label})))||[],requestParams:{...Mr,sqlConditions:Er},type:"pivotTable"}}}else if(c.drillingMode==="pivotTable")return(Tr=vue.unref(x))==null?void 0:Tr.getPivotRecordData()}}),{indDetailInfo:re,pivotTableConfig:J,pivotTableStyle:Qn,detailBodyStyle:ar,wrapClassName:hr,isIndFullScreen:gn,isMobile:Yn,conditionInfo:j,indicatorUrl:er,allDimensions:Bn,detailLoading:w,pivotTableRef:x,lastDetailRef:Pn,subDrillModalRef:b,theDateInfo:vn,isShowSubDrillModal:y,normalTableUnits:qn,drillConditions:mr,allComponentList:Jn,getContainer:Un,toggleFullScreen:fr,onDetailCancel:Xn,onPivotTableChange:cr,handleTableChange:or,onCloseModal:gr}}}),DrillModal_vue_vue_type_style_index_0_scoped_519a7174_lang="",DrillModal_vue_vue_type_style_index_1_lang="",_hoisted_1$l=["title"],_hoisted_2$b={key:0,class:"spin-container"},_hoisted_3$5=["title"],_hoisted_4$4=["title"];function _sfc_render$z(c,u,f,d,h,v){const p=vue.resolveComponent("close-outlined"),m=vue.resolveComponent("switcher-outlined"),g=vue.resolveComponent("border-outlined"),y=vue.resolveComponent("a-spin"),b=vue.resolveComponent("a-table"),Pn=vue.resolveComponent("pivot-table"),x=vue.resolveComponent("a-modal"),gn=vue.resolveComponent("last-detail"),J=vue.resolveComponent("drill-modal",!0);return vue.openBlock(),vue.createElementBlock(vue.Fragment,null,[vue.createVNode(x,{visible:c.indDetailInfo.visible,"onUpdate:visible":u[1]||(u[1]=j=>c.indDetailInfo.visible=j),width:"60%",getContainer:c.getContainer,footer:null,destroyOnClose:!0,"wrap-class-name":c.wrapClassName,bodyStyle:c.detailBodyStyle,onCancel:c.onDetailCancel},{title:vue.withCtx(()=>[vue.createElementVNode("div",{class:"detail-modal-title",title:c.conditionInfo.join("、")},vue.toDisplayString(c.indDetailInfo.title)+" "+vue.toDisplayString(c.conditionInfo.join("、")),9,_hoisted_1$l)]),closeIcon:vue.withCtx(()=>[vue.createVNode(p,{class:vue.normalizeClass(["modal-icon",c.theme])},null,8,["class"])]),default:vue.withCtx(()=>[c.isMobile?vue.createCommentVNode("",!0):(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"zoom-btn",onClick:u[0]||(u[0]=(...j)=>c.toggleFullScreen&&c.toggleFullScreen(...j))},[c.isIndFullScreen?(vue.openBlock(),vue.createBlock(m,{key:0,class:vue.normalizeClass(["modal-icon",c.theme])},null,8,["class"])):(vue.openBlock(),vue.createBlock(g,{key:1,class:vue.normalizeClass(["modal-icon",c.theme])},null,8,["class"]))])),c.drillingMode==="normalTable"||c.isMobile?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:1},[c.detailLoading?(vue.openBlock(),vue.createElementBlock("div",_hoisted_2$b,[vue.createVNode(y,{size:"large"})])):(vue.openBlock(),vue.createBlock(b,{key:1,"row-key":j=>j.uuid,columns:c.indDetailInfo.columns,"data-source":c.indDetailInfo.dataSource,pagination:c.indDetailInfo.pagination,onChange:c.handleTableChange},{headerCell:vue.withCtx(({title:j})=>[vue.createElementVNode("div",{class:"detail-table-header-cell",title:j,style:vue.normalizeStyle({fontSize:c.pivotTableFontSize+"px"})},vue.toDisplayString(j),13,_hoisted_3$5)]),bodyCell:vue.withCtx(({text:j,column:Rn})=>[vue.createElementVNode("div",{title:j,style:vue.normalizeStyle({fontSize:c.pivotTableFontSize+"px"})},vue.toDisplayString(j)+vue.toDisplayString(c.normalTableUnits[Rn.title]),13,_hoisted_4$4)]),_:1},8,["row-key","columns","data-source","pagination","onChange"]))],64)):c.drillingMode==="pivotTable"?(vue.openBlock(),vue.createElementBlock("div",{key:2,style:vue.normalizeStyle({position:"relative",...c.pivotTableStyle})},[vue.createVNode(Pn,vue.mergeProps({ref:"pivotTableRef"},c.pivotTableConfig,{pageMode:c.pageMode,theme:c.theme,fullMode:!1,allowDrill:!0,showFullScreen:!1,indicatorUrl:c.indicatorUrl,relateKeyName:c.indDetailInfo.keyName,allDimensions:c.allDimensions,scaleValue:c.scaleValue,defaultFontSize:c.pivotTableFontSize,drillDetailUrl:c.drillDetailUrl,drillConditions:c.drillConditions,isMobile:c.isMobile,isNeedEmptyRow:!1,componentList:c.allComponentList,enlargeContainer:"#norPageConfig",onTableChange:c.onPivotTableChange}),null,16,["pageMode","theme","indicatorUrl","relateKeyName","allDimensions","scaleValue","defaultFontSize","drillDetailUrl","drillConditions","isMobile","componentList","onTableChange"])],4)):vue.createCommentVNode("",!0)]),_:1},8,["visible","getContainer","wrap-class-name","bodyStyle","onCancel"]),vue.createVNode(gn,{ref:"lastDetailRef",theme:c.theme,theDateInfo:c.theDateInfo,scaleValue:c.scaleValue,fontSize:c.pivotTableFontSize,allDimensions:c.allDimensions},null,8,["theme","theDateInfo","scaleValue","fontSize","allDimensions"]),c.isShowSubDrillModal?(vue.openBlock(),vue.createBlock(J,{key:0,ref:"subDrillModalRef",width:c.width,theme:c.theme,drillingMode:c.drillingMode,pageMode:c.pageMode,scaleValue:c.scaleValue,pivotTableFontSize:c.pivotTableFontSize,drillDetailUrl:c.drillDetailUrl,onClose:c.onCloseModal},null,8,["width","theme","drillingMode","pageMode","scaleValue","pivotTableFontSize","drillDetailUrl","onClose"])):vue.createCommentVNode("",!0)],64)}const DrillModal=_export_sfc$1(_sfc_main$u,[["render",_sfc_render$z],["__scopeId","data-v-519a7174"]]),_sfc_main$t=vue.defineComponent({name:"EcanProviderConfig",inheritAttrs:!1,components:{IndicatorDetailModal,TrendModal,DrillModal},props:{...providerConfigComponentProps,pageId:{type:String,default:""},customId:{type:String,default:"ProviderConfig"},customStyle:{type:Object,default:()=>({})},fixedHeight:{type:String,default:"0px"}},setup(c,{expose:u,emit:f}){c.pageId||useHrefParamsToGlobalVariables();const d=vue.ref(),h=vue.ref(),v=vue.ref(),p=vue.computed(()=>INDICATOR_URL),m=vue.computed(()=>hn(c.contextRequestUrl)),g=vue.computed(()=>c.pageMode),y=vue.computed(()=>c.theme),b=vue.computed(()=>c.width),Pn=vue.computed(()=>c.height),x=vue.computed(()=>c.pageFontFamily),gn=vue.computed(()=>c.textColor),J=vue.computed(()=>c.fixedHeight?parseFloat(c.fixedHeight):0),j=vue.computed(()=>c.isCompatible),Rn=vue.computed(()=>c.variableList),Bn=vue.computed(()=>!!navigator.userAgent.match(/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i)),w=vue.computed(()=>parseFloat(c.pivotTableFontSize)),vn=vue.ref(),re=vue.ref({}),qn=()=>{vn.value.setAttribute("datav-theme",c.theme)},zn=vue.ref({currentYmd:dayjs().format("YYYY-MM-DD"),currentYear:dayjs().format("YYYY"),currentMonth:dayjs().format("MM"),currentDay:dayjs().format("DD")}),Yn=vue.computed(()=>{const Ir={};if(vue.unref(Rn))for(const Rr of vue.unref(Rn))Ir[Rr.label]=Rr.value;return{$page:{...vue.unref(zn),...Ir}}});vue.provide(GLOBAL_VARIABLE,{globalVariable:Yn});const Wn=vue.inject("usedComponentList",[]),Jn=vue.inject("componentList",[]);vue.watch(Yn,()=>{f("setGlobalVar",vue.unref(zn))},{deep:!0,immediate:!0});const tr=vue.computed(()=>{const Ir=[];for(const Dr of vue.unref(Wn))Dr.type==="ecanModal"?Ir.push(...Dr.componentList):Ir.push(Dr);return Ir});vue.watch(()=>c.theme,()=>{qn()}),vue.onMounted(()=>{qn()});const er=vue.computed(()=>{const Ir=[],Dr=vue.unref(Jn).filter(Rr=>Rr.type==="ecanModal");for(const Rr of Dr)Rr!=null&&Rr.requestList&&Ir.push(...Rr.requestList);return[...Ir,...c.requestList]}),Qn=Ir=>Object.prototype.toString.call(Ir)==="[object Object]",ar=Ir=>{const Dr=Ir.split(".");let Rr=vue.unref(Yn);for(const $r of Dr)if(Rr&&Qn(Rr))Rr=Rr[$r];else{Rr="";break}return Rr},hr=vue.ref("");vue.provide(GLOBAL_CONFIG,{contextRequestUrl:m,pageMode:g,theme:y,touchEventId:hr,width:b,height:Pn,fontFamily:x,textColor:gn,requestList:er,isCompatible:j,fixedHeight:J,getGlobalVar:ar});const sr=vue.ref({height:"100%",overflow:c.pageMode==="design"?"":"hidden"});vue.provide("setPageHeight",Ir=>{let Dr=0;Ir==="auto"?(Dr=Ir,re.value={widthScale:1,heightScale:1}):(Dr=Ir.heightScale,re.value=Ir),(!j.value||!Bn.value)&&(Dr=parseFloat(Pn.value)*Dr+"px"),sr.value.height=Dr}),vue.provide("isMobile",Bn.value),vue.provide("getContainerMap",()=>c.containerMap),vue.provide("getCombinationMap",()=>c.combinationMap),vue.provide("templateOperate",{pageId:c.pageId,templateEmit:f,setTemplateData:Ir=>{var Dr;if(Ir!=null&&Ir.pageId){const{componentId:Rr,...$r}=Ir;(Dr=window.config)!=null&&Dr.urlParams||(window.config.urlParams={}),window.config.urlParams[Ir.pageId]=$r,f("templateChange",Ir)}}});const Un=vue.ref(),Zn=new Map,Hn=()=>Zn,Gn=Ir=>{let Dr=Zn.get(Ir);if(!Dr){const Rr=vue.unref(Jn).find($r=>$r.keyName===Ir);Rr&&(Dr=Zn.get(Rr.id))}return Dr},ir=(Ir,Dr)=>{var Rr;if(Un.value=Dr,Zn.set(Ir,Dr),!c.pageId){const $r=vue.unref(Wn).find(zr=>zr.id===Ir);$r&&((Rr=window.config)!=null&&Rr.record||(window.config.record={}),window.config.record[$r.keyName]=Dr)}},Kn=()=>{Un.value=null},or=Ir=>{let Dr=Ir;if(Dr){const Rr=Ir.match(/\{(.+?)\}/g);if(Rr!=null&&Rr.length){let $r=Rr[0].slice(1,-1).trim();const zr=$r.match(/\[(.+?)\]/g);let Hr="";zr!=null&&zr.length&&($r=$r.replace(zr[0],""),Hr=zr[0].slice(1,-1).trim());const Qr=vue.unref(tr).find(li=>li.keyName===$r);if(Qr){const li=Gn(Qr.id),{type:ai,value:fi,RECORD:yi,recordData:hi}=li||{};yn(ai,MODEL_KEY_LIST)?Dr=yi[Hr]:yn(ai,"select")?hi[Hr]?Dr=hi[Hr]:Dr=vue.unref(fi):yn(ai,["rangePicker","date"])?dayjs.isDayjs(vue.unref(li[Hr]))?Dr=vue.unref(li[Hr]).format(li.format):Dr=vue.unref(li[Hr]):Dr=fi}else{const li=window.config.requestParams||{},ai=window.location.search.slice(1).split("&"),fi={};for(const hi of ai)if(hi!=null&&hi.includes("=")){const oi=hi.split("=");fi[oi[0]]=oi[1]||""}Dr={...fi,...li}[$r]||""}}}return Dr},dr=new Map,nr={},lr=async(Ir,Dr)=>{var Qr;const{requestName:Rr}=Ir,$r=await useRequestData({...Ir,projectRequestUrl:vue.unref(m),getModel:Gn})(),zr=((Qr=$r==null?void 0:$r.data)==null?void 0:Qr.data)||{};Ir.requestKeyName&&(zn.value[Ir.requestKeyName]=zr);const Hr=dr.get(Rr);if(Hr!=null&&Hr.length&&(!Dr||nr[Rr])){for(const li of Hr)li(zr);Dr||dr.delete(Rr)}},fr=(Ir,Dr)=>{nr[Ir]&&(clearInterval(nr[Ir]),delete nr[Ir],dr.delete(Ir));const Rr=vue.unref(tr).filter(zr=>zr.dataType==="request"&&!zr.openCustomRequestData&&zr.customRequestName===Ir),$r=dr.get(Ir)||[];if((Rr==null?void 0:Rr.length)>$r.length&&($r.push(Dr),dr.set(Ir,$r),(Rr==null?void 0:Rr.length)===$r.length)){const zr=vue.unref(er).find(Hr=>Hr.requestName===Ir);zr&&(zr!=null&&zr.isOpenRequestTimer&&(zr!=null&&zr.requestInterval)?(lr(zr,!0),nr[Ir]=setInterval(()=>{lr(zr,!0)},zr.requestInterval*1e3)):lr(zr))}};vue.provide(GLOBAL_MODEL,{getGlobalModel:Gn,setGlobalModel:ir,getAllGlobalModel:Hn,clearInteractiveData:Kn,getRecordValueByKeyName:or,hanldePageRequestData:fr,interactiveData:Un});const Xn=vue.ref({}),cr=(Ir,Dr)=>{Xn.value[Ir]=Dr};vue.provide(LOADED_DATA,{loadedData:Xn,setLoadedData:cr});const mr=[],gr=()=>{mr.pop()},yr=Ir=>{mr.push(Ir)},br=new Map,ur=Ir=>br.get(Ir),pr=(Ir,Dr)=>{br.set(Ir,Dr)};vue.provide(MODAL_MODEL,{popUseModalIds:gr,pushUseModalIds:yr,getModalModel:ur,setModalModel:pr});const _r=mitt(),xr=new Set,kr=(Ir,Dr)=>{xr.add(Ir),_r.on(Ir,Rr=>{const{eventName:$r,params:zr}=Rr;return typeof Dr[$r]=="function"&&Dr[$r](zr)}),vue.onBeforeUnmount(()=>{vr(Ir)})},vr=Ir=>{xr.delete(Ir),_r.off(Ir)},Sr=(Ir,Dr,Rr={})=>{if(Ir==="PAGE"){const $r=mr.length;let zr=[];if($r===0)zr=[...xr];else{const Hr=mr[$r-1];zr=[...ur(Hr)]}zr.forEach(Hr=>{_r.emit(Hr,{eventName:Dr,params:Rr})})}else _r.emit(Ir,{eventName:Dr,params:Rr})};vue.provide(EVENT_BUS,{onEvent:kr,offEvent:vr,emitEvent:Sr});const Cr=vue.ref(0),Tr=()=>{Cr.value=vue.unref(Cr)+1};vue.provide(GLOBAL_TOKEN,{requestToken:Tr});const Er=new Map,Mr=new Map,Br=({requestFn:Ir=()=>{},sortNum:Dr=0,id:Rr=""})=>{if(Er.has(Dr)){const $r=Er.get(Dr);$r==null||$r.push(Ir)}else Er.set(Dr,[Ir]);Mr.set(Rr,Ir)},Kr=Ir=>new Promise((Dr,Rr)=>{const $r=[];for(const zr of Ir)$r.push(new Promise(async Hr=>{await zr(),Hr()}));Promise.all($r).then(zr=>{Dr(zr)}).catch(zr=>{Rr(zr)})}),Lr=Ir=>new Promise(async(Dr,Rr)=>{if(Ir){if(typeof Ir=="string"){const $r=Mr.get(Ir);if(typeof $r=="function"){const zr=request.interceptors.response.use(Hr=>(Dr(Hr),Hr),Hr=>(Rr(Hr),Promise.reject(Hr)));$r(),request.interceptors.response.eject(zr)}}}else{const $r=Array.from(Er);$r.sort((Hr,Qr)=>Qr[0]-Hr[0]);const zr=$r.length;try{c.pageMode!=="design"&&vue.unref(Cr)>0;for(let Hr=0;Hr<zr;Hr++){const Qr=$r[Hr][1];await Kr(Qr)}}catch(Hr){console.error(Hr)}finally{Er.clear(),Dr(null)}}});vue.provide(REQUEST_MODEL,{setRequest:Br,touchRequest:Lr});const Nr=()=>{_r.emit(REFRESH_PAGE)};vue.provide(REFRESH_PAGE,{emitRefreshPage:Nr});const qr=Ir=>{_r.on(REFRESH_PAGE,()=>Ir()),vue.onMounted(()=>{_r.off(REFRESH_PAGE)})},Wr=vue.ref({}),Ur=vue.ref();vue.provide(All_COMPONENT_RES_DATA,{allComponentResData:Wr});const Xr=Ir=>{const{id:Dr,data:Rr}=Ir;Rr.success&&(Wr.value[Dr]=(Rr==null?void 0:Rr.data)||{})},ri=Ir=>{Ur.value=Ir},ei=(Ir,Dr)=>{switch(Ir){case"SHOW_INDICATOR_DETAIL_MODAL":vue.unref(d).showModal(Dr);break;case"SAVE_COMPONENT_RES_DATA":Xr(Dr);break;case"SAVE_INDEX_PANEL_REQ_PARAMS":ri(Dr);break}};vue.provide(COMMON_OPERATE,{operateAction:(Ir,Dr)=>{ei(Ir,Dr)}}),vue.watchEffect(()=>{var Ir;if((Ir=vue.unref(Wn))!=null&&Ir.length&&vue.unref(g)!=="design"){const{jumpType:Dr,jumpTime:Rr,jumpPage:$r,jumpLink:zr}=c;if(Rr!=null&&Rr.value){let Hr=0;switch(Rr==null?void 0:Rr.suffix){case"hours":Hr=Rr.value*60*60*1e3;break;case"minute":Hr=Rr.value*60*1e3;break;case"seconds":Hr=Rr.value*1e3;break}setTimeout(()=>{let Qr="";Dr==="page"&&$r?Qr=usePageUrl(vue.unref(g),$r):Dr==="link"&&zr&&(Qr=zr),Qr=hn(Qr),window.open(Qr,"_self")},Hr)}}});const ui=Ir=>{var Dr;vue.unref(h).showModal({data:Ir,indicatorUrl:vue.unref(p),indicatorToken:((Dr=window==null?void 0:window.config)==null?void 0:Dr.indicatorToken)||"",context:CONTEXT,pageId:getPageId()})},ii=Ir=>{vue.unref(v).showModal({data:Ir,pageConfig:c,unitText:pi(Ir)})},pi=Ir=>{let Dr="",Rr="";const{componentConfig:$r}=Ir;for(const Hr in $r)if($r[Hr].key==="currentValue"){Rr=Hr;break}const zr=vue.unref(Jn).find(Hr=>Hr.id===Rr);return zr!=null&&zr.unitText&&(Dr=zr.unitText),Dr};vue.provide("showIndDetail",ui);const bi={indexName:"指标名",currentValue:"当前值",refValue:"目标值",lastValueRate:"同比",lastCycleValueRate:"环比",systemSource:"指标标记"};window.addEventListener("message",async Ir=>{var Dr,Rr;if(c.customId==="ProviderConfig"){const $r=Ir.data||{};let zr={data:{}};try{const Hr=(Dr=vue.unref(Wn))==null?void 0:Dr.filter(Qr=>Qr.type==="ecanIndexPanel");if($r.type==="checkData")zr={type:"checkDataRes",hasData:!!(Hr!=null&&Hr.length),data:{}};else if($r.type==="getData"){const Qr={};let li="";if(Hr!=null&&Hr.length)if((Rr=vue.unref(d).indDetailInfo)!=null&&Rr.visible){const ai=vue.unref(d).getPivotRecordData(),{columns:fi,rows:yi,indicators:hi,requestParams:oi,data:Yr,type:ci,drillContext:wi}=ai;ci==="pivotTable"?(oi&&(Qr.全局筛选条件=xi({params:oi,onlySql:!1})),Qr.当前表结构声明={分析维度:yi.concat(fi).map(vi=>vi.title),绝对值指标:hi.filter(vi=>!vi.calculateType).map(vi=>vi.title),"趋势/比率指标":hi.filter(vi=>vi.calculateType).map(vi=>vi.title)},Qr.明细数据=Yr):(Qr.钻取上下文=wi,Qr.流水日志=Yr),li=ci}else{Qr.运营数据=[];for(const ai of Hr){const fi={};for(const yi in ai.componentConfig){const hi=ai.componentConfig[yi];if(hi.show){const Yr=(yi?document.querySelector(`div[cpntid="${yi}"]`).textContent:"").split(/:|:/);Yr!=null&&Yr.length&&(fi[bi[hi.key]]=Yr[Yr.length-1])}}Qr.运营数据.push(fi)}vue.unref(Ur)&&(Qr.分析背景=xi({params:vue.unref(Ur),onlySql:!0}))}zr={type:"getDataRes",data:Qr},li&&(zr.dataType=li)}}catch(Hr){zr={error:Hr.message,data:{}}}Ir.source.postMessage(zr,Ir.origin)}});function xi({params:Ir,onlySql:Dr}){var hi;const{sqlConditions:Rr,queryColumns:$r,indicatorList:zr}=Ir,Hr=$r.concat(zr).filter(oi=>oi.conditions),Qr=loopConditions(Hr,"conditions",!0),li=loopConditions(Rr,"sqlConditions",!1);let ai=[];const fi={};if(Dr)ai=li;else{ai=lodashEs.cloneDeep(Qr);for(const oi of li)if(!Qr.find(Yr=>Yr.typeGuid===oi.typeGuid)){const Yr=ai.findIndex(ci=>oi.typeGuid!=="the_date"&&(ci.typeGuid===oi.typeGuid||ci.typeGuid+"_code"===oi.typeGuid)||ci.typeGuid===oi.typeGuid+"_code");Yr!==-1&&ai.splice(Yr,1),ai.push(oi)}}if(!ai.find(oi=>oi.typeGuid==="the_date"&&!oi.alias)){const oi=ai.find(ci=>ci.alias.includes("-startTime")),Yr=ai.find(ci=>ci.alias.includes("-endTime"));if(oi&&Yr){const ci=oi.alias.replace("-startTime","");ci&&(fi[ci]=`${oi.fieldValue}至${Yr.fieldValue}`)}}for(const oi of ai){const{alias:Yr,label:ci,title:wi,fieldValue:vi,variateName:Ai}=oi;if(Yr){if(!Yr.includes("-startTime")&&!Yr.includes("-endTime")&&!Ai){const wr=vue.unref(Wn).find(Ar=>Ar.keyName===Yr);if(["ecanSelect"].includes(wr==null?void 0:wr.type)){const Ar=((hi=vue.unref(Wr)[wr.id])==null?void 0:hi.rows)||[];if(wr.mode==="multiple"){const Pr=vi.split(",");(Pr==null?void 0:Pr.length)===(Ar==null?void 0:Ar.length)?fi[Yr]="全院":fi[Yr]=Ar.filter(Fr=>Pr.includes(Fr.value)).map(Fr=>Fr.label).join(",")}else{const Pr=Ar.find(Fr=>Fr.value===vi);Pr&&(fi[Yr]=Pr.label)}}else fi[Yr]=vi}}else fi[wi||ci]=vi}return fi}return vue.onBeforeUnmount(()=>{Er==null||Er.clear(),Mr==null||Mr.clear()}),u({touchRequest:Lr,getGlobalModel:Gn,onRefreshPage:qr,emitEvent:Sr,getRecordValueByKeyName:or,showIndDetail:ui,showTrend:ii,props:c,systemVariable:zn}),{providerConfig:vn,configStyle:sr,indicatorUrl:p,theme:y,drillModalRef:d,indDetailModalRef:h,trendModalRef:v,scaleValue:re,defaultPivotTableFontSize:w,isMobile:Bn}}}),ProviderConfig_vue_vue_type_style_index_0_scoped_5c3d2bcd_lang="",ProviderConfig_vue_vue_type_style_index_1_lang="",_hoisted_1$k=["id"];function _sfc_render$y(c,u,f,d,h,v){const p=vue.resolveComponent("drill-modal"),m=vue.resolveComponent("indicator-detail-modal"),g=vue.resolveComponent("trend-modal");return vue.openBlock(),vue.createElementBlock(vue.Fragment,null,[vue.createElementVNode("div",{class:"provider-config-container",id:c.customId,ref:"providerConfig",style:vue.normalizeStyle({...c.configStyle,fontFamily:c.pageFontFamily,...c.customStyle})},[vue.renderSlot(c.$slots,"default",{},void 0,!0)],12,_hoisted_1$k),vue.createVNode(p,{ref:"drillModalRef",width:c.width,theme:c.theme,drillingMode:c.drillingMode,pageMode:c.pageMode,scaleValue:c.scaleValue,pivotTableFontSize:c.defaultPivotTableFontSize,drillDetailUrl:c.drillDetailUrl},null,8,["width","theme","drillingMode","pageMode","scaleValue","pivotTableFontSize","drillDetailUrl"]),vue.createVNode(m,{ref:"indDetailModalRef",theme:c.theme},null,8,["theme"]),vue.createVNode(g,{ref:"trendModalRef",theme:c.theme},null,8,["theme"])],64)}const ProviderConfig=_export_sfc$1(_sfc_main$t,[["render",_sfc_render$y],["__scopeId","data-v-5c3d2bcd"]]),EcanProviderConfig=withInstall$1(ProviderConfig),textProps={...props$1,name:"文本",keyName:"文本",type:"ecanText",width:"100px",height:"40px",text:"文字",lineHeight:"18px",color:"",variableColor:"",fontSize:"14px",fontFamily:"",fontWeight:400,textShadow:"",justifyContent:"center",alignItems:"center",variableFontSize:"14px",variableDefaultValue:"0",format:"",target:"self",href:"",linkPage:"",data:{},percentageSide:"left",increaseColor:"",declineColor:"",minusSignShow:!0,unitShow:!0,unitText:"",unitFontSize:"14px",unitFontWeight:400,unitColor:"#333",unitTop:"",unitLeft:"",graphicConfig:{},targetShow:!1,targetRule:"",targetValue:"",notExpectColor:"",gradientShow:!1,gradientColor:"",gradientOffset:1,gradientAngle:"180deg",openCustomRequestData:!0,customRequestName:"",customRequestField:"",showEllipsis:!1,showAnimation:!1,transParams:[],exceedConfig:"",targetTemplate:"",dataSetchecked:!1,titleContent:"",titleBackgroundColor:"#ffffff",titleFontColor:"#000000",isMarkDown:!1,isContentMarkDown:!1,parentId:""},textComponentProps=transformToComponentProps(textProps),textEvents=["refreshData","click","valueChange"],goUp="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAMAAADXqc3KAAAAV1BMVEUAAAD/WzT/WjP/WDD/WzT/WzP/WzT/WzT/WzT/WjT/WzT/WDT/YED/WzT/WzT/WjT/YED/WzT/WzT/WzT/XDT/WzT/WjX/WjP/XDT/XDT/WTL/Tif/WzReH8z5AAAAHHRSTlMA8RgS9W9YHbePZyME5sVjCP7bzcCxgndOQC4GFJJgKwAAAIJJREFUKM+Nkd0OgyAMRjvqcLA53fzXvv9zaokmxq8mnsue5ACFDjiy+XyjLZ7yyK35OxN5mSFZKa2QojEIKRhrZKM0QnsMQxirmJ0kBubTIZvAtUyiFAT4JFoUIYmIotZ5xjDPfyoCAV16nMPdFir8xZ16nM//tePtXw2ODOJY0V0WqQwM2rgKrU0AAAAASUVORK5CYII=",goDown="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAACXBIWXMAAAsTAAALEwEAmpwYAAAFHGlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNS42LWMxNDUgNzkuMTYzNDk5LCAyMDE4LzA4LzEzLTE2OjQwOjIyICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIgeG1sbnM6cGhvdG9zaG9wPSJodHRwOi8vbnMuYWRvYmUuY29tL3Bob3Rvc2hvcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RFdnQ9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZUV2ZW50IyIgeG1wOkNyZWF0b3JUb29sPSJBZG9iZSBQaG90b3Nob3AgQ0MgMjAxOSAoV2luZG93cykiIHhtcDpDcmVhdGVEYXRlPSIyMDIyLTA3LTIyVDA5OjM1OjE5KzA4OjAwIiB4bXA6TW9kaWZ5RGF0ZT0iMjAyMi0wNy0yMlQwOTozNTozNyswODowMCIgeG1wOk1ldGFkYXRhRGF0ZT0iMjAyMi0wNy0yMlQwOTozNTozNyswODowMCIgZGM6Zm9ybWF0PSJpbWFnZS9wbmciIHBob3Rvc2hvcDpDb2xvck1vZGU9IjMiIHBob3Rvc2hvcDpJQ0NQcm9maWxlPSJzUkdCIElFQzYxOTY2LTIuMSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDozNmRlNzg2MS1kNzhmLTQyNGYtYTNjOS01ZTk0MjkwY2RjZjEiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6MzZkZTc4NjEtZDc4Zi00MjRmLWEzYzktNWU5NDI5MGNkY2YxIiB4bXBNTTpPcmlnaW5hbERvY3VtZW50SUQ9InhtcC5kaWQ6MzZkZTc4NjEtZDc4Zi00MjRmLWEzYzktNWU5NDI5MGNkY2YxIj4gPHhtcE1NOkhpc3Rvcnk+IDxyZGY6U2VxPiA8cmRmOmxpIHN0RXZ0OmFjdGlvbj0iY3JlYXRlZCIgc3RFdnQ6aW5zdGFuY2VJRD0ieG1wLmlpZDozNmRlNzg2MS1kNzhmLTQyNGYtYTNjOS01ZTk0MjkwY2RjZjEiIHN0RXZ0OndoZW49IjIwMjItMDctMjJUMDk6MzU6MTkrMDg6MDAiIHN0RXZ0OnNvZnR3YXJlQWdlbnQ9IkFkb2JlIFBob3Rvc2hvcCBDQyAyMDE5IChXaW5kb3dzKSIvPiA8L3JkZjpTZXE+IDwveG1wTU06SGlzdG9yeT4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz6VDI+BAAABUUlEQVRIia3WPyhGURgG8B8pi0xisStKMioZLQaLiaQMBoxiVBImCwaLf6MssloUk8Gmb7GgJFKSUvIZ7qe+bvd89+A+03uf989z3nPPPe+tK5fLqtF3tSESzRjFAJ4vemams4IaYqulCq9gEo34QGco+LcCg9hHaxW3jpsiBIZxmMp5kXQTRH1k8S4cZCxoE6//FaiXbEtThm87JjkPI+jN4E9xW4TAQoA/isjNFehCT8B3VoTAUID/xHURAn0B/g5fRQh0B/j7mOJkf2gTaKvY7YG8FsxXPe/hIVbgCTs5C+vAasU+xlooMGuLTrCVI/CDR0zVCgi9gzmUIgQmBbYmT+AdY5LjGMKWpNuaqHWKLrEY8JUkXeYi75iu4DzFfUi6ey9C4AvjeKviliTdRSHmsrvBbMU+lzNg0oidaLvox7LIK+IHdem/iqIROzL/jG+NrT1BRsXKNQAAAABJRU5ErkJggg==";var esmEntry$1={exports:{}},defaults$5={exports:{}};function getDefaults$1(){return{baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}function changeDefaults$1(c){defaults$5.exports.defaults=c}defaults$5.exports={defaults:getDefaults$1(),getDefaults:getDefaults$1,changeDefaults:changeDefaults$1};const escapeTest=/[&<>"']/,escapeReplace=/[&<>"']/g,escapeTestNoEncode=/[<>"']|&(?!#?\w+;)/,escapeReplaceNoEncode=/[<>"']|&(?!#?\w+;)/g,escapeReplacements={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},getEscapeReplacement=c=>escapeReplacements[c];function escape$3(c,u){if(u){if(escapeTest.test(c))return c.replace(escapeReplace,getEscapeReplacement)}else if(escapeTestNoEncode.test(c))return c.replace(escapeReplaceNoEncode,getEscapeReplacement);return c}const unescapeTest=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function unescape$1(c){return c.replace(unescapeTest,(u,f)=>(f=f.toLowerCase(),f==="colon"?":":f.charAt(0)==="#"?f.charAt(1)==="x"?String.fromCharCode(parseInt(f.substring(2),16)):String.fromCharCode(+f.substring(1)):""))}const caret=/(^|[^\[])\^/g;function edit$1(c,u){c=c.source||c,u=u||"";const f={replace:(d,h)=>(h=h.source||h,h=h.replace(caret,"$1"),c=c.replace(d,h),f),getRegex:()=>new RegExp(c,u)};return f}const nonWordAndColonTest=/[^\w:]/g,originIndependentUrl=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function cleanUrl$1(c,u,f){if(c){let d;try{d=decodeURIComponent(unescape$1(f)).replace(nonWordAndColonTest,"").toLowerCase()}catch{return null}if(d.indexOf("javascript:")===0||d.indexOf("vbscript:")===0||d.indexOf("data:")===0)return null}u&&!originIndependentUrl.test(f)&&(f=resolveUrl(u,f));try{f=encodeURI(f).replace(/%25/g,"%")}catch{return null}return f}const baseUrls={},justDomain=/^[^:]+:\/*[^/]*$/,protocol=/^([^:]+:)[\s\S]*$/,domain=/^([^:]+:\/*[^/]*)[\s\S]*$/;function resolveUrl(c,u){baseUrls[" "+c]||(justDomain.test(c)?baseUrls[" "+c]=c+"/":baseUrls[" "+c]=rtrim$1(c,"/",!0)),c=baseUrls[" "+c];const f=c.indexOf(":")===-1;return u.substring(0,2)==="//"?f?u:c.replace(protocol,"$1")+u:u.charAt(0)==="/"?f?u:c.replace(domain,"$1")+u:c+u}const noopTest$1={exec:function(){}};function merge$2(c){let u=1,f,d;for(;u<arguments.length;u++){f=arguments[u];for(d in f)Object.prototype.hasOwnProperty.call(f,d)&&(c[d]=f[d])}return c}function splitCells$1(c,u){const f=c.replace(/\|/g,(v,p,m)=>{let g=!1,y=p;for(;--y>=0&&m[y]==="\\";)g=!g;return g?"|":" |"}),d=f.split(/ \|/);let h=0;if(d[0].trim()||d.shift(),d[d.length-1].trim()||d.pop(),d.length>u)d.splice(u);else for(;d.length<u;)d.push("");for(;h<d.length;h++)d[h]=d[h].trim().replace(/\\\|/g,"|");return d}function rtrim$1(c,u,f){const d=c.length;if(d===0)return"";let h=0;for(;h<d;){const v=c.charAt(d-h-1);if(v===u&&!f)h++;else if(v!==u&&f)h++;else break}return c.substr(0,d-h)}function findClosingBracket$1(c,u){if(c.indexOf(u[1])===-1)return-1;const f=c.length;let d=0,h=0;for(;h<f;h++)if(c[h]==="\\")h++;else if(c[h]===u[0])d++;else if(c[h]===u[1]&&(d--,d<0))return h;return-1}function checkSanitizeDeprecation$1(c){c&&c.sanitize&&!c.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}function repeatString$1(c,u){if(u<1)return"";let f="";for(;u>1;)u&1&&(f+=c),u>>=1,c+=c;return f+c}var helpers={escape:escape$3,unescape:unescape$1,edit:edit$1,cleanUrl:cleanUrl$1,resolveUrl,noopTest:noopTest$1,merge:merge$2,splitCells:splitCells$1,rtrim:rtrim$1,findClosingBracket:findClosingBracket$1,checkSanitizeDeprecation:checkSanitizeDeprecation$1,repeatString:repeatString$1};const{defaults:defaults$4}=defaults$5.exports,{rtrim,splitCells,escape:escape$2,findClosingBracket}=helpers;function outputLink(c,u,f,d){const h=u.href,v=u.title?escape$2(u.title):null,p=c[1].replace(/\\([\[\]])/g,"$1");if(c[0].charAt(0)!=="!"){d.state.inLink=!0;const m={type:"link",raw:f,href:h,title:v,text:p,tokens:d.inlineTokens(p,[])};return d.state.inLink=!1,m}else return{type:"image",raw:f,href:h,title:v,text:escape$2(p)}}function indentCodeCompensation(c,u){const f=c.match(/^(\s+)(?:```)/);if(f===null)return u;const d=f[1];return u.split(`
104
104
  `).map(h=>{const v=h.match(/^\s+/);if(v===null)return h;const[p]=v;return p.length>=d.length?h.slice(d.length):h}).join(`
105
105
  `)}var Tokenizer_1$1=class{constructor(u){this.options=u||defaults$4}space(u){const f=this.rules.block.newline.exec(u);if(f)return f[0].length>1?{type:"space",raw:f[0]}:{raw:`
106
106
  `}}code(u){const f=this.rules.block.code.exec(u);if(f){const d=f[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:f[0],codeBlockStyle:"indented",text:this.options.pedantic?d:rtrim(d,`