@ecan-bi/datav 1.3.4 → 1.3.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.umd.js CHANGED
@@ -1,5 +1,5 @@
1
- /*! @ecan-bi/datav@1.3.4 */
2
- (function(V,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):(V=typeof globalThis<"u"?globalThis:V||self,n(V["@ecan/bi-datav"]={},V.Vue,V["echarts/core"],V.ResizeDetector,V.AntDesignVue,null,null,V.LodashEs,V.Dayjs,V.Axios,V.Mitt,null,null,null,V["ant-design-vue/es/date-picker/locale/zh_CN"],null,null,null,null,V["echarts/renderers"],V["echarts/charts"],V["echarts/components"],null,V.Echarts,null,null,V.Xlsx,V.big.js))})(this,function(V,n,We,Oa,se,iu,lu,qe,ve,L0,N0,su,cu,fu,La,du,uu,hu,gu,Et,gt,pe,mu,M0,yu,xu,$t,z0){var B0,E0,D0,R0;"use strict";function F0(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 P0=F0(M0),q0=["getWidth","getHeight","getDom","getOption","resize","dispatchAction","convertToPixel","convertFromPixel","containPixel","getDataURL","getConnectedDataURL","appendData","clear","isDisposed","dispose"];function H0(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 q0.forEach(i=>{r[i]=t(i)}),r}return a()}function V0(e,o,t){let a=null;n.watch([t,e,o],([r,i,s],l,f)=>{r&&i&&s&&(a=We.throttle(()=>{i.resize()},100),Oa.addListener(r,a)),f(()=>{a&&r&&Oa.removeListener(r,a)})})}const j0={autoresize:Boolean},U0="ecLoadingOptions";function G0(e,o,t){const a=n.inject(U0,{}),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 W0={loading:Boolean,loadingOptions:Object},pu="",$0=/^on[^a-z]/,Z0=e=>$0.test(e);function Y0(e){const o={};for(const t in e)Z0(t)||(o[t]=e[t]);return o}const K0="x-vue-echarts",Q0="ecTheme",J0="ecInitOptions",X0="ecUpdateOptions",xt=n.defineComponent({name:"echarts",props:{option:Object,theme:{type:[Object,String]},initOptions:Object,updateOptions:Object,group:String,manualUpdate:Boolean,...j0,...W0},inheritAttrs:!1,setup(e,{attrs:o,listeners:t}){const a=n.shallowRef(),r=n.shallowRef(),i=n.shallowRef(),s=n.inject(Q0,null),l=n.inject(J0,null),f=n.inject(X0,null),{autoresize:c,manualUpdate:u,loading:g,loadingOptions:m}=n.toRefs(e),y=n.computed(()=>i.value||e.option||Object.create(null)),h=n.computed(()=>e.theme||n.unref(s)||{}),d=n.computed(()=>e.initOptions||n.unref(l)||{}),v=n.computed(()=>e.updateOptions||n.unref(f)||{}),D=n.computed(()=>Y0(o));function x(R){if(r.value||!a.value)return;const _=r.value=We.init(a.value,h.value,d.value);e.group&&(_.group=e.group);let O=t;O||(O={},Object.keys(o).filter(T=>T.indexOf("on")===0&&T.length>2).forEach(T=>{const w=T.charAt(2).toLowerCase()+T.slice(3);O[w]=o[T]})),Object.keys(O).forEach(T=>{const w=O[T];w&&(T.indexOf("zr:")===0?_.getZr().on(T.slice(3).toLowerCase(),w):_.on(T.toLowerCase(),w))});function k(){if(_&&!_.isDisposed())try{_.resize()}catch(T){if(T.message==="Cannot read property 'get' of undefined")return;throw T}}function S(){_.setOption(R||y.value,v.value)}c.value?n.nextTick(()=>{k(),S()}):S()}function b(R,_){e.manualUpdate&&(i.value=R),r.value?r.value.setOption(R,_||{}):x(R)}function p(){r.value&&(r.value.dispose(),r.value=void 0)}let C=null;n.watch(u,R=>{typeof C=="function"&&(C(),C=null),R||(C=n.watch(()=>e.option,_=>{_&&(r.value?r.value.setOption(_,v.value):x())},{deep:!0}))},{immediate:!0}),n.watch([h,d],()=>{p(),x()},{deep:!0}),n.watchEffect(()=>{e.group&&r.value&&(r.value.group=e.group)});const A=H0(r,x);return G0(r,g,m),V0(r,c,a),n.onMounted(()=>{e.option&&x()}),n.onUnmounted(p),{chart:r,root:a,setOption:b,nonEventAttrs:D,...A}},render(){const e={...this.nonEventAttrs};return e.ref="root",e.class=e.class?["echarts"].concat(e.class):"echarts",n.h(K0,e)}});function Xe(e,o){el(e)&&(e="100%");var t=tl(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 el(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function tl(e){return typeof e=="string"&&e.indexOf("%")!==-1}function nl(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function en(e){return e<=1?"".concat(Number(e)*100,"%"):e}function bn(e){return e.length===1?"0"+e:String(e)}function ol(e,o,t){return{r:Xe(e,255)*255,g:Xe(o,255)*255,b:Xe(t,255)*255}}function vn(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 al(e,o,t){var a,r,i;if(e=Xe(e,360),o=Xe(o,100),t=Xe(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=vn(l,s,e+1/3),r=vn(l,s,e),i=vn(l,s,e-1/3)}return{r:a*255,g:r*255,b:i*255}}function rl(e,o,t){e=Xe(e,255),o=Xe(o,255),t=Xe(t,255);var a=Math.max(e,o,t),r=Math.min(e,o,t),i=0,s=a,l=a-r,f=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:f,v:s}}function il(e,o,t){e=Xe(e,360)*6,o=Xe(o,100),t=Xe(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),f=a%6,c=[t,s,i,i,l,t][f],u=[l,t,t,s,i,i][f],g=[i,i,l,t,t,s][f];return{r:c*255,g:u*255,b:g*255}}function ll(e,o,t,a){var r=[bn(Math.round(e).toString(16)),bn(Math.round(o).toString(16)),bn(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 Na(e){return $e(e)/255}function $e(e){return parseInt(e,16)}var Ma={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 Zt(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=fl(e)),typeof e=="object"&&(mt(e.r)&&mt(e.g)&&mt(e.b)?(o=ol(e.r,e.g,e.b),s=!0,l=String(e.r).substr(-1)==="%"?"prgb":"rgb"):mt(e.h)&&mt(e.s)&&mt(e.v)?(a=en(e.s),r=en(e.v),o=il(e.h,a,r),s=!0,l="hsv"):mt(e.h)&&mt(e.s)&&mt(e.l)&&(a=en(e.s),i=en(e.l),o=al(e.h,a,i),s=!0,l="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(t=e.a)),t=nl(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 sl="[-\\+]?\\d+%?",cl="[-\\+]?\\d*\\.\\d+%?",pt="(?:".concat(cl,")|(?:").concat(sl,")"),Sn="[\\s|\\(]+(".concat(pt,")[,|\\s]+(").concat(pt,")[,|\\s]+(").concat(pt,")\\s*\\)?"),Cn="[\\s|\\(]+(".concat(pt,")[,|\\s]+(").concat(pt,")[,|\\s]+(").concat(pt,")[,|\\s]+(").concat(pt,")\\s*\\)?"),it={CSS_UNIT:new RegExp(pt),rgb:new RegExp("rgb"+Sn),rgba:new RegExp("rgba"+Cn),hsl:new RegExp("hsl"+Sn),hsla:new RegExp("hsla"+Cn),hsv:new RegExp("hsv"+Sn),hsva:new RegExp("hsva"+Cn),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 fl(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var o=!1;if(Ma[e])e=Ma[e],o=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var t=it.rgb.exec(e);return t?{r:t[1],g:t[2],b:t[3]}:(t=it.rgba.exec(e),t?{r:t[1],g:t[2],b:t[3],a:t[4]}:(t=it.hsl.exec(e),t?{h:t[1],s:t[2],l:t[3]}:(t=it.hsla.exec(e),t?{h:t[1],s:t[2],l:t[3],a:t[4]}:(t=it.hsv.exec(e),t?{h:t[1],s:t[2],v:t[3]}:(t=it.hsva.exec(e),t?{h:t[1],s:t[2],v:t[3],a:t[4]}:(t=it.hex8.exec(e),t?{r:$e(t[1]),g:$e(t[2]),b:$e(t[3]),a:Na(t[4]),format:o?"name":"hex8"}:(t=it.hex6.exec(e),t?{r:$e(t[1]),g:$e(t[2]),b:$e(t[3]),format:o?"name":"hex"}:(t=it.hex4.exec(e),t?{r:$e(t[1]+t[1]),g:$e(t[2]+t[2]),b:$e(t[3]+t[3]),a:Na(t[4]+t[4]),format:o?"name":"hex8"}:(t=it.hex3.exec(e),t?{r:$e(t[1]+t[1]),g:$e(t[2]+t[2]),b:$e(t[3]+t[3]),format:o?"name":"hex"}:!1)))))))))}function mt(e){return!!it.CSS_UNIT.exec(String(e))}var tn=2,za=.16,dl=.05,ul=.05,hl=.15,Fa=5,Pa=4,gl=[{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 qa(e){var o=e.r,t=e.g,a=e.b,r=rl(o,t,a);return{h:r.h*360,s:r.s,v:r.v}}function nn(e){var o=e.r,t=e.g,a=e.b;return"#".concat(ll(o,t,a,!1))}function ml(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 Ha(e,o,t){var a;return Math.round(e.h)>=60&&Math.round(e.h)<=240?a=t?Math.round(e.h)-tn*o:Math.round(e.h)+tn*o:a=t?Math.round(e.h)+tn*o:Math.round(e.h)-tn*o,a<0?a+=360:a>=360&&(a-=360),a}function Va(e,o,t){if(e.h===0&&e.s===0)return e.s;var a;return t?a=e.s-za*o:o===Pa?a=e.s+za:a=e.s+dl*o,a>1&&(a=1),t&&o===Fa&&a>.1&&(a=.1),a<.06&&(a=.06),Number(a.toFixed(2))}function ja(e,o,t){var a;return t?a=e.v+ul*o:a=e.v-hl*o,a>1&&(a=1),Number(a.toFixed(2))}function wn(e){for(var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=[],a=Zt(e),r=Fa;r>0;r-=1){var i=qa(a),s=nn(Zt({h:Ha(i,r,!0),s:Va(i,r,!0),v:ja(i,r,!0)}));t.push(s)}t.push(nn(a));for(var l=1;l<=Pa;l+=1){var f=qa(a),c=nn(Zt({h:Ha(f,l),s:Va(f,l),v:ja(f,l)}));t.push(c)}return o.theme==="dark"?gl.map(function(u){var g=u.index,m=u.opacity,y=nn(ml(Zt(o.backgroundColor||"#141414"),Zt(t[g]),m*100));return y}):t}var An={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"},kn={},Tn={};Object.keys(An).forEach(function(e){kn[e]=wn(An[e]),kn[e].primary=kn[e][5],Tn[e]=wn(An[e],{theme:"dark",backgroundColor:"#141414"}),Tn[e].primary=Tn[e][5]});var Ua=[],Yt=[],yl="insert-css: You need to provide a CSS string. Usage: insertCss(cssString[, options]).";function xl(){var e=document.createElement("style");return e.setAttribute("type","text/css"),e}function pl(e,o){if(o=o||{},e===void 0)throw new Error(yl);var t=o.prepend===!0?"prepend":"append",a=o.container!==void 0?o.container:document.querySelector("head"),r=Ua.indexOf(a);r===-1&&(r=Ua.push(a)-1,Yt[r]={});var i;return Yt[r]!==void 0&&Yt[r][t]!==void 0?i=Yt[r][t]:(i=Yt[r][t]=xl(),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 Ga(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){bl(e,r,t[r])})}return e}function bl(e,o,t){return o in e?Object.defineProperty(e,o,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[o]=t,e}function vl(e,o){process.env.NODE_ENV!=="production"&&!e&&console!==void 0&&console.error("Warning: ".concat(o))}function Sl(e,o){vl(e,"[@ant-design/icons-vue] ".concat(o))}function Wa(e){return typeof e=="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(typeof e.icon=="object"||typeof e.icon=="function")}function Bn(e,o,t){return t?n.h(e.tag,Ga({key:o},t,e.attrs),(e.children||[]).map(function(a,r){return Bn(a,"".concat(o,"-").concat(e.tag,"-").concat(r))})):n.h(e.tag,Ga({key:o},e.attrs),(e.children||[]).map(function(a,r){return Bn(a,"".concat(o,"-").concat(e.tag,"-").concat(r))}))}function $a(e){return wn(e)[0]}function Za(e){return e?Array.isArray(e)?e:[e]:[]}var Cl=`
1
+ /*! @ecan-bi/datav@1.3.5 */
2
+ (function(H,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):(H=typeof globalThis<"u"?globalThis:H||self,n(H["@ecan/bi-datav"]={},H.Vue,H["echarts/core"],H.ResizeDetector,H.AntDesignVue,null,null,H.LodashEs,H.Dayjs,H.Axios,H.Mitt,null,null,null,H["ant-design-vue/es/date-picker/locale/zh_CN"],null,null,null,null,H["echarts/renderers"],H["echarts/charts"],H["echarts/components"],null,H.Echarts,null,null,H.Xlsx,H.big.js))})(this,function(H,n,Ze,Na,se,cu,du,He,Se,zl,Pl,fu,uu,hu,Fa,gu,mu,yu,xu,Et,gt,be,pu,ql,bu,vu,$t,Hl){var Il,_l,Ol,Ll;"use strict";function Vl(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 jl=Vl(ql),Wl=["getWidth","getHeight","getDom","getOption","resize","dispatchAction","convertToPixel","convertFromPixel","containPixel","getDataURL","getConnectedDataURL","appendData","clear","isDisposed","dispose"];function Ul(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 Wl.forEach(i=>{r[i]=t(i)}),r}return a()}function Gl(e,o,t){let a=null;n.watch([t,e,o],([r,i,s],l,d)=>{r&&i&&s&&(a=Ze.throttle(()=>{i.resize()},100),Na.addListener(r,a)),d(()=>{a&&r&&Na.removeListener(r,a)})})}const $l={autoresize:Boolean},Zl="ecLoadingOptions";function Yl(e,o,t){const a=n.inject(Zl,{}),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 Kl={loading:Boolean,loadingOptions:Object},Su="",Ql=/^on[^a-z]/,Jl=e=>Ql.test(e);function Xl(e){const o={};for(const t in e)Jl(t)||(o[t]=e[t]);return o}const e0="x-vue-echarts",t0="ecTheme",n0="ecInitOptions",o0="ecUpdateOptions",xt=n.defineComponent({name:"echarts",props:{option:Object,theme:{type:[Object,String]},initOptions:Object,updateOptions:Object,group:String,manualUpdate:Boolean,...$l,...Kl},inheritAttrs:!1,setup(e,{attrs:o,listeners:t}){const a=n.shallowRef(),r=n.shallowRef(),i=n.shallowRef(),s=n.inject(t0,null),l=n.inject(n0,null),d=n.inject(o0,null),{autoresize:c,manualUpdate:f,loading:g,loadingOptions:m}=n.toRefs(e),u=n.computed(()=>i.value||e.option||Object.create(null)),y=n.computed(()=>e.theme||n.unref(s)||{}),h=n.computed(()=>e.initOptions||n.unref(l)||{}),v=n.computed(()=>e.updateOptions||n.unref(d)||{}),E=n.computed(()=>Xl(o));function p(D){if(r.value||!a.value)return;const O=r.value=Ze.init(a.value,y.value,h.value);e.group&&(O.group=e.group);let _=t;_||(_={},Object.keys(o).filter(B=>B.indexOf("on")===0&&B.length>2).forEach(B=>{const w=B.charAt(2).toLowerCase()+B.slice(3);_[w]=o[B]})),Object.keys(_).forEach(B=>{const w=_[B];w&&(B.indexOf("zr:")===0?O.getZr().on(B.slice(3).toLowerCase(),w):O.on(B.toLowerCase(),w))});function k(){if(O&&!O.isDisposed())try{O.resize()}catch(B){if(B.message==="Cannot read property 'get' of undefined")return;throw B}}function S(){O.setOption(D||u.value,v.value)}c.value?n.nextTick(()=>{k(),S()}):S()}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([y,h],()=>{x(),p()},{deep:!0}),n.watchEffect(()=>{e.group&&r.value&&(r.value.group=e.group)});const T=Ul(r,p);return Yl(r,g,m),Gl(r,c,a),n.onMounted(()=>{e.option&&p()}),n.onUnmounted(x),{chart:r,root:a,setOption:b,nonEventAttrs:E,...T}},render(){const e={...this.nonEventAttrs};return e.ref="root",e.class=e.class?["echarts"].concat(e.class):"echarts",n.h(e0,e)}});function et(e,o){a0(e)&&(e="100%");var t=r0(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 a0(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function r0(e){return typeof e=="string"&&e.indexOf("%")!==-1}function i0(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function tn(e){return e<=1?"".concat(Number(e)*100,"%"):e}function vn(e){return e.length===1?"0"+e:String(e)}function l0(e,o,t){return{r:et(e,255)*255,g:et(o,255)*255,b:et(t,255)*255}}function Sn(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 s0(e,o,t){var a,r,i;if(e=et(e,360),o=et(o,100),t=et(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=Sn(l,s,e+1/3),r=Sn(l,s,e),i=Sn(l,s,e-1/3)}return{r:a*255,g:r*255,b:i*255}}function c0(e,o,t){e=et(e,255),o=et(o,255),t=et(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 d0(e,o,t){e=et(e,360)*6,o=et(o,100),t=et(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],g=[i,i,l,t,t,s][d];return{r:c*255,g:f*255,b:g*255}}function f0(e,o,t,a){var r=[vn(Math.round(e).toString(16)),vn(Math.round(o).toString(16)),vn(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 Ye(e)/255}function Ye(e){return parseInt(e,16)}var za={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 Zt(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=g0(e)),typeof e=="object"&&(mt(e.r)&&mt(e.g)&&mt(e.b)?(o=l0(e.r,e.g,e.b),s=!0,l=String(e.r).substr(-1)==="%"?"prgb":"rgb"):mt(e.h)&&mt(e.s)&&mt(e.v)?(a=tn(e.s),r=tn(e.v),o=d0(e.h,a,r),s=!0,l="hsv"):mt(e.h)&&mt(e.s)&&mt(e.l)&&(a=tn(e.s),i=tn(e.l),o=s0(e.h,a,i),s=!0,l="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(t=e.a)),t=i0(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 u0="[-\\+]?\\d+%?",h0="[-\\+]?\\d*\\.\\d+%?",pt="(?:".concat(h0,")|(?:").concat(u0,")"),Cn="[\\s|\\(]+(".concat(pt,")[,|\\s]+(").concat(pt,")[,|\\s]+(").concat(pt,")\\s*\\)?"),wn="[\\s|\\(]+(".concat(pt,")[,|\\s]+(").concat(pt,")[,|\\s]+(").concat(pt,")[,|\\s]+(").concat(pt,")\\s*\\)?"),rt={CSS_UNIT:new RegExp(pt),rgb:new RegExp("rgb"+Cn),rgba:new RegExp("rgba"+wn),hsl:new RegExp("hsl"+Cn),hsla:new RegExp("hsla"+wn),hsv:new RegExp("hsv"+Cn),hsva:new RegExp("hsva"+wn),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 g0(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var o=!1;if(za[e])e=za[e],o=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var t=rt.rgb.exec(e);return t?{r:t[1],g:t[2],b:t[3]}:(t=rt.rgba.exec(e),t?{r:t[1],g:t[2],b:t[3],a:t[4]}:(t=rt.hsl.exec(e),t?{h:t[1],s:t[2],l:t[3]}:(t=rt.hsla.exec(e),t?{h:t[1],s:t[2],l:t[3],a:t[4]}:(t=rt.hsv.exec(e),t?{h:t[1],s:t[2],v:t[3]}:(t=rt.hsva.exec(e),t?{h:t[1],s:t[2],v:t[3],a:t[4]}:(t=rt.hex8.exec(e),t?{r:Ye(t[1]),g:Ye(t[2]),b:Ye(t[3]),a:Ma(t[4]),format:o?"name":"hex8"}:(t=rt.hex6.exec(e),t?{r:Ye(t[1]),g:Ye(t[2]),b:Ye(t[3]),format:o?"name":"hex"}:(t=rt.hex4.exec(e),t?{r:Ye(t[1]+t[1]),g:Ye(t[2]+t[2]),b:Ye(t[3]+t[3]),a:Ma(t[4]+t[4]),format:o?"name":"hex8"}:(t=rt.hex3.exec(e),t?{r:Ye(t[1]+t[1]),g:Ye(t[2]+t[2]),b:Ye(t[3]+t[3]),format:o?"name":"hex"}:!1)))))))))}function mt(e){return!!rt.CSS_UNIT.exec(String(e))}var nn=2,Pa=.16,m0=.05,y0=.05,x0=.15,qa=5,Ha=4,p0=[{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 Va(e){var o=e.r,t=e.g,a=e.b,r=c0(o,t,a);return{h:r.h*360,s:r.s,v:r.v}}function on(e){var o=e.r,t=e.g,a=e.b;return"#".concat(f0(o,t,a,!1))}function b0(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 ja(e,o,t){var a;return Math.round(e.h)>=60&&Math.round(e.h)<=240?a=t?Math.round(e.h)-nn*o:Math.round(e.h)+nn*o:a=t?Math.round(e.h)+nn*o:Math.round(e.h)-nn*o,a<0?a+=360:a>=360&&(a-=360),a}function Wa(e,o,t){if(e.h===0&&e.s===0)return e.s;var a;return t?a=e.s-Pa*o:o===Ha?a=e.s+Pa:a=e.s+m0*o,a>1&&(a=1),t&&o===qa&&a>.1&&(a=.1),a<.06&&(a=.06),Number(a.toFixed(2))}function Ua(e,o,t){var a;return t?a=e.v+y0*o:a=e.v-x0*o,a>1&&(a=1),Number(a.toFixed(2))}function An(e){for(var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=[],a=Zt(e),r=qa;r>0;r-=1){var i=Va(a),s=on(Zt({h:ja(i,r,!0),s:Wa(i,r,!0),v:Ua(i,r,!0)}));t.push(s)}t.push(on(a));for(var l=1;l<=Ha;l+=1){var d=Va(a),c=on(Zt({h:ja(d,l),s:Wa(d,l),v:Ua(d,l)}));t.push(c)}return o.theme==="dark"?p0.map(function(f){var g=f.index,m=f.opacity,u=on(b0(Zt(o.backgroundColor||"#141414"),Zt(t[g]),m*100));return u}):t}var kn={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"},Tn={},Bn={};Object.keys(kn).forEach(function(e){Tn[e]=An(kn[e]),Tn[e].primary=Tn[e][5],Bn[e]=An(kn[e],{theme:"dark",backgroundColor:"#141414"}),Bn[e].primary=Bn[e][5]});var Ga=[],Yt=[],v0="insert-css: You need to provide a CSS string. Usage: insertCss(cssString[, options]).";function S0(){var e=document.createElement("style");return e.setAttribute("type","text/css"),e}function C0(e,o){if(o=o||{},e===void 0)throw new Error(v0);var t=o.prepend===!0?"prepend":"append",a=o.container!==void 0?o.container:document.querySelector("head"),r=Ga.indexOf(a);r===-1&&(r=Ga.push(a)-1,Yt[r]={});var i;return Yt[r]!==void 0&&Yt[r][t]!==void 0?i=Yt[r][t]:(i=Yt[r][t]=S0(),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 $a(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){w0(e,r,t[r])})}return e}function w0(e,o,t){return o in e?Object.defineProperty(e,o,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[o]=t,e}function A0(e,o){process.env.NODE_ENV!=="production"&&!e&&console!==void 0&&console.error("Warning: ".concat(o))}function k0(e,o){A0(e,"[@ant-design/icons-vue] ".concat(o))}function Za(e){return typeof e=="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(typeof e.icon=="object"||typeof e.icon=="function")}function En(e,o,t){return t?n.h(e.tag,$a({key:o},t,e.attrs),(e.children||[]).map(function(a,r){return En(a,"".concat(o,"-").concat(e.tag,"-").concat(r))})):n.h(e.tag,$a({key:o},e.attrs),(e.children||[]).map(function(a,r){return En(a,"".concat(o,"-").concat(e.tag,"-").concat(r))}))}function Ya(e){return An(e)[0]}function Ka(e){return e?Array.isArray(e)?e:[e]:[]}var T0=`
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
- `,Ya=!1,wl=function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Cl;n.nextTick(function(){Ya||(typeof window<"u"&&window.document&&window.document.documentElement&&pl(o,{prepend:!0}),Ya=!0)})},Al=["icon","primaryColor","secondaryColor"];function kl(e,o){if(e==null)return{};var t=Tl(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 Tl(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 on(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){Bl(e,r,t[r])})}return e}function Bl(e,o,t){return o in e?Object.defineProperty(e,o,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[o]=t,e}var Kt={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function El(e){var o=e.primaryColor,t=e.secondaryColor;Kt.primaryColor=o,Kt.secondaryColor=t||$a(o),Kt.calculated=!!t}function Dl(){return on({},Kt)}var Ot=function(o,t){var a=on({},o,t.attrs),r=a.icon,i=a.primaryColor,s=a.secondaryColor,l=kl(a,Al),f=Kt;if(i&&(f={primaryColor:i,secondaryColor:s||$a(i)}),wl(),Sl(Wa(r),"icon should be icon definiton, but got ".concat(r)),!Wa(r))return null;var c=r;return c&&typeof c.icon=="function"&&(c=on({},c,{icon:c.icon(f.primaryColor,f.secondaryColor)})),Bn(c.icon,"svg-".concat(c.name),on({},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=Dl,Ot.setTwoToneColors=El;const En=Ot;function Rl(e,o){return Ll(e)||Ol(e,o)||_l(e,o)||Il()}function Il(){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 _l(e,o){if(e){if(typeof e=="string")return Ka(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 Ka(e,o)}}function Ka(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 Ol(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(f){i=!0,l=f}finally{try{!r&&t.return!=null&&t.return()}finally{if(i)throw l}}return a}}function Ll(e){if(Array.isArray(e))return e}function Qa(e){var o=Za(e),t=Rl(o,2),a=t[0],r=t[1];return En.setTwoToneColors({primaryColor:a,secondaryColor:r})}function Nl(){var e=En.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var Ml=["class","icon","spin","rotate","tabindex","twoToneColor","onClick"];function zl(e,o){return Hl(e)||ql(e,o)||Pl(e,o)||Fl()}function Fl(){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 Pl(e,o){if(e){if(typeof e=="string")return Ja(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 Ja(e,o)}}function Ja(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 ql(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(f){i=!0,l=f}finally{try{!r&&t.return!=null&&t.return()}finally{if(i)throw l}}return a}}function Hl(e){if(Array.isArray(e))return e}function Xa(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){Dn(e,r,t[r])})}return e}function Dn(e,o,t){return o in e?Object.defineProperty(e,o,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[o]=t,e}function Vl(e,o){if(e==null)return{};var t=jl(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 jl(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}Qa("#1890ff");var Lt=function(o,t){var a,r=Xa({},o,t.attrs),i=r.class,s=r.icon,l=r.spin,f=r.rotate,c=r.tabindex,u=r.twoToneColor,g=r.onClick,m=Vl(r,Ml),y=(a={anticon:!0},Dn(a,"anticon-".concat(s.name),!!s.name),Dn(a,i,i),a),h=l===""||l||s.name==="loading"?"anticon-spin":"",d=c;d===void 0&&g&&(d=-1,m.tabindex=d);var v=f?{msTransform:"rotate(".concat(f,"deg)"),transform:"rotate(".concat(f,"deg)")}:void 0,D=Za(u),x=zl(D,2),b=x[0],p=x[1];return n.createVNode("span",Xa({role:"img","aria-label":s.name},m,{onClick:g,class:y}),[n.createVNode(En,{class:h,icon:s,primaryColor:b,secondaryColor:p,style:v},null)])};Lt.props={spin:Boolean,rotate:Number,icon:Object,twoToneColor:String},Lt.displayName="AntdIcon",Lt.inheritAttrs=!1,Lt.getTwoToneColor=Nl,Lt.setTwoToneColor=Qa;const er=Lt;var Ul={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 Gl=Ul;function tr(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){Wl(e,r,t[r])})}return e}function Wl(e,o,t){return o in e?Object.defineProperty(e,o,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[o]=t,e}var Rn=function(o,t){var a=tr({},o,t.attrs);return n.createVNode(er,tr({},a,{icon:Gl}),null)};Rn.displayName="CloseOutlined",Rn.inheritAttrs=!1;const $l=Rn;var Zl={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 Yl=Zl;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){Kl(e,r,t[r])})}return e}function Kl(e,o,t){return o in e?Object.defineProperty(e,o,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[o]=t,e}var In=function(o,t){var a=nr({},o,t.attrs);return n.createVNode(er,nr({},a,{icon:Yl}),null)};In.displayName="LoadingOutlined",In.inheritAttrs=!1;const Ql=In,Jl=n.defineComponent({props:{spinning:{type:Boolean,default:!1}},components:{ASpin:se.Spin},setup(){return{indicator:n.h(Ql,{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},Xl={class:"spin-wrapper"};function es(e,o,t,a,r,i){const s=n.resolveComponent("a-spin");return n.openBlock(),n.createElementBlock("div",Xl,[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(Jl,[["render",es]]),ts=n.defineComponent({name:"Skeleton",props:{loading:{type:Boolean,default:!1}},components:{ASkeleton:se.Skeleton}});function ns(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 an=ye(ts,[["render",ns]]);process.env.NODE_ENV!=="production"&&Object.freeze({}),process.env.NODE_ENV!=="production"&&Object.freeze([]);const xe=(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},we={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"},be=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},_n={width:"1920px",height:"1080px",backgroundColor:"#ffffff",backgroundImage:"",backgroundSize:"100% 100%",contextRequestUrl:"",mode:"normal"},On=be(_n),os=["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=qe.without(os,...o);return n.computed(()=>qe.pick(e,t))},Ln="EVENT_BUS",Me="GLOBAL_CONFIG",Ae="GLOBAL_MODEL",ze="REQUEST_MODEL",or="GLOBAL_TOKEN",Qt="REFRESH_PAGE",ar="MODAL_MODEL",bt="LOADED_DATA",lt=18,rr="ygt",ir=((B0=window==null?void 0:window.config)==null?void 0:B0.indicatorURL)||"";(E0=window==null?void 0:window.config)!=null&&E0.uploadPath;const lr=((D0=window==null?void 0:window.config)==null?void 0:D0.routerBaseURL)||"./",as=((R0=window==null?void 0:window.config)==null?void 0:R0.erdURL)||"",Oe=(e,o)=>{n.watch(()=>e.id,t=>{const a=n.inject(Ln,{onEvent:(r,i)=>{}});t!=null&&t!==""&&a.onEvent(t,o)},{immediate:!0})},ke=e=>{const o=e.events,t=e.id,a=n.inject(Ln,{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(f=>{if(i===f.on)try{r.value=t,l(f.target,f.emit)}catch(c){console.error(c)}})}},Mt=(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 u=e[c],g=u[t]||"",m=u[a]||"",y=u[r]||"";if(i.has(y)){const h=i.get(y);h.push({name:g,value:m,...u}),i.set(y,h)}else i.set(y,[{name:g,value:m,...u}])}const l=[],f=[];for(const[c,u]of i)if(f.push({name:c,data:u}),u!=null&&u.length)if(l.length)for(const g of u)l.includes(g.name)||l.push(g.name);else l.push(...u.map(g=>g.name));return{dimensions:l,dataset:f}};var ce=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function sr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function rs(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 cr={exports:{}};function is(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 Nn={exports:{}};const ls=rs(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var fr;function ge(){return fr||(fr=1,function(e,o){(function(t,a){e.exports=a()})(ce,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 ce<"u"&&ce.crypto&&(i=ce.crypto),!i&&typeof is=="function")try{i=ls}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 x(){}return function(b){var p;return x.prototype=b,p=new x,x.prototype=null,p}}(),f={},c=f.lib={},u=c.Base=function(){return{extend:function(x){var b=l(this);return x&&b.mixIn(x),(!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 x=this.extend();return x.init.apply(x,arguments),x},init:function(){},mixIn:function(x){for(var b in x)x.hasOwnProperty(b)&&(this[b]=x[b]);x.hasOwnProperty("toString")&&(this.toString=x.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),g=c.WordArray=u.extend({init:function(x,b){x=this.words=x||[],b!=r?this.sigBytes=b:this.sigBytes=x.length*4},toString:function(x){return(x||y).stringify(this)},concat:function(x){var b=this.words,p=x.words,C=this.sigBytes,A=x.sigBytes;if(this.clamp(),C%4)for(var R=0;R<A;R++){var _=p[R>>>2]>>>24-R%4*8&255;b[C+R>>>2]|=_<<24-(C+R)%4*8}else for(var O=0;O<A;O+=4)b[C+O>>>2]=p[O>>>2];return this.sigBytes+=A,this},clamp:function(){var x=this.words,b=this.sigBytes;x[b>>>2]&=4294967295<<32-b%4*8,x.length=a.ceil(b/4)},clone:function(){var x=u.clone.call(this);return x.words=this.words.slice(0),x},random:function(x){for(var b=[],p=0;p<x;p+=4)b.push(s());return new g.init(b,x)}}),m=f.enc={},y=m.Hex={stringify:function(x){for(var b=x.words,p=x.sigBytes,C=[],A=0;A<p;A++){var R=b[A>>>2]>>>24-A%4*8&255;C.push((R>>>4).toString(16)),C.push((R&15).toString(16))}return C.join("")},parse:function(x){for(var b=x.length,p=[],C=0;C<b;C+=2)p[C>>>3]|=parseInt(x.substr(C,2),16)<<24-C%8*4;return new g.init(p,b/2)}},h=m.Latin1={stringify:function(x){for(var b=x.words,p=x.sigBytes,C=[],A=0;A<p;A++){var R=b[A>>>2]>>>24-A%4*8&255;C.push(String.fromCharCode(R))}return C.join("")},parse:function(x){for(var b=x.length,p=[],C=0;C<b;C++)p[C>>>2]|=(x.charCodeAt(C)&255)<<24-C%4*8;return new g.init(p,b)}},d=m.Utf8={stringify:function(x){try{return decodeURIComponent(escape(h.stringify(x)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(x){return h.parse(unescape(encodeURIComponent(x)))}},v=c.BufferedBlockAlgorithm=u.extend({reset:function(){this._data=new g.init,this._nDataBytes=0},_append:function(x){typeof x=="string"&&(x=d.parse(x)),this._data.concat(x),this._nDataBytes+=x.sigBytes},_process:function(x){var b,p=this._data,C=p.words,A=p.sigBytes,R=this.blockSize,_=R*4,O=A/_;x?O=a.ceil(O):O=a.max((O|0)-this._minBufferSize,0);var k=O*R,S=a.min(k*4,A);if(k){for(var T=0;T<k;T+=R)this._doProcessBlock(C,T);b=C.splice(0,k),p.sigBytes-=S}return new g.init(b,S)},clone:function(){var x=u.clone.call(this);return x._data=this._data.clone(),x},_minBufferSize:0});c.Hasher=v.extend({cfg:u.extend(),init:function(x){this.cfg=this.cfg.extend(x),this.reset()},reset:function(){v.reset.call(this),this._doReset()},update:function(x){return this._append(x),this._process(),this},finalize:function(x){x&&this._append(x);var b=this._doFinalize();return b},blockSize:16,_createHelper:function(x){return function(b,p){return new x.init(p).finalize(b)}},_createHmacHelper:function(x){return function(b,p){return new D.HMAC.init(x,p).finalize(b)}}});var D=f.algo={};return f}(Math);return t})}(Nn)),Nn.exports}var Mn={exports:{}},dr;function rn(){return dr||(dr=1,function(e,o){(function(t,a){e.exports=a(ge())})(ce,function(t){return function(a){var r=t,i=r.lib,s=i.Base,l=i.WordArray,f=r.x64={};f.Word=s.extend({init:function(c,u){this.high=c,this.low=u}}),f.WordArray=s.extend({init:function(c,u){c=this.words=c||[],u!=a?this.sigBytes=u:this.sigBytes=c.length*8},toX32:function(){for(var c=this.words,u=c.length,g=[],m=0;m<u;m++){var y=c[m];g.push(y.high),g.push(y.low)}return l.create(g,this.sigBytes)},clone:function(){for(var c=s.clone.call(this),u=c.words=this.words.slice(0),g=u.length,m=0;m<g;m++)u[m]=u[m].clone();return c}})}(),t})}(Mn)),Mn.exports}var zn={exports:{}},ur;function ss(){return ur||(ur=1,function(e,o){(function(t,a){e.exports=a(ge())})(ce,function(t){return function(){if(typeof ArrayBuffer=="function"){var a=t,r=a.lib,i=r.WordArray,s=i.init,l=i.init=function(f){if(f instanceof ArrayBuffer&&(f=new Uint8Array(f)),(f instanceof Int8Array||typeof Uint8ClampedArray<"u"&&f instanceof Uint8ClampedArray||f instanceof Int16Array||f instanceof Uint16Array||f instanceof Int32Array||f instanceof Uint32Array||f instanceof Float32Array||f instanceof Float64Array)&&(f=new Uint8Array(f.buffer,f.byteOffset,f.byteLength)),f instanceof Uint8Array){for(var c=f.byteLength,u=[],g=0;g<c;g++)u[g>>>2]|=f[g]<<24-g%4*8;s.call(this,u,c)}else s.apply(this,arguments)};l.prototype=i}}(),t.lib.WordArray})}(zn)),zn.exports}var Fn={exports:{}},hr;function cs(){return hr||(hr=1,function(e,o){(function(t,a){e.exports=a(ge())})(ce,function(t){return function(){var a=t,r=a.lib,i=r.WordArray,s=a.enc;s.Utf16=s.Utf16BE={stringify:function(f){for(var c=f.words,u=f.sigBytes,g=[],m=0;m<u;m+=2){var y=c[m>>>2]>>>16-m%4*8&65535;g.push(String.fromCharCode(y))}return g.join("")},parse:function(f){for(var c=f.length,u=[],g=0;g<c;g++)u[g>>>1]|=f.charCodeAt(g)<<16-g%2*16;return i.create(u,c*2)}},s.Utf16LE={stringify:function(f){for(var c=f.words,u=f.sigBytes,g=[],m=0;m<u;m+=2){var y=l(c[m>>>2]>>>16-m%4*8&65535);g.push(String.fromCharCode(y))}return g.join("")},parse:function(f){for(var c=f.length,u=[],g=0;g<c;g++)u[g>>>1]|=l(f.charCodeAt(g)<<16-g%2*16);return i.create(u,c*2)}};function l(f){return f<<8&4278255360|f>>>8&16711935}}(),t.enc.Utf16})}(Fn)),Fn.exports}var Pn={exports:{}},gr;function zt(){return gr||(gr=1,function(e,o){(function(t,a){e.exports=a(ge())})(ce,function(t){return function(){var a=t,r=a.lib,i=r.WordArray,s=a.enc;s.Base64={stringify:function(f){var c=f.words,u=f.sigBytes,g=this._map;f.clamp();for(var m=[],y=0;y<u;y+=3)for(var h=c[y>>>2]>>>24-y%4*8&255,d=c[y+1>>>2]>>>24-(y+1)%4*8&255,v=c[y+2>>>2]>>>24-(y+2)%4*8&255,D=h<<16|d<<8|v,x=0;x<4&&y+x*.75<u;x++)m.push(g.charAt(D>>>6*(3-x)&63));var b=g.charAt(64);if(b)for(;m.length%4;)m.push(b);return m.join("")},parse:function(f){var c=f.length,u=this._map,g=this._reverseMap;if(!g){g=this._reverseMap=[];for(var m=0;m<u.length;m++)g[u.charCodeAt(m)]=m}var y=u.charAt(64);if(y){var h=f.indexOf(y);h!==-1&&(c=h)}return l(f,c,g)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function l(f,c,u){for(var g=[],m=0,y=0;y<c;y++)if(y%4){var h=u[f.charCodeAt(y-1)]<<y%4*2,d=u[f.charCodeAt(y)]>>>6-y%4*2,v=h|d;g[m>>>2]|=v<<24-m%4*8,m++}return i.create(g,m)}}(),t.enc.Base64})}(Pn)),Pn.exports}var qn={exports:{}},mr;function fs(){return mr||(mr=1,function(e,o){(function(t,a){e.exports=a(ge())})(ce,function(t){return function(){var a=t,r=a.lib,i=r.WordArray,s=a.enc;s.Base64url={stringify:function(f,c=!0){var u=f.words,g=f.sigBytes,m=c?this._safe_map:this._map;f.clamp();for(var y=[],h=0;h<g;h+=3)for(var d=u[h>>>2]>>>24-h%4*8&255,v=u[h+1>>>2]>>>24-(h+1)%4*8&255,D=u[h+2>>>2]>>>24-(h+2)%4*8&255,x=d<<16|v<<8|D,b=0;b<4&&h+b*.75<g;b++)y.push(m.charAt(x>>>6*(3-b)&63));var p=m.charAt(64);if(p)for(;y.length%4;)y.push(p);return y.join("")},parse:function(f,c=!0){var u=f.length,g=c?this._safe_map:this._map,m=this._reverseMap;if(!m){m=this._reverseMap=[];for(var y=0;y<g.length;y++)m[g.charCodeAt(y)]=y}var h=g.charAt(64);if(h){var d=f.indexOf(h);d!==-1&&(u=d)}return l(f,u,m)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function l(f,c,u){for(var g=[],m=0,y=0;y<c;y++)if(y%4){var h=u[f.charCodeAt(y-1)]<<y%4*2,d=u[f.charCodeAt(y)]>>>6-y%4*2,v=h|d;g[m>>>2]|=v<<24-m%4*8,m++}return i.create(g,m)}}(),t.enc.Base64url})}(qn)),qn.exports}var Hn={exports:{}},yr;function Ft(){return yr||(yr=1,function(e,o){(function(t,a){e.exports=a(ge())})(ce,function(t){return function(a){var r=t,i=r.lib,s=i.WordArray,l=i.Hasher,f=r.algo,c=[];(function(){for(var d=0;d<64;d++)c[d]=a.abs(a.sin(d+1))*4294967296|0})();var u=f.MD5=l.extend({_doReset:function(){this._hash=new s.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(d,v){for(var D=0;D<16;D++){var x=v+D,b=d[x];d[x]=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360}var p=this._hash.words,C=d[v+0],A=d[v+1],R=d[v+2],_=d[v+3],O=d[v+4],k=d[v+5],S=d[v+6],T=d[v+7],w=d[v+8],B=d[v+9],E=d[v+10],N=d[v+11],z=d[v+12],P=d[v+13],j=d[v+14],$=d[v+15],F=p[0],q=p[1],L=p[2],I=p[3];F=g(F,q,L,I,C,7,c[0]),I=g(I,F,q,L,A,12,c[1]),L=g(L,I,F,q,R,17,c[2]),q=g(q,L,I,F,_,22,c[3]),F=g(F,q,L,I,O,7,c[4]),I=g(I,F,q,L,k,12,c[5]),L=g(L,I,F,q,S,17,c[6]),q=g(q,L,I,F,T,22,c[7]),F=g(F,q,L,I,w,7,c[8]),I=g(I,F,q,L,B,12,c[9]),L=g(L,I,F,q,E,17,c[10]),q=g(q,L,I,F,N,22,c[11]),F=g(F,q,L,I,z,7,c[12]),I=g(I,F,q,L,P,12,c[13]),L=g(L,I,F,q,j,17,c[14]),q=g(q,L,I,F,$,22,c[15]),F=m(F,q,L,I,A,5,c[16]),I=m(I,F,q,L,S,9,c[17]),L=m(L,I,F,q,N,14,c[18]),q=m(q,L,I,F,C,20,c[19]),F=m(F,q,L,I,k,5,c[20]),I=m(I,F,q,L,E,9,c[21]),L=m(L,I,F,q,$,14,c[22]),q=m(q,L,I,F,O,20,c[23]),F=m(F,q,L,I,B,5,c[24]),I=m(I,F,q,L,j,9,c[25]),L=m(L,I,F,q,_,14,c[26]),q=m(q,L,I,F,w,20,c[27]),F=m(F,q,L,I,P,5,c[28]),I=m(I,F,q,L,R,9,c[29]),L=m(L,I,F,q,T,14,c[30]),q=m(q,L,I,F,z,20,c[31]),F=y(F,q,L,I,k,4,c[32]),I=y(I,F,q,L,w,11,c[33]),L=y(L,I,F,q,N,16,c[34]),q=y(q,L,I,F,j,23,c[35]),F=y(F,q,L,I,A,4,c[36]),I=y(I,F,q,L,O,11,c[37]),L=y(L,I,F,q,T,16,c[38]),q=y(q,L,I,F,E,23,c[39]),F=y(F,q,L,I,P,4,c[40]),I=y(I,F,q,L,C,11,c[41]),L=y(L,I,F,q,_,16,c[42]),q=y(q,L,I,F,S,23,c[43]),F=y(F,q,L,I,B,4,c[44]),I=y(I,F,q,L,z,11,c[45]),L=y(L,I,F,q,$,16,c[46]),q=y(q,L,I,F,R,23,c[47]),F=h(F,q,L,I,C,6,c[48]),I=h(I,F,q,L,T,10,c[49]),L=h(L,I,F,q,j,15,c[50]),q=h(q,L,I,F,k,21,c[51]),F=h(F,q,L,I,z,6,c[52]),I=h(I,F,q,L,_,10,c[53]),L=h(L,I,F,q,E,15,c[54]),q=h(q,L,I,F,A,21,c[55]),F=h(F,q,L,I,w,6,c[56]),I=h(I,F,q,L,$,10,c[57]),L=h(L,I,F,q,S,15,c[58]),q=h(q,L,I,F,P,21,c[59]),F=h(F,q,L,I,O,6,c[60]),I=h(I,F,q,L,N,10,c[61]),L=h(L,I,F,q,R,15,c[62]),q=h(q,L,I,F,B,21,c[63]),p[0]=p[0]+F|0,p[1]=p[1]+q|0,p[2]=p[2]+L|0,p[3]=p[3]+I|0},_doFinalize:function(){var d=this._data,v=d.words,D=this._nDataBytes*8,x=d.sigBytes*8;v[x>>>5]|=128<<24-x%32;var b=a.floor(D/4294967296),p=D;v[(x+64>>>9<<4)+15]=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360,v[(x+64>>>9<<4)+14]=(p<<8|p>>>24)&16711935|(p<<24|p>>>8)&4278255360,d.sigBytes=(v.length+1)*4,this._process();for(var C=this._hash,A=C.words,R=0;R<4;R++){var _=A[R];A[R]=(_<<8|_>>>24)&16711935|(_<<24|_>>>8)&4278255360}return C},clone:function(){var d=l.clone.call(this);return d._hash=this._hash.clone(),d}});function g(d,v,D,x,b,p,C){var A=d+(v&D|~v&x)+b+C;return(A<<p|A>>>32-p)+v}function m(d,v,D,x,b,p,C){var A=d+(v&x|D&~x)+b+C;return(A<<p|A>>>32-p)+v}function y(d,v,D,x,b,p,C){var A=d+(v^D^x)+b+C;return(A<<p|A>>>32-p)+v}function h(d,v,D,x,b,p,C){var A=d+(D^(v|~x))+b+C;return(A<<p|A>>>32-p)+v}r.MD5=l._createHelper(u),r.HmacMD5=l._createHmacHelper(u)}(Math),t.MD5})}(Hn)),Hn.exports}var Vn={exports:{}},xr;function jn(){return xr||(xr=1,function(e,o){(function(t,a){e.exports=a(ge())})(ce,function(t){return function(){var a=t,r=a.lib,i=r.WordArray,s=r.Hasher,l=a.algo,f=[],c=l.SHA1=s.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(u,g){for(var m=this._hash.words,y=m[0],h=m[1],d=m[2],v=m[3],D=m[4],x=0;x<80;x++){if(x<16)f[x]=u[g+x]|0;else{var b=f[x-3]^f[x-8]^f[x-14]^f[x-16];f[x]=b<<1|b>>>31}var p=(y<<5|y>>>27)+D+f[x];x<20?p+=(h&d|~h&v)+1518500249:x<40?p+=(h^d^v)+1859775393:x<60?p+=(h&d|h&v|d&v)-1894007588:p+=(h^d^v)-899497514,D=v,v=d,d=h<<30|h>>>2,h=y,y=p}m[0]=m[0]+y|0,m[1]=m[1]+h|0,m[2]=m[2]+d|0,m[3]=m[3]+v|0,m[4]=m[4]+D|0},_doFinalize:function(){var u=this._data,g=u.words,m=this._nDataBytes*8,y=u.sigBytes*8;return g[y>>>5]|=128<<24-y%32,g[(y+64>>>9<<4)+14]=Math.floor(m/4294967296),g[(y+64>>>9<<4)+15]=m,u.sigBytes=g.length*4,this._process(),this._hash},clone:function(){var u=s.clone.call(this);return u._hash=this._hash.clone(),u}});a.SHA1=s._createHelper(c),a.HmacSHA1=s._createHmacHelper(c)}(),t.SHA1})}(Vn)),Vn.exports}var Un={exports:{}},pr;function br(){return pr||(pr=1,function(e,o){(function(t,a){e.exports=a(ge())})(ce,function(t){return function(a){var r=t,i=r.lib,s=i.WordArray,l=i.Hasher,f=r.algo,c=[],u=[];(function(){function y(D){for(var x=a.sqrt(D),b=2;b<=x;b++)if(!(D%b))return!1;return!0}function h(D){return(D-(D|0))*4294967296|0}for(var d=2,v=0;v<64;)y(d)&&(v<8&&(c[v]=h(a.pow(d,1/2))),u[v]=h(a.pow(d,1/3)),v++),d++})();var g=[],m=f.SHA256=l.extend({_doReset:function(){this._hash=new s.init(c.slice(0))},_doProcessBlock:function(y,h){for(var d=this._hash.words,v=d[0],D=d[1],x=d[2],b=d[3],p=d[4],C=d[5],A=d[6],R=d[7],_=0;_<64;_++){if(_<16)g[_]=y[h+_]|0;else{var O=g[_-15],k=(O<<25|O>>>7)^(O<<14|O>>>18)^O>>>3,S=g[_-2],T=(S<<15|S>>>17)^(S<<13|S>>>19)^S>>>10;g[_]=k+g[_-7]+T+g[_-16]}var w=p&C^~p&A,B=v&D^v&x^D&x,E=(v<<30|v>>>2)^(v<<19|v>>>13)^(v<<10|v>>>22),N=(p<<26|p>>>6)^(p<<21|p>>>11)^(p<<7|p>>>25),z=R+N+w+u[_]+g[_],P=E+B;R=A,A=C,C=p,p=b+z|0,b=x,x=D,D=v,v=z+P|0}d[0]=d[0]+v|0,d[1]=d[1]+D|0,d[2]=d[2]+x|0,d[3]=d[3]+b|0,d[4]=d[4]+p|0,d[5]=d[5]+C|0,d[6]=d[6]+A|0,d[7]=d[7]+R|0},_doFinalize:function(){var y=this._data,h=y.words,d=this._nDataBytes*8,v=y.sigBytes*8;return h[v>>>5]|=128<<24-v%32,h[(v+64>>>9<<4)+14]=a.floor(d/4294967296),h[(v+64>>>9<<4)+15]=d,y.sigBytes=h.length*4,this._process(),this._hash},clone:function(){var y=l.clone.call(this);return y._hash=this._hash.clone(),y}});r.SHA256=l._createHelper(m),r.HmacSHA256=l._createHmacHelper(m)}(Math),t.SHA256})}(Un)),Un.exports}var Gn={exports:{}},vr;function ds(){return vr||(vr=1,function(e,o){(function(t,a,r){e.exports=a(ge(),br())})(ce,function(t){return function(){var a=t,r=a.lib,i=r.WordArray,s=a.algo,l=s.SHA256,f=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(f),a.HmacSHA224=l._createHmacHelper(f)}(),t.SHA224})}(Gn)),Gn.exports}var Wn={exports:{}},Sr;function Cr(){return Sr||(Sr=1,function(e,o){(function(t,a,r){e.exports=a(ge(),rn())})(ce,function(t){return function(){var a=t,r=a.lib,i=r.Hasher,s=a.x64,l=s.Word,f=s.WordArray,c=a.algo;function u(){return l.create.apply(l,arguments)}var g=[u(1116352408,3609767458),u(1899447441,602891725),u(3049323471,3964484399),u(3921009573,2173295548),u(961987163,4081628472),u(1508970993,3053834265),u(2453635748,2937671579),u(2870763221,3664609560),u(3624381080,2734883394),u(310598401,1164996542),u(607225278,1323610764),u(1426881987,3590304994),u(1925078388,4068182383),u(2162078206,991336113),u(2614888103,633803317),u(3248222580,3479774868),u(3835390401,2666613458),u(4022224774,944711139),u(264347078,2341262773),u(604807628,2007800933),u(770255983,1495990901),u(1249150122,1856431235),u(1555081692,3175218132),u(1996064986,2198950837),u(2554220882,3999719339),u(2821834349,766784016),u(2952996808,2566594879),u(3210313671,3203337956),u(3336571891,1034457026),u(3584528711,2466948901),u(113926993,3758326383),u(338241895,168717936),u(666307205,1188179964),u(773529912,1546045734),u(1294757372,1522805485),u(1396182291,2643833823),u(1695183700,2343527390),u(1986661051,1014477480),u(2177026350,1206759142),u(2456956037,344077627),u(2730485921,1290863460),u(2820302411,3158454273),u(3259730800,3505952657),u(3345764771,106217008),u(3516065817,3606008344),u(3600352804,1432725776),u(4094571909,1467031594),u(275423344,851169720),u(430227734,3100823752),u(506948616,1363258195),u(659060556,3750685593),u(883997877,3785050280),u(958139571,3318307427),u(1322822218,3812723403),u(1537002063,2003034995),u(1747873779,3602036899),u(1955562222,1575990012),u(2024104815,1125592928),u(2227730452,2716904306),u(2361852424,442776044),u(2428436474,593698344),u(2756734187,3733110249),u(3204031479,2999351573),u(3329325298,3815920427),u(3391569614,3928383900),u(3515267271,566280711),u(3940187606,3454069534),u(4118630271,4000239992),u(116418474,1914138554),u(174292421,2731055270),u(289380356,3203993006),u(460393269,320620315),u(685471733,587496836),u(852142971,1086792851),u(1017036298,365543100),u(1126000580,2618297676),u(1288033470,3409855158),u(1501505948,4234509866),u(1607167915,987167468),u(1816402316,1246189591)],m=[];(function(){for(var h=0;h<80;h++)m[h]=u()})();var y=c.SHA512=i.extend({_doReset:function(){this._hash=new f.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(h,d){for(var v=this._hash.words,D=v[0],x=v[1],b=v[2],p=v[3],C=v[4],A=v[5],R=v[6],_=v[7],O=D.high,k=D.low,S=x.high,T=x.low,w=b.high,B=b.low,E=p.high,N=p.low,z=C.high,P=C.low,j=A.high,$=A.low,F=R.high,q=R.low,L=_.high,I=_.low,M=O,U=k,X=S,W=T,ae=w,Y=B,ie=E,Q=N,J=z,ee=P,fe=j,Se=$,Te=F,Ie=q,Ye=L,Ve=I,_e=0;_e<80;_e++){var Le,Ne,Ue=m[_e];if(_e<16)Ne=Ue.high=h[d+_e*2]|0,Le=Ue.low=h[d+_e*2+1]|0;else{var at=m[_e-15],Pe=at.high,Ge=at.low,Ke=(Pe>>>1|Ge<<31)^(Pe>>>8|Ge<<24)^Pe>>>7,rt=(Ge>>>1|Pe<<31)^(Ge>>>8|Pe<<24)^(Ge>>>7|Pe<<25),H=m[_e-2],Z=H.high,K=H.low,oe=(Z>>>19|K<<13)^(Z<<3|K>>>29)^Z>>>6,re=(K>>>19|Z<<13)^(K<<3|Z>>>29)^(K>>>6|Z<<26),ne=m[_e-7],te=ne.high,de=ne.low,ue=m[_e-16],me=ue.high,De=ue.low;Le=rt+de,Ne=Ke+te+(Le>>>0<rt>>>0?1:0),Le=Le+re,Ne=Ne+oe+(Le>>>0<re>>>0?1:0),Le=Le+De,Ne=Ne+me+(Le>>>0<De>>>0?1:0),Ue.high=Ne,Ue.low=Le}var Qe=J&fe^~J&Te,ut=ee&Se^~ee&Ie,It=M&X^M&ae^X&ae,ct=U&W^U&Y^W&Y,ht=(M>>>28|U<<4)^(M<<30|U>>>2)^(M<<25|U>>>7),_t=(U>>>28|M<<4)^(U<<30|M>>>2)^(U<<25|M>>>7),_a=(J>>>14|ee<<18)^(J>>>18|ee<<14)^(J<<23|ee>>>9),ou=(ee>>>14|J<<18)^(ee>>>18|J<<14)^(ee<<23|J>>>9),I0=g[_e],au=I0.high,_0=I0.low,Je=Ve+ou,Bt=Ye+_a+(Je>>>0<Ve>>>0?1:0),Je=Je+ut,Bt=Bt+Qe+(Je>>>0<ut>>>0?1:0),Je=Je+_0,Bt=Bt+au+(Je>>>0<_0>>>0?1:0),Je=Je+Le,Bt=Bt+Ne+(Je>>>0<Le>>>0?1:0),O0=_t+ct,ru=ht+It+(O0>>>0<_t>>>0?1:0);Ye=Te,Ve=Ie,Te=fe,Ie=Se,fe=J,Se=ee,ee=Q+Je|0,J=ie+Bt+(ee>>>0<Q>>>0?1:0)|0,ie=ae,Q=Y,ae=X,Y=W,X=M,W=U,U=Je+O0|0,M=Bt+ru+(U>>>0<Je>>>0?1:0)|0}k=D.low=k+U,D.high=O+M+(k>>>0<U>>>0?1:0),T=x.low=T+W,x.high=S+X+(T>>>0<W>>>0?1:0),B=b.low=B+Y,b.high=w+ae+(B>>>0<Y>>>0?1:0),N=p.low=N+Q,p.high=E+ie+(N>>>0<Q>>>0?1:0),P=C.low=P+ee,C.high=z+J+(P>>>0<ee>>>0?1:0),$=A.low=$+Se,A.high=j+fe+($>>>0<Se>>>0?1:0),q=R.low=q+Ie,R.high=F+Te+(q>>>0<Ie>>>0?1:0),I=_.low=I+Ve,_.high=L+Ye+(I>>>0<Ve>>>0?1:0)},_doFinalize:function(){var h=this._data,d=h.words,v=this._nDataBytes*8,D=h.sigBytes*8;d[D>>>5]|=128<<24-D%32,d[(D+128>>>10<<5)+30]=Math.floor(v/4294967296),d[(D+128>>>10<<5)+31]=v,h.sigBytes=d.length*4,this._process();var x=this._hash.toX32();return x},clone:function(){var h=i.clone.call(this);return h._hash=this._hash.clone(),h},blockSize:1024/32});a.SHA512=i._createHelper(y),a.HmacSHA512=i._createHmacHelper(y)}(),t.SHA512})}(Wn)),Wn.exports}var $n={exports:{}},wr;function us(){return wr||(wr=1,function(e,o){(function(t,a,r){e.exports=a(ge(),rn(),Cr())})(ce,function(t){return function(){var a=t,r=a.x64,i=r.Word,s=r.WordArray,l=a.algo,f=l.SHA512,c=l.SHA384=f.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 u=f._doFinalize.call(this);return u.sigBytes-=16,u}});a.SHA384=f._createHelper(c),a.HmacSHA384=f._createHmacHelper(c)}(),t.SHA384})}($n)),$n.exports}var Zn={exports:{}},Ar;function hs(){return Ar||(Ar=1,function(e,o){(function(t,a,r){e.exports=a(ge(),rn())})(ce,function(t){return function(a){var r=t,i=r.lib,s=i.WordArray,l=i.Hasher,f=r.x64,c=f.Word,u=r.algo,g=[],m=[],y=[];(function(){for(var v=1,D=0,x=0;x<24;x++){g[v+5*D]=(x+1)*(x+2)/2%64;var b=D%5,p=(2*v+3*D)%5;v=b,D=p}for(var v=0;v<5;v++)for(var D=0;D<5;D++)m[v+5*D]=D+(2*v+3*D)%5*5;for(var C=1,A=0;A<24;A++){for(var R=0,_=0,O=0;O<7;O++){if(C&1){var k=(1<<O)-1;k<32?_^=1<<k:R^=1<<k-32}C&128?C=C<<1^113:C<<=1}y[A]=c.create(R,_)}})();var h=[];(function(){for(var v=0;v<25;v++)h[v]=c.create()})();var d=u.SHA3=l.extend({cfg:l.cfg.extend({outputLength:512}),_doReset:function(){for(var v=this._state=[],D=0;D<25;D++)v[D]=new c.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(v,D){for(var x=this._state,b=this.blockSize/2,p=0;p<b;p++){var C=v[D+2*p],A=v[D+2*p+1];C=(C<<8|C>>>24)&16711935|(C<<24|C>>>8)&4278255360,A=(A<<8|A>>>24)&16711935|(A<<24|A>>>8)&4278255360;var R=x[p];R.high^=A,R.low^=C}for(var _=0;_<24;_++){for(var O=0;O<5;O++){for(var k=0,S=0,T=0;T<5;T++){var R=x[O+5*T];k^=R.high,S^=R.low}var w=h[O];w.high=k,w.low=S}for(var O=0;O<5;O++)for(var B=h[(O+4)%5],E=h[(O+1)%5],N=E.high,z=E.low,k=B.high^(N<<1|z>>>31),S=B.low^(z<<1|N>>>31),T=0;T<5;T++){var R=x[O+5*T];R.high^=k,R.low^=S}for(var P=1;P<25;P++){var k,S,R=x[P],j=R.high,$=R.low,F=g[P];F<32?(k=j<<F|$>>>32-F,S=$<<F|j>>>32-F):(k=$<<F-32|j>>>64-F,S=j<<F-32|$>>>64-F);var q=h[m[P]];q.high=k,q.low=S}var L=h[0],I=x[0];L.high=I.high,L.low=I.low;for(var O=0;O<5;O++)for(var T=0;T<5;T++){var P=O+5*T,R=x[P],M=h[P],U=h[(O+1)%5+5*T],X=h[(O+2)%5+5*T];R.high=M.high^~U.high&X.high,R.low=M.low^~U.low&X.low}var R=x[0],W=y[_];R.high^=W.high,R.low^=W.low}},_doFinalize:function(){var v=this._data,D=v.words;this._nDataBytes*8;var x=v.sigBytes*8,b=this.blockSize*32;D[x>>>5]|=1<<24-x%32,D[(a.ceil((x+1)/b)*b>>>5)-1]|=128,v.sigBytes=D.length*4,this._process();for(var p=this._state,C=this.cfg.outputLength/8,A=C/8,R=[],_=0;_<A;_++){var O=p[_],k=O.high,S=O.low;k=(k<<8|k>>>24)&16711935|(k<<24|k>>>8)&4278255360,S=(S<<8|S>>>24)&16711935|(S<<24|S>>>8)&4278255360,R.push(S),R.push(k)}return new s.init(R,C)},clone:function(){for(var v=l.clone.call(this),D=v._state=this._state.slice(0),x=0;x<25;x++)D[x]=D[x].clone();return v}});r.SHA3=l._createHelper(d),r.HmacSHA3=l._createHmacHelper(d)}(Math),t.SHA3})}(Zn)),Zn.exports}var Yn={exports:{}},kr;function gs(){return kr||(kr=1,function(e,o){(function(t,a){e.exports=a(ge())})(ce,function(t){/** @preserve
56
+ `,Qa=!1,B0=function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:T0;n.nextTick(function(){Qa||(typeof window<"u"&&window.document&&window.document.documentElement&&C0(o,{prepend:!0}),Qa=!0)})},E0=["icon","primaryColor","secondaryColor"];function D0(e,o){if(e==null)return{};var t=R0(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 R0(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 an(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){I0(e,r,t[r])})}return e}function I0(e,o,t){return o in e?Object.defineProperty(e,o,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[o]=t,e}var Kt={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function _0(e){var o=e.primaryColor,t=e.secondaryColor;Kt.primaryColor=o,Kt.secondaryColor=t||Ya(o),Kt.calculated=!!t}function O0(){return an({},Kt)}var Ot=function(o,t){var a=an({},o,t.attrs),r=a.icon,i=a.primaryColor,s=a.secondaryColor,l=D0(a,E0),d=Kt;if(i&&(d={primaryColor:i,secondaryColor:s||Ya(i)}),B0(),k0(Za(r),"icon should be icon definiton, but got ".concat(r)),!Za(r))return null;var c=r;return c&&typeof c.icon=="function"&&(c=an({},c,{icon:c.icon(d.primaryColor,d.secondaryColor)})),En(c.icon,"svg-".concat(c.name),an({},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=O0,Ot.setTwoToneColors=_0;const Dn=Ot;function L0(e,o){return z0(e)||M0(e,o)||F0(e,o)||N0()}function N0(){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 F0(e,o){if(e){if(typeof e=="string")return Ja(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 Ja(e,o)}}function Ja(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 z0(e){if(Array.isArray(e))return e}function Xa(e){var o=Ka(e),t=L0(o,2),a=t[0],r=t[1];return Dn.setTwoToneColors({primaryColor:a,secondaryColor:r})}function P0(){var e=Dn.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var q0=["class","icon","spin","rotate","tabindex","twoToneColor","onClick"];function H0(e,o){return U0(e)||W0(e,o)||j0(e,o)||V0()}function V0(){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 j0(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 W0(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 U0(e){if(Array.isArray(e))return e}function tr(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){Rn(e,r,t[r])})}return e}function Rn(e,o,t){return o in e?Object.defineProperty(e,o,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[o]=t,e}function G0(e,o){if(e==null)return{};var t=$0(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 $0(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}Xa("#1890ff");var Lt=function(o,t){var a,r=tr({},o,t.attrs),i=r.class,s=r.icon,l=r.spin,d=r.rotate,c=r.tabindex,f=r.twoToneColor,g=r.onClick,m=G0(r,q0),u=(a={anticon:!0},Rn(a,"anticon-".concat(s.name),!!s.name),Rn(a,i,i),a),y=l===""||l||s.name==="loading"?"anticon-spin":"",h=c;h===void 0&&g&&(h=-1,m.tabindex=h);var v=d?{msTransform:"rotate(".concat(d,"deg)"),transform:"rotate(".concat(d,"deg)")}:void 0,E=Ka(f),p=H0(E,2),b=p[0],x=p[1];return n.createVNode("span",tr({role:"img","aria-label":s.name},m,{onClick:g,class:u}),[n.createVNode(Dn,{class:y,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=P0,Lt.setTwoToneColor=Xa;const nr=Lt;var Z0={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 Y0=Z0;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){K0(e,r,t[r])})}return e}function K0(e,o,t){return o in e?Object.defineProperty(e,o,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[o]=t,e}var In=function(o,t){var a=or({},o,t.attrs);return n.createVNode(nr,or({},a,{icon:Y0}),null)};In.displayName="CloseOutlined",In.inheritAttrs=!1;const Q0=In;var J0={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 X0=J0;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){es(e,r,t[r])})}return e}function es(e,o,t){return o in e?Object.defineProperty(e,o,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[o]=t,e}var _n=function(o,t){var a=ar({},o,t.attrs);return n.createVNode(nr,ar({},a,{icon:X0}),null)};_n.displayName="LoadingOutlined",_n.inheritAttrs=!1;const ts=_n,ns=n.defineComponent({props:{spinning:{type:Boolean,default:!1}},components:{ASpin:se.Spin},setup(){return{indicator:n.h(ts,{style:{fontSize:"24px",color:"#1890ff"},spin:!0})}}}),Cu="",ye=(e,o)=>{const t=e.__vccOpts||e;for(const[a,r]of o)t[a]=r;return t},os={class:"spin-wrapper"};function as(e,o,t,a,r,i){const s=n.resolveComponent("a-spin");return n.openBlock(),n.createElementBlock("div",os,[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(ns,[["render",as]]),rs=n.defineComponent({name:"Skeleton",props:{loading:{type:Boolean,default:!1}},components:{ASkeleton:se.Skeleton}});function is(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 rn=ye(rs,[["render",is]]);process.env.NODE_ENV!=="production"&&Object.freeze({}),process.env.NODE_ENV!=="production"&&Object.freeze([]);const xe=(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},we={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"},ve=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},On={width:"1920px",height:"1080px",backgroundColor:"#ffffff",backgroundImage:"",backgroundSize:"100% 100%",contextRequestUrl:"",mode:"normal"},Ln=ve(On),ls=["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=He.without(ls,...o);return n.computed(()=>He.pick(e,t))},Nn="EVENT_BUS",Me="GLOBAL_CONFIG",ke="GLOBAL_MODEL",ze="REQUEST_MODEL",rr="GLOBAL_TOKEN",Qt="REFRESH_PAGE",ir="MODAL_MODEL",bt="LOADED_DATA",Ue=18,lr="ygt",sr=((Il=window==null?void 0:window.config)==null?void 0:Il.indicatorURL)||"";(_l=window==null?void 0:window.config)!=null&&_l.uploadPath;const cr=((Ol=window==null?void 0:window.config)==null?void 0:Ol.routerBaseURL)||"./",ss=((Ll=window==null?void 0:window.config)==null?void 0:Ll.erdURL)||"",Le=(e,o)=>{n.watch(()=>e.id,t=>{const a=n.inject(Nn,{onEvent:(r,i)=>{}});t!=null&&t!==""&&a.onEvent(t,o)},{immediate:!0})},Te=e=>{const o=e.events,t=e.id,a=n.inject(Nn,{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],g=f[t]||"",m=f[a]||"",u=f[r]||"";if(i.has(u)){const y=i.get(u);y.push({name:g,value:m,...f}),i.set(u,y)}else i.set(u,[{name:g,value:m,...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 g of f)l.includes(g.name)||l.push(g.name);else l.push(...f.map(g=>g.name));return{dimensions:l,dataset:d}};var ce=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function dr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function cs(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 fr={exports:{}};function ds(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 Fn={exports:{}};const fs=cs(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var ur;function ge(){return ur||(ur=1,function(e,o){(function(t,a){e.exports=a()})(ce,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 ce<"u"&&ce.crypto&&(i=ce.crypto),!i&&typeof ds=="function")try{i=fs}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)}}}(),g=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||u).stringify(this)},concat:function(p){var b=this.words,x=p.words,A=this.sigBytes,T=p.sigBytes;if(this.clamp(),A%4)for(var D=0;D<T;D++){var O=x[D>>>2]>>>24-D%4*8&255;b[A+D>>>2]|=O<<24-(A+D)%4*8}else for(var _=0;_<T;_+=4)b[A+_>>>2]=x[_>>>2];return this.sigBytes+=T,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 g.init(b,p)}}),m=d.enc={},u=m.Hex={stringify:function(p){for(var b=p.words,x=p.sigBytes,A=[],T=0;T<x;T++){var D=b[T>>>2]>>>24-T%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 g.init(x,b/2)}},y=m.Latin1={stringify:function(p){for(var b=p.words,x=p.sigBytes,A=[],T=0;T<x;T++){var D=b[T>>>2]>>>24-T%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 g.init(x,b)}},h=m.Utf8={stringify:function(p){try{return decodeURIComponent(escape(y.stringify(p)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(p){return y.parse(unescape(encodeURIComponent(p)))}},v=c.BufferedBlockAlgorithm=f.extend({reset:function(){this._data=new g.init,this._nDataBytes=0},_append:function(p){typeof p=="string"&&(p=h.parse(p)),this._data.concat(p),this._nDataBytes+=p.sigBytes},_process:function(p){var b,x=this._data,A=x.words,T=x.sigBytes,D=this.blockSize,O=D*4,_=T/O;p?_=a.ceil(_):_=a.max((_|0)-this._minBufferSize,0);var k=_*D,S=a.min(k*4,T);if(k){for(var B=0;B<k;B+=D)this._doProcessBlock(A,B);b=A.splice(0,k),x.sigBytes-=S}return new g.init(b,S)},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 E.HMAC.init(p,x).finalize(b)}}});var E=d.algo={};return d}(Math);return t})}(Fn)),Fn.exports}var Mn={exports:{}},hr;function ln(){return hr||(hr=1,function(e,o){(function(t,a){e.exports=a(ge())})(ce,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,g=[],m=0;m<f;m++){var u=c[m];g.push(u.high),g.push(u.low)}return l.create(g,this.sigBytes)},clone:function(){for(var c=s.clone.call(this),f=c.words=this.words.slice(0),g=f.length,m=0;m<g;m++)f[m]=f[m].clone();return c}})}(),t})}(Mn)),Mn.exports}var zn={exports:{}},gr;function us(){return gr||(gr=1,function(e,o){(function(t,a){e.exports=a(ge())})(ce,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=[],g=0;g<c;g++)f[g>>>2]|=d[g]<<24-g%4*8;s.call(this,f,c)}else s.apply(this,arguments)};l.prototype=i}}(),t.lib.WordArray})}(zn)),zn.exports}var Pn={exports:{}},mr;function hs(){return mr||(mr=1,function(e,o){(function(t,a){e.exports=a(ge())})(ce,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,g=[],m=0;m<f;m+=2){var u=c[m>>>2]>>>16-m%4*8&65535;g.push(String.fromCharCode(u))}return g.join("")},parse:function(d){for(var c=d.length,f=[],g=0;g<c;g++)f[g>>>1]|=d.charCodeAt(g)<<16-g%2*16;return i.create(f,c*2)}},s.Utf16LE={stringify:function(d){for(var c=d.words,f=d.sigBytes,g=[],m=0;m<f;m+=2){var u=l(c[m>>>2]>>>16-m%4*8&65535);g.push(String.fromCharCode(u))}return g.join("")},parse:function(d){for(var c=d.length,f=[],g=0;g<c;g++)f[g>>>1]|=l(d.charCodeAt(g)<<16-g%2*16);return i.create(f,c*2)}};function l(d){return d<<8&4278255360|d>>>8&16711935}}(),t.enc.Utf16})}(Pn)),Pn.exports}var qn={exports:{}},yr;function Mt(){return yr||(yr=1,function(e,o){(function(t,a){e.exports=a(ge())})(ce,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,g=this._map;d.clamp();for(var m=[],u=0;u<f;u+=3)for(var y=c[u>>>2]>>>24-u%4*8&255,h=c[u+1>>>2]>>>24-(u+1)%4*8&255,v=c[u+2>>>2]>>>24-(u+2)%4*8&255,E=y<<16|h<<8|v,p=0;p<4&&u+p*.75<f;p++)m.push(g.charAt(E>>>6*(3-p)&63));var b=g.charAt(64);if(b)for(;m.length%4;)m.push(b);return m.join("")},parse:function(d){var c=d.length,f=this._map,g=this._reverseMap;if(!g){g=this._reverseMap=[];for(var m=0;m<f.length;m++)g[f.charCodeAt(m)]=m}var u=f.charAt(64);if(u){var y=d.indexOf(u);y!==-1&&(c=y)}return l(d,c,g)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function l(d,c,f){for(var g=[],m=0,u=0;u<c;u++)if(u%4){var y=f[d.charCodeAt(u-1)]<<u%4*2,h=f[d.charCodeAt(u)]>>>6-u%4*2,v=y|h;g[m>>>2]|=v<<24-m%4*8,m++}return i.create(g,m)}}(),t.enc.Base64})}(qn)),qn.exports}var Hn={exports:{}},xr;function gs(){return xr||(xr=1,function(e,o){(function(t,a){e.exports=a(ge())})(ce,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,g=d.sigBytes,m=c?this._safe_map:this._map;d.clamp();for(var u=[],y=0;y<g;y+=3)for(var h=f[y>>>2]>>>24-y%4*8&255,v=f[y+1>>>2]>>>24-(y+1)%4*8&255,E=f[y+2>>>2]>>>24-(y+2)%4*8&255,p=h<<16|v<<8|E,b=0;b<4&&y+b*.75<g;b++)u.push(m.charAt(p>>>6*(3-b)&63));var x=m.charAt(64);if(x)for(;u.length%4;)u.push(x);return u.join("")},parse:function(d,c=!0){var f=d.length,g=c?this._safe_map:this._map,m=this._reverseMap;if(!m){m=this._reverseMap=[];for(var u=0;u<g.length;u++)m[g.charCodeAt(u)]=u}var y=g.charAt(64);if(y){var h=d.indexOf(y);h!==-1&&(f=h)}return l(d,f,m)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function l(d,c,f){for(var g=[],m=0,u=0;u<c;u++)if(u%4){var y=f[d.charCodeAt(u-1)]<<u%4*2,h=f[d.charCodeAt(u)]>>>6-u%4*2,v=y|h;g[m>>>2]|=v<<24-m%4*8,m++}return i.create(g,m)}}(),t.enc.Base64url})}(Hn)),Hn.exports}var Vn={exports:{}},pr;function zt(){return pr||(pr=1,function(e,o){(function(t,a){e.exports=a(ge())})(ce,function(t){return function(a){var r=t,i=r.lib,s=i.WordArray,l=i.Hasher,d=r.algo,c=[];(function(){for(var h=0;h<64;h++)c[h]=a.abs(a.sin(h+1))*4294967296|0})();var f=d.MD5=l.extend({_doReset:function(){this._hash=new s.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(h,v){for(var E=0;E<16;E++){var p=v+E,b=h[p];h[p]=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360}var x=this._hash.words,A=h[v+0],T=h[v+1],D=h[v+2],O=h[v+3],_=h[v+4],k=h[v+5],S=h[v+6],B=h[v+7],w=h[v+8],C=h[v+9],I=h[v+10],N=h[v+11],M=h[v+12],P=h[v+13],W=h[v+14],$=h[v+15],z=x[0],q=x[1],L=x[2],R=x[3];z=g(z,q,L,R,A,7,c[0]),R=g(R,z,q,L,T,12,c[1]),L=g(L,R,z,q,D,17,c[2]),q=g(q,L,R,z,O,22,c[3]),z=g(z,q,L,R,_,7,c[4]),R=g(R,z,q,L,k,12,c[5]),L=g(L,R,z,q,S,17,c[6]),q=g(q,L,R,z,B,22,c[7]),z=g(z,q,L,R,w,7,c[8]),R=g(R,z,q,L,C,12,c[9]),L=g(L,R,z,q,I,17,c[10]),q=g(q,L,R,z,N,22,c[11]),z=g(z,q,L,R,M,7,c[12]),R=g(R,z,q,L,P,12,c[13]),L=g(L,R,z,q,W,17,c[14]),q=g(q,L,R,z,$,22,c[15]),z=m(z,q,L,R,T,5,c[16]),R=m(R,z,q,L,S,9,c[17]),L=m(L,R,z,q,N,14,c[18]),q=m(q,L,R,z,A,20,c[19]),z=m(z,q,L,R,k,5,c[20]),R=m(R,z,q,L,I,9,c[21]),L=m(L,R,z,q,$,14,c[22]),q=m(q,L,R,z,_,20,c[23]),z=m(z,q,L,R,C,5,c[24]),R=m(R,z,q,L,W,9,c[25]),L=m(L,R,z,q,O,14,c[26]),q=m(q,L,R,z,w,20,c[27]),z=m(z,q,L,R,P,5,c[28]),R=m(R,z,q,L,D,9,c[29]),L=m(L,R,z,q,B,14,c[30]),q=m(q,L,R,z,M,20,c[31]),z=u(z,q,L,R,k,4,c[32]),R=u(R,z,q,L,w,11,c[33]),L=u(L,R,z,q,N,16,c[34]),q=u(q,L,R,z,W,23,c[35]),z=u(z,q,L,R,T,4,c[36]),R=u(R,z,q,L,_,11,c[37]),L=u(L,R,z,q,B,16,c[38]),q=u(q,L,R,z,I,23,c[39]),z=u(z,q,L,R,P,4,c[40]),R=u(R,z,q,L,A,11,c[41]),L=u(L,R,z,q,O,16,c[42]),q=u(q,L,R,z,S,23,c[43]),z=u(z,q,L,R,C,4,c[44]),R=u(R,z,q,L,M,11,c[45]),L=u(L,R,z,q,$,16,c[46]),q=u(q,L,R,z,D,23,c[47]),z=y(z,q,L,R,A,6,c[48]),R=y(R,z,q,L,B,10,c[49]),L=y(L,R,z,q,W,15,c[50]),q=y(q,L,R,z,k,21,c[51]),z=y(z,q,L,R,M,6,c[52]),R=y(R,z,q,L,O,10,c[53]),L=y(L,R,z,q,I,15,c[54]),q=y(q,L,R,z,T,21,c[55]),z=y(z,q,L,R,w,6,c[56]),R=y(R,z,q,L,$,10,c[57]),L=y(L,R,z,q,S,15,c[58]),q=y(q,L,R,z,P,21,c[59]),z=y(z,q,L,R,_,6,c[60]),R=y(R,z,q,L,N,10,c[61]),L=y(L,R,z,q,D,15,c[62]),q=y(q,L,R,z,C,21,c[63]),x[0]=x[0]+z|0,x[1]=x[1]+q|0,x[2]=x[2]+L|0,x[3]=x[3]+R|0},_doFinalize:function(){var h=this._data,v=h.words,E=this._nDataBytes*8,p=h.sigBytes*8;v[p>>>5]|=128<<24-p%32;var b=a.floor(E/4294967296),x=E;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,h.sigBytes=(v.length+1)*4,this._process();for(var A=this._hash,T=A.words,D=0;D<4;D++){var O=T[D];T[D]=(O<<8|O>>>24)&16711935|(O<<24|O>>>8)&4278255360}return A},clone:function(){var h=l.clone.call(this);return h._hash=this._hash.clone(),h}});function g(h,v,E,p,b,x,A){var T=h+(v&E|~v&p)+b+A;return(T<<x|T>>>32-x)+v}function m(h,v,E,p,b,x,A){var T=h+(v&p|E&~p)+b+A;return(T<<x|T>>>32-x)+v}function u(h,v,E,p,b,x,A){var T=h+(v^E^p)+b+A;return(T<<x|T>>>32-x)+v}function y(h,v,E,p,b,x,A){var T=h+(E^(v|~p))+b+A;return(T<<x|T>>>32-x)+v}r.MD5=l._createHelper(f),r.HmacMD5=l._createHmacHelper(f)}(Math),t.MD5})}(Vn)),Vn.exports}var jn={exports:{}},br;function Wn(){return br||(br=1,function(e,o){(function(t,a){e.exports=a(ge())})(ce,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,g){for(var m=this._hash.words,u=m[0],y=m[1],h=m[2],v=m[3],E=m[4],p=0;p<80;p++){if(p<16)d[p]=f[g+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)+E+d[p];p<20?x+=(y&h|~y&v)+1518500249:p<40?x+=(y^h^v)+1859775393:p<60?x+=(y&h|y&v|h&v)-1894007588:x+=(y^h^v)-899497514,E=v,v=h,h=y<<30|y>>>2,y=u,u=x}m[0]=m[0]+u|0,m[1]=m[1]+y|0,m[2]=m[2]+h|0,m[3]=m[3]+v|0,m[4]=m[4]+E|0},_doFinalize:function(){var f=this._data,g=f.words,m=this._nDataBytes*8,u=f.sigBytes*8;return g[u>>>5]|=128<<24-u%32,g[(u+64>>>9<<4)+14]=Math.floor(m/4294967296),g[(u+64>>>9<<4)+15]=m,f.sigBytes=g.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})}(jn)),jn.exports}var Un={exports:{}},vr;function Sr(){return vr||(vr=1,function(e,o){(function(t,a){e.exports=a(ge())})(ce,function(t){return function(a){var r=t,i=r.lib,s=i.WordArray,l=i.Hasher,d=r.algo,c=[],f=[];(function(){function u(E){for(var p=a.sqrt(E),b=2;b<=p;b++)if(!(E%b))return!1;return!0}function y(E){return(E-(E|0))*4294967296|0}for(var h=2,v=0;v<64;)u(h)&&(v<8&&(c[v]=y(a.pow(h,1/2))),f[v]=y(a.pow(h,1/3)),v++),h++})();var g=[],m=d.SHA256=l.extend({_doReset:function(){this._hash=new s.init(c.slice(0))},_doProcessBlock:function(u,y){for(var h=this._hash.words,v=h[0],E=h[1],p=h[2],b=h[3],x=h[4],A=h[5],T=h[6],D=h[7],O=0;O<64;O++){if(O<16)g[O]=u[y+O]|0;else{var _=g[O-15],k=(_<<25|_>>>7)^(_<<14|_>>>18)^_>>>3,S=g[O-2],B=(S<<15|S>>>17)^(S<<13|S>>>19)^S>>>10;g[O]=k+g[O-7]+B+g[O-16]}var w=x&A^~x&T,C=v&E^v&p^E&p,I=(v<<30|v>>>2)^(v<<19|v>>>13)^(v<<10|v>>>22),N=(x<<26|x>>>6)^(x<<21|x>>>11)^(x<<7|x>>>25),M=D+N+w+f[O]+g[O],P=I+C;D=T,T=A,A=x,x=b+M|0,b=p,p=E,E=v,v=M+P|0}h[0]=h[0]+v|0,h[1]=h[1]+E|0,h[2]=h[2]+p|0,h[3]=h[3]+b|0,h[4]=h[4]+x|0,h[5]=h[5]+A|0,h[6]=h[6]+T|0,h[7]=h[7]+D|0},_doFinalize:function(){var u=this._data,y=u.words,h=this._nDataBytes*8,v=u.sigBytes*8;return y[v>>>5]|=128<<24-v%32,y[(v+64>>>9<<4)+14]=a.floor(h/4294967296),y[(v+64>>>9<<4)+15]=h,u.sigBytes=y.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(m),r.HmacSHA256=l._createHmacHelper(m)}(Math),t.SHA256})}(Un)),Un.exports}var Gn={exports:{}},Cr;function ms(){return Cr||(Cr=1,function(e,o){(function(t,a,r){e.exports=a(ge(),Sr())})(ce,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})}(Gn)),Gn.exports}var $n={exports:{}},wr;function Ar(){return wr||(wr=1,function(e,o){(function(t,a,r){e.exports=a(ge(),ln())})(ce,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 g=[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)],m=[];(function(){for(var y=0;y<80;y++)m[y]=f()})();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(y,h){for(var v=this._hash.words,E=v[0],p=v[1],b=v[2],x=v[3],A=v[4],T=v[5],D=v[6],O=v[7],_=E.high,k=E.low,S=p.high,B=p.low,w=b.high,C=b.low,I=x.high,N=x.low,M=A.high,P=A.low,W=T.high,$=T.low,z=D.high,q=D.low,L=O.high,R=O.low,F=_,j=k,ee=S,G=B,ae=w,Y=C,Q=I,J=N,X=M,re=P,de=W,pe=$,Be=z,Ee=q,je=L,Ne=R,Re=0;Re<80;Re++){var Ae,Fe,$e=m[Re];if(Re<16)Fe=$e.high=y[h+Re*2]|0,Ae=$e.low=y[h+Re*2+1]|0;else{var Qe=m[Re-15],We=Qe.high,qe=Qe.low,lt=(We>>>1|qe<<31)^(We>>>8|qe<<24)^We>>>7,ft=(qe>>>1|We<<31)^(qe>>>8|We<<24)^(qe>>>7|We<<25),V=m[Re-2],Z=V.high,K=V.low,oe=(Z>>>19|K<<13)^(Z<<3|K>>>29)^Z>>>6,ie=(K>>>19|Z<<13)^(K<<3|Z>>>29)^(K>>>6|Z<<26),ne=m[Re-7],te=ne.high,fe=ne.low,ue=m[Re-16],me=ue.high,_e=ue.low;Ae=ft+fe,Fe=lt+te+(Ae>>>0<ft>>>0?1:0),Ae=Ae+ie,Fe=Fe+oe+(Ae>>>0<ie>>>0?1:0),Ae=Ae+_e,Fe=Fe+me+(Ae>>>0<_e>>>0?1:0),$e.high=Fe,$e.low=Ae}var Je=X&de^~X&Be,ut=re&pe^~re&Ee,It=F&ee^F&ae^ee&ae,st=j&G^j&Y^G&Y,ht=(F>>>28|j<<4)^(F<<30|j>>>2)^(F<<25|j>>>7),_t=(j>>>28|F<<4)^(j<<30|F>>>2)^(j<<25|F>>>7),La=(X>>>14|re<<18)^(X>>>18|re<<14)^(X<<23|re>>>9),iu=(re>>>14|X<<18)^(re>>>18|X<<14)^(re<<23|X>>>9),Nl=g[Re],lu=Nl.high,Fl=Nl.low,Xe=Ne+iu,Bt=je+La+(Xe>>>0<Ne>>>0?1:0),Xe=Xe+ut,Bt=Bt+Je+(Xe>>>0<ut>>>0?1:0),Xe=Xe+Fl,Bt=Bt+lu+(Xe>>>0<Fl>>>0?1:0),Xe=Xe+Ae,Bt=Bt+Fe+(Xe>>>0<Ae>>>0?1:0),Ml=_t+st,su=ht+It+(Ml>>>0<_t>>>0?1:0);je=Be,Ne=Ee,Be=de,Ee=pe,de=X,pe=re,re=J+Xe|0,X=Q+Bt+(re>>>0<J>>>0?1:0)|0,Q=ae,J=Y,ae=ee,Y=G,ee=F,G=j,j=Xe+Ml|0,F=Bt+su+(j>>>0<Xe>>>0?1:0)|0}k=E.low=k+j,E.high=_+F+(k>>>0<j>>>0?1:0),B=p.low=B+G,p.high=S+ee+(B>>>0<G>>>0?1:0),C=b.low=C+Y,b.high=w+ae+(C>>>0<Y>>>0?1:0),N=x.low=N+J,x.high=I+Q+(N>>>0<J>>>0?1:0),P=A.low=P+re,A.high=M+X+(P>>>0<re>>>0?1:0),$=T.low=$+pe,T.high=W+de+($>>>0<pe>>>0?1:0),q=D.low=q+Ee,D.high=z+Be+(q>>>0<Ee>>>0?1:0),R=O.low=R+Ne,O.high=L+je+(R>>>0<Ne>>>0?1:0)},_doFinalize:function(){var y=this._data,h=y.words,v=this._nDataBytes*8,E=y.sigBytes*8;h[E>>>5]|=128<<24-E%32,h[(E+128>>>10<<5)+30]=Math.floor(v/4294967296),h[(E+128>>>10<<5)+31]=v,y.sigBytes=h.length*4,this._process();var p=this._hash.toX32();return p},clone:function(){var y=i.clone.call(this);return y._hash=this._hash.clone(),y},blockSize:1024/32});a.SHA512=i._createHelper(u),a.HmacSHA512=i._createHmacHelper(u)}(),t.SHA512})}($n)),$n.exports}var Zn={exports:{}},kr;function ys(){return kr||(kr=1,function(e,o){(function(t,a,r){e.exports=a(ge(),ln(),Ar())})(ce,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})}(Zn)),Zn.exports}var Yn={exports:{}},Tr;function xs(){return Tr||(Tr=1,function(e,o){(function(t,a,r){e.exports=a(ge(),ln())})(ce,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,g=[],m=[],u=[];(function(){for(var v=1,E=0,p=0;p<24;p++){g[v+5*E]=(p+1)*(p+2)/2%64;var b=E%5,x=(2*v+3*E)%5;v=b,E=x}for(var v=0;v<5;v++)for(var E=0;E<5;E++)m[v+5*E]=E+(2*v+3*E)%5*5;for(var A=1,T=0;T<24;T++){for(var D=0,O=0,_=0;_<7;_++){if(A&1){var k=(1<<_)-1;k<32?O^=1<<k:D^=1<<k-32}A&128?A=A<<1^113:A<<=1}u[T]=c.create(D,O)}})();var y=[];(function(){for(var v=0;v<25;v++)y[v]=c.create()})();var h=f.SHA3=l.extend({cfg:l.cfg.extend({outputLength:512}),_doReset:function(){for(var v=this._state=[],E=0;E<25;E++)v[E]=new c.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(v,E){for(var p=this._state,b=this.blockSize/2,x=0;x<b;x++){var A=v[E+2*x],T=v[E+2*x+1];A=(A<<8|A>>>24)&16711935|(A<<24|A>>>8)&4278255360,T=(T<<8|T>>>24)&16711935|(T<<24|T>>>8)&4278255360;var D=p[x];D.high^=T,D.low^=A}for(var O=0;O<24;O++){for(var _=0;_<5;_++){for(var k=0,S=0,B=0;B<5;B++){var D=p[_+5*B];k^=D.high,S^=D.low}var w=y[_];w.high=k,w.low=S}for(var _=0;_<5;_++)for(var C=y[(_+4)%5],I=y[(_+1)%5],N=I.high,M=I.low,k=C.high^(N<<1|M>>>31),S=C.low^(M<<1|N>>>31),B=0;B<5;B++){var D=p[_+5*B];D.high^=k,D.low^=S}for(var P=1;P<25;P++){var k,S,D=p[P],W=D.high,$=D.low,z=g[P];z<32?(k=W<<z|$>>>32-z,S=$<<z|W>>>32-z):(k=$<<z-32|W>>>64-z,S=W<<z-32|$>>>64-z);var q=y[m[P]];q.high=k,q.low=S}var L=y[0],R=p[0];L.high=R.high,L.low=R.low;for(var _=0;_<5;_++)for(var B=0;B<5;B++){var P=_+5*B,D=p[P],F=y[P],j=y[(_+1)%5+5*B],ee=y[(_+2)%5+5*B];D.high=F.high^~j.high&ee.high,D.low=F.low^~j.low&ee.low}var D=p[0],G=u[O];D.high^=G.high,D.low^=G.low}},_doFinalize:function(){var v=this._data,E=v.words;this._nDataBytes*8;var p=v.sigBytes*8,b=this.blockSize*32;E[p>>>5]|=1<<24-p%32,E[(a.ceil((p+1)/b)*b>>>5)-1]|=128,v.sigBytes=E.length*4,this._process();for(var x=this._state,A=this.cfg.outputLength/8,T=A/8,D=[],O=0;O<T;O++){var _=x[O],k=_.high,S=_.low;k=(k<<8|k>>>24)&16711935|(k<<24|k>>>8)&4278255360,S=(S<<8|S>>>24)&16711935|(S<<24|S>>>8)&4278255360,D.push(S),D.push(k)}return new s.init(D,A)},clone:function(){for(var v=l.clone.call(this),E=v._state=this._state.slice(0),p=0;p<25;p++)E[p]=E[p].clone();return v}});r.SHA3=l._createHelper(h),r.HmacSHA3=l._createHmacHelper(h)}(Math),t.SHA3})}(Yn)),Yn.exports}var Kn={exports:{}},Br;function ps(){return Br||(Br=1,function(e,o){(function(t,a){e.exports=a(ge())})(ce,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,56 +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,f=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]),u=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]),g=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]),m=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]),y=s.create([0,1518500249,1859775393,2400959708,2840853838]),h=s.create([1352829926,1548603684,1836072691,2053994217,0]),d=f.RIPEMD160=l.extend({_doReset:function(){this._hash=s.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(A,R){for(var _=0;_<16;_++){var O=R+_,k=A[O];A[O]=(k<<8|k>>>24)&16711935|(k<<24|k>>>8)&4278255360}var S=this._hash.words,T=y.words,w=h.words,B=c.words,E=u.words,N=g.words,z=m.words,P,j,$,F,q,L,I,M,U,X;L=P=S[0],I=j=S[1],M=$=S[2],U=F=S[3],X=q=S[4];for(var W,_=0;_<80;_+=1)W=P+A[R+B[_]]|0,_<16?W+=v(j,$,F)+T[0]:_<32?W+=D(j,$,F)+T[1]:_<48?W+=x(j,$,F)+T[2]:_<64?W+=b(j,$,F)+T[3]:W+=p(j,$,F)+T[4],W=W|0,W=C(W,N[_]),W=W+q|0,P=q,q=F,F=C($,10),$=j,j=W,W=L+A[R+E[_]]|0,_<16?W+=p(I,M,U)+w[0]:_<32?W+=b(I,M,U)+w[1]:_<48?W+=x(I,M,U)+w[2]:_<64?W+=D(I,M,U)+w[3]:W+=v(I,M,U)+w[4],W=W|0,W=C(W,z[_]),W=W+X|0,L=X,X=U,U=C(M,10),M=I,I=W;W=S[1]+$+U|0,S[1]=S[2]+F+X|0,S[2]=S[3]+q+L|0,S[3]=S[4]+P+I|0,S[4]=S[0]+j+M|0,S[0]=W},_doFinalize:function(){var A=this._data,R=A.words,_=this._nDataBytes*8,O=A.sigBytes*8;R[O>>>5]|=128<<24-O%32,R[(O+64>>>9<<4)+14]=(_<<8|_>>>24)&16711935|(_<<24|_>>>8)&4278255360,A.sigBytes=(R.length+1)*4,this._process();for(var k=this._hash,S=k.words,T=0;T<5;T++){var w=S[T];S[T]=(w<<8|w>>>24)&16711935|(w<<24|w>>>8)&4278255360}return k},clone:function(){var A=l.clone.call(this);return A._hash=this._hash.clone(),A}});function v(A,R,_){return A^R^_}function D(A,R,_){return A&R|~A&_}function x(A,R,_){return(A|~R)^_}function b(A,R,_){return A&_|R&~_}function p(A,R,_){return A^(R|~_)}function C(A,R){return A<<R|A>>>32-R}r.RIPEMD160=l._createHelper(d),r.HmacRIPEMD160=l._createHmacHelper(d)}(),t.RIPEMD160})}(Yn)),Yn.exports}var Kn={exports:{}},Tr;function Qn(){return Tr||(Tr=1,function(e,o){(function(t,a){e.exports=a(ge())})(ce,function(t){(function(){var a=t,r=a.lib,i=r.Base,s=a.enc,l=s.Utf8,f=a.algo;f.HMAC=i.extend({init:function(c,u){c=this._hasher=new c.init,typeof u=="string"&&(u=l.parse(u));var g=c.blockSize,m=g*4;u.sigBytes>m&&(u=c.finalize(u)),u.clamp();for(var y=this._oKey=u.clone(),h=this._iKey=u.clone(),d=y.words,v=h.words,D=0;D<g;D++)d[D]^=1549556828,v[D]^=909522486;y.sigBytes=h.sigBytes=m,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 u=this._hasher,g=u.finalize(c);u.reset();var m=u.finalize(this._oKey.clone().concat(g));return m}})})()})}(Kn)),Kn.exports}var Jn={exports:{}},Br;function ms(){return Br||(Br=1,function(e,o){(function(t,a,r){e.exports=a(ge(),jn(),Qn())})(ce,function(t){return function(){var a=t,r=a.lib,i=r.Base,s=r.WordArray,l=a.algo,f=l.SHA1,c=l.HMAC,u=l.PBKDF2=i.extend({cfg:i.extend({keySize:128/32,hasher:f,iterations:1}),init:function(g){this.cfg=this.cfg.extend(g)},compute:function(g,m){for(var y=this.cfg,h=c.create(y.hasher,g),d=s.create(),v=s.create([1]),D=d.words,x=v.words,b=y.keySize,p=y.iterations;D.length<b;){var C=h.update(m).finalize(v);h.reset();for(var A=C.words,R=A.length,_=C,O=1;O<p;O++){_=h.finalize(_),h.reset();for(var k=_.words,S=0;S<R;S++)A[S]^=k[S]}d.concat(C),x[0]++}return d.sigBytes=b*4,d}});a.PBKDF2=function(g,m,y){return u.create(y).compute(g,m)}}(),t.PBKDF2})}(Jn)),Jn.exports}var Xn={exports:{}},Er;function Dt(){return Er||(Er=1,function(e,o){(function(t,a,r){e.exports=a(ge(),jn(),Qn())})(ce,function(t){return function(){var a=t,r=a.lib,i=r.Base,s=r.WordArray,l=a.algo,f=l.MD5,c=l.EvpKDF=i.extend({cfg:i.extend({keySize:128/32,hasher:f,iterations:1}),init:function(u){this.cfg=this.cfg.extend(u)},compute:function(u,g){for(var m,y=this.cfg,h=y.hasher.create(),d=s.create(),v=d.words,D=y.keySize,x=y.iterations;v.length<D;){m&&h.update(m),m=h.update(u).finalize(g),h.reset();for(var b=1;b<x;b++)m=h.finalize(m),h.reset();d.concat(m)}return d.sigBytes=D*4,d}});a.EvpKDF=function(u,g,m){return c.create(m).compute(u,g)}}(),t.EvpKDF})}(Xn)),Xn.exports}var eo={exports:{}},Dr;function Fe(){return Dr||(Dr=1,function(e,o){(function(t,a,r){e.exports=a(ge(),Dt())})(ce,function(t){t.lib.Cipher||function(a){var r=t,i=r.lib,s=i.Base,l=i.WordArray,f=i.BufferedBlockAlgorithm,c=r.enc;c.Utf8;var u=c.Base64,g=r.algo,m=g.EvpKDF,y=i.Cipher=f.extend({cfg:s.extend(),createEncryptor:function(k,S){return this.create(this._ENC_XFORM_MODE,k,S)},createDecryptor:function(k,S){return this.create(this._DEC_XFORM_MODE,k,S)},init:function(k,S,T){this.cfg=this.cfg.extend(T),this._xformMode=k,this._key=S,this.reset()},reset:function(){f.reset.call(this),this._doReset()},process:function(k){return this._append(k),this._process()},finalize:function(k){k&&this._append(k);var S=this._doFinalize();return S},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function k(S){return typeof S=="string"?O:A}return function(S){return{encrypt:function(T,w,B){return k(w).encrypt(S,T,w,B)},decrypt:function(T,w,B){return k(w).decrypt(S,T,w,B)}}}}()});i.StreamCipher=y.extend({_doFinalize:function(){var k=this._process(!0);return k},blockSize:1});var h=r.mode={},d=i.BlockCipherMode=s.extend({createEncryptor:function(k,S){return this.Encryptor.create(k,S)},createDecryptor:function(k,S){return this.Decryptor.create(k,S)},init:function(k,S){this._cipher=k,this._iv=S}}),v=h.CBC=function(){var k=d.extend();k.Encryptor=k.extend({processBlock:function(T,w){var B=this._cipher,E=B.blockSize;S.call(this,T,w,E),B.encryptBlock(T,w),this._prevBlock=T.slice(w,w+E)}}),k.Decryptor=k.extend({processBlock:function(T,w){var B=this._cipher,E=B.blockSize,N=T.slice(w,w+E);B.decryptBlock(T,w),S.call(this,T,w,E),this._prevBlock=N}});function S(T,w,B){var E,N=this._iv;N?(E=N,this._iv=a):E=this._prevBlock;for(var z=0;z<B;z++)T[w+z]^=E[z]}return k}(),D=r.pad={},x=D.Pkcs7={pad:function(k,S){for(var T=S*4,w=T-k.sigBytes%T,B=w<<24|w<<16|w<<8|w,E=[],N=0;N<w;N+=4)E.push(B);var z=l.create(E,w);k.concat(z)},unpad:function(k){var S=k.words[k.sigBytes-1>>>2]&255;k.sigBytes-=S}};i.BlockCipher=y.extend({cfg:y.cfg.extend({mode:v,padding:x}),reset:function(){var k;y.reset.call(this);var S=this.cfg,T=S.iv,w=S.mode;this._xformMode==this._ENC_XFORM_MODE?k=w.createEncryptor:(k=w.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==k?this._mode.init(this,T&&T.words):(this._mode=k.call(w,this,T&&T.words),this._mode.__creator=k)},_doProcessBlock:function(k,S){this._mode.processBlock(k,S)},_doFinalize:function(){var k,S=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(S.pad(this._data,this.blockSize),k=this._process(!0)):(k=this._process(!0),S.unpad(k)),k},blockSize:128/32});var b=i.CipherParams=s.extend({init:function(k){this.mixIn(k)},toString:function(k){return(k||this.formatter).stringify(this)}}),p=r.format={},C=p.OpenSSL={stringify:function(k){var S,T=k.ciphertext,w=k.salt;return w?S=l.create([1398893684,1701076831]).concat(w).concat(T):S=T,S.toString(u)},parse:function(k){var S,T=u.parse(k),w=T.words;return w[0]==1398893684&&w[1]==1701076831&&(S=l.create(w.slice(2,4)),w.splice(0,4),T.sigBytes-=16),b.create({ciphertext:T,salt:S})}},A=i.SerializableCipher=s.extend({cfg:s.extend({format:C}),encrypt:function(k,S,T,w){w=this.cfg.extend(w);var B=k.createEncryptor(T,w),E=B.finalize(S),N=B.cfg;return b.create({ciphertext:E,key:T,iv:N.iv,algorithm:k,mode:N.mode,padding:N.padding,blockSize:k.blockSize,formatter:w.format})},decrypt:function(k,S,T,w){w=this.cfg.extend(w),S=this._parse(S,w.format);var B=k.createDecryptor(T,w).finalize(S.ciphertext);return B},_parse:function(k,S){return typeof k=="string"?S.parse(k,this):k}}),R=r.kdf={},_=R.OpenSSL={execute:function(k,S,T,w){w||(w=l.random(64/8));var B=m.create({keySize:S+T}).compute(k,w),E=l.create(B.words.slice(S),T*4);return B.sigBytes=S*4,b.create({key:B,iv:E,salt:w})}},O=i.PasswordBasedCipher=A.extend({cfg:A.cfg.extend({kdf:_}),encrypt:function(k,S,T,w){w=this.cfg.extend(w);var B=w.kdf.execute(T,k.keySize,k.ivSize);w.iv=B.iv;var E=A.encrypt.call(this,k,S,B.key,w);return E.mixIn(B),E},decrypt:function(k,S,T,w){w=this.cfg.extend(w),S=this._parse(S,w.format);var B=w.kdf.execute(T,k.keySize,k.ivSize,S.salt);w.iv=B.iv;var E=A.decrypt.call(this,k,S,B.key,w);return E}})}()})}(eo)),eo.exports}var to={exports:{}},Rr;function ys(){return Rr||(Rr=1,function(e,o){(function(t,a,r){e.exports=a(ge(),Fe())})(ce,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,f=l.blockSize;r.call(this,i,s,f,l),this._prevBlock=i.slice(s,s+f)}}),a.Decryptor=a.extend({processBlock:function(i,s){var l=this._cipher,f=l.blockSize,c=i.slice(s,s+f);r.call(this,i,s,f,l),this._prevBlock=c}});function r(i,s,l,f){var c,u=this._iv;u?(c=u.slice(0),this._iv=void 0):c=this._prevBlock,f.encryptBlock(c,0);for(var g=0;g<l;g++)i[s+g]^=c[g]}return a}(),t.mode.CFB})}(to)),to.exports}var no={exports:{}},Ir;function xs(){return Ir||(Ir=1,function(e,o){(function(t,a,r){e.exports=a(ge(),Fe())})(ce,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,f=l.blockSize,c=this._iv,u=this._counter;c&&(u=this._counter=c.slice(0),this._iv=void 0);var g=u.slice(0);l.encryptBlock(g,0),u[f-1]=u[f-1]+1|0;for(var m=0;m<f;m++)i[s+m]^=g[m]}});return a.Decryptor=r,a}(),t.mode.CTR})}(no)),no.exports}var oo={exports:{}},_r;function ps(){return _r||(_r=1,function(e,o){(function(t,a,r){e.exports=a(ge(),Fe())})(ce,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]),g=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]),m=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]),y=s.create([1352829926,1548603684,1836072691,2053994217,0]),h=d.RIPEMD160=l.extend({_doReset:function(){this._hash=s.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(T,D){for(var O=0;O<16;O++){var _=D+O,k=T[_];T[_]=(k<<8|k>>>24)&16711935|(k<<24|k>>>8)&4278255360}var S=this._hash.words,B=u.words,w=y.words,C=c.words,I=f.words,N=g.words,M=m.words,P,W,$,z,q,L,R,F,j,ee;L=P=S[0],R=W=S[1],F=$=S[2],j=z=S[3],ee=q=S[4];for(var G,O=0;O<80;O+=1)G=P+T[D+C[O]]|0,O<16?G+=v(W,$,z)+B[0]:O<32?G+=E(W,$,z)+B[1]:O<48?G+=p(W,$,z)+B[2]:O<64?G+=b(W,$,z)+B[3]:G+=x(W,$,z)+B[4],G=G|0,G=A(G,N[O]),G=G+q|0,P=q,q=z,z=A($,10),$=W,W=G,G=L+T[D+I[O]]|0,O<16?G+=x(R,F,j)+w[0]:O<32?G+=b(R,F,j)+w[1]:O<48?G+=p(R,F,j)+w[2]:O<64?G+=E(R,F,j)+w[3]:G+=v(R,F,j)+w[4],G=G|0,G=A(G,M[O]),G=G+ee|0,L=ee,ee=j,j=A(F,10),F=R,R=G;G=S[1]+$+j|0,S[1]=S[2]+z+ee|0,S[2]=S[3]+q+L|0,S[3]=S[4]+P+R|0,S[4]=S[0]+W+F|0,S[0]=G},_doFinalize:function(){var T=this._data,D=T.words,O=this._nDataBytes*8,_=T.sigBytes*8;D[_>>>5]|=128<<24-_%32,D[(_+64>>>9<<4)+14]=(O<<8|O>>>24)&16711935|(O<<24|O>>>8)&4278255360,T.sigBytes=(D.length+1)*4,this._process();for(var k=this._hash,S=k.words,B=0;B<5;B++){var w=S[B];S[B]=(w<<8|w>>>24)&16711935|(w<<24|w>>>8)&4278255360}return k},clone:function(){var T=l.clone.call(this);return T._hash=this._hash.clone(),T}});function v(T,D,O){return T^D^O}function E(T,D,O){return T&D|~T&O}function p(T,D,O){return(T|~D)^O}function b(T,D,O){return T&O|D&~O}function x(T,D,O){return T^(D|~O)}function A(T,D){return T<<D|T>>>32-D}r.RIPEMD160=l._createHelper(h),r.HmacRIPEMD160=l._createHmacHelper(h)}(),t.RIPEMD160})}(Kn)),Kn.exports}var Qn={exports:{}},Er;function Jn(){return Er||(Er=1,function(e,o){(function(t,a){e.exports=a(ge())})(ce,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 g=c.blockSize,m=g*4;f.sigBytes>m&&(f=c.finalize(f)),f.clamp();for(var u=this._oKey=f.clone(),y=this._iKey=f.clone(),h=u.words,v=y.words,E=0;E<g;E++)h[E]^=1549556828,v[E]^=909522486;u.sigBytes=y.sigBytes=m,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,g=f.finalize(c);f.reset();var m=f.finalize(this._oKey.clone().concat(g));return m}})})()})}(Qn)),Qn.exports}var Xn={exports:{}},Dr;function bs(){return Dr||(Dr=1,function(e,o){(function(t,a,r){e.exports=a(ge(),Wn(),Jn())})(ce,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(g){this.cfg=this.cfg.extend(g)},compute:function(g,m){for(var u=this.cfg,y=c.create(u.hasher,g),h=s.create(),v=s.create([1]),E=h.words,p=v.words,b=u.keySize,x=u.iterations;E.length<b;){var A=y.update(m).finalize(v);y.reset();for(var T=A.words,D=T.length,O=A,_=1;_<x;_++){O=y.finalize(O),y.reset();for(var k=O.words,S=0;S<D;S++)T[S]^=k[S]}h.concat(A),p[0]++}return h.sigBytes=b*4,h}});a.PBKDF2=function(g,m,u){return f.create(u).compute(g,m)}}(),t.PBKDF2})}(Xn)),Xn.exports}var eo={exports:{}},Rr;function Dt(){return Rr||(Rr=1,function(e,o){(function(t,a,r){e.exports=a(ge(),Wn(),Jn())})(ce,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,g){for(var m,u=this.cfg,y=u.hasher.create(),h=s.create(),v=h.words,E=u.keySize,p=u.iterations;v.length<E;){m&&y.update(m),m=y.update(f).finalize(g),y.reset();for(var b=1;b<p;b++)m=y.finalize(m),y.reset();h.concat(m)}return h.sigBytes=E*4,h}});a.EvpKDF=function(f,g,m){return c.create(m).compute(f,g)}}(),t.EvpKDF})}(eo)),eo.exports}var to={exports:{}},Ir;function Pe(){return Ir||(Ir=1,function(e,o){(function(t,a,r){e.exports=a(ge(),Dt())})(ce,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,g=r.algo,m=g.EvpKDF,u=i.Cipher=d.extend({cfg:s.extend(),createEncryptor:function(k,S){return this.create(this._ENC_XFORM_MODE,k,S)},createDecryptor:function(k,S){return this.create(this._DEC_XFORM_MODE,k,S)},init:function(k,S,B){this.cfg=this.cfg.extend(B),this._xformMode=k,this._key=S,this.reset()},reset:function(){d.reset.call(this),this._doReset()},process:function(k){return this._append(k),this._process()},finalize:function(k){k&&this._append(k);var S=this._doFinalize();return S},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function k(S){return typeof S=="string"?_:T}return function(S){return{encrypt:function(B,w,C){return k(w).encrypt(S,B,w,C)},decrypt:function(B,w,C){return k(w).decrypt(S,B,w,C)}}}}()});i.StreamCipher=u.extend({_doFinalize:function(){var k=this._process(!0);return k},blockSize:1});var y=r.mode={},h=i.BlockCipherMode=s.extend({createEncryptor:function(k,S){return this.Encryptor.create(k,S)},createDecryptor:function(k,S){return this.Decryptor.create(k,S)},init:function(k,S){this._cipher=k,this._iv=S}}),v=y.CBC=function(){var k=h.extend();k.Encryptor=k.extend({processBlock:function(B,w){var C=this._cipher,I=C.blockSize;S.call(this,B,w,I),C.encryptBlock(B,w),this._prevBlock=B.slice(w,w+I)}}),k.Decryptor=k.extend({processBlock:function(B,w){var C=this._cipher,I=C.blockSize,N=B.slice(w,w+I);C.decryptBlock(B,w),S.call(this,B,w,I),this._prevBlock=N}});function S(B,w,C){var I,N=this._iv;N?(I=N,this._iv=a):I=this._prevBlock;for(var M=0;M<C;M++)B[w+M]^=I[M]}return k}(),E=r.pad={},p=E.Pkcs7={pad:function(k,S){for(var B=S*4,w=B-k.sigBytes%B,C=w<<24|w<<16|w<<8|w,I=[],N=0;N<w;N+=4)I.push(C);var M=l.create(I,w);k.concat(M)},unpad:function(k){var S=k.words[k.sigBytes-1>>>2]&255;k.sigBytes-=S}};i.BlockCipher=u.extend({cfg:u.cfg.extend({mode:v,padding:p}),reset:function(){var k;u.reset.call(this);var S=this.cfg,B=S.iv,w=S.mode;this._xformMode==this._ENC_XFORM_MODE?k=w.createEncryptor:(k=w.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==k?this._mode.init(this,B&&B.words):(this._mode=k.call(w,this,B&&B.words),this._mode.__creator=k)},_doProcessBlock:function(k,S){this._mode.processBlock(k,S)},_doFinalize:function(){var k,S=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(S.pad(this._data,this.blockSize),k=this._process(!0)):(k=this._process(!0),S.unpad(k)),k},blockSize:128/32});var b=i.CipherParams=s.extend({init:function(k){this.mixIn(k)},toString:function(k){return(k||this.formatter).stringify(this)}}),x=r.format={},A=x.OpenSSL={stringify:function(k){var S,B=k.ciphertext,w=k.salt;return w?S=l.create([1398893684,1701076831]).concat(w).concat(B):S=B,S.toString(f)},parse:function(k){var S,B=f.parse(k),w=B.words;return w[0]==1398893684&&w[1]==1701076831&&(S=l.create(w.slice(2,4)),w.splice(0,4),B.sigBytes-=16),b.create({ciphertext:B,salt:S})}},T=i.SerializableCipher=s.extend({cfg:s.extend({format:A}),encrypt:function(k,S,B,w){w=this.cfg.extend(w);var C=k.createEncryptor(B,w),I=C.finalize(S),N=C.cfg;return b.create({ciphertext:I,key:B,iv:N.iv,algorithm:k,mode:N.mode,padding:N.padding,blockSize:k.blockSize,formatter:w.format})},decrypt:function(k,S,B,w){w=this.cfg.extend(w),S=this._parse(S,w.format);var C=k.createDecryptor(B,w).finalize(S.ciphertext);return C},_parse:function(k,S){return typeof k=="string"?S.parse(k,this):k}}),D=r.kdf={},O=D.OpenSSL={execute:function(k,S,B,w){w||(w=l.random(64/8));var C=m.create({keySize:S+B}).compute(k,w),I=l.create(C.words.slice(S),B*4);return C.sigBytes=S*4,b.create({key:C,iv:I,salt:w})}},_=i.PasswordBasedCipher=T.extend({cfg:T.cfg.extend({kdf:O}),encrypt:function(k,S,B,w){w=this.cfg.extend(w);var C=w.kdf.execute(B,k.keySize,k.ivSize);w.iv=C.iv;var I=T.encrypt.call(this,k,S,C.key,w);return I.mixIn(C),I},decrypt:function(k,S,B,w){w=this.cfg.extend(w),S=this._parse(S,w.format);var C=w.kdf.execute(B,k.keySize,k.ivSize,S.salt);w.iv=C.iv;var I=T.decrypt.call(this,k,S,C.key,w);return I}})}()})}(to)),to.exports}var no={exports:{}},_r;function vs(){return _r||(_r=1,function(e,o){(function(t,a,r){e.exports=a(ge(),Pe())})(ce,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 g=0;g<l;g++)i[s+g]^=c[g]}return a}(),t.mode.CFB})}(no)),no.exports}var oo={exports:{}},Or;function Ss(){return Or||(Or=1,function(e,o){(function(t,a,r){e.exports=a(ge(),Pe())})(ce,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 g=f.slice(0);l.encryptBlock(g,0),f[d-1]=f[d-1]+1|0;for(var m=0;m<d;m++)i[s+m]^=g[m]}});return a.Decryptor=r,a}(),t.mode.CTR})}(oo)),oo.exports}var ao={exports:{}},Lr;function Cs(){return Lr||(Lr=1,function(e,o){(function(t,a,r){e.exports=a(ge(),Pe())})(ce,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 f=l>>16&255,c=l>>8&255,u=l&255;f===255?(f=0,c===255?(c=0,u===255?u=0:++u):++c):++f,l=0,l+=f<<16,l+=c<<8,l+=u}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,f){var c=this._cipher,u=c.blockSize,g=this._iv,m=this._counter;g&&(m=this._counter=g.slice(0),this._iv=void 0),i(m);var y=m.slice(0);c.encryptBlock(y,0);for(var h=0;h<u;h++)l[f+h]^=y[h]}});return a.Decryptor=s,a}(),t.mode.CTRGladman})}(oo)),oo.exports}var ao={exports:{}},Or;function bs(){return Or||(Or=1,function(e,o){(function(t,a,r){e.exports=a(ge(),Fe())})(ce,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,f=l.blockSize,c=this._iv,u=this._keystream;c&&(u=this._keystream=c.slice(0),this._iv=void 0),l.encryptBlock(u,0);for(var g=0;g<f;g++)i[s+g]^=u[g]}});return a.Decryptor=r,a}(),t.mode.OFB})}(ao)),ao.exports}var ro={exports:{}},Lr;function vs(){return Lr||(Lr=1,function(e,o){(function(t,a,r){e.exports=a(ge(),Fe())})(ce,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})}(ro)),ro.exports}var io={exports:{}},Nr;function Ss(){return Nr||(Nr=1,function(e,o){(function(t,a,r){e.exports=a(ge(),Fe())})(ce,function(t){return t.pad.AnsiX923={pad:function(a,r){var i=a.sigBytes,s=r*4,l=s-i%s,f=i+l-1;a.clamp(),a.words[f>>>2]|=l<<24-f%4*8,a.sigBytes+=l},unpad:function(a){var r=a.words[a.sigBytes-1>>>2]&255;a.sigBytes-=r}},t.pad.Ansix923})}(io)),io.exports}var lo={exports:{}},Mr;function Cs(){return Mr||(Mr=1,function(e,o){(function(t,a,r){e.exports=a(ge(),Fe())})(ce,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})}(lo)),lo.exports}var so={exports:{}},zr;function ws(){return zr||(zr=1,function(e,o){(function(t,a,r){e.exports=a(ge(),Fe())})(ce,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})}(so)),so.exports}var co={exports:{}},Fr;function As(){return Fr||(Fr=1,function(e,o){(function(t,a,r){e.exports=a(ge(),Fe())})(ce,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})}(co)),co.exports}var fo={exports:{}},Pr;function ks(){return Pr||(Pr=1,function(e,o){(function(t,a,r){e.exports=a(ge(),Fe())})(ce,function(t){return t.pad.NoPadding={pad:function(){},unpad:function(){}},t.pad.NoPadding})}(fo)),fo.exports}var uo={exports:{}},qr;function Ts(){return qr||(qr=1,function(e,o){(function(t,a,r){e.exports=a(ge(),Fe())})(ce,function(t){return function(a){var r=t,i=r.lib,s=i.CipherParams,l=r.enc,f=l.Hex,c=r.format;c.Hex={stringify:function(u){return u.ciphertext.toString(f)},parse:function(u){var g=f.parse(u);return s.create({ciphertext:g})}}}(),t.format.Hex})}(uo)),uo.exports}var ho={exports:{}},Hr;function Bs(){return Hr||(Hr=1,function(e,o){(function(t,a,r){e.exports=a(ge(),zt(),Ft(),Dt(),Fe())})(ce,function(t){return function(){var a=t,r=a.lib,i=r.BlockCipher,s=a.algo,l=[],f=[],c=[],u=[],g=[],m=[],y=[],h=[],d=[],v=[];(function(){for(var b=[],p=0;p<256;p++)p<128?b[p]=p<<1:b[p]=p<<1^283;for(var C=0,A=0,p=0;p<256;p++){var R=A^A<<1^A<<2^A<<3^A<<4;R=R>>>8^R&255^99,l[C]=R,f[R]=C;var _=b[C],O=b[_],k=b[O],S=b[R]*257^R*16843008;c[C]=S<<24|S>>>8,u[C]=S<<16|S>>>16,g[C]=S<<8|S>>>24,m[C]=S;var S=k*16843009^O*65537^_*257^C*16843008;y[R]=S<<24|S>>>8,h[R]=S<<16|S>>>16,d[R]=S<<8|S>>>24,v[R]=S,C?(C=_^b[b[b[k^_]]],A^=b[b[A]]):C=A=1}})();var D=[0,1,2,4,8,16,32,64,128,27,54],x=s.AES=i.extend({_doReset:function(){var b;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var p=this._keyPriorReset=this._key,C=p.words,A=p.sigBytes/4,R=this._nRounds=A+6,_=(R+1)*4,O=this._keySchedule=[],k=0;k<_;k++)k<A?O[k]=C[k]:(b=O[k-1],k%A?A>6&&k%A==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^=D[k/A|0]<<24),O[k]=O[k-A]^b);for(var S=this._invKeySchedule=[],T=0;T<_;T++){var k=_-T;if(T%4)var b=O[k];else var b=O[k-4];T<4||k<=4?S[T]=b:S[T]=y[l[b>>>24]]^h[l[b>>>16&255]]^d[l[b>>>8&255]]^v[l[b&255]]}}},encryptBlock:function(b,p){this._doCryptBlock(b,p,this._keySchedule,c,u,g,m,l)},decryptBlock:function(b,p){var C=b[p+1];b[p+1]=b[p+3],b[p+3]=C,this._doCryptBlock(b,p,this._invKeySchedule,y,h,d,v,f);var C=b[p+1];b[p+1]=b[p+3],b[p+3]=C},_doCryptBlock:function(b,p,C,A,R,_,O,k){for(var S=this._nRounds,T=b[p]^C[0],w=b[p+1]^C[1],B=b[p+2]^C[2],E=b[p+3]^C[3],N=4,z=1;z<S;z++){var P=A[T>>>24]^R[w>>>16&255]^_[B>>>8&255]^O[E&255]^C[N++],j=A[w>>>24]^R[B>>>16&255]^_[E>>>8&255]^O[T&255]^C[N++],$=A[B>>>24]^R[E>>>16&255]^_[T>>>8&255]^O[w&255]^C[N++],F=A[E>>>24]^R[T>>>16&255]^_[w>>>8&255]^O[B&255]^C[N++];T=P,w=j,B=$,E=F}var P=(k[T>>>24]<<24|k[w>>>16&255]<<16|k[B>>>8&255]<<8|k[E&255])^C[N++],j=(k[w>>>24]<<24|k[B>>>16&255]<<16|k[E>>>8&255]<<8|k[T&255])^C[N++],$=(k[B>>>24]<<24|k[E>>>16&255]<<16|k[T>>>8&255]<<8|k[w&255])^C[N++],F=(k[E>>>24]<<24|k[T>>>16&255]<<16|k[w>>>8&255]<<8|k[B&255])^C[N++];b[p]=P,b[p+1]=j,b[p+2]=$,b[p+3]=F},keySize:256/32});a.AES=i._createHelper(x)}(),t.AES})}(ho)),ho.exports}var go={exports:{}},Vr;function Es(){return Vr||(Vr=1,function(e,o){(function(t,a,r){e.exports=a(ge(),zt(),Ft(),Dt(),Fe())})(ce,function(t){return function(){var a=t,r=a.lib,i=r.WordArray,s=r.BlockCipher,l=a.algo,f=[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],u=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],g=[{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}],m=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],y=l.DES=s.extend({_doReset:function(){for(var D=this._key,x=D.words,b=[],p=0;p<56;p++){var C=f[p]-1;b[p]=x[C>>>5]>>>31-C%32&1}for(var A=this._subKeys=[],R=0;R<16;R++){for(var _=A[R]=[],O=u[R],p=0;p<24;p++)_[p/6|0]|=b[(c[p]-1+O)%28]<<31-p%6,_[4+(p/6|0)]|=b[28+(c[p+24]-1+O)%28]<<31-p%6;_[0]=_[0]<<1|_[0]>>>31;for(var p=1;p<7;p++)_[p]=_[p]>>>(p-1)*4+3;_[7]=_[7]<<5|_[7]>>>27}for(var k=this._invSubKeys=[],p=0;p<16;p++)k[p]=A[15-p]},encryptBlock:function(D,x){this._doCryptBlock(D,x,this._subKeys)},decryptBlock:function(D,x){this._doCryptBlock(D,x,this._invSubKeys)},_doCryptBlock:function(D,x,b){this._lBlock=D[x],this._rBlock=D[x+1],h.call(this,4,252645135),h.call(this,16,65535),d.call(this,2,858993459),d.call(this,8,16711935),h.call(this,1,1431655765);for(var p=0;p<16;p++){for(var C=b[p],A=this._lBlock,R=this._rBlock,_=0,O=0;O<8;O++)_|=g[O][((R^C[O])&m[O])>>>0];this._lBlock=R,this._rBlock=A^_}var k=this._lBlock;this._lBlock=this._rBlock,this._rBlock=k,h.call(this,1,1431655765),d.call(this,8,16711935),d.call(this,2,858993459),h.call(this,16,65535),h.call(this,4,252645135),D[x]=this._lBlock,D[x+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function h(D,x){var b=(this._lBlock>>>D^this._rBlock)&x;this._rBlock^=b,this._lBlock^=b<<D}function d(D,x){var b=(this._rBlock>>>D^this._lBlock)&x;this._lBlock^=b,this._rBlock^=b<<D}a.DES=s._createHelper(y);var v=l.TripleDES=s.extend({_doReset:function(){var D=this._key,x=D.words;if(x.length!==2&&x.length!==4&&x.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var b=x.slice(0,2),p=x.length<4?x.slice(0,2):x.slice(2,4),C=x.length<6?x.slice(0,2):x.slice(4,6);this._des1=y.createEncryptor(i.create(b)),this._des2=y.createEncryptor(i.create(p)),this._des3=y.createEncryptor(i.create(C))},encryptBlock:function(D,x){this._des1.encryptBlock(D,x),this._des2.decryptBlock(D,x),this._des3.encryptBlock(D,x)},decryptBlock:function(D,x){this._des3.decryptBlock(D,x),this._des2.encryptBlock(D,x),this._des1.decryptBlock(D,x)},keySize:192/32,ivSize:64/32,blockSize:64/32});a.TripleDES=s._createHelper(v)}(),t.TripleDES})}(go)),go.exports}var mo={exports:{}},jr;function Ds(){return jr||(jr=1,function(e,o){(function(t,a,r){e.exports=a(ge(),zt(),Ft(),Dt(),Fe())})(ce,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 u=this._key,g=u.words,m=u.sigBytes,y=this._S=[],h=0;h<256;h++)y[h]=h;for(var h=0,d=0;h<256;h++){var v=h%m,D=g[v>>>2]>>>24-v%4*8&255;d=(d+y[h]+D)%256;var x=y[h];y[h]=y[d],y[d]=x}this._i=this._j=0},_doProcessBlock:function(u,g){u[g]^=f.call(this)},keySize:256/32,ivSize:0});function f(){for(var u=this._S,g=this._i,m=this._j,y=0,h=0;h<4;h++){g=(g+1)%256,m=(m+u[g])%256;var d=u[g];u[g]=u[m],u[m]=d,y|=u[(u[g]+u[m])%256]<<24-h*8}return this._i=g,this._j=m,y}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 u=this.cfg.drop;u>0;u--)f.call(this)}});a.RC4Drop=i._createHelper(c)}(),t.RC4})}(mo)),mo.exports}var yo={exports:{}},Ur;function Rs(){return Ur||(Ur=1,function(e,o){(function(t,a,r){e.exports=a(ge(),zt(),Ft(),Dt(),Fe())})(ce,function(t){return function(){var a=t,r=a.lib,i=r.StreamCipher,s=a.algo,l=[],f=[],c=[],u=s.Rabbit=i.extend({_doReset:function(){for(var m=this._key.words,y=this.cfg.iv,h=0;h<4;h++)m[h]=(m[h]<<8|m[h]>>>24)&16711935|(m[h]<<24|m[h]>>>8)&4278255360;var d=this._X=[m[0],m[3]<<16|m[2]>>>16,m[1],m[0]<<16|m[3]>>>16,m[2],m[1]<<16|m[0]>>>16,m[3],m[2]<<16|m[1]>>>16],v=this._C=[m[2]<<16|m[2]>>>16,m[0]&4294901760|m[1]&65535,m[3]<<16|m[3]>>>16,m[1]&4294901760|m[2]&65535,m[0]<<16|m[0]>>>16,m[2]&4294901760|m[3]&65535,m[1]<<16|m[1]>>>16,m[3]&4294901760|m[0]&65535];this._b=0;for(var h=0;h<4;h++)g.call(this);for(var h=0;h<8;h++)v[h]^=d[h+4&7];if(y){var D=y.words,x=D[0],b=D[1],p=(x<<8|x>>>24)&16711935|(x<<24|x>>>8)&4278255360,C=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360,A=p>>>16|C&4294901760,R=C<<16|p&65535;v[0]^=p,v[1]^=A,v[2]^=C,v[3]^=R,v[4]^=p,v[5]^=A,v[6]^=C,v[7]^=R;for(var h=0;h<4;h++)g.call(this)}},_doProcessBlock:function(m,y){var h=this._X;g.call(this),l[0]=h[0]^h[5]>>>16^h[3]<<16,l[1]=h[2]^h[7]>>>16^h[5]<<16,l[2]=h[4]^h[1]>>>16^h[7]<<16,l[3]=h[6]^h[3]>>>16^h[1]<<16;for(var d=0;d<4;d++)l[d]=(l[d]<<8|l[d]>>>24)&16711935|(l[d]<<24|l[d]>>>8)&4278255360,m[y+d]^=l[d]},blockSize:128/32,ivSize:64/32});function g(){for(var m=this._X,y=this._C,h=0;h<8;h++)f[h]=y[h];y[0]=y[0]+1295307597+this._b|0,y[1]=y[1]+3545052371+(y[0]>>>0<f[0]>>>0?1:0)|0,y[2]=y[2]+886263092+(y[1]>>>0<f[1]>>>0?1:0)|0,y[3]=y[3]+1295307597+(y[2]>>>0<f[2]>>>0?1:0)|0,y[4]=y[4]+3545052371+(y[3]>>>0<f[3]>>>0?1:0)|0,y[5]=y[5]+886263092+(y[4]>>>0<f[4]>>>0?1:0)|0,y[6]=y[6]+1295307597+(y[5]>>>0<f[5]>>>0?1:0)|0,y[7]=y[7]+3545052371+(y[6]>>>0<f[6]>>>0?1:0)|0,this._b=y[7]>>>0<f[7]>>>0?1:0;for(var h=0;h<8;h++){var d=m[h]+y[h],v=d&65535,D=d>>>16,x=((v*v>>>17)+v*D>>>15)+D*D,b=((d&4294901760)*d|0)+((d&65535)*d|0);c[h]=x^b}m[0]=c[0]+(c[7]<<16|c[7]>>>16)+(c[6]<<16|c[6]>>>16)|0,m[1]=c[1]+(c[0]<<8|c[0]>>>24)+c[7]|0,m[2]=c[2]+(c[1]<<16|c[1]>>>16)+(c[0]<<16|c[0]>>>16)|0,m[3]=c[3]+(c[2]<<8|c[2]>>>24)+c[1]|0,m[4]=c[4]+(c[3]<<16|c[3]>>>16)+(c[2]<<16|c[2]>>>16)|0,m[5]=c[5]+(c[4]<<8|c[4]>>>24)+c[3]|0,m[6]=c[6]+(c[5]<<16|c[5]>>>16)+(c[4]<<16|c[4]>>>16)|0,m[7]=c[7]+(c[6]<<8|c[6]>>>24)+c[5]|0}a.Rabbit=i._createHelper(u)}(),t.Rabbit})}(yo)),yo.exports}var xo={exports:{}},Gr;function Is(){return Gr||(Gr=1,function(e,o){(function(t,a,r){e.exports=a(ge(),zt(),Ft(),Dt(),Fe())})(ce,function(t){return function(){var a=t,r=a.lib,i=r.StreamCipher,s=a.algo,l=[],f=[],c=[],u=s.RabbitLegacy=i.extend({_doReset:function(){var m=this._key.words,y=this.cfg.iv,h=this._X=[m[0],m[3]<<16|m[2]>>>16,m[1],m[0]<<16|m[3]>>>16,m[2],m[1]<<16|m[0]>>>16,m[3],m[2]<<16|m[1]>>>16],d=this._C=[m[2]<<16|m[2]>>>16,m[0]&4294901760|m[1]&65535,m[3]<<16|m[3]>>>16,m[1]&4294901760|m[2]&65535,m[0]<<16|m[0]>>>16,m[2]&4294901760|m[3]&65535,m[1]<<16|m[1]>>>16,m[3]&4294901760|m[0]&65535];this._b=0;for(var v=0;v<4;v++)g.call(this);for(var v=0;v<8;v++)d[v]^=h[v+4&7];if(y){var D=y.words,x=D[0],b=D[1],p=(x<<8|x>>>24)&16711935|(x<<24|x>>>8)&4278255360,C=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360,A=p>>>16|C&4294901760,R=C<<16|p&65535;d[0]^=p,d[1]^=A,d[2]^=C,d[3]^=R,d[4]^=p,d[5]^=A,d[6]^=C,d[7]^=R;for(var v=0;v<4;v++)g.call(this)}},_doProcessBlock:function(m,y){var h=this._X;g.call(this),l[0]=h[0]^h[5]>>>16^h[3]<<16,l[1]=h[2]^h[7]>>>16^h[5]<<16,l[2]=h[4]^h[1]>>>16^h[7]<<16,l[3]=h[6]^h[3]>>>16^h[1]<<16;for(var d=0;d<4;d++)l[d]=(l[d]<<8|l[d]>>>24)&16711935|(l[d]<<24|l[d]>>>8)&4278255360,m[y+d]^=l[d]},blockSize:128/32,ivSize:64/32});function g(){for(var m=this._X,y=this._C,h=0;h<8;h++)f[h]=y[h];y[0]=y[0]+1295307597+this._b|0,y[1]=y[1]+3545052371+(y[0]>>>0<f[0]>>>0?1:0)|0,y[2]=y[2]+886263092+(y[1]>>>0<f[1]>>>0?1:0)|0,y[3]=y[3]+1295307597+(y[2]>>>0<f[2]>>>0?1:0)|0,y[4]=y[4]+3545052371+(y[3]>>>0<f[3]>>>0?1:0)|0,y[5]=y[5]+886263092+(y[4]>>>0<f[4]>>>0?1:0)|0,y[6]=y[6]+1295307597+(y[5]>>>0<f[5]>>>0?1:0)|0,y[7]=y[7]+3545052371+(y[6]>>>0<f[6]>>>0?1:0)|0,this._b=y[7]>>>0<f[7]>>>0?1:0;for(var h=0;h<8;h++){var d=m[h]+y[h],v=d&65535,D=d>>>16,x=((v*v>>>17)+v*D>>>15)+D*D,b=((d&4294901760)*d|0)+((d&65535)*d|0);c[h]=x^b}m[0]=c[0]+(c[7]<<16|c[7]>>>16)+(c[6]<<16|c[6]>>>16)|0,m[1]=c[1]+(c[0]<<8|c[0]>>>24)+c[7]|0,m[2]=c[2]+(c[1]<<16|c[1]>>>16)+(c[0]<<16|c[0]>>>16)|0,m[3]=c[3]+(c[2]<<8|c[2]>>>24)+c[1]|0,m[4]=c[4]+(c[3]<<16|c[3]>>>16)+(c[2]<<16|c[2]>>>16)|0,m[5]=c[5]+(c[4]<<8|c[4]>>>24)+c[3]|0,m[6]=c[6]+(c[5]<<16|c[5]>>>16)+(c[4]<<16|c[4]>>>16)|0,m[7]=c[7]+(c[6]<<8|c[6]>>>24)+c[5]|0}a.RabbitLegacy=i._createHelper(u)}(),t.RabbitLegacy})}(xo)),xo.exports}(function(e,o){(function(t,a,r){e.exports=a(ge(),rn(),ss(),cs(),zt(),fs(),Ft(),jn(),br(),ds(),Cr(),us(),hs(),gs(),Qn(),ms(),Dt(),Fe(),ys(),xs(),ps(),bs(),vs(),Ss(),Cs(),ws(),As(),ks(),Ts(),Bs(),Es(),Ds(),Rs(),Is())})(ce,function(t){return t})})(cr);var _s=cr.exports;const Ze=sr(_s);var Os="0123456789abcdefghijklmnopqrstuvwxyz";function yt(e){return Os.charAt(e)}function Ls(e,o){return e&o}function ln(e,o){return e|o}function Wr(e,o){return e^o}function $r(e,o){return e&~o}function Ns(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+/",Zr="=";function sn(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+=Zr;return a}function Yr(e){var o="",t,a=0,r=0;for(t=0;t<e.length&&e.charAt(t)!=Zr;++t){var i=Pt.indexOf(e.charAt(t));i<0||(a==0?(o+=yt(i>>2),r=i&3,a=1):a==1?(o+=yt(r<<2|i>>4),r=i&15,a=2):a==2?(o+=yt(r),o+=yt(i>>2),r=i&3,a=3):(o+=yt(r<<2|i>>4),o+=yt(i&15),a=0))}return a==1&&(o+=yt(r<<2)),o}var qt,zs={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,po={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=po.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 po.decode(e)}},Ht=1e13,Jt=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}(),Kr="…",Fs=/^(\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)?)?$/,Ps=/^(\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)+Kr),e}var bo=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?Fs:Ps).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 f=new Jt(a),c=o+1;c<t;++c)f.mulAdd(256,this.get(c));return l+f.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="",f=o+1;f<t;++f){for(var c=this.get(f),u=f==t-1?r:0,g=7;g>=u;--g)l+=c>>g&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+=Kr),i},e.prototype.parseOID=function(o,t,a){for(var r="",i=new Jt,s=0,l=o;l<t;++l){var f=this.get(l);if(i.mulAdd(128,f&127),s+=7,!(f&128)){if(r==="")if(i=i.simplify(),i instanceof Jt)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 Jt,s=0}}return s>0&&(r+=".incomplete"),r},e}(),qs=function(){function e(o,t,a,r,i){if(!(r instanceof Qr))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 bo?t=o:t=new bo(o,0);var a=new bo(t),r=new Qr(t),i=e.decodeLength(t),s=t.pos,l=s-a.pos,f=null,c=function(){var g=[];if(i!==null){for(var m=s+i;t.pos<m;)g[g.length]=e.decode(t);if(t.pos!=m)throw new Error("Content size is not correct for container starting at offset "+s)}else try{for(;;){var y=e.decode(t);if(y.tag.isEOC())break;g[g.length]=y}i=s-t.pos}catch(h){throw new Error("Exception while decoding undefined length content: "+h)}return g};if(r.tagConstructed)f=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.");f=c();for(var u=0;u<f.length;++u)if(f[u].tag.isEOC())throw new Error("EOC is not supposed to be actual content.")}catch{f=null}if(f===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,f)},e}(),Qr=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 Jt;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,Hs=0xdeadbeefcafe,Jr=(Hs&16777215)==15715070,je=[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],Vs=(1<<26)/je[je.length-1],le=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,f=this.DB-l*this.DB%t;if(l-- >0)for(f<this.DB&&(r=this[l]>>f)>0&&(i=!0,s=yt(r));l>=0;)f<t?(r=(this[l]&(1<<f)-1)<<t-f,r|=this[--l]>>(f+=this.DB-t)):(r=this[l]>>(f-=t)&a,f<=0&&(f+=this.DB,--l)),r>0&&(i=!0),i&&(s+=yt(r));return i?s:"0"},e.prototype.negate=function(){var o=he();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)+fn(this[this.t-1]^this.s&this.DM)},e.prototype.mod=function(o){var t=he();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 Xr(t):a=new ei(t),this.exp(o,a)},e.prototype.clone=function(){var o=he();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=he();return this.bitwiseTo(o,Ls,t),t},e.prototype.or=function(o){var t=he();return this.bitwiseTo(o,ln,t),t},e.prototype.xor=function(o){var t=he();return this.bitwiseTo(o,Wr,t),t},e.prototype.andNot=function(o){var t=he();return this.bitwiseTo(o,$r,t),t},e.prototype.not=function(){for(var o=he(),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=he();return o<0?this.rShiftTo(-o,t):this.lShiftTo(o,t),t},e.prototype.shiftRight=function(o){var t=he();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+Ns(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,ln)},e.prototype.clearBit=function(o){return this.changeBit(o,$r)},e.prototype.flipBit=function(o){return this.changeBit(o,Wr)},e.prototype.add=function(o){var t=he();return this.addTo(o,t),t},e.prototype.subtract=function(o){var t=he();return this.subTo(o,t),t},e.prototype.multiply=function(o){var t=he();return this.multiplyTo(o,t),t},e.prototype.divide=function(o){var t=he();return this.divRemTo(o,t,null),t},e.prototype.remainder=function(o){var t=he();return this.divRemTo(o,null,t),t},e.prototype.divideAndRemainder=function(o){var t=he(),a=he();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 Xr(t):t.isEven()?s=new Us(t):s=new ei(t);var l=[],f=3,c=r-1,u=(1<<r)-1;if(l[1]=s.convert(this),r>1){var g=he();for(s.sqrTo(l[1],g);f<=u;)l[f]=he(),s.mulTo(g,l[f-2],l[f]),f+=2}var m=o.t-1,y,h=!0,d=he(),v;for(a=fn(o[m])-1;m>=0;){for(a>=c?y=o[m]>>a-c&u:(y=(o[m]&(1<<a+1)-1)<<c-a,m>0&&(y|=o[m-1]>>this.DB+a-c)),f=r;!(y&1);)y>>=1,--f;if((a-=f)<0&&(a+=this.DB,--m),h)l[y].copyTo(i),h=!1;else{for(;f>1;)s.sqrTo(i,d),s.sqrTo(d,i),f-=2;f>0?s.sqrTo(i,d):(v=i,i=d,d=v),s.mulTo(d,l[y],i)}for(;m>=0&&!(o[m]&1<<a);)s.sqrTo(i,d),v=i,i=d,d=v,--a<0&&(a=this.DB-1,--m)}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),f=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()||!f.isEven())&&(l.addTo(this,l),f.subTo(o,f)),l.rShiftTo(1,l)):f.isEven()||f.subTo(o,f),f.rShiftTo(1,f);a.compareTo(r)>=0?(a.subTo(r,a),t&&i.subTo(l,i),s.subTo(f,s)):(r.subTo(a,r),t&&l.subTo(i,l),f.subTo(s,f))}if(r.compareTo(e.ONE)!=0)return e.ZERO;if(f.compareTo(o)>=0)return f.subtract(o);if(f.signum()<0)f.addTo(o,f);else return f;return f.signum()<0?f.add(o):f},e.prototype.pow=function(o){return this.exp(o,new js)},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]<=je[je.length-1]){for(t=0;t<je.length;++t)if(a[0]==je[t])return!0;return!1}if(a.isEven())return!1;for(t=1;t<je.length;){for(var r=je[t],i=t+1;i<je.length&&r<Vs;)r*=je[i++];for(r=a.modInt(r);t<i;)if(r%je[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:ni(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,f=this.t-1;f>=0;--f)t[f+s+1]=this[f]>>r|l,l=(this[f]&i)<<a;for(var f=s-1;f>=0;--f)t[f]=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=he());var s=he(),l=this.s,f=o.s,c=this.DB-fn(r[r.t-1]);c>0?(r.lShiftTo(c,s),i.lShiftTo(c,a)):(r.copyTo(s),i.copyTo(a));var u=s.t,g=s[u-1];if(g!=0){var m=g*(1<<this.F1)+(u>1?s[u-2]>>this.F2:0),y=this.FV/m,h=(1<<this.F1)/m,d=1<<this.F2,v=a.t,D=v-u,x=t??he();for(s.dlShiftTo(D,x),a.compareTo(x)>=0&&(a[a.t++]=1,a.subTo(x,a)),e.ONE.dlShiftTo(u,x),x.subTo(s,s);s.t<u;)s[s.t++]=0;for(;--D>=0;){var b=a[--v]==g?this.DM:Math.floor(a[v]*y+(a[v-1]+d)*h);if((a[v]+=s.am(0,b,a,D,0,u))<b)for(s.dlShiftTo(D,x),a.subTo(x,a);a[v]<--b;)a.subTo(x,a)}t!=null&&(a.drShiftTo(u,t),l!=f&&e.ZERO.subTo(t,t)),a.t=u,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=he(),r=he(),i=t.convert(this),s=fn(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=he(),s=he(),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,f=0;f<o.length;++f){var c=ni(o,f);if(c<0){o.charAt(f)=="-"&&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),ln,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>je.length&&(o=je.length);for(var i=he(),s=0;s<o;++s){i.fromInt(je[Math.floor(Math.random()*je.length)]);var l=i.modPow(r,this);if(l.compareTo(e.ONE)!=0&&l.compareTo(t)!=0){for(var f=1;f++<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=he();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 f=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(f,0):(l>0&&r.lShiftTo(l,r),setTimeout(function(){t(r)},0))};setTimeout(f,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),ln,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=[],f=o&7;l.length=(o>>3)+1,t.nextBytes(l),f>0?l[0]&=(1<<f)-1:l[0]=0,this.fromString(l,256)}},e}(),js=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}(),Xr=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}(),ei=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=he();return o.abs().dlShiftTo(this.m.t,t),t.divRemTo(this.m,null,t),o.s<0&&t.compareTo(le.ZERO)>0&&this.m.subTo(t,t),t},e.prototype.revert=function(o){var t=he();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}(),Us=function(){function e(o){this.m=o,this.r2=he(),this.q3=he(),le.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=he();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 he(){return new le(null)}function Ee(e,o){return new le(e,o)}var ti=typeof navigator<"u";ti&&Jr&&navigator.appName=="Microsoft Internet Explorer"?(le.prototype.am=function(o,t,a,r,i,s){for(var l=t&32767,f=t>>15;--s>=0;){var c=this[o]&32767,u=this[o++]>>15,g=f*c+u*l;c=l*c+((g&32767)<<15)+a[r]+(i&1073741823),i=(c>>>30)+(g>>>15)+f*u+(i>>>30),a[r++]=c&1073741823}return i},vt=30):ti&&Jr&&navigator.appName!="Netscape"?(le.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):(le.prototype.am=function(o,t,a,r,i,s){for(var l=t&16383,f=t>>14;--s>=0;){var c=this[o]&16383,u=this[o++]>>14,g=f*c+u*l;c=l*c+((g&16383)<<14)+a[r]+i,i=(c>>28)+(g>>14)+f*u,a[r++]=c&268435455}return i},vt=28),le.prototype.DB=vt,le.prototype.DM=(1<<vt)-1,le.prototype.DV=1<<vt;var vo=52;le.prototype.FV=Math.pow(2,vo),le.prototype.F1=vo-vt,le.prototype.F2=2*vt-vo;var cn=[],jt,et;for(jt="0".charCodeAt(0),et=0;et<=9;++et)cn[jt++]=et;for(jt="a".charCodeAt(0),et=10;et<36;++et)cn[jt++]=et;for(jt="A".charCodeAt(0),et=10;et<36;++et)cn[jt++]=et;function ni(e,o){var t=cn[e.charCodeAt(o)];return t??-1}function St(e){var o=he();return o.fromInt(e),o}function fn(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}le.ZERO=St(0),le.ONE=St(1);var Gs=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 Ws(){return new Gs}var oi=256,dn,Ct=null,st;if(Ct==null){Ct=[],st=0;var un=void 0;if(typeof window<"u"&&window.crypto&&window.crypto.getRandomValues){var So=new Uint32Array(256);for(window.crypto.getRandomValues(So),un=0;un<So.length;++un)Ct[st++]=So[un]&255}var hn=0,gn=function(e){if(hn=hn||0,hn>=256||st>=oi){window.removeEventListener?window.removeEventListener("mousemove",gn,!1):window.detachEvent&&window.detachEvent("onmousemove",gn);return}try{var o=e.x+e.y;Ct[st++]=o&255,hn+=1}catch{}};typeof window<"u"&&(window.addEventListener?window.addEventListener("mousemove",gn,!1):window.attachEvent&&window.attachEvent("onmousemove",gn))}function $s(){if(dn==null){for(dn=Ws();st<oi;){var e=Math.floor(65536*Math.random());Ct[st++]=e&255}for(dn.init(Ct),st=0;st<Ct.length;++st)Ct[st]=0;st=0}return dn.next()}var Co=function(){function e(){}return e.prototype.nextBytes=function(o){for(var t=0;t<o.length;++t)o[t]=$s()},e}();function Zs(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 Ee(i,16)}function Ys(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 Co,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 le(t)}var Ks=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=Ee(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=Ys(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=Ee(o,16),this.e=parseInt(t,16),this.d=Ee(a,16)):console.error("Invalid RSA private key")},e.prototype.setPrivateEx=function(o,t,a,r,i,s,l,f){o!=null&&t!=null&&o.length>0&&t.length>0?(this.n=Ee(o,16),this.e=parseInt(t,16),this.d=Ee(a,16),this.p=Ee(r,16),this.q=Ee(i,16),this.dmp1=Ee(s,16),this.dmq1=Ee(l,16),this.coeff=Ee(f,16)):console.error("Invalid RSA private key")},e.prototype.generate=function(o,t){var a=new Co,r=o>>1;this.e=parseInt(t,16);for(var i=new le(t,16);;){for(;this.p=new le(o-r,1,a),!(this.p.subtract(le.ONE).gcd(i).compareTo(le.ONE)==0&&this.p.isProbablePrime(10)););for(;this.q=new le(r,1,a),!(this.q.subtract(le.ONE).gcd(i).compareTo(le.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(le.ONE),f=this.q.subtract(le.ONE),c=l.multiply(f);if(c.gcd(i).compareTo(le.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(f),this.coeff=this.q.modInverse(this.p);break}}},e.prototype.decrypt=function(o){var t=Ee(o,16),a=this.doPrivate(t);return a==null?null:Qs(a,this.n.bitLength()+7>>3)},e.prototype.generateAsync=function(o,t,a){var r=new Co,i=o>>1;this.e=parseInt(t,16);var s=new le(t,16),l=this,f=function(){var c=function(){if(l.p.compareTo(l.q)<=0){var m=l.p;l.p=l.q,l.q=m}var y=l.p.subtract(le.ONE),h=l.q.subtract(le.ONE),d=y.multiply(h);d.gcd(s).compareTo(le.ONE)==0?(l.n=l.p.multiply(l.q),l.d=s.modInverse(d),l.dmp1=l.d.mod(y),l.dmq1=l.d.mod(h),l.coeff=l.q.modInverse(l.p),setTimeout(function(){a()},0)):setTimeout(f,0)},u=function(){l.q=he(),l.q.fromNumberAsync(i,1,r,function(){l.q.subtract(le.ONE).gcda(s,function(m){m.compareTo(le.ONE)==0&&l.q.isProbablePrime(10)?setTimeout(c,0):setTimeout(u,0)})})},g=function(){l.p=he(),l.p.fromNumberAsync(o-i,1,r,function(){l.p.subtract(le.ONE).gcda(s,function(m){m.compareTo(le.ONE)==0&&l.p.isProbablePrime(10)?setTimeout(u,0):setTimeout(g,0)})})};setTimeout(g,0)};setTimeout(f,0)},e.prototype.sign=function(o,t,a){var r=Js(a),i=r+t(o).toString(),s=Zs(i,this.n.bitLength()/4);if(s==null)return null;var l=this.doPrivate(s);if(l==null)return null;var f=l.toString(16);return f.length&1?"0"+f:f},e.prototype.verify=function(o,t,a){var r=Ee(t,16),i=this.doPublic(r);if(i==null)return null;var s=i.toString(16).replace(/^1f+00/,""),l=Xs(s);return l==a(o).toString()},e}();function Qs(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 mn={md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",ripemd160:"3021300906052b2403020105000414"};function Js(e){return mn[e]||""}function Xs(e){for(var o in mn)if(mn.hasOwnProperty(o)){var t=mn[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,g=this._iv,m=this._counter;g&&(m=this._counter=g.slice(0),this._iv=void 0),i(m);var u=m.slice(0);c.encryptBlock(u,0);for(var y=0;y<f;y++)l[d+y]^=u[y]}});return a.Decryptor=s,a}(),t.mode.CTRGladman})}(ao)),ao.exports}var ro={exports:{}},Nr;function ws(){return Nr||(Nr=1,function(e,o){(function(t,a,r){e.exports=a(ge(),Pe())})(ce,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 g=0;g<d;g++)i[s+g]^=f[g]}});return a.Decryptor=r,a}(),t.mode.OFB})}(ro)),ro.exports}var io={exports:{}},Fr;function As(){return Fr||(Fr=1,function(e,o){(function(t,a,r){e.exports=a(ge(),Pe())})(ce,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})}(io)),io.exports}var lo={exports:{}},Mr;function ks(){return Mr||(Mr=1,function(e,o){(function(t,a,r){e.exports=a(ge(),Pe())})(ce,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})}(lo)),lo.exports}var so={exports:{}},zr;function Ts(){return zr||(zr=1,function(e,o){(function(t,a,r){e.exports=a(ge(),Pe())})(ce,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})}(so)),so.exports}var co={exports:{}},Pr;function Bs(){return Pr||(Pr=1,function(e,o){(function(t,a,r){e.exports=a(ge(),Pe())})(ce,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})}(co)),co.exports}var fo={exports:{}},qr;function Es(){return qr||(qr=1,function(e,o){(function(t,a,r){e.exports=a(ge(),Pe())})(ce,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})}(fo)),fo.exports}var uo={exports:{}},Hr;function Ds(){return Hr||(Hr=1,function(e,o){(function(t,a,r){e.exports=a(ge(),Pe())})(ce,function(t){return t.pad.NoPadding={pad:function(){},unpad:function(){}},t.pad.NoPadding})}(uo)),uo.exports}var ho={exports:{}},Vr;function Rs(){return Vr||(Vr=1,function(e,o){(function(t,a,r){e.exports=a(ge(),Pe())})(ce,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 g=d.parse(f);return s.create({ciphertext:g})}}}(),t.format.Hex})}(ho)),ho.exports}var go={exports:{}},jr;function Is(){return jr||(jr=1,function(e,o){(function(t,a,r){e.exports=a(ge(),Mt(),zt(),Dt(),Pe())})(ce,function(t){return function(){var a=t,r=a.lib,i=r.BlockCipher,s=a.algo,l=[],d=[],c=[],f=[],g=[],m=[],u=[],y=[],h=[],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,T=0,x=0;x<256;x++){var D=T^T<<1^T<<2^T<<3^T<<4;D=D>>>8^D&255^99,l[A]=D,d[D]=A;var O=b[A],_=b[O],k=b[_],S=b[D]*257^D*16843008;c[A]=S<<24|S>>>8,f[A]=S<<16|S>>>16,g[A]=S<<8|S>>>24,m[A]=S;var S=k*16843009^_*65537^O*257^A*16843008;u[D]=S<<24|S>>>8,y[D]=S<<16|S>>>16,h[D]=S<<8|S>>>24,v[D]=S,A?(A=O^b[b[b[k^O]]],T^=b[b[T]]):A=T=1}})();var E=[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,T=x.sigBytes/4,D=this._nRounds=T+6,O=(D+1)*4,_=this._keySchedule=[],k=0;k<O;k++)k<T?_[k]=A[k]:(b=_[k-1],k%T?T>6&&k%T==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^=E[k/T|0]<<24),_[k]=_[k-T]^b);for(var S=this._invKeySchedule=[],B=0;B<O;B++){var k=O-B;if(B%4)var b=_[k];else var b=_[k-4];B<4||k<=4?S[B]=b:S[B]=u[l[b>>>24]]^y[l[b>>>16&255]]^h[l[b>>>8&255]]^v[l[b&255]]}}},encryptBlock:function(b,x){this._doCryptBlock(b,x,this._keySchedule,c,f,g,m,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,y,h,v,d);var A=b[x+1];b[x+1]=b[x+3],b[x+3]=A},_doCryptBlock:function(b,x,A,T,D,O,_,k){for(var S=this._nRounds,B=b[x]^A[0],w=b[x+1]^A[1],C=b[x+2]^A[2],I=b[x+3]^A[3],N=4,M=1;M<S;M++){var P=T[B>>>24]^D[w>>>16&255]^O[C>>>8&255]^_[I&255]^A[N++],W=T[w>>>24]^D[C>>>16&255]^O[I>>>8&255]^_[B&255]^A[N++],$=T[C>>>24]^D[I>>>16&255]^O[B>>>8&255]^_[w&255]^A[N++],z=T[I>>>24]^D[B>>>16&255]^O[w>>>8&255]^_[C&255]^A[N++];B=P,w=W,C=$,I=z}var P=(k[B>>>24]<<24|k[w>>>16&255]<<16|k[C>>>8&255]<<8|k[I&255])^A[N++],W=(k[w>>>24]<<24|k[C>>>16&255]<<16|k[I>>>8&255]<<8|k[B&255])^A[N++],$=(k[C>>>24]<<24|k[I>>>16&255]<<16|k[B>>>8&255]<<8|k[w&255])^A[N++],z=(k[I>>>24]<<24|k[B>>>16&255]<<16|k[w>>>8&255]<<8|k[C&255])^A[N++];b[x]=P,b[x+1]=W,b[x+2]=$,b[x+3]=z},keySize:256/32});a.AES=i._createHelper(p)}(),t.AES})}(go)),go.exports}var mo={exports:{}},Wr;function _s(){return Wr||(Wr=1,function(e,o){(function(t,a,r){e.exports=a(ge(),Mt(),zt(),Dt(),Pe())})(ce,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],g=[{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}],m=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],u=l.DES=s.extend({_doReset:function(){for(var E=this._key,p=E.words,b=[],x=0;x<56;x++){var A=d[x]-1;b[x]=p[A>>>5]>>>31-A%32&1}for(var T=this._subKeys=[],D=0;D<16;D++){for(var O=T[D]=[],_=f[D],x=0;x<24;x++)O[x/6|0]|=b[(c[x]-1+_)%28]<<31-x%6,O[4+(x/6|0)]|=b[28+(c[x+24]-1+_)%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 k=this._invSubKeys=[],x=0;x<16;x++)k[x]=T[15-x]},encryptBlock:function(E,p){this._doCryptBlock(E,p,this._subKeys)},decryptBlock:function(E,p){this._doCryptBlock(E,p,this._invSubKeys)},_doCryptBlock:function(E,p,b){this._lBlock=E[p],this._rBlock=E[p+1],y.call(this,4,252645135),y.call(this,16,65535),h.call(this,2,858993459),h.call(this,8,16711935),y.call(this,1,1431655765);for(var x=0;x<16;x++){for(var A=b[x],T=this._lBlock,D=this._rBlock,O=0,_=0;_<8;_++)O|=g[_][((D^A[_])&m[_])>>>0];this._lBlock=D,this._rBlock=T^O}var k=this._lBlock;this._lBlock=this._rBlock,this._rBlock=k,y.call(this,1,1431655765),h.call(this,8,16711935),h.call(this,2,858993459),y.call(this,16,65535),y.call(this,4,252645135),E[p]=this._lBlock,E[p+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function y(E,p){var b=(this._lBlock>>>E^this._rBlock)&p;this._rBlock^=b,this._lBlock^=b<<E}function h(E,p){var b=(this._rBlock>>>E^this._lBlock)&p;this._lBlock^=b,this._rBlock^=b<<E}a.DES=s._createHelper(u);var v=l.TripleDES=s.extend({_doReset:function(){var E=this._key,p=E.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(E,p){this._des1.encryptBlock(E,p),this._des2.decryptBlock(E,p),this._des3.encryptBlock(E,p)},decryptBlock:function(E,p){this._des3.decryptBlock(E,p),this._des2.encryptBlock(E,p),this._des1.decryptBlock(E,p)},keySize:192/32,ivSize:64/32,blockSize:64/32});a.TripleDES=s._createHelper(v)}(),t.TripleDES})}(mo)),mo.exports}var yo={exports:{}},Ur;function Os(){return Ur||(Ur=1,function(e,o){(function(t,a,r){e.exports=a(ge(),Mt(),zt(),Dt(),Pe())})(ce,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,g=f.words,m=f.sigBytes,u=this._S=[],y=0;y<256;y++)u[y]=y;for(var y=0,h=0;y<256;y++){var v=y%m,E=g[v>>>2]>>>24-v%4*8&255;h=(h+u[y]+E)%256;var p=u[y];u[y]=u[h],u[h]=p}this._i=this._j=0},_doProcessBlock:function(f,g){f[g]^=d.call(this)},keySize:256/32,ivSize:0});function d(){for(var f=this._S,g=this._i,m=this._j,u=0,y=0;y<4;y++){g=(g+1)%256,m=(m+f[g])%256;var h=f[g];f[g]=f[m],f[m]=h,u|=f[(f[g]+f[m])%256]<<24-y*8}return this._i=g,this._j=m,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 f=this.cfg.drop;f>0;f--)d.call(this)}});a.RC4Drop=i._createHelper(c)}(),t.RC4})}(yo)),yo.exports}var xo={exports:{}},Gr;function Ls(){return Gr||(Gr=1,function(e,o){(function(t,a,r){e.exports=a(ge(),Mt(),zt(),Dt(),Pe())})(ce,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 m=this._key.words,u=this.cfg.iv,y=0;y<4;y++)m[y]=(m[y]<<8|m[y]>>>24)&16711935|(m[y]<<24|m[y]>>>8)&4278255360;var h=this._X=[m[0],m[3]<<16|m[2]>>>16,m[1],m[0]<<16|m[3]>>>16,m[2],m[1]<<16|m[0]>>>16,m[3],m[2]<<16|m[1]>>>16],v=this._C=[m[2]<<16|m[2]>>>16,m[0]&4294901760|m[1]&65535,m[3]<<16|m[3]>>>16,m[1]&4294901760|m[2]&65535,m[0]<<16|m[0]>>>16,m[2]&4294901760|m[3]&65535,m[1]<<16|m[1]>>>16,m[3]&4294901760|m[0]&65535];this._b=0;for(var y=0;y<4;y++)g.call(this);for(var y=0;y<8;y++)v[y]^=h[y+4&7];if(u){var E=u.words,p=E[0],b=E[1],x=(p<<8|p>>>24)&16711935|(p<<24|p>>>8)&4278255360,A=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360,T=x>>>16|A&4294901760,D=A<<16|x&65535;v[0]^=x,v[1]^=T,v[2]^=A,v[3]^=D,v[4]^=x,v[5]^=T,v[6]^=A,v[7]^=D;for(var y=0;y<4;y++)g.call(this)}},_doProcessBlock:function(m,u){var y=this._X;g.call(this),l[0]=y[0]^y[5]>>>16^y[3]<<16,l[1]=y[2]^y[7]>>>16^y[5]<<16,l[2]=y[4]^y[1]>>>16^y[7]<<16,l[3]=y[6]^y[3]>>>16^y[1]<<16;for(var h=0;h<4;h++)l[h]=(l[h]<<8|l[h]>>>24)&16711935|(l[h]<<24|l[h]>>>8)&4278255360,m[u+h]^=l[h]},blockSize:128/32,ivSize:64/32});function g(){for(var m=this._X,u=this._C,y=0;y<8;y++)d[y]=u[y];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 y=0;y<8;y++){var h=m[y]+u[y],v=h&65535,E=h>>>16,p=((v*v>>>17)+v*E>>>15)+E*E,b=((h&4294901760)*h|0)+((h&65535)*h|0);c[y]=p^b}m[0]=c[0]+(c[7]<<16|c[7]>>>16)+(c[6]<<16|c[6]>>>16)|0,m[1]=c[1]+(c[0]<<8|c[0]>>>24)+c[7]|0,m[2]=c[2]+(c[1]<<16|c[1]>>>16)+(c[0]<<16|c[0]>>>16)|0,m[3]=c[3]+(c[2]<<8|c[2]>>>24)+c[1]|0,m[4]=c[4]+(c[3]<<16|c[3]>>>16)+(c[2]<<16|c[2]>>>16)|0,m[5]=c[5]+(c[4]<<8|c[4]>>>24)+c[3]|0,m[6]=c[6]+(c[5]<<16|c[5]>>>16)+(c[4]<<16|c[4]>>>16)|0,m[7]=c[7]+(c[6]<<8|c[6]>>>24)+c[5]|0}a.Rabbit=i._createHelper(f)}(),t.Rabbit})}(xo)),xo.exports}var po={exports:{}},$r;function Ns(){return $r||($r=1,function(e,o){(function(t,a,r){e.exports=a(ge(),Mt(),zt(),Dt(),Pe())})(ce,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 m=this._key.words,u=this.cfg.iv,y=this._X=[m[0],m[3]<<16|m[2]>>>16,m[1],m[0]<<16|m[3]>>>16,m[2],m[1]<<16|m[0]>>>16,m[3],m[2]<<16|m[1]>>>16],h=this._C=[m[2]<<16|m[2]>>>16,m[0]&4294901760|m[1]&65535,m[3]<<16|m[3]>>>16,m[1]&4294901760|m[2]&65535,m[0]<<16|m[0]>>>16,m[2]&4294901760|m[3]&65535,m[1]<<16|m[1]>>>16,m[3]&4294901760|m[0]&65535];this._b=0;for(var v=0;v<4;v++)g.call(this);for(var v=0;v<8;v++)h[v]^=y[v+4&7];if(u){var E=u.words,p=E[0],b=E[1],x=(p<<8|p>>>24)&16711935|(p<<24|p>>>8)&4278255360,A=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360,T=x>>>16|A&4294901760,D=A<<16|x&65535;h[0]^=x,h[1]^=T,h[2]^=A,h[3]^=D,h[4]^=x,h[5]^=T,h[6]^=A,h[7]^=D;for(var v=0;v<4;v++)g.call(this)}},_doProcessBlock:function(m,u){var y=this._X;g.call(this),l[0]=y[0]^y[5]>>>16^y[3]<<16,l[1]=y[2]^y[7]>>>16^y[5]<<16,l[2]=y[4]^y[1]>>>16^y[7]<<16,l[3]=y[6]^y[3]>>>16^y[1]<<16;for(var h=0;h<4;h++)l[h]=(l[h]<<8|l[h]>>>24)&16711935|(l[h]<<24|l[h]>>>8)&4278255360,m[u+h]^=l[h]},blockSize:128/32,ivSize:64/32});function g(){for(var m=this._X,u=this._C,y=0;y<8;y++)d[y]=u[y];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 y=0;y<8;y++){var h=m[y]+u[y],v=h&65535,E=h>>>16,p=((v*v>>>17)+v*E>>>15)+E*E,b=((h&4294901760)*h|0)+((h&65535)*h|0);c[y]=p^b}m[0]=c[0]+(c[7]<<16|c[7]>>>16)+(c[6]<<16|c[6]>>>16)|0,m[1]=c[1]+(c[0]<<8|c[0]>>>24)+c[7]|0,m[2]=c[2]+(c[1]<<16|c[1]>>>16)+(c[0]<<16|c[0]>>>16)|0,m[3]=c[3]+(c[2]<<8|c[2]>>>24)+c[1]|0,m[4]=c[4]+(c[3]<<16|c[3]>>>16)+(c[2]<<16|c[2]>>>16)|0,m[5]=c[5]+(c[4]<<8|c[4]>>>24)+c[3]|0,m[6]=c[6]+(c[5]<<16|c[5]>>>16)+(c[4]<<16|c[4]>>>16)|0,m[7]=c[7]+(c[6]<<8|c[6]>>>24)+c[5]|0}a.RabbitLegacy=i._createHelper(f)}(),t.RabbitLegacy})}(po)),po.exports}(function(e,o){(function(t,a,r){e.exports=a(ge(),ln(),us(),hs(),Mt(),gs(),zt(),Wn(),Sr(),ms(),Ar(),ys(),xs(),ps(),Jn(),bs(),Dt(),Pe(),vs(),Ss(),Cs(),ws(),As(),ks(),Ts(),Bs(),Es(),Ds(),Rs(),Is(),_s(),Os(),Ls(),Ns())})(ce,function(t){return t})})(fr);var Fs=fr.exports;const Ke=dr(Fs);var Ms="0123456789abcdefghijklmnopqrstuvwxyz";function yt(e){return Ms.charAt(e)}function zs(e,o){return e&o}function sn(e,o){return e|o}function Zr(e,o){return e^o}function Yr(e,o){return e&~o}function Ps(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 qs(e){for(var o=0;e!=0;)e&=e-1,++o;return o}var Pt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Kr="=";function cn(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+=Kr;return a}function Qr(e){var o="",t,a=0,r=0;for(t=0;t<e.length&&e.charAt(t)!=Kr;++t){var i=Pt.indexOf(e.charAt(t));i<0||(a==0?(o+=yt(i>>2),r=i&3,a=1):a==1?(o+=yt(r<<2|i>>4),r=i&15,a=2):a==2?(o+=yt(r),o+=yt(i>>2),r=i&3,a=3):(o+=yt(r<<2|i>>4),o+=yt(i&15),a=0))}return a==1&&(o+=yt(r<<2)),o}var qt,Hs={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,bo={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=bo.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 bo.decode(e)}},Ht=1e13,Jt=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}(),Jr="…",Vs=/^(\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)?)?$/,js=/^(\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)+Jr),e}var vo=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?Vs:js).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 Jt(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,g=7;g>=f;--g)l+=c>>g&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+=Jr),i},e.prototype.parseOID=function(o,t,a){for(var r="",i=new Jt,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 Jt)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 Jt,s=0}}return s>0&&(r+=".incomplete"),r},e}(),Ws=function(){function e(o,t,a,r,i){if(!(r instanceof Xr))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 vo?t=o:t=new vo(o,0);var a=new vo(t),r=new Xr(t),i=e.decodeLength(t),s=t.pos,l=s-a.pos,d=null,c=function(){var g=[];if(i!==null){for(var m=s+i;t.pos<m;)g[g.length]=e.decode(t);if(t.pos!=m)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;g[g.length]=u}i=s-t.pos}catch(y){throw new Error("Exception while decoding undefined length content: "+y)}return g};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}(),Xr=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 Jt;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,Us=0xdeadbeefcafe,ei=(Us&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],Gs=(1<<26)/Ge[Ge.length-1],le=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=yt(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+=yt(r));return i?s:"0"},e.prototype.negate=function(){var o=he();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)+fn(this[this.t-1]^this.s&this.DM)},e.prototype.mod=function(o){var t=he();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 ti(t):a=new ni(t),this.exp(o,a)},e.prototype.clone=function(){var o=he();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=he();return this.bitwiseTo(o,zs,t),t},e.prototype.or=function(o){var t=he();return this.bitwiseTo(o,sn,t),t},e.prototype.xor=function(o){var t=he();return this.bitwiseTo(o,Zr,t),t},e.prototype.andNot=function(o){var t=he();return this.bitwiseTo(o,Yr,t),t},e.prototype.not=function(){for(var o=he(),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=he();return o<0?this.rShiftTo(-o,t):this.lShiftTo(o,t),t},e.prototype.shiftRight=function(o){var t=he();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+Ps(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+=qs(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,sn)},e.prototype.clearBit=function(o){return this.changeBit(o,Yr)},e.prototype.flipBit=function(o){return this.changeBit(o,Zr)},e.prototype.add=function(o){var t=he();return this.addTo(o,t),t},e.prototype.subtract=function(o){var t=he();return this.subTo(o,t),t},e.prototype.multiply=function(o){var t=he();return this.multiplyTo(o,t),t},e.prototype.divide=function(o){var t=he();return this.divRemTo(o,t,null),t},e.prototype.remainder=function(o){var t=he();return this.divRemTo(o,null,t),t},e.prototype.divideAndRemainder=function(o){var t=he(),a=he();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 ti(t):t.isEven()?s=new Zs(t):s=new ni(t);var l=[],d=3,c=r-1,f=(1<<r)-1;if(l[1]=s.convert(this),r>1){var g=he();for(s.sqrTo(l[1],g);d<=f;)l[d]=he(),s.mulTo(g,l[d-2],l[d]),d+=2}var m=o.t-1,u,y=!0,h=he(),v;for(a=fn(o[m])-1;m>=0;){for(a>=c?u=o[m]>>a-c&f:(u=(o[m]&(1<<a+1)-1)<<c-a,m>0&&(u|=o[m-1]>>this.DB+a-c)),d=r;!(u&1);)u>>=1,--d;if((a-=d)<0&&(a+=this.DB,--m),y)l[u].copyTo(i),y=!1;else{for(;d>1;)s.sqrTo(i,h),s.sqrTo(h,i),d-=2;d>0?s.sqrTo(i,h):(v=i,i=h,h=v),s.mulTo(h,l[u],i)}for(;m>=0&&!(o[m]&1<<a);)s.sqrTo(i,h),v=i,i=h,h=v,--a<0&&(a=this.DB-1,--m)}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 $s)},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<Gs;)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:ai(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=he());var s=he(),l=this.s,d=o.s,c=this.DB-fn(r[r.t-1]);c>0?(r.lShiftTo(c,s),i.lShiftTo(c,a)):(r.copyTo(s),i.copyTo(a));var f=s.t,g=s[f-1];if(g!=0){var m=g*(1<<this.F1)+(f>1?s[f-2]>>this.F2:0),u=this.FV/m,y=(1<<this.F1)/m,h=1<<this.F2,v=a.t,E=v-f,p=t??he();for(s.dlShiftTo(E,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(;--E>=0;){var b=a[--v]==g?this.DM:Math.floor(a[v]*u+(a[v-1]+h)*y);if((a[v]+=s.am(0,b,a,E,0,f))<b)for(s.dlShiftTo(E,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=he(),r=he(),i=t.convert(this),s=fn(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=he(),s=he(),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=ai(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),sn,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=he(),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=he();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),sn,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}(),$s=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}(),ti=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}(),ni=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=he();return o.abs().dlShiftTo(this.m.t,t),t.divRemTo(this.m,null,t),o.s<0&&t.compareTo(le.ZERO)>0&&this.m.subTo(t,t),t},e.prototype.revert=function(o){var t=he();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}(),Zs=function(){function e(o){this.m=o,this.r2=he(),this.q3=he(),le.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=he();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 he(){return new le(null)}function Ie(e,o){return new le(e,o)}var oi=typeof navigator<"u";oi&&ei&&navigator.appName=="Microsoft Internet Explorer"?(le.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,g=d*c+f*l;c=l*c+((g&32767)<<15)+a[r]+(i&1073741823),i=(c>>>30)+(g>>>15)+d*f+(i>>>30),a[r++]=c&1073741823}return i},vt=30):oi&&ei&&navigator.appName!="Netscape"?(le.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):(le.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,g=d*c+f*l;c=l*c+((g&16383)<<14)+a[r]+i,i=(c>>28)+(g>>14)+d*f,a[r++]=c&268435455}return i},vt=28),le.prototype.DB=vt,le.prototype.DM=(1<<vt)-1,le.prototype.DV=1<<vt;var So=52;le.prototype.FV=Math.pow(2,So),le.prototype.F1=So-vt,le.prototype.F2=2*vt-So;var dn=[],jt,tt;for(jt="0".charCodeAt(0),tt=0;tt<=9;++tt)dn[jt++]=tt;for(jt="a".charCodeAt(0),tt=10;tt<36;++tt)dn[jt++]=tt;for(jt="A".charCodeAt(0),tt=10;tt<36;++tt)dn[jt++]=tt;function ai(e,o){var t=dn[e.charCodeAt(o)];return t??-1}function St(e){var o=he();return o.fromInt(e),o}function fn(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}le.ZERO=St(0),le.ONE=St(1);var Ys=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 Ks(){return new Ys}var ri=256,un,Ct=null,it;if(Ct==null){Ct=[],it=0;var hn=void 0;if(typeof window<"u"&&window.crypto&&window.crypto.getRandomValues){var Co=new Uint32Array(256);for(window.crypto.getRandomValues(Co),hn=0;hn<Co.length;++hn)Ct[it++]=Co[hn]&255}var gn=0,mn=function(e){if(gn=gn||0,gn>=256||it>=ri){window.removeEventListener?window.removeEventListener("mousemove",mn,!1):window.detachEvent&&window.detachEvent("onmousemove",mn);return}try{var o=e.x+e.y;Ct[it++]=o&255,gn+=1}catch{}};typeof window<"u"&&(window.addEventListener?window.addEventListener("mousemove",mn,!1):window.attachEvent&&window.attachEvent("onmousemove",mn))}function Qs(){if(un==null){for(un=Ks();it<ri;){var e=Math.floor(65536*Math.random());Ct[it++]=e&255}for(un.init(Ct),it=0;it<Ct.length;++it)Ct[it]=0;it=0}return un.next()}var wo=function(){function e(){}return e.prototype.nextBytes=function(o){for(var t=0;t<o.length;++t)o[t]=Qs()},e}();function Js(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 Ie(i,16)}function Xs(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 wo,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 le(t)}var ec=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=Ie(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=Xs(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=Ie(o,16),this.e=parseInt(t,16),this.d=Ie(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=Ie(o,16),this.e=parseInt(t,16),this.d=Ie(a,16),this.p=Ie(r,16),this.q=Ie(i,16),this.dmp1=Ie(s,16),this.dmq1=Ie(l,16),this.coeff=Ie(d,16)):console.error("Invalid RSA private key")},e.prototype.generate=function(o,t){var a=new wo,r=o>>1;this.e=parseInt(t,16);for(var i=new le(t,16);;){for(;this.p=new le(o-r,1,a),!(this.p.subtract(le.ONE).gcd(i).compareTo(le.ONE)==0&&this.p.isProbablePrime(10)););for(;this.q=new le(r,1,a),!(this.q.subtract(le.ONE).gcd(i).compareTo(le.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(le.ONE),d=this.q.subtract(le.ONE),c=l.multiply(d);if(c.gcd(i).compareTo(le.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=Ie(o,16),a=this.doPrivate(t);return a==null?null:tc(a,this.n.bitLength()+7>>3)},e.prototype.generateAsync=function(o,t,a){var r=new wo,i=o>>1;this.e=parseInt(t,16);var s=new le(t,16),l=this,d=function(){var c=function(){if(l.p.compareTo(l.q)<=0){var m=l.p;l.p=l.q,l.q=m}var u=l.p.subtract(le.ONE),y=l.q.subtract(le.ONE),h=u.multiply(y);h.gcd(s).compareTo(le.ONE)==0?(l.n=l.p.multiply(l.q),l.d=s.modInverse(h),l.dmp1=l.d.mod(u),l.dmq1=l.d.mod(y),l.coeff=l.q.modInverse(l.p),setTimeout(function(){a()},0)):setTimeout(d,0)},f=function(){l.q=he(),l.q.fromNumberAsync(i,1,r,function(){l.q.subtract(le.ONE).gcda(s,function(m){m.compareTo(le.ONE)==0&&l.q.isProbablePrime(10)?setTimeout(c,0):setTimeout(f,0)})})},g=function(){l.p=he(),l.p.fromNumberAsync(o-i,1,r,function(){l.p.subtract(le.ONE).gcda(s,function(m){m.compareTo(le.ONE)==0&&l.p.isProbablePrime(10)?setTimeout(f,0):setTimeout(g,0)})})};setTimeout(g,0)};setTimeout(d,0)},e.prototype.sign=function(o,t,a){var r=nc(a),i=r+t(o).toString(),s=Js(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=Ie(t,16),i=this.doPublic(r);if(i==null)return null;var s=i.toString(16).replace(/^1f+00/,""),l=oc(s);return l==a(o).toString()},e}();function tc(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 yn={md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",ripemd160:"3021300906052b2403020105000414"};function nc(e){return yn[e]||""}function oc(e){for(var o in yn)if(yn.hasOwnProperty(o)){var t=yn[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 Re={};Re.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,f){for(r=0;r<s.length;r=r+1){var c=s[r],u=f[c];typeof u=="function"&&u!=Object.prototype[c]&&(l[c]=u)}})}catch{}i(e.prototype,t)}}};/**
83
+ */var Oe={};Oe.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 le(r,16),l=s.xor(e).add(le.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,f=t.DERObjectIdentifier,c=t.DEREnumerated,u=t.DERUTF8String,g=t.DERNumericString,m=t.DERPrintableString,y=t.DERTeletexString,h=t.DERIA5String,d=t.DERUTCTime,v=t.DERGeneralizedTime,D=t.DERSequence,x=t.DERSet,b=t.DERTaggedObject,p=t.ASN1Util.newObject,C=Object.keys(e);if(C.length!=1)throw"key of param shall be only one.";var A=C[0];if(":bool:int:bitstr:octstr:null:oid:enum:utf8str:numstr:prnstr:telstr:ia5str:utctime:gentime:seq:set:tag:".indexOf(":"+A+":")==-1)throw"undefined key: "+A;if(A=="bool")return new a(e[A]);if(A=="int")return new r(e[A]);if(A=="bitstr")return new i(e[A]);if(A=="octstr")return new s(e[A]);if(A=="null")return new l(e[A]);if(A=="oid")return new f(e[A]);if(A=="enum")return new c(e[A]);if(A=="utf8str")return new u(e[A]);if(A=="numstr")return new g(e[A]);if(A=="prnstr")return new m(e[A]);if(A=="telstr")return new y(e[A]);if(A=="ia5str")return new h(e[A]);if(A=="utctime")return new d(e[A]);if(A=="gentime")return new v(e[A]);if(A=="seq"){for(var R=e[A],_=[],O=0;O<R.length;O++){var k=p(R[O]);_.push(k)}return new D({array:_})}if(A=="set"){for(var R=e[A],_=[],O=0;O<R.length;O++){var k=p(R[O]);_.push(k)}return new x({array:_})}if(A=="tag"){var S=e[A];if(Object.prototype.toString.call(S)==="[object Array]"&&S.length==3){var T=p(S[2]);return new b({tag:S[0],explicit:S[1],obj:T})}else{var w={};if(S.explicit!==void 0&&(w.explicit=S.explicit),S.tag!==void 0&&(w.tag=S.tag),S.obj===void 0)throw"obj shall be specified for 'tag'.";return w.obj=p(S.obj),new b(w)}}},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),f=("00000000"+l.toString(2)).slice(-8);if(i=i+f.substr(1,7),f.substr(0,1)=="0"){var c=new le(i,2);r=r+"."+c.toString(10),i=""}}return r},G.asn1.ASN1Util.oidIntToHex=function(e){var o=function(l){var f=l.toString(16);return f.length==1&&(f="0"+f),f},t=function(l){var f="",c=new le(l,10),u=c.toString(2),g=7-u.length%7;g==7&&(g=0);for(var m="",y=0;y<g;y++)m+="0";u=m+u;for(var y=0;y<u.length-1;y+=7){var h=u.substr(y,7);y!=u.length-7&&(h="1"+h),f+=o(parseInt(h,2))}return f};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))},Re.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),f=r(String(i.getDate()),2),c=r(String(i.getHours()),2),u=r(String(i.getMinutes()),2),g=r(String(i.getSeconds()),2),m=s+l+f+c+u+g;if(a===!0){var y=i.getMilliseconds();if(y!=0){var h=r(String(y),3);h=h.replace(/[0]+$/,""),m=m+"."+h}}return m+"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}},Re.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)},Re.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"},Re.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 le(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))},Re.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))},Re.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"},Re.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"},Re.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 le(a,10),s=i.toString(2),l=7-s.length%7;l==7&&(l=0);for(var f="",c=0;c<l;c++)f+="0";s=f+s;for(var c=0;c<s.length-1;c+=7){var u=s.substr(c,7);c!=s.length-7&&(u="1"+u),r+=o(parseInt(u,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))},Re.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 le(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))},Re.lang.extend(G.asn1.DEREnumerated,G.asn1.ASN1Object),G.asn1.DERUTF8String=function(e){G.asn1.DERUTF8String.superclass.constructor.call(this,e),this.hT="0c"},Re.lang.extend(G.asn1.DERUTF8String,G.asn1.DERAbstractString),G.asn1.DERNumericString=function(e){G.asn1.DERNumericString.superclass.constructor.call(this,e),this.hT="12"},Re.lang.extend(G.asn1.DERNumericString,G.asn1.DERAbstractString),G.asn1.DERPrintableString=function(e){G.asn1.DERPrintableString.superclass.constructor.call(this,e),this.hT="13"},Re.lang.extend(G.asn1.DERPrintableString,G.asn1.DERAbstractString),G.asn1.DERTeletexString=function(e){G.asn1.DERTeletexString.superclass.constructor.call(this,e),this.hT="14"},Re.lang.extend(G.asn1.DERTeletexString,G.asn1.DERAbstractString),G.asn1.DERIA5String=function(e){G.asn1.DERIA5String.superclass.constructor.call(this,e),this.hT="16"},Re.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))},Re.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))},Re.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}},Re.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)},Re.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)))},Re.lang.extend(G.asn1.DERTaggedObject,G.asn1.ASN1Object);var ec=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)}}(),ai=function(e){ec(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)?zs.decode(t):po.unarmor(t),l=qs.decode(s);if(l.sub.length===3&&(l=l.sub[2].sub[0]),l.sub.length===9){a=l.sub[1].getHexStringValue(),this.n=Ee(a,16),r=l.sub[2].getHexStringValue(),this.e=parseInt(r,16);var f=l.sub[3].getHexStringValue();this.d=Ee(f,16);var c=l.sub[4].getHexStringValue();this.p=Ee(c,16);var u=l.sub[5].getHexStringValue();this.q=Ee(u,16);var g=l.sub[6].getHexStringValue();this.dmp1=Ee(g,16);var m=l.sub[7].getHexStringValue();this.dmq1=Ee(m,16);var y=l.sub[8].getHexStringValue();this.coeff=Ee(y,16)}else if(l.sub.length===2)if(l.sub[0].sub){var h=l.sub[1],d=h.sub[0];a=d.sub[0].getHexStringValue(),this.n=Ee(a,16),r=d.sub[1].getHexStringValue(),this.e=parseInt(r,16)}else a=l.sub[0].getHexStringValue(),this.n=Ee(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 sn(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 sn(this.getPublicBaseKey())},o.wordwrap=function(t,a){if(a=a||64,!t)return t;var r="(.{1,"+a+`})( +|$
90
+ */var U={};(typeof U.asn1>"u"||!U.asn1)&&(U.asn1={}),U.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 le(r,16),l=s.xor(e).add(le.ONE);o=l.toString(16).replace(/^-/,"")}return o},this.getPEMStringFromHex=function(e,o){return hextopem(e,o)},this.newObject=function(e){var o=U,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,g=t.DERNumericString,m=t.DERPrintableString,u=t.DERTeletexString,y=t.DERIA5String,h=t.DERUTCTime,v=t.DERGeneralizedTime,E=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 T=A[0];if(":bool:int:bitstr:octstr:null:oid:enum:utf8str:numstr:prnstr:telstr:ia5str:utctime:gentime:seq:set:tag:".indexOf(":"+T+":")==-1)throw"undefined key: "+T;if(T=="bool")return new a(e[T]);if(T=="int")return new r(e[T]);if(T=="bitstr")return new i(e[T]);if(T=="octstr")return new s(e[T]);if(T=="null")return new l(e[T]);if(T=="oid")return new d(e[T]);if(T=="enum")return new c(e[T]);if(T=="utf8str")return new f(e[T]);if(T=="numstr")return new g(e[T]);if(T=="prnstr")return new m(e[T]);if(T=="telstr")return new u(e[T]);if(T=="ia5str")return new y(e[T]);if(T=="utctime")return new h(e[T]);if(T=="gentime")return new v(e[T]);if(T=="seq"){for(var D=e[T],O=[],_=0;_<D.length;_++){var k=x(D[_]);O.push(k)}return new E({array:O})}if(T=="set"){for(var D=e[T],O=[],_=0;_<D.length;_++){var k=x(D[_]);O.push(k)}return new p({array:O})}if(T=="tag"){var S=e[T];if(Object.prototype.toString.call(S)==="[object Array]"&&S.length==3){var B=x(S[2]);return new b({tag:S[0],explicit:S[1],obj:B})}else{var w={};if(S.explicit!==void 0&&(w.explicit=S.explicit),S.tag!==void 0&&(w.tag=S.tag),S.obj===void 0)throw"obj shall be specified for 'tag'.";return w.obj=x(S.obj),new b(w)}}},this.jsonToASN1HEX=function(e){var o=this.newObject(e);return o.getEncodedHex()}},U.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 le(i,2);r=r+"."+c.toString(10),i=""}}return r},U.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 le(l,10),f=c.toString(2),g=7-f.length%7;g==7&&(g=0);for(var m="",u=0;u<g;u++)m+="0";f=m+f;for(var u=0;u<f.length-1;u+=7){var y=f.substr(u,7);u!=f.length-7&&(y="1"+y),d+=o(parseInt(y,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},U.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""}},U.asn1.DERAbstractString=function(e){U.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))},Oe.lang.extend(U.asn1.DERAbstractString,U.asn1.ASN1Object),U.asn1.DERAbstractTime=function(e){U.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),g=r(String(i.getSeconds()),2),m=s+l+d+c+f+g;if(a===!0){var u=i.getMilliseconds();if(u!=0){var y=r(String(u),3);y=y.replace(/[0]+$/,""),m=m+"."+y}}return m+"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}},Oe.lang.extend(U.asn1.DERAbstractTime,U.asn1.ASN1Object),U.asn1.DERAbstractStructured=function(e){U.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)},Oe.lang.extend(U.asn1.DERAbstractStructured,U.asn1.ASN1Object),U.asn1.DERBoolean=function(){U.asn1.DERBoolean.superclass.constructor.call(this),this.hT="01",this.hTLV="0101ff"},Oe.lang.extend(U.asn1.DERBoolean,U.asn1.ASN1Object),U.asn1.DERInteger=function(e){U.asn1.DERInteger.superclass.constructor.call(this),this.hT="02",this.setByBigInteger=function(o){this.hTLV=null,this.isModified=!0,this.hV=U.asn1.ASN1Util.bigIntToMinTwosComplementsHex(o)},this.setByInteger=function(o){var t=new le(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))},Oe.lang.extend(U.asn1.DERInteger,U.asn1.ASN1Object),U.asn1.DERBitString=function(e){if(e!==void 0&&typeof e.obj<"u"){var o=U.asn1.ASN1Util.newObject(e.obj);e.hex="00"+o.getEncodedHex()}U.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))},Oe.lang.extend(U.asn1.DERBitString,U.asn1.ASN1Object),U.asn1.DEROctetString=function(e){if(e!==void 0&&typeof e.obj<"u"){var o=U.asn1.ASN1Util.newObject(e.obj);e.hex=o.getEncodedHex()}U.asn1.DEROctetString.superclass.constructor.call(this,e),this.hT="04"},Oe.lang.extend(U.asn1.DEROctetString,U.asn1.DERAbstractString),U.asn1.DERNull=function(){U.asn1.DERNull.superclass.constructor.call(this),this.hT="05",this.hTLV="0500"},Oe.lang.extend(U.asn1.DERNull,U.asn1.ASN1Object),U.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 le(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};U.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=U.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))},Oe.lang.extend(U.asn1.DERObjectIdentifier,U.asn1.ASN1Object),U.asn1.DEREnumerated=function(e){U.asn1.DEREnumerated.superclass.constructor.call(this),this.hT="0a",this.setByBigInteger=function(o){this.hTLV=null,this.isModified=!0,this.hV=U.asn1.ASN1Util.bigIntToMinTwosComplementsHex(o)},this.setByInteger=function(o){var t=new le(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))},Oe.lang.extend(U.asn1.DEREnumerated,U.asn1.ASN1Object),U.asn1.DERUTF8String=function(e){U.asn1.DERUTF8String.superclass.constructor.call(this,e),this.hT="0c"},Oe.lang.extend(U.asn1.DERUTF8String,U.asn1.DERAbstractString),U.asn1.DERNumericString=function(e){U.asn1.DERNumericString.superclass.constructor.call(this,e),this.hT="12"},Oe.lang.extend(U.asn1.DERNumericString,U.asn1.DERAbstractString),U.asn1.DERPrintableString=function(e){U.asn1.DERPrintableString.superclass.constructor.call(this,e),this.hT="13"},Oe.lang.extend(U.asn1.DERPrintableString,U.asn1.DERAbstractString),U.asn1.DERTeletexString=function(e){U.asn1.DERTeletexString.superclass.constructor.call(this,e),this.hT="14"},Oe.lang.extend(U.asn1.DERTeletexString,U.asn1.DERAbstractString),U.asn1.DERIA5String=function(e){U.asn1.DERIA5String.superclass.constructor.call(this,e),this.hT="16"},Oe.lang.extend(U.asn1.DERIA5String,U.asn1.DERAbstractString),U.asn1.DERUTCTime=function(e){U.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))},Oe.lang.extend(U.asn1.DERUTCTime,U.asn1.DERAbstractTime),U.asn1.DERGeneralizedTime=function(e){U.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))},Oe.lang.extend(U.asn1.DERGeneralizedTime,U.asn1.DERAbstractTime),U.asn1.DERSequence=function(e){U.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}},Oe.lang.extend(U.asn1.DERSequence,U.asn1.DERAbstractStructured),U.asn1.DERSet=function(e){U.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)},Oe.lang.extend(U.asn1.DERSet,U.asn1.DERAbstractStructured),U.asn1.DERTaggedObject=function(e){U.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)))},Oe.lang.extend(U.asn1.DERTaggedObject,U.asn1.ASN1Object);var ac=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)}}(),ii=function(e){ac(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)?Hs.decode(t):bo.unarmor(t),l=Ws.decode(s);if(l.sub.length===3&&(l=l.sub[2].sub[0]),l.sub.length===9){a=l.sub[1].getHexStringValue(),this.n=Ie(a,16),r=l.sub[2].getHexStringValue(),this.e=parseInt(r,16);var d=l.sub[3].getHexStringValue();this.d=Ie(d,16);var c=l.sub[4].getHexStringValue();this.p=Ie(c,16);var f=l.sub[5].getHexStringValue();this.q=Ie(f,16);var g=l.sub[6].getHexStringValue();this.dmp1=Ie(g,16);var m=l.sub[7].getHexStringValue();this.dmq1=Ie(m,16);var u=l.sub[8].getHexStringValue();this.coeff=Ie(u,16)}else if(l.sub.length===2)if(l.sub[0].sub){var y=l.sub[1],h=y.sub[0];a=h.sub[0].getHexStringValue(),this.n=Ie(a,16),r=h.sub[1].getHexStringValue(),this.e=parseInt(r,16)}else a=l.sub[0].getHexStringValue(),this.n=Ie(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 U.asn1.DERInteger({int:0}),new U.asn1.DERInteger({bigint:this.n}),new U.asn1.DERInteger({int:this.e}),new U.asn1.DERInteger({bigint:this.d}),new U.asn1.DERInteger({bigint:this.p}),new U.asn1.DERInteger({bigint:this.q}),new U.asn1.DERInteger({bigint:this.dmp1}),new U.asn1.DERInteger({bigint:this.dmq1}),new U.asn1.DERInteger({bigint:this.coeff})]},a=new U.asn1.DERSequence(t);return a.getEncodedHex()},o.prototype.getPrivateBaseKeyB64=function(){return cn(this.getPrivateBaseKey())},o.prototype.getPublicBaseKey=function(){var t=new U.asn1.DERSequence({array:[new U.asn1.DERObjectIdentifier({oid:"1.2.840.113549.1.1.1"}),new U.asn1.DERNull]}),a=new U.asn1.DERSequence({array:[new U.asn1.DERInteger({bigint:this.n}),new U.asn1.DERInteger({int:this.e})]}),r=new U.asn1.DERBitString({hex:"00"+a.getEncodedHex()}),i=new U.asn1.DERSequence({array:[t,r]});return i.getEncodedHex()},o.prototype.getPublicBaseKeyB64=function(){return cn(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}(Ks),wo,tc=typeof process<"u"?(wo=process.env)===null||wo===void 0?void 0:wo.npm_package_version:void 0,nc=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 ai(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(Yr(o))}catch{return!1}},e.prototype.encrypt=function(o){try{return sn(this.getKey().encrypt(o))}catch{return!1}},e.prototype.sign=function(o,t,a){try{return sn(this.getKey().sign(o,t,a))}catch{return!1}},e.prototype.verify=function(o,t,a){try{return this.getKey().verify(o,Yr(t),a)}catch{return!1}},e.prototype.getKey=function(o){if(!this.key){if(this.key=new ai,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=tc,e}();const ri=new nc,Ut=oc();function oc(){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 ii=Ze.enc.Utf8.parse("ABCDEF1234123412");function ac(e,o){o=o||Ut;const t=Ze.enc.Utf8.parse(o);let a="";switch(typeof e){case"string":a=Ze.enc.Utf8.parse(e);break;case"object":a=Ze.enc.Utf8.parse(JSON.stringify(e));break;default:a=Ze.enc.Utf8.parse(e.toString())}return Ze.AES.encrypt(a,t,{iv:ii,mode:Ze.mode.CBC,padding:Ze.pad.ZeroPadding}).toString()}function li(e,o){o=o||Ut;const t=Ze.enc.Utf8.parse(o),a=Ze.AES.decrypt(e,t,{iv:ii,mode:Ze.mode.CBC,padding:Ze.pad.ZeroPadding});return Ze.enc.Utf8.stringify(a).toString()}function rc(e){ri.setPublicKey(e)}function ic(e){return ri.encrypt(e)}function si(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 lc(e){const{paramType:o,data:t,params:a,method:r}=e;o==="form"?["get","delete"].includes(r)?e.params=Gt(a,"string"):e.data=Gt(t,"string"):["get","delete"].includes(r)?e.params=Gt(a,"string"):e.data=Gt(t)}function Gt(e,o){let t=e||{};if(o==="string"){t="";for(const l in e)if(Object.hasOwnProperty.call(e,l)){const f=e[l];t+=`${l}=${encodeURIComponent(f)}&`}}rc("MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBAMKaTbS1XHH7u/4dhao1n5Lcegpy6AHKX2TjmTP7IDW6N4wznqlL3Tt+U0/Il1TlNp1/EN+tffYYg4dPrrCUDwcCAwEAAQ==");const r=ic(Ut);return{c:ac(t,Ut),p:r}}window.getEncryptParam=Gt;function sc(e,o){var t;(t=window==null?void 0:window.config)!=null&&t.encryptFlag&&si(e.url)&&(e.data instanceof FormData?e.data=cc(e.data):lc(e))}function cc(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=Gt(a,"json");return typeof r=="object"&&(t.append("c",r.c),t.append("p",r.p)),t}window.xhaesKey=Ut,window.xhaesDecrypt=li;function ci(e,o){var t;if((t=window==null?void 0:window.config)!=null&&t.encryptFlag&&si(e.config.url)&&!(e.data instanceof Blob)&&e.data.data!==void 0){const a=li(e.data.data.content,Ut);e.data=JSON.parse(a)}}const fi=window.config.requestErrorTip,ft=L0.create({timeout:1e3*180});ft.interceptors.request.use(e=>{const{requestParams:o={}}=window.config;return o!=null&&o.pltToken&&(e.headers["Plt-Token"]=o.pltToken),sc(e),e},e=>Promise.reject(e)),ft.interceptors.response.use(e=>{var o,t,a;return fi&&+((o=e==null?void 0:e.data)==null?void 0:o.code)==500&&se.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}),ci(e),e},e=>{if(ci(e==null?void 0:e.response),fi)if(e.message.includes("timeout"))se.message.error({content:"网络连接超时,请重试!",key:"TIMEOUT",duration:2});else{const{status:o}=(e==null?void 0:e.response)||{};o>=400&&o<500&&se.message.error({content:"请求异常",key:"REQUEST_ERROR",duration:2}),o>=500&&se.message.error({content:"服务器异常",key:"REQUEST_ERROR",duration:2})}return Promise.reject(e)});const fc=e=>e.replace(/\\n/g,`
97
- `),Ao=(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,",")},yn=(e,o=2)=>{const t=e+"";if(t.includes("%"))return e;const a=parseFloat(t);return isNaN(a)?e:`${(a*100).toFixed(o)}%`},uc=(e,o=2)=>{const t=e+"",a=parseFloat(t);return isNaN(a)?e:a.toFixed(o)},di=(e,o)=>nt(o,e),dt=(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},xn=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),Xt=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}))},tt=(e,o)=>{let t=!0;const a=Xt(e);return a!=null&&a.length&&(t=a.map(r=>o[r.id]).every(r=>r)),t},pn=(e,o)=>{const t={dayjs:ve,...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},Be=(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 f=0;f<l.length;f++){const c=l[f];let u=c.slice(1,-1).trim();const g=/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,m=u.match(g);for(let y=0;y<m.length;y++){const h=m[y],d=s[h];d!=null&&typeof d!="function"&&(u=u.replace(h,d))}(/\(.*\)/g.test(u)||/[+/\\*]/g.test(u))&&(u=pn(u,t)),e=e.replace(c,u)}return a&&(e=e==null?void 0:e.replace(/\n|\\n/g,"<br/>")),r&&(e=e==null?void 0:e.replace(/\s{2,}?/g,"&nbsp;&nbsp;")),e},He=(e,o=()=>{})=>{const{requestUrl:t,requestMethod:a,requestHeaders:r,requestParams:i,requestInterval:s,isOpenRequestTimer:l}=e,{contextRequestUrl:f,touchEventId:c}=n.inject(Me,{contextRequestUrl:"",touchEventId:""}),{getGlobalModel:u}=n.inject(Ae,{getGlobalModel:h=>{}}),g=Be(t),m=async(h={})=>{if(!g||!a||!r)return;let d={};i.forEach(p=>{const{key:C,value:A}=p;if(typeof A=="object"&&A!=null&&A.id){let R={};const{id:_,prop:O,propKey:k,operate:S}=A;_==="THIS"?R=u(n.unref(c))||{}:R=u(_)||{};const T=n.unref(R[O]);let w=null;if(["date","range"].some(E=>dt(R==null?void 0:R.type,E))){const{value:E,type:N,mode:z}=S||{};if(E&&N&&z)switch(N){case"add":w=n.unref(T).add(E,z);break;case"minus":w=n.unref(T).subtract(E,z);break}w==null&&(w=n.unref(T)),w=(w==null?void 0:w.format((k==null?void 0:k.trim())||R.format))||""}else Object.prototype.toString.call(T)==="[object Object]"?k?w=T[k]:w=O?T[O]:T:dt(R==null?void 0:R.type,"select")&&n.unref(T)&&O&&Array.isArray(n.unref(T))?w=n.unref(T).map(E=>Object.prototype.hasOwnProperty.call(E,O)?E[O]:E):w=T;d[C]=w}else typeof A=="string"&&(d[C]=Be(A))}),d={...window.config.requestParams,...h,...d};let v="";const D=Object.keys(d),x=D.length-1,b=D.length;D.forEach((p,C)=>{let A=d[p];Object.prototype.toString.call(A)==="[object Object]"&&(A=JSON.stringify(A)),C===0?b!==1?v+=`?${p}=${A}&`:v+=`?${p}=${A}`:C===x?v+=`${p}=${A}`:v+=`${p}=${A}&`});try{const p=["get","head"].includes(a),C={};let A=p?g+v:g;d.dataSqlId&&!A.includes("dataSqlId")&&(A+=`${A.includes("?")?"&":"?"}dataSqlId=${d.dataSqlId}`),Object.prototype.hasOwnProperty.call(d,"signal")&&(C.signal=d.signal);const R=await ft({baseURL:n.unref(f)||"",url:A,method:a,headers:r,data:p?{}:d,...C});return o(R),R}catch(p){console.error(p)}},y=l&&setInterval(m,s*1e3);return n.onUnmounted(()=>{clearInterval(y)}),m},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,f=r.length;if(l===1&&!t){const g=[];for(let y=0;y<f;y++){const h=r[y],{label:d,value:v}=h,D={...e[0],value:e[0][v]};i.add(d),g.push(D)}const m=e[0][a]||"";s.set(m,g)}else for(let g=0;g<l;g++){const m=e[g],y=m[a];i.add(y);for(let h=0;h<f;h++){const d=r[h],{label:v,value:D}=d,x={...m,value:m[D]};if(s.has(v)){const b=s.get(v);b.push(x),s.set(v,b)}else s.set(v,[x])}}const c=Array.from(i),u=[];for(const[g,m]of s)u.push({name:g,data:m});return{dimensions:c,dataset:u}},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},ui=(e,o)=>{const t=`${lr}/preview?pageId=${o}`,a=`${lr}/${o}`;return e==="preview"?t:a},nt=(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 f=l;(/\(.*\)/g.test(l)||/[+/\\*]/g.test(l))&&(f=pn(l)),e=e.replace(s,f)}catch{e=e.replace(s,l)}}return e},ot=(e={})=>{const{requestToken:o}=n.inject(or,{requestToken:()=>{}}),{setLoadedData:t}=n.inject(bt,{setLoadedData:(h,d)=>{}}),{getGlobalModel:a}=n.inject(Ae,{getGlobalModel:h=>{}});e.dataType==="indicator"&&o();const r=(h={})=>{const{label:d,name:v,location:D,show:x,indexCode:b}=h;return{label:d,columnName:v,location:D,show:x,calcType:"COLUMN",hrpIndexCode:b}},i=h=>{const{around:d,unit:v,id:D}=h;let x="";const{pageMode:b="",componentList:p=[]}=(e==null?void 0:e.graphicConfig)||{};let C=null,A=null;if(b==="design"){const R=p==null?void 0:p.find(B=>B.id===D);if(!R)return[];const{interval:_,intervalUnit:O,startTime:k,endTime:S,operate:T,useCurrentTime:w}=R||{};if(w&&(C=ve().subtract(_,O),A=ve()),k&&(C=ve(k)),S&&(A=ve(S)),T){const{type:B,value:E,mode:N}=T;switch(B){case"add":C=C&&C.add(E,N),A=A&&A.add(E,N);break;case"minus":C=C&&C.subtract(E,N),A=A&&A.subtract(E,N)}}}else{const R=a(D)||{};n.unref(R.startTime)&&(C=ve(n.unref(R.startTime))),n.unref(R.endTime)&&(A=ve(n.unref(R.endTime)))}if(C&&A){const R=A.diff(C,v.toLowerCase());x=`${d==="before"?"-":""}${R+1}`}return x?[x]:[]},s=(h,d)=>Object.prototype.hasOwnProperty.call(h,d),l=h=>{const{calcWays:d=[],dateCalcTypes:v=[],activeKey:D,componentId:x=""}=h;if(D===5&&(d!=null&&d.length)&&(v!=null&&v.length)&&x){const b=d[0].split("-");(b==null?void 0:b.length)>1&&b[0]==="rangeValue"&&(h.calcWays=i({around:b[1],unit:v[0],id:x})),delete h.radioValue}s(h,"dataType")&&(h.fieldType==="DATE"&&(h.label=h.fieldName),h.dataType==="component"&&(h.fieldValue="${"+h.fieldValue+"}"),delete h.dataType),s(h,"activeKey")&&delete h.activeKey,s(h,"radioValue")&&delete h.radioValue},f=h=>{const d=[];return h!=null&&h.length&&qe.cloneDeep(h).forEach(v=>{if(v.join&&v.conditions){const D=!v.conditions.some(x=>x.join&&x.conditions);v.conditions.forEach((x,b)=>{l(x),D?b<v.conditions.length-1?d.push({join:v.join,...x}):d.push(x):x.join&&x.conditions?d.push({conditions:f([x]),join:v.join}):d.push(x)})}else l(v),d.push(v)}),d},c=(h={},d)=>{if(h!=null&&h.sortCpnts&&d){const w=y(h);w&&(d.sort=w)}const{label:v,name:D,location:x,show:b,indexCode:p,calcType:C="COLUMN",builtInFormula:A,builtInValueSource:R,builtInCalcWay:_,formula:O,conditions:k,aggregate:S}=h;let T;if(k&&(T=f(k)),C==="COMPONENT"){const w={};return m(w,R),{label:v.trim(),columnName:D,show:b,calcType:C,componentAlias:_,componentValue:w.fieldValue||null}}else return{label:v.trim(),columnName:D,location:x,show:b,calcType:C,hrpIndexCode:p,aggregate:S,builtInFormula:A,builtInValueSource:R,builtInCalcWay:_,formula:O,conditions:T}},u=h=>{const d=[];for(const v of h)v.conditions?d.push(...u(v.conditions)):(v==null?void 0:v.dataType)==="component"&&d.push(v);return d},g=h=>{if(!h)return[];const{controlList:d=[],classificationList:v=[],rowHeaderList:D=[],seriesList:x=[],leftAxisList:b=[],rightAxisList:p=[],queryColumnList:C=[],indicators:A=[]}=h,R=[...v,...D,...x,...b,...p,...C,...A],_=[];for(const T of R){const w=u((T==null?void 0:T.conditions)||[]);if(w!=null&&w.length){const B=w.filter(E=>(E==null?void 0:E.dataType)==="component").map(E=>{const N={};return E!=null&&E.dateFormat&&(N.format=E.dateFormat),{conditionKey:E.fieldName,conditionLabel:E.fieldName,conditionName:E.fieldName,conditionValueType:E.fieldType,id:E.componentId,keyName:E.fieldValue,rule:E.rule,notGlobal:!0,...N}});if(B!=null&&B.length)for(const E of B)_.find(N=>N.keyName===E.keyName)||_.push(E)}}const O=d.concat(_),k=O.length,S=[];for(let T=0;T<k;T++){const w=O[T];if((w==null?void 0:w.conditionKey)==="parentCode")continue;const{id:B,keyName:E,conditionLabel:N,conditionKey:z,conditionValueType:P,prop:j,rule:$="NONE",notGlobal:F=!1,format:q,modelKey:L}=w;let I=E||B;I&&j&&(I+=`-${j}`);let M=$;M==="NONE"&&(["startTime","endTime"].includes(j)?M=j==="startTime"?"GREATER_EQUAL":"LESS_EQUAL":E!=null&&E.includes("startTime")?M=j==="GREATER_EQUAL":E!=null&&E.includes("endTime")?M=j==="LESS_EQUAL":M="EQUAL");const U={rule:M,label:N,fieldName:z,fieldValue:"",valueType:P,alias:I,globalCondition:!F};m(U,B,{prop:j,dateFormat:q,modelKey:L,keyName:E}),S.push(U)}for(let T=S.length-1;T>=0;T--){const w=S[T];w.globalCondition||S.find(E=>E.alias===w.alias&&E.globalCondition)&&S.splice(T,1)}return S};function m(h,d,v){var T,w;const D=a(d)||{},{prop:x="",dateFormat:b="",modelKey:p="",keyName:C=""}=v||{},{value:A,format:R="YYYY-MM-DD",type:_="",useCurrentTime:O,RECORD:k}=D||{},S=b||R;if(dt(D.type,"date"))O?A?h.fieldValue=(T=n.unref(A))==null?void 0:T.format(S):h.fieldValue=ve().format(S):h.fieldValue=(w=n.unref(A))==null?void 0:w.format(S),h.dateFormat=S;else if(_==="ecanRangePicker"){let B=x;if(!x){const N=C&&C.split("-");N!=null&&N.length&&(B=N[N.length-1])}if(!B)return;let E=null;n.unref(D[B])&&(E=ve(n.unref(D[B]))),E&&(h.fieldValue=E==null?void 0:E.format(S)),h.dateFormat=S}else dt(_,["table","bar","combograph","line","pie","radar","scatter","list"])?p&&k?h.fieldValue=k[p]:!p&&k?h.fieldValue=k.value:h.fieldValue=n.unref(A):h.fieldValue=n.unref(A)}const y=h=>{const{sortCpnts:d=[]}=h;let v,D="";for(const x of d){const b=a(x)||{},{type:p,RECORD:C}=b;if(dt(p,"image")&&dt(C==null?void 0:C.value,["asc","desc"])){D=C.value.toUpperCase();break}}return D&&(v={label:h.label,columnName:h.name,order:D,type:"NORMAL"}),v};return async(h={})=>{var U,X,W,ae,Y,ie;t(e.id,!1);const{graphicConfig:d,type:v,isGroupTable:D=!1}=e;let{source:x,dataViewId:b,plugin:p="1",layer:C,chartType:A,classificationList:R=[],rowHeaderList:_=[],seriesList:O=[],leftAxisList:k=[],rightAxisList:S=[],queryColumnList:T=[],indicators:w=[],controlList:B=[],formFields:E={},idxLibMode:N,preview:z=!1}=d||{},P=[];(d==null?void 0:d.pageMode)==="design"?P=(d.sqlConditions??[]).map(Q=>{const J=Q.rule||"EQUAL",ee={};return s(Q,"globalCondition")||(ee.globalCondition=!0),{...Q,rule:J==="NONE"?"EQUAL":J,...ee}}):P=g(d),C==null&&(dt(v,["table"])?C="1":dt(v,["select","checkbox","radio"])?C="3":C="2");let j,$="";if(Array.isArray(R)&&R.length>0){const Q=R.length;for(let J=0;J<Q;J++){const ee=R[J]||{},{label:fe="",name:Se="",show:Te=!1,sort:Ie,customGroup:Ye,conditions:Ve,dateFormat:_e,typeGuid:Le="",truncations:Ne=[]}=ee;if(Te||Q===1){$=Le,j={label:fe.trim(),columnName:Se,show:Te,sort:y(ee)||Ie,customGroup:Ye,conditions:f(Ve),typeGuid:Le},_e&&(j.dateFormat=_e),Se==="the_date"&&!j.dateFormat&&(j.dateFormat="YYYY-MM");const Ue={};if(Array.isArray(Ne)&&Ne.length>0){const at=Ne.length;for(let Pe=0;Pe<at;Pe++){const Ge=Ne[Pe]||{},{rule:Ke="",num:rt=0,name:H=""}=Ge;Ke&&rt&&(Ue.num=rt,Ue.rule=Ke,H&&(Ue.otherGroupName=H))}}(U=Object.keys(Ue))!=null&&U.length&&(j.truncation=Ue);break}}}let F;if(Array.isArray(O)&&O.length>0){const Q=O.length;for(let J=0;J<Q;J++){const ee=O[J]||{},{label:fe="",name:Se="",show:Te=!1,sort:Ie,customGroup:Ye,conditions:Ve}=ee;if(Te||Q===1){F={label:fe.trim(),columnName:Se,show:Te,sort:Ie,customGroup:Ye,conditions:f(Ve)};break}}}const q=[];T==null||T.forEach(Q=>{q.push(r(Q))});const L=[];k==null||k.forEach(Q=>{Q.location="LEFT",L.push(c(Q,j))}),S==null||S.forEach(Q=>{Q.location="RIGHT",L.push(c(Q,j))}),w==null||w.forEach(Q=>{Q.location="LEFT",L.push(c(Q,j))});const I=[];if(Array.isArray(_)&&_.length>0){const Q=_.length;for(let J=0;J<Q;J++){const ee=_[J]||{},{label:fe="",name:Se="",show:Te=!1,sort:Ie,customGroup:Ye,conditions:Ve,truncations:_e,typeGuid:Le=""}=ee;let Ne=Ie;if(h.sort){const{field:Pe,order:Ge}=h.sort;let Ke=L.find(rt=>rt.label===Pe);!Ke&&ee.label===Pe&&(Ke=ee),Ke&&(Ne={columnName:Ke.columnName,label:h.sort.field,order:Ge.toUpperCase(),type:"NORMAL"})}const Ue={label:fe.trim(),columnName:Se,show:Te,sort:Ne,customGroup:Ye,conditions:f(Ve),typeGuid:Le},at={};if(Array.isArray(_e)&&_e.length>0){const Pe=_e.length;for(let Ge=0;Ge<Pe;Ge++){const Ke=_e[Ge]||{},{rule:rt="",num:H=0,name:Z=""}=Ke;rt&&H&&(at.num=H,at.rule=rt,Z&&(at.otherGroupName=Z))}}(X=Object.keys(at))!=null&&X.length&&(Ue.truncation=at),I.push(Ue)}}if(dt(v,["text","proportion"])&&(A="zb"),D){if(I.length===0||L.length===0)return;A="grouptable"}else{if(C==="1"&&q.length===0)return;if(C==="2"&&L.length===0)return;if(C==="3"&&(!$||!E.labelField||!E.valueField))return}let M=(W=window==null?void 0:window.config)==null?void 0:W.pageId;if(!M){const{pathname:Q}=window==null?void 0:window.location;if(Q){const J=Q.split("/");J!=null&&J.length&&(M=J[J.length-1])}}if((ae=Object.keys(E))!=null&&ae.length){const Q=B.find(ee=>ee.conditionKey==="parentCode"),J={};if(Q){const ee=a(Q.id)||{};if(ee!=null&&ee.itemCodes)J.parentItemCodes=ee.itemCodes;else return}try{return await ft.post(`${ir}/diagram/formData`,{source:x,dataViewId:b,plugin:"4",layer:C,chartType:"normalSelect",rangeIndexTypeGuid:$,type:"normalSelect",labelField:E.labelField,valueField:E.valueField,pageId:M,sqlConditions:P,idxLibMode:"WITH_DATE_DIM_TABLE",keyName:e.keyName,...J},{headers:{Authentication:(Y=window==null?void 0:window.config)==null?void 0:Y.indicatorToken,operateContext:rr}})}catch(ee){console.error(ee)}finally{}}else try{return await ft.post(`${ir}/diagram`,{source:x,dataViewId:b,plugin:p,layer:C,chartType:A,classification:j,series:F,indicatorList:L,queryColumns:D?[]:q,pageFlag:!0,pageId:M,sqlConditions:P.map(J=>{const{fieldValue:ee}=J,fe={};return ee&&Array.isArray(ee)&&(fe.fieldValue=JSON.stringify(ee)),{...J,...fe}}),idxLibMode:N,preview:z,rowHeaders:I,keyName:e.keyName},{headers:{Authentication:(ie=window==null?void 0:window.config)==null?void 0:ie.indicatorToken,operateContext:rr}})}catch(Q){console.error(Q)}finally{}}},hc=()=>{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}},gc=n.defineComponent({name:"EcanPageConfig",inheritAttrs:!1,props:{...On},setup(e){const{width:o,height:t}=n.inject(Me,{width:null,height:null}),a=n.inject("setPageHeight",p=>{}),r=n.inject("isMobile",!1),i=n.computed(()=>{const p={};return r||(p.width=o.value,p.height=t.value),{...p,backgroundColor:e.backgroundColor,backgroundImage:At(e.backgroundImage,!0),backgroundSize:e.backgroundSize}}),s=n.ref(0),l=n.ref(0),f=n.ref(0),c=n.ref(0),u=n.ref(!1),g=n.ref();let m;const y=()=>new Promise(p=>{n.nextTick(()=>{o.value&&t.value?(s.value=parseFloat(o.value),l.value=parseFloat(t.value)):(s.value=g.value.clientWidth,l.value=g.value.clientHeight),(!f.value||!c.value)&&(f.value=window.screen.width,c.value=window.screen.height),p()})}),h=()=>{s.value&&l.value?(g.value.style.width=`${s.value}px`,g.value.style.height=`${l.value}px`):(g.value.style.width=`${f.value}px`,g.value.style.height=`${c.value}px`)};n.watch([o,t],async()=>{await y(),h(),v(),window.addEventListener("resize",D),x(),u.value=!0},{immediate:!0});const d=n.ref({});n.provide("scaleValue",d);const v=()=>{if(r){g.value.style.width="100%",g.value.style.height="auto",a("auto");return}const p=document.body.clientWidth,C=document.body.clientHeight,A=s.value||f.value,R=l.value||c.value,_=p/A;let O=C/R;(s.value!==1920||l.value!==1080)&&(O=l.value/s.value*p/R),d.value={widthScale:_,heightScale:O},g.value&&(g.value.style.transform=`scale(${_}, ${O})`),a(O)},D=qe.debounce(async()=>{await y(),v()},100),x=()=>{const p=window.MutationObserver;m=new p(D),m.observe(g.value,{attributes:!0,attributeFilter:["style"],attributeOldValue:!0})},b=()=>{m&&(m.disconnect(),m.takeRecords(),m=null)};return n.onMounted(()=>{u.value=!1}),n.onUnmounted(()=>{window.removeEventListener("resize",D),b()}),{style:i,container:g,ready:u}}}),Cu="",mc={id:"container",ref:"container"};function yc(e,o,t,a,r,i){return n.openBlock(),n.createElementBlock("div",mc,[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 hi=xe(ye(gc,[["render",yc],["__scopeId","data-v-b496b36e"]])),ko={contextRequestUrl:"",pageMode:"normal",theme:"light",containerMap:{},combinationMap:{},width:"1920px",height:"1080px"},To=be(ko),xc=n.defineComponent({name:"EcanProviderConfig",inheritAttrs:!1,props:{...To},setup(e,{expose:o}){hc();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(()=>Be(e.contextRequestUrl)),l=n.computed(()=>e.pageMode),f=n.computed(()=>e.theme),c=n.computed(()=>e.width),u=n.computed(()=>e.height),g=n.ref("");n.provide(Me,{contextRequestUrl:s,pageMode:l,theme:f,touchEventId:g,width:c,height:u});const m=n.ref({height:"100%",overflow:e.pageMode==="design"?"":"hidden"});n.provide("setPageHeight",M=>{let U=M;t.value||(U=parseFloat(u.value)*M+"px"),m.value.height=U}),n.provide("isMobile",t.value),n.provide("getContainerMap",()=>e.containerMap),n.provide("getCombinationMap",()=>e.combinationMap);const y=n.ref(),h=new Map;console.log("globalModel",h);const d=M=>h.get(M),v=(M,U)=>{y.value=U,h.set(M,U)},D=()=>{y.value=null},x=M=>{let U=M;if(U){const X=M.match(/\{(.+?)\}/g);if(X!=null&&X.length){let W=X[0].slice(1,-1).trim();const ae=W.match(/\[(.+?)\]/g);let Y="";ae!=null&&ae.length&&(W=W.replace(ae[0],""),Y=ae[0].slice(1,-1).trim());const ie=n.unref(i).find(Q=>Q.keyName===W);if(ie){const Q=d(ie.id),{type:J,value:ee,RECORD:fe}=Q||{};dt(J,["table","bar","combograph","line","pie","radar","scatter","list"])?U=fe[Y]:U=ee}}}return U};n.provide(Ae,{getGlobalModel:d,setGlobalModel:v,clearInteractiveData:D,getRecordValueByKeyName:x,interactiveData:y});const b=n.ref({}),p=(M,U)=>{b.value[M]=U};n.provide(bt,{loadedData:b,setLoadedData:p});const C=[],A=()=>{C.pop()},R=M=>{C.push(M)},_=new Map,O=M=>_.get(M),k=(M,U)=>{_.set(M,U)};n.provide(ar,{popUseModalIds:A,pushUseModalIds:R,getModalModel:O,setModalModel:k});const S=N0(),T=new Set,w=(M,U)=>{T.add(M),S.on(M,X=>typeof U[X]=="function"&&U[X]()),n.onBeforeUnmount(()=>{B(M)})},B=M=>{T.delete(M),S.off(M)},E=(M,U)=>{if(M==="PAGE"){const X=C.length;let W=[];if(X===0)W=[...T];else{const ae=C[X-1];W=[...O(ae)]}W.forEach(ae=>{S.emit(ae,U)})}else S.emit(M,U)};n.provide(Ln,{onEvent:w,offEvent:B,emitEvent:E});const N=n.ref(0),z=()=>{N.value=n.unref(N)+1};n.provide(or,{requestToken:z});const P=new Map,j=new Map,$=({requestFn:M=()=>{},sortNum:U=0,id:X=""})=>{if(P.has(U)){const W=P.get(U);W==null||W.push(M)}else P.set(U,[M]);j.set(X,M)},F=M=>new Promise((U,X)=>{const W=M.map(ae=>ae());Promise.all(W).then(ae=>{U(ae)}).catch(ae=>{X(ae)})}),q=M=>new Promise(async(U,X)=>{if(M){if(typeof M=="string"){const W=j.get(M);if(typeof W=="function"){const ae=ft.interceptors.response.use(Y=>(U(Y),Y),Y=>(X(Y),Promise.reject(Y)));W(),ft.interceptors.response.eject(ae)}}}else{const W=Array.from(P);W.sort((Y,ie)=>ie[0]-Y[0]);const ae=W.length;try{e.pageMode!=="design"&&n.unref(N)>0;for(let Y=0;Y<ae;Y++){const ie=W[Y][1];await F(ie)}}catch(Y){console.error(Y)}finally{P.clear(),U(null)}}});n.provide(ze,{setRequest:$,touchRequest:q});const L=()=>{S.emit(Qt)};n.provide(Qt,{emitRefreshPage:L});const I=M=>{S.on(Qt,()=>M()),n.onMounted(()=>{S.off(Qt)})};return n.onBeforeUnmount(()=>{P==null||P.clear(),j==null||j.clear()}),o({touchRequest:q,getGlobalModel:d,onRefreshPage:I}),{providerConfig:a,configStyle:m}}}),Au="";function pc(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 gi=xe(ye(xc,[["render",pc],["__scopeId","data-v-1ab62961"]])),Bo={...we,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"},Eo=be(Bo),mi=["refreshData","click","valueChange"],Do="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=",Ro="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==",Io=n.defineComponent({name:"EcanText",components:{Skeleton:an},props:{...Eo},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,T])=>{T==="static"&&(r.value=S)},{immediate:!0});const{getGlobalModel:l,setGlobalModel:f}=n.inject(Ae,{getGlobalModel:S=>{},setGlobalModel:(S,T)=>{}}),{setLoadedData:c}=n.inject(bt,{setLoadedData:(S,T)=>{}}),u=n.computed(()=>{let S="";if(e.gradientShow){const{gradientColor:T,gradientOffset:w,gradientAngle:B,color:E}=e;S+=`background: linear-gradient(${B}, ${E}, ${T||"transparent"} ${w*100}%);-webkit-background-clip: text;color: transparent;`}return S}),g=n.computed(()=>{const S={};if(e.gradientShow){const{gradientColor:T,gradientOffset:w,gradientAngle:B,color:E}=e,N=T||"transparent";S.background=`linear-gradient(${B}, ${E}, ${N} ${w*100}%)`,S["-webkit-background-clip"]="text",S.color="transparent"}return S}),m=n.computed(()=>{var z;if(n.unref(t))return"NaN";const S=n.unref(r),T=e.increaseColor||e.color,w=e.declineColor||e.color;let B=e.text;B=B==null?void 0:B.replace(/\n|\\n/g,"<br/>"),B=B==null?void 0:B.replace(/\s(?!\{) | (?!\})\s/g,"&nbsp;");const E=B.match(/\{(.+?)\}/g)||[];let N="";if(E==null||E.length===0){if(B&&e.format==="percentage"&&!isNaN(+B)){const P=parseFloat(B),j=P*100,$=y(j.toFixed(2));P>=0?B=`<span style="color: ${$||T||"#ED6643"};font-size:${n.unref(i)};display: inline-block;${n.unref(u)}">
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}(ec),Ao,rc=typeof process<"u"?(Ao=process.env)===null||Ao===void 0?void 0:Ao.npm_package_version:void 0,ic=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 ii(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(Qr(o))}catch{return!1}},e.prototype.encrypt=function(o){try{return cn(this.getKey().encrypt(o))}catch{return!1}},e.prototype.sign=function(o,t,a){try{return cn(this.getKey().sign(o,t,a))}catch{return!1}},e.prototype.verify=function(o,t,a){try{return this.getKey().verify(o,Qr(t),a)}catch{return!1}},e.prototype.getKey=function(o){if(!this.key){if(this.key=new ii,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=rc,e}();const li=new ic,Wt=lc();function lc(){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 si=Ke.enc.Utf8.parse("ABCDEF1234123412");function sc(e,o){o=o||Wt;const t=Ke.enc.Utf8.parse(o);let a="";switch(typeof e){case"string":a=Ke.enc.Utf8.parse(e);break;case"object":a=Ke.enc.Utf8.parse(JSON.stringify(e));break;default:a=Ke.enc.Utf8.parse(e.toString())}return Ke.AES.encrypt(a,t,{iv:si,mode:Ke.mode.CBC,padding:Ke.pad.ZeroPadding}).toString()}function ci(e,o){o=o||Wt;const t=Ke.enc.Utf8.parse(o),a=Ke.AES.decrypt(e,t,{iv:si,mode:Ke.mode.CBC,padding:Ke.pad.ZeroPadding});return Ke.enc.Utf8.stringify(a).toString()}function cc(e){li.setPublicKey(e)}function dc(e){return li.encrypt(e)}function di(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 fc(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)}&`}}cc("MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBAMKaTbS1XHH7u/4dhao1n5Lcegpy6AHKX2TjmTP7IDW6N4wznqlL3Tt+U0/Il1TlNp1/EN+tffYYg4dPrrCUDwcCAwEAAQ==");const r=dc(Wt);return{c:sc(t,Wt),p:r}}window.getEncryptParam=Ut;function uc(e,o){var t;(t=window==null?void 0:window.config)!=null&&t.encryptFlag&&di(e.url)&&(e.data instanceof FormData?e.data=hc(e.data):fc(e))}function hc(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=ci;function fi(e,o){var t;if((t=window==null?void 0:window.config)!=null&&t.encryptFlag&&di(e.config.url)&&!(e.data instanceof Blob)&&e.data.data!==void 0){const a=ci(e.data.data.content,Wt);e.data=JSON.parse(a)}}const ui=window.config.requestErrorTip,ct=zl.create({timeout:1e3*180});ct.interceptors.request.use(e=>{const{requestParams:o={}}=window.config;return o!=null&&o.pltToken&&(e.headers["Plt-Token"]=o.pltToken),uc(e),e},e=>Promise.reject(e)),ct.interceptors.response.use(e=>{var o,t,a;return ui&&+((o=e==null?void 0:e.data)==null?void 0:o.code)==500&&se.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}),fi(e),e},e=>{if(fi(e==null?void 0:e.response),ui)if(e.message.includes("timeout"))se.message.error({content:"网络连接超时,请重试!",key:"TIMEOUT",duration:2});else{const{status:o}=(e==null?void 0:e.response)||{};o>=400&&o<500&&se.message.error({content:"请求异常",key:"REQUEST_ERROR",duration:2}),o>=500&&se.message.error({content:"服务器异常",key:"REQUEST_ERROR",duration:2})}return Promise.reject(e)});const gc=e=>e.replace(/\\n/g,`
97
+ `),ko=(e,o=2)=>{const t=parseFloat(e+"");return isNaN(t)?e:t.toFixed(o).replace(/(\d)(?=(\d{3})+\.)/g,"$1,")},mc=e=>{const o=parseFloat(e+"");return isNaN(o)?e:(o+"").replace(/\B(?=(\d{3})+(?!\d))/g,",")},xn=(e,o=2)=>{const t=e+"";if(t.includes("%"))return e;const a=parseFloat(t);return isNaN(a)?e:`${(a*100).toFixed(o)}%`},yc=(e,o=2)=>{const t=e+"",a=parseFloat(t);return isNaN(a)?e:a.toFixed(o)},hi=(e,o)=>ot(o,e),dt=(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},pn=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),Xt=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}))},nt=(e,o)=>{let t=!0;const a=Xt(e);return a!=null&&a.length&&(t=a.map(r=>o[r.id]).every(r=>r)),t},en=(e,o)=>{var s;const t=e.match(/\{(.+?)\}/g),a=((s=e.split(`
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},bn=(e,o)=>{const t={dayjs:Se,...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 g=/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,m=f.match(g);for(let u=0;u<m.length;u++){const y=m[u],h=s[y];h!=null&&typeof h!="function"&&(f=f.replace(y,h))}(/\(.*\)/g.test(f)||/[+/\\*]/g.test(f))&&(f=bn(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,"&nbsp;&nbsp;")),e},Ve=(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(ke,{getGlobalModel:y=>{}}),g=De(t),m=async(y={})=>{if(!g||!a||!r)return;let h={};i.forEach(x=>{const{key:A,value:T}=x;if(typeof T=="object"&&T!=null&&T.id){let D={};const{id:O,prop:_,propKey:k,operate:S}=T;O==="THIS"?D=f(n.unref(c))||{}:D=f(O)||{};const B=n.unref(D[_]);let w=null;if(["date","range"].some(I=>dt(D==null?void 0:D.type,I))){const{value:I,type:N,mode:M}=S||{};if(I&&N&&M)switch(N){case"add":w=n.unref(B).add(I,M);break;case"minus":w=n.unref(B).subtract(I,M);break}w==null&&(w=n.unref(B)),w=(w==null?void 0:w.format((k==null?void 0:k.trim())||D.format))||""}else Object.prototype.toString.call(B)==="[object Object]"?k?w=B[k]:w=_?B[_]:B:dt(D==null?void 0:D.type,"select")&&n.unref(B)&&_&&Array.isArray(n.unref(B))?w=n.unref(B).map(I=>Object.prototype.hasOwnProperty.call(I,_)?I[_]:I):w=B;h[A]=w}else typeof T=="string"&&(h[A]=De(T))}),h={...window.config.requestParams,...y,...h};let v="";const E=Object.keys(h),p=E.length-1,b=E.length;E.forEach((x,A)=>{let T=h[x];Object.prototype.toString.call(T)==="[object Object]"&&(T=JSON.stringify(T)),A===0?b!==1?v+=`?${x}=${T}&`:v+=`?${x}=${T}`:A===p?v+=`${x}=${T}`:v+=`${x}=${T}&`});try{const x=["get","head"].includes(a),A={};let T=x?g+v:g;h.dataSqlId&&!T.includes("dataSqlId")&&(T+=`${T.includes("?")?"&":"?"}dataSqlId=${h.dataSqlId}`),Object.prototype.hasOwnProperty.call(h,"signal")&&(A.signal=h.signal);const D=await ct({baseURL:n.unref(d)||"",url:T,method:a,headers:r,data:x?{}:h,...A});return o(D),D}catch(x){console.error(x)}},u=l&&setInterval(m,s*1e3);return n.onUnmounted(()=>{clearInterval(u)}),m},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 g=[];for(let u=0;u<d;u++){const y=r[u],{label:h,value:v}=y,E={...e[0],value:e[0][v]};i.add(h),g.push(E)}const m=e[0][a]||"";s.set(m,g)}else for(let g=0;g<l;g++){const m=e[g],u=m[a];i.add(u);for(let y=0;y<d;y++){const h=r[y],{label:v,value:E}=h,p={...m,value:m[E]};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[g,m]of s)f.push({name:g,data:m});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},gi=(e,o)=>{const t=`${cr}/preview?pageId=${o}`,a=`${cr}/${o}`;return e==="preview"?t:a},ot=(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=bn(l)),e=e.replace(s,d)}catch{e=e.replace(s,l)}}return e},at=(e={})=>{const{requestToken:o}=n.inject(rr,{requestToken:()=>{}}),{setLoadedData:t}=n.inject(bt,{setLoadedData:(u,y)=>{}}),{getGlobalModel:a}=n.inject(ke,{getGlobalModel:u=>{}});e.dataType==="indicator"&&o();const r=u=>{const{around:y,unit:h,id:v}=u;let E="";const{pageMode:p="",componentList:b=[]}=(e==null?void 0:e.graphicConfig)||{};let x=null,A=null;if(p==="design"){const T=b==null?void 0:b.find(w=>w.id===v);if(!T)return[];const{interval:D,intervalUnit:O,startTime:_,endTime:k,operate:S,useCurrentTime:B}=T||{};if(B&&(x=Se().subtract(D,O),A=Se()),_&&(x=Se(_)),k&&(A=Se(k)),S){const{type:w,value:C,mode:I}=S;switch(w){case"add":x=x&&x.add(C,I),A=A&&A.add(C,I);break;case"minus":x=x&&x.subtract(C,I),A=A&&A.subtract(C,I)}}}else{const T=a(v)||{};n.unref(T.startTime)&&(x=Se(n.unref(T.startTime))),n.unref(T.endTime)&&(A=Se(n.unref(T.endTime)))}if(x&&A){const T=A.diff(x,h.toLowerCase());E=`${y==="before"?"-":""}${T+1}`}return E?[E]:[]},i=(u,y)=>Object.prototype.hasOwnProperty.call(u,y),s=u=>{const{calcWays:y=[],dateCalcTypes:h=[],activeKey:v,componentId:E=""}=u;if(v===5&&(y!=null&&y.length)&&(h!=null&&h.length)&&E){const p=y[0].split("-");(p==null?void 0:p.length)>1&&p[0]==="rangeValue"&&(u.calcWays=r({around:p[1],unit:h[0],id:E})),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},l=u=>{const y=[];return u!=null&&u.length&&He.cloneDeep(u).forEach(h=>{if(h.join&&h.conditions){const v=!h.conditions.some(E=>E.join&&E.conditions);h.conditions.forEach((E,p)=>{s(E),v?p<h.conditions.length-1?y.push({join:h.join,...E}):y.push(E):E.join&&E.conditions?y.push({conditions:l([E]),join:h.join}):y.push(E)})}else s(h),y.push(h)}),y},d=(u={},y)=>{if(u!=null&&u.sortCpnts&&y){const B=m(u);B&&(y.sort=B)}const{label:h,name:v,location:E,show:p,indexCode:b,calcType:x="COLUMN",builtInFormula:A,builtInValueSource:T,builtInCalcWay:D,formula:O,conditions:_,aggregate:k}=u;let S;if(_&&(S=l(_)),x==="COMPONENT"){const B={};return g(B,T),{label:h.trim(),columnName:v,show:p,calcType:x,componentAlias:D,componentValue:B.fieldValue||null}}else return{label:h.trim(),columnName:v,location:E,show:p,calcType:x,hrpIndexCode:b,aggregate:k,builtInFormula:A,builtInValueSource:T,builtInCalcWay:D,formula:O,conditions:S}},c=u=>{const y=[];for(const h of u)h.conditions?y.push(...c(h.conditions)):(h==null?void 0:h.dataType)==="component"&&y.push(h);return y},f=u=>{if(!u)return[];const{controlList:y=[],classificationList:h=[],rowHeaderList:v=[],seriesList:E=[],leftAxisList:p=[],rightAxisList:b=[],queryColumnList:x=[],indicators:A=[]}=u,T=[...h,...v,...E,...p,...b,...x,...A],D=[];for(const S of T){const B=c((S==null?void 0:S.conditions)||[]);if(B!=null&&B.length){const w=B.filter(C=>(C==null?void 0:C.dataType)==="component").map(C=>{const I={};return C!=null&&C.dateFormat&&(I.format=C.dateFormat),{conditionKey:C.fieldName,conditionLabel:C.fieldName,conditionName:C.fieldName,conditionValueType:C.fieldType,id:C.componentId,keyName:C.fieldValue,rule:C.rule,notGlobal:!0,...I}});if(w!=null&&w.length)for(const C of w)D.find(I=>I.keyName===C.keyName)||D.push(C)}}const O=y.concat(D),_=O.length,k=[];for(let S=0;S<_;S++){const B=O[S];if((B==null?void 0:B.conditionKey)==="parentCode")continue;const{id:w,keyName:C,conditionLabel:I,conditionKey:N,conditionValueType:M,prop:P,rule:W="NONE",notGlobal:$=!1,format:z,modelKey:q}=B;let L=C||w;L&&P&&(L+=`-${P}`);let R=W;R==="NONE"&&(["startTime","endTime"].includes(P)?R=P==="startTime"?"GREATER_EQUAL":"LESS_EQUAL":C!=null&&C.includes("startTime")?R=P==="GREATER_EQUAL":C!=null&&C.includes("endTime")?R=P==="LESS_EQUAL":R="EQUAL");const F={rule:R,label:I,fieldName:N,fieldValue:"",valueType:M,alias:L,globalCondition:!$};g(F,w,{prop:P,dateFormat:z,modelKey:q,keyName:C}),k.push(F)}for(let S=k.length-1;S>=0;S--){const B=k[S];B.globalCondition||k.find(C=>C.alias===B.alias&&C.globalCondition)&&k.splice(S,1)}return k};function g(u,y,h){var S,B;const v=a(y)||{},{prop:E="",dateFormat:p="",modelKey:b="",keyName:x=""}=h||{},{value:A,format:T="YYYY-MM-DD",type:D="",useCurrentTime:O,RECORD:_}=v||{},k=p||T;if(dt(v.type,"date"))O?A?u.fieldValue=(S=n.unref(A))==null?void 0:S.format(k):u.fieldValue=Se().format(k):u.fieldValue=(B=n.unref(A))==null?void 0:B.format(k),u.dateFormat=k;else if(D==="ecanRangePicker"){let w=E;if(!E){const I=x&&x.split("-");I!=null&&I.length&&(w=I[I.length-1])}if(!w)return;let C=null;n.unref(v[w])&&(C=Se(n.unref(v[w]))),C&&(u.fieldValue=C==null?void 0:C.format(k)),u.dateFormat=k}else dt(D,["table","bar","combograph","line","pie","radar","scatter","list"])?b&&_?u.fieldValue=_[b]:!b&&_?u.fieldValue=_.value:u.fieldValue=n.unref(A):u.fieldValue=n.unref(A)}const m=u=>{const{sortCpnts:y=[]}=u;let h,v="";for(const E of y){const p=a(E)||{},{type:b,RECORD:x}=p;if(dt(b,"image")&&dt(x==null?void 0:x.value,["asc","desc"])){v=x.value.toUpperCase();break}}return v&&(h={label:u.label,columnName:u.name,order:v,type:"NORMAL"}),h};return async(u={})=>{var F,j,ee,G,ae,Y;t(e.id,!1);const{graphicConfig:y,type:h,isGroupTable:v=!1}=e;let{source:E,dataViewId:p,plugin:b="1",layer:x,chartType:A,classificationList:T=[],rowHeaderList:D=[],seriesList:O=[],leftAxisList:_=[],rightAxisList:k=[],queryColumnList:S=[],indicators:B=[],controlList:w=[],formFields:C={},idxLibMode:I,preview:N=!1}=y||{},M=[];(y==null?void 0:y.pageMode)==="design"?M=(y.sqlConditions??[]).map(Q=>{const J=Q.rule||"EQUAL",X={};return i(Q,"globalCondition")||(X.globalCondition=!0),{...Q,rule:J==="NONE"?"EQUAL":J,...X}}):M=f(y),x==null&&(dt(h,["table"])?x="1":dt(h,["select","checkbox","radio"])?x="3":x="2");let P,W="";if(Array.isArray(T)&&T.length>0){const Q=T.length;for(let J=0;J<Q;J++){const X=T[J]||{},{label:re="",name:de="",show:pe=!1,sort:Be,customGroup:Ee,conditions:je,dateFormat:Ne,typeGuid:Re="",truncations:Ae=[]}=X;if(pe||Q===1){W=Re,P={label:re.trim(),columnName:de,show:pe,sort:m(X)||Be,customGroup:Ee,conditions:l(je),typeGuid:Re},Ne&&(P.dateFormat=Ne),de==="the_date"&&!P.dateFormat&&(P.dateFormat="YYYY-MM");const Fe={};if(Array.isArray(Ae)&&Ae.length>0){const $e=Ae.length;for(let Qe=0;Qe<$e;Qe++){const We=Ae[Qe]||{},{rule:qe="",num:lt=0,name:ft=""}=We;qe&&lt&&(Fe.num=lt,Fe.rule=qe,ft&&(Fe.otherGroupName=ft))}}(F=Object.keys(Fe))!=null&&F.length&&(P.truncation=Fe);break}}}let $;if(Array.isArray(O)&&O.length>0){const Q=O.length;for(let J=0;J<Q;J++){const X=O[J]||{},{label:re="",name:de="",show:pe=!1,sort:Be,customGroup:Ee,conditions:je}=X;if(pe||Q===1){$={label:re.trim(),columnName:de,show:pe,sort:Be,customGroup:Ee,conditions:l(je)};break}}}const z=[];_==null||_.forEach(Q=>{Q.location="LEFT",z.push(d(Q,P))}),k==null||k.forEach(Q=>{Q.location="RIGHT",z.push(d(Q,P))}),B==null||B.forEach(Q=>{Q.location="LEFT",z.push(d(Q,P))});const q=[];S==null||S.forEach(Q=>{const{label:J,name:X,location:re,show:de,indexCode:pe,sort:Be}=Q;let Ee=Be;if(u.sort){const{field:je,order:Ne}=u.sort;let Re=z.find(Ae=>Ae.label===je);!Re&&J===je&&(Re=Q),Re&&(Ee={columnName:Re.columnName,label:u.sort.field,order:Ne.toUpperCase(),type:"NORMAL"})}q.push({label:J,columnName:X,location:re,show:de,sort:Ee,calcType:"COLUMN",hrpIndexCode:pe})});const L=[];if(Array.isArray(D)&&D.length>0){const Q=D.length;for(let J=0;J<Q;J++){const X=D[J]||{},{label:re="",name:de="",show:pe=!1,sort:Be,customGroup:Ee,conditions:je,truncations:Ne,typeGuid:Re=""}=X;let Ae=Be;if(u.sort){const{field:Qe,order:We}=u.sort;let qe=z.find(lt=>lt.label===Qe);!qe&&X.label===Qe&&(qe=X),qe&&(Ae={columnName:qe.columnName,label:u.sort.field,order:We.toUpperCase(),type:"NORMAL"})}const Fe={label:re.trim(),columnName:de,show:pe,sort:Ae,customGroup:Ee,conditions:l(je),typeGuid:Re},$e={};if(Array.isArray(Ne)&&Ne.length>0){const Qe=Ne.length;for(let We=0;We<Qe;We++){const qe=Ne[We]||{},{rule:lt="",num:ft=0,name:V=""}=qe;lt&&ft&&($e.num=ft,$e.rule=lt,V&&($e.otherGroupName=V))}}(j=Object.keys($e))!=null&&j.length&&(Fe.truncation=$e),L.push(Fe)}}if(dt(h,["text","proportion"])&&(A="zb"),v){if(L.length===0||z.length===0)return;A="grouptable"}else{if(x==="1"&&q.length===0)return;if(x==="2"&&z.length===0)return;if(x==="3"&&(!W||!C.labelField||!C.valueField))return}let R=(ee=window==null?void 0:window.config)==null?void 0:ee.pageId;if(!R){const{pathname:Q}=window==null?void 0:window.location;if(Q){const J=Q.split("/");J!=null&&J.length&&(R=J[J.length-1])}}if((G=Object.keys(C))!=null&&G.length){const Q=w.find(X=>X.conditionKey==="parentCode"),J={};if(Q){const X=a(Q.id)||{};if(X!=null&&X.itemCodes)J.parentItemCodes=X.itemCodes;else return}try{return await ct.post(`${sr}/diagram/formData`,{source:E,dataViewId:p,plugin:"4",layer:x,chartType:"normalSelect",rangeIndexTypeGuid:W,type:"normalSelect",labelField:C.labelField,valueField:C.valueField,pageId:R,sqlConditions:M,idxLibMode:"WITH_DATE_DIM_TABLE",keyName:e.keyName,...J},{headers:{Authentication:(ae=window==null?void 0:window.config)==null?void 0:ae.indicatorToken,operateContext:lr}})}catch(X){console.error(X)}finally{}}else try{return await ct.post(`${sr}/diagram`,{source:E,dataViewId:p,plugin:b,layer:x,chartType:A,classification:P,series:$,indicatorList:z,queryColumns:v?[]:q,pageFlag:!0,pageId:R,sqlConditions:M.map(J=>{const{fieldValue:X}=J,re={};return X&&Array.isArray(X)&&(re.fieldValue=JSON.stringify(X)),{...J,...re}}),idxLibMode:I,preview:N,rowHeaders:L,keyName:e.keyName},{headers:{Authentication:(Y=window==null?void 0:window.config)==null?void 0:Y.indicatorToken,operateContext:lr}})}catch(Q){console.error(Q)}finally{}}},xc=()=>{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}},pc=n.defineComponent({name:"EcanPageConfig",inheritAttrs:!1,props:{...Ln},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),g=n.ref();let m;const u=()=>new Promise(x=>{n.nextTick(()=>{o.value&&t.value?(s.value=parseFloat(o.value),l.value=parseFloat(t.value)):(s.value=g.value.clientWidth,l.value=g.value.clientHeight),(!d.value||!c.value)&&(d.value=window.screen.width,c.value=window.screen.height),x()})}),y=()=>{s.value&&l.value?(g.value.style.width=`${s.value}px`,g.value.style.height=`${l.value}px`):(g.value.style.width=`${d.value}px`,g.value.style.height=`${c.value}px`)};n.watch([o,t],async()=>{await u(),y(),v(),window.addEventListener("resize",E),p(),f.value=!0},{immediate:!0});const h=n.ref({});n.provide("scaleValue",h);const v=()=>{if(r){g.value.style.width="100%",g.value.style.height="auto",a("auto");return}const x=document.body.clientWidth,A=document.body.clientHeight,T=s.value||d.value,D=l.value||c.value,O=x/T;let _=A/D;(s.value!==1920||l.value!==1080)&&(_=l.value/s.value*x/D),h.value={widthScale:O,heightScale:_},g.value&&(g.value.style.transform=`scale(${O}, ${_})`),a(_)},E=He.debounce(async()=>{await u(),v()},100),p=()=>{const x=window.MutationObserver;m=new x(E),m.observe(g.value,{attributes:!0,attributeFilter:["style"],attributeOldValue:!0})},b=()=>{m&&(m.disconnect(),m.takeRecords(),m=null)};return n.onMounted(()=>{f.value=!1}),n.onUnmounted(()=>{window.removeEventListener("resize",E),b()}),{style:i,container:g,ready:f}}}),ku="",bc={id:"container",ref:"container"};function vc(e,o,t,a,r,i){return n.openBlock(),n.createElementBlock("div",bc,[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 mi=xe(ye(pc,[["render",vc],["__scopeId","data-v-b496b36e"]])),To={contextRequestUrl:"",pageMode:"normal",theme:"light",containerMap:{},combinationMap:{},width:"1920px",height:"1080px"},Bo=ve(To),Sc=n.defineComponent({name:"EcanProviderConfig",inheritAttrs:!1,props:{...Bo},setup(e,{expose:o}){xc();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),g=n.ref("");n.provide(Me,{contextRequestUrl:s,pageMode:l,theme:d,touchEventId:g,width:c,height:f});const m=n.ref({height:"100%",overflow:e.pageMode==="design"?"":"hidden"});n.provide("setPageHeight",F=>{let j=F;t.value||(j=parseFloat(f.value)*F+"px"),m.value.height=j}),n.provide("isMobile",t.value),n.provide("getContainerMap",()=>e.containerMap),n.provide("getCombinationMap",()=>e.combinationMap);const u=n.ref(),y=new Map;console.log("globalModel",y);const h=F=>y.get(F),v=(F,j)=>{u.value=j,y.set(F,j)},E=()=>{u.value=null},p=F=>{let j=F;if(j){const ee=F.match(/\{(.+?)\}/g);if(ee!=null&&ee.length){let G=ee[0].slice(1,-1).trim();const ae=G.match(/\[(.+?)\]/g);let Y="";ae!=null&&ae.length&&(G=G.replace(ae[0],""),Y=ae[0].slice(1,-1).trim());const Q=n.unref(i).find(J=>J.keyName===G);if(Q){const J=h(Q.id),{type:X,value:re,RECORD:de}=J||{};dt(X,["table","bar","combograph","line","pie","radar","scatter","list"])?j=de[Y]:j=re}}}return j};n.provide(ke,{getGlobalModel:h,setGlobalModel:v,clearInteractiveData:E,getRecordValueByKeyName:p,interactiveData:u});const b=n.ref({}),x=(F,j)=>{b.value[F]=j};n.provide(bt,{loadedData:b,setLoadedData:x});const A=[],T=()=>{A.pop()},D=F=>{A.push(F)},O=new Map,_=F=>O.get(F),k=(F,j)=>{O.set(F,j)};n.provide(ir,{popUseModalIds:T,pushUseModalIds:D,getModalModel:_,setModalModel:k});const S=Pl(),B=new Set,w=(F,j)=>{B.add(F),S.on(F,ee=>typeof j[ee]=="function"&&j[ee]()),n.onBeforeUnmount(()=>{C(F)})},C=F=>{B.delete(F),S.off(F)},I=(F,j)=>{if(F==="PAGE"){const ee=A.length;let G=[];if(ee===0)G=[...B];else{const ae=A[ee-1];G=[..._(ae)]}G.forEach(ae=>{S.emit(ae,j)})}else S.emit(F,j)};n.provide(Nn,{onEvent:w,offEvent:C,emitEvent:I});const N=n.ref(0),M=()=>{N.value=n.unref(N)+1};n.provide(rr,{requestToken:M});const P=new Map,W=new Map,$=({requestFn:F=()=>{},sortNum:j=0,id:ee=""})=>{if(P.has(j)){const G=P.get(j);G==null||G.push(F)}else P.set(j,[F]);W.set(ee,F)},z=F=>new Promise((j,ee)=>{const G=F.map(ae=>ae());Promise.all(G).then(ae=>{j(ae)}).catch(ae=>{ee(ae)})}),q=F=>new Promise(async(j,ee)=>{if(F){if(typeof F=="string"){const G=W.get(F);if(typeof G=="function"){const ae=ct.interceptors.response.use(Y=>(j(Y),Y),Y=>(ee(Y),Promise.reject(Y)));G(),ct.interceptors.response.eject(ae)}}}else{const G=Array.from(P);G.sort((Y,Q)=>Q[0]-Y[0]);const ae=G.length;try{e.pageMode!=="design"&&n.unref(N)>0;for(let Y=0;Y<ae;Y++){const Q=G[Y][1];await z(Q)}}catch(Y){console.error(Y)}finally{P.clear(),j(null)}}});n.provide(ze,{setRequest:$,touchRequest:q});const L=()=>{S.emit(Qt)};n.provide(Qt,{emitRefreshPage:L});const R=F=>{S.on(Qt,()=>F()),n.onMounted(()=>{S.off(Qt)})};return n.onBeforeUnmount(()=>{P==null||P.clear(),W==null||W.clear()}),o({touchRequest:q,getGlobalModel:h,onRefreshPage:R}),{providerConfig:a,configStyle:m}}}),Bu="";function Cc(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 yi=xe(ye(Sc,[["render",Cc],["__scopeId","data-v-1ab62961"]])),Eo={...we,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"},Do=ve(Eo),xi=["refreshData","click","valueChange"],Ro="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=",Io="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==",_o=n.defineComponent({name:"EcanText",components:{Skeleton:rn},props:{...Do},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,B])=>{B==="static"&&(r.value=S)},{immediate:!0});const{getGlobalModel:l,setGlobalModel:d}=n.inject(ke,{getGlobalModel:S=>{},setGlobalModel:(S,B)=>{}}),{setLoadedData:c}=n.inject(bt,{setLoadedData:(S,B)=>{}}),f=n.computed(()=>{let S="";if(e.gradientShow){const{gradientColor:B,gradientOffset:w,gradientAngle:C,color:I}=e;S+=`background: linear-gradient(${C}, ${I}, ${B||"transparent"} ${w*100}%);-webkit-background-clip: text;color: transparent;`}return S}),g=n.computed(()=>{const S={};if(e.gradientShow){const{gradientColor:B,gradientOffset:w,gradientAngle:C,color:I}=e,N=B||"transparent";S.background=`linear-gradient(${C}, ${I}, ${N} ${w*100}%)`,S["-webkit-background-clip"]="text",S.color="transparent"}return S}),m=n.computed(()=>{var M;if(n.unref(t))return"NaN";const S=n.unref(r),B=e.increaseColor||e.color,w=e.declineColor||e.color;let C=e.text;C=C==null?void 0:C.replace(/\n|\\n/g,"<br/>"),C=C==null?void 0:C.replace(/\s(?!\{) | (?!\})\s/g,"&nbsp;");const I=C.match(/\{(.+?)\}/g)||[];let N="";if(I==null||I.length===0){if(C&&e.format==="percentage"&&!isNaN(+C)){const P=parseFloat(C),W=P*100,$=u(W.toFixed(2));P>=0?C=`<span style="color: ${$||B||"#ED6643"};font-size:${n.unref(i)};display: inline-block;${n.unref(f)}">
98
100
  <div class="percentage-img-box">
99
- <img style="width: ${n.unref(i)};filter: ${`drop-shadow(${$||T||"#ED6643"} ${n.unref(i)} 0px)`};" src="${Do}"/>
101
+ <img style="width: ${n.unref(i)};filter: ${`drop-shadow(${$||B||"#ED6643"} ${n.unref(i)} 0px)`};" src="${Ro}"/>
100
102
  </div>
101
- <span style="color: ${$||e.color};${n.unref(u)}">${Math.abs(+j).toFixed(2)}%</span>
102
- </span>`:B=`<span style="color: ${$||w||"#6ACB97"};font-size:${n.unref(i)};display: inline-block;${n.unref(u)}">
103
+ <span style="color: ${$||e.color};${n.unref(f)}">${Math.abs(+W).toFixed(2)}%</span>
104
+ </span>`:C=`<span style="color: ${$||w||"#6ACB97"};font-size:${n.unref(i)};display: inline-block;${n.unref(f)}">
103
105
  <div class="percentage-img-box">
104
- <img style="width: ${n.unref(i)};filter: ${`drop-shadow(${$||w||"#6ACB97"} ${n.unref(i)} 0px)`};" src="${Ro}"/>
106
+ <img style="width: ${n.unref(i)};filter: ${`drop-shadow(${$||w||"#6ACB97"} ${n.unref(i)} 0px)`};" src="${Io}"/>
105
107
  </div>
106
- <span style="color: ${$||e.color};${n.unref(u)}">${e.minusSignShow?"-":""}${Math.abs(+j).toFixed(2)}%</span>
107
- </span>`}N=B}for(let P=0;P<E.length;P++){const j=E[P],$=(z=j==null?void 0:j.slice(1,j.length-1))==null?void 0:z.trim();let F=$;const q=$.match(/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g);for(let I=0;I<q.length;I++){const M=q[I],U=S[M];U&&(F=$.replace(M,U))}if(/\(.*\)/g.test(F)){const I=pn(F);I!=null&&(F=I)}let L=F;if(L===$&&(L=e.variableDefaultValue),L!=null){const I=e.format;if(I==="percentage")if(L=+L,isNaN(L))B=B.replace(j,`<span style="color:${y("0.00")||e.variableColor};font-size:${n.unref(i)};${n.unref(u)}">0%</span>`);else if(L>=0){L=L*100;const M=y(L.toFixed(2));B=B.replace(j,`<span style="color: ${M||T||"#ED6643"};font-size:${n.unref(i)};display: inline-block;${n.unref(u)}">
108
+ <span style="color: ${$||e.color};${n.unref(f)}">${e.minusSignShow?"-":""}${Math.abs(+W).toFixed(2)}%</span>
109
+ </span>`}N=C}for(let P=0;P<I.length;P++){const W=I[P],$=(M=W==null?void 0:W.slice(1,W.length-1))==null?void 0:M.trim();let z=$;const q=$.match(/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g);for(let R=0;R<q.length;R++){const F=q[R],j=S[F];j&&(z=$.replace(F,j))}if(/\(.*\)/g.test(z)){const R=bn(z);R!=null&&(z=R)}let L=z;if(L===$&&(L=e.variableDefaultValue),L!=null){const R=e.format;if(R==="percentage")if(L=+L,isNaN(L))C=C.replace(W,`<span style="color:${u("0.00")||e.variableColor};font-size:${n.unref(i)};${n.unref(f)}">0%</span>`);else if(L>=0){L=L*100;const F=u(L.toFixed(2));C=C.replace(W,`<span style="color: ${F||B||"#ED6643"};font-size:${n.unref(i)};display: inline-block;${n.unref(f)}">
108
110
  <div class="percentage-img-box">
109
- <img style="width: ${n.unref(i)};filter: ${`drop-shadow(${M||T||"#ED6643"} ${n.unref(i)} 0px)`};" src="${Do}"/>
111
+ <img style="width: ${n.unref(i)};filter: ${`drop-shadow(${F||B||"#ED6643"} ${n.unref(i)} 0px)`};" src="${Ro}"/>
110
112
  </div>
111
- <span style="color: ${M||e.color};${n.unref(u)}">${Math.abs(+L).toFixed(2)}%</span>
112
- </span>`)}else{L=L*100;const M=y(L.toFixed(2));B=B.replace(j,`<span style="color: ${M||w||"#6ACB97"};font-size:${n.unref(i)};display: inline-block;${n.unref(u)}">
113
+ <span style="color: ${F||e.color};${n.unref(f)}">${Math.abs(+L).toFixed(2)}%</span>
114
+ </span>`)}else{L=L*100;const F=u(L.toFixed(2));C=C.replace(W,`<span style="color: ${F||w||"#6ACB97"};font-size:${n.unref(i)};display: inline-block;${n.unref(f)}">
113
115
  <div class="percentage-img-box">
114
- <img style="width: ${n.unref(i)};filter: ${`drop-shadow(${M||w||"#6ACB97"} ${n.unref(i)} 0px)`};" src="${Ro}"/>
116
+ <img style="width: ${n.unref(i)};filter: ${`drop-shadow(${F||w||"#6ACB97"} ${n.unref(i)} 0px)`};" src="${Io}"/>
115
117
  </div>
116
- <span style="color: ${M||e.color};${n.unref(u)}">${e.minusSignShow?"-":""}${Math.abs(+L).toFixed(2)}%</span>
117
- </span>`)}else e.format==="percent"?(L=+L,isNaN(L)||(L=(L*100).toFixed(2),B=B.replace(j,`<span style="color:${y(L)||e.variableColor};font-size:${n.unref(i)};${n.unref(u)}">${L}%</span>`))):e.format==="money"?(L=+L,isNaN(L)||(L=Ao(L),B=B.replace(j,`<span style="color:${y(L)||e.variableColor};font-size:${n.unref(i)};${n.unref(u)}">${L}</span>`))):I==="thousands"?(L=+L,isNaN(L)||(L=dc(L),B=B.replace(j,`<span style="color:${y(L)||e.variableColor};font-size:${n.unref(i)};${n.unref(u)}">${L}</span>`))):B=B.replace(j,`<span style="color:${y(L)||e.variableColor};font-size:${n.unref(i)};${n.unref(u)}">${L}</span>`)}}if(N||(N=`<span style="color: ${y(B)};${n.unref(u)}">${B}</span>`),e.unitShow&&e.unitText){const{unitTop:P,unitLeft:j}=e;let $="position:relative;";P&&($+=`top:${P};`),j&&($+=`margin-left:${j};`),N+=`<span style='color:${e.unitColor};font-size:${e.unitFontSize};font-weight:${e.unitFontWeight};${$};${n.unref(u)}'>${e.unitText}</span>`}return N});function y(S){let T="",w=!1;const{targetValue:B,targetShow:E,notExpectColor:N}=e;if(E){switch(e.targetRule){case"equal":S!==B&&(w=!0);break;case"greater":S<=B&&(w=!0);break;case"greater_equal":S<B&&(w=!0);break;case"less":S>=B&&(w=!0);break;case"less_equal":S>B&&(w=!0);break}w&&(T=N)}return T}const{pageMode:h}=n.inject(Me,{pageMode:"normal"}),d=He(e),v=n.ref(!1),D=async()=>{var S;try{v.value=!0;const T=await d();r.value=((S=T==null?void 0:T.data)==null?void 0:S.data)||{}}catch(T){console.error(T)}finally{v.value=!1}},x=(S={})=>{r.value=S},b=S=>{const T=e.id,w=l(T);f(T,{...w,value:S||""})},p=ot(e),C=async()=>{var S;try{v.value=!0;const T=await p(),{data:w}=(T==null?void 0:T.data)||{};if(w){t.value=!1;const{columns:B=[],rows:E=[]}=((S=T==null?void 0:T.data)==null?void 0:S.data)??{};let N={};if(B.length>0){const z=B.find(P=>!!P);z&&(N={value:isNaN(E[z])?0:E[z]||0})}b(N==null?void 0:N.value),x(N)}else t.value=!0,b("NaN"),x({value:"NaN"})}catch(T){console.error(T)}finally{v.value=!1,c(e.id,!0)}},A=()=>{switch(e.dataType){case"indicator":C();break;case"request":D();break}},{setRequest:R}=n.inject(ze,{setRequest:({id:S,sortNum:T,requestFn:w})=>{}});typeof R=="function"&&R({id:e.id,requestFn:A,sortNum:e.requestSort}),Oe(e,{refreshData:A}),o({refreshData:A});const _=ke(e),O=_("click",()=>{if(!e.linkPage&&!e.href)return;const S=e.linkPage||"",T=ui(n.unref(h),S),w=e.href;let B=w||T;B=Be(B);const E=e.target;E&&(E!=="event"?window.open(B,"_"+E):window.parent.postMessage({type:"openPage",url:w},"*"))}),k=_("valueChange",()=>{});return n.watch(()=>m.value,(S,T)=>{S!==T&&k()}),{style:a,myText:m,loading:v,click:O,textIndent:s,vFontSize:i,gradientStyle:g}}}),yi=()=>{n.useCssVars(e=>({cebebbf4:e.vFontSize,"2393a9b9":e.textIndent,"36d98491":e.percentageSide}))},xi=Io.setup;Io.setup=xi?(e,o)=>(yi(),xi(e,o)):yi;const Tu="",bc=["innerHTML"];function vc(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:"ecan-text",style:n.normalizeStyle({...e.style,...e.gradientStyle}),innerHTML:e.myText,onClick:o[0]||(o[0]=(...l)=>e.click&&e.click(...l))},null,12,bc))}const pi=xe(ye(Io,[["render",vc],["__scopeId","data-v-3cbb70ab"]])),Sc=n.defineComponent({name:"EcanScrollText",setup(){return{text:n.ref("基础文本")}}}),Eu="",Cc={class:"red"};function wc(e,o,t,a,r,i){return n.openBlock(),n.createElementBlock("div",Cc,n.toDisplayString(e.text),1)}const bi=xe(ye(Sc,[["render",wc],["__scopeId","data-v-4dd9c03e"]])),_o={...we,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"}},Oo=be(_o),vi=["timeChange"],Ac=n.defineComponent({name:"EcanTimeDisplay",props:{...Oo},setup(e){const o=Ce(e),t=()=>{const{format:c,operate:u}=e;let g=ve();if(u){const{type:m,value:y,mode:h}=u;switch(m){case"add":g=g.add(y,h);break;case"minus":g=g.subtract(y,h)}}return g.format(c)},a=n.ref();n.watch(()=>[e.operate,e.format],()=>{a.value=t()},{immediate:!0,deep:!0}),n.watch(()=>e.updateInterval,()=>{f()},{deep:!0});let r=null;const i=()=>{clearInterval(r),r=null},l=ke(e)("timeChange",()=>{}),f=()=>{r&&i();let c=1e3;const{value:u,mode:g}=e.updateInterval||{};u&&(c=c*u);const m={second:1,minute:60,hour:60*60,day:24*60*60};g&&(c=c*m[g]),r=setInterval(()=>{a.value=t(),l()},c)};return Oe(e,{timeChange:l}),n.onMounted(()=>{f()}),n.onUnmounted(()=>{i()}),{style:o,time:a}}}),Ru="";function kc(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 Si=xe(ye(Ac,[["render",kc],["__scopeId","data-v-b628fca2"]])),Lo={...we,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:{}},No=be(Lo),Ci=["refreshData","click"],Tc="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAYCAYAAACfpi8JAAAAAXNSR0IArs4c6QAAAWhJREFUSEvNlz9Lw0AYxp/3iJ2TgqN+ia5ihbb0A/hnEXG3QxHEyUkQVwcHwU3cgoI4hHKXUnQS3Z0VQVBwbTVtXrlciyKmLo2XmxI47v3x3HPvPUdcKk3B85og2gYwjUkOIoD5CcAeSXk0bmniSqWJQuEA/f4kEb7WMjD6f42kPE0rQlyrPYJoZjg5O5g4voDnrZDvf/xWRIMkuJkOo8odXHeefL9rG+QWrlvOA8gNomiBOp2ePUVM5S7iuE5heG0bBNBeieMdKLWvv74D/Y9Zf0rAfEZKLdkHEUIrcw8h5qjVetNAdhRJKidH+nnY6EJ7IKN9YY4ANPIAou+WDXsgZmtewLxKSik7ICOzOk6ZguDVplnPScpFe8c3Jw2th8GgTu32lb0Wb4yZg0vPgOQmBvwRjKrVBwgxm3lUZL6E4yxTELyneaQBxznMPDwzr5NSJ+nhWT8nisVNAFuZPSeYd0mp43G5+BNp2sfxEUU29gAAAABJRU5ErkJggg==",Bc="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAYCAYAAACfpi8JAAAAAXNSR0IArs4c6QAAAbVJREFUSEvNl7tKA1EQhmfOyd6ClikVLHwCWzHb5QHUbWIStVRQBLGyEEFsLSwUq6idKIiFjZdNUgTR3k7wAoqC2GU3mz0ju5uIRaKN68l5gDMfM//M/IO0PaS4yd55ErTEEFMEf/cYIvgknjjgmpq3t376GZ2iOa8l+Ybn+CD+kqIZlSFA+C1CTpuw9zvBYK2YfuCM9QmKgaIZNcEQGj4da0bKQuug3g4G3T2TYmQIYwYlIqIbVXdH0KrW2oI4u2Z8qfgqT6AVutZ1Ny0VhAelEXSl+2DilO1IywhCKNgaR8oouVJFGkikk0grvqBl9c5cx5UV8R0I/0MjbTJwqOftMekgmsLA9fxbTa8Po1V9D8eMpIyAwhE8n55JYM6YvDyXBhIN21DEHgHNdgNIg4BmpIEEpak3xGsCMKsU7DMpIC2xeg2R7p2uvMkTK9GRXiiNSmnfrhhoYXcQODzBMkr2oixtxLeW3osP5oDMpRdZxl9sQNcYo1oxfc8Z64/dKgo6efwwxgfnTt1OGpnVDL4Zp3mOAouCmivvdjTPwTlRN3oWBMFiHOeEIPFEAKtGvrTz0znxCSDl9ZPnj4lKAAAAAElFTkSuQmCC",Ec="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAYCAYAAACfpi8JAAAAAXNSR0IArs4c6QAAAZhJREFUSEvNl79LY0EUhb87L6uwkHSieRjBwm7/ApHVbcwzrT8ake21EGHZympBbLewEOxk2xVEBAVttBLtrRWTiLtaiTHue3NlsgiKRiwSJ1NOMffjzLl3zghH+oHL81ms/Y4xHajSsGUMJMkZIgtE4fJr5wqbpVnS6Z9UrmkoxENVMYCC6BTD4a96MMJW8RQT5LC2YUI8OygInDLrdGcn+CR3LxUStsvaFCUeV3NXpPaIdPKZ/lzlZZCtUgNNUUdUB2LtIZlksBVADmivDvGl99afIiLOsBWUPFG47w/EVXbdU7uieJ7h7CIiT7pDeA+PPJfgN1E49njbD0hbO9xVj8kkA/TnrmqCeVIEUimI4zJqphjp2vUHUpPBmZh/JDrjH0Q1xjLtDyRIQRJfQDBJ1LnjB+TBrFYGKWT/+DTrGlE46qd9W2Kgue5QvUXIkw/3/I34/69vCzx6b4oBrROMiieYoKfpUTGON9CbcQp91ToeKc7wMbPU9PCsfCXKrtYPz+478fd8DtVvGGnOd0LlB4Vw5bV0fg/E2Mcb2D1RagAAAABJRU5ErkJggg==",Dc="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 Rc=Object.defineProperty,wi=Object.getOwnPropertySymbols,Ic=Object.prototype.hasOwnProperty,_c=Object.prototype.propertyIsEnumerable,Ai=(e,o,t)=>o in e?Rc(e,o,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[o]=t,ki=(e,o)=>{for(var t in o||(o={}))Ic.call(o,t)&&Ai(e,t,o[t]);if(wi)for(var t of wi(o))_c.call(o,t)&&Ai(e,t,o[t]);return e},Oc=(e,o)=>{const t=e.__vccOpts||e;for(const[a,r]of o)t[a]=r;return t};const Lc=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),f=n.ref(0),c=n.ref(0),u=n.ref(0),g=n.ref(0),m=n.ref(!1),y=n.ref(!1),h=n.ref(0),d=n.ref(null),v=n.ref("200px"),D=n.ref(!1),x=n.ref(null),b=n.ref(null),p=async()=>{await C(),i.value++},C=async()=>{e.vertical&&(s.value=!0),setInterval(()=>{if(a.value="0%",r.value="0%",x.value!==null&&b.value!==null&&x.value&&b.value)if(e.vertical&&"clientHeight"in x.value&&"clientHeight"in b.value){g.value=x.value.clientHeight,u.value=b.value.clientHeight;const N=Math.ceil(u.value/g.value);return t.value=isFinite(N)?N:0,s.value=!1,t.value}else if(!e.vertical&&"clientWidth"in x.value&&"clientWidth"in b.value){if(c.value=x.value.clientWidth,f.value=b.value.clientWidth,e.animateOnOverflowOnly)return c.value<f.value?(l.value=!0,o("onOverflowDetected")):(l.value=!1,o("onOverflowCleared")),0;const N=Math.ceil(f.value/c.value);return t.value=isFinite(N)?N: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&&p()}),n.watch(f,async()=>{(e.clone||e.animateOnOverflowOnly)&&p()}),n.watch(()=>e.pause,(N,z)=>{N!==z&&o(N?"onResume":"onPause")});const A=()=>{e.pauseOnHover&&(o("onPause"),m.value=!0)},R=()=>{e.pauseOnHover&&(o("onResume"),m.value=!1)},_=()=>{e.pauseOnClick&&(o("onPause"),y.value=!0)},O=()=>{e.pauseOnClick&&(o("onResume"),y.value=!1)},k=n.computed(()=>e.pause||e.vertical&&s.value||e.animateOnOverflowOnly&&l.value?"paused":"running"),S=n.computed(()=>e.pauseOnHover&&(m.value||y.value)||!e.pauseOnHover&&k.value==="paused"?"paused":"running"),T=n.computed(()=>e.pauseOnHover&&m.value||e.pauseOnClick&&y.value||!e.pauseOnHover&&k.value==="paused"?"paused":"running"),w=n.computed(()=>{const N={"--duration":`${e.duration}s`,"--delay":`${e.delay}s`,"--direction":`${e.direction}`,"--pauseOnHover":`${S.value}`,"--pauseOnClick":`${T.value}`,"--pauseAnimation":`${k.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"),ki(ki({},N),z)}),B=n.computed(()=>!!e.gradient),E=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 C(),p()),D.value=!0};return n.onMounted(async()=>{E(),d.value=setInterval(()=>{h.value++,e.loop!==0&&h.value===e.loop&&(o("onComplete"),clearInterval(d.value)),o("onLoopComplete")},e.duration*1e3)}),n.onBeforeUnmount(()=>{clearInterval(d.value)}),{ready:D,contentWidth:c,containerWidth:f,contentHeight:g,containerHeight:u,loopCounter:h,loopInterval:d,mouseOverMarquee:m,mouseDownMarquee:y,minWidth:a,minHeight:r,animateOnOverflowPause:l,marqueeContent:x,marqueeOverlayContainer:b,componentKey:i,showGradient:B,cloneAmount:t,ForcesUpdate:p,checkForClone:C,setupMarquee:E,getCurrentStyle:w,hoverStarted:A,hoverEnded:R,mouseDown:_,mouseUp:O}}}),Nc={class:"transparent-overlay",ref:"marqueeOverlayContainer","aria-hidden":!0},Mc={class:"marquee",ref:"marqueeContent"},zc={key:1,"aria-hidden":!0,class:"marquee"};function Fc(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",Nc,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",zc,[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 Pc=Oc(Lc,[["render",Fc]]);const qc=n.defineComponent({name:"SeamScroll",components:{Vue3Marquee:Pc},props:{dataSource:{type:Object,default:()=>{}},visible:{type:Boolean,default:!1},step:{type:Number,default:1}},setup(e){return{isAutoScroll:n.ref(e.visible)}}}),Hc={key:1,class:"list-wrap"};function Vc(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",Hc,[n.renderSlot(e.$slots,"default")]))}const jc=ye(qc,[["render",Vc]]),Uc=n.defineComponent({name:"EcanList",components:{Skeleton:an,ATooltip:se.Tooltip,MarqueeScroll:jc},props:{...No},setup(e,{expose:o}){const t=n.ref(),a=Ce(e,["backgroundColor"]),r=(O,k)=>{const{format:S,customFormatter:T}=k;if(S==null||S==="")return O;const w={money:Ao,percentage:yn,contrast:yn,custom:di};return w[S]?S==="custom"?w[S](O,T)||"":w[S](O)||"":""},i=(O,k)=>{const S=parseFloat(O+"");if(k!=="contrast")return"";switch(!0){case S>=0:return"goUp";case S<0:return"goDown"}},s=He(e),l=n.ref(!1),f=async()=>{var O;if(e.dataType==="request")try{l.value=!0;const k=await s();t.value=((O=k==null?void 0:k.data)==null?void 0:O.data.rows)||[]}catch(k){console.error(k)}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})),u=n.computed(()=>{const{columns:O,isUseSeq:k}=e;return k?[n.unref(c),...O]:O}),g=ot(e),m=async()=>{var O;try{l.value=!0;const k=await g(),{columns:S=[],rows:T=[]}=((O=k==null?void 0:k.data)==null?void 0:O.data)??{};e.isUseSeq&&S.unshift(e.seqName),u.value.forEach((w,B)=>{(!e.isUseSeq||B!==0)&&(w.title=S[B],w.key=S[B])}),t.value=T}catch(k){console.error(k)}finally{l.value=!1}},y=()=>{switch(e.dataType){case"indicator":m();break;case"request":f();break}},h=ke(e),{getGlobalModel:d,setGlobalModel:v}=n.inject(Ae,{getGlobalModel:O=>{},setGlobalModel:(O,k)=>{}}),D=O=>{h("click",()=>{const k=d(e.id);v(e.id,{...k,type:e.type,RECORD:O})})()};Oe(e,{refreshData:y});const{setRequest:x}=n.inject(ze,{setRequest:({id:O,sortNum:k,requestFn:S})=>{}});typeof x=="function"&&x({id:e.id,requestFn:y,sortNum:e.requestSort}),o({refreshData:y});const b=O=>({flex:O.width?"none":"1",width:O.width,height:e.itemHeight,lineHeight:e.itemHeight,textAlign:O.align||"left",backgroundColor:O.cellColor}),p=(O,k)=>{let S=0;const T=n.unref(t).map(B=>B[k]),w=Math.max(...T);return w&&(S=O[k]/w*100),S},C=O=>{const{progressColor:k="#1890ff",progressGradientColor:S=""}=O;return S?{background:`linear-gradient(to right, ${k} 0%, ${S} 100%)`}:{backgroundColor:k||"#1890ff"}},A=n.computed(()=>{const O=parseFloat(e.seqFontSize)+5;return{width:O+10,height:O}}),{pageMode:R}=n.inject(Me,{pageMode:"normal"}),_=n.computed(()=>n.unref(R)==="preview"&&e.isAutoScroll);return{style:a,formatFn:r,contrastClass:i,dataSource:t,loading:l,myColumns:u,click:D,getColumnStyle:b,getPercentage:p,getBackgroundColor:C,seqIcon4:Tc,seqIcon5:Bc,seqIcon6:Ec,seqIcon7:Dc,iconSize:A,isScroll:_}}}),_u="",Ou="",Gc=e=>(n.pushScopeId("data-v-bb4b7c1e"),e=e(),n.popScopeId(),e),Wc={key:0,class:"title"},$c={key:0,class:"ranking"},Zc={key:1,class:"ecan-list-content"},Yc=["onClick"],Kc={key:0,class:"ranking"},Qc=Gc(()=>n.createElementVNode("div",{class:"icon"},null,-1)),Jc={class:"sort"},Xc=["src","width","height"],ef=["src","width","height"],tf=["src","width","height"],nf=["src","width","height"],of={key:1},af={key:2,class:"empty"};function rf(e,o,t,a,r,i){const s=n.resolveComponent("a-tooltip"),l=n.resolveComponent("marquee-scroll"),f=n.resolveComponent("skeleton");return n.openBlock(),n.createElementBlock("div",{class:"ecan-list",style:n.normalizeStyle(e.style)},[n.createVNode(f,{loading:e.loading},{default:n.withCtx(()=>[e.useTitle?(n.openBlock(),n.createElementBlock("div",Wc,[(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",$c)):n.createCommentVNode("",!0),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.myColumns,(u,g)=>(n.openBlock(),n.createElementBlock("div",{class:"column",key:u.key||g,style:n.normalizeStyle({color:u.titleColor,...e.getColumnStyle(u)})},n.toDisplayString(u.title),5))),128))],4))),128))])):n.createCommentVNode("",!0),e.dataSource.length>0?(n.openBlock(),n.createElementBlock("div",Zc,[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,u)=>(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:(u+1)%e.columnCount!==0?e.itemColSpan:"",marginBottom:e.itemRowSpan,padding:`0 ${e.itemPadding}`}),key:c.id||u,onClick:g=>e.click(c)},[e.useRanking?(n.openBlock(),n.createElementBlock("div",Kc,[Qc,n.createElementVNode("div",Jc," Top "+n.toDisplayString(u+1),1)])):n.createCommentVNode("",!0),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.myColumns,g=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["column",e.contrastClass(c[g.key],g.format)]),key:g.key,style:n.normalizeStyle({fontSize:g.fontSize,color:e.contrastClass(c[g.key],g.format)===""?g.color:"",fontWeight:g.fontWeight,...e.getColumnStyle(g)})},[g.key==="SEQ"?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[e.seqIcon?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[u===0?(n.openBlock(),n.createElementBlock("img",{key:0,class:"seq-icon",src:e.seqIcon4,width:e.iconSize.width,height:e.iconSize.height},null,8,Xc)):u===1?(n.openBlock(),n.createElementBlock("img",{key:1,class:"seq-icon",src:e.seqIcon5,width:e.iconSize.width,height:e.iconSize.height},null,8,ef)):u===2?(n.openBlock(),n.createElementBlock("img",{key:2,class:"seq-icon",src:e.seqIcon6,width:e.iconSize.width,height:e.iconSize.height},null,8,tf)):u>=3?(n.openBlock(),n.createElementBlock("img",{key:3,class:"seq-icon",src:e.seqIcon7,width:e.iconSize.width,height:e.iconSize.height},null,8,nf)):n.createCommentVNode("",!0),n.createElementVNode("span",{class:"seq-icon seq-text",style:n.normalizeStyle({fontSize:e.seqFontSize})},n.toDisplayString(u+1),5)],64)):(n.openBlock(),n.createElementBlock("span",of,n.toDisplayString(u+1),1))],64)):g.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:g.progressWidth||"14px",backgroundColor:g.progressBaseColor})},[n.createVNode(s,{title:c[g.key],overlayClassName:"ecan-list-tooltip",color:"#fff"},{default:n.withCtx(()=>[n.createElementVNode("div",{style:n.normalizeStyle({borderRadius:"10px",height:g.progressWidth||"14px",width:`${e.getPercentage(c,g.key)}%`,...e.getBackgroundColor(g)})},null,4)]),_:2},1032,["title"])],4)],4)):(n.openBlock(),n.createElementBlock(n.Fragment,{key:2},[n.createTextVNode(n.toDisplayString((g.format!=null||g.format!=="")&&e.formatFn(c[g.key],g)),1)],64))],6))),128))],12,Yc))),128))]),_:1},8,["visible","step"])])):(n.openBlock(),n.createElementBlock("div",af," 暂无数据 "))]),_:1},8,["loading"])],4)}const Ti=xe(ye(Uc,[["render",rf],["__scopeId","data-v-bb4b7c1e"]])),Mo={...we,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:{}},zo=be(Mo),Bi=["refreshData","click"],lf=n.defineComponent({name:"EcanProportion",components:{AProgress:se.Progress,Skeleton:an},props:{...zo},setup(e,{expose:o}){const t=n.ref(!1),{pageMode:a}=n.inject(Me,{pageMode:"normal"}),r=Ce(e),i=n.computed(()=>{const p=e.width;return parseFloat(p)}),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 p=n.unref(s),C=+e.variableDefaultValue;if(p==null)return isNaN(C)?0:C;const A=e.text.match(/\{.+\}/g)||[];let R;const _=new Set(Object.keys(p));for(let O=0;O<A.length;O++){const k=A[O],S=k.slice(1,k.length-1);if(_.has(S)){R=p[S];break}}return typeof R=="number"?R=R*100:typeof R=="string"&&!isNaN(+R)?R=+R*100:isNaN(C)?R=0:R=C*100,e.decimalFormat&&(R=+R.toFixed(2)),R}),f=n.computed(()=>{var _;let p=e.text;if(p==="")return n.unref(l);const C=e.variableDefaultValue,A=n.unref(s),R=p.match(/\{.+\}/g)||[];for(let O=0;O<R.length;O++){const k=R[O];let S=k.slice(1,k.length-1);const T=/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,w=k.match(T);for(let E=0;E<(w==null?void 0:w.length);E++){const N=(_=w[E])==null?void 0:_.trim();A[N]!=null&&(S=S.replace(N,A[N]))}let B=S;try{/\(.*\)/g.test(S)&&(B=pn(S))}catch(E){console.error(E)}typeof+B=="number"&&!isNaN(+B)?(B=+B*100,e.decimalFormat&&(B=B.toFixed(2))):B=C,p=p.replace(k,B+"")}return n.unref(t)?"NaN":p}),c=He(e),u=n.ref(!1),g=async()=>{var p;if(e.dataType==="request")try{u.value=!0;const C=await c();s.value=((p=C==null?void 0:C.data)==null?void 0:p.data)||{}}catch(C){console.error(C)}finally{u.value=!1}},m=(p={})=>{s.value=p},y=ot(e),h=async()=>{var p;try{u.value=!0;const C=await y(),{data:A}=(C==null?void 0:C.data)||{};if(A){t.value=!1;const{columns:R=[],rows:_=[]}=((p=C==null?void 0:C.data)==null?void 0:p.data)??{};let O={};if(R.length>0){const k=R.find(S=>!!S);k&&(O={percent:_[k]})}m(O)}else t.value=!0,m({percent:"NaN"})}catch(C){console.error(C)}finally{u.value=!1}},d=()=>{switch(e.dataType){case"indicator":h();break;case"request":g();break}};Oe(e,{refreshData:d}),o({refreshData:d});const D=ke(e)("click",()=>{}),{setRequest:x}=n.inject(ze,{setRequest:({id:p,sortNum:C,requestFn:A})=>{}});typeof x=="function"&&x({id:e.id,requestFn:d,sortNum:e.requestSort});const b=n.computed(()=>{const{gradientShow:p,gradientColor:C,gradientOffset:A,strokeColor:R}=e;let _=R;return p&&C&&(_={"0%":R,[`${A*100}%`]:C}),_});return{style:r,myWidth:i,text:f,myValue:l,loading:u,click:D,customStrokeColor:b}}}),Nu="";function sf(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 Ei=xe(ye(lf,[["render",sf],["__scopeId","data-v-cf942b5f"]])),Fo={...we,width:"200px",id:"",left:"0px",top:"0px",name:"输入框",keyName:"输入框",rotate:"",type:"ecanInput",value:"",placeholder:"请输入文字",optionFontSize:"14px"},Po=be(Fo),Di=["inputChange","inputBlur"],cf=n.defineComponent({name:"EcanInput",components:{AInput:se.Input},props:{...Po},setup(e){const o=Ce(e),t=n.ref("");n.watch(()=>e.value,c=>{t.value=c},{immediate:!0});const{getGlobalModel:a,setGlobalModel:r}=n.inject(Ae,{getGlobalModel:c=>{},setGlobalModel:(c,u)=>{}});r(e.id,{type:e.type,value:t});const i=()=>{const c=a(e.id);r(e.id,{...c,RECORD:t})},s=ke(e),l=qe.debounce(s("inputChange",()=>{i()}),300),f=s("inputBlur",()=>{});return{style:o,myValue:t,inputBlur:f,inputChange:l}}}),zu="";function ff(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 Ri=xe(ye(cf,[["render",ff]])),qo={...we,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"},Ho=be(qo),Ii=["dateChange"],Vo=n.defineComponent({name:"EcanDatePicker",props:{...Ho},components:{ADatePicker:se.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],([m,y,h])=>{let d=null;if(m?d=ve(Be(m)):y&&(d=ve()),h&&d){const{type:v,value:D,mode:x}=h;switch(v){case"add":d=d.add(D,x);break;case"minus":d=d.subtract(D,x)}}r.value=d},{deep:!0,immediate:!0});const{setGlobalModel:i}=n.inject(Ae,{setGlobalModel:(m,y)=>{}});i(e.id,{type:e.type,format:e.format,useCurrentTime:e.useCurrentTime,value:r});const l=ke(e)("dateChange",()=>{}),f=()=>{n.unref(r)&&l()};Oe(e,{dateChange:l});const c=n.ref({}),u=n.ref({}),g=m=>{m?setTimeout(()=>{u.value=n.unref(c)},300):u.value={}};return n.onMounted(()=>{setTimeout(()=>{const m=document.querySelector(`#ecan-date-picker-${e.id}`);if(m){const y=m.getBoundingClientRect(),h=parseFloat(n.unref(o).widthScale)*280;document.body.clientWidth-y.left<h&&(c.value.marginLeft=-1*(h-y.width)+"px")}},0)}),{style:t,getPopupContainer:a,myValue:r,locale:La,change:f,scaleValue:o,popupStyle:c,customStyle:u,openChange:g}}}),_i=()=>{n.useCssVars(e=>({d6fb5b46:e.optionFontSize}))},Oi=Vo.setup;Vo.setup=Oi?(e,o)=>(_i(),Oi(e,o)):_i;const Pu="",qu="",df=["id"];function uf(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,df)}const Li=xe(ye(Vo,[["render",uf],["__scopeId","data-v-d4ec0d66"]])),jo={...we,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},Uo=be(jo),Ni=["dateChange"];var Mi={exports:{}};(function(e,o){(function(t,a){e.exports=a()})(ce,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,u){return c=Number(c),this.$utils().p(u)===a?this.add(3*c,t):l.bind(this)(c,u)};var f=s.startOf;s.startOf=function(c,u){var g=this.$utils(),m=!!g.u(u)||u;if(g.p(c)===a){var y=this.quarter()-1;return m?this.month(3*y).startOf(t).startOf("day"):this.month(3*y+2).endOf(t).endOf("day")}return f.bind(this)(c,u)}}})})(Mi);var hf=Mi.exports;const gf=sr(hf);ve.extend(gf);const Go=n.defineComponent({name:"EcanRangePicker",components:{ARangePicker:se.RangePicker},props:{...Uo},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,p,C,A,R,_])=>{let O=null,k=null;if(C&&(O=ve().subtract(A,R),k=ve()),b&&(O=ve(Be(b))),p&&(k=ve(Be(p))),_){const{type:S,value:T,mode:w}=_;switch(S){case"add":O=O&&O.add(T,w),k=k&&k.add(T,w);break;case"minus":O=O&&O.subtract(T,w),k=k&&k.subtract(T,w)}}a.value=[O,k]},{immediate:!0});let r=n.unref(a)[0],i=n.unref(a)[1],s="";const l=(b,p,C)=>{Array.isArray(b)?(r=b[0],i=b[1],s=C.range):(r=null,i=null)},f=b=>{let p=!1,{limitStartTime:C,limitEndTime:A}=e;const R={startTime:`${r||""}`,endTime:`${i||""}`};if(C=Be(C,{codeData:R}),A=Be(A,{codeData:R}),C&&A?p=!(ve(C)<b&&b<ve(A)):C?p=ve(C)>b:A&&(p=ve(A)<b),!e.isAllowSpanYear&&s){let _=null;if(s==="start"?_=r:s==="end"&&(_=i),_){const O=_.startOf("year"),k=_.endOf("year");p=!(O<=b&&b<k)}}return p},{getGlobalModel:c,setGlobalModel:u}=n.inject(Ae,{getGlobalModel:b=>{},setGlobalModel:(b,p)=>{}}),g=n.computed(()=>Array.isArray(n.unref(a))?n.unref(a)[0]:null),m=n.computed(()=>Array.isArray(n.unref(a))?n.unref(a)[1]:null);u(e.id,{type:e.type,format:e.format,startTime:g,endTime:m,interval:e.interval,intervalUnit:e.intervalUnit,useCurrentTime:e.useCurrentTime,operate:e.operate});const y=ke(e);let h=!1;const d=y("dateChange",()=>{}),v=b=>{const p=n.unref(a),C=p&&p[0]&&p[1];b===!1&&h===!0&&C&&(d(),h=!1),b||(s="")},D=()=>{h=!0};return Oe(e,{dateChange:()=>{const{associated:b}=e;if(b){const p=c(b)||{};if(p){const{value:C}=p;if(C)switch(n.unref(C)){case"month":a.value=[ve().startOf("month"),ve().endOf("month")];break;case"quarter":a.value=[ve().startOf("quarter"),ve().endOf("quarter")];break;case"year":a.value=[ve().startOf("year"),ve().endOf("year")];break}}}d()}}),{style:o,getPopupContainer:t,locale:La,dateChange:d,myValue:a,disabledDate:f,calendarChange:l,openChange:v,change:D}}}),zi=()=>{n.useCssVars(e=>({"70b68802":e.optionFontSize}))},Fi=Go.setup;Go.setup=Fi?(e,o)=>(zi(),Fi(e,o)):zi;const Vu="",ju="";function mf(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 Pi=xe(ye(Go,[["render",mf],["__scopeId","data-v-95653c92"]])),Wo={...we,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"},$o=be(Wo),qi=["click"],yf=n.defineComponent({name:"EcanButton",components:{AButton:se.Button},props:{...$o},setup(e){const o=Ce(e),a=ke(e)("click",()=>{const f=n.unref(s);f&&e.target==="event"&&window.parent.postMessage({type:"openPage",url:f},"*")}),r=n.computed(()=>{const f={};return e.mode!=="primary"&&(f.backgroundColor=e.buttonBackgroundColor||"transparent",f.color=e.tooltipTextStyleColor,f.borderColor=e.borderColor||"transparent"),{height:e.height,...f}}),i=n.computed(()=>Be(e.text)),s=n.computed(()=>Be(e.href)||null),l=n.computed(()=>{const f=e.target;if(!(f==="event"||n.unref(s)==null))return{self:"_self",blank:"_blank"}[f]});return{style:o,click:a,myText:i,myHref:s,myTarget:l,buttonStyle:r}}}),Gu="";function xf(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 Hi=xe(ye(yf,[["render",xf]])),Zo={...we,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:{}},Yo=be(Zo),Vi=["checkboxChange"],pf=n.defineComponent({name:"EcanCheckbox",components:{ACheckboxGroup:se.CheckboxGroup},props:{...Yo},setup(e,{expose:o}){const t=Ce(e),a=n.ref([]),r=n.ref([]),i=v=>{const D=e.value;let x=[];v.forEach(b=>{b.checked&&x.push(b.value)}),typeof D=="string"&&D!==""?x=x.concat(D.split(",")):Array.isArray(D)&&(x=x.concat(D)),a.value=v,r.value=x};n.watch(()=>[e.data,e.value],([v])=>{i(v)},{immediate:!0,deep:!0});const s=He(e),l=async()=>{var x,b;if(e.dataType!=="request")return;const v=await s(),D=((b=(x=v==null?void 0:v.data)==null?void 0:x.data)==null?void 0:b.rows)||[];i(D)},{getGlobalModel:f,setGlobalModel:c}=n.inject(Ae,{getGlobalModel:v=>{},setGlobalModel:(v,D)=>{}});c(e.id,{type:e.type,value:r});const g=ke(e)("checkboxChange",()=>{const v=f(e.id);c(e.id,{...v,RECORD:r})}),m=ot(e),y=async()=>{var v;try{const D=await m(),{data:x}=(D==null?void 0:D.data)||{};if(x){const p=(((v=D==null?void 0:D.data)==null?void 0:v.data)??[]).map(C=>({label:C.label,value:C.value}));i(p)}else i([])}catch(D){console.error(D)}},h=()=>{switch(e.dataType){case"indicator":y();break;case"request":l();break}},{setRequest:d}=n.inject(ze,{setRequest:({id:v,sortNum:D,requestFn:x})=>{}});return typeof d=="function"&&d({id:e.id,requestFn:h,sortNum:e.requestSort}),o({refreshData:h}),{myOption:a,style:t,myValue:r,checkboxChange:g}}}),$u="";function bf(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 ji=xe(ye(pf,[["render",bf]])),Ko={...we,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"},Qo=be(Ko),Ui=["selectChange","refreshData"],vf=n.defineComponent({name:"EcanSelect",components:{ASelect:se.Select,ASelectOption:se.SelectOption},props:{...Qo},setup(e,{expose:o}){const t=Ce(e),a=()=>document.getElementById("ProviderConfig")||document.body,r=He(e),i=n.ref(e.data||[]),s=n.ref(),l=n.computed({get:()=>{var E;const{mode:B}=e;return(E=n.unref(i))!=null&&E.length?s.value:B==="multiple"||B==="tags"||B==="combobox"?[]:""},set:B=>{s.value=B}}),{getGlobalModel:f,setGlobalModel:c,getRecordValueByKeyName:u}=n.inject(Ae,{getGlobalModel:B=>{},setGlobalModel:(B,E)=>{},getRecordValueByKeyName:B=>{}});n.watch(()=>[e.value,e.mode,e.selectFirstOption,e.valueType,i.value],()=>{const{mode:B,selectFirstOption:E,value:N}=e,z=u(N);B==="multiple"||B==="tags"||B==="combobox"?z?s.value=z.split(","):E&&(s.value=[n.unref(i)[0]]):z?s.value=z:E&&(s.value=n.unref(i)[0])},{immediate:!0});const g=e.dataFieldNames,m=(B,E)=>{const N=g.label,z=g.value;let P;const j=E[N],$=E[z];return j!=null?P=j:$!=null&&(P=$),(P==null?void 0:P.toLowerCase().indexOf(B==null?void 0:B.toLowerCase()))>=0},y=B=>{const{label:E,value:N,options:z}=e.dataFieldNames;if(z&&Array.isArray(B))if(B.some(P=>z in P)){const P={},j=[];B.forEach($=>{P[$[z]]||(P[$[z]]=[]),P[$[z]].push({[E]:$[E],[N]:$[N]})});for(const $ in P)j.push({[E]:$,[z]:P[$]});return j}else return B;else if(!z)return B},h=n.ref(!1),d=async()=>{var B,E;if(e.dataType==="request"){h.value=!0;try{const N=await r();if(i.value=y(((E=(B=N==null?void 0:N.data)==null?void 0:B.data)==null?void 0:E.rows)||[]),e.selectFirstOption){let z=n.unref(i)[0];if(g.options){const P=z[g.options];P&&P.length&&(z=P[0])}s.value=z[g.value]}}catch(N){console.error(N)}finally{h.value=!1}}},{setLoadedData:v,loadedData:D}=n.inject(bt,{setLoadedData:(B,E)=>{},loadedData:{}}),x=n.computed(()=>{let B=s.value;if(e.valueType==="label"&&n.unref(s)&&n.unref(i)){const E=g.label,N=g.value;if(e.mode==="multiple")B=n.unref(i).filter(z=>n.unref(s).includes(z[N])).map(z=>z[E]);else{const z=n.unref(i).find(P=>n.unref(s)===P[N]);z&&(B=z[E])}}return B}),b=n.ref([]),p=n.computed(()=>{const B={};if(e.mode!=="multiple"){const E=n.unref(b).find(N=>N.value===n.unref(s));E&&(B.itemCodes=E.item_codes)}return B});c(e.id,{type:e.type,value:x,...n.unref(p)});const A=ke(e)("selectChange",()=>{const B=e.id,E=f(B);c(B,{...E,...n.unref(p),RECORD:x})}),R=(B=[])=>{if(i.value=y(B),e.selectFirstOption){let E=n.unref(i)[0];if(g.options){const N=E[g.options];N&&N.length&&(E=N[0])}s.value=E[g.value]}},_=ot(e),O=async()=>{var B;try{h.value=!0;const E=await _(),{data:N}=(E==null?void 0:E.data)||{},z=g.label,P=g.value;if(N){const j=((B=E==null?void 0:E.data)==null?void 0:B.data)??[];b.value=j;const $=j.map(L=>({[z]:L.label,[P]:L.value})),{id:F}=e,q=f(F);c(F,{...q,...n.unref(p)}),v(F,!0),R($)}else R([])}catch(E){console.error(E)}finally{h.value=!1}},k=n.computed(()=>{var B,E;return(E=(B=e==null?void 0:e.graphicConfig)==null?void 0:B.controlList)==null?void 0:E.find(N=>N.conditionKey==="parentCode")}),S=n.ref(!1);n.watch(D,B=>{!n.unref(S)&&n.unref(k)&&B[n.unref(k).id]&&(S.value=!0,T())},{deep:!0});const T=()=>{switch(e.dataType){case"indicator":{if(n.unref(k)){if(n.unref(D)[n.unref(k).id]){const{mode:B}=e;B==="multiple"||B==="tags"||B==="combobox"?l.value=[]:l.value="",O()}}else O();break}case"request":d();break}};Oe(e,{selectChange:A,refreshData:T});const{setRequest:w}=n.inject(ze,{setRequest:({id:B,sortNum:E,requestFn:N})=>{}});return typeof w=="function"&&w({id:e.id,requestFn:T,sortNum:e.requestSort}),o({refreshData:T}),{style:t,getPopupContainer:a,myValue:s,selectChange:A,options:i,filterOption:m,loading:h,resultValue:l}}}),Yu="",Ku="";function Sf(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]=f=>e.resultValue=f),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,(f,c)=>(n.openBlock(),n.createBlock(s,{key:c,value:f.value,label:f.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 Gi=xe(ye(vf,[["render",Sf],["__scopeId","data-v-e5517626"]])),Jo={...we,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},Xo=be(Jo),Wi=["selectChange","refreshData"],Cf={name:"EcanTreeSelect",components:{ATreeSelect:se.TreeSelect},props:{...Xo},setup(e){const o=Ce(e),t=n.ref(e.data),a=(y,h)=>{const d=e.dataFieldNames,v=d.label,D=d.value;let x;const b=h[v],p=h[D];return b!=null?x=b:p!=null&&(x=p),(x==null?void 0:x.toLowerCase().indexOf(y==null?void 0:y.toLowerCase()))>=0},r=n.ref();n.watch(()=>[e.multiple,e.value,e.treeCheckable,e.selectFirstOption],()=>{const{multiple:y,value:h,selectFirstOption:d}=e;y?h?r.value=h.split(","):d&&(r.value=[n.unref(t)[0]]):h?r.value=h:d&&(r.value=n.unref(t)[0])},{immediate:!0});const i=n.ref(!1),s=He(e),l=async()=>{var y,h;if(e.dataType==="request"){i.value=!0;try{const d=await s();t.value=((h=(y=d==null?void 0:d.data)==null?void 0:y.data)==null?void 0:h.rows)||[];const v=n.unref(t)[0];e.value===""&&v!=null&&(r.value=v[e.dataFieldNames.value])}catch(d){console.error(d)}finally{i.value=!1}}},{getGlobalModel:f,setGlobalModel:c}=n.inject(Ae,{getGlobalModel:y=>{},setGlobalModel:(y,h)=>{}});c(e.id,{type:e.type,value:r});const g=ke(e)("selectChange",()=>{const y=e.id,h=f(y);c(y,{...h,RECORD:r})});Oe(e,{selectChange:g,refreshData:l});const{setRequest:m}=n.inject(ze,{setRequest:({id:y,sortNum:h,requestFn:d})=>{}});return m({id:e.id,requestFn:l,sortNum:e.reque}),{style:o,treeData:t,filterTreeNode:a,myValue:r,loading:i,selectChange:g}}},Ju="",Xu="";function wf(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 $i=xe(ye(Cf,[["render",wf],["__scopeId","data-v-37236421"]])),ea={...we,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:""},ta=be(ea),Zi=["checkboxChange","click"],Af=n.defineComponent({name:"EcanRadio",components:{ARadioGroup:se.RadioGroup,ARadioButton:se.RadioButton,ARadio:se.Radio},props:{...ta},setup(e,{expose:o}){const t=Ce(e),a=n.ref([]),r=n.ref(""),i=b=>{const p=e.value;let C=[];typeof p=="string"&&p!==""?C=C.concat(p.split(",")):Array.isArray(p)&&(C=C.concat(p)),a.value=b,r.value=C[0]||""};n.watch(()=>[e.data,e.value],([b])=>{i(b)},{immediate:!0,deep:!0});const s=He(e),l=async()=>{var C,A;if(e.dataType!=="request")return;const b=await s(),p=((A=(C=b==null?void 0:b.data)==null?void 0:C.data)==null?void 0:A.rows)||[];i(p)},{getGlobalModel:f,setGlobalModel:c}=n.inject(Ae,{getGlobalModel:b=>{},setGlobalModel:(b,p)=>{}});c(e.id,{type:e.type,value:r});const u=ke(e),g=u("checkboxChange",()=>{const b=f(e.id);c(e.id,{...b,RECORD:r})}),m=b=>{r.value=b,u("click",()=>{const p=f(e.id);c(e.id,{...p,RECORD:r})})()};n.watch(r,()=>{g()});const y=ot(e),h=async()=>{var b;try{const p=await y(),{data:C}=(p==null?void 0:p.data)||{};if(C){const R=(((b=p==null?void 0:p.data)==null?void 0:b.data)??[]).map(_=>({label:_.label,value:_.value}));i(R)}else i([])}catch(p){console.error(p)}},d=()=>{switch(e.dataType){case"indicator":h();break;case"request":l();break}},{setRequest:v}=n.inject(ze,{setRequest:({id:b,sortNum:p,requestFn:C})=>{}});typeof v=="function"&&v({id:e.id,requestFn:d,sortNum:e.requestSort});const D=b=>{r.value=b.value},x=n.computed(()=>e.tabFlexDirection==="column"?{display:"flex",height:"30px",lineHeight:"30px"}:{});return o({refreshData:d}),{myOption:a,style:t,myValue:r,radioStyle:x,onClickButton:m,useImagePath:At,tabChange:D}}}),t1="",n1="",kf=["onClick"];function Tf(e,o,t,a,r,i){const s=n.resolveComponent("a-radio"),l=n.resolveComponent("a-radio-button"),f=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,u)=>(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:u,onClick:n.withModifiers(g=>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,kf))),128))],4)):(n.openBlock(),n.createBlock(f,{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:u=>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 Yi=xe(ye(Af,[["render",Tf],["__scopeId","data-v-baa84768"]])),na={...we,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},oa=be(na),Ki=["click","refreshData","resetRecord"],Wt=async e=>{var f;const o=await ft.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(),(f=s.parentNode)==null||f.removeChild(s),window.URL.revokeObjectURL(l)},aa={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:[]},ra=be(aa),Qi=["showModal","hideModal"];function Ji(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 g in t){const m=o.find(y=>y.id===g);if(m){xn(m,"parentId")||(m.parentId="",m.sourceLeft=m.left,m.sourceTop=m.top);for(const y in t[g])if(t[g][y])for(const h of t[g][y]){const d=o.find(v=>v.id===h);d&&(d.parentId=g,d.sourceLeft=d.left,d.sourceTop=d.top,d.left=parseFloat(d.left)-parseFloat(m.sourceLeft||m.left)+"px",d.top=parseFloat(d.top)-parseFloat(m.sourceTop||m.top)+"px")}}}const s=Array.from(new Set(o.filter(g=>(!xn(g,"parentId")||g.parentId==="")&&g.combinationId).map(g=>g.combinationId))),l=[];for(const g of s){const m=a[g];if(m!=null&&m.length){const y=o.filter(h=>m.includes(h.id));if(y!=null&&y.length){const h=Ef(y);if(h){l.push({...h,id:g,keyName:g,parentId:"",type:"ecanBorder",borderRadius:"",borderWidth:null,sourceLeft:h.left,sourceTop:h.top});for(const d of y)d&&(d.parentId=g,d.sourceLeft=d.left,d.sourceTop=d.top,d.left=parseFloat(d.left)-parseFloat(h.left)+"px",d.top=parseFloat(d.top)-parseFloat(h.top)+"px")}}}}l!=null&&l.length&&o.unshift(...l);const f=["ecanPie","ecanLine","ecanBar","ecanScatter","ecanComboGraph","ecanCustomGraph","ecanRadar","ecanMap"],c=o.filter(g=>f.includes(g.type)&&!xn(g,"parentId")),u=[];for(const g of c)if(g){const m=g.id+"_vir";u.push({id:m,keyName:g.keyName+"_vir",parentId:"",type:"ecanBorder",borderRadius:"",borderWidth:null,width:g.width,height:g.height,left:g.left,top:g.top,sourceLeft:g.left,sourceTop:g.top}),g.parentId=m,g.sourceLeft=g.left,g.sourceTop=g.top,g.left=0,g.top=0}u!=null&&u.length&&o.unshift(...u);for(const g of o){const m=document.body.clientWidth;if(g.parentId===""&&["ecanBorder","ecanTabs"].includes(g.type))g.sourceWidth=parseFloat(g.width),g.height=(m/(g.sourceWidth/parseFloat(g.height))).toFixed(2)+"px",g.width="100%",g.position="relative",g.top="auto",g.left="auto";else{const y=o.find(h=>h.id===g.parentId);if((y==null?void 0:y.parentId)===""){const h=y.sourceWidth||parseFloat(y.width),d=m/h;g.scale=d,g.top=parseFloat(g.top)*d-parseFloat(g.height)*(1-d)/2+"px",g.left=parseFloat(g.left)*d-parseFloat(g.width)*(1-d)/2+"px"}}g.type==="ecanModal"&&(g.parentId="",g.fullModal=!0)}return Bf(o)}return o}function Bf(e){const t=e.filter(a=>a.parentId==="");if(t!=null&&t.length){const a=qe.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 Ef(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 Df=n.defineComponent({name:"Render",props:{component:{type:Object,default:()=>{}}},setup(e,{emit:o}){o("ready",e.component.id)}});function Rf(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 If=xe(ye(Df,[["render",Rf]])),_f=n.defineComponent({name:"EcanModal",components:{AModal:se.Modal,CloseOutlined:$l,Render:If},props:{...ra},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(Ae,{clearInteractiveData:()=>{},interactiveData:null}),f=()=>document.getElementById("ProviderConfig")||document.body,c=n.computed(()=>{const Y=e.position;return{verticalAlign:{default:"",top:"top",center:"middle",bottom:"bottom"}[Y]}}),u=e.fullModal?"1920px":e.width,g=e.fullModal?"1080px":e.height,m=e.originalWidth,y=e.originalHeight,h=n.ref("80%"),d=n.ref(0),v=n.ref(),D=n.ref(0),x=n.ref({}),b=Ce(e),p=n.ref({}),C=n.ref(!1),A=n.ref();let R;const _=()=>{v.value=parseFloat(u)/parseFloat(m);const Y=parseFloat(g)/parseFloat(y),ie=document.body.offsetWidth,Q=document.body.offsetHeight;d.value=ie*n.unref(v),D.value=Q*Y,h.value=`${n.unref(v)*100}%`,x.value={width:`${n.unref(d)}px`,height:`${n.unref(D)}px`},p.value={...n.unref(b),backgroundImage:At(e.backgroundImage,!0)},a?p.value={...p.value,width:"100%",height:"100%"}:p.value={...p.value,transform:`scale(${n.unref(d)/parseFloat(u)},${n.unref(D)/parseFloat(g)})`,width:u,height:g}},O=qe.debounce(()=>{_()},100),k=()=>{const Y=window.MutationObserver;R=new Y(O),R.observe(document.body,{attributes:!0,attributeFilter:["style"],attributeOldValue:!0})},S=()=>{R&&(R.disconnect(),R.takeRecords(),R=null)},T=n.ref(!1),{touchRequest:w}=n.inject(ze,{touchRequest:()=>{}}),B=n.ref(""),E=()=>{var Q;const{title:Y}=e,ie=(Q=n.unref(l))==null?void 0:Q.RECORD;return ie?Be(Y,{textData:ie},{useNewline:!1,useSpace:!1}):Y},N=ke(e),z=()=>{a&&(document.documentElement.style.overflow="hidden"),B.value=E(),T.value=!0},P=N("hideModal",()=>{o("close"),a&&(document.documentElement.style.overflow="hidden auto",t.value=[]),T.value=!1}),j=()=>{P()},$=()=>{P(),s()},{setModalModel:F,pushUseModalIds:q,popUseModalIds:L}=n.inject(ar,{pushUseModalIds:Y=>{},popUseModalIds:()=>{},setModalModel:(Y,ie)=>{}}),I=n.computed(()=>{if(a){const Y=qe.cloneDeep(e.componentList),ie=r(),Q=i();return Ji({componentList:Y,containerMap:ie,combinationMap:Q})}else return e.componentList}),M=()=>{const Y=e.id;let ie=[];const Q=e.componentList;Array.isArray(Q)&&(ie=Q.map(J=>J.id),F(Y,[...new Set(ie)]))};n.watch(()=>T.value,async Y=>{Y?(C.value=!1,q(e.id),M(),await n.nextTick(()=>{_(),window.addEventListener("resize",O),k(),C.value=!0}),w()):(L(),window.removeEventListener("resize",O),S())});const U=n.computed(()=>n.unref(v)>=1),X=n.computed(()=>e.fullModal),W=n.computed(()=>{let Y="ecan-modal";return n.unref(U)&&(Y+=" ecan-full-width-modal"),n.unref(X)&&(Y+=" ecan-full-modal"),Y});return Oe(e,{showModal:z,hideModal:P}),{modalRef:A,containStyle:x,contentStyle:p,getContainer:f,modalStyle:c,modalWith:h,isFullModal:X,style:b,visible:T,showModal:z,onOk:j,onCancel:$,isFullWidth:U,wrapClassName:W,ready:C,usedComponentList:I,isMobile:a,readyIds:t,hasOwn:xn,onComponentReady:Y=>{t.value.push(Y)},formatTitle:B}}}),r1="",i1="";function Of(e,o,t,a,r,i){const s=n.resolveComponent("close-outlined"),l=n.resolveComponent("render"),f=n.resolveComponent("a-modal");return n.openBlock(),n.createBlock(f,{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,u)=>(n.openBlock(),n.createElementBlock(n.Fragment,{key:c.id+u},[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=xe(ye(_f,[["render",Of],["__scopeId","data-v-059d0f64"]]));We.use([Et.CanvasRenderer,gt.PieChart,pe.TitleComponent,pe.ToolboxComponent,pe.TooltipComponent,pe.LegendComponent]);const Lf=n.defineComponent({name:"EcanPie",props:{...oa},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:S=[]}=n.unref(r)[0]||{};if(Array.isArray(e.colors)){const T=e.isUseLabelColors,w=e.colors;S=S.map((B,E)=>({label:T?{color:w[E]}:{},...B}))}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(){Wt(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 T;t.value=!0,(T=i.value)==null||T.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(){se.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:T=>{const{marker:w,seriesName:B,name:E,value:N,percent:z,data:P}=T||{};return Be(e.tooltipFormatter,{textData:{marker:w,name:E,value:N,percent:z,a:B,b:E,c:N,d:z,...P}},{useNewline:!0,useSpace:!0})},textStyle:{color:e.tooltipTextStyleColor},position:e.tooltipPosition||void 0},legend:n.unref(s),color:e.colors,series:[{data:S,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?lt:e.labelFontSize,position:e.labelPosition,formatter:fc(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:{}}}]}}),f=()=>{const S=t.value?lt:parseFloat(e.legendFontSize);s.value={width:e.legendWidth,height:e.legendHeight,show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,align:"left",textStyle:{lineHeight:S+4,width:e.legendTextWidth,color:e.legendTextStyleColor,fontSize:S},itemHeight:e.legendItemHeight,itemWidth:e.legendItemWidth,itemGap:e.legendItemGap,formatter:T=>{const{data:w}=r.value[0]||{};let B;if(w){const E=w.find(N=>N.name===T);E&&(B=E.value)}return Be(e.legendFormatter,{textData:{name:T,value:B}},{useNewline:!1,useSpace:!1})}}},c=()=>{t.value=!1},{getGlobalModel:u,setGlobalModel:g}=n.inject(Ae,{getGlobalModel:S=>{},setGlobalModel:(S,T)=>{}}),{pageMode:m}=n.inject(Me,{pageMode:"normal"}),y=(S=[],T)=>{const{dataset:w}=Mt(S,T);r.value=w},h=(S=[],T)=>{const w=Mt(S,T);r.value=w.dataset};n.watch(()=>e.data,S=>{(e.dataType==="static"||n.unref(m)==="design")&&y(S)},{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],()=>{f()},{immediate:!0});const d=n.ref(!1),v=He(e),D=async()=>{var S,T;if(e.dataType==="request")try{d.value=!0;const w=await v();y((T=(S=w==null?void 0:w.data)==null?void 0:S.data)==null?void 0:T.rows,e.valueTypeDataFieldNames)}catch(w){console.error(w)}finally{d.value=!1}},x=ke(e);g(e.id,{type:e.type,RECORD:""});const b=x("click",S=>{const T=u(e.id);g(e.id,{...T,type:e.type,RECORD:S==null?void 0:S.data})}),p=ot(e),C=async()=>{var S;try{d.value=!0;const T=await p(),{data:w}=(T==null?void 0:T.data)||{};if(w){const{columns:B=[],rows:E=[]}=((S=T==null?void 0:T.data)==null?void 0:S.data)??{};let N=[];if(B.length>0){const z=B[0],P=B[1];N=E.map(j=>({name:j[z],value:isNaN(j[P])?0:j[P]||0}))}h(N)}}catch(T){console.error(T)}finally{d.value=!1}},{loadedData:A}=n.inject(bt,{loadedData:{}}),R=n.ref(!1);n.watch(A,S=>{if(e.dataType==="indicator"){const T=Xt(e.graphicConfig);T!=null&&T.length&&(!n.unref(R)&&tt(e.graphicConfig,S)?(R.value=!0,_()):tt(e.graphicConfig,S)||(R.value=!1))}},{deep:!0});const _=()=>{switch(e.dataType){case"indicator":tt(e.graphicConfig,n.unref(A))&&C();break;case"request":D();break}};Oe(e,{resetRecord:()=>{const S=e.id,T=u(S);g(S,{...T,RECORD:""})},refreshData:_,click:b}),o({refreshData:_});const{setRequest:k}=n.inject(ze,{setRequest:S=>{}});return typeof k=="function"&&k({id:e.id,requestFn:_,sortNum:e.requestSort}),{option:l,style:a,click:b,onClose:c,loading:d,ecanModal:i}}}),s1="";function Nf(e,o,t,a,r,i){const s=n.resolveComponent("echarts"),l=n.resolveComponent("spin"),f=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(f,{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 Xi=xe(ye(Lf,[["render",Nf]])),ia={...we,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"},la=be(ia),e0=["click","refreshData","resetRecord"];We.use([Et.CanvasRenderer,gt.LineChart,pe.ToolboxComponent,pe.TitleComponent,pe.LegendComponent,pe.MarkLineComponent]);const Mf=n.defineComponent({name:"EcanLine",props:{...la},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(),f=n.computed(()=>a.value?lt:12),c=n.ref({});let u;const g=n.ref([]),m=n.computed(()=>{const E=e.xAxisLabelFormatter,N=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(){Wt(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(){se.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:f.value},show:e.tooltipShow,formatter:z=>{var F;const P=z.length;let j="",$=e.tooltipFormatter;u=(F=z[0])==null?void 0:F.data,$===""&&($="{marker} {a} {c}");for(let q=0;q<P;q++){const{marker:L,seriesName:I,name:M,value:U,data:X}=z[q]||{};if(q===0){let W=M;typeof M=="string"&&M[0]==="0"&&!isNaN(+M)&&(W=(+M).toString()),j+=`${nt(E,W)}<br/>`}j+=Be($,{textData:{marker:L,name:M,value:U,a:I,b:M,c:U||0,...X}},{useNewline:!0,useSpace:!0}),j+="<br/>"}return j},position:e.tooltipPosition||void 0},xAxis:{type:"category",boundaryGap:e.isBoundaryGap,data:n.unref(s).map(z=>{let P={};return z&&typeof z=="object"?P={...z}:P={value:z},P}),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()),nt(E,z)}},axisLine:{show:e.xAxisLineShow,lineStyle:{color:e.xAxisLineStyleColor}},axisTick:{show:e.xAxisTickShow}},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 nt(N,z)}},axisLine:{show:e.yAxisLineAlwaysDisplay,lineStyle:{color:e.yAxisLineStyleColor}}},legend:{show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,textStyle:{color:e.legendTextStyleColor,fontSize:a.value?lt:e.legendFontSize},itemHeight:e.legendItemHeight,itemWidth:e.legendItemWidth,itemGap:e.legendItemGap,data:n.unref(g).map(z=>({name:z.name,icon:e.legendType}))},series:n.unref(i)}}),y=()=>{a.value=!1},{getGlobalModel:h,setGlobalModel:d}=n.inject(Ae,{getGlobalModel:E=>{},setGlobalModel:(E,N)=>{}}),{pageMode:v}=n.inject(Me,{pageMode:"normal"}),D=n.computed(()=>e.isShowMarkLine?{markLine:{data:[{type:e.markLineType}]}}:{}),x=(E=[],N=!1)=>{let z;if(e.dataFieldConfigType==="key"){const F=N?e.keyTypeDataFieldNames:null;z=wt(E,F)}else if(e.dataFieldConfigType==="value"){const F=N?e.valueTypeDataFieldNames:null;z=Mt(E,F)}s.value=z.dimensions,g.value=z.dataset;const P=z.dataset,j=[],$=P.length;for(let F=0;F<$;F++){const q={};e.shadowColor&&(q.shadowColor=e.shadowColor,q.shadowBlur=e.shadowBlur,q.shadowOffsetY=e.shadowOffsetY,q.shadowOffsetX=e.shadowOffsetX),j.push({type:"line",...P[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,...q},...n.unref(D)})}i.value=j},b=(E=[],N,z=!1)=>{const j=wt(E,z?N:null,!0);s.value=j.dimensions,g.value=j.dataset;const $=j.dataset,F=[],q=$.length;for(let L=0;L<q;L++){const I={};e.shadowColor&&(I.shadowColor=e.shadowColor,I.shadowBlur=e.shadowBlur,I.shadowOffsetY=e.shadowOffsetY,I.shadowOffsetX=e.shadowOffsetX),F.push({type:"line",...$[L],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[L]},{offset:1,color:e.areaGradientColor||"transparent"}],global:!1}:e.colors[L],opacity:e.areaStyleOpacity},lineStyle:{width:e.lineStyleWidth,...I},...n.unref(D)})}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])=>{(e.dataType==="static"||n.unref(v)==="design")&&x(E)},{immediate:!0,deep:!0});const p=n.ref(!1),C=He(e),A=async()=>{var E,N;if(e.dataType==="request")try{p.value=!0;const z=await C();x((N=(E=z==null?void 0:z.data)==null?void 0:E.data)==null?void 0:N.rows,!0)}catch(z){console.error(z)}finally{p.value=!1}},R=ke(e);d(e.id,{type:e.type,RECORD:""});const _=R("click",E=>{const N=h(e.id);d(e.id,{...N,type:e.type,RECORD:e.tooltipShow?u:E.data})}),O=E=>{t.value.chart.containPixel("grid",[E.offsetX,E.offsetY])&&_()};e.tooltipShow?c.value["zr:click"]=O:c.value.click=_;const k=ot(e),S=async()=>{var E;try{p.value=!0;const N=await k(),{columns:z=[],rows:P=[]}=((E=N==null?void 0:N.data)==null?void 0:E.data)??{};let j;z.length>0&&(j={name:z[0],types:z.slice(1).map($=>({label:$,value:$}))}),b(P,j,!0)}catch(N){console.error(N)}finally{p.value=!1}},T=()=>{switch(e.dataType){case"indicator":S();break;case"request":A();break}};Oe(e,{refreshData:T,resetRecord:()=>{const E=e.id,N=h(E);d(E,{...N,RECORD:""})},click:_});const{setRequest:B}=n.inject(ze,{setRequest:E=>{}});return typeof B=="function"&&B({id:e.id,requestFn:T,sortNum:e.requestSort}),o({refreshData:T}),{option:m,style:r,click:_,loading:p,onClose:y,ecanModal:l,eventObj:c,echartRef:t}}}),f1="";function zf(e,o,t,a,r,i){const s=n.resolveComponent("echarts"),l=n.resolveComponent("spin"),f=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(f,{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 t0=xe(ye(Mf,[["render",zf]])),sa={...we,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"},ca=be(sa),n0=["refreshData","click","resetRecord"];We.use([Et.CanvasRenderer,gt.BarChart,pe.TitleComponent,pe.LegendComponent,pe.DatasetComponent,pe.ToolboxComponent,pe.MarkLineComponent]);const Ff=n.defineComponent({name:"EcanBar",props:{...ca},components:{Spin:Nt,Echarts:xt,EcanModal:kt,AModal:se.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),f=n.ref([]),c=n.ref(),u=n.ref({});let g;const m=n.computed(()=>a.value?lt:12),y=n.computed(()=>{const{gradientShow:L,gradientColors:I,gradientOffset:M,barBorderRadius:U}=e,X=n.unref(f),W=X.length,ae=[];for(let Y=0;Y<W;Y++){const ie={...X[Y],type:"bar",barWidth:e.barWidth,showBackground:e.showBarBackground};if(e.isStack&&(ie.stack="stack"),ie.label={show:e.labelShow,fontSize:e.labelFontSize,position:e.labelPosition,color:e.labelColor,width:e.labelWidth,overflow:e.labelOverflow,formatter:Q=>{let J="",ee=e.labelFormatter;ee===""&&(ee="{c}");const{seriesName:fe,name:Se,value:Te,data:Ie}=Q||{};return J+=Be(ee,{textData:{name:Se,value:Te,a:fe,b:Se,c:Te||0,...Ie}},{useNewline:!0,useSpace:!0}),J}},ie.itemStyle={},L&&(ie.itemStyle={color:{x:e.isUseHorizontalAxis?1:0,y:0,x2:0,y2:e.isUseHorizontalAxis?0:1,colorStops:[{offset:0,color:e.colors[Y]},{offset:M,color:I[Y]},{offset:1,color:I[Y]}]}}),U){const Q=U.split(",");if(Q!=null&&Q.length){const J=[];for(const ee of Q){const fe=parseFloat(ee);isNaN(fe)||J.push(fe)}ie.itemStyle.borderRadius=J}}e.isShowMarkLine&&(ie.markLine={data:[{type:e.markLineType}]}),ae.push(ie)}return ae}),h=n.ref([]),d=n.ref(!1),v=n.computed(()=>{const L=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 M=t.value.chart.getOption(),{xAxis:U}=M||{};U&&U.length&&(s.value=U[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(){Wt(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 M;a.value=!0,(M=c.value)==null||M.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(){se.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:M=>{var ae;const U=M.length;let X="",W=e.tooltipFormatter;g=(ae=M[0])==null?void 0:ae.data,W===""&&(W="{marker} {a} {c}");for(let Y=0;Y<U;Y++){const{marker:ie,seriesName:Q,name:J,value:ee,data:fe}=M[Y]||{};if(Y===0){let Se=J;typeof J=="string"&&J[0]==="0"&&!isNaN(+J)&&(Se=(+J).toString()),X+=`${nt(I,Se)}<br/>`}X+=Be(W,{textData:{marker:ie,name:J,value:ee,a:Q,b:J,c:ee||0,...fe}},{useNewline:!0,useSpace:!0}),X+="<br/>"}return X},textStyle:{color:e.tooltipTextStyleColor,fontSize:m.value},position:e.tooltipPosition||void 0},legend:{show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,textStyle:{color:e.legendTextStyleColor,fontSize:a.value?lt:e.legendFontSize},itemHeight:e.legendItemHeight,itemWidth:e.legendItemWidth,itemGap:e.legendItemGap,data:n.unref(f).map((M,U)=>({name:M.name,itemStyle:{color:e.colors[U]},icon:e.legendType}))},xAxis:{type:e.isUseHorizontalAxis?"value":"category",data:e.isUseHorizontalAxis?null:n.unref(C),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(M){return typeof M=="string"&&M[0]==="0"&&!isNaN(+M)&&(M=(+M).toString()),nt(I,M)}},axisLine:{show:e.xAxisLineShow,lineStyle:{color:e.xAxisLineStyleColor}},axisTick:{show:e.xAxisTickShow}},yAxis:{type:e.isUseHorizontalAxis?"category":"value",data:e.isUseHorizontalAxis?n.unref(h):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(M){return nt(L,M)}},axisLine:{show:e.yAxisLineAlwaysDisplay,lineStyle:{color:e.yAxisLineStyleColor}}},series:n.unref(y)}}),{pageMode:D}=n.inject(Me,{pageMode:"normal"}),x=()=>{a.value=!1},b=(L=[],I=!1)=>{let M={};if(e.dataFieldConfigType==="key"){const U=I?e.keyTypeDataFieldNames:null;M=wt(L,U)}else if(e.dataFieldConfigType==="value"){const U=I?e.valueTypeDataFieldNames:null;M=Mt(L,U)}f.value=M.dataset,h.value=M.dimensions},p=(L=[],I,M=!1)=>{const X=wt(L,M?I:null,!0);f.value=X.dataset,h.value=X.dimensions},C=n.computed(()=>n.unref(h).map(L=>{let I={};return L&&typeof L=="object"?I={...L}:I={value:L},I}));n.watch(()=>[e.data,e.labelFormatter],([L])=>{(e.dataType==="static"||n.unref(D)==="design")&&b(L)},{immediate:!0,deep:!0});const A=He(e),R=async()=>{var L,I;try{d.value=!0;const M=await A();b((I=(L=M==null?void 0:M.data)==null?void 0:L.data)==null?void 0:I.rows,!0)}catch(M){console.error(M)}finally{d.value=!1}},_=ot(e),O=async()=>{var L;try{d.value=!0;const I=await _(),{columns:M=[],rows:U=[]}=((L=I==null?void 0:I.data)==null?void 0:L.data)??{};let X;M.length>0&&(X={name:M[0],types:M.slice(1).map(W=>({label:W,value:W}))}),p(U,X,!0)}catch(I){console.error(I)}finally{d.value=!1}},{loadedData:k}=n.inject(bt,{loadedData:{}}),S=n.ref(!1);n.watch(k,L=>{if(e.dataType==="indicator"){const I=Xt(e.graphicConfig);I!=null&&I.length&&(!n.unref(S)&&tt(e.graphicConfig,L)?(S.value=!0,T()):tt(e.graphicConfig,L)||(S.value=!1))}},{deep:!0});const T=()=>{switch(e.dataType){case"indicator":tt(e.graphicConfig,n.unref(k))&&O();break;case"request":R();break}},w=(L,I)=>!!n.unref(s)[I.value].value.includes(L),B=async()=>{r.value=!1;const L=t.value.chart.getOption();for(let I=0;I<7;I++)await E(L,I)},E=(L,I)=>new Promise(M=>{setTimeout(()=>{const{series:U,color:X,xAxis:W}=L,ae=t.value.chart,{splitArea:Y={}}=W[0]||{};U.forEach((ie,Q)=>{const J=ie.data;let ee="";I%2?ee=X[Q]+"a8":ee=X[Q],J[i.value].itemStyle={color:ee}}),I%2?(Y.show=!0,Y.areaStyle.color=n.unref(s).map((ie,Q)=>Q===i.value?"#ff003b26":"")):Y.show=!1,ae.setOption({series:U,xAxis:W}),M()},200)});o({refreshData:T});const N=ke(e),{getGlobalModel:z,setGlobalModel:P}=n.inject(Ae,{getGlobalModel:L=>{},setGlobalModel:(L,I)=>{}});P(e.id,{type:e.type,RECORD:""});const j=N("click",L=>{const I=z(e.id);P(e.id,{...I,type:e.type,RECORD:e.tooltipShow?g:L.data})}),{setRequest:$}=n.inject(ze,{setRequest:L=>{}});typeof $=="function"&&$({id:e.id,requestFn:T,sortNum:e.requestSort});const F=()=>{const L=e.id,I=z(L);P(L,{...I,RECORD:""})},q=L=>{t.value.chart.containPixel("grid",[L.offsetX,L.offsetY])&&j()};return e.tooltipShow?u.value["zr:click"]=q:u.value.click=j,Oe(e,{refreshData:T,click:j,resetRecord:F}),{option:v,style:l,refreshData:T,click:j,loading:d,onClose:x,ecanModal:c,echartRef:t,handleLocationOk:B,onFilterOption:w,locationVisible:r,locationValue:i,locationNames:s,eventObj:u}}}),u1="",h1="",Pf=e=>(n.pushScopeId("data-v-21dab355"),e=e(),n.popScopeId(),e),qf={class:"location-wrap"},Hf=Pf(()=>n.createElementVNode("div",{class:"location-text"},"选择分类:",-1));function Vf(e,o,t,a,r,i){const s=n.resolveComponent("echarts"),l=n.resolveComponent("spin"),f=n.resolveComponent("ecan-modal"),c=n.resolveComponent("a-select-option"),u=n.resolveComponent("a-select"),g=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(f,{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(g,{visible:e.locationVisible,"onUpdate:visible":o[1]||(o[1]=m=>e.locationVisible=m),title:"快速定位",onOk:e.handleLocationOk},{default:n.withCtx(()=>[n.createElementVNode("div",qf,[Hf,n.createVNode(u,{value:e.locationValue,"onUpdate:value":o[0]||(o[0]=m=>e.locationValue=m),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,(m,y)=>(n.openBlock(),n.createBlock(c,{key:y,value:y},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(m.value),1)]),_:2},1032,["value"]))),128))]),_:1},8,["value","filter-option"])])]),_:1},8,["visible","onOk"])],4)}const o0=xe(ye(Ff,[["render",Vf],["__scopeId","data-v-21dab355"]])),fa={...we,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"},da=be(fa),a0=["click","refreshData","resetRecord"];We.use([Et.CanvasRenderer,gt.ScatterChart,pe.ToolboxComponent,pe.TitleComponent,pe.TooltipComponent,pe.LegendComponent,pe.MarkLineComponent]);const jf=n.defineComponent({name:"EcanScatter",props:{...da},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?lt:12),s=n.computed(()=>e.isShowMarkLine?{markLine:{data:[{type:e.markLineType}]}}:{}),l=n.computed(()=>{const C=e.xAxisLabelFormatter,A=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(){Wt(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 R;o.value=!0,(R=r.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(){se.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(R){return typeof R=="string"&&R[0]==="0"&&!isNaN(+R)&&(R=(+R).toString()),nt(C,R)}},axisLine:{lineStyle:{color:e.xAxisLineStyleColor}},axisTick:{show:e.xAxisTickShow}},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(R){return nt(A,R)}},axisLine:{show:e.yAxisLineAlwaysDisplay,lineStyle:{color:e.yAxisLineStyleColor}}},tooltip:{show:e.tooltipShow,trigger:e.tooltipTrigger,formatter(R){var w;const{marker:_,seriesName:O}=R,k=((w=R==null?void 0:R.data)==null?void 0:w.record)??{},{name:S,value:T}=k;return Be(e.tooltipFormatter,{textData:{marker:_,seriesName:O,a:O,b:S,c:T,...k}})},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:f,setGlobalModel:c}=n.inject(Ae,{getGlobalModel:C=>{},setGlobalModel:(C,A)=>{}}),{pageMode:u}=n.inject(Me,{pageMode:"normal"}),g=(C=[],A)=>{const{name:R="name",value:_="value"}=A||{};a.value=C.map(O=>({value:[O[R],O[_]],record:O}))};n.watch(()=>e.data,C=>{(e.dataType==="static"||n.unref(u)==="design")&&g(C)},{immediate:!0,deep:!0});const m=n.ref(!1),y=He(e),h=async()=>{var C,A;if(e.dataType==="request"){m.value=!0;try{const R=await y();g((A=(C=R==null?void 0:R.data)==null?void 0:C.data)==null?void 0:A.rows,e.dataFieldNames)}catch(R){console.error(R)}finally{m.value=!1}}},d=()=>{o.value=!1},v=ke(e);c(e.id,{type:e.type,RECORD:""});const D=v("click",C=>{const A=e.id,R=f(A);c(A,{...R,type:e.type,RECORD:C==null?void 0:C.data})});Oe(e,{refreshData:()=>{h()},click:D,resetRecord:()=>{const C=e.id,A=f(C);c(C,{...A,RECORD:""})}});const{setRequest:p}=n.inject(ze,{setRequest:C=>{}});return typeof p=="function"&&p({id:e.id,requestFn:h,sortNum:e.requestSort}),{option:l,style:t,click:D,loading:m,onClose:d,ecanModal:r}}}),m1="";function Uf(e,o,t,a,r,i){const s=n.resolveComponent("echarts"),l=n.resolveComponent("spin"),f=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(f,{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 r0=xe(ye(jf,[["render",Uf]])),ua={...we,id:"",name:"自定义图表",keyName:"自定义图表",type:"ecanCustomGraph",width:"400px",height:"400px",option:{},optionCode:"",graphicType:"ecanCustomGraph"},ha=be(ua),Gf=n.defineComponent({name:"EcanCustomGraph",props:{...ha},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:P0}}});function Wf(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 i0=xe(ye(Gf,[["render",Wf]])),ga={...we,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,yAxisSplitLineShow:!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,yAxisSplitLineType:"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"},ma=be(ga),l0=["refreshData","click","resetRecord"];We.use([Et.CanvasRenderer,gt.BarChart,gt.LineChart,pe.TitleComponent,pe.LegendComponent,pe.DatasetComponent,pe.ToolboxComponent,pe.MarkLineComponent]);const $f=n.defineComponent({name:"EcanComboGraph",props:{...ma},components:{Spin:Nt,Echarts:xt,EcanModal:kt,AModal:se.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 f;const c=Ce(e),u=n.ref([]),g=n.ref([]),m=n.ref(),y=n.ref([]),h=n.computed(()=>a.value?lt:12),d=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:M}=I||{};M&&M.length&&(s.value=M[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(){Wt(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=m.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(){se.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:{show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,textStyle:{color:e.legendTextStyleColor,fontSize:a.value?lt:e.legendFontSize},itemHeight:e.legendItemHeight,itemWidth:e.legendItemWidth,itemGap:e.legendItemGap,data:n.unref(y).map((I,M)=>({name:I.name,itemStyle:{color:e.colors[M]},icon:e.legendType}))},tooltip:{trigger:"axis",show:e.tooltipShow,formatter:I=>{var ae;const M=I.length;let U="",X=e.tooltipFormatter;f=(ae=I[0])==null?void 0:ae.data,X===""&&(X="{marker} {a} {c}");const W=e.seriesTypes;for(let Y=0;Y<M;Y++){const ie=W[Y],{tooltipFormatter:Q}=ie||{},{marker:J,seriesName:ee,name:fe,value:Se,data:Te}=I[Y]||{};if(Y===0){let Ie=fe;typeof fe=="string"&&fe[0]==="0"&&!isNaN(+fe)&&(Ie=(+fe).toString()),U+=`${nt(e.xAxisLabelFormatter,Ie)}<br/>`}U+=Be(Q||X,{textData:{marker:J,name:fe,value:Se,seriesName:ee,a:ee,b:fe,c:Se||0,...Te}},{useNewline:!0,useSpace:!0}),U+="<br/>"}return U},textStyle:{color:e.tooltipTextStyleColor,fontSize:h.value},position:e.tooltipPosition||void 0},xAxis:{minInterval:e.xAxisMinInterval,type:"category",data:n.unref(g).map(I=>{let M={};return I&&typeof I=="object"?M={...I}:M={value:I},M}),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()),nt(e.xAxisLabelFormatter,I)}},axisLine:{show:e.xAxisLineShow,lineStyle:{color:e.xAxisLineStyleColor}},axisTick:{show:e.xAxisTickShow}},yAxis:n.unref(C),series:n.unref(u)})),{pageMode:v}=n.inject(Me,{pageMode:"normal"}),D=()=>{a.value=!1},x=(I=[],M=!1)=>{let U;if(e.dataFieldConfigType==="key"){const W=M?e.keyTypeDataFieldNames:null;U=wt(I,W)}else if(e.dataFieldConfigType==="value"){const W=M?e.valueTypeDataFieldNames:null;U=Mt(I,W)}g.value=U.dimensions;const X=U.dataset;y.value=U.dataset,u.value=p(X)},b=(I=[],M,U=!1)=>{const W=wt(I,U?M:null,!0);g.value=W.dimensions;const ae=W.dataset;y.value=W.dataset,u.value=p(ae)};function p(I){const M=[],U=I.length,X=e.seriesTypes;for(let W=0;W<U;W++){const ae=X[W],{type:Y,axisIndex:ie}=ae||{};let Q={type:Y,yAxisIndex:ie,...I[W]};if(Y==="line"){const J={};e.shadowColor&&(J.shadowColor=e.shadowColor,J.shadowBlur=e.shadowBlur,J.shadowOffsetY=e.shadowOffsetY,J.shadowOffsetX=e.shadowOffsetX),Q={...Q,symbolSize:e.symbolSize,smooth:e.smooth,itemStyle:{color:e.colors[W]},areaStyle:{color:e.areaGradientShow?{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:e.colors[W]},{offset:1,color:e.areaGradientColor||"transparent"}],global:!1}:e.colors[W],opacity:e.areaStyleOpacity},lineStyle:{width:e.lineStyleWidth,...J}}}if(Y==="bar"){const{gradientShow:J,gradientColors:ee,gradientOffset:fe}=e,Se={};if(e.barBorderRadius){const Te=e.barBorderRadius.split(",");if(Te!=null&&Te.length){const Ie=[];for(const Ye of Te){const Ve=parseFloat(Ye);isNaN(Ve)||Ie.push(Ve)}Se.borderRadius=Ie}}J&&(Se.color={x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:e.colors[W]},{offset:fe,color:ee[W]},{offset:1,color:ee[W]}]}),Q={...Q,barWidth:e.barWidth,itemStyle:Se}}e.isShowMarkLine&&(Q.markLine={data:[{type:e.markLineType}]}),M.push(Q)}return M}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],([I])=>{(e.dataType==="static"||n.unref(v)==="design")&&x(I)},{immediate:!0,deep:!0});const C=n.computed(()=>{const I=e.yAxis;return I==null?void 0:I.map(M=>({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(U){return nt(M.axisLabelFormatter,U)}},axisLine:{show:e.yAxisLineAlwaysDisplay,lineStyle:{color:e.yAxisLineStyleColor}}}))}),A=n.ref(!1),R=He(e),_=async()=>{var I,M;if(e.dataType==="request")try{A.value=!0;const U=await R();x((M=(I=U==null?void 0:U.data)==null?void 0:I.data)==null?void 0:M.rows,!0)}catch(U){console.error(U)}finally{A.value=!1}},O=ot(e),k=async()=>{var I;try{A.value=!0;const M=await O(),{columns:U=[],rows:X=[]}=((I=M==null?void 0:M.data)==null?void 0:I.data)??{};let W;U.length>0&&(W={name:U[0],types:U.slice(1).map(ae=>({label:ae,value:ae}))}),b(X,W,!0)}catch(M){console.error(M)}finally{A.value=!1}},{loadedData:S}=n.inject(bt,{loadedData:{}}),T=n.ref(!1);n.watch(S,I=>{if(e.dataType==="indicator"){const M=Xt(e.graphicConfig);M!=null&&M.length&&(!n.unref(T)&&tt(e.graphicConfig,I)?(T.value=!0,w()):tt(e.graphicConfig,I)||(T.value=!1))}},{deep:!0});const w=()=>{switch(e.dataType){case"indicator":tt(e.graphicConfig,n.unref(S))&&k();break;case"request":_();break}},B=(I,M)=>!!n.unref(s)[M.value].value.includes(I),E=async()=>{r.value=!1;const I=t.value.chart.getOption();for(let M=0;M<7;M++)await N(I,M)},N=(I,M)=>new Promise(U=>{setTimeout(()=>{const{series:X,color:W,xAxis:ae}=I,Y=t.value.chart,{splitArea:ie={}}=ae[0]||{};X.forEach((Q,J)=>{const ee=Q.data;let fe="";M%2?fe=W[J]+"a8":fe=W[J],ee[i.value].itemStyle={color:fe}}),M%2?(ie.show=!0,ie.areaStyle.color=n.unref(s).map((Q,J)=>J===i.value?"#ff003b26":"")):ie.show=!1,Y.setOption({series:X,xAxis:ae}),U()},200)});o({refreshData:w});const z=ke(e),{getGlobalModel:P,setGlobalModel:j}=n.inject(Ae,{getGlobalModel:I=>{},setGlobalModel:(I,M)=>{}});j(e.id,{type:e.type,RECORD:""});const $=z("click",I=>{const M=P(e.id);j(e.id,{...M,type:e.type,RECORD:e.tooltipShow?f: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:q}=n.inject(ze,{setRequest:I=>{}});return typeof q=="function"&&q({id:e.id,requestFn:w,sortNum:e.requestSort}),Oe(e,{resetRecord:()=>{const I=e.id,M=P(I);j(I,{...M,RECORD:""})},refreshData:w,click:$}),{style:c,option:d,click:$,loading:A,onClose:D,ecanModal:m,echartRef:t,handleLocationOk:E,onFilterOption:B,locationVisible:r,locationValue:i,locationNames:s,eventObj:l}}}),p1="",b1="",Zf=e=>(n.pushScopeId("data-v-24744c4a"),e=e(),n.popScopeId(),e),Yf={class:"location-wrap"},Kf=Zf(()=>n.createElementVNode("div",{class:"location-text"},"选择分类:",-1));function Qf(e,o,t,a,r,i){const s=n.resolveComponent("echarts"),l=n.resolveComponent("spin"),f=n.resolveComponent("ecan-modal"),c=n.resolveComponent("a-select-option"),u=n.resolveComponent("a-select"),g=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(f,{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(g,{visible:e.locationVisible,"onUpdate:visible":o[1]||(o[1]=m=>e.locationVisible=m),title:"快速定位",onOk:e.handleLocationOk},{default:n.withCtx(()=>[n.createElementVNode("div",Yf,[Kf,n.createVNode(u,{value:e.locationValue,"onUpdate:value":o[0]||(o[0]=m=>e.locationValue=m),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,(m,y)=>(n.openBlock(),n.createBlock(c,{key:y,value:y},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(m.value),1)]),_:2},1032,["value"]))),128))]),_:1},8,["value","filter-option"])])]),_:1},8,["visible","onOk"])],4)}const s0=xe(ye($f,[["render",Qf],["__scopeId","data-v-24744c4a"]])),ya={...we,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",axisNameColor:"",legendFontSize:"12px",graphicConfig:{},graphicType:"ecanRadar",tooltipPosition:""},xa=be(ya),c0=["refreshData","click","resetRecord"];We.use([Et.CanvasRenderer,gt.RadarChart,pe.ToolboxComponent,pe.TitleComponent,pe.LegendComponent]);const Jf=n.defineComponent({name:"EcanRadar",props:{...xa},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?lt:12),f=n.ref([]),c=n.ref(e.valueTypeDataFieldNames.name),u=n.computed(()=>{const w=n.unref(f),B=w.length,E=[];for(let N=0;N<B;N++){const{name:z,data:P=[]}=w[N],j=[{name:z,value:P.map(F=>F.value)}],$={type:"radar",name:z,data:j,areaStyle:{color:e.colors[N],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}};E.push($)}return E}),g=n.computed(()=>{var z;const w=[],B=[],E=n.unref(f),N=E.length;for(let P=0;P<N;P++){const{data:j=[]}=E[P];for(let $=0;$<j.length;$++)B.push(j[$].value)}if((z=i.value)!=null&&z.length){const P=B!=null&&B.length?Math.max(...B)*1.2:0;for(const j of i.value)w.push({name:j,max:P})}return w}),m=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(){Wt(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 w;a.value=!0,(w=s.value)==null||w.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(){se.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:w=>{let B="",E=e.tooltipFormatter;E===""&&(E="{marker} {a} {c}");for(let N=0;N<n.unref(g).length;N++){const z=n.unref(g)[N],{marker:P,seriesName:j,value:$}=w||{};N===0&&j&&(B+=`${j}<br/>`),B+=Be(E,{textData:{marker:P,name:z.name,value:$[N],a:z.name,b:z.name,c:$[N]||0,type:j}},{useNewline:!0,useSpace:!0}),B+="<br/>"}return B},position:e.tooltipPosition||void 0},radar:{indicator:n.unref(g),axisName:{color:e.axisNameColor}},legend:{show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,textStyle:{color:e.legendTextStyleColor,fontSize:a.value?lt:e.legendFontSize},itemHeight:e.legendItemHeight,itemWidth:e.legendItemWidth,itemGap:e.legendItemGap,data:n.unref(f).map(w=>({name:w.name,icon:e.legendType}))},series:n.unref(u)})),y=()=>{a.value=!1},{getGlobalModel:h,setGlobalModel:d}=n.inject(Ae,{getGlobalModel:w=>{},setGlobalModel:(w,B)=>{}}),{pageMode:v}=n.inject(Me,{pageMode:"normal"}),D=(w=[],B=!1)=>{let E;if(e.dataFieldConfigType==="key"){const N=B?e.keyTypeDataFieldNames:null;E=wt(w,N)}else if(e.dataFieldConfigType==="value"){const N=B?e.valueTypeDataFieldNames:null;E=Mt(w,N)}i.value=E.dimensions,f.value=E.dataset},x=(w=[],B,E=!1)=>{const z=wt(w,E?B:null,!0);i.value=z.dimensions,f.value=z.dataset};n.watch(()=>[e.data,e.areaStyleOpacity,e.legendFontSize],([w])=>{(e.dataType==="static"||n.unref(v)==="design")&&D(w)},{immediate:!0,deep:!0});const b=n.ref(!1),p=He(e),C=async()=>{var w,B;if(e.dataType==="request")try{b.value=!0;const E=await p();D((B=(w=E==null?void 0:E.data)==null?void 0:w.data)==null?void 0:B.rows,!0)}catch(E){console.error(E)}finally{b.value=!1}},A=ke(e);d(e.id,{type:e.type,RECORD:""});const R=w=>{const B=w.event.topTarget.__dimIdx;B!==void 0&&A("click",()=>{var P;const{value:E,name:N}=w.data||{},z=h(e.id);d(e.id,{...z,type:e.type,RECORD:{[n.unref(c)]:((P=n.unref(g)[B])==null?void 0:P.name)||"",[N]:E[B],seriesName:N}})})()},_=ot(e),O=async()=>{var w;try{b.value=!0;const B=await _(),{columns:E=[],rows:N=[]}=((w=B==null?void 0:B.data)==null?void 0:w.data)??{};let z;E.length>0&&(c.value=E[0],z={name:E[0],types:E.slice(1).map(P=>({label:P,value:P}))}),x(N,z,!0)}catch(B){console.error(B)}finally{b.value=!1}},k=()=>{switch(e.dataType){case"indicator":O();break;case"request":C();break}};Oe(e,{refreshData:k,resetRecord:()=>{const w=e.id,B=h(w);d(w,{...B,RECORD:""})},click:R});const{setRequest:T}=n.inject(ze,{setRequest:w=>{}});return typeof T=="function"&&T({id:e.id,requestFn:k,sortNum:e.requestSort}),o({refreshData:k}),{option:m,style:r,click:R,loading:b,onClose:y,ecanModal:s,echartRef:t}}}),S1="";function Xf(e,o,t,a,r,i){const s=n.resolveComponent("echarts"),l=n.resolveComponent("spin"),f=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(f,{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 f0=xe(ye(Jf,[["render",Xf]])),ed="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHQAAAAcCAMAAACH42siAAAAZlBMVEUAAABBltJCldJCldFEk89BltJCltFBldI/lMBKndtmb9pCltNDldFAkclAldNBldJBltM/lM5AltNCldJBldJBlNJBltVBldJBlNJBlNI/lNNBldJBldNAldJBldJBldJBldNBldIiNK7WAAAAInRSTlMAM4BNGmaz5gQGbiAPCV1WQxUpOCY9EmxQSC2jdoacqZK8uPo7tAAAAZ9JREFUSMe90NmOwjAMheGka0J3SulCy/L+Lzk4I+HYhckEKs7dr1x8kQVM5YJMZ7SLiXVHOw817Z72cSns3BmziY7EnGRGjDqUpKt4pEZQKruvyaJt85YmBUebKLJVNUlpq6oOQ1tVVRzbqu6DwFb1NUlsVd3SNL0UDM0jqkaSqoeQqjKmahtQNUzuC1AtU1sF9KHmnmrtrSK6idqBWqE6GFVxFdGvqDGoJ01Qt7rfTEV0e7V6qSK6VjNPtTaqoOq8Ugnqr7aeav+rAuqrTh+qZw3o1urAVcFVQD3U6ZnaYY9MLZk6G5WhDaDFI9UeUPyE7gCNsAdAD9gxoBJ7ARRPUVwALXdu8/h/s3xmjtwUu0/M0M/UJzBjAei3TUTdpmKmcpkBmOHKBNTPzJi59zYJys3DO2aL78YcmNkLgrrM9m9TucwzmoBy08xlju+bgL42G4c5OcxqZSLqbwqXOVNTGXMWFD0ak6KN1ZKaojYmbribndW9MXELNQEFFUyiNqQlmEQ1JqpgErUifUUTUVEIupx1wzpjvWfdsh4FQX8ANe4nnpsb9NEAAAAASUVORK5CYII=",td="data:image/png;base64,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",nd="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHQAAAAcCAMAAACH42siAAAAaVBMVEUAAABElM9BltJCldJCldFBltJBldJCltFNmrNCmNNFldNAldJBldNBldRBldNBldNBldJCoNFBldJBltNBldJBldJAldJAltJBldJBldJBldNAlNFAldJBlNJAldJBldNBldJBldJBldLfIVowAAAAI3RSTlMAGjJNgGbmswMSCScgDTs/ZAVRK0eYj2s3r3AWveHEhXjeXb5rzlgAAAFqSURBVEjH1dbJVsJAEIXhHjJ05tlEooK8/0NKsbDrFjmHiBD0Lvqcf9PfthRM7xvoZMQuLHZaOejGYLtcdEItzI9oaLg5xIHj5hgcG262oXXcrGzJ23Umg5717C7NKBrAjOMDM8YgCI5ghmEPprUTmMZkrBOtdbJgfpZovho0gwzNOkfTam9k5jSGkKlTMOezWT3VLH5qlg8wQzSbO5jJ28l8Z+YLmZMwuz9lupvNXpjlFTMTZv7vzFSatTDtGnNeYdpNzZTMSJhx5f84m8Y3mSEzJzTVolko3J7Qve+a0J3vntDWffdEaMUQQo1vTWjuuyA0UWvUUarqzuqLUMPt1MD3uKTaTdRwvdrdorpFtfZtH6eyK2F3RS23U3uhlr9VB1TdE1V2h7Vr1O4mdbdera6o+Wq1Vqi2rEktFapGoZopVLVCtVCXag19IBPUiiWpBrojE1QNXZAp1/TYbhKdKVwuWotORKfn9wu/DSc/X9T6qgAAAABJRU5ErkJggg==",od="data:image/png;base64,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",pa={...we,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"},ba=be(pa),d0=["click"],ad=n.defineComponent({name:"EcanBorder",props:{...ba},setup(e){const o=Ce(e,["background"]),t=n.computed(()=>{const{isTransparent:h,gradientShow:d,gradientColor:v,gradientOffset:D,gradientAngle:x,backgroundColor:b}=e;if(d){let p=v;return h&&(p="transparent"),p?{background:`linear-gradient(${x}, ${b}, ${p} ${D*100}%)`}:{}}else return{}}),a=n.computed(()=>{const{events:h}=e;let d={};return h!=null&&h.length&&h.find(D=>D.emit==="showModal")&&(d={cursor:"pointer"}),d}),{theme:r}=n.inject(Me,{theme:"light"}),i=n.computed(()=>{let h="";switch(e.titleMode){case"type-2":h="2";break}return h}),s=n.computed(()=>new URL(Object.assign({"../../assets/border-title-decoration-left.png":ed,"../../assets/border-title-decoration-left2.png":td})[`../../assets/border-title-decoration-left${i.value}.png`],self.location).href),l=n.computed(()=>new URL(Object.assign({"../../assets/border-title-decoration-right.png":nd,"../../assets/border-title-decoration-right2.png":od})[`../../assets/border-title-decoration-right${i.value}.png`],self.location).href),f=n.computed(()=>({width:"100%",height:"100%"})),c=n.computed(()=>{const{borderRadius:h}=e,d=[],v={};if(h){const D=h.split(",");for(const x of D)(+x||+x==0)&&d.push(+x+"px")}return d!=null&&d.length&&(v.borderRadius=d.join(" ")),v}),g=ke(e)("click",()=>{}),m=n.ref([]);n.watch(()=>e.data,h=>{m.value=h},{immediate:!0,deep:!0}),Oe(e,{click:g});const{setGlobalModel:y}=n.inject(Ae,{setGlobalModel:(h,d)=>{}});return y(e.id,{type:e.type,value:m}),{style:o,gradientStyle:t,click:g,borderStyle:f,theme:r,borderRadiusStyle:c,titleLeftIcon:s,titleRightIcon:l,cursorStyle:a}}}),w1="",Tt=e=>(n.pushScopeId("data-v-8dd53b8f"),e=e(),n.popScopeId(),e),rd=["id"],id=Tt(()=>n.createElementVNode("div",{class:"top-left border-item"},null,-1)),ld=Tt(()=>n.createElementVNode("div",{class:"top-right border-item"},null,-1)),sd=Tt(()=>n.createElementVNode("div",{class:"bottom-left border-item"},null,-1)),cd=Tt(()=>n.createElementVNode("div",{class:"bottom-right border-item"},null,-1)),fd={class:"title-item"},dd=["src"],ud={class:"title"},hd=["src"],gd=Tt(()=>n.createElementVNode("div",{class:"top-left border-item"},null,-1)),md=Tt(()=>n.createElementVNode("div",{class:"top-right border-item"},null,-1)),yd=Tt(()=>n.createElementVNode("div",{class:"bottom-left border-item"},null,-1)),xd=Tt(()=>n.createElementVNode("div",{class:"bottom-right border-item"},null,-1)),pd={key:2,class:"left-title"},bd={class:"title"};function vd(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},[id,ld,sd,cd],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",fd,[n.createElementVNode("img",{class:n.normalizeClass(["title-decoration",e.titleMode]),src:e.titleLeftIcon},null,10,dd),n.createElementVNode("div",ud,n.toDisplayString(e.title),1),n.createElementVNode("img",{class:n.normalizeClass(["title-decoration",e.titleMode]),src:e.titleRightIcon},null,10,hd)])],2),gd,md,yd,xd],4)):n.createCommentVNode("",!0),e.mode==="left-title"?(n.openBlock(),n.createElementBlock("div",pd,[n.createElementVNode("div",bd,[n.createElementVNode("span",null,n.toDisplayString(e.title),1)])])):n.createCommentVNode("",!0)],12,rd)}const u0=xe(ye(ad,[["render",vd],["__scopeId","data-v-8dd53b8f"]])),va={...we,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"},Sa=be(va),h0=["tabChange"],Sd=n.defineComponent({name:"EcanTabs",props:{...Sa},components:{ASelect:se.Select,ASelectOption:se.SelectOption},setup(e){const o=Ce(e),t=n.ref(0);n.watch(()=>e.activeKey,y=>{t.value=y},{immediate:!0});const{pageMode:a}=n.inject(Me,{pageMode:"normal"});let r=null;const i=()=>{const y=Array.isArray(n.unref(s))?n.unref(s).length-1:0;e.autoSwitch&&y>0&&(r=setInterval(()=>{const h=n.unref(t)+1;h<=y?t.value=h:t.value=0,l.value=n.unref(s)[n.unref(t)],g()},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,y=>{s.value=y,l.value=Array.isArray(y)&&y.length>0?y[0]:{}},{immediate:!0,deep:!0});const f=y=>t.value===y,c=ke(e),{setGlobalModel:u}=n.inject(Ae,{setGlobalModel:(y,h)=>{}});u(e.id,{value:l,activeKey:t});const{emitRefreshPage:g}=n.inject(Qt,{emitRefreshPage:()=>{}}),m=c("tabChange",(y,h)=>{h!==n.unref(t)&&(l.value=y,t.value=h,g())});return Oe(e,{tabChange:m}),{style:o,activeKey:t,isActive:f,tabChange:m,myData:s,useImagePath:At}}}),k1="",Cd=["id"],wd=["onClick"];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-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,(f,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(u=>e.tabChange(f,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(f.title),5)],12,wd))),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,(f,c)=>(n.openBlock(),n.createBlock(s,{key:c,value:c,onClick:u=>e.tabChange(f,c)},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(f.title),1)]),_:2},1032,["value","onClick"]))),128))]),_:1},8,["value","style"])):n.createCommentVNode("",!0)],4)],12,Cd)}const g0=xe(ye(Sd,[["render",Ad],["__scopeId","data-v-fbab260a"]])),Ca={...we,name:"图片",keyName:"图片",type:"ecanImage",width:"300px",height:"300px",imgUrl:"",target:"self",href:"",linkPage:"",data:{},isHoverStyle:!1},wa=be(Ca),m0=["click"],Aa=n.defineComponent({name:"EcanImage",props:{...wa},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(Ae,{getGlobalModel:f=>{},setGlobalModel:(f,c)=>{}}),l=ke(e)("click",()=>{const f=r(e.id);if(i(e.id,{...f,type:e.type,RECORD:e.data||{}}),setTimeout(()=>{i(e.id,{...f,type:e.type,RECORD:{}})},0),!e.linkPage&&!e.href)return;const c=e.linkPage||"",u=ui(n.unref(a),c),g=e.href;let m=g||u;m=Be(m);const y=e.target;y&&(y!=="event"?window.open(m,"_"+y):window.parent.postMessage({type:"openPage",url:g},"*"))});return Oe(e,{click:l}),{style:o,myImgUrl:t,onClick:l}}}),y0=()=>{n.useCssVars(e=>({"102827c2":e.isHoverStyle?"pointer":"auto","5de838e7":e.isHoverStyle?"0.6":"1"}))},x0=Aa.setup;Aa.setup=x0?(e,o)=>(y0(),x0(e,o)):y0;const B1="",kd=["src"];function Td(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,kd)):(n.openBlock(),n.createElementBlock("div",{key:1,class:"image-placeholder",style:n.normalizeStyle(e.style)}," 请上传图片 ",4))}const p0=xe(ye(Aa,[["render",Td],["__scopeId","data-v-47ea6e7c"]])),ka={...we,name:"网页",keyName:"网页",type:"ecanIframe",width:"300px",height:"300px",link:"",linkType:"web"},Ta=be(ka),Bd=n.defineComponent({name:"EcanIframe",props:{...Ta},setup(e){const o=Ce(e),{contextRequestUrl:t}=n.inject(Me,{contextRequestUrl:""}),a=n.computed(()=>{let r=Be(e.link);if(e.linkType==="erd"&&r!=null){let i=n.unref(t);i[i.length-1]==="/"?i+="erdReport":i+="/erdReport",r=`${as||i}?_t=0&uid=${r}`}return r});return{style:o,myLink:a}}}),D1="",Ed=["src"];function Dd(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,Ed)):(n.openBlock(),n.createElementBlock("div",{key:1,class:"iframe-placeholder",style:n.normalizeStyle(e.style)}," 请填写网页链接 ",4))}const b0=xe(ye(Bd,[["render",Dd],["__scopeId","data-v-19bc100c"]])),Ba={...we,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},Ea=be(Ba),v0=["click","refreshData","resetRecord","exportTableData"],Rd="data:image/png;base64,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",Id="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==",_d="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==",Da=n.defineComponent({name:"EcanTable",components:{Skeleton:an,AButton:se.Button,AInput:se.Input,ACheckboxGroup:se.CheckboxGroup,ATable:se.Table,ATableSummary:se.TableSummary,ATableSummaryRow:se.TableSummaryRow,ATableSummaryCell:se.TableSummaryCell},props:{...Ea},setup(e,{expose:o}){const t=n.ref(!1),a=n.computed(()=>{const H=qe.cloneDeep(e.columns);return e.isUseSeq&&H.unshift({title:e.seqName,dataIndex:"SEQ",align:"center",width:e.seqWidth}),e.isUseAction&&H.push({title:"操作",dataIndex:"ACTION",width:e.actionColumnWidth}),H}),r=n.ref(),i=n.ref(!1),s=Ce(e),l=n.ref([]),f=n.computed(()=>e.scrollX),c=n.ref(0),u=()=>{let H=0;switch(e.size){case"small":H=50;break;case"middle":H=53;break;default:H=65;break}return H};n.watchEffect(()=>{var H;(H=l.value)!=null&&H.length&&e.height&&n.nextTick(()=>{let Z=parseFloat(e.height);const K=document.querySelector(`#ecanTable-${e.id} .ant-table-tbody`),oe=document.querySelector(`#ecanTable-${e.id} thead.ant-table-thead`),re=document.querySelector(`#ecanTable-${e.id} .ant-table-summary`);let ne=0;if(oe&&(Z-=(oe==null?void 0:oe.clientHeight)||0),re&&e.isSummaryFixed&&(ne=(re==null?void 0:re.clientHeight)||0,Z-=ne),e.paginationShow){let te=0;te=u(),te&&(Z-=te)}(K==null?void 0:K.clientHeight)>Z?c.value=Z:c.value=0,n.nextTick(()=>{if(ne){const te=document.querySelector(`#ecanTable-${e.id} .ant-table-summary`),de=(te==null?void 0:te.clientHeight)||0;ne!==de&&n.unref(c)&&(c.value=Z+ne-de)}})})});const g=n.ref([]),m=n.ref([]),y=n.ref([]),h=n.ref([]),d=n.ref(0),v=n.ref(1),D=n.ref(e.paginationPageSize||10),x=n.reactive([]),b=(H=[])=>{var Z,K;if(Array.isArray(H)&&H.length>0){let oe=H.length;const re=e.columnsFixedNum;if(e.dataType==="indicator"&&((Z=n.unref(a))!=null&&Z.length)){const{graphicConfig:{indicators:ne=[]}}=e;H.forEach((te,de)=>{if(n.unref(a)[de])for(const De in n.unref(a)[de])["dataIndex","title"].includes(De)||(te[De]=n.unref(a)[de][De]);const ue=ne.find(De=>De.label===te.title),{showLabel:me=""}=ue||{};me&&(te.title=me)})}for(let ne=oe-1;ne>=0;ne--)(K=H[ne])!=null&&K.isHidden&&H.splice(ne,1);oe=H.length;for(let ne=0;ne<oe;ne++){const te=H[ne];if(ne<re?te.fixed="left":te.fixed=!1,e.isSortByFront&&te.sorter){const ct=te.dataIndex;te.sorter=(ht,_t)=>ht[ct]-_t[ct]}const{cellAlign:de="center",cellColor:ue,dataIndex:me,title:De,tableFilter:Qe,headerCellAlign:ut,headerCellColor:It}=te;Qe&&(x.push(me),te.filterOptionsInputValue="",te.filterCheckboxGroupValue=[],te.customFilterDropdown=!0,te.onFilter=(ct,ht)=>ht[me].toString().toLowerCase().includes(ct.toLowerCase())),te.customHeaderCell=()=>({style:{display:"table-cell",verticalAlign:"middle",fontSize:e.headerFontSize,fontWeight:e.headerFontWeight,textAlign:ut||"center",color:It||e.headerFontColor,borderBottomColor:e.borderColor,backgroundColor:e.headerBackgroundColor}}),te.customCell=(ct,ht)=>({style:{textAlign:de,color:ue||e.cellFontColor,backgroundColor:e.cellBackgroundColor,borderBottomColor:e.borderColor},class:{highlight:n.unref(U)===ht&&e.clickHighlight},onClick:$("click",()=>{const _t=e.id,_a=F(_t);ct={dataIndex:me,title:De,...ct},q(_t,{..._a,type:e.type,RECORD:ct})})}),Array.isArray(te.children)&&b(te.children)}}},p=(H=[])=>{var K;let Z=qe.cloneDeep(H);return(K=n.unref(h))!=null&&K.length&&(Z=qe.cloneDeep(n.unref(h))),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(D,()=>{v.value=1,Y(!1)}),n.watch(r,H=>{i.value=!!H}),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],()=>{g.value=p(qe.cloneDeep(e.columns))},{immediate:!0,deep:!0}),n.watch(()=>[e.data,e.dataType],([H,Z])=>{Z==="static"&&(m.value=H)},{immediate:!0});const C=n.ref({}),A=H=>{if(Array.isArray(H)){const Z=H.length,K=x,oe=K.length,re={};for(let te=0;te<Z;te++){const de=H[te];for(let ue=0;ue<oe;ue++){const me=K[ue];if(re[me])re[me].add(de[me]);else{const De=new Set;De.add(de[me]),re[me]=De}}}const ne={};for(const te in re)if(Object.prototype.hasOwnProperty.call(re,te)){const de=re[te],ue=Array.from(de);ne[te]=ue.map(me=>({label:me,value:me}))}C.value=ne}};n.watch(()=>[e.isReverse,g.value,m.value],()=>{const H=n.unref(g),Z=n.unref(m);if(A(Z),e.isReverse){const{columns:K,dataSource:oe}=R(qe.cloneDeep(H),qe.cloneDeep(Z));y.value=K,l.value=oe}else y.value=H,l.value=Z},{immediate:!0});const R=(H,Z)=>{const K=H[0],oe=[{title:K.title,dataIndex:"col0",key:"col0",align:"center"}];for(let ne=0;ne<Z.length;ne++){const te=Z[ne],de="col"+(ne+1);oe.push({title:te[K.dataIndex],dataIndex:de,key:de,align:"center"})}const re=[];for(let ne=1;ne<H.length;ne++){const te=H[ne],de={col0:te.title};for(let ue=0;ue<Z.length;ue++){const me=Z[ue];de[`col${ue+1}`]=me[te.dataIndex]}re.push(de)}return{columns:oe,dataSource:re}},_=n.ref(""),O=He(e),k=async(H=!0,Z={})=>{var K;try{H&&(t.value=!0),n.unref(_)&&(Z.orderCondition=n.unref(_)),e.paginationShow&&(Z={pageNum:n.unref(v),pageSize:n.unref(D)||"10",layer:"1",...Z});const oe=await O(Z),{rows:re=[],total:ne=0}=((K=oe==null?void 0:oe.data)==null?void 0:K.data)||{};if(d.value=ne,Array.isArray(re)&&(m.value=re),window.config.routerBaseURL.includes("1523545080925487106")){const{requestParams:te=[]}=e,de=te.find(ue=>ue.key==="dataSqlId");if((de==null?void 0:de.value)==="xt_jxzebg"){const ue=re.filter(me=>!me.绩效总额).map(me=>me.ORG_NAME);ue!=null&&ue.length&&n.nextTick(()=>{se.notification.warning({message:"提示",description:`当前时段${ue.join("、")}绩效数据为空`,duration:3})})}}}catch(oe){console.error(oe)}finally{t.value=!1}},S=({current:H},Z,K)=>{if(v.value=H,K&&Object.keys(K).length>0){const{field:oe,order:re}=K,te={ascend:"asc",descend:"desc"}[re];oe!=null&&te!=null&&te?_.value=oe+" "+te:te||(_.value="")}e.isSortByFront||Y(!1)},T=n.computed(()=>{const H=e.simple,Z=[e.paginationPosition],K={};return e.isShowTotal&&(K.showTotal=oe=>`共 ${oe} 条数据`),e.paginationShow&&{simple:H,position:Z,total:n.unref(d),current:n.unref(v),pageSize:n.unref(D)||"10",showSizeChanger:!1,size:"large",...K}}),w=H=>+H==1?"是":+H==0?"否":H,B=(H,Z)=>{const{format:K,retentiondigit:oe,customFormatter:re}=Z;if(K==null||K==="")return H;const ne={money:Ao,percentage:yn,contrast:yn,boolean:w,decimals:uc,custom:di};return ne[K]?K==="decimals"?ne[K](H,oe)||"":K==="custom"?ne[K](H,re)||"":ne[K](H)||"":""},E=H=>H==="contrast"?"upDown":"",N=H=>{const{text:Z,format:K,declineColor:oe="#39cf93",increaseColor:re="#ff512e"}=H;if(K==="contrast"){const ne={fontSize:e.fontSize},te=parseFloat(Z+"");return te>=0?ne.color=re:te<0&&(ne.color=oe),ne}else return{}},z=n.computed(()=>{const{fontSize:H}=e;return{width:H,height:H,textIndent:`-${parseFloat(H)*2}px`,overflow:"hidden"}}),P=H=>{const{text:Z,declineColor:K="#39cf93",increaseColor:oe="#ff512e"}=H,{fontSize:re}=e,ne=parseFloat(Z+""),te={width:re,verticalAlign:"unset"};return ne>=0?te.filter=`drop-shadow(${oe||"#ff512e"} ${re} -1px)`:ne<0&&(te.filter=`drop-shadow(${K||"#39cf93"} ${re} -1px)`),te},j=H=>{const Z=parseFloat(H+"");if(Z>=0)return Do;if(Z<0)return Ro},$=ke(e),{getGlobalModel:F,setGlobalModel:q}=n.inject(Ae,{getGlobalModel:H=>{},setGlobalModel:(H,Z)=>{}});q(e.id,{type:e.type,RECORD:""});const L=(H=[],Z=[])=>{const K=H.map(oe=>({title:oe,dataIndex:oe,key:oe}));h.value=qe.cloneDeep(K),g.value=p(K),m.value=Z},I=ot(e),M=async(H=!0)=>{var Z,K,oe,re;try{H&&(t.value=!0);const ne=n.unref(_).split(" "),te={};e.isSortByFront||(te.sort={order:ne[1],field:ne[0]});const de=await I(te);L((K=(Z=de==null?void 0:de.data)==null?void 0:Z.data)==null?void 0:K.columns,(re=(oe=de==null?void 0:de.data)==null?void 0:oe.data)==null?void 0:re.rows)}catch(ne){console.error(ne)}finally{t.value=!1}},U=n.ref(-1),X=(H,Z)=>({onClick:$("rowClick",()=>{const K=e.id,oe=F(K);q(K,{...oe,type:e.type,RECORD:H}),U.value=Z})}),{loadedData:W}=n.inject(bt,{loadedData:{}}),ae=n.ref(!1);n.watch(W,H=>{if(e.dataType==="indicator"){const Z=Xt(e.graphicConfig);Z!=null&&Z.length&&(!n.unref(ae)&&tt(e.graphicConfig,H)?(ae.value=!0,Y()):tt(e.graphicConfig,H)||(ae.value=!1))}},{deep:!0});const Y=(H=!0)=>{switch(e.dataType){case"request":k(H);break;case"indicator":tt(e.graphicConfig,n.unref(W))&&M(H);break}},ie=()=>{const H=e.id,Z=F(H);q(H,{...Z,type:e.type,RECORD:""})},Q=n.computed(()=>{const H=n.unref(y);let Z=0;const{subTotalColumn:K,subTotalName:oe}=e;K&&(Z=H.findIndex(ue=>ue.dataIndex===K),Z<0&&(Z=0));const re=[];let ne=0;for(let ue=0;ue<H.length;ue++){const me=H[ue],{isCalcTotal:De}=me;ue===Z?re.push({...me,total:oe}):De?(re.push({...me,index:ue,total:0}),ne++):re.push({...me})}if(ne===0)return[];const te=n.unref(l),de=J(re);for(let ue=0;ue<de.length;ue++){const me=de[ue];let De=0;const{isCalcTotal:Qe,dataIndex:ut}=me;if(Qe===!0){for(let It=0;It<te.length;It++){const ht=+te[It][ut];isNaN(ht)||(De=new z0.Big(De).add(ht).toNumber())}me.total=De}}return de});function J(H){var K;const Z=[];for(const oe of H)(K=oe.children)!=null&&K.length?Z.push(...J(oe.children)):Z.push(oe);return Z}const{setRequest:ee}=n.inject(ze,{setRequest:H=>{}});typeof ee=="function"&&ee({id:e.id,requestFn:Y,sortNum:e.requestSort}),o({refreshData:Y});const fe=(H="",Z)=>Be(H,Z),Se=H=>{if(H!=="event")return{self:"_self",blank:"_blank"}[H]},Te=(H,Z="")=>{H==="event"&&window.parent.postMessage({type:"openPage",url:Z},"*")},Ie=(H,Z)=>{H(Z.filterCheckboxGroupValue)},Ye=(H,Z)=>{H({confirm:!0}),Z.filterOptionsInputValue="",Z.filterCheckboxGroupValue=[]},Ve=()=>{},_e=H=>{const Z=H.dataIndex;if(typeof Z=="string"){let K=n.unref(C)[Z];const oe=n.unref(H.filterOptionsInputValue).trim();return Array.isArray(K)?(K=K.filter(re=>typeof re.label=="string"?re.label.toLowerCase().includes(oe.toLowerCase()):!0),K):[]}return[]},Le=async()=>{var me,De;const H="EXPORT_KEY";se.message.loading({key:H,content:"正在导出...",duration:0});let Z=[];if(e.dataType==="static")Z=e.data;else if(e.dataType==="request"){const Qe={layer:"1"};n.unref(_)&&(Qe.orderCondition=n.unref(_));const ut=await O(Qe);Z=((De=(me=ut==null?void 0:ut.data)==null?void 0:me.data)==null?void 0:De.rows)||{}}const K=n.unref(y),oe=[],re=[];K==null||K.forEach(Qe=>{oe.push(Qe.dataIndex),re.push(Qe.title)});const ne=Z.map(Qe=>qe.pick(Qe,oe)),te=$t.utils.book_new(),de=$t.utils.aoa_to_sheet([re]),ue=$t.utils.sheet_add_json(de,ne,{skipHeader:!0,origin:"A2"});$t.utils.book_append_sheet(te,ue,"sheet"),$t.writeFile(te,"表格数据.xlsx"),se.message.success({key:H,content:"导出成功"})},Ne=(H,Z=2)=>{const K=+H*100;return isNaN(K)||K<=0?0:K>=100?100:K.toFixed(Z)};Oe(e,{resetRecord:ie,refreshData:Y,exportTableData:Le});const Ue=(H,Z)=>{let K=null;return e.stripedShow&&(K=Z%2===1?"table-striped":null),K},at=n.computed(()=>{let H=0;const{height:Z,isPageBottom:K}=e;return K&&Z&&(H=parseFloat(Z)-u()),H?H+"px":"100%"}),Pe=n.computed(()=>{let H="#071655";return e.headerBackgroundColor&&(H="transparent"),H}),Ge=n.computed(()=>{let H="#071655";return(e.cellBackgroundColor||e.stripedShow&&e.stripedColor)&&(H="transparent"),H}),Ke=n.computed(()=>parseFloat(e.fontSize)+16),rt=n.computed(()=>{let H="";const{paginationColor:Z,paginationBgColor:K,activePaginationColor:oe,activePaginationBgColor:re,hoverBackgroundColor:ne}=e;return Z&&(H+="p-color "),K&&(H+="p-bg-color "),oe&&(H+="active-p-color "),re&&(H+="active-p-bg-color "),ne&&(H+="hover-bg-color "),H});return{x:f,y:c,style:s,customRow:X,pagination:T,formatFn:B,contrastClass:E,tableChange:S,summaryList:Q,loading:t,onTouchHrefEvent:Te,handleHref:fe,handleHrefTarget:Se,useRowIndex:U,tableColumns:y,tableDataSource:l,useFilterOptions:_e,useSetSelectedKeys:Ie,onResetFilter:Ye,onSearchFilterOptions:Ve,exportTableData:Le,handleProgressText:Ne,pageSizeVisible:i,pageSize:D,tableRef:r,rowClassName:Ue,tableHeight:at,tableHeaderBgColor:Pe,tableBodyBgColor:Ge,getChgStyle:N,chgBoxStyle:z,getChgBoxImgStyle:P,getChgBoxImgSrc:j,seqIcon1:Rd,seqIcon2:Id,seqIcon3:_d,iconSize:Ke,containerClass:rt}}}),S0=()=>{n.useCssVars(e=>({"376e0f3a":e.stripedColor,"5199bb1e":e.tableHeaderBgColor,"6ff3fc88":e.tableBodyBgColor,"92e812d4":e.paginationBgColor,"15d6cddb":e.paginationColor,e658f2a0:e.activePaginationBgColor,"8dd0c716":e.activePaginationColor,"0836d172":e.hoverBackgroundColor}))},C0=Da.setup;Da.setup=C0?(e,o)=>(S0(),C0(e,o)):S0;const I1="",_1="",Od=e=>(n.pushScopeId("data-v-1995310f"),e=e(),n.popScopeId(),e),Ld=["id"],Nd={key:0,class:"table-tool"},Md=n.createTextVNode("导出数据"),zd=n.createTextVNode(" 搜索 "),Fd=n.createTextVNode(" 重置 "),Pd=["src","width","height"],qd=["src","width","height"],Hd=["src","width","height"],Vd={key:1},jd={key:1,class:"action-list"},Ud=["href","target","onClick"],Gd={key:2,class:"progress-cell"},Wd={key:0},$d=["src"],Zd={key:1},Yd=["src"],Kd={class:"ant-pagination-options-quick-jumper"},Qd=Od(()=>n.createElementVNode("span",null,"条 / 页",-1));function Jd(e,o,t,a,r,i){const s=n.resolveComponent("a-button"),l=n.resolveComponent("a-input"),f=n.resolveComponent("a-checkbox-group"),c=n.resolveComponent("a-table-summary-cell"),u=n.resolveComponent("a-table-summary-row"),g=n.resolveComponent("a-table-summary"),m=n.resolveComponent("a-table"),y=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(y,{loading:e.loading},{default:n.withCtx(()=>{var h;return[e.isUseExport?(n.openBlock(),n.createElementBlock("div",Nd,[n.createVNode(s,{class:"export-button",onClick:e.exportTableData},{default:n.withCtx(()=>[Md]),_:1},8,["onClick"])])):n.createCommentVNode("",!0),n.createVNode(m,{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:d,selectedKeys:v,setSelectedKeys:D,confirm:x,clearFilters:b})=>[n.createElementVNode("div",{class:"ecan-table-filter",style:n.normalizeStyle({height:e.filterDropdownHeight})},[n.createVNode(l,{value:d.filterOptionsInputValue,"onUpdate:value":p=>d.filterOptionsInputValue=p,placeholder:"请输入关键字",class:"filter-input",onChange:e.onSearchFilterOptions},null,8,["value","onUpdate:value","onChange"]),n.createVNode(f,{value:d.filterCheckboxGroupValue,"onUpdate:value":p=>d.filterCheckboxGroupValue=p,class:"filter-checkbox",options:e.useFilterOptions(d),onChange:p=>e.useSetSelectedKeys(D,d)},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:()=>x()},{default:n.withCtx(()=>[zd]),_:2},1032,["onClick"]),n.createVNode(s,{size:"small",style:{width:"90px"},onClick:n.withModifiers(p=>e.onResetFilter(b,d),["stop"])},{default:n.withCtx(()=>[Fd]),_:2},1032,["onClick"])])],4)]),bodyCell:n.withCtx(({column:d,index:v,text:D,record:x})=>{var b,p;return[d.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,Pd)):v===1?(n.openBlock(),n.createElementBlock("img",{key:1,class:"seq-icon",src:e.seqIcon2,width:e.iconSize,height:e.iconSize},null,8,qd)):v>=2?(n.openBlock(),n.createElementBlock("img",{key:2,class:"seq-icon",src:e.seqIcon3,width:e.iconSize,height:e.iconSize},null,8,Hd)):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",Vd,n.toDisplayString(v+1),1))],64)):d.dataIndex==="ACTION"?(n.openBlock(),n.createElementBlock("div",jd,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.actionList,(C,A)=>(n.openBlock(),n.createElementBlock("div",{class:"action",key:A},[n.createElementVNode("a",{href:e.handleHref(C.href,x),target:e.handleHrefTarget(C.target),style:n.normalizeStyle({color:C.color,fontSize:e.fontSize,fontWeight:e.fontWeight}),onClick:R=>e.onTouchHrefEvent(C.target,e.handleHref(C.href,x))},n.toDisplayString(C.title),13,Ud)]))),128))])):d.format==="progress"?(n.openBlock(),n.createElementBlock("div",Gd,[n.createElementVNode("div",{class:"progress",style:n.normalizeStyle({background:d.progressColor||"#1890ff",height:d.progressWidth||"18px",width:`${e.handleProgressText(D,d.progressTextDecimalPlaces)}%`})},null,4),n.createElementVNode("div",{class:"progress-text",style:n.normalizeStyle({color:+e.handleProgressText(D)<100?d.progressTextColor||"#333":d.progressFinishedTextColor||"#fff"})},n.toDisplayString(e.handleProgressText(D,d.progressTextDecimalPlaces))+"% ",5)])):(n.openBlock(),n.createElementBlock("div",{key:3,style:n.normalizeStyle({fontSize:e.fontSize,fontWeight:e.fontWeight})},[d.format==="contrast"?(n.openBlock(),n.createElementBlock("span",Wd,n.toDisplayString(((b=d==null?void 0:d.customFormatter)==null?void 0:b.split("{value}")[0])||""),1)):n.createCommentVNode("",!0),n.createElementVNode("span",{class:n.normalizeClass([e.contrastClass(d.format)]),style:n.normalizeStyle(e.getChgStyle({...d,text:D}))},[d.format==="contrast"?(n.openBlock(),n.createElementBlock("div",{key:0,style:n.normalizeStyle(e.chgBoxStyle)},[n.createElementVNode("img",{style:n.normalizeStyle(e.getChgBoxImgStyle({...d,text:D})),src:e.getChgBoxImgSrc(D)},null,12,$d)],4)):n.createCommentVNode("",!0),n.createTextVNode(" "+n.toDisplayString(d.format!=null?e.formatFn(D,d):D),1)],6),d.format==="contrast"?(n.openBlock(),n.createElementBlock("span",Zd,n.toDisplayString(((p=d==null?void 0:d.customFormatter)==null?void 0:p.split("{value}")[1])||""),1)):n.createCommentVNode("",!0)],4))]}),summary:n.withCtx(()=>[e.summaryList.length>0?(n.openBlock(),n.createBlock(g,{key:0,fixed:e.isSummaryFixed},{default:n.withCtx(()=>[n.createVNode(u,null,{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.summaryList,(d,v)=>(n.openBlock(),n.createBlock(c,{key:v,index:v,style:n.normalizeStyle({backgroundColor:e.cellBackgroundColor,textAlign:d.cellAlign||"center",color:e.cellFontColor,borderBottomColor:e.borderColor})},{default:n.withCtx(()=>[n.createElementVNode("span",{class:n.normalizeClass([e.contrastClass(d.format)]),style:n.normalizeStyle({...e.getChgStyle({...d,text:d.total}),fontSize:e.fontSize,fontWeight:e.fontWeight})},[d.format==="contrast"?(n.openBlock(),n.createElementBlock("div",{key:0,style:n.normalizeStyle(e.chgBoxStyle)},[n.createElementVNode("img",{style:n.normalizeStyle(e.getChgBoxImgStyle({...d,text:d.total})),src:e.getChgBoxImgSrc(d.total)},null,12,Yd)],4)):n.createCommentVNode("",!0),n.createTextVNode(" "+n.toDisplayString((d.format!=null||d.format!=="")&&e.formatFn(d.total,d)),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},[(h=e.tableDataSource)!=null&&h.length&&!e.simple&&e.pageSizeShow&&e.pageSizeVisible?(n.openBlock(),n.createBlock(n.Teleport,{key:0,to:"#ecanTable-"+e.id+" .ant-pagination"},[n.createElementVNode("div",Kd,[n.withDirectives(n.createElementVNode("input",{type:"text","onUpdate:modelValue":o[0]||(o[0]=d=>e.pageSize=d)},null,512),[[n.vModelText,e.pageSize]]),Qd])],8,["to"])):n.createCommentVNode("",!0)],64)):n.createCommentVNode("",!0)]}),_:1},8,["loading"])],14,Ld)}const w0=xe(ye(Da,[["render",Jd],["__scopeId","data-v-1995310f"]])),Ra={...we,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"},Ia=be(Ra),A0=["click"];We.use([Et.CanvasRenderer,gt.MapChart,gt.ScatterChart,pe.VisualMapComponent,pe.TooltipComponent,pe.GraphicComponent]);const Xd=n.defineComponent({name:"EcanMap",components:{Echarts:xt},props:{...Ia},setup(e){const o=He(e),t=He({...e.tooltipRequestData,requestHeaders:{}}),a=n.ref(),r=n.ref(""),i=n.ref(""),s=Ce(e,["backgroundImage"]),l=n.ref(),f=n.computed(()=>At(e.geoBackgroundImage)),c=n.computed(()=>At(e.backgroundImage)),u=n.computed(()=>e.geoBackgroundImage?{image:n.unref(l),repeat:e.geoBackgroundImageRepeat}:e.geoItemStyleAreaColor),g=n.computed(()=>{const w=e.symbolImage;return e.symbolImage?"image://"+At(w):"circle"}),m=w=>{let B=e.tooltipFormatter;const E=B.match(/\{(.+?)\}/g);if(E==null||E.length===0)return B;for(let N=0;N<E.length;N++){const z=E[N];let P=z.slice(1,-1).trim();const j=/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,$=P.match(j);for(let F=0;F<$.length;F++){const q=$[F],L=w[q];L!=null&&(P=P.replace(q,L))}B=B.replace(z,P)}return B.split(`
118
- `)},y=n.ref(!1),h=n.ref("");let d=new AbortController;const v=(w,B)=>{const E=d.signal;y.value=!0,r.value=w,t({name:w,signal:E}).then(N=>{var z,P;if(N){const j=((P=(z=N==null?void 0:N.data)==null?void 0:z.data)==null?void 0:P.rows)||[];let $="";for(const F of j){const q=m(F)||[];if(q!=null&&q.length)for(const L of q)$+=`<div style="word-break: break-all;white-space: normal;">${L}</div>`}$=`<div style="max-width:200px;">${$}</div>`,i.value=$,B(n.unref(h),$)}else E.aborted?i.value="Loading":i.value=w,B(n.unref(h),i.value);y.value=!1})},D=n.computed(()=>{const w=e.geoCenter;let B;return typeof w=="string"&&w!==""&&(B=w.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:B,map:`map-${e.id}`,tooltip:{show:e.tooltipShow,trigger:"item",backgroundColor:e.tooltipBackgroundColor,borderColor:"transparent",textStyle:{color:e.tooltipTextStyleColor},formatter:(E,N,z)=>{h.value=N;const{name:P=""}=E,{requestUrl:j}=e.tooltipRequestData;if(!j)return P;if(n.unref(y))n.unref(r)!==P&&(d.abort(),d=new AbortController);else{if(n.unref(r)===P)return n.unref(i);v(P,z)}return"Loading"}},label:{show:e.geoLabelShow,color:e.geoLabelColor,fontSize:e.geoLabelFontSize},itemStyle:{areaColor:n.unref(u),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(g),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}]}}),x=n.ref(!1),b=async()=>{var E;x.value=!1;const w=e.mapJson,B=`map-${e.id}`;if(w!=null&&w.path){const N=await ft(((E=window==null?void 0:window.config)==null?void 0:E.uploadPath)+w.path);We.registerMap(B,(N==null?void 0:N.data)||{})}else We.registerMap(B,{});x.value=!0};n.watch(()=>e.mapJson,()=>{b()},{immediate:!0,deep:!0});const p=async()=>{var w,B;if(e.dataType==="request"){x.value=!1;try{const E=await o(),N=((B=(w=E==null?void 0:E.data)==null?void 0:w.data)==null?void 0:B.rows)||{},z=`map-${e.id}`;if(N!=null&&N.path){const P=await ft(N.path);We.registerMap(z,(P==null?void 0:P.data)||{})}else We.registerMap(z,{})}catch(E){console.error(E)}finally{x.value=!0}}},C=()=>{switch(e.dataType){case"request":p();break}},{getGlobalModel:A,setGlobalModel:R}=n.inject(Ae,{getGlobalModel:w=>{},setGlobalModel:(w,B)=>{}}),O=ke(e)("click",()=>{const w=A(e.id);R(e.id,{...w,RECORD:n.unref(a)})});Oe(e,{refreshData:C});const{setRequest:k}=n.inject(ze,{setRequest:w=>{}});return typeof k=="function"&&k({id:e.id,requestFn:C,sortNum:e.requestSort}),{option:D,style:s,isLoadedData:x,geoBackgroundImageRef:l,myGeoBackgroundImage:f,customClick:()=>{n.unref(a)&&O()},onMouseOver:(w={})=>{w.componentType==="geo"&&w.region?a.value=w.region:a.value=null}}}}),L1="",eu=["src"];function tu(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,eu),[[n.vShow,!1]])],4)}const k0=xe(ye(Xd,[["render",tu],["__scopeId","data-v-10f150ac"]])),T0=Object.freeze(Object.defineProperty({__proto__:null,EcanBar:o0,EcanBorder:u0,EcanButton:Hi,EcanCheckbox:ji,EcanComboGraph:s0,EcanCustomGraph:i0,EcanDatePicker:Li,EcanIframe:b0,EcanImage:p0,EcanInput:Ri,EcanLine:t0,EcanList:Ti,EcanMap:k0,EcanModal:kt,EcanPageConfig:hi,EcanPie:Xi,EcanProportion:Ei,EcanProviderConfig:gi,EcanRadar:f0,EcanRadio:Yi,EcanRangePicker:Pi,EcanScatter:r0,EcanScrollText:bi,EcanSelect:Gi,EcanTable:w0,EcanTabs:g0,EcanText:pi,EcanTimeDisplay:Si,EcanTreeSelect:$i,barComponentProps:ca,barEvents:n0,barProps:sa,borderComponentProps:ba,borderEvents:d0,borderProps:pa,buttonComponentProps:$o,buttonEvents:qi,buttonProps:Wo,checkboxComponentProps:Yo,checkboxEvents:Vi,checkboxProps:Zo,comboGraphComponentProps:ma,comboGraphEvents:l0,comboGraphProps:ga,customGraphComponentProps:ha,customGraphProps:ua,datePickerComponentProps:Ho,datePickerEvents:Ii,datePickerProps:qo,iframeComponentProps:Ta,iframeProps:ka,imageComponentProps:wa,imageEvents:m0,imageProps:Ca,inputComponentProps:Po,inputEvents:Di,inputProps:Fo,lineComponentProps:la,lineEvents:e0,lineProps:ia,listComponentProps:No,listEvents:Ci,listProps:Lo,mapComponentProps:Ia,mapEvents:A0,mapProps:Ra,modalComponentProps:ra,modalEvents:Qi,modalProps:aa,pageConfig:_n,pageConfigComponentProps:On,pieComponentProps:oa,pieEvents:Ki,pieProps:na,proportionComponentProps:zo,proportionEvents:Bi,proportionProps:Mo,providerConfig:ko,providerConfigComponentProps:To,radarComponentProps:xa,radarEvents:c0,radarProps:ya,radioComponentProps:ta,radioEvents:Zi,radioProps:ea,rangePickerComponentProps:Uo,rangePickerEvents:Ni,rangePickerProps:jo,scatterComponentProps:da,scatterEvents:a0,scatterProps:fa,selectComponentProps:Qo,selectEvents:Ui,selectProps:Ko,tableComponentProps:Ea,tableEvents:v0,tableProps:Ba,tabsComponentProps:Sa,tabsEvents:h0,tabsProps:va,textComponentProps:Eo,textEvents:mi,textProps:Bo,timeDisplayComponentProps:Oo,timeDisplayEvents:vi,timeDisplayProps:_o,treeSelectComponentProps:Xo,treeSelectEvents:Wi,treeSelectProps:Jo},Symbol.toStringTag,{value:"Module"})),nu={install:e=>{Object.keys(T0).forEach(o=>{const t=T0[o];t.install&&e.use(t)})}};V.EcanBar=o0,V.EcanBorder=u0,V.EcanButton=Hi,V.EcanCheckbox=ji,V.EcanComboGraph=s0,V.EcanCustomGraph=i0,V.EcanDatePicker=Li,V.EcanIframe=b0,V.EcanImage=p0,V.EcanInput=Ri,V.EcanLine=t0,V.EcanList=Ti,V.EcanMap=k0,V.EcanModal=kt,V.EcanPageConfig=hi,V.EcanPie=Xi,V.EcanProportion=Ei,V.EcanProviderConfig=gi,V.EcanRadar=f0,V.EcanRadio=Yi,V.EcanRangePicker=Pi,V.EcanScatter=r0,V.EcanScrollText=bi,V.EcanSelect=Gi,V.EcanTable=w0,V.EcanTabs=g0,V.EcanText=pi,V.EcanTimeDisplay=Si,V.EcanTreeSelect=$i,V.barComponentProps=ca,V.barEvents=n0,V.barProps=sa,V.borderComponentProps=ba,V.borderEvents=d0,V.borderProps=pa,V.buttonComponentProps=$o,V.buttonEvents=qi,V.buttonProps=Wo,V.checkboxComponentProps=Yo,V.checkboxEvents=Vi,V.checkboxProps=Zo,V.comboGraphComponentProps=ma,V.comboGraphEvents=l0,V.comboGraphProps=ga,V.compatibleMobileList=Ji,V.customGraphComponentProps=ha,V.customGraphProps=ua,V.datePickerComponentProps=Ho,V.datePickerEvents=Ii,V.datePickerProps=qo,V.default=nu,V.iframeComponentProps=Ta,V.iframeProps=ka,V.imageComponentProps=wa,V.imageEvents=m0,V.imageProps=Ca,V.inputComponentProps=Po,V.inputEvents=Di,V.inputProps=Fo,V.lineComponentProps=la,V.lineEvents=e0,V.lineProps=ia,V.listComponentProps=No,V.listEvents=Ci,V.listProps=Lo,V.mapComponentProps=Ia,V.mapEvents=A0,V.mapProps=Ra,V.modalComponentProps=ra,V.modalEvents=Qi,V.modalProps=aa,V.pageConfig=_n,V.pageConfigComponentProps=On,V.pieComponentProps=oa,V.pieEvents=Ki,V.pieProps=na,V.proportionComponentProps=zo,V.proportionEvents=Bi,V.proportionProps=Mo,V.providerConfig=ko,V.providerConfigComponentProps=To,V.radarComponentProps=xa,V.radarEvents=c0,V.radarProps=ya,V.radioComponentProps=ta,V.radioEvents=Zi,V.radioProps=ea,V.rangePickerComponentProps=Uo,V.rangePickerEvents=Ni,V.rangePickerProps=jo,V.scatterComponentProps=da,V.scatterEvents=a0,V.scatterProps=fa,V.selectComponentProps=Qo,V.selectEvents=Ui,V.selectProps=Ko,V.tableComponentProps=Ea,V.tableEvents=v0,V.tableProps=Ba,V.tabsComponentProps=Sa,V.tabsEvents=h0,V.tabsProps=va,V.textComponentProps=Eo,V.textEvents=mi,V.textProps=Bo,V.timeDisplayComponentProps=Oo,V.timeDisplayEvents=vi,V.timeDisplayProps=_o,V.treeSelectComponentProps=Xo,V.treeSelectEvents=Wi,V.treeSelectProps=Jo,Object.defineProperties(V,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
118
+ <span style="color: ${F||e.color};${n.unref(f)}">${e.minusSignShow?"-":""}${Math.abs(+L).toFixed(2)}%</span>
119
+ </span>`)}else e.format==="percent"?(L=+L,isNaN(L)||(L=(L*100).toFixed(2),C=C.replace(W,`<span style="color:${u(L)||e.variableColor};font-size:${n.unref(i)};${n.unref(f)}">${L}%</span>`))):e.format==="money"?(L=+L,isNaN(L)||(L=ko(L),C=C.replace(W,`<span style="color:${u(L)||e.variableColor};font-size:${n.unref(i)};${n.unref(f)}">${L}</span>`))):R==="thousands"?(L=+L,isNaN(L)||(L=mc(L),C=C.replace(W,`<span style="color:${u(L)||e.variableColor};font-size:${n.unref(i)};${n.unref(f)}">${L}</span>`))):C=C.replace(W,`<span style="color:${u(L)||e.variableColor};font-size:${n.unref(i)};${n.unref(f)}">${L}</span>`)}}if(N||(N=`<span style="color: ${u(C)};${n.unref(f)}">${C}</span>`),e.unitShow&&e.unitText){const{unitTop:P,unitLeft:W}=e;let $="position:relative;";P&&($+=`top:${P};`),W&&($+=`margin-left:${W};`),N+=`<span style='color:${e.unitColor};font-size:${e.unitFontSize};font-weight:${e.unitFontWeight};${$};${n.unref(f)}'>${e.unitText}</span>`}return N});function u(S){let B="",w=!1;const{targetValue:C,targetShow:I,notExpectColor:N}=e;if(I){switch(e.targetRule){case"equal":S!==C&&(w=!0);break;case"greater":S<=C&&(w=!0);break;case"greater_equal":S<C&&(w=!0);break;case"less":S>=C&&(w=!0);break;case"less_equal":S>C&&(w=!0);break}w&&(B=N)}return B}const{pageMode:y}=n.inject(Me,{pageMode:"normal"}),h=Ve(e),v=n.ref(!1),E=async()=>{var S;try{v.value=!0;const B=await h();r.value=((S=B==null?void 0:B.data)==null?void 0:S.data)||{}}catch(B){console.error(B)}finally{v.value=!1}},p=(S={})=>{r.value=S},b=S=>{const B=e.id,w=l(B);d(B,{...w,value:S||""})},x=at(e),A=async()=>{var S;try{v.value=!0;const B=await x(),{data:w}=(B==null?void 0:B.data)||{};if(w){t.value=!1;const{columns:C=[],rows:I=[]}=((S=B==null?void 0:B.data)==null?void 0:S.data)??{};let N={};if(C.length>0){const M=C.find(P=>!!P);M&&(N={value:isNaN(I[M])?0:I[M]||0})}b(N==null?void 0:N.value),p(N)}else t.value=!0,b("NaN"),p({value:"NaN"})}catch(B){console.error(B)}finally{v.value=!1,c(e.id,!0)}},T=()=>{switch(e.dataType){case"indicator":A();break;case"request":E();break}},{setRequest:D}=n.inject(ze,{setRequest:({id:S,sortNum:B,requestFn:w})=>{}});typeof D=="function"&&D({id:e.id,requestFn:T,sortNum:e.requestSort}),Le(e,{refreshData:T}),o({refreshData:T});const O=Te(e),_=O("click",()=>{if(!e.linkPage&&!e.href)return;const S=e.linkPage||"",B=gi(n.unref(y),S),w=e.href;let C=w||B;C=De(C);const I=e.target;I&&(I!=="event"?window.open(C,"_"+I):window.parent.postMessage({type:"openPage",url:w},"*"))}),k=O("valueChange",()=>{});return n.watch(()=>m.value,(S,B)=>{S!==B&&k()}),{style:a,myText:m,loading:v,click:_,textIndent:s,vFontSize:i,gradientStyle:g}}}),pi=()=>{n.useCssVars(e=>({cebebbf4:e.vFontSize,"2393a9b9":e.textIndent,"36d98491":e.percentageSide}))},bi=_o.setup;_o.setup=bi?(e,o)=>(pi(),bi(e,o)):pi;const Du="",wc=["innerHTML"];function Ac(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:"ecan-text",style:n.normalizeStyle({...e.style,...e.gradientStyle}),innerHTML:e.myText,onClick:o[0]||(o[0]=(...l)=>e.click&&e.click(...l))},null,12,wc))}const vi=xe(ye(_o,[["render",Ac],["__scopeId","data-v-3cbb70ab"]])),kc=n.defineComponent({name:"EcanScrollText",setup(){return{text:n.ref("基础文本")}}}),Iu="",Tc={class:"red"};function Bc(e,o,t,a,r,i){return n.openBlock(),n.createElementBlock("div",Tc,n.toDisplayString(e.text),1)}const Si=xe(ye(kc,[["render",Bc],["__scopeId","data-v-4dd9c03e"]])),Oo={...we,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"}},Lo=ve(Oo),Ci=["timeChange"],Ec=n.defineComponent({name:"EcanTimeDisplay",props:{...Lo},setup(e){const o=Ce(e),t=()=>{const{format:c,operate:f}=e;let g=Se();if(f){const{type:m,value:u,mode:y}=f;switch(m){case"add":g=g.add(u,y);break;case"minus":g=g.subtract(u,y)}}return g.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=Te(e)("timeChange",()=>{}),d=()=>{r&&i();let c=1e3;const{value:f,mode:g}=e.updateInterval||{};f&&(c=c*f);const m={second:1,minute:60,hour:60*60,day:24*60*60};g&&(c=c*m[g]),r=setInterval(()=>{a.value=t(),l()},c)};return Le(e,{timeChange:l}),n.onMounted(()=>{d()}),n.onUnmounted(()=>{i()}),{style:o,time:a}}}),Ou="";function Dc(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 wi=xe(ye(Ec,[["render",Dc],["__scopeId","data-v-b628fca2"]])),No={...we,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:{}},Fo=ve(No),Ai=["refreshData","click"],Rc="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAYCAYAAACfpi8JAAAAAXNSR0IArs4c6QAAAWhJREFUSEvNlz9Lw0AYxp/3iJ2TgqN+ia5ihbb0A/hnEXG3QxHEyUkQVwcHwU3cgoI4hHKXUnQS3Z0VQVBwbTVtXrlciyKmLo2XmxI47v3x3HPvPUdcKk3B85og2gYwjUkOIoD5CcAeSXk0bmniSqWJQuEA/f4kEb7WMjD6f42kPE0rQlyrPYJoZjg5O5g4voDnrZDvf/xWRIMkuJkOo8odXHeefL9rG+QWrlvOA8gNomiBOp2ePUVM5S7iuE5heG0bBNBeieMdKLWvv74D/Y9Zf0rAfEZKLdkHEUIrcw8h5qjVetNAdhRJKidH+nnY6EJ7IKN9YY4ANPIAou+WDXsgZmtewLxKSik7ICOzOk6ZguDVplnPScpFe8c3Jw2th8GgTu32lb0Wb4yZg0vPgOQmBvwRjKrVBwgxm3lUZL6E4yxTELyneaQBxznMPDwzr5NSJ+nhWT8nisVNAFuZPSeYd0mp43G5+BNp2sfxEUU29gAAAABJRU5ErkJggg==",Ic="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAYCAYAAACfpi8JAAAAAXNSR0IArs4c6QAAAbVJREFUSEvNl7tKA1EQhmfOyd6ClikVLHwCWzHb5QHUbWIStVRQBLGyEEFsLSwUq6idKIiFjZdNUgTR3k7wAoqC2GU3mz0ju5uIRaKN68l5gDMfM//M/IO0PaS4yd55ErTEEFMEf/cYIvgknjjgmpq3t376GZ2iOa8l+Ybn+CD+kqIZlSFA+C1CTpuw9zvBYK2YfuCM9QmKgaIZNcEQGj4da0bKQuug3g4G3T2TYmQIYwYlIqIbVXdH0KrW2oI4u2Z8qfgqT6AVutZ1Ny0VhAelEXSl+2DilO1IywhCKNgaR8oouVJFGkikk0grvqBl9c5cx5UV8R0I/0MjbTJwqOftMekgmsLA9fxbTa8Po1V9D8eMpIyAwhE8n55JYM6YvDyXBhIN21DEHgHNdgNIg4BmpIEEpak3xGsCMKsU7DMpIC2xeg2R7p2uvMkTK9GRXiiNSmnfrhhoYXcQODzBMkr2oixtxLeW3osP5oDMpRdZxl9sQNcYo1oxfc8Z64/dKgo6efwwxgfnTt1OGpnVDL4Zp3mOAouCmivvdjTPwTlRN3oWBMFiHOeEIPFEAKtGvrTz0znxCSDl9ZPnj4lKAAAAAElFTkSuQmCC",_c="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAYCAYAAACfpi8JAAAAAXNSR0IArs4c6QAAAZhJREFUSEvNl79LY0EUhb87L6uwkHSieRjBwm7/ApHVbcwzrT8ake21EGHZympBbLewEOxk2xVEBAVttBLtrRWTiLtaiTHue3NlsgiKRiwSJ1NOMffjzLl3zghH+oHL81ms/Y4xHajSsGUMJMkZIgtE4fJr5wqbpVnS6Z9UrmkoxENVMYCC6BTD4a96MMJW8RQT5LC2YUI8OygInDLrdGcn+CR3LxUStsvaFCUeV3NXpPaIdPKZ/lzlZZCtUgNNUUdUB2LtIZlksBVADmivDvGl99afIiLOsBWUPFG47w/EVXbdU7uieJ7h7CIiT7pDeA+PPJfgN1E49njbD0hbO9xVj8kkA/TnrmqCeVIEUimI4zJqphjp2vUHUpPBmZh/JDrjH0Q1xjLtDyRIQRJfQDBJ1LnjB+TBrFYGKWT/+DTrGlE46qd9W2Kgue5QvUXIkw/3/I34/69vCzx6b4oBrROMiieYoKfpUTGON9CbcQp91ToeKc7wMbPU9PCsfCXKrtYPz+478fd8DtVvGGnOd0LlB4Vw5bV0fg/E2Mcb2D1RagAAAABJRU5ErkJggg==",Oc="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 Lc=Object.defineProperty,ki=Object.getOwnPropertySymbols,Nc=Object.prototype.hasOwnProperty,Fc=Object.prototype.propertyIsEnumerable,Ti=(e,o,t)=>o in e?Lc(e,o,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[o]=t,Bi=(e,o)=>{for(var t in o||(o={}))Nc.call(o,t)&&Ti(e,t,o[t]);if(ki)for(var t of ki(o))Fc.call(o,t)&&Ti(e,t,o[t]);return e},Mc=(e,o)=>{const t=e.__vccOpts||e;for(const[a,r]of o)t[a]=r;return t};const zc=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),g=n.ref(0),m=n.ref(!1),u=n.ref(!1),y=n.ref(0),h=n.ref(null),v=n.ref("200px"),E=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){g.value=p.value.clientHeight,f.value=b.value.clientHeight;const N=Math.ceil(f.value/g.value);return t.value=isFinite(N)?N: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 N=Math.ceil(d.value/c.value);return t.value=isFinite(N)?N: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,(N,M)=>{N!==M&&o(N?"onResume":"onPause")});const T=()=>{e.pauseOnHover&&(o("onPause"),m.value=!0)},D=()=>{e.pauseOnHover&&(o("onResume"),m.value=!1)},O=()=>{e.pauseOnClick&&(o("onPause"),u.value=!0)},_=()=>{e.pauseOnClick&&(o("onResume"),u.value=!1)},k=n.computed(()=>e.pause||e.vertical&&s.value||e.animateOnOverflowOnly&&l.value?"paused":"running"),S=n.computed(()=>e.pauseOnHover&&(m.value||u.value)||!e.pauseOnHover&&k.value==="paused"?"paused":"running"),B=n.computed(()=>e.pauseOnHover&&m.value||e.pauseOnClick&&u.value||!e.pauseOnHover&&k.value==="paused"?"paused":"running"),w=n.computed(()=>{const N={"--duration":`${e.duration}s`,"--delay":`${e.delay}s`,"--direction":`${e.direction}`,"--pauseOnHover":`${S.value}`,"--pauseOnClick":`${B.value}`,"--pauseAnimation":`${k.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}`},M={"--orientation":"scrollX",orientation:"horizontal"};return e.vertical&&(M["--orientation"]="scrollY"),Bi(Bi({},N),M)}),C=n.computed(()=>!!e.gradient),I=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()),E.value=!0};return n.onMounted(async()=>{I(),h.value=setInterval(()=>{y.value++,e.loop!==0&&y.value===e.loop&&(o("onComplete"),clearInterval(h.value)),o("onLoopComplete")},e.duration*1e3)}),n.onBeforeUnmount(()=>{clearInterval(h.value)}),{ready:E,contentWidth:c,containerWidth:d,contentHeight:g,containerHeight:f,loopCounter:y,loopInterval:h,mouseOverMarquee:m,mouseDownMarquee:u,minWidth:a,minHeight:r,animateOnOverflowPause:l,marqueeContent:p,marqueeOverlayContainer:b,componentKey:i,showGradient:C,cloneAmount:t,ForcesUpdate:x,checkForClone:A,setupMarquee:I,getCurrentStyle:w,hoverStarted:T,hoverEnded:D,mouseDown:O,mouseUp:_}}}),Pc={class:"transparent-overlay",ref:"marqueeOverlayContainer","aria-hidden":!0},qc={class:"marquee",ref:"marqueeContent"},Hc={key:1,"aria-hidden":!0,class:"marquee"};function Vc(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",Pc,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",qc,[n.renderSlot(e.$slots,"default")],512),!e.animateOnOverflowOnly||e.animateOnOverflowOnly&&!e.animateOnOverflowPause?(n.openBlock(),n.createElementBlock("div",Hc,[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 jc=Mc(zc,[["render",Vc]]);const Wc=n.defineComponent({name:"SeamScroll",components:{Vue3Marquee:jc},props:{dataSource:{type:Object,default:()=>{}},visible:{type:Boolean,default:!1},step:{type:Number,default:1}},setup(e){return{isAutoScroll:n.ref(e.visible)}}}),Uc={key:1,class:"list-wrap"};function Gc(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",Uc,[n.renderSlot(e.$slots,"default")]))}const $c=ye(Wc,[["render",Gc]]),Zc=n.defineComponent({name:"EcanList",components:{Skeleton:rn,ATooltip:se.Tooltip,MarqueeScroll:$c},props:{...Fo},setup(e,{expose:o}){const t=n.ref(),a=Ce(e,["backgroundColor"]),r=(_,k)=>{const{format:S,customFormatter:B}=k;if(S==null||S==="")return _;const w={money:ko,percentage:xn,contrast:xn,custom:hi};return w[S]?S==="custom"?w[S](_,B)||"":w[S](_)||"":""},i=(_,k)=>{const S=parseFloat(_+"");if(k!=="contrast")return"";switch(!0){case S>=0:return"goUp";case S<0:return"goDown"}},s=Ve(e),l=n.ref(!1),d=async()=>{var _;if(e.dataType==="request")try{l.value=!0;const k=await s();t.value=((_=k==null?void 0:k.data)==null?void 0:_.data.rows)||[]}catch(k){console.error(k)}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:_,isUseSeq:k}=e;return k?[n.unref(c),..._]:_}),g=at(e),m=async()=>{var _;try{l.value=!0;const k=await g(),{columns:S=[],rows:B=[]}=((_=k==null?void 0:k.data)==null?void 0:_.data)??{};e.isUseSeq&&S.unshift(e.seqName),f.value.forEach((w,C)=>{(!e.isUseSeq||C!==0)&&(w.title=S[C],w.key=S[C])}),t.value=B}catch(k){console.error(k)}finally{l.value=!1}},u=()=>{switch(e.dataType){case"indicator":m();break;case"request":d();break}},y=Te(e),{getGlobalModel:h,setGlobalModel:v}=n.inject(ke,{getGlobalModel:_=>{},setGlobalModel:(_,k)=>{}}),E=_=>{y("click",()=>{const k=h(e.id);v(e.id,{...k,type:e.type,RECORD:_})})()};Le(e,{refreshData:u});const{setRequest:p}=n.inject(ze,{setRequest:({id:_,sortNum:k,requestFn:S})=>{}});typeof p=="function"&&p({id:e.id,requestFn:u,sortNum:e.requestSort}),o({refreshData:u});const b=_=>({flex:_.width?"none":"1",width:_.width,height:e.itemHeight,lineHeight:e.itemHeight,textAlign:_.align||"left",backgroundColor:_.cellColor}),x=(_,k)=>{let S=0;const B=n.unref(t).map(C=>C[k]),w=Math.max(...B);return w&&(S=_[k]/w*100),S},A=_=>{const{progressColor:k="#1890ff",progressGradientColor:S=""}=_;return S?{background:`linear-gradient(to right, ${k} 0%, ${S} 100%)`}:{backgroundColor:k||"#1890ff"}},T=n.computed(()=>{const _=parseFloat(e.seqFontSize)+5;return{width:_+10,height:_}}),{pageMode:D}=n.inject(Me,{pageMode:"normal"}),O=n.computed(()=>n.unref(D)==="preview"&&e.isAutoScroll);return{style:a,formatFn:r,contrastClass:i,dataSource:t,loading:l,myColumns:f,click:E,getColumnStyle:b,getPercentage:x,getBackgroundColor:A,seqIcon4:Rc,seqIcon5:Ic,seqIcon6:_c,seqIcon7:Oc,iconSize:T,isScroll:O}}}),Nu="",Fu="",Yc=e=>(n.pushScopeId("data-v-bb4b7c1e"),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,g)=>(n.openBlock(),n.createElementBlock("div",{class:"column",key:f.key||g,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:g=>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,g=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["column",e.contrastClass(c[g.key],g.format)]),key:g.key,style:n.normalizeStyle({fontSize:g.fontSize,color:e.contrastClass(c[g.key],g.format)===""?g.color:"",fontWeight:g.fontWeight,...e.getColumnStyle(g)})},[g.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)):g.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:g.progressWidth||"14px",backgroundColor:g.progressBaseColor})},[n.createVNode(s,{title:c[g.key],overlayClassName:"ecan-list-tooltip",color:"#fff"},{default:n.withCtx(()=>[n.createElementVNode("div",{style:n.normalizeStyle({borderRadius:"10px",height:g.progressWidth||"14px",width:`${e.getPercentage(c,g.key)}%`,...e.getBackgroundColor(g)})},null,4)]),_:2},1032,["title"])],4)],4)):(n.openBlock(),n.createElementBlock(n.Fragment,{key:2},[n.createTextVNode(n.toDisplayString((g.format!=null||g.format!=="")&&e.formatFn(c[g.key],g)),1)],64))],6))),128))],12,Xc))),128))]),_:1},8,["visible","step"])])):(n.openBlock(),n.createElementBlock("div",sd," 暂无数据 "))]),_:1},8,["loading"])],4)}const Ei=xe(ye(Zc,[["render",cd],["__scopeId","data-v-bb4b7c1e"]])),Mo={...we,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:{}},zo=ve(Mo),Di=["refreshData","click"],dd=n.defineComponent({name:"EcanProportion",components:{AProgress:se.Progress,Skeleton:rn},props:{...zo},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 T=e.text.match(/\{.+\}/g)||[];let D;const O=new Set(Object.keys(x));for(let _=0;_<T.length;_++){const k=T[_],S=k.slice(1,k.length-1);if(O.has(S)){D=x[S];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,T=n.unref(s),D=x.match(/\{.+\}/g)||[];for(let _=0;_<D.length;_++){const k=D[_];let S=k.slice(1,k.length-1);const B=/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,w=k.match(B);for(let I=0;I<(w==null?void 0:w.length);I++){const N=(O=w[I])==null?void 0:O.trim();T[N]!=null&&(S=S.replace(N,T[N]))}let C=S;try{/\(.*\)/g.test(S)&&(C=bn(S))}catch(I){console.error(I)}typeof+C=="number"&&!isNaN(+C)?(C=+C*100,e.decimalFormat&&(C=C.toFixed(2))):C=A,x=x.replace(k,C+"")}return n.unref(t)?"NaN":x}),c=Ve(e),f=n.ref(!1),g=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}},m=(x={})=>{s.value=x},u=at(e),y=async()=>{var x;try{f.value=!0;const A=await u(),{data:T}=(A==null?void 0:A.data)||{};if(T){t.value=!1;const{columns:D=[],rows:O=[]}=((x=A==null?void 0:A.data)==null?void 0:x.data)??{};let _={};if(D.length>0){const k=D.find(S=>!!S);k&&(_={percent:O[k]})}m(_)}else t.value=!0,m({percent:"NaN"})}catch(A){console.error(A)}finally{f.value=!1}},h=()=>{switch(e.dataType){case"indicator":y();break;case"request":g();break}};Le(e,{refreshData:h}),o({refreshData:h});const E=Te(e)("click",()=>{}),{setRequest:p}=n.inject(ze,{setRequest:({id:x,sortNum:A,requestFn:T})=>{}});typeof p=="function"&&p({id:e.id,requestFn:h,sortNum:e.requestSort});const b=n.computed(()=>{const{gradientShow:x,gradientColor:A,gradientOffset:T,strokeColor:D}=e;let O=D;return x&&A&&(O={"0%":D,[`${T*100}%`]:A}),O});return{style:r,myWidth:i,text:d,myValue:l,loading:f,click:E,customStrokeColor:b}}}),zu="";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 Ri=xe(ye(dd,[["render",fd],["__scopeId","data-v-cf942b5f"]])),Po={...we,width:"200px",id:"",left:"0px",top:"0px",name:"输入框",keyName:"输入框",rotate:"",type:"ecanInput",value:"",placeholder:"请输入文字",optionFontSize:"14px"},qo=ve(Po),Ii=["inputChange","inputBlur"],ud=n.defineComponent({name:"EcanInput",components:{AInput:se.Input},props:{...qo},setup(e){const o=Ce(e),t=n.ref(""),{getGlobalModel:a,setGlobalModel:r,getRecordValueByKeyName:i}=n.inject(ke,{getGlobalModel:f=>{},setGlobalModel:(f,g)=>{},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=Te(e),d=He.debounce(l("inputChange",()=>{s()}),300),c=l("inputBlur",()=>{});return{style:o,myValue:t,inputBlur:c,inputChange:d}}}),qu="";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 _i=xe(ye(ud,[["render",hd]])),Ho={...we,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"},Vo=ve(Ho),Oi=["dateChange"],jo=n.defineComponent({name:"EcanDatePicker",props:{...Vo},components:{ADatePicker:se.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],([m,u,y])=>{let h=null;if(m?h=Se(De(m)):u&&(h=Se()),y&&h){const{type:v,value:E,mode:p}=y;switch(v){case"add":h=h.add(E,p);break;case"minus":h=h.subtract(E,p)}}r.value=h},{deep:!0,immediate:!0});const{setGlobalModel:i}=n.inject(ke,{setGlobalModel:(m,u)=>{}});i(e.id,{type:e.type,format:e.format,useCurrentTime:e.useCurrentTime,value:r});const l=Te(e)("dateChange",()=>{}),d=()=>{n.unref(r)&&l()};Le(e,{dateChange:l});const c=n.ref({}),f=n.ref({}),g=m=>{m?setTimeout(()=>{f.value=n.unref(c)},300):f.value={}};return n.onMounted(()=>{setTimeout(()=>{const m=document.querySelector(`#ecan-date-picker-${e.id}`);if(m){const u=m.getBoundingClientRect(),y=parseFloat(n.unref(o).widthScale)*280;document.body.clientWidth-u.left<y&&(c.value.marginLeft=-1*(y-u.width)+"px")}},0)}),{style:t,getPopupContainer:a,myValue:r,locale:Fa,change:d,scaleValue:o,popupStyle:c,customStyle:f,openChange:g}}}),Li=()=>{n.useCssVars(e=>({d6fb5b46:e.optionFontSize}))},Ni=jo.setup;jo.setup=Ni?(e,o)=>(Li(),Ni(e,o)):Li;const Vu="",ju="",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 Fi=xe(ye(jo,[["render",md],["__scopeId","data-v-d4ec0d66"]])),Wo={...we,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},Uo=ve(Wo),Mi=["dateChange"];var zi={exports:{}};(function(e,o){(function(t,a){e.exports=a()})(ce,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 g=this.$utils(),m=!!g.u(f)||f;if(g.p(c)===a){var u=this.quarter()-1;return m?this.month(3*u).startOf(t).startOf("day"):this.month(3*u+2).endOf(t).endOf("day")}return d.bind(this)(c,f)}}})})(zi);var yd=zi.exports;const xd=dr(yd);Se.extend(xd);const Go=n.defineComponent({name:"EcanRangePicker",components:{ARangePicker:se.RangePicker},props:{...Uo},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,T,D,O])=>{let _=null,k=null;if(A&&(_=Se().subtract(T,D),k=Se()),b&&(_=Se(De(b))),x&&(k=Se(De(x))),O){const{type:S,value:B,mode:w}=O;switch(S){case"add":_=_&&_.add(B,w),k=k&&k.add(B,w);break;case"minus":_=_&&_.subtract(B,w),k=k&&k.subtract(B,w)}}a.value=[_,k]},{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)},d=b=>{let x=!1,{limitStartTime:A,limitEndTime:T}=e;const D={startTime:`${r||""}`,endTime:`${i||""}`};if(A=De(A,{codeData:D}),T=De(T,{codeData:D}),A&&T?x=!(Se(A)<b&&b<Se(T)):A?x=Se(A)>b:T&&(x=Se(T)<b),!e.isAllowSpanYear&&s){let O=null;if(s==="start"?O=r:s==="end"&&(O=i),O){const _=O.startOf("year"),k=O.endOf("year");x=!(_<=b&&b<k)}}return x},{getGlobalModel:c,setGlobalModel:f}=n.inject(ke,{getGlobalModel:b=>{},setGlobalModel:(b,x)=>{}}),g=n.computed(()=>Array.isArray(n.unref(a))?n.unref(a)[0]:null),m=n.computed(()=>Array.isArray(n.unref(a))?n.unref(a)[1]:null);f(e.id,{type:e.type,format:e.format,startTime:g,endTime:m,interval:e.interval,intervalUnit:e.intervalUnit,useCurrentTime:e.useCurrentTime,operate:e.operate});const u=Te(e);let y=!1;const h=u("dateChange",()=>{}),v=b=>{const x=n.unref(a),A=x&&x[0]&&x[1];b===!1&&y===!0&&A&&(h(),y=!1),b||(s="")},E=()=>{y=!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=[Se().startOf("month"),Se().endOf("month")];break;case"quarter":a.value=[Se().startOf("quarter"),Se().endOf("quarter")];break;case"year":a.value=[Se().startOf("year"),Se().endOf("year")];break}}}h()}}),{style:o,getPopupContainer:t,locale:Fa,dateChange:h,myValue:a,disabledDate:d,calendarChange:l,openChange:v,change:E}}}),Pi=()=>{n.useCssVars(e=>({"70b68802":e.optionFontSize}))},qi=Go.setup;Go.setup=qi?(e,o)=>(Pi(),qi(e,o)):Pi;const Uu="",Gu="";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 Hi=xe(ye(Go,[["render",pd],["__scopeId","data-v-95653c92"]])),$o={...we,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"},Zo=ve($o),Vi=["click"],bd=n.defineComponent({name:"EcanButton",components:{AButton:se.Button},props:{...Zo},setup(e){const o=Ce(e),a=Te(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}}}),Zu="";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 ji=xe(ye(bd,[["render",vd]])),Yo={...we,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:{}},Ko=ve(Yo),Wi=["checkboxChange"],Sd=n.defineComponent({name:"EcanCheckbox",components:{ACheckboxGroup:se.CheckboxGroup},props:{...Ko},setup(e,{expose:o}){const t=Ce(e),a=n.ref([]),r=n.ref([]),i=v=>{const E=e.value;let p=[];v.forEach(b=>{b.checked&&p.push(b.value)}),typeof E=="string"&&E!==""?p=p.concat(E.split(",")):Array.isArray(E)&&(p=p.concat(E)),a.value=v,r.value=p};n.watch(()=>[e.data,e.value],([v])=>{i(v)},{immediate:!0,deep:!0});const s=Ve(e),l=async()=>{var p,b;if(e.dataType!=="request")return;const v=await s(),E=((b=(p=v==null?void 0:v.data)==null?void 0:p.data)==null?void 0:b.rows)||[];i(E)},{getGlobalModel:d,setGlobalModel:c}=n.inject(ke,{getGlobalModel:v=>{},setGlobalModel:(v,E)=>{}});c(e.id,{type:e.type,value:r});const g=Te(e)("checkboxChange",()=>{const v=d(e.id);c(e.id,{...v,RECORD:r})}),m=at(e),u=async()=>{var v;try{const E=await m(),{data:p}=(E==null?void 0:E.data)||{};if(p){const x=(((v=E==null?void 0:E.data)==null?void 0:v.data)??[]).map(A=>({label:A.label,value:A.value}));i(x)}else i([])}catch(E){console.error(E)}},y=()=>{switch(e.dataType){case"indicator":u();break;case"request":l();break}},{setRequest:h}=n.inject(ze,{setRequest:({id:v,sortNum:E,requestFn:p})=>{}});return typeof h=="function"&&h({id:e.id,requestFn:y,sortNum:e.requestSort}),o({refreshData:y}),{myOption:a,style:t,myValue:r,checkboxChange:g}}}),Ku="";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 Ui=xe(ye(Sd,[["render",Cd]])),Qo={...we,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"},Jo=ve(Qo),Gi=["selectChange","refreshData"],wd=n.defineComponent({name:"EcanSelect",components:{ASelect:se.Select,ASelectOption:se.SelectOption},props:{...Jo},setup(e,{expose:o}){const t=Ce(e),a=()=>document.getElementById("ProviderConfig")||document.body,r=Ve(e),i=n.ref(e.data||[]),s=n.ref(),l=n.computed({get:()=>{var I;const{mode:C}=e;return(I=n.unref(i))!=null&&I.length?s.value:C==="multiple"||C==="tags"||C==="combobox"?[]:""},set:C=>{s.value=C}}),{getGlobalModel:d,setGlobalModel:c,getRecordValueByKeyName:f}=n.inject(ke,{getGlobalModel:C=>{},setGlobalModel:(C,I)=>{},getRecordValueByKeyName:C=>{}});n.watch(()=>[e.value,e.mode,e.selectFirstOption,e.valueType,i.value],()=>{const{mode:C,selectFirstOption:I,value:N}=e,M=f(N);C==="multiple"||C==="tags"||C==="combobox"?M?s.value=M.split(","):I&&(s.value=[n.unref(i)[0]]):M?s.value=M:I&&(s.value=n.unref(i)[0])},{immediate:!0});const g=e.dataFieldNames,m=(C,I)=>{const N=g.label,M=g.value;let P;const W=I[N],$=I[M];return W!=null?P=W:$!=null&&(P=$),(P==null?void 0:P.toLowerCase().indexOf(C==null?void 0:C.toLowerCase()))>=0},u=C=>{const{label:I,value:N,options:M}=e.dataFieldNames;if(M&&Array.isArray(C))if(C.some(P=>M in P)){const P={},W=[];C.forEach($=>{P[$[M]]||(P[$[M]]=[]),P[$[M]].push({[I]:$[I],[N]:$[N]})});for(const $ in P)W.push({[I]:$,[M]:P[$]});return W}else return C;else if(!M)return C},y=n.ref(!1),h=async()=>{var C,I;if(e.dataType==="request"){y.value=!0;try{const N=await r();if(i.value=u(((I=(C=N==null?void 0:N.data)==null?void 0:C.data)==null?void 0:I.rows)||[]),e.selectFirstOption){let M=n.unref(i)[0];if(g.options){const P=M[g.options];P&&P.length&&(M=P[0])}s.value=M[g.value]}}catch(N){console.error(N)}finally{y.value=!1}}},{setLoadedData:v,loadedData:E}=n.inject(bt,{setLoadedData:(C,I)=>{},loadedData:{}}),p=n.computed(()=>{let C=s.value;if(e.valueType==="label"&&n.unref(s)&&n.unref(i)){const I=g.label,N=g.value;if(e.mode==="multiple")C=n.unref(i).filter(M=>n.unref(s).includes(M[N])).map(M=>M[I]);else{const M=n.unref(i).find(P=>n.unref(s)===P[N]);M&&(C=M[I])}}return C}),b=n.ref([]),x=n.computed(()=>{const C={};if(e.mode!=="multiple"){const I=n.unref(b).find(N=>N.value===n.unref(s));I&&(C.itemCodes=I.item_codes)}return C});c(e.id,{type:e.type,value:p,...n.unref(x)});const T=Te(e)("selectChange",()=>{const C=e.id,I=d(C);c(C,{...I,...n.unref(x),RECORD:p})}),D=(C=[])=>{if(i.value=u(C),e.selectFirstOption){let I=n.unref(i)[0];if(g.options){const N=I[g.options];N&&N.length&&(I=N[0])}s.value=I[g.value]}},O=at(e),_=async()=>{var C;try{y.value=!0;const I=await O(),{data:N}=(I==null?void 0:I.data)||{},M=g.label,P=g.value;if(N){const W=((C=I==null?void 0:I.data)==null?void 0:C.data)??[];b.value=W;const $=W.map(L=>({[M]:L.label,[P]:L.value})),{id:z}=e,q=d(z);c(z,{...q,...n.unref(x)}),v(z,!0),D($)}else D([])}catch(I){console.error(I)}finally{y.value=!1}},k=n.computed(()=>{var C,I;return(I=(C=e==null?void 0:e.graphicConfig)==null?void 0:C.controlList)==null?void 0:I.find(N=>N.conditionKey==="parentCode")}),S=n.ref(!1);n.watch(E,C=>{!n.unref(S)&&n.unref(k)&&C[n.unref(k).id]&&(S.value=!0,B())},{deep:!0});const B=()=>{switch(e.dataType){case"indicator":{if(n.unref(k)){if(n.unref(E)[n.unref(k).id]){const{mode:C}=e;C==="multiple"||C==="tags"||C==="combobox"?l.value=[]:l.value="",_()}}else _();break}case"request":h();break}};Le(e,{selectChange:T,refreshData:B});const{setRequest:w}=n.inject(ze,{setRequest:({id:C,sortNum:I,requestFn:N})=>{}});return typeof w=="function"&&w({id:e.id,requestFn:B,sortNum:e.requestSort}),o({refreshData:B}),{style:t,getPopupContainer:a,myValue:s,selectChange:T,options:i,filterOption:m,loading:y,resultValue:l}}}),Ju="",Xu="";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 $i=xe(ye(wd,[["render",Ad],["__scopeId","data-v-e5517626"]])),Xo={...we,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},ea=ve(Xo),Zi=["selectChange","refreshData"],kd={name:"EcanTreeSelect",components:{ATreeSelect:se.TreeSelect},props:{...ea},setup(e){const o=Ce(e),t=n.ref(e.data),a=(u,y)=>{const h=e.dataFieldNames,v=h.label,E=h.value;let p;const b=y[v],x=y[E];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:y,selectFirstOption:h}=e;u?y?r.value=y.split(","):h&&(r.value=[n.unref(t)[0]]):y?r.value=y:h&&(r.value=n.unref(t)[0])},{immediate:!0});const i=n.ref(!1),s=Ve(e),l=async()=>{var u,y;if(e.dataType==="request"){i.value=!0;try{const h=await s();t.value=((y=(u=h==null?void 0:h.data)==null?void 0:u.data)==null?void 0:y.rows)||[];const v=n.unref(t)[0];e.value===""&&v!=null&&(r.value=v[e.dataFieldNames.value])}catch(h){console.error(h)}finally{i.value=!1}}},{getGlobalModel:d,setGlobalModel:c}=n.inject(ke,{getGlobalModel:u=>{},setGlobalModel:(u,y)=>{}});c(e.id,{type:e.type,value:r});const g=Te(e)("selectChange",()=>{const u=e.id,y=d(u);c(u,{...y,RECORD:r})});Le(e,{selectChange:g,refreshData:l});const{setRequest:m}=n.inject(ze,{setRequest:({id:u,sortNum:y,requestFn:h})=>{}});return m({id:e.id,requestFn:l,sortNum:e.reque}),{style:o,treeData:t,filterTreeNode:a,myValue:r,loading:i,selectChange:g}}},t1="",n1="";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 Yi=xe(ye(kd,[["render",Td],["__scopeId","data-v-37236421"]])),ta={...we,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:""},na=ve(ta),Ki=["checkboxChange","click"],Bd=n.defineComponent({name:"EcanRadio",components:{ARadioGroup:se.RadioGroup,ARadioButton:se.RadioButton,ARadio:se.Radio},props:{...na},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=Ve(e),l=async()=>{var A,T;if(e.dataType!=="request")return;const b=await s(),x=((T=(A=b==null?void 0:b.data)==null?void 0:A.data)==null?void 0:T.rows)||[];i(x)},{getGlobalModel:d,setGlobalModel:c}=n.inject(ke,{getGlobalModel:b=>{},setGlobalModel:(b,x)=>{}});c(e.id,{type:e.type,value:r});const f=Te(e),g=f("checkboxChange",()=>{const b=d(e.id);c(e.id,{...b,RECORD:r})}),m=b=>{r.value=b,f("click",()=>{const x=d(e.id);c(e.id,{...x,RECORD:r})})()};n.watch(r,()=>{g()});const u=at(e),y=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)}},h=()=>{switch(e.dataType){case"indicator":y();break;case"request":l();break}},{setRequest:v}=n.inject(ze,{setRequest:({id:b,sortNum:x,requestFn:A})=>{}});typeof v=="function"&&v({id:e.id,requestFn:h,sortNum:e.requestSort});const E=b=>{r.value=b.value},p=n.computed(()=>e.tabFlexDirection==="column"?{display:"flex",height:"30px",lineHeight:"30px"}:{});return o({refreshData:h}),{myOption:a,style:t,myValue:r,radioStyle:p,onClickButton:m,useImagePath:At,tabChange:E}}}),a1="",r1="",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(g=>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 Qi=xe(ye(Bd,[["render",Dd],["__scopeId","data-v-baa84768"]])),oa={...we,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},aa=ve(oa),Ji=["click","refreshData","resetRecord"],Gt=async e=>{var d;const o=await ct.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)},ra={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)"},ia=ve(ra),Xi=["showModal","hideModal"];function el(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 g in t){const m=o.find(u=>u.id===g);if(m){pn(m,"parentId")||(m.parentId="",m.sourceLeft=m.left,m.sourceTop=m.top);for(const u in t[g])if(t[g][u])for(const y of t[g][u]){const h=o.find(v=>v.id===y);h&&(h.parentId=g,h.sourceLeft=h.left,h.sourceTop=h.top,h.left=parseFloat(h.left)-parseFloat(m.sourceLeft||m.left)+"px",h.top=parseFloat(h.top)-parseFloat(m.sourceTop||m.top)+"px")}}}const s=Array.from(new Set(o.filter(g=>(!pn(g,"parentId")||g.parentId==="")&&g.combinationId).map(g=>g.combinationId))),l=[];for(const g of s){const m=a[g];if(m!=null&&m.length){const u=o.filter(y=>m.includes(y.id));if(u!=null&&u.length){const y=Id(u);if(y){l.push({...y,id:g,keyName:g,parentId:"",type:"ecanBorder",borderRadius:"",borderWidth:null,sourceLeft:y.left,sourceTop:y.top});for(const h of u)h&&(h.parentId=g,h.sourceLeft=h.left,h.sourceTop=h.top,h.left=parseFloat(h.left)-parseFloat(y.left)+"px",h.top=parseFloat(h.top)-parseFloat(y.top)+"px")}}}}l!=null&&l.length&&o.unshift(...l);const d=["ecanPie","ecanLine","ecanBar","ecanScatter","ecanComboGraph","ecanCustomGraph","ecanRadar","ecanMap"],c=o.filter(g=>d.includes(g.type)&&!pn(g,"parentId")),f=[];for(const g of c)if(g){const m=g.id+"_vir";f.push({id:m,keyName:g.keyName+"_vir",parentId:"",type:"ecanBorder",borderRadius:"",borderWidth:null,width:g.width,height:g.height,left:g.left,top:g.top,sourceLeft:g.left,sourceTop:g.top}),g.parentId=m,g.sourceLeft=g.left,g.sourceTop=g.top,g.left=0,g.top=0}f!=null&&f.length&&o.unshift(...f);for(const g of o){const m=document.body.clientWidth;if(g.parentId===""&&["ecanBorder","ecanTabs"].includes(g.type))g.sourceWidth=parseFloat(g.width),g.height=(m/(g.sourceWidth/parseFloat(g.height))).toFixed(2)+"px",g.width="100%",g.position="relative",g.top="auto",g.left="auto";else{const u=o.find(y=>y.id===g.parentId);if((u==null?void 0:u.parentId)===""){const y=u.sourceWidth||parseFloat(u.width),h=m/y;g.scale=h,g.top=parseFloat(g.top)*h-parseFloat(g.height)*(1-h)/2+"px",g.left=parseFloat(g.left)*h-parseFloat(g.width)*(1-h)/2+"px"}}g.type==="ecanModal"&&(g.parentId="",g.fullModal=!0)}return Rd(o)}return o}function Rd(e){const t=e.filter(a=>a.parentId==="");if(t!=null&&t.length){const a=He.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 Id(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 _d=n.defineComponent({name:"Render",props:{component:{type:Object,default:()=>{}}},setup(e,{emit:o}){o("ready",e.component.id)}});function Od(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 Ld=xe(ye(_d,[["render",Od]])),la=n.defineComponent({name:"EcanModal",components:{AModal:se.Modal,CloseOutlined:Q0,Render:Ld},props:{...ia},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(ke,{clearInteractiveData:()=>{},interactiveData:null}),d=()=>document.getElementById("ProviderConfig")||document.body,c=n.computed(()=>{const Y=e.position;return{verticalAlign:{default:"",top:"top",center:"middle",bottom:"bottom"}[Y]}}),f=e.fullModal?"1920px":e.width,g=e.fullModal?"1080px":e.height,m=e.originalWidth,u=e.originalHeight,y=n.ref("80%"),h=n.ref(0),v=n.ref(),E=n.ref(0),p=n.ref({}),b=Ce(e),x=n.ref({}),A=n.ref(!1),T=n.ref();let D;const O=()=>{v.value=parseFloat(f)/parseFloat(m);const Y=parseFloat(g)/parseFloat(u),Q=document.body.offsetWidth,J=document.body.offsetHeight;h.value=Q*n.unref(v),E.value=J*Y,y.value=`${n.unref(v)*100}%`,p.value={width:`${n.unref(h)}px`,height:`${n.unref(E)}px`,border:`${e.borderWidth} solid ${e.borderColor}`,borderRadius:e.borderRadius+"px"},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(h)/parseFloat(f)},${n.unref(E)/parseFloat(g)})`,width:f,height:g}},_=He.debounce(()=>{O()},100),k=()=>{const Y=window.MutationObserver;D=new Y(_),D.observe(document.body,{attributes:!0,attributeFilter:["style"],attributeOldValue:!0})},S=()=>{D&&(D.disconnect(),D.takeRecords(),D=null)},B=n.ref(!1),{touchRequest:w}=n.inject(ze,{touchRequest:()=>{}}),C=n.ref(""),I=()=>{var J;const{title:Y}=e,Q=(J=n.unref(l))==null?void 0:J.RECORD;return Q?De(Y,{textData:Q},{useNewline:!1,useSpace:!1}):Y},N=Te(e),M=()=>{a&&(document.documentElement.style.overflow="hidden"),C.value=I(),B.value=!0},P=N("hideModal",()=>{o("close"),a&&(document.documentElement.style.overflow="hidden auto",t.value=[]),B.value=!1}),W=()=>{P()},$=()=>{P(),s()},{setModalModel:z,pushUseModalIds:q,popUseModalIds:L}=n.inject(ir,{pushUseModalIds:Y=>{},popUseModalIds:()=>{},setModalModel:(Y,Q)=>{}}),R=n.computed(()=>{if(a){const Y=He.cloneDeep(e.componentList),Q=r(),J=i();return el({componentList:Y,containerMap:Q,combinationMap:J})}else return e.componentList}),F=()=>{const Y=e.id;let Q=[];const J=e.componentList;Array.isArray(J)&&(Q=J.map(X=>X.id),z(Y,[...new Set(Q)]))};n.watch(()=>B.value,async Y=>{Y?(A.value=!1,q(e.id),F(),await n.nextTick(()=>{O(),window.addEventListener("resize",_),k(),A.value=!0}),w()):(L(),window.removeEventListener("resize",_),S())});const j=n.computed(()=>n.unref(v)>=1),ee=n.computed(()=>e.fullModal),G=n.computed(()=>{let Y="ecan-modal";return n.unref(j)&&(Y+=" ecan-full-width-modal"),n.unref(ee)&&(Y+=" ecan-full-modal"),Y});return Le(e,{showModal:M,hideModal:P}),{modalRef:T,containStyle:p,contentStyle:x,getContainer:d,modalStyle:c,modalWith:y,isFullModal:ee,style:b,visible:B,showModal:M,onOk:W,onCancel:$,isFullWidth:j,wrapClassName:G,ready:A,usedComponentList:R,isMobile:a,readyIds:t,hasOwn:pn,onComponentReady:Y=>{t.value.push(Y)},formatTitle:C}}}),tl=()=>{n.useCssVars(e=>({"7cf239f4":e.borderRadius,"2c786eba":e.boxShadow}))},nl=la.setup;la.setup=nl?(e,o)=>(tl(),nl(e,o)):tl;const s1="",c1="";function Nd(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=xe(ye(la,[["render",Nd],["__scopeId","data-v-752bde14"]]));Ze.use([Et.CanvasRenderer,gt.PieChart,be.TitleComponent,be.ToolboxComponent,be.TooltipComponent,be.LegendComponent]);const Fd=n.defineComponent({name:"EcanPie",props:{...aa},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:S=[]}=n.unref(r)[0]||{};if(Array.isArray(e.colors)){const B=e.isUseLabelColors,w=e.colors;S=S.map((C,I)=>({label:B?{color:w[I]}:{},...C}))}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 B;t.value=!0,(B=i.value)==null||B.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(){se.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:B=>{const{marker:w,seriesName:C,name:I,value:N,percent:M,data:P}=B||{};return De(e.tooltipFormatter,{textData:{marker:w,name:I,value:N,percent:M,a:C,b:I,c:N,d:M,...P}},{useNewline:!0,useSpace:!0})},textStyle:{color:e.tooltipTextStyleColor},position:e.tooltipPosition||void 0},legend:n.unref(s),color:e.colors,series:[{data:S,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:gc(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 S=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:S+8,rich:{text:{width:e.legendTextWidth,color:e.legendTextStyleColor,fontSize:S}}},itemHeight:e.legendItemHeight,itemWidth:e.legendItemWidth,itemGap:e.legendItemGap,formatter:B=>{const{data:w}=r.value[0]||{};let C=0,I,N="0%";if(w)for(const M of w)M.name===B&&(I=+M.value),C+=+M.value;return C&&(N=`${(I/C*100).toFixed(2)}%`),en(e.legendFormatter,{name:B,value:I,percent:N})}}},c=()=>{t.value=!1},{getGlobalModel:f,setGlobalModel:g}=n.inject(ke,{getGlobalModel:S=>{},setGlobalModel:(S,B)=>{}}),{pageMode:m}=n.inject(Me,{pageMode:"normal"}),u=(S=[],B)=>{const{dataset:w}=Ft(S,B);r.value=w},y=(S=[],B)=>{const w=Ft(S,B);r.value=w.dataset};n.watch(()=>e.data,S=>{(e.dataType==="static"||n.unref(m)==="design")&&u(S)},{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 h=n.ref(!1),v=Ve(e),E=async()=>{var S,B;if(e.dataType==="request")try{h.value=!0;const w=await v();u((B=(S=w==null?void 0:w.data)==null?void 0:S.data)==null?void 0:B.rows,e.valueTypeDataFieldNames)}catch(w){console.error(w)}finally{h.value=!1}},p=Te(e);g(e.id,{type:e.type,RECORD:""});const b=p("click",S=>{const B=f(e.id);g(e.id,{...B,type:e.type,RECORD:S==null?void 0:S.data})}),x=at(e),A=async()=>{var S;try{h.value=!0;const B=await x(),{data:w}=(B==null?void 0:B.data)||{};if(w){const{columns:C=[],rows:I=[]}=((S=B==null?void 0:B.data)==null?void 0:S.data)??{};let N=[];if(C.length>0){const M=C[0],P=C[1];N=I.map(W=>({name:W[M],value:isNaN(W[P])?0:W[P]||0}))}y(N)}}catch(B){console.error(B)}finally{h.value=!1}},{loadedData:T}=n.inject(bt,{loadedData:{}}),D=n.ref(!1);n.watch(T,S=>{if(e.dataType==="indicator"){const B=Xt(e.graphicConfig);B!=null&&B.length&&(!n.unref(D)&&nt(e.graphicConfig,S)?(D.value=!0,O()):nt(e.graphicConfig,S)||(D.value=!1))}},{deep:!0});const O=()=>{switch(e.dataType){case"indicator":nt(e.graphicConfig,n.unref(T))&&A();break;case"request":E();break}};Le(e,{resetRecord:()=>{const S=e.id,B=f(S);g(S,{...B,RECORD:""})},refreshData:O,click:b}),o({refreshData:O});const{setRequest:k}=n.inject(ze,{setRequest:S=>{}});return typeof k=="function"&&k({id:e.id,requestFn:O,sortNum:e.requestSort}),{option:l,style:a,click:b,onClose:c,loading:h,ecanModal:i}}}),f1="";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,{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 ol=xe(ye(Fd,[["render",Md]])),sa={...we,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},ca=ve(sa),al=["click","refreshData","resetRecord"];Ze.use([Et.CanvasRenderer,gt.LineChart,be.ToolboxComponent,be.TitleComponent,be.LegendComponent,be.MarkLineComponent]);const zd=n.defineComponent({name:"EcanLine",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.ref(),d=n.computed(()=>a.value?Ue:12),c=n.ref({});let f;const g=n.ref([]),m=n.computed(()=>{const I=e.xAxisLabelFormatter,N=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 M;a.value=!0,(M=l.value)==null||M.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(){se.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:M=>{var z;const P=M.length;let W="",$=e.tooltipFormatter;f=(z=M[0])==null?void 0:z.data,$===""&&($="{marker} {a} {c}");for(let q=0;q<P;q++){const{marker:L,seriesName:R,name:F,value:j,data:ee}=M[q]||{};if(q===0){let G=F;typeof F=="string"&&F[0]==="0"&&!isNaN(+F)&&(G=(+F).toString()),W+=`${ot(I,G)}<br/>`}W+=De($,{textData:{marker:L,name:F,value:j,a:R,b:F,c:j||0,...ee}},{useNewline:!0,useSpace:!0}),W+="<br/>"}return W},position:e.tooltipPosition||void 0},xAxis:{type:"category",boundaryGap:e.isBoundaryGap,data:n.unref(s).map(M=>{let P={};return M&&typeof M=="object"?P={...M}:P={value:M},P}),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(M){return typeof M=="string"&&M[0]==="0"&&!isNaN(+M)&&(M=(+M).toString()),ot(I,M)}},axisLine:{show:e.xAxisLineShow,lineStyle:{color:e.xAxisLineStyleColor}},axisTick:{show:e.xAxisTickShow}},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(M){return ot(N,M)}},axisLine:{show:e.yAxisLineAlwaysDisplay,lineStyle:{color:e.yAxisLineStyleColor}}},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(g).map(M=>({name:M.name,icon:e.legendType})),formatter:M=>en(e.legendFormatter,{name:M})},series:n.unref(i)}}),u=()=>{a.value=!1},{getGlobalModel:y,setGlobalModel:h}=n.inject(ke,{getGlobalModel:I=>{},setGlobalModel:(I,N)=>{}}),{pageMode:v}=n.inject(Me,{pageMode:"normal"}),E=n.computed(()=>e.isShowMarkLine?{markLine:{data:[{type:e.markLineType}]}}:{}),p=(I=[],N=!1)=>{let M;if(e.dataFieldConfigType==="key"){const z=N?e.keyTypeDataFieldNames:null;M=wt(I,z)}else if(e.dataFieldConfigType==="value"){const z=N?e.valueTypeDataFieldNames:null;M=Ft(I,z)}s.value=M.dimensions,g.value=M.dataset;const P=M.dataset,W=[],$=P.length;for(let z=0;z<$;z++){const q={};e.shadowColor&&(q.shadowColor=e.shadowColor,q.shadowBlur=e.shadowBlur,q.shadowOffsetY=e.shadowOffsetY,q.shadowOffsetX=e.shadowOffsetX),W.push({type:"line",...P[z],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[z]},{offset:1,color:e.areaGradientColor||"transparent"}],global:!1}:e.colors[z],opacity:e.areaStyleOpacity},lineStyle:{width:e.lineStyleWidth,...q},...n.unref(E)})}i.value=W},b=(I=[],N,M=!1)=>{const W=wt(I,M?N:null,!0);s.value=W.dimensions,g.value=W.dataset;const $=W.dataset,z=[],q=$.length;for(let L=0;L<q;L++){const R={};e.shadowColor&&(R.shadowColor=e.shadowColor,R.shadowBlur=e.shadowBlur,R.shadowOffsetY=e.shadowOffsetY,R.shadowOffsetX=e.shadowOffsetX),z.push({type:"line",...$[L],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[L]},{offset:1,color:e.areaGradientColor||"transparent"}],global:!1}:e.colors[L],opacity:e.areaStyleOpacity},lineStyle:{width:e.lineStyleWidth,...R},...n.unref(E)})}i.value=z};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],([I])=>{(e.dataType==="static"||n.unref(v)==="design")&&p(I)},{immediate:!0,deep:!0});const x=n.ref(!1),A=Ve(e),T=async()=>{var I,N;if(e.dataType==="request")try{x.value=!0;const M=await A();p((N=(I=M==null?void 0:M.data)==null?void 0:I.data)==null?void 0:N.rows,!0)}catch(M){console.error(M)}finally{x.value=!1}},D=Te(e);h(e.id,{type:e.type,RECORD:""});const O=D("click",I=>{const N=y(e.id);h(e.id,{...N,type:e.type,RECORD:e.tooltipShow?f:I.data})}),_=I=>{t.value.chart.containPixel("grid",[I.offsetX,I.offsetY])&&O()};e.tooltipShow?c.value["zr:click"]=_:c.value.click=O;const k=at(e),S=async()=>{var I;try{x.value=!0;const N=await k(),{columns:M=[],rows:P=[]}=((I=N==null?void 0:N.data)==null?void 0:I.data)??{};let W;M.length>0&&(W={name:M[0],types:M.slice(1).map($=>({label:$,value:$}))}),b(P,W,!0)}catch(N){console.error(N)}finally{x.value=!1}},B=()=>{switch(e.dataType){case"indicator":S();break;case"request":T();break}};Le(e,{refreshData:B,resetRecord:()=>{const I=e.id,N=y(I);h(I,{...N,RECORD:""})},click:O});const{setRequest:C}=n.inject(ze,{setRequest:I=>{}});return typeof C=="function"&&C({id:e.id,requestFn:B,sortNum:e.requestSort}),o({refreshData:B}),{option:m,style:r,click:O,loading:x,onClose:u,ecanModal:l,eventObj:c,echartRef:t}}}),h1="";function Pd(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 rl=xe(ye(zd,[["render",Pd]])),da={...we,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},fa=ve(da),il=["refreshData","click","resetRecord"];Ze.use([Et.CanvasRenderer,gt.BarChart,be.TitleComponent,be.LegendComponent,be.DatasetComponent,be.ToolboxComponent,be.MarkLineComponent]);const qd=n.defineComponent({name:"EcanBar",props:{...fa},components:{Spin:Nt,Echarts:xt,EcanModal:kt,AModal:se.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 g;const m=n.computed(()=>a.value?Ue:12),u=n.computed(()=>{const{gradientShow:L,gradientColors:R,gradientOffset:F,barBorderRadius:j}=e,ee=n.unref(d),G=ee.length,ae=[];for(let Y=0;Y<G;Y++){const Q={...ee[Y],type:"bar",barWidth:e.barWidth,showBackground:e.showBarBackground};if(e.isStack&&(Q.stack="stack"),Q.label={show:e.labelShow,fontSize:e.labelFontSize,position:e.labelPosition,color:e.labelColor,width:e.labelWidth,overflow:e.labelOverflow,formatter:J=>{let X="",re=e.labelFormatter;re===""&&(re="{c}");const{seriesName:de,name:pe,value:Be,data:Ee}=J||{};return X+=De(re,{textData:{name:pe,value:Be,a:de,b:pe,c:Be||0,...Ee}},{useNewline:!0,useSpace:!0}),X}},Q.itemStyle={},L&&(Q.itemStyle={color:{x:e.isUseHorizontalAxis?1:0,y:0,x2:0,y2:e.isUseHorizontalAxis?0:1,colorStops:[{offset:0,color:e.colors[Y]},{offset:F,color:R[Y]},{offset:1,color:R[Y]}]}}),j){const J=j.split(",");if(J!=null&&J.length){const X=[];for(const re of J){const de=parseFloat(re);isNaN(de)||X.push(de)}Q.itemStyle.borderRadius=X}}e.isShowMarkLine&&(Q.markLine={data:[{type:e.markLineType}]}),ae.push(Q)}return ae}),y=n.ref([]),h=n.ref(!1),v=n.computed(()=>{const L=e.yAxisLabelFormatter,R=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 F=t.value.chart.getOption(),{xAxis:j}=F||{};j&&j.length&&(s.value=j[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 F;a.value=!0,(F=c.value)==null||F.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(){se.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:F=>{var ae;const j=F.length;let ee="",G=e.tooltipFormatter;g=(ae=F[0])==null?void 0:ae.data,G===""&&(G="{marker} {a} {c}");for(let Y=0;Y<j;Y++){const{marker:Q,seriesName:J,name:X,value:re,data:de}=F[Y]||{};if(Y===0){let pe=X;typeof X=="string"&&X[0]==="0"&&!isNaN(+X)&&(pe=(+X).toString()),ee+=`${ot(R,pe)}<br/>`}ee+=De(G,{textData:{marker:Q,name:X,value:re,a:J,b:X,c:re||0,...de}},{useNewline:!0,useSpace:!0}),ee+="<br/>"}return ee},textStyle:{color:e.tooltipTextStyleColor,fontSize:m.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((F,j)=>({name:F.name,itemStyle:{color:e.colors[j]},icon:e.legendType})),formatter:F=>en(e.legendFormatter,{name:F})},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(F){return typeof F=="string"&&F[0]==="0"&&!isNaN(+F)&&(F=(+F).toString()),ot(R,F)}},axisLine:{show:e.xAxisLineShow,lineStyle:{color:e.xAxisLineStyleColor}},axisTick:{show:e.xAxisTickShow}},yAxis:{type:e.isUseHorizontalAxis?"category":"value",data:e.isUseHorizontalAxis?n.unref(y):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(F){return ot(L,F)}},axisLine:{show:e.yAxisLineAlwaysDisplay,lineStyle:{color:e.yAxisLineStyleColor}}},series:n.unref(u)}}),{pageMode:E}=n.inject(Me,{pageMode:"normal"}),p=()=>{a.value=!1},b=(L=[],R=!1)=>{let F={};if(e.dataFieldConfigType==="key"){const j=R?e.keyTypeDataFieldNames:null;F=wt(L,j)}else if(e.dataFieldConfigType==="value"){const j=R?e.valueTypeDataFieldNames:null;F=Ft(L,j)}d.value=F.dataset,y.value=F.dimensions},x=(L=[],R,F=!1)=>{const ee=wt(L,F?R:null,!0);d.value=ee.dataset,y.value=ee.dimensions},A=n.computed(()=>n.unref(y).map(L=>{let R={};return L&&typeof L=="object"?R={...L}:R={value:L},R}));n.watch(()=>[e.data,e.labelFormatter,e.legendFormatter,e.legendWidth,e.legendHeight,e.legendTextWidth,e.legendScroll],([L])=>{(e.dataType==="static"||n.unref(E)==="design")&&b(L)},{immediate:!0,deep:!0});const T=Ve(e),D=async()=>{var L,R;try{h.value=!0;const F=await T();b((R=(L=F==null?void 0:F.data)==null?void 0:L.data)==null?void 0:R.rows,!0)}catch(F){console.error(F)}finally{h.value=!1}},O=at(e),_=async()=>{var L;try{h.value=!0;const R=await O(),{columns:F=[],rows:j=[]}=((L=R==null?void 0:R.data)==null?void 0:L.data)??{};let ee;F.length>0&&(ee={name:F[0],types:F.slice(1).map(G=>({label:G,value:G}))}),x(j,ee,!0)}catch(R){console.error(R)}finally{h.value=!1}},{loadedData:k}=n.inject(bt,{loadedData:{}}),S=n.ref(!1);n.watch(k,L=>{if(e.dataType==="indicator"){const R=Xt(e.graphicConfig);R!=null&&R.length&&(!n.unref(S)&&nt(e.graphicConfig,L)?(S.value=!0,B()):nt(e.graphicConfig,L)||(S.value=!1))}},{deep:!0});const B=()=>{switch(e.dataType){case"indicator":nt(e.graphicConfig,n.unref(k))&&_();break;case"request":D();break}},w=(L,R)=>!!n.unref(s)[R.value].value.includes(L),C=async()=>{r.value=!1;const L=t.value.chart.getOption();for(let R=0;R<7;R++)await I(L,R)},I=(L,R)=>new Promise(F=>{setTimeout(()=>{const{series:j,color:ee,xAxis:G}=L,ae=t.value.chart,{splitArea:Y={}}=G[0]||{};j.forEach((Q,J)=>{const X=Q.data;let re="";R%2?re=ee[J]+"a8":re=ee[J],X[i.value].itemStyle={color:re}}),R%2?(Y.show=!0,Y.areaStyle.color=n.unref(s).map((Q,J)=>J===i.value?"#ff003b26":"")):Y.show=!1,ae.setOption({series:j,xAxis:G}),F()},200)});o({refreshData:B});const N=Te(e),{getGlobalModel:M,setGlobalModel:P}=n.inject(ke,{getGlobalModel:L=>{},setGlobalModel:(L,R)=>{}});P(e.id,{type:e.type,RECORD:""});const W=N("click",L=>{const R=M(e.id);P(e.id,{...R,type:e.type,RECORD:e.tooltipShow?g:L.data})}),{setRequest:$}=n.inject(ze,{setRequest:L=>{}});typeof $=="function"&&$({id:e.id,requestFn:B,sortNum:e.requestSort});const z=()=>{const L=e.id,R=M(L);P(L,{...R,RECORD:""})},q=L=>{t.value.chart.containPixel("grid",[L.offsetX,L.offsetY])&&W()};return e.tooltipShow?f.value["zr:click"]=q:f.value.click=W,Le(e,{refreshData:B,click:W,resetRecord:z}),{option:v,style:l,refreshData:B,click:W,loading:h,onClose:p,ecanModal:c,echartRef:t,handleLocationOk:C,onFilterOption:w,locationVisible:r,locationValue:i,locationNames:s,eventObj:f}}}),m1="",y1="",Hd=e=>(n.pushScopeId("data-v-d9fb5cfd"),e=e(),n.popScopeId(),e),Vd={class:"location-wrap"},jd=Hd(()=>n.createElementVNode("div",{class:"location-text"},"选择分类:",-1));function Wd(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"),g=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(g,{visible:e.locationVisible,"onUpdate:visible":o[1]||(o[1]=m=>e.locationVisible=m),title:"快速定位",onOk:e.handleLocationOk},{default:n.withCtx(()=>[n.createElementVNode("div",Vd,[jd,n.createVNode(f,{value:e.locationValue,"onUpdate:value":o[0]||(o[0]=m=>e.locationValue=m),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,(m,u)=>(n.openBlock(),n.createBlock(c,{key:u,value:u},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(m.value),1)]),_:2},1032,["value"]))),128))]),_:1},8,["value","filter-option"])])]),_:1},8,["visible","onOk"])],4)}const ll=xe(ye(qd,[["render",Wd],["__scopeId","data-v-d9fb5cfd"]])),ua={...we,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"},ha=ve(ua),sl=["click","refreshData","resetRecord"];Ze.use([Et.CanvasRenderer,gt.ScatterChart,be.ToolboxComponent,be.TitleComponent,be.TooltipComponent,be.LegendComponent,be.MarkLineComponent]);const Ud=n.defineComponent({name:"EcanScatter",props:{...ha},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,T=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(){se.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()),ot(A,D)}},axisLine:{lineStyle:{color:e.xAxisLineStyleColor}},axisTick:{show:e.xAxisTickShow}},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 ot(T,D)}},axisLine:{show:e.yAxisLineAlwaysDisplay,lineStyle:{color:e.yAxisLineStyleColor}}},tooltip:{show:e.tooltipShow,trigger:e.tooltipTrigger,formatter(D){var w;const{marker:O,seriesName:_}=D,k=((w=D==null?void 0:D.data)==null?void 0:w.record)??{},{name:S,value:B}=k;return De(e.tooltipFormatter,{textData:{marker:O,seriesName:_,a:_,b:S,c:B,...k}})},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(ke,{getGlobalModel:A=>{},setGlobalModel:(A,T)=>{}}),{pageMode:f}=n.inject(Me,{pageMode:"normal"}),g=(A=[],T)=>{const{name:D="name",value:O="value"}=T||{};a.value=A.map(_=>({value:[_[D],_[O]],record:_}))};n.watch(()=>e.data,A=>{(e.dataType==="static"||n.unref(f)==="design")&&g(A)},{immediate:!0,deep:!0});const m=n.ref(!1),u=Ve(e),y=async()=>{var A,T;if(e.dataType==="request"){m.value=!0;try{const D=await u();g((T=(A=D==null?void 0:D.data)==null?void 0:A.data)==null?void 0:T.rows,e.dataFieldNames)}catch(D){console.error(D)}finally{m.value=!1}}},h=()=>{o.value=!1},v=Te(e);c(e.id,{type:e.type,RECORD:""});const E=v("click",A=>{const T=e.id,D=d(T);c(T,{...D,type:e.type,RECORD:A==null?void 0:A.data})});Le(e,{refreshData:()=>{y()},click:E,resetRecord:()=>{const A=e.id,T=d(A);c(A,{...T,RECORD:""})}});const{setRequest:x}=n.inject(ze,{setRequest:A=>{}});return typeof x=="function"&&x({id:e.id,requestFn:y,sortNum:e.requestSort}),{option:l,style:t,click:E,loading:m,onClose:h,ecanModal:r}}}),p1="";function Gd(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 cl=xe(ye(Ud,[["render",Gd]])),ga={...we,id:"",name:"自定义图表",keyName:"自定义图表",type:"ecanCustomGraph",width:"400px",height:"400px",option:{},optionCode:"",graphicType:"ecanCustomGraph"},ma=ve(ga),$d=n.defineComponent({name:"EcanCustomGraph",props:{...ma},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:jl}}});function Zd(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 dl=xe(ye($d,[["render",Zd]])),ya={...we,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,yAxisSplitLineShow:!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,yAxisSplitLineType:"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},xa=ve(ya),fl=["refreshData","click","resetRecord"];Ze.use([Et.CanvasRenderer,gt.BarChart,gt.LineChart,be.TitleComponent,be.LegendComponent,be.DatasetComponent,be.ToolboxComponent,be.MarkLineComponent]);const Yd=n.defineComponent({name:"EcanComboGraph",props:{...xa},components:{Spin:Nt,Echarts:xt,EcanModal:kt,AModal:se.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([]),g=n.ref([]),m=n.ref(),u=n.ref([]),y=n.computed(()=>a.value?Ue:12),h=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 R=t.value.chart.getOption(),{xAxis:F}=R||{};F&&F.length&&(s.value=F[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 R;a.value=!0,(R=m.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(){se.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((R,F)=>({name:R.name,itemStyle:{color:e.colors[F]},icon:e.legendType})),formatter:R=>en(e.legendFormatter,{name:R})},tooltip:{trigger:"axis",show:e.tooltipShow,formatter:R=>{var ae;const F=R.length;let j="",ee=e.tooltipFormatter;d=(ae=R[0])==null?void 0:ae.data,ee===""&&(ee="{marker} {a} {c}");const G=e.seriesTypes;for(let Y=0;Y<F;Y++){const Q=G[Y],{tooltipFormatter:J}=Q||{},{marker:X,seriesName:re,name:de,value:pe,data:Be}=R[Y]||{};if(Y===0){let Ee=de;typeof de=="string"&&de[0]==="0"&&!isNaN(+de)&&(Ee=(+de).toString()),j+=`${ot(e.xAxisLabelFormatter,Ee)}<br/>`}j+=De(J||ee,{textData:{marker:X,name:de,value:pe,seriesName:re,a:re,b:de,c:pe||0,...Be}},{useNewline:!0,useSpace:!0}),j+="<br/>"}return j},textStyle:{color:e.tooltipTextStyleColor,fontSize:y.value},position:e.tooltipPosition||void 0},xAxis:{minInterval:e.xAxisMinInterval,type:"category",data:n.unref(g).map(R=>{let F={};return R&&typeof R=="object"?F={...R}:F={value:R},F}),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(R){return typeof R=="string"&&R[0]==="0"&&!isNaN(+R)&&(R=(+R).toString()),ot(e.xAxisLabelFormatter,R)}},axisLine:{show:e.xAxisLineShow,lineStyle:{color:e.xAxisLineStyleColor}},axisTick:{show:e.xAxisTickShow}},yAxis:n.unref(A),series:n.unref(f)})),{pageMode:v}=n.inject(Me,{pageMode:"normal"}),E=()=>{a.value=!1},p=(R=[],F=!1)=>{let j;if(e.dataFieldConfigType==="key"){const G=F?e.keyTypeDataFieldNames:null;j=wt(R,G)}else if(e.dataFieldConfigType==="value"){const G=F?e.valueTypeDataFieldNames:null;j=Ft(R,G)}g.value=j.dimensions;const ee=j.dataset;u.value=j.dataset,f.value=x(ee)},b=(R=[],F,j=!1)=>{const G=wt(R,j?F:null,!0);g.value=G.dimensions;const ae=G.dataset;u.value=G.dataset,f.value=x(ae)};function x(R){const F=[],j=R.length,ee=e.seriesTypes;for(let G=0;G<j;G++){const ae=ee[G],{type:Y,axisIndex:Q}=ae||{};let J={type:Y,yAxisIndex:Q,...R[G]};if(Y==="line"){const X={};e.shadowColor&&(X.shadowColor=e.shadowColor,X.shadowBlur=e.shadowBlur,X.shadowOffsetY=e.shadowOffsetY,X.shadowOffsetX=e.shadowOffsetX),J={...J,symbolSize:e.symbolSize,smooth:e.smooth,itemStyle:{color:e.colors[G]},areaStyle:{color:e.areaGradientShow?{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:e.colors[G]},{offset:1,color:e.areaGradientColor||"transparent"}],global:!1}:e.colors[G],opacity:e.areaStyleOpacity},lineStyle:{width:e.lineStyleWidth,...X}}}if(Y==="bar"){const{gradientShow:X,gradientColors:re,gradientOffset:de}=e,pe={};if(e.barBorderRadius){const Be=e.barBorderRadius.split(",");if(Be!=null&&Be.length){const Ee=[];for(const je of Be){const Ne=parseFloat(je);isNaN(Ne)||Ee.push(Ne)}pe.borderRadius=Ee}}X&&(pe.color={x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:e.colors[G]},{offset:de,color:re[G]},{offset:1,color:re[G]}]}),J={...J,barWidth:e.barWidth,itemStyle:pe}}e.isShowMarkLine&&(J.markLine={data:[{type:e.markLineType}]}),F.push(J)}return F}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],([R])=>{(e.dataType==="static"||n.unref(v)==="design")&&p(R)},{immediate:!0,deep:!0});const A=n.computed(()=>{const R=e.yAxis;return R==null?void 0:R.map(F=>({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(j){return ot(F.axisLabelFormatter,j)}},axisLine:{show:e.yAxisLineAlwaysDisplay,lineStyle:{color:e.yAxisLineStyleColor}}}))}),T=n.ref(!1),D=Ve(e),O=async()=>{var R,F;if(e.dataType==="request")try{T.value=!0;const j=await D();p((F=(R=j==null?void 0:j.data)==null?void 0:R.data)==null?void 0:F.rows,!0)}catch(j){console.error(j)}finally{T.value=!1}},_=at(e),k=async()=>{var R;try{T.value=!0;const F=await _(),{columns:j=[],rows:ee=[]}=((R=F==null?void 0:F.data)==null?void 0:R.data)??{};let G;j.length>0&&(G={name:j[0],types:j.slice(1).map(ae=>({label:ae,value:ae}))}),b(ee,G,!0)}catch(F){console.error(F)}finally{T.value=!1}},{loadedData:S}=n.inject(bt,{loadedData:{}}),B=n.ref(!1);n.watch(S,R=>{if(e.dataType==="indicator"){const F=Xt(e.graphicConfig);F!=null&&F.length&&(!n.unref(B)&&nt(e.graphicConfig,R)?(B.value=!0,w()):nt(e.graphicConfig,R)||(B.value=!1))}},{deep:!0});const w=()=>{switch(e.dataType){case"indicator":nt(e.graphicConfig,n.unref(S))&&k();break;case"request":O();break}},C=(R,F)=>!!n.unref(s)[F.value].value.includes(R),I=async()=>{r.value=!1;const R=t.value.chart.getOption();for(let F=0;F<7;F++)await N(R,F)},N=(R,F)=>new Promise(j=>{setTimeout(()=>{const{series:ee,color:G,xAxis:ae}=R,Y=t.value.chart,{splitArea:Q={}}=ae[0]||{};ee.forEach((J,X)=>{const re=J.data;let de="";F%2?de=G[X]+"a8":de=G[X],re[i.value].itemStyle={color:de}}),F%2?(Q.show=!0,Q.areaStyle.color=n.unref(s).map((J,X)=>X===i.value?"#ff003b26":"")):Q.show=!1,Y.setOption({series:ee,xAxis:ae}),j()},200)});o({refreshData:w});const M=Te(e),{getGlobalModel:P,setGlobalModel:W}=n.inject(ke,{getGlobalModel:R=>{},setGlobalModel:(R,F)=>{}});W(e.id,{type:e.type,RECORD:""});const $=M("click",R=>{const F=P(e.id);W(e.id,{...F,type:e.type,RECORD:e.tooltipShow?d:R==null?void 0:R.data})}),z=R=>{t.value.chart.containPixel("grid",[R.offsetX,R.offsetY])&&$()};e.tooltipShow?l.value["zr:click"]=z:l.value.click=$;const{setRequest:q}=n.inject(ze,{setRequest:R=>{}});return typeof q=="function"&&q({id:e.id,requestFn:w,sortNum:e.requestSort}),Le(e,{resetRecord:()=>{const R=e.id,F=P(R);W(R,{...F,RECORD:""})},refreshData:w,click:$}),{style:c,option:h,click:$,loading:T,onClose:E,ecanModal:m,echartRef:t,handleLocationOk:I,onFilterOption:C,locationVisible:r,locationValue:i,locationNames:s,eventObj:l}}}),S1="",C1="",Kd=e=>(n.pushScopeId("data-v-508d16d3"),e=e(),n.popScopeId(),e),Qd={class:"location-wrap"},Jd=Kd(()=>n.createElementVNode("div",{class:"location-text"},"选择分类:",-1));function Xd(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"),g=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(g,{visible:e.locationVisible,"onUpdate:visible":o[1]||(o[1]=m=>e.locationVisible=m),title:"快速定位",onOk:e.handleLocationOk},{default:n.withCtx(()=>[n.createElementVNode("div",Qd,[Jd,n.createVNode(f,{value:e.locationValue,"onUpdate:value":o[0]||(o[0]=m=>e.locationValue=m),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,(m,u)=>(n.openBlock(),n.createBlock(c,{key:u,value:u},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(m.value),1)]),_:2},1032,["value"]))),128))]),_:1},8,["value","filter-option"])])]),_:1},8,["visible","onOk"])],4)}const ul=xe(ye(Yd,[["render",Xd],["__scopeId","data-v-508d16d3"]])),pa={...we,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",axisNameColor:"",legendFontSize:"12px",graphicConfig:{},graphicType:"ecanRadar",tooltipPosition:"",legendFormatter:"{name}",legendWidth:null,legendHeight:null,legendTextWidth:null,legendScroll:!1},ba=ve(pa),hl=["refreshData","click","resetRecord"];Ze.use([Et.CanvasRenderer,gt.RadarChart,be.ToolboxComponent,be.TitleComponent,be.LegendComponent]);const ef=n.defineComponent({name:"EcanRadar",props:{...ba},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 w=n.unref(d),C=w.length,I=[];for(let N=0;N<C;N++){const{name:M,data:P=[]}=w[N],W=[{name:M,value:P.map(z=>z.value)}],$={type:"radar",name:M,data:W,areaStyle:{color:e.colors[N],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}};I.push($)}return I}),g=n.computed(()=>{var M;const w=[],C=[],I=n.unref(d),N=I.length;for(let P=0;P<N;P++){const{data:W=[]}=I[P];for(let $=0;$<W.length;$++)C.push(W[$].value)}if((M=i.value)!=null&&M.length){const P=C!=null&&C.length?Math.max(...C)*1.2:0;for(const W of i.value)w.push({name:W,max:P})}return w}),m=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 w;a.value=!0,(w=s.value)==null||w.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(){se.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:w=>{let C="",I=e.tooltipFormatter;I===""&&(I="{marker} {a} {c}");for(let N=0;N<n.unref(g).length;N++){const M=n.unref(g)[N],{marker:P,seriesName:W,value:$}=w||{};N===0&&W&&(C+=`${W}<br/>`),C+=De(I,{textData:{marker:P,name:M.name,value:$[N],a:M.name,b:M.name,c:$[N]||0,type:W}},{useNewline:!0,useSpace:!0}),C+="<br/>"}return C},position:e.tooltipPosition||void 0},radar:{indicator:n.unref(g),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(w=>({name:w.name,icon:e.legendType})),formatter:w=>en(e.legendFormatter,{name:w})},series:n.unref(f)})),u=()=>{a.value=!1},{getGlobalModel:y,setGlobalModel:h}=n.inject(ke,{getGlobalModel:w=>{},setGlobalModel:(w,C)=>{}}),{pageMode:v}=n.inject(Me,{pageMode:"normal"}),E=(w=[],C=!1)=>{let I;if(e.dataFieldConfigType==="key"){const N=C?e.keyTypeDataFieldNames:null;I=wt(w,N)}else if(e.dataFieldConfigType==="value"){const N=C?e.valueTypeDataFieldNames:null;I=Ft(w,N)}i.value=I.dimensions,d.value=I.dataset},p=(w=[],C,I=!1)=>{const M=wt(w,I?C:null,!0);i.value=M.dimensions,d.value=M.dataset};n.watch(()=>[e.data,e.areaStyleOpacity,e.legendFontSize,e.legendFormatter,e.legendWidth,e.legendHeight,e.legendTextWidth,e.legendScroll],([w])=>{(e.dataType==="static"||n.unref(v)==="design")&&E(w)},{immediate:!0,deep:!0});const b=n.ref(!1),x=Ve(e),A=async()=>{var w,C;if(e.dataType==="request")try{b.value=!0;const I=await x();E((C=(w=I==null?void 0:I.data)==null?void 0:w.data)==null?void 0:C.rows,!0)}catch(I){console.error(I)}finally{b.value=!1}},T=Te(e);h(e.id,{type:e.type,RECORD:""});const D=w=>{const C=w.event.topTarget.__dimIdx;C!==void 0&&T("click",()=>{var P;const{value:I,name:N}=w.data||{},M=y(e.id);h(e.id,{...M,type:e.type,RECORD:{[n.unref(c)]:((P=n.unref(g)[C])==null?void 0:P.name)||"",[N]:I[C],seriesName:N}})})()},O=at(e),_=async()=>{var w;try{b.value=!0;const C=await O(),{columns:I=[],rows:N=[]}=((w=C==null?void 0:C.data)==null?void 0:w.data)??{};let M;I.length>0&&(c.value=I[0],M={name:I[0],types:I.slice(1).map(P=>({label:P,value:P}))}),p(N,M,!0)}catch(C){console.error(C)}finally{b.value=!1}},k=()=>{switch(e.dataType){case"indicator":_();break;case"request":A();break}};Le(e,{refreshData:k,resetRecord:()=>{const w=e.id,C=y(w);h(w,{...C,RECORD:""})},click:D});const{setRequest:B}=n.inject(ze,{setRequest:w=>{}});return typeof B=="function"&&B({id:e.id,requestFn:k,sortNum:e.requestSort}),o({refreshData:k}),{option:m,style:r,click:D,loading:b,onClose:u,ecanModal:s,echartRef:t}}}),A1="";function tf(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 gl=xe(ye(ef,[["render",tf]])),nf="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHQAAAAcCAMAAACH42siAAAAZlBMVEUAAABBltJCldJCldFEk89BltJCltFBldI/lMBKndtmb9pCltNDldFAkclAldNBldJBltM/lM5AltNCldJBldJBlNJBltVBldJBlNJBlNI/lNNBldJBldNAldJBldJBldJBldNBldIiNK7WAAAAInRSTlMAM4BNGmaz5gQGbiAPCV1WQxUpOCY9EmxQSC2jdoacqZK8uPo7tAAAAZ9JREFUSMe90NmOwjAMheGka0J3SulCy/L+Lzk4I+HYhckEKs7dr1x8kQVM5YJMZ7SLiXVHOw817Z72cSns3BmziY7EnGRGjDqUpKt4pEZQKruvyaJt85YmBUebKLJVNUlpq6oOQ1tVVRzbqu6DwFb1NUlsVd3SNL0UDM0jqkaSqoeQqjKmahtQNUzuC1AtU1sF9KHmnmrtrSK6idqBWqE6GFVxFdGvqDGoJ01Qt7rfTEV0e7V6qSK6VjNPtTaqoOq8Ugnqr7aeav+rAuqrTh+qZw3o1urAVcFVQD3U6ZnaYY9MLZk6G5WhDaDFI9UeUPyE7gCNsAdAD9gxoBJ7ARRPUVwALXdu8/h/s3xmjtwUu0/M0M/UJzBjAei3TUTdpmKmcpkBmOHKBNTPzJi59zYJys3DO2aL78YcmNkLgrrM9m9TucwzmoBy08xlju+bgL42G4c5OcxqZSLqbwqXOVNTGXMWFD0ak6KN1ZKaojYmbribndW9MXELNQEFFUyiNqQlmEQ1JqpgErUifUUTUVEIupx1wzpjvWfdsh4FQX8ANe4nnpsb9NEAAAAASUVORK5CYII=",of="data:image/png;base64,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",af="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHQAAAAcCAMAAACH42siAAAAaVBMVEUAAABElM9BltJCldJCldFBltJBldJCltFNmrNCmNNFldNAldJBldNBldRBldNBldNBldJCoNFBldJBltNBldJBldJAldJAltJBldJBldJBldNAlNFAldJBlNJAldJBldNBldJBldJBldLfIVowAAAAI3RSTlMAGjJNgGbmswMSCScgDTs/ZAVRK0eYj2s3r3AWveHEhXjeXb5rzlgAAAFqSURBVEjH1dbJVsJAEIXhHjJ05tlEooK8/0NKsbDrFjmHiBD0Lvqcf9PfthRM7xvoZMQuLHZaOejGYLtcdEItzI9oaLg5xIHj5hgcG262oXXcrGzJ23Umg5717C7NKBrAjOMDM8YgCI5ghmEPprUTmMZkrBOtdbJgfpZovho0gwzNOkfTam9k5jSGkKlTMOezWT3VLH5qlg8wQzSbO5jJ28l8Z+YLmZMwuz9lupvNXpjlFTMTZv7vzFSatTDtGnNeYdpNzZTMSJhx5f84m8Y3mSEzJzTVolko3J7Qve+a0J3vntDWffdEaMUQQo1vTWjuuyA0UWvUUarqzuqLUMPt1MD3uKTaTdRwvdrdorpFtfZtH6eyK2F3RS23U3uhlr9VB1TdE1V2h7Vr1O4mdbdera6o+Wq1Vqi2rEktFapGoZopVLVCtVCXag19IBPUiiWpBrojE1QNXZAp1/TYbhKdKVwuWotORKfn9wu/DSc/X9T6qgAAAABJRU5ErkJggg==",rf="data:image/png;base64,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",va={...we,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"},Sa=ve(va),ml=["click"],lf=n.defineComponent({name:"EcanBorder",props:{...Sa},setup(e){const o=Ce(e,["background"]),t=n.computed(()=>{const{isTransparent:y,gradientShow:h,gradientColor:v,gradientOffset:E,gradientAngle:p,backgroundColor:b}=e;if(h){let x=v;return y&&(x="transparent"),x?{background:`linear-gradient(${p}, ${b}, ${x} ${E*100}%)`}:{}}else return{}}),a=n.computed(()=>{const{events:y}=e;let h={};return y!=null&&y.length&&y.find(E=>E.emit==="showModal")&&(h={cursor:"pointer"}),h}),{theme:r}=n.inject(Me,{theme:"light"}),i=n.computed(()=>{let y="";switch(e.titleMode){case"type-2":y="2";break}return y}),s=n.computed(()=>new URL(Object.assign({"../../assets/border-title-decoration-left.png":nf,"../../assets/border-title-decoration-left2.png":of})[`../../assets/border-title-decoration-left${i.value}.png`],self.location).href),l=n.computed(()=>new URL(Object.assign({"../../assets/border-title-decoration-right.png":af,"../../assets/border-title-decoration-right2.png":rf})[`../../assets/border-title-decoration-right${i.value}.png`],self.location).href),d=n.computed(()=>({width:"100%",height:"100%"})),c=n.computed(()=>{const{borderRadius:y}=e,h=[],v={};if(y){const E=y.split(",");for(const p of E)(+p||+p==0)&&h.push(+p+"px")}return h!=null&&h.length&&(v.borderRadius=h.join(" ")),v}),g=Te(e)("click",()=>{}),m=n.ref([]);n.watch(()=>e.data,y=>{m.value=y},{immediate:!0,deep:!0}),Le(e,{click:g});const{setGlobalModel:u}=n.inject(ke,{setGlobalModel:(y,h)=>{}});return u(e.id,{type:e.type,value:m}),{style:o,gradientStyle:t,click:g,borderStyle:d,theme:r,borderRadiusStyle:c,titleLeftIcon:s,titleRightIcon:l,cursorStyle:a}}}),T1="",Tt=e=>(n.pushScopeId("data-v-8dd53b8f"),e=e(),n.popScopeId(),e),sf=["id"],cf=Tt(()=>n.createElementVNode("div",{class:"top-left border-item"},null,-1)),df=Tt(()=>n.createElementVNode("div",{class:"top-right border-item"},null,-1)),ff=Tt(()=>n.createElementVNode("div",{class:"bottom-left border-item"},null,-1)),uf=Tt(()=>n.createElementVNode("div",{class:"bottom-right border-item"},null,-1)),hf={class:"title-item"},gf=["src"],mf={class:"title"},yf=["src"],xf=Tt(()=>n.createElementVNode("div",{class:"top-left border-item"},null,-1)),pf=Tt(()=>n.createElementVNode("div",{class:"top-right border-item"},null,-1)),bf=Tt(()=>n.createElementVNode("div",{class:"bottom-left border-item"},null,-1)),vf=Tt(()=>n.createElementVNode("div",{class:"bottom-right border-item"},null,-1)),Sf={key:2,class:"left-title"},Cf={class:"title"};function wf(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},[cf,df,ff,uf],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",hf,[n.createElementVNode("img",{class:n.normalizeClass(["title-decoration",e.titleMode]),src:e.titleLeftIcon},null,10,gf),n.createElementVNode("div",mf,n.toDisplayString(e.title),1),n.createElementVNode("img",{class:n.normalizeClass(["title-decoration",e.titleMode]),src:e.titleRightIcon},null,10,yf)])],2),xf,pf,bf,vf],4)):n.createCommentVNode("",!0),e.mode==="left-title"?(n.openBlock(),n.createElementBlock("div",Sf,[n.createElementVNode("div",Cf,[n.createElementVNode("span",null,n.toDisplayString(e.title),1)])])):n.createCommentVNode("",!0)],12,sf)}const yl=xe(ye(lf,[["render",wf],["__scopeId","data-v-8dd53b8f"]])),Ca={...we,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"},wa=ve(Ca),xl=["tabChange"],Af=n.defineComponent({name:"EcanTabs",props:{...wa},components:{ASelect:se.Select,ASelectOption:se.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(Me,{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 y=n.unref(t)+1;y<=u?t.value=y:t.value=0,l.value=n.unref(s)[n.unref(t)],g()},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=Te(e),{setGlobalModel:f}=n.inject(ke,{setGlobalModel:(u,y)=>{}});f(e.id,{value:l,activeKey:t});const{emitRefreshPage:g}=n.inject(Qt,{emitRefreshPage:()=>{}}),m=c("tabChange",(u,y)=>{y!==n.unref(t)&&(l.value=u,t.value=y,g())});return Le(e,{tabChange:m}),{style:o,activeKey:t,isActive:d,tabChange:m,myData:s,useImagePath:At}}}),E1="",kf=["id"],Tf=["onClick"];function Bf(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(f=>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,Tf))),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:f=>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,kf)}const pl=xe(ye(Af,[["render",Bf],["__scopeId","data-v-fbab260a"]])),Aa={...we,name:"图片",keyName:"图片",type:"ecanImage",width:"300px",height:"300px",imgUrl:"",target:"self",href:"",linkPage:"",data:{},isHoverStyle:!1},ka=ve(Aa),bl=["click"],Ta=n.defineComponent({name:"EcanImage",props:{...ka},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(ke,{getGlobalModel:d=>{},setGlobalModel:(d,c)=>{}}),l=Te(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=gi(n.unref(a),c),g=e.href;let m=g||f;m=De(m);const u=e.target;u&&(u!=="event"?window.open(m,"_"+u):window.parent.postMessage({type:"openPage",url:g},"*"))});return Le(e,{click:l}),{style:o,myImgUrl:t,onClick:l}}}),vl=()=>{n.useCssVars(e=>({"102827c2":e.isHoverStyle?"pointer":"auto","5de838e7":e.isHoverStyle?"0.6":"1"}))},Sl=Ta.setup;Ta.setup=Sl?(e,o)=>(vl(),Sl(e,o)):vl;const R1="",Ef=["src"];function Df(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,Ef)):(n.openBlock(),n.createElementBlock("div",{key:1,class:"image-placeholder",style:n.normalizeStyle(e.style)}," 请上传图片 ",4))}const Cl=xe(ye(Ta,[["render",Df],["__scopeId","data-v-47ea6e7c"]])),Ba={...we,name:"网页",keyName:"网页",type:"ecanIframe",width:"300px",height:"300px",link:"",linkType:"web"},Ea=ve(Ba),Rf=n.defineComponent({name:"EcanIframe",props:{...Ea},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=`${ss||i}?_t=0&uid=${r}`}return r});return{style:o,myLink:a}}}),_1="",If=["src"];function _f(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,If)):(n.openBlock(),n.createElementBlock("div",{key:1,class:"iframe-placeholder",style:n.normalizeStyle(e.style)}," 请填写网页链接 ",4))}const wl=xe(ye(Rf,[["render",_f],["__scopeId","data-v-19bc100c"]])),Da={...we,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},Ra=ve(Da),Al=["click","refreshData","resetRecord","exportTableData"],Of="data:image/png;base64,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",Lf="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==",Nf="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==",Ia=n.defineComponent({name:"EcanTable",components:{Skeleton:rn,AButton:se.Button,AInput:se.Input,ACheckboxGroup:se.CheckboxGroup,ATable:se.Table,ATableSummary:se.TableSummary,ATableSummaryRow:se.TableSummaryRow,ATableSummaryCell:se.TableSummaryCell},props:{...Ra},setup(e,{expose:o}){const t=n.ref(!1),a=n.computed(()=>{const V=He.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 K=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 ne=0;if(oe&&(Z-=(oe==null?void 0:oe.clientHeight)||0),ie&&e.isSummaryFixed&&(ne=(ie==null?void 0:ie.clientHeight)||0,Z-=ne),e.paginationShow){let te=0;te=f(),te&&(Z-=te)}(K==null?void 0:K.clientHeight)>Z?c.value=Z:c.value=0,n.nextTick(()=>{if(ne){const te=document.querySelector(`#ecanTable-${e.id} .ant-table-summary`),fe=(te==null?void 0:te.clientHeight)||0;ne!==fe&&n.unref(c)&&(c.value=Z+ne-fe)}})})});const g=n.ref([]),m=n.ref([]),u=n.ref([]),y=n.ref([]),h=n.ref(0),v=n.ref(1),E=n.ref(e.paginationPageSize||10),p=n.reactive([]),b=(V=[])=>{var Z,K;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:ne=[]}}=e;V.forEach((te,fe)=>{if(n.unref(a)[fe])for(const _e in n.unref(a)[fe])["dataIndex","title"].includes(_e)||(te[_e]=n.unref(a)[fe][_e]);const ue=ne.find(_e=>_e.label===te.title),{showLabel:me=""}=ue||{};me&&(te.title=me)})}for(let ne=oe-1;ne>=0;ne--)(K=V[ne])!=null&&K.isHidden&&V.splice(ne,1);oe=V.length;for(let ne=0;ne<oe;ne++){const te=V[ne];if(ne<ie?te.fixed="left":te.fixed=!1,e.isSortByFront&&te.sorter){const st=te.dataIndex;te.sorter=(ht,_t)=>ht[st]-_t[st]}const{cellAlign:fe="center",cellColor:ue,dataIndex:me,title:_e,tableFilter:Je,headerCellAlign:ut,headerCellColor:It}=te;Je&&(p.push(me),te.filterOptionsInputValue="",te.filterCheckboxGroupValue=[],te.customFilterDropdown=!0,te.onFilter=(st,ht)=>ht[me].toString().toLowerCase().includes(st.toLowerCase())),te.customHeaderCell=()=>({style:{display:"table-cell",verticalAlign:"middle",fontSize:e.headerFontSize,fontWeight:e.headerFontWeight,textAlign:ut||"center",color:It||e.headerFontColor,borderBottomColor:e.borderColor,backgroundColor:e.headerBackgroundColor}}),te.customCell=(st,ht)=>({style:{textAlign:fe,color:ue||e.cellFontColor,backgroundColor:e.cellBackgroundColor,borderBottomColor:e.borderColor},class:{highlight:n.unref(j)===ht&&e.clickHighlight},onClick:$("click",()=>{const _t=e.id,La=z(_t);st={dataIndex:me,title:_e,...st},q(_t,{...La,type:e.type,RECORD:st})})}),Array.isArray(te.children)&&b(te.children)}}},x=(V=[])=>{var K;let Z=He.cloneDeep(V);return(K=n.unref(y))!=null&&K.length&&(Z=He.cloneDeep(n.unref(y))),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(E,()=>{v.value=1,Y(!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],()=>{g.value=x(He.cloneDeep(e.columns))},{immediate:!0,deep:!0}),n.watch(()=>[e.data,e.dataType],([V,Z])=>{Z==="static"&&(m.value=V)},{immediate:!0});const A=n.ref({}),T=V=>{if(Array.isArray(V)){const Z=V.length,K=p,oe=K.length,ie={};for(let te=0;te<Z;te++){const fe=V[te];for(let ue=0;ue<oe;ue++){const me=K[ue];if(ie[me])ie[me].add(fe[me]);else{const _e=new Set;_e.add(fe[me]),ie[me]=_e}}}const ne={};for(const te in ie)if(Object.prototype.hasOwnProperty.call(ie,te)){const fe=ie[te],ue=Array.from(fe);ne[te]=ue.map(me=>({label:me,value:me}))}A.value=ne}};n.watch(()=>[e.isReverse,g.value,m.value],()=>{const V=n.unref(g),Z=n.unref(m);if(T(Z),e.isReverse){const{columns:K,dataSource:oe}=D(He.cloneDeep(V),He.cloneDeep(Z));u.value=K,l.value=oe}else u.value=V,l.value=Z},{immediate:!0});const D=(V,Z)=>{const K=V[0],oe=[{title:K.title,dataIndex:"col0",key:"col0",align:"center"}];for(let ne=0;ne<Z.length;ne++){const te=Z[ne],fe="col"+(ne+1);oe.push({title:te[K.dataIndex],dataIndex:fe,key:fe,align:"center"})}const ie=[];for(let ne=1;ne<V.length;ne++){const te=V[ne],fe={col0:te.title};for(let ue=0;ue<Z.length;ue++){const me=Z[ue];fe[`col${ue+1}`]=me[te.dataIndex]}ie.push(fe)}return{columns:oe,dataSource:ie}},O=n.ref(""),_=Ve(e),k=async(V=!0,Z={})=>{var K;try{V&&(t.value=!0),n.unref(O)&&(Z.orderCondition=n.unref(O)),e.paginationShow&&(Z={pageNum:n.unref(v),pageSize:n.unref(E)||"10",layer:"1",...Z});const oe=await _(Z),{rows:ie=[],total:ne=0}=((K=oe==null?void 0:oe.data)==null?void 0:K.data)||{};if(h.value=ne,Array.isArray(ie)&&(m.value=ie),window.config.routerBaseURL.includes("1523545080925487106")){const{requestParams:te=[]}=e,fe=te.find(ue=>ue.key==="dataSqlId");if((fe==null?void 0:fe.value)==="xt_jxzebg"){const ue=ie.filter(me=>!me.绩效总额).map(me=>me.ORG_NAME);ue!=null&&ue.length&&n.nextTick(()=>{se.notification.warning({message:"提示",description:`当前时段${ue.join("、")}绩效数据为空`,duration:3})})}}}catch(oe){console.error(oe)}finally{t.value=!1}},S=({current:V},Z,K)=>{if(v.value=V,K&&Object.keys(K).length>0){const{field:oe,order:ie}=K,te={ascend:"asc",descend:"desc"}[ie];oe!=null&&te!=null&&te?O.value=oe+" "+te:te||(O.value="")}e.isSortByFront||Y(!1)},B=n.computed(()=>{const V=e.simple,Z=[e.paginationPosition],K={};return e.isShowTotal&&(K.showTotal=oe=>`共 ${oe} 条数据`),e.paginationShow&&{simple:V,position:Z,total:n.unref(h),current:n.unref(v),pageSize:n.unref(E)||"10",showSizeChanger:!1,size:"large",...K}}),w=V=>+V==1?"是":+V==0?"否":V,C=(V,Z)=>{const{format:K,retentiondigit:oe,customFormatter:ie}=Z;if(K==null||K==="")return V;const ne={money:ko,percentage:xn,contrast:xn,boolean:w,decimals:yc,custom:hi};return ne[K]?K==="decimals"?ne[K](V,oe)||"":K==="custom"?ne[K](V,ie)||"":ne[K](V)||"":""},I=V=>V==="contrast"?"upDown":"",N=V=>{const{text:Z,format:K,declineColor:oe="#39cf93",increaseColor:ie="#ff512e"}=V;if(K==="contrast"){const ne={fontSize:e.fontSize},te=parseFloat(Z+"");return te>=0?ne.color=ie:te<0&&(ne.color=oe),ne}else return{}},M=n.computed(()=>{const{fontSize:V}=e;return{width:V,height:V,textIndent:`-${parseFloat(V)*2}px`,overflow:"hidden"}}),P=V=>{const{text:Z,declineColor:K="#39cf93",increaseColor:oe="#ff512e"}=V,{fontSize:ie}=e,ne=parseFloat(Z+""),te={width:ie,verticalAlign:"unset"};return ne>=0?te.filter=`drop-shadow(${oe||"#ff512e"} ${ie} -1px)`:ne<0&&(te.filter=`drop-shadow(${K||"#39cf93"} ${ie} -1px)`),te},W=V=>{const Z=parseFloat(V+"");if(Z>=0)return Ro;if(Z<0)return Io},$=Te(e),{getGlobalModel:z,setGlobalModel:q}=n.inject(ke,{getGlobalModel:V=>{},setGlobalModel:(V,Z)=>{}});q(e.id,{type:e.type,RECORD:""});const L=(V=[],Z=[])=>{const K=V.map(oe=>({title:oe,dataIndex:oe,key:oe}));y.value=He.cloneDeep(K),g.value=x(K),m.value=Z},R=at(e),F=async(V=!0)=>{var Z,K,oe,ie;try{V&&(t.value=!0);const ne=n.unref(O).split(" "),te={};e.isSortByFront||(te.sort={order:ne[1],field:ne[0]});const fe=await R(te);L((K=(Z=fe==null?void 0:fe.data)==null?void 0:Z.data)==null?void 0:K.columns,(ie=(oe=fe==null?void 0:fe.data)==null?void 0:oe.data)==null?void 0:ie.rows)}catch(ne){console.error(ne)}finally{t.value=!1}},j=n.ref(-1),ee=(V,Z)=>({onClick:$("rowClick",()=>{const K=e.id,oe=z(K);q(K,{...oe,type:e.type,RECORD:V}),j.value=Z})}),{loadedData:G}=n.inject(bt,{loadedData:{}}),ae=n.ref(!1);n.watch(G,V=>{if(e.dataType==="indicator"){const Z=Xt(e.graphicConfig);Z!=null&&Z.length&&(!n.unref(ae)&&nt(e.graphicConfig,V)?(ae.value=!0,Y()):nt(e.graphicConfig,V)||(ae.value=!1))}},{deep:!0});const Y=(V=!0)=>{switch(e.dataType){case"request":k(V);break;case"indicator":nt(e.graphicConfig,n.unref(G))&&F(V);break}},Q=()=>{const V=e.id,Z=z(V);q(V,{...Z,type:e.type,RECORD:""})},J=n.computed(()=>{const V=n.unref(u);let Z=0;const{subTotalColumn:K,subTotalName:oe}=e;K&&(Z=V.findIndex(ue=>ue.dataIndex===K),Z<0&&(Z=0));const ie=[];let ne=0;for(let ue=0;ue<V.length;ue++){const me=V[ue],{isCalcTotal:_e}=me;ue===Z?ie.push({...me,total:oe}):_e?(ie.push({...me,index:ue,total:0}),ne++):ie.push({...me})}if(ne===0)return[];const te=n.unref(l),fe=X(ie);for(let ue=0;ue<fe.length;ue++){const me=fe[ue];let _e=0;const{isCalcTotal:Je,dataIndex:ut}=me;if(Je===!0){for(let It=0;It<te.length;It++){const ht=+te[It][ut];isNaN(ht)||(_e=new Hl.Big(_e).add(ht).toNumber())}me.total=_e}}return fe});function X(V){var K;const Z=[];for(const oe of V)(K=oe.children)!=null&&K.length?Z.push(...X(oe.children)):Z.push(oe);return Z}const{setRequest:re}=n.inject(ze,{setRequest:V=>{}});typeof re=="function"&&re({id:e.id,requestFn:Y,sortNum:e.requestSort}),o({refreshData:Y});const de=(V="",Z)=>De(V,Z),pe=V=>{if(V!=="event")return{self:"_self",blank:"_blank"}[V]},Be=(V,Z="")=>{V==="event"&&window.parent.postMessage({type:"openPage",url:Z},"*")},Ee=(V,Z)=>{V(Z.filterCheckboxGroupValue)},je=(V,Z)=>{V({confirm:!0}),Z.filterOptionsInputValue="",Z.filterCheckboxGroupValue=[]},Ne=()=>{},Re=V=>{const Z=V.dataIndex;if(typeof Z=="string"){let K=n.unref(A)[Z];const oe=n.unref(V.filterOptionsInputValue).trim();return Array.isArray(K)?(K=K.filter(ie=>typeof ie.label=="string"?ie.label.toLowerCase().includes(oe.toLowerCase()):!0),K):[]}return[]},Ae=async()=>{var me,_e;const V="EXPORT_KEY";se.message.loading({key:V,content:"正在导出...",duration:0});let Z=[];if(e.dataType==="static")Z=e.data;else if(e.dataType==="request"){const Je={layer:"1"};n.unref(O)&&(Je.orderCondition=n.unref(O));const ut=await _(Je);Z=((_e=(me=ut==null?void 0:ut.data)==null?void 0:me.data)==null?void 0:_e.rows)||{}}const K=n.unref(u),oe=[],ie=[];K==null||K.forEach(Je=>{oe.push(Je.dataIndex),ie.push(Je.title)});const ne=Z.map(Je=>He.pick(Je,oe)),te=$t.utils.book_new(),fe=$t.utils.aoa_to_sheet([ie]),ue=$t.utils.sheet_add_json(fe,ne,{skipHeader:!0,origin:"A2"});$t.utils.book_append_sheet(te,ue,"sheet"),$t.writeFile(te,"表格数据.xlsx"),se.message.success({key:V,content:"导出成功"})},Fe=(V,Z=2)=>{const K=+V*100;return isNaN(K)||K<=0?0:K>=100?100:K.toFixed(Z)};Le(e,{resetRecord:Q,refreshData:Y,exportTableData:Ae});const $e=(V,Z)=>{let K=null;return e.stripedShow&&(K=Z%2===1?"table-striped":null),K},Qe=n.computed(()=>{let V=0;const{height:Z,isPageBottom:K}=e;return K&&Z&&(V=parseFloat(Z)-f()),V?V+"px":"100%"}),We=n.computed(()=>{let V="#071655";return e.headerBackgroundColor&&(V="transparent"),V}),qe=n.computed(()=>{let V="#071655";return(e.cellBackgroundColor||e.stripedShow&&e.stripedColor)&&(V="transparent"),V}),lt=n.computed(()=>parseFloat(e.fontSize)+16),ft=n.computed(()=>{let V="";const{paginationColor:Z,paginationBgColor:K,activePaginationColor:oe,activePaginationBgColor:ie,hoverBackgroundColor:ne}=e;return Z&&(V+="p-color "),K&&(V+="p-bg-color "),oe&&(V+="active-p-color "),ie&&(V+="active-p-bg-color "),ne&&(V+="hover-bg-color "),V});return{x:d,y:c,style:s,customRow:ee,pagination:B,formatFn:C,contrastClass:I,tableChange:S,summaryList:J,loading:t,onTouchHrefEvent:Be,handleHref:de,handleHrefTarget:pe,useRowIndex:j,tableColumns:u,tableDataSource:l,useFilterOptions:Re,useSetSelectedKeys:Ee,onResetFilter:je,onSearchFilterOptions:Ne,exportTableData:Ae,handleProgressText:Fe,pageSizeVisible:i,pageSize:E,tableRef:r,rowClassName:$e,tableHeight:Qe,tableHeaderBgColor:We,tableBodyBgColor:qe,getChgStyle:N,chgBoxStyle:M,getChgBoxImgStyle:P,getChgBoxImgSrc:W,seqIcon1:Of,seqIcon2:Lf,seqIcon3:Nf,iconSize:lt,containerClass:ft}}}),kl=()=>{n.useCssVars(e=>({"376e0f3a":e.stripedColor,"5199bb1e":e.tableHeaderBgColor,"6ff3fc88":e.tableBodyBgColor,"92e812d4":e.paginationBgColor,"15d6cddb":e.paginationColor,e658f2a0:e.activePaginationBgColor,"8dd0c716":e.activePaginationColor,"0836d172":e.hoverBackgroundColor}))},Tl=Ia.setup;Ia.setup=Tl?(e,o)=>(kl(),Tl(e,o)):kl;const L1="",N1="",Ff=e=>(n.pushScopeId("data-v-1995310f"),e=e(),n.popScopeId(),e),Mf=["id"],zf={key:0,class:"table-tool"},Pf=n.createTextVNode("导出数据"),qf=n.createTextVNode(" 搜索 "),Hf=n.createTextVNode(" 重置 "),Vf=["src","width","height"],jf=["src","width","height"],Wf=["src","width","height"],Uf={key:1},Gf={key:1,class:"action-list"},$f=["href","target","onClick"],Zf={key:2,class:"progress-cell"},Yf={key:0},Kf=["src"],Qf={key:1},Jf=["src"],Xf={class:"ant-pagination-options-quick-jumper"},eu=Ff(()=>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"),f=n.resolveComponent("a-table-summary-row"),g=n.resolveComponent("a-table-summary"),m=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 y;return[e.isUseExport?(n.openBlock(),n.createElementBlock("div",zf,[n.createVNode(s,{class:"export-button",onClick:e.exportTableData},{default:n.withCtx(()=>[Pf]),_:1},8,["onClick"])])):n.createCommentVNode("",!0),n.createVNode(m,{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:h,selectedKeys:v,setSelectedKeys:E,confirm:p,clearFilters:b})=>[n.createElementVNode("div",{class:"ecan-table-filter",style:n.normalizeStyle({height:e.filterDropdownHeight})},[n.createVNode(l,{value:h.filterOptionsInputValue,"onUpdate:value":x=>h.filterOptionsInputValue=x,placeholder:"请输入关键字",class:"filter-input",onChange:e.onSearchFilterOptions},null,8,["value","onUpdate:value","onChange"]),n.createVNode(d,{value:h.filterCheckboxGroupValue,"onUpdate:value":x=>h.filterCheckboxGroupValue=x,class:"filter-checkbox",options:e.useFilterOptions(h),onChange:x=>e.useSetSelectedKeys(E,h)},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(()=>[qf]),_:2},1032,["onClick"]),n.createVNode(s,{size:"small",style:{width:"90px"},onClick:n.withModifiers(x=>e.onResetFilter(b,h),["stop"])},{default:n.withCtx(()=>[Hf]),_:2},1032,["onClick"])])],4)]),bodyCell:n.withCtx(({column:h,index:v,text:E,record:p})=>{var b,x;return[h.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,Vf)):v===1?(n.openBlock(),n.createElementBlock("img",{key:1,class:"seq-icon",src:e.seqIcon2,width:e.iconSize,height:e.iconSize},null,8,jf)):v>=2?(n.openBlock(),n.createElementBlock("img",{key:2,class:"seq-icon",src:e.seqIcon3,width:e.iconSize,height:e.iconSize},null,8,Wf)):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",Uf,n.toDisplayString(v+1),1))],64)):h.dataIndex==="ACTION"?(n.openBlock(),n.createElementBlock("div",Gf,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.actionList,(A,T)=>(n.openBlock(),n.createElementBlock("div",{class:"action",key:T},[n.createElementVNode("a",{href:e.handleHref(A.href,p),target:e.handleHrefTarget(A.target),style:n.normalizeStyle({color:A.color,fontSize:e.fontSize,fontWeight:e.fontWeight}),onClick:D=>e.onTouchHrefEvent(A.target,e.handleHref(A.href,p))},n.toDisplayString(A.title),13,$f)]))),128))])):h.format==="progress"?(n.openBlock(),n.createElementBlock("div",Zf,[n.createElementVNode("div",{class:"progress",style:n.normalizeStyle({background:h.progressColor||"#1890ff",height:h.progressWidth||"18px",width:`${e.handleProgressText(E,h.progressTextDecimalPlaces)}%`})},null,4),n.createElementVNode("div",{class:"progress-text",style:n.normalizeStyle({color:+e.handleProgressText(E)<100?h.progressTextColor||"#333":h.progressFinishedTextColor||"#fff"})},n.toDisplayString(e.handleProgressText(E,h.progressTextDecimalPlaces))+"% ",5)])):(n.openBlock(),n.createElementBlock("div",{key:3,style:n.normalizeStyle({fontSize:e.fontSize,fontWeight:e.fontWeight})},[h.format==="contrast"?(n.openBlock(),n.createElementBlock("span",Yf,n.toDisplayString(((b=h==null?void 0:h.customFormatter)==null?void 0:b.split("{value}")[0])||""),1)):n.createCommentVNode("",!0),n.createElementVNode("span",{class:n.normalizeClass([e.contrastClass(h.format)]),style:n.normalizeStyle(e.getChgStyle({...h,text:E}))},[h.format==="contrast"?(n.openBlock(),n.createElementBlock("div",{key:0,style:n.normalizeStyle(e.chgBoxStyle)},[n.createElementVNode("img",{style:n.normalizeStyle(e.getChgBoxImgStyle({...h,text:E})),src:e.getChgBoxImgSrc(E)},null,12,Kf)],4)):n.createCommentVNode("",!0),n.createTextVNode(" "+n.toDisplayString(h.format!=null?e.formatFn(E,h):E),1)],6),h.format==="contrast"?(n.openBlock(),n.createElementBlock("span",Qf,n.toDisplayString(((x=h==null?void 0:h.customFormatter)==null?void 0:x.split("{value}")[1])||""),1)):n.createCommentVNode("",!0)],4))]}),summary:n.withCtx(()=>[e.summaryList.length>0?(n.openBlock(),n.createBlock(g,{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,(h,v)=>(n.openBlock(),n.createBlock(c,{key:v,index:v,style:n.normalizeStyle({backgroundColor:e.cellBackgroundColor,textAlign:h.cellAlign||"center",color:e.cellFontColor,borderBottomColor:e.borderColor})},{default:n.withCtx(()=>[n.createElementVNode("span",{class:n.normalizeClass([e.contrastClass(h.format)]),style:n.normalizeStyle({...e.getChgStyle({...h,text:h.total}),fontSize:e.fontSize,fontWeight:e.fontWeight})},[h.format==="contrast"?(n.openBlock(),n.createElementBlock("div",{key:0,style:n.normalizeStyle(e.chgBoxStyle)},[n.createElementVNode("img",{style:n.normalizeStyle(e.getChgBoxImgStyle({...h,text:h.total})),src:e.getChgBoxImgSrc(h.total)},null,12,Jf)],4)):n.createCommentVNode("",!0),n.createTextVNode(" "+n.toDisplayString((h.format!=null||h.format!=="")&&e.formatFn(h.total,h)),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},[(y=e.tableDataSource)!=null&&y.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]=h=>e.pageSize=h)},null,512),[[n.vModelText,e.pageSize]]),eu])],8,["to"])):n.createCommentVNode("",!0)],64)):n.createCommentVNode("",!0)]}),_:1},8,["loading"])],14,Mf)}const Bl=xe(ye(Ia,[["render",tu],["__scopeId","data-v-1995310f"]])),_a={...we,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"},Oa=ve(_a),El=["click"];Ze.use([Et.CanvasRenderer,gt.MapChart,gt.ScatterChart,be.VisualMapComponent,be.TooltipComponent,be.GraphicComponent]);const nu=n.defineComponent({name:"EcanMap",components:{Echarts:xt},props:{...Oa},setup(e){const o=Ve(e),t=Ve({...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),g=n.computed(()=>{const w=e.symbolImage;return e.symbolImage?"image://"+At(w):"circle"}),m=w=>{let C=e.tooltipFormatter;const I=C.match(/\{(.+?)\}/g);if(I==null||I.length===0)return C;for(let N=0;N<I.length;N++){const M=I[N];let P=M.slice(1,-1).trim();const W=/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,$=P.match(W);for(let z=0;z<$.length;z++){const q=$[z],L=w[q];L!=null&&(P=P.replace(q,L))}C=C.replace(M,P)}return C.split(`
120
+ `)},u=n.ref(!1),y=n.ref("");let h=new AbortController;const v=(w,C)=>{const I=h.signal;u.value=!0,r.value=w,t({name:w,signal:I}).then(N=>{var M,P;if(N){const W=((P=(M=N==null?void 0:N.data)==null?void 0:M.data)==null?void 0:P.rows)||[];let $="";for(const z of W){const q=m(z)||[];if(q!=null&&q.length)for(const L of q)$+=`<div style="word-break: break-all;white-space: normal;">${L}</div>`}$=`<div style="max-width:200px;">${$}</div>`,i.value=$,C(n.unref(y),$)}else I.aborted?i.value="Loading":i.value=w,C(n.unref(y),i.value);u.value=!1})},E=n.computed(()=>{const w=e.geoCenter;let C;return typeof w=="string"&&w!==""&&(C=w.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:C,map:`map-${e.id}`,tooltip:{show:e.tooltipShow,trigger:"item",backgroundColor:e.tooltipBackgroundColor,borderColor:"transparent",textStyle:{color:e.tooltipTextStyleColor},formatter:(I,N,M)=>{y.value=N;const{name:P=""}=I,{requestUrl:W}=e.tooltipRequestData;if(!W)return P;if(n.unref(u))n.unref(r)!==P&&(h.abort(),h=new AbortController);else{if(n.unref(r)===P)return n.unref(i);v(P,M)}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(g),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 I;p.value=!1;const w=e.mapJson,C=`map-${e.id}`;if(w!=null&&w.path){const N=await ct(((I=window==null?void 0:window.config)==null?void 0:I.uploadPath)+w.path);Ze.registerMap(C,(N==null?void 0:N.data)||{})}else Ze.registerMap(C,{});p.value=!0};n.watch(()=>e.mapJson,()=>{b()},{immediate:!0,deep:!0});const x=async()=>{var w,C;if(e.dataType==="request"){p.value=!1;try{const I=await o(),N=((C=(w=I==null?void 0:I.data)==null?void 0:w.data)==null?void 0:C.rows)||{},M=`map-${e.id}`;if(N!=null&&N.path){const P=await ct(N.path);Ze.registerMap(M,(P==null?void 0:P.data)||{})}else Ze.registerMap(M,{})}catch(I){console.error(I)}finally{p.value=!0}}},A=()=>{switch(e.dataType){case"request":x();break}},{getGlobalModel:T,setGlobalModel:D}=n.inject(ke,{getGlobalModel:w=>{},setGlobalModel:(w,C)=>{}}),_=Te(e)("click",()=>{const w=T(e.id);D(e.id,{...w,RECORD:n.unref(a)})});Le(e,{refreshData:A});const{setRequest:k}=n.inject(ze,{setRequest:w=>{}});return typeof k=="function"&&k({id:e.id,requestFn:A,sortNum:e.requestSort}),{option:E,style:s,isLoadedData:p,geoBackgroundImageRef:l,myGeoBackgroundImage:d,customClick:()=>{n.unref(a)&&_()},onMouseOver:(w={})=>{w.componentType==="geo"&&w.region?a.value=w.region:a.value=null}}}}),M1="",ou=["src"];function au(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,ou),[[n.vShow,!1]])],4)}const Dl=xe(ye(nu,[["render",au],["__scopeId","data-v-10f150ac"]])),Rl=Object.freeze(Object.defineProperty({__proto__:null,EcanBar:ll,EcanBorder:yl,EcanButton:ji,EcanCheckbox:Ui,EcanComboGraph:ul,EcanCustomGraph:dl,EcanDatePicker:Fi,EcanIframe:wl,EcanImage:Cl,EcanInput:_i,EcanLine:rl,EcanList:Ei,EcanMap:Dl,EcanModal:kt,EcanPageConfig:mi,EcanPie:ol,EcanProportion:Ri,EcanProviderConfig:yi,EcanRadar:gl,EcanRadio:Qi,EcanRangePicker:Hi,EcanScatter:cl,EcanScrollText:Si,EcanSelect:$i,EcanTable:Bl,EcanTabs:pl,EcanText:vi,EcanTimeDisplay:wi,EcanTreeSelect:Yi,barComponentProps:fa,barEvents:il,barProps:da,borderComponentProps:Sa,borderEvents:ml,borderProps:va,buttonComponentProps:Zo,buttonEvents:Vi,buttonProps:$o,checkboxComponentProps:Ko,checkboxEvents:Wi,checkboxProps:Yo,comboGraphComponentProps:xa,comboGraphEvents:fl,comboGraphProps:ya,customGraphComponentProps:ma,customGraphProps:ga,datePickerComponentProps:Vo,datePickerEvents:Oi,datePickerProps:Ho,iframeComponentProps:Ea,iframeProps:Ba,imageComponentProps:ka,imageEvents:bl,imageProps:Aa,inputComponentProps:qo,inputEvents:Ii,inputProps:Po,lineComponentProps:ca,lineEvents:al,lineProps:sa,listComponentProps:Fo,listEvents:Ai,listProps:No,mapComponentProps:Oa,mapEvents:El,mapProps:_a,modalComponentProps:ia,modalEvents:Xi,modalProps:ra,pageConfig:On,pageConfigComponentProps:Ln,pieComponentProps:aa,pieEvents:Ji,pieProps:oa,proportionComponentProps:zo,proportionEvents:Di,proportionProps:Mo,providerConfig:To,providerConfigComponentProps:Bo,radarComponentProps:ba,radarEvents:hl,radarProps:pa,radioComponentProps:na,radioEvents:Ki,radioProps:ta,rangePickerComponentProps:Uo,rangePickerEvents:Mi,rangePickerProps:Wo,scatterComponentProps:ha,scatterEvents:sl,scatterProps:ua,selectComponentProps:Jo,selectEvents:Gi,selectProps:Qo,tableComponentProps:Ra,tableEvents:Al,tableProps:Da,tabsComponentProps:wa,tabsEvents:xl,tabsProps:Ca,textComponentProps:Do,textEvents:xi,textProps:Eo,timeDisplayComponentProps:Lo,timeDisplayEvents:Ci,timeDisplayProps:Oo,treeSelectComponentProps:ea,treeSelectEvents:Zi,treeSelectProps:Xo},Symbol.toStringTag,{value:"Module"})),ru={install:e=>{Object.keys(Rl).forEach(o=>{const t=Rl[o];t.install&&e.use(t)})}};H.EcanBar=ll,H.EcanBorder=yl,H.EcanButton=ji,H.EcanCheckbox=Ui,H.EcanComboGraph=ul,H.EcanCustomGraph=dl,H.EcanDatePicker=Fi,H.EcanIframe=wl,H.EcanImage=Cl,H.EcanInput=_i,H.EcanLine=rl,H.EcanList=Ei,H.EcanMap=Dl,H.EcanModal=kt,H.EcanPageConfig=mi,H.EcanPie=ol,H.EcanProportion=Ri,H.EcanProviderConfig=yi,H.EcanRadar=gl,H.EcanRadio=Qi,H.EcanRangePicker=Hi,H.EcanScatter=cl,H.EcanScrollText=Si,H.EcanSelect=$i,H.EcanTable=Bl,H.EcanTabs=pl,H.EcanText=vi,H.EcanTimeDisplay=wi,H.EcanTreeSelect=Yi,H.barComponentProps=fa,H.barEvents=il,H.barProps=da,H.borderComponentProps=Sa,H.borderEvents=ml,H.borderProps=va,H.buttonComponentProps=Zo,H.buttonEvents=Vi,H.buttonProps=$o,H.checkboxComponentProps=Ko,H.checkboxEvents=Wi,H.checkboxProps=Yo,H.comboGraphComponentProps=xa,H.comboGraphEvents=fl,H.comboGraphProps=ya,H.compatibleMobileList=el,H.customGraphComponentProps=ma,H.customGraphProps=ga,H.datePickerComponentProps=Vo,H.datePickerEvents=Oi,H.datePickerProps=Ho,H.default=ru,H.iframeComponentProps=Ea,H.iframeProps=Ba,H.imageComponentProps=ka,H.imageEvents=bl,H.imageProps=Aa,H.inputComponentProps=qo,H.inputEvents=Ii,H.inputProps=Po,H.lineComponentProps=ca,H.lineEvents=al,H.lineProps=sa,H.listComponentProps=Fo,H.listEvents=Ai,H.listProps=No,H.mapComponentProps=Oa,H.mapEvents=El,H.mapProps=_a,H.modalComponentProps=ia,H.modalEvents=Xi,H.modalProps=ra,H.pageConfig=On,H.pageConfigComponentProps=Ln,H.pieComponentProps=aa,H.pieEvents=Ji,H.pieProps=oa,H.proportionComponentProps=zo,H.proportionEvents=Di,H.proportionProps=Mo,H.providerConfig=To,H.providerConfigComponentProps=Bo,H.radarComponentProps=ba,H.radarEvents=hl,H.radarProps=pa,H.radioComponentProps=na,H.radioEvents=Ki,H.radioProps=ta,H.rangePickerComponentProps=Uo,H.rangePickerEvents=Mi,H.rangePickerProps=Wo,H.scatterComponentProps=ha,H.scatterEvents=sl,H.scatterProps=ua,H.selectComponentProps=Jo,H.selectEvents=Gi,H.selectProps=Qo,H.tableComponentProps=Ra,H.tableEvents=Al,H.tableProps=Da,H.tabsComponentProps=wa,H.tabsEvents=xl,H.tabsProps=Ca,H.textComponentProps=Do,H.textEvents=xi,H.textProps=Eo,H.timeDisplayComponentProps=Lo,H.timeDisplayEvents=Ci,H.timeDisplayProps=Oo,H.treeSelectComponentProps=ea,H.treeSelectEvents=Zi,H.treeSelectProps=Xo,Object.defineProperties(H,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
119
121
  //# sourceMappingURL=index.umd.js.map