@ecan-bi/datav 1.2.92 → 1.2.93

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.2.92 */
2
- (function(q,o){typeof exports=="object"&&typeof module<"u"?o(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"],o):(q=typeof globalThis<"u"?globalThis:q||self,o(q["@ecan/bi-datav"]={},q.Vue,q["echarts/core"],q.ResizeDetector,q.AntDesignVue,null,null,q.LodashEs,q.Dayjs,q.Axios,q.Mitt,null,null,null,q["ant-design-vue/es/date-picker/locale/zh_CN"],null,null,null,null,q["echarts/renderers"],q["echarts/charts"],q["echarts/components"],null,q.Echarts,null,null,q.Xlsx,q.big.js))})(this,function(q,o,Ge,Da,ie,kd,Td,Ne,Ce,T0,B0,Bd,Ed,_d,Ia,Dd,Id,Rd,Od,At,ct,be,Ld,E0,Nd,Fd,Vt,_0){var p0,b0,v0,S0;"use strict";function D0(e){const n=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(n,t,a.get?a:{enumerable:!0,get:()=>e[t]})}}return n.default=e,Object.freeze(n)}const I0=D0(E0),R0=["getWidth","getHeight","getDom","getOption","resize","dispatchAction","convertToPixel","convertFromPixel","containPixel","getDataURL","getConnectedDataURL","appendData","clear","isDisposed","dispose"];function O0(e,n){function t(r){return(...i)=>{if(e.value||n(),!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 R0.forEach(i=>{r[i]=t(i)}),r}return a()}function L0(e,n,t){let a=null;o.watch([t,e,n],([r,i,s],l,f)=>{r&&i&&s&&(a=Ge.throttle(()=>{i.resize()},100),Da.addListener(r,a)),f(()=>{a&&r&&Da.removeListener(r,a)})})}const N0={autoresize:Boolean},F0="ecLoadingOptions";function z0(e,n,t){const a=o.inject(F0,{}),r=o.computed(()=>({...o.unref(a),...t==null?void 0:t.value}));o.watchEffect(()=>{const i=e.value;i&&(n.value?i.showLoading(r.value):i.hideLoading())})}const M0={loading:Boolean,loadingOptions:Object},zd="",P0=/^on[^a-z]/,H0=e=>P0.test(e);function q0(e){const n={};for(const t in e)H0(t)||(n[t]=e[t]);return n}const V0="x-vue-echarts",j0="ecTheme",G0="ecInitOptions",W0="ecUpdateOptions",ut=o.defineComponent({name:"echarts",props:{option:Object,theme:{type:[Object,String]},initOptions:Object,updateOptions:Object,group:String,manualUpdate:Boolean,...N0,...M0},inheritAttrs:!1,setup(e,{attrs:n,listeners:t}){const a=o.shallowRef(),r=o.shallowRef(),i=o.shallowRef(),s=o.inject(j0,null),l=o.inject(G0,null),f=o.inject(W0,null),{autoresize:c,manualUpdate:u,loading:x,loadingOptions:d}=o.toRefs(e),h=o.computed(()=>i.value||e.option||Object.create(null)),m=o.computed(()=>e.theme||o.unref(s)||{}),g=o.computed(()=>e.initOptions||o.unref(l)||{}),v=o.computed(()=>e.updateOptions||o.unref(f)||{}),_=o.computed(()=>q0(n));function b(O){if(r.value||!a.value)return;const L=r.value=Ge.init(a.value,m.value,g.value);e.group&&(L.group=e.group);let N=t;N||(N={},Object.keys(n).filter(E=>E.indexOf("on")===0&&E.length>2).forEach(E=>{const S=E.charAt(2).toLowerCase()+E.slice(3);N[S]=n[E]})),Object.keys(N).forEach(E=>{const S=N[E];S&&(E.indexOf("zr:")===0?L.getZr().on(E.slice(3).toLowerCase(),S):L.on(E.toLowerCase(),S))});function B(){if(L&&!L.isDisposed())try{L.resize()}catch(E){if(E.message==="Cannot read property 'get' of undefined")return;throw E}}function w(){L.setOption(O||h.value,v.value)}c.value?o.nextTick(()=>{B(),w()}):w()}function p(O,L){e.manualUpdate&&(i.value=O),r.value?r.value.setOption(O,L||{}):b(O)}function y(){r.value&&(r.value.dispose(),r.value=void 0)}let k=null;o.watch(u,O=>{typeof k=="function"&&(k(),k=null),O||(k=o.watch(()=>e.option,L=>{L&&(r.value?r.value.setOption(L,v.value):b())},{deep:!0}))},{immediate:!0}),o.watch([m,g],()=>{y(),b()},{deep:!0}),o.watchEffect(()=>{e.group&&r.value&&(r.value.group=e.group)});const C=O0(r,b);return z0(r,x,d),L0(r,c,a),o.onMounted(()=>{e.option&&b()}),o.onUnmounted(y),{chart:r,root:a,setOption:p,nonEventAttrs:_,...C}},render(){const e={...this.nonEventAttrs};return e.ref="root",e.class=e.class?["echarts"].concat(e.class):"echarts",o.h(V0,e)}});function Ke(e,n){U0(e)&&(e="100%");var t=$0(e);return e=n===360?e:Math.min(n,Math.max(0,parseFloat(e))),t&&(e=parseInt(String(e*n),10)/100),Math.abs(e-n)<1e-6?1:(n===360?e=(e<0?e%n+n:e%n)/parseFloat(String(n)):e=e%n/parseFloat(String(n)),e)}function U0(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function $0(e){return typeof e=="string"&&e.indexOf("%")!==-1}function Z0(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Kt(e){return e<=1?"".concat(Number(e)*100,"%"):e}function xn(e){return e.length===1?"0"+e:String(e)}function Y0(e,n,t){return{r:Ke(e,255)*255,g:Ke(n,255)*255,b:Ke(t,255)*255}}function yn(e,n,t){return t<0&&(t+=1),t>1&&(t-=1),t<1/6?e+(n-e)*(6*t):t<1/2?n:t<2/3?e+(n-e)*(2/3-t)*6:e}function K0(e,n,t){var a,r,i;if(e=Ke(e,360),n=Ke(n,100),t=Ke(t,100),n===0)r=t,i=t,a=t;else{var s=t<.5?t*(1+n):t+n-t*n,l=2*t-s;a=yn(l,s,e+1/3),r=yn(l,s,e),i=yn(l,s,e-1/3)}return{r:a*255,g:r*255,b:i*255}}function X0(e,n,t){e=Ke(e,255),n=Ke(n,255),t=Ke(t,255);var a=Math.max(e,n,t),r=Math.min(e,n,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=(n-t)/l+(n<t?6:0);break;case n:i=(t-e)/l+2;break;case t:i=(e-n)/l+4;break}i/=6}return{h:i,s:f,v:s}}function Q0(e,n,t){e=Ke(e,360)*6,n=Ke(n,100),t=Ke(t,100);var a=Math.floor(e),r=e-a,i=t*(1-n),s=t*(1-r*n),l=t*(1-(1-r)*n),f=a%6,c=[t,s,i,i,l,t][f],u=[l,t,t,s,i,i][f],x=[i,i,l,t,t,s][f];return{r:c*255,g:u*255,b:x*255}}function J0(e,n,t,a){var r=[xn(Math.round(e).toString(16)),xn(Math.round(n).toString(16)),xn(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 Ra(e){return We(e)/255}function We(e){return parseInt(e,16)}var Oa={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 jt(e){var n={r:0,g:0,b:0},t=1,a=null,r=null,i=null,s=!1,l=!1;return typeof e=="string"&&(e=nl(e)),typeof e=="object"&&(ft(e.r)&&ft(e.g)&&ft(e.b)?(n=Y0(e.r,e.g,e.b),s=!0,l=String(e.r).substr(-1)==="%"?"prgb":"rgb"):ft(e.h)&&ft(e.s)&&ft(e.v)?(a=Kt(e.s),r=Kt(e.v),n=Q0(e.h,a,r),s=!0,l="hsv"):ft(e.h)&&ft(e.s)&&ft(e.l)&&(a=Kt(e.s),i=Kt(e.l),n=K0(e.h,a,i),s=!0,l="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(t=e.a)),t=Z0(t),{ok:s,format:e.format||l,r:Math.min(255,Math.max(n.r,0)),g:Math.min(255,Math.max(n.g,0)),b:Math.min(255,Math.max(n.b,0)),a:t}}var el="[-\\+]?\\d+%?",tl="[-\\+]?\\d*\\.\\d+%?",ht="(?:".concat(tl,")|(?:").concat(el,")"),pn="[\\s|\\(]+(".concat(ht,")[,|\\s]+(").concat(ht,")[,|\\s]+(").concat(ht,")\\s*\\)?"),bn="[\\s|\\(]+(".concat(ht,")[,|\\s]+(").concat(ht,")[,|\\s]+(").concat(ht,")[,|\\s]+(").concat(ht,")\\s*\\)?"),ot={CSS_UNIT:new RegExp(ht),rgb:new RegExp("rgb"+pn),rgba:new RegExp("rgba"+bn),hsl:new RegExp("hsl"+pn),hsla:new RegExp("hsla"+bn),hsv:new RegExp("hsv"+pn),hsva:new RegExp("hsva"+bn),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function nl(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var n=!1;if(Oa[e])e=Oa[e],n=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var t=ot.rgb.exec(e);return t?{r:t[1],g:t[2],b:t[3]}:(t=ot.rgba.exec(e),t?{r:t[1],g:t[2],b:t[3],a:t[4]}:(t=ot.hsl.exec(e),t?{h:t[1],s:t[2],l:t[3]}:(t=ot.hsla.exec(e),t?{h:t[1],s:t[2],l:t[3],a:t[4]}:(t=ot.hsv.exec(e),t?{h:t[1],s:t[2],v:t[3]}:(t=ot.hsva.exec(e),t?{h:t[1],s:t[2],v:t[3],a:t[4]}:(t=ot.hex8.exec(e),t?{r:We(t[1]),g:We(t[2]),b:We(t[3]),a:Ra(t[4]),format:n?"name":"hex8"}:(t=ot.hex6.exec(e),t?{r:We(t[1]),g:We(t[2]),b:We(t[3]),format:n?"name":"hex"}:(t=ot.hex4.exec(e),t?{r:We(t[1]+t[1]),g:We(t[2]+t[2]),b:We(t[3]+t[3]),a:Ra(t[4]+t[4]),format:n?"name":"hex8"}:(t=ot.hex3.exec(e),t?{r:We(t[1]+t[1]),g:We(t[2]+t[2]),b:We(t[3]+t[3]),format:n?"name":"hex"}:!1)))))))))}function ft(e){return!!ot.CSS_UNIT.exec(String(e))}var Xt=2,La=.16,ol=.05,al=.05,rl=.15,Na=5,Fa=4,il=[{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 za(e){var n=e.r,t=e.g,a=e.b,r=X0(n,t,a);return{h:r.h*360,s:r.s,v:r.v}}function Qt(e){var n=e.r,t=e.g,a=e.b;return"#".concat(J0(n,t,a,!1))}function ll(e,n,t){var a=t/100,r={r:(n.r-e.r)*a+e.r,g:(n.g-e.g)*a+e.g,b:(n.b-e.b)*a+e.b};return r}function Ma(e,n,t){var a;return Math.round(e.h)>=60&&Math.round(e.h)<=240?a=t?Math.round(e.h)-Xt*n:Math.round(e.h)+Xt*n:a=t?Math.round(e.h)+Xt*n:Math.round(e.h)-Xt*n,a<0?a+=360:a>=360&&(a-=360),a}function Pa(e,n,t){if(e.h===0&&e.s===0)return e.s;var a;return t?a=e.s-La*n:n===Fa?a=e.s+La:a=e.s+ol*n,a>1&&(a=1),t&&n===Na&&a>.1&&(a=.1),a<.06&&(a=.06),Number(a.toFixed(2))}function Ha(e,n,t){var a;return t?a=e.v+al*n:a=e.v-rl*n,a>1&&(a=1),Number(a.toFixed(2))}function vn(e){for(var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=[],a=jt(e),r=Na;r>0;r-=1){var i=za(a),s=Qt(jt({h:Ma(i,r,!0),s:Pa(i,r,!0),v:Ha(i,r,!0)}));t.push(s)}t.push(Qt(a));for(var l=1;l<=Fa;l+=1){var f=za(a),c=Qt(jt({h:Ma(f,l),s:Pa(f,l),v:Ha(f,l)}));t.push(c)}return n.theme==="dark"?il.map(function(u){var x=u.index,d=u.opacity,h=Qt(ll(jt(n.backgroundColor||"#141414"),jt(t[x]),d*100));return h}):t}var Sn={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"},Cn={},wn={};Object.keys(Sn).forEach(function(e){Cn[e]=vn(Sn[e]),Cn[e].primary=Cn[e][5],wn[e]=vn(Sn[e],{theme:"dark",backgroundColor:"#141414"}),wn[e].primary=wn[e][5]});var qa=[],Gt=[],sl="insert-css: You need to provide a CSS string. Usage: insertCss(cssString[, options]).";function cl(){var e=document.createElement("style");return e.setAttribute("type","text/css"),e}function fl(e,n){if(n=n||{},e===void 0)throw new Error(sl);var t=n.prepend===!0?"prepend":"append",a=n.container!==void 0?n.container:document.querySelector("head"),r=qa.indexOf(a);r===-1&&(r=qa.push(a)-1,Gt[r]={});var i;return Gt[r]!==void 0&&Gt[r][t]!==void 0?i=Gt[r][t]:(i=Gt[r][t]=cl(),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 Va(e){for(var n=1;n<arguments.length;n++){var t=arguments[n]!=null?Object(arguments[n]):{},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){dl(e,r,t[r])})}return e}function dl(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function ul(e,n){process.env.NODE_ENV!=="production"&&!e&&console!==void 0&&console.error("Warning: ".concat(n))}function hl(e,n){ul(e,"[@ant-design/icons-vue] ".concat(n))}function ja(e){return typeof e=="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(typeof e.icon=="object"||typeof e.icon=="function")}function An(e,n,t){return t?o.h(e.tag,Va({key:n},t,e.attrs),(e.children||[]).map(function(a,r){return An(a,"".concat(n,"-").concat(e.tag,"-").concat(r))})):o.h(e.tag,Va({key:n},e.attrs),(e.children||[]).map(function(a,r){return An(a,"".concat(n,"-").concat(e.tag,"-").concat(r))}))}function Ga(e){return vn(e)[0]}function Wa(e){return e?Array.isArray(e)?e:[e]:[]}var gl=`
1
+ /*! @ecan-bi/datav@1.2.93 */
2
+ (function(q,o){typeof exports=="object"&&typeof module<"u"?o(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"],o):(q=typeof globalThis<"u"?globalThis:q||self,o(q["@ecan/bi-datav"]={},q.Vue,q["echarts/core"],q.ResizeDetector,q.AntDesignVue,null,null,q.LodashEs,q.Dayjs,q.Axios,q.Mitt,null,null,null,q["ant-design-vue/es/date-picker/locale/zh_CN"],null,null,null,null,q["echarts/renderers"],q["echarts/charts"],q["echarts/components"],null,q.Echarts,null,null,q.Xlsx,q.big.js))})(this,function(q,o,Ge,Ra,ie,Rd,Id,Le,Ce,T0,B0,Od,Nd,Ld,Ia,Fd,zd,Md,Pd,At,ct,be,Hd,E0,qd,Vd,jt,D0){var b0,v0,S0,C0;"use strict";function _0(e){const n=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(n,t,a.get?a:{enumerable:!0,get:()=>e[t]})}}return n.default=e,Object.freeze(n)}const R0=_0(E0),I0=["getWidth","getHeight","getDom","getOption","resize","dispatchAction","convertToPixel","convertFromPixel","containPixel","getDataURL","getConnectedDataURL","appendData","clear","isDisposed","dispose"];function O0(e,n){function t(r){return(...i)=>{if(e.value||n(),!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 I0.forEach(i=>{r[i]=t(i)}),r}return a()}function N0(e,n,t){let a=null;o.watch([t,e,n],([r,i,s],l,f)=>{r&&i&&s&&(a=Ge.throttle(()=>{i.resize()},100),Ra.addListener(r,a)),f(()=>{a&&r&&Ra.removeListener(r,a)})})}const L0={autoresize:Boolean},F0="ecLoadingOptions";function z0(e,n,t){const a=o.inject(F0,{}),r=o.computed(()=>({...o.unref(a),...t==null?void 0:t.value}));o.watchEffect(()=>{const i=e.value;i&&(n.value?i.showLoading(r.value):i.hideLoading())})}const M0={loading:Boolean,loadingOptions:Object},jd="",P0=/^on[^a-z]/,H0=e=>P0.test(e);function q0(e){const n={};for(const t in e)H0(t)||(n[t]=e[t]);return n}const V0="x-vue-echarts",j0="ecTheme",G0="ecInitOptions",W0="ecUpdateOptions",ht=o.defineComponent({name:"echarts",props:{option:Object,theme:{type:[Object,String]},initOptions:Object,updateOptions:Object,group:String,manualUpdate:Boolean,...L0,...M0},inheritAttrs:!1,setup(e,{attrs:n,listeners:t}){const a=o.shallowRef(),r=o.shallowRef(),i=o.shallowRef(),s=o.inject(j0,null),l=o.inject(G0,null),f=o.inject(W0,null),{autoresize:c,manualUpdate:u,loading:y,loadingOptions:d}=o.toRefs(e),h=o.computed(()=>i.value||e.option||Object.create(null)),m=o.computed(()=>e.theme||o.unref(s)||{}),g=o.computed(()=>e.initOptions||o.unref(l)||{}),v=o.computed(()=>e.updateOptions||o.unref(f)||{}),D=o.computed(()=>q0(n));function b(O){if(r.value||!a.value)return;const N=r.value=Ge.init(a.value,m.value,g.value);e.group&&(N.group=e.group);let L=t;L||(L={},Object.keys(n).filter(E=>E.indexOf("on")===0&&E.length>2).forEach(E=>{const S=E.charAt(2).toLowerCase()+E.slice(3);L[S]=n[E]})),Object.keys(L).forEach(E=>{const S=L[E];S&&(E.indexOf("zr:")===0?N.getZr().on(E.slice(3).toLowerCase(),S):N.on(E.toLowerCase(),S))});function B(){if(N&&!N.isDisposed())try{N.resize()}catch(E){if(E.message==="Cannot read property 'get' of undefined")return;throw E}}function w(){N.setOption(O||h.value,v.value)}c.value?o.nextTick(()=>{B(),w()}):w()}function p(O,N){e.manualUpdate&&(i.value=O),r.value?r.value.setOption(O,N||{}):b(O)}function x(){r.value&&(r.value.dispose(),r.value=void 0)}let k=null;o.watch(u,O=>{typeof k=="function"&&(k(),k=null),O||(k=o.watch(()=>e.option,N=>{N&&(r.value?r.value.setOption(N,v.value):b())},{deep:!0}))},{immediate:!0}),o.watch([m,g],()=>{x(),b()},{deep:!0}),o.watchEffect(()=>{e.group&&r.value&&(r.value.group=e.group)});const C=O0(r,b);return z0(r,y,d),N0(r,c,a),o.onMounted(()=>{e.option&&b()}),o.onUnmounted(x),{chart:r,root:a,setOption:p,nonEventAttrs:D,...C}},render(){const e={...this.nonEventAttrs};return e.ref="root",e.class=e.class?["echarts"].concat(e.class):"echarts",o.h(V0,e)}});function Qe(e,n){U0(e)&&(e="100%");var t=$0(e);return e=n===360?e:Math.min(n,Math.max(0,parseFloat(e))),t&&(e=parseInt(String(e*n),10)/100),Math.abs(e-n)<1e-6?1:(n===360?e=(e<0?e%n+n:e%n)/parseFloat(String(n)):e=e%n/parseFloat(String(n)),e)}function U0(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function $0(e){return typeof e=="string"&&e.indexOf("%")!==-1}function Z0(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Qt(e){return e<=1?"".concat(Number(e)*100,"%"):e}function bn(e){return e.length===1?"0"+e:String(e)}function Y0(e,n,t){return{r:Qe(e,255)*255,g:Qe(n,255)*255,b:Qe(t,255)*255}}function vn(e,n,t){return t<0&&(t+=1),t>1&&(t-=1),t<1/6?e+(n-e)*(6*t):t<1/2?n:t<2/3?e+(n-e)*(2/3-t)*6:e}function K0(e,n,t){var a,r,i;if(e=Qe(e,360),n=Qe(n,100),t=Qe(t,100),n===0)r=t,i=t,a=t;else{var s=t<.5?t*(1+n):t+n-t*n,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 Q0(e,n,t){e=Qe(e,255),n=Qe(n,255),t=Qe(t,255);var a=Math.max(e,n,t),r=Math.min(e,n,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=(n-t)/l+(n<t?6:0);break;case n:i=(t-e)/l+2;break;case t:i=(e-n)/l+4;break}i/=6}return{h:i,s:f,v:s}}function J0(e,n,t){e=Qe(e,360)*6,n=Qe(n,100),t=Qe(t,100);var a=Math.floor(e),r=e-a,i=t*(1-n),s=t*(1-r*n),l=t*(1-(1-r)*n),f=a%6,c=[t,s,i,i,l,t][f],u=[l,t,t,s,i,i][f],y=[i,i,l,t,t,s][f];return{r:c*255,g:u*255,b:y*255}}function X0(e,n,t,a){var r=[bn(Math.round(e).toString(16)),bn(Math.round(n).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 Oa(e){return We(e)/255}function We(e){return parseInt(e,16)}var Na={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 Gt(e){var n={r:0,g:0,b:0},t=1,a=null,r=null,i=null,s=!1,l=!1;return typeof e=="string"&&(e=nl(e)),typeof e=="object"&&(ft(e.r)&&ft(e.g)&&ft(e.b)?(n=Y0(e.r,e.g,e.b),s=!0,l=String(e.r).substr(-1)==="%"?"prgb":"rgb"):ft(e.h)&&ft(e.s)&&ft(e.v)?(a=Qt(e.s),r=Qt(e.v),n=J0(e.h,a,r),s=!0,l="hsv"):ft(e.h)&&ft(e.s)&&ft(e.l)&&(a=Qt(e.s),i=Qt(e.l),n=K0(e.h,a,i),s=!0,l="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(t=e.a)),t=Z0(t),{ok:s,format:e.format||l,r:Math.min(255,Math.max(n.r,0)),g:Math.min(255,Math.max(n.g,0)),b:Math.min(255,Math.max(n.b,0)),a:t}}var el="[-\\+]?\\d+%?",tl="[-\\+]?\\d*\\.\\d+%?",gt="(?:".concat(tl,")|(?:").concat(el,")"),Sn="[\\s|\\(]+(".concat(gt,")[,|\\s]+(").concat(gt,")[,|\\s]+(").concat(gt,")\\s*\\)?"),Cn="[\\s|\\(]+(".concat(gt,")[,|\\s]+(").concat(gt,")[,|\\s]+(").concat(gt,")[,|\\s]+(").concat(gt,")\\s*\\)?"),ot={CSS_UNIT:new RegExp(gt),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 nl(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var n=!1;if(Na[e])e=Na[e],n=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var t=ot.rgb.exec(e);return t?{r:t[1],g:t[2],b:t[3]}:(t=ot.rgba.exec(e),t?{r:t[1],g:t[2],b:t[3],a:t[4]}:(t=ot.hsl.exec(e),t?{h:t[1],s:t[2],l:t[3]}:(t=ot.hsla.exec(e),t?{h:t[1],s:t[2],l:t[3],a:t[4]}:(t=ot.hsv.exec(e),t?{h:t[1],s:t[2],v:t[3]}:(t=ot.hsva.exec(e),t?{h:t[1],s:t[2],v:t[3],a:t[4]}:(t=ot.hex8.exec(e),t?{r:We(t[1]),g:We(t[2]),b:We(t[3]),a:Oa(t[4]),format:n?"name":"hex8"}:(t=ot.hex6.exec(e),t?{r:We(t[1]),g:We(t[2]),b:We(t[3]),format:n?"name":"hex"}:(t=ot.hex4.exec(e),t?{r:We(t[1]+t[1]),g:We(t[2]+t[2]),b:We(t[3]+t[3]),a:Oa(t[4]+t[4]),format:n?"name":"hex8"}:(t=ot.hex3.exec(e),t?{r:We(t[1]+t[1]),g:We(t[2]+t[2]),b:We(t[3]+t[3]),format:n?"name":"hex"}:!1)))))))))}function ft(e){return!!ot.CSS_UNIT.exec(String(e))}var Jt=2,La=.16,ol=.05,al=.05,rl=.15,Fa=5,za=4,il=[{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 Ma(e){var n=e.r,t=e.g,a=e.b,r=Q0(n,t,a);return{h:r.h*360,s:r.s,v:r.v}}function Xt(e){var n=e.r,t=e.g,a=e.b;return"#".concat(X0(n,t,a,!1))}function ll(e,n,t){var a=t/100,r={r:(n.r-e.r)*a+e.r,g:(n.g-e.g)*a+e.g,b:(n.b-e.b)*a+e.b};return r}function Pa(e,n,t){var a;return Math.round(e.h)>=60&&Math.round(e.h)<=240?a=t?Math.round(e.h)-Jt*n:Math.round(e.h)+Jt*n:a=t?Math.round(e.h)+Jt*n:Math.round(e.h)-Jt*n,a<0?a+=360:a>=360&&(a-=360),a}function Ha(e,n,t){if(e.h===0&&e.s===0)return e.s;var a;return t?a=e.s-La*n:n===za?a=e.s+La:a=e.s+ol*n,a>1&&(a=1),t&&n===Fa&&a>.1&&(a=.1),a<.06&&(a=.06),Number(a.toFixed(2))}function qa(e,n,t){var a;return t?a=e.v+al*n:a=e.v-rl*n,a>1&&(a=1),Number(a.toFixed(2))}function wn(e){for(var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=[],a=Gt(e),r=Fa;r>0;r-=1){var i=Ma(a),s=Xt(Gt({h:Pa(i,r,!0),s:Ha(i,r,!0),v:qa(i,r,!0)}));t.push(s)}t.push(Xt(a));for(var l=1;l<=za;l+=1){var f=Ma(a),c=Xt(Gt({h:Pa(f,l),s:Ha(f,l),v:qa(f,l)}));t.push(c)}return n.theme==="dark"?il.map(function(u){var y=u.index,d=u.opacity,h=Xt(ll(Gt(n.backgroundColor||"#141414"),Gt(t[y]),d*100));return h}):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 Va=[],Wt=[],sl="insert-css: You need to provide a CSS string. Usage: insertCss(cssString[, options]).";function cl(){var e=document.createElement("style");return e.setAttribute("type","text/css"),e}function fl(e,n){if(n=n||{},e===void 0)throw new Error(sl);var t=n.prepend===!0?"prepend":"append",a=n.container!==void 0?n.container:document.querySelector("head"),r=Va.indexOf(a);r===-1&&(r=Va.push(a)-1,Wt[r]={});var i;return Wt[r]!==void 0&&Wt[r][t]!==void 0?i=Wt[r][t]:(i=Wt[r][t]=cl(),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 ja(e){for(var n=1;n<arguments.length;n++){var t=arguments[n]!=null?Object(arguments[n]):{},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){dl(e,r,t[r])})}return e}function dl(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function ul(e,n){process.env.NODE_ENV!=="production"&&!e&&console!==void 0&&console.error("Warning: ".concat(n))}function hl(e,n){ul(e,"[@ant-design/icons-vue] ".concat(n))}function Ga(e){return typeof e=="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(typeof e.icon=="object"||typeof e.icon=="function")}function Bn(e,n,t){return t?o.h(e.tag,ja({key:n},t,e.attrs),(e.children||[]).map(function(a,r){return Bn(a,"".concat(n,"-").concat(e.tag,"-").concat(r))})):o.h(e.tag,ja({key:n},e.attrs),(e.children||[]).map(function(a,r){return Bn(a,"".concat(n,"-").concat(e.tag,"-").concat(r))}))}function Wa(e){return wn(e)[0]}function Ua(e){return e?Array.isArray(e)?e:[e]:[]}var gl=`
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
- `,Ua=!1,ml=function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:gl;o.nextTick(function(){Ua||(typeof window<"u"&&window.document&&window.document.documentElement&&fl(n,{prepend:!0}),Ua=!0)})},xl=["icon","primaryColor","secondaryColor"];function yl(e,n){if(e==null)return{};var t=pl(e,n),a,r;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)a=i[r],!(n.indexOf(a)>=0)&&Object.prototype.propertyIsEnumerable.call(e,a)&&(t[a]=e[a])}return t}function pl(e,n){if(e==null)return{};var t={},a=Object.keys(e),r,i;for(i=0;i<a.length;i++)r=a[i],!(n.indexOf(r)>=0)&&(t[r]=e[r]);return t}function Jt(e){for(var n=1;n<arguments.length;n++){var t=arguments[n]!=null?Object(arguments[n]):{},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,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}var Wt={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function vl(e){var n=e.primaryColor,t=e.secondaryColor;Wt.primaryColor=n,Wt.secondaryColor=t||Ga(n),Wt.calculated=!!t}function Sl(){return Jt({},Wt)}var Bt=function(n,t){var a=Jt({},n,t.attrs),r=a.icon,i=a.primaryColor,s=a.secondaryColor,l=yl(a,xl),f=Wt;if(i&&(f={primaryColor:i,secondaryColor:s||Ga(i)}),ml(),hl(ja(r),"icon should be icon definiton, but got ".concat(r)),!ja(r))return null;var c=r;return c&&typeof c.icon=="function"&&(c=Jt({},c,{icon:c.icon(f.primaryColor,f.secondaryColor)})),An(c.icon,"svg-".concat(c.name),Jt({},l,{"data-icon":c.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"}))};Bt.props={icon:Object,primaryColor:String,secondaryColor:String,focusable:String},Bt.inheritAttrs=!1,Bt.displayName="IconBase",Bt.getTwoToneColors=Sl,Bt.setTwoToneColors=vl;const kn=Bt;function Cl(e,n){return Tl(e)||kl(e,n)||Al(e,n)||wl()}function wl(){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 Al(e,n){if(e){if(typeof e=="string")return $a(e,n);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 $a(e,n)}}function $a(e,n){(n==null||n>e.length)&&(n=e.length);for(var t=0,a=new Array(n);t<n;t++)a[t]=e[t];return a}function kl(e,n){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),!(n&&a.length===n));r=!0);}catch(f){i=!0,l=f}finally{try{!r&&t.return!=null&&t.return()}finally{if(i)throw l}}return a}}function Tl(e){if(Array.isArray(e))return e}function Za(e){var n=Wa(e),t=Cl(n,2),a=t[0],r=t[1];return kn.setTwoToneColors({primaryColor:a,secondaryColor:r})}function Bl(){var e=kn.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var El=["class","icon","spin","rotate","tabindex","twoToneColor","onClick"];function _l(e,n){return Ol(e)||Rl(e,n)||Il(e,n)||Dl()}function Dl(){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 Il(e,n){if(e){if(typeof e=="string")return Ya(e,n);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 Ya(e,n)}}function Ya(e,n){(n==null||n>e.length)&&(n=e.length);for(var t=0,a=new Array(n);t<n;t++)a[t]=e[t];return a}function Rl(e,n){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),!(n&&a.length===n));r=!0);}catch(f){i=!0,l=f}finally{try{!r&&t.return!=null&&t.return()}finally{if(i)throw l}}return a}}function Ol(e){if(Array.isArray(e))return e}function Ka(e){for(var n=1;n<arguments.length;n++){var t=arguments[n]!=null?Object(arguments[n]):{},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){Tn(e,r,t[r])})}return e}function Tn(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function Ll(e,n){if(e==null)return{};var t=Nl(e,n),a,r;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)a=i[r],!(n.indexOf(a)>=0)&&Object.prototype.propertyIsEnumerable.call(e,a)&&(t[a]=e[a])}return t}function Nl(e,n){if(e==null)return{};var t={},a=Object.keys(e),r,i;for(i=0;i<a.length;i++)r=a[i],!(n.indexOf(r)>=0)&&(t[r]=e[r]);return t}Za("#1890ff");var Et=function(n,t){var a,r=Ka({},n,t.attrs),i=r.class,s=r.icon,l=r.spin,f=r.rotate,c=r.tabindex,u=r.twoToneColor,x=r.onClick,d=Ll(r,El),h=(a={anticon:!0},Tn(a,"anticon-".concat(s.name),!!s.name),Tn(a,i,i),a),m=l===""||l||s.name==="loading"?"anticon-spin":"",g=c;g===void 0&&x&&(g=-1,d.tabindex=g);var v=f?{msTransform:"rotate(".concat(f,"deg)"),transform:"rotate(".concat(f,"deg)")}:void 0,_=Wa(u),b=_l(_,2),p=b[0],y=b[1];return o.createVNode("span",Ka({role:"img","aria-label":s.name},d,{onClick:x,class:h}),[o.createVNode(kn,{class:m,icon:s,primaryColor:p,secondaryColor:y,style:v},null)])};Et.props={spin:Boolean,rotate:Number,icon:Object,twoToneColor:String},Et.displayName="AntdIcon",Et.inheritAttrs=!1,Et.getTwoToneColor=Bl,Et.setTwoToneColor=Za;const Xa=Et;var Fl={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 zl=Fl;function Qa(e){for(var n=1;n<arguments.length;n++){var t=arguments[n]!=null?Object(arguments[n]):{},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){Ml(e,r,t[r])})}return e}function Ml(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}var Bn=function(n,t){var a=Qa({},n,t.attrs);return o.createVNode(Xa,Qa({},a,{icon:zl}),null)};Bn.displayName="CloseOutlined",Bn.inheritAttrs=!1;const Pl=Bn;var Hl={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 ql=Hl;function Ja(e){for(var n=1;n<arguments.length;n++){var t=arguments[n]!=null?Object(arguments[n]):{},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){Vl(e,r,t[r])})}return e}function Vl(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}var En=function(n,t){var a=Ja({},n,t.attrs);return o.createVNode(Xa,Ja({},a,{icon:ql}),null)};En.displayName="LoadingOutlined",En.inheritAttrs=!1;const jl=En,Gl=o.defineComponent({props:{spinning:{type:Boolean,default:!1}},components:{ASpin:ie.Spin},setup(){return{indicator:o.h(jl,{style:{fontSize:"24px",color:"#1890ff"},spin:!0})}}}),Md="",ue=(e,n)=>{const t=e.__vccOpts||e;for(const[a,r]of n)t[a]=r;return t},Wl={class:"spin-wrapper"};function Ul(e,n,t,a,r,i){const s=o.resolveComponent("a-spin");return o.openBlock(),o.createElementBlock("div",Wl,[e.spinning?(o.openBlock(),o.createBlock(s,{key:0,class:"spin",spinning:e.spinning,indicator:e.indicator,tip:"加载中..."},null,8,["spinning","indicator"])):o.renderSlot(e.$slots,"default",{key:1})])}const _t=ue(Gl,[["render",Ul]]),$l=o.defineComponent({name:"Skeleton",props:{loading:{type:Boolean,default:!1}},components:{ASkeleton:ie.Skeleton}});function Zl(e,n,t,a,r,i){const s=o.resolveComponent("a-skeleton");return o.openBlock(),o.createBlock(s,{active:"",loading:e.loading},{default:o.withCtx(()=>[o.renderSlot(e.$slots,"default")]),_:3},8,["loading"])}const en=ue($l,[["render",Zl]]);process.env.NODE_ENV!=="production"&&Object.freeze({}),process.env.NODE_ENV!=="production"&&Object.freeze([]);const ge=(e,n)=>{if(e.install=t=>{for(const a of[e,...Object.values(n??{})])t.component(a.name,a)},n)for(const[t,a]of Object.entries(n))e[t]=a;return e},ve={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"},me=e=>{const n={};if(typeof e=="object"&&e!=null)for(const t in e){const a=e[t];n[t]={type:a==null?void 0:a.constructor,default:a}}return n},_n={width:"1920px",height:"1080px",backgroundColor:"#ffffff",backgroundImage:"",backgroundSize:"100% 100%",contextRequestUrl:"",mode:"normal"},Dn=me(_n),Yl=["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"],pe=(e,n=[])=>{const t=Ne.without(Yl,...n);return o.computed(()=>Ne.pick(e,t))},In="EVENT_BUS",Fe="GLOBAL_CONFIG",we="GLOBAL_MODEL",Oe="REQUEST_MODEL",er="GLOBAL_TOKEN",Ut="REFRESH_PAGE",tr="MODAL_MODEL",gt="LOADED_DATA",at=18,nr="ygt",or=((p0=window==null?void 0:window.config)==null?void 0:p0.indicatorURL)||"";(b0=window==null?void 0:window.config)!=null&&b0.uploadPath;const ar=((v0=window==null?void 0:window.config)==null?void 0:v0.routerBaseURL)||"./",Kl=((S0=window==null?void 0:window.config)==null?void 0:S0.erdURL)||"",_e=(e,n)=>{o.watch(()=>e.id,t=>{const a=o.inject(In,{onEvent:(r,i)=>{}});t!=null&&t!==""&&a.onEvent(t,n)},{immediate:!0})},Ae=e=>{const n=e.events,t=e.id,a=o.inject(In,{emitEvent:(i,s)=>{}}),{touchEventId:r}=o.inject(Fe,{touchEventId:o.ref("")});return(i,s=()=>{})=>function(){s.call(this,...arguments);const{emitEvent:l}=a;n.forEach(f=>{if(i===f.on)try{r.value=t,l(f.target,f.emit)}catch(c){console.error(c)}})}},Dt=(e,n)=>{let{name:t="name",value:a="value",type:r="type"}=n||{};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],x=u[t]||"",d=u[a]||"",h=u[r]||"";if(i.has(h)){const m=i.get(h);m.push({name:x,value:d,...u}),i.set(h,m)}else i.set(h,[{name:x,value:d,...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 x of u)l.includes(x.name)||l.push(x.name);else l.push(...u.map(x=>x.name));return{dimensions:l,dataset:f}};var le=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function rr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Xl(e){if(e.__esModule)return e;var n=e.default;if(typeof n=="function"){var t=function a(){return this instanceof a?Reflect.construct(n,arguments,this.constructor):n.apply(this,arguments)};t.prototype=n.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 ir={exports:{}};function Ql(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 Rn={exports:{}};const Jl=Xl(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var lr;function ce(){return lr||(lr=1,function(e,n){(function(t,a){e.exports=a()})(le,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 le<"u"&&le.crypto&&(i=le.crypto),!i&&typeof Ql=="function")try{i=Jl}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 b(){}return function(p){var y;return b.prototype=p,y=new b,b.prototype=null,y}}(),f={},c=f.lib={},u=c.Base=function(){return{extend:function(b){var p=l(this);return b&&p.mixIn(b),(!p.hasOwnProperty("init")||this.init===p.init)&&(p.init=function(){p.$super.init.apply(this,arguments)}),p.init.prototype=p,p.$super=this,p},create:function(){var b=this.extend();return b.init.apply(b,arguments),b},init:function(){},mixIn:function(b){for(var p in b)b.hasOwnProperty(p)&&(this[p]=b[p]);b.hasOwnProperty("toString")&&(this.toString=b.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),x=c.WordArray=u.extend({init:function(b,p){b=this.words=b||[],p!=r?this.sigBytes=p:this.sigBytes=b.length*4},toString:function(b){return(b||h).stringify(this)},concat:function(b){var p=this.words,y=b.words,k=this.sigBytes,C=b.sigBytes;if(this.clamp(),k%4)for(var O=0;O<C;O++){var L=y[O>>>2]>>>24-O%4*8&255;p[k+O>>>2]|=L<<24-(k+O)%4*8}else for(var N=0;N<C;N+=4)p[k+N>>>2]=y[N>>>2];return this.sigBytes+=C,this},clamp:function(){var b=this.words,p=this.sigBytes;b[p>>>2]&=4294967295<<32-p%4*8,b.length=a.ceil(p/4)},clone:function(){var b=u.clone.call(this);return b.words=this.words.slice(0),b},random:function(b){for(var p=[],y=0;y<b;y+=4)p.push(s());return new x.init(p,b)}}),d=f.enc={},h=d.Hex={stringify:function(b){for(var p=b.words,y=b.sigBytes,k=[],C=0;C<y;C++){var O=p[C>>>2]>>>24-C%4*8&255;k.push((O>>>4).toString(16)),k.push((O&15).toString(16))}return k.join("")},parse:function(b){for(var p=b.length,y=[],k=0;k<p;k+=2)y[k>>>3]|=parseInt(b.substr(k,2),16)<<24-k%8*4;return new x.init(y,p/2)}},m=d.Latin1={stringify:function(b){for(var p=b.words,y=b.sigBytes,k=[],C=0;C<y;C++){var O=p[C>>>2]>>>24-C%4*8&255;k.push(String.fromCharCode(O))}return k.join("")},parse:function(b){for(var p=b.length,y=[],k=0;k<p;k++)y[k>>>2]|=(b.charCodeAt(k)&255)<<24-k%4*8;return new x.init(y,p)}},g=d.Utf8={stringify:function(b){try{return decodeURIComponent(escape(m.stringify(b)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(b){return m.parse(unescape(encodeURIComponent(b)))}},v=c.BufferedBlockAlgorithm=u.extend({reset:function(){this._data=new x.init,this._nDataBytes=0},_append:function(b){typeof b=="string"&&(b=g.parse(b)),this._data.concat(b),this._nDataBytes+=b.sigBytes},_process:function(b){var p,y=this._data,k=y.words,C=y.sigBytes,O=this.blockSize,L=O*4,N=C/L;b?N=a.ceil(N):N=a.max((N|0)-this._minBufferSize,0);var B=N*O,w=a.min(B*4,C);if(B){for(var E=0;E<B;E+=O)this._doProcessBlock(k,E);p=k.splice(0,B),y.sigBytes-=w}return new x.init(p,w)},clone:function(){var b=u.clone.call(this);return b._data=this._data.clone(),b},_minBufferSize:0});c.Hasher=v.extend({cfg:u.extend(),init:function(b){this.cfg=this.cfg.extend(b),this.reset()},reset:function(){v.reset.call(this),this._doReset()},update:function(b){return this._append(b),this._process(),this},finalize:function(b){b&&this._append(b);var p=this._doFinalize();return p},blockSize:16,_createHelper:function(b){return function(p,y){return new b.init(y).finalize(p)}},_createHmacHelper:function(b){return function(p,y){return new _.HMAC.init(b,y).finalize(p)}}});var _=f.algo={};return f}(Math);return t})}(Rn)),Rn.exports}var On={exports:{}},sr;function tn(){return sr||(sr=1,function(e,n){(function(t,a){e.exports=a(ce())})(le,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,x=[],d=0;d<u;d++){var h=c[d];x.push(h.high),x.push(h.low)}return l.create(x,this.sigBytes)},clone:function(){for(var c=s.clone.call(this),u=c.words=this.words.slice(0),x=u.length,d=0;d<x;d++)u[d]=u[d].clone();return c}})}(),t})}(On)),On.exports}var Ln={exports:{}},cr;function es(){return cr||(cr=1,function(e,n){(function(t,a){e.exports=a(ce())})(le,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=[],x=0;x<c;x++)u[x>>>2]|=f[x]<<24-x%4*8;s.call(this,u,c)}else s.apply(this,arguments)};l.prototype=i}}(),t.lib.WordArray})}(Ln)),Ln.exports}var Nn={exports:{}},fr;function ts(){return fr||(fr=1,function(e,n){(function(t,a){e.exports=a(ce())})(le,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,x=[],d=0;d<u;d+=2){var h=c[d>>>2]>>>16-d%4*8&65535;x.push(String.fromCharCode(h))}return x.join("")},parse:function(f){for(var c=f.length,u=[],x=0;x<c;x++)u[x>>>1]|=f.charCodeAt(x)<<16-x%2*16;return i.create(u,c*2)}},s.Utf16LE={stringify:function(f){for(var c=f.words,u=f.sigBytes,x=[],d=0;d<u;d+=2){var h=l(c[d>>>2]>>>16-d%4*8&65535);x.push(String.fromCharCode(h))}return x.join("")},parse:function(f){for(var c=f.length,u=[],x=0;x<c;x++)u[x>>>1]|=l(f.charCodeAt(x)<<16-x%2*16);return i.create(u,c*2)}};function l(f){return f<<8&4278255360|f>>>8&16711935}}(),t.enc.Utf16})}(Nn)),Nn.exports}var Fn={exports:{}},dr;function It(){return dr||(dr=1,function(e,n){(function(t,a){e.exports=a(ce())})(le,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,x=this._map;f.clamp();for(var d=[],h=0;h<u;h+=3)for(var m=c[h>>>2]>>>24-h%4*8&255,g=c[h+1>>>2]>>>24-(h+1)%4*8&255,v=c[h+2>>>2]>>>24-(h+2)%4*8&255,_=m<<16|g<<8|v,b=0;b<4&&h+b*.75<u;b++)d.push(x.charAt(_>>>6*(3-b)&63));var p=x.charAt(64);if(p)for(;d.length%4;)d.push(p);return d.join("")},parse:function(f){var c=f.length,u=this._map,x=this._reverseMap;if(!x){x=this._reverseMap=[];for(var d=0;d<u.length;d++)x[u.charCodeAt(d)]=d}var h=u.charAt(64);if(h){var m=f.indexOf(h);m!==-1&&(c=m)}return l(f,c,x)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function l(f,c,u){for(var x=[],d=0,h=0;h<c;h++)if(h%4){var m=u[f.charCodeAt(h-1)]<<h%4*2,g=u[f.charCodeAt(h)]>>>6-h%4*2,v=m|g;x[d>>>2]|=v<<24-d%4*8,d++}return i.create(x,d)}}(),t.enc.Base64})}(Fn)),Fn.exports}var zn={exports:{}},ur;function ns(){return ur||(ur=1,function(e,n){(function(t,a){e.exports=a(ce())})(le,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,x=f.sigBytes,d=c?this._safe_map:this._map;f.clamp();for(var h=[],m=0;m<x;m+=3)for(var g=u[m>>>2]>>>24-m%4*8&255,v=u[m+1>>>2]>>>24-(m+1)%4*8&255,_=u[m+2>>>2]>>>24-(m+2)%4*8&255,b=g<<16|v<<8|_,p=0;p<4&&m+p*.75<x;p++)h.push(d.charAt(b>>>6*(3-p)&63));var y=d.charAt(64);if(y)for(;h.length%4;)h.push(y);return h.join("")},parse:function(f,c=!0){var u=f.length,x=c?this._safe_map:this._map,d=this._reverseMap;if(!d){d=this._reverseMap=[];for(var h=0;h<x.length;h++)d[x.charCodeAt(h)]=h}var m=x.charAt(64);if(m){var g=f.indexOf(m);g!==-1&&(u=g)}return l(f,u,d)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function l(f,c,u){for(var x=[],d=0,h=0;h<c;h++)if(h%4){var m=u[f.charCodeAt(h-1)]<<h%4*2,g=u[f.charCodeAt(h)]>>>6-h%4*2,v=m|g;x[d>>>2]|=v<<24-d%4*8,d++}return i.create(x,d)}}(),t.enc.Base64url})}(zn)),zn.exports}var Mn={exports:{}},hr;function Rt(){return hr||(hr=1,function(e,n){(function(t,a){e.exports=a(ce())})(le,function(t){return function(a){var r=t,i=r.lib,s=i.WordArray,l=i.Hasher,f=r.algo,c=[];(function(){for(var g=0;g<64;g++)c[g]=a.abs(a.sin(g+1))*4294967296|0})();var u=f.MD5=l.extend({_doReset:function(){this._hash=new s.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(g,v){for(var _=0;_<16;_++){var b=v+_,p=g[b];g[b]=(p<<8|p>>>24)&16711935|(p<<24|p>>>8)&4278255360}var y=this._hash.words,k=g[v+0],C=g[v+1],O=g[v+2],L=g[v+3],N=g[v+4],B=g[v+5],w=g[v+6],E=g[v+7],S=g[v+8],D=g[v+9],z=g[v+10],R=g[v+11],M=g[v+12],H=g[v+13],j=g[v+14],P=g[v+15],A=y[0],I=y[1],T=y[2],F=y[3];A=x(A,I,T,F,k,7,c[0]),F=x(F,A,I,T,C,12,c[1]),T=x(T,F,A,I,O,17,c[2]),I=x(I,T,F,A,L,22,c[3]),A=x(A,I,T,F,N,7,c[4]),F=x(F,A,I,T,B,12,c[5]),T=x(T,F,A,I,w,17,c[6]),I=x(I,T,F,A,E,22,c[7]),A=x(A,I,T,F,S,7,c[8]),F=x(F,A,I,T,D,12,c[9]),T=x(T,F,A,I,z,17,c[10]),I=x(I,T,F,A,R,22,c[11]),A=x(A,I,T,F,M,7,c[12]),F=x(F,A,I,T,H,12,c[13]),T=x(T,F,A,I,j,17,c[14]),I=x(I,T,F,A,P,22,c[15]),A=d(A,I,T,F,C,5,c[16]),F=d(F,A,I,T,w,9,c[17]),T=d(T,F,A,I,R,14,c[18]),I=d(I,T,F,A,k,20,c[19]),A=d(A,I,T,F,B,5,c[20]),F=d(F,A,I,T,z,9,c[21]),T=d(T,F,A,I,P,14,c[22]),I=d(I,T,F,A,N,20,c[23]),A=d(A,I,T,F,D,5,c[24]),F=d(F,A,I,T,j,9,c[25]),T=d(T,F,A,I,L,14,c[26]),I=d(I,T,F,A,S,20,c[27]),A=d(A,I,T,F,H,5,c[28]),F=d(F,A,I,T,O,9,c[29]),T=d(T,F,A,I,E,14,c[30]),I=d(I,T,F,A,M,20,c[31]),A=h(A,I,T,F,B,4,c[32]),F=h(F,A,I,T,S,11,c[33]),T=h(T,F,A,I,R,16,c[34]),I=h(I,T,F,A,j,23,c[35]),A=h(A,I,T,F,C,4,c[36]),F=h(F,A,I,T,N,11,c[37]),T=h(T,F,A,I,E,16,c[38]),I=h(I,T,F,A,z,23,c[39]),A=h(A,I,T,F,H,4,c[40]),F=h(F,A,I,T,k,11,c[41]),T=h(T,F,A,I,L,16,c[42]),I=h(I,T,F,A,w,23,c[43]),A=h(A,I,T,F,D,4,c[44]),F=h(F,A,I,T,M,11,c[45]),T=h(T,F,A,I,P,16,c[46]),I=h(I,T,F,A,O,23,c[47]),A=m(A,I,T,F,k,6,c[48]),F=m(F,A,I,T,E,10,c[49]),T=m(T,F,A,I,j,15,c[50]),I=m(I,T,F,A,B,21,c[51]),A=m(A,I,T,F,M,6,c[52]),F=m(F,A,I,T,L,10,c[53]),T=m(T,F,A,I,z,15,c[54]),I=m(I,T,F,A,C,21,c[55]),A=m(A,I,T,F,S,6,c[56]),F=m(F,A,I,T,P,10,c[57]),T=m(T,F,A,I,w,15,c[58]),I=m(I,T,F,A,H,21,c[59]),A=m(A,I,T,F,N,6,c[60]),F=m(F,A,I,T,R,10,c[61]),T=m(T,F,A,I,O,15,c[62]),I=m(I,T,F,A,D,21,c[63]),y[0]=y[0]+A|0,y[1]=y[1]+I|0,y[2]=y[2]+T|0,y[3]=y[3]+F|0},_doFinalize:function(){var g=this._data,v=g.words,_=this._nDataBytes*8,b=g.sigBytes*8;v[b>>>5]|=128<<24-b%32;var p=a.floor(_/4294967296),y=_;v[(b+64>>>9<<4)+15]=(p<<8|p>>>24)&16711935|(p<<24|p>>>8)&4278255360,v[(b+64>>>9<<4)+14]=(y<<8|y>>>24)&16711935|(y<<24|y>>>8)&4278255360,g.sigBytes=(v.length+1)*4,this._process();for(var k=this._hash,C=k.words,O=0;O<4;O++){var L=C[O];C[O]=(L<<8|L>>>24)&16711935|(L<<24|L>>>8)&4278255360}return k},clone:function(){var g=l.clone.call(this);return g._hash=this._hash.clone(),g}});function x(g,v,_,b,p,y,k){var C=g+(v&_|~v&b)+p+k;return(C<<y|C>>>32-y)+v}function d(g,v,_,b,p,y,k){var C=g+(v&b|_&~b)+p+k;return(C<<y|C>>>32-y)+v}function h(g,v,_,b,p,y,k){var C=g+(v^_^b)+p+k;return(C<<y|C>>>32-y)+v}function m(g,v,_,b,p,y,k){var C=g+(_^(v|~b))+p+k;return(C<<y|C>>>32-y)+v}r.MD5=l._createHelper(u),r.HmacMD5=l._createHmacHelper(u)}(Math),t.MD5})}(Mn)),Mn.exports}var Pn={exports:{}},gr;function Hn(){return gr||(gr=1,function(e,n){(function(t,a){e.exports=a(ce())})(le,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,x){for(var d=this._hash.words,h=d[0],m=d[1],g=d[2],v=d[3],_=d[4],b=0;b<80;b++){if(b<16)f[b]=u[x+b]|0;else{var p=f[b-3]^f[b-8]^f[b-14]^f[b-16];f[b]=p<<1|p>>>31}var y=(h<<5|h>>>27)+_+f[b];b<20?y+=(m&g|~m&v)+1518500249:b<40?y+=(m^g^v)+1859775393:b<60?y+=(m&g|m&v|g&v)-1894007588:y+=(m^g^v)-899497514,_=v,v=g,g=m<<30|m>>>2,m=h,h=y}d[0]=d[0]+h|0,d[1]=d[1]+m|0,d[2]=d[2]+g|0,d[3]=d[3]+v|0,d[4]=d[4]+_|0},_doFinalize:function(){var u=this._data,x=u.words,d=this._nDataBytes*8,h=u.sigBytes*8;return x[h>>>5]|=128<<24-h%32,x[(h+64>>>9<<4)+14]=Math.floor(d/4294967296),x[(h+64>>>9<<4)+15]=d,u.sigBytes=x.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})}(Pn)),Pn.exports}var qn={exports:{}},mr;function xr(){return mr||(mr=1,function(e,n){(function(t,a){e.exports=a(ce())})(le,function(t){return function(a){var r=t,i=r.lib,s=i.WordArray,l=i.Hasher,f=r.algo,c=[],u=[];(function(){function h(_){for(var b=a.sqrt(_),p=2;p<=b;p++)if(!(_%p))return!1;return!0}function m(_){return(_-(_|0))*4294967296|0}for(var g=2,v=0;v<64;)h(g)&&(v<8&&(c[v]=m(a.pow(g,1/2))),u[v]=m(a.pow(g,1/3)),v++),g++})();var x=[],d=f.SHA256=l.extend({_doReset:function(){this._hash=new s.init(c.slice(0))},_doProcessBlock:function(h,m){for(var g=this._hash.words,v=g[0],_=g[1],b=g[2],p=g[3],y=g[4],k=g[5],C=g[6],O=g[7],L=0;L<64;L++){if(L<16)x[L]=h[m+L]|0;else{var N=x[L-15],B=(N<<25|N>>>7)^(N<<14|N>>>18)^N>>>3,w=x[L-2],E=(w<<15|w>>>17)^(w<<13|w>>>19)^w>>>10;x[L]=B+x[L-7]+E+x[L-16]}var S=y&k^~y&C,D=v&_^v&b^_&b,z=(v<<30|v>>>2)^(v<<19|v>>>13)^(v<<10|v>>>22),R=(y<<26|y>>>6)^(y<<21|y>>>11)^(y<<7|y>>>25),M=O+R+S+u[L]+x[L],H=z+D;O=C,C=k,k=y,y=p+M|0,p=b,b=_,_=v,v=M+H|0}g[0]=g[0]+v|0,g[1]=g[1]+_|0,g[2]=g[2]+b|0,g[3]=g[3]+p|0,g[4]=g[4]+y|0,g[5]=g[5]+k|0,g[6]=g[6]+C|0,g[7]=g[7]+O|0},_doFinalize:function(){var h=this._data,m=h.words,g=this._nDataBytes*8,v=h.sigBytes*8;return m[v>>>5]|=128<<24-v%32,m[(v+64>>>9<<4)+14]=a.floor(g/4294967296),m[(v+64>>>9<<4)+15]=g,h.sigBytes=m.length*4,this._process(),this._hash},clone:function(){var h=l.clone.call(this);return h._hash=this._hash.clone(),h}});r.SHA256=l._createHelper(d),r.HmacSHA256=l._createHmacHelper(d)}(Math),t.SHA256})}(qn)),qn.exports}var Vn={exports:{}},yr;function os(){return yr||(yr=1,function(e,n){(function(t,a,r){e.exports=a(ce(),xr())})(le,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})}(Vn)),Vn.exports}var jn={exports:{}},pr;function br(){return pr||(pr=1,function(e,n){(function(t,a,r){e.exports=a(ce(),tn())})(le,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 x=[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)],d=[];(function(){for(var m=0;m<80;m++)d[m]=u()})();var h=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(m,g){for(var v=this._hash.words,_=v[0],b=v[1],p=v[2],y=v[3],k=v[4],C=v[5],O=v[6],L=v[7],N=_.high,B=_.low,w=b.high,E=b.low,S=p.high,D=p.low,z=y.high,R=y.low,M=k.high,H=k.low,j=C.high,P=C.low,A=O.high,I=O.low,T=L.high,F=L.low,U=N,$=B,ne=w,Y=E,X=S,Z=D,J=z,ae=R,he=M,fe=H,Ie=j,He=P,qe=A,$e=I,Ze=T,et=F,Ee=0;Ee<80;Ee++){var Se,Re,je=d[Ee];if(Ee<16)Re=je.high=m[g+Ee*2]|0,Se=je.low=m[g+Ee*2+1]|0;else{var tt=d[Ee-15],Me=tt.high,Ve=tt.low,V=(Me>>>1|Ve<<31)^(Me>>>8|Ve<<24)^Me>>>7,W=(Ve>>>1|Me<<31)^(Ve>>>8|Me<<24)^(Ve>>>7|Me<<25),K=d[Ee-2],te=K.high,oe=K.low,ee=(te>>>19|oe<<13)^(te<<3|oe>>>29)^te>>>6,Q=(oe>>>19|te<<13)^(oe<<3|te>>>29)^(oe>>>6|te<<26),de=d[Ee-7],ye=de.high,xe=de.low,De=d[Ee-16],nt=De.high,lt=De.low;Se=W+xe,Re=V+ye+(Se>>>0<W>>>0?1:0),Se=Se+Q,Re=Re+ee+(Se>>>0<Q>>>0?1:0),Se=Se+lt,Re=Re+nt+(Se>>>0<lt>>>0?1:0),je.high=Re,je.low=Se}var Ea=he&Ie^~he&qe,Ct=fe&He^~fe&$e,Yt=U&ne^U&X^ne&X,mn=$&Y^$&Z^Y&Z,_a=(U>>>28|$<<4)^(U<<30|$>>>2)^(U<<25|$>>>7),C0=($>>>28|U<<4)^($<<30|U>>>2)^($<<25|U>>>7),Sd=(he>>>14|fe<<18)^(he>>>18|fe<<14)^(he<<23|fe>>>9),Cd=(fe>>>14|he<<18)^(fe>>>18|he<<14)^(fe<<23|he>>>9),w0=x[Ee],wd=w0.high,A0=w0.low,Ye=et+Cd,wt=Ze+Sd+(Ye>>>0<et>>>0?1:0),Ye=Ye+Ct,wt=wt+Ea+(Ye>>>0<Ct>>>0?1:0),Ye=Ye+A0,wt=wt+wd+(Ye>>>0<A0>>>0?1:0),Ye=Ye+Se,wt=wt+Re+(Ye>>>0<Se>>>0?1:0),k0=C0+mn,Ad=_a+Yt+(k0>>>0<C0>>>0?1:0);Ze=qe,et=$e,qe=Ie,$e=He,Ie=he,He=fe,fe=ae+Ye|0,he=J+wt+(fe>>>0<ae>>>0?1:0)|0,J=X,ae=Z,X=ne,Z=Y,ne=U,Y=$,$=Ye+k0|0,U=wt+Ad+($>>>0<Ye>>>0?1:0)|0}B=_.low=B+$,_.high=N+U+(B>>>0<$>>>0?1:0),E=b.low=E+Y,b.high=w+ne+(E>>>0<Y>>>0?1:0),D=p.low=D+Z,p.high=S+X+(D>>>0<Z>>>0?1:0),R=y.low=R+ae,y.high=z+J+(R>>>0<ae>>>0?1:0),H=k.low=H+fe,k.high=M+he+(H>>>0<fe>>>0?1:0),P=C.low=P+He,C.high=j+Ie+(P>>>0<He>>>0?1:0),I=O.low=I+$e,O.high=A+qe+(I>>>0<$e>>>0?1:0),F=L.low=F+et,L.high=T+Ze+(F>>>0<et>>>0?1:0)},_doFinalize:function(){var m=this._data,g=m.words,v=this._nDataBytes*8,_=m.sigBytes*8;g[_>>>5]|=128<<24-_%32,g[(_+128>>>10<<5)+30]=Math.floor(v/4294967296),g[(_+128>>>10<<5)+31]=v,m.sigBytes=g.length*4,this._process();var b=this._hash.toX32();return b},clone:function(){var m=i.clone.call(this);return m._hash=this._hash.clone(),m},blockSize:1024/32});a.SHA512=i._createHelper(h),a.HmacSHA512=i._createHmacHelper(h)}(),t.SHA512})}(jn)),jn.exports}var Gn={exports:{}},vr;function as(){return vr||(vr=1,function(e,n){(function(t,a,r){e.exports=a(ce(),tn(),br())})(le,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})}(Gn)),Gn.exports}var Wn={exports:{}},Sr;function rs(){return Sr||(Sr=1,function(e,n){(function(t,a,r){e.exports=a(ce(),tn())})(le,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,x=[],d=[],h=[];(function(){for(var v=1,_=0,b=0;b<24;b++){x[v+5*_]=(b+1)*(b+2)/2%64;var p=_%5,y=(2*v+3*_)%5;v=p,_=y}for(var v=0;v<5;v++)for(var _=0;_<5;_++)d[v+5*_]=_+(2*v+3*_)%5*5;for(var k=1,C=0;C<24;C++){for(var O=0,L=0,N=0;N<7;N++){if(k&1){var B=(1<<N)-1;B<32?L^=1<<B:O^=1<<B-32}k&128?k=k<<1^113:k<<=1}h[C]=c.create(O,L)}})();var m=[];(function(){for(var v=0;v<25;v++)m[v]=c.create()})();var g=u.SHA3=l.extend({cfg:l.cfg.extend({outputLength:512}),_doReset:function(){for(var v=this._state=[],_=0;_<25;_++)v[_]=new c.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(v,_){for(var b=this._state,p=this.blockSize/2,y=0;y<p;y++){var k=v[_+2*y],C=v[_+2*y+1];k=(k<<8|k>>>24)&16711935|(k<<24|k>>>8)&4278255360,C=(C<<8|C>>>24)&16711935|(C<<24|C>>>8)&4278255360;var O=b[y];O.high^=C,O.low^=k}for(var L=0;L<24;L++){for(var N=0;N<5;N++){for(var B=0,w=0,E=0;E<5;E++){var O=b[N+5*E];B^=O.high,w^=O.low}var S=m[N];S.high=B,S.low=w}for(var N=0;N<5;N++)for(var D=m[(N+4)%5],z=m[(N+1)%5],R=z.high,M=z.low,B=D.high^(R<<1|M>>>31),w=D.low^(M<<1|R>>>31),E=0;E<5;E++){var O=b[N+5*E];O.high^=B,O.low^=w}for(var H=1;H<25;H++){var B,w,O=b[H],j=O.high,P=O.low,A=x[H];A<32?(B=j<<A|P>>>32-A,w=P<<A|j>>>32-A):(B=P<<A-32|j>>>64-A,w=j<<A-32|P>>>64-A);var I=m[d[H]];I.high=B,I.low=w}var T=m[0],F=b[0];T.high=F.high,T.low=F.low;for(var N=0;N<5;N++)for(var E=0;E<5;E++){var H=N+5*E,O=b[H],U=m[H],$=m[(N+1)%5+5*E],ne=m[(N+2)%5+5*E];O.high=U.high^~$.high&ne.high,O.low=U.low^~$.low&ne.low}var O=b[0],Y=h[L];O.high^=Y.high,O.low^=Y.low}},_doFinalize:function(){var v=this._data,_=v.words;this._nDataBytes*8;var b=v.sigBytes*8,p=this.blockSize*32;_[b>>>5]|=1<<24-b%32,_[(a.ceil((b+1)/p)*p>>>5)-1]|=128,v.sigBytes=_.length*4,this._process();for(var y=this._state,k=this.cfg.outputLength/8,C=k/8,O=[],L=0;L<C;L++){var N=y[L],B=N.high,w=N.low;B=(B<<8|B>>>24)&16711935|(B<<24|B>>>8)&4278255360,w=(w<<8|w>>>24)&16711935|(w<<24|w>>>8)&4278255360,O.push(w),O.push(B)}return new s.init(O,k)},clone:function(){for(var v=l.clone.call(this),_=v._state=this._state.slice(0),b=0;b<25;b++)_[b]=_[b].clone();return v}});r.SHA3=l._createHelper(g),r.HmacSHA3=l._createHmacHelper(g)}(Math),t.SHA3})}(Wn)),Wn.exports}var Un={exports:{}},Cr;function is(){return Cr||(Cr=1,function(e,n){(function(t,a){e.exports=a(ce())})(le,function(t){/** @preserve
56
+ `,$a=!1,ml=function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:gl;o.nextTick(function(){$a||(typeof window<"u"&&window.document&&window.document.documentElement&&fl(n,{prepend:!0}),$a=!0)})},yl=["icon","primaryColor","secondaryColor"];function xl(e,n){if(e==null)return{};var t=pl(e,n),a,r;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)a=i[r],!(n.indexOf(a)>=0)&&Object.prototype.propertyIsEnumerable.call(e,a)&&(t[a]=e[a])}return t}function pl(e,n){if(e==null)return{};var t={},a=Object.keys(e),r,i;for(i=0;i<a.length;i++)r=a[i],!(n.indexOf(r)>=0)&&(t[r]=e[r]);return t}function en(e){for(var n=1;n<arguments.length;n++){var t=arguments[n]!=null?Object(arguments[n]):{},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,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}var Ut={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function vl(e){var n=e.primaryColor,t=e.secondaryColor;Ut.primaryColor=n,Ut.secondaryColor=t||Wa(n),Ut.calculated=!!t}function Sl(){return en({},Ut)}var Et=function(n,t){var a=en({},n,t.attrs),r=a.icon,i=a.primaryColor,s=a.secondaryColor,l=xl(a,yl),f=Ut;if(i&&(f={primaryColor:i,secondaryColor:s||Wa(i)}),ml(),hl(Ga(r),"icon should be icon definiton, but got ".concat(r)),!Ga(r))return null;var c=r;return c&&typeof c.icon=="function"&&(c=en({},c,{icon:c.icon(f.primaryColor,f.secondaryColor)})),Bn(c.icon,"svg-".concat(c.name),en({},l,{"data-icon":c.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"}))};Et.props={icon:Object,primaryColor:String,secondaryColor:String,focusable:String},Et.inheritAttrs=!1,Et.displayName="IconBase",Et.getTwoToneColors=Sl,Et.setTwoToneColors=vl;const En=Et;function Cl(e,n){return Tl(e)||kl(e,n)||Al(e,n)||wl()}function wl(){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 Al(e,n){if(e){if(typeof e=="string")return Za(e,n);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 Za(e,n)}}function Za(e,n){(n==null||n>e.length)&&(n=e.length);for(var t=0,a=new Array(n);t<n;t++)a[t]=e[t];return a}function kl(e,n){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),!(n&&a.length===n));r=!0);}catch(f){i=!0,l=f}finally{try{!r&&t.return!=null&&t.return()}finally{if(i)throw l}}return a}}function Tl(e){if(Array.isArray(e))return e}function Ya(e){var n=Ua(e),t=Cl(n,2),a=t[0],r=t[1];return En.setTwoToneColors({primaryColor:a,secondaryColor:r})}function Bl(){var e=En.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var El=["class","icon","spin","rotate","tabindex","twoToneColor","onClick"];function Dl(e,n){return Ol(e)||Il(e,n)||Rl(e,n)||_l()}function _l(){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 Rl(e,n){if(e){if(typeof e=="string")return Ka(e,n);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,n)}}function Ka(e,n){(n==null||n>e.length)&&(n=e.length);for(var t=0,a=new Array(n);t<n;t++)a[t]=e[t];return a}function Il(e,n){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),!(n&&a.length===n));r=!0);}catch(f){i=!0,l=f}finally{try{!r&&t.return!=null&&t.return()}finally{if(i)throw l}}return a}}function Ol(e){if(Array.isArray(e))return e}function Qa(e){for(var n=1;n<arguments.length;n++){var t=arguments[n]!=null?Object(arguments[n]):{},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,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function Nl(e,n){if(e==null)return{};var t=Ll(e,n),a,r;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)a=i[r],!(n.indexOf(a)>=0)&&Object.prototype.propertyIsEnumerable.call(e,a)&&(t[a]=e[a])}return t}function Ll(e,n){if(e==null)return{};var t={},a=Object.keys(e),r,i;for(i=0;i<a.length;i++)r=a[i],!(n.indexOf(r)>=0)&&(t[r]=e[r]);return t}Ya("#1890ff");var Dt=function(n,t){var a,r=Qa({},n,t.attrs),i=r.class,s=r.icon,l=r.spin,f=r.rotate,c=r.tabindex,u=r.twoToneColor,y=r.onClick,d=Nl(r,El),h=(a={anticon:!0},Dn(a,"anticon-".concat(s.name),!!s.name),Dn(a,i,i),a),m=l===""||l||s.name==="loading"?"anticon-spin":"",g=c;g===void 0&&y&&(g=-1,d.tabindex=g);var v=f?{msTransform:"rotate(".concat(f,"deg)"),transform:"rotate(".concat(f,"deg)")}:void 0,D=Ua(u),b=Dl(D,2),p=b[0],x=b[1];return o.createVNode("span",Qa({role:"img","aria-label":s.name},d,{onClick:y,class:h}),[o.createVNode(En,{class:m,icon:s,primaryColor:p,secondaryColor:x,style:v},null)])};Dt.props={spin:Boolean,rotate:Number,icon:Object,twoToneColor:String},Dt.displayName="AntdIcon",Dt.inheritAttrs=!1,Dt.getTwoToneColor=Bl,Dt.setTwoToneColor=Ya;const Ja=Dt;var Fl={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 zl=Fl;function Xa(e){for(var n=1;n<arguments.length;n++){var t=arguments[n]!=null?Object(arguments[n]):{},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){Ml(e,r,t[r])})}return e}function Ml(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}var _n=function(n,t){var a=Xa({},n,t.attrs);return o.createVNode(Ja,Xa({},a,{icon:zl}),null)};_n.displayName="CloseOutlined",_n.inheritAttrs=!1;const Pl=_n;var Hl={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 ql=Hl;function er(e){for(var n=1;n<arguments.length;n++){var t=arguments[n]!=null?Object(arguments[n]):{},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){Vl(e,r,t[r])})}return e}function Vl(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}var Rn=function(n,t){var a=er({},n,t.attrs);return o.createVNode(Ja,er({},a,{icon:ql}),null)};Rn.displayName="LoadingOutlined",Rn.inheritAttrs=!1;const jl=Rn,Gl=o.defineComponent({props:{spinning:{type:Boolean,default:!1}},components:{ASpin:ie.Spin},setup(){return{indicator:o.h(jl,{style:{fontSize:"24px",color:"#1890ff"},spin:!0})}}}),Gd="",ue=(e,n)=>{const t=e.__vccOpts||e;for(const[a,r]of n)t[a]=r;return t},Wl={class:"spin-wrapper"};function Ul(e,n,t,a,r,i){const s=o.resolveComponent("a-spin");return o.openBlock(),o.createElementBlock("div",Wl,[e.spinning?(o.openBlock(),o.createBlock(s,{key:0,class:"spin",spinning:e.spinning,indicator:e.indicator,tip:"加载中..."},null,8,["spinning","indicator"])):o.renderSlot(e.$slots,"default",{key:1})])}const _t=ue(Gl,[["render",Ul]]),$l=o.defineComponent({name:"Skeleton",props:{loading:{type:Boolean,default:!1}},components:{ASkeleton:ie.Skeleton}});function Zl(e,n,t,a,r,i){const s=o.resolveComponent("a-skeleton");return o.openBlock(),o.createBlock(s,{active:"",loading:e.loading},{default:o.withCtx(()=>[o.renderSlot(e.$slots,"default")]),_:3},8,["loading"])}const tn=ue($l,[["render",Zl]]);process.env.NODE_ENV!=="production"&&Object.freeze({}),process.env.NODE_ENV!=="production"&&Object.freeze([]);const ge=(e,n)=>{if(e.install=t=>{for(const a of[e,...Object.values(n??{})])t.component(a.name,a)},n)for(const[t,a]of Object.entries(n))e[t]=a;return e},ve={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"},ye=e=>{const n={};if(typeof e=="object"&&e!=null)for(const t in e){const a=e[t];n[t]={type:a==null?void 0:a.constructor,default:a}}return n},In={width:"1920px",height:"1080px",backgroundColor:"#ffffff",backgroundImage:"",backgroundSize:"100% 100%",contextRequestUrl:"",mode:"normal"},On=ye(In),Yl=["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"],pe=(e,n=[])=>{const t=Le.without(Yl,...n);return o.computed(()=>Le.pick(e,t))},Nn="EVENT_BUS",Fe="GLOBAL_CONFIG",we="GLOBAL_MODEL",Oe="REQUEST_MODEL",tr="GLOBAL_TOKEN",$t="REFRESH_PAGE",nr="MODAL_MODEL",mt="LOADED_DATA",at=18,or="ygt",ar=((b0=window==null?void 0:window.config)==null?void 0:b0.indicatorURL)||"";(v0=window==null?void 0:window.config)!=null&&v0.uploadPath;const rr=((S0=window==null?void 0:window.config)==null?void 0:S0.routerBaseURL)||"./",Kl=((C0=window==null?void 0:window.config)==null?void 0:C0.erdURL)||"",De=(e,n)=>{o.watch(()=>e.id,t=>{const a=o.inject(Nn,{onEvent:(r,i)=>{}});t!=null&&t!==""&&a.onEvent(t,n)},{immediate:!0})},Ae=e=>{const n=e.events,t=e.id,a=o.inject(Nn,{emitEvent:(i,s)=>{}}),{touchEventId:r}=o.inject(Fe,{touchEventId:o.ref("")});return(i,s=()=>{})=>function(){s.call(this,...arguments);const{emitEvent:l}=a;n.forEach(f=>{if(i===f.on)try{r.value=t,l(f.target,f.emit)}catch(c){console.error(c)}})}},Rt=(e,n)=>{let{name:t="name",value:a="value",type:r="type"}=n||{};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],y=u[t]||"",d=u[a]||"",h=u[r]||"";if(i.has(h)){const m=i.get(h);m.push({name:y,value:d,...u}),i.set(h,m)}else i.set(h,[{name:y,value:d,...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 y of u)l.includes(y.name)||l.push(y.name);else l.push(...u.map(y=>y.name));return{dimensions:l,dataset:f}};var le=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ir(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Ql(e){if(e.__esModule)return e;var n=e.default;if(typeof n=="function"){var t=function a(){return this instanceof a?Reflect.construct(n,arguments,this.constructor):n.apply(this,arguments)};t.prototype=n.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 lr={exports:{}};function Jl(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 Ln={exports:{}};const Xl=Ql(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var sr;function ce(){return sr||(sr=1,function(e,n){(function(t,a){e.exports=a()})(le,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 le<"u"&&le.crypto&&(i=le.crypto),!i&&typeof Jl=="function")try{i=Xl}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 b(){}return function(p){var x;return b.prototype=p,x=new b,b.prototype=null,x}}(),f={},c=f.lib={},u=c.Base=function(){return{extend:function(b){var p=l(this);return b&&p.mixIn(b),(!p.hasOwnProperty("init")||this.init===p.init)&&(p.init=function(){p.$super.init.apply(this,arguments)}),p.init.prototype=p,p.$super=this,p},create:function(){var b=this.extend();return b.init.apply(b,arguments),b},init:function(){},mixIn:function(b){for(var p in b)b.hasOwnProperty(p)&&(this[p]=b[p]);b.hasOwnProperty("toString")&&(this.toString=b.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),y=c.WordArray=u.extend({init:function(b,p){b=this.words=b||[],p!=r?this.sigBytes=p:this.sigBytes=b.length*4},toString:function(b){return(b||h).stringify(this)},concat:function(b){var p=this.words,x=b.words,k=this.sigBytes,C=b.sigBytes;if(this.clamp(),k%4)for(var O=0;O<C;O++){var N=x[O>>>2]>>>24-O%4*8&255;p[k+O>>>2]|=N<<24-(k+O)%4*8}else for(var L=0;L<C;L+=4)p[k+L>>>2]=x[L>>>2];return this.sigBytes+=C,this},clamp:function(){var b=this.words,p=this.sigBytes;b[p>>>2]&=4294967295<<32-p%4*8,b.length=a.ceil(p/4)},clone:function(){var b=u.clone.call(this);return b.words=this.words.slice(0),b},random:function(b){for(var p=[],x=0;x<b;x+=4)p.push(s());return new y.init(p,b)}}),d=f.enc={},h=d.Hex={stringify:function(b){for(var p=b.words,x=b.sigBytes,k=[],C=0;C<x;C++){var O=p[C>>>2]>>>24-C%4*8&255;k.push((O>>>4).toString(16)),k.push((O&15).toString(16))}return k.join("")},parse:function(b){for(var p=b.length,x=[],k=0;k<p;k+=2)x[k>>>3]|=parseInt(b.substr(k,2),16)<<24-k%8*4;return new y.init(x,p/2)}},m=d.Latin1={stringify:function(b){for(var p=b.words,x=b.sigBytes,k=[],C=0;C<x;C++){var O=p[C>>>2]>>>24-C%4*8&255;k.push(String.fromCharCode(O))}return k.join("")},parse:function(b){for(var p=b.length,x=[],k=0;k<p;k++)x[k>>>2]|=(b.charCodeAt(k)&255)<<24-k%4*8;return new y.init(x,p)}},g=d.Utf8={stringify:function(b){try{return decodeURIComponent(escape(m.stringify(b)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(b){return m.parse(unescape(encodeURIComponent(b)))}},v=c.BufferedBlockAlgorithm=u.extend({reset:function(){this._data=new y.init,this._nDataBytes=0},_append:function(b){typeof b=="string"&&(b=g.parse(b)),this._data.concat(b),this._nDataBytes+=b.sigBytes},_process:function(b){var p,x=this._data,k=x.words,C=x.sigBytes,O=this.blockSize,N=O*4,L=C/N;b?L=a.ceil(L):L=a.max((L|0)-this._minBufferSize,0);var B=L*O,w=a.min(B*4,C);if(B){for(var E=0;E<B;E+=O)this._doProcessBlock(k,E);p=k.splice(0,B),x.sigBytes-=w}return new y.init(p,w)},clone:function(){var b=u.clone.call(this);return b._data=this._data.clone(),b},_minBufferSize:0});c.Hasher=v.extend({cfg:u.extend(),init:function(b){this.cfg=this.cfg.extend(b),this.reset()},reset:function(){v.reset.call(this),this._doReset()},update:function(b){return this._append(b),this._process(),this},finalize:function(b){b&&this._append(b);var p=this._doFinalize();return p},blockSize:16,_createHelper:function(b){return function(p,x){return new b.init(x).finalize(p)}},_createHmacHelper:function(b){return function(p,x){return new D.HMAC.init(b,x).finalize(p)}}});var D=f.algo={};return f}(Math);return t})}(Ln)),Ln.exports}var Fn={exports:{}},cr;function nn(){return cr||(cr=1,function(e,n){(function(t,a){e.exports=a(ce())})(le,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,y=[],d=0;d<u;d++){var h=c[d];y.push(h.high),y.push(h.low)}return l.create(y,this.sigBytes)},clone:function(){for(var c=s.clone.call(this),u=c.words=this.words.slice(0),y=u.length,d=0;d<y;d++)u[d]=u[d].clone();return c}})}(),t})}(Fn)),Fn.exports}var zn={exports:{}},fr;function es(){return fr||(fr=1,function(e,n){(function(t,a){e.exports=a(ce())})(le,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=[],y=0;y<c;y++)u[y>>>2]|=f[y]<<24-y%4*8;s.call(this,u,c)}else s.apply(this,arguments)};l.prototype=i}}(),t.lib.WordArray})}(zn)),zn.exports}var Mn={exports:{}},dr;function ts(){return dr||(dr=1,function(e,n){(function(t,a){e.exports=a(ce())})(le,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,y=[],d=0;d<u;d+=2){var h=c[d>>>2]>>>16-d%4*8&65535;y.push(String.fromCharCode(h))}return y.join("")},parse:function(f){for(var c=f.length,u=[],y=0;y<c;y++)u[y>>>1]|=f.charCodeAt(y)<<16-y%2*16;return i.create(u,c*2)}},s.Utf16LE={stringify:function(f){for(var c=f.words,u=f.sigBytes,y=[],d=0;d<u;d+=2){var h=l(c[d>>>2]>>>16-d%4*8&65535);y.push(String.fromCharCode(h))}return y.join("")},parse:function(f){for(var c=f.length,u=[],y=0;y<c;y++)u[y>>>1]|=l(f.charCodeAt(y)<<16-y%2*16);return i.create(u,c*2)}};function l(f){return f<<8&4278255360|f>>>8&16711935}}(),t.enc.Utf16})}(Mn)),Mn.exports}var Pn={exports:{}},ur;function It(){return ur||(ur=1,function(e,n){(function(t,a){e.exports=a(ce())})(le,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,y=this._map;f.clamp();for(var d=[],h=0;h<u;h+=3)for(var m=c[h>>>2]>>>24-h%4*8&255,g=c[h+1>>>2]>>>24-(h+1)%4*8&255,v=c[h+2>>>2]>>>24-(h+2)%4*8&255,D=m<<16|g<<8|v,b=0;b<4&&h+b*.75<u;b++)d.push(y.charAt(D>>>6*(3-b)&63));var p=y.charAt(64);if(p)for(;d.length%4;)d.push(p);return d.join("")},parse:function(f){var c=f.length,u=this._map,y=this._reverseMap;if(!y){y=this._reverseMap=[];for(var d=0;d<u.length;d++)y[u.charCodeAt(d)]=d}var h=u.charAt(64);if(h){var m=f.indexOf(h);m!==-1&&(c=m)}return l(f,c,y)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function l(f,c,u){for(var y=[],d=0,h=0;h<c;h++)if(h%4){var m=u[f.charCodeAt(h-1)]<<h%4*2,g=u[f.charCodeAt(h)]>>>6-h%4*2,v=m|g;y[d>>>2]|=v<<24-d%4*8,d++}return i.create(y,d)}}(),t.enc.Base64})}(Pn)),Pn.exports}var Hn={exports:{}},hr;function ns(){return hr||(hr=1,function(e,n){(function(t,a){e.exports=a(ce())})(le,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,y=f.sigBytes,d=c?this._safe_map:this._map;f.clamp();for(var h=[],m=0;m<y;m+=3)for(var g=u[m>>>2]>>>24-m%4*8&255,v=u[m+1>>>2]>>>24-(m+1)%4*8&255,D=u[m+2>>>2]>>>24-(m+2)%4*8&255,b=g<<16|v<<8|D,p=0;p<4&&m+p*.75<y;p++)h.push(d.charAt(b>>>6*(3-p)&63));var x=d.charAt(64);if(x)for(;h.length%4;)h.push(x);return h.join("")},parse:function(f,c=!0){var u=f.length,y=c?this._safe_map:this._map,d=this._reverseMap;if(!d){d=this._reverseMap=[];for(var h=0;h<y.length;h++)d[y.charCodeAt(h)]=h}var m=y.charAt(64);if(m){var g=f.indexOf(m);g!==-1&&(u=g)}return l(f,u,d)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function l(f,c,u){for(var y=[],d=0,h=0;h<c;h++)if(h%4){var m=u[f.charCodeAt(h-1)]<<h%4*2,g=u[f.charCodeAt(h)]>>>6-h%4*2,v=m|g;y[d>>>2]|=v<<24-d%4*8,d++}return i.create(y,d)}}(),t.enc.Base64url})}(Hn)),Hn.exports}var qn={exports:{}},gr;function Ot(){return gr||(gr=1,function(e,n){(function(t,a){e.exports=a(ce())})(le,function(t){return function(a){var r=t,i=r.lib,s=i.WordArray,l=i.Hasher,f=r.algo,c=[];(function(){for(var g=0;g<64;g++)c[g]=a.abs(a.sin(g+1))*4294967296|0})();var u=f.MD5=l.extend({_doReset:function(){this._hash=new s.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(g,v){for(var D=0;D<16;D++){var b=v+D,p=g[b];g[b]=(p<<8|p>>>24)&16711935|(p<<24|p>>>8)&4278255360}var x=this._hash.words,k=g[v+0],C=g[v+1],O=g[v+2],N=g[v+3],L=g[v+4],B=g[v+5],w=g[v+6],E=g[v+7],S=g[v+8],_=g[v+9],z=g[v+10],I=g[v+11],M=g[v+12],H=g[v+13],j=g[v+14],P=g[v+15],A=x[0],R=x[1],T=x[2],F=x[3];A=y(A,R,T,F,k,7,c[0]),F=y(F,A,R,T,C,12,c[1]),T=y(T,F,A,R,O,17,c[2]),R=y(R,T,F,A,N,22,c[3]),A=y(A,R,T,F,L,7,c[4]),F=y(F,A,R,T,B,12,c[5]),T=y(T,F,A,R,w,17,c[6]),R=y(R,T,F,A,E,22,c[7]),A=y(A,R,T,F,S,7,c[8]),F=y(F,A,R,T,_,12,c[9]),T=y(T,F,A,R,z,17,c[10]),R=y(R,T,F,A,I,22,c[11]),A=y(A,R,T,F,M,7,c[12]),F=y(F,A,R,T,H,12,c[13]),T=y(T,F,A,R,j,17,c[14]),R=y(R,T,F,A,P,22,c[15]),A=d(A,R,T,F,C,5,c[16]),F=d(F,A,R,T,w,9,c[17]),T=d(T,F,A,R,I,14,c[18]),R=d(R,T,F,A,k,20,c[19]),A=d(A,R,T,F,B,5,c[20]),F=d(F,A,R,T,z,9,c[21]),T=d(T,F,A,R,P,14,c[22]),R=d(R,T,F,A,L,20,c[23]),A=d(A,R,T,F,_,5,c[24]),F=d(F,A,R,T,j,9,c[25]),T=d(T,F,A,R,N,14,c[26]),R=d(R,T,F,A,S,20,c[27]),A=d(A,R,T,F,H,5,c[28]),F=d(F,A,R,T,O,9,c[29]),T=d(T,F,A,R,E,14,c[30]),R=d(R,T,F,A,M,20,c[31]),A=h(A,R,T,F,B,4,c[32]),F=h(F,A,R,T,S,11,c[33]),T=h(T,F,A,R,I,16,c[34]),R=h(R,T,F,A,j,23,c[35]),A=h(A,R,T,F,C,4,c[36]),F=h(F,A,R,T,L,11,c[37]),T=h(T,F,A,R,E,16,c[38]),R=h(R,T,F,A,z,23,c[39]),A=h(A,R,T,F,H,4,c[40]),F=h(F,A,R,T,k,11,c[41]),T=h(T,F,A,R,N,16,c[42]),R=h(R,T,F,A,w,23,c[43]),A=h(A,R,T,F,_,4,c[44]),F=h(F,A,R,T,M,11,c[45]),T=h(T,F,A,R,P,16,c[46]),R=h(R,T,F,A,O,23,c[47]),A=m(A,R,T,F,k,6,c[48]),F=m(F,A,R,T,E,10,c[49]),T=m(T,F,A,R,j,15,c[50]),R=m(R,T,F,A,B,21,c[51]),A=m(A,R,T,F,M,6,c[52]),F=m(F,A,R,T,N,10,c[53]),T=m(T,F,A,R,z,15,c[54]),R=m(R,T,F,A,C,21,c[55]),A=m(A,R,T,F,S,6,c[56]),F=m(F,A,R,T,P,10,c[57]),T=m(T,F,A,R,w,15,c[58]),R=m(R,T,F,A,H,21,c[59]),A=m(A,R,T,F,L,6,c[60]),F=m(F,A,R,T,I,10,c[61]),T=m(T,F,A,R,O,15,c[62]),R=m(R,T,F,A,_,21,c[63]),x[0]=x[0]+A|0,x[1]=x[1]+R|0,x[2]=x[2]+T|0,x[3]=x[3]+F|0},_doFinalize:function(){var g=this._data,v=g.words,D=this._nDataBytes*8,b=g.sigBytes*8;v[b>>>5]|=128<<24-b%32;var p=a.floor(D/4294967296),x=D;v[(b+64>>>9<<4)+15]=(p<<8|p>>>24)&16711935|(p<<24|p>>>8)&4278255360,v[(b+64>>>9<<4)+14]=(x<<8|x>>>24)&16711935|(x<<24|x>>>8)&4278255360,g.sigBytes=(v.length+1)*4,this._process();for(var k=this._hash,C=k.words,O=0;O<4;O++){var N=C[O];C[O]=(N<<8|N>>>24)&16711935|(N<<24|N>>>8)&4278255360}return k},clone:function(){var g=l.clone.call(this);return g._hash=this._hash.clone(),g}});function y(g,v,D,b,p,x,k){var C=g+(v&D|~v&b)+p+k;return(C<<x|C>>>32-x)+v}function d(g,v,D,b,p,x,k){var C=g+(v&b|D&~b)+p+k;return(C<<x|C>>>32-x)+v}function h(g,v,D,b,p,x,k){var C=g+(v^D^b)+p+k;return(C<<x|C>>>32-x)+v}function m(g,v,D,b,p,x,k){var C=g+(D^(v|~b))+p+k;return(C<<x|C>>>32-x)+v}r.MD5=l._createHelper(u),r.HmacMD5=l._createHmacHelper(u)}(Math),t.MD5})}(qn)),qn.exports}var Vn={exports:{}},mr;function jn(){return mr||(mr=1,function(e,n){(function(t,a){e.exports=a(ce())})(le,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,y){for(var d=this._hash.words,h=d[0],m=d[1],g=d[2],v=d[3],D=d[4],b=0;b<80;b++){if(b<16)f[b]=u[y+b]|0;else{var p=f[b-3]^f[b-8]^f[b-14]^f[b-16];f[b]=p<<1|p>>>31}var x=(h<<5|h>>>27)+D+f[b];b<20?x+=(m&g|~m&v)+1518500249:b<40?x+=(m^g^v)+1859775393:b<60?x+=(m&g|m&v|g&v)-1894007588:x+=(m^g^v)-899497514,D=v,v=g,g=m<<30|m>>>2,m=h,h=x}d[0]=d[0]+h|0,d[1]=d[1]+m|0,d[2]=d[2]+g|0,d[3]=d[3]+v|0,d[4]=d[4]+D|0},_doFinalize:function(){var u=this._data,y=u.words,d=this._nDataBytes*8,h=u.sigBytes*8;return y[h>>>5]|=128<<24-h%32,y[(h+64>>>9<<4)+14]=Math.floor(d/4294967296),y[(h+64>>>9<<4)+15]=d,u.sigBytes=y.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 Gn={exports:{}},yr;function xr(){return yr||(yr=1,function(e,n){(function(t,a){e.exports=a(ce())})(le,function(t){return function(a){var r=t,i=r.lib,s=i.WordArray,l=i.Hasher,f=r.algo,c=[],u=[];(function(){function h(D){for(var b=a.sqrt(D),p=2;p<=b;p++)if(!(D%p))return!1;return!0}function m(D){return(D-(D|0))*4294967296|0}for(var g=2,v=0;v<64;)h(g)&&(v<8&&(c[v]=m(a.pow(g,1/2))),u[v]=m(a.pow(g,1/3)),v++),g++})();var y=[],d=f.SHA256=l.extend({_doReset:function(){this._hash=new s.init(c.slice(0))},_doProcessBlock:function(h,m){for(var g=this._hash.words,v=g[0],D=g[1],b=g[2],p=g[3],x=g[4],k=g[5],C=g[6],O=g[7],N=0;N<64;N++){if(N<16)y[N]=h[m+N]|0;else{var L=y[N-15],B=(L<<25|L>>>7)^(L<<14|L>>>18)^L>>>3,w=y[N-2],E=(w<<15|w>>>17)^(w<<13|w>>>19)^w>>>10;y[N]=B+y[N-7]+E+y[N-16]}var S=x&k^~x&C,_=v&D^v&b^D&b,z=(v<<30|v>>>2)^(v<<19|v>>>13)^(v<<10|v>>>22),I=(x<<26|x>>>6)^(x<<21|x>>>11)^(x<<7|x>>>25),M=O+I+S+u[N]+y[N],H=z+_;O=C,C=k,k=x,x=p+M|0,p=b,b=D,D=v,v=M+H|0}g[0]=g[0]+v|0,g[1]=g[1]+D|0,g[2]=g[2]+b|0,g[3]=g[3]+p|0,g[4]=g[4]+x|0,g[5]=g[5]+k|0,g[6]=g[6]+C|0,g[7]=g[7]+O|0},_doFinalize:function(){var h=this._data,m=h.words,g=this._nDataBytes*8,v=h.sigBytes*8;return m[v>>>5]|=128<<24-v%32,m[(v+64>>>9<<4)+14]=a.floor(g/4294967296),m[(v+64>>>9<<4)+15]=g,h.sigBytes=m.length*4,this._process(),this._hash},clone:function(){var h=l.clone.call(this);return h._hash=this._hash.clone(),h}});r.SHA256=l._createHelper(d),r.HmacSHA256=l._createHmacHelper(d)}(Math),t.SHA256})}(Gn)),Gn.exports}var Wn={exports:{}},pr;function os(){return pr||(pr=1,function(e,n){(function(t,a,r){e.exports=a(ce(),xr())})(le,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})}(Wn)),Wn.exports}var Un={exports:{}},br;function vr(){return br||(br=1,function(e,n){(function(t,a,r){e.exports=a(ce(),nn())})(le,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 y=[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)],d=[];(function(){for(var m=0;m<80;m++)d[m]=u()})();var h=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(m,g){for(var v=this._hash.words,D=v[0],b=v[1],p=v[2],x=v[3],k=v[4],C=v[5],O=v[6],N=v[7],L=D.high,B=D.low,w=b.high,E=b.low,S=p.high,_=p.low,z=x.high,I=x.low,M=k.high,H=k.low,j=C.high,P=C.low,A=O.high,R=O.low,T=N.high,F=N.low,W=L,$=B,te=w,K=E,Q=S,Y=_,X=z,oe=I,he=M,fe=H,_e=j,He=P,qe=A,$e=R,Ze=T,tt=F,Ee=0;Ee<80;Ee++){var Se,Ie,je=d[Ee];if(Ee<16)Ie=je.high=m[g+Ee*2]|0,Se=je.low=m[g+Ee*2+1]|0;else{var nt=d[Ee-15],Me=nt.high,Ve=nt.low,ut=(Me>>>1|Ve<<31)^(Me>>>8|Ve<<24)^Me>>>7,V=(Ve>>>1|Me<<31)^(Ve>>>8|Me<<24)^(Ve>>>7|Me<<25),U=d[Ee-2],Z=U.high,ne=U.low,ae=(Z>>>19|ne<<13)^(Z<<3|ne>>>29)^Z>>>6,ee=(ne>>>19|Z<<13)^(ne<<3|Z>>>29)^(ne>>>6|Z<<26),J=d[Ee-7],de=J.high,xe=J.low,me=d[Ee-16],Re=me.high,Ye=me.low;Se=V+xe,Ie=ut+de+(Se>>>0<V>>>0?1:0),Se=Se+ee,Ie=Ie+ae+(Se>>>0<ee>>>0?1:0),Se=Se+Ye,Ie=Ie+Re+(Se>>>0<Ye>>>0?1:0),je.high=Ie,je.low=Se}var st=he&_e^~he&qe,yn=fe&He^~fe&$e,Bt=W&te^W&Q^te&Q,Kt=$&K^$&Y^K&Y,xn=(W>>>28|$<<4)^(W<<30|$>>>2)^(W<<25|$>>>7),pn=($>>>28|W<<4)^($<<30|W>>>2)^($<<25|W>>>7),Bd=(he>>>14|fe<<18)^(he>>>18|fe<<14)^(he<<23|fe>>>9),Ed=(fe>>>14|he<<18)^(fe>>>18|he<<14)^(fe<<23|he>>>9),w0=y[Ee],Dd=w0.high,A0=w0.low,Ke=tt+Ed,wt=Ze+Bd+(Ke>>>0<tt>>>0?1:0),Ke=Ke+yn,wt=wt+st+(Ke>>>0<yn>>>0?1:0),Ke=Ke+A0,wt=wt+Dd+(Ke>>>0<A0>>>0?1:0),Ke=Ke+Se,wt=wt+Ie+(Ke>>>0<Se>>>0?1:0),k0=pn+Kt,_d=xn+Bt+(k0>>>0<pn>>>0?1:0);Ze=qe,tt=$e,qe=_e,$e=He,_e=he,He=fe,fe=oe+Ke|0,he=X+wt+(fe>>>0<oe>>>0?1:0)|0,X=Q,oe=Y,Q=te,Y=K,te=W,K=$,$=Ke+k0|0,W=wt+_d+($>>>0<Ke>>>0?1:0)|0}B=D.low=B+$,D.high=L+W+(B>>>0<$>>>0?1:0),E=b.low=E+K,b.high=w+te+(E>>>0<K>>>0?1:0),_=p.low=_+Y,p.high=S+Q+(_>>>0<Y>>>0?1:0),I=x.low=I+oe,x.high=z+X+(I>>>0<oe>>>0?1:0),H=k.low=H+fe,k.high=M+he+(H>>>0<fe>>>0?1:0),P=C.low=P+He,C.high=j+_e+(P>>>0<He>>>0?1:0),R=O.low=R+$e,O.high=A+qe+(R>>>0<$e>>>0?1:0),F=N.low=F+tt,N.high=T+Ze+(F>>>0<tt>>>0?1:0)},_doFinalize:function(){var m=this._data,g=m.words,v=this._nDataBytes*8,D=m.sigBytes*8;g[D>>>5]|=128<<24-D%32,g[(D+128>>>10<<5)+30]=Math.floor(v/4294967296),g[(D+128>>>10<<5)+31]=v,m.sigBytes=g.length*4,this._process();var b=this._hash.toX32();return b},clone:function(){var m=i.clone.call(this);return m._hash=this._hash.clone(),m},blockSize:1024/32});a.SHA512=i._createHelper(h),a.HmacSHA512=i._createHmacHelper(h)}(),t.SHA512})}(Un)),Un.exports}var $n={exports:{}},Sr;function as(){return Sr||(Sr=1,function(e,n){(function(t,a,r){e.exports=a(ce(),nn(),vr())})(le,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:{}},Cr;function rs(){return Cr||(Cr=1,function(e,n){(function(t,a,r){e.exports=a(ce(),nn())})(le,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,y=[],d=[],h=[];(function(){for(var v=1,D=0,b=0;b<24;b++){y[v+5*D]=(b+1)*(b+2)/2%64;var p=D%5,x=(2*v+3*D)%5;v=p,D=x}for(var v=0;v<5;v++)for(var D=0;D<5;D++)d[v+5*D]=D+(2*v+3*D)%5*5;for(var k=1,C=0;C<24;C++){for(var O=0,N=0,L=0;L<7;L++){if(k&1){var B=(1<<L)-1;B<32?N^=1<<B:O^=1<<B-32}k&128?k=k<<1^113:k<<=1}h[C]=c.create(O,N)}})();var m=[];(function(){for(var v=0;v<25;v++)m[v]=c.create()})();var g=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 b=this._state,p=this.blockSize/2,x=0;x<p;x++){var k=v[D+2*x],C=v[D+2*x+1];k=(k<<8|k>>>24)&16711935|(k<<24|k>>>8)&4278255360,C=(C<<8|C>>>24)&16711935|(C<<24|C>>>8)&4278255360;var O=b[x];O.high^=C,O.low^=k}for(var N=0;N<24;N++){for(var L=0;L<5;L++){for(var B=0,w=0,E=0;E<5;E++){var O=b[L+5*E];B^=O.high,w^=O.low}var S=m[L];S.high=B,S.low=w}for(var L=0;L<5;L++)for(var _=m[(L+4)%5],z=m[(L+1)%5],I=z.high,M=z.low,B=_.high^(I<<1|M>>>31),w=_.low^(M<<1|I>>>31),E=0;E<5;E++){var O=b[L+5*E];O.high^=B,O.low^=w}for(var H=1;H<25;H++){var B,w,O=b[H],j=O.high,P=O.low,A=y[H];A<32?(B=j<<A|P>>>32-A,w=P<<A|j>>>32-A):(B=P<<A-32|j>>>64-A,w=j<<A-32|P>>>64-A);var R=m[d[H]];R.high=B,R.low=w}var T=m[0],F=b[0];T.high=F.high,T.low=F.low;for(var L=0;L<5;L++)for(var E=0;E<5;E++){var H=L+5*E,O=b[H],W=m[H],$=m[(L+1)%5+5*E],te=m[(L+2)%5+5*E];O.high=W.high^~$.high&te.high,O.low=W.low^~$.low&te.low}var O=b[0],K=h[N];O.high^=K.high,O.low^=K.low}},_doFinalize:function(){var v=this._data,D=v.words;this._nDataBytes*8;var b=v.sigBytes*8,p=this.blockSize*32;D[b>>>5]|=1<<24-b%32,D[(a.ceil((b+1)/p)*p>>>5)-1]|=128,v.sigBytes=D.length*4,this._process();for(var x=this._state,k=this.cfg.outputLength/8,C=k/8,O=[],N=0;N<C;N++){var L=x[N],B=L.high,w=L.low;B=(B<<8|B>>>24)&16711935|(B<<24|B>>>8)&4278255360,w=(w<<8|w>>>24)&16711935|(w<<24|w>>>8)&4278255360,O.push(w),O.push(B)}return new s.init(O,k)},clone:function(){for(var v=l.clone.call(this),D=v._state=this._state.slice(0),b=0;b<25;b++)D[b]=D[b].clone();return v}});r.SHA3=l._createHelper(g),r.HmacSHA3=l._createHmacHelper(g)}(Math),t.SHA3})}(Zn)),Zn.exports}var Yn={exports:{}},wr;function is(){return wr||(wr=1,function(e,n){(function(t,a){e.exports=a(ce())})(le,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,18 +64,18 @@ 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]),x=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]),d=s.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),h=s.create([0,1518500249,1859775393,2400959708,2840853838]),m=s.create([1352829926,1548603684,1836072691,2053994217,0]),g=f.RIPEMD160=l.extend({_doReset:function(){this._hash=s.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(C,O){for(var L=0;L<16;L++){var N=O+L,B=C[N];C[N]=(B<<8|B>>>24)&16711935|(B<<24|B>>>8)&4278255360}var w=this._hash.words,E=h.words,S=m.words,D=c.words,z=u.words,R=x.words,M=d.words,H,j,P,A,I,T,F,U,$,ne;T=H=w[0],F=j=w[1],U=P=w[2],$=A=w[3],ne=I=w[4];for(var Y,L=0;L<80;L+=1)Y=H+C[O+D[L]]|0,L<16?Y+=v(j,P,A)+E[0]:L<32?Y+=_(j,P,A)+E[1]:L<48?Y+=b(j,P,A)+E[2]:L<64?Y+=p(j,P,A)+E[3]:Y+=y(j,P,A)+E[4],Y=Y|0,Y=k(Y,R[L]),Y=Y+I|0,H=I,I=A,A=k(P,10),P=j,j=Y,Y=T+C[O+z[L]]|0,L<16?Y+=y(F,U,$)+S[0]:L<32?Y+=p(F,U,$)+S[1]:L<48?Y+=b(F,U,$)+S[2]:L<64?Y+=_(F,U,$)+S[3]:Y+=v(F,U,$)+S[4],Y=Y|0,Y=k(Y,M[L]),Y=Y+ne|0,T=ne,ne=$,$=k(U,10),U=F,F=Y;Y=w[1]+P+$|0,w[1]=w[2]+A+ne|0,w[2]=w[3]+I+T|0,w[3]=w[4]+H+F|0,w[4]=w[0]+j+U|0,w[0]=Y},_doFinalize:function(){var C=this._data,O=C.words,L=this._nDataBytes*8,N=C.sigBytes*8;O[N>>>5]|=128<<24-N%32,O[(N+64>>>9<<4)+14]=(L<<8|L>>>24)&16711935|(L<<24|L>>>8)&4278255360,C.sigBytes=(O.length+1)*4,this._process();for(var B=this._hash,w=B.words,E=0;E<5;E++){var S=w[E];w[E]=(S<<8|S>>>24)&16711935|(S<<24|S>>>8)&4278255360}return B},clone:function(){var C=l.clone.call(this);return C._hash=this._hash.clone(),C}});function v(C,O,L){return C^O^L}function _(C,O,L){return C&O|~C&L}function b(C,O,L){return(C|~O)^L}function p(C,O,L){return C&L|O&~L}function y(C,O,L){return C^(O|~L)}function k(C,O){return C<<O|C>>>32-O}r.RIPEMD160=l._createHelper(g),r.HmacRIPEMD160=l._createHmacHelper(g)}(),t.RIPEMD160})}(Un)),Un.exports}var $n={exports:{}},wr;function Zn(){return wr||(wr=1,function(e,n){(function(t,a){e.exports=a(ce())})(le,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 x=c.blockSize,d=x*4;u.sigBytes>d&&(u=c.finalize(u)),u.clamp();for(var h=this._oKey=u.clone(),m=this._iKey=u.clone(),g=h.words,v=m.words,_=0;_<x;_++)g[_]^=1549556828,v[_]^=909522486;h.sigBytes=m.sigBytes=d,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,x=u.finalize(c);u.reset();var d=u.finalize(this._oKey.clone().concat(x));return d}})})()})}($n)),$n.exports}var Yn={exports:{}},Ar;function ls(){return Ar||(Ar=1,function(e,n){(function(t,a,r){e.exports=a(ce(),Hn(),Zn())})(le,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(x){this.cfg=this.cfg.extend(x)},compute:function(x,d){for(var h=this.cfg,m=c.create(h.hasher,x),g=s.create(),v=s.create([1]),_=g.words,b=v.words,p=h.keySize,y=h.iterations;_.length<p;){var k=m.update(d).finalize(v);m.reset();for(var C=k.words,O=C.length,L=k,N=1;N<y;N++){L=m.finalize(L),m.reset();for(var B=L.words,w=0;w<O;w++)C[w]^=B[w]}g.concat(k),b[0]++}return g.sigBytes=p*4,g}});a.PBKDF2=function(x,d,h){return u.create(h).compute(x,d)}}(),t.PBKDF2})}(Yn)),Yn.exports}var Kn={exports:{}},kr;function kt(){return kr||(kr=1,function(e,n){(function(t,a,r){e.exports=a(ce(),Hn(),Zn())})(le,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,x){for(var d,h=this.cfg,m=h.hasher.create(),g=s.create(),v=g.words,_=h.keySize,b=h.iterations;v.length<_;){d&&m.update(d),d=m.update(u).finalize(x),m.reset();for(var p=1;p<b;p++)d=m.finalize(d),m.reset();g.concat(d)}return g.sigBytes=_*4,g}});a.EvpKDF=function(u,x,d){return c.create(d).compute(u,x)}}(),t.EvpKDF})}(Kn)),Kn.exports}var Xn={exports:{}},Tr;function Le(){return Tr||(Tr=1,function(e,n){(function(t,a,r){e.exports=a(ce(),kt())})(le,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,x=r.algo,d=x.EvpKDF,h=i.Cipher=f.extend({cfg:s.extend(),createEncryptor:function(B,w){return this.create(this._ENC_XFORM_MODE,B,w)},createDecryptor:function(B,w){return this.create(this._DEC_XFORM_MODE,B,w)},init:function(B,w,E){this.cfg=this.cfg.extend(E),this._xformMode=B,this._key=w,this.reset()},reset:function(){f.reset.call(this),this._doReset()},process:function(B){return this._append(B),this._process()},finalize:function(B){B&&this._append(B);var w=this._doFinalize();return w},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function B(w){return typeof w=="string"?N:C}return function(w){return{encrypt:function(E,S,D){return B(S).encrypt(w,E,S,D)},decrypt:function(E,S,D){return B(S).decrypt(w,E,S,D)}}}}()});i.StreamCipher=h.extend({_doFinalize:function(){var B=this._process(!0);return B},blockSize:1});var m=r.mode={},g=i.BlockCipherMode=s.extend({createEncryptor:function(B,w){return this.Encryptor.create(B,w)},createDecryptor:function(B,w){return this.Decryptor.create(B,w)},init:function(B,w){this._cipher=B,this._iv=w}}),v=m.CBC=function(){var B=g.extend();B.Encryptor=B.extend({processBlock:function(E,S){var D=this._cipher,z=D.blockSize;w.call(this,E,S,z),D.encryptBlock(E,S),this._prevBlock=E.slice(S,S+z)}}),B.Decryptor=B.extend({processBlock:function(E,S){var D=this._cipher,z=D.blockSize,R=E.slice(S,S+z);D.decryptBlock(E,S),w.call(this,E,S,z),this._prevBlock=R}});function w(E,S,D){var z,R=this._iv;R?(z=R,this._iv=a):z=this._prevBlock;for(var M=0;M<D;M++)E[S+M]^=z[M]}return B}(),_=r.pad={},b=_.Pkcs7={pad:function(B,w){for(var E=w*4,S=E-B.sigBytes%E,D=S<<24|S<<16|S<<8|S,z=[],R=0;R<S;R+=4)z.push(D);var M=l.create(z,S);B.concat(M)},unpad:function(B){var w=B.words[B.sigBytes-1>>>2]&255;B.sigBytes-=w}};i.BlockCipher=h.extend({cfg:h.cfg.extend({mode:v,padding:b}),reset:function(){var B;h.reset.call(this);var w=this.cfg,E=w.iv,S=w.mode;this._xformMode==this._ENC_XFORM_MODE?B=S.createEncryptor:(B=S.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==B?this._mode.init(this,E&&E.words):(this._mode=B.call(S,this,E&&E.words),this._mode.__creator=B)},_doProcessBlock:function(B,w){this._mode.processBlock(B,w)},_doFinalize:function(){var B,w=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(w.pad(this._data,this.blockSize),B=this._process(!0)):(B=this._process(!0),w.unpad(B)),B},blockSize:128/32});var p=i.CipherParams=s.extend({init:function(B){this.mixIn(B)},toString:function(B){return(B||this.formatter).stringify(this)}}),y=r.format={},k=y.OpenSSL={stringify:function(B){var w,E=B.ciphertext,S=B.salt;return S?w=l.create([1398893684,1701076831]).concat(S).concat(E):w=E,w.toString(u)},parse:function(B){var w,E=u.parse(B),S=E.words;return S[0]==1398893684&&S[1]==1701076831&&(w=l.create(S.slice(2,4)),S.splice(0,4),E.sigBytes-=16),p.create({ciphertext:E,salt:w})}},C=i.SerializableCipher=s.extend({cfg:s.extend({format:k}),encrypt:function(B,w,E,S){S=this.cfg.extend(S);var D=B.createEncryptor(E,S),z=D.finalize(w),R=D.cfg;return p.create({ciphertext:z,key:E,iv:R.iv,algorithm:B,mode:R.mode,padding:R.padding,blockSize:B.blockSize,formatter:S.format})},decrypt:function(B,w,E,S){S=this.cfg.extend(S),w=this._parse(w,S.format);var D=B.createDecryptor(E,S).finalize(w.ciphertext);return D},_parse:function(B,w){return typeof B=="string"?w.parse(B,this):B}}),O=r.kdf={},L=O.OpenSSL={execute:function(B,w,E,S){S||(S=l.random(64/8));var D=d.create({keySize:w+E}).compute(B,S),z=l.create(D.words.slice(w),E*4);return D.sigBytes=w*4,p.create({key:D,iv:z,salt:S})}},N=i.PasswordBasedCipher=C.extend({cfg:C.cfg.extend({kdf:L}),encrypt:function(B,w,E,S){S=this.cfg.extend(S);var D=S.kdf.execute(E,B.keySize,B.ivSize);S.iv=D.iv;var z=C.encrypt.call(this,B,w,D.key,S);return z.mixIn(D),z},decrypt:function(B,w,E,S){S=this.cfg.extend(S),w=this._parse(w,S.format);var D=S.kdf.execute(E,B.keySize,B.ivSize,w.salt);S.iv=D.iv;var z=C.decrypt.call(this,B,w,D.key,S);return z}})}()})}(Xn)),Xn.exports}var Qn={exports:{}},Br;function ss(){return Br||(Br=1,function(e,n){(function(t,a,r){e.exports=a(ce(),Le())})(le,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 x=0;x<l;x++)i[s+x]^=c[x]}return a}(),t.mode.CFB})}(Qn)),Qn.exports}var Jn={exports:{}},Er;function cs(){return Er||(Er=1,function(e,n){(function(t,a,r){e.exports=a(ce(),Le())})(le,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 x=u.slice(0);l.encryptBlock(x,0),u[f-1]=u[f-1]+1|0;for(var d=0;d<f;d++)i[s+d]^=x[d]}});return a.Decryptor=r,a}(),t.mode.CTR})}(Jn)),Jn.exports}var eo={exports:{}},_r;function fs(){return _r||(_r=1,function(e,n){(function(t,a,r){e.exports=a(ce(),Le())})(le,function(t){/** @preserve
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]),y=s.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),d=s.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),h=s.create([0,1518500249,1859775393,2400959708,2840853838]),m=s.create([1352829926,1548603684,1836072691,2053994217,0]),g=f.RIPEMD160=l.extend({_doReset:function(){this._hash=s.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(C,O){for(var N=0;N<16;N++){var L=O+N,B=C[L];C[L]=(B<<8|B>>>24)&16711935|(B<<24|B>>>8)&4278255360}var w=this._hash.words,E=h.words,S=m.words,_=c.words,z=u.words,I=y.words,M=d.words,H,j,P,A,R,T,F,W,$,te;T=H=w[0],F=j=w[1],W=P=w[2],$=A=w[3],te=R=w[4];for(var K,N=0;N<80;N+=1)K=H+C[O+_[N]]|0,N<16?K+=v(j,P,A)+E[0]:N<32?K+=D(j,P,A)+E[1]:N<48?K+=b(j,P,A)+E[2]:N<64?K+=p(j,P,A)+E[3]:K+=x(j,P,A)+E[4],K=K|0,K=k(K,I[N]),K=K+R|0,H=R,R=A,A=k(P,10),P=j,j=K,K=T+C[O+z[N]]|0,N<16?K+=x(F,W,$)+S[0]:N<32?K+=p(F,W,$)+S[1]:N<48?K+=b(F,W,$)+S[2]:N<64?K+=D(F,W,$)+S[3]:K+=v(F,W,$)+S[4],K=K|0,K=k(K,M[N]),K=K+te|0,T=te,te=$,$=k(W,10),W=F,F=K;K=w[1]+P+$|0,w[1]=w[2]+A+te|0,w[2]=w[3]+R+T|0,w[3]=w[4]+H+F|0,w[4]=w[0]+j+W|0,w[0]=K},_doFinalize:function(){var C=this._data,O=C.words,N=this._nDataBytes*8,L=C.sigBytes*8;O[L>>>5]|=128<<24-L%32,O[(L+64>>>9<<4)+14]=(N<<8|N>>>24)&16711935|(N<<24|N>>>8)&4278255360,C.sigBytes=(O.length+1)*4,this._process();for(var B=this._hash,w=B.words,E=0;E<5;E++){var S=w[E];w[E]=(S<<8|S>>>24)&16711935|(S<<24|S>>>8)&4278255360}return B},clone:function(){var C=l.clone.call(this);return C._hash=this._hash.clone(),C}});function v(C,O,N){return C^O^N}function D(C,O,N){return C&O|~C&N}function b(C,O,N){return(C|~O)^N}function p(C,O,N){return C&N|O&~N}function x(C,O,N){return C^(O|~N)}function k(C,O){return C<<O|C>>>32-O}r.RIPEMD160=l._createHelper(g),r.HmacRIPEMD160=l._createHmacHelper(g)}(),t.RIPEMD160})}(Yn)),Yn.exports}var Kn={exports:{}},Ar;function Qn(){return Ar||(Ar=1,function(e,n){(function(t,a){e.exports=a(ce())})(le,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 y=c.blockSize,d=y*4;u.sigBytes>d&&(u=c.finalize(u)),u.clamp();for(var h=this._oKey=u.clone(),m=this._iKey=u.clone(),g=h.words,v=m.words,D=0;D<y;D++)g[D]^=1549556828,v[D]^=909522486;h.sigBytes=m.sigBytes=d,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,y=u.finalize(c);u.reset();var d=u.finalize(this._oKey.clone().concat(y));return d}})})()})}(Kn)),Kn.exports}var Jn={exports:{}},kr;function ls(){return kr||(kr=1,function(e,n){(function(t,a,r){e.exports=a(ce(),jn(),Qn())})(le,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(y){this.cfg=this.cfg.extend(y)},compute:function(y,d){for(var h=this.cfg,m=c.create(h.hasher,y),g=s.create(),v=s.create([1]),D=g.words,b=v.words,p=h.keySize,x=h.iterations;D.length<p;){var k=m.update(d).finalize(v);m.reset();for(var C=k.words,O=C.length,N=k,L=1;L<x;L++){N=m.finalize(N),m.reset();for(var B=N.words,w=0;w<O;w++)C[w]^=B[w]}g.concat(k),b[0]++}return g.sigBytes=p*4,g}});a.PBKDF2=function(y,d,h){return u.create(h).compute(y,d)}}(),t.PBKDF2})}(Jn)),Jn.exports}var Xn={exports:{}},Tr;function kt(){return Tr||(Tr=1,function(e,n){(function(t,a,r){e.exports=a(ce(),jn(),Qn())})(le,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,y){for(var d,h=this.cfg,m=h.hasher.create(),g=s.create(),v=g.words,D=h.keySize,b=h.iterations;v.length<D;){d&&m.update(d),d=m.update(u).finalize(y),m.reset();for(var p=1;p<b;p++)d=m.finalize(d),m.reset();g.concat(d)}return g.sigBytes=D*4,g}});a.EvpKDF=function(u,y,d){return c.create(d).compute(u,y)}}(),t.EvpKDF})}(Xn)),Xn.exports}var eo={exports:{}},Br;function Ne(){return Br||(Br=1,function(e,n){(function(t,a,r){e.exports=a(ce(),kt())})(le,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,y=r.algo,d=y.EvpKDF,h=i.Cipher=f.extend({cfg:s.extend(),createEncryptor:function(B,w){return this.create(this._ENC_XFORM_MODE,B,w)},createDecryptor:function(B,w){return this.create(this._DEC_XFORM_MODE,B,w)},init:function(B,w,E){this.cfg=this.cfg.extend(E),this._xformMode=B,this._key=w,this.reset()},reset:function(){f.reset.call(this),this._doReset()},process:function(B){return this._append(B),this._process()},finalize:function(B){B&&this._append(B);var w=this._doFinalize();return w},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function B(w){return typeof w=="string"?L:C}return function(w){return{encrypt:function(E,S,_){return B(S).encrypt(w,E,S,_)},decrypt:function(E,S,_){return B(S).decrypt(w,E,S,_)}}}}()});i.StreamCipher=h.extend({_doFinalize:function(){var B=this._process(!0);return B},blockSize:1});var m=r.mode={},g=i.BlockCipherMode=s.extend({createEncryptor:function(B,w){return this.Encryptor.create(B,w)},createDecryptor:function(B,w){return this.Decryptor.create(B,w)},init:function(B,w){this._cipher=B,this._iv=w}}),v=m.CBC=function(){var B=g.extend();B.Encryptor=B.extend({processBlock:function(E,S){var _=this._cipher,z=_.blockSize;w.call(this,E,S,z),_.encryptBlock(E,S),this._prevBlock=E.slice(S,S+z)}}),B.Decryptor=B.extend({processBlock:function(E,S){var _=this._cipher,z=_.blockSize,I=E.slice(S,S+z);_.decryptBlock(E,S),w.call(this,E,S,z),this._prevBlock=I}});function w(E,S,_){var z,I=this._iv;I?(z=I,this._iv=a):z=this._prevBlock;for(var M=0;M<_;M++)E[S+M]^=z[M]}return B}(),D=r.pad={},b=D.Pkcs7={pad:function(B,w){for(var E=w*4,S=E-B.sigBytes%E,_=S<<24|S<<16|S<<8|S,z=[],I=0;I<S;I+=4)z.push(_);var M=l.create(z,S);B.concat(M)},unpad:function(B){var w=B.words[B.sigBytes-1>>>2]&255;B.sigBytes-=w}};i.BlockCipher=h.extend({cfg:h.cfg.extend({mode:v,padding:b}),reset:function(){var B;h.reset.call(this);var w=this.cfg,E=w.iv,S=w.mode;this._xformMode==this._ENC_XFORM_MODE?B=S.createEncryptor:(B=S.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==B?this._mode.init(this,E&&E.words):(this._mode=B.call(S,this,E&&E.words),this._mode.__creator=B)},_doProcessBlock:function(B,w){this._mode.processBlock(B,w)},_doFinalize:function(){var B,w=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(w.pad(this._data,this.blockSize),B=this._process(!0)):(B=this._process(!0),w.unpad(B)),B},blockSize:128/32});var p=i.CipherParams=s.extend({init:function(B){this.mixIn(B)},toString:function(B){return(B||this.formatter).stringify(this)}}),x=r.format={},k=x.OpenSSL={stringify:function(B){var w,E=B.ciphertext,S=B.salt;return S?w=l.create([1398893684,1701076831]).concat(S).concat(E):w=E,w.toString(u)},parse:function(B){var w,E=u.parse(B),S=E.words;return S[0]==1398893684&&S[1]==1701076831&&(w=l.create(S.slice(2,4)),S.splice(0,4),E.sigBytes-=16),p.create({ciphertext:E,salt:w})}},C=i.SerializableCipher=s.extend({cfg:s.extend({format:k}),encrypt:function(B,w,E,S){S=this.cfg.extend(S);var _=B.createEncryptor(E,S),z=_.finalize(w),I=_.cfg;return p.create({ciphertext:z,key:E,iv:I.iv,algorithm:B,mode:I.mode,padding:I.padding,blockSize:B.blockSize,formatter:S.format})},decrypt:function(B,w,E,S){S=this.cfg.extend(S),w=this._parse(w,S.format);var _=B.createDecryptor(E,S).finalize(w.ciphertext);return _},_parse:function(B,w){return typeof B=="string"?w.parse(B,this):B}}),O=r.kdf={},N=O.OpenSSL={execute:function(B,w,E,S){S||(S=l.random(64/8));var _=d.create({keySize:w+E}).compute(B,S),z=l.create(_.words.slice(w),E*4);return _.sigBytes=w*4,p.create({key:_,iv:z,salt:S})}},L=i.PasswordBasedCipher=C.extend({cfg:C.cfg.extend({kdf:N}),encrypt:function(B,w,E,S){S=this.cfg.extend(S);var _=S.kdf.execute(E,B.keySize,B.ivSize);S.iv=_.iv;var z=C.encrypt.call(this,B,w,_.key,S);return z.mixIn(_),z},decrypt:function(B,w,E,S){S=this.cfg.extend(S),w=this._parse(w,S.format);var _=S.kdf.execute(E,B.keySize,B.ivSize,w.salt);S.iv=_.iv;var z=C.decrypt.call(this,B,w,_.key,S);return z}})}()})}(eo)),eo.exports}var to={exports:{}},Er;function ss(){return Er||(Er=1,function(e,n){(function(t,a,r){e.exports=a(ce(),Ne())})(le,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 y=0;y<l;y++)i[s+y]^=c[y]}return a}(),t.mode.CFB})}(to)),to.exports}var no={exports:{}},Dr;function cs(){return Dr||(Dr=1,function(e,n){(function(t,a,r){e.exports=a(ce(),Ne())})(le,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 y=u.slice(0);l.encryptBlock(y,0),u[f-1]=u[f-1]+1|0;for(var d=0;d<f;d++)i[s+d]^=y[d]}});return a.Decryptor=r,a}(),t.mode.CTR})}(no)),no.exports}var oo={exports:{}},_r;function fs(){return _r||(_r=1,function(e,n){(function(t,a,r){e.exports=a(ce(),Ne())})(le,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,x=this._iv,d=this._counter;x&&(d=this._counter=x.slice(0),this._iv=void 0),i(d);var h=d.slice(0);c.encryptBlock(h,0);for(var m=0;m<u;m++)l[f+m]^=h[m]}});return a.Decryptor=s,a}(),t.mode.CTRGladman})}(eo)),eo.exports}var to={exports:{}},Dr;function ds(){return Dr||(Dr=1,function(e,n){(function(t,a,r){e.exports=a(ce(),Le())})(le,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 x=0;x<f;x++)i[s+x]^=u[x]}});return a.Decryptor=r,a}(),t.mode.OFB})}(to)),to.exports}var no={exports:{}},Ir;function us(){return Ir||(Ir=1,function(e,n){(function(t,a,r){e.exports=a(ce(),Le())})(le,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})}(no)),no.exports}var oo={exports:{}},Rr;function hs(){return Rr||(Rr=1,function(e,n){(function(t,a,r){e.exports=a(ce(),Le())})(le,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})}(oo)),oo.exports}var ao={exports:{}},Or;function gs(){return Or||(Or=1,function(e,n){(function(t,a,r){e.exports=a(ce(),Le())})(le,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})}(ao)),ao.exports}var ro={exports:{}},Lr;function ms(){return Lr||(Lr=1,function(e,n){(function(t,a,r){e.exports=a(ce(),Le())})(le,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})}(ro)),ro.exports}var io={exports:{}},Nr;function xs(){return Nr||(Nr=1,function(e,n){(function(t,a,r){e.exports=a(ce(),Le())})(le,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})}(io)),io.exports}var lo={exports:{}},Fr;function ys(){return Fr||(Fr=1,function(e,n){(function(t,a,r){e.exports=a(ce(),Le())})(le,function(t){return t.pad.NoPadding={pad:function(){},unpad:function(){}},t.pad.NoPadding})}(lo)),lo.exports}var so={exports:{}},zr;function ps(){return zr||(zr=1,function(e,n){(function(t,a,r){e.exports=a(ce(),Le())})(le,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 x=f.parse(u);return s.create({ciphertext:x})}}}(),t.format.Hex})}(so)),so.exports}var co={exports:{}},Mr;function bs(){return Mr||(Mr=1,function(e,n){(function(t,a,r){e.exports=a(ce(),It(),Rt(),kt(),Le())})(le,function(t){return function(){var a=t,r=a.lib,i=r.BlockCipher,s=a.algo,l=[],f=[],c=[],u=[],x=[],d=[],h=[],m=[],g=[],v=[];(function(){for(var p=[],y=0;y<256;y++)y<128?p[y]=y<<1:p[y]=y<<1^283;for(var k=0,C=0,y=0;y<256;y++){var O=C^C<<1^C<<2^C<<3^C<<4;O=O>>>8^O&255^99,l[k]=O,f[O]=k;var L=p[k],N=p[L],B=p[N],w=p[O]*257^O*16843008;c[k]=w<<24|w>>>8,u[k]=w<<16|w>>>16,x[k]=w<<8|w>>>24,d[k]=w;var w=B*16843009^N*65537^L*257^k*16843008;h[O]=w<<24|w>>>8,m[O]=w<<16|w>>>16,g[O]=w<<8|w>>>24,v[O]=w,k?(k=L^p[p[p[B^L]]],C^=p[p[C]]):k=C=1}})();var _=[0,1,2,4,8,16,32,64,128,27,54],b=s.AES=i.extend({_doReset:function(){var p;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var y=this._keyPriorReset=this._key,k=y.words,C=y.sigBytes/4,O=this._nRounds=C+6,L=(O+1)*4,N=this._keySchedule=[],B=0;B<L;B++)B<C?N[B]=k[B]:(p=N[B-1],B%C?C>6&&B%C==4&&(p=l[p>>>24]<<24|l[p>>>16&255]<<16|l[p>>>8&255]<<8|l[p&255]):(p=p<<8|p>>>24,p=l[p>>>24]<<24|l[p>>>16&255]<<16|l[p>>>8&255]<<8|l[p&255],p^=_[B/C|0]<<24),N[B]=N[B-C]^p);for(var w=this._invKeySchedule=[],E=0;E<L;E++){var B=L-E;if(E%4)var p=N[B];else var p=N[B-4];E<4||B<=4?w[E]=p:w[E]=h[l[p>>>24]]^m[l[p>>>16&255]]^g[l[p>>>8&255]]^v[l[p&255]]}}},encryptBlock:function(p,y){this._doCryptBlock(p,y,this._keySchedule,c,u,x,d,l)},decryptBlock:function(p,y){var k=p[y+1];p[y+1]=p[y+3],p[y+3]=k,this._doCryptBlock(p,y,this._invKeySchedule,h,m,g,v,f);var k=p[y+1];p[y+1]=p[y+3],p[y+3]=k},_doCryptBlock:function(p,y,k,C,O,L,N,B){for(var w=this._nRounds,E=p[y]^k[0],S=p[y+1]^k[1],D=p[y+2]^k[2],z=p[y+3]^k[3],R=4,M=1;M<w;M++){var H=C[E>>>24]^O[S>>>16&255]^L[D>>>8&255]^N[z&255]^k[R++],j=C[S>>>24]^O[D>>>16&255]^L[z>>>8&255]^N[E&255]^k[R++],P=C[D>>>24]^O[z>>>16&255]^L[E>>>8&255]^N[S&255]^k[R++],A=C[z>>>24]^O[E>>>16&255]^L[S>>>8&255]^N[D&255]^k[R++];E=H,S=j,D=P,z=A}var H=(B[E>>>24]<<24|B[S>>>16&255]<<16|B[D>>>8&255]<<8|B[z&255])^k[R++],j=(B[S>>>24]<<24|B[D>>>16&255]<<16|B[z>>>8&255]<<8|B[E&255])^k[R++],P=(B[D>>>24]<<24|B[z>>>16&255]<<16|B[E>>>8&255]<<8|B[S&255])^k[R++],A=(B[z>>>24]<<24|B[E>>>16&255]<<16|B[S>>>8&255]<<8|B[D&255])^k[R++];p[y]=H,p[y+1]=j,p[y+2]=P,p[y+3]=A},keySize:256/32});a.AES=i._createHelper(b)}(),t.AES})}(co)),co.exports}var fo={exports:{}},Pr;function vs(){return Pr||(Pr=1,function(e,n){(function(t,a,r){e.exports=a(ce(),It(),Rt(),kt(),Le())})(le,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],x=[{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}],d=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],h=l.DES=s.extend({_doReset:function(){for(var _=this._key,b=_.words,p=[],y=0;y<56;y++){var k=f[y]-1;p[y]=b[k>>>5]>>>31-k%32&1}for(var C=this._subKeys=[],O=0;O<16;O++){for(var L=C[O]=[],N=u[O],y=0;y<24;y++)L[y/6|0]|=p[(c[y]-1+N)%28]<<31-y%6,L[4+(y/6|0)]|=p[28+(c[y+24]-1+N)%28]<<31-y%6;L[0]=L[0]<<1|L[0]>>>31;for(var y=1;y<7;y++)L[y]=L[y]>>>(y-1)*4+3;L[7]=L[7]<<5|L[7]>>>27}for(var B=this._invSubKeys=[],y=0;y<16;y++)B[y]=C[15-y]},encryptBlock:function(_,b){this._doCryptBlock(_,b,this._subKeys)},decryptBlock:function(_,b){this._doCryptBlock(_,b,this._invSubKeys)},_doCryptBlock:function(_,b,p){this._lBlock=_[b],this._rBlock=_[b+1],m.call(this,4,252645135),m.call(this,16,65535),g.call(this,2,858993459),g.call(this,8,16711935),m.call(this,1,1431655765);for(var y=0;y<16;y++){for(var k=p[y],C=this._lBlock,O=this._rBlock,L=0,N=0;N<8;N++)L|=x[N][((O^k[N])&d[N])>>>0];this._lBlock=O,this._rBlock=C^L}var B=this._lBlock;this._lBlock=this._rBlock,this._rBlock=B,m.call(this,1,1431655765),g.call(this,8,16711935),g.call(this,2,858993459),m.call(this,16,65535),m.call(this,4,252645135),_[b]=this._lBlock,_[b+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function m(_,b){var p=(this._lBlock>>>_^this._rBlock)&b;this._rBlock^=p,this._lBlock^=p<<_}function g(_,b){var p=(this._rBlock>>>_^this._lBlock)&b;this._lBlock^=p,this._rBlock^=p<<_}a.DES=s._createHelper(h);var v=l.TripleDES=s.extend({_doReset:function(){var _=this._key,b=_.words;if(b.length!==2&&b.length!==4&&b.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var p=b.slice(0,2),y=b.length<4?b.slice(0,2):b.slice(2,4),k=b.length<6?b.slice(0,2):b.slice(4,6);this._des1=h.createEncryptor(i.create(p)),this._des2=h.createEncryptor(i.create(y)),this._des3=h.createEncryptor(i.create(k))},encryptBlock:function(_,b){this._des1.encryptBlock(_,b),this._des2.decryptBlock(_,b),this._des3.encryptBlock(_,b)},decryptBlock:function(_,b){this._des3.decryptBlock(_,b),this._des2.encryptBlock(_,b),this._des1.decryptBlock(_,b)},keySize:192/32,ivSize:64/32,blockSize:64/32});a.TripleDES=s._createHelper(v)}(),t.TripleDES})}(fo)),fo.exports}var uo={exports:{}},Hr;function Ss(){return Hr||(Hr=1,function(e,n){(function(t,a,r){e.exports=a(ce(),It(),Rt(),kt(),Le())})(le,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,x=u.words,d=u.sigBytes,h=this._S=[],m=0;m<256;m++)h[m]=m;for(var m=0,g=0;m<256;m++){var v=m%d,_=x[v>>>2]>>>24-v%4*8&255;g=(g+h[m]+_)%256;var b=h[m];h[m]=h[g],h[g]=b}this._i=this._j=0},_doProcessBlock:function(u,x){u[x]^=f.call(this)},keySize:256/32,ivSize:0});function f(){for(var u=this._S,x=this._i,d=this._j,h=0,m=0;m<4;m++){x=(x+1)%256,d=(d+u[x])%256;var g=u[x];u[x]=u[d],u[d]=g,h|=u[(u[x]+u[d])%256]<<24-m*8}return this._i=x,this._j=d,h}a.RC4=i._createHelper(l);var c=s.RC4Drop=l.extend({cfg:l.cfg.extend({drop:192}),_doReset:function(){l._doReset.call(this);for(var u=this.cfg.drop;u>0;u--)f.call(this)}});a.RC4Drop=i._createHelper(c)}(),t.RC4})}(uo)),uo.exports}var ho={exports:{}},qr;function Cs(){return qr||(qr=1,function(e,n){(function(t,a,r){e.exports=a(ce(),It(),Rt(),kt(),Le())})(le,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 d=this._key.words,h=this.cfg.iv,m=0;m<4;m++)d[m]=(d[m]<<8|d[m]>>>24)&16711935|(d[m]<<24|d[m]>>>8)&4278255360;var g=this._X=[d[0],d[3]<<16|d[2]>>>16,d[1],d[0]<<16|d[3]>>>16,d[2],d[1]<<16|d[0]>>>16,d[3],d[2]<<16|d[1]>>>16],v=this._C=[d[2]<<16|d[2]>>>16,d[0]&4294901760|d[1]&65535,d[3]<<16|d[3]>>>16,d[1]&4294901760|d[2]&65535,d[0]<<16|d[0]>>>16,d[2]&4294901760|d[3]&65535,d[1]<<16|d[1]>>>16,d[3]&4294901760|d[0]&65535];this._b=0;for(var m=0;m<4;m++)x.call(this);for(var m=0;m<8;m++)v[m]^=g[m+4&7];if(h){var _=h.words,b=_[0],p=_[1],y=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360,k=(p<<8|p>>>24)&16711935|(p<<24|p>>>8)&4278255360,C=y>>>16|k&4294901760,O=k<<16|y&65535;v[0]^=y,v[1]^=C,v[2]^=k,v[3]^=O,v[4]^=y,v[5]^=C,v[6]^=k,v[7]^=O;for(var m=0;m<4;m++)x.call(this)}},_doProcessBlock:function(d,h){var m=this._X;x.call(this),l[0]=m[0]^m[5]>>>16^m[3]<<16,l[1]=m[2]^m[7]>>>16^m[5]<<16,l[2]=m[4]^m[1]>>>16^m[7]<<16,l[3]=m[6]^m[3]>>>16^m[1]<<16;for(var g=0;g<4;g++)l[g]=(l[g]<<8|l[g]>>>24)&16711935|(l[g]<<24|l[g]>>>8)&4278255360,d[h+g]^=l[g]},blockSize:128/32,ivSize:64/32});function x(){for(var d=this._X,h=this._C,m=0;m<8;m++)f[m]=h[m];h[0]=h[0]+1295307597+this._b|0,h[1]=h[1]+3545052371+(h[0]>>>0<f[0]>>>0?1:0)|0,h[2]=h[2]+886263092+(h[1]>>>0<f[1]>>>0?1:0)|0,h[3]=h[3]+1295307597+(h[2]>>>0<f[2]>>>0?1:0)|0,h[4]=h[4]+3545052371+(h[3]>>>0<f[3]>>>0?1:0)|0,h[5]=h[5]+886263092+(h[4]>>>0<f[4]>>>0?1:0)|0,h[6]=h[6]+1295307597+(h[5]>>>0<f[5]>>>0?1:0)|0,h[7]=h[7]+3545052371+(h[6]>>>0<f[6]>>>0?1:0)|0,this._b=h[7]>>>0<f[7]>>>0?1:0;for(var m=0;m<8;m++){var g=d[m]+h[m],v=g&65535,_=g>>>16,b=((v*v>>>17)+v*_>>>15)+_*_,p=((g&4294901760)*g|0)+((g&65535)*g|0);c[m]=b^p}d[0]=c[0]+(c[7]<<16|c[7]>>>16)+(c[6]<<16|c[6]>>>16)|0,d[1]=c[1]+(c[0]<<8|c[0]>>>24)+c[7]|0,d[2]=c[2]+(c[1]<<16|c[1]>>>16)+(c[0]<<16|c[0]>>>16)|0,d[3]=c[3]+(c[2]<<8|c[2]>>>24)+c[1]|0,d[4]=c[4]+(c[3]<<16|c[3]>>>16)+(c[2]<<16|c[2]>>>16)|0,d[5]=c[5]+(c[4]<<8|c[4]>>>24)+c[3]|0,d[6]=c[6]+(c[5]<<16|c[5]>>>16)+(c[4]<<16|c[4]>>>16)|0,d[7]=c[7]+(c[6]<<8|c[6]>>>24)+c[5]|0}a.Rabbit=i._createHelper(u)}(),t.Rabbit})}(ho)),ho.exports}var go={exports:{}},Vr;function ws(){return Vr||(Vr=1,function(e,n){(function(t,a,r){e.exports=a(ce(),It(),Rt(),kt(),Le())})(le,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 d=this._key.words,h=this.cfg.iv,m=this._X=[d[0],d[3]<<16|d[2]>>>16,d[1],d[0]<<16|d[3]>>>16,d[2],d[1]<<16|d[0]>>>16,d[3],d[2]<<16|d[1]>>>16],g=this._C=[d[2]<<16|d[2]>>>16,d[0]&4294901760|d[1]&65535,d[3]<<16|d[3]>>>16,d[1]&4294901760|d[2]&65535,d[0]<<16|d[0]>>>16,d[2]&4294901760|d[3]&65535,d[1]<<16|d[1]>>>16,d[3]&4294901760|d[0]&65535];this._b=0;for(var v=0;v<4;v++)x.call(this);for(var v=0;v<8;v++)g[v]^=m[v+4&7];if(h){var _=h.words,b=_[0],p=_[1],y=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360,k=(p<<8|p>>>24)&16711935|(p<<24|p>>>8)&4278255360,C=y>>>16|k&4294901760,O=k<<16|y&65535;g[0]^=y,g[1]^=C,g[2]^=k,g[3]^=O,g[4]^=y,g[5]^=C,g[6]^=k,g[7]^=O;for(var v=0;v<4;v++)x.call(this)}},_doProcessBlock:function(d,h){var m=this._X;x.call(this),l[0]=m[0]^m[5]>>>16^m[3]<<16,l[1]=m[2]^m[7]>>>16^m[5]<<16,l[2]=m[4]^m[1]>>>16^m[7]<<16,l[3]=m[6]^m[3]>>>16^m[1]<<16;for(var g=0;g<4;g++)l[g]=(l[g]<<8|l[g]>>>24)&16711935|(l[g]<<24|l[g]>>>8)&4278255360,d[h+g]^=l[g]},blockSize:128/32,ivSize:64/32});function x(){for(var d=this._X,h=this._C,m=0;m<8;m++)f[m]=h[m];h[0]=h[0]+1295307597+this._b|0,h[1]=h[1]+3545052371+(h[0]>>>0<f[0]>>>0?1:0)|0,h[2]=h[2]+886263092+(h[1]>>>0<f[1]>>>0?1:0)|0,h[3]=h[3]+1295307597+(h[2]>>>0<f[2]>>>0?1:0)|0,h[4]=h[4]+3545052371+(h[3]>>>0<f[3]>>>0?1:0)|0,h[5]=h[5]+886263092+(h[4]>>>0<f[4]>>>0?1:0)|0,h[6]=h[6]+1295307597+(h[5]>>>0<f[5]>>>0?1:0)|0,h[7]=h[7]+3545052371+(h[6]>>>0<f[6]>>>0?1:0)|0,this._b=h[7]>>>0<f[7]>>>0?1:0;for(var m=0;m<8;m++){var g=d[m]+h[m],v=g&65535,_=g>>>16,b=((v*v>>>17)+v*_>>>15)+_*_,p=((g&4294901760)*g|0)+((g&65535)*g|0);c[m]=b^p}d[0]=c[0]+(c[7]<<16|c[7]>>>16)+(c[6]<<16|c[6]>>>16)|0,d[1]=c[1]+(c[0]<<8|c[0]>>>24)+c[7]|0,d[2]=c[2]+(c[1]<<16|c[1]>>>16)+(c[0]<<16|c[0]>>>16)|0,d[3]=c[3]+(c[2]<<8|c[2]>>>24)+c[1]|0,d[4]=c[4]+(c[3]<<16|c[3]>>>16)+(c[2]<<16|c[2]>>>16)|0,d[5]=c[5]+(c[4]<<8|c[4]>>>24)+c[3]|0,d[6]=c[6]+(c[5]<<16|c[5]>>>16)+(c[4]<<16|c[4]>>>16)|0,d[7]=c[7]+(c[6]<<8|c[6]>>>24)+c[5]|0}a.RabbitLegacy=i._createHelper(u)}(),t.RabbitLegacy})}(go)),go.exports}(function(e,n){(function(t,a,r){e.exports=a(ce(),tn(),es(),ts(),It(),ns(),Rt(),Hn(),xr(),os(),br(),as(),rs(),is(),Zn(),ls(),kt(),Le(),ss(),cs(),fs(),ds(),us(),hs(),gs(),ms(),xs(),ys(),ps(),bs(),vs(),Ss(),Cs(),ws())})(le,function(t){return t})})(ir);var As=ir.exports;const Ue=rr(As);var ks="0123456789abcdefghijklmnopqrstuvwxyz";function dt(e){return ks.charAt(e)}function Ts(e,n){return e&n}function nn(e,n){return e|n}function jr(e,n){return e^n}function Gr(e,n){return e&~n}function Bs(e){if(e==0)return-1;var n=0;return e&65535||(e>>=16,n+=16),e&255||(e>>=8,n+=8),e&15||(e>>=4,n+=4),e&3||(e>>=2,n+=2),e&1||++n,n}function Es(e){for(var n=0;e!=0;)e&=e-1,++n;return n}var Ot="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Wr="=";function on(e){var n,t,a="";for(n=0;n+3<=e.length;n+=3)t=parseInt(e.substring(n,n+3),16),a+=Ot.charAt(t>>6)+Ot.charAt(t&63);for(n+1==e.length?(t=parseInt(e.substring(n,n+1),16),a+=Ot.charAt(t<<2)):n+2==e.length&&(t=parseInt(e.substring(n,n+2),16),a+=Ot.charAt(t>>2)+Ot.charAt((t&3)<<4));(a.length&3)>0;)a+=Wr;return a}function Ur(e){var n="",t,a=0,r=0;for(t=0;t<e.length&&e.charAt(t)!=Wr;++t){var i=Ot.indexOf(e.charAt(t));i<0||(a==0?(n+=dt(i>>2),r=i&3,a=1):a==1?(n+=dt(r<<2|i>>4),r=i&15,a=2):a==2?(n+=dt(r),n+=dt(i>>2),r=i&3,a=3):(n+=dt(r<<2|i>>4),n+=dt(i&15),a=0))}return a==1&&(n+=dt(r<<2)),n}var Lt,_s={decode:function(e){var n;if(Lt===void 0){var t="0123456789ABCDEF",a=` \f
72
- \r  \u2028\u2029`;for(Lt={},n=0;n<16;++n)Lt[t.charAt(n)]=n;for(t=t.toLowerCase(),n=10;n<16;++n)Lt[t.charAt(n)]=n;for(n=0;n<a.length;++n)Lt[a.charAt(n)]=-1}var r=[],i=0,s=0;for(n=0;n<e.length;++n){var l=e.charAt(n);if(l=="=")break;if(l=Lt[l],l!=-1){if(l===void 0)throw new Error("Illegal character at offset "+n);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}},Tt,mo={decode:function(e){var n;if(Tt===void 0){var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=`= \f
73
- \r  \u2028\u2029`;for(Tt=Object.create(null),n=0;n<64;++n)Tt[t.charAt(n)]=n;for(Tt["-"]=62,Tt._=63,n=0;n<a.length;++n)Tt[a.charAt(n)]=-1}var r=[],i=0,s=0;for(n=0;n<e.length;++n){var l=e.charAt(n);if(l=="=")break;if(l=Tt[l],l!=-1){if(l===void 0)throw new Error("Illegal character at offset "+n);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 n=mo.re.exec(e);if(n)if(n[1])e=n[1];else if(n[2])e=n[2];else throw new Error("RegExp out of sync");return mo.decode(e)}},Nt=1e13,$t=function(){function e(n){this.buf=[+n||0]}return e.prototype.mulAdd=function(n,t){var a=this.buf,r=a.length,i,s;for(i=0;i<r;++i)s=a[i]*n+t,s<Nt?t=0:(t=0|s/Nt,s-=t*Nt),a[i]=s;t>0&&(a[i]=t)},e.prototype.sub=function(n){var t=this.buf,a=t.length,r,i;for(r=0;r<a;++r)i=t[r]-n,i<0?(i+=Nt,n=1):n=0,t[r]=i;for(;t[t.length-1]===0;)t.pop()},e.prototype.toString=function(n){if((n||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+=(Nt+t[r]).toString().substring(1);return a},e.prototype.valueOf=function(){for(var n=this.buf,t=0,a=n.length-1;a>=0;--a)t=t*Nt+n[a];return t},e.prototype.simplify=function(){var n=this.buf;return n.length==1?n[0]:this},e}(),$r="…",Ds=/^(\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)?)?$/,Is=/^(\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 Ft(e,n){return e.length>n&&(e=e.substring(0,n)+$r),e}var xo=function(){function e(n,t){this.hexDigits="0123456789ABCDEF",n instanceof e?(this.enc=n.enc,this.pos=n.pos):(this.enc=n,this.pos=t)}return e.prototype.get=function(n){if(n===void 0&&(n=this.pos++),n>=this.enc.length)throw new Error("Requesting byte offset ".concat(n," on a stream of length ").concat(this.enc.length));return typeof this.enc=="string"?this.enc.charCodeAt(n):this.enc[n]},e.prototype.hexByte=function(n){return this.hexDigits.charAt(n>>4&15)+this.hexDigits.charAt(n&15)},e.prototype.hexDump=function(n,t,a){for(var r="",i=n;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(n,t){for(var a=n;a<t;++a){var r=this.get(a);if(r<32||r>176)return!1}return!0},e.prototype.parseStringISO=function(n,t){for(var a="",r=n;r<t;++r)a+=String.fromCharCode(this.get(r));return a},e.prototype.parseStringUTF=function(n,t){for(var a="",r=n;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(n,t){for(var a="",r,i,s=n;s<t;)r=this.get(s++),i=this.get(s++),a+=String.fromCharCode(r<<8|i);return a},e.prototype.parseTime=function(n,t,a){var r=this.parseStringISO(n,t),i=(a?Ds:Is).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(n,t){for(var a=this.get(n),r=a>127,i=r?255:0,s,l="";a==i&&++n<t;)a=this.get(n);if(s=t-n,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 $t(a),c=n+1;c<t;++c)f.mulAdd(256,this.get(c));return l+f.toString()},e.prototype.parseBitString=function(n,t,a){for(var r=this.get(n),i=(t-n-1<<3)-r,s="("+i+` bit)
76
- `,l="",f=n+1;f<t;++f){for(var c=this.get(f),u=f==t-1?r:0,x=7;x>=u;--x)l+=c>>x&1?"1":"0";if(l.length>a)return s+Ft(l,a)}return s+l},e.prototype.parseOctetString=function(n,t,a){if(this.isASCII(n,t))return Ft(this.parseStringISO(n,t),a);var r=t-n,i="("+r+` byte)
77
- `;a/=2,r>a&&(t=n+a);for(var s=n;s<t;++s)i+=this.hexByte(this.get(s));return r>a&&(i+=$r),i},e.prototype.parseOID=function(n,t,a){for(var r="",i=new $t,s=0,l=n;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 $t)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 Ft(r,a);i=new $t,s=0}}return s>0&&(r+=".incomplete"),r},e}(),Rs=function(){function e(n,t,a,r,i){if(!(r instanceof Zr))throw new Error("Invalid tag value.");this.stream=n,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(n){if(this.tag===void 0)return null;n===void 0&&(n=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,n);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,n);case 4:return this.sub?"("+this.sub.length+" elem)":this.stream.parseOctetString(t,t+a,n);case 6:return this.stream.parseOID(t,t+a,n);case 16:case 17:return this.sub!==null?"("+this.sub.length+" elem)":"(no elem)";case 12:return Ft(this.stream.parseStringUTF(t,t+a),n);case 18:case 19:case 20:case 21:case 22:case 26:return Ft(this.stream.parseStringISO(t,t+a),n);case 30:return Ft(this.stream.parseStringBMP(t,t+a),n);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(n){n===void 0&&(n="");var t=n+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){n+=" ";for(var a=0,r=this.sub.length;a<r;++a)t+=this.sub[a].toPrettyString(n)}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(n){var t=n.get(),a=t&127;if(a==t)return a;if(a>6)throw new Error("Length over 48 bits not supported at position "+(n.pos-1));if(a===0)return null;t=0;for(var r=0;r<a;++r)t=t*256+n.get();return t},e.prototype.getHexStringValue=function(){var n=this.toHexString(),t=this.header*2,a=this.length*2;return n.substr(t,a)},e.decode=function(n){var t;n instanceof xo?t=n:t=new xo(n,0);var a=new xo(t),r=new Zr(t),i=e.decodeLength(t),s=t.pos,l=s-a.pos,f=null,c=function(){var x=[];if(i!==null){for(var d=s+i;t.pos<d;)x[x.length]=e.decode(t);if(t.pos!=d)throw new Error("Content size is not correct for container starting at offset "+s)}else try{for(;;){var h=e.decode(t);if(h.tag.isEOC())break;x[x.length]=h}i=s-t.pos}catch(m){throw new Error("Exception while decoding undefined length content: "+m)}return x};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}(),Zr=function(){function e(n){var t=n.get();if(this.tagClass=t>>6,this.tagConstructed=(t&32)!==0,this.tagNumber=t&31,this.tagNumber==31){var a=new $t;do t=n.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}(),mt,Os=0xdeadbeefcafe,Yr=(Os&16777215)==15715070,Pe=[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],Ls=(1<<26)/Pe[Pe.length-1],re=function(){function e(n,t,a){n!=null&&(typeof n=="number"?this.fromNumber(n,t,a):t==null&&typeof n!="string"?this.fromString(n,256):this.fromString(n,t))}return e.prototype.toString=function(n){if(this.s<0)return"-"+this.negate().toString(n);var t;if(n==16)t=4;else if(n==8)t=3;else if(n==2)t=1;else if(n==32)t=5;else if(n==4)t=2;else return this.toRadix(n);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=dt(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+=dt(r));return i?s:"0"},e.prototype.negate=function(){var n=se();return e.ZERO.subTo(this,n),n},e.prototype.abs=function(){return this.s<0?this.negate():this},e.prototype.compareTo=function(n){var t=this.s-n.s;if(t!=0)return t;var a=this.t;if(t=a-n.t,t!=0)return this.s<0?-t:t;for(;--a>=0;)if((t=this[a]-n[a])!=0)return t;return 0},e.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+rn(this[this.t-1]^this.s&this.DM)},e.prototype.mod=function(n){var t=se();return this.abs().divRemTo(n,null,t),this.s<0&&t.compareTo(e.ZERO)>0&&n.subTo(t,t),t},e.prototype.modPowInt=function(n,t){var a;return n<256||t.isEven()?a=new Kr(t):a=new Xr(t),this.exp(n,a)},e.prototype.clone=function(){var n=se();return this.copyTo(n),n},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 n=this.t,t=[];t[0]=this.s;var a=this.DB-n*this.DB%8,r,i=0;if(n-- >0)for(a<this.DB&&(r=this[n]>>a)!=(this.s&this.DM)>>a&&(t[i++]=r|this.s<<this.DB-a);n>=0;)a<8?(r=(this[n]&(1<<a)-1)<<8-a,r|=this[--n]>>(a+=this.DB-8)):(r=this[n]>>(a-=8)&255,a<=0&&(a+=this.DB,--n)),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(n){return this.compareTo(n)==0},e.prototype.min=function(n){return this.compareTo(n)<0?this:n},e.prototype.max=function(n){return this.compareTo(n)>0?this:n},e.prototype.and=function(n){var t=se();return this.bitwiseTo(n,Ts,t),t},e.prototype.or=function(n){var t=se();return this.bitwiseTo(n,nn,t),t},e.prototype.xor=function(n){var t=se();return this.bitwiseTo(n,jr,t),t},e.prototype.andNot=function(n){var t=se();return this.bitwiseTo(n,Gr,t),t},e.prototype.not=function(){for(var n=se(),t=0;t<this.t;++t)n[t]=this.DM&~this[t];return n.t=this.t,n.s=~this.s,n},e.prototype.shiftLeft=function(n){var t=se();return n<0?this.rShiftTo(-n,t):this.lShiftTo(n,t),t},e.prototype.shiftRight=function(n){var t=se();return n<0?this.lShiftTo(-n,t):this.rShiftTo(n,t),t},e.prototype.getLowestSetBit=function(){for(var n=0;n<this.t;++n)if(this[n]!=0)return n*this.DB+Bs(this[n]);return this.s<0?this.t*this.DB:-1},e.prototype.bitCount=function(){for(var n=0,t=this.s&this.DM,a=0;a<this.t;++a)n+=Es(this[a]^t);return n},e.prototype.testBit=function(n){var t=Math.floor(n/this.DB);return t>=this.t?this.s!=0:(this[t]&1<<n%this.DB)!=0},e.prototype.setBit=function(n){return this.changeBit(n,nn)},e.prototype.clearBit=function(n){return this.changeBit(n,Gr)},e.prototype.flipBit=function(n){return this.changeBit(n,jr)},e.prototype.add=function(n){var t=se();return this.addTo(n,t),t},e.prototype.subtract=function(n){var t=se();return this.subTo(n,t),t},e.prototype.multiply=function(n){var t=se();return this.multiplyTo(n,t),t},e.prototype.divide=function(n){var t=se();return this.divRemTo(n,t,null),t},e.prototype.remainder=function(n){var t=se();return this.divRemTo(n,null,t),t},e.prototype.divideAndRemainder=function(n){var t=se(),a=se();return this.divRemTo(n,t,a),[t,a]},e.prototype.modPow=function(n,t){var a=n.bitLength(),r,i=xt(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 Kr(t):t.isEven()?s=new Fs(t):s=new Xr(t);var l=[],f=3,c=r-1,u=(1<<r)-1;if(l[1]=s.convert(this),r>1){var x=se();for(s.sqrTo(l[1],x);f<=u;)l[f]=se(),s.mulTo(x,l[f-2],l[f]),f+=2}var d=n.t-1,h,m=!0,g=se(),v;for(a=rn(n[d])-1;d>=0;){for(a>=c?h=n[d]>>a-c&u:(h=(n[d]&(1<<a+1)-1)<<c-a,d>0&&(h|=n[d-1]>>this.DB+a-c)),f=r;!(h&1);)h>>=1,--f;if((a-=f)<0&&(a+=this.DB,--d),m)l[h].copyTo(i),m=!1;else{for(;f>1;)s.sqrTo(i,g),s.sqrTo(g,i),f-=2;f>0?s.sqrTo(i,g):(v=i,i=g,g=v),s.mulTo(g,l[h],i)}for(;d>=0&&!(n[d]&1<<a);)s.sqrTo(i,g),v=i,i=g,g=v,--a<0&&(a=this.DB-1,--d)}return s.revert(i)},e.prototype.modInverse=function(n){var t=n.isEven();if(this.isEven()&&t||n.signum()==0)return e.ZERO;for(var a=n.clone(),r=this.clone(),i=xt(1),s=xt(0),l=xt(0),f=xt(1);a.signum()!=0;){for(;a.isEven();)a.rShiftTo(1,a),t?((!i.isEven()||!s.isEven())&&(i.addTo(this,i),s.subTo(n,s)),i.rShiftTo(1,i)):s.isEven()||s.subTo(n,s),s.rShiftTo(1,s);for(;r.isEven();)r.rShiftTo(1,r),t?((!l.isEven()||!f.isEven())&&(l.addTo(this,l),f.subTo(n,f)),l.rShiftTo(1,l)):f.isEven()||f.subTo(n,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(n)>=0)return f.subtract(n);if(f.signum()<0)f.addTo(n,f);else return f;return f.signum()<0?f.add(n):f},e.prototype.pow=function(n){return this.exp(n,new Ns)},e.prototype.gcd=function(n){var t=this.s<0?this.negate():this.clone(),a=n.s<0?n.negate():n.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(n){var t,a=this.abs();if(a.t==1&&a[0]<=Pe[Pe.length-1]){for(t=0;t<Pe.length;++t)if(a[0]==Pe[t])return!0;return!1}if(a.isEven())return!1;for(t=1;t<Pe.length;){for(var r=Pe[t],i=t+1;i<Pe.length&&r<Ls;)r*=Pe[i++];for(r=a.modInt(r);t<i;)if(r%Pe[t++]==0)return!1}return a.millerRabin(n)},e.prototype.copyTo=function(n){for(var t=this.t-1;t>=0;--t)n[t]=this[t];n.t=this.t,n.s=this.s},e.prototype.fromInt=function(n){this.t=1,this.s=n<0?-1:0,n>0?this[0]=n:n<-1?this[0]=n+this.DV:this.t=0},e.prototype.fromString=function(n,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(n,t);return}this.t=0,this.s=0;for(var r=n.length,i=!1,s=0;--r>=0;){var l=a==8?+n[r]&255:Jr(n,r);if(l<0){n.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&&+n[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 n=this.s&this.DM;this.t>0&&this[this.t-1]==n;)--this.t},e.prototype.dlShiftTo=function(n,t){var a;for(a=this.t-1;a>=0;--a)t[a+n]=this[a];for(a=n-1;a>=0;--a)t[a]=0;t.t=this.t+n,t.s=this.s},e.prototype.drShiftTo=function(n,t){for(var a=n;a<this.t;++a)t[a-n]=this[a];t.t=Math.max(this.t-n,0),t.s=this.s},e.prototype.lShiftTo=function(n,t){for(var a=n%this.DB,r=this.DB-a,i=(1<<r)-1,s=Math.floor(n/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(n,t){t.s=this.s;var a=Math.floor(n/this.DB);if(a>=this.t){t.t=0;return}var r=n%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(n,t){for(var a=0,r=0,i=Math.min(n.t,this.t);a<i;)r+=this[a]-n[a],t[a++]=r&this.DM,r>>=this.DB;if(n.t<this.t){for(r-=n.s;a<this.t;)r+=this[a],t[a++]=r&this.DM,r>>=this.DB;r+=this.s}else{for(r+=this.s;a<n.t;)r-=n[a],t[a++]=r&this.DM,r>>=this.DB;r-=n.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(n,t){var a=this.abs(),r=n.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!=n.s&&e.ZERO.subTo(t,t)},e.prototype.squareTo=function(n){for(var t=this.abs(),a=n.t=2*t.t;--a>=0;)n[a]=0;for(a=0;a<t.t-1;++a){var r=t.am(a,t[a],n,2*a,0,1);(n[a+t.t]+=t.am(a+1,2*t[a],n,2*a+1,r,t.t-a-1))>=t.DV&&(n[a+t.t]-=t.DV,n[a+t.t+1]=1)}n.t>0&&(n[n.t-1]+=t.am(a,t[a],n,2*a,0,1)),n.s=0,n.clamp()},e.prototype.divRemTo=function(n,t,a){var r=n.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=se());var s=se(),l=this.s,f=n.s,c=this.DB-rn(r[r.t-1]);c>0?(r.lShiftTo(c,s),i.lShiftTo(c,a)):(r.copyTo(s),i.copyTo(a));var u=s.t,x=s[u-1];if(x!=0){var d=x*(1<<this.F1)+(u>1?s[u-2]>>this.F2:0),h=this.FV/d,m=(1<<this.F1)/d,g=1<<this.F2,v=a.t,_=v-u,b=t??se();for(s.dlShiftTo(_,b),a.compareTo(b)>=0&&(a[a.t++]=1,a.subTo(b,a)),e.ONE.dlShiftTo(u,b),b.subTo(s,s);s.t<u;)s[s.t++]=0;for(;--_>=0;){var p=a[--v]==x?this.DM:Math.floor(a[v]*h+(a[v-1]+g)*m);if((a[v]+=s.am(0,p,a,_,0,u))<p)for(s.dlShiftTo(_,b),a.subTo(b,a);a[v]<--p;)a.subTo(b,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 n=this[0];if(!(n&1))return 0;var t=n&3;return t=t*(2-(n&15)*t)&15,t=t*(2-(n&255)*t)&255,t=t*(2-((n&65535)*t&65535))&65535,t=t*(2-n*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(n,t){if(n>4294967295||n<1)return e.ONE;var a=se(),r=se(),i=t.convert(this),s=rn(n)-1;for(i.copyTo(a);--s>=0;)if(t.sqrTo(a,r),(n&1<<s)>0)t.mulTo(r,i,a);else{var l=a;a=r,r=l}return t.revert(a)},e.prototype.chunkSize=function(n){return Math.floor(Math.LN2*this.DB/Math.log(n))},e.prototype.toRadix=function(n){if(n==null&&(n=10),this.signum()==0||n<2||n>36)return"0";var t=this.chunkSize(n),a=Math.pow(n,t),r=xt(a),i=se(),s=se(),l="";for(this.divRemTo(r,i,s);i.signum()>0;)l=(a+s.intValue()).toString(n).substr(1)+l,i.divRemTo(r,i,s);return s.intValue().toString(n)+l},e.prototype.fromRadix=function(n,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<n.length;++f){var c=Jr(n,f);if(c<0){n.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(n,t,a){if(typeof t=="number")if(n<2)this.fromInt(1);else for(this.fromNumber(n,a),this.testBit(n-1)||this.bitwiseTo(e.ONE.shiftLeft(n-1),nn,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(t);)this.dAddOffset(2,0),this.bitLength()>n&&this.subTo(e.ONE.shiftLeft(n-1),this);else{var r=[],i=n&7;r.length=(n>>3)+1,t.nextBytes(r),i>0?r[0]&=(1<<i)-1:r[0]=0,this.fromString(r,256)}},e.prototype.bitwiseTo=function(n,t,a){var r,i,s=Math.min(n.t,this.t);for(r=0;r<s;++r)a[r]=t(this[r],n[r]);if(n.t<this.t){for(i=n.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<n.t;++r)a[r]=t(i,n[r]);a.t=n.t}a.s=t(this.s,n.s),a.clamp()},e.prototype.changeBit=function(n,t){var a=e.ONE.shiftLeft(n);return this.bitwiseTo(a,t,a),a},e.prototype.addTo=function(n,t){for(var a=0,r=0,i=Math.min(n.t,this.t);a<i;)r+=this[a]+n[a],t[a++]=r&this.DM,r>>=this.DB;if(n.t<this.t){for(r+=n.s;a<this.t;)r+=this[a],t[a++]=r&this.DM,r>>=this.DB;r+=this.s}else{for(r+=this.s;a<n.t;)r+=n[a],t[a++]=r&this.DM,r>>=this.DB;r+=n.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(n){this[this.t]=this.am(0,n-1,this,0,0,this.t),++this.t,this.clamp()},e.prototype.dAddOffset=function(n,t){if(n!=0){for(;this.t<=t;)this[this.t++]=0;for(this[t]+=n;this[t]>=this.DV;)this[t]-=this.DV,++t>=this.t&&(this[this.t++]=0),++this[t]}},e.prototype.multiplyLowerTo=function(n,t,a){var r=Math.min(this.t+n.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,n[r],a,r,0,this.t);for(var i=Math.min(n.t,t);r<i;++r)this.am(0,n[r],a,r,0,t-r);a.clamp()},e.prototype.multiplyUpperTo=function(n,t,a){--t;var r=a.t=this.t+n.t-t;for(a.s=0;--r>=0;)a[r]=0;for(r=Math.max(t-this.t,0);r<n.t;++r)a[this.t+r-t]=this.am(t-r,n[r],a,0,0,this.t+r-t);a.clamp(),a.drShiftTo(1,a)},e.prototype.modInt=function(n){if(n<=0)return 0;var t=this.DV%n,a=this.s<0?n-1:0;if(this.t>0)if(t==0)a=this[0]%n;else for(var r=this.t-1;r>=0;--r)a=(t*a+this[r])%n;return a},e.prototype.millerRabin=function(n){var t=this.subtract(e.ONE),a=t.getLowestSetBit();if(a<=0)return!1;var r=t.shiftRight(a);n=n+1>>1,n>Pe.length&&(n=Pe.length);for(var i=se(),s=0;s<n;++s){i.fromInt(Pe[Math.floor(Math.random()*Pe.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 n=se();return this.squareTo(n),n},e.prototype.gcda=function(n,t){var a=this.s<0?this.negate():this.clone(),r=n.s<0?n.negate():n.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(n,t,a,r){if(typeof t=="number")if(n<2)this.fromInt(1);else{this.fromNumber(n,a),this.testBit(n-1)||this.bitwiseTo(e.ONE.shiftLeft(n-1),nn,this),this.isEven()&&this.dAddOffset(1,0);var i=this,s=function(){i.dAddOffset(2,0),i.bitLength()>n&&i.subTo(e.ONE.shiftLeft(n-1),i),i.isProbablePrime(t)?setTimeout(function(){r()},0):setTimeout(s,0)};setTimeout(s,0)}else{var l=[],f=n&7;l.length=(n>>3)+1,t.nextBytes(l),f>0?l[0]&=(1<<f)-1:l[0]=0,this.fromString(l,256)}},e}(),Ns=function(){function e(){}return e.prototype.convert=function(n){return n},e.prototype.revert=function(n){return n},e.prototype.mulTo=function(n,t,a){n.multiplyTo(t,a)},e.prototype.sqrTo=function(n,t){n.squareTo(t)},e}(),Kr=function(){function e(n){this.m=n}return e.prototype.convert=function(n){return n.s<0||n.compareTo(this.m)>=0?n.mod(this.m):n},e.prototype.revert=function(n){return n},e.prototype.reduce=function(n){n.divRemTo(this.m,null,n)},e.prototype.mulTo=function(n,t,a){n.multiplyTo(t,a),this.reduce(a)},e.prototype.sqrTo=function(n,t){n.squareTo(t),this.reduce(t)},e}(),Xr=function(){function e(n){this.m=n,this.mp=n.invDigit(),this.mpl=this.mp&32767,this.mph=this.mp>>15,this.um=(1<<n.DB-15)-1,this.mt2=2*n.t}return e.prototype.convert=function(n){var t=se();return n.abs().dlShiftTo(this.m.t,t),t.divRemTo(this.m,null,t),n.s<0&&t.compareTo(re.ZERO)>0&&this.m.subTo(t,t),t},e.prototype.revert=function(n){var t=se();return n.copyTo(t),this.reduce(t),t},e.prototype.reduce=function(n){for(;n.t<=this.mt2;)n[n.t++]=0;for(var t=0;t<this.m.t;++t){var a=n[t]&32767,r=a*this.mpl+((a*this.mph+(n[t]>>15)*this.mpl&this.um)<<15)&n.DM;for(a=t+this.m.t,n[a]+=this.m.am(0,r,n,t,0,this.m.t);n[a]>=n.DV;)n[a]-=n.DV,n[++a]++}n.clamp(),n.drShiftTo(this.m.t,n),n.compareTo(this.m)>=0&&n.subTo(this.m,n)},e.prototype.mulTo=function(n,t,a){n.multiplyTo(t,a),this.reduce(a)},e.prototype.sqrTo=function(n,t){n.squareTo(t),this.reduce(t)},e}(),Fs=function(){function e(n){this.m=n,this.r2=se(),this.q3=se(),re.ONE.dlShiftTo(2*n.t,this.r2),this.mu=this.r2.divide(n)}return e.prototype.convert=function(n){if(n.s<0||n.t>2*this.m.t)return n.mod(this.m);if(n.compareTo(this.m)<0)return n;var t=se();return n.copyTo(t),this.reduce(t),t},e.prototype.revert=function(n){return n},e.prototype.reduce=function(n){for(n.drShiftTo(this.m.t-1,this.r2),n.t>this.m.t+1&&(n.t=this.m.t+1,n.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);n.compareTo(this.r2)<0;)n.dAddOffset(1,this.m.t+1);for(n.subTo(this.r2,n);n.compareTo(this.m)>=0;)n.subTo(this.m,n)},e.prototype.mulTo=function(n,t,a){n.multiplyTo(t,a),this.reduce(a)},e.prototype.sqrTo=function(n,t){n.squareTo(t),this.reduce(t)},e}();function se(){return new re(null)}function Te(e,n){return new re(e,n)}var Qr=typeof navigator<"u";Qr&&Yr&&navigator.appName=="Microsoft Internet Explorer"?(re.prototype.am=function(n,t,a,r,i,s){for(var l=t&32767,f=t>>15;--s>=0;){var c=this[n]&32767,u=this[n++]>>15,x=f*c+u*l;c=l*c+((x&32767)<<15)+a[r]+(i&1073741823),i=(c>>>30)+(x>>>15)+f*u+(i>>>30),a[r++]=c&1073741823}return i},mt=30):Qr&&Yr&&navigator.appName!="Netscape"?(re.prototype.am=function(n,t,a,r,i,s){for(;--s>=0;){var l=t*this[n++]+a[r]+i;i=Math.floor(l/67108864),a[r++]=l&67108863}return i},mt=26):(re.prototype.am=function(n,t,a,r,i,s){for(var l=t&16383,f=t>>14;--s>=0;){var c=this[n]&16383,u=this[n++]>>14,x=f*c+u*l;c=l*c+((x&16383)<<14)+a[r]+i,i=(c>>28)+(x>>14)+f*u,a[r++]=c&268435455}return i},mt=28),re.prototype.DB=mt,re.prototype.DM=(1<<mt)-1,re.prototype.DV=1<<mt;var yo=52;re.prototype.FV=Math.pow(2,yo),re.prototype.F1=yo-mt,re.prototype.F2=2*mt-yo;var an=[],zt,Xe;for(zt="0".charCodeAt(0),Xe=0;Xe<=9;++Xe)an[zt++]=Xe;for(zt="a".charCodeAt(0),Xe=10;Xe<36;++Xe)an[zt++]=Xe;for(zt="A".charCodeAt(0),Xe=10;Xe<36;++Xe)an[zt++]=Xe;function Jr(e,n){var t=an[e.charCodeAt(n)];return t??-1}function xt(e){var n=se();return n.fromInt(e),n}function rn(e){var n=1,t;return(t=e>>>16)!=0&&(e=t,n+=16),(t=e>>8)!=0&&(e=t,n+=8),(t=e>>4)!=0&&(e=t,n+=4),(t=e>>2)!=0&&(e=t,n+=2),(t=e>>1)!=0&&(e=t,n+=1),n}re.ZERO=xt(0),re.ONE=xt(1);var zs=function(){function e(){this.i=0,this.j=0,this.S=[]}return e.prototype.init=function(n){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]+n[t%n.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 n;return this.i=this.i+1&255,this.j=this.j+this.S[this.i]&255,n=this.S[this.i],this.S[this.i]=this.S[this.j],this.S[this.j]=n,this.S[n+this.S[this.i]&255]},e}();function Ms(){return new zs}var ei=256,ln,yt=null,rt;if(yt==null){yt=[],rt=0;var sn=void 0;if(typeof window<"u"&&window.crypto&&window.crypto.getRandomValues){var po=new Uint32Array(256);for(window.crypto.getRandomValues(po),sn=0;sn<po.length;++sn)yt[rt++]=po[sn]&255}var cn=0,fn=function(e){if(cn=cn||0,cn>=256||rt>=ei){window.removeEventListener?window.removeEventListener("mousemove",fn,!1):window.detachEvent&&window.detachEvent("onmousemove",fn);return}try{var n=e.x+e.y;yt[rt++]=n&255,cn+=1}catch{}};typeof window<"u"&&(window.addEventListener?window.addEventListener("mousemove",fn,!1):window.attachEvent&&window.attachEvent("onmousemove",fn))}function Ps(){if(ln==null){for(ln=Ms();rt<ei;){var e=Math.floor(65536*Math.random());yt[rt++]=e&255}for(ln.init(yt),rt=0;rt<yt.length;++rt)yt[rt]=0;rt=0}return ln.next()}var bo=function(){function e(){}return e.prototype.nextBytes=function(n){for(var t=0;t<n.length;++t)n[t]=Ps()},e}();function Hs(e,n){if(n<e.length+22)return console.error("Message too long for RSA"),null;for(var t=n-e.length-6,a="",r=0;r<t;r+=2)a+="ff";var i="0001"+a+"00"+e;return Te(i,16)}function qs(e,n){if(n<e.length+11)return console.error("Message too long for RSA"),null;for(var t=[],a=e.length-1;a>=0&&n>0;){var r=e.charCodeAt(a--);r<128?t[--n]=r:r>127&&r<2048?(t[--n]=r&63|128,t[--n]=r>>6|192):(t[--n]=r&63|128,t[--n]=r>>6&63|128,t[--n]=r>>12|224)}t[--n]=0;for(var i=new bo,s=[];n>2;){for(s[0]=0;s[0]==0;)i.nextBytes(s);t[--n]=s[0]}return t[--n]=2,t[--n]=0,new re(t)}var Vs=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(n){return n.modPowInt(this.e,this.n)},e.prototype.doPrivate=function(n){if(this.p==null||this.q==null)return n.modPow(this.d,this.n);for(var t=n.mod(this.p).modPow(this.dmp1,this.p),a=n.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(n,t){n!=null&&t!=null&&n.length>0&&t.length>0?(this.n=Te(n,16),this.e=parseInt(t,16)):console.error("Invalid RSA public key")},e.prototype.encrypt=function(n){var t=this.n.bitLength()+7>>3,a=qs(n,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(n,t,a){n!=null&&t!=null&&n.length>0&&t.length>0?(this.n=Te(n,16),this.e=parseInt(t,16),this.d=Te(a,16)):console.error("Invalid RSA private key")},e.prototype.setPrivateEx=function(n,t,a,r,i,s,l,f){n!=null&&t!=null&&n.length>0&&t.length>0?(this.n=Te(n,16),this.e=parseInt(t,16),this.d=Te(a,16),this.p=Te(r,16),this.q=Te(i,16),this.dmp1=Te(s,16),this.dmq1=Te(l,16),this.coeff=Te(f,16)):console.error("Invalid RSA private key")},e.prototype.generate=function(n,t){var a=new bo,r=n>>1;this.e=parseInt(t,16);for(var i=new re(t,16);;){for(;this.p=new re(n-r,1,a),!(this.p.subtract(re.ONE).gcd(i).compareTo(re.ONE)==0&&this.p.isProbablePrime(10)););for(;this.q=new re(r,1,a),!(this.q.subtract(re.ONE).gcd(i).compareTo(re.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(re.ONE),f=this.q.subtract(re.ONE),c=l.multiply(f);if(c.gcd(i).compareTo(re.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(n){var t=Te(n,16),a=this.doPrivate(t);return a==null?null:js(a,this.n.bitLength()+7>>3)},e.prototype.generateAsync=function(n,t,a){var r=new bo,i=n>>1;this.e=parseInt(t,16);var s=new re(t,16),l=this,f=function(){var c=function(){if(l.p.compareTo(l.q)<=0){var d=l.p;l.p=l.q,l.q=d}var h=l.p.subtract(re.ONE),m=l.q.subtract(re.ONE),g=h.multiply(m);g.gcd(s).compareTo(re.ONE)==0?(l.n=l.p.multiply(l.q),l.d=s.modInverse(g),l.dmp1=l.d.mod(h),l.dmq1=l.d.mod(m),l.coeff=l.q.modInverse(l.p),setTimeout(function(){a()},0)):setTimeout(f,0)},u=function(){l.q=se(),l.q.fromNumberAsync(i,1,r,function(){l.q.subtract(re.ONE).gcda(s,function(d){d.compareTo(re.ONE)==0&&l.q.isProbablePrime(10)?setTimeout(c,0):setTimeout(u,0)})})},x=function(){l.p=se(),l.p.fromNumberAsync(n-i,1,r,function(){l.p.subtract(re.ONE).gcda(s,function(d){d.compareTo(re.ONE)==0&&l.p.isProbablePrime(10)?setTimeout(u,0):setTimeout(x,0)})})};setTimeout(x,0)};setTimeout(f,0)},e.prototype.sign=function(n,t,a){var r=Gs(a),i=r+t(n).toString(),s=Hs(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(n,t,a){var r=Te(t,16),i=this.doPublic(r);if(i==null)return null;var s=i.toString(16).replace(/^1f+00/,""),l=Ws(s);return l==a(n).toString()},e}();function js(e,n){for(var t=e.toByteArray(),a=0;a<t.length&&t[a]==0;)++a;if(t.length-a!=n-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 dn={md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",ripemd160:"3021300906052b2403020105000414"};function Gs(e){return dn[e]||""}function Ws(e){for(var n in dn)if(dn.hasOwnProperty(n)){var t=dn[n],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 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,y=this._iv,d=this._counter;y&&(d=this._counter=y.slice(0),this._iv=void 0),i(d);var h=d.slice(0);c.encryptBlock(h,0);for(var m=0;m<u;m++)l[f+m]^=h[m]}});return a.Decryptor=s,a}(),t.mode.CTRGladman})}(oo)),oo.exports}var ao={exports:{}},Rr;function ds(){return Rr||(Rr=1,function(e,n){(function(t,a,r){e.exports=a(ce(),Ne())})(le,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 y=0;y<f;y++)i[s+y]^=u[y]}});return a.Decryptor=r,a}(),t.mode.OFB})}(ao)),ao.exports}var ro={exports:{}},Ir;function us(){return Ir||(Ir=1,function(e,n){(function(t,a,r){e.exports=a(ce(),Ne())})(le,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:{}},Or;function hs(){return Or||(Or=1,function(e,n){(function(t,a,r){e.exports=a(ce(),Ne())})(le,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:{}},Nr;function gs(){return Nr||(Nr=1,function(e,n){(function(t,a,r){e.exports=a(ce(),Ne())})(le,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:{}},Lr;function ms(){return Lr||(Lr=1,function(e,n){(function(t,a,r){e.exports=a(ce(),Ne())})(le,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 ys(){return Fr||(Fr=1,function(e,n){(function(t,a,r){e.exports=a(ce(),Ne())})(le,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:{}},zr;function xs(){return zr||(zr=1,function(e,n){(function(t,a,r){e.exports=a(ce(),Ne())})(le,function(t){return t.pad.NoPadding={pad:function(){},unpad:function(){}},t.pad.NoPadding})}(fo)),fo.exports}var uo={exports:{}},Mr;function ps(){return Mr||(Mr=1,function(e,n){(function(t,a,r){e.exports=a(ce(),Ne())})(le,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 y=f.parse(u);return s.create({ciphertext:y})}}}(),t.format.Hex})}(uo)),uo.exports}var ho={exports:{}},Pr;function bs(){return Pr||(Pr=1,function(e,n){(function(t,a,r){e.exports=a(ce(),It(),Ot(),kt(),Ne())})(le,function(t){return function(){var a=t,r=a.lib,i=r.BlockCipher,s=a.algo,l=[],f=[],c=[],u=[],y=[],d=[],h=[],m=[],g=[],v=[];(function(){for(var p=[],x=0;x<256;x++)x<128?p[x]=x<<1:p[x]=x<<1^283;for(var k=0,C=0,x=0;x<256;x++){var O=C^C<<1^C<<2^C<<3^C<<4;O=O>>>8^O&255^99,l[k]=O,f[O]=k;var N=p[k],L=p[N],B=p[L],w=p[O]*257^O*16843008;c[k]=w<<24|w>>>8,u[k]=w<<16|w>>>16,y[k]=w<<8|w>>>24,d[k]=w;var w=B*16843009^L*65537^N*257^k*16843008;h[O]=w<<24|w>>>8,m[O]=w<<16|w>>>16,g[O]=w<<8|w>>>24,v[O]=w,k?(k=N^p[p[p[B^N]]],C^=p[p[C]]):k=C=1}})();var D=[0,1,2,4,8,16,32,64,128,27,54],b=s.AES=i.extend({_doReset:function(){var p;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var x=this._keyPriorReset=this._key,k=x.words,C=x.sigBytes/4,O=this._nRounds=C+6,N=(O+1)*4,L=this._keySchedule=[],B=0;B<N;B++)B<C?L[B]=k[B]:(p=L[B-1],B%C?C>6&&B%C==4&&(p=l[p>>>24]<<24|l[p>>>16&255]<<16|l[p>>>8&255]<<8|l[p&255]):(p=p<<8|p>>>24,p=l[p>>>24]<<24|l[p>>>16&255]<<16|l[p>>>8&255]<<8|l[p&255],p^=D[B/C|0]<<24),L[B]=L[B-C]^p);for(var w=this._invKeySchedule=[],E=0;E<N;E++){var B=N-E;if(E%4)var p=L[B];else var p=L[B-4];E<4||B<=4?w[E]=p:w[E]=h[l[p>>>24]]^m[l[p>>>16&255]]^g[l[p>>>8&255]]^v[l[p&255]]}}},encryptBlock:function(p,x){this._doCryptBlock(p,x,this._keySchedule,c,u,y,d,l)},decryptBlock:function(p,x){var k=p[x+1];p[x+1]=p[x+3],p[x+3]=k,this._doCryptBlock(p,x,this._invKeySchedule,h,m,g,v,f);var k=p[x+1];p[x+1]=p[x+3],p[x+3]=k},_doCryptBlock:function(p,x,k,C,O,N,L,B){for(var w=this._nRounds,E=p[x]^k[0],S=p[x+1]^k[1],_=p[x+2]^k[2],z=p[x+3]^k[3],I=4,M=1;M<w;M++){var H=C[E>>>24]^O[S>>>16&255]^N[_>>>8&255]^L[z&255]^k[I++],j=C[S>>>24]^O[_>>>16&255]^N[z>>>8&255]^L[E&255]^k[I++],P=C[_>>>24]^O[z>>>16&255]^N[E>>>8&255]^L[S&255]^k[I++],A=C[z>>>24]^O[E>>>16&255]^N[S>>>8&255]^L[_&255]^k[I++];E=H,S=j,_=P,z=A}var H=(B[E>>>24]<<24|B[S>>>16&255]<<16|B[_>>>8&255]<<8|B[z&255])^k[I++],j=(B[S>>>24]<<24|B[_>>>16&255]<<16|B[z>>>8&255]<<8|B[E&255])^k[I++],P=(B[_>>>24]<<24|B[z>>>16&255]<<16|B[E>>>8&255]<<8|B[S&255])^k[I++],A=(B[z>>>24]<<24|B[E>>>16&255]<<16|B[S>>>8&255]<<8|B[_&255])^k[I++];p[x]=H,p[x+1]=j,p[x+2]=P,p[x+3]=A},keySize:256/32});a.AES=i._createHelper(b)}(),t.AES})}(ho)),ho.exports}var go={exports:{}},Hr;function vs(){return Hr||(Hr=1,function(e,n){(function(t,a,r){e.exports=a(ce(),It(),Ot(),kt(),Ne())})(le,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],y=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],d=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],h=l.DES=s.extend({_doReset:function(){for(var D=this._key,b=D.words,p=[],x=0;x<56;x++){var k=f[x]-1;p[x]=b[k>>>5]>>>31-k%32&1}for(var C=this._subKeys=[],O=0;O<16;O++){for(var N=C[O]=[],L=u[O],x=0;x<24;x++)N[x/6|0]|=p[(c[x]-1+L)%28]<<31-x%6,N[4+(x/6|0)]|=p[28+(c[x+24]-1+L)%28]<<31-x%6;N[0]=N[0]<<1|N[0]>>>31;for(var x=1;x<7;x++)N[x]=N[x]>>>(x-1)*4+3;N[7]=N[7]<<5|N[7]>>>27}for(var B=this._invSubKeys=[],x=0;x<16;x++)B[x]=C[15-x]},encryptBlock:function(D,b){this._doCryptBlock(D,b,this._subKeys)},decryptBlock:function(D,b){this._doCryptBlock(D,b,this._invSubKeys)},_doCryptBlock:function(D,b,p){this._lBlock=D[b],this._rBlock=D[b+1],m.call(this,4,252645135),m.call(this,16,65535),g.call(this,2,858993459),g.call(this,8,16711935),m.call(this,1,1431655765);for(var x=0;x<16;x++){for(var k=p[x],C=this._lBlock,O=this._rBlock,N=0,L=0;L<8;L++)N|=y[L][((O^k[L])&d[L])>>>0];this._lBlock=O,this._rBlock=C^N}var B=this._lBlock;this._lBlock=this._rBlock,this._rBlock=B,m.call(this,1,1431655765),g.call(this,8,16711935),g.call(this,2,858993459),m.call(this,16,65535),m.call(this,4,252645135),D[b]=this._lBlock,D[b+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function m(D,b){var p=(this._lBlock>>>D^this._rBlock)&b;this._rBlock^=p,this._lBlock^=p<<D}function g(D,b){var p=(this._rBlock>>>D^this._lBlock)&b;this._lBlock^=p,this._rBlock^=p<<D}a.DES=s._createHelper(h);var v=l.TripleDES=s.extend({_doReset:function(){var D=this._key,b=D.words;if(b.length!==2&&b.length!==4&&b.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var p=b.slice(0,2),x=b.length<4?b.slice(0,2):b.slice(2,4),k=b.length<6?b.slice(0,2):b.slice(4,6);this._des1=h.createEncryptor(i.create(p)),this._des2=h.createEncryptor(i.create(x)),this._des3=h.createEncryptor(i.create(k))},encryptBlock:function(D,b){this._des1.encryptBlock(D,b),this._des2.decryptBlock(D,b),this._des3.encryptBlock(D,b)},decryptBlock:function(D,b){this._des3.decryptBlock(D,b),this._des2.encryptBlock(D,b),this._des1.decryptBlock(D,b)},keySize:192/32,ivSize:64/32,blockSize:64/32});a.TripleDES=s._createHelper(v)}(),t.TripleDES})}(go)),go.exports}var mo={exports:{}},qr;function Ss(){return qr||(qr=1,function(e,n){(function(t,a,r){e.exports=a(ce(),It(),Ot(),kt(),Ne())})(le,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,y=u.words,d=u.sigBytes,h=this._S=[],m=0;m<256;m++)h[m]=m;for(var m=0,g=0;m<256;m++){var v=m%d,D=y[v>>>2]>>>24-v%4*8&255;g=(g+h[m]+D)%256;var b=h[m];h[m]=h[g],h[g]=b}this._i=this._j=0},_doProcessBlock:function(u,y){u[y]^=f.call(this)},keySize:256/32,ivSize:0});function f(){for(var u=this._S,y=this._i,d=this._j,h=0,m=0;m<4;m++){y=(y+1)%256,d=(d+u[y])%256;var g=u[y];u[y]=u[d],u[d]=g,h|=u[(u[y]+u[d])%256]<<24-m*8}return this._i=y,this._j=d,h}a.RC4=i._createHelper(l);var c=s.RC4Drop=l.extend({cfg:l.cfg.extend({drop:192}),_doReset:function(){l._doReset.call(this);for(var u=this.cfg.drop;u>0;u--)f.call(this)}});a.RC4Drop=i._createHelper(c)}(),t.RC4})}(mo)),mo.exports}var yo={exports:{}},Vr;function Cs(){return Vr||(Vr=1,function(e,n){(function(t,a,r){e.exports=a(ce(),It(),Ot(),kt(),Ne())})(le,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 d=this._key.words,h=this.cfg.iv,m=0;m<4;m++)d[m]=(d[m]<<8|d[m]>>>24)&16711935|(d[m]<<24|d[m]>>>8)&4278255360;var g=this._X=[d[0],d[3]<<16|d[2]>>>16,d[1],d[0]<<16|d[3]>>>16,d[2],d[1]<<16|d[0]>>>16,d[3],d[2]<<16|d[1]>>>16],v=this._C=[d[2]<<16|d[2]>>>16,d[0]&4294901760|d[1]&65535,d[3]<<16|d[3]>>>16,d[1]&4294901760|d[2]&65535,d[0]<<16|d[0]>>>16,d[2]&4294901760|d[3]&65535,d[1]<<16|d[1]>>>16,d[3]&4294901760|d[0]&65535];this._b=0;for(var m=0;m<4;m++)y.call(this);for(var m=0;m<8;m++)v[m]^=g[m+4&7];if(h){var D=h.words,b=D[0],p=D[1],x=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360,k=(p<<8|p>>>24)&16711935|(p<<24|p>>>8)&4278255360,C=x>>>16|k&4294901760,O=k<<16|x&65535;v[0]^=x,v[1]^=C,v[2]^=k,v[3]^=O,v[4]^=x,v[5]^=C,v[6]^=k,v[7]^=O;for(var m=0;m<4;m++)y.call(this)}},_doProcessBlock:function(d,h){var m=this._X;y.call(this),l[0]=m[0]^m[5]>>>16^m[3]<<16,l[1]=m[2]^m[7]>>>16^m[5]<<16,l[2]=m[4]^m[1]>>>16^m[7]<<16,l[3]=m[6]^m[3]>>>16^m[1]<<16;for(var g=0;g<4;g++)l[g]=(l[g]<<8|l[g]>>>24)&16711935|(l[g]<<24|l[g]>>>8)&4278255360,d[h+g]^=l[g]},blockSize:128/32,ivSize:64/32});function y(){for(var d=this._X,h=this._C,m=0;m<8;m++)f[m]=h[m];h[0]=h[0]+1295307597+this._b|0,h[1]=h[1]+3545052371+(h[0]>>>0<f[0]>>>0?1:0)|0,h[2]=h[2]+886263092+(h[1]>>>0<f[1]>>>0?1:0)|0,h[3]=h[3]+1295307597+(h[2]>>>0<f[2]>>>0?1:0)|0,h[4]=h[4]+3545052371+(h[3]>>>0<f[3]>>>0?1:0)|0,h[5]=h[5]+886263092+(h[4]>>>0<f[4]>>>0?1:0)|0,h[6]=h[6]+1295307597+(h[5]>>>0<f[5]>>>0?1:0)|0,h[7]=h[7]+3545052371+(h[6]>>>0<f[6]>>>0?1:0)|0,this._b=h[7]>>>0<f[7]>>>0?1:0;for(var m=0;m<8;m++){var g=d[m]+h[m],v=g&65535,D=g>>>16,b=((v*v>>>17)+v*D>>>15)+D*D,p=((g&4294901760)*g|0)+((g&65535)*g|0);c[m]=b^p}d[0]=c[0]+(c[7]<<16|c[7]>>>16)+(c[6]<<16|c[6]>>>16)|0,d[1]=c[1]+(c[0]<<8|c[0]>>>24)+c[7]|0,d[2]=c[2]+(c[1]<<16|c[1]>>>16)+(c[0]<<16|c[0]>>>16)|0,d[3]=c[3]+(c[2]<<8|c[2]>>>24)+c[1]|0,d[4]=c[4]+(c[3]<<16|c[3]>>>16)+(c[2]<<16|c[2]>>>16)|0,d[5]=c[5]+(c[4]<<8|c[4]>>>24)+c[3]|0,d[6]=c[6]+(c[5]<<16|c[5]>>>16)+(c[4]<<16|c[4]>>>16)|0,d[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:{}},jr;function ws(){return jr||(jr=1,function(e,n){(function(t,a,r){e.exports=a(ce(),It(),Ot(),kt(),Ne())})(le,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 d=this._key.words,h=this.cfg.iv,m=this._X=[d[0],d[3]<<16|d[2]>>>16,d[1],d[0]<<16|d[3]>>>16,d[2],d[1]<<16|d[0]>>>16,d[3],d[2]<<16|d[1]>>>16],g=this._C=[d[2]<<16|d[2]>>>16,d[0]&4294901760|d[1]&65535,d[3]<<16|d[3]>>>16,d[1]&4294901760|d[2]&65535,d[0]<<16|d[0]>>>16,d[2]&4294901760|d[3]&65535,d[1]<<16|d[1]>>>16,d[3]&4294901760|d[0]&65535];this._b=0;for(var v=0;v<4;v++)y.call(this);for(var v=0;v<8;v++)g[v]^=m[v+4&7];if(h){var D=h.words,b=D[0],p=D[1],x=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360,k=(p<<8|p>>>24)&16711935|(p<<24|p>>>8)&4278255360,C=x>>>16|k&4294901760,O=k<<16|x&65535;g[0]^=x,g[1]^=C,g[2]^=k,g[3]^=O,g[4]^=x,g[5]^=C,g[6]^=k,g[7]^=O;for(var v=0;v<4;v++)y.call(this)}},_doProcessBlock:function(d,h){var m=this._X;y.call(this),l[0]=m[0]^m[5]>>>16^m[3]<<16,l[1]=m[2]^m[7]>>>16^m[5]<<16,l[2]=m[4]^m[1]>>>16^m[7]<<16,l[3]=m[6]^m[3]>>>16^m[1]<<16;for(var g=0;g<4;g++)l[g]=(l[g]<<8|l[g]>>>24)&16711935|(l[g]<<24|l[g]>>>8)&4278255360,d[h+g]^=l[g]},blockSize:128/32,ivSize:64/32});function y(){for(var d=this._X,h=this._C,m=0;m<8;m++)f[m]=h[m];h[0]=h[0]+1295307597+this._b|0,h[1]=h[1]+3545052371+(h[0]>>>0<f[0]>>>0?1:0)|0,h[2]=h[2]+886263092+(h[1]>>>0<f[1]>>>0?1:0)|0,h[3]=h[3]+1295307597+(h[2]>>>0<f[2]>>>0?1:0)|0,h[4]=h[4]+3545052371+(h[3]>>>0<f[3]>>>0?1:0)|0,h[5]=h[5]+886263092+(h[4]>>>0<f[4]>>>0?1:0)|0,h[6]=h[6]+1295307597+(h[5]>>>0<f[5]>>>0?1:0)|0,h[7]=h[7]+3545052371+(h[6]>>>0<f[6]>>>0?1:0)|0,this._b=h[7]>>>0<f[7]>>>0?1:0;for(var m=0;m<8;m++){var g=d[m]+h[m],v=g&65535,D=g>>>16,b=((v*v>>>17)+v*D>>>15)+D*D,p=((g&4294901760)*g|0)+((g&65535)*g|0);c[m]=b^p}d[0]=c[0]+(c[7]<<16|c[7]>>>16)+(c[6]<<16|c[6]>>>16)|0,d[1]=c[1]+(c[0]<<8|c[0]>>>24)+c[7]|0,d[2]=c[2]+(c[1]<<16|c[1]>>>16)+(c[0]<<16|c[0]>>>16)|0,d[3]=c[3]+(c[2]<<8|c[2]>>>24)+c[1]|0,d[4]=c[4]+(c[3]<<16|c[3]>>>16)+(c[2]<<16|c[2]>>>16)|0,d[5]=c[5]+(c[4]<<8|c[4]>>>24)+c[3]|0,d[6]=c[6]+(c[5]<<16|c[5]>>>16)+(c[4]<<16|c[4]>>>16)|0,d[7]=c[7]+(c[6]<<8|c[6]>>>24)+c[5]|0}a.RabbitLegacy=i._createHelper(u)}(),t.RabbitLegacy})}(xo)),xo.exports}(function(e,n){(function(t,a,r){e.exports=a(ce(),nn(),es(),ts(),It(),ns(),Ot(),jn(),xr(),os(),vr(),as(),rs(),is(),Qn(),ls(),kt(),Ne(),ss(),cs(),fs(),ds(),us(),hs(),gs(),ms(),ys(),xs(),ps(),bs(),vs(),Ss(),Cs(),ws())})(le,function(t){return t})})(lr);var As=lr.exports;const Ue=ir(As);var ks="0123456789abcdefghijklmnopqrstuvwxyz";function dt(e){return ks.charAt(e)}function Ts(e,n){return e&n}function on(e,n){return e|n}function Gr(e,n){return e^n}function Wr(e,n){return e&~n}function Bs(e){if(e==0)return-1;var n=0;return e&65535||(e>>=16,n+=16),e&255||(e>>=8,n+=8),e&15||(e>>=4,n+=4),e&3||(e>>=2,n+=2),e&1||++n,n}function Es(e){for(var n=0;e!=0;)e&=e-1,++n;return n}var Nt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ur="=";function an(e){var n,t,a="";for(n=0;n+3<=e.length;n+=3)t=parseInt(e.substring(n,n+3),16),a+=Nt.charAt(t>>6)+Nt.charAt(t&63);for(n+1==e.length?(t=parseInt(e.substring(n,n+1),16),a+=Nt.charAt(t<<2)):n+2==e.length&&(t=parseInt(e.substring(n,n+2),16),a+=Nt.charAt(t>>2)+Nt.charAt((t&3)<<4));(a.length&3)>0;)a+=Ur;return a}function $r(e){var n="",t,a=0,r=0;for(t=0;t<e.length&&e.charAt(t)!=Ur;++t){var i=Nt.indexOf(e.charAt(t));i<0||(a==0?(n+=dt(i>>2),r=i&3,a=1):a==1?(n+=dt(r<<2|i>>4),r=i&15,a=2):a==2?(n+=dt(r),n+=dt(i>>2),r=i&3,a=3):(n+=dt(r<<2|i>>4),n+=dt(i&15),a=0))}return a==1&&(n+=dt(r<<2)),n}var Lt,Ds={decode:function(e){var n;if(Lt===void 0){var t="0123456789ABCDEF",a=` \f
72
+ \r  \u2028\u2029`;for(Lt={},n=0;n<16;++n)Lt[t.charAt(n)]=n;for(t=t.toLowerCase(),n=10;n<16;++n)Lt[t.charAt(n)]=n;for(n=0;n<a.length;++n)Lt[a.charAt(n)]=-1}var r=[],i=0,s=0;for(n=0;n<e.length;++n){var l=e.charAt(n);if(l=="=")break;if(l=Lt[l],l!=-1){if(l===void 0)throw new Error("Illegal character at offset "+n);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}},Tt,po={decode:function(e){var n;if(Tt===void 0){var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=`= \f
73
+ \r  \u2028\u2029`;for(Tt=Object.create(null),n=0;n<64;++n)Tt[t.charAt(n)]=n;for(Tt["-"]=62,Tt._=63,n=0;n<a.length;++n)Tt[a.charAt(n)]=-1}var r=[],i=0,s=0;for(n=0;n<e.length;++n){var l=e.charAt(n);if(l=="=")break;if(l=Tt[l],l!=-1){if(l===void 0)throw new Error("Illegal character at offset "+n);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 n=po.re.exec(e);if(n)if(n[1])e=n[1];else if(n[2])e=n[2];else throw new Error("RegExp out of sync");return po.decode(e)}},Ft=1e13,Zt=function(){function e(n){this.buf=[+n||0]}return e.prototype.mulAdd=function(n,t){var a=this.buf,r=a.length,i,s;for(i=0;i<r;++i)s=a[i]*n+t,s<Ft?t=0:(t=0|s/Ft,s-=t*Ft),a[i]=s;t>0&&(a[i]=t)},e.prototype.sub=function(n){var t=this.buf,a=t.length,r,i;for(r=0;r<a;++r)i=t[r]-n,i<0?(i+=Ft,n=1):n=0,t[r]=i;for(;t[t.length-1]===0;)t.pop()},e.prototype.toString=function(n){if((n||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+=(Ft+t[r]).toString().substring(1);return a},e.prototype.valueOf=function(){for(var n=this.buf,t=0,a=n.length-1;a>=0;--a)t=t*Ft+n[a];return t},e.prototype.simplify=function(){var n=this.buf;return n.length==1?n[0]:this},e}(),Zr="…",_s=/^(\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)?)?$/,Rs=/^(\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 zt(e,n){return e.length>n&&(e=e.substring(0,n)+Zr),e}var bo=function(){function e(n,t){this.hexDigits="0123456789ABCDEF",n instanceof e?(this.enc=n.enc,this.pos=n.pos):(this.enc=n,this.pos=t)}return e.prototype.get=function(n){if(n===void 0&&(n=this.pos++),n>=this.enc.length)throw new Error("Requesting byte offset ".concat(n," on a stream of length ").concat(this.enc.length));return typeof this.enc=="string"?this.enc.charCodeAt(n):this.enc[n]},e.prototype.hexByte=function(n){return this.hexDigits.charAt(n>>4&15)+this.hexDigits.charAt(n&15)},e.prototype.hexDump=function(n,t,a){for(var r="",i=n;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(n,t){for(var a=n;a<t;++a){var r=this.get(a);if(r<32||r>176)return!1}return!0},e.prototype.parseStringISO=function(n,t){for(var a="",r=n;r<t;++r)a+=String.fromCharCode(this.get(r));return a},e.prototype.parseStringUTF=function(n,t){for(var a="",r=n;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(n,t){for(var a="",r,i,s=n;s<t;)r=this.get(s++),i=this.get(s++),a+=String.fromCharCode(r<<8|i);return a},e.prototype.parseTime=function(n,t,a){var r=this.parseStringISO(n,t),i=(a?_s:Rs).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(n,t){for(var a=this.get(n),r=a>127,i=r?255:0,s,l="";a==i&&++n<t;)a=this.get(n);if(s=t-n,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 Zt(a),c=n+1;c<t;++c)f.mulAdd(256,this.get(c));return l+f.toString()},e.prototype.parseBitString=function(n,t,a){for(var r=this.get(n),i=(t-n-1<<3)-r,s="("+i+` bit)
76
+ `,l="",f=n+1;f<t;++f){for(var c=this.get(f),u=f==t-1?r:0,y=7;y>=u;--y)l+=c>>y&1?"1":"0";if(l.length>a)return s+zt(l,a)}return s+l},e.prototype.parseOctetString=function(n,t,a){if(this.isASCII(n,t))return zt(this.parseStringISO(n,t),a);var r=t-n,i="("+r+` byte)
77
+ `;a/=2,r>a&&(t=n+a);for(var s=n;s<t;++s)i+=this.hexByte(this.get(s));return r>a&&(i+=Zr),i},e.prototype.parseOID=function(n,t,a){for(var r="",i=new Zt,s=0,l=n;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 Zt)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 zt(r,a);i=new Zt,s=0}}return s>0&&(r+=".incomplete"),r},e}(),Is=function(){function e(n,t,a,r,i){if(!(r instanceof Yr))throw new Error("Invalid tag value.");this.stream=n,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(n){if(this.tag===void 0)return null;n===void 0&&(n=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,n);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,n);case 4:return this.sub?"("+this.sub.length+" elem)":this.stream.parseOctetString(t,t+a,n);case 6:return this.stream.parseOID(t,t+a,n);case 16:case 17:return this.sub!==null?"("+this.sub.length+" elem)":"(no elem)";case 12:return zt(this.stream.parseStringUTF(t,t+a),n);case 18:case 19:case 20:case 21:case 22:case 26:return zt(this.stream.parseStringISO(t,t+a),n);case 30:return zt(this.stream.parseStringBMP(t,t+a),n);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(n){n===void 0&&(n="");var t=n+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){n+=" ";for(var a=0,r=this.sub.length;a<r;++a)t+=this.sub[a].toPrettyString(n)}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(n){var t=n.get(),a=t&127;if(a==t)return a;if(a>6)throw new Error("Length over 48 bits not supported at position "+(n.pos-1));if(a===0)return null;t=0;for(var r=0;r<a;++r)t=t*256+n.get();return t},e.prototype.getHexStringValue=function(){var n=this.toHexString(),t=this.header*2,a=this.length*2;return n.substr(t,a)},e.decode=function(n){var t;n instanceof bo?t=n:t=new bo(n,0);var a=new bo(t),r=new Yr(t),i=e.decodeLength(t),s=t.pos,l=s-a.pos,f=null,c=function(){var y=[];if(i!==null){for(var d=s+i;t.pos<d;)y[y.length]=e.decode(t);if(t.pos!=d)throw new Error("Content size is not correct for container starting at offset "+s)}else try{for(;;){var h=e.decode(t);if(h.tag.isEOC())break;y[y.length]=h}i=s-t.pos}catch(m){throw new Error("Exception while decoding undefined length content: "+m)}return y};if(r.tagConstructed)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}(),Yr=function(){function e(n){var t=n.get();if(this.tagClass=t>>6,this.tagConstructed=(t&32)!==0,this.tagNumber=t&31,this.tagNumber==31){var a=new Zt;do t=n.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}(),yt,Os=0xdeadbeefcafe,Kr=(Os&16777215)==15715070,Pe=[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],Ns=(1<<26)/Pe[Pe.length-1],re=function(){function e(n,t,a){n!=null&&(typeof n=="number"?this.fromNumber(n,t,a):t==null&&typeof n!="string"?this.fromString(n,256):this.fromString(n,t))}return e.prototype.toString=function(n){if(this.s<0)return"-"+this.negate().toString(n);var t;if(n==16)t=4;else if(n==8)t=3;else if(n==2)t=1;else if(n==32)t=5;else if(n==4)t=2;else return this.toRadix(n);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=dt(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+=dt(r));return i?s:"0"},e.prototype.negate=function(){var n=se();return e.ZERO.subTo(this,n),n},e.prototype.abs=function(){return this.s<0?this.negate():this},e.prototype.compareTo=function(n){var t=this.s-n.s;if(t!=0)return t;var a=this.t;if(t=a-n.t,t!=0)return this.s<0?-t:t;for(;--a>=0;)if((t=this[a]-n[a])!=0)return t;return 0},e.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+ln(this[this.t-1]^this.s&this.DM)},e.prototype.mod=function(n){var t=se();return this.abs().divRemTo(n,null,t),this.s<0&&t.compareTo(e.ZERO)>0&&n.subTo(t,t),t},e.prototype.modPowInt=function(n,t){var a;return n<256||t.isEven()?a=new Qr(t):a=new Jr(t),this.exp(n,a)},e.prototype.clone=function(){var n=se();return this.copyTo(n),n},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 n=this.t,t=[];t[0]=this.s;var a=this.DB-n*this.DB%8,r,i=0;if(n-- >0)for(a<this.DB&&(r=this[n]>>a)!=(this.s&this.DM)>>a&&(t[i++]=r|this.s<<this.DB-a);n>=0;)a<8?(r=(this[n]&(1<<a)-1)<<8-a,r|=this[--n]>>(a+=this.DB-8)):(r=this[n]>>(a-=8)&255,a<=0&&(a+=this.DB,--n)),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(n){return this.compareTo(n)==0},e.prototype.min=function(n){return this.compareTo(n)<0?this:n},e.prototype.max=function(n){return this.compareTo(n)>0?this:n},e.prototype.and=function(n){var t=se();return this.bitwiseTo(n,Ts,t),t},e.prototype.or=function(n){var t=se();return this.bitwiseTo(n,on,t),t},e.prototype.xor=function(n){var t=se();return this.bitwiseTo(n,Gr,t),t},e.prototype.andNot=function(n){var t=se();return this.bitwiseTo(n,Wr,t),t},e.prototype.not=function(){for(var n=se(),t=0;t<this.t;++t)n[t]=this.DM&~this[t];return n.t=this.t,n.s=~this.s,n},e.prototype.shiftLeft=function(n){var t=se();return n<0?this.rShiftTo(-n,t):this.lShiftTo(n,t),t},e.prototype.shiftRight=function(n){var t=se();return n<0?this.lShiftTo(-n,t):this.rShiftTo(n,t),t},e.prototype.getLowestSetBit=function(){for(var n=0;n<this.t;++n)if(this[n]!=0)return n*this.DB+Bs(this[n]);return this.s<0?this.t*this.DB:-1},e.prototype.bitCount=function(){for(var n=0,t=this.s&this.DM,a=0;a<this.t;++a)n+=Es(this[a]^t);return n},e.prototype.testBit=function(n){var t=Math.floor(n/this.DB);return t>=this.t?this.s!=0:(this[t]&1<<n%this.DB)!=0},e.prototype.setBit=function(n){return this.changeBit(n,on)},e.prototype.clearBit=function(n){return this.changeBit(n,Wr)},e.prototype.flipBit=function(n){return this.changeBit(n,Gr)},e.prototype.add=function(n){var t=se();return this.addTo(n,t),t},e.prototype.subtract=function(n){var t=se();return this.subTo(n,t),t},e.prototype.multiply=function(n){var t=se();return this.multiplyTo(n,t),t},e.prototype.divide=function(n){var t=se();return this.divRemTo(n,t,null),t},e.prototype.remainder=function(n){var t=se();return this.divRemTo(n,null,t),t},e.prototype.divideAndRemainder=function(n){var t=se(),a=se();return this.divRemTo(n,t,a),[t,a]},e.prototype.modPow=function(n,t){var a=n.bitLength(),r,i=xt(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 Qr(t):t.isEven()?s=new Fs(t):s=new Jr(t);var l=[],f=3,c=r-1,u=(1<<r)-1;if(l[1]=s.convert(this),r>1){var y=se();for(s.sqrTo(l[1],y);f<=u;)l[f]=se(),s.mulTo(y,l[f-2],l[f]),f+=2}var d=n.t-1,h,m=!0,g=se(),v;for(a=ln(n[d])-1;d>=0;){for(a>=c?h=n[d]>>a-c&u:(h=(n[d]&(1<<a+1)-1)<<c-a,d>0&&(h|=n[d-1]>>this.DB+a-c)),f=r;!(h&1);)h>>=1,--f;if((a-=f)<0&&(a+=this.DB,--d),m)l[h].copyTo(i),m=!1;else{for(;f>1;)s.sqrTo(i,g),s.sqrTo(g,i),f-=2;f>0?s.sqrTo(i,g):(v=i,i=g,g=v),s.mulTo(g,l[h],i)}for(;d>=0&&!(n[d]&1<<a);)s.sqrTo(i,g),v=i,i=g,g=v,--a<0&&(a=this.DB-1,--d)}return s.revert(i)},e.prototype.modInverse=function(n){var t=n.isEven();if(this.isEven()&&t||n.signum()==0)return e.ZERO;for(var a=n.clone(),r=this.clone(),i=xt(1),s=xt(0),l=xt(0),f=xt(1);a.signum()!=0;){for(;a.isEven();)a.rShiftTo(1,a),t?((!i.isEven()||!s.isEven())&&(i.addTo(this,i),s.subTo(n,s)),i.rShiftTo(1,i)):s.isEven()||s.subTo(n,s),s.rShiftTo(1,s);for(;r.isEven();)r.rShiftTo(1,r),t?((!l.isEven()||!f.isEven())&&(l.addTo(this,l),f.subTo(n,f)),l.rShiftTo(1,l)):f.isEven()||f.subTo(n,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(n)>=0)return f.subtract(n);if(f.signum()<0)f.addTo(n,f);else return f;return f.signum()<0?f.add(n):f},e.prototype.pow=function(n){return this.exp(n,new Ls)},e.prototype.gcd=function(n){var t=this.s<0?this.negate():this.clone(),a=n.s<0?n.negate():n.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(n){var t,a=this.abs();if(a.t==1&&a[0]<=Pe[Pe.length-1]){for(t=0;t<Pe.length;++t)if(a[0]==Pe[t])return!0;return!1}if(a.isEven())return!1;for(t=1;t<Pe.length;){for(var r=Pe[t],i=t+1;i<Pe.length&&r<Ns;)r*=Pe[i++];for(r=a.modInt(r);t<i;)if(r%Pe[t++]==0)return!1}return a.millerRabin(n)},e.prototype.copyTo=function(n){for(var t=this.t-1;t>=0;--t)n[t]=this[t];n.t=this.t,n.s=this.s},e.prototype.fromInt=function(n){this.t=1,this.s=n<0?-1:0,n>0?this[0]=n:n<-1?this[0]=n+this.DV:this.t=0},e.prototype.fromString=function(n,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(n,t);return}this.t=0,this.s=0;for(var r=n.length,i=!1,s=0;--r>=0;){var l=a==8?+n[r]&255:ei(n,r);if(l<0){n.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&&+n[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 n=this.s&this.DM;this.t>0&&this[this.t-1]==n;)--this.t},e.prototype.dlShiftTo=function(n,t){var a;for(a=this.t-1;a>=0;--a)t[a+n]=this[a];for(a=n-1;a>=0;--a)t[a]=0;t.t=this.t+n,t.s=this.s},e.prototype.drShiftTo=function(n,t){for(var a=n;a<this.t;++a)t[a-n]=this[a];t.t=Math.max(this.t-n,0),t.s=this.s},e.prototype.lShiftTo=function(n,t){for(var a=n%this.DB,r=this.DB-a,i=(1<<r)-1,s=Math.floor(n/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(n,t){t.s=this.s;var a=Math.floor(n/this.DB);if(a>=this.t){t.t=0;return}var r=n%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(n,t){for(var a=0,r=0,i=Math.min(n.t,this.t);a<i;)r+=this[a]-n[a],t[a++]=r&this.DM,r>>=this.DB;if(n.t<this.t){for(r-=n.s;a<this.t;)r+=this[a],t[a++]=r&this.DM,r>>=this.DB;r+=this.s}else{for(r+=this.s;a<n.t;)r-=n[a],t[a++]=r&this.DM,r>>=this.DB;r-=n.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(n,t){var a=this.abs(),r=n.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!=n.s&&e.ZERO.subTo(t,t)},e.prototype.squareTo=function(n){for(var t=this.abs(),a=n.t=2*t.t;--a>=0;)n[a]=0;for(a=0;a<t.t-1;++a){var r=t.am(a,t[a],n,2*a,0,1);(n[a+t.t]+=t.am(a+1,2*t[a],n,2*a+1,r,t.t-a-1))>=t.DV&&(n[a+t.t]-=t.DV,n[a+t.t+1]=1)}n.t>0&&(n[n.t-1]+=t.am(a,t[a],n,2*a,0,1)),n.s=0,n.clamp()},e.prototype.divRemTo=function(n,t,a){var r=n.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=se());var s=se(),l=this.s,f=n.s,c=this.DB-ln(r[r.t-1]);c>0?(r.lShiftTo(c,s),i.lShiftTo(c,a)):(r.copyTo(s),i.copyTo(a));var u=s.t,y=s[u-1];if(y!=0){var d=y*(1<<this.F1)+(u>1?s[u-2]>>this.F2:0),h=this.FV/d,m=(1<<this.F1)/d,g=1<<this.F2,v=a.t,D=v-u,b=t??se();for(s.dlShiftTo(D,b),a.compareTo(b)>=0&&(a[a.t++]=1,a.subTo(b,a)),e.ONE.dlShiftTo(u,b),b.subTo(s,s);s.t<u;)s[s.t++]=0;for(;--D>=0;){var p=a[--v]==y?this.DM:Math.floor(a[v]*h+(a[v-1]+g)*m);if((a[v]+=s.am(0,p,a,D,0,u))<p)for(s.dlShiftTo(D,b),a.subTo(b,a);a[v]<--p;)a.subTo(b,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 n=this[0];if(!(n&1))return 0;var t=n&3;return t=t*(2-(n&15)*t)&15,t=t*(2-(n&255)*t)&255,t=t*(2-((n&65535)*t&65535))&65535,t=t*(2-n*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(n,t){if(n>4294967295||n<1)return e.ONE;var a=se(),r=se(),i=t.convert(this),s=ln(n)-1;for(i.copyTo(a);--s>=0;)if(t.sqrTo(a,r),(n&1<<s)>0)t.mulTo(r,i,a);else{var l=a;a=r,r=l}return t.revert(a)},e.prototype.chunkSize=function(n){return Math.floor(Math.LN2*this.DB/Math.log(n))},e.prototype.toRadix=function(n){if(n==null&&(n=10),this.signum()==0||n<2||n>36)return"0";var t=this.chunkSize(n),a=Math.pow(n,t),r=xt(a),i=se(),s=se(),l="";for(this.divRemTo(r,i,s);i.signum()>0;)l=(a+s.intValue()).toString(n).substr(1)+l,i.divRemTo(r,i,s);return s.intValue().toString(n)+l},e.prototype.fromRadix=function(n,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<n.length;++f){var c=ei(n,f);if(c<0){n.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(n,t,a){if(typeof t=="number")if(n<2)this.fromInt(1);else for(this.fromNumber(n,a),this.testBit(n-1)||this.bitwiseTo(e.ONE.shiftLeft(n-1),on,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(t);)this.dAddOffset(2,0),this.bitLength()>n&&this.subTo(e.ONE.shiftLeft(n-1),this);else{var r=[],i=n&7;r.length=(n>>3)+1,t.nextBytes(r),i>0?r[0]&=(1<<i)-1:r[0]=0,this.fromString(r,256)}},e.prototype.bitwiseTo=function(n,t,a){var r,i,s=Math.min(n.t,this.t);for(r=0;r<s;++r)a[r]=t(this[r],n[r]);if(n.t<this.t){for(i=n.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<n.t;++r)a[r]=t(i,n[r]);a.t=n.t}a.s=t(this.s,n.s),a.clamp()},e.prototype.changeBit=function(n,t){var a=e.ONE.shiftLeft(n);return this.bitwiseTo(a,t,a),a},e.prototype.addTo=function(n,t){for(var a=0,r=0,i=Math.min(n.t,this.t);a<i;)r+=this[a]+n[a],t[a++]=r&this.DM,r>>=this.DB;if(n.t<this.t){for(r+=n.s;a<this.t;)r+=this[a],t[a++]=r&this.DM,r>>=this.DB;r+=this.s}else{for(r+=this.s;a<n.t;)r+=n[a],t[a++]=r&this.DM,r>>=this.DB;r+=n.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(n){this[this.t]=this.am(0,n-1,this,0,0,this.t),++this.t,this.clamp()},e.prototype.dAddOffset=function(n,t){if(n!=0){for(;this.t<=t;)this[this.t++]=0;for(this[t]+=n;this[t]>=this.DV;)this[t]-=this.DV,++t>=this.t&&(this[this.t++]=0),++this[t]}},e.prototype.multiplyLowerTo=function(n,t,a){var r=Math.min(this.t+n.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,n[r],a,r,0,this.t);for(var i=Math.min(n.t,t);r<i;++r)this.am(0,n[r],a,r,0,t-r);a.clamp()},e.prototype.multiplyUpperTo=function(n,t,a){--t;var r=a.t=this.t+n.t-t;for(a.s=0;--r>=0;)a[r]=0;for(r=Math.max(t-this.t,0);r<n.t;++r)a[this.t+r-t]=this.am(t-r,n[r],a,0,0,this.t+r-t);a.clamp(),a.drShiftTo(1,a)},e.prototype.modInt=function(n){if(n<=0)return 0;var t=this.DV%n,a=this.s<0?n-1:0;if(this.t>0)if(t==0)a=this[0]%n;else for(var r=this.t-1;r>=0;--r)a=(t*a+this[r])%n;return a},e.prototype.millerRabin=function(n){var t=this.subtract(e.ONE),a=t.getLowestSetBit();if(a<=0)return!1;var r=t.shiftRight(a);n=n+1>>1,n>Pe.length&&(n=Pe.length);for(var i=se(),s=0;s<n;++s){i.fromInt(Pe[Math.floor(Math.random()*Pe.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 n=se();return this.squareTo(n),n},e.prototype.gcda=function(n,t){var a=this.s<0?this.negate():this.clone(),r=n.s<0?n.negate():n.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(n,t,a,r){if(typeof t=="number")if(n<2)this.fromInt(1);else{this.fromNumber(n,a),this.testBit(n-1)||this.bitwiseTo(e.ONE.shiftLeft(n-1),on,this),this.isEven()&&this.dAddOffset(1,0);var i=this,s=function(){i.dAddOffset(2,0),i.bitLength()>n&&i.subTo(e.ONE.shiftLeft(n-1),i),i.isProbablePrime(t)?setTimeout(function(){r()},0):setTimeout(s,0)};setTimeout(s,0)}else{var l=[],f=n&7;l.length=(n>>3)+1,t.nextBytes(l),f>0?l[0]&=(1<<f)-1:l[0]=0,this.fromString(l,256)}},e}(),Ls=function(){function e(){}return e.prototype.convert=function(n){return n},e.prototype.revert=function(n){return n},e.prototype.mulTo=function(n,t,a){n.multiplyTo(t,a)},e.prototype.sqrTo=function(n,t){n.squareTo(t)},e}(),Qr=function(){function e(n){this.m=n}return e.prototype.convert=function(n){return n.s<0||n.compareTo(this.m)>=0?n.mod(this.m):n},e.prototype.revert=function(n){return n},e.prototype.reduce=function(n){n.divRemTo(this.m,null,n)},e.prototype.mulTo=function(n,t,a){n.multiplyTo(t,a),this.reduce(a)},e.prototype.sqrTo=function(n,t){n.squareTo(t),this.reduce(t)},e}(),Jr=function(){function e(n){this.m=n,this.mp=n.invDigit(),this.mpl=this.mp&32767,this.mph=this.mp>>15,this.um=(1<<n.DB-15)-1,this.mt2=2*n.t}return e.prototype.convert=function(n){var t=se();return n.abs().dlShiftTo(this.m.t,t),t.divRemTo(this.m,null,t),n.s<0&&t.compareTo(re.ZERO)>0&&this.m.subTo(t,t),t},e.prototype.revert=function(n){var t=se();return n.copyTo(t),this.reduce(t),t},e.prototype.reduce=function(n){for(;n.t<=this.mt2;)n[n.t++]=0;for(var t=0;t<this.m.t;++t){var a=n[t]&32767,r=a*this.mpl+((a*this.mph+(n[t]>>15)*this.mpl&this.um)<<15)&n.DM;for(a=t+this.m.t,n[a]+=this.m.am(0,r,n,t,0,this.m.t);n[a]>=n.DV;)n[a]-=n.DV,n[++a]++}n.clamp(),n.drShiftTo(this.m.t,n),n.compareTo(this.m)>=0&&n.subTo(this.m,n)},e.prototype.mulTo=function(n,t,a){n.multiplyTo(t,a),this.reduce(a)},e.prototype.sqrTo=function(n,t){n.squareTo(t),this.reduce(t)},e}(),Fs=function(){function e(n){this.m=n,this.r2=se(),this.q3=se(),re.ONE.dlShiftTo(2*n.t,this.r2),this.mu=this.r2.divide(n)}return e.prototype.convert=function(n){if(n.s<0||n.t>2*this.m.t)return n.mod(this.m);if(n.compareTo(this.m)<0)return n;var t=se();return n.copyTo(t),this.reduce(t),t},e.prototype.revert=function(n){return n},e.prototype.reduce=function(n){for(n.drShiftTo(this.m.t-1,this.r2),n.t>this.m.t+1&&(n.t=this.m.t+1,n.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);n.compareTo(this.r2)<0;)n.dAddOffset(1,this.m.t+1);for(n.subTo(this.r2,n);n.compareTo(this.m)>=0;)n.subTo(this.m,n)},e.prototype.mulTo=function(n,t,a){n.multiplyTo(t,a),this.reduce(a)},e.prototype.sqrTo=function(n,t){n.squareTo(t),this.reduce(t)},e}();function se(){return new re(null)}function Te(e,n){return new re(e,n)}var Xr=typeof navigator<"u";Xr&&Kr&&navigator.appName=="Microsoft Internet Explorer"?(re.prototype.am=function(n,t,a,r,i,s){for(var l=t&32767,f=t>>15;--s>=0;){var c=this[n]&32767,u=this[n++]>>15,y=f*c+u*l;c=l*c+((y&32767)<<15)+a[r]+(i&1073741823),i=(c>>>30)+(y>>>15)+f*u+(i>>>30),a[r++]=c&1073741823}return i},yt=30):Xr&&Kr&&navigator.appName!="Netscape"?(re.prototype.am=function(n,t,a,r,i,s){for(;--s>=0;){var l=t*this[n++]+a[r]+i;i=Math.floor(l/67108864),a[r++]=l&67108863}return i},yt=26):(re.prototype.am=function(n,t,a,r,i,s){for(var l=t&16383,f=t>>14;--s>=0;){var c=this[n]&16383,u=this[n++]>>14,y=f*c+u*l;c=l*c+((y&16383)<<14)+a[r]+i,i=(c>>28)+(y>>14)+f*u,a[r++]=c&268435455}return i},yt=28),re.prototype.DB=yt,re.prototype.DM=(1<<yt)-1,re.prototype.DV=1<<yt;var vo=52;re.prototype.FV=Math.pow(2,vo),re.prototype.F1=vo-yt,re.prototype.F2=2*yt-vo;var rn=[],Mt,Je;for(Mt="0".charCodeAt(0),Je=0;Je<=9;++Je)rn[Mt++]=Je;for(Mt="a".charCodeAt(0),Je=10;Je<36;++Je)rn[Mt++]=Je;for(Mt="A".charCodeAt(0),Je=10;Je<36;++Je)rn[Mt++]=Je;function ei(e,n){var t=rn[e.charCodeAt(n)];return t??-1}function xt(e){var n=se();return n.fromInt(e),n}function ln(e){var n=1,t;return(t=e>>>16)!=0&&(e=t,n+=16),(t=e>>8)!=0&&(e=t,n+=8),(t=e>>4)!=0&&(e=t,n+=4),(t=e>>2)!=0&&(e=t,n+=2),(t=e>>1)!=0&&(e=t,n+=1),n}re.ZERO=xt(0),re.ONE=xt(1);var zs=function(){function e(){this.i=0,this.j=0,this.S=[]}return e.prototype.init=function(n){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]+n[t%n.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 n;return this.i=this.i+1&255,this.j=this.j+this.S[this.i]&255,n=this.S[this.i],this.S[this.i]=this.S[this.j],this.S[this.j]=n,this.S[n+this.S[this.i]&255]},e}();function Ms(){return new zs}var ti=256,sn,pt=null,rt;if(pt==null){pt=[],rt=0;var cn=void 0;if(typeof window<"u"&&window.crypto&&window.crypto.getRandomValues){var So=new Uint32Array(256);for(window.crypto.getRandomValues(So),cn=0;cn<So.length;++cn)pt[rt++]=So[cn]&255}var fn=0,dn=function(e){if(fn=fn||0,fn>=256||rt>=ti){window.removeEventListener?window.removeEventListener("mousemove",dn,!1):window.detachEvent&&window.detachEvent("onmousemove",dn);return}try{var n=e.x+e.y;pt[rt++]=n&255,fn+=1}catch{}};typeof window<"u"&&(window.addEventListener?window.addEventListener("mousemove",dn,!1):window.attachEvent&&window.attachEvent("onmousemove",dn))}function Ps(){if(sn==null){for(sn=Ms();rt<ti;){var e=Math.floor(65536*Math.random());pt[rt++]=e&255}for(sn.init(pt),rt=0;rt<pt.length;++rt)pt[rt]=0;rt=0}return sn.next()}var Co=function(){function e(){}return e.prototype.nextBytes=function(n){for(var t=0;t<n.length;++t)n[t]=Ps()},e}();function Hs(e,n){if(n<e.length+22)return console.error("Message too long for RSA"),null;for(var t=n-e.length-6,a="",r=0;r<t;r+=2)a+="ff";var i="0001"+a+"00"+e;return Te(i,16)}function qs(e,n){if(n<e.length+11)return console.error("Message too long for RSA"),null;for(var t=[],a=e.length-1;a>=0&&n>0;){var r=e.charCodeAt(a--);r<128?t[--n]=r:r>127&&r<2048?(t[--n]=r&63|128,t[--n]=r>>6|192):(t[--n]=r&63|128,t[--n]=r>>6&63|128,t[--n]=r>>12|224)}t[--n]=0;for(var i=new Co,s=[];n>2;){for(s[0]=0;s[0]==0;)i.nextBytes(s);t[--n]=s[0]}return t[--n]=2,t[--n]=0,new re(t)}var Vs=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(n){return n.modPowInt(this.e,this.n)},e.prototype.doPrivate=function(n){if(this.p==null||this.q==null)return n.modPow(this.d,this.n);for(var t=n.mod(this.p).modPow(this.dmp1,this.p),a=n.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(n,t){n!=null&&t!=null&&n.length>0&&t.length>0?(this.n=Te(n,16),this.e=parseInt(t,16)):console.error("Invalid RSA public key")},e.prototype.encrypt=function(n){var t=this.n.bitLength()+7>>3,a=qs(n,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(n,t,a){n!=null&&t!=null&&n.length>0&&t.length>0?(this.n=Te(n,16),this.e=parseInt(t,16),this.d=Te(a,16)):console.error("Invalid RSA private key")},e.prototype.setPrivateEx=function(n,t,a,r,i,s,l,f){n!=null&&t!=null&&n.length>0&&t.length>0?(this.n=Te(n,16),this.e=parseInt(t,16),this.d=Te(a,16),this.p=Te(r,16),this.q=Te(i,16),this.dmp1=Te(s,16),this.dmq1=Te(l,16),this.coeff=Te(f,16)):console.error("Invalid RSA private key")},e.prototype.generate=function(n,t){var a=new Co,r=n>>1;this.e=parseInt(t,16);for(var i=new re(t,16);;){for(;this.p=new re(n-r,1,a),!(this.p.subtract(re.ONE).gcd(i).compareTo(re.ONE)==0&&this.p.isProbablePrime(10)););for(;this.q=new re(r,1,a),!(this.q.subtract(re.ONE).gcd(i).compareTo(re.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(re.ONE),f=this.q.subtract(re.ONE),c=l.multiply(f);if(c.gcd(i).compareTo(re.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(n){var t=Te(n,16),a=this.doPrivate(t);return a==null?null:js(a,this.n.bitLength()+7>>3)},e.prototype.generateAsync=function(n,t,a){var r=new Co,i=n>>1;this.e=parseInt(t,16);var s=new re(t,16),l=this,f=function(){var c=function(){if(l.p.compareTo(l.q)<=0){var d=l.p;l.p=l.q,l.q=d}var h=l.p.subtract(re.ONE),m=l.q.subtract(re.ONE),g=h.multiply(m);g.gcd(s).compareTo(re.ONE)==0?(l.n=l.p.multiply(l.q),l.d=s.modInverse(g),l.dmp1=l.d.mod(h),l.dmq1=l.d.mod(m),l.coeff=l.q.modInverse(l.p),setTimeout(function(){a()},0)):setTimeout(f,0)},u=function(){l.q=se(),l.q.fromNumberAsync(i,1,r,function(){l.q.subtract(re.ONE).gcda(s,function(d){d.compareTo(re.ONE)==0&&l.q.isProbablePrime(10)?setTimeout(c,0):setTimeout(u,0)})})},y=function(){l.p=se(),l.p.fromNumberAsync(n-i,1,r,function(){l.p.subtract(re.ONE).gcda(s,function(d){d.compareTo(re.ONE)==0&&l.p.isProbablePrime(10)?setTimeout(u,0):setTimeout(y,0)})})};setTimeout(y,0)};setTimeout(f,0)},e.prototype.sign=function(n,t,a){var r=Gs(a),i=r+t(n).toString(),s=Hs(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(n,t,a){var r=Te(t,16),i=this.doPublic(r);if(i==null)return null;var s=i.toString(16).replace(/^1f+00/,""),l=Ws(s);return l==a(n).toString()},e}();function js(e,n){for(var t=e.toByteArray(),a=0;a<t.length&&t[a]==0;)++a;if(t.length-a!=n-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 un={md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",ripemd160:"3021300906052b2403020105000414"};function Gs(e){return un[e]||""}function Ws(e){for(var n in un)if(un.hasOwnProperty(n)){var t=un[n],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
@@ -87,33 +87,33 @@ version: 2.9.0
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 n=e.toString(16);return n.length%2==1&&(n="0"+n),n},this.bigIntToMinTwosComplementsHex=function(e){var n=e.toString(16);if(n.substr(0,1)!="-")n.length%2==1?n="0"+n:n.match(/^[0-7]/)||(n="00"+n);else{var t=n.substr(1),a=t.length;a%2==1?a+=1:n.match(/^[0-7]/)||(a+=2);for(var r="",i=0;i<a;i++)r+="f";var s=new re(r,16),l=s.xor(e).add(re.ONE);n=l.toString(16).replace(/^-/,"")}return n},this.getPEMStringFromHex=function(e,n){return hextopem(e,n)},this.newObject=function(e){var n=G,t=n.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,x=t.DERNumericString,d=t.DERPrintableString,h=t.DERTeletexString,m=t.DERIA5String,g=t.DERUTCTime,v=t.DERGeneralizedTime,_=t.DERSequence,b=t.DERSet,p=t.DERTaggedObject,y=t.ASN1Util.newObject,k=Object.keys(e);if(k.length!=1)throw"key of param shall be only one.";var C=k[0];if(":bool:int:bitstr:octstr:null:oid:enum:utf8str:numstr:prnstr:telstr:ia5str:utctime:gentime:seq:set:tag:".indexOf(":"+C+":")==-1)throw"undefined key: "+C;if(C=="bool")return new a(e[C]);if(C=="int")return new r(e[C]);if(C=="bitstr")return new i(e[C]);if(C=="octstr")return new s(e[C]);if(C=="null")return new l(e[C]);if(C=="oid")return new f(e[C]);if(C=="enum")return new c(e[C]);if(C=="utf8str")return new u(e[C]);if(C=="numstr")return new x(e[C]);if(C=="prnstr")return new d(e[C]);if(C=="telstr")return new h(e[C]);if(C=="ia5str")return new m(e[C]);if(C=="utctime")return new g(e[C]);if(C=="gentime")return new v(e[C]);if(C=="seq"){for(var O=e[C],L=[],N=0;N<O.length;N++){var B=y(O[N]);L.push(B)}return new _({array:L})}if(C=="set"){for(var O=e[C],L=[],N=0;N<O.length;N++){var B=y(O[N]);L.push(B)}return new b({array:L})}if(C=="tag"){var w=e[C];if(Object.prototype.toString.call(w)==="[object Array]"&&w.length==3){var E=y(w[2]);return new p({tag:w[0],explicit:w[1],obj:E})}else{var S={};if(w.explicit!==void 0&&(S.explicit=w.explicit),w.tag!==void 0&&(S.tag=w.tag),w.obj===void 0)throw"obj shall be specified for 'tag'.";return S.obj=y(w.obj),new p(S)}}},this.jsonToASN1HEX=function(e){var n=this.newObject(e);return n.getEncodedHex()}},G.asn1.ASN1Util.oidHexToInt=function(e){for(var r="",n=parseInt(e.substr(0,2),16),t=Math.floor(n/40),a=n%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 re(i,2);r=r+"."+c.toString(10),i=""}}return r},G.asn1.ASN1Util.oidIntToHex=function(e){var n=function(l){var f=l.toString(16);return f.length==1&&(f="0"+f),f},t=function(l){var f="",c=new re(l,10),u=c.toString(2),x=7-u.length%7;x==7&&(x=0);for(var d="",h=0;h<x;h++)d+="0";u=d+u;for(var h=0;h<u.length-1;h+=7){var m=u.substr(h,7);h!=u.length-7&&(m="1"+m),f+=n(parseInt(m,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+=n(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 n=this.hV.length/2,t=n.toString(16);if(t.length%2==1&&(t="0"+t),n<128)return t;var a=t.length/2;if(a>15)throw"ASN.1 length too long to represent by 8x: n = "+n.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(n){this.hTLV=null,this.isModified=!0,this.s=n,this.hV=stohex(this.s)},this.setStringHex=function(n){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=n},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))},Be.lang.extend(G.asn1.DERAbstractString,G.asn1.ASN1Object),G.asn1.DERAbstractTime=function(e){G.asn1.DERAbstractTime.superclass.constructor.call(this),this.localDateToUTC=function(n){utc=n.getTime()+n.getTimezoneOffset()*6e4;var t=new Date(utc);return t},this.formatDate=function(n,t,a){var r=this.zeroPadding,i=this.localDateToUTC(n),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),x=r(String(i.getSeconds()),2),d=s+l+f+c+u+x;if(a===!0){var h=i.getMilliseconds();if(h!=0){var m=r(String(h),3);m=m.replace(/[0]+$/,""),d=d+"."+m}}return d+"Z"},this.zeroPadding=function(n,t){return n.length>=t?n:new Array(t-n.length+1).join("0")+n},this.getString=function(){return this.s},this.setString=function(n){this.hTLV=null,this.isModified=!0,this.s=n,this.hV=stohex(n)},this.setByDateValue=function(n,t,a,r,i,s){var l=new Date(Date.UTC(n,t-1,a,r,i,s,0));this.setByDate(l)},this.getFreshValueHex=function(){return this.hV}},Be.lang.extend(G.asn1.DERAbstractTime,G.asn1.ASN1Object),G.asn1.DERAbstractStructured=function(e){G.asn1.DERAbstractString.superclass.constructor.call(this),this.setByASN1ObjectArray=function(n){this.hTLV=null,this.isModified=!0,this.asn1Array=n},this.appendASN1Object=function(n){this.hTLV=null,this.isModified=!0,this.asn1Array.push(n)},this.asn1Array=new Array,typeof e<"u"&&typeof e.array<"u"&&(this.asn1Array=e.array)},Be.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"},Be.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(n){this.hTLV=null,this.isModified=!0,this.hV=G.asn1.ASN1Util.bigIntToMinTwosComplementsHex(n)},this.setByInteger=function(n){var t=new re(String(n),10);this.setByBigInteger(t)},this.setValueHex=function(n){this.hV=n},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))},Be.lang.extend(G.asn1.DERInteger,G.asn1.ASN1Object),G.asn1.DERBitString=function(e){if(e!==void 0&&typeof e.obj<"u"){var n=G.asn1.ASN1Util.newObject(e.obj);e.hex="00"+n.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))},Be.lang.extend(G.asn1.DERBitString,G.asn1.ASN1Object),G.asn1.DEROctetString=function(e){if(e!==void 0&&typeof e.obj<"u"){var n=G.asn1.ASN1Util.newObject(e.obj);e.hex=n.getEncodedHex()}G.asn1.DEROctetString.superclass.constructor.call(this,e),this.hT="04"},Be.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"},Be.lang.extend(G.asn1.DERNull,G.asn1.ASN1Object),G.asn1.DERObjectIdentifier=function(e){var n=function(a){var r=a.toString(16);return r.length==1&&(r="0"+r),r},t=function(a){var r="",i=new re(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+=n(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+=n(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))},Be.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(n){this.hTLV=null,this.isModified=!0,this.hV=G.asn1.ASN1Util.bigIntToMinTwosComplementsHex(n)},this.setByInteger=function(n){var t=new re(String(n),10);this.setByBigInteger(t)},this.setValueHex=function(n){this.hV=n},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))},Be.lang.extend(G.asn1.DEREnumerated,G.asn1.ASN1Object),G.asn1.DERUTF8String=function(e){G.asn1.DERUTF8String.superclass.constructor.call(this,e),this.hT="0c"},Be.lang.extend(G.asn1.DERUTF8String,G.asn1.DERAbstractString),G.asn1.DERNumericString=function(e){G.asn1.DERNumericString.superclass.constructor.call(this,e),this.hT="12"},Be.lang.extend(G.asn1.DERNumericString,G.asn1.DERAbstractString),G.asn1.DERPrintableString=function(e){G.asn1.DERPrintableString.superclass.constructor.call(this,e),this.hT="13"},Be.lang.extend(G.asn1.DERPrintableString,G.asn1.DERAbstractString),G.asn1.DERTeletexString=function(e){G.asn1.DERTeletexString.superclass.constructor.call(this,e),this.hT="14"},Be.lang.extend(G.asn1.DERTeletexString,G.asn1.DERAbstractString),G.asn1.DERIA5String=function(e){G.asn1.DERIA5String.superclass.constructor.call(this,e),this.hT="16"},Be.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(n){this.hTLV=null,this.isModified=!0,this.date=n,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))},Be.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(n){this.hTLV=null,this.isModified=!0,this.date=n,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))},Be.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 n="",t=0;t<this.asn1Array.length;t++){var a=this.asn1Array[t];n+=a.getEncodedHex()}return this.hV=n,this.hV}},Be.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 n=new Array,t=0;t<this.asn1Array.length;t++){var a=this.asn1Array[t];n.push(a.getEncodedHex())}return this.sortFlag==!0&&n.sort(),this.hV=n.join(""),this.hV},typeof e<"u"&&typeof e.sortflag<"u"&&e.sortflag==!1&&(this.sortFlag=!1)},Be.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(n,t,a){this.hT=t,this.isExplicit=n,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)))},Be.lang.extend(G.asn1.DERTaggedObject,G.asn1.ASN1Object);var Us=globalThis&&globalThis.__extends||function(){var e=function(n,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(n,t)};return function(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");e(n,t);function a(){this.constructor=n}n.prototype=t===null?Object.create(t):(a.prototype=t.prototype,new a)}}(),ti=function(e){Us(n,e);function n(t){var a=e.call(this)||this;return t&&(typeof t=="string"?a.parseKey(t):(n.hasPrivateKeyProperty(t)||n.hasPublicKeyProperty(t))&&a.parsePropertiesFrom(t)),a}return n.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)?_s.decode(t):mo.unarmor(t),l=Rs.decode(s);if(l.sub.length===3&&(l=l.sub[2].sub[0]),l.sub.length===9){a=l.sub[1].getHexStringValue(),this.n=Te(a,16),r=l.sub[2].getHexStringValue(),this.e=parseInt(r,16);var f=l.sub[3].getHexStringValue();this.d=Te(f,16);var c=l.sub[4].getHexStringValue();this.p=Te(c,16);var u=l.sub[5].getHexStringValue();this.q=Te(u,16);var x=l.sub[6].getHexStringValue();this.dmp1=Te(x,16);var d=l.sub[7].getHexStringValue();this.dmq1=Te(d,16);var h=l.sub[8].getHexStringValue();this.coeff=Te(h,16)}else if(l.sub.length===2)if(l.sub[0].sub){var m=l.sub[1],g=m.sub[0];a=g.sub[0].getHexStringValue(),this.n=Te(a,16),r=g.sub[1].getHexStringValue(),this.e=parseInt(r,16)}else a=l.sub[0].getHexStringValue(),this.n=Te(a,16),r=l.sub[1].getHexStringValue(),this.e=parseInt(r,16);else return!1;return!0}catch{return!1}},n.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()},n.prototype.getPrivateBaseKeyB64=function(){return on(this.getPrivateBaseKey())},n.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()},n.prototype.getPublicBaseKeyB64=function(){return on(this.getPublicBaseKey())},n.wordwrap=function(t,a){if(a=a||64,!t)return t;var r="(.{1,"+a+`})( +|$
90
+ */var G={};(typeof G.asn1>"u"||!G.asn1)&&(G.asn1={}),G.asn1.ASN1Util=new function(){this.integerToByteHex=function(e){var n=e.toString(16);return n.length%2==1&&(n="0"+n),n},this.bigIntToMinTwosComplementsHex=function(e){var n=e.toString(16);if(n.substr(0,1)!="-")n.length%2==1?n="0"+n:n.match(/^[0-7]/)||(n="00"+n);else{var t=n.substr(1),a=t.length;a%2==1?a+=1:n.match(/^[0-7]/)||(a+=2);for(var r="",i=0;i<a;i++)r+="f";var s=new re(r,16),l=s.xor(e).add(re.ONE);n=l.toString(16).replace(/^-/,"")}return n},this.getPEMStringFromHex=function(e,n){return hextopem(e,n)},this.newObject=function(e){var n=G,t=n.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,y=t.DERNumericString,d=t.DERPrintableString,h=t.DERTeletexString,m=t.DERIA5String,g=t.DERUTCTime,v=t.DERGeneralizedTime,D=t.DERSequence,b=t.DERSet,p=t.DERTaggedObject,x=t.ASN1Util.newObject,k=Object.keys(e);if(k.length!=1)throw"key of param shall be only one.";var C=k[0];if(":bool:int:bitstr:octstr:null:oid:enum:utf8str:numstr:prnstr:telstr:ia5str:utctime:gentime:seq:set:tag:".indexOf(":"+C+":")==-1)throw"undefined key: "+C;if(C=="bool")return new a(e[C]);if(C=="int")return new r(e[C]);if(C=="bitstr")return new i(e[C]);if(C=="octstr")return new s(e[C]);if(C=="null")return new l(e[C]);if(C=="oid")return new f(e[C]);if(C=="enum")return new c(e[C]);if(C=="utf8str")return new u(e[C]);if(C=="numstr")return new y(e[C]);if(C=="prnstr")return new d(e[C]);if(C=="telstr")return new h(e[C]);if(C=="ia5str")return new m(e[C]);if(C=="utctime")return new g(e[C]);if(C=="gentime")return new v(e[C]);if(C=="seq"){for(var O=e[C],N=[],L=0;L<O.length;L++){var B=x(O[L]);N.push(B)}return new D({array:N})}if(C=="set"){for(var O=e[C],N=[],L=0;L<O.length;L++){var B=x(O[L]);N.push(B)}return new b({array:N})}if(C=="tag"){var w=e[C];if(Object.prototype.toString.call(w)==="[object Array]"&&w.length==3){var E=x(w[2]);return new p({tag:w[0],explicit:w[1],obj:E})}else{var S={};if(w.explicit!==void 0&&(S.explicit=w.explicit),w.tag!==void 0&&(S.tag=w.tag),w.obj===void 0)throw"obj shall be specified for 'tag'.";return S.obj=x(w.obj),new p(S)}}},this.jsonToASN1HEX=function(e){var n=this.newObject(e);return n.getEncodedHex()}},G.asn1.ASN1Util.oidHexToInt=function(e){for(var r="",n=parseInt(e.substr(0,2),16),t=Math.floor(n/40),a=n%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 re(i,2);r=r+"."+c.toString(10),i=""}}return r},G.asn1.ASN1Util.oidIntToHex=function(e){var n=function(l){var f=l.toString(16);return f.length==1&&(f="0"+f),f},t=function(l){var f="",c=new re(l,10),u=c.toString(2),y=7-u.length%7;y==7&&(y=0);for(var d="",h=0;h<y;h++)d+="0";u=d+u;for(var h=0;h<u.length-1;h+=7){var m=u.substr(h,7);h!=u.length-7&&(m="1"+m),f+=n(parseInt(m,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+=n(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 n=this.hV.length/2,t=n.toString(16);if(t.length%2==1&&(t="0"+t),n<128)return t;var a=t.length/2;if(a>15)throw"ASN.1 length too long to represent by 8x: n = "+n.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(n){this.hTLV=null,this.isModified=!0,this.s=n,this.hV=stohex(this.s)},this.setStringHex=function(n){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=n},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))},Be.lang.extend(G.asn1.DERAbstractString,G.asn1.ASN1Object),G.asn1.DERAbstractTime=function(e){G.asn1.DERAbstractTime.superclass.constructor.call(this),this.localDateToUTC=function(n){utc=n.getTime()+n.getTimezoneOffset()*6e4;var t=new Date(utc);return t},this.formatDate=function(n,t,a){var r=this.zeroPadding,i=this.localDateToUTC(n),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),y=r(String(i.getSeconds()),2),d=s+l+f+c+u+y;if(a===!0){var h=i.getMilliseconds();if(h!=0){var m=r(String(h),3);m=m.replace(/[0]+$/,""),d=d+"."+m}}return d+"Z"},this.zeroPadding=function(n,t){return n.length>=t?n:new Array(t-n.length+1).join("0")+n},this.getString=function(){return this.s},this.setString=function(n){this.hTLV=null,this.isModified=!0,this.s=n,this.hV=stohex(n)},this.setByDateValue=function(n,t,a,r,i,s){var l=new Date(Date.UTC(n,t-1,a,r,i,s,0));this.setByDate(l)},this.getFreshValueHex=function(){return this.hV}},Be.lang.extend(G.asn1.DERAbstractTime,G.asn1.ASN1Object),G.asn1.DERAbstractStructured=function(e){G.asn1.DERAbstractString.superclass.constructor.call(this),this.setByASN1ObjectArray=function(n){this.hTLV=null,this.isModified=!0,this.asn1Array=n},this.appendASN1Object=function(n){this.hTLV=null,this.isModified=!0,this.asn1Array.push(n)},this.asn1Array=new Array,typeof e<"u"&&typeof e.array<"u"&&(this.asn1Array=e.array)},Be.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"},Be.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(n){this.hTLV=null,this.isModified=!0,this.hV=G.asn1.ASN1Util.bigIntToMinTwosComplementsHex(n)},this.setByInteger=function(n){var t=new re(String(n),10);this.setByBigInteger(t)},this.setValueHex=function(n){this.hV=n},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))},Be.lang.extend(G.asn1.DERInteger,G.asn1.ASN1Object),G.asn1.DERBitString=function(e){if(e!==void 0&&typeof e.obj<"u"){var n=G.asn1.ASN1Util.newObject(e.obj);e.hex="00"+n.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))},Be.lang.extend(G.asn1.DERBitString,G.asn1.ASN1Object),G.asn1.DEROctetString=function(e){if(e!==void 0&&typeof e.obj<"u"){var n=G.asn1.ASN1Util.newObject(e.obj);e.hex=n.getEncodedHex()}G.asn1.DEROctetString.superclass.constructor.call(this,e),this.hT="04"},Be.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"},Be.lang.extend(G.asn1.DERNull,G.asn1.ASN1Object),G.asn1.DERObjectIdentifier=function(e){var n=function(a){var r=a.toString(16);return r.length==1&&(r="0"+r),r},t=function(a){var r="",i=new re(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+=n(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+=n(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))},Be.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(n){this.hTLV=null,this.isModified=!0,this.hV=G.asn1.ASN1Util.bigIntToMinTwosComplementsHex(n)},this.setByInteger=function(n){var t=new re(String(n),10);this.setByBigInteger(t)},this.setValueHex=function(n){this.hV=n},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))},Be.lang.extend(G.asn1.DEREnumerated,G.asn1.ASN1Object),G.asn1.DERUTF8String=function(e){G.asn1.DERUTF8String.superclass.constructor.call(this,e),this.hT="0c"},Be.lang.extend(G.asn1.DERUTF8String,G.asn1.DERAbstractString),G.asn1.DERNumericString=function(e){G.asn1.DERNumericString.superclass.constructor.call(this,e),this.hT="12"},Be.lang.extend(G.asn1.DERNumericString,G.asn1.DERAbstractString),G.asn1.DERPrintableString=function(e){G.asn1.DERPrintableString.superclass.constructor.call(this,e),this.hT="13"},Be.lang.extend(G.asn1.DERPrintableString,G.asn1.DERAbstractString),G.asn1.DERTeletexString=function(e){G.asn1.DERTeletexString.superclass.constructor.call(this,e),this.hT="14"},Be.lang.extend(G.asn1.DERTeletexString,G.asn1.DERAbstractString),G.asn1.DERIA5String=function(e){G.asn1.DERIA5String.superclass.constructor.call(this,e),this.hT="16"},Be.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(n){this.hTLV=null,this.isModified=!0,this.date=n,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))},Be.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(n){this.hTLV=null,this.isModified=!0,this.date=n,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))},Be.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 n="",t=0;t<this.asn1Array.length;t++){var a=this.asn1Array[t];n+=a.getEncodedHex()}return this.hV=n,this.hV}},Be.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 n=new Array,t=0;t<this.asn1Array.length;t++){var a=this.asn1Array[t];n.push(a.getEncodedHex())}return this.sortFlag==!0&&n.sort(),this.hV=n.join(""),this.hV},typeof e<"u"&&typeof e.sortflag<"u"&&e.sortflag==!1&&(this.sortFlag=!1)},Be.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(n,t,a){this.hT=t,this.isExplicit=n,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)))},Be.lang.extend(G.asn1.DERTaggedObject,G.asn1.ASN1Object);var Us=globalThis&&globalThis.__extends||function(){var e=function(n,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(n,t)};return function(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");e(n,t);function a(){this.constructor=n}n.prototype=t===null?Object.create(t):(a.prototype=t.prototype,new a)}}(),ni=function(e){Us(n,e);function n(t){var a=e.call(this)||this;return t&&(typeof t=="string"?a.parseKey(t):(n.hasPrivateKeyProperty(t)||n.hasPublicKeyProperty(t))&&a.parsePropertiesFrom(t)),a}return n.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)?Ds.decode(t):po.unarmor(t),l=Is.decode(s);if(l.sub.length===3&&(l=l.sub[2].sub[0]),l.sub.length===9){a=l.sub[1].getHexStringValue(),this.n=Te(a,16),r=l.sub[2].getHexStringValue(),this.e=parseInt(r,16);var f=l.sub[3].getHexStringValue();this.d=Te(f,16);var c=l.sub[4].getHexStringValue();this.p=Te(c,16);var u=l.sub[5].getHexStringValue();this.q=Te(u,16);var y=l.sub[6].getHexStringValue();this.dmp1=Te(y,16);var d=l.sub[7].getHexStringValue();this.dmq1=Te(d,16);var h=l.sub[8].getHexStringValue();this.coeff=Te(h,16)}else if(l.sub.length===2)if(l.sub[0].sub){var m=l.sub[1],g=m.sub[0];a=g.sub[0].getHexStringValue(),this.n=Te(a,16),r=g.sub[1].getHexStringValue(),this.e=parseInt(r,16)}else a=l.sub[0].getHexStringValue(),this.n=Te(a,16),r=l.sub[1].getHexStringValue(),this.e=parseInt(r,16);else return!1;return!0}catch{return!1}},n.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()},n.prototype.getPrivateBaseKeyB64=function(){return an(this.getPrivateBaseKey())},n.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()},n.prototype.getPublicBaseKeyB64=function(){return an(this.getPublicBaseKey())},n.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
  `)},n.prototype.getPrivateKey=function(){var t=`-----BEGIN RSA PRIVATE KEY-----
93
93
  `;return t+=n.wordwrap(this.getPrivateBaseKeyB64())+`
94
94
  `,t+="-----END RSA PRIVATE KEY-----",t},n.prototype.getPublicKey=function(){var t=`-----BEGIN PUBLIC KEY-----
95
95
  `;return t+=n.wordwrap(this.getPublicBaseKeyB64())+`
96
- `,t+="-----END PUBLIC KEY-----",t},n.hasPublicKeyProperty=function(t){return t=t||{},t.hasOwnProperty("n")&&t.hasOwnProperty("e")},n.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")},n.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)},n}(Vs),vo,$s=typeof process<"u"?(vo=process.env)===null||vo===void 0?void 0:vo.npm_package_version:void 0,Zs=function(){function e(n){n===void 0&&(n={}),n=n||{},this.default_key_size=n.default_key_size?parseInt(n.default_key_size,10):1024,this.default_public_exponent=n.default_public_exponent||"010001",this.log=n.log||!1,this.key=null}return e.prototype.setKey=function(n){this.log&&this.key&&console.warn("A key was already set, overriding existing."),this.key=new ti(n)},e.prototype.setPrivateKey=function(n){this.setKey(n)},e.prototype.setPublicKey=function(n){this.setKey(n)},e.prototype.decrypt=function(n){try{return this.getKey().decrypt(Ur(n))}catch{return!1}},e.prototype.encrypt=function(n){try{return on(this.getKey().encrypt(n))}catch{return!1}},e.prototype.sign=function(n,t,a){try{return on(this.getKey().sign(n,t,a))}catch{return!1}},e.prototype.verify=function(n,t,a){try{return this.getKey().verify(n,Ur(t),a)}catch{return!1}},e.prototype.getKey=function(n){if(!this.key){if(this.key=new ti,n&&{}.toString.call(n)==="[object Function]"){this.key.generateAsync(this.default_key_size,this.default_public_exponent,n);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=$s,e}();const ni=new Zs,Mt=Ys();function Ys(){let n=Math.random().toString(36).substr(2);for(;n.length<16;)n+=Math.random().toString(36).substr(2);return n=n.substr(0,16),n}const oi=Ue.enc.Utf8.parse("ABCDEF1234123412");function Ks(e,n){n=n||Mt;const t=Ue.enc.Utf8.parse(n);let a="";switch(typeof e){case"string":a=Ue.enc.Utf8.parse(e);break;case"object":a=Ue.enc.Utf8.parse(JSON.stringify(e));break;default:a=Ue.enc.Utf8.parse(e.toString())}return Ue.AES.encrypt(a,t,{iv:oi,mode:Ue.mode.CBC,padding:Ue.pad.ZeroPadding}).toString()}function ai(e,n){n=n||Mt;const t=Ue.enc.Utf8.parse(n),a=Ue.AES.decrypt(e,t,{iv:oi,mode:Ue.mode.CBC,padding:Ue.pad.ZeroPadding});return Ue.enc.Utf8.stringify(a).toString()}function Xs(e){ni.setPublicKey(e)}function Qs(e){return ni.encrypt(e)}function ri(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 Js(e){const{paramType:n,data:t,params:a,method:r}=e;n==="form"?["get","delete"].includes(r)?e.params=Pt(a,"string"):e.data=Pt(t,"string"):["get","delete"].includes(r)?e.params=Pt(a,"string"):e.data=Pt(t)}function Pt(e,n){let t=e||{};if(n==="string"){t="";for(const l in e)if(Object.hasOwnProperty.call(e,l)){const f=e[l];t+=`${l}=${encodeURIComponent(f)}&`}}Xs("MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBAMKaTbS1XHH7u/4dhao1n5Lcegpy6AHKX2TjmTP7IDW6N4wznqlL3Tt+U0/Il1TlNp1/EN+tffYYg4dPrrCUDwcCAwEAAQ==");const r=Qs(Mt);return{c:Ks(t,Mt),p:r}}window.getEncryptParam=Pt;function ec(e,n){var t;(t=window==null?void 0:window.config)!=null&&t.encryptFlag&&ri(e.url)&&(e.data instanceof FormData?e.data=tc(e.data):Js(e))}function tc(e){const n=e.entries(),t=new FormData,a={};for(const i of n){const s=i[0],l=i[1];l instanceof Blob?t.append(s,l):a[s]=l}const r=Pt(a,"json");return typeof r=="object"&&(t.append("c",r.c),t.append("p",r.p)),t}window.xhaesKey=Mt,window.xhaesDecrypt=ai;function ii(e,n){var t;if((t=window==null?void 0:window.config)!=null&&t.encryptFlag&&ri(e.config.url)&&!(e.data instanceof Blob)&&e.data.data!==void 0){const a=ai(e.data.data.content,Mt);e.data=JSON.parse(a)}}const li=window.config.requestErrorTip,st=T0.create({timeout:1e3*180});st.interceptors.request.use(e=>{const{requestParams:n={}}=window.config;return n!=null&&n.pltToken&&(e.headers["Plt-Token"]=n.pltToken),ec(e),e},e=>Promise.reject(e)),st.interceptors.response.use(e=>{var n,t,a;return li&&+((n=e==null?void 0:e.data)==null?void 0:n.code)==500&&ie.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"}),ii(e),e},e=>{if(ii(e==null?void 0:e.response),li)if(e.message.includes("timeout"))ie.message.error({content:"网络连接超时,请重试!",key:"TIMEOUT"});else{const{status:n}=(e==null?void 0:e.response)||{};n>=400&&n<500&&ie.message.error({content:"请求异常",key:"REQUEST_ERROR"}),n>=500&&ie.message.error({content:"服务器异常",key:"REQUEST_ERROR"})}return Promise.reject(e)});const nc=e=>e.replace(/\\n/g,`
97
- `),So=(e,n=2)=>{const t=parseFloat(e+"");return isNaN(t)?e:t.toFixed(n).replace(/(\d)(?=(\d{3})+\.)/g,"$1,")},oc=e=>{const n=parseFloat(e+"");return isNaN(n)?e:(n+"").replace(/\B(?=(\d{3})+(?!\d))/g,",")},un=(e,n=2)=>{const t=e+"";if(t.includes("%"))return e;const a=parseFloat(t);return isNaN(a)?e:`${(a*100).toFixed(n)}%`},ac=(e,n=2)=>{const t=e+"",a=parseFloat(t);return isNaN(a)?e:a.toFixed(n)},rc=(e,n)=>Je(n,e),Ht=(e,n)=>{if(typeof e=="string"&&typeof n=="string")return e.toLocaleLowerCase().includes(n.toLocaleLowerCase());if(typeof e=="string"&&Array.isArray(n)){const t=n.length;for(let a=0;a<t;a++){const r=n[a];if(typeof r=="string"&&e.toLocaleLowerCase().includes(r.toLocaleLowerCase()))return!0}}return!1},hn=(e,n)=>Object.prototype.hasOwnProperty.call(e,n),Zt=e=>{const{leftAxisList:n=[],rightAxisList:t=[],queryColumnList:a=[],indicators:r=[]}=e;return[...n,...t,...a,...r].filter(i=>(i==null?void 0:i.calcType)==="COMPONENT").map(i=>({keyName:i.builtInCalcWay,id:i.builtInValueSource}))},Qe=(e,n)=>{let t=!0;const a=Zt(e);return a!=null&&a.length&&(t=a.map(r=>n[r.id]).every(r=>r)),t},gn=(e,n)=>{const t={dayjs:Ce,...n};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},ke=(e="",{textData:n,codeData:t}={},{useNewline:a=!1,useSpace:r=!1}={})=>{const s={...window.config||{},...n},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 x=/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,d=u.match(x);for(let h=0;h<d.length;h++){const m=d[h],g=s[m];g!=null&&typeof g!="function"&&(u=u.replace(m,g))}(/\(.*\)/g.test(u)||/[+/\\*]/g.test(u))&&(u=gn(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},ze=(e,n=()=>{})=>{const{requestUrl:t,requestMethod:a,requestHeaders:r,requestParams:i,requestInterval:s,isOpenRequestTimer:l}=e,{contextRequestUrl:f,touchEventId:c}=o.inject(Fe,{contextRequestUrl:"",touchEventId:""}),{getGlobalModel:u}=o.inject(we,{getGlobalModel:m=>{}}),x=ke(t),d=async(m={})=>{if(!x||!a||!r)return;let g={};i.forEach(y=>{const{key:k,value:C}=y;if(typeof C=="object"&&C!=null&&C.id){let O={};const{id:L,prop:N,propKey:B,operate:w}=C;L==="THIS"?O=u(o.unref(c))||{}:O=u(L)||{};const E=o.unref(O[N]);let S=null;if(["date","range"].some(z=>Ht(O==null?void 0:O.type,z))){const{value:z,type:R,mode:M}=w||{};if(z&&R&&M)switch(R){case"add":S=o.unref(E).add(z,M);break;case"minus":S=o.unref(E).subtract(z,M);break}S==null&&(S=o.unref(E)),S=(S==null?void 0:S.format((B==null?void 0:B.trim())||O.format))||""}else Object.prototype.toString.call(E)==="[object Object]"?B?S=E[B]:S=N?E[N]:E:Ht(O==null?void 0:O.type,"select")&&o.unref(E)&&N&&Array.isArray(o.unref(E))?S=o.unref(E).map(z=>Object.prototype.hasOwnProperty.call(z,N)?z[N]:z):S=E;g[k]=S}else typeof C=="string"&&(g[k]=ke(C))}),g={...window.config.requestParams,...m,...g};let v="";const _=Object.keys(g),b=_.length-1,p=_.length;_.forEach((y,k)=>{let C=g[y];Object.prototype.toString.call(C)==="[object Object]"&&(C=JSON.stringify(C)),k===0?p!==1?v+=`?${y}=${C}&`:v+=`?${y}=${C}`:k===b?v+=`${y}=${C}`:v+=`${y}=${C}&`});try{const y=["get","head"].includes(a),k={};let C=y?x+v:x;g.dataSqlId&&!C.includes("dataSqlId")&&(C+=`${C.includes("?")?"&":"?"}dataSqlId=${g.dataSqlId}`),Object.prototype.hasOwnProperty.call(g,"signal")&&(k.signal=g.signal);const O=await st({baseURL:o.unref(f)||"",url:C,method:a,headers:r,data:y?{}:g,...k});return n(O),O}catch(y){console.error(y)}},h=l&&setInterval(d,s*1e3);return o.onUnmounted(()=>{clearInterval(h)}),d},pt=(e=[],n,t=!1)=>{let{name:a="name",types:r=[]}=n||{};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 x=[];for(let h=0;h<f;h++){const m=r[h],{label:g,value:v}=m,_={...e[0],value:e[0][v]};i.add(g),x.push(_)}const d=e[0][a]||"";s.set(d,x)}else for(let x=0;x<l;x++){const d=e[x],h=d[a];i.add(h);for(let m=0;m<f;m++){const g=r[m],{label:v,value:_}=g,b={...d,value:d[_]};if(s.has(v)){const p=s.get(v);p.push(b),s.set(v,p)}else s.set(v,[b])}}const c=Array.from(i),u=[];for(const[x,d]of s)u.push({name:x,data:d});return{dimensions:c,dataset:u}},bt=(e,n=!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,n&&(t=`url(${t})`),t},si=(e,n)=>{const t=`${ar}/preview?pageId=${n}`,a=`${ar}/${n}`;return e==="preview"?t:a},Je=(e,n)=>{var r;if(e==null)return n;const t=e.match(/\{.*\}/g);if(t==null||t.length===0)return n;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,n);try{let f=l;(/\(.*\)/g.test(l)||/[+/\\*]/g.test(l))&&(f=gn(l)),e=e.replace(s,f)}catch{e=e.replace(s,l)}}return e},it=(e={})=>{const{requestToken:n}=o.inject(er,{requestToken:()=>{}}),{setLoadedData:t}=o.inject(gt,{setLoadedData:(d,h)=>{}});e.dataType==="indicator"&&n();const a=(d={})=>{const{label:h,name:m,location:g,show:v,indexCode:_}=d;return{label:h,columnName:m,location:g,show:v,calcType:"COLUMN",hrpIndexCode:_}},r=(d,h)=>Object.prototype.hasOwnProperty.call(d,h),i=d=>{r(d,"dataType")&&(d.fieldType==="DATE"&&(d.label=d.fieldName),d.dataType==="component"&&(d.fieldValue="${"+d.fieldValue+"}"),delete d.dataType),r(d,"activeKey")&&delete d.activeKey,r(d,"radioValue")&&delete d.radioValue},s=d=>{const h=[];return d!=null&&d.length&&Ne.cloneDeep(d).forEach(m=>{if(m.join&&m.conditions){const g=!m.conditions.some(v=>v.join&&v.conditions);m.conditions.forEach((v,_)=>{i(v),g?_<m.conditions.length-1?h.push({join:m.join,...v}):h.push(v):v.join&&v.conditions?h.push({conditions:s([v]),join:m.join}):h.push(v)})}else i(m),h.push(m)}),h},l=(d={})=>{const{label:h,name:m,location:g,show:v,indexCode:_,calcType:b="COLUMN",builtInFormula:p,builtInValueSource:y,builtInCalcWay:k,formula:C,conditions:O,aggregate:L}=d;let N;if(O&&(N=s(O)),b==="COMPONENT"){const B={};return x(B,y),{label:h.trim(),columnName:m,show:v,calcType:b,componentAlias:k,componentValue:B.fieldValue||null}}else return{label:h.trim(),columnName:m,location:g,show:v,calcType:b,hrpIndexCode:_,aggregate:L,builtInFormula:p,builtInValueSource:y,builtInCalcWay:k,formula:C,conditions:N}},f=d=>{const h=[];for(const m of d)m.conditions?h.push(...f(m.conditions)):(m==null?void 0:m.dataType)==="component"&&h.push(m);return h},{getGlobalModel:c}=o.inject(we,{getGlobalModel:d=>{}}),u=d=>{if(!d)return[];const{controlList:h=[],classificationList:m=[],rowHeaderList:g=[],seriesList:v=[],leftAxisList:_=[],rightAxisList:b=[],queryColumnList:p=[],indicators:y=[]}=d,k=[...m,...g,...v,..._,...b,...p,...y],C=[];for(const B of k){const w=f((B==null?void 0:B.conditions)||[]);if(w!=null&&w.length){const E=w.filter(S=>(S==null?void 0:S.dataType)==="component").map(S=>{const D={};return S!=null&&S.dateFormat&&(D.format=S.dateFormat),{conditionKey:S.fieldName,conditionLabel:S.fieldName,conditionName:S.fieldName,conditionValueType:S.fieldType,id:S.componentId,keyName:S.fieldValue,rule:S.rule,notGlobal:!0,...D}});if(E!=null&&E.length)for(const S of E)C.find(D=>D.keyName===S.keyName)||C.push(S)}}const O=h.concat(C),L=O.length,N=[];for(let B=0;B<L;B++){const w=O[B];if(w.mode==="cascade")continue;const{id:E,keyName:S,conditionLabel:D,conditionKey:z,conditionValueType:R,prop:M,rule:H="NONE",notGlobal:j=!1,format:P,modelKey:A}=w;let I=S||E;I&&M&&(I+=`-${M}`);const T={rule:H,label:D,fieldName:z,fieldValue:"",valueType:R,alias:I,globalCondition:!j};x(T,E,{prop:M,dateFormat:P,modelKey:A,keyName:S}),N.push(T)}for(let B=N.length-1;B>=0;B--){const w=N[B];w.globalCondition||N.find(S=>S.alias===w.alias&&S.globalCondition)&&N.splice(B,1)}return N};function x(d,h,m){var B,w;const g=c(h)||{},{prop:v="",dateFormat:_="",modelKey:b="",keyName:p=""}=m||{},{value:y,format:k="YYYY-MM-DD",type:C="",useCurrentTime:O,RECORD:L}=g||{},N=_||k;if(Ht(g.type,"date"))O?y?d.fieldValue=(B=o.unref(y))==null?void 0:B.format(N):d.fieldValue=Ce().format(N):d.fieldValue=(w=o.unref(y))==null?void 0:w.format(N),d.dateFormat=N;else if(C==="ecanRangePicker"){const{interval:E,intervalUnit:S,operate:D}=g||{};let z=v;if(!v){const M=p&&p.split("-");M!=null&&M.length&&(z=M[M.length-1])}if(!z)return;let R=null;if(O&&(z==="startTime"?R=Ce().subtract(E,S):z==="endTime"&&(R=Ce())),o.unref(g[z])&&(R=Ce(o.unref(g[z]))),D){const{type:M,value:H,mode:j}=D;switch(M){case"add":R=R&&R.add(H,j);break;case"minus":R=R&&R.subtract(H,j)}}R&&(d.fieldValue=R==null?void 0:R.format(N)),d.dateFormat=N}else C==="ecanTable"?b&&L&&(d.fieldValue=L[b]):d.fieldValue=o.unref(y)}return async(d={})=>{var F,U,$,ne,Y,X;t(e.id,!1);const{graphicConfig:h,type:m,isGroupTable:g=!1}=e;let{source:v,dataViewId:_,plugin:b="1",layer:p,chartType:y,classificationList:k=[],rowHeaderList:C=[],seriesList:O=[],leftAxisList:L=[],rightAxisList:N=[],queryColumnList:B=[],indicators:w=[],controlList:E=[],formFields:S={},idxLibMode:D,preview:z=!1}=h||{},R=[];(h==null?void 0:h.pageMode)==="design"?R=h.sqlConditions??[]:R=u(h),p==null&&(Ht(m,["table"])?p="1":Ht(m,["select","checkbox","radio"])?p="3":p="2");let M,H="";if(Array.isArray(k)&&k.length>0){const Z=k.length;for(let J=0;J<Z;J++){const ae=k[J]||{},{label:he="",name:fe="",show:Ie=!1,sort:He,customGroup:qe,conditions:$e,dateFormat:Ze,typeGuid:et="",truncations:Ee=[]}=ae;if(Ie||Z===1){H=et,M={label:he.trim(),columnName:fe,show:Ie,sort:He,customGroup:qe,conditions:s($e),typeGuid:et},Ze&&(M.dateFormat=Ze),fe==="the_date"&&!M.dateFormat&&(M.dateFormat="YYYY-MM");const Se={};if(Array.isArray(Ee)&&Ee.length>0){const Re=Ee.length;for(let je=0;je<Re;je++){const tt=Ee[je]||{},{rule:Me="",num:Ve=0,name:V=""}=tt;Me&&Ve&&(Se.num=Ve,Se.rule=Me,V&&(Se.otherGroupName=V))}}(F=Object.keys(Se))!=null&&F.length&&(M.truncation=Se);break}}}let j;if(Array.isArray(O)&&O.length>0){const Z=O.length;for(let J=0;J<Z;J++){const ae=O[J]||{},{label:he="",name:fe="",show:Ie=!1,sort:He,customGroup:qe,conditions:$e}=ae;if(Ie||Z===1){j={label:he.trim(),columnName:fe,show:Ie,sort:He,customGroup:qe,conditions:s($e)};break}}}const P=[];B==null||B.forEach(Z=>{P.push(a(Z))});const A=[];L==null||L.forEach(Z=>{Z.location="LEFT",A.push(l(Z))}),N==null||N.forEach(Z=>{Z.location="RIGHT",A.push(l(Z))}),w==null||w.forEach(Z=>{Z.location="LEFT",A.push(l(Z))});const I=[];if(Array.isArray(C)&&C.length>0){const Z=C.length;for(let J=0;J<Z;J++){const ae=C[J]||{},{label:he="",name:fe="",show:Ie=!1,sort:He,customGroup:qe,conditions:$e,truncations:Ze,typeGuid:et=""}=ae;let Ee=He;if(d.sort){const{field:je,order:tt}=d.sort,Me=A.find(Ve=>Ve.label===je);Me&&(Ee={columnName:Me.columnName,label:d.sort.field,order:tt.toUpperCase(),type:"NORMAL"})}const Se={label:he.trim(),columnName:fe,show:Ie,sort:Ee,customGroup:qe,conditions:s($e),typeGuid:et},Re={};if(Array.isArray(Ze)&&Ze.length>0){const je=Ze.length;for(let tt=0;tt<je;tt++){const Me=Ze[tt]||{},{rule:Ve="",num:V=0,name:W=""}=Me;Ve&&V&&(Re.num=V,Re.rule=Ve,W&&(Re.otherGroupName=W))}}(U=Object.keys(Re))!=null&&U.length&&(Se.truncation=Re),I.push(Se)}}if(Ht(m,["text","proportion"])&&(y="zb"),g){if(I.length===0||A.length===0)return;y="grouptable"}else{if(p==="1"&&P.length===0)return;if(p==="2"&&A.length===0)return;if(p==="3"&&(!H||!S.labelField||!S.valueField))return}let T=($=window==null?void 0:window.config)==null?void 0:$.pageId;if(!T){const{pathname:Z}=window==null?void 0:window.location;if(Z){const J=Z.split("/");J!=null&&J.length&&(T=J[J.length-1])}}if((ne=Object.keys(S))!=null&&ne.length){const Z=E.find(ae=>ae.mode==="cascade"),J={};if(Z){const ae=c(Z.id)||{};if(ae!=null&&ae.itemCodes)J.parentItemCodes=ae.itemCodes;else return}try{return await st.post(`${or}/diagram/formData`,{source:v,dataViewId:_,plugin:"4",layer:p,chartType:"normalSelect",rangeIndexTypeGuid:H,type:"normalSelect",labelField:S.labelField,valueField:S.valueField,pageId:T,sqlConditions:R,idxLibMode:"WITH_DATE_DIM_TABLE",keyName:e.keyName,...J},{headers:{Authentication:(Y=window==null?void 0:window.config)==null?void 0:Y.indicatorToken,operateContext:nr}})}catch(ae){console.error(ae)}finally{}}else try{return await st.post(`${or}/diagram`,{source:v,dataViewId:_,plugin:b,layer:p,chartType:y,classification:M,series:j,indicatorList:A,queryColumns:g?[]:P,pageFlag:!0,pageId:T,sqlConditions:R.map(J=>{const{fieldValue:ae}=J,he={};return ae&&Array.isArray(ae)&&(he.fieldValue=JSON.stringify(ae)),{...J,...he}}),idxLibMode:D,preview:z,rowHeaders:I,keyName:e.keyName},{headers:{Authentication:(X=window==null?void 0:window.config)==null?void 0:X.indicatorToken,operateContext:nr}})}catch(Z){console.error(Z)}finally{}}},ic=()=>{const n=window.location.search.slice(1).split("&"),t=n.length,a={};for(let r=0;r<t;r++){const i=n[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}},lc=o.defineComponent({name:"EcanPageConfig",inheritAttrs:!1,props:{...Dn},setup(e){const{width:n,height:t}=o.inject(Fe,{width:null,height:null}),a=o.inject("setPageHeight",y=>{}),r=o.inject("isMobile",!1),i=o.computed(()=>{const y={};return r||(y.width=n.value,y.height=t.value),{...y,backgroundColor:e.backgroundColor,backgroundImage:bt(e.backgroundImage,!0),backgroundSize:e.backgroundSize}}),s=o.ref(0),l=o.ref(0),f=o.ref(0),c=o.ref(0),u=o.ref(!1),x=o.ref();let d;const h=()=>new Promise(y=>{o.nextTick(()=>{n.value&&t.value?(s.value=parseFloat(n.value),l.value=parseFloat(t.value)):(s.value=x.value.clientWidth,l.value=x.value.clientHeight),(!f.value||!c.value)&&(f.value=window.screen.width,c.value=window.screen.height),y()})}),m=()=>{s.value&&l.value?(x.value.style.width=`${s.value}px`,x.value.style.height=`${l.value}px`):(x.value.style.width=`${f.value}px`,x.value.style.height=`${c.value}px`)};o.watch([n,t],async()=>{await h(),m(),v(),window.addEventListener("resize",_),b(),u.value=!0},{immediate:!0});const g=o.ref({});o.provide("scaleValue",g);const v=()=>{if(r){x.value.style.width="100%",x.value.style.height="auto",a("auto");return}const y=document.body.clientWidth,k=document.body.clientHeight,C=s.value||f.value,O=l.value||c.value,L=y/C;let N=k/O;(s.value!==1920||l.value!==1080)&&(N=l.value/s.value*y/O),g.value={widthScale:L,heightScale:N},x.value&&(x.value.style.transform=`scale(${L}, ${N})`),a(N)},_=Ne.debounce(async()=>{await h(),v()},100),b=()=>{const y=window.MutationObserver;d=new y(_),d.observe(x.value,{attributes:!0,attributeFilter:["style"],attributeOldValue:!0})},p=()=>{d&&(d.disconnect(),d.takeRecords(),d=null)};return o.onMounted(()=>{u.value=!1}),o.onUnmounted(()=>{window.removeEventListener("resize",_),p()}),{style:i,container:x,ready:u}}}),qd="",sc={id:"container",ref:"container"};function cc(e,n,t,a,r,i){return o.openBlock(),o.createElementBlock("div",sc,[e.ready?(o.openBlock(),o.createElementBlock("div",{key:0,class:"page-config",style:o.normalizeStyle(e.style)},[o.renderSlot(e.$slots,"default",{},void 0,!0)],4)):o.createCommentVNode("",!0)],512)}const ci=ge(ue(lc,[["render",cc],["__scopeId","data-v-b496b36e"]])),Co={contextRequestUrl:"",pageMode:"normal",theme:"light",containerMap:{},combinationMap:{},width:"1920px",height:"1080px"},wo=me(Co),fc=o.defineComponent({name:"EcanProviderConfig",inheritAttrs:!1,props:{...wo},setup(e,{expose:n}){ic();const t=o.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=o.ref(),r=()=>{a.value.setAttribute("datav-theme",e.theme)};o.watch(()=>e.theme,()=>{r()}),o.onMounted(()=>{r()});const i=o.computed(()=>ke(e.contextRequestUrl)),s=o.computed(()=>e.pageMode),l=o.computed(()=>e.theme),f=o.computed(()=>e.width),c=o.computed(()=>e.height),u=o.ref("");o.provide(Fe,{contextRequestUrl:i,pageMode:s,theme:l,touchEventId:u,width:f,height:c});const x=o.ref({height:"100%",overflow:e.pageMode==="design"?"":"hidden"});o.provide("setPageHeight",T=>{let F=T;t.value||(F=parseFloat(c.value)*T+"px"),x.value.height=F}),o.provide("isMobile",t.value),o.provide("getContainerMap",()=>e.containerMap),o.provide("getCombinationMap",()=>e.combinationMap);const d=o.ref(),h=new Map;console.log("globalModel",h);const m=T=>h.get(T),g=(T,F)=>{d.value=F,h.set(T,F)},v=()=>{d.value=null};o.provide(we,{getGlobalModel:m,setGlobalModel:g,clearInteractiveData:v,interactiveData:d});const _=o.ref({}),b=(T,F)=>{_.value[T]=F};o.provide(gt,{loadedData:_,setLoadedData:b});const p=[],y=()=>{p.pop()},k=T=>{p.push(T)},C=new Map,O=T=>C.get(T),L=(T,F)=>{C.set(T,F)};o.provide(tr,{popUseModalIds:y,pushUseModalIds:k,getModalModel:O,setModalModel:L});const N=B0(),B=new Set,w=(T,F)=>{B.add(T),N.on(T,U=>typeof F[U]=="function"&&F[U]()),o.onBeforeUnmount(()=>{E(T)})},E=T=>{B.delete(T),N.off(T)},S=(T,F)=>{if(T==="PAGE"){const U=p.length;let $=[];if(U===0)$=[...B];else{const ne=p[U-1];$=[...O(ne)]}$.forEach(ne=>{N.emit(ne,F)})}else N.emit(T,F)};o.provide(In,{onEvent:w,offEvent:E,emitEvent:S});const D=o.ref(0),z=()=>{D.value=o.unref(D)+1};o.provide(er,{requestToken:z});const R=new Map,M=new Map,H=({requestFn:T=()=>{},sortNum:F=0,id:U=""})=>{if(R.has(F)){const $=R.get(F);$==null||$.push(T)}else R.set(F,[T]);M.set(U,T)},j=T=>new Promise((F,U)=>{const $=T.map(ne=>ne());Promise.all($).then(ne=>{F(ne)}).catch(ne=>{U(ne)})}),P=T=>new Promise(async(F,U)=>{if(T){if(typeof T=="string"){const $=M.get(T);if(typeof $=="function"){const ne=st.interceptors.response.use(Y=>(F(Y),Y),Y=>(U(Y),Promise.reject(Y)));$(),st.interceptors.response.eject(ne)}}}else{const $=Array.from(R);$.sort((Y,X)=>X[0]-Y[0]);const ne=$.length;try{e.pageMode!=="design"&&o.unref(D)>0;for(let Y=0;Y<ne;Y++){const X=$[Y][1];await j(X)}}catch(Y){console.error(Y)}finally{R.clear(),F(null)}}});o.provide(Oe,{setRequest:H,touchRequest:P});const A=()=>{N.emit(Ut)};o.provide(Ut,{emitRefreshPage:A});const I=T=>{N.on(Ut,()=>T()),o.onMounted(()=>{N.off(Ut)})};return o.onBeforeUnmount(()=>{R==null||R.clear(),M==null||M.clear()}),n({touchRequest:P,getGlobalModel:m,onRefreshPage:I}),{providerConfig:a,configStyle:x}}}),jd="";function dc(e,n,t,a,r,i){return o.openBlock(),o.createElementBlock("div",{id:"ProviderConfig",ref:"providerConfig",style:o.normalizeStyle(e.configStyle)},[o.renderSlot(e.$slots,"default",{},void 0,!0)],4)}const fi=ge(ue(fc,[["render",dc],["__scopeId","data-v-7cceb095"]])),Ao={...ve,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"},ko=me(Ao),di=["refreshData","click","valueChange"],To="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=",Bo="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==",Eo=o.defineComponent({name:"EcanText",components:{Skeleton:en},props:{...ko},setup(e,{expose:n}){const t=o.ref(!1),a=pe(e),r=o.ref({}),i=o.computed(()=>e.variableFontSize||"14px"),s=o.computed(()=>"-"+o.unref(i));o.watch(()=>[e.data,e.dataType],([w,E])=>{E==="static"&&(r.value=w)},{immediate:!0});const{getGlobalModel:l,setGlobalModel:f}=o.inject(we,{getGlobalModel:w=>{},setGlobalModel:(w,E)=>{}}),{setLoadedData:c}=o.inject(gt,{setLoadedData:(w,E)=>{}}),u=o.computed(()=>{let w="";if(e.gradientShow){const{gradientColor:E,gradientOffset:S,gradientAngle:D,color:z}=e;w+=`background: linear-gradient(${D}, ${z}, ${E||"transparent"} ${S*100}%);-webkit-background-clip: text;color: transparent;`}return w}),x=o.computed(()=>{const w={};if(e.gradientShow){const{gradientColor:E,gradientOffset:S,gradientAngle:D,color:z}=e,R=E||"transparent";w.background=`linear-gradient(${D}, ${z}, ${R} ${S*100}%)`,w["-webkit-background-clip"]="text",w.color="transparent"}return w}),d=o.computed(()=>{var M;if(o.unref(t))return"NaN";const w=o.unref(r),E=e.increaseColor||e.color,S=e.declineColor||e.color;let D=e.text;D=D==null?void 0:D.replace(/\n|\\n/g,"<br/>"),D=D==null?void 0:D.replace(/\s(?!\{) | (?!\})\s/g,"&nbsp;");const z=D.match(/\{(.+?)\}/g)||[];let R="";if(z==null||z.length===0){if(D&&e.format==="percentage"&&!isNaN(+D)){const H=parseFloat(D),j=H*100,P=h(j.toFixed(2));H>=0?D=`<span style="color: ${P||E||"#ED6643"};font-size:${o.unref(i)};display: inline-block;${o.unref(u)}">
96
+ `,t+="-----END PUBLIC KEY-----",t},n.hasPublicKeyProperty=function(t){return t=t||{},t.hasOwnProperty("n")&&t.hasOwnProperty("e")},n.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")},n.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)},n}(Vs),wo,$s=typeof process<"u"?(wo=process.env)===null||wo===void 0?void 0:wo.npm_package_version:void 0,Zs=function(){function e(n){n===void 0&&(n={}),n=n||{},this.default_key_size=n.default_key_size?parseInt(n.default_key_size,10):1024,this.default_public_exponent=n.default_public_exponent||"010001",this.log=n.log||!1,this.key=null}return e.prototype.setKey=function(n){this.log&&this.key&&console.warn("A key was already set, overriding existing."),this.key=new ni(n)},e.prototype.setPrivateKey=function(n){this.setKey(n)},e.prototype.setPublicKey=function(n){this.setKey(n)},e.prototype.decrypt=function(n){try{return this.getKey().decrypt($r(n))}catch{return!1}},e.prototype.encrypt=function(n){try{return an(this.getKey().encrypt(n))}catch{return!1}},e.prototype.sign=function(n,t,a){try{return an(this.getKey().sign(n,t,a))}catch{return!1}},e.prototype.verify=function(n,t,a){try{return this.getKey().verify(n,$r(t),a)}catch{return!1}},e.prototype.getKey=function(n){if(!this.key){if(this.key=new ni,n&&{}.toString.call(n)==="[object Function]"){this.key.generateAsync(this.default_key_size,this.default_public_exponent,n);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=$s,e}();const oi=new Zs,Pt=Ys();function Ys(){let n=Math.random().toString(36).substr(2);for(;n.length<16;)n+=Math.random().toString(36).substr(2);return n=n.substr(0,16),n}const ai=Ue.enc.Utf8.parse("ABCDEF1234123412");function Ks(e,n){n=n||Pt;const t=Ue.enc.Utf8.parse(n);let a="";switch(typeof e){case"string":a=Ue.enc.Utf8.parse(e);break;case"object":a=Ue.enc.Utf8.parse(JSON.stringify(e));break;default:a=Ue.enc.Utf8.parse(e.toString())}return Ue.AES.encrypt(a,t,{iv:ai,mode:Ue.mode.CBC,padding:Ue.pad.ZeroPadding}).toString()}function ri(e,n){n=n||Pt;const t=Ue.enc.Utf8.parse(n),a=Ue.AES.decrypt(e,t,{iv:ai,mode:Ue.mode.CBC,padding:Ue.pad.ZeroPadding});return Ue.enc.Utf8.stringify(a).toString()}function Qs(e){oi.setPublicKey(e)}function Js(e){return oi.encrypt(e)}function ii(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 Xs(e){const{paramType:n,data:t,params:a,method:r}=e;n==="form"?["get","delete"].includes(r)?e.params=Ht(a,"string"):e.data=Ht(t,"string"):["get","delete"].includes(r)?e.params=Ht(a,"string"):e.data=Ht(t)}function Ht(e,n){let t=e||{};if(n==="string"){t="";for(const l in e)if(Object.hasOwnProperty.call(e,l)){const f=e[l];t+=`${l}=${encodeURIComponent(f)}&`}}Qs("MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBAMKaTbS1XHH7u/4dhao1n5Lcegpy6AHKX2TjmTP7IDW6N4wznqlL3Tt+U0/Il1TlNp1/EN+tffYYg4dPrrCUDwcCAwEAAQ==");const r=Js(Pt);return{c:Ks(t,Pt),p:r}}window.getEncryptParam=Ht;function ec(e,n){var t;(t=window==null?void 0:window.config)!=null&&t.encryptFlag&&ii(e.url)&&(e.data instanceof FormData?e.data=tc(e.data):Xs(e))}function tc(e){const n=e.entries(),t=new FormData,a={};for(const i of n){const s=i[0],l=i[1];l instanceof Blob?t.append(s,l):a[s]=l}const r=Ht(a,"json");return typeof r=="object"&&(t.append("c",r.c),t.append("p",r.p)),t}window.xhaesKey=Pt,window.xhaesDecrypt=ri;function li(e,n){var t;if((t=window==null?void 0:window.config)!=null&&t.encryptFlag&&ii(e.config.url)&&!(e.data instanceof Blob)&&e.data.data!==void 0){const a=ri(e.data.data.content,Pt);e.data=JSON.parse(a)}}const si=window.config.requestErrorTip,lt=T0.create({timeout:1e3*180});lt.interceptors.request.use(e=>{const{requestParams:n={}}=window.config;return n!=null&&n.pltToken&&(e.headers["Plt-Token"]=n.pltToken),ec(e),e},e=>Promise.reject(e)),lt.interceptors.response.use(e=>{var n,t,a;return si&&+((n=e==null?void 0:e.data)==null?void 0:n.code)==500&&ie.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"}),li(e),e},e=>{if(li(e==null?void 0:e.response),si)if(e.message.includes("timeout"))ie.message.error({content:"网络连接超时,请重试!",key:"TIMEOUT"});else{const{status:n}=(e==null?void 0:e.response)||{};n>=400&&n<500&&ie.message.error({content:"请求异常",key:"REQUEST_ERROR"}),n>=500&&ie.message.error({content:"服务器异常",key:"REQUEST_ERROR"})}return Promise.reject(e)});const nc=e=>e.replace(/\\n/g,`
97
+ `),Ao=(e,n=2)=>{const t=parseFloat(e+"");return isNaN(t)?e:t.toFixed(n).replace(/(\d)(?=(\d{3})+\.)/g,"$1,")},oc=e=>{const n=parseFloat(e+"");return isNaN(n)?e:(n+"").replace(/\B(?=(\d{3})+(?!\d))/g,",")},hn=(e,n=2)=>{const t=e+"";if(t.includes("%"))return e;const a=parseFloat(t);return isNaN(a)?e:`${(a*100).toFixed(n)}%`},ac=(e,n=2)=>{const t=e+"",a=parseFloat(t);return isNaN(a)?e:a.toFixed(n)},rc=(e,n)=>et(n,e),qt=(e,n)=>{if(typeof e=="string"&&typeof n=="string")return e.toLocaleLowerCase().includes(n.toLocaleLowerCase());if(typeof e=="string"&&Array.isArray(n)){const t=n.length;for(let a=0;a<t;a++){const r=n[a];if(typeof r=="string"&&e.toLocaleLowerCase().includes(r.toLocaleLowerCase()))return!0}}return!1},gn=(e,n)=>Object.prototype.hasOwnProperty.call(e,n),Yt=e=>{const{leftAxisList:n=[],rightAxisList:t=[],queryColumnList:a=[],indicators:r=[]}=e;return[...n,...t,...a,...r].filter(i=>(i==null?void 0:i.calcType)==="COMPONENT").map(i=>({keyName:i.builtInCalcWay,id:i.builtInValueSource}))},Xe=(e,n)=>{let t=!0;const a=Yt(e);return a!=null&&a.length&&(t=a.map(r=>n[r.id]).every(r=>r)),t},mn=(e,n)=>{const t={dayjs:Ce,...n};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},ke=(e="",{textData:n,codeData:t}={},{useNewline:a=!1,useSpace:r=!1}={})=>{const s={...window.config||{},...n},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 y=/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,d=u.match(y);for(let h=0;h<d.length;h++){const m=d[h],g=s[m];g!=null&&typeof g!="function"&&(u=u.replace(m,g))}(/\(.*\)/g.test(u)||/[+/\\*]/g.test(u))&&(u=mn(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},ze=(e,n=()=>{})=>{const{requestUrl:t,requestMethod:a,requestHeaders:r,requestParams:i,requestInterval:s,isOpenRequestTimer:l}=e,{contextRequestUrl:f,touchEventId:c}=o.inject(Fe,{contextRequestUrl:"",touchEventId:""}),{getGlobalModel:u}=o.inject(we,{getGlobalModel:m=>{}}),y=ke(t),d=async(m={})=>{if(!y||!a||!r)return;let g={};i.forEach(x=>{const{key:k,value:C}=x;if(typeof C=="object"&&C!=null&&C.id){let O={};const{id:N,prop:L,propKey:B,operate:w}=C;N==="THIS"?O=u(o.unref(c))||{}:O=u(N)||{};const E=o.unref(O[L]);let S=null;if(["date","range"].some(z=>qt(O==null?void 0:O.type,z))){const{value:z,type:I,mode:M}=w||{};if(z&&I&&M)switch(I){case"add":S=o.unref(E).add(z,M);break;case"minus":S=o.unref(E).subtract(z,M);break}S==null&&(S=o.unref(E)),S=(S==null?void 0:S.format((B==null?void 0:B.trim())||O.format))||""}else Object.prototype.toString.call(E)==="[object Object]"?B?S=E[B]:S=L?E[L]:E:qt(O==null?void 0:O.type,"select")&&o.unref(E)&&L&&Array.isArray(o.unref(E))?S=o.unref(E).map(z=>Object.prototype.hasOwnProperty.call(z,L)?z[L]:z):S=E;g[k]=S}else typeof C=="string"&&(g[k]=ke(C))}),g={...window.config.requestParams,...m,...g};let v="";const D=Object.keys(g),b=D.length-1,p=D.length;D.forEach((x,k)=>{let C=g[x];Object.prototype.toString.call(C)==="[object Object]"&&(C=JSON.stringify(C)),k===0?p!==1?v+=`?${x}=${C}&`:v+=`?${x}=${C}`:k===b?v+=`${x}=${C}`:v+=`${x}=${C}&`});try{const x=["get","head"].includes(a),k={};let C=x?y+v:y;g.dataSqlId&&!C.includes("dataSqlId")&&(C+=`${C.includes("?")?"&":"?"}dataSqlId=${g.dataSqlId}`),Object.prototype.hasOwnProperty.call(g,"signal")&&(k.signal=g.signal);const O=await lt({baseURL:o.unref(f)||"",url:C,method:a,headers:r,data:x?{}:g,...k});return n(O),O}catch(x){console.error(x)}},h=l&&setInterval(d,s*1e3);return o.onUnmounted(()=>{clearInterval(h)}),d},bt=(e=[],n,t=!1)=>{let{name:a="name",types:r=[]}=n||{};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 y=[];for(let h=0;h<f;h++){const m=r[h],{label:g,value:v}=m,D={...e[0],value:e[0][v]};i.add(g),y.push(D)}const d=e[0][a]||"";s.set(d,y)}else for(let y=0;y<l;y++){const d=e[y],h=d[a];i.add(h);for(let m=0;m<f;m++){const g=r[m],{label:v,value:D}=g,b={...d,value:d[D]};if(s.has(v)){const p=s.get(v);p.push(b),s.set(v,p)}else s.set(v,[b])}}const c=Array.from(i),u=[];for(const[y,d]of s)u.push({name:y,data:d});return{dimensions:c,dataset:u}},vt=(e,n=!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,n&&(t=`url(${t})`),t},ci=(e,n)=>{const t=`${rr}/preview?pageId=${n}`,a=`${rr}/${n}`;return e==="preview"?t:a},et=(e,n)=>{var r;if(e==null)return n;const t=e.match(/\{.*\}/g);if(t==null||t.length===0)return n;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,n);try{let f=l;(/\(.*\)/g.test(l)||/[+/\\*]/g.test(l))&&(f=mn(l)),e=e.replace(s,f)}catch{e=e.replace(s,l)}}return e},it=(e={})=>{const{requestToken:n}=o.inject(tr,{requestToken:()=>{}}),{setLoadedData:t}=o.inject(mt,{setLoadedData:(d,h)=>{}});e.dataType==="indicator"&&n();const a=(d={})=>{const{label:h,name:m,location:g,show:v,indexCode:D}=d;return{label:h,columnName:m,location:g,show:v,calcType:"COLUMN",hrpIndexCode:D}},r=(d,h)=>Object.prototype.hasOwnProperty.call(d,h),i=d=>{r(d,"dataType")&&(d.fieldType==="DATE"&&(d.label=d.fieldName),d.dataType==="component"&&(d.fieldValue="${"+d.fieldValue+"}"),delete d.dataType),r(d,"activeKey")&&delete d.activeKey,r(d,"radioValue")&&delete d.radioValue},s=d=>{const h=[];return d!=null&&d.length&&Le.cloneDeep(d).forEach(m=>{if(m.join&&m.conditions){const g=!m.conditions.some(v=>v.join&&v.conditions);m.conditions.forEach((v,D)=>{i(v),g?D<m.conditions.length-1?h.push({join:m.join,...v}):h.push(v):v.join&&v.conditions?h.push({conditions:s([v]),join:m.join}):h.push(v)})}else i(m),h.push(m)}),h},l=(d={})=>{const{label:h,name:m,location:g,show:v,indexCode:D,calcType:b="COLUMN",builtInFormula:p,builtInValueSource:x,builtInCalcWay:k,formula:C,conditions:O,aggregate:N}=d;let L;if(O&&(L=s(O)),b==="COMPONENT"){const B={};return y(B,x),{label:h.trim(),columnName:m,show:v,calcType:b,componentAlias:k,componentValue:B.fieldValue||null}}else return{label:h.trim(),columnName:m,location:g,show:v,calcType:b,hrpIndexCode:D,aggregate:N,builtInFormula:p,builtInValueSource:x,builtInCalcWay:k,formula:C,conditions:L}},f=d=>{const h=[];for(const m of d)m.conditions?h.push(...f(m.conditions)):(m==null?void 0:m.dataType)==="component"&&h.push(m);return h},{getGlobalModel:c}=o.inject(we,{getGlobalModel:d=>{}}),u=d=>{if(!d)return[];const{controlList:h=[],classificationList:m=[],rowHeaderList:g=[],seriesList:v=[],leftAxisList:D=[],rightAxisList:b=[],queryColumnList:p=[],indicators:x=[]}=d,k=[...m,...g,...v,...D,...b,...p,...x],C=[];for(const B of k){const w=f((B==null?void 0:B.conditions)||[]);if(w!=null&&w.length){const E=w.filter(S=>(S==null?void 0:S.dataType)==="component").map(S=>{const _={};return S!=null&&S.dateFormat&&(_.format=S.dateFormat),{conditionKey:S.fieldName,conditionLabel:S.fieldName,conditionName:S.fieldName,conditionValueType:S.fieldType,id:S.componentId,keyName:S.fieldValue,rule:S.rule,notGlobal:!0,..._}});if(E!=null&&E.length)for(const S of E)C.find(_=>_.keyName===S.keyName)||C.push(S)}}const O=h.concat(C),N=O.length,L=[];for(let B=0;B<N;B++){const w=O[B];if(w.mode==="cascade")continue;const{id:E,keyName:S,conditionLabel:_,conditionKey:z,conditionValueType:I,prop:M,rule:H="NONE",notGlobal:j=!1,format:P,modelKey:A}=w;let R=S||E;R&&M&&(R+=`-${M}`);const T={rule:H,label:_,fieldName:z,fieldValue:"",valueType:I,alias:R,globalCondition:!j};y(T,E,{prop:M,dateFormat:P,modelKey:A,keyName:S}),L.push(T)}for(let B=L.length-1;B>=0;B--){const w=L[B];w.globalCondition||L.find(S=>S.alias===w.alias&&S.globalCondition)&&L.splice(B,1)}return L};function y(d,h,m){var B,w;const g=c(h)||{},{prop:v="",dateFormat:D="",modelKey:b="",keyName:p=""}=m||{},{value:x,format:k="YYYY-MM-DD",type:C="",useCurrentTime:O,RECORD:N}=g||{},L=D||k;if(qt(g.type,"date"))O?x?d.fieldValue=(B=o.unref(x))==null?void 0:B.format(L):d.fieldValue=Ce().format(L):d.fieldValue=(w=o.unref(x))==null?void 0:w.format(L),d.dateFormat=L;else if(C==="ecanRangePicker"){const{interval:E,intervalUnit:S,operate:_}=g||{};let z=v;if(!v){const M=p&&p.split("-");M!=null&&M.length&&(z=M[M.length-1])}if(!z)return;let I=null;if(O&&(z==="startTime"?I=Ce().subtract(E,S):z==="endTime"&&(I=Ce())),o.unref(g[z])&&(I=Ce(o.unref(g[z]))),_){const{type:M,value:H,mode:j}=_;switch(M){case"add":I=I&&I.add(H,j);break;case"minus":I=I&&I.subtract(H,j)}}I&&(d.fieldValue=I==null?void 0:I.format(L)),d.dateFormat=L}else C==="ecanTable"?b&&N&&(d.fieldValue=N[b]):d.fieldValue=o.unref(x)}return async(d={})=>{var F,W,$,te,K,Q;t(e.id,!1);const{graphicConfig:h,type:m,isGroupTable:g=!1}=e;let{source:v,dataViewId:D,plugin:b="1",layer:p,chartType:x,classificationList:k=[],rowHeaderList:C=[],seriesList:O=[],leftAxisList:N=[],rightAxisList:L=[],queryColumnList:B=[],indicators:w=[],controlList:E=[],formFields:S={},idxLibMode:_,preview:z=!1}=h||{},I=[];(h==null?void 0:h.pageMode)==="design"?I=h.sqlConditions??[]:I=u(h),p==null&&(qt(m,["table"])?p="1":qt(m,["select","checkbox","radio"])?p="3":p="2");let M,H="";if(Array.isArray(k)&&k.length>0){const Y=k.length;for(let X=0;X<Y;X++){const oe=k[X]||{},{label:he="",name:fe="",show:_e=!1,sort:He,customGroup:qe,conditions:$e,dateFormat:Ze,typeGuid:tt="",truncations:Ee=[]}=oe;if(_e||Y===1){H=tt,M={label:he.trim(),columnName:fe,show:_e,sort:He,customGroup:qe,conditions:s($e),typeGuid:tt},Ze&&(M.dateFormat=Ze),fe==="the_date"&&!M.dateFormat&&(M.dateFormat="YYYY-MM");const Se={};if(Array.isArray(Ee)&&Ee.length>0){const Ie=Ee.length;for(let je=0;je<Ie;je++){const nt=Ee[je]||{},{rule:Me="",num:Ve=0,name:ut=""}=nt;Me&&Ve&&(Se.num=Ve,Se.rule=Me,ut&&(Se.otherGroupName=ut))}}(F=Object.keys(Se))!=null&&F.length&&(M.truncation=Se);break}}}let j;if(Array.isArray(O)&&O.length>0){const Y=O.length;for(let X=0;X<Y;X++){const oe=O[X]||{},{label:he="",name:fe="",show:_e=!1,sort:He,customGroup:qe,conditions:$e}=oe;if(_e||Y===1){j={label:he.trim(),columnName:fe,show:_e,sort:He,customGroup:qe,conditions:s($e)};break}}}const P=[];B==null||B.forEach(Y=>{P.push(a(Y))});const A=[];N==null||N.forEach(Y=>{Y.location="LEFT",A.push(l(Y))}),L==null||L.forEach(Y=>{Y.location="RIGHT",A.push(l(Y))}),w==null||w.forEach(Y=>{Y.location="LEFT",A.push(l(Y))});const R=[];if(Array.isArray(C)&&C.length>0){const Y=C.length;for(let X=0;X<Y;X++){const oe=C[X]||{},{label:he="",name:fe="",show:_e=!1,sort:He,customGroup:qe,conditions:$e,truncations:Ze,typeGuid:tt=""}=oe;let Ee=He;if(d.sort){const{field:je,order:nt}=d.sort,Me=A.find(Ve=>Ve.label===je);Me&&(Ee={columnName:Me.columnName,label:d.sort.field,order:nt.toUpperCase(),type:"NORMAL"})}const Se={label:he.trim(),columnName:fe,show:_e,sort:Ee,customGroup:qe,conditions:s($e),typeGuid:tt},Ie={};if(Array.isArray(Ze)&&Ze.length>0){const je=Ze.length;for(let nt=0;nt<je;nt++){const Me=Ze[nt]||{},{rule:Ve="",num:ut=0,name:V=""}=Me;Ve&&ut&&(Ie.num=ut,Ie.rule=Ve,V&&(Ie.otherGroupName=V))}}(W=Object.keys(Ie))!=null&&W.length&&(Se.truncation=Ie),R.push(Se)}}if(qt(m,["text","proportion"])&&(x="zb"),g){if(R.length===0||A.length===0)return;x="grouptable"}else{if(p==="1"&&P.length===0)return;if(p==="2"&&A.length===0)return;if(p==="3"&&(!H||!S.labelField||!S.valueField))return}let T=($=window==null?void 0:window.config)==null?void 0:$.pageId;if(!T){const{pathname:Y}=window==null?void 0:window.location;if(Y){const X=Y.split("/");X!=null&&X.length&&(T=X[X.length-1])}}if((te=Object.keys(S))!=null&&te.length){const Y=E.find(oe=>oe.mode==="cascade"),X={};if(Y){const oe=c(Y.id)||{};if(oe!=null&&oe.itemCodes)X.parentItemCodes=oe.itemCodes;else return}try{return await lt.post(`${ar}/diagram/formData`,{source:v,dataViewId:D,plugin:"4",layer:p,chartType:"normalSelect",rangeIndexTypeGuid:H,type:"normalSelect",labelField:S.labelField,valueField:S.valueField,pageId:T,sqlConditions:I,idxLibMode:"WITH_DATE_DIM_TABLE",keyName:e.keyName,...X},{headers:{Authentication:(K=window==null?void 0:window.config)==null?void 0:K.indicatorToken,operateContext:or}})}catch(oe){console.error(oe)}finally{}}else try{return await lt.post(`${ar}/diagram`,{source:v,dataViewId:D,plugin:b,layer:p,chartType:x,classification:M,series:j,indicatorList:A,queryColumns:g?[]:P,pageFlag:!0,pageId:T,sqlConditions:I.map(X=>{const{fieldValue:oe}=X,he={};return oe&&Array.isArray(oe)&&(he.fieldValue=JSON.stringify(oe)),{...X,...he}}),idxLibMode:_,preview:z,rowHeaders:R,keyName:e.keyName},{headers:{Authentication:(Q=window==null?void 0:window.config)==null?void 0:Q.indicatorToken,operateContext:or}})}catch(Y){console.error(Y)}finally{}}},ic=()=>{const n=window.location.search.slice(1).split("&"),t=n.length,a={};for(let r=0;r<t;r++){const i=n[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}},lc=o.defineComponent({name:"EcanPageConfig",inheritAttrs:!1,props:{...On},setup(e){const{width:n,height:t}=o.inject(Fe,{width:null,height:null}),a=o.inject("setPageHeight",x=>{}),r=o.inject("isMobile",!1),i=o.computed(()=>{const x={};return r||(x.width=n.value,x.height=t.value),{...x,backgroundColor:e.backgroundColor,backgroundImage:vt(e.backgroundImage,!0),backgroundSize:e.backgroundSize}}),s=o.ref(0),l=o.ref(0),f=o.ref(0),c=o.ref(0),u=o.ref(!1),y=o.ref();let d;const h=()=>new Promise(x=>{o.nextTick(()=>{n.value&&t.value?(s.value=parseFloat(n.value),l.value=parseFloat(t.value)):(s.value=y.value.clientWidth,l.value=y.value.clientHeight),(!f.value||!c.value)&&(f.value=window.screen.width,c.value=window.screen.height),x()})}),m=()=>{s.value&&l.value?(y.value.style.width=`${s.value}px`,y.value.style.height=`${l.value}px`):(y.value.style.width=`${f.value}px`,y.value.style.height=`${c.value}px`)};o.watch([n,t],async()=>{await h(),m(),v(),window.addEventListener("resize",D),b(),u.value=!0},{immediate:!0});const g=o.ref({});o.provide("scaleValue",g);const v=()=>{if(r){y.value.style.width="100%",y.value.style.height="auto",a("auto");return}const x=document.body.clientWidth,k=document.body.clientHeight,C=s.value||f.value,O=l.value||c.value,N=x/C;let L=k/O;(s.value!==1920||l.value!==1080)&&(L=l.value/s.value*x/O),g.value={widthScale:N,heightScale:L},y.value&&(y.value.style.transform=`scale(${N}, ${L})`),a(L)},D=Le.debounce(async()=>{await h(),v()},100),b=()=>{const x=window.MutationObserver;d=new x(D),d.observe(y.value,{attributes:!0,attributeFilter:["style"],attributeOldValue:!0})},p=()=>{d&&(d.disconnect(),d.takeRecords(),d=null)};return o.onMounted(()=>{u.value=!1}),o.onUnmounted(()=>{window.removeEventListener("resize",D),p()}),{style:i,container:y,ready:u}}}),$d="",sc={id:"container",ref:"container"};function cc(e,n,t,a,r,i){return o.openBlock(),o.createElementBlock("div",sc,[e.ready?(o.openBlock(),o.createElementBlock("div",{key:0,class:"page-config",style:o.normalizeStyle(e.style)},[o.renderSlot(e.$slots,"default",{},void 0,!0)],4)):o.createCommentVNode("",!0)],512)}const fi=ge(ue(lc,[["render",cc],["__scopeId","data-v-b496b36e"]])),ko={contextRequestUrl:"",pageMode:"normal",theme:"light",containerMap:{},combinationMap:{},width:"1920px",height:"1080px"},To=ye(ko),fc=o.defineComponent({name:"EcanProviderConfig",inheritAttrs:!1,props:{...To},setup(e,{expose:n}){ic();const t=o.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=o.ref(),r=()=>{a.value.setAttribute("datav-theme",e.theme)};o.watch(()=>e.theme,()=>{r()}),o.onMounted(()=>{r()});const i=o.computed(()=>ke(e.contextRequestUrl)),s=o.computed(()=>e.pageMode),l=o.computed(()=>e.theme),f=o.computed(()=>e.width),c=o.computed(()=>e.height),u=o.ref("");o.provide(Fe,{contextRequestUrl:i,pageMode:s,theme:l,touchEventId:u,width:f,height:c});const y=o.ref({height:"100%",overflow:e.pageMode==="design"?"":"hidden"});o.provide("setPageHeight",T=>{let F=T;t.value||(F=parseFloat(c.value)*T+"px"),y.value.height=F}),o.provide("isMobile",t.value),o.provide("getContainerMap",()=>e.containerMap),o.provide("getCombinationMap",()=>e.combinationMap);const d=o.ref(),h=new Map;console.log("globalModel",h);const m=T=>h.get(T),g=(T,F)=>{d.value=F,h.set(T,F)},v=()=>{d.value=null};o.provide(we,{getGlobalModel:m,setGlobalModel:g,clearInteractiveData:v,interactiveData:d});const D=o.ref({}),b=(T,F)=>{D.value[T]=F};o.provide(mt,{loadedData:D,setLoadedData:b});const p=[],x=()=>{p.pop()},k=T=>{p.push(T)},C=new Map,O=T=>C.get(T),N=(T,F)=>{C.set(T,F)};o.provide(nr,{popUseModalIds:x,pushUseModalIds:k,getModalModel:O,setModalModel:N});const L=B0(),B=new Set,w=(T,F)=>{B.add(T),L.on(T,W=>typeof F[W]=="function"&&F[W]()),o.onBeforeUnmount(()=>{E(T)})},E=T=>{B.delete(T),L.off(T)},S=(T,F)=>{if(T==="PAGE"){const W=p.length;let $=[];if(W===0)$=[...B];else{const te=p[W-1];$=[...O(te)]}$.forEach(te=>{L.emit(te,F)})}else L.emit(T,F)};o.provide(Nn,{onEvent:w,offEvent:E,emitEvent:S});const _=o.ref(0),z=()=>{_.value=o.unref(_)+1};o.provide(tr,{requestToken:z});const I=new Map,M=new Map,H=({requestFn:T=()=>{},sortNum:F=0,id:W=""})=>{if(I.has(F)){const $=I.get(F);$==null||$.push(T)}else I.set(F,[T]);M.set(W,T)},j=T=>new Promise((F,W)=>{const $=T.map(te=>te());Promise.all($).then(te=>{F(te)}).catch(te=>{W(te)})}),P=T=>new Promise(async(F,W)=>{if(T){if(typeof T=="string"){const $=M.get(T);if(typeof $=="function"){const te=lt.interceptors.response.use(K=>(F(K),K),K=>(W(K),Promise.reject(K)));$(),lt.interceptors.response.eject(te)}}}else{const $=Array.from(I);$.sort((K,Q)=>Q[0]-K[0]);const te=$.length;try{e.pageMode!=="design"&&o.unref(_)>0;for(let K=0;K<te;K++){const Q=$[K][1];await j(Q)}}catch(K){console.error(K)}finally{I.clear(),F(null)}}});o.provide(Oe,{setRequest:H,touchRequest:P});const A=()=>{L.emit($t)};o.provide($t,{emitRefreshPage:A});const R=T=>{L.on($t,()=>T()),o.onMounted(()=>{L.off($t)})};return o.onBeforeUnmount(()=>{I==null||I.clear(),M==null||M.clear()}),n({touchRequest:P,getGlobalModel:m,onRefreshPage:R}),{providerConfig:a,configStyle:y}}}),Yd="";function dc(e,n,t,a,r,i){return o.openBlock(),o.createElementBlock("div",{id:"ProviderConfig",ref:"providerConfig",style:o.normalizeStyle(e.configStyle)},[o.renderSlot(e.$slots,"default",{},void 0,!0)],4)}const di=ge(ue(fc,[["render",dc],["__scopeId","data-v-7cceb095"]])),Bo={...ve,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=ye(Bo),ui=["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=",_o="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==",Ro=o.defineComponent({name:"EcanText",components:{Skeleton:tn},props:{...Eo},setup(e,{expose:n}){const t=o.ref(!1),a=pe(e),r=o.ref({}),i=o.computed(()=>e.variableFontSize||"14px"),s=o.computed(()=>"-"+o.unref(i));o.watch(()=>[e.data,e.dataType],([w,E])=>{E==="static"&&(r.value=w)},{immediate:!0});const{getGlobalModel:l,setGlobalModel:f}=o.inject(we,{getGlobalModel:w=>{},setGlobalModel:(w,E)=>{}}),{setLoadedData:c}=o.inject(mt,{setLoadedData:(w,E)=>{}}),u=o.computed(()=>{let w="";if(e.gradientShow){const{gradientColor:E,gradientOffset:S,gradientAngle:_,color:z}=e;w+=`background: linear-gradient(${_}, ${z}, ${E||"transparent"} ${S*100}%);-webkit-background-clip: text;color: transparent;`}return w}),y=o.computed(()=>{const w={};if(e.gradientShow){const{gradientColor:E,gradientOffset:S,gradientAngle:_,color:z}=e,I=E||"transparent";w.background=`linear-gradient(${_}, ${z}, ${I} ${S*100}%)`,w["-webkit-background-clip"]="text",w.color="transparent"}return w}),d=o.computed(()=>{var M;if(o.unref(t))return"NaN";const w=o.unref(r),E=e.increaseColor||e.color,S=e.declineColor||e.color;let _=e.text;_=_==null?void 0:_.replace(/\n|\\n/g,"<br/>"),_=_==null?void 0:_.replace(/\s(?!\{) | (?!\})\s/g,"&nbsp;");const z=_.match(/\{(.+?)\}/g)||[];let I="";if(z==null||z.length===0){if(_&&e.format==="percentage"&&!isNaN(+_)){const H=parseFloat(_),j=H*100,P=h(j.toFixed(2));H>=0?_=`<span style="color: ${P||E||"#ED6643"};font-size:${o.unref(i)};display: inline-block;${o.unref(u)}">
98
98
  <div class="percentage-img-box">
99
- <img style="width: ${o.unref(i)};filter: ${`drop-shadow(${P||E||"#ED6643"} ${o.unref(i)} 0px)`};" src="${To}"/>
99
+ <img style="width: ${o.unref(i)};filter: ${`drop-shadow(${P||E||"#ED6643"} ${o.unref(i)} 0px)`};" src="${Do}"/>
100
100
  </div>
101
101
  <span style="color: ${P||e.color};${o.unref(u)}">${Math.abs(+j).toFixed(2)}%</span>
102
- </span>`:D=`<span style="color: ${P||S||"#6ACB97"};font-size:${o.unref(i)};display: inline-block;${o.unref(u)}">
102
+ </span>`:_=`<span style="color: ${P||S||"#6ACB97"};font-size:${o.unref(i)};display: inline-block;${o.unref(u)}">
103
103
  <div class="percentage-img-box">
104
- <img style="width: ${o.unref(i)};filter: ${`drop-shadow(${P||S||"#6ACB97"} ${o.unref(i)} 0px)`};" src="${Bo}"/>
104
+ <img style="width: ${o.unref(i)};filter: ${`drop-shadow(${P||S||"#6ACB97"} ${o.unref(i)} 0px)`};" src="${_o}"/>
105
105
  </div>
106
106
  <span style="color: ${P||e.color};${o.unref(u)}">${e.minusSignShow?"-":""}${Math.abs(+j).toFixed(2)}%</span>
107
- </span>`}R=D}for(let H=0;H<z.length;H++){const j=z[H],P=(M=j==null?void 0:j.slice(1,j.length-1))==null?void 0:M.trim();let A=P;const I=P.match(/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g);for(let F=0;F<I.length;F++){const U=I[F],$=w[U];$&&(A=P.replace(U,$))}if(/\(.*\)/g.test(A)){const F=gn(A);F!=null&&(A=F)}let T=A;if(T===P&&(T=e.variableDefaultValue),T!=null){const F=e.format;if(F==="percentage")if(T=+T,isNaN(T))D=D.replace(j,`<span style="color:${h("0.00")||e.variableColor};font-size:${o.unref(i)};${o.unref(u)}">0%</span>`);else if(T>=0){T=T*100;const U=h(T.toFixed(2));D=D.replace(j,`<span style="color: ${U||E||"#ED6643"};font-size:${o.unref(i)};display: inline-block;${o.unref(u)}">
107
+ </span>`}I=_}for(let H=0;H<z.length;H++){const j=z[H],P=(M=j==null?void 0:j.slice(1,j.length-1))==null?void 0:M.trim();let A=P;const R=P.match(/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g);for(let F=0;F<R.length;F++){const W=R[F],$=w[W];$&&(A=P.replace(W,$))}if(/\(.*\)/g.test(A)){const F=mn(A);F!=null&&(A=F)}let T=A;if(T===P&&(T=e.variableDefaultValue),T!=null){const F=e.format;if(F==="percentage")if(T=+T,isNaN(T))_=_.replace(j,`<span style="color:${h("0.00")||e.variableColor};font-size:${o.unref(i)};${o.unref(u)}">0%</span>`);else if(T>=0){T=T*100;const W=h(T.toFixed(2));_=_.replace(j,`<span style="color: ${W||E||"#ED6643"};font-size:${o.unref(i)};display: inline-block;${o.unref(u)}">
108
108
  <div class="percentage-img-box">
109
- <img style="width: ${o.unref(i)};filter: ${`drop-shadow(${U||E||"#ED6643"} ${o.unref(i)} 0px)`};" src="${To}"/>
109
+ <img style="width: ${o.unref(i)};filter: ${`drop-shadow(${W||E||"#ED6643"} ${o.unref(i)} 0px)`};" src="${Do}"/>
110
110
  </div>
111
- <span style="color: ${U||e.color};${o.unref(u)}">${Math.abs(+T).toFixed(2)}%</span>
112
- </span>`)}else{T=T*100;const U=h(T.toFixed(2));D=D.replace(j,`<span style="color: ${U||S||"#6ACB97"};font-size:${o.unref(i)};display: inline-block;${o.unref(u)}">
111
+ <span style="color: ${W||e.color};${o.unref(u)}">${Math.abs(+T).toFixed(2)}%</span>
112
+ </span>`)}else{T=T*100;const W=h(T.toFixed(2));_=_.replace(j,`<span style="color: ${W||S||"#6ACB97"};font-size:${o.unref(i)};display: inline-block;${o.unref(u)}">
113
113
  <div class="percentage-img-box">
114
- <img style="width: ${o.unref(i)};filter: ${`drop-shadow(${U||S||"#6ACB97"} ${o.unref(i)} 0px)`};" src="${Bo}"/>
114
+ <img style="width: ${o.unref(i)};filter: ${`drop-shadow(${W||S||"#6ACB97"} ${o.unref(i)} 0px)`};" src="${_o}"/>
115
115
  </div>
116
- <span style="color: ${U||e.color};${o.unref(u)}">${e.minusSignShow?"-":""}${Math.abs(+T).toFixed(2)}%</span>
117
- </span>`)}else e.format==="percent"?(T=+T,isNaN(T)||(T=(T*100).toFixed(2),D=D.replace(j,`<span style="color:${h(T)||e.variableColor};font-size:${o.unref(i)};${o.unref(u)}">${T}%</span>`))):e.format==="money"?(T=+T,isNaN(T)||(T=So(T),D=D.replace(j,`<span style="color:${h(T)||e.variableColor};font-size:${o.unref(i)};${o.unref(u)}">${T}</span>`))):F==="thousands"?(T=+T,isNaN(T)||(T=oc(T),D=D.replace(j,`<span style="color:${h(T)||e.variableColor};font-size:${o.unref(i)};${o.unref(u)}">${T}</span>`))):D=D.replace(j,`<span style="color:${h(T)||e.variableColor};font-size:${o.unref(i)};${o.unref(u)}">${T}</span>`)}}if(R||(R=`<span style="color: ${h(D)};${o.unref(u)}">${D}</span>`),e.unitShow&&e.unitText){const{unitTop:H,unitLeft:j}=e;let P="position:relative;";H&&(P+=`top:${H};`),j&&(P+=`margin-left:${j};`),R+=`<span style='color:${e.unitColor};font-size:${e.unitFontSize};font-weight:${e.unitFontWeight};${P};${o.unref(u)}'>${e.unitText}</span>`}return R});function h(w){let E="",S=!1;const{targetValue:D,targetShow:z,notExpectColor:R}=e;if(z){switch(e.targetRule){case"equal":w!==D&&(S=!0);break;case"greater":w<=D&&(S=!0);break;case"greater_equal":w<D&&(S=!0);break;case"less":w>=D&&(S=!0);break;case"less_equal":w>D&&(S=!0);break}S&&(E=R)}return E}const{pageMode:m}=o.inject(Fe,{pageMode:"normal"}),g=ze(e),v=o.ref(!1),_=async()=>{var w;try{v.value=!0;const E=await g();r.value=((w=E==null?void 0:E.data)==null?void 0:w.data)||{}}catch(E){console.error(E)}finally{v.value=!1}},b=(w={})=>{r.value=w},p=w=>{const E=e.id,S=l(E);f(E,{...S,value:w||""})},y=it(e),k=async()=>{var w;try{v.value=!0;const E=await y(),{data:S}=(E==null?void 0:E.data)||{};if(S){t.value=!1;const{columns:D=[],rows:z=[]}=((w=E==null?void 0:E.data)==null?void 0:w.data)??{};let R={};if(D.length>0){const M=D.find(H=>!!H);M&&(R={value:isNaN(z[M])?0:z[M]||0})}p(R==null?void 0:R.value),b(R)}else t.value=!0,p("NaN"),b({value:"NaN"})}catch(E){console.error(E)}finally{v.value=!1,c(e.id,!0)}},C=()=>{switch(e.dataType){case"indicator":k();break;case"request":_();break}},{setRequest:O}=o.inject(Oe,{setRequest:({id:w,sortNum:E,requestFn:S})=>{}});typeof O=="function"&&O({id:e.id,requestFn:C,sortNum:e.requestSort}),_e(e,{refreshData:C}),n({refreshData:C});const L=Ae(e),N=L("click",()=>{if(!e.linkPage&&!e.href)return;const w=e.linkPage||"",E=si(o.unref(m),w),S=e.href;let D=S||E;D=ke(D);const z=e.target;z&&(z!=="event"?window.open(D,"_"+z):window.parent.postMessage({type:"openPage",url:S},"*"))}),B=L("valueChange",()=>{});return o.watch(()=>d.value,(w,E)=>{w!==E&&B()}),{style:a,myText:d,loading:v,click:N,textIndent:s,vFontSize:i,gradientStyle:x}}}),ui=()=>{o.useCssVars(e=>({cebebbf4:e.vFontSize,"2393a9b9":e.textIndent,"36d98491":e.percentageSide}))},hi=Eo.setup;Eo.setup=hi?(e,n)=>(ui(),hi(e,n)):ui;const Wd="",uc=["innerHTML"];function hc(e,n,t,a,r,i){const s=o.resolveComponent("skeleton");return e.loading?(o.openBlock(),o.createElementBlock("div",{key:0,class:"skeleton-wrapper",style:o.normalizeStyle(e.style)},[o.createVNode(s,{loading:e.loading},null,8,["loading"])],4)):(o.openBlock(),o.createElementBlock("div",{key:1,class:"ecan-text",style:o.normalizeStyle({...e.style,...e.gradientStyle}),innerHTML:e.myText,onClick:n[0]||(n[0]=(...l)=>e.click&&e.click(...l))},null,12,uc))}const gi=ge(ue(Eo,[["render",hc],["__scopeId","data-v-3cbb70ab"]])),gc=o.defineComponent({name:"EcanScrollText",setup(){return{text:o.ref("基础文本")}}}),$d="",mc={class:"red"};function xc(e,n,t,a,r,i){return o.openBlock(),o.createElementBlock("div",mc,o.toDisplayString(e.text),1)}const mi=ge(ue(gc,[["render",xc],["__scopeId","data-v-4dd9c03e"]])),_o={...ve,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"}},Do=me(_o),xi=["timeChange"],yc=o.defineComponent({name:"EcanTimeDisplay",props:{...Do},setup(e){const n=pe(e),t=()=>{const{format:c,operate:u}=e;let x=Ce();if(u){const{type:d,value:h,mode:m}=u;switch(d){case"add":x=x.add(h,m);break;case"minus":x=x.subtract(h,m)}}return x.format(c)},a=o.ref();o.watch(()=>[e.operate,e.format],()=>{a.value=t()},{immediate:!0,deep:!0}),o.watch(()=>e.updateInterval,()=>{f()},{deep:!0});let r=null;const i=()=>{clearInterval(r),r=null},l=Ae(e)("timeChange",()=>{}),f=()=>{r&&i();let c=1e3;const{value:u,mode:x}=e.updateInterval||{};u&&(c=c*u);const d={second:1,minute:60,hour:60*60,day:24*60*60};x&&(c=c*d[x]),r=setInterval(()=>{a.value=t(),l()},c)};return _e(e,{timeChange:l}),o.onMounted(()=>{f()}),o.onUnmounted(()=>{i()}),{style:n,time:a}}}),Yd="";function pc(e,n,t,a,r,i){return o.openBlock(),o.createElementBlock("div",{class:"time-display",style:o.normalizeStyle(e.style)},o.toDisplayString(e.time),5)}const yi=ge(ue(yc,[["render",pc],["__scopeId","data-v-b628fca2"]])),Io={...ve,type:"ecanList",name:"列表",keyName:"列表",width:"330px",height:"80px",backgroundColor:"#0d215e",itemColSpan:"10px",itemRowSpan:"10px",useRanking:!0,useTitle:!1,sliceCount:6,columnCount:1,itemHeight:"32px",data:[{name:"a",age:12},{name:"b",age:14}],columns:[{key:"name"},{key:"age"}]},Ro=me(Io),pi=["refreshData","click"],bc=o.defineComponent({name:"EcanList",components:{Skeleton:en},props:{...Ro},setup(e){const n=o.ref(e.data),t=pe(e,["backgroundColor"]),a=o.computed(()=>e.useRanking?{textAlign:"center"}:{textAlign:"left"}),r=(h,m)=>m==null||m===""?h:{money:So,percentage:un,contrast:un}[m](h)||"",i=(h,m)=>{const g=parseFloat(h+"");if(m!=="contrast")return"";switch(!0){case g>=0:return"goUp";case g<0:return"goDown"}},s=ze(e),l=o.ref(!1),f=async()=>{var h;if(e.dataType==="request")try{l.value=!0;const m=await s();n.value=((h=m==null?void 0:m.data)==null?void 0:h.data.rows)||[]}catch(m){console.error(m)}finally{l.value=!1}},c=()=>{f()},x=Ae(e)("click",()=>{});_e(e,{refreshData:c});const{setRequest:d}=o.inject(Oe,{setRequest:({id:h,sortNum:m,requestFn:g})=>{}});return d({id:e.id,requestFn:f,sortNum:e.requestSort}),{style:t,formatFn:r,columnStyle:a,contrastClass:i,dataSource:n,loading:l,click:x}}}),Xd="",Qd="",vc=e=>(o.pushScopeId("data-v-7aa27677"),e=e(),o.popScopeId(),e),Sc={key:0,class:"title"},Cc={key:0,class:"ranking"},wc={key:1,class:"ecan-list-content"},Ac={key:0,class:"ranking"},kc=vc(()=>o.createElementVNode("div",{class:"icon"},null,-1)),Tc={class:"sort"},Bc={key:2,class:"empty"};function Ec(e,n,t,a,r,i){const s=o.resolveComponent("skeleton");return o.openBlock(),o.createElementBlock("div",{class:"ecan-list",style:o.normalizeStyle(e.style)},[o.createVNode(s,{loading:e.loading},{default:o.withCtx(()=>[e.useTitle?(o.openBlock(),o.createElementBlock("div",Sc,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.columnCount,l=>(o.openBlock(),o.createElementBlock("div",{class:"title-inner",style:o.normalizeStyle({backgroundColor:e.backgroundColor,height:e.itemHeight,width:`calc(100% / ${e.columnCount} - ${e.itemColSpan} * ${e.columnCount-1}/ ${e.columnCount})`,marginRight:l%e.columnCount!==0?e.itemColSpan:""}),key:l},[e.useRanking?(o.openBlock(),o.createElementBlock("div",Cc)):o.createCommentVNode("",!0),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.columns,(f,c)=>(o.openBlock(),o.createElementBlock("div",{class:"column",key:f.key||c,style:o.normalizeStyle({color:f.titleColor,...e.columnStyle})},o.toDisplayString(f.title),5))),128))],4))),128))])):o.createCommentVNode("",!0),e.dataSource.length>0?(o.openBlock(),o.createElementBlock("div",wc,[e.useTitle?(o.openBlock(),o.createElementBlock("div",{key:0,class:"title-placeholder",style:o.normalizeStyle({marginBottom:e.itemRowSpan})},null,4)):o.createCommentVNode("",!0),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.dataSource.slice(0,e.sliceCount),(l,f)=>(o.openBlock(),o.createElementBlock("div",{class:"item",style:o.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}),key:l.id||f,onClick:n[0]||(n[0]=(...c)=>e.click&&e.click(...c))},[e.useRanking?(o.openBlock(),o.createElementBlock("div",Ac,[kc,o.createElementVNode("div",Tc," Top "+o.toDisplayString(f+1),1)])):o.createCommentVNode("",!0),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.columns,c=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["column",e.contrastClass(l[c.key],c.format)]),key:c.key,style:o.normalizeStyle({fontSize:c.fontSize,color:e.contrastClass(l[c.key],c.format)===""?c.color:"",fontWeight:c.fontWeight,...e.columnStyle})},o.toDisplayString((c.format!=null||c.format!=="")&&e.formatFn(l[c.key],c.format)),7))),128))],4))),128))])):(o.openBlock(),o.createElementBlock("div",Bc," 暂无数据 "))]),_:1},8,["loading"])],4)}const bi=ge(ue(bc,[["render",Ec],["__scopeId","data-v-7aa27677"]])),Oo={...ve,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:{}},Lo=me(Oo),vi=["refreshData","click"],_c=o.defineComponent({name:"EcanProportion",components:{AProgress:ie.Progress,Skeleton:en},props:{...Lo},setup(e,{expose:n}){const t=o.ref(!1),{pageMode:a}=o.inject(Fe,{pageMode:"normal"}),r=pe(e),i=o.computed(()=>{const y=e.width;return parseFloat(y)}),s=o.ref({});o.watch(()=>e.data,()=>{(e.dataType==="static"||o.unref(a)==="design")&&(s.value=e.data)},{immediate:!0,deep:!0});const l=o.computed(()=>{const y=o.unref(s),k=+e.variableDefaultValue;if(y==null)return isNaN(k)?0:k;const C=e.text.match(/\{.+\}/g)||[];let O;const L=new Set(Object.keys(y));for(let N=0;N<C.length;N++){const B=C[N],w=B.slice(1,B.length-1);if(L.has(w)){O=y[w];break}}return typeof O=="number"?O=O*100:typeof O=="string"&&!isNaN(+O)?O=+O*100:isNaN(k)?O=0:O=k*100,e.decimalFormat&&(O=+O.toFixed(2)),O}),f=o.computed(()=>{var L;let y=e.text;if(y==="")return o.unref(l);const k=e.variableDefaultValue,C=o.unref(s),O=y.match(/\{.+\}/g)||[];for(let N=0;N<O.length;N++){const B=O[N];let w=B.slice(1,B.length-1);const E=/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,S=B.match(E);for(let z=0;z<(S==null?void 0:S.length);z++){const R=(L=S[z])==null?void 0:L.trim();C[R]!=null&&(w=w.replace(R,C[R]))}let D=w;try{/\(.*\)/g.test(w)&&(D=gn(w))}catch(z){console.error(z)}typeof+D=="number"&&!isNaN(+D)?(D=+D*100,e.decimalFormat&&(D=D.toFixed(2))):D=k,y=y.replace(B,D+"")}return o.unref(t)?"NaN":y}),c=ze(e),u=o.ref(!1),x=async()=>{var y;if(e.dataType==="request")try{u.value=!0;const k=await c();s.value=((y=k==null?void 0:k.data)==null?void 0:y.data)||{}}catch(k){console.error(k)}finally{u.value=!1}},d=(y={})=>{s.value=y},h=it(e),m=async()=>{var y;try{u.value=!0;const k=await h(),{data:C}=(k==null?void 0:k.data)||{};if(C){t.value=!1;const{columns:O=[],rows:L=[]}=((y=k==null?void 0:k.data)==null?void 0:y.data)??{};let N={};if(O.length>0){const B=O.find(w=>!!w);B&&(N={percent:L[B]})}d(N)}else t.value=!0,d({percent:"NaN"})}catch(k){console.error(k)}finally{u.value=!1}},g=()=>{switch(e.dataType){case"indicator":m();break;case"request":x();break}};_e(e,{refreshData:g}),n({refreshData:g});const _=Ae(e)("click",()=>{}),{setRequest:b}=o.inject(Oe,{setRequest:({id:y,sortNum:k,requestFn:C})=>{}});typeof b=="function"&&b({id:e.id,requestFn:g,sortNum:e.requestSort});const p=o.computed(()=>{const{gradientShow:y,gradientColor:k,gradientOffset:C,strokeColor:O}=e;let L=O;return y&&k&&(L={"0%":O,[`${C*100}%`]:k}),L});return{style:r,myWidth:i,text:f,myValue:l,loading:u,click:_,customStrokeColor:p}}}),e1="";function Dc(e,n,t,a,r,i){const s=o.resolveComponent("skeleton"),l=o.resolveComponent("a-progress");return o.openBlock(),o.createElementBlock("div",{class:"ecan-proportion",style:o.normalizeStyle(e.style)},[o.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:o.withCtx(()=>[e.loading?(o.openBlock(),o.createBlock(s,{key:0,loading:e.loading},null,8,["loading"])):e.strokeTextShow?(o.openBlock(),o.createElementBlock("div",{key:1,class:"format",style:o.normalizeStyle({width:e.strokeTextWidth,fontSize:e.fontSize,color:e.color,fontWeight:e.fontWeight,lineHeight:e.lineHeight})},o.toDisplayString(e.text),5)):o.createCommentVNode("",!0)]),_:1},8,["percent","width","type","strokeColor","strokeLinecap","trailColor","strokeWidth","showInfo","gapDegree","onClick"])],4)}const Si=ge(ue(_c,[["render",Dc],["__scopeId","data-v-cf942b5f"]])),No={...ve,width:"200px",id:"",left:"0px",top:"0px",name:"输入框",keyName:"输入框",rotate:"",type:"ecanInput",value:"",placeholder:"请输入文字",optionFontSize:"14px"},Fo=me(No),Ci=["inputChange","inputBlur"],Ic=o.defineComponent({name:"EcanInput",components:{AInput:ie.Input},props:{...Fo},setup(e){const n=pe(e),t=o.ref("");o.watch(()=>e.value,c=>{t.value=c},{immediate:!0});const{getGlobalModel:a,setGlobalModel:r}=o.inject(we,{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=Ae(e),l=Ne.debounce(s("inputChange",()=>{i()}),300),f=s("inputBlur",()=>{});return{style:n,myValue:t,inputBlur:f,inputChange:l}}}),n1="";function Rc(e,n,t,a,r,i){const s=o.resolveComponent("a-input");return o.openBlock(),o.createElementBlock("div",{class:"ecan-input",style:o.normalizeStyle(e.style)},[o.createVNode(s,{class:"input",value:e.myValue,"onUpdate:value":n[0]||(n[0]=l=>e.myValue=l),placeholder:e.placeholder,onChange:e.inputChange,onBlur:e.inputBlur,style:o.normalizeStyle({fontSize:e.optionFontSize})},null,8,["value","placeholder","onChange","onBlur","style"])],4)}const wi=ge(ue(Ic,[["render",Rc]])),zo={...ve,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"},Mo=me(zo),Ai=["dateChange"],Po=o.defineComponent({name:"EcanDatePicker",props:{...Mo},components:{ADatePicker:ie.DatePicker},setup(e){const n=o.inject("scaleValue",{widthScale:"1",heightScale:"1"}),t=pe(e),a=()=>document.getElementById("ProviderConfig")||document.body,r=o.ref(null);o.watch(()=>[e.value,e.useCurrentTime,e.operate],([d,h,m])=>{let g=null;if(d?g=Ce(ke(d)):h&&(g=Ce()),m&&g){const{type:v,value:_,mode:b}=m;switch(v){case"add":g=g.add(_,b);break;case"minus":g=g.subtract(_,b)}}r.value=g},{deep:!0,immediate:!0});const{setGlobalModel:i}=o.inject(we,{setGlobalModel:(d,h)=>{}});i(e.id,{type:e.type,format:e.format,useCurrentTime:e.useCurrentTime,value:r});const l=Ae(e)("dateChange",()=>{}),f=()=>{o.unref(r)&&l()};_e(e,{dateChange:l});const c=o.ref({}),u=o.ref({}),x=d=>{d?setTimeout(()=>{u.value=o.unref(c)},300):u.value={}};return o.onMounted(()=>{setTimeout(()=>{const d=document.querySelector(`#ecan-date-picker-${e.id}`);if(d){const h=d.getBoundingClientRect(),m=parseFloat(o.unref(n).widthScale)*280;document.body.clientWidth-h.left<m&&(c.value.marginLeft=-1*(m-h.width)+"px")}},0)}),{style:t,getPopupContainer:a,myValue:r,locale:Ia,change:f,scaleValue:n,popupStyle:c,customStyle:u,openChange:x}}}),ki=()=>{o.useCssVars(e=>({d6fb5b46:e.optionFontSize}))},Ti=Po.setup;Po.setup=Ti?(e,n)=>(ki(),Ti(e,n)):ki;const a1="",r1="",Oc=["id"];function Lc(e,n,t,a,r,i){const s=o.resolveComponent("a-date-picker");return o.openBlock(),o.createElementBlock("div",{class:"ecan-date-picker",style:o.normalizeStyle(e.style),id:"ecan-date-picker-"+e.id},[o.createVNode(s,{class:"date-picker",dropdownClassName:"ecan-date-picker-dropdown",value:e.myValue,"onUpdate:value":n[0]||(n[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,Oc)}const Bi=ge(ue(Po,[["render",Lc],["__scopeId","data-v-d4ec0d66"]])),Ho={...ve,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},qo=me(Ho),Ei=["dateChange"];var _i={exports:{}};(function(e,n){(function(t,a){e.exports=a()})(le,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 x=this.$utils(),d=!!x.u(u)||u;if(x.p(c)===a){var h=this.quarter()-1;return d?this.month(3*h).startOf(t).startOf("day"):this.month(3*h+2).endOf(t).endOf("day")}return f.bind(this)(c,u)}}})})(_i);var Nc=_i.exports;const Fc=rr(Nc);Ce.extend(Fc);const Vo=o.defineComponent({name:"EcanRangePicker",components:{ARangePicker:ie.RangePicker},props:{...qo},setup(e){const n=pe(e),t=()=>document.getElementById("ProviderConfig")||document.body,a=o.ref([null,null]);o.watch(()=>[e.startTime,e.endTime,e.useCurrentTime,e.interval,e.intervalUnit,e.operate],([p,y,k,C,O,L])=>{let N=null,B=null;if(k&&(N=Ce().subtract(C,O),B=Ce()),p&&(N=Ce(ke(p))),y&&(B=Ce(ke(y))),L){const{type:w,value:E,mode:S}=L;switch(w){case"add":N=N&&N.add(E,S),B=B&&B.add(E,S);break;case"minus":N=N&&N.subtract(E,S),B=B&&B.subtract(E,S)}}a.value=[N,B]},{immediate:!0});let r=o.unref(a)[0],i=o.unref(a)[1],s="";const l=(p,y,k)=>{Array.isArray(p)?(r=p[0],i=p[1],s=k.range):(r=null,i=null)},f=p=>{let y=!1,{limitStartTime:k,limitEndTime:C}=e;const O={startTime:`${r||""}`,endTime:`${i||""}`};if(k=ke(k,{codeData:O}),C=ke(C,{codeData:O}),k&&C?y=!(Ce(k)<p&&p<Ce(C)):k?y=Ce(k)>p:C&&(y=Ce(C)<p),!e.isAllowSpanYear&&s){let L=null;if(s==="start"?L=r:s==="end"&&(L=i),L){const N=L.startOf("year"),B=L.endOf("year");y=!(N<=p&&p<B)}}return y},{getGlobalModel:c,setGlobalModel:u}=o.inject(we,{getGlobalModel:p=>{},setGlobalModel:(p,y)=>{}}),x=o.computed(()=>Array.isArray(o.unref(a))?o.unref(a)[0]:null),d=o.computed(()=>Array.isArray(o.unref(a))?o.unref(a)[1]:null);u(e.id,{type:e.type,format:e.format,startTime:x,endTime:d,interval:e.interval,intervalUnit:e.intervalUnit,useCurrentTime:e.useCurrentTime,operate:e.operate});const h=Ae(e);let m=!1;const g=h("dateChange",()=>{}),v=p=>{const y=o.unref(a),k=y&&y[0]&&y[1];p===!1&&m===!0&&k&&(g(),m=!1),p||(s="")},_=()=>{m=!0};return _e(e,{dateChange:()=>{const{associated:p}=e;if(p){const y=c(p)||{};if(y){const{value:k}=y;if(k)switch(o.unref(k)){case"month":a.value=[Ce().startOf("month"),Ce().endOf("month")];break;case"quarter":a.value=[Ce().startOf("quarter"),Ce().endOf("quarter")];break;case"year":a.value=[Ce().startOf("year"),Ce().endOf("year")];break}}}g()}}),{style:n,getPopupContainer:t,locale:Ia,dateChange:g,myValue:a,disabledDate:f,calendarChange:l,openChange:v,change:_}}}),Di=()=>{o.useCssVars(e=>({"70b68802":e.optionFontSize}))},Ii=Vo.setup;Vo.setup=Ii?(e,n)=>(Di(),Ii(e,n)):Di;const l1="",s1="";function zc(e,n,t,a,r,i){const s=o.resolveComponent("a-range-picker");return o.openBlock(),o.createElementBlock("div",{class:"ecan-range-picker",style:o.normalizeStyle(e.style)},[o.createVNode(s,{class:"range-picker",dropdownClassName:"ecan-range-picker-dropdown",value:e.myValue,"onUpdate:value":n[0]||(n[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 Ri=ge(ue(Vo,[["render",zc],["__scopeId","data-v-95653c92"]])),jo={...ve,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"},Go=me(jo),Oi=["click"],Mc=o.defineComponent({name:"EcanButton",components:{AButton:ie.Button},props:{...Go},setup(e){const n=pe(e),a=Ae(e)("click",()=>{const f=o.unref(s);f&&e.target==="event"&&window.parent.postMessage({type:"openPage",url:f},"*")}),r=o.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=o.computed(()=>ke(e.text)),s=o.computed(()=>ke(e.href)||null),l=o.computed(()=>{const f=e.target;if(!(f==="event"||o.unref(s)==null))return{self:"_self",blank:"_blank"}[f]});return{style:n,click:a,myText:i,myHref:s,myTarget:l,buttonStyle:r}}}),f1="";function Pc(e,n,t,a,r,i){const s=o.resolveComponent("a-button");return o.openBlock(),o.createElementBlock("div",{class:"ecan-button",style:o.normalizeStyle(e.style)},[o.createVNode(s,{block:"",onClick:e.click,type:e.mode,danger:e.danger,shape:e.shape,href:e.myHref,target:e.myTarget,style:o.normalizeStyle(e.buttonStyle),class:o.normalizeClass(e.tooltipTextStyleColor?"custom-color":"")},{default:o.withCtx(()=>[o.createElementVNode("span",{style:o.normalizeStyle({fontSize:e.fontSize,fontWeight:e.fontWeight})},o.toDisplayString(e.myText),5)]),_:1},8,["onClick","type","danger","shape","href","target","style","class"])],4)}const Li=ge(ue(Mc,[["render",Pc]])),Wo={...ve,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:{}},Uo=me(Wo),Ni=["checkboxChange"],Hc=o.defineComponent({name:"EcanCheckbox",components:{ACheckboxGroup:ie.CheckboxGroup},props:{...Uo},setup(e,{expose:n}){const t=pe(e),a=o.ref([]),r=o.ref([]),i=v=>{const _=e.value;let b=[];v.forEach(p=>{p.checked&&b.push(p.value)}),typeof _=="string"&&_!==""?b=b.concat(_.split(",")):Array.isArray(_)&&(b=b.concat(_)),a.value=v,r.value=b};o.watch(()=>[e.data,e.value],([v])=>{i(v)},{immediate:!0,deep:!0});const s=ze(e),l=async()=>{var b,p;if(e.dataType!=="request")return;const v=await s(),_=((p=(b=v==null?void 0:v.data)==null?void 0:b.data)==null?void 0:p.rows)||[];i(_)},{getGlobalModel:f,setGlobalModel:c}=o.inject(we,{getGlobalModel:v=>{},setGlobalModel:(v,_)=>{}});c(e.id,{type:e.type,value:r});const x=Ae(e)("checkboxChange",()=>{const v=f(e.id);c(e.id,{...v,RECORD:r})}),d=it(e),h=async()=>{var v;try{const _=await d(),{data:b}=(_==null?void 0:_.data)||{};if(b){const y=(((v=_==null?void 0:_.data)==null?void 0:v.data)??[]).map(k=>({label:k.label,value:k.value}));i(y)}else i([])}catch(_){console.error(_)}},m=()=>{switch(e.dataType){case"indicator":h();break;case"request":l();break}},{setRequest:g}=o.inject(Oe,{setRequest:({id:v,sortNum:_,requestFn:b})=>{}});return typeof g=="function"&&g({id:e.id,requestFn:m,sortNum:e.requestSort}),n({refreshData:m}),{myOption:a,style:t,myValue:r,checkboxChange:x}}}),u1="";function qc(e,n,t,a,r,i){const s=o.resolveComponent("a-checkbox-group");return o.openBlock(),o.createElementBlock("div",{class:"ecan-checkbox",style:o.normalizeStyle(e.style)},[o.createVNode(s,{options:e.myOption,value:e.myValue,"onUpdate:value":n[0]||(n[0]=l=>e.myValue=l),onChange:e.checkboxChange},null,8,["options","value","onChange"])],4)}const Fi=ge(ue(Hc,[["render",qc]])),$o={...ve,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"},Zo=me($o),zi=["selectChange","refreshData"],Vc=o.defineComponent({name:"EcanSelect",components:{ASelect:ie.Select,ASelectOption:ie.SelectOption},props:{...Zo},setup(e,{expose:n}){const t=pe(e),a=()=>document.getElementById("ProviderConfig")||document.body,r=ze(e),i=o.ref(e.data||[]),s=o.ref(),l=o.computed({get:()=>{var D;const{mode:S}=e;return(D=o.unref(i))!=null&&D.length?s.value:S==="multiple"||S==="tags"||S==="combobox"?[]:""},set:S=>{s.value=S}});o.watch(()=>[e.value,e.mode,e.selectFirstOption,e.valueType,i.value],()=>{const{mode:S,selectFirstOption:D,value:z}=e;S==="multiple"||S==="tags"||S==="combobox"?z?s.value=z.split(","):D&&(s.value=[o.unref(i)[0]]):z?s.value=z:D&&(s.value=o.unref(i)[0])},{immediate:!0});const f=e.dataFieldNames,c=(S,D)=>{const z=f.label,R=f.value;let M;const H=D[z],j=D[R];return H!=null?M=H:j!=null&&(M=j),(M==null?void 0:M.toLowerCase().indexOf(S==null?void 0:S.toLowerCase()))>=0},u=S=>{const{label:D,value:z,options:R}=e.dataFieldNames;if(R&&Array.isArray(S))if(S.some(M=>R in M)){const M={},H=[];S.forEach(j=>{M[j[R]]||(M[j[R]]=[]),M[j[R]].push({[D]:j[D],[z]:j[z]})});for(const j in M)H.push({[D]:j,[R]:M[j]});return H}else return S;else if(!R)return S},x=o.ref(!1),d=async()=>{var S,D;if(e.dataType==="request"){x.value=!0;try{const z=await r();if(i.value=u(((D=(S=z==null?void 0:z.data)==null?void 0:S.data)==null?void 0:D.rows)||[]),e.selectFirstOption){let R=o.unref(i)[0];if(f.options){const M=R[f.options];M&&M.length&&(R=M[0])}s.value=R[f.value]}}catch(z){console.error(z)}finally{x.value=!1}}},{getGlobalModel:h,setGlobalModel:m}=o.inject(we,{getGlobalModel:S=>{},setGlobalModel:(S,D)=>{}}),{setLoadedData:g,loadedData:v}=o.inject(gt,{setLoadedData:(S,D)=>{},loadedData:{}}),_=o.computed(()=>{let S=s.value;if(e.valueType==="label"&&o.unref(s)&&o.unref(i)){const D=f.label,z=f.value;if(e.mode==="multiple")S=o.unref(i).filter(R=>o.unref(s).includes(R[z])).map(R=>R[D]);else{const R=o.unref(i).find(M=>o.unref(s)===M[z]);R&&(S=R[D])}}return S}),b=o.ref([]),p=o.computed(()=>{const S={};if(e.mode!=="multiple"){const D=o.unref(b).find(z=>z.value===o.unref(s));D&&(S.itemCodes=D.item_codes)}return S});m(e.id,{type:e.type,value:_,...o.unref(p)});const k=Ae(e)("selectChange",()=>{const S=e.id,D=h(S);m(S,{...D,...o.unref(p),RECORD:_})}),C=(S=[])=>{if(i.value=u(S),e.selectFirstOption){let D=o.unref(i)[0];if(f.options){const z=D[f.options];z&&z.length&&(D=z[0])}s.value=D[f.value]}},O=it(e),L=async()=>{var S;try{x.value=!0;const D=await O(),{data:z}=(D==null?void 0:D.data)||{},R=f.label,M=f.value;if(z){const H=((S=D==null?void 0:D.data)==null?void 0:S.data)??[];b.value=H;const j=H.map(I=>({[R]:I.label,[M]:I.value})),{id:P}=e,A=h(P);m(P,{...A,...o.unref(p)}),g(P,!0),C(j)}else C([])}catch(D){console.error(D)}finally{x.value=!1}},N=o.computed(()=>{var S,D;return(D=(S=e==null?void 0:e.graphicConfig)==null?void 0:S.controlList)==null?void 0:D.find(z=>z.mode==="cascade")}),B=o.ref(!1);o.watch(v,S=>{!o.unref(B)&&o.unref(N)&&S[o.unref(N).id]&&(B.value=!0,w())},{deep:!0});const w=()=>{switch(e.dataType){case"indicator":{o.unref(N)?o.unref(v)[o.unref(N).id]&&L():L();break}case"request":d();break}};_e(e,{selectChange:k,refreshData:w});const{setRequest:E}=o.inject(Oe,{setRequest:({id:S,sortNum:D,requestFn:z})=>{}});return typeof E=="function"&&E({id:e.id,requestFn:w,sortNum:e.requestSort}),n({refreshData:w}),{style:t,getPopupContainer:a,myValue:s,selectChange:k,options:i,filterOption:c,loading:x,resultValue:l}}}),g1="",m1="";function jc(e,n,t,a,r,i){const s=o.resolveComponent("a-select-option"),l=o.resolveComponent("a-select");return o.openBlock(),o.createElementBlock("div",{class:"ecan-select",style:o.normalizeStyle(e.style)},[o.createVNode(l,{class:"select",value:e.resultValue,"onUpdate:value":n[0]||(n[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:o.normalizeStyle({fontSize:e.optionFontSize})},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.options,(f,c)=>(o.openBlock(),o.createBlock(s,{key:c,value:f.value,label:f.label,style:o.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 Mi=ge(ue(Vc,[["render",jc],["__scopeId","data-v-e59f5cca"]])),Yo={...ve,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},Ko=me(Yo),Pi=["selectChange","refreshData"],Gc={name:"EcanTreeSelect",components:{ATreeSelect:ie.TreeSelect},props:{...Ko},setup(e){const n=pe(e),t=o.ref(e.data),a=(h,m)=>{const g=e.dataFieldNames,v=g.label,_=g.value;let b;const p=m[v],y=m[_];return p!=null?b=p:y!=null&&(b=y),(b==null?void 0:b.toLowerCase().indexOf(h==null?void 0:h.toLowerCase()))>=0},r=o.ref();o.watch(()=>[e.multiple,e.value,e.treeCheckable,e.selectFirstOption],()=>{const{multiple:h,value:m,selectFirstOption:g}=e;h?m?r.value=m.split(","):g&&(r.value=[o.unref(t)[0]]):m?r.value=m:g&&(r.value=o.unref(t)[0])},{immediate:!0});const i=o.ref(!1),s=ze(e),l=async()=>{var h,m;if(e.dataType==="request"){i.value=!0;try{const g=await s();t.value=((m=(h=g==null?void 0:g.data)==null?void 0:h.data)==null?void 0:m.rows)||[];const v=o.unref(t)[0];e.value===""&&v!=null&&(r.value=v[e.dataFieldNames.value])}catch(g){console.error(g)}finally{i.value=!1}}},{getGlobalModel:f,setGlobalModel:c}=o.inject(we,{getGlobalModel:h=>{},setGlobalModel:(h,m)=>{}});c(e.id,{type:e.type,value:r});const x=Ae(e)("selectChange",()=>{const h=e.id,m=f(h);c(h,{...m,RECORD:r})});_e(e,{selectChange:x,refreshData:l});const{setRequest:d}=o.inject(Oe,{setRequest:({id:h,sortNum:m,requestFn:g})=>{}});return d({id:e.id,requestFn:l,sortNum:e.reque}),{style:n,treeData:t,filterTreeNode:a,myValue:r,loading:i,selectChange:x}}},y1="",p1="";function Wc(e,n,t,a,r,i){const s=o.resolveComponent("a-tree-select");return o.openBlock(),o.createElementBlock("div",{class:"ecan-tree-select",style:o.normalizeStyle(a.style)},[o.createVNode(s,{class:"tree-select",value:a.myValue,"onUpdate:value":n[0]||(n[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 Hi=ge(ue(Gc,[["render",Wc],["__scopeId","data-v-37236421"]])),Xo={...ve,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:""},Qo=me(Xo),qi=["checkboxChange","click"],Uc=o.defineComponent({name:"EcanRadio",components:{ARadioGroup:ie.RadioGroup,ARadioButton:ie.RadioButton,ARadio:ie.Radio},props:{...Qo},setup(e,{expose:n}){const t=pe(e),a=o.ref([]),r=o.ref(""),i=p=>{const y=e.value;let k=[];typeof y=="string"&&y!==""?k=k.concat(y.split(",")):Array.isArray(y)&&(k=k.concat(y)),a.value=p,r.value=k[0]||""};o.watch(()=>[e.data,e.value],([p])=>{i(p)},{immediate:!0,deep:!0});const s=ze(e),l=async()=>{var k,C;if(e.dataType!=="request")return;const p=await s(),y=((C=(k=p==null?void 0:p.data)==null?void 0:k.data)==null?void 0:C.rows)||[];i(y)},{getGlobalModel:f,setGlobalModel:c}=o.inject(we,{getGlobalModel:p=>{},setGlobalModel:(p,y)=>{}});c(e.id,{type:e.type,value:r});const u=Ae(e),x=u("checkboxChange",()=>{const p=f(e.id);c(e.id,{...p,RECORD:r})}),d=p=>{r.value=p,u("click",()=>{const y=f(e.id);c(e.id,{...y,RECORD:r})})()};o.watch(r,()=>{x()});const h=it(e),m=async()=>{var p;try{const y=await h(),{data:k}=(y==null?void 0:y.data)||{};if(k){const O=(((p=y==null?void 0:y.data)==null?void 0:p.data)??[]).map(L=>({label:L.label,value:L.value}));i(O)}else i([])}catch(y){console.error(y)}},g=()=>{switch(e.dataType){case"indicator":m();break;case"request":l();break}},{setRequest:v}=o.inject(Oe,{setRequest:({id:p,sortNum:y,requestFn:k})=>{}});typeof v=="function"&&v({id:e.id,requestFn:g,sortNum:e.requestSort});const _=p=>{r.value=p.value},b=o.computed(()=>e.tabFlexDirection==="column"?{display:"flex",height:"30px",lineHeight:"30px"}:{});return n({refreshData:g}),{myOption:a,style:t,myValue:r,radioStyle:b,onClickButton:d,useImagePath:bt,tabChange:_}}}),v1="",S1="",$c=["onClick"];function Zc(e,n,t,a,r,i){const s=o.resolveComponent("a-radio"),l=o.resolveComponent("a-radio-button"),f=o.resolveComponent("a-radio-group");return o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["ecan-radio",e.optionType]),style:o.normalizeStyle(e.style)},[e.tabBackgroundImage&&e.activeTabBackgroundImage?(o.openBlock(),o.createElementBlock("div",{key:0,class:"tabs-header",style:o.normalizeStyle({fontSize:e.tabFontSize,flexDirection:e.tabFlexDirection,alignItems:e.tabTextAlign})},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.myOption,(c,u)=>(o.openBlock(),o.createElementBlock("div",{class:"tab",style:o.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:o.withModifiers(x=>e.tabChange(c),["prevent","stop"])},[o.createElementVNode("div",{class:"tab-inner",style:o.normalizeStyle({borderBottom:!e.activeTabBackgroundImage&&!e.tabBackgroundImage?`1px solid ${e.myValue===c.value?e.activeTabColor:"transparent"}`:""})},o.toDisplayString(c.label),5)],12,$c))),128))],4)):(o.openBlock(),o.createBlock(f,{key:1,value:e.myValue,"onUpdate:value":n[0]||(n[0]=c=>e.myValue=c)},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.myOption,c=>(o.openBlock(),o.createElementBlock(o.Fragment,{key:c.value},[e.optionType==="default"?(o.openBlock(),o.createBlock(s,{key:0,value:c.value,style:o.normalizeStyle(e.radioStyle)},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(c.label),1)]),_:2},1032,["value","style"])):e.optionType==="button"?(o.openBlock(),o.createBlock(l,{key:1,value:c.value,onClick:u=>e.onClickButton(c.value)},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(c.label),1)]),_:2},1032,["value","onClick"])):o.createCommentVNode("",!0)],64))),128))]),_:1},8,["value"]))],6)}const Vi=ge(ue(Uc,[["render",Zc],["__scopeId","data-v-baa84768"]])),Jo={...ve,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"},ea=me(Jo),ji=["click","refreshData","resetRecord"],qt=async e=>{var f;const n=await st.post(e,{},{responseType:"blob"}),{data:t,headers:a}=n,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)},ta={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"},na=me(ta),Gi=["showModal"];function Wi(e){var r,i;const{componentList:n,containerMap:t,combinationMap:a={}}=e;if((r=Object.keys(t))!=null&&r.length||(i=Object.keys(a))!=null&&i.length){for(const x in t){const d=n.find(h=>h.id===x);if(d){hn(d,"parentId")||(d.parentId="",d.sourceLeft=d.left,d.sourceTop=d.top);for(const h in t[x])if(t[x][h])for(const m of t[x][h]){const g=n.find(v=>v.id===m);g&&(g.parentId=x,g.sourceLeft=g.left,g.sourceTop=g.top,g.left=parseFloat(g.left)-parseFloat(d.sourceLeft||d.left)+"px",g.top=parseFloat(g.top)-parseFloat(d.sourceTop||d.top)+"px")}}}const s=Array.from(new Set(n.filter(x=>(!hn(x,"parentId")||x.parentId==="")&&x.combinationId).map(x=>x.combinationId))),l=[];for(const x of s){const d=a[x];if(d!=null&&d.length){const h=n.filter(m=>d.includes(m.id));if(h!=null&&h.length){const m=Kc(h);if(m){l.push({...m,id:x,keyName:x,parentId:"",type:"ecanBorder",borderRadius:"",borderWidth:null,sourceLeft:m.left,sourceTop:m.top});for(const g of h)g&&(g.parentId=x,g.sourceLeft=g.left,g.sourceTop=g.top,g.left=parseFloat(g.left)-parseFloat(m.left)+"px",g.top=parseFloat(g.top)-parseFloat(m.top)+"px")}}}}l!=null&&l.length&&n.unshift(...l);const f=["ecanPie","ecanLine","ecanBar","ecanScatter","ecanComboGraph","ecanCustomGraph","ecanRadar","ecanMap"],c=n.filter(x=>f.includes(x.type)&&!hn(x,"parentId")),u=[];for(const x of c)if(x){const d=x.id+"_vir";u.push({id:d,keyName:x.keyName+"_vir",parentId:"",type:"ecanBorder",borderRadius:"",borderWidth:null,width:x.width,height:x.height,left:x.left,top:x.top,sourceLeft:x.left,sourceTop:x.top}),x.parentId=d,x.sourceLeft=x.left,x.sourceTop=x.top,x.left=0,x.top=0}u!=null&&u.length&&n.unshift(...u);for(const x of n){const d=document.body.clientWidth;if(x.parentId===""&&["ecanBorder","ecanTabs"].includes(x.type))x.sourceWidth=parseFloat(x.width),x.height=(d/(x.sourceWidth/parseFloat(x.height))).toFixed(2)+"px",x.width="100%",x.position="relative",x.top="auto",x.left="auto";else{const h=n.find(m=>m.id===x.parentId);if((h==null?void 0:h.parentId)===""){const m=h.sourceWidth||parseFloat(h.width),g=d/m;x.scale=g,x.top=parseFloat(x.top)*g-parseFloat(x.height)*(1-g)/2+"px",x.left=parseFloat(x.left)*g-parseFloat(x.width)*(1-g)/2+"px"}}x.type==="ecanModal"&&(x.parentId="",x.fullModal=!0)}return Yc(n)}return n}function Yc(e){const t=e.filter(a=>a.parentId==="");if(t!=null&&t.length){const a=Ne.cloneDeep(t).map(r=>({...r,sourceTop:parseFloat(r.sourceTop),sourceLeft:parseFloat(r.sourceLeft)}));for(let r=0;r<a.length-1;r++)for(let i=0;i<a.length-r-1;i++){let s=!1;if((a[i].sourceTop-a[i+1].sourceTop>50||Math.abs(a[i+1].sourceTop-a[i].sourceTop)<=50&&a[i].sourceLeft>a[i+1].sourceLeft)&&(s=!0),s){const l=a[i];a[i]=a[i+1],a[i+1]=l}}for(const r of a){const i=e.findIndex(s=>s.id===r.id);i!==-1&&e.splice(i,1)}return[...a,...e]}return e}function Kc(e){const n=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 n&&t&&a&&r?{left:t.left,top:n.top,width:r.computedLeft-parseFloat(t.left)+"px",height:a.computedTop-parseFloat(n.top)+"px"}:null}const Xc=o.defineComponent({name:"Render",props:{component:{type:Object,default:()=>{}}},setup(e,{emit:n}){n("ready",e.component.id)}});function Qc(e,n,t,a,r,i){return e.component.parentId?(o.openBlock(),o.createBlock(o.Teleport,{key:0,to:"#container_"+e.component.parentId},[(o.openBlock(),o.createBlock(o.resolveDynamicComponent(e.component.type),o.mergeProps({style:{scale:e.component.scale}},e.component),null,16,["style"]))],8,["to"])):(o.openBlock(),o.createBlock(o.resolveDynamicComponent(e.component.type),o.normalizeProps(o.mergeProps({key:1},e.component)),null,16))}const Jc=ge(ue(Xc,[["render",Qc]])),ef=o.defineComponent({name:"EcanModal",components:{AModal:ie.Modal,CloseOutlined:Pl,Render:Jc},props:{...na},setup(e,{emit:n}){const t=o.ref([]),a=o.inject("isMobile",!1),r=o.inject("getContainerMap",()=>{}),i=o.inject("getCombinationMap",()=>{}),{clearInteractiveData:s,interactiveData:l}=o.inject(we,{clearInteractiveData:()=>{},interactiveData:null}),f=()=>document.getElementById("ProviderConfig")||document.body,c=o.computed(()=>{const X=e.position;return{verticalAlign:{default:"",top:"top",center:"middle",bottom:"bottom"}[X]}}),u=e.fullModal?"1920px":e.width,x=e.fullModal?"1080px":e.height,d=e.originalWidth,h=e.originalHeight,m=o.ref("80%"),g=o.ref(0),v=o.ref(),_=o.ref(0),b=o.ref({}),p=pe(e),y=o.ref({}),k=o.ref(!1),C=o.ref();let O;const L=()=>{v.value=parseFloat(u)/parseFloat(d);const X=parseFloat(x)/parseFloat(h),Z=document.body.offsetWidth,J=document.body.offsetHeight;g.value=Z*o.unref(v),_.value=J*X,m.value=`${o.unref(v)*100}%`,b.value={width:`${o.unref(g)}px`,height:`${o.unref(_)}px`},y.value={...o.unref(p),backgroundImage:bt(e.backgroundImage,!0)},a?y.value={...y.value,width:"100%",height:"100%"}:y.value={...y.value,transform:`scale(${o.unref(g)/parseFloat(u)},${o.unref(_)/parseFloat(x)})`,width:u,height:x}},N=Ne.debounce(()=>{L()},100),B=()=>{const X=window.MutationObserver;O=new X(N),O.observe(document.body,{attributes:!0,attributeFilter:["style"],attributeOldValue:!0})},w=()=>{O&&(O.disconnect(),O.takeRecords(),O=null)},E=o.ref(!1),{touchRequest:S}=o.inject(Oe,{touchRequest:()=>{}}),D=o.ref(""),z=()=>{var J;console.log("interactiveData",l);const{title:X}=e,Z=(J=o.unref(l))==null?void 0:J.RECORD;return Z?ke(X,{textData:Z},{useNewline:!1,useSpace:!1}):X},R=()=>{a&&(document.documentElement.style.overflow="hidden"),D.value=z(),E.value=!0},M=()=>{n("close"),a&&(document.documentElement.style.overflow="hidden auto",t.value=[]),E.value=!1},H=()=>{M()},j=()=>{M(),s()},{setModalModel:P,pushUseModalIds:A,popUseModalIds:I}=o.inject(tr,{pushUseModalIds:X=>{},popUseModalIds:()=>{},setModalModel:(X,Z)=>{}}),T=o.computed(()=>{if(a){const X=Ne.cloneDeep(e.componentList),Z=r(),J=i();return Wi({componentList:X,containerMap:Z,combinationMap:J})}else return e.componentList}),F=()=>{const X=e.id;let Z=[];const J=e.componentList;Array.isArray(J)&&(Z=J.map(ae=>ae.id),P(X,[...new Set(Z)]))};o.watch(()=>E.value,async X=>{X?(k.value=!1,A(e.id),F(),await o.nextTick(()=>{L(),window.addEventListener("resize",N),B(),k.value=!0}),S()):(I(),window.removeEventListener("resize",N),w())});const U=o.computed(()=>o.unref(v)>=1),$=o.computed(()=>e.fullModal),ne=o.computed(()=>{let X="ecan-modal";return o.unref(U)&&(X+=" ecan-full-width-modal"),o.unref($)&&(X+=" ecan-full-modal"),X});return _e(e,{showModal:R}),{modalRef:C,containStyle:b,contentStyle:y,getContainer:f,modalStyle:c,modalWith:m,isFullModal:$,style:p,visible:E,showModal:R,onOk:H,onCancel:j,isFullWidth:U,wrapClassName:ne,ready:k,usedComponentList:T,isMobile:a,readyIds:t,hasOwn:hn,onComponentReady:X=>{t.value.push(X)},formatTitle:D}}}),A1="",k1="";function tf(e,n,t,a,r,i){const s=o.resolveComponent("close-outlined"),l=o.resolveComponent("render"),f=o.resolveComponent("a-modal");return o.openBlock(),o.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:o.normalizeStyle(e.modalStyle),closable:!1,onOk:e.onOk,onCancel:e.onCancel,ref:"modalRef",id:"container_"+e.id},{default:o.withCtx(()=>[o.createElementVNode("div",{class:"contain",ref:"containRef",style:o.normalizeStyle(e.containStyle)},[e.ready?(o.openBlock(),o.createElementBlock("div",{key:0,class:"content",style:o.normalizeStyle(e.contentStyle)},[o.createElementVNode("div",{class:"header-bar",style:o.normalizeStyle({backgroundColor:e.backgroundColor,padding:"20px 30px",height:e.isMobile?"62px":""})},[e.formatTitle?(o.openBlock(),o.createElementBlock("div",{key:0,class:"ant-modal-title",style:o.normalizeStyle({fontSize:e.titleFontSize,color:e.titleColor})},o.toDisplayString(e.formatTitle),5)):o.createCommentVNode("",!0),o.createVNode(s,{class:"close-icon",style:o.normalizeStyle({color:e.closeBtnColor}),onClick:e.onCancel},null,8,["style","onClick"])],4),e.usedComponentList.length?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(e.isMobile?"mobile-wrap":"")},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.usedComponentList,(c,u)=>(o.openBlock(),o.createElementBlock(o.Fragment,{key:c.id+u},[e.isMobile?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[e.hasOwn(c,"parentId")&&(e.readyIds.includes(c.parentId)||c.parentId==="")?(o.openBlock(),o.createBlock(l,{key:0,component:c,onReady:e.onComponentReady},null,8,["component","onReady"])):o.createCommentVNode("",!0)],64)):(o.openBlock(),o.createBlock(o.resolveDynamicComponent(c.type),o.normalizeProps(o.mergeProps({key:1},c)),null,16))],64))),128))],2)):o.renderSlot(e.$slots,"default",{key:1},void 0,!0)],4)):o.createCommentVNode("",!0)],4)]),_:3},8,["getContainer","wrapClassName","visible","width","destroyOnClose","style","onOk","onCancel","id"])}const vt=ge(ue(ef,[["render",tf],["__scopeId","data-v-4d60efbd"]]));Ge.use([At.CanvasRenderer,ct.PieChart,be.TitleComponent,be.ToolboxComponent,be.TooltipComponent,be.LegendComponent]);const nf=o.defineComponent({name:"EcanPie",props:{...ea},components:{Spin:_t,Echarts:ut,EcanModal:vt},setup(e,{expose:n}){const t=o.ref(!1),a=pe(e),r=o.ref([]),i=o.ref(),s=o.ref({}),l=o.computed(()=>{let{data:w=[]}=o.unref(r)[0]||{};if(Array.isArray(e.colors)){const E=e.isUseLabelColors,S=e.colors;w=w.map((D,z)=>({label:E?{color:S[z]}:{},...D}))}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(){qt(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 E;t.value=!0,(E=i.value)==null||E.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(){ie.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:E=>{const{marker:S,seriesName:D,name:z,value:R,percent:M,data:H}=E||{};return ke(e.tooltipFormatter,{textData:{marker:S,name:z,value:R,percent:M,a:D,b:z,c:R,d:M,...H}},{useNewline:!0,useSpace:!0})},textStyle:{color:e.tooltipTextStyleColor},position:e.tooltipPosition||void 0},legend:o.unref(s),color:e.colors,series:[{data:w,type:"pie",radius:[e.innerRadius,e.outerRadius],center:[e.centerLeft,e.centerTop],roseType:e.roseType,avoidLabelOverlap:!1,minAngle:e.minAngle,label:{show:e.labelPosition!=="center"&&e.labelShow,color:e.labelColor,fontSize:t.value?at:e.labelFontSize,position:e.labelPosition,formatter:nc(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=()=>{s.value={show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,align:"left",textStyle:{color:e.legendTextStyleColor,fontSize:t.value?at:e.legendFontSize},itemHeight:e.legendItemHeight,itemWidth:e.legendItemWidth,itemGap:e.legendItemGap,formatter:w=>{const{data:E}=r.value[0]||{};let S;if(E){const D=E.find(z=>z.name===w);D&&(S=D.value)}return ke(e.legendFormatter,{textData:{name:w,value:S}},{useNewline:!1,useSpace:!1})}}},c=()=>{t.value=!1},{getGlobalModel:u,setGlobalModel:x}=o.inject(we,{getGlobalModel:w=>{},setGlobalModel:(w,E)=>{}}),{pageMode:d}=o.inject(Fe,{pageMode:"normal"}),h=(w=[],E)=>{const{dataset:S}=Dt(w,E);r.value=S},m=(w=[],E)=>{const S=Dt(w,E);r.value=S.dataset};o.watch(()=>e.data,w=>{(e.dataType==="static"||o.unref(d)==="design")&&h(w)},{immediate:!0,deep:!0}),o.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 g=o.ref(!1),v=ze(e),_=async()=>{var w,E;if(e.dataType==="request")try{g.value=!0;const S=await v();h((E=(w=S==null?void 0:S.data)==null?void 0:w.data)==null?void 0:E.rows,e.valueTypeDataFieldNames)}catch(S){console.error(S)}finally{g.value=!1}},p=Ae(e)("click",w=>{const E=u(e.id);x(e.id,{...E,RECORD:w==null?void 0:w.data})}),y=it(e),k=async()=>{var w;try{g.value=!0;const E=await y(),{data:S}=(E==null?void 0:E.data)||{};if(S){const{columns:D=[],rows:z=[]}=((w=E==null?void 0:E.data)==null?void 0:w.data)??{};let R=[];if(D.length>0){const M=D[0],H=D[1];R=z.map(j=>({name:j[M],value:isNaN(j[H])?0:j[H]||0}))}m(R)}}catch(E){console.error(E)}finally{g.value=!1}},{loadedData:C}=o.inject(gt,{loadedData:{}}),O=o.ref(!1);o.watch(C,w=>{if(e.dataType==="indicator"){const E=Zt(e.graphicConfig);E!=null&&E.length&&(!o.unref(O)&&Qe(e.graphicConfig,w)?(O.value=!0,L()):Qe(e.graphicConfig,w)||(O.value=!1))}},{deep:!0});const L=()=>{switch(e.dataType){case"indicator":Qe(e.graphicConfig,o.unref(C))&&k();break;case"request":_();break}};_e(e,{resetRecord:()=>{const w=e.id,E=u(w);x(w,{...E,RECORD:""})},refreshData:L,click:p}),n({refreshData:L});const{setRequest:B}=o.inject(Oe,{setRequest:w=>{}});return typeof B=="function"&&B({id:e.id,requestFn:L,sortNum:e.requestSort}),{option:l,style:a,click:p,onClose:c,loading:g,ecanModal:i}}}),B1="";function of(e,n,t,a,r,i){const s=o.resolveComponent("echarts"),l=o.resolveComponent("spin"),f=o.resolveComponent("ecan-modal");return o.openBlock(),o.createElementBlock("div",{style:o.normalizeStyle(e.style)},[o.createVNode(l,{spinning:e.loading},{default:o.withCtx(()=>[o.createVNode(s,{option:e.option,autoresize:"",onClick:e.click},null,8,["option","onClick"])]),_:1},8,["spinning"]),o.createVNode(f,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:e.onClose},{default:o.withCtx(()=>[o.createVNode(l,{class:"spin-wrap",spinning:e.loading},{default:o.withCtx(()=>[o.createVNode(s,{option:e.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"])],4)}const Ui=ge(ue(nf,[["render",of]])),oa={...ve,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:""},aa=me(oa),$i=["click","refreshData","resetRecord"];Ge.use([At.CanvasRenderer,ct.LineChart,be.ToolboxComponent,be.TitleComponent,be.LegendComponent]);const af=o.defineComponent({name:"EcanLine",props:{...aa},components:{Spin:_t,Echarts:ut,EcanModal:vt},setup(e,{expose:n}){const t=o.ref(),a=o.ref(!1),r=pe(e),i=o.ref([]),s=o.ref([]),l=o.ref(),f=o.computed(()=>a.value?at:12),c=o.ref({});let u;const x=o.ref([]),d=o.computed(()=>{const D=e.xAxisLabelFormatter,z=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(){qt(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=l.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(){ie.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:R=>{var P;const M=R.length;let H="",j=e.tooltipFormatter;u=(P=R[0])==null?void 0:P.data,j===""&&(j="{marker} {a} {c}");for(let A=0;A<M;A++){const{marker:I,seriesName:T,name:F,value:U,data:$}=R[A]||{};if(A===0){let ne=F;typeof F=="string"&&F[0]==="0"&&!isNaN(+F)&&(ne=(+F).toString()),H+=`${Je(D,ne)}<br/>`}H+=ke(j,{textData:{marker:I,name:F,value:U,a:T,b:F,c:U||0,...$}},{useNewline:!0,useSpace:!0}),H+="<br/>"}return H},position:e.tooltipPosition||void 0},xAxis:{type:"category",boundaryGap:e.isBoundaryGap,data:o.unref(s).map(R=>{let M={};return R&&typeof R=="object"?M={...R}:M={value:R},M}),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(R){return typeof R=="string"&&R[0]==="0"&&!isNaN(+R)&&(R=(+R).toString()),Je(D,R)}},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(R){return Je(z,R)}},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?at:e.legendFontSize},itemHeight:e.legendItemHeight,itemWidth:e.legendItemWidth,itemGap:e.legendItemGap,data:o.unref(x).map(R=>({name:R.name,icon:e.legendType}))},series:o.unref(i)}}),h=()=>{a.value=!1},{getGlobalModel:m,setGlobalModel:g}=o.inject(we,{getGlobalModel:D=>{},setGlobalModel:(D,z)=>{}}),{pageMode:v}=o.inject(Fe,{pageMode:"normal"}),_=(D=[],z=!1)=>{let R;if(e.dataFieldConfigType==="key"){const P=z?e.keyTypeDataFieldNames:null;R=pt(D,P)}else if(e.dataFieldConfigType==="value"){const P=z?e.valueTypeDataFieldNames:null;R=Dt(D,P)}s.value=R.dimensions,x.value=R.dataset;const M=R.dataset,H=[],j=M.length;for(let P=0;P<j;P++){const A={};e.shadowColor&&(A.shadowColor=e.shadowColor,A.shadowBlur=e.shadowBlur,A.shadowOffsetY=e.shadowOffsetY,A.shadowOffsetX=e.shadowOffsetX),H.push({type:"line",...M[P],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[P]},{offset:1,color:e.areaGradientColor||"transparent"}],global:!1}:e.colors[P],opacity:e.areaStyleOpacity},lineStyle:{width:e.lineStyleWidth,...A}})}i.value=H},b=(D=[],z,R=!1)=>{const H=pt(D,R?z:null,!0);s.value=H.dimensions,x.value=H.dataset;const j=H.dataset,P=[],A=j.length;for(let I=0;I<A;I++){const T={};e.shadowColor&&(T.shadowColor=e.shadowColor,T.shadowBlur=e.shadowBlur,T.shadowOffsetY=e.shadowOffsetY,T.shadowOffsetX=e.shadowOffsetX),P.push({type:"line",...j[I],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[I]},{offset:1,color:e.areaGradientColor||"transparent"}],global:!1}:e.colors[I],opacity:e.areaStyleOpacity},lineStyle:{width:e.lineStyleWidth,...T}})}i.value=P};o.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],([D])=>{(e.dataType==="static"||o.unref(v)==="design")&&_(D)},{immediate:!0,deep:!0});const p=o.ref(!1),y=ze(e),k=async()=>{var D,z;if(e.dataType==="request")try{p.value=!0;const R=await y();_((z=(D=R==null?void 0:R.data)==null?void 0:D.data)==null?void 0:z.rows,!0)}catch(R){console.error(R)}finally{p.value=!1}},O=Ae(e)("click",D=>{const z=m(e.id);g(e.id,{...z,RECORD:e.tooltipShow?u:D.data})}),L=D=>{t.value.chart.containPixel("grid",[D.offsetX,D.offsetY])&&O()};e.tooltipShow?c.value["zr:click"]=L:c.value.click=O;const N=it(e),B=async()=>{var D;try{p.value=!0;const z=await N(),{columns:R=[],rows:M=[]}=((D=z==null?void 0:z.data)==null?void 0:D.data)??{};let H;R.length>0&&(H={name:R[0],types:R.slice(1).map(j=>({label:j,value:j}))}),b(M,H,!0)}catch(z){console.error(z)}finally{p.value=!1}},w=()=>{switch(e.dataType){case"indicator":B();break;case"request":k();break}};_e(e,{refreshData:w,resetRecord:()=>{const D=e.id,z=m(D);g(D,{...z,RECORD:""})},click:O});const{setRequest:S}=o.inject(Oe,{setRequest:D=>{}});return typeof S=="function"&&S({id:e.id,requestFn:w,sortNum:e.requestSort}),n({refreshData:w}),{option:d,style:r,click:O,loading:p,onClose:h,ecanModal:l,eventObj:c,echartRef:t}}}),_1="";function rf(e,n,t,a,r,i){const s=o.resolveComponent("echarts"),l=o.resolveComponent("spin"),f=o.resolveComponent("ecan-modal");return o.openBlock(),o.createElementBlock("div",{style:o.normalizeStyle(e.style)},[o.createVNode(l,{spinning:e.loading},{default:o.withCtx(()=>[o.createVNode(s,o.mergeProps({ref:"echartRef",option:e.option,autoresize:""},o.toHandlers(e.eventObj)),null,16,["option"])]),_:1},8,["spinning"]),o.createVNode(f,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:e.onClose},{default:o.withCtx(()=>[o.createVNode(l,{class:"spin-wrap",spinning:e.loading},{default:o.withCtx(()=>[o.createVNode(s,{option:e.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"])],4)}const Zi=ge(ue(af,[["render",rf]])),ra={...ve,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:""},ia=me(ra),Yi=["refreshData","click","resetRecord"];Ge.use([At.CanvasRenderer,ct.BarChart,be.TitleComponent,be.LegendComponent,be.DatasetComponent,be.ToolboxComponent]);const lf=o.defineComponent({name:"EcanBar",props:{...ia},components:{Spin:_t,Echarts:ut,EcanModal:vt,AModal:ie.Modal},setup(e,{expose:n}){const t=o.ref(),a=o.ref(!1),r=o.ref(!1),i=o.ref(null),s=o.ref([]),l=pe(e),f=o.ref([]),c=o.ref(),u=o.computed(()=>a.value?at:12),x=o.computed(()=>{const{gradientShow:P,gradientColors:A,gradientOffset:I,barBorderRadius:T}=e,F=o.unref(f),U=F.length,$=[];for(let ne=0;ne<U;ne++){const Y={...F[ne],type:"bar",barWidth:e.barWidth,showBackground:e.showBarBackground};if(e.isStack&&(Y.stack="stack"),Y.label={show:e.labelShow,fontSize:e.labelFontSize,position:e.labelPosition,color:e.labelColor,width:e.labelWidth,overflow:e.labelOverflow,formatter:X=>{let Z="",J=e.labelFormatter;J===""&&(J="{c}");const{seriesName:ae,name:he,value:fe,data:Ie}=X||{};return Z+=ke(J,{textData:{name:he,value:fe,a:ae,b:he,c:fe||0,...Ie}},{useNewline:!0,useSpace:!0}),Z}},Y.itemStyle={},P&&(Y.itemStyle={color:{x:e.isUseHorizontalAxis?1:0,y:0,x2:0,y2:e.isUseHorizontalAxis?0:1,colorStops:[{offset:0,color:e.colors[ne]},{offset:I,color:A[ne]},{offset:1,color:A[ne]}]}}),T){const X=T.split(",");if(X!=null&&X.length){const Z=[];for(const J of X){const ae=parseFloat(J);isNaN(ae)||Z.push(ae)}Y.itemStyle.borderRadius=Z}}$.push(Y)}return $}),d=o.ref([]),h=o.ref(!1),m=o.computed(()=>{const P=e.yAxisLabelFormatter,A=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 I=t.value.chart.getOption(),{xAxis:T}=I||{};T&&T.length&&(s.value=T[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(){qt(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=c.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(){ie.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:I=>{const T=I.length;let F="",U=e.tooltipFormatter;U===""&&(U="{marker} {a} {c}");for(let $=0;$<T;$++){const{marker:ne,seriesName:Y,name:X,value:Z,data:J}=I[$]||{};if($===0){let ae=X;typeof X=="string"&&X[0]==="0"&&!isNaN(+X)&&(ae=(+X).toString()),F+=`${Je(A,ae)}<br/>`}F+=ke(U,{textData:{marker:ne,name:X,value:Z,a:Y,b:X,c:Z||0,...J}},{useNewline:!0,useSpace:!0}),F+="<br/>"}return F},textStyle:{color:e.tooltipTextStyleColor,fontSize:u.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?at:e.legendFontSize},itemHeight:e.legendItemHeight,itemWidth:e.legendItemWidth,itemGap:e.legendItemGap,data:o.unref(f).map((I,T)=>({name:I.name,itemStyle:{color:e.colors[T]},icon:e.legendType}))},xAxis:{type:e.isUseHorizontalAxis?"value":"category",data:e.isUseHorizontalAxis?null:o.unref(p),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(I){return typeof I=="string"&&I[0]==="0"&&!isNaN(+I)&&(I=(+I).toString()),Je(A,I)}},axisLine:{show:e.xAxisLineShow,lineStyle:{color:e.xAxisLineStyleColor}},axisTick:{show:e.xAxisTickShow}},yAxis:{type:e.isUseHorizontalAxis?"category":"value",data:e.isUseHorizontalAxis?o.unref(d):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(I){return Je(P,I)}},axisLine:{show:e.yAxisLineAlwaysDisplay,lineStyle:{color:e.yAxisLineStyleColor}}},series:o.unref(x)}}),{pageMode:g}=o.inject(Fe,{pageMode:"normal"}),v=()=>{a.value=!1},_=(P=[],A=!1)=>{let I={};if(e.dataFieldConfigType==="key"){const T=A?e.keyTypeDataFieldNames:null;I=pt(P,T)}else if(e.dataFieldConfigType==="value"){const T=A?e.valueTypeDataFieldNames:null;I=Dt(P,T)}f.value=I.dataset,d.value=I.dimensions},b=(P=[],A,I=!1)=>{const F=pt(P,I?A:null,!0);f.value=F.dataset,d.value=F.dimensions},p=o.computed(()=>o.unref(d).map(P=>{let A={};return P&&typeof P=="object"?A={...P}:A={value:P},A}));o.watch(()=>[e.data,e.labelFormatter],([P])=>{(e.dataType==="static"||o.unref(g)==="design")&&_(P)},{immediate:!0,deep:!0});const y=ze(e),k=async()=>{var P,A;try{h.value=!0;const I=await y();_((A=(P=I==null?void 0:I.data)==null?void 0:P.data)==null?void 0:A.rows,!0)}catch(I){console.error(I)}finally{h.value=!1}},C=it(e),O=async()=>{var P;try{h.value=!0;const A=await C(),{columns:I=[],rows:T=[]}=((P=A==null?void 0:A.data)==null?void 0:P.data)??{};let F;I.length>0&&(F={name:I[0],types:I.slice(1).map(U=>({label:U,value:U}))}),b(T,F,!0)}catch(A){console.error(A)}finally{h.value=!1}},{loadedData:L}=o.inject(gt,{loadedData:{}}),N=o.ref(!1);o.watch(L,P=>{if(e.dataType==="indicator"){const A=Zt(e.graphicConfig);A!=null&&A.length&&(!o.unref(N)&&Qe(e.graphicConfig,P)?(N.value=!0,B()):Qe(e.graphicConfig,P)||(N.value=!1))}},{deep:!0});const B=()=>{switch(e.dataType){case"indicator":Qe(e.graphicConfig,o.unref(L))&&O();break;case"request":k();break}},w=(P,A)=>!!o.unref(s)[A.value].value.includes(P),E=async()=>{r.value=!1;const P=t.value.chart.getOption();for(let A=0;A<7;A++)await S(P,A)},S=(P,A)=>new Promise(I=>{setTimeout(()=>{const{series:T,color:F,xAxis:U}=P,$=t.value.chart,{splitArea:ne={}}=U[0]||{};T.forEach((Y,X)=>{const Z=Y.data;let J="";A%2?J=F[X]+"a8":J=F[X],Z[i.value].itemStyle={color:J}}),A%2?(ne.show=!0,ne.areaStyle.color=o.unref(s).map((Y,X)=>X===i.value?"#ff003b26":"")):ne.show=!1,$.setOption({series:T,xAxis:U}),I()},200)});n({refreshData:B});const D=Ae(e),{getGlobalModel:z,setGlobalModel:R}=o.inject(we,{getGlobalModel:P=>{},setGlobalModel:(P,A)=>{}}),M=D("click",P=>{const A=z(e.id);R(e.id,{...A,RECORD:P.data})}),{setRequest:H}=o.inject(Oe,{setRequest:P=>{}});return typeof H=="function"&&H({id:e.id,requestFn:B,sortNum:e.requestSort}),_e(e,{refreshData:B,click:M,resetRecord:()=>{const P=e.id,A=z(P);R(P,{...A,RECORD:""})}}),{option:m,style:l,refreshData:B,click:M,loading:h,onClose:v,ecanModal:c,echartRef:t,handleLocationOk:E,onFilterOption:w,locationVisible:r,locationValue:i,locationNames:s}}}),I1="",R1="",sf=e=>(o.pushScopeId("data-v-c6009d35"),e=e(),o.popScopeId(),e),cf={class:"location-wrap"},ff=sf(()=>o.createElementVNode("div",{class:"location-text"},"选择分类:",-1));function df(e,n,t,a,r,i){const s=o.resolveComponent("echarts"),l=o.resolveComponent("spin"),f=o.resolveComponent("ecan-modal"),c=o.resolveComponent("a-select-option"),u=o.resolveComponent("a-select"),x=o.resolveComponent("a-modal");return o.openBlock(),o.createElementBlock("div",{class:"ecan-bar",style:o.normalizeStyle(e.style)},[o.createVNode(l,{spinning:e.loading},{default:o.withCtx(()=>[o.createVNode(s,{ref:"echartRef",option:e.option,"update-options":{notMerge:!0},autoresize:"",onClick:e.click},null,8,["option","onClick"])]),_:1},8,["spinning"]),o.createVNode(f,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:e.onClose},{default:o.withCtx(()=>[o.createVNode(l,{class:"spin-wrap",spinning:e.loading},{default:o.withCtx(()=>[o.createVNode(s,{option:e.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"]),o.createVNode(x,{visible:e.locationVisible,"onUpdate:visible":n[1]||(n[1]=d=>e.locationVisible=d),title:"快速定位",onOk:e.handleLocationOk},{default:o.withCtx(()=>[o.createElementVNode("div",cf,[ff,o.createVNode(u,{value:e.locationValue,"onUpdate:value":n[0]||(n[0]=d=>e.locationValue=d),style:{width:"100%"},placeholder:"请选择","show-search":"","filter-option":e.onFilterOption},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.locationNames,(d,h)=>(o.openBlock(),o.createBlock(c,{key:h,value:h},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(d.value),1)]),_:2},1032,["value"]))),128))]),_:1},8,["value","filter-option"])])]),_:1},8,["visible","onOk"])],4)}const Ki=ge(ue(lf,[["render",df],["__scopeId","data-v-c6009d35"]])),la={...ve,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:""},sa=me(la),Xi=["click","refreshData","resetRecord"];Ge.use([At.CanvasRenderer,ct.ScatterChart,be.ToolboxComponent,be.TitleComponent,be.TooltipComponent,be.LegendComponent]);const uf=o.defineComponent({name:"EcanScatter",props:{...sa},components:{Spin:_t,Echarts:ut,EcanModal:vt},setup(e){const n=o.ref(!1),t=pe(e),a=o.ref([]),r=o.ref(),i=o.computed(()=>n.value?at:12),s=o.computed(()=>{const y=e.xAxisLabelFormatter,k=e.yAxisLabelFormatter;return{toolbox:{show:e.toolboxShow,left:e.toolboxLeft,top:e.toolboxTop,itemSize:e.toolboxItemSize,itemGap:e.toolboxItemGap,feature:{myDownload:{show:e.toolboxDownloadShow,title:"数据下载",icon:"path://M502.010485 765.939573c3.773953 3.719718 8.686846 5.573949 13.596669 5.573949 0.075725 0 0.151449-0.010233 0.227174-0.011256 0.329505 0.016373 0.654916 0.050142 0.988514 0.050142 0.706081 0 1.400906-0.042979 2.087545-0.116657 4.352121-0.366344 8.607028-2.190899 11.961426-5.496178l335.053985-330.166675c7.619538-7.509021 7.709589-19.773346 0.200568-27.393907s-19.774369-7.711636-27.39493-0.201591L536.193005 706.304358 536.193005 50.019207c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 657.032164-306.881342-302.44838c-7.618515-7.509021-19.883863-7.419993-27.393907 0.199545-7.509021 7.619538-7.419993 19.884886 0.199545 27.393907L502.010485 765.939573z, M867.170139 711.020776c-10.698666 0-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 13.054317-10.620895 23.675212-23.676236 23.675212L205.182103 919.486668c-13.054317 0-23.676236-10.620895-23.676236-23.675212L181.505867 730.391962c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 34.416857 28.000728 62.416562 62.417585 62.416562l618.941638 0c34.417881 0 62.417585-27.999704 62.417585-62.416562L886.540302 730.391962C886.541325 719.693296 877.868805 711.020776 867.170139 711.020776z",onclick(){qt(e.toolboxDownloadUrl)}},myDataZoom:{show:n.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 C;n.value=!0,(C=r.value)==null||C.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(){ie.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(C){return typeof C=="string"&&C[0]==="0"&&!isNaN(+C)&&(C=(+C).toString()),Je(y,C)}},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(C){return Je(k,C)}},axisLine:{show:e.yAxisLineAlwaysDisplay,lineStyle:{color:e.yAxisLineStyleColor}}},tooltip:{show:e.tooltipShow,trigger:e.tooltipTrigger,formatter(C){var E;const{marker:O,seriesName:L}=C,N=((E=C==null?void 0:C.data)==null?void 0:E.record)??{},{name:B,value:w}=N;return ke(e.tooltipFormatter,{textData:{marker:O,seriesName:L,a:L,b:B,c:w,...N}})},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:o.unref(a),type:"scatter",symbolSize:e.symbolSize}]}}),{getGlobalModel:l,setGlobalModel:f}=o.inject(we,{getGlobalModel:y=>{},setGlobalModel:(y,k)=>{}}),{pageMode:c}=o.inject(Fe,{pageMode:"normal"}),u=(y=[],k)=>{const{name:C="name",value:O="value"}=k||{};a.value=y.map(L=>({value:[L[C],L[O]],record:L}))};o.watch(()=>e.data,y=>{(e.dataType==="static"||o.unref(c)==="design")&&u(y)},{immediate:!0,deep:!0});const x=o.ref(!1),d=ze(e),h=async()=>{var y,k;if(e.dataType==="request"){x.value=!0;try{const C=await d();u((k=(y=C==null?void 0:C.data)==null?void 0:y.data)==null?void 0:k.rows,e.dataFieldNames)}catch(C){console.error(C)}finally{x.value=!1}}},m=()=>{n.value=!1},v=Ae(e)("click",y=>{const k=e.id,C=l(k);f(k,{...C,RECORD:y==null?void 0:y.data})});_e(e,{refreshData:()=>{h()},click:v,resetRecord:()=>{const y=e.id,k=l(y);f(y,{...k,RECORD:""})}});const{setRequest:p}=o.inject(Oe,{setRequest:y=>{}});return typeof p=="function"&&p({id:e.id,requestFn:h,sortNum:e.requestSort}),{option:s,style:t,click:v,loading:x,onClose:m,ecanModal:r}}}),L1="";function hf(e,n,t,a,r,i){const s=o.resolveComponent("echarts"),l=o.resolveComponent("spin"),f=o.resolveComponent("ecan-modal");return o.openBlock(),o.createElementBlock("div",{style:o.normalizeStyle(e.style)},[o.createVNode(l,{spinning:e.loading},{default:o.withCtx(()=>[o.createVNode(s,{option:e.option,autoresize:"",onClick:e.click},null,8,["option","onClick"])]),_:1},8,["spinning"]),o.createVNode(f,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:e.onClose},{default:o.withCtx(()=>[o.createVNode(l,{class:"spin-wrap",spinning:e.loading},{default:o.withCtx(()=>[o.createVNode(s,{option:e.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"])],4)}const Qi=ge(ue(uf,[["render",hf]])),ca={...ve,id:"",name:"自定义图表",keyName:"自定义图表",type:"ecanCustomGraph",width:"400px",height:"400px",option:{},optionCode:"",graphicType:"ecanCustomGraph"},fa=me(ca),gf=o.defineComponent({name:"EcanCustomGraph",props:{...fa},components:{Echarts:ut},setup(e){const n=pe(e),t=o.ref();return o.watch(()=>e.optionCode,a=>{try{const r=eval;t.value=r(a)}catch(r){console.error(r)}},{immediate:!0}),{style:n,myOption:t,echarts:I0}}});function mf(e,n,t,a,r,i){const s=o.resolveComponent("echarts");return o.openBlock(),o.createElementBlock("div",{style:o.normalizeStyle(e.style)},[o.createVNode(s,{option:e.myOption,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])],4)}const Ji=ge(ue(gf,[["render",mf]])),da={...ve,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:""},ua=me(da),e0=["refreshData","click","resetRecord"];Ge.use([At.CanvasRenderer,ct.BarChart,ct.LineChart,be.TitleComponent,be.LegendComponent,be.DatasetComponent,be.ToolboxComponent]);const xf=o.defineComponent({name:"EcanComboGraph",props:{...ua},components:{Spin:_t,Echarts:ut,EcanModal:vt,AModal:ie.Modal},setup(e,{expose:n}){const t=o.ref(),a=o.ref(!1),r=o.ref(!1),i=o.ref(null),s=o.ref([]),l=pe(e),f=o.ref([]),c=o.ref([]),u=o.ref(),x=o.ref([]),d=o.computed(()=>a.value?at:12),h=o.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 A=t.value.chart.getOption(),{xAxis:I}=A||{};I&&I.length&&(s.value=I[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(){qt(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 A;a.value=!0,(A=u.value)==null||A.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(){ie.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?at:e.legendFontSize},itemHeight:e.legendItemHeight,itemWidth:e.legendItemWidth,itemGap:e.legendItemGap,data:o.unref(x).map((A,I)=>({name:A.name,itemStyle:{color:e.colors[I]},icon:e.legendType}))},tooltip:{trigger:"axis",show:e.tooltipShow,formatter:A=>{const I=A.length;let T="",F=e.tooltipFormatter;F===""&&(F="{marker} {a} {c}");const U=e.seriesTypes;for(let $=0;$<I;$++){const ne=U[$],{tooltipFormatter:Y}=ne||{},{marker:X,seriesName:Z,name:J,value:ae,data:he}=A[$]||{};if($===0){let fe=J;typeof J=="string"&&J[0]==="0"&&!isNaN(+J)&&(fe=(+J).toString()),T+=`${Je(e.xAxisLabelFormatter,fe)}<br/>`}T+=ke(Y||F,{textData:{marker:X,name:J,value:ae,seriesName:Z,a:Z,b:J,c:ae||0,...he}},{useNewline:!0,useSpace:!0}),T+="<br/>"}return T},textStyle:{color:e.tooltipTextStyleColor,fontSize:d.value},position:e.tooltipPosition||void 0},xAxis:{minInterval:e.xAxisMinInterval,type:"category",data:o.unref(c).map(A=>{let I={};return A&&typeof A=="object"?I={...A}:I={value:A},I}),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(A){return typeof A=="string"&&A[0]==="0"&&!isNaN(+A)&&(A=(+A).toString()),Je(e.xAxisLabelFormatter,A)}},axisLine:{show:e.xAxisLineShow,lineStyle:{color:e.xAxisLineStyleColor}},axisTick:{show:e.xAxisTickShow}},yAxis:o.unref(p),series:o.unref(f)})),{pageMode:m}=o.inject(Fe,{pageMode:"normal"}),g=()=>{a.value=!1},v=(A=[],I=!1)=>{let T;if(e.dataFieldConfigType==="key"){const U=I?e.keyTypeDataFieldNames:null;T=pt(A,U)}else if(e.dataFieldConfigType==="value"){const U=I?e.valueTypeDataFieldNames:null;T=Dt(A,U)}c.value=T.dimensions;const F=T.dataset;x.value=T.dataset,f.value=b(F)},_=(A=[],I,T=!1)=>{const U=pt(A,T?I:null,!0);c.value=U.dimensions;const $=U.dataset;x.value=U.dataset,f.value=b($)};function b(A){const I=[],T=A.length,F=e.seriesTypes;for(let U=0;U<T;U++){const $=F[U],{type:ne,axisIndex:Y}=$||{};let X={type:ne,yAxisIndex:Y,...A[U]};if(ne==="line"){const Z={};e.shadowColor&&(Z.shadowColor=e.shadowColor,Z.shadowBlur=e.shadowBlur,Z.shadowOffsetY=e.shadowOffsetY,Z.shadowOffsetX=e.shadowOffsetX),X={...X,symbolSize:e.symbolSize,smooth:e.smooth,itemStyle:{color:e.colors[U]},areaStyle:{color:e.areaGradientShow?{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:e.colors[U]},{offset:1,color:e.areaGradientColor||"transparent"}],global:!1}:e.colors[U],opacity:e.areaStyleOpacity},lineStyle:{width:e.lineStyleWidth,...Z}}}if(ne==="bar"){const{gradientShow:Z,gradientColors:J,gradientOffset:ae}=e,he={};if(e.barBorderRadius){const fe=e.barBorderRadius.split(",");if(fe!=null&&fe.length){const Ie=[];for(const He of fe){const qe=parseFloat(He);isNaN(qe)||Ie.push(qe)}he.borderRadius=Ie}}Z&&(he.color={x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:e.colors[U]},{offset:ae,color:J[U]},{offset:1,color:J[U]}]}),X={...X,barWidth:e.barWidth,itemStyle:he}}I.push(X)}return I}o.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],([A])=>{(e.dataType==="static"||o.unref(m)==="design")&&v(A)},{immediate:!0,deep:!0});const p=o.computed(()=>{const A=e.yAxis;return A==null?void 0:A.map(I=>({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(T){return Je(I.axisLabelFormatter,T)}},axisLine:{show:e.yAxisLineAlwaysDisplay,lineStyle:{color:e.yAxisLineStyleColor}}}))}),y=o.ref(!1),k=ze(e),C=async()=>{var A,I;if(e.dataType==="request")try{y.value=!0;const T=await k();v((I=(A=T==null?void 0:T.data)==null?void 0:A.data)==null?void 0:I.rows,!0)}catch(T){console.error(T)}finally{y.value=!1}},O=it(e),L=async()=>{var A;try{y.value=!0;const I=await O(),{columns:T=[],rows:F=[]}=((A=I==null?void 0:I.data)==null?void 0:A.data)??{};let U;T.length>0&&(U={name:T[0],types:T.slice(1).map($=>({label:$,value:$}))}),_(F,U,!0)}catch(I){console.error(I)}finally{y.value=!1}},{loadedData:N}=o.inject(gt,{loadedData:{}}),B=o.ref(!1);o.watch(N,A=>{if(e.dataType==="indicator"){const I=Zt(e.graphicConfig);I!=null&&I.length&&(!o.unref(B)&&Qe(e.graphicConfig,A)?(B.value=!0,w()):Qe(e.graphicConfig,A)||(B.value=!1))}},{deep:!0});const w=()=>{switch(e.dataType){case"indicator":Qe(e.graphicConfig,o.unref(N))&&L();break;case"request":C();break}},E=(A,I)=>!!o.unref(s)[I.value].value.includes(A),S=async()=>{r.value=!1;const A=t.value.chart.getOption();for(let I=0;I<7;I++)await D(A,I)},D=(A,I)=>new Promise(T=>{setTimeout(()=>{const{series:F,color:U,xAxis:$}=A,ne=t.value.chart,{splitArea:Y={}}=$[0]||{};F.forEach((X,Z)=>{const J=X.data;let ae="";I%2?ae=U[Z]+"a8":ae=U[Z],J[i.value].itemStyle={color:ae}}),I%2?(Y.show=!0,Y.areaStyle.color=o.unref(s).map((X,Z)=>Z===i.value?"#ff003b26":"")):Y.show=!1,ne.setOption({series:F,xAxis:$}),T()},200)});n({refreshData:w});const z=Ae(e),{getGlobalModel:R,setGlobalModel:M}=o.inject(we,{getGlobalModel:A=>{},setGlobalModel:(A,I)=>{}}),H=z("click",A=>{const I=R(e.id);M(e.id,{...I,RECORD:A==null?void 0:A.data})}),{setRequest:j}=o.inject(Oe,{setRequest:A=>{}});return typeof j=="function"&&j({id:e.id,requestFn:w,sortNum:e.requestSort}),_e(e,{resetRecord:()=>{const A=e.id,I=R(A);M(A,{...I,RECORD:""})},refreshData:w,click:H}),{style:l,option:h,click:H,loading:y,onClose:g,ecanModal:u,echartRef:t,handleLocationOk:S,onFilterOption:E,locationVisible:r,locationValue:i,locationNames:s}}}),z1="",M1="",yf=e=>(o.pushScopeId("data-v-3560d511"),e=e(),o.popScopeId(),e),pf={class:"location-wrap"},bf=yf(()=>o.createElementVNode("div",{class:"location-text"},"选择分类:",-1));function vf(e,n,t,a,r,i){const s=o.resolveComponent("echarts"),l=o.resolveComponent("spin"),f=o.resolveComponent("ecan-modal"),c=o.resolveComponent("a-select-option"),u=o.resolveComponent("a-select"),x=o.resolveComponent("a-modal");return o.openBlock(),o.createElementBlock("div",{style:o.normalizeStyle(e.style)},[o.createVNode(l,{spinning:e.loading},{default:o.withCtx(()=>[o.createVNode(s,{ref:"echartRef",option:e.option,"update-options":{notMerge:!0},autoresize:"",onClick:e.click},null,8,["option","onClick"])]),_:1},8,["spinning"]),o.createVNode(f,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:e.onClose},{default:o.withCtx(()=>[o.createVNode(l,{class:"spin-wrap",spinning:e.loading},{default:o.withCtx(()=>[o.createVNode(s,{option:e.option,"update-options":{notMerge:!0},autoresize:"",onClick:e.click},null,8,["option","onClick"])]),_:1},8,["spinning"])]),_:1},8,["onClose"]),o.createVNode(x,{visible:e.locationVisible,"onUpdate:visible":n[1]||(n[1]=d=>e.locationVisible=d),title:"快速定位",onOk:e.handleLocationOk},{default:o.withCtx(()=>[o.createElementVNode("div",pf,[bf,o.createVNode(u,{value:e.locationValue,"onUpdate:value":n[0]||(n[0]=d=>e.locationValue=d),style:{width:"100%"},placeholder:"请选择","show-search":"","filter-option":e.onFilterOption},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.locationNames,(d,h)=>(o.openBlock(),o.createBlock(c,{key:h,value:h},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(d.value),1)]),_:2},1032,["value"]))),128))]),_:1},8,["value","filter-option"])])]),_:1},8,["visible","onOk"])],4)}const t0=ge(ue(xf,[["render",vf],["__scopeId","data-v-3560d511"]])),ha={...ve,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:""},ga=me(ha),n0=["refreshData","click","resetRecord"];Ge.use([At.CanvasRenderer,ct.RadarChart,be.ToolboxComponent,be.TitleComponent,be.LegendComponent]);const Sf=o.defineComponent({name:"EcanRadar",props:{...ga},components:{Spin:_t,Echarts:ut,EcanModal:vt},setup(e,{expose:n}){const t=o.ref(),a=o.ref(!1),r=pe(e),i=o.ref([]),s=o.ref(),l=o.computed(()=>a.value?at:12),f=o.ref({});let c;const u=o.ref([]),x=o.ref(e.valueTypeDataFieldNames.name),d=o.computed(()=>{const R=o.unref(u),M=R.length,H=[];for(let j=0;j<M;j++){const{name:P,data:A=[]}=R[j],I=[{name:P,value:A.map(F=>F.value)}],T={type:"radar",name:P,data:I,areaStyle:{color:e.colors[j],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}};H.push(T)}return H}),h=o.computed(()=>{var P,A;const R=[],M={},H=o.unref(u),j=H.length;for(let I=0;I<j;I++){const{data:T=[]}=H[I];if(T!=null&&T.length)for(let F=0;F<T.length;F++)M[T[F][x.value]]?M[T[F][x.value]].push(T[F].value):M[T[F][x.value]]=[T[F].value]}if((P=i.value)!=null&&P.length)for(const I of i.value)R.push({name:I,max:(A=M[I])!=null&&A.length?Math.max(...M[I])*1.2:0});return R}),m=o.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(){qt(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=s.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(){ie.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:R=>{var j;let M="",H=e.tooltipFormatter;c=(j=R[0])==null?void 0:j.data,H===""&&(H="{marker} {a} {c}");for(let P=0;P<o.unref(h).length;P++){const A=o.unref(h)[P],{marker:I,seriesName:T,value:F}=R||{};P===0&&T&&(M+=`${T}<br/>`),M+=ke(H,{textData:{marker:I,name:A.name,value:F[P],a:A.name,b:A.name,c:F[P]||0,type:T}},{useNewline:!0,useSpace:!0}),M+="<br/>"}return M},position:e.tooltipPosition||void 0},radar:{indicator:o.unref(h),axisName:{color:e.axisNameColor}},legend:{show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,textStyle:{color:e.legendTextStyleColor,fontSize:a.value?at:e.legendFontSize},itemHeight:e.legendItemHeight,itemWidth:e.legendItemWidth,itemGap:e.legendItemGap,data:o.unref(u).map(R=>({name:R.name,icon:e.legendType}))},series:o.unref(d)})),g=()=>{a.value=!1},{getGlobalModel:v,setGlobalModel:_}=o.inject(we,{getGlobalModel:R=>{},setGlobalModel:(R,M)=>{}}),{pageMode:b}=o.inject(Fe,{pageMode:"normal"}),p=(R=[],M=!1)=>{let H;if(e.dataFieldConfigType==="key"){const j=M?e.keyTypeDataFieldNames:null;H=pt(R,j)}else if(e.dataFieldConfigType==="value"){const j=M?e.valueTypeDataFieldNames:null;H=Dt(R,j)}i.value=H.dimensions,u.value=H.dataset},y=(R=[],M,H=!1)=>{const P=pt(R,H?M:null,!0);i.value=P.dimensions,u.value=P.dataset};o.watch(()=>[e.data,e.areaStyleOpacity,e.legendFontSize],([R])=>{(e.dataType==="static"||o.unref(b)==="design")&&p(R)},{immediate:!0,deep:!0});const k=o.ref(!1),C=ze(e),O=async()=>{var R,M;if(e.dataType==="request")try{k.value=!0;const H=await C();p((M=(R=H==null?void 0:H.data)==null?void 0:R.data)==null?void 0:M.rows,!0)}catch(H){console.error(H)}finally{k.value=!1}},N=Ae(e)("click",R=>{const M=v(e.id);_(e.id,{...M,RECORD:e.tooltipShow?c:R.data})}),B=R=>{t.value.chart.containPixel("grid",[R.offsetX,R.offsetY])&&N()};e.tooltipShow?f.value["zr:click"]=B:f.value.click=N;const w=it(e),E=async()=>{var R;try{k.value=!0;const M=await w(),{columns:H=[],rows:j=[]}=((R=M==null?void 0:M.data)==null?void 0:R.data)??{};let P;H.length>0&&(x.value=H[0],P={name:H[0],types:H.slice(1).map(A=>({label:A,value:A}))}),y(j,P,!0)}catch(M){console.error(M)}finally{k.value=!1}},S=()=>{switch(e.dataType){case"indicator":E();break;case"request":O();break}};_e(e,{refreshData:S,resetRecord:()=>{const R=e.id,M=v(R);_(R,{...M,RECORD:""})},click:N});const{setRequest:z}=o.inject(Oe,{setRequest:R=>{}});return typeof z=="function"&&z({id:e.id,requestFn:S,sortNum:e.requestSort}),n({refreshData:S}),{option:m,style:r,click:N,loading:k,onClose:g,ecanModal:s,eventObj:f,echartRef:t}}}),H1="";function Cf(e,n,t,a,r,i){const s=o.resolveComponent("echarts"),l=o.resolveComponent("spin"),f=o.resolveComponent("ecan-modal");return o.openBlock(),o.createElementBlock("div",{style:o.normalizeStyle(e.style)},[o.createVNode(l,{spinning:e.loading},{default:o.withCtx(()=>[o.createVNode(s,o.mergeProps({ref:"echartRef",option:e.option,autoresize:""},o.toHandlers(e.eventObj)),null,16,["option"])]),_:1},8,["spinning"]),o.createVNode(f,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:e.onClose},{default:o.withCtx(()=>[o.createVNode(l,{class:"spin-wrap",spinning:e.loading},{default:o.withCtx(()=>[o.createVNode(s,{option:e.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"])],4)}const o0=ge(ue(Sf,[["render",Cf]])),wf="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHQAAAAcCAMAAACH42siAAAAZlBMVEUAAABBltJCldJCldFEk89BltJCltFBldI/lMBKndtmb9pCltNDldFAkclAldNBldJBltM/lM5AltNCldJBldJBlNJBltVBldJBlNJBlNI/lNNBldJBldNAldJBldJBldJBldNBldIiNK7WAAAAInRSTlMAM4BNGmaz5gQGbiAPCV1WQxUpOCY9EmxQSC2jdoacqZK8uPo7tAAAAZ9JREFUSMe90NmOwjAMheGka0J3SulCy/L+Lzk4I+HYhckEKs7dr1x8kQVM5YJMZ7SLiXVHOw817Z72cSns3BmziY7EnGRGjDqUpKt4pEZQKruvyaJt85YmBUebKLJVNUlpq6oOQ1tVVRzbqu6DwFb1NUlsVd3SNL0UDM0jqkaSqoeQqjKmahtQNUzuC1AtU1sF9KHmnmrtrSK6idqBWqE6GFVxFdGvqDGoJ01Qt7rfTEV0e7V6qSK6VjNPtTaqoOq8Ugnqr7aeav+rAuqrTh+qZw3o1urAVcFVQD3U6ZnaYY9MLZk6G5WhDaDFI9UeUPyE7gCNsAdAD9gxoBJ7ARRPUVwALXdu8/h/s3xmjtwUu0/M0M/UJzBjAei3TUTdpmKmcpkBmOHKBNTPzJi59zYJys3DO2aL78YcmNkLgrrM9m9TucwzmoBy08xlju+bgL42G4c5OcxqZSLqbwqXOVNTGXMWFD0ak6KN1ZKaojYmbribndW9MXELNQEFFUyiNqQlmEQ1JqpgErUifUUTUVEIupx1wzpjvWfdsh4FQX8ANe4nnpsb9NEAAAAASUVORK5CYII=",Af="data:image/png;base64,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",kf="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHQAAAAcCAMAAACH42siAAAAaVBMVEUAAABElM9BltJCldJCldFBltJBldJCltFNmrNCmNNFldNAldJBldNBldRBldNBldNBldJCoNFBldJBltNBldJBldJAldJAltJBldJBldJBldNAlNFAldJBlNJAldJBldNBldJBldJBldLfIVowAAAAI3RSTlMAGjJNgGbmswMSCScgDTs/ZAVRK0eYj2s3r3AWveHEhXjeXb5rzlgAAAFqSURBVEjH1dbJVsJAEIXhHjJ05tlEooK8/0NKsbDrFjmHiBD0Lvqcf9PfthRM7xvoZMQuLHZaOejGYLtcdEItzI9oaLg5xIHj5hgcG262oXXcrGzJ23Umg5717C7NKBrAjOMDM8YgCI5ghmEPprUTmMZkrBOtdbJgfpZovho0gwzNOkfTam9k5jSGkKlTMOezWT3VLH5qlg8wQzSbO5jJ28l8Z+YLmZMwuz9lupvNXpjlFTMTZv7vzFSatTDtGnNeYdpNzZTMSJhx5f84m8Y3mSEzJzTVolko3J7Qve+a0J3vntDWffdEaMUQQo1vTWjuuyA0UWvUUarqzuqLUMPt1MD3uKTaTdRwvdrdorpFtfZtH6eyK2F3RS23U3uhlr9VB1TdE1V2h7Vr1O4mdbdera6o+Wq1Vqi2rEktFapGoZopVLVCtVCXag19IBPUiiWpBrojE1QNXZAp1/TYbhKdKVwuWotORKfn9wu/DSc/X9T6qgAAAABJRU5ErkJggg==",Tf="data:image/png;base64,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",ma={...ve,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"},xa=me(ma),a0=["click"],Bf=o.defineComponent({name:"EcanBorder",props:{...xa},setup(e){const n=pe(e,["background"]),t=o.computed(()=>{const{isTransparent:m,gradientShow:g,gradientColor:v,gradientOffset:_,gradientAngle:b,backgroundColor:p}=e;if(g){let y=v;return m&&(y="transparent"),y?{background:`linear-gradient(${b}, ${p}, ${y} ${_*100}%)`}:{}}else return{}}),a=o.computed(()=>{const{events:m}=e;let g={};return m!=null&&m.length&&m.find(_=>_.emit==="showModal")&&(g={cursor:"pointer"}),g}),{theme:r}=o.inject(Fe,{theme:"light"}),i=o.computed(()=>{let m="";switch(e.titleMode){case"type-2":m="2";break}return m}),s=o.computed(()=>new URL(Object.assign({"../../assets/border-title-decoration-left.png":wf,"../../assets/border-title-decoration-left2.png":Af})[`../../assets/border-title-decoration-left${i.value}.png`],self.location).href),l=o.computed(()=>new URL(Object.assign({"../../assets/border-title-decoration-right.png":kf,"../../assets/border-title-decoration-right2.png":Tf})[`../../assets/border-title-decoration-right${i.value}.png`],self.location).href),f=o.computed(()=>({width:"100%",height:"100%"})),c=o.computed(()=>{const{borderRadius:m}=e,g=[],v={};if(m){const _=m.split(",");for(const b of _)(+b||+b==0)&&g.push(+b+"px")}return g!=null&&g.length&&(v.borderRadius=g.join(" ")),v}),x=Ae(e)("click",()=>{}),d=o.ref([]);o.watch(()=>e.data,m=>{d.value=m},{immediate:!0,deep:!0}),_e(e,{click:x});const{setGlobalModel:h}=o.inject(we,{setGlobalModel:(m,g)=>{}});return h(e.id,{type:e.type,value:d}),{style:n,gradientStyle:t,click:x,borderStyle:f,theme:r,borderRadiusStyle:c,titleLeftIcon:s,titleRightIcon:l,cursorStyle:a}}}),V1="",St=e=>(o.pushScopeId("data-v-8dd53b8f"),e=e(),o.popScopeId(),e),Ef=["id"],_f=St(()=>o.createElementVNode("div",{class:"top-left border-item"},null,-1)),Df=St(()=>o.createElementVNode("div",{class:"top-right border-item"},null,-1)),If=St(()=>o.createElementVNode("div",{class:"bottom-left border-item"},null,-1)),Rf=St(()=>o.createElementVNode("div",{class:"bottom-right border-item"},null,-1)),Of={class:"title-item"},Lf=["src"],Nf={class:"title"},Ff=["src"],zf=St(()=>o.createElementVNode("div",{class:"top-left border-item"},null,-1)),Mf=St(()=>o.createElementVNode("div",{class:"top-right border-item"},null,-1)),Pf=St(()=>o.createElementVNode("div",{class:"bottom-left border-item"},null,-1)),Hf=St(()=>o.createElementVNode("div",{class:"bottom-right border-item"},null,-1)),qf={key:2,class:"left-title"},Vf={class:"title"};function jf(e,n,t,a,r,i){return o.openBlock(),o.createElementBlock("div",{class:"ecan-border",style:o.normalizeStyle({...e.style,...e.gradientStyle,...e.borderRadiusStyle,...e.cursorStyle}),onClick:n[0]||(n[0]=(...s)=>e.click&&e.click(...s)),id:"container_"+e.id},[e.mode==="no-title"?(o.openBlock(),o.createElementBlock("div",{key:0,class:"no-title",style:o.normalizeStyle(e.borderStyle)},[e.useBorderModify?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[_f,Df,If,Rf],64)):o.createCommentVNode("",!0)],4)):o.createCommentVNode("",!0),e.mode==="top-title"?(o.openBlock(),o.createElementBlock("div",{key:1,class:"top-title",style:o.normalizeStyle(e.borderStyle)},[o.createElementVNode("div",{class:o.normalizeClass(["title-item-wrapper",e.titleMode])},[o.createElementVNode("div",Of,[o.createElementVNode("img",{class:o.normalizeClass(["title-decoration",e.titleMode]),src:e.titleLeftIcon},null,10,Lf),o.createElementVNode("div",Nf,o.toDisplayString(e.title),1),o.createElementVNode("img",{class:o.normalizeClass(["title-decoration",e.titleMode]),src:e.titleRightIcon},null,10,Ff)])],2),zf,Mf,Pf,Hf],4)):o.createCommentVNode("",!0),e.mode==="left-title"?(o.openBlock(),o.createElementBlock("div",qf,[o.createElementVNode("div",Vf,[o.createElementVNode("span",null,o.toDisplayString(e.title),1)])])):o.createCommentVNode("",!0)],12,Ef)}const r0=ge(ue(Bf,[["render",jf],["__scopeId","data-v-8dd53b8f"]])),ya={...ve,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,contains:[],tabFlexDirection:"row",data:[{title:"标签1"},{title:"标签2"},{title:"标签3"}],tabAlignItems:"flex-start",tabJustifyContent:"flex-start",tabType:"tabs",tabWidth:"120px"},pa=me(ya),i0=["tabChange"],Gf=o.defineComponent({name:"EcanTabs",props:{...pa},components:{ASelect:ie.Select,ASelectOption:ie.SelectOption},setup(e){const n=pe(e),t=o.ref(0);o.watch(()=>e.activeKey,h=>{t.value=h},{immediate:!0});const{pageMode:a}=o.inject(Fe,{pageMode:"normal"});let r=null;const i=()=>{const h=Array.isArray(o.unref(s))?o.unref(s).length-1:0;e.autoSwitch&&h>0&&(r=setInterval(()=>{const m=o.unref(t)+1;m<=h?t.value=m:t.value=0,l.value=o.unref(s)[o.unref(t)],x()},e.autoSwitchInterval*1e3))};o.onMounted(()=>{o.unref(a)!=="design"&&i()}),o.onBeforeUnmount(()=>{clearInterval(r)});const s=o.ref([]),l=o.ref({});o.watch(()=>e.data,h=>{s.value=h,l.value=Array.isArray(h)&&h.length>0?h[0]:{}},{immediate:!0,deep:!0});const f=h=>t.value===h,c=Ae(e),{setGlobalModel:u}=o.inject(we,{setGlobalModel:(h,m)=>{}});u(e.id,{value:l,activeKey:t});const{emitRefreshPage:x}=o.inject(Ut,{emitRefreshPage:()=>{}}),d=c("tabChange",(h,m)=>{m!==o.unref(t)&&(l.value=h,t.value=m,x())});return _e(e,{tabChange:d}),{style:n,activeKey:t,isActive:f,tabChange:d,myData:s,useImagePath:bt}}}),G1="",Wf=["id"],Uf=["onClick"];function $f(e,n,t,a,r,i){const s=o.resolveComponent("a-select-option"),l=o.resolveComponent("a-select");return o.openBlock(),o.createElementBlock("div",{class:"ecan-tabs",style:o.normalizeStyle(e.style),id:"container_"+e.id},[o.createElementVNode("div",{class:"tabs-header",style:o.normalizeStyle({fontSize:e.tabFontSize,alignItems:e.tabAlignItems,justifyContent:e.tabJustifyContent,flexDirection:e.tabFlexDirection})},[e.tabType==="tabs"?(o.openBlock(!0),o.createElementBlock(o.Fragment,{key:0},o.renderList(e.myData,(f,c)=>(o.openBlock(),o.createElementBlock("div",{class:"tab",style:o.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:o.withModifiers(u=>e.tabChange(f,c),["prevent","stop"])},[o.createElementVNode("div",{class:"tab-inner",style:o.normalizeStyle({borderBottom:!e.activeTabBackgroundImage&&!e.tabBackgroundImage?`1px solid ${e.isActive(c)?e.activeTabColor:"transparent"}`:""})},o.toDisplayString(f.title),5)],12,Uf))),128)):e.tabType==="select"?(o.openBlock(),o.createBlock(l,{key:1,value:e.activeKey,style:o.normalizeStyle({width:e.tabWidth})},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.myData,(f,c)=>(o.openBlock(),o.createBlock(s,{key:c,value:c,onClick:u=>e.tabChange(f,c)},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(f.title),1)]),_:2},1032,["value","onClick"]))),128))]),_:1},8,["value","style"])):o.createCommentVNode("",!0)],4)],12,Wf)}const l0=ge(ue(Gf,[["render",$f],["__scopeId","data-v-fbab260a"]])),ba={...ve,name:"图片",keyName:"图片",type:"ecanImage",width:"300px",height:"300px",imgUrl:"",target:"self",href:"",linkPage:"",data:{}},va=me(ba),s0=["click"],Zf=o.defineComponent({name:"EcanImage",props:{...va},setup(e){const n=pe(e),t=o.computed(()=>bt(e.imgUrl)),{pageMode:a}=o.inject(Fe,{pageMode:"normal"}),{getGlobalModel:r,setGlobalModel:i}=o.inject(we,{getGlobalModel:f=>{},setGlobalModel:(f,c)=>{}}),l=Ae(e)("click",()=>{const f=r(e.id);if(i(e.id,{...f,RECORD:e.data||{}}),setTimeout(()=>{i(e.id,{...f,RECORD:{}})},0),!e.linkPage&&!e.href)return;const c=e.linkPage||"",u=si(o.unref(a),c),x=e.href;let d=x||u;d=ke(d);const h=e.target;h&&(h!=="event"?window.open(d,"_"+h):window.parent.postMessage({type:"openPage",url:x},"*"))});return _e(e,{click:l}),{style:n,myImgUrl:t,onClick:l}}}),U1="",Yf=["src"];function Kf(e,n,t,a,r,i){return e.myImgUrl!==""?(o.openBlock(),o.createElementBlock("img",{key:0,style:o.normalizeStyle(e.style),src:e.myImgUrl,onClick:n[0]||(n[0]=(...s)=>e.onClick&&e.onClick(...s))},null,12,Yf)):(o.openBlock(),o.createElementBlock("div",{key:1,class:"image-placeholder",style:o.normalizeStyle(e.style)}," 请上传图片 ",4))}const c0=ge(ue(Zf,[["render",Kf],["__scopeId","data-v-3665dde7"]])),Sa={...ve,name:"网页",keyName:"网页",type:"ecanIframe",width:"300px",height:"300px",link:"",linkType:"web"},Ca=me(Sa),Xf=o.defineComponent({name:"EcanIframe",props:{...Ca},setup(e){const n=pe(e),{contextRequestUrl:t}=o.inject(Fe,{contextRequestUrl:""}),a=o.computed(()=>{let r=ke(e.link);if(e.linkType==="erd"&&r!=null){let i=o.unref(t);i[i.length-1]==="/"?i+="erdReport":i+="/erdReport",r=`${Kl||i}?_t=0&uid=${r}`}return r});return{style:n,myLink:a}}}),Z1="",Qf=["src"];function Jf(e,n,t,a,r,i){return e.myLink?(o.openBlock(),o.createElementBlock("iframe",{key:0,src:e.myLink,style:o.normalizeStyle(e.style)},null,12,Qf)):(o.openBlock(),o.createElementBlock("div",{key:1,class:"iframe-placeholder",style:o.normalizeStyle(e.style)}," 请填写网页链接 ",4))}const f0=ge(ue(Xf,[["render",Jf],["__scopeId","data-v-19bc100c"]])),wa={...ve,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%",isSummaryFixed:!1,isPageBottom:!1,isShowTotal:!1,hideTableHeader:!1,paginationColor:"#000000a6",paginationBgColor:"#fff",activePaginationColor:"#1890ff",activePaginationBgColor:"#fff",hoverBackgroundColor:"#fafafa"},Aa=me(wa),d0=["click","refreshData","resetRecord","exportTableData"],ka=o.defineComponent({name:"EcanTable",components:{Skeleton:en,AButton:ie.Button,AInput:ie.Input,ACheckboxGroup:ie.CheckboxGroup,ATable:ie.Table,ATableSummary:ie.TableSummary,ATableSummaryRow:ie.TableSummaryRow,ATableSummaryCell:ie.TableSummaryCell},props:{...Aa},setup(e,{expose:n}){const t=o.ref(!1),a=o.computed(()=>{const V=Ne.cloneDeep(e.columns);return e.isUseSeq&&V.unshift({title:"序号",dataIndex:"SEQ",align:"center",width:e.seqWidth}),e.isUseAction&&V.push({title:"操作",dataIndex:"ACTION",width:e.actionColumnWidth}),V}),r=o.ref(),i=o.ref(!1),s=pe(e),l=o.ref([]),f=o.computed(()=>e.scrollX),c=o.ref(0),u=()=>{let V=0;switch(e.size){case"small":V=50;break;case"middle":V=53;break;default:V=65;break}return V};o.watchEffect(()=>{var V;(V=l.value)!=null&&V.length&&e.height&&o.nextTick(()=>{let W=parseFloat(e.height);const K=document.querySelector(`#ecanTable-${e.id} .ant-table-tbody`),te=document.querySelector(`#ecanTable-${e.id} thead.ant-table-thead`),oe=document.querySelector(`#ecanTable-${e.id} .ant-table-summary`);let ee=0;if(te&&(W-=(te==null?void 0:te.clientHeight)||0),oe&&e.isSummaryFixed&&(ee=(oe==null?void 0:oe.clientHeight)||0,W-=ee),e.paginationShow){let Q=0;Q=u(),Q&&(W-=Q)}(K==null?void 0:K.clientHeight)>W?c.value=W:c.value=0,o.nextTick(()=>{if(ee){const Q=document.querySelector(`#ecanTable-${e.id} .ant-table-summary`),de=(Q==null?void 0:Q.clientHeight)||0;ee!==de&&o.unref(c)&&(c.value=W+ee-de)}})})});const x=o.ref([]),d=o.ref([]),h=o.ref([]),m=o.ref([]),g=o.ref(0),v=o.ref(1),_=o.ref(e.paginationPageSize||10),b=o.reactive([]),p=(V=[])=>{var W,K;if(Array.isArray(V)&&V.length>0){let te=V.length;const oe=e.columnsFixedNum;if(e.dataType==="indicator"&&((W=o.unref(a))!=null&&W.length)){const{graphicConfig:{indicators:ee=[]}}=e;V.forEach((Q,de)=>{if(o.unref(a)[de])for(const De in o.unref(a)[de])["dataIndex","title"].includes(De)||(Q[De]=o.unref(a)[de][De]);const ye=ee.find(De=>De.label===Q.title),{showLabel:xe=""}=ye||{};xe&&(Q.title=xe)})}for(let ee=te-1;ee>=0;ee--)(K=V[ee])!=null&&K.isHidden&&V.splice(ee,1);te=V.length;for(let ee=0;ee<te;ee++){const Q=V[ee];ee<oe?Q.fixed="left":Q.fixed=!1;const{cellAlign:de="center",cellColor:ye,dataIndex:xe,title:De,tableFilter:nt,headerCellAlign:lt,headerCellColor:Ea}=Q;nt&&(b.push(xe),Q.filterOptionsInputValue="",Q.filterCheckboxGroupValue=[],Q.customFilterDropdown=!0,Q.onFilter=(Ct,Yt)=>Yt[xe].toString().toLowerCase().includes(Ct.toLowerCase())),Q.customHeaderCell=()=>({style:{display:"table-cell",verticalAlign:"middle",fontSize:e.headerFontSize,fontWeight:e.headerFontWeight,textAlign:lt||"center",color:Ea||e.headerFontColor,borderBottomColor:e.borderColor,backgroundColor:e.headerBackgroundColor}}),Q.customCell=(Ct,Yt)=>({style:{textAlign:de,color:ye||e.cellFontColor,backgroundColor:e.cellBackgroundColor,borderBottomColor:e.borderColor},class:{highlight:o.unref($)===Yt&&e.clickHighlight},onClick:P("click",()=>{const mn=e.id,_a=A(mn);Ct={dataIndex:xe,title:De,...Ct},I(mn,{..._a,type:e.type,RECORD:Ct})})}),Array.isArray(Q.children)&&p(Q.children)}}},y=(V=[])=>{var K;let W=Ne.cloneDeep(V);return(K=o.unref(m))!=null&&K.length&&(W=Ne.cloneDeep(o.unref(m))),e.isUseSeq&&W.unshift({title:"序号",dataIndex:"SEQ",align:"center",width:e.seqWidth}),e.isUseAction&&W.push({title:"操作",dataIndex:"ACTION",width:e.actionColumnWidth}),p(W),W};o.watch(_,()=>{v.value=1,Z(!1)}),o.watch(r,V=>{i.value=!!V}),o.watch(()=>[e.columns,e.isUseSeq,e.seqWidth,e.isUseAction,e.columnsFixedNum,e.actionColumnWidth,e.cellBackgroundColor,e.headerBackgroundColor,e.borderColor,e.stripedColor],()=>{x.value=y(Ne.cloneDeep(e.columns))},{immediate:!0,deep:!0}),o.watch(()=>[e.data,e.dataType],([V,W])=>{W==="static"&&(d.value=V)},{immediate:!0});const k=o.ref({}),C=V=>{if(Array.isArray(V)){const W=V.length,K=b,te=K.length,oe={};for(let Q=0;Q<W;Q++){const de=V[Q];for(let ye=0;ye<te;ye++){const xe=K[ye];if(oe[xe])oe[xe].add(de[xe]);else{const De=new Set;De.add(de[xe]),oe[xe]=De}}}const ee={};for(const Q in oe)if(Object.prototype.hasOwnProperty.call(oe,Q)){const de=oe[Q],ye=Array.from(de);ee[Q]=ye.map(xe=>({label:xe,value:xe}))}k.value=ee}};o.watch(()=>[e.isReverse,x.value,d.value],()=>{const V=o.unref(x),W=o.unref(d);if(C(W),e.isReverse){const{columns:K,dataSource:te}=O(Ne.cloneDeep(V),Ne.cloneDeep(W));h.value=K,l.value=te}else h.value=V,l.value=W},{immediate:!0});const O=(V,W)=>{const K=V[0],te=[{title:K.title,dataIndex:"col0",key:"col0",align:"center"}];for(let ee=0;ee<W.length;ee++){const Q=W[ee],de="col"+(ee+1);te.push({title:Q[K.dataIndex],dataIndex:de,key:de,align:"center"})}const oe=[];for(let ee=1;ee<V.length;ee++){const Q=V[ee],de={col0:Q.title};for(let ye=0;ye<W.length;ye++){const xe=W[ye];de[`col${ye+1}`]=xe[Q.dataIndex]}oe.push(de)}return{columns:te,dataSource:oe}},L=o.ref(""),N=ze(e),B=async(V=!0,W={})=>{var K;try{V&&(t.value=!0),o.unref(L)&&(W.orderCondition=o.unref(L)),e.paginationShow&&(W={pageNum:o.unref(v),pageSize:o.unref(_)||"10",layer:"1",...W});const te=await N(W),{rows:oe=[],total:ee=0}=((K=te==null?void 0:te.data)==null?void 0:K.data)||{};if(g.value=ee,Array.isArray(oe)&&(d.value=oe),window.config.routerBaseURL.includes("1523545080925487106")){const{requestParams:Q=[]}=e,de=Q.find(ye=>ye.key==="dataSqlId");if((de==null?void 0:de.value)==="xt_jxzebg"){const ye=oe.filter(xe=>!xe.绩效总额).map(xe=>xe.ORG_NAME);ye!=null&&ye.length&&o.nextTick(()=>{ie.notification.warning({message:"提示",description:`当前时段${ye.join("、")}绩效数据为空`,duration:3})})}}}catch(te){console.error(te)}finally{t.value=!1}},w=({current:V},W,K)=>{if(v.value=V,K&&Object.keys(K).length>0){const{field:te,order:oe}=K,Q={ascend:"asc",descend:"desc"}[oe];te!=null&&Q!=null&&(L.value=te+" "+Q)}Z(!1)},E=o.computed(()=>{const V=e.simple,W=[e.paginationPosition],K={};return e.isShowTotal&&(K.showTotal=te=>`共 ${te} 条数据`),e.paginationShow&&{simple:V,position:W,total:o.unref(g),current:o.unref(v),pageSize:o.unref(_)||"10",showSizeChanger:!1,size:"large",...K}}),S=V=>+V==1?"是":+V==0?"否":V,D=(V,W)=>{const{format:K,retentiondigit:te,customFormatter:oe}=W;if(K==null||K==="")return V;const ee={money:So,percentage:un,contrast:un,boolean:S,decimals:ac,custom:rc};return ee[K]?K==="decimals"?ee[K](V,te)||"":K==="custom"?ee[K](V,oe)||"":ee[K](V)||"":""},z=V=>V==="contrast"?"upDown":"",R=V=>{const{text:W,format:K,declineColor:te="#39cf93",increaseColor:oe="#ff512e"}=V;if(K==="contrast"){const ee={fontSize:e.fontSize},Q=parseFloat(W+"");return Q>=0?ee.color=oe:Q<0&&(ee.color=te),ee}else return{}},M=o.computed(()=>{const{fontSize:V}=e;return{width:V,height:V,textIndent:`-${parseFloat(V)*2}px`,overflow:"hidden"}}),H=V=>{const{text:W,declineColor:K="#39cf93",increaseColor:te="#ff512e"}=V,{fontSize:oe}=e,ee=parseFloat(W+""),Q={width:oe,verticalAlign:"unset"};return ee>=0?Q.filter=`drop-shadow(${te||"#ff512e"} ${oe} -1px)`:ee<0&&(Q.filter=`drop-shadow(${K||"#39cf93"} ${oe} -1px)`),Q},j=V=>{const W=parseFloat(V+"");if(W>=0)return To;if(W<0)return Bo},P=Ae(e),{getGlobalModel:A,setGlobalModel:I}=o.inject(we,{getGlobalModel:V=>{},setGlobalModel:(V,W)=>{}}),T=(V=[],W=[])=>{const K=V.map(te=>({title:te,dataIndex:te,key:te}));m.value=Ne.cloneDeep(K),x.value=y(K),d.value=W},F=it(e),U=async(V=!0)=>{var W,K,te,oe;try{V&&(t.value=!0);const ee=o.unref(L).split(" "),Q=await F({sort:{order:ee[1],field:ee[0]}});T((K=(W=Q==null?void 0:Q.data)==null?void 0:W.data)==null?void 0:K.columns,(oe=(te=Q==null?void 0:Q.data)==null?void 0:te.data)==null?void 0:oe.rows)}catch(ee){console.error(ee)}finally{t.value=!1}},$=o.ref(-1),ne=(V,W)=>({onClick:P("rowClick",()=>{const K=e.id,te=A(K);I(K,{...te,type:e.type,RECORD:V}),$.value=W})}),{loadedData:Y}=o.inject(gt,{loadedData:{}}),X=o.ref(!1);o.watch(Y,V=>{if(e.dataType==="indicator"){const W=Zt(e.graphicConfig);W!=null&&W.length&&(!o.unref(X)&&Qe(e.graphicConfig,V)?(X.value=!0,Z()):Qe(e.graphicConfig,V)||(X.value=!1))}},{deep:!0});const Z=(V=!0)=>{switch(e.dataType){case"request":B(V);break;case"indicator":Qe(e.graphicConfig,o.unref(Y))&&U(V);break}},J=()=>{const V=e.id,W=A(V);I(V,{...W,type:e.type,RECORD:""})},ae=o.computed(()=>{const V=o.unref(h),W=[];let K=0;for(let ee=0;ee<V.length;ee++){const Q=V[ee],{isCalcTotal:de}=Q;e.isUseSeq&&ee===0?W.push({...Q,total:"小计"}):de?(W.push({...Q,index:ee,total:0}),K++):W.push({...Q})}if(K===0)return[];const te=o.unref(l),oe=he(W);for(let ee=0;ee<oe.length;ee++){const Q=oe[ee];let de=0;const{isCalcTotal:ye,dataIndex:xe}=Q;if(ye===!0){for(let De=0;De<te.length;De++){const lt=+te[De][xe];isNaN(lt)||(de=new _0.Big(de).add(lt).toNumber())}Q.total=de}}return oe});function he(V){var K;const W=[];for(const te of V)(K=te.children)!=null&&K.length?W.push(...he(te.children)):W.push(te);return W}const{setRequest:fe}=o.inject(Oe,{setRequest:V=>{}});typeof fe=="function"&&fe({id:e.id,requestFn:Z,sortNum:e.requestSort}),n({refreshData:Z});const Ie=(V="",W)=>ke(V,W),He=V=>{if(V!=="event")return{self:"_self",blank:"_blank"}[V]},qe=(V,W="")=>{V==="event"&&window.parent.postMessage({type:"openPage",url:W},"*")},$e=(V,W)=>{V(W.filterCheckboxGroupValue)},Ze=(V,W)=>{V({confirm:!0}),W.filterOptionsInputValue="",W.filterCheckboxGroupValue=[]},et=()=>{},Ee=V=>{const W=V.dataIndex;if(typeof W=="string"){let K=o.unref(k)[W];const te=o.unref(V.filterOptionsInputValue).trim();return Array.isArray(K)?(K=K.filter(oe=>typeof oe.label=="string"?oe.label.toLowerCase().includes(te.toLowerCase()):!0),K):[]}return[]},Se=async()=>{var xe,De;const V="EXPORT_KEY";ie.message.loading({key:V,content:"正在导出...",duration:0});let W=[];if(e.dataType==="static")W=e.data;else if(e.dataType==="request"){const nt={layer:"1"};o.unref(L)&&(nt.orderCondition=o.unref(L));const lt=await N(nt);W=((De=(xe=lt==null?void 0:lt.data)==null?void 0:xe.data)==null?void 0:De.rows)||{}}const K=o.unref(h),te=[],oe=[];K==null||K.forEach(nt=>{te.push(nt.dataIndex),oe.push(nt.title)});const ee=W.map(nt=>Ne.pick(nt,te)),Q=Vt.utils.book_new(),de=Vt.utils.aoa_to_sheet([oe]),ye=Vt.utils.sheet_add_json(de,ee,{skipHeader:!0,origin:"A2"});Vt.utils.book_append_sheet(Q,ye,"sheet"),Vt.writeFile(Q,"表格数据.xlsx"),ie.message.success({key:V,content:"导出成功"})},Re=(V,W=2)=>{const K=+V*100;return isNaN(K)||K<=0?0:K>=100?100:K.toFixed(W)};_e(e,{resetRecord:J,refreshData:Z,exportTableData:Se});const je=(V,W)=>{let K=null;return e.stripedShow&&(K=W%2===1?"table-striped":null),K},tt=o.computed(()=>{let V=0;const{height:W,isPageBottom:K}=e;return K&&W&&(V=parseFloat(W)-u()),V?V+"px":"100%"}),Me=o.computed(()=>{let V="#071655";return e.headerBackgroundColor&&(V="transparent"),V}),Ve=o.computed(()=>{let V="#071655";return(e.cellBackgroundColor||e.stripedShow&&e.stripedColor)&&(V="transparent"),V});return{x:f,y:c,style:s,customRow:ne,pagination:E,formatFn:D,contrastClass:z,tableChange:w,summaryList:ae,loading:t,onTouchHrefEvent:qe,handleHref:Ie,handleHrefTarget:He,useRowIndex:$,tableColumns:h,tableDataSource:l,useFilterOptions:Ee,useSetSelectedKeys:$e,onResetFilter:Ze,onSearchFilterOptions:et,exportTableData:Se,handleProgressText:Re,pageSizeVisible:i,pageSize:_,tableRef:r,rowClassName:je,tableHeight:tt,tableHeaderBgColor:Me,tableBodyBgColor:Ve,getChgStyle:R,chgBoxStyle:M,getChgBoxImgStyle:H,getChgBoxImgSrc:j}}}),u0=()=>{o.useCssVars(e=>({"078f7e06":e.stripedColor,"3788316c":e.paginationBgColor,"78735b8f":e.paginationColor,f69dbf38:e.activePaginationBgColor,"918fd9ae":e.activePaginationColor,ad7f0bda:e.hoverBackgroundColor,"5f81483d":e.tableHeaderBgColor,"8e09aaf0":e.tableBodyBgColor}))},h0=ka.setup;ka.setup=h0?(e,n)=>(u0(),h0(e,n)):u0;const K1="",X1="",ed=e=>(o.pushScopeId("data-v-4dc759ea"),e=e(),o.popScopeId(),e),td=["id"],nd={key:0,class:"table-tool"},od=o.createTextVNode("导出数据"),ad=o.createTextVNode(" 搜索 "),rd=o.createTextVNode(" 重置 "),id={key:0},ld={key:1,class:"action-list"},sd=["href","target","onClick"],cd={key:2,class:"progress-cell"},fd={key:0},dd=["src"],ud={key:1},hd=["src"],gd={class:"ant-pagination-options-quick-jumper"},md=ed(()=>o.createElementVNode("span",null,"条 / 页",-1));function xd(e,n,t,a,r,i){const s=o.resolveComponent("a-button"),l=o.resolveComponent("a-input"),f=o.resolveComponent("a-checkbox-group"),c=o.resolveComponent("a-table-summary-cell"),u=o.resolveComponent("a-table-summary-row"),x=o.resolveComponent("a-table-summary"),d=o.resolveComponent("a-table"),h=o.resolveComponent("skeleton");return o.openBlock(),o.createElementBlock("div",{class:"ecan-table",id:"ecanTable-"+e.id,style:o.normalizeStyle(e.style)},[o.createVNode(h,{loading:e.loading},{default:o.withCtx(()=>{var m;return[e.isUseExport?(o.openBlock(),o.createElementBlock("div",nd,[o.createVNode(s,{class:"export-button",onClick:e.exportTableData},{default:o.withCtx(()=>[od]),_:1},8,["onClick"])])):o.createCommentVNode("",!0),o.createVNode(d,{ref:"tableRef",class:"table",style:o.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:o.withCtx(({column:g,selectedKeys:v,setSelectedKeys:_,confirm:b,clearFilters:p})=>[o.createElementVNode("div",{class:"ecan-table-filter",style:o.normalizeStyle({height:e.filterDropdownHeight})},[o.createVNode(l,{value:g.filterOptionsInputValue,"onUpdate:value":y=>g.filterOptionsInputValue=y,placeholder:"请输入关键字",class:"filter-input",onChange:e.onSearchFilterOptions},null,8,["value","onUpdate:value","onChange"]),o.createVNode(f,{value:g.filterCheckboxGroupValue,"onUpdate:value":y=>g.filterCheckboxGroupValue=y,class:"filter-checkbox",options:e.useFilterOptions(g),onChange:y=>e.useSetSelectedKeys(_,g)},null,8,["value","onUpdate:value","options","onChange"]),o.createElementVNode("div",null,[o.createVNode(s,{type:"primary",size:"small",style:{width:"90px","margin-right":"8px"},onClick:()=>b()},{default:o.withCtx(()=>[ad]),_:2},1032,["onClick"]),o.createVNode(s,{size:"small",style:{width:"90px"},onClick:o.withModifiers(y=>e.onResetFilter(p,g),["stop"])},{default:o.withCtx(()=>[rd]),_:2},1032,["onClick"])])],4)]),bodyCell:o.withCtx(({column:g,index:v,text:_,record:b})=>{var p,y;return[g.dataIndex==="SEQ"?(o.openBlock(),o.createElementBlock("span",id,o.toDisplayString(v+1),1)):g.dataIndex==="ACTION"?(o.openBlock(),o.createElementBlock("div",ld,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.actionList,(k,C)=>(o.openBlock(),o.createElementBlock("div",{class:"action",key:C},[o.createElementVNode("a",{href:e.handleHref(k.href,b),target:e.handleHrefTarget(k.target),style:o.normalizeStyle({color:k.color,fontSize:e.fontSize,fontWeight:e.fontWeight}),onClick:O=>e.onTouchHrefEvent(k.target,e.handleHref(k.href,b))},o.toDisplayString(k.title),13,sd)]))),128))])):g.format==="progress"?(o.openBlock(),o.createElementBlock("div",cd,[o.createElementVNode("div",{class:"progress",style:o.normalizeStyle({background:g.progressColor||"#1890ff",height:g.progressWidth||"18px",width:`${e.handleProgressText(_,g.progressTextDecimalPlaces)}%`})},null,4),o.createElementVNode("div",{class:"progress-text",style:o.normalizeStyle({color:+e.handleProgressText(_)<100?g.progressTextColor||"#333":g.progressFinishedTextColor||"#fff"})},o.toDisplayString(e.handleProgressText(_,g.progressTextDecimalPlaces))+"% ",5)])):(o.openBlock(),o.createElementBlock("div",{key:3,style:o.normalizeStyle({fontSize:e.fontSize,fontWeight:e.fontWeight})},[g.format==="contrast"?(o.openBlock(),o.createElementBlock("span",fd,o.toDisplayString(((p=g==null?void 0:g.customFormatter)==null?void 0:p.split("{value}")[0])||""),1)):o.createCommentVNode("",!0),o.createElementVNode("span",{class:o.normalizeClass([e.contrastClass(g.format)]),style:o.normalizeStyle(e.getChgStyle({...g,text:_}))},[g.format==="contrast"?(o.openBlock(),o.createElementBlock("div",{key:0,style:o.normalizeStyle(e.chgBoxStyle)},[o.createElementVNode("img",{style:o.normalizeStyle(e.getChgBoxImgStyle({...g,text:_})),src:e.getChgBoxImgSrc(_)},null,12,dd)],4)):o.createCommentVNode("",!0),o.createTextVNode(" "+o.toDisplayString(g.format!=null?e.formatFn(_,g):_),1)],6),g.format==="contrast"?(o.openBlock(),o.createElementBlock("span",ud,o.toDisplayString(((y=g==null?void 0:g.customFormatter)==null?void 0:y.split("{value}")[1])||""),1)):o.createCommentVNode("",!0)],4))]}),summary:o.withCtx(()=>[e.summaryList.length>0?(o.openBlock(),o.createBlock(x,{key:0,fixed:e.isSummaryFixed},{default:o.withCtx(()=>[o.createVNode(u,null,{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.summaryList,(g,v)=>(o.openBlock(),o.createBlock(c,{key:v,index:v,style:o.normalizeStyle({backgroundColor:e.cellBackgroundColor,textAlign:g.cellAlign||"center",color:e.cellFontColor,borderBottomColor:e.borderColor})},{default:o.withCtx(()=>[o.createElementVNode("span",{class:o.normalizeClass([e.contrastClass(g.format)]),style:o.normalizeStyle({...e.getChgStyle({...g,text:g.total}),fontSize:e.fontSize,fontWeight:e.fontWeight})},[g.format==="contrast"?(o.openBlock(),o.createElementBlock("div",{key:0,style:o.normalizeStyle(e.chgBoxStyle)},[o.createElementVNode("img",{style:o.normalizeStyle(e.getChgBoxImgStyle({...g,text:g.total})),src:e.getChgBoxImgSrc(g.total)},null,12,hd)],4)):o.createCommentVNode("",!0),o.createTextVNode(" "+o.toDisplayString((g.format!=null||g.format!=="")&&e.formatFn(g.total,g)),1)],6)]),_:2},1032,["index","style"]))),128))]),_:1})]),_:1},8,["fixed"])):o.createCommentVNode("",!0)]),_:1},8,["style","columns","data-source","bordered","size","customRow","scroll","pagination","row-class-name","show-header","onChange"]),(m=e.tableDataSource)!=null&&m.length&&!e.simple&&e.pageSizeShow&&e.pageSizeVisible?(o.openBlock(),o.createBlock(o.Teleport,{key:1,to:"#ecanTable-"+e.id+" .ant-pagination"},[o.createElementVNode("div",gd,[o.withDirectives(o.createElementVNode("input",{type:"text","onUpdate:modelValue":n[0]||(n[0]=g=>e.pageSize=g)},null,512),[[o.vModelText,e.pageSize]]),md])],8,["to"])):o.createCommentVNode("",!0)]}),_:1},8,["loading"])],12,td)}const g0=ge(ue(ka,[["render",xd],["__scopeId","data-v-4dc759ea"]])),Ta={...ve,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"},Ba=me(Ta),m0=["click"];Ge.use([At.CanvasRenderer,ct.MapChart,ct.ScatterChart,be.VisualMapComponent,be.TooltipComponent,be.GraphicComponent]);const yd=o.defineComponent({name:"EcanMap",components:{Echarts:ut},props:{...Ba},setup(e){const n=ze(e),t=ze({...e.tooltipRequestData,requestHeaders:{}}),a=o.ref(),r=o.ref(""),i=o.ref(""),s=pe(e,["backgroundImage"]),l=o.ref(),f=o.computed(()=>bt(e.geoBackgroundImage)),c=o.computed(()=>bt(e.backgroundImage)),u=o.computed(()=>e.geoBackgroundImage?{image:o.unref(l),repeat:e.geoBackgroundImageRepeat}:e.geoItemStyleAreaColor),x=o.computed(()=>{const S=e.symbolImage;return e.symbolImage?"image://"+bt(S):"circle"}),d=S=>{let D=e.tooltipFormatter;const z=D.match(/\{(.+?)\}/g);if(z==null||z.length===0)return D;for(let R=0;R<z.length;R++){const M=z[R];let H=M.slice(1,-1).trim();const j=/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,P=H.match(j);for(let A=0;A<P.length;A++){const I=P[A],T=S[I];T!=null&&(H=H.replace(I,T))}D=D.replace(M,H)}return D.split(`
118
- `)},h=o.ref(!1),m=o.ref("");let g=new AbortController;const v=(S,D)=>{const z=g.signal;h.value=!0,r.value=S,t({name:S,signal:z}).then(R=>{var M,H;if(R){const j=((H=(M=R==null?void 0:R.data)==null?void 0:M.data)==null?void 0:H.rows)||[];let P="";for(const A of j){const I=d(A)||[];if(I!=null&&I.length)for(const T of I)P+=`<div style="word-break: break-all;white-space: normal;">${T}</div>`}P=`<div style="max-width:200px;">${P}</div>`,i.value=P,D(o.unref(m),P)}else z.aborted?i.value="Loading":i.value=S,D(o.unref(m),i.value);h.value=!1})},_=o.computed(()=>{const S=e.geoCenter;let D;return typeof S=="string"&&S!==""&&(D=S.split(",")),{tooltip:{show:!0},graphic:[{type:"image",style:{width:parseFloat(e.width),height:parseFloat(e.height),image:o.unref(c)},top:"center"}],geo:{zoom:e.geoZoom,roam:e.geoRoam,center:D,map:`map-${e.id}`,tooltip:{show:e.tooltipShow,trigger:"item",backgroundColor:e.tooltipBackgroundColor,borderColor:"transparent",textStyle:{color:e.tooltipTextStyleColor},formatter:(z,R,M)=>{m.value=R;const{name:H=""}=z,{requestUrl:j}=e.tooltipRequestData;if(!j)return H;if(o.unref(h))o.unref(r)!==H&&(g.abort(),g=new AbortController);else{if(o.unref(r)===H)return o.unref(i);v(H,M)}return"Loading"}},label:{show:e.geoLabelShow,color:e.geoLabelColor,fontSize:e.geoLabelFontSize},itemStyle:{areaColor:o.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:o.unref(x),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}]}}),b=o.ref(!1),p=async()=>{var z;b.value=!1;const S=e.mapJson,D=`map-${e.id}`;if(S!=null&&S.path){const R=await st(((z=window==null?void 0:window.config)==null?void 0:z.uploadPath)+S.path);Ge.registerMap(D,(R==null?void 0:R.data)||{})}else Ge.registerMap(D,{});b.value=!0};o.watch(()=>e.mapJson,()=>{p()},{immediate:!0,deep:!0});const y=async()=>{var S,D;if(e.dataType==="request"){b.value=!1;try{const z=await n(),R=((D=(S=z==null?void 0:z.data)==null?void 0:S.data)==null?void 0:D.rows)||{},M=`map-${e.id}`;if(R!=null&&R.path){const H=await st(R.path);Ge.registerMap(M,(H==null?void 0:H.data)||{})}else Ge.registerMap(M,{})}catch(z){console.error(z)}finally{b.value=!0}}},k=()=>{switch(e.dataType){case"request":y();break}},{getGlobalModel:C,setGlobalModel:O}=o.inject(we,{getGlobalModel:S=>{},setGlobalModel:(S,D)=>{}}),N=Ae(e)("click",()=>{const S=C(e.id);O(e.id,{...S,RECORD:o.unref(a)})});_e(e,{refreshData:k});const{setRequest:B}=o.inject(Oe,{setRequest:S=>{}});return typeof B=="function"&&B({id:e.id,requestFn:k,sortNum:e.requestSort}),{option:_,style:s,isLoadedData:b,geoBackgroundImageRef:l,myGeoBackgroundImage:f,customClick:()=>{o.unref(a)&&N()},onMouseOver:(S={})=>{S.componentType==="geo"&&S.region?a.value=S.region:a.value=null}}}}),J1="",pd=["src"];function bd(e,n,t,a,r,i){const s=o.resolveComponent("echarts");return o.openBlock(),o.createElementBlock("div",{class:"ecan-map",style:o.normalizeStyle(e.style)},[e.isLoadedData?(o.openBlock(),o.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"])):o.createCommentVNode("",!0),o.withDirectives(o.createElementVNode("img",{ref:"geoBackgroundImageRef",src:e.myGeoBackgroundImage},null,8,pd),[[o.vShow,!1]])],4)}const x0=ge(ue(yd,[["render",bd],["__scopeId","data-v-10f150ac"]])),y0=Object.freeze(Object.defineProperty({__proto__:null,EcanBar:Ki,EcanBorder:r0,EcanButton:Li,EcanCheckbox:Fi,EcanComboGraph:t0,EcanCustomGraph:Ji,EcanDatePicker:Bi,EcanIframe:f0,EcanImage:c0,EcanInput:wi,EcanLine:Zi,EcanList:bi,EcanMap:x0,EcanModal:vt,EcanPageConfig:ci,EcanPie:Ui,EcanProportion:Si,EcanProviderConfig:fi,EcanRadar:o0,EcanRadio:Vi,EcanRangePicker:Ri,EcanScatter:Qi,EcanScrollText:mi,EcanSelect:Mi,EcanTable:g0,EcanTabs:l0,EcanText:gi,EcanTimeDisplay:yi,EcanTreeSelect:Hi,barComponentProps:ia,barEvents:Yi,barProps:ra,borderComponentProps:xa,borderEvents:a0,borderProps:ma,buttonComponentProps:Go,buttonEvents:Oi,buttonProps:jo,checkboxComponentProps:Uo,checkboxEvents:Ni,checkboxProps:Wo,comboGraphComponentProps:ua,comboGraphEvents:e0,comboGraphProps:da,customGraphComponentProps:fa,customGraphProps:ca,datePickerComponentProps:Mo,datePickerEvents:Ai,datePickerProps:zo,iframeComponentProps:Ca,iframeProps:Sa,imageComponentProps:va,imageEvents:s0,imageProps:ba,inputComponentProps:Fo,inputEvents:Ci,inputProps:No,lineComponentProps:aa,lineEvents:$i,lineProps:oa,listComponentProps:Ro,listEvents:pi,listProps:Io,mapComponentProps:Ba,mapEvents:m0,mapProps:Ta,modalComponentProps:na,modalEvents:Gi,modalProps:ta,pageConfig:_n,pageConfigComponentProps:Dn,pieComponentProps:ea,pieEvents:ji,pieProps:Jo,proportionComponentProps:Lo,proportionEvents:vi,proportionProps:Oo,providerConfig:Co,providerConfigComponentProps:wo,radarComponentProps:ga,radarEvents:n0,radarProps:ha,radioComponentProps:Qo,radioEvents:qi,radioProps:Xo,rangePickerComponentProps:qo,rangePickerEvents:Ei,rangePickerProps:Ho,scatterComponentProps:sa,scatterEvents:Xi,scatterProps:la,selectComponentProps:Zo,selectEvents:zi,selectProps:$o,tableComponentProps:Aa,tableEvents:d0,tableProps:wa,tabsComponentProps:pa,tabsEvents:i0,tabsProps:ya,textComponentProps:ko,textEvents:di,textProps:Ao,timeDisplayComponentProps:Do,timeDisplayEvents:xi,timeDisplayProps:_o,treeSelectComponentProps:Ko,treeSelectEvents:Pi,treeSelectProps:Yo},Symbol.toStringTag,{value:"Module"})),vd={install:e=>{Object.keys(y0).forEach(n=>{const t=y0[n];t.install&&e.use(t)})}};q.EcanBar=Ki,q.EcanBorder=r0,q.EcanButton=Li,q.EcanCheckbox=Fi,q.EcanComboGraph=t0,q.EcanCustomGraph=Ji,q.EcanDatePicker=Bi,q.EcanIframe=f0,q.EcanImage=c0,q.EcanInput=wi,q.EcanLine=Zi,q.EcanList=bi,q.EcanMap=x0,q.EcanModal=vt,q.EcanPageConfig=ci,q.EcanPie=Ui,q.EcanProportion=Si,q.EcanProviderConfig=fi,q.EcanRadar=o0,q.EcanRadio=Vi,q.EcanRangePicker=Ri,q.EcanScatter=Qi,q.EcanScrollText=mi,q.EcanSelect=Mi,q.EcanTable=g0,q.EcanTabs=l0,q.EcanText=gi,q.EcanTimeDisplay=yi,q.EcanTreeSelect=Hi,q.barComponentProps=ia,q.barEvents=Yi,q.barProps=ra,q.borderComponentProps=xa,q.borderEvents=a0,q.borderProps=ma,q.buttonComponentProps=Go,q.buttonEvents=Oi,q.buttonProps=jo,q.checkboxComponentProps=Uo,q.checkboxEvents=Ni,q.checkboxProps=Wo,q.comboGraphComponentProps=ua,q.comboGraphEvents=e0,q.comboGraphProps=da,q.compatibleMobileList=Wi,q.customGraphComponentProps=fa,q.customGraphProps=ca,q.datePickerComponentProps=Mo,q.datePickerEvents=Ai,q.datePickerProps=zo,q.default=vd,q.iframeComponentProps=Ca,q.iframeProps=Sa,q.imageComponentProps=va,q.imageEvents=s0,q.imageProps=ba,q.inputComponentProps=Fo,q.inputEvents=Ci,q.inputProps=No,q.lineComponentProps=aa,q.lineEvents=$i,q.lineProps=oa,q.listComponentProps=Ro,q.listEvents=pi,q.listProps=Io,q.mapComponentProps=Ba,q.mapEvents=m0,q.mapProps=Ta,q.modalComponentProps=na,q.modalEvents=Gi,q.modalProps=ta,q.pageConfig=_n,q.pageConfigComponentProps=Dn,q.pieComponentProps=ea,q.pieEvents=ji,q.pieProps=Jo,q.proportionComponentProps=Lo,q.proportionEvents=vi,q.proportionProps=Oo,q.providerConfig=Co,q.providerConfigComponentProps=wo,q.radarComponentProps=ga,q.radarEvents=n0,q.radarProps=ha,q.radioComponentProps=Qo,q.radioEvents=qi,q.radioProps=Xo,q.rangePickerComponentProps=qo,q.rangePickerEvents=Ei,q.rangePickerProps=Ho,q.scatterComponentProps=sa,q.scatterEvents=Xi,q.scatterProps=la,q.selectComponentProps=Zo,q.selectEvents=zi,q.selectProps=$o,q.tableComponentProps=Aa,q.tableEvents=d0,q.tableProps=wa,q.tabsComponentProps=pa,q.tabsEvents=i0,q.tabsProps=ya,q.textComponentProps=ko,q.textEvents=di,q.textProps=Ao,q.timeDisplayComponentProps=Do,q.timeDisplayEvents=xi,q.timeDisplayProps=_o,q.treeSelectComponentProps=Ko,q.treeSelectEvents=Pi,q.treeSelectProps=Yo,Object.defineProperties(q,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
116
+ <span style="color: ${W||e.color};${o.unref(u)}">${e.minusSignShow?"-":""}${Math.abs(+T).toFixed(2)}%</span>
117
+ </span>`)}else e.format==="percent"?(T=+T,isNaN(T)||(T=(T*100).toFixed(2),_=_.replace(j,`<span style="color:${h(T)||e.variableColor};font-size:${o.unref(i)};${o.unref(u)}">${T}%</span>`))):e.format==="money"?(T=+T,isNaN(T)||(T=Ao(T),_=_.replace(j,`<span style="color:${h(T)||e.variableColor};font-size:${o.unref(i)};${o.unref(u)}">${T}</span>`))):F==="thousands"?(T=+T,isNaN(T)||(T=oc(T),_=_.replace(j,`<span style="color:${h(T)||e.variableColor};font-size:${o.unref(i)};${o.unref(u)}">${T}</span>`))):_=_.replace(j,`<span style="color:${h(T)||e.variableColor};font-size:${o.unref(i)};${o.unref(u)}">${T}</span>`)}}if(I||(I=`<span style="color: ${h(_)};${o.unref(u)}">${_}</span>`),e.unitShow&&e.unitText){const{unitTop:H,unitLeft:j}=e;let P="position:relative;";H&&(P+=`top:${H};`),j&&(P+=`margin-left:${j};`),I+=`<span style='color:${e.unitColor};font-size:${e.unitFontSize};font-weight:${e.unitFontWeight};${P};${o.unref(u)}'>${e.unitText}</span>`}return I});function h(w){let E="",S=!1;const{targetValue:_,targetShow:z,notExpectColor:I}=e;if(z){switch(e.targetRule){case"equal":w!==_&&(S=!0);break;case"greater":w<=_&&(S=!0);break;case"greater_equal":w<_&&(S=!0);break;case"less":w>=_&&(S=!0);break;case"less_equal":w>_&&(S=!0);break}S&&(E=I)}return E}const{pageMode:m}=o.inject(Fe,{pageMode:"normal"}),g=ze(e),v=o.ref(!1),D=async()=>{var w;try{v.value=!0;const E=await g();r.value=((w=E==null?void 0:E.data)==null?void 0:w.data)||{}}catch(E){console.error(E)}finally{v.value=!1}},b=(w={})=>{r.value=w},p=w=>{const E=e.id,S=l(E);f(E,{...S,value:w||""})},x=it(e),k=async()=>{var w;try{v.value=!0;const E=await x(),{data:S}=(E==null?void 0:E.data)||{};if(S){t.value=!1;const{columns:_=[],rows:z=[]}=((w=E==null?void 0:E.data)==null?void 0:w.data)??{};let I={};if(_.length>0){const M=_.find(H=>!!H);M&&(I={value:isNaN(z[M])?0:z[M]||0})}p(I==null?void 0:I.value),b(I)}else t.value=!0,p("NaN"),b({value:"NaN"})}catch(E){console.error(E)}finally{v.value=!1,c(e.id,!0)}},C=()=>{switch(e.dataType){case"indicator":k();break;case"request":D();break}},{setRequest:O}=o.inject(Oe,{setRequest:({id:w,sortNum:E,requestFn:S})=>{}});typeof O=="function"&&O({id:e.id,requestFn:C,sortNum:e.requestSort}),De(e,{refreshData:C}),n({refreshData:C});const N=Ae(e),L=N("click",()=>{if(!e.linkPage&&!e.href)return;const w=e.linkPage||"",E=ci(o.unref(m),w),S=e.href;let _=S||E;_=ke(_);const z=e.target;z&&(z!=="event"?window.open(_,"_"+z):window.parent.postMessage({type:"openPage",url:S},"*"))}),B=N("valueChange",()=>{});return o.watch(()=>d.value,(w,E)=>{w!==E&&B()}),{style:a,myText:d,loading:v,click:L,textIndent:s,vFontSize:i,gradientStyle:y}}}),hi=()=>{o.useCssVars(e=>({cebebbf4:e.vFontSize,"2393a9b9":e.textIndent,"36d98491":e.percentageSide}))},gi=Ro.setup;Ro.setup=gi?(e,n)=>(hi(),gi(e,n)):hi;const Qd="",uc=["innerHTML"];function hc(e,n,t,a,r,i){const s=o.resolveComponent("skeleton");return e.loading?(o.openBlock(),o.createElementBlock("div",{key:0,class:"skeleton-wrapper",style:o.normalizeStyle(e.style)},[o.createVNode(s,{loading:e.loading},null,8,["loading"])],4)):(o.openBlock(),o.createElementBlock("div",{key:1,class:"ecan-text",style:o.normalizeStyle({...e.style,...e.gradientStyle}),innerHTML:e.myText,onClick:n[0]||(n[0]=(...l)=>e.click&&e.click(...l))},null,12,uc))}const mi=ge(ue(Ro,[["render",hc],["__scopeId","data-v-3cbb70ab"]])),gc=o.defineComponent({name:"EcanScrollText",setup(){return{text:o.ref("基础文本")}}}),Xd="",mc={class:"red"};function yc(e,n,t,a,r,i){return o.openBlock(),o.createElementBlock("div",mc,o.toDisplayString(e.text),1)}const yi=ge(ue(gc,[["render",yc],["__scopeId","data-v-4dd9c03e"]])),Io={...ve,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=ye(Io),xi=["timeChange"],xc=o.defineComponent({name:"EcanTimeDisplay",props:{...Oo},setup(e){const n=pe(e),t=()=>{const{format:c,operate:u}=e;let y=Ce();if(u){const{type:d,value:h,mode:m}=u;switch(d){case"add":y=y.add(h,m);break;case"minus":y=y.subtract(h,m)}}return y.format(c)},a=o.ref();o.watch(()=>[e.operate,e.format],()=>{a.value=t()},{immediate:!0,deep:!0}),o.watch(()=>e.updateInterval,()=>{f()},{deep:!0});let r=null;const i=()=>{clearInterval(r),r=null},l=Ae(e)("timeChange",()=>{}),f=()=>{r&&i();let c=1e3;const{value:u,mode:y}=e.updateInterval||{};u&&(c=c*u);const d={second:1,minute:60,hour:60*60,day:24*60*60};y&&(c=c*d[y]),r=setInterval(()=>{a.value=t(),l()},c)};return De(e,{timeChange:l}),o.onMounted(()=>{f()}),o.onUnmounted(()=>{i()}),{style:n,time:a}}}),t1="";function pc(e,n,t,a,r,i){return o.openBlock(),o.createElementBlock("div",{class:"time-display",style:o.normalizeStyle(e.style)},o.toDisplayString(e.time),5)}const pi=ge(ue(xc,[["render",pc],["__scopeId","data-v-b628fca2"]])),No={...ve,type:"ecanList",name:"列表",keyName:"列表",width:"330px",height:"80px",backgroundColor:"#0d215e",itemColSpan:"10px",itemRowSpan:"10px",useRanking:!0,useTitle:!1,sliceCount:6,columnCount:1,itemHeight:"32px",data:[{name:"a",age:12},{name:"b",age:14}],columns:[{key:"name"},{key:"age"}]},Lo=ye(No),bi=["refreshData","click"],bc=o.defineComponent({name:"EcanList",components:{Skeleton:tn},props:{...Lo},setup(e){const n=o.ref(e.data),t=pe(e,["backgroundColor"]),a=o.computed(()=>e.useRanking?{textAlign:"center"}:{textAlign:"left"}),r=(h,m)=>m==null||m===""?h:{money:Ao,percentage:hn,contrast:hn}[m](h)||"",i=(h,m)=>{const g=parseFloat(h+"");if(m!=="contrast")return"";switch(!0){case g>=0:return"goUp";case g<0:return"goDown"}},s=ze(e),l=o.ref(!1),f=async()=>{var h;if(e.dataType==="request")try{l.value=!0;const m=await s();n.value=((h=m==null?void 0:m.data)==null?void 0:h.data.rows)||[]}catch(m){console.error(m)}finally{l.value=!1}},c=()=>{f()},y=Ae(e)("click",()=>{});De(e,{refreshData:c});const{setRequest:d}=o.inject(Oe,{setRequest:({id:h,sortNum:m,requestFn:g})=>{}});return d({id:e.id,requestFn:f,sortNum:e.requestSort}),{style:t,formatFn:r,columnStyle:a,contrastClass:i,dataSource:n,loading:l,click:y}}}),o1="",a1="",vc=e=>(o.pushScopeId("data-v-7aa27677"),e=e(),o.popScopeId(),e),Sc={key:0,class:"title"},Cc={key:0,class:"ranking"},wc={key:1,class:"ecan-list-content"},Ac={key:0,class:"ranking"},kc=vc(()=>o.createElementVNode("div",{class:"icon"},null,-1)),Tc={class:"sort"},Bc={key:2,class:"empty"};function Ec(e,n,t,a,r,i){const s=o.resolveComponent("skeleton");return o.openBlock(),o.createElementBlock("div",{class:"ecan-list",style:o.normalizeStyle(e.style)},[o.createVNode(s,{loading:e.loading},{default:o.withCtx(()=>[e.useTitle?(o.openBlock(),o.createElementBlock("div",Sc,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.columnCount,l=>(o.openBlock(),o.createElementBlock("div",{class:"title-inner",style:o.normalizeStyle({backgroundColor:e.backgroundColor,height:e.itemHeight,width:`calc(100% / ${e.columnCount} - ${e.itemColSpan} * ${e.columnCount-1}/ ${e.columnCount})`,marginRight:l%e.columnCount!==0?e.itemColSpan:""}),key:l},[e.useRanking?(o.openBlock(),o.createElementBlock("div",Cc)):o.createCommentVNode("",!0),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.columns,(f,c)=>(o.openBlock(),o.createElementBlock("div",{class:"column",key:f.key||c,style:o.normalizeStyle({color:f.titleColor,...e.columnStyle})},o.toDisplayString(f.title),5))),128))],4))),128))])):o.createCommentVNode("",!0),e.dataSource.length>0?(o.openBlock(),o.createElementBlock("div",wc,[e.useTitle?(o.openBlock(),o.createElementBlock("div",{key:0,class:"title-placeholder",style:o.normalizeStyle({marginBottom:e.itemRowSpan})},null,4)):o.createCommentVNode("",!0),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.dataSource.slice(0,e.sliceCount),(l,f)=>(o.openBlock(),o.createElementBlock("div",{class:"item",style:o.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}),key:l.id||f,onClick:n[0]||(n[0]=(...c)=>e.click&&e.click(...c))},[e.useRanking?(o.openBlock(),o.createElementBlock("div",Ac,[kc,o.createElementVNode("div",Tc," Top "+o.toDisplayString(f+1),1)])):o.createCommentVNode("",!0),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.columns,c=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["column",e.contrastClass(l[c.key],c.format)]),key:c.key,style:o.normalizeStyle({fontSize:c.fontSize,color:e.contrastClass(l[c.key],c.format)===""?c.color:"",fontWeight:c.fontWeight,...e.columnStyle})},o.toDisplayString((c.format!=null||c.format!=="")&&e.formatFn(l[c.key],c.format)),7))),128))],4))),128))])):(o.openBlock(),o.createElementBlock("div",Bc," 暂无数据 "))]),_:1},8,["loading"])],4)}const vi=ge(ue(bc,[["render",Ec],["__scopeId","data-v-7aa27677"]])),Fo={...ve,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=ye(Fo),Si=["refreshData","click"],Dc=o.defineComponent({name:"EcanProportion",components:{AProgress:ie.Progress,Skeleton:tn},props:{...zo},setup(e,{expose:n}){const t=o.ref(!1),{pageMode:a}=o.inject(Fe,{pageMode:"normal"}),r=pe(e),i=o.computed(()=>{const x=e.width;return parseFloat(x)}),s=o.ref({});o.watch(()=>e.data,()=>{(e.dataType==="static"||o.unref(a)==="design")&&(s.value=e.data)},{immediate:!0,deep:!0});const l=o.computed(()=>{const x=o.unref(s),k=+e.variableDefaultValue;if(x==null)return isNaN(k)?0:k;const C=e.text.match(/\{.+\}/g)||[];let O;const N=new Set(Object.keys(x));for(let L=0;L<C.length;L++){const B=C[L],w=B.slice(1,B.length-1);if(N.has(w)){O=x[w];break}}return typeof O=="number"?O=O*100:typeof O=="string"&&!isNaN(+O)?O=+O*100:isNaN(k)?O=0:O=k*100,e.decimalFormat&&(O=+O.toFixed(2)),O}),f=o.computed(()=>{var N;let x=e.text;if(x==="")return o.unref(l);const k=e.variableDefaultValue,C=o.unref(s),O=x.match(/\{.+\}/g)||[];for(let L=0;L<O.length;L++){const B=O[L];let w=B.slice(1,B.length-1);const E=/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,S=B.match(E);for(let z=0;z<(S==null?void 0:S.length);z++){const I=(N=S[z])==null?void 0:N.trim();C[I]!=null&&(w=w.replace(I,C[I]))}let _=w;try{/\(.*\)/g.test(w)&&(_=mn(w))}catch(z){console.error(z)}typeof+_=="number"&&!isNaN(+_)?(_=+_*100,e.decimalFormat&&(_=_.toFixed(2))):_=k,x=x.replace(B,_+"")}return o.unref(t)?"NaN":x}),c=ze(e),u=o.ref(!1),y=async()=>{var x;if(e.dataType==="request")try{u.value=!0;const k=await c();s.value=((x=k==null?void 0:k.data)==null?void 0:x.data)||{}}catch(k){console.error(k)}finally{u.value=!1}},d=(x={})=>{s.value=x},h=it(e),m=async()=>{var x;try{u.value=!0;const k=await h(),{data:C}=(k==null?void 0:k.data)||{};if(C){t.value=!1;const{columns:O=[],rows:N=[]}=((x=k==null?void 0:k.data)==null?void 0:x.data)??{};let L={};if(O.length>0){const B=O.find(w=>!!w);B&&(L={percent:N[B]})}d(L)}else t.value=!0,d({percent:"NaN"})}catch(k){console.error(k)}finally{u.value=!1}},g=()=>{switch(e.dataType){case"indicator":m();break;case"request":y();break}};De(e,{refreshData:g}),n({refreshData:g});const D=Ae(e)("click",()=>{}),{setRequest:b}=o.inject(Oe,{setRequest:({id:x,sortNum:k,requestFn:C})=>{}});typeof b=="function"&&b({id:e.id,requestFn:g,sortNum:e.requestSort});const p=o.computed(()=>{const{gradientShow:x,gradientColor:k,gradientOffset:C,strokeColor:O}=e;let N=O;return x&&k&&(N={"0%":O,[`${C*100}%`]:k}),N});return{style:r,myWidth:i,text:f,myValue:l,loading:u,click:D,customStrokeColor:p}}}),i1="";function _c(e,n,t,a,r,i){const s=o.resolveComponent("skeleton"),l=o.resolveComponent("a-progress");return o.openBlock(),o.createElementBlock("div",{class:"ecan-proportion",style:o.normalizeStyle(e.style)},[o.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:o.withCtx(()=>[e.loading?(o.openBlock(),o.createBlock(s,{key:0,loading:e.loading},null,8,["loading"])):e.strokeTextShow?(o.openBlock(),o.createElementBlock("div",{key:1,class:"format",style:o.normalizeStyle({width:e.strokeTextWidth,fontSize:e.fontSize,color:e.color,fontWeight:e.fontWeight,lineHeight:e.lineHeight})},o.toDisplayString(e.text),5)):o.createCommentVNode("",!0)]),_:1},8,["percent","width","type","strokeColor","strokeLinecap","trailColor","strokeWidth","showInfo","gapDegree","onClick"])],4)}const Ci=ge(ue(Dc,[["render",_c],["__scopeId","data-v-cf942b5f"]])),Mo={...ve,width:"200px",id:"",left:"0px",top:"0px",name:"输入框",keyName:"输入框",rotate:"",type:"ecanInput",value:"",placeholder:"请输入文字",optionFontSize:"14px"},Po=ye(Mo),wi=["inputChange","inputBlur"],Rc=o.defineComponent({name:"EcanInput",components:{AInput:ie.Input},props:{...Po},setup(e){const n=pe(e),t=o.ref("");o.watch(()=>e.value,c=>{t.value=c},{immediate:!0});const{getGlobalModel:a,setGlobalModel:r}=o.inject(we,{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=Ae(e),l=Le.debounce(s("inputChange",()=>{i()}),300),f=s("inputBlur",()=>{});return{style:n,myValue:t,inputBlur:f,inputChange:l}}}),s1="";function Ic(e,n,t,a,r,i){const s=o.resolveComponent("a-input");return o.openBlock(),o.createElementBlock("div",{class:"ecan-input",style:o.normalizeStyle(e.style)},[o.createVNode(s,{class:"input",value:e.myValue,"onUpdate:value":n[0]||(n[0]=l=>e.myValue=l),placeholder:e.placeholder,onChange:e.inputChange,onBlur:e.inputBlur,style:o.normalizeStyle({fontSize:e.optionFontSize})},null,8,["value","placeholder","onChange","onBlur","style"])],4)}const Ai=ge(ue(Rc,[["render",Ic]])),Ho={...ve,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"},qo=ye(Ho),ki=["dateChange"],Vo=o.defineComponent({name:"EcanDatePicker",props:{...qo},components:{ADatePicker:ie.DatePicker},setup(e){const n=o.inject("scaleValue",{widthScale:"1",heightScale:"1"}),t=pe(e),a=()=>document.getElementById("ProviderConfig")||document.body,r=o.ref(null);o.watch(()=>[e.value,e.useCurrentTime,e.operate],([d,h,m])=>{let g=null;if(d?g=Ce(ke(d)):h&&(g=Ce()),m&&g){const{type:v,value:D,mode:b}=m;switch(v){case"add":g=g.add(D,b);break;case"minus":g=g.subtract(D,b)}}r.value=g},{deep:!0,immediate:!0});const{setGlobalModel:i}=o.inject(we,{setGlobalModel:(d,h)=>{}});i(e.id,{type:e.type,format:e.format,useCurrentTime:e.useCurrentTime,value:r});const l=Ae(e)("dateChange",()=>{}),f=()=>{o.unref(r)&&l()};De(e,{dateChange:l});const c=o.ref({}),u=o.ref({}),y=d=>{d?setTimeout(()=>{u.value=o.unref(c)},300):u.value={}};return o.onMounted(()=>{setTimeout(()=>{const d=document.querySelector(`#ecan-date-picker-${e.id}`);if(d){const h=d.getBoundingClientRect(),m=parseFloat(o.unref(n).widthScale)*280;document.body.clientWidth-h.left<m&&(c.value.marginLeft=-1*(m-h.width)+"px")}},0)}),{style:t,getPopupContainer:a,myValue:r,locale:Ia,change:f,scaleValue:n,popupStyle:c,customStyle:u,openChange:y}}}),Ti=()=>{o.useCssVars(e=>({d6fb5b46:e.optionFontSize}))},Bi=Vo.setup;Vo.setup=Bi?(e,n)=>(Ti(),Bi(e,n)):Ti;const f1="",d1="",Oc=["id"];function Nc(e,n,t,a,r,i){const s=o.resolveComponent("a-date-picker");return o.openBlock(),o.createElementBlock("div",{class:"ecan-date-picker",style:o.normalizeStyle(e.style),id:"ecan-date-picker-"+e.id},[o.createVNode(s,{class:"date-picker",dropdownClassName:"ecan-date-picker-dropdown",value:e.myValue,"onUpdate:value":n[0]||(n[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,Oc)}const Ei=ge(ue(Vo,[["render",Nc],["__scopeId","data-v-d4ec0d66"]])),jo={...ve,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},Go=ye(jo),Di=["dateChange"];var _i={exports:{}};(function(e,n){(function(t,a){e.exports=a()})(le,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 y=this.$utils(),d=!!y.u(u)||u;if(y.p(c)===a){var h=this.quarter()-1;return d?this.month(3*h).startOf(t).startOf("day"):this.month(3*h+2).endOf(t).endOf("day")}return f.bind(this)(c,u)}}})})(_i);var Lc=_i.exports;const Fc=ir(Lc);Ce.extend(Fc);const Wo=o.defineComponent({name:"EcanRangePicker",components:{ARangePicker:ie.RangePicker},props:{...Go},setup(e){const n=pe(e),t=()=>document.getElementById("ProviderConfig")||document.body,a=o.ref([null,null]);o.watch(()=>[e.startTime,e.endTime,e.useCurrentTime,e.interval,e.intervalUnit,e.operate],([p,x,k,C,O,N])=>{let L=null,B=null;if(k&&(L=Ce().subtract(C,O),B=Ce()),p&&(L=Ce(ke(p))),x&&(B=Ce(ke(x))),N){const{type:w,value:E,mode:S}=N;switch(w){case"add":L=L&&L.add(E,S),B=B&&B.add(E,S);break;case"minus":L=L&&L.subtract(E,S),B=B&&B.subtract(E,S)}}a.value=[L,B]},{immediate:!0});let r=o.unref(a)[0],i=o.unref(a)[1],s="";const l=(p,x,k)=>{Array.isArray(p)?(r=p[0],i=p[1],s=k.range):(r=null,i=null)},f=p=>{let x=!1,{limitStartTime:k,limitEndTime:C}=e;const O={startTime:`${r||""}`,endTime:`${i||""}`};if(k=ke(k,{codeData:O}),C=ke(C,{codeData:O}),k&&C?x=!(Ce(k)<p&&p<Ce(C)):k?x=Ce(k)>p:C&&(x=Ce(C)<p),!e.isAllowSpanYear&&s){let N=null;if(s==="start"?N=r:s==="end"&&(N=i),N){const L=N.startOf("year"),B=N.endOf("year");x=!(L<=p&&p<B)}}return x},{getGlobalModel:c,setGlobalModel:u}=o.inject(we,{getGlobalModel:p=>{},setGlobalModel:(p,x)=>{}}),y=o.computed(()=>Array.isArray(o.unref(a))?o.unref(a)[0]:null),d=o.computed(()=>Array.isArray(o.unref(a))?o.unref(a)[1]:null);u(e.id,{type:e.type,format:e.format,startTime:y,endTime:d,interval:e.interval,intervalUnit:e.intervalUnit,useCurrentTime:e.useCurrentTime,operate:e.operate});const h=Ae(e);let m=!1;const g=h("dateChange",()=>{}),v=p=>{const x=o.unref(a),k=x&&x[0]&&x[1];p===!1&&m===!0&&k&&(g(),m=!1),p||(s="")},D=()=>{m=!0};return De(e,{dateChange:()=>{const{associated:p}=e;if(p){const x=c(p)||{};if(x){const{value:k}=x;if(k)switch(o.unref(k)){case"month":a.value=[Ce().startOf("month"),Ce().endOf("month")];break;case"quarter":a.value=[Ce().startOf("quarter"),Ce().endOf("quarter")];break;case"year":a.value=[Ce().startOf("year"),Ce().endOf("year")];break}}}g()}}),{style:n,getPopupContainer:t,locale:Ia,dateChange:g,myValue:a,disabledDate:f,calendarChange:l,openChange:v,change:D}}}),Ri=()=>{o.useCssVars(e=>({"70b68802":e.optionFontSize}))},Ii=Wo.setup;Wo.setup=Ii?(e,n)=>(Ri(),Ii(e,n)):Ri;const h1="",g1="";function zc(e,n,t,a,r,i){const s=o.resolveComponent("a-range-picker");return o.openBlock(),o.createElementBlock("div",{class:"ecan-range-picker",style:o.normalizeStyle(e.style)},[o.createVNode(s,{class:"range-picker",dropdownClassName:"ecan-range-picker-dropdown",value:e.myValue,"onUpdate:value":n[0]||(n[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 Oi=ge(ue(Wo,[["render",zc],["__scopeId","data-v-95653c92"]])),Uo={...ve,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=ye(Uo),Ni=["click"],Mc=o.defineComponent({name:"EcanButton",components:{AButton:ie.Button},props:{...$o},setup(e){const n=pe(e),a=Ae(e)("click",()=>{const f=o.unref(s);f&&e.target==="event"&&window.parent.postMessage({type:"openPage",url:f},"*")}),r=o.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=o.computed(()=>ke(e.text)),s=o.computed(()=>ke(e.href)||null),l=o.computed(()=>{const f=e.target;if(!(f==="event"||o.unref(s)==null))return{self:"_self",blank:"_blank"}[f]});return{style:n,click:a,myText:i,myHref:s,myTarget:l,buttonStyle:r}}}),y1="";function Pc(e,n,t,a,r,i){const s=o.resolveComponent("a-button");return o.openBlock(),o.createElementBlock("div",{class:"ecan-button",style:o.normalizeStyle(e.style)},[o.createVNode(s,{block:"",onClick:e.click,type:e.mode,danger:e.danger,shape:e.shape,href:e.myHref,target:e.myTarget,style:o.normalizeStyle(e.buttonStyle),class:o.normalizeClass(e.tooltipTextStyleColor?"custom-color":"")},{default:o.withCtx(()=>[o.createElementVNode("span",{style:o.normalizeStyle({fontSize:e.fontSize,fontWeight:e.fontWeight})},o.toDisplayString(e.myText),5)]),_:1},8,["onClick","type","danger","shape","href","target","style","class"])],4)}const Li=ge(ue(Mc,[["render",Pc]])),Zo={...ve,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=ye(Zo),Fi=["checkboxChange"],Hc=o.defineComponent({name:"EcanCheckbox",components:{ACheckboxGroup:ie.CheckboxGroup},props:{...Yo},setup(e,{expose:n}){const t=pe(e),a=o.ref([]),r=o.ref([]),i=v=>{const D=e.value;let b=[];v.forEach(p=>{p.checked&&b.push(p.value)}),typeof D=="string"&&D!==""?b=b.concat(D.split(",")):Array.isArray(D)&&(b=b.concat(D)),a.value=v,r.value=b};o.watch(()=>[e.data,e.value],([v])=>{i(v)},{immediate:!0,deep:!0});const s=ze(e),l=async()=>{var b,p;if(e.dataType!=="request")return;const v=await s(),D=((p=(b=v==null?void 0:v.data)==null?void 0:b.data)==null?void 0:p.rows)||[];i(D)},{getGlobalModel:f,setGlobalModel:c}=o.inject(we,{getGlobalModel:v=>{},setGlobalModel:(v,D)=>{}});c(e.id,{type:e.type,value:r});const y=Ae(e)("checkboxChange",()=>{const v=f(e.id);c(e.id,{...v,RECORD:r})}),d=it(e),h=async()=>{var v;try{const D=await d(),{data:b}=(D==null?void 0:D.data)||{};if(b){const x=(((v=D==null?void 0:D.data)==null?void 0:v.data)??[]).map(k=>({label:k.label,value:k.value}));i(x)}else i([])}catch(D){console.error(D)}},m=()=>{switch(e.dataType){case"indicator":h();break;case"request":l();break}},{setRequest:g}=o.inject(Oe,{setRequest:({id:v,sortNum:D,requestFn:b})=>{}});return typeof g=="function"&&g({id:e.id,requestFn:m,sortNum:e.requestSort}),n({refreshData:m}),{myOption:a,style:t,myValue:r,checkboxChange:y}}}),p1="";function qc(e,n,t,a,r,i){const s=o.resolveComponent("a-checkbox-group");return o.openBlock(),o.createElementBlock("div",{class:"ecan-checkbox",style:o.normalizeStyle(e.style)},[o.createVNode(s,{options:e.myOption,value:e.myValue,"onUpdate:value":n[0]||(n[0]=l=>e.myValue=l),onChange:e.checkboxChange},null,8,["options","value","onChange"])],4)}const zi=ge(ue(Hc,[["render",qc]])),Ko={...ve,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=ye(Ko),Mi=["selectChange","refreshData"],Vc=o.defineComponent({name:"EcanSelect",components:{ASelect:ie.Select,ASelectOption:ie.SelectOption},props:{...Qo},setup(e,{expose:n}){const t=pe(e),a=()=>document.getElementById("ProviderConfig")||document.body,r=ze(e),i=o.ref(e.data||[]),s=o.ref(),l=o.computed({get:()=>{var _;const{mode:S}=e;return(_=o.unref(i))!=null&&_.length?s.value:S==="multiple"||S==="tags"||S==="combobox"?[]:""},set:S=>{s.value=S}});o.watch(()=>[e.value,e.mode,e.selectFirstOption,e.valueType,i.value],()=>{const{mode:S,selectFirstOption:_,value:z}=e;S==="multiple"||S==="tags"||S==="combobox"?z?s.value=z.split(","):_&&(s.value=[o.unref(i)[0]]):z?s.value=z:_&&(s.value=o.unref(i)[0])},{immediate:!0});const f=e.dataFieldNames,c=(S,_)=>{const z=f.label,I=f.value;let M;const H=_[z],j=_[I];return H!=null?M=H:j!=null&&(M=j),(M==null?void 0:M.toLowerCase().indexOf(S==null?void 0:S.toLowerCase()))>=0},u=S=>{const{label:_,value:z,options:I}=e.dataFieldNames;if(I&&Array.isArray(S))if(S.some(M=>I in M)){const M={},H=[];S.forEach(j=>{M[j[I]]||(M[j[I]]=[]),M[j[I]].push({[_]:j[_],[z]:j[z]})});for(const j in M)H.push({[_]:j,[I]:M[j]});return H}else return S;else if(!I)return S},y=o.ref(!1),d=async()=>{var S,_;if(e.dataType==="request"){y.value=!0;try{const z=await r();if(i.value=u(((_=(S=z==null?void 0:z.data)==null?void 0:S.data)==null?void 0:_.rows)||[]),e.selectFirstOption){let I=o.unref(i)[0];if(f.options){const M=I[f.options];M&&M.length&&(I=M[0])}s.value=I[f.value]}}catch(z){console.error(z)}finally{y.value=!1}}},{getGlobalModel:h,setGlobalModel:m}=o.inject(we,{getGlobalModel:S=>{},setGlobalModel:(S,_)=>{}}),{setLoadedData:g,loadedData:v}=o.inject(mt,{setLoadedData:(S,_)=>{},loadedData:{}}),D=o.computed(()=>{let S=s.value;if(e.valueType==="label"&&o.unref(s)&&o.unref(i)){const _=f.label,z=f.value;if(e.mode==="multiple")S=o.unref(i).filter(I=>o.unref(s).includes(I[z])).map(I=>I[_]);else{const I=o.unref(i).find(M=>o.unref(s)===M[z]);I&&(S=I[_])}}return S}),b=o.ref([]),p=o.computed(()=>{const S={};if(e.mode!=="multiple"){const _=o.unref(b).find(z=>z.value===o.unref(s));_&&(S.itemCodes=_.item_codes)}return S});m(e.id,{type:e.type,value:D,...o.unref(p)});const k=Ae(e)("selectChange",()=>{const S=e.id,_=h(S);m(S,{..._,...o.unref(p),RECORD:D})}),C=(S=[])=>{if(i.value=u(S),e.selectFirstOption){let _=o.unref(i)[0];if(f.options){const z=_[f.options];z&&z.length&&(_=z[0])}s.value=_[f.value]}},O=it(e),N=async()=>{var S;try{y.value=!0;const _=await O(),{data:z}=(_==null?void 0:_.data)||{},I=f.label,M=f.value;if(z){const H=((S=_==null?void 0:_.data)==null?void 0:S.data)??[];b.value=H;const j=H.map(R=>({[I]:R.label,[M]:R.value})),{id:P}=e,A=h(P);m(P,{...A,...o.unref(p)}),g(P,!0),C(j)}else C([])}catch(_){console.error(_)}finally{y.value=!1}},L=o.computed(()=>{var S,_;return(_=(S=e==null?void 0:e.graphicConfig)==null?void 0:S.controlList)==null?void 0:_.find(z=>z.mode==="cascade")}),B=o.ref(!1);o.watch(v,S=>{!o.unref(B)&&o.unref(L)&&S[o.unref(L).id]&&(B.value=!0,w())},{deep:!0});const w=()=>{switch(e.dataType){case"indicator":{o.unref(L)?o.unref(v)[o.unref(L).id]&&N():N();break}case"request":d();break}};De(e,{selectChange:k,refreshData:w});const{setRequest:E}=o.inject(Oe,{setRequest:({id:S,sortNum:_,requestFn:z})=>{}});return typeof E=="function"&&E({id:e.id,requestFn:w,sortNum:e.requestSort}),n({refreshData:w}),{style:t,getPopupContainer:a,myValue:s,selectChange:k,options:i,filterOption:c,loading:y,resultValue:l}}}),v1="",S1="";function jc(e,n,t,a,r,i){const s=o.resolveComponent("a-select-option"),l=o.resolveComponent("a-select");return o.openBlock(),o.createElementBlock("div",{class:"ecan-select",style:o.normalizeStyle(e.style)},[o.createVNode(l,{class:"select",value:e.resultValue,"onUpdate:value":n[0]||(n[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:o.normalizeStyle({fontSize:e.optionFontSize})},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.options,(f,c)=>(o.openBlock(),o.createBlock(s,{key:c,value:f.value,label:f.label,style:o.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 Pi=ge(ue(Vc,[["render",jc],["__scopeId","data-v-e59f5cca"]])),Jo={...ve,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=ye(Jo),Hi=["selectChange","refreshData"],Gc={name:"EcanTreeSelect",components:{ATreeSelect:ie.TreeSelect},props:{...Xo},setup(e){const n=pe(e),t=o.ref(e.data),a=(h,m)=>{const g=e.dataFieldNames,v=g.label,D=g.value;let b;const p=m[v],x=m[D];return p!=null?b=p:x!=null&&(b=x),(b==null?void 0:b.toLowerCase().indexOf(h==null?void 0:h.toLowerCase()))>=0},r=o.ref();o.watch(()=>[e.multiple,e.value,e.treeCheckable,e.selectFirstOption],()=>{const{multiple:h,value:m,selectFirstOption:g}=e;h?m?r.value=m.split(","):g&&(r.value=[o.unref(t)[0]]):m?r.value=m:g&&(r.value=o.unref(t)[0])},{immediate:!0});const i=o.ref(!1),s=ze(e),l=async()=>{var h,m;if(e.dataType==="request"){i.value=!0;try{const g=await s();t.value=((m=(h=g==null?void 0:g.data)==null?void 0:h.data)==null?void 0:m.rows)||[];const v=o.unref(t)[0];e.value===""&&v!=null&&(r.value=v[e.dataFieldNames.value])}catch(g){console.error(g)}finally{i.value=!1}}},{getGlobalModel:f,setGlobalModel:c}=o.inject(we,{getGlobalModel:h=>{},setGlobalModel:(h,m)=>{}});c(e.id,{type:e.type,value:r});const y=Ae(e)("selectChange",()=>{const h=e.id,m=f(h);c(h,{...m,RECORD:r})});De(e,{selectChange:y,refreshData:l});const{setRequest:d}=o.inject(Oe,{setRequest:({id:h,sortNum:m,requestFn:g})=>{}});return d({id:e.id,requestFn:l,sortNum:e.reque}),{style:n,treeData:t,filterTreeNode:a,myValue:r,loading:i,selectChange:y}}},w1="",A1="";function Wc(e,n,t,a,r,i){const s=o.resolveComponent("a-tree-select");return o.openBlock(),o.createElementBlock("div",{class:"ecan-tree-select",style:o.normalizeStyle(a.style)},[o.createVNode(s,{class:"tree-select",value:a.myValue,"onUpdate:value":n[0]||(n[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 qi=ge(ue(Gc,[["render",Wc],["__scopeId","data-v-37236421"]])),ea={...ve,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=ye(ea),Vi=["checkboxChange","click"],Uc=o.defineComponent({name:"EcanRadio",components:{ARadioGroup:ie.RadioGroup,ARadioButton:ie.RadioButton,ARadio:ie.Radio},props:{...ta},setup(e,{expose:n}){const t=pe(e),a=o.ref([]),r=o.ref(""),i=p=>{const x=e.value;let k=[];typeof x=="string"&&x!==""?k=k.concat(x.split(",")):Array.isArray(x)&&(k=k.concat(x)),a.value=p,r.value=k[0]||""};o.watch(()=>[e.data,e.value],([p])=>{i(p)},{immediate:!0,deep:!0});const s=ze(e),l=async()=>{var k,C;if(e.dataType!=="request")return;const p=await s(),x=((C=(k=p==null?void 0:p.data)==null?void 0:k.data)==null?void 0:C.rows)||[];i(x)},{getGlobalModel:f,setGlobalModel:c}=o.inject(we,{getGlobalModel:p=>{},setGlobalModel:(p,x)=>{}});c(e.id,{type:e.type,value:r});const u=Ae(e),y=u("checkboxChange",()=>{const p=f(e.id);c(e.id,{...p,RECORD:r})}),d=p=>{r.value=p,u("click",()=>{const x=f(e.id);c(e.id,{...x,RECORD:r})})()};o.watch(r,()=>{y()});const h=it(e),m=async()=>{var p;try{const x=await h(),{data:k}=(x==null?void 0:x.data)||{};if(k){const O=(((p=x==null?void 0:x.data)==null?void 0:p.data)??[]).map(N=>({label:N.label,value:N.value}));i(O)}else i([])}catch(x){console.error(x)}},g=()=>{switch(e.dataType){case"indicator":m();break;case"request":l();break}},{setRequest:v}=o.inject(Oe,{setRequest:({id:p,sortNum:x,requestFn:k})=>{}});typeof v=="function"&&v({id:e.id,requestFn:g,sortNum:e.requestSort});const D=p=>{r.value=p.value},b=o.computed(()=>e.tabFlexDirection==="column"?{display:"flex",height:"30px",lineHeight:"30px"}:{});return n({refreshData:g}),{myOption:a,style:t,myValue:r,radioStyle:b,onClickButton:d,useImagePath:vt,tabChange:D}}}),T1="",B1="",$c=["onClick"];function Zc(e,n,t,a,r,i){const s=o.resolveComponent("a-radio"),l=o.resolveComponent("a-radio-button"),f=o.resolveComponent("a-radio-group");return o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["ecan-radio",e.optionType]),style:o.normalizeStyle(e.style)},[e.tabBackgroundImage&&e.activeTabBackgroundImage?(o.openBlock(),o.createElementBlock("div",{key:0,class:"tabs-header",style:o.normalizeStyle({fontSize:e.tabFontSize,flexDirection:e.tabFlexDirection,alignItems:e.tabTextAlign})},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.myOption,(c,u)=>(o.openBlock(),o.createElementBlock("div",{class:"tab",style:o.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:o.withModifiers(y=>e.tabChange(c),["prevent","stop"])},[o.createElementVNode("div",{class:"tab-inner",style:o.normalizeStyle({borderBottom:!e.activeTabBackgroundImage&&!e.tabBackgroundImage?`1px solid ${e.myValue===c.value?e.activeTabColor:"transparent"}`:""})},o.toDisplayString(c.label),5)],12,$c))),128))],4)):(o.openBlock(),o.createBlock(f,{key:1,value:e.myValue,"onUpdate:value":n[0]||(n[0]=c=>e.myValue=c)},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.myOption,c=>(o.openBlock(),o.createElementBlock(o.Fragment,{key:c.value},[e.optionType==="default"?(o.openBlock(),o.createBlock(s,{key:0,value:c.value,style:o.normalizeStyle(e.radioStyle)},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(c.label),1)]),_:2},1032,["value","style"])):e.optionType==="button"?(o.openBlock(),o.createBlock(l,{key:1,value:c.value,onClick:u=>e.onClickButton(c.value)},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(c.label),1)]),_:2},1032,["value","onClick"])):o.createCommentVNode("",!0)],64))),128))]),_:1},8,["value"]))],6)}const ji=ge(ue(Uc,[["render",Zc],["__scopeId","data-v-baa84768"]])),na={...ve,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"},oa=ye(na),Gi=["click","refreshData","resetRecord"],Vt=async e=>{var f;const n=await lt.post(e,{},{responseType:"blob"}),{data:t,headers:a}=n,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},ra=ye(aa),Wi=["showModal","hideModal"];function Ui(e){var r,i;const{componentList:n,containerMap:t,combinationMap:a={}}=e;if((r=Object.keys(t))!=null&&r.length||(i=Object.keys(a))!=null&&i.length){for(const y in t){const d=n.find(h=>h.id===y);if(d){gn(d,"parentId")||(d.parentId="",d.sourceLeft=d.left,d.sourceTop=d.top);for(const h in t[y])if(t[y][h])for(const m of t[y][h]){const g=n.find(v=>v.id===m);g&&(g.parentId=y,g.sourceLeft=g.left,g.sourceTop=g.top,g.left=parseFloat(g.left)-parseFloat(d.sourceLeft||d.left)+"px",g.top=parseFloat(g.top)-parseFloat(d.sourceTop||d.top)+"px")}}}const s=Array.from(new Set(n.filter(y=>(!gn(y,"parentId")||y.parentId==="")&&y.combinationId).map(y=>y.combinationId))),l=[];for(const y of s){const d=a[y];if(d!=null&&d.length){const h=n.filter(m=>d.includes(m.id));if(h!=null&&h.length){const m=Kc(h);if(m){l.push({...m,id:y,keyName:y,parentId:"",type:"ecanBorder",borderRadius:"",borderWidth:null,sourceLeft:m.left,sourceTop:m.top});for(const g of h)g&&(g.parentId=y,g.sourceLeft=g.left,g.sourceTop=g.top,g.left=parseFloat(g.left)-parseFloat(m.left)+"px",g.top=parseFloat(g.top)-parseFloat(m.top)+"px")}}}}l!=null&&l.length&&n.unshift(...l);const f=["ecanPie","ecanLine","ecanBar","ecanScatter","ecanComboGraph","ecanCustomGraph","ecanRadar","ecanMap"],c=n.filter(y=>f.includes(y.type)&&!gn(y,"parentId")),u=[];for(const y of c)if(y){const d=y.id+"_vir";u.push({id:d,keyName:y.keyName+"_vir",parentId:"",type:"ecanBorder",borderRadius:"",borderWidth:null,width:y.width,height:y.height,left:y.left,top:y.top,sourceLeft:y.left,sourceTop:y.top}),y.parentId=d,y.sourceLeft=y.left,y.sourceTop=y.top,y.left=0,y.top=0}u!=null&&u.length&&n.unshift(...u);for(const y of n){const d=document.body.clientWidth;if(y.parentId===""&&["ecanBorder","ecanTabs"].includes(y.type))y.sourceWidth=parseFloat(y.width),y.height=(d/(y.sourceWidth/parseFloat(y.height))).toFixed(2)+"px",y.width="100%",y.position="relative",y.top="auto",y.left="auto";else{const h=n.find(m=>m.id===y.parentId);if((h==null?void 0:h.parentId)===""){const m=h.sourceWidth||parseFloat(h.width),g=d/m;y.scale=g,y.top=parseFloat(y.top)*g-parseFloat(y.height)*(1-g)/2+"px",y.left=parseFloat(y.left)*g-parseFloat(y.width)*(1-g)/2+"px"}}y.type==="ecanModal"&&(y.parentId="",y.fullModal=!0)}return Yc(n)}return n}function Yc(e){const t=e.filter(a=>a.parentId==="");if(t!=null&&t.length){const a=Le.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 Kc(e){const n=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 n&&t&&a&&r?{left:t.left,top:n.top,width:r.computedLeft-parseFloat(t.left)+"px",height:a.computedTop-parseFloat(n.top)+"px"}:null}const Qc=o.defineComponent({name:"Render",props:{component:{type:Object,default:()=>{}}},setup(e,{emit:n}){n("ready",e.component.id)}});function Jc(e,n,t,a,r,i){return e.component.parentId?(o.openBlock(),o.createBlock(o.Teleport,{key:0,to:"#container_"+e.component.parentId},[(o.openBlock(),o.createBlock(o.resolveDynamicComponent(e.component.type),o.mergeProps({style:{scale:e.component.scale}},e.component),null,16,["style"]))],8,["to"])):(o.openBlock(),o.createBlock(o.resolveDynamicComponent(e.component.type),o.normalizeProps(o.mergeProps({key:1},e.component)),null,16))}const Xc=ge(ue(Qc,[["render",Jc]])),ef=o.defineComponent({name:"EcanModal",components:{AModal:ie.Modal,CloseOutlined:Pl,Render:Xc},props:{...ra},setup(e,{emit:n}){const t=o.ref([]),a=o.inject("isMobile",!1),r=o.inject("getContainerMap",()=>{}),i=o.inject("getCombinationMap",()=>{}),{clearInteractiveData:s,interactiveData:l}=o.inject(we,{clearInteractiveData:()=>{},interactiveData:null}),f=()=>document.getElementById("ProviderConfig")||document.body,c=o.computed(()=>{const Q=e.position;return{verticalAlign:{default:"",top:"top",center:"middle",bottom:"bottom"}[Q]}}),u=e.fullModal?"1920px":e.width,y=e.fullModal?"1080px":e.height,d=e.originalWidth,h=e.originalHeight,m=o.ref("80%"),g=o.ref(0),v=o.ref(),D=o.ref(0),b=o.ref({}),p=pe(e),x=o.ref({}),k=o.ref(!1),C=o.ref();let O;const N=()=>{v.value=parseFloat(u)/parseFloat(d);const Q=parseFloat(y)/parseFloat(h),Y=document.body.offsetWidth,X=document.body.offsetHeight;g.value=Y*o.unref(v),D.value=X*Q,m.value=`${o.unref(v)*100}%`,b.value={width:`${o.unref(g)}px`,height:`${o.unref(D)}px`},x.value={...o.unref(p),backgroundImage:vt(e.backgroundImage,!0)},a?x.value={...x.value,width:"100%",height:"100%"}:x.value={...x.value,transform:`scale(${o.unref(g)/parseFloat(u)},${o.unref(D)/parseFloat(y)})`,width:u,height:y}},L=Le.debounce(()=>{N()},100),B=()=>{const Q=window.MutationObserver;O=new Q(L),O.observe(document.body,{attributes:!0,attributeFilter:["style"],attributeOldValue:!0})},w=()=>{O&&(O.disconnect(),O.takeRecords(),O=null)},E=o.ref(!1),{touchRequest:S}=o.inject(Oe,{touchRequest:()=>{}}),_=o.ref(""),z=()=>{var X;console.log("interactiveData",l);const{title:Q}=e,Y=(X=o.unref(l))==null?void 0:X.RECORD;return Y?ke(Q,{textData:Y},{useNewline:!1,useSpace:!1}):Q},I=()=>{a&&(document.documentElement.style.overflow="hidden"),_.value=z(),E.value=!0},M=()=>{n("close"),a&&(document.documentElement.style.overflow="hidden auto",t.value=[]),E.value=!1},H=()=>{M()},j=()=>{M(),s()},{setModalModel:P,pushUseModalIds:A,popUseModalIds:R}=o.inject(nr,{pushUseModalIds:Q=>{},popUseModalIds:()=>{},setModalModel:(Q,Y)=>{}}),T=o.computed(()=>{if(a){const Q=Le.cloneDeep(e.componentList),Y=r(),X=i();return Ui({componentList:Q,containerMap:Y,combinationMap:X})}else return e.componentList}),F=()=>{const Q=e.id;let Y=[];const X=e.componentList;Array.isArray(X)&&(Y=X.map(oe=>oe.id),P(Q,[...new Set(Y)]))};o.watch(()=>E.value,async Q=>{Q?(k.value=!1,A(e.id),F(),await o.nextTick(()=>{N(),window.addEventListener("resize",L),B(),k.value=!0}),S()):(R(),window.removeEventListener("resize",L),w())});const W=o.computed(()=>o.unref(v)>=1),$=o.computed(()=>e.fullModal),te=o.computed(()=>{let Q="ecan-modal";return o.unref(W)&&(Q+=" ecan-full-width-modal"),o.unref($)&&(Q+=" ecan-full-modal"),Q});return De(e,{showModal:I,hideModal:M}),{modalRef:C,containStyle:b,contentStyle:x,getContainer:f,modalStyle:c,modalWith:m,isFullModal:$,style:p,visible:E,showModal:I,onOk:H,onCancel:j,isFullWidth:W,wrapClassName:te,ready:k,usedComponentList:T,isMobile:a,readyIds:t,hasOwn:gn,onComponentReady:Q=>{t.value.push(Q)},formatTitle:_}}}),_1="",R1="";function tf(e,n,t,a,r,i){const s=o.resolveComponent("close-outlined"),l=o.resolveComponent("render"),f=o.resolveComponent("a-modal");return o.openBlock(),o.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:o.normalizeStyle(e.modalStyle),closable:!1,onOk:e.onOk,onCancel:e.onCancel,ref:"modalRef",id:"container_"+e.id},{default:o.withCtx(()=>[o.createElementVNode("div",{class:"contain",ref:"containRef",style:o.normalizeStyle(e.containStyle)},[e.ready?(o.openBlock(),o.createElementBlock("div",{key:0,class:"content",style:o.normalizeStyle(e.contentStyle)},[o.createElementVNode("div",{class:"header-bar",style:o.normalizeStyle({backgroundColor:e.backgroundColor,padding:"20px 30px",height:e.isMobile?"62px":""})},[e.formatTitle?(o.openBlock(),o.createElementBlock("div",{key:0,class:"ant-modal-title",style:o.normalizeStyle({fontSize:e.titleFontSize,color:e.titleColor})},o.toDisplayString(e.formatTitle),5)):o.createCommentVNode("",!0),e.isShowCloseBtn?(o.openBlock(),o.createBlock(s,{key:1,class:"close-icon",style:o.normalizeStyle({color:e.closeBtnColor}),onClick:e.onCancel},null,8,["style","onClick"])):o.createCommentVNode("",!0)],4),e.usedComponentList.length?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(e.isMobile?"mobile-wrap":"")},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.usedComponentList,(c,u)=>(o.openBlock(),o.createElementBlock(o.Fragment,{key:c.id+u},[e.isMobile?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[e.hasOwn(c,"parentId")&&(e.readyIds.includes(c.parentId)||c.parentId==="")?(o.openBlock(),o.createBlock(l,{key:0,component:c,onReady:e.onComponentReady},null,8,["component","onReady"])):o.createCommentVNode("",!0)],64)):(o.openBlock(),o.createBlock(o.resolveDynamicComponent(c.type),o.normalizeProps(o.mergeProps({key:1},c)),null,16))],64))),128))],2)):o.renderSlot(e.$slots,"default",{key:1},void 0,!0)],4)):o.createCommentVNode("",!0)],4)]),_:3},8,["getContainer","wrapClassName","visible","width","destroyOnClose","style","onOk","onCancel","id"])}const St=ge(ue(ef,[["render",tf],["__scopeId","data-v-8cf8fa7d"]]));Ge.use([At.CanvasRenderer,ct.PieChart,be.TitleComponent,be.ToolboxComponent,be.TooltipComponent,be.LegendComponent]);const nf=o.defineComponent({name:"EcanPie",props:{...oa},components:{Spin:_t,Echarts:ht,EcanModal:St},setup(e,{expose:n}){const t=o.ref(!1),a=pe(e),r=o.ref([]),i=o.ref(),s=o.ref({}),l=o.computed(()=>{let{data:w=[]}=o.unref(r)[0]||{};if(Array.isArray(e.colors)){const E=e.isUseLabelColors,S=e.colors;w=w.map((_,z)=>({label:E?{color:S[z]}:{},..._}))}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(){Vt(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 E;t.value=!0,(E=i.value)==null||E.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(){ie.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:E=>{const{marker:S,seriesName:_,name:z,value:I,percent:M,data:H}=E||{};return ke(e.tooltipFormatter,{textData:{marker:S,name:z,value:I,percent:M,a:_,b:z,c:I,d:M,...H}},{useNewline:!0,useSpace:!0})},textStyle:{color:e.tooltipTextStyleColor},position:e.tooltipPosition||void 0},legend:o.unref(s),color:e.colors,series:[{data:w,type:"pie",radius:[e.innerRadius,e.outerRadius],center:[e.centerLeft,e.centerTop],roseType:e.roseType,avoidLabelOverlap:!1,minAngle:e.minAngle,label:{show:e.labelPosition!=="center"&&e.labelShow,color:e.labelColor,fontSize:t.value?at:e.labelFontSize,position:e.labelPosition,formatter:nc(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=()=>{s.value={show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,align:"left",textStyle:{color:e.legendTextStyleColor,fontSize:t.value?at:e.legendFontSize},itemHeight:e.legendItemHeight,itemWidth:e.legendItemWidth,itemGap:e.legendItemGap,formatter:w=>{const{data:E}=r.value[0]||{};let S;if(E){const _=E.find(z=>z.name===w);_&&(S=_.value)}return ke(e.legendFormatter,{textData:{name:w,value:S}},{useNewline:!1,useSpace:!1})}}},c=()=>{t.value=!1},{getGlobalModel:u,setGlobalModel:y}=o.inject(we,{getGlobalModel:w=>{},setGlobalModel:(w,E)=>{}}),{pageMode:d}=o.inject(Fe,{pageMode:"normal"}),h=(w=[],E)=>{const{dataset:S}=Rt(w,E);r.value=S},m=(w=[],E)=>{const S=Rt(w,E);r.value=S.dataset};o.watch(()=>e.data,w=>{(e.dataType==="static"||o.unref(d)==="design")&&h(w)},{immediate:!0,deep:!0}),o.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 g=o.ref(!1),v=ze(e),D=async()=>{var w,E;if(e.dataType==="request")try{g.value=!0;const S=await v();h((E=(w=S==null?void 0:S.data)==null?void 0:w.data)==null?void 0:E.rows,e.valueTypeDataFieldNames)}catch(S){console.error(S)}finally{g.value=!1}},p=Ae(e)("click",w=>{const E=u(e.id);y(e.id,{...E,RECORD:w==null?void 0:w.data})}),x=it(e),k=async()=>{var w;try{g.value=!0;const E=await x(),{data:S}=(E==null?void 0:E.data)||{};if(S){const{columns:_=[],rows:z=[]}=((w=E==null?void 0:E.data)==null?void 0:w.data)??{};let I=[];if(_.length>0){const M=_[0],H=_[1];I=z.map(j=>({name:j[M],value:isNaN(j[H])?0:j[H]||0}))}m(I)}}catch(E){console.error(E)}finally{g.value=!1}},{loadedData:C}=o.inject(mt,{loadedData:{}}),O=o.ref(!1);o.watch(C,w=>{if(e.dataType==="indicator"){const E=Yt(e.graphicConfig);E!=null&&E.length&&(!o.unref(O)&&Xe(e.graphicConfig,w)?(O.value=!0,N()):Xe(e.graphicConfig,w)||(O.value=!1))}},{deep:!0});const N=()=>{switch(e.dataType){case"indicator":Xe(e.graphicConfig,o.unref(C))&&k();break;case"request":D();break}};De(e,{resetRecord:()=>{const w=e.id,E=u(w);y(w,{...E,RECORD:""})},refreshData:N,click:p}),n({refreshData:N});const{setRequest:B}=o.inject(Oe,{setRequest:w=>{}});return typeof B=="function"&&B({id:e.id,requestFn:N,sortNum:e.requestSort}),{option:l,style:a,click:p,onClose:c,loading:g,ecanModal:i}}}),O1="";function of(e,n,t,a,r,i){const s=o.resolveComponent("echarts"),l=o.resolveComponent("spin"),f=o.resolveComponent("ecan-modal");return o.openBlock(),o.createElementBlock("div",{style:o.normalizeStyle(e.style)},[o.createVNode(l,{spinning:e.loading},{default:o.withCtx(()=>[o.createVNode(s,{option:e.option,autoresize:"",onClick:e.click},null,8,["option","onClick"])]),_:1},8,["spinning"]),o.createVNode(f,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:e.onClose},{default:o.withCtx(()=>[o.createVNode(l,{class:"spin-wrap",spinning:e.loading},{default:o.withCtx(()=>[o.createVNode(s,{option:e.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"])],4)}const $i=ge(ue(nf,[["render",of]])),ia={...ve,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:""},la=ye(ia),Zi=["click","refreshData","resetRecord"];Ge.use([At.CanvasRenderer,ct.LineChart,be.ToolboxComponent,be.TitleComponent,be.LegendComponent]);const af=o.defineComponent({name:"EcanLine",props:{...la},components:{Spin:_t,Echarts:ht,EcanModal:St},setup(e,{expose:n}){const t=o.ref(),a=o.ref(!1),r=pe(e),i=o.ref([]),s=o.ref([]),l=o.ref(),f=o.computed(()=>a.value?at:12),c=o.ref({});let u;const y=o.ref([]),d=o.computed(()=>{const _=e.xAxisLabelFormatter,z=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(){Vt(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=l.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(){ie.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:I=>{var P;const M=I.length;let H="",j=e.tooltipFormatter;u=(P=I[0])==null?void 0:P.data,j===""&&(j="{marker} {a} {c}");for(let A=0;A<M;A++){const{marker:R,seriesName:T,name:F,value:W,data:$}=I[A]||{};if(A===0){let te=F;typeof F=="string"&&F[0]==="0"&&!isNaN(+F)&&(te=(+F).toString()),H+=`${et(_,te)}<br/>`}H+=ke(j,{textData:{marker:R,name:F,value:W,a:T,b:F,c:W||0,...$}},{useNewline:!0,useSpace:!0}),H+="<br/>"}return H},position:e.tooltipPosition||void 0},xAxis:{type:"category",boundaryGap:e.isBoundaryGap,data:o.unref(s).map(I=>{let M={};return I&&typeof I=="object"?M={...I}:M={value:I},M}),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(I){return typeof I=="string"&&I[0]==="0"&&!isNaN(+I)&&(I=(+I).toString()),et(_,I)}},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(I){return et(z,I)}},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?at:e.legendFontSize},itemHeight:e.legendItemHeight,itemWidth:e.legendItemWidth,itemGap:e.legendItemGap,data:o.unref(y).map(I=>({name:I.name,icon:e.legendType}))},series:o.unref(i)}}),h=()=>{a.value=!1},{getGlobalModel:m,setGlobalModel:g}=o.inject(we,{getGlobalModel:_=>{},setGlobalModel:(_,z)=>{}}),{pageMode:v}=o.inject(Fe,{pageMode:"normal"}),D=(_=[],z=!1)=>{let I;if(e.dataFieldConfigType==="key"){const P=z?e.keyTypeDataFieldNames:null;I=bt(_,P)}else if(e.dataFieldConfigType==="value"){const P=z?e.valueTypeDataFieldNames:null;I=Rt(_,P)}s.value=I.dimensions,y.value=I.dataset;const M=I.dataset,H=[],j=M.length;for(let P=0;P<j;P++){const A={};e.shadowColor&&(A.shadowColor=e.shadowColor,A.shadowBlur=e.shadowBlur,A.shadowOffsetY=e.shadowOffsetY,A.shadowOffsetX=e.shadowOffsetX),H.push({type:"line",...M[P],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[P]},{offset:1,color:e.areaGradientColor||"transparent"}],global:!1}:e.colors[P],opacity:e.areaStyleOpacity},lineStyle:{width:e.lineStyleWidth,...A}})}i.value=H},b=(_=[],z,I=!1)=>{const H=bt(_,I?z:null,!0);s.value=H.dimensions,y.value=H.dataset;const j=H.dataset,P=[],A=j.length;for(let R=0;R<A;R++){const T={};e.shadowColor&&(T.shadowColor=e.shadowColor,T.shadowBlur=e.shadowBlur,T.shadowOffsetY=e.shadowOffsetY,T.shadowOffsetX=e.shadowOffsetX),P.push({type:"line",...j[R],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[R]},{offset:1,color:e.areaGradientColor||"transparent"}],global:!1}:e.colors[R],opacity:e.areaStyleOpacity},lineStyle:{width:e.lineStyleWidth,...T}})}i.value=P};o.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.dataType==="static"||o.unref(v)==="design")&&D(_)},{immediate:!0,deep:!0});const p=o.ref(!1),x=ze(e),k=async()=>{var _,z;if(e.dataType==="request")try{p.value=!0;const I=await x();D((z=(_=I==null?void 0:I.data)==null?void 0:_.data)==null?void 0:z.rows,!0)}catch(I){console.error(I)}finally{p.value=!1}},O=Ae(e)("click",_=>{const z=m(e.id);g(e.id,{...z,RECORD:e.tooltipShow?u:_.data})}),N=_=>{t.value.chart.containPixel("grid",[_.offsetX,_.offsetY])&&O()};e.tooltipShow?c.value["zr:click"]=N:c.value.click=O;const L=it(e),B=async()=>{var _;try{p.value=!0;const z=await L(),{columns:I=[],rows:M=[]}=((_=z==null?void 0:z.data)==null?void 0:_.data)??{};let H;I.length>0&&(H={name:I[0],types:I.slice(1).map(j=>({label:j,value:j}))}),b(M,H,!0)}catch(z){console.error(z)}finally{p.value=!1}},w=()=>{switch(e.dataType){case"indicator":B();break;case"request":k();break}};De(e,{refreshData:w,resetRecord:()=>{const _=e.id,z=m(_);g(_,{...z,RECORD:""})},click:O});const{setRequest:S}=o.inject(Oe,{setRequest:_=>{}});return typeof S=="function"&&S({id:e.id,requestFn:w,sortNum:e.requestSort}),n({refreshData:w}),{option:d,style:r,click:O,loading:p,onClose:h,ecanModal:l,eventObj:c,echartRef:t}}}),L1="";function rf(e,n,t,a,r,i){const s=o.resolveComponent("echarts"),l=o.resolveComponent("spin"),f=o.resolveComponent("ecan-modal");return o.openBlock(),o.createElementBlock("div",{style:o.normalizeStyle(e.style)},[o.createVNode(l,{spinning:e.loading},{default:o.withCtx(()=>[o.createVNode(s,o.mergeProps({ref:"echartRef",option:e.option,autoresize:""},o.toHandlers(e.eventObj)),null,16,["option"])]),_:1},8,["spinning"]),o.createVNode(f,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:e.onClose},{default:o.withCtx(()=>[o.createVNode(l,{class:"spin-wrap",spinning:e.loading},{default:o.withCtx(()=>[o.createVNode(s,{option:e.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"])],4)}const Yi=ge(ue(af,[["render",rf]])),sa={...ve,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:""},ca=ye(sa),Ki=["refreshData","click","resetRecord"];Ge.use([At.CanvasRenderer,ct.BarChart,be.TitleComponent,be.LegendComponent,be.DatasetComponent,be.ToolboxComponent]);const lf=o.defineComponent({name:"EcanBar",props:{...ca},components:{Spin:_t,Echarts:ht,EcanModal:St,AModal:ie.Modal},setup(e,{expose:n}){const t=o.ref(),a=o.ref(!1),r=o.ref(!1),i=o.ref(null),s=o.ref([]),l=pe(e),f=o.ref([]),c=o.ref(),u=o.computed(()=>a.value?at:12),y=o.computed(()=>{const{gradientShow:P,gradientColors:A,gradientOffset:R,barBorderRadius:T}=e,F=o.unref(f),W=F.length,$=[];for(let te=0;te<W;te++){const K={...F[te],type:"bar",barWidth:e.barWidth,showBackground:e.showBarBackground};if(e.isStack&&(K.stack="stack"),K.label={show:e.labelShow,fontSize:e.labelFontSize,position:e.labelPosition,color:e.labelColor,width:e.labelWidth,overflow:e.labelOverflow,formatter:Q=>{let Y="",X=e.labelFormatter;X===""&&(X="{c}");const{seriesName:oe,name:he,value:fe,data:_e}=Q||{};return Y+=ke(X,{textData:{name:he,value:fe,a:oe,b:he,c:fe||0,..._e}},{useNewline:!0,useSpace:!0}),Y}},K.itemStyle={},P&&(K.itemStyle={color:{x:e.isUseHorizontalAxis?1:0,y:0,x2:0,y2:e.isUseHorizontalAxis?0:1,colorStops:[{offset:0,color:e.colors[te]},{offset:R,color:A[te]},{offset:1,color:A[te]}]}}),T){const Q=T.split(",");if(Q!=null&&Q.length){const Y=[];for(const X of Q){const oe=parseFloat(X);isNaN(oe)||Y.push(oe)}K.itemStyle.borderRadius=Y}}$.push(K)}return $}),d=o.ref([]),h=o.ref(!1),m=o.computed(()=>{const P=e.yAxisLabelFormatter,A=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 R=t.value.chart.getOption(),{xAxis:T}=R||{};T&&T.length&&(s.value=T[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(){Vt(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=c.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(){ie.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:R=>{const T=R.length;let F="",W=e.tooltipFormatter;W===""&&(W="{marker} {a} {c}");for(let $=0;$<T;$++){const{marker:te,seriesName:K,name:Q,value:Y,data:X}=R[$]||{};if($===0){let oe=Q;typeof Q=="string"&&Q[0]==="0"&&!isNaN(+Q)&&(oe=(+Q).toString()),F+=`${et(A,oe)}<br/>`}F+=ke(W,{textData:{marker:te,name:Q,value:Y,a:K,b:Q,c:Y||0,...X}},{useNewline:!0,useSpace:!0}),F+="<br/>"}return F},textStyle:{color:e.tooltipTextStyleColor,fontSize:u.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?at:e.legendFontSize},itemHeight:e.legendItemHeight,itemWidth:e.legendItemWidth,itemGap:e.legendItemGap,data:o.unref(f).map((R,T)=>({name:R.name,itemStyle:{color:e.colors[T]},icon:e.legendType}))},xAxis:{type:e.isUseHorizontalAxis?"value":"category",data:e.isUseHorizontalAxis?null:o.unref(p),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(R){return typeof R=="string"&&R[0]==="0"&&!isNaN(+R)&&(R=(+R).toString()),et(A,R)}},axisLine:{show:e.xAxisLineShow,lineStyle:{color:e.xAxisLineStyleColor}},axisTick:{show:e.xAxisTickShow}},yAxis:{type:e.isUseHorizontalAxis?"category":"value",data:e.isUseHorizontalAxis?o.unref(d):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(R){return et(P,R)}},axisLine:{show:e.yAxisLineAlwaysDisplay,lineStyle:{color:e.yAxisLineStyleColor}}},series:o.unref(y)}}),{pageMode:g}=o.inject(Fe,{pageMode:"normal"}),v=()=>{a.value=!1},D=(P=[],A=!1)=>{let R={};if(e.dataFieldConfigType==="key"){const T=A?e.keyTypeDataFieldNames:null;R=bt(P,T)}else if(e.dataFieldConfigType==="value"){const T=A?e.valueTypeDataFieldNames:null;R=Rt(P,T)}f.value=R.dataset,d.value=R.dimensions},b=(P=[],A,R=!1)=>{const F=bt(P,R?A:null,!0);f.value=F.dataset,d.value=F.dimensions},p=o.computed(()=>o.unref(d).map(P=>{let A={};return P&&typeof P=="object"?A={...P}:A={value:P},A}));o.watch(()=>[e.data,e.labelFormatter],([P])=>{(e.dataType==="static"||o.unref(g)==="design")&&D(P)},{immediate:!0,deep:!0});const x=ze(e),k=async()=>{var P,A;try{h.value=!0;const R=await x();D((A=(P=R==null?void 0:R.data)==null?void 0:P.data)==null?void 0:A.rows,!0)}catch(R){console.error(R)}finally{h.value=!1}},C=it(e),O=async()=>{var P;try{h.value=!0;const A=await C(),{columns:R=[],rows:T=[]}=((P=A==null?void 0:A.data)==null?void 0:P.data)??{};let F;R.length>0&&(F={name:R[0],types:R.slice(1).map(W=>({label:W,value:W}))}),b(T,F,!0)}catch(A){console.error(A)}finally{h.value=!1}},{loadedData:N}=o.inject(mt,{loadedData:{}}),L=o.ref(!1);o.watch(N,P=>{if(e.dataType==="indicator"){const A=Yt(e.graphicConfig);A!=null&&A.length&&(!o.unref(L)&&Xe(e.graphicConfig,P)?(L.value=!0,B()):Xe(e.graphicConfig,P)||(L.value=!1))}},{deep:!0});const B=()=>{switch(e.dataType){case"indicator":Xe(e.graphicConfig,o.unref(N))&&O();break;case"request":k();break}},w=(P,A)=>!!o.unref(s)[A.value].value.includes(P),E=async()=>{r.value=!1;const P=t.value.chart.getOption();for(let A=0;A<7;A++)await S(P,A)},S=(P,A)=>new Promise(R=>{setTimeout(()=>{const{series:T,color:F,xAxis:W}=P,$=t.value.chart,{splitArea:te={}}=W[0]||{};T.forEach((K,Q)=>{const Y=K.data;let X="";A%2?X=F[Q]+"a8":X=F[Q],Y[i.value].itemStyle={color:X}}),A%2?(te.show=!0,te.areaStyle.color=o.unref(s).map((K,Q)=>Q===i.value?"#ff003b26":"")):te.show=!1,$.setOption({series:T,xAxis:W}),R()},200)});n({refreshData:B});const _=Ae(e),{getGlobalModel:z,setGlobalModel:I}=o.inject(we,{getGlobalModel:P=>{},setGlobalModel:(P,A)=>{}}),M=_("click",P=>{const A=z(e.id);I(e.id,{...A,RECORD:P.data})}),{setRequest:H}=o.inject(Oe,{setRequest:P=>{}});return typeof H=="function"&&H({id:e.id,requestFn:B,sortNum:e.requestSort}),De(e,{refreshData:B,click:M,resetRecord:()=>{const P=e.id,A=z(P);I(P,{...A,RECORD:""})}}),{option:m,style:l,refreshData:B,click:M,loading:h,onClose:v,ecanModal:c,echartRef:t,handleLocationOk:E,onFilterOption:w,locationVisible:r,locationValue:i,locationNames:s}}}),z1="",M1="",sf=e=>(o.pushScopeId("data-v-c6009d35"),e=e(),o.popScopeId(),e),cf={class:"location-wrap"},ff=sf(()=>o.createElementVNode("div",{class:"location-text"},"选择分类:",-1));function df(e,n,t,a,r,i){const s=o.resolveComponent("echarts"),l=o.resolveComponent("spin"),f=o.resolveComponent("ecan-modal"),c=o.resolveComponent("a-select-option"),u=o.resolveComponent("a-select"),y=o.resolveComponent("a-modal");return o.openBlock(),o.createElementBlock("div",{class:"ecan-bar",style:o.normalizeStyle(e.style)},[o.createVNode(l,{spinning:e.loading},{default:o.withCtx(()=>[o.createVNode(s,{ref:"echartRef",option:e.option,"update-options":{notMerge:!0},autoresize:"",onClick:e.click},null,8,["option","onClick"])]),_:1},8,["spinning"]),o.createVNode(f,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:e.onClose},{default:o.withCtx(()=>[o.createVNode(l,{class:"spin-wrap",spinning:e.loading},{default:o.withCtx(()=>[o.createVNode(s,{option:e.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"]),o.createVNode(y,{visible:e.locationVisible,"onUpdate:visible":n[1]||(n[1]=d=>e.locationVisible=d),title:"快速定位",onOk:e.handleLocationOk},{default:o.withCtx(()=>[o.createElementVNode("div",cf,[ff,o.createVNode(u,{value:e.locationValue,"onUpdate:value":n[0]||(n[0]=d=>e.locationValue=d),style:{width:"100%"},placeholder:"请选择","show-search":"","filter-option":e.onFilterOption},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.locationNames,(d,h)=>(o.openBlock(),o.createBlock(c,{key:h,value:h},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(d.value),1)]),_:2},1032,["value"]))),128))]),_:1},8,["value","filter-option"])])]),_:1},8,["visible","onOk"])],4)}const Qi=ge(ue(lf,[["render",df],["__scopeId","data-v-c6009d35"]])),fa={...ve,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:""},da=ye(fa),Ji=["click","refreshData","resetRecord"];Ge.use([At.CanvasRenderer,ct.ScatterChart,be.ToolboxComponent,be.TitleComponent,be.TooltipComponent,be.LegendComponent]);const uf=o.defineComponent({name:"EcanScatter",props:{...da},components:{Spin:_t,Echarts:ht,EcanModal:St},setup(e){const n=o.ref(!1),t=pe(e),a=o.ref([]),r=o.ref(),i=o.computed(()=>n.value?at:12),s=o.computed(()=>{const x=e.xAxisLabelFormatter,k=e.yAxisLabelFormatter;return{toolbox:{show:e.toolboxShow,left:e.toolboxLeft,top:e.toolboxTop,itemSize:e.toolboxItemSize,itemGap:e.toolboxItemGap,feature:{myDownload:{show:e.toolboxDownloadShow,title:"数据下载",icon:"path://M502.010485 765.939573c3.773953 3.719718 8.686846 5.573949 13.596669 5.573949 0.075725 0 0.151449-0.010233 0.227174-0.011256 0.329505 0.016373 0.654916 0.050142 0.988514 0.050142 0.706081 0 1.400906-0.042979 2.087545-0.116657 4.352121-0.366344 8.607028-2.190899 11.961426-5.496178l335.053985-330.166675c7.619538-7.509021 7.709589-19.773346 0.200568-27.393907s-19.774369-7.711636-27.39493-0.201591L536.193005 706.304358 536.193005 50.019207c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 657.032164-306.881342-302.44838c-7.618515-7.509021-19.883863-7.419993-27.393907 0.199545-7.509021 7.619538-7.419993 19.884886 0.199545 27.393907L502.010485 765.939573z, M867.170139 711.020776c-10.698666 0-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 13.054317-10.620895 23.675212-23.676236 23.675212L205.182103 919.486668c-13.054317 0-23.676236-10.620895-23.676236-23.675212L181.505867 730.391962c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 34.416857 28.000728 62.416562 62.417585 62.416562l618.941638 0c34.417881 0 62.417585-27.999704 62.417585-62.416562L886.540302 730.391962C886.541325 719.693296 877.868805 711.020776 867.170139 711.020776z",onclick(){Vt(e.toolboxDownloadUrl)}},myDataZoom:{show:n.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 C;n.value=!0,(C=r.value)==null||C.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(){ie.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(C){return typeof C=="string"&&C[0]==="0"&&!isNaN(+C)&&(C=(+C).toString()),et(x,C)}},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(C){return et(k,C)}},axisLine:{show:e.yAxisLineAlwaysDisplay,lineStyle:{color:e.yAxisLineStyleColor}}},tooltip:{show:e.tooltipShow,trigger:e.tooltipTrigger,formatter(C){var E;const{marker:O,seriesName:N}=C,L=((E=C==null?void 0:C.data)==null?void 0:E.record)??{},{name:B,value:w}=L;return ke(e.tooltipFormatter,{textData:{marker:O,seriesName:N,a:N,b:B,c:w,...L}})},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:o.unref(a),type:"scatter",symbolSize:e.symbolSize}]}}),{getGlobalModel:l,setGlobalModel:f}=o.inject(we,{getGlobalModel:x=>{},setGlobalModel:(x,k)=>{}}),{pageMode:c}=o.inject(Fe,{pageMode:"normal"}),u=(x=[],k)=>{const{name:C="name",value:O="value"}=k||{};a.value=x.map(N=>({value:[N[C],N[O]],record:N}))};o.watch(()=>e.data,x=>{(e.dataType==="static"||o.unref(c)==="design")&&u(x)},{immediate:!0,deep:!0});const y=o.ref(!1),d=ze(e),h=async()=>{var x,k;if(e.dataType==="request"){y.value=!0;try{const C=await d();u((k=(x=C==null?void 0:C.data)==null?void 0:x.data)==null?void 0:k.rows,e.dataFieldNames)}catch(C){console.error(C)}finally{y.value=!1}}},m=()=>{n.value=!1},v=Ae(e)("click",x=>{const k=e.id,C=l(k);f(k,{...C,RECORD:x==null?void 0:x.data})});De(e,{refreshData:()=>{h()},click:v,resetRecord:()=>{const x=e.id,k=l(x);f(x,{...k,RECORD:""})}});const{setRequest:p}=o.inject(Oe,{setRequest:x=>{}});return typeof p=="function"&&p({id:e.id,requestFn:h,sortNum:e.requestSort}),{option:s,style:t,click:v,loading:y,onClose:m,ecanModal:r}}}),H1="";function hf(e,n,t,a,r,i){const s=o.resolveComponent("echarts"),l=o.resolveComponent("spin"),f=o.resolveComponent("ecan-modal");return o.openBlock(),o.createElementBlock("div",{style:o.normalizeStyle(e.style)},[o.createVNode(l,{spinning:e.loading},{default:o.withCtx(()=>[o.createVNode(s,{option:e.option,autoresize:"",onClick:e.click},null,8,["option","onClick"])]),_:1},8,["spinning"]),o.createVNode(f,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:e.onClose},{default:o.withCtx(()=>[o.createVNode(l,{class:"spin-wrap",spinning:e.loading},{default:o.withCtx(()=>[o.createVNode(s,{option:e.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"])],4)}const Xi=ge(ue(uf,[["render",hf]])),ua={...ve,id:"",name:"自定义图表",keyName:"自定义图表",type:"ecanCustomGraph",width:"400px",height:"400px",option:{},optionCode:"",graphicType:"ecanCustomGraph"},ha=ye(ua),gf=o.defineComponent({name:"EcanCustomGraph",props:{...ha},components:{Echarts:ht},setup(e){const n=pe(e),t=o.ref();return o.watch(()=>e.optionCode,a=>{try{const r=eval;t.value=r(a)}catch(r){console.error(r)}},{immediate:!0}),{style:n,myOption:t,echarts:R0}}});function mf(e,n,t,a,r,i){const s=o.resolveComponent("echarts");return o.openBlock(),o.createElementBlock("div",{style:o.normalizeStyle(e.style)},[o.createVNode(s,{option:e.myOption,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])],4)}const e0=ge(ue(gf,[["render",mf]])),ga={...ve,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:""},ma=ye(ga),t0=["refreshData","click","resetRecord"];Ge.use([At.CanvasRenderer,ct.BarChart,ct.LineChart,be.TitleComponent,be.LegendComponent,be.DatasetComponent,be.ToolboxComponent]);const yf=o.defineComponent({name:"EcanComboGraph",props:{...ma},components:{Spin:_t,Echarts:ht,EcanModal:St,AModal:ie.Modal},setup(e,{expose:n}){const t=o.ref(),a=o.ref(!1),r=o.ref(!1),i=o.ref(null),s=o.ref([]),l=pe(e),f=o.ref([]),c=o.ref([]),u=o.ref(),y=o.ref([]),d=o.computed(()=>a.value?at:12),h=o.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 A=t.value.chart.getOption(),{xAxis:R}=A||{};R&&R.length&&(s.value=R[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(){Vt(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 A;a.value=!0,(A=u.value)==null||A.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(){ie.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?at:e.legendFontSize},itemHeight:e.legendItemHeight,itemWidth:e.legendItemWidth,itemGap:e.legendItemGap,data:o.unref(y).map((A,R)=>({name:A.name,itemStyle:{color:e.colors[R]},icon:e.legendType}))},tooltip:{trigger:"axis",show:e.tooltipShow,formatter:A=>{const R=A.length;let T="",F=e.tooltipFormatter;F===""&&(F="{marker} {a} {c}");const W=e.seriesTypes;for(let $=0;$<R;$++){const te=W[$],{tooltipFormatter:K}=te||{},{marker:Q,seriesName:Y,name:X,value:oe,data:he}=A[$]||{};if($===0){let fe=X;typeof X=="string"&&X[0]==="0"&&!isNaN(+X)&&(fe=(+X).toString()),T+=`${et(e.xAxisLabelFormatter,fe)}<br/>`}T+=ke(K||F,{textData:{marker:Q,name:X,value:oe,seriesName:Y,a:Y,b:X,c:oe||0,...he}},{useNewline:!0,useSpace:!0}),T+="<br/>"}return T},textStyle:{color:e.tooltipTextStyleColor,fontSize:d.value},position:e.tooltipPosition||void 0},xAxis:{minInterval:e.xAxisMinInterval,type:"category",data:o.unref(c).map(A=>{let R={};return A&&typeof A=="object"?R={...A}:R={value:A},R}),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(A){return typeof A=="string"&&A[0]==="0"&&!isNaN(+A)&&(A=(+A).toString()),et(e.xAxisLabelFormatter,A)}},axisLine:{show:e.xAxisLineShow,lineStyle:{color:e.xAxisLineStyleColor}},axisTick:{show:e.xAxisTickShow}},yAxis:o.unref(p),series:o.unref(f)})),{pageMode:m}=o.inject(Fe,{pageMode:"normal"}),g=()=>{a.value=!1},v=(A=[],R=!1)=>{let T;if(e.dataFieldConfigType==="key"){const W=R?e.keyTypeDataFieldNames:null;T=bt(A,W)}else if(e.dataFieldConfigType==="value"){const W=R?e.valueTypeDataFieldNames:null;T=Rt(A,W)}c.value=T.dimensions;const F=T.dataset;y.value=T.dataset,f.value=b(F)},D=(A=[],R,T=!1)=>{const W=bt(A,T?R:null,!0);c.value=W.dimensions;const $=W.dataset;y.value=W.dataset,f.value=b($)};function b(A){const R=[],T=A.length,F=e.seriesTypes;for(let W=0;W<T;W++){const $=F[W],{type:te,axisIndex:K}=$||{};let Q={type:te,yAxisIndex:K,...A[W]};if(te==="line"){const Y={};e.shadowColor&&(Y.shadowColor=e.shadowColor,Y.shadowBlur=e.shadowBlur,Y.shadowOffsetY=e.shadowOffsetY,Y.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,...Y}}}if(te==="bar"){const{gradientShow:Y,gradientColors:X,gradientOffset:oe}=e,he={};if(e.barBorderRadius){const fe=e.barBorderRadius.split(",");if(fe!=null&&fe.length){const _e=[];for(const He of fe){const qe=parseFloat(He);isNaN(qe)||_e.push(qe)}he.borderRadius=_e}}Y&&(he.color={x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:e.colors[W]},{offset:oe,color:X[W]},{offset:1,color:X[W]}]}),Q={...Q,barWidth:e.barWidth,itemStyle:he}}R.push(Q)}return R}o.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],([A])=>{(e.dataType==="static"||o.unref(m)==="design")&&v(A)},{immediate:!0,deep:!0});const p=o.computed(()=>{const A=e.yAxis;return A==null?void 0:A.map(R=>({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(T){return et(R.axisLabelFormatter,T)}},axisLine:{show:e.yAxisLineAlwaysDisplay,lineStyle:{color:e.yAxisLineStyleColor}}}))}),x=o.ref(!1),k=ze(e),C=async()=>{var A,R;if(e.dataType==="request")try{x.value=!0;const T=await k();v((R=(A=T==null?void 0:T.data)==null?void 0:A.data)==null?void 0:R.rows,!0)}catch(T){console.error(T)}finally{x.value=!1}},O=it(e),N=async()=>{var A;try{x.value=!0;const R=await O(),{columns:T=[],rows:F=[]}=((A=R==null?void 0:R.data)==null?void 0:A.data)??{};let W;T.length>0&&(W={name:T[0],types:T.slice(1).map($=>({label:$,value:$}))}),D(F,W,!0)}catch(R){console.error(R)}finally{x.value=!1}},{loadedData:L}=o.inject(mt,{loadedData:{}}),B=o.ref(!1);o.watch(L,A=>{if(e.dataType==="indicator"){const R=Yt(e.graphicConfig);R!=null&&R.length&&(!o.unref(B)&&Xe(e.graphicConfig,A)?(B.value=!0,w()):Xe(e.graphicConfig,A)||(B.value=!1))}},{deep:!0});const w=()=>{switch(e.dataType){case"indicator":Xe(e.graphicConfig,o.unref(L))&&N();break;case"request":C();break}},E=(A,R)=>!!o.unref(s)[R.value].value.includes(A),S=async()=>{r.value=!1;const A=t.value.chart.getOption();for(let R=0;R<7;R++)await _(A,R)},_=(A,R)=>new Promise(T=>{setTimeout(()=>{const{series:F,color:W,xAxis:$}=A,te=t.value.chart,{splitArea:K={}}=$[0]||{};F.forEach((Q,Y)=>{const X=Q.data;let oe="";R%2?oe=W[Y]+"a8":oe=W[Y],X[i.value].itemStyle={color:oe}}),R%2?(K.show=!0,K.areaStyle.color=o.unref(s).map((Q,Y)=>Y===i.value?"#ff003b26":"")):K.show=!1,te.setOption({series:F,xAxis:$}),T()},200)});n({refreshData:w});const z=Ae(e),{getGlobalModel:I,setGlobalModel:M}=o.inject(we,{getGlobalModel:A=>{},setGlobalModel:(A,R)=>{}}),H=z("click",A=>{const R=I(e.id);M(e.id,{...R,RECORD:A==null?void 0:A.data})}),{setRequest:j}=o.inject(Oe,{setRequest:A=>{}});return typeof j=="function"&&j({id:e.id,requestFn:w,sortNum:e.requestSort}),De(e,{resetRecord:()=>{const A=e.id,R=I(A);M(A,{...R,RECORD:""})},refreshData:w,click:H}),{style:l,option:h,click:H,loading:x,onClose:g,ecanModal:u,echartRef:t,handleLocationOk:S,onFilterOption:E,locationVisible:r,locationValue:i,locationNames:s}}}),j1="",G1="",xf=e=>(o.pushScopeId("data-v-3560d511"),e=e(),o.popScopeId(),e),pf={class:"location-wrap"},bf=xf(()=>o.createElementVNode("div",{class:"location-text"},"选择分类:",-1));function vf(e,n,t,a,r,i){const s=o.resolveComponent("echarts"),l=o.resolveComponent("spin"),f=o.resolveComponent("ecan-modal"),c=o.resolveComponent("a-select-option"),u=o.resolveComponent("a-select"),y=o.resolveComponent("a-modal");return o.openBlock(),o.createElementBlock("div",{style:o.normalizeStyle(e.style)},[o.createVNode(l,{spinning:e.loading},{default:o.withCtx(()=>[o.createVNode(s,{ref:"echartRef",option:e.option,"update-options":{notMerge:!0},autoresize:"",onClick:e.click},null,8,["option","onClick"])]),_:1},8,["spinning"]),o.createVNode(f,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:e.onClose},{default:o.withCtx(()=>[o.createVNode(l,{class:"spin-wrap",spinning:e.loading},{default:o.withCtx(()=>[o.createVNode(s,{option:e.option,"update-options":{notMerge:!0},autoresize:"",onClick:e.click},null,8,["option","onClick"])]),_:1},8,["spinning"])]),_:1},8,["onClose"]),o.createVNode(y,{visible:e.locationVisible,"onUpdate:visible":n[1]||(n[1]=d=>e.locationVisible=d),title:"快速定位",onOk:e.handleLocationOk},{default:o.withCtx(()=>[o.createElementVNode("div",pf,[bf,o.createVNode(u,{value:e.locationValue,"onUpdate:value":n[0]||(n[0]=d=>e.locationValue=d),style:{width:"100%"},placeholder:"请选择","show-search":"","filter-option":e.onFilterOption},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.locationNames,(d,h)=>(o.openBlock(),o.createBlock(c,{key:h,value:h},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(d.value),1)]),_:2},1032,["value"]))),128))]),_:1},8,["value","filter-option"])])]),_:1},8,["visible","onOk"])],4)}const n0=ge(ue(yf,[["render",vf],["__scopeId","data-v-3560d511"]])),ya={...ve,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=ye(ya),o0=["refreshData","click","resetRecord"];Ge.use([At.CanvasRenderer,ct.RadarChart,be.ToolboxComponent,be.TitleComponent,be.LegendComponent]);const Sf=o.defineComponent({name:"EcanRadar",props:{...xa},components:{Spin:_t,Echarts:ht,EcanModal:St},setup(e,{expose:n}){const t=o.ref(),a=o.ref(!1),r=pe(e),i=o.ref([]),s=o.ref(),l=o.computed(()=>a.value?at:12),f=o.ref({});let c;const u=o.ref([]),y=o.ref(e.valueTypeDataFieldNames.name),d=o.computed(()=>{const I=o.unref(u),M=I.length,H=[];for(let j=0;j<M;j++){const{name:P,data:A=[]}=I[j],R=[{name:P,value:A.map(F=>F.value)}],T={type:"radar",name:P,data:R,areaStyle:{color:e.colors[j],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}};H.push(T)}return H}),h=o.computed(()=>{var P,A;const I=[],M={},H=o.unref(u),j=H.length;for(let R=0;R<j;R++){const{data:T=[]}=H[R];if(T!=null&&T.length)for(let F=0;F<T.length;F++)M[T[F][y.value]]?M[T[F][y.value]].push(T[F].value):M[T[F][y.value]]=[T[F].value]}if((P=i.value)!=null&&P.length)for(const R of i.value)I.push({name:R,max:(A=M[R])!=null&&A.length?Math.max(...M[R])*1.2:0});return I}),m=o.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(){Vt(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=s.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(){ie.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:I=>{var j;let M="",H=e.tooltipFormatter;c=(j=I[0])==null?void 0:j.data,H===""&&(H="{marker} {a} {c}");for(let P=0;P<o.unref(h).length;P++){const A=o.unref(h)[P],{marker:R,seriesName:T,value:F}=I||{};P===0&&T&&(M+=`${T}<br/>`),M+=ke(H,{textData:{marker:R,name:A.name,value:F[P],a:A.name,b:A.name,c:F[P]||0,type:T}},{useNewline:!0,useSpace:!0}),M+="<br/>"}return M},position:e.tooltipPosition||void 0},radar:{indicator:o.unref(h),axisName:{color:e.axisNameColor}},legend:{show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,textStyle:{color:e.legendTextStyleColor,fontSize:a.value?at:e.legendFontSize},itemHeight:e.legendItemHeight,itemWidth:e.legendItemWidth,itemGap:e.legendItemGap,data:o.unref(u).map(I=>({name:I.name,icon:e.legendType}))},series:o.unref(d)})),g=()=>{a.value=!1},{getGlobalModel:v,setGlobalModel:D}=o.inject(we,{getGlobalModel:I=>{},setGlobalModel:(I,M)=>{}}),{pageMode:b}=o.inject(Fe,{pageMode:"normal"}),p=(I=[],M=!1)=>{let H;if(e.dataFieldConfigType==="key"){const j=M?e.keyTypeDataFieldNames:null;H=bt(I,j)}else if(e.dataFieldConfigType==="value"){const j=M?e.valueTypeDataFieldNames:null;H=Rt(I,j)}i.value=H.dimensions,u.value=H.dataset},x=(I=[],M,H=!1)=>{const P=bt(I,H?M:null,!0);i.value=P.dimensions,u.value=P.dataset};o.watch(()=>[e.data,e.areaStyleOpacity,e.legendFontSize],([I])=>{(e.dataType==="static"||o.unref(b)==="design")&&p(I)},{immediate:!0,deep:!0});const k=o.ref(!1),C=ze(e),O=async()=>{var I,M;if(e.dataType==="request")try{k.value=!0;const H=await C();p((M=(I=H==null?void 0:H.data)==null?void 0:I.data)==null?void 0:M.rows,!0)}catch(H){console.error(H)}finally{k.value=!1}},L=Ae(e)("click",I=>{const M=v(e.id);D(e.id,{...M,RECORD:e.tooltipShow?c:I.data})}),B=I=>{t.value.chart.containPixel("grid",[I.offsetX,I.offsetY])&&L()};e.tooltipShow?f.value["zr:click"]=B:f.value.click=L;const w=it(e),E=async()=>{var I;try{k.value=!0;const M=await w(),{columns:H=[],rows:j=[]}=((I=M==null?void 0:M.data)==null?void 0:I.data)??{};let P;H.length>0&&(y.value=H[0],P={name:H[0],types:H.slice(1).map(A=>({label:A,value:A}))}),x(j,P,!0)}catch(M){console.error(M)}finally{k.value=!1}},S=()=>{switch(e.dataType){case"indicator":E();break;case"request":O();break}};De(e,{refreshData:S,resetRecord:()=>{const I=e.id,M=v(I);D(I,{...M,RECORD:""})},click:L});const{setRequest:z}=o.inject(Oe,{setRequest:I=>{}});return typeof z=="function"&&z({id:e.id,requestFn:S,sortNum:e.requestSort}),n({refreshData:S}),{option:m,style:r,click:L,loading:k,onClose:g,ecanModal:s,eventObj:f,echartRef:t}}}),U1="";function Cf(e,n,t,a,r,i){const s=o.resolveComponent("echarts"),l=o.resolveComponent("spin"),f=o.resolveComponent("ecan-modal");return o.openBlock(),o.createElementBlock("div",{style:o.normalizeStyle(e.style)},[o.createVNode(l,{spinning:e.loading},{default:o.withCtx(()=>[o.createVNode(s,o.mergeProps({ref:"echartRef",option:e.option,autoresize:""},o.toHandlers(e.eventObj)),null,16,["option"])]),_:1},8,["spinning"]),o.createVNode(f,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:e.onClose},{default:o.withCtx(()=>[o.createVNode(l,{class:"spin-wrap",spinning:e.loading},{default:o.withCtx(()=>[o.createVNode(s,{option:e.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"])],4)}const a0=ge(ue(Sf,[["render",Cf]])),wf="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHQAAAAcCAMAAACH42siAAAAZlBMVEUAAABBltJCldJCldFEk89BltJCltFBldI/lMBKndtmb9pCltNDldFAkclAldNBldJBltM/lM5AltNCldJBldJBlNJBltVBldJBlNJBlNI/lNNBldJBldNAldJBldJBldJBldNBldIiNK7WAAAAInRSTlMAM4BNGmaz5gQGbiAPCV1WQxUpOCY9EmxQSC2jdoacqZK8uPo7tAAAAZ9JREFUSMe90NmOwjAMheGka0J3SulCy/L+Lzk4I+HYhckEKs7dr1x8kQVM5YJMZ7SLiXVHOw817Z72cSns3BmziY7EnGRGjDqUpKt4pEZQKruvyaJt85YmBUebKLJVNUlpq6oOQ1tVVRzbqu6DwFb1NUlsVd3SNL0UDM0jqkaSqoeQqjKmahtQNUzuC1AtU1sF9KHmnmrtrSK6idqBWqE6GFVxFdGvqDGoJ01Qt7rfTEV0e7V6qSK6VjNPtTaqoOq8Ugnqr7aeav+rAuqrTh+qZw3o1urAVcFVQD3U6ZnaYY9MLZk6G5WhDaDFI9UeUPyE7gCNsAdAD9gxoBJ7ARRPUVwALXdu8/h/s3xmjtwUu0/M0M/UJzBjAei3TUTdpmKmcpkBmOHKBNTPzJi59zYJys3DO2aL78YcmNkLgrrM9m9TucwzmoBy08xlju+bgL42G4c5OcxqZSLqbwqXOVNTGXMWFD0ak6KN1ZKaojYmbribndW9MXELNQEFFUyiNqQlmEQ1JqpgErUifUUTUVEIupx1wzpjvWfdsh4FQX8ANe4nnpsb9NEAAAAASUVORK5CYII=",Af="data:image/png;base64,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",kf="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHQAAAAcCAMAAACH42siAAAAaVBMVEUAAABElM9BltJCldJCldFBltJBldJCltFNmrNCmNNFldNAldJBldNBldRBldNBldNBldJCoNFBldJBltNBldJBldJAldJAltJBldJBldJBldNAlNFAldJBlNJAldJBldNBldJBldJBldLfIVowAAAAI3RSTlMAGjJNgGbmswMSCScgDTs/ZAVRK0eYj2s3r3AWveHEhXjeXb5rzlgAAAFqSURBVEjH1dbJVsJAEIXhHjJ05tlEooK8/0NKsbDrFjmHiBD0Lvqcf9PfthRM7xvoZMQuLHZaOejGYLtcdEItzI9oaLg5xIHj5hgcG262oXXcrGzJ23Umg5717C7NKBrAjOMDM8YgCI5ghmEPprUTmMZkrBOtdbJgfpZovho0gwzNOkfTam9k5jSGkKlTMOezWT3VLH5qlg8wQzSbO5jJ28l8Z+YLmZMwuz9lupvNXpjlFTMTZv7vzFSatTDtGnNeYdpNzZTMSJhx5f84m8Y3mSEzJzTVolko3J7Qve+a0J3vntDWffdEaMUQQo1vTWjuuyA0UWvUUarqzuqLUMPt1MD3uKTaTdRwvdrdorpFtfZtH6eyK2F3RS23U3uhlr9VB1TdE1V2h7Vr1O4mdbdera6o+Wq1Vqi2rEktFapGoZopVLVCtVCXag19IBPUiiWpBrojE1QNXZAp1/TYbhKdKVwuWotORKfn9wu/DSc/X9T6qgAAAABJRU5ErkJggg==",Tf="data:image/png;base64,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",pa={...ve,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=ye(pa),r0=["click"],Bf=o.defineComponent({name:"EcanBorder",props:{...ba},setup(e){const n=pe(e,["background"]),t=o.computed(()=>{const{isTransparent:m,gradientShow:g,gradientColor:v,gradientOffset:D,gradientAngle:b,backgroundColor:p}=e;if(g){let x=v;return m&&(x="transparent"),x?{background:`linear-gradient(${b}, ${p}, ${x} ${D*100}%)`}:{}}else return{}}),a=o.computed(()=>{const{events:m}=e;let g={};return m!=null&&m.length&&m.find(D=>D.emit==="showModal")&&(g={cursor:"pointer"}),g}),{theme:r}=o.inject(Fe,{theme:"light"}),i=o.computed(()=>{let m="";switch(e.titleMode){case"type-2":m="2";break}return m}),s=o.computed(()=>new URL(Object.assign({"../../assets/border-title-decoration-left.png":wf,"../../assets/border-title-decoration-left2.png":Af})[`../../assets/border-title-decoration-left${i.value}.png`],self.location).href),l=o.computed(()=>new URL(Object.assign({"../../assets/border-title-decoration-right.png":kf,"../../assets/border-title-decoration-right2.png":Tf})[`../../assets/border-title-decoration-right${i.value}.png`],self.location).href),f=o.computed(()=>({width:"100%",height:"100%"})),c=o.computed(()=>{const{borderRadius:m}=e,g=[],v={};if(m){const D=m.split(",");for(const b of D)(+b||+b==0)&&g.push(+b+"px")}return g!=null&&g.length&&(v.borderRadius=g.join(" ")),v}),y=Ae(e)("click",()=>{}),d=o.ref([]);o.watch(()=>e.data,m=>{d.value=m},{immediate:!0,deep:!0}),De(e,{click:y});const{setGlobalModel:h}=o.inject(we,{setGlobalModel:(m,g)=>{}});return h(e.id,{type:e.type,value:d}),{style:n,gradientStyle:t,click:y,borderStyle:f,theme:r,borderRadiusStyle:c,titleLeftIcon:s,titleRightIcon:l,cursorStyle:a}}}),Z1="",Ct=e=>(o.pushScopeId("data-v-8dd53b8f"),e=e(),o.popScopeId(),e),Ef=["id"],Df=Ct(()=>o.createElementVNode("div",{class:"top-left border-item"},null,-1)),_f=Ct(()=>o.createElementVNode("div",{class:"top-right border-item"},null,-1)),Rf=Ct(()=>o.createElementVNode("div",{class:"bottom-left border-item"},null,-1)),If=Ct(()=>o.createElementVNode("div",{class:"bottom-right border-item"},null,-1)),Of={class:"title-item"},Nf=["src"],Lf={class:"title"},Ff=["src"],zf=Ct(()=>o.createElementVNode("div",{class:"top-left border-item"},null,-1)),Mf=Ct(()=>o.createElementVNode("div",{class:"top-right border-item"},null,-1)),Pf=Ct(()=>o.createElementVNode("div",{class:"bottom-left border-item"},null,-1)),Hf=Ct(()=>o.createElementVNode("div",{class:"bottom-right border-item"},null,-1)),qf={key:2,class:"left-title"},Vf={class:"title"};function jf(e,n,t,a,r,i){return o.openBlock(),o.createElementBlock("div",{class:"ecan-border",style:o.normalizeStyle({...e.style,...e.gradientStyle,...e.borderRadiusStyle,...e.cursorStyle}),onClick:n[0]||(n[0]=(...s)=>e.click&&e.click(...s)),id:"container_"+e.id},[e.mode==="no-title"?(o.openBlock(),o.createElementBlock("div",{key:0,class:"no-title",style:o.normalizeStyle(e.borderStyle)},[e.useBorderModify?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[Df,_f,Rf,If],64)):o.createCommentVNode("",!0)],4)):o.createCommentVNode("",!0),e.mode==="top-title"?(o.openBlock(),o.createElementBlock("div",{key:1,class:"top-title",style:o.normalizeStyle(e.borderStyle)},[o.createElementVNode("div",{class:o.normalizeClass(["title-item-wrapper",e.titleMode])},[o.createElementVNode("div",Of,[o.createElementVNode("img",{class:o.normalizeClass(["title-decoration",e.titleMode]),src:e.titleLeftIcon},null,10,Nf),o.createElementVNode("div",Lf,o.toDisplayString(e.title),1),o.createElementVNode("img",{class:o.normalizeClass(["title-decoration",e.titleMode]),src:e.titleRightIcon},null,10,Ff)])],2),zf,Mf,Pf,Hf],4)):o.createCommentVNode("",!0),e.mode==="left-title"?(o.openBlock(),o.createElementBlock("div",qf,[o.createElementVNode("div",Vf,[o.createElementVNode("span",null,o.toDisplayString(e.title),1)])])):o.createCommentVNode("",!0)],12,Ef)}const i0=ge(ue(Bf,[["render",jf],["__scopeId","data-v-8dd53b8f"]])),va={...ve,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,contains:[],tabFlexDirection:"row",data:[{title:"标签1"},{title:"标签2"},{title:"标签3"}],tabAlignItems:"flex-start",tabJustifyContent:"flex-start",tabType:"tabs",tabWidth:"120px"},Sa=ye(va),l0=["tabChange"],Gf=o.defineComponent({name:"EcanTabs",props:{...Sa},components:{ASelect:ie.Select,ASelectOption:ie.SelectOption},setup(e){const n=pe(e),t=o.ref(0);o.watch(()=>e.activeKey,h=>{t.value=h},{immediate:!0});const{pageMode:a}=o.inject(Fe,{pageMode:"normal"});let r=null;const i=()=>{const h=Array.isArray(o.unref(s))?o.unref(s).length-1:0;e.autoSwitch&&h>0&&(r=setInterval(()=>{const m=o.unref(t)+1;m<=h?t.value=m:t.value=0,l.value=o.unref(s)[o.unref(t)],y()},e.autoSwitchInterval*1e3))};o.onMounted(()=>{o.unref(a)!=="design"&&i()}),o.onBeforeUnmount(()=>{clearInterval(r)});const s=o.ref([]),l=o.ref({});o.watch(()=>e.data,h=>{s.value=h,l.value=Array.isArray(h)&&h.length>0?h[0]:{}},{immediate:!0,deep:!0});const f=h=>t.value===h,c=Ae(e),{setGlobalModel:u}=o.inject(we,{setGlobalModel:(h,m)=>{}});u(e.id,{value:l,activeKey:t});const{emitRefreshPage:y}=o.inject($t,{emitRefreshPage:()=>{}}),d=c("tabChange",(h,m)=>{m!==o.unref(t)&&(l.value=h,t.value=m,y())});return De(e,{tabChange:d}),{style:n,activeKey:t,isActive:f,tabChange:d,myData:s,useImagePath:vt}}}),K1="",Wf=["id"],Uf=["onClick"];function $f(e,n,t,a,r,i){const s=o.resolveComponent("a-select-option"),l=o.resolveComponent("a-select");return o.openBlock(),o.createElementBlock("div",{class:"ecan-tabs",style:o.normalizeStyle(e.style),id:"container_"+e.id},[o.createElementVNode("div",{class:"tabs-header",style:o.normalizeStyle({fontSize:e.tabFontSize,alignItems:e.tabAlignItems,justifyContent:e.tabJustifyContent,flexDirection:e.tabFlexDirection})},[e.tabType==="tabs"?(o.openBlock(!0),o.createElementBlock(o.Fragment,{key:0},o.renderList(e.myData,(f,c)=>(o.openBlock(),o.createElementBlock("div",{class:"tab",style:o.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:o.withModifiers(u=>e.tabChange(f,c),["prevent","stop"])},[o.createElementVNode("div",{class:"tab-inner",style:o.normalizeStyle({borderBottom:!e.activeTabBackgroundImage&&!e.tabBackgroundImage?`1px solid ${e.isActive(c)?e.activeTabColor:"transparent"}`:""})},o.toDisplayString(f.title),5)],12,Uf))),128)):e.tabType==="select"?(o.openBlock(),o.createBlock(l,{key:1,value:e.activeKey,style:o.normalizeStyle({width:e.tabWidth})},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.myData,(f,c)=>(o.openBlock(),o.createBlock(s,{key:c,value:c,onClick:u=>e.tabChange(f,c)},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(f.title),1)]),_:2},1032,["value","onClick"]))),128))]),_:1},8,["value","style"])):o.createCommentVNode("",!0)],4)],12,Wf)}const s0=ge(ue(Gf,[["render",$f],["__scopeId","data-v-fbab260a"]])),Ca={...ve,name:"图片",keyName:"图片",type:"ecanImage",width:"300px",height:"300px",imgUrl:"",target:"self",href:"",linkPage:"",data:{}},wa=ye(Ca),c0=["click"],Zf=o.defineComponent({name:"EcanImage",props:{...wa},setup(e){const n=pe(e),t=o.computed(()=>vt(e.imgUrl)),{pageMode:a}=o.inject(Fe,{pageMode:"normal"}),{getGlobalModel:r,setGlobalModel:i}=o.inject(we,{getGlobalModel:f=>{},setGlobalModel:(f,c)=>{}}),l=Ae(e)("click",()=>{const f=r(e.id);if(i(e.id,{...f,RECORD:e.data||{}}),setTimeout(()=>{i(e.id,{...f,RECORD:{}})},0),!e.linkPage&&!e.href)return;const c=e.linkPage||"",u=ci(o.unref(a),c),y=e.href;let d=y||u;d=ke(d);const h=e.target;h&&(h!=="event"?window.open(d,"_"+h):window.parent.postMessage({type:"openPage",url:y},"*"))});return De(e,{click:l}),{style:n,myImgUrl:t,onClick:l}}}),J1="",Yf=["src"];function Kf(e,n,t,a,r,i){return e.myImgUrl!==""?(o.openBlock(),o.createElementBlock("img",{key:0,style:o.normalizeStyle(e.style),src:e.myImgUrl,onClick:n[0]||(n[0]=(...s)=>e.onClick&&e.onClick(...s))},null,12,Yf)):(o.openBlock(),o.createElementBlock("div",{key:1,class:"image-placeholder",style:o.normalizeStyle(e.style)}," 请上传图片 ",4))}const f0=ge(ue(Zf,[["render",Kf],["__scopeId","data-v-3665dde7"]])),Aa={...ve,name:"网页",keyName:"网页",type:"ecanIframe",width:"300px",height:"300px",link:"",linkType:"web"},ka=ye(Aa),Qf=o.defineComponent({name:"EcanIframe",props:{...ka},setup(e){const n=pe(e),{contextRequestUrl:t}=o.inject(Fe,{contextRequestUrl:""}),a=o.computed(()=>{let r=ke(e.link);if(e.linkType==="erd"&&r!=null){let i=o.unref(t);i[i.length-1]==="/"?i+="erdReport":i+="/erdReport",r=`${Kl||i}?_t=0&uid=${r}`}return r});return{style:n,myLink:a}}}),eu="",Jf=["src"];function Xf(e,n,t,a,r,i){return e.myLink?(o.openBlock(),o.createElementBlock("iframe",{key:0,src:e.myLink,style:o.normalizeStyle(e.style)},null,12,Jf)):(o.openBlock(),o.createElementBlock("div",{key:1,class:"iframe-placeholder",style:o.normalizeStyle(e.style)}," 请填写网页链接 ",4))}const d0=ge(ue(Qf,[["render",Xf],["__scopeId","data-v-19bc100c"]])),Ta={...ve,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:"#000000a6",paginationBgColor:"#fff",activePaginationColor:"#1890ff",activePaginationBgColor:"#fff",hoverBackgroundColor:"#fafafa"},Ba=ye(Ta),u0=["click","refreshData","resetRecord","exportTableData"],ed="data:image/png;base64,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",td="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==",nd="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==",Ea=o.defineComponent({name:"EcanTable",components:{Skeleton:tn,AButton:ie.Button,AInput:ie.Input,ACheckboxGroup:ie.CheckboxGroup,ATable:ie.Table,ATableSummary:ie.TableSummary,ATableSummaryRow:ie.TableSummaryRow,ATableSummaryCell:ie.TableSummaryCell},props:{...Ba},setup(e,{expose:n}){const t=o.ref(!1),a=o.computed(()=>{const V=Le.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=o.ref(),i=o.ref(!1),s=pe(e),l=o.ref([]),f=o.computed(()=>e.scrollX),c=o.ref(0),u=()=>{let V=0;switch(e.size){case"small":V=50;break;case"middle":V=53;break;default:V=65;break}return V};o.watchEffect(()=>{var V;(V=l.value)!=null&&V.length&&e.height&&o.nextTick(()=>{let U=parseFloat(e.height);const Z=document.querySelector(`#ecanTable-${e.id} .ant-table-tbody`),ne=document.querySelector(`#ecanTable-${e.id} thead.ant-table-thead`),ae=document.querySelector(`#ecanTable-${e.id} .ant-table-summary`);let ee=0;if(ne&&(U-=(ne==null?void 0:ne.clientHeight)||0),ae&&e.isSummaryFixed&&(ee=(ae==null?void 0:ae.clientHeight)||0,U-=ee),e.paginationShow){let J=0;J=u(),J&&(U-=J)}(Z==null?void 0:Z.clientHeight)>U?c.value=U:c.value=0,o.nextTick(()=>{if(ee){const J=document.querySelector(`#ecanTable-${e.id} .ant-table-summary`),de=(J==null?void 0:J.clientHeight)||0;ee!==de&&o.unref(c)&&(c.value=U+ee-de)}})})});const y=o.ref([]),d=o.ref([]),h=o.ref([]),m=o.ref([]),g=o.ref(0),v=o.ref(1),D=o.ref(e.paginationPageSize||10),b=o.reactive([]),p=(V=[])=>{var U,Z;if(Array.isArray(V)&&V.length>0){let ne=V.length;const ae=e.columnsFixedNum;if(e.dataType==="indicator"&&((U=o.unref(a))!=null&&U.length)){const{graphicConfig:{indicators:ee=[]}}=e;V.forEach((J,de)=>{if(o.unref(a)[de])for(const Re in o.unref(a)[de])["dataIndex","title"].includes(Re)||(J[Re]=o.unref(a)[de][Re]);const xe=ee.find(Re=>Re.label===J.title),{showLabel:me=""}=xe||{};me&&(J.title=me)})}for(let ee=ne-1;ee>=0;ee--)(Z=V[ee])!=null&&Z.isHidden&&V.splice(ee,1);ne=V.length;for(let ee=0;ee<ne;ee++){const J=V[ee];ee<ae?J.fixed="left":J.fixed=!1;const{cellAlign:de="center",cellColor:xe,dataIndex:me,title:Re,tableFilter:Ye,headerCellAlign:st,headerCellColor:yn}=J;Ye&&(b.push(me),J.filterOptionsInputValue="",J.filterCheckboxGroupValue=[],J.customFilterDropdown=!0,J.onFilter=(Bt,Kt)=>Kt[me].toString().toLowerCase().includes(Bt.toLowerCase())),J.customHeaderCell=()=>({style:{display:"table-cell",verticalAlign:"middle",fontSize:e.headerFontSize,fontWeight:e.headerFontWeight,textAlign:st||"center",color:yn||e.headerFontColor,borderBottomColor:e.borderColor,backgroundColor:e.headerBackgroundColor}}),J.customCell=(Bt,Kt)=>({style:{textAlign:de,color:xe||e.cellFontColor,backgroundColor:e.cellBackgroundColor,borderBottomColor:e.borderColor},class:{highlight:o.unref($)===Kt&&e.clickHighlight},onClick:P("click",()=>{const xn=e.id,pn=A(xn);Bt={dataIndex:me,title:Re,...Bt},R(xn,{...pn,type:e.type,RECORD:Bt})})}),Array.isArray(J.children)&&p(J.children)}}},x=(V=[])=>{var Z;let U=Le.cloneDeep(V);return(Z=o.unref(m))!=null&&Z.length&&(U=Le.cloneDeep(o.unref(m))),e.isUseSeq&&U.unshift({title:e.seqName,dataIndex:"SEQ",align:"center",width:e.seqWidth}),e.isUseAction&&U.push({title:"操作",dataIndex:"ACTION",width:e.actionColumnWidth}),p(U),U};o.watch(D,()=>{v.value=1,Y(!1)}),o.watch(r,V=>{i.value=!!V}),o.watch(()=>[e.columns,e.isUseSeq,e.seqWidth,e.seqName,e.seqIcon,e.isUseAction,e.columnsFixedNum,e.actionColumnWidth,e.cellBackgroundColor,e.headerBackgroundColor,e.borderColor,e.stripedColor],()=>{y.value=x(Le.cloneDeep(e.columns))},{immediate:!0,deep:!0}),o.watch(()=>[e.data,e.dataType],([V,U])=>{U==="static"&&(d.value=V)},{immediate:!0});const k=o.ref({}),C=V=>{if(Array.isArray(V)){const U=V.length,Z=b,ne=Z.length,ae={};for(let J=0;J<U;J++){const de=V[J];for(let xe=0;xe<ne;xe++){const me=Z[xe];if(ae[me])ae[me].add(de[me]);else{const Re=new Set;Re.add(de[me]),ae[me]=Re}}}const ee={};for(const J in ae)if(Object.prototype.hasOwnProperty.call(ae,J)){const de=ae[J],xe=Array.from(de);ee[J]=xe.map(me=>({label:me,value:me}))}k.value=ee}};o.watch(()=>[e.isReverse,y.value,d.value],()=>{const V=o.unref(y),U=o.unref(d);if(C(U),e.isReverse){const{columns:Z,dataSource:ne}=O(Le.cloneDeep(V),Le.cloneDeep(U));h.value=Z,l.value=ne}else h.value=V,l.value=U},{immediate:!0});const O=(V,U)=>{const Z=V[0],ne=[{title:Z.title,dataIndex:"col0",key:"col0",align:"center"}];for(let ee=0;ee<U.length;ee++){const J=U[ee],de="col"+(ee+1);ne.push({title:J[Z.dataIndex],dataIndex:de,key:de,align:"center"})}const ae=[];for(let ee=1;ee<V.length;ee++){const J=V[ee],de={col0:J.title};for(let xe=0;xe<U.length;xe++){const me=U[xe];de[`col${xe+1}`]=me[J.dataIndex]}ae.push(de)}return{columns:ne,dataSource:ae}},N=o.ref(""),L=ze(e),B=async(V=!0,U={})=>{var Z;try{V&&(t.value=!0),o.unref(N)&&(U.orderCondition=o.unref(N)),e.paginationShow&&(U={pageNum:o.unref(v),pageSize:o.unref(D)||"10",layer:"1",...U});const ne=await L(U),{rows:ae=[],total:ee=0}=((Z=ne==null?void 0:ne.data)==null?void 0:Z.data)||{};if(g.value=ee,Array.isArray(ae)&&(d.value=ae),window.config.routerBaseURL.includes("1523545080925487106")){const{requestParams:J=[]}=e,de=J.find(xe=>xe.key==="dataSqlId");if((de==null?void 0:de.value)==="xt_jxzebg"){const xe=ae.filter(me=>!me.绩效总额).map(me=>me.ORG_NAME);xe!=null&&xe.length&&o.nextTick(()=>{ie.notification.warning({message:"提示",description:`当前时段${xe.join("、")}绩效数据为空`,duration:3})})}}}catch(ne){console.error(ne)}finally{t.value=!1}},w=({current:V},U,Z)=>{if(v.value=V,Z&&Object.keys(Z).length>0){const{field:ne,order:ae}=Z,J={ascend:"asc",descend:"desc"}[ae];ne!=null&&J!=null&&(N.value=ne+" "+J)}Y(!1)},E=o.computed(()=>{const V=e.simple,U=[e.paginationPosition],Z={};return e.isShowTotal&&(Z.showTotal=ne=>`共 ${ne} 条数据`),e.paginationShow&&{simple:V,position:U,total:o.unref(g),current:o.unref(v),pageSize:o.unref(D)||"10",showSizeChanger:!1,size:"large",...Z}}),S=V=>+V==1?"是":+V==0?"否":V,_=(V,U)=>{const{format:Z,retentiondigit:ne,customFormatter:ae}=U;if(Z==null||Z==="")return V;const ee={money:Ao,percentage:hn,contrast:hn,boolean:S,decimals:ac,custom:rc};return ee[Z]?Z==="decimals"?ee[Z](V,ne)||"":Z==="custom"?ee[Z](V,ae)||"":ee[Z](V)||"":""},z=V=>V==="contrast"?"upDown":"",I=V=>{const{text:U,format:Z,declineColor:ne="#39cf93",increaseColor:ae="#ff512e"}=V;if(Z==="contrast"){const ee={fontSize:e.fontSize},J=parseFloat(U+"");return J>=0?ee.color=ae:J<0&&(ee.color=ne),ee}else return{}},M=o.computed(()=>{const{fontSize:V}=e;return{width:V,height:V,textIndent:`-${parseFloat(V)*2}px`,overflow:"hidden"}}),H=V=>{const{text:U,declineColor:Z="#39cf93",increaseColor:ne="#ff512e"}=V,{fontSize:ae}=e,ee=parseFloat(U+""),J={width:ae,verticalAlign:"unset"};return ee>=0?J.filter=`drop-shadow(${ne||"#ff512e"} ${ae} -1px)`:ee<0&&(J.filter=`drop-shadow(${Z||"#39cf93"} ${ae} -1px)`),J},j=V=>{const U=parseFloat(V+"");if(U>=0)return Do;if(U<0)return _o},P=Ae(e),{getGlobalModel:A,setGlobalModel:R}=o.inject(we,{getGlobalModel:V=>{},setGlobalModel:(V,U)=>{}}),T=(V=[],U=[])=>{const Z=V.map(ne=>({title:ne,dataIndex:ne,key:ne}));m.value=Le.cloneDeep(Z),y.value=x(Z),d.value=U},F=it(e),W=async(V=!0)=>{var U,Z,ne,ae;try{V&&(t.value=!0);const ee=o.unref(N).split(" "),J=await F({sort:{order:ee[1],field:ee[0]}});T((Z=(U=J==null?void 0:J.data)==null?void 0:U.data)==null?void 0:Z.columns,(ae=(ne=J==null?void 0:J.data)==null?void 0:ne.data)==null?void 0:ae.rows)}catch(ee){console.error(ee)}finally{t.value=!1}},$=o.ref(-1),te=(V,U)=>({onClick:P("rowClick",()=>{const Z=e.id,ne=A(Z);R(Z,{...ne,type:e.type,RECORD:V}),$.value=U})}),{loadedData:K}=o.inject(mt,{loadedData:{}}),Q=o.ref(!1);o.watch(K,V=>{if(e.dataType==="indicator"){const U=Yt(e.graphicConfig);U!=null&&U.length&&(!o.unref(Q)&&Xe(e.graphicConfig,V)?(Q.value=!0,Y()):Xe(e.graphicConfig,V)||(Q.value=!1))}},{deep:!0});const Y=(V=!0)=>{switch(e.dataType){case"request":B(V);break;case"indicator":Xe(e.graphicConfig,o.unref(K))&&W(V);break}},X=()=>{const V=e.id,U=A(V);R(V,{...U,type:e.type,RECORD:""})},oe=o.computed(()=>{const V=o.unref(h),U=[];let Z=0;for(let ee=0;ee<V.length;ee++){const J=V[ee],{isCalcTotal:de}=J;e.isUseSeq&&ee===0?U.push({...J,total:"小计"}):de?(U.push({...J,index:ee,total:0}),Z++):U.push({...J})}if(Z===0)return[];const ne=o.unref(l),ae=he(U);for(let ee=0;ee<ae.length;ee++){const J=ae[ee];let de=0;const{isCalcTotal:xe,dataIndex:me}=J;if(xe===!0){for(let Re=0;Re<ne.length;Re++){const st=+ne[Re][me];isNaN(st)||(de=new D0.Big(de).add(st).toNumber())}J.total=de}}return ae});function he(V){var Z;const U=[];for(const ne of V)(Z=ne.children)!=null&&Z.length?U.push(...he(ne.children)):U.push(ne);return U}const{setRequest:fe}=o.inject(Oe,{setRequest:V=>{}});typeof fe=="function"&&fe({id:e.id,requestFn:Y,sortNum:e.requestSort}),n({refreshData:Y});const _e=(V="",U)=>ke(V,U),He=V=>{if(V!=="event")return{self:"_self",blank:"_blank"}[V]},qe=(V,U="")=>{V==="event"&&window.parent.postMessage({type:"openPage",url:U},"*")},$e=(V,U)=>{V(U.filterCheckboxGroupValue)},Ze=(V,U)=>{V({confirm:!0}),U.filterOptionsInputValue="",U.filterCheckboxGroupValue=[]},tt=()=>{},Ee=V=>{const U=V.dataIndex;if(typeof U=="string"){let Z=o.unref(k)[U];const ne=o.unref(V.filterOptionsInputValue).trim();return Array.isArray(Z)?(Z=Z.filter(ae=>typeof ae.label=="string"?ae.label.toLowerCase().includes(ne.toLowerCase()):!0),Z):[]}return[]},Se=async()=>{var me,Re;const V="EXPORT_KEY";ie.message.loading({key:V,content:"正在导出...",duration:0});let U=[];if(e.dataType==="static")U=e.data;else if(e.dataType==="request"){const Ye={layer:"1"};o.unref(N)&&(Ye.orderCondition=o.unref(N));const st=await L(Ye);U=((Re=(me=st==null?void 0:st.data)==null?void 0:me.data)==null?void 0:Re.rows)||{}}const Z=o.unref(h),ne=[],ae=[];Z==null||Z.forEach(Ye=>{ne.push(Ye.dataIndex),ae.push(Ye.title)});const ee=U.map(Ye=>Le.pick(Ye,ne)),J=jt.utils.book_new(),de=jt.utils.aoa_to_sheet([ae]),xe=jt.utils.sheet_add_json(de,ee,{skipHeader:!0,origin:"A2"});jt.utils.book_append_sheet(J,xe,"sheet"),jt.writeFile(J,"表格数据.xlsx"),ie.message.success({key:V,content:"导出成功"})},Ie=(V,U=2)=>{const Z=+V*100;return isNaN(Z)||Z<=0?0:Z>=100?100:Z.toFixed(U)};De(e,{resetRecord:X,refreshData:Y,exportTableData:Se});const je=(V,U)=>{let Z=null;return e.stripedShow&&(Z=U%2===1?"table-striped":null),Z},nt=o.computed(()=>{let V=0;const{height:U,isPageBottom:Z}=e;return Z&&U&&(V=parseFloat(U)-u()),V?V+"px":"100%"}),Me=o.computed(()=>{let V="#071655";return e.headerBackgroundColor&&(V="transparent"),V}),Ve=o.computed(()=>{let V="#071655";return(e.cellBackgroundColor||e.stripedShow&&e.stripedColor)&&(V="transparent"),V}),ut=o.computed(()=>parseFloat(e.fontSize)+16);return{x:f,y:c,style:s,customRow:te,pagination:E,formatFn:_,contrastClass:z,tableChange:w,summaryList:oe,loading:t,onTouchHrefEvent:qe,handleHref:_e,handleHrefTarget:He,useRowIndex:$,tableColumns:h,tableDataSource:l,useFilterOptions:Ee,useSetSelectedKeys:$e,onResetFilter:Ze,onSearchFilterOptions:tt,exportTableData:Se,handleProgressText:Ie,pageSizeVisible:i,pageSize:D,tableRef:r,rowClassName:je,tableHeight:nt,tableHeaderBgColor:Me,tableBodyBgColor:Ve,getChgStyle:I,chgBoxStyle:M,getChgBoxImgStyle:H,getChgBoxImgSrc:j,seqIcon1:ed,seqIcon2:td,seqIcon3:nd,iconSize:ut}}}),h0=()=>{o.useCssVars(e=>({"27f0c724":e.stripedColor,c51cbe28:e.paginationBgColor,dca1d49e:e.paginationColor,c6accef4:e.activePaginationBgColor,"05d42bcb":e.activePaginationColor,"8764759e":e.hoverBackgroundColor,"65fa7a4a":e.tableHeaderBgColor,"719296b4":e.tableBodyBgColor}))},g0=Ea.setup;Ea.setup=g0?(e,n)=>(h0(),g0(e,n)):h0;const nu="",ou="",od=e=>(o.pushScopeId("data-v-d2058fbc"),e=e(),o.popScopeId(),e),ad=["id"],rd={key:0,class:"table-tool"},id=o.createTextVNode("导出数据"),ld=o.createTextVNode(" 搜索 "),sd=o.createTextVNode(" 重置 "),cd=["src","width","height"],fd=["src","width","height"],dd=["src","width","height"],ud={key:1},hd={key:1,class:"action-list"},gd=["href","target","onClick"],md={key:2,class:"progress-cell"},yd={key:0},xd=["src"],pd={key:1},bd=["src"],vd={class:"ant-pagination-options-quick-jumper"},Sd=od(()=>o.createElementVNode("span",null,"条 / 页",-1));function Cd(e,n,t,a,r,i){const s=o.resolveComponent("a-button"),l=o.resolveComponent("a-input"),f=o.resolveComponent("a-checkbox-group"),c=o.resolveComponent("a-table-summary-cell"),u=o.resolveComponent("a-table-summary-row"),y=o.resolveComponent("a-table-summary"),d=o.resolveComponent("a-table"),h=o.resolveComponent("skeleton");return o.openBlock(),o.createElementBlock("div",{class:"ecan-table",id:"ecanTable-"+e.id,style:o.normalizeStyle(e.style)},[o.createVNode(h,{loading:e.loading},{default:o.withCtx(()=>{var m;return[e.isUseExport?(o.openBlock(),o.createElementBlock("div",rd,[o.createVNode(s,{class:"export-button",onClick:e.exportTableData},{default:o.withCtx(()=>[id]),_:1},8,["onClick"])])):o.createCommentVNode("",!0),o.createVNode(d,{ref:"tableRef",class:"table",style:o.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:o.withCtx(({column:g,selectedKeys:v,setSelectedKeys:D,confirm:b,clearFilters:p})=>[o.createElementVNode("div",{class:"ecan-table-filter",style:o.normalizeStyle({height:e.filterDropdownHeight})},[o.createVNode(l,{value:g.filterOptionsInputValue,"onUpdate:value":x=>g.filterOptionsInputValue=x,placeholder:"请输入关键字",class:"filter-input",onChange:e.onSearchFilterOptions},null,8,["value","onUpdate:value","onChange"]),o.createVNode(f,{value:g.filterCheckboxGroupValue,"onUpdate:value":x=>g.filterCheckboxGroupValue=x,class:"filter-checkbox",options:e.useFilterOptions(g),onChange:x=>e.useSetSelectedKeys(D,g)},null,8,["value","onUpdate:value","options","onChange"]),o.createElementVNode("div",null,[o.createVNode(s,{type:"primary",size:"small",style:{width:"90px","margin-right":"8px"},onClick:()=>b()},{default:o.withCtx(()=>[ld]),_:2},1032,["onClick"]),o.createVNode(s,{size:"small",style:{width:"90px"},onClick:o.withModifiers(x=>e.onResetFilter(p,g),["stop"])},{default:o.withCtx(()=>[sd]),_:2},1032,["onClick"])])],4)]),bodyCell:o.withCtx(({column:g,index:v,text:D,record:b})=>{var p,x;return[g.dataIndex==="SEQ"?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[e.seqIcon?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[v===0?(o.openBlock(),o.createElementBlock("img",{key:0,class:"seq-icon",src:e.seqIcon1,width:e.iconSize,height:e.iconSize},null,8,cd)):v===1?(o.openBlock(),o.createElementBlock("img",{key:1,class:"seq-icon",src:e.seqIcon2,width:e.iconSize,height:e.iconSize},null,8,fd)):v>=2?(o.openBlock(),o.createElementBlock("img",{key:2,class:"seq-icon",src:e.seqIcon3,width:e.iconSize,height:e.iconSize},null,8,dd)):o.createCommentVNode("",!0),o.createElementVNode("span",{class:"seq-icon seq-text",style:o.normalizeStyle({fontSize:e.fontSize})},o.toDisplayString(v+1),5)],64)):(o.openBlock(),o.createElementBlock("span",ud,o.toDisplayString(v+1),1))],64)):g.dataIndex==="ACTION"?(o.openBlock(),o.createElementBlock("div",hd,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.actionList,(k,C)=>(o.openBlock(),o.createElementBlock("div",{class:"action",key:C},[o.createElementVNode("a",{href:e.handleHref(k.href,b),target:e.handleHrefTarget(k.target),style:o.normalizeStyle({color:k.color,fontSize:e.fontSize,fontWeight:e.fontWeight}),onClick:O=>e.onTouchHrefEvent(k.target,e.handleHref(k.href,b))},o.toDisplayString(k.title),13,gd)]))),128))])):g.format==="progress"?(o.openBlock(),o.createElementBlock("div",md,[o.createElementVNode("div",{class:"progress",style:o.normalizeStyle({background:g.progressColor||"#1890ff",height:g.progressWidth||"18px",width:`${e.handleProgressText(D,g.progressTextDecimalPlaces)}%`})},null,4),o.createElementVNode("div",{class:"progress-text",style:o.normalizeStyle({color:+e.handleProgressText(D)<100?g.progressTextColor||"#333":g.progressFinishedTextColor||"#fff"})},o.toDisplayString(e.handleProgressText(D,g.progressTextDecimalPlaces))+"% ",5)])):(o.openBlock(),o.createElementBlock("div",{key:3,style:o.normalizeStyle({fontSize:e.fontSize,fontWeight:e.fontWeight})},[g.format==="contrast"?(o.openBlock(),o.createElementBlock("span",yd,o.toDisplayString(((p=g==null?void 0:g.customFormatter)==null?void 0:p.split("{value}")[0])||""),1)):o.createCommentVNode("",!0),o.createElementVNode("span",{class:o.normalizeClass([e.contrastClass(g.format)]),style:o.normalizeStyle(e.getChgStyle({...g,text:D}))},[g.format==="contrast"?(o.openBlock(),o.createElementBlock("div",{key:0,style:o.normalizeStyle(e.chgBoxStyle)},[o.createElementVNode("img",{style:o.normalizeStyle(e.getChgBoxImgStyle({...g,text:D})),src:e.getChgBoxImgSrc(D)},null,12,xd)],4)):o.createCommentVNode("",!0),o.createTextVNode(" "+o.toDisplayString(g.format!=null?e.formatFn(D,g):D),1)],6),g.format==="contrast"?(o.openBlock(),o.createElementBlock("span",pd,o.toDisplayString(((x=g==null?void 0:g.customFormatter)==null?void 0:x.split("{value}")[1])||""),1)):o.createCommentVNode("",!0)],4))]}),summary:o.withCtx(()=>[e.summaryList.length>0?(o.openBlock(),o.createBlock(y,{key:0,fixed:e.isSummaryFixed},{default:o.withCtx(()=>[o.createVNode(u,null,{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.summaryList,(g,v)=>(o.openBlock(),o.createBlock(c,{key:v,index:v,style:o.normalizeStyle({backgroundColor:e.cellBackgroundColor,textAlign:g.cellAlign||"center",color:e.cellFontColor,borderBottomColor:e.borderColor})},{default:o.withCtx(()=>[o.createElementVNode("span",{class:o.normalizeClass([e.contrastClass(g.format)]),style:o.normalizeStyle({...e.getChgStyle({...g,text:g.total}),fontSize:e.fontSize,fontWeight:e.fontWeight})},[g.format==="contrast"?(o.openBlock(),o.createElementBlock("div",{key:0,style:o.normalizeStyle(e.chgBoxStyle)},[o.createElementVNode("img",{style:o.normalizeStyle(e.getChgBoxImgStyle({...g,text:g.total})),src:e.getChgBoxImgSrc(g.total)},null,12,bd)],4)):o.createCommentVNode("",!0),o.createTextVNode(" "+o.toDisplayString((g.format!=null||g.format!=="")&&e.formatFn(g.total,g)),1)],6)]),_:2},1032,["index","style"]))),128))]),_:1})]),_:1},8,["fixed"])):o.createCommentVNode("",!0)]),_:1},8,["style","columns","data-source","bordered","size","customRow","scroll","pagination","row-class-name","show-header","onChange"]),(m=e.tableDataSource)!=null&&m.length&&!e.simple&&e.pageSizeShow&&e.pageSizeVisible?(o.openBlock(),o.createBlock(o.Teleport,{key:1,to:"#ecanTable-"+e.id+" .ant-pagination"},[o.createElementVNode("div",vd,[o.withDirectives(o.createElementVNode("input",{type:"text","onUpdate:modelValue":n[0]||(n[0]=g=>e.pageSize=g)},null,512),[[o.vModelText,e.pageSize]]),Sd])],8,["to"])):o.createCommentVNode("",!0)]}),_:1},8,["loading"])],12,ad)}const m0=ge(ue(Ea,[["render",Cd],["__scopeId","data-v-d2058fbc"]])),Da={...ve,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"},_a=ye(Da),y0=["click"];Ge.use([At.CanvasRenderer,ct.MapChart,ct.ScatterChart,be.VisualMapComponent,be.TooltipComponent,be.GraphicComponent]);const wd=o.defineComponent({name:"EcanMap",components:{Echarts:ht},props:{..._a},setup(e){const n=ze(e),t=ze({...e.tooltipRequestData,requestHeaders:{}}),a=o.ref(),r=o.ref(""),i=o.ref(""),s=pe(e,["backgroundImage"]),l=o.ref(),f=o.computed(()=>vt(e.geoBackgroundImage)),c=o.computed(()=>vt(e.backgroundImage)),u=o.computed(()=>e.geoBackgroundImage?{image:o.unref(l),repeat:e.geoBackgroundImageRepeat}:e.geoItemStyleAreaColor),y=o.computed(()=>{const S=e.symbolImage;return e.symbolImage?"image://"+vt(S):"circle"}),d=S=>{let _=e.tooltipFormatter;const z=_.match(/\{(.+?)\}/g);if(z==null||z.length===0)return _;for(let I=0;I<z.length;I++){const M=z[I];let H=M.slice(1,-1).trim();const j=/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,P=H.match(j);for(let A=0;A<P.length;A++){const R=P[A],T=S[R];T!=null&&(H=H.replace(R,T))}_=_.replace(M,H)}return _.split(`
118
+ `)},h=o.ref(!1),m=o.ref("");let g=new AbortController;const v=(S,_)=>{const z=g.signal;h.value=!0,r.value=S,t({name:S,signal:z}).then(I=>{var M,H;if(I){const j=((H=(M=I==null?void 0:I.data)==null?void 0:M.data)==null?void 0:H.rows)||[];let P="";for(const A of j){const R=d(A)||[];if(R!=null&&R.length)for(const T of R)P+=`<div style="word-break: break-all;white-space: normal;">${T}</div>`}P=`<div style="max-width:200px;">${P}</div>`,i.value=P,_(o.unref(m),P)}else z.aborted?i.value="Loading":i.value=S,_(o.unref(m),i.value);h.value=!1})},D=o.computed(()=>{const S=e.geoCenter;let _;return typeof S=="string"&&S!==""&&(_=S.split(",")),{tooltip:{show:!0},graphic:[{type:"image",style:{width:parseFloat(e.width),height:parseFloat(e.height),image:o.unref(c)},top:"center"}],geo:{zoom:e.geoZoom,roam:e.geoRoam,center:_,map:`map-${e.id}`,tooltip:{show:e.tooltipShow,trigger:"item",backgroundColor:e.tooltipBackgroundColor,borderColor:"transparent",textStyle:{color:e.tooltipTextStyleColor},formatter:(z,I,M)=>{m.value=I;const{name:H=""}=z,{requestUrl:j}=e.tooltipRequestData;if(!j)return H;if(o.unref(h))o.unref(r)!==H&&(g.abort(),g=new AbortController);else{if(o.unref(r)===H)return o.unref(i);v(H,M)}return"Loading"}},label:{show:e.geoLabelShow,color:e.geoLabelColor,fontSize:e.geoLabelFontSize},itemStyle:{areaColor:o.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:o.unref(y),symbolSize:[e.symbolWidth,e.symbolHeight],label:{show:e.labelShow,fontSize:e.labelFontSize,formatter:e.labelFormatter,color:e.labelColor},tooltip:{show:e.tooltipShow,textStyle:{color:e.tooltipTextStyleColor}},data:e.data}]}}),b=o.ref(!1),p=async()=>{var z;b.value=!1;const S=e.mapJson,_=`map-${e.id}`;if(S!=null&&S.path){const I=await lt(((z=window==null?void 0:window.config)==null?void 0:z.uploadPath)+S.path);Ge.registerMap(_,(I==null?void 0:I.data)||{})}else Ge.registerMap(_,{});b.value=!0};o.watch(()=>e.mapJson,()=>{p()},{immediate:!0,deep:!0});const x=async()=>{var S,_;if(e.dataType==="request"){b.value=!1;try{const z=await n(),I=((_=(S=z==null?void 0:z.data)==null?void 0:S.data)==null?void 0:_.rows)||{},M=`map-${e.id}`;if(I!=null&&I.path){const H=await lt(I.path);Ge.registerMap(M,(H==null?void 0:H.data)||{})}else Ge.registerMap(M,{})}catch(z){console.error(z)}finally{b.value=!0}}},k=()=>{switch(e.dataType){case"request":x();break}},{getGlobalModel:C,setGlobalModel:O}=o.inject(we,{getGlobalModel:S=>{},setGlobalModel:(S,_)=>{}}),L=Ae(e)("click",()=>{const S=C(e.id);O(e.id,{...S,RECORD:o.unref(a)})});De(e,{refreshData:k});const{setRequest:B}=o.inject(Oe,{setRequest:S=>{}});return typeof B=="function"&&B({id:e.id,requestFn:k,sortNum:e.requestSort}),{option:D,style:s,isLoadedData:b,geoBackgroundImageRef:l,myGeoBackgroundImage:f,customClick:()=>{o.unref(a)&&L()},onMouseOver:(S={})=>{S.componentType==="geo"&&S.region?a.value=S.region:a.value=null}}}}),ru="",Ad=["src"];function kd(e,n,t,a,r,i){const s=o.resolveComponent("echarts");return o.openBlock(),o.createElementBlock("div",{class:"ecan-map",style:o.normalizeStyle(e.style)},[e.isLoadedData?(o.openBlock(),o.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"])):o.createCommentVNode("",!0),o.withDirectives(o.createElementVNode("img",{ref:"geoBackgroundImageRef",src:e.myGeoBackgroundImage},null,8,Ad),[[o.vShow,!1]])],4)}const x0=ge(ue(wd,[["render",kd],["__scopeId","data-v-10f150ac"]])),p0=Object.freeze(Object.defineProperty({__proto__:null,EcanBar:Qi,EcanBorder:i0,EcanButton:Li,EcanCheckbox:zi,EcanComboGraph:n0,EcanCustomGraph:e0,EcanDatePicker:Ei,EcanIframe:d0,EcanImage:f0,EcanInput:Ai,EcanLine:Yi,EcanList:vi,EcanMap:x0,EcanModal:St,EcanPageConfig:fi,EcanPie:$i,EcanProportion:Ci,EcanProviderConfig:di,EcanRadar:a0,EcanRadio:ji,EcanRangePicker:Oi,EcanScatter:Xi,EcanScrollText:yi,EcanSelect:Pi,EcanTable:m0,EcanTabs:s0,EcanText:mi,EcanTimeDisplay:pi,EcanTreeSelect:qi,barComponentProps:ca,barEvents:Ki,barProps:sa,borderComponentProps:ba,borderEvents:r0,borderProps:pa,buttonComponentProps:$o,buttonEvents:Ni,buttonProps:Uo,checkboxComponentProps:Yo,checkboxEvents:Fi,checkboxProps:Zo,comboGraphComponentProps:ma,comboGraphEvents:t0,comboGraphProps:ga,customGraphComponentProps:ha,customGraphProps:ua,datePickerComponentProps:qo,datePickerEvents:ki,datePickerProps:Ho,iframeComponentProps:ka,iframeProps:Aa,imageComponentProps:wa,imageEvents:c0,imageProps:Ca,inputComponentProps:Po,inputEvents:wi,inputProps:Mo,lineComponentProps:la,lineEvents:Zi,lineProps:ia,listComponentProps:Lo,listEvents:bi,listProps:No,mapComponentProps:_a,mapEvents:y0,mapProps:Da,modalComponentProps:ra,modalEvents:Wi,modalProps:aa,pageConfig:In,pageConfigComponentProps:On,pieComponentProps:oa,pieEvents:Gi,pieProps:na,proportionComponentProps:zo,proportionEvents:Si,proportionProps:Fo,providerConfig:ko,providerConfigComponentProps:To,radarComponentProps:xa,radarEvents:o0,radarProps:ya,radioComponentProps:ta,radioEvents:Vi,radioProps:ea,rangePickerComponentProps:Go,rangePickerEvents:Di,rangePickerProps:jo,scatterComponentProps:da,scatterEvents:Ji,scatterProps:fa,selectComponentProps:Qo,selectEvents:Mi,selectProps:Ko,tableComponentProps:Ba,tableEvents:u0,tableProps:Ta,tabsComponentProps:Sa,tabsEvents:l0,tabsProps:va,textComponentProps:Eo,textEvents:ui,textProps:Bo,timeDisplayComponentProps:Oo,timeDisplayEvents:xi,timeDisplayProps:Io,treeSelectComponentProps:Xo,treeSelectEvents:Hi,treeSelectProps:Jo},Symbol.toStringTag,{value:"Module"})),Td={install:e=>{Object.keys(p0).forEach(n=>{const t=p0[n];t.install&&e.use(t)})}};q.EcanBar=Qi,q.EcanBorder=i0,q.EcanButton=Li,q.EcanCheckbox=zi,q.EcanComboGraph=n0,q.EcanCustomGraph=e0,q.EcanDatePicker=Ei,q.EcanIframe=d0,q.EcanImage=f0,q.EcanInput=Ai,q.EcanLine=Yi,q.EcanList=vi,q.EcanMap=x0,q.EcanModal=St,q.EcanPageConfig=fi,q.EcanPie=$i,q.EcanProportion=Ci,q.EcanProviderConfig=di,q.EcanRadar=a0,q.EcanRadio=ji,q.EcanRangePicker=Oi,q.EcanScatter=Xi,q.EcanScrollText=yi,q.EcanSelect=Pi,q.EcanTable=m0,q.EcanTabs=s0,q.EcanText=mi,q.EcanTimeDisplay=pi,q.EcanTreeSelect=qi,q.barComponentProps=ca,q.barEvents=Ki,q.barProps=sa,q.borderComponentProps=ba,q.borderEvents=r0,q.borderProps=pa,q.buttonComponentProps=$o,q.buttonEvents=Ni,q.buttonProps=Uo,q.checkboxComponentProps=Yo,q.checkboxEvents=Fi,q.checkboxProps=Zo,q.comboGraphComponentProps=ma,q.comboGraphEvents=t0,q.comboGraphProps=ga,q.compatibleMobileList=Ui,q.customGraphComponentProps=ha,q.customGraphProps=ua,q.datePickerComponentProps=qo,q.datePickerEvents=ki,q.datePickerProps=Ho,q.default=Td,q.iframeComponentProps=ka,q.iframeProps=Aa,q.imageComponentProps=wa,q.imageEvents=c0,q.imageProps=Ca,q.inputComponentProps=Po,q.inputEvents=wi,q.inputProps=Mo,q.lineComponentProps=la,q.lineEvents=Zi,q.lineProps=ia,q.listComponentProps=Lo,q.listEvents=bi,q.listProps=No,q.mapComponentProps=_a,q.mapEvents=y0,q.mapProps=Da,q.modalComponentProps=ra,q.modalEvents=Wi,q.modalProps=aa,q.pageConfig=In,q.pageConfigComponentProps=On,q.pieComponentProps=oa,q.pieEvents=Gi,q.pieProps=na,q.proportionComponentProps=zo,q.proportionEvents=Si,q.proportionProps=Fo,q.providerConfig=ko,q.providerConfigComponentProps=To,q.radarComponentProps=xa,q.radarEvents=o0,q.radarProps=ya,q.radioComponentProps=ta,q.radioEvents=Vi,q.radioProps=ea,q.rangePickerComponentProps=Go,q.rangePickerEvents=Di,q.rangePickerProps=jo,q.scatterComponentProps=da,q.scatterEvents=Ji,q.scatterProps=fa,q.selectComponentProps=Qo,q.selectEvents=Mi,q.selectProps=Ko,q.tableComponentProps=Ba,q.tableEvents=u0,q.tableProps=Ta,q.tabsComponentProps=Sa,q.tabsEvents=l0,q.tabsProps=va,q.textComponentProps=Eo,q.textEvents=ui,q.textProps=Bo,q.timeDisplayComponentProps=Oo,q.timeDisplayEvents=xi,q.timeDisplayProps=Io,q.treeSelectComponentProps=Xo,q.treeSelectEvents=Hi,q.treeSelectProps=Jo,Object.defineProperties(q,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
119
119
  //# sourceMappingURL=index.umd.js.map