@ecan-bi/datav 1.3.14 → 1.3.15
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.es.js +3646 -3533
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +32 -32
- package/dist/index.umd.js.map +1 -1
- package/dist/style.css +2 -2
- package/package.json +1 -1
- package/types/common/index.d.ts +1 -0
- package/types/common/marquee-scroll/index.d.ts +2 -0
- package/types/container/modal/Modal.vue.d.ts +16 -0
- package/types/container/modal/index.d.ts +16 -0
- package/types/container/modal/props.d.ts +11 -0
- package/types/container/tabs/Tabs.vue.d.ts +20 -0
- package/types/container/tabs/index.d.ts +20 -0
- package/types/container/tabs/props.d.ts +11 -0
- package/types/utils/mobileUtils.d.ts +7 -1
- package/types/{text/list → common/marquee-scroll}/MarqueeScroll.vue.d.ts +1 -1
package/dist/index.umd.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/*! @ecan-bi/datav@1.3.
|
|
2
|
-
(function(j,n){typeof exports=="object"&&typeof module<"u"?n(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("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/renderers"),require("echarts/charts"),require("echarts/components"),require("ant-design-vue/es/modal/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","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/renderers","echarts/charts","echarts/components","ant-design-vue/es/modal/style","echarts","ant-design-vue/es/table/style","ant-design-vue/es/notification/style","xlsx","big.js"],n):(j=typeof globalThis<"u"?globalThis:j||self,n(j["@ecan/bi-datav"]={},j.Vue,j["echarts/core"],j.ResizeDetector,j.AntDesignVue,null,null,j.LodashEs,j.Dayjs,j.Axios,j.Mitt,null,null,null,j["ant-design-vue/es/date-picker/locale/zh_CN"],null,null,null,null,j["echarts/renderers"],j["echarts/charts"],j["echarts/components"],null,j.Echarts,null,null,j.Xlsx,j.big.js))})(this,function(j,n,Qe,Fa,ce,su,cu,Ve,be,Fl,zl,du,fu,uu,za,hu,gu,mu,yu,Et,ht,ve,xu,Ml,pu,bu,Zt,Pl){var Rl,Il,_l,Ol;"use strict";function ql(e){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const a=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(o,t,a.get?a:{enumerable:!0,get:()=>e[t]})}}return o.default=e,Object.freeze(o)}const Hl=ql(Ml),Vl=["getWidth","getHeight","getDom","getOption","resize","dispatchAction","convertToPixel","convertFromPixel","containPixel","getDataURL","getConnectedDataURL","appendData","clear","isDisposed","dispose"];function jl(e,o){function t(r){return(...i)=>{if(e.value||o(),!e.value)throw new Error("ECharts is not initialized yet.");return e.value[r].apply(e.value,i)}}function a(){const r=Object.create(null);return Vl.forEach(i=>{r[i]=t(i)}),r}return a()}function Wl(e,o,t){let a=null;n.watch([t,e,o],([r,i,s],l,d)=>{r&&i&&s&&(a=Qe.throttle(()=>{i.resize()},100),Fa.addListener(r,a)),d(()=>{a&&r&&Fa.removeListener(r,a)})})}const Ul={autoresize:Boolean},Gl="ecLoadingOptions";function $l(e,o,t){const a=n.inject(Gl,{}),r=n.computed(()=>({...n.unref(a),...t==null?void 0:t.value}));n.watchEffect(()=>{const i=e.value;i&&(o.value?i.showLoading(r.value):i.hideLoading())})}const Zl={loading:Boolean,loadingOptions:Object},vu="",Yl=/^on[^a-z]/,Kl=e=>Yl.test(e);function Ql(e){const o={};for(const t in e)Kl(t)||(o[t]=e[t]);return o}const Jl="x-vue-echarts",Xl="ecTheme",e0="ecInitOptions",t0="ecUpdateOptions",xt=n.defineComponent({name:"echarts",props:{option:Object,theme:{type:[Object,String]},initOptions:Object,updateOptions:Object,group:String,manualUpdate:Boolean,...Ul,...Zl},inheritAttrs:!1,setup(e,{attrs:o,listeners:t}){const a=n.shallowRef(),r=n.shallowRef(),i=n.shallowRef(),s=n.inject(Xl,null),l=n.inject(e0,null),d=n.inject(t0,null),{autoresize:c,manualUpdate:g,loading:h,loadingOptions:y}=n.toRefs(e),u=n.computed(()=>i.value||e.option||Object.create(null)),m=n.computed(()=>e.theme||n.unref(s)||{}),f=n.computed(()=>e.initOptions||n.unref(l)||{}),S=n.computed(()=>e.updateOptions||n.unref(d)||{}),B=n.computed(()=>Ql(o));function p(D){if(r.value||!a.value)return;const O=r.value=Qe.init(a.value,m.value,f.value);e.group&&(O.group=e.group);let N=t;N||(N={},Object.keys(o).filter(R=>R.indexOf("on")===0&&R.length>2).forEach(R=>{const v=R.charAt(2).toLowerCase()+R.slice(3);N[v]=o[R]})),Object.keys(N).forEach(R=>{const v=N[R];v&&(R.indexOf("zr:")===0?O.getZr().on(R.slice(3).toLowerCase(),v):O.on(R.toLowerCase(),v))});function C(){if(O&&!O.isDisposed())try{O.resize()}catch(R){if(R.message==="Cannot read property 'get' of undefined")return;throw R}}function T(){O.setOption(D||u.value,S.value)}c.value?n.nextTick(()=>{C(),T()}):T()}function b(D,O){e.manualUpdate&&(i.value=D),r.value?r.value.setOption(D,O||{}):p(D)}function x(){r.value&&(r.value.dispose(),r.value=void 0)}let A=null;n.watch(g,D=>{typeof A=="function"&&(A(),A=null),D||(A=n.watch(()=>e.option,O=>{O&&(r.value?r.value.setOption(O,S.value):p())},{deep:!0}))},{immediate:!0}),n.watch([m,f],()=>{x(),p()},{deep:!0}),n.watchEffect(()=>{e.group&&r.value&&(r.value.group=e.group)});const k=jl(r,p);return $l(r,h,y),Wl(r,c,a),n.onMounted(()=>{e.option&&p()}),n.onUnmounted(x),{chart:r,root:a,setOption:b,nonEventAttrs:B,...k}},render(){const e={...this.nonEventAttrs};return e.ref="root",e.class=e.class?["echarts"].concat(e.class):"echarts",n.h(Jl,e)}});function ot(e,o){n0(e)&&(e="100%");var t=o0(e);return e=o===360?e:Math.min(o,Math.max(0,parseFloat(e))),t&&(e=parseInt(String(e*o),10)/100),Math.abs(e-o)<1e-6?1:(o===360?e=(e<0?e%o+o:e%o)/parseFloat(String(o)):e=e%o/parseFloat(String(o)),e)}function n0(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function o0(e){return typeof e=="string"&&e.indexOf("%")!==-1}function a0(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function nn(e){return e<=1?"".concat(Number(e)*100,"%"):e}function wn(e){return e.length===1?"0"+e:String(e)}function r0(e,o,t){return{r:ot(e,255)*255,g:ot(o,255)*255,b:ot(t,255)*255}}function An(e,o,t){return t<0&&(t+=1),t>1&&(t-=1),t<1/6?e+(o-e)*(6*t):t<1/2?o:t<2/3?e+(o-e)*(2/3-t)*6:e}function i0(e,o,t){var a,r,i;if(e=ot(e,360),o=ot(o,100),t=ot(t,100),o===0)r=t,i=t,a=t;else{var s=t<.5?t*(1+o):t+o-t*o,l=2*t-s;a=An(l,s,e+1/3),r=An(l,s,e),i=An(l,s,e-1/3)}return{r:a*255,g:r*255,b:i*255}}function l0(e,o,t){e=ot(e,255),o=ot(o,255),t=ot(t,255);var a=Math.max(e,o,t),r=Math.min(e,o,t),i=0,s=a,l=a-r,d=a===0?0:l/a;if(a===r)i=0;else{switch(a){case e:i=(o-t)/l+(o<t?6:0);break;case o:i=(t-e)/l+2;break;case t:i=(e-o)/l+4;break}i/=6}return{h:i,s:d,v:s}}function s0(e,o,t){e=ot(e,360)*6,o=ot(o,100),t=ot(t,100);var a=Math.floor(e),r=e-a,i=t*(1-o),s=t*(1-r*o),l=t*(1-(1-r)*o),d=a%6,c=[t,s,i,i,l,t][d],g=[l,t,t,s,i,i][d],h=[i,i,l,t,t,s][d];return{r:c*255,g:g*255,b:h*255}}function c0(e,o,t,a){var r=[wn(Math.round(e).toString(16)),wn(Math.round(o).toString(16)),wn(Math.round(t).toString(16))];return a&&r[0].startsWith(r[0].charAt(1))&&r[1].startsWith(r[1].charAt(1))&&r[2].startsWith(r[2].charAt(1))?r[0].charAt(0)+r[1].charAt(0)+r[2].charAt(0):r.join("")}function Ma(e){return Je(e)/255}function Je(e){return parseInt(e,16)}var Pa={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 Yt(e){var o={r:0,g:0,b:0},t=1,a=null,r=null,i=null,s=!1,l=!1;return typeof e=="string"&&(e=u0(e)),typeof e=="object"&&(gt(e.r)&>(e.g)&>(e.b)?(o=r0(e.r,e.g,e.b),s=!0,l=String(e.r).substr(-1)==="%"?"prgb":"rgb"):gt(e.h)&>(e.s)&>(e.v)?(a=nn(e.s),r=nn(e.v),o=s0(e.h,a,r),s=!0,l="hsv"):gt(e.h)&>(e.s)&>(e.l)&&(a=nn(e.s),i=nn(e.l),o=i0(e.h,a,i),s=!0,l="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(t=e.a)),t=a0(t),{ok:s,format:e.format||l,r:Math.min(255,Math.max(o.r,0)),g:Math.min(255,Math.max(o.g,0)),b:Math.min(255,Math.max(o.b,0)),a:t}}var d0="[-\\+]?\\d+%?",f0="[-\\+]?\\d*\\.\\d+%?",pt="(?:".concat(f0,")|(?:").concat(d0,")"),kn="[\\s|\\(]+(".concat(pt,")[,|\\s]+(").concat(pt,")[,|\\s]+(").concat(pt,")\\s*\\)?"),Tn="[\\s|\\(]+(".concat(pt,")[,|\\s]+(").concat(pt,")[,|\\s]+(").concat(pt,")[,|\\s]+(").concat(pt,")\\s*\\)?"),st={CSS_UNIT:new RegExp(pt),rgb:new RegExp("rgb"+kn),rgba:new RegExp("rgba"+Tn),hsl:new RegExp("hsl"+kn),hsla:new RegExp("hsla"+Tn),hsv:new RegExp("hsv"+kn),hsva:new RegExp("hsva"+Tn),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 u0(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var o=!1;if(Pa[e])e=Pa[e],o=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var t=st.rgb.exec(e);return t?{r:t[1],g:t[2],b:t[3]}:(t=st.rgba.exec(e),t?{r:t[1],g:t[2],b:t[3],a:t[4]}:(t=st.hsl.exec(e),t?{h:t[1],s:t[2],l:t[3]}:(t=st.hsla.exec(e),t?{h:t[1],s:t[2],l:t[3],a:t[4]}:(t=st.hsv.exec(e),t?{h:t[1],s:t[2],v:t[3]}:(t=st.hsva.exec(e),t?{h:t[1],s:t[2],v:t[3],a:t[4]}:(t=st.hex8.exec(e),t?{r:Je(t[1]),g:Je(t[2]),b:Je(t[3]),a:Ma(t[4]),format:o?"name":"hex8"}:(t=st.hex6.exec(e),t?{r:Je(t[1]),g:Je(t[2]),b:Je(t[3]),format:o?"name":"hex"}:(t=st.hex4.exec(e),t?{r:Je(t[1]+t[1]),g:Je(t[2]+t[2]),b:Je(t[3]+t[3]),a:Ma(t[4]+t[4]),format:o?"name":"hex8"}:(t=st.hex3.exec(e),t?{r:Je(t[1]+t[1]),g:Je(t[2]+t[2]),b:Je(t[3]+t[3]),format:o?"name":"hex"}:!1)))))))))}function gt(e){return!!st.CSS_UNIT.exec(String(e))}var on=2,qa=.16,h0=.05,g0=.05,m0=.15,Ha=5,Va=4,y0=[{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 ja(e){var o=e.r,t=e.g,a=e.b,r=l0(o,t,a);return{h:r.h*360,s:r.s,v:r.v}}function an(e){var o=e.r,t=e.g,a=e.b;return"#".concat(c0(o,t,a,!1))}function x0(e,o,t){var a=t/100,r={r:(o.r-e.r)*a+e.r,g:(o.g-e.g)*a+e.g,b:(o.b-e.b)*a+e.b};return r}function Wa(e,o,t){var a;return Math.round(e.h)>=60&&Math.round(e.h)<=240?a=t?Math.round(e.h)-on*o:Math.round(e.h)+on*o:a=t?Math.round(e.h)+on*o:Math.round(e.h)-on*o,a<0?a+=360:a>=360&&(a-=360),a}function Ua(e,o,t){if(e.h===0&&e.s===0)return e.s;var a;return t?a=e.s-qa*o:o===Va?a=e.s+qa:a=e.s+h0*o,a>1&&(a=1),t&&o===Ha&&a>.1&&(a=.1),a<.06&&(a=.06),Number(a.toFixed(2))}function Ga(e,o,t){var a;return t?a=e.v+g0*o:a=e.v-m0*o,a>1&&(a=1),Number(a.toFixed(2))}function Bn(e){for(var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=[],a=Yt(e),r=Ha;r>0;r-=1){var i=ja(a),s=an(Yt({h:Wa(i,r,!0),s:Ua(i,r,!0),v:Ga(i,r,!0)}));t.push(s)}t.push(an(a));for(var l=1;l<=Va;l+=1){var d=ja(a),c=an(Yt({h:Wa(d,l),s:Ua(d,l),v:Ga(d,l)}));t.push(c)}return o.theme==="dark"?y0.map(function(g){var h=g.index,y=g.opacity,u=an(x0(Yt(o.backgroundColor||"#141414"),Yt(t[h]),y*100));return u}):t}var En={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"},Dn={},Rn={};Object.keys(En).forEach(function(e){Dn[e]=Bn(En[e]),Dn[e].primary=Dn[e][5],Rn[e]=Bn(En[e],{theme:"dark",backgroundColor:"#141414"}),Rn[e].primary=Rn[e][5]});var $a=[],Kt=[],p0="insert-css: You need to provide a CSS string. Usage: insertCss(cssString[, options]).";function b0(){var e=document.createElement("style");return e.setAttribute("type","text/css"),e}function v0(e,o){if(o=o||{},e===void 0)throw new Error(p0);var t=o.prepend===!0?"prepend":"append",a=o.container!==void 0?o.container:document.querySelector("head"),r=$a.indexOf(a);r===-1&&(r=$a.push(a)-1,Kt[r]={});var i;return Kt[r]!==void 0&&Kt[r][t]!==void 0?i=Kt[r][t]:(i=Kt[r][t]=b0(),t==="prepend"?a.insertBefore(i,a.childNodes[0]):a.appendChild(i)),e.charCodeAt(0)===65279&&(e=e.substr(1,e.length)),i.styleSheet?i.styleSheet.cssText+=e:i.textContent+=e,i}function Za(e){for(var o=1;o<arguments.length;o++){var t=arguments[o]!=null?Object(arguments[o]):{},a=Object.keys(t);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(t).filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),a.forEach(function(r){S0(e,r,t[r])})}return e}function S0(e,o,t){return o in e?Object.defineProperty(e,o,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[o]=t,e}function C0(e,o){process.env.NODE_ENV!=="production"&&!e&&console!==void 0&&console.error("Warning: ".concat(o))}function w0(e,o){C0(e,"[@ant-design/icons-vue] ".concat(o))}function Ya(e){return typeof e=="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(typeof e.icon=="object"||typeof e.icon=="function")}function In(e,o,t){return t?n.h(e.tag,Za({key:o},t,e.attrs),(e.children||[]).map(function(a,r){return In(a,"".concat(o,"-").concat(e.tag,"-").concat(r))})):n.h(e.tag,Za({key:o},e.attrs),(e.children||[]).map(function(a,r){return In(a,"".concat(o,"-").concat(e.tag,"-").concat(r))}))}function Ka(e){return Bn(e)[0]}function Qa(e){return e?Array.isArray(e)?e:[e]:[]}var A0=`
|
|
1
|
+
/*! @ecan-bi/datav@1.3.15 */
|
|
2
|
+
(function(j,n){typeof exports=="object"&&typeof module<"u"?n(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("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/renderers"),require("echarts/charts"),require("echarts/components"),require("ant-design-vue/es/modal/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","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/renderers","echarts/charts","echarts/components","ant-design-vue/es/modal/style","echarts","ant-design-vue/es/table/style","ant-design-vue/es/notification/style","xlsx","big.js"],n):(j=typeof globalThis<"u"?globalThis:j||self,n(j["@ecan/bi-datav"]={},j.Vue,j["echarts/core"],j.ResizeDetector,j.AntDesignVue,null,null,j.LodashEs,j.Dayjs,j.Axios,j.Mitt,null,null,null,j["ant-design-vue/es/date-picker/locale/zh_CN"],null,null,null,null,j["echarts/renderers"],j["echarts/charts"],j["echarts/components"],null,j.Echarts,null,null,j.Xlsx,j.big.js))})(this,function(j,n,Qe,za,ce,gu,mu,Ne,be,Pl,ql,yu,xu,pu,Ma,bu,vu,Su,Cu,Et,ht,ve,wu,Hl,Au,ku,Yt,Vl){var Ol,Ll,Nl,Fl;"use strict";function jl(e){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const a=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(o,t,a.get?a:{enumerable:!0,get:()=>e[t]})}}return o.default=e,Object.freeze(o)}const Wl=jl(Hl),Ul=["getWidth","getHeight","getDom","getOption","resize","dispatchAction","convertToPixel","convertFromPixel","containPixel","getDataURL","getConnectedDataURL","appendData","clear","isDisposed","dispose"];function Gl(e,o){function t(r){return(...i)=>{if(e.value||o(),!e.value)throw new Error("ECharts is not initialized yet.");return e.value[r].apply(e.value,i)}}function a(){const r=Object.create(null);return Ul.forEach(i=>{r[i]=t(i)}),r}return a()}function $l(e,o,t){let a=null;n.watch([t,e,o],([r,i,s],l,d)=>{r&&i&&s&&(a=Qe.throttle(()=>{i.resize()},100),za.addListener(r,a)),d(()=>{a&&r&&za.removeListener(r,a)})})}const Zl={autoresize:Boolean},Yl="ecLoadingOptions";function Kl(e,o,t){const a=n.inject(Yl,{}),r=n.computed(()=>({...n.unref(a),...t==null?void 0:t.value}));n.watchEffect(()=>{const i=e.value;i&&(o.value?i.showLoading(r.value):i.hideLoading())})}const Ql={loading:Boolean,loadingOptions:Object},Tu="",Jl=/^on[^a-z]/,Xl=e=>Jl.test(e);function e0(e){const o={};for(const t in e)Xl(t)||(o[t]=e[t]);return o}const t0="x-vue-echarts",n0="ecTheme",o0="ecInitOptions",a0="ecUpdateOptions",xt=n.defineComponent({name:"echarts",props:{option:Object,theme:{type:[Object,String]},initOptions:Object,updateOptions:Object,group:String,manualUpdate:Boolean,...Zl,...Ql},inheritAttrs:!1,setup(e,{attrs:o,listeners:t}){const a=n.shallowRef(),r=n.shallowRef(),i=n.shallowRef(),s=n.inject(n0,null),l=n.inject(o0,null),d=n.inject(a0,null),{autoresize:c,manualUpdate:f,loading:y,loadingOptions:u}=n.toRefs(e),h=n.computed(()=>i.value||e.option||Object.create(null)),m=n.computed(()=>e.theme||n.unref(s)||{}),g=n.computed(()=>e.initOptions||n.unref(l)||{}),v=n.computed(()=>e.updateOptions||n.unref(d)||{}),B=n.computed(()=>e0(o));function p(D){if(r.value||!a.value)return;const O=r.value=Qe.init(a.value,m.value,g.value);e.group&&(O.group=e.group);let N=t;N||(N={},Object.keys(o).filter(R=>R.indexOf("on")===0&&R.length>2).forEach(R=>{const S=R.charAt(2).toLowerCase()+R.slice(3);N[S]=o[R]})),Object.keys(N).forEach(R=>{const S=N[R];S&&(R.indexOf("zr:")===0?O.getZr().on(R.slice(3).toLowerCase(),S):O.on(R.toLowerCase(),S))});function C(){if(O&&!O.isDisposed())try{O.resize()}catch(R){if(R.message==="Cannot read property 'get' of undefined")return;throw R}}function T(){O.setOption(D||h.value,v.value)}c.value?n.nextTick(()=>{C(),T()}):T()}function b(D,O){e.manualUpdate&&(i.value=D),r.value?r.value.setOption(D,O||{}):p(D)}function x(){r.value&&(r.value.dispose(),r.value=void 0)}let A=null;n.watch(f,D=>{typeof A=="function"&&(A(),A=null),D||(A=n.watch(()=>e.option,O=>{O&&(r.value?r.value.setOption(O,v.value):p())},{deep:!0}))},{immediate:!0}),n.watch([m,g],()=>{x(),p()},{deep:!0}),n.watchEffect(()=>{e.group&&r.value&&(r.value.group=e.group)});const k=Gl(r,p);return Kl(r,y,u),$l(r,c,a),n.onMounted(()=>{e.option&&p()}),n.onUnmounted(x),{chart:r,root:a,setOption:b,nonEventAttrs:B,...k}},render(){const e={...this.nonEventAttrs};return e.ref="root",e.class=e.class?["echarts"].concat(e.class):"echarts",n.h(t0,e)}});function ot(e,o){r0(e)&&(e="100%");var t=i0(e);return e=o===360?e:Math.min(o,Math.max(0,parseFloat(e))),t&&(e=parseInt(String(e*o),10)/100),Math.abs(e-o)<1e-6?1:(o===360?e=(e<0?e%o+o:e%o)/parseFloat(String(o)):e=e%o/parseFloat(String(o)),e)}function r0(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function i0(e){return typeof e=="string"&&e.indexOf("%")!==-1}function l0(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function on(e){return e<=1?"".concat(Number(e)*100,"%"):e}function An(e){return e.length===1?"0"+e:String(e)}function s0(e,o,t){return{r:ot(e,255)*255,g:ot(o,255)*255,b:ot(t,255)*255}}function kn(e,o,t){return t<0&&(t+=1),t>1&&(t-=1),t<1/6?e+(o-e)*(6*t):t<1/2?o:t<2/3?e+(o-e)*(2/3-t)*6:e}function c0(e,o,t){var a,r,i;if(e=ot(e,360),o=ot(o,100),t=ot(t,100),o===0)r=t,i=t,a=t;else{var s=t<.5?t*(1+o):t+o-t*o,l=2*t-s;a=kn(l,s,e+1/3),r=kn(l,s,e),i=kn(l,s,e-1/3)}return{r:a*255,g:r*255,b:i*255}}function d0(e,o,t){e=ot(e,255),o=ot(o,255),t=ot(t,255);var a=Math.max(e,o,t),r=Math.min(e,o,t),i=0,s=a,l=a-r,d=a===0?0:l/a;if(a===r)i=0;else{switch(a){case e:i=(o-t)/l+(o<t?6:0);break;case o:i=(t-e)/l+2;break;case t:i=(e-o)/l+4;break}i/=6}return{h:i,s:d,v:s}}function f0(e,o,t){e=ot(e,360)*6,o=ot(o,100),t=ot(t,100);var a=Math.floor(e),r=e-a,i=t*(1-o),s=t*(1-r*o),l=t*(1-(1-r)*o),d=a%6,c=[t,s,i,i,l,t][d],f=[l,t,t,s,i,i][d],y=[i,i,l,t,t,s][d];return{r:c*255,g:f*255,b:y*255}}function u0(e,o,t,a){var r=[An(Math.round(e).toString(16)),An(Math.round(o).toString(16)),An(Math.round(t).toString(16))];return a&&r[0].startsWith(r[0].charAt(1))&&r[1].startsWith(r[1].charAt(1))&&r[2].startsWith(r[2].charAt(1))?r[0].charAt(0)+r[1].charAt(0)+r[2].charAt(0):r.join("")}function Pa(e){return Je(e)/255}function Je(e){return parseInt(e,16)}var qa={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 Kt(e){var o={r:0,g:0,b:0},t=1,a=null,r=null,i=null,s=!1,l=!1;return typeof e=="string"&&(e=m0(e)),typeof e=="object"&&(gt(e.r)&>(e.g)&>(e.b)?(o=s0(e.r,e.g,e.b),s=!0,l=String(e.r).substr(-1)==="%"?"prgb":"rgb"):gt(e.h)&>(e.s)&>(e.v)?(a=on(e.s),r=on(e.v),o=f0(e.h,a,r),s=!0,l="hsv"):gt(e.h)&>(e.s)&>(e.l)&&(a=on(e.s),i=on(e.l),o=c0(e.h,a,i),s=!0,l="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(t=e.a)),t=l0(t),{ok:s,format:e.format||l,r:Math.min(255,Math.max(o.r,0)),g:Math.min(255,Math.max(o.g,0)),b:Math.min(255,Math.max(o.b,0)),a:t}}var h0="[-\\+]?\\d+%?",g0="[-\\+]?\\d*\\.\\d+%?",pt="(?:".concat(g0,")|(?:").concat(h0,")"),Tn="[\\s|\\(]+(".concat(pt,")[,|\\s]+(").concat(pt,")[,|\\s]+(").concat(pt,")\\s*\\)?"),Bn="[\\s|\\(]+(".concat(pt,")[,|\\s]+(").concat(pt,")[,|\\s]+(").concat(pt,")[,|\\s]+(").concat(pt,")\\s*\\)?"),st={CSS_UNIT:new RegExp(pt),rgb:new RegExp("rgb"+Tn),rgba:new RegExp("rgba"+Bn),hsl:new RegExp("hsl"+Tn),hsla:new RegExp("hsla"+Bn),hsv:new RegExp("hsv"+Tn),hsva:new RegExp("hsva"+Bn),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 m0(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var o=!1;if(qa[e])e=qa[e],o=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var t=st.rgb.exec(e);return t?{r:t[1],g:t[2],b:t[3]}:(t=st.rgba.exec(e),t?{r:t[1],g:t[2],b:t[3],a:t[4]}:(t=st.hsl.exec(e),t?{h:t[1],s:t[2],l:t[3]}:(t=st.hsla.exec(e),t?{h:t[1],s:t[2],l:t[3],a:t[4]}:(t=st.hsv.exec(e),t?{h:t[1],s:t[2],v:t[3]}:(t=st.hsva.exec(e),t?{h:t[1],s:t[2],v:t[3],a:t[4]}:(t=st.hex8.exec(e),t?{r:Je(t[1]),g:Je(t[2]),b:Je(t[3]),a:Pa(t[4]),format:o?"name":"hex8"}:(t=st.hex6.exec(e),t?{r:Je(t[1]),g:Je(t[2]),b:Je(t[3]),format:o?"name":"hex"}:(t=st.hex4.exec(e),t?{r:Je(t[1]+t[1]),g:Je(t[2]+t[2]),b:Je(t[3]+t[3]),a:Pa(t[4]+t[4]),format:o?"name":"hex8"}:(t=st.hex3.exec(e),t?{r:Je(t[1]+t[1]),g:Je(t[2]+t[2]),b:Je(t[3]+t[3]),format:o?"name":"hex"}:!1)))))))))}function gt(e){return!!st.CSS_UNIT.exec(String(e))}var an=2,Ha=.16,y0=.05,x0=.05,p0=.15,Va=5,ja=4,b0=[{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 Wa(e){var o=e.r,t=e.g,a=e.b,r=d0(o,t,a);return{h:r.h*360,s:r.s,v:r.v}}function rn(e){var o=e.r,t=e.g,a=e.b;return"#".concat(u0(o,t,a,!1))}function v0(e,o,t){var a=t/100,r={r:(o.r-e.r)*a+e.r,g:(o.g-e.g)*a+e.g,b:(o.b-e.b)*a+e.b};return r}function Ua(e,o,t){var a;return Math.round(e.h)>=60&&Math.round(e.h)<=240?a=t?Math.round(e.h)-an*o:Math.round(e.h)+an*o:a=t?Math.round(e.h)+an*o:Math.round(e.h)-an*o,a<0?a+=360:a>=360&&(a-=360),a}function Ga(e,o,t){if(e.h===0&&e.s===0)return e.s;var a;return t?a=e.s-Ha*o:o===ja?a=e.s+Ha:a=e.s+y0*o,a>1&&(a=1),t&&o===Va&&a>.1&&(a=.1),a<.06&&(a=.06),Number(a.toFixed(2))}function $a(e,o,t){var a;return t?a=e.v+x0*o:a=e.v-p0*o,a>1&&(a=1),Number(a.toFixed(2))}function En(e){for(var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=[],a=Kt(e),r=Va;r>0;r-=1){var i=Wa(a),s=rn(Kt({h:Ua(i,r,!0),s:Ga(i,r,!0),v:$a(i,r,!0)}));t.push(s)}t.push(rn(a));for(var l=1;l<=ja;l+=1){var d=Wa(a),c=rn(Kt({h:Ua(d,l),s:Ga(d,l),v:$a(d,l)}));t.push(c)}return o.theme==="dark"?b0.map(function(f){var y=f.index,u=f.opacity,h=rn(v0(Kt(o.backgroundColor||"#141414"),Kt(t[y]),u*100));return h}):t}var Dn={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"},Rn={},In={};Object.keys(Dn).forEach(function(e){Rn[e]=En(Dn[e]),Rn[e].primary=Rn[e][5],In[e]=En(Dn[e],{theme:"dark",backgroundColor:"#141414"}),In[e].primary=In[e][5]});var Za=[],Qt=[],S0="insert-css: You need to provide a CSS string. Usage: insertCss(cssString[, options]).";function C0(){var e=document.createElement("style");return e.setAttribute("type","text/css"),e}function w0(e,o){if(o=o||{},e===void 0)throw new Error(S0);var t=o.prepend===!0?"prepend":"append",a=o.container!==void 0?o.container:document.querySelector("head"),r=Za.indexOf(a);r===-1&&(r=Za.push(a)-1,Qt[r]={});var i;return Qt[r]!==void 0&&Qt[r][t]!==void 0?i=Qt[r][t]:(i=Qt[r][t]=C0(),t==="prepend"?a.insertBefore(i,a.childNodes[0]):a.appendChild(i)),e.charCodeAt(0)===65279&&(e=e.substr(1,e.length)),i.styleSheet?i.styleSheet.cssText+=e:i.textContent+=e,i}function Ya(e){for(var o=1;o<arguments.length;o++){var t=arguments[o]!=null?Object(arguments[o]):{},a=Object.keys(t);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(t).filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),a.forEach(function(r){A0(e,r,t[r])})}return e}function A0(e,o,t){return o in e?Object.defineProperty(e,o,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[o]=t,e}function k0(e,o){process.env.NODE_ENV!=="production"&&!e&&console!==void 0&&console.error("Warning: ".concat(o))}function T0(e,o){k0(e,"[@ant-design/icons-vue] ".concat(o))}function Ka(e){return typeof e=="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(typeof e.icon=="object"||typeof e.icon=="function")}function _n(e,o,t){return t?n.h(e.tag,Ya({key:o},t,e.attrs),(e.children||[]).map(function(a,r){return _n(a,"".concat(o,"-").concat(e.tag,"-").concat(r))})):n.h(e.tag,Ya({key:o},e.attrs),(e.children||[]).map(function(a,r){return _n(a,"".concat(o,"-").concat(e.tag,"-").concat(r))}))}function Qa(e){return En(e)[0]}function Ja(e){return e?Array.isArray(e)?e:[e]:[]}var B0=`
|
|
3
3
|
.anticon {
|
|
4
4
|
display: inline-block;
|
|
5
5
|
color: inherit;
|
|
@@ -53,9 +53,9 @@
|
|
|
53
53
|
transform: rotate(360deg);
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
|
-
`,
|
|
57
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
58
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function H0(e,o){if(e){if(typeof e=="string")return tr(e,o);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return tr(e,o)}}function tr(e,o){(o==null||o>e.length)&&(o=e.length);for(var t=0,a=new Array(o);t<o;t++)a[t]=e[t];return a}function V0(e,o){var t=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(t!=null){var a=[],r=!0,i=!1,s,l;try{for(t=t.call(e);!(r=(s=t.next()).done)&&(a.push(s.value),!(o&&a.length===o));r=!0);}catch(d){i=!0,l=d}finally{try{!r&&t.return!=null&&t.return()}finally{if(i)throw l}}return a}}function j0(e){if(Array.isArray(e))return e}function nr(e){for(var o=1;o<arguments.length;o++){var t=arguments[o]!=null?Object(arguments[o]):{},a=Object.keys(t);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(t).filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),a.forEach(function(r){On(e,r,t[r])})}return e}function On(e,o,t){return o in e?Object.defineProperty(e,o,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[o]=t,e}function W0(e,o){if(e==null)return{};var t=U0(e,o),a,r;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)a=i[r],!(o.indexOf(a)>=0)&&Object.prototype.propertyIsEnumerable.call(e,a)&&(t[a]=e[a])}return t}function U0(e,o){if(e==null)return{};var t={},a=Object.keys(e),r,i;for(i=0;i<a.length;i++)r=a[i],!(o.indexOf(r)>=0)&&(t[r]=e[r]);return t}er("#1890ff");var Lt=function(o,t){var a,r=nr({},o,t.attrs),i=r.class,s=r.icon,l=r.spin,d=r.rotate,c=r.tabindex,g=r.twoToneColor,h=r.onClick,y=W0(r,M0),u=(a={anticon:!0},On(a,"anticon-".concat(s.name),!!s.name),On(a,i,i),a),m=l===""||l||s.name==="loading"?"anticon-spin":"",f=c;f===void 0&&h&&(f=-1,y.tabindex=f);var S=d?{msTransform:"rotate(".concat(d,"deg)"),transform:"rotate(".concat(d,"deg)")}:void 0,B=Qa(g),p=P0(B,2),b=p[0],x=p[1];return n.createVNode("span",nr({role:"img","aria-label":s.name},y,{onClick:h,class:u}),[n.createVNode(_n,{class:m,icon:s,primaryColor:b,secondaryColor:x,style:S},null)])};Lt.props={spin:Boolean,rotate:Number,icon:Object,twoToneColor:String},Lt.displayName="AntdIcon",Lt.inheritAttrs=!1,Lt.getTwoToneColor=z0,Lt.setTwoToneColor=er;const or=Lt;var G0={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 $0=G0;function ar(e){for(var o=1;o<arguments.length;o++){var t=arguments[o]!=null?Object(arguments[o]):{},a=Object.keys(t);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(t).filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),a.forEach(function(r){Z0(e,r,t[r])})}return e}function Z0(e,o,t){return o in e?Object.defineProperty(e,o,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[o]=t,e}var Ln=function(o,t){var a=ar({},o,t.attrs);return n.createVNode(or,ar({},a,{icon:$0}),null)};Ln.displayName="CloseOutlined",Ln.inheritAttrs=!1;const Y0=Ln;var K0={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 Q0=K0;function rr(e){for(var o=1;o<arguments.length;o++){var t=arguments[o]!=null?Object(arguments[o]):{},a=Object.keys(t);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(t).filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),a.forEach(function(r){J0(e,r,t[r])})}return e}function J0(e,o,t){return o in e?Object.defineProperty(e,o,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[o]=t,e}var Nn=function(o,t){var a=rr({},o,t.attrs);return n.createVNode(or,rr({},a,{icon:Q0}),null)};Nn.displayName="LoadingOutlined",Nn.inheritAttrs=!1;const X0=Nn,es=n.defineComponent({props:{spinning:{type:Boolean,default:!1}},components:{ASpin:ce.Spin},setup(){return{indicator:n.h(X0,{style:{fontSize:"24px",color:"#1890ff"},spin:!0})}}}),Su="",ye=(e,o)=>{const t=e.__vccOpts||e;for(const[a,r]of o)t[a]=r;return t},ts={class:"spin-wrapper"};function ns(e,o,t,a,r,i){const s=n.resolveComponent("a-spin");return n.openBlock(),n.createElementBlock("div",ts,[e.spinning?(n.openBlock(),n.createBlock(s,{key:0,class:"spin",spinning:e.spinning,indicator:e.indicator,tip:"加载中..."},null,8,["spinning","indicator"])):n.renderSlot(e.$slots,"default",{key:1})])}const Nt=ye(es,[["render",ns]]),os=n.defineComponent({name:"Skeleton",props:{loading:{type:Boolean,default:!1}},components:{ASkeleton:ce.Skeleton}});function as(e,o,t,a,r,i){const s=n.resolveComponent("a-skeleton");return n.openBlock(),n.createBlock(s,{active:"",loading:e.loading},{default:n.withCtx(()=>[n.renderSlot(e.$slots,"default")]),_:3},8,["loading"])}const ln=ye(os,[["render",as]]);process.env.NODE_ENV!=="production"&&Object.freeze({}),process.env.NODE_ENV!=="production"&&Object.freeze([]);const pe=(e,o)=>{if(e.install=t=>{for(const a of[e,...Object.values(o??{})])t.component(a.name,a)},o)for(const[t,a]of Object.entries(o))e[t]=a;return e},ke={id:"",name:"",keyName:"",type:"",width:"100px",height:"40px",position:"absolute",top:"0px",left:"0px",zIndex:1,rotate:"0deg",isShow:!0,isRender:!0,requestUrl:"",requestMethod:"get",requestHeaders:{},isOpenRequestTimer:!1,requestInterval:1,requestSort:0,requestParams:[{key:null,value:{}}],events:[],dataType:"static"},Se=e=>{const o={};if(typeof e=="object"&&e!=null)for(const t in e){const a=e[t];o[t]={type:a==null?void 0:a.constructor,default:a}}return o},Fn={width:"1920px",height:"1080px",backgroundColor:"#ffffff",backgroundImage:"",backgroundSize:"100% 100%",contextRequestUrl:"",mode:"normal"},zn=Se(Fn),rs=["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"],Ce=(e,o=[])=>{const t=Ve.without(rs,...o);return n.computed(()=>Ve.pick(e,t))},Mn="EVENT_BUS",ze="GLOBAL_CONFIG",Be="GLOBAL_MODEL",Me="REQUEST_MODEL",ir="GLOBAL_TOKEN",Jt="REFRESH_PAGE",lr="MODAL_MODEL",bt="LOADED_DATA",Ue=18,sr="ygt",cr=((Rl=window==null?void 0:window.config)==null?void 0:Rl.indicatorURL)||"";(Il=window==null?void 0:window.config)!=null&&Il.uploadPath;const dr=((_l=window==null?void 0:window.config)==null?void 0:_l.routerBaseURL)||"./",is=((Ol=window==null?void 0:window.config)==null?void 0:Ol.erdURL)||"",Le=(e,o)=>{n.watch(()=>e.id,t=>{const a=n.inject(Mn,{onEvent:(r,i)=>{}});t!=null&&t!==""&&a.onEvent(t,o)},{immediate:!0})},Ee=e=>{const o=e.events,t=e.id,a=n.inject(Mn,{emitEvent:(i,s)=>{}}),{touchEventId:r}=n.inject(ze,{touchEventId:n.ref("")});return(i,s=()=>{})=>function(){s.call(this,...arguments);const{emitEvent:l}=a;o.forEach(d=>{if(i===d.on)try{r.value=t,l(d.target,d.emit)}catch(c){console.error(c)}})}},Ft=(e,o)=>{let{name:t="name",value:a="value",type:r="type"}=o||{};t=t==null?void 0:t.trim(),a=a==null?void 0:a.trim(),r=r==null?void 0:r.trim();const i=new Map,s=e.length;for(let c=0;c<s;c++){const g=e[c],h=g[t]||"",y=g[a]||"",u=g[r]||"";if(i.has(u)){const m=i.get(u);m.push({name:h,value:y,...g}),i.set(u,m)}else i.set(u,[{name:h,value:y,...g}])}const l=[],d=[];for(const[c,g]of i)if(d.push({name:c,data:g}),g!=null&&g.length)if(l.length)for(const h of g)l.includes(h.name)||l.push(h.name);else l.push(...g.map(h=>h.name));return{dimensions:l,dataset:d}};var de=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function fr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function ls(e){if(e.__esModule)return e;var o=e.default;if(typeof o=="function"){var t=function a(){return this instanceof a?Reflect.construct(o,arguments,this.constructor):o.apply(this,arguments)};t.prototype=o.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(e).forEach(function(a){var r=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(t,a,r.get?r:{enumerable:!0,get:function(){return e[a]}})}),t}var ur={exports:{}};function ss(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Pn={exports:{}};const cs=ls(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var hr;function me(){return hr||(hr=1,function(e,o){(function(t,a){e.exports=a()})(de,function(){var t=t||function(a,r){var i;if(typeof window<"u"&&window.crypto&&(i=window.crypto),typeof self<"u"&&self.crypto&&(i=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(i=globalThis.crypto),!i&&typeof window<"u"&&window.msCrypto&&(i=window.msCrypto),!i&&typeof de<"u"&&de.crypto&&(i=de.crypto),!i&&typeof ss=="function")try{i=cs}catch{}var s=function(){if(i){if(typeof i.getRandomValues=="function")try{return i.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof i.randomBytes=="function")try{return i.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},l=Object.create||function(){function p(){}return function(b){var x;return p.prototype=b,x=new p,p.prototype=null,x}}(),d={},c=d.lib={},g=c.Base=function(){return{extend:function(p){var b=l(this);return p&&b.mixIn(p),(!b.hasOwnProperty("init")||this.init===b.init)&&(b.init=function(){b.$super.init.apply(this,arguments)}),b.init.prototype=b,b.$super=this,b},create:function(){var p=this.extend();return p.init.apply(p,arguments),p},init:function(){},mixIn:function(p){for(var b in p)p.hasOwnProperty(b)&&(this[b]=p[b]);p.hasOwnProperty("toString")&&(this.toString=p.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),h=c.WordArray=g.extend({init:function(p,b){p=this.words=p||[],b!=r?this.sigBytes=b:this.sigBytes=p.length*4},toString:function(p){return(p||u).stringify(this)},concat:function(p){var b=this.words,x=p.words,A=this.sigBytes,k=p.sigBytes;if(this.clamp(),A%4)for(var D=0;D<k;D++){var O=x[D>>>2]>>>24-D%4*8&255;b[A+D>>>2]|=O<<24-(A+D)%4*8}else for(var N=0;N<k;N+=4)b[A+N>>>2]=x[N>>>2];return this.sigBytes+=k,this},clamp:function(){var p=this.words,b=this.sigBytes;p[b>>>2]&=4294967295<<32-b%4*8,p.length=a.ceil(b/4)},clone:function(){var p=g.clone.call(this);return p.words=this.words.slice(0),p},random:function(p){for(var b=[],x=0;x<p;x+=4)b.push(s());return new h.init(b,p)}}),y=d.enc={},u=y.Hex={stringify:function(p){for(var b=p.words,x=p.sigBytes,A=[],k=0;k<x;k++){var D=b[k>>>2]>>>24-k%4*8&255;A.push((D>>>4).toString(16)),A.push((D&15).toString(16))}return A.join("")},parse:function(p){for(var b=p.length,x=[],A=0;A<b;A+=2)x[A>>>3]|=parseInt(p.substr(A,2),16)<<24-A%8*4;return new h.init(x,b/2)}},m=y.Latin1={stringify:function(p){for(var b=p.words,x=p.sigBytes,A=[],k=0;k<x;k++){var D=b[k>>>2]>>>24-k%4*8&255;A.push(String.fromCharCode(D))}return A.join("")},parse:function(p){for(var b=p.length,x=[],A=0;A<b;A++)x[A>>>2]|=(p.charCodeAt(A)&255)<<24-A%4*8;return new h.init(x,b)}},f=y.Utf8={stringify:function(p){try{return decodeURIComponent(escape(m.stringify(p)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(p){return m.parse(unescape(encodeURIComponent(p)))}},S=c.BufferedBlockAlgorithm=g.extend({reset:function(){this._data=new h.init,this._nDataBytes=0},_append:function(p){typeof p=="string"&&(p=f.parse(p)),this._data.concat(p),this._nDataBytes+=p.sigBytes},_process:function(p){var b,x=this._data,A=x.words,k=x.sigBytes,D=this.blockSize,O=D*4,N=k/O;p?N=a.ceil(N):N=a.max((N|0)-this._minBufferSize,0);var C=N*D,T=a.min(C*4,k);if(C){for(var R=0;R<C;R+=D)this._doProcessBlock(A,R);b=A.splice(0,C),x.sigBytes-=T}return new h.init(b,T)},clone:function(){var p=g.clone.call(this);return p._data=this._data.clone(),p},_minBufferSize:0});c.Hasher=S.extend({cfg:g.extend(),init:function(p){this.cfg=this.cfg.extend(p),this.reset()},reset:function(){S.reset.call(this),this._doReset()},update:function(p){return this._append(p),this._process(),this},finalize:function(p){p&&this._append(p);var b=this._doFinalize();return b},blockSize:16,_createHelper:function(p){return function(b,x){return new p.init(x).finalize(b)}},_createHmacHelper:function(p){return function(b,x){return new B.HMAC.init(p,x).finalize(b)}}});var B=d.algo={};return d}(Math);return t})}(Pn)),Pn.exports}var qn={exports:{}},gr;function sn(){return gr||(gr=1,function(e,o){(function(t,a){e.exports=a(me())})(de,function(t){return function(a){var r=t,i=r.lib,s=i.Base,l=i.WordArray,d=r.x64={};d.Word=s.extend({init:function(c,g){this.high=c,this.low=g}}),d.WordArray=s.extend({init:function(c,g){c=this.words=c||[],g!=a?this.sigBytes=g:this.sigBytes=c.length*8},toX32:function(){for(var c=this.words,g=c.length,h=[],y=0;y<g;y++){var u=c[y];h.push(u.high),h.push(u.low)}return l.create(h,this.sigBytes)},clone:function(){for(var c=s.clone.call(this),g=c.words=this.words.slice(0),h=g.length,y=0;y<h;y++)g[y]=g[y].clone();return c}})}(),t})}(qn)),qn.exports}var Hn={exports:{}},mr;function ds(){return mr||(mr=1,function(e,o){(function(t,a){e.exports=a(me())})(de,function(t){return function(){if(typeof ArrayBuffer=="function"){var a=t,r=a.lib,i=r.WordArray,s=i.init,l=i.init=function(d){if(d instanceof ArrayBuffer&&(d=new Uint8Array(d)),(d instanceof Int8Array||typeof Uint8ClampedArray<"u"&&d instanceof Uint8ClampedArray||d instanceof Int16Array||d instanceof Uint16Array||d instanceof Int32Array||d instanceof Uint32Array||d instanceof Float32Array||d instanceof Float64Array)&&(d=new Uint8Array(d.buffer,d.byteOffset,d.byteLength)),d instanceof Uint8Array){for(var c=d.byteLength,g=[],h=0;h<c;h++)g[h>>>2]|=d[h]<<24-h%4*8;s.call(this,g,c)}else s.apply(this,arguments)};l.prototype=i}}(),t.lib.WordArray})}(Hn)),Hn.exports}var Vn={exports:{}},yr;function fs(){return yr||(yr=1,function(e,o){(function(t,a){e.exports=a(me())})(de,function(t){return function(){var a=t,r=a.lib,i=r.WordArray,s=a.enc;s.Utf16=s.Utf16BE={stringify:function(d){for(var c=d.words,g=d.sigBytes,h=[],y=0;y<g;y+=2){var u=c[y>>>2]>>>16-y%4*8&65535;h.push(String.fromCharCode(u))}return h.join("")},parse:function(d){for(var c=d.length,g=[],h=0;h<c;h++)g[h>>>1]|=d.charCodeAt(h)<<16-h%2*16;return i.create(g,c*2)}},s.Utf16LE={stringify:function(d){for(var c=d.words,g=d.sigBytes,h=[],y=0;y<g;y+=2){var u=l(c[y>>>2]>>>16-y%4*8&65535);h.push(String.fromCharCode(u))}return h.join("")},parse:function(d){for(var c=d.length,g=[],h=0;h<c;h++)g[h>>>1]|=l(d.charCodeAt(h)<<16-h%2*16);return i.create(g,c*2)}};function l(d){return d<<8&4278255360|d>>>8&16711935}}(),t.enc.Utf16})}(Vn)),Vn.exports}var jn={exports:{}},xr;function zt(){return xr||(xr=1,function(e,o){(function(t,a){e.exports=a(me())})(de,function(t){return function(){var a=t,r=a.lib,i=r.WordArray,s=a.enc;s.Base64={stringify:function(d){var c=d.words,g=d.sigBytes,h=this._map;d.clamp();for(var y=[],u=0;u<g;u+=3)for(var m=c[u>>>2]>>>24-u%4*8&255,f=c[u+1>>>2]>>>24-(u+1)%4*8&255,S=c[u+2>>>2]>>>24-(u+2)%4*8&255,B=m<<16|f<<8|S,p=0;p<4&&u+p*.75<g;p++)y.push(h.charAt(B>>>6*(3-p)&63));var b=h.charAt(64);if(b)for(;y.length%4;)y.push(b);return y.join("")},parse:function(d){var c=d.length,g=this._map,h=this._reverseMap;if(!h){h=this._reverseMap=[];for(var y=0;y<g.length;y++)h[g.charCodeAt(y)]=y}var u=g.charAt(64);if(u){var m=d.indexOf(u);m!==-1&&(c=m)}return l(d,c,h)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function l(d,c,g){for(var h=[],y=0,u=0;u<c;u++)if(u%4){var m=g[d.charCodeAt(u-1)]<<u%4*2,f=g[d.charCodeAt(u)]>>>6-u%4*2,S=m|f;h[y>>>2]|=S<<24-y%4*8,y++}return i.create(h,y)}}(),t.enc.Base64})}(jn)),jn.exports}var Wn={exports:{}},pr;function us(){return pr||(pr=1,function(e,o){(function(t,a){e.exports=a(me())})(de,function(t){return function(){var a=t,r=a.lib,i=r.WordArray,s=a.enc;s.Base64url={stringify:function(d,c=!0){var g=d.words,h=d.sigBytes,y=c?this._safe_map:this._map;d.clamp();for(var u=[],m=0;m<h;m+=3)for(var f=g[m>>>2]>>>24-m%4*8&255,S=g[m+1>>>2]>>>24-(m+1)%4*8&255,B=g[m+2>>>2]>>>24-(m+2)%4*8&255,p=f<<16|S<<8|B,b=0;b<4&&m+b*.75<h;b++)u.push(y.charAt(p>>>6*(3-b)&63));var x=y.charAt(64);if(x)for(;u.length%4;)u.push(x);return u.join("")},parse:function(d,c=!0){var g=d.length,h=c?this._safe_map:this._map,y=this._reverseMap;if(!y){y=this._reverseMap=[];for(var u=0;u<h.length;u++)y[h.charCodeAt(u)]=u}var m=h.charAt(64);if(m){var f=d.indexOf(m);f!==-1&&(g=f)}return l(d,g,y)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function l(d,c,g){for(var h=[],y=0,u=0;u<c;u++)if(u%4){var m=g[d.charCodeAt(u-1)]<<u%4*2,f=g[d.charCodeAt(u)]>>>6-u%4*2,S=m|f;h[y>>>2]|=S<<24-y%4*8,y++}return i.create(h,y)}}(),t.enc.Base64url})}(Wn)),Wn.exports}var Un={exports:{}},br;function Mt(){return br||(br=1,function(e,o){(function(t,a){e.exports=a(me())})(de,function(t){return function(a){var r=t,i=r.lib,s=i.WordArray,l=i.Hasher,d=r.algo,c=[];(function(){for(var f=0;f<64;f++)c[f]=a.abs(a.sin(f+1))*4294967296|0})();var g=d.MD5=l.extend({_doReset:function(){this._hash=new s.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(f,S){for(var B=0;B<16;B++){var p=S+B,b=f[p];f[p]=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360}var x=this._hash.words,A=f[S+0],k=f[S+1],D=f[S+2],O=f[S+3],N=f[S+4],C=f[S+5],T=f[S+6],R=f[S+7],v=f[S+8],E=f[S+9],w=f[S+10],_=f[S+11],z=f[S+12],q=f[S+13],W=f[S+14],$=f[S+15],F=x[0],P=x[1],M=x[2],I=x[3];F=h(F,P,M,I,A,7,c[0]),I=h(I,F,P,M,k,12,c[1]),M=h(M,I,F,P,D,17,c[2]),P=h(P,M,I,F,O,22,c[3]),F=h(F,P,M,I,N,7,c[4]),I=h(I,F,P,M,C,12,c[5]),M=h(M,I,F,P,T,17,c[6]),P=h(P,M,I,F,R,22,c[7]),F=h(F,P,M,I,v,7,c[8]),I=h(I,F,P,M,E,12,c[9]),M=h(M,I,F,P,w,17,c[10]),P=h(P,M,I,F,_,22,c[11]),F=h(F,P,M,I,z,7,c[12]),I=h(I,F,P,M,q,12,c[13]),M=h(M,I,F,P,W,17,c[14]),P=h(P,M,I,F,$,22,c[15]),F=y(F,P,M,I,k,5,c[16]),I=y(I,F,P,M,T,9,c[17]),M=y(M,I,F,P,_,14,c[18]),P=y(P,M,I,F,A,20,c[19]),F=y(F,P,M,I,C,5,c[20]),I=y(I,F,P,M,w,9,c[21]),M=y(M,I,F,P,$,14,c[22]),P=y(P,M,I,F,N,20,c[23]),F=y(F,P,M,I,E,5,c[24]),I=y(I,F,P,M,W,9,c[25]),M=y(M,I,F,P,O,14,c[26]),P=y(P,M,I,F,v,20,c[27]),F=y(F,P,M,I,q,5,c[28]),I=y(I,F,P,M,D,9,c[29]),M=y(M,I,F,P,R,14,c[30]),P=y(P,M,I,F,z,20,c[31]),F=u(F,P,M,I,C,4,c[32]),I=u(I,F,P,M,v,11,c[33]),M=u(M,I,F,P,_,16,c[34]),P=u(P,M,I,F,W,23,c[35]),F=u(F,P,M,I,k,4,c[36]),I=u(I,F,P,M,N,11,c[37]),M=u(M,I,F,P,R,16,c[38]),P=u(P,M,I,F,w,23,c[39]),F=u(F,P,M,I,q,4,c[40]),I=u(I,F,P,M,A,11,c[41]),M=u(M,I,F,P,O,16,c[42]),P=u(P,M,I,F,T,23,c[43]),F=u(F,P,M,I,E,4,c[44]),I=u(I,F,P,M,z,11,c[45]),M=u(M,I,F,P,$,16,c[46]),P=u(P,M,I,F,D,23,c[47]),F=m(F,P,M,I,A,6,c[48]),I=m(I,F,P,M,R,10,c[49]),M=m(M,I,F,P,W,15,c[50]),P=m(P,M,I,F,C,21,c[51]),F=m(F,P,M,I,z,6,c[52]),I=m(I,F,P,M,O,10,c[53]),M=m(M,I,F,P,w,15,c[54]),P=m(P,M,I,F,k,21,c[55]),F=m(F,P,M,I,v,6,c[56]),I=m(I,F,P,M,$,10,c[57]),M=m(M,I,F,P,T,15,c[58]),P=m(P,M,I,F,q,21,c[59]),F=m(F,P,M,I,N,6,c[60]),I=m(I,F,P,M,_,10,c[61]),M=m(M,I,F,P,D,15,c[62]),P=m(P,M,I,F,E,21,c[63]),x[0]=x[0]+F|0,x[1]=x[1]+P|0,x[2]=x[2]+M|0,x[3]=x[3]+I|0},_doFinalize:function(){var f=this._data,S=f.words,B=this._nDataBytes*8,p=f.sigBytes*8;S[p>>>5]|=128<<24-p%32;var b=a.floor(B/4294967296),x=B;S[(p+64>>>9<<4)+15]=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360,S[(p+64>>>9<<4)+14]=(x<<8|x>>>24)&16711935|(x<<24|x>>>8)&4278255360,f.sigBytes=(S.length+1)*4,this._process();for(var A=this._hash,k=A.words,D=0;D<4;D++){var O=k[D];k[D]=(O<<8|O>>>24)&16711935|(O<<24|O>>>8)&4278255360}return A},clone:function(){var f=l.clone.call(this);return f._hash=this._hash.clone(),f}});function h(f,S,B,p,b,x,A){var k=f+(S&B|~S&p)+b+A;return(k<<x|k>>>32-x)+S}function y(f,S,B,p,b,x,A){var k=f+(S&p|B&~p)+b+A;return(k<<x|k>>>32-x)+S}function u(f,S,B,p,b,x,A){var k=f+(S^B^p)+b+A;return(k<<x|k>>>32-x)+S}function m(f,S,B,p,b,x,A){var k=f+(B^(S|~p))+b+A;return(k<<x|k>>>32-x)+S}r.MD5=l._createHelper(g),r.HmacMD5=l._createHmacHelper(g)}(Math),t.MD5})}(Un)),Un.exports}var Gn={exports:{}},vr;function $n(){return vr||(vr=1,function(e,o){(function(t,a){e.exports=a(me())})(de,function(t){return function(){var a=t,r=a.lib,i=r.WordArray,s=r.Hasher,l=a.algo,d=[],c=l.SHA1=s.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(g,h){for(var y=this._hash.words,u=y[0],m=y[1],f=y[2],S=y[3],B=y[4],p=0;p<80;p++){if(p<16)d[p]=g[h+p]|0;else{var b=d[p-3]^d[p-8]^d[p-14]^d[p-16];d[p]=b<<1|b>>>31}var x=(u<<5|u>>>27)+B+d[p];p<20?x+=(m&f|~m&S)+1518500249:p<40?x+=(m^f^S)+1859775393:p<60?x+=(m&f|m&S|f&S)-1894007588:x+=(m^f^S)-899497514,B=S,S=f,f=m<<30|m>>>2,m=u,u=x}y[0]=y[0]+u|0,y[1]=y[1]+m|0,y[2]=y[2]+f|0,y[3]=y[3]+S|0,y[4]=y[4]+B|0},_doFinalize:function(){var g=this._data,h=g.words,y=this._nDataBytes*8,u=g.sigBytes*8;return h[u>>>5]|=128<<24-u%32,h[(u+64>>>9<<4)+14]=Math.floor(y/4294967296),h[(u+64>>>9<<4)+15]=y,g.sigBytes=h.length*4,this._process(),this._hash},clone:function(){var g=s.clone.call(this);return g._hash=this._hash.clone(),g}});a.SHA1=s._createHelper(c),a.HmacSHA1=s._createHmacHelper(c)}(),t.SHA1})}(Gn)),Gn.exports}var Zn={exports:{}},Sr;function Cr(){return Sr||(Sr=1,function(e,o){(function(t,a){e.exports=a(me())})(de,function(t){return function(a){var r=t,i=r.lib,s=i.WordArray,l=i.Hasher,d=r.algo,c=[],g=[];(function(){function u(B){for(var p=a.sqrt(B),b=2;b<=p;b++)if(!(B%b))return!1;return!0}function m(B){return(B-(B|0))*4294967296|0}for(var f=2,S=0;S<64;)u(f)&&(S<8&&(c[S]=m(a.pow(f,1/2))),g[S]=m(a.pow(f,1/3)),S++),f++})();var h=[],y=d.SHA256=l.extend({_doReset:function(){this._hash=new s.init(c.slice(0))},_doProcessBlock:function(u,m){for(var f=this._hash.words,S=f[0],B=f[1],p=f[2],b=f[3],x=f[4],A=f[5],k=f[6],D=f[7],O=0;O<64;O++){if(O<16)h[O]=u[m+O]|0;else{var N=h[O-15],C=(N<<25|N>>>7)^(N<<14|N>>>18)^N>>>3,T=h[O-2],R=(T<<15|T>>>17)^(T<<13|T>>>19)^T>>>10;h[O]=C+h[O-7]+R+h[O-16]}var v=x&A^~x&k,E=S&B^S&p^B&p,w=(S<<30|S>>>2)^(S<<19|S>>>13)^(S<<10|S>>>22),_=(x<<26|x>>>6)^(x<<21|x>>>11)^(x<<7|x>>>25),z=D+_+v+g[O]+h[O],q=w+E;D=k,k=A,A=x,x=b+z|0,b=p,p=B,B=S,S=z+q|0}f[0]=f[0]+S|0,f[1]=f[1]+B|0,f[2]=f[2]+p|0,f[3]=f[3]+b|0,f[4]=f[4]+x|0,f[5]=f[5]+A|0,f[6]=f[6]+k|0,f[7]=f[7]+D|0},_doFinalize:function(){var u=this._data,m=u.words,f=this._nDataBytes*8,S=u.sigBytes*8;return m[S>>>5]|=128<<24-S%32,m[(S+64>>>9<<4)+14]=a.floor(f/4294967296),m[(S+64>>>9<<4)+15]=f,u.sigBytes=m.length*4,this._process(),this._hash},clone:function(){var u=l.clone.call(this);return u._hash=this._hash.clone(),u}});r.SHA256=l._createHelper(y),r.HmacSHA256=l._createHmacHelper(y)}(Math),t.SHA256})}(Zn)),Zn.exports}var Yn={exports:{}},wr;function hs(){return wr||(wr=1,function(e,o){(function(t,a,r){e.exports=a(me(),Cr())})(de,function(t){return function(){var a=t,r=a.lib,i=r.WordArray,s=a.algo,l=s.SHA256,d=s.SHA224=l.extend({_doReset:function(){this._hash=new i.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var c=l._doFinalize.call(this);return c.sigBytes-=4,c}});a.SHA224=l._createHelper(d),a.HmacSHA224=l._createHmacHelper(d)}(),t.SHA224})}(Yn)),Yn.exports}var Kn={exports:{}},Ar;function kr(){return Ar||(Ar=1,function(e,o){(function(t,a,r){e.exports=a(me(),sn())})(de,function(t){return function(){var a=t,r=a.lib,i=r.Hasher,s=a.x64,l=s.Word,d=s.WordArray,c=a.algo;function g(){return l.create.apply(l,arguments)}var h=[g(1116352408,3609767458),g(1899447441,602891725),g(3049323471,3964484399),g(3921009573,2173295548),g(961987163,4081628472),g(1508970993,3053834265),g(2453635748,2937671579),g(2870763221,3664609560),g(3624381080,2734883394),g(310598401,1164996542),g(607225278,1323610764),g(1426881987,3590304994),g(1925078388,4068182383),g(2162078206,991336113),g(2614888103,633803317),g(3248222580,3479774868),g(3835390401,2666613458),g(4022224774,944711139),g(264347078,2341262773),g(604807628,2007800933),g(770255983,1495990901),g(1249150122,1856431235),g(1555081692,3175218132),g(1996064986,2198950837),g(2554220882,3999719339),g(2821834349,766784016),g(2952996808,2566594879),g(3210313671,3203337956),g(3336571891,1034457026),g(3584528711,2466948901),g(113926993,3758326383),g(338241895,168717936),g(666307205,1188179964),g(773529912,1546045734),g(1294757372,1522805485),g(1396182291,2643833823),g(1695183700,2343527390),g(1986661051,1014477480),g(2177026350,1206759142),g(2456956037,344077627),g(2730485921,1290863460),g(2820302411,3158454273),g(3259730800,3505952657),g(3345764771,106217008),g(3516065817,3606008344),g(3600352804,1432725776),g(4094571909,1467031594),g(275423344,851169720),g(430227734,3100823752),g(506948616,1363258195),g(659060556,3750685593),g(883997877,3785050280),g(958139571,3318307427),g(1322822218,3812723403),g(1537002063,2003034995),g(1747873779,3602036899),g(1955562222,1575990012),g(2024104815,1125592928),g(2227730452,2716904306),g(2361852424,442776044),g(2428436474,593698344),g(2756734187,3733110249),g(3204031479,2999351573),g(3329325298,3815920427),g(3391569614,3928383900),g(3515267271,566280711),g(3940187606,3454069534),g(4118630271,4000239992),g(116418474,1914138554),g(174292421,2731055270),g(289380356,3203993006),g(460393269,320620315),g(685471733,587496836),g(852142971,1086792851),g(1017036298,365543100),g(1126000580,2618297676),g(1288033470,3409855158),g(1501505948,4234509866),g(1607167915,987167468),g(1816402316,1246189591)],y=[];(function(){for(var m=0;m<80;m++)y[m]=g()})();var u=c.SHA512=i.extend({_doReset:function(){this._hash=new d.init([new l.init(1779033703,4089235720),new l.init(3144134277,2227873595),new l.init(1013904242,4271175723),new l.init(2773480762,1595750129),new l.init(1359893119,2917565137),new l.init(2600822924,725511199),new l.init(528734635,4215389547),new l.init(1541459225,327033209)])},_doProcessBlock:function(m,f){for(var S=this._hash.words,B=S[0],p=S[1],b=S[2],x=S[3],A=S[4],k=S[5],D=S[6],O=S[7],N=B.high,C=B.low,T=p.high,R=p.low,v=b.high,E=b.low,w=x.high,_=x.low,z=A.high,q=A.low,W=k.high,$=k.low,F=D.high,P=D.low,M=O.high,I=O.low,L=N,H=C,Y=T,U=R,ae=v,Q=E,le=w,re=_,K=z,X=q,ne=W,xe=$,we=F,Te=P,$e=M,Fe=I,Ie=0;Ie<80;Ie++){var Ae,qe,Ne=y[Ie];if(Ie<16)qe=Ne.high=m[f+Ie*2]|0,Ae=Ne.low=m[f+Ie*2+1]|0;else{var Ze=y[Ie-15],We=Ze.high,He=Ze.low,ut=(We>>>1|He<<31)^(We>>>8|He<<24)^We>>>7,et=(He>>>1|We<<31)^(He>>>8|We<<24)^(He>>>7|We<<25),tt=y[Ie-2],V=tt.high,Z=tt.low,J=(V>>>19|Z<<13)^(V<<3|Z>>>29)^V>>>6,oe=(Z>>>19|V<<13)^(Z<<3|V>>>29)^(Z>>>6|V<<26),ie=y[Ie-7],te=ie.high,ee=ie.low,fe=y[Ie-16],he=fe.high,ge=fe.low;Ae=et+ee,qe=ut+te+(Ae>>>0<et>>>0?1:0),Ae=Ae+oe,qe=qe+J+(Ae>>>0<oe>>>0?1:0),Ae=Ae+ge,qe=qe+he+(Ae>>>0<ge>>>0?1:0),Ne.high=qe,Ne.low=Ae}var Oe=K&ne^~K&we,Ye=X&xe^~X&Te,yt=L&Y^L&ae^Y&ae,It=H&U^H&Q^U&Q,Sn=(L>>>28|H<<4)^(L<<30|H>>>2)^(L<<25|H>>>7),Ke=(H>>>28|L<<4)^(H<<30|L>>>2)^(H<<25|L>>>7),_t=(K>>>14|X<<18)^(K>>>18|X<<14)^(K<<23|X>>>9),$t=(X>>>14|K<<18)^(X>>>18|K<<14)^(X<<23|K>>>9),Cn=h[Ie],iu=Cn.high,Ll=Cn.low,nt=Fe+$t,Bt=$e+_t+(nt>>>0<Fe>>>0?1:0),nt=nt+Ye,Bt=Bt+Oe+(nt>>>0<Ye>>>0?1:0),nt=nt+Ll,Bt=Bt+iu+(nt>>>0<Ll>>>0?1:0),nt=nt+Ae,Bt=Bt+qe+(nt>>>0<Ae>>>0?1:0),Nl=Ke+It,lu=Sn+yt+(Nl>>>0<Ke>>>0?1:0);$e=we,Fe=Te,we=ne,Te=xe,ne=K,xe=X,X=re+nt|0,K=le+Bt+(X>>>0<re>>>0?1:0)|0,le=ae,re=Q,ae=Y,Q=U,Y=L,U=H,H=nt+Nl|0,L=Bt+lu+(H>>>0<nt>>>0?1:0)|0}C=B.low=C+H,B.high=N+L+(C>>>0<H>>>0?1:0),R=p.low=R+U,p.high=T+Y+(R>>>0<U>>>0?1:0),E=b.low=E+Q,b.high=v+ae+(E>>>0<Q>>>0?1:0),_=x.low=_+re,x.high=w+le+(_>>>0<re>>>0?1:0),q=A.low=q+X,A.high=z+K+(q>>>0<X>>>0?1:0),$=k.low=$+xe,k.high=W+ne+($>>>0<xe>>>0?1:0),P=D.low=P+Te,D.high=F+we+(P>>>0<Te>>>0?1:0),I=O.low=I+Fe,O.high=M+$e+(I>>>0<Fe>>>0?1:0)},_doFinalize:function(){var m=this._data,f=m.words,S=this._nDataBytes*8,B=m.sigBytes*8;f[B>>>5]|=128<<24-B%32,f[(B+128>>>10<<5)+30]=Math.floor(S/4294967296),f[(B+128>>>10<<5)+31]=S,m.sigBytes=f.length*4,this._process();var p=this._hash.toX32();return p},clone:function(){var m=i.clone.call(this);return m._hash=this._hash.clone(),m},blockSize:1024/32});a.SHA512=i._createHelper(u),a.HmacSHA512=i._createHmacHelper(u)}(),t.SHA512})}(Kn)),Kn.exports}var Qn={exports:{}},Tr;function gs(){return Tr||(Tr=1,function(e,o){(function(t,a,r){e.exports=a(me(),sn(),kr())})(de,function(t){return function(){var a=t,r=a.x64,i=r.Word,s=r.WordArray,l=a.algo,d=l.SHA512,c=l.SHA384=d.extend({_doReset:function(){this._hash=new s.init([new i.init(3418070365,3238371032),new i.init(1654270250,914150663),new i.init(2438529370,812702999),new i.init(355462360,4144912697),new i.init(1731405415,4290775857),new i.init(2394180231,1750603025),new i.init(3675008525,1694076839),new i.init(1203062813,3204075428)])},_doFinalize:function(){var g=d._doFinalize.call(this);return g.sigBytes-=16,g}});a.SHA384=d._createHelper(c),a.HmacSHA384=d._createHmacHelper(c)}(),t.SHA384})}(Qn)),Qn.exports}var Jn={exports:{}},Br;function ms(){return Br||(Br=1,function(e,o){(function(t,a,r){e.exports=a(me(),sn())})(de,function(t){return function(a){var r=t,i=r.lib,s=i.WordArray,l=i.Hasher,d=r.x64,c=d.Word,g=r.algo,h=[],y=[],u=[];(function(){for(var S=1,B=0,p=0;p<24;p++){h[S+5*B]=(p+1)*(p+2)/2%64;var b=B%5,x=(2*S+3*B)%5;S=b,B=x}for(var S=0;S<5;S++)for(var B=0;B<5;B++)y[S+5*B]=B+(2*S+3*B)%5*5;for(var A=1,k=0;k<24;k++){for(var D=0,O=0,N=0;N<7;N++){if(A&1){var C=(1<<N)-1;C<32?O^=1<<C:D^=1<<C-32}A&128?A=A<<1^113:A<<=1}u[k]=c.create(D,O)}})();var m=[];(function(){for(var S=0;S<25;S++)m[S]=c.create()})();var f=g.SHA3=l.extend({cfg:l.cfg.extend({outputLength:512}),_doReset:function(){for(var S=this._state=[],B=0;B<25;B++)S[B]=new c.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(S,B){for(var p=this._state,b=this.blockSize/2,x=0;x<b;x++){var A=S[B+2*x],k=S[B+2*x+1];A=(A<<8|A>>>24)&16711935|(A<<24|A>>>8)&4278255360,k=(k<<8|k>>>24)&16711935|(k<<24|k>>>8)&4278255360;var D=p[x];D.high^=k,D.low^=A}for(var O=0;O<24;O++){for(var N=0;N<5;N++){for(var C=0,T=0,R=0;R<5;R++){var D=p[N+5*R];C^=D.high,T^=D.low}var v=m[N];v.high=C,v.low=T}for(var N=0;N<5;N++)for(var E=m[(N+4)%5],w=m[(N+1)%5],_=w.high,z=w.low,C=E.high^(_<<1|z>>>31),T=E.low^(z<<1|_>>>31),R=0;R<5;R++){var D=p[N+5*R];D.high^=C,D.low^=T}for(var q=1;q<25;q++){var C,T,D=p[q],W=D.high,$=D.low,F=h[q];F<32?(C=W<<F|$>>>32-F,T=$<<F|W>>>32-F):(C=$<<F-32|W>>>64-F,T=W<<F-32|$>>>64-F);var P=m[y[q]];P.high=C,P.low=T}var M=m[0],I=p[0];M.high=I.high,M.low=I.low;for(var N=0;N<5;N++)for(var R=0;R<5;R++){var q=N+5*R,D=p[q],L=m[q],H=m[(N+1)%5+5*R],Y=m[(N+2)%5+5*R];D.high=L.high^~H.high&Y.high,D.low=L.low^~H.low&Y.low}var D=p[0],U=u[O];D.high^=U.high,D.low^=U.low}},_doFinalize:function(){var S=this._data,B=S.words;this._nDataBytes*8;var p=S.sigBytes*8,b=this.blockSize*32;B[p>>>5]|=1<<24-p%32,B[(a.ceil((p+1)/b)*b>>>5)-1]|=128,S.sigBytes=B.length*4,this._process();for(var x=this._state,A=this.cfg.outputLength/8,k=A/8,D=[],O=0;O<k;O++){var N=x[O],C=N.high,T=N.low;C=(C<<8|C>>>24)&16711935|(C<<24|C>>>8)&4278255360,T=(T<<8|T>>>24)&16711935|(T<<24|T>>>8)&4278255360,D.push(T),D.push(C)}return new s.init(D,A)},clone:function(){for(var S=l.clone.call(this),B=S._state=this._state.slice(0),p=0;p<25;p++)B[p]=B[p].clone();return S}});r.SHA3=l._createHelper(f),r.HmacSHA3=l._createHmacHelper(f)}(Math),t.SHA3})}(Jn)),Jn.exports}var Xn={exports:{}},Er;function ys(){return Er||(Er=1,function(e,o){(function(t,a){e.exports=a(me())})(de,function(t){/** @preserve
|
|
56
|
+
`,Xa=!1,E0=function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:B0;n.nextTick(function(){Xa||(typeof window<"u"&&window.document&&window.document.documentElement&&w0(o,{prepend:!0}),Xa=!0)})},D0=["icon","primaryColor","secondaryColor"];function R0(e,o){if(e==null)return{};var t=I0(e,o),a,r;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)a=i[r],!(o.indexOf(a)>=0)&&Object.prototype.propertyIsEnumerable.call(e,a)&&(t[a]=e[a])}return t}function I0(e,o){if(e==null)return{};var t={},a=Object.keys(e),r,i;for(i=0;i<a.length;i++)r=a[i],!(o.indexOf(r)>=0)&&(t[r]=e[r]);return t}function ln(e){for(var o=1;o<arguments.length;o++){var t=arguments[o]!=null?Object(arguments[o]):{},a=Object.keys(t);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(t).filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),a.forEach(function(r){_0(e,r,t[r])})}return e}function _0(e,o,t){return o in e?Object.defineProperty(e,o,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[o]=t,e}var Jt={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function O0(e){var o=e.primaryColor,t=e.secondaryColor;Jt.primaryColor=o,Jt.secondaryColor=t||Qa(o),Jt.calculated=!!t}function L0(){return ln({},Jt)}var Ot=function(o,t){var a=ln({},o,t.attrs),r=a.icon,i=a.primaryColor,s=a.secondaryColor,l=R0(a,D0),d=Jt;if(i&&(d={primaryColor:i,secondaryColor:s||Qa(i)}),E0(),T0(Ka(r),"icon should be icon definiton, but got ".concat(r)),!Ka(r))return null;var c=r;return c&&typeof c.icon=="function"&&(c=ln({},c,{icon:c.icon(d.primaryColor,d.secondaryColor)})),_n(c.icon,"svg-".concat(c.name),ln({},l,{"data-icon":c.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"}))};Ot.props={icon:Object,primaryColor:String,secondaryColor:String,focusable:String},Ot.inheritAttrs=!1,Ot.displayName="IconBase",Ot.getTwoToneColors=L0,Ot.setTwoToneColors=O0;const On=Ot;function N0(e,o){return P0(e)||M0(e,o)||z0(e,o)||F0()}function F0(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
57
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function z0(e,o){if(e){if(typeof e=="string")return er(e,o);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return er(e,o)}}function er(e,o){(o==null||o>e.length)&&(o=e.length);for(var t=0,a=new Array(o);t<o;t++)a[t]=e[t];return a}function M0(e,o){var t=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(t!=null){var a=[],r=!0,i=!1,s,l;try{for(t=t.call(e);!(r=(s=t.next()).done)&&(a.push(s.value),!(o&&a.length===o));r=!0);}catch(d){i=!0,l=d}finally{try{!r&&t.return!=null&&t.return()}finally{if(i)throw l}}return a}}function P0(e){if(Array.isArray(e))return e}function tr(e){var o=Ja(e),t=N0(o,2),a=t[0],r=t[1];return On.setTwoToneColors({primaryColor:a,secondaryColor:r})}function q0(){var e=On.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var H0=["class","icon","spin","rotate","tabindex","twoToneColor","onClick"];function V0(e,o){return G0(e)||U0(e,o)||W0(e,o)||j0()}function j0(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
58
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function W0(e,o){if(e){if(typeof e=="string")return nr(e,o);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return nr(e,o)}}function nr(e,o){(o==null||o>e.length)&&(o=e.length);for(var t=0,a=new Array(o);t<o;t++)a[t]=e[t];return a}function U0(e,o){var t=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(t!=null){var a=[],r=!0,i=!1,s,l;try{for(t=t.call(e);!(r=(s=t.next()).done)&&(a.push(s.value),!(o&&a.length===o));r=!0);}catch(d){i=!0,l=d}finally{try{!r&&t.return!=null&&t.return()}finally{if(i)throw l}}return a}}function G0(e){if(Array.isArray(e))return e}function or(e){for(var o=1;o<arguments.length;o++){var t=arguments[o]!=null?Object(arguments[o]):{},a=Object.keys(t);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(t).filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),a.forEach(function(r){Ln(e,r,t[r])})}return e}function Ln(e,o,t){return o in e?Object.defineProperty(e,o,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[o]=t,e}function $0(e,o){if(e==null)return{};var t=Z0(e,o),a,r;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)a=i[r],!(o.indexOf(a)>=0)&&Object.prototype.propertyIsEnumerable.call(e,a)&&(t[a]=e[a])}return t}function Z0(e,o){if(e==null)return{};var t={},a=Object.keys(e),r,i;for(i=0;i<a.length;i++)r=a[i],!(o.indexOf(r)>=0)&&(t[r]=e[r]);return t}tr("#1890ff");var Lt=function(o,t){var a,r=or({},o,t.attrs),i=r.class,s=r.icon,l=r.spin,d=r.rotate,c=r.tabindex,f=r.twoToneColor,y=r.onClick,u=$0(r,H0),h=(a={anticon:!0},Ln(a,"anticon-".concat(s.name),!!s.name),Ln(a,i,i),a),m=l===""||l||s.name==="loading"?"anticon-spin":"",g=c;g===void 0&&y&&(g=-1,u.tabindex=g);var v=d?{msTransform:"rotate(".concat(d,"deg)"),transform:"rotate(".concat(d,"deg)")}:void 0,B=Ja(f),p=V0(B,2),b=p[0],x=p[1];return n.createVNode("span",or({role:"img","aria-label":s.name},u,{onClick:y,class:h}),[n.createVNode(On,{class:m,icon:s,primaryColor:b,secondaryColor:x,style:v},null)])};Lt.props={spin:Boolean,rotate:Number,icon:Object,twoToneColor:String},Lt.displayName="AntdIcon",Lt.inheritAttrs=!1,Lt.getTwoToneColor=q0,Lt.setTwoToneColor=tr;const ar=Lt;var Y0={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 K0=Y0;function rr(e){for(var o=1;o<arguments.length;o++){var t=arguments[o]!=null?Object(arguments[o]):{},a=Object.keys(t);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(t).filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),a.forEach(function(r){Q0(e,r,t[r])})}return e}function Q0(e,o,t){return o in e?Object.defineProperty(e,o,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[o]=t,e}var Nn=function(o,t){var a=rr({},o,t.attrs);return n.createVNode(ar,rr({},a,{icon:K0}),null)};Nn.displayName="CloseOutlined",Nn.inheritAttrs=!1;const J0=Nn;var X0={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 es=X0;function ir(e){for(var o=1;o<arguments.length;o++){var t=arguments[o]!=null?Object(arguments[o]):{},a=Object.keys(t);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(t).filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),a.forEach(function(r){ts(e,r,t[r])})}return e}function ts(e,o,t){return o in e?Object.defineProperty(e,o,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[o]=t,e}var Fn=function(o,t){var a=ir({},o,t.attrs);return n.createVNode(ar,ir({},a,{icon:es}),null)};Fn.displayName="LoadingOutlined",Fn.inheritAttrs=!1;const ns=Fn,os=n.defineComponent({props:{spinning:{type:Boolean,default:!1}},components:{ASpin:ce.Spin},setup(){return{indicator:n.h(ns,{style:{fontSize:"24px",color:"#1890ff"},spin:!0})}}}),Bu="",ye=(e,o)=>{const t=e.__vccOpts||e;for(const[a,r]of o)t[a]=r;return t},as={class:"spin-wrapper"};function rs(e,o,t,a,r,i){const s=n.resolveComponent("a-spin");return n.openBlock(),n.createElementBlock("div",as,[e.spinning?(n.openBlock(),n.createBlock(s,{key:0,class:"spin",spinning:e.spinning,indicator:e.indicator,tip:"加载中..."},null,8,["spinning","indicator"])):n.renderSlot(e.$slots,"default",{key:1})])}const Nt=ye(os,[["render",rs]]),is=n.defineComponent({name:"Skeleton",props:{loading:{type:Boolean,default:!1}},components:{ASkeleton:ce.Skeleton}});function ls(e,o,t,a,r,i){const s=n.resolveComponent("a-skeleton");return n.openBlock(),n.createBlock(s,{active:"",loading:e.loading},{default:n.withCtx(()=>[n.renderSlot(e.$slots,"default")]),_:3},8,["loading"])}const sn=ye(is,[["render",ls]]);(function(){try{if(typeof document<"u"){var e=document.createElement("style");e.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(e)}}catch(o){console.error("vite-plugin-css-injected-by-js",o)}})();var ss=Object.defineProperty,lr=Object.getOwnPropertySymbols,cs=Object.prototype.hasOwnProperty,ds=Object.prototype.propertyIsEnumerable,sr=(e,o,t)=>o in e?ss(e,o,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[o]=t,cr=(e,o)=>{for(var t in o||(o={}))cs.call(o,t)&&sr(e,t,o[t]);if(lr)for(var t of lr(o))ds.call(o,t)&&sr(e,t,o[t]);return e},fs=(e,o)=>{const t=e.__vccOpts||e;for(const[a,r]of o)t[a]=r;return t};const us=n.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(e,{emit:o}){const t=n.ref(0),a=n.ref("100%"),r=n.ref("100%"),i=n.ref(0),s=n.ref(!1),l=n.ref(!1),d=n.ref(0),c=n.ref(0),f=n.ref(0),y=n.ref(0),u=n.ref(!1),h=n.ref(!1),m=n.ref(0),g=n.ref(null),v=n.ref("200px"),B=n.ref(!1),p=n.ref(null),b=n.ref(null),x=async()=>{await A(),i.value++},A=async()=>{e.vertical&&(s.value=!0),setInterval(()=>{if(a.value="0%",r.value="0%",p.value!==null&&b.value!==null&&p.value&&b.value)if(e.vertical&&"clientHeight"in p.value&&"clientHeight"in b.value){y.value=p.value.clientHeight,f.value=b.value.clientHeight;const _=Math.ceil(f.value/y.value);return t.value=isFinite(_)?_:0,s.value=!1,t.value}else if(!e.vertical&&"clientWidth"in p.value&&"clientWidth"in b.value){if(c.value=p.value.clientWidth,d.value=b.value.clientWidth,e.animateOnOverflowOnly)return c.value<d.value?(l.value=!0,o("onOverflowDetected")):(l.value=!1,o("onOverflowCleared")),0;const _=Math.ceil(d.value/c.value);return t.value=isFinite(_)?_:0,t.value}else return a.value="100%",r.value="100%",0;else return a.value="100%",r.value="100%",0},100)};n.watch(c,async()=>{e.clone&&x()}),n.watch(d,async()=>{(e.clone||e.animateOnOverflowOnly)&&x()}),n.watch(()=>e.pause,(_,z)=>{_!==z&&o(_?"onResume":"onPause")});const k=()=>{e.pauseOnHover&&(o("onPause"),u.value=!0)},D=()=>{e.pauseOnHover&&(o("onResume"),u.value=!1)},O=()=>{e.pauseOnClick&&(o("onPause"),h.value=!0)},N=()=>{e.pauseOnClick&&(o("onResume"),h.value=!1)},C=n.computed(()=>e.pause||e.vertical&&s.value||e.animateOnOverflowOnly&&l.value?"paused":"running"),T=n.computed(()=>e.pauseOnHover&&(u.value||h.value)||!e.pauseOnHover&&C.value==="paused"?"paused":"running"),R=n.computed(()=>e.pauseOnHover&&u.value||e.pauseOnClick&&h.value||!e.pauseOnHover&&C.value==="paused"?"paused":"running"),S=n.computed(()=>{const _={"--duration":`${e.duration}s`,"--delay":`${e.delay}s`,"--direction":`${e.direction}`,"--pauseOnHover":`${T.value}`,"--pauseOnClick":`${R.value}`,"--pauseAnimation":`${C.value}`,"--loops":`${e.loop===0?"infinite":e.loop}`,"--gradient-color":`rgba(${e.gradientColor[0]}, ${e.gradientColor[1]}, ${e.gradientColor[2]}, 1), rgba(${e.gradientColor[0]}, ${e.gradientColor[1]}, ${e.gradientColor[2]}, 0)`,"--gradient-length":`${v.value}`,"--min-width":`${a.value}`,"--min-height":`${r.value}`},z={"--orientation":"scrollX",orientation:"horizontal"};return e.vertical&&(z["--orientation"]="scrollY"),cr(cr({},_),z)}),E=n.computed(()=>!!e.gradient),w=async()=>{e.vertical?(r.value="100%",a.value="auto",e.animateOnOverflowOnly&&console.warn("The `animateOnOverflowOnly` prop is not supported for vertical marquees.")):(r.value="auto",e.animateOnOverflowOnly?a.value="auto":a.value="100%"),e.gradient&&(e.gradientWidth?(console.warn("The `gradientWidth` prop has been deprecated and will be removed in a future release. Please use `gradientLength` instead."),v.value=e.gradientWidth):e.gradientLength&&(v.value=e.gradientLength)),(e.clone||e.animateOnOverflowOnly)&&(await A(),x()),B.value=!0};return n.onMounted(async()=>{w(),g.value=setInterval(()=>{m.value++,e.loop!==0&&m.value===e.loop&&(o("onComplete"),clearInterval(g.value)),o("onLoopComplete")},e.duration*1e3)}),n.onBeforeUnmount(()=>{clearInterval(g.value)}),{ready:B,contentWidth:c,containerWidth:d,contentHeight:y,containerHeight:f,loopCounter:m,loopInterval:g,mouseOverMarquee:u,mouseDownMarquee:h,minWidth:a,minHeight:r,animateOnOverflowPause:l,marqueeContent:p,marqueeOverlayContainer:b,componentKey:i,showGradient:E,cloneAmount:t,ForcesUpdate:x,checkForClone:A,setupMarquee:w,getCurrentStyle:S,hoverStarted:k,hoverEnded:D,mouseDown:O,mouseUp:N}}}),hs={class:"transparent-overlay",ref:"marqueeOverlayContainer","aria-hidden":!0},gs={class:"marquee",ref:"marqueeContent"},ms={key:1,"aria-hidden":!0,class:"marquee"};function ys(e,o,t,a,r,i){return e.ready?(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["vue3-marquee",{vertical:e.vertical,horizontal:!e.vertical}]),style:n.normalizeStyle(e.getCurrentStyle),key:e.componentKey,onMouseenter:o[0]||(o[0]=(...s)=>e.hoverStarted&&e.hoverStarted(...s)),onMouseleave:o[1]||(o[1]=(...s)=>e.hoverEnded&&e.hoverEnded(...s)),onMousedown:o[2]||(o[2]=(...s)=>e.mouseDown&&e.mouseDown(...s)),onMouseup:o[3]||(o[3]=(...s)=>e.mouseUp&&e.mouseUp(...s))},[n.createElementVNode("div",hs,null,512),e.showGradient?(n.openBlock(),n.createElementBlock("div",{key:0,"aria-hidden":!0,class:n.normalizeClass(["overlay",{vertical:e.vertical,horizontal:!e.vertical}])},null,2)):n.createCommentVNode("",!0),n.createElementVNode("div",gs,[n.renderSlot(e.$slots,"default")],512),!e.animateOnOverflowOnly||e.animateOnOverflowOnly&&!e.animateOnOverflowPause?(n.openBlock(),n.createElementBlock("div",ms,[n.renderSlot(e.$slots,"default")])):n.createCommentVNode("",!0),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.cloneAmount,s=>(n.openBlock(),n.createElementBlock("div",{"aria-hidden":!0,class:"marquee cloned",key:s},[n.renderSlot(e.$slots,"default")]))),128))],38)):n.createCommentVNode("",!0)}var xs=fs(us,[["render",ys]]);const ps=n.defineComponent({name:"SeamScroll",components:{Vue3Marquee:xs},props:{dataSource:{type:Object,default:()=>{}},visible:{type:Boolean,default:!1},step:{type:Number,default:1}},setup(e){return{isAutoScroll:n.ref(e.visible)}}}),bs={key:1,class:"list-wrap"};function vs(e,o,t,a,r,i){const s=n.resolveComponent("Vue3Marquee");return e.isAutoScroll?(n.openBlock(),n.createBlock(s,{key:0,class:"vue-marquee",style:{width:"100%"},duration:e.step,vertical:!0,pauseOnHover:!0},{default:n.withCtx(()=>[n.renderSlot(e.$slots,"default")]),_:3},8,["duration"])):(n.openBlock(),n.createElementBlock("div",bs,[n.renderSlot(e.$slots,"default")]))}const dr=ye(ps,[["render",vs]]);process.env.NODE_ENV!=="production"&&Object.freeze({}),process.env.NODE_ENV!=="production"&&Object.freeze([]);const pe=(e,o)=>{if(e.install=t=>{for(const a of[e,...Object.values(o??{})])t.component(a.name,a)},o)for(const[t,a]of Object.entries(o))e[t]=a;return e},ke={id:"",name:"",keyName:"",type:"",width:"100px",height:"40px",position:"absolute",top:"0px",left:"0px",zIndex:1,rotate:"0deg",isShow:!0,isRender:!0,requestUrl:"",requestMethod:"get",requestHeaders:{},isOpenRequestTimer:!1,requestInterval:1,requestSort:0,requestParams:[{key:null,value:{}}],events:[],dataType:"static"},Se=e=>{const o={};if(typeof e=="object"&&e!=null)for(const t in e){const a=e[t];o[t]={type:a==null?void 0:a.constructor,default:a}}return o},zn={width:"1920px",height:"1080px",backgroundColor:"#ffffff",backgroundImage:"",backgroundSize:"100% 100%",contextRequestUrl:"",mode:"normal"},Mn=Se(zn),Ss=["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"],Ce=(e,o=[])=>{const t=Ne.without(Ss,...o);return n.computed(()=>Ne.pick(e,t))},Pn="EVENT_BUS",Me="GLOBAL_CONFIG",Be="GLOBAL_MODEL",Pe="REQUEST_MODEL",fr="GLOBAL_TOKEN",Xt="REFRESH_PAGE",ur="MODAL_MODEL",bt="LOADED_DATA",Ue=18,hr="ygt",gr=((Ol=window==null?void 0:window.config)==null?void 0:Ol.indicatorURL)||"";(Ll=window==null?void 0:window.config)!=null&&Ll.uploadPath;const mr=((Nl=window==null?void 0:window.config)==null?void 0:Nl.routerBaseURL)||"./",Cs=((Fl=window==null?void 0:window.config)==null?void 0:Fl.erdURL)||"",Le=(e,o)=>{n.watch(()=>e.id,t=>{const a=n.inject(Pn,{onEvent:(r,i)=>{}});t!=null&&t!==""&&a.onEvent(t,o)},{immediate:!0})},Ee=e=>{const o=e.events,t=e.id,a=n.inject(Pn,{emitEvent:(i,s)=>{}}),{touchEventId:r}=n.inject(Me,{touchEventId:n.ref("")});return(i,s=()=>{})=>function(){s.call(this,...arguments);const{emitEvent:l}=a;o.forEach(d=>{if(i===d.on)try{r.value=t,l(d.target,d.emit)}catch(c){console.error(c)}})}},Ft=(e,o)=>{let{name:t="name",value:a="value",type:r="type"}=o||{};t=t==null?void 0:t.trim(),a=a==null?void 0:a.trim(),r=r==null?void 0:r.trim();const i=new Map,s=e.length;for(let c=0;c<s;c++){const f=e[c],y=f[t]||"",u=f[a]||"",h=f[r]||"";if(i.has(h)){const m=i.get(h);m.push({name:y,value:u,...f}),i.set(h,m)}else i.set(h,[{name:y,value:u,...f}])}const l=[],d=[];for(const[c,f]of i)if(d.push({name:c,data:f}),f!=null&&f.length)if(l.length)for(const y of f)l.includes(y.name)||l.push(y.name);else l.push(...f.map(y=>y.name));return{dimensions:l,dataset:d}};var de=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function yr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function ws(e){if(e.__esModule)return e;var o=e.default;if(typeof o=="function"){var t=function a(){return this instanceof a?Reflect.construct(o,arguments,this.constructor):o.apply(this,arguments)};t.prototype=o.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(e).forEach(function(a){var r=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(t,a,r.get?r:{enumerable:!0,get:function(){return e[a]}})}),t}var xr={exports:{}};function As(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var qn={exports:{}};const ks=ws(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var pr;function me(){return pr||(pr=1,function(e,o){(function(t,a){e.exports=a()})(de,function(){var t=t||function(a,r){var i;if(typeof window<"u"&&window.crypto&&(i=window.crypto),typeof self<"u"&&self.crypto&&(i=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(i=globalThis.crypto),!i&&typeof window<"u"&&window.msCrypto&&(i=window.msCrypto),!i&&typeof de<"u"&&de.crypto&&(i=de.crypto),!i&&typeof As=="function")try{i=ks}catch{}var s=function(){if(i){if(typeof i.getRandomValues=="function")try{return i.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof i.randomBytes=="function")try{return i.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},l=Object.create||function(){function p(){}return function(b){var x;return p.prototype=b,x=new p,p.prototype=null,x}}(),d={},c=d.lib={},f=c.Base=function(){return{extend:function(p){var b=l(this);return p&&b.mixIn(p),(!b.hasOwnProperty("init")||this.init===b.init)&&(b.init=function(){b.$super.init.apply(this,arguments)}),b.init.prototype=b,b.$super=this,b},create:function(){var p=this.extend();return p.init.apply(p,arguments),p},init:function(){},mixIn:function(p){for(var b in p)p.hasOwnProperty(b)&&(this[b]=p[b]);p.hasOwnProperty("toString")&&(this.toString=p.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),y=c.WordArray=f.extend({init:function(p,b){p=this.words=p||[],b!=r?this.sigBytes=b:this.sigBytes=p.length*4},toString:function(p){return(p||h).stringify(this)},concat:function(p){var b=this.words,x=p.words,A=this.sigBytes,k=p.sigBytes;if(this.clamp(),A%4)for(var D=0;D<k;D++){var O=x[D>>>2]>>>24-D%4*8&255;b[A+D>>>2]|=O<<24-(A+D)%4*8}else for(var N=0;N<k;N+=4)b[A+N>>>2]=x[N>>>2];return this.sigBytes+=k,this},clamp:function(){var p=this.words,b=this.sigBytes;p[b>>>2]&=4294967295<<32-b%4*8,p.length=a.ceil(b/4)},clone:function(){var p=f.clone.call(this);return p.words=this.words.slice(0),p},random:function(p){for(var b=[],x=0;x<p;x+=4)b.push(s());return new y.init(b,p)}}),u=d.enc={},h=u.Hex={stringify:function(p){for(var b=p.words,x=p.sigBytes,A=[],k=0;k<x;k++){var D=b[k>>>2]>>>24-k%4*8&255;A.push((D>>>4).toString(16)),A.push((D&15).toString(16))}return A.join("")},parse:function(p){for(var b=p.length,x=[],A=0;A<b;A+=2)x[A>>>3]|=parseInt(p.substr(A,2),16)<<24-A%8*4;return new y.init(x,b/2)}},m=u.Latin1={stringify:function(p){for(var b=p.words,x=p.sigBytes,A=[],k=0;k<x;k++){var D=b[k>>>2]>>>24-k%4*8&255;A.push(String.fromCharCode(D))}return A.join("")},parse:function(p){for(var b=p.length,x=[],A=0;A<b;A++)x[A>>>2]|=(p.charCodeAt(A)&255)<<24-A%4*8;return new y.init(x,b)}},g=u.Utf8={stringify:function(p){try{return decodeURIComponent(escape(m.stringify(p)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(p){return m.parse(unescape(encodeURIComponent(p)))}},v=c.BufferedBlockAlgorithm=f.extend({reset:function(){this._data=new y.init,this._nDataBytes=0},_append:function(p){typeof p=="string"&&(p=g.parse(p)),this._data.concat(p),this._nDataBytes+=p.sigBytes},_process:function(p){var b,x=this._data,A=x.words,k=x.sigBytes,D=this.blockSize,O=D*4,N=k/O;p?N=a.ceil(N):N=a.max((N|0)-this._minBufferSize,0);var C=N*D,T=a.min(C*4,k);if(C){for(var R=0;R<C;R+=D)this._doProcessBlock(A,R);b=A.splice(0,C),x.sigBytes-=T}return new y.init(b,T)},clone:function(){var p=f.clone.call(this);return p._data=this._data.clone(),p},_minBufferSize:0});c.Hasher=v.extend({cfg:f.extend(),init:function(p){this.cfg=this.cfg.extend(p),this.reset()},reset:function(){v.reset.call(this),this._doReset()},update:function(p){return this._append(p),this._process(),this},finalize:function(p){p&&this._append(p);var b=this._doFinalize();return b},blockSize:16,_createHelper:function(p){return function(b,x){return new p.init(x).finalize(b)}},_createHmacHelper:function(p){return function(b,x){return new B.HMAC.init(p,x).finalize(b)}}});var B=d.algo={};return d}(Math);return t})}(qn)),qn.exports}var Hn={exports:{}},br;function cn(){return br||(br=1,function(e,o){(function(t,a){e.exports=a(me())})(de,function(t){return function(a){var r=t,i=r.lib,s=i.Base,l=i.WordArray,d=r.x64={};d.Word=s.extend({init:function(c,f){this.high=c,this.low=f}}),d.WordArray=s.extend({init:function(c,f){c=this.words=c||[],f!=a?this.sigBytes=f:this.sigBytes=c.length*8},toX32:function(){for(var c=this.words,f=c.length,y=[],u=0;u<f;u++){var h=c[u];y.push(h.high),y.push(h.low)}return l.create(y,this.sigBytes)},clone:function(){for(var c=s.clone.call(this),f=c.words=this.words.slice(0),y=f.length,u=0;u<y;u++)f[u]=f[u].clone();return c}})}(),t})}(Hn)),Hn.exports}var Vn={exports:{}},vr;function Ts(){return vr||(vr=1,function(e,o){(function(t,a){e.exports=a(me())})(de,function(t){return function(){if(typeof ArrayBuffer=="function"){var a=t,r=a.lib,i=r.WordArray,s=i.init,l=i.init=function(d){if(d instanceof ArrayBuffer&&(d=new Uint8Array(d)),(d instanceof Int8Array||typeof Uint8ClampedArray<"u"&&d instanceof Uint8ClampedArray||d instanceof Int16Array||d instanceof Uint16Array||d instanceof Int32Array||d instanceof Uint32Array||d instanceof Float32Array||d instanceof Float64Array)&&(d=new Uint8Array(d.buffer,d.byteOffset,d.byteLength)),d instanceof Uint8Array){for(var c=d.byteLength,f=[],y=0;y<c;y++)f[y>>>2]|=d[y]<<24-y%4*8;s.call(this,f,c)}else s.apply(this,arguments)};l.prototype=i}}(),t.lib.WordArray})}(Vn)),Vn.exports}var jn={exports:{}},Sr;function Bs(){return Sr||(Sr=1,function(e,o){(function(t,a){e.exports=a(me())})(de,function(t){return function(){var a=t,r=a.lib,i=r.WordArray,s=a.enc;s.Utf16=s.Utf16BE={stringify:function(d){for(var c=d.words,f=d.sigBytes,y=[],u=0;u<f;u+=2){var h=c[u>>>2]>>>16-u%4*8&65535;y.push(String.fromCharCode(h))}return y.join("")},parse:function(d){for(var c=d.length,f=[],y=0;y<c;y++)f[y>>>1]|=d.charCodeAt(y)<<16-y%2*16;return i.create(f,c*2)}},s.Utf16LE={stringify:function(d){for(var c=d.words,f=d.sigBytes,y=[],u=0;u<f;u+=2){var h=l(c[u>>>2]>>>16-u%4*8&65535);y.push(String.fromCharCode(h))}return y.join("")},parse:function(d){for(var c=d.length,f=[],y=0;y<c;y++)f[y>>>1]|=l(d.charCodeAt(y)<<16-y%2*16);return i.create(f,c*2)}};function l(d){return d<<8&4278255360|d>>>8&16711935}}(),t.enc.Utf16})}(jn)),jn.exports}var Wn={exports:{}},Cr;function zt(){return Cr||(Cr=1,function(e,o){(function(t,a){e.exports=a(me())})(de,function(t){return function(){var a=t,r=a.lib,i=r.WordArray,s=a.enc;s.Base64={stringify:function(d){var c=d.words,f=d.sigBytes,y=this._map;d.clamp();for(var u=[],h=0;h<f;h+=3)for(var m=c[h>>>2]>>>24-h%4*8&255,g=c[h+1>>>2]>>>24-(h+1)%4*8&255,v=c[h+2>>>2]>>>24-(h+2)%4*8&255,B=m<<16|g<<8|v,p=0;p<4&&h+p*.75<f;p++)u.push(y.charAt(B>>>6*(3-p)&63));var b=y.charAt(64);if(b)for(;u.length%4;)u.push(b);return u.join("")},parse:function(d){var c=d.length,f=this._map,y=this._reverseMap;if(!y){y=this._reverseMap=[];for(var u=0;u<f.length;u++)y[f.charCodeAt(u)]=u}var h=f.charAt(64);if(h){var m=d.indexOf(h);m!==-1&&(c=m)}return l(d,c,y)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function l(d,c,f){for(var y=[],u=0,h=0;h<c;h++)if(h%4){var m=f[d.charCodeAt(h-1)]<<h%4*2,g=f[d.charCodeAt(h)]>>>6-h%4*2,v=m|g;y[u>>>2]|=v<<24-u%4*8,u++}return i.create(y,u)}}(),t.enc.Base64})}(Wn)),Wn.exports}var Un={exports:{}},wr;function Es(){return wr||(wr=1,function(e,o){(function(t,a){e.exports=a(me())})(de,function(t){return function(){var a=t,r=a.lib,i=r.WordArray,s=a.enc;s.Base64url={stringify:function(d,c=!0){var f=d.words,y=d.sigBytes,u=c?this._safe_map:this._map;d.clamp();for(var h=[],m=0;m<y;m+=3)for(var g=f[m>>>2]>>>24-m%4*8&255,v=f[m+1>>>2]>>>24-(m+1)%4*8&255,B=f[m+2>>>2]>>>24-(m+2)%4*8&255,p=g<<16|v<<8|B,b=0;b<4&&m+b*.75<y;b++)h.push(u.charAt(p>>>6*(3-b)&63));var x=u.charAt(64);if(x)for(;h.length%4;)h.push(x);return h.join("")},parse:function(d,c=!0){var f=d.length,y=c?this._safe_map:this._map,u=this._reverseMap;if(!u){u=this._reverseMap=[];for(var h=0;h<y.length;h++)u[y.charCodeAt(h)]=h}var m=y.charAt(64);if(m){var g=d.indexOf(m);g!==-1&&(f=g)}return l(d,f,u)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function l(d,c,f){for(var y=[],u=0,h=0;h<c;h++)if(h%4){var m=f[d.charCodeAt(h-1)]<<h%4*2,g=f[d.charCodeAt(h)]>>>6-h%4*2,v=m|g;y[u>>>2]|=v<<24-u%4*8,u++}return i.create(y,u)}}(),t.enc.Base64url})}(Un)),Un.exports}var Gn={exports:{}},Ar;function Mt(){return Ar||(Ar=1,function(e,o){(function(t,a){e.exports=a(me())})(de,function(t){return function(a){var r=t,i=r.lib,s=i.WordArray,l=i.Hasher,d=r.algo,c=[];(function(){for(var g=0;g<64;g++)c[g]=a.abs(a.sin(g+1))*4294967296|0})();var f=d.MD5=l.extend({_doReset:function(){this._hash=new s.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(g,v){for(var B=0;B<16;B++){var p=v+B,b=g[p];g[p]=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360}var x=this._hash.words,A=g[v+0],k=g[v+1],D=g[v+2],O=g[v+3],N=g[v+4],C=g[v+5],T=g[v+6],R=g[v+7],S=g[v+8],E=g[v+9],w=g[v+10],_=g[v+11],z=g[v+12],q=g[v+13],W=g[v+14],$=g[v+15],F=x[0],P=x[1],M=x[2],I=x[3];F=y(F,P,M,I,A,7,c[0]),I=y(I,F,P,M,k,12,c[1]),M=y(M,I,F,P,D,17,c[2]),P=y(P,M,I,F,O,22,c[3]),F=y(F,P,M,I,N,7,c[4]),I=y(I,F,P,M,C,12,c[5]),M=y(M,I,F,P,T,17,c[6]),P=y(P,M,I,F,R,22,c[7]),F=y(F,P,M,I,S,7,c[8]),I=y(I,F,P,M,E,12,c[9]),M=y(M,I,F,P,w,17,c[10]),P=y(P,M,I,F,_,22,c[11]),F=y(F,P,M,I,z,7,c[12]),I=y(I,F,P,M,q,12,c[13]),M=y(M,I,F,P,W,17,c[14]),P=y(P,M,I,F,$,22,c[15]),F=u(F,P,M,I,k,5,c[16]),I=u(I,F,P,M,T,9,c[17]),M=u(M,I,F,P,_,14,c[18]),P=u(P,M,I,F,A,20,c[19]),F=u(F,P,M,I,C,5,c[20]),I=u(I,F,P,M,w,9,c[21]),M=u(M,I,F,P,$,14,c[22]),P=u(P,M,I,F,N,20,c[23]),F=u(F,P,M,I,E,5,c[24]),I=u(I,F,P,M,W,9,c[25]),M=u(M,I,F,P,O,14,c[26]),P=u(P,M,I,F,S,20,c[27]),F=u(F,P,M,I,q,5,c[28]),I=u(I,F,P,M,D,9,c[29]),M=u(M,I,F,P,R,14,c[30]),P=u(P,M,I,F,z,20,c[31]),F=h(F,P,M,I,C,4,c[32]),I=h(I,F,P,M,S,11,c[33]),M=h(M,I,F,P,_,16,c[34]),P=h(P,M,I,F,W,23,c[35]),F=h(F,P,M,I,k,4,c[36]),I=h(I,F,P,M,N,11,c[37]),M=h(M,I,F,P,R,16,c[38]),P=h(P,M,I,F,w,23,c[39]),F=h(F,P,M,I,q,4,c[40]),I=h(I,F,P,M,A,11,c[41]),M=h(M,I,F,P,O,16,c[42]),P=h(P,M,I,F,T,23,c[43]),F=h(F,P,M,I,E,4,c[44]),I=h(I,F,P,M,z,11,c[45]),M=h(M,I,F,P,$,16,c[46]),P=h(P,M,I,F,D,23,c[47]),F=m(F,P,M,I,A,6,c[48]),I=m(I,F,P,M,R,10,c[49]),M=m(M,I,F,P,W,15,c[50]),P=m(P,M,I,F,C,21,c[51]),F=m(F,P,M,I,z,6,c[52]),I=m(I,F,P,M,O,10,c[53]),M=m(M,I,F,P,w,15,c[54]),P=m(P,M,I,F,k,21,c[55]),F=m(F,P,M,I,S,6,c[56]),I=m(I,F,P,M,$,10,c[57]),M=m(M,I,F,P,T,15,c[58]),P=m(P,M,I,F,q,21,c[59]),F=m(F,P,M,I,N,6,c[60]),I=m(I,F,P,M,_,10,c[61]),M=m(M,I,F,P,D,15,c[62]),P=m(P,M,I,F,E,21,c[63]),x[0]=x[0]+F|0,x[1]=x[1]+P|0,x[2]=x[2]+M|0,x[3]=x[3]+I|0},_doFinalize:function(){var g=this._data,v=g.words,B=this._nDataBytes*8,p=g.sigBytes*8;v[p>>>5]|=128<<24-p%32;var b=a.floor(B/4294967296),x=B;v[(p+64>>>9<<4)+15]=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360,v[(p+64>>>9<<4)+14]=(x<<8|x>>>24)&16711935|(x<<24|x>>>8)&4278255360,g.sigBytes=(v.length+1)*4,this._process();for(var A=this._hash,k=A.words,D=0;D<4;D++){var O=k[D];k[D]=(O<<8|O>>>24)&16711935|(O<<24|O>>>8)&4278255360}return A},clone:function(){var g=l.clone.call(this);return g._hash=this._hash.clone(),g}});function y(g,v,B,p,b,x,A){var k=g+(v&B|~v&p)+b+A;return(k<<x|k>>>32-x)+v}function u(g,v,B,p,b,x,A){var k=g+(v&p|B&~p)+b+A;return(k<<x|k>>>32-x)+v}function h(g,v,B,p,b,x,A){var k=g+(v^B^p)+b+A;return(k<<x|k>>>32-x)+v}function m(g,v,B,p,b,x,A){var k=g+(B^(v|~p))+b+A;return(k<<x|k>>>32-x)+v}r.MD5=l._createHelper(f),r.HmacMD5=l._createHmacHelper(f)}(Math),t.MD5})}(Gn)),Gn.exports}var $n={exports:{}},kr;function Zn(){return kr||(kr=1,function(e,o){(function(t,a){e.exports=a(me())})(de,function(t){return function(){var a=t,r=a.lib,i=r.WordArray,s=r.Hasher,l=a.algo,d=[],c=l.SHA1=s.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(f,y){for(var u=this._hash.words,h=u[0],m=u[1],g=u[2],v=u[3],B=u[4],p=0;p<80;p++){if(p<16)d[p]=f[y+p]|0;else{var b=d[p-3]^d[p-8]^d[p-14]^d[p-16];d[p]=b<<1|b>>>31}var x=(h<<5|h>>>27)+B+d[p];p<20?x+=(m&g|~m&v)+1518500249:p<40?x+=(m^g^v)+1859775393:p<60?x+=(m&g|m&v|g&v)-1894007588:x+=(m^g^v)-899497514,B=v,v=g,g=m<<30|m>>>2,m=h,h=x}u[0]=u[0]+h|0,u[1]=u[1]+m|0,u[2]=u[2]+g|0,u[3]=u[3]+v|0,u[4]=u[4]+B|0},_doFinalize:function(){var f=this._data,y=f.words,u=this._nDataBytes*8,h=f.sigBytes*8;return y[h>>>5]|=128<<24-h%32,y[(h+64>>>9<<4)+14]=Math.floor(u/4294967296),y[(h+64>>>9<<4)+15]=u,f.sigBytes=y.length*4,this._process(),this._hash},clone:function(){var f=s.clone.call(this);return f._hash=this._hash.clone(),f}});a.SHA1=s._createHelper(c),a.HmacSHA1=s._createHmacHelper(c)}(),t.SHA1})}($n)),$n.exports}var Yn={exports:{}},Tr;function Br(){return Tr||(Tr=1,function(e,o){(function(t,a){e.exports=a(me())})(de,function(t){return function(a){var r=t,i=r.lib,s=i.WordArray,l=i.Hasher,d=r.algo,c=[],f=[];(function(){function h(B){for(var p=a.sqrt(B),b=2;b<=p;b++)if(!(B%b))return!1;return!0}function m(B){return(B-(B|0))*4294967296|0}for(var g=2,v=0;v<64;)h(g)&&(v<8&&(c[v]=m(a.pow(g,1/2))),f[v]=m(a.pow(g,1/3)),v++),g++})();var y=[],u=d.SHA256=l.extend({_doReset:function(){this._hash=new s.init(c.slice(0))},_doProcessBlock:function(h,m){for(var g=this._hash.words,v=g[0],B=g[1],p=g[2],b=g[3],x=g[4],A=g[5],k=g[6],D=g[7],O=0;O<64;O++){if(O<16)y[O]=h[m+O]|0;else{var N=y[O-15],C=(N<<25|N>>>7)^(N<<14|N>>>18)^N>>>3,T=y[O-2],R=(T<<15|T>>>17)^(T<<13|T>>>19)^T>>>10;y[O]=C+y[O-7]+R+y[O-16]}var S=x&A^~x&k,E=v&B^v&p^B&p,w=(v<<30|v>>>2)^(v<<19|v>>>13)^(v<<10|v>>>22),_=(x<<26|x>>>6)^(x<<21|x>>>11)^(x<<7|x>>>25),z=D+_+S+f[O]+y[O],q=w+E;D=k,k=A,A=x,x=b+z|0,b=p,p=B,B=v,v=z+q|0}g[0]=g[0]+v|0,g[1]=g[1]+B|0,g[2]=g[2]+p|0,g[3]=g[3]+b|0,g[4]=g[4]+x|0,g[5]=g[5]+A|0,g[6]=g[6]+k|0,g[7]=g[7]+D|0},_doFinalize:function(){var h=this._data,m=h.words,g=this._nDataBytes*8,v=h.sigBytes*8;return m[v>>>5]|=128<<24-v%32,m[(v+64>>>9<<4)+14]=a.floor(g/4294967296),m[(v+64>>>9<<4)+15]=g,h.sigBytes=m.length*4,this._process(),this._hash},clone:function(){var h=l.clone.call(this);return h._hash=this._hash.clone(),h}});r.SHA256=l._createHelper(u),r.HmacSHA256=l._createHmacHelper(u)}(Math),t.SHA256})}(Yn)),Yn.exports}var Kn={exports:{}},Er;function Ds(){return Er||(Er=1,function(e,o){(function(t,a,r){e.exports=a(me(),Br())})(de,function(t){return function(){var a=t,r=a.lib,i=r.WordArray,s=a.algo,l=s.SHA256,d=s.SHA224=l.extend({_doReset:function(){this._hash=new i.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var c=l._doFinalize.call(this);return c.sigBytes-=4,c}});a.SHA224=l._createHelper(d),a.HmacSHA224=l._createHmacHelper(d)}(),t.SHA224})}(Kn)),Kn.exports}var Qn={exports:{}},Dr;function Rr(){return Dr||(Dr=1,function(e,o){(function(t,a,r){e.exports=a(me(),cn())})(de,function(t){return function(){var a=t,r=a.lib,i=r.Hasher,s=a.x64,l=s.Word,d=s.WordArray,c=a.algo;function f(){return l.create.apply(l,arguments)}var y=[f(1116352408,3609767458),f(1899447441,602891725),f(3049323471,3964484399),f(3921009573,2173295548),f(961987163,4081628472),f(1508970993,3053834265),f(2453635748,2937671579),f(2870763221,3664609560),f(3624381080,2734883394),f(310598401,1164996542),f(607225278,1323610764),f(1426881987,3590304994),f(1925078388,4068182383),f(2162078206,991336113),f(2614888103,633803317),f(3248222580,3479774868),f(3835390401,2666613458),f(4022224774,944711139),f(264347078,2341262773),f(604807628,2007800933),f(770255983,1495990901),f(1249150122,1856431235),f(1555081692,3175218132),f(1996064986,2198950837),f(2554220882,3999719339),f(2821834349,766784016),f(2952996808,2566594879),f(3210313671,3203337956),f(3336571891,1034457026),f(3584528711,2466948901),f(113926993,3758326383),f(338241895,168717936),f(666307205,1188179964),f(773529912,1546045734),f(1294757372,1522805485),f(1396182291,2643833823),f(1695183700,2343527390),f(1986661051,1014477480),f(2177026350,1206759142),f(2456956037,344077627),f(2730485921,1290863460),f(2820302411,3158454273),f(3259730800,3505952657),f(3345764771,106217008),f(3516065817,3606008344),f(3600352804,1432725776),f(4094571909,1467031594),f(275423344,851169720),f(430227734,3100823752),f(506948616,1363258195),f(659060556,3750685593),f(883997877,3785050280),f(958139571,3318307427),f(1322822218,3812723403),f(1537002063,2003034995),f(1747873779,3602036899),f(1955562222,1575990012),f(2024104815,1125592928),f(2227730452,2716904306),f(2361852424,442776044),f(2428436474,593698344),f(2756734187,3733110249),f(3204031479,2999351573),f(3329325298,3815920427),f(3391569614,3928383900),f(3515267271,566280711),f(3940187606,3454069534),f(4118630271,4000239992),f(116418474,1914138554),f(174292421,2731055270),f(289380356,3203993006),f(460393269,320620315),f(685471733,587496836),f(852142971,1086792851),f(1017036298,365543100),f(1126000580,2618297676),f(1288033470,3409855158),f(1501505948,4234509866),f(1607167915,987167468),f(1816402316,1246189591)],u=[];(function(){for(var m=0;m<80;m++)u[m]=f()})();var h=c.SHA512=i.extend({_doReset:function(){this._hash=new d.init([new l.init(1779033703,4089235720),new l.init(3144134277,2227873595),new l.init(1013904242,4271175723),new l.init(2773480762,1595750129),new l.init(1359893119,2917565137),new l.init(2600822924,725511199),new l.init(528734635,4215389547),new l.init(1541459225,327033209)])},_doProcessBlock:function(m,g){for(var v=this._hash.words,B=v[0],p=v[1],b=v[2],x=v[3],A=v[4],k=v[5],D=v[6],O=v[7],N=B.high,C=B.low,T=p.high,R=p.low,S=b.high,E=b.low,w=x.high,_=x.low,z=A.high,q=A.low,W=k.high,$=k.low,F=D.high,P=D.low,M=O.high,I=O.low,L=N,H=C,Y=T,U=R,ae=S,Q=E,le=w,re=_,K=z,X=q,ne=W,xe=$,we=F,Te=P,$e=M,ze=I,Ie=0;Ie<80;Ie++){var Ae,He,Fe=u[Ie];if(Ie<16)He=Fe.high=m[g+Ie*2]|0,Ae=Fe.low=m[g+Ie*2+1]|0;else{var Ze=u[Ie-15],We=Ze.high,Ve=Ze.low,ut=(We>>>1|Ve<<31)^(We>>>8|Ve<<24)^We>>>7,et=(Ve>>>1|We<<31)^(Ve>>>8|We<<24)^(Ve>>>7|We<<25),tt=u[Ie-2],V=tt.high,Z=tt.low,J=(V>>>19|Z<<13)^(V<<3|Z>>>29)^V>>>6,oe=(Z>>>19|V<<13)^(Z<<3|V>>>29)^(Z>>>6|V<<26),ie=u[Ie-7],te=ie.high,ee=ie.low,fe=u[Ie-16],he=fe.high,ge=fe.low;Ae=et+ee,He=ut+te+(Ae>>>0<et>>>0?1:0),Ae=Ae+oe,He=He+J+(Ae>>>0<oe>>>0?1:0),Ae=Ae+ge,He=He+he+(Ae>>>0<ge>>>0?1:0),Fe.high=He,Fe.low=Ae}var Oe=K&ne^~K&we,Ye=X&xe^~X&Te,yt=L&Y^L&ae^Y&ae,It=H&U^H&Q^U&Q,Cn=(L>>>28|H<<4)^(L<<30|H>>>2)^(L<<25|H>>>7),Ke=(H>>>28|L<<4)^(H<<30|L>>>2)^(H<<25|L>>>7),_t=(K>>>14|X<<18)^(K>>>18|X<<14)^(K<<23|X>>>9),Zt=(X>>>14|K<<18)^(X>>>18|K<<14)^(X<<23|K>>>9),wn=y[Ie],uu=wn.high,zl=wn.low,nt=ze+Zt,Bt=$e+_t+(nt>>>0<ze>>>0?1:0),nt=nt+Ye,Bt=Bt+Oe+(nt>>>0<Ye>>>0?1:0),nt=nt+zl,Bt=Bt+uu+(nt>>>0<zl>>>0?1:0),nt=nt+Ae,Bt=Bt+He+(nt>>>0<Ae>>>0?1:0),Ml=Ke+It,hu=Cn+yt+(Ml>>>0<Ke>>>0?1:0);$e=we,ze=Te,we=ne,Te=xe,ne=K,xe=X,X=re+nt|0,K=le+Bt+(X>>>0<re>>>0?1:0)|0,le=ae,re=Q,ae=Y,Q=U,Y=L,U=H,H=nt+Ml|0,L=Bt+hu+(H>>>0<nt>>>0?1:0)|0}C=B.low=C+H,B.high=N+L+(C>>>0<H>>>0?1:0),R=p.low=R+U,p.high=T+Y+(R>>>0<U>>>0?1:0),E=b.low=E+Q,b.high=S+ae+(E>>>0<Q>>>0?1:0),_=x.low=_+re,x.high=w+le+(_>>>0<re>>>0?1:0),q=A.low=q+X,A.high=z+K+(q>>>0<X>>>0?1:0),$=k.low=$+xe,k.high=W+ne+($>>>0<xe>>>0?1:0),P=D.low=P+Te,D.high=F+we+(P>>>0<Te>>>0?1:0),I=O.low=I+ze,O.high=M+$e+(I>>>0<ze>>>0?1:0)},_doFinalize:function(){var m=this._data,g=m.words,v=this._nDataBytes*8,B=m.sigBytes*8;g[B>>>5]|=128<<24-B%32,g[(B+128>>>10<<5)+30]=Math.floor(v/4294967296),g[(B+128>>>10<<5)+31]=v,m.sigBytes=g.length*4,this._process();var p=this._hash.toX32();return p},clone:function(){var m=i.clone.call(this);return m._hash=this._hash.clone(),m},blockSize:1024/32});a.SHA512=i._createHelper(h),a.HmacSHA512=i._createHmacHelper(h)}(),t.SHA512})}(Qn)),Qn.exports}var Jn={exports:{}},Ir;function Rs(){return Ir||(Ir=1,function(e,o){(function(t,a,r){e.exports=a(me(),cn(),Rr())})(de,function(t){return function(){var a=t,r=a.x64,i=r.Word,s=r.WordArray,l=a.algo,d=l.SHA512,c=l.SHA384=d.extend({_doReset:function(){this._hash=new s.init([new i.init(3418070365,3238371032),new i.init(1654270250,914150663),new i.init(2438529370,812702999),new i.init(355462360,4144912697),new i.init(1731405415,4290775857),new i.init(2394180231,1750603025),new i.init(3675008525,1694076839),new i.init(1203062813,3204075428)])},_doFinalize:function(){var f=d._doFinalize.call(this);return f.sigBytes-=16,f}});a.SHA384=d._createHelper(c),a.HmacSHA384=d._createHmacHelper(c)}(),t.SHA384})}(Jn)),Jn.exports}var Xn={exports:{}},_r;function Is(){return _r||(_r=1,function(e,o){(function(t,a,r){e.exports=a(me(),cn())})(de,function(t){return function(a){var r=t,i=r.lib,s=i.WordArray,l=i.Hasher,d=r.x64,c=d.Word,f=r.algo,y=[],u=[],h=[];(function(){for(var v=1,B=0,p=0;p<24;p++){y[v+5*B]=(p+1)*(p+2)/2%64;var b=B%5,x=(2*v+3*B)%5;v=b,B=x}for(var v=0;v<5;v++)for(var B=0;B<5;B++)u[v+5*B]=B+(2*v+3*B)%5*5;for(var A=1,k=0;k<24;k++){for(var D=0,O=0,N=0;N<7;N++){if(A&1){var C=(1<<N)-1;C<32?O^=1<<C:D^=1<<C-32}A&128?A=A<<1^113:A<<=1}h[k]=c.create(D,O)}})();var m=[];(function(){for(var v=0;v<25;v++)m[v]=c.create()})();var g=f.SHA3=l.extend({cfg:l.cfg.extend({outputLength:512}),_doReset:function(){for(var v=this._state=[],B=0;B<25;B++)v[B]=new c.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(v,B){for(var p=this._state,b=this.blockSize/2,x=0;x<b;x++){var A=v[B+2*x],k=v[B+2*x+1];A=(A<<8|A>>>24)&16711935|(A<<24|A>>>8)&4278255360,k=(k<<8|k>>>24)&16711935|(k<<24|k>>>8)&4278255360;var D=p[x];D.high^=k,D.low^=A}for(var O=0;O<24;O++){for(var N=0;N<5;N++){for(var C=0,T=0,R=0;R<5;R++){var D=p[N+5*R];C^=D.high,T^=D.low}var S=m[N];S.high=C,S.low=T}for(var N=0;N<5;N++)for(var E=m[(N+4)%5],w=m[(N+1)%5],_=w.high,z=w.low,C=E.high^(_<<1|z>>>31),T=E.low^(z<<1|_>>>31),R=0;R<5;R++){var D=p[N+5*R];D.high^=C,D.low^=T}for(var q=1;q<25;q++){var C,T,D=p[q],W=D.high,$=D.low,F=y[q];F<32?(C=W<<F|$>>>32-F,T=$<<F|W>>>32-F):(C=$<<F-32|W>>>64-F,T=W<<F-32|$>>>64-F);var P=m[u[q]];P.high=C,P.low=T}var M=m[0],I=p[0];M.high=I.high,M.low=I.low;for(var N=0;N<5;N++)for(var R=0;R<5;R++){var q=N+5*R,D=p[q],L=m[q],H=m[(N+1)%5+5*R],Y=m[(N+2)%5+5*R];D.high=L.high^~H.high&Y.high,D.low=L.low^~H.low&Y.low}var D=p[0],U=h[O];D.high^=U.high,D.low^=U.low}},_doFinalize:function(){var v=this._data,B=v.words;this._nDataBytes*8;var p=v.sigBytes*8,b=this.blockSize*32;B[p>>>5]|=1<<24-p%32,B[(a.ceil((p+1)/b)*b>>>5)-1]|=128,v.sigBytes=B.length*4,this._process();for(var x=this._state,A=this.cfg.outputLength/8,k=A/8,D=[],O=0;O<k;O++){var N=x[O],C=N.high,T=N.low;C=(C<<8|C>>>24)&16711935|(C<<24|C>>>8)&4278255360,T=(T<<8|T>>>24)&16711935|(T<<24|T>>>8)&4278255360,D.push(T),D.push(C)}return new s.init(D,A)},clone:function(){for(var v=l.clone.call(this),B=v._state=this._state.slice(0),p=0;p<25;p++)B[p]=B[p].clone();return v}});r.SHA3=l._createHelper(g),r.HmacSHA3=l._createHmacHelper(g)}(Math),t.SHA3})}(Xn)),Xn.exports}var eo={exports:{}},Or;function _s(){return Or||(Or=1,function(e,o){(function(t,a){e.exports=a(me())})(de,function(t){/** @preserve
|
|
59
59
|
(c) 2012 by Cédric Mesnil. All rights reserved.
|
|
60
60
|
|
|
61
61
|
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
|
@@ -64,58 +64,58 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
64
64
|
- Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
|
|
65
65
|
|
|
66
66
|
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
67
|
-
*/return function(a){var r=t,i=r.lib,s=i.WordArray,l=i.Hasher,d=r.algo,c=s.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),g=s.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),h=s.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),y=s.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),u=s.create([0,1518500249,1859775393,2400959708,2840853838]),m=s.create([1352829926,1548603684,1836072691,2053994217,0]),f=d.RIPEMD160=l.extend({_doReset:function(){this._hash=s.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(k,D){for(var O=0;O<16;O++){var N=D+O,C=k[N];k[N]=(C<<8|C>>>24)&16711935|(C<<24|C>>>8)&4278255360}var T=this._hash.words,R=u.words,v=m.words,E=c.words,w=g.words,_=h.words,z=y.words,q,W,$,F,P,M,I,L,H,Y;M=q=T[0],I=W=T[1],L=$=T[2],H=F=T[3],Y=P=T[4];for(var U,O=0;O<80;O+=1)U=q+k[D+E[O]]|0,O<16?U+=S(W,$,F)+R[0]:O<32?U+=B(W,$,F)+R[1]:O<48?U+=p(W,$,F)+R[2]:O<64?U+=b(W,$,F)+R[3]:U+=x(W,$,F)+R[4],U=U|0,U=A(U,_[O]),U=U+P|0,q=P,P=F,F=A($,10),$=W,W=U,U=M+k[D+w[O]]|0,O<16?U+=x(I,L,H)+v[0]:O<32?U+=b(I,L,H)+v[1]:O<48?U+=p(I,L,H)+v[2]:O<64?U+=B(I,L,H)+v[3]:U+=S(I,L,H)+v[4],U=U|0,U=A(U,z[O]),U=U+Y|0,M=Y,Y=H,H=A(L,10),L=I,I=U;U=T[1]+$+H|0,T[1]=T[2]+F+Y|0,T[2]=T[3]+P+M|0,T[3]=T[4]+q+I|0,T[4]=T[0]+W+L|0,T[0]=U},_doFinalize:function(){var k=this._data,D=k.words,O=this._nDataBytes*8,N=k.sigBytes*8;D[N>>>5]|=128<<24-N%32,D[(N+64>>>9<<4)+14]=(O<<8|O>>>24)&16711935|(O<<24|O>>>8)&4278255360,k.sigBytes=(D.length+1)*4,this._process();for(var C=this._hash,T=C.words,R=0;R<5;R++){var v=T[R];T[R]=(v<<8|v>>>24)&16711935|(v<<24|v>>>8)&4278255360}return C},clone:function(){var k=l.clone.call(this);return k._hash=this._hash.clone(),k}});function S(k,D,O){return k^D^O}function B(k,D,O){return k&D|~k&O}function p(k,D,O){return(k|~D)^O}function b(k,D,O){return k&O|D&~O}function x(k,D,O){return k^(D|~O)}function A(k,D){return k<<D|k>>>32-D}r.RIPEMD160=l._createHelper(f),r.HmacRIPEMD160=l._createHmacHelper(f)}(),t.RIPEMD160})}(Xn)),Xn.exports}var eo={exports:{}},Dr;function to(){return Dr||(Dr=1,function(e,o){(function(t,a){e.exports=a(me())})(de,function(t){(function(){var a=t,r=a.lib,i=r.Base,s=a.enc,l=s.Utf8,d=a.algo;d.HMAC=i.extend({init:function(c,g){c=this._hasher=new c.init,typeof g=="string"&&(g=l.parse(g));var h=c.blockSize,y=h*4;g.sigBytes>y&&(g=c.finalize(g)),g.clamp();for(var u=this._oKey=g.clone(),m=this._iKey=g.clone(),f=u.words,S=m.words,B=0;B<h;B++)f[B]^=1549556828,S[B]^=909522486;u.sigBytes=m.sigBytes=y,this.reset()},reset:function(){var c=this._hasher;c.reset(),c.update(this._iKey)},update:function(c){return this._hasher.update(c),this},finalize:function(c){var g=this._hasher,h=g.finalize(c);g.reset();var y=g.finalize(this._oKey.clone().concat(h));return y}})})()})}(eo)),eo.exports}var no={exports:{}},Rr;function xs(){return Rr||(Rr=1,function(e,o){(function(t,a,r){e.exports=a(me(),$n(),to())})(de,function(t){return function(){var a=t,r=a.lib,i=r.Base,s=r.WordArray,l=a.algo,d=l.SHA1,c=l.HMAC,g=l.PBKDF2=i.extend({cfg:i.extend({keySize:128/32,hasher:d,iterations:1}),init:function(h){this.cfg=this.cfg.extend(h)},compute:function(h,y){for(var u=this.cfg,m=c.create(u.hasher,h),f=s.create(),S=s.create([1]),B=f.words,p=S.words,b=u.keySize,x=u.iterations;B.length<b;){var A=m.update(y).finalize(S);m.reset();for(var k=A.words,D=k.length,O=A,N=1;N<x;N++){O=m.finalize(O),m.reset();for(var C=O.words,T=0;T<D;T++)k[T]^=C[T]}f.concat(A),p[0]++}return f.sigBytes=b*4,f}});a.PBKDF2=function(h,y,u){return g.create(u).compute(h,y)}}(),t.PBKDF2})}(no)),no.exports}var oo={exports:{}},Ir;function Dt(){return Ir||(Ir=1,function(e,o){(function(t,a,r){e.exports=a(me(),$n(),to())})(de,function(t){return function(){var a=t,r=a.lib,i=r.Base,s=r.WordArray,l=a.algo,d=l.MD5,c=l.EvpKDF=i.extend({cfg:i.extend({keySize:128/32,hasher:d,iterations:1}),init:function(g){this.cfg=this.cfg.extend(g)},compute:function(g,h){for(var y,u=this.cfg,m=u.hasher.create(),f=s.create(),S=f.words,B=u.keySize,p=u.iterations;S.length<B;){y&&m.update(y),y=m.update(g).finalize(h),m.reset();for(var b=1;b<p;b++)y=m.finalize(y),m.reset();f.concat(y)}return f.sigBytes=B*4,f}});a.EvpKDF=function(g,h,y){return c.create(y).compute(g,h)}}(),t.EvpKDF})}(oo)),oo.exports}var ao={exports:{}},_r;function Pe(){return _r||(_r=1,function(e,o){(function(t,a,r){e.exports=a(me(),Dt())})(de,function(t){t.lib.Cipher||function(a){var r=t,i=r.lib,s=i.Base,l=i.WordArray,d=i.BufferedBlockAlgorithm,c=r.enc;c.Utf8;var g=c.Base64,h=r.algo,y=h.EvpKDF,u=i.Cipher=d.extend({cfg:s.extend(),createEncryptor:function(C,T){return this.create(this._ENC_XFORM_MODE,C,T)},createDecryptor:function(C,T){return this.create(this._DEC_XFORM_MODE,C,T)},init:function(C,T,R){this.cfg=this.cfg.extend(R),this._xformMode=C,this._key=T,this.reset()},reset:function(){d.reset.call(this),this._doReset()},process:function(C){return this._append(C),this._process()},finalize:function(C){C&&this._append(C);var T=this._doFinalize();return T},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function C(T){return typeof T=="string"?N:k}return function(T){return{encrypt:function(R,v,E){return C(v).encrypt(T,R,v,E)},decrypt:function(R,v,E){return C(v).decrypt(T,R,v,E)}}}}()});i.StreamCipher=u.extend({_doFinalize:function(){var C=this._process(!0);return C},blockSize:1});var m=r.mode={},f=i.BlockCipherMode=s.extend({createEncryptor:function(C,T){return this.Encryptor.create(C,T)},createDecryptor:function(C,T){return this.Decryptor.create(C,T)},init:function(C,T){this._cipher=C,this._iv=T}}),S=m.CBC=function(){var C=f.extend();C.Encryptor=C.extend({processBlock:function(R,v){var E=this._cipher,w=E.blockSize;T.call(this,R,v,w),E.encryptBlock(R,v),this._prevBlock=R.slice(v,v+w)}}),C.Decryptor=C.extend({processBlock:function(R,v){var E=this._cipher,w=E.blockSize,_=R.slice(v,v+w);E.decryptBlock(R,v),T.call(this,R,v,w),this._prevBlock=_}});function T(R,v,E){var w,_=this._iv;_?(w=_,this._iv=a):w=this._prevBlock;for(var z=0;z<E;z++)R[v+z]^=w[z]}return C}(),B=r.pad={},p=B.Pkcs7={pad:function(C,T){for(var R=T*4,v=R-C.sigBytes%R,E=v<<24|v<<16|v<<8|v,w=[],_=0;_<v;_+=4)w.push(E);var z=l.create(w,v);C.concat(z)},unpad:function(C){var T=C.words[C.sigBytes-1>>>2]&255;C.sigBytes-=T}};i.BlockCipher=u.extend({cfg:u.cfg.extend({mode:S,padding:p}),reset:function(){var C;u.reset.call(this);var T=this.cfg,R=T.iv,v=T.mode;this._xformMode==this._ENC_XFORM_MODE?C=v.createEncryptor:(C=v.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==C?this._mode.init(this,R&&R.words):(this._mode=C.call(v,this,R&&R.words),this._mode.__creator=C)},_doProcessBlock:function(C,T){this._mode.processBlock(C,T)},_doFinalize:function(){var C,T=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(T.pad(this._data,this.blockSize),C=this._process(!0)):(C=this._process(!0),T.unpad(C)),C},blockSize:128/32});var b=i.CipherParams=s.extend({init:function(C){this.mixIn(C)},toString:function(C){return(C||this.formatter).stringify(this)}}),x=r.format={},A=x.OpenSSL={stringify:function(C){var T,R=C.ciphertext,v=C.salt;return v?T=l.create([1398893684,1701076831]).concat(v).concat(R):T=R,T.toString(g)},parse:function(C){var T,R=g.parse(C),v=R.words;return v[0]==1398893684&&v[1]==1701076831&&(T=l.create(v.slice(2,4)),v.splice(0,4),R.sigBytes-=16),b.create({ciphertext:R,salt:T})}},k=i.SerializableCipher=s.extend({cfg:s.extend({format:A}),encrypt:function(C,T,R,v){v=this.cfg.extend(v);var E=C.createEncryptor(R,v),w=E.finalize(T),_=E.cfg;return b.create({ciphertext:w,key:R,iv:_.iv,algorithm:C,mode:_.mode,padding:_.padding,blockSize:C.blockSize,formatter:v.format})},decrypt:function(C,T,R,v){v=this.cfg.extend(v),T=this._parse(T,v.format);var E=C.createDecryptor(R,v).finalize(T.ciphertext);return E},_parse:function(C,T){return typeof C=="string"?T.parse(C,this):C}}),D=r.kdf={},O=D.OpenSSL={execute:function(C,T,R,v){v||(v=l.random(64/8));var E=y.create({keySize:T+R}).compute(C,v),w=l.create(E.words.slice(T),R*4);return E.sigBytes=T*4,b.create({key:E,iv:w,salt:v})}},N=i.PasswordBasedCipher=k.extend({cfg:k.cfg.extend({kdf:O}),encrypt:function(C,T,R,v){v=this.cfg.extend(v);var E=v.kdf.execute(R,C.keySize,C.ivSize);v.iv=E.iv;var w=k.encrypt.call(this,C,T,E.key,v);return w.mixIn(E),w},decrypt:function(C,T,R,v){v=this.cfg.extend(v),T=this._parse(T,v.format);var E=v.kdf.execute(R,C.keySize,C.ivSize,T.salt);v.iv=E.iv;var w=k.decrypt.call(this,C,T,E.key,v);return w}})}()})}(ao)),ao.exports}var ro={exports:{}},Or;function ps(){return Or||(Or=1,function(e,o){(function(t,a,r){e.exports=a(me(),Pe())})(de,function(t){return t.mode.CFB=function(){var a=t.lib.BlockCipherMode.extend();a.Encryptor=a.extend({processBlock:function(i,s){var l=this._cipher,d=l.blockSize;r.call(this,i,s,d,l),this._prevBlock=i.slice(s,s+d)}}),a.Decryptor=a.extend({processBlock:function(i,s){var l=this._cipher,d=l.blockSize,c=i.slice(s,s+d);r.call(this,i,s,d,l),this._prevBlock=c}});function r(i,s,l,d){var c,g=this._iv;g?(c=g.slice(0),this._iv=void 0):c=this._prevBlock,d.encryptBlock(c,0);for(var h=0;h<l;h++)i[s+h]^=c[h]}return a}(),t.mode.CFB})}(ro)),ro.exports}var io={exports:{}},Lr;function bs(){return Lr||(Lr=1,function(e,o){(function(t,a,r){e.exports=a(me(),Pe())})(de,function(t){return t.mode.CTR=function(){var a=t.lib.BlockCipherMode.extend(),r=a.Encryptor=a.extend({processBlock:function(i,s){var l=this._cipher,d=l.blockSize,c=this._iv,g=this._counter;c&&(g=this._counter=c.slice(0),this._iv=void 0);var h=g.slice(0);l.encryptBlock(h,0),g[d-1]=g[d-1]+1|0;for(var y=0;y<d;y++)i[s+y]^=h[y]}});return a.Decryptor=r,a}(),t.mode.CTR})}(io)),io.exports}var lo={exports:{}},Nr;function vs(){return Nr||(Nr=1,function(e,o){(function(t,a,r){e.exports=a(me(),Pe())})(de,function(t){/** @preserve
|
|
67
|
+
*/return function(a){var r=t,i=r.lib,s=i.WordArray,l=i.Hasher,d=r.algo,c=s.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),f=s.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),y=s.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),u=s.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),h=s.create([0,1518500249,1859775393,2400959708,2840853838]),m=s.create([1352829926,1548603684,1836072691,2053994217,0]),g=d.RIPEMD160=l.extend({_doReset:function(){this._hash=s.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(k,D){for(var O=0;O<16;O++){var N=D+O,C=k[N];k[N]=(C<<8|C>>>24)&16711935|(C<<24|C>>>8)&4278255360}var T=this._hash.words,R=h.words,S=m.words,E=c.words,w=f.words,_=y.words,z=u.words,q,W,$,F,P,M,I,L,H,Y;M=q=T[0],I=W=T[1],L=$=T[2],H=F=T[3],Y=P=T[4];for(var U,O=0;O<80;O+=1)U=q+k[D+E[O]]|0,O<16?U+=v(W,$,F)+R[0]:O<32?U+=B(W,$,F)+R[1]:O<48?U+=p(W,$,F)+R[2]:O<64?U+=b(W,$,F)+R[3]:U+=x(W,$,F)+R[4],U=U|0,U=A(U,_[O]),U=U+P|0,q=P,P=F,F=A($,10),$=W,W=U,U=M+k[D+w[O]]|0,O<16?U+=x(I,L,H)+S[0]:O<32?U+=b(I,L,H)+S[1]:O<48?U+=p(I,L,H)+S[2]:O<64?U+=B(I,L,H)+S[3]:U+=v(I,L,H)+S[4],U=U|0,U=A(U,z[O]),U=U+Y|0,M=Y,Y=H,H=A(L,10),L=I,I=U;U=T[1]+$+H|0,T[1]=T[2]+F+Y|0,T[2]=T[3]+P+M|0,T[3]=T[4]+q+I|0,T[4]=T[0]+W+L|0,T[0]=U},_doFinalize:function(){var k=this._data,D=k.words,O=this._nDataBytes*8,N=k.sigBytes*8;D[N>>>5]|=128<<24-N%32,D[(N+64>>>9<<4)+14]=(O<<8|O>>>24)&16711935|(O<<24|O>>>8)&4278255360,k.sigBytes=(D.length+1)*4,this._process();for(var C=this._hash,T=C.words,R=0;R<5;R++){var S=T[R];T[R]=(S<<8|S>>>24)&16711935|(S<<24|S>>>8)&4278255360}return C},clone:function(){var k=l.clone.call(this);return k._hash=this._hash.clone(),k}});function v(k,D,O){return k^D^O}function B(k,D,O){return k&D|~k&O}function p(k,D,O){return(k|~D)^O}function b(k,D,O){return k&O|D&~O}function x(k,D,O){return k^(D|~O)}function A(k,D){return k<<D|k>>>32-D}r.RIPEMD160=l._createHelper(g),r.HmacRIPEMD160=l._createHmacHelper(g)}(),t.RIPEMD160})}(eo)),eo.exports}var to={exports:{}},Lr;function no(){return Lr||(Lr=1,function(e,o){(function(t,a){e.exports=a(me())})(de,function(t){(function(){var a=t,r=a.lib,i=r.Base,s=a.enc,l=s.Utf8,d=a.algo;d.HMAC=i.extend({init:function(c,f){c=this._hasher=new c.init,typeof f=="string"&&(f=l.parse(f));var y=c.blockSize,u=y*4;f.sigBytes>u&&(f=c.finalize(f)),f.clamp();for(var h=this._oKey=f.clone(),m=this._iKey=f.clone(),g=h.words,v=m.words,B=0;B<y;B++)g[B]^=1549556828,v[B]^=909522486;h.sigBytes=m.sigBytes=u,this.reset()},reset:function(){var c=this._hasher;c.reset(),c.update(this._iKey)},update:function(c){return this._hasher.update(c),this},finalize:function(c){var f=this._hasher,y=f.finalize(c);f.reset();var u=f.finalize(this._oKey.clone().concat(y));return u}})})()})}(to)),to.exports}var oo={exports:{}},Nr;function Os(){return Nr||(Nr=1,function(e,o){(function(t,a,r){e.exports=a(me(),Zn(),no())})(de,function(t){return function(){var a=t,r=a.lib,i=r.Base,s=r.WordArray,l=a.algo,d=l.SHA1,c=l.HMAC,f=l.PBKDF2=i.extend({cfg:i.extend({keySize:128/32,hasher:d,iterations:1}),init:function(y){this.cfg=this.cfg.extend(y)},compute:function(y,u){for(var h=this.cfg,m=c.create(h.hasher,y),g=s.create(),v=s.create([1]),B=g.words,p=v.words,b=h.keySize,x=h.iterations;B.length<b;){var A=m.update(u).finalize(v);m.reset();for(var k=A.words,D=k.length,O=A,N=1;N<x;N++){O=m.finalize(O),m.reset();for(var C=O.words,T=0;T<D;T++)k[T]^=C[T]}g.concat(A),p[0]++}return g.sigBytes=b*4,g}});a.PBKDF2=function(y,u,h){return f.create(h).compute(y,u)}}(),t.PBKDF2})}(oo)),oo.exports}var ao={exports:{}},Fr;function Dt(){return Fr||(Fr=1,function(e,o){(function(t,a,r){e.exports=a(me(),Zn(),no())})(de,function(t){return function(){var a=t,r=a.lib,i=r.Base,s=r.WordArray,l=a.algo,d=l.MD5,c=l.EvpKDF=i.extend({cfg:i.extend({keySize:128/32,hasher:d,iterations:1}),init:function(f){this.cfg=this.cfg.extend(f)},compute:function(f,y){for(var u,h=this.cfg,m=h.hasher.create(),g=s.create(),v=g.words,B=h.keySize,p=h.iterations;v.length<B;){u&&m.update(u),u=m.update(f).finalize(y),m.reset();for(var b=1;b<p;b++)u=m.finalize(u),m.reset();g.concat(u)}return g.sigBytes=B*4,g}});a.EvpKDF=function(f,y,u){return c.create(u).compute(f,y)}}(),t.EvpKDF})}(ao)),ao.exports}var ro={exports:{}},zr;function qe(){return zr||(zr=1,function(e,o){(function(t,a,r){e.exports=a(me(),Dt())})(de,function(t){t.lib.Cipher||function(a){var r=t,i=r.lib,s=i.Base,l=i.WordArray,d=i.BufferedBlockAlgorithm,c=r.enc;c.Utf8;var f=c.Base64,y=r.algo,u=y.EvpKDF,h=i.Cipher=d.extend({cfg:s.extend(),createEncryptor:function(C,T){return this.create(this._ENC_XFORM_MODE,C,T)},createDecryptor:function(C,T){return this.create(this._DEC_XFORM_MODE,C,T)},init:function(C,T,R){this.cfg=this.cfg.extend(R),this._xformMode=C,this._key=T,this.reset()},reset:function(){d.reset.call(this),this._doReset()},process:function(C){return this._append(C),this._process()},finalize:function(C){C&&this._append(C);var T=this._doFinalize();return T},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function C(T){return typeof T=="string"?N:k}return function(T){return{encrypt:function(R,S,E){return C(S).encrypt(T,R,S,E)},decrypt:function(R,S,E){return C(S).decrypt(T,R,S,E)}}}}()});i.StreamCipher=h.extend({_doFinalize:function(){var C=this._process(!0);return C},blockSize:1});var m=r.mode={},g=i.BlockCipherMode=s.extend({createEncryptor:function(C,T){return this.Encryptor.create(C,T)},createDecryptor:function(C,T){return this.Decryptor.create(C,T)},init:function(C,T){this._cipher=C,this._iv=T}}),v=m.CBC=function(){var C=g.extend();C.Encryptor=C.extend({processBlock:function(R,S){var E=this._cipher,w=E.blockSize;T.call(this,R,S,w),E.encryptBlock(R,S),this._prevBlock=R.slice(S,S+w)}}),C.Decryptor=C.extend({processBlock:function(R,S){var E=this._cipher,w=E.blockSize,_=R.slice(S,S+w);E.decryptBlock(R,S),T.call(this,R,S,w),this._prevBlock=_}});function T(R,S,E){var w,_=this._iv;_?(w=_,this._iv=a):w=this._prevBlock;for(var z=0;z<E;z++)R[S+z]^=w[z]}return C}(),B=r.pad={},p=B.Pkcs7={pad:function(C,T){for(var R=T*4,S=R-C.sigBytes%R,E=S<<24|S<<16|S<<8|S,w=[],_=0;_<S;_+=4)w.push(E);var z=l.create(w,S);C.concat(z)},unpad:function(C){var T=C.words[C.sigBytes-1>>>2]&255;C.sigBytes-=T}};i.BlockCipher=h.extend({cfg:h.cfg.extend({mode:v,padding:p}),reset:function(){var C;h.reset.call(this);var T=this.cfg,R=T.iv,S=T.mode;this._xformMode==this._ENC_XFORM_MODE?C=S.createEncryptor:(C=S.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==C?this._mode.init(this,R&&R.words):(this._mode=C.call(S,this,R&&R.words),this._mode.__creator=C)},_doProcessBlock:function(C,T){this._mode.processBlock(C,T)},_doFinalize:function(){var C,T=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(T.pad(this._data,this.blockSize),C=this._process(!0)):(C=this._process(!0),T.unpad(C)),C},blockSize:128/32});var b=i.CipherParams=s.extend({init:function(C){this.mixIn(C)},toString:function(C){return(C||this.formatter).stringify(this)}}),x=r.format={},A=x.OpenSSL={stringify:function(C){var T,R=C.ciphertext,S=C.salt;return S?T=l.create([1398893684,1701076831]).concat(S).concat(R):T=R,T.toString(f)},parse:function(C){var T,R=f.parse(C),S=R.words;return S[0]==1398893684&&S[1]==1701076831&&(T=l.create(S.slice(2,4)),S.splice(0,4),R.sigBytes-=16),b.create({ciphertext:R,salt:T})}},k=i.SerializableCipher=s.extend({cfg:s.extend({format:A}),encrypt:function(C,T,R,S){S=this.cfg.extend(S);var E=C.createEncryptor(R,S),w=E.finalize(T),_=E.cfg;return b.create({ciphertext:w,key:R,iv:_.iv,algorithm:C,mode:_.mode,padding:_.padding,blockSize:C.blockSize,formatter:S.format})},decrypt:function(C,T,R,S){S=this.cfg.extend(S),T=this._parse(T,S.format);var E=C.createDecryptor(R,S).finalize(T.ciphertext);return E},_parse:function(C,T){return typeof C=="string"?T.parse(C,this):C}}),D=r.kdf={},O=D.OpenSSL={execute:function(C,T,R,S){S||(S=l.random(64/8));var E=u.create({keySize:T+R}).compute(C,S),w=l.create(E.words.slice(T),R*4);return E.sigBytes=T*4,b.create({key:E,iv:w,salt:S})}},N=i.PasswordBasedCipher=k.extend({cfg:k.cfg.extend({kdf:O}),encrypt:function(C,T,R,S){S=this.cfg.extend(S);var E=S.kdf.execute(R,C.keySize,C.ivSize);S.iv=E.iv;var w=k.encrypt.call(this,C,T,E.key,S);return w.mixIn(E),w},decrypt:function(C,T,R,S){S=this.cfg.extend(S),T=this._parse(T,S.format);var E=S.kdf.execute(R,C.keySize,C.ivSize,T.salt);S.iv=E.iv;var w=k.decrypt.call(this,C,T,E.key,S);return w}})}()})}(ro)),ro.exports}var io={exports:{}},Mr;function Ls(){return Mr||(Mr=1,function(e,o){(function(t,a,r){e.exports=a(me(),qe())})(de,function(t){return t.mode.CFB=function(){var a=t.lib.BlockCipherMode.extend();a.Encryptor=a.extend({processBlock:function(i,s){var l=this._cipher,d=l.blockSize;r.call(this,i,s,d,l),this._prevBlock=i.slice(s,s+d)}}),a.Decryptor=a.extend({processBlock:function(i,s){var l=this._cipher,d=l.blockSize,c=i.slice(s,s+d);r.call(this,i,s,d,l),this._prevBlock=c}});function r(i,s,l,d){var c,f=this._iv;f?(c=f.slice(0),this._iv=void 0):c=this._prevBlock,d.encryptBlock(c,0);for(var y=0;y<l;y++)i[s+y]^=c[y]}return a}(),t.mode.CFB})}(io)),io.exports}var lo={exports:{}},Pr;function Ns(){return Pr||(Pr=1,function(e,o){(function(t,a,r){e.exports=a(me(),qe())})(de,function(t){return t.mode.CTR=function(){var a=t.lib.BlockCipherMode.extend(),r=a.Encryptor=a.extend({processBlock:function(i,s){var l=this._cipher,d=l.blockSize,c=this._iv,f=this._counter;c&&(f=this._counter=c.slice(0),this._iv=void 0);var y=f.slice(0);l.encryptBlock(y,0),f[d-1]=f[d-1]+1|0;for(var u=0;u<d;u++)i[s+u]^=y[u]}});return a.Decryptor=r,a}(),t.mode.CTR})}(lo)),lo.exports}var so={exports:{}},qr;function Fs(){return qr||(qr=1,function(e,o){(function(t,a,r){e.exports=a(me(),qe())})(de,function(t){/** @preserve
|
|
68
68
|
* Counter block mode compatible with Dr Brian Gladman fileenc.c
|
|
69
69
|
* derived from CryptoJS.mode.CTR
|
|
70
70
|
* Jan Hruby jhruby.web@gmail.com
|
|
71
|
-
*/return t.mode.CTRGladman=function(){var a=t.lib.BlockCipherMode.extend();function r(l){if((l>>24&255)===255){var d=l>>16&255,c=l>>8&255,g=l&255;d===255?(d=0,c===255?(c=0,g===255?g=0:++g):++c):++d,l=0,l+=d<<16,l+=c<<8,l+=g}else l+=1<<24;return l}function i(l){return(l[0]=r(l[0]))===0&&(l[1]=r(l[1])),l}var s=a.Encryptor=a.extend({processBlock:function(l,d){var c=this._cipher,g=c.blockSize,h=this._iv,y=this._counter;h&&(y=this._counter=h.slice(0),this._iv=void 0),i(y);var u=y.slice(0);c.encryptBlock(u,0);for(var m=0;m<g;m++)l[d+m]^=u[m]}});return a.Decryptor=s,a}(),t.mode.CTRGladman})}(lo)),lo.exports}var so={exports:{}},Fr;function Ss(){return Fr||(Fr=1,function(e,o){(function(t,a,r){e.exports=a(me(),Pe())})(de,function(t){return t.mode.OFB=function(){var a=t.lib.BlockCipherMode.extend(),r=a.Encryptor=a.extend({processBlock:function(i,s){var l=this._cipher,d=l.blockSize,c=this._iv,g=this._keystream;c&&(g=this._keystream=c.slice(0),this._iv=void 0),l.encryptBlock(g,0);for(var h=0;h<d;h++)i[s+h]^=g[h]}});return a.Decryptor=r,a}(),t.mode.OFB})}(so)),so.exports}var co={exports:{}},zr;function Cs(){return zr||(zr=1,function(e,o){(function(t,a,r){e.exports=a(me(),Pe())})(de,function(t){return t.mode.ECB=function(){var a=t.lib.BlockCipherMode.extend();return a.Encryptor=a.extend({processBlock:function(r,i){this._cipher.encryptBlock(r,i)}}),a.Decryptor=a.extend({processBlock:function(r,i){this._cipher.decryptBlock(r,i)}}),a}(),t.mode.ECB})}(co)),co.exports}var fo={exports:{}},Mr;function ws(){return Mr||(Mr=1,function(e,o){(function(t,a,r){e.exports=a(me(),Pe())})(de,function(t){return t.pad.AnsiX923={pad:function(a,r){var i=a.sigBytes,s=r*4,l=s-i%s,d=i+l-1;a.clamp(),a.words[d>>>2]|=l<<24-d%4*8,a.sigBytes+=l},unpad:function(a){var r=a.words[a.sigBytes-1>>>2]&255;a.sigBytes-=r}},t.pad.Ansix923})}(fo)),fo.exports}var uo={exports:{}},Pr;function As(){return Pr||(Pr=1,function(e,o){(function(t,a,r){e.exports=a(me(),Pe())})(de,function(t){return t.pad.Iso10126={pad:function(a,r){var i=r*4,s=i-a.sigBytes%i;a.concat(t.lib.WordArray.random(s-1)).concat(t.lib.WordArray.create([s<<24],1))},unpad:function(a){var r=a.words[a.sigBytes-1>>>2]&255;a.sigBytes-=r}},t.pad.Iso10126})}(uo)),uo.exports}var ho={exports:{}},qr;function ks(){return qr||(qr=1,function(e,o){(function(t,a,r){e.exports=a(me(),Pe())})(de,function(t){return t.pad.Iso97971={pad:function(a,r){a.concat(t.lib.WordArray.create([2147483648],1)),t.pad.ZeroPadding.pad(a,r)},unpad:function(a){t.pad.ZeroPadding.unpad(a),a.sigBytes--}},t.pad.Iso97971})}(ho)),ho.exports}var go={exports:{}},Hr;function Ts(){return Hr||(Hr=1,function(e,o){(function(t,a,r){e.exports=a(me(),Pe())})(de,function(t){return t.pad.ZeroPadding={pad:function(a,r){var i=r*4;a.clamp(),a.sigBytes+=i-(a.sigBytes%i||i)},unpad:function(a){for(var r=a.words,i=a.sigBytes-1,i=a.sigBytes-1;i>=0;i--)if(r[i>>>2]>>>24-i%4*8&255){a.sigBytes=i+1;break}}},t.pad.ZeroPadding})}(go)),go.exports}var mo={exports:{}},Vr;function Bs(){return Vr||(Vr=1,function(e,o){(function(t,a,r){e.exports=a(me(),Pe())})(de,function(t){return t.pad.NoPadding={pad:function(){},unpad:function(){}},t.pad.NoPadding})}(mo)),mo.exports}var yo={exports:{}},jr;function Es(){return jr||(jr=1,function(e,o){(function(t,a,r){e.exports=a(me(),Pe())})(de,function(t){return function(a){var r=t,i=r.lib,s=i.CipherParams,l=r.enc,d=l.Hex,c=r.format;c.Hex={stringify:function(g){return g.ciphertext.toString(d)},parse:function(g){var h=d.parse(g);return s.create({ciphertext:h})}}}(),t.format.Hex})}(yo)),yo.exports}var xo={exports:{}},Wr;function Ds(){return Wr||(Wr=1,function(e,o){(function(t,a,r){e.exports=a(me(),zt(),Mt(),Dt(),Pe())})(de,function(t){return function(){var a=t,r=a.lib,i=r.BlockCipher,s=a.algo,l=[],d=[],c=[],g=[],h=[],y=[],u=[],m=[],f=[],S=[];(function(){for(var b=[],x=0;x<256;x++)x<128?b[x]=x<<1:b[x]=x<<1^283;for(var A=0,k=0,x=0;x<256;x++){var D=k^k<<1^k<<2^k<<3^k<<4;D=D>>>8^D&255^99,l[A]=D,d[D]=A;var O=b[A],N=b[O],C=b[N],T=b[D]*257^D*16843008;c[A]=T<<24|T>>>8,g[A]=T<<16|T>>>16,h[A]=T<<8|T>>>24,y[A]=T;var T=C*16843009^N*65537^O*257^A*16843008;u[D]=T<<24|T>>>8,m[D]=T<<16|T>>>16,f[D]=T<<8|T>>>24,S[D]=T,A?(A=O^b[b[b[C^O]]],k^=b[b[k]]):A=k=1}})();var B=[0,1,2,4,8,16,32,64,128,27,54],p=s.AES=i.extend({_doReset:function(){var b;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var x=this._keyPriorReset=this._key,A=x.words,k=x.sigBytes/4,D=this._nRounds=k+6,O=(D+1)*4,N=this._keySchedule=[],C=0;C<O;C++)C<k?N[C]=A[C]:(b=N[C-1],C%k?k>6&&C%k==4&&(b=l[b>>>24]<<24|l[b>>>16&255]<<16|l[b>>>8&255]<<8|l[b&255]):(b=b<<8|b>>>24,b=l[b>>>24]<<24|l[b>>>16&255]<<16|l[b>>>8&255]<<8|l[b&255],b^=B[C/k|0]<<24),N[C]=N[C-k]^b);for(var T=this._invKeySchedule=[],R=0;R<O;R++){var C=O-R;if(R%4)var b=N[C];else var b=N[C-4];R<4||C<=4?T[R]=b:T[R]=u[l[b>>>24]]^m[l[b>>>16&255]]^f[l[b>>>8&255]]^S[l[b&255]]}}},encryptBlock:function(b,x){this._doCryptBlock(b,x,this._keySchedule,c,g,h,y,l)},decryptBlock:function(b,x){var A=b[x+1];b[x+1]=b[x+3],b[x+3]=A,this._doCryptBlock(b,x,this._invKeySchedule,u,m,f,S,d);var A=b[x+1];b[x+1]=b[x+3],b[x+3]=A},_doCryptBlock:function(b,x,A,k,D,O,N,C){for(var T=this._nRounds,R=b[x]^A[0],v=b[x+1]^A[1],E=b[x+2]^A[2],w=b[x+3]^A[3],_=4,z=1;z<T;z++){var q=k[R>>>24]^D[v>>>16&255]^O[E>>>8&255]^N[w&255]^A[_++],W=k[v>>>24]^D[E>>>16&255]^O[w>>>8&255]^N[R&255]^A[_++],$=k[E>>>24]^D[w>>>16&255]^O[R>>>8&255]^N[v&255]^A[_++],F=k[w>>>24]^D[R>>>16&255]^O[v>>>8&255]^N[E&255]^A[_++];R=q,v=W,E=$,w=F}var q=(C[R>>>24]<<24|C[v>>>16&255]<<16|C[E>>>8&255]<<8|C[w&255])^A[_++],W=(C[v>>>24]<<24|C[E>>>16&255]<<16|C[w>>>8&255]<<8|C[R&255])^A[_++],$=(C[E>>>24]<<24|C[w>>>16&255]<<16|C[R>>>8&255]<<8|C[v&255])^A[_++],F=(C[w>>>24]<<24|C[R>>>16&255]<<16|C[v>>>8&255]<<8|C[E&255])^A[_++];b[x]=q,b[x+1]=W,b[x+2]=$,b[x+3]=F},keySize:256/32});a.AES=i._createHelper(p)}(),t.AES})}(xo)),xo.exports}var po={exports:{}},Ur;function Rs(){return Ur||(Ur=1,function(e,o){(function(t,a,r){e.exports=a(me(),zt(),Mt(),Dt(),Pe())})(de,function(t){return function(){var a=t,r=a.lib,i=r.WordArray,s=r.BlockCipher,l=a.algo,d=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],c=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],g=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],h=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],y=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],u=l.DES=s.extend({_doReset:function(){for(var B=this._key,p=B.words,b=[],x=0;x<56;x++){var A=d[x]-1;b[x]=p[A>>>5]>>>31-A%32&1}for(var k=this._subKeys=[],D=0;D<16;D++){for(var O=k[D]=[],N=g[D],x=0;x<24;x++)O[x/6|0]|=b[(c[x]-1+N)%28]<<31-x%6,O[4+(x/6|0)]|=b[28+(c[x+24]-1+N)%28]<<31-x%6;O[0]=O[0]<<1|O[0]>>>31;for(var x=1;x<7;x++)O[x]=O[x]>>>(x-1)*4+3;O[7]=O[7]<<5|O[7]>>>27}for(var C=this._invSubKeys=[],x=0;x<16;x++)C[x]=k[15-x]},encryptBlock:function(B,p){this._doCryptBlock(B,p,this._subKeys)},decryptBlock:function(B,p){this._doCryptBlock(B,p,this._invSubKeys)},_doCryptBlock:function(B,p,b){this._lBlock=B[p],this._rBlock=B[p+1],m.call(this,4,252645135),m.call(this,16,65535),f.call(this,2,858993459),f.call(this,8,16711935),m.call(this,1,1431655765);for(var x=0;x<16;x++){for(var A=b[x],k=this._lBlock,D=this._rBlock,O=0,N=0;N<8;N++)O|=h[N][((D^A[N])&y[N])>>>0];this._lBlock=D,this._rBlock=k^O}var C=this._lBlock;this._lBlock=this._rBlock,this._rBlock=C,m.call(this,1,1431655765),f.call(this,8,16711935),f.call(this,2,858993459),m.call(this,16,65535),m.call(this,4,252645135),B[p]=this._lBlock,B[p+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function m(B,p){var b=(this._lBlock>>>B^this._rBlock)&p;this._rBlock^=b,this._lBlock^=b<<B}function f(B,p){var b=(this._rBlock>>>B^this._lBlock)&p;this._lBlock^=b,this._rBlock^=b<<B}a.DES=s._createHelper(u);var S=l.TripleDES=s.extend({_doReset:function(){var B=this._key,p=B.words;if(p.length!==2&&p.length!==4&&p.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var b=p.slice(0,2),x=p.length<4?p.slice(0,2):p.slice(2,4),A=p.length<6?p.slice(0,2):p.slice(4,6);this._des1=u.createEncryptor(i.create(b)),this._des2=u.createEncryptor(i.create(x)),this._des3=u.createEncryptor(i.create(A))},encryptBlock:function(B,p){this._des1.encryptBlock(B,p),this._des2.decryptBlock(B,p),this._des3.encryptBlock(B,p)},decryptBlock:function(B,p){this._des3.decryptBlock(B,p),this._des2.encryptBlock(B,p),this._des1.decryptBlock(B,p)},keySize:192/32,ivSize:64/32,blockSize:64/32});a.TripleDES=s._createHelper(S)}(),t.TripleDES})}(po)),po.exports}var bo={exports:{}},Gr;function Is(){return Gr||(Gr=1,function(e,o){(function(t,a,r){e.exports=a(me(),zt(),Mt(),Dt(),Pe())})(de,function(t){return function(){var a=t,r=a.lib,i=r.StreamCipher,s=a.algo,l=s.RC4=i.extend({_doReset:function(){for(var g=this._key,h=g.words,y=g.sigBytes,u=this._S=[],m=0;m<256;m++)u[m]=m;for(var m=0,f=0;m<256;m++){var S=m%y,B=h[S>>>2]>>>24-S%4*8&255;f=(f+u[m]+B)%256;var p=u[m];u[m]=u[f],u[f]=p}this._i=this._j=0},_doProcessBlock:function(g,h){g[h]^=d.call(this)},keySize:256/32,ivSize:0});function d(){for(var g=this._S,h=this._i,y=this._j,u=0,m=0;m<4;m++){h=(h+1)%256,y=(y+g[h])%256;var f=g[h];g[h]=g[y],g[y]=f,u|=g[(g[h]+g[y])%256]<<24-m*8}return this._i=h,this._j=y,u}a.RC4=i._createHelper(l);var c=s.RC4Drop=l.extend({cfg:l.cfg.extend({drop:192}),_doReset:function(){l._doReset.call(this);for(var g=this.cfg.drop;g>0;g--)d.call(this)}});a.RC4Drop=i._createHelper(c)}(),t.RC4})}(bo)),bo.exports}var vo={exports:{}},$r;function _s(){return $r||($r=1,function(e,o){(function(t,a,r){e.exports=a(me(),zt(),Mt(),Dt(),Pe())})(de,function(t){return function(){var a=t,r=a.lib,i=r.StreamCipher,s=a.algo,l=[],d=[],c=[],g=s.Rabbit=i.extend({_doReset:function(){for(var y=this._key.words,u=this.cfg.iv,m=0;m<4;m++)y[m]=(y[m]<<8|y[m]>>>24)&16711935|(y[m]<<24|y[m]>>>8)&4278255360;var f=this._X=[y[0],y[3]<<16|y[2]>>>16,y[1],y[0]<<16|y[3]>>>16,y[2],y[1]<<16|y[0]>>>16,y[3],y[2]<<16|y[1]>>>16],S=this._C=[y[2]<<16|y[2]>>>16,y[0]&4294901760|y[1]&65535,y[3]<<16|y[3]>>>16,y[1]&4294901760|y[2]&65535,y[0]<<16|y[0]>>>16,y[2]&4294901760|y[3]&65535,y[1]<<16|y[1]>>>16,y[3]&4294901760|y[0]&65535];this._b=0;for(var m=0;m<4;m++)h.call(this);for(var m=0;m<8;m++)S[m]^=f[m+4&7];if(u){var B=u.words,p=B[0],b=B[1],x=(p<<8|p>>>24)&16711935|(p<<24|p>>>8)&4278255360,A=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360,k=x>>>16|A&4294901760,D=A<<16|x&65535;S[0]^=x,S[1]^=k,S[2]^=A,S[3]^=D,S[4]^=x,S[5]^=k,S[6]^=A,S[7]^=D;for(var m=0;m<4;m++)h.call(this)}},_doProcessBlock:function(y,u){var m=this._X;h.call(this),l[0]=m[0]^m[5]>>>16^m[3]<<16,l[1]=m[2]^m[7]>>>16^m[5]<<16,l[2]=m[4]^m[1]>>>16^m[7]<<16,l[3]=m[6]^m[3]>>>16^m[1]<<16;for(var f=0;f<4;f++)l[f]=(l[f]<<8|l[f]>>>24)&16711935|(l[f]<<24|l[f]>>>8)&4278255360,y[u+f]^=l[f]},blockSize:128/32,ivSize:64/32});function h(){for(var y=this._X,u=this._C,m=0;m<8;m++)d[m]=u[m];u[0]=u[0]+1295307597+this._b|0,u[1]=u[1]+3545052371+(u[0]>>>0<d[0]>>>0?1:0)|0,u[2]=u[2]+886263092+(u[1]>>>0<d[1]>>>0?1:0)|0,u[3]=u[3]+1295307597+(u[2]>>>0<d[2]>>>0?1:0)|0,u[4]=u[4]+3545052371+(u[3]>>>0<d[3]>>>0?1:0)|0,u[5]=u[5]+886263092+(u[4]>>>0<d[4]>>>0?1:0)|0,u[6]=u[6]+1295307597+(u[5]>>>0<d[5]>>>0?1:0)|0,u[7]=u[7]+3545052371+(u[6]>>>0<d[6]>>>0?1:0)|0,this._b=u[7]>>>0<d[7]>>>0?1:0;for(var m=0;m<8;m++){var f=y[m]+u[m],S=f&65535,B=f>>>16,p=((S*S>>>17)+S*B>>>15)+B*B,b=((f&4294901760)*f|0)+((f&65535)*f|0);c[m]=p^b}y[0]=c[0]+(c[7]<<16|c[7]>>>16)+(c[6]<<16|c[6]>>>16)|0,y[1]=c[1]+(c[0]<<8|c[0]>>>24)+c[7]|0,y[2]=c[2]+(c[1]<<16|c[1]>>>16)+(c[0]<<16|c[0]>>>16)|0,y[3]=c[3]+(c[2]<<8|c[2]>>>24)+c[1]|0,y[4]=c[4]+(c[3]<<16|c[3]>>>16)+(c[2]<<16|c[2]>>>16)|0,y[5]=c[5]+(c[4]<<8|c[4]>>>24)+c[3]|0,y[6]=c[6]+(c[5]<<16|c[5]>>>16)+(c[4]<<16|c[4]>>>16)|0,y[7]=c[7]+(c[6]<<8|c[6]>>>24)+c[5]|0}a.Rabbit=i._createHelper(g)}(),t.Rabbit})}(vo)),vo.exports}var So={exports:{}},Zr;function Os(){return Zr||(Zr=1,function(e,o){(function(t,a,r){e.exports=a(me(),zt(),Mt(),Dt(),Pe())})(de,function(t){return function(){var a=t,r=a.lib,i=r.StreamCipher,s=a.algo,l=[],d=[],c=[],g=s.RabbitLegacy=i.extend({_doReset:function(){var y=this._key.words,u=this.cfg.iv,m=this._X=[y[0],y[3]<<16|y[2]>>>16,y[1],y[0]<<16|y[3]>>>16,y[2],y[1]<<16|y[0]>>>16,y[3],y[2]<<16|y[1]>>>16],f=this._C=[y[2]<<16|y[2]>>>16,y[0]&4294901760|y[1]&65535,y[3]<<16|y[3]>>>16,y[1]&4294901760|y[2]&65535,y[0]<<16|y[0]>>>16,y[2]&4294901760|y[3]&65535,y[1]<<16|y[1]>>>16,y[3]&4294901760|y[0]&65535];this._b=0;for(var S=0;S<4;S++)h.call(this);for(var S=0;S<8;S++)f[S]^=m[S+4&7];if(u){var B=u.words,p=B[0],b=B[1],x=(p<<8|p>>>24)&16711935|(p<<24|p>>>8)&4278255360,A=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360,k=x>>>16|A&4294901760,D=A<<16|x&65535;f[0]^=x,f[1]^=k,f[2]^=A,f[3]^=D,f[4]^=x,f[5]^=k,f[6]^=A,f[7]^=D;for(var S=0;S<4;S++)h.call(this)}},_doProcessBlock:function(y,u){var m=this._X;h.call(this),l[0]=m[0]^m[5]>>>16^m[3]<<16,l[1]=m[2]^m[7]>>>16^m[5]<<16,l[2]=m[4]^m[1]>>>16^m[7]<<16,l[3]=m[6]^m[3]>>>16^m[1]<<16;for(var f=0;f<4;f++)l[f]=(l[f]<<8|l[f]>>>24)&16711935|(l[f]<<24|l[f]>>>8)&4278255360,y[u+f]^=l[f]},blockSize:128/32,ivSize:64/32});function h(){for(var y=this._X,u=this._C,m=0;m<8;m++)d[m]=u[m];u[0]=u[0]+1295307597+this._b|0,u[1]=u[1]+3545052371+(u[0]>>>0<d[0]>>>0?1:0)|0,u[2]=u[2]+886263092+(u[1]>>>0<d[1]>>>0?1:0)|0,u[3]=u[3]+1295307597+(u[2]>>>0<d[2]>>>0?1:0)|0,u[4]=u[4]+3545052371+(u[3]>>>0<d[3]>>>0?1:0)|0,u[5]=u[5]+886263092+(u[4]>>>0<d[4]>>>0?1:0)|0,u[6]=u[6]+1295307597+(u[5]>>>0<d[5]>>>0?1:0)|0,u[7]=u[7]+3545052371+(u[6]>>>0<d[6]>>>0?1:0)|0,this._b=u[7]>>>0<d[7]>>>0?1:0;for(var m=0;m<8;m++){var f=y[m]+u[m],S=f&65535,B=f>>>16,p=((S*S>>>17)+S*B>>>15)+B*B,b=((f&4294901760)*f|0)+((f&65535)*f|0);c[m]=p^b}y[0]=c[0]+(c[7]<<16|c[7]>>>16)+(c[6]<<16|c[6]>>>16)|0,y[1]=c[1]+(c[0]<<8|c[0]>>>24)+c[7]|0,y[2]=c[2]+(c[1]<<16|c[1]>>>16)+(c[0]<<16|c[0]>>>16)|0,y[3]=c[3]+(c[2]<<8|c[2]>>>24)+c[1]|0,y[4]=c[4]+(c[3]<<16|c[3]>>>16)+(c[2]<<16|c[2]>>>16)|0,y[5]=c[5]+(c[4]<<8|c[4]>>>24)+c[3]|0,y[6]=c[6]+(c[5]<<16|c[5]>>>16)+(c[4]<<16|c[4]>>>16)|0,y[7]=c[7]+(c[6]<<8|c[6]>>>24)+c[5]|0}a.RabbitLegacy=i._createHelper(g)}(),t.RabbitLegacy})}(So)),So.exports}(function(e,o){(function(t,a,r){e.exports=a(me(),sn(),ds(),fs(),zt(),us(),Mt(),$n(),Cr(),hs(),kr(),gs(),ms(),ys(),to(),xs(),Dt(),Pe(),ps(),bs(),vs(),Ss(),Cs(),ws(),As(),ks(),Ts(),Bs(),Es(),Ds(),Rs(),Is(),_s(),Os())})(de,function(t){return t})})(ur);var Ls=ur.exports;const Xe=fr(Ls);var Ns="0123456789abcdefghijklmnopqrstuvwxyz";function mt(e){return Ns.charAt(e)}function Fs(e,o){return e&o}function cn(e,o){return e|o}function Yr(e,o){return e^o}function Kr(e,o){return e&~o}function zs(e){if(e==0)return-1;var o=0;return e&65535||(e>>=16,o+=16),e&255||(e>>=8,o+=8),e&15||(e>>=4,o+=4),e&3||(e>>=2,o+=2),e&1||++o,o}function Ms(e){for(var o=0;e!=0;)e&=e-1,++o;return o}var Pt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Qr="=";function dn(e){var o,t,a="";for(o=0;o+3<=e.length;o+=3)t=parseInt(e.substring(o,o+3),16),a+=Pt.charAt(t>>6)+Pt.charAt(t&63);for(o+1==e.length?(t=parseInt(e.substring(o,o+1),16),a+=Pt.charAt(t<<2)):o+2==e.length&&(t=parseInt(e.substring(o,o+2),16),a+=Pt.charAt(t>>2)+Pt.charAt((t&3)<<4));(a.length&3)>0;)a+=Qr;return a}function Jr(e){var o="",t,a=0,r=0;for(t=0;t<e.length&&e.charAt(t)!=Qr;++t){var i=Pt.indexOf(e.charAt(t));i<0||(a==0?(o+=mt(i>>2),r=i&3,a=1):a==1?(o+=mt(r<<2|i>>4),r=i&15,a=2):a==2?(o+=mt(r),o+=mt(i>>2),r=i&3,a=3):(o+=mt(r<<2|i>>4),o+=mt(i&15),a=0))}return a==1&&(o+=mt(r<<2)),o}var qt,Ps={decode:function(e){var o;if(qt===void 0){var t="0123456789ABCDEF",a=` \f
|
|
72
|
-
\r \u2028\u2029`;for(qt={},o=0;o<16;++o)qt[t.charAt(o)]=o;for(t=t.toLowerCase(),o=10;o<16;++o)qt[t.charAt(o)]=o;for(o=0;o<a.length;++o)qt[a.charAt(o)]=-1}var r=[],i=0,s=0;for(o=0;o<e.length;++o){var l=e.charAt(o);if(l=="=")break;if(l=qt[l],l!=-1){if(l===void 0)throw new Error("Illegal character at offset "+o);i|=l,++s>=2?(r[r.length]=i,i=0,s=0):i<<=4}}if(s)throw new Error("Hex encoding incomplete: 4 bits missing");return r}},Rt,
|
|
73
|
-
\r \u2028\u2029`;for(Rt=Object.create(null),o=0;o<64;++o)Rt[t.charAt(o)]=o;for(Rt["-"]=62,Rt._=63,o=0;o<a.length;++o)Rt[a.charAt(o)]=-1}var r=[],i=0,s=0;for(o=0;o<e.length;++o){var l=e.charAt(o);if(l=="=")break;if(l=Rt[l],l!=-1){if(l===void 0)throw new Error("Illegal character at offset "+o);i|=l,++s>=4?(r[r.length]=i>>16,r[r.length]=i>>8&255,r[r.length]=i&255,i=0,s=0):i<<=6}}switch(s){case 1:throw new Error("Base64 encoding incomplete: at least 2 bits missing");case 2:r[r.length]=i>>10;break;case 3:r[r.length]=i>>16,r[r.length]=i>>8&255;break}return r},re:/-----BEGIN [^-]+-----([A-Za-z0-9+\/=\s]+)-----END [^-]+-----|begin-base64[^\n]+\n([A-Za-z0-9+\/=\s]+)====/,unarmor:function(e){var o=
|
|
74
|
-
`;break;default:r+=" "}return r},e.prototype.isASCII=function(o,t){for(var a=o;a<t;++a){var r=this.get(a);if(r<32||r>176)return!1}return!0},e.prototype.parseStringISO=function(o,t){for(var a="",r=o;r<t;++r)a+=String.fromCharCode(this.get(r));return a},e.prototype.parseStringUTF=function(o,t){for(var a="",r=o;r<t;){var i=this.get(r++);i<128?a+=String.fromCharCode(i):i>191&&i<224?a+=String.fromCharCode((i&31)<<6|this.get(r++)&63):a+=String.fromCharCode((i&15)<<12|(this.get(r++)&63)<<6|this.get(r++)&63)}return a},e.prototype.parseStringBMP=function(o,t){for(var a="",r,i,s=o;s<t;)r=this.get(s++),i=this.get(s++),a+=String.fromCharCode(r<<8|i);return a},e.prototype.parseTime=function(o,t,a){var r=this.parseStringISO(o,t),i=(a?
|
|
75
|
-
`}r&&(a=a-256);for(var d=new
|
|
76
|
-
`,l="",d=o+1;d<t;++d){for(var c=this.get(d),
|
|
77
|
-
`;a/=2,r>a&&(t=o+a);for(var s=o;s<t;++s)i+=this.hexByte(this.get(s));return r>a&&(i+=
|
|
78
|
-
`,this.sub!==null){o+=" ";for(var a=0,r=this.sub.length;a<r;++a)t+=this.sub[a].toPrettyString(o)}return t},e.prototype.posStart=function(){return this.stream.pos},e.prototype.posContent=function(){return this.stream.pos+this.header},e.prototype.posEnd=function(){return this.stream.pos+this.header+Math.abs(this.length)},e.prototype.toHexString=function(){return this.stream.hexDump(this.posStart(),this.posEnd(),!0)},e.decodeLength=function(o){var t=o.get(),a=t&127;if(a==t)return a;if(a>6)throw new Error("Length over 48 bits not supported at position "+(o.pos-1));if(a===0)return null;t=0;for(var r=0;r<a;++r)t=t*256+o.get();return t},e.prototype.getHexStringValue=function(){var o=this.toHexString(),t=this.header*2,a=this.length*2;return o.substr(t,a)},e.decode=function(o){var t;o instanceof wo?t=o:t=new wo(o,0);var a=new wo(t),r=new ei(t),i=e.decodeLength(t),s=t.pos,l=s-a.pos,d=null,c=function(){var h=[];if(i!==null){for(var y=s+i;t.pos<y;)h[h.length]=e.decode(t);if(t.pos!=y)throw new Error("Content size is not correct for container starting at offset "+s)}else try{for(;;){var u=e.decode(t);if(u.tag.isEOC())break;h[h.length]=u}i=s-t.pos}catch(m){throw new Error("Exception while decoding undefined length content: "+m)}return h};if(r.tagConstructed)d=c();else if(r.isUniversal()&&(r.tagNumber==3||r.tagNumber==4))try{if(r.tagNumber==3&&t.get()!=0)throw new Error("BIT STRINGs with unused bits cannot encapsulate.");d=c();for(var g=0;g<d.length;++g)if(d[g].tag.isEOC())throw new Error("EOC is not supposed to be actual content.")}catch{d=null}if(d===null){if(i===null)throw new Error("We can't skip over an invalid tag with undefined length at offset "+s);t.pos=s+Math.abs(i)}return new e(a,l,i,r,d)},e}(),ei=function(){function e(o){var t=o.get();if(this.tagClass=t>>6,this.tagConstructed=(t&32)!==0,this.tagNumber=t&31,this.tagNumber==31){var a=new Xt;do t=o.get(),a.mulAdd(128,t&127);while(t&128);this.tagNumber=a.simplify()}}return e.prototype.isUniversal=function(){return this.tagClass===0},e.prototype.isEOC=function(){return this.tagClass===0&&this.tagNumber===0},e}(),vt,js=0xdeadbeefcafe,ti=(js&16777215)==15715070,Ge=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],Ws=(1<<26)/Ge[Ge.length-1],se=function(){function e(o,t,a){o!=null&&(typeof o=="number"?this.fromNumber(o,t,a):t==null&&typeof o!="string"?this.fromString(o,256):this.fromString(o,t))}return e.prototype.toString=function(o){if(this.s<0)return"-"+this.negate().toString(o);var t;if(o==16)t=4;else if(o==8)t=3;else if(o==2)t=1;else if(o==32)t=5;else if(o==4)t=2;else return this.toRadix(o);var a=(1<<t)-1,r,i=!1,s="",l=this.t,d=this.DB-l*this.DB%t;if(l-- >0)for(d<this.DB&&(r=this[l]>>d)>0&&(i=!0,s=mt(r));l>=0;)d<t?(r=(this[l]&(1<<d)-1)<<t-d,r|=this[--l]>>(d+=this.DB-t)):(r=this[l]>>(d-=t)&a,d<=0&&(d+=this.DB,--l)),r>0&&(i=!0),i&&(s+=mt(r));return i?s:"0"},e.prototype.negate=function(){var o=ue();return e.ZERO.subTo(this,o),o},e.prototype.abs=function(){return this.s<0?this.negate():this},e.prototype.compareTo=function(o){var t=this.s-o.s;if(t!=0)return t;var a=this.t;if(t=a-o.t,t!=0)return this.s<0?-t:t;for(;--a>=0;)if((t=this[a]-o[a])!=0)return t;return 0},e.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+un(this[this.t-1]^this.s&this.DM)},e.prototype.mod=function(o){var t=ue();return this.abs().divRemTo(o,null,t),this.s<0&&t.compareTo(e.ZERO)>0&&o.subTo(t,t),t},e.prototype.modPowInt=function(o,t){var a;return o<256||t.isEven()?a=new ni(t):a=new oi(t),this.exp(o,a)},e.prototype.clone=function(){var o=ue();return this.copyTo(o),o},e.prototype.intValue=function(){if(this.s<0){if(this.t==1)return this[0]-this.DV;if(this.t==0)return-1}else{if(this.t==1)return this[0];if(this.t==0)return 0}return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]},e.prototype.byteValue=function(){return this.t==0?this.s:this[0]<<24>>24},e.prototype.shortValue=function(){return this.t==0?this.s:this[0]<<16>>16},e.prototype.signum=function(){return this.s<0?-1:this.t<=0||this.t==1&&this[0]<=0?0:1},e.prototype.toByteArray=function(){var o=this.t,t=[];t[0]=this.s;var a=this.DB-o*this.DB%8,r,i=0;if(o-- >0)for(a<this.DB&&(r=this[o]>>a)!=(this.s&this.DM)>>a&&(t[i++]=r|this.s<<this.DB-a);o>=0;)a<8?(r=(this[o]&(1<<a)-1)<<8-a,r|=this[--o]>>(a+=this.DB-8)):(r=this[o]>>(a-=8)&255,a<=0&&(a+=this.DB,--o)),r&128&&(r|=-256),i==0&&(this.s&128)!=(r&128)&&++i,(i>0||r!=this.s)&&(t[i++]=r);return t},e.prototype.equals=function(o){return this.compareTo(o)==0},e.prototype.min=function(o){return this.compareTo(o)<0?this:o},e.prototype.max=function(o){return this.compareTo(o)>0?this:o},e.prototype.and=function(o){var t=ue();return this.bitwiseTo(o,Fs,t),t},e.prototype.or=function(o){var t=ue();return this.bitwiseTo(o,cn,t),t},e.prototype.xor=function(o){var t=ue();return this.bitwiseTo(o,Yr,t),t},e.prototype.andNot=function(o){var t=ue();return this.bitwiseTo(o,Kr,t),t},e.prototype.not=function(){for(var o=ue(),t=0;t<this.t;++t)o[t]=this.DM&~this[t];return o.t=this.t,o.s=~this.s,o},e.prototype.shiftLeft=function(o){var t=ue();return o<0?this.rShiftTo(-o,t):this.lShiftTo(o,t),t},e.prototype.shiftRight=function(o){var t=ue();return o<0?this.lShiftTo(-o,t):this.rShiftTo(o,t),t},e.prototype.getLowestSetBit=function(){for(var o=0;o<this.t;++o)if(this[o]!=0)return o*this.DB+zs(this[o]);return this.s<0?this.t*this.DB:-1},e.prototype.bitCount=function(){for(var o=0,t=this.s&this.DM,a=0;a<this.t;++a)o+=Ms(this[a]^t);return o},e.prototype.testBit=function(o){var t=Math.floor(o/this.DB);return t>=this.t?this.s!=0:(this[t]&1<<o%this.DB)!=0},e.prototype.setBit=function(o){return this.changeBit(o,cn)},e.prototype.clearBit=function(o){return this.changeBit(o,Kr)},e.prototype.flipBit=function(o){return this.changeBit(o,Yr)},e.prototype.add=function(o){var t=ue();return this.addTo(o,t),t},e.prototype.subtract=function(o){var t=ue();return this.subTo(o,t),t},e.prototype.multiply=function(o){var t=ue();return this.multiplyTo(o,t),t},e.prototype.divide=function(o){var t=ue();return this.divRemTo(o,t,null),t},e.prototype.remainder=function(o){var t=ue();return this.divRemTo(o,null,t),t},e.prototype.divideAndRemainder=function(o){var t=ue(),a=ue();return this.divRemTo(o,t,a),[t,a]},e.prototype.modPow=function(o,t){var a=o.bitLength(),r,i=St(1),s;if(a<=0)return i;a<18?r=1:a<48?r=3:a<144?r=4:a<768?r=5:r=6,a<8?s=new ni(t):t.isEven()?s=new Gs(t):s=new oi(t);var l=[],d=3,c=r-1,g=(1<<r)-1;if(l[1]=s.convert(this),r>1){var h=ue();for(s.sqrTo(l[1],h);d<=g;)l[d]=ue(),s.mulTo(h,l[d-2],l[d]),d+=2}var y=o.t-1,u,m=!0,f=ue(),S;for(a=un(o[y])-1;y>=0;){for(a>=c?u=o[y]>>a-c&g:(u=(o[y]&(1<<a+1)-1)<<c-a,y>0&&(u|=o[y-1]>>this.DB+a-c)),d=r;!(u&1);)u>>=1,--d;if((a-=d)<0&&(a+=this.DB,--y),m)l[u].copyTo(i),m=!1;else{for(;d>1;)s.sqrTo(i,f),s.sqrTo(f,i),d-=2;d>0?s.sqrTo(i,f):(S=i,i=f,f=S),s.mulTo(f,l[u],i)}for(;y>=0&&!(o[y]&1<<a);)s.sqrTo(i,f),S=i,i=f,f=S,--a<0&&(a=this.DB-1,--y)}return s.revert(i)},e.prototype.modInverse=function(o){var t=o.isEven();if(this.isEven()&&t||o.signum()==0)return e.ZERO;for(var a=o.clone(),r=this.clone(),i=St(1),s=St(0),l=St(0),d=St(1);a.signum()!=0;){for(;a.isEven();)a.rShiftTo(1,a),t?((!i.isEven()||!s.isEven())&&(i.addTo(this,i),s.subTo(o,s)),i.rShiftTo(1,i)):s.isEven()||s.subTo(o,s),s.rShiftTo(1,s);for(;r.isEven();)r.rShiftTo(1,r),t?((!l.isEven()||!d.isEven())&&(l.addTo(this,l),d.subTo(o,d)),l.rShiftTo(1,l)):d.isEven()||d.subTo(o,d),d.rShiftTo(1,d);a.compareTo(r)>=0?(a.subTo(r,a),t&&i.subTo(l,i),s.subTo(d,s)):(r.subTo(a,r),t&&l.subTo(i,l),d.subTo(s,d))}if(r.compareTo(e.ONE)!=0)return e.ZERO;if(d.compareTo(o)>=0)return d.subtract(o);if(d.signum()<0)d.addTo(o,d);else return d;return d.signum()<0?d.add(o):d},e.prototype.pow=function(o){return this.exp(o,new Us)},e.prototype.gcd=function(o){var t=this.s<0?this.negate():this.clone(),a=o.s<0?o.negate():o.clone();if(t.compareTo(a)<0){var r=t;t=a,a=r}var i=t.getLowestSetBit(),s=a.getLowestSetBit();if(s<0)return t;for(i<s&&(s=i),s>0&&(t.rShiftTo(s,t),a.rShiftTo(s,a));t.signum()>0;)(i=t.getLowestSetBit())>0&&t.rShiftTo(i,t),(i=a.getLowestSetBit())>0&&a.rShiftTo(i,a),t.compareTo(a)>=0?(t.subTo(a,t),t.rShiftTo(1,t)):(a.subTo(t,a),a.rShiftTo(1,a));return s>0&&a.lShiftTo(s,a),a},e.prototype.isProbablePrime=function(o){var t,a=this.abs();if(a.t==1&&a[0]<=Ge[Ge.length-1]){for(t=0;t<Ge.length;++t)if(a[0]==Ge[t])return!0;return!1}if(a.isEven())return!1;for(t=1;t<Ge.length;){for(var r=Ge[t],i=t+1;i<Ge.length&&r<Ws;)r*=Ge[i++];for(r=a.modInt(r);t<i;)if(r%Ge[t++]==0)return!1}return a.millerRabin(o)},e.prototype.copyTo=function(o){for(var t=this.t-1;t>=0;--t)o[t]=this[t];o.t=this.t,o.s=this.s},e.prototype.fromInt=function(o){this.t=1,this.s=o<0?-1:0,o>0?this[0]=o:o<-1?this[0]=o+this.DV:this.t=0},e.prototype.fromString=function(o,t){var a;if(t==16)a=4;else if(t==8)a=3;else if(t==256)a=8;else if(t==2)a=1;else if(t==32)a=5;else if(t==4)a=2;else{this.fromRadix(o,t);return}this.t=0,this.s=0;for(var r=o.length,i=!1,s=0;--r>=0;){var l=a==8?+o[r]&255:ri(o,r);if(l<0){o.charAt(r)=="-"&&(i=!0);continue}i=!1,s==0?this[this.t++]=l:s+a>this.DB?(this[this.t-1]|=(l&(1<<this.DB-s)-1)<<s,this[this.t++]=l>>this.DB-s):this[this.t-1]|=l<<s,s+=a,s>=this.DB&&(s-=this.DB)}a==8&&+o[0]&128&&(this.s=-1,s>0&&(this[this.t-1]|=(1<<this.DB-s)-1<<s)),this.clamp(),i&&e.ZERO.subTo(this,this)},e.prototype.clamp=function(){for(var o=this.s&this.DM;this.t>0&&this[this.t-1]==o;)--this.t},e.prototype.dlShiftTo=function(o,t){var a;for(a=this.t-1;a>=0;--a)t[a+o]=this[a];for(a=o-1;a>=0;--a)t[a]=0;t.t=this.t+o,t.s=this.s},e.prototype.drShiftTo=function(o,t){for(var a=o;a<this.t;++a)t[a-o]=this[a];t.t=Math.max(this.t-o,0),t.s=this.s},e.prototype.lShiftTo=function(o,t){for(var a=o%this.DB,r=this.DB-a,i=(1<<r)-1,s=Math.floor(o/this.DB),l=this.s<<a&this.DM,d=this.t-1;d>=0;--d)t[d+s+1]=this[d]>>r|l,l=(this[d]&i)<<a;for(var d=s-1;d>=0;--d)t[d]=0;t[s]=l,t.t=this.t+s+1,t.s=this.s,t.clamp()},e.prototype.rShiftTo=function(o,t){t.s=this.s;var a=Math.floor(o/this.DB);if(a>=this.t){t.t=0;return}var r=o%this.DB,i=this.DB-r,s=(1<<r)-1;t[0]=this[a]>>r;for(var l=a+1;l<this.t;++l)t[l-a-1]|=(this[l]&s)<<i,t[l-a]=this[l]>>r;r>0&&(t[this.t-a-1]|=(this.s&s)<<i),t.t=this.t-a,t.clamp()},e.prototype.subTo=function(o,t){for(var a=0,r=0,i=Math.min(o.t,this.t);a<i;)r+=this[a]-o[a],t[a++]=r&this.DM,r>>=this.DB;if(o.t<this.t){for(r-=o.s;a<this.t;)r+=this[a],t[a++]=r&this.DM,r>>=this.DB;r+=this.s}else{for(r+=this.s;a<o.t;)r-=o[a],t[a++]=r&this.DM,r>>=this.DB;r-=o.s}t.s=r<0?-1:0,r<-1?t[a++]=this.DV+r:r>0&&(t[a++]=r),t.t=a,t.clamp()},e.prototype.multiplyTo=function(o,t){var a=this.abs(),r=o.abs(),i=a.t;for(t.t=i+r.t;--i>=0;)t[i]=0;for(i=0;i<r.t;++i)t[i+a.t]=a.am(0,r[i],t,i,0,a.t);t.s=0,t.clamp(),this.s!=o.s&&e.ZERO.subTo(t,t)},e.prototype.squareTo=function(o){for(var t=this.abs(),a=o.t=2*t.t;--a>=0;)o[a]=0;for(a=0;a<t.t-1;++a){var r=t.am(a,t[a],o,2*a,0,1);(o[a+t.t]+=t.am(a+1,2*t[a],o,2*a+1,r,t.t-a-1))>=t.DV&&(o[a+t.t]-=t.DV,o[a+t.t+1]=1)}o.t>0&&(o[o.t-1]+=t.am(a,t[a],o,2*a,0,1)),o.s=0,o.clamp()},e.prototype.divRemTo=function(o,t,a){var r=o.abs();if(!(r.t<=0)){var i=this.abs();if(i.t<r.t){t!=null&&t.fromInt(0),a!=null&&this.copyTo(a);return}a==null&&(a=ue());var s=ue(),l=this.s,d=o.s,c=this.DB-un(r[r.t-1]);c>0?(r.lShiftTo(c,s),i.lShiftTo(c,a)):(r.copyTo(s),i.copyTo(a));var g=s.t,h=s[g-1];if(h!=0){var y=h*(1<<this.F1)+(g>1?s[g-2]>>this.F2:0),u=this.FV/y,m=(1<<this.F1)/y,f=1<<this.F2,S=a.t,B=S-g,p=t??ue();for(s.dlShiftTo(B,p),a.compareTo(p)>=0&&(a[a.t++]=1,a.subTo(p,a)),e.ONE.dlShiftTo(g,p),p.subTo(s,s);s.t<g;)s[s.t++]=0;for(;--B>=0;){var b=a[--S]==h?this.DM:Math.floor(a[S]*u+(a[S-1]+f)*m);if((a[S]+=s.am(0,b,a,B,0,g))<b)for(s.dlShiftTo(B,p),a.subTo(p,a);a[S]<--b;)a.subTo(p,a)}t!=null&&(a.drShiftTo(g,t),l!=d&&e.ZERO.subTo(t,t)),a.t=g,a.clamp(),c>0&&a.rShiftTo(c,a),l<0&&e.ZERO.subTo(a,a)}}},e.prototype.invDigit=function(){if(this.t<1)return 0;var o=this[0];if(!(o&1))return 0;var t=o&3;return t=t*(2-(o&15)*t)&15,t=t*(2-(o&255)*t)&255,t=t*(2-((o&65535)*t&65535))&65535,t=t*(2-o*t%this.DV)%this.DV,t>0?this.DV-t:-t},e.prototype.isEven=function(){return(this.t>0?this[0]&1:this.s)==0},e.prototype.exp=function(o,t){if(o>4294967295||o<1)return e.ONE;var a=ue(),r=ue(),i=t.convert(this),s=un(o)-1;for(i.copyTo(a);--s>=0;)if(t.sqrTo(a,r),(o&1<<s)>0)t.mulTo(r,i,a);else{var l=a;a=r,r=l}return t.revert(a)},e.prototype.chunkSize=function(o){return Math.floor(Math.LN2*this.DB/Math.log(o))},e.prototype.toRadix=function(o){if(o==null&&(o=10),this.signum()==0||o<2||o>36)return"0";var t=this.chunkSize(o),a=Math.pow(o,t),r=St(a),i=ue(),s=ue(),l="";for(this.divRemTo(r,i,s);i.signum()>0;)l=(a+s.intValue()).toString(o).substr(1)+l,i.divRemTo(r,i,s);return s.intValue().toString(o)+l},e.prototype.fromRadix=function(o,t){this.fromInt(0),t==null&&(t=10);for(var a=this.chunkSize(t),r=Math.pow(t,a),i=!1,s=0,l=0,d=0;d<o.length;++d){var c=ri(o,d);if(c<0){o.charAt(d)=="-"&&this.signum()==0&&(i=!0);continue}l=t*l+c,++s>=a&&(this.dMultiply(r),this.dAddOffset(l,0),s=0,l=0)}s>0&&(this.dMultiply(Math.pow(t,s)),this.dAddOffset(l,0)),i&&e.ZERO.subTo(this,this)},e.prototype.fromNumber=function(o,t,a){if(typeof t=="number")if(o<2)this.fromInt(1);else for(this.fromNumber(o,a),this.testBit(o-1)||this.bitwiseTo(e.ONE.shiftLeft(o-1),cn,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(t);)this.dAddOffset(2,0),this.bitLength()>o&&this.subTo(e.ONE.shiftLeft(o-1),this);else{var r=[],i=o&7;r.length=(o>>3)+1,t.nextBytes(r),i>0?r[0]&=(1<<i)-1:r[0]=0,this.fromString(r,256)}},e.prototype.bitwiseTo=function(o,t,a){var r,i,s=Math.min(o.t,this.t);for(r=0;r<s;++r)a[r]=t(this[r],o[r]);if(o.t<this.t){for(i=o.s&this.DM,r=s;r<this.t;++r)a[r]=t(this[r],i);a.t=this.t}else{for(i=this.s&this.DM,r=s;r<o.t;++r)a[r]=t(i,o[r]);a.t=o.t}a.s=t(this.s,o.s),a.clamp()},e.prototype.changeBit=function(o,t){var a=e.ONE.shiftLeft(o);return this.bitwiseTo(a,t,a),a},e.prototype.addTo=function(o,t){for(var a=0,r=0,i=Math.min(o.t,this.t);a<i;)r+=this[a]+o[a],t[a++]=r&this.DM,r>>=this.DB;if(o.t<this.t){for(r+=o.s;a<this.t;)r+=this[a],t[a++]=r&this.DM,r>>=this.DB;r+=this.s}else{for(r+=this.s;a<o.t;)r+=o[a],t[a++]=r&this.DM,r>>=this.DB;r+=o.s}t.s=r<0?-1:0,r>0?t[a++]=r:r<-1&&(t[a++]=this.DV+r),t.t=a,t.clamp()},e.prototype.dMultiply=function(o){this[this.t]=this.am(0,o-1,this,0,0,this.t),++this.t,this.clamp()},e.prototype.dAddOffset=function(o,t){if(o!=0){for(;this.t<=t;)this[this.t++]=0;for(this[t]+=o;this[t]>=this.DV;)this[t]-=this.DV,++t>=this.t&&(this[this.t++]=0),++this[t]}},e.prototype.multiplyLowerTo=function(o,t,a){var r=Math.min(this.t+o.t,t);for(a.s=0,a.t=r;r>0;)a[--r]=0;for(var i=a.t-this.t;r<i;++r)a[r+this.t]=this.am(0,o[r],a,r,0,this.t);for(var i=Math.min(o.t,t);r<i;++r)this.am(0,o[r],a,r,0,t-r);a.clamp()},e.prototype.multiplyUpperTo=function(o,t,a){--t;var r=a.t=this.t+o.t-t;for(a.s=0;--r>=0;)a[r]=0;for(r=Math.max(t-this.t,0);r<o.t;++r)a[this.t+r-t]=this.am(t-r,o[r],a,0,0,this.t+r-t);a.clamp(),a.drShiftTo(1,a)},e.prototype.modInt=function(o){if(o<=0)return 0;var t=this.DV%o,a=this.s<0?o-1:0;if(this.t>0)if(t==0)a=this[0]%o;else for(var r=this.t-1;r>=0;--r)a=(t*a+this[r])%o;return a},e.prototype.millerRabin=function(o){var t=this.subtract(e.ONE),a=t.getLowestSetBit();if(a<=0)return!1;var r=t.shiftRight(a);o=o+1>>1,o>Ge.length&&(o=Ge.length);for(var i=ue(),s=0;s<o;++s){i.fromInt(Ge[Math.floor(Math.random()*Ge.length)]);var l=i.modPow(r,this);if(l.compareTo(e.ONE)!=0&&l.compareTo(t)!=0){for(var d=1;d++<a&&l.compareTo(t)!=0;)if(l=l.modPowInt(2,this),l.compareTo(e.ONE)==0)return!1;if(l.compareTo(t)!=0)return!1}}return!0},e.prototype.square=function(){var o=ue();return this.squareTo(o),o},e.prototype.gcda=function(o,t){var a=this.s<0?this.negate():this.clone(),r=o.s<0?o.negate():o.clone();if(a.compareTo(r)<0){var i=a;a=r,r=i}var s=a.getLowestSetBit(),l=r.getLowestSetBit();if(l<0){t(a);return}s<l&&(l=s),l>0&&(a.rShiftTo(l,a),r.rShiftTo(l,r));var d=function(){(s=a.getLowestSetBit())>0&&a.rShiftTo(s,a),(s=r.getLowestSetBit())>0&&r.rShiftTo(s,r),a.compareTo(r)>=0?(a.subTo(r,a),a.rShiftTo(1,a)):(r.subTo(a,r),r.rShiftTo(1,r)),a.signum()>0?setTimeout(d,0):(l>0&&r.lShiftTo(l,r),setTimeout(function(){t(r)},0))};setTimeout(d,10)},e.prototype.fromNumberAsync=function(o,t,a,r){if(typeof t=="number")if(o<2)this.fromInt(1);else{this.fromNumber(o,a),this.testBit(o-1)||this.bitwiseTo(e.ONE.shiftLeft(o-1),cn,this),this.isEven()&&this.dAddOffset(1,0);var i=this,s=function(){i.dAddOffset(2,0),i.bitLength()>o&&i.subTo(e.ONE.shiftLeft(o-1),i),i.isProbablePrime(t)?setTimeout(function(){r()},0):setTimeout(s,0)};setTimeout(s,0)}else{var l=[],d=o&7;l.length=(o>>3)+1,t.nextBytes(l),d>0?l[0]&=(1<<d)-1:l[0]=0,this.fromString(l,256)}},e}(),Us=function(){function e(){}return e.prototype.convert=function(o){return o},e.prototype.revert=function(o){return o},e.prototype.mulTo=function(o,t,a){o.multiplyTo(t,a)},e.prototype.sqrTo=function(o,t){o.squareTo(t)},e}(),ni=function(){function e(o){this.m=o}return e.prototype.convert=function(o){return o.s<0||o.compareTo(this.m)>=0?o.mod(this.m):o},e.prototype.revert=function(o){return o},e.prototype.reduce=function(o){o.divRemTo(this.m,null,o)},e.prototype.mulTo=function(o,t,a){o.multiplyTo(t,a),this.reduce(a)},e.prototype.sqrTo=function(o,t){o.squareTo(t),this.reduce(t)},e}(),oi=function(){function e(o){this.m=o,this.mp=o.invDigit(),this.mpl=this.mp&32767,this.mph=this.mp>>15,this.um=(1<<o.DB-15)-1,this.mt2=2*o.t}return e.prototype.convert=function(o){var t=ue();return o.abs().dlShiftTo(this.m.t,t),t.divRemTo(this.m,null,t),o.s<0&&t.compareTo(se.ZERO)>0&&this.m.subTo(t,t),t},e.prototype.revert=function(o){var t=ue();return o.copyTo(t),this.reduce(t),t},e.prototype.reduce=function(o){for(;o.t<=this.mt2;)o[o.t++]=0;for(var t=0;t<this.m.t;++t){var a=o[t]&32767,r=a*this.mpl+((a*this.mph+(o[t]>>15)*this.mpl&this.um)<<15)&o.DM;for(a=t+this.m.t,o[a]+=this.m.am(0,r,o,t,0,this.m.t);o[a]>=o.DV;)o[a]-=o.DV,o[++a]++}o.clamp(),o.drShiftTo(this.m.t,o),o.compareTo(this.m)>=0&&o.subTo(this.m,o)},e.prototype.mulTo=function(o,t,a){o.multiplyTo(t,a),this.reduce(a)},e.prototype.sqrTo=function(o,t){o.squareTo(t),this.reduce(t)},e}(),Gs=function(){function e(o){this.m=o,this.r2=ue(),this.q3=ue(),se.ONE.dlShiftTo(2*o.t,this.r2),this.mu=this.r2.divide(o)}return e.prototype.convert=function(o){if(o.s<0||o.t>2*this.m.t)return o.mod(this.m);if(o.compareTo(this.m)<0)return o;var t=ue();return o.copyTo(t),this.reduce(t),t},e.prototype.revert=function(o){return o},e.prototype.reduce=function(o){for(o.drShiftTo(this.m.t-1,this.r2),o.t>this.m.t+1&&(o.t=this.m.t+1,o.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);o.compareTo(this.r2)<0;)o.dAddOffset(1,this.m.t+1);for(o.subTo(this.r2,o);o.compareTo(this.m)>=0;)o.subTo(this.m,o)},e.prototype.mulTo=function(o,t,a){o.multiplyTo(t,a),this.reduce(a)},e.prototype.sqrTo=function(o,t){o.squareTo(t),this.reduce(t)},e}();function ue(){return new se(null)}function Re(e,o){return new se(e,o)}var ai=typeof navigator<"u";ai&&ti&&navigator.appName=="Microsoft Internet Explorer"?(se.prototype.am=function(o,t,a,r,i,s){for(var l=t&32767,d=t>>15;--s>=0;){var c=this[o]&32767,g=this[o++]>>15,h=d*c+g*l;c=l*c+((h&32767)<<15)+a[r]+(i&1073741823),i=(c>>>30)+(h>>>15)+d*g+(i>>>30),a[r++]=c&1073741823}return i},vt=30):ai&&ti&&navigator.appName!="Netscape"?(se.prototype.am=function(o,t,a,r,i,s){for(;--s>=0;){var l=t*this[o++]+a[r]+i;i=Math.floor(l/67108864),a[r++]=l&67108863}return i},vt=26):(se.prototype.am=function(o,t,a,r,i,s){for(var l=t&16383,d=t>>14;--s>=0;){var c=this[o]&16383,g=this[o++]>>14,h=d*c+g*l;c=l*c+((h&16383)<<14)+a[r]+i,i=(c>>28)+(h>>14)+d*g,a[r++]=c&268435455}return i},vt=28),se.prototype.DB=vt,se.prototype.DM=(1<<vt)-1,se.prototype.DV=1<<vt;var Ao=52;se.prototype.FV=Math.pow(2,Ao),se.prototype.F1=Ao-vt,se.prototype.F2=2*vt-Ao;var fn=[],jt,at;for(jt="0".charCodeAt(0),at=0;at<=9;++at)fn[jt++]=at;for(jt="a".charCodeAt(0),at=10;at<36;++at)fn[jt++]=at;for(jt="A".charCodeAt(0),at=10;at<36;++at)fn[jt++]=at;function ri(e,o){var t=fn[e.charCodeAt(o)];return t??-1}function St(e){var o=ue();return o.fromInt(e),o}function un(e){var o=1,t;return(t=e>>>16)!=0&&(e=t,o+=16),(t=e>>8)!=0&&(e=t,o+=8),(t=e>>4)!=0&&(e=t,o+=4),(t=e>>2)!=0&&(e=t,o+=2),(t=e>>1)!=0&&(e=t,o+=1),o}se.ZERO=St(0),se.ONE=St(1);var $s=function(){function e(){this.i=0,this.j=0,this.S=[]}return e.prototype.init=function(o){var t,a,r;for(t=0;t<256;++t)this.S[t]=t;for(a=0,t=0;t<256;++t)a=a+this.S[t]+o[t%o.length]&255,r=this.S[t],this.S[t]=this.S[a],this.S[a]=r;this.i=0,this.j=0},e.prototype.next=function(){var o;return this.i=this.i+1&255,this.j=this.j+this.S[this.i]&255,o=this.S[this.i],this.S[this.i]=this.S[this.j],this.S[this.j]=o,this.S[o+this.S[this.i]&255]},e}();function Zs(){return new $s}var ii=256,hn,Ct=null,ct;if(Ct==null){Ct=[],ct=0;var gn=void 0;if(typeof window<"u"&&window.crypto&&window.crypto.getRandomValues){var ko=new Uint32Array(256);for(window.crypto.getRandomValues(ko),gn=0;gn<ko.length;++gn)Ct[ct++]=ko[gn]&255}var mn=0,yn=function(e){if(mn=mn||0,mn>=256||ct>=ii){window.removeEventListener?window.removeEventListener("mousemove",yn,!1):window.detachEvent&&window.detachEvent("onmousemove",yn);return}try{var o=e.x+e.y;Ct[ct++]=o&255,mn+=1}catch{}};typeof window<"u"&&(window.addEventListener?window.addEventListener("mousemove",yn,!1):window.attachEvent&&window.attachEvent("onmousemove",yn))}function Ys(){if(hn==null){for(hn=Zs();ct<ii;){var e=Math.floor(65536*Math.random());Ct[ct++]=e&255}for(hn.init(Ct),ct=0;ct<Ct.length;++ct)Ct[ct]=0;ct=0}return hn.next()}var To=function(){function e(){}return e.prototype.nextBytes=function(o){for(var t=0;t<o.length;++t)o[t]=Ys()},e}();function Ks(e,o){if(o<e.length+22)return console.error("Message too long for RSA"),null;for(var t=o-e.length-6,a="",r=0;r<t;r+=2)a+="ff";var i="0001"+a+"00"+e;return Re(i,16)}function Qs(e,o){if(o<e.length+11)return console.error("Message too long for RSA"),null;for(var t=[],a=e.length-1;a>=0&&o>0;){var r=e.charCodeAt(a--);r<128?t[--o]=r:r>127&&r<2048?(t[--o]=r&63|128,t[--o]=r>>6|192):(t[--o]=r&63|128,t[--o]=r>>6&63|128,t[--o]=r>>12|224)}t[--o]=0;for(var i=new To,s=[];o>2;){for(s[0]=0;s[0]==0;)i.nextBytes(s);t[--o]=s[0]}return t[--o]=2,t[--o]=0,new se(t)}var Js=function(){function e(){this.n=null,this.e=0,this.d=null,this.p=null,this.q=null,this.dmp1=null,this.dmq1=null,this.coeff=null}return e.prototype.doPublic=function(o){return o.modPowInt(this.e,this.n)},e.prototype.doPrivate=function(o){if(this.p==null||this.q==null)return o.modPow(this.d,this.n);for(var t=o.mod(this.p).modPow(this.dmp1,this.p),a=o.mod(this.q).modPow(this.dmq1,this.q);t.compareTo(a)<0;)t=t.add(this.p);return t.subtract(a).multiply(this.coeff).mod(this.p).multiply(this.q).add(a)},e.prototype.setPublic=function(o,t){o!=null&&t!=null&&o.length>0&&t.length>0?(this.n=Re(o,16),this.e=parseInt(t,16)):console.error("Invalid RSA public key")},e.prototype.encrypt=function(o){var t=this.n.bitLength()+7>>3,a=Qs(o,t);if(a==null)return null;var r=this.doPublic(a);if(r==null)return null;for(var i=r.toString(16),s=i.length,l=0;l<t*2-s;l++)i="0"+i;return i},e.prototype.setPrivate=function(o,t,a){o!=null&&t!=null&&o.length>0&&t.length>0?(this.n=Re(o,16),this.e=parseInt(t,16),this.d=Re(a,16)):console.error("Invalid RSA private key")},e.prototype.setPrivateEx=function(o,t,a,r,i,s,l,d){o!=null&&t!=null&&o.length>0&&t.length>0?(this.n=Re(o,16),this.e=parseInt(t,16),this.d=Re(a,16),this.p=Re(r,16),this.q=Re(i,16),this.dmp1=Re(s,16),this.dmq1=Re(l,16),this.coeff=Re(d,16)):console.error("Invalid RSA private key")},e.prototype.generate=function(o,t){var a=new To,r=o>>1;this.e=parseInt(t,16);for(var i=new se(t,16);;){for(;this.p=new se(o-r,1,a),!(this.p.subtract(se.ONE).gcd(i).compareTo(se.ONE)==0&&this.p.isProbablePrime(10)););for(;this.q=new se(r,1,a),!(this.q.subtract(se.ONE).gcd(i).compareTo(se.ONE)==0&&this.q.isProbablePrime(10)););if(this.p.compareTo(this.q)<=0){var s=this.p;this.p=this.q,this.q=s}var l=this.p.subtract(se.ONE),d=this.q.subtract(se.ONE),c=l.multiply(d);if(c.gcd(i).compareTo(se.ONE)==0){this.n=this.p.multiply(this.q),this.d=i.modInverse(c),this.dmp1=this.d.mod(l),this.dmq1=this.d.mod(d),this.coeff=this.q.modInverse(this.p);break}}},e.prototype.decrypt=function(o){var t=Re(o,16),a=this.doPrivate(t);return a==null?null:Xs(a,this.n.bitLength()+7>>3)},e.prototype.generateAsync=function(o,t,a){var r=new To,i=o>>1;this.e=parseInt(t,16);var s=new se(t,16),l=this,d=function(){var c=function(){if(l.p.compareTo(l.q)<=0){var y=l.p;l.p=l.q,l.q=y}var u=l.p.subtract(se.ONE),m=l.q.subtract(se.ONE),f=u.multiply(m);f.gcd(s).compareTo(se.ONE)==0?(l.n=l.p.multiply(l.q),l.d=s.modInverse(f),l.dmp1=l.d.mod(u),l.dmq1=l.d.mod(m),l.coeff=l.q.modInverse(l.p),setTimeout(function(){a()},0)):setTimeout(d,0)},g=function(){l.q=ue(),l.q.fromNumberAsync(i,1,r,function(){l.q.subtract(se.ONE).gcda(s,function(y){y.compareTo(se.ONE)==0&&l.q.isProbablePrime(10)?setTimeout(c,0):setTimeout(g,0)})})},h=function(){l.p=ue(),l.p.fromNumberAsync(o-i,1,r,function(){l.p.subtract(se.ONE).gcda(s,function(y){y.compareTo(se.ONE)==0&&l.p.isProbablePrime(10)?setTimeout(g,0):setTimeout(h,0)})})};setTimeout(h,0)};setTimeout(d,0)},e.prototype.sign=function(o,t,a){var r=ec(a),i=r+t(o).toString(),s=Ks(i,this.n.bitLength()/4);if(s==null)return null;var l=this.doPrivate(s);if(l==null)return null;var d=l.toString(16);return d.length&1?"0"+d:d},e.prototype.verify=function(o,t,a){var r=Re(t,16),i=this.doPublic(r);if(i==null)return null;var s=i.toString(16).replace(/^1f+00/,""),l=tc(s);return l==a(o).toString()},e}();function Xs(e,o){for(var t=e.toByteArray(),a=0;a<t.length&&t[a]==0;)++a;if(t.length-a!=o-1||t[a]!=2)return null;for(++a;t[a]!=0;)if(++a>=t.length)return null;for(var r="";++a<t.length;){var i=t[a]&255;i<128?r+=String.fromCharCode(i):i>191&&i<224?(r+=String.fromCharCode((i&31)<<6|t[a+1]&63),++a):(r+=String.fromCharCode((i&15)<<12|(t[a+1]&63)<<6|t[a+2]&63),a+=2)}return r}var xn={md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",ripemd160:"3021300906052b2403020105000414"};function ec(e){return xn[e]||""}function tc(e){for(var o in xn)if(xn.hasOwnProperty(o)){var t=xn[o],a=t.length;if(e.substr(0,a)==t)return e.substr(a)}return e}/*!
|
|
71
|
+
*/return t.mode.CTRGladman=function(){var a=t.lib.BlockCipherMode.extend();function r(l){if((l>>24&255)===255){var d=l>>16&255,c=l>>8&255,f=l&255;d===255?(d=0,c===255?(c=0,f===255?f=0:++f):++c):++d,l=0,l+=d<<16,l+=c<<8,l+=f}else l+=1<<24;return l}function i(l){return(l[0]=r(l[0]))===0&&(l[1]=r(l[1])),l}var s=a.Encryptor=a.extend({processBlock:function(l,d){var c=this._cipher,f=c.blockSize,y=this._iv,u=this._counter;y&&(u=this._counter=y.slice(0),this._iv=void 0),i(u);var h=u.slice(0);c.encryptBlock(h,0);for(var m=0;m<f;m++)l[d+m]^=h[m]}});return a.Decryptor=s,a}(),t.mode.CTRGladman})}(so)),so.exports}var co={exports:{}},Hr;function zs(){return Hr||(Hr=1,function(e,o){(function(t,a,r){e.exports=a(me(),qe())})(de,function(t){return t.mode.OFB=function(){var a=t.lib.BlockCipherMode.extend(),r=a.Encryptor=a.extend({processBlock:function(i,s){var l=this._cipher,d=l.blockSize,c=this._iv,f=this._keystream;c&&(f=this._keystream=c.slice(0),this._iv=void 0),l.encryptBlock(f,0);for(var y=0;y<d;y++)i[s+y]^=f[y]}});return a.Decryptor=r,a}(),t.mode.OFB})}(co)),co.exports}var fo={exports:{}},Vr;function Ms(){return Vr||(Vr=1,function(e,o){(function(t,a,r){e.exports=a(me(),qe())})(de,function(t){return t.mode.ECB=function(){var a=t.lib.BlockCipherMode.extend();return a.Encryptor=a.extend({processBlock:function(r,i){this._cipher.encryptBlock(r,i)}}),a.Decryptor=a.extend({processBlock:function(r,i){this._cipher.decryptBlock(r,i)}}),a}(),t.mode.ECB})}(fo)),fo.exports}var uo={exports:{}},jr;function Ps(){return jr||(jr=1,function(e,o){(function(t,a,r){e.exports=a(me(),qe())})(de,function(t){return t.pad.AnsiX923={pad:function(a,r){var i=a.sigBytes,s=r*4,l=s-i%s,d=i+l-1;a.clamp(),a.words[d>>>2]|=l<<24-d%4*8,a.sigBytes+=l},unpad:function(a){var r=a.words[a.sigBytes-1>>>2]&255;a.sigBytes-=r}},t.pad.Ansix923})}(uo)),uo.exports}var ho={exports:{}},Wr;function qs(){return Wr||(Wr=1,function(e,o){(function(t,a,r){e.exports=a(me(),qe())})(de,function(t){return t.pad.Iso10126={pad:function(a,r){var i=r*4,s=i-a.sigBytes%i;a.concat(t.lib.WordArray.random(s-1)).concat(t.lib.WordArray.create([s<<24],1))},unpad:function(a){var r=a.words[a.sigBytes-1>>>2]&255;a.sigBytes-=r}},t.pad.Iso10126})}(ho)),ho.exports}var go={exports:{}},Ur;function Hs(){return Ur||(Ur=1,function(e,o){(function(t,a,r){e.exports=a(me(),qe())})(de,function(t){return t.pad.Iso97971={pad:function(a,r){a.concat(t.lib.WordArray.create([2147483648],1)),t.pad.ZeroPadding.pad(a,r)},unpad:function(a){t.pad.ZeroPadding.unpad(a),a.sigBytes--}},t.pad.Iso97971})}(go)),go.exports}var mo={exports:{}},Gr;function Vs(){return Gr||(Gr=1,function(e,o){(function(t,a,r){e.exports=a(me(),qe())})(de,function(t){return t.pad.ZeroPadding={pad:function(a,r){var i=r*4;a.clamp(),a.sigBytes+=i-(a.sigBytes%i||i)},unpad:function(a){for(var r=a.words,i=a.sigBytes-1,i=a.sigBytes-1;i>=0;i--)if(r[i>>>2]>>>24-i%4*8&255){a.sigBytes=i+1;break}}},t.pad.ZeroPadding})}(mo)),mo.exports}var yo={exports:{}},$r;function js(){return $r||($r=1,function(e,o){(function(t,a,r){e.exports=a(me(),qe())})(de,function(t){return t.pad.NoPadding={pad:function(){},unpad:function(){}},t.pad.NoPadding})}(yo)),yo.exports}var xo={exports:{}},Zr;function Ws(){return Zr||(Zr=1,function(e,o){(function(t,a,r){e.exports=a(me(),qe())})(de,function(t){return function(a){var r=t,i=r.lib,s=i.CipherParams,l=r.enc,d=l.Hex,c=r.format;c.Hex={stringify:function(f){return f.ciphertext.toString(d)},parse:function(f){var y=d.parse(f);return s.create({ciphertext:y})}}}(),t.format.Hex})}(xo)),xo.exports}var po={exports:{}},Yr;function Us(){return Yr||(Yr=1,function(e,o){(function(t,a,r){e.exports=a(me(),zt(),Mt(),Dt(),qe())})(de,function(t){return function(){var a=t,r=a.lib,i=r.BlockCipher,s=a.algo,l=[],d=[],c=[],f=[],y=[],u=[],h=[],m=[],g=[],v=[];(function(){for(var b=[],x=0;x<256;x++)x<128?b[x]=x<<1:b[x]=x<<1^283;for(var A=0,k=0,x=0;x<256;x++){var D=k^k<<1^k<<2^k<<3^k<<4;D=D>>>8^D&255^99,l[A]=D,d[D]=A;var O=b[A],N=b[O],C=b[N],T=b[D]*257^D*16843008;c[A]=T<<24|T>>>8,f[A]=T<<16|T>>>16,y[A]=T<<8|T>>>24,u[A]=T;var T=C*16843009^N*65537^O*257^A*16843008;h[D]=T<<24|T>>>8,m[D]=T<<16|T>>>16,g[D]=T<<8|T>>>24,v[D]=T,A?(A=O^b[b[b[C^O]]],k^=b[b[k]]):A=k=1}})();var B=[0,1,2,4,8,16,32,64,128,27,54],p=s.AES=i.extend({_doReset:function(){var b;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var x=this._keyPriorReset=this._key,A=x.words,k=x.sigBytes/4,D=this._nRounds=k+6,O=(D+1)*4,N=this._keySchedule=[],C=0;C<O;C++)C<k?N[C]=A[C]:(b=N[C-1],C%k?k>6&&C%k==4&&(b=l[b>>>24]<<24|l[b>>>16&255]<<16|l[b>>>8&255]<<8|l[b&255]):(b=b<<8|b>>>24,b=l[b>>>24]<<24|l[b>>>16&255]<<16|l[b>>>8&255]<<8|l[b&255],b^=B[C/k|0]<<24),N[C]=N[C-k]^b);for(var T=this._invKeySchedule=[],R=0;R<O;R++){var C=O-R;if(R%4)var b=N[C];else var b=N[C-4];R<4||C<=4?T[R]=b:T[R]=h[l[b>>>24]]^m[l[b>>>16&255]]^g[l[b>>>8&255]]^v[l[b&255]]}}},encryptBlock:function(b,x){this._doCryptBlock(b,x,this._keySchedule,c,f,y,u,l)},decryptBlock:function(b,x){var A=b[x+1];b[x+1]=b[x+3],b[x+3]=A,this._doCryptBlock(b,x,this._invKeySchedule,h,m,g,v,d);var A=b[x+1];b[x+1]=b[x+3],b[x+3]=A},_doCryptBlock:function(b,x,A,k,D,O,N,C){for(var T=this._nRounds,R=b[x]^A[0],S=b[x+1]^A[1],E=b[x+2]^A[2],w=b[x+3]^A[3],_=4,z=1;z<T;z++){var q=k[R>>>24]^D[S>>>16&255]^O[E>>>8&255]^N[w&255]^A[_++],W=k[S>>>24]^D[E>>>16&255]^O[w>>>8&255]^N[R&255]^A[_++],$=k[E>>>24]^D[w>>>16&255]^O[R>>>8&255]^N[S&255]^A[_++],F=k[w>>>24]^D[R>>>16&255]^O[S>>>8&255]^N[E&255]^A[_++];R=q,S=W,E=$,w=F}var q=(C[R>>>24]<<24|C[S>>>16&255]<<16|C[E>>>8&255]<<8|C[w&255])^A[_++],W=(C[S>>>24]<<24|C[E>>>16&255]<<16|C[w>>>8&255]<<8|C[R&255])^A[_++],$=(C[E>>>24]<<24|C[w>>>16&255]<<16|C[R>>>8&255]<<8|C[S&255])^A[_++],F=(C[w>>>24]<<24|C[R>>>16&255]<<16|C[S>>>8&255]<<8|C[E&255])^A[_++];b[x]=q,b[x+1]=W,b[x+2]=$,b[x+3]=F},keySize:256/32});a.AES=i._createHelper(p)}(),t.AES})}(po)),po.exports}var bo={exports:{}},Kr;function Gs(){return Kr||(Kr=1,function(e,o){(function(t,a,r){e.exports=a(me(),zt(),Mt(),Dt(),qe())})(de,function(t){return function(){var a=t,r=a.lib,i=r.WordArray,s=r.BlockCipher,l=a.algo,d=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],c=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],f=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],y=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],u=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],h=l.DES=s.extend({_doReset:function(){for(var B=this._key,p=B.words,b=[],x=0;x<56;x++){var A=d[x]-1;b[x]=p[A>>>5]>>>31-A%32&1}for(var k=this._subKeys=[],D=0;D<16;D++){for(var O=k[D]=[],N=f[D],x=0;x<24;x++)O[x/6|0]|=b[(c[x]-1+N)%28]<<31-x%6,O[4+(x/6|0)]|=b[28+(c[x+24]-1+N)%28]<<31-x%6;O[0]=O[0]<<1|O[0]>>>31;for(var x=1;x<7;x++)O[x]=O[x]>>>(x-1)*4+3;O[7]=O[7]<<5|O[7]>>>27}for(var C=this._invSubKeys=[],x=0;x<16;x++)C[x]=k[15-x]},encryptBlock:function(B,p){this._doCryptBlock(B,p,this._subKeys)},decryptBlock:function(B,p){this._doCryptBlock(B,p,this._invSubKeys)},_doCryptBlock:function(B,p,b){this._lBlock=B[p],this._rBlock=B[p+1],m.call(this,4,252645135),m.call(this,16,65535),g.call(this,2,858993459),g.call(this,8,16711935),m.call(this,1,1431655765);for(var x=0;x<16;x++){for(var A=b[x],k=this._lBlock,D=this._rBlock,O=0,N=0;N<8;N++)O|=y[N][((D^A[N])&u[N])>>>0];this._lBlock=D,this._rBlock=k^O}var C=this._lBlock;this._lBlock=this._rBlock,this._rBlock=C,m.call(this,1,1431655765),g.call(this,8,16711935),g.call(this,2,858993459),m.call(this,16,65535),m.call(this,4,252645135),B[p]=this._lBlock,B[p+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function m(B,p){var b=(this._lBlock>>>B^this._rBlock)&p;this._rBlock^=b,this._lBlock^=b<<B}function g(B,p){var b=(this._rBlock>>>B^this._lBlock)&p;this._lBlock^=b,this._rBlock^=b<<B}a.DES=s._createHelper(h);var v=l.TripleDES=s.extend({_doReset:function(){var B=this._key,p=B.words;if(p.length!==2&&p.length!==4&&p.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var b=p.slice(0,2),x=p.length<4?p.slice(0,2):p.slice(2,4),A=p.length<6?p.slice(0,2):p.slice(4,6);this._des1=h.createEncryptor(i.create(b)),this._des2=h.createEncryptor(i.create(x)),this._des3=h.createEncryptor(i.create(A))},encryptBlock:function(B,p){this._des1.encryptBlock(B,p),this._des2.decryptBlock(B,p),this._des3.encryptBlock(B,p)},decryptBlock:function(B,p){this._des3.decryptBlock(B,p),this._des2.encryptBlock(B,p),this._des1.decryptBlock(B,p)},keySize:192/32,ivSize:64/32,blockSize:64/32});a.TripleDES=s._createHelper(v)}(),t.TripleDES})}(bo)),bo.exports}var vo={exports:{}},Qr;function $s(){return Qr||(Qr=1,function(e,o){(function(t,a,r){e.exports=a(me(),zt(),Mt(),Dt(),qe())})(de,function(t){return function(){var a=t,r=a.lib,i=r.StreamCipher,s=a.algo,l=s.RC4=i.extend({_doReset:function(){for(var f=this._key,y=f.words,u=f.sigBytes,h=this._S=[],m=0;m<256;m++)h[m]=m;for(var m=0,g=0;m<256;m++){var v=m%u,B=y[v>>>2]>>>24-v%4*8&255;g=(g+h[m]+B)%256;var p=h[m];h[m]=h[g],h[g]=p}this._i=this._j=0},_doProcessBlock:function(f,y){f[y]^=d.call(this)},keySize:256/32,ivSize:0});function d(){for(var f=this._S,y=this._i,u=this._j,h=0,m=0;m<4;m++){y=(y+1)%256,u=(u+f[y])%256;var g=f[y];f[y]=f[u],f[u]=g,h|=f[(f[y]+f[u])%256]<<24-m*8}return this._i=y,this._j=u,h}a.RC4=i._createHelper(l);var c=s.RC4Drop=l.extend({cfg:l.cfg.extend({drop:192}),_doReset:function(){l._doReset.call(this);for(var f=this.cfg.drop;f>0;f--)d.call(this)}});a.RC4Drop=i._createHelper(c)}(),t.RC4})}(vo)),vo.exports}var So={exports:{}},Jr;function Zs(){return Jr||(Jr=1,function(e,o){(function(t,a,r){e.exports=a(me(),zt(),Mt(),Dt(),qe())})(de,function(t){return function(){var a=t,r=a.lib,i=r.StreamCipher,s=a.algo,l=[],d=[],c=[],f=s.Rabbit=i.extend({_doReset:function(){for(var u=this._key.words,h=this.cfg.iv,m=0;m<4;m++)u[m]=(u[m]<<8|u[m]>>>24)&16711935|(u[m]<<24|u[m]>>>8)&4278255360;var g=this._X=[u[0],u[3]<<16|u[2]>>>16,u[1],u[0]<<16|u[3]>>>16,u[2],u[1]<<16|u[0]>>>16,u[3],u[2]<<16|u[1]>>>16],v=this._C=[u[2]<<16|u[2]>>>16,u[0]&4294901760|u[1]&65535,u[3]<<16|u[3]>>>16,u[1]&4294901760|u[2]&65535,u[0]<<16|u[0]>>>16,u[2]&4294901760|u[3]&65535,u[1]<<16|u[1]>>>16,u[3]&4294901760|u[0]&65535];this._b=0;for(var m=0;m<4;m++)y.call(this);for(var m=0;m<8;m++)v[m]^=g[m+4&7];if(h){var B=h.words,p=B[0],b=B[1],x=(p<<8|p>>>24)&16711935|(p<<24|p>>>8)&4278255360,A=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360,k=x>>>16|A&4294901760,D=A<<16|x&65535;v[0]^=x,v[1]^=k,v[2]^=A,v[3]^=D,v[4]^=x,v[5]^=k,v[6]^=A,v[7]^=D;for(var m=0;m<4;m++)y.call(this)}},_doProcessBlock:function(u,h){var m=this._X;y.call(this),l[0]=m[0]^m[5]>>>16^m[3]<<16,l[1]=m[2]^m[7]>>>16^m[5]<<16,l[2]=m[4]^m[1]>>>16^m[7]<<16,l[3]=m[6]^m[3]>>>16^m[1]<<16;for(var g=0;g<4;g++)l[g]=(l[g]<<8|l[g]>>>24)&16711935|(l[g]<<24|l[g]>>>8)&4278255360,u[h+g]^=l[g]},blockSize:128/32,ivSize:64/32});function y(){for(var u=this._X,h=this._C,m=0;m<8;m++)d[m]=h[m];h[0]=h[0]+1295307597+this._b|0,h[1]=h[1]+3545052371+(h[0]>>>0<d[0]>>>0?1:0)|0,h[2]=h[2]+886263092+(h[1]>>>0<d[1]>>>0?1:0)|0,h[3]=h[3]+1295307597+(h[2]>>>0<d[2]>>>0?1:0)|0,h[4]=h[4]+3545052371+(h[3]>>>0<d[3]>>>0?1:0)|0,h[5]=h[5]+886263092+(h[4]>>>0<d[4]>>>0?1:0)|0,h[6]=h[6]+1295307597+(h[5]>>>0<d[5]>>>0?1:0)|0,h[7]=h[7]+3545052371+(h[6]>>>0<d[6]>>>0?1:0)|0,this._b=h[7]>>>0<d[7]>>>0?1:0;for(var m=0;m<8;m++){var g=u[m]+h[m],v=g&65535,B=g>>>16,p=((v*v>>>17)+v*B>>>15)+B*B,b=((g&4294901760)*g|0)+((g&65535)*g|0);c[m]=p^b}u[0]=c[0]+(c[7]<<16|c[7]>>>16)+(c[6]<<16|c[6]>>>16)|0,u[1]=c[1]+(c[0]<<8|c[0]>>>24)+c[7]|0,u[2]=c[2]+(c[1]<<16|c[1]>>>16)+(c[0]<<16|c[0]>>>16)|0,u[3]=c[3]+(c[2]<<8|c[2]>>>24)+c[1]|0,u[4]=c[4]+(c[3]<<16|c[3]>>>16)+(c[2]<<16|c[2]>>>16)|0,u[5]=c[5]+(c[4]<<8|c[4]>>>24)+c[3]|0,u[6]=c[6]+(c[5]<<16|c[5]>>>16)+(c[4]<<16|c[4]>>>16)|0,u[7]=c[7]+(c[6]<<8|c[6]>>>24)+c[5]|0}a.Rabbit=i._createHelper(f)}(),t.Rabbit})}(So)),So.exports}var Co={exports:{}},Xr;function Ys(){return Xr||(Xr=1,function(e,o){(function(t,a,r){e.exports=a(me(),zt(),Mt(),Dt(),qe())})(de,function(t){return function(){var a=t,r=a.lib,i=r.StreamCipher,s=a.algo,l=[],d=[],c=[],f=s.RabbitLegacy=i.extend({_doReset:function(){var u=this._key.words,h=this.cfg.iv,m=this._X=[u[0],u[3]<<16|u[2]>>>16,u[1],u[0]<<16|u[3]>>>16,u[2],u[1]<<16|u[0]>>>16,u[3],u[2]<<16|u[1]>>>16],g=this._C=[u[2]<<16|u[2]>>>16,u[0]&4294901760|u[1]&65535,u[3]<<16|u[3]>>>16,u[1]&4294901760|u[2]&65535,u[0]<<16|u[0]>>>16,u[2]&4294901760|u[3]&65535,u[1]<<16|u[1]>>>16,u[3]&4294901760|u[0]&65535];this._b=0;for(var v=0;v<4;v++)y.call(this);for(var v=0;v<8;v++)g[v]^=m[v+4&7];if(h){var B=h.words,p=B[0],b=B[1],x=(p<<8|p>>>24)&16711935|(p<<24|p>>>8)&4278255360,A=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360,k=x>>>16|A&4294901760,D=A<<16|x&65535;g[0]^=x,g[1]^=k,g[2]^=A,g[3]^=D,g[4]^=x,g[5]^=k,g[6]^=A,g[7]^=D;for(var v=0;v<4;v++)y.call(this)}},_doProcessBlock:function(u,h){var m=this._X;y.call(this),l[0]=m[0]^m[5]>>>16^m[3]<<16,l[1]=m[2]^m[7]>>>16^m[5]<<16,l[2]=m[4]^m[1]>>>16^m[7]<<16,l[3]=m[6]^m[3]>>>16^m[1]<<16;for(var g=0;g<4;g++)l[g]=(l[g]<<8|l[g]>>>24)&16711935|(l[g]<<24|l[g]>>>8)&4278255360,u[h+g]^=l[g]},blockSize:128/32,ivSize:64/32});function y(){for(var u=this._X,h=this._C,m=0;m<8;m++)d[m]=h[m];h[0]=h[0]+1295307597+this._b|0,h[1]=h[1]+3545052371+(h[0]>>>0<d[0]>>>0?1:0)|0,h[2]=h[2]+886263092+(h[1]>>>0<d[1]>>>0?1:0)|0,h[3]=h[3]+1295307597+(h[2]>>>0<d[2]>>>0?1:0)|0,h[4]=h[4]+3545052371+(h[3]>>>0<d[3]>>>0?1:0)|0,h[5]=h[5]+886263092+(h[4]>>>0<d[4]>>>0?1:0)|0,h[6]=h[6]+1295307597+(h[5]>>>0<d[5]>>>0?1:0)|0,h[7]=h[7]+3545052371+(h[6]>>>0<d[6]>>>0?1:0)|0,this._b=h[7]>>>0<d[7]>>>0?1:0;for(var m=0;m<8;m++){var g=u[m]+h[m],v=g&65535,B=g>>>16,p=((v*v>>>17)+v*B>>>15)+B*B,b=((g&4294901760)*g|0)+((g&65535)*g|0);c[m]=p^b}u[0]=c[0]+(c[7]<<16|c[7]>>>16)+(c[6]<<16|c[6]>>>16)|0,u[1]=c[1]+(c[0]<<8|c[0]>>>24)+c[7]|0,u[2]=c[2]+(c[1]<<16|c[1]>>>16)+(c[0]<<16|c[0]>>>16)|0,u[3]=c[3]+(c[2]<<8|c[2]>>>24)+c[1]|0,u[4]=c[4]+(c[3]<<16|c[3]>>>16)+(c[2]<<16|c[2]>>>16)|0,u[5]=c[5]+(c[4]<<8|c[4]>>>24)+c[3]|0,u[6]=c[6]+(c[5]<<16|c[5]>>>16)+(c[4]<<16|c[4]>>>16)|0,u[7]=c[7]+(c[6]<<8|c[6]>>>24)+c[5]|0}a.RabbitLegacy=i._createHelper(f)}(),t.RabbitLegacy})}(Co)),Co.exports}(function(e,o){(function(t,a,r){e.exports=a(me(),cn(),Ts(),Bs(),zt(),Es(),Mt(),Zn(),Br(),Ds(),Rr(),Rs(),Is(),_s(),no(),Os(),Dt(),qe(),Ls(),Ns(),Fs(),zs(),Ms(),Ps(),qs(),Hs(),Vs(),js(),Ws(),Us(),Gs(),$s(),Zs(),Ys())})(de,function(t){return t})})(xr);var Ks=xr.exports;const Xe=yr(Ks);var Qs="0123456789abcdefghijklmnopqrstuvwxyz";function mt(e){return Qs.charAt(e)}function Js(e,o){return e&o}function dn(e,o){return e|o}function ei(e,o){return e^o}function ti(e,o){return e&~o}function Xs(e){if(e==0)return-1;var o=0;return e&65535||(e>>=16,o+=16),e&255||(e>>=8,o+=8),e&15||(e>>=4,o+=4),e&3||(e>>=2,o+=2),e&1||++o,o}function ec(e){for(var o=0;e!=0;)e&=e-1,++o;return o}var Pt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ni="=";function fn(e){var o,t,a="";for(o=0;o+3<=e.length;o+=3)t=parseInt(e.substring(o,o+3),16),a+=Pt.charAt(t>>6)+Pt.charAt(t&63);for(o+1==e.length?(t=parseInt(e.substring(o,o+1),16),a+=Pt.charAt(t<<2)):o+2==e.length&&(t=parseInt(e.substring(o,o+2),16),a+=Pt.charAt(t>>2)+Pt.charAt((t&3)<<4));(a.length&3)>0;)a+=ni;return a}function oi(e){var o="",t,a=0,r=0;for(t=0;t<e.length&&e.charAt(t)!=ni;++t){var i=Pt.indexOf(e.charAt(t));i<0||(a==0?(o+=mt(i>>2),r=i&3,a=1):a==1?(o+=mt(r<<2|i>>4),r=i&15,a=2):a==2?(o+=mt(r),o+=mt(i>>2),r=i&3,a=3):(o+=mt(r<<2|i>>4),o+=mt(i&15),a=0))}return a==1&&(o+=mt(r<<2)),o}var qt,tc={decode:function(e){var o;if(qt===void 0){var t="0123456789ABCDEF",a=` \f
|
|
72
|
+
\r \u2028\u2029`;for(qt={},o=0;o<16;++o)qt[t.charAt(o)]=o;for(t=t.toLowerCase(),o=10;o<16;++o)qt[t.charAt(o)]=o;for(o=0;o<a.length;++o)qt[a.charAt(o)]=-1}var r=[],i=0,s=0;for(o=0;o<e.length;++o){var l=e.charAt(o);if(l=="=")break;if(l=qt[l],l!=-1){if(l===void 0)throw new Error("Illegal character at offset "+o);i|=l,++s>=2?(r[r.length]=i,i=0,s=0):i<<=4}}if(s)throw new Error("Hex encoding incomplete: 4 bits missing");return r}},Rt,wo={decode:function(e){var o;if(Rt===void 0){var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=`= \f
|
|
73
|
+
\r \u2028\u2029`;for(Rt=Object.create(null),o=0;o<64;++o)Rt[t.charAt(o)]=o;for(Rt["-"]=62,Rt._=63,o=0;o<a.length;++o)Rt[a.charAt(o)]=-1}var r=[],i=0,s=0;for(o=0;o<e.length;++o){var l=e.charAt(o);if(l=="=")break;if(l=Rt[l],l!=-1){if(l===void 0)throw new Error("Illegal character at offset "+o);i|=l,++s>=4?(r[r.length]=i>>16,r[r.length]=i>>8&255,r[r.length]=i&255,i=0,s=0):i<<=6}}switch(s){case 1:throw new Error("Base64 encoding incomplete: at least 2 bits missing");case 2:r[r.length]=i>>10;break;case 3:r[r.length]=i>>16,r[r.length]=i>>8&255;break}return r},re:/-----BEGIN [^-]+-----([A-Za-z0-9+\/=\s]+)-----END [^-]+-----|begin-base64[^\n]+\n([A-Za-z0-9+\/=\s]+)====/,unarmor:function(e){var o=wo.re.exec(e);if(o)if(o[1])e=o[1];else if(o[2])e=o[2];else throw new Error("RegExp out of sync");return wo.decode(e)}},Ht=1e13,en=function(){function e(o){this.buf=[+o||0]}return e.prototype.mulAdd=function(o,t){var a=this.buf,r=a.length,i,s;for(i=0;i<r;++i)s=a[i]*o+t,s<Ht?t=0:(t=0|s/Ht,s-=t*Ht),a[i]=s;t>0&&(a[i]=t)},e.prototype.sub=function(o){var t=this.buf,a=t.length,r,i;for(r=0;r<a;++r)i=t[r]-o,i<0?(i+=Ht,o=1):o=0,t[r]=i;for(;t[t.length-1]===0;)t.pop()},e.prototype.toString=function(o){if((o||10)!=10)throw new Error("only base 10 is supported");for(var t=this.buf,a=t[t.length-1].toString(),r=t.length-2;r>=0;--r)a+=(Ht+t[r]).toString().substring(1);return a},e.prototype.valueOf=function(){for(var o=this.buf,t=0,a=o.length-1;a>=0;--a)t=t*Ht+o[a];return t},e.prototype.simplify=function(){var o=this.buf;return o.length==1?o[0]:this},e}(),ai="…",nc=/^(\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/,oc=/^(\d\d\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/;function Vt(e,o){return e.length>o&&(e=e.substring(0,o)+ai),e}var Ao=function(){function e(o,t){this.hexDigits="0123456789ABCDEF",o instanceof e?(this.enc=o.enc,this.pos=o.pos):(this.enc=o,this.pos=t)}return e.prototype.get=function(o){if(o===void 0&&(o=this.pos++),o>=this.enc.length)throw new Error("Requesting byte offset ".concat(o," on a stream of length ").concat(this.enc.length));return typeof this.enc=="string"?this.enc.charCodeAt(o):this.enc[o]},e.prototype.hexByte=function(o){return this.hexDigits.charAt(o>>4&15)+this.hexDigits.charAt(o&15)},e.prototype.hexDump=function(o,t,a){for(var r="",i=o;i<t;++i)if(r+=this.hexByte(this.get(i)),a!==!0)switch(i&15){case 7:r+=" ";break;case 15:r+=`
|
|
74
|
+
`;break;default:r+=" "}return r},e.prototype.isASCII=function(o,t){for(var a=o;a<t;++a){var r=this.get(a);if(r<32||r>176)return!1}return!0},e.prototype.parseStringISO=function(o,t){for(var a="",r=o;r<t;++r)a+=String.fromCharCode(this.get(r));return a},e.prototype.parseStringUTF=function(o,t){for(var a="",r=o;r<t;){var i=this.get(r++);i<128?a+=String.fromCharCode(i):i>191&&i<224?a+=String.fromCharCode((i&31)<<6|this.get(r++)&63):a+=String.fromCharCode((i&15)<<12|(this.get(r++)&63)<<6|this.get(r++)&63)}return a},e.prototype.parseStringBMP=function(o,t){for(var a="",r,i,s=o;s<t;)r=this.get(s++),i=this.get(s++),a+=String.fromCharCode(r<<8|i);return a},e.prototype.parseTime=function(o,t,a){var r=this.parseStringISO(o,t),i=(a?nc:oc).exec(r);return i?(a&&(i[1]=+i[1],i[1]+=+i[1]<70?2e3:1900),r=i[1]+"-"+i[2]+"-"+i[3]+" "+i[4],i[5]&&(r+=":"+i[5],i[6]&&(r+=":"+i[6],i[7]&&(r+="."+i[7]))),i[8]&&(r+=" UTC",i[8]!="Z"&&(r+=i[8],i[9]&&(r+=":"+i[9]))),r):"Unrecognized time: "+r},e.prototype.parseInteger=function(o,t){for(var a=this.get(o),r=a>127,i=r?255:0,s,l="";a==i&&++o<t;)a=this.get(o);if(s=t-o,s===0)return r?-1:0;if(s>4){for(l=a,s<<=3;!((+l^i)&128);)l=+l<<1,--s;l="("+s+` bit)
|
|
75
|
+
`}r&&(a=a-256);for(var d=new en(a),c=o+1;c<t;++c)d.mulAdd(256,this.get(c));return l+d.toString()},e.prototype.parseBitString=function(o,t,a){for(var r=this.get(o),i=(t-o-1<<3)-r,s="("+i+` bit)
|
|
76
|
+
`,l="",d=o+1;d<t;++d){for(var c=this.get(d),f=d==t-1?r:0,y=7;y>=f;--y)l+=c>>y&1?"1":"0";if(l.length>a)return s+Vt(l,a)}return s+l},e.prototype.parseOctetString=function(o,t,a){if(this.isASCII(o,t))return Vt(this.parseStringISO(o,t),a);var r=t-o,i="("+r+` byte)
|
|
77
|
+
`;a/=2,r>a&&(t=o+a);for(var s=o;s<t;++s)i+=this.hexByte(this.get(s));return r>a&&(i+=ai),i},e.prototype.parseOID=function(o,t,a){for(var r="",i=new en,s=0,l=o;l<t;++l){var d=this.get(l);if(i.mulAdd(128,d&127),s+=7,!(d&128)){if(r==="")if(i=i.simplify(),i instanceof en)i.sub(80),r="2."+i.toString();else{var c=i<80?i<40?0:1:2;r=c+"."+(i-c*40)}else r+="."+i.toString();if(r.length>a)return Vt(r,a);i=new en,s=0}}return s>0&&(r+=".incomplete"),r},e}(),ac=function(){function e(o,t,a,r,i){if(!(r instanceof ri))throw new Error("Invalid tag value.");this.stream=o,this.header=t,this.length=a,this.tag=r,this.sub=i}return e.prototype.typeName=function(){switch(this.tag.tagClass){case 0:switch(this.tag.tagNumber){case 0:return"EOC";case 1:return"BOOLEAN";case 2:return"INTEGER";case 3:return"BIT_STRING";case 4:return"OCTET_STRING";case 5:return"NULL";case 6:return"OBJECT_IDENTIFIER";case 7:return"ObjectDescriptor";case 8:return"EXTERNAL";case 9:return"REAL";case 10:return"ENUMERATED";case 11:return"EMBEDDED_PDV";case 12:return"UTF8String";case 16:return"SEQUENCE";case 17:return"SET";case 18:return"NumericString";case 19:return"PrintableString";case 20:return"TeletexString";case 21:return"VideotexString";case 22:return"IA5String";case 23:return"UTCTime";case 24:return"GeneralizedTime";case 25:return"GraphicString";case 26:return"VisibleString";case 27:return"GeneralString";case 28:return"UniversalString";case 30:return"BMPString"}return"Universal_"+this.tag.tagNumber.toString();case 1:return"Application_"+this.tag.tagNumber.toString();case 2:return"["+this.tag.tagNumber.toString()+"]";case 3:return"Private_"+this.tag.tagNumber.toString()}},e.prototype.content=function(o){if(this.tag===void 0)return null;o===void 0&&(o=1/0);var t=this.posContent(),a=Math.abs(this.length);if(!this.tag.isUniversal())return this.sub!==null?"("+this.sub.length+" elem)":this.stream.parseOctetString(t,t+a,o);switch(this.tag.tagNumber){case 1:return this.stream.get(t)===0?"false":"true";case 2:return this.stream.parseInteger(t,t+a);case 3:return this.sub?"("+this.sub.length+" elem)":this.stream.parseBitString(t,t+a,o);case 4:return this.sub?"("+this.sub.length+" elem)":this.stream.parseOctetString(t,t+a,o);case 6:return this.stream.parseOID(t,t+a,o);case 16:case 17:return this.sub!==null?"("+this.sub.length+" elem)":"(no elem)";case 12:return Vt(this.stream.parseStringUTF(t,t+a),o);case 18:case 19:case 20:case 21:case 22:case 26:return Vt(this.stream.parseStringISO(t,t+a),o);case 30:return Vt(this.stream.parseStringBMP(t,t+a),o);case 23:case 24:return this.stream.parseTime(t,t+a,this.tag.tagNumber==23)}return null},e.prototype.toString=function(){return this.typeName()+"@"+this.stream.pos+"[header:"+this.header+",length:"+this.length+",sub:"+(this.sub===null?"null":this.sub.length)+"]"},e.prototype.toPrettyString=function(o){o===void 0&&(o="");var t=o+this.typeName()+" @"+this.stream.pos;if(this.length>=0&&(t+="+"),t+=this.length,this.tag.tagConstructed?t+=" (constructed)":this.tag.isUniversal()&&(this.tag.tagNumber==3||this.tag.tagNumber==4)&&this.sub!==null&&(t+=" (encapsulates)"),t+=`
|
|
78
|
+
`,this.sub!==null){o+=" ";for(var a=0,r=this.sub.length;a<r;++a)t+=this.sub[a].toPrettyString(o)}return t},e.prototype.posStart=function(){return this.stream.pos},e.prototype.posContent=function(){return this.stream.pos+this.header},e.prototype.posEnd=function(){return this.stream.pos+this.header+Math.abs(this.length)},e.prototype.toHexString=function(){return this.stream.hexDump(this.posStart(),this.posEnd(),!0)},e.decodeLength=function(o){var t=o.get(),a=t&127;if(a==t)return a;if(a>6)throw new Error("Length over 48 bits not supported at position "+(o.pos-1));if(a===0)return null;t=0;for(var r=0;r<a;++r)t=t*256+o.get();return t},e.prototype.getHexStringValue=function(){var o=this.toHexString(),t=this.header*2,a=this.length*2;return o.substr(t,a)},e.decode=function(o){var t;o instanceof Ao?t=o:t=new Ao(o,0);var a=new Ao(t),r=new ri(t),i=e.decodeLength(t),s=t.pos,l=s-a.pos,d=null,c=function(){var y=[];if(i!==null){for(var u=s+i;t.pos<u;)y[y.length]=e.decode(t);if(t.pos!=u)throw new Error("Content size is not correct for container starting at offset "+s)}else try{for(;;){var h=e.decode(t);if(h.tag.isEOC())break;y[y.length]=h}i=s-t.pos}catch(m){throw new Error("Exception while decoding undefined length content: "+m)}return y};if(r.tagConstructed)d=c();else if(r.isUniversal()&&(r.tagNumber==3||r.tagNumber==4))try{if(r.tagNumber==3&&t.get()!=0)throw new Error("BIT STRINGs with unused bits cannot encapsulate.");d=c();for(var f=0;f<d.length;++f)if(d[f].tag.isEOC())throw new Error("EOC is not supposed to be actual content.")}catch{d=null}if(d===null){if(i===null)throw new Error("We can't skip over an invalid tag with undefined length at offset "+s);t.pos=s+Math.abs(i)}return new e(a,l,i,r,d)},e}(),ri=function(){function e(o){var t=o.get();if(this.tagClass=t>>6,this.tagConstructed=(t&32)!==0,this.tagNumber=t&31,this.tagNumber==31){var a=new en;do t=o.get(),a.mulAdd(128,t&127);while(t&128);this.tagNumber=a.simplify()}}return e.prototype.isUniversal=function(){return this.tagClass===0},e.prototype.isEOC=function(){return this.tagClass===0&&this.tagNumber===0},e}(),vt,rc=0xdeadbeefcafe,ii=(rc&16777215)==15715070,Ge=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],ic=(1<<26)/Ge[Ge.length-1],se=function(){function e(o,t,a){o!=null&&(typeof o=="number"?this.fromNumber(o,t,a):t==null&&typeof o!="string"?this.fromString(o,256):this.fromString(o,t))}return e.prototype.toString=function(o){if(this.s<0)return"-"+this.negate().toString(o);var t;if(o==16)t=4;else if(o==8)t=3;else if(o==2)t=1;else if(o==32)t=5;else if(o==4)t=2;else return this.toRadix(o);var a=(1<<t)-1,r,i=!1,s="",l=this.t,d=this.DB-l*this.DB%t;if(l-- >0)for(d<this.DB&&(r=this[l]>>d)>0&&(i=!0,s=mt(r));l>=0;)d<t?(r=(this[l]&(1<<d)-1)<<t-d,r|=this[--l]>>(d+=this.DB-t)):(r=this[l]>>(d-=t)&a,d<=0&&(d+=this.DB,--l)),r>0&&(i=!0),i&&(s+=mt(r));return i?s:"0"},e.prototype.negate=function(){var o=ue();return e.ZERO.subTo(this,o),o},e.prototype.abs=function(){return this.s<0?this.negate():this},e.prototype.compareTo=function(o){var t=this.s-o.s;if(t!=0)return t;var a=this.t;if(t=a-o.t,t!=0)return this.s<0?-t:t;for(;--a>=0;)if((t=this[a]-o[a])!=0)return t;return 0},e.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+hn(this[this.t-1]^this.s&this.DM)},e.prototype.mod=function(o){var t=ue();return this.abs().divRemTo(o,null,t),this.s<0&&t.compareTo(e.ZERO)>0&&o.subTo(t,t),t},e.prototype.modPowInt=function(o,t){var a;return o<256||t.isEven()?a=new li(t):a=new si(t),this.exp(o,a)},e.prototype.clone=function(){var o=ue();return this.copyTo(o),o},e.prototype.intValue=function(){if(this.s<0){if(this.t==1)return this[0]-this.DV;if(this.t==0)return-1}else{if(this.t==1)return this[0];if(this.t==0)return 0}return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]},e.prototype.byteValue=function(){return this.t==0?this.s:this[0]<<24>>24},e.prototype.shortValue=function(){return this.t==0?this.s:this[0]<<16>>16},e.prototype.signum=function(){return this.s<0?-1:this.t<=0||this.t==1&&this[0]<=0?0:1},e.prototype.toByteArray=function(){var o=this.t,t=[];t[0]=this.s;var a=this.DB-o*this.DB%8,r,i=0;if(o-- >0)for(a<this.DB&&(r=this[o]>>a)!=(this.s&this.DM)>>a&&(t[i++]=r|this.s<<this.DB-a);o>=0;)a<8?(r=(this[o]&(1<<a)-1)<<8-a,r|=this[--o]>>(a+=this.DB-8)):(r=this[o]>>(a-=8)&255,a<=0&&(a+=this.DB,--o)),r&128&&(r|=-256),i==0&&(this.s&128)!=(r&128)&&++i,(i>0||r!=this.s)&&(t[i++]=r);return t},e.prototype.equals=function(o){return this.compareTo(o)==0},e.prototype.min=function(o){return this.compareTo(o)<0?this:o},e.prototype.max=function(o){return this.compareTo(o)>0?this:o},e.prototype.and=function(o){var t=ue();return this.bitwiseTo(o,Js,t),t},e.prototype.or=function(o){var t=ue();return this.bitwiseTo(o,dn,t),t},e.prototype.xor=function(o){var t=ue();return this.bitwiseTo(o,ei,t),t},e.prototype.andNot=function(o){var t=ue();return this.bitwiseTo(o,ti,t),t},e.prototype.not=function(){for(var o=ue(),t=0;t<this.t;++t)o[t]=this.DM&~this[t];return o.t=this.t,o.s=~this.s,o},e.prototype.shiftLeft=function(o){var t=ue();return o<0?this.rShiftTo(-o,t):this.lShiftTo(o,t),t},e.prototype.shiftRight=function(o){var t=ue();return o<0?this.lShiftTo(-o,t):this.rShiftTo(o,t),t},e.prototype.getLowestSetBit=function(){for(var o=0;o<this.t;++o)if(this[o]!=0)return o*this.DB+Xs(this[o]);return this.s<0?this.t*this.DB:-1},e.prototype.bitCount=function(){for(var o=0,t=this.s&this.DM,a=0;a<this.t;++a)o+=ec(this[a]^t);return o},e.prototype.testBit=function(o){var t=Math.floor(o/this.DB);return t>=this.t?this.s!=0:(this[t]&1<<o%this.DB)!=0},e.prototype.setBit=function(o){return this.changeBit(o,dn)},e.prototype.clearBit=function(o){return this.changeBit(o,ti)},e.prototype.flipBit=function(o){return this.changeBit(o,ei)},e.prototype.add=function(o){var t=ue();return this.addTo(o,t),t},e.prototype.subtract=function(o){var t=ue();return this.subTo(o,t),t},e.prototype.multiply=function(o){var t=ue();return this.multiplyTo(o,t),t},e.prototype.divide=function(o){var t=ue();return this.divRemTo(o,t,null),t},e.prototype.remainder=function(o){var t=ue();return this.divRemTo(o,null,t),t},e.prototype.divideAndRemainder=function(o){var t=ue(),a=ue();return this.divRemTo(o,t,a),[t,a]},e.prototype.modPow=function(o,t){var a=o.bitLength(),r,i=St(1),s;if(a<=0)return i;a<18?r=1:a<48?r=3:a<144?r=4:a<768?r=5:r=6,a<8?s=new li(t):t.isEven()?s=new sc(t):s=new si(t);var l=[],d=3,c=r-1,f=(1<<r)-1;if(l[1]=s.convert(this),r>1){var y=ue();for(s.sqrTo(l[1],y);d<=f;)l[d]=ue(),s.mulTo(y,l[d-2],l[d]),d+=2}var u=o.t-1,h,m=!0,g=ue(),v;for(a=hn(o[u])-1;u>=0;){for(a>=c?h=o[u]>>a-c&f:(h=(o[u]&(1<<a+1)-1)<<c-a,u>0&&(h|=o[u-1]>>this.DB+a-c)),d=r;!(h&1);)h>>=1,--d;if((a-=d)<0&&(a+=this.DB,--u),m)l[h].copyTo(i),m=!1;else{for(;d>1;)s.sqrTo(i,g),s.sqrTo(g,i),d-=2;d>0?s.sqrTo(i,g):(v=i,i=g,g=v),s.mulTo(g,l[h],i)}for(;u>=0&&!(o[u]&1<<a);)s.sqrTo(i,g),v=i,i=g,g=v,--a<0&&(a=this.DB-1,--u)}return s.revert(i)},e.prototype.modInverse=function(o){var t=o.isEven();if(this.isEven()&&t||o.signum()==0)return e.ZERO;for(var a=o.clone(),r=this.clone(),i=St(1),s=St(0),l=St(0),d=St(1);a.signum()!=0;){for(;a.isEven();)a.rShiftTo(1,a),t?((!i.isEven()||!s.isEven())&&(i.addTo(this,i),s.subTo(o,s)),i.rShiftTo(1,i)):s.isEven()||s.subTo(o,s),s.rShiftTo(1,s);for(;r.isEven();)r.rShiftTo(1,r),t?((!l.isEven()||!d.isEven())&&(l.addTo(this,l),d.subTo(o,d)),l.rShiftTo(1,l)):d.isEven()||d.subTo(o,d),d.rShiftTo(1,d);a.compareTo(r)>=0?(a.subTo(r,a),t&&i.subTo(l,i),s.subTo(d,s)):(r.subTo(a,r),t&&l.subTo(i,l),d.subTo(s,d))}if(r.compareTo(e.ONE)!=0)return e.ZERO;if(d.compareTo(o)>=0)return d.subtract(o);if(d.signum()<0)d.addTo(o,d);else return d;return d.signum()<0?d.add(o):d},e.prototype.pow=function(o){return this.exp(o,new lc)},e.prototype.gcd=function(o){var t=this.s<0?this.negate():this.clone(),a=o.s<0?o.negate():o.clone();if(t.compareTo(a)<0){var r=t;t=a,a=r}var i=t.getLowestSetBit(),s=a.getLowestSetBit();if(s<0)return t;for(i<s&&(s=i),s>0&&(t.rShiftTo(s,t),a.rShiftTo(s,a));t.signum()>0;)(i=t.getLowestSetBit())>0&&t.rShiftTo(i,t),(i=a.getLowestSetBit())>0&&a.rShiftTo(i,a),t.compareTo(a)>=0?(t.subTo(a,t),t.rShiftTo(1,t)):(a.subTo(t,a),a.rShiftTo(1,a));return s>0&&a.lShiftTo(s,a),a},e.prototype.isProbablePrime=function(o){var t,a=this.abs();if(a.t==1&&a[0]<=Ge[Ge.length-1]){for(t=0;t<Ge.length;++t)if(a[0]==Ge[t])return!0;return!1}if(a.isEven())return!1;for(t=1;t<Ge.length;){for(var r=Ge[t],i=t+1;i<Ge.length&&r<ic;)r*=Ge[i++];for(r=a.modInt(r);t<i;)if(r%Ge[t++]==0)return!1}return a.millerRabin(o)},e.prototype.copyTo=function(o){for(var t=this.t-1;t>=0;--t)o[t]=this[t];o.t=this.t,o.s=this.s},e.prototype.fromInt=function(o){this.t=1,this.s=o<0?-1:0,o>0?this[0]=o:o<-1?this[0]=o+this.DV:this.t=0},e.prototype.fromString=function(o,t){var a;if(t==16)a=4;else if(t==8)a=3;else if(t==256)a=8;else if(t==2)a=1;else if(t==32)a=5;else if(t==4)a=2;else{this.fromRadix(o,t);return}this.t=0,this.s=0;for(var r=o.length,i=!1,s=0;--r>=0;){var l=a==8?+o[r]&255:di(o,r);if(l<0){o.charAt(r)=="-"&&(i=!0);continue}i=!1,s==0?this[this.t++]=l:s+a>this.DB?(this[this.t-1]|=(l&(1<<this.DB-s)-1)<<s,this[this.t++]=l>>this.DB-s):this[this.t-1]|=l<<s,s+=a,s>=this.DB&&(s-=this.DB)}a==8&&+o[0]&128&&(this.s=-1,s>0&&(this[this.t-1]|=(1<<this.DB-s)-1<<s)),this.clamp(),i&&e.ZERO.subTo(this,this)},e.prototype.clamp=function(){for(var o=this.s&this.DM;this.t>0&&this[this.t-1]==o;)--this.t},e.prototype.dlShiftTo=function(o,t){var a;for(a=this.t-1;a>=0;--a)t[a+o]=this[a];for(a=o-1;a>=0;--a)t[a]=0;t.t=this.t+o,t.s=this.s},e.prototype.drShiftTo=function(o,t){for(var a=o;a<this.t;++a)t[a-o]=this[a];t.t=Math.max(this.t-o,0),t.s=this.s},e.prototype.lShiftTo=function(o,t){for(var a=o%this.DB,r=this.DB-a,i=(1<<r)-1,s=Math.floor(o/this.DB),l=this.s<<a&this.DM,d=this.t-1;d>=0;--d)t[d+s+1]=this[d]>>r|l,l=(this[d]&i)<<a;for(var d=s-1;d>=0;--d)t[d]=0;t[s]=l,t.t=this.t+s+1,t.s=this.s,t.clamp()},e.prototype.rShiftTo=function(o,t){t.s=this.s;var a=Math.floor(o/this.DB);if(a>=this.t){t.t=0;return}var r=o%this.DB,i=this.DB-r,s=(1<<r)-1;t[0]=this[a]>>r;for(var l=a+1;l<this.t;++l)t[l-a-1]|=(this[l]&s)<<i,t[l-a]=this[l]>>r;r>0&&(t[this.t-a-1]|=(this.s&s)<<i),t.t=this.t-a,t.clamp()},e.prototype.subTo=function(o,t){for(var a=0,r=0,i=Math.min(o.t,this.t);a<i;)r+=this[a]-o[a],t[a++]=r&this.DM,r>>=this.DB;if(o.t<this.t){for(r-=o.s;a<this.t;)r+=this[a],t[a++]=r&this.DM,r>>=this.DB;r+=this.s}else{for(r+=this.s;a<o.t;)r-=o[a],t[a++]=r&this.DM,r>>=this.DB;r-=o.s}t.s=r<0?-1:0,r<-1?t[a++]=this.DV+r:r>0&&(t[a++]=r),t.t=a,t.clamp()},e.prototype.multiplyTo=function(o,t){var a=this.abs(),r=o.abs(),i=a.t;for(t.t=i+r.t;--i>=0;)t[i]=0;for(i=0;i<r.t;++i)t[i+a.t]=a.am(0,r[i],t,i,0,a.t);t.s=0,t.clamp(),this.s!=o.s&&e.ZERO.subTo(t,t)},e.prototype.squareTo=function(o){for(var t=this.abs(),a=o.t=2*t.t;--a>=0;)o[a]=0;for(a=0;a<t.t-1;++a){var r=t.am(a,t[a],o,2*a,0,1);(o[a+t.t]+=t.am(a+1,2*t[a],o,2*a+1,r,t.t-a-1))>=t.DV&&(o[a+t.t]-=t.DV,o[a+t.t+1]=1)}o.t>0&&(o[o.t-1]+=t.am(a,t[a],o,2*a,0,1)),o.s=0,o.clamp()},e.prototype.divRemTo=function(o,t,a){var r=o.abs();if(!(r.t<=0)){var i=this.abs();if(i.t<r.t){t!=null&&t.fromInt(0),a!=null&&this.copyTo(a);return}a==null&&(a=ue());var s=ue(),l=this.s,d=o.s,c=this.DB-hn(r[r.t-1]);c>0?(r.lShiftTo(c,s),i.lShiftTo(c,a)):(r.copyTo(s),i.copyTo(a));var f=s.t,y=s[f-1];if(y!=0){var u=y*(1<<this.F1)+(f>1?s[f-2]>>this.F2:0),h=this.FV/u,m=(1<<this.F1)/u,g=1<<this.F2,v=a.t,B=v-f,p=t??ue();for(s.dlShiftTo(B,p),a.compareTo(p)>=0&&(a[a.t++]=1,a.subTo(p,a)),e.ONE.dlShiftTo(f,p),p.subTo(s,s);s.t<f;)s[s.t++]=0;for(;--B>=0;){var b=a[--v]==y?this.DM:Math.floor(a[v]*h+(a[v-1]+g)*m);if((a[v]+=s.am(0,b,a,B,0,f))<b)for(s.dlShiftTo(B,p),a.subTo(p,a);a[v]<--b;)a.subTo(p,a)}t!=null&&(a.drShiftTo(f,t),l!=d&&e.ZERO.subTo(t,t)),a.t=f,a.clamp(),c>0&&a.rShiftTo(c,a),l<0&&e.ZERO.subTo(a,a)}}},e.prototype.invDigit=function(){if(this.t<1)return 0;var o=this[0];if(!(o&1))return 0;var t=o&3;return t=t*(2-(o&15)*t)&15,t=t*(2-(o&255)*t)&255,t=t*(2-((o&65535)*t&65535))&65535,t=t*(2-o*t%this.DV)%this.DV,t>0?this.DV-t:-t},e.prototype.isEven=function(){return(this.t>0?this[0]&1:this.s)==0},e.prototype.exp=function(o,t){if(o>4294967295||o<1)return e.ONE;var a=ue(),r=ue(),i=t.convert(this),s=hn(o)-1;for(i.copyTo(a);--s>=0;)if(t.sqrTo(a,r),(o&1<<s)>0)t.mulTo(r,i,a);else{var l=a;a=r,r=l}return t.revert(a)},e.prototype.chunkSize=function(o){return Math.floor(Math.LN2*this.DB/Math.log(o))},e.prototype.toRadix=function(o){if(o==null&&(o=10),this.signum()==0||o<2||o>36)return"0";var t=this.chunkSize(o),a=Math.pow(o,t),r=St(a),i=ue(),s=ue(),l="";for(this.divRemTo(r,i,s);i.signum()>0;)l=(a+s.intValue()).toString(o).substr(1)+l,i.divRemTo(r,i,s);return s.intValue().toString(o)+l},e.prototype.fromRadix=function(o,t){this.fromInt(0),t==null&&(t=10);for(var a=this.chunkSize(t),r=Math.pow(t,a),i=!1,s=0,l=0,d=0;d<o.length;++d){var c=di(o,d);if(c<0){o.charAt(d)=="-"&&this.signum()==0&&(i=!0);continue}l=t*l+c,++s>=a&&(this.dMultiply(r),this.dAddOffset(l,0),s=0,l=0)}s>0&&(this.dMultiply(Math.pow(t,s)),this.dAddOffset(l,0)),i&&e.ZERO.subTo(this,this)},e.prototype.fromNumber=function(o,t,a){if(typeof t=="number")if(o<2)this.fromInt(1);else for(this.fromNumber(o,a),this.testBit(o-1)||this.bitwiseTo(e.ONE.shiftLeft(o-1),dn,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(t);)this.dAddOffset(2,0),this.bitLength()>o&&this.subTo(e.ONE.shiftLeft(o-1),this);else{var r=[],i=o&7;r.length=(o>>3)+1,t.nextBytes(r),i>0?r[0]&=(1<<i)-1:r[0]=0,this.fromString(r,256)}},e.prototype.bitwiseTo=function(o,t,a){var r,i,s=Math.min(o.t,this.t);for(r=0;r<s;++r)a[r]=t(this[r],o[r]);if(o.t<this.t){for(i=o.s&this.DM,r=s;r<this.t;++r)a[r]=t(this[r],i);a.t=this.t}else{for(i=this.s&this.DM,r=s;r<o.t;++r)a[r]=t(i,o[r]);a.t=o.t}a.s=t(this.s,o.s),a.clamp()},e.prototype.changeBit=function(o,t){var a=e.ONE.shiftLeft(o);return this.bitwiseTo(a,t,a),a},e.prototype.addTo=function(o,t){for(var a=0,r=0,i=Math.min(o.t,this.t);a<i;)r+=this[a]+o[a],t[a++]=r&this.DM,r>>=this.DB;if(o.t<this.t){for(r+=o.s;a<this.t;)r+=this[a],t[a++]=r&this.DM,r>>=this.DB;r+=this.s}else{for(r+=this.s;a<o.t;)r+=o[a],t[a++]=r&this.DM,r>>=this.DB;r+=o.s}t.s=r<0?-1:0,r>0?t[a++]=r:r<-1&&(t[a++]=this.DV+r),t.t=a,t.clamp()},e.prototype.dMultiply=function(o){this[this.t]=this.am(0,o-1,this,0,0,this.t),++this.t,this.clamp()},e.prototype.dAddOffset=function(o,t){if(o!=0){for(;this.t<=t;)this[this.t++]=0;for(this[t]+=o;this[t]>=this.DV;)this[t]-=this.DV,++t>=this.t&&(this[this.t++]=0),++this[t]}},e.prototype.multiplyLowerTo=function(o,t,a){var r=Math.min(this.t+o.t,t);for(a.s=0,a.t=r;r>0;)a[--r]=0;for(var i=a.t-this.t;r<i;++r)a[r+this.t]=this.am(0,o[r],a,r,0,this.t);for(var i=Math.min(o.t,t);r<i;++r)this.am(0,o[r],a,r,0,t-r);a.clamp()},e.prototype.multiplyUpperTo=function(o,t,a){--t;var r=a.t=this.t+o.t-t;for(a.s=0;--r>=0;)a[r]=0;for(r=Math.max(t-this.t,0);r<o.t;++r)a[this.t+r-t]=this.am(t-r,o[r],a,0,0,this.t+r-t);a.clamp(),a.drShiftTo(1,a)},e.prototype.modInt=function(o){if(o<=0)return 0;var t=this.DV%o,a=this.s<0?o-1:0;if(this.t>0)if(t==0)a=this[0]%o;else for(var r=this.t-1;r>=0;--r)a=(t*a+this[r])%o;return a},e.prototype.millerRabin=function(o){var t=this.subtract(e.ONE),a=t.getLowestSetBit();if(a<=0)return!1;var r=t.shiftRight(a);o=o+1>>1,o>Ge.length&&(o=Ge.length);for(var i=ue(),s=0;s<o;++s){i.fromInt(Ge[Math.floor(Math.random()*Ge.length)]);var l=i.modPow(r,this);if(l.compareTo(e.ONE)!=0&&l.compareTo(t)!=0){for(var d=1;d++<a&&l.compareTo(t)!=0;)if(l=l.modPowInt(2,this),l.compareTo(e.ONE)==0)return!1;if(l.compareTo(t)!=0)return!1}}return!0},e.prototype.square=function(){var o=ue();return this.squareTo(o),o},e.prototype.gcda=function(o,t){var a=this.s<0?this.negate():this.clone(),r=o.s<0?o.negate():o.clone();if(a.compareTo(r)<0){var i=a;a=r,r=i}var s=a.getLowestSetBit(),l=r.getLowestSetBit();if(l<0){t(a);return}s<l&&(l=s),l>0&&(a.rShiftTo(l,a),r.rShiftTo(l,r));var d=function(){(s=a.getLowestSetBit())>0&&a.rShiftTo(s,a),(s=r.getLowestSetBit())>0&&r.rShiftTo(s,r),a.compareTo(r)>=0?(a.subTo(r,a),a.rShiftTo(1,a)):(r.subTo(a,r),r.rShiftTo(1,r)),a.signum()>0?setTimeout(d,0):(l>0&&r.lShiftTo(l,r),setTimeout(function(){t(r)},0))};setTimeout(d,10)},e.prototype.fromNumberAsync=function(o,t,a,r){if(typeof t=="number")if(o<2)this.fromInt(1);else{this.fromNumber(o,a),this.testBit(o-1)||this.bitwiseTo(e.ONE.shiftLeft(o-1),dn,this),this.isEven()&&this.dAddOffset(1,0);var i=this,s=function(){i.dAddOffset(2,0),i.bitLength()>o&&i.subTo(e.ONE.shiftLeft(o-1),i),i.isProbablePrime(t)?setTimeout(function(){r()},0):setTimeout(s,0)};setTimeout(s,0)}else{var l=[],d=o&7;l.length=(o>>3)+1,t.nextBytes(l),d>0?l[0]&=(1<<d)-1:l[0]=0,this.fromString(l,256)}},e}(),lc=function(){function e(){}return e.prototype.convert=function(o){return o},e.prototype.revert=function(o){return o},e.prototype.mulTo=function(o,t,a){o.multiplyTo(t,a)},e.prototype.sqrTo=function(o,t){o.squareTo(t)},e}(),li=function(){function e(o){this.m=o}return e.prototype.convert=function(o){return o.s<0||o.compareTo(this.m)>=0?o.mod(this.m):o},e.prototype.revert=function(o){return o},e.prototype.reduce=function(o){o.divRemTo(this.m,null,o)},e.prototype.mulTo=function(o,t,a){o.multiplyTo(t,a),this.reduce(a)},e.prototype.sqrTo=function(o,t){o.squareTo(t),this.reduce(t)},e}(),si=function(){function e(o){this.m=o,this.mp=o.invDigit(),this.mpl=this.mp&32767,this.mph=this.mp>>15,this.um=(1<<o.DB-15)-1,this.mt2=2*o.t}return e.prototype.convert=function(o){var t=ue();return o.abs().dlShiftTo(this.m.t,t),t.divRemTo(this.m,null,t),o.s<0&&t.compareTo(se.ZERO)>0&&this.m.subTo(t,t),t},e.prototype.revert=function(o){var t=ue();return o.copyTo(t),this.reduce(t),t},e.prototype.reduce=function(o){for(;o.t<=this.mt2;)o[o.t++]=0;for(var t=0;t<this.m.t;++t){var a=o[t]&32767,r=a*this.mpl+((a*this.mph+(o[t]>>15)*this.mpl&this.um)<<15)&o.DM;for(a=t+this.m.t,o[a]+=this.m.am(0,r,o,t,0,this.m.t);o[a]>=o.DV;)o[a]-=o.DV,o[++a]++}o.clamp(),o.drShiftTo(this.m.t,o),o.compareTo(this.m)>=0&&o.subTo(this.m,o)},e.prototype.mulTo=function(o,t,a){o.multiplyTo(t,a),this.reduce(a)},e.prototype.sqrTo=function(o,t){o.squareTo(t),this.reduce(t)},e}(),sc=function(){function e(o){this.m=o,this.r2=ue(),this.q3=ue(),se.ONE.dlShiftTo(2*o.t,this.r2),this.mu=this.r2.divide(o)}return e.prototype.convert=function(o){if(o.s<0||o.t>2*this.m.t)return o.mod(this.m);if(o.compareTo(this.m)<0)return o;var t=ue();return o.copyTo(t),this.reduce(t),t},e.prototype.revert=function(o){return o},e.prototype.reduce=function(o){for(o.drShiftTo(this.m.t-1,this.r2),o.t>this.m.t+1&&(o.t=this.m.t+1,o.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);o.compareTo(this.r2)<0;)o.dAddOffset(1,this.m.t+1);for(o.subTo(this.r2,o);o.compareTo(this.m)>=0;)o.subTo(this.m,o)},e.prototype.mulTo=function(o,t,a){o.multiplyTo(t,a),this.reduce(a)},e.prototype.sqrTo=function(o,t){o.squareTo(t),this.reduce(t)},e}();function ue(){return new se(null)}function Re(e,o){return new se(e,o)}var ci=typeof navigator<"u";ci&&ii&&navigator.appName=="Microsoft Internet Explorer"?(se.prototype.am=function(o,t,a,r,i,s){for(var l=t&32767,d=t>>15;--s>=0;){var c=this[o]&32767,f=this[o++]>>15,y=d*c+f*l;c=l*c+((y&32767)<<15)+a[r]+(i&1073741823),i=(c>>>30)+(y>>>15)+d*f+(i>>>30),a[r++]=c&1073741823}return i},vt=30):ci&&ii&&navigator.appName!="Netscape"?(se.prototype.am=function(o,t,a,r,i,s){for(;--s>=0;){var l=t*this[o++]+a[r]+i;i=Math.floor(l/67108864),a[r++]=l&67108863}return i},vt=26):(se.prototype.am=function(o,t,a,r,i,s){for(var l=t&16383,d=t>>14;--s>=0;){var c=this[o]&16383,f=this[o++]>>14,y=d*c+f*l;c=l*c+((y&16383)<<14)+a[r]+i,i=(c>>28)+(y>>14)+d*f,a[r++]=c&268435455}return i},vt=28),se.prototype.DB=vt,se.prototype.DM=(1<<vt)-1,se.prototype.DV=1<<vt;var ko=52;se.prototype.FV=Math.pow(2,ko),se.prototype.F1=ko-vt,se.prototype.F2=2*vt-ko;var un=[],jt,at;for(jt="0".charCodeAt(0),at=0;at<=9;++at)un[jt++]=at;for(jt="a".charCodeAt(0),at=10;at<36;++at)un[jt++]=at;for(jt="A".charCodeAt(0),at=10;at<36;++at)un[jt++]=at;function di(e,o){var t=un[e.charCodeAt(o)];return t??-1}function St(e){var o=ue();return o.fromInt(e),o}function hn(e){var o=1,t;return(t=e>>>16)!=0&&(e=t,o+=16),(t=e>>8)!=0&&(e=t,o+=8),(t=e>>4)!=0&&(e=t,o+=4),(t=e>>2)!=0&&(e=t,o+=2),(t=e>>1)!=0&&(e=t,o+=1),o}se.ZERO=St(0),se.ONE=St(1);var cc=function(){function e(){this.i=0,this.j=0,this.S=[]}return e.prototype.init=function(o){var t,a,r;for(t=0;t<256;++t)this.S[t]=t;for(a=0,t=0;t<256;++t)a=a+this.S[t]+o[t%o.length]&255,r=this.S[t],this.S[t]=this.S[a],this.S[a]=r;this.i=0,this.j=0},e.prototype.next=function(){var o;return this.i=this.i+1&255,this.j=this.j+this.S[this.i]&255,o=this.S[this.i],this.S[this.i]=this.S[this.j],this.S[this.j]=o,this.S[o+this.S[this.i]&255]},e}();function dc(){return new cc}var fi=256,gn,Ct=null,ct;if(Ct==null){Ct=[],ct=0;var mn=void 0;if(typeof window<"u"&&window.crypto&&window.crypto.getRandomValues){var To=new Uint32Array(256);for(window.crypto.getRandomValues(To),mn=0;mn<To.length;++mn)Ct[ct++]=To[mn]&255}var yn=0,xn=function(e){if(yn=yn||0,yn>=256||ct>=fi){window.removeEventListener?window.removeEventListener("mousemove",xn,!1):window.detachEvent&&window.detachEvent("onmousemove",xn);return}try{var o=e.x+e.y;Ct[ct++]=o&255,yn+=1}catch{}};typeof window<"u"&&(window.addEventListener?window.addEventListener("mousemove",xn,!1):window.attachEvent&&window.attachEvent("onmousemove",xn))}function fc(){if(gn==null){for(gn=dc();ct<fi;){var e=Math.floor(65536*Math.random());Ct[ct++]=e&255}for(gn.init(Ct),ct=0;ct<Ct.length;++ct)Ct[ct]=0;ct=0}return gn.next()}var Bo=function(){function e(){}return e.prototype.nextBytes=function(o){for(var t=0;t<o.length;++t)o[t]=fc()},e}();function uc(e,o){if(o<e.length+22)return console.error("Message too long for RSA"),null;for(var t=o-e.length-6,a="",r=0;r<t;r+=2)a+="ff";var i="0001"+a+"00"+e;return Re(i,16)}function hc(e,o){if(o<e.length+11)return console.error("Message too long for RSA"),null;for(var t=[],a=e.length-1;a>=0&&o>0;){var r=e.charCodeAt(a--);r<128?t[--o]=r:r>127&&r<2048?(t[--o]=r&63|128,t[--o]=r>>6|192):(t[--o]=r&63|128,t[--o]=r>>6&63|128,t[--o]=r>>12|224)}t[--o]=0;for(var i=new Bo,s=[];o>2;){for(s[0]=0;s[0]==0;)i.nextBytes(s);t[--o]=s[0]}return t[--o]=2,t[--o]=0,new se(t)}var gc=function(){function e(){this.n=null,this.e=0,this.d=null,this.p=null,this.q=null,this.dmp1=null,this.dmq1=null,this.coeff=null}return e.prototype.doPublic=function(o){return o.modPowInt(this.e,this.n)},e.prototype.doPrivate=function(o){if(this.p==null||this.q==null)return o.modPow(this.d,this.n);for(var t=o.mod(this.p).modPow(this.dmp1,this.p),a=o.mod(this.q).modPow(this.dmq1,this.q);t.compareTo(a)<0;)t=t.add(this.p);return t.subtract(a).multiply(this.coeff).mod(this.p).multiply(this.q).add(a)},e.prototype.setPublic=function(o,t){o!=null&&t!=null&&o.length>0&&t.length>0?(this.n=Re(o,16),this.e=parseInt(t,16)):console.error("Invalid RSA public key")},e.prototype.encrypt=function(o){var t=this.n.bitLength()+7>>3,a=hc(o,t);if(a==null)return null;var r=this.doPublic(a);if(r==null)return null;for(var i=r.toString(16),s=i.length,l=0;l<t*2-s;l++)i="0"+i;return i},e.prototype.setPrivate=function(o,t,a){o!=null&&t!=null&&o.length>0&&t.length>0?(this.n=Re(o,16),this.e=parseInt(t,16),this.d=Re(a,16)):console.error("Invalid RSA private key")},e.prototype.setPrivateEx=function(o,t,a,r,i,s,l,d){o!=null&&t!=null&&o.length>0&&t.length>0?(this.n=Re(o,16),this.e=parseInt(t,16),this.d=Re(a,16),this.p=Re(r,16),this.q=Re(i,16),this.dmp1=Re(s,16),this.dmq1=Re(l,16),this.coeff=Re(d,16)):console.error("Invalid RSA private key")},e.prototype.generate=function(o,t){var a=new Bo,r=o>>1;this.e=parseInt(t,16);for(var i=new se(t,16);;){for(;this.p=new se(o-r,1,a),!(this.p.subtract(se.ONE).gcd(i).compareTo(se.ONE)==0&&this.p.isProbablePrime(10)););for(;this.q=new se(r,1,a),!(this.q.subtract(se.ONE).gcd(i).compareTo(se.ONE)==0&&this.q.isProbablePrime(10)););if(this.p.compareTo(this.q)<=0){var s=this.p;this.p=this.q,this.q=s}var l=this.p.subtract(se.ONE),d=this.q.subtract(se.ONE),c=l.multiply(d);if(c.gcd(i).compareTo(se.ONE)==0){this.n=this.p.multiply(this.q),this.d=i.modInverse(c),this.dmp1=this.d.mod(l),this.dmq1=this.d.mod(d),this.coeff=this.q.modInverse(this.p);break}}},e.prototype.decrypt=function(o){var t=Re(o,16),a=this.doPrivate(t);return a==null?null:mc(a,this.n.bitLength()+7>>3)},e.prototype.generateAsync=function(o,t,a){var r=new Bo,i=o>>1;this.e=parseInt(t,16);var s=new se(t,16),l=this,d=function(){var c=function(){if(l.p.compareTo(l.q)<=0){var u=l.p;l.p=l.q,l.q=u}var h=l.p.subtract(se.ONE),m=l.q.subtract(se.ONE),g=h.multiply(m);g.gcd(s).compareTo(se.ONE)==0?(l.n=l.p.multiply(l.q),l.d=s.modInverse(g),l.dmp1=l.d.mod(h),l.dmq1=l.d.mod(m),l.coeff=l.q.modInverse(l.p),setTimeout(function(){a()},0)):setTimeout(d,0)},f=function(){l.q=ue(),l.q.fromNumberAsync(i,1,r,function(){l.q.subtract(se.ONE).gcda(s,function(u){u.compareTo(se.ONE)==0&&l.q.isProbablePrime(10)?setTimeout(c,0):setTimeout(f,0)})})},y=function(){l.p=ue(),l.p.fromNumberAsync(o-i,1,r,function(){l.p.subtract(se.ONE).gcda(s,function(u){u.compareTo(se.ONE)==0&&l.p.isProbablePrime(10)?setTimeout(f,0):setTimeout(y,0)})})};setTimeout(y,0)};setTimeout(d,0)},e.prototype.sign=function(o,t,a){var r=yc(a),i=r+t(o).toString(),s=uc(i,this.n.bitLength()/4);if(s==null)return null;var l=this.doPrivate(s);if(l==null)return null;var d=l.toString(16);return d.length&1?"0"+d:d},e.prototype.verify=function(o,t,a){var r=Re(t,16),i=this.doPublic(r);if(i==null)return null;var s=i.toString(16).replace(/^1f+00/,""),l=xc(s);return l==a(o).toString()},e}();function mc(e,o){for(var t=e.toByteArray(),a=0;a<t.length&&t[a]==0;)++a;if(t.length-a!=o-1||t[a]!=2)return null;for(++a;t[a]!=0;)if(++a>=t.length)return null;for(var r="";++a<t.length;){var i=t[a]&255;i<128?r+=String.fromCharCode(i):i>191&&i<224?(r+=String.fromCharCode((i&31)<<6|t[a+1]&63),++a):(r+=String.fromCharCode((i&15)<<12|(t[a+1]&63)<<6|t[a+2]&63),a+=2)}return r}var pn={md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",ripemd160:"3021300906052b2403020105000414"};function yc(e){return pn[e]||""}function xc(e){for(var o in pn)if(pn.hasOwnProperty(o)){var t=pn[o],a=t.length;if(e.substr(0,a)==t)return e.substr(a)}return e}/*!
|
|
79
79
|
Copyright (c) 2011, Yahoo! Inc. All rights reserved.
|
|
80
80
|
Code licensed under the BSD License:
|
|
81
81
|
http://developer.yahoo.com/yui/license.html
|
|
82
82
|
version: 2.9.0
|
|
83
|
-
*/var _e={};_e.lang={extend:function(e,o,t){if(!o||!e)throw new Error("YAHOO.lang.extend failed, please check that all dependencies are included.");var a=function(){};if(a.prototype=o.prototype,e.prototype=new a,e.prototype.constructor=e,e.superclass=o.prototype,o.prototype.constructor==Object.prototype.constructor&&(o.prototype.constructor=o),t){var r;for(r in t)e.prototype[r]=t[r];var i=function(){},s=["toString","valueOf"];try{/MSIE/.test(navigator.userAgent)&&(i=function(l,d){for(r=0;r<s.length;r=r+1){var c=s[r],
|
|
83
|
+
*/var _e={};_e.lang={extend:function(e,o,t){if(!o||!e)throw new Error("YAHOO.lang.extend failed, please check that all dependencies are included.");var a=function(){};if(a.prototype=o.prototype,e.prototype=new a,e.prototype.constructor=e,e.superclass=o.prototype,o.prototype.constructor==Object.prototype.constructor&&(o.prototype.constructor=o),t){var r;for(r in t)e.prototype[r]=t[r];var i=function(){},s=["toString","valueOf"];try{/MSIE/.test(navigator.userAgent)&&(i=function(l,d){for(r=0;r<s.length;r=r+1){var c=s[r],f=d[c];typeof f=="function"&&f!=Object.prototype[c]&&(l[c]=f)}})}catch{}i(e.prototype,t)}}};/**
|
|
84
84
|
* @fileOverview
|
|
85
85
|
* @name asn1-1.0.js
|
|
86
86
|
* @author Kenji Urushima kenji.urushima@gmail.com
|
|
87
87
|
* @version asn1 1.0.13 (2017-Jun-02)
|
|
88
88
|
* @since jsrsasign 2.1
|
|
89
89
|
* @license <a href="https://kjur.github.io/jsrsasign/license/">MIT License</a>
|
|
90
|
-
*/var G={};(typeof G.asn1>"u"||!G.asn1)&&(G.asn1={}),G.asn1.ASN1Util=new function(){this.integerToByteHex=function(e){var o=e.toString(16);return o.length%2==1&&(o="0"+o),o},this.bigIntToMinTwosComplementsHex=function(e){var o=e.toString(16);if(o.substr(0,1)!="-")o.length%2==1?o="0"+o:o.match(/^[0-7]/)||(o="00"+o);else{var t=o.substr(1),a=t.length;a%2==1?a+=1:o.match(/^[0-7]/)||(a+=2);for(var r="",i=0;i<a;i++)r+="f";var s=new se(r,16),l=s.xor(e).add(se.ONE);o=l.toString(16).replace(/^-/,"")}return o},this.getPEMStringFromHex=function(e,o){return hextopem(e,o)},this.newObject=function(e){var o=G,t=o.asn1,a=t.DERBoolean,r=t.DERInteger,i=t.DERBitString,s=t.DEROctetString,l=t.DERNull,d=t.DERObjectIdentifier,c=t.DEREnumerated,g=t.DERUTF8String,h=t.DERNumericString,y=t.DERPrintableString,u=t.DERTeletexString,m=t.DERIA5String,f=t.DERUTCTime,S=t.DERGeneralizedTime,B=t.DERSequence,p=t.DERSet,b=t.DERTaggedObject,x=t.ASN1Util.newObject,A=Object.keys(e);if(A.length!=1)throw"key of param shall be only one.";var k=A[0];if(":bool:int:bitstr:octstr:null:oid:enum:utf8str:numstr:prnstr:telstr:ia5str:utctime:gentime:seq:set:tag:".indexOf(":"+k+":")==-1)throw"undefined key: "+k;if(k=="bool")return new a(e[k]);if(k=="int")return new r(e[k]);if(k=="bitstr")return new i(e[k]);if(k=="octstr")return new s(e[k]);if(k=="null")return new l(e[k]);if(k=="oid")return new d(e[k]);if(k=="enum")return new c(e[k]);if(k=="utf8str")return new g(e[k]);if(k=="numstr")return new h(e[k]);if(k=="prnstr")return new y(e[k]);if(k=="telstr")return new u(e[k]);if(k=="ia5str")return new m(e[k]);if(k=="utctime")return new f(e[k]);if(k=="gentime")return new S(e[k]);if(k=="seq"){for(var D=e[k],O=[],N=0;N<D.length;N++){var C=x(D[N]);O.push(C)}return new B({array:O})}if(k=="set"){for(var D=e[k],O=[],N=0;N<D.length;N++){var C=x(D[N]);O.push(C)}return new p({array:O})}if(k=="tag"){var T=e[k];if(Object.prototype.toString.call(T)==="[object Array]"&&T.length==3){var R=x(T[2]);return new b({tag:T[0],explicit:T[1],obj:R})}else{var v={};if(T.explicit!==void 0&&(v.explicit=T.explicit),T.tag!==void 0&&(v.tag=T.tag),T.obj===void 0)throw"obj shall be specified for 'tag'.";return v.obj=x(T.obj),new b(v)}}},this.jsonToASN1HEX=function(e){var o=this.newObject(e);return o.getEncodedHex()}},G.asn1.ASN1Util.oidHexToInt=function(e){for(var r="",o=parseInt(e.substr(0,2),16),t=Math.floor(o/40),a=o%40,r=t+"."+a,i="",s=2;s<e.length;s+=2){var l=parseInt(e.substr(s,2),16),d=("00000000"+l.toString(2)).slice(-8);if(i=i+d.substr(1,7),d.substr(0,1)=="0"){var c=new se(i,2);r=r+"."+c.toString(10),i=""}}return r},G.asn1.ASN1Util.oidIntToHex=function(e){var o=function(l){var d=l.toString(16);return d.length==1&&(d="0"+d),d},t=function(l){var d="",c=new se(l,10),g=c.toString(2),h=7-g.length%7;h==7&&(h=0);for(var y="",u=0;u<h;u++)y+="0";g=y+g;for(var u=0;u<g.length-1;u+=7){var m=g.substr(u,7);u!=g.length-7&&(m="1"+m),d+=o(parseInt(m,2))}return d};if(!e.match(/^[0-9.]+$/))throw"malformed oid string: "+e;var a="",r=e.split("."),i=parseInt(r[0])*40+parseInt(r[1]);a+=o(i),r.splice(0,2);for(var s=0;s<r.length;s++)a+=t(r[s]);return a},G.asn1.ASN1Object=function(){var e="";this.getLengthHexFromValue=function(){if(typeof this.hV>"u"||this.hV==null)throw"this.hV is null or undefined.";if(this.hV.length%2==1)throw"value hex must be even length: n="+e.length+",v="+this.hV;var o=this.hV.length/2,t=o.toString(16);if(t.length%2==1&&(t="0"+t),o<128)return t;var a=t.length/2;if(a>15)throw"ASN.1 length too long to represent by 8x: n = "+o.toString(16);var r=128+a;return r.toString(16)+t},this.getEncodedHex=function(){return(this.hTLV==null||this.isModified)&&(this.hV=this.getFreshValueHex(),this.hL=this.getLengthHexFromValue(),this.hTLV=this.hT+this.hL+this.hV,this.isModified=!1),this.hTLV},this.getValueHex=function(){return this.getEncodedHex(),this.hV},this.getFreshValueHex=function(){return""}},G.asn1.DERAbstractString=function(e){G.asn1.DERAbstractString.superclass.constructor.call(this),this.getString=function(){return this.s},this.setString=function(o){this.hTLV=null,this.isModified=!0,this.s=o,this.hV=stohex(this.s)},this.setStringHex=function(o){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=o},this.getFreshValueHex=function(){return this.hV},typeof e<"u"&&(typeof e=="string"?this.setString(e):typeof e.str<"u"?this.setString(e.str):typeof e.hex<"u"&&this.setStringHex(e.hex))},_e.lang.extend(G.asn1.DERAbstractString,G.asn1.ASN1Object),G.asn1.DERAbstractTime=function(e){G.asn1.DERAbstractTime.superclass.constructor.call(this),this.localDateToUTC=function(o){utc=o.getTime()+o.getTimezoneOffset()*6e4;var t=new Date(utc);return t},this.formatDate=function(o,t,a){var r=this.zeroPadding,i=this.localDateToUTC(o),s=String(i.getFullYear());t=="utc"&&(s=s.substr(2,2));var l=r(String(i.getMonth()+1),2),d=r(String(i.getDate()),2),c=r(String(i.getHours()),2),g=r(String(i.getMinutes()),2),h=r(String(i.getSeconds()),2),y=s+l+d+c+g+h;if(a===!0){var u=i.getMilliseconds();if(u!=0){var m=r(String(u),3);m=m.replace(/[0]+$/,""),y=y+"."+m}}return y+"Z"},this.zeroPadding=function(o,t){return o.length>=t?o:new Array(t-o.length+1).join("0")+o},this.getString=function(){return this.s},this.setString=function(o){this.hTLV=null,this.isModified=!0,this.s=o,this.hV=stohex(o)},this.setByDateValue=function(o,t,a,r,i,s){var l=new Date(Date.UTC(o,t-1,a,r,i,s,0));this.setByDate(l)},this.getFreshValueHex=function(){return this.hV}},_e.lang.extend(G.asn1.DERAbstractTime,G.asn1.ASN1Object),G.asn1.DERAbstractStructured=function(e){G.asn1.DERAbstractString.superclass.constructor.call(this),this.setByASN1ObjectArray=function(o){this.hTLV=null,this.isModified=!0,this.asn1Array=o},this.appendASN1Object=function(o){this.hTLV=null,this.isModified=!0,this.asn1Array.push(o)},this.asn1Array=new Array,typeof e<"u"&&typeof e.array<"u"&&(this.asn1Array=e.array)},_e.lang.extend(G.asn1.DERAbstractStructured,G.asn1.ASN1Object),G.asn1.DERBoolean=function(){G.asn1.DERBoolean.superclass.constructor.call(this),this.hT="01",this.hTLV="0101ff"},_e.lang.extend(G.asn1.DERBoolean,G.asn1.ASN1Object),G.asn1.DERInteger=function(e){G.asn1.DERInteger.superclass.constructor.call(this),this.hT="02",this.setByBigInteger=function(o){this.hTLV=null,this.isModified=!0,this.hV=G.asn1.ASN1Util.bigIntToMinTwosComplementsHex(o)},this.setByInteger=function(o){var t=new se(String(o),10);this.setByBigInteger(t)},this.setValueHex=function(o){this.hV=o},this.getFreshValueHex=function(){return this.hV},typeof e<"u"&&(typeof e.bigint<"u"?this.setByBigInteger(e.bigint):typeof e.int<"u"?this.setByInteger(e.int):typeof e=="number"?this.setByInteger(e):typeof e.hex<"u"&&this.setValueHex(e.hex))},_e.lang.extend(G.asn1.DERInteger,G.asn1.ASN1Object),G.asn1.DERBitString=function(e){if(e!==void 0&&typeof e.obj<"u"){var o=G.asn1.ASN1Util.newObject(e.obj);e.hex="00"+o.getEncodedHex()}G.asn1.DERBitString.superclass.constructor.call(this),this.hT="03",this.setHexValueIncludingUnusedBits=function(t){this.hTLV=null,this.isModified=!0,this.hV=t},this.setUnusedBitsAndHexValue=function(t,a){if(t<0||7<t)throw"unused bits shall be from 0 to 7: u = "+t;var r="0"+t;this.hTLV=null,this.isModified=!0,this.hV=r+a},this.setByBinaryString=function(t){t=t.replace(/0+$/,"");var a=8-t.length%8;a==8&&(a=0);for(var r=0;r<=a;r++)t+="0";for(var i="",r=0;r<t.length-1;r+=8){var s=t.substr(r,8),l=parseInt(s,2).toString(16);l.length==1&&(l="0"+l),i+=l}this.hTLV=null,this.isModified=!0,this.hV="0"+a+i},this.setByBooleanArray=function(t){for(var a="",r=0;r<t.length;r++)t[r]==!0?a+="1":a+="0";this.setByBinaryString(a)},this.newFalseArray=function(t){for(var a=new Array(t),r=0;r<t;r++)a[r]=!1;return a},this.getFreshValueHex=function(){return this.hV},typeof e<"u"&&(typeof e=="string"&&e.toLowerCase().match(/^[0-9a-f]+$/)?this.setHexValueIncludingUnusedBits(e):typeof e.hex<"u"?this.setHexValueIncludingUnusedBits(e.hex):typeof e.bin<"u"?this.setByBinaryString(e.bin):typeof e.array<"u"&&this.setByBooleanArray(e.array))},_e.lang.extend(G.asn1.DERBitString,G.asn1.ASN1Object),G.asn1.DEROctetString=function(e){if(e!==void 0&&typeof e.obj<"u"){var o=G.asn1.ASN1Util.newObject(e.obj);e.hex=o.getEncodedHex()}G.asn1.DEROctetString.superclass.constructor.call(this,e),this.hT="04"},_e.lang.extend(G.asn1.DEROctetString,G.asn1.DERAbstractString),G.asn1.DERNull=function(){G.asn1.DERNull.superclass.constructor.call(this),this.hT="05",this.hTLV="0500"},_e.lang.extend(G.asn1.DERNull,G.asn1.ASN1Object),G.asn1.DERObjectIdentifier=function(e){var o=function(a){var r=a.toString(16);return r.length==1&&(r="0"+r),r},t=function(a){var r="",i=new se(a,10),s=i.toString(2),l=7-s.length%7;l==7&&(l=0);for(var d="",c=0;c<l;c++)d+="0";s=d+s;for(var c=0;c<s.length-1;c+=7){var g=s.substr(c,7);c!=s.length-7&&(g="1"+g),r+=o(parseInt(g,2))}return r};G.asn1.DERObjectIdentifier.superclass.constructor.call(this),this.hT="06",this.setValueHex=function(a){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=a},this.setValueOidString=function(a){if(!a.match(/^[0-9.]+$/))throw"malformed oid string: "+a;var r="",i=a.split("."),s=parseInt(i[0])*40+parseInt(i[1]);r+=o(s),i.splice(0,2);for(var l=0;l<i.length;l++)r+=t(i[l]);this.hTLV=null,this.isModified=!0,this.s=null,this.hV=r},this.setValueName=function(a){var r=G.asn1.x509.OID.name2oid(a);if(r!=="")this.setValueOidString(r);else throw"DERObjectIdentifier oidName undefined: "+a},this.getFreshValueHex=function(){return this.hV},e!==void 0&&(typeof e=="string"?e.match(/^[0-2].[0-9.]+$/)?this.setValueOidString(e):this.setValueName(e):e.oid!==void 0?this.setValueOidString(e.oid):e.hex!==void 0?this.setValueHex(e.hex):e.name!==void 0&&this.setValueName(e.name))},_e.lang.extend(G.asn1.DERObjectIdentifier,G.asn1.ASN1Object),G.asn1.DEREnumerated=function(e){G.asn1.DEREnumerated.superclass.constructor.call(this),this.hT="0a",this.setByBigInteger=function(o){this.hTLV=null,this.isModified=!0,this.hV=G.asn1.ASN1Util.bigIntToMinTwosComplementsHex(o)},this.setByInteger=function(o){var t=new se(String(o),10);this.setByBigInteger(t)},this.setValueHex=function(o){this.hV=o},this.getFreshValueHex=function(){return this.hV},typeof e<"u"&&(typeof e.int<"u"?this.setByInteger(e.int):typeof e=="number"?this.setByInteger(e):typeof e.hex<"u"&&this.setValueHex(e.hex))},_e.lang.extend(G.asn1.DEREnumerated,G.asn1.ASN1Object),G.asn1.DERUTF8String=function(e){G.asn1.DERUTF8String.superclass.constructor.call(this,e),this.hT="0c"},_e.lang.extend(G.asn1.DERUTF8String,G.asn1.DERAbstractString),G.asn1.DERNumericString=function(e){G.asn1.DERNumericString.superclass.constructor.call(this,e),this.hT="12"},_e.lang.extend(G.asn1.DERNumericString,G.asn1.DERAbstractString),G.asn1.DERPrintableString=function(e){G.asn1.DERPrintableString.superclass.constructor.call(this,e),this.hT="13"},_e.lang.extend(G.asn1.DERPrintableString,G.asn1.DERAbstractString),G.asn1.DERTeletexString=function(e){G.asn1.DERTeletexString.superclass.constructor.call(this,e),this.hT="14"},_e.lang.extend(G.asn1.DERTeletexString,G.asn1.DERAbstractString),G.asn1.DERIA5String=function(e){G.asn1.DERIA5String.superclass.constructor.call(this,e),this.hT="16"},_e.lang.extend(G.asn1.DERIA5String,G.asn1.DERAbstractString),G.asn1.DERUTCTime=function(e){G.asn1.DERUTCTime.superclass.constructor.call(this,e),this.hT="17",this.setByDate=function(o){this.hTLV=null,this.isModified=!0,this.date=o,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)},this.getFreshValueHex=function(){return typeof this.date>"u"&&typeof this.s>"u"&&(this.date=new Date,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)),this.hV},e!==void 0&&(e.str!==void 0?this.setString(e.str):typeof e=="string"&&e.match(/^[0-9]{12}Z$/)?this.setString(e):e.hex!==void 0?this.setStringHex(e.hex):e.date!==void 0&&this.setByDate(e.date))},_e.lang.extend(G.asn1.DERUTCTime,G.asn1.DERAbstractTime),G.asn1.DERGeneralizedTime=function(e){G.asn1.DERGeneralizedTime.superclass.constructor.call(this,e),this.hT="18",this.withMillis=!1,this.setByDate=function(o){this.hTLV=null,this.isModified=!0,this.date=o,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=stohex(this.s)},this.getFreshValueHex=function(){return this.date===void 0&&this.s===void 0&&(this.date=new Date,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=stohex(this.s)),this.hV},e!==void 0&&(e.str!==void 0?this.setString(e.str):typeof e=="string"&&e.match(/^[0-9]{14}Z$/)?this.setString(e):e.hex!==void 0?this.setStringHex(e.hex):e.date!==void 0&&this.setByDate(e.date),e.millis===!0&&(this.withMillis=!0))},_e.lang.extend(G.asn1.DERGeneralizedTime,G.asn1.DERAbstractTime),G.asn1.DERSequence=function(e){G.asn1.DERSequence.superclass.constructor.call(this,e),this.hT="30",this.getFreshValueHex=function(){for(var o="",t=0;t<this.asn1Array.length;t++){var a=this.asn1Array[t];o+=a.getEncodedHex()}return this.hV=o,this.hV}},_e.lang.extend(G.asn1.DERSequence,G.asn1.DERAbstractStructured),G.asn1.DERSet=function(e){G.asn1.DERSet.superclass.constructor.call(this,e),this.hT="31",this.sortFlag=!0,this.getFreshValueHex=function(){for(var o=new Array,t=0;t<this.asn1Array.length;t++){var a=this.asn1Array[t];o.push(a.getEncodedHex())}return this.sortFlag==!0&&o.sort(),this.hV=o.join(""),this.hV},typeof e<"u"&&typeof e.sortflag<"u"&&e.sortflag==!1&&(this.sortFlag=!1)},_e.lang.extend(G.asn1.DERSet,G.asn1.DERAbstractStructured),G.asn1.DERTaggedObject=function(e){G.asn1.DERTaggedObject.superclass.constructor.call(this),this.hT="a0",this.hV="",this.isExplicit=!0,this.asn1Object=null,this.setASN1Object=function(o,t,a){this.hT=t,this.isExplicit=o,this.asn1Object=a,this.isExplicit?(this.hV=this.asn1Object.getEncodedHex(),this.hTLV=null,this.isModified=!0):(this.hV=null,this.hTLV=a.getEncodedHex(),this.hTLV=this.hTLV.replace(/^../,t),this.isModified=!1)},this.getFreshValueHex=function(){return this.hV},typeof e<"u"&&(typeof e.tag<"u"&&(this.hT=e.tag),typeof e.explicit<"u"&&(this.isExplicit=e.explicit),typeof e.obj<"u"&&(this.asn1Object=e.obj,this.setASN1Object(this.isExplicit,this.hT,this.asn1Object)))},_e.lang.extend(G.asn1.DERTaggedObject,G.asn1.ASN1Object);var nc=globalThis&&globalThis.__extends||function(){var e=function(o,t){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,r){a.__proto__=r}||function(a,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(a[i]=r[i])},e(o,t)};return function(o,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");e(o,t);function a(){this.constructor=o}o.prototype=t===null?Object.create(t):(a.prototype=t.prototype,new a)}}(),li=function(e){nc(o,e);function o(t){var a=e.call(this)||this;return t&&(typeof t=="string"?a.parseKey(t):(o.hasPrivateKeyProperty(t)||o.hasPublicKeyProperty(t))&&a.parsePropertiesFrom(t)),a}return o.prototype.parseKey=function(t){try{var a=0,r=0,i=/^\s*(?:[0-9A-Fa-f][0-9A-Fa-f]\s*)+$/,s=i.test(t)?Ps.decode(t):Co.unarmor(t),l=Vs.decode(s);if(l.sub.length===3&&(l=l.sub[2].sub[0]),l.sub.length===9){a=l.sub[1].getHexStringValue(),this.n=Re(a,16),r=l.sub[2].getHexStringValue(),this.e=parseInt(r,16);var d=l.sub[3].getHexStringValue();this.d=Re(d,16);var c=l.sub[4].getHexStringValue();this.p=Re(c,16);var g=l.sub[5].getHexStringValue();this.q=Re(g,16);var h=l.sub[6].getHexStringValue();this.dmp1=Re(h,16);var y=l.sub[7].getHexStringValue();this.dmq1=Re(y,16);var u=l.sub[8].getHexStringValue();this.coeff=Re(u,16)}else if(l.sub.length===2)if(l.sub[0].sub){var m=l.sub[1],f=m.sub[0];a=f.sub[0].getHexStringValue(),this.n=Re(a,16),r=f.sub[1].getHexStringValue(),this.e=parseInt(r,16)}else a=l.sub[0].getHexStringValue(),this.n=Re(a,16),r=l.sub[1].getHexStringValue(),this.e=parseInt(r,16);else return!1;return!0}catch{return!1}},o.prototype.getPrivateBaseKey=function(){var t={array:[new G.asn1.DERInteger({int:0}),new G.asn1.DERInteger({bigint:this.n}),new G.asn1.DERInteger({int:this.e}),new G.asn1.DERInteger({bigint:this.d}),new G.asn1.DERInteger({bigint:this.p}),new G.asn1.DERInteger({bigint:this.q}),new G.asn1.DERInteger({bigint:this.dmp1}),new G.asn1.DERInteger({bigint:this.dmq1}),new G.asn1.DERInteger({bigint:this.coeff})]},a=new G.asn1.DERSequence(t);return a.getEncodedHex()},o.prototype.getPrivateBaseKeyB64=function(){return dn(this.getPrivateBaseKey())},o.prototype.getPublicBaseKey=function(){var t=new G.asn1.DERSequence({array:[new G.asn1.DERObjectIdentifier({oid:"1.2.840.113549.1.1.1"}),new G.asn1.DERNull]}),a=new G.asn1.DERSequence({array:[new G.asn1.DERInteger({bigint:this.n}),new G.asn1.DERInteger({int:this.e})]}),r=new G.asn1.DERBitString({hex:"00"+a.getEncodedHex()}),i=new G.asn1.DERSequence({array:[t,r]});return i.getEncodedHex()},o.prototype.getPublicBaseKeyB64=function(){return dn(this.getPublicBaseKey())},o.wordwrap=function(t,a){if(a=a||64,!t)return t;var r="(.{1,"+a+`})( +|$
|
|
90
|
+
*/var G={};(typeof G.asn1>"u"||!G.asn1)&&(G.asn1={}),G.asn1.ASN1Util=new function(){this.integerToByteHex=function(e){var o=e.toString(16);return o.length%2==1&&(o="0"+o),o},this.bigIntToMinTwosComplementsHex=function(e){var o=e.toString(16);if(o.substr(0,1)!="-")o.length%2==1?o="0"+o:o.match(/^[0-7]/)||(o="00"+o);else{var t=o.substr(1),a=t.length;a%2==1?a+=1:o.match(/^[0-7]/)||(a+=2);for(var r="",i=0;i<a;i++)r+="f";var s=new se(r,16),l=s.xor(e).add(se.ONE);o=l.toString(16).replace(/^-/,"")}return o},this.getPEMStringFromHex=function(e,o){return hextopem(e,o)},this.newObject=function(e){var o=G,t=o.asn1,a=t.DERBoolean,r=t.DERInteger,i=t.DERBitString,s=t.DEROctetString,l=t.DERNull,d=t.DERObjectIdentifier,c=t.DEREnumerated,f=t.DERUTF8String,y=t.DERNumericString,u=t.DERPrintableString,h=t.DERTeletexString,m=t.DERIA5String,g=t.DERUTCTime,v=t.DERGeneralizedTime,B=t.DERSequence,p=t.DERSet,b=t.DERTaggedObject,x=t.ASN1Util.newObject,A=Object.keys(e);if(A.length!=1)throw"key of param shall be only one.";var k=A[0];if(":bool:int:bitstr:octstr:null:oid:enum:utf8str:numstr:prnstr:telstr:ia5str:utctime:gentime:seq:set:tag:".indexOf(":"+k+":")==-1)throw"undefined key: "+k;if(k=="bool")return new a(e[k]);if(k=="int")return new r(e[k]);if(k=="bitstr")return new i(e[k]);if(k=="octstr")return new s(e[k]);if(k=="null")return new l(e[k]);if(k=="oid")return new d(e[k]);if(k=="enum")return new c(e[k]);if(k=="utf8str")return new f(e[k]);if(k=="numstr")return new y(e[k]);if(k=="prnstr")return new u(e[k]);if(k=="telstr")return new h(e[k]);if(k=="ia5str")return new m(e[k]);if(k=="utctime")return new g(e[k]);if(k=="gentime")return new v(e[k]);if(k=="seq"){for(var D=e[k],O=[],N=0;N<D.length;N++){var C=x(D[N]);O.push(C)}return new B({array:O})}if(k=="set"){for(var D=e[k],O=[],N=0;N<D.length;N++){var C=x(D[N]);O.push(C)}return new p({array:O})}if(k=="tag"){var T=e[k];if(Object.prototype.toString.call(T)==="[object Array]"&&T.length==3){var R=x(T[2]);return new b({tag:T[0],explicit:T[1],obj:R})}else{var S={};if(T.explicit!==void 0&&(S.explicit=T.explicit),T.tag!==void 0&&(S.tag=T.tag),T.obj===void 0)throw"obj shall be specified for 'tag'.";return S.obj=x(T.obj),new b(S)}}},this.jsonToASN1HEX=function(e){var o=this.newObject(e);return o.getEncodedHex()}},G.asn1.ASN1Util.oidHexToInt=function(e){for(var r="",o=parseInt(e.substr(0,2),16),t=Math.floor(o/40),a=o%40,r=t+"."+a,i="",s=2;s<e.length;s+=2){var l=parseInt(e.substr(s,2),16),d=("00000000"+l.toString(2)).slice(-8);if(i=i+d.substr(1,7),d.substr(0,1)=="0"){var c=new se(i,2);r=r+"."+c.toString(10),i=""}}return r},G.asn1.ASN1Util.oidIntToHex=function(e){var o=function(l){var d=l.toString(16);return d.length==1&&(d="0"+d),d},t=function(l){var d="",c=new se(l,10),f=c.toString(2),y=7-f.length%7;y==7&&(y=0);for(var u="",h=0;h<y;h++)u+="0";f=u+f;for(var h=0;h<f.length-1;h+=7){var m=f.substr(h,7);h!=f.length-7&&(m="1"+m),d+=o(parseInt(m,2))}return d};if(!e.match(/^[0-9.]+$/))throw"malformed oid string: "+e;var a="",r=e.split("."),i=parseInt(r[0])*40+parseInt(r[1]);a+=o(i),r.splice(0,2);for(var s=0;s<r.length;s++)a+=t(r[s]);return a},G.asn1.ASN1Object=function(){var e="";this.getLengthHexFromValue=function(){if(typeof this.hV>"u"||this.hV==null)throw"this.hV is null or undefined.";if(this.hV.length%2==1)throw"value hex must be even length: n="+e.length+",v="+this.hV;var o=this.hV.length/2,t=o.toString(16);if(t.length%2==1&&(t="0"+t),o<128)return t;var a=t.length/2;if(a>15)throw"ASN.1 length too long to represent by 8x: n = "+o.toString(16);var r=128+a;return r.toString(16)+t},this.getEncodedHex=function(){return(this.hTLV==null||this.isModified)&&(this.hV=this.getFreshValueHex(),this.hL=this.getLengthHexFromValue(),this.hTLV=this.hT+this.hL+this.hV,this.isModified=!1),this.hTLV},this.getValueHex=function(){return this.getEncodedHex(),this.hV},this.getFreshValueHex=function(){return""}},G.asn1.DERAbstractString=function(e){G.asn1.DERAbstractString.superclass.constructor.call(this),this.getString=function(){return this.s},this.setString=function(o){this.hTLV=null,this.isModified=!0,this.s=o,this.hV=stohex(this.s)},this.setStringHex=function(o){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=o},this.getFreshValueHex=function(){return this.hV},typeof e<"u"&&(typeof e=="string"?this.setString(e):typeof e.str<"u"?this.setString(e.str):typeof e.hex<"u"&&this.setStringHex(e.hex))},_e.lang.extend(G.asn1.DERAbstractString,G.asn1.ASN1Object),G.asn1.DERAbstractTime=function(e){G.asn1.DERAbstractTime.superclass.constructor.call(this),this.localDateToUTC=function(o){utc=o.getTime()+o.getTimezoneOffset()*6e4;var t=new Date(utc);return t},this.formatDate=function(o,t,a){var r=this.zeroPadding,i=this.localDateToUTC(o),s=String(i.getFullYear());t=="utc"&&(s=s.substr(2,2));var l=r(String(i.getMonth()+1),2),d=r(String(i.getDate()),2),c=r(String(i.getHours()),2),f=r(String(i.getMinutes()),2),y=r(String(i.getSeconds()),2),u=s+l+d+c+f+y;if(a===!0){var h=i.getMilliseconds();if(h!=0){var m=r(String(h),3);m=m.replace(/[0]+$/,""),u=u+"."+m}}return u+"Z"},this.zeroPadding=function(o,t){return o.length>=t?o:new Array(t-o.length+1).join("0")+o},this.getString=function(){return this.s},this.setString=function(o){this.hTLV=null,this.isModified=!0,this.s=o,this.hV=stohex(o)},this.setByDateValue=function(o,t,a,r,i,s){var l=new Date(Date.UTC(o,t-1,a,r,i,s,0));this.setByDate(l)},this.getFreshValueHex=function(){return this.hV}},_e.lang.extend(G.asn1.DERAbstractTime,G.asn1.ASN1Object),G.asn1.DERAbstractStructured=function(e){G.asn1.DERAbstractString.superclass.constructor.call(this),this.setByASN1ObjectArray=function(o){this.hTLV=null,this.isModified=!0,this.asn1Array=o},this.appendASN1Object=function(o){this.hTLV=null,this.isModified=!0,this.asn1Array.push(o)},this.asn1Array=new Array,typeof e<"u"&&typeof e.array<"u"&&(this.asn1Array=e.array)},_e.lang.extend(G.asn1.DERAbstractStructured,G.asn1.ASN1Object),G.asn1.DERBoolean=function(){G.asn1.DERBoolean.superclass.constructor.call(this),this.hT="01",this.hTLV="0101ff"},_e.lang.extend(G.asn1.DERBoolean,G.asn1.ASN1Object),G.asn1.DERInteger=function(e){G.asn1.DERInteger.superclass.constructor.call(this),this.hT="02",this.setByBigInteger=function(o){this.hTLV=null,this.isModified=!0,this.hV=G.asn1.ASN1Util.bigIntToMinTwosComplementsHex(o)},this.setByInteger=function(o){var t=new se(String(o),10);this.setByBigInteger(t)},this.setValueHex=function(o){this.hV=o},this.getFreshValueHex=function(){return this.hV},typeof e<"u"&&(typeof e.bigint<"u"?this.setByBigInteger(e.bigint):typeof e.int<"u"?this.setByInteger(e.int):typeof e=="number"?this.setByInteger(e):typeof e.hex<"u"&&this.setValueHex(e.hex))},_e.lang.extend(G.asn1.DERInteger,G.asn1.ASN1Object),G.asn1.DERBitString=function(e){if(e!==void 0&&typeof e.obj<"u"){var o=G.asn1.ASN1Util.newObject(e.obj);e.hex="00"+o.getEncodedHex()}G.asn1.DERBitString.superclass.constructor.call(this),this.hT="03",this.setHexValueIncludingUnusedBits=function(t){this.hTLV=null,this.isModified=!0,this.hV=t},this.setUnusedBitsAndHexValue=function(t,a){if(t<0||7<t)throw"unused bits shall be from 0 to 7: u = "+t;var r="0"+t;this.hTLV=null,this.isModified=!0,this.hV=r+a},this.setByBinaryString=function(t){t=t.replace(/0+$/,"");var a=8-t.length%8;a==8&&(a=0);for(var r=0;r<=a;r++)t+="0";for(var i="",r=0;r<t.length-1;r+=8){var s=t.substr(r,8),l=parseInt(s,2).toString(16);l.length==1&&(l="0"+l),i+=l}this.hTLV=null,this.isModified=!0,this.hV="0"+a+i},this.setByBooleanArray=function(t){for(var a="",r=0;r<t.length;r++)t[r]==!0?a+="1":a+="0";this.setByBinaryString(a)},this.newFalseArray=function(t){for(var a=new Array(t),r=0;r<t;r++)a[r]=!1;return a},this.getFreshValueHex=function(){return this.hV},typeof e<"u"&&(typeof e=="string"&&e.toLowerCase().match(/^[0-9a-f]+$/)?this.setHexValueIncludingUnusedBits(e):typeof e.hex<"u"?this.setHexValueIncludingUnusedBits(e.hex):typeof e.bin<"u"?this.setByBinaryString(e.bin):typeof e.array<"u"&&this.setByBooleanArray(e.array))},_e.lang.extend(G.asn1.DERBitString,G.asn1.ASN1Object),G.asn1.DEROctetString=function(e){if(e!==void 0&&typeof e.obj<"u"){var o=G.asn1.ASN1Util.newObject(e.obj);e.hex=o.getEncodedHex()}G.asn1.DEROctetString.superclass.constructor.call(this,e),this.hT="04"},_e.lang.extend(G.asn1.DEROctetString,G.asn1.DERAbstractString),G.asn1.DERNull=function(){G.asn1.DERNull.superclass.constructor.call(this),this.hT="05",this.hTLV="0500"},_e.lang.extend(G.asn1.DERNull,G.asn1.ASN1Object),G.asn1.DERObjectIdentifier=function(e){var o=function(a){var r=a.toString(16);return r.length==1&&(r="0"+r),r},t=function(a){var r="",i=new se(a,10),s=i.toString(2),l=7-s.length%7;l==7&&(l=0);for(var d="",c=0;c<l;c++)d+="0";s=d+s;for(var c=0;c<s.length-1;c+=7){var f=s.substr(c,7);c!=s.length-7&&(f="1"+f),r+=o(parseInt(f,2))}return r};G.asn1.DERObjectIdentifier.superclass.constructor.call(this),this.hT="06",this.setValueHex=function(a){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=a},this.setValueOidString=function(a){if(!a.match(/^[0-9.]+$/))throw"malformed oid string: "+a;var r="",i=a.split("."),s=parseInt(i[0])*40+parseInt(i[1]);r+=o(s),i.splice(0,2);for(var l=0;l<i.length;l++)r+=t(i[l]);this.hTLV=null,this.isModified=!0,this.s=null,this.hV=r},this.setValueName=function(a){var r=G.asn1.x509.OID.name2oid(a);if(r!=="")this.setValueOidString(r);else throw"DERObjectIdentifier oidName undefined: "+a},this.getFreshValueHex=function(){return this.hV},e!==void 0&&(typeof e=="string"?e.match(/^[0-2].[0-9.]+$/)?this.setValueOidString(e):this.setValueName(e):e.oid!==void 0?this.setValueOidString(e.oid):e.hex!==void 0?this.setValueHex(e.hex):e.name!==void 0&&this.setValueName(e.name))},_e.lang.extend(G.asn1.DERObjectIdentifier,G.asn1.ASN1Object),G.asn1.DEREnumerated=function(e){G.asn1.DEREnumerated.superclass.constructor.call(this),this.hT="0a",this.setByBigInteger=function(o){this.hTLV=null,this.isModified=!0,this.hV=G.asn1.ASN1Util.bigIntToMinTwosComplementsHex(o)},this.setByInteger=function(o){var t=new se(String(o),10);this.setByBigInteger(t)},this.setValueHex=function(o){this.hV=o},this.getFreshValueHex=function(){return this.hV},typeof e<"u"&&(typeof e.int<"u"?this.setByInteger(e.int):typeof e=="number"?this.setByInteger(e):typeof e.hex<"u"&&this.setValueHex(e.hex))},_e.lang.extend(G.asn1.DEREnumerated,G.asn1.ASN1Object),G.asn1.DERUTF8String=function(e){G.asn1.DERUTF8String.superclass.constructor.call(this,e),this.hT="0c"},_e.lang.extend(G.asn1.DERUTF8String,G.asn1.DERAbstractString),G.asn1.DERNumericString=function(e){G.asn1.DERNumericString.superclass.constructor.call(this,e),this.hT="12"},_e.lang.extend(G.asn1.DERNumericString,G.asn1.DERAbstractString),G.asn1.DERPrintableString=function(e){G.asn1.DERPrintableString.superclass.constructor.call(this,e),this.hT="13"},_e.lang.extend(G.asn1.DERPrintableString,G.asn1.DERAbstractString),G.asn1.DERTeletexString=function(e){G.asn1.DERTeletexString.superclass.constructor.call(this,e),this.hT="14"},_e.lang.extend(G.asn1.DERTeletexString,G.asn1.DERAbstractString),G.asn1.DERIA5String=function(e){G.asn1.DERIA5String.superclass.constructor.call(this,e),this.hT="16"},_e.lang.extend(G.asn1.DERIA5String,G.asn1.DERAbstractString),G.asn1.DERUTCTime=function(e){G.asn1.DERUTCTime.superclass.constructor.call(this,e),this.hT="17",this.setByDate=function(o){this.hTLV=null,this.isModified=!0,this.date=o,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)},this.getFreshValueHex=function(){return typeof this.date>"u"&&typeof this.s>"u"&&(this.date=new Date,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)),this.hV},e!==void 0&&(e.str!==void 0?this.setString(e.str):typeof e=="string"&&e.match(/^[0-9]{12}Z$/)?this.setString(e):e.hex!==void 0?this.setStringHex(e.hex):e.date!==void 0&&this.setByDate(e.date))},_e.lang.extend(G.asn1.DERUTCTime,G.asn1.DERAbstractTime),G.asn1.DERGeneralizedTime=function(e){G.asn1.DERGeneralizedTime.superclass.constructor.call(this,e),this.hT="18",this.withMillis=!1,this.setByDate=function(o){this.hTLV=null,this.isModified=!0,this.date=o,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=stohex(this.s)},this.getFreshValueHex=function(){return this.date===void 0&&this.s===void 0&&(this.date=new Date,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=stohex(this.s)),this.hV},e!==void 0&&(e.str!==void 0?this.setString(e.str):typeof e=="string"&&e.match(/^[0-9]{14}Z$/)?this.setString(e):e.hex!==void 0?this.setStringHex(e.hex):e.date!==void 0&&this.setByDate(e.date),e.millis===!0&&(this.withMillis=!0))},_e.lang.extend(G.asn1.DERGeneralizedTime,G.asn1.DERAbstractTime),G.asn1.DERSequence=function(e){G.asn1.DERSequence.superclass.constructor.call(this,e),this.hT="30",this.getFreshValueHex=function(){for(var o="",t=0;t<this.asn1Array.length;t++){var a=this.asn1Array[t];o+=a.getEncodedHex()}return this.hV=o,this.hV}},_e.lang.extend(G.asn1.DERSequence,G.asn1.DERAbstractStructured),G.asn1.DERSet=function(e){G.asn1.DERSet.superclass.constructor.call(this,e),this.hT="31",this.sortFlag=!0,this.getFreshValueHex=function(){for(var o=new Array,t=0;t<this.asn1Array.length;t++){var a=this.asn1Array[t];o.push(a.getEncodedHex())}return this.sortFlag==!0&&o.sort(),this.hV=o.join(""),this.hV},typeof e<"u"&&typeof e.sortflag<"u"&&e.sortflag==!1&&(this.sortFlag=!1)},_e.lang.extend(G.asn1.DERSet,G.asn1.DERAbstractStructured),G.asn1.DERTaggedObject=function(e){G.asn1.DERTaggedObject.superclass.constructor.call(this),this.hT="a0",this.hV="",this.isExplicit=!0,this.asn1Object=null,this.setASN1Object=function(o,t,a){this.hT=t,this.isExplicit=o,this.asn1Object=a,this.isExplicit?(this.hV=this.asn1Object.getEncodedHex(),this.hTLV=null,this.isModified=!0):(this.hV=null,this.hTLV=a.getEncodedHex(),this.hTLV=this.hTLV.replace(/^../,t),this.isModified=!1)},this.getFreshValueHex=function(){return this.hV},typeof e<"u"&&(typeof e.tag<"u"&&(this.hT=e.tag),typeof e.explicit<"u"&&(this.isExplicit=e.explicit),typeof e.obj<"u"&&(this.asn1Object=e.obj,this.setASN1Object(this.isExplicit,this.hT,this.asn1Object)))},_e.lang.extend(G.asn1.DERTaggedObject,G.asn1.ASN1Object);var pc=globalThis&&globalThis.__extends||function(){var e=function(o,t){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,r){a.__proto__=r}||function(a,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(a[i]=r[i])},e(o,t)};return function(o,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");e(o,t);function a(){this.constructor=o}o.prototype=t===null?Object.create(t):(a.prototype=t.prototype,new a)}}(),ui=function(e){pc(o,e);function o(t){var a=e.call(this)||this;return t&&(typeof t=="string"?a.parseKey(t):(o.hasPrivateKeyProperty(t)||o.hasPublicKeyProperty(t))&&a.parsePropertiesFrom(t)),a}return o.prototype.parseKey=function(t){try{var a=0,r=0,i=/^\s*(?:[0-9A-Fa-f][0-9A-Fa-f]\s*)+$/,s=i.test(t)?tc.decode(t):wo.unarmor(t),l=ac.decode(s);if(l.sub.length===3&&(l=l.sub[2].sub[0]),l.sub.length===9){a=l.sub[1].getHexStringValue(),this.n=Re(a,16),r=l.sub[2].getHexStringValue(),this.e=parseInt(r,16);var d=l.sub[3].getHexStringValue();this.d=Re(d,16);var c=l.sub[4].getHexStringValue();this.p=Re(c,16);var f=l.sub[5].getHexStringValue();this.q=Re(f,16);var y=l.sub[6].getHexStringValue();this.dmp1=Re(y,16);var u=l.sub[7].getHexStringValue();this.dmq1=Re(u,16);var h=l.sub[8].getHexStringValue();this.coeff=Re(h,16)}else if(l.sub.length===2)if(l.sub[0].sub){var m=l.sub[1],g=m.sub[0];a=g.sub[0].getHexStringValue(),this.n=Re(a,16),r=g.sub[1].getHexStringValue(),this.e=parseInt(r,16)}else a=l.sub[0].getHexStringValue(),this.n=Re(a,16),r=l.sub[1].getHexStringValue(),this.e=parseInt(r,16);else return!1;return!0}catch{return!1}},o.prototype.getPrivateBaseKey=function(){var t={array:[new G.asn1.DERInteger({int:0}),new G.asn1.DERInteger({bigint:this.n}),new G.asn1.DERInteger({int:this.e}),new G.asn1.DERInteger({bigint:this.d}),new G.asn1.DERInteger({bigint:this.p}),new G.asn1.DERInteger({bigint:this.q}),new G.asn1.DERInteger({bigint:this.dmp1}),new G.asn1.DERInteger({bigint:this.dmq1}),new G.asn1.DERInteger({bigint:this.coeff})]},a=new G.asn1.DERSequence(t);return a.getEncodedHex()},o.prototype.getPrivateBaseKeyB64=function(){return fn(this.getPrivateBaseKey())},o.prototype.getPublicBaseKey=function(){var t=new G.asn1.DERSequence({array:[new G.asn1.DERObjectIdentifier({oid:"1.2.840.113549.1.1.1"}),new G.asn1.DERNull]}),a=new G.asn1.DERSequence({array:[new G.asn1.DERInteger({bigint:this.n}),new G.asn1.DERInteger({int:this.e})]}),r=new G.asn1.DERBitString({hex:"00"+a.getEncodedHex()}),i=new G.asn1.DERSequence({array:[t,r]});return i.getEncodedHex()},o.prototype.getPublicBaseKeyB64=function(){return fn(this.getPublicBaseKey())},o.wordwrap=function(t,a){if(a=a||64,!t)return t;var r="(.{1,"+a+`})( +|$
|
|
91
91
|
?)|(.{1,`+a+"})";return t.match(RegExp(r,"g")).join(`
|
|
92
92
|
`)},o.prototype.getPrivateKey=function(){var t=`-----BEGIN RSA PRIVATE KEY-----
|
|
93
93
|
`;return t+=o.wordwrap(this.getPrivateBaseKeyB64())+`
|
|
94
94
|
`,t+="-----END RSA PRIVATE KEY-----",t},o.prototype.getPublicKey=function(){var t=`-----BEGIN PUBLIC KEY-----
|
|
95
95
|
`;return t+=o.wordwrap(this.getPublicBaseKeyB64())+`
|
|
96
|
-
`,t+="-----END PUBLIC KEY-----",t},o.hasPublicKeyProperty=function(t){return t=t||{},t.hasOwnProperty("n")&&t.hasOwnProperty("e")},o.hasPrivateKeyProperty=function(t){return t=t||{},t.hasOwnProperty("n")&&t.hasOwnProperty("e")&&t.hasOwnProperty("d")&&t.hasOwnProperty("p")&&t.hasOwnProperty("q")&&t.hasOwnProperty("dmp1")&&t.hasOwnProperty("dmq1")&&t.hasOwnProperty("coeff")},o.prototype.parsePropertiesFrom=function(t){this.n=t.n,this.e=t.e,t.hasOwnProperty("d")&&(this.d=t.d,this.p=t.p,this.q=t.q,this.dmp1=t.dmp1,this.dmq1=t.dmq1,this.coeff=t.coeff)},o}(
|
|
97
|
-
`),
|
|
96
|
+
`,t+="-----END PUBLIC KEY-----",t},o.hasPublicKeyProperty=function(t){return t=t||{},t.hasOwnProperty("n")&&t.hasOwnProperty("e")},o.hasPrivateKeyProperty=function(t){return t=t||{},t.hasOwnProperty("n")&&t.hasOwnProperty("e")&&t.hasOwnProperty("d")&&t.hasOwnProperty("p")&&t.hasOwnProperty("q")&&t.hasOwnProperty("dmp1")&&t.hasOwnProperty("dmq1")&&t.hasOwnProperty("coeff")},o.prototype.parsePropertiesFrom=function(t){this.n=t.n,this.e=t.e,t.hasOwnProperty("d")&&(this.d=t.d,this.p=t.p,this.q=t.q,this.dmp1=t.dmp1,this.dmq1=t.dmq1,this.coeff=t.coeff)},o}(gc),Eo,bc=typeof process<"u"?(Eo=process.env)===null||Eo===void 0?void 0:Eo.npm_package_version:void 0,vc=function(){function e(o){o===void 0&&(o={}),o=o||{},this.default_key_size=o.default_key_size?parseInt(o.default_key_size,10):1024,this.default_public_exponent=o.default_public_exponent||"010001",this.log=o.log||!1,this.key=null}return e.prototype.setKey=function(o){this.log&&this.key&&console.warn("A key was already set, overriding existing."),this.key=new ui(o)},e.prototype.setPrivateKey=function(o){this.setKey(o)},e.prototype.setPublicKey=function(o){this.setKey(o)},e.prototype.decrypt=function(o){try{return this.getKey().decrypt(oi(o))}catch{return!1}},e.prototype.encrypt=function(o){try{return fn(this.getKey().encrypt(o))}catch{return!1}},e.prototype.sign=function(o,t,a){try{return fn(this.getKey().sign(o,t,a))}catch{return!1}},e.prototype.verify=function(o,t,a){try{return this.getKey().verify(o,oi(t),a)}catch{return!1}},e.prototype.getKey=function(o){if(!this.key){if(this.key=new ui,o&&{}.toString.call(o)==="[object Function]"){this.key.generateAsync(this.default_key_size,this.default_public_exponent,o);return}this.key.generate(this.default_key_size,this.default_public_exponent)}return this.key},e.prototype.getPrivateKey=function(){return this.getKey().getPrivateKey()},e.prototype.getPrivateKeyB64=function(){return this.getKey().getPrivateBaseKeyB64()},e.prototype.getPublicKey=function(){return this.getKey().getPublicKey()},e.prototype.getPublicKeyB64=function(){return this.getKey().getPublicBaseKeyB64()},e.version=bc,e}();const hi=new vc,Wt=Sc();function Sc(){let o=Math.random().toString(36).substr(2);for(;o.length<16;)o+=Math.random().toString(36).substr(2);return o=o.substr(0,16),o}const gi=Xe.enc.Utf8.parse("ABCDEF1234123412");function Cc(e,o){o=o||Wt;const t=Xe.enc.Utf8.parse(o);let a="";switch(typeof e){case"string":a=Xe.enc.Utf8.parse(e);break;case"object":a=Xe.enc.Utf8.parse(JSON.stringify(e));break;default:a=Xe.enc.Utf8.parse(e.toString())}return Xe.AES.encrypt(a,t,{iv:gi,mode:Xe.mode.CBC,padding:Xe.pad.ZeroPadding}).toString()}function mi(e,o){o=o||Wt;const t=Xe.enc.Utf8.parse(o),a=Xe.AES.decrypt(e,t,{iv:gi,mode:Xe.mode.CBC,padding:Xe.pad.ZeroPadding});return Xe.enc.Utf8.stringify(a).toString()}function wc(e){hi.setPublicKey(e)}function Ac(e){return hi.encrypt(e)}function yi(e=""){e.startsWith("/")||(e="/"+e),e=e.split("?")[0];const t=["/diagram","/dataview"].map(a=>`^(.*?)${a}(/|$)`);for(const a of t)if(new RegExp(a).test(e))return!0;return!1}function kc(e){const{paramType:o,data:t,params:a,method:r}=e;o==="form"?["get","delete"].includes(r)?e.params=Ut(a,"string"):e.data=Ut(t,"string"):["get","delete"].includes(r)?e.params=Ut(a,"string"):e.data=Ut(t)}function Ut(e,o){let t=e||{};if(o==="string"){t="";for(const l in e)if(Object.hasOwnProperty.call(e,l)){const d=e[l];t+=`${l}=${encodeURIComponent(d)}&`}}wc("MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBAMKaTbS1XHH7u/4dhao1n5Lcegpy6AHKX2TjmTP7IDW6N4wznqlL3Tt+U0/Il1TlNp1/EN+tffYYg4dPrrCUDwcCAwEAAQ==");const r=Ac(Wt);return{c:Cc(t,Wt),p:r}}window.getEncryptParam=Ut;function Tc(e,o){var t;(t=window==null?void 0:window.config)!=null&&t.encryptFlag&&yi(e.url)&&(e.data instanceof FormData?e.data=Bc(e.data):kc(e))}function Bc(e){const o=e.entries(),t=new FormData,a={};for(const i of o){const s=i[0],l=i[1];l instanceof Blob?t.append(s,l):a[s]=l}const r=Ut(a,"json");return typeof r=="object"&&(t.append("c",r.c),t.append("p",r.p)),t}window.xhaesKey=Wt,window.xhaesDecrypt=mi;function xi(e,o){var t;if((t=window==null?void 0:window.config)!=null&&t.encryptFlag&&yi(e.config.url)&&!(e.data instanceof Blob)&&e.data.data!==void 0){const a=mi(e.data.data.content,Wt);e.data=JSON.parse(a)}}const pi=window.config.requestErrorTip,dt=Pl.create({timeout:1e3*180});dt.interceptors.request.use(e=>{const{requestParams:o={}}=window.config;return o!=null&&o.pltToken&&(e.headers["Plt-Token"]=o.pltToken),Tc(e),e},e=>Promise.reject(e)),dt.interceptors.response.use(e=>{var o,t,a;return pi&&+((o=e==null?void 0:e.data)==null?void 0:o.code)==500&&ce.message.error({content:((t=e==null?void 0:e.data)==null?void 0:t.msg)||((a=e==null?void 0:e.data)==null?void 0:a.message)||"服务器异常",key:"SERVER_ERROR",duration:2}),xi(e),e},e=>{if(xi(e==null?void 0:e.response),pi)if(e.message.includes("timeout"))ce.message.error({content:"网络连接超时,请重试!",key:"TIMEOUT",duration:2});else{const{status:o}=(e==null?void 0:e.response)||{};o>=400&&o<500&&ce.message.error({content:"请求异常",key:"REQUEST_ERROR",duration:2}),o>=500&&ce.message.error({content:"服务器异常",key:"REQUEST_ERROR",duration:2})}return Promise.reject(e)});const Ec=e=>e.replace(/\\n/g,`
|
|
97
|
+
`),Do=(e,o=2)=>{const t=parseFloat(e+"");return isNaN(t)?e:t.toFixed(o).replace(/(\d)(?=(\d{3})+\.)/g,"$1,")},Dc=e=>{const o=parseFloat(e+"");return isNaN(o)?e:(o+"").replace(/\B(?=(\d{3})+(?!\d))/g,",")},bn=(e,o=2)=>{const t=e+"";if(t.includes("%"))return e;const a=parseFloat(t);return isNaN(a)?e:`${(a*100).toFixed(o)}%`},Rc=(e,o=2)=>{const t=e+"",a=parseFloat(t);return isNaN(a)?e:a.toFixed(o)},bi=(e,o)=>it(o,e),ft=(e,o)=>{if(typeof e=="string"&&typeof o=="string")return e.toLocaleLowerCase().includes(o.toLocaleLowerCase());if(typeof e=="string"&&Array.isArray(o)){const t=o.length;for(let a=0;a<t;a++){const r=o[a];if(typeof r=="string"&&e.toLocaleLowerCase().includes(r.toLocaleLowerCase()))return!0}}return!1},Gt=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),tn=e=>{const{leftAxisList:o=[],rightAxisList:t=[],queryColumnList:a=[],indicators:r=[]}=e;return[...o,...t,...a,...r].filter(i=>(i==null?void 0:i.calcType)==="COMPONENT").map(i=>({keyName:i.builtInCalcWay,id:i.builtInValueSource}))},rt=(e,o)=>{let t=!0;const a=tn(e);return a!=null&&a.length&&(t=a.map(r=>o[r.id]).every(r=>r)),t},nn=(e,o)=>{var s;const t=e.match(/\{(.+?)\}/g),a=((s=e.split(`
|
|
98
98
|
`))==null?void 0:s.length)-1;let r="";if(a)for(let l=0;l<a;l++)r+=`
|
|
99
|
-
`;let i=e;if(t!=null&&t.length){for(const l of t){const d=De(l,{textData:o},{useNewline:!1,useSpace:!1});d&&(i=i.replace(l,d))}return`${r}{text|${i}}`}else return e},vn=(e,o)=>{const t={dayjs:be,...o};let a="";const r=[];for(const l in t)a+=`${l},`,r.push(t[l]);a=a.replace(/,$/,"");const i=`function (${a}){return ${e}}`;let s;try{s=Function(`"use strict";return (${i})`)()(...r)}catch{return e}return s},De=(e="",{textData:o,codeData:t}={},{useNewline:a=!1,useSpace:r=!1}={})=>{const s={...window.config||{},...o},l=e.match(/\{(.+?)\}/g);if(l==null||l.length===0)return e;for(let d=0;d<l.length;d++){const c=l[d];let g=c.slice(1,-1).trim();const h=/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,y=g.match(h);for(let u=0;u<y.length;u++){const m=y[u],f=s[m];f!=null&&typeof f!="function"&&(g=g.replace(m,f))}(/\(.*\)/g.test(g)||/[+/\\*]/g.test(g))&&(g=vn(g,t)),e=e.replace(c,g)}return a&&(e=e==null?void 0:e.replace(/\n|\\n/g,"<br/>")),r&&(e=e==null?void 0:e.replace(/\s{2,}?/g," ")),e},je=(e,o=()=>{})=>{const{requestUrl:t,requestMethod:a,requestHeaders:r,requestParams:i,requestInterval:s,isOpenRequestTimer:l}=e,{contextRequestUrl:d,touchEventId:c}=n.inject(ze,{contextRequestUrl:"",touchEventId:""}),{getGlobalModel:g}=n.inject(Be,{getGlobalModel:m=>{}}),h=De(t),y=async(m={})=>{if(!h||!a||!r)return;let f={};i.forEach(x=>{const{key:A,value:k}=x;if(typeof k=="object"&&k!=null&&k.id){let D={};const{id:O,prop:N,propKey:C,operate:T}=k;O==="THIS"?D=g(n.unref(c))||{}:D=g(O)||{};const R=n.unref(D[N]);let v=null;if(["date","range"].some(w=>ft(D==null?void 0:D.type,w))){const{value:w,type:_,mode:z}=T||{};if(w&&_&&z)switch(_){case"add":v=n.unref(R).add(w,z);break;case"minus":v=n.unref(R).subtract(w,z);break}v==null&&(v=n.unref(R)),v=(v==null?void 0:v.format((C==null?void 0:C.trim())||D.format))||""}else Object.prototype.toString.call(R)==="[object Object]"?C?v=R[C]:v=N?R[N]:R:ft(D==null?void 0:D.type,"select")&&n.unref(R)&&N&&Array.isArray(n.unref(R))?v=n.unref(R).map(w=>Object.prototype.hasOwnProperty.call(w,N)?w[N]:w):v=R;f[A]=v}else typeof k=="string"&&(f[A]=De(k))}),f={...window.config.requestParams,...m,...f};let S="";const B=Object.keys(f),p=B.length-1,b=B.length;B.forEach((x,A)=>{let k=f[x];Object.prototype.toString.call(k)==="[object Object]"&&(k=JSON.stringify(k)),A===0?b!==1?S+=`?${x}=${k}&`:S+=`?${x}=${k}`:A===p?S+=`${x}=${k}`:S+=`${x}=${k}&`});try{const x=["get","head"].includes(a),A={};let k=x?h+S:h;f.dataSqlId&&!k.includes("dataSqlId")&&(k+=`${k.includes("?")?"&":"?"}dataSqlId=${f.dataSqlId}`),Object.prototype.hasOwnProperty.call(f,"signal")&&(A.signal=f.signal);const D=await dt({baseURL:n.unref(d)||"",url:k,method:a,headers:r,data:x?{}:f,...A});return o(D),D}catch(x){console.error(x)}},u=l&&setInterval(y,s*1e3);return n.onUnmounted(()=>{clearInterval(u)}),y},wt=(e=[],o,t=!1)=>{let{name:a="name",types:r=[]}=o||{};a=(a==null?void 0:a.trim())||a;const i=new Set,s=new Map,l=e.length,d=r.length;if(l===1&&!t){const h=[];for(let u=0;u<d;u++){const m=r[u],{label:f,value:S}=m,B={...e[0],value:e[0][S]};i.add(f),h.push(B)}const y=e[0][a]||"";s.set(y,h)}else for(let h=0;h<l;h++){const y=e[h],u=y[a];i.add(u);for(let m=0;m<d;m++){const f=r[m],{label:S,value:B}=f,p={...y,value:y[B]||0};if(s.has(S)){const b=s.get(S);b.push(p),s.set(S,b)}else s.set(S,[p])}}const c=Array.from(i),g=[];for(const[h,y]of s)g.push({name:h,data:y});return{dimensions:c,dataset:g}},At=(e,o=!1)=>{var a;if(!e)return e;let t="";return e!=null&&e.includes("://")?t=e:t=((a=window==null?void 0:window.config)==null?void 0:a.uploadPath)+e,o&&(t=`url(${t})`),t},mi=(e,o)=>{const t=`${dr}/preview?pageId=${o}`,a=`${dr}/${o}`;return e==="preview"?t:a},it=(e,o)=>{var r;if(e==null)return o;const t=e.match(/\{.*\}/g);if(t==null||t.length===0)return o;const a=t.length;for(let i=0;i<a;i++){const s=t[i];if(s==null||s==="")break;let l=(r=s.slice(1,-1))==null?void 0:r.trim();l=l==null?void 0:l.replace(/value/g,o);try{let d=l;(/\(.*\)/g.test(l)||/[+/\\*]/g.test(l))&&(d=vn(l)),e=e.replace(s,d)}catch{e=e.replace(s,l)}}return e},lt=(e={})=>{const{requestToken:o}=n.inject(ir,{requestToken:()=>{}}),{setLoadedData:t}=n.inject(bt,{setLoadedData:(u,m)=>{}}),{getGlobalModel:a}=n.inject(Be,{getGlobalModel:u=>{}});e.dataType==="indicator"&&o();const r=u=>{const{around:m,unit:f,id:S}=u;let B="";const{pageMode:p="",componentList:b=[]}=(e==null?void 0:e.graphicConfig)||{};let x=null,A=null;if(p==="design"){const k=b==null?void 0:b.find(v=>v.id===S);if(!k)return[];const{interval:D,intervalUnit:O,startTime:N,endTime:C,operate:T,useCurrentTime:R}=k||{};if(R&&(x=be().subtract(D,O),A=be()),N&&(x=be(N)),C&&(A=be(C)),T){const{type:v,value:E,mode:w}=T;switch(v){case"add":x=x&&x.add(E,w),A=A&&A.add(E,w);break;case"minus":x=x&&x.subtract(E,w),A=A&&A.subtract(E,w)}}}else{const k=a(S)||{};n.unref(k.startTime)&&(x=be(n.unref(k.startTime))),n.unref(k.endTime)&&(A=be(n.unref(k.endTime)))}if(x&&A){const k=A.diff(x,f.toLowerCase());B=`${m==="before"?"-":""}${k+1}`}return B?[B]:[]},i=(u,m)=>Object.prototype.hasOwnProperty.call(u,m),s=u=>{const{calcWays:m=[],dateCalcTypes:f=[],activeKey:S,componentId:B=""}=u;if(S===5&&(m!=null&&m.length)&&(f!=null&&f.length)&&B){const p=m[0].split("-");(p==null?void 0:p.length)>1&&p[0]==="rangeValue"&&(u.calcWays=r({around:p[1],unit:f[0],id:B})),delete u.radioValue}i(u,"dataType")&&(u.fieldType==="DATE"&&(u.label=u.fieldName),u.dataType==="component"&&(u.fieldValue="${"+u.fieldValue+"}"),delete u.dataType),i(u,"activeKey")&&delete u.activeKey,i(u,"radioValue")&&delete u.radioValue,i(u,"indexCode")&&(u.hrpIndexCode=u.indexCode,delete u.indexCode),u.dataType!=="component"&&u.useCurrentTime&&(u.fieldValue=be().format(u.dateFormat)),delete u.useCurrentTime},l=u=>{const m=[];return u!=null&&u.length&&Ve.cloneDeep(u).forEach(f=>{if(f.join&&f.conditions){const S=!f.conditions.some(B=>B.join&&B.conditions);f.conditions.forEach((B,p)=>{s(B),S?p<f.conditions.length-1?m.push({join:f.join,...B}):m.push(B):B.join&&B.conditions?m.push({conditions:l([B]),join:f.join}):m.push(B)})}else s(f),m.push(f)}),m},d=(u={},m)=>{if(u!=null&&u.sortCpnts&&m){const R=y(u);R&&(m.sort=R)}const{label:f,name:S,location:B,show:p,indexCode:b,calcType:x="COLUMN",builtInFormula:A,builtInValueSource:k,builtInCalcWay:D,formula:O,conditions:N,aggregate:C}=u;let T;if(N&&(T=l(N)),x==="COMPONENT"){const R={};return h(R,k),{label:f.trim(),columnName:S,show:p,calcType:x,componentAlias:D,componentValue:R.fieldValue||null}}else return{label:f.trim(),columnName:S,location:B,show:p,calcType:x,hrpIndexCode:b,aggregate:C,builtInFormula:A,builtInValueSource:k,builtInCalcWay:D,formula:O,conditions:T}},c=u=>{const m=[];for(const f of u)f.conditions?m.push(...c(f.conditions)):(f==null?void 0:f.dataType)==="component"&&m.push(f);return m},g=u=>{if(!u)return[];const{controlList:m=[],classificationList:f=[],rowHeaderList:S=[],dimensionList:B=[],seriesList:p=[],leftAxisList:b=[],rightAxisList:x=[],queryColumnList:A=[],indicators:k=[]}=u,D=[...f,...S,...B,...p,...b,...x,...A,...k],O=[];for(const R of D){const v=c((R==null?void 0:R.conditions)||[]);if(v!=null&&v.length){const E=v.filter(w=>(w==null?void 0:w.dataType)==="component").map(w=>{const _={};return w!=null&&w.dateFormat&&(_.format=w.dateFormat),{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,..._}});if(E!=null&&E.length)for(const w of E)O.find(_=>_.keyName===w.keyName)||O.push(w)}}const N=m.concat(O),C=N.length,T=[];for(let R=0;R<C;R++){const v=N[R];if((v==null?void 0:v.conditionKey)==="parentCode")continue;const{id:E,keyName:w,conditionLabel:_,conditionKey:z,conditionValueType:q,prop:W,rule:$="NONE",notGlobal:F=!1,format:P,modelKey:M,indexCode:I,typeGuid:L}=v;let H=w||E;H&&W&&(H+=`-${W}`);let Y=$;Y==="NONE"&&(["startTime","endTime"].includes(W)?Y=W==="startTime"?"GREATER_EQUAL":"LESS_EQUAL":w!=null&&w.includes("startTime")?Y=W==="GREATER_EQUAL":w!=null&&w.includes("endTime")?Y=W==="LESS_EQUAL":Y="EQUAL");const U={rule:Y,label:_,fieldName:z,fieldValue:"",valueType:q,alias:H,globalCondition:!F,indexCode:I,typeGuid:L};h(U,E,{prop:W,dateFormat:P,modelKey:M,keyName:w}),T.push(U)}for(let R=T.length-1;R>=0;R--){const v=T[R];v.globalCondition||T.find(w=>w.alias===v.alias&&w.globalCondition)&&T.splice(R,1)}return T};function h(u,m,f){var T,R;const S=a(m)||{},{prop:B="",dateFormat:p="",modelKey:b="",keyName:x=""}=f||{},{value:A,format:k="YYYY-MM-DD",type:D="",useCurrentTime:O,RECORD:N}=S||{},C=p||k;if(ft(S.type,"date"))O?A?u.fieldValue=(T=n.unref(A))==null?void 0:T.format(C):u.fieldValue=be().format(C):u.fieldValue=(R=n.unref(A))==null?void 0:R.format(C),u.dateFormat=C;else if(D==="ecanRangePicker"){let v=B;if(!B){const w=x&&x.split("-");w!=null&&w.length&&(v=w[w.length-1])}if(!v)return;let E=null;n.unref(S[v])&&(E=be(n.unref(S[v]))),E&&(u.fieldValue=E==null?void 0:E.format(C)),u.dateFormat=C}else ft(D,["table","bar","combograph","line","pie","radar","scatter","list"])?b&&N?u.fieldValue=N[b]:!b&&N?u.fieldValue=N.value:u.fieldValue=n.unref(A):u.fieldValue=n.unref(A)}const y=u=>{const{sortCpnts:m=[]}=u;let f,S="";for(const B of m){const p=a(B)||{},{type:b,RECORD:x}=p;if(ft(b,"image")&&ft(x==null?void 0:x.value,["asc","desc"])){S=x.value.toUpperCase();break}}return S&&(f={label:u.label,columnName:u.name,order:S,type:"NORMAL"}),f};return async(u={})=>{var Y,U,ae,Q,le,re;t(e.id,!1);const{graphicConfig:m,type:f,isGroupTable:S=!1}=e;let{source:B,dataViewId:p,plugin:b="1",layer:x,chartType:A,classificationList:k=[],rowHeaderList:D=[],dimensionList:O=[],seriesList:N=[],leftAxisList:C=[],rightAxisList:T=[],queryColumnList:R=[],indicators:v=[],controlList:E=[],formFields:w={},idxLibMode:_,preview:z=!1}=m||{},q=[];(m==null?void 0:m.pageMode)==="design"?q=(m.sqlConditions??[]).map(K=>{const X=K.rule||"EQUAL",ne={};return i(K,"globalCondition")||(ne.globalCondition=!0),{...K,rule:X==="NONE"?"EQUAL":X,...ne}}):q=g(m);for(const K of q)i(K,"indexCode")&&(K.hrpIndexCode=K.indexCode,delete K.indexCode);x==null&&(ft(f,["table"])?x="1":ft(f,["select","checkbox","radio"])?x="3":x="2");let W,$="";if(Array.isArray(k)&&k.length>0){const K=k.length;for(let X=0;X<K;X++){const ne=k[X]||{},{label:xe="",name:we="",show:Te=!1,sort:$e,customGroup:Fe,conditions:Ie,dateFormat:Ae,typeGuid:qe="",truncations:Ne=[]}=ne;if(Te||K===1){$=qe,W={label:xe.trim(),columnName:we,show:Te,sort:y(ne)||$e,customGroup:Fe,conditions:l(Ie),typeGuid:qe},Ae&&(W.dateFormat=Ae),we==="the_date"&&!W.dateFormat&&(W.dateFormat="YYYY-MM");const Ze={};if(Array.isArray(Ne)&&Ne.length>0){const We=Ne.length;for(let He=0;He<We;He++){const ut=Ne[He]||{},{rule:et="",num:tt=0,name:V=""}=ut;et&&tt&&(Ze.num=tt,Ze.rule=et,V&&(Ze.otherGroupName=V))}}(Y=Object.keys(Ze))!=null&&Y.length&&(W.truncation=Ze);break}}}let F;if(Array.isArray(N)&&N.length>0){const K=N.length;for(let X=0;X<K;X++){const ne=N[X]||{},{label:xe="",name:we="",show:Te=!1,sort:$e,customGroup:Fe,conditions:Ie}=ne;if(Te||K===1){F={label:xe.trim(),columnName:we,show:Te,sort:$e,customGroup:Fe,conditions:l(Ie)};break}}}const P=[];C==null||C.forEach(K=>{K.location="LEFT",P.push(d(K,W))}),T==null||T.forEach(K=>{K.location="RIGHT",P.push(d(K,W))}),v==null||v.forEach(K=>{K.location="LEFT",P.push(d(K,W))});const M=[];R==null||R.forEach(K=>{const{label:X,name:ne,location:xe,show:we,indexCode:Te,sort:$e,typeGuid:Fe}=K;let Ie=$e;if(u.sort){const{field:Ae,order:qe}=u.sort;let Ne=P.find(Ze=>Ze.label===Ae);!Ne&&X===Ae&&(Ne=K),Ne&&(Ie={columnName:Ne.columnName,label:u.sort.field,order:qe.toUpperCase(),type:"NORMAL"})}M.push({label:X,columnName:ne,location:xe,show:we,sort:Ie,calcType:"COLUMN",hrpIndexCode:Te,typeGuid:Fe})});const I=[];let L=[];if(Array.isArray(D)&&D.length>0?L=D:Array.isArray(O)&&O.length>0&&(L=O),L!=null&&L.length){const K=L.length;for(let X=0;X<K;X++){const ne=L[X]||{},{label:xe="",name:we="",show:Te=!1,sort:$e,customGroup:Fe,conditions:Ie,truncations:Ae,typeGuid:qe="",dateFormat:Ne}=ne;let Ze=$e;if(u.sort){const{field:ut,order:et}=u.sort;let tt=P.find(V=>V.label===ut);!tt&&ne.label===ut&&(tt=ne),tt&&(Ze={columnName:tt.columnName,label:u.sort.field,order:et.toUpperCase(),type:"NORMAL"})}const We={label:xe.trim(),columnName:we,show:Te,sort:Ze,customGroup:Fe,conditions:l(Ie),typeGuid:qe};Ne&&(We.dateFormat=Ne),we==="the_date"&&!We.dateFormat&&(We.dateFormat="YYYY-MM");const He={};if(Array.isArray(Ae)&&Ae.length>0){const ut=Ae.length;for(let et=0;et<ut;et++){const tt=Ae[et]||{},{rule:V="",num:Z=0,name:J=""}=tt;V&&Z&&(He.num=Z,He.rule=V,J&&(He.otherGroupName=J))}}(U=Object.keys(He))!=null&&U.length&&(We.truncation=He),I.push(We)}}if(ft(f,["text","proportion"])&&(A="zb"),S){if(I.length===0||P.length===0)return;A="grouptable"}else{if(x==="1"&&M.length===0)return;if(x==="2"&&P.length===0)return;if(x==="3"&&(!$||!w.labelField||!w.valueField))return}O!=null&&O.length&&(x="1",A="grouptable");let H=(ae=window==null?void 0:window.config)==null?void 0:ae.pageId;if(!H){const{pathname:K}=window==null?void 0:window.location;if(K){const X=K.split("/");X!=null&&X.length&&(H=X[X.length-1])}}if((Q=Object.keys(w))!=null&&Q.length){const K=E.find(ne=>ne.conditionKey==="parentCode"),X={};if(K){const ne=a(K.id)||{};if(ne!=null&&ne.itemCodes)X.parentItemCodes=ne.itemCodes;else return}try{return await dt.post(`${cr}/diagram/formData`,{source:B,dataViewId:p,plugin:"4",layer:x,chartType:"normalSelect",rangeIndexTypeGuid:$,type:"normalSelect",labelField:w.labelField,valueField:w.valueField,pageId:H,sqlConditions:q,idxLibMode:"WITH_DATE_DIM_TABLE",keyName:e.keyName,...X},{headers:{Authentication:(le=window==null?void 0:window.config)==null?void 0:le.indicatorToken,operateContext:sr}})}catch(ne){console.error(ne)}finally{}}else try{return await dt.post(`${cr}/diagram`,{source:B,dataViewId:p,plugin:b,layer:x,chartType:A,classification:W,series:F,indicatorList:P,queryColumns:S?[]:M,pageFlag:!0,pageId:H,sqlConditions:q.map(X=>{const{fieldValue:ne}=X,xe={};return ne&&Array.isArray(ne)&&(xe.fieldValue=JSON.stringify(ne)),{...X,...xe}}),idxLibMode:_,preview:z,rowHeaders:I,keyName:e.keyName},{headers:{Authentication:(re=window==null?void 0:window.config)==null?void 0:re.indicatorToken,operateContext:sr}})}catch(K){console.error(K)}finally{}}},mc=()=>{const o=window.location.search.slice(1).split("&"),t=o.length,a={};for(let r=0;r<t;r++){const i=o[r];if(i==null||i==="")continue;const s=i.split("=");if(Array.isArray(s)){const l=s[0];a[l]=s[1]}}window.config.requestParams={...window.config.requestParams,...a},window.config={...window.config,...a}},yc=n.defineComponent({name:"EcanPageConfig",inheritAttrs:!1,props:{...zn},setup(e){const{width:o,height:t}=n.inject(ze,{width:null,height:null}),a=n.inject("setPageHeight",x=>{}),r=n.inject("isMobile",!1),i=n.computed(()=>{const x={};return r||(x.width=o.value,x.height=t.value),{...x,backgroundColor:e.backgroundColor,backgroundImage:At(e.backgroundImage,!0),backgroundSize:e.backgroundSize}}),s=n.ref(0),l=n.ref(0),d=n.ref(0),c=n.ref(0),g=n.ref(!1),h=n.ref();let y;const u=()=>new Promise(x=>{n.nextTick(()=>{o.value&&t.value?(s.value=parseFloat(o.value),l.value=parseFloat(t.value)):(s.value=h.value.clientWidth,l.value=h.value.clientHeight),(!d.value||!c.value)&&(d.value=window.screen.width,c.value=window.screen.height),x()})}),m=()=>{s.value&&l.value?(h.value.style.width=`${s.value}px`,h.value.style.height=`${l.value}px`):(h.value.style.width=`${d.value}px`,h.value.style.height=`${c.value}px`)};n.watch([o,t],async()=>{await u(),m(),S(),window.addEventListener("resize",B),p(),g.value=!0},{immediate:!0});const f=n.ref({});n.provide("scaleValue",f);const S=()=>{if(r){h.value.style.width="100%",h.value.style.height="auto",a("auto");return}const x=document.body.clientWidth,A=document.body.clientHeight,k=s.value||d.value,D=l.value||c.value,O=x/k;let N=A/D;(s.value!==1920||l.value!==1080)&&(N=l.value/s.value*x/D),f.value={widthScale:O,heightScale:N},h.value&&(h.value.style.transform=`scale(${O}, ${N})`),a(N)},B=Ve.debounce(async()=>{await u(),S()},100),p=()=>{const x=window.MutationObserver;y=new x(B),y.observe(h.value,{attributes:!0,attributeFilter:["style"],attributeOldValue:!0})},b=()=>{y&&(y.disconnect(),y.takeRecords(),y=null)};return n.onMounted(()=>{g.value=!1}),n.onUnmounted(()=>{window.removeEventListener("resize",B),b()}),{style:i,container:h,ready:g}}}),Au="",xc={id:"container",ref:"container"};function pc(e,o,t,a,r,i){return n.openBlock(),n.createElementBlock("div",xc,[e.ready?(n.openBlock(),n.createElementBlock("div",{key:0,class:"page-config",style:n.normalizeStyle(e.style)},[n.renderSlot(e.$slots,"default",{},void 0,!0)],4)):n.createCommentVNode("",!0)],512)}const yi=pe(ye(yc,[["render",pc],["__scopeId","data-v-b496b36e"]])),Do={contextRequestUrl:"",pageMode:"normal",theme:"light",containerMap:{},combinationMap:{},width:"1920px",height:"1080px"},Ro=Se(Do),bc=n.defineComponent({name:"EcanProviderConfig",inheritAttrs:!1,props:{...Ro},setup(e,{expose:o}){mc();const t=n.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)),a=n.ref(),r=()=>{a.value.setAttribute("datav-theme",e.theme)},i=n.inject("usedComponentList",[]);n.watch(()=>e.theme,()=>{r()}),n.onMounted(()=>{r()});const s=n.computed(()=>De(e.contextRequestUrl)),l=n.computed(()=>e.pageMode),d=n.computed(()=>e.theme),c=n.computed(()=>e.width),g=n.computed(()=>e.height),h=n.ref("");n.provide(ze,{contextRequestUrl:s,pageMode:l,theme:d,touchEventId:h,width:c,height:g});const y=n.ref({height:"100%",overflow:e.pageMode==="design"?"":"hidden"});n.provide("setPageHeight",L=>{let H=L;t.value||(H=parseFloat(g.value)*L+"px"),y.value.height=H}),n.provide("isMobile",t.value),n.provide("getContainerMap",()=>e.containerMap),n.provide("getCombinationMap",()=>e.combinationMap);const u=n.ref(),m=new Map;console.log("globalModel",m);const f=L=>m.get(L),S=(L,H)=>{u.value=H,m.set(L,H)},B=()=>{u.value=null},p=L=>{let H=L;if(H){const Y=L.match(/\{(.+?)\}/g);if(Y!=null&&Y.length){let U=Y[0].slice(1,-1).trim();const ae=U.match(/\[(.+?)\]/g);let Q="";ae!=null&&ae.length&&(U=U.replace(ae[0],""),Q=ae[0].slice(1,-1).trim());const le=n.unref(i).find(re=>re.keyName===U);if(le){const re=f(le.id),{type:K,value:X,RECORD:ne}=re||{};ft(K,["table","bar","combograph","line","pie","radar","scatter","list"])?H=ne[Q]:H=X}else H=""}}return H};n.provide(Be,{getGlobalModel:f,setGlobalModel:S,clearInteractiveData:B,getRecordValueByKeyName:p,interactiveData:u});const b=n.ref({}),x=(L,H)=>{b.value[L]=H};n.provide(bt,{loadedData:b,setLoadedData:x});const A=[],k=()=>{A.pop()},D=L=>{A.push(L)},O=new Map,N=L=>O.get(L),C=(L,H)=>{O.set(L,H)};n.provide(lr,{popUseModalIds:k,pushUseModalIds:D,getModalModel:N,setModalModel:C});const T=zl(),R=new Set,v=(L,H)=>{R.add(L),T.on(L,Y=>typeof H[Y]=="function"&&H[Y]()),n.onBeforeUnmount(()=>{E(L)})},E=L=>{R.delete(L),T.off(L)},w=(L,H)=>{if(L==="PAGE"){const Y=A.length;let U=[];if(Y===0)U=[...R];else{const ae=A[Y-1];U=[...N(ae)]}U.forEach(ae=>{T.emit(ae,H)})}else T.emit(L,H)};n.provide(Mn,{onEvent:v,offEvent:E,emitEvent:w});const _=n.ref(0),z=()=>{_.value=n.unref(_)+1};n.provide(ir,{requestToken:z});const q=new Map,W=new Map,$=({requestFn:L=()=>{},sortNum:H=0,id:Y=""})=>{if(q.has(H)){const U=q.get(H);U==null||U.push(L)}else q.set(H,[L]);W.set(Y,L)},F=L=>new Promise((H,Y)=>{const U=L.map(ae=>ae());Promise.all(U).then(ae=>{H(ae)}).catch(ae=>{Y(ae)})}),P=L=>new Promise(async(H,Y)=>{if(L){if(typeof L=="string"){const U=W.get(L);if(typeof U=="function"){const ae=dt.interceptors.response.use(Q=>(H(Q),Q),Q=>(Y(Q),Promise.reject(Q)));U(),dt.interceptors.response.eject(ae)}}}else{const U=Array.from(q);U.sort((Q,le)=>le[0]-Q[0]);const ae=U.length;try{e.pageMode!=="design"&&n.unref(_)>0;for(let Q=0;Q<ae;Q++){const le=U[Q][1];await F(le)}}catch(Q){console.error(Q)}finally{q.clear(),H(null)}}});n.provide(Me,{setRequest:$,touchRequest:P});const M=()=>{T.emit(Jt)};n.provide(Jt,{emitRefreshPage:M});const I=L=>{T.on(Jt,()=>L()),n.onMounted(()=>{T.off(Jt)})};return n.onBeforeUnmount(()=>{q==null||q.clear(),W==null||W.clear()}),o({touchRequest:P,getGlobalModel:f,onRefreshPage:I}),{providerConfig:a,configStyle:y}}}),Tu="";function vc(e,o,t,a,r,i){return n.openBlock(),n.createElementBlock("div",{id:"ProviderConfig",ref:"providerConfig",style:n.normalizeStyle(e.configStyle)},[n.renderSlot(e.$slots,"default",{},void 0,!0)],4)}const xi=pe(ye(bc,[["render",vc],["__scopeId","data-v-a6d93422"]])),Io={...ke,name:"文本",keyName:"文本",type:"ecanText",width:"100px",height:"40px",text:"文字",lineHeight:1,color:"#333",variableColor:"#f00",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"},_o=Se(Io),pi=["refreshData","click","valueChange"],Oo="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=",Lo="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==",No=n.defineComponent({name:"EcanText",components:{Skeleton:ln},props:{..._o},setup(e,{expose:o}){const t=n.ref(!1),a=Ce(e),r=n.ref({}),i=n.computed(()=>e.variableFontSize||"14px"),s=n.computed(()=>"-"+n.unref(i));n.watch(()=>[e.data,e.dataType],([v,E])=>{E==="static"&&(r.value=v)},{immediate:!0});const{getGlobalModel:l,setGlobalModel:d,getRecordValueByKeyName:c}=n.inject(Be,{getGlobalModel:v=>{},setGlobalModel:(v,E)=>{},getRecordValueByKeyName:v=>{}}),{setLoadedData:g}=n.inject(bt,{setLoadedData:(v,E)=>{}}),h=n.computed(()=>{let v="";if(e.gradientShow){const{gradientColor:E,gradientOffset:w,gradientAngle:_,color:z}=e;v+=`background: linear-gradient(${_}, ${z}, ${E||"transparent"} ${w*100}%);-webkit-background-clip: text;color: transparent;`}return v}),y=n.computed(()=>{const v={};if(e.gradientShow){const{gradientColor:E,gradientOffset:w,gradientAngle:_,color:z}=e,q=E||"transparent";v.background=`linear-gradient(${_}, ${z}, ${q} ${w*100}%)`,v["-webkit-background-clip"]="text",v.color="transparent"}return v}),u=n.computed(()=>{var W;if(n.unref(t))return"NaN";const v=n.unref(r),E=e.increaseColor||e.color,w=e.declineColor||e.color;let _=e.text;_=_==null?void 0:_.replace(/\n|\\n/g,"<br/>"),_=_==null?void 0:_.replace(/\s(?!\{) | (?!\})\s/g," ");const z=_.match(/\{(.+?)\}/g)||[];let q="";if(z==null||z.length===0){if(_&&e.format==="percentage"&&!isNaN(+_)){const $=parseFloat(_),F=$*100,P=m(F.toFixed(2));$>=0?_=`<span style="color: ${P||E||"#ED6643"};font-size:${n.unref(i)};display: inline-block;${n.unref(h)}">
|
|
99
|
+
`;let i=e;if(t!=null&&t.length){for(const l of t){const d=De(l,{textData:o},{useNewline:!1,useSpace:!1});d&&(i=i.replace(l,d))}return`${r}{text|${i}}`}else return e},vn=(e,o)=>{const t={dayjs:be,...o};let a="";const r=[];for(const l in t)a+=`${l},`,r.push(t[l]);a=a.replace(/,$/,"");const i=`function (${a}){return ${e}}`;let s;try{s=Function(`"use strict";return (${i})`)()(...r)}catch{return e}return s},De=(e="",{textData:o,codeData:t}={},{useNewline:a=!1,useSpace:r=!1}={})=>{const s={...window.config||{},...o},l=e.match(/\{(.+?)\}/g);if(l==null||l.length===0)return e;for(let d=0;d<l.length;d++){const c=l[d];let f=c.slice(1,-1).trim();const y=/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,u=f.match(y);for(let h=0;h<u.length;h++){const m=u[h],g=s[m];g!=null&&typeof g!="function"&&(f=f.replace(m,g))}(/\(.*\)/g.test(f)||/[+/\\*]/g.test(f))&&(f=vn(f,t)),e=e.replace(c,f)}return a&&(e=e==null?void 0:e.replace(/\n|\\n/g,"<br/>")),r&&(e=e==null?void 0:e.replace(/\s{2,}?/g," ")),e},je=(e,o=()=>{})=>{const{requestUrl:t,requestMethod:a,requestHeaders:r,requestParams:i,requestInterval:s,isOpenRequestTimer:l}=e,{contextRequestUrl:d,touchEventId:c}=n.inject(Me,{contextRequestUrl:"",touchEventId:""}),{getGlobalModel:f}=n.inject(Be,{getGlobalModel:m=>{}}),y=De(t),u=async(m={})=>{if(!y||!a||!r)return;let g={};i.forEach(x=>{const{key:A,value:k}=x;if(typeof k=="object"&&k!=null&&k.id){let D={};const{id:O,prop:N,propKey:C,operate:T}=k;O==="THIS"?D=f(n.unref(c))||{}:D=f(O)||{};const R=n.unref(D[N]);let S=null;if(["date","range"].some(w=>ft(D==null?void 0:D.type,w))){const{value:w,type:_,mode:z}=T||{};if(w&&_&&z)switch(_){case"add":S=n.unref(R).add(w,z);break;case"minus":S=n.unref(R).subtract(w,z);break}S==null&&(S=n.unref(R)),S=(S==null?void 0:S.format((C==null?void 0:C.trim())||D.format))||""}else Object.prototype.toString.call(R)==="[object Object]"?C?S=R[C]:S=N?R[N]:R:ft(D==null?void 0:D.type,"select")&&n.unref(R)&&N&&Array.isArray(n.unref(R))?S=n.unref(R).map(w=>Object.prototype.hasOwnProperty.call(w,N)?w[N]:w):S=R;g[A]=S}else typeof k=="string"&&(g[A]=De(k))}),g={...window.config.requestParams,...m,...g};let v="";const B=Object.keys(g),p=B.length-1,b=B.length;B.forEach((x,A)=>{let k=g[x];Object.prototype.toString.call(k)==="[object Object]"&&(k=JSON.stringify(k)),A===0?b!==1?v+=`?${x}=${k}&`:v+=`?${x}=${k}`:A===p?v+=`${x}=${k}`:v+=`${x}=${k}&`});try{const x=["get","head"].includes(a),A={};let k=x?y+v:y;g.dataSqlId&&!k.includes("dataSqlId")&&(k+=`${k.includes("?")?"&":"?"}dataSqlId=${g.dataSqlId}`),Object.prototype.hasOwnProperty.call(g,"signal")&&(A.signal=g.signal);const D=await dt({baseURL:n.unref(d)||"",url:k,method:a,headers:r,data:x?{}:g,...A});return o(D),D}catch(x){console.error(x)}},h=l&&setInterval(u,s*1e3);return n.onUnmounted(()=>{clearInterval(h)}),u},wt=(e=[],o,t=!1)=>{let{name:a="name",types:r=[]}=o||{};a=(a==null?void 0:a.trim())||a;const i=new Set,s=new Map,l=e.length,d=r.length;if(l===1&&!t){const y=[];for(let h=0;h<d;h++){const m=r[h],{label:g,value:v}=m,B={...e[0],value:e[0][v]};i.add(g),y.push(B)}const u=e[0][a]||"";s.set(u,y)}else for(let y=0;y<l;y++){const u=e[y],h=u[a];i.add(h);for(let m=0;m<d;m++){const g=r[m],{label:v,value:B}=g,p={...u,value:u[B]||0};if(s.has(v)){const b=s.get(v);b.push(p),s.set(v,b)}else s.set(v,[p])}}const c=Array.from(i),f=[];for(const[y,u]of s)f.push({name:y,data:u});return{dimensions:c,dataset:f}},At=(e,o=!1)=>{var a;if(!e)return e;let t="";return e!=null&&e.includes("://")?t=e:t=((a=window==null?void 0:window.config)==null?void 0:a.uploadPath)+e,o&&(t=`url(${t})`),t},vi=(e,o)=>{const t=`${mr}/preview?pageId=${o}`,a=`${mr}/${o}`;return e==="preview"?t:a},it=(e,o)=>{var r;if(e==null)return o;const t=e.match(/\{.*\}/g);if(t==null||t.length===0)return o;const a=t.length;for(let i=0;i<a;i++){const s=t[i];if(s==null||s==="")break;let l=(r=s.slice(1,-1))==null?void 0:r.trim();l=l==null?void 0:l.replace(/value/g,o);try{let d=l;(/\(.*\)/g.test(l)||/[+/\\*]/g.test(l))&&(d=vn(l)),e=e.replace(s,d)}catch{e=e.replace(s,l)}}return e},lt=(e={})=>{const{requestToken:o}=n.inject(fr,{requestToken:()=>{}}),{setLoadedData:t}=n.inject(bt,{setLoadedData:(h,m)=>{}}),{getGlobalModel:a}=n.inject(Be,{getGlobalModel:h=>{}});e.dataType==="indicator"&&o();const r=h=>{const{around:m,unit:g,id:v}=h;let B="";const{pageMode:p="",componentList:b=[]}=(e==null?void 0:e.graphicConfig)||{};let x=null,A=null;if(p==="design"){const k=b==null?void 0:b.find(S=>S.id===v);if(!k)return[];const{interval:D,intervalUnit:O,startTime:N,endTime:C,operate:T,useCurrentTime:R}=k||{};if(R&&(x=be().subtract(D,O),A=be()),N&&(x=be(N)),C&&(A=be(C)),T){const{type:S,value:E,mode:w}=T;switch(S){case"add":x=x&&x.add(E,w),A=A&&A.add(E,w);break;case"minus":x=x&&x.subtract(E,w),A=A&&A.subtract(E,w)}}}else{const k=a(v)||{};n.unref(k.startTime)&&(x=be(n.unref(k.startTime))),n.unref(k.endTime)&&(A=be(n.unref(k.endTime)))}if(x&&A){const k=A.diff(x,g.toLowerCase());B=`${m==="before"?"-":""}${k+1}`}return B?[B]:[]},i=(h,m)=>Object.prototype.hasOwnProperty.call(h,m),s=h=>{const{calcWays:m=[],dateCalcTypes:g=[],activeKey:v,componentId:B=""}=h;if(v===5&&(m!=null&&m.length)&&(g!=null&&g.length)&&B){const p=m[0].split("-");(p==null?void 0:p.length)>1&&p[0]==="rangeValue"&&(h.calcWays=r({around:p[1],unit:g[0],id:B})),delete h.radioValue}i(h,"dataType")&&(h.fieldType==="DATE"&&(h.label=h.fieldName),h.dataType==="component"&&(h.fieldValue="${"+h.fieldValue+"}"),delete h.dataType),i(h,"activeKey")&&delete h.activeKey,i(h,"radioValue")&&delete h.radioValue,i(h,"indexCode")&&(h.hrpIndexCode=h.indexCode,delete h.indexCode),h.dataType!=="component"&&h.useCurrentTime&&(h.fieldValue=be().format(h.dateFormat)),delete h.useCurrentTime},l=h=>{const m=[];return h!=null&&h.length&&Ne.cloneDeep(h).forEach(g=>{if(g.join&&g.conditions){const v=!g.conditions.some(B=>B.join&&B.conditions);g.conditions.forEach((B,p)=>{s(B),v?p<g.conditions.length-1?m.push({join:g.join,...B}):m.push(B):B.join&&B.conditions?m.push({conditions:l([B]),join:g.join}):m.push(B)})}else s(g),m.push(g)}),m},d=(h={},m)=>{if(h!=null&&h.sortCpnts&&m){const R=u(h);R&&(m.sort=R)}const{label:g,name:v,location:B,show:p,indexCode:b,calcType:x="COLUMN",builtInFormula:A,builtInValueSource:k,builtInCalcWay:D,formula:O,conditions:N,aggregate:C}=h;let T;if(N&&(T=l(N)),x==="COMPONENT"){const R={};return y(R,k),{label:g.trim(),columnName:v,show:p,calcType:x,componentAlias:D,componentValue:R.fieldValue||null}}else return{label:g.trim(),columnName:v,location:B,show:p,calcType:x,hrpIndexCode:b,aggregate:C,builtInFormula:A,builtInValueSource:k,builtInCalcWay:D,formula:O,conditions:T}},c=h=>{const m=[];for(const g of h)g.conditions?m.push(...c(g.conditions)):(g==null?void 0:g.dataType)==="component"&&m.push(g);return m},f=h=>{if(!h)return[];const{controlList:m=[],classificationList:g=[],rowHeaderList:v=[],dimensionList:B=[],seriesList:p=[],leftAxisList:b=[],rightAxisList:x=[],queryColumnList:A=[],indicators:k=[]}=h,D=[...g,...v,...B,...p,...b,...x,...A,...k],O=[];for(const R of D){const S=c((R==null?void 0:R.conditions)||[]);if(S!=null&&S.length){const E=S.filter(w=>(w==null?void 0:w.dataType)==="component").map(w=>{const _={};return w!=null&&w.dateFormat&&(_.format=w.dateFormat),{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,..._}});if(E!=null&&E.length)for(const w of E)O.find(_=>_.keyName===w.keyName)||O.push(w)}}const N=m.concat(O),C=N.length,T=[];for(let R=0;R<C;R++){const S=N[R];if((S==null?void 0:S.conditionKey)==="parentCode")continue;const{id:E,keyName:w,conditionLabel:_,conditionKey:z,conditionValueType:q,prop:W,rule:$="NONE",notGlobal:F=!1,format:P,modelKey:M,indexCode:I,typeGuid:L}=S;let H=w||E;H&&W&&(H+=`-${W}`);let Y=$;Y==="NONE"&&(["startTime","endTime"].includes(W)?Y=W==="startTime"?"GREATER_EQUAL":"LESS_EQUAL":w!=null&&w.includes("startTime")?Y=W==="GREATER_EQUAL":w!=null&&w.includes("endTime")?Y=W==="LESS_EQUAL":Y="EQUAL");const U={rule:Y,label:_,fieldName:z,fieldValue:"",valueType:q,alias:H,globalCondition:!F,indexCode:I,typeGuid:L};y(U,E,{prop:W,dateFormat:P,modelKey:M,keyName:w}),T.push(U)}for(let R=T.length-1;R>=0;R--){const S=T[R];S.globalCondition||T.find(w=>w.alias===S.alias&&w.globalCondition)&&T.splice(R,1)}return T};function y(h,m,g){var T,R;const v=a(m)||{},{prop:B="",dateFormat:p="",modelKey:b="",keyName:x=""}=g||{},{value:A,format:k="YYYY-MM-DD",type:D="",useCurrentTime:O,RECORD:N}=v||{},C=p||k;if(ft(v.type,"date"))O?A?h.fieldValue=(T=n.unref(A))==null?void 0:T.format(C):h.fieldValue=be().format(C):h.fieldValue=(R=n.unref(A))==null?void 0:R.format(C),h.dateFormat=C;else if(D==="ecanRangePicker"){let S=B;if(!B){const w=x&&x.split("-");w!=null&&w.length&&(S=w[w.length-1])}if(!S)return;let E=null;n.unref(v[S])&&(E=be(n.unref(v[S]))),E&&(h.fieldValue=E==null?void 0:E.format(C)),h.dateFormat=C}else ft(D,["table","bar","combograph","line","pie","radar","scatter","list"])?b&&N?h.fieldValue=N[b]:!b&&N?h.fieldValue=N.value:h.fieldValue=n.unref(A):h.fieldValue=n.unref(A)}const u=h=>{const{sortCpnts:m=[]}=h;let g,v="";for(const B of m){const p=a(B)||{},{type:b,RECORD:x}=p;if(ft(b,"image")&&ft(x==null?void 0:x.value,["asc","desc"])){v=x.value.toUpperCase();break}}return v&&(g={label:h.label,columnName:h.name,order:v,type:"NORMAL"}),g};return async(h={})=>{var Y,U,ae,Q,le,re;t(e.id,!1);const{graphicConfig:m,type:g,isGroupTable:v=!1}=e;let{source:B,dataViewId:p,plugin:b="1",layer:x,chartType:A,classificationList:k=[],rowHeaderList:D=[],dimensionList:O=[],seriesList:N=[],leftAxisList:C=[],rightAxisList:T=[],queryColumnList:R=[],indicators:S=[],controlList:E=[],formFields:w={},idxLibMode:_,preview:z=!1}=m||{},q=[];(m==null?void 0:m.pageMode)==="design"?q=(m.sqlConditions??[]).map(K=>{const X=K.rule||"EQUAL",ne={};return i(K,"globalCondition")||(ne.globalCondition=!0),{...K,rule:X==="NONE"?"EQUAL":X,...ne}}):q=f(m);for(const K of q)i(K,"indexCode")&&(K.hrpIndexCode=K.indexCode,delete K.indexCode);x==null&&(ft(g,["table"])?x="1":ft(g,["select","checkbox","radio"])?x="3":x="2");let W,$="";if(Array.isArray(k)&&k.length>0){const K=k.length;for(let X=0;X<K;X++){const ne=k[X]||{},{label:xe="",name:we="",show:Te=!1,sort:$e,customGroup:ze,conditions:Ie,dateFormat:Ae,typeGuid:He="",truncations:Fe=[]}=ne;if(Te||K===1){$=He,W={label:xe.trim(),columnName:we,show:Te,sort:u(ne)||$e,customGroup:ze,conditions:l(Ie),typeGuid:He},Ae&&(W.dateFormat=Ae),we==="the_date"&&!W.dateFormat&&(W.dateFormat="YYYY-MM");const Ze={};if(Array.isArray(Fe)&&Fe.length>0){const We=Fe.length;for(let Ve=0;Ve<We;Ve++){const ut=Fe[Ve]||{},{rule:et="",num:tt=0,name:V=""}=ut;et&&tt&&(Ze.num=tt,Ze.rule=et,V&&(Ze.otherGroupName=V))}}(Y=Object.keys(Ze))!=null&&Y.length&&(W.truncation=Ze);break}}}let F;if(Array.isArray(N)&&N.length>0){const K=N.length;for(let X=0;X<K;X++){const ne=N[X]||{},{label:xe="",name:we="",show:Te=!1,sort:$e,customGroup:ze,conditions:Ie}=ne;if(Te||K===1){F={label:xe.trim(),columnName:we,show:Te,sort:$e,customGroup:ze,conditions:l(Ie)};break}}}const P=[];C==null||C.forEach(K=>{K.location="LEFT",P.push(d(K,W))}),T==null||T.forEach(K=>{K.location="RIGHT",P.push(d(K,W))}),S==null||S.forEach(K=>{K.location="LEFT",P.push(d(K,W))});const M=[];R==null||R.forEach(K=>{const{label:X,name:ne,location:xe,show:we,indexCode:Te,sort:$e,typeGuid:ze}=K;let Ie=$e;if(h.sort){const{field:Ae,order:He}=h.sort;let Fe=P.find(Ze=>Ze.label===Ae);!Fe&&X===Ae&&(Fe=K),Fe&&(Ie={columnName:Fe.columnName,label:h.sort.field,order:He.toUpperCase(),type:"NORMAL"})}M.push({label:X,columnName:ne,location:xe,show:we,sort:Ie,calcType:"COLUMN",hrpIndexCode:Te,typeGuid:ze})});const I=[];let L=[];if(Array.isArray(D)&&D.length>0?L=D:Array.isArray(O)&&O.length>0&&(L=O),L!=null&&L.length){const K=L.length;for(let X=0;X<K;X++){const ne=L[X]||{},{label:xe="",name:we="",show:Te=!1,sort:$e,customGroup:ze,conditions:Ie,truncations:Ae,typeGuid:He="",dateFormat:Fe}=ne;let Ze=$e;if(h.sort){const{field:ut,order:et}=h.sort;let tt=P.find(V=>V.label===ut);!tt&&ne.label===ut&&(tt=ne),tt&&(Ze={columnName:tt.columnName,label:h.sort.field,order:et.toUpperCase(),type:"NORMAL"})}const We={label:xe.trim(),columnName:we,show:Te,sort:Ze,customGroup:ze,conditions:l(Ie),typeGuid:He};Fe&&(We.dateFormat=Fe),we==="the_date"&&!We.dateFormat&&(We.dateFormat="YYYY-MM");const Ve={};if(Array.isArray(Ae)&&Ae.length>0){const ut=Ae.length;for(let et=0;et<ut;et++){const tt=Ae[et]||{},{rule:V="",num:Z=0,name:J=""}=tt;V&&Z&&(Ve.num=Z,Ve.rule=V,J&&(Ve.otherGroupName=J))}}(U=Object.keys(Ve))!=null&&U.length&&(We.truncation=Ve),I.push(We)}}if(ft(g,["text","proportion"])&&(A="zb"),v){if(I.length===0||P.length===0)return;A="grouptable"}else{if(x==="1"&&M.length===0)return;if(x==="2"&&P.length===0)return;if(x==="3"&&(!$||!w.labelField||!w.valueField))return}O!=null&&O.length&&(x="1",A="grouptable");let H=(ae=window==null?void 0:window.config)==null?void 0:ae.pageId;if(!H){const{pathname:K}=window==null?void 0:window.location;if(K){const X=K.split("/");X!=null&&X.length&&(H=X[X.length-1])}}if((Q=Object.keys(w))!=null&&Q.length){const K=E.find(ne=>ne.conditionKey==="parentCode"),X={};if(K){const ne=a(K.id)||{};if(ne!=null&&ne.itemCodes)X.parentItemCodes=ne.itemCodes;else return}try{return await dt.post(`${gr}/diagram/formData`,{source:B,dataViewId:p,plugin:"4",layer:x,chartType:"normalSelect",rangeIndexTypeGuid:$,type:"normalSelect",labelField:w.labelField,valueField:w.valueField,pageId:H,sqlConditions:q,idxLibMode:"WITH_DATE_DIM_TABLE",keyName:e.keyName,...X},{headers:{Authentication:(le=window==null?void 0:window.config)==null?void 0:le.indicatorToken,operateContext:hr}})}catch(ne){console.error(ne)}finally{}}else try{return await dt.post(`${gr}/diagram`,{source:B,dataViewId:p,plugin:b,layer:x,chartType:A,classification:W,series:F,indicatorList:P,queryColumns:v?[]:M,pageFlag:!0,pageId:H,sqlConditions:q.map(X=>{const{fieldValue:ne}=X,xe={};return ne&&Array.isArray(ne)&&(xe.fieldValue=JSON.stringify(ne)),{...X,...xe}}),idxLibMode:_,preview:z,rowHeaders:I,keyName:e.keyName},{headers:{Authentication:(re=window==null?void 0:window.config)==null?void 0:re.indicatorToken,operateContext:hr}})}catch(K){console.error(K)}finally{}}},Ic=()=>{const o=window.location.search.slice(1).split("&"),t=o.length,a={};for(let r=0;r<t;r++){const i=o[r];if(i==null||i==="")continue;const s=i.split("=");if(Array.isArray(s)){const l=s[0];a[l]=s[1]}}window.config.requestParams={...window.config.requestParams,...a},window.config={...window.config,...a}},_c=n.defineComponent({name:"EcanPageConfig",inheritAttrs:!1,props:{...Mn},setup(e){const{width:o,height:t}=n.inject(Me,{width:null,height:null}),a=n.inject("setPageHeight",x=>{}),r=n.inject("isMobile",!1),i=n.computed(()=>{const x={};return r||(x.width=o.value,x.height=t.value),{...x,backgroundColor:e.backgroundColor,backgroundImage:At(e.backgroundImage,!0),backgroundSize:e.backgroundSize}}),s=n.ref(0),l=n.ref(0),d=n.ref(0),c=n.ref(0),f=n.ref(!1),y=n.ref();let u;const h=()=>new Promise(x=>{n.nextTick(()=>{o.value&&t.value?(s.value=parseFloat(o.value),l.value=parseFloat(t.value)):(s.value=y.value.clientWidth,l.value=y.value.clientHeight),(!d.value||!c.value)&&(d.value=window.screen.width,c.value=window.screen.height),x()})}),m=()=>{s.value&&l.value?(y.value.style.width=`${s.value}px`,y.value.style.height=`${l.value}px`):(y.value.style.width=`${d.value}px`,y.value.style.height=`${c.value}px`)};n.watch([o,t],async()=>{await h(),m(),v(),window.addEventListener("resize",B),p(),f.value=!0},{immediate:!0});const g=n.ref({});n.provide("scaleValue",g);const v=()=>{if(r){y.value.style.width="100%",y.value.style.height="auto",a("auto");return}const x=document.body.clientWidth,A=document.body.clientHeight,k=s.value||d.value,D=l.value||c.value,O=x/k;let N=A/D;(s.value!==1920||l.value!==1080)&&(N=l.value/s.value*x/D),g.value={widthScale:O,heightScale:N},y.value&&(y.value.style.transform=`scale(${O}, ${N})`),a(N)},B=Ne.debounce(async()=>{await h(),v()},100),p=()=>{const x=window.MutationObserver;u=new x(B),u.observe(y.value,{attributes:!0,attributeFilter:["style"],attributeOldValue:!0})},b=()=>{u&&(u.disconnect(),u.takeRecords(),u=null)};return n.onMounted(()=>{f.value=!1}),n.onUnmounted(()=>{window.removeEventListener("resize",B),b()}),{style:i,container:y,ready:f}}}),Ru="",Oc={id:"container",ref:"container"};function Lc(e,o,t,a,r,i){return n.openBlock(),n.createElementBlock("div",Oc,[e.ready?(n.openBlock(),n.createElementBlock("div",{key:0,class:"page-config",style:n.normalizeStyle(e.style)},[n.renderSlot(e.$slots,"default",{},void 0,!0)],4)):n.createCommentVNode("",!0)],512)}const Si=pe(ye(_c,[["render",Lc],["__scopeId","data-v-b496b36e"]])),Ro={contextRequestUrl:"",pageMode:"normal",theme:"light",containerMap:{},combinationMap:{},width:"1920px",height:"1080px"},Io=Se(Ro),Nc=n.defineComponent({name:"EcanProviderConfig",inheritAttrs:!1,props:{...Io},setup(e,{expose:o}){Ic();const t=n.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)),a=n.ref(),r=()=>{a.value.setAttribute("datav-theme",e.theme)},i=n.inject("usedComponentList",[]);n.watch(()=>e.theme,()=>{r()}),n.onMounted(()=>{r()});const s=n.computed(()=>De(e.contextRequestUrl)),l=n.computed(()=>e.pageMode),d=n.computed(()=>e.theme),c=n.computed(()=>e.width),f=n.computed(()=>e.height),y=n.ref("");n.provide(Me,{contextRequestUrl:s,pageMode:l,theme:d,touchEventId:y,width:c,height:f});const u=n.ref({height:"100%",overflow:e.pageMode==="design"?"":"hidden"});n.provide("setPageHeight",L=>{let H=L;t.value||(H=parseFloat(f.value)*L+"px"),u.value.height=H}),n.provide("isMobile",t.value),n.provide("getContainerMap",()=>e.containerMap),n.provide("getCombinationMap",()=>e.combinationMap);const h=n.ref(),m=new Map;console.log("globalModel",m);const g=L=>m.get(L),v=(L,H)=>{h.value=H,m.set(L,H)},B=()=>{h.value=null},p=L=>{let H=L;if(H){const Y=L.match(/\{(.+?)\}/g);if(Y!=null&&Y.length){let U=Y[0].slice(1,-1).trim();const ae=U.match(/\[(.+?)\]/g);let Q="";ae!=null&&ae.length&&(U=U.replace(ae[0],""),Q=ae[0].slice(1,-1).trim());const le=n.unref(i).find(re=>re.keyName===U);if(le){const re=g(le.id),{type:K,value:X,RECORD:ne}=re||{};ft(K,["table","bar","combograph","line","pie","radar","scatter","list"])?H=ne[Q]:H=X}else H=""}}return H};n.provide(Be,{getGlobalModel:g,setGlobalModel:v,clearInteractiveData:B,getRecordValueByKeyName:p,interactiveData:h});const b=n.ref({}),x=(L,H)=>{b.value[L]=H};n.provide(bt,{loadedData:b,setLoadedData:x});const A=[],k=()=>{A.pop()},D=L=>{A.push(L)},O=new Map,N=L=>O.get(L),C=(L,H)=>{O.set(L,H)};n.provide(ur,{popUseModalIds:k,pushUseModalIds:D,getModalModel:N,setModalModel:C});const T=ql(),R=new Set,S=(L,H)=>{R.add(L),T.on(L,Y=>typeof H[Y]=="function"&&H[Y]()),n.onBeforeUnmount(()=>{E(L)})},E=L=>{R.delete(L),T.off(L)},w=(L,H)=>{if(L==="PAGE"){const Y=A.length;let U=[];if(Y===0)U=[...R];else{const ae=A[Y-1];U=[...N(ae)]}U.forEach(ae=>{T.emit(ae,H)})}else T.emit(L,H)};n.provide(Pn,{onEvent:S,offEvent:E,emitEvent:w});const _=n.ref(0),z=()=>{_.value=n.unref(_)+1};n.provide(fr,{requestToken:z});const q=new Map,W=new Map,$=({requestFn:L=()=>{},sortNum:H=0,id:Y=""})=>{if(q.has(H)){const U=q.get(H);U==null||U.push(L)}else q.set(H,[L]);W.set(Y,L)},F=L=>new Promise((H,Y)=>{const U=L.map(ae=>ae());Promise.all(U).then(ae=>{H(ae)}).catch(ae=>{Y(ae)})}),P=L=>new Promise(async(H,Y)=>{if(L){if(typeof L=="string"){const U=W.get(L);if(typeof U=="function"){const ae=dt.interceptors.response.use(Q=>(H(Q),Q),Q=>(Y(Q),Promise.reject(Q)));U(),dt.interceptors.response.eject(ae)}}}else{const U=Array.from(q);U.sort((Q,le)=>le[0]-Q[0]);const ae=U.length;try{e.pageMode!=="design"&&n.unref(_)>0;for(let Q=0;Q<ae;Q++){const le=U[Q][1];await F(le)}}catch(Q){console.error(Q)}finally{q.clear(),H(null)}}});n.provide(Pe,{setRequest:$,touchRequest:P});const M=()=>{T.emit(Xt)};n.provide(Xt,{emitRefreshPage:M});const I=L=>{T.on(Xt,()=>L()),n.onMounted(()=>{T.off(Xt)})};return n.onBeforeUnmount(()=>{q==null||q.clear(),W==null||W.clear()}),o({touchRequest:P,getGlobalModel:g,onRefreshPage:I}),{providerConfig:a,configStyle:u}}}),_u="";function Fc(e,o,t,a,r,i){return n.openBlock(),n.createElementBlock("div",{id:"ProviderConfig",ref:"providerConfig",style:n.normalizeStyle(e.configStyle)},[n.renderSlot(e.$slots,"default",{},void 0,!0)],4)}const Ci=pe(ye(Nc,[["render",Fc],["__scopeId","data-v-a6d93422"]])),_o={...ke,name:"文本",keyName:"文本",type:"ecanText",width:"100px",height:"40px",text:"文字",lineHeight:1,color:"#333",variableColor:"#f00",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"},Oo=Se(_o),wi=["refreshData","click","valueChange"],Lo="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=",No="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==",Fo=n.defineComponent({name:"EcanText",components:{Skeleton:sn},props:{...Oo},setup(e,{expose:o}){const t=n.ref(!1),a=Ce(e),r=n.ref({}),i=n.computed(()=>e.variableFontSize||"14px"),s=n.computed(()=>"-"+n.unref(i));n.watch(()=>[e.data,e.dataType],([S,E])=>{E==="static"&&(r.value=S)},{immediate:!0});const{getGlobalModel:l,setGlobalModel:d,getRecordValueByKeyName:c}=n.inject(Be,{getGlobalModel:S=>{},setGlobalModel:(S,E)=>{},getRecordValueByKeyName:S=>{}}),{setLoadedData:f}=n.inject(bt,{setLoadedData:(S,E)=>{}}),y=n.computed(()=>{let S="";if(e.gradientShow){const{gradientColor:E,gradientOffset:w,gradientAngle:_,color:z}=e;S+=`background: linear-gradient(${_}, ${z}, ${E||"transparent"} ${w*100}%);-webkit-background-clip: text;color: transparent;`}return S}),u=n.computed(()=>{const S={};if(e.gradientShow){const{gradientColor:E,gradientOffset:w,gradientAngle:_,color:z}=e,q=E||"transparent";S.background=`linear-gradient(${_}, ${z}, ${q} ${w*100}%)`,S["-webkit-background-clip"]="text",S.color="transparent"}return S}),h=n.computed(()=>{var W;if(n.unref(t))return"NaN";const S=n.unref(r),E=e.increaseColor||e.color,w=e.declineColor||e.color;let _=e.text;_=_==null?void 0:_.replace(/\n|\\n/g,"<br/>"),_=_==null?void 0:_.replace(/\s(?!\{) | (?!\})\s/g," ");const z=_.match(/\{(.+?)\}/g)||[];let q="";if(z==null||z.length===0){if(_&&e.format==="percentage"&&!isNaN(+_)){const $=parseFloat(_),F=$*100,P=m(F.toFixed(2));$>=0?_=`<span style="color: ${P||E||"#ED6643"};font-size:${n.unref(i)};display: inline-block;${n.unref(y)}">
|
|
100
100
|
<div class="percentage-img-box">
|
|
101
|
-
<img style="width: ${n.unref(i)};filter: ${`drop-shadow(${P||E||"#ED6643"} ${n.unref(i)} 0px)`};" src="${
|
|
101
|
+
<img style="width: ${n.unref(i)};filter: ${`drop-shadow(${P||E||"#ED6643"} ${n.unref(i)} 0px)`};" src="${Lo}"/>
|
|
102
102
|
</div>
|
|
103
|
-
<span style="color: ${P||e.color};${n.unref(
|
|
104
|
-
</span>`:_=`<span style="color: ${P||w||"#6ACB97"};font-size:${n.unref(i)};display: inline-block;${n.unref(
|
|
103
|
+
<span style="color: ${P||e.color};${n.unref(y)}">${Math.abs(+F).toFixed(2)}%</span>
|
|
104
|
+
</span>`:_=`<span style="color: ${P||w||"#6ACB97"};font-size:${n.unref(i)};display: inline-block;${n.unref(y)}">
|
|
105
105
|
<div class="percentage-img-box">
|
|
106
|
-
<img style="width: ${n.unref(i)};filter: ${`drop-shadow(${P||w||"#6ACB97"} ${n.unref(i)} 0px)`};" src="${
|
|
106
|
+
<img style="width: ${n.unref(i)};filter: ${`drop-shadow(${P||w||"#6ACB97"} ${n.unref(i)} 0px)`};" src="${No}"/>
|
|
107
107
|
</div>
|
|
108
|
-
<span style="color: ${P||e.color};${n.unref(
|
|
109
|
-
</span>`}q=_}for(let $=0;$<z.length;$++){const F=z[$],P=(W=F==null?void 0:F.slice(1,F.length-1))==null?void 0:W.trim();let M=P;const I=P.match(/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g);for(let H=0;H<I.length;H++){const Y=I[H],U=
|
|
108
|
+
<span style="color: ${P||e.color};${n.unref(y)}">${e.minusSignShow?"-":""}${Math.abs(+F).toFixed(2)}%</span>
|
|
109
|
+
</span>`}q=_}for(let $=0;$<z.length;$++){const F=z[$],P=(W=F==null?void 0:F.slice(1,F.length-1))==null?void 0:W.trim();let M=P;const I=P.match(/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g);for(let H=0;H<I.length;H++){const Y=I[H],U=S[Y];U&&(M=P.replace(Y,c(String(U))||U))}if(/\(.*\)/g.test(M)){const H=vn(M);H!=null&&(M=H)}let L=M;if(L===P&&(L=e.variableDefaultValue),L!=null){const H=e.format;if(H==="percentage")if(L=+L,isNaN(L))_=_.replace(F,`<span style="color:${m("0.00")||e.variableColor};font-size:${n.unref(i)};${n.unref(y)}">0%</span>`);else if(L>=0){L=L*100;const Y=m(L.toFixed(2));_=_.replace(F,`<span style="color: ${Y||E||"#ED6643"};font-size:${n.unref(i)};display: inline-block;${n.unref(y)}">
|
|
110
110
|
<div class="percentage-img-box">
|
|
111
|
-
<img style="width: ${n.unref(i)};filter: ${`drop-shadow(${Y||E||"#ED6643"} ${n.unref(i)} 0px)`};" src="${
|
|
111
|
+
<img style="width: ${n.unref(i)};filter: ${`drop-shadow(${Y||E||"#ED6643"} ${n.unref(i)} 0px)`};" src="${Lo}"/>
|
|
112
112
|
</div>
|
|
113
|
-
<span style="color: ${Y||e.color};${n.unref(
|
|
114
|
-
</span>`)}else{L=L*100;const Y=m(L.toFixed(2));_=_.replace(F,`<span style="color: ${Y||w||"#6ACB97"};font-size:${n.unref(i)};display: inline-block;${n.unref(
|
|
113
|
+
<span style="color: ${Y||e.color};${n.unref(y)}">${Math.abs(+L).toFixed(2)}%</span>
|
|
114
|
+
</span>`)}else{L=L*100;const Y=m(L.toFixed(2));_=_.replace(F,`<span style="color: ${Y||w||"#6ACB97"};font-size:${n.unref(i)};display: inline-block;${n.unref(y)}">
|
|
115
115
|
<div class="percentage-img-box">
|
|
116
|
-
<img style="width: ${n.unref(i)};filter: ${`drop-shadow(${Y||w||"#6ACB97"} ${n.unref(i)} 0px)`};" src="${
|
|
116
|
+
<img style="width: ${n.unref(i)};filter: ${`drop-shadow(${Y||w||"#6ACB97"} ${n.unref(i)} 0px)`};" src="${No}"/>
|
|
117
117
|
</div>
|
|
118
|
-
<span style="color: ${Y||e.color};${n.unref(
|
|
119
|
-
</span>`)}else e.format==="percent"?(L=+L,isNaN(L)||(L=(L*100).toFixed(2),_=_.replace(F,`<span style="color:${m(L)||e.variableColor};font-size:${n.unref(i)};${n.unref(h)}">${L}%</span>`))):e.format==="money"?(L=+L,isNaN(L)||(L=Eo(L),_=_.replace(F,`<span style="color:${m(L)||e.variableColor};font-size:${n.unref(i)};${n.unref(h)}">${L}</span>`))):H==="thousands"?(L=+L,isNaN(L)||(L=hc(L),_=_.replace(F,`<span style="color:${m(L)||e.variableColor};font-size:${n.unref(i)};${n.unref(h)}">${L}</span>`))):_=_.replace(F,`<span style="color:${m(L)||e.variableColor};font-size:${n.unref(i)};${n.unref(h)}">${L}</span>`)}}if(q||(q=`<span style="color: ${m(_)};${n.unref(h)}">${_}</span>`),e.unitShow&&e.unitText){const{unitTop:$,unitLeft:F}=e;let P="position:relative;";$&&(P+=`top:${$};`),F&&(P+=`margin-left:${F};`),q+=`<span style='color:${e.unitColor};font-size:${e.unitFontSize};font-weight:${e.unitFontWeight};${P};${n.unref(h)}'>${e.unitText}</span>`}return q});function m(v){let E="",w=!1;const{targetValue:_,targetShow:z,notExpectColor:q}=e;if(z){switch(e.targetRule){case"equal":v!==_&&(w=!0);break;case"greater":v<=_&&(w=!0);break;case"greater_equal":v<_&&(w=!0);break;case"less":v>=_&&(w=!0);break;case"less_equal":v>_&&(w=!0);break}w&&(E=q)}return E}const{pageMode:f}=n.inject(ze,{pageMode:"normal"}),S=je(e),B=n.ref(!1),p=async()=>{var v;try{B.value=!0;const E=await S();r.value=((v=E==null?void 0:E.data)==null?void 0:v.data)||{}}catch(E){console.error(E)}finally{B.value=!1}},b=(v={})=>{r.value=v},x=v=>{const E=e.id,w=l(E);d(E,{...w,value:v||"",RECORD:v||""})},A=()=>{x("")},k=lt(e),D=async()=>{var v,E;try{B.value=!0;const w=await k(),{data:_}=(w==null?void 0:w.data)||{};if(_){t.value=!1;const{columns:z=[],rows:q=[]}=((v=w==null?void 0:w.data)==null?void 0:v.data)??{},{graphicConfig:W}=e;let $={};if(z.length>0)if((E=W==null?void 0:W.dimensionList)!=null&&E.length){const F=z[0];F&&(q!=null&&q.length)&&($={value:q[0][F]})}else{const F=z.find(P=>!!P);F&&($={value:isNaN(q[F])?0:q[F]||0})}x($==null?void 0:$.value),b($)}else t.value=!0,x("NaN"),b({value:"NaN"})}catch(w){console.error(w)}finally{B.value=!1,g(e.id,!0)}},O=()=>{switch(e.dataType){case"indicator":D();break;case"request":p();break}},{setRequest:N}=n.inject(Me,{setRequest:({id:v,sortNum:E,requestFn:w})=>{}});typeof N=="function"&&N({id:e.id,requestFn:O,sortNum:e.requestSort}),Le(e,{refreshData:O,resetRecord:A}),o({refreshData:O});const C=Ee(e),T=C("click",()=>{const v=document.getElementsByClassName(`ecan-text_${e.id}`);if(v!=null&&v.length&&x(v[0].innerText),setTimeout(()=>{x("")},0),!e.linkPage&&!e.href)return;const E=e.linkPage||"",w=mi(n.unref(f),E),_=e.href;let z=_||w;z=De(z);const q=e.target;q&&(q!=="event"?window.open(z,"_"+q):window.parent.postMessage({type:"openPage",url:_},"*"))}),R=C("valueChange",()=>{});return n.watch(()=>u.value,(v,E)=>{v!==E&&R()}),{style:a,myText:u,loading:B,click:T,textIndent:s,vFontSize:i,gradientStyle:y}}}),bi=()=>{n.useCssVars(e=>({bf700b4e:e.vFontSize,"10d75bc6":e.textIndent,d0a92fc4:e.percentageSide}))},vi=No.setup;No.setup=vi?(e,o)=>(bi(),vi(e,o)):bi;const Eu="",Sc=["innerHTML"];function Cc(e,o,t,a,r,i){const s=n.resolveComponent("skeleton");return e.loading?(n.openBlock(),n.createElementBlock("div",{key:0,class:"skeleton-wrapper",style:n.normalizeStyle(e.style)},[n.createVNode(s,{loading:e.loading},null,8,["loading"])],4)):(n.openBlock(),n.createElementBlock("div",{key:1,class:n.normalizeClass(["ecan-text","ecan-text_"+e.id]),style:n.normalizeStyle({...e.style,...e.gradientStyle}),innerHTML:e.myText,onClick:o[0]||(o[0]=(...l)=>e.click&&e.click(...l))},null,14,Sc))}const Si=pe(ye(No,[["render",Cc],["__scopeId","data-v-fc956f5c"]])),wc=n.defineComponent({name:"EcanScrollText",setup(){return{text:n.ref("基础文本")}}}),Ru="",Ac={class:"red"};function kc(e,o,t,a,r,i){return n.openBlock(),n.createElementBlock("div",Ac,n.toDisplayString(e.text),1)}const Ci=pe(ye(wc,[["render",kc],["__scopeId","data-v-4dd9c03e"]])),Fo={...ke,name:"时间展示",keyName:"时间展示",type:"ecanTimeDisplay",format:"YYYY-MM-DD dddd HH:mm:ss",fontSize:"16px",color:"#333",width:"240px",height:"40px",fontFamily:"",fontWeight:400,textShadow:"",alignItems:"center",justifyContent:"center",operate:null,updateInterval:{value:1,mode:"second"}},zo=Se(Fo),wi=["timeChange"],Tc=n.defineComponent({name:"EcanTimeDisplay",props:{...zo},setup(e){const o=Ce(e),t=()=>{const{format:c,operate:g}=e;let h=be();if(g){const{type:y,value:u,mode:m}=g;switch(y){case"add":h=h.add(u,m);break;case"minus":h=h.subtract(u,m)}}return h.format(c)},a=n.ref();n.watch(()=>[e.operate,e.format],()=>{a.value=t()},{immediate:!0,deep:!0}),n.watch(()=>e.updateInterval,()=>{d()},{deep:!0});let r=null;const i=()=>{clearInterval(r),r=null},l=Ee(e)("timeChange",()=>{}),d=()=>{r&&i();let c=1e3;const{value:g,mode:h}=e.updateInterval||{};g&&(c=c*g);const y={second:1,minute:60,hour:60*60,day:24*60*60};h&&(c=c*y[h]),r=setInterval(()=>{a.value=t(),l()},c)};return Le(e,{timeChange:l}),n.onMounted(()=>{d()}),n.onUnmounted(()=>{i()}),{style:o,time:a}}}),_u="";function Bc(e,o,t,a,r,i){return n.openBlock(),n.createElementBlock("div",{class:"time-display",style:n.normalizeStyle(e.style)},n.toDisplayString(e.time),5)}const Ai=pe(ye(Tc,[["render",Bc],["__scopeId","data-v-b628fca2"]])),Mo={...ke,type:"ecanList",name:"列表",keyName:"列表",width:"330px",height:"80px",backgroundColor:"#0d215e",itemColSpan:"10px",itemRowSpan:"10px",itemPadding:"20px",useRanking:!1,useTitle:!1,sliceCount:6,columnCount:1,itemHeight:"32px",data:[{name:"a",age:12},{name:"b",age:14}],columns:[{key:"name"},{key:"age"}],seqIcon:!1,isUseSeq:!1,seqWidth:"10%",seqName:"序号",seqFontSize:"14px",isAutoScroll:!1,scrollSpeed:.3,graphicConfig:{}},Po=Se(Mo),ki=["refreshData","click","resetRecord"],Ec="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAYCAYAAACfpi8JAAAAAXNSR0IArs4c6QAAAWhJREFUSEvNlz9Lw0AYxp/3iJ2TgqN+ia5ihbb0A/hnEXG3QxHEyUkQVwcHwU3cgoI4hHKXUnQS3Z0VQVBwbTVtXrlciyKmLo2XmxI47v3x3HPvPUdcKk3B85og2gYwjUkOIoD5CcAeSXk0bmniSqWJQuEA/f4kEb7WMjD6f42kPE0rQlyrPYJoZjg5O5g4voDnrZDvf/xWRIMkuJkOo8odXHeefL9rG+QWrlvOA8gNomiBOp2ePUVM5S7iuE5heG0bBNBeieMdKLWvv74D/Y9Zf0rAfEZKLdkHEUIrcw8h5qjVetNAdhRJKidH+nnY6EJ7IKN9YY4ANPIAou+WDXsgZmtewLxKSik7ICOzOk6ZguDVplnPScpFe8c3Jw2th8GgTu32lb0Wb4yZg0vPgOQmBvwRjKrVBwgxm3lUZL6E4yxTELyneaQBxznMPDwzr5NSJ+nhWT8nisVNAFuZPSeYd0mp43G5+BNp2sfxEUU29gAAAABJRU5ErkJggg==",Dc="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAYCAYAAACfpi8JAAAAAXNSR0IArs4c6QAAAbVJREFUSEvNl7tKA1EQhmfOyd6ClikVLHwCWzHb5QHUbWIStVRQBLGyEEFsLSwUq6idKIiFjZdNUgTR3k7wAoqC2GU3mz0ju5uIRaKN68l5gDMfM//M/IO0PaS4yd55ErTEEFMEf/cYIvgknjjgmpq3t376GZ2iOa8l+Ybn+CD+kqIZlSFA+C1CTpuw9zvBYK2YfuCM9QmKgaIZNcEQGj4da0bKQuug3g4G3T2TYmQIYwYlIqIbVXdH0KrW2oI4u2Z8qfgqT6AVutZ1Ny0VhAelEXSl+2DilO1IywhCKNgaR8oouVJFGkikk0grvqBl9c5cx5UV8R0I/0MjbTJwqOftMekgmsLA9fxbTa8Po1V9D8eMpIyAwhE8n55JYM6YvDyXBhIN21DEHgHNdgNIg4BmpIEEpak3xGsCMKsU7DMpIC2xeg2R7p2uvMkTK9GRXiiNSmnfrhhoYXcQODzBMkr2oixtxLeW3osP5oDMpRdZxl9sQNcYo1oxfc8Z64/dKgo6efwwxgfnTt1OGpnVDL4Zp3mOAouCmivvdjTPwTlRN3oWBMFiHOeEIPFEAKtGvrTz0znxCSDl9ZPnj4lKAAAAAElFTkSuQmCC",Rc="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAYCAYAAACfpi8JAAAAAXNSR0IArs4c6QAAAZhJREFUSEvNl79LY0EUhb87L6uwkHSieRjBwm7/ApHVbcwzrT8ake21EGHZympBbLewEOxk2xVEBAVttBLtrRWTiLtaiTHue3NlsgiKRiwSJ1NOMffjzLl3zghH+oHL81ms/Y4xHajSsGUMJMkZIgtE4fJr5wqbpVnS6Z9UrmkoxENVMYCC6BTD4a96MMJW8RQT5LC2YUI8OygInDLrdGcn+CR3LxUStsvaFCUeV3NXpPaIdPKZ/lzlZZCtUgNNUUdUB2LtIZlksBVADmivDvGl99afIiLOsBWUPFG47w/EVXbdU7uieJ7h7CIiT7pDeA+PPJfgN1E49njbD0hbO9xVj8kkA/TnrmqCeVIEUimI4zJqphjp2vUHUpPBmZh/JDrjH0Q1xjLtDyRIQRJfQDBJ1LnjB+TBrFYGKWT/+DTrGlE46qd9W2Kgue5QvUXIkw/3/I34/69vCzx6b4oBrROMiieYoKfpUTGON9CbcQp91ToeKc7wMbPU9PCsfCXKrtYPz+478fd8DtVvGGnOd0LlB4Vw5bV0fg/E2Mcb2D1RagAAAABJRU5ErkJggg==",Ic="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAYCAYAAACfpi8JAAAAAXNSR0IArs4c6QAAAapJREFUSEvNl88rBGEYx7/P7K6yO2VGOfJPuAqF/AGYi7Q7y8mWTcnJQUquDg4kVnITJQdpZyVOsndXtKUoM4vyY3feR7OLiN0cjHff05ze7+d95vs+7/chtC6FGvRQkgiTBGrCXy4igEVOgGbzaXOx2takdaWSSl39PBefAPBfYpT3KsF4H2LITsc3KgmQ3pO6BFEz2AeId1VSwELsOHrEwKbx8hMM6T1r7EslPqsReefMqlq4PbdpPFYASflYijfJEgifqlqkQzKIArB7YheoE4emZ8Zvy/OI/xUpyz5CoNfOmMeSQah8gwRP2db5HDAtvtjoHyvyocuMLccy+6WDkBICi+KZq4Tb7vaN21K7kVGRcqMLeAa+EqChfDqWkQfy9l+YUWAgUQMgXGTQqDwQCoDZvWZWBvNW1JIC8m7WQlB0POzFb6SZlYFtJ232Sbq+tdPQnth1e52DkSN5LZ5q5dH7XQz4r2AksqqmVglG3asXUJQWv6MiWOzawfsB7I09V/DISoKCkQW/wzMzoo4VW68YnkvjRGNonEATBPgzTjDP5K3h5Wojwitkj93H9BVpxQAAAABJRU5ErkJggg==";(function(){try{if(typeof document<"u"){var e=document.createElement("style");e.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(e)}}catch(o){console.error("vite-plugin-css-injected-by-js",o)}})();var _c=Object.defineProperty,Ti=Object.getOwnPropertySymbols,Oc=Object.prototype.hasOwnProperty,Lc=Object.prototype.propertyIsEnumerable,Bi=(e,o,t)=>o in e?_c(e,o,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[o]=t,Ei=(e,o)=>{for(var t in o||(o={}))Oc.call(o,t)&&Bi(e,t,o[t]);if(Ti)for(var t of Ti(o))Lc.call(o,t)&&Bi(e,t,o[t]);return e},Nc=(e,o)=>{const t=e.__vccOpts||e;for(const[a,r]of o)t[a]=r;return t};const Fc=n.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(e,{emit:o}){const t=n.ref(0),a=n.ref("100%"),r=n.ref("100%"),i=n.ref(0),s=n.ref(!1),l=n.ref(!1),d=n.ref(0),c=n.ref(0),g=n.ref(0),h=n.ref(0),y=n.ref(!1),u=n.ref(!1),m=n.ref(0),f=n.ref(null),S=n.ref("200px"),B=n.ref(!1),p=n.ref(null),b=n.ref(null),x=async()=>{await A(),i.value++},A=async()=>{e.vertical&&(s.value=!0),setInterval(()=>{if(a.value="0%",r.value="0%",p.value!==null&&b.value!==null&&p.value&&b.value)if(e.vertical&&"clientHeight"in p.value&&"clientHeight"in b.value){h.value=p.value.clientHeight,g.value=b.value.clientHeight;const _=Math.ceil(g.value/h.value);return t.value=isFinite(_)?_:0,s.value=!1,t.value}else if(!e.vertical&&"clientWidth"in p.value&&"clientWidth"in b.value){if(c.value=p.value.clientWidth,d.value=b.value.clientWidth,e.animateOnOverflowOnly)return c.value<d.value?(l.value=!0,o("onOverflowDetected")):(l.value=!1,o("onOverflowCleared")),0;const _=Math.ceil(d.value/c.value);return t.value=isFinite(_)?_:0,t.value}else return a.value="100%",r.value="100%",0;else return a.value="100%",r.value="100%",0},100)};n.watch(c,async()=>{e.clone&&x()}),n.watch(d,async()=>{(e.clone||e.animateOnOverflowOnly)&&x()}),n.watch(()=>e.pause,(_,z)=>{_!==z&&o(_?"onResume":"onPause")});const k=()=>{e.pauseOnHover&&(o("onPause"),y.value=!0)},D=()=>{e.pauseOnHover&&(o("onResume"),y.value=!1)},O=()=>{e.pauseOnClick&&(o("onPause"),u.value=!0)},N=()=>{e.pauseOnClick&&(o("onResume"),u.value=!1)},C=n.computed(()=>e.pause||e.vertical&&s.value||e.animateOnOverflowOnly&&l.value?"paused":"running"),T=n.computed(()=>e.pauseOnHover&&(y.value||u.value)||!e.pauseOnHover&&C.value==="paused"?"paused":"running"),R=n.computed(()=>e.pauseOnHover&&y.value||e.pauseOnClick&&u.value||!e.pauseOnHover&&C.value==="paused"?"paused":"running"),v=n.computed(()=>{const _={"--duration":`${e.duration}s`,"--delay":`${e.delay}s`,"--direction":`${e.direction}`,"--pauseOnHover":`${T.value}`,"--pauseOnClick":`${R.value}`,"--pauseAnimation":`${C.value}`,"--loops":`${e.loop===0?"infinite":e.loop}`,"--gradient-color":`rgba(${e.gradientColor[0]}, ${e.gradientColor[1]}, ${e.gradientColor[2]}, 1), rgba(${e.gradientColor[0]}, ${e.gradientColor[1]}, ${e.gradientColor[2]}, 0)`,"--gradient-length":`${S.value}`,"--min-width":`${a.value}`,"--min-height":`${r.value}`},z={"--orientation":"scrollX",orientation:"horizontal"};return e.vertical&&(z["--orientation"]="scrollY"),Ei(Ei({},_),z)}),E=n.computed(()=>!!e.gradient),w=async()=>{e.vertical?(r.value="100%",a.value="auto",e.animateOnOverflowOnly&&console.warn("The `animateOnOverflowOnly` prop is not supported for vertical marquees.")):(r.value="auto",e.animateOnOverflowOnly?a.value="auto":a.value="100%"),e.gradient&&(e.gradientWidth?(console.warn("The `gradientWidth` prop has been deprecated and will be removed in a future release. Please use `gradientLength` instead."),S.value=e.gradientWidth):e.gradientLength&&(S.value=e.gradientLength)),(e.clone||e.animateOnOverflowOnly)&&(await A(),x()),B.value=!0};return n.onMounted(async()=>{w(),f.value=setInterval(()=>{m.value++,e.loop!==0&&m.value===e.loop&&(o("onComplete"),clearInterval(f.value)),o("onLoopComplete")},e.duration*1e3)}),n.onBeforeUnmount(()=>{clearInterval(f.value)}),{ready:B,contentWidth:c,containerWidth:d,contentHeight:h,containerHeight:g,loopCounter:m,loopInterval:f,mouseOverMarquee:y,mouseDownMarquee:u,minWidth:a,minHeight:r,animateOnOverflowPause:l,marqueeContent:p,marqueeOverlayContainer:b,componentKey:i,showGradient:E,cloneAmount:t,ForcesUpdate:x,checkForClone:A,setupMarquee:w,getCurrentStyle:v,hoverStarted:k,hoverEnded:D,mouseDown:O,mouseUp:N}}}),zc={class:"transparent-overlay",ref:"marqueeOverlayContainer","aria-hidden":!0},Mc={class:"marquee",ref:"marqueeContent"},Pc={key:1,"aria-hidden":!0,class:"marquee"};function qc(e,o,t,a,r,i){return e.ready?(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["vue3-marquee",{vertical:e.vertical,horizontal:!e.vertical}]),style:n.normalizeStyle(e.getCurrentStyle),key:e.componentKey,onMouseenter:o[0]||(o[0]=(...s)=>e.hoverStarted&&e.hoverStarted(...s)),onMouseleave:o[1]||(o[1]=(...s)=>e.hoverEnded&&e.hoverEnded(...s)),onMousedown:o[2]||(o[2]=(...s)=>e.mouseDown&&e.mouseDown(...s)),onMouseup:o[3]||(o[3]=(...s)=>e.mouseUp&&e.mouseUp(...s))},[n.createElementVNode("div",zc,null,512),e.showGradient?(n.openBlock(),n.createElementBlock("div",{key:0,"aria-hidden":!0,class:n.normalizeClass(["overlay",{vertical:e.vertical,horizontal:!e.vertical}])},null,2)):n.createCommentVNode("",!0),n.createElementVNode("div",Mc,[n.renderSlot(e.$slots,"default")],512),!e.animateOnOverflowOnly||e.animateOnOverflowOnly&&!e.animateOnOverflowPause?(n.openBlock(),n.createElementBlock("div",Pc,[n.renderSlot(e.$slots,"default")])):n.createCommentVNode("",!0),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.cloneAmount,s=>(n.openBlock(),n.createElementBlock("div",{"aria-hidden":!0,class:"marquee cloned",key:s},[n.renderSlot(e.$slots,"default")]))),128))],38)):n.createCommentVNode("",!0)}var Hc=Nc(Fc,[["render",qc]]);const Vc=n.defineComponent({name:"SeamScroll",components:{Vue3Marquee:Hc},props:{dataSource:{type:Object,default:()=>{}},visible:{type:Boolean,default:!1},step:{type:Number,default:1}},setup(e){return{isAutoScroll:n.ref(e.visible)}}}),jc={key:1,class:"list-wrap"};function Wc(e,o,t,a,r,i){const s=n.resolveComponent("Vue3Marquee");return e.isAutoScroll?(n.openBlock(),n.createBlock(s,{key:0,class:"vue-marquee",style:{width:"100%"},duration:e.step,vertical:!0,pauseOnHover:!0},{default:n.withCtx(()=>[n.renderSlot(e.$slots,"default")]),_:3},8,["duration"])):(n.openBlock(),n.createElementBlock("div",jc,[n.renderSlot(e.$slots,"default")]))}const Uc=ye(Vc,[["render",Wc]]),Gc=n.defineComponent({name:"EcanList",components:{Skeleton:ln,ATooltip:ce.Tooltip,MarqueeScroll:Uc},props:{...Po},setup(e,{expose:o}){const t=n.ref(),a=Ce(e,["backgroundColor"]),r=(C,T)=>{const{format:R,customFormatter:v}=T;if(R==null||R==="")return C;const E={money:Eo,percentage:pn,contrast:pn,custom:gi};return E[R]?R==="custom"?E[R](C,v)||"":E[R](C)||"":""},i=(C,T)=>{const R=parseFloat(C+"");if(T!=="contrast")return"";switch(!0){case R>=0:return"goUp";case R<0:return"goDown"}},s=je(e),l=n.ref(!1),d=async()=>{var C;if(e.dataType==="request")try{l.value=!0;const T=await s();t.value=((C=T==null?void 0:T.data)==null?void 0:C.data.rows)||[]}catch(T){console.error(T)}finally{l.value=!1}};n.watch(()=>e.data,()=>{t.value=e.data},{immediate:!0,deep:!0});const c=n.computed(()=>({key:"SEQ",width:e.seqWidth,title:e.seqName,align:"center",fontSize:e.seqFontSize})),g=n.computed(()=>{const{columns:C,isUseSeq:T}=e;return T?[n.unref(c),...C]:C}),h=lt(e),y=async()=>{var C;try{l.value=!0;const T=await h(),{columns:R=[],rows:v=[]}=((C=T==null?void 0:T.data)==null?void 0:C.data)??{};e.isUseSeq&&R.unshift(e.seqName),g.value.forEach((E,w)=>{(!e.isUseSeq||w!==0)&&(E.title=R[w],E.key=R[w])}),t.value=v}catch(T){console.error(T)}finally{l.value=!1}},u=()=>{switch(e.dataType){case"indicator":y();break;case"request":d();break}},m=Ee(e),{getGlobalModel:f,setGlobalModel:S}=n.inject(Be,{getGlobalModel:C=>{},setGlobalModel:(C,T)=>{}}),B=C=>{m("click",()=>{const T=f(e.id);S(e.id,{...T,type:e.type,RECORD:C})})()};Le(e,{refreshData:u,resetRecord:()=>{const C=e.id,T=f(C);S(C,{...T,type:e.type,RECORD:""})}});const{setRequest:b}=n.inject(Me,{setRequest:({id:C,sortNum:T,requestFn:R})=>{}});typeof b=="function"&&b({id:e.id,requestFn:u,sortNum:e.requestSort}),o({refreshData:u});const x=C=>({flex:C.width?"none":"1",width:C.width,height:e.itemHeight,lineHeight:e.itemHeight,textAlign:C.align||"left",backgroundColor:C.cellColor}),A=(C,T)=>{let R=0;const v=n.unref(t).map(w=>w[T]),E=Math.max(...v);return E&&(R=C[T]/E*100),R},k=C=>{const{progressColor:T="#1890ff",progressGradientColor:R=""}=C;return R?{background:`linear-gradient(to right, ${T} 0%, ${R} 100%)`}:{backgroundColor:T||"#1890ff"}},D=n.computed(()=>{const C=parseFloat(e.seqFontSize)+5;return{width:C+10,height:C}}),{pageMode:O}=n.inject(ze,{pageMode:"normal"}),N=n.computed(()=>n.unref(O)==="preview"&&e.isAutoScroll);return{style:a,formatFn:r,contrastClass:i,dataSource:t,loading:l,myColumns:g,click:B,getColumnStyle:x,getPercentage:A,getBackgroundColor:k,seqIcon4:Ec,seqIcon5:Dc,seqIcon6:Rc,seqIcon7:Ic,iconSize:D,isScroll:N}}}),Lu="",Nu="",$c=e=>(n.pushScopeId("data-v-83e1ef11"),e=e(),n.popScopeId(),e),Zc={key:0,class:"title"},Yc={key:0,class:"ranking"},Kc={key:1,class:"ecan-list-content"},Qc=["onClick"],Jc={key:0,class:"ranking"},Xc=$c(()=>n.createElementVNode("div",{class:"icon"},null,-1)),ed={class:"sort"},td=["src","width","height"],nd=["src","width","height"],od=["src","width","height"],ad=["src","width","height"],rd={key:1},id={key:2,class:"empty"};function ld(e,o,t,a,r,i){const s=n.resolveComponent("a-tooltip"),l=n.resolveComponent("marquee-scroll"),d=n.resolveComponent("skeleton");return n.openBlock(),n.createElementBlock("div",{class:"ecan-list",style:n.normalizeStyle(e.style)},[n.createVNode(d,{loading:e.loading},{default:n.withCtx(()=>[e.useTitle?(n.openBlock(),n.createElementBlock("div",Zc,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.columnCount,c=>(n.openBlock(),n.createElementBlock("div",{class:"title-inner",style:n.normalizeStyle({backgroundColor:e.backgroundColor,height:e.itemHeight,width:`calc(100% / ${e.columnCount} - ${e.itemColSpan} * ${e.columnCount-1}/ ${e.columnCount})`,marginRight:c%e.columnCount!==0?e.itemColSpan:"",padding:`0 ${e.itemPadding}`}),key:c},[e.useRanking?(n.openBlock(),n.createElementBlock("div",Yc)):n.createCommentVNode("",!0),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.myColumns,(g,h)=>(n.openBlock(),n.createElementBlock("div",{class:"column",key:g.key||h,style:n.normalizeStyle({color:g.titleColor,...e.getColumnStyle(g)})},n.toDisplayString(g.title),5))),128))],4))),128))])):n.createCommentVNode("",!0),e.dataSource.length>0?(n.openBlock(),n.createElementBlock("div",Kc,[e.useTitle?(n.openBlock(),n.createElementBlock("div",{key:0,class:"title-placeholder",style:n.normalizeStyle({marginBottom:e.itemRowSpan})},null,4)):n.createCommentVNode("",!0),n.createVNode(l,{visible:e.isScroll,step:e.scrollSpeed},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.dataSource.slice(0,e.sliceCount),(c,g)=>(n.openBlock(),n.createElementBlock("div",{class:"item",style:n.normalizeStyle({backgroundColor:e.backgroundColor,height:e.itemHeight,width:`calc(100% / ${e.columnCount} - ${e.itemColSpan} * ${e.columnCount-1} / ${e.columnCount})`,marginRight:(g+1)%e.columnCount!==0?e.itemColSpan:"",marginBottom:e.itemRowSpan,padding:`0 ${e.itemPadding}`}),key:c.id||g,onClick:h=>e.click(c)},[e.useRanking?(n.openBlock(),n.createElementBlock("div",Jc,[Xc,n.createElementVNode("div",ed," Top "+n.toDisplayString(g+1),1)])):n.createCommentVNode("",!0),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.myColumns,h=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["column",e.contrastClass(c[h.key],h.format)]),key:h.key,style:n.normalizeStyle({fontSize:h.fontSize,color:e.contrastClass(c[h.key],h.format)===""?h.color:"",fontWeight:h.fontWeight,...e.getColumnStyle(h)})},[h.key==="SEQ"?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[e.seqIcon?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[g===0?(n.openBlock(),n.createElementBlock("img",{key:0,class:"seq-icon",src:e.seqIcon4,width:e.iconSize.width,height:e.iconSize.height},null,8,td)):g===1?(n.openBlock(),n.createElementBlock("img",{key:1,class:"seq-icon",src:e.seqIcon5,width:e.iconSize.width,height:e.iconSize.height},null,8,nd)):g===2?(n.openBlock(),n.createElementBlock("img",{key:2,class:"seq-icon",src:e.seqIcon6,width:e.iconSize.width,height:e.iconSize.height},null,8,od)):g>=3?(n.openBlock(),n.createElementBlock("img",{key:3,class:"seq-icon",src:e.seqIcon7,width:e.iconSize.width,height:e.iconSize.height},null,8,ad)):n.createCommentVNode("",!0),n.createElementVNode("span",{class:"seq-icon seq-text",style:n.normalizeStyle({fontSize:e.seqFontSize})},n.toDisplayString(g+1),5)],64)):(n.openBlock(),n.createElementBlock("span",rd,n.toDisplayString(g+1),1))],64)):h.format==="progress"?(n.openBlock(),n.createElementBlock("div",{key:1,class:"progress-cell",style:n.normalizeStyle({height:e.itemHeight})},[n.createElementVNode("div",{class:"progress",style:n.normalizeStyle({height:h.progressWidth||"14px",backgroundColor:h.progressBaseColor})},[n.createVNode(s,{title:c[h.key],overlayClassName:"ecan-list-tooltip",color:"#fff"},{default:n.withCtx(()=>[n.createElementVNode("div",{style:n.normalizeStyle({borderRadius:"10px",height:h.progressWidth||"14px",width:`${e.getPercentage(c,h.key)}%`,...e.getBackgroundColor(h)})},null,4)]),_:2},1032,["title"])],4)],4)):(n.openBlock(),n.createElementBlock(n.Fragment,{key:2},[n.createTextVNode(n.toDisplayString((h.format!=null||h.format!=="")&&e.formatFn(c[h.key],h)),1)],64))],6))),128))],12,Qc))),128))]),_:1},8,["visible","step"])])):(n.openBlock(),n.createElementBlock("div",id," 暂无数据 "))]),_:1},8,["loading"])],4)}const Di=pe(ye(Gc,[["render",ld],["__scopeId","data-v-83e1ef11"]])),qo={...ke,name:"占比图",keyName:"占比图",type:"ecanProportion",strokeType:"circle",width:"200px",height:"200px",strokeColor:"#4091f7",strokeLinecap:"round",trailColor:"#f5f5f5",data:{percent:.3},text:"{percent}%",fontSize:"26px",color:"#4091f7",strokeWidth:6,fontWeight:400,strokeTextWidth:"100%",lineHeight:"26px",decimalFormat:!0,variableDefaultValue:"0",strokeTextShow:!0,gradientShow:!0,gradientColor:"",gradientOffset:1,graphicConfig:{}},Ho=Se(qo),Ri=["refreshData","click"],sd=n.defineComponent({name:"EcanProportion",components:{AProgress:ce.Progress,Skeleton:ln},props:{...Ho},setup(e,{expose:o}){const t=n.ref(!1),{pageMode:a}=n.inject(ze,{pageMode:"normal"}),r=Ce(e),i=n.computed(()=>{const x=e.width;return parseFloat(x)}),s=n.ref({});n.watch(()=>e.data,()=>{(e.dataType==="static"||n.unref(a)==="design")&&(s.value=e.data)},{immediate:!0,deep:!0});const l=n.computed(()=>{const x=n.unref(s),A=+e.variableDefaultValue;if(x==null)return isNaN(A)?0:A;const k=e.text.match(/\{.+\}/g)||[];let D;const O=new Set(Object.keys(x));for(let N=0;N<k.length;N++){const C=k[N],T=C.slice(1,C.length-1);if(O.has(T)){D=x[T];break}}return typeof D=="number"?D=D*100:typeof D=="string"&&!isNaN(+D)?D=+D*100:isNaN(A)?D=0:D=A*100,e.decimalFormat&&(D=+D.toFixed(2)),D}),d=n.computed(()=>{var O;let x=e.text;if(x==="")return n.unref(l);const A=e.variableDefaultValue,k=n.unref(s),D=x.match(/\{.+\}/g)||[];for(let N=0;N<D.length;N++){const C=D[N];let T=C.slice(1,C.length-1);const R=/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,v=C.match(R);for(let w=0;w<(v==null?void 0:v.length);w++){const _=(O=v[w])==null?void 0:O.trim();k[_]!=null&&(T=T.replace(_,k[_]))}let E=T;try{/\(.*\)/g.test(T)&&(E=vn(T))}catch(w){console.error(w)}typeof+E=="number"&&!isNaN(+E)?(E=+E*100,e.decimalFormat&&(E=E.toFixed(2))):E=A,x=x.replace(C,E+"")}return n.unref(t)?"NaN":x}),c=je(e),g=n.ref(!1),h=async()=>{var x;if(e.dataType==="request")try{g.value=!0;const A=await c();s.value=((x=A==null?void 0:A.data)==null?void 0:x.data)||{}}catch(A){console.error(A)}finally{g.value=!1}},y=(x={})=>{s.value=x},u=lt(e),m=async()=>{var x;try{g.value=!0;const A=await u(),{data:k}=(A==null?void 0:A.data)||{};if(k){t.value=!1;const{columns:D=[],rows:O=[]}=((x=A==null?void 0:A.data)==null?void 0:x.data)??{};let N={};if(D.length>0){const C=D.find(T=>!!T);C&&(N={percent:O[C]})}y(N)}else t.value=!0,y({percent:"NaN"})}catch(A){console.error(A)}finally{g.value=!1}},f=()=>{switch(e.dataType){case"indicator":m();break;case"request":h();break}};Le(e,{refreshData:f}),o({refreshData:f});const B=Ee(e)("click",()=>{}),{setRequest:p}=n.inject(Me,{setRequest:({id:x,sortNum:A,requestFn:k})=>{}});typeof p=="function"&&p({id:e.id,requestFn:f,sortNum:e.requestSort});const b=n.computed(()=>{const{gradientShow:x,gradientColor:A,gradientOffset:k,strokeColor:D}=e;let O=D;return x&&A&&(O={"0%":D,[`${k*100}%`]:A}),O});return{style:r,myWidth:i,text:d,myValue:l,loading:g,click:B,customStrokeColor:b}}}),zu="";function cd(e,o,t,a,r,i){const s=n.resolveComponent("skeleton"),l=n.resolveComponent("a-progress");return n.openBlock(),n.createElementBlock("div",{class:"ecan-proportion",style:n.normalizeStyle(e.style)},[n.createVNode(l,{class:"progress",percent:e.myValue,width:e.myWidth,type:e.strokeType,strokeColor:e.customStrokeColor,strokeLinecap:e.strokeLinecap,trailColor:e.trailColor,strokeWidth:e.strokeWidth,showInfo:e.strokeTextShow,gapDegree:e.strokeType==="dashboard"?75:0,onClick:e.click},{format:n.withCtx(()=>[e.loading?(n.openBlock(),n.createBlock(s,{key:0,loading:e.loading},null,8,["loading"])):e.strokeTextShow?(n.openBlock(),n.createElementBlock("div",{key:1,class:"format",style:n.normalizeStyle({width:e.strokeTextWidth,fontSize:e.fontSize,color:e.color,fontWeight:e.fontWeight,lineHeight:e.lineHeight})},n.toDisplayString(e.text),5)):n.createCommentVNode("",!0)]),_:1},8,["percent","width","type","strokeColor","strokeLinecap","trailColor","strokeWidth","showInfo","gapDegree","onClick"])],4)}const Ii=pe(ye(sd,[["render",cd],["__scopeId","data-v-cf942b5f"]])),Vo={...ke,width:"200px",id:"",left:"0px",top:"0px",name:"输入框",keyName:"输入框",rotate:"",type:"ecanInput",value:"",placeholder:"请输入文字",optionFontSize:"14px"},jo=Se(Vo),_i=["inputChange","inputBlur"],dd=n.defineComponent({name:"EcanInput",components:{AInput:ce.Input},props:{...jo},setup(e){const o=Ce(e),t=n.ref(""),{getGlobalModel:a,setGlobalModel:r,getRecordValueByKeyName:i}=n.inject(Be,{getGlobalModel:g=>{},setGlobalModel:(g,h)=>{},getRecordValueByKeyName:g=>{}});n.watch(()=>e.value,g=>{t.value=i(g)},{immediate:!0}),r(e.id,{type:e.type,value:t});const s=()=>{const g=a(e.id);r(e.id,{...g,RECORD:t})},l=Ee(e),d=Ve.debounce(l("inputChange",()=>{s()}),300),c=l("inputBlur",()=>{});return{style:o,myValue:t,inputBlur:c,inputChange:d}}}),Pu="";function fd(e,o,t,a,r,i){const s=n.resolveComponent("a-input");return n.openBlock(),n.createElementBlock("div",{class:"ecan-input",style:n.normalizeStyle(e.style)},[n.createVNode(s,{class:"input",value:e.myValue,"onUpdate:value":o[0]||(o[0]=l=>e.myValue=l),placeholder:e.placeholder,onChange:e.inputChange,onBlur:e.inputBlur,style:n.normalizeStyle({fontSize:e.optionFontSize})},null,8,["value","placeholder","onChange","onBlur","style"])],4)}const Oi=pe(ye(dd,[["render",fd]])),Wo={...ke,height:"33px",width:"130px",id:"",left:"0px",top:"0px",name:"日期选择器",keyName:"日期选择器",rotate:"",type:"ecanDatePicker",value:"",picker:"date",format:"YYYY-MM-DD",showTime:!1,useCurrentTime:!0,operate:null,optionFontSize:"14px"},Uo=Se(Wo),Li=["dateChange"],Go=n.defineComponent({name:"EcanDatePicker",props:{...Uo},components:{ADatePicker:ce.DatePicker},setup(e){const o=n.inject("scaleValue",{widthScale:"1",heightScale:"1"}),t=Ce(e),a=()=>document.getElementById("ProviderConfig")||document.body,r=n.ref(null);n.watch(()=>[e.value,e.useCurrentTime,e.operate],([y,u,m])=>{let f=null;if(y?f=be(De(y)):u&&(f=be()),m&&f){const{type:S,value:B,mode:p}=m;switch(S){case"add":f=f.add(B,p);break;case"minus":f=f.subtract(B,p)}}r.value=f},{deep:!0,immediate:!0});const{setGlobalModel:i}=n.inject(Be,{setGlobalModel:(y,u)=>{}});i(e.id,{type:e.type,format:e.format,useCurrentTime:e.useCurrentTime,value:r});const l=Ee(e)("dateChange",()=>{}),d=()=>{n.unref(r)&&l()};Le(e,{dateChange:l});const c=n.ref({}),g=n.ref({}),h=y=>{y?setTimeout(()=>{g.value=n.unref(c)},300):g.value={}};return n.onMounted(()=>{setTimeout(()=>{const y=document.querySelector(`#ecan-date-picker-${e.id}`);if(y){const u=y.getBoundingClientRect(),m=parseFloat(n.unref(o).widthScale)*280;document.body.clientWidth-u.left<m&&(c.value.marginLeft=-1*(m-u.width)+"px")}},0)}),{style:t,getPopupContainer:a,myValue:r,locale:za,change:d,scaleValue:o,popupStyle:c,customStyle:g,openChange:h}}}),Ni=()=>{n.useCssVars(e=>({d6fb5b46:e.optionFontSize}))},Fi=Go.setup;Go.setup=Fi?(e,o)=>(Ni(),Fi(e,o)):Ni;const Hu="",Vu="",ud=["id"];function hd(e,o,t,a,r,i){const s=n.resolveComponent("a-date-picker");return n.openBlock(),n.createElementBlock("div",{class:"ecan-date-picker",style:n.normalizeStyle(e.style),id:"ecan-date-picker-"+e.id},[n.createVNode(s,{class:"date-picker",dropdownClassName:"ecan-date-picker-dropdown",value:e.myValue,"onUpdate:value":o[0]||(o[0]=l=>e.myValue=l),format:e.format,picker:e.picker,showTime:e.showTime,locale:e.locale,onChange:e.change,onOpenChange:e.openChange,getPopupContainer:e.getPopupContainer,popupStyle:{fontSize:e.optionFontSize,transform:`scale(${e.scaleValue.widthScale}, ${e.scaleValue.heightScale})`}},null,8,["value","format","picker","showTime","locale","onChange","onOpenChange","getPopupContainer","popupStyle"])],12,ud)}const zi=pe(ye(Go,[["render",hd],["__scopeId","data-v-d4ec0d66"]])),$o={...ke,name:"日期范围选择器",keyName:"日期范围选择器",type:"ecanRangePicker",width:"250px",height:"35px",picker:"date",format:"YYYY-MM-DD",startTime:"",endTime:"",useCurrentTime:!0,interval:1,intervalUnit:"year",operate:null,limitStartTime:"",limitEndTime:"",associated:"",optionFontSize:"14px",isAllowSpanYear:!0,limitInterval:null},Zo=Se($o),Mi=["dateChange"];var Pi={exports:{}};(function(e,o){(function(t,a){e.exports=a()})(de,function(){var t="month",a="quarter";return function(r,i){var s=i.prototype;s.quarter=function(c){return this.$utils().u(c)?Math.ceil((this.month()+1)/3):this.month(this.month()%3+3*(c-1))};var l=s.add;s.add=function(c,g){return c=Number(c),this.$utils().p(g)===a?this.add(3*c,t):l.bind(this)(c,g)};var d=s.startOf;s.startOf=function(c,g){var h=this.$utils(),y=!!h.u(g)||g;if(h.p(c)===a){var u=this.quarter()-1;return y?this.month(3*u).startOf(t).startOf("day"):this.month(3*u+2).endOf(t).endOf("day")}return d.bind(this)(c,g)}}})})(Pi);var gd=Pi.exports;const md=fr(gd);be.extend(md);const Yo=n.defineComponent({name:"EcanRangePicker",components:{ARangePicker:ce.RangePicker},props:{...Zo},setup(e){const o=Ce(e),t=()=>document.getElementById("ProviderConfig")||document.body,a=n.ref([null,null]);n.watch(()=>[e.startTime,e.endTime,e.useCurrentTime,e.interval,e.intervalUnit,e.operate],([b,x,A,k,D,O])=>{let N=null,C=null;if(A&&(N=be().subtract(k,D),C=be()),b&&(N=be(De(b))),x&&(C=be(De(x))),O){const{type:T,value:R,mode:v}=O;switch(T){case"add":N=N&&N.add(R,v),C=C&&C.add(R,v);break;case"minus":N=N&&N.subtract(R,v),C=C&&C.subtract(R,v)}}a.value=[N,C]},{immediate:!0});let r=n.unref(a)[0],i=n.unref(a)[1],s="";const l=(b,x,A)=>{Array.isArray(b)?(r=b[0],i=b[1],s=A.range):(r=null,i=null)};window.dayjs=be;const d=b=>{let x=!1,{limitStartTime:A,limitEndTime:k}=e;const D={startTime:`${r||""}`,endTime:`${i||""}`};if(A=De(A,{codeData:D}),k=De(k,{codeData:D}),A&&k?x=!(be(A)<b&&b<be(k)):A?x=be(A)>b:k&&(x=be(k)<b),!e.isAllowSpanYear&&s){let O=null;if(s==="start"?O=r:s==="end"&&(O=i),O){const N=O.startOf("year"),C=O.endOf("year");x=!(N<=b&&b<C)}}if(!x){const{value:O=0,mode:N="year"}=e.limitInterval||{};O&&(s==="start"?x=r.add(O,N)<b:s==="end"&&(x=i.subtract(O,N)>b))}return x},{getGlobalModel:c,setGlobalModel:g}=n.inject(Be,{getGlobalModel:b=>{},setGlobalModel:(b,x)=>{}}),h=n.computed(()=>Array.isArray(n.unref(a))?n.unref(a)[0]:null),y=n.computed(()=>Array.isArray(n.unref(a))?n.unref(a)[1]:null);g(e.id,{type:e.type,format:e.format,startTime:h,endTime:y,interval:e.interval,intervalUnit:e.intervalUnit,useCurrentTime:e.useCurrentTime,operate:e.operate});const u=Ee(e);let m=!1;const f=u("dateChange",()=>{}),S=b=>{const x=n.unref(a),A=x&&x[0]&&x[1];b===!1&&m===!0&&A&&(f(),m=!1),b||(s="")},B=()=>{m=!0};return Le(e,{dateChange:()=>{const{associated:b}=e;if(b){const x=c(b)||{};if(x){const{value:A}=x;if(A)switch(n.unref(A)){case"month":a.value=[be().startOf("month"),be().endOf("month")];break;case"quarter":a.value=[be().startOf("quarter"),be().endOf("quarter")];break;case"year":a.value=[be().startOf("year"),be().endOf("year")];break}}}f()}}),{style:o,getPopupContainer:t,locale:za,dateChange:f,myValue:a,disabledDate:d,calendarChange:l,openChange:S,change:B}}}),qi=()=>{n.useCssVars(e=>({"2d84b603":e.optionFontSize}))},Hi=Yo.setup;Yo.setup=Hi?(e,o)=>(qi(),Hi(e,o)):qi;const Wu="",Uu="";function yd(e,o,t,a,r,i){const s=n.resolveComponent("a-range-picker");return n.openBlock(),n.createElementBlock("div",{class:"ecan-range-picker",style:n.normalizeStyle(e.style)},[n.createVNode(s,{class:"range-picker",dropdownClassName:"ecan-range-picker-dropdown",value:e.myValue,"onUpdate:value":o[0]||(o[0]=l=>e.myValue=l),format:e.format,picker:e.picker,locale:e.locale,getPopupContainer:e.getPopupContainer,"disabled-date":e.disabledDate,onChange:e.change,onCalendarChange:e.calendarChange,onOpenChange:e.openChange,popupStyle:{fontSize:e.optionFontSize}},null,8,["value","format","picker","locale","getPopupContainer","disabled-date","onChange","onCalendarChange","onOpenChange","popupStyle"])],4)}const Vi=pe(ye(Yo,[["render",yd],["__scopeId","data-v-c9c68612"]])),Ko={...ke,width:"200px",name:"按钮",keyName:"按钮",type:"ecanButton",text:"按钮",mode:"default",danger:!1,shape:"default",href:"",target:"self",fontSize:"14px",fontWeight:400,tooltipTextStyleColor:"",buttonBackgroundColor:"#FFFFFF",borderColor:"#d9d9d9"},Qo=Se(Ko),ji=["click"],xd=n.defineComponent({name:"EcanButton",components:{AButton:ce.Button},props:{...Qo},setup(e){const o=Ce(e),a=Ee(e)("click",()=>{const d=n.unref(s);d&&e.target==="event"&&window.parent.postMessage({type:"openPage",url:d},"*")}),r=n.computed(()=>{const d={};return e.mode!=="primary"&&(d.backgroundColor=e.buttonBackgroundColor||"transparent",d.color=e.tooltipTextStyleColor,d.borderColor=e.borderColor||"transparent"),{height:e.height,...d}}),i=n.computed(()=>De(e.text)),s=n.computed(()=>De(e.href)||null),l=n.computed(()=>{const d=e.target;if(!(d==="event"||n.unref(s)==null))return{self:"_self",blank:"_blank"}[d]});return{style:o,click:a,myText:i,myHref:s,myTarget:l,buttonStyle:r}}}),$u="";function pd(e,o,t,a,r,i){const s=n.resolveComponent("a-button");return n.openBlock(),n.createElementBlock("div",{class:"ecan-button",style:n.normalizeStyle(e.style)},[n.createVNode(s,{block:"",onClick:e.click,type:e.mode,danger:e.danger,shape:e.shape,href:e.myHref,target:e.myTarget,style:n.normalizeStyle(e.buttonStyle),class:n.normalizeClass(e.tooltipTextStyleColor?"custom-color":"")},{default:n.withCtx(()=>[n.createElementVNode("span",{style:n.normalizeStyle({fontSize:e.fontSize,fontWeight:e.fontWeight})},n.toDisplayString(e.myText),5)]),_:1},8,["onClick","type","danger","shape","href","target","style","class"])],4)}const Wi=pe(ye(xd,[["render",pd]])),Jo={...ke,width:"240px",id:"",left:"0px",top:"0px",name:"复选框",keyName:"复选框",rotate:"",type:"ecanCheckbox",value:[],data:[{label:"选项一",value:"1",checked:!0},{label:"选项二",value:"2",checked:!0},{label:"选项三",value:"3"}],graphicConfig:{}},Xo=Se(Jo),Ui=["checkboxChange"],bd=n.defineComponent({name:"EcanCheckbox",components:{ACheckboxGroup:ce.CheckboxGroup},props:{...Xo},setup(e,{expose:o}){const t=Ce(e),a=n.ref([]),r=n.ref([]),i=S=>{const B=e.value;let p=[];S.forEach(b=>{b.checked&&p.push(b.value)}),typeof B=="string"&&B!==""?p=p.concat(B.split(",")):Array.isArray(B)&&(p=p.concat(B)),a.value=S,r.value=p};n.watch(()=>[e.data,e.value],([S])=>{i(S)},{immediate:!0,deep:!0});const s=je(e),l=async()=>{var p,b;if(e.dataType!=="request")return;const S=await s(),B=((b=(p=S==null?void 0:S.data)==null?void 0:p.data)==null?void 0:b.rows)||[];i(B)},{getGlobalModel:d,setGlobalModel:c}=n.inject(Be,{getGlobalModel:S=>{},setGlobalModel:(S,B)=>{}});c(e.id,{type:e.type,value:r});const h=Ee(e)("checkboxChange",()=>{const S=d(e.id);c(e.id,{...S,RECORD:r})}),y=lt(e),u=async()=>{var S;try{const B=await y(),{data:p}=(B==null?void 0:B.data)||{};if(p){const x=(((S=B==null?void 0:B.data)==null?void 0:S.data)??[]).map(A=>({label:A.label,value:A.value}));i(x)}else i([])}catch(B){console.error(B)}},m=()=>{switch(e.dataType){case"indicator":u();break;case"request":l();break}},{setRequest:f}=n.inject(Me,{setRequest:({id:S,sortNum:B,requestFn:p})=>{}});return typeof f=="function"&&f({id:e.id,requestFn:m,sortNum:e.requestSort}),o({refreshData:m}),{myOption:a,style:t,myValue:r,checkboxChange:h}}}),Yu="";function vd(e,o,t,a,r,i){const s=n.resolveComponent("a-checkbox-group");return n.openBlock(),n.createElementBlock("div",{class:"ecan-checkbox",style:n.normalizeStyle(e.style)},[n.createVNode(s,{options:e.myOption,value:e.myValue,"onUpdate:value":o[0]||(o[0]=l=>e.myValue=l),onChange:e.checkboxChange},null,8,["options","value","onChange"])],4)}const Gi=pe(ye(bd,[["render",vd]])),ea={...ke,name:"下拉框选择器",keyName:"下拉框选择器",width:"120px",height:"33px",type:"ecanSelect",mode:void 0,data:[{label:"选项一",value:"1"},{label:"选项二",value:"2"},{label:"选项三",value:"3"}],value:void 0,dataFieldNames:{label:"label",value:"value",options:""},maxTagCount:3,autoClearSearchValue:!0,placeholder:"请选择",selectFirstOption:!1,graphicConfig:{},valueType:"value",isAllowClear:!0,optionFontSize:"14px"},ta=Se(ea),$i=["selectChange","refreshData"],Sd=n.defineComponent({name:"EcanSelect",components:{ASelect:ce.Select,ASelectOption:ce.SelectOption},props:{...ta},setup(e,{expose:o}){const t=Ce(e),a=()=>document.getElementById("ProviderConfig")||document.body,r=je(e),i=n.ref(e.data||[]),s=n.ref(),l=n.computed({get:()=>{var w;const{mode:E}=e;return(w=n.unref(i))!=null&&w.length?s.value:E==="multiple"||E==="tags"||E==="combobox"?[]:""},set:E=>{s.value=E}}),{getGlobalModel:d,setGlobalModel:c,getRecordValueByKeyName:g}=n.inject(Be,{getGlobalModel:E=>{},setGlobalModel:(E,w)=>{},getRecordValueByKeyName:E=>{}});n.watch(()=>[e.value,e.mode,e.selectFirstOption,e.valueType,i.value],()=>{const{mode:E,selectFirstOption:w,value:_}=e,z=g(_);E==="multiple"||E==="tags"||E==="combobox"?z?s.value=z.split(","):w&&(s.value=[n.unref(i)[0]]):z?s.value=z:w&&(s.value=n.unref(i)[0])},{immediate:!0});const h=e.dataFieldNames,y=(E,w)=>{const _=h.label,z=h.value;let q;const W=w[_],$=w[z];return W!=null?q=W:$!=null&&(q=$),(q==null?void 0:q.toLowerCase().indexOf(E==null?void 0:E.toLowerCase()))>=0},u=E=>{const{label:w,value:_,options:z}=e.dataFieldNames;if(z&&Array.isArray(E))if(E.some(q=>z in q)){const q={},W=[];E.forEach($=>{q[$[z]]||(q[$[z]]=[]),q[$[z]].push({[w]:$[w],[_]:$[_]})});for(const $ in q)W.push({[w]:$,[z]:q[$]});return W}else return E;else if(!z)return E},m=n.ref(!1),f=async()=>{var E,w;if(e.dataType==="request"){m.value=!0;try{const _=await r();if(i.value=u(((w=(E=_==null?void 0:_.data)==null?void 0:E.data)==null?void 0:w.rows)||[]),e.selectFirstOption){let z=n.unref(i)[0];if(h.options){const q=z[h.options];q&&q.length&&(z=q[0])}s.value=z[h.value]}}catch(_){console.error(_)}finally{m.value=!1}}},{setLoadedData:S,loadedData:B}=n.inject(bt,{setLoadedData:(E,w)=>{},loadedData:{}}),p=n.computed(()=>{let E=s.value;if(e.valueType==="label"&&n.unref(s)&&n.unref(i)){const w=h.label,_=h.value;if(e.mode==="multiple")E=n.unref(i).filter(z=>n.unref(s).includes(z[_])).map(z=>z[w]);else{const z=n.unref(i).find(q=>n.unref(s)===q[_]);z&&(E=z[w])}}return E}),b=n.ref([]),x=n.computed(()=>{const E={};if(e.mode!=="multiple"){const w=n.unref(b).find(_=>_.value===n.unref(s));w&&(E.itemCodes=w.item_codes)}return E});c(e.id,{type:e.type,value:p,...n.unref(x)});const k=Ee(e)("selectChange",()=>{const E=e.id,w=d(E);c(E,{...w,...n.unref(x),RECORD:p})}),D=(E=[])=>{if(i.value=u(E),e.selectFirstOption){let w=n.unref(i)[0];if(h.options){const _=w[h.options];_&&_.length&&(w=_[0])}s.value=w[h.value]}},O=lt(e),N=async()=>{var E;try{m.value=!0;const w=await O(),{data:_}=(w==null?void 0:w.data)||{},z=h.label,q=h.value;if(_){const W=((E=w==null?void 0:w.data)==null?void 0:E.data)??[];b.value=W;const $=W.map(M=>({[z]:M.label,[q]:M.value})),{id:F}=e,P=d(F);c(F,{...P,...n.unref(x)}),S(F,!0),D($)}else D([])}catch(w){console.error(w)}finally{m.value=!1}},C=n.computed(()=>{var E,w;return(w=(E=e==null?void 0:e.graphicConfig)==null?void 0:E.controlList)==null?void 0:w.find(_=>_.conditionKey==="parentCode")}),T=n.ref(!1);n.watch(B,E=>{!n.unref(T)&&n.unref(C)&&E[n.unref(C).id]&&(T.value=!0,R())},{deep:!0});const R=()=>{switch(e.dataType){case"indicator":{if(n.unref(C)){if(n.unref(B)[n.unref(C).id]){const{mode:E}=e;E==="multiple"||E==="tags"||E==="combobox"?l.value=[]:l.value="",N()}}else N();break}case"request":f();break}};Le(e,{selectChange:k,refreshData:R});const{setRequest:v}=n.inject(Me,{setRequest:({id:E,sortNum:w,requestFn:_})=>{}});return typeof v=="function"&&v({id:e.id,requestFn:R,sortNum:e.requestSort}),o({refreshData:R}),{style:t,getPopupContainer:a,myValue:s,selectChange:k,options:i,filterOption:y,loading:m,resultValue:l}}}),Qu="",Ju="";function Cd(e,o,t,a,r,i){const s=n.resolveComponent("a-select-option"),l=n.resolveComponent("a-select");return n.openBlock(),n.createElementBlock("div",{class:"ecan-select",style:n.normalizeStyle(e.style)},[n.createVNode(l,{class:"select",value:e.resultValue,"onUpdate:value":o[0]||(o[0]=d=>e.resultValue=d),placeholder:e.placeholder,showSearch:"",allowClear:e.isAllowClear,mode:e.mode,getPopupContainer:e.getPopupContainer,fieldNames:e.dataFieldNames,maxTagCount:e.maxTagCount,filterOption:e.filterOption,loading:e.loading,autoClearSearchValue:e.autoClearSearchValue,onChange:e.selectChange,style:n.normalizeStyle({fontSize:e.optionFontSize})},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.options,(d,c)=>(n.openBlock(),n.createBlock(s,{key:c,value:d.value,label:d.label,style:n.normalizeStyle({fontSize:e.optionFontSize})},null,8,["value","label","style"]))),128))]),_:1},8,["value","placeholder","allowClear","mode","getPopupContainer","fieldNames","maxTagCount","filterOption","loading","autoClearSearchValue","onChange","style"])],4)}const Zi=pe(ye(Sd,[["render",Cd],["__scopeId","data-v-e5517626"]])),na={...ke,name:"树形下拉框选择器",keyName:"树形下拉框选择器",width:"120px",height:"33px",type:"ecanTreeSelect",multiple:!1,data:[{label:"选项一",value:"1",children:[{label:"子选项一",value:"1-1"},{label:"子选项二",value:"1-2"}]},{label:"选项二",value:"2"},{label:"选项三",value:"3"}],value:"",dataFieldNames:{label:"label",value:"value",children:"children"},maxTagCount:3,placeholder:"请选择",treeCheckable:!1,treeCheckStrictly:!1,selectFirstOption:!1},oa=Se(na),Yi=["selectChange","refreshData"],wd={name:"EcanTreeSelect",components:{ATreeSelect:ce.TreeSelect},props:{...oa},setup(e){const o=Ce(e),t=n.ref(e.data),a=(u,m)=>{const f=e.dataFieldNames,S=f.label,B=f.value;let p;const b=m[S],x=m[B];return b!=null?p=b:x!=null&&(p=x),(p==null?void 0:p.toLowerCase().indexOf(u==null?void 0:u.toLowerCase()))>=0},r=n.ref();n.watch(()=>[e.multiple,e.value,e.treeCheckable,e.selectFirstOption],()=>{const{multiple:u,value:m,selectFirstOption:f}=e;u?m?r.value=m.split(","):f&&(r.value=[n.unref(t)[0]]):m?r.value=m:f&&(r.value=n.unref(t)[0])},{immediate:!0});const i=n.ref(!1),s=je(e),l=async()=>{var u,m;if(e.dataType==="request"){i.value=!0;try{const f=await s();t.value=((m=(u=f==null?void 0:f.data)==null?void 0:u.data)==null?void 0:m.rows)||[];const S=n.unref(t)[0];e.value===""&&S!=null&&(r.value=S[e.dataFieldNames.value])}catch(f){console.error(f)}finally{i.value=!1}}},{getGlobalModel:d,setGlobalModel:c}=n.inject(Be,{getGlobalModel:u=>{},setGlobalModel:(u,m)=>{}});c(e.id,{type:e.type,value:r});const h=Ee(e)("selectChange",()=>{const u=e.id,m=d(u);c(u,{...m,RECORD:r})});Le(e,{selectChange:h,refreshData:l});const{setRequest:y}=n.inject(Me,{setRequest:({id:u,sortNum:m,requestFn:f})=>{}});return y({id:e.id,requestFn:l,sortNum:e.reque}),{style:o,treeData:t,filterTreeNode:a,myValue:r,loading:i,selectChange:h}}},e1="",t1="";function Ad(e,o,t,a,r,i){const s=n.resolveComponent("a-tree-select");return n.openBlock(),n.createElementBlock("div",{class:"ecan-tree-select",style:n.normalizeStyle(a.style)},[n.createVNode(s,{class:"tree-select",value:a.myValue,"onUpdate:value":o[0]||(o[0]=l=>a.myValue=l),allowClear:"",showSearch:"",loading:a.loading,fieldNames:e.dataFieldNames,treeData:a.treeData,maxTagCount:e.maxTagCount,multiple:e.multiple,treeCheckable:e.treeCheckable,filterTreeNode:a.filterTreeNode,placeholder:e.placeholder,onChange:a.selectChange},null,8,["value","loading","fieldNames","treeData","maxTagCount","multiple","treeCheckable","filterTreeNode","placeholder","onChange"])],4)}const Ki=pe(ye(wd,[["render",Ad],["__scopeId","data-v-37236421"]])),aa={...ke,width:"260px",height:"32px",id:"",left:"0px",top:"0px",name:"单选框",keyName:"单选框",rotate:"",type:"ecanRadio",value:"",data:[{label:"选项一",value:"1"},{label:"选项二",value:"2"},{label:"选项三",value:"3"}],optionType:"default",tabBackgroundImage:"",activeTabBackgroundImage:"",activeTabColor:"#1890ff",tabColor:"#333",tabFontSize:"14px",tabHorizontalPadding:"0px",tabBarGutter:"24px",tabFlexDirection:"row",graphicConfig:{},tabTextAlign:""},ra=Se(aa),Qi=["checkboxChange","click"],kd=n.defineComponent({name:"EcanRadio",components:{ARadioGroup:ce.RadioGroup,ARadioButton:ce.RadioButton,ARadio:ce.Radio},props:{...ra},setup(e,{expose:o}){const t=Ce(e),a=n.ref([]),r=n.ref(""),i=b=>{const x=e.value;let A=[];typeof x=="string"&&x!==""?A=A.concat(x.split(",")):Array.isArray(x)&&(A=A.concat(x)),a.value=b,r.value=A[0]||""};n.watch(()=>[e.data,e.value],([b])=>{i(b)},{immediate:!0,deep:!0});const s=je(e),l=async()=>{var A,k;if(e.dataType!=="request")return;const b=await s(),x=((k=(A=b==null?void 0:b.data)==null?void 0:A.data)==null?void 0:k.rows)||[];i(x)},{getGlobalModel:d,setGlobalModel:c}=n.inject(Be,{getGlobalModel:b=>{},setGlobalModel:(b,x)=>{}});c(e.id,{type:e.type,value:r});const g=Ee(e),h=g("checkboxChange",()=>{const b=d(e.id);c(e.id,{...b,RECORD:r})}),y=b=>{r.value=b,g("click",()=>{const x=d(e.id);c(e.id,{...x,RECORD:r})})()};n.watch(r,()=>{h()});const u=lt(e),m=async()=>{var b;try{const x=await u(),{data:A}=(x==null?void 0:x.data)||{};if(A){const D=(((b=x==null?void 0:x.data)==null?void 0:b.data)??[]).map(O=>({label:O.label,value:O.value}));i(D)}else i([])}catch(x){console.error(x)}},f=()=>{switch(e.dataType){case"indicator":m();break;case"request":l();break}},{setRequest:S}=n.inject(Me,{setRequest:({id:b,sortNum:x,requestFn:A})=>{}});typeof S=="function"&&S({id:e.id,requestFn:f,sortNum:e.requestSort});const B=b=>{r.value=b.value},p=n.computed(()=>e.tabFlexDirection==="column"?{display:"flex",height:"30px",lineHeight:"30px"}:{});return o({refreshData:f}),{myOption:a,style:t,myValue:r,radioStyle:p,onClickButton:y,useImagePath:At,tabChange:B}}}),o1="",a1="",Td=["onClick"];function Bd(e,o,t,a,r,i){const s=n.resolveComponent("a-radio"),l=n.resolveComponent("a-radio-button"),d=n.resolveComponent("a-radio-group");return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["ecan-radio",e.optionType]),style:n.normalizeStyle(e.style)},[e.tabBackgroundImage&&e.activeTabBackgroundImage?(n.openBlock(),n.createElementBlock("div",{key:0,class:"tabs-header",style:n.normalizeStyle({fontSize:e.tabFontSize,flexDirection:e.tabFlexDirection,alignItems:e.tabTextAlign})},[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.myOption,(c,g)=>(n.openBlock(),n.createElementBlock("div",{class:"tab",style:n.normalizeStyle({padding:`5px ${e.tabHorizontalPadding}`,color:e.myValue===c.value?e.activeTabColor:e.tabColor,backgroundImage:e.myValue===c.value?e.useImagePath(e.activeTabBackgroundImage,!0):e.useImagePath(e.tabBackgroundImage,!0),marginRight:e.tabFlexDirection==="row"?e.tabBarGutter:"0",marginBottom:e.tabFlexDirection==="column"?e.tabBarGutter:"0"}),key:g,onClick:n.withModifiers(h=>e.tabChange(c),["prevent","stop"])},[n.createElementVNode("div",{class:"tab-inner",style:n.normalizeStyle({borderBottom:!e.activeTabBackgroundImage&&!e.tabBackgroundImage?`1px solid ${e.myValue===c.value?e.activeTabColor:"transparent"}`:""})},n.toDisplayString(c.label),5)],12,Td))),128))],4)):(n.openBlock(),n.createBlock(d,{key:1,value:e.myValue,"onUpdate:value":o[0]||(o[0]=c=>e.myValue=c)},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.myOption,c=>(n.openBlock(),n.createElementBlock(n.Fragment,{key:c.value},[e.optionType==="default"?(n.openBlock(),n.createBlock(s,{key:0,value:c.value,style:n.normalizeStyle(e.radioStyle)},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(c.label),1)]),_:2},1032,["value","style"])):e.optionType==="button"?(n.openBlock(),n.createBlock(l,{key:1,value:c.value,onClick:g=>e.onClickButton(c.value)},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(c.label),1)]),_:2},1032,["value","onClick"])):n.createCommentVNode("",!0)],64))),128))]),_:1},8,["value"]))],6)}const Ji=pe(ye(kd,[["render",Bd],["__scopeId","data-v-baa84768"]])),ia={...ke,id:"",name:"饼图",keyName:"饼图",type:"ecanPie",width:"400px",height:"400px",top:"",left:"",rotate:"",data:[{name:"名称一",value:335},{name:"名称二",value:310},{name:"名称三",value:234}],titleText:"",titleSubtext:"",titleFontSize:"12px",titleColor:"#333",fontWeight:400,textAlign:"left",titleLeft:"",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],backgroundColor:"",tooltipShow:!0,toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,tooltipTextStyleColor:"",tooltipTrigger:"item",tooltipFormatter:"{marker} {b} {c} ({d}%)",legendShow:!0,legendTextStyleColor:"#333",legendOrient:"vertical",legendTop:"top",legendLeft:"left",innerRadius:"0%",outerRadius:"60%",centerLeft:"50%",centerTop:"50%",minAngle:0,labelShow:!0,labelColor:"#333",labelWidth:100,labelOverflow:"none",isUseLabelColors:!1,labelFontSize:12,labelPosition:"outside",labelFormatter:"{b}\\n{d}%",labelLineShow:!0,labelLineLength:10,labelLineLength2:15,roseType:"",valueTypeDataFieldNames:{name:"name",value:"value",type:"type"},dataFieldConfigType:"value",gridContainLabel:!0,gridTop:"10%",gridBottom:"10%",gridLeft:"5%",gridRight:"5%",graphicConfig:{},toolboxShow:!1,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息",legendItemGap:10,legendItemWidth:25,legendItemHeight:14,legendFormatter:"{name}",legendFontSize:"12px",tooltipPosition:"",graphicType:"ecanPie",legendWidth:null,legendHeight:null,legendTextWidth:null,legendScroll:!1},la=Se(ia),Xi=["click","refreshData","resetRecord"],Gt=async e=>{var d;const o=await dt.post(e,{},{responseType:"blob"}),{data:t,headers:a}=o,r=a["content-disposition"].replace(/\w+;filename=(.*)/,"$1"),i=new Blob([t]),s=document.createElement("a"),l=window.URL.createObjectURL(i);s.href=l,s.download=decodeURI(r),s.style.display="none",document.body.appendChild(s),s.click(),(d=s.parentNode)==null||d.removeChild(s),window.URL.revokeObjectURL(l)},sa={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)"},ca=Se(sa),el=["showModal","hideModal"];function tl(e){var r,i;const{componentList:o,containerMap:t,combinationMap:a={}}=e;if((r=Object.keys(t))!=null&&r.length||(i=Object.keys(a))!=null&&i.length){for(const h in t){const y=o.find(u=>u.id===h);if(y){bn(y,"parentId")||(y.parentId="",y.sourceLeft=y.left,y.sourceTop=y.top);for(const u in t[h])if(t[h][u])for(const m of t[h][u]){const f=o.find(S=>S.id===m);f&&(f.parentId=h,f.sourceLeft=f.left,f.sourceTop=f.top,f.left=parseFloat(f.left)-parseFloat(y.sourceLeft||y.left)+"px",f.top=parseFloat(f.top)-parseFloat(y.sourceTop||y.top)+"px")}}}const s=Array.from(new Set(o.filter(h=>(!bn(h,"parentId")||h.parentId==="")&&h.combinationId).map(h=>h.combinationId))),l=[];for(const h of s){const y=a[h];if(y!=null&&y.length){const u=o.filter(m=>y.includes(m.id));if(u!=null&&u.length){const m=Dd(u);if(m){l.push({...m,id:h,keyName:h,parentId:"",type:"ecanBorder",borderRadius:"",borderWidth:null,sourceLeft:m.left,sourceTop:m.top});for(const f of u)f&&(f.parentId=h,f.sourceLeft=f.left,f.sourceTop=f.top,f.left=parseFloat(f.left)-parseFloat(m.left)+"px",f.top=parseFloat(f.top)-parseFloat(m.top)+"px")}}}}l!=null&&l.length&&o.unshift(...l);const d=["ecanPie","ecanLine","ecanBar","ecanScatter","ecanComboGraph","ecanCustomGraph","ecanRadar","ecanMap"],c=o.filter(h=>d.includes(h.type)&&!bn(h,"parentId")),g=[];for(const h of c)if(h){const y=h.id+"_vir";g.push({id:y,keyName:h.keyName+"_vir",parentId:"",type:"ecanBorder",borderRadius:"",borderWidth:null,width:h.width,height:h.height,left:h.left,top:h.top,sourceLeft:h.left,sourceTop:h.top}),h.parentId=y,h.sourceLeft=h.left,h.sourceTop=h.top,h.left=0,h.top=0}g!=null&&g.length&&o.unshift(...g);for(const h of o){const y=document.body.clientWidth;if(h.parentId===""&&["ecanBorder","ecanTabs"].includes(h.type))h.sourceWidth=parseFloat(h.width),h.height=(y/(h.sourceWidth/parseFloat(h.height))).toFixed(2)+"px",h.width="100%",h.position="relative",h.top="auto",h.left="auto";else{const u=o.find(m=>m.id===h.parentId);if((u==null?void 0:u.parentId)===""){const m=u.sourceWidth||parseFloat(u.width),f=y/m;h.scale=f,h.top=parseFloat(h.top)*f-parseFloat(h.height)*(1-f)/2+"px",h.left=parseFloat(h.left)*f-parseFloat(h.width)*(1-f)/2+"px"}}h.type==="ecanModal"&&(h.parentId="",h.fullModal=!0)}return Ed(o)}return o}function Ed(e){const t=e.filter(a=>a.parentId==="");if(t!=null&&t.length){const a=Ve.cloneDeep(t).map(r=>({...r,sourceTop:parseFloat(r.sourceTop),sourceLeft:parseFloat(r.sourceLeft)}));for(let r=0;r<a.length-1;r++)for(let i=0;i<a.length-r-1;i++){let s=!1;if((a[i].sourceTop-a[i+1].sourceTop>50||Math.abs(a[i+1].sourceTop-a[i].sourceTop)<=50&&a[i].sourceLeft>a[i+1].sourceLeft)&&(s=!0),s){const l=a[i];a[i]=a[i+1],a[i+1]=l}}for(const r of a){const i=e.findIndex(s=>s.id===r.id);i!==-1&&e.splice(i,1)}return[...a,...e]}return e}function Dd(e){const o=e.sort((i,s)=>parseFloat(i.top)-parseFloat(s.top))[0],t=e.sort((i,s)=>parseFloat(i.left)-parseFloat(s.left))[0],a=e.map(i=>({...i,computedTop:parseFloat(i.top)+parseFloat(i.height)})).sort((i,s)=>s.computedTop-i.computedTop)[0],r=e.map(i=>({...i,computedLeft:parseFloat(i.left)+parseFloat(i.width)})).sort((i,s)=>s.computedLeft-i.computedLeft)[0];return o&&t&&a&&r?{left:t.left,top:o.top,width:r.computedLeft-parseFloat(t.left)+"px",height:a.computedTop-parseFloat(o.top)+"px"}:null}const Rd=n.defineComponent({name:"Render",props:{component:{type:Object,default:()=>{}}},setup(e,{emit:o}){o("ready",e.component.id)}});function Id(e,o,t,a,r,i){return e.component.parentId?(n.openBlock(),n.createBlock(n.Teleport,{key:0,to:"#container_"+e.component.parentId},[(n.openBlock(),n.createBlock(n.resolveDynamicComponent(e.component.type),n.mergeProps({style:{scale:e.component.scale}},e.component),null,16,["style"]))],8,["to"])):(n.openBlock(),n.createBlock(n.resolveDynamicComponent(e.component.type),n.normalizeProps(n.mergeProps({key:1},e.component)),null,16))}const _d=pe(ye(Rd,[["render",Id]])),Od=n.defineComponent({name:"EcanModal",components:{AModal:ce.Modal,CloseOutlined:Y0,Render:_d},props:{...ca},setup(e,{emit:o}){const t=n.ref([]),a=n.inject("isMobile",!1),r=n.inject("getContainerMap",()=>{}),i=n.inject("getCombinationMap",()=>{}),{clearInteractiveData:s,interactiveData:l}=n.inject(Be,{clearInteractiveData:()=>{},interactiveData:null}),d=()=>document.getElementById("ProviderConfig")||document.body,c=n.computed(()=>{const Q=e.position;return{verticalAlign:{default:"",top:"top",center:"middle",bottom:"bottom"}[Q]}}),g=e.fullModal?"1920px":e.width,h=e.fullModal?"1080px":e.height,y=e.originalWidth,u=e.originalHeight,m=n.ref("80%"),f=n.ref(0),S=n.ref(),B=n.ref(0),p=n.ref({}),b=Ce(e),x=n.ref({}),A=n.ref(!1),k=n.ref();let D;const O=()=>{S.value=parseFloat(g)/parseFloat(y);const Q=parseFloat(h)/parseFloat(u),le=document.body.offsetWidth,re=document.body.offsetHeight;f.value=le*n.unref(S),B.value=re*Q,m.value=`${n.unref(S)*100}%`,p.value={width:`${n.unref(f)}px`,height:`${n.unref(B)}px`,border:`${e.borderWidth} solid ${e.borderColor}`,borderRadius:e.borderRadius+"px",boxShadow:e.boxShadow},x.value={...n.unref(b),backgroundImage:At(e.backgroundImage,!0)},a?x.value={...x.value,width:"100%",height:"100%"}:x.value={...x.value,transform:`scale(${n.unref(f)/parseFloat(g)},${n.unref(B)/parseFloat(h)})`,width:g,height:h}},N=Ve.debounce(()=>{O()},100),C=()=>{const Q=window.MutationObserver;D=new Q(N),D.observe(document.body,{attributes:!0,attributeFilter:["style"],attributeOldValue:!0})},T=()=>{D&&(D.disconnect(),D.takeRecords(),D=null)},R=n.ref(!1),{touchRequest:v}=n.inject(Me,{touchRequest:()=>{}}),E=n.ref(""),w=()=>{var re;const{title:Q}=e,le=(re=n.unref(l))==null?void 0:re.RECORD;return le?De(Q,{textData:le},{useNewline:!1,useSpace:!1}):Q},_=Ee(e),z=()=>{a&&(document.documentElement.style.overflow="hidden"),E.value=w(),R.value=!0},q=_("hideModal",()=>{o("close"),a&&(document.documentElement.style.overflow="hidden auto",t.value=[]),R.value=!1}),W=()=>{q()},$=()=>{q(),s()},{setModalModel:F,pushUseModalIds:P,popUseModalIds:M}=n.inject(lr,{pushUseModalIds:Q=>{},popUseModalIds:()=>{},setModalModel:(Q,le)=>{}}),I=n.computed(()=>{if(a){const Q=Ve.cloneDeep(e.componentList),le=r(),re=i();return tl({componentList:Q,containerMap:le,combinationMap:re})}else return e.componentList}),L=()=>{const Q=e.id;let le=[];const re=e.componentList;Array.isArray(re)&&(le=re.map(K=>K.id),F(Q,[...new Set(le)]))};n.watch(()=>R.value,async Q=>{Q?(A.value=!1,P(e.id),L(),await n.nextTick(()=>{O(),window.addEventListener("resize",N),C(),A.value=!0}),v()):(M(),window.removeEventListener("resize",N),T())});const H=n.computed(()=>n.unref(S)>=1),Y=n.computed(()=>e.fullModal),U=n.computed(()=>{let Q="ecan-modal";return n.unref(H)&&(Q+=" ecan-full-width-modal"),n.unref(Y)&&(Q+=" ecan-full-modal"),Q});return Le(e,{showModal:z,hideModal:q}),{modalRef:k,containStyle:p,contentStyle:x,getContainer:d,modalStyle:c,modalWith:m,isFullModal:Y,style:b,visible:R,showModal:z,onOk:W,onCancel:$,isFullWidth:H,wrapClassName:U,ready:A,usedComponentList:I,isMobile:a,readyIds:t,hasOwn:bn,onComponentReady:Q=>{t.value.push(Q)},formatTitle:E}}}),l1="",s1="";function Ld(e,o,t,a,r,i){const s=n.resolveComponent("close-outlined"),l=n.resolveComponent("render"),d=n.resolveComponent("a-modal");return n.openBlock(),n.createBlock(d,{getContainer:e.getContainer,wrapClassName:e.wrapClassName,centered:"",visible:e.visible,footer:null,width:e.isFullModal||e.isFullWidth?"100%":e.modalWith,destroyOnClose:e.destroyOnClose,style:n.normalizeStyle(e.modalStyle),closable:!1,onOk:e.onOk,onCancel:e.onCancel,ref:"modalRef",id:"container_"+e.id},{default:n.withCtx(()=>[n.createElementVNode("div",{class:"contain",ref:"containRef",style:n.normalizeStyle(e.containStyle)},[e.ready?(n.openBlock(),n.createElementBlock("div",{key:0,class:"content",style:n.normalizeStyle(e.contentStyle)},[n.createElementVNode("div",{class:"header-bar",style:n.normalizeStyle({backgroundColor:e.backgroundColor,padding:"20px 30px",height:e.isMobile?"62px":""})},[e.formatTitle?(n.openBlock(),n.createElementBlock("div",{key:0,class:"ant-modal-title",style:n.normalizeStyle({fontSize:e.titleFontSize,color:e.titleColor})},n.toDisplayString(e.formatTitle),5)):n.createCommentVNode("",!0),e.isShowCloseBtn?(n.openBlock(),n.createBlock(s,{key:1,class:"close-icon",style:n.normalizeStyle({color:e.closeBtnColor}),onClick:e.onCancel},null,8,["style","onClick"])):n.createCommentVNode("",!0)],4),e.usedComponentList.length?(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass(e.isMobile?"mobile-wrap":"")},[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.usedComponentList,(c,g)=>(n.openBlock(),n.createElementBlock(n.Fragment,{key:c.id+g},[e.isMobile?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[e.hasOwn(c,"parentId")&&(e.readyIds.includes(c.parentId)||c.parentId==="")?(n.openBlock(),n.createBlock(l,{key:0,component:c,onReady:e.onComponentReady},null,8,["component","onReady"])):n.createCommentVNode("",!0)],64)):(n.openBlock(),n.createBlock(n.resolveDynamicComponent(c.type),n.normalizeProps(n.mergeProps({key:1},c)),null,16))],64))),128))],2)):n.renderSlot(e.$slots,"default",{key:1},void 0,!0)],4)):n.createCommentVNode("",!0)],4)]),_:3},8,["getContainer","wrapClassName","visible","width","destroyOnClose","style","onOk","onCancel","id"])}const kt=pe(ye(Od,[["render",Ld],["__scopeId","data-v-a2e70efd"]]));Qe.use([Et.CanvasRenderer,ht.PieChart,ve.TitleComponent,ve.ToolboxComponent,ve.TooltipComponent,ve.LegendComponent]);const Nd=n.defineComponent({name:"EcanPie",props:{...la},components:{Spin:Nt,Echarts:xt,EcanModal:kt},setup(e,{expose:o}){const t=n.ref(!1),a=Ce(e),r=n.ref([]),i=n.ref(),s=n.ref({}),l=n.computed(()=>{let{data:T=[]}=n.unref(r)[0]||{};if(Array.isArray(e.colors)){const R=e.isUseLabelColors,v=e.colors;T=T.map((E,w)=>({label:R?{color:v[w]}:{},...E}))}return{toolbox:{show:e.toolboxShow,left:e.toolboxLeft,top:e.toolboxTop,itemSize:e.toolboxItemSize,itemGap:e.toolboxItemGap,feature:{myDownload:{show:e.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(){Gt(e.toolboxDownloadUrl)}},myDataZoom:{show:t.value?!1:e.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 R;t.value=!0,(R=i.value)==null||R.showModal()}},myInfo:{show:e.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(){ce.Modal.info({title:"说明信息",content:e.toolboxInfoText})}}}},title:{text:e.titleText,subtext:e.titleSubtext,textStyle:{fontSize:e.titleFontSize,fontWeight:e.fontWeight,color:e.titleColor},left:e.textAlign},grid:{top:e.gridTop,bottom:e.gridBottom,left:e.gridLeft,right:e.gridRight,containLabel:e.gridContainLabel},tooltip:{show:e.tooltipShow,trigger:e.tooltipTrigger,formatter:R=>{const{marker:v,seriesName:E,name:w,value:_,percent:z,data:q}=R||{};return De(e.tooltipFormatter,{textData:{marker:v,name:w,value:_,percent:z,a:E,b:w,c:_,d:z,...q}},{useNewline:!0,useSpace:!0})},textStyle:{color:e.tooltipTextStyleColor},position:e.tooltipPosition||void 0},legend:n.unref(s),color:e.colors,series:[{data:T,type:"pie",radius:[e.innerRadius,e.outerRadius],center:[e.centerLeft,e.centerTop],roseType:e.roseType,avoidLabelOverlap:!0,minAngle:e.minAngle,label:{show:e.labelPosition!=="center"&&e.labelShow,color:e.labelColor,fontSize:t.value?Ue:e.labelFontSize,position:e.labelPosition,formatter:uc(e.labelFormatter),width:e.labelWidth,overflow:e.labelOverflow},labelLine:{show:e.labelLineShow,length:e.labelLineLength,length2:e.labelLineLength2},emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"},label:{}}}]}}),d=()=>{const T=t.value?Ue:parseFloat(e.legendFontSize);s.value={type:e.legendScroll?"scroll":"plain",width:e.legendWidth,height:e.legendHeight,show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,align:"left",textStyle:{lineHeight:T+8,rich:{text:{width:e.legendTextWidth,color:e.legendTextStyleColor,fontSize:T}}},itemHeight:e.legendItemHeight,itemWidth:e.legendItemWidth,itemGap:e.legendItemGap,formatter:R=>{const{data:v}=r.value[0]||{};let E=0,w,_="0%";if(v)for(const z of v)z.name===R&&(w=+z.value),E+=+z.value;return E&&(_=`${(w/E*100).toFixed(2)}%`),tn(e.legendFormatter,{name:R,value:w,percent:_})}}},c=()=>{t.value=!1},{getGlobalModel:g,setGlobalModel:h}=n.inject(Be,{getGlobalModel:T=>{},setGlobalModel:(T,R)=>{}}),{pageMode:y}=n.inject(ze,{pageMode:"normal"}),u=(T=[],R)=>{const{dataset:v}=Ft(T,R);r.value=v},m=(T=[],R)=>{const v=Ft(T,R);r.value=v.dataset};n.watch(()=>e.data,T=>{(e.dataType==="static"||n.unref(y)==="design")&&u(T)},{immediate:!0,deep:!0}),n.watch(()=>[e.legendShow,e.legendOrient,e.legendTop,e.legendLeft,e.legendTextStyleColor,e.labelFontSize,e.legendItemHeight,e.legendItemWidth,e.legendItemGap,e.legendFormatter,e.legendFontSize,e.legendWidth,e.legendHeight,e.legendTextWidth,e.legendScroll],()=>{d()},{immediate:!0});const f=n.ref(!1),S=je(e),B=async()=>{var T,R;if(e.dataType==="request")try{f.value=!0;const v=await S();u((R=(T=v==null?void 0:v.data)==null?void 0:T.data)==null?void 0:R.rows,e.valueTypeDataFieldNames)}catch(v){console.error(v)}finally{f.value=!1}},p=Ee(e);h(e.id,{type:e.type,RECORD:""});const b=p("click",T=>{const R=g(e.id);h(e.id,{...R,type:e.type,RECORD:T==null?void 0:T.data})}),x=lt(e),A=async()=>{var T;try{f.value=!0;const R=await x(),{data:v}=(R==null?void 0:R.data)||{};if(v){const{columns:E=[],rows:w=[]}=((T=R==null?void 0:R.data)==null?void 0:T.data)??{};let _=[];if(E.length>0){const z=E[0],q=E[1];_=w.filter(W=>!!W).map(W=>({name:W[z],value:isNaN(W[q])?0:W[q]||0}))}m(_)}}catch(R){console.error(R)}finally{f.value=!1}},{loadedData:k}=n.inject(bt,{loadedData:{}}),D=n.ref(!1);n.watch(k,T=>{if(e.dataType==="indicator"){const R=en(e.graphicConfig);R!=null&&R.length&&(!n.unref(D)&&rt(e.graphicConfig,T)?(D.value=!0,O()):rt(e.graphicConfig,T)||(D.value=!1))}},{deep:!0});const O=()=>{switch(e.dataType){case"indicator":rt(e.graphicConfig,n.unref(k))&&A();break;case"request":B();break}};Le(e,{resetRecord:()=>{const T=e.id,R=g(T);h(T,{...R,RECORD:""})},refreshData:O,click:b}),o({refreshData:O});const{setRequest:C}=n.inject(Me,{setRequest:T=>{}});return typeof C=="function"&&C({id:e.id,requestFn:O,sortNum:e.requestSort}),{option:l,style:a,click:b,onClose:c,loading:f,ecanModal:i}}}),d1="";function Fd(e,o,t,a,r,i){const s=n.resolveComponent("echarts"),l=n.resolveComponent("spin"),d=n.resolveComponent("ecan-modal");return n.openBlock(),n.createElementBlock("div",{style:n.normalizeStyle(e.style)},[n.createVNode(l,{spinning:e.loading},{default:n.withCtx(()=>[n.createVNode(s,{option:e.option,autoresize:"",onClick:e.click},null,8,["option","onClick"])]),_:1},8,["spinning"]),n.createVNode(d,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:e.onClose},{default:n.withCtx(()=>[n.createVNode(l,{class:"spin-wrap",spinning:e.loading},{default:n.withCtx(()=>[n.createVNode(s,{option:e.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"])],4)}const nl=pe(ye(Nd,[["render",Fd]])),da={...ke,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:""},fa=Se(da),ol=["click","refreshData","resetRecord"];Qe.use([Et.CanvasRenderer,ht.LineChart,ve.ToolboxComponent,ve.TitleComponent,ve.LegendComponent,ve.MarkLineComponent]);const zd=n.defineComponent({name:"EcanLine",props:{...fa},components:{Spin:Nt,Echarts:xt,EcanModal:kt},setup(e,{expose:o}){const t=n.ref(),a=n.ref(!1),r=Ce(e),i=n.ref([]),s=n.ref([]),l=n.ref(),d=n.computed(()=>a.value?Ue:12),c=n.ref({});let g;const h=n.ref([]),y=n.computed(()=>{const w=e.xAxisLabelFormatter,_=e.yAxisLabelFormatter;return{toolbox:{show:e.toolboxShow,left:e.toolboxLeft,top:e.toolboxTop,itemSize:e.toolboxItemSize,itemGap:e.toolboxItemGap,feature:{myDownload:{show:e.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(){Gt(e.toolboxDownloadUrl)}},myDataZoom:{show:a.value?!1:e.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 z;a.value=!0,(z=l.value)==null||z.showModal()}},myInfo:{show:e.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(){ce.Modal.info({title:"说明信息",content:e.toolboxInfoText})}}}},title:{text:e.titleText,subText:e.titleSubtext,textStyle:{fontSize:e.titleFontSize,fontWeight:e.fontWeight,color:e.titleColor},left:e.textAlign},grid:{top:e.gridTop,bottom:e.gridBottom,left:e.gridLeft,right:e.gridRight,containLabel:e.gridContainLabel},color:e.colors,tooltip:{trigger:"axis",textStyle:{fontSize:d.value},show:e.tooltipShow,formatter:z=>{var F;const q=z.length;let W="",$=e.tooltipFormatter;g=(F=z[0])==null?void 0:F.data,$===""&&($="{marker} {a} {c}");for(let P=0;P<q;P++){const{marker:M,seriesName:I,name:L,value:H,data:Y}=z[P]||{};if(P===0){let U=L;typeof L=="string"&&L[0]==="0"&&!isNaN(+L)&&(U=(+L).toString()),W+=`${it(w,U)}<br/>`}W+=De($,{textData:{marker:M,name:L,value:H,a:I,b:L,c:H||0,...Y}},{useNewline:!0,useSpace:!0}),W+="<br/>"}return W},position:e.tooltipPosition||void 0},xAxis:{type:"category",boundaryGap:e.isBoundaryGap,data:n.unref(s).map(z=>{let q={};return z&&typeof z=="object"?q={...z}:q={value:z},q}),minInterval:e.xAxisMinInterval,splitLine:{show:e.xAxisSplitLineShow,lineStyle:{color:e.xAxisSplitLineStyleColor},interval:e.xAxisSplitLineInterval},splitArea:{show:e.xAxisSplitAreaShow},axisLabel:{color:e.xAxisLabelColor,interval:e.xAxisLabelInterval||0,rotate:e.xAxisLabelRotate,width:e.xAxisLabelWidth,overflow:e.xAxisLabelOverflow,fontSize:e.xAxisLabelFontSize,formatter(z){return typeof z=="string"&&z[0]==="0"&&!isNaN(+z)&&(z=(+z).toString()),it(w,z)}},axisLine:{show:e.xAxisLineShow,lineStyle:{color:e.xAxisLineStyleColor}},axisTick:{show:e.xAxisTickShow},name:e.xAxisName,nameTextStyle:{fontSize:e.xAxisLabelFontSize,color:e.xAxisLabelColor,align:"left"}},yAxis:{type:"value",minInterval:e.yAxisMinInterval,splitLine:{show:e.yAxisSplitLineShow,lineStyle:{color:e.yAxisSplitLineStyleColor,type:e.yAxisSplitLineType}},splitArea:{show:e.yAxisSplitAreaShow},axisLabel:{show:e.yAxisLabelShow,fontSize:e.yAxisLabelFontSize,color:e.yAxisLabelColor,formatter(z){return it(_,z)}},axisLine:{show:e.yAxisLineAlwaysDisplay,lineStyle:{color:e.yAxisLineStyleColor}},name:e.yAxisName,nameTextStyle:{fontSize:e.yAxisLabelFontSize,color:e.yAxisLabelColor,align:"right"}},legend:{type:e.legendScroll?"scroll":"plain",width:e.legendWidth,height:e.legendHeight,show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,textStyle:{lineHeight:(a.value?Ue:parseFloat(e.legendFontSize))+8,rich:{text:{width:e.legendTextWidth,color:e.legendTextStyleColor,fontSize:a.value?Ue:e.legendFontSize}}},itemHeight:e.legendItemHeight,itemWidth:e.legendItemWidth,itemGap:e.legendItemGap,data:n.unref(h).map(z=>({name:z.name,icon:e.legendType})),formatter:z=>tn(e.legendFormatter,{name:z})},series:n.unref(i)}}),u=()=>{a.value=!1},{getGlobalModel:m,setGlobalModel:f}=n.inject(Be,{getGlobalModel:w=>{},setGlobalModel:(w,_)=>{}}),{pageMode:S}=n.inject(ze,{pageMode:"normal"}),B=n.computed(()=>e.isShowMarkLine?{markLine:{data:[{type:e.markLineType}]}}:{}),p=(w=[],_=!1)=>{let z;if(e.dataFieldConfigType==="key"){const F=_?e.keyTypeDataFieldNames:null;z=wt(w,F)}else if(e.dataFieldConfigType==="value"){const F=_?e.valueTypeDataFieldNames:null;z=Ft(w,F)}s.value=z.dimensions,h.value=z.dataset;const q=z.dataset,W=[],$=q.length;for(let F=0;F<$;F++){const P={};e.shadowColor&&(P.shadowColor=e.shadowColor,P.shadowBlur=e.shadowBlur,P.shadowOffsetY=e.shadowOffsetY,P.shadowOffsetX=e.shadowOffsetX),W.push({type:"line",...q[F],symbolSize:e.symbolSize,smooth:e.smooth,areaStyle:{color:e.areaGradientShow?{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:e.colors[F]},{offset:1,color:e.areaGradientColor||"transparent"}],global:!1}:e.colors[F],opacity:e.areaStyleOpacity},lineStyle:{width:e.lineStyleWidth,...P},...n.unref(B)})}i.value=W},b=(w=[],_,z=!1)=>{const W=wt(w,z?_:null,!0);s.value=W.dimensions,h.value=W.dataset;const $=W.dataset,F=[],P=$.length;for(let M=0;M<P;M++){const I={};e.shadowColor&&(I.shadowColor=e.shadowColor,I.shadowBlur=e.shadowBlur,I.shadowOffsetY=e.shadowOffsetY,I.shadowOffsetX=e.shadowOffsetX),F.push({type:"line",...$[M],symbolSize:e.symbolSize,smooth:e.smooth,areaStyle:{color:e.areaGradientShow?{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:e.colors[M]},{offset:1,color:e.areaGradientColor||"transparent"}],global:!1}:e.colors[M],opacity:e.areaStyleOpacity},lineStyle:{width:e.lineStyleWidth,...I},...n.unref(B)})}i.value=F};n.watch(()=>[e.data,e.symbolSize,e.smooth,e.lineStyleWidth,e.areaStyleOpacity,e.areaGradientShow,e.areaGradientColor,e.shadowColor,e.shadowBlur,e.shadowOffsetY,e.shadowOffsetX,e.legendFontSize,e.isShowMarkLine,e.markLineType,e.legendFormatter,e.legendWidth,e.legendHeight,e.legendTextWidth,e.legendScroll],([w])=>{(e.dataType==="static"||n.unref(S)==="design")&&p(w)},{immediate:!0,deep:!0});const x=n.ref(!1),A=je(e),k=async()=>{var w,_;if(e.dataType==="request")try{x.value=!0;const z=await A();p((_=(w=z==null?void 0:z.data)==null?void 0:w.data)==null?void 0:_.rows,!0)}catch(z){console.error(z)}finally{x.value=!1}},D=Ee(e);f(e.id,{type:e.type,RECORD:""});const O=D("click",w=>{const _=m(e.id);f(e.id,{..._,type:e.type,RECORD:e.tooltipShow?g:w.data})}),N=w=>{t.value.chart.containPixel("grid",[w.offsetX,w.offsetY])&&O()};e.tooltipShow?c.value["zr:click"]=N:c.value.click=O;const C=lt(e),T=async()=>{var w;try{x.value=!0;const _=await C(),{columns:z=[],rows:q=[]}=((w=_==null?void 0:_.data)==null?void 0:w.data)??{};let W;z.length>0&&(W={name:z[0],types:z.slice(1).map($=>({label:$,value:$}))}),b(q,W,!0)}catch(_){console.error(_)}finally{x.value=!1}},R=()=>{switch(e.dataType){case"indicator":T();break;case"request":k();break}};Le(e,{refreshData:R,resetRecord:()=>{const w=e.id,_=m(w);f(w,{..._,RECORD:""})},click:O});const{setRequest:E}=n.inject(Me,{setRequest:w=>{}});return typeof E=="function"&&E({id:e.id,requestFn:R,sortNum:e.requestSort}),o({refreshData:R}),{option:y,style:r,click:O,loading:x,onClose:u,ecanModal:l,eventObj:c,echartRef:t}}}),u1="";function Md(e,o,t,a,r,i){const s=n.resolveComponent("echarts"),l=n.resolveComponent("spin"),d=n.resolveComponent("ecan-modal");return n.openBlock(),n.createElementBlock("div",{style:n.normalizeStyle(e.style)},[n.createVNode(l,{spinning:e.loading},{default:n.withCtx(()=>[n.createVNode(s,n.mergeProps({ref:"echartRef",option:e.option,autoresize:""},n.toHandlers(e.eventObj)),null,16,["option"])]),_:1},8,["spinning"]),n.createVNode(d,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:e.onClose},{default:n.withCtx(()=>[n.createVNode(l,{class:"spin-wrap",spinning:e.loading},{default:n.withCtx(()=>[n.createVNode(s,{option:e.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"])],4)}const al=pe(ye(zd,[["render",Md]])),ua={...ke,id:"",name:"柱状图",keyName:"柱状图",type:"ecanBar",width:"400px",height:"400px",top:"",left:"",rotate:"",xAxisLabelFormatter:"{value}",yAxisLabelFormatter:"{value}",yAxisLineAlwaysDisplay:!1,data:[{name:"名称一",value:335,type:"类型一"},{name:"名称二",value:310,type:"类型一"},{name:"名称三",value:310,type:"类型一"}],titleText:"",titleSubtext:"",titleFontSize:"12px",titleColor:"#333",fontWeight:400,textAlign:"left",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],legendShow:!0,legendTextStyleColor:"#333",legendOrient:"horizontal",legendTop:"top",legendLeft:"center",tooltipShow:!0,tooltipTextStyleColor:"",tooltipFormatter:"{marker} {a} {c}",xAxisSplitLineShow:!0,xAxisSplitLineInterval:0,xAxisSplitAreaShow:!1,xAxisSplitLineStyleColor:"#333",xAxisLabelInterval:0,xAxisLabelColor:"#333",xAxisLabelWidth:void 0,xAxisLabelRotate:0,xAxisLabelOverflow:"none",xAxisLineShow:!0,xAxisLineStyleColor:"#333",xAxisTickShow:!0,xAxisMinInterval:0,yAxisMinInterval:0,yAxisLabelWidth:void 0,yAxisLabelRotate:0,yAxisLabelOverflow:"none",yAxisSplitLineShow:!0,yAxisSplitAreaShow:!1,yAxisSplitLineStyleColor:"#333",yAxisLabelColor:"#333",yAxisLineStyleColor:"#333",valueTypeDataFieldNames:{name:"name",value:"value",type:"type"},keyTypeDataFieldNames:{name:"name",types:[]},dataFieldConfigType:"value",barWidth:"40%",gridContainLabel:!0,gridTop:"10%",gridBottom:"10%",gridLeft:"5%",gridRight:"5%",graphicConfig:{},toolboxShow:!1,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息",isUseHorizontalAxis:!1,axisInverse:!1,xAxisInverse:!1,yAxisInverse:!1,isStack:!1,labelShow:!1,labelFontSize:"12px",labelPosition:"inside",labelColor:"",labelWidth:100,labelOverflow:"none",labelFormatter:"{c}",toolboxLocation:!1,toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,gradientShow:!1,gradientColors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientOffset:1,barBorderRadius:"",yAxisLabelShow:!0,yAxisSplitLineType:"solid",xAxisSplitLineType:"solid",legendItemGap:10,legendItemWidth:25,legendItemHeight:14,showBarBackground:!1,legendType:"",legendFontSize:"12px",xAxisLabelFontSize:"12px",yAxisLabelFontSize:"12px",graphicType:"ecanBar",tooltipPosition:"",isShowMarkLine:!1,markLineType:"average",legendFormatter:"{name}",legendWidth:null,legendHeight:null,legendTextWidth:null,legendScroll:!1,yAxisName:"",xAxisName:""},ha=Se(ua),rl=["refreshData","click","resetRecord"];Qe.use([Et.CanvasRenderer,ht.BarChart,ve.TitleComponent,ve.LegendComponent,ve.DatasetComponent,ve.ToolboxComponent,ve.MarkLineComponent]);const Pd=n.defineComponent({name:"EcanBar",props:{...ha},components:{Spin:Nt,Echarts:xt,EcanModal:kt,AModal:ce.Modal},setup(e,{expose:o}){const t=n.ref(),a=n.ref(!1),r=n.ref(!1),i=n.ref(null),s=n.ref([]),l=Ce(e),d=n.ref([]),c=n.ref(),g=n.ref({});let h;const y=n.computed(()=>a.value?Ue:12),u=n.computed(()=>{const{gradientShow:M,gradientColors:I,gradientOffset:L,barBorderRadius:H}=e,Y=n.unref(d),U=Y.length,ae=[];for(let Q=0;Q<U;Q++){const le={...Y[Q],type:"bar",barWidth:e.barWidth,showBackground:e.showBarBackground};if(e.isStack&&(le.stack="stack"),le.label={show:e.labelShow,fontSize:e.labelFontSize,position:e.labelPosition,color:e.labelColor,width:e.labelWidth,overflow:e.labelOverflow,formatter:re=>{let K="",X=e.labelFormatter;X===""&&(X="{c}");const{seriesName:ne,name:xe,value:we,data:Te}=re||{};return K+=De(X,{textData:{name:xe,value:we,a:ne,b:xe,c:we||0,...Te}},{useNewline:!0,useSpace:!0}),K}},le.itemStyle={},M&&(le.itemStyle={color:{x:e.isUseHorizontalAxis?1:0,y:0,x2:0,y2:e.isUseHorizontalAxis?0:1,colorStops:[{offset:0,color:e.colors[Q]},{offset:L,color:I[Q]},{offset:1,color:I[Q]}]}}),H){const re=H.split(",");if(re!=null&&re.length){const K=[];for(const X of re){const ne=parseFloat(X);isNaN(ne)||K.push(ne)}le.itemStyle.borderRadius=K}}e.isShowMarkLine&&(le.markLine={data:[{type:e.markLineType}]}),ae.push(le)}return ae}),m=n.ref([]),f=n.ref(!1),S=n.computed(()=>{const M=e.yAxisLabelFormatter,I=e.xAxisLabelFormatter;return{toolbox:{show:e.toolboxShow,left:e.toolboxLeft,top:e.toolboxTop,itemSize:e.toolboxItemSize,itemGap:e.toolboxItemGap,feature:{myLocation:{show:a.value?!1:e.toolboxLocation,title:"快速定位",icon:"path://M512 512m-80 0a80 80 0 1 0 160 0 80 80 0 1 0-160 0Z, M960 480h-33.632C910.752 276.16 747.84 113.248 544 97.632V64a32 32 0 1 0-64 0v33.632C276.16 113.248 113.248 276.16 97.632 480H64a32 32 0 0 0 0 64h33.632C113.248 747.84 276.16 910.752 480 926.368V960a32 32 0 1 0 64 0v-33.632C747.84 910.752 910.752 747.84 926.368 544H960a32 32 0 1 0 0-64zM544 862.368V800a32 32 0 1 0-64 0v62.368C311.424 847.104 176.896 712.576 161.632 544H224a32 32 0 1 0 0-64H161.632C176.896 311.424 311.424 176.896 480 161.632V224a32 32 0 0 0 64 0V161.632c168.576 15.296 303.104 149.792 318.368 318.368H800a32 32 0 1 0 0 64h62.368c-15.264 168.576-149.792 303.104-318.368 318.368z",onclick(){r.value=!0;const L=t.value.chart.getOption(),{xAxis:H}=L||{};H&&H.length&&(s.value=H[0].data)}},myDownload:{show:e.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(){Gt(e.toolboxDownloadUrl)}},myDataZoom:{show:a.value?!1:e.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 L;a.value=!0,(L=c.value)==null||L.showModal()}},myInfo:{show:e.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(){ce.Modal.info({title:"说明信息",content:e.toolboxInfoText})}}}},title:{text:e.titleText,subtext:e.titleSubtext,textStyle:{fontSize:e.titleFontSize,fontWeight:e.fontWeight,color:e.titleColor},left:e.textAlign},grid:{top:e.gridTop,bottom:e.gridBottom,left:e.gridLeft,right:e.gridRight,containLabel:e.gridContainLabel},color:e.colors,tooltip:{trigger:"axis",show:e.tooltipShow,formatter:L=>{var ae;const H=L.length;let Y="",U=e.tooltipFormatter;h=(ae=L[0])==null?void 0:ae.data,U===""&&(U="{marker} {a} {c}");for(let Q=0;Q<H;Q++){const{marker:le,seriesName:re,name:K,value:X,data:ne}=L[Q]||{};if(Q===0){let xe=K;typeof K=="string"&&K[0]==="0"&&!isNaN(+K)&&(xe=(+K).toString()),Y+=`${it(I,xe)}<br/>`}Y+=De(U,{textData:{marker:le,name:K,value:X,a:re,b:K,c:X||0,...ne}},{useNewline:!0,useSpace:!0}),Y+="<br/>"}return Y},textStyle:{color:e.tooltipTextStyleColor,fontSize:y.value},position:e.tooltipPosition||void 0},legend:{type:e.legendScroll?"scroll":"plain",width:e.legendWidth,height:e.legendHeight,show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,textStyle:{lineHeight:(a.value?Ue:parseFloat(e.legendFontSize))+8,rich:{text:{width:e.legendTextWidth,color:e.legendTextStyleColor,fontSize:a.value?Ue:e.legendFontSize}}},itemHeight:e.legendItemHeight,itemWidth:e.legendItemWidth,itemGap:e.legendItemGap,data:n.unref(d).map((L,H)=>({name:L.name,itemStyle:{color:e.colors[H]},icon:e.legendType})),formatter:L=>tn(e.legendFormatter,{name:L})},xAxis:{type:e.isUseHorizontalAxis?"value":"category",data:e.isUseHorizontalAxis?null:n.unref(A),inverse:e.isUseHorizontalAxis?e.xAxisInverse:e.axisInverse,minInterval:e.xAxisMinInterval,splitLine:{show:e.xAxisSplitLineShow,lineStyle:{color:e.xAxisSplitLineStyleColor,type:e.xAxisSplitLineType},interval:e.xAxisSplitLineInterval},splitArea:{show:e.xAxisSplitAreaShow},axisLabel:{color:e.xAxisLabelColor,interval:e.xAxisLabelInterval||0,rotate:e.xAxisLabelRotate,width:e.xAxisLabelWidth,overflow:e.xAxisLabelOverflow,fontSize:e.xAxisLabelFontSize,formatter(L){return typeof L=="string"&&L[0]==="0"&&!isNaN(+L)&&(L=(+L).toString()),it(I,L)}},axisLine:{show:e.xAxisLineShow,lineStyle:{color:e.xAxisLineStyleColor}},axisTick:{show:e.xAxisTickShow},name:e.xAxisName,nameTextStyle:{fontSize:e.xAxisLabelFontSize,color:e.xAxisLabelColor,align:"left"}},yAxis:{type:e.isUseHorizontalAxis?"category":"value",data:e.isUseHorizontalAxis?n.unref(m):null,inverse:e.isUseHorizontalAxis?e.axisInverse:e.yAxisInverse,minInterval:e.yAxisMinInterval,splitLine:{show:e.yAxisSplitLineShow,lineStyle:{color:e.yAxisSplitLineStyleColor,type:e.yAxisSplitLineType}},splitArea:{show:e.yAxisSplitAreaShow},axisLabel:{show:e.yAxisLabelShow,fontSize:e.yAxisLabelFontSize,color:e.yAxisLabelColor,rotate:e.yAxisLabelRotate,width:e.yAxisLabelWidth,overflow:e.yAxisLabelOverflow,formatter(L){return it(M,L)}},axisLine:{show:e.yAxisLineAlwaysDisplay,lineStyle:{color:e.yAxisLineStyleColor}},name:e.yAxisName,nameTextStyle:{fontSize:e.yAxisLabelFontSize,color:e.yAxisLabelColor,align:"right"}},series:n.unref(u)}}),{pageMode:B}=n.inject(ze,{pageMode:"normal"}),p=()=>{a.value=!1},b=(M=[],I=!1)=>{let L={};if(e.dataFieldConfigType==="key"){const H=I?e.keyTypeDataFieldNames:null;L=wt(M,H)}else if(e.dataFieldConfigType==="value"){const H=I?e.valueTypeDataFieldNames:null;L=Ft(M,H)}d.value=L.dataset,m.value=L.dimensions},x=(M=[],I,L=!1)=>{const Y=wt(M,L?I:null,!0);d.value=Y.dataset,m.value=Y.dimensions},A=n.computed(()=>n.unref(m).map(M=>{let I={};return M&&typeof M=="object"?I={...M}:I={value:M},I}));n.watch(()=>[e.data,e.labelFormatter,e.legendFormatter,e.legendWidth,e.legendHeight,e.legendTextWidth,e.legendScroll],([M])=>{(e.dataType==="static"||n.unref(B)==="design")&&b(M)},{immediate:!0,deep:!0});const k=je(e),D=async()=>{var M,I;try{f.value=!0;const L=await k();b((I=(M=L==null?void 0:L.data)==null?void 0:M.data)==null?void 0:I.rows,!0)}catch(L){console.error(L)}finally{f.value=!1}},O=lt(e),N=async()=>{var M;try{f.value=!0;const I=await O(),{columns:L=[],rows:H=[]}=((M=I==null?void 0:I.data)==null?void 0:M.data)??{};let Y;L.length>0&&(Y={name:L[0],types:L.slice(1).map(U=>({label:U,value:U}))}),x(H,Y,!0)}catch(I){console.error(I)}finally{f.value=!1}},{loadedData:C}=n.inject(bt,{loadedData:{}}),T=n.ref(!1);n.watch(C,M=>{if(e.dataType==="indicator"){const I=en(e.graphicConfig);I!=null&&I.length&&(!n.unref(T)&&rt(e.graphicConfig,M)?(T.value=!0,R()):rt(e.graphicConfig,M)||(T.value=!1))}},{deep:!0});const R=()=>{switch(e.dataType){case"indicator":rt(e.graphicConfig,n.unref(C))&&N();break;case"request":D();break}},v=(M,I)=>!!n.unref(s)[I.value].value.includes(M),E=async()=>{r.value=!1;const M=t.value.chart.getOption();for(let I=0;I<7;I++)await w(M,I)},w=(M,I)=>new Promise(L=>{setTimeout(()=>{const{series:H,color:Y,xAxis:U}=M,ae=t.value.chart,{splitArea:Q={}}=U[0]||{};H.forEach((le,re)=>{const K=le.data;let X="";I%2?X=Y[re]+"a8":X=Y[re],K[i.value].itemStyle={color:X}}),I%2?(Q.show=!0,Q.areaStyle.color=n.unref(s).map((le,re)=>re===i.value?"#ff003b26":"")):Q.show=!1,ae.setOption({series:H,xAxis:U}),L()},200)});o({refreshData:R});const _=Ee(e),{getGlobalModel:z,setGlobalModel:q}=n.inject(Be,{getGlobalModel:M=>{},setGlobalModel:(M,I)=>{}});q(e.id,{type:e.type,RECORD:""});const W=_("click",M=>{const I=z(e.id);q(e.id,{...I,type:e.type,RECORD:e.tooltipShow?h:M.data})}),{setRequest:$}=n.inject(Me,{setRequest:M=>{}});typeof $=="function"&&$({id:e.id,requestFn:R,sortNum:e.requestSort});const F=()=>{const M=e.id,I=z(M);q(M,{...I,RECORD:""})},P=M=>{t.value.chart.containPixel("grid",[M.offsetX,M.offsetY])&&W()};return e.tooltipShow?g.value["zr:click"]=P:g.value.click=W,Le(e,{refreshData:R,click:W,resetRecord:F}),{option:S,style:l,refreshData:R,click:W,loading:f,onClose:p,ecanModal:c,echartRef:t,handleLocationOk:E,onFilterOption:v,locationVisible:r,locationValue:i,locationNames:s,eventObj:g}}}),g1="",m1="",qd=e=>(n.pushScopeId("data-v-21d7ed90"),e=e(),n.popScopeId(),e),Hd={class:"location-wrap"},Vd=qd(()=>n.createElementVNode("div",{class:"location-text"},"选择分类:",-1));function jd(e,o,t,a,r,i){const s=n.resolveComponent("echarts"),l=n.resolveComponent("spin"),d=n.resolveComponent("ecan-modal"),c=n.resolveComponent("a-select-option"),g=n.resolveComponent("a-select"),h=n.resolveComponent("a-modal");return n.openBlock(),n.createElementBlock("div",{class:"ecan-bar",style:n.normalizeStyle(e.style)},[n.createVNode(l,{spinning:e.loading},{default:n.withCtx(()=>[n.createVNode(s,n.mergeProps({ref:"echartRef",option:e.option,"update-options":{notMerge:!0},autoresize:""},n.toHandlers(e.eventObj)),null,16,["option"])]),_:1},8,["spinning"]),n.createVNode(d,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:e.onClose},{default:n.withCtx(()=>[n.createVNode(l,{class:"spin-wrap",spinning:e.loading},{default:n.withCtx(()=>[n.createVNode(s,{option:e.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"]),n.createVNode(h,{visible:e.locationVisible,"onUpdate:visible":o[1]||(o[1]=y=>e.locationVisible=y),title:"快速定位",onOk:e.handleLocationOk},{default:n.withCtx(()=>[n.createElementVNode("div",Hd,[Vd,n.createVNode(g,{value:e.locationValue,"onUpdate:value":o[0]||(o[0]=y=>e.locationValue=y),style:{width:"100%"},placeholder:"请选择","show-search":"","filter-option":e.onFilterOption},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.locationNames,(y,u)=>(n.openBlock(),n.createBlock(c,{key:u,value:u},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(y.value),1)]),_:2},1032,["value"]))),128))]),_:1},8,["value","filter-option"])])]),_:1},8,["visible","onOk"])],4)}const il=pe(ye(Pd,[["render",jd],["__scopeId","data-v-21d7ed90"]])),ga={...ke,id:"",name:"散点图",keyName:"散点图",type:"ecanScatter",width:"400px",height:"400px",top:"",left:"",rotate:"",data:[{name:233,value:335},{name:556,value:310},{name:56,value:234}],titleText:"",titleSubtext:"",titleFontSize:"12px",titleColor:"#333",fontWeight:400,textAlign:"left",tooltipShow:!0,tooltipTrigger:"item",tooltipFormatter:"{marker} {b} {c}",legendShow:!1,legendOrient:"horizontal",legendTextStyleColor:"#333",legendTop:"top",legendLeft:"center",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],symbolSize:10,xAxisSplitLineShow:!0,xAxisSplitAreaShow:!1,xAxisSplitLineInterval:0,xAxisSplitLineStyleColor:"#333",xAxisLineStyleColor:"#333",xAxisTickShow:!0,xAxisLabelColor:"#333",xAxisLabelOverflow:"none",xAxisLabelInterval:0,xAxisLabelWidth:void 0,xAxisLabelRotate:0,xAxisLabelFormatter:"{value}",yAxisSplitLineShow:!0,yAxisSplitAreaShow:!1,yAxisSplitLineStyleColor:"#333",yAxisLabelColor:"#333",yAxisLineStyleColor:"#333",yAxisLineAlwaysDisplay:!1,yAxisLabelFormatter:"{value}",dataFieldNames:{name:"name",value:"value"},gridContainLabel:!0,gridTop:"10%",gridBottom:"10%",gridLeft:"5%",gridRight:"5%",graphicConfig:{},toolboxShow:!1,toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息",yAxisLabelShow:!0,yAxisSplitLineType:"solid",xAxisLabelFontSize:"12px",yAxisLabelFontSize:"12px",graphicType:"ecanScatter",tooltipPosition:"",isShowMarkLine:!1,markLineType:"average",yAxisName:"",xAxisName:""},ma=Se(ga),ll=["click","refreshData","resetRecord"];Qe.use([Et.CanvasRenderer,ht.ScatterChart,ve.ToolboxComponent,ve.TitleComponent,ve.TooltipComponent,ve.LegendComponent,ve.MarkLineComponent]);const Wd=n.defineComponent({name:"EcanScatter",props:{...ma},components:{Spin:Nt,Echarts:xt,EcanModal:kt},setup(e){const o=n.ref(!1),t=Ce(e),a=n.ref([]),r=n.ref(),i=n.computed(()=>o.value?Ue:12),s=n.computed(()=>e.isShowMarkLine?{markLine:{data:[{type:e.markLineType}]}}:{}),l=n.computed(()=>{const A=e.xAxisLabelFormatter,k=e.yAxisLabelFormatter;return{toolbox:{show:e.toolboxShow,left:e.toolboxLeft,top:e.toolboxTop,itemSize:e.toolboxItemSize,itemGap:e.toolboxItemGap,feature:{myDownload:{show:e.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(){Gt(e.toolboxDownloadUrl)}},myDataZoom:{show:o.value?!1:e.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 D;o.value=!0,(D=r.value)==null||D.showModal()}},myInfo:{show:e.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(){ce.Modal.info({title:"说明信息",content:e.toolboxInfoText})}}}},title:{text:e.titleText,subtext:e.titleSubtext,textStyle:{fontSize:e.titleFontSize,fontWeight:e.fontWeight,color:e.titleColor},left:e.textAlign},grid:{top:e.gridTop,bottom:e.gridBottom,left:e.gridLeft,right:e.gridRight,containLabel:e.gridContainLabel},color:e.colors,xAxis:{splitLine:{show:e.xAxisSplitLineShow,lineStyle:{color:e.xAxisSplitLineStyleColor},interval:e.xAxisSplitLineInterval},splitArea:{show:e.xAxisSplitAreaShow},axisLabel:{fontSize:e.xAxisLabelFontSize,color:e.xAxisLabelColor,interval:e.xAxisLabelInterval||0,rotate:e.xAxisLabelRotate,width:e.xAxisLabelWidth,overflow:e.xAxisLabelOverflow,formatter(D){return typeof D=="string"&&D[0]==="0"&&!isNaN(+D)&&(D=(+D).toString()),it(A,D)}},axisLine:{lineStyle:{color:e.xAxisLineStyleColor}},axisTick:{show:e.xAxisTickShow},name:e.xAxisName,nameTextStyle:{fontSize:e.xAxisLabelFontSize,color:e.xAxisLabelColor,align:"left"}},yAxis:{splitLine:{show:e.yAxisSplitLineShow,lineStyle:{color:e.yAxisSplitLineStyleColor,type:e.yAxisSplitLineType}},splitArea:{show:e.yAxisSplitAreaShow},axisLabel:{show:e.yAxisLabelShow,fontSize:e.yAxisLabelFontSize,color:e.yAxisLabelColor,formatter(D){return it(k,D)}},axisLine:{show:e.yAxisLineAlwaysDisplay,lineStyle:{color:e.yAxisLineStyleColor}},name:e.yAxisName,nameTextStyle:{fontSize:e.yAxisLabelFontSize,color:e.yAxisLabelColor,align:"right"}},tooltip:{show:e.tooltipShow,trigger:e.tooltipTrigger,formatter(D){var v;const{marker:O,seriesName:N}=D,C=((v=D==null?void 0:D.data)==null?void 0:v.record)??{},{name:T,value:R}=C;return De(e.tooltipFormatter,{textData:{marker:O,seriesName:N,a:N,b:T,c:R,...C}})},axisPointer:{type:"cross"},textStyle:{fontSize:i.value},position:e.tooltipPosition||void 0},legend:{show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,textStyle:{color:e.legendTextStyleColor,fontSize:i.value}},series:[{data:n.unref(a),type:"scatter",symbolSize:e.symbolSize,...n.unref(s)}]}}),{getGlobalModel:d,setGlobalModel:c}=n.inject(Be,{getGlobalModel:A=>{},setGlobalModel:(A,k)=>{}}),{pageMode:g}=n.inject(ze,{pageMode:"normal"}),h=(A=[],k)=>{const{name:D="name",value:O="value"}=k||{};a.value=A.map(N=>({value:[N[D],N[O]],record:N}))};n.watch(()=>e.data,A=>{(e.dataType==="static"||n.unref(g)==="design")&&h(A)},{immediate:!0,deep:!0});const y=n.ref(!1),u=je(e),m=async()=>{var A,k;if(e.dataType==="request"){y.value=!0;try{const D=await u();h((k=(A=D==null?void 0:D.data)==null?void 0:A.data)==null?void 0:k.rows,e.dataFieldNames)}catch(D){console.error(D)}finally{y.value=!1}}},f=()=>{o.value=!1},S=Ee(e);c(e.id,{type:e.type,RECORD:""});const B=S("click",A=>{const k=e.id,D=d(k);c(k,{...D,type:e.type,RECORD:A==null?void 0:A.data})});Le(e,{refreshData:()=>{m()},click:B,resetRecord:()=>{const A=e.id,k=d(A);c(A,{...k,RECORD:""})}});const{setRequest:x}=n.inject(Me,{setRequest:A=>{}});return typeof x=="function"&&x({id:e.id,requestFn:m,sortNum:e.requestSort}),{option:l,style:t,click:B,loading:y,onClose:f,ecanModal:r}}}),x1="";function Ud(e,o,t,a,r,i){const s=n.resolveComponent("echarts"),l=n.resolveComponent("spin"),d=n.resolveComponent("ecan-modal");return n.openBlock(),n.createElementBlock("div",{style:n.normalizeStyle(e.style)},[n.createVNode(l,{spinning:e.loading},{default:n.withCtx(()=>[n.createVNode(s,{option:e.option,autoresize:"",onClick:e.click},null,8,["option","onClick"])]),_:1},8,["spinning"]),n.createVNode(d,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:e.onClose},{default:n.withCtx(()=>[n.createVNode(l,{class:"spin-wrap",spinning:e.loading},{default:n.withCtx(()=>[n.createVNode(s,{option:e.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"])],4)}const sl=pe(ye(Wd,[["render",Ud]])),ya={...ke,id:"",name:"自定义图表",keyName:"自定义图表",type:"ecanCustomGraph",width:"400px",height:"400px",option:{},optionCode:"",graphicType:"ecanCustomGraph"},xa=Se(ya),Gd=n.defineComponent({name:"EcanCustomGraph",props:{...xa},components:{Echarts:xt},setup(e){const o=Ce(e),t=n.ref();return n.watch(()=>e.optionCode,a=>{try{const r=eval;t.value=r(a)}catch(r){console.error(r)}},{immediate:!0}),{style:o,myOption:t,echarts:Hl}}});function $d(e,o,t,a,r,i){const s=n.resolveComponent("echarts");return n.openBlock(),n.createElementBlock("div",{style:n.normalizeStyle(e.style)},[n.createVNode(s,{option:e.myOption,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])],4)}const cl=pe(ye(Gd,[["render",$d]])),pa={...ke,id:"",name:"组合图表",keyName:"组合图表",type:"ecanComboGraph",width:"400px",height:"400px",data:[{name:"名称一",value:335,type:"类型一"},{name:"名称二",value:410,type:"类型一"},{name:"名称三",value:210,type:"类型一"},{name:"名称一",value:510,type:"类型二"},{name:"名称二",value:731,type:"类型二"},{name:"名称三",value:910,type:"类型二"}],titleText:"",titleSubtext:"",titleFontSize:"12px",titleColor:"#333",fontWeight:400,textAlign:"left",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],legendShow:!0,legendTextStyleColor:"#333",legendOrient:"horizontal",legendTop:"top",legendLeft:"center",tooltipShow:!0,tooltipTextStyleColor:"",tooltipTrigger:"item",tooltipFormatter:"{marker} {a} {c}",xAxisLabelInterval:0,xAxisSplitLineShow:!0,xAxisSplitAreaShow:!1,xAxisSplitLineInterval:0,xAxisLabelRotate:0,xAxisLabelOverflow:"none",xAxisLabelWidth:void 0,xAxisSplitLineStyleColor:"#333",xAxisLabelColor:"#333",xAxisLineShow:!0,xAxisLineStyleColor:"#333",xAxisTickShow:!0,xAxisMinInterval:0,xAxisLabelFormatter:"{value}",yAxisLabelFormatter:"{value}",yAxisMinInterval:0,yAxisLeftSplitLineShow:!0,yAxisRightSplitLineShow:!0,yAxisSplitAreaShow:!1,yAxisSplitLineStyleColor:"#333",yAxisLabelColor:"#333",yAxisLineStyleColor:"#333",yAxisLineAlwaysDisplay:!1,valueTypeDataFieldNames:{name:"name",value:"value",type:"type"},keyTypeDataFieldNames:{name:"name",types:[]},dataFieldConfigType:"value",seriesTypes:[{type:"bar",axisIndex:0},{type:"line",axisIndex:0}],yAxis:[{axisLabelFormatter:"{value}"},{axisLabelFormatter:"{value}"}],gridContainLabel:!0,gridTop:"10%",gridBottom:"10%",gridLeft:"5%",gridRight:"5%",graphicConfig:{},toolboxShow:!1,toolboxLocation:!1,toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息",areaStyleOpacity:0,symbolSize:4,lineStyleWidth:2,smooth:!1,barWidth:"40%",barBorderRadius:"",areaGradientShow:!1,areaGradientColor:"",yAxisLabelShow:!0,yAxisLeftSplitLineType:"solid",yAxisRightSplitLineType:"solid",gradientShow:!1,gradientColors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientOffset:1,legendType:"",legendItemGap:10,legendItemWidth:25,legendItemHeight:14,shadowColor:"",shadowBlur:0,shadowOffsetY:0,shadowOffsetX:0,legendFontSize:"12px",xAxisLabelFontSize:"12px",yAxisLabelFontSize:"12px",graphicType:"ecanComboGraph",tooltipPosition:"",isShowMarkLine:!1,markLineType:"average",legendFormatter:"{name}",legendWidth:null,legendHeight:null,legendTextWidth:null,legendScroll:!1,yAxisLeftName:"",yAxisRightName:"",xAxisName:""},ba=Se(pa),dl=["refreshData","click","resetRecord"];Qe.use([Et.CanvasRenderer,ht.BarChart,ht.LineChart,ve.TitleComponent,ve.LegendComponent,ve.DatasetComponent,ve.ToolboxComponent,ve.MarkLineComponent]);const Zd=n.defineComponent({name:"EcanComboGraph",props:{...ba},components:{Spin:Nt,Echarts:xt,EcanModal:kt,AModal:ce.Modal},setup(e,{expose:o}){const t=n.ref(),a=n.ref(!1),r=n.ref(!1),i=n.ref(null),s=n.ref([]),l=n.ref({});let d;const c=Ce(e),g=n.ref([]),h=n.ref([]),y=n.ref(),u=n.ref([]),m=n.computed(()=>a.value?Ue:12),f=n.computed(()=>({title:{text:e.titleText,subtext:e.titleSubtext,textStyle:{fontSize:e.titleFontSize,fontWeight:e.fontWeight,color:e.titleColor},left:e.textAlign},toolbox:{show:e.toolboxShow,left:e.toolboxLeft,top:e.toolboxTop,itemSize:e.toolboxItemSize,itemGap:e.toolboxItemGap,feature:{myLocation:{show:a.value?!1:e.toolboxLocation,title:"快速定位",icon:"path://M512 512m-80 0a80 80 0 1 0 160 0 80 80 0 1 0-160 0Z, M960 480h-33.632C910.752 276.16 747.84 113.248 544 97.632V64a32 32 0 1 0-64 0v33.632C276.16 113.248 113.248 276.16 97.632 480H64a32 32 0 0 0 0 64h33.632C113.248 747.84 276.16 910.752 480 926.368V960a32 32 0 1 0 64 0v-33.632C747.84 910.752 910.752 747.84 926.368 544H960a32 32 0 1 0 0-64zM544 862.368V800a32 32 0 1 0-64 0v62.368C311.424 847.104 176.896 712.576 161.632 544H224a32 32 0 1 0 0-64H161.632C176.896 311.424 311.424 176.896 480 161.632V224a32 32 0 0 0 64 0V161.632c168.576 15.296 303.104 149.792 318.368 318.368H800a32 32 0 1 0 0 64h62.368c-15.264 168.576-149.792 303.104-318.368 318.368z",onclick(){r.value=!0;const I=t.value.chart.getOption(),{xAxis:L}=I||{};L&&L.length&&(s.value=L[0].data)}},myDownload:{show:e.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(){Gt(e.toolboxDownloadUrl)}},myDataZoom:{show:a.value?!1:e.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 I;a.value=!0,(I=y.value)==null||I.showModal()}},myInfo:{show:e.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(){ce.Modal.info({title:"说明信息",content:e.toolboxInfoText})}}}},grid:{top:e.gridTop,bottom:e.gridBottom,left:e.gridLeft,right:e.gridRight,containLabel:e.gridContainLabel},color:e.colors,legend:{type:e.legendScroll?"scroll":"plain",width:e.legendWidth,height:e.legendHeight,show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,textStyle:{lineHeight:(a.value?Ue:parseFloat(e.legendFontSize))+8,rich:{text:{width:e.legendTextWidth,color:e.legendTextStyleColor,fontSize:a.value?Ue:e.legendFontSize}}},itemHeight:e.legendItemHeight,itemWidth:e.legendItemWidth,itemGap:e.legendItemGap,data:n.unref(u).map((I,L)=>({name:I.name,itemStyle:{color:e.colors[L]},icon:e.legendType})),formatter:I=>tn(e.legendFormatter,{name:I})},tooltip:{trigger:"axis",show:e.tooltipShow,formatter:I=>{var ae;const L=I.length;let H="",Y=e.tooltipFormatter;d=(ae=I[0])==null?void 0:ae.data,Y===""&&(Y="{marker} {a} {c}");const U=e.seriesTypes;for(let Q=0;Q<L;Q++){const le=U[Q],{tooltipFormatter:re}=le||{},{marker:K,seriesName:X,name:ne,value:xe,data:we}=I[Q]||{};if(Q===0){let Te=ne;typeof ne=="string"&&ne[0]==="0"&&!isNaN(+ne)&&(Te=(+ne).toString()),H+=`${it(e.xAxisLabelFormatter,Te)}<br/>`}H+=De(re||Y,{textData:{marker:K,name:ne,value:xe,seriesName:X,a:X,b:ne,c:xe||0,...we}},{useNewline:!0,useSpace:!0}),H+="<br/>"}return H},textStyle:{color:e.tooltipTextStyleColor,fontSize:m.value},position:e.tooltipPosition||void 0},xAxis:{minInterval:e.xAxisMinInterval,type:"category",data:n.unref(h).map(I=>{let L={};return I&&typeof I=="object"?L={...I}:L={value:I},L}),splitLine:{show:e.xAxisSplitLineShow,lineStyle:{color:e.xAxisSplitLineStyleColor},interval:e.xAxisSplitLineInterval},splitArea:{show:e.xAxisSplitAreaShow},axisLabel:{color:e.xAxisLabelColor,interval:e.xAxisLabelInterval||0,rotate:e.xAxisLabelRotate,width:e.xAxisLabelWidth,overflow:e.xAxisLabelOverflow,fontSize:e.xAxisLabelFontSize,formatter(I){return typeof I=="string"&&I[0]==="0"&&!isNaN(+I)&&(I=(+I).toString()),it(e.xAxisLabelFormatter,I)}},axisLine:{show:e.xAxisLineShow,lineStyle:{color:e.xAxisLineStyleColor}},axisTick:{show:e.xAxisTickShow},name:e.xAxisName,nameTextStyle:{fontSize:e.xAxisLabelFontSize,color:e.xAxisLabelColor,align:"left"}},yAxis:n.unref(A),series:n.unref(g)})),{pageMode:S}=n.inject(ze,{pageMode:"normal"}),B=()=>{a.value=!1},p=(I=[],L=!1)=>{let H;if(e.dataFieldConfigType==="key"){const U=L?e.keyTypeDataFieldNames:null;H=wt(I,U)}else if(e.dataFieldConfigType==="value"){const U=L?e.valueTypeDataFieldNames:null;H=Ft(I,U)}h.value=H.dimensions;const Y=H.dataset;u.value=H.dataset,g.value=x(Y)},b=(I=[],L,H=!1)=>{const U=wt(I,H?L:null,!0);h.value=U.dimensions;const ae=U.dataset;u.value=U.dataset,g.value=x(ae)};function x(I){const L=[],H=I.length,Y=e.seriesTypes;for(let U=0;U<H;U++){const ae=Y[U],{type:Q,axisIndex:le}=ae||{};let re={type:Q,yAxisIndex:le,...I[U]};if(Q==="line"){const K={};e.shadowColor&&(K.shadowColor=e.shadowColor,K.shadowBlur=e.shadowBlur,K.shadowOffsetY=e.shadowOffsetY,K.shadowOffsetX=e.shadowOffsetX),re={...re,symbolSize:e.symbolSize,smooth:e.smooth,itemStyle:{color:e.colors[U]},areaStyle:{color:e.areaGradientShow?{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:e.colors[U]},{offset:1,color:e.areaGradientColor||"transparent"}],global:!1}:e.colors[U],opacity:e.areaStyleOpacity},lineStyle:{width:e.lineStyleWidth,...K}}}if(Q==="bar"){const{gradientShow:K,gradientColors:X,gradientOffset:ne}=e,xe={};if(e.barBorderRadius){const we=e.barBorderRadius.split(",");if(we!=null&&we.length){const Te=[];for(const $e of we){const Fe=parseFloat($e);isNaN(Fe)||Te.push(Fe)}xe.borderRadius=Te}}K&&(xe.color={x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:e.colors[U]},{offset:ne,color:X[U]},{offset:1,color:X[U]}]}),re={...re,barWidth:e.barWidth,itemStyle:xe}}e.isShowMarkLine&&(re.markLine={data:[{type:e.markLineType}]}),L.push(re)}return L}n.watch(()=>[e.data,e.seriesTypes,e.symbolSize,e.smooth,e.areaStyleOpacity,e.lineStyleWidth,e.barWidth,e.barBorderRadius,e.areaGradientShow,e.areaGradientColor,e.gradientShow,e.gradientColors,e.gradientOffset,e.shadowColor,e.shadowBlur,e.shadowOffsetY,e.shadowOffsetX,e.legendFontSize,e.xAxisLabelFormatter,e.isShowMarkLine,e.markLineType,e.legendFormatter,e.legendWidth,e.legendHeight,e.legendTextWidth,e.legendScroll],([I])=>{(e.dataType==="static"||n.unref(S)==="design")&&p(I)},{immediate:!0,deep:!0});const A=n.computed(()=>{const I=e.yAxis;return I==null?void 0:I.map((L,H)=>({type:"value",minInterval:e.yAxisMinInterval,splitLine:{show:H===0?e.yAxisLeftSplitLineShow:e.yAxisRightSplitLineShow,lineStyle:{color:e.yAxisSplitLineStyleColor,type:H===0?e.yAxisLeftSplitLineType:e.yAxisRightSplitLineType}},splitArea:{show:e.yAxisSplitAreaShow},axisLabel:{show:e.yAxisLabelShow,fontSize:e.yAxisLabelFontSize,color:e.yAxisLabelColor,formatter(Y){return it(L.axisLabelFormatter,Y)}},axisLine:{show:e.yAxisLineAlwaysDisplay,lineStyle:{color:e.yAxisLineStyleColor}},name:H===0?e.yAxisLeftName:e.yAxisRightName,nameTextStyle:{fontSize:e.yAxisLabelFontSize,color:e.yAxisLabelColor,align:H===0?"right":"left"}}))}),k=n.ref(!1),D=je(e),O=async()=>{var I,L;if(e.dataType==="request")try{k.value=!0;const H=await D();p((L=(I=H==null?void 0:H.data)==null?void 0:I.data)==null?void 0:L.rows,!0)}catch(H){console.error(H)}finally{k.value=!1}},N=lt(e),C=async()=>{var I;try{k.value=!0;const L=await N(),{columns:H=[],rows:Y=[]}=((I=L==null?void 0:L.data)==null?void 0:I.data)??{};let U;H.length>0&&(U={name:H[0],types:H.slice(1).map(ae=>({label:ae,value:ae}))}),b(Y,U,!0)}catch(L){console.error(L)}finally{k.value=!1}},{loadedData:T}=n.inject(bt,{loadedData:{}}),R=n.ref(!1);n.watch(T,I=>{if(e.dataType==="indicator"){const L=en(e.graphicConfig);L!=null&&L.length&&(!n.unref(R)&&rt(e.graphicConfig,I)?(R.value=!0,v()):rt(e.graphicConfig,I)||(R.value=!1))}},{deep:!0});const v=()=>{switch(e.dataType){case"indicator":rt(e.graphicConfig,n.unref(T))&&C();break;case"request":O();break}},E=(I,L)=>!!n.unref(s)[L.value].value.includes(I),w=async()=>{r.value=!1;const I=t.value.chart.getOption();for(let L=0;L<7;L++)await _(I,L)},_=(I,L)=>new Promise(H=>{setTimeout(()=>{const{series:Y,color:U,xAxis:ae}=I,Q=t.value.chart,{splitArea:le={}}=ae[0]||{};Y.forEach((re,K)=>{const X=re.data;let ne="";L%2?ne=U[K]+"a8":ne=U[K],X[i.value].itemStyle={color:ne}}),L%2?(le.show=!0,le.areaStyle.color=n.unref(s).map((re,K)=>K===i.value?"#ff003b26":"")):le.show=!1,Q.setOption({series:Y,xAxis:ae}),H()},200)});o({refreshData:v});const z=Ee(e),{getGlobalModel:q,setGlobalModel:W}=n.inject(Be,{getGlobalModel:I=>{},setGlobalModel:(I,L)=>{}});W(e.id,{type:e.type,RECORD:""});const $=z("click",I=>{const L=q(e.id);W(e.id,{...L,type:e.type,RECORD:e.tooltipShow?d:I==null?void 0:I.data})}),F=I=>{t.value.chart.containPixel("grid",[I.offsetX,I.offsetY])&&$()};e.tooltipShow?l.value["zr:click"]=F:l.value.click=$;const{setRequest:P}=n.inject(Me,{setRequest:I=>{}});return typeof P=="function"&&P({id:e.id,requestFn:v,sortNum:e.requestSort}),Le(e,{resetRecord:()=>{const I=e.id,L=q(I);W(I,{...L,RECORD:""})},refreshData:v,click:$}),{style:c,option:f,click:$,loading:k,onClose:B,ecanModal:y,echartRef:t,handleLocationOk:w,onFilterOption:E,locationVisible:r,locationValue:i,locationNames:s,eventObj:l}}}),v1="",S1="",Yd=e=>(n.pushScopeId("data-v-1858b3c3"),e=e(),n.popScopeId(),e),Kd={class:"location-wrap"},Qd=Yd(()=>n.createElementVNode("div",{class:"location-text"},"选择分类:",-1));function Jd(e,o,t,a,r,i){const s=n.resolveComponent("echarts"),l=n.resolveComponent("spin"),d=n.resolveComponent("ecan-modal"),c=n.resolveComponent("a-select-option"),g=n.resolveComponent("a-select"),h=n.resolveComponent("a-modal");return n.openBlock(),n.createElementBlock("div",{style:n.normalizeStyle(e.style)},[n.createVNode(l,{spinning:e.loading},{default:n.withCtx(()=>[n.createVNode(s,n.mergeProps({ref:"echartRef",option:e.option,"update-options":{notMerge:!0},autoresize:""},n.toHandlers(e.eventObj)),null,16,["option"])]),_:1},8,["spinning"]),n.createVNode(d,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:e.onClose},{default:n.withCtx(()=>[n.createVNode(l,{class:"spin-wrap",spinning:e.loading},{default:n.withCtx(()=>[n.createVNode(s,{option:e.option,"update-options":{notMerge:!0},autoresize:"",onClick:e.click},null,8,["option","onClick"])]),_:1},8,["spinning"])]),_:1},8,["onClose"]),n.createVNode(h,{visible:e.locationVisible,"onUpdate:visible":o[1]||(o[1]=y=>e.locationVisible=y),title:"快速定位",onOk:e.handleLocationOk},{default:n.withCtx(()=>[n.createElementVNode("div",Kd,[Qd,n.createVNode(g,{value:e.locationValue,"onUpdate:value":o[0]||(o[0]=y=>e.locationValue=y),style:{width:"100%"},placeholder:"请选择","show-search":"","filter-option":e.onFilterOption},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.locationNames,(y,u)=>(n.openBlock(),n.createBlock(c,{key:u,value:u},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(y.value),1)]),_:2},1032,["value"]))),128))]),_:1},8,["value","filter-option"])])]),_:1},8,["visible","onOk"])],4)}const fl=pe(ye(Zd,[["render",Jd],["__scopeId","data-v-1858b3c3"]])),va={...ke,id:"",name:"雷达图",keyName:"雷达图",type:"ecanRadar",width:"400px",height:"400px",top:"",left:"",rotate:"",data:[{name:"名称一",value:235,type:"类型一"},{name:"名称二",value:280,type:"类型一"},{name:"名称三",value:230,type:"类型一"},{name:"名称四",value:335,type:"类型一"},{name:"名称五",value:435,type:"类型一"},{name:"名称六",value:215,type:"类型一"}],titleText:"",titleSubtext:"",titleFontSize:"12px",titleColor:"#333",fontWeight:400,textAlign:"left",legendShow:!0,legendOrient:"horizontal",legendTextStyleColor:"#333",legendTop:"top",legendLeft:"center",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],valueTypeDataFieldNames:{name:"name",value:"value",type:"type"},keyTypeDataFieldNames:{name:"name",types:[]},dataFieldConfigType:"value",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,legendItemGap:10,legendItemWidth:25,legendItemHeight:14,legendType:"",lineStyleWidth:2,symbolSize:4,labelShow:!1,labelFontSize:"12px",labelPosition:"inside",labelColor:"",labelWidth:100,labelOverflow:"none",labelFormatter:"{value}",axisNameColor:"",legendFontSize:"12px",graphicConfig:{},graphicType:"ecanRadar",tooltipPosition:"",legendFormatter:"{name}",legendWidth:null,legendHeight:null,legendTextWidth:null,legendScroll:!1,gradientShow:!1,gradientColors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientOffset:1},Sa=Se(va),ul=["refreshData","click","resetRecord"];Qe.use([Et.CanvasRenderer,ht.RadarChart,ve.ToolboxComponent,ve.TitleComponent,ve.LegendComponent]);const Xd=n.defineComponent({name:"EcanRadar",props:{...Sa},components:{Spin:Nt,Echarts:xt,EcanModal:kt},setup(e,{expose:o}){const t=n.ref(),a=n.ref(!1),r=Ce(e),i=n.ref([]),s=n.ref(),l=n.computed(()=>a.value?Ue:12),d=n.ref([]),c=n.ref(e.valueTypeDataFieldNames.name),g=n.computed(()=>{const v=n.unref(d),E=v.length,w=[];for(let _=0;_<E;_++){const{name:z,data:q=[]}=v[_],W=[{name:z,value:q.map(P=>P.value)}];let $=e.colors[_];if(e.gradientShow){const{gradientOffset:P,gradientColors:M}=e;$={x:.7,y:0,x2:0,y2:0,colorStops:[{offset:0,color:e.colors[_]},{offset:P,color:M[_]},{offset:1,color:M[_]}]}}const F={type:"radar",name:z,data:W,areaStyle:{color:$,opacity:e.areaStyleOpacity},tooltip:{trigger:"item"},symbolSize:e.symbolSize,lineStyle:{width:e.lineStyleWidth},label:{show:e.labelShow,fontSize:e.labelFontSize,position:e.labelPosition,color:e.labelColor,width:e.labelWidth,overflow:e.labelOverflow,formatter:P=>{const{data:M,value:I}=P;let L=0,H="0%";if(M)for(const Y of M.value)L+=+Y;return L&&(H=`${(I/L*100).toFixed(2)}%`),De(e.labelFormatter,{textData:{value:I,percent:H}},{useNewline:!1,useSpace:!1})}}};w.push(F)}return w}),h=n.computed(()=>{var z;const v=[],E=[],w=n.unref(d),_=w.length;for(let q=0;q<_;q++){const{data:W=[]}=w[q];for(let $=0;$<W.length;$++)E.push(W[$].value)}if((z=i.value)!=null&&z.length){const q=E!=null&&E.length?Math.max(...E)*1.2:0;for(const W of i.value)v.push({name:W,max:q})}return v}),y=n.computed(()=>({toolbox:{show:e.toolboxShow,left:e.toolboxLeft,top:e.toolboxTop,itemSize:e.toolboxItemSize,itemGap:e.toolboxItemGap,feature:{myDownload:{show:e.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(){Gt(e.toolboxDownloadUrl)}},myDataZoom:{show:a.value?!1:e.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 v;a.value=!0,(v=s.value)==null||v.showModal()}},myInfo:{show:e.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(){ce.Modal.info({title:"说明信息",content:e.toolboxInfoText})}}}},title:{text:e.titleText,subText:e.titleSubtext,textStyle:{fontSize:e.titleFontSize,fontWeight:e.fontWeight,color:e.titleColor},left:e.textAlign},color:e.colors,tooltip:{trigger:"axis",textStyle:{fontSize:l.value},show:e.tooltipShow,formatter:v=>{let E="",w=e.tooltipFormatter;w===""&&(w="{marker} {a} {c}");for(let _=0;_<n.unref(h).length;_++){const z=n.unref(h)[_],{marker:q,seriesName:W,value:$}=v||{};_===0&&W&&(E+=`${W}<br/>`),E+=De(w,{textData:{marker:q,name:z.name,value:$[_],a:z.name,b:z.name,c:$[_]||0,type:W}},{useNewline:!0,useSpace:!0}),E+="<br/>"}return E},position:e.tooltipPosition||void 0},radar:{indicator:n.unref(h),axisName:{color:e.axisNameColor}},legend:{type:e.legendScroll?"scroll":"plain",width:e.legendWidth,height:e.legendHeight,show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,textStyle:{lineHeight:(a.value?Ue:parseFloat(e.legendFontSize))+8,rich:{text:{width:e.legendTextWidth,color:e.legendTextStyleColor,fontSize:a.value?Ue:e.legendFontSize}}},itemHeight:e.legendItemHeight,itemWidth:e.legendItemWidth,itemGap:e.legendItemGap,data:n.unref(d).map(v=>({name:v.name,icon:e.legendType})),formatter:v=>tn(e.legendFormatter,{name:v})},series:n.unref(g)})),u=()=>{a.value=!1},{getGlobalModel:m,setGlobalModel:f}=n.inject(Be,{getGlobalModel:v=>{},setGlobalModel:(v,E)=>{}}),{pageMode:S}=n.inject(ze,{pageMode:"normal"}),B=(v=[],E=!1)=>{let w;if(e.dataFieldConfigType==="key"){const _=E?e.keyTypeDataFieldNames:null;w=wt(v,_)}else if(e.dataFieldConfigType==="value"){const _=E?e.valueTypeDataFieldNames:null;w=Ft(v,_)}i.value=w.dimensions,d.value=w.dataset},p=(v=[],E,w=!1)=>{const z=wt(v,w?E:null,!0);i.value=z.dimensions,d.value=z.dataset};n.watch(()=>[e.data,e.areaStyleOpacity,e.legendFontSize,e.legendFormatter,e.legendWidth,e.legendHeight,e.legendTextWidth,e.legendScroll,e.labelFormatter],([v])=>{(e.dataType==="static"||n.unref(S)==="design")&&B(v)},{immediate:!0,deep:!0});const b=n.ref(!1),x=je(e),A=async()=>{var v,E;if(e.dataType==="request")try{b.value=!0;const w=await x();B((E=(v=w==null?void 0:w.data)==null?void 0:v.data)==null?void 0:E.rows,!0)}catch(w){console.error(w)}finally{b.value=!1}},k=Ee(e);f(e.id,{type:e.type,RECORD:""});const D=v=>{const E=v.event.topTarget.__dimIdx;E!==void 0&&k("click",()=>{var q;const{value:w,name:_}=v.data||{},z=m(e.id);f(e.id,{...z,type:e.type,RECORD:{[n.unref(c)]:((q=n.unref(h)[E])==null?void 0:q.name)||"",[_]:w[E],seriesName:_}})})()},O=lt(e),N=async()=>{var v;try{b.value=!0;const E=await O(),{columns:w=[],rows:_=[]}=((v=E==null?void 0:E.data)==null?void 0:v.data)??{};let z;w.length>0&&(c.value=w[0],z={name:w[0],types:w.slice(1).map(q=>({label:q,value:q}))}),p(_,z,!0)}catch(E){console.error(E)}finally{b.value=!1}},C=()=>{switch(e.dataType){case"indicator":N();break;case"request":A();break}};Le(e,{refreshData:C,resetRecord:()=>{const v=e.id,E=m(v);f(v,{...E,RECORD:""})},click:D});const{setRequest:R}=n.inject(Me,{setRequest:v=>{}});return typeof R=="function"&&R({id:e.id,requestFn:C,sortNum:e.requestSort}),o({refreshData:C}),{option:y,style:r,click:D,loading:b,onClose:u,ecanModal:s,echartRef:t}}}),w1="";function ef(e,o,t,a,r,i){const s=n.resolveComponent("echarts"),l=n.resolveComponent("spin"),d=n.resolveComponent("ecan-modal");return n.openBlock(),n.createElementBlock("div",{style:n.normalizeStyle(e.style)},[n.createVNode(l,{spinning:e.loading},{default:n.withCtx(()=>[n.createVNode(s,{ref:"echartRef",option:e.option,autoresize:"",onClick:e.click},null,8,["option","onClick"])]),_:1},8,["spinning"]),n.createVNode(d,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:e.onClose},{default:n.withCtx(()=>[n.createVNode(l,{class:"spin-wrap",spinning:e.loading},{default:n.withCtx(()=>[n.createVNode(s,{option:e.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"])],4)}const hl=pe(ye(Xd,[["render",ef]])),tf="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHQAAAAcCAMAAACH42siAAAAZlBMVEUAAABBltJCldJCldFEk89BltJCltFBldI/lMBKndtmb9pCltNDldFAkclAldNBldJBltM/lM5AltNCldJBldJBlNJBltVBldJBlNJBlNI/lNNBldJBldNAldJBldJBldJBldNBldIiNK7WAAAAInRSTlMAM4BNGmaz5gQGbiAPCV1WQxUpOCY9EmxQSC2jdoacqZK8uPo7tAAAAZ9JREFUSMe90NmOwjAMheGka0J3SulCy/L+Lzk4I+HYhckEKs7dr1x8kQVM5YJMZ7SLiXVHOw817Z72cSns3BmziY7EnGRGjDqUpKt4pEZQKruvyaJt85YmBUebKLJVNUlpq6oOQ1tVVRzbqu6DwFb1NUlsVd3SNL0UDM0jqkaSqoeQqjKmahtQNUzuC1AtU1sF9KHmnmrtrSK6idqBWqE6GFVxFdGvqDGoJ01Qt7rfTEV0e7V6qSK6VjNPtTaqoOq8Ugnqr7aeav+rAuqrTh+qZw3o1urAVcFVQD3U6ZnaYY9MLZk6G5WhDaDFI9UeUPyE7gCNsAdAD9gxoBJ7ARRPUVwALXdu8/h/s3xmjtwUu0/M0M/UJzBjAei3TUTdpmKmcpkBmOHKBNTPzJi59zYJys3DO2aL78YcmNkLgrrM9m9TucwzmoBy08xlju+bgL42G4c5OcxqZSLqbwqXOVNTGXMWFD0ak6KN1ZKaojYmbribndW9MXELNQEFFUyiNqQlmEQ1JqpgErUifUUTUVEIupx1wzpjvWfdsh4FQX8ANe4nnpsb9NEAAAAASUVORK5CYII=",nf="data:image/png;base64,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",of="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHQAAAAcCAMAAACH42siAAAAaVBMVEUAAABElM9BltJCldJCldFBltJBldJCltFNmrNCmNNFldNAldJBldNBldRBldNBldNBldJCoNFBldJBltNBldJBldJAldJAltJBldJBldJBldNAlNFAldJBlNJAldJBldNBldJBldJBldLfIVowAAAAI3RSTlMAGjJNgGbmswMSCScgDTs/ZAVRK0eYj2s3r3AWveHEhXjeXb5rzlgAAAFqSURBVEjH1dbJVsJAEIXhHjJ05tlEooK8/0NKsbDrFjmHiBD0Lvqcf9PfthRM7xvoZMQuLHZaOejGYLtcdEItzI9oaLg5xIHj5hgcG262oXXcrGzJ23Umg5717C7NKBrAjOMDM8YgCI5ghmEPprUTmMZkrBOtdbJgfpZovho0gwzNOkfTam9k5jSGkKlTMOezWT3VLH5qlg8wQzSbO5jJ28l8Z+YLmZMwuz9lupvNXpjlFTMTZv7vzFSatTDtGnNeYdpNzZTMSJhx5f84m8Y3mSEzJzTVolko3J7Qve+a0J3vntDWffdEaMUQQo1vTWjuuyA0UWvUUarqzuqLUMPt1MD3uKTaTdRwvdrdorpFtfZtH6eyK2F3RS23U3uhlr9VB1TdE1V2h7Vr1O4mdbdera6o+Wq1Vqi2rEktFapGoZopVLVCtVCXag19IBPUiiWpBrojE1QNXZAp1/TYbhKdKVwuWotORKfn9wu/DSc/X9T6qgAAAABJRU5ErkJggg==",af="data:image/png;base64,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",Ca={...ke,name:"边框",keyName:"边框",type:"ecanBorder",width:"300px",height:"300px",zIndex:0,fontSize:"16px",fontFamily:"",fontWeight:700,title:"标题",mode:"no-title",borderColor:"#eee",borderRadius:"5",borderStyle:"solid",borderWidth:"2px",backgroundColor:"#ffffff",useBorderModify:!1,textShadow:"",data:{},gradientShow:!1,gradientColor:"",gradientOffset:1,gradientAngle:"180deg",isTransparent:!1,titleMode:"type-1"},wa=Se(Ca),gl=["click"],rf=n.defineComponent({name:"EcanBorder",props:{...wa},setup(e){const o=Ce(e,["background"]),t=n.computed(()=>{const{isTransparent:m,gradientShow:f,gradientColor:S,gradientOffset:B,gradientAngle:p,backgroundColor:b}=e;if(f){let x=S;return m&&(x="transparent"),x?{background:`linear-gradient(${p}, ${b}, ${x} ${B*100}%)`}:{}}else return{}}),a=n.computed(()=>{const{events:m}=e;let f={};return m!=null&&m.length&&m.find(B=>B.emit==="showModal")&&(f={cursor:"pointer"}),f}),{theme:r}=n.inject(ze,{theme:"light"}),i=n.computed(()=>{let m="";switch(e.titleMode){case"type-2":m="2";break}return m}),s=n.computed(()=>new URL(Object.assign({"../../assets/border-title-decoration-left.png":tf,"../../assets/border-title-decoration-left2.png":nf})[`../../assets/border-title-decoration-left${i.value}.png`],self.location).href),l=n.computed(()=>new URL(Object.assign({"../../assets/border-title-decoration-right.png":of,"../../assets/border-title-decoration-right2.png":af})[`../../assets/border-title-decoration-right${i.value}.png`],self.location).href),d=n.computed(()=>({width:"100%",height:"100%"})),c=n.computed(()=>{const{borderRadius:m}=e,f=[],S={};if(m){const B=m.split(",");for(const p of B)(+p||+p==0)&&f.push(+p+"px")}return f!=null&&f.length&&(S.borderRadius=f.join(" ")),S}),h=Ee(e)("click",()=>{}),y=n.ref([]);n.watch(()=>e.data,m=>{y.value=m},{immediate:!0,deep:!0}),Le(e,{click:h});const{setGlobalModel:u}=n.inject(Be,{setGlobalModel:(m,f)=>{}});return u(e.id,{type:e.type,value:y}),{style:o,gradientStyle:t,click:h,borderStyle:d,theme:r,borderRadiusStyle:c,titleLeftIcon:s,titleRightIcon:l,cursorStyle:a}}}),k1="",Tt=e=>(n.pushScopeId("data-v-8dd53b8f"),e=e(),n.popScopeId(),e),lf=["id"],sf=Tt(()=>n.createElementVNode("div",{class:"top-left border-item"},null,-1)),cf=Tt(()=>n.createElementVNode("div",{class:"top-right border-item"},null,-1)),df=Tt(()=>n.createElementVNode("div",{class:"bottom-left border-item"},null,-1)),ff=Tt(()=>n.createElementVNode("div",{class:"bottom-right border-item"},null,-1)),uf={class:"title-item"},hf=["src"],gf={class:"title"},mf=["src"],yf=Tt(()=>n.createElementVNode("div",{class:"top-left border-item"},null,-1)),xf=Tt(()=>n.createElementVNode("div",{class:"top-right border-item"},null,-1)),pf=Tt(()=>n.createElementVNode("div",{class:"bottom-left border-item"},null,-1)),bf=Tt(()=>n.createElementVNode("div",{class:"bottom-right border-item"},null,-1)),vf={key:2,class:"left-title"},Sf={class:"title"};function Cf(e,o,t,a,r,i){return n.openBlock(),n.createElementBlock("div",{class:"ecan-border",style:n.normalizeStyle({...e.style,...e.gradientStyle,...e.borderRadiusStyle,...e.cursorStyle}),onClick:o[0]||(o[0]=(...s)=>e.click&&e.click(...s)),id:"container_"+e.id},[e.mode==="no-title"?(n.openBlock(),n.createElementBlock("div",{key:0,class:"no-title",style:n.normalizeStyle(e.borderStyle)},[e.useBorderModify?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[sf,cf,df,ff],64)):n.createCommentVNode("",!0)],4)):n.createCommentVNode("",!0),e.mode==="top-title"?(n.openBlock(),n.createElementBlock("div",{key:1,class:"top-title",style:n.normalizeStyle(e.borderStyle)},[n.createElementVNode("div",{class:n.normalizeClass(["title-item-wrapper",e.titleMode])},[n.createElementVNode("div",uf,[n.createElementVNode("img",{class:n.normalizeClass(["title-decoration",e.titleMode]),src:e.titleLeftIcon},null,10,hf),n.createElementVNode("div",gf,n.toDisplayString(e.title),1),n.createElementVNode("img",{class:n.normalizeClass(["title-decoration",e.titleMode]),src:e.titleRightIcon},null,10,mf)])],2),yf,xf,pf,bf],4)):n.createCommentVNode("",!0),e.mode==="left-title"?(n.openBlock(),n.createElementBlock("div",vf,[n.createElementVNode("div",Sf,[n.createElementVNode("span",null,n.toDisplayString(e.title),1)])])):n.createCommentVNode("",!0)],12,lf)}const ml=pe(ye(rf,[["render",Cf],["__scopeId","data-v-8dd53b8f"]])),Aa={...ke,tabHorizontalPadding:"0px",type:"ecanTabs",name:"标签页",keyName:"标签页",width:"500px",height:"400px",tabFontSize:"14px",backgroundColor:"#ffffff",activeTabColor:"#1890ff",tabBackgroundImage:"",activeTabBackgroundImage:"",tabColor:"#333",tabBarGutter:"24px",tabFontWeight:400,value:"",activeKey:0,autoSwitch:!1,autoSwitchInterval:5,containIds:[],tabFlexDirection:"row",data:[{title:"标签1"},{title:"标签2"},{title:"标签3"}],tabAlignItems:"flex-start",tabJustifyContent:"flex-start",tabType:"tabs",tabWidth:"120px",isAutoScroll:!1,scrollSpeed:.3},ka=Se(Aa),yl=["tabChange"],wf=n.defineComponent({name:"EcanTabs",props:{...ka},components:{ASelect:ce.Select,ASelectOption:ce.SelectOption},setup(e){const o=Ce(e),t=n.ref(0);n.watch(()=>e.activeKey,u=>{t.value=u},{immediate:!0});const{pageMode:a}=n.inject(ze,{pageMode:"normal"});let r=null;const i=()=>{const u=Array.isArray(n.unref(s))?n.unref(s).length-1:0;e.autoSwitch&&u>0&&(r=setInterval(()=>{const m=n.unref(t)+1;m<=u?t.value=m:t.value=0,l.value=n.unref(s)[n.unref(t)],h()},e.autoSwitchInterval*1e3))};n.onMounted(()=>{n.unref(a)!=="design"&&i()}),n.onBeforeUnmount(()=>{clearInterval(r)});const s=n.ref([]),l=n.ref({});n.watch(()=>e.data,u=>{s.value=u,l.value=Array.isArray(u)&&u.length>0?u[0]:{}},{immediate:!0,deep:!0});const d=u=>t.value===u,c=Ee(e),{setGlobalModel:g}=n.inject(Be,{setGlobalModel:(u,m)=>{}});g(e.id,{value:l,activeKey:t});const{emitRefreshPage:h}=n.inject(Jt,{emitRefreshPage:()=>{}}),y=(u,m)=>{c("tabChange",()=>{m!==n.unref(t)&&(l.value=u,t.value=m,h())})()};return Le(e,{tabChange:y}),{style:o,activeKey:t,isActive:d,tabChange:y,myData:s,useImagePath:At}}}),B1="",Af=["id"],kf=["onClick"];function Tf(e,o,t,a,r,i){const s=n.resolveComponent("a-select-option"),l=n.resolveComponent("a-select");return n.openBlock(),n.createElementBlock("div",{class:"ecan-tabs",style:n.normalizeStyle(e.style),id:"container_"+e.id},[n.createElementVNode("div",{class:"tabs-header",style:n.normalizeStyle({fontSize:e.tabFontSize,alignItems:e.tabAlignItems,justifyContent:e.tabJustifyContent,flexDirection:e.tabFlexDirection})},[e.tabType==="tabs"?(n.openBlock(!0),n.createElementBlock(n.Fragment,{key:0},n.renderList(e.myData,(d,c)=>(n.openBlock(),n.createElementBlock("div",{class:"tab",style:n.normalizeStyle({padding:`5px ${e.tabHorizontalPadding}`,color:e.isActive(c)?e.activeTabColor:e.tabColor,backgroundImage:e.isActive(c)?e.useImagePath(e.activeTabBackgroundImage,!0):e.useImagePath(e.tabBackgroundImage,!0),marginRight:e.tabFlexDirection==="row"?e.tabBarGutter:null,marginBottom:e.tabFlexDirection==="column"?e.tabBarGutter:null,fontWeight:e.tabFontWeight}),key:c,onClick:n.withModifiers(g=>e.tabChange(d,c),["prevent","stop"])},[n.createElementVNode("div",{class:"tab-inner",style:n.normalizeStyle({borderBottom:!e.activeTabBackgroundImage&&!e.tabBackgroundImage?`1px solid ${e.isActive(c)?e.activeTabColor:"transparent"}`:""})},n.toDisplayString(d.title),5)],12,kf))),128)):e.tabType==="select"?(n.openBlock(),n.createBlock(l,{key:1,value:e.activeKey,style:n.normalizeStyle({width:e.tabWidth})},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.myData,(d,c)=>(n.openBlock(),n.createBlock(s,{key:c,value:c,onClick:g=>e.tabChange(d,c)},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(d.title),1)]),_:2},1032,["value","onClick"]))),128))]),_:1},8,["value","style"])):n.createCommentVNode("",!0)],4)],12,Af)}const xl=pe(ye(wf,[["render",Tf],["__scopeId","data-v-a38862ae"]])),Ta={...ke,name:"图片",keyName:"图片",type:"ecanImage",width:"300px",height:"300px",imgUrl:"",target:"self",href:"",linkPage:"",data:{},isHoverStyle:!1},Ba=Se(Ta),pl=["click"],Ea=n.defineComponent({name:"EcanImage",props:{...Ba},setup(e){const o=Ce(e),t=n.computed(()=>At(e.imgUrl)),{pageMode:a}=n.inject(ze,{pageMode:"normal"}),{getGlobalModel:r,setGlobalModel:i}=n.inject(Be,{getGlobalModel:d=>{},setGlobalModel:(d,c)=>{}}),l=Ee(e)("click",()=>{const d=r(e.id);if(i(e.id,{...d,type:e.type,RECORD:e.data||{}}),setTimeout(()=>{i(e.id,{...d,type:e.type,RECORD:{}})},0),!e.linkPage&&!e.href)return;const c=e.linkPage||"",g=mi(n.unref(a),c),h=e.href;let y=h||g;y=De(y);const u=e.target;u&&(u!=="event"?window.open(y,"_"+u):window.parent.postMessage({type:"openPage",url:h},"*"))});return Le(e,{click:l}),{style:o,myImgUrl:t,onClick:l}}}),bl=()=>{n.useCssVars(e=>({"102827c2":e.isHoverStyle?"pointer":"auto","5de838e7":e.isHoverStyle?"0.6":"1"}))},vl=Ea.setup;Ea.setup=vl?(e,o)=>(bl(),vl(e,o)):bl;const D1="",Bf=["src"];function Ef(e,o,t,a,r,i){return e.myImgUrl!==""?(n.openBlock(),n.createElementBlock("img",{key:0,class:"ecan-image",style:n.normalizeStyle(e.style),src:e.myImgUrl,onClick:o[0]||(o[0]=(...s)=>e.onClick&&e.onClick(...s))},null,12,Bf)):(n.openBlock(),n.createElementBlock("div",{key:1,class:"image-placeholder",style:n.normalizeStyle(e.style)}," 请上传图片 ",4))}const Sl=pe(ye(Ea,[["render",Ef],["__scopeId","data-v-47ea6e7c"]])),Da={...ke,name:"网页",keyName:"网页",type:"ecanIframe",width:"300px",height:"300px",link:"",linkType:"web"},Ra=Se(Da),Df=n.defineComponent({name:"EcanIframe",props:{...Ra},setup(e){const o=Ce(e),{contextRequestUrl:t}=n.inject(ze,{contextRequestUrl:""}),a=n.computed(()=>{let r=De(e.link);if(e.linkType==="erd"&&r!=null){let i=n.unref(t);i[i.length-1]==="/"?i+="erdReport":i+="/erdReport",r=`${is||i}?_t=0&uid=${r}`}return r});return{style:o,myLink:a}}}),I1="",Rf=["src"];function If(e,o,t,a,r,i){return e.myLink?(n.openBlock(),n.createElementBlock("iframe",{key:0,src:e.myLink,style:n.normalizeStyle(e.style)},null,12,Rf)):(n.openBlock(),n.createElementBlock("div",{key:1,class:"iframe-placeholder",style:n.normalizeStyle(e.style)}," 请填写网页链接 ",4))}const Cl=pe(ye(Df,[["render",If],["__scopeId","data-v-19bc100c"]])),Ia={...ke,zIndex:2,name:"表格",keyName:"表格",type:"ecanTable",width:"400px",height:"240px",bordered:!1,headerFontSize:"14px",headerFontColor:"",fontSize:"14px",isUseSeq:!1,size:"default",headerFontWeight:400,isUseExport:!1,fontWeight:400,columnsFixedNum:0,scrollX:0,paginationShow:!0,isReverse:!1,simple:!1,pageSizeShow:!1,cellBackgroundColor:"",cellFontColor:"",headerBackgroundColor:"",borderColor:"",paginationPosition:"bottomRight",paginationPageSize:10,isUseAction:!1,clickHighlight:!1,filterDropdownHeight:"200px",actionList:[{title:"",href:"",target:"",color:""}],actionColumnWidth:100,columns:[{title:"姓名",dataIndex:"name"},{title:"年龄",dataIndex:"age"},{title:"住址",dataIndex:"address"}],data:[{name:"小明",age:32,address:"福州软件园"},{name:"小红",age:25,address:"福州软件园"}],graphicConfig:{},stripedShow:!1,stripedColor:"#fafafa",isGroupTable:!0,seqWidth:"10%",seqName:"序号",seqIcon:!1,isSummaryFixed:!1,isPageBottom:!1,isShowTotal:!1,hideTableHeader:!1,paginationColor:"",paginationBgColor:"",activePaginationColor:"",activePaginationBgColor:"",hoverBackgroundColor:"",subTotalColumn:"",subTotalName:"小计",isSortByFront:!1},_a=Se(Ia),wl=["click","refreshData","resetRecord","exportTableData"],_f="data:image/png;base64,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",Of="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAA4CAYAAACohjseAAAAAXNSR0IArs4c6QAABQFJREFUaEPtWt1v21QUv9eJ80FbWmV0adel7ZqyLenSgVYJaQghHhBIICEhoWkvSGgCiQ+JdWMCISEVxAPSoEWT+AN4QTzxzl/Ah8SAQtJ23dKvreuydl3TrIsd23e6xz63LovqeE2BePaLT06ur33O7+dzj8+5lPyHh5I7f4TfPpT6IIuPQSll9XwkWs/J3M7lGQOV7JdpYTxjX206gr4IMiM/CwQDdBhQTZ8VOreOs4//VxD0DWwkBO/kxjqRIkFDHwWZktdQZ2h6AOXlpUUQY3s7BKuCsoxB5ltUalLgYy43pYevu6Vr3SnqKQNZ9ptm9KjK7n5iye/bAkqYyzeuLQjV3OVJIavlMshyKCR03f2HQe5I9AgdpbRkBiP6BSpD6xTYQY+fubsdqjtC0DeQscZBkLERCamgZFveNmMH+9xGjzYu3165KVSzUzmQS8U1t7GBNLU8Kq7pS0HCQ1pjj9nmofPmD/aRoO3A2e/huWzZUM0U9ayB5exoP3iFGT/a3NfH5Y3SulDNTJrp5OpywTVatV6wJy5WIHLgkJkcRR5p2rzcWk8NSTuBSkcEfQMtVzUEgowxQFTLnj+OEBtEeteST6Lu2swVEGcvmUEEXnVW168cR9ZSyYx5vQdTYmxXbxKf5eWqFPWkgSw7GkNrVWa8A2gQkkCdrigQm4Ph8Kuom7j4K4grhSVHT+/2gFh7XNwifeyp+xH0vIEYJU3TjXP8VFiYLaJbSsViK5eTA4Nvoi732y8g3rp5Y7cBcpzfEUHfQC8iOD3+u0goJUlq5zzpP3L0Lc9Q1PMGTv55USSUciCwt9EQlCh5Riz01YKMb+D/fJlwhWA4JHdxuPtSmTcaJcj4BtrfwWg00m1m7enXPYmgb6Bjtri7A6rlolveQeWvMfHFyKh+mj+OpyjqfQPHRzNIIiYZ79WCYH7ib7hkcS6/u/yrYfZ9PVDggwPrp1sp6ht4/zLhKQRZRYUO0qEnhk4hFQLBYAuX7UVeLBvai8E1MMzVEHuRFwu/9mIwLzLAhAZ5WiTbigNFPWng/KWJVfTAfP4y1GfC4bBo4iUHBp/lulh7XHiKt/m4bmlhTqAyb/UCK6rqCik+2N4zTCQPwvWdiV4xD5WkCv9BGbmASlkLQDOIPjl8e1sEPWXglpYz02ELB2MEKmn8KK2uQBv2ymTW5DchZH1tDbzX0toGLTN+9KcyL/Bzc1ubWHYqqgqVckTynwhjNRyr1Pz/fd0HYD5EjctBGcjB+3VTeD9JZ/B1Iw+e+wl11c7UN7DREbTDyqYvQMtZVRVzBxK8xPR5fjYYC6Ju+fpV2BQwO5UTrduyoupcF+/aL8r+3Y8ffonrIpGo0NmXkYK1OaHToiUfG45GLTYSUVVmViAJKaWvxXMNjWxsR00x7qEysJpHsHdRYYZovhiMDfGxuq6JntnV/DSE5sWZvLnlA9ZbA87JVOYY6uL7e4ER/JAkam5DoUQwgRH2HVdphvwpjmvOnH7gHoFjh9c30HJzwyJYjbbl8TH4RqGSJvagMUJBp2zcgTWSH4VFMxh1JHogd+VHKBQxowhMQCGoMV37DFWRox+Kta7avd3qHCn6UBqIRmPLG4KC1dc3qPTK5v9mRkQJEa0ASukP+L+cPvOHCWR9tzHbQXkgBH0DLQ9gTtuwCFZ7PzEb4v9Vyhok3vJyEagIdHxuRHMbKHYyfkcUbQQD7wHq9EAq9LeVYwAAAABJRU5ErkJggg==",Lf="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAA4CAYAAACohjseAAAAAXNSR0IArs4c6QAABMJJREFUaEPtWl1sFFUUPndmlm1LdW1XoGxly7qFYqmIBkxEJDTRRI3RxNhgpDzpkwixJCaEJx588MHQCPrgGwT8SSD4Zkx84DfGEEjU2KpAS6ktZVsKpF0K3Z+55p4798ysGdju0A3Mdu5De/bcn7nnfN/ce+ecy+ABli1fHGsTjz+4fWMPTYMxPptTYrM5WKljBQaW6jGX9mVF8N19p2PimYxBnXq2ZpqfK5kDvCpl/qvSMdC7hPzN9vWkux87AwNn6r3O7pOLRVtT5+/bfVinJS9TOjNvakoeG0mhGF20gLoYIUMtMgcI9TzsEvKhrg0jM52PzYhSe9ylfWCg5RhfINjx9c8RMd/QnapN9v7FP7Dk1aTjPCTk1LDNrIHzfVSduTONcmgeNsPStCyJ/xvijfbQjKXFD87ZZ0qZy+t7hHx4x7rb9yKhp0Wmogx8be+PYeGhCNS+TC89AC7lAPCCw3s1Qr557TqpLv19AeX0xOS9nOxaN/+RWtInW1tQjkRptxE/BxFVYDtVw++2rf8eZcdpqCiCgYG2/32AIOeI6OYvT62jeXO2RVKBv+PgUlTIU+lbpOr/6zzKN8bGS6bjTDtEGxZS08SKZpSra9CvVpEnIt3UaPErpGglGtix55d6ZX/IyH4oX1JYonSZ25kGIc+rCr+pdEP9l1Ec+Oei7Ts+q185RUFlmjwQJVokkqI0JuL43wR4Q+lYYKDfEez86hhhbJraJwLaoT7cYrCkJyaRoitWtxFFe8/9jnXjqbGiVCp3g/qFj9MjVq6Rh6gCis5JA3vP/kFe0TQmEXx2FSHYc/Y3rL8+eq3cABUd3xOCgYF+R7DnjE1R3ahAigYGPuQU5SZ7iU4ybtuE3xEMDHQiGAqHnhBwL1/V+rqC/WHfB0tCMDCw6FmjvA3cTjIFCG7qPvGUmoJuwMdCdlI0XF2FH1nNbS1WHgHAVxSteAM37zvxtEKQA3xUcQgGBvr9HfSCYH+vDBEOD9hf/uVdK+8+emwpxcdARcALVtE5aeClP+1w4GR64jHhv9bnnqFQnBEyMNrqDPKqwK8zGDzbqDqDvCrw6wwGiyCDeCZn+RfpsO2GYGCgnxBUqWeEVpdpMc44JjiRhqMyHfbvxT7KUjbE4xifWxBbRHsoABhCd3VwmJh5+YJMdmYz2ZLZ6kyKLmlOYP9YHM/9WJim4aAc2F6lC+dznwp5f1f7TWpX8QY6XatygXW8ls6dwNgroo3JTUIwNXgFu42OjFCWcuny5PNCF6mvo0CyQk4h+X+EuZXPUHkGUd/YJJd9hZqQHTcvjqj5anpe3rzY2m6viC48KcguBQZaHvItgm4rgco+GXrubaIHY2uEnMlMEwMGrAUlP52jLGVTSxITqdXza0jn3CdTQ5LqMYuWQg5XV6nHnKOFAjT8CPByvatojr7iDXRD9b3uU0+iXocOqmcm6qYmpkiVuiIRakom5DUJANAMY61jTJV/lhlVLHyH+Pvttg0/2GN7v0NaFMHAQHpRKghBm03yVoYodDODw1tENnUi4too+YHxn6jelHcBsjeiR5Xu8O6VGTfWeNV5oujcMdDFreqwIKoi7FE8q14dz8qMKQAc392e84qGl373h2Bg4INH8D9A563p5gHY1gAAAABJRU5ErkJggg==",Oa=n.defineComponent({name:"EcanTable",components:{Skeleton:ln,AButton:ce.Button,AInput:ce.Input,ACheckboxGroup:ce.CheckboxGroup,ATable:ce.Table,ATableSummary:ce.TableSummary,ATableSummaryRow:ce.TableSummaryRow,ATableSummaryCell:ce.TableSummaryCell},props:{..._a},setup(e,{expose:o}){const t=n.ref(!1),a=n.computed(()=>{const V=Ve.cloneDeep(e.columns);return e.isUseSeq&&V.unshift({title:e.seqName,dataIndex:"SEQ",align:"center",width:e.seqWidth}),e.isUseAction&&V.push({title:"操作",dataIndex:"ACTION",width:e.actionColumnWidth}),V}),r=n.ref(),i=n.ref(!1),s=Ce(e),l=n.ref([]),d=n.computed(()=>e.scrollX),c=n.ref(0),g=()=>{let V=0;switch(e.size){case"small":V=50;break;case"middle":V=53;break;default:V=65;break}return V};n.watchEffect(()=>{var V;(V=l.value)!=null&&V.length&&e.height&&n.nextTick(()=>{let Z=parseFloat(e.height);const J=document.querySelector(`#ecanTable-${e.id} .ant-table-tbody`),oe=document.querySelector(`#ecanTable-${e.id} thead.ant-table-thead`),ie=document.querySelector(`#ecanTable-${e.id} .ant-table-summary`);let te=0;if(oe&&(Z-=(oe==null?void 0:oe.clientHeight)||0),ie&&e.isSummaryFixed&&(te=(ie==null?void 0:ie.clientHeight)||0,Z-=te),e.paginationShow){let ee=0;ee=g(),ee&&(Z-=ee)}(J==null?void 0:J.clientHeight)>Z?c.value=Z:c.value=0,n.nextTick(()=>{if(te){const ee=document.querySelector(`#ecanTable-${e.id} .ant-table-summary`),fe=(ee==null?void 0:ee.clientHeight)||0;te!==fe&&n.unref(c)&&(c.value=Z+te-fe)}})})});const h=n.ref([]),y=n.ref([]),u=n.ref([]),m=n.ref([]),f=n.ref(0),S=n.ref(1),B=n.ref(e.paginationPageSize||10),p=n.reactive([]),b=(V=[])=>{var Z,J;if(Array.isArray(V)&&V.length>0){let oe=V.length;const ie=e.columnsFixedNum;if(e.dataType==="indicator"&&((Z=n.unref(a))!=null&&Z.length)){const{graphicConfig:{indicators:te=[]}}=e;V.forEach((ee,fe)=>{if(n.unref(a)[fe])for(const Oe in n.unref(a)[fe])["dataIndex","title"].includes(Oe)||(ee[Oe]=n.unref(a)[fe][Oe]);const he=te.find(Oe=>Oe.label===ee.title),{showLabel:ge=""}=he||{};ge&&(ee.title=ge)})}for(let te=oe-1;te>=0;te--)(J=V[te])!=null&&J.isHidden&&V.splice(te,1);oe=V.length;for(let te=0;te<oe;te++){const ee=V[te];if(te<ie?ee.fixed="left":ee.fixed=!1,e.isSortByFront&&ee.sorter){const Ke=ee.dataIndex;ee.sorter=(_t,$t)=>_t[Ke]-$t[Ke]}const{cellAlign:fe="center",cellColor:he,dataIndex:ge,title:Oe,tableFilter:Ye,headerCellAlign:yt,headerCellColor:It,overflow:Sn}=ee;Ye&&(p.push(ge),ee.filterOptionsInputValue="",ee.filterCheckboxGroupValue=[],ee.customFilterDropdown=!0,ee.onFilter=(Ke,_t)=>_t[ge].toString().toLowerCase().includes(Ke.toLowerCase())),ee.customHeaderCell=()=>({style:{display:"table-cell",verticalAlign:"middle",fontSize:e.headerFontSize,fontWeight:e.headerFontWeight,textAlign:yt||"center",color:It||e.headerFontColor,borderBottomColor:e.borderColor,backgroundColor:e.headerBackgroundColor}}),ee.customCell=(Ke,_t)=>({style:{textAlign:fe,color:he||e.cellFontColor,backgroundColor:e.cellBackgroundColor,borderBottomColor:e.borderColor},class:{highlight:n.unref(H)===_t&&e.clickHighlight},onClick:$("click",()=>{const $t=e.id,Cn=F($t);Ke={dataIndex:ge,title:Oe,...Ke},P($t,{...Cn,type:e.type,RECORD:Ke})})}),Sn==="ellipsis"?ee.ellipsis=!0:ee.ellipsis=!1,Array.isArray(ee.children)&&b(ee.children)}}},x=(V=[])=>{var J;let Z=Ve.cloneDeep(V);return(J=n.unref(m))!=null&&J.length&&(Z=Ve.cloneDeep(n.unref(m))),e.isUseSeq&&Z.unshift({title:e.seqName,dataIndex:"SEQ",align:"center",width:e.seqWidth}),e.isUseAction&&Z.push({title:"操作",dataIndex:"ACTION",width:e.actionColumnWidth}),b(Z),Z};n.watch(B,()=>{S.value=1,Q(!1)}),n.watch(r,V=>{i.value=!!V}),n.watch(()=>[e.columns,e.isUseSeq,e.seqWidth,e.seqName,e.seqIcon,e.isUseAction,e.columnsFixedNum,e.actionColumnWidth,e.cellBackgroundColor,e.headerBackgroundColor,e.borderColor,e.stripedColor],()=>{h.value=x(Ve.cloneDeep(e.columns))},{immediate:!0,deep:!0}),n.watch(()=>[e.data,e.dataType],([V,Z])=>{Z==="static"&&(y.value=V)},{immediate:!0});const A=n.ref({}),k=V=>{if(Array.isArray(V)){const Z=V.length,J=p,oe=J.length,ie={};for(let ee=0;ee<Z;ee++){const fe=V[ee];for(let he=0;he<oe;he++){const ge=J[he];if(ie[ge])ie[ge].add(fe[ge]);else{const Oe=new Set;Oe.add(fe[ge]),ie[ge]=Oe}}}const te={};for(const ee in ie)if(Object.prototype.hasOwnProperty.call(ie,ee)){const fe=ie[ee],he=Array.from(fe);te[ee]=he.map(ge=>({label:ge,value:ge}))}A.value=te}};n.watch(()=>[e.isReverse,h.value,y.value],()=>{const V=n.unref(h),Z=n.unref(y);if(k(Z),e.isReverse){const{columns:J,dataSource:oe}=D(Ve.cloneDeep(V),Ve.cloneDeep(Z));u.value=J,l.value=oe}else u.value=V,l.value=Z},{immediate:!0});const D=(V,Z)=>{const J=V[0],oe=[{title:J.title,dataIndex:"col0",key:"col0",align:"center"}];for(let te=0;te<Z.length;te++){const ee=Z[te],fe="col"+(te+1);oe.push({title:ee[J.dataIndex],dataIndex:fe,key:fe,align:"center"})}const ie=[];for(let te=1;te<V.length;te++){const ee=V[te],fe={col0:ee.title};for(let he=0;he<Z.length;he++){const ge=Z[he];fe[`col${he+1}`]=ge[ee.dataIndex]}ie.push(fe)}return{columns:oe,dataSource:ie}},O=n.ref(""),N=je(e),C=async(V=!0,Z={})=>{var J;try{V&&(t.value=!0),n.unref(O)&&(Z.orderCondition=n.unref(O)),e.paginationShow&&(Z={pageNum:n.unref(S),pageSize:n.unref(B)||"10",layer:"1",...Z});const oe=await N(Z),{rows:ie=[],total:te=0}=((J=oe==null?void 0:oe.data)==null?void 0:J.data)||{};if(f.value=te,Array.isArray(ie)&&(y.value=ie),window.config.routerBaseURL.includes("1523545080925487106")){const{requestParams:ee=[]}=e,fe=ee.find(he=>he.key==="dataSqlId");if((fe==null?void 0:fe.value)==="xt_jxzebg"){const he=ie.filter(ge=>!ge.绩效总额).map(ge=>ge.ORG_NAME);he!=null&&he.length&&n.nextTick(()=>{ce.notification.warning({message:"提示",description:`当前时段${he.join("、")}绩效数据为空`,duration:3})})}}}catch(oe){console.error(oe)}finally{t.value=!1}},T=({current:V},Z,J)=>{if(S.value=V,J&&Object.keys(J).length>0){const{field:oe,order:ie}=J,ee={ascend:"asc",descend:"desc"}[ie];oe!=null&&ee!=null&&ee?O.value=oe+" "+ee:ee||(O.value="")}e.isSortByFront||Q(!1)},R=n.computed(()=>{const V=e.simple,Z=[e.paginationPosition],J={};return e.isShowTotal&&(J.showTotal=oe=>`共 ${oe} 条数据`),e.paginationShow&&{simple:V,position:Z,total:n.unref(f),current:n.unref(S),pageSize:n.unref(B)||"10",showSizeChanger:!1,size:"large",...J}}),v=V=>+V==1?"是":+V==0?"否":V,E=(V,Z)=>{const{format:J,retentiondigit:oe,customFormatter:ie}=Z;if(J==null||J==="")return V;const te={money:Eo,percentage:pn,contrast:pn,boolean:v,decimals:gc,custom:gi};return te[J]?J==="decimals"?te[J](V,oe)||"":J==="custom"?te[J](V,ie)||"":te[J](V)||"":""},w=V=>V==="contrast"?"upDown":"",_=V=>{const{text:Z,format:J,declineColor:oe="#39cf93",increaseColor:ie="#ff512e"}=V;if(J==="contrast"){const te={fontSize:e.fontSize},ee=parseFloat(Z+"");return ee>=0?te.color=ie:ee<0&&(te.color=oe),te}else return{}},z=n.computed(()=>{const{fontSize:V}=e;return{width:V,height:V,textIndent:`-${parseFloat(V)*2}px`,overflow:"hidden"}}),q=V=>{const{text:Z,declineColor:J="#39cf93",increaseColor:oe="#ff512e"}=V,{fontSize:ie}=e,te=parseFloat(Z+""),ee={width:ie,verticalAlign:"unset"};return te>=0?ee.filter=`drop-shadow(${oe||"#ff512e"} ${ie} -1px)`:te<0&&(ee.filter=`drop-shadow(${J||"#39cf93"} ${ie} -1px)`),ee},W=V=>{const Z=parseFloat(V+"");if(Z>=0)return Oo;if(Z<0)return Lo},$=Ee(e),{getGlobalModel:F,setGlobalModel:P}=n.inject(Be,{getGlobalModel:V=>{},setGlobalModel:(V,Z)=>{}});P(e.id,{type:e.type,RECORD:""});const M=(V=[],Z=[])=>{const J=V.map(oe=>({title:oe,dataIndex:oe,key:oe}));m.value=Ve.cloneDeep(J),h.value=x(J),y.value=Z},I=lt(e),L=async(V=!0)=>{var Z,J,oe,ie;try{V&&(t.value=!0);const te=n.unref(O).split(" "),ee={};e.isSortByFront||(ee.sort={order:te[1],field:te[0]});const fe=await I(ee);M((J=(Z=fe==null?void 0:fe.data)==null?void 0:Z.data)==null?void 0:J.columns,(ie=(oe=fe==null?void 0:fe.data)==null?void 0:oe.data)==null?void 0:ie.rows)}catch(te){console.error(te)}finally{t.value=!1}},H=n.ref(-1),Y=(V,Z)=>({onClick:$("rowClick",()=>{const J=e.id,oe=F(J);P(J,{...oe,type:e.type,RECORD:V}),H.value=Z})}),{loadedData:U}=n.inject(bt,{loadedData:{}}),ae=n.ref(!1);n.watch(U,V=>{if(e.dataType==="indicator"){const Z=en(e.graphicConfig);Z!=null&&Z.length&&(!n.unref(ae)&&rt(e.graphicConfig,V)?(ae.value=!0,Q()):rt(e.graphicConfig,V)||(ae.value=!1))}},{deep:!0});const Q=(V=!0)=>{switch(e.dataType){case"request":C(V);break;case"indicator":rt(e.graphicConfig,n.unref(U))&&L(V);break}},le=()=>{const V=e.id,Z=F(V);P(V,{...Z,type:e.type,RECORD:""})},re=n.computed(()=>{const V=n.unref(u);let Z=0;const{subTotalColumn:J,subTotalName:oe}=e;J&&(Z=V.findIndex(he=>he.dataIndex===J),Z<0&&(Z=0));const ie=[];let te=0;for(let he=0;he<V.length;he++){const ge=V[he],{isCalcTotal:Oe}=ge;he===Z?ie.push({...ge,total:oe}):Oe?(ie.push({...ge,index:he,total:0}),te++):ie.push({...ge})}if(te===0)return[];const ee=n.unref(l),fe=K(ie);for(let he=0;he<fe.length;he++){const ge=fe[he];let Oe=0;const{isCalcTotal:Ye,dataIndex:yt}=ge;if(Ye===!0){for(let It=0;It<ee.length;It++){const Ke=+ee[It][yt];isNaN(Ke)||(Oe=new Pl.Big(Oe).add(Ke).toNumber())}ge.total=Oe}}return fe});function K(V){var J;const Z=[];for(const oe of V)(J=oe.children)!=null&&J.length?Z.push(...K(oe.children)):Z.push(oe);return Z}const{setRequest:X}=n.inject(Me,{setRequest:V=>{}});typeof X=="function"&&X({id:e.id,requestFn:Q,sortNum:e.requestSort}),o({refreshData:Q});const ne=(V="",Z)=>De(V,Z),xe=V=>{if(V!=="event")return{self:"_self",blank:"_blank"}[V]},we=(V,Z="")=>{V==="event"&&window.parent.postMessage({type:"openPage",url:Z},"*")},Te=(V,Z)=>{V(Z.filterCheckboxGroupValue)},$e=(V,Z)=>{V({confirm:!0}),Z.filterOptionsInputValue="",Z.filterCheckboxGroupValue=[]},Fe=()=>{},Ie=V=>{const Z=V.dataIndex;if(typeof Z=="string"){let J=n.unref(A)[Z];const oe=n.unref(V.filterOptionsInputValue).trim();return Array.isArray(J)?(J=J.filter(ie=>typeof ie.label=="string"?ie.label.toLowerCase().includes(oe.toLowerCase()):!0),J):[]}return[]},Ae=async()=>{var ge,Oe;const V="EXPORT_KEY";ce.message.loading({key:V,content:"正在导出...",duration:0});let Z=[];if(e.dataType==="static")Z=e.data;else if(e.dataType==="request"){const Ye={layer:"1"};n.unref(O)&&(Ye.orderCondition=n.unref(O));const yt=await N(Ye);Z=((Oe=(ge=yt==null?void 0:yt.data)==null?void 0:ge.data)==null?void 0:Oe.rows)||{}}const J=n.unref(u),oe=[],ie=[];J==null||J.forEach(Ye=>{oe.push(Ye.dataIndex),ie.push(Ye.title)});const te=Z.map(Ye=>Ve.pick(Ye,oe)),ee=Zt.utils.book_new(),fe=Zt.utils.aoa_to_sheet([ie]),he=Zt.utils.sheet_add_json(fe,te,{skipHeader:!0,origin:"A2"});Zt.utils.book_append_sheet(ee,he,"sheet"),Zt.writeFile(ee,"表格数据.xlsx"),ce.message.success({key:V,content:"导出成功"})},qe=(V,Z=2)=>{const J=+V*100;return isNaN(J)||J<=0?0:J>=100?100:J.toFixed(Z)};Le(e,{resetRecord:le,refreshData:Q,exportTableData:Ae});const Ne=(V,Z)=>{let J=null;return e.stripedShow&&(J=Z%2===1?"table-striped":null),J},Ze=n.computed(()=>{let V=0;const{height:Z,isPageBottom:J}=e;return J&&Z&&(V=parseFloat(Z)-g()),V?V+"px":"100%"}),We=n.computed(()=>{let V="#071655";return e.headerBackgroundColor&&(V="transparent"),V}),He=n.computed(()=>{let V="#071655";return(e.cellBackgroundColor||e.stripedShow&&e.stripedColor)&&(V="transparent"),V}),ut=n.computed(()=>parseFloat(e.fontSize)+16),et=n.computed(()=>{let V="";const{paginationColor:Z,paginationBgColor:J,activePaginationColor:oe,activePaginationBgColor:ie,hoverBackgroundColor:te}=e;return Z&&(V+="p-color "),J&&(V+="p-bg-color "),oe&&(V+="active-p-color "),ie&&(V+="active-p-bg-color "),te&&(V+="hover-bg-color "),V});return{x:d,y:c,style:s,customRow:Y,pagination:R,formatFn:E,contrastClass:w,tableChange:T,summaryList:re,loading:t,onTouchHrefEvent:we,handleHref:ne,handleHrefTarget:xe,useRowIndex:H,tableColumns:u,tableDataSource:l,useFilterOptions:Ie,useSetSelectedKeys:Te,onResetFilter:$e,onSearchFilterOptions:Fe,exportTableData:Ae,handleProgressText:qe,pageSizeVisible:i,pageSize:B,tableRef:r,rowClassName:Ne,tableHeight:Ze,tableHeaderBgColor:We,tableBodyBgColor:He,getChgStyle:_,chgBoxStyle:z,getChgBoxImgStyle:q,getChgBoxImgSrc:W,seqIcon1:_f,seqIcon2:Of,seqIcon3:Lf,iconSize:ut,containerClass:et,getCellStyle:V=>{const{overflow:Z}=V;if(Z==="ellipsis")return{overflow:"hidden",textOverflow:"ellipsis"};if(Z==="wrap")return{}}}}}),Al=()=>{n.useCssVars(e=>({"70c383fc":e.stripedColor,"35e71b39":e.tableHeaderBgColor,"53718c84":e.tableBodyBgColor,cedc7664:e.paginationBgColor,"6ceaca13":e.paginationColor,"25b86a30":e.activePaginationBgColor,"6a9b8ead":e.activePaginationColor,"7d7d7e0f":e.hoverBackgroundColor}))},kl=Oa.setup;Oa.setup=kl?(e,o)=>(Al(),kl(e,o)):Al;const O1="",L1="",Nf=e=>(n.pushScopeId("data-v-f641124f"),e=e(),n.popScopeId(),e),Ff=["id"],zf={key:0,class:"table-tool"},Mf=n.createTextVNode("导出数据"),Pf=n.createTextVNode(" 搜索 "),qf=n.createTextVNode(" 重置 "),Hf=["src","width","height"],Vf=["src","width","height"],jf=["src","width","height"],Wf={key:1},Uf={key:1,class:"action-list"},Gf=["href","target","onClick"],$f={key:2,class:"progress-cell"},Zf=["title"],Yf=["title"],Kf=["src"],Qf=["title"],Jf=["src"],Xf={class:"ant-pagination-options-quick-jumper"},eu=Nf(()=>n.createElementVNode("span",null,"条 / 页",-1));function tu(e,o,t,a,r,i){const s=n.resolveComponent("a-button"),l=n.resolveComponent("a-input"),d=n.resolveComponent("a-checkbox-group"),c=n.resolveComponent("a-table-summary-cell"),g=n.resolveComponent("a-table-summary-row"),h=n.resolveComponent("a-table-summary"),y=n.resolveComponent("a-table"),u=n.resolveComponent("skeleton");return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["ecan-table",e.containerClass]),id:"ecanTable-"+e.id,style:n.normalizeStyle(e.style)},[n.createVNode(u,{loading:e.loading},{default:n.withCtx(()=>{var m;return[e.isUseExport?(n.openBlock(),n.createElementBlock("div",zf,[n.createVNode(s,{class:"export-button",onClick:e.exportTableData},{default:n.withCtx(()=>[Mf]),_:1},8,["onClick"])])):n.createCommentVNode("",!0),n.createVNode(y,{ref:"tableRef",class:"table",style:n.normalizeStyle({height:e.tableHeight}),columns:e.tableColumns,"data-source":e.tableDataSource,bordered:e.bordered,size:e.size,customRow:e.customRow,scroll:e.y?{x:e.x,y:e.y}:{},pagination:e.pagination,"row-class-name":e.rowClassName,"show-header":!e.hideTableHeader,onChange:e.tableChange},{customFilterDropdown:n.withCtx(({column:f,selectedKeys:S,setSelectedKeys:B,confirm:p,clearFilters:b})=>[n.createElementVNode("div",{class:"ecan-table-filter",style:n.normalizeStyle({height:e.filterDropdownHeight})},[n.createVNode(l,{value:f.filterOptionsInputValue,"onUpdate:value":x=>f.filterOptionsInputValue=x,placeholder:"请输入关键字",class:"filter-input",onChange:e.onSearchFilterOptions},null,8,["value","onUpdate:value","onChange"]),n.createVNode(d,{value:f.filterCheckboxGroupValue,"onUpdate:value":x=>f.filterCheckboxGroupValue=x,class:"filter-checkbox",options:e.useFilterOptions(f),onChange:x=>e.useSetSelectedKeys(B,f)},null,8,["value","onUpdate:value","options","onChange"]),n.createElementVNode("div",null,[n.createVNode(s,{type:"primary",size:"small",style:{width:"90px","margin-right":"8px"},onClick:()=>p()},{default:n.withCtx(()=>[Pf]),_:2},1032,["onClick"]),n.createVNode(s,{size:"small",style:{width:"90px"},onClick:n.withModifiers(x=>e.onResetFilter(b,f),["stop"])},{default:n.withCtx(()=>[qf]),_:2},1032,["onClick"])])],4)]),bodyCell:n.withCtx(({column:f,index:S,text:B,record:p})=>{var b,x,A,k;return[f.dataIndex==="SEQ"?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[e.seqIcon?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[S===0?(n.openBlock(),n.createElementBlock("img",{key:0,class:"seq-icon",src:e.seqIcon1,width:e.iconSize,height:e.iconSize},null,8,Hf)):S===1?(n.openBlock(),n.createElementBlock("img",{key:1,class:"seq-icon",src:e.seqIcon2,width:e.iconSize,height:e.iconSize},null,8,Vf)):S>=2?(n.openBlock(),n.createElementBlock("img",{key:2,class:"seq-icon",src:e.seqIcon3,width:e.iconSize,height:e.iconSize},null,8,jf)):n.createCommentVNode("",!0),n.createElementVNode("span",{class:"seq-icon seq-text",style:n.normalizeStyle({fontSize:e.fontSize})},n.toDisplayString(S+1),5)],64)):(n.openBlock(),n.createElementBlock("span",Wf,n.toDisplayString(S+1),1))],64)):f.dataIndex==="ACTION"?(n.openBlock(),n.createElementBlock("div",Uf,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.actionList,(D,O)=>(n.openBlock(),n.createElementBlock("div",{class:"action",key:O},[n.createElementVNode("a",{href:e.handleHref(D.href,p),target:e.handleHrefTarget(D.target),style:n.normalizeStyle({color:D.color,fontSize:e.fontSize,fontWeight:e.fontWeight}),onClick:N=>e.onTouchHrefEvent(D.target,e.handleHref(D.href,p))},n.toDisplayString(D.title),13,Gf)]))),128))])):f.format==="progress"?(n.openBlock(),n.createElementBlock("div",$f,[n.createElementVNode("div",{class:"progress",style:n.normalizeStyle({background:f.progressColor||"#1890ff",height:f.progressWidth||"18px",width:`${e.handleProgressText(B,f.progressTextDecimalPlaces)}%`})},null,4),n.createElementVNode("div",{class:"progress-text",style:n.normalizeStyle({color:+e.handleProgressText(B)<100?f.progressTextColor||"#333":f.progressFinishedTextColor||"#fff"})},n.toDisplayString(e.handleProgressText(B,f.progressTextDecimalPlaces))+"% ",5)])):(n.openBlock(),n.createElementBlock("div",{key:3,style:n.normalizeStyle({fontSize:e.fontSize,fontWeight:e.fontWeight,...e.getCellStyle(f)})},[f.format==="contrast"?(n.openBlock(),n.createElementBlock("span",{key:0,title:((b=f==null?void 0:f.customFormatter)==null?void 0:b.split("{value}")[0])||""},n.toDisplayString(((x=f==null?void 0:f.customFormatter)==null?void 0:x.split("{value}")[0])||""),9,Zf)):n.createCommentVNode("",!0),n.createElementVNode("span",{class:n.normalizeClass([e.contrastClass(f.format)]),style:n.normalizeStyle(e.getChgStyle({...f,text:B})),title:f.format!=null?e.formatFn(B,f):B},[f.format==="contrast"?(n.openBlock(),n.createElementBlock("div",{key:0,style:n.normalizeStyle(e.chgBoxStyle)},[n.createElementVNode("img",{style:n.normalizeStyle(e.getChgBoxImgStyle({...f,text:B})),src:e.getChgBoxImgSrc(B)},null,12,Kf)],4)):n.createCommentVNode("",!0),n.createTextVNode(" "+n.toDisplayString(f.format!=null?e.formatFn(B,f):B),1)],14,Yf),f.format==="contrast"?(n.openBlock(),n.createElementBlock("span",{key:1,title:((A=f==null?void 0:f.customFormatter)==null?void 0:A.split("{value}")[1])||""},n.toDisplayString(((k=f==null?void 0:f.customFormatter)==null?void 0:k.split("{value}")[1])||""),9,Qf)):n.createCommentVNode("",!0)],4))]}),summary:n.withCtx(()=>[e.summaryList.length>0?(n.openBlock(),n.createBlock(h,{key:0,fixed:e.isSummaryFixed},{default:n.withCtx(()=>[n.createVNode(g,null,{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.summaryList,(f,S)=>(n.openBlock(),n.createBlock(c,{key:S,index:S,style:n.normalizeStyle({backgroundColor:e.cellBackgroundColor,textAlign:f.cellAlign||"center",color:e.cellFontColor,borderBottomColor:e.borderColor})},{default:n.withCtx(()=>[n.createElementVNode("span",{class:n.normalizeClass([e.contrastClass(f.format)]),style:n.normalizeStyle({...e.getChgStyle({...f,text:f.total}),fontSize:e.fontSize,fontWeight:e.fontWeight})},[f.format==="contrast"?(n.openBlock(),n.createElementBlock("div",{key:0,style:n.normalizeStyle(e.chgBoxStyle)},[n.createElementVNode("img",{style:n.normalizeStyle(e.getChgBoxImgStyle({...f,text:f.total})),src:e.getChgBoxImgSrc(f.total)},null,12,Jf)],4)):n.createCommentVNode("",!0),n.createTextVNode(" "+n.toDisplayString((f.format!=null||f.format!=="")&&e.formatFn(f.total,f)),1)],6)]),_:2},1032,["index","style"]))),128))]),_:1})]),_:1},8,["fixed"])):n.createCommentVNode("",!0)]),_:1},8,["style","columns","data-source","bordered","size","customRow","scroll","pagination","row-class-name","show-header","onChange"]),e.paginationShow?(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[(m=e.tableDataSource)!=null&&m.length&&!e.simple&&e.pageSizeShow&&e.pageSizeVisible?(n.openBlock(),n.createBlock(n.Teleport,{key:0,to:"#ecanTable-"+e.id+" .ant-pagination"},[n.createElementVNode("div",Xf,[n.withDirectives(n.createElementVNode("input",{type:"text","onUpdate:modelValue":o[0]||(o[0]=f=>e.pageSize=f)},null,512),[[n.vModelText,e.pageSize]]),eu])],8,["to"])):n.createCommentVNode("",!0)],64)):n.createCommentVNode("",!0)]}),_:1},8,["loading"])],14,Ff)}const Tl=pe(ye(Oa,[["render",tu],["__scopeId","data-v-f641124f"]])),La={...ke,mapJson:null,data:[],name:"地图",keyName:"地图",type:"ecanMap",width:"400px",height:"400px",backgroundImage:"",backgroundImageRepeat:"no-repeat",geoBackgroundImage:"",geoBackgroundImageRepeat:"no-repeat",symbolImage:"",symbolWidth:10,symbolHeight:10,itemStyleColor:"#11BFDA",labelFontSize:14,labelShow:!0,geoLabelShow:!0,geoLabelColor:"#000",geoZoom:1,geoRoam:!1,geoCenter:"",geoLabelFontSize:12,labelColor:"",labelFormatter:"{b}",geoItemStyleAreaColor:"#eee",geoItemStyleBorderColor:"#000",geoItemStyleBorderWidth:1,geoItemStyleShadowColor:"",geoItemStyleShadowOffsetX:0,geoItemStyleShadowOffsetY:0,geoItemStyleShadowBlur:0,geoEmphasisDisabled:!1,geoEmphasisLabelColor:"#fff",geoEmphasisItemStyleAreaColor:"#f00",geoEmphasisItemStyleBorderColor:"#000",tooltipShow:!0,tooltipTextStyleColor:"",tooltipFormatter:"{name}:{value}",tooltipRequestData:{requestUrl:"",requestMethod:"get",requestParams:[]},tooltipBackgroundColor:"#fff"},Na=Se(La),Bl=["click"];Qe.use([Et.CanvasRenderer,ht.MapChart,ht.ScatterChart,ve.VisualMapComponent,ve.TooltipComponent,ve.GraphicComponent]);const nu=n.defineComponent({name:"EcanMap",components:{Echarts:xt},props:{...Na},setup(e){const o=je(e),t=je({...e.tooltipRequestData,requestHeaders:{}}),a=n.ref(),r=n.ref(""),i=n.ref(""),s=Ce(e,["backgroundImage"]),l=n.ref(),d=n.computed(()=>At(e.geoBackgroundImage)),c=n.computed(()=>At(e.backgroundImage)),g=n.computed(()=>e.geoBackgroundImage?{image:n.unref(l),repeat:e.geoBackgroundImageRepeat}:e.geoItemStyleAreaColor),h=n.computed(()=>{const v=e.symbolImage;return e.symbolImage?"image://"+At(v):"circle"}),y=v=>{let E=e.tooltipFormatter;const w=E.match(/\{(.+?)\}/g);if(w==null||w.length===0)return E;for(let _=0;_<w.length;_++){const z=w[_];let q=z.slice(1,-1).trim();const W=/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,$=q.match(W);for(let F=0;F<$.length;F++){const P=$[F],M=v[P];M!=null&&(q=q.replace(P,M))}E=E.replace(z,q)}return E.split(`
|
|
120
|
-
`)},
|
|
118
|
+
<span style="color: ${Y||e.color};${n.unref(y)}">${e.minusSignShow?"-":""}${Math.abs(+L).toFixed(2)}%</span>
|
|
119
|
+
</span>`)}else e.format==="percent"?(L=+L,isNaN(L)||(L=(L*100).toFixed(2),_=_.replace(F,`<span style="color:${m(L)||e.variableColor};font-size:${n.unref(i)};${n.unref(y)}">${L}%</span>`))):e.format==="money"?(L=+L,isNaN(L)||(L=Do(L),_=_.replace(F,`<span style="color:${m(L)||e.variableColor};font-size:${n.unref(i)};${n.unref(y)}">${L}</span>`))):H==="thousands"?(L=+L,isNaN(L)||(L=Dc(L),_=_.replace(F,`<span style="color:${m(L)||e.variableColor};font-size:${n.unref(i)};${n.unref(y)}">${L}</span>`))):_=_.replace(F,`<span style="color:${m(L)||e.variableColor};font-size:${n.unref(i)};${n.unref(y)}">${L}</span>`)}}if(q||(q=`<span style="color: ${m(_)};${n.unref(y)}">${_}</span>`),e.unitShow&&e.unitText){const{unitTop:$,unitLeft:F}=e;let P="position:relative;";$&&(P+=`top:${$};`),F&&(P+=`margin-left:${F};`),q+=`<span style='color:${e.unitColor};font-size:${e.unitFontSize};font-weight:${e.unitFontWeight};${P};${n.unref(y)}'>${e.unitText}</span>`}return q});function m(S){let E="",w=!1;const{targetValue:_,targetShow:z,notExpectColor:q}=e;if(z){switch(e.targetRule){case"equal":S!==_&&(w=!0);break;case"greater":S<=_&&(w=!0);break;case"greater_equal":S<_&&(w=!0);break;case"less":S>=_&&(w=!0);break;case"less_equal":S>_&&(w=!0);break}w&&(E=q)}return E}const{pageMode:g}=n.inject(Me,{pageMode:"normal"}),v=je(e),B=n.ref(!1),p=async()=>{var S;try{B.value=!0;const E=await v();r.value=((S=E==null?void 0:E.data)==null?void 0:S.data)||{}}catch(E){console.error(E)}finally{B.value=!1}},b=(S={})=>{r.value=S},x=S=>{const E=e.id,w=l(E);d(E,{...w,value:S||"",RECORD:S||""})},A=()=>{x("")},k=lt(e),D=async()=>{var S,E;try{B.value=!0;const w=await k(),{data:_}=(w==null?void 0:w.data)||{};if(_){t.value=!1;const{columns:z=[],rows:q=[]}=((S=w==null?void 0:w.data)==null?void 0:S.data)??{},{graphicConfig:W}=e;let $={};if(z.length>0)if((E=W==null?void 0:W.dimensionList)!=null&&E.length){const F=z[0];F&&(q!=null&&q.length)&&($={value:q[0][F]})}else{const F=z.find(P=>!!P);F&&($={value:isNaN(q[F])?0:q[F]||0})}x($==null?void 0:$.value),b($)}else t.value=!0,x("NaN"),b({value:"NaN"})}catch(w){console.error(w)}finally{B.value=!1,f(e.id,!0)}},O=()=>{switch(e.dataType){case"indicator":D();break;case"request":p();break}},{setRequest:N}=n.inject(Pe,{setRequest:({id:S,sortNum:E,requestFn:w})=>{}});typeof N=="function"&&N({id:e.id,requestFn:O,sortNum:e.requestSort}),Le(e,{refreshData:O,resetRecord:A}),o({refreshData:O});const C=Ee(e),T=C("click",()=>{const S=document.getElementsByClassName(`ecan-text_${e.id}`);if(S!=null&&S.length&&x(S[0].innerText),setTimeout(()=>{x("")},0),!e.linkPage&&!e.href)return;const E=e.linkPage||"",w=vi(n.unref(g),E),_=e.href;let z=_||w;z=De(z);const q=e.target;q&&(q!=="event"?window.open(z,"_"+q):window.parent.postMessage({type:"openPage",url:_},"*"))}),R=C("valueChange",()=>{});return n.watch(()=>h.value,(S,E)=>{S!==E&&R()}),{style:a,myText:h,loading:B,click:T,textIndent:s,vFontSize:i,gradientStyle:u}}}),Ai=()=>{n.useCssVars(e=>({bf700b4e:e.vFontSize,"10d75bc6":e.textIndent,d0a92fc4:e.percentageSide}))},ki=Fo.setup;Fo.setup=ki?(e,o)=>(Ai(),ki(e,o)):Ai;const Lu="",zc=["innerHTML"];function Mc(e,o,t,a,r,i){const s=n.resolveComponent("skeleton");return e.loading?(n.openBlock(),n.createElementBlock("div",{key:0,class:"skeleton-wrapper",style:n.normalizeStyle(e.style)},[n.createVNode(s,{loading:e.loading},null,8,["loading"])],4)):(n.openBlock(),n.createElementBlock("div",{key:1,class:n.normalizeClass(["ecan-text","ecan-text_"+e.id]),style:n.normalizeStyle({...e.style,...e.gradientStyle}),innerHTML:e.myText,onClick:o[0]||(o[0]=(...l)=>e.click&&e.click(...l))},null,14,zc))}const Ti=pe(ye(Fo,[["render",Mc],["__scopeId","data-v-fc956f5c"]])),Pc=n.defineComponent({name:"EcanScrollText",setup(){return{text:n.ref("基础文本")}}}),Fu="",qc={class:"red"};function Hc(e,o,t,a,r,i){return n.openBlock(),n.createElementBlock("div",qc,n.toDisplayString(e.text),1)}const Bi=pe(ye(Pc,[["render",Hc],["__scopeId","data-v-4dd9c03e"]])),zo={...ke,name:"时间展示",keyName:"时间展示",type:"ecanTimeDisplay",format:"YYYY-MM-DD dddd HH:mm:ss",fontSize:"16px",color:"#333",width:"240px",height:"40px",fontFamily:"",fontWeight:400,textShadow:"",alignItems:"center",justifyContent:"center",operate:null,updateInterval:{value:1,mode:"second"}},Mo=Se(zo),Ei=["timeChange"],Vc=n.defineComponent({name:"EcanTimeDisplay",props:{...Mo},setup(e){const o=Ce(e),t=()=>{const{format:c,operate:f}=e;let y=be();if(f){const{type:u,value:h,mode:m}=f;switch(u){case"add":y=y.add(h,m);break;case"minus":y=y.subtract(h,m)}}return y.format(c)},a=n.ref();n.watch(()=>[e.operate,e.format],()=>{a.value=t()},{immediate:!0,deep:!0}),n.watch(()=>e.updateInterval,()=>{d()},{deep:!0});let r=null;const i=()=>{clearInterval(r),r=null},l=Ee(e)("timeChange",()=>{}),d=()=>{r&&i();let c=1e3;const{value:f,mode:y}=e.updateInterval||{};f&&(c=c*f);const u={second:1,minute:60,hour:60*60,day:24*60*60};y&&(c=c*u[y]),r=setInterval(()=>{a.value=t(),l()},c)};return Le(e,{timeChange:l}),n.onMounted(()=>{d()}),n.onUnmounted(()=>{i()}),{style:o,time:a}}}),Mu="";function jc(e,o,t,a,r,i){return n.openBlock(),n.createElementBlock("div",{class:"time-display",style:n.normalizeStyle(e.style)},n.toDisplayString(e.time),5)}const Di=pe(ye(Vc,[["render",jc],["__scopeId","data-v-b628fca2"]])),Po={...ke,type:"ecanList",name:"列表",keyName:"列表",width:"330px",height:"80px",backgroundColor:"#0d215e",itemColSpan:"10px",itemRowSpan:"10px",itemPadding:"20px",useRanking:!1,useTitle:!1,sliceCount:6,columnCount:1,itemHeight:"32px",data:[{name:"a",age:12},{name:"b",age:14}],columns:[{key:"name"},{key:"age"}],seqIcon:!1,isUseSeq:!1,seqWidth:"10%",seqName:"序号",seqFontSize:"14px",isAutoScroll:!1,scrollSpeed:.3,graphicConfig:{}},qo=Se(Po),Ri=["refreshData","click","resetRecord"],Wc="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAYCAYAAACfpi8JAAAAAXNSR0IArs4c6QAAAWhJREFUSEvNlz9Lw0AYxp/3iJ2TgqN+ia5ihbb0A/hnEXG3QxHEyUkQVwcHwU3cgoI4hHKXUnQS3Z0VQVBwbTVtXrlciyKmLo2XmxI47v3x3HPvPUdcKk3B85og2gYwjUkOIoD5CcAeSXk0bmniSqWJQuEA/f4kEb7WMjD6f42kPE0rQlyrPYJoZjg5O5g4voDnrZDvf/xWRIMkuJkOo8odXHeefL9rG+QWrlvOA8gNomiBOp2ePUVM5S7iuE5heG0bBNBeieMdKLWvv74D/Y9Zf0rAfEZKLdkHEUIrcw8h5qjVetNAdhRJKidH+nnY6EJ7IKN9YY4ANPIAou+WDXsgZmtewLxKSik7ICOzOk6ZguDVplnPScpFe8c3Jw2th8GgTu32lb0Wb4yZg0vPgOQmBvwRjKrVBwgxm3lUZL6E4yxTELyneaQBxznMPDwzr5NSJ+nhWT8nisVNAFuZPSeYd0mp43G5+BNp2sfxEUU29gAAAABJRU5ErkJggg==",Uc="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAYCAYAAACfpi8JAAAAAXNSR0IArs4c6QAAAbVJREFUSEvNl7tKA1EQhmfOyd6ClikVLHwCWzHb5QHUbWIStVRQBLGyEEFsLSwUq6idKIiFjZdNUgTR3k7wAoqC2GU3mz0ju5uIRaKN68l5gDMfM//M/IO0PaS4yd55ErTEEFMEf/cYIvgknjjgmpq3t376GZ2iOa8l+Ybn+CD+kqIZlSFA+C1CTpuw9zvBYK2YfuCM9QmKgaIZNcEQGj4da0bKQuug3g4G3T2TYmQIYwYlIqIbVXdH0KrW2oI4u2Z8qfgqT6AVutZ1Ny0VhAelEXSl+2DilO1IywhCKNgaR8oouVJFGkikk0grvqBl9c5cx5UV8R0I/0MjbTJwqOftMekgmsLA9fxbTa8Po1V9D8eMpIyAwhE8n55JYM6YvDyXBhIN21DEHgHNdgNIg4BmpIEEpak3xGsCMKsU7DMpIC2xeg2R7p2uvMkTK9GRXiiNSmnfrhhoYXcQODzBMkr2oixtxLeW3osP5oDMpRdZxl9sQNcYo1oxfc8Z64/dKgo6efwwxgfnTt1OGpnVDL4Zp3mOAouCmivvdjTPwTlRN3oWBMFiHOeEIPFEAKtGvrTz0znxCSDl9ZPnj4lKAAAAAElFTkSuQmCC",Gc="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAYCAYAAACfpi8JAAAAAXNSR0IArs4c6QAAAZhJREFUSEvNl79LY0EUhb87L6uwkHSieRjBwm7/ApHVbcwzrT8ake21EGHZympBbLewEOxk2xVEBAVttBLtrRWTiLtaiTHue3NlsgiKRiwSJ1NOMffjzLl3zghH+oHL81ms/Y4xHajSsGUMJMkZIgtE4fJr5wqbpVnS6Z9UrmkoxENVMYCC6BTD4a96MMJW8RQT5LC2YUI8OygInDLrdGcn+CR3LxUStsvaFCUeV3NXpPaIdPKZ/lzlZZCtUgNNUUdUB2LtIZlksBVADmivDvGl99afIiLOsBWUPFG47w/EVXbdU7uieJ7h7CIiT7pDeA+PPJfgN1E49njbD0hbO9xVj8kkA/TnrmqCeVIEUimI4zJqphjp2vUHUpPBmZh/JDrjH0Q1xjLtDyRIQRJfQDBJ1LnjB+TBrFYGKWT/+DTrGlE46qd9W2Kgue5QvUXIkw/3/I34/69vCzx6b4oBrROMiieYoKfpUTGON9CbcQp91ToeKc7wMbPU9PCsfCXKrtYPz+478fd8DtVvGGnOd0LlB4Vw5bV0fg/E2Mcb2D1RagAAAABJRU5ErkJggg==",$c="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAYCAYAAACfpi8JAAAAAXNSR0IArs4c6QAAAapJREFUSEvNl88rBGEYx7/P7K6yO2VGOfJPuAqF/AGYi7Q7y8mWTcnJQUquDg4kVnITJQdpZyVOsndXtKUoM4vyY3feR7OLiN0cjHff05ze7+d95vs+7/chtC6FGvRQkgiTBGrCXy4igEVOgGbzaXOx2takdaWSSl39PBefAPBfYpT3KsF4H2LITsc3KgmQ3pO6BFEz2AeId1VSwELsOHrEwKbx8hMM6T1r7EslPqsReefMqlq4PbdpPFYASflYijfJEgifqlqkQzKIArB7YheoE4emZ8Zvy/OI/xUpyz5CoNfOmMeSQah8gwRP2db5HDAtvtjoHyvyocuMLccy+6WDkBICi+KZq4Tb7vaN21K7kVGRcqMLeAa+EqChfDqWkQfy9l+YUWAgUQMgXGTQqDwQCoDZvWZWBvNW1JIC8m7WQlB0POzFb6SZlYFtJ232Sbq+tdPQnth1e52DkSN5LZ5q5dH7XQz4r2AksqqmVglG3asXUJQWv6MiWOzawfsB7I09V/DISoKCkQW/wzMzoo4VW68YnkvjRGNonEATBPgzTjDP5K3h5Wojwitkj93H9BVpxQAAAABJRU5ErkJggg==",Zc=n.defineComponent({name:"EcanList",components:{Skeleton:sn,ATooltip:ce.Tooltip,MarqueeScroll:dr},props:{...qo},setup(e,{expose:o}){const t=n.ref(),a=Ce(e,["backgroundColor"]),r=(C,T)=>{const{format:R,customFormatter:S}=T;if(R==null||R==="")return C;const E={money:Do,percentage:bn,contrast:bn,custom:bi};return E[R]?R==="custom"?E[R](C,S)||"":E[R](C)||"":""},i=(C,T)=>{const R=parseFloat(C+"");if(T!=="contrast")return"";switch(!0){case R>=0:return"goUp";case R<0:return"goDown"}},s=je(e),l=n.ref(!1),d=async()=>{var C;if(e.dataType==="request")try{l.value=!0;const T=await s();t.value=((C=T==null?void 0:T.data)==null?void 0:C.data.rows)||[]}catch(T){console.error(T)}finally{l.value=!1}};n.watch(()=>e.data,()=>{t.value=e.data},{immediate:!0,deep:!0});const c=n.computed(()=>({key:"SEQ",width:e.seqWidth,title:e.seqName,align:"center",fontSize:e.seqFontSize})),f=n.computed(()=>{const{columns:C,isUseSeq:T}=e;return T?[n.unref(c),...C]:C}),y=lt(e),u=async()=>{var C;try{l.value=!0;const T=await y(),{columns:R=[],rows:S=[]}=((C=T==null?void 0:T.data)==null?void 0:C.data)??{};e.isUseSeq&&R.unshift(e.seqName),f.value.forEach((E,w)=>{(!e.isUseSeq||w!==0)&&(E.title=R[w],E.key=R[w])}),t.value=S}catch(T){console.error(T)}finally{l.value=!1}},h=()=>{switch(e.dataType){case"indicator":u();break;case"request":d();break}},m=Ee(e),{getGlobalModel:g,setGlobalModel:v}=n.inject(Be,{getGlobalModel:C=>{},setGlobalModel:(C,T)=>{}}),B=C=>{m("click",()=>{const T=g(e.id);v(e.id,{...T,type:e.type,RECORD:C})})()};Le(e,{refreshData:h,resetRecord:()=>{const C=e.id,T=g(C);v(C,{...T,type:e.type,RECORD:""})}});const{setRequest:b}=n.inject(Pe,{setRequest:({id:C,sortNum:T,requestFn:R})=>{}});typeof b=="function"&&b({id:e.id,requestFn:h,sortNum:e.requestSort}),o({refreshData:h});const x=C=>({flex:C.width?"none":"1",width:C.width,height:e.itemHeight,lineHeight:e.itemHeight,textAlign:C.align||"left",backgroundColor:C.cellColor}),A=(C,T)=>{let R=0;const S=n.unref(t).map(w=>w[T]),E=Math.max(...S);return E&&(R=C[T]/E*100),R},k=C=>{const{progressColor:T="#1890ff",progressGradientColor:R=""}=C;return R?{background:`linear-gradient(to right, ${T} 0%, ${R} 100%)`}:{backgroundColor:T||"#1890ff"}},D=n.computed(()=>{const C=parseFloat(e.seqFontSize)+5;return{width:C+10,height:C}}),{pageMode:O}=n.inject(Me,{pageMode:"normal"}),N=n.computed(()=>n.unref(O)!=="design"&&e.isAutoScroll);return{style:a,formatFn:r,contrastClass:i,dataSource:t,loading:l,myColumns:f,click:B,getColumnStyle:x,getPercentage:A,getBackgroundColor:k,seqIcon4:Wc,seqIcon5:Uc,seqIcon6:Gc,seqIcon7:$c,iconSize:D,isScroll:N}}}),qu="",Hu="",Yc=e=>(n.pushScopeId("data-v-f66dda69"),e=e(),n.popScopeId(),e),Kc={key:0,class:"title"},Qc={key:0,class:"ranking"},Jc={key:1,class:"ecan-list-content"},Xc=["onClick"],ed={key:0,class:"ranking"},td=Yc(()=>n.createElementVNode("div",{class:"icon"},null,-1)),nd={class:"sort"},od=["src","width","height"],ad=["src","width","height"],rd=["src","width","height"],id=["src","width","height"],ld={key:1},sd={key:2,class:"empty"};function cd(e,o,t,a,r,i){const s=n.resolveComponent("a-tooltip"),l=n.resolveComponent("marquee-scroll"),d=n.resolveComponent("skeleton");return n.openBlock(),n.createElementBlock("div",{class:"ecan-list",style:n.normalizeStyle(e.style)},[n.createVNode(d,{loading:e.loading},{default:n.withCtx(()=>[e.useTitle?(n.openBlock(),n.createElementBlock("div",Kc,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.columnCount,c=>(n.openBlock(),n.createElementBlock("div",{class:"title-inner",style:n.normalizeStyle({backgroundColor:e.backgroundColor,height:e.itemHeight,width:`calc(100% / ${e.columnCount} - ${e.itemColSpan} * ${e.columnCount-1}/ ${e.columnCount})`,marginRight:c%e.columnCount!==0?e.itemColSpan:"",padding:`0 ${e.itemPadding}`}),key:c},[e.useRanking?(n.openBlock(),n.createElementBlock("div",Qc)):n.createCommentVNode("",!0),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.myColumns,(f,y)=>(n.openBlock(),n.createElementBlock("div",{class:"column",key:f.key||y,style:n.normalizeStyle({color:f.titleColor,...e.getColumnStyle(f)})},n.toDisplayString(f.title),5))),128))],4))),128))])):n.createCommentVNode("",!0),e.dataSource.length>0?(n.openBlock(),n.createElementBlock("div",Jc,[e.useTitle?(n.openBlock(),n.createElementBlock("div",{key:0,class:"title-placeholder",style:n.normalizeStyle({marginBottom:e.itemRowSpan})},null,4)):n.createCommentVNode("",!0),n.createVNode(l,{visible:e.isScroll,step:e.scrollSpeed},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.dataSource.slice(0,e.sliceCount),(c,f)=>(n.openBlock(),n.createElementBlock("div",{class:"item",style:n.normalizeStyle({backgroundColor:e.backgroundColor,height:e.itemHeight,width:`calc(100% / ${e.columnCount} - ${e.itemColSpan} * ${e.columnCount-1} / ${e.columnCount})`,marginRight:(f+1)%e.columnCount!==0?e.itemColSpan:"",marginBottom:e.itemRowSpan,padding:`0 ${e.itemPadding}`}),key:c.id||f,onClick:y=>e.click(c)},[e.useRanking?(n.openBlock(),n.createElementBlock("div",ed,[td,n.createElementVNode("div",nd," Top "+n.toDisplayString(f+1),1)])):n.createCommentVNode("",!0),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.myColumns,y=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["column",e.contrastClass(c[y.key],y.format)]),key:y.key,style:n.normalizeStyle({fontSize:y.fontSize,color:e.contrastClass(c[y.key],y.format)===""?y.color:"",fontWeight:y.fontWeight,...e.getColumnStyle(y)})},[y.key==="SEQ"?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[e.seqIcon?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[f===0?(n.openBlock(),n.createElementBlock("img",{key:0,class:"seq-icon",src:e.seqIcon4,width:e.iconSize.width,height:e.iconSize.height},null,8,od)):f===1?(n.openBlock(),n.createElementBlock("img",{key:1,class:"seq-icon",src:e.seqIcon5,width:e.iconSize.width,height:e.iconSize.height},null,8,ad)):f===2?(n.openBlock(),n.createElementBlock("img",{key:2,class:"seq-icon",src:e.seqIcon6,width:e.iconSize.width,height:e.iconSize.height},null,8,rd)):f>=3?(n.openBlock(),n.createElementBlock("img",{key:3,class:"seq-icon",src:e.seqIcon7,width:e.iconSize.width,height:e.iconSize.height},null,8,id)):n.createCommentVNode("",!0),n.createElementVNode("span",{class:"seq-icon seq-text",style:n.normalizeStyle({fontSize:e.seqFontSize})},n.toDisplayString(f+1),5)],64)):(n.openBlock(),n.createElementBlock("span",ld,n.toDisplayString(f+1),1))],64)):y.format==="progress"?(n.openBlock(),n.createElementBlock("div",{key:1,class:"progress-cell",style:n.normalizeStyle({height:e.itemHeight})},[n.createElementVNode("div",{class:"progress",style:n.normalizeStyle({height:y.progressWidth||"14px",backgroundColor:y.progressBaseColor})},[n.createVNode(s,{title:c[y.key],overlayClassName:"ecan-list-tooltip",color:"#fff"},{default:n.withCtx(()=>[n.createElementVNode("div",{style:n.normalizeStyle({borderRadius:"10px",height:y.progressWidth||"14px",width:`${e.getPercentage(c,y.key)}%`,...e.getBackgroundColor(y)})},null,4)]),_:2},1032,["title"])],4)],4)):(n.openBlock(),n.createElementBlock(n.Fragment,{key:2},[n.createTextVNode(n.toDisplayString((y.format!=null||y.format!=="")&&e.formatFn(c[y.key],y)),1)],64))],6))),128))],12,Xc))),128))]),_:1},8,["visible","step"])])):(n.openBlock(),n.createElementBlock("div",sd," 暂无数据 "))]),_:1},8,["loading"])],4)}const Ii=pe(ye(Zc,[["render",cd],["__scopeId","data-v-f66dda69"]])),Ho={...ke,name:"占比图",keyName:"占比图",type:"ecanProportion",strokeType:"circle",width:"200px",height:"200px",strokeColor:"#4091f7",strokeLinecap:"round",trailColor:"#f5f5f5",data:{percent:.3},text:"{percent}%",fontSize:"26px",color:"#4091f7",strokeWidth:6,fontWeight:400,strokeTextWidth:"100%",lineHeight:"26px",decimalFormat:!0,variableDefaultValue:"0",strokeTextShow:!0,gradientShow:!0,gradientColor:"",gradientOffset:1,graphicConfig:{}},Vo=Se(Ho),_i=["refreshData","click"],dd=n.defineComponent({name:"EcanProportion",components:{AProgress:ce.Progress,Skeleton:sn},props:{...Vo},setup(e,{expose:o}){const t=n.ref(!1),{pageMode:a}=n.inject(Me,{pageMode:"normal"}),r=Ce(e),i=n.computed(()=>{const x=e.width;return parseFloat(x)}),s=n.ref({});n.watch(()=>e.data,()=>{(e.dataType==="static"||n.unref(a)==="design")&&(s.value=e.data)},{immediate:!0,deep:!0});const l=n.computed(()=>{const x=n.unref(s),A=+e.variableDefaultValue;if(x==null)return isNaN(A)?0:A;const k=e.text.match(/\{.+\}/g)||[];let D;const O=new Set(Object.keys(x));for(let N=0;N<k.length;N++){const C=k[N],T=C.slice(1,C.length-1);if(O.has(T)){D=x[T];break}}return typeof D=="number"?D=D*100:typeof D=="string"&&!isNaN(+D)?D=+D*100:isNaN(A)?D=0:D=A*100,e.decimalFormat&&(D=+D.toFixed(2)),D}),d=n.computed(()=>{var O;let x=e.text;if(x==="")return n.unref(l);const A=e.variableDefaultValue,k=n.unref(s),D=x.match(/\{.+\}/g)||[];for(let N=0;N<D.length;N++){const C=D[N];let T=C.slice(1,C.length-1);const R=/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,S=C.match(R);for(let w=0;w<(S==null?void 0:S.length);w++){const _=(O=S[w])==null?void 0:O.trim();k[_]!=null&&(T=T.replace(_,k[_]))}let E=T;try{/\(.*\)/g.test(T)&&(E=vn(T))}catch(w){console.error(w)}typeof+E=="number"&&!isNaN(+E)?(E=+E*100,e.decimalFormat&&(E=E.toFixed(2))):E=A,x=x.replace(C,E+"")}return n.unref(t)?"NaN":x}),c=je(e),f=n.ref(!1),y=async()=>{var x;if(e.dataType==="request")try{f.value=!0;const A=await c();s.value=((x=A==null?void 0:A.data)==null?void 0:x.data)||{}}catch(A){console.error(A)}finally{f.value=!1}},u=(x={})=>{s.value=x},h=lt(e),m=async()=>{var x;try{f.value=!0;const A=await h(),{data:k}=(A==null?void 0:A.data)||{};if(k){t.value=!1;const{columns:D=[],rows:O=[]}=((x=A==null?void 0:A.data)==null?void 0:x.data)??{};let N={};if(D.length>0){const C=D.find(T=>!!T);C&&(N={percent:O[C]})}u(N)}else t.value=!0,u({percent:"NaN"})}catch(A){console.error(A)}finally{f.value=!1}},g=()=>{switch(e.dataType){case"indicator":m();break;case"request":y();break}};Le(e,{refreshData:g}),o({refreshData:g});const B=Ee(e)("click",()=>{}),{setRequest:p}=n.inject(Pe,{setRequest:({id:x,sortNum:A,requestFn:k})=>{}});typeof p=="function"&&p({id:e.id,requestFn:g,sortNum:e.requestSort});const b=n.computed(()=>{const{gradientShow:x,gradientColor:A,gradientOffset:k,strokeColor:D}=e;let O=D;return x&&A&&(O={"0%":D,[`${k*100}%`]:A}),O});return{style:r,myWidth:i,text:d,myValue:l,loading:f,click:B,customStrokeColor:b}}}),ju="";function fd(e,o,t,a,r,i){const s=n.resolveComponent("skeleton"),l=n.resolveComponent("a-progress");return n.openBlock(),n.createElementBlock("div",{class:"ecan-proportion",style:n.normalizeStyle(e.style)},[n.createVNode(l,{class:"progress",percent:e.myValue,width:e.myWidth,type:e.strokeType,strokeColor:e.customStrokeColor,strokeLinecap:e.strokeLinecap,trailColor:e.trailColor,strokeWidth:e.strokeWidth,showInfo:e.strokeTextShow,gapDegree:e.strokeType==="dashboard"?75:0,onClick:e.click},{format:n.withCtx(()=>[e.loading?(n.openBlock(),n.createBlock(s,{key:0,loading:e.loading},null,8,["loading"])):e.strokeTextShow?(n.openBlock(),n.createElementBlock("div",{key:1,class:"format",style:n.normalizeStyle({width:e.strokeTextWidth,fontSize:e.fontSize,color:e.color,fontWeight:e.fontWeight,lineHeight:e.lineHeight})},n.toDisplayString(e.text),5)):n.createCommentVNode("",!0)]),_:1},8,["percent","width","type","strokeColor","strokeLinecap","trailColor","strokeWidth","showInfo","gapDegree","onClick"])],4)}const Oi=pe(ye(dd,[["render",fd],["__scopeId","data-v-cf942b5f"]])),jo={...ke,width:"200px",id:"",left:"0px",top:"0px",name:"输入框",keyName:"输入框",rotate:"",type:"ecanInput",value:"",placeholder:"请输入文字",optionFontSize:"14px"},Wo=Se(jo),Li=["inputChange","inputBlur"],ud=n.defineComponent({name:"EcanInput",components:{AInput:ce.Input},props:{...Wo},setup(e){const o=Ce(e),t=n.ref(""),{getGlobalModel:a,setGlobalModel:r,getRecordValueByKeyName:i}=n.inject(Be,{getGlobalModel:f=>{},setGlobalModel:(f,y)=>{},getRecordValueByKeyName:f=>{}});n.watch(()=>e.value,f=>{t.value=i(f)},{immediate:!0}),r(e.id,{type:e.type,value:t});const s=()=>{const f=a(e.id);r(e.id,{...f,RECORD:t})},l=Ee(e),d=Ne.debounce(l("inputChange",()=>{s()}),300),c=l("inputBlur",()=>{});return{style:o,myValue:t,inputBlur:c,inputChange:d}}}),Uu="";function hd(e,o,t,a,r,i){const s=n.resolveComponent("a-input");return n.openBlock(),n.createElementBlock("div",{class:"ecan-input",style:n.normalizeStyle(e.style)},[n.createVNode(s,{class:"input",value:e.myValue,"onUpdate:value":o[0]||(o[0]=l=>e.myValue=l),placeholder:e.placeholder,onChange:e.inputChange,onBlur:e.inputBlur,style:n.normalizeStyle({fontSize:e.optionFontSize})},null,8,["value","placeholder","onChange","onBlur","style"])],4)}const Ni=pe(ye(ud,[["render",hd]])),Uo={...ke,height:"33px",width:"130px",id:"",left:"0px",top:"0px",name:"日期选择器",keyName:"日期选择器",rotate:"",type:"ecanDatePicker",value:"",picker:"date",format:"YYYY-MM-DD",showTime:!1,useCurrentTime:!0,operate:null,optionFontSize:"14px"},Go=Se(Uo),Fi=["dateChange"],$o=n.defineComponent({name:"EcanDatePicker",props:{...Go},components:{ADatePicker:ce.DatePicker},setup(e){const o=n.inject("scaleValue",{widthScale:"1",heightScale:"1"}),t=Ce(e),a=()=>document.getElementById("ProviderConfig")||document.body,r=n.ref(null);n.watch(()=>[e.value,e.useCurrentTime,e.operate],([u,h,m])=>{let g=null;if(u?g=be(De(u)):h&&(g=be()),m&&g){const{type:v,value:B,mode:p}=m;switch(v){case"add":g=g.add(B,p);break;case"minus":g=g.subtract(B,p)}}r.value=g},{deep:!0,immediate:!0});const{setGlobalModel:i}=n.inject(Be,{setGlobalModel:(u,h)=>{}});i(e.id,{type:e.type,format:e.format,useCurrentTime:e.useCurrentTime,value:r});const l=Ee(e)("dateChange",()=>{}),d=()=>{n.unref(r)&&l()};Le(e,{dateChange:l});const c=n.ref({}),f=n.ref({}),y=u=>{u?setTimeout(()=>{f.value=n.unref(c)},300):f.value={}};return n.onMounted(()=>{setTimeout(()=>{const u=document.querySelector(`#ecan-date-picker-${e.id}`);if(u){const h=u.getBoundingClientRect(),m=parseFloat(n.unref(o).widthScale)*280;document.body.clientWidth-h.left<m&&(c.value.marginLeft=-1*(m-h.width)+"px")}},0)}),{style:t,getPopupContainer:a,myValue:r,locale:Ma,change:d,scaleValue:o,popupStyle:c,customStyle:f,openChange:y}}}),zi=()=>{n.useCssVars(e=>({d6fb5b46:e.optionFontSize}))},Mi=$o.setup;$o.setup=Mi?(e,o)=>(zi(),Mi(e,o)):zi;const $u="",Zu="",gd=["id"];function md(e,o,t,a,r,i){const s=n.resolveComponent("a-date-picker");return n.openBlock(),n.createElementBlock("div",{class:"ecan-date-picker",style:n.normalizeStyle(e.style),id:"ecan-date-picker-"+e.id},[n.createVNode(s,{class:"date-picker",dropdownClassName:"ecan-date-picker-dropdown",value:e.myValue,"onUpdate:value":o[0]||(o[0]=l=>e.myValue=l),format:e.format,picker:e.picker,showTime:e.showTime,locale:e.locale,onChange:e.change,onOpenChange:e.openChange,getPopupContainer:e.getPopupContainer,popupStyle:{fontSize:e.optionFontSize,transform:`scale(${e.scaleValue.widthScale}, ${e.scaleValue.heightScale})`}},null,8,["value","format","picker","showTime","locale","onChange","onOpenChange","getPopupContainer","popupStyle"])],12,gd)}const Pi=pe(ye($o,[["render",md],["__scopeId","data-v-d4ec0d66"]])),Zo={...ke,name:"日期范围选择器",keyName:"日期范围选择器",type:"ecanRangePicker",width:"250px",height:"35px",picker:"date",format:"YYYY-MM-DD",startTime:"",endTime:"",useCurrentTime:!0,interval:1,intervalUnit:"year",operate:null,limitStartTime:"",limitEndTime:"",associated:"",optionFontSize:"14px",isAllowSpanYear:!0,limitInterval:null},Yo=Se(Zo),qi=["dateChange"];var Hi={exports:{}};(function(e,o){(function(t,a){e.exports=a()})(de,function(){var t="month",a="quarter";return function(r,i){var s=i.prototype;s.quarter=function(c){return this.$utils().u(c)?Math.ceil((this.month()+1)/3):this.month(this.month()%3+3*(c-1))};var l=s.add;s.add=function(c,f){return c=Number(c),this.$utils().p(f)===a?this.add(3*c,t):l.bind(this)(c,f)};var d=s.startOf;s.startOf=function(c,f){var y=this.$utils(),u=!!y.u(f)||f;if(y.p(c)===a){var h=this.quarter()-1;return u?this.month(3*h).startOf(t).startOf("day"):this.month(3*h+2).endOf(t).endOf("day")}return d.bind(this)(c,f)}}})})(Hi);var yd=Hi.exports;const xd=yr(yd);be.extend(xd);const Ko=n.defineComponent({name:"EcanRangePicker",components:{ARangePicker:ce.RangePicker},props:{...Yo},setup(e){const o=Ce(e),t=()=>document.getElementById("ProviderConfig")||document.body,a=n.ref([null,null]);n.watch(()=>[e.startTime,e.endTime,e.useCurrentTime,e.interval,e.intervalUnit,e.operate],([b,x,A,k,D,O])=>{let N=null,C=null;if(A&&(N=be().subtract(k,D),C=be()),b&&(N=be(De(b))),x&&(C=be(De(x))),O){const{type:T,value:R,mode:S}=O;switch(T){case"add":N=N&&N.add(R,S),C=C&&C.add(R,S);break;case"minus":N=N&&N.subtract(R,S),C=C&&C.subtract(R,S)}}a.value=[N,C]},{immediate:!0});let r=n.unref(a)[0],i=n.unref(a)[1],s="";const l=(b,x,A)=>{Array.isArray(b)?(r=b[0],i=b[1],s=A.range):(r=null,i=null)};window.dayjs=be;const d=b=>{let x=!1,{limitStartTime:A,limitEndTime:k}=e;const D={startTime:`${r||""}`,endTime:`${i||""}`};if(A=De(A,{codeData:D}),k=De(k,{codeData:D}),A&&k?x=!(be(A)<b&&b<be(k)):A?x=be(A)>b:k&&(x=be(k)<b),!e.isAllowSpanYear&&s){let O=null;if(s==="start"?O=r:s==="end"&&(O=i),O){const N=O.startOf("year"),C=O.endOf("year");x=!(N<=b&&b<C)}}if(!x){const{value:O=0,mode:N="year"}=e.limitInterval||{};O&&(s==="start"?x=r.add(O,N)<b:s==="end"&&(x=i.subtract(O,N)>b))}return x},{getGlobalModel:c,setGlobalModel:f}=n.inject(Be,{getGlobalModel:b=>{},setGlobalModel:(b,x)=>{}}),y=n.computed(()=>Array.isArray(n.unref(a))?n.unref(a)[0]:null),u=n.computed(()=>Array.isArray(n.unref(a))?n.unref(a)[1]:null);f(e.id,{type:e.type,format:e.format,startTime:y,endTime:u,interval:e.interval,intervalUnit:e.intervalUnit,useCurrentTime:e.useCurrentTime,operate:e.operate});const h=Ee(e);let m=!1;const g=h("dateChange",()=>{}),v=b=>{const x=n.unref(a),A=x&&x[0]&&x[1];b===!1&&m===!0&&A&&(g(),m=!1),b||(s="")},B=()=>{m=!0};return Le(e,{dateChange:()=>{const{associated:b}=e;if(b){const x=c(b)||{};if(x){const{value:A}=x;if(A)switch(n.unref(A)){case"month":a.value=[be().startOf("month"),be().endOf("month")];break;case"quarter":a.value=[be().startOf("quarter"),be().endOf("quarter")];break;case"year":a.value=[be().startOf("year"),be().endOf("year")];break}}}g()}}),{style:o,getPopupContainer:t,locale:Ma,dateChange:g,myValue:a,disabledDate:d,calendarChange:l,openChange:v,change:B}}}),Vi=()=>{n.useCssVars(e=>({"2d84b603":e.optionFontSize}))},ji=Ko.setup;Ko.setup=ji?(e,o)=>(Vi(),ji(e,o)):Vi;const Ku="",Qu="";function pd(e,o,t,a,r,i){const s=n.resolveComponent("a-range-picker");return n.openBlock(),n.createElementBlock("div",{class:"ecan-range-picker",style:n.normalizeStyle(e.style)},[n.createVNode(s,{class:"range-picker",dropdownClassName:"ecan-range-picker-dropdown",value:e.myValue,"onUpdate:value":o[0]||(o[0]=l=>e.myValue=l),format:e.format,picker:e.picker,locale:e.locale,getPopupContainer:e.getPopupContainer,"disabled-date":e.disabledDate,onChange:e.change,onCalendarChange:e.calendarChange,onOpenChange:e.openChange,popupStyle:{fontSize:e.optionFontSize}},null,8,["value","format","picker","locale","getPopupContainer","disabled-date","onChange","onCalendarChange","onOpenChange","popupStyle"])],4)}const Wi=pe(ye(Ko,[["render",pd],["__scopeId","data-v-c9c68612"]])),Qo={...ke,width:"200px",name:"按钮",keyName:"按钮",type:"ecanButton",text:"按钮",mode:"default",danger:!1,shape:"default",href:"",target:"self",fontSize:"14px",fontWeight:400,tooltipTextStyleColor:"",buttonBackgroundColor:"#FFFFFF",borderColor:"#d9d9d9"},Jo=Se(Qo),Ui=["click"],bd=n.defineComponent({name:"EcanButton",components:{AButton:ce.Button},props:{...Jo},setup(e){const o=Ce(e),a=Ee(e)("click",()=>{const d=n.unref(s);d&&e.target==="event"&&window.parent.postMessage({type:"openPage",url:d},"*")}),r=n.computed(()=>{const d={};return e.mode!=="primary"&&(d.backgroundColor=e.buttonBackgroundColor||"transparent",d.color=e.tooltipTextStyleColor,d.borderColor=e.borderColor||"transparent"),{height:e.height,...d}}),i=n.computed(()=>De(e.text)),s=n.computed(()=>De(e.href)||null),l=n.computed(()=>{const d=e.target;if(!(d==="event"||n.unref(s)==null))return{self:"_self",blank:"_blank"}[d]});return{style:o,click:a,myText:i,myHref:s,myTarget:l,buttonStyle:r}}}),Xu="";function vd(e,o,t,a,r,i){const s=n.resolveComponent("a-button");return n.openBlock(),n.createElementBlock("div",{class:"ecan-button",style:n.normalizeStyle(e.style)},[n.createVNode(s,{block:"",onClick:e.click,type:e.mode,danger:e.danger,shape:e.shape,href:e.myHref,target:e.myTarget,style:n.normalizeStyle(e.buttonStyle),class:n.normalizeClass(e.tooltipTextStyleColor?"custom-color":"")},{default:n.withCtx(()=>[n.createElementVNode("span",{style:n.normalizeStyle({fontSize:e.fontSize,fontWeight:e.fontWeight})},n.toDisplayString(e.myText),5)]),_:1},8,["onClick","type","danger","shape","href","target","style","class"])],4)}const Gi=pe(ye(bd,[["render",vd]])),Xo={...ke,width:"240px",id:"",left:"0px",top:"0px",name:"复选框",keyName:"复选框",rotate:"",type:"ecanCheckbox",value:[],data:[{label:"选项一",value:"1",checked:!0},{label:"选项二",value:"2",checked:!0},{label:"选项三",value:"3"}],graphicConfig:{}},ea=Se(Xo),$i=["checkboxChange"],Sd=n.defineComponent({name:"EcanCheckbox",components:{ACheckboxGroup:ce.CheckboxGroup},props:{...ea},setup(e,{expose:o}){const t=Ce(e),a=n.ref([]),r=n.ref([]),i=v=>{const B=e.value;let p=[];v.forEach(b=>{b.checked&&p.push(b.value)}),typeof B=="string"&&B!==""?p=p.concat(B.split(",")):Array.isArray(B)&&(p=p.concat(B)),a.value=v,r.value=p};n.watch(()=>[e.data,e.value],([v])=>{i(v)},{immediate:!0,deep:!0});const s=je(e),l=async()=>{var p,b;if(e.dataType!=="request")return;const v=await s(),B=((b=(p=v==null?void 0:v.data)==null?void 0:p.data)==null?void 0:b.rows)||[];i(B)},{getGlobalModel:d,setGlobalModel:c}=n.inject(Be,{getGlobalModel:v=>{},setGlobalModel:(v,B)=>{}});c(e.id,{type:e.type,value:r});const y=Ee(e)("checkboxChange",()=>{const v=d(e.id);c(e.id,{...v,RECORD:r})}),u=lt(e),h=async()=>{var v;try{const B=await u(),{data:p}=(B==null?void 0:B.data)||{};if(p){const x=(((v=B==null?void 0:B.data)==null?void 0:v.data)??[]).map(A=>({label:A.label,value:A.value}));i(x)}else i([])}catch(B){console.error(B)}},m=()=>{switch(e.dataType){case"indicator":h();break;case"request":l();break}},{setRequest:g}=n.inject(Pe,{setRequest:({id:v,sortNum:B,requestFn:p})=>{}});return typeof g=="function"&&g({id:e.id,requestFn:m,sortNum:e.requestSort}),o({refreshData:m}),{myOption:a,style:t,myValue:r,checkboxChange:y}}}),t1="";function Cd(e,o,t,a,r,i){const s=n.resolveComponent("a-checkbox-group");return n.openBlock(),n.createElementBlock("div",{class:"ecan-checkbox",style:n.normalizeStyle(e.style)},[n.createVNode(s,{options:e.myOption,value:e.myValue,"onUpdate:value":o[0]||(o[0]=l=>e.myValue=l),onChange:e.checkboxChange},null,8,["options","value","onChange"])],4)}const Zi=pe(ye(Sd,[["render",Cd]])),ta={...ke,name:"下拉框选择器",keyName:"下拉框选择器",width:"120px",height:"33px",type:"ecanSelect",mode:void 0,data:[{label:"选项一",value:"1"},{label:"选项二",value:"2"},{label:"选项三",value:"3"}],value:void 0,dataFieldNames:{label:"label",value:"value",options:""},maxTagCount:3,autoClearSearchValue:!0,placeholder:"请选择",selectFirstOption:!1,graphicConfig:{},valueType:"value",isAllowClear:!0,optionFontSize:"14px"},na=Se(ta),Yi=["selectChange","refreshData"],wd=n.defineComponent({name:"EcanSelect",components:{ASelect:ce.Select,ASelectOption:ce.SelectOption},props:{...na},setup(e,{expose:o}){const t=Ce(e),a=()=>document.getElementById("ProviderConfig")||document.body,r=je(e),i=n.ref(e.data||[]),s=n.ref(),l=n.computed({get:()=>{var w;const{mode:E}=e;return(w=n.unref(i))!=null&&w.length?s.value:E==="multiple"||E==="tags"||E==="combobox"?[]:""},set:E=>{s.value=E}}),{getGlobalModel:d,setGlobalModel:c,getRecordValueByKeyName:f}=n.inject(Be,{getGlobalModel:E=>{},setGlobalModel:(E,w)=>{},getRecordValueByKeyName:E=>{}});n.watch(()=>[e.value,e.mode,e.selectFirstOption,e.valueType,i.value],()=>{const{mode:E,selectFirstOption:w,value:_}=e,z=f(_);E==="multiple"||E==="tags"||E==="combobox"?z?s.value=z.split(","):w&&(s.value=[n.unref(i)[0]]):z?s.value=z:w&&(s.value=n.unref(i)[0])},{immediate:!0});const y=e.dataFieldNames,u=(E,w)=>{const _=y.label,z=y.value;let q;const W=w[_],$=w[z];return W!=null?q=W:$!=null&&(q=$),(q==null?void 0:q.toLowerCase().indexOf(E==null?void 0:E.toLowerCase()))>=0},h=E=>{const{label:w,value:_,options:z}=e.dataFieldNames;if(z&&Array.isArray(E))if(E.some(q=>z in q)){const q={},W=[];E.forEach($=>{q[$[z]]||(q[$[z]]=[]),q[$[z]].push({[w]:$[w],[_]:$[_]})});for(const $ in q)W.push({[w]:$,[z]:q[$]});return W}else return E;else if(!z)return E},m=n.ref(!1),g=async()=>{var E,w;if(e.dataType==="request"){m.value=!0;try{const _=await r();if(i.value=h(((w=(E=_==null?void 0:_.data)==null?void 0:E.data)==null?void 0:w.rows)||[]),e.selectFirstOption){let z=n.unref(i)[0];if(y.options){const q=z[y.options];q&&q.length&&(z=q[0])}s.value=z[y.value]}}catch(_){console.error(_)}finally{m.value=!1}}},{setLoadedData:v,loadedData:B}=n.inject(bt,{setLoadedData:(E,w)=>{},loadedData:{}}),p=n.computed(()=>{let E=s.value;if(e.valueType==="label"&&n.unref(s)&&n.unref(i)){const w=y.label,_=y.value;if(e.mode==="multiple")E=n.unref(i).filter(z=>n.unref(s).includes(z[_])).map(z=>z[w]);else{const z=n.unref(i).find(q=>n.unref(s)===q[_]);z&&(E=z[w])}}return E}),b=n.ref([]),x=n.computed(()=>{const E={};if(e.mode!=="multiple"){const w=n.unref(b).find(_=>_.value===n.unref(s));w&&(E.itemCodes=w.item_codes)}return E});c(e.id,{type:e.type,value:p,...n.unref(x)});const k=Ee(e)("selectChange",()=>{const E=e.id,w=d(E);c(E,{...w,...n.unref(x),RECORD:p})}),D=(E=[])=>{if(i.value=h(E),e.selectFirstOption){let w=n.unref(i)[0];if(y.options){const _=w[y.options];_&&_.length&&(w=_[0])}s.value=w[y.value]}},O=lt(e),N=async()=>{var E;try{m.value=!0;const w=await O(),{data:_}=(w==null?void 0:w.data)||{},z=y.label,q=y.value;if(_){const W=((E=w==null?void 0:w.data)==null?void 0:E.data)??[];b.value=W;const $=W.map(M=>({[z]:M.label,[q]:M.value})),{id:F}=e,P=d(F);c(F,{...P,...n.unref(x)}),v(F,!0),D($)}else D([])}catch(w){console.error(w)}finally{m.value=!1}},C=n.computed(()=>{var E,w;return(w=(E=e==null?void 0:e.graphicConfig)==null?void 0:E.controlList)==null?void 0:w.find(_=>_.conditionKey==="parentCode")}),T=n.ref(!1);n.watch(B,E=>{!n.unref(T)&&n.unref(C)&&E[n.unref(C).id]&&(T.value=!0,R())},{deep:!0});const R=()=>{switch(e.dataType){case"indicator":{if(n.unref(C)){if(n.unref(B)[n.unref(C).id]){const{mode:E}=e;E==="multiple"||E==="tags"||E==="combobox"?l.value=[]:l.value="",N()}}else N();break}case"request":g();break}};Le(e,{selectChange:k,refreshData:R});const{setRequest:S}=n.inject(Pe,{setRequest:({id:E,sortNum:w,requestFn:_})=>{}});return typeof S=="function"&&S({id:e.id,requestFn:R,sortNum:e.requestSort}),o({refreshData:R}),{style:t,getPopupContainer:a,myValue:s,selectChange:k,options:i,filterOption:u,loading:m,resultValue:l}}}),o1="",a1="";function Ad(e,o,t,a,r,i){const s=n.resolveComponent("a-select-option"),l=n.resolveComponent("a-select");return n.openBlock(),n.createElementBlock("div",{class:"ecan-select",style:n.normalizeStyle(e.style)},[n.createVNode(l,{class:"select",value:e.resultValue,"onUpdate:value":o[0]||(o[0]=d=>e.resultValue=d),placeholder:e.placeholder,showSearch:"",allowClear:e.isAllowClear,mode:e.mode,getPopupContainer:e.getPopupContainer,fieldNames:e.dataFieldNames,maxTagCount:e.maxTagCount,filterOption:e.filterOption,loading:e.loading,autoClearSearchValue:e.autoClearSearchValue,onChange:e.selectChange,style:n.normalizeStyle({fontSize:e.optionFontSize})},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.options,(d,c)=>(n.openBlock(),n.createBlock(s,{key:c,value:d.value,label:d.label,style:n.normalizeStyle({fontSize:e.optionFontSize})},null,8,["value","label","style"]))),128))]),_:1},8,["value","placeholder","allowClear","mode","getPopupContainer","fieldNames","maxTagCount","filterOption","loading","autoClearSearchValue","onChange","style"])],4)}const Ki=pe(ye(wd,[["render",Ad],["__scopeId","data-v-e5517626"]])),oa={...ke,name:"树形下拉框选择器",keyName:"树形下拉框选择器",width:"120px",height:"33px",type:"ecanTreeSelect",multiple:!1,data:[{label:"选项一",value:"1",children:[{label:"子选项一",value:"1-1"},{label:"子选项二",value:"1-2"}]},{label:"选项二",value:"2"},{label:"选项三",value:"3"}],value:"",dataFieldNames:{label:"label",value:"value",children:"children"},maxTagCount:3,placeholder:"请选择",treeCheckable:!1,treeCheckStrictly:!1,selectFirstOption:!1},aa=Se(oa),Qi=["selectChange","refreshData"],kd={name:"EcanTreeSelect",components:{ATreeSelect:ce.TreeSelect},props:{...aa},setup(e){const o=Ce(e),t=n.ref(e.data),a=(h,m)=>{const g=e.dataFieldNames,v=g.label,B=g.value;let p;const b=m[v],x=m[B];return b!=null?p=b:x!=null&&(p=x),(p==null?void 0:p.toLowerCase().indexOf(h==null?void 0:h.toLowerCase()))>=0},r=n.ref();n.watch(()=>[e.multiple,e.value,e.treeCheckable,e.selectFirstOption],()=>{const{multiple:h,value:m,selectFirstOption:g}=e;h?m?r.value=m.split(","):g&&(r.value=[n.unref(t)[0]]):m?r.value=m:g&&(r.value=n.unref(t)[0])},{immediate:!0});const i=n.ref(!1),s=je(e),l=async()=>{var h,m;if(e.dataType==="request"){i.value=!0;try{const g=await s();t.value=((m=(h=g==null?void 0:g.data)==null?void 0:h.data)==null?void 0:m.rows)||[];const v=n.unref(t)[0];e.value===""&&v!=null&&(r.value=v[e.dataFieldNames.value])}catch(g){console.error(g)}finally{i.value=!1}}},{getGlobalModel:d,setGlobalModel:c}=n.inject(Be,{getGlobalModel:h=>{},setGlobalModel:(h,m)=>{}});c(e.id,{type:e.type,value:r});const y=Ee(e)("selectChange",()=>{const h=e.id,m=d(h);c(h,{...m,RECORD:r})});Le(e,{selectChange:y,refreshData:l});const{setRequest:u}=n.inject(Pe,{setRequest:({id:h,sortNum:m,requestFn:g})=>{}});return u({id:e.id,requestFn:l,sortNum:e.reque}),{style:o,treeData:t,filterTreeNode:a,myValue:r,loading:i,selectChange:y}}},i1="",l1="";function Td(e,o,t,a,r,i){const s=n.resolveComponent("a-tree-select");return n.openBlock(),n.createElementBlock("div",{class:"ecan-tree-select",style:n.normalizeStyle(a.style)},[n.createVNode(s,{class:"tree-select",value:a.myValue,"onUpdate:value":o[0]||(o[0]=l=>a.myValue=l),allowClear:"",showSearch:"",loading:a.loading,fieldNames:e.dataFieldNames,treeData:a.treeData,maxTagCount:e.maxTagCount,multiple:e.multiple,treeCheckable:e.treeCheckable,filterTreeNode:a.filterTreeNode,placeholder:e.placeholder,onChange:a.selectChange},null,8,["value","loading","fieldNames","treeData","maxTagCount","multiple","treeCheckable","filterTreeNode","placeholder","onChange"])],4)}const Ji=pe(ye(kd,[["render",Td],["__scopeId","data-v-37236421"]])),ra={...ke,width:"260px",height:"32px",id:"",left:"0px",top:"0px",name:"单选框",keyName:"单选框",rotate:"",type:"ecanRadio",value:"",data:[{label:"选项一",value:"1"},{label:"选项二",value:"2"},{label:"选项三",value:"3"}],optionType:"default",tabBackgroundImage:"",activeTabBackgroundImage:"",activeTabColor:"#1890ff",tabColor:"#333",tabFontSize:"14px",tabHorizontalPadding:"0px",tabBarGutter:"24px",tabFlexDirection:"row",graphicConfig:{},tabTextAlign:""},ia=Se(ra),Xi=["checkboxChange","click"],Bd=n.defineComponent({name:"EcanRadio",components:{ARadioGroup:ce.RadioGroup,ARadioButton:ce.RadioButton,ARadio:ce.Radio},props:{...ia},setup(e,{expose:o}){const t=Ce(e),a=n.ref([]),r=n.ref(""),i=b=>{const x=e.value;let A=[];typeof x=="string"&&x!==""?A=A.concat(x.split(",")):Array.isArray(x)&&(A=A.concat(x)),a.value=b,r.value=A[0]||""};n.watch(()=>[e.data,e.value],([b])=>{i(b)},{immediate:!0,deep:!0});const s=je(e),l=async()=>{var A,k;if(e.dataType!=="request")return;const b=await s(),x=((k=(A=b==null?void 0:b.data)==null?void 0:A.data)==null?void 0:k.rows)||[];i(x)},{getGlobalModel:d,setGlobalModel:c}=n.inject(Be,{getGlobalModel:b=>{},setGlobalModel:(b,x)=>{}});c(e.id,{type:e.type,value:r});const f=Ee(e),y=f("checkboxChange",()=>{const b=d(e.id);c(e.id,{...b,RECORD:r})}),u=b=>{r.value=b,f("click",()=>{const x=d(e.id);c(e.id,{...x,RECORD:r})})()};n.watch(r,()=>{y()});const h=lt(e),m=async()=>{var b;try{const x=await h(),{data:A}=(x==null?void 0:x.data)||{};if(A){const D=(((b=x==null?void 0:x.data)==null?void 0:b.data)??[]).map(O=>({label:O.label,value:O.value}));i(D)}else i([])}catch(x){console.error(x)}},g=()=>{switch(e.dataType){case"indicator":m();break;case"request":l();break}},{setRequest:v}=n.inject(Pe,{setRequest:({id:b,sortNum:x,requestFn:A})=>{}});typeof v=="function"&&v({id:e.id,requestFn:g,sortNum:e.requestSort});const B=b=>{r.value=b.value},p=n.computed(()=>e.tabFlexDirection==="column"?{display:"flex",height:"30px",lineHeight:"30px"}:{});return o({refreshData:g}),{myOption:a,style:t,myValue:r,radioStyle:p,onClickButton:u,useImagePath:At,tabChange:B}}}),c1="",d1="",Ed=["onClick"];function Dd(e,o,t,a,r,i){const s=n.resolveComponent("a-radio"),l=n.resolveComponent("a-radio-button"),d=n.resolveComponent("a-radio-group");return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["ecan-radio",e.optionType]),style:n.normalizeStyle(e.style)},[e.tabBackgroundImage&&e.activeTabBackgroundImage?(n.openBlock(),n.createElementBlock("div",{key:0,class:"tabs-header",style:n.normalizeStyle({fontSize:e.tabFontSize,flexDirection:e.tabFlexDirection,alignItems:e.tabTextAlign})},[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.myOption,(c,f)=>(n.openBlock(),n.createElementBlock("div",{class:"tab",style:n.normalizeStyle({padding:`5px ${e.tabHorizontalPadding}`,color:e.myValue===c.value?e.activeTabColor:e.tabColor,backgroundImage:e.myValue===c.value?e.useImagePath(e.activeTabBackgroundImage,!0):e.useImagePath(e.tabBackgroundImage,!0),marginRight:e.tabFlexDirection==="row"?e.tabBarGutter:"0",marginBottom:e.tabFlexDirection==="column"?e.tabBarGutter:"0"}),key:f,onClick:n.withModifiers(y=>e.tabChange(c),["prevent","stop"])},[n.createElementVNode("div",{class:"tab-inner",style:n.normalizeStyle({borderBottom:!e.activeTabBackgroundImage&&!e.tabBackgroundImage?`1px solid ${e.myValue===c.value?e.activeTabColor:"transparent"}`:""})},n.toDisplayString(c.label),5)],12,Ed))),128))],4)):(n.openBlock(),n.createBlock(d,{key:1,value:e.myValue,"onUpdate:value":o[0]||(o[0]=c=>e.myValue=c)},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.myOption,c=>(n.openBlock(),n.createElementBlock(n.Fragment,{key:c.value},[e.optionType==="default"?(n.openBlock(),n.createBlock(s,{key:0,value:c.value,style:n.normalizeStyle(e.radioStyle)},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(c.label),1)]),_:2},1032,["value","style"])):e.optionType==="button"?(n.openBlock(),n.createBlock(l,{key:1,value:c.value,onClick:f=>e.onClickButton(c.value)},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(c.label),1)]),_:2},1032,["value","onClick"])):n.createCommentVNode("",!0)],64))),128))]),_:1},8,["value"]))],6)}const el=pe(ye(Bd,[["render",Dd],["__scopeId","data-v-baa84768"]])),la={...ke,id:"",name:"饼图",keyName:"饼图",type:"ecanPie",width:"400px",height:"400px",top:"",left:"",rotate:"",data:[{name:"名称一",value:335},{name:"名称二",value:310},{name:"名称三",value:234}],titleText:"",titleSubtext:"",titleFontSize:"12px",titleColor:"#333",fontWeight:400,textAlign:"left",titleLeft:"",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],backgroundColor:"",tooltipShow:!0,toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,tooltipTextStyleColor:"",tooltipTrigger:"item",tooltipFormatter:"{marker} {b} {c} ({d}%)",legendShow:!0,legendTextStyleColor:"#333",legendOrient:"vertical",legendTop:"top",legendLeft:"left",innerRadius:"0%",outerRadius:"60%",centerLeft:"50%",centerTop:"50%",minAngle:0,labelShow:!0,labelColor:"#333",labelWidth:100,labelOverflow:"none",isUseLabelColors:!1,labelFontSize:12,labelPosition:"outside",labelFormatter:"{b}\\n{d}%",labelLineShow:!0,labelLineLength:10,labelLineLength2:15,roseType:"",valueTypeDataFieldNames:{name:"name",value:"value",type:"type"},dataFieldConfigType:"value",gridContainLabel:!0,gridTop:"10%",gridBottom:"10%",gridLeft:"5%",gridRight:"5%",graphicConfig:{},toolboxShow:!1,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息",legendItemGap:10,legendItemWidth:25,legendItemHeight:14,legendFormatter:"{name}",legendFontSize:"12px",tooltipPosition:"",graphicType:"ecanPie",legendWidth:null,legendHeight:null,legendTextWidth:null,legendScroll:!1},sa=Se(la),tl=["click","refreshData","resetRecord"],$t=async e=>{var d;const o=await dt.post(e,{},{responseType:"blob"}),{data:t,headers:a}=o,r=a["content-disposition"].replace(/\w+;filename=(.*)/,"$1"),i=new Blob([t]),s=document.createElement("a"),l=window.URL.createObjectURL(i);s.href=l,s.download=decodeURI(r),s.style.display="none",document.body.appendChild(s),s.click(),(d=s.parentNode)==null||d.removeChild(s),window.URL.revokeObjectURL(l)},ca={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:[]},da=Se(ca),nl=["showModal","hideModal"];function ol(e){const{containerMap:o={},sourceList:t=[]}=e,a=Ne.cloneDeep(e.componentList),r=a.filter(i=>i.type==="ecanTabs"&&i.isAutoScroll);if(r!=null&&r.length)for(const i of r){const s=o[i.id],l=[];if((!Gt(i,"componentList")||!(i!=null&&i.componentList))&&(i.componentList=[]),s){let d=0;for(const c in s){const f=s[c],y=[];if(f!=null&&f.length)for(const u of f){let h=a.find(m=>m.id===u);h||(h=t.find(m=>m.id===u)),h&&(y.push(h),["ecanBorder","ecanTabs"].includes(h.type)&&y.push(...Sn(h.id,o,t)))}for(const u of y)Gt(u,"scale")?parseFloat(c)>0&&(u.left=parseFloat(u.left)+d+"px"):(u.left=parseFloat(u.sourceLeft||u.left)-parseFloat(i.sourceLeft||i.left)+d+"px",u.top=parseFloat(u.sourceTop||u.top)-parseFloat(i.sourceTop||i.top)+"px"),l.includes(u.id)||l.push(u.id);i.componentList.push(...y),d=Nd(y)}}for(const d of l){const c=a.findIndex(f=>f.id===d);c!==-1&&a.splice(c,1)}}return a}function al(e){var i,s;const{combinationMap:o={},sourceList:t=[]}=e,a=e.containerMap,r=Ne.cloneDeep([...e.componentList,...Id(a,t)]);if(Rd(a,r),(i=Object.keys(a))!=null&&i.length||(s=Object.keys(o))!=null&&s.length){for(const u in a){const h=r.find(m=>m.id===u);if(h){Gt(h,"parentId")||(h.parentId="",h.sourceLeft=h.left,h.sourceTop=h.top);for(const m in a[u])if(a[u][m])for(const g of a[u][m]){const v=r.find(B=>B.id===g);v&&(v.parentId=u,v.sourceLeft=v.left,v.sourceTop=v.top,v.left=parseFloat(v.left)-parseFloat(h.sourceLeft||h.left)+"px",v.top=parseFloat(v.top)-parseFloat(h.sourceTop||h.top)+"px")}}}const l=Array.from(new Set(r.filter(u=>(!Gt(u,"parentId")||u.parentId==="")&&u.combinationId).map(u=>u.combinationId))),d=_d(l,{...e,componentList:r});d!=null&&d.length&&r.unshift(...d);const c=["ecanPie","ecanLine","ecanBar","ecanScatter","ecanComboGraph","ecanCustomGraph","ecanRadar","ecanMap"],f=r.filter(u=>c.includes(u.type)&&!Gt(u,"parentId")),y=[];for(const u of f)if(u){const h=u.id+"_vir";y.push({id:h,keyName:u.keyName+"_vir",parentId:"",type:"ecanBorder",borderRadius:"",borderWidth:null,width:u.width,height:u.height,left:u.left,top:u.top,sourceLeft:u.left,sourceTop:u.top}),u.parentId=h,u.sourceLeft=u.left,u.sourceTop=u.top,u.left=0,u.top=0}y!=null&&y.length&&r.unshift(...y);for(const u of r){const h=document.body.clientWidth;if(u.parentId===""&&["ecanBorder","ecanTabs"].includes(u.type))u.sourceWidth=parseFloat(u.width),u.height=(h/(u.sourceWidth/parseFloat(u.height))).toFixed(2)+"px",u.width="100%",u.position="relative",u.top="auto",u.left="auto";else{const m=r.find(g=>g.id===u.parentId);if((m==null?void 0:m.parentId)===""){const g=m.sourceWidth||parseFloat(m.width),v=h/g;u.scale=v,u.top=parseFloat(u.top)*v-parseFloat(u.height)*(1-v)/2+"px",u.left=parseFloat(u.left)*v-parseFloat(u.width)*(1-v)/2+"px"}}u.type==="ecanModal"&&(u.parentId="",u.fullModal=!0)}return Od(r)}return r}function Rd(e,o){const t=Ne.cloneDeep(e),a=o.filter(r=>r.type==="ecanTabs"&&r.isAutoScroll);if(a!=null&&a.length)for(const r of a){const i=t[r.id];for(const s in i)for(const l of i[s]){const d=o.find(c=>c.id===l);if(d&&["ecanBorder","ecanTabs"].includes(d.type)){const c=Sn(d.id,t,o);for(const f of c)e[r.id][s].push(f.id),["ecanBorder","ecanTabs"].includes(f.type)&&delete e[f.id];delete e[d.id]}}}}function Id(e,o){const t=[],a=o.filter(r=>r.type==="ecanTabs"&&r.isAutoScroll);if(a!=null&&a.length)for(const r of a){const i=e[r.id];for(const s in i)if(parseFloat(s)>0)for(const l of i[s]){const d=o.find(c=>c.id===l);d&&(t.push(d),["ecanBorder","ecanTabs"].includes(d.type)&&t.push(...Sn(d.id,e,o)))}}return t}function Sn(e,o,t){const a=[],r=o[e];for(const i in r)for(const s of r[i]){const l=t.find(d=>d.id===s);l&&(a.push(l),["ecanBorder","ecanTabs"].includes(l.type)&&a.push(...Sn(l.id,o,t)))}return a}function _d(e,o,t){const{combinationMap:a={},componentList:r=[]}=o,i=[];for(const s of e){const l=a[s];if(l!=null&&l.length){const d=r.filter(c=>l.includes(c.id));if(d!=null&&d.length){const c=Ld(d);if(c){i.push({...c,id:s,keyName:s,parentId:t||"",type:"ecanBorder",borderRadius:"",borderWidth:null,sourceLeft:c.left,sourceTop:c.top});for(const f of d)f&&(f.parentId=s,f.sourceLeft=f.left,f.sourceTop=f.top,f.left=parseFloat(f.left)-parseFloat(c.left)+"px",f.top=parseFloat(f.top)-parseFloat(c.top)+"px")}}}}return i}function Od(e){const t=e.filter(a=>a.parentId==="");if(t!=null&&t.length){const a=Ne.cloneDeep(t).map(r=>({...r,sourceTop:parseFloat(r.sourceTop),sourceLeft:parseFloat(r.sourceLeft)}));for(let r=0;r<a.length-1;r++)for(let i=0;i<a.length-r-1;i++){let s=!1;if((a[i].sourceTop-a[i+1].sourceTop>50||Math.abs(a[i+1].sourceTop-a[i].sourceTop)<=50&&a[i].sourceLeft>a[i+1].sourceLeft)&&(s=!0),s){const l=a[i];a[i]=a[i+1],a[i+1]=l}}for(const r of a){const i=e.findIndex(s=>s.id===r.id);i!==-1&&e.splice(i,1)}return[...a,...e]}return e}function Ld(e){const o=e.sort((i,s)=>parseFloat(i.top)-parseFloat(s.top))[0],t=e.sort((i,s)=>parseFloat(i.left)-parseFloat(s.left))[0],a=e.map(i=>({...i,computedTop:parseFloat(i.top)+parseFloat(i.height)})).sort((i,s)=>s.computedTop-i.computedTop)[0],r=e.map(i=>({...i,computedLeft:parseFloat(i.left)+parseFloat(i.width)})).sort((i,s)=>s.computedLeft-i.computedLeft)[0];return o&&t&&a&&r?{left:t.left,top:o.top,width:r.computedLeft-parseFloat(t.left)+"px",height:a.computedTop-parseFloat(o.top)+"px"}:null}function Nd(e){const o=e.map(t=>parseFloat(t.left)+parseFloat(t.width)).sort((t,a)=>a-t)[0];return o||0}const Fd=n.defineComponent({name:"Render",props:{component:{type:Object,default:()=>{}}},setup(e,{emit:o}){o("ready",e.component.id)}});function zd(e,o,t,a,r,i){return e.component.parentId?(n.openBlock(),n.createBlock(n.Teleport,{key:0,to:"#container_"+e.component.parentId},[(n.openBlock(),n.createBlock(n.resolveDynamicComponent(e.component.type),n.mergeProps({style:{scale:e.component.scale}},e.component),null,16,["style"]))],8,["to"])):(n.openBlock(),n.createBlock(n.resolveDynamicComponent(e.component.type),n.normalizeProps(n.mergeProps({key:1},e.component)),null,16))}const Md=pe(ye(Fd,[["render",zd]])),Pd=n.defineComponent({name:"EcanModal",components:{AModal:ce.Modal,CloseOutlined:J0,Render:Md},props:{...da},setup(e,{emit:o}){const t=n.ref([]),a=n.inject("isMobile",!1),r=n.inject("getContainerMap",()=>{}),i=n.inject("getCombinationMap",()=>{}),{clearInteractiveData:s,interactiveData:l}=n.inject(Be,{clearInteractiveData:()=>{},interactiveData:null}),d=()=>document.getElementById("ProviderConfig")||document.body,c=n.computed(()=>{const Q=e.position;return{verticalAlign:{default:"",top:"top",center:"middle",bottom:"bottom"}[Q]}}),f=e.fullModal?"1920px":e.width,y=e.fullModal?"1080px":e.height,u=e.originalWidth,h=e.originalHeight,m=n.ref("80%"),g=n.ref(0),v=n.ref(),B=n.ref(0),p=n.ref({}),b=Ce(e),x=n.ref({}),A=n.ref(!1),k=n.ref();let D;const O=()=>{v.value=parseFloat(f)/parseFloat(u);const Q=parseFloat(y)/parseFloat(h),le=document.body.offsetWidth,re=document.body.offsetHeight;g.value=le*n.unref(v),B.value=re*Q,m.value=`${n.unref(v)*100}%`,p.value={width:`${n.unref(g)}px`,height:`${n.unref(B)}px`,border:`${e.borderWidth} solid ${e.borderColor}`,borderRadius:e.borderRadius+"px",boxShadow:e.boxShadow},x.value={...n.unref(b),backgroundImage:At(e.backgroundImage,!0)},a?x.value={...x.value,width:"100%",height:"100%"}:x.value={...x.value,transform:`scale(${n.unref(g)/parseFloat(f)},${n.unref(B)/parseFloat(y)})`,width:f,height:y}},N=Ne.debounce(()=>{O()},100),C=()=>{const Q=window.MutationObserver;D=new Q(N),D.observe(document.body,{attributes:!0,attributeFilter:["style"],attributeOldValue:!0})},T=()=>{D&&(D.disconnect(),D.takeRecords(),D=null)},R=n.ref(!1),{touchRequest:S}=n.inject(Pe,{touchRequest:()=>{}}),E=n.ref(""),w=()=>{var re;const{title:Q}=e,le=(re=n.unref(l))==null?void 0:re.RECORD;return le?De(Q,{textData:le},{useNewline:!1,useSpace:!1}):Q},_=Ee(e),z=()=>{a&&(document.documentElement.style.overflow="hidden"),E.value=w(),R.value=!0},q=_("hideModal",()=>{o("close"),a&&(document.documentElement.style.overflow="hidden auto",t.value=[]),R.value=!1}),W=()=>{q()},$=()=>{q(),s()},{setModalModel:F,pushUseModalIds:P,popUseModalIds:M}=n.inject(ur,{pushUseModalIds:Q=>{},popUseModalIds:()=>{},setModalModel:(Q,le)=>{}}),I=n.computed(()=>{let Q=e.componentList;const le=Ne.cloneDeep(e.componentList),re=r(),K=i(),X={containerMap:re,combinationMap:K};return a&&(Q=al({...X,componentList:le,sourceList:e.allComponentList})),Q=ol({...X,componentList:Q,sourceList:e.allComponentList}),Q}),L=()=>{const Q=e.id;let le=[];const re=e.componentList;Array.isArray(re)&&(le=re.map(K=>K.id),F(Q,[...new Set(le)]))};n.watch(()=>R.value,async Q=>{Q?(A.value=!1,P(e.id),L(),await n.nextTick(()=>{O(),window.addEventListener("resize",N),C(),A.value=!0}),S()):(M(),window.removeEventListener("resize",N),T())});const H=n.computed(()=>n.unref(v)>=1),Y=n.computed(()=>e.fullModal),U=n.computed(()=>{let Q="ecan-modal";return n.unref(H)&&(Q+=" ecan-full-width-modal"),n.unref(Y)&&(Q+=" ecan-full-modal"),Q});return Le(e,{showModal:z,hideModal:q}),{modalRef:k,containStyle:p,contentStyle:x,getContainer:d,modalStyle:c,modalWith:m,isFullModal:Y,style:b,visible:R,showModal:z,onOk:W,onCancel:$,isFullWidth:H,wrapClassName:U,ready:A,usedComponentList:I,isMobile:a,readyIds:t,hasOwn:Gt,onComponentReady:Q=>{t.value.push(Q)},formatTitle:E}}}),h1="",g1="";function qd(e,o,t,a,r,i){const s=n.resolveComponent("close-outlined"),l=n.resolveComponent("render"),d=n.resolveComponent("a-modal");return n.openBlock(),n.createBlock(d,{getContainer:e.getContainer,wrapClassName:e.wrapClassName,centered:"",visible:e.visible,footer:null,width:e.isFullModal||e.isFullWidth?"100%":e.modalWith,destroyOnClose:e.destroyOnClose,style:n.normalizeStyle(e.modalStyle),closable:!1,onOk:e.onOk,onCancel:e.onCancel,ref:"modalRef",id:"container_"+e.id},{default:n.withCtx(()=>[n.createElementVNode("div",{class:"contain",ref:"containRef",style:n.normalizeStyle(e.containStyle)},[e.ready?(n.openBlock(),n.createElementBlock("div",{key:0,class:"content",style:n.normalizeStyle(e.contentStyle)},[n.createElementVNode("div",{class:"header-bar",style:n.normalizeStyle({backgroundColor:e.backgroundColor,padding:"20px 30px",height:e.isMobile?"62px":""})},[e.formatTitle?(n.openBlock(),n.createElementBlock("div",{key:0,class:"ant-modal-title",style:n.normalizeStyle({fontSize:e.titleFontSize,color:e.titleColor})},n.toDisplayString(e.formatTitle),5)):n.createCommentVNode("",!0),e.isShowCloseBtn?(n.openBlock(),n.createBlock(s,{key:1,class:"close-icon",style:n.normalizeStyle({color:e.closeBtnColor}),onClick:e.onCancel},null,8,["style","onClick"])):n.createCommentVNode("",!0)],4),e.usedComponentList.length?(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass(e.isMobile?"mobile-wrap":"")},[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.usedComponentList,(c,f)=>(n.openBlock(),n.createElementBlock(n.Fragment,{key:c.id+f},[e.isMobile?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[e.hasOwn(c,"parentId")&&(e.readyIds.includes(c.parentId)||c.parentId==="")?(n.openBlock(),n.createBlock(l,{key:0,component:c,onReady:e.onComponentReady},null,8,["component","onReady"])):n.createCommentVNode("",!0)],64)):(n.openBlock(),n.createBlock(n.resolveDynamicComponent(c.type),n.normalizeProps(n.mergeProps({key:1},c)),null,16))],64))),128))],2)):n.renderSlot(e.$slots,"default",{key:1},void 0,!0)],4)):n.createCommentVNode("",!0)],4)]),_:3},8,["getContainer","wrapClassName","visible","width","destroyOnClose","style","onOk","onCancel","id"])}const kt=pe(ye(Pd,[["render",qd],["__scopeId","data-v-613a7718"]]));Qe.use([Et.CanvasRenderer,ht.PieChart,ve.TitleComponent,ve.ToolboxComponent,ve.TooltipComponent,ve.LegendComponent]);const Hd=n.defineComponent({name:"EcanPie",props:{...sa},components:{Spin:Nt,Echarts:xt,EcanModal:kt},setup(e,{expose:o}){const t=n.ref(!1),a=Ce(e),r=n.ref([]),i=n.ref(),s=n.ref({}),l=n.computed(()=>{let{data:T=[]}=n.unref(r)[0]||{};if(Array.isArray(e.colors)){const R=e.isUseLabelColors,S=e.colors;T=T.map((E,w)=>({label:R?{color:S[w]}:{},...E}))}return{toolbox:{show:e.toolboxShow,left:e.toolboxLeft,top:e.toolboxTop,itemSize:e.toolboxItemSize,itemGap:e.toolboxItemGap,feature:{myDownload:{show:e.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(){$t(e.toolboxDownloadUrl)}},myDataZoom:{show:t.value?!1:e.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 R;t.value=!0,(R=i.value)==null||R.showModal()}},myInfo:{show:e.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(){ce.Modal.info({title:"说明信息",content:e.toolboxInfoText})}}}},title:{text:e.titleText,subtext:e.titleSubtext,textStyle:{fontSize:e.titleFontSize,fontWeight:e.fontWeight,color:e.titleColor},left:e.textAlign},grid:{top:e.gridTop,bottom:e.gridBottom,left:e.gridLeft,right:e.gridRight,containLabel:e.gridContainLabel},tooltip:{show:e.tooltipShow,trigger:e.tooltipTrigger,formatter:R=>{const{marker:S,seriesName:E,name:w,value:_,percent:z,data:q}=R||{};return De(e.tooltipFormatter,{textData:{marker:S,name:w,value:_,percent:z,a:E,b:w,c:_,d:z,...q}},{useNewline:!0,useSpace:!0})},textStyle:{color:e.tooltipTextStyleColor},position:e.tooltipPosition||void 0},legend:n.unref(s),color:e.colors,series:[{data:T,type:"pie",radius:[e.innerRadius,e.outerRadius],center:[e.centerLeft,e.centerTop],roseType:e.roseType,avoidLabelOverlap:!0,minAngle:e.minAngle,label:{show:e.labelPosition!=="center"&&e.labelShow,color:e.labelColor,fontSize:t.value?Ue:e.labelFontSize,position:e.labelPosition,formatter:Ec(e.labelFormatter),width:e.labelWidth,overflow:e.labelOverflow},labelLine:{show:e.labelLineShow,length:e.labelLineLength,length2:e.labelLineLength2},emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"},label:{}}}]}}),d=()=>{const T=t.value?Ue:parseFloat(e.legendFontSize);s.value={type:e.legendScroll?"scroll":"plain",width:e.legendWidth,height:e.legendHeight,show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,align:"left",textStyle:{lineHeight:T+8,rich:{text:{width:e.legendTextWidth,color:e.legendTextStyleColor,fontSize:T}}},itemHeight:e.legendItemHeight,itemWidth:e.legendItemWidth,itemGap:e.legendItemGap,formatter:R=>{const{data:S}=r.value[0]||{};let E=0,w,_="0%";if(S)for(const z of S)z.name===R&&(w=+z.value),E+=+z.value;return E&&(_=`${(w/E*100).toFixed(2)}%`),nn(e.legendFormatter,{name:R,value:w,percent:_})}}},c=()=>{t.value=!1},{getGlobalModel:f,setGlobalModel:y}=n.inject(Be,{getGlobalModel:T=>{},setGlobalModel:(T,R)=>{}}),{pageMode:u}=n.inject(Me,{pageMode:"normal"}),h=(T=[],R)=>{const{dataset:S}=Ft(T,R);r.value=S},m=(T=[],R)=>{const S=Ft(T,R);r.value=S.dataset};n.watch(()=>e.data,T=>{(e.dataType==="static"||n.unref(u)==="design")&&h(T)},{immediate:!0,deep:!0}),n.watch(()=>[e.legendShow,e.legendOrient,e.legendTop,e.legendLeft,e.legendTextStyleColor,e.labelFontSize,e.legendItemHeight,e.legendItemWidth,e.legendItemGap,e.legendFormatter,e.legendFontSize,e.legendWidth,e.legendHeight,e.legendTextWidth,e.legendScroll],()=>{d()},{immediate:!0});const g=n.ref(!1),v=je(e),B=async()=>{var T,R;if(e.dataType==="request")try{g.value=!0;const S=await v();h((R=(T=S==null?void 0:S.data)==null?void 0:T.data)==null?void 0:R.rows,e.valueTypeDataFieldNames)}catch(S){console.error(S)}finally{g.value=!1}},p=Ee(e);y(e.id,{type:e.type,RECORD:""});const b=p("click",T=>{const R=f(e.id);y(e.id,{...R,type:e.type,RECORD:T==null?void 0:T.data})}),x=lt(e),A=async()=>{var T;try{g.value=!0;const R=await x(),{data:S}=(R==null?void 0:R.data)||{};if(S){const{columns:E=[],rows:w=[]}=((T=R==null?void 0:R.data)==null?void 0:T.data)??{};let _=[];if(E.length>0){const z=E[0],q=E[1];_=w.filter(W=>!!W).map(W=>({name:W[z],value:isNaN(W[q])?0:W[q]||0}))}m(_)}}catch(R){console.error(R)}finally{g.value=!1}},{loadedData:k}=n.inject(bt,{loadedData:{}}),D=n.ref(!1);n.watch(k,T=>{if(e.dataType==="indicator"){const R=tn(e.graphicConfig);R!=null&&R.length&&(!n.unref(D)&&rt(e.graphicConfig,T)?(D.value=!0,O()):rt(e.graphicConfig,T)||(D.value=!1))}},{deep:!0});const O=()=>{switch(e.dataType){case"indicator":rt(e.graphicConfig,n.unref(k))&&A();break;case"request":B();break}};Le(e,{resetRecord:()=>{const T=e.id,R=f(T);y(T,{...R,RECORD:""})},refreshData:O,click:b}),o({refreshData:O});const{setRequest:C}=n.inject(Pe,{setRequest:T=>{}});return typeof C=="function"&&C({id:e.id,requestFn:O,sortNum:e.requestSort}),{option:l,style:a,click:b,onClose:c,loading:g,ecanModal:i}}}),y1="";function Vd(e,o,t,a,r,i){const s=n.resolveComponent("echarts"),l=n.resolveComponent("spin"),d=n.resolveComponent("ecan-modal");return n.openBlock(),n.createElementBlock("div",{style:n.normalizeStyle(e.style)},[n.createVNode(l,{spinning:e.loading},{default:n.withCtx(()=>[n.createVNode(s,{option:e.option,autoresize:"",onClick:e.click},null,8,["option","onClick"])]),_:1},8,["spinning"]),n.createVNode(d,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:e.onClose},{default:n.withCtx(()=>[n.createVNode(l,{class:"spin-wrap",spinning:e.loading},{default:n.withCtx(()=>[n.createVNode(s,{option:e.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"])],4)}const rl=pe(ye(Hd,[["render",Vd]])),fa={...ke,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:""},ua=Se(fa),il=["click","refreshData","resetRecord"];Qe.use([Et.CanvasRenderer,ht.LineChart,ve.ToolboxComponent,ve.TitleComponent,ve.LegendComponent,ve.MarkLineComponent]);const jd=n.defineComponent({name:"EcanLine",props:{...ua},components:{Spin:Nt,Echarts:xt,EcanModal:kt},setup(e,{expose:o}){const t=n.ref(),a=n.ref(!1),r=Ce(e),i=n.ref([]),s=n.ref([]),l=n.ref(),d=n.computed(()=>a.value?Ue:12),c=n.ref({});let f;const y=n.ref([]),u=n.computed(()=>{const w=e.xAxisLabelFormatter,_=e.yAxisLabelFormatter;return{toolbox:{show:e.toolboxShow,left:e.toolboxLeft,top:e.toolboxTop,itemSize:e.toolboxItemSize,itemGap:e.toolboxItemGap,feature:{myDownload:{show:e.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(){$t(e.toolboxDownloadUrl)}},myDataZoom:{show:a.value?!1:e.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 z;a.value=!0,(z=l.value)==null||z.showModal()}},myInfo:{show:e.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(){ce.Modal.info({title:"说明信息",content:e.toolboxInfoText})}}}},title:{text:e.titleText,subText:e.titleSubtext,textStyle:{fontSize:e.titleFontSize,fontWeight:e.fontWeight,color:e.titleColor},left:e.textAlign},grid:{top:e.gridTop,bottom:e.gridBottom,left:e.gridLeft,right:e.gridRight,containLabel:e.gridContainLabel},color:e.colors,tooltip:{trigger:"axis",textStyle:{fontSize:d.value},show:e.tooltipShow,formatter:z=>{var F;const q=z.length;let W="",$=e.tooltipFormatter;f=(F=z[0])==null?void 0:F.data,$===""&&($="{marker} {a} {c}");for(let P=0;P<q;P++){const{marker:M,seriesName:I,name:L,value:H,data:Y}=z[P]||{};if(P===0){let U=L;typeof L=="string"&&L[0]==="0"&&!isNaN(+L)&&(U=(+L).toString()),W+=`${it(w,U)}<br/>`}W+=De($,{textData:{marker:M,name:L,value:H,a:I,b:L,c:H||0,...Y}},{useNewline:!0,useSpace:!0}),W+="<br/>"}return W},position:e.tooltipPosition||void 0},xAxis:{type:"category",boundaryGap:e.isBoundaryGap,data:n.unref(s).map(z=>{let q={};return z&&typeof z=="object"?q={...z}:q={value:z},q}),minInterval:e.xAxisMinInterval,splitLine:{show:e.xAxisSplitLineShow,lineStyle:{color:e.xAxisSplitLineStyleColor},interval:e.xAxisSplitLineInterval},splitArea:{show:e.xAxisSplitAreaShow},axisLabel:{color:e.xAxisLabelColor,interval:e.xAxisLabelInterval||0,rotate:e.xAxisLabelRotate,width:e.xAxisLabelWidth,overflow:e.xAxisLabelOverflow,fontSize:e.xAxisLabelFontSize,formatter(z){return typeof z=="string"&&z[0]==="0"&&!isNaN(+z)&&(z=(+z).toString()),it(w,z)}},axisLine:{show:e.xAxisLineShow,lineStyle:{color:e.xAxisLineStyleColor}},axisTick:{show:e.xAxisTickShow},name:e.xAxisName,nameTextStyle:{fontSize:e.xAxisLabelFontSize,color:e.xAxisLabelColor,align:"left"}},yAxis:{type:"value",minInterval:e.yAxisMinInterval,splitLine:{show:e.yAxisSplitLineShow,lineStyle:{color:e.yAxisSplitLineStyleColor,type:e.yAxisSplitLineType}},splitArea:{show:e.yAxisSplitAreaShow},axisLabel:{show:e.yAxisLabelShow,fontSize:e.yAxisLabelFontSize,color:e.yAxisLabelColor,formatter(z){return it(_,z)}},axisLine:{show:e.yAxisLineAlwaysDisplay,lineStyle:{color:e.yAxisLineStyleColor}},name:e.yAxisName,nameTextStyle:{fontSize:e.yAxisLabelFontSize,color:e.yAxisLabelColor,align:"right"}},legend:{type:e.legendScroll?"scroll":"plain",width:e.legendWidth,height:e.legendHeight,show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,textStyle:{lineHeight:(a.value?Ue:parseFloat(e.legendFontSize))+8,rich:{text:{width:e.legendTextWidth,color:e.legendTextStyleColor,fontSize:a.value?Ue:e.legendFontSize}}},itemHeight:e.legendItemHeight,itemWidth:e.legendItemWidth,itemGap:e.legendItemGap,data:n.unref(y).map(z=>({name:z.name,icon:e.legendType})),formatter:z=>nn(e.legendFormatter,{name:z})},series:n.unref(i)}}),h=()=>{a.value=!1},{getGlobalModel:m,setGlobalModel:g}=n.inject(Be,{getGlobalModel:w=>{},setGlobalModel:(w,_)=>{}}),{pageMode:v}=n.inject(Me,{pageMode:"normal"}),B=n.computed(()=>e.isShowMarkLine?{markLine:{data:[{type:e.markLineType}]}}:{}),p=(w=[],_=!1)=>{let z;if(e.dataFieldConfigType==="key"){const F=_?e.keyTypeDataFieldNames:null;z=wt(w,F)}else if(e.dataFieldConfigType==="value"){const F=_?e.valueTypeDataFieldNames:null;z=Ft(w,F)}s.value=z.dimensions,y.value=z.dataset;const q=z.dataset,W=[],$=q.length;for(let F=0;F<$;F++){const P={};e.shadowColor&&(P.shadowColor=e.shadowColor,P.shadowBlur=e.shadowBlur,P.shadowOffsetY=e.shadowOffsetY,P.shadowOffsetX=e.shadowOffsetX),W.push({type:"line",...q[F],symbolSize:e.symbolSize,smooth:e.smooth,areaStyle:{color:e.areaGradientShow?{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:e.colors[F]},{offset:1,color:e.areaGradientColor||"transparent"}],global:!1}:e.colors[F],opacity:e.areaStyleOpacity},lineStyle:{width:e.lineStyleWidth,...P},...n.unref(B)})}i.value=W},b=(w=[],_,z=!1)=>{const W=wt(w,z?_:null,!0);s.value=W.dimensions,y.value=W.dataset;const $=W.dataset,F=[],P=$.length;for(let M=0;M<P;M++){const I={};e.shadowColor&&(I.shadowColor=e.shadowColor,I.shadowBlur=e.shadowBlur,I.shadowOffsetY=e.shadowOffsetY,I.shadowOffsetX=e.shadowOffsetX),F.push({type:"line",...$[M],symbolSize:e.symbolSize,smooth:e.smooth,areaStyle:{color:e.areaGradientShow?{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:e.colors[M]},{offset:1,color:e.areaGradientColor||"transparent"}],global:!1}:e.colors[M],opacity:e.areaStyleOpacity},lineStyle:{width:e.lineStyleWidth,...I},...n.unref(B)})}i.value=F};n.watch(()=>[e.data,e.symbolSize,e.smooth,e.lineStyleWidth,e.areaStyleOpacity,e.areaGradientShow,e.areaGradientColor,e.shadowColor,e.shadowBlur,e.shadowOffsetY,e.shadowOffsetX,e.legendFontSize,e.isShowMarkLine,e.markLineType,e.legendFormatter,e.legendWidth,e.legendHeight,e.legendTextWidth,e.legendScroll],([w])=>{(e.dataType==="static"||n.unref(v)==="design")&&p(w)},{immediate:!0,deep:!0});const x=n.ref(!1),A=je(e),k=async()=>{var w,_;if(e.dataType==="request")try{x.value=!0;const z=await A();p((_=(w=z==null?void 0:z.data)==null?void 0:w.data)==null?void 0:_.rows,!0)}catch(z){console.error(z)}finally{x.value=!1}},D=Ee(e);g(e.id,{type:e.type,RECORD:""});const O=D("click",w=>{const _=m(e.id);g(e.id,{..._,type:e.type,RECORD:e.tooltipShow?f:w.data})}),N=w=>{t.value.chart.containPixel("grid",[w.offsetX,w.offsetY])&&O()};e.tooltipShow?c.value["zr:click"]=N:c.value.click=O;const C=lt(e),T=async()=>{var w;try{x.value=!0;const _=await C(),{columns:z=[],rows:q=[]}=((w=_==null?void 0:_.data)==null?void 0:w.data)??{};let W;z.length>0&&(W={name:z[0],types:z.slice(1).map($=>({label:$,value:$}))}),b(q,W,!0)}catch(_){console.error(_)}finally{x.value=!1}},R=()=>{switch(e.dataType){case"indicator":T();break;case"request":k();break}};Le(e,{refreshData:R,resetRecord:()=>{const w=e.id,_=m(w);g(w,{..._,RECORD:""})},click:O});const{setRequest:E}=n.inject(Pe,{setRequest:w=>{}});return typeof E=="function"&&E({id:e.id,requestFn:R,sortNum:e.requestSort}),o({refreshData:R}),{option:u,style:r,click:O,loading:x,onClose:h,ecanModal:l,eventObj:c,echartRef:t}}}),p1="";function Wd(e,o,t,a,r,i){const s=n.resolveComponent("echarts"),l=n.resolveComponent("spin"),d=n.resolveComponent("ecan-modal");return n.openBlock(),n.createElementBlock("div",{style:n.normalizeStyle(e.style)},[n.createVNode(l,{spinning:e.loading},{default:n.withCtx(()=>[n.createVNode(s,n.mergeProps({ref:"echartRef",option:e.option,autoresize:""},n.toHandlers(e.eventObj)),null,16,["option"])]),_:1},8,["spinning"]),n.createVNode(d,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:e.onClose},{default:n.withCtx(()=>[n.createVNode(l,{class:"spin-wrap",spinning:e.loading},{default:n.withCtx(()=>[n.createVNode(s,{option:e.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"])],4)}const ll=pe(ye(jd,[["render",Wd]])),ha={...ke,id:"",name:"柱状图",keyName:"柱状图",type:"ecanBar",width:"400px",height:"400px",top:"",left:"",rotate:"",xAxisLabelFormatter:"{value}",yAxisLabelFormatter:"{value}",yAxisLineAlwaysDisplay:!1,data:[{name:"名称一",value:335,type:"类型一"},{name:"名称二",value:310,type:"类型一"},{name:"名称三",value:310,type:"类型一"}],titleText:"",titleSubtext:"",titleFontSize:"12px",titleColor:"#333",fontWeight:400,textAlign:"left",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],legendShow:!0,legendTextStyleColor:"#333",legendOrient:"horizontal",legendTop:"top",legendLeft:"center",tooltipShow:!0,tooltipTextStyleColor:"",tooltipFormatter:"{marker} {a} {c}",xAxisSplitLineShow:!0,xAxisSplitLineInterval:0,xAxisSplitAreaShow:!1,xAxisSplitLineStyleColor:"#333",xAxisLabelInterval:0,xAxisLabelColor:"#333",xAxisLabelWidth:void 0,xAxisLabelRotate:0,xAxisLabelOverflow:"none",xAxisLineShow:!0,xAxisLineStyleColor:"#333",xAxisTickShow:!0,xAxisMinInterval:0,yAxisMinInterval:0,yAxisLabelWidth:void 0,yAxisLabelRotate:0,yAxisLabelOverflow:"none",yAxisSplitLineShow:!0,yAxisSplitAreaShow:!1,yAxisSplitLineStyleColor:"#333",yAxisLabelColor:"#333",yAxisLineStyleColor:"#333",valueTypeDataFieldNames:{name:"name",value:"value",type:"type"},keyTypeDataFieldNames:{name:"name",types:[]},dataFieldConfigType:"value",barWidth:"40%",gridContainLabel:!0,gridTop:"10%",gridBottom:"10%",gridLeft:"5%",gridRight:"5%",graphicConfig:{},toolboxShow:!1,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息",isUseHorizontalAxis:!1,axisInverse:!1,xAxisInverse:!1,yAxisInverse:!1,isStack:!1,labelShow:!1,labelFontSize:"12px",labelPosition:"inside",labelColor:"",labelWidth:100,labelOverflow:"none",labelFormatter:"{c}",toolboxLocation:!1,toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,gradientShow:!1,gradientColors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientOffset:1,barBorderRadius:"",yAxisLabelShow:!0,yAxisSplitLineType:"solid",xAxisSplitLineType:"solid",legendItemGap:10,legendItemWidth:25,legendItemHeight:14,showBarBackground:!1,legendType:"",legendFontSize:"12px",xAxisLabelFontSize:"12px",yAxisLabelFontSize:"12px",graphicType:"ecanBar",tooltipPosition:"",isShowMarkLine:!1,markLineType:"average",legendFormatter:"{name}",legendWidth:null,legendHeight:null,legendTextWidth:null,legendScroll:!1,yAxisName:"",xAxisName:""},ga=Se(ha),sl=["refreshData","click","resetRecord"];Qe.use([Et.CanvasRenderer,ht.BarChart,ve.TitleComponent,ve.LegendComponent,ve.DatasetComponent,ve.ToolboxComponent,ve.MarkLineComponent]);const Ud=n.defineComponent({name:"EcanBar",props:{...ga},components:{Spin:Nt,Echarts:xt,EcanModal:kt,AModal:ce.Modal},setup(e,{expose:o}){const t=n.ref(),a=n.ref(!1),r=n.ref(!1),i=n.ref(null),s=n.ref([]),l=Ce(e),d=n.ref([]),c=n.ref(),f=n.ref({});let y;const u=n.computed(()=>a.value?Ue:12),h=n.computed(()=>{const{gradientShow:M,gradientColors:I,gradientOffset:L,barBorderRadius:H}=e,Y=n.unref(d),U=Y.length,ae=[];for(let Q=0;Q<U;Q++){const le={...Y[Q],type:"bar",barWidth:e.barWidth,showBackground:e.showBarBackground};if(e.isStack&&(le.stack="stack"),le.label={show:e.labelShow,fontSize:e.labelFontSize,position:e.labelPosition,color:e.labelColor,width:e.labelWidth,overflow:e.labelOverflow,formatter:re=>{let K="",X=e.labelFormatter;X===""&&(X="{c}");const{seriesName:ne,name:xe,value:we,data:Te}=re||{};return K+=De(X,{textData:{name:xe,value:we,a:ne,b:xe,c:we||0,...Te}},{useNewline:!0,useSpace:!0}),K}},le.itemStyle={},M&&(le.itemStyle={color:{x:e.isUseHorizontalAxis?1:0,y:0,x2:0,y2:e.isUseHorizontalAxis?0:1,colorStops:[{offset:0,color:e.colors[Q]},{offset:L,color:I[Q]},{offset:1,color:I[Q]}]}}),H){const re=H.split(",");if(re!=null&&re.length){const K=[];for(const X of re){const ne=parseFloat(X);isNaN(ne)||K.push(ne)}le.itemStyle.borderRadius=K}}e.isShowMarkLine&&(le.markLine={data:[{type:e.markLineType}]}),ae.push(le)}return ae}),m=n.ref([]),g=n.ref(!1),v=n.computed(()=>{const M=e.yAxisLabelFormatter,I=e.xAxisLabelFormatter;return{toolbox:{show:e.toolboxShow,left:e.toolboxLeft,top:e.toolboxTop,itemSize:e.toolboxItemSize,itemGap:e.toolboxItemGap,feature:{myLocation:{show:a.value?!1:e.toolboxLocation,title:"快速定位",icon:"path://M512 512m-80 0a80 80 0 1 0 160 0 80 80 0 1 0-160 0Z, M960 480h-33.632C910.752 276.16 747.84 113.248 544 97.632V64a32 32 0 1 0-64 0v33.632C276.16 113.248 113.248 276.16 97.632 480H64a32 32 0 0 0 0 64h33.632C113.248 747.84 276.16 910.752 480 926.368V960a32 32 0 1 0 64 0v-33.632C747.84 910.752 910.752 747.84 926.368 544H960a32 32 0 1 0 0-64zM544 862.368V800a32 32 0 1 0-64 0v62.368C311.424 847.104 176.896 712.576 161.632 544H224a32 32 0 1 0 0-64H161.632C176.896 311.424 311.424 176.896 480 161.632V224a32 32 0 0 0 64 0V161.632c168.576 15.296 303.104 149.792 318.368 318.368H800a32 32 0 1 0 0 64h62.368c-15.264 168.576-149.792 303.104-318.368 318.368z",onclick(){r.value=!0;const L=t.value.chart.getOption(),{xAxis:H}=L||{};H&&H.length&&(s.value=H[0].data)}},myDownload:{show:e.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(){$t(e.toolboxDownloadUrl)}},myDataZoom:{show:a.value?!1:e.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 L;a.value=!0,(L=c.value)==null||L.showModal()}},myInfo:{show:e.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(){ce.Modal.info({title:"说明信息",content:e.toolboxInfoText})}}}},title:{text:e.titleText,subtext:e.titleSubtext,textStyle:{fontSize:e.titleFontSize,fontWeight:e.fontWeight,color:e.titleColor},left:e.textAlign},grid:{top:e.gridTop,bottom:e.gridBottom,left:e.gridLeft,right:e.gridRight,containLabel:e.gridContainLabel},color:e.colors,tooltip:{trigger:"axis",show:e.tooltipShow,formatter:L=>{var ae;const H=L.length;let Y="",U=e.tooltipFormatter;y=(ae=L[0])==null?void 0:ae.data,U===""&&(U="{marker} {a} {c}");for(let Q=0;Q<H;Q++){const{marker:le,seriesName:re,name:K,value:X,data:ne}=L[Q]||{};if(Q===0){let xe=K;typeof K=="string"&&K[0]==="0"&&!isNaN(+K)&&(xe=(+K).toString()),Y+=`${it(I,xe)}<br/>`}Y+=De(U,{textData:{marker:le,name:K,value:X,a:re,b:K,c:X||0,...ne}},{useNewline:!0,useSpace:!0}),Y+="<br/>"}return Y},textStyle:{color:e.tooltipTextStyleColor,fontSize:u.value},position:e.tooltipPosition||void 0},legend:{type:e.legendScroll?"scroll":"plain",width:e.legendWidth,height:e.legendHeight,show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,textStyle:{lineHeight:(a.value?Ue:parseFloat(e.legendFontSize))+8,rich:{text:{width:e.legendTextWidth,color:e.legendTextStyleColor,fontSize:a.value?Ue:e.legendFontSize}}},itemHeight:e.legendItemHeight,itemWidth:e.legendItemWidth,itemGap:e.legendItemGap,data:n.unref(d).map((L,H)=>({name:L.name,itemStyle:{color:e.colors[H]},icon:e.legendType})),formatter:L=>nn(e.legendFormatter,{name:L})},xAxis:{type:e.isUseHorizontalAxis?"value":"category",data:e.isUseHorizontalAxis?null:n.unref(A),inverse:e.isUseHorizontalAxis?e.xAxisInverse:e.axisInverse,minInterval:e.xAxisMinInterval,splitLine:{show:e.xAxisSplitLineShow,lineStyle:{color:e.xAxisSplitLineStyleColor,type:e.xAxisSplitLineType},interval:e.xAxisSplitLineInterval},splitArea:{show:e.xAxisSplitAreaShow},axisLabel:{color:e.xAxisLabelColor,interval:e.xAxisLabelInterval||0,rotate:e.xAxisLabelRotate,width:e.xAxisLabelWidth,overflow:e.xAxisLabelOverflow,fontSize:e.xAxisLabelFontSize,formatter(L){return typeof L=="string"&&L[0]==="0"&&!isNaN(+L)&&(L=(+L).toString()),it(I,L)}},axisLine:{show:e.xAxisLineShow,lineStyle:{color:e.xAxisLineStyleColor}},axisTick:{show:e.xAxisTickShow},name:e.xAxisName,nameTextStyle:{fontSize:e.xAxisLabelFontSize,color:e.xAxisLabelColor,align:"left"}},yAxis:{type:e.isUseHorizontalAxis?"category":"value",data:e.isUseHorizontalAxis?n.unref(m):null,inverse:e.isUseHorizontalAxis?e.axisInverse:e.yAxisInverse,minInterval:e.yAxisMinInterval,splitLine:{show:e.yAxisSplitLineShow,lineStyle:{color:e.yAxisSplitLineStyleColor,type:e.yAxisSplitLineType}},splitArea:{show:e.yAxisSplitAreaShow},axisLabel:{show:e.yAxisLabelShow,fontSize:e.yAxisLabelFontSize,color:e.yAxisLabelColor,rotate:e.yAxisLabelRotate,width:e.yAxisLabelWidth,overflow:e.yAxisLabelOverflow,formatter(L){return it(M,L)}},axisLine:{show:e.yAxisLineAlwaysDisplay,lineStyle:{color:e.yAxisLineStyleColor}},name:e.yAxisName,nameTextStyle:{fontSize:e.yAxisLabelFontSize,color:e.yAxisLabelColor,align:"right"}},series:n.unref(h)}}),{pageMode:B}=n.inject(Me,{pageMode:"normal"}),p=()=>{a.value=!1},b=(M=[],I=!1)=>{let L={};if(e.dataFieldConfigType==="key"){const H=I?e.keyTypeDataFieldNames:null;L=wt(M,H)}else if(e.dataFieldConfigType==="value"){const H=I?e.valueTypeDataFieldNames:null;L=Ft(M,H)}d.value=L.dataset,m.value=L.dimensions},x=(M=[],I,L=!1)=>{const Y=wt(M,L?I:null,!0);d.value=Y.dataset,m.value=Y.dimensions},A=n.computed(()=>n.unref(m).map(M=>{let I={};return M&&typeof M=="object"?I={...M}:I={value:M},I}));n.watch(()=>[e.data,e.labelFormatter,e.legendFormatter,e.legendWidth,e.legendHeight,e.legendTextWidth,e.legendScroll],([M])=>{(e.dataType==="static"||n.unref(B)==="design")&&b(M)},{immediate:!0,deep:!0});const k=je(e),D=async()=>{var M,I;try{g.value=!0;const L=await k();b((I=(M=L==null?void 0:L.data)==null?void 0:M.data)==null?void 0:I.rows,!0)}catch(L){console.error(L)}finally{g.value=!1}},O=lt(e),N=async()=>{var M;try{g.value=!0;const I=await O(),{columns:L=[],rows:H=[]}=((M=I==null?void 0:I.data)==null?void 0:M.data)??{};let Y;L.length>0&&(Y={name:L[0],types:L.slice(1).map(U=>({label:U,value:U}))}),x(H,Y,!0)}catch(I){console.error(I)}finally{g.value=!1}},{loadedData:C}=n.inject(bt,{loadedData:{}}),T=n.ref(!1);n.watch(C,M=>{if(e.dataType==="indicator"){const I=tn(e.graphicConfig);I!=null&&I.length&&(!n.unref(T)&&rt(e.graphicConfig,M)?(T.value=!0,R()):rt(e.graphicConfig,M)||(T.value=!1))}},{deep:!0});const R=()=>{switch(e.dataType){case"indicator":rt(e.graphicConfig,n.unref(C))&&N();break;case"request":D();break}},S=(M,I)=>!!n.unref(s)[I.value].value.includes(M),E=async()=>{r.value=!1;const M=t.value.chart.getOption();for(let I=0;I<7;I++)await w(M,I)},w=(M,I)=>new Promise(L=>{setTimeout(()=>{const{series:H,color:Y,xAxis:U}=M,ae=t.value.chart,{splitArea:Q={}}=U[0]||{};H.forEach((le,re)=>{const K=le.data;let X="";I%2?X=Y[re]+"a8":X=Y[re],K[i.value].itemStyle={color:X}}),I%2?(Q.show=!0,Q.areaStyle.color=n.unref(s).map((le,re)=>re===i.value?"#ff003b26":"")):Q.show=!1,ae.setOption({series:H,xAxis:U}),L()},200)});o({refreshData:R});const _=Ee(e),{getGlobalModel:z,setGlobalModel:q}=n.inject(Be,{getGlobalModel:M=>{},setGlobalModel:(M,I)=>{}});q(e.id,{type:e.type,RECORD:""});const W=_("click",M=>{const I=z(e.id);q(e.id,{...I,type:e.type,RECORD:e.tooltipShow?y:M.data})}),{setRequest:$}=n.inject(Pe,{setRequest:M=>{}});typeof $=="function"&&$({id:e.id,requestFn:R,sortNum:e.requestSort});const F=()=>{const M=e.id,I=z(M);q(M,{...I,RECORD:""})},P=M=>{t.value.chart.containPixel("grid",[M.offsetX,M.offsetY])&&W()};return e.tooltipShow?f.value["zr:click"]=P:f.value.click=W,Le(e,{refreshData:R,click:W,resetRecord:F}),{option:v,style:l,refreshData:R,click:W,loading:g,onClose:p,ecanModal:c,echartRef:t,handleLocationOk:E,onFilterOption:S,locationVisible:r,locationValue:i,locationNames:s,eventObj:f}}}),v1="",S1="",Gd=e=>(n.pushScopeId("data-v-21d7ed90"),e=e(),n.popScopeId(),e),$d={class:"location-wrap"},Zd=Gd(()=>n.createElementVNode("div",{class:"location-text"},"选择分类:",-1));function Yd(e,o,t,a,r,i){const s=n.resolveComponent("echarts"),l=n.resolveComponent("spin"),d=n.resolveComponent("ecan-modal"),c=n.resolveComponent("a-select-option"),f=n.resolveComponent("a-select"),y=n.resolveComponent("a-modal");return n.openBlock(),n.createElementBlock("div",{class:"ecan-bar",style:n.normalizeStyle(e.style)},[n.createVNode(l,{spinning:e.loading},{default:n.withCtx(()=>[n.createVNode(s,n.mergeProps({ref:"echartRef",option:e.option,"update-options":{notMerge:!0},autoresize:""},n.toHandlers(e.eventObj)),null,16,["option"])]),_:1},8,["spinning"]),n.createVNode(d,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:e.onClose},{default:n.withCtx(()=>[n.createVNode(l,{class:"spin-wrap",spinning:e.loading},{default:n.withCtx(()=>[n.createVNode(s,{option:e.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"]),n.createVNode(y,{visible:e.locationVisible,"onUpdate:visible":o[1]||(o[1]=u=>e.locationVisible=u),title:"快速定位",onOk:e.handleLocationOk},{default:n.withCtx(()=>[n.createElementVNode("div",$d,[Zd,n.createVNode(f,{value:e.locationValue,"onUpdate:value":o[0]||(o[0]=u=>e.locationValue=u),style:{width:"100%"},placeholder:"请选择","show-search":"","filter-option":e.onFilterOption},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.locationNames,(u,h)=>(n.openBlock(),n.createBlock(c,{key:h,value:h},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(u.value),1)]),_:2},1032,["value"]))),128))]),_:1},8,["value","filter-option"])])]),_:1},8,["visible","onOk"])],4)}const cl=pe(ye(Ud,[["render",Yd],["__scopeId","data-v-21d7ed90"]])),ma={...ke,id:"",name:"散点图",keyName:"散点图",type:"ecanScatter",width:"400px",height:"400px",top:"",left:"",rotate:"",data:[{name:233,value:335},{name:556,value:310},{name:56,value:234}],titleText:"",titleSubtext:"",titleFontSize:"12px",titleColor:"#333",fontWeight:400,textAlign:"left",tooltipShow:!0,tooltipTrigger:"item",tooltipFormatter:"{marker} {b} {c}",legendShow:!1,legendOrient:"horizontal",legendTextStyleColor:"#333",legendTop:"top",legendLeft:"center",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],symbolSize:10,xAxisSplitLineShow:!0,xAxisSplitAreaShow:!1,xAxisSplitLineInterval:0,xAxisSplitLineStyleColor:"#333",xAxisLineStyleColor:"#333",xAxisTickShow:!0,xAxisLabelColor:"#333",xAxisLabelOverflow:"none",xAxisLabelInterval:0,xAxisLabelWidth:void 0,xAxisLabelRotate:0,xAxisLabelFormatter:"{value}",yAxisSplitLineShow:!0,yAxisSplitAreaShow:!1,yAxisSplitLineStyleColor:"#333",yAxisLabelColor:"#333",yAxisLineStyleColor:"#333",yAxisLineAlwaysDisplay:!1,yAxisLabelFormatter:"{value}",dataFieldNames:{name:"name",value:"value"},gridContainLabel:!0,gridTop:"10%",gridBottom:"10%",gridLeft:"5%",gridRight:"5%",graphicConfig:{},toolboxShow:!1,toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息",yAxisLabelShow:!0,yAxisSplitLineType:"solid",xAxisLabelFontSize:"12px",yAxisLabelFontSize:"12px",graphicType:"ecanScatter",tooltipPosition:"",isShowMarkLine:!1,markLineType:"average",yAxisName:"",xAxisName:""},ya=Se(ma),dl=["click","refreshData","resetRecord"];Qe.use([Et.CanvasRenderer,ht.ScatterChart,ve.ToolboxComponent,ve.TitleComponent,ve.TooltipComponent,ve.LegendComponent,ve.MarkLineComponent]);const Kd=n.defineComponent({name:"EcanScatter",props:{...ya},components:{Spin:Nt,Echarts:xt,EcanModal:kt},setup(e){const o=n.ref(!1),t=Ce(e),a=n.ref([]),r=n.ref(),i=n.computed(()=>o.value?Ue:12),s=n.computed(()=>e.isShowMarkLine?{markLine:{data:[{type:e.markLineType}]}}:{}),l=n.computed(()=>{const A=e.xAxisLabelFormatter,k=e.yAxisLabelFormatter;return{toolbox:{show:e.toolboxShow,left:e.toolboxLeft,top:e.toolboxTop,itemSize:e.toolboxItemSize,itemGap:e.toolboxItemGap,feature:{myDownload:{show:e.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(){$t(e.toolboxDownloadUrl)}},myDataZoom:{show:o.value?!1:e.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 D;o.value=!0,(D=r.value)==null||D.showModal()}},myInfo:{show:e.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(){ce.Modal.info({title:"说明信息",content:e.toolboxInfoText})}}}},title:{text:e.titleText,subtext:e.titleSubtext,textStyle:{fontSize:e.titleFontSize,fontWeight:e.fontWeight,color:e.titleColor},left:e.textAlign},grid:{top:e.gridTop,bottom:e.gridBottom,left:e.gridLeft,right:e.gridRight,containLabel:e.gridContainLabel},color:e.colors,xAxis:{splitLine:{show:e.xAxisSplitLineShow,lineStyle:{color:e.xAxisSplitLineStyleColor},interval:e.xAxisSplitLineInterval},splitArea:{show:e.xAxisSplitAreaShow},axisLabel:{fontSize:e.xAxisLabelFontSize,color:e.xAxisLabelColor,interval:e.xAxisLabelInterval||0,rotate:e.xAxisLabelRotate,width:e.xAxisLabelWidth,overflow:e.xAxisLabelOverflow,formatter(D){return typeof D=="string"&&D[0]==="0"&&!isNaN(+D)&&(D=(+D).toString()),it(A,D)}},axisLine:{lineStyle:{color:e.xAxisLineStyleColor}},axisTick:{show:e.xAxisTickShow},name:e.xAxisName,nameTextStyle:{fontSize:e.xAxisLabelFontSize,color:e.xAxisLabelColor,align:"left"}},yAxis:{splitLine:{show:e.yAxisSplitLineShow,lineStyle:{color:e.yAxisSplitLineStyleColor,type:e.yAxisSplitLineType}},splitArea:{show:e.yAxisSplitAreaShow},axisLabel:{show:e.yAxisLabelShow,fontSize:e.yAxisLabelFontSize,color:e.yAxisLabelColor,formatter(D){return it(k,D)}},axisLine:{show:e.yAxisLineAlwaysDisplay,lineStyle:{color:e.yAxisLineStyleColor}},name:e.yAxisName,nameTextStyle:{fontSize:e.yAxisLabelFontSize,color:e.yAxisLabelColor,align:"right"}},tooltip:{show:e.tooltipShow,trigger:e.tooltipTrigger,formatter(D){var S;const{marker:O,seriesName:N}=D,C=((S=D==null?void 0:D.data)==null?void 0:S.record)??{},{name:T,value:R}=C;return De(e.tooltipFormatter,{textData:{marker:O,seriesName:N,a:N,b:T,c:R,...C}})},axisPointer:{type:"cross"},textStyle:{fontSize:i.value},position:e.tooltipPosition||void 0},legend:{show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,textStyle:{color:e.legendTextStyleColor,fontSize:i.value}},series:[{data:n.unref(a),type:"scatter",symbolSize:e.symbolSize,...n.unref(s)}]}}),{getGlobalModel:d,setGlobalModel:c}=n.inject(Be,{getGlobalModel:A=>{},setGlobalModel:(A,k)=>{}}),{pageMode:f}=n.inject(Me,{pageMode:"normal"}),y=(A=[],k)=>{const{name:D="name",value:O="value"}=k||{};a.value=A.map(N=>({value:[N[D],N[O]],record:N}))};n.watch(()=>e.data,A=>{(e.dataType==="static"||n.unref(f)==="design")&&y(A)},{immediate:!0,deep:!0});const u=n.ref(!1),h=je(e),m=async()=>{var A,k;if(e.dataType==="request"){u.value=!0;try{const D=await h();y((k=(A=D==null?void 0:D.data)==null?void 0:A.data)==null?void 0:k.rows,e.dataFieldNames)}catch(D){console.error(D)}finally{u.value=!1}}},g=()=>{o.value=!1},v=Ee(e);c(e.id,{type:e.type,RECORD:""});const B=v("click",A=>{const k=e.id,D=d(k);c(k,{...D,type:e.type,RECORD:A==null?void 0:A.data})});Le(e,{refreshData:()=>{m()},click:B,resetRecord:()=>{const A=e.id,k=d(A);c(A,{...k,RECORD:""})}});const{setRequest:x}=n.inject(Pe,{setRequest:A=>{}});return typeof x=="function"&&x({id:e.id,requestFn:m,sortNum:e.requestSort}),{option:l,style:t,click:B,loading:u,onClose:g,ecanModal:r}}}),w1="";function Qd(e,o,t,a,r,i){const s=n.resolveComponent("echarts"),l=n.resolveComponent("spin"),d=n.resolveComponent("ecan-modal");return n.openBlock(),n.createElementBlock("div",{style:n.normalizeStyle(e.style)},[n.createVNode(l,{spinning:e.loading},{default:n.withCtx(()=>[n.createVNode(s,{option:e.option,autoresize:"",onClick:e.click},null,8,["option","onClick"])]),_:1},8,["spinning"]),n.createVNode(d,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:e.onClose},{default:n.withCtx(()=>[n.createVNode(l,{class:"spin-wrap",spinning:e.loading},{default:n.withCtx(()=>[n.createVNode(s,{option:e.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"])],4)}const fl=pe(ye(Kd,[["render",Qd]])),xa={...ke,id:"",name:"自定义图表",keyName:"自定义图表",type:"ecanCustomGraph",width:"400px",height:"400px",option:{},optionCode:"",graphicType:"ecanCustomGraph"},pa=Se(xa),Jd=n.defineComponent({name:"EcanCustomGraph",props:{...pa},components:{Echarts:xt},setup(e){const o=Ce(e),t=n.ref();return n.watch(()=>e.optionCode,a=>{try{const r=eval;t.value=r(a)}catch(r){console.error(r)}},{immediate:!0}),{style:o,myOption:t,echarts:Wl}}});function Xd(e,o,t,a,r,i){const s=n.resolveComponent("echarts");return n.openBlock(),n.createElementBlock("div",{style:n.normalizeStyle(e.style)},[n.createVNode(s,{option:e.myOption,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])],4)}const ul=pe(ye(Jd,[["render",Xd]])),ba={...ke,id:"",name:"组合图表",keyName:"组合图表",type:"ecanComboGraph",width:"400px",height:"400px",data:[{name:"名称一",value:335,type:"类型一"},{name:"名称二",value:410,type:"类型一"},{name:"名称三",value:210,type:"类型一"},{name:"名称一",value:510,type:"类型二"},{name:"名称二",value:731,type:"类型二"},{name:"名称三",value:910,type:"类型二"}],titleText:"",titleSubtext:"",titleFontSize:"12px",titleColor:"#333",fontWeight:400,textAlign:"left",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],legendShow:!0,legendTextStyleColor:"#333",legendOrient:"horizontal",legendTop:"top",legendLeft:"center",tooltipShow:!0,tooltipTextStyleColor:"",tooltipTrigger:"item",tooltipFormatter:"{marker} {a} {c}",xAxisLabelInterval:0,xAxisSplitLineShow:!0,xAxisSplitAreaShow:!1,xAxisSplitLineInterval:0,xAxisLabelRotate:0,xAxisLabelOverflow:"none",xAxisLabelWidth:void 0,xAxisSplitLineStyleColor:"#333",xAxisLabelColor:"#333",xAxisLineShow:!0,xAxisLineStyleColor:"#333",xAxisTickShow:!0,xAxisMinInterval:0,xAxisLabelFormatter:"{value}",yAxisLabelFormatter:"{value}",yAxisMinInterval:0,yAxisLeftSplitLineShow:!0,yAxisRightSplitLineShow:!0,yAxisSplitAreaShow:!1,yAxisSplitLineStyleColor:"#333",yAxisLabelColor:"#333",yAxisLineStyleColor:"#333",yAxisLineAlwaysDisplay:!1,valueTypeDataFieldNames:{name:"name",value:"value",type:"type"},keyTypeDataFieldNames:{name:"name",types:[]},dataFieldConfigType:"value",seriesTypes:[{type:"bar",axisIndex:0},{type:"line",axisIndex:0}],yAxis:[{axisLabelFormatter:"{value}"},{axisLabelFormatter:"{value}"}],gridContainLabel:!0,gridTop:"10%",gridBottom:"10%",gridLeft:"5%",gridRight:"5%",graphicConfig:{},toolboxShow:!1,toolboxLocation:!1,toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息",areaStyleOpacity:0,symbolSize:4,lineStyleWidth:2,smooth:!1,barWidth:"40%",barBorderRadius:"",areaGradientShow:!1,areaGradientColor:"",yAxisLabelShow:!0,yAxisLeftSplitLineType:"solid",yAxisRightSplitLineType:"solid",gradientShow:!1,gradientColors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientOffset:1,legendType:"",legendItemGap:10,legendItemWidth:25,legendItemHeight:14,shadowColor:"",shadowBlur:0,shadowOffsetY:0,shadowOffsetX:0,legendFontSize:"12px",xAxisLabelFontSize:"12px",yAxisLabelFontSize:"12px",graphicType:"ecanComboGraph",tooltipPosition:"",isShowMarkLine:!1,markLineType:"average",legendFormatter:"{name}",legendWidth:null,legendHeight:null,legendTextWidth:null,legendScroll:!1,yAxisLeftName:"",yAxisRightName:"",xAxisName:""},va=Se(ba),hl=["refreshData","click","resetRecord"];Qe.use([Et.CanvasRenderer,ht.BarChart,ht.LineChart,ve.TitleComponent,ve.LegendComponent,ve.DatasetComponent,ve.ToolboxComponent,ve.MarkLineComponent]);const ef=n.defineComponent({name:"EcanComboGraph",props:{...va},components:{Spin:Nt,Echarts:xt,EcanModal:kt,AModal:ce.Modal},setup(e,{expose:o}){const t=n.ref(),a=n.ref(!1),r=n.ref(!1),i=n.ref(null),s=n.ref([]),l=n.ref({});let d;const c=Ce(e),f=n.ref([]),y=n.ref([]),u=n.ref(),h=n.ref([]),m=n.computed(()=>a.value?Ue:12),g=n.computed(()=>({title:{text:e.titleText,subtext:e.titleSubtext,textStyle:{fontSize:e.titleFontSize,fontWeight:e.fontWeight,color:e.titleColor},left:e.textAlign},toolbox:{show:e.toolboxShow,left:e.toolboxLeft,top:e.toolboxTop,itemSize:e.toolboxItemSize,itemGap:e.toolboxItemGap,feature:{myLocation:{show:a.value?!1:e.toolboxLocation,title:"快速定位",icon:"path://M512 512m-80 0a80 80 0 1 0 160 0 80 80 0 1 0-160 0Z, M960 480h-33.632C910.752 276.16 747.84 113.248 544 97.632V64a32 32 0 1 0-64 0v33.632C276.16 113.248 113.248 276.16 97.632 480H64a32 32 0 0 0 0 64h33.632C113.248 747.84 276.16 910.752 480 926.368V960a32 32 0 1 0 64 0v-33.632C747.84 910.752 910.752 747.84 926.368 544H960a32 32 0 1 0 0-64zM544 862.368V800a32 32 0 1 0-64 0v62.368C311.424 847.104 176.896 712.576 161.632 544H224a32 32 0 1 0 0-64H161.632C176.896 311.424 311.424 176.896 480 161.632V224a32 32 0 0 0 64 0V161.632c168.576 15.296 303.104 149.792 318.368 318.368H800a32 32 0 1 0 0 64h62.368c-15.264 168.576-149.792 303.104-318.368 318.368z",onclick(){r.value=!0;const I=t.value.chart.getOption(),{xAxis:L}=I||{};L&&L.length&&(s.value=L[0].data)}},myDownload:{show:e.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(){$t(e.toolboxDownloadUrl)}},myDataZoom:{show:a.value?!1:e.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 I;a.value=!0,(I=u.value)==null||I.showModal()}},myInfo:{show:e.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(){ce.Modal.info({title:"说明信息",content:e.toolboxInfoText})}}}},grid:{top:e.gridTop,bottom:e.gridBottom,left:e.gridLeft,right:e.gridRight,containLabel:e.gridContainLabel},color:e.colors,legend:{type:e.legendScroll?"scroll":"plain",width:e.legendWidth,height:e.legendHeight,show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,textStyle:{lineHeight:(a.value?Ue:parseFloat(e.legendFontSize))+8,rich:{text:{width:e.legendTextWidth,color:e.legendTextStyleColor,fontSize:a.value?Ue:e.legendFontSize}}},itemHeight:e.legendItemHeight,itemWidth:e.legendItemWidth,itemGap:e.legendItemGap,data:n.unref(h).map((I,L)=>({name:I.name,itemStyle:{color:e.colors[L]},icon:e.legendType})),formatter:I=>nn(e.legendFormatter,{name:I})},tooltip:{trigger:"axis",show:e.tooltipShow,formatter:I=>{var ae;const L=I.length;let H="",Y=e.tooltipFormatter;d=(ae=I[0])==null?void 0:ae.data,Y===""&&(Y="{marker} {a} {c}");const U=e.seriesTypes;for(let Q=0;Q<L;Q++){const le=U[Q],{tooltipFormatter:re}=le||{},{marker:K,seriesName:X,name:ne,value:xe,data:we}=I[Q]||{};if(Q===0){let Te=ne;typeof ne=="string"&&ne[0]==="0"&&!isNaN(+ne)&&(Te=(+ne).toString()),H+=`${it(e.xAxisLabelFormatter,Te)}<br/>`}H+=De(re||Y,{textData:{marker:K,name:ne,value:xe,seriesName:X,a:X,b:ne,c:xe||0,...we}},{useNewline:!0,useSpace:!0}),H+="<br/>"}return H},textStyle:{color:e.tooltipTextStyleColor,fontSize:m.value},position:e.tooltipPosition||void 0},xAxis:{minInterval:e.xAxisMinInterval,type:"category",data:n.unref(y).map(I=>{let L={};return I&&typeof I=="object"?L={...I}:L={value:I},L}),splitLine:{show:e.xAxisSplitLineShow,lineStyle:{color:e.xAxisSplitLineStyleColor},interval:e.xAxisSplitLineInterval},splitArea:{show:e.xAxisSplitAreaShow},axisLabel:{color:e.xAxisLabelColor,interval:e.xAxisLabelInterval||0,rotate:e.xAxisLabelRotate,width:e.xAxisLabelWidth,overflow:e.xAxisLabelOverflow,fontSize:e.xAxisLabelFontSize,formatter(I){return typeof I=="string"&&I[0]==="0"&&!isNaN(+I)&&(I=(+I).toString()),it(e.xAxisLabelFormatter,I)}},axisLine:{show:e.xAxisLineShow,lineStyle:{color:e.xAxisLineStyleColor}},axisTick:{show:e.xAxisTickShow},name:e.xAxisName,nameTextStyle:{fontSize:e.xAxisLabelFontSize,color:e.xAxisLabelColor,align:"left"}},yAxis:n.unref(A),series:n.unref(f)})),{pageMode:v}=n.inject(Me,{pageMode:"normal"}),B=()=>{a.value=!1},p=(I=[],L=!1)=>{let H;if(e.dataFieldConfigType==="key"){const U=L?e.keyTypeDataFieldNames:null;H=wt(I,U)}else if(e.dataFieldConfigType==="value"){const U=L?e.valueTypeDataFieldNames:null;H=Ft(I,U)}y.value=H.dimensions;const Y=H.dataset;h.value=H.dataset,f.value=x(Y)},b=(I=[],L,H=!1)=>{const U=wt(I,H?L:null,!0);y.value=U.dimensions;const ae=U.dataset;h.value=U.dataset,f.value=x(ae)};function x(I){const L=[],H=I.length,Y=e.seriesTypes;for(let U=0;U<H;U++){const ae=Y[U],{type:Q,axisIndex:le}=ae||{};let re={type:Q,yAxisIndex:le,...I[U]};if(Q==="line"){const K={};e.shadowColor&&(K.shadowColor=e.shadowColor,K.shadowBlur=e.shadowBlur,K.shadowOffsetY=e.shadowOffsetY,K.shadowOffsetX=e.shadowOffsetX),re={...re,symbolSize:e.symbolSize,smooth:e.smooth,itemStyle:{color:e.colors[U]},areaStyle:{color:e.areaGradientShow?{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:e.colors[U]},{offset:1,color:e.areaGradientColor||"transparent"}],global:!1}:e.colors[U],opacity:e.areaStyleOpacity},lineStyle:{width:e.lineStyleWidth,...K}}}if(Q==="bar"){const{gradientShow:K,gradientColors:X,gradientOffset:ne}=e,xe={};if(e.barBorderRadius){const we=e.barBorderRadius.split(",");if(we!=null&&we.length){const Te=[];for(const $e of we){const ze=parseFloat($e);isNaN(ze)||Te.push(ze)}xe.borderRadius=Te}}K&&(xe.color={x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:e.colors[U]},{offset:ne,color:X[U]},{offset:1,color:X[U]}]}),re={...re,barWidth:e.barWidth,itemStyle:xe}}e.isShowMarkLine&&(re.markLine={data:[{type:e.markLineType}]}),L.push(re)}return L}n.watch(()=>[e.data,e.seriesTypes,e.symbolSize,e.smooth,e.areaStyleOpacity,e.lineStyleWidth,e.barWidth,e.barBorderRadius,e.areaGradientShow,e.areaGradientColor,e.gradientShow,e.gradientColors,e.gradientOffset,e.shadowColor,e.shadowBlur,e.shadowOffsetY,e.shadowOffsetX,e.legendFontSize,e.xAxisLabelFormatter,e.isShowMarkLine,e.markLineType,e.legendFormatter,e.legendWidth,e.legendHeight,e.legendTextWidth,e.legendScroll],([I])=>{(e.dataType==="static"||n.unref(v)==="design")&&p(I)},{immediate:!0,deep:!0});const A=n.computed(()=>{const I=e.yAxis;return I==null?void 0:I.map((L,H)=>({type:"value",minInterval:e.yAxisMinInterval,splitLine:{show:H===0?e.yAxisLeftSplitLineShow:e.yAxisRightSplitLineShow,lineStyle:{color:e.yAxisSplitLineStyleColor,type:H===0?e.yAxisLeftSplitLineType:e.yAxisRightSplitLineType}},splitArea:{show:e.yAxisSplitAreaShow},axisLabel:{show:e.yAxisLabelShow,fontSize:e.yAxisLabelFontSize,color:e.yAxisLabelColor,formatter(Y){return it(L.axisLabelFormatter,Y)}},axisLine:{show:e.yAxisLineAlwaysDisplay,lineStyle:{color:e.yAxisLineStyleColor}},name:H===0?e.yAxisLeftName:e.yAxisRightName,nameTextStyle:{fontSize:e.yAxisLabelFontSize,color:e.yAxisLabelColor,align:H===0?"right":"left"}}))}),k=n.ref(!1),D=je(e),O=async()=>{var I,L;if(e.dataType==="request")try{k.value=!0;const H=await D();p((L=(I=H==null?void 0:H.data)==null?void 0:I.data)==null?void 0:L.rows,!0)}catch(H){console.error(H)}finally{k.value=!1}},N=lt(e),C=async()=>{var I;try{k.value=!0;const L=await N(),{columns:H=[],rows:Y=[]}=((I=L==null?void 0:L.data)==null?void 0:I.data)??{};let U;H.length>0&&(U={name:H[0],types:H.slice(1).map(ae=>({label:ae,value:ae}))}),b(Y,U,!0)}catch(L){console.error(L)}finally{k.value=!1}},{loadedData:T}=n.inject(bt,{loadedData:{}}),R=n.ref(!1);n.watch(T,I=>{if(e.dataType==="indicator"){const L=tn(e.graphicConfig);L!=null&&L.length&&(!n.unref(R)&&rt(e.graphicConfig,I)?(R.value=!0,S()):rt(e.graphicConfig,I)||(R.value=!1))}},{deep:!0});const S=()=>{switch(e.dataType){case"indicator":rt(e.graphicConfig,n.unref(T))&&C();break;case"request":O();break}},E=(I,L)=>!!n.unref(s)[L.value].value.includes(I),w=async()=>{r.value=!1;const I=t.value.chart.getOption();for(let L=0;L<7;L++)await _(I,L)},_=(I,L)=>new Promise(H=>{setTimeout(()=>{const{series:Y,color:U,xAxis:ae}=I,Q=t.value.chart,{splitArea:le={}}=ae[0]||{};Y.forEach((re,K)=>{const X=re.data;let ne="";L%2?ne=U[K]+"a8":ne=U[K],X[i.value].itemStyle={color:ne}}),L%2?(le.show=!0,le.areaStyle.color=n.unref(s).map((re,K)=>K===i.value?"#ff003b26":"")):le.show=!1,Q.setOption({series:Y,xAxis:ae}),H()},200)});o({refreshData:S});const z=Ee(e),{getGlobalModel:q,setGlobalModel:W}=n.inject(Be,{getGlobalModel:I=>{},setGlobalModel:(I,L)=>{}});W(e.id,{type:e.type,RECORD:""});const $=z("click",I=>{const L=q(e.id);W(e.id,{...L,type:e.type,RECORD:e.tooltipShow?d:I==null?void 0:I.data})}),F=I=>{t.value.chart.containPixel("grid",[I.offsetX,I.offsetY])&&$()};e.tooltipShow?l.value["zr:click"]=F:l.value.click=$;const{setRequest:P}=n.inject(Pe,{setRequest:I=>{}});return typeof P=="function"&&P({id:e.id,requestFn:S,sortNum:e.requestSort}),Le(e,{resetRecord:()=>{const I=e.id,L=q(I);W(I,{...L,RECORD:""})},refreshData:S,click:$}),{style:c,option:g,click:$,loading:k,onClose:B,ecanModal:u,echartRef:t,handleLocationOk:w,onFilterOption:E,locationVisible:r,locationValue:i,locationNames:s,eventObj:l}}}),T1="",B1="",tf=e=>(n.pushScopeId("data-v-1858b3c3"),e=e(),n.popScopeId(),e),nf={class:"location-wrap"},of=tf(()=>n.createElementVNode("div",{class:"location-text"},"选择分类:",-1));function af(e,o,t,a,r,i){const s=n.resolveComponent("echarts"),l=n.resolveComponent("spin"),d=n.resolveComponent("ecan-modal"),c=n.resolveComponent("a-select-option"),f=n.resolveComponent("a-select"),y=n.resolveComponent("a-modal");return n.openBlock(),n.createElementBlock("div",{style:n.normalizeStyle(e.style)},[n.createVNode(l,{spinning:e.loading},{default:n.withCtx(()=>[n.createVNode(s,n.mergeProps({ref:"echartRef",option:e.option,"update-options":{notMerge:!0},autoresize:""},n.toHandlers(e.eventObj)),null,16,["option"])]),_:1},8,["spinning"]),n.createVNode(d,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:e.onClose},{default:n.withCtx(()=>[n.createVNode(l,{class:"spin-wrap",spinning:e.loading},{default:n.withCtx(()=>[n.createVNode(s,{option:e.option,"update-options":{notMerge:!0},autoresize:"",onClick:e.click},null,8,["option","onClick"])]),_:1},8,["spinning"])]),_:1},8,["onClose"]),n.createVNode(y,{visible:e.locationVisible,"onUpdate:visible":o[1]||(o[1]=u=>e.locationVisible=u),title:"快速定位",onOk:e.handleLocationOk},{default:n.withCtx(()=>[n.createElementVNode("div",nf,[of,n.createVNode(f,{value:e.locationValue,"onUpdate:value":o[0]||(o[0]=u=>e.locationValue=u),style:{width:"100%"},placeholder:"请选择","show-search":"","filter-option":e.onFilterOption},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.locationNames,(u,h)=>(n.openBlock(),n.createBlock(c,{key:h,value:h},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(u.value),1)]),_:2},1032,["value"]))),128))]),_:1},8,["value","filter-option"])])]),_:1},8,["visible","onOk"])],4)}const gl=pe(ye(ef,[["render",af],["__scopeId","data-v-1858b3c3"]])),Sa={...ke,id:"",name:"雷达图",keyName:"雷达图",type:"ecanRadar",width:"400px",height:"400px",top:"",left:"",rotate:"",data:[{name:"名称一",value:235,type:"类型一"},{name:"名称二",value:280,type:"类型一"},{name:"名称三",value:230,type:"类型一"},{name:"名称四",value:335,type:"类型一"},{name:"名称五",value:435,type:"类型一"},{name:"名称六",value:215,type:"类型一"}],titleText:"",titleSubtext:"",titleFontSize:"12px",titleColor:"#333",fontWeight:400,textAlign:"left",legendShow:!0,legendOrient:"horizontal",legendTextStyleColor:"#333",legendTop:"top",legendLeft:"center",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],valueTypeDataFieldNames:{name:"name",value:"value",type:"type"},keyTypeDataFieldNames:{name:"name",types:[]},dataFieldConfigType:"value",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,legendItemGap:10,legendItemWidth:25,legendItemHeight:14,legendType:"",lineStyleWidth:2,symbolSize:4,labelShow:!1,labelFontSize:"12px",labelPosition:"inside",labelColor:"",labelWidth:100,labelOverflow:"none",labelFormatter:"{value}",axisNameColor:"",legendFontSize:"12px",graphicConfig:{},graphicType:"ecanRadar",tooltipPosition:"",legendFormatter:"{name}",legendWidth:null,legendHeight:null,legendTextWidth:null,legendScroll:!1,gradientShow:!1,gradientColors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientOffset:1},Ca=Se(Sa),ml=["refreshData","click","resetRecord"];Qe.use([Et.CanvasRenderer,ht.RadarChart,ve.ToolboxComponent,ve.TitleComponent,ve.LegendComponent]);const rf=n.defineComponent({name:"EcanRadar",props:{...Ca},components:{Spin:Nt,Echarts:xt,EcanModal:kt},setup(e,{expose:o}){const t=n.ref(),a=n.ref(!1),r=Ce(e),i=n.ref([]),s=n.ref(),l=n.computed(()=>a.value?Ue:12),d=n.ref([]),c=n.ref(e.valueTypeDataFieldNames.name),f=n.computed(()=>{const S=n.unref(d),E=S.length,w=[];for(let _=0;_<E;_++){const{name:z,data:q=[]}=S[_],W=[{name:z,value:q.map(P=>P.value)}];let $=e.colors[_];if(e.gradientShow){const{gradientOffset:P,gradientColors:M}=e;$={x:.7,y:0,x2:0,y2:0,colorStops:[{offset:0,color:e.colors[_]},{offset:P,color:M[_]},{offset:1,color:M[_]}]}}const F={type:"radar",name:z,data:W,areaStyle:{color:$,opacity:e.areaStyleOpacity},tooltip:{trigger:"item"},symbolSize:e.symbolSize,lineStyle:{width:e.lineStyleWidth},label:{show:e.labelShow,fontSize:e.labelFontSize,position:e.labelPosition,color:e.labelColor,width:e.labelWidth,overflow:e.labelOverflow,formatter:P=>{const{data:M,value:I}=P;let L=0,H="0%";if(M)for(const Y of M.value)L+=+Y;return L&&(H=`${(I/L*100).toFixed(2)}%`),De(e.labelFormatter,{textData:{value:I,percent:H}},{useNewline:!1,useSpace:!1})}}};w.push(F)}return w}),y=n.computed(()=>{var z;const S=[],E=[],w=n.unref(d),_=w.length;for(let q=0;q<_;q++){const{data:W=[]}=w[q];for(let $=0;$<W.length;$++)E.push(W[$].value)}if((z=i.value)!=null&&z.length){const q=E!=null&&E.length?Math.max(...E)*1.2:0;for(const W of i.value)S.push({name:W,max:q})}return S}),u=n.computed(()=>({toolbox:{show:e.toolboxShow,left:e.toolboxLeft,top:e.toolboxTop,itemSize:e.toolboxItemSize,itemGap:e.toolboxItemGap,feature:{myDownload:{show:e.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(){$t(e.toolboxDownloadUrl)}},myDataZoom:{show:a.value?!1:e.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 S;a.value=!0,(S=s.value)==null||S.showModal()}},myInfo:{show:e.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(){ce.Modal.info({title:"说明信息",content:e.toolboxInfoText})}}}},title:{text:e.titleText,subText:e.titleSubtext,textStyle:{fontSize:e.titleFontSize,fontWeight:e.fontWeight,color:e.titleColor},left:e.textAlign},color:e.colors,tooltip:{trigger:"axis",textStyle:{fontSize:l.value},show:e.tooltipShow,formatter:S=>{let E="",w=e.tooltipFormatter;w===""&&(w="{marker} {a} {c}");for(let _=0;_<n.unref(y).length;_++){const z=n.unref(y)[_],{marker:q,seriesName:W,value:$}=S||{};_===0&&W&&(E+=`${W}<br/>`),E+=De(w,{textData:{marker:q,name:z.name,value:$[_],a:z.name,b:z.name,c:$[_]||0,type:W}},{useNewline:!0,useSpace:!0}),E+="<br/>"}return E},position:e.tooltipPosition||void 0},radar:{indicator:n.unref(y),axisName:{color:e.axisNameColor}},legend:{type:e.legendScroll?"scroll":"plain",width:e.legendWidth,height:e.legendHeight,show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,textStyle:{lineHeight:(a.value?Ue:parseFloat(e.legendFontSize))+8,rich:{text:{width:e.legendTextWidth,color:e.legendTextStyleColor,fontSize:a.value?Ue:e.legendFontSize}}},itemHeight:e.legendItemHeight,itemWidth:e.legendItemWidth,itemGap:e.legendItemGap,data:n.unref(d).map(S=>({name:S.name,icon:e.legendType})),formatter:S=>nn(e.legendFormatter,{name:S})},series:n.unref(f)})),h=()=>{a.value=!1},{getGlobalModel:m,setGlobalModel:g}=n.inject(Be,{getGlobalModel:S=>{},setGlobalModel:(S,E)=>{}}),{pageMode:v}=n.inject(Me,{pageMode:"normal"}),B=(S=[],E=!1)=>{let w;if(e.dataFieldConfigType==="key"){const _=E?e.keyTypeDataFieldNames:null;w=wt(S,_)}else if(e.dataFieldConfigType==="value"){const _=E?e.valueTypeDataFieldNames:null;w=Ft(S,_)}i.value=w.dimensions,d.value=w.dataset},p=(S=[],E,w=!1)=>{const z=wt(S,w?E:null,!0);i.value=z.dimensions,d.value=z.dataset};n.watch(()=>[e.data,e.areaStyleOpacity,e.legendFontSize,e.legendFormatter,e.legendWidth,e.legendHeight,e.legendTextWidth,e.legendScroll,e.labelFormatter],([S])=>{(e.dataType==="static"||n.unref(v)==="design")&&B(S)},{immediate:!0,deep:!0});const b=n.ref(!1),x=je(e),A=async()=>{var S,E;if(e.dataType==="request")try{b.value=!0;const w=await x();B((E=(S=w==null?void 0:w.data)==null?void 0:S.data)==null?void 0:E.rows,!0)}catch(w){console.error(w)}finally{b.value=!1}},k=Ee(e);g(e.id,{type:e.type,RECORD:""});const D=S=>{const E=S.event.topTarget.__dimIdx;E!==void 0&&k("click",()=>{var q;const{value:w,name:_}=S.data||{},z=m(e.id);g(e.id,{...z,type:e.type,RECORD:{[n.unref(c)]:((q=n.unref(y)[E])==null?void 0:q.name)||"",[_]:w[E],seriesName:_}})})()},O=lt(e),N=async()=>{var S;try{b.value=!0;const E=await O(),{columns:w=[],rows:_=[]}=((S=E==null?void 0:E.data)==null?void 0:S.data)??{};let z;w.length>0&&(c.value=w[0],z={name:w[0],types:w.slice(1).map(q=>({label:q,value:q}))}),p(_,z,!0)}catch(E){console.error(E)}finally{b.value=!1}},C=()=>{switch(e.dataType){case"indicator":N();break;case"request":A();break}};Le(e,{refreshData:C,resetRecord:()=>{const S=e.id,E=m(S);g(S,{...E,RECORD:""})},click:D});const{setRequest:R}=n.inject(Pe,{setRequest:S=>{}});return typeof R=="function"&&R({id:e.id,requestFn:C,sortNum:e.requestSort}),o({refreshData:C}),{option:u,style:r,click:D,loading:b,onClose:h,ecanModal:s,echartRef:t}}}),D1="";function lf(e,o,t,a,r,i){const s=n.resolveComponent("echarts"),l=n.resolveComponent("spin"),d=n.resolveComponent("ecan-modal");return n.openBlock(),n.createElementBlock("div",{style:n.normalizeStyle(e.style)},[n.createVNode(l,{spinning:e.loading},{default:n.withCtx(()=>[n.createVNode(s,{ref:"echartRef",option:e.option,autoresize:"",onClick:e.click},null,8,["option","onClick"])]),_:1},8,["spinning"]),n.createVNode(d,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:e.onClose},{default:n.withCtx(()=>[n.createVNode(l,{class:"spin-wrap",spinning:e.loading},{default:n.withCtx(()=>[n.createVNode(s,{option:e.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"])],4)}const yl=pe(ye(rf,[["render",lf]])),sf="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHQAAAAcCAMAAACH42siAAAAZlBMVEUAAABBltJCldJCldFEk89BltJCltFBldI/lMBKndtmb9pCltNDldFAkclAldNBldJBltM/lM5AltNCldJBldJBlNJBltVBldJBlNJBlNI/lNNBldJBldNAldJBldJBldJBldNBldIiNK7WAAAAInRSTlMAM4BNGmaz5gQGbiAPCV1WQxUpOCY9EmxQSC2jdoacqZK8uPo7tAAAAZ9JREFUSMe90NmOwjAMheGka0J3SulCy/L+Lzk4I+HYhckEKs7dr1x8kQVM5YJMZ7SLiXVHOw817Z72cSns3BmziY7EnGRGjDqUpKt4pEZQKruvyaJt85YmBUebKLJVNUlpq6oOQ1tVVRzbqu6DwFb1NUlsVd3SNL0UDM0jqkaSqoeQqjKmahtQNUzuC1AtU1sF9KHmnmrtrSK6idqBWqE6GFVxFdGvqDGoJ01Qt7rfTEV0e7V6qSK6VjNPtTaqoOq8Ugnqr7aeav+rAuqrTh+qZw3o1urAVcFVQD3U6ZnaYY9MLZk6G5WhDaDFI9UeUPyE7gCNsAdAD9gxoBJ7ARRPUVwALXdu8/h/s3xmjtwUu0/M0M/UJzBjAei3TUTdpmKmcpkBmOHKBNTPzJi59zYJys3DO2aL78YcmNkLgrrM9m9TucwzmoBy08xlju+bgL42G4c5OcxqZSLqbwqXOVNTGXMWFD0ak6KN1ZKaojYmbribndW9MXELNQEFFUyiNqQlmEQ1JqpgErUifUUTUVEIupx1wzpjvWfdsh4FQX8ANe4nnpsb9NEAAAAASUVORK5CYII=",cf="data:image/png;base64,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",df="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHQAAAAcCAMAAACH42siAAAAaVBMVEUAAABElM9BltJCldJCldFBltJBldJCltFNmrNCmNNFldNAldJBldNBldRBldNBldNBldJCoNFBldJBltNBldJBldJAldJAltJBldJBldJBldNAlNFAldJBlNJAldJBldNBldJBldJBldLfIVowAAAAI3RSTlMAGjJNgGbmswMSCScgDTs/ZAVRK0eYj2s3r3AWveHEhXjeXb5rzlgAAAFqSURBVEjH1dbJVsJAEIXhHjJ05tlEooK8/0NKsbDrFjmHiBD0Lvqcf9PfthRM7xvoZMQuLHZaOejGYLtcdEItzI9oaLg5xIHj5hgcG262oXXcrGzJ23Umg5717C7NKBrAjOMDM8YgCI5ghmEPprUTmMZkrBOtdbJgfpZovho0gwzNOkfTam9k5jSGkKlTMOezWT3VLH5qlg8wQzSbO5jJ28l8Z+YLmZMwuz9lupvNXpjlFTMTZv7vzFSatTDtGnNeYdpNzZTMSJhx5f84m8Y3mSEzJzTVolko3J7Qve+a0J3vntDWffdEaMUQQo1vTWjuuyA0UWvUUarqzuqLUMPt1MD3uKTaTdRwvdrdorpFtfZtH6eyK2F3RS23U3uhlr9VB1TdE1V2h7Vr1O4mdbdera6o+Wq1Vqi2rEktFapGoZopVLVCtVCXag19IBPUiiWpBrojE1QNXZAp1/TYbhKdKVwuWotORKfn9wu/DSc/X9T6qgAAAABJRU5ErkJggg==",ff="data:image/png;base64,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",wa={...ke,name:"边框",keyName:"边框",type:"ecanBorder",width:"300px",height:"300px",zIndex:0,fontSize:"16px",fontFamily:"",fontWeight:700,title:"标题",mode:"no-title",borderColor:"#eee",borderRadius:"5",borderStyle:"solid",borderWidth:"2px",backgroundColor:"#ffffff",useBorderModify:!1,textShadow:"",data:{},gradientShow:!1,gradientColor:"",gradientOffset:1,gradientAngle:"180deg",isTransparent:!1,titleMode:"type-1"},Aa=Se(wa),xl=["click"],uf=n.defineComponent({name:"EcanBorder",props:{...Aa},setup(e){const o=Ce(e,["background"]),t=n.computed(()=>{const{isTransparent:m,gradientShow:g,gradientColor:v,gradientOffset:B,gradientAngle:p,backgroundColor:b}=e;if(g){let x=v;return m&&(x="transparent"),x?{background:`linear-gradient(${p}, ${b}, ${x} ${B*100}%)`}:{}}else return{}}),a=n.computed(()=>{const{events:m}=e;let g={};return m!=null&&m.length&&m.find(B=>B.emit==="showModal")&&(g={cursor:"pointer"}),g}),{theme:r}=n.inject(Me,{theme:"light"}),i=n.computed(()=>{let m="";switch(e.titleMode){case"type-2":m="2";break}return m}),s=n.computed(()=>new URL(Object.assign({"../../assets/border-title-decoration-left.png":sf,"../../assets/border-title-decoration-left2.png":cf})[`../../assets/border-title-decoration-left${i.value}.png`],self.location).href),l=n.computed(()=>new URL(Object.assign({"../../assets/border-title-decoration-right.png":df,"../../assets/border-title-decoration-right2.png":ff})[`../../assets/border-title-decoration-right${i.value}.png`],self.location).href),d=n.computed(()=>({width:"100%",height:"100%"})),c=n.computed(()=>{const{borderRadius:m}=e,g=[],v={};if(m){const B=m.split(",");for(const p of B)(+p||+p==0)&&g.push(+p+"px")}return g!=null&&g.length&&(v.borderRadius=g.join(" ")),v}),y=Ee(e)("click",()=>{}),u=n.ref([]);n.watch(()=>e.data,m=>{u.value=m},{immediate:!0,deep:!0}),Le(e,{click:y});const{setGlobalModel:h}=n.inject(Be,{setGlobalModel:(m,g)=>{}});return h(e.id,{type:e.type,value:u}),{style:o,gradientStyle:t,click:y,borderStyle:d,theme:r,borderRadiusStyle:c,titleLeftIcon:s,titleRightIcon:l,cursorStyle:a}}}),I1="",Tt=e=>(n.pushScopeId("data-v-8dd53b8f"),e=e(),n.popScopeId(),e),hf=["id"],gf=Tt(()=>n.createElementVNode("div",{class:"top-left border-item"},null,-1)),mf=Tt(()=>n.createElementVNode("div",{class:"top-right border-item"},null,-1)),yf=Tt(()=>n.createElementVNode("div",{class:"bottom-left border-item"},null,-1)),xf=Tt(()=>n.createElementVNode("div",{class:"bottom-right border-item"},null,-1)),pf={class:"title-item"},bf=["src"],vf={class:"title"},Sf=["src"],Cf=Tt(()=>n.createElementVNode("div",{class:"top-left border-item"},null,-1)),wf=Tt(()=>n.createElementVNode("div",{class:"top-right border-item"},null,-1)),Af=Tt(()=>n.createElementVNode("div",{class:"bottom-left border-item"},null,-1)),kf=Tt(()=>n.createElementVNode("div",{class:"bottom-right border-item"},null,-1)),Tf={key:2,class:"left-title"},Bf={class:"title"};function Ef(e,o,t,a,r,i){return n.openBlock(),n.createElementBlock("div",{class:"ecan-border",style:n.normalizeStyle({...e.style,...e.gradientStyle,...e.borderRadiusStyle,...e.cursorStyle}),onClick:o[0]||(o[0]=(...s)=>e.click&&e.click(...s)),id:"container_"+e.id},[e.mode==="no-title"?(n.openBlock(),n.createElementBlock("div",{key:0,class:"no-title",style:n.normalizeStyle(e.borderStyle)},[e.useBorderModify?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[gf,mf,yf,xf],64)):n.createCommentVNode("",!0)],4)):n.createCommentVNode("",!0),e.mode==="top-title"?(n.openBlock(),n.createElementBlock("div",{key:1,class:"top-title",style:n.normalizeStyle(e.borderStyle)},[n.createElementVNode("div",{class:n.normalizeClass(["title-item-wrapper",e.titleMode])},[n.createElementVNode("div",pf,[n.createElementVNode("img",{class:n.normalizeClass(["title-decoration",e.titleMode]),src:e.titleLeftIcon},null,10,bf),n.createElementVNode("div",vf,n.toDisplayString(e.title),1),n.createElementVNode("img",{class:n.normalizeClass(["title-decoration",e.titleMode]),src:e.titleRightIcon},null,10,Sf)])],2),Cf,wf,Af,kf],4)):n.createCommentVNode("",!0),e.mode==="left-title"?(n.openBlock(),n.createElementBlock("div",Tf,[n.createElementVNode("div",Bf,[n.createElementVNode("span",null,n.toDisplayString(e.title),1)])])):n.createCommentVNode("",!0)],12,hf)}const pl=pe(ye(uf,[["render",Ef],["__scopeId","data-v-8dd53b8f"]])),ka={...ke,tabHorizontalPadding:"0px",type:"ecanTabs",name:"标签页",keyName:"标签页",width:"500px",height:"400px",tabFontSize:"14px",backgroundColor:"#ffffff",activeTabColor:"#1890ff",tabBackgroundImage:"",activeTabBackgroundImage:"",tabColor:"#333",tabBarGutter:"24px",tabFontWeight:400,value:"",activeKey:0,autoSwitch:!1,autoSwitchInterval:5,containIds:[],tabFlexDirection:"row",data:[{title:"标签1"},{title:"标签2"},{title:"标签3"}],tabAlignItems:"flex-start",tabJustifyContent:"flex-start",tabType:"tabs",tabWidth:"120px",isAutoScroll:!1,scrollSpeed:.3,componentList:[]},Ta=Se(ka),bl=["tabChange"],Df=n.defineComponent({name:"EcanTabs",props:{...Ta},components:{ASelect:ce.Select,ASelectOption:ce.SelectOption,MarqueeScroll:dr},setup(e){const o=Ce(e),t=n.ref(0);n.watch(()=>e.activeKey,m=>{t.value=m},{immediate:!0});const{pageMode:a}=n.inject(Me,{pageMode:"normal"});let r=null;const i=()=>{const m=Array.isArray(n.unref(s))?n.unref(s).length-1:0;!e.isAutoScroll&&e.autoSwitch&&m>0&&(r=setInterval(()=>{const g=n.unref(t)+1;g<=m?t.value=g:t.value=0,l.value=n.unref(s)[n.unref(t)],y()},e.autoSwitchInterval*1e3))};n.onMounted(()=>{n.unref(a)!=="design"&&i()}),n.onBeforeUnmount(()=>{clearInterval(r)});const s=n.ref([]),l=n.ref({});n.watch(()=>e.data,m=>{s.value=m,l.value=Array.isArray(m)&&m.length>0?m[0]:{}},{immediate:!0,deep:!0});const d=m=>t.value===m,c=Ee(e),{setGlobalModel:f}=n.inject(Be,{setGlobalModel:(m,g)=>{}});f(e.id,{value:l,activeKey:t});const{emitRefreshPage:y}=n.inject(Xt,{emitRefreshPage:()=>{}}),u=(m,g)=>{c("tabChange",()=>{g!==n.unref(t)&&(l.value=m,t.value=g,y())})()},h=n.computed(()=>{const m=e.componentList.map(g=>parseFloat(g.left)+parseFloat(g.width)).sort((g,v)=>v-g)[0];return{width:m?m+"px":"100%"}});return Le(e,{tabChange:u}),{style:o,activeKey:t,isActive:d,tabChange:u,myData:s,useImagePath:At,pageMode:a,scrollWrapStyle:h}}}),O1="",Rf=["id"],If=["onClick"];function _f(e,o,t,a,r,i){const s=n.resolveComponent("a-select-option"),l=n.resolveComponent("a-select"),d=n.resolveComponent("marquee-scroll");return n.openBlock(),n.createElementBlock("div",{class:"ecan-tabs",style:n.normalizeStyle(e.style),id:"container_"+e.id},[e.pageMode==="design"||!e.isAutoScroll?(n.openBlock(),n.createElementBlock("div",{key:0,class:"tabs-header",style:n.normalizeStyle({fontSize:e.tabFontSize,alignItems:e.tabAlignItems,justifyContent:e.tabJustifyContent,flexDirection:e.tabFlexDirection})},[e.tabType==="tabs"?(n.openBlock(!0),n.createElementBlock(n.Fragment,{key:0},n.renderList(e.myData,(c,f)=>(n.openBlock(),n.createElementBlock("div",{class:"tab",style:n.normalizeStyle({padding:`5px ${e.tabHorizontalPadding}`,color:e.isActive(f)?e.activeTabColor:e.tabColor,backgroundImage:e.isActive(f)?e.useImagePath(e.activeTabBackgroundImage,!0):e.useImagePath(e.tabBackgroundImage,!0),marginRight:e.tabFlexDirection==="row"?e.tabBarGutter:null,marginBottom:e.tabFlexDirection==="column"?e.tabBarGutter:null,fontWeight:e.tabFontWeight}),key:f,onClick:n.withModifiers(y=>e.tabChange(c,f),["prevent","stop"])},[n.createElementVNode("div",{class:"tab-inner",style:n.normalizeStyle({borderBottom:!e.activeTabBackgroundImage&&!e.tabBackgroundImage?`1px solid ${e.isActive(f)?e.activeTabColor:"transparent"}`:""})},n.toDisplayString(c.title),5)],12,If))),128)):e.tabType==="select"?(n.openBlock(),n.createBlock(l,{key:1,value:e.activeKey,style:n.normalizeStyle({width:e.tabWidth})},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.myData,(c,f)=>(n.openBlock(),n.createBlock(s,{key:f,value:f,onClick:y=>e.tabChange(c,f)},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(c.title),1)]),_:2},1032,["value","onClick"]))),128))]),_:1},8,["value","style"])):n.createCommentVNode("",!0)],4)):n.createCommentVNode("",!0),e.pageMode!=="design"&&e.isAutoScroll?(n.openBlock(),n.createBlock(d,{key:1,visible:e.isAutoScroll,step:e.scrollSpeed,vertical:!1,style:n.normalizeStyle({height:e.height})},{default:n.withCtx(()=>[n.createElementVNode("div",{class:"scroll-wrap",style:n.normalizeStyle(e.scrollWrapStyle)},[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.componentList,c=>(n.openBlock(),n.createBlock(n.resolveDynamicComponent(c.type),n.normalizeProps(n.mergeProps({key:c.id},c)),null,16))),128))],4)]),_:1},8,["visible","step","style"])):n.createCommentVNode("",!0)],12,Rf)}const vl=pe(ye(Df,[["render",_f],["__scopeId","data-v-132544b5"]])),Ba={...ke,name:"图片",keyName:"图片",type:"ecanImage",width:"300px",height:"300px",imgUrl:"",target:"self",href:"",linkPage:"",data:{},isHoverStyle:!1},Ea=Se(Ba),Sl=["click"],Da=n.defineComponent({name:"EcanImage",props:{...Ea},setup(e){const o=Ce(e),t=n.computed(()=>At(e.imgUrl)),{pageMode:a}=n.inject(Me,{pageMode:"normal"}),{getGlobalModel:r,setGlobalModel:i}=n.inject(Be,{getGlobalModel:d=>{},setGlobalModel:(d,c)=>{}}),l=Ee(e)("click",()=>{const d=r(e.id);if(i(e.id,{...d,type:e.type,RECORD:e.data||{}}),setTimeout(()=>{i(e.id,{...d,type:e.type,RECORD:{}})},0),!e.linkPage&&!e.href)return;const c=e.linkPage||"",f=vi(n.unref(a),c),y=e.href;let u=y||f;u=De(u);const h=e.target;h&&(h!=="event"?window.open(u,"_"+h):window.parent.postMessage({type:"openPage",url:y},"*"))});return Le(e,{click:l}),{style:o,myImgUrl:t,onClick:l}}}),Cl=()=>{n.useCssVars(e=>({"102827c2":e.isHoverStyle?"pointer":"auto","5de838e7":e.isHoverStyle?"0.6":"1"}))},wl=Da.setup;Da.setup=wl?(e,o)=>(Cl(),wl(e,o)):Cl;const N1="",Of=["src"];function Lf(e,o,t,a,r,i){return e.myImgUrl!==""?(n.openBlock(),n.createElementBlock("img",{key:0,class:"ecan-image",style:n.normalizeStyle(e.style),src:e.myImgUrl,onClick:o[0]||(o[0]=(...s)=>e.onClick&&e.onClick(...s))},null,12,Of)):(n.openBlock(),n.createElementBlock("div",{key:1,class:"image-placeholder",style:n.normalizeStyle(e.style)}," 请上传图片 ",4))}const Al=pe(ye(Da,[["render",Lf],["__scopeId","data-v-47ea6e7c"]])),Ra={...ke,name:"网页",keyName:"网页",type:"ecanIframe",width:"300px",height:"300px",link:"",linkType:"web"},Ia=Se(Ra),Nf=n.defineComponent({name:"EcanIframe",props:{...Ia},setup(e){const o=Ce(e),{contextRequestUrl:t}=n.inject(Me,{contextRequestUrl:""}),a=n.computed(()=>{let r=De(e.link);if(e.linkType==="erd"&&r!=null){let i=n.unref(t);i[i.length-1]==="/"?i+="erdReport":i+="/erdReport",r=`${Cs||i}?_t=0&uid=${r}`}return r});return{style:o,myLink:a}}}),z1="",Ff=["src"];function zf(e,o,t,a,r,i){return e.myLink?(n.openBlock(),n.createElementBlock("iframe",{key:0,src:e.myLink,style:n.normalizeStyle(e.style)},null,12,Ff)):(n.openBlock(),n.createElementBlock("div",{key:1,class:"iframe-placeholder",style:n.normalizeStyle(e.style)}," 请填写网页链接 ",4))}const kl=pe(ye(Nf,[["render",zf],["__scopeId","data-v-19bc100c"]])),_a={...ke,zIndex:2,name:"表格",keyName:"表格",type:"ecanTable",width:"400px",height:"240px",bordered:!1,headerFontSize:"14px",headerFontColor:"",fontSize:"14px",isUseSeq:!1,size:"default",headerFontWeight:400,isUseExport:!1,fontWeight:400,columnsFixedNum:0,scrollX:0,paginationShow:!0,isReverse:!1,simple:!1,pageSizeShow:!1,cellBackgroundColor:"",cellFontColor:"",headerBackgroundColor:"",borderColor:"",paginationPosition:"bottomRight",paginationPageSize:10,isUseAction:!1,clickHighlight:!1,filterDropdownHeight:"200px",actionList:[{title:"",href:"",target:"",color:""}],actionColumnWidth:100,columns:[{title:"姓名",dataIndex:"name"},{title:"年龄",dataIndex:"age"},{title:"住址",dataIndex:"address"}],data:[{name:"小明",age:32,address:"福州软件园"},{name:"小红",age:25,address:"福州软件园"}],graphicConfig:{},stripedShow:!1,stripedColor:"#fafafa",isGroupTable:!0,seqWidth:"10%",seqName:"序号",seqIcon:!1,isSummaryFixed:!1,isPageBottom:!1,isShowTotal:!1,hideTableHeader:!1,paginationColor:"",paginationBgColor:"",activePaginationColor:"",activePaginationBgColor:"",hoverBackgroundColor:"",subTotalColumn:"",subTotalName:"小计",isSortByFront:!1},Oa=Se(_a),Tl=["click","refreshData","resetRecord","exportTableData"],Mf="data:image/png;base64,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",Pf="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAA4CAYAAACohjseAAAAAXNSR0IArs4c6QAABQFJREFUaEPtWt1v21QUv9eJ80FbWmV0adel7ZqyLenSgVYJaQghHhBIICEhoWkvSGgCiQ+JdWMCISEVxAPSoEWT+AN4QTzxzl/Ah8SAQtJ23dKvreuydl3TrIsd23e6xz63LovqeE2BePaLT06ur33O7+dzj8+5lPyHh5I7f4TfPpT6IIuPQSll9XwkWs/J3M7lGQOV7JdpYTxjX206gr4IMiM/CwQDdBhQTZ8VOreOs4//VxD0DWwkBO/kxjqRIkFDHwWZktdQZ2h6AOXlpUUQY3s7BKuCsoxB5ltUalLgYy43pYevu6Vr3SnqKQNZ9ptm9KjK7n5iye/bAkqYyzeuLQjV3OVJIavlMshyKCR03f2HQe5I9AgdpbRkBiP6BSpD6xTYQY+fubsdqjtC0DeQscZBkLERCamgZFveNmMH+9xGjzYu3165KVSzUzmQS8U1t7GBNLU8Kq7pS0HCQ1pjj9nmofPmD/aRoO3A2e/huWzZUM0U9ayB5exoP3iFGT/a3NfH5Y3SulDNTJrp5OpywTVatV6wJy5WIHLgkJkcRR5p2rzcWk8NSTuBSkcEfQMtVzUEgowxQFTLnj+OEBtEeteST6Lu2swVEGcvmUEEXnVW168cR9ZSyYx5vQdTYmxXbxKf5eWqFPWkgSw7GkNrVWa8A2gQkkCdrigQm4Ph8Kuom7j4K4grhSVHT+/2gFh7XNwifeyp+xH0vIEYJU3TjXP8VFiYLaJbSsViK5eTA4Nvoi732y8g3rp5Y7cBcpzfEUHfQC8iOD3+u0goJUlq5zzpP3L0Lc9Q1PMGTv55USSUciCwt9EQlCh5Riz01YKMb+D/fJlwhWA4JHdxuPtSmTcaJcj4BtrfwWg00m1m7enXPYmgb6Bjtri7A6rlolveQeWvMfHFyKh+mj+OpyjqfQPHRzNIIiYZ79WCYH7ib7hkcS6/u/yrYfZ9PVDggwPrp1sp6ht4/zLhKQRZRYUO0qEnhk4hFQLBYAuX7UVeLBvai8E1MMzVEHuRFwu/9mIwLzLAhAZ5WiTbigNFPWng/KWJVfTAfP4y1GfC4bBo4iUHBp/lulh7XHiKt/m4bmlhTqAyb/UCK6rqCik+2N4zTCQPwvWdiV4xD5WkCv9BGbmASlkLQDOIPjl8e1sEPWXglpYz02ELB2MEKmn8KK2uQBv2ymTW5DchZH1tDbzX0toGLTN+9KcyL/Bzc1ubWHYqqgqVckTynwhjNRyr1Pz/fd0HYD5EjctBGcjB+3VTeD9JZ/B1Iw+e+wl11c7UN7DREbTDyqYvQMtZVRVzBxK8xPR5fjYYC6Ju+fpV2BQwO5UTrduyoupcF+/aL8r+3Y8ffonrIpGo0NmXkYK1OaHToiUfG45GLTYSUVVmViAJKaWvxXMNjWxsR00x7qEysJpHsHdRYYZovhiMDfGxuq6JntnV/DSE5sWZvLnlA9ZbA87JVOYY6uL7e4ER/JAkam5DoUQwgRH2HVdphvwpjmvOnH7gHoFjh9c30HJzwyJYjbbl8TH4RqGSJvagMUJBp2zcgTWSH4VFMxh1JHogd+VHKBQxowhMQCGoMV37DFWRox+Kta7avd3qHCn6UBqIRmPLG4KC1dc3qPTK5v9mRkQJEa0ASukP+L+cPvOHCWR9tzHbQXkgBH0DLQ9gTtuwCFZ7PzEb4v9Vyhok3vJyEagIdHxuRHMbKHYyfkcUbQQD7wHq9EAq9LeVYwAAAABJRU5ErkJggg==",qf="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAA4CAYAAACohjseAAAAAXNSR0IArs4c6QAABMJJREFUaEPtWl1sFFUUPndmlm1LdW1XoGxly7qFYqmIBkxEJDTRRI3RxNhgpDzpkwixJCaEJx588MHQCPrgGwT8SSD4Zkx84DfGEEjU2KpAS6ktZVsKpF0K3Z+55p4798ysGdju0A3Mdu5De/bcn7nnfN/ce+ecy+ABli1fHGsTjz+4fWMPTYMxPptTYrM5WKljBQaW6jGX9mVF8N19p2PimYxBnXq2ZpqfK5kDvCpl/qvSMdC7hPzN9vWkux87AwNn6r3O7pOLRVtT5+/bfVinJS9TOjNvakoeG0mhGF20gLoYIUMtMgcI9TzsEvKhrg0jM52PzYhSe9ylfWCg5RhfINjx9c8RMd/QnapN9v7FP7Dk1aTjPCTk1LDNrIHzfVSduTONcmgeNsPStCyJ/xvijfbQjKXFD87ZZ0qZy+t7hHx4x7rb9yKhp0Wmogx8be+PYeGhCNS+TC89AC7lAPCCw3s1Qr557TqpLv19AeX0xOS9nOxaN/+RWtInW1tQjkRptxE/BxFVYDtVw++2rf8eZcdpqCiCgYG2/32AIOeI6OYvT62jeXO2RVKBv+PgUlTIU+lbpOr/6zzKN8bGS6bjTDtEGxZS08SKZpSra9CvVpEnIt3UaPErpGglGtix55d6ZX/IyH4oX1JYonSZ25kGIc+rCr+pdEP9l1Ec+Oei7Ts+q185RUFlmjwQJVokkqI0JuL43wR4Q+lYYKDfEez86hhhbJraJwLaoT7cYrCkJyaRoitWtxFFe8/9jnXjqbGiVCp3g/qFj9MjVq6Rh6gCis5JA3vP/kFe0TQmEXx2FSHYc/Y3rL8+eq3cABUd3xOCgYF+R7DnjE1R3ahAigYGPuQU5SZ7iU4ybtuE3xEMDHQiGAqHnhBwL1/V+rqC/WHfB0tCMDCw6FmjvA3cTjIFCG7qPvGUmoJuwMdCdlI0XF2FH1nNbS1WHgHAVxSteAM37zvxtEKQA3xUcQgGBvr9HfSCYH+vDBEOD9hf/uVdK+8+emwpxcdARcALVtE5aeClP+1w4GR64jHhv9bnnqFQnBEyMNrqDPKqwK8zGDzbqDqDvCrw6wwGiyCDeCZn+RfpsO2GYGCgnxBUqWeEVpdpMc44JjiRhqMyHfbvxT7KUjbE4xifWxBbRHsoABhCd3VwmJh5+YJMdmYz2ZLZ6kyKLmlOYP9YHM/9WJim4aAc2F6lC+dznwp5f1f7TWpX8QY6XatygXW8ls6dwNgroo3JTUIwNXgFu42OjFCWcuny5PNCF6mvo0CyQk4h+X+EuZXPUHkGUd/YJJd9hZqQHTcvjqj5anpe3rzY2m6viC48KcguBQZaHvItgm4rgco+GXrubaIHY2uEnMlMEwMGrAUlP52jLGVTSxITqdXza0jn3CdTQ5LqMYuWQg5XV6nHnKOFAjT8CPByvatojr7iDXRD9b3uU0+iXocOqmcm6qYmpkiVuiIRakom5DUJANAMY61jTJV/lhlVLHyH+Pvttg0/2GN7v0NaFMHAQHpRKghBm03yVoYodDODw1tENnUi4too+YHxn6jelHcBsjeiR5Xu8O6VGTfWeNV5oujcMdDFreqwIKoi7FE8q14dz8qMKQAc392e84qGl373h2Bg4INH8D9A563p5gHY1gAAAABJRU5ErkJggg==",La=n.defineComponent({name:"EcanTable",components:{Skeleton:sn,AButton:ce.Button,AInput:ce.Input,ACheckboxGroup:ce.CheckboxGroup,ATable:ce.Table,ATableSummary:ce.TableSummary,ATableSummaryRow:ce.TableSummaryRow,ATableSummaryCell:ce.TableSummaryCell},props:{...Oa},setup(e,{expose:o}){const t=n.ref(!1),a=n.computed(()=>{const V=Ne.cloneDeep(e.columns);return e.isUseSeq&&V.unshift({title:e.seqName,dataIndex:"SEQ",align:"center",width:e.seqWidth}),e.isUseAction&&V.push({title:"操作",dataIndex:"ACTION",width:e.actionColumnWidth}),V}),r=n.ref(),i=n.ref(!1),s=Ce(e),l=n.ref([]),d=n.computed(()=>e.scrollX),c=n.ref(0),f=()=>{let V=0;switch(e.size){case"small":V=50;break;case"middle":V=53;break;default:V=65;break}return V};n.watchEffect(()=>{var V;(V=l.value)!=null&&V.length&&e.height&&n.nextTick(()=>{let Z=parseFloat(e.height);const J=document.querySelector(`#ecanTable-${e.id} .ant-table-tbody`),oe=document.querySelector(`#ecanTable-${e.id} thead.ant-table-thead`),ie=document.querySelector(`#ecanTable-${e.id} .ant-table-summary`);let te=0;if(oe&&(Z-=(oe==null?void 0:oe.clientHeight)||0),ie&&e.isSummaryFixed&&(te=(ie==null?void 0:ie.clientHeight)||0,Z-=te),e.paginationShow){let ee=0;ee=f(),ee&&(Z-=ee)}(J==null?void 0:J.clientHeight)>Z?c.value=Z:c.value=0,n.nextTick(()=>{if(te){const ee=document.querySelector(`#ecanTable-${e.id} .ant-table-summary`),fe=(ee==null?void 0:ee.clientHeight)||0;te!==fe&&n.unref(c)&&(c.value=Z+te-fe)}})})});const y=n.ref([]),u=n.ref([]),h=n.ref([]),m=n.ref([]),g=n.ref(0),v=n.ref(1),B=n.ref(e.paginationPageSize||10),p=n.reactive([]),b=(V=[])=>{var Z,J;if(Array.isArray(V)&&V.length>0){let oe=V.length;const ie=e.columnsFixedNum;if(e.dataType==="indicator"&&((Z=n.unref(a))!=null&&Z.length)){const{graphicConfig:{indicators:te=[]}}=e;V.forEach((ee,fe)=>{if(n.unref(a)[fe])for(const Oe in n.unref(a)[fe])["dataIndex","title"].includes(Oe)||(ee[Oe]=n.unref(a)[fe][Oe]);const he=te.find(Oe=>Oe.label===ee.title),{showLabel:ge=""}=he||{};ge&&(ee.title=ge)})}for(let te=oe-1;te>=0;te--)(J=V[te])!=null&&J.isHidden&&V.splice(te,1);oe=V.length;for(let te=0;te<oe;te++){const ee=V[te];if(te<ie?ee.fixed="left":ee.fixed=!1,e.isSortByFront&&ee.sorter){const Ke=ee.dataIndex;ee.sorter=(_t,Zt)=>_t[Ke]-Zt[Ke]}const{cellAlign:fe="center",cellColor:he,dataIndex:ge,title:Oe,tableFilter:Ye,headerCellAlign:yt,headerCellColor:It,overflow:Cn}=ee;Ye&&(p.push(ge),ee.filterOptionsInputValue="",ee.filterCheckboxGroupValue=[],ee.customFilterDropdown=!0,ee.onFilter=(Ke,_t)=>_t[ge].toString().toLowerCase().includes(Ke.toLowerCase())),ee.customHeaderCell=()=>({style:{display:"table-cell",verticalAlign:"middle",fontSize:e.headerFontSize,fontWeight:e.headerFontWeight,textAlign:yt||"center",color:It||e.headerFontColor,borderBottomColor:e.borderColor,backgroundColor:e.headerBackgroundColor}}),ee.customCell=(Ke,_t)=>({style:{textAlign:fe,color:he||e.cellFontColor,backgroundColor:e.cellBackgroundColor,borderBottomColor:e.borderColor},class:{highlight:n.unref(H)===_t&&e.clickHighlight},onClick:$("click",()=>{const Zt=e.id,wn=F(Zt);Ke={dataIndex:ge,title:Oe,...Ke},P(Zt,{...wn,type:e.type,RECORD:Ke})})}),Cn==="ellipsis"?ee.ellipsis=!0:ee.ellipsis=!1,Array.isArray(ee.children)&&b(ee.children)}}},x=(V=[])=>{var J;let Z=Ne.cloneDeep(V);return(J=n.unref(m))!=null&&J.length&&(Z=Ne.cloneDeep(n.unref(m))),e.isUseSeq&&Z.unshift({title:e.seqName,dataIndex:"SEQ",align:"center",width:e.seqWidth}),e.isUseAction&&Z.push({title:"操作",dataIndex:"ACTION",width:e.actionColumnWidth}),b(Z),Z};n.watch(B,()=>{v.value=1,Q(!1)}),n.watch(r,V=>{i.value=!!V}),n.watch(()=>[e.columns,e.isUseSeq,e.seqWidth,e.seqName,e.seqIcon,e.isUseAction,e.columnsFixedNum,e.actionColumnWidth,e.cellBackgroundColor,e.headerBackgroundColor,e.borderColor,e.stripedColor],()=>{y.value=x(Ne.cloneDeep(e.columns))},{immediate:!0,deep:!0}),n.watch(()=>[e.data,e.dataType],([V,Z])=>{Z==="static"&&(u.value=V)},{immediate:!0});const A=n.ref({}),k=V=>{if(Array.isArray(V)){const Z=V.length,J=p,oe=J.length,ie={};for(let ee=0;ee<Z;ee++){const fe=V[ee];for(let he=0;he<oe;he++){const ge=J[he];if(ie[ge])ie[ge].add(fe[ge]);else{const Oe=new Set;Oe.add(fe[ge]),ie[ge]=Oe}}}const te={};for(const ee in ie)if(Object.prototype.hasOwnProperty.call(ie,ee)){const fe=ie[ee],he=Array.from(fe);te[ee]=he.map(ge=>({label:ge,value:ge}))}A.value=te}};n.watch(()=>[e.isReverse,y.value,u.value],()=>{const V=n.unref(y),Z=n.unref(u);if(k(Z),e.isReverse){const{columns:J,dataSource:oe}=D(Ne.cloneDeep(V),Ne.cloneDeep(Z));h.value=J,l.value=oe}else h.value=V,l.value=Z},{immediate:!0});const D=(V,Z)=>{const J=V[0],oe=[{title:J.title,dataIndex:"col0",key:"col0",align:"center"}];for(let te=0;te<Z.length;te++){const ee=Z[te],fe="col"+(te+1);oe.push({title:ee[J.dataIndex],dataIndex:fe,key:fe,align:"center"})}const ie=[];for(let te=1;te<V.length;te++){const ee=V[te],fe={col0:ee.title};for(let he=0;he<Z.length;he++){const ge=Z[he];fe[`col${he+1}`]=ge[ee.dataIndex]}ie.push(fe)}return{columns:oe,dataSource:ie}},O=n.ref(""),N=je(e),C=async(V=!0,Z={})=>{var J;try{V&&(t.value=!0),n.unref(O)&&(Z.orderCondition=n.unref(O)),e.paginationShow&&(Z={pageNum:n.unref(v),pageSize:n.unref(B)||"10",layer:"1",...Z});const oe=await N(Z),{rows:ie=[],total:te=0}=((J=oe==null?void 0:oe.data)==null?void 0:J.data)||{};if(g.value=te,Array.isArray(ie)&&(u.value=ie),window.config.routerBaseURL.includes("1523545080925487106")){const{requestParams:ee=[]}=e,fe=ee.find(he=>he.key==="dataSqlId");if((fe==null?void 0:fe.value)==="xt_jxzebg"){const he=ie.filter(ge=>!ge.绩效总额).map(ge=>ge.ORG_NAME);he!=null&&he.length&&n.nextTick(()=>{ce.notification.warning({message:"提示",description:`当前时段${he.join("、")}绩效数据为空`,duration:3})})}}}catch(oe){console.error(oe)}finally{t.value=!1}},T=({current:V},Z,J)=>{if(v.value=V,J&&Object.keys(J).length>0){const{field:oe,order:ie}=J,ee={ascend:"asc",descend:"desc"}[ie];oe!=null&&ee!=null&&ee?O.value=oe+" "+ee:ee||(O.value="")}e.isSortByFront||Q(!1)},R=n.computed(()=>{const V=e.simple,Z=[e.paginationPosition],J={};return e.isShowTotal&&(J.showTotal=oe=>`共 ${oe} 条数据`),e.paginationShow&&{simple:V,position:Z,total:n.unref(g),current:n.unref(v),pageSize:n.unref(B)||"10",showSizeChanger:!1,size:"large",...J}}),S=V=>+V==1?"是":+V==0?"否":V,E=(V,Z)=>{const{format:J,retentiondigit:oe,customFormatter:ie}=Z;if(J==null||J==="")return V;const te={money:Do,percentage:bn,contrast:bn,boolean:S,decimals:Rc,custom:bi};return te[J]?J==="decimals"?te[J](V,oe)||"":J==="custom"?te[J](V,ie)||"":te[J](V)||"":""},w=V=>V==="contrast"?"upDown":"",_=V=>{const{text:Z,format:J,declineColor:oe="#39cf93",increaseColor:ie="#ff512e"}=V;if(J==="contrast"){const te={fontSize:e.fontSize},ee=parseFloat(Z+"");return ee>=0?te.color=ie:ee<0&&(te.color=oe),te}else return{}},z=n.computed(()=>{const{fontSize:V}=e;return{width:V,height:V,textIndent:`-${parseFloat(V)*2}px`,overflow:"hidden"}}),q=V=>{const{text:Z,declineColor:J="#39cf93",increaseColor:oe="#ff512e"}=V,{fontSize:ie}=e,te=parseFloat(Z+""),ee={width:ie,verticalAlign:"unset"};return te>=0?ee.filter=`drop-shadow(${oe||"#ff512e"} ${ie} -1px)`:te<0&&(ee.filter=`drop-shadow(${J||"#39cf93"} ${ie} -1px)`),ee},W=V=>{const Z=parseFloat(V+"");if(Z>=0)return Lo;if(Z<0)return No},$=Ee(e),{getGlobalModel:F,setGlobalModel:P}=n.inject(Be,{getGlobalModel:V=>{},setGlobalModel:(V,Z)=>{}});P(e.id,{type:e.type,RECORD:""});const M=(V=[],Z=[])=>{const J=V.map(oe=>({title:oe,dataIndex:oe,key:oe}));m.value=Ne.cloneDeep(J),y.value=x(J),u.value=Z},I=lt(e),L=async(V=!0)=>{var Z,J,oe,ie;try{V&&(t.value=!0);const te=n.unref(O).split(" "),ee={};e.isSortByFront||(ee.sort={order:te[1],field:te[0]});const fe=await I(ee);M((J=(Z=fe==null?void 0:fe.data)==null?void 0:Z.data)==null?void 0:J.columns,(ie=(oe=fe==null?void 0:fe.data)==null?void 0:oe.data)==null?void 0:ie.rows)}catch(te){console.error(te)}finally{t.value=!1}},H=n.ref(-1),Y=(V,Z)=>({onClick:$("rowClick",()=>{const J=e.id,oe=F(J);P(J,{...oe,type:e.type,RECORD:V}),H.value=Z})}),{loadedData:U}=n.inject(bt,{loadedData:{}}),ae=n.ref(!1);n.watch(U,V=>{if(e.dataType==="indicator"){const Z=tn(e.graphicConfig);Z!=null&&Z.length&&(!n.unref(ae)&&rt(e.graphicConfig,V)?(ae.value=!0,Q()):rt(e.graphicConfig,V)||(ae.value=!1))}},{deep:!0});const Q=(V=!0)=>{switch(e.dataType){case"request":C(V);break;case"indicator":rt(e.graphicConfig,n.unref(U))&&L(V);break}},le=()=>{const V=e.id,Z=F(V);P(V,{...Z,type:e.type,RECORD:""})},re=n.computed(()=>{const V=n.unref(h);let Z=0;const{subTotalColumn:J,subTotalName:oe}=e;J&&(Z=V.findIndex(he=>he.dataIndex===J),Z<0&&(Z=0));const ie=[];let te=0;for(let he=0;he<V.length;he++){const ge=V[he],{isCalcTotal:Oe}=ge;he===Z?ie.push({...ge,total:oe}):Oe?(ie.push({...ge,index:he,total:0}),te++):ie.push({...ge})}if(te===0)return[];const ee=n.unref(l),fe=K(ie);for(let he=0;he<fe.length;he++){const ge=fe[he];let Oe=0;const{isCalcTotal:Ye,dataIndex:yt}=ge;if(Ye===!0){for(let It=0;It<ee.length;It++){const Ke=+ee[It][yt];isNaN(Ke)||(Oe=new Vl.Big(Oe).add(Ke).toNumber())}ge.total=Oe}}return fe});function K(V){var J;const Z=[];for(const oe of V)(J=oe.children)!=null&&J.length?Z.push(...K(oe.children)):Z.push(oe);return Z}const{setRequest:X}=n.inject(Pe,{setRequest:V=>{}});typeof X=="function"&&X({id:e.id,requestFn:Q,sortNum:e.requestSort}),o({refreshData:Q});const ne=(V="",Z)=>De(V,Z),xe=V=>{if(V!=="event")return{self:"_self",blank:"_blank"}[V]},we=(V,Z="")=>{V==="event"&&window.parent.postMessage({type:"openPage",url:Z},"*")},Te=(V,Z)=>{V(Z.filterCheckboxGroupValue)},$e=(V,Z)=>{V({confirm:!0}),Z.filterOptionsInputValue="",Z.filterCheckboxGroupValue=[]},ze=()=>{},Ie=V=>{const Z=V.dataIndex;if(typeof Z=="string"){let J=n.unref(A)[Z];const oe=n.unref(V.filterOptionsInputValue).trim();return Array.isArray(J)?(J=J.filter(ie=>typeof ie.label=="string"?ie.label.toLowerCase().includes(oe.toLowerCase()):!0),J):[]}return[]},Ae=async()=>{var ge,Oe;const V="EXPORT_KEY";ce.message.loading({key:V,content:"正在导出...",duration:0});let Z=[];if(e.dataType==="static")Z=e.data;else if(e.dataType==="request"){const Ye={layer:"1"};n.unref(O)&&(Ye.orderCondition=n.unref(O));const yt=await N(Ye);Z=((Oe=(ge=yt==null?void 0:yt.data)==null?void 0:ge.data)==null?void 0:Oe.rows)||{}}const J=n.unref(h),oe=[],ie=[];J==null||J.forEach(Ye=>{oe.push(Ye.dataIndex),ie.push(Ye.title)});const te=Z.map(Ye=>Ne.pick(Ye,oe)),ee=Yt.utils.book_new(),fe=Yt.utils.aoa_to_sheet([ie]),he=Yt.utils.sheet_add_json(fe,te,{skipHeader:!0,origin:"A2"});Yt.utils.book_append_sheet(ee,he,"sheet"),Yt.writeFile(ee,"表格数据.xlsx"),ce.message.success({key:V,content:"导出成功"})},He=(V,Z=2)=>{const J=+V*100;return isNaN(J)||J<=0?0:J>=100?100:J.toFixed(Z)};Le(e,{resetRecord:le,refreshData:Q,exportTableData:Ae});const Fe=(V,Z)=>{let J=null;return e.stripedShow&&(J=Z%2===1?"table-striped":null),J},Ze=n.computed(()=>{let V=0;const{height:Z,isPageBottom:J}=e;return J&&Z&&(V=parseFloat(Z)-f()),V?V+"px":"100%"}),We=n.computed(()=>{let V="#071655";return e.headerBackgroundColor&&(V="transparent"),V}),Ve=n.computed(()=>{let V="#071655";return(e.cellBackgroundColor||e.stripedShow&&e.stripedColor)&&(V="transparent"),V}),ut=n.computed(()=>parseFloat(e.fontSize)+16),et=n.computed(()=>{let V="";const{paginationColor:Z,paginationBgColor:J,activePaginationColor:oe,activePaginationBgColor:ie,hoverBackgroundColor:te}=e;return Z&&(V+="p-color "),J&&(V+="p-bg-color "),oe&&(V+="active-p-color "),ie&&(V+="active-p-bg-color "),te&&(V+="hover-bg-color "),V});return{x:d,y:c,style:s,customRow:Y,pagination:R,formatFn:E,contrastClass:w,tableChange:T,summaryList:re,loading:t,onTouchHrefEvent:we,handleHref:ne,handleHrefTarget:xe,useRowIndex:H,tableColumns:h,tableDataSource:l,useFilterOptions:Ie,useSetSelectedKeys:Te,onResetFilter:$e,onSearchFilterOptions:ze,exportTableData:Ae,handleProgressText:He,pageSizeVisible:i,pageSize:B,tableRef:r,rowClassName:Fe,tableHeight:Ze,tableHeaderBgColor:We,tableBodyBgColor:Ve,getChgStyle:_,chgBoxStyle:z,getChgBoxImgStyle:q,getChgBoxImgSrc:W,seqIcon1:Mf,seqIcon2:Pf,seqIcon3:qf,iconSize:ut,containerClass:et,getCellStyle:V=>{const{overflow:Z}=V;if(Z==="ellipsis")return{overflow:"hidden",textOverflow:"ellipsis"};if(Z==="wrap")return{}}}}}),Bl=()=>{n.useCssVars(e=>({"70c383fc":e.stripedColor,"35e71b39":e.tableHeaderBgColor,"53718c84":e.tableBodyBgColor,cedc7664:e.paginationBgColor,"6ceaca13":e.paginationColor,"25b86a30":e.activePaginationBgColor,"6a9b8ead":e.activePaginationColor,"7d7d7e0f":e.hoverBackgroundColor}))},El=La.setup;La.setup=El?(e,o)=>(Bl(),El(e,o)):Bl;const P1="",q1="",Hf=e=>(n.pushScopeId("data-v-f641124f"),e=e(),n.popScopeId(),e),Vf=["id"],jf={key:0,class:"table-tool"},Wf=n.createTextVNode("导出数据"),Uf=n.createTextVNode(" 搜索 "),Gf=n.createTextVNode(" 重置 "),$f=["src","width","height"],Zf=["src","width","height"],Yf=["src","width","height"],Kf={key:1},Qf={key:1,class:"action-list"},Jf=["href","target","onClick"],Xf={key:2,class:"progress-cell"},eu=["title"],tu=["title"],nu=["src"],ou=["title"],au=["src"],ru={class:"ant-pagination-options-quick-jumper"},iu=Hf(()=>n.createElementVNode("span",null,"条 / 页",-1));function lu(e,o,t,a,r,i){const s=n.resolveComponent("a-button"),l=n.resolveComponent("a-input"),d=n.resolveComponent("a-checkbox-group"),c=n.resolveComponent("a-table-summary-cell"),f=n.resolveComponent("a-table-summary-row"),y=n.resolveComponent("a-table-summary"),u=n.resolveComponent("a-table"),h=n.resolveComponent("skeleton");return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["ecan-table",e.containerClass]),id:"ecanTable-"+e.id,style:n.normalizeStyle(e.style)},[n.createVNode(h,{loading:e.loading},{default:n.withCtx(()=>{var m;return[e.isUseExport?(n.openBlock(),n.createElementBlock("div",jf,[n.createVNode(s,{class:"export-button",onClick:e.exportTableData},{default:n.withCtx(()=>[Wf]),_:1},8,["onClick"])])):n.createCommentVNode("",!0),n.createVNode(u,{ref:"tableRef",class:"table",style:n.normalizeStyle({height:e.tableHeight}),columns:e.tableColumns,"data-source":e.tableDataSource,bordered:e.bordered,size:e.size,customRow:e.customRow,scroll:e.y?{x:e.x,y:e.y}:{},pagination:e.pagination,"row-class-name":e.rowClassName,"show-header":!e.hideTableHeader,onChange:e.tableChange},{customFilterDropdown:n.withCtx(({column:g,selectedKeys:v,setSelectedKeys:B,confirm:p,clearFilters:b})=>[n.createElementVNode("div",{class:"ecan-table-filter",style:n.normalizeStyle({height:e.filterDropdownHeight})},[n.createVNode(l,{value:g.filterOptionsInputValue,"onUpdate:value":x=>g.filterOptionsInputValue=x,placeholder:"请输入关键字",class:"filter-input",onChange:e.onSearchFilterOptions},null,8,["value","onUpdate:value","onChange"]),n.createVNode(d,{value:g.filterCheckboxGroupValue,"onUpdate:value":x=>g.filterCheckboxGroupValue=x,class:"filter-checkbox",options:e.useFilterOptions(g),onChange:x=>e.useSetSelectedKeys(B,g)},null,8,["value","onUpdate:value","options","onChange"]),n.createElementVNode("div",null,[n.createVNode(s,{type:"primary",size:"small",style:{width:"90px","margin-right":"8px"},onClick:()=>p()},{default:n.withCtx(()=>[Uf]),_:2},1032,["onClick"]),n.createVNode(s,{size:"small",style:{width:"90px"},onClick:n.withModifiers(x=>e.onResetFilter(b,g),["stop"])},{default:n.withCtx(()=>[Gf]),_:2},1032,["onClick"])])],4)]),bodyCell:n.withCtx(({column:g,index:v,text:B,record:p})=>{var b,x,A,k;return[g.dataIndex==="SEQ"?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[e.seqIcon?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[v===0?(n.openBlock(),n.createElementBlock("img",{key:0,class:"seq-icon",src:e.seqIcon1,width:e.iconSize,height:e.iconSize},null,8,$f)):v===1?(n.openBlock(),n.createElementBlock("img",{key:1,class:"seq-icon",src:e.seqIcon2,width:e.iconSize,height:e.iconSize},null,8,Zf)):v>=2?(n.openBlock(),n.createElementBlock("img",{key:2,class:"seq-icon",src:e.seqIcon3,width:e.iconSize,height:e.iconSize},null,8,Yf)):n.createCommentVNode("",!0),n.createElementVNode("span",{class:"seq-icon seq-text",style:n.normalizeStyle({fontSize:e.fontSize})},n.toDisplayString(v+1),5)],64)):(n.openBlock(),n.createElementBlock("span",Kf,n.toDisplayString(v+1),1))],64)):g.dataIndex==="ACTION"?(n.openBlock(),n.createElementBlock("div",Qf,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.actionList,(D,O)=>(n.openBlock(),n.createElementBlock("div",{class:"action",key:O},[n.createElementVNode("a",{href:e.handleHref(D.href,p),target:e.handleHrefTarget(D.target),style:n.normalizeStyle({color:D.color,fontSize:e.fontSize,fontWeight:e.fontWeight}),onClick:N=>e.onTouchHrefEvent(D.target,e.handleHref(D.href,p))},n.toDisplayString(D.title),13,Jf)]))),128))])):g.format==="progress"?(n.openBlock(),n.createElementBlock("div",Xf,[n.createElementVNode("div",{class:"progress",style:n.normalizeStyle({background:g.progressColor||"#1890ff",height:g.progressWidth||"18px",width:`${e.handleProgressText(B,g.progressTextDecimalPlaces)}%`})},null,4),n.createElementVNode("div",{class:"progress-text",style:n.normalizeStyle({color:+e.handleProgressText(B)<100?g.progressTextColor||"#333":g.progressFinishedTextColor||"#fff"})},n.toDisplayString(e.handleProgressText(B,g.progressTextDecimalPlaces))+"% ",5)])):(n.openBlock(),n.createElementBlock("div",{key:3,style:n.normalizeStyle({fontSize:e.fontSize,fontWeight:e.fontWeight,...e.getCellStyle(g)})},[g.format==="contrast"?(n.openBlock(),n.createElementBlock("span",{key:0,title:((b=g==null?void 0:g.customFormatter)==null?void 0:b.split("{value}")[0])||""},n.toDisplayString(((x=g==null?void 0:g.customFormatter)==null?void 0:x.split("{value}")[0])||""),9,eu)):n.createCommentVNode("",!0),n.createElementVNode("span",{class:n.normalizeClass([e.contrastClass(g.format)]),style:n.normalizeStyle(e.getChgStyle({...g,text:B})),title:g.format!=null?e.formatFn(B,g):B},[g.format==="contrast"?(n.openBlock(),n.createElementBlock("div",{key:0,style:n.normalizeStyle(e.chgBoxStyle)},[n.createElementVNode("img",{style:n.normalizeStyle(e.getChgBoxImgStyle({...g,text:B})),src:e.getChgBoxImgSrc(B)},null,12,nu)],4)):n.createCommentVNode("",!0),n.createTextVNode(" "+n.toDisplayString(g.format!=null?e.formatFn(B,g):B),1)],14,tu),g.format==="contrast"?(n.openBlock(),n.createElementBlock("span",{key:1,title:((A=g==null?void 0:g.customFormatter)==null?void 0:A.split("{value}")[1])||""},n.toDisplayString(((k=g==null?void 0:g.customFormatter)==null?void 0:k.split("{value}")[1])||""),9,ou)):n.createCommentVNode("",!0)],4))]}),summary:n.withCtx(()=>[e.summaryList.length>0?(n.openBlock(),n.createBlock(y,{key:0,fixed:e.isSummaryFixed},{default:n.withCtx(()=>[n.createVNode(f,null,{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.summaryList,(g,v)=>(n.openBlock(),n.createBlock(c,{key:v,index:v,style:n.normalizeStyle({backgroundColor:e.cellBackgroundColor,textAlign:g.cellAlign||"center",color:e.cellFontColor,borderBottomColor:e.borderColor})},{default:n.withCtx(()=>[n.createElementVNode("span",{class:n.normalizeClass([e.contrastClass(g.format)]),style:n.normalizeStyle({...e.getChgStyle({...g,text:g.total}),fontSize:e.fontSize,fontWeight:e.fontWeight})},[g.format==="contrast"?(n.openBlock(),n.createElementBlock("div",{key:0,style:n.normalizeStyle(e.chgBoxStyle)},[n.createElementVNode("img",{style:n.normalizeStyle(e.getChgBoxImgStyle({...g,text:g.total})),src:e.getChgBoxImgSrc(g.total)},null,12,au)],4)):n.createCommentVNode("",!0),n.createTextVNode(" "+n.toDisplayString((g.format!=null||g.format!=="")&&e.formatFn(g.total,g)),1)],6)]),_:2},1032,["index","style"]))),128))]),_:1})]),_:1},8,["fixed"])):n.createCommentVNode("",!0)]),_:1},8,["style","columns","data-source","bordered","size","customRow","scroll","pagination","row-class-name","show-header","onChange"]),e.paginationShow?(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[(m=e.tableDataSource)!=null&&m.length&&!e.simple&&e.pageSizeShow&&e.pageSizeVisible?(n.openBlock(),n.createBlock(n.Teleport,{key:0,to:"#ecanTable-"+e.id+" .ant-pagination"},[n.createElementVNode("div",ru,[n.withDirectives(n.createElementVNode("input",{type:"text","onUpdate:modelValue":o[0]||(o[0]=g=>e.pageSize=g)},null,512),[[n.vModelText,e.pageSize]]),iu])],8,["to"])):n.createCommentVNode("",!0)],64)):n.createCommentVNode("",!0)]}),_:1},8,["loading"])],14,Vf)}const Dl=pe(ye(La,[["render",lu],["__scopeId","data-v-f641124f"]])),Na={...ke,mapJson:null,data:[],name:"地图",keyName:"地图",type:"ecanMap",width:"400px",height:"400px",backgroundImage:"",backgroundImageRepeat:"no-repeat",geoBackgroundImage:"",geoBackgroundImageRepeat:"no-repeat",symbolImage:"",symbolWidth:10,symbolHeight:10,itemStyleColor:"#11BFDA",labelFontSize:14,labelShow:!0,geoLabelShow:!0,geoLabelColor:"#000",geoZoom:1,geoRoam:!1,geoCenter:"",geoLabelFontSize:12,labelColor:"",labelFormatter:"{b}",geoItemStyleAreaColor:"#eee",geoItemStyleBorderColor:"#000",geoItemStyleBorderWidth:1,geoItemStyleShadowColor:"",geoItemStyleShadowOffsetX:0,geoItemStyleShadowOffsetY:0,geoItemStyleShadowBlur:0,geoEmphasisDisabled:!1,geoEmphasisLabelColor:"#fff",geoEmphasisItemStyleAreaColor:"#f00",geoEmphasisItemStyleBorderColor:"#000",tooltipShow:!0,tooltipTextStyleColor:"",tooltipFormatter:"{name}:{value}",tooltipRequestData:{requestUrl:"",requestMethod:"get",requestParams:[]},tooltipBackgroundColor:"#fff"},Fa=Se(Na),Rl=["click"];Qe.use([Et.CanvasRenderer,ht.MapChart,ht.ScatterChart,ve.VisualMapComponent,ve.TooltipComponent,ve.GraphicComponent]);const su=n.defineComponent({name:"EcanMap",components:{Echarts:xt},props:{...Fa},setup(e){const o=je(e),t=je({...e.tooltipRequestData,requestHeaders:{}}),a=n.ref(),r=n.ref(""),i=n.ref(""),s=Ce(e,["backgroundImage"]),l=n.ref(),d=n.computed(()=>At(e.geoBackgroundImage)),c=n.computed(()=>At(e.backgroundImage)),f=n.computed(()=>e.geoBackgroundImage?{image:n.unref(l),repeat:e.geoBackgroundImageRepeat}:e.geoItemStyleAreaColor),y=n.computed(()=>{const S=e.symbolImage;return e.symbolImage?"image://"+At(S):"circle"}),u=S=>{let E=e.tooltipFormatter;const w=E.match(/\{(.+?)\}/g);if(w==null||w.length===0)return E;for(let _=0;_<w.length;_++){const z=w[_];let q=z.slice(1,-1).trim();const W=/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,$=q.match(W);for(let F=0;F<$.length;F++){const P=$[F],M=S[P];M!=null&&(q=q.replace(P,M))}E=E.replace(z,q)}return E.split(`
|
|
120
|
+
`)},h=n.ref(!1),m=n.ref("");let g=new AbortController;const v=(S,E)=>{const w=g.signal;h.value=!0,r.value=S,t({name:S,signal:w}).then(_=>{var z,q;if(_){const W=((q=(z=_==null?void 0:_.data)==null?void 0:z.data)==null?void 0:q.rows)||[];let $="";for(const F of W){const P=u(F)||[];if(P!=null&&P.length)for(const M of P)$+=`<div style="word-break: break-all;white-space: normal;">${M}</div>`}$=`<div style="max-width:200px;">${$}</div>`,i.value=$,E(n.unref(m),$)}else w.aborted?i.value="Loading":i.value=S,E(n.unref(m),i.value);h.value=!1})},B=n.computed(()=>{const S=e.geoCenter;let E;return typeof S=="string"&&S!==""&&(E=S.split(",")),{tooltip:{show:!0},graphic:[{type:"image",style:{width:parseFloat(e.width),height:parseFloat(e.height),image:n.unref(c)},top:"center"}],geo:{zoom:e.geoZoom,roam:e.geoRoam,center:E,map:`map-${e.id}`,tooltip:{show:e.tooltipShow,trigger:"item",backgroundColor:e.tooltipBackgroundColor,borderColor:"transparent",textStyle:{color:e.tooltipTextStyleColor},formatter:(w,_,z)=>{m.value=_;const{name:q=""}=w,{requestUrl:W}=e.tooltipRequestData;if(!W)return q;if(n.unref(h))n.unref(r)!==q&&(g.abort(),g=new AbortController);else{if(n.unref(r)===q)return n.unref(i);v(q,z)}return"Loading"}},label:{show:e.geoLabelShow,color:e.geoLabelColor,fontSize:e.geoLabelFontSize},itemStyle:{areaColor:n.unref(f),borderColor:e.geoItemStyleBorderColor,borderWidth:e.geoItemStyleBorderWidth,shadowColor:e.geoItemStyleShadowColor,shadowBlur:e.geoItemStyleShadowBlur,shadowOffsetX:e.geoItemStyleShadowOffsetX,shadowOffsetY:e.geoItemStyleShadowOffsetY},emphasis:{disabled:e.geoEmphasisDisabled,label:{color:e.geoEmphasisLabelColor},itemStyle:{areaColor:e.geoEmphasisItemStyleAreaColor,borderColor:e.geoEmphasisItemStyleBorderColor}}},series:[{type:"scatter",coordinateSystem:"geo",itemStyle:{color:e.itemStyleColor},symbol:n.unref(y),symbolSize:[e.symbolWidth,e.symbolHeight],label:{show:e.labelShow,fontSize:e.labelFontSize,formatter:e.labelFormatter,color:e.labelColor},tooltip:{show:e.tooltipShow,textStyle:{color:e.tooltipTextStyleColor}},data:e.data}]}}),p=n.ref(!1),b=async()=>{var w;p.value=!1;const S=e.mapJson,E=`map-${e.id}`;if(S!=null&&S.path){const _=await dt(((w=window==null?void 0:window.config)==null?void 0:w.uploadPath)+S.path);Qe.registerMap(E,(_==null?void 0:_.data)||{})}else Qe.registerMap(E,{});p.value=!0};n.watch(()=>e.mapJson,()=>{b()},{immediate:!0,deep:!0});const x=async()=>{var S,E;if(e.dataType==="request"){p.value=!1;try{const w=await o(),_=((E=(S=w==null?void 0:w.data)==null?void 0:S.data)==null?void 0:E.rows)||{},z=`map-${e.id}`;if(_!=null&&_.path){const q=await dt(_.path);Qe.registerMap(z,(q==null?void 0:q.data)||{})}else Qe.registerMap(z,{})}catch(w){console.error(w)}finally{p.value=!0}}},A=()=>{switch(e.dataType){case"request":x();break}},{getGlobalModel:k,setGlobalModel:D}=n.inject(Be,{getGlobalModel:S=>{},setGlobalModel:(S,E)=>{}}),N=Ee(e)("click",()=>{const S=k(e.id);D(e.id,{...S,RECORD:n.unref(a)})});Le(e,{refreshData:A});const{setRequest:C}=n.inject(Pe,{setRequest:S=>{}});return typeof C=="function"&&C({id:e.id,requestFn:A,sortNum:e.requestSort}),{option:B,style:s,isLoadedData:p,geoBackgroundImageRef:l,myGeoBackgroundImage:d,customClick:()=>{n.unref(a)&&N()},onMouseOver:(S={})=>{S.componentType==="geo"&&S.region?a.value=S.region:a.value=null}}}}),V1="",cu=["src"];function du(e,o,t,a,r,i){const s=n.resolveComponent("echarts");return n.openBlock(),n.createElementBlock("div",{class:"ecan-map",style:n.normalizeStyle(e.style)},[e.isLoadedData?(n.openBlock(),n.createBlock(s,{key:0,option:e.option,"update-options":{notMerge:!0},autoresize:"","onZr:click":e.customClick,onMouseover:e.onMouseOver},null,8,["option","onZr:click","onMouseover"])):n.createCommentVNode("",!0),n.withDirectives(n.createElementVNode("img",{ref:"geoBackgroundImageRef",src:e.myGeoBackgroundImage},null,8,cu),[[n.vShow,!1]])],4)}const Il=pe(ye(su,[["render",du],["__scopeId","data-v-10f150ac"]])),_l=Object.freeze(Object.defineProperty({__proto__:null,EcanBar:cl,EcanBorder:pl,EcanButton:Gi,EcanCheckbox:Zi,EcanComboGraph:gl,EcanCustomGraph:ul,EcanDatePicker:Pi,EcanIframe:kl,EcanImage:Al,EcanInput:Ni,EcanLine:ll,EcanList:Ii,EcanMap:Il,EcanModal:kt,EcanPageConfig:Si,EcanPie:rl,EcanProportion:Oi,EcanProviderConfig:Ci,EcanRadar:yl,EcanRadio:el,EcanRangePicker:Wi,EcanScatter:fl,EcanScrollText:Bi,EcanSelect:Ki,EcanTable:Dl,EcanTabs:vl,EcanText:Ti,EcanTimeDisplay:Di,EcanTreeSelect:Ji,barComponentProps:ga,barEvents:sl,barProps:ha,borderComponentProps:Aa,borderEvents:xl,borderProps:wa,buttonComponentProps:Jo,buttonEvents:Ui,buttonProps:Qo,checkboxComponentProps:ea,checkboxEvents:$i,checkboxProps:Xo,comboGraphComponentProps:va,comboGraphEvents:hl,comboGraphProps:ba,customGraphComponentProps:pa,customGraphProps:xa,datePickerComponentProps:Go,datePickerEvents:Fi,datePickerProps:Uo,iframeComponentProps:Ia,iframeProps:Ra,imageComponentProps:Ea,imageEvents:Sl,imageProps:Ba,inputComponentProps:Wo,inputEvents:Li,inputProps:jo,lineComponentProps:ua,lineEvents:il,lineProps:fa,listComponentProps:qo,listEvents:Ri,listProps:Po,mapComponentProps:Fa,mapEvents:Rl,mapProps:Na,modalComponentProps:da,modalEvents:nl,modalProps:ca,pageConfig:zn,pageConfigComponentProps:Mn,pieComponentProps:sa,pieEvents:tl,pieProps:la,proportionComponentProps:Vo,proportionEvents:_i,proportionProps:Ho,providerConfig:Ro,providerConfigComponentProps:Io,radarComponentProps:Ca,radarEvents:ml,radarProps:Sa,radioComponentProps:ia,radioEvents:Xi,radioProps:ra,rangePickerComponentProps:Yo,rangePickerEvents:qi,rangePickerProps:Zo,scatterComponentProps:ya,scatterEvents:dl,scatterProps:ma,selectComponentProps:na,selectEvents:Yi,selectProps:ta,tableComponentProps:Oa,tableEvents:Tl,tableProps:_a,tabsComponentProps:Ta,tabsEvents:bl,tabsProps:ka,textComponentProps:Oo,textEvents:wi,textProps:_o,timeDisplayComponentProps:Mo,timeDisplayEvents:Ei,timeDisplayProps:zo,treeSelectComponentProps:aa,treeSelectEvents:Qi,treeSelectProps:oa},Symbol.toStringTag,{value:"Module"})),fu={install:e=>{Object.keys(_l).forEach(o=>{const t=_l[o];t.install&&e.use(t)})}};j.EcanBar=cl,j.EcanBorder=pl,j.EcanButton=Gi,j.EcanCheckbox=Zi,j.EcanComboGraph=gl,j.EcanCustomGraph=ul,j.EcanDatePicker=Pi,j.EcanIframe=kl,j.EcanImage=Al,j.EcanInput=Ni,j.EcanLine=ll,j.EcanList=Ii,j.EcanMap=Il,j.EcanModal=kt,j.EcanPageConfig=Si,j.EcanPie=rl,j.EcanProportion=Oi,j.EcanProviderConfig=Ci,j.EcanRadar=yl,j.EcanRadio=el,j.EcanRangePicker=Wi,j.EcanScatter=fl,j.EcanScrollText=Bi,j.EcanSelect=Ki,j.EcanTable=Dl,j.EcanTabs=vl,j.EcanText=Ti,j.EcanTimeDisplay=Di,j.EcanTreeSelect=Ji,j.barComponentProps=ga,j.barEvents=sl,j.barProps=ha,j.borderComponentProps=Aa,j.borderEvents=xl,j.borderProps=wa,j.buttonComponentProps=Jo,j.buttonEvents=Ui,j.buttonProps=Qo,j.checkboxComponentProps=ea,j.checkboxEvents=$i,j.checkboxProps=Xo,j.comboGraphComponentProps=va,j.comboGraphEvents=hl,j.comboGraphProps=ba,j.compatibleMobileList=al,j.customGraphComponentProps=pa,j.customGraphProps=xa,j.datePickerComponentProps=Go,j.datePickerEvents=Fi,j.datePickerProps=Uo,j.default=fu,j.handleScrollCombinations=ol,j.iframeComponentProps=Ia,j.iframeProps=Ra,j.imageComponentProps=Ea,j.imageEvents=Sl,j.imageProps=Ba,j.inputComponentProps=Wo,j.inputEvents=Li,j.inputProps=jo,j.lineComponentProps=ua,j.lineEvents=il,j.lineProps=fa,j.listComponentProps=qo,j.listEvents=Ri,j.listProps=Po,j.mapComponentProps=Fa,j.mapEvents=Rl,j.mapProps=Na,j.modalComponentProps=da,j.modalEvents=nl,j.modalProps=ca,j.pageConfig=zn,j.pageConfigComponentProps=Mn,j.pieComponentProps=sa,j.pieEvents=tl,j.pieProps=la,j.proportionComponentProps=Vo,j.proportionEvents=_i,j.proportionProps=Ho,j.providerConfig=Ro,j.providerConfigComponentProps=Io,j.radarComponentProps=Ca,j.radarEvents=ml,j.radarProps=Sa,j.radioComponentProps=ia,j.radioEvents=Xi,j.radioProps=ra,j.rangePickerComponentProps=Yo,j.rangePickerEvents=qi,j.rangePickerProps=Zo,j.scatterComponentProps=ya,j.scatterEvents=dl,j.scatterProps=ma,j.selectComponentProps=na,j.selectEvents=Yi,j.selectProps=ta,j.tableComponentProps=Oa,j.tableEvents=Tl,j.tableProps=_a,j.tabsComponentProps=Ta,j.tabsEvents=bl,j.tabsProps=ka,j.textComponentProps=Oo,j.textEvents=wi,j.textProps=_o,j.timeDisplayComponentProps=Mo,j.timeDisplayEvents=Ei,j.timeDisplayProps=zo,j.treeSelectComponentProps=aa,j.treeSelectEvents=Qi,j.treeSelectProps=oa,Object.defineProperties(j,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
121
121
|
//# sourceMappingURL=index.umd.js.map
|