@ecan-bi/datav 1.2.22 → 1.2.24

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.
Files changed (37) hide show
  1. package/dist/index.es.js +2517 -2438
  2. package/dist/index.es.js.map +1 -1
  3. package/dist/index.umd.js +27 -27
  4. package/dist/index.umd.js.map +1 -1
  5. package/dist/style.css +2 -2
  6. package/package.json +1 -1
  7. package/types/container/border/Border.vue.d.ts +33 -4
  8. package/types/container/border/index.d.ts +33 -4
  9. package/types/container/border/props.d.ts +18 -3
  10. package/types/control/button/Button.vue.d.ts +3 -0
  11. package/types/control/button/index.d.ts +3 -0
  12. package/types/graph/bar/Bar.vue.d.ts +65 -6
  13. package/types/graph/bar/index.d.ts +65 -6
  14. package/types/graph/bar/props.d.ts +34 -4
  15. package/types/graph/combo-graph/ComboGraph.vue.d.ts +9 -0
  16. package/types/graph/combo-graph/index.d.ts +9 -0
  17. package/types/graph/combo-graph/props.d.ts +5 -0
  18. package/types/graph/line/Line.vue.d.ts +48 -0
  19. package/types/graph/line/index.d.ts +48 -0
  20. package/types/graph/line/props.d.ts +30 -0
  21. package/types/graph/pie/Pie.vue.d.ts +27 -0
  22. package/types/graph/pie/index.d.ts +27 -0
  23. package/types/graph/pie/props.d.ts +15 -0
  24. package/types/graph/scatter/Scatter.vue.d.ts +9 -0
  25. package/types/graph/scatter/index.d.ts +9 -0
  26. package/types/graph/scatter/props.d.ts +5 -0
  27. package/types/setting/page-config/PageConfig.vue.d.ts +2 -2
  28. package/types/setting/page-config/index.d.ts +2 -2
  29. package/types/setting/provider-config/ProviderConfig.vue.d.ts +16 -0
  30. package/types/setting/provider-config/index.d.ts +16 -0
  31. package/types/setting/provider-config/props.d.ts +10 -0
  32. package/types/table/table/Table.vue.d.ts +9 -0
  33. package/types/table/table/index.d.ts +9 -0
  34. package/types/table/table/props.d.ts +5 -0
  35. package/types/text/text/Text.vue.d.ts +16 -0
  36. package/types/text/text/index.d.ts +16 -0
  37. package/types/text/text/props.d.ts +10 -0
package/dist/index.umd.js CHANGED
@@ -1,5 +1,5 @@
1
- /*! @ecan-bi/datav@1.2.22 */
2
- (function(z,r){typeof exports=="object"&&typeof module<"u"?r(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"],r):(z=typeof globalThis<"u"?globalThis:z||self,r(z["@ecan/bi-datav"]={},z.Vue,z["echarts/core"],z.ResizeDetector,z.AntDesignVue,null,null,z.LodashEs,z.Dayjs,z.Axios,z.Mitt,null,null,null,z["ant-design-vue/es/date-picker/locale/zh_CN"],null,null,null,null,z["echarts/renderers"],z["echarts/charts"],z["echarts/components"],null,z.Echarts,null,null,z.Xlsx,z.big.js))})(this,function(z,r,He,ar,ae,Mf,Ff,$e,Oe,Wa,Za,Vf,qf,Hf,ir,$f,jf,Uf,Gf,lt,We,xe,Wf,Ka,Zf,Kf,kt,Ya){var Oa,Na,Pa,za;"use strict";function Xa(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const o=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,o.get?o:{enumerable:!0,get:()=>e[t]})}}return n.default=e,Object.freeze(n)}const Ja=Xa(Ka),Qa=["getWidth","getHeight","getDom","getOption","resize","dispatchAction","convertToPixel","convertFromPixel","containPixel","getDataURL","getConnectedDataURL","appendData","clear","isDisposed","dispose"];function ei(e,n){function t(a){return(...i)=>{if(e.value||n(),!e.value)throw new Error("ECharts is not initialized yet.");return e.value[a].apply(e.value,i)}}function o(){const a=Object.create(null);return Qa.forEach(i=>{a[i]=t(i)}),a}return o()}function ti(e,n,t){let o=null;r.watch([t,e,n],([a,i,l],s,f)=>{a&&i&&l&&(o=He.throttle(()=>{i.resize()},100),ar.addListener(a,o)),f(()=>{o&&a&&ar.removeListener(a,o)})})}const ni={autoresize:Boolean},oi="ecLoadingOptions";function ri(e,n,t){const o=r.inject(oi,{}),a=r.computed(()=>({...r.unref(o),...t==null?void 0:t.value}));r.watchEffect(()=>{const i=e.value;i&&(n.value?i.showLoading(a.value):i.hideLoading())})}const ai={loading:Boolean,loadingOptions:Object},Yf="",ii=/^on[^a-z]/,si=e=>ii.test(e);function li(e){const n={};for(const t in e)si(t)||(n[t]=e[t]);return n}const ci="x-vue-echarts",fi="ecTheme",di="ecInitOptions",ui="ecUpdateOptions",nt=r.defineComponent({name:"echarts",props:{option:Object,theme:{type:[Object,String]},initOptions:Object,updateOptions:Object,group:String,manualUpdate:Boolean,...ni,...ai},inheritAttrs:!1,setup(e,{attrs:n,listeners:t}){const o=r.shallowRef(),a=r.shallowRef(),i=r.shallowRef(),l=r.inject(fi,null),s=r.inject(di,null),f=r.inject(ui,null),{autoresize:c,manualUpdate:d,loading:p,loadingOptions:u}=r.toRefs(e),h=r.computed(()=>i.value||e.option||Object.create(null)),g=r.computed(()=>e.theme||r.unref(l)||{}),x=r.computed(()=>e.initOptions||r.unref(s)||{}),y=r.computed(()=>e.updateOptions||r.unref(f)||{}),S=r.computed(()=>li(n));function m(k){if(a.value||!o.value)return;const A=a.value=He.init(o.value,g.value,x.value);e.group&&(A.group=e.group);let E=t;E||(E={},Object.keys(n).filter(R=>R.indexOf("on")===0&&R.length>2).forEach(R=>{const B=R.charAt(2).toLowerCase()+R.slice(3);E[B]=n[R]})),Object.keys(E).forEach(R=>{const B=E[R];B&&(R.indexOf("zr:")===0?A.getZr().on(R.slice(3).toLowerCase(),B):A.on(R.toLowerCase(),B))});function C(){if(A&&!A.isDisposed())try{A.resize()}catch(R){if(R.message==="Cannot read property 'get' of undefined")return;throw R}}function T(){A.setOption(k||h.value,y.value)}c.value?r.nextTick(()=>{C(),T()}):T()}function b(k,A){e.manualUpdate&&(i.value=k),a.value?a.value.setOption(k,A||{}):m(k)}function v(){a.value&&(a.value.dispose(),a.value=void 0)}let _=null;r.watch(d,k=>{typeof _=="function"&&(_(),_=null),k||(_=r.watch(()=>e.option,A=>{A&&(a.value?a.value.setOption(A,y.value):m())},{deep:!0}))},{immediate:!0}),r.watch([g,x],()=>{v(),m()},{deep:!0}),r.watchEffect(()=>{e.group&&a.value&&(a.value.group=e.group)});const w=ei(a,m);return ri(a,p,u),ti(a,c,o),r.onMounted(()=>{e.option&&m()}),r.onUnmounted(v),{chart:a,root:o,setOption:b,nonEventAttrs:S,...w}},render(){const e={...this.nonEventAttrs};return e.ref="root",e.class=e.class?["echarts"].concat(e.class):"echarts",r.h(ci,e)}});function Ne(e,n){hi(e)&&(e="100%");var t=xi(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 hi(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function xi(e){return typeof e=="string"&&e.indexOf("%")!==-1}function gi(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Pt(e){return e<=1?"".concat(Number(e)*100,"%"):e}function en(e){return e.length===1?"0"+e:String(e)}function mi(e,n,t){return{r:Ne(e,255)*255,g:Ne(n,255)*255,b:Ne(t,255)*255}}function tn(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 pi(e,n,t){var o,a,i;if(e=Ne(e,360),n=Ne(n,100),t=Ne(t,100),n===0)a=t,i=t,o=t;else{var l=t<.5?t*(1+n):t+n-t*n,s=2*t-l;o=tn(s,l,e+1/3),a=tn(s,l,e),i=tn(s,l,e-1/3)}return{r:o*255,g:a*255,b:i*255}}function yi(e,n,t){e=Ne(e,255),n=Ne(n,255),t=Ne(t,255);var o=Math.max(e,n,t),a=Math.min(e,n,t),i=0,l=o,s=o-a,f=o===0?0:s/o;if(o===a)i=0;else{switch(o){case e:i=(n-t)/s+(n<t?6:0);break;case n:i=(t-e)/s+2;break;case t:i=(e-n)/s+4;break}i/=6}return{h:i,s:f,v:l}}function vi(e,n,t){e=Ne(e,360)*6,n=Ne(n,100),t=Ne(t,100);var o=Math.floor(e),a=e-o,i=t*(1-n),l=t*(1-a*n),s=t*(1-(1-a)*n),f=o%6,c=[t,l,i,i,s,t][f],d=[s,t,t,l,i,i][f],p=[i,i,s,t,t,l][f];return{r:c*255,g:d*255,b:p*255}}function bi(e,n,t,o){var a=[en(Math.round(e).toString(16)),en(Math.round(n).toString(16)),en(Math.round(t).toString(16))];return o&&a[0].startsWith(a[0].charAt(1))&&a[1].startsWith(a[1].charAt(1))&&a[2].startsWith(a[2].charAt(1))?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0):a.join("")}function sr(e){return Re(e)/255}function Re(e){return parseInt(e,16)}var lr={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 _t(e){var n={r:0,g:0,b:0},t=1,o=null,a=null,i=null,l=!1,s=!1;return typeof e=="string"&&(e=Ci(e)),typeof e=="object"&&(je(e.r)&&je(e.g)&&je(e.b)?(n=mi(e.r,e.g,e.b),l=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):je(e.h)&&je(e.s)&&je(e.v)?(o=Pt(e.s),a=Pt(e.v),n=vi(e.h,o,a),l=!0,s="hsv"):je(e.h)&&je(e.s)&&je(e.l)&&(o=Pt(e.s),i=Pt(e.l),n=pi(e.h,o,i),l=!0,s="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(t=e.a)),t=gi(t),{ok:l,format:e.format||s,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 Si="[-\\+]?\\d+%?",wi="[-\\+]?\\d*\\.\\d+%?",Ze="(?:".concat(wi,")|(?:").concat(Si,")"),nn="[\\s|\\(]+(".concat(Ze,")[,|\\s]+(").concat(Ze,")[,|\\s]+(").concat(Ze,")\\s*\\)?"),on="[\\s|\\(]+(".concat(Ze,")[,|\\s]+(").concat(Ze,")[,|\\s]+(").concat(Ze,")[,|\\s]+(").concat(Ze,")\\s*\\)?"),Me={CSS_UNIT:new RegExp(Ze),rgb:new RegExp("rgb"+nn),rgba:new RegExp("rgba"+on),hsl:new RegExp("hsl"+nn),hsla:new RegExp("hsla"+on),hsv:new RegExp("hsv"+nn),hsva:new RegExp("hsva"+on),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 Ci(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var n=!1;if(lr[e])e=lr[e],n=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var t=Me.rgb.exec(e);return t?{r:t[1],g:t[2],b:t[3]}:(t=Me.rgba.exec(e),t?{r:t[1],g:t[2],b:t[3],a:t[4]}:(t=Me.hsl.exec(e),t?{h:t[1],s:t[2],l:t[3]}:(t=Me.hsla.exec(e),t?{h:t[1],s:t[2],l:t[3],a:t[4]}:(t=Me.hsv.exec(e),t?{h:t[1],s:t[2],v:t[3]}:(t=Me.hsva.exec(e),t?{h:t[1],s:t[2],v:t[3],a:t[4]}:(t=Me.hex8.exec(e),t?{r:Re(t[1]),g:Re(t[2]),b:Re(t[3]),a:sr(t[4]),format:n?"name":"hex8"}:(t=Me.hex6.exec(e),t?{r:Re(t[1]),g:Re(t[2]),b:Re(t[3]),format:n?"name":"hex"}:(t=Me.hex4.exec(e),t?{r:Re(t[1]+t[1]),g:Re(t[2]+t[2]),b:Re(t[3]+t[3]),a:sr(t[4]+t[4]),format:n?"name":"hex8"}:(t=Me.hex3.exec(e),t?{r:Re(t[1]+t[1]),g:Re(t[2]+t[2]),b:Re(t[3]+t[3]),format:n?"name":"hex"}:!1)))))))))}function je(e){return!!Me.CSS_UNIT.exec(String(e))}var zt=2,cr=.16,ki=.05,_i=.05,Ai=.15,fr=5,dr=4,Ei=[{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 ur(e){var n=e.r,t=e.g,o=e.b,a=yi(n,t,o);return{h:a.h*360,s:a.s,v:a.v}}function Mt(e){var n=e.r,t=e.g,o=e.b;return"#".concat(bi(n,t,o,!1))}function Ti(e,n,t){var o=t/100,a={r:(n.r-e.r)*o+e.r,g:(n.g-e.g)*o+e.g,b:(n.b-e.b)*o+e.b};return a}function hr(e,n,t){var o;return Math.round(e.h)>=60&&Math.round(e.h)<=240?o=t?Math.round(e.h)-zt*n:Math.round(e.h)+zt*n:o=t?Math.round(e.h)+zt*n:Math.round(e.h)-zt*n,o<0?o+=360:o>=360&&(o-=360),o}function xr(e,n,t){if(e.h===0&&e.s===0)return e.s;var o;return t?o=e.s-cr*n:n===dr?o=e.s+cr:o=e.s+ki*n,o>1&&(o=1),t&&n===fr&&o>.1&&(o=.1),o<.06&&(o=.06),Number(o.toFixed(2))}function gr(e,n,t){var o;return t?o=e.v+_i*n:o=e.v-Ai*n,o>1&&(o=1),Number(o.toFixed(2))}function rn(e){for(var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=[],o=_t(e),a=fr;a>0;a-=1){var i=ur(o),l=Mt(_t({h:hr(i,a,!0),s:xr(i,a,!0),v:gr(i,a,!0)}));t.push(l)}t.push(Mt(o));for(var s=1;s<=dr;s+=1){var f=ur(o),c=Mt(_t({h:hr(f,s),s:xr(f,s),v:gr(f,s)}));t.push(c)}return n.theme==="dark"?Ei.map(function(d){var p=d.index,u=d.opacity,h=Mt(Ti(_t(n.backgroundColor||"#141414"),_t(t[p]),u*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"},sn={},ln={};Object.keys(an).forEach(function(e){sn[e]=rn(an[e]),sn[e].primary=sn[e][5],ln[e]=rn(an[e],{theme:"dark",backgroundColor:"#141414"}),ln[e].primary=ln[e][5]});var mr=[],At=[],Bi="insert-css: You need to provide a CSS string. Usage: insertCss(cssString[, options]).";function Di(){var e=document.createElement("style");return e.setAttribute("type","text/css"),e}function Ri(e,n){if(n=n||{},e===void 0)throw new Error(Bi);var t=n.prepend===!0?"prepend":"append",o=n.container!==void 0?n.container:document.querySelector("head"),a=mr.indexOf(o);a===-1&&(a=mr.push(o)-1,At[a]={});var i;return At[a]!==void 0&&At[a][t]!==void 0?i=At[a][t]:(i=At[a][t]=Di(),t==="prepend"?o.insertBefore(i,o.childNodes[0]):o.appendChild(i)),e.charCodeAt(0)===65279&&(e=e.substr(1,e.length)),i.styleSheet?i.styleSheet.cssText+=e:i.textContent+=e,i}function pr(e){for(var n=1;n<arguments.length;n++){var t=arguments[n]!=null?Object(arguments[n]):{},o=Object.keys(t);typeof Object.getOwnPropertySymbols=="function"&&(o=o.concat(Object.getOwnPropertySymbols(t).filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable}))),o.forEach(function(a){Ii(e,a,t[a])})}return e}function Ii(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function Li(e,n){process.env.NODE_ENV!=="production"&&!e&&console!==void 0&&console.error("Warning: ".concat(n))}function Oi(e,n){Li(e,"[@ant-design/icons-vue] ".concat(n))}function yr(e){return typeof e=="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(typeof e.icon=="object"||typeof e.icon=="function")}function cn(e,n,t){return t?r.h(e.tag,pr({key:n},t,e.attrs),(e.children||[]).map(function(o,a){return cn(o,"".concat(n,"-").concat(e.tag,"-").concat(a))})):r.h(e.tag,pr({key:n},e.attrs),(e.children||[]).map(function(o,a){return cn(o,"".concat(n,"-").concat(e.tag,"-").concat(a))}))}function vr(e){return rn(e)[0]}function br(e){return e?Array.isArray(e)?e:[e]:[]}var Ni=`
1
+ /*! @ecan-bi/datav@1.2.24 */
2
+ (function(V,r){typeof exports=="object"&&typeof module<"u"?r(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"],r):(V=typeof globalThis<"u"?globalThis:V||self,r(V["@ecan/bi-datav"]={},V.Vue,V["echarts/core"],V.ResizeDetector,V.AntDesignVue,null,null,V.LodashEs,V.Dayjs,V.Axios,V.Mitt,null,null,null,V["ant-design-vue/es/date-picker/locale/zh_CN"],null,null,null,null,V["echarts/renderers"],V["echarts/charts"],V["echarts/components"],null,V.Echarts,null,null,V.Xlsx,V.big.js))})(this,function(V,r,He,ar,ae,Mf,Ff,$e,Oe,W0,Z0,Vf,qf,Hf,ir,$f,jf,Uf,Gf,ct,Ze,xe,Wf,K0,Zf,Kf,At,Y0){var O0,N0,P0,z0;"use strict";function X0(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const o=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,o.get?o:{enumerable:!0,get:()=>e[t]})}}return n.default=e,Object.freeze(n)}const J0=X0(K0),Q0=["getWidth","getHeight","getDom","getOption","resize","dispatchAction","convertToPixel","convertFromPixel","containPixel","getDataURL","getConnectedDataURL","appendData","clear","isDisposed","dispose"];function ei(e,n){function t(a){return(...i)=>{if(e.value||n(),!e.value)throw new Error("ECharts is not initialized yet.");return e.value[a].apply(e.value,i)}}function o(){const a=Object.create(null);return Q0.forEach(i=>{a[i]=t(i)}),a}return o()}function ti(e,n,t){let o=null;r.watch([t,e,n],([a,i,l],s,f)=>{a&&i&&l&&(o=He.throttle(()=>{i.resize()},100),ar.addListener(a,o)),f(()=>{o&&a&&ar.removeListener(a,o)})})}const ni={autoresize:Boolean},oi="ecLoadingOptions";function ri(e,n,t){const o=r.inject(oi,{}),a=r.computed(()=>({...r.unref(o),...t==null?void 0:t.value}));r.watchEffect(()=>{const i=e.value;i&&(n.value?i.showLoading(a.value):i.hideLoading())})}const ai={loading:Boolean,loadingOptions:Object},Yf="",ii=/^on[^a-z]/,si=e=>ii.test(e);function li(e){const n={};for(const t in e)si(t)||(n[t]=e[t]);return n}const ci="x-vue-echarts",fi="ecTheme",di="ecInitOptions",ui="ecUpdateOptions",nt=r.defineComponent({name:"echarts",props:{option:Object,theme:{type:[Object,String]},initOptions:Object,updateOptions:Object,group:String,manualUpdate:Boolean,...ni,...ai},inheritAttrs:!1,setup(e,{attrs:n,listeners:t}){const o=r.shallowRef(),a=r.shallowRef(),i=r.shallowRef(),l=r.inject(fi,null),s=r.inject(di,null),f=r.inject(ui,null),{autoresize:c,manualUpdate:d,loading:p,loadingOptions:u}=r.toRefs(e),h=r.computed(()=>i.value||e.option||Object.create(null)),m=r.computed(()=>e.theme||r.unref(l)||{}),g=r.computed(()=>e.initOptions||r.unref(s)||{}),y=r.computed(()=>e.updateOptions||r.unref(f)||{}),C=r.computed(()=>li(n));function x(k){if(a.value||!o.value)return;const A=a.value=He.init(o.value,m.value,g.value);e.group&&(A.group=e.group);let D=t;D||(D={},Object.keys(n).filter(R=>R.indexOf("on")===0&&R.length>2).forEach(R=>{const I=R.charAt(2).toLowerCase()+R.slice(3);D[I]=n[R]})),Object.keys(D).forEach(R=>{const I=D[R];I&&(R.indexOf("zr:")===0?A.getZr().on(R.slice(3).toLowerCase(),I):A.on(R.toLowerCase(),I))});function w(){if(A&&!A.isDisposed())try{A.resize()}catch(R){if(R.message==="Cannot read property 'get' of undefined")return;throw R}}function E(){A.setOption(k||h.value,y.value)}c.value?r.nextTick(()=>{w(),E()}):E()}function v(k,A){e.manualUpdate&&(i.value=k),a.value?a.value.setOption(k,A||{}):x(k)}function b(){a.value&&(a.value.dispose(),a.value=void 0)}let _=null;r.watch(d,k=>{typeof _=="function"&&(_(),_=null),k||(_=r.watch(()=>e.option,A=>{A&&(a.value?a.value.setOption(A,y.value):x())},{deep:!0}))},{immediate:!0}),r.watch([m,g],()=>{b(),x()},{deep:!0}),r.watchEffect(()=>{e.group&&a.value&&(a.value.group=e.group)});const S=ei(a,x);return ri(a,p,u),ti(a,c,o),r.onMounted(()=>{e.option&&x()}),r.onUnmounted(b),{chart:a,root:o,setOption:v,nonEventAttrs:C,...S}},render(){const e={...this.nonEventAttrs};return e.ref="root",e.class=e.class?["echarts"].concat(e.class):"echarts",r.h(ci,e)}});function Ne(e,n){hi(e)&&(e="100%");var t=xi(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 hi(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function xi(e){return typeof e=="string"&&e.indexOf("%")!==-1}function gi(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Pt(e){return e<=1?"".concat(Number(e)*100,"%"):e}function en(e){return e.length===1?"0"+e:String(e)}function mi(e,n,t){return{r:Ne(e,255)*255,g:Ne(n,255)*255,b:Ne(t,255)*255}}function tn(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 pi(e,n,t){var o,a,i;if(e=Ne(e,360),n=Ne(n,100),t=Ne(t,100),n===0)a=t,i=t,o=t;else{var l=t<.5?t*(1+n):t+n-t*n,s=2*t-l;o=tn(s,l,e+1/3),a=tn(s,l,e),i=tn(s,l,e-1/3)}return{r:o*255,g:a*255,b:i*255}}function yi(e,n,t){e=Ne(e,255),n=Ne(n,255),t=Ne(t,255);var o=Math.max(e,n,t),a=Math.min(e,n,t),i=0,l=o,s=o-a,f=o===0?0:s/o;if(o===a)i=0;else{switch(o){case e:i=(n-t)/s+(n<t?6:0);break;case n:i=(t-e)/s+2;break;case t:i=(e-n)/s+4;break}i/=6}return{h:i,s:f,v:l}}function vi(e,n,t){e=Ne(e,360)*6,n=Ne(n,100),t=Ne(t,100);var o=Math.floor(e),a=e-o,i=t*(1-n),l=t*(1-a*n),s=t*(1-(1-a)*n),f=o%6,c=[t,l,i,i,s,t][f],d=[s,t,t,l,i,i][f],p=[i,i,s,t,t,l][f];return{r:c*255,g:d*255,b:p*255}}function bi(e,n,t,o){var a=[en(Math.round(e).toString(16)),en(Math.round(n).toString(16)),en(Math.round(t).toString(16))];return o&&a[0].startsWith(a[0].charAt(1))&&a[1].startsWith(a[1].charAt(1))&&a[2].startsWith(a[2].charAt(1))?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0):a.join("")}function sr(e){return Re(e)/255}function Re(e){return parseInt(e,16)}var lr={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 Et(e){var n={r:0,g:0,b:0},t=1,o=null,a=null,i=null,l=!1,s=!1;return typeof e=="string"&&(e=Ci(e)),typeof e=="object"&&(je(e.r)&&je(e.g)&&je(e.b)?(n=mi(e.r,e.g,e.b),l=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):je(e.h)&&je(e.s)&&je(e.v)?(o=Pt(e.s),a=Pt(e.v),n=vi(e.h,o,a),l=!0,s="hsv"):je(e.h)&&je(e.s)&&je(e.l)&&(o=Pt(e.s),i=Pt(e.l),n=pi(e.h,o,i),l=!0,s="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(t=e.a)),t=gi(t),{ok:l,format:e.format||s,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 Si="[-\\+]?\\d+%?",wi="[-\\+]?\\d*\\.\\d+%?",Ke="(?:".concat(wi,")|(?:").concat(Si,")"),nn="[\\s|\\(]+(".concat(Ke,")[,|\\s]+(").concat(Ke,")[,|\\s]+(").concat(Ke,")\\s*\\)?"),on="[\\s|\\(]+(".concat(Ke,")[,|\\s]+(").concat(Ke,")[,|\\s]+(").concat(Ke,")[,|\\s]+(").concat(Ke,")\\s*\\)?"),Fe={CSS_UNIT:new RegExp(Ke),rgb:new RegExp("rgb"+nn),rgba:new RegExp("rgba"+on),hsl:new RegExp("hsl"+nn),hsla:new RegExp("hsla"+on),hsv:new RegExp("hsv"+nn),hsva:new RegExp("hsva"+on),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 Ci(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var n=!1;if(lr[e])e=lr[e],n=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var t=Fe.rgb.exec(e);return t?{r:t[1],g:t[2],b:t[3]}:(t=Fe.rgba.exec(e),t?{r:t[1],g:t[2],b:t[3],a:t[4]}:(t=Fe.hsl.exec(e),t?{h:t[1],s:t[2],l:t[3]}:(t=Fe.hsla.exec(e),t?{h:t[1],s:t[2],l:t[3],a:t[4]}:(t=Fe.hsv.exec(e),t?{h:t[1],s:t[2],v:t[3]}:(t=Fe.hsva.exec(e),t?{h:t[1],s:t[2],v:t[3],a:t[4]}:(t=Fe.hex8.exec(e),t?{r:Re(t[1]),g:Re(t[2]),b:Re(t[3]),a:sr(t[4]),format:n?"name":"hex8"}:(t=Fe.hex6.exec(e),t?{r:Re(t[1]),g:Re(t[2]),b:Re(t[3]),format:n?"name":"hex"}:(t=Fe.hex4.exec(e),t?{r:Re(t[1]+t[1]),g:Re(t[2]+t[2]),b:Re(t[3]+t[3]),a:sr(t[4]+t[4]),format:n?"name":"hex8"}:(t=Fe.hex3.exec(e),t?{r:Re(t[1]+t[1]),g:Re(t[2]+t[2]),b:Re(t[3]+t[3]),format:n?"name":"hex"}:!1)))))))))}function je(e){return!!Fe.CSS_UNIT.exec(String(e))}var zt=2,cr=.16,ki=.05,_i=.05,Ai=.15,fr=5,dr=4,Ei=[{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 ur(e){var n=e.r,t=e.g,o=e.b,a=yi(n,t,o);return{h:a.h*360,s:a.s,v:a.v}}function Mt(e){var n=e.r,t=e.g,o=e.b;return"#".concat(bi(n,t,o,!1))}function Ti(e,n,t){var o=t/100,a={r:(n.r-e.r)*o+e.r,g:(n.g-e.g)*o+e.g,b:(n.b-e.b)*o+e.b};return a}function hr(e,n,t){var o;return Math.round(e.h)>=60&&Math.round(e.h)<=240?o=t?Math.round(e.h)-zt*n:Math.round(e.h)+zt*n:o=t?Math.round(e.h)+zt*n:Math.round(e.h)-zt*n,o<0?o+=360:o>=360&&(o-=360),o}function xr(e,n,t){if(e.h===0&&e.s===0)return e.s;var o;return t?o=e.s-cr*n:n===dr?o=e.s+cr:o=e.s+ki*n,o>1&&(o=1),t&&n===fr&&o>.1&&(o=.1),o<.06&&(o=.06),Number(o.toFixed(2))}function gr(e,n,t){var o;return t?o=e.v+_i*n:o=e.v-Ai*n,o>1&&(o=1),Number(o.toFixed(2))}function rn(e){for(var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=[],o=Et(e),a=fr;a>0;a-=1){var i=ur(o),l=Mt(Et({h:hr(i,a,!0),s:xr(i,a,!0),v:gr(i,a,!0)}));t.push(l)}t.push(Mt(o));for(var s=1;s<=dr;s+=1){var f=ur(o),c=Mt(Et({h:hr(f,s),s:xr(f,s),v:gr(f,s)}));t.push(c)}return n.theme==="dark"?Ei.map(function(d){var p=d.index,u=d.opacity,h=Mt(Ti(Et(n.backgroundColor||"#141414"),Et(t[p]),u*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"},sn={},ln={};Object.keys(an).forEach(function(e){sn[e]=rn(an[e]),sn[e].primary=sn[e][5],ln[e]=rn(an[e],{theme:"dark",backgroundColor:"#141414"}),ln[e].primary=ln[e][5]});var mr=[],Tt=[],Bi="insert-css: You need to provide a CSS string. Usage: insertCss(cssString[, options]).";function Di(){var e=document.createElement("style");return e.setAttribute("type","text/css"),e}function Ri(e,n){if(n=n||{},e===void 0)throw new Error(Bi);var t=n.prepend===!0?"prepend":"append",o=n.container!==void 0?n.container:document.querySelector("head"),a=mr.indexOf(o);a===-1&&(a=mr.push(o)-1,Tt[a]={});var i;return Tt[a]!==void 0&&Tt[a][t]!==void 0?i=Tt[a][t]:(i=Tt[a][t]=Di(),t==="prepend"?o.insertBefore(i,o.childNodes[0]):o.appendChild(i)),e.charCodeAt(0)===65279&&(e=e.substr(1,e.length)),i.styleSheet?i.styleSheet.cssText+=e:i.textContent+=e,i}function pr(e){for(var n=1;n<arguments.length;n++){var t=arguments[n]!=null?Object(arguments[n]):{},o=Object.keys(t);typeof Object.getOwnPropertySymbols=="function"&&(o=o.concat(Object.getOwnPropertySymbols(t).filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable}))),o.forEach(function(a){Ii(e,a,t[a])})}return e}function Ii(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function Li(e,n){process.env.NODE_ENV!=="production"&&!e&&console!==void 0&&console.error("Warning: ".concat(n))}function Oi(e,n){Li(e,"[@ant-design/icons-vue] ".concat(n))}function yr(e){return typeof e=="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(typeof e.icon=="object"||typeof e.icon=="function")}function cn(e,n,t){return t?r.h(e.tag,pr({key:n},t,e.attrs),(e.children||[]).map(function(o,a){return cn(o,"".concat(n,"-").concat(e.tag,"-").concat(a))})):r.h(e.tag,pr({key:n},e.attrs),(e.children||[]).map(function(o,a){return cn(o,"".concat(n,"-").concat(e.tag,"-").concat(a))}))}function vr(e){return rn(e)[0]}function br(e){return e?Array.isArray(e)?e:[e]:[]}var Ni=`
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
- `,Sr=!1,Pi=function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Ni;r.nextTick(function(){Sr||(typeof window<"u"&&window.document&&window.document.documentElement&&Ri(n,{prepend:!0}),Sr=!0)})},zi=["icon","primaryColor","secondaryColor"];function Mi(e,n){if(e==null)return{};var t=Fi(e,n),o,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)o=i[a],!(n.indexOf(o)>=0)&&Object.prototype.propertyIsEnumerable.call(e,o)&&(t[o]=e[o])}return t}function Fi(e,n){if(e==null)return{};var t={},o=Object.keys(e),a,i;for(i=0;i<o.length;i++)a=o[i],!(n.indexOf(a)>=0)&&(t[a]=e[a]);return t}function Ft(e){for(var n=1;n<arguments.length;n++){var t=arguments[n]!=null?Object(arguments[n]):{},o=Object.keys(t);typeof Object.getOwnPropertySymbols=="function"&&(o=o.concat(Object.getOwnPropertySymbols(t).filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable}))),o.forEach(function(a){Vi(e,a,t[a])})}return e}function Vi(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}var Et={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function qi(e){var n=e.primaryColor,t=e.secondaryColor;Et.primaryColor=n,Et.secondaryColor=t||vr(n),Et.calculated=!!t}function Hi(){return Ft({},Et)}var ct=function(n,t){var o=Ft({},n,t.attrs),a=o.icon,i=o.primaryColor,l=o.secondaryColor,s=Mi(o,zi),f=Et;if(i&&(f={primaryColor:i,secondaryColor:l||vr(i)}),Pi(),Oi(yr(a),"icon should be icon definiton, but got ".concat(a)),!yr(a))return null;var c=a;return c&&typeof c.icon=="function"&&(c=Ft({},c,{icon:c.icon(f.primaryColor,f.secondaryColor)})),cn(c.icon,"svg-".concat(c.name),Ft({},s,{"data-icon":c.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"}))};ct.props={icon:Object,primaryColor:String,secondaryColor:String,focusable:String},ct.inheritAttrs=!1,ct.displayName="IconBase",ct.getTwoToneColors=Hi,ct.setTwoToneColors=qi;const fn=ct;function $i(e,n){return Wi(e)||Gi(e,n)||Ui(e,n)||ji()}function ji(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
56
+ `,Sr=!1,Pi=function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Ni;r.nextTick(function(){Sr||(typeof window<"u"&&window.document&&window.document.documentElement&&Ri(n,{prepend:!0}),Sr=!0)})},zi=["icon","primaryColor","secondaryColor"];function Mi(e,n){if(e==null)return{};var t=Fi(e,n),o,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)o=i[a],!(n.indexOf(o)>=0)&&Object.prototype.propertyIsEnumerable.call(e,o)&&(t[o]=e[o])}return t}function Fi(e,n){if(e==null)return{};var t={},o=Object.keys(e),a,i;for(i=0;i<o.length;i++)a=o[i],!(n.indexOf(a)>=0)&&(t[a]=e[a]);return t}function Ft(e){for(var n=1;n<arguments.length;n++){var t=arguments[n]!=null?Object(arguments[n]):{},o=Object.keys(t);typeof Object.getOwnPropertySymbols=="function"&&(o=o.concat(Object.getOwnPropertySymbols(t).filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable}))),o.forEach(function(a){Vi(e,a,t[a])})}return e}function Vi(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}var Bt={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function qi(e){var n=e.primaryColor,t=e.secondaryColor;Bt.primaryColor=n,Bt.secondaryColor=t||vr(n),Bt.calculated=!!t}function Hi(){return Ft({},Bt)}var ft=function(n,t){var o=Ft({},n,t.attrs),a=o.icon,i=o.primaryColor,l=o.secondaryColor,s=Mi(o,zi),f=Bt;if(i&&(f={primaryColor:i,secondaryColor:l||vr(i)}),Pi(),Oi(yr(a),"icon should be icon definiton, but got ".concat(a)),!yr(a))return null;var c=a;return c&&typeof c.icon=="function"&&(c=Ft({},c,{icon:c.icon(f.primaryColor,f.secondaryColor)})),cn(c.icon,"svg-".concat(c.name),Ft({},s,{"data-icon":c.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"}))};ft.props={icon:Object,primaryColor:String,secondaryColor:String,focusable:String},ft.inheritAttrs=!1,ft.displayName="IconBase",ft.getTwoToneColors=Hi,ft.setTwoToneColors=qi;const fn=ft;function $i(e,n){return Wi(e)||Gi(e,n)||Ui(e,n)||ji()}function ji(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
57
57
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ui(e,n){if(e){if(typeof e=="string")return wr(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 wr(e,n)}}function wr(e,n){(n==null||n>e.length)&&(n=e.length);for(var t=0,o=new Array(n);t<n;t++)o[t]=e[t];return o}function Gi(e,n){var t=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(t!=null){var o=[],a=!0,i=!1,l,s;try{for(t=t.call(e);!(a=(l=t.next()).done)&&(o.push(l.value),!(n&&o.length===n));a=!0);}catch(f){i=!0,s=f}finally{try{!a&&t.return!=null&&t.return()}finally{if(i)throw s}}return o}}function Wi(e){if(Array.isArray(e))return e}function Cr(e){var n=br(e),t=$i(n,2),o=t[0],a=t[1];return fn.setTwoToneColors({primaryColor:o,secondaryColor:a})}function Zi(){var e=fn.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var Ki=["class","icon","spin","rotate","tabindex","twoToneColor","onClick"];function Yi(e,n){return es(e)||Qi(e,n)||Ji(e,n)||Xi()}function Xi(){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 Ji(e,n){if(e){if(typeof e=="string")return kr(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 kr(e,n)}}function kr(e,n){(n==null||n>e.length)&&(n=e.length);for(var t=0,o=new Array(n);t<n;t++)o[t]=e[t];return o}function Qi(e,n){var t=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(t!=null){var o=[],a=!0,i=!1,l,s;try{for(t=t.call(e);!(a=(l=t.next()).done)&&(o.push(l.value),!(n&&o.length===n));a=!0);}catch(f){i=!0,s=f}finally{try{!a&&t.return!=null&&t.return()}finally{if(i)throw s}}return o}}function es(e){if(Array.isArray(e))return e}function _r(e){for(var n=1;n<arguments.length;n++){var t=arguments[n]!=null?Object(arguments[n]):{},o=Object.keys(t);typeof Object.getOwnPropertySymbols=="function"&&(o=o.concat(Object.getOwnPropertySymbols(t).filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable}))),o.forEach(function(a){dn(e,a,t[a])})}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 ts(e,n){if(e==null)return{};var t=ns(e,n),o,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)o=i[a],!(n.indexOf(o)>=0)&&Object.prototype.propertyIsEnumerable.call(e,o)&&(t[o]=e[o])}return t}function ns(e,n){if(e==null)return{};var t={},o=Object.keys(e),a,i;for(i=0;i<o.length;i++)a=o[i],!(n.indexOf(a)>=0)&&(t[a]=e[a]);return t}Cr("#1890ff");var ft=function(n,t){var o,a=_r({},n,t.attrs),i=a.class,l=a.icon,s=a.spin,f=a.rotate,c=a.tabindex,d=a.twoToneColor,p=a.onClick,u=ts(a,Ki),h=(o={anticon:!0},dn(o,"anticon-".concat(l.name),!!l.name),dn(o,i,i),o),g=s===""||s||l.name==="loading"?"anticon-spin":"",x=c;x===void 0&&p&&(x=-1,u.tabindex=x);var y=f?{msTransform:"rotate(".concat(f,"deg)"),transform:"rotate(".concat(f,"deg)")}:void 0,S=br(d),m=Yi(S,2),b=m[0],v=m[1];return r.createVNode("span",_r({role:"img","aria-label":l.name},u,{onClick:p,class:h}),[r.createVNode(fn,{class:g,icon:l,primaryColor:b,secondaryColor:v,style:y},null)])};ft.props={spin:Boolean,rotate:Number,icon:Object,twoToneColor:String},ft.displayName="AntdIcon",ft.inheritAttrs=!1,ft.getTwoToneColor=Zi,ft.setTwoToneColor=Cr;const Ar=ft;var os={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 rs=os;function Er(e){for(var n=1;n<arguments.length;n++){var t=arguments[n]!=null?Object(arguments[n]):{},o=Object.keys(t);typeof Object.getOwnPropertySymbols=="function"&&(o=o.concat(Object.getOwnPropertySymbols(t).filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable}))),o.forEach(function(a){as(e,a,t[a])})}return e}function as(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}var un=function(n,t){var o=Er({},n,t.attrs);return r.createVNode(Ar,Er({},o,{icon:rs}),null)};un.displayName="CloseOutlined",un.inheritAttrs=!1;const is=un;var ss={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 ls=ss;function Tr(e){for(var n=1;n<arguments.length;n++){var t=arguments[n]!=null?Object(arguments[n]):{},o=Object.keys(t);typeof Object.getOwnPropertySymbols=="function"&&(o=o.concat(Object.getOwnPropertySymbols(t).filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable}))),o.forEach(function(a){cs(e,a,t[a])})}return e}function cs(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}var hn=function(n,t){var o=Tr({},n,t.attrs);return r.createVNode(Ar,Tr({},o,{icon:ls}),null)};hn.displayName="LoadingOutlined",hn.inheritAttrs=!1;const fs=hn,ds=r.defineComponent({props:{spinning:{type:Boolean,default:!1}},components:{ASpin:ae.Spin},setup(){return{indicator:r.h(fs,{style:{fontSize:"24px",color:"#1890ff"},spin:!0})}}}),Xf="",se=(e,n)=>{const t=e.__vccOpts||e;for(const[o,a]of n)t[o]=a;return t},us={class:"spin-wrapper"};function hs(e,n,t,o,a,i){const l=r.resolveComponent("a-spin");return r.openBlock(),r.createElementBlock("div",us,[e.spinning?(r.openBlock(),r.createBlock(l,{key:0,class:"spin",spinning:e.spinning,indicator:e.indicator,tip:"加载中..."},null,8,["spinning","indicator"])):r.renderSlot(e.$slots,"default",{key:1})])}const Tt=se(ds,[["render",hs]]),xs=r.defineComponent({name:"Skeleton",props:{loading:{type:Boolean,default:!1}},components:{ASkeleton:ae.Skeleton}});function gs(e,n,t,o,a,i){const l=r.resolveComponent("a-skeleton");return r.openBlock(),r.createBlock(l,{active:"",loading:e.loading},{default:r.withCtx(()=>[r.renderSlot(e.$slots,"default")]),_:3},8,["loading"])}const Vt=se(xs,[["render",gs]]);process.env.NODE_ENV!=="production"&&Object.freeze({}),process.env.NODE_ENV!=="production"&&Object.freeze([]);const ce=(e,n)=>{if(e.install=t=>{for(const o of[e,...Object.values(n??{})])t.component(o.name,o)},n)for(const[t,o]of Object.entries(n))e[t]=o;return e},he={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"},fe=e=>{const n={};if(typeof e=="object"&&e!=null)for(const t in e){const o=e[t];n[t]={type:o==null?void 0:o.constructor,default:o}}return n},xn={width:"1920px",height:"1080px",backgroundColor:"#ffffff",backgroundImage:"",backgroundSize:"100% 100%",contextRequestUrl:"",mode:"normal"},gn=fe(xn),ms=["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"],ue=(e,n=[])=>{const t=$e.without(ms,...n);return r.computed(()=>$e.pick(e,t))},mn="EVENT_BUS",Be="GLOBAL_CONFIG",we="GLOBAL_MODEL",De="REQUEST_MODEL",Br="GLOBAL_TOKEN",Bt="REFRESH_PAGE",Dr="MODAL_MODEL",dt=18,ps="ygt",ys=(Oa=window==null?void 0:window.config)==null?void 0:Oa.indicatorURL;(Na=window==null?void 0:window.config)!=null&&Na.uploadPath;const Rr=((Pa=window==null?void 0:window.config)==null?void 0:Pa.routerBaseURL)||"./",vs=((za=window==null?void 0:window.config)==null?void 0:za.erdURL)||"",be=(e,n)=>{r.watch(()=>e.id,t=>{const o=r.inject(mn,{onEvent:(a,i)=>{}});t!=null&&t!==""&&o.onEvent(t,n)},{immediate:!0})},ye=e=>{const n=e.events,t=e.id,o=r.inject(mn,{emitEvent:(i,l)=>{}}),{touchEventId:a}=r.inject(Be,{touchEventId:r.ref("")});return(i,l=()=>{})=>function(){l.call(this,...arguments);const{emitEvent:s}=o;n.forEach(f=>{if(i===f.on)try{a.value=t,s(f.target,f.emit)}catch(c){console.error(c)}})}},Dt=(e,n)=>{let{name:t="name",value:o="value",type:a="type"}=n||{};t=t==null?void 0:t.trim(),o=o==null?void 0:o.trim(),a=a==null?void 0:a.trim();const i=new Set,l=new Map,s=e.length;for(let d=0;d<s;d++){const p=e[d],u=p[t]||"",h=p[o]||"",g=p[a]||"";if(i.add(u),l.has(g)){const x=l.get(g);x.push({name:u,value:h,...p}),l.set(g,x)}else l.set(g,[{name:u,value:h,...p}])}const f=Array.from(i),c=[];for(const[d,p]of l)c.push({name:d,data:p});return{dimensions:f,dataset:c}};var te=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function bs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Ss(e){if(e.__esModule)return e;var n=e.default;if(typeof n=="function"){var t=function o(){return this instanceof o?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(o){var a=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(t,o,a.get?a:{enumerable:!0,get:function(){return e[o]}})}),t}var Ir={exports:{}};function ws(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var pn={exports:{}};const Cs=Ss(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var Lr;function re(){return Lr||(Lr=1,function(e,n){(function(t,o){e.exports=o()})(te,function(){var t=t||function(o,a){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 te<"u"&&te.crypto&&(i=te.crypto),!i&&typeof ws=="function")try{i=Cs}catch{}var l=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.")},s=Object.create||function(){function m(){}return function(b){var v;return m.prototype=b,v=new m,m.prototype=null,v}}(),f={},c=f.lib={},d=c.Base=function(){return{extend:function(m){var b=s(this);return m&&b.mixIn(m),(!b.hasOwnProperty("init")||this.init===b.init)&&(b.init=function(){b.$super.init.apply(this,arguments)}),b.init.prototype=b,b.$super=this,b},create:function(){var m=this.extend();return m.init.apply(m,arguments),m},init:function(){},mixIn:function(m){for(var b in m)m.hasOwnProperty(b)&&(this[b]=m[b]);m.hasOwnProperty("toString")&&(this.toString=m.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),p=c.WordArray=d.extend({init:function(m,b){m=this.words=m||[],b!=a?this.sigBytes=b:this.sigBytes=m.length*4},toString:function(m){return(m||h).stringify(this)},concat:function(m){var b=this.words,v=m.words,_=this.sigBytes,w=m.sigBytes;if(this.clamp(),_%4)for(var k=0;k<w;k++){var A=v[k>>>2]>>>24-k%4*8&255;b[_+k>>>2]|=A<<24-(_+k)%4*8}else for(var E=0;E<w;E+=4)b[_+E>>>2]=v[E>>>2];return this.sigBytes+=w,this},clamp:function(){var m=this.words,b=this.sigBytes;m[b>>>2]&=4294967295<<32-b%4*8,m.length=o.ceil(b/4)},clone:function(){var m=d.clone.call(this);return m.words=this.words.slice(0),m},random:function(m){for(var b=[],v=0;v<m;v+=4)b.push(l());return new p.init(b,m)}}),u=f.enc={},h=u.Hex={stringify:function(m){for(var b=m.words,v=m.sigBytes,_=[],w=0;w<v;w++){var k=b[w>>>2]>>>24-w%4*8&255;_.push((k>>>4).toString(16)),_.push((k&15).toString(16))}return _.join("")},parse:function(m){for(var b=m.length,v=[],_=0;_<b;_+=2)v[_>>>3]|=parseInt(m.substr(_,2),16)<<24-_%8*4;return new p.init(v,b/2)}},g=u.Latin1={stringify:function(m){for(var b=m.words,v=m.sigBytes,_=[],w=0;w<v;w++){var k=b[w>>>2]>>>24-w%4*8&255;_.push(String.fromCharCode(k))}return _.join("")},parse:function(m){for(var b=m.length,v=[],_=0;_<b;_++)v[_>>>2]|=(m.charCodeAt(_)&255)<<24-_%4*8;return new p.init(v,b)}},x=u.Utf8={stringify:function(m){try{return decodeURIComponent(escape(g.stringify(m)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(m){return g.parse(unescape(encodeURIComponent(m)))}},y=c.BufferedBlockAlgorithm=d.extend({reset:function(){this._data=new p.init,this._nDataBytes=0},_append:function(m){typeof m=="string"&&(m=x.parse(m)),this._data.concat(m),this._nDataBytes+=m.sigBytes},_process:function(m){var b,v=this._data,_=v.words,w=v.sigBytes,k=this.blockSize,A=k*4,E=w/A;m?E=o.ceil(E):E=o.max((E|0)-this._minBufferSize,0);var C=E*k,T=o.min(C*4,w);if(C){for(var R=0;R<C;R+=k)this._doProcessBlock(_,R);b=_.splice(0,C),v.sigBytes-=T}return new p.init(b,T)},clone:function(){var m=d.clone.call(this);return m._data=this._data.clone(),m},_minBufferSize:0});c.Hasher=y.extend({cfg:d.extend(),init:function(m){this.cfg=this.cfg.extend(m),this.reset()},reset:function(){y.reset.call(this),this._doReset()},update:function(m){return this._append(m),this._process(),this},finalize:function(m){m&&this._append(m);var b=this._doFinalize();return b},blockSize:16,_createHelper:function(m){return function(b,v){return new m.init(v).finalize(b)}},_createHmacHelper:function(m){return function(b,v){return new S.HMAC.init(m,v).finalize(b)}}});var S=f.algo={};return f}(Math);return t})}(pn)),pn.exports}var yn={exports:{}},Or;function qt(){return Or||(Or=1,function(e,n){(function(t,o){e.exports=o(re())})(te,function(t){return function(o){var a=t,i=a.lib,l=i.Base,s=i.WordArray,f=a.x64={};f.Word=l.extend({init:function(c,d){this.high=c,this.low=d}}),f.WordArray=l.extend({init:function(c,d){c=this.words=c||[],d!=o?this.sigBytes=d:this.sigBytes=c.length*8},toX32:function(){for(var c=this.words,d=c.length,p=[],u=0;u<d;u++){var h=c[u];p.push(h.high),p.push(h.low)}return s.create(p,this.sigBytes)},clone:function(){for(var c=l.clone.call(this),d=c.words=this.words.slice(0),p=d.length,u=0;u<p;u++)d[u]=d[u].clone();return c}})}(),t})}(yn)),yn.exports}var vn={exports:{}},Nr;function ks(){return Nr||(Nr=1,function(e,n){(function(t,o){e.exports=o(re())})(te,function(t){return function(){if(typeof ArrayBuffer=="function"){var o=t,a=o.lib,i=a.WordArray,l=i.init,s=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,d=[],p=0;p<c;p++)d[p>>>2]|=f[p]<<24-p%4*8;l.call(this,d,c)}else l.apply(this,arguments)};s.prototype=i}}(),t.lib.WordArray})}(vn)),vn.exports}var bn={exports:{}},Pr;function _s(){return Pr||(Pr=1,function(e,n){(function(t,o){e.exports=o(re())})(te,function(t){return function(){var o=t,a=o.lib,i=a.WordArray,l=o.enc;l.Utf16=l.Utf16BE={stringify:function(f){for(var c=f.words,d=f.sigBytes,p=[],u=0;u<d;u+=2){var h=c[u>>>2]>>>16-u%4*8&65535;p.push(String.fromCharCode(h))}return p.join("")},parse:function(f){for(var c=f.length,d=[],p=0;p<c;p++)d[p>>>1]|=f.charCodeAt(p)<<16-p%2*16;return i.create(d,c*2)}},l.Utf16LE={stringify:function(f){for(var c=f.words,d=f.sigBytes,p=[],u=0;u<d;u+=2){var h=s(c[u>>>2]>>>16-u%4*8&65535);p.push(String.fromCharCode(h))}return p.join("")},parse:function(f){for(var c=f.length,d=[],p=0;p<c;p++)d[p>>>1]|=s(f.charCodeAt(p)<<16-p%2*16);return i.create(d,c*2)}};function s(f){return f<<8&4278255360|f>>>8&16711935}}(),t.enc.Utf16})}(bn)),bn.exports}var Sn={exports:{}},zr;function ut(){return zr||(zr=1,function(e,n){(function(t,o){e.exports=o(re())})(te,function(t){return function(){var o=t,a=o.lib,i=a.WordArray,l=o.enc;l.Base64={stringify:function(f){var c=f.words,d=f.sigBytes,p=this._map;f.clamp();for(var u=[],h=0;h<d;h+=3)for(var g=c[h>>>2]>>>24-h%4*8&255,x=c[h+1>>>2]>>>24-(h+1)%4*8&255,y=c[h+2>>>2]>>>24-(h+2)%4*8&255,S=g<<16|x<<8|y,m=0;m<4&&h+m*.75<d;m++)u.push(p.charAt(S>>>6*(3-m)&63));var b=p.charAt(64);if(b)for(;u.length%4;)u.push(b);return u.join("")},parse:function(f){var c=f.length,d=this._map,p=this._reverseMap;if(!p){p=this._reverseMap=[];for(var u=0;u<d.length;u++)p[d.charCodeAt(u)]=u}var h=d.charAt(64);if(h){var g=f.indexOf(h);g!==-1&&(c=g)}return s(f,c,p)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function s(f,c,d){for(var p=[],u=0,h=0;h<c;h++)if(h%4){var g=d[f.charCodeAt(h-1)]<<h%4*2,x=d[f.charCodeAt(h)]>>>6-h%4*2,y=g|x;p[u>>>2]|=y<<24-u%4*8,u++}return i.create(p,u)}}(),t.enc.Base64})}(Sn)),Sn.exports}var wn={exports:{}},Mr;function As(){return Mr||(Mr=1,function(e,n){(function(t,o){e.exports=o(re())})(te,function(t){return function(){var o=t,a=o.lib,i=a.WordArray,l=o.enc;l.Base64url={stringify:function(f,c=!0){var d=f.words,p=f.sigBytes,u=c?this._safe_map:this._map;f.clamp();for(var h=[],g=0;g<p;g+=3)for(var x=d[g>>>2]>>>24-g%4*8&255,y=d[g+1>>>2]>>>24-(g+1)%4*8&255,S=d[g+2>>>2]>>>24-(g+2)%4*8&255,m=x<<16|y<<8|S,b=0;b<4&&g+b*.75<p;b++)h.push(u.charAt(m>>>6*(3-b)&63));var v=u.charAt(64);if(v)for(;h.length%4;)h.push(v);return h.join("")},parse:function(f,c=!0){var d=f.length,p=c?this._safe_map:this._map,u=this._reverseMap;if(!u){u=this._reverseMap=[];for(var h=0;h<p.length;h++)u[p.charCodeAt(h)]=h}var g=p.charAt(64);if(g){var x=f.indexOf(g);x!==-1&&(d=x)}return s(f,d,u)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function s(f,c,d){for(var p=[],u=0,h=0;h<c;h++)if(h%4){var g=d[f.charCodeAt(h-1)]<<h%4*2,x=d[f.charCodeAt(h)]>>>6-h%4*2,y=g|x;p[u>>>2]|=y<<24-u%4*8,u++}return i.create(p,u)}}(),t.enc.Base64url})}(wn)),wn.exports}var Cn={exports:{}},Fr;function ht(){return Fr||(Fr=1,function(e,n){(function(t,o){e.exports=o(re())})(te,function(t){return function(o){var a=t,i=a.lib,l=i.WordArray,s=i.Hasher,f=a.algo,c=[];(function(){for(var x=0;x<64;x++)c[x]=o.abs(o.sin(x+1))*4294967296|0})();var d=f.MD5=s.extend({_doReset:function(){this._hash=new l.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(x,y){for(var S=0;S<16;S++){var m=y+S,b=x[m];x[m]=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360}var v=this._hash.words,_=x[y+0],w=x[y+1],k=x[y+2],A=x[y+3],E=x[y+4],C=x[y+5],T=x[y+6],R=x[y+7],B=x[y+8],F=x[y+9],I=x[y+10],$=x[y+11],q=x[y+12],N=x[y+13],L=x[y+14],H=x[y+15],D=v[0],O=v[1],M=v[2],P=v[3];D=p(D,O,M,P,_,7,c[0]),P=p(P,D,O,M,w,12,c[1]),M=p(M,P,D,O,k,17,c[2]),O=p(O,M,P,D,A,22,c[3]),D=p(D,O,M,P,E,7,c[4]),P=p(P,D,O,M,C,12,c[5]),M=p(M,P,D,O,T,17,c[6]),O=p(O,M,P,D,R,22,c[7]),D=p(D,O,M,P,B,7,c[8]),P=p(P,D,O,M,F,12,c[9]),M=p(M,P,D,O,I,17,c[10]),O=p(O,M,P,D,$,22,c[11]),D=p(D,O,M,P,q,7,c[12]),P=p(P,D,O,M,N,12,c[13]),M=p(M,P,D,O,L,17,c[14]),O=p(O,M,P,D,H,22,c[15]),D=u(D,O,M,P,w,5,c[16]),P=u(P,D,O,M,T,9,c[17]),M=u(M,P,D,O,$,14,c[18]),O=u(O,M,P,D,_,20,c[19]),D=u(D,O,M,P,C,5,c[20]),P=u(P,D,O,M,I,9,c[21]),M=u(M,P,D,O,H,14,c[22]),O=u(O,M,P,D,E,20,c[23]),D=u(D,O,M,P,F,5,c[24]),P=u(P,D,O,M,L,9,c[25]),M=u(M,P,D,O,A,14,c[26]),O=u(O,M,P,D,B,20,c[27]),D=u(D,O,M,P,N,5,c[28]),P=u(P,D,O,M,k,9,c[29]),M=u(M,P,D,O,R,14,c[30]),O=u(O,M,P,D,q,20,c[31]),D=h(D,O,M,P,C,4,c[32]),P=h(P,D,O,M,B,11,c[33]),M=h(M,P,D,O,$,16,c[34]),O=h(O,M,P,D,L,23,c[35]),D=h(D,O,M,P,w,4,c[36]),P=h(P,D,O,M,E,11,c[37]),M=h(M,P,D,O,R,16,c[38]),O=h(O,M,P,D,I,23,c[39]),D=h(D,O,M,P,N,4,c[40]),P=h(P,D,O,M,_,11,c[41]),M=h(M,P,D,O,A,16,c[42]),O=h(O,M,P,D,T,23,c[43]),D=h(D,O,M,P,F,4,c[44]),P=h(P,D,O,M,q,11,c[45]),M=h(M,P,D,O,H,16,c[46]),O=h(O,M,P,D,k,23,c[47]),D=g(D,O,M,P,_,6,c[48]),P=g(P,D,O,M,R,10,c[49]),M=g(M,P,D,O,L,15,c[50]),O=g(O,M,P,D,C,21,c[51]),D=g(D,O,M,P,q,6,c[52]),P=g(P,D,O,M,A,10,c[53]),M=g(M,P,D,O,I,15,c[54]),O=g(O,M,P,D,w,21,c[55]),D=g(D,O,M,P,B,6,c[56]),P=g(P,D,O,M,H,10,c[57]),M=g(M,P,D,O,T,15,c[58]),O=g(O,M,P,D,N,21,c[59]),D=g(D,O,M,P,E,6,c[60]),P=g(P,D,O,M,$,10,c[61]),M=g(M,P,D,O,k,15,c[62]),O=g(O,M,P,D,F,21,c[63]),v[0]=v[0]+D|0,v[1]=v[1]+O|0,v[2]=v[2]+M|0,v[3]=v[3]+P|0},_doFinalize:function(){var x=this._data,y=x.words,S=this._nDataBytes*8,m=x.sigBytes*8;y[m>>>5]|=128<<24-m%32;var b=o.floor(S/4294967296),v=S;y[(m+64>>>9<<4)+15]=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360,y[(m+64>>>9<<4)+14]=(v<<8|v>>>24)&16711935|(v<<24|v>>>8)&4278255360,x.sigBytes=(y.length+1)*4,this._process();for(var _=this._hash,w=_.words,k=0;k<4;k++){var A=w[k];w[k]=(A<<8|A>>>24)&16711935|(A<<24|A>>>8)&4278255360}return _},clone:function(){var x=s.clone.call(this);return x._hash=this._hash.clone(),x}});function p(x,y,S,m,b,v,_){var w=x+(y&S|~y&m)+b+_;return(w<<v|w>>>32-v)+y}function u(x,y,S,m,b,v,_){var w=x+(y&m|S&~m)+b+_;return(w<<v|w>>>32-v)+y}function h(x,y,S,m,b,v,_){var w=x+(y^S^m)+b+_;return(w<<v|w>>>32-v)+y}function g(x,y,S,m,b,v,_){var w=x+(S^(y|~m))+b+_;return(w<<v|w>>>32-v)+y}a.MD5=s._createHelper(d),a.HmacMD5=s._createHmacHelper(d)}(Math),t.MD5})}(Cn)),Cn.exports}var kn={exports:{}},Vr;function _n(){return Vr||(Vr=1,function(e,n){(function(t,o){e.exports=o(re())})(te,function(t){return function(){var o=t,a=o.lib,i=a.WordArray,l=a.Hasher,s=o.algo,f=[],c=s.SHA1=l.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(d,p){for(var u=this._hash.words,h=u[0],g=u[1],x=u[2],y=u[3],S=u[4],m=0;m<80;m++){if(m<16)f[m]=d[p+m]|0;else{var b=f[m-3]^f[m-8]^f[m-14]^f[m-16];f[m]=b<<1|b>>>31}var v=(h<<5|h>>>27)+S+f[m];m<20?v+=(g&x|~g&y)+1518500249:m<40?v+=(g^x^y)+1859775393:m<60?v+=(g&x|g&y|x&y)-1894007588:v+=(g^x^y)-899497514,S=y,y=x,x=g<<30|g>>>2,g=h,h=v}u[0]=u[0]+h|0,u[1]=u[1]+g|0,u[2]=u[2]+x|0,u[3]=u[3]+y|0,u[4]=u[4]+S|0},_doFinalize:function(){var d=this._data,p=d.words,u=this._nDataBytes*8,h=d.sigBytes*8;return p[h>>>5]|=128<<24-h%32,p[(h+64>>>9<<4)+14]=Math.floor(u/4294967296),p[(h+64>>>9<<4)+15]=u,d.sigBytes=p.length*4,this._process(),this._hash},clone:function(){var d=l.clone.call(this);return d._hash=this._hash.clone(),d}});o.SHA1=l._createHelper(c),o.HmacSHA1=l._createHmacHelper(c)}(),t.SHA1})}(kn)),kn.exports}var An={exports:{}},qr;function Hr(){return qr||(qr=1,function(e,n){(function(t,o){e.exports=o(re())})(te,function(t){return function(o){var a=t,i=a.lib,l=i.WordArray,s=i.Hasher,f=a.algo,c=[],d=[];(function(){function h(S){for(var m=o.sqrt(S),b=2;b<=m;b++)if(!(S%b))return!1;return!0}function g(S){return(S-(S|0))*4294967296|0}for(var x=2,y=0;y<64;)h(x)&&(y<8&&(c[y]=g(o.pow(x,1/2))),d[y]=g(o.pow(x,1/3)),y++),x++})();var p=[],u=f.SHA256=s.extend({_doReset:function(){this._hash=new l.init(c.slice(0))},_doProcessBlock:function(h,g){for(var x=this._hash.words,y=x[0],S=x[1],m=x[2],b=x[3],v=x[4],_=x[5],w=x[6],k=x[7],A=0;A<64;A++){if(A<16)p[A]=h[g+A]|0;else{var E=p[A-15],C=(E<<25|E>>>7)^(E<<14|E>>>18)^E>>>3,T=p[A-2],R=(T<<15|T>>>17)^(T<<13|T>>>19)^T>>>10;p[A]=C+p[A-7]+R+p[A-16]}var B=v&_^~v&w,F=y&S^y&m^S&m,I=(y<<30|y>>>2)^(y<<19|y>>>13)^(y<<10|y>>>22),$=(v<<26|v>>>6)^(v<<21|v>>>11)^(v<<7|v>>>25),q=k+$+B+d[A]+p[A],N=I+F;k=w,w=_,_=v,v=b+q|0,b=m,m=S,S=y,y=q+N|0}x[0]=x[0]+y|0,x[1]=x[1]+S|0,x[2]=x[2]+m|0,x[3]=x[3]+b|0,x[4]=x[4]+v|0,x[5]=x[5]+_|0,x[6]=x[6]+w|0,x[7]=x[7]+k|0},_doFinalize:function(){var h=this._data,g=h.words,x=this._nDataBytes*8,y=h.sigBytes*8;return g[y>>>5]|=128<<24-y%32,g[(y+64>>>9<<4)+14]=o.floor(x/4294967296),g[(y+64>>>9<<4)+15]=x,h.sigBytes=g.length*4,this._process(),this._hash},clone:function(){var h=s.clone.call(this);return h._hash=this._hash.clone(),h}});a.SHA256=s._createHelper(u),a.HmacSHA256=s._createHmacHelper(u)}(Math),t.SHA256})}(An)),An.exports}var En={exports:{}},$r;function Es(){return $r||($r=1,function(e,n){(function(t,o,a){e.exports=o(re(),Hr())})(te,function(t){return function(){var o=t,a=o.lib,i=a.WordArray,l=o.algo,s=l.SHA256,f=l.SHA224=s.extend({_doReset:function(){this._hash=new i.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var c=s._doFinalize.call(this);return c.sigBytes-=4,c}});o.SHA224=s._createHelper(f),o.HmacSHA224=s._createHmacHelper(f)}(),t.SHA224})}(En)),En.exports}var Tn={exports:{}},jr;function Ur(){return jr||(jr=1,function(e,n){(function(t,o,a){e.exports=o(re(),qt())})(te,function(t){return function(){var o=t,a=o.lib,i=a.Hasher,l=o.x64,s=l.Word,f=l.WordArray,c=o.algo;function d(){return s.create.apply(s,arguments)}var p=[d(1116352408,3609767458),d(1899447441,602891725),d(3049323471,3964484399),d(3921009573,2173295548),d(961987163,4081628472),d(1508970993,3053834265),d(2453635748,2937671579),d(2870763221,3664609560),d(3624381080,2734883394),d(310598401,1164996542),d(607225278,1323610764),d(1426881987,3590304994),d(1925078388,4068182383),d(2162078206,991336113),d(2614888103,633803317),d(3248222580,3479774868),d(3835390401,2666613458),d(4022224774,944711139),d(264347078,2341262773),d(604807628,2007800933),d(770255983,1495990901),d(1249150122,1856431235),d(1555081692,3175218132),d(1996064986,2198950837),d(2554220882,3999719339),d(2821834349,766784016),d(2952996808,2566594879),d(3210313671,3203337956),d(3336571891,1034457026),d(3584528711,2466948901),d(113926993,3758326383),d(338241895,168717936),d(666307205,1188179964),d(773529912,1546045734),d(1294757372,1522805485),d(1396182291,2643833823),d(1695183700,2343527390),d(1986661051,1014477480),d(2177026350,1206759142),d(2456956037,344077627),d(2730485921,1290863460),d(2820302411,3158454273),d(3259730800,3505952657),d(3345764771,106217008),d(3516065817,3606008344),d(3600352804,1432725776),d(4094571909,1467031594),d(275423344,851169720),d(430227734,3100823752),d(506948616,1363258195),d(659060556,3750685593),d(883997877,3785050280),d(958139571,3318307427),d(1322822218,3812723403),d(1537002063,2003034995),d(1747873779,3602036899),d(1955562222,1575990012),d(2024104815,1125592928),d(2227730452,2716904306),d(2361852424,442776044),d(2428436474,593698344),d(2756734187,3733110249),d(3204031479,2999351573),d(3329325298,3815920427),d(3391569614,3928383900),d(3515267271,566280711),d(3940187606,3454069534),d(4118630271,4000239992),d(116418474,1914138554),d(174292421,2731055270),d(289380356,3203993006),d(460393269,320620315),d(685471733,587496836),d(852142971,1086792851),d(1017036298,365543100),d(1126000580,2618297676),d(1288033470,3409855158),d(1501505948,4234509866),d(1607167915,987167468),d(1816402316,1246189591)],u=[];(function(){for(var g=0;g<80;g++)u[g]=d()})();var h=c.SHA512=i.extend({_doReset:function(){this._hash=new f.init([new s.init(1779033703,4089235720),new s.init(3144134277,2227873595),new s.init(1013904242,4271175723),new s.init(2773480762,1595750129),new s.init(1359893119,2917565137),new s.init(2600822924,725511199),new s.init(528734635,4215389547),new s.init(1541459225,327033209)])},_doProcessBlock:function(g,x){for(var y=this._hash.words,S=y[0],m=y[1],b=y[2],v=y[3],_=y[4],w=y[5],k=y[6],A=y[7],E=S.high,C=S.low,T=m.high,R=m.low,B=b.high,F=b.low,I=v.high,$=v.low,q=_.high,N=_.low,L=w.high,H=w.low,D=k.high,O=k.low,M=A.high,P=A.low,Y=E,Z=C,X=T,G=R,pe=B,_e=F,Qe=I,Ge=$,ke=q,Ee=N,wt=L,j=H,U=D,K=O,Q=M,W=P,ne=0;ne<80;ne++){var ee,ie,le=u[ne];if(ne<16)ie=le.high=g[x+ne*2]|0,ee=le.low=g[x+ne*2+1]|0;else{var de=u[ne-15],Te=de.high,Se=de.low,Ve=(Te>>>1|Se<<31)^(Te>>>8|Se<<24)^Te>>>7,Ct=(Se>>>1|Te<<31)^(Se>>>8|Te<<24)^(Se>>>7|Te<<25),Ot=u[ne-2],et=Ot.high,Nt=Ot.low,Af=(et>>>19|Nt<<13)^(et<<3|Nt>>>29)^et>>>6,Ma=(Nt>>>19|et<<13)^(Nt<<3|et>>>29)^(Nt>>>6|et<<26),Fa=u[ne-7],Ef=Fa.high,Tf=Fa.low,Va=u[ne-16],Bf=Va.high,qa=Va.low;ee=Ct+Tf,ie=Ve+Ef+(ee>>>0<Ct>>>0?1:0),ee=ee+Ma,ie=ie+Af+(ee>>>0<Ma>>>0?1:0),ee=ee+qa,ie=ie+Bf+(ee>>>0<qa>>>0?1:0),le.high=ie,le.low=ee}var Df=ke&wt^~ke&U,Ha=Ee&j^~Ee&K,Rf=Y&X^Y&pe^X&pe,If=Z&G^Z&_e^G&_e,Lf=(Y>>>28|Z<<4)^(Y<<30|Z>>>2)^(Y<<25|Z>>>7),$a=(Z>>>28|Y<<4)^(Z<<30|Y>>>2)^(Z<<25|Y>>>7),Of=(ke>>>14|Ee<<18)^(ke>>>18|Ee<<14)^(ke<<23|Ee>>>9),Nf=(Ee>>>14|ke<<18)^(Ee>>>18|ke<<14)^(Ee<<23|ke>>>9),ja=p[ne],Pf=ja.high,Ua=ja.low,Le=W+Nf,tt=Q+Of+(Le>>>0<W>>>0?1:0),Le=Le+Ha,tt=tt+Df+(Le>>>0<Ha>>>0?1:0),Le=Le+Ua,tt=tt+Pf+(Le>>>0<Ua>>>0?1:0),Le=Le+ee,tt=tt+ie+(Le>>>0<ee>>>0?1:0),Ga=$a+If,zf=Lf+Rf+(Ga>>>0<$a>>>0?1:0);Q=U,W=K,U=wt,K=j,wt=ke,j=Ee,Ee=Ge+Le|0,ke=Qe+tt+(Ee>>>0<Ge>>>0?1:0)|0,Qe=pe,Ge=_e,pe=X,_e=G,X=Y,G=Z,Z=Le+Ga|0,Y=tt+zf+(Z>>>0<Le>>>0?1:0)|0}C=S.low=C+Z,S.high=E+Y+(C>>>0<Z>>>0?1:0),R=m.low=R+G,m.high=T+X+(R>>>0<G>>>0?1:0),F=b.low=F+_e,b.high=B+pe+(F>>>0<_e>>>0?1:0),$=v.low=$+Ge,v.high=I+Qe+($>>>0<Ge>>>0?1:0),N=_.low=N+Ee,_.high=q+ke+(N>>>0<Ee>>>0?1:0),H=w.low=H+j,w.high=L+wt+(H>>>0<j>>>0?1:0),O=k.low=O+K,k.high=D+U+(O>>>0<K>>>0?1:0),P=A.low=P+W,A.high=M+Q+(P>>>0<W>>>0?1:0)},_doFinalize:function(){var g=this._data,x=g.words,y=this._nDataBytes*8,S=g.sigBytes*8;x[S>>>5]|=128<<24-S%32,x[(S+128>>>10<<5)+30]=Math.floor(y/4294967296),x[(S+128>>>10<<5)+31]=y,g.sigBytes=x.length*4,this._process();var m=this._hash.toX32();return m},clone:function(){var g=i.clone.call(this);return g._hash=this._hash.clone(),g},blockSize:1024/32});o.SHA512=i._createHelper(h),o.HmacSHA512=i._createHmacHelper(h)}(),t.SHA512})}(Tn)),Tn.exports}var Bn={exports:{}},Gr;function Ts(){return Gr||(Gr=1,function(e,n){(function(t,o,a){e.exports=o(re(),qt(),Ur())})(te,function(t){return function(){var o=t,a=o.x64,i=a.Word,l=a.WordArray,s=o.algo,f=s.SHA512,c=s.SHA384=f.extend({_doReset:function(){this._hash=new l.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 d=f._doFinalize.call(this);return d.sigBytes-=16,d}});o.SHA384=f._createHelper(c),o.HmacSHA384=f._createHmacHelper(c)}(),t.SHA384})}(Bn)),Bn.exports}var Dn={exports:{}},Wr;function Bs(){return Wr||(Wr=1,function(e,n){(function(t,o,a){e.exports=o(re(),qt())})(te,function(t){return function(o){var a=t,i=a.lib,l=i.WordArray,s=i.Hasher,f=a.x64,c=f.Word,d=a.algo,p=[],u=[],h=[];(function(){for(var y=1,S=0,m=0;m<24;m++){p[y+5*S]=(m+1)*(m+2)/2%64;var b=S%5,v=(2*y+3*S)%5;y=b,S=v}for(var y=0;y<5;y++)for(var S=0;S<5;S++)u[y+5*S]=S+(2*y+3*S)%5*5;for(var _=1,w=0;w<24;w++){for(var k=0,A=0,E=0;E<7;E++){if(_&1){var C=(1<<E)-1;C<32?A^=1<<C:k^=1<<C-32}_&128?_=_<<1^113:_<<=1}h[w]=c.create(k,A)}})();var g=[];(function(){for(var y=0;y<25;y++)g[y]=c.create()})();var x=d.SHA3=s.extend({cfg:s.cfg.extend({outputLength:512}),_doReset:function(){for(var y=this._state=[],S=0;S<25;S++)y[S]=new c.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(y,S){for(var m=this._state,b=this.blockSize/2,v=0;v<b;v++){var _=y[S+2*v],w=y[S+2*v+1];_=(_<<8|_>>>24)&16711935|(_<<24|_>>>8)&4278255360,w=(w<<8|w>>>24)&16711935|(w<<24|w>>>8)&4278255360;var k=m[v];k.high^=w,k.low^=_}for(var A=0;A<24;A++){for(var E=0;E<5;E++){for(var C=0,T=0,R=0;R<5;R++){var k=m[E+5*R];C^=k.high,T^=k.low}var B=g[E];B.high=C,B.low=T}for(var E=0;E<5;E++)for(var F=g[(E+4)%5],I=g[(E+1)%5],$=I.high,q=I.low,C=F.high^($<<1|q>>>31),T=F.low^(q<<1|$>>>31),R=0;R<5;R++){var k=m[E+5*R];k.high^=C,k.low^=T}for(var N=1;N<25;N++){var C,T,k=m[N],L=k.high,H=k.low,D=p[N];D<32?(C=L<<D|H>>>32-D,T=H<<D|L>>>32-D):(C=H<<D-32|L>>>64-D,T=L<<D-32|H>>>64-D);var O=g[u[N]];O.high=C,O.low=T}var M=g[0],P=m[0];M.high=P.high,M.low=P.low;for(var E=0;E<5;E++)for(var R=0;R<5;R++){var N=E+5*R,k=m[N],Y=g[N],Z=g[(E+1)%5+5*R],X=g[(E+2)%5+5*R];k.high=Y.high^~Z.high&X.high,k.low=Y.low^~Z.low&X.low}var k=m[0],G=h[A];k.high^=G.high,k.low^=G.low}},_doFinalize:function(){var y=this._data,S=y.words;this._nDataBytes*8;var m=y.sigBytes*8,b=this.blockSize*32;S[m>>>5]|=1<<24-m%32,S[(o.ceil((m+1)/b)*b>>>5)-1]|=128,y.sigBytes=S.length*4,this._process();for(var v=this._state,_=this.cfg.outputLength/8,w=_/8,k=[],A=0;A<w;A++){var E=v[A],C=E.high,T=E.low;C=(C<<8|C>>>24)&16711935|(C<<24|C>>>8)&4278255360,T=(T<<8|T>>>24)&16711935|(T<<24|T>>>8)&4278255360,k.push(T),k.push(C)}return new l.init(k,_)},clone:function(){for(var y=s.clone.call(this),S=y._state=this._state.slice(0),m=0;m<25;m++)S[m]=S[m].clone();return y}});a.SHA3=s._createHelper(x),a.HmacSHA3=s._createHmacHelper(x)}(Math),t.SHA3})}(Dn)),Dn.exports}var Rn={exports:{}},Zr;function Ds(){return Zr||(Zr=1,function(e,n){(function(t,o){e.exports=o(re())})(te,function(t){/** @preserve
58
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ji(e,n){if(e){if(typeof e=="string")return kr(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 kr(e,n)}}function kr(e,n){(n==null||n>e.length)&&(n=e.length);for(var t=0,o=new Array(n);t<n;t++)o[t]=e[t];return o}function Qi(e,n){var t=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(t!=null){var o=[],a=!0,i=!1,l,s;try{for(t=t.call(e);!(a=(l=t.next()).done)&&(o.push(l.value),!(n&&o.length===n));a=!0);}catch(f){i=!0,s=f}finally{try{!a&&t.return!=null&&t.return()}finally{if(i)throw s}}return o}}function es(e){if(Array.isArray(e))return e}function _r(e){for(var n=1;n<arguments.length;n++){var t=arguments[n]!=null?Object(arguments[n]):{},o=Object.keys(t);typeof Object.getOwnPropertySymbols=="function"&&(o=o.concat(Object.getOwnPropertySymbols(t).filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable}))),o.forEach(function(a){dn(e,a,t[a])})}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 ts(e,n){if(e==null)return{};var t=ns(e,n),o,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)o=i[a],!(n.indexOf(o)>=0)&&Object.prototype.propertyIsEnumerable.call(e,o)&&(t[o]=e[o])}return t}function ns(e,n){if(e==null)return{};var t={},o=Object.keys(e),a,i;for(i=0;i<o.length;i++)a=o[i],!(n.indexOf(a)>=0)&&(t[a]=e[a]);return t}Cr("#1890ff");var dt=function(n,t){var o,a=_r({},n,t.attrs),i=a.class,l=a.icon,s=a.spin,f=a.rotate,c=a.tabindex,d=a.twoToneColor,p=a.onClick,u=ts(a,Ki),h=(o={anticon:!0},dn(o,"anticon-".concat(l.name),!!l.name),dn(o,i,i),o),m=s===""||s||l.name==="loading"?"anticon-spin":"",g=c;g===void 0&&p&&(g=-1,u.tabindex=g);var y=f?{msTransform:"rotate(".concat(f,"deg)"),transform:"rotate(".concat(f,"deg)")}:void 0,C=br(d),x=Yi(C,2),v=x[0],b=x[1];return r.createVNode("span",_r({role:"img","aria-label":l.name},u,{onClick:p,class:h}),[r.createVNode(fn,{class:m,icon:l,primaryColor:v,secondaryColor:b,style:y},null)])};dt.props={spin:Boolean,rotate:Number,icon:Object,twoToneColor:String},dt.displayName="AntdIcon",dt.inheritAttrs=!1,dt.getTwoToneColor=Zi,dt.setTwoToneColor=Cr;const Ar=dt;var os={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 rs=os;function Er(e){for(var n=1;n<arguments.length;n++){var t=arguments[n]!=null?Object(arguments[n]):{},o=Object.keys(t);typeof Object.getOwnPropertySymbols=="function"&&(o=o.concat(Object.getOwnPropertySymbols(t).filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable}))),o.forEach(function(a){as(e,a,t[a])})}return e}function as(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}var un=function(n,t){var o=Er({},n,t.attrs);return r.createVNode(Ar,Er({},o,{icon:rs}),null)};un.displayName="CloseOutlined",un.inheritAttrs=!1;const is=un;var ss={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 ls=ss;function Tr(e){for(var n=1;n<arguments.length;n++){var t=arguments[n]!=null?Object(arguments[n]):{},o=Object.keys(t);typeof Object.getOwnPropertySymbols=="function"&&(o=o.concat(Object.getOwnPropertySymbols(t).filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable}))),o.forEach(function(a){cs(e,a,t[a])})}return e}function cs(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}var hn=function(n,t){var o=Tr({},n,t.attrs);return r.createVNode(Ar,Tr({},o,{icon:ls}),null)};hn.displayName="LoadingOutlined",hn.inheritAttrs=!1;const fs=hn,ds=r.defineComponent({props:{spinning:{type:Boolean,default:!1}},components:{ASpin:ae.Spin},setup(){return{indicator:r.h(fs,{style:{fontSize:"24px",color:"#1890ff"},spin:!0})}}}),Xf="",se=(e,n)=>{const t=e.__vccOpts||e;for(const[o,a]of n)t[o]=a;return t},us={class:"spin-wrapper"};function hs(e,n,t,o,a,i){const l=r.resolveComponent("a-spin");return r.openBlock(),r.createElementBlock("div",us,[e.spinning?(r.openBlock(),r.createBlock(l,{key:0,class:"spin",spinning:e.spinning,indicator:e.indicator,tip:"加载中..."},null,8,["spinning","indicator"])):r.renderSlot(e.$slots,"default",{key:1})])}const Dt=se(ds,[["render",hs]]),xs=r.defineComponent({name:"Skeleton",props:{loading:{type:Boolean,default:!1}},components:{ASkeleton:ae.Skeleton}});function gs(e,n,t,o,a,i){const l=r.resolveComponent("a-skeleton");return r.openBlock(),r.createBlock(l,{active:"",loading:e.loading},{default:r.withCtx(()=>[r.renderSlot(e.$slots,"default")]),_:3},8,["loading"])}const Vt=se(xs,[["render",gs]]);process.env.NODE_ENV!=="production"&&Object.freeze({}),process.env.NODE_ENV!=="production"&&Object.freeze([]);const le=(e,n)=>{if(e.install=t=>{for(const o of[e,...Object.values(n??{})])t.component(o.name,o)},n)for(const[t,o]of Object.entries(n))e[t]=o;return e},he={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"},fe=e=>{const n={};if(typeof e=="object"&&e!=null)for(const t in e){const o=e[t];n[t]={type:o==null?void 0:o.constructor,default:o}}return n},xn={width:"1920px",height:"1080px",backgroundColor:"#ffffff",backgroundImage:"",backgroundSize:"100% 100%",contextRequestUrl:"",mode:"normal"},gn=fe(xn),ms=["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"],ue=(e,n=[])=>{const t=$e.without(ms,...n);return r.computed(()=>$e.pick(e,t))},mn="EVENT_BUS",_e="GLOBAL_CONFIG",Se="GLOBAL_MODEL",Te="REQUEST_MODEL",Br="GLOBAL_TOKEN",Rt="REFRESH_PAGE",Dr="MODAL_MODEL",ut=18,ps="ygt",ys=(O0=window==null?void 0:window.config)==null?void 0:O0.indicatorURL;(N0=window==null?void 0:window.config)!=null&&N0.uploadPath;const Rr=((P0=window==null?void 0:window.config)==null?void 0:P0.routerBaseURL)||"./",vs=((z0=window==null?void 0:window.config)==null?void 0:z0.erdURL)||"",be=(e,n)=>{r.watch(()=>e.id,t=>{const o=r.inject(mn,{onEvent:(a,i)=>{}});t!=null&&t!==""&&o.onEvent(t,n)},{immediate:!0})},ye=e=>{const n=e.events,t=e.id,o=r.inject(mn,{emitEvent:(i,l)=>{}}),{touchEventId:a}=r.inject(_e,{touchEventId:r.ref("")});return(i,l=()=>{})=>function(){l.call(this,...arguments);const{emitEvent:s}=o;n.forEach(f=>{if(i===f.on)try{a.value=t,s(f.target,f.emit)}catch(c){console.error(c)}})}},It=(e,n)=>{let{name:t="name",value:o="value",type:a="type"}=n||{};t=t==null?void 0:t.trim(),o=o==null?void 0:o.trim(),a=a==null?void 0:a.trim();const i=new Set,l=new Map,s=e.length;for(let d=0;d<s;d++){const p=e[d],u=p[t]||"",h=p[o]||"",m=p[a]||"";if(i.add(u),l.has(m)){const g=l.get(m);g.push({name:u,value:h,...p}),l.set(m,g)}else l.set(m,[{name:u,value:h,...p}])}const f=Array.from(i),c=[];for(const[d,p]of l)c.push({name:d,data:p});return{dimensions:f,dataset:c}};var te=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function bs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Ss(e){if(e.__esModule)return e;var n=e.default;if(typeof n=="function"){var t=function o(){return this instanceof o?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(o){var a=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(t,o,a.get?a:{enumerable:!0,get:function(){return e[o]}})}),t}var Ir={exports:{}};function ws(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var pn={exports:{}};const Cs=Ss(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var Lr;function re(){return Lr||(Lr=1,function(e,n){(function(t,o){e.exports=o()})(te,function(){var t=t||function(o,a){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 te<"u"&&te.crypto&&(i=te.crypto),!i&&typeof ws=="function")try{i=Cs}catch{}var l=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.")},s=Object.create||function(){function x(){}return function(v){var b;return x.prototype=v,b=new x,x.prototype=null,b}}(),f={},c=f.lib={},d=c.Base=function(){return{extend:function(x){var v=s(this);return x&&v.mixIn(x),(!v.hasOwnProperty("init")||this.init===v.init)&&(v.init=function(){v.$super.init.apply(this,arguments)}),v.init.prototype=v,v.$super=this,v},create:function(){var x=this.extend();return x.init.apply(x,arguments),x},init:function(){},mixIn:function(x){for(var v in x)x.hasOwnProperty(v)&&(this[v]=x[v]);x.hasOwnProperty("toString")&&(this.toString=x.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),p=c.WordArray=d.extend({init:function(x,v){x=this.words=x||[],v!=a?this.sigBytes=v:this.sigBytes=x.length*4},toString:function(x){return(x||h).stringify(this)},concat:function(x){var v=this.words,b=x.words,_=this.sigBytes,S=x.sigBytes;if(this.clamp(),_%4)for(var k=0;k<S;k++){var A=b[k>>>2]>>>24-k%4*8&255;v[_+k>>>2]|=A<<24-(_+k)%4*8}else for(var D=0;D<S;D+=4)v[_+D>>>2]=b[D>>>2];return this.sigBytes+=S,this},clamp:function(){var x=this.words,v=this.sigBytes;x[v>>>2]&=4294967295<<32-v%4*8,x.length=o.ceil(v/4)},clone:function(){var x=d.clone.call(this);return x.words=this.words.slice(0),x},random:function(x){for(var v=[],b=0;b<x;b+=4)v.push(l());return new p.init(v,x)}}),u=f.enc={},h=u.Hex={stringify:function(x){for(var v=x.words,b=x.sigBytes,_=[],S=0;S<b;S++){var k=v[S>>>2]>>>24-S%4*8&255;_.push((k>>>4).toString(16)),_.push((k&15).toString(16))}return _.join("")},parse:function(x){for(var v=x.length,b=[],_=0;_<v;_+=2)b[_>>>3]|=parseInt(x.substr(_,2),16)<<24-_%8*4;return new p.init(b,v/2)}},m=u.Latin1={stringify:function(x){for(var v=x.words,b=x.sigBytes,_=[],S=0;S<b;S++){var k=v[S>>>2]>>>24-S%4*8&255;_.push(String.fromCharCode(k))}return _.join("")},parse:function(x){for(var v=x.length,b=[],_=0;_<v;_++)b[_>>>2]|=(x.charCodeAt(_)&255)<<24-_%4*8;return new p.init(b,v)}},g=u.Utf8={stringify:function(x){try{return decodeURIComponent(escape(m.stringify(x)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(x){return m.parse(unescape(encodeURIComponent(x)))}},y=c.BufferedBlockAlgorithm=d.extend({reset:function(){this._data=new p.init,this._nDataBytes=0},_append:function(x){typeof x=="string"&&(x=g.parse(x)),this._data.concat(x),this._nDataBytes+=x.sigBytes},_process:function(x){var v,b=this._data,_=b.words,S=b.sigBytes,k=this.blockSize,A=k*4,D=S/A;x?D=o.ceil(D):D=o.max((D|0)-this._minBufferSize,0);var w=D*k,E=o.min(w*4,S);if(w){for(var R=0;R<w;R+=k)this._doProcessBlock(_,R);v=_.splice(0,w),b.sigBytes-=E}return new p.init(v,E)},clone:function(){var x=d.clone.call(this);return x._data=this._data.clone(),x},_minBufferSize:0});c.Hasher=y.extend({cfg:d.extend(),init:function(x){this.cfg=this.cfg.extend(x),this.reset()},reset:function(){y.reset.call(this),this._doReset()},update:function(x){return this._append(x),this._process(),this},finalize:function(x){x&&this._append(x);var v=this._doFinalize();return v},blockSize:16,_createHelper:function(x){return function(v,b){return new x.init(b).finalize(v)}},_createHmacHelper:function(x){return function(v,b){return new C.HMAC.init(x,b).finalize(v)}}});var C=f.algo={};return f}(Math);return t})}(pn)),pn.exports}var yn={exports:{}},Or;function qt(){return Or||(Or=1,function(e,n){(function(t,o){e.exports=o(re())})(te,function(t){return function(o){var a=t,i=a.lib,l=i.Base,s=i.WordArray,f=a.x64={};f.Word=l.extend({init:function(c,d){this.high=c,this.low=d}}),f.WordArray=l.extend({init:function(c,d){c=this.words=c||[],d!=o?this.sigBytes=d:this.sigBytes=c.length*8},toX32:function(){for(var c=this.words,d=c.length,p=[],u=0;u<d;u++){var h=c[u];p.push(h.high),p.push(h.low)}return s.create(p,this.sigBytes)},clone:function(){for(var c=l.clone.call(this),d=c.words=this.words.slice(0),p=d.length,u=0;u<p;u++)d[u]=d[u].clone();return c}})}(),t})}(yn)),yn.exports}var vn={exports:{}},Nr;function ks(){return Nr||(Nr=1,function(e,n){(function(t,o){e.exports=o(re())})(te,function(t){return function(){if(typeof ArrayBuffer=="function"){var o=t,a=o.lib,i=a.WordArray,l=i.init,s=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,d=[],p=0;p<c;p++)d[p>>>2]|=f[p]<<24-p%4*8;l.call(this,d,c)}else l.apply(this,arguments)};s.prototype=i}}(),t.lib.WordArray})}(vn)),vn.exports}var bn={exports:{}},Pr;function _s(){return Pr||(Pr=1,function(e,n){(function(t,o){e.exports=o(re())})(te,function(t){return function(){var o=t,a=o.lib,i=a.WordArray,l=o.enc;l.Utf16=l.Utf16BE={stringify:function(f){for(var c=f.words,d=f.sigBytes,p=[],u=0;u<d;u+=2){var h=c[u>>>2]>>>16-u%4*8&65535;p.push(String.fromCharCode(h))}return p.join("")},parse:function(f){for(var c=f.length,d=[],p=0;p<c;p++)d[p>>>1]|=f.charCodeAt(p)<<16-p%2*16;return i.create(d,c*2)}},l.Utf16LE={stringify:function(f){for(var c=f.words,d=f.sigBytes,p=[],u=0;u<d;u+=2){var h=s(c[u>>>2]>>>16-u%4*8&65535);p.push(String.fromCharCode(h))}return p.join("")},parse:function(f){for(var c=f.length,d=[],p=0;p<c;p++)d[p>>>1]|=s(f.charCodeAt(p)<<16-p%2*16);return i.create(d,c*2)}};function s(f){return f<<8&4278255360|f>>>8&16711935}}(),t.enc.Utf16})}(bn)),bn.exports}var Sn={exports:{}},zr;function ht(){return zr||(zr=1,function(e,n){(function(t,o){e.exports=o(re())})(te,function(t){return function(){var o=t,a=o.lib,i=a.WordArray,l=o.enc;l.Base64={stringify:function(f){var c=f.words,d=f.sigBytes,p=this._map;f.clamp();for(var u=[],h=0;h<d;h+=3)for(var m=c[h>>>2]>>>24-h%4*8&255,g=c[h+1>>>2]>>>24-(h+1)%4*8&255,y=c[h+2>>>2]>>>24-(h+2)%4*8&255,C=m<<16|g<<8|y,x=0;x<4&&h+x*.75<d;x++)u.push(p.charAt(C>>>6*(3-x)&63));var v=p.charAt(64);if(v)for(;u.length%4;)u.push(v);return u.join("")},parse:function(f){var c=f.length,d=this._map,p=this._reverseMap;if(!p){p=this._reverseMap=[];for(var u=0;u<d.length;u++)p[d.charCodeAt(u)]=u}var h=d.charAt(64);if(h){var m=f.indexOf(h);m!==-1&&(c=m)}return s(f,c,p)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function s(f,c,d){for(var p=[],u=0,h=0;h<c;h++)if(h%4){var m=d[f.charCodeAt(h-1)]<<h%4*2,g=d[f.charCodeAt(h)]>>>6-h%4*2,y=m|g;p[u>>>2]|=y<<24-u%4*8,u++}return i.create(p,u)}}(),t.enc.Base64})}(Sn)),Sn.exports}var wn={exports:{}},Mr;function As(){return Mr||(Mr=1,function(e,n){(function(t,o){e.exports=o(re())})(te,function(t){return function(){var o=t,a=o.lib,i=a.WordArray,l=o.enc;l.Base64url={stringify:function(f,c=!0){var d=f.words,p=f.sigBytes,u=c?this._safe_map:this._map;f.clamp();for(var h=[],m=0;m<p;m+=3)for(var g=d[m>>>2]>>>24-m%4*8&255,y=d[m+1>>>2]>>>24-(m+1)%4*8&255,C=d[m+2>>>2]>>>24-(m+2)%4*8&255,x=g<<16|y<<8|C,v=0;v<4&&m+v*.75<p;v++)h.push(u.charAt(x>>>6*(3-v)&63));var b=u.charAt(64);if(b)for(;h.length%4;)h.push(b);return h.join("")},parse:function(f,c=!0){var d=f.length,p=c?this._safe_map:this._map,u=this._reverseMap;if(!u){u=this._reverseMap=[];for(var h=0;h<p.length;h++)u[p.charCodeAt(h)]=h}var m=p.charAt(64);if(m){var g=f.indexOf(m);g!==-1&&(d=g)}return s(f,d,u)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function s(f,c,d){for(var p=[],u=0,h=0;h<c;h++)if(h%4){var m=d[f.charCodeAt(h-1)]<<h%4*2,g=d[f.charCodeAt(h)]>>>6-h%4*2,y=m|g;p[u>>>2]|=y<<24-u%4*8,u++}return i.create(p,u)}}(),t.enc.Base64url})}(wn)),wn.exports}var Cn={exports:{}},Fr;function xt(){return Fr||(Fr=1,function(e,n){(function(t,o){e.exports=o(re())})(te,function(t){return function(o){var a=t,i=a.lib,l=i.WordArray,s=i.Hasher,f=a.algo,c=[];(function(){for(var g=0;g<64;g++)c[g]=o.abs(o.sin(g+1))*4294967296|0})();var d=f.MD5=s.extend({_doReset:function(){this._hash=new l.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(g,y){for(var C=0;C<16;C++){var x=y+C,v=g[x];g[x]=(v<<8|v>>>24)&16711935|(v<<24|v>>>8)&4278255360}var b=this._hash.words,_=g[y+0],S=g[y+1],k=g[y+2],A=g[y+3],D=g[y+4],w=g[y+5],E=g[y+6],R=g[y+7],I=g[y+8],M=g[y+9],H=g[y+10],$=g[y+11],P=g[y+12],L=g[y+13],O=g[y+14],z=g[y+15],T=b[0],B=b[1],F=b[2],N=b[3];T=p(T,B,F,N,_,7,c[0]),N=p(N,T,B,F,S,12,c[1]),F=p(F,N,T,B,k,17,c[2]),B=p(B,F,N,T,A,22,c[3]),T=p(T,B,F,N,D,7,c[4]),N=p(N,T,B,F,w,12,c[5]),F=p(F,N,T,B,E,17,c[6]),B=p(B,F,N,T,R,22,c[7]),T=p(T,B,F,N,I,7,c[8]),N=p(N,T,B,F,M,12,c[9]),F=p(F,N,T,B,H,17,c[10]),B=p(B,F,N,T,$,22,c[11]),T=p(T,B,F,N,P,7,c[12]),N=p(N,T,B,F,L,12,c[13]),F=p(F,N,T,B,O,17,c[14]),B=p(B,F,N,T,z,22,c[15]),T=u(T,B,F,N,S,5,c[16]),N=u(N,T,B,F,E,9,c[17]),F=u(F,N,T,B,$,14,c[18]),B=u(B,F,N,T,_,20,c[19]),T=u(T,B,F,N,w,5,c[20]),N=u(N,T,B,F,H,9,c[21]),F=u(F,N,T,B,z,14,c[22]),B=u(B,F,N,T,D,20,c[23]),T=u(T,B,F,N,M,5,c[24]),N=u(N,T,B,F,O,9,c[25]),F=u(F,N,T,B,A,14,c[26]),B=u(B,F,N,T,I,20,c[27]),T=u(T,B,F,N,L,5,c[28]),N=u(N,T,B,F,k,9,c[29]),F=u(F,N,T,B,R,14,c[30]),B=u(B,F,N,T,P,20,c[31]),T=h(T,B,F,N,w,4,c[32]),N=h(N,T,B,F,I,11,c[33]),F=h(F,N,T,B,$,16,c[34]),B=h(B,F,N,T,O,23,c[35]),T=h(T,B,F,N,S,4,c[36]),N=h(N,T,B,F,D,11,c[37]),F=h(F,N,T,B,R,16,c[38]),B=h(B,F,N,T,H,23,c[39]),T=h(T,B,F,N,L,4,c[40]),N=h(N,T,B,F,_,11,c[41]),F=h(F,N,T,B,A,16,c[42]),B=h(B,F,N,T,E,23,c[43]),T=h(T,B,F,N,M,4,c[44]),N=h(N,T,B,F,P,11,c[45]),F=h(F,N,T,B,z,16,c[46]),B=h(B,F,N,T,k,23,c[47]),T=m(T,B,F,N,_,6,c[48]),N=m(N,T,B,F,R,10,c[49]),F=m(F,N,T,B,O,15,c[50]),B=m(B,F,N,T,w,21,c[51]),T=m(T,B,F,N,P,6,c[52]),N=m(N,T,B,F,A,10,c[53]),F=m(F,N,T,B,H,15,c[54]),B=m(B,F,N,T,S,21,c[55]),T=m(T,B,F,N,I,6,c[56]),N=m(N,T,B,F,z,10,c[57]),F=m(F,N,T,B,E,15,c[58]),B=m(B,F,N,T,L,21,c[59]),T=m(T,B,F,N,D,6,c[60]),N=m(N,T,B,F,$,10,c[61]),F=m(F,N,T,B,k,15,c[62]),B=m(B,F,N,T,M,21,c[63]),b[0]=b[0]+T|0,b[1]=b[1]+B|0,b[2]=b[2]+F|0,b[3]=b[3]+N|0},_doFinalize:function(){var g=this._data,y=g.words,C=this._nDataBytes*8,x=g.sigBytes*8;y[x>>>5]|=128<<24-x%32;var v=o.floor(C/4294967296),b=C;y[(x+64>>>9<<4)+15]=(v<<8|v>>>24)&16711935|(v<<24|v>>>8)&4278255360,y[(x+64>>>9<<4)+14]=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360,g.sigBytes=(y.length+1)*4,this._process();for(var _=this._hash,S=_.words,k=0;k<4;k++){var A=S[k];S[k]=(A<<8|A>>>24)&16711935|(A<<24|A>>>8)&4278255360}return _},clone:function(){var g=s.clone.call(this);return g._hash=this._hash.clone(),g}});function p(g,y,C,x,v,b,_){var S=g+(y&C|~y&x)+v+_;return(S<<b|S>>>32-b)+y}function u(g,y,C,x,v,b,_){var S=g+(y&x|C&~x)+v+_;return(S<<b|S>>>32-b)+y}function h(g,y,C,x,v,b,_){var S=g+(y^C^x)+v+_;return(S<<b|S>>>32-b)+y}function m(g,y,C,x,v,b,_){var S=g+(C^(y|~x))+v+_;return(S<<b|S>>>32-b)+y}a.MD5=s._createHelper(d),a.HmacMD5=s._createHmacHelper(d)}(Math),t.MD5})}(Cn)),Cn.exports}var kn={exports:{}},Vr;function _n(){return Vr||(Vr=1,function(e,n){(function(t,o){e.exports=o(re())})(te,function(t){return function(){var o=t,a=o.lib,i=a.WordArray,l=a.Hasher,s=o.algo,f=[],c=s.SHA1=l.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(d,p){for(var u=this._hash.words,h=u[0],m=u[1],g=u[2],y=u[3],C=u[4],x=0;x<80;x++){if(x<16)f[x]=d[p+x]|0;else{var v=f[x-3]^f[x-8]^f[x-14]^f[x-16];f[x]=v<<1|v>>>31}var b=(h<<5|h>>>27)+C+f[x];x<20?b+=(m&g|~m&y)+1518500249:x<40?b+=(m^g^y)+1859775393:x<60?b+=(m&g|m&y|g&y)-1894007588:b+=(m^g^y)-899497514,C=y,y=g,g=m<<30|m>>>2,m=h,h=b}u[0]=u[0]+h|0,u[1]=u[1]+m|0,u[2]=u[2]+g|0,u[3]=u[3]+y|0,u[4]=u[4]+C|0},_doFinalize:function(){var d=this._data,p=d.words,u=this._nDataBytes*8,h=d.sigBytes*8;return p[h>>>5]|=128<<24-h%32,p[(h+64>>>9<<4)+14]=Math.floor(u/4294967296),p[(h+64>>>9<<4)+15]=u,d.sigBytes=p.length*4,this._process(),this._hash},clone:function(){var d=l.clone.call(this);return d._hash=this._hash.clone(),d}});o.SHA1=l._createHelper(c),o.HmacSHA1=l._createHmacHelper(c)}(),t.SHA1})}(kn)),kn.exports}var An={exports:{}},qr;function Hr(){return qr||(qr=1,function(e,n){(function(t,o){e.exports=o(re())})(te,function(t){return function(o){var a=t,i=a.lib,l=i.WordArray,s=i.Hasher,f=a.algo,c=[],d=[];(function(){function h(C){for(var x=o.sqrt(C),v=2;v<=x;v++)if(!(C%v))return!1;return!0}function m(C){return(C-(C|0))*4294967296|0}for(var g=2,y=0;y<64;)h(g)&&(y<8&&(c[y]=m(o.pow(g,1/2))),d[y]=m(o.pow(g,1/3)),y++),g++})();var p=[],u=f.SHA256=s.extend({_doReset:function(){this._hash=new l.init(c.slice(0))},_doProcessBlock:function(h,m){for(var g=this._hash.words,y=g[0],C=g[1],x=g[2],v=g[3],b=g[4],_=g[5],S=g[6],k=g[7],A=0;A<64;A++){if(A<16)p[A]=h[m+A]|0;else{var D=p[A-15],w=(D<<25|D>>>7)^(D<<14|D>>>18)^D>>>3,E=p[A-2],R=(E<<15|E>>>17)^(E<<13|E>>>19)^E>>>10;p[A]=w+p[A-7]+R+p[A-16]}var I=b&_^~b&S,M=y&C^y&x^C&x,H=(y<<30|y>>>2)^(y<<19|y>>>13)^(y<<10|y>>>22),$=(b<<26|b>>>6)^(b<<21|b>>>11)^(b<<7|b>>>25),P=k+$+I+d[A]+p[A],L=H+M;k=S,S=_,_=b,b=v+P|0,v=x,x=C,C=y,y=P+L|0}g[0]=g[0]+y|0,g[1]=g[1]+C|0,g[2]=g[2]+x|0,g[3]=g[3]+v|0,g[4]=g[4]+b|0,g[5]=g[5]+_|0,g[6]=g[6]+S|0,g[7]=g[7]+k|0},_doFinalize:function(){var h=this._data,m=h.words,g=this._nDataBytes*8,y=h.sigBytes*8;return m[y>>>5]|=128<<24-y%32,m[(y+64>>>9<<4)+14]=o.floor(g/4294967296),m[(y+64>>>9<<4)+15]=g,h.sigBytes=m.length*4,this._process(),this._hash},clone:function(){var h=s.clone.call(this);return h._hash=this._hash.clone(),h}});a.SHA256=s._createHelper(u),a.HmacSHA256=s._createHmacHelper(u)}(Math),t.SHA256})}(An)),An.exports}var En={exports:{}},$r;function Es(){return $r||($r=1,function(e,n){(function(t,o,a){e.exports=o(re(),Hr())})(te,function(t){return function(){var o=t,a=o.lib,i=a.WordArray,l=o.algo,s=l.SHA256,f=l.SHA224=s.extend({_doReset:function(){this._hash=new i.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var c=s._doFinalize.call(this);return c.sigBytes-=4,c}});o.SHA224=s._createHelper(f),o.HmacSHA224=s._createHmacHelper(f)}(),t.SHA224})}(En)),En.exports}var Tn={exports:{}},jr;function Ur(){return jr||(jr=1,function(e,n){(function(t,o,a){e.exports=o(re(),qt())})(te,function(t){return function(){var o=t,a=o.lib,i=a.Hasher,l=o.x64,s=l.Word,f=l.WordArray,c=o.algo;function d(){return s.create.apply(s,arguments)}var p=[d(1116352408,3609767458),d(1899447441,602891725),d(3049323471,3964484399),d(3921009573,2173295548),d(961987163,4081628472),d(1508970993,3053834265),d(2453635748,2937671579),d(2870763221,3664609560),d(3624381080,2734883394),d(310598401,1164996542),d(607225278,1323610764),d(1426881987,3590304994),d(1925078388,4068182383),d(2162078206,991336113),d(2614888103,633803317),d(3248222580,3479774868),d(3835390401,2666613458),d(4022224774,944711139),d(264347078,2341262773),d(604807628,2007800933),d(770255983,1495990901),d(1249150122,1856431235),d(1555081692,3175218132),d(1996064986,2198950837),d(2554220882,3999719339),d(2821834349,766784016),d(2952996808,2566594879),d(3210313671,3203337956),d(3336571891,1034457026),d(3584528711,2466948901),d(113926993,3758326383),d(338241895,168717936),d(666307205,1188179964),d(773529912,1546045734),d(1294757372,1522805485),d(1396182291,2643833823),d(1695183700,2343527390),d(1986661051,1014477480),d(2177026350,1206759142),d(2456956037,344077627),d(2730485921,1290863460),d(2820302411,3158454273),d(3259730800,3505952657),d(3345764771,106217008),d(3516065817,3606008344),d(3600352804,1432725776),d(4094571909,1467031594),d(275423344,851169720),d(430227734,3100823752),d(506948616,1363258195),d(659060556,3750685593),d(883997877,3785050280),d(958139571,3318307427),d(1322822218,3812723403),d(1537002063,2003034995),d(1747873779,3602036899),d(1955562222,1575990012),d(2024104815,1125592928),d(2227730452,2716904306),d(2361852424,442776044),d(2428436474,593698344),d(2756734187,3733110249),d(3204031479,2999351573),d(3329325298,3815920427),d(3391569614,3928383900),d(3515267271,566280711),d(3940187606,3454069534),d(4118630271,4000239992),d(116418474,1914138554),d(174292421,2731055270),d(289380356,3203993006),d(460393269,320620315),d(685471733,587496836),d(852142971,1086792851),d(1017036298,365543100),d(1126000580,2618297676),d(1288033470,3409855158),d(1501505948,4234509866),d(1607167915,987167468),d(1816402316,1246189591)],u=[];(function(){for(var m=0;m<80;m++)u[m]=d()})();var h=c.SHA512=i.extend({_doReset:function(){this._hash=new f.init([new s.init(1779033703,4089235720),new s.init(3144134277,2227873595),new s.init(1013904242,4271175723),new s.init(2773480762,1595750129),new s.init(1359893119,2917565137),new s.init(2600822924,725511199),new s.init(528734635,4215389547),new s.init(1541459225,327033209)])},_doProcessBlock:function(m,g){for(var y=this._hash.words,C=y[0],x=y[1],v=y[2],b=y[3],_=y[4],S=y[5],k=y[6],A=y[7],D=C.high,w=C.low,E=x.high,R=x.low,I=v.high,M=v.low,H=b.high,$=b.low,P=_.high,L=_.low,O=S.high,z=S.low,T=k.high,B=k.low,F=A.high,N=A.low,K=D,Z=w,X=E,W=R,pe=I,ke=M,et=H,Ge=$,Ce=P,Ee=L,Ct=O,kt=z,j=T,U=B,Y=F,J=N,G=0;G<80;G++){var ee,oe,ce=u[G];if(G<16)oe=ce.high=m[g+G*2]|0,ee=ce.low=m[g+G*2+1]|0;else{var de=u[G-15],ie=de.high,Be=de.low,De=(ie>>>1|Be<<31)^(ie>>>8|Be<<24)^ie>>>7,Me=(Be>>>1|ie<<31)^(Be>>>8|ie<<24)^(Be>>>7|ie<<25),_t=u[G-2],We=_t.high,lt=_t.low,Af=(We>>>19|lt<<13)^(We<<3|lt>>>29)^We>>>6,M0=(lt>>>19|We<<13)^(lt<<3|We>>>29)^(lt>>>6|We<<26),F0=u[G-7],Ef=F0.high,Tf=F0.low,V0=u[G-16],Bf=V0.high,q0=V0.low;ee=Me+Tf,oe=De+Ef+(ee>>>0<Me>>>0?1:0),ee=ee+M0,oe=oe+Af+(ee>>>0<M0>>>0?1:0),ee=ee+q0,oe=oe+Bf+(ee>>>0<q0>>>0?1:0),ce.high=oe,ce.low=ee}var Df=Ce&Ct^~Ce&j,H0=Ee&kt^~Ee&U,Rf=K&X^K&pe^X&pe,If=Z&W^Z&ke^W&ke,Lf=(K>>>28|Z<<4)^(K<<30|Z>>>2)^(K<<25|Z>>>7),$0=(Z>>>28|K<<4)^(Z<<30|K>>>2)^(Z<<25|K>>>7),Of=(Ce>>>14|Ee<<18)^(Ce>>>18|Ee<<14)^(Ce<<23|Ee>>>9),Nf=(Ee>>>14|Ce<<18)^(Ee>>>18|Ce<<14)^(Ee<<23|Ce>>>9),j0=p[G],Pf=j0.high,U0=j0.low,Le=J+Nf,tt=Y+Of+(Le>>>0<J>>>0?1:0),Le=Le+H0,tt=tt+Df+(Le>>>0<H0>>>0?1:0),Le=Le+U0,tt=tt+Pf+(Le>>>0<U0>>>0?1:0),Le=Le+ee,tt=tt+oe+(Le>>>0<ee>>>0?1:0),G0=$0+If,zf=Lf+Rf+(G0>>>0<$0>>>0?1:0);Y=j,J=U,j=Ct,U=kt,Ct=Ce,kt=Ee,Ee=Ge+Le|0,Ce=et+tt+(Ee>>>0<Ge>>>0?1:0)|0,et=pe,Ge=ke,pe=X,ke=W,X=K,W=Z,Z=Le+G0|0,K=tt+zf+(Z>>>0<Le>>>0?1:0)|0}w=C.low=w+Z,C.high=D+K+(w>>>0<Z>>>0?1:0),R=x.low=R+W,x.high=E+X+(R>>>0<W>>>0?1:0),M=v.low=M+ke,v.high=I+pe+(M>>>0<ke>>>0?1:0),$=b.low=$+Ge,b.high=H+et+($>>>0<Ge>>>0?1:0),L=_.low=L+Ee,_.high=P+Ce+(L>>>0<Ee>>>0?1:0),z=S.low=z+kt,S.high=O+Ct+(z>>>0<kt>>>0?1:0),B=k.low=B+U,k.high=T+j+(B>>>0<U>>>0?1:0),N=A.low=N+J,A.high=F+Y+(N>>>0<J>>>0?1:0)},_doFinalize:function(){var m=this._data,g=m.words,y=this._nDataBytes*8,C=m.sigBytes*8;g[C>>>5]|=128<<24-C%32,g[(C+128>>>10<<5)+30]=Math.floor(y/4294967296),g[(C+128>>>10<<5)+31]=y,m.sigBytes=g.length*4,this._process();var x=this._hash.toX32();return x},clone:function(){var m=i.clone.call(this);return m._hash=this._hash.clone(),m},blockSize:1024/32});o.SHA512=i._createHelper(h),o.HmacSHA512=i._createHmacHelper(h)}(),t.SHA512})}(Tn)),Tn.exports}var Bn={exports:{}},Gr;function Ts(){return Gr||(Gr=1,function(e,n){(function(t,o,a){e.exports=o(re(),qt(),Ur())})(te,function(t){return function(){var o=t,a=o.x64,i=a.Word,l=a.WordArray,s=o.algo,f=s.SHA512,c=s.SHA384=f.extend({_doReset:function(){this._hash=new l.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 d=f._doFinalize.call(this);return d.sigBytes-=16,d}});o.SHA384=f._createHelper(c),o.HmacSHA384=f._createHmacHelper(c)}(),t.SHA384})}(Bn)),Bn.exports}var Dn={exports:{}},Wr;function Bs(){return Wr||(Wr=1,function(e,n){(function(t,o,a){e.exports=o(re(),qt())})(te,function(t){return function(o){var a=t,i=a.lib,l=i.WordArray,s=i.Hasher,f=a.x64,c=f.Word,d=a.algo,p=[],u=[],h=[];(function(){for(var y=1,C=0,x=0;x<24;x++){p[y+5*C]=(x+1)*(x+2)/2%64;var v=C%5,b=(2*y+3*C)%5;y=v,C=b}for(var y=0;y<5;y++)for(var C=0;C<5;C++)u[y+5*C]=C+(2*y+3*C)%5*5;for(var _=1,S=0;S<24;S++){for(var k=0,A=0,D=0;D<7;D++){if(_&1){var w=(1<<D)-1;w<32?A^=1<<w:k^=1<<w-32}_&128?_=_<<1^113:_<<=1}h[S]=c.create(k,A)}})();var m=[];(function(){for(var y=0;y<25;y++)m[y]=c.create()})();var g=d.SHA3=s.extend({cfg:s.cfg.extend({outputLength:512}),_doReset:function(){for(var y=this._state=[],C=0;C<25;C++)y[C]=new c.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(y,C){for(var x=this._state,v=this.blockSize/2,b=0;b<v;b++){var _=y[C+2*b],S=y[C+2*b+1];_=(_<<8|_>>>24)&16711935|(_<<24|_>>>8)&4278255360,S=(S<<8|S>>>24)&16711935|(S<<24|S>>>8)&4278255360;var k=x[b];k.high^=S,k.low^=_}for(var A=0;A<24;A++){for(var D=0;D<5;D++){for(var w=0,E=0,R=0;R<5;R++){var k=x[D+5*R];w^=k.high,E^=k.low}var I=m[D];I.high=w,I.low=E}for(var D=0;D<5;D++)for(var M=m[(D+4)%5],H=m[(D+1)%5],$=H.high,P=H.low,w=M.high^($<<1|P>>>31),E=M.low^(P<<1|$>>>31),R=0;R<5;R++){var k=x[D+5*R];k.high^=w,k.low^=E}for(var L=1;L<25;L++){var w,E,k=x[L],O=k.high,z=k.low,T=p[L];T<32?(w=O<<T|z>>>32-T,E=z<<T|O>>>32-T):(w=z<<T-32|O>>>64-T,E=O<<T-32|z>>>64-T);var B=m[u[L]];B.high=w,B.low=E}var F=m[0],N=x[0];F.high=N.high,F.low=N.low;for(var D=0;D<5;D++)for(var R=0;R<5;R++){var L=D+5*R,k=x[L],K=m[L],Z=m[(D+1)%5+5*R],X=m[(D+2)%5+5*R];k.high=K.high^~Z.high&X.high,k.low=K.low^~Z.low&X.low}var k=x[0],W=h[A];k.high^=W.high,k.low^=W.low}},_doFinalize:function(){var y=this._data,C=y.words;this._nDataBytes*8;var x=y.sigBytes*8,v=this.blockSize*32;C[x>>>5]|=1<<24-x%32,C[(o.ceil((x+1)/v)*v>>>5)-1]|=128,y.sigBytes=C.length*4,this._process();for(var b=this._state,_=this.cfg.outputLength/8,S=_/8,k=[],A=0;A<S;A++){var D=b[A],w=D.high,E=D.low;w=(w<<8|w>>>24)&16711935|(w<<24|w>>>8)&4278255360,E=(E<<8|E>>>24)&16711935|(E<<24|E>>>8)&4278255360,k.push(E),k.push(w)}return new l.init(k,_)},clone:function(){for(var y=s.clone.call(this),C=y._state=this._state.slice(0),x=0;x<25;x++)C[x]=C[x].clone();return y}});a.SHA3=s._createHelper(g),a.HmacSHA3=s._createHmacHelper(g)}(Math),t.SHA3})}(Dn)),Dn.exports}var Rn={exports:{}},Zr;function Ds(){return Zr||(Zr=1,function(e,n){(function(t,o){e.exports=o(re())})(te,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(o){var a=t,i=a.lib,l=i.WordArray,s=i.Hasher,f=a.algo,c=l.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]),d=l.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]),p=l.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),u=l.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=l.create([0,1518500249,1859775393,2400959708,2840853838]),g=l.create([1352829926,1548603684,1836072691,2053994217,0]),x=f.RIPEMD160=s.extend({_doReset:function(){this._hash=l.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(w,k){for(var A=0;A<16;A++){var E=k+A,C=w[E];w[E]=(C<<8|C>>>24)&16711935|(C<<24|C>>>8)&4278255360}var T=this._hash.words,R=h.words,B=g.words,F=c.words,I=d.words,$=p.words,q=u.words,N,L,H,D,O,M,P,Y,Z,X;M=N=T[0],P=L=T[1],Y=H=T[2],Z=D=T[3],X=O=T[4];for(var G,A=0;A<80;A+=1)G=N+w[k+F[A]]|0,A<16?G+=y(L,H,D)+R[0]:A<32?G+=S(L,H,D)+R[1]:A<48?G+=m(L,H,D)+R[2]:A<64?G+=b(L,H,D)+R[3]:G+=v(L,H,D)+R[4],G=G|0,G=_(G,$[A]),G=G+O|0,N=O,O=D,D=_(H,10),H=L,L=G,G=M+w[k+I[A]]|0,A<16?G+=v(P,Y,Z)+B[0]:A<32?G+=b(P,Y,Z)+B[1]:A<48?G+=m(P,Y,Z)+B[2]:A<64?G+=S(P,Y,Z)+B[3]:G+=y(P,Y,Z)+B[4],G=G|0,G=_(G,q[A]),G=G+X|0,M=X,X=Z,Z=_(Y,10),Y=P,P=G;G=T[1]+H+Z|0,T[1]=T[2]+D+X|0,T[2]=T[3]+O+M|0,T[3]=T[4]+N+P|0,T[4]=T[0]+L+Y|0,T[0]=G},_doFinalize:function(){var w=this._data,k=w.words,A=this._nDataBytes*8,E=w.sigBytes*8;k[E>>>5]|=128<<24-E%32,k[(E+64>>>9<<4)+14]=(A<<8|A>>>24)&16711935|(A<<24|A>>>8)&4278255360,w.sigBytes=(k.length+1)*4,this._process();for(var C=this._hash,T=C.words,R=0;R<5;R++){var B=T[R];T[R]=(B<<8|B>>>24)&16711935|(B<<24|B>>>8)&4278255360}return C},clone:function(){var w=s.clone.call(this);return w._hash=this._hash.clone(),w}});function y(w,k,A){return w^k^A}function S(w,k,A){return w&k|~w&A}function m(w,k,A){return(w|~k)^A}function b(w,k,A){return w&A|k&~A}function v(w,k,A){return w^(k|~A)}function _(w,k){return w<<k|w>>>32-k}a.RIPEMD160=s._createHelper(x),a.HmacRIPEMD160=s._createHmacHelper(x)}(),t.RIPEMD160})}(Rn)),Rn.exports}var In={exports:{}},Kr;function Ln(){return Kr||(Kr=1,function(e,n){(function(t,o){e.exports=o(re())})(te,function(t){(function(){var o=t,a=o.lib,i=a.Base,l=o.enc,s=l.Utf8,f=o.algo;f.HMAC=i.extend({init:function(c,d){c=this._hasher=new c.init,typeof d=="string"&&(d=s.parse(d));var p=c.blockSize,u=p*4;d.sigBytes>u&&(d=c.finalize(d)),d.clamp();for(var h=this._oKey=d.clone(),g=this._iKey=d.clone(),x=h.words,y=g.words,S=0;S<p;S++)x[S]^=1549556828,y[S]^=909522486;h.sigBytes=g.sigBytes=u,this.reset()},reset:function(){var c=this._hasher;c.reset(),c.update(this._iKey)},update:function(c){return this._hasher.update(c),this},finalize:function(c){var d=this._hasher,p=d.finalize(c);d.reset();var u=d.finalize(this._oKey.clone().concat(p));return u}})})()})}(In)),In.exports}var On={exports:{}},Yr;function Rs(){return Yr||(Yr=1,function(e,n){(function(t,o,a){e.exports=o(re(),_n(),Ln())})(te,function(t){return function(){var o=t,a=o.lib,i=a.Base,l=a.WordArray,s=o.algo,f=s.SHA1,c=s.HMAC,d=s.PBKDF2=i.extend({cfg:i.extend({keySize:128/32,hasher:f,iterations:1}),init:function(p){this.cfg=this.cfg.extend(p)},compute:function(p,u){for(var h=this.cfg,g=c.create(h.hasher,p),x=l.create(),y=l.create([1]),S=x.words,m=y.words,b=h.keySize,v=h.iterations;S.length<b;){var _=g.update(u).finalize(y);g.reset();for(var w=_.words,k=w.length,A=_,E=1;E<v;E++){A=g.finalize(A),g.reset();for(var C=A.words,T=0;T<k;T++)w[T]^=C[T]}x.concat(_),m[0]++}return x.sigBytes=b*4,x}});o.PBKDF2=function(p,u,h){return d.create(h).compute(p,u)}}(),t.PBKDF2})}(On)),On.exports}var Nn={exports:{}},Xr;function ot(){return Xr||(Xr=1,function(e,n){(function(t,o,a){e.exports=o(re(),_n(),Ln())})(te,function(t){return function(){var o=t,a=o.lib,i=a.Base,l=a.WordArray,s=o.algo,f=s.MD5,c=s.EvpKDF=i.extend({cfg:i.extend({keySize:128/32,hasher:f,iterations:1}),init:function(d){this.cfg=this.cfg.extend(d)},compute:function(d,p){for(var u,h=this.cfg,g=h.hasher.create(),x=l.create(),y=x.words,S=h.keySize,m=h.iterations;y.length<S;){u&&g.update(u),u=g.update(d).finalize(p),g.reset();for(var b=1;b<m;b++)u=g.finalize(u),g.reset();x.concat(u)}return x.sigBytes=S*4,x}});o.EvpKDF=function(d,p,u){return c.create(u).compute(d,p)}}(),t.EvpKDF})}(Nn)),Nn.exports}var Pn={exports:{}},Jr;function Ce(){return Jr||(Jr=1,function(e,n){(function(t,o,a){e.exports=o(re(),ot())})(te,function(t){t.lib.Cipher||function(o){var a=t,i=a.lib,l=i.Base,s=i.WordArray,f=i.BufferedBlockAlgorithm,c=a.enc;c.Utf8;var d=c.Base64,p=a.algo,u=p.EvpKDF,h=i.Cipher=f.extend({cfg:l.extend(),createEncryptor:function(C,T){return this.create(this._ENC_XFORM_MODE,C,T)},createDecryptor:function(C,T){return this.create(this._DEC_XFORM_MODE,C,T)},init:function(C,T,R){this.cfg=this.cfg.extend(R),this._xformMode=C,this._key=T,this.reset()},reset:function(){f.reset.call(this),this._doReset()},process:function(C){return this._append(C),this._process()},finalize:function(C){C&&this._append(C);var T=this._doFinalize();return T},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function C(T){return typeof T=="string"?E:w}return function(T){return{encrypt:function(R,B,F){return C(B).encrypt(T,R,B,F)},decrypt:function(R,B,F){return C(B).decrypt(T,R,B,F)}}}}()});i.StreamCipher=h.extend({_doFinalize:function(){var C=this._process(!0);return C},blockSize:1});var g=a.mode={},x=i.BlockCipherMode=l.extend({createEncryptor:function(C,T){return this.Encryptor.create(C,T)},createDecryptor:function(C,T){return this.Decryptor.create(C,T)},init:function(C,T){this._cipher=C,this._iv=T}}),y=g.CBC=function(){var C=x.extend();C.Encryptor=C.extend({processBlock:function(R,B){var F=this._cipher,I=F.blockSize;T.call(this,R,B,I),F.encryptBlock(R,B),this._prevBlock=R.slice(B,B+I)}}),C.Decryptor=C.extend({processBlock:function(R,B){var F=this._cipher,I=F.blockSize,$=R.slice(B,B+I);F.decryptBlock(R,B),T.call(this,R,B,I),this._prevBlock=$}});function T(R,B,F){var I,$=this._iv;$?(I=$,this._iv=o):I=this._prevBlock;for(var q=0;q<F;q++)R[B+q]^=I[q]}return C}(),S=a.pad={},m=S.Pkcs7={pad:function(C,T){for(var R=T*4,B=R-C.sigBytes%R,F=B<<24|B<<16|B<<8|B,I=[],$=0;$<B;$+=4)I.push(F);var q=s.create(I,B);C.concat(q)},unpad:function(C){var T=C.words[C.sigBytes-1>>>2]&255;C.sigBytes-=T}};i.BlockCipher=h.extend({cfg:h.cfg.extend({mode:y,padding:m}),reset:function(){var C;h.reset.call(this);var T=this.cfg,R=T.iv,B=T.mode;this._xformMode==this._ENC_XFORM_MODE?C=B.createEncryptor:(C=B.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==C?this._mode.init(this,R&&R.words):(this._mode=C.call(B,this,R&&R.words),this._mode.__creator=C)},_doProcessBlock:function(C,T){this._mode.processBlock(C,T)},_doFinalize:function(){var C,T=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(T.pad(this._data,this.blockSize),C=this._process(!0)):(C=this._process(!0),T.unpad(C)),C},blockSize:128/32});var b=i.CipherParams=l.extend({init:function(C){this.mixIn(C)},toString:function(C){return(C||this.formatter).stringify(this)}}),v=a.format={},_=v.OpenSSL={stringify:function(C){var T,R=C.ciphertext,B=C.salt;return B?T=s.create([1398893684,1701076831]).concat(B).concat(R):T=R,T.toString(d)},parse:function(C){var T,R=d.parse(C),B=R.words;return B[0]==1398893684&&B[1]==1701076831&&(T=s.create(B.slice(2,4)),B.splice(0,4),R.sigBytes-=16),b.create({ciphertext:R,salt:T})}},w=i.SerializableCipher=l.extend({cfg:l.extend({format:_}),encrypt:function(C,T,R,B){B=this.cfg.extend(B);var F=C.createEncryptor(R,B),I=F.finalize(T),$=F.cfg;return b.create({ciphertext:I,key:R,iv:$.iv,algorithm:C,mode:$.mode,padding:$.padding,blockSize:C.blockSize,formatter:B.format})},decrypt:function(C,T,R,B){B=this.cfg.extend(B),T=this._parse(T,B.format);var F=C.createDecryptor(R,B).finalize(T.ciphertext);return F},_parse:function(C,T){return typeof C=="string"?T.parse(C,this):C}}),k=a.kdf={},A=k.OpenSSL={execute:function(C,T,R,B){B||(B=s.random(64/8));var F=u.create({keySize:T+R}).compute(C,B),I=s.create(F.words.slice(T),R*4);return F.sigBytes=T*4,b.create({key:F,iv:I,salt:B})}},E=i.PasswordBasedCipher=w.extend({cfg:w.cfg.extend({kdf:A}),encrypt:function(C,T,R,B){B=this.cfg.extend(B);var F=B.kdf.execute(R,C.keySize,C.ivSize);B.iv=F.iv;var I=w.encrypt.call(this,C,T,F.key,B);return I.mixIn(F),I},decrypt:function(C,T,R,B){B=this.cfg.extend(B),T=this._parse(T,B.format);var F=B.kdf.execute(R,C.keySize,C.ivSize,T.salt);B.iv=F.iv;var I=w.decrypt.call(this,C,T,F.key,B);return I}})}()})}(Pn)),Pn.exports}var zn={exports:{}},Qr;function Is(){return Qr||(Qr=1,function(e,n){(function(t,o,a){e.exports=o(re(),Ce())})(te,function(t){return t.mode.CFB=function(){var o=t.lib.BlockCipherMode.extend();o.Encryptor=o.extend({processBlock:function(i,l){var s=this._cipher,f=s.blockSize;a.call(this,i,l,f,s),this._prevBlock=i.slice(l,l+f)}}),o.Decryptor=o.extend({processBlock:function(i,l){var s=this._cipher,f=s.blockSize,c=i.slice(l,l+f);a.call(this,i,l,f,s),this._prevBlock=c}});function a(i,l,s,f){var c,d=this._iv;d?(c=d.slice(0),this._iv=void 0):c=this._prevBlock,f.encryptBlock(c,0);for(var p=0;p<s;p++)i[l+p]^=c[p]}return o}(),t.mode.CFB})}(zn)),zn.exports}var Mn={exports:{}},e0;function Ls(){return e0||(e0=1,function(e,n){(function(t,o,a){e.exports=o(re(),Ce())})(te,function(t){return t.mode.CTR=function(){var o=t.lib.BlockCipherMode.extend(),a=o.Encryptor=o.extend({processBlock:function(i,l){var s=this._cipher,f=s.blockSize,c=this._iv,d=this._counter;c&&(d=this._counter=c.slice(0),this._iv=void 0);var p=d.slice(0);s.encryptBlock(p,0),d[f-1]=d[f-1]+1|0;for(var u=0;u<f;u++)i[l+u]^=p[u]}});return o.Decryptor=a,o}(),t.mode.CTR})}(Mn)),Mn.exports}var Fn={exports:{}},t0;function Os(){return t0||(t0=1,function(e,n){(function(t,o,a){e.exports=o(re(),Ce())})(te,function(t){/** @preserve
67
+ */return function(o){var a=t,i=a.lib,l=i.WordArray,s=i.Hasher,f=a.algo,c=l.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]),d=l.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]),p=l.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),u=l.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=l.create([0,1518500249,1859775393,2400959708,2840853838]),m=l.create([1352829926,1548603684,1836072691,2053994217,0]),g=f.RIPEMD160=s.extend({_doReset:function(){this._hash=l.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(S,k){for(var A=0;A<16;A++){var D=k+A,w=S[D];S[D]=(w<<8|w>>>24)&16711935|(w<<24|w>>>8)&4278255360}var E=this._hash.words,R=h.words,I=m.words,M=c.words,H=d.words,$=p.words,P=u.words,L,O,z,T,B,F,N,K,Z,X;F=L=E[0],N=O=E[1],K=z=E[2],Z=T=E[3],X=B=E[4];for(var W,A=0;A<80;A+=1)W=L+S[k+M[A]]|0,A<16?W+=y(O,z,T)+R[0]:A<32?W+=C(O,z,T)+R[1]:A<48?W+=x(O,z,T)+R[2]:A<64?W+=v(O,z,T)+R[3]:W+=b(O,z,T)+R[4],W=W|0,W=_(W,$[A]),W=W+B|0,L=B,B=T,T=_(z,10),z=O,O=W,W=F+S[k+H[A]]|0,A<16?W+=b(N,K,Z)+I[0]:A<32?W+=v(N,K,Z)+I[1]:A<48?W+=x(N,K,Z)+I[2]:A<64?W+=C(N,K,Z)+I[3]:W+=y(N,K,Z)+I[4],W=W|0,W=_(W,P[A]),W=W+X|0,F=X,X=Z,Z=_(K,10),K=N,N=W;W=E[1]+z+Z|0,E[1]=E[2]+T+X|0,E[2]=E[3]+B+F|0,E[3]=E[4]+L+N|0,E[4]=E[0]+O+K|0,E[0]=W},_doFinalize:function(){var S=this._data,k=S.words,A=this._nDataBytes*8,D=S.sigBytes*8;k[D>>>5]|=128<<24-D%32,k[(D+64>>>9<<4)+14]=(A<<8|A>>>24)&16711935|(A<<24|A>>>8)&4278255360,S.sigBytes=(k.length+1)*4,this._process();for(var w=this._hash,E=w.words,R=0;R<5;R++){var I=E[R];E[R]=(I<<8|I>>>24)&16711935|(I<<24|I>>>8)&4278255360}return w},clone:function(){var S=s.clone.call(this);return S._hash=this._hash.clone(),S}});function y(S,k,A){return S^k^A}function C(S,k,A){return S&k|~S&A}function x(S,k,A){return(S|~k)^A}function v(S,k,A){return S&A|k&~A}function b(S,k,A){return S^(k|~A)}function _(S,k){return S<<k|S>>>32-k}a.RIPEMD160=s._createHelper(g),a.HmacRIPEMD160=s._createHmacHelper(g)}(),t.RIPEMD160})}(Rn)),Rn.exports}var In={exports:{}},Kr;function Ln(){return Kr||(Kr=1,function(e,n){(function(t,o){e.exports=o(re())})(te,function(t){(function(){var o=t,a=o.lib,i=a.Base,l=o.enc,s=l.Utf8,f=o.algo;f.HMAC=i.extend({init:function(c,d){c=this._hasher=new c.init,typeof d=="string"&&(d=s.parse(d));var p=c.blockSize,u=p*4;d.sigBytes>u&&(d=c.finalize(d)),d.clamp();for(var h=this._oKey=d.clone(),m=this._iKey=d.clone(),g=h.words,y=m.words,C=0;C<p;C++)g[C]^=1549556828,y[C]^=909522486;h.sigBytes=m.sigBytes=u,this.reset()},reset:function(){var c=this._hasher;c.reset(),c.update(this._iKey)},update:function(c){return this._hasher.update(c),this},finalize:function(c){var d=this._hasher,p=d.finalize(c);d.reset();var u=d.finalize(this._oKey.clone().concat(p));return u}})})()})}(In)),In.exports}var On={exports:{}},Yr;function Rs(){return Yr||(Yr=1,function(e,n){(function(t,o,a){e.exports=o(re(),_n(),Ln())})(te,function(t){return function(){var o=t,a=o.lib,i=a.Base,l=a.WordArray,s=o.algo,f=s.SHA1,c=s.HMAC,d=s.PBKDF2=i.extend({cfg:i.extend({keySize:128/32,hasher:f,iterations:1}),init:function(p){this.cfg=this.cfg.extend(p)},compute:function(p,u){for(var h=this.cfg,m=c.create(h.hasher,p),g=l.create(),y=l.create([1]),C=g.words,x=y.words,v=h.keySize,b=h.iterations;C.length<v;){var _=m.update(u).finalize(y);m.reset();for(var S=_.words,k=S.length,A=_,D=1;D<b;D++){A=m.finalize(A),m.reset();for(var w=A.words,E=0;E<k;E++)S[E]^=w[E]}g.concat(_),x[0]++}return g.sigBytes=v*4,g}});o.PBKDF2=function(p,u,h){return d.create(h).compute(p,u)}}(),t.PBKDF2})}(On)),On.exports}var Nn={exports:{}},Xr;function ot(){return Xr||(Xr=1,function(e,n){(function(t,o,a){e.exports=o(re(),_n(),Ln())})(te,function(t){return function(){var o=t,a=o.lib,i=a.Base,l=a.WordArray,s=o.algo,f=s.MD5,c=s.EvpKDF=i.extend({cfg:i.extend({keySize:128/32,hasher:f,iterations:1}),init:function(d){this.cfg=this.cfg.extend(d)},compute:function(d,p){for(var u,h=this.cfg,m=h.hasher.create(),g=l.create(),y=g.words,C=h.keySize,x=h.iterations;y.length<C;){u&&m.update(u),u=m.update(d).finalize(p),m.reset();for(var v=1;v<x;v++)u=m.finalize(u),m.reset();g.concat(u)}return g.sigBytes=C*4,g}});o.EvpKDF=function(d,p,u){return c.create(u).compute(d,p)}}(),t.EvpKDF})}(Nn)),Nn.exports}var Pn={exports:{}},Jr;function we(){return Jr||(Jr=1,function(e,n){(function(t,o,a){e.exports=o(re(),ot())})(te,function(t){t.lib.Cipher||function(o){var a=t,i=a.lib,l=i.Base,s=i.WordArray,f=i.BufferedBlockAlgorithm,c=a.enc;c.Utf8;var d=c.Base64,p=a.algo,u=p.EvpKDF,h=i.Cipher=f.extend({cfg:l.extend(),createEncryptor:function(w,E){return this.create(this._ENC_XFORM_MODE,w,E)},createDecryptor:function(w,E){return this.create(this._DEC_XFORM_MODE,w,E)},init:function(w,E,R){this.cfg=this.cfg.extend(R),this._xformMode=w,this._key=E,this.reset()},reset:function(){f.reset.call(this),this._doReset()},process:function(w){return this._append(w),this._process()},finalize:function(w){w&&this._append(w);var E=this._doFinalize();return E},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function w(E){return typeof E=="string"?D:S}return function(E){return{encrypt:function(R,I,M){return w(I).encrypt(E,R,I,M)},decrypt:function(R,I,M){return w(I).decrypt(E,R,I,M)}}}}()});i.StreamCipher=h.extend({_doFinalize:function(){var w=this._process(!0);return w},blockSize:1});var m=a.mode={},g=i.BlockCipherMode=l.extend({createEncryptor:function(w,E){return this.Encryptor.create(w,E)},createDecryptor:function(w,E){return this.Decryptor.create(w,E)},init:function(w,E){this._cipher=w,this._iv=E}}),y=m.CBC=function(){var w=g.extend();w.Encryptor=w.extend({processBlock:function(R,I){var M=this._cipher,H=M.blockSize;E.call(this,R,I,H),M.encryptBlock(R,I),this._prevBlock=R.slice(I,I+H)}}),w.Decryptor=w.extend({processBlock:function(R,I){var M=this._cipher,H=M.blockSize,$=R.slice(I,I+H);M.decryptBlock(R,I),E.call(this,R,I,H),this._prevBlock=$}});function E(R,I,M){var H,$=this._iv;$?(H=$,this._iv=o):H=this._prevBlock;for(var P=0;P<M;P++)R[I+P]^=H[P]}return w}(),C=a.pad={},x=C.Pkcs7={pad:function(w,E){for(var R=E*4,I=R-w.sigBytes%R,M=I<<24|I<<16|I<<8|I,H=[],$=0;$<I;$+=4)H.push(M);var P=s.create(H,I);w.concat(P)},unpad:function(w){var E=w.words[w.sigBytes-1>>>2]&255;w.sigBytes-=E}};i.BlockCipher=h.extend({cfg:h.cfg.extend({mode:y,padding:x}),reset:function(){var w;h.reset.call(this);var E=this.cfg,R=E.iv,I=E.mode;this._xformMode==this._ENC_XFORM_MODE?w=I.createEncryptor:(w=I.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==w?this._mode.init(this,R&&R.words):(this._mode=w.call(I,this,R&&R.words),this._mode.__creator=w)},_doProcessBlock:function(w,E){this._mode.processBlock(w,E)},_doFinalize:function(){var w,E=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(E.pad(this._data,this.blockSize),w=this._process(!0)):(w=this._process(!0),E.unpad(w)),w},blockSize:128/32});var v=i.CipherParams=l.extend({init:function(w){this.mixIn(w)},toString:function(w){return(w||this.formatter).stringify(this)}}),b=a.format={},_=b.OpenSSL={stringify:function(w){var E,R=w.ciphertext,I=w.salt;return I?E=s.create([1398893684,1701076831]).concat(I).concat(R):E=R,E.toString(d)},parse:function(w){var E,R=d.parse(w),I=R.words;return I[0]==1398893684&&I[1]==1701076831&&(E=s.create(I.slice(2,4)),I.splice(0,4),R.sigBytes-=16),v.create({ciphertext:R,salt:E})}},S=i.SerializableCipher=l.extend({cfg:l.extend({format:_}),encrypt:function(w,E,R,I){I=this.cfg.extend(I);var M=w.createEncryptor(R,I),H=M.finalize(E),$=M.cfg;return v.create({ciphertext:H,key:R,iv:$.iv,algorithm:w,mode:$.mode,padding:$.padding,blockSize:w.blockSize,formatter:I.format})},decrypt:function(w,E,R,I){I=this.cfg.extend(I),E=this._parse(E,I.format);var M=w.createDecryptor(R,I).finalize(E.ciphertext);return M},_parse:function(w,E){return typeof w=="string"?E.parse(w,this):w}}),k=a.kdf={},A=k.OpenSSL={execute:function(w,E,R,I){I||(I=s.random(64/8));var M=u.create({keySize:E+R}).compute(w,I),H=s.create(M.words.slice(E),R*4);return M.sigBytes=E*4,v.create({key:M,iv:H,salt:I})}},D=i.PasswordBasedCipher=S.extend({cfg:S.cfg.extend({kdf:A}),encrypt:function(w,E,R,I){I=this.cfg.extend(I);var M=I.kdf.execute(R,w.keySize,w.ivSize);I.iv=M.iv;var H=S.encrypt.call(this,w,E,M.key,I);return H.mixIn(M),H},decrypt:function(w,E,R,I){I=this.cfg.extend(I),E=this._parse(E,I.format);var M=I.kdf.execute(R,w.keySize,w.ivSize,E.salt);I.iv=M.iv;var H=S.decrypt.call(this,w,E,M.key,I);return H}})}()})}(Pn)),Pn.exports}var zn={exports:{}},Qr;function Is(){return Qr||(Qr=1,function(e,n){(function(t,o,a){e.exports=o(re(),we())})(te,function(t){return t.mode.CFB=function(){var o=t.lib.BlockCipherMode.extend();o.Encryptor=o.extend({processBlock:function(i,l){var s=this._cipher,f=s.blockSize;a.call(this,i,l,f,s),this._prevBlock=i.slice(l,l+f)}}),o.Decryptor=o.extend({processBlock:function(i,l){var s=this._cipher,f=s.blockSize,c=i.slice(l,l+f);a.call(this,i,l,f,s),this._prevBlock=c}});function a(i,l,s,f){var c,d=this._iv;d?(c=d.slice(0),this._iv=void 0):c=this._prevBlock,f.encryptBlock(c,0);for(var p=0;p<s;p++)i[l+p]^=c[p]}return o}(),t.mode.CFB})}(zn)),zn.exports}var Mn={exports:{}},ea;function Ls(){return ea||(ea=1,function(e,n){(function(t,o,a){e.exports=o(re(),we())})(te,function(t){return t.mode.CTR=function(){var o=t.lib.BlockCipherMode.extend(),a=o.Encryptor=o.extend({processBlock:function(i,l){var s=this._cipher,f=s.blockSize,c=this._iv,d=this._counter;c&&(d=this._counter=c.slice(0),this._iv=void 0);var p=d.slice(0);s.encryptBlock(p,0),d[f-1]=d[f-1]+1|0;for(var u=0;u<f;u++)i[l+u]^=p[u]}});return o.Decryptor=a,o}(),t.mode.CTR})}(Mn)),Mn.exports}var Fn={exports:{}},ta;function Os(){return ta||(ta=1,function(e,n){(function(t,o,a){e.exports=o(re(),we())})(te,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 o=t.lib.BlockCipherMode.extend();function a(s){if((s>>24&255)===255){var f=s>>16&255,c=s>>8&255,d=s&255;f===255?(f=0,c===255?(c=0,d===255?d=0:++d):++c):++f,s=0,s+=f<<16,s+=c<<8,s+=d}else s+=1<<24;return s}function i(s){return(s[0]=a(s[0]))===0&&(s[1]=a(s[1])),s}var l=o.Encryptor=o.extend({processBlock:function(s,f){var c=this._cipher,d=c.blockSize,p=this._iv,u=this._counter;p&&(u=this._counter=p.slice(0),this._iv=void 0),i(u);var h=u.slice(0);c.encryptBlock(h,0);for(var g=0;g<d;g++)s[f+g]^=h[g]}});return o.Decryptor=l,o}(),t.mode.CTRGladman})}(Fn)),Fn.exports}var Vn={exports:{}},n0;function Ns(){return n0||(n0=1,function(e,n){(function(t,o,a){e.exports=o(re(),Ce())})(te,function(t){return t.mode.OFB=function(){var o=t.lib.BlockCipherMode.extend(),a=o.Encryptor=o.extend({processBlock:function(i,l){var s=this._cipher,f=s.blockSize,c=this._iv,d=this._keystream;c&&(d=this._keystream=c.slice(0),this._iv=void 0),s.encryptBlock(d,0);for(var p=0;p<f;p++)i[l+p]^=d[p]}});return o.Decryptor=a,o}(),t.mode.OFB})}(Vn)),Vn.exports}var qn={exports:{}},o0;function Ps(){return o0||(o0=1,function(e,n){(function(t,o,a){e.exports=o(re(),Ce())})(te,function(t){return t.mode.ECB=function(){var o=t.lib.BlockCipherMode.extend();return o.Encryptor=o.extend({processBlock:function(a,i){this._cipher.encryptBlock(a,i)}}),o.Decryptor=o.extend({processBlock:function(a,i){this._cipher.decryptBlock(a,i)}}),o}(),t.mode.ECB})}(qn)),qn.exports}var Hn={exports:{}},r0;function zs(){return r0||(r0=1,function(e,n){(function(t,o,a){e.exports=o(re(),Ce())})(te,function(t){return t.pad.AnsiX923={pad:function(o,a){var i=o.sigBytes,l=a*4,s=l-i%l,f=i+s-1;o.clamp(),o.words[f>>>2]|=s<<24-f%4*8,o.sigBytes+=s},unpad:function(o){var a=o.words[o.sigBytes-1>>>2]&255;o.sigBytes-=a}},t.pad.Ansix923})}(Hn)),Hn.exports}var $n={exports:{}},a0;function Ms(){return a0||(a0=1,function(e,n){(function(t,o,a){e.exports=o(re(),Ce())})(te,function(t){return t.pad.Iso10126={pad:function(o,a){var i=a*4,l=i-o.sigBytes%i;o.concat(t.lib.WordArray.random(l-1)).concat(t.lib.WordArray.create([l<<24],1))},unpad:function(o){var a=o.words[o.sigBytes-1>>>2]&255;o.sigBytes-=a}},t.pad.Iso10126})}($n)),$n.exports}var jn={exports:{}},i0;function Fs(){return i0||(i0=1,function(e,n){(function(t,o,a){e.exports=o(re(),Ce())})(te,function(t){return t.pad.Iso97971={pad:function(o,a){o.concat(t.lib.WordArray.create([2147483648],1)),t.pad.ZeroPadding.pad(o,a)},unpad:function(o){t.pad.ZeroPadding.unpad(o),o.sigBytes--}},t.pad.Iso97971})}(jn)),jn.exports}var Un={exports:{}},s0;function Vs(){return s0||(s0=1,function(e,n){(function(t,o,a){e.exports=o(re(),Ce())})(te,function(t){return t.pad.ZeroPadding={pad:function(o,a){var i=a*4;o.clamp(),o.sigBytes+=i-(o.sigBytes%i||i)},unpad:function(o){for(var a=o.words,i=o.sigBytes-1,i=o.sigBytes-1;i>=0;i--)if(a[i>>>2]>>>24-i%4*8&255){o.sigBytes=i+1;break}}},t.pad.ZeroPadding})}(Un)),Un.exports}var Gn={exports:{}},l0;function qs(){return l0||(l0=1,function(e,n){(function(t,o,a){e.exports=o(re(),Ce())})(te,function(t){return t.pad.NoPadding={pad:function(){},unpad:function(){}},t.pad.NoPadding})}(Gn)),Gn.exports}var Wn={exports:{}},c0;function Hs(){return c0||(c0=1,function(e,n){(function(t,o,a){e.exports=o(re(),Ce())})(te,function(t){return function(o){var a=t,i=a.lib,l=i.CipherParams,s=a.enc,f=s.Hex,c=a.format;c.Hex={stringify:function(d){return d.ciphertext.toString(f)},parse:function(d){var p=f.parse(d);return l.create({ciphertext:p})}}}(),t.format.Hex})}(Wn)),Wn.exports}var Zn={exports:{}},f0;function $s(){return f0||(f0=1,function(e,n){(function(t,o,a){e.exports=o(re(),ut(),ht(),ot(),Ce())})(te,function(t){return function(){var o=t,a=o.lib,i=a.BlockCipher,l=o.algo,s=[],f=[],c=[],d=[],p=[],u=[],h=[],g=[],x=[],y=[];(function(){for(var b=[],v=0;v<256;v++)v<128?b[v]=v<<1:b[v]=v<<1^283;for(var _=0,w=0,v=0;v<256;v++){var k=w^w<<1^w<<2^w<<3^w<<4;k=k>>>8^k&255^99,s[_]=k,f[k]=_;var A=b[_],E=b[A],C=b[E],T=b[k]*257^k*16843008;c[_]=T<<24|T>>>8,d[_]=T<<16|T>>>16,p[_]=T<<8|T>>>24,u[_]=T;var T=C*16843009^E*65537^A*257^_*16843008;h[k]=T<<24|T>>>8,g[k]=T<<16|T>>>16,x[k]=T<<8|T>>>24,y[k]=T,_?(_=A^b[b[b[C^A]]],w^=b[b[w]]):_=w=1}})();var S=[0,1,2,4,8,16,32,64,128,27,54],m=l.AES=i.extend({_doReset:function(){var b;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var v=this._keyPriorReset=this._key,_=v.words,w=v.sigBytes/4,k=this._nRounds=w+6,A=(k+1)*4,E=this._keySchedule=[],C=0;C<A;C++)C<w?E[C]=_[C]:(b=E[C-1],C%w?w>6&&C%w==4&&(b=s[b>>>24]<<24|s[b>>>16&255]<<16|s[b>>>8&255]<<8|s[b&255]):(b=b<<8|b>>>24,b=s[b>>>24]<<24|s[b>>>16&255]<<16|s[b>>>8&255]<<8|s[b&255],b^=S[C/w|0]<<24),E[C]=E[C-w]^b);for(var T=this._invKeySchedule=[],R=0;R<A;R++){var C=A-R;if(R%4)var b=E[C];else var b=E[C-4];R<4||C<=4?T[R]=b:T[R]=h[s[b>>>24]]^g[s[b>>>16&255]]^x[s[b>>>8&255]]^y[s[b&255]]}}},encryptBlock:function(b,v){this._doCryptBlock(b,v,this._keySchedule,c,d,p,u,s)},decryptBlock:function(b,v){var _=b[v+1];b[v+1]=b[v+3],b[v+3]=_,this._doCryptBlock(b,v,this._invKeySchedule,h,g,x,y,f);var _=b[v+1];b[v+1]=b[v+3],b[v+3]=_},_doCryptBlock:function(b,v,_,w,k,A,E,C){for(var T=this._nRounds,R=b[v]^_[0],B=b[v+1]^_[1],F=b[v+2]^_[2],I=b[v+3]^_[3],$=4,q=1;q<T;q++){var N=w[R>>>24]^k[B>>>16&255]^A[F>>>8&255]^E[I&255]^_[$++],L=w[B>>>24]^k[F>>>16&255]^A[I>>>8&255]^E[R&255]^_[$++],H=w[F>>>24]^k[I>>>16&255]^A[R>>>8&255]^E[B&255]^_[$++],D=w[I>>>24]^k[R>>>16&255]^A[B>>>8&255]^E[F&255]^_[$++];R=N,B=L,F=H,I=D}var N=(C[R>>>24]<<24|C[B>>>16&255]<<16|C[F>>>8&255]<<8|C[I&255])^_[$++],L=(C[B>>>24]<<24|C[F>>>16&255]<<16|C[I>>>8&255]<<8|C[R&255])^_[$++],H=(C[F>>>24]<<24|C[I>>>16&255]<<16|C[R>>>8&255]<<8|C[B&255])^_[$++],D=(C[I>>>24]<<24|C[R>>>16&255]<<16|C[B>>>8&255]<<8|C[F&255])^_[$++];b[v]=N,b[v+1]=L,b[v+2]=H,b[v+3]=D},keySize:256/32});o.AES=i._createHelper(m)}(),t.AES})}(Zn)),Zn.exports}var Kn={exports:{}},d0;function js(){return d0||(d0=1,function(e,n){(function(t,o,a){e.exports=o(re(),ut(),ht(),ot(),Ce())})(te,function(t){return function(){var o=t,a=o.lib,i=a.WordArray,l=a.BlockCipher,s=o.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],d=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],p=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],u=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],h=s.DES=l.extend({_doReset:function(){for(var S=this._key,m=S.words,b=[],v=0;v<56;v++){var _=f[v]-1;b[v]=m[_>>>5]>>>31-_%32&1}for(var w=this._subKeys=[],k=0;k<16;k++){for(var A=w[k]=[],E=d[k],v=0;v<24;v++)A[v/6|0]|=b[(c[v]-1+E)%28]<<31-v%6,A[4+(v/6|0)]|=b[28+(c[v+24]-1+E)%28]<<31-v%6;A[0]=A[0]<<1|A[0]>>>31;for(var v=1;v<7;v++)A[v]=A[v]>>>(v-1)*4+3;A[7]=A[7]<<5|A[7]>>>27}for(var C=this._invSubKeys=[],v=0;v<16;v++)C[v]=w[15-v]},encryptBlock:function(S,m){this._doCryptBlock(S,m,this._subKeys)},decryptBlock:function(S,m){this._doCryptBlock(S,m,this._invSubKeys)},_doCryptBlock:function(S,m,b){this._lBlock=S[m],this._rBlock=S[m+1],g.call(this,4,252645135),g.call(this,16,65535),x.call(this,2,858993459),x.call(this,8,16711935),g.call(this,1,1431655765);for(var v=0;v<16;v++){for(var _=b[v],w=this._lBlock,k=this._rBlock,A=0,E=0;E<8;E++)A|=p[E][((k^_[E])&u[E])>>>0];this._lBlock=k,this._rBlock=w^A}var C=this._lBlock;this._lBlock=this._rBlock,this._rBlock=C,g.call(this,1,1431655765),x.call(this,8,16711935),x.call(this,2,858993459),g.call(this,16,65535),g.call(this,4,252645135),S[m]=this._lBlock,S[m+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function g(S,m){var b=(this._lBlock>>>S^this._rBlock)&m;this._rBlock^=b,this._lBlock^=b<<S}function x(S,m){var b=(this._rBlock>>>S^this._lBlock)&m;this._lBlock^=b,this._rBlock^=b<<S}o.DES=l._createHelper(h);var y=s.TripleDES=l.extend({_doReset:function(){var S=this._key,m=S.words;if(m.length!==2&&m.length!==4&&m.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var b=m.slice(0,2),v=m.length<4?m.slice(0,2):m.slice(2,4),_=m.length<6?m.slice(0,2):m.slice(4,6);this._des1=h.createEncryptor(i.create(b)),this._des2=h.createEncryptor(i.create(v)),this._des3=h.createEncryptor(i.create(_))},encryptBlock:function(S,m){this._des1.encryptBlock(S,m),this._des2.decryptBlock(S,m),this._des3.encryptBlock(S,m)},decryptBlock:function(S,m){this._des3.decryptBlock(S,m),this._des2.encryptBlock(S,m),this._des1.decryptBlock(S,m)},keySize:192/32,ivSize:64/32,blockSize:64/32});o.TripleDES=l._createHelper(y)}(),t.TripleDES})}(Kn)),Kn.exports}var Yn={exports:{}},u0;function Us(){return u0||(u0=1,function(e,n){(function(t,o,a){e.exports=o(re(),ut(),ht(),ot(),Ce())})(te,function(t){return function(){var o=t,a=o.lib,i=a.StreamCipher,l=o.algo,s=l.RC4=i.extend({_doReset:function(){for(var d=this._key,p=d.words,u=d.sigBytes,h=this._S=[],g=0;g<256;g++)h[g]=g;for(var g=0,x=0;g<256;g++){var y=g%u,S=p[y>>>2]>>>24-y%4*8&255;x=(x+h[g]+S)%256;var m=h[g];h[g]=h[x],h[x]=m}this._i=this._j=0},_doProcessBlock:function(d,p){d[p]^=f.call(this)},keySize:256/32,ivSize:0});function f(){for(var d=this._S,p=this._i,u=this._j,h=0,g=0;g<4;g++){p=(p+1)%256,u=(u+d[p])%256;var x=d[p];d[p]=d[u],d[u]=x,h|=d[(d[p]+d[u])%256]<<24-g*8}return this._i=p,this._j=u,h}o.RC4=i._createHelper(s);var c=l.RC4Drop=s.extend({cfg:s.cfg.extend({drop:192}),_doReset:function(){s._doReset.call(this);for(var d=this.cfg.drop;d>0;d--)f.call(this)}});o.RC4Drop=i._createHelper(c)}(),t.RC4})}(Yn)),Yn.exports}var Xn={exports:{}},h0;function Gs(){return h0||(h0=1,function(e,n){(function(t,o,a){e.exports=o(re(),ut(),ht(),ot(),Ce())})(te,function(t){return function(){var o=t,a=o.lib,i=a.StreamCipher,l=o.algo,s=[],f=[],c=[],d=l.Rabbit=i.extend({_doReset:function(){for(var u=this._key.words,h=this.cfg.iv,g=0;g<4;g++)u[g]=(u[g]<<8|u[g]>>>24)&16711935|(u[g]<<24|u[g]>>>8)&4278255360;var x=this._X=[u[0],u[3]<<16|u[2]>>>16,u[1],u[0]<<16|u[3]>>>16,u[2],u[1]<<16|u[0]>>>16,u[3],u[2]<<16|u[1]>>>16],y=this._C=[u[2]<<16|u[2]>>>16,u[0]&4294901760|u[1]&65535,u[3]<<16|u[3]>>>16,u[1]&4294901760|u[2]&65535,u[0]<<16|u[0]>>>16,u[2]&4294901760|u[3]&65535,u[1]<<16|u[1]>>>16,u[3]&4294901760|u[0]&65535];this._b=0;for(var g=0;g<4;g++)p.call(this);for(var g=0;g<8;g++)y[g]^=x[g+4&7];if(h){var S=h.words,m=S[0],b=S[1],v=(m<<8|m>>>24)&16711935|(m<<24|m>>>8)&4278255360,_=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360,w=v>>>16|_&4294901760,k=_<<16|v&65535;y[0]^=v,y[1]^=w,y[2]^=_,y[3]^=k,y[4]^=v,y[5]^=w,y[6]^=_,y[7]^=k;for(var g=0;g<4;g++)p.call(this)}},_doProcessBlock:function(u,h){var g=this._X;p.call(this),s[0]=g[0]^g[5]>>>16^g[3]<<16,s[1]=g[2]^g[7]>>>16^g[5]<<16,s[2]=g[4]^g[1]>>>16^g[7]<<16,s[3]=g[6]^g[3]>>>16^g[1]<<16;for(var x=0;x<4;x++)s[x]=(s[x]<<8|s[x]>>>24)&16711935|(s[x]<<24|s[x]>>>8)&4278255360,u[h+x]^=s[x]},blockSize:128/32,ivSize:64/32});function p(){for(var u=this._X,h=this._C,g=0;g<8;g++)f[g]=h[g];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 g=0;g<8;g++){var x=u[g]+h[g],y=x&65535,S=x>>>16,m=((y*y>>>17)+y*S>>>15)+S*S,b=((x&4294901760)*x|0)+((x&65535)*x|0);c[g]=m^b}u[0]=c[0]+(c[7]<<16|c[7]>>>16)+(c[6]<<16|c[6]>>>16)|0,u[1]=c[1]+(c[0]<<8|c[0]>>>24)+c[7]|0,u[2]=c[2]+(c[1]<<16|c[1]>>>16)+(c[0]<<16|c[0]>>>16)|0,u[3]=c[3]+(c[2]<<8|c[2]>>>24)+c[1]|0,u[4]=c[4]+(c[3]<<16|c[3]>>>16)+(c[2]<<16|c[2]>>>16)|0,u[5]=c[5]+(c[4]<<8|c[4]>>>24)+c[3]|0,u[6]=c[6]+(c[5]<<16|c[5]>>>16)+(c[4]<<16|c[4]>>>16)|0,u[7]=c[7]+(c[6]<<8|c[6]>>>24)+c[5]|0}o.Rabbit=i._createHelper(d)}(),t.Rabbit})}(Xn)),Xn.exports}var Jn={exports:{}},x0;function Ws(){return x0||(x0=1,function(e,n){(function(t,o,a){e.exports=o(re(),ut(),ht(),ot(),Ce())})(te,function(t){return function(){var o=t,a=o.lib,i=a.StreamCipher,l=o.algo,s=[],f=[],c=[],d=l.RabbitLegacy=i.extend({_doReset:function(){var u=this._key.words,h=this.cfg.iv,g=this._X=[u[0],u[3]<<16|u[2]>>>16,u[1],u[0]<<16|u[3]>>>16,u[2],u[1]<<16|u[0]>>>16,u[3],u[2]<<16|u[1]>>>16],x=this._C=[u[2]<<16|u[2]>>>16,u[0]&4294901760|u[1]&65535,u[3]<<16|u[3]>>>16,u[1]&4294901760|u[2]&65535,u[0]<<16|u[0]>>>16,u[2]&4294901760|u[3]&65535,u[1]<<16|u[1]>>>16,u[3]&4294901760|u[0]&65535];this._b=0;for(var y=0;y<4;y++)p.call(this);for(var y=0;y<8;y++)x[y]^=g[y+4&7];if(h){var S=h.words,m=S[0],b=S[1],v=(m<<8|m>>>24)&16711935|(m<<24|m>>>8)&4278255360,_=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360,w=v>>>16|_&4294901760,k=_<<16|v&65535;x[0]^=v,x[1]^=w,x[2]^=_,x[3]^=k,x[4]^=v,x[5]^=w,x[6]^=_,x[7]^=k;for(var y=0;y<4;y++)p.call(this)}},_doProcessBlock:function(u,h){var g=this._X;p.call(this),s[0]=g[0]^g[5]>>>16^g[3]<<16,s[1]=g[2]^g[7]>>>16^g[5]<<16,s[2]=g[4]^g[1]>>>16^g[7]<<16,s[3]=g[6]^g[3]>>>16^g[1]<<16;for(var x=0;x<4;x++)s[x]=(s[x]<<8|s[x]>>>24)&16711935|(s[x]<<24|s[x]>>>8)&4278255360,u[h+x]^=s[x]},blockSize:128/32,ivSize:64/32});function p(){for(var u=this._X,h=this._C,g=0;g<8;g++)f[g]=h[g];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 g=0;g<8;g++){var x=u[g]+h[g],y=x&65535,S=x>>>16,m=((y*y>>>17)+y*S>>>15)+S*S,b=((x&4294901760)*x|0)+((x&65535)*x|0);c[g]=m^b}u[0]=c[0]+(c[7]<<16|c[7]>>>16)+(c[6]<<16|c[6]>>>16)|0,u[1]=c[1]+(c[0]<<8|c[0]>>>24)+c[7]|0,u[2]=c[2]+(c[1]<<16|c[1]>>>16)+(c[0]<<16|c[0]>>>16)|0,u[3]=c[3]+(c[2]<<8|c[2]>>>24)+c[1]|0,u[4]=c[4]+(c[3]<<16|c[3]>>>16)+(c[2]<<16|c[2]>>>16)|0,u[5]=c[5]+(c[4]<<8|c[4]>>>24)+c[3]|0,u[6]=c[6]+(c[5]<<16|c[5]>>>16)+(c[4]<<16|c[4]>>>16)|0,u[7]=c[7]+(c[6]<<8|c[6]>>>24)+c[5]|0}o.RabbitLegacy=i._createHelper(d)}(),t.RabbitLegacy})}(Jn)),Jn.exports}(function(e,n){(function(t,o,a){e.exports=o(re(),qt(),ks(),_s(),ut(),As(),ht(),_n(),Hr(),Es(),Ur(),Ts(),Bs(),Ds(),Ln(),Rs(),ot(),Ce(),Is(),Ls(),Os(),Ns(),Ps(),zs(),Ms(),Fs(),Vs(),qs(),Hs(),$s(),js(),Us(),Gs(),Ws())})(te,function(t){return t})})(Ir);var Zs=Ir.exports;const Ie=bs(Zs);var Ks="0123456789abcdefghijklmnopqrstuvwxyz";function Ue(e){return Ks.charAt(e)}function Ys(e,n){return e&n}function Ht(e,n){return e|n}function g0(e,n){return e^n}function m0(e,n){return e&~n}function Xs(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 Js(e){for(var n=0;e!=0;)e&=e-1,++n;return n}var xt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",p0="=";function $t(e){var n,t,o="";for(n=0;n+3<=e.length;n+=3)t=parseInt(e.substring(n,n+3),16),o+=xt.charAt(t>>6)+xt.charAt(t&63);for(n+1==e.length?(t=parseInt(e.substring(n,n+1),16),o+=xt.charAt(t<<2)):n+2==e.length&&(t=parseInt(e.substring(n,n+2),16),o+=xt.charAt(t>>2)+xt.charAt((t&3)<<4));(o.length&3)>0;)o+=p0;return o}function y0(e){var n="",t,o=0,a=0;for(t=0;t<e.length&&e.charAt(t)!=p0;++t){var i=xt.indexOf(e.charAt(t));i<0||(o==0?(n+=Ue(i>>2),a=i&3,o=1):o==1?(n+=Ue(a<<2|i>>4),a=i&15,o=2):o==2?(n+=Ue(a),n+=Ue(i>>2),a=i&3,o=3):(n+=Ue(a<<2|i>>4),n+=Ue(i&15),o=0))}return o==1&&(n+=Ue(a<<2)),n}var gt,Qs={decode:function(e){var n;if(gt===void 0){var t="0123456789ABCDEF",o=` \f
72
- \r  \u2028\u2029`;for(gt={},n=0;n<16;++n)gt[t.charAt(n)]=n;for(t=t.toLowerCase(),n=10;n<16;++n)gt[t.charAt(n)]=n;for(n=0;n<o.length;++n)gt[o.charAt(n)]=-1}var a=[],i=0,l=0;for(n=0;n<e.length;++n){var s=e.charAt(n);if(s=="=")break;if(s=gt[s],s!=-1){if(s===void 0)throw new Error("Illegal character at offset "+n);i|=s,++l>=2?(a[a.length]=i,i=0,l=0):i<<=4}}if(l)throw new Error("Hex encoding incomplete: 4 bits missing");return a}},rt,Qn={decode:function(e){var n;if(rt===void 0){var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=`= \f
73
- \r  \u2028\u2029`;for(rt=Object.create(null),n=0;n<64;++n)rt[t.charAt(n)]=n;for(rt["-"]=62,rt._=63,n=0;n<o.length;++n)rt[o.charAt(n)]=-1}var a=[],i=0,l=0;for(n=0;n<e.length;++n){var s=e.charAt(n);if(s=="=")break;if(s=rt[s],s!=-1){if(s===void 0)throw new Error("Illegal character at offset "+n);i|=s,++l>=4?(a[a.length]=i>>16,a[a.length]=i>>8&255,a[a.length]=i&255,i=0,l=0):i<<=6}}switch(l){case 1:throw new Error("Base64 encoding incomplete: at least 2 bits missing");case 2:a[a.length]=i>>10;break;case 3:a[a.length]=i>>16,a[a.length]=i>>8&255;break}return a},re:/-----BEGIN [^-]+-----([A-Za-z0-9+\/=\s]+)-----END [^-]+-----|begin-base64[^\n]+\n([A-Za-z0-9+\/=\s]+)====/,unarmor:function(e){var n=Qn.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 Qn.decode(e)}},mt=1e13,Rt=function(){function e(n){this.buf=[+n||0]}return e.prototype.mulAdd=function(n,t){var o=this.buf,a=o.length,i,l;for(i=0;i<a;++i)l=o[i]*n+t,l<mt?t=0:(t=0|l/mt,l-=t*mt),o[i]=l;t>0&&(o[i]=t)},e.prototype.sub=function(n){var t=this.buf,o=t.length,a,i;for(a=0;a<o;++a)i=t[a]-n,i<0?(i+=mt,n=1):n=0,t[a]=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,o=t[t.length-1].toString(),a=t.length-2;a>=0;--a)o+=(mt+t[a]).toString().substring(1);return o},e.prototype.valueOf=function(){for(var n=this.buf,t=0,o=n.length-1;o>=0;--o)t=t*mt+n[o];return t},e.prototype.simplify=function(){var n=this.buf;return n.length==1?n[0]:this},e}(),v0="…",el=/^(\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)?)?$/,tl=/^(\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 pt(e,n){return e.length>n&&(e=e.substring(0,n)+v0),e}var eo=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,o){for(var a="",i=n;i<t;++i)if(a+=this.hexByte(this.get(i)),o!==!0)switch(i&15){case 7:a+=" ";break;case 15:a+=`
71
+ */return t.mode.CTRGladman=function(){var o=t.lib.BlockCipherMode.extend();function a(s){if((s>>24&255)===255){var f=s>>16&255,c=s>>8&255,d=s&255;f===255?(f=0,c===255?(c=0,d===255?d=0:++d):++c):++f,s=0,s+=f<<16,s+=c<<8,s+=d}else s+=1<<24;return s}function i(s){return(s[0]=a(s[0]))===0&&(s[1]=a(s[1])),s}var l=o.Encryptor=o.extend({processBlock:function(s,f){var c=this._cipher,d=c.blockSize,p=this._iv,u=this._counter;p&&(u=this._counter=p.slice(0),this._iv=void 0),i(u);var h=u.slice(0);c.encryptBlock(h,0);for(var m=0;m<d;m++)s[f+m]^=h[m]}});return o.Decryptor=l,o}(),t.mode.CTRGladman})}(Fn)),Fn.exports}var Vn={exports:{}},na;function Ns(){return na||(na=1,function(e,n){(function(t,o,a){e.exports=o(re(),we())})(te,function(t){return t.mode.OFB=function(){var o=t.lib.BlockCipherMode.extend(),a=o.Encryptor=o.extend({processBlock:function(i,l){var s=this._cipher,f=s.blockSize,c=this._iv,d=this._keystream;c&&(d=this._keystream=c.slice(0),this._iv=void 0),s.encryptBlock(d,0);for(var p=0;p<f;p++)i[l+p]^=d[p]}});return o.Decryptor=a,o}(),t.mode.OFB})}(Vn)),Vn.exports}var qn={exports:{}},oa;function Ps(){return oa||(oa=1,function(e,n){(function(t,o,a){e.exports=o(re(),we())})(te,function(t){return t.mode.ECB=function(){var o=t.lib.BlockCipherMode.extend();return o.Encryptor=o.extend({processBlock:function(a,i){this._cipher.encryptBlock(a,i)}}),o.Decryptor=o.extend({processBlock:function(a,i){this._cipher.decryptBlock(a,i)}}),o}(),t.mode.ECB})}(qn)),qn.exports}var Hn={exports:{}},ra;function zs(){return ra||(ra=1,function(e,n){(function(t,o,a){e.exports=o(re(),we())})(te,function(t){return t.pad.AnsiX923={pad:function(o,a){var i=o.sigBytes,l=a*4,s=l-i%l,f=i+s-1;o.clamp(),o.words[f>>>2]|=s<<24-f%4*8,o.sigBytes+=s},unpad:function(o){var a=o.words[o.sigBytes-1>>>2]&255;o.sigBytes-=a}},t.pad.Ansix923})}(Hn)),Hn.exports}var $n={exports:{}},aa;function Ms(){return aa||(aa=1,function(e,n){(function(t,o,a){e.exports=o(re(),we())})(te,function(t){return t.pad.Iso10126={pad:function(o,a){var i=a*4,l=i-o.sigBytes%i;o.concat(t.lib.WordArray.random(l-1)).concat(t.lib.WordArray.create([l<<24],1))},unpad:function(o){var a=o.words[o.sigBytes-1>>>2]&255;o.sigBytes-=a}},t.pad.Iso10126})}($n)),$n.exports}var jn={exports:{}},ia;function Fs(){return ia||(ia=1,function(e,n){(function(t,o,a){e.exports=o(re(),we())})(te,function(t){return t.pad.Iso97971={pad:function(o,a){o.concat(t.lib.WordArray.create([2147483648],1)),t.pad.ZeroPadding.pad(o,a)},unpad:function(o){t.pad.ZeroPadding.unpad(o),o.sigBytes--}},t.pad.Iso97971})}(jn)),jn.exports}var Un={exports:{}},sa;function Vs(){return sa||(sa=1,function(e,n){(function(t,o,a){e.exports=o(re(),we())})(te,function(t){return t.pad.ZeroPadding={pad:function(o,a){var i=a*4;o.clamp(),o.sigBytes+=i-(o.sigBytes%i||i)},unpad:function(o){for(var a=o.words,i=o.sigBytes-1,i=o.sigBytes-1;i>=0;i--)if(a[i>>>2]>>>24-i%4*8&255){o.sigBytes=i+1;break}}},t.pad.ZeroPadding})}(Un)),Un.exports}var Gn={exports:{}},la;function qs(){return la||(la=1,function(e,n){(function(t,o,a){e.exports=o(re(),we())})(te,function(t){return t.pad.NoPadding={pad:function(){},unpad:function(){}},t.pad.NoPadding})}(Gn)),Gn.exports}var Wn={exports:{}},ca;function Hs(){return ca||(ca=1,function(e,n){(function(t,o,a){e.exports=o(re(),we())})(te,function(t){return function(o){var a=t,i=a.lib,l=i.CipherParams,s=a.enc,f=s.Hex,c=a.format;c.Hex={stringify:function(d){return d.ciphertext.toString(f)},parse:function(d){var p=f.parse(d);return l.create({ciphertext:p})}}}(),t.format.Hex})}(Wn)),Wn.exports}var Zn={exports:{}},fa;function $s(){return fa||(fa=1,function(e,n){(function(t,o,a){e.exports=o(re(),ht(),xt(),ot(),we())})(te,function(t){return function(){var o=t,a=o.lib,i=a.BlockCipher,l=o.algo,s=[],f=[],c=[],d=[],p=[],u=[],h=[],m=[],g=[],y=[];(function(){for(var v=[],b=0;b<256;b++)b<128?v[b]=b<<1:v[b]=b<<1^283;for(var _=0,S=0,b=0;b<256;b++){var k=S^S<<1^S<<2^S<<3^S<<4;k=k>>>8^k&255^99,s[_]=k,f[k]=_;var A=v[_],D=v[A],w=v[D],E=v[k]*257^k*16843008;c[_]=E<<24|E>>>8,d[_]=E<<16|E>>>16,p[_]=E<<8|E>>>24,u[_]=E;var E=w*16843009^D*65537^A*257^_*16843008;h[k]=E<<24|E>>>8,m[k]=E<<16|E>>>16,g[k]=E<<8|E>>>24,y[k]=E,_?(_=A^v[v[v[w^A]]],S^=v[v[S]]):_=S=1}})();var C=[0,1,2,4,8,16,32,64,128,27,54],x=l.AES=i.extend({_doReset:function(){var v;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var b=this._keyPriorReset=this._key,_=b.words,S=b.sigBytes/4,k=this._nRounds=S+6,A=(k+1)*4,D=this._keySchedule=[],w=0;w<A;w++)w<S?D[w]=_[w]:(v=D[w-1],w%S?S>6&&w%S==4&&(v=s[v>>>24]<<24|s[v>>>16&255]<<16|s[v>>>8&255]<<8|s[v&255]):(v=v<<8|v>>>24,v=s[v>>>24]<<24|s[v>>>16&255]<<16|s[v>>>8&255]<<8|s[v&255],v^=C[w/S|0]<<24),D[w]=D[w-S]^v);for(var E=this._invKeySchedule=[],R=0;R<A;R++){var w=A-R;if(R%4)var v=D[w];else var v=D[w-4];R<4||w<=4?E[R]=v:E[R]=h[s[v>>>24]]^m[s[v>>>16&255]]^g[s[v>>>8&255]]^y[s[v&255]]}}},encryptBlock:function(v,b){this._doCryptBlock(v,b,this._keySchedule,c,d,p,u,s)},decryptBlock:function(v,b){var _=v[b+1];v[b+1]=v[b+3],v[b+3]=_,this._doCryptBlock(v,b,this._invKeySchedule,h,m,g,y,f);var _=v[b+1];v[b+1]=v[b+3],v[b+3]=_},_doCryptBlock:function(v,b,_,S,k,A,D,w){for(var E=this._nRounds,R=v[b]^_[0],I=v[b+1]^_[1],M=v[b+2]^_[2],H=v[b+3]^_[3],$=4,P=1;P<E;P++){var L=S[R>>>24]^k[I>>>16&255]^A[M>>>8&255]^D[H&255]^_[$++],O=S[I>>>24]^k[M>>>16&255]^A[H>>>8&255]^D[R&255]^_[$++],z=S[M>>>24]^k[H>>>16&255]^A[R>>>8&255]^D[I&255]^_[$++],T=S[H>>>24]^k[R>>>16&255]^A[I>>>8&255]^D[M&255]^_[$++];R=L,I=O,M=z,H=T}var L=(w[R>>>24]<<24|w[I>>>16&255]<<16|w[M>>>8&255]<<8|w[H&255])^_[$++],O=(w[I>>>24]<<24|w[M>>>16&255]<<16|w[H>>>8&255]<<8|w[R&255])^_[$++],z=(w[M>>>24]<<24|w[H>>>16&255]<<16|w[R>>>8&255]<<8|w[I&255])^_[$++],T=(w[H>>>24]<<24|w[R>>>16&255]<<16|w[I>>>8&255]<<8|w[M&255])^_[$++];v[b]=L,v[b+1]=O,v[b+2]=z,v[b+3]=T},keySize:256/32});o.AES=i._createHelper(x)}(),t.AES})}(Zn)),Zn.exports}var Kn={exports:{}},da;function js(){return da||(da=1,function(e,n){(function(t,o,a){e.exports=o(re(),ht(),xt(),ot(),we())})(te,function(t){return function(){var o=t,a=o.lib,i=a.WordArray,l=a.BlockCipher,s=o.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],d=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],p=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],u=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],h=s.DES=l.extend({_doReset:function(){for(var C=this._key,x=C.words,v=[],b=0;b<56;b++){var _=f[b]-1;v[b]=x[_>>>5]>>>31-_%32&1}for(var S=this._subKeys=[],k=0;k<16;k++){for(var A=S[k]=[],D=d[k],b=0;b<24;b++)A[b/6|0]|=v[(c[b]-1+D)%28]<<31-b%6,A[4+(b/6|0)]|=v[28+(c[b+24]-1+D)%28]<<31-b%6;A[0]=A[0]<<1|A[0]>>>31;for(var b=1;b<7;b++)A[b]=A[b]>>>(b-1)*4+3;A[7]=A[7]<<5|A[7]>>>27}for(var w=this._invSubKeys=[],b=0;b<16;b++)w[b]=S[15-b]},encryptBlock:function(C,x){this._doCryptBlock(C,x,this._subKeys)},decryptBlock:function(C,x){this._doCryptBlock(C,x,this._invSubKeys)},_doCryptBlock:function(C,x,v){this._lBlock=C[x],this._rBlock=C[x+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 b=0;b<16;b++){for(var _=v[b],S=this._lBlock,k=this._rBlock,A=0,D=0;D<8;D++)A|=p[D][((k^_[D])&u[D])>>>0];this._lBlock=k,this._rBlock=S^A}var w=this._lBlock;this._lBlock=this._rBlock,this._rBlock=w,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),C[x]=this._lBlock,C[x+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function m(C,x){var v=(this._lBlock>>>C^this._rBlock)&x;this._rBlock^=v,this._lBlock^=v<<C}function g(C,x){var v=(this._rBlock>>>C^this._lBlock)&x;this._lBlock^=v,this._rBlock^=v<<C}o.DES=l._createHelper(h);var y=s.TripleDES=l.extend({_doReset:function(){var C=this._key,x=C.words;if(x.length!==2&&x.length!==4&&x.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var v=x.slice(0,2),b=x.length<4?x.slice(0,2):x.slice(2,4),_=x.length<6?x.slice(0,2):x.slice(4,6);this._des1=h.createEncryptor(i.create(v)),this._des2=h.createEncryptor(i.create(b)),this._des3=h.createEncryptor(i.create(_))},encryptBlock:function(C,x){this._des1.encryptBlock(C,x),this._des2.decryptBlock(C,x),this._des3.encryptBlock(C,x)},decryptBlock:function(C,x){this._des3.decryptBlock(C,x),this._des2.encryptBlock(C,x),this._des1.decryptBlock(C,x)},keySize:192/32,ivSize:64/32,blockSize:64/32});o.TripleDES=l._createHelper(y)}(),t.TripleDES})}(Kn)),Kn.exports}var Yn={exports:{}},ua;function Us(){return ua||(ua=1,function(e,n){(function(t,o,a){e.exports=o(re(),ht(),xt(),ot(),we())})(te,function(t){return function(){var o=t,a=o.lib,i=a.StreamCipher,l=o.algo,s=l.RC4=i.extend({_doReset:function(){for(var d=this._key,p=d.words,u=d.sigBytes,h=this._S=[],m=0;m<256;m++)h[m]=m;for(var m=0,g=0;m<256;m++){var y=m%u,C=p[y>>>2]>>>24-y%4*8&255;g=(g+h[m]+C)%256;var x=h[m];h[m]=h[g],h[g]=x}this._i=this._j=0},_doProcessBlock:function(d,p){d[p]^=f.call(this)},keySize:256/32,ivSize:0});function f(){for(var d=this._S,p=this._i,u=this._j,h=0,m=0;m<4;m++){p=(p+1)%256,u=(u+d[p])%256;var g=d[p];d[p]=d[u],d[u]=g,h|=d[(d[p]+d[u])%256]<<24-m*8}return this._i=p,this._j=u,h}o.RC4=i._createHelper(s);var c=l.RC4Drop=s.extend({cfg:s.cfg.extend({drop:192}),_doReset:function(){s._doReset.call(this);for(var d=this.cfg.drop;d>0;d--)f.call(this)}});o.RC4Drop=i._createHelper(c)}(),t.RC4})}(Yn)),Yn.exports}var Xn={exports:{}},ha;function Gs(){return ha||(ha=1,function(e,n){(function(t,o,a){e.exports=o(re(),ht(),xt(),ot(),we())})(te,function(t){return function(){var o=t,a=o.lib,i=a.StreamCipher,l=o.algo,s=[],f=[],c=[],d=l.Rabbit=i.extend({_doReset:function(){for(var u=this._key.words,h=this.cfg.iv,m=0;m<4;m++)u[m]=(u[m]<<8|u[m]>>>24)&16711935|(u[m]<<24|u[m]>>>8)&4278255360;var g=this._X=[u[0],u[3]<<16|u[2]>>>16,u[1],u[0]<<16|u[3]>>>16,u[2],u[1]<<16|u[0]>>>16,u[3],u[2]<<16|u[1]>>>16],y=this._C=[u[2]<<16|u[2]>>>16,u[0]&4294901760|u[1]&65535,u[3]<<16|u[3]>>>16,u[1]&4294901760|u[2]&65535,u[0]<<16|u[0]>>>16,u[2]&4294901760|u[3]&65535,u[1]<<16|u[1]>>>16,u[3]&4294901760|u[0]&65535];this._b=0;for(var m=0;m<4;m++)p.call(this);for(var m=0;m<8;m++)y[m]^=g[m+4&7];if(h){var C=h.words,x=C[0],v=C[1],b=(x<<8|x>>>24)&16711935|(x<<24|x>>>8)&4278255360,_=(v<<8|v>>>24)&16711935|(v<<24|v>>>8)&4278255360,S=b>>>16|_&4294901760,k=_<<16|b&65535;y[0]^=b,y[1]^=S,y[2]^=_,y[3]^=k,y[4]^=b,y[5]^=S,y[6]^=_,y[7]^=k;for(var m=0;m<4;m++)p.call(this)}},_doProcessBlock:function(u,h){var m=this._X;p.call(this),s[0]=m[0]^m[5]>>>16^m[3]<<16,s[1]=m[2]^m[7]>>>16^m[5]<<16,s[2]=m[4]^m[1]>>>16^m[7]<<16,s[3]=m[6]^m[3]>>>16^m[1]<<16;for(var g=0;g<4;g++)s[g]=(s[g]<<8|s[g]>>>24)&16711935|(s[g]<<24|s[g]>>>8)&4278255360,u[h+g]^=s[g]},blockSize:128/32,ivSize:64/32});function p(){for(var u=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=u[m]+h[m],y=g&65535,C=g>>>16,x=((y*y>>>17)+y*C>>>15)+C*C,v=((g&4294901760)*g|0)+((g&65535)*g|0);c[m]=x^v}u[0]=c[0]+(c[7]<<16|c[7]>>>16)+(c[6]<<16|c[6]>>>16)|0,u[1]=c[1]+(c[0]<<8|c[0]>>>24)+c[7]|0,u[2]=c[2]+(c[1]<<16|c[1]>>>16)+(c[0]<<16|c[0]>>>16)|0,u[3]=c[3]+(c[2]<<8|c[2]>>>24)+c[1]|0,u[4]=c[4]+(c[3]<<16|c[3]>>>16)+(c[2]<<16|c[2]>>>16)|0,u[5]=c[5]+(c[4]<<8|c[4]>>>24)+c[3]|0,u[6]=c[6]+(c[5]<<16|c[5]>>>16)+(c[4]<<16|c[4]>>>16)|0,u[7]=c[7]+(c[6]<<8|c[6]>>>24)+c[5]|0}o.Rabbit=i._createHelper(d)}(),t.Rabbit})}(Xn)),Xn.exports}var Jn={exports:{}},xa;function Ws(){return xa||(xa=1,function(e,n){(function(t,o,a){e.exports=o(re(),ht(),xt(),ot(),we())})(te,function(t){return function(){var o=t,a=o.lib,i=a.StreamCipher,l=o.algo,s=[],f=[],c=[],d=l.RabbitLegacy=i.extend({_doReset:function(){var u=this._key.words,h=this.cfg.iv,m=this._X=[u[0],u[3]<<16|u[2]>>>16,u[1],u[0]<<16|u[3]>>>16,u[2],u[1]<<16|u[0]>>>16,u[3],u[2]<<16|u[1]>>>16],g=this._C=[u[2]<<16|u[2]>>>16,u[0]&4294901760|u[1]&65535,u[3]<<16|u[3]>>>16,u[1]&4294901760|u[2]&65535,u[0]<<16|u[0]>>>16,u[2]&4294901760|u[3]&65535,u[1]<<16|u[1]>>>16,u[3]&4294901760|u[0]&65535];this._b=0;for(var y=0;y<4;y++)p.call(this);for(var y=0;y<8;y++)g[y]^=m[y+4&7];if(h){var C=h.words,x=C[0],v=C[1],b=(x<<8|x>>>24)&16711935|(x<<24|x>>>8)&4278255360,_=(v<<8|v>>>24)&16711935|(v<<24|v>>>8)&4278255360,S=b>>>16|_&4294901760,k=_<<16|b&65535;g[0]^=b,g[1]^=S,g[2]^=_,g[3]^=k,g[4]^=b,g[5]^=S,g[6]^=_,g[7]^=k;for(var y=0;y<4;y++)p.call(this)}},_doProcessBlock:function(u,h){var m=this._X;p.call(this),s[0]=m[0]^m[5]>>>16^m[3]<<16,s[1]=m[2]^m[7]>>>16^m[5]<<16,s[2]=m[4]^m[1]>>>16^m[7]<<16,s[3]=m[6]^m[3]>>>16^m[1]<<16;for(var g=0;g<4;g++)s[g]=(s[g]<<8|s[g]>>>24)&16711935|(s[g]<<24|s[g]>>>8)&4278255360,u[h+g]^=s[g]},blockSize:128/32,ivSize:64/32});function p(){for(var u=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=u[m]+h[m],y=g&65535,C=g>>>16,x=((y*y>>>17)+y*C>>>15)+C*C,v=((g&4294901760)*g|0)+((g&65535)*g|0);c[m]=x^v}u[0]=c[0]+(c[7]<<16|c[7]>>>16)+(c[6]<<16|c[6]>>>16)|0,u[1]=c[1]+(c[0]<<8|c[0]>>>24)+c[7]|0,u[2]=c[2]+(c[1]<<16|c[1]>>>16)+(c[0]<<16|c[0]>>>16)|0,u[3]=c[3]+(c[2]<<8|c[2]>>>24)+c[1]|0,u[4]=c[4]+(c[3]<<16|c[3]>>>16)+(c[2]<<16|c[2]>>>16)|0,u[5]=c[5]+(c[4]<<8|c[4]>>>24)+c[3]|0,u[6]=c[6]+(c[5]<<16|c[5]>>>16)+(c[4]<<16|c[4]>>>16)|0,u[7]=c[7]+(c[6]<<8|c[6]>>>24)+c[5]|0}o.RabbitLegacy=i._createHelper(d)}(),t.RabbitLegacy})}(Jn)),Jn.exports}(function(e,n){(function(t,o,a){e.exports=o(re(),qt(),ks(),_s(),ht(),As(),xt(),_n(),Hr(),Es(),Ur(),Ts(),Bs(),Ds(),Ln(),Rs(),ot(),we(),Is(),Ls(),Os(),Ns(),Ps(),zs(),Ms(),Fs(),Vs(),qs(),Hs(),$s(),js(),Us(),Gs(),Ws())})(te,function(t){return t})})(Ir);var Zs=Ir.exports;const Ie=bs(Zs);var Ks="0123456789abcdefghijklmnopqrstuvwxyz";function Ue(e){return Ks.charAt(e)}function Ys(e,n){return e&n}function Ht(e,n){return e|n}function ga(e,n){return e^n}function ma(e,n){return e&~n}function Xs(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 Js(e){for(var n=0;e!=0;)e&=e-1,++n;return n}var gt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",pa="=";function $t(e){var n,t,o="";for(n=0;n+3<=e.length;n+=3)t=parseInt(e.substring(n,n+3),16),o+=gt.charAt(t>>6)+gt.charAt(t&63);for(n+1==e.length?(t=parseInt(e.substring(n,n+1),16),o+=gt.charAt(t<<2)):n+2==e.length&&(t=parseInt(e.substring(n,n+2),16),o+=gt.charAt(t>>2)+gt.charAt((t&3)<<4));(o.length&3)>0;)o+=pa;return o}function ya(e){var n="",t,o=0,a=0;for(t=0;t<e.length&&e.charAt(t)!=pa;++t){var i=gt.indexOf(e.charAt(t));i<0||(o==0?(n+=Ue(i>>2),a=i&3,o=1):o==1?(n+=Ue(a<<2|i>>4),a=i&15,o=2):o==2?(n+=Ue(a),n+=Ue(i>>2),a=i&3,o=3):(n+=Ue(a<<2|i>>4),n+=Ue(i&15),o=0))}return o==1&&(n+=Ue(a<<2)),n}var mt,Qs={decode:function(e){var n;if(mt===void 0){var t="0123456789ABCDEF",o=` \f
72
+ \r  \u2028\u2029`;for(mt={},n=0;n<16;++n)mt[t.charAt(n)]=n;for(t=t.toLowerCase(),n=10;n<16;++n)mt[t.charAt(n)]=n;for(n=0;n<o.length;++n)mt[o.charAt(n)]=-1}var a=[],i=0,l=0;for(n=0;n<e.length;++n){var s=e.charAt(n);if(s=="=")break;if(s=mt[s],s!=-1){if(s===void 0)throw new Error("Illegal character at offset "+n);i|=s,++l>=2?(a[a.length]=i,i=0,l=0):i<<=4}}if(l)throw new Error("Hex encoding incomplete: 4 bits missing");return a}},rt,Qn={decode:function(e){var n;if(rt===void 0){var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=`= \f
73
+ \r  \u2028\u2029`;for(rt=Object.create(null),n=0;n<64;++n)rt[t.charAt(n)]=n;for(rt["-"]=62,rt._=63,n=0;n<o.length;++n)rt[o.charAt(n)]=-1}var a=[],i=0,l=0;for(n=0;n<e.length;++n){var s=e.charAt(n);if(s=="=")break;if(s=rt[s],s!=-1){if(s===void 0)throw new Error("Illegal character at offset "+n);i|=s,++l>=4?(a[a.length]=i>>16,a[a.length]=i>>8&255,a[a.length]=i&255,i=0,l=0):i<<=6}}switch(l){case 1:throw new Error("Base64 encoding incomplete: at least 2 bits missing");case 2:a[a.length]=i>>10;break;case 3:a[a.length]=i>>16,a[a.length]=i>>8&255;break}return a},re:/-----BEGIN [^-]+-----([A-Za-z0-9+\/=\s]+)-----END [^-]+-----|begin-base64[^\n]+\n([A-Za-z0-9+\/=\s]+)====/,unarmor:function(e){var n=Qn.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 Qn.decode(e)}},pt=1e13,Lt=function(){function e(n){this.buf=[+n||0]}return e.prototype.mulAdd=function(n,t){var o=this.buf,a=o.length,i,l;for(i=0;i<a;++i)l=o[i]*n+t,l<pt?t=0:(t=0|l/pt,l-=t*pt),o[i]=l;t>0&&(o[i]=t)},e.prototype.sub=function(n){var t=this.buf,o=t.length,a,i;for(a=0;a<o;++a)i=t[a]-n,i<0?(i+=pt,n=1):n=0,t[a]=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,o=t[t.length-1].toString(),a=t.length-2;a>=0;--a)o+=(pt+t[a]).toString().substring(1);return o},e.prototype.valueOf=function(){for(var n=this.buf,t=0,o=n.length-1;o>=0;--o)t=t*pt+n[o];return t},e.prototype.simplify=function(){var n=this.buf;return n.length==1?n[0]:this},e}(),va="…",el=/^(\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)?)?$/,tl=/^(\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 yt(e,n){return e.length>n&&(e=e.substring(0,n)+va),e}var eo=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,o){for(var a="",i=n;i<t;++i)if(a+=this.hexByte(this.get(i)),o!==!0)switch(i&15){case 7:a+=" ";break;case 15:a+=`
74
74
  `;break;default:a+=" "}return a},e.prototype.isASCII=function(n,t){for(var o=n;o<t;++o){var a=this.get(o);if(a<32||a>176)return!1}return!0},e.prototype.parseStringISO=function(n,t){for(var o="",a=n;a<t;++a)o+=String.fromCharCode(this.get(a));return o},e.prototype.parseStringUTF=function(n,t){for(var o="",a=n;a<t;){var i=this.get(a++);i<128?o+=String.fromCharCode(i):i>191&&i<224?o+=String.fromCharCode((i&31)<<6|this.get(a++)&63):o+=String.fromCharCode((i&15)<<12|(this.get(a++)&63)<<6|this.get(a++)&63)}return o},e.prototype.parseStringBMP=function(n,t){for(var o="",a,i,l=n;l<t;)a=this.get(l++),i=this.get(l++),o+=String.fromCharCode(a<<8|i);return o},e.prototype.parseTime=function(n,t,o){var a=this.parseStringISO(n,t),i=(o?el:tl).exec(a);return i?(o&&(i[1]=+i[1],i[1]+=+i[1]<70?2e3:1900),a=i[1]+"-"+i[2]+"-"+i[3]+" "+i[4],i[5]&&(a+=":"+i[5],i[6]&&(a+=":"+i[6],i[7]&&(a+="."+i[7]))),i[8]&&(a+=" UTC",i[8]!="Z"&&(a+=i[8],i[9]&&(a+=":"+i[9]))),a):"Unrecognized time: "+a},e.prototype.parseInteger=function(n,t){for(var o=this.get(n),a=o>127,i=a?255:0,l,s="";o==i&&++n<t;)o=this.get(n);if(l=t-n,l===0)return a?-1:0;if(l>4){for(s=o,l<<=3;!((+s^i)&128);)s=+s<<1,--l;s="("+l+` bit)
75
- `}a&&(o=o-256);for(var f=new Rt(o),c=n+1;c<t;++c)f.mulAdd(256,this.get(c));return s+f.toString()},e.prototype.parseBitString=function(n,t,o){for(var a=this.get(n),i=(t-n-1<<3)-a,l="("+i+` bit)
76
- `,s="",f=n+1;f<t;++f){for(var c=this.get(f),d=f==t-1?a:0,p=7;p>=d;--p)s+=c>>p&1?"1":"0";if(s.length>o)return l+pt(s,o)}return l+s},e.prototype.parseOctetString=function(n,t,o){if(this.isASCII(n,t))return pt(this.parseStringISO(n,t),o);var a=t-n,i="("+a+` byte)
77
- `;o/=2,a>o&&(t=n+o);for(var l=n;l<t;++l)i+=this.hexByte(this.get(l));return a>o&&(i+=v0),i},e.prototype.parseOID=function(n,t,o){for(var a="",i=new Rt,l=0,s=n;s<t;++s){var f=this.get(s);if(i.mulAdd(128,f&127),l+=7,!(f&128)){if(a==="")if(i=i.simplify(),i instanceof Rt)i.sub(80),a="2."+i.toString();else{var c=i<80?i<40?0:1:2;a=c+"."+(i-c*40)}else a+="."+i.toString();if(a.length>o)return pt(a,o);i=new Rt,l=0}}return l>0&&(a+=".incomplete"),a},e}(),nl=function(){function e(n,t,o,a,i){if(!(a instanceof b0))throw new Error("Invalid tag value.");this.stream=n,this.header=t,this.length=o,this.tag=a,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(),o=Math.abs(this.length);if(!this.tag.isUniversal())return this.sub!==null?"("+this.sub.length+" elem)":this.stream.parseOctetString(t,t+o,n);switch(this.tag.tagNumber){case 1:return this.stream.get(t)===0?"false":"true";case 2:return this.stream.parseInteger(t,t+o);case 3:return this.sub?"("+this.sub.length+" elem)":this.stream.parseBitString(t,t+o,n);case 4:return this.sub?"("+this.sub.length+" elem)":this.stream.parseOctetString(t,t+o,n);case 6:return this.stream.parseOID(t,t+o,n);case 16:case 17:return this.sub!==null?"("+this.sub.length+" elem)":"(no elem)";case 12:return pt(this.stream.parseStringUTF(t,t+o),n);case 18:case 19:case 20:case 21:case 22:case 26:return pt(this.stream.parseStringISO(t,t+o),n);case 30:return pt(this.stream.parseStringBMP(t,t+o),n);case 23:case 24:return this.stream.parseTime(t,t+o,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 o=0,a=this.sub.length;o<a;++o)t+=this.sub[o].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(),o=t&127;if(o==t)return o;if(o>6)throw new Error("Length over 48 bits not supported at position "+(n.pos-1));if(o===0)return null;t=0;for(var a=0;a<o;++a)t=t*256+n.get();return t},e.prototype.getHexStringValue=function(){var n=this.toHexString(),t=this.header*2,o=this.length*2;return n.substr(t,o)},e.decode=function(n){var t;n instanceof eo?t=n:t=new eo(n,0);var o=new eo(t),a=new b0(t),i=e.decodeLength(t),l=t.pos,s=l-o.pos,f=null,c=function(){var p=[];if(i!==null){for(var u=l+i;t.pos<u;)p[p.length]=e.decode(t);if(t.pos!=u)throw new Error("Content size is not correct for container starting at offset "+l)}else try{for(;;){var h=e.decode(t);if(h.tag.isEOC())break;p[p.length]=h}i=l-t.pos}catch(g){throw new Error("Exception while decoding undefined length content: "+g)}return p};if(a.tagConstructed)f=c();else if(a.isUniversal()&&(a.tagNumber==3||a.tagNumber==4))try{if(a.tagNumber==3&&t.get()!=0)throw new Error("BIT STRINGs with unused bits cannot encapsulate.");f=c();for(var d=0;d<f.length;++d)if(f[d].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 "+l);t.pos=l+Math.abs(i)}return new e(o,s,i,a,f)},e}(),b0=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 o=new Rt;do t=n.get(),o.mulAdd(128,t&127);while(t&128);this.tagNumber=o.simplify()}}return e.prototype.isUniversal=function(){return this.tagClass===0},e.prototype.isEOC=function(){return this.tagClass===0&&this.tagNumber===0},e}(),Ke,ol=0xdeadbeefcafe,S0=(ol&16777215)==15715070,Ae=[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],rl=(1<<26)/Ae[Ae.length-1],J=function(){function e(n,t,o){n!=null&&(typeof n=="number"?this.fromNumber(n,t,o):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 o=(1<<t)-1,a,i=!1,l="",s=this.t,f=this.DB-s*this.DB%t;if(s-- >0)for(f<this.DB&&(a=this[s]>>f)>0&&(i=!0,l=Ue(a));s>=0;)f<t?(a=(this[s]&(1<<f)-1)<<t-f,a|=this[--s]>>(f+=this.DB-t)):(a=this[s]>>(f-=t)&o,f<=0&&(f+=this.DB,--s)),a>0&&(i=!0),i&&(l+=Ue(a));return i?l:"0"},e.prototype.negate=function(){var n=oe();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 o=this.t;if(t=o-n.t,t!=0)return this.s<0?-t:t;for(;--o>=0;)if((t=this[o]-n[o])!=0)return t;return 0},e.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+Ut(this[this.t-1]^this.s&this.DM)},e.prototype.mod=function(n){var t=oe();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 o;return n<256||t.isEven()?o=new w0(t):o=new C0(t),this.exp(n,o)},e.prototype.clone=function(){var n=oe();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 o=this.DB-n*this.DB%8,a,i=0;if(n-- >0)for(o<this.DB&&(a=this[n]>>o)!=(this.s&this.DM)>>o&&(t[i++]=a|this.s<<this.DB-o);n>=0;)o<8?(a=(this[n]&(1<<o)-1)<<8-o,a|=this[--n]>>(o+=this.DB-8)):(a=this[n]>>(o-=8)&255,o<=0&&(o+=this.DB,--n)),a&128&&(a|=-256),i==0&&(this.s&128)!=(a&128)&&++i,(i>0||a!=this.s)&&(t[i++]=a);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=oe();return this.bitwiseTo(n,Ys,t),t},e.prototype.or=function(n){var t=oe();return this.bitwiseTo(n,Ht,t),t},e.prototype.xor=function(n){var t=oe();return this.bitwiseTo(n,g0,t),t},e.prototype.andNot=function(n){var t=oe();return this.bitwiseTo(n,m0,t),t},e.prototype.not=function(){for(var n=oe(),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=oe();return n<0?this.rShiftTo(-n,t):this.lShiftTo(n,t),t},e.prototype.shiftRight=function(n){var t=oe();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+Xs(this[n]);return this.s<0?this.t*this.DB:-1},e.prototype.bitCount=function(){for(var n=0,t=this.s&this.DM,o=0;o<this.t;++o)n+=Js(this[o]^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,Ht)},e.prototype.clearBit=function(n){return this.changeBit(n,m0)},e.prototype.flipBit=function(n){return this.changeBit(n,g0)},e.prototype.add=function(n){var t=oe();return this.addTo(n,t),t},e.prototype.subtract=function(n){var t=oe();return this.subTo(n,t),t},e.prototype.multiply=function(n){var t=oe();return this.multiplyTo(n,t),t},e.prototype.divide=function(n){var t=oe();return this.divRemTo(n,t,null),t},e.prototype.remainder=function(n){var t=oe();return this.divRemTo(n,null,t),t},e.prototype.divideAndRemainder=function(n){var t=oe(),o=oe();return this.divRemTo(n,t,o),[t,o]},e.prototype.modPow=function(n,t){var o=n.bitLength(),a,i=Ye(1),l;if(o<=0)return i;o<18?a=1:o<48?a=3:o<144?a=4:o<768?a=5:a=6,o<8?l=new w0(t):t.isEven()?l=new il(t):l=new C0(t);var s=[],f=3,c=a-1,d=(1<<a)-1;if(s[1]=l.convert(this),a>1){var p=oe();for(l.sqrTo(s[1],p);f<=d;)s[f]=oe(),l.mulTo(p,s[f-2],s[f]),f+=2}var u=n.t-1,h,g=!0,x=oe(),y;for(o=Ut(n[u])-1;u>=0;){for(o>=c?h=n[u]>>o-c&d:(h=(n[u]&(1<<o+1)-1)<<c-o,u>0&&(h|=n[u-1]>>this.DB+o-c)),f=a;!(h&1);)h>>=1,--f;if((o-=f)<0&&(o+=this.DB,--u),g)s[h].copyTo(i),g=!1;else{for(;f>1;)l.sqrTo(i,x),l.sqrTo(x,i),f-=2;f>0?l.sqrTo(i,x):(y=i,i=x,x=y),l.mulTo(x,s[h],i)}for(;u>=0&&!(n[u]&1<<o);)l.sqrTo(i,x),y=i,i=x,x=y,--o<0&&(o=this.DB-1,--u)}return l.revert(i)},e.prototype.modInverse=function(n){var t=n.isEven();if(this.isEven()&&t||n.signum()==0)return e.ZERO;for(var o=n.clone(),a=this.clone(),i=Ye(1),l=Ye(0),s=Ye(0),f=Ye(1);o.signum()!=0;){for(;o.isEven();)o.rShiftTo(1,o),t?((!i.isEven()||!l.isEven())&&(i.addTo(this,i),l.subTo(n,l)),i.rShiftTo(1,i)):l.isEven()||l.subTo(n,l),l.rShiftTo(1,l);for(;a.isEven();)a.rShiftTo(1,a),t?((!s.isEven()||!f.isEven())&&(s.addTo(this,s),f.subTo(n,f)),s.rShiftTo(1,s)):f.isEven()||f.subTo(n,f),f.rShiftTo(1,f);o.compareTo(a)>=0?(o.subTo(a,o),t&&i.subTo(s,i),l.subTo(f,l)):(a.subTo(o,a),t&&s.subTo(i,s),f.subTo(l,f))}if(a.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 al)},e.prototype.gcd=function(n){var t=this.s<0?this.negate():this.clone(),o=n.s<0?n.negate():n.clone();if(t.compareTo(o)<0){var a=t;t=o,o=a}var i=t.getLowestSetBit(),l=o.getLowestSetBit();if(l<0)return t;for(i<l&&(l=i),l>0&&(t.rShiftTo(l,t),o.rShiftTo(l,o));t.signum()>0;)(i=t.getLowestSetBit())>0&&t.rShiftTo(i,t),(i=o.getLowestSetBit())>0&&o.rShiftTo(i,o),t.compareTo(o)>=0?(t.subTo(o,t),t.rShiftTo(1,t)):(o.subTo(t,o),o.rShiftTo(1,o));return l>0&&o.lShiftTo(l,o),o},e.prototype.isProbablePrime=function(n){var t,o=this.abs();if(o.t==1&&o[0]<=Ae[Ae.length-1]){for(t=0;t<Ae.length;++t)if(o[0]==Ae[t])return!0;return!1}if(o.isEven())return!1;for(t=1;t<Ae.length;){for(var a=Ae[t],i=t+1;i<Ae.length&&a<rl;)a*=Ae[i++];for(a=o.modInt(a);t<i;)if(a%Ae[t++]==0)return!1}return o.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 o;if(t==16)o=4;else if(t==8)o=3;else if(t==256)o=8;else if(t==2)o=1;else if(t==32)o=5;else if(t==4)o=2;else{this.fromRadix(n,t);return}this.t=0,this.s=0;for(var a=n.length,i=!1,l=0;--a>=0;){var s=o==8?+n[a]&255:_0(n,a);if(s<0){n.charAt(a)=="-"&&(i=!0);continue}i=!1,l==0?this[this.t++]=s:l+o>this.DB?(this[this.t-1]|=(s&(1<<this.DB-l)-1)<<l,this[this.t++]=s>>this.DB-l):this[this.t-1]|=s<<l,l+=o,l>=this.DB&&(l-=this.DB)}o==8&&+n[0]&128&&(this.s=-1,l>0&&(this[this.t-1]|=(1<<this.DB-l)-1<<l)),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 o;for(o=this.t-1;o>=0;--o)t[o+n]=this[o];for(o=n-1;o>=0;--o)t[o]=0;t.t=this.t+n,t.s=this.s},e.prototype.drShiftTo=function(n,t){for(var o=n;o<this.t;++o)t[o-n]=this[o];t.t=Math.max(this.t-n,0),t.s=this.s},e.prototype.lShiftTo=function(n,t){for(var o=n%this.DB,a=this.DB-o,i=(1<<a)-1,l=Math.floor(n/this.DB),s=this.s<<o&this.DM,f=this.t-1;f>=0;--f)t[f+l+1]=this[f]>>a|s,s=(this[f]&i)<<o;for(var f=l-1;f>=0;--f)t[f]=0;t[l]=s,t.t=this.t+l+1,t.s=this.s,t.clamp()},e.prototype.rShiftTo=function(n,t){t.s=this.s;var o=Math.floor(n/this.DB);if(o>=this.t){t.t=0;return}var a=n%this.DB,i=this.DB-a,l=(1<<a)-1;t[0]=this[o]>>a;for(var s=o+1;s<this.t;++s)t[s-o-1]|=(this[s]&l)<<i,t[s-o]=this[s]>>a;a>0&&(t[this.t-o-1]|=(this.s&l)<<i),t.t=this.t-o,t.clamp()},e.prototype.subTo=function(n,t){for(var o=0,a=0,i=Math.min(n.t,this.t);o<i;)a+=this[o]-n[o],t[o++]=a&this.DM,a>>=this.DB;if(n.t<this.t){for(a-=n.s;o<this.t;)a+=this[o],t[o++]=a&this.DM,a>>=this.DB;a+=this.s}else{for(a+=this.s;o<n.t;)a-=n[o],t[o++]=a&this.DM,a>>=this.DB;a-=n.s}t.s=a<0?-1:0,a<-1?t[o++]=this.DV+a:a>0&&(t[o++]=a),t.t=o,t.clamp()},e.prototype.multiplyTo=function(n,t){var o=this.abs(),a=n.abs(),i=o.t;for(t.t=i+a.t;--i>=0;)t[i]=0;for(i=0;i<a.t;++i)t[i+o.t]=o.am(0,a[i],t,i,0,o.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(),o=n.t=2*t.t;--o>=0;)n[o]=0;for(o=0;o<t.t-1;++o){var a=t.am(o,t[o],n,2*o,0,1);(n[o+t.t]+=t.am(o+1,2*t[o],n,2*o+1,a,t.t-o-1))>=t.DV&&(n[o+t.t]-=t.DV,n[o+t.t+1]=1)}n.t>0&&(n[n.t-1]+=t.am(o,t[o],n,2*o,0,1)),n.s=0,n.clamp()},e.prototype.divRemTo=function(n,t,o){var a=n.abs();if(!(a.t<=0)){var i=this.abs();if(i.t<a.t){t!=null&&t.fromInt(0),o!=null&&this.copyTo(o);return}o==null&&(o=oe());var l=oe(),s=this.s,f=n.s,c=this.DB-Ut(a[a.t-1]);c>0?(a.lShiftTo(c,l),i.lShiftTo(c,o)):(a.copyTo(l),i.copyTo(o));var d=l.t,p=l[d-1];if(p!=0){var u=p*(1<<this.F1)+(d>1?l[d-2]>>this.F2:0),h=this.FV/u,g=(1<<this.F1)/u,x=1<<this.F2,y=o.t,S=y-d,m=t??oe();for(l.dlShiftTo(S,m),o.compareTo(m)>=0&&(o[o.t++]=1,o.subTo(m,o)),e.ONE.dlShiftTo(d,m),m.subTo(l,l);l.t<d;)l[l.t++]=0;for(;--S>=0;){var b=o[--y]==p?this.DM:Math.floor(o[y]*h+(o[y-1]+x)*g);if((o[y]+=l.am(0,b,o,S,0,d))<b)for(l.dlShiftTo(S,m),o.subTo(m,o);o[y]<--b;)o.subTo(m,o)}t!=null&&(o.drShiftTo(d,t),s!=f&&e.ZERO.subTo(t,t)),o.t=d,o.clamp(),c>0&&o.rShiftTo(c,o),s<0&&e.ZERO.subTo(o,o)}}},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 o=oe(),a=oe(),i=t.convert(this),l=Ut(n)-1;for(i.copyTo(o);--l>=0;)if(t.sqrTo(o,a),(n&1<<l)>0)t.mulTo(a,i,o);else{var s=o;o=a,a=s}return t.revert(o)},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),o=Math.pow(n,t),a=Ye(o),i=oe(),l=oe(),s="";for(this.divRemTo(a,i,l);i.signum()>0;)s=(o+l.intValue()).toString(n).substr(1)+s,i.divRemTo(a,i,l);return l.intValue().toString(n)+s},e.prototype.fromRadix=function(n,t){this.fromInt(0),t==null&&(t=10);for(var o=this.chunkSize(t),a=Math.pow(t,o),i=!1,l=0,s=0,f=0;f<n.length;++f){var c=_0(n,f);if(c<0){n.charAt(f)=="-"&&this.signum()==0&&(i=!0);continue}s=t*s+c,++l>=o&&(this.dMultiply(a),this.dAddOffset(s,0),l=0,s=0)}l>0&&(this.dMultiply(Math.pow(t,l)),this.dAddOffset(s,0)),i&&e.ZERO.subTo(this,this)},e.prototype.fromNumber=function(n,t,o){if(typeof t=="number")if(n<2)this.fromInt(1);else for(this.fromNumber(n,o),this.testBit(n-1)||this.bitwiseTo(e.ONE.shiftLeft(n-1),Ht,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 a=[],i=n&7;a.length=(n>>3)+1,t.nextBytes(a),i>0?a[0]&=(1<<i)-1:a[0]=0,this.fromString(a,256)}},e.prototype.bitwiseTo=function(n,t,o){var a,i,l=Math.min(n.t,this.t);for(a=0;a<l;++a)o[a]=t(this[a],n[a]);if(n.t<this.t){for(i=n.s&this.DM,a=l;a<this.t;++a)o[a]=t(this[a],i);o.t=this.t}else{for(i=this.s&this.DM,a=l;a<n.t;++a)o[a]=t(i,n[a]);o.t=n.t}o.s=t(this.s,n.s),o.clamp()},e.prototype.changeBit=function(n,t){var o=e.ONE.shiftLeft(n);return this.bitwiseTo(o,t,o),o},e.prototype.addTo=function(n,t){for(var o=0,a=0,i=Math.min(n.t,this.t);o<i;)a+=this[o]+n[o],t[o++]=a&this.DM,a>>=this.DB;if(n.t<this.t){for(a+=n.s;o<this.t;)a+=this[o],t[o++]=a&this.DM,a>>=this.DB;a+=this.s}else{for(a+=this.s;o<n.t;)a+=n[o],t[o++]=a&this.DM,a>>=this.DB;a+=n.s}t.s=a<0?-1:0,a>0?t[o++]=a:a<-1&&(t[o++]=this.DV+a),t.t=o,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,o){var a=Math.min(this.t+n.t,t);for(o.s=0,o.t=a;a>0;)o[--a]=0;for(var i=o.t-this.t;a<i;++a)o[a+this.t]=this.am(0,n[a],o,a,0,this.t);for(var i=Math.min(n.t,t);a<i;++a)this.am(0,n[a],o,a,0,t-a);o.clamp()},e.prototype.multiplyUpperTo=function(n,t,o){--t;var a=o.t=this.t+n.t-t;for(o.s=0;--a>=0;)o[a]=0;for(a=Math.max(t-this.t,0);a<n.t;++a)o[this.t+a-t]=this.am(t-a,n[a],o,0,0,this.t+a-t);o.clamp(),o.drShiftTo(1,o)},e.prototype.modInt=function(n){if(n<=0)return 0;var t=this.DV%n,o=this.s<0?n-1:0;if(this.t>0)if(t==0)o=this[0]%n;else for(var a=this.t-1;a>=0;--a)o=(t*o+this[a])%n;return o},e.prototype.millerRabin=function(n){var t=this.subtract(e.ONE),o=t.getLowestSetBit();if(o<=0)return!1;var a=t.shiftRight(o);n=n+1>>1,n>Ae.length&&(n=Ae.length);for(var i=oe(),l=0;l<n;++l){i.fromInt(Ae[Math.floor(Math.random()*Ae.length)]);var s=i.modPow(a,this);if(s.compareTo(e.ONE)!=0&&s.compareTo(t)!=0){for(var f=1;f++<o&&s.compareTo(t)!=0;)if(s=s.modPowInt(2,this),s.compareTo(e.ONE)==0)return!1;if(s.compareTo(t)!=0)return!1}}return!0},e.prototype.square=function(){var n=oe();return this.squareTo(n),n},e.prototype.gcda=function(n,t){var o=this.s<0?this.negate():this.clone(),a=n.s<0?n.negate():n.clone();if(o.compareTo(a)<0){var i=o;o=a,a=i}var l=o.getLowestSetBit(),s=a.getLowestSetBit();if(s<0){t(o);return}l<s&&(s=l),s>0&&(o.rShiftTo(s,o),a.rShiftTo(s,a));var f=function(){(l=o.getLowestSetBit())>0&&o.rShiftTo(l,o),(l=a.getLowestSetBit())>0&&a.rShiftTo(l,a),o.compareTo(a)>=0?(o.subTo(a,o),o.rShiftTo(1,o)):(a.subTo(o,a),a.rShiftTo(1,a)),o.signum()>0?setTimeout(f,0):(s>0&&a.lShiftTo(s,a),setTimeout(function(){t(a)},0))};setTimeout(f,10)},e.prototype.fromNumberAsync=function(n,t,o,a){if(typeof t=="number")if(n<2)this.fromInt(1);else{this.fromNumber(n,o),this.testBit(n-1)||this.bitwiseTo(e.ONE.shiftLeft(n-1),Ht,this),this.isEven()&&this.dAddOffset(1,0);var i=this,l=function(){i.dAddOffset(2,0),i.bitLength()>n&&i.subTo(e.ONE.shiftLeft(n-1),i),i.isProbablePrime(t)?setTimeout(function(){a()},0):setTimeout(l,0)};setTimeout(l,0)}else{var s=[],f=n&7;s.length=(n>>3)+1,t.nextBytes(s),f>0?s[0]&=(1<<f)-1:s[0]=0,this.fromString(s,256)}},e}(),al=function(){function e(){}return e.prototype.convert=function(n){return n},e.prototype.revert=function(n){return n},e.prototype.mulTo=function(n,t,o){n.multiplyTo(t,o)},e.prototype.sqrTo=function(n,t){n.squareTo(t)},e}(),w0=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,o){n.multiplyTo(t,o),this.reduce(o)},e.prototype.sqrTo=function(n,t){n.squareTo(t),this.reduce(t)},e}(),C0=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=oe();return n.abs().dlShiftTo(this.m.t,t),t.divRemTo(this.m,null,t),n.s<0&&t.compareTo(J.ZERO)>0&&this.m.subTo(t,t),t},e.prototype.revert=function(n){var t=oe();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 o=n[t]&32767,a=o*this.mpl+((o*this.mph+(n[t]>>15)*this.mpl&this.um)<<15)&n.DM;for(o=t+this.m.t,n[o]+=this.m.am(0,a,n,t,0,this.m.t);n[o]>=n.DV;)n[o]-=n.DV,n[++o]++}n.clamp(),n.drShiftTo(this.m.t,n),n.compareTo(this.m)>=0&&n.subTo(this.m,n)},e.prototype.mulTo=function(n,t,o){n.multiplyTo(t,o),this.reduce(o)},e.prototype.sqrTo=function(n,t){n.squareTo(t),this.reduce(t)},e}(),il=function(){function e(n){this.m=n,this.r2=oe(),this.q3=oe(),J.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=oe();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,o){n.multiplyTo(t,o),this.reduce(o)},e.prototype.sqrTo=function(n,t){n.squareTo(t),this.reduce(t)},e}();function oe(){return new J(null)}function ge(e,n){return new J(e,n)}var k0=typeof navigator<"u";k0&&S0&&navigator.appName=="Microsoft Internet Explorer"?(J.prototype.am=function(n,t,o,a,i,l){for(var s=t&32767,f=t>>15;--l>=0;){var c=this[n]&32767,d=this[n++]>>15,p=f*c+d*s;c=s*c+((p&32767)<<15)+o[a]+(i&1073741823),i=(c>>>30)+(p>>>15)+f*d+(i>>>30),o[a++]=c&1073741823}return i},Ke=30):k0&&S0&&navigator.appName!="Netscape"?(J.prototype.am=function(n,t,o,a,i,l){for(;--l>=0;){var s=t*this[n++]+o[a]+i;i=Math.floor(s/67108864),o[a++]=s&67108863}return i},Ke=26):(J.prototype.am=function(n,t,o,a,i,l){for(var s=t&16383,f=t>>14;--l>=0;){var c=this[n]&16383,d=this[n++]>>14,p=f*c+d*s;c=s*c+((p&16383)<<14)+o[a]+i,i=(c>>28)+(p>>14)+f*d,o[a++]=c&268435455}return i},Ke=28),J.prototype.DB=Ke,J.prototype.DM=(1<<Ke)-1,J.prototype.DV=1<<Ke;var to=52;J.prototype.FV=Math.pow(2,to),J.prototype.F1=to-Ke,J.prototype.F2=2*Ke-to;var jt=[],yt,Pe;for(yt="0".charCodeAt(0),Pe=0;Pe<=9;++Pe)jt[yt++]=Pe;for(yt="a".charCodeAt(0),Pe=10;Pe<36;++Pe)jt[yt++]=Pe;for(yt="A".charCodeAt(0),Pe=10;Pe<36;++Pe)jt[yt++]=Pe;function _0(e,n){var t=jt[e.charCodeAt(n)];return t??-1}function Ye(e){var n=oe();return n.fromInt(e),n}function Ut(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}J.ZERO=Ye(0),J.ONE=Ye(1);var sl=function(){function e(){this.i=0,this.j=0,this.S=[]}return e.prototype.init=function(n){var t,o,a;for(t=0;t<256;++t)this.S[t]=t;for(o=0,t=0;t<256;++t)o=o+this.S[t]+n[t%n.length]&255,a=this.S[t],this.S[t]=this.S[o],this.S[o]=a;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 ll(){return new sl}var A0=256,Gt,Xe=null,Fe;if(Xe==null){Xe=[],Fe=0;var Wt=void 0;if(typeof window<"u"&&window.crypto&&window.crypto.getRandomValues){var no=new Uint32Array(256);for(window.crypto.getRandomValues(no),Wt=0;Wt<no.length;++Wt)Xe[Fe++]=no[Wt]&255}var Zt=0,Kt=function(e){if(Zt=Zt||0,Zt>=256||Fe>=A0){window.removeEventListener?window.removeEventListener("mousemove",Kt,!1):window.detachEvent&&window.detachEvent("onmousemove",Kt);return}try{var n=e.x+e.y;Xe[Fe++]=n&255,Zt+=1}catch{}};typeof window<"u"&&(window.addEventListener?window.addEventListener("mousemove",Kt,!1):window.attachEvent&&window.attachEvent("onmousemove",Kt))}function cl(){if(Gt==null){for(Gt=ll();Fe<A0;){var e=Math.floor(65536*Math.random());Xe[Fe++]=e&255}for(Gt.init(Xe),Fe=0;Fe<Xe.length;++Fe)Xe[Fe]=0;Fe=0}return Gt.next()}var oo=function(){function e(){}return e.prototype.nextBytes=function(n){for(var t=0;t<n.length;++t)n[t]=cl()},e}();function fl(e,n){if(n<e.length+22)return console.error("Message too long for RSA"),null;for(var t=n-e.length-6,o="",a=0;a<t;a+=2)o+="ff";var i="0001"+o+"00"+e;return ge(i,16)}function dl(e,n){if(n<e.length+11)return console.error("Message too long for RSA"),null;for(var t=[],o=e.length-1;o>=0&&n>0;){var a=e.charCodeAt(o--);a<128?t[--n]=a:a>127&&a<2048?(t[--n]=a&63|128,t[--n]=a>>6|192):(t[--n]=a&63|128,t[--n]=a>>6&63|128,t[--n]=a>>12|224)}t[--n]=0;for(var i=new oo,l=[];n>2;){for(l[0]=0;l[0]==0;)i.nextBytes(l);t[--n]=l[0]}return t[--n]=2,t[--n]=0,new J(t)}var ul=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),o=n.mod(this.q).modPow(this.dmq1,this.q);t.compareTo(o)<0;)t=t.add(this.p);return t.subtract(o).multiply(this.coeff).mod(this.p).multiply(this.q).add(o)},e.prototype.setPublic=function(n,t){n!=null&&t!=null&&n.length>0&&t.length>0?(this.n=ge(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,o=dl(n,t);if(o==null)return null;var a=this.doPublic(o);if(a==null)return null;for(var i=a.toString(16),l=i.length,s=0;s<t*2-l;s++)i="0"+i;return i},e.prototype.setPrivate=function(n,t,o){n!=null&&t!=null&&n.length>0&&t.length>0?(this.n=ge(n,16),this.e=parseInt(t,16),this.d=ge(o,16)):console.error("Invalid RSA private key")},e.prototype.setPrivateEx=function(n,t,o,a,i,l,s,f){n!=null&&t!=null&&n.length>0&&t.length>0?(this.n=ge(n,16),this.e=parseInt(t,16),this.d=ge(o,16),this.p=ge(a,16),this.q=ge(i,16),this.dmp1=ge(l,16),this.dmq1=ge(s,16),this.coeff=ge(f,16)):console.error("Invalid RSA private key")},e.prototype.generate=function(n,t){var o=new oo,a=n>>1;this.e=parseInt(t,16);for(var i=new J(t,16);;){for(;this.p=new J(n-a,1,o),!(this.p.subtract(J.ONE).gcd(i).compareTo(J.ONE)==0&&this.p.isProbablePrime(10)););for(;this.q=new J(a,1,o),!(this.q.subtract(J.ONE).gcd(i).compareTo(J.ONE)==0&&this.q.isProbablePrime(10)););if(this.p.compareTo(this.q)<=0){var l=this.p;this.p=this.q,this.q=l}var s=this.p.subtract(J.ONE),f=this.q.subtract(J.ONE),c=s.multiply(f);if(c.gcd(i).compareTo(J.ONE)==0){this.n=this.p.multiply(this.q),this.d=i.modInverse(c),this.dmp1=this.d.mod(s),this.dmq1=this.d.mod(f),this.coeff=this.q.modInverse(this.p);break}}},e.prototype.decrypt=function(n){var t=ge(n,16),o=this.doPrivate(t);return o==null?null:hl(o,this.n.bitLength()+7>>3)},e.prototype.generateAsync=function(n,t,o){var a=new oo,i=n>>1;this.e=parseInt(t,16);var l=new J(t,16),s=this,f=function(){var c=function(){if(s.p.compareTo(s.q)<=0){var u=s.p;s.p=s.q,s.q=u}var h=s.p.subtract(J.ONE),g=s.q.subtract(J.ONE),x=h.multiply(g);x.gcd(l).compareTo(J.ONE)==0?(s.n=s.p.multiply(s.q),s.d=l.modInverse(x),s.dmp1=s.d.mod(h),s.dmq1=s.d.mod(g),s.coeff=s.q.modInverse(s.p),setTimeout(function(){o()},0)):setTimeout(f,0)},d=function(){s.q=oe(),s.q.fromNumberAsync(i,1,a,function(){s.q.subtract(J.ONE).gcda(l,function(u){u.compareTo(J.ONE)==0&&s.q.isProbablePrime(10)?setTimeout(c,0):setTimeout(d,0)})})},p=function(){s.p=oe(),s.p.fromNumberAsync(n-i,1,a,function(){s.p.subtract(J.ONE).gcda(l,function(u){u.compareTo(J.ONE)==0&&s.p.isProbablePrime(10)?setTimeout(d,0):setTimeout(p,0)})})};setTimeout(p,0)};setTimeout(f,0)},e.prototype.sign=function(n,t,o){var a=xl(o),i=a+t(n).toString(),l=fl(i,this.n.bitLength()/4);if(l==null)return null;var s=this.doPrivate(l);if(s==null)return null;var f=s.toString(16);return f.length&1?"0"+f:f},e.prototype.verify=function(n,t,o){var a=ge(t,16),i=this.doPublic(a);if(i==null)return null;var l=i.toString(16).replace(/^1f+00/,""),s=gl(l);return s==o(n).toString()},e}();function hl(e,n){for(var t=e.toByteArray(),o=0;o<t.length&&t[o]==0;)++o;if(t.length-o!=n-1||t[o]!=2)return null;for(++o;t[o]!=0;)if(++o>=t.length)return null;for(var a="";++o<t.length;){var i=t[o]&255;i<128?a+=String.fromCharCode(i):i>191&&i<224?(a+=String.fromCharCode((i&31)<<6|t[o+1]&63),++o):(a+=String.fromCharCode((i&15)<<12|(t[o+1]&63)<<6|t[o+2]&63),o+=2)}return a}var Yt={md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",ripemd160:"3021300906052b2403020105000414"};function xl(e){return Yt[e]||""}function gl(e){for(var n in Yt)if(Yt.hasOwnProperty(n)){var t=Yt[n],o=t.length;if(e.substr(0,o)==t)return e.substr(o)}return e}/*!
75
+ `}a&&(o=o-256);for(var f=new Lt(o),c=n+1;c<t;++c)f.mulAdd(256,this.get(c));return s+f.toString()},e.prototype.parseBitString=function(n,t,o){for(var a=this.get(n),i=(t-n-1<<3)-a,l="("+i+` bit)
76
+ `,s="",f=n+1;f<t;++f){for(var c=this.get(f),d=f==t-1?a:0,p=7;p>=d;--p)s+=c>>p&1?"1":"0";if(s.length>o)return l+yt(s,o)}return l+s},e.prototype.parseOctetString=function(n,t,o){if(this.isASCII(n,t))return yt(this.parseStringISO(n,t),o);var a=t-n,i="("+a+` byte)
77
+ `;o/=2,a>o&&(t=n+o);for(var l=n;l<t;++l)i+=this.hexByte(this.get(l));return a>o&&(i+=va),i},e.prototype.parseOID=function(n,t,o){for(var a="",i=new Lt,l=0,s=n;s<t;++s){var f=this.get(s);if(i.mulAdd(128,f&127),l+=7,!(f&128)){if(a==="")if(i=i.simplify(),i instanceof Lt)i.sub(80),a="2."+i.toString();else{var c=i<80?i<40?0:1:2;a=c+"."+(i-c*40)}else a+="."+i.toString();if(a.length>o)return yt(a,o);i=new Lt,l=0}}return l>0&&(a+=".incomplete"),a},e}(),nl=function(){function e(n,t,o,a,i){if(!(a instanceof ba))throw new Error("Invalid tag value.");this.stream=n,this.header=t,this.length=o,this.tag=a,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(),o=Math.abs(this.length);if(!this.tag.isUniversal())return this.sub!==null?"("+this.sub.length+" elem)":this.stream.parseOctetString(t,t+o,n);switch(this.tag.tagNumber){case 1:return this.stream.get(t)===0?"false":"true";case 2:return this.stream.parseInteger(t,t+o);case 3:return this.sub?"("+this.sub.length+" elem)":this.stream.parseBitString(t,t+o,n);case 4:return this.sub?"("+this.sub.length+" elem)":this.stream.parseOctetString(t,t+o,n);case 6:return this.stream.parseOID(t,t+o,n);case 16:case 17:return this.sub!==null?"("+this.sub.length+" elem)":"(no elem)";case 12:return yt(this.stream.parseStringUTF(t,t+o),n);case 18:case 19:case 20:case 21:case 22:case 26:return yt(this.stream.parseStringISO(t,t+o),n);case 30:return yt(this.stream.parseStringBMP(t,t+o),n);case 23:case 24:return this.stream.parseTime(t,t+o,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 o=0,a=this.sub.length;o<a;++o)t+=this.sub[o].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(),o=t&127;if(o==t)return o;if(o>6)throw new Error("Length over 48 bits not supported at position "+(n.pos-1));if(o===0)return null;t=0;for(var a=0;a<o;++a)t=t*256+n.get();return t},e.prototype.getHexStringValue=function(){var n=this.toHexString(),t=this.header*2,o=this.length*2;return n.substr(t,o)},e.decode=function(n){var t;n instanceof eo?t=n:t=new eo(n,0);var o=new eo(t),a=new ba(t),i=e.decodeLength(t),l=t.pos,s=l-o.pos,f=null,c=function(){var p=[];if(i!==null){for(var u=l+i;t.pos<u;)p[p.length]=e.decode(t);if(t.pos!=u)throw new Error("Content size is not correct for container starting at offset "+l)}else try{for(;;){var h=e.decode(t);if(h.tag.isEOC())break;p[p.length]=h}i=l-t.pos}catch(m){throw new Error("Exception while decoding undefined length content: "+m)}return p};if(a.tagConstructed)f=c();else if(a.isUniversal()&&(a.tagNumber==3||a.tagNumber==4))try{if(a.tagNumber==3&&t.get()!=0)throw new Error("BIT STRINGs with unused bits cannot encapsulate.");f=c();for(var d=0;d<f.length;++d)if(f[d].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 "+l);t.pos=l+Math.abs(i)}return new e(o,s,i,a,f)},e}(),ba=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 o=new Lt;do t=n.get(),o.mulAdd(128,t&127);while(t&128);this.tagNumber=o.simplify()}}return e.prototype.isUniversal=function(){return this.tagClass===0},e.prototype.isEOC=function(){return this.tagClass===0&&this.tagNumber===0},e}(),Ye,ol=0xdeadbeefcafe,Sa=(ol&16777215)==15715070,Ae=[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],rl=(1<<26)/Ae[Ae.length-1],Q=function(){function e(n,t,o){n!=null&&(typeof n=="number"?this.fromNumber(n,t,o):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 o=(1<<t)-1,a,i=!1,l="",s=this.t,f=this.DB-s*this.DB%t;if(s-- >0)for(f<this.DB&&(a=this[s]>>f)>0&&(i=!0,l=Ue(a));s>=0;)f<t?(a=(this[s]&(1<<f)-1)<<t-f,a|=this[--s]>>(f+=this.DB-t)):(a=this[s]>>(f-=t)&o,f<=0&&(f+=this.DB,--s)),a>0&&(i=!0),i&&(l+=Ue(a));return i?l:"0"},e.prototype.negate=function(){var n=ne();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 o=this.t;if(t=o-n.t,t!=0)return this.s<0?-t:t;for(;--o>=0;)if((t=this[o]-n[o])!=0)return t;return 0},e.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+Ut(this[this.t-1]^this.s&this.DM)},e.prototype.mod=function(n){var t=ne();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 o;return n<256||t.isEven()?o=new wa(t):o=new Ca(t),this.exp(n,o)},e.prototype.clone=function(){var n=ne();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 o=this.DB-n*this.DB%8,a,i=0;if(n-- >0)for(o<this.DB&&(a=this[n]>>o)!=(this.s&this.DM)>>o&&(t[i++]=a|this.s<<this.DB-o);n>=0;)o<8?(a=(this[n]&(1<<o)-1)<<8-o,a|=this[--n]>>(o+=this.DB-8)):(a=this[n]>>(o-=8)&255,o<=0&&(o+=this.DB,--n)),a&128&&(a|=-256),i==0&&(this.s&128)!=(a&128)&&++i,(i>0||a!=this.s)&&(t[i++]=a);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=ne();return this.bitwiseTo(n,Ys,t),t},e.prototype.or=function(n){var t=ne();return this.bitwiseTo(n,Ht,t),t},e.prototype.xor=function(n){var t=ne();return this.bitwiseTo(n,ga,t),t},e.prototype.andNot=function(n){var t=ne();return this.bitwiseTo(n,ma,t),t},e.prototype.not=function(){for(var n=ne(),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=ne();return n<0?this.rShiftTo(-n,t):this.lShiftTo(n,t),t},e.prototype.shiftRight=function(n){var t=ne();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+Xs(this[n]);return this.s<0?this.t*this.DB:-1},e.prototype.bitCount=function(){for(var n=0,t=this.s&this.DM,o=0;o<this.t;++o)n+=Js(this[o]^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,Ht)},e.prototype.clearBit=function(n){return this.changeBit(n,ma)},e.prototype.flipBit=function(n){return this.changeBit(n,ga)},e.prototype.add=function(n){var t=ne();return this.addTo(n,t),t},e.prototype.subtract=function(n){var t=ne();return this.subTo(n,t),t},e.prototype.multiply=function(n){var t=ne();return this.multiplyTo(n,t),t},e.prototype.divide=function(n){var t=ne();return this.divRemTo(n,t,null),t},e.prototype.remainder=function(n){var t=ne();return this.divRemTo(n,null,t),t},e.prototype.divideAndRemainder=function(n){var t=ne(),o=ne();return this.divRemTo(n,t,o),[t,o]},e.prototype.modPow=function(n,t){var o=n.bitLength(),a,i=Xe(1),l;if(o<=0)return i;o<18?a=1:o<48?a=3:o<144?a=4:o<768?a=5:a=6,o<8?l=new wa(t):t.isEven()?l=new il(t):l=new Ca(t);var s=[],f=3,c=a-1,d=(1<<a)-1;if(s[1]=l.convert(this),a>1){var p=ne();for(l.sqrTo(s[1],p);f<=d;)s[f]=ne(),l.mulTo(p,s[f-2],s[f]),f+=2}var u=n.t-1,h,m=!0,g=ne(),y;for(o=Ut(n[u])-1;u>=0;){for(o>=c?h=n[u]>>o-c&d:(h=(n[u]&(1<<o+1)-1)<<c-o,u>0&&(h|=n[u-1]>>this.DB+o-c)),f=a;!(h&1);)h>>=1,--f;if((o-=f)<0&&(o+=this.DB,--u),m)s[h].copyTo(i),m=!1;else{for(;f>1;)l.sqrTo(i,g),l.sqrTo(g,i),f-=2;f>0?l.sqrTo(i,g):(y=i,i=g,g=y),l.mulTo(g,s[h],i)}for(;u>=0&&!(n[u]&1<<o);)l.sqrTo(i,g),y=i,i=g,g=y,--o<0&&(o=this.DB-1,--u)}return l.revert(i)},e.prototype.modInverse=function(n){var t=n.isEven();if(this.isEven()&&t||n.signum()==0)return e.ZERO;for(var o=n.clone(),a=this.clone(),i=Xe(1),l=Xe(0),s=Xe(0),f=Xe(1);o.signum()!=0;){for(;o.isEven();)o.rShiftTo(1,o),t?((!i.isEven()||!l.isEven())&&(i.addTo(this,i),l.subTo(n,l)),i.rShiftTo(1,i)):l.isEven()||l.subTo(n,l),l.rShiftTo(1,l);for(;a.isEven();)a.rShiftTo(1,a),t?((!s.isEven()||!f.isEven())&&(s.addTo(this,s),f.subTo(n,f)),s.rShiftTo(1,s)):f.isEven()||f.subTo(n,f),f.rShiftTo(1,f);o.compareTo(a)>=0?(o.subTo(a,o),t&&i.subTo(s,i),l.subTo(f,l)):(a.subTo(o,a),t&&s.subTo(i,s),f.subTo(l,f))}if(a.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 al)},e.prototype.gcd=function(n){var t=this.s<0?this.negate():this.clone(),o=n.s<0?n.negate():n.clone();if(t.compareTo(o)<0){var a=t;t=o,o=a}var i=t.getLowestSetBit(),l=o.getLowestSetBit();if(l<0)return t;for(i<l&&(l=i),l>0&&(t.rShiftTo(l,t),o.rShiftTo(l,o));t.signum()>0;)(i=t.getLowestSetBit())>0&&t.rShiftTo(i,t),(i=o.getLowestSetBit())>0&&o.rShiftTo(i,o),t.compareTo(o)>=0?(t.subTo(o,t),t.rShiftTo(1,t)):(o.subTo(t,o),o.rShiftTo(1,o));return l>0&&o.lShiftTo(l,o),o},e.prototype.isProbablePrime=function(n){var t,o=this.abs();if(o.t==1&&o[0]<=Ae[Ae.length-1]){for(t=0;t<Ae.length;++t)if(o[0]==Ae[t])return!0;return!1}if(o.isEven())return!1;for(t=1;t<Ae.length;){for(var a=Ae[t],i=t+1;i<Ae.length&&a<rl;)a*=Ae[i++];for(a=o.modInt(a);t<i;)if(a%Ae[t++]==0)return!1}return o.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 o;if(t==16)o=4;else if(t==8)o=3;else if(t==256)o=8;else if(t==2)o=1;else if(t==32)o=5;else if(t==4)o=2;else{this.fromRadix(n,t);return}this.t=0,this.s=0;for(var a=n.length,i=!1,l=0;--a>=0;){var s=o==8?+n[a]&255:_a(n,a);if(s<0){n.charAt(a)=="-"&&(i=!0);continue}i=!1,l==0?this[this.t++]=s:l+o>this.DB?(this[this.t-1]|=(s&(1<<this.DB-l)-1)<<l,this[this.t++]=s>>this.DB-l):this[this.t-1]|=s<<l,l+=o,l>=this.DB&&(l-=this.DB)}o==8&&+n[0]&128&&(this.s=-1,l>0&&(this[this.t-1]|=(1<<this.DB-l)-1<<l)),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 o;for(o=this.t-1;o>=0;--o)t[o+n]=this[o];for(o=n-1;o>=0;--o)t[o]=0;t.t=this.t+n,t.s=this.s},e.prototype.drShiftTo=function(n,t){for(var o=n;o<this.t;++o)t[o-n]=this[o];t.t=Math.max(this.t-n,0),t.s=this.s},e.prototype.lShiftTo=function(n,t){for(var o=n%this.DB,a=this.DB-o,i=(1<<a)-1,l=Math.floor(n/this.DB),s=this.s<<o&this.DM,f=this.t-1;f>=0;--f)t[f+l+1]=this[f]>>a|s,s=(this[f]&i)<<o;for(var f=l-1;f>=0;--f)t[f]=0;t[l]=s,t.t=this.t+l+1,t.s=this.s,t.clamp()},e.prototype.rShiftTo=function(n,t){t.s=this.s;var o=Math.floor(n/this.DB);if(o>=this.t){t.t=0;return}var a=n%this.DB,i=this.DB-a,l=(1<<a)-1;t[0]=this[o]>>a;for(var s=o+1;s<this.t;++s)t[s-o-1]|=(this[s]&l)<<i,t[s-o]=this[s]>>a;a>0&&(t[this.t-o-1]|=(this.s&l)<<i),t.t=this.t-o,t.clamp()},e.prototype.subTo=function(n,t){for(var o=0,a=0,i=Math.min(n.t,this.t);o<i;)a+=this[o]-n[o],t[o++]=a&this.DM,a>>=this.DB;if(n.t<this.t){for(a-=n.s;o<this.t;)a+=this[o],t[o++]=a&this.DM,a>>=this.DB;a+=this.s}else{for(a+=this.s;o<n.t;)a-=n[o],t[o++]=a&this.DM,a>>=this.DB;a-=n.s}t.s=a<0?-1:0,a<-1?t[o++]=this.DV+a:a>0&&(t[o++]=a),t.t=o,t.clamp()},e.prototype.multiplyTo=function(n,t){var o=this.abs(),a=n.abs(),i=o.t;for(t.t=i+a.t;--i>=0;)t[i]=0;for(i=0;i<a.t;++i)t[i+o.t]=o.am(0,a[i],t,i,0,o.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(),o=n.t=2*t.t;--o>=0;)n[o]=0;for(o=0;o<t.t-1;++o){var a=t.am(o,t[o],n,2*o,0,1);(n[o+t.t]+=t.am(o+1,2*t[o],n,2*o+1,a,t.t-o-1))>=t.DV&&(n[o+t.t]-=t.DV,n[o+t.t+1]=1)}n.t>0&&(n[n.t-1]+=t.am(o,t[o],n,2*o,0,1)),n.s=0,n.clamp()},e.prototype.divRemTo=function(n,t,o){var a=n.abs();if(!(a.t<=0)){var i=this.abs();if(i.t<a.t){t!=null&&t.fromInt(0),o!=null&&this.copyTo(o);return}o==null&&(o=ne());var l=ne(),s=this.s,f=n.s,c=this.DB-Ut(a[a.t-1]);c>0?(a.lShiftTo(c,l),i.lShiftTo(c,o)):(a.copyTo(l),i.copyTo(o));var d=l.t,p=l[d-1];if(p!=0){var u=p*(1<<this.F1)+(d>1?l[d-2]>>this.F2:0),h=this.FV/u,m=(1<<this.F1)/u,g=1<<this.F2,y=o.t,C=y-d,x=t??ne();for(l.dlShiftTo(C,x),o.compareTo(x)>=0&&(o[o.t++]=1,o.subTo(x,o)),e.ONE.dlShiftTo(d,x),x.subTo(l,l);l.t<d;)l[l.t++]=0;for(;--C>=0;){var v=o[--y]==p?this.DM:Math.floor(o[y]*h+(o[y-1]+g)*m);if((o[y]+=l.am(0,v,o,C,0,d))<v)for(l.dlShiftTo(C,x),o.subTo(x,o);o[y]<--v;)o.subTo(x,o)}t!=null&&(o.drShiftTo(d,t),s!=f&&e.ZERO.subTo(t,t)),o.t=d,o.clamp(),c>0&&o.rShiftTo(c,o),s<0&&e.ZERO.subTo(o,o)}}},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 o=ne(),a=ne(),i=t.convert(this),l=Ut(n)-1;for(i.copyTo(o);--l>=0;)if(t.sqrTo(o,a),(n&1<<l)>0)t.mulTo(a,i,o);else{var s=o;o=a,a=s}return t.revert(o)},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),o=Math.pow(n,t),a=Xe(o),i=ne(),l=ne(),s="";for(this.divRemTo(a,i,l);i.signum()>0;)s=(o+l.intValue()).toString(n).substr(1)+s,i.divRemTo(a,i,l);return l.intValue().toString(n)+s},e.prototype.fromRadix=function(n,t){this.fromInt(0),t==null&&(t=10);for(var o=this.chunkSize(t),a=Math.pow(t,o),i=!1,l=0,s=0,f=0;f<n.length;++f){var c=_a(n,f);if(c<0){n.charAt(f)=="-"&&this.signum()==0&&(i=!0);continue}s=t*s+c,++l>=o&&(this.dMultiply(a),this.dAddOffset(s,0),l=0,s=0)}l>0&&(this.dMultiply(Math.pow(t,l)),this.dAddOffset(s,0)),i&&e.ZERO.subTo(this,this)},e.prototype.fromNumber=function(n,t,o){if(typeof t=="number")if(n<2)this.fromInt(1);else for(this.fromNumber(n,o),this.testBit(n-1)||this.bitwiseTo(e.ONE.shiftLeft(n-1),Ht,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 a=[],i=n&7;a.length=(n>>3)+1,t.nextBytes(a),i>0?a[0]&=(1<<i)-1:a[0]=0,this.fromString(a,256)}},e.prototype.bitwiseTo=function(n,t,o){var a,i,l=Math.min(n.t,this.t);for(a=0;a<l;++a)o[a]=t(this[a],n[a]);if(n.t<this.t){for(i=n.s&this.DM,a=l;a<this.t;++a)o[a]=t(this[a],i);o.t=this.t}else{for(i=this.s&this.DM,a=l;a<n.t;++a)o[a]=t(i,n[a]);o.t=n.t}o.s=t(this.s,n.s),o.clamp()},e.prototype.changeBit=function(n,t){var o=e.ONE.shiftLeft(n);return this.bitwiseTo(o,t,o),o},e.prototype.addTo=function(n,t){for(var o=0,a=0,i=Math.min(n.t,this.t);o<i;)a+=this[o]+n[o],t[o++]=a&this.DM,a>>=this.DB;if(n.t<this.t){for(a+=n.s;o<this.t;)a+=this[o],t[o++]=a&this.DM,a>>=this.DB;a+=this.s}else{for(a+=this.s;o<n.t;)a+=n[o],t[o++]=a&this.DM,a>>=this.DB;a+=n.s}t.s=a<0?-1:0,a>0?t[o++]=a:a<-1&&(t[o++]=this.DV+a),t.t=o,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,o){var a=Math.min(this.t+n.t,t);for(o.s=0,o.t=a;a>0;)o[--a]=0;for(var i=o.t-this.t;a<i;++a)o[a+this.t]=this.am(0,n[a],o,a,0,this.t);for(var i=Math.min(n.t,t);a<i;++a)this.am(0,n[a],o,a,0,t-a);o.clamp()},e.prototype.multiplyUpperTo=function(n,t,o){--t;var a=o.t=this.t+n.t-t;for(o.s=0;--a>=0;)o[a]=0;for(a=Math.max(t-this.t,0);a<n.t;++a)o[this.t+a-t]=this.am(t-a,n[a],o,0,0,this.t+a-t);o.clamp(),o.drShiftTo(1,o)},e.prototype.modInt=function(n){if(n<=0)return 0;var t=this.DV%n,o=this.s<0?n-1:0;if(this.t>0)if(t==0)o=this[0]%n;else for(var a=this.t-1;a>=0;--a)o=(t*o+this[a])%n;return o},e.prototype.millerRabin=function(n){var t=this.subtract(e.ONE),o=t.getLowestSetBit();if(o<=0)return!1;var a=t.shiftRight(o);n=n+1>>1,n>Ae.length&&(n=Ae.length);for(var i=ne(),l=0;l<n;++l){i.fromInt(Ae[Math.floor(Math.random()*Ae.length)]);var s=i.modPow(a,this);if(s.compareTo(e.ONE)!=0&&s.compareTo(t)!=0){for(var f=1;f++<o&&s.compareTo(t)!=0;)if(s=s.modPowInt(2,this),s.compareTo(e.ONE)==0)return!1;if(s.compareTo(t)!=0)return!1}}return!0},e.prototype.square=function(){var n=ne();return this.squareTo(n),n},e.prototype.gcda=function(n,t){var o=this.s<0?this.negate():this.clone(),a=n.s<0?n.negate():n.clone();if(o.compareTo(a)<0){var i=o;o=a,a=i}var l=o.getLowestSetBit(),s=a.getLowestSetBit();if(s<0){t(o);return}l<s&&(s=l),s>0&&(o.rShiftTo(s,o),a.rShiftTo(s,a));var f=function(){(l=o.getLowestSetBit())>0&&o.rShiftTo(l,o),(l=a.getLowestSetBit())>0&&a.rShiftTo(l,a),o.compareTo(a)>=0?(o.subTo(a,o),o.rShiftTo(1,o)):(a.subTo(o,a),a.rShiftTo(1,a)),o.signum()>0?setTimeout(f,0):(s>0&&a.lShiftTo(s,a),setTimeout(function(){t(a)},0))};setTimeout(f,10)},e.prototype.fromNumberAsync=function(n,t,o,a){if(typeof t=="number")if(n<2)this.fromInt(1);else{this.fromNumber(n,o),this.testBit(n-1)||this.bitwiseTo(e.ONE.shiftLeft(n-1),Ht,this),this.isEven()&&this.dAddOffset(1,0);var i=this,l=function(){i.dAddOffset(2,0),i.bitLength()>n&&i.subTo(e.ONE.shiftLeft(n-1),i),i.isProbablePrime(t)?setTimeout(function(){a()},0):setTimeout(l,0)};setTimeout(l,0)}else{var s=[],f=n&7;s.length=(n>>3)+1,t.nextBytes(s),f>0?s[0]&=(1<<f)-1:s[0]=0,this.fromString(s,256)}},e}(),al=function(){function e(){}return e.prototype.convert=function(n){return n},e.prototype.revert=function(n){return n},e.prototype.mulTo=function(n,t,o){n.multiplyTo(t,o)},e.prototype.sqrTo=function(n,t){n.squareTo(t)},e}(),wa=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,o){n.multiplyTo(t,o),this.reduce(o)},e.prototype.sqrTo=function(n,t){n.squareTo(t),this.reduce(t)},e}(),Ca=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=ne();return n.abs().dlShiftTo(this.m.t,t),t.divRemTo(this.m,null,t),n.s<0&&t.compareTo(Q.ZERO)>0&&this.m.subTo(t,t),t},e.prototype.revert=function(n){var t=ne();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 o=n[t]&32767,a=o*this.mpl+((o*this.mph+(n[t]>>15)*this.mpl&this.um)<<15)&n.DM;for(o=t+this.m.t,n[o]+=this.m.am(0,a,n,t,0,this.m.t);n[o]>=n.DV;)n[o]-=n.DV,n[++o]++}n.clamp(),n.drShiftTo(this.m.t,n),n.compareTo(this.m)>=0&&n.subTo(this.m,n)},e.prototype.mulTo=function(n,t,o){n.multiplyTo(t,o),this.reduce(o)},e.prototype.sqrTo=function(n,t){n.squareTo(t),this.reduce(t)},e}(),il=function(){function e(n){this.m=n,this.r2=ne(),this.q3=ne(),Q.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=ne();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,o){n.multiplyTo(t,o),this.reduce(o)},e.prototype.sqrTo=function(n,t){n.squareTo(t),this.reduce(t)},e}();function ne(){return new Q(null)}function ge(e,n){return new Q(e,n)}var ka=typeof navigator<"u";ka&&Sa&&navigator.appName=="Microsoft Internet Explorer"?(Q.prototype.am=function(n,t,o,a,i,l){for(var s=t&32767,f=t>>15;--l>=0;){var c=this[n]&32767,d=this[n++]>>15,p=f*c+d*s;c=s*c+((p&32767)<<15)+o[a]+(i&1073741823),i=(c>>>30)+(p>>>15)+f*d+(i>>>30),o[a++]=c&1073741823}return i},Ye=30):ka&&Sa&&navigator.appName!="Netscape"?(Q.prototype.am=function(n,t,o,a,i,l){for(;--l>=0;){var s=t*this[n++]+o[a]+i;i=Math.floor(s/67108864),o[a++]=s&67108863}return i},Ye=26):(Q.prototype.am=function(n,t,o,a,i,l){for(var s=t&16383,f=t>>14;--l>=0;){var c=this[n]&16383,d=this[n++]>>14,p=f*c+d*s;c=s*c+((p&16383)<<14)+o[a]+i,i=(c>>28)+(p>>14)+f*d,o[a++]=c&268435455}return i},Ye=28),Q.prototype.DB=Ye,Q.prototype.DM=(1<<Ye)-1,Q.prototype.DV=1<<Ye;var to=52;Q.prototype.FV=Math.pow(2,to),Q.prototype.F1=to-Ye,Q.prototype.F2=2*Ye-to;var jt=[],vt,Pe;for(vt="0".charCodeAt(0),Pe=0;Pe<=9;++Pe)jt[vt++]=Pe;for(vt="a".charCodeAt(0),Pe=10;Pe<36;++Pe)jt[vt++]=Pe;for(vt="A".charCodeAt(0),Pe=10;Pe<36;++Pe)jt[vt++]=Pe;function _a(e,n){var t=jt[e.charCodeAt(n)];return t??-1}function Xe(e){var n=ne();return n.fromInt(e),n}function Ut(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}Q.ZERO=Xe(0),Q.ONE=Xe(1);var sl=function(){function e(){this.i=0,this.j=0,this.S=[]}return e.prototype.init=function(n){var t,o,a;for(t=0;t<256;++t)this.S[t]=t;for(o=0,t=0;t<256;++t)o=o+this.S[t]+n[t%n.length]&255,a=this.S[t],this.S[t]=this.S[o],this.S[o]=a;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 ll(){return new sl}var Aa=256,Gt,Je=null,Ve;if(Je==null){Je=[],Ve=0;var Wt=void 0;if(typeof window<"u"&&window.crypto&&window.crypto.getRandomValues){var no=new Uint32Array(256);for(window.crypto.getRandomValues(no),Wt=0;Wt<no.length;++Wt)Je[Ve++]=no[Wt]&255}var Zt=0,Kt=function(e){if(Zt=Zt||0,Zt>=256||Ve>=Aa){window.removeEventListener?window.removeEventListener("mousemove",Kt,!1):window.detachEvent&&window.detachEvent("onmousemove",Kt);return}try{var n=e.x+e.y;Je[Ve++]=n&255,Zt+=1}catch{}};typeof window<"u"&&(window.addEventListener?window.addEventListener("mousemove",Kt,!1):window.attachEvent&&window.attachEvent("onmousemove",Kt))}function cl(){if(Gt==null){for(Gt=ll();Ve<Aa;){var e=Math.floor(65536*Math.random());Je[Ve++]=e&255}for(Gt.init(Je),Ve=0;Ve<Je.length;++Ve)Je[Ve]=0;Ve=0}return Gt.next()}var oo=function(){function e(){}return e.prototype.nextBytes=function(n){for(var t=0;t<n.length;++t)n[t]=cl()},e}();function fl(e,n){if(n<e.length+22)return console.error("Message too long for RSA"),null;for(var t=n-e.length-6,o="",a=0;a<t;a+=2)o+="ff";var i="0001"+o+"00"+e;return ge(i,16)}function dl(e,n){if(n<e.length+11)return console.error("Message too long for RSA"),null;for(var t=[],o=e.length-1;o>=0&&n>0;){var a=e.charCodeAt(o--);a<128?t[--n]=a:a>127&&a<2048?(t[--n]=a&63|128,t[--n]=a>>6|192):(t[--n]=a&63|128,t[--n]=a>>6&63|128,t[--n]=a>>12|224)}t[--n]=0;for(var i=new oo,l=[];n>2;){for(l[0]=0;l[0]==0;)i.nextBytes(l);t[--n]=l[0]}return t[--n]=2,t[--n]=0,new Q(t)}var ul=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),o=n.mod(this.q).modPow(this.dmq1,this.q);t.compareTo(o)<0;)t=t.add(this.p);return t.subtract(o).multiply(this.coeff).mod(this.p).multiply(this.q).add(o)},e.prototype.setPublic=function(n,t){n!=null&&t!=null&&n.length>0&&t.length>0?(this.n=ge(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,o=dl(n,t);if(o==null)return null;var a=this.doPublic(o);if(a==null)return null;for(var i=a.toString(16),l=i.length,s=0;s<t*2-l;s++)i="0"+i;return i},e.prototype.setPrivate=function(n,t,o){n!=null&&t!=null&&n.length>0&&t.length>0?(this.n=ge(n,16),this.e=parseInt(t,16),this.d=ge(o,16)):console.error("Invalid RSA private key")},e.prototype.setPrivateEx=function(n,t,o,a,i,l,s,f){n!=null&&t!=null&&n.length>0&&t.length>0?(this.n=ge(n,16),this.e=parseInt(t,16),this.d=ge(o,16),this.p=ge(a,16),this.q=ge(i,16),this.dmp1=ge(l,16),this.dmq1=ge(s,16),this.coeff=ge(f,16)):console.error("Invalid RSA private key")},e.prototype.generate=function(n,t){var o=new oo,a=n>>1;this.e=parseInt(t,16);for(var i=new Q(t,16);;){for(;this.p=new Q(n-a,1,o),!(this.p.subtract(Q.ONE).gcd(i).compareTo(Q.ONE)==0&&this.p.isProbablePrime(10)););for(;this.q=new Q(a,1,o),!(this.q.subtract(Q.ONE).gcd(i).compareTo(Q.ONE)==0&&this.q.isProbablePrime(10)););if(this.p.compareTo(this.q)<=0){var l=this.p;this.p=this.q,this.q=l}var s=this.p.subtract(Q.ONE),f=this.q.subtract(Q.ONE),c=s.multiply(f);if(c.gcd(i).compareTo(Q.ONE)==0){this.n=this.p.multiply(this.q),this.d=i.modInverse(c),this.dmp1=this.d.mod(s),this.dmq1=this.d.mod(f),this.coeff=this.q.modInverse(this.p);break}}},e.prototype.decrypt=function(n){var t=ge(n,16),o=this.doPrivate(t);return o==null?null:hl(o,this.n.bitLength()+7>>3)},e.prototype.generateAsync=function(n,t,o){var a=new oo,i=n>>1;this.e=parseInt(t,16);var l=new Q(t,16),s=this,f=function(){var c=function(){if(s.p.compareTo(s.q)<=0){var u=s.p;s.p=s.q,s.q=u}var h=s.p.subtract(Q.ONE),m=s.q.subtract(Q.ONE),g=h.multiply(m);g.gcd(l).compareTo(Q.ONE)==0?(s.n=s.p.multiply(s.q),s.d=l.modInverse(g),s.dmp1=s.d.mod(h),s.dmq1=s.d.mod(m),s.coeff=s.q.modInverse(s.p),setTimeout(function(){o()},0)):setTimeout(f,0)},d=function(){s.q=ne(),s.q.fromNumberAsync(i,1,a,function(){s.q.subtract(Q.ONE).gcda(l,function(u){u.compareTo(Q.ONE)==0&&s.q.isProbablePrime(10)?setTimeout(c,0):setTimeout(d,0)})})},p=function(){s.p=ne(),s.p.fromNumberAsync(n-i,1,a,function(){s.p.subtract(Q.ONE).gcda(l,function(u){u.compareTo(Q.ONE)==0&&s.p.isProbablePrime(10)?setTimeout(d,0):setTimeout(p,0)})})};setTimeout(p,0)};setTimeout(f,0)},e.prototype.sign=function(n,t,o){var a=xl(o),i=a+t(n).toString(),l=fl(i,this.n.bitLength()/4);if(l==null)return null;var s=this.doPrivate(l);if(s==null)return null;var f=s.toString(16);return f.length&1?"0"+f:f},e.prototype.verify=function(n,t,o){var a=ge(t,16),i=this.doPublic(a);if(i==null)return null;var l=i.toString(16).replace(/^1f+00/,""),s=gl(l);return s==o(n).toString()},e}();function hl(e,n){for(var t=e.toByteArray(),o=0;o<t.length&&t[o]==0;)++o;if(t.length-o!=n-1||t[o]!=2)return null;for(++o;t[o]!=0;)if(++o>=t.length)return null;for(var a="";++o<t.length;){var i=t[o]&255;i<128?a+=String.fromCharCode(i):i>191&&i<224?(a+=String.fromCharCode((i&31)<<6|t[o+1]&63),++o):(a+=String.fromCharCode((i&15)<<12|(t[o+1]&63)<<6|t[o+2]&63),o+=2)}return a}var Yt={md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",ripemd160:"3021300906052b2403020105000414"};function xl(e){return Yt[e]||""}function gl(e){for(var n in Yt)if(Yt.hasOwnProperty(n)){var t=Yt[n],o=t.length;if(e.substr(0,o)==t)return e.substr(o)}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,32 +87,32 @@ 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 V={};(typeof V.asn1>"u"||!V.asn1)&&(V.asn1={}),V.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),o=t.length;o%2==1?o+=1:n.match(/^[0-7]/)||(o+=2);for(var a="",i=0;i<o;i++)a+="f";var l=new J(a,16),s=l.xor(e).add(J.ONE);n=s.toString(16).replace(/^-/,"")}return n},this.getPEMStringFromHex=function(e,n){return hextopem(e,n)},this.newObject=function(e){var n=V,t=n.asn1,o=t.DERBoolean,a=t.DERInteger,i=t.DERBitString,l=t.DEROctetString,s=t.DERNull,f=t.DERObjectIdentifier,c=t.DEREnumerated,d=t.DERUTF8String,p=t.DERNumericString,u=t.DERPrintableString,h=t.DERTeletexString,g=t.DERIA5String,x=t.DERUTCTime,y=t.DERGeneralizedTime,S=t.DERSequence,m=t.DERSet,b=t.DERTaggedObject,v=t.ASN1Util.newObject,_=Object.keys(e);if(_.length!=1)throw"key of param shall be only one.";var w=_[0];if(":bool:int:bitstr:octstr:null:oid:enum:utf8str:numstr:prnstr:telstr:ia5str:utctime:gentime:seq:set:tag:".indexOf(":"+w+":")==-1)throw"undefined key: "+w;if(w=="bool")return new o(e[w]);if(w=="int")return new a(e[w]);if(w=="bitstr")return new i(e[w]);if(w=="octstr")return new l(e[w]);if(w=="null")return new s(e[w]);if(w=="oid")return new f(e[w]);if(w=="enum")return new c(e[w]);if(w=="utf8str")return new d(e[w]);if(w=="numstr")return new p(e[w]);if(w=="prnstr")return new u(e[w]);if(w=="telstr")return new h(e[w]);if(w=="ia5str")return new g(e[w]);if(w=="utctime")return new x(e[w]);if(w=="gentime")return new y(e[w]);if(w=="seq"){for(var k=e[w],A=[],E=0;E<k.length;E++){var C=v(k[E]);A.push(C)}return new S({array:A})}if(w=="set"){for(var k=e[w],A=[],E=0;E<k.length;E++){var C=v(k[E]);A.push(C)}return new m({array:A})}if(w=="tag"){var T=e[w];if(Object.prototype.toString.call(T)==="[object Array]"&&T.length==3){var R=v(T[2]);return new b({tag:T[0],explicit:T[1],obj:R})}else{var B={};if(T.explicit!==void 0&&(B.explicit=T.explicit),T.tag!==void 0&&(B.tag=T.tag),T.obj===void 0)throw"obj shall be specified for 'tag'.";return B.obj=v(T.obj),new b(B)}}},this.jsonToASN1HEX=function(e){var n=this.newObject(e);return n.getEncodedHex()}},V.asn1.ASN1Util.oidHexToInt=function(e){for(var a="",n=parseInt(e.substr(0,2),16),t=Math.floor(n/40),o=n%40,a=t+"."+o,i="",l=2;l<e.length;l+=2){var s=parseInt(e.substr(l,2),16),f=("00000000"+s.toString(2)).slice(-8);if(i=i+f.substr(1,7),f.substr(0,1)=="0"){var c=new J(i,2);a=a+"."+c.toString(10),i=""}}return a},V.asn1.ASN1Util.oidIntToHex=function(e){var n=function(s){var f=s.toString(16);return f.length==1&&(f="0"+f),f},t=function(s){var f="",c=new J(s,10),d=c.toString(2),p=7-d.length%7;p==7&&(p=0);for(var u="",h=0;h<p;h++)u+="0";d=u+d;for(var h=0;h<d.length-1;h+=7){var g=d.substr(h,7);h!=d.length-7&&(g="1"+g),f+=n(parseInt(g,2))}return f};if(!e.match(/^[0-9.]+$/))throw"malformed oid string: "+e;var o="",a=e.split("."),i=parseInt(a[0])*40+parseInt(a[1]);o+=n(i),a.splice(0,2);for(var l=0;l<a.length;l++)o+=t(a[l]);return o},V.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 o=t.length/2;if(o>15)throw"ASN.1 length too long to represent by 8x: n = "+n.toString(16);var a=128+o;return a.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""}},V.asn1.DERAbstractString=function(e){V.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))},me.lang.extend(V.asn1.DERAbstractString,V.asn1.ASN1Object),V.asn1.DERAbstractTime=function(e){V.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,o){var a=this.zeroPadding,i=this.localDateToUTC(n),l=String(i.getFullYear());t=="utc"&&(l=l.substr(2,2));var s=a(String(i.getMonth()+1),2),f=a(String(i.getDate()),2),c=a(String(i.getHours()),2),d=a(String(i.getMinutes()),2),p=a(String(i.getSeconds()),2),u=l+s+f+c+d+p;if(o===!0){var h=i.getMilliseconds();if(h!=0){var g=a(String(h),3);g=g.replace(/[0]+$/,""),u=u+"."+g}}return u+"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,o,a,i,l){var s=new Date(Date.UTC(n,t-1,o,a,i,l,0));this.setByDate(s)},this.getFreshValueHex=function(){return this.hV}},me.lang.extend(V.asn1.DERAbstractTime,V.asn1.ASN1Object),V.asn1.DERAbstractStructured=function(e){V.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)},me.lang.extend(V.asn1.DERAbstractStructured,V.asn1.ASN1Object),V.asn1.DERBoolean=function(){V.asn1.DERBoolean.superclass.constructor.call(this),this.hT="01",this.hTLV="0101ff"},me.lang.extend(V.asn1.DERBoolean,V.asn1.ASN1Object),V.asn1.DERInteger=function(e){V.asn1.DERInteger.superclass.constructor.call(this),this.hT="02",this.setByBigInteger=function(n){this.hTLV=null,this.isModified=!0,this.hV=V.asn1.ASN1Util.bigIntToMinTwosComplementsHex(n)},this.setByInteger=function(n){var t=new J(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))},me.lang.extend(V.asn1.DERInteger,V.asn1.ASN1Object),V.asn1.DERBitString=function(e){if(e!==void 0&&typeof e.obj<"u"){var n=V.asn1.ASN1Util.newObject(e.obj);e.hex="00"+n.getEncodedHex()}V.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,o){if(t<0||7<t)throw"unused bits shall be from 0 to 7: u = "+t;var a="0"+t;this.hTLV=null,this.isModified=!0,this.hV=a+o},this.setByBinaryString=function(t){t=t.replace(/0+$/,"");var o=8-t.length%8;o==8&&(o=0);for(var a=0;a<=o;a++)t+="0";for(var i="",a=0;a<t.length-1;a+=8){var l=t.substr(a,8),s=parseInt(l,2).toString(16);s.length==1&&(s="0"+s),i+=s}this.hTLV=null,this.isModified=!0,this.hV="0"+o+i},this.setByBooleanArray=function(t){for(var o="",a=0;a<t.length;a++)t[a]==!0?o+="1":o+="0";this.setByBinaryString(o)},this.newFalseArray=function(t){for(var o=new Array(t),a=0;a<t;a++)o[a]=!1;return o},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))},me.lang.extend(V.asn1.DERBitString,V.asn1.ASN1Object),V.asn1.DEROctetString=function(e){if(e!==void 0&&typeof e.obj<"u"){var n=V.asn1.ASN1Util.newObject(e.obj);e.hex=n.getEncodedHex()}V.asn1.DEROctetString.superclass.constructor.call(this,e),this.hT="04"},me.lang.extend(V.asn1.DEROctetString,V.asn1.DERAbstractString),V.asn1.DERNull=function(){V.asn1.DERNull.superclass.constructor.call(this),this.hT="05",this.hTLV="0500"},me.lang.extend(V.asn1.DERNull,V.asn1.ASN1Object),V.asn1.DERObjectIdentifier=function(e){var n=function(o){var a=o.toString(16);return a.length==1&&(a="0"+a),a},t=function(o){var a="",i=new J(o,10),l=i.toString(2),s=7-l.length%7;s==7&&(s=0);for(var f="",c=0;c<s;c++)f+="0";l=f+l;for(var c=0;c<l.length-1;c+=7){var d=l.substr(c,7);c!=l.length-7&&(d="1"+d),a+=n(parseInt(d,2))}return a};V.asn1.DERObjectIdentifier.superclass.constructor.call(this),this.hT="06",this.setValueHex=function(o){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=o},this.setValueOidString=function(o){if(!o.match(/^[0-9.]+$/))throw"malformed oid string: "+o;var a="",i=o.split("."),l=parseInt(i[0])*40+parseInt(i[1]);a+=n(l),i.splice(0,2);for(var s=0;s<i.length;s++)a+=t(i[s]);this.hTLV=null,this.isModified=!0,this.s=null,this.hV=a},this.setValueName=function(o){var a=V.asn1.x509.OID.name2oid(o);if(a!=="")this.setValueOidString(a);else throw"DERObjectIdentifier oidName undefined: "+o},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))},me.lang.extend(V.asn1.DERObjectIdentifier,V.asn1.ASN1Object),V.asn1.DEREnumerated=function(e){V.asn1.DEREnumerated.superclass.constructor.call(this),this.hT="0a",this.setByBigInteger=function(n){this.hTLV=null,this.isModified=!0,this.hV=V.asn1.ASN1Util.bigIntToMinTwosComplementsHex(n)},this.setByInteger=function(n){var t=new J(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))},me.lang.extend(V.asn1.DEREnumerated,V.asn1.ASN1Object),V.asn1.DERUTF8String=function(e){V.asn1.DERUTF8String.superclass.constructor.call(this,e),this.hT="0c"},me.lang.extend(V.asn1.DERUTF8String,V.asn1.DERAbstractString),V.asn1.DERNumericString=function(e){V.asn1.DERNumericString.superclass.constructor.call(this,e),this.hT="12"},me.lang.extend(V.asn1.DERNumericString,V.asn1.DERAbstractString),V.asn1.DERPrintableString=function(e){V.asn1.DERPrintableString.superclass.constructor.call(this,e),this.hT="13"},me.lang.extend(V.asn1.DERPrintableString,V.asn1.DERAbstractString),V.asn1.DERTeletexString=function(e){V.asn1.DERTeletexString.superclass.constructor.call(this,e),this.hT="14"},me.lang.extend(V.asn1.DERTeletexString,V.asn1.DERAbstractString),V.asn1.DERIA5String=function(e){V.asn1.DERIA5String.superclass.constructor.call(this,e),this.hT="16"},me.lang.extend(V.asn1.DERIA5String,V.asn1.DERAbstractString),V.asn1.DERUTCTime=function(e){V.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))},me.lang.extend(V.asn1.DERUTCTime,V.asn1.DERAbstractTime),V.asn1.DERGeneralizedTime=function(e){V.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))},me.lang.extend(V.asn1.DERGeneralizedTime,V.asn1.DERAbstractTime),V.asn1.DERSequence=function(e){V.asn1.DERSequence.superclass.constructor.call(this,e),this.hT="30",this.getFreshValueHex=function(){for(var n="",t=0;t<this.asn1Array.length;t++){var o=this.asn1Array[t];n+=o.getEncodedHex()}return this.hV=n,this.hV}},me.lang.extend(V.asn1.DERSequence,V.asn1.DERAbstractStructured),V.asn1.DERSet=function(e){V.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 o=this.asn1Array[t];n.push(o.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)},me.lang.extend(V.asn1.DERSet,V.asn1.DERAbstractStructured),V.asn1.DERTaggedObject=function(e){V.asn1.DERTaggedObject.superclass.constructor.call(this),this.hT="a0",this.hV="",this.isExplicit=!0,this.asn1Object=null,this.setASN1Object=function(n,t,o){this.hT=t,this.isExplicit=n,this.asn1Object=o,this.isExplicit?(this.hV=this.asn1Object.getEncodedHex(),this.hTLV=null,this.isModified=!0):(this.hV=null,this.hTLV=o.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)))},me.lang.extend(V.asn1.DERTaggedObject,V.asn1.ASN1Object);var ml=globalThis&&globalThis.__extends||function(){var e=function(n,t){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,a){o.__proto__=a}||function(o,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(o[i]=a[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 o(){this.constructor=n}n.prototype=t===null?Object.create(t):(o.prototype=t.prototype,new o)}}(),E0=function(e){ml(n,e);function n(t){var o=e.call(this)||this;return t&&(typeof t=="string"?o.parseKey(t):(n.hasPrivateKeyProperty(t)||n.hasPublicKeyProperty(t))&&o.parsePropertiesFrom(t)),o}return n.prototype.parseKey=function(t){try{var o=0,a=0,i=/^\s*(?:[0-9A-Fa-f][0-9A-Fa-f]\s*)+$/,l=i.test(t)?Qs.decode(t):Qn.unarmor(t),s=nl.decode(l);if(s.sub.length===3&&(s=s.sub[2].sub[0]),s.sub.length===9){o=s.sub[1].getHexStringValue(),this.n=ge(o,16),a=s.sub[2].getHexStringValue(),this.e=parseInt(a,16);var f=s.sub[3].getHexStringValue();this.d=ge(f,16);var c=s.sub[4].getHexStringValue();this.p=ge(c,16);var d=s.sub[5].getHexStringValue();this.q=ge(d,16);var p=s.sub[6].getHexStringValue();this.dmp1=ge(p,16);var u=s.sub[7].getHexStringValue();this.dmq1=ge(u,16);var h=s.sub[8].getHexStringValue();this.coeff=ge(h,16)}else if(s.sub.length===2)if(s.sub[0].sub){var g=s.sub[1],x=g.sub[0];o=x.sub[0].getHexStringValue(),this.n=ge(o,16),a=x.sub[1].getHexStringValue(),this.e=parseInt(a,16)}else o=s.sub[0].getHexStringValue(),this.n=ge(o,16),a=s.sub[1].getHexStringValue(),this.e=parseInt(a,16);else return!1;return!0}catch{return!1}},n.prototype.getPrivateBaseKey=function(){var t={array:[new V.asn1.DERInteger({int:0}),new V.asn1.DERInteger({bigint:this.n}),new V.asn1.DERInteger({int:this.e}),new V.asn1.DERInteger({bigint:this.d}),new V.asn1.DERInteger({bigint:this.p}),new V.asn1.DERInteger({bigint:this.q}),new V.asn1.DERInteger({bigint:this.dmp1}),new V.asn1.DERInteger({bigint:this.dmq1}),new V.asn1.DERInteger({bigint:this.coeff})]},o=new V.asn1.DERSequence(t);return o.getEncodedHex()},n.prototype.getPrivateBaseKeyB64=function(){return $t(this.getPrivateBaseKey())},n.prototype.getPublicBaseKey=function(){var t=new V.asn1.DERSequence({array:[new V.asn1.DERObjectIdentifier({oid:"1.2.840.113549.1.1.1"}),new V.asn1.DERNull]}),o=new V.asn1.DERSequence({array:[new V.asn1.DERInteger({bigint:this.n}),new V.asn1.DERInteger({int:this.e})]}),a=new V.asn1.DERBitString({hex:"00"+o.getEncodedHex()}),i=new V.asn1.DERSequence({array:[t,a]});return i.getEncodedHex()},n.prototype.getPublicBaseKeyB64=function(){return $t(this.getPublicBaseKey())},n.wordwrap=function(t,o){if(o=o||64,!t)return t;var a="(.{1,"+o+`})( +|$
90
+ */var q={};(typeof q.asn1>"u"||!q.asn1)&&(q.asn1={}),q.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),o=t.length;o%2==1?o+=1:n.match(/^[0-7]/)||(o+=2);for(var a="",i=0;i<o;i++)a+="f";var l=new Q(a,16),s=l.xor(e).add(Q.ONE);n=s.toString(16).replace(/^-/,"")}return n},this.getPEMStringFromHex=function(e,n){return hextopem(e,n)},this.newObject=function(e){var n=q,t=n.asn1,o=t.DERBoolean,a=t.DERInteger,i=t.DERBitString,l=t.DEROctetString,s=t.DERNull,f=t.DERObjectIdentifier,c=t.DEREnumerated,d=t.DERUTF8String,p=t.DERNumericString,u=t.DERPrintableString,h=t.DERTeletexString,m=t.DERIA5String,g=t.DERUTCTime,y=t.DERGeneralizedTime,C=t.DERSequence,x=t.DERSet,v=t.DERTaggedObject,b=t.ASN1Util.newObject,_=Object.keys(e);if(_.length!=1)throw"key of param shall be only one.";var S=_[0];if(":bool:int:bitstr:octstr:null:oid:enum:utf8str:numstr:prnstr:telstr:ia5str:utctime:gentime:seq:set:tag:".indexOf(":"+S+":")==-1)throw"undefined key: "+S;if(S=="bool")return new o(e[S]);if(S=="int")return new a(e[S]);if(S=="bitstr")return new i(e[S]);if(S=="octstr")return new l(e[S]);if(S=="null")return new s(e[S]);if(S=="oid")return new f(e[S]);if(S=="enum")return new c(e[S]);if(S=="utf8str")return new d(e[S]);if(S=="numstr")return new p(e[S]);if(S=="prnstr")return new u(e[S]);if(S=="telstr")return new h(e[S]);if(S=="ia5str")return new m(e[S]);if(S=="utctime")return new g(e[S]);if(S=="gentime")return new y(e[S]);if(S=="seq"){for(var k=e[S],A=[],D=0;D<k.length;D++){var w=b(k[D]);A.push(w)}return new C({array:A})}if(S=="set"){for(var k=e[S],A=[],D=0;D<k.length;D++){var w=b(k[D]);A.push(w)}return new x({array:A})}if(S=="tag"){var E=e[S];if(Object.prototype.toString.call(E)==="[object Array]"&&E.length==3){var R=b(E[2]);return new v({tag:E[0],explicit:E[1],obj:R})}else{var I={};if(E.explicit!==void 0&&(I.explicit=E.explicit),E.tag!==void 0&&(I.tag=E.tag),E.obj===void 0)throw"obj shall be specified for 'tag'.";return I.obj=b(E.obj),new v(I)}}},this.jsonToASN1HEX=function(e){var n=this.newObject(e);return n.getEncodedHex()}},q.asn1.ASN1Util.oidHexToInt=function(e){for(var a="",n=parseInt(e.substr(0,2),16),t=Math.floor(n/40),o=n%40,a=t+"."+o,i="",l=2;l<e.length;l+=2){var s=parseInt(e.substr(l,2),16),f=("00000000"+s.toString(2)).slice(-8);if(i=i+f.substr(1,7),f.substr(0,1)=="0"){var c=new Q(i,2);a=a+"."+c.toString(10),i=""}}return a},q.asn1.ASN1Util.oidIntToHex=function(e){var n=function(s){var f=s.toString(16);return f.length==1&&(f="0"+f),f},t=function(s){var f="",c=new Q(s,10),d=c.toString(2),p=7-d.length%7;p==7&&(p=0);for(var u="",h=0;h<p;h++)u+="0";d=u+d;for(var h=0;h<d.length-1;h+=7){var m=d.substr(h,7);h!=d.length-7&&(m="1"+m),f+=n(parseInt(m,2))}return f};if(!e.match(/^[0-9.]+$/))throw"malformed oid string: "+e;var o="",a=e.split("."),i=parseInt(a[0])*40+parseInt(a[1]);o+=n(i),a.splice(0,2);for(var l=0;l<a.length;l++)o+=t(a[l]);return o},q.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 o=t.length/2;if(o>15)throw"ASN.1 length too long to represent by 8x: n = "+n.toString(16);var a=128+o;return a.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""}},q.asn1.DERAbstractString=function(e){q.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))},me.lang.extend(q.asn1.DERAbstractString,q.asn1.ASN1Object),q.asn1.DERAbstractTime=function(e){q.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,o){var a=this.zeroPadding,i=this.localDateToUTC(n),l=String(i.getFullYear());t=="utc"&&(l=l.substr(2,2));var s=a(String(i.getMonth()+1),2),f=a(String(i.getDate()),2),c=a(String(i.getHours()),2),d=a(String(i.getMinutes()),2),p=a(String(i.getSeconds()),2),u=l+s+f+c+d+p;if(o===!0){var h=i.getMilliseconds();if(h!=0){var m=a(String(h),3);m=m.replace(/[0]+$/,""),u=u+"."+m}}return u+"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,o,a,i,l){var s=new Date(Date.UTC(n,t-1,o,a,i,l,0));this.setByDate(s)},this.getFreshValueHex=function(){return this.hV}},me.lang.extend(q.asn1.DERAbstractTime,q.asn1.ASN1Object),q.asn1.DERAbstractStructured=function(e){q.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)},me.lang.extend(q.asn1.DERAbstractStructured,q.asn1.ASN1Object),q.asn1.DERBoolean=function(){q.asn1.DERBoolean.superclass.constructor.call(this),this.hT="01",this.hTLV="0101ff"},me.lang.extend(q.asn1.DERBoolean,q.asn1.ASN1Object),q.asn1.DERInteger=function(e){q.asn1.DERInteger.superclass.constructor.call(this),this.hT="02",this.setByBigInteger=function(n){this.hTLV=null,this.isModified=!0,this.hV=q.asn1.ASN1Util.bigIntToMinTwosComplementsHex(n)},this.setByInteger=function(n){var t=new Q(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))},me.lang.extend(q.asn1.DERInteger,q.asn1.ASN1Object),q.asn1.DERBitString=function(e){if(e!==void 0&&typeof e.obj<"u"){var n=q.asn1.ASN1Util.newObject(e.obj);e.hex="00"+n.getEncodedHex()}q.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,o){if(t<0||7<t)throw"unused bits shall be from 0 to 7: u = "+t;var a="0"+t;this.hTLV=null,this.isModified=!0,this.hV=a+o},this.setByBinaryString=function(t){t=t.replace(/0+$/,"");var o=8-t.length%8;o==8&&(o=0);for(var a=0;a<=o;a++)t+="0";for(var i="",a=0;a<t.length-1;a+=8){var l=t.substr(a,8),s=parseInt(l,2).toString(16);s.length==1&&(s="0"+s),i+=s}this.hTLV=null,this.isModified=!0,this.hV="0"+o+i},this.setByBooleanArray=function(t){for(var o="",a=0;a<t.length;a++)t[a]==!0?o+="1":o+="0";this.setByBinaryString(o)},this.newFalseArray=function(t){for(var o=new Array(t),a=0;a<t;a++)o[a]=!1;return o},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))},me.lang.extend(q.asn1.DERBitString,q.asn1.ASN1Object),q.asn1.DEROctetString=function(e){if(e!==void 0&&typeof e.obj<"u"){var n=q.asn1.ASN1Util.newObject(e.obj);e.hex=n.getEncodedHex()}q.asn1.DEROctetString.superclass.constructor.call(this,e),this.hT="04"},me.lang.extend(q.asn1.DEROctetString,q.asn1.DERAbstractString),q.asn1.DERNull=function(){q.asn1.DERNull.superclass.constructor.call(this),this.hT="05",this.hTLV="0500"},me.lang.extend(q.asn1.DERNull,q.asn1.ASN1Object),q.asn1.DERObjectIdentifier=function(e){var n=function(o){var a=o.toString(16);return a.length==1&&(a="0"+a),a},t=function(o){var a="",i=new Q(o,10),l=i.toString(2),s=7-l.length%7;s==7&&(s=0);for(var f="",c=0;c<s;c++)f+="0";l=f+l;for(var c=0;c<l.length-1;c+=7){var d=l.substr(c,7);c!=l.length-7&&(d="1"+d),a+=n(parseInt(d,2))}return a};q.asn1.DERObjectIdentifier.superclass.constructor.call(this),this.hT="06",this.setValueHex=function(o){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=o},this.setValueOidString=function(o){if(!o.match(/^[0-9.]+$/))throw"malformed oid string: "+o;var a="",i=o.split("."),l=parseInt(i[0])*40+parseInt(i[1]);a+=n(l),i.splice(0,2);for(var s=0;s<i.length;s++)a+=t(i[s]);this.hTLV=null,this.isModified=!0,this.s=null,this.hV=a},this.setValueName=function(o){var a=q.asn1.x509.OID.name2oid(o);if(a!=="")this.setValueOidString(a);else throw"DERObjectIdentifier oidName undefined: "+o},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))},me.lang.extend(q.asn1.DERObjectIdentifier,q.asn1.ASN1Object),q.asn1.DEREnumerated=function(e){q.asn1.DEREnumerated.superclass.constructor.call(this),this.hT="0a",this.setByBigInteger=function(n){this.hTLV=null,this.isModified=!0,this.hV=q.asn1.ASN1Util.bigIntToMinTwosComplementsHex(n)},this.setByInteger=function(n){var t=new Q(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))},me.lang.extend(q.asn1.DEREnumerated,q.asn1.ASN1Object),q.asn1.DERUTF8String=function(e){q.asn1.DERUTF8String.superclass.constructor.call(this,e),this.hT="0c"},me.lang.extend(q.asn1.DERUTF8String,q.asn1.DERAbstractString),q.asn1.DERNumericString=function(e){q.asn1.DERNumericString.superclass.constructor.call(this,e),this.hT="12"},me.lang.extend(q.asn1.DERNumericString,q.asn1.DERAbstractString),q.asn1.DERPrintableString=function(e){q.asn1.DERPrintableString.superclass.constructor.call(this,e),this.hT="13"},me.lang.extend(q.asn1.DERPrintableString,q.asn1.DERAbstractString),q.asn1.DERTeletexString=function(e){q.asn1.DERTeletexString.superclass.constructor.call(this,e),this.hT="14"},me.lang.extend(q.asn1.DERTeletexString,q.asn1.DERAbstractString),q.asn1.DERIA5String=function(e){q.asn1.DERIA5String.superclass.constructor.call(this,e),this.hT="16"},me.lang.extend(q.asn1.DERIA5String,q.asn1.DERAbstractString),q.asn1.DERUTCTime=function(e){q.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))},me.lang.extend(q.asn1.DERUTCTime,q.asn1.DERAbstractTime),q.asn1.DERGeneralizedTime=function(e){q.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))},me.lang.extend(q.asn1.DERGeneralizedTime,q.asn1.DERAbstractTime),q.asn1.DERSequence=function(e){q.asn1.DERSequence.superclass.constructor.call(this,e),this.hT="30",this.getFreshValueHex=function(){for(var n="",t=0;t<this.asn1Array.length;t++){var o=this.asn1Array[t];n+=o.getEncodedHex()}return this.hV=n,this.hV}},me.lang.extend(q.asn1.DERSequence,q.asn1.DERAbstractStructured),q.asn1.DERSet=function(e){q.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 o=this.asn1Array[t];n.push(o.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)},me.lang.extend(q.asn1.DERSet,q.asn1.DERAbstractStructured),q.asn1.DERTaggedObject=function(e){q.asn1.DERTaggedObject.superclass.constructor.call(this),this.hT="a0",this.hV="",this.isExplicit=!0,this.asn1Object=null,this.setASN1Object=function(n,t,o){this.hT=t,this.isExplicit=n,this.asn1Object=o,this.isExplicit?(this.hV=this.asn1Object.getEncodedHex(),this.hTLV=null,this.isModified=!0):(this.hV=null,this.hTLV=o.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)))},me.lang.extend(q.asn1.DERTaggedObject,q.asn1.ASN1Object);var ml=globalThis&&globalThis.__extends||function(){var e=function(n,t){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,a){o.__proto__=a}||function(o,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(o[i]=a[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 o(){this.constructor=n}n.prototype=t===null?Object.create(t):(o.prototype=t.prototype,new o)}}(),Ea=function(e){ml(n,e);function n(t){var o=e.call(this)||this;return t&&(typeof t=="string"?o.parseKey(t):(n.hasPrivateKeyProperty(t)||n.hasPublicKeyProperty(t))&&o.parsePropertiesFrom(t)),o}return n.prototype.parseKey=function(t){try{var o=0,a=0,i=/^\s*(?:[0-9A-Fa-f][0-9A-Fa-f]\s*)+$/,l=i.test(t)?Qs.decode(t):Qn.unarmor(t),s=nl.decode(l);if(s.sub.length===3&&(s=s.sub[2].sub[0]),s.sub.length===9){o=s.sub[1].getHexStringValue(),this.n=ge(o,16),a=s.sub[2].getHexStringValue(),this.e=parseInt(a,16);var f=s.sub[3].getHexStringValue();this.d=ge(f,16);var c=s.sub[4].getHexStringValue();this.p=ge(c,16);var d=s.sub[5].getHexStringValue();this.q=ge(d,16);var p=s.sub[6].getHexStringValue();this.dmp1=ge(p,16);var u=s.sub[7].getHexStringValue();this.dmq1=ge(u,16);var h=s.sub[8].getHexStringValue();this.coeff=ge(h,16)}else if(s.sub.length===2)if(s.sub[0].sub){var m=s.sub[1],g=m.sub[0];o=g.sub[0].getHexStringValue(),this.n=ge(o,16),a=g.sub[1].getHexStringValue(),this.e=parseInt(a,16)}else o=s.sub[0].getHexStringValue(),this.n=ge(o,16),a=s.sub[1].getHexStringValue(),this.e=parseInt(a,16);else return!1;return!0}catch{return!1}},n.prototype.getPrivateBaseKey=function(){var t={array:[new q.asn1.DERInteger({int:0}),new q.asn1.DERInteger({bigint:this.n}),new q.asn1.DERInteger({int:this.e}),new q.asn1.DERInteger({bigint:this.d}),new q.asn1.DERInteger({bigint:this.p}),new q.asn1.DERInteger({bigint:this.q}),new q.asn1.DERInteger({bigint:this.dmp1}),new q.asn1.DERInteger({bigint:this.dmq1}),new q.asn1.DERInteger({bigint:this.coeff})]},o=new q.asn1.DERSequence(t);return o.getEncodedHex()},n.prototype.getPrivateBaseKeyB64=function(){return $t(this.getPrivateBaseKey())},n.prototype.getPublicBaseKey=function(){var t=new q.asn1.DERSequence({array:[new q.asn1.DERObjectIdentifier({oid:"1.2.840.113549.1.1.1"}),new q.asn1.DERNull]}),o=new q.asn1.DERSequence({array:[new q.asn1.DERInteger({bigint:this.n}),new q.asn1.DERInteger({int:this.e})]}),a=new q.asn1.DERBitString({hex:"00"+o.getEncodedHex()}),i=new q.asn1.DERSequence({array:[t,a]});return i.getEncodedHex()},n.prototype.getPublicBaseKeyB64=function(){return $t(this.getPublicBaseKey())},n.wordwrap=function(t,o){if(o=o||64,!t)return t;var a="(.{1,"+o+`})( +|$
91
91
  ?)|(.{1,`+o+"})";return t.match(RegExp(a,"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}(ul),ro,pl=typeof process<"u"?(ro=process.env)===null||ro===void 0?void 0:ro.npm_package_version:void 0,yl=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 E0(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(y0(n))}catch{return!1}},e.prototype.encrypt=function(n){try{return $t(this.getKey().encrypt(n))}catch{return!1}},e.prototype.sign=function(n,t,o){try{return $t(this.getKey().sign(n,t,o))}catch{return!1}},e.prototype.verify=function(n,t,o){try{return this.getKey().verify(n,y0(t),o)}catch{return!1}},e.prototype.getKey=function(n){if(!this.key){if(this.key=new E0,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=pl,e}();const T0=new yl,vt=vl();function vl(){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 B0=Ie.enc.Utf8.parse("ABCDEF1234123412");function bl(e,n){n=n||vt;const t=Ie.enc.Utf8.parse(n);let o="";switch(typeof e){case"string":o=Ie.enc.Utf8.parse(e);break;case"object":o=Ie.enc.Utf8.parse(JSON.stringify(e));break;default:o=Ie.enc.Utf8.parse(e.toString())}return Ie.AES.encrypt(o,t,{iv:B0,mode:Ie.mode.CBC,padding:Ie.pad.ZeroPadding}).toString()}function D0(e,n){n=n||vt;const t=Ie.enc.Utf8.parse(n),o=Ie.AES.decrypt(e,t,{iv:B0,mode:Ie.mode.CBC,padding:Ie.pad.ZeroPadding});return Ie.enc.Utf8.stringify(o).toString()}function Sl(e){T0.setPublicKey(e)}function wl(e){return T0.encrypt(e)}function R0(e=""){e.startsWith("/")||(e="/"+e),e=e.split("?")[0];const t=["/diagram","/dataview"].map(o=>`^(.*?)${o}(/|$)`);for(const o of t)if(new RegExp(o).test(e))return!0;return!1}function Cl(e){const{paramType:n,data:t,params:o,method:a}=e;n==="form"?["get","delete"].includes(a)?e.params=bt(o,"string"):e.data=bt(t,"string"):["get","delete"].includes(a)?e.params=bt(o,"string"):e.data=bt(t)}function bt(e,n){let t=e||{};if(n==="string"){t="";for(const s in e)if(Object.hasOwnProperty.call(e,s)){const f=e[s];t+=`${s}=${encodeURIComponent(f)}&`}}Sl("MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBAMKaTbS1XHH7u/4dhao1n5Lcegpy6AHKX2TjmTP7IDW6N4wznqlL3Tt+U0/Il1TlNp1/EN+tffYYg4dPrrCUDwcCAwEAAQ==");const a=wl(vt);return{c:bl(t,vt),p:a}}window.getEncryptParam=bt;function kl(e,n){var t;(t=window==null?void 0:window.config)!=null&&t.encryptFlag&&R0(e.url)&&(e.data instanceof FormData?e.data=_l(e.data):Cl(e))}function _l(e){const n=e.entries(),t=new FormData,o={};for(const i of n){const l=i[0],s=i[1];s instanceof Blob?t.append(l,s):o[l]=s}const a=bt(o,"json");return typeof a=="object"&&(t.append("c",a.c),t.append("p",a.p)),t}window.xhaesKey=vt,window.xhaesDecrypt=D0;function I0(e,n){var t;if((t=window==null?void 0:window.config)!=null&&t.encryptFlag&&R0(e.config.url)&&!(e.data instanceof Blob)&&e.data.data!==void 0){const o=D0(e.data.data.content,vt);e.data=JSON.parse(o)}}const L0=window.config.requestErrorTip,Je=Wa.create({timeout:1e3*180});Je.interceptors.request.use(e=>(kl(e),e),e=>Promise.reject(e)),Je.interceptors.response.use(e=>{var n,t,o;return L0&&+((n=e==null?void 0:e.data)==null?void 0:n.code)==500&&ae.message.error({content:((t=e==null?void 0:e.data)==null?void 0:t.msg)||((o=e==null?void 0:e.data)==null?void 0:o.message)||"服务器异常",key:"SERVER_ERROR"}),I0(e),e},e=>{if(I0(e==null?void 0:e.response),L0)if(e.message.includes("timeout"))ae.message.error({content:"网络连接超时,请重试!",key:"TIMEOUT"});else{const{status:n}=(e==null?void 0:e.response)||{};n>=400&&n<500&&ae.message.error({content:"请求异常",key:"REQUEST_ERROR"}),n>=500&&ae.message.error({content:"服务器异常",key:"REQUEST_ERROR"})}return Promise.reject(e)});const Al=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,")},El=e=>{const n=parseFloat(e+"");return isNaN(n)?e:(n+"").replace(/\B(?=(\d{3})+(?!\d))/g,",")},Xt=(e,n=2)=>{const t=e+"";if(t.includes("%"))return e;const o=parseFloat(t);return isNaN(o)?e:`${(o*100).toFixed(n)}%`},Jt=(e,n)=>typeof e=="string"&&typeof n=="string"?e.toLocaleLowerCase().includes(n.toLocaleLowerCase()):!1,Qt=(e,n)=>{const t={dayjs:Oe,...n};let o="";const a=[];for(const s in t)o+=`${s},`,a.push(t[s]);o=o.replace(/,$/,"");const i=`function (${o}){return ${e}}`;let l;try{l=Function(`"use strict";return (${i})`)()(...a)}catch{return e}return l},ve=(e="",{textData:n,codeData:t}={},{useNewline:o=!1,useSpace:a=!1}={})=>{const l={...window.config||{},...n},s=e.match(/\{(.+?)\}/g);if(s==null||s.length===0)return e;for(let f=0;f<s.length;f++){const c=s[f];let d=c.slice(1,-1).trim();const p=/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,u=d.match(p);for(let h=0;h<u.length;h++){const g=u[h],x=l[g];x!=null&&(d=d.replace(g,x))}(/\(.*\)/g.test(d)||/[+/\\*]/g.test(d))&&(d=Qt(d,t)),e=e.replace(c,d)}return o&&(e=e==null?void 0:e.replace(/\n|\\n/g,"<br/>")),a&&(e=e==null?void 0:e.replace(/\s{2,}?/g,"&nbsp;&nbsp;")),e},ze=(e,n=()=>{})=>{const{requestUrl:t,requestMethod:o,requestHeaders:a,requestParams:i,requestInterval:l,isOpenRequestTimer:s}=e,{contextRequestUrl:f,touchEventId:c}=r.inject(Be,{contextRequestUrl:"",touchEventId:""}),{getGlobalModel:d}=r.inject(we,{getGlobalModel:g=>{}}),p=ve(t),u=async(g={})=>{if(!p||!o||!a)return;let x={};i.forEach(v=>{const{key:_,value:w}=v;if(typeof w=="object"&&w!=null&&w.id){let k={};const{id:A,prop:E,propKey:C,operate:T}=w;A==="THIS"?k=d(r.unref(c))||{}:k=d(A)||{};const R=r.unref(k[E]);let B=null;if(["date","range"].some(I=>Jt(k==null?void 0:k.type,I))){const{value:I,type:$,mode:q}=T||{};if(I&&$&&q)switch($){case"add":B=r.unref(R).add(I,q);break;case"minus":B=r.unref(R).subtract(I,q);break}B==null&&(B=r.unref(R)),B=(B==null?void 0:B.format((C==null?void 0:C.trim())||k.format))||""}else Object.prototype.toString.call(R)==="[object Object]"?C?B=R[C]:B=E?R[E]:R:Jt(k==null?void 0:k.type,"select")&&r.unref(R)&&E&&Array.isArray(r.unref(R))?B=r.unref(R).map(I=>Object.prototype.hasOwnProperty.call(I,E)?I[E]:I):B=R;x[_]=B}else typeof w=="string"&&(x[_]=ve(w))}),x={...window.config.requestParams,...g,...x};let y="";const S=Object.keys(x),m=S.length-1,b=S.length;S.forEach((v,_)=>{let w=x[v];Object.prototype.toString.call(w)==="[object Object]"&&(w=JSON.stringify(w)),_===0?b!==1?y+=`?${v}=${w}&`:y+=`?${v}=${w}`:_===m?y+=`${v}=${w}`:y+=`${v}=${w}&`});try{const v=["get","head"].includes(o);let _=v?p+y:p;x.dataSqlId&&!_.includes("dataSqlId")&&(_+=`${_.includes("?")?"&":"?"}dataSqlId=${x.dataSqlId}`);const w=await Je({baseURL:r.unref(f)||"",url:_,method:o,headers:a,data:v?{}:x});return n(w),w}catch(v){console.error(v)}},h=s&&setInterval(u,l*1e3);return r.onUnmounted(()=>{clearInterval(h)}),u},St=(e=[],n)=>{let{name:t="name",types:o=[]}=n||{};t=(t==null?void 0:t.trim())||t;const a=new Set,i=new Map,l=e.length,s=o.length;if(l===1){const d=[];for(let u=0;u<s;u++){const h=o[u],{label:g,value:x}=h,y={...e[0],value:e[0][x]};a.add(g),d.push(y)}const p=e[0][t]||"";i.set(p,d)}else for(let d=0;d<l;d++){const p=e[d],u=p[t];a.add(u);for(let h=0;h<s;h++){const g=o[h],{label:x,value:y}=g,S={...p,value:p[y]};if(i.has(x)){const m=i.get(x);m.push(S),i.set(x,m)}else i.set(x,[S])}}const f=Array.from(a),c=[];for(const[d,p]of i)c.push({name:d,data:p});return{dimensions:f,dataset:c}},at=(e,n=!1)=>{var o;if(!e)return e;let t="";return e!=null&&e.includes("://")?t=e:t=((o=window==null?void 0:window.config)==null?void 0:o.uploadPath)+e,n&&(t=`url(${t})`),t},O0=(e,n)=>{const t=`${Rr}/preview?pageId=${n}`,o=`${Rr}/${n}`;return e==="preview"?t:o},it=(e,n)=>{var a;if(e==null)return n;const t=e.match(/\{.*\}/g);if(t==null||t.length===0)return n;const o=t.length;for(let i=0;i<o;i++){const l=t[i];if(l==null||l==="")break;let s=(a=l.slice(1,-1))==null?void 0:a.trim();s=s==null?void 0:s.replace(/value/g,n);try{let f=s;(/\(.*\)/g.test(s)||/[+/\\*]/g.test(s))&&(f=Qt(s)),e=e.replace(l,f)}catch{e=e.replace(l,s)}}return e},It=(e={})=>{const{requestToken:n}=r.inject(Br,{requestToken:()=>{}});e.dataType==="indicator"&&n();const t=(l={})=>{const{label:s,name:f,location:c,show:d,indexCode:p}=l;return{label:s,columnName:f,location:c,show:d,calcType:"COLUMN",hrpIndexCode:p}},o=(l={})=>{const{label:s,name:f,location:c,show:d,indexCode:p,calcType:u="COLUMN",builtInFormula:h,builtInValueSource:g,builtInCalcWay:x,formula:y,conditions:S}=l;return{label:s,columnName:f,location:c,show:d,calcType:u,hrpIndexCode:p,aggregate:"SUM",builtInFormula:h,builtInValueSource:g,builtInCalcWay:x,formula:y,conditions:S}},{getGlobalModel:a}=r.inject(we,{getGlobalModel:l=>{}}),i=(l=[])=>{var c;const s=l.length;console.log("controlList",l);const f=[];for(let d=0;d<s;d++){const p=l[d],{id:u,conditionLabel:h,conditionKey:g,conditionValueType:x}=p,y={rule:"NONE",label:h,fieldName:g,fieldValue:"",valueType:x},S=a(u)||{};console.log("model",S);const{value:m,format:b="YYYY-MM-DD"}=S||{};Jt(S.type,"date")?(y.fieldValue=(c=r.unref(m))==null?void 0:c.format(b),y.dateFormat=b):y.fieldValue=r.unref(m),f.push(y)}return f};return async()=>{var R,B;const{graphicConfig:l,type:s}=e;let{source:f,dataViewId:c,plugin:d="1",layer:p,chartType:u,classificationList:h=[],seriesList:g=[],leftAxisList:x=[],rightAxisList:y=[],queryColumnList:S=[],indicators:m=[],controlList:b=[],dataSourceId:v,idxLibMode:_,preview:w=!1}=l||{};p==null&&(Jt(s,"table")?p="1":p="2");let k;if(Array.isArray(h)&&h.length>0){const F=h.length;for(let I=0;I<F;I++){const $=h[I]||{},{label:q="",name:N="",show:L=!1,sort:H,customGroup:D,conditions:O}=$;if(L||F===1){k={label:q,columnName:N,show:L,sort:H,customGroup:D,conditions:O};break}}}let A;if(Array.isArray(g)&&g.length>0){const F=g.length;for(let I=0;I<F;I++){const $=g[I]||{},{label:q="",name:N="",show:L=!1,sort:H,customGroup:D,conditions:O}=$;if(L||F===1){A={label:q,columnName:N,show:L,sort:H,customGroup:D,conditions:O};break}}}const E=[];S==null||S.forEach(F=>{E.push(t(F))});const C=[];if(x==null||x.forEach(F=>{F.location="LEFT",C.push(o(F))}),y==null||y.forEach(F=>{F.location="RIGHT",C.push(o(F))}),m==null||m.forEach(F=>{F.location="LEFT",C.push(o(F))}),p==="1"&&E.length===0)return;if(p==="2"&&C.length===0)return;let T=[];(l==null?void 0:l.pageMode)==="design"?T=l.sqlConditions??[]:T=i(b);try{const F=(R=window==null?void 0:window.config)==null?void 0:R.pageId;return await Je.post(`${ys}/diagram`,{source:f,dataViewId:c,plugin:d,layer:p,chartType:u,classification:k,series:A,indicatorList:C,queryColumns:E,pageFlag:!0,pageId:F,sqlConditions:T,dataSourceId:v,idxLibMode:_,preview:w},{headers:{Authentication:(B=window==null?void 0:window.config)==null?void 0:B.indicatorToken,operateContext:ps}})}catch(F){console.error(F)}}},Tl=()=>{const n=window.location.search.slice(1).split("&"),t=n.length,o={};for(let a=0;a<t;a++){const i=n[a];if(i==null||i==="")continue;const l=i.split("=");if(Array.isArray(l)){const s=l[0];o[s]=l[1]}}window.config.requestParams={...window.config.requestParams,...o},window.config={...window.config,...o}},Bl=r.defineComponent({name:"EcanPageConfig",inheritAttrs:!1,props:{...gn},setup(e){const n=r.computed(()=>({width:e.width,height:e.height,backgroundColor:e.backgroundColor,backgroundImage:at(e.backgroundImage,!0),backgroundSize:e.backgroundSize})),t=r.ref(0),o=r.ref(0),a=r.ref(0),i=r.ref(0),l=r.ref(!1),s=r.ref();let f;const c=()=>new Promise(x=>{r.nextTick(()=>{e.width&&e.height?(t.value=parseFloat(e.width),o.value=parseFloat(e.height)):(t.value=s.value.clientWidth,o.value=s.value.clientHeight),(!a.value||!i.value)&&(a.value=window.screen.width,i.value=window.screen.height),x()})}),d=()=>{t.value&&o.value?(s.value.style.width=`${t.value}px`,s.value.style.height=`${o.value}px`):(s.value.style.width=`${a.value}px`,s.value.style.height=`${i.value}px`)},p=()=>{const x=document.body.clientWidth,y=document.body.clientHeight,S=t.value||a.value,m=o.value||i.value,b=x/S,v=y/m;s.value&&(s.value.style.transform=`scale(${b}, ${v})`)},u=$e.debounce(async()=>{await c(),p()},100),h=()=>{const x=window.MutationObserver;f=new x(u),f.observe(s.value,{attributes:!0,attributeFilter:["style"],attributeOldValue:!0})},g=()=>{f&&(f.disconnect(),f.takeRecords(),f=null)};return r.onMounted(async()=>{l.value=!1,await c(),d(),p(),window.addEventListener("resize",u),h(),l.value=!0}),r.onUnmounted(()=>{window.removeEventListener("resize",u),g()}),{style:n,container:s,ready:l}}}),ed="",Dl={id:"container",ref:"container"};function Rl(e,n,t,o,a,i){return r.openBlock(),r.createElementBlock("div",Dl,[e.ready?(r.openBlock(),r.createElementBlock("div",{key:0,class:"page-config",style:r.normalizeStyle(e.style)},[r.renderSlot(e.$slots,"default",{},void 0,!0)],4)):r.createCommentVNode("",!0)],512)}const N0=ce(se(Bl,[["render",Rl],["__scopeId","data-v-242d350e"]])),io={contextRequestUrl:"",pageMode:"normal",theme:"light",containerMap:{}},so=fe(io),Il=r.defineComponent({name:"EcanProviderConfig",inheritAttrs:!1,props:{...so},setup(e,{expose:n}){Tl();const t=r.ref(),o=()=>{t.value.setAttribute("datav-theme",e.theme)};r.watch(()=>e.theme,()=>{o()}),r.onMounted(()=>{o()});const a=r.computed(()=>ve(e.contextRequestUrl)),i=r.computed(()=>e.pageMode),l=r.computed(()=>e.theme),s=r.ref("");r.provide(Be,{contextRequestUrl:a,pageMode:i,theme:l,touchEventId:s});const f=new Map;console.log("globalModel",f);const c=I=>f.get(I),d=(I,$)=>{f.set(I,$)};r.provide(we,{getGlobalModel:c,setGlobalModel:d});const p=[],u=()=>{p.pop()},h=I=>{p.push(I)},g=new Map,x=I=>g.get(I),y=(I,$)=>{g.set(I,$)};r.provide(Dr,{popUseModalIds:u,pushUseModalIds:h,getModalModel:x,setModalModel:y});const S=Za(),m=new Set,b=(I,$)=>{m.add(I),S.on(I,q=>typeof $[q]=="function"&&$[q]()),r.onBeforeUnmount(()=>{v(I)})},v=I=>{m.delete(I),S.off(I)},_=(I,$)=>{if(I==="PAGE"){const q=p.length;let N=[];if(q===0)N=[...m];else{const L=p[q-1];N=[...x(L)]}N.forEach(L=>{S.emit(L,$)})}else S.emit(I,$)};r.provide(mn,{onEvent:b,offEvent:v,emitEvent:_});const w=r.ref(0),k=()=>{w.value=r.unref(w)+1};r.provide(Br,{requestToken:k});const A=new Map,E=new Map,C=({requestFn:I=()=>{},sortNum:$=0,id:q=""})=>{if(A.has($)){const N=A.get($);N==null||N.push(I)}else A.set($,[I]);E.set(q,I)},T=I=>new Promise(($,q)=>{const N=I.map(L=>L());Promise.all(N).then(L=>{$(L)}).catch(L=>{q(L)})}),R=I=>new Promise(async($,q)=>{if(I){if(typeof I=="string"){const N=E.get(I);if(typeof N=="function"){const L=Je.interceptors.response.use(H=>($(H),H),H=>(q(H),Promise.reject(H)));N(),Je.interceptors.response.eject(L)}}}else{const N=Array.from(A);N.sort((H,D)=>D[0]-H[0]);const L=N.length;try{e.pageMode!=="design"&&r.unref(w)>0;for(let H=0;H<L;H++){const D=N[H][1];await T(D)}}catch(H){console.error(H)}finally{A.clear(),$(null)}}});r.provide(De,{setRequest:C,touchRequest:R});const B=()=>{S.emit(Bt)};r.provide(Bt,{emitRefreshPage:B});const F=I=>{S.on(Bt,()=>I()),r.onMounted(()=>{S.off(Bt)})};return r.onBeforeUnmount(()=>{A==null||A.clear(),E==null||E.clear()}),n({touchRequest:R,getGlobalModel:c,onRefreshPage:F}),{providerConfig:t}}}),Ll={id:"ProviderConfig",ref:"providerConfig"};function Ol(e,n,t,o,a,i){return r.openBlock(),r.createElementBlock("div",Ll,[r.renderSlot(e.$slots,"default")],512)}const P0=ce(se(Il,[["render",Ol]])),lo={...he,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"},co=fe(lo),z0=["refreshData","click","valueChange"],M0="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=",F0="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAACXBIWXMAAAsTAAALEwEAmpwYAAAFHGlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNS42LWMxNDUgNzkuMTYzNDk5LCAyMDE4LzA4LzEzLTE2OjQwOjIyICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIgeG1sbnM6cGhvdG9zaG9wPSJodHRwOi8vbnMuYWRvYmUuY29tL3Bob3Rvc2hvcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RFdnQ9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZUV2ZW50IyIgeG1wOkNyZWF0b3JUb29sPSJBZG9iZSBQaG90b3Nob3AgQ0MgMjAxOSAoV2luZG93cykiIHhtcDpDcmVhdGVEYXRlPSIyMDIyLTA3LTIyVDA5OjM1OjE5KzA4OjAwIiB4bXA6TW9kaWZ5RGF0ZT0iMjAyMi0wNy0yMlQwOTozNTozNyswODowMCIgeG1wOk1ldGFkYXRhRGF0ZT0iMjAyMi0wNy0yMlQwOTozNTozNyswODowMCIgZGM6Zm9ybWF0PSJpbWFnZS9wbmciIHBob3Rvc2hvcDpDb2xvck1vZGU9IjMiIHBob3Rvc2hvcDpJQ0NQcm9maWxlPSJzUkdCIElFQzYxOTY2LTIuMSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDozNmRlNzg2MS1kNzhmLTQyNGYtYTNjOS01ZTk0MjkwY2RjZjEiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6MzZkZTc4NjEtZDc4Zi00MjRmLWEzYzktNWU5NDI5MGNkY2YxIiB4bXBNTTpPcmlnaW5hbERvY3VtZW50SUQ9InhtcC5kaWQ6MzZkZTc4NjEtZDc4Zi00MjRmLWEzYzktNWU5NDI5MGNkY2YxIj4gPHhtcE1NOkhpc3Rvcnk+IDxyZGY6U2VxPiA8cmRmOmxpIHN0RXZ0OmFjdGlvbj0iY3JlYXRlZCIgc3RFdnQ6aW5zdGFuY2VJRD0ieG1wLmlpZDozNmRlNzg2MS1kNzhmLTQyNGYtYTNjOS01ZTk0MjkwY2RjZjEiIHN0RXZ0OndoZW49IjIwMjItMDctMjJUMDk6MzU6MTkrMDg6MDAiIHN0RXZ0OnNvZnR3YXJlQWdlbnQ9IkFkb2JlIFBob3Rvc2hvcCBDQyAyMDE5IChXaW5kb3dzKSIvPiA8L3JkZjpTZXE+IDwveG1wTU06SGlzdG9yeT4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz6VDI+BAAABUUlEQVRIia3WPyhGURgG8B8pi0xisStKMioZLQaLiaQMBoxiVBImCwaLf6MssloUk8Gmb7GgJFKSUvIZ7qe+bvd89+A+03uf989z3nPPPe+tK5fLqtF3tSESzRjFAJ4vemams4IaYqulCq9gEo34QGco+LcCg9hHaxW3jpsiBIZxmMp5kXQTRH1k8S4cZCxoE6//FaiXbEtThm87JjkPI+jN4E9xW4TAQoA/isjNFehCT8B3VoTAUID/xHURAn0B/g5fRQh0B/j7mOJkf2gTaKvY7YG8FsxXPe/hIVbgCTs5C+vAasU+xlooMGuLTrCVI/CDR0zVCgi9gzmUIgQmBbYmT+AdY5LjGMKWpNuaqHWKLrEY8JUkXeYi75iu4DzFfUi6ey9C4AvjeKviliTdRSHmsrvBbMU+lzNg0oidaLvox7LIK+IHdem/iqIROzL/jG+NrT1BRsXKNQAAAABJRU5ErkJggg==",fo=r.defineComponent({name:"EcanText",components:{Skeleton:Vt},props:{...co},setup(e){const n=ue(e),t=r.ref({}),o=r.computed(()=>e.variableFontSize||"14px"),a=r.computed(()=>"-"+r.unref(o));r.watch(()=>[e.data,e.dataType],([x,y])=>{y==="static"&&(t.value=x)},{immediate:!0});const i=r.computed(()=>{var b;const x=r.unref(t),{color:y}=e;let S=e.text;S=S==null?void 0:S.replace(/\n|\\n/g,"<br/>"),S=S==null?void 0:S.replace(/\s(?!\{) | (?!\})\s/g,"&nbsp;");const m=S.match(/\{(.+?)\}/g);if(m==null||m.length===0){if(S&&e.format==="percentage"&&!isNaN(+S)){const v=parseFloat(S),_=(v*100).toFixed(2);v>=0?S=`<span style="color: ${y||"#ED6643"};font-size:${r.unref(o)};display: inline-block;">
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}(ul),ro,pl=typeof process<"u"?(ro=process.env)===null||ro===void 0?void 0:ro.npm_package_version:void 0,yl=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 Ea(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(ya(n))}catch{return!1}},e.prototype.encrypt=function(n){try{return $t(this.getKey().encrypt(n))}catch{return!1}},e.prototype.sign=function(n,t,o){try{return $t(this.getKey().sign(n,t,o))}catch{return!1}},e.prototype.verify=function(n,t,o){try{return this.getKey().verify(n,ya(t),o)}catch{return!1}},e.prototype.getKey=function(n){if(!this.key){if(this.key=new Ea,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=pl,e}();const Ta=new yl,bt=vl();function vl(){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 Ba=Ie.enc.Utf8.parse("ABCDEF1234123412");function bl(e,n){n=n||bt;const t=Ie.enc.Utf8.parse(n);let o="";switch(typeof e){case"string":o=Ie.enc.Utf8.parse(e);break;case"object":o=Ie.enc.Utf8.parse(JSON.stringify(e));break;default:o=Ie.enc.Utf8.parse(e.toString())}return Ie.AES.encrypt(o,t,{iv:Ba,mode:Ie.mode.CBC,padding:Ie.pad.ZeroPadding}).toString()}function Da(e,n){n=n||bt;const t=Ie.enc.Utf8.parse(n),o=Ie.AES.decrypt(e,t,{iv:Ba,mode:Ie.mode.CBC,padding:Ie.pad.ZeroPadding});return Ie.enc.Utf8.stringify(o).toString()}function Sl(e){Ta.setPublicKey(e)}function wl(e){return Ta.encrypt(e)}function Ra(e=""){e.startsWith("/")||(e="/"+e),e=e.split("?")[0];const t=["/diagram","/dataview"].map(o=>`^(.*?)${o}(/|$)`);for(const o of t)if(new RegExp(o).test(e))return!0;return!1}function Cl(e){const{paramType:n,data:t,params:o,method:a}=e;n==="form"?["get","delete"].includes(a)?e.params=St(o,"string"):e.data=St(t,"string"):["get","delete"].includes(a)?e.params=St(o,"string"):e.data=St(t)}function St(e,n){let t=e||{};if(n==="string"){t="";for(const s in e)if(Object.hasOwnProperty.call(e,s)){const f=e[s];t+=`${s}=${encodeURIComponent(f)}&`}}Sl("MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBAMKaTbS1XHH7u/4dhao1n5Lcegpy6AHKX2TjmTP7IDW6N4wznqlL3Tt+U0/Il1TlNp1/EN+tffYYg4dPrrCUDwcCAwEAAQ==");const a=wl(bt);return{c:bl(t,bt),p:a}}window.getEncryptParam=St;function kl(e,n){var t;(t=window==null?void 0:window.config)!=null&&t.encryptFlag&&Ra(e.url)&&(e.data instanceof FormData?e.data=_l(e.data):Cl(e))}function _l(e){const n=e.entries(),t=new FormData,o={};for(const i of n){const l=i[0],s=i[1];s instanceof Blob?t.append(l,s):o[l]=s}const a=St(o,"json");return typeof a=="object"&&(t.append("c",a.c),t.append("p",a.p)),t}window.xhaesKey=bt,window.xhaesDecrypt=Da;function Ia(e,n){var t;if((t=window==null?void 0:window.config)!=null&&t.encryptFlag&&Ra(e.config.url)&&!(e.data instanceof Blob)&&e.data.data!==void 0){const o=Da(e.data.data.content,bt);e.data=JSON.parse(o)}}const La=window.config.requestErrorTip,Qe=W0.create({timeout:1e3*180});Qe.interceptors.request.use(e=>(kl(e),e),e=>Promise.reject(e)),Qe.interceptors.response.use(e=>{var n,t,o;return La&&+((n=e==null?void 0:e.data)==null?void 0:n.code)==500&&ae.message.error({content:((t=e==null?void 0:e.data)==null?void 0:t.msg)||((o=e==null?void 0:e.data)==null?void 0:o.message)||"服务器异常",key:"SERVER_ERROR"}),Ia(e),e},e=>{if(Ia(e==null?void 0:e.response),La)if(e.message.includes("timeout"))ae.message.error({content:"网络连接超时,请重试!",key:"TIMEOUT"});else{const{status:n}=(e==null?void 0:e.response)||{};n>=400&&n<500&&ae.message.error({content:"请求异常",key:"REQUEST_ERROR"}),n>=500&&ae.message.error({content:"服务器异常",key:"REQUEST_ERROR"})}return Promise.reject(e)});const Al=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,")},El=e=>{const n=parseFloat(e+"");return isNaN(n)?e:(n+"").replace(/\B(?=(\d{3})+(?!\d))/g,",")},Xt=(e,n=2)=>{const t=e+"";if(t.includes("%"))return e;const o=parseFloat(t);return isNaN(o)?e:`${(o*100).toFixed(n)}%`},Jt=(e,n)=>typeof e=="string"&&typeof n=="string"?e.toLocaleLowerCase().includes(n.toLocaleLowerCase()):!1,Qt=(e,n)=>{const t={dayjs:Oe,...n};let o="";const a=[];for(const s in t)o+=`${s},`,a.push(t[s]);o=o.replace(/,$/,"");const i=`function (${o}){return ${e}}`;let l;try{l=Function(`"use strict";return (${i})`)()(...a)}catch{return e}return l},ve=(e="",{textData:n,codeData:t}={},{useNewline:o=!1,useSpace:a=!1}={})=>{const l={...window.config||{},...n},s=e.match(/\{(.+?)\}/g);if(s==null||s.length===0)return e;for(let f=0;f<s.length;f++){const c=s[f];let d=c.slice(1,-1).trim();const p=/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,u=d.match(p);for(let h=0;h<u.length;h++){const m=u[h],g=l[m];g!=null&&(d=d.replace(m,g))}(/\(.*\)/g.test(d)||/[+/\\*]/g.test(d))&&(d=Qt(d,t)),e=e.replace(c,d)}return o&&(e=e==null?void 0:e.replace(/\n|\\n/g,"<br/>")),a&&(e=e==null?void 0:e.replace(/\s{2,}?/g,"&nbsp;&nbsp;")),e},ze=(e,n=()=>{})=>{const{requestUrl:t,requestMethod:o,requestHeaders:a,requestParams:i,requestInterval:l,isOpenRequestTimer:s}=e,{contextRequestUrl:f,touchEventId:c}=r.inject(_e,{contextRequestUrl:"",touchEventId:""}),{getGlobalModel:d}=r.inject(Se,{getGlobalModel:m=>{}}),p=ve(t),u=async(m={})=>{if(!p||!o||!a)return;let g={};i.forEach(b=>{const{key:_,value:S}=b;if(typeof S=="object"&&S!=null&&S.id){let k={};const{id:A,prop:D,propKey:w,operate:E}=S;A==="THIS"?k=d(r.unref(c))||{}:k=d(A)||{};const R=r.unref(k[D]);let I=null;if(["date","range"].some(H=>Jt(k==null?void 0:k.type,H))){const{value:H,type:$,mode:P}=E||{};if(H&&$&&P)switch($){case"add":I=r.unref(R).add(H,P);break;case"minus":I=r.unref(R).subtract(H,P);break}I==null&&(I=r.unref(R)),I=(I==null?void 0:I.format((w==null?void 0:w.trim())||k.format))||""}else Object.prototype.toString.call(R)==="[object Object]"?w?I=R[w]:I=D?R[D]:R:Jt(k==null?void 0:k.type,"select")&&r.unref(R)&&D&&Array.isArray(r.unref(R))?I=r.unref(R).map(H=>Object.prototype.hasOwnProperty.call(H,D)?H[D]:H):I=R;g[_]=I}else typeof S=="string"&&(g[_]=ve(S))}),g={...window.config.requestParams,...m,...g};let y="";const C=Object.keys(g),x=C.length-1,v=C.length;C.forEach((b,_)=>{let S=g[b];Object.prototype.toString.call(S)==="[object Object]"&&(S=JSON.stringify(S)),_===0?v!==1?y+=`?${b}=${S}&`:y+=`?${b}=${S}`:_===x?y+=`${b}=${S}`:y+=`${b}=${S}&`});try{const b=["get","head"].includes(o);let _=b?p+y:p;g.dataSqlId&&!_.includes("dataSqlId")&&(_+=`${_.includes("?")?"&":"?"}dataSqlId=${g.dataSqlId}`);const S=await Qe({baseURL:r.unref(f)||"",url:_,method:o,headers:a,data:b?{}:g});return n(S),S}catch(b){console.error(b)}},h=s&&setInterval(u,l*1e3);return r.onUnmounted(()=>{clearInterval(h)}),u},wt=(e=[],n)=>{let{name:t="name",types:o=[]}=n||{};t=(t==null?void 0:t.trim())||t;const a=new Set,i=new Map,l=e.length,s=o.length;if(l===1){const d=[];for(let u=0;u<s;u++){const h=o[u],{label:m,value:g}=h,y={...e[0],value:e[0][g]};a.add(m),d.push(y)}const p=e[0][t]||"";i.set(p,d)}else for(let d=0;d<l;d++){const p=e[d],u=p[t];a.add(u);for(let h=0;h<s;h++){const m=o[h],{label:g,value:y}=m,C={...p,value:p[y]};if(i.has(g)){const x=i.get(g);x.push(C),i.set(g,x)}else i.set(g,[C])}}const f=Array.from(a),c=[];for(const[d,p]of i)c.push({name:d,data:p});return{dimensions:f,dataset:c}},at=(e,n=!1)=>{var o;if(!e)return e;let t="";return e!=null&&e.includes("://")?t=e:t=((o=window==null?void 0:window.config)==null?void 0:o.uploadPath)+e,n&&(t=`url(${t})`),t},Oa=(e,n)=>{const t=`${Rr}/preview?pageId=${n}`,o=`${Rr}/${n}`;return e==="preview"?t:o},it=(e,n)=>{var a;if(e==null)return n;const t=e.match(/\{.*\}/g);if(t==null||t.length===0)return n;const o=t.length;for(let i=0;i<o;i++){const l=t[i];if(l==null||l==="")break;let s=(a=l.slice(1,-1))==null?void 0:a.trim();s=s==null?void 0:s.replace(/value/g,n);try{let f=s;(/\(.*\)/g.test(s)||/[+/\\*]/g.test(s))&&(f=Qt(s)),e=e.replace(l,f)}catch{e=e.replace(l,s)}}return e},Ot=(e={})=>{const{requestToken:n}=r.inject(Br,{requestToken:()=>{}});e.dataType==="indicator"&&n();const t=(l={})=>{const{label:s,name:f,location:c,show:d,indexCode:p}=l;return{label:s,columnName:f,location:c,show:d,calcType:"COLUMN",hrpIndexCode:p}},o=(l={})=>{const{label:s,name:f,location:c,show:d,indexCode:p,calcType:u="COLUMN",builtInFormula:h,builtInValueSource:m,builtInCalcWay:g,formula:y,conditions:C}=l;return{label:s,columnName:f,location:c,show:d,calcType:u,hrpIndexCode:p,aggregate:"SUM",builtInFormula:h,builtInValueSource:m,builtInCalcWay:g,formula:y,conditions:C}},{getGlobalModel:a}=r.inject(Se,{getGlobalModel:l=>{}}),i=(l=[])=>{var c;const s=l.length;console.log("controlList",l);const f=[];for(let d=0;d<s;d++){const p=l[d],{id:u,conditionLabel:h,conditionKey:m,conditionValueType:g}=p,y={rule:"NONE",label:h,fieldName:m,fieldValue:"",valueType:g},C=a(u)||{};console.log("model",C);const{value:x,format:v="YYYY-MM-DD"}=C||{};Jt(C.type,"date")?(y.fieldValue=(c=r.unref(x))==null?void 0:c.format(v),y.dateFormat=v):y.fieldValue=r.unref(x),f.push(y)}return f};return async()=>{var R,I;const{graphicConfig:l,type:s}=e;let{source:f,dataViewId:c,plugin:d="1",layer:p,chartType:u,classificationList:h=[],seriesList:m=[],leftAxisList:g=[],rightAxisList:y=[],queryColumnList:C=[],indicators:x=[],controlList:v=[],dataSourceId:b,idxLibMode:_,preview:S=!1}=l||{};p==null&&(Jt(s,"table")?p="1":p="2");let k;if(Array.isArray(h)&&h.length>0){const M=h.length;for(let H=0;H<M;H++){const $=h[H]||{},{label:P="",name:L="",show:O=!1,sort:z,customGroup:T,conditions:B}=$;if(O||M===1){k={label:P,columnName:L,show:O,sort:z,customGroup:T,conditions:B};break}}}let A;if(Array.isArray(m)&&m.length>0){const M=m.length;for(let H=0;H<M;H++){const $=m[H]||{},{label:P="",name:L="",show:O=!1,sort:z,customGroup:T,conditions:B}=$;if(O||M===1){A={label:P,columnName:L,show:O,sort:z,customGroup:T,conditions:B};break}}}const D=[];C==null||C.forEach(M=>{D.push(t(M))});const w=[];if(g==null||g.forEach(M=>{M.location="LEFT",w.push(o(M))}),y==null||y.forEach(M=>{M.location="RIGHT",w.push(o(M))}),x==null||x.forEach(M=>{M.location="LEFT",w.push(o(M))}),p==="1"&&D.length===0)return;if(p==="2"&&w.length===0)return;let E=[];(l==null?void 0:l.pageMode)==="design"?E=l.sqlConditions??[]:E=i(v);try{const M=(R=window==null?void 0:window.config)==null?void 0:R.pageId;return await Qe.post(`${ys}/diagram`,{source:f,dataViewId:c,plugin:d,layer:p,chartType:u,classification:k,series:A,indicatorList:w,queryColumns:D,pageFlag:!0,pageId:M,sqlConditions:E,dataSourceId:b,idxLibMode:_,preview:S},{headers:{Authentication:(I=window==null?void 0:window.config)==null?void 0:I.indicatorToken,operateContext:ps}})}catch(M){console.error(M)}}},Tl=()=>{const n=window.location.search.slice(1).split("&"),t=n.length,o={};for(let a=0;a<t;a++){const i=n[a];if(i==null||i==="")continue;const l=i.split("=");if(Array.isArray(l)){const s=l[0];o[s]=l[1]}}window.config.requestParams={...window.config.requestParams,...o},window.config={...window.config,...o}},Bl=r.defineComponent({name:"EcanPageConfig",inheritAttrs:!1,props:{...gn},setup(e){const{width:n,height:t}=r.inject(_e,{width:null,height:null}),o=r.computed(()=>({width:n.value,height:t.value,backgroundColor:e.backgroundColor,backgroundImage:at(e.backgroundImage,!0),backgroundSize:e.backgroundSize})),a=r.ref(0),i=r.ref(0),l=r.ref(0),s=r.ref(0),f=r.ref(!1),c=r.ref();let d;const p=()=>new Promise(C=>{r.nextTick(()=>{n.value&&t.value?(a.value=parseFloat(n.value),i.value=parseFloat(t.value)):(a.value=c.value.clientWidth,i.value=c.value.clientHeight),(!l.value||!s.value)&&(l.value=window.screen.width,s.value=window.screen.height),C()})}),u=()=>{a.value&&i.value?(c.value.style.width=`${a.value}px`,c.value.style.height=`${i.value}px`):(c.value.style.width=`${l.value}px`,c.value.style.height=`${s.value}px`)};r.watch([n,t],async()=>{await p(),u(),h(),window.addEventListener("resize",m),g(),f.value=!0},{immediate:!0});const h=()=>{const C=document.body.clientWidth,x=document.body.clientHeight,v=a.value||l.value,b=i.value||s.value,_=C/v;let S=x/b;(a.value!==1920||i.value!==1080)&&(S=i.value/a.value*C/b),c.value&&(c.value.style.transform=`scale(${_}, ${S})`)},m=$e.debounce(async()=>{await p(),h()},100),g=()=>{const C=window.MutationObserver;d=new C(m),d.observe(c.value,{attributes:!0,attributeFilter:["style"],attributeOldValue:!0})},y=()=>{d&&(d.disconnect(),d.takeRecords(),d=null)};return r.onMounted(()=>{f.value=!1}),r.onUnmounted(()=>{window.removeEventListener("resize",m),y()}),{style:o,container:c,ready:f}}}),ed="",Dl={id:"container",ref:"container"};function Rl(e,n,t,o,a,i){return r.openBlock(),r.createElementBlock("div",Dl,[e.ready?(r.openBlock(),r.createElementBlock("div",{key:0,class:"page-config",style:r.normalizeStyle(e.style)},[r.renderSlot(e.$slots,"default",{},void 0,!0)],4)):r.createCommentVNode("",!0)],512)}const Na=le(se(Bl,[["render",Rl],["__scopeId","data-v-06635c02"]])),io={contextRequestUrl:"",pageMode:"normal",theme:"light",containerMap:{},width:"1920px",height:"1080px"},so=fe(io),Il=r.defineComponent({name:"EcanProviderConfig",inheritAttrs:!1,props:{...so},setup(e,{expose:n}){Tl();const t=r.ref(),o=()=>{t.value.setAttribute("datav-theme",e.theme)};r.watch(()=>e.theme,()=>{o()}),r.onMounted(()=>{o()});const a=r.computed(()=>ve(e.contextRequestUrl)),i=r.computed(()=>e.pageMode),l=r.computed(()=>e.theme),s=r.computed(()=>e.width),f=r.computed(()=>e.height),c=r.ref("");r.provide(_e,{contextRequestUrl:a,pageMode:i,theme:l,touchEventId:c,width:s,height:f});const d=new Map;console.log("globalModel",d);const p=P=>d.get(P),u=(P,L)=>{d.set(P,L)};r.provide(Se,{getGlobalModel:p,setGlobalModel:u});const h=[],m=()=>{h.pop()},g=P=>{h.push(P)},y=new Map,C=P=>y.get(P),x=(P,L)=>{y.set(P,L)};r.provide(Dr,{popUseModalIds:m,pushUseModalIds:g,getModalModel:C,setModalModel:x});const v=Z0(),b=new Set,_=(P,L)=>{b.add(P),v.on(P,O=>typeof L[O]=="function"&&L[O]()),r.onBeforeUnmount(()=>{S(P)})},S=P=>{b.delete(P),v.off(P)},k=(P,L)=>{if(P==="PAGE"){const O=h.length;let z=[];if(O===0)z=[...b];else{const T=h[O-1];z=[...C(T)]}z.forEach(T=>{v.emit(T,L)})}else v.emit(P,L)};r.provide(mn,{onEvent:_,offEvent:S,emitEvent:k});const A=r.ref(0),D=()=>{A.value=r.unref(A)+1};r.provide(Br,{requestToken:D});const w=new Map,E=new Map,R=({requestFn:P=()=>{},sortNum:L=0,id:O=""})=>{if(w.has(L)){const z=w.get(L);z==null||z.push(P)}else w.set(L,[P]);E.set(O,P)},I=P=>new Promise((L,O)=>{const z=P.map(T=>T());Promise.all(z).then(T=>{L(T)}).catch(T=>{O(T)})}),M=P=>new Promise(async(L,O)=>{if(P){if(typeof P=="string"){const z=E.get(P);if(typeof z=="function"){const T=Qe.interceptors.response.use(B=>(L(B),B),B=>(O(B),Promise.reject(B)));z(),Qe.interceptors.response.eject(T)}}}else{const z=Array.from(w);z.sort((B,F)=>F[0]-B[0]);const T=z.length;try{e.pageMode!=="design"&&r.unref(A)>0;for(let B=0;B<T;B++){const F=z[B][1];await I(F)}}catch(B){console.error(B)}finally{w.clear(),L(null)}}});r.provide(Te,{setRequest:R,touchRequest:M});const H=()=>{v.emit(Rt)};r.provide(Rt,{emitRefreshPage:H});const $=P=>{v.on(Rt,()=>P()),r.onMounted(()=>{v.off(Rt)})};return r.onBeforeUnmount(()=>{w==null||w.clear(),E==null||E.clear()}),n({touchRequest:M,getGlobalModel:p,onRefreshPage:$}),{providerConfig:t}}}),Ll={id:"ProviderConfig",ref:"providerConfig"};function Ol(e,n,t,o,a,i){return r.openBlock(),r.createElementBlock("div",Ll,[r.renderSlot(e.$slots,"default")],512)}const Pa=le(se(Il,[["render",Ol]])),lo={...he,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:""},co=fe(lo),za=["refreshData","click","valueChange"],Ma="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=",Fa="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAACXBIWXMAAAsTAAALEwEAmpwYAAAFHGlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNS42LWMxNDUgNzkuMTYzNDk5LCAyMDE4LzA4LzEzLTE2OjQwOjIyICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIgeG1sbnM6cGhvdG9zaG9wPSJodHRwOi8vbnMuYWRvYmUuY29tL3Bob3Rvc2hvcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RFdnQ9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZUV2ZW50IyIgeG1wOkNyZWF0b3JUb29sPSJBZG9iZSBQaG90b3Nob3AgQ0MgMjAxOSAoV2luZG93cykiIHhtcDpDcmVhdGVEYXRlPSIyMDIyLTA3LTIyVDA5OjM1OjE5KzA4OjAwIiB4bXA6TW9kaWZ5RGF0ZT0iMjAyMi0wNy0yMlQwOTozNTozNyswODowMCIgeG1wOk1ldGFkYXRhRGF0ZT0iMjAyMi0wNy0yMlQwOTozNTozNyswODowMCIgZGM6Zm9ybWF0PSJpbWFnZS9wbmciIHBob3Rvc2hvcDpDb2xvck1vZGU9IjMiIHBob3Rvc2hvcDpJQ0NQcm9maWxlPSJzUkdCIElFQzYxOTY2LTIuMSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDozNmRlNzg2MS1kNzhmLTQyNGYtYTNjOS01ZTk0MjkwY2RjZjEiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6MzZkZTc4NjEtZDc4Zi00MjRmLWEzYzktNWU5NDI5MGNkY2YxIiB4bXBNTTpPcmlnaW5hbERvY3VtZW50SUQ9InhtcC5kaWQ6MzZkZTc4NjEtZDc4Zi00MjRmLWEzYzktNWU5NDI5MGNkY2YxIj4gPHhtcE1NOkhpc3Rvcnk+IDxyZGY6U2VxPiA8cmRmOmxpIHN0RXZ0OmFjdGlvbj0iY3JlYXRlZCIgc3RFdnQ6aW5zdGFuY2VJRD0ieG1wLmlpZDozNmRlNzg2MS1kNzhmLTQyNGYtYTNjOS01ZTk0MjkwY2RjZjEiIHN0RXZ0OndoZW49IjIwMjItMDctMjJUMDk6MzU6MTkrMDg6MDAiIHN0RXZ0OnNvZnR3YXJlQWdlbnQ9IkFkb2JlIFBob3Rvc2hvcCBDQyAyMDE5IChXaW5kb3dzKSIvPiA8L3JkZjpTZXE+IDwveG1wTU06SGlzdG9yeT4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz6VDI+BAAABUUlEQVRIia3WPyhGURgG8B8pi0xisStKMioZLQaLiaQMBoxiVBImCwaLf6MssloUk8Gmb7GgJFKSUvIZ7qe+bvd89+A+03uf989z3nPPPe+tK5fLqtF3tSESzRjFAJ4vemams4IaYqulCq9gEo34QGco+LcCg9hHaxW3jpsiBIZxmMp5kXQTRH1k8S4cZCxoE6//FaiXbEtThm87JjkPI+jN4E9xW4TAQoA/isjNFehCT8B3VoTAUID/xHURAn0B/g5fRQh0B/j7mOJkf2gTaKvY7YG8FsxXPe/hIVbgCTs5C+vAasU+xlooMGuLTrCVI/CDR0zVCgi9gzmUIgQmBbYmT+AdY5LjGMKWpNuaqHWKLrEY8JUkXeYi75iu4DzFfUi6ey9C4AvjeKviliTdRSHmsrvBbMU+lzNg0oidaLvox7LIK+IHdem/iqIROzL/jG+NrT1BRsXKNQAAAABJRU5ErkJggg==",fo=r.defineComponent({name:"EcanText",components:{Skeleton:Vt},props:{...co},setup(e){const n=ue(e),t=r.ref({}),o=r.computed(()=>e.variableFontSize||"14px"),a=r.computed(()=>"-"+r.unref(o));r.watch(()=>[e.data,e.dataType],([g,y])=>{y==="static"&&(t.value=g)},{immediate:!0});const i=r.computed(()=>{var b;const g=r.unref(t),y=e.increaseColor||e.color,C=e.declineColor||e.color;let x=e.text;x=x==null?void 0:x.replace(/\n|\\n/g,"<br/>"),x=x==null?void 0:x.replace(/\s(?!\{) | (?!\})\s/g,"&nbsp;");const v=x.match(/\{(.+?)\}/g);if(v==null||v.length===0){if(x&&e.format==="percentage"&&!isNaN(+x)){const _=parseFloat(x),S=(_*100).toFixed(2);_>=0?x=`<span style="color: ${y||"#ED6643"};font-size:${r.unref(o)};display: inline-block;">
98
98
  <div class="percentage-img-box">
99
- <img style="width: ${r.unref(o)};filter: ${`drop-shadow(${y||"#ED6643"} ${r.unref(o)} 0px)`};" src="${M0}"/>
99
+ <img style="width: ${r.unref(o)};filter: ${`drop-shadow(${y||"#ED6643"} ${r.unref(o)} 0px)`};" src="${Ma}"/>
100
100
  </div>
101
- <span>${_}%</span>
102
- </span>`:S=`<span style="color: ${y||"#6ACB97"};font-size:${r.unref(o)};display: inline-block;">
101
+ <span style="color: ${e.color}">${S}%</span>
102
+ </span>`:x=`<span style="color: ${C||"#6ACB97"};font-size:${r.unref(o)};display: inline-block;">
103
103
  <div class="percentage-img-box">
104
- <img style="width: ${r.unref(o)};filter: ${`drop-shadow(${y||"#6ACB97"} ${r.unref(o)} 0px)`};" src="${F0}"/>
104
+ <img style="width: ${r.unref(o)};filter: ${`drop-shadow(${C||"#6ACB97"} ${r.unref(o)} 0px)`};" src="${Fa}"/>
105
105
  </div>
106
- <span>-${Math.abs(+_)}%</span>
107
- </span>`}return S}for(let v=0;v<m.length;v++){const _=m[v],w=(b=_==null?void 0:_.slice(1,_.length-1))==null?void 0:b.trim();let k=w;const A=w.match(/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g);for(let C=0;C<A.length;C++){const T=A[C],R=x[T];R&&(k=w.replace(T,R))}if(/\(.*\)/g.test(k)){const C=Qt(k);C!=null&&(k=C)}let E=k;if(E===w&&(E=e.variableDefaultValue),E!=null){const C=e.format;C==="percentage"?(E=+E,isNaN(E)?S=S.replace(_,`<span style="color:${e.variableColor};font-size:${r.unref(o)}">0%</span>`):E>=0?(E=(E*100).toFixed(2),S=S.replace(_,`<span style="color: ${y||"#ED6643"};font-size:${r.unref(o)};display: inline-block;">
106
+ <span style="color: ${e.color}">-${Math.abs(+S)}%</span>
107
+ </span>`}return x}for(let _=0;_<v.length;_++){const S=v[_],k=(b=S==null?void 0:S.slice(1,S.length-1))==null?void 0:b.trim();let A=k;const D=k.match(/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g);for(let E=0;E<D.length;E++){const R=D[E],I=g[R];I&&(A=k.replace(R,I))}if(/\(.*\)/g.test(A)){const E=Qt(A);E!=null&&(A=E)}let w=A;if(w===k&&(w=e.variableDefaultValue),w!=null){const E=e.format;E==="percentage"?(w=+w,isNaN(w)?x=x.replace(S,`<span style="color:${e.variableColor};font-size:${r.unref(o)}">0%</span>`):w>=0?(w=(w*100).toFixed(2),x=x.replace(S,`<span style="color: ${y||"#ED6643"};font-size:${r.unref(o)};display: inline-block;">
108
108
  <div class="percentage-img-box">
109
- <img style="width: ${r.unref(o)};filter: ${`drop-shadow(${y||"#ED6643"} ${r.unref(o)} 0px)`};" src="${M0}"/>
109
+ <img style="width: ${r.unref(o)};filter: ${`drop-shadow(${y||"#ED6643"} ${r.unref(o)} 0px)`};" src="${Ma}"/>
110
110
  </div>
111
- <span>${E}%</span>
112
- </span>`)):(E=(E*100).toFixed(2),S=S.replace(_,`<span style="color: ${y||"#6ACB97"};font-size:${r.unref(o)};display: inline-block;">
111
+ <span style="color: ${e.color}">${w}%</span>
112
+ </span>`)):(w=(w*100).toFixed(2),x=x.replace(S,`<span style="color: ${C||"#6ACB97"};font-size:${r.unref(o)};display: inline-block;">
113
113
  <div class="percentage-img-box">
114
- <img style="width: ${r.unref(o)};filter: ${`drop-shadow(${y||"#6ACB97"} ${r.unref(o)} 0px)`};" src="${F0}"/>
114
+ <img style="width: ${r.unref(o)};filter: ${`drop-shadow(${C||"#6ACB97"} ${r.unref(o)} 0px)`};" src="${Fa}"/>
115
115
  </div>
116
- <span>-${Math.abs(+E)}%</span>
117
- </span>`))):e.format==="percent"?(E=+E,isNaN(E)||(E=(E*100).toFixed(2),S=S.replace(_,`<span style="color:${e.variableColor};font-size:${r.unref(o)}">${E}%</span>`))):e.format==="money"?(E=+E,isNaN(E)||(E=ao(E),S=S.replace(_,`<span style="color:${e.variableColor};font-size:${r.unref(o)}">${E}</span>`))):C==="thousands"?(E=+E,isNaN(E)||(E=El(E),S=S.replace(_,`<span style="color:${e.variableColor};font-size:${r.unref(o)}">${E}</span>`))):S=S.replace(_,`<span style="color:${e.variableColor};font-size:${r.unref(o)}">${E}</span>`)}}return`<span>${S}</span>`}),{pageMode:l}=r.inject(Be,{pageMode:"normal"}),s=ze(e),f=r.ref(!1),c=async()=>{var x;try{f.value=!0;const y=await s();t.value=((x=y==null?void 0:y.data)==null?void 0:x.data)||{}}catch(y){console.error(y)}finally{f.value=!1}},d=()=>{e.dataType!=="static"&&c()};be(e,{refreshData:d});const{setRequest:p}=r.inject(De,{setRequest:({id:x,sortNum:y,requestFn:S})=>{}});p({id:e.id,requestFn:d,sortNum:e.requestSort}),be(e,{refreshData:d});const u=ye(e),h=u("click",()=>{if(!e.linkPage&&!e.href)return;const x=e.linkPage||"",y=O0(r.unref(l),x),S=e.href;let m=S||y;m=ve(m);const b=e.target;b&&(b!=="event"?window.open(m,"_"+b):window.parent.postMessage({type:"openPage",url:S},"*"))}),g=u("valueChange",()=>{});return r.watch(()=>i.value,(x,y)=>{x!==y&&g()}),{style:n,myText:i,loading:f,click:h,textIndent:a,vFontSize:o}}}),V0=()=>{r.useCssVars(e=>({"40616da2":e.vFontSize,"7b8c30a0":e.textIndent,"7bb1ef08":e.percentageSide}))},q0=fo.setup;fo.setup=q0?(e,n)=>(V0(),q0(e,n)):V0;const od="",Nl=["innerHTML"];function Pl(e,n,t,o,a,i){const l=r.resolveComponent("skeleton");return e.loading?(r.openBlock(),r.createElementBlock("div",{key:0,class:"skeleton-wrapper",style:r.normalizeStyle(e.style)},[r.createVNode(l,{loading:e.loading},null,8,["loading"])],4)):(r.openBlock(),r.createElementBlock("div",{key:1,class:"ecan-text",style:r.normalizeStyle(e.style),innerHTML:e.myText,onClick:n[0]||(n[0]=(...s)=>e.click&&e.click(...s))},null,12,Nl))}const H0=ce(se(fo,[["render",Pl],["__scopeId","data-v-8ef73215"]])),zl=r.defineComponent({name:"EcanScrollText",setup(){return{text:r.ref("基础文本")}}}),ad="",Ml={class:"red"};function Fl(e,n,t,o,a,i){return r.openBlock(),r.createElementBlock("div",Ml,r.toDisplayString(e.text),1)}const $0=ce(se(zl,[["render",Fl],["__scopeId","data-v-4dd9c03e"]])),uo={...he,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"}},ho=fe(uo),j0=["timeChange"],Vl=r.defineComponent({name:"EcanTimeDisplay",props:{...ho},setup(e){const n=ue(e),t=()=>{const{format:c,operate:d}=e;let p=Oe();if(d){const{type:u,value:h,mode:g}=d;switch(u){case"add":p=p.add(h,g);break;case"minus":p=p.subtract(h,g)}}return p.format(c)},o=r.ref();r.watch(()=>[e.operate,e.format],()=>{o.value=t()},{immediate:!0,deep:!0}),r.watch(()=>e.updateInterval,()=>{f()},{deep:!0});let a=null;const i=()=>{clearInterval(a),a=null},s=ye(e)("timeChange",()=>{}),f=()=>{a&&i();let c=1e3;const{value:d,mode:p}=e.updateInterval||{};d&&(c=c*d);const u={second:1,minute:60,hour:60*60,day:24*60*60};p&&(c=c*u[p]),a=setInterval(()=>{o.value=t(),s()},c)};return be(e,{timeChange:s}),r.onMounted(()=>{f()}),r.onUnmounted(()=>{i()}),{style:n,time:o}}}),sd="";function ql(e,n,t,o,a,i){return r.openBlock(),r.createElementBlock("div",{class:"time-display",style:r.normalizeStyle(e.style)},r.toDisplayString(e.time),5)}const U0=ce(se(Vl,[["render",ql],["__scopeId","data-v-b628fca2"]])),xo={...he,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"}]},go=fe(xo),G0=["refreshData","click"],Hl=r.defineComponent({name:"EcanList",components:{Skeleton:Vt},props:{...go},setup(e){const n=r.ref(e.data),t=ue(e,["backgroundColor"]),o=r.computed(()=>e.useRanking?{textAlign:"center"}:{textAlign:"left"}),a=(h,g)=>g==null||g===""?h:{money:ao,percentage:Xt,contrast:Xt}[g](h)||"",i=(h,g)=>{const x=parseFloat(h+"");if(g!=="contrast")return"";switch(!0){case x>=0:return"goUp";case x<0:return"goDown"}},l=ze(e),s=r.ref(!1),f=async()=>{var h;if(e.dataType==="request")try{s.value=!0;const g=await l();n.value=((h=g==null?void 0:g.data)==null?void 0:h.data.rows)||[]}catch(g){console.error(g)}finally{s.value=!1}},c=()=>{f()},p=ye(e)("click",()=>{});be(e,{refreshData:c});const{setRequest:u}=r.inject(De,{setRequest:({id:h,sortNum:g,requestFn:x})=>{}});return u({id:e.id,requestFn:f,sortNum:e.requestSort}),{style:t,formatFn:a,columnStyle:o,contrastClass:i,dataSource:n,loading:s,click:p}}}),cd="",fd="",$l=e=>(r.pushScopeId("data-v-7aa27677"),e=e(),r.popScopeId(),e),jl={key:0,class:"title"},Ul={key:0,class:"ranking"},Gl={key:1,class:"ecan-list-content"},Wl={key:0,class:"ranking"},Zl=$l(()=>r.createElementVNode("div",{class:"icon"},null,-1)),Kl={class:"sort"},Yl={key:2,class:"empty"};function Xl(e,n,t,o,a,i){const l=r.resolveComponent("skeleton");return r.openBlock(),r.createElementBlock("div",{class:"ecan-list",style:r.normalizeStyle(e.style)},[r.createVNode(l,{loading:e.loading},{default:r.withCtx(()=>[e.useTitle?(r.openBlock(),r.createElementBlock("div",jl,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(e.columnCount,s=>(r.openBlock(),r.createElementBlock("div",{class:"title-inner",style:r.normalizeStyle({backgroundColor:e.backgroundColor,height:e.itemHeight,width:`calc(100% / ${e.columnCount} - ${e.itemColSpan} * ${e.columnCount-1}/ ${e.columnCount})`,marginRight:s%e.columnCount!==0?e.itemColSpan:""}),key:s},[e.useRanking?(r.openBlock(),r.createElementBlock("div",Ul)):r.createCommentVNode("",!0),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(e.columns,(f,c)=>(r.openBlock(),r.createElementBlock("div",{class:"column",key:f.key||c,style:r.normalizeStyle({color:f.titleColor,...e.columnStyle})},r.toDisplayString(f.title),5))),128))],4))),128))])):r.createCommentVNode("",!0),e.dataSource.length>0?(r.openBlock(),r.createElementBlock("div",Gl,[e.useTitle?(r.openBlock(),r.createElementBlock("div",{key:0,class:"title-placeholder",style:r.normalizeStyle({marginBottom:e.itemRowSpan})},null,4)):r.createCommentVNode("",!0),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(e.dataSource.slice(0,e.sliceCount),(s,f)=>(r.openBlock(),r.createElementBlock("div",{class:"item",style:r.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:s.id||f,onClick:n[0]||(n[0]=(...c)=>e.click&&e.click(...c))},[e.useRanking?(r.openBlock(),r.createElementBlock("div",Wl,[Zl,r.createElementVNode("div",Kl," Top "+r.toDisplayString(f+1),1)])):r.createCommentVNode("",!0),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(e.columns,c=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["column",e.contrastClass(s[c.key],c.format)]),key:c.key,style:r.normalizeStyle({fontSize:c.fontSize,color:e.contrastClass(s[c.key],c.format)===""?c.color:"",fontWeight:c.fontWeight,...e.columnStyle})},r.toDisplayString((c.format!=null||c.format!=="")&&e.formatFn(s[c.key],c.format)),7))),128))],4))),128))])):(r.openBlock(),r.createElementBlock("div",Yl," 暂无数据 "))]),_:1},8,["loading"])],4)}const W0=ce(se(Hl,[["render",Xl],["__scopeId","data-v-7aa27677"]])),mo={...he,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},po=fe(mo),Z0=["refreshData","click"],Jl=r.defineComponent({name:"EcanProportion",components:{AProgress:ae.Progress,Skeleton:Vt},props:{...po},setup(e){const{pageMode:n}=r.inject(Be,{pageMode:"normal"}),t=ue(e),o=r.computed(()=>{const x=e.width;return parseFloat(x)}),a=r.ref({});r.watch(()=>e.data,()=>{(e.dataType==="static"||r.unref(n)==="design")&&(a.value=e.data)},{immediate:!0,deep:!0});const i=r.computed(()=>{const x=r.unref(a),y=+e.variableDefaultValue;if(x==null)return isNaN(y)?0:y;const S=e.text.match(/\{.+\}/g)||[];let m;const b=new Set(Object.keys(x));for(let v=0;v<S.length;v++){const _=S[v],w=_.slice(1,_.length-1);if(b.has(w)){m=x[w];break}}return typeof m=="number"?m=m*100:typeof m=="string"&&!isNaN(+m)?m=+m*100:isNaN(y)?m=0:m=y*100,e.decimalFormat&&(m=+m.toFixed(2)),m}),l=r.computed(()=>{var b;let x=e.text;if(x==="")return r.unref(i);const y=e.variableDefaultValue,S=r.unref(a),m=x.match(/\{.+\}/g)||[];for(let v=0;v<m.length;v++){const _=m[v];let w=_.slice(1,_.length-1);const k=/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,A=_.match(k);for(let C=0;C<(A==null?void 0:A.length);C++){const T=(b=A[C])==null?void 0:b.trim();S[T]!=null&&(w=w.replace(T,S[T]))}let E=w;try{/\(.*\)/g.test(w)&&(E=Qt(w))}catch(C){console.error(C)}typeof+E=="number"&&!isNaN(+E)?(E=+E*100,e.decimalFormat&&(E=E.toFixed(2))):E=y,x=x.replace(_,E+"")}return x}),s=ze(e),f=r.ref(!1),c=async()=>{var x;if(e.dataType==="request")try{f.value=!0;const y=await s();a.value=((x=y==null?void 0:y.data)==null?void 0:x.data)||{}}catch(y){console.error(y)}finally{f.value=!1}};be(e,{refreshData:()=>{c()}});const u=ye(e)("click",()=>{}),{setRequest:h}=r.inject(De,{setRequest:({id:x,sortNum:y,requestFn:S})=>{}});h({id:e.id,requestFn:c,sortNum:e.requestSort});const g=r.computed(()=>{const{gradientShow:x,gradientColor:y,gradientOffset:S,strokeColor:m}=e;let b=m;return x&&y&&(b={"0%":m,[`${S*100}%`]:y}),b});return{style:t,myWidth:o,text:l,myValue:i,loading:f,click:u,customStrokeColor:g}}}),ud="";function Ql(e,n,t,o,a,i){const l=r.resolveComponent("skeleton"),s=r.resolveComponent("a-progress");return r.openBlock(),r.createElementBlock("div",{class:"ecan-proportion",style:r.normalizeStyle(e.style)},[r.createVNode(s,{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:r.withCtx(()=>[e.loading?(r.openBlock(),r.createBlock(l,{key:0,loading:e.loading},null,8,["loading"])):e.strokeTextShow?(r.openBlock(),r.createElementBlock("div",{key:1,class:"format",style:r.normalizeStyle({width:e.strokeTextWidth,fontSize:e.fontSize,color:e.color,fontWeight:e.fontWeight,lineHeight:e.lineHeight})},r.toDisplayString(e.text),5)):r.createCommentVNode("",!0)]),_:1},8,["percent","width","type","strokeColor","strokeLinecap","trailColor","strokeWidth","showInfo","gapDegree","onClick"])],4)}const K0=ce(se(Jl,[["render",Ql],["__scopeId","data-v-269e1e9a"]])),yo={...he,width:"200px",id:"",left:"0px",top:"0px",name:"输入框",keyName:"输入框",rotate:"",type:"ecanInput",value:"",placeholder:"请输入文字"},vo=fe(yo),Y0=["inputChange","inputBlur"],ec=r.defineComponent({name:"EcanInput",components:{AInput:ae.Input},props:{...vo},setup(e){const n=ue(e),t=r.ref("");r.watch(()=>e.value,c=>{t.value=c},{immediate:!0});const{getGlobalModel:o,setGlobalModel:a}=r.inject(we,{getGlobalModel:c=>{},setGlobalModel:(c,d)=>{}});a(e.id,{type:e.type,value:t});const i=()=>{const c=o(e.id);a(e.id,{...c,RECORD:t})},l=ye(e),s=$e.debounce(l("inputChange",()=>{i()}),300),f=l("inputBlur",()=>{});return{style:n,myValue:t,inputBlur:f,inputChange:s}}}),xd="";function tc(e,n,t,o,a,i){const l=r.resolveComponent("a-input");return r.openBlock(),r.createElementBlock("div",{class:"ecan-input",style:r.normalizeStyle(e.style)},[r.createVNode(l,{class:"input",value:e.myValue,"onUpdate:value":n[0]||(n[0]=s=>e.myValue=s),placeholder:e.placeholder,onChange:e.inputChange,onBlur:e.inputBlur},null,8,["value","placeholder","onChange","onBlur"])],4)}const X0=ce(se(ec,[["render",tc]])),bo={...he,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},So=fe(bo),J0=["dateChange"],nc=r.defineComponent({name:"EcanDatePicker",props:{...So},components:{ADatePicker:ae.DatePicker},setup(e){const n=ue(e),t=()=>document.getElementById("ProviderConfig")||document.body,o=r.ref(null);r.watch(()=>[e.value,e.useCurrentTime,e.operate],([f,c,d])=>{let p=null;if(f?p=Oe(ve(f)):c&&(p=Oe()),d&&p){const{type:u,value:h,mode:g}=d;switch(u){case"add":p=p.add(h,g);break;case"minus":p=p.subtract(h,g)}}o.value=p},{deep:!0,immediate:!0});const{setGlobalModel:a}=r.inject(we,{setGlobalModel:(f,c)=>{}});a(e.id,{type:e.type,format:e.format,value:o});const l=ye(e)("dateChange",()=>{}),s=()=>{r.unref(o)&&l()};return be(e,{dateChange:l}),{style:n,getPopupContainer:t,myValue:o,locale:ir,change:s}}}),md="";function oc(e,n,t,o,a,i){const l=r.resolveComponent("a-date-picker");return r.openBlock(),r.createElementBlock("div",{class:"ecan-date-picker",style:r.normalizeStyle(e.style)},[r.createVNode(l,{class:"date-picker",dropdownClassName:"ecan-date-picker-dropdown",value:e.myValue,"onUpdate:value":n[0]||(n[0]=s=>e.myValue=s),format:e.format,picker:e.picker,showTime:e.showTime,locale:e.locale,onChange:e.change,getPopupContainer:e.getPopupContainer},null,8,["value","format","picker","showTime","locale","onChange","getPopupContainer"])],4)}const Q0=ce(se(nc,[["render",oc]])),wo={...he,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:""},Co=fe(wo),ea=["dateChange"],rc=r.defineComponent({name:"EcanRangePicker",components:{ARangePicker:ae.RangePicker},props:{...Co},setup(e){const n=ue(e),t=()=>document.getElementById("ProviderConfig")||document.body,o=r.ref([null,null]);r.watch(()=>[e.startTime,e.endTime,e.useCurrentTime,e.interval,e.intervalUnit,e.operate],([y,S,m,b,v,_])=>{let w=null,k=null;if(m&&(w=Oe().subtract(b,v),k=Oe()),y&&(w=Oe(ve(y))),S&&(k=Oe(ve(S))),_){const{type:A,value:E,mode:C}=_;switch(A){case"add":w=w&&w.add(E,C),k=k&&k.add(E,C);break;case"minus":w=w&&w.subtract(E,C),k=k&&k.subtract(E,C)}}o.value=[w,k]},{immediate:!0});let a=r.unref(o)[0],i=r.unref(o)[1];const l=y=>{Array.isArray(y)?(a=y[0],i=y[1]):(a=null,i=null)},s=y=>{let S=!1,{limitStartTime:m,limitEndTime:b}=e;const v={startTime:`${a||""}`,endTime:`${i||""}`};return m=ve(m,{codeData:v}),b=ve(b,{codeData:v}),m&&b?S=!(Oe(m)<y&&y<Oe(b)):m?S=Oe(m)>y:b&&(S=Oe(b)<y),S},{setGlobalModel:f}=r.inject(we,{setGlobalModel:(y,S)=>{}}),c=r.computed(()=>Array.isArray(r.unref(o))?r.unref(o)[0]:null),d=r.computed(()=>Array.isArray(r.unref(o))?r.unref(o)[1]:null);f(e.id,{type:e.type,format:e.format,startTime:c,endTime:d});const p=ye(e);let u=!1;const h=p("dateChange",()=>{}),g=y=>{const S=r.unref(o),m=S&&S[0]&&S[1];y===!1&&u===!0&&m&&(h(),u=!1)},x=()=>{u=!0};return be(e,{dateChange:h}),{style:n,getPopupContainer:t,locale:ir,dateChange:h,myValue:o,disabledDate:s,calendarChange:l,openChange:g,change:x}}}),yd="",vd="";function ac(e,n,t,o,a,i){const l=r.resolveComponent("a-range-picker");return r.openBlock(),r.createElementBlock("div",{class:"ecan-range-picker",style:r.normalizeStyle(e.style)},[r.createVNode(l,{class:"range-picker",dropdownClassName:"ecan-range-picker-dropdown",value:e.myValue,"onUpdate:value":n[0]||(n[0]=s=>e.myValue=s),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},null,8,["value","format","picker","locale","getPopupContainer","disabled-date","onChange","onCalendarChange","onOpenChange"])],4)}const ta=ce(se(rc,[["render",ac],["__scopeId","data-v-ddb2a0fe"]])),ko={...he,width:"200px",name:"按钮",keyName:"按钮",type:"ecanButton",text:"按钮",mode:"default",danger:!1,shape:"default",href:"",target:"self",fontSize:"14px",fontWeight:400},_o=fe(ko),na=["click"],ic=r.defineComponent({name:"EcanButton",components:{AButton:ae.Button},props:{..._o},setup(e){const n=ue(e),o=ye(e)("click",()=>{const s=r.unref(i);s&&e.target==="event"&&window.parent.postMessage({type:"openPage",url:s},"*")}),a=r.computed(()=>ve(e.text)),i=r.computed(()=>ve(e.href)||null),l=r.computed(()=>{const s=e.target;if(!(s==="event"||r.unref(i)==null))return{self:"_self",blank:"_blank"}[s]});return{style:n,click:o,myText:a,myHref:i,myTarget:l}}}),Sd="";function sc(e,n,t,o,a,i){const l=r.resolveComponent("a-button");return r.openBlock(),r.createElementBlock("div",{class:"ecan-button",style:r.normalizeStyle(e.style)},[r.createVNode(l,{block:"",onClick:e.click,type:e.mode,danger:e.danger,shape:e.shape,href:e.myHref,target:e.myTarget},{default:r.withCtx(()=>[r.createElementVNode("span",{style:r.normalizeStyle({fontSize:e.fontSize,fontWeight:e.fontWeight})},r.toDisplayString(e.myText),5)]),_:1},8,["onClick","type","danger","shape","href","target"])],4)}const oa=ce(se(ic,[["render",sc]])),Ao={...he,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"}]},Eo=fe(Ao),ra=["checkboxChange"],lc=r.defineComponent({name:"EcanCheckbox",components:{ACheckboxGroup:ae.CheckboxGroup},props:{...Eo},setup(e){const n=ue(e),t=r.ref([]),o=r.ref([]),a=u=>{const h=e.value;let g=[];u.forEach(x=>{x.checked&&g.push(x.value)}),typeof h=="string"&&h!==""?g=g.concat(h.split(",")):Array.isArray(h)&&(g=g.concat(h)),t.value=u,o.value=g};r.watch(()=>[e.data,e.value],([u])=>{a(u)},{immediate:!0,deep:!0});const i=ze(e),l=async()=>{var g,x;if(e.dataType!=="request")return;const u=await i(),h=((x=(g=u==null?void 0:u.data)==null?void 0:g.data)==null?void 0:x.rows)||[];a(h)},{getGlobalModel:s,setGlobalModel:f}=r.inject(we,{getGlobalModel:u=>{},setGlobalModel:(u,h)=>{}});f(e.id,{type:e.type,value:o});const d=ye(e)("checkboxChange",()=>{const u=s(e.id);f(e.id,{...u,RECORD:o})}),{setRequest:p}=r.inject(De,{setRequest:({id:u,sortNum:h,requestFn:g})=>{}});return p({id:e.id,requestFn:l,sortNum:e.requestSort}),{myOption:t,style:n,myValue:o,checkboxChange:d}}}),Cd="";function cc(e,n,t,o,a,i){const l=r.resolveComponent("a-checkbox-group");return r.openBlock(),r.createElementBlock("div",{class:"ecan-checkbox",style:r.normalizeStyle(e.style)},[r.createVNode(l,{options:e.myOption,value:e.myValue,"onUpdate:value":n[0]||(n[0]=s=>e.myValue=s),onChange:e.checkboxChange},null,8,["options","value","onChange"])],4)}const aa=ce(se(lc,[["render",cc]])),To={...he,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},Bo=fe(To),ia=["selectChange","refreshData"],fc=r.defineComponent({name:"EcanSelect",components:{ASelect:ae.Select},props:{...Bo},setup(e){const n=ue(e),t=()=>document.getElementById("ProviderConfig")||document.body,o=ze(e),a=r.ref(e.data||[]),i=r.ref();r.watch(()=>[e.value,e.mode,e.selectFirstOption],()=>{const{mode:y,selectFirstOption:S,value:m}=e;y==="multiple"||y==="tags"||y==="combobox"?m?i.value=m.split(","):S&&(i.value=[r.unref(a)[0]]):m?i.value=m:S&&(i.value=r.unref(a)[0])},{immediate:!0});const l=e.dataFieldNames,s=(y,S)=>{const m=l.label,b=l.value;let v;const _=S[m],w=S[b];return _!=null?v=_:w!=null&&(v=w),(v==null?void 0:v.toLowerCase().indexOf(y==null?void 0:y.toLowerCase()))>=0},f=y=>{const{label:S,value:m,options:b}=e.dataFieldNames;if(b&&Array.isArray(y))if(y.some(v=>b in v)){const v={},_=[];y.forEach(w=>{v[w[b]]||(v[w[b]]=[]),v[w[b]].push({[S]:w[S],[m]:w[m]})});for(const w in v)_.push({[S]:w,[b]:v[w]});return _}else return y;else if(!b)return y},c=r.ref(!1),d=async()=>{var y,S;if(e.dataType==="request"){c.value=!0;try{const m=await o();if(a.value=f(((S=(y=m==null?void 0:m.data)==null?void 0:y.data)==null?void 0:S.rows)||[]),e.selectFirstOption){let b=r.unref(a)[0];if(l.options){const v=b[l.options];v&&v.length&&(b=v[0])}i.value=b[l.value]}}catch(m){console.error(m)}finally{c.value=!1}}},{getGlobalModel:p,setGlobalModel:u}=r.inject(we,{getGlobalModel:y=>{},setGlobalModel:(y,S)=>{}});u(e.id,{type:e.type,value:i});const g=ye(e)("selectChange",()=>{const y=e.id,S=p(y);u(y,{...S,RECORD:i})});be(e,{selectChange:g,refreshData:d});const{setRequest:x}=r.inject(De,{setRequest:({id:y,sortNum:S,requestFn:m})=>{}});return x({id:e.id,requestFn:d,sortNum:e.requestSort}),{style:n,getPopupContainer:t,myValue:i,selectChange:g,options:a,filterOption:s,loading:c}}}),_d="",Ad="";function dc(e,n,t,o,a,i){const l=r.resolveComponent("a-select");return r.openBlock(),r.createElementBlock("div",{class:"ecan-select",style:r.normalizeStyle(e.style)},[r.createVNode(l,{class:"select",value:e.myValue,"onUpdate:value":n[0]||(n[0]=s=>e.myValue=s),placeholder:e.placeholder,showSearch:"",allowClear:"",options:e.options,mode:e.mode,getPopupContainer:e.getPopupContainer,fieldNames:e.dataFieldNames,maxTagCount:e.maxTagCount,filterOption:e.filterOption,loading:e.loading,autoClearSearchValue:e.autoClearSearchValue,onChange:e.selectChange},null,8,["value","placeholder","options","mode","getPopupContainer","fieldNames","maxTagCount","filterOption","loading","autoClearSearchValue","onChange"])],4)}const sa=ce(se(fc,[["render",dc],["__scopeId","data-v-7c425ecc"]])),Do={...he,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},Ro=fe(Do),la=["selectChange","refreshData"],uc={name:"EcanTreeSelect",components:{ATreeSelect:ae.TreeSelect},props:{...Ro},setup(e){const n=ue(e),t=r.ref(e.data),o=(h,g)=>{const x=e.dataFieldNames,y=x.label,S=x.value;let m;const b=g[y],v=g[S];return b!=null?m=b:v!=null&&(m=v),(m==null?void 0:m.toLowerCase().indexOf(h==null?void 0:h.toLowerCase()))>=0},a=r.ref();r.watch(()=>[e.multiple,e.value,e.treeCheckable,e.selectFirstOption],()=>{const{multiple:h,value:g,selectFirstOption:x}=e;h?g?a.value=g.split(","):x&&(a.value=[r.unref(t)[0]]):g?a.value=g:x&&(a.value=r.unref(t)[0])},{immediate:!0});const i=r.ref(!1),l=ze(e),s=async()=>{var h,g;if(e.dataType==="request"){i.value=!0;try{const x=await l();t.value=((g=(h=x==null?void 0:x.data)==null?void 0:h.data)==null?void 0:g.rows)||[];const y=r.unref(t)[0];e.value===""&&y!=null&&(a.value=y[e.dataFieldNames.value])}catch(x){console.error(x)}finally{i.value=!1}}},{getGlobalModel:f,setGlobalModel:c}=r.inject(we,{getGlobalModel:h=>{},setGlobalModel:(h,g)=>{}});c(e.id,{type:e.type,value:a});const p=ye(e)("selectChange",()=>{const h=e.id,g=f(h);c(h,{...g,RECORD:a})});be(e,{selectChange:p,refreshData:s});const{setRequest:u}=r.inject(De,{setRequest:({id:h,sortNum:g,requestFn:x})=>{}});return u({id:e.id,requestFn:s,sortNum:e.reque}),{style:n,treeData:t,filterTreeNode:o,myValue:a,loading:i,selectChange:p}}},Td="",Bd="";function hc(e,n,t,o,a,i){const l=r.resolveComponent("a-tree-select");return r.openBlock(),r.createElementBlock("div",{class:"ecan-tree-select",style:r.normalizeStyle(o.style)},[r.createVNode(l,{class:"tree-select",value:o.myValue,"onUpdate:value":n[0]||(n[0]=s=>o.myValue=s),allowClear:"",showSearch:"",loading:o.loading,fieldNames:e.dataFieldNames,treeData:o.treeData,maxTagCount:e.maxTagCount,multiple:e.multiple,treeCheckable:e.treeCheckable,filterTreeNode:o.filterTreeNode,placeholder:e.placeholder,onChange:o.selectChange},null,8,["value","loading","fieldNames","treeData","maxTagCount","multiple","treeCheckable","filterTreeNode","placeholder","onChange"])],4)}const ca=ce(se(uc,[["render",hc],["__scopeId","data-v-37236421"]])),Io={...he,id:"",name:"饼图",keyName:"饼图",type:"ecanPie",width:"400px",height:"400px",top:"",left:"",rotate:"",data:[{name:"名称一",value:335},{name:"名称二",value:310},{name:"名称三",value:234}],titleText:"",titleSubtext:"",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",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:"当前无说明信息"},Lo=fe(Io),fa=["click","refreshData","resetRecord"],Lt=async e=>{var f;const n=await Je.post(e,{},{responseType:"blob"}),{data:t,headers:o}=n,a=o["content-disposition"].replace(/\w+;filename=(.*)/,"$1"),i=new Blob([t]),l=document.createElement("a"),s=window.URL.createObjectURL(i);l.href=s,l.download=decodeURI(a),l.style.display="none",document.body.appendChild(l),l.click(),(f=l.parentNode)==null||f.removeChild(l),window.URL.revokeObjectURL(s)},Oo={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"},No=fe(Oo),da=["showModal"],xc=r.defineComponent({name:"EcanModal",components:{AModal:ae.Modal,CloseOutlined:is},props:{...No},setup(e,{emit:n}){const t=()=>document.getElementById("ProviderConfig")||document.body,o=r.computed(()=>{const L=e.position;return{verticalAlign:{default:"",top:"top",center:"middle",bottom:"bottom"}[L]}}),a=e.fullModal?"1920px":e.width,i=e.fullModal?"1080px":e.height,l=e.originalWidth,s=e.originalHeight,f=r.ref("80%"),c=r.ref(0),d=r.ref(),p=r.ref(0),u=r.ref({}),h=ue(e),g=r.ref({}),x=r.ref(!1),y=r.ref();let S;const m=()=>{d.value=parseFloat(a)/parseFloat(l);const L=parseFloat(i)/parseFloat(s),H=document.body.offsetWidth,D=document.body.offsetHeight;c.value=H*r.unref(d),p.value=D*L,f.value=`${r.unref(d)*100}%`,u.value={width:`${r.unref(c)}px`,height:`${r.unref(p)}px`},g.value={...r.unref(h),backgroundImage:at(e.backgroundImage,!0),transform:`scale(${r.unref(c)/parseFloat(a)},${r.unref(p)/parseFloat(i)})`,width:a,height:i}},b=$e.debounce(()=>{m()},100),v=()=>{const L=window.MutationObserver;S=new L(b),S.observe(document.body,{attributes:!0,attributeFilter:["style"],attributeOldValue:!0})},_=()=>{S&&(S.disconnect(),S.takeRecords(),S=null)},w=r.ref(!1),{touchRequest:k}=r.inject(De,{touchRequest:()=>{}}),A=()=>{w.value=!0},E=()=>{n("close"),w.value=!1},C=()=>{E()},T=()=>{E()},{setModalModel:R,pushUseModalIds:B,popUseModalIds:F}=r.inject(Dr,{pushUseModalIds:L=>{},popUseModalIds:()=>{},setModalModel:(L,H)=>{}}),I=()=>{const L=e.id;let H=[];const D=e.componentList;Array.isArray(D)&&(H=D.map(O=>O.id),R(L,[...new Set(H)]))};r.watch(()=>w.value,async L=>{L?(x.value=!1,B(e.id),I(),await r.nextTick(()=>{m(),window.addEventListener("resize",b),v(),x.value=!0}),k()):(F(),window.removeEventListener("resize",b),_())});const $=r.computed(()=>r.unref(d)>=1),q=r.computed(()=>e.fullModal),N=r.computed(()=>{let L="ecan-modal";return r.unref($)&&(L+=" ecan-full-width-modal"),r.unref(q)&&(L+=" ecan-full-modal"),L});return be(e,{showModal:A}),{modalRef:y,containStyle:u,contentStyle:g,getContainer:t,modalStyle:o,modalWith:f,isFullModal:q,style:h,visible:w,showModal:A,onOk:C,onCancel:T,isFullWidth:$,wrapClassName:N,ready:x}}}),Rd="",Id="",gc={key:0};function mc(e,n,t,o,a,i){const l=r.resolveComponent("close-outlined"),s=r.resolveComponent("a-modal");return r.openBlock(),r.createBlock(s,{getContainer:e.getContainer,wrapClassName:e.wrapClassName,centered:"",visible:e.visible,footer:null,width:e.isFullModal||e.isFullWidth?"100%":e.modalWith,destroyOnClose:e.destroyOnClose,style:r.normalizeStyle(e.modalStyle),closable:!1,onOk:e.onOk,onCancel:e.onCancel,ref:"modalRef"},{default:r.withCtx(()=>[r.createElementVNode("div",{class:"contain",ref:"containRef",style:r.normalizeStyle(e.containStyle)},[e.ready?(r.openBlock(),r.createElementBlock("div",{key:0,class:"content",style:r.normalizeStyle(e.contentStyle)},[r.createElementVNode("div",{class:"header-bar",style:r.normalizeStyle({backgroundColor:e.backgroundColor,padding:"20px 30px"})},[e.title?(r.openBlock(),r.createElementBlock("div",{key:0,class:"ant-modal-title",style:r.normalizeStyle({fontSize:e.titleFontSize,color:e.titleColor})},r.toDisplayString(e.title),5)):r.createCommentVNode("",!0),r.createVNode(l,{class:"close-icon",onClick:e.onCancel},null,8,["onClick"])],4),e.componentList.length?(r.openBlock(),r.createElementBlock("div",gc,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(e.componentList,(f,c)=>(r.openBlock(),r.createBlock(r.resolveDynamicComponent(f.type),r.mergeProps({key:f.id+c},f),null,16))),128))])):r.renderSlot(e.$slots,"default",{key:1},void 0,!0)],4)):r.createCommentVNode("",!0)],4)]),_:3},8,["getContainer","wrapClassName","visible","width","destroyOnClose","style","onOk","onCancel"])}const st=ce(se(xc,[["render",mc],["__scopeId","data-v-4234f235"]]));He.use([lt.CanvasRenderer,We.PieChart,xe.TitleComponent,xe.ToolboxComponent,xe.TooltipComponent,xe.LegendComponent]);const pc=r.defineComponent({name:"EcanPie",props:{...Lo},components:{Spin:Tt,Echarts:nt,EcanModal:st},setup(e,{expose:n}){const t=r.ref(!1),o=ue(e),a=r.ref([]),i=r.ref(),l=r.computed(()=>{let{data:k=[]}=r.unref(a)[0]||{};if(Array.isArray(e.colors)){const A=e.isUseLabelColors,E=e.colors;k=k.map((C,T)=>({label:A?{color:E[T]}:{},...C}))}return{toolbox:{show:e.toolboxShow,left:e.toolboxLeft,top:e.toolboxTop,itemSize:e.toolboxItemSize,itemGap:e.toolboxItemGap,feature:{myDownload:{show:e.toolboxDownloadShow,title:"数据下载",icon:"path://M502.010485 765.939573c3.773953 3.719718 8.686846 5.573949 13.596669 5.573949 0.075725 0 0.151449-0.010233 0.227174-0.011256 0.329505 0.016373 0.654916 0.050142 0.988514 0.050142 0.706081 0 1.400906-0.042979 2.087545-0.116657 4.352121-0.366344 8.607028-2.190899 11.961426-5.496178l335.053985-330.166675c7.619538-7.509021 7.709589-19.773346 0.200568-27.393907s-19.774369-7.711636-27.39493-0.201591L536.193005 706.304358 536.193005 50.019207c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 657.032164-306.881342-302.44838c-7.618515-7.509021-19.883863-7.419993-27.393907 0.199545-7.509021 7.619538-7.419993 19.884886 0.199545 27.393907L502.010485 765.939573z, M867.170139 711.020776c-10.698666 0-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 13.054317-10.620895 23.675212-23.676236 23.675212L205.182103 919.486668c-13.054317 0-23.676236-10.620895-23.676236-23.675212L181.505867 730.391962c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 34.416857 28.000728 62.416562 62.417585 62.416562l618.941638 0c34.417881 0 62.417585-27.999704 62.417585-62.416562L886.540302 730.391962C886.541325 719.693296 877.868805 711.020776 867.170139 711.020776z",onclick(){Lt(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 A;t.value=!0,(A=i.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(){ae.Modal.info({title:"说明信息",content:e.toolboxInfoText})}}}},title:{text:e.titleText,subtext:e.titleSubtext,left:"center"},grid:{top:e.gridTop,bottom:e.gridBottom,left:e.gridLeft,right:e.gridRight,containLabel:e.gridContainLabel},tooltip:{show:e.tooltipShow,trigger:e.tooltipTrigger,formatter:A=>{const{marker:E,seriesName:C,name:T,value:R,percent:B,data:F}=A||{};return ve(e.tooltipFormatter,{textData:{marker:E,name:T,value:R,percent:B,a:C,b:T,c:R,d:B,...F}},{useNewline:!0,useSpace:!0})},textStyle:{color:e.tooltipTextStyleColor}},legend:{show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,textStyle:{color:e.legendTextStyleColor,fontSize:t.value?dt:e.labelFontSize}},color:e.colors,series:[{data:k,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?dt:e.labelFontSize,position:e.labelPosition,formatter:Al(e.labelFormatter)},labelLine:{show:e.labelLineShow,length:e.labelLineLength,length2:e.labelLineLength2},emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"},label:{}}}]}}),s=()=>{t.value=!1},{getGlobalModel:f,setGlobalModel:c}=r.inject(we,{getGlobalModel:k=>{},setGlobalModel:(k,A)=>{}}),{pageMode:d}=r.inject(Be,{pageMode:"normal"}),p=(k=[],A)=>{const{dataset:E}=Dt(k,A);a.value=E},u=(k=[],A)=>{const E=Dt(k,A);a.value=E.dataset};r.watch(()=>e.data,k=>{(e.dataType==="static"||r.unref(d)==="design")&&p(k)},{immediate:!0,deep:!0});const h=r.ref(!1),g=ze(e),x=async()=>{var k,A;if(e.dataType==="request")try{h.value=!0;const E=await g();p((A=(k=E==null?void 0:E.data)==null?void 0:k.data)==null?void 0:A.rows,e.valueTypeDataFieldNames)}catch(E){console.error(E)}finally{h.value=!1}},S=ye(e)("click",k=>{const A=f(e.id);c(e.id,{...A,RECORD:k==null?void 0:k.data})}),m=It(e),b=async()=>{var k;try{h.value=!0;const A=await m(),{data:E}=A.data||{};if(E){const{columns:C=[],rows:T=[]}=((k=A==null?void 0:A.data)==null?void 0:k.data)??{};let R=[];if(C.length>0){const B=C[0],F=C[1];R=T.map(I=>({name:I[B],value:I[F]}))}u(R)}}catch(A){console.error(A)}finally{h.value=!1}},v=()=>{switch(e.dataType){case"indicator":b();break;case"request":x();break}};be(e,{resetRecord:()=>{const k=e.id,A=f(k);c(k,{...A,RECORD:""})},refreshData:v,click:S}),n({refreshData:v});const{setRequest:w}=r.inject(De,{setRequest:k=>{}});return typeof w=="function"&&w({id:e.id,requestFn:v,sortNum:e.requestSort}),{option:l,style:o,click:S,onClose:s,loading:h,ecanModal:i}}}),Od="";function yc(e,n,t,o,a,i){const l=r.resolveComponent("echarts"),s=r.resolveComponent("spin"),f=r.resolveComponent("ecan-modal");return r.openBlock(),r.createElementBlock("div",{style:r.normalizeStyle(e.style)},[r.createVNode(s,{spinning:e.loading},{default:r.withCtx(()=>[r.createVNode(l,{option:e.option,autoresize:"",onClick:e.click},null,8,["option","onClick"])]),_:1},8,["spinning"]),r.createVNode(f,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:e.onClose},{default:r.withCtx(()=>[r.createVNode(s,{class:"spin-wrap",spinning:e.loading},{default:r.withCtx(()=>[r.createVNode(l,{option:e.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"])],4)}const ua=ce(se(pc,[["render",yc]])),Po={...he,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:"",titleSubtext:"",titleLeft:"",legendShow:!0,legendOrient:"horizontal",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},zo=fe(Po),ha=["click","refreshData","resetRecord"];He.use([lt.CanvasRenderer,We.LineChart,xe.ToolboxComponent,xe.TitleComponent,xe.LegendComponent]);const vc=r.defineComponent({name:"EcanLine",props:{...zo},components:{Spin:Tt,Echarts:nt,EcanModal:st},setup(e,{expose:n}){const t=r.ref(),o=r.ref(!1),a=ue(e),i=r.ref([]),l=r.ref([]),s=r.ref(),f=r.computed(()=>o.value?dt:12),c=r.ref({});let d;const p=r.computed(()=>{const B=e.xAxisLabelFormatter,F=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(){Lt(e.toolboxDownloadUrl)}},myDataZoom:{show:o.value?!1:e.toolboxDataZoomShow,title:"放大",icon:"path://M932.42 902.246667L792 761.793333A403.84 403.84 0 0 0 896 490.666667c0-223.86-181.473333-405.333333-405.333333-405.333334S85.333333 266.806667 85.333333 490.666667s181.473333 405.333333 405.333334 405.333333a403.84 403.84 0 0 0 271.126666-104l140.453334 140.453333a21.333333 21.333333 0 0 0 30.173333-30.173333zM128 490.666667c0-200.293333 162.373333-362.666667 362.666667-362.666667s362.666667 162.373333 362.666666 362.666667-162.373333 362.666667-362.666666 362.666666-362.666667-162.373333-362.666667-362.666666z m512 0a21.333333 21.333333 0 0 1-21.333333 21.333333H512v106.666667a21.333333 21.333333 0 0 1-42.666667 0V512H362.666667a21.333333 21.333333 0 0 1 0-42.666667h106.666666V362.666667a21.333333 21.333333 0 0 1 42.666667 0v106.666666h106.666667a21.333333 21.333333 0 0 1 21.333333 21.333334z",onclick(){var I;o.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(){ae.Modal.info({title:"说明信息",content:e.toolboxInfoText})}}}},title:{text:e.titleText,subText:e.titleSubtext,left:"center"},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 L;const $=I.length;let q="",N=e.tooltipFormatter;d=(L=I[0])==null?void 0:L.data,N===""&&(N="{marker} {a} {c}");for(let H=0;H<$;H++){const{marker:D,seriesName:O,name:M,value:P,data:Y}=I[H]||{};H===0&&(q+=`${M}<br/>`),q+=ve(N,{textData:{marker:D,name:M,value:P,a:O,b:M,c:P,...Y}},{useNewline:!0,useSpace:!0}),q+="<br/>"}return q}},xAxis:{type:"category",boundaryGap:e.isBoundaryGap,data:r.unref(l).map(I=>{let $={};return I&&typeof I=="object"?$={...I,textStyle:{fontSize:f.value}}:$={value:I,textStyle:{fontSize:f.value}},$}),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,formatter(I){return it(B,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}},splitArea:{show:e.yAxisSplitAreaShow},axisLabel:{show:e.yAxisLabelShow,fontSize:f.value,color:e.yAxisLabelColor,formatter(I){return it(F,I)}},axisLine:{show:e.yAxisLineAlwaysDisplay,lineStyle:{color:e.yAxisLineStyleColor}}},legend:{show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,textStyle:{fontSize:f.value}},series:r.unref(i)}}),u=()=>{o.value=!1},{getGlobalModel:h,setGlobalModel:g}=r.inject(we,{getGlobalModel:B=>{},setGlobalModel:(B,F)=>{}}),{pageMode:x}=r.inject(Be,{pageMode:"normal"}),y=(B=[],F=!1)=>{let I;if(e.dataFieldConfigType==="key"){const L=F?e.keyTypeDataFieldNames:null;I=St(B,L)}else if(e.dataFieldConfigType==="value"){const L=F?e.valueTypeDataFieldNames:null;I=Dt(B,L)}l.value=I.dimensions;const $=I.dataset,q=[],N=$.length;for(let L=0;L<N;L++)q.push({type:"line",...$[L],symbolSize:e.symbolSize,smooth:e.smooth,areaStyle:{color:e.areaGradientShow?{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:e.colors[L]},{offset:1,color:e.areaGradientColor||"transparent"}],global:!1}:e.colors[L],opacity:e.areaStyleOpacity},lineStyle:{width:e.lineStyleWidth}});i.value=q},S=(B=[],F,I=!1)=>{const q=St(B,I?F:null);l.value=q.dimensions;const N=q.dataset,L=[],H=N.length;for(let D=0;D<H;D++)L.push({type:"line",...N[D],symbolSize:e.symbolSize,smooth:e.smooth,lineStyle:{width:e.lineStyleWidth}});i.value=L};r.watch(()=>[e.data,e.symbolSize,e.smooth,e.lineStyleWidth,e.areaStyleOpacity,e.areaGradientShow,e.areaGradientColor],([B])=>{(e.dataType==="static"||r.unref(x)==="design")&&y(B)},{immediate:!0,deep:!0});const m=r.ref(!1),b=ze(e),v=async()=>{var B,F;if(e.dataType==="request")try{m.value=!0;const I=await b();y((F=(B=I==null?void 0:I.data)==null?void 0:B.data)==null?void 0:F.rows,!0)}catch(I){console.error(I)}finally{m.value=!1}},w=ye(e)("click",B=>{const F=h(e.id);g(e.id,{...F,RECORD:e.tooltipShow?d:B.data})}),k=B=>{t.value.chart.containPixel("grid",[B.offsetX,B.offsetY])&&w()};e.tooltipShow?c.value["zr:click"]=k:c.value.click=w;const A=It(e),E=async()=>{var B;try{m.value=!0;const F=await A(),{columns:I=[],rows:$=[]}=((B=F==null?void 0:F.data)==null?void 0:B.data)??{};let q;I.length>0&&(q={name:I[0],types:I.slice(1).map(N=>({label:N,value:N}))}),S($,q,!0)}catch(F){console.error(F)}finally{m.value=!1}},C=()=>{switch(e.dataType){case"indicator":E();break;case"request":v();break}};be(e,{refreshData:C,resetRecord:()=>{const B=e.id,F=h(B);g(B,{...F,RECORD:""})},click:w});const{setRequest:R}=r.inject(De,{setRequest:B=>{}});return typeof R=="function"&&R({id:e.id,requestFn:C,sortNum:e.requestSort}),n({refreshData:C}),{option:p,style:a,click:w,loading:m,onClose:u,ecanModal:s,eventObj:c,echartRef:t}}}),Pd="";function bc(e,n,t,o,a,i){const l=r.resolveComponent("echarts"),s=r.resolveComponent("spin"),f=r.resolveComponent("ecan-modal");return r.openBlock(),r.createElementBlock("div",{style:r.normalizeStyle(e.style)},[r.createVNode(s,{spinning:e.loading},{default:r.withCtx(()=>[r.createVNode(l,r.mergeProps({ref:"echartRef",option:e.option,autoresize:""},r.toHandlers(e.eventObj)),null,16,["option"])]),_:1},8,["spinning"]),r.createVNode(f,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:e.onClose},{default:r.withCtx(()=>[r.createVNode(s,{class:"spin-wrap",spinning:e.loading},{default:r.withCtx(()=>[r.createVNode(l,{option:e.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"])],4)}const xa=ce(se(vc,[["render",bc]])),Mo={...he,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:"",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:"",toolboxLocation:!1,toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,gradientShow:!0,gradientColor:"",gradientOffset:1,barBorderRadius:"",yAxisLabelShow:!0},Fo=fe(Mo),ga=["refreshData","click","resetRecord"];He.use([lt.CanvasRenderer,We.BarChart,xe.TitleComponent,xe.LegendComponent,xe.DatasetComponent,xe.ToolboxComponent]);const Sc=r.defineComponent({name:"EcanBar",props:{...Fo},components:{Spin:Tt,Echarts:nt,EcanModal:st,AModal:ae.Modal},setup(e,{expose:n}){const t=r.ref(),o=r.ref(!1),a=r.ref(!1),i=r.ref(null),l=r.ref([]),s=ue(e),f=r.ref([]),c=r.ref(),d=r.computed(()=>o.value?dt:12),p=r.computed(()=>{const{gradientShow:N,gradientColor:L,gradientOffset:H,barBorderRadius:D}=e,O=r.unref(f),M=O.length,P=[];for(let Y=0;Y<M;Y++){const Z={...O[Y],type:"bar",barWidth:e.barWidth};if(e.isStack&&(Z.stack="stack"),Z.label={show:e.labelShow,fontSize:e.labelFontSize,position:e.labelPosition,color:e.labelColor},Z.itemStyle={},N&&L&&(Z.itemStyle={color:{x:e.isUseHorizontalAxis?1:0,y:0,x2:0,y2:e.isUseHorizontalAxis?0:1,colorStops:[{offset:0,color:e.colors[Y]},{offset:H,color:L},{offset:1,color:L}]}}),D){const X=D.split(",");if(X!=null&&X.length){const G=[];for(const pe of X){const _e=parseFloat(pe);isNaN(_e)||G.push(_e)}Z.itemStyle.borderRadius=G}}P.push(Z)}return P}),u=r.ref([]),h=r.ref(!1),g=r.computed(()=>{const N=e.yAxisLabelFormatter,L=e.xAxisLabelFormatter;return{toolbox:{show:e.toolboxShow,left:e.toolboxLeft,top:e.toolboxTop,itemSize:e.toolboxItemSize,itemGap:e.toolboxItemGap,feature:{myLocation:{show:o.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(){a.value=!0;const H=t.value.chart.getOption(),{xAxis:D}=H||{};D&&D.length&&(l.value=D[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(){Lt(e.toolboxDownloadUrl)}},myDataZoom:{show:o.value?!1:e.toolboxDataZoomShow,title:"放大",icon:"path://M932.42 902.246667L792 761.793333A403.84 403.84 0 0 0 896 490.666667c0-223.86-181.473333-405.333333-405.333333-405.333334S85.333333 266.806667 85.333333 490.666667s181.473333 405.333333 405.333334 405.333333a403.84 403.84 0 0 0 271.126666-104l140.453334 140.453333a21.333333 21.333333 0 0 0 30.173333-30.173333zM128 490.666667c0-200.293333 162.373333-362.666667 362.666667-362.666667s362.666667 162.373333 362.666666 362.666667-162.373333 362.666667-362.666666 362.666666-362.666667-162.373333-362.666667-362.666666z m512 0a21.333333 21.333333 0 0 1-21.333333 21.333333H512v106.666667a21.333333 21.333333 0 0 1-42.666667 0V512H362.666667a21.333333 21.333333 0 0 1 0-42.666667h106.666666V362.666667a21.333333 21.333333 0 0 1 42.666667 0v106.666666h106.666667a21.333333 21.333333 0 0 1 21.333333 21.333334z",onclick(){var H;o.value=!0,(H=c.value)==null||H.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(){ae.Modal.info({title:"说明信息",content:e.toolboxInfoText})}}}},title:{text:e.titleText,subtext:e.titleSubtext,left:"center"},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:H=>{const D=H.length;let O="",M=e.tooltipFormatter;M===""&&(M="{marker} {a} {c}");for(let P=0;P<D;P++){const{marker:Y,seriesName:Z,name:X,value:G,data:pe}=H[P]||{};P===0&&(O+=`${X}<br/>`),O+=ve(M,{textData:{marker:Y,name:X,value:G,a:Z,b:X,c:G,...pe}},{useNewline:!0,useSpace:!0}),O+="<br/>"}return O},textStyle:{color:e.tooltipTextStyleColor,fontSize:d.value}},legend:{show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,textStyle:{color:e.legendTextStyleColor,fontSize:d.value}},xAxis:{type:e.isUseHorizontalAxis?"value":"category",data:e.isUseHorizontalAxis?null:r.unref(b),inverse:e.isUseHorizontalAxis?e.xAxisInverse:e.axisInverse,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,formatter(H){return it(L,H)}},axisLine:{show:e.xAxisLineShow,lineStyle:{color:e.xAxisLineStyleColor}},axisTick:{show:e.xAxisTickShow}},yAxis:{type:e.isUseHorizontalAxis?"category":"value",data:e.isUseHorizontalAxis?r.unref(u):null,inverse:e.isUseHorizontalAxis?e.axisInverse:e.yAxisInverse,minInterval:e.yAxisMinInterval,splitLine:{show:e.yAxisSplitLineShow,lineStyle:{color:e.yAxisSplitLineStyleColor}},splitArea:{show:e.yAxisSplitAreaShow},axisLabel:{show:e.yAxisLabelShow,fontSize:d.value,color:e.yAxisLabelColor,rotate:e.yAxisLabelRotate,width:e.yAxisLabelWidth,overflow:e.yAxisLabelOverflow,formatter(H){return it(N,H)}},axisLine:{show:e.yAxisLineAlwaysDisplay,lineStyle:{color:e.yAxisLineStyleColor}}},series:r.unref(p)}}),{pageMode:x}=r.inject(Be,{pageMode:"normal"}),y=()=>{o.value=!1},S=(N=[],L=!1)=>{let H={};if(e.dataFieldConfigType==="key"){const D=L?e.keyTypeDataFieldNames:null;H=St(N,D)}else if(e.dataFieldConfigType==="value"){const D=L?e.valueTypeDataFieldNames:null;H=Dt(N,D)}f.value=H.dataset,u.value=H.dimensions},m=(N=[],L,H=!1)=>{const O=St(N,H?L:null);f.value=O.dataset,u.value=O.dimensions},b=r.computed(()=>r.unref(u).map(N=>{let L={};return N&&typeof N=="object"?L={...N,textStyle:{fontSize:d.value}}:L={value:N,textStyle:{fontSize:d.value}},L}));r.watch(()=>e.data,N=>{(e.dataType==="static"||r.unref(x)==="design")&&S(N)},{immediate:!0,deep:!0});const v=ze(e),_=async()=>{var N,L;try{h.value=!0;const H=await v();S((L=(N=H==null?void 0:H.data)==null?void 0:N.data)==null?void 0:L.rows,!0)}catch(H){console.error(H)}finally{h.value=!1}},w=It(e),k=async()=>{var N;try{h.value=!0;const L=await w(),{columns:H=[],rows:D=[]}=((N=L==null?void 0:L.data)==null?void 0:N.data)??{};let O;H.length>0&&(O={name:H[0],types:H.slice(1).map(M=>({label:M,value:M}))}),m(D,O,!0)}catch(L){console.error(L)}finally{h.value=!1}},A=()=>{switch(e.dataType){case"indicator":k();break;case"request":_();break}},E=(N,L)=>!!r.unref(l)[L.value].value.includes(N),C=async()=>{a.value=!1;const N=t.value.chart.getOption();for(let L=0;L<7;L++)await T(N,L)},T=(N,L)=>new Promise(H=>{setTimeout(()=>{const{series:D,color:O,xAxis:M}=N,P=t.value.chart,{splitArea:Y={}}=M[0]||{};D.forEach((Z,X)=>{const G=Z.data;let pe="";L%2?pe=O[X]+"a8":pe=O[X],G[i.value].itemStyle={color:pe}}),L%2?(Y.show=!0,Y.areaStyle.color=r.unref(l).map((Z,X)=>X===i.value?"#ff003b26":"")):Y.show=!1,P.setOption({series:D,xAxis:M}),H()},200)});n({refreshData:A});const R=ye(e),{getGlobalModel:B,setGlobalModel:F}=r.inject(we,{getGlobalModel:N=>{},setGlobalModel:(N,L)=>{}}),I=R("click",N=>{const L=B(e.id);F(e.id,{...L,RECORD:N.data})}),{setRequest:$}=r.inject(De,{setRequest:N=>{}});return typeof $=="function"&&$({id:e.id,requestFn:A,sortNum:e.requestSort}),be(e,{refreshData:A,click:I,resetRecord:()=>{const N=e.id,L=B(N);F(N,{...L,RECORD:""})}}),{option:g,style:s,refreshData:A,click:I,loading:h,onClose:y,ecanModal:c,echartRef:t,handleLocationOk:C,onFilterOption:E,locationVisible:a,locationValue:i,locationNames:l}}}),Md="",Fd="",wc=e=>(r.pushScopeId("data-v-8e2ebfdc"),e=e(),r.popScopeId(),e),Cc={class:"location-wrap"},kc=wc(()=>r.createElementVNode("div",{class:"location-text"},"选择分类:",-1));function _c(e,n,t,o,a,i){const l=r.resolveComponent("echarts"),s=r.resolveComponent("spin"),f=r.resolveComponent("ecan-modal"),c=r.resolveComponent("a-select-option"),d=r.resolveComponent("a-select"),p=r.resolveComponent("a-modal");return r.openBlock(),r.createElementBlock("div",{class:"ecan-bar",style:r.normalizeStyle(e.style)},[r.createVNode(s,{spinning:e.loading},{default:r.withCtx(()=>[r.createVNode(l,{ref:"echartRef",option:e.option,"update-options":{notMerge:!0},autoresize:"",onClick:e.click},null,8,["option","onClick"])]),_:1},8,["spinning"]),r.createVNode(f,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:e.onClose},{default:r.withCtx(()=>[r.createVNode(s,{class:"spin-wrap",spinning:e.loading},{default:r.withCtx(()=>[r.createVNode(l,{option:e.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"]),r.createVNode(p,{visible:e.locationVisible,"onUpdate:visible":n[1]||(n[1]=u=>e.locationVisible=u),title:"快速定位",onOk:e.handleLocationOk},{default:r.withCtx(()=>[r.createElementVNode("div",Cc,[kc,r.createVNode(d,{value:e.locationValue,"onUpdate:value":n[0]||(n[0]=u=>e.locationValue=u),style:{width:"100%"},placeholder:"请选择","show-search":"","filter-option":e.onFilterOption},{default:r.withCtx(()=>[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(e.locationNames,(u,h)=>(r.openBlock(),r.createBlock(c,{key:h,value:h},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(u.value),1)]),_:2},1032,["value"]))),128))]),_:1},8,["value","filter-option"])])]),_:1},8,["visible","onOk"])],4)}const ma=ce(se(Sc,[["render",_c],["__scopeId","data-v-8e2ebfdc"]])),Vo={...he,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:"",tooltipShow:!0,tooltipTrigger:"item",tooltipFormatter:"{marker} {b} {c}",legendShow:!1,legendOrient:"horizontal",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},qo=fe(Vo),pa=["click","refreshData","resetRecord"];He.use([lt.CanvasRenderer,We.ScatterChart,xe.ToolboxComponent,xe.TitleComponent,xe.TooltipComponent,xe.LegendComponent]);const Ac=r.defineComponent({name:"EcanScatter",props:{...qo},components:{Spin:Tt,Echarts:nt,EcanModal:st},setup(e){const n=r.ref(!1),t=ue(e),o=r.ref([]),a=r.ref(),i=r.computed(()=>n.value?dt:12),l=r.computed(()=>{const v=e.xAxisLabelFormatter,_=e.yAxisLabelFormatter;return{toolbox:{show:e.toolboxShow,left:e.toolboxLeft,top:e.toolboxTop,itemSize:e.toolboxItemSize,itemGap:e.toolboxItemGap,feature:{myDownload:{show:e.toolboxDownloadShow,title:"数据下载",icon:"path://M502.010485 765.939573c3.773953 3.719718 8.686846 5.573949 13.596669 5.573949 0.075725 0 0.151449-0.010233 0.227174-0.011256 0.329505 0.016373 0.654916 0.050142 0.988514 0.050142 0.706081 0 1.400906-0.042979 2.087545-0.116657 4.352121-0.366344 8.607028-2.190899 11.961426-5.496178l335.053985-330.166675c7.619538-7.509021 7.709589-19.773346 0.200568-27.393907s-19.774369-7.711636-27.39493-0.201591L536.193005 706.304358 536.193005 50.019207c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 657.032164-306.881342-302.44838c-7.618515-7.509021-19.883863-7.419993-27.393907 0.199545-7.509021 7.619538-7.419993 19.884886 0.199545 27.393907L502.010485 765.939573z, M867.170139 711.020776c-10.698666 0-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 13.054317-10.620895 23.675212-23.676236 23.675212L205.182103 919.486668c-13.054317 0-23.676236-10.620895-23.676236-23.675212L181.505867 730.391962c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 34.416857 28.000728 62.416562 62.417585 62.416562l618.941638 0c34.417881 0 62.417585-27.999704 62.417585-62.416562L886.540302 730.391962C886.541325 719.693296 877.868805 711.020776 867.170139 711.020776z",onclick(){Lt(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 w;n.value=!0,(w=a.value)==null||w.showModal()}},myInfo:{show:e.toolboxInfoShow,title:"说明信息",icon:"path://M512.50142 958.397886c-119.320573 0-231.499491-46.465265-315.871087-130.837884C112.258737 743.188406 65.792449 631.010511 65.792449 511.688915c0-119.319549 46.466288-231.499491 130.837884-315.871087C281.002952 111.445208 393.180847 64.979944 512.50142 64.979944s231.499491 46.465265 315.871087 130.837884c84.372619 84.372619 130.837884 196.551538 130.837884 315.871087 0 119.321596-46.465265 231.499491-130.837884 315.871087C744.000911 911.932622 631.821993 958.397886 512.50142 958.397886zM512.50142 105.962334c-223.718271 0-405.726581 182.00831-405.726581 405.726581s182.00831 405.726581 405.726581 405.726581c223.718271 0 405.727605-182.00831 405.727605-405.726581S736.220714 105.962334 512.50142 105.962334z M510.150886 775.953647c-18.107403 0-32.745798-14.678304-32.745798-32.785707L477.405087 452.191846c0-18.108426 14.638395-32.785707 32.745798-32.785707 18.107403 0 32.745798 14.678304 32.745798 32.785707l0 290.976094C542.896684 761.275343 528.258289 775.953647 510.150886 775.953647z M511.357364 296.458969m-45.080731 0a44.054 44.054 0 1 0 90.161463 0 44.054 44.054 0 1 0-90.161463 0Z",onclick(){ae.Modal.info({title:"说明信息",content:e.toolboxInfoText})}}}},title:{text:e.titleText,subtext:e.titleSubtext,left:"center"},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:i.value,color:e.xAxisLabelColor,interval:e.xAxisLabelInterval||0,rotate:e.xAxisLabelRotate,width:e.xAxisLabelWidth,overflow:e.xAxisLabelOverflow,formatter(w){return it(v,w)}},axisLine:{lineStyle:{color:e.xAxisLineStyleColor}},axisTick:{show:e.xAxisTickShow}},yAxis:{splitLine:{show:e.yAxisSplitLineShow,lineStyle:{color:e.yAxisSplitLineStyleColor}},splitArea:{show:e.yAxisSplitAreaShow},axisLabel:{show:e.yAxisLabelShow,fontSize:i.value,color:e.yAxisLabelColor,formatter(w){return it(_,w)}},axisLine:{show:e.yAxisLineAlwaysDisplay,lineStyle:{color:e.yAxisLineStyleColor}}},tooltip:{show:e.tooltipShow,trigger:e.tooltipTrigger,formatter(w){var R;const{marker:k,seriesName:A}=w,E=((R=w==null?void 0:w.data)==null?void 0:R.record)??{},{name:C,value:T}=E;return ve(e.tooltipFormatter,{textData:{marker:k,seriesName:A,a:A,b:C,c:T,...E}})},axisPointer:{type:"cross"},textStyle:{fontSize:i.value}},legend:{show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,textStyle:{fontSize:i.value}},series:[{data:r.unref(o),type:"scatter",symbolSize:e.symbolSize}]}}),{getGlobalModel:s,setGlobalModel:f}=r.inject(we,{getGlobalModel:v=>{},setGlobalModel:(v,_)=>{}}),{pageMode:c}=r.inject(Be,{pageMode:"normal"}),d=(v=[],_)=>{const{name:w="name",value:k="value"}=_||{};o.value=v.map(A=>({value:[A[w],A[k]],record:A}))};r.watch(()=>e.data,v=>{(e.dataType==="static"||r.unref(c)==="design")&&d(v)},{immediate:!0,deep:!0});const p=r.ref(!1),u=ze(e),h=async()=>{var v,_;if(e.dataType==="request"){p.value=!0;try{const w=await u();d((_=(v=w==null?void 0:w.data)==null?void 0:v.data)==null?void 0:_.rows,e.dataFieldNames)}catch(w){console.error(w)}finally{p.value=!1}}},g=()=>{n.value=!1},y=ye(e)("click",v=>{const _=e.id,w=s(_);f(_,{...w,RECORD:v==null?void 0:v.data})});be(e,{refreshData:()=>{h()},click:y,resetRecord:()=>{const v=e.id,_=s(v);f(v,{..._,RECORD:""})}});const{setRequest:b}=r.inject(De,{setRequest:v=>{}});return typeof b=="function"&&b({id:e.id,requestFn:h,sortNum:e.requestSort}),{option:l,style:t,click:y,loading:p,onClose:g,ecanModal:a}}}),qd="";function Ec(e,n,t,o,a,i){const l=r.resolveComponent("echarts"),s=r.resolveComponent("spin"),f=r.resolveComponent("ecan-modal");return r.openBlock(),r.createElementBlock("div",{style:r.normalizeStyle(e.style)},[r.createVNode(s,{spinning:e.loading},{default:r.withCtx(()=>[r.createVNode(l,{option:e.option,autoresize:"",onClick:e.click},null,8,["option","onClick"])]),_:1},8,["spinning"]),r.createVNode(f,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:e.onClose},{default:r.withCtx(()=>[r.createVNode(s,{class:"spin-wrap",spinning:e.loading},{default:r.withCtx(()=>[r.createVNode(l,{option:e.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"])],4)}const ya=ce(se(Ac,[["render",Ec]])),Ho={...he,id:"",name:"自定义图表",keyName:"自定义图表",type:"ecanCustomGraph",width:"400px",height:"400px",option:{},optionCode:""},$o=fe(Ho),Tc=r.defineComponent({name:"EcanCustomGraph",props:{...$o},components:{Echarts:nt},setup(e){const n=ue(e),t=r.ref();return r.watch(()=>e.optionCode,o=>{try{const a=eval;t.value=a(o)}catch(a){console.error(a)}},{immediate:!0}),{style:n,myOption:t,echarts:Ja}}});function Bc(e,n,t,o,a,i){const l=r.resolveComponent("echarts");return r.openBlock(),r.createElementBlock("div",{style:r.normalizeStyle(e.style)},[r.createVNode(l,{option:e.myOption,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])],4)}const va=ce(se(Tc,[["render",Bc]])),jo={...he,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:"",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,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},Uo=fe(jo),ba=["refreshData","click","resetRecord"];He.use([lt.CanvasRenderer,We.BarChart,We.LineChart,xe.TitleComponent,xe.LegendComponent,xe.DatasetComponent,xe.ToolboxComponent]);const Dc=r.defineComponent({name:"EcanComboGraph",props:{...Uo},components:{Spin:Tt,Echarts:nt,EcanModal:st,AModal:ae.Modal},setup(e,{expose:n}){const t=r.ref(),o=r.ref(!1),a=r.ref(!1),i=r.ref(null),l=r.ref([]),s=ue(e),f=r.ref([]),c=r.ref([]),d=r.ref(),p=r.computed(()=>o.value?dt:12),u=r.computed(()=>({title:{text:e.titleText,subtext:e.titleSubtext,left:"center"},toolbox:{show:e.toolboxShow,left:e.toolboxLeft,top:e.toolboxTop,itemSize:e.toolboxItemSize,itemGap:e.toolboxItemGap,feature:{myLocation:{show:o.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(){a.value=!0;const q=t.value.chart.getOption(),{xAxis:N}=q||{};N&&N.length&&(l.value=N[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(){Lt(e.toolboxDownloadUrl)}},myDataZoom:{show:o.value?!1:e.toolboxDataZoomShow,title:"放大",icon:"path://M932.42 902.246667L792 761.793333A403.84 403.84 0 0 0 896 490.666667c0-223.86-181.473333-405.333333-405.333333-405.333334S85.333333 266.806667 85.333333 490.666667s181.473333 405.333333 405.333334 405.333333a403.84 403.84 0 0 0 271.126666-104l140.453334 140.453333a21.333333 21.333333 0 0 0 30.173333-30.173333zM128 490.666667c0-200.293333 162.373333-362.666667 362.666667-362.666667s362.666667 162.373333 362.666666 362.666667-162.373333 362.666667-362.666666 362.666666-362.666667-162.373333-362.666667-362.666666z m512 0a21.333333 21.333333 0 0 1-21.333333 21.333333H512v106.666667a21.333333 21.333333 0 0 1-42.666667 0V512H362.666667a21.333333 21.333333 0 0 1 0-42.666667h106.666666V362.666667a21.333333 21.333333 0 0 1 42.666667 0v106.666666h106.666667a21.333333 21.333333 0 0 1 21.333333 21.333334z",onclick(){var q;o.value=!0,(q=d.value)==null||q.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(){ae.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:p.value}},tooltip:{trigger:"axis",show:e.tooltipShow,formatter:q=>{const N=q.length;let L="",H=e.tooltipFormatter;H===""&&(H="{marker} {a} {c}");const D=e.seriesTypes;for(let O=0;O<N;O++){const M=D[O],{tooltipFormatter:P}=M||{},{marker:Y,seriesName:Z,name:X,value:G,data:pe}=q[O]||{};O===0&&(L+=`${X}<br/>`),L+=ve(P||H,{textData:{marker:Y,name:X,value:G,seriesName:Z,a:Z,b:X,c:G,...pe}},{useNewline:!0,useSpace:!0}),L+="<br/>"}return L},textStyle:{color:e.tooltipTextStyleColor,fontSize:p.value}},xAxis:{minInterval:e.xAxisMinInterval,type:"category",data:r.unref(c).map(q=>{let N={};return q&&typeof q=="object"?N={...q,textStyle:{fontSize:p.value}}:N={value:q,textStyle:{fontSize:p.value}},N}),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},axisLine:{show:e.xAxisLineShow,lineStyle:{color:e.xAxisLineStyleColor}},axisTick:{show:e.xAxisTickShow}},yAxis:r.unref(S),series:r.unref(f)})),{pageMode:h}=r.inject(Be,{pageMode:"normal"}),g=()=>{o.value=!1},x=(q=[],N=!1)=>{let L;if(e.dataFieldConfigType==="key"){const P=N?e.keyTypeDataFieldNames:null;L=St(q,P)}else if(e.dataFieldConfigType==="value"){const P=N?e.valueTypeDataFieldNames:null;L=Dt(q,P)}c.value=L.dimensions;const H=L.dataset,D=[],O=H.length,M=e.seriesTypes;for(let P=0;P<O;P++){const Y=M[P],{type:Z,axisIndex:X}=Y||{};let G={type:Z,yAxisIndex:X,...H[P]};if(Z==="line"&&(G={...G,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}}),Z==="bar"){const pe={};if(e.barBorderRadius){const _e=e.barBorderRadius.split(",");if(_e!=null&&_e.length){const Qe=[];for(const Ge of _e){const ke=parseFloat(Ge);isNaN(ke)||Qe.push(ke)}pe.borderRadius=Qe}}G={...G,barWidth:e.barWidth,itemStyle:pe}}D.push(G)}f.value=D},y=(q=[],N,L=!1)=>{const D=St(q,L?N:null);c.value=D.dimensions;const O=D.dataset,M=[],P=O.length,Y=e.seriesTypes;for(let Z=0;Z<P;Z++){const X=Y[Z];M.push({type:X==null?void 0:X.type,yAxisIndex:X==null?void 0:X.axisIndex,...O[Z]})}f.value=M};r.watch(()=>[e.data,e.seriesTypes,e.symbolSize,e.smooth,e.areaStyleOpacity,e.lineStyleWidth,e.barWidth,e.barBorderRadius,e.areaGradientShow,e.areaGradientColor],([q])=>{(e.dataType==="static"||r.unref(h)==="design")&&x(q)},{immediate:!0,deep:!0});const S=r.computed(()=>{const q=e.yAxis;return q==null?void 0:q.map(N=>({type:"value",minInterval:e.yAxisMinInterval,splitLine:{show:e.yAxisSplitLineShow,lineStyle:{color:e.yAxisSplitLineStyleColor}},splitArea:{show:e.yAxisSplitAreaShow},axisLabel:{show:e.yAxisLabelShow,fontSize:p.value,color:e.yAxisLabelColor,formatter(L){return it(N.axisLabelFormatter,L)}},axisLine:{show:e.yAxisLineAlwaysDisplay,lineStyle:{color:e.yAxisLineStyleColor}}}))}),m=r.ref(!1),b=ze(e),v=async()=>{var q,N;if(e.dataType==="request")try{m.value=!0;const L=await b();x((N=(q=L==null?void 0:L.data)==null?void 0:q.data)==null?void 0:N.rows,!0)}catch(L){console.error(L)}finally{m.value=!1}},_=It(e),w=async()=>{var q;try{m.value=!0;const N=await _(),{columns:L=[],rows:H=[]}=((q=N==null?void 0:N.data)==null?void 0:q.data)??{};let D;L.length>0&&(D={name:L[0],types:L.slice(1).map(O=>({label:O,value:O}))}),y(H,D,!0)}catch(N){console.error(N)}finally{m.value=!1}},k=()=>{switch(e.dataType){case"indicator":w();break;case"request":v();break}},A=(q,N)=>!!r.unref(l)[N.value].value.includes(q),E=async()=>{a.value=!1;const q=t.value.chart.getOption();for(let N=0;N<7;N++)await C(q,N)},C=(q,N)=>new Promise(L=>{setTimeout(()=>{const{series:H,color:D,xAxis:O}=q,M=t.value.chart,{splitArea:P={}}=O[0]||{};H.forEach((Y,Z)=>{const X=Y.data;let G="";N%2?G=D[Z]+"a8":G=D[Z],X[i.value].itemStyle={color:G}}),N%2?(P.show=!0,P.areaStyle.color=r.unref(l).map((Y,Z)=>Z===i.value?"#ff003b26":"")):P.show=!1,M.setOption({series:H,xAxis:O}),L()},200)});n({refreshData:k});const T=ye(e),{getGlobalModel:R,setGlobalModel:B}=r.inject(we,{getGlobalModel:q=>{},setGlobalModel:(q,N)=>{}}),F=T("click",q=>{const N=R(e.id);B(e.id,{...N,RECORD:q==null?void 0:q.data})}),{setRequest:I}=r.inject(De,{setRequest:q=>{}});return typeof I=="function"&&I({id:e.id,requestFn:k,sortNum:e.requestSort}),be(e,{resetRecord:()=>{const q=e.id,N=R(q);B(q,{...N,RECORD:""})},refreshData:k,click:F}),{style:s,option:u,click:F,loading:m,onClose:g,ecanModal:d,echartRef:t,handleLocationOk:E,onFilterOption:A,locationVisible:a,locationValue:i,locationNames:l}}}),jd="",Ud="",Rc=e=>(r.pushScopeId("data-v-8a8fae05"),e=e(),r.popScopeId(),e),Ic={class:"location-wrap"},Lc=Rc(()=>r.createElementVNode("div",{class:"location-text"},"选择分类:",-1));function Oc(e,n,t,o,a,i){const l=r.resolveComponent("echarts"),s=r.resolveComponent("spin"),f=r.resolveComponent("ecan-modal"),c=r.resolveComponent("a-select-option"),d=r.resolveComponent("a-select"),p=r.resolveComponent("a-modal");return r.openBlock(),r.createElementBlock("div",{style:r.normalizeStyle(e.style)},[r.createVNode(s,{spinning:e.loading},{default:r.withCtx(()=>[r.createVNode(l,{ref:"echartRef",option:e.option,"update-options":{notMerge:!0},autoresize:"",onClick:e.click},null,8,["option","onClick"])]),_:1},8,["spinning"]),r.createVNode(f,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:e.onClose},{default:r.withCtx(()=>[r.createVNode(s,{class:"spin-wrap",spinning:e.loading},{default:r.withCtx(()=>[r.createVNode(l,{option:e.option,"update-options":{notMerge:!0},autoresize:"",onClick:e.click},null,8,["option","onClick"])]),_:1},8,["spinning"])]),_:1},8,["onClose"]),r.createVNode(p,{visible:e.locationVisible,"onUpdate:visible":n[1]||(n[1]=u=>e.locationVisible=u),title:"快速定位",onOk:e.handleLocationOk},{default:r.withCtx(()=>[r.createElementVNode("div",Ic,[Lc,r.createVNode(d,{value:e.locationValue,"onUpdate:value":n[0]||(n[0]=u=>e.locationValue=u),style:{width:"100%"},placeholder:"请选择","show-search":"","filter-option":e.onFilterOption},{default:r.withCtx(()=>[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(e.locationNames,(u,h)=>(r.openBlock(),r.createBlock(c,{key:h,value:h},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(u.value),1)]),_:2},1032,["value"]))),128))]),_:1},8,["value","filter-option"])])]),_:1},8,["visible","onOk"])],4)}const Sa=ce(se(Dc,[["render",Oc],["__scopeId","data-v-8a8fae05"]])),Go={...he,name:"边框",keyName:"边框",type:"ecanBorder",width:"300px",height:"300px",zIndex:0,fontSize:"16px",fontFamily:"",fontWeight:700,title:"标题",mode:"no-title",borderColor:"#eee",borderRadius:"5px",borderStyle:"solid",borderWidth:"2px",backgroundColor:"#ffffff",useBorderModify:!1,textShadow:"",data:{}},Wo=fe(Go),wa=["click"],Nc=r.defineComponent({name:"EcanBorder",props:{...Wo},setup(e){const n=ue(e,["background"]),{theme:t}=r.inject(Be,{theme:"light"}),o=r.computed(()=>({width:"100%",height:"100%"})),i=ye(e)("click",()=>{}),l=r.ref([]);r.watch(()=>e.data,f=>{l.value=f},{immediate:!0,deep:!0}),be(e,{click:i});const{setGlobalModel:s}=r.inject(we,{setGlobalModel:(f,c)=>{}});return s(e.id,{type:e.type,value:l}),{style:n,click:i,borderStyle:o,theme:t}}}),Pc="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHQAAAAcCAMAAACH42siAAAAZlBMVEUAAABBltJCldJCldFEk89BltJCltFBldI/lMBKndtmb9pCltNDldFAkclAldNBldJBltM/lM5AltNCldJBldJBlNJBltVBldJBlNJBlNI/lNNBldJBldNAldJBldJBldJBldNBldIiNK7WAAAAInRSTlMAM4BNGmaz5gQGbiAPCV1WQxUpOCY9EmxQSC2jdoacqZK8uPo7tAAAAZ9JREFUSMe90NmOwjAMheGka0J3SulCy/L+Lzk4I+HYhckEKs7dr1x8kQVM5YJMZ7SLiXVHOw817Z72cSns3BmziY7EnGRGjDqUpKt4pEZQKruvyaJt85YmBUebKLJVNUlpq6oOQ1tVVRzbqu6DwFb1NUlsVd3SNL0UDM0jqkaSqoeQqjKmahtQNUzuC1AtU1sF9KHmnmrtrSK6idqBWqE6GFVxFdGvqDGoJ01Qt7rfTEV0e7V6qSK6VjNPtTaqoOq8Ugnqr7aeav+rAuqrTh+qZw3o1urAVcFVQD3U6ZnaYY9MLZk6G5WhDaDFI9UeUPyE7gCNsAdAD9gxoBJ7ARRPUVwALXdu8/h/s3xmjtwUu0/M0M/UJzBjAei3TUTdpmKmcpkBmOHKBNTPzJi59zYJys3DO2aL78YcmNkLgrrM9m9TucwzmoBy08xlju+bgL42G4c5OcxqZSLqbwqXOVNTGXMWFD0ak6KN1ZKaojYmbribndW9MXELNQEFFUyiNqQlmEQ1JqpgErUifUUTUVEIupx1wzpjvWfdsh4FQX8ANe4nnpsb9NEAAAAASUVORK5CYII=",zc="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHQAAAAcCAMAAACH42siAAAAaVBMVEUAAABElM9BltJCldJCldFBltJBldJCltFNmrNCmNNFldNAldJBldNBldRBldNBldNBldJCoNFBldJBltNBldJBldJAldJAltJBldJBldJBldNAlNFAldJBlNJAldJBldNBldJBldJBldLfIVowAAAAI3RSTlMAGjJNgGbmswMSCScgDTs/ZAVRK0eYj2s3r3AWveHEhXjeXb5rzlgAAAFqSURBVEjH1dbJVsJAEIXhHjJ05tlEooK8/0NKsbDrFjmHiBD0Lvqcf9PfthRM7xvoZMQuLHZaOejGYLtcdEItzI9oaLg5xIHj5hgcG262oXXcrGzJ23Umg5717C7NKBrAjOMDM8YgCI5ghmEPprUTmMZkrBOtdbJgfpZovho0gwzNOkfTam9k5jSGkKlTMOezWT3VLH5qlg8wQzSbO5jJ28l8Z+YLmZMwuz9lupvNXpjlFTMTZv7vzFSatTDtGnNeYdpNzZTMSJhx5f84m8Y3mSEzJzTVolko3J7Qve+a0J3vntDWffdEaMUQQo1vTWjuuyA0UWvUUarqzuqLUMPt1MD3uKTaTdRwvdrdorpFtfZtH6eyK2F3RS23U3uhlr9VB1TdE1V2h7Vr1O4mdbdera6o+Wq1Vqi2rEktFapGoZopVLVCtVCXag19IBPUiiWpBrojE1QNXZAp1/TYbhKdKVwuWotORKfn9wu/DSc/X9T6qgAAAABJRU5ErkJggg==",Wd="",qe=e=>(r.pushScopeId("data-v-1550b11b"),e=e(),r.popScopeId(),e),Mc=qe(()=>r.createElementVNode("div",{class:"top-left border-item"},null,-1)),Fc=qe(()=>r.createElementVNode("div",{class:"top-right border-item"},null,-1)),Vc=qe(()=>r.createElementVNode("div",{class:"bottom-left border-item"},null,-1)),qc=qe(()=>r.createElementVNode("div",{class:"bottom-right border-item"},null,-1)),Hc={class:"title-item-wrapper"},$c={class:"title-item"},jc=qe(()=>r.createElementVNode("img",{class:"title-decoration-left",src:Pc},null,-1)),Uc={class:"title"},Gc=qe(()=>r.createElementVNode("img",{class:"title-decoration-right",src:zc},null,-1)),Wc=qe(()=>r.createElementVNode("div",{class:"top-left border-item"},null,-1)),Zc=qe(()=>r.createElementVNode("div",{class:"top-right border-item"},null,-1)),Kc=qe(()=>r.createElementVNode("div",{class:"bottom-left border-item"},null,-1)),Yc=qe(()=>r.createElementVNode("div",{class:"bottom-right border-item"},null,-1)),Xc={key:2,class:"left-title"},Jc={class:"title"};function Qc(e,n,t,o,a,i){return r.openBlock(),r.createElementBlock("div",{class:"ecan-border",style:r.normalizeStyle(e.style),onClick:n[0]||(n[0]=(...l)=>e.click&&e.click(...l))},[e.mode==="no-title"?(r.openBlock(),r.createElementBlock("div",{key:0,class:"no-title",style:r.normalizeStyle(e.borderStyle)},[e.useBorderModify?(r.openBlock(),r.createElementBlock(r.Fragment,{key:0},[Mc,Fc,Vc,qc],64)):r.createCommentVNode("",!0)],4)):r.createCommentVNode("",!0),e.mode==="top-title"?(r.openBlock(),r.createElementBlock("div",{key:1,class:"top-title",style:r.normalizeStyle(e.borderStyle)},[r.createElementVNode("div",Hc,[r.createElementVNode("div",$c,[jc,r.createElementVNode("div",Uc,r.toDisplayString(e.title),1),Gc])]),Wc,Zc,Kc,Yc],4)):r.createCommentVNode("",!0),e.mode==="left-title"?(r.openBlock(),r.createElementBlock("div",Xc,[r.createElementVNode("div",Jc,[r.createElementVNode("span",null,r.toDisplayString(e.title),1)])])):r.createCommentVNode("",!0)],4)}const Ca=ce(se(Nc,[["render",Qc],["__scopeId","data-v-1550b11b"]])),Zo={...he,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"},Ko=fe(Zo),ka=["tabChange"],ef=r.defineComponent({name:"EcanTabs",props:{...Ko},setup(e){const n=ue(e),t=r.ref(0);r.watch(()=>e.activeKey,h=>{t.value=h},{immediate:!0});const{pageMode:o}=r.inject(Be,{pageMode:"normal"});let a=null;const i=()=>{const h=Array.isArray(r.unref(l))?r.unref(l).length-1:0;e.autoSwitch&&h>0&&(a=setInterval(()=>{const g=r.unref(t)+1;g<=h?t.value=g:t.value=0,s.value=r.unref(l)[r.unref(t)],p()},e.autoSwitchInterval*1e3))};r.onMounted(()=>{r.unref(o)!=="design"&&i()}),r.onBeforeUnmount(()=>{clearInterval(a)});const l=r.ref([]),s=r.ref({});r.watch(()=>e.data,h=>{l.value=h,s.value=Array.isArray(h)&&h.length>0?h[0]:{}},{immediate:!0,deep:!0});const f=h=>t.value===h,c=ye(e),{setGlobalModel:d}=r.inject(we,{setGlobalModel:(h,g)=>{}});d(e.id,{value:s,activeKey:t});const{emitRefreshPage:p}=r.inject(Bt,{emitRefreshPage:()=>{}}),u=c("tabChange",(h,g)=>{g!==r.unref(t)&&(s.value=h,t.value=g,p())});return be(e,{tabChange:u}),{style:n,activeKey:t,isActive:f,tabChange:u,myData:l,useImagePath:at}}}),Kd="",tf=["onClick"];function nf(e,n,t,o,a,i){return r.openBlock(),r.createElementBlock("div",{class:"ecan-tabs",style:r.normalizeStyle(e.style)},[r.createElementVNode("div",{class:"tabs-header",style:r.normalizeStyle({fontSize:e.tabFontSize,alignItems:e.tabAlignItems,justifyContent:e.tabJustifyContent,flexDirection:e.tabFlexDirection})},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(e.myData,(l,s)=>(r.openBlock(),r.createElementBlock("div",{class:"tab",style:r.normalizeStyle({padding:`5px ${e.tabHorizontalPadding}`,color:e.isActive(s)?e.activeTabColor:e.tabColor,backgroundImage:e.isActive(s)?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:s,onClick:r.withModifiers(f=>e.tabChange(l,s),["prevent","stop"])},[r.createElementVNode("div",{class:"tab-inner",style:r.normalizeStyle({borderBottom:!e.activeTabBackgroundImage&&!e.tabBackgroundImage?`1px solid ${e.isActive(s)?e.activeTabColor:"transparent"}`:""})},r.toDisplayString(l.title),5)],12,tf))),128))],4)],4)}const _a=ce(se(ef,[["render",nf],["__scopeId","data-v-a2045b93"]])),Yo={...he,name:"图片",keyName:"图片",type:"ecanImage",width:"300px",height:"300px",imgUrl:"",target:"self",href:"",linkPage:""},Xo=fe(Yo),of=r.defineComponent({name:"EcanImage",props:{...Xo},setup(e){const n=ue(e),t=r.computed(()=>at(e.imgUrl)),{pageMode:o}=r.inject(Be,{pageMode:"normal"});return{style:n,myImgUrl:t,onClick:()=>{if(!e.linkPage&&!e.href)return;const i=e.linkPage||"",l=O0(r.unref(o),i),s=e.href;let f=s||l;f=ve(f);const c=e.target;c&&(c!=="event"?window.open(f,"_"+c):window.parent.postMessage({type:"openPage",url:s},"*"))}}}}),Xd="",rf=["src"];function af(e,n,t,o,a,i){return e.myImgUrl!==""?(r.openBlock(),r.createElementBlock("img",{key:0,style:r.normalizeStyle(e.style),src:e.myImgUrl,onClick:n[0]||(n[0]=(...l)=>e.onClick&&e.onClick(...l))},null,12,rf)):(r.openBlock(),r.createElementBlock("div",{key:1,class:"image-placeholder",style:r.normalizeStyle(e.style)}," 请上传图片 ",4))}const Aa=ce(se(of,[["render",af],["__scopeId","data-v-ef7a7bee"]])),Jo={...he,name:"网页",keyName:"网页",type:"ecanIframe",width:"300px",height:"300px",link:"",linkType:"web"},Qo=fe(Jo),sf=r.defineComponent({name:"EcanIframe",props:{...Qo},setup(e){const n=ue(e),{contextRequestUrl:t}=r.inject(Be,{contextRequestUrl:""}),o=r.computed(()=>{let a=ve(e.link);if(e.linkType==="erd"&&a!=null){let i=r.unref(t);i[i.length-1]==="/"?i+="erdReport":i+="/erdReport",a=`${vs||i}?_t=0&uid=${a}`}return a});return{style:n,myLink:o}}}),Qd="",lf=["src"];function cf(e,n,t,o,a,i){return e.myLink?(r.openBlock(),r.createElementBlock("iframe",{key:0,src:e.myLink,style:r.normalizeStyle(e.style)},null,12,lf)):(r.openBlock(),r.createElementBlock("div",{key:1,class:"iframe-placeholder",style:r.normalizeStyle(e.style)}," 请填写网页链接 ",4))}const Ea=ce(se(sf,[["render",cf],["__scopeId","data-v-19bc100c"]])),er={...he,zIndex:2,name:"表格",keyName:"表格",type:"ecanTable",width:"400px",height:"240px",bordered:!1,headerFontSize:"14px",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:"",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:{}},tr=fe(er),Ta=["click","refreshData","resetRecord","exportTableData"],nr=r.defineComponent({name:"EcanTable",components:{Skeleton:Vt,AButton:ae.Button,AInput:ae.Input,ACheckboxGroup:ae.CheckboxGroup,ATable:ae.Table,ATableSummary:ae.TableSummary,ATableSummaryRow:ae.TableSummaryRow,ATableSummaryCell:ae.TableSummaryCell},props:{...tr},setup(e,{expose:n}){const t=r.ref(),o=r.ref(!1),a=ue(e),i=r.computed(()=>{if(e.paginationShow)switch(e.size){case"small":return 90;case"middle":return 100;default:return 120}else switch(e.size){case"small":return 40;case"middle":return 47;default:return 55}}),l=r.computed(()=>e.scrollX),s=r.computed(()=>parseFloat(e.height)-r.unref(i)),f=r.ref([]),c=r.ref([]),d=r.ref([]),p=r.ref([]),u=r.ref(0),h=r.ref(1),g=r.ref(e.paginationPageSize||10),x=r.reactive([]),y=(j=[])=>{if(Array.isArray(j)&&j.length>0){const U=j.length,K=e.columnsFixedNum;for(let Q=0;Q<U;Q++){const W=j[Q];Q<K?W.fixed="left":W.fixed=!1;const{cellAlign:ne="center",cellColor:ee,dataIndex:ie,title:le,tableFilter:de,headerCellAlign:Te,headerCellColor:Se}=W;de&&(x.push(ie),W.filterOptionsInputValue="",W.filterCheckboxGroupValue=[],W.customFilterDropdown=!0,W.onFilter=(Ve,Ct)=>Ct[ie].toString().toLowerCase().includes(Ve.toLowerCase())),W.customHeaderCell=()=>({style:{display:"table-cell",verticalAlign:"middle",fontSize:e.headerFontSize,fontWeight:e.headerFontWeight,textAlign:Te||"center",color:Se,borderBottomColor:e.borderColor}}),W.customCell=(Ve,Ct)=>({style:{textAlign:ne,color:ee,backgroundColor:e.cellBackgroundColor,borderBottomColor:e.borderColor},class:{highlight:r.unref(H)===Ct&&e.clickHighlight},onClick:F("click",()=>{const Ot=e.id,et=I(Ot);Ve={dataIndex:ie,title:le,...Ve},$(Ot,{...et,RECORD:Ve})})}),Array.isArray(W.children)&&y(W.children)}}},S=(j=[])=>(e.isUseSeq&&j.unshift({title:"序号",dataIndex:"SEQ",align:"center"}),e.isUseAction&&j.push({title:"操作",dataIndex:"ACTION",width:e.actionColumnWidth}),y(j),j);r.watch(g,()=>{h.value=1,O(!1)}),r.watch(t,j=>{o.value=!!j}),r.watch(()=>[e.columns,e.isUseSeq,e.isUseAction,e.columnsFixedNum,e.actionColumnWidth,e.cellBackgroundColor,e.borderColor],()=>{f.value=S($e.cloneDeep(e.columns))},{immediate:!0,deep:!0}),r.watch(()=>[e.data,e.dataType],([j,U])=>{U==="static"&&(c.value=j)},{immediate:!0});const m=r.ref({}),b=j=>{if(Array.isArray(j)){const U=j.length,K=x,Q=K.length,W={};for(let ee=0;ee<U;ee++){const ie=j[ee];for(let le=0;le<Q;le++){const de=K[le];if(W[de])W[de].add(ie[de]);else{const Te=new Set;Te.add(ie[de]),W[de]=Te}}}const ne={};for(const ee in W)if(Object.prototype.hasOwnProperty.call(W,ee)){const ie=W[ee],le=Array.from(ie);ne[ee]=le.map(de=>({label:de,value:de}))}m.value=ne}};r.watch(()=>[e.isReverse,f.value,c.value],()=>{const j=r.unref(f),U=r.unref(c);if(b(U),e.isReverse){const{columns:K,dataSource:Q}=v($e.cloneDeep(j),$e.cloneDeep(U));d.value=K,p.value=Q}else d.value=j,p.value=U},{immediate:!0});const v=(j,U)=>{const K=j[0],Q=[{title:K.title,dataIndex:"col0",key:"col0",align:"center"}];for(let ne=0;ne<U.length;ne++){const ee=U[ne],ie="col"+(ne+1);Q.push({title:ee[K.dataIndex],dataIndex:ie,key:ie,align:"center"})}const W=[];for(let ne=1;ne<j.length;ne++){const ee=j[ne],ie={col0:ee.title};for(let le=0;le<U.length;le++){const de=U[le];ie[`col${le+1}`]=de[ee.dataIndex]}W.push(ie)}return{columns:Q,dataSource:W}},_=r.ref(""),w=ze(e),k=r.ref(!1),A=async(j=!0,U={})=>{var K;try{j&&(k.value=!0),r.unref(_)&&(U.orderCondition=r.unref(_)),e.paginationShow&&(U={pageNum:r.unref(h),pageSize:r.unref(g)||"10",layer:"1",...U});const Q=await w(U),{rows:W=[],total:ne=0}=((K=Q==null?void 0:Q.data)==null?void 0:K.data)||{};if(u.value=ne,Array.isArray(W)&&(c.value=W),window.config.routerBaseURL.includes("1523545080925487106")){const{requestParams:ee=[]}=e,ie=ee.find(le=>le.key==="dataSqlId");if((ie==null?void 0:ie.value)==="xt_jxzebg"){const le=W.filter(de=>!de.绩效总额).map(de=>de.ORG_NAME);le!=null&&le.length&&r.nextTick(()=>{ae.notification.warning({message:"提示",description:`当前时段${le.join("、")}绩效数据为空`,duration:3})})}}}catch(Q){console.error(Q)}finally{k.value=!1}},E=({current:j},U,K)=>{if(h.value=j,K&&Object.keys(K).length>0){const{field:Q,order:W}=K,ee={ascend:"asc",descend:"desc"}[W];Q!=null&&ee!=null&&(_.value=Q+" "+ee,h.value=1)}O(!1)},C=r.computed(()=>{const j=e.simple,U=[e.paginationPosition];return e.paginationShow&&{simple:j,position:U,total:r.unref(u),current:r.unref(h),pageSize:r.unref(g)||"10",showSizeChanger:!1}}),T=j=>+j==1?"是":+j==0?"否":j,R=(j,U)=>U==null||U===""?j:{money:ao,percentage:Xt,contrast:Xt,boolean:T}[U](j)||"",B=(j,U)=>{const K=parseFloat(j+"");if(U!=="contrast")return"";switch(!0){case K>=0:return"goUp";case K<0:return"goDown"}},F=ye(e),{getGlobalModel:I,setGlobalModel:$}=r.inject(we,{getGlobalModel:j=>{},setGlobalModel:(j,U)=>{}}),q=(j=[],U=[])=>{const K=j.map(Q=>({title:Q,dataIndex:Q,key:Q}));f.value=S(K),c.value=U},N=It(e),L=async()=>{var j,U,K,Q;try{k.value=!0;const W=await N();q((U=(j=W==null?void 0:W.data)==null?void 0:j.data)==null?void 0:U.columns,(Q=(K=W==null?void 0:W.data)==null?void 0:K.data)==null?void 0:Q.rows)}catch(W){console.error(W)}finally{k.value=!1}},H=r.ref(-1),D=(j,U)=>({onClick:F("rowClick",()=>{const K=e.id,Q=I(K);$(K,{...Q,RECORD:j}),H.value=U})}),O=(j=!0)=>{switch(e.dataType){case"request":A(j);break;case"indicator":L();break}},M=()=>{const j=e.id,U=I(j);$(j,{...U,RECORD:""})},P=r.computed(()=>{const j=r.unref(d),U=[];let K=0;for(let W=0;W<j.length;W++){const ne=j[W],{isCalcTotal:ee}=ne;e.isUseSeq&&W===0?U.push({...ne,total:"小计"}):ee?(U.push({...ne,index:W,total:0}),K++):U.push({...ne})}if(K===0)return[];const Q=r.unref(p);for(let W=0;W<U.length;W++){const ne=U[W];let ee=0;const{isCalcTotal:ie,dataIndex:le}=ne;if(ie===!0){for(let de=0;de<Q.length;de++){const Se=+Q[de][le];isNaN(Se)||(ee=new Ya.Big(ee).add(Se).toNumber())}ne.total=ee}}return U}),{setRequest:Y}=r.inject(De,{setRequest:j=>{}});typeof Y=="function"&&Y({id:e.id,requestFn:O,sortNum:e.requestSort}),n({refreshData:O});const Z=(j="",U)=>ve(j,U),X=j=>{if(j!=="event")return{self:"_self",blank:"_blank"}[j]},G=(j,U="")=>{j==="event"&&window.parent.postMessage({type:"openPage",url:U},"*")},pe=(j,U)=>{j(U.filterCheckboxGroupValue)},_e=(j,U)=>{j({confirm:!0}),U.filterOptionsInputValue="",U.filterCheckboxGroupValue=[]},Qe=()=>{},Ge=j=>{const U=j.dataIndex;if(typeof U=="string"){let K=r.unref(m)[U];const Q=r.unref(j.filterOptionsInputValue).trim();return Array.isArray(K)?(K=K.filter(W=>typeof W.label=="string"?W.label.toLowerCase().includes(Q.toLowerCase()):!0),K):[]}return[]},ke=async()=>{var de,Te;const j="EXPORT_KEY";ae.message.loading({key:j,content:"正在导出...",duration:0});let U=[];if(e.dataType==="static")U=e.data;else if(e.dataType==="request"){const Se={layer:"1"};r.unref(_)&&(Se.orderCondition=r.unref(_));const Ve=await w(Se);U=((Te=(de=Ve==null?void 0:Ve.data)==null?void 0:de.data)==null?void 0:Te.rows)||{}}const K=r.unref(d),Q=[],W=[];K==null||K.forEach(Se=>{Q.push(Se.dataIndex),W.push(Se.title)});const ne=U.map(Se=>$e.pick(Se,Q)),ee=kt.utils.book_new(),ie=kt.utils.aoa_to_sheet([W]),le=kt.utils.sheet_add_json(ie,ne,{skipHeader:!0,origin:"A2"});kt.utils.book_append_sheet(ee,le,"sheet"),kt.writeFile(ee,"表格数据.xlsx"),ae.message.success({key:j,content:"导出成功"})},Ee=(j,U=2)=>{const K=+j*100;return isNaN(K)||K<=0?0:K>=100?100:K.toFixed(U)};be(e,{resetRecord:M,refreshData:O,exportTableData:ke});const wt=r.computed(()=>e.headerBackgroundColor||"#fafafa");return{x:l,y:s,style:a,customRow:D,pagination:C,formatFn:R,contrastClass:B,tableChange:E,summaryList:P,loading:k,onTouchHrefEvent:G,handleHref:Z,handleHrefTarget:X,useRowIndex:H,tableColumns:d,tableDataSource:p,useFilterOptions:Ge,useSetSelectedKeys:pe,onResetFilter:_e,onSearchFilterOptions:Qe,exportTableData:ke,handleProgressText:Ee,pageSizeVisible:o,pageSize:g,tableRef:t,headerBgColor:wt}}}),Ba=()=>{r.useCssVars(e=>({e311f51e:e.headerBgColor}))},Da=nr.setup;nr.setup=Da?(e,n)=>(Ba(),Da(e,n)):Ba;const t1="",n1="",ff=["id"],df={key:0,class:"table-tool"},uf=r.createTextVNode("导出数据"),hf=r.createTextVNode(" 搜索 "),xf=r.createTextVNode(" 重置 "),gf={key:0},mf={key:1,class:"action-list"},pf=["href","target","onClick"],yf={key:2,class:"progress-cell"},vf={class:"ant-pagination-options-quick-jumper"},bf=r.createTextVNode(" 条 / 页 ");function Sf(e,n,t,o,a,i){const l=r.resolveComponent("a-button"),s=r.resolveComponent("a-input"),f=r.resolveComponent("a-checkbox-group"),c=r.resolveComponent("a-table-summary-cell"),d=r.resolveComponent("a-table-summary-row"),p=r.resolveComponent("a-table-summary"),u=r.resolveComponent("a-table"),h=r.resolveComponent("skeleton");return r.openBlock(),r.createElementBlock("div",{class:"ecan-table",id:"ecanTable-"+e.id,style:r.normalizeStyle(e.style)},[r.createVNode(h,{loading:e.loading},{default:r.withCtx(()=>{var g;return[e.isUseExport?(r.openBlock(),r.createElementBlock("div",df,[r.createVNode(l,{class:"export-button",onClick:e.exportTableData},{default:r.withCtx(()=>[uf]),_:1},8,["onClick"])])):r.createCommentVNode("",!0),r.createVNode(u,{ref:"tableRef",class:"table",style:{height:"100%"},columns:e.tableColumns,"data-source":e.tableDataSource,bordered:e.bordered,size:e.size,customRow:e.customRow,scroll:{x:e.x,y:e.y},pagination:e.pagination,onChange:e.tableChange},{customFilterDropdown:r.withCtx(({column:x,selectedKeys:y,setSelectedKeys:S,confirm:m,clearFilters:b})=>[r.createElementVNode("div",{class:"ecan-table-filter",style:r.normalizeStyle({height:e.filterDropdownHeight})},[r.createVNode(s,{value:x.filterOptionsInputValue,"onUpdate:value":v=>x.filterOptionsInputValue=v,placeholder:"请输入关键字",class:"filter-input",onChange:e.onSearchFilterOptions},null,8,["value","onUpdate:value","onChange"]),r.createVNode(f,{value:x.filterCheckboxGroupValue,"onUpdate:value":v=>x.filterCheckboxGroupValue=v,class:"filter-checkbox",options:e.useFilterOptions(x),onChange:v=>e.useSetSelectedKeys(S,x)},null,8,["value","onUpdate:value","options","onChange"]),r.createElementVNode("div",null,[r.createVNode(l,{type:"primary",size:"small",style:{width:"90px","margin-right":"8px"},onClick:()=>m()},{default:r.withCtx(()=>[hf]),_:2},1032,["onClick"]),r.createVNode(l,{size:"small",style:{width:"90px"},onClick:r.withModifiers(v=>e.onResetFilter(b,x),["stop"])},{default:r.withCtx(()=>[xf]),_:2},1032,["onClick"])])],4)]),bodyCell:r.withCtx(({column:x,index:y,text:S,record:m})=>[x.dataIndex==="SEQ"?(r.openBlock(),r.createElementBlock("span",gf,r.toDisplayString(y+1),1)):x.dataIndex==="ACTION"?(r.openBlock(),r.createElementBlock("div",mf,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(e.actionList,(b,v)=>(r.openBlock(),r.createElementBlock("div",{class:"action",key:v},[r.createElementVNode("a",{href:e.handleHref(b.href,m),target:e.handleHrefTarget(b.target),style:r.normalizeStyle({color:b.color,fontSize:e.fontSize,fontWeight:e.fontWeight}),onClick:_=>e.onTouchHrefEvent(b.target,e.handleHref(b.href,m))},r.toDisplayString(b.title),13,pf)]))),128))])):x.format==="progress"?(r.openBlock(),r.createElementBlock("div",yf,[r.createElementVNode("div",{class:"progress",style:r.normalizeStyle({background:x.progressColor||"#1890ff",height:x.progressWidth||"18px",width:`${e.handleProgressText(S,x.progressTextDecimalPlaces)}%`})},null,4),r.createElementVNode("div",{class:"progress-text",style:r.normalizeStyle({color:e.handleProgressText(S)<100?x.progressTextColor||"#333":x.progressFinishedTextColor||"#fff"})},r.toDisplayString(e.handleProgressText(S,x.progressTextDecimalPlaces))+"% ",5)])):(r.openBlock(),r.createElementBlock("div",{key:3,class:r.normalizeClass([e.contrastClass(S,x.format)]),style:r.normalizeStyle({fontSize:e.fontSize,fontWeight:e.fontWeight})},r.toDisplayString(x.format!=null?e.formatFn(S,x.format):S),7))]),summary:r.withCtx(()=>[e.summaryList.length>0?(r.openBlock(),r.createBlock(p,{key:0},{default:r.withCtx(()=>[r.createVNode(d,null,{default:r.withCtx(()=>[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(e.summaryList,(x,y)=>(r.openBlock(),r.createBlock(c,{key:y,index:y,style:r.normalizeStyle({backgroundColor:e.cellBackgroundColor,textAlign:x.cellAlign||"center",color:x.cellColor,borderBottomColor:e.borderColor})},{default:r.withCtx(()=>[r.createElementVNode("div",{class:r.normalizeClass([e.contrastClass(x.total,x.format)]),style:r.normalizeStyle({fontSize:e.fontSize,fontWeight:e.fontWeight})},r.toDisplayString((x.format!=null||x.format!=="")&&e.formatFn(x.total,x.format)),7)]),_:2},1032,["index","style"]))),128))]),_:1})]),_:1})):r.createCommentVNode("",!0)]),_:1},8,["columns","data-source","bordered","size","customRow","scroll","pagination","onChange"]),(g=e.tableDataSource)!=null&&g.length&&!e.simple&&e.pageSizeShow&&e.pageSizeVisible?(r.openBlock(),r.createBlock(r.Teleport,{key:1,to:"#ecanTable-"+e.id+" .ant-pagination"},[r.createElementVNode("div",vf,[r.withDirectives(r.createElementVNode("input",{type:"text","onUpdate:modelValue":n[0]||(n[0]=x=>e.pageSize=x)},null,512),[[r.vModelText,e.pageSize]]),bf])],8,["to"])):r.createCommentVNode("",!0)]}),_:1},8,["loading"])],12,ff)}const Ra=ce(se(nr,[["render",Sf],["__scopeId","data-v-e32b44f2"]])),or={...he,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:"{b}"},rr=fe(or);He.use([lt.CanvasRenderer,We.MapChart,We.ScatterChart,xe.VisualMapComponent,xe.TooltipComponent,xe.GraphicComponent]);const wf=r.defineComponent({name:"EcanMap",components:{Echarts:nt},props:{...rr},setup(e){const n=ue(e,["backgroundImage"]),t=r.ref(),o=r.computed(()=>at(e.geoBackgroundImage)),a=r.computed(()=>at(e.backgroundImage)),i=r.computed(()=>e.geoBackgroundImage?{image:r.unref(t),repeat:e.geoBackgroundImageRepeat}:e.geoItemStyleAreaColor),l=r.computed(()=>{const d=e.symbolImage;return e.symbolImage?"image://"+at(d):"circle"}),s=r.computed(()=>{const d=e.geoCenter;let p;return typeof d=="string"&&d!==""&&(p=d.split(",")),{tooltip:{show:!0},graphic:[{type:"image",style:{width:parseFloat(e.width),height:parseFloat(e.height),image:r.unref(a)},top:"center"}],geo:{zoom:e.geoZoom,roam:e.geoRoam,center:p,map:"map",tooltip:{show:!1},label:{show:e.geoLabelShow,color:e.geoLabelColor,fontSize:e.geoLabelFontSize},itemStyle:{areaColor:r.unref(i),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:r.unref(l),symbolSize:[e.symbolWidth,e.symbolHeight],label:{show:e.labelShow,fontSize:e.labelFontSize,formatter:e.labelFormatter,color:e.labelColor},tooltip:{show:e.tooltipShow,formatter:e.tooltipFormatter,textStyle:{color:e.tooltipTextStyleColor}},data:e.data}]}}),f=r.ref(!1),c=async()=>{var p;const d=e.mapJson;if(d!=null&&d.path){const u=await Je(((p=window==null?void 0:window.config)==null?void 0:p.uploadPath)+d.path);He.registerMap("map",(u==null?void 0:u.data)||{})}f.value=!0};return r.watch(()=>e.mapJson,()=>{c()},{immediate:!0,deep:!0}),{option:s,style:n,isLoadedData:f,geoBackgroundImageRef:t,myGeoBackgroundImage:o}}}),r1="",Cf=["src"];function kf(e,n,t,o,a,i){const l=r.resolveComponent("echarts");return r.openBlock(),r.createElementBlock("div",{class:"ecan-map",style:r.normalizeStyle(e.style)},[e.isLoadedData?(r.openBlock(),r.createBlock(l,{key:0,option:e.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])):r.createCommentVNode("",!0),r.withDirectives(r.createElementVNode("img",{ref:"geoBackgroundImageRef",src:e.myGeoBackgroundImage},null,8,Cf),[[r.vShow,!1]])],4)}const Ia=ce(se(wf,[["render",kf],["__scopeId","data-v-1fb5cdee"]])),La=Object.freeze(Object.defineProperty({__proto__:null,EcanBar:ma,EcanBorder:Ca,EcanButton:oa,EcanCheckbox:aa,EcanComboGraph:Sa,EcanCustomGraph:va,EcanDatePicker:Q0,EcanIframe:Ea,EcanImage:Aa,EcanInput:X0,EcanLine:xa,EcanList:W0,EcanMap:Ia,EcanModal:st,EcanPageConfig:N0,EcanPie:ua,EcanProportion:K0,EcanProviderConfig:P0,EcanRangePicker:ta,EcanScatter:ya,EcanScrollText:$0,EcanSelect:sa,EcanTable:Ra,EcanTabs:_a,EcanText:H0,EcanTimeDisplay:U0,EcanTreeSelect:ca,barComponentProps:Fo,barEvents:ga,barProps:Mo,borderComponentProps:Wo,borderEvents:wa,borderProps:Go,buttonComponentProps:_o,buttonEvents:na,buttonProps:ko,checkboxComponentProps:Eo,checkboxEvents:ra,checkboxProps:Ao,comboGraphComponentProps:Uo,comboGraphEvents:ba,comboGraphProps:jo,customGraphComponentProps:$o,customGraphProps:Ho,datePickerComponentProps:So,datePickerEvents:J0,datePickerProps:bo,iframeComponentProps:Qo,iframeProps:Jo,imageComponentProps:Xo,imageProps:Yo,inputComponentProps:vo,inputEvents:Y0,inputProps:yo,lineComponentProps:zo,lineEvents:ha,lineProps:Po,listComponentProps:go,listEvents:G0,listProps:xo,mapComponentProps:rr,mapProps:or,modalComponentProps:No,modalEvents:da,modalProps:Oo,pageConfig:xn,pageConfigComponentProps:gn,pieComponentProps:Lo,pieEvents:fa,pieProps:Io,proportionComponentProps:po,proportionEvents:Z0,proportionProps:mo,providerConfig:io,providerConfigComponentProps:so,rangePickerComponentProps:Co,rangePickerEvents:ea,rangePickerProps:wo,scatterComponentProps:qo,scatterEvents:pa,scatterProps:Vo,selectComponentProps:Bo,selectEvents:ia,selectProps:To,tableComponentProps:tr,tableEvents:Ta,tableProps:er,tabsComponentProps:Ko,tabsEvents:ka,tabsProps:Zo,textComponentProps:co,textEvents:z0,textProps:lo,timeDisplayComponentProps:ho,timeDisplayEvents:j0,timeDisplayProps:uo,treeSelectComponentProps:Ro,treeSelectEvents:la,treeSelectProps:Do},Symbol.toStringTag,{value:"Module"})),_f={install:e=>{Object.keys(La).forEach(n=>{const t=La[n];t.install&&e.use(t)})}};z.EcanBar=ma,z.EcanBorder=Ca,z.EcanButton=oa,z.EcanCheckbox=aa,z.EcanComboGraph=Sa,z.EcanCustomGraph=va,z.EcanDatePicker=Q0,z.EcanIframe=Ea,z.EcanImage=Aa,z.EcanInput=X0,z.EcanLine=xa,z.EcanList=W0,z.EcanMap=Ia,z.EcanModal=st,z.EcanPageConfig=N0,z.EcanPie=ua,z.EcanProportion=K0,z.EcanProviderConfig=P0,z.EcanRangePicker=ta,z.EcanScatter=ya,z.EcanScrollText=$0,z.EcanSelect=sa,z.EcanTable=Ra,z.EcanTabs=_a,z.EcanText=H0,z.EcanTimeDisplay=U0,z.EcanTreeSelect=ca,z.barComponentProps=Fo,z.barEvents=ga,z.barProps=Mo,z.borderComponentProps=Wo,z.borderEvents=wa,z.borderProps=Go,z.buttonComponentProps=_o,z.buttonEvents=na,z.buttonProps=ko,z.checkboxComponentProps=Eo,z.checkboxEvents=ra,z.checkboxProps=Ao,z.comboGraphComponentProps=Uo,z.comboGraphEvents=ba,z.comboGraphProps=jo,z.customGraphComponentProps=$o,z.customGraphProps=Ho,z.datePickerComponentProps=So,z.datePickerEvents=J0,z.datePickerProps=bo,z.default=_f,z.iframeComponentProps=Qo,z.iframeProps=Jo,z.imageComponentProps=Xo,z.imageProps=Yo,z.inputComponentProps=vo,z.inputEvents=Y0,z.inputProps=yo,z.lineComponentProps=zo,z.lineEvents=ha,z.lineProps=Po,z.listComponentProps=go,z.listEvents=G0,z.listProps=xo,z.mapComponentProps=rr,z.mapProps=or,z.modalComponentProps=No,z.modalEvents=da,z.modalProps=Oo,z.pageConfig=xn,z.pageConfigComponentProps=gn,z.pieComponentProps=Lo,z.pieEvents=fa,z.pieProps=Io,z.proportionComponentProps=po,z.proportionEvents=Z0,z.proportionProps=mo,z.providerConfig=io,z.providerConfigComponentProps=so,z.rangePickerComponentProps=Co,z.rangePickerEvents=ea,z.rangePickerProps=wo,z.scatterComponentProps=qo,z.scatterEvents=pa,z.scatterProps=Vo,z.selectComponentProps=Bo,z.selectEvents=ia,z.selectProps=To,z.tableComponentProps=tr,z.tableEvents=Ta,z.tableProps=er,z.tabsComponentProps=Ko,z.tabsEvents=ka,z.tabsProps=Zo,z.textComponentProps=co,z.textEvents=z0,z.textProps=lo,z.timeDisplayComponentProps=ho,z.timeDisplayEvents=j0,z.timeDisplayProps=uo,z.treeSelectComponentProps=Ro,z.treeSelectEvents=la,z.treeSelectProps=Do,Object.defineProperties(z,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
116
+ <span style="color: ${e.color}">-${Math.abs(+w)}%</span>
117
+ </span>`))):e.format==="percent"?(w=+w,isNaN(w)||(w=(w*100).toFixed(2),x=x.replace(S,`<span style="color:${e.variableColor};font-size:${r.unref(o)}">${w}%</span>`))):e.format==="money"?(w=+w,isNaN(w)||(w=ao(w),x=x.replace(S,`<span style="color:${e.variableColor};font-size:${r.unref(o)}">${w}</span>`))):E==="thousands"?(w=+w,isNaN(w)||(w=El(w),x=x.replace(S,`<span style="color:${e.variableColor};font-size:${r.unref(o)}">${w}</span>`))):x=x.replace(S,`<span style="color:${e.variableColor};font-size:${r.unref(o)}">${w}</span>`)}}return`<span>${x}</span>`}),{pageMode:l}=r.inject(_e,{pageMode:"normal"}),s=ze(e),f=r.ref(!1),c=async()=>{var g;try{f.value=!0;const y=await s();t.value=((g=y==null?void 0:y.data)==null?void 0:g.data)||{}}catch(y){console.error(y)}finally{f.value=!1}},d=()=>{e.dataType!=="static"&&c()};be(e,{refreshData:d});const{setRequest:p}=r.inject(Te,{setRequest:({id:g,sortNum:y,requestFn:C})=>{}});p({id:e.id,requestFn:d,sortNum:e.requestSort}),be(e,{refreshData:d});const u=ye(e),h=u("click",()=>{if(!e.linkPage&&!e.href)return;const g=e.linkPage||"",y=Oa(r.unref(l),g),C=e.href;let x=C||y;x=ve(x);const v=e.target;v&&(v!=="event"?window.open(x,"_"+v):window.parent.postMessage({type:"openPage",url:C},"*"))}),m=u("valueChange",()=>{});return r.watch(()=>i.value,(g,y)=>{g!==y&&m()}),{style:n,myText:i,loading:f,click:h,textIndent:a,vFontSize:o}}}),Va=()=>{r.useCssVars(e=>({"23ce1682":e.vFontSize,"7d25ae20":e.textIndent,95160510:e.percentageSide}))},qa=fo.setup;fo.setup=qa?(e,n)=>(Va(),qa(e,n)):Va;const od="",Nl=["innerHTML"];function Pl(e,n,t,o,a,i){const l=r.resolveComponent("skeleton");return e.loading?(r.openBlock(),r.createElementBlock("div",{key:0,class:"skeleton-wrapper",style:r.normalizeStyle(e.style)},[r.createVNode(l,{loading:e.loading},null,8,["loading"])],4)):(r.openBlock(),r.createElementBlock("div",{key:1,class:"ecan-text",style:r.normalizeStyle(e.style),innerHTML:e.myText,onClick:n[0]||(n[0]=(...s)=>e.click&&e.click(...s))},null,12,Nl))}const Ha=le(se(fo,[["render",Pl],["__scopeId","data-v-350792e4"]])),zl=r.defineComponent({name:"EcanScrollText",setup(){return{text:r.ref("基础文本")}}}),ad="",Ml={class:"red"};function Fl(e,n,t,o,a,i){return r.openBlock(),r.createElementBlock("div",Ml,r.toDisplayString(e.text),1)}const $a=le(se(zl,[["render",Fl],["__scopeId","data-v-4dd9c03e"]])),uo={...he,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"}},ho=fe(uo),ja=["timeChange"],Vl=r.defineComponent({name:"EcanTimeDisplay",props:{...ho},setup(e){const n=ue(e),t=()=>{const{format:c,operate:d}=e;let p=Oe();if(d){const{type:u,value:h,mode:m}=d;switch(u){case"add":p=p.add(h,m);break;case"minus":p=p.subtract(h,m)}}return p.format(c)},o=r.ref();r.watch(()=>[e.operate,e.format],()=>{o.value=t()},{immediate:!0,deep:!0}),r.watch(()=>e.updateInterval,()=>{f()},{deep:!0});let a=null;const i=()=>{clearInterval(a),a=null},s=ye(e)("timeChange",()=>{}),f=()=>{a&&i();let c=1e3;const{value:d,mode:p}=e.updateInterval||{};d&&(c=c*d);const u={second:1,minute:60,hour:60*60,day:24*60*60};p&&(c=c*u[p]),a=setInterval(()=>{o.value=t(),s()},c)};return be(e,{timeChange:s}),r.onMounted(()=>{f()}),r.onUnmounted(()=>{i()}),{style:n,time:o}}}),sd="";function ql(e,n,t,o,a,i){return r.openBlock(),r.createElementBlock("div",{class:"time-display",style:r.normalizeStyle(e.style)},r.toDisplayString(e.time),5)}const Ua=le(se(Vl,[["render",ql],["__scopeId","data-v-b628fca2"]])),xo={...he,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"}]},go=fe(xo),Ga=["refreshData","click"],Hl=r.defineComponent({name:"EcanList",components:{Skeleton:Vt},props:{...go},setup(e){const n=r.ref(e.data),t=ue(e,["backgroundColor"]),o=r.computed(()=>e.useRanking?{textAlign:"center"}:{textAlign:"left"}),a=(h,m)=>m==null||m===""?h:{money:ao,percentage:Xt,contrast:Xt}[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"}},l=ze(e),s=r.ref(!1),f=async()=>{var h;if(e.dataType==="request")try{s.value=!0;const m=await l();n.value=((h=m==null?void 0:m.data)==null?void 0:h.data.rows)||[]}catch(m){console.error(m)}finally{s.value=!1}},c=()=>{f()},p=ye(e)("click",()=>{});be(e,{refreshData:c});const{setRequest:u}=r.inject(Te,{setRequest:({id:h,sortNum:m,requestFn:g})=>{}});return u({id:e.id,requestFn:f,sortNum:e.requestSort}),{style:t,formatFn:a,columnStyle:o,contrastClass:i,dataSource:n,loading:s,click:p}}}),cd="",fd="",$l=e=>(r.pushScopeId("data-v-7aa27677"),e=e(),r.popScopeId(),e),jl={key:0,class:"title"},Ul={key:0,class:"ranking"},Gl={key:1,class:"ecan-list-content"},Wl={key:0,class:"ranking"},Zl=$l(()=>r.createElementVNode("div",{class:"icon"},null,-1)),Kl={class:"sort"},Yl={key:2,class:"empty"};function Xl(e,n,t,o,a,i){const l=r.resolveComponent("skeleton");return r.openBlock(),r.createElementBlock("div",{class:"ecan-list",style:r.normalizeStyle(e.style)},[r.createVNode(l,{loading:e.loading},{default:r.withCtx(()=>[e.useTitle?(r.openBlock(),r.createElementBlock("div",jl,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(e.columnCount,s=>(r.openBlock(),r.createElementBlock("div",{class:"title-inner",style:r.normalizeStyle({backgroundColor:e.backgroundColor,height:e.itemHeight,width:`calc(100% / ${e.columnCount} - ${e.itemColSpan} * ${e.columnCount-1}/ ${e.columnCount})`,marginRight:s%e.columnCount!==0?e.itemColSpan:""}),key:s},[e.useRanking?(r.openBlock(),r.createElementBlock("div",Ul)):r.createCommentVNode("",!0),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(e.columns,(f,c)=>(r.openBlock(),r.createElementBlock("div",{class:"column",key:f.key||c,style:r.normalizeStyle({color:f.titleColor,...e.columnStyle})},r.toDisplayString(f.title),5))),128))],4))),128))])):r.createCommentVNode("",!0),e.dataSource.length>0?(r.openBlock(),r.createElementBlock("div",Gl,[e.useTitle?(r.openBlock(),r.createElementBlock("div",{key:0,class:"title-placeholder",style:r.normalizeStyle({marginBottom:e.itemRowSpan})},null,4)):r.createCommentVNode("",!0),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(e.dataSource.slice(0,e.sliceCount),(s,f)=>(r.openBlock(),r.createElementBlock("div",{class:"item",style:r.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:s.id||f,onClick:n[0]||(n[0]=(...c)=>e.click&&e.click(...c))},[e.useRanking?(r.openBlock(),r.createElementBlock("div",Wl,[Zl,r.createElementVNode("div",Kl," Top "+r.toDisplayString(f+1),1)])):r.createCommentVNode("",!0),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(e.columns,c=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["column",e.contrastClass(s[c.key],c.format)]),key:c.key,style:r.normalizeStyle({fontSize:c.fontSize,color:e.contrastClass(s[c.key],c.format)===""?c.color:"",fontWeight:c.fontWeight,...e.columnStyle})},r.toDisplayString((c.format!=null||c.format!=="")&&e.formatFn(s[c.key],c.format)),7))),128))],4))),128))])):(r.openBlock(),r.createElementBlock("div",Yl," 暂无数据 "))]),_:1},8,["loading"])],4)}const Wa=le(se(Hl,[["render",Xl],["__scopeId","data-v-7aa27677"]])),mo={...he,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},po=fe(mo),Za=["refreshData","click"],Jl=r.defineComponent({name:"EcanProportion",components:{AProgress:ae.Progress,Skeleton:Vt},props:{...po},setup(e){const{pageMode:n}=r.inject(_e,{pageMode:"normal"}),t=ue(e),o=r.computed(()=>{const g=e.width;return parseFloat(g)}),a=r.ref({});r.watch(()=>e.data,()=>{(e.dataType==="static"||r.unref(n)==="design")&&(a.value=e.data)},{immediate:!0,deep:!0});const i=r.computed(()=>{const g=r.unref(a),y=+e.variableDefaultValue;if(g==null)return isNaN(y)?0:y;const C=e.text.match(/\{.+\}/g)||[];let x;const v=new Set(Object.keys(g));for(let b=0;b<C.length;b++){const _=C[b],S=_.slice(1,_.length-1);if(v.has(S)){x=g[S];break}}return typeof x=="number"?x=x*100:typeof x=="string"&&!isNaN(+x)?x=+x*100:isNaN(y)?x=0:x=y*100,e.decimalFormat&&(x=+x.toFixed(2)),x}),l=r.computed(()=>{var v;let g=e.text;if(g==="")return r.unref(i);const y=e.variableDefaultValue,C=r.unref(a),x=g.match(/\{.+\}/g)||[];for(let b=0;b<x.length;b++){const _=x[b];let S=_.slice(1,_.length-1);const k=/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,A=_.match(k);for(let w=0;w<(A==null?void 0:A.length);w++){const E=(v=A[w])==null?void 0:v.trim();C[E]!=null&&(S=S.replace(E,C[E]))}let D=S;try{/\(.*\)/g.test(S)&&(D=Qt(S))}catch(w){console.error(w)}typeof+D=="number"&&!isNaN(+D)?(D=+D*100,e.decimalFormat&&(D=D.toFixed(2))):D=y,g=g.replace(_,D+"")}return g}),s=ze(e),f=r.ref(!1),c=async()=>{var g;if(e.dataType==="request")try{f.value=!0;const y=await s();a.value=((g=y==null?void 0:y.data)==null?void 0:g.data)||{}}catch(y){console.error(y)}finally{f.value=!1}};be(e,{refreshData:()=>{c()}});const u=ye(e)("click",()=>{}),{setRequest:h}=r.inject(Te,{setRequest:({id:g,sortNum:y,requestFn:C})=>{}});h({id:e.id,requestFn:c,sortNum:e.requestSort});const m=r.computed(()=>{const{gradientShow:g,gradientColor:y,gradientOffset:C,strokeColor:x}=e;let v=x;return g&&y&&(v={"0%":x,[`${C*100}%`]:y}),v});return{style:t,myWidth:o,text:l,myValue:i,loading:f,click:u,customStrokeColor:m}}}),ud="";function Ql(e,n,t,o,a,i){const l=r.resolveComponent("skeleton"),s=r.resolveComponent("a-progress");return r.openBlock(),r.createElementBlock("div",{class:"ecan-proportion",style:r.normalizeStyle(e.style)},[r.createVNode(s,{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:r.withCtx(()=>[e.loading?(r.openBlock(),r.createBlock(l,{key:0,loading:e.loading},null,8,["loading"])):e.strokeTextShow?(r.openBlock(),r.createElementBlock("div",{key:1,class:"format",style:r.normalizeStyle({width:e.strokeTextWidth,fontSize:e.fontSize,color:e.color,fontWeight:e.fontWeight,lineHeight:e.lineHeight})},r.toDisplayString(e.text),5)):r.createCommentVNode("",!0)]),_:1},8,["percent","width","type","strokeColor","strokeLinecap","trailColor","strokeWidth","showInfo","gapDegree","onClick"])],4)}const Ka=le(se(Jl,[["render",Ql],["__scopeId","data-v-269e1e9a"]])),yo={...he,width:"200px",id:"",left:"0px",top:"0px",name:"输入框",keyName:"输入框",rotate:"",type:"ecanInput",value:"",placeholder:"请输入文字"},vo=fe(yo),Ya=["inputChange","inputBlur"],ec=r.defineComponent({name:"EcanInput",components:{AInput:ae.Input},props:{...vo},setup(e){const n=ue(e),t=r.ref("");r.watch(()=>e.value,c=>{t.value=c},{immediate:!0});const{getGlobalModel:o,setGlobalModel:a}=r.inject(Se,{getGlobalModel:c=>{},setGlobalModel:(c,d)=>{}});a(e.id,{type:e.type,value:t});const i=()=>{const c=o(e.id);a(e.id,{...c,RECORD:t})},l=ye(e),s=$e.debounce(l("inputChange",()=>{i()}),300),f=l("inputBlur",()=>{});return{style:n,myValue:t,inputBlur:f,inputChange:s}}}),xd="";function tc(e,n,t,o,a,i){const l=r.resolveComponent("a-input");return r.openBlock(),r.createElementBlock("div",{class:"ecan-input",style:r.normalizeStyle(e.style)},[r.createVNode(l,{class:"input",value:e.myValue,"onUpdate:value":n[0]||(n[0]=s=>e.myValue=s),placeholder:e.placeholder,onChange:e.inputChange,onBlur:e.inputBlur},null,8,["value","placeholder","onChange","onBlur"])],4)}const Xa=le(se(ec,[["render",tc]])),bo={...he,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},So=fe(bo),Ja=["dateChange"],nc=r.defineComponent({name:"EcanDatePicker",props:{...So},components:{ADatePicker:ae.DatePicker},setup(e){const n=ue(e),t=()=>document.getElementById("ProviderConfig")||document.body,o=r.ref(null);r.watch(()=>[e.value,e.useCurrentTime,e.operate],([f,c,d])=>{let p=null;if(f?p=Oe(ve(f)):c&&(p=Oe()),d&&p){const{type:u,value:h,mode:m}=d;switch(u){case"add":p=p.add(h,m);break;case"minus":p=p.subtract(h,m)}}o.value=p},{deep:!0,immediate:!0});const{setGlobalModel:a}=r.inject(Se,{setGlobalModel:(f,c)=>{}});a(e.id,{type:e.type,format:e.format,value:o});const l=ye(e)("dateChange",()=>{}),s=()=>{r.unref(o)&&l()};return be(e,{dateChange:l}),{style:n,getPopupContainer:t,myValue:o,locale:ir,change:s}}}),md="";function oc(e,n,t,o,a,i){const l=r.resolveComponent("a-date-picker");return r.openBlock(),r.createElementBlock("div",{class:"ecan-date-picker",style:r.normalizeStyle(e.style)},[r.createVNode(l,{class:"date-picker",dropdownClassName:"ecan-date-picker-dropdown",value:e.myValue,"onUpdate:value":n[0]||(n[0]=s=>e.myValue=s),format:e.format,picker:e.picker,showTime:e.showTime,locale:e.locale,onChange:e.change,getPopupContainer:e.getPopupContainer},null,8,["value","format","picker","showTime","locale","onChange","getPopupContainer"])],4)}const Qa=le(se(nc,[["render",oc]])),wo={...he,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:""},Co=fe(wo),e0=["dateChange"],rc=r.defineComponent({name:"EcanRangePicker",components:{ARangePicker:ae.RangePicker},props:{...Co},setup(e){const n=ue(e),t=()=>document.getElementById("ProviderConfig")||document.body,o=r.ref([null,null]);r.watch(()=>[e.startTime,e.endTime,e.useCurrentTime,e.interval,e.intervalUnit,e.operate],([y,C,x,v,b,_])=>{let S=null,k=null;if(x&&(S=Oe().subtract(v,b),k=Oe()),y&&(S=Oe(ve(y))),C&&(k=Oe(ve(C))),_){const{type:A,value:D,mode:w}=_;switch(A){case"add":S=S&&S.add(D,w),k=k&&k.add(D,w);break;case"minus":S=S&&S.subtract(D,w),k=k&&k.subtract(D,w)}}o.value=[S,k]},{immediate:!0});let a=r.unref(o)[0],i=r.unref(o)[1];const l=y=>{Array.isArray(y)?(a=y[0],i=y[1]):(a=null,i=null)},s=y=>{let C=!1,{limitStartTime:x,limitEndTime:v}=e;const b={startTime:`${a||""}`,endTime:`${i||""}`};return x=ve(x,{codeData:b}),v=ve(v,{codeData:b}),x&&v?C=!(Oe(x)<y&&y<Oe(v)):x?C=Oe(x)>y:v&&(C=Oe(v)<y),C},{setGlobalModel:f}=r.inject(Se,{setGlobalModel:(y,C)=>{}}),c=r.computed(()=>Array.isArray(r.unref(o))?r.unref(o)[0]:null),d=r.computed(()=>Array.isArray(r.unref(o))?r.unref(o)[1]:null);f(e.id,{type:e.type,format:e.format,startTime:c,endTime:d});const p=ye(e);let u=!1;const h=p("dateChange",()=>{}),m=y=>{const C=r.unref(o),x=C&&C[0]&&C[1];y===!1&&u===!0&&x&&(h(),u=!1)},g=()=>{u=!0};return be(e,{dateChange:h}),{style:n,getPopupContainer:t,locale:ir,dateChange:h,myValue:o,disabledDate:s,calendarChange:l,openChange:m,change:g}}}),yd="",vd="";function ac(e,n,t,o,a,i){const l=r.resolveComponent("a-range-picker");return r.openBlock(),r.createElementBlock("div",{class:"ecan-range-picker",style:r.normalizeStyle(e.style)},[r.createVNode(l,{class:"range-picker",dropdownClassName:"ecan-range-picker-dropdown",value:e.myValue,"onUpdate:value":n[0]||(n[0]=s=>e.myValue=s),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},null,8,["value","format","picker","locale","getPopupContainer","disabled-date","onChange","onCalendarChange","onOpenChange"])],4)}const t0=le(se(rc,[["render",ac],["__scopeId","data-v-ddb2a0fe"]])),ko={...he,width:"200px",name:"按钮",keyName:"按钮",type:"ecanButton",text:"按钮",mode:"default",danger:!1,shape:"default",href:"",target:"self",fontSize:"14px",fontWeight:400},_o=fe(ko),n0=["click"],ic=r.defineComponent({name:"EcanButton",components:{AButton:ae.Button},props:{..._o},setup(e){const n=ue(e),o=ye(e)("click",()=>{const f=r.unref(l);f&&e.target==="event"&&window.parent.postMessage({type:"openPage",url:f},"*")}),a=r.computed(()=>({height:e.height})),i=r.computed(()=>ve(e.text)),l=r.computed(()=>ve(e.href)||null),s=r.computed(()=>{const f=e.target;if(!(f==="event"||r.unref(l)==null))return{self:"_self",blank:"_blank"}[f]});return{style:n,click:o,myText:i,myHref:l,myTarget:s,buttonStyle:a}}}),Sd="";function sc(e,n,t,o,a,i){const l=r.resolveComponent("a-button");return r.openBlock(),r.createElementBlock("div",{class:"ecan-button",style:r.normalizeStyle(e.style)},[r.createVNode(l,{block:"",onClick:e.click,type:e.mode,danger:e.danger,shape:e.shape,href:e.myHref,target:e.myTarget,style:r.normalizeStyle(e.buttonStyle)},{default:r.withCtx(()=>[r.createElementVNode("span",{style:r.normalizeStyle({fontSize:e.fontSize,fontWeight:e.fontWeight})},r.toDisplayString(e.myText),5)]),_:1},8,["onClick","type","danger","shape","href","target","style"])],4)}const o0=le(se(ic,[["render",sc]])),Ao={...he,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"}]},Eo=fe(Ao),r0=["checkboxChange"],lc=r.defineComponent({name:"EcanCheckbox",components:{ACheckboxGroup:ae.CheckboxGroup},props:{...Eo},setup(e){const n=ue(e),t=r.ref([]),o=r.ref([]),a=u=>{const h=e.value;let m=[];u.forEach(g=>{g.checked&&m.push(g.value)}),typeof h=="string"&&h!==""?m=m.concat(h.split(",")):Array.isArray(h)&&(m=m.concat(h)),t.value=u,o.value=m};r.watch(()=>[e.data,e.value],([u])=>{a(u)},{immediate:!0,deep:!0});const i=ze(e),l=async()=>{var m,g;if(e.dataType!=="request")return;const u=await i(),h=((g=(m=u==null?void 0:u.data)==null?void 0:m.data)==null?void 0:g.rows)||[];a(h)},{getGlobalModel:s,setGlobalModel:f}=r.inject(Se,{getGlobalModel:u=>{},setGlobalModel:(u,h)=>{}});f(e.id,{type:e.type,value:o});const d=ye(e)("checkboxChange",()=>{const u=s(e.id);f(e.id,{...u,RECORD:o})}),{setRequest:p}=r.inject(Te,{setRequest:({id:u,sortNum:h,requestFn:m})=>{}});return p({id:e.id,requestFn:l,sortNum:e.requestSort}),{myOption:t,style:n,myValue:o,checkboxChange:d}}}),Cd="";function cc(e,n,t,o,a,i){const l=r.resolveComponent("a-checkbox-group");return r.openBlock(),r.createElementBlock("div",{class:"ecan-checkbox",style:r.normalizeStyle(e.style)},[r.createVNode(l,{options:e.myOption,value:e.myValue,"onUpdate:value":n[0]||(n[0]=s=>e.myValue=s),onChange:e.checkboxChange},null,8,["options","value","onChange"])],4)}const a0=le(se(lc,[["render",cc]])),To={...he,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},Bo=fe(To),i0=["selectChange","refreshData"],fc=r.defineComponent({name:"EcanSelect",components:{ASelect:ae.Select},props:{...Bo},setup(e){const n=ue(e),t=()=>document.getElementById("ProviderConfig")||document.body,o=ze(e),a=r.ref(e.data||[]),i=r.ref();r.watch(()=>[e.value,e.mode,e.selectFirstOption],()=>{const{mode:y,selectFirstOption:C,value:x}=e;y==="multiple"||y==="tags"||y==="combobox"?x?i.value=x.split(","):C&&(i.value=[r.unref(a)[0]]):x?i.value=x:C&&(i.value=r.unref(a)[0])},{immediate:!0});const l=e.dataFieldNames,s=(y,C)=>{const x=l.label,v=l.value;let b;const _=C[x],S=C[v];return _!=null?b=_:S!=null&&(b=S),(b==null?void 0:b.toLowerCase().indexOf(y==null?void 0:y.toLowerCase()))>=0},f=y=>{const{label:C,value:x,options:v}=e.dataFieldNames;if(v&&Array.isArray(y))if(y.some(b=>v in b)){const b={},_=[];y.forEach(S=>{b[S[v]]||(b[S[v]]=[]),b[S[v]].push({[C]:S[C],[x]:S[x]})});for(const S in b)_.push({[C]:S,[v]:b[S]});return _}else return y;else if(!v)return y},c=r.ref(!1),d=async()=>{var y,C;if(e.dataType==="request"){c.value=!0;try{const x=await o();if(a.value=f(((C=(y=x==null?void 0:x.data)==null?void 0:y.data)==null?void 0:C.rows)||[]),e.selectFirstOption){let v=r.unref(a)[0];if(l.options){const b=v[l.options];b&&b.length&&(v=b[0])}i.value=v[l.value]}}catch(x){console.error(x)}finally{c.value=!1}}},{getGlobalModel:p,setGlobalModel:u}=r.inject(Se,{getGlobalModel:y=>{},setGlobalModel:(y,C)=>{}});u(e.id,{type:e.type,value:i});const m=ye(e)("selectChange",()=>{const y=e.id,C=p(y);u(y,{...C,RECORD:i})});be(e,{selectChange:m,refreshData:d});const{setRequest:g}=r.inject(Te,{setRequest:({id:y,sortNum:C,requestFn:x})=>{}});return g({id:e.id,requestFn:d,sortNum:e.requestSort}),{style:n,getPopupContainer:t,myValue:i,selectChange:m,options:a,filterOption:s,loading:c}}}),_d="",Ad="";function dc(e,n,t,o,a,i){const l=r.resolveComponent("a-select");return r.openBlock(),r.createElementBlock("div",{class:"ecan-select",style:r.normalizeStyle(e.style)},[r.createVNode(l,{class:"select",value:e.myValue,"onUpdate:value":n[0]||(n[0]=s=>e.myValue=s),placeholder:e.placeholder,showSearch:"",allowClear:"",options:e.options,mode:e.mode,getPopupContainer:e.getPopupContainer,fieldNames:e.dataFieldNames,maxTagCount:e.maxTagCount,filterOption:e.filterOption,loading:e.loading,autoClearSearchValue:e.autoClearSearchValue,onChange:e.selectChange},null,8,["value","placeholder","options","mode","getPopupContainer","fieldNames","maxTagCount","filterOption","loading","autoClearSearchValue","onChange"])],4)}const s0=le(se(fc,[["render",dc],["__scopeId","data-v-7c425ecc"]])),Do={...he,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},Ro=fe(Do),l0=["selectChange","refreshData"],uc={name:"EcanTreeSelect",components:{ATreeSelect:ae.TreeSelect},props:{...Ro},setup(e){const n=ue(e),t=r.ref(e.data),o=(h,m)=>{const g=e.dataFieldNames,y=g.label,C=g.value;let x;const v=m[y],b=m[C];return v!=null?x=v:b!=null&&(x=b),(x==null?void 0:x.toLowerCase().indexOf(h==null?void 0:h.toLowerCase()))>=0},a=r.ref();r.watch(()=>[e.multiple,e.value,e.treeCheckable,e.selectFirstOption],()=>{const{multiple:h,value:m,selectFirstOption:g}=e;h?m?a.value=m.split(","):g&&(a.value=[r.unref(t)[0]]):m?a.value=m:g&&(a.value=r.unref(t)[0])},{immediate:!0});const i=r.ref(!1),l=ze(e),s=async()=>{var h,m;if(e.dataType==="request"){i.value=!0;try{const g=await l();t.value=((m=(h=g==null?void 0:g.data)==null?void 0:h.data)==null?void 0:m.rows)||[];const y=r.unref(t)[0];e.value===""&&y!=null&&(a.value=y[e.dataFieldNames.value])}catch(g){console.error(g)}finally{i.value=!1}}},{getGlobalModel:f,setGlobalModel:c}=r.inject(Se,{getGlobalModel:h=>{},setGlobalModel:(h,m)=>{}});c(e.id,{type:e.type,value:a});const p=ye(e)("selectChange",()=>{const h=e.id,m=f(h);c(h,{...m,RECORD:a})});be(e,{selectChange:p,refreshData:s});const{setRequest:u}=r.inject(Te,{setRequest:({id:h,sortNum:m,requestFn:g})=>{}});return u({id:e.id,requestFn:s,sortNum:e.reque}),{style:n,treeData:t,filterTreeNode:o,myValue:a,loading:i,selectChange:p}}},Td="",Bd="";function hc(e,n,t,o,a,i){const l=r.resolveComponent("a-tree-select");return r.openBlock(),r.createElementBlock("div",{class:"ecan-tree-select",style:r.normalizeStyle(o.style)},[r.createVNode(l,{class:"tree-select",value:o.myValue,"onUpdate:value":n[0]||(n[0]=s=>o.myValue=s),allowClear:"",showSearch:"",loading:o.loading,fieldNames:e.dataFieldNames,treeData:o.treeData,maxTagCount:e.maxTagCount,multiple:e.multiple,treeCheckable:e.treeCheckable,filterTreeNode:o.filterTreeNode,placeholder:e.placeholder,onChange:o.selectChange},null,8,["value","loading","fieldNames","treeData","maxTagCount","multiple","treeCheckable","filterTreeNode","placeholder","onChange"])],4)}const c0=le(se(uc,[["render",hc],["__scopeId","data-v-37236421"]])),Io={...he,id:"",name:"饼图",keyName:"饼图",type:"ecanPie",width:"400px",height:"400px",top:"",left:"",rotate:"",data:[{name:"名称一",value:335},{name:"名称二",value:310},{name:"名称三",value:234}],titleText:"",titleSubtext:"",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",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},Lo=fe(Io),f0=["click","refreshData","resetRecord"],Nt=async e=>{var f;const n=await Qe.post(e,{},{responseType:"blob"}),{data:t,headers:o}=n,a=o["content-disposition"].replace(/\w+;filename=(.*)/,"$1"),i=new Blob([t]),l=document.createElement("a"),s=window.URL.createObjectURL(i);l.href=s,l.download=decodeURI(a),l.style.display="none",document.body.appendChild(l),l.click(),(f=l.parentNode)==null||f.removeChild(l),window.URL.revokeObjectURL(s)},Oo={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"},No=fe(Oo),d0=["showModal"],xc=r.defineComponent({name:"EcanModal",components:{AModal:ae.Modal,CloseOutlined:is},props:{...No},setup(e,{emit:n}){const t=()=>document.getElementById("ProviderConfig")||document.body,o=r.computed(()=>{const O=e.position;return{verticalAlign:{default:"",top:"top",center:"middle",bottom:"bottom"}[O]}}),a=e.fullModal?"1920px":e.width,i=e.fullModal?"1080px":e.height,l=e.originalWidth,s=e.originalHeight,f=r.ref("80%"),c=r.ref(0),d=r.ref(),p=r.ref(0),u=r.ref({}),h=ue(e),m=r.ref({}),g=r.ref(!1),y=r.ref();let C;const x=()=>{d.value=parseFloat(a)/parseFloat(l);const O=parseFloat(i)/parseFloat(s),z=document.body.offsetWidth,T=document.body.offsetHeight;c.value=z*r.unref(d),p.value=T*O,f.value=`${r.unref(d)*100}%`,u.value={width:`${r.unref(c)}px`,height:`${r.unref(p)}px`},m.value={...r.unref(h),backgroundImage:at(e.backgroundImage,!0),transform:`scale(${r.unref(c)/parseFloat(a)},${r.unref(p)/parseFloat(i)})`,width:a,height:i}},v=$e.debounce(()=>{x()},100),b=()=>{const O=window.MutationObserver;C=new O(v),C.observe(document.body,{attributes:!0,attributeFilter:["style"],attributeOldValue:!0})},_=()=>{C&&(C.disconnect(),C.takeRecords(),C=null)},S=r.ref(!1),{touchRequest:k}=r.inject(Te,{touchRequest:()=>{}}),A=()=>{S.value=!0},D=()=>{n("close"),S.value=!1},w=()=>{D()},E=()=>{D()},{setModalModel:R,pushUseModalIds:I,popUseModalIds:M}=r.inject(Dr,{pushUseModalIds:O=>{},popUseModalIds:()=>{},setModalModel:(O,z)=>{}}),H=()=>{const O=e.id;let z=[];const T=e.componentList;Array.isArray(T)&&(z=T.map(B=>B.id),R(O,[...new Set(z)]))};r.watch(()=>S.value,async O=>{O?(g.value=!1,I(e.id),H(),await r.nextTick(()=>{x(),window.addEventListener("resize",v),b(),g.value=!0}),k()):(M(),window.removeEventListener("resize",v),_())});const $=r.computed(()=>r.unref(d)>=1),P=r.computed(()=>e.fullModal),L=r.computed(()=>{let O="ecan-modal";return r.unref($)&&(O+=" ecan-full-width-modal"),r.unref(P)&&(O+=" ecan-full-modal"),O});return be(e,{showModal:A}),{modalRef:y,containStyle:u,contentStyle:m,getContainer:t,modalStyle:o,modalWith:f,isFullModal:P,style:h,visible:S,showModal:A,onOk:w,onCancel:E,isFullWidth:$,wrapClassName:L,ready:g}}}),Rd="",Id="",gc={key:0};function mc(e,n,t,o,a,i){const l=r.resolveComponent("close-outlined"),s=r.resolveComponent("a-modal");return r.openBlock(),r.createBlock(s,{getContainer:e.getContainer,wrapClassName:e.wrapClassName,centered:"",visible:e.visible,footer:null,width:e.isFullModal||e.isFullWidth?"100%":e.modalWith,destroyOnClose:e.destroyOnClose,style:r.normalizeStyle(e.modalStyle),closable:!1,onOk:e.onOk,onCancel:e.onCancel,ref:"modalRef"},{default:r.withCtx(()=>[r.createElementVNode("div",{class:"contain",ref:"containRef",style:r.normalizeStyle(e.containStyle)},[e.ready?(r.openBlock(),r.createElementBlock("div",{key:0,class:"content",style:r.normalizeStyle(e.contentStyle)},[r.createElementVNode("div",{class:"header-bar",style:r.normalizeStyle({backgroundColor:e.backgroundColor,padding:"20px 30px"})},[e.title?(r.openBlock(),r.createElementBlock("div",{key:0,class:"ant-modal-title",style:r.normalizeStyle({fontSize:e.titleFontSize,color:e.titleColor})},r.toDisplayString(e.title),5)):r.createCommentVNode("",!0),r.createVNode(l,{class:"close-icon",onClick:e.onCancel},null,8,["onClick"])],4),e.componentList.length?(r.openBlock(),r.createElementBlock("div",gc,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(e.componentList,(f,c)=>(r.openBlock(),r.createBlock(r.resolveDynamicComponent(f.type),r.mergeProps({key:f.id+c},f),null,16))),128))])):r.renderSlot(e.$slots,"default",{key:1},void 0,!0)],4)):r.createCommentVNode("",!0)],4)]),_:3},8,["getContainer","wrapClassName","visible","width","destroyOnClose","style","onOk","onCancel"])}const st=le(se(xc,[["render",mc],["__scopeId","data-v-4234f235"]]));He.use([ct.CanvasRenderer,Ze.PieChart,xe.TitleComponent,xe.ToolboxComponent,xe.TooltipComponent,xe.LegendComponent]);const pc=r.defineComponent({name:"EcanPie",props:{...Lo},components:{Spin:Dt,Echarts:nt,EcanModal:st},setup(e,{expose:n}){const t=r.ref(!1),o=ue(e),a=r.ref([]),i=r.ref(),l=r.computed(()=>{let{data:k=[]}=r.unref(a)[0]||{};if(Array.isArray(e.colors)){const A=e.isUseLabelColors,D=e.colors;k=k.map((w,E)=>({label:A?{color:D[E]}:{},...w}))}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(){Nt(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 A;t.value=!0,(A=i.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(){ae.Modal.info({title:"说明信息",content:e.toolboxInfoText})}}}},title:{text:e.titleText,subtext:e.titleSubtext,left:"center"},grid:{top:e.gridTop,bottom:e.gridBottom,left:e.gridLeft,right:e.gridRight,containLabel:e.gridContainLabel},tooltip:{show:e.tooltipShow,trigger:e.tooltipTrigger,formatter:A=>{const{marker:D,seriesName:w,name:E,value:R,percent:I,data:M}=A||{};return ve(e.tooltipFormatter,{textData:{marker:D,name:E,value:R,percent:I,a:w,b:E,c:R,d:I,...M}},{useNewline:!0,useSpace:!0})},textStyle:{color:e.tooltipTextStyleColor}},legend:{show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,textStyle:{color:e.legendTextStyleColor,fontSize:t.value?ut:e.labelFontSize},itemHeight:e.legendItemHeight,itemWidth:e.legendItemWidth,itemGap:e.legendItemGap},color:e.colors,series:[{data:k,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?ut:e.labelFontSize,position:e.labelPosition,formatter:Al(e.labelFormatter)},labelLine:{show:e.labelLineShow,length:e.labelLineLength,length2:e.labelLineLength2},emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"},label:{}}}]}}),s=()=>{t.value=!1},{getGlobalModel:f,setGlobalModel:c}=r.inject(Se,{getGlobalModel:k=>{},setGlobalModel:(k,A)=>{}}),{pageMode:d}=r.inject(_e,{pageMode:"normal"}),p=(k=[],A)=>{const{dataset:D}=It(k,A);a.value=D},u=(k=[],A)=>{const D=It(k,A);a.value=D.dataset};r.watch(()=>e.data,k=>{(e.dataType==="static"||r.unref(d)==="design")&&p(k)},{immediate:!0,deep:!0});const h=r.ref(!1),m=ze(e),g=async()=>{var k,A;if(e.dataType==="request")try{h.value=!0;const D=await m();p((A=(k=D==null?void 0:D.data)==null?void 0:k.data)==null?void 0:A.rows,e.valueTypeDataFieldNames)}catch(D){console.error(D)}finally{h.value=!1}},C=ye(e)("click",k=>{const A=f(e.id);c(e.id,{...A,RECORD:k==null?void 0:k.data})}),x=Ot(e),v=async()=>{var k;try{h.value=!0;const A=await x(),{data:D}=A.data||{};if(D){const{columns:w=[],rows:E=[]}=((k=A==null?void 0:A.data)==null?void 0:k.data)??{};let R=[];if(w.length>0){const I=w[0],M=w[1];R=E.map(H=>({name:H[I],value:H[M]}))}u(R)}}catch(A){console.error(A)}finally{h.value=!1}},b=()=>{switch(e.dataType){case"indicator":v();break;case"request":g();break}};be(e,{resetRecord:()=>{const k=e.id,A=f(k);c(k,{...A,RECORD:""})},refreshData:b,click:C}),n({refreshData:b});const{setRequest:S}=r.inject(Te,{setRequest:k=>{}});return typeof S=="function"&&S({id:e.id,requestFn:b,sortNum:e.requestSort}),{option:l,style:o,click:C,onClose:s,loading:h,ecanModal:i}}}),Od="";function yc(e,n,t,o,a,i){const l=r.resolveComponent("echarts"),s=r.resolveComponent("spin"),f=r.resolveComponent("ecan-modal");return r.openBlock(),r.createElementBlock("div",{style:r.normalizeStyle(e.style)},[r.createVNode(s,{spinning:e.loading},{default:r.withCtx(()=>[r.createVNode(l,{option:e.option,autoresize:"",onClick:e.click},null,8,["option","onClick"])]),_:1},8,["spinning"]),r.createVNode(f,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:e.onClose},{default:r.withCtx(()=>[r.createVNode(s,{class:"spin-wrap",spinning:e.loading},{default:r.withCtx(()=>[r.createVNode(l,{option:e.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"])],4)}const u0=le(se(pc,[["render",yc]])),Po={...he,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:"",titleSubtext:"",titleLeft:"",legendShow:!0,legendOrient:"horizontal",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:""},zo=fe(Po),h0=["click","refreshData","resetRecord"];He.use([ct.CanvasRenderer,Ze.LineChart,xe.ToolboxComponent,xe.TitleComponent,xe.LegendComponent]);const vc=r.defineComponent({name:"EcanLine",props:{...zo},components:{Spin:Dt,Echarts:nt,EcanModal:st},setup(e,{expose:n}){const t=r.ref(),o=r.ref(!1),a=ue(e),i=r.ref([]),l=r.ref([]),s=r.ref(),f=r.computed(()=>o.value?ut:12),c=r.ref({});let d;const p=r.ref([]),u=r.computed(()=>{const M=e.xAxisLabelFormatter,H=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(){Nt(e.toolboxDownloadUrl)}},myDataZoom:{show:o.value?!1:e.toolboxDataZoomShow,title:"放大",icon:"path://M932.42 902.246667L792 761.793333A403.84 403.84 0 0 0 896 490.666667c0-223.86-181.473333-405.333333-405.333333-405.333334S85.333333 266.806667 85.333333 490.666667s181.473333 405.333333 405.333334 405.333333a403.84 403.84 0 0 0 271.126666-104l140.453334 140.453333a21.333333 21.333333 0 0 0 30.173333-30.173333zM128 490.666667c0-200.293333 162.373333-362.666667 362.666667-362.666667s362.666667 162.373333 362.666666 362.666667-162.373333 362.666667-362.666666 362.666666-362.666667-162.373333-362.666667-362.666666z m512 0a21.333333 21.333333 0 0 1-21.333333 21.333333H512v106.666667a21.333333 21.333333 0 0 1-42.666667 0V512H362.666667a21.333333 21.333333 0 0 1 0-42.666667h106.666666V362.666667a21.333333 21.333333 0 0 1 42.666667 0v106.666666h106.666667a21.333333 21.333333 0 0 1 21.333333 21.333334z",onclick(){var $;o.value=!0,($=s.value)==null||$.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(){ae.Modal.info({title:"说明信息",content:e.toolboxInfoText})}}}},title:{text:e.titleText,subText:e.titleSubtext,left:"center"},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:$=>{var z;const P=$.length;let L="",O=e.tooltipFormatter;d=(z=$[0])==null?void 0:z.data,O===""&&(O="{marker} {a} {c}");for(let T=0;T<P;T++){const{marker:B,seriesName:F,name:N,value:K,data:Z}=$[T]||{};T===0&&(L+=`${N}<br/>`),L+=ve(O,{textData:{marker:B,name:N,value:K,a:F,b:N,c:K,...Z}},{useNewline:!0,useSpace:!0}),L+="<br/>"}return L}},xAxis:{type:"category",boundaryGap:e.isBoundaryGap,data:r.unref(l).map($=>{let P={};return $&&typeof $=="object"?P={...$,textStyle:{fontSize:f.value}}:P={value:$,textStyle:{fontSize:f.value}},P}),minInterval:e.xAxisMinInterval,splitLine:{show:e.xAxisSplitLineShow,lineStyle:{color:e.xAxisSplitLineStyleColor},interval:e.xAxisSplitLineInterval},splitArea:{show:e.xAxisSplitAreaShow},axisLabel:{color:e.xAxisLabelColor,interval:e.xAxisLabelInterval||0,rotate:e.xAxisLabelRotate,width:e.xAxisLabelWidth,overflow:e.xAxisLabelOverflow,formatter($){return it(M,$)}},axisLine:{show:e.xAxisLineShow,lineStyle:{color:e.xAxisLineStyleColor}},axisTick:{show:e.xAxisTickShow}},yAxis:{type:"value",minInterval:e.yAxisMinInterval,splitLine:{show:e.yAxisSplitLineShow,lineStyle:{color:e.yAxisSplitLineStyleColor,type:e.yAxisSplitLineType}},splitArea:{show:e.yAxisSplitAreaShow},axisLabel:{show:e.yAxisLabelShow,fontSize:f.value,color:e.yAxisLabelColor,formatter($){return it(H,$)}},axisLine:{show:e.yAxisLineAlwaysDisplay,lineStyle:{color:e.yAxisLineStyleColor}}},legend:{show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,textStyle:{fontSize:f.value},itemHeight:e.legendItemHeight,itemWidth:e.legendItemWidth,itemGap:e.legendItemGap,data:r.unref(p).map($=>({name:$.name,icon:e.legendType}))},series:r.unref(i)}}),h=()=>{o.value=!1},{getGlobalModel:m,setGlobalModel:g}=r.inject(Se,{getGlobalModel:M=>{},setGlobalModel:(M,H)=>{}}),{pageMode:y}=r.inject(_e,{pageMode:"normal"}),C=(M=[],H=!1)=>{let $;if(e.dataFieldConfigType==="key"){const z=H?e.keyTypeDataFieldNames:null;$=wt(M,z)}else if(e.dataFieldConfigType==="value"){const z=H?e.valueTypeDataFieldNames:null;$=It(M,z)}l.value=$.dimensions,p.value=$.dataset;const P=$.dataset,L=[],O=P.length;for(let z=0;z<O;z++)L.push({type:"line",...P[z],symbolSize:e.symbolSize,smooth:e.smooth,areaStyle:{color:e.areaGradientShow?{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:e.colors[z]},{offset:1,color:e.areaGradientColor||"transparent"}],global:!1}:e.colors[z],opacity:e.areaStyleOpacity},lineStyle:{width:e.lineStyleWidth}});i.value=L},x=(M=[],H,$=!1)=>{const L=wt(M,$?H:null);l.value=L.dimensions,p.value=L.dataset;const O=L.dataset,z=[],T=O.length;for(let B=0;B<T;B++)z.push({type:"line",...O[B],symbolSize:e.symbolSize,smooth:e.smooth,lineStyle:{width:e.lineStyleWidth}});i.value=z};r.watch(()=>[e.data,e.symbolSize,e.smooth,e.lineStyleWidth,e.areaStyleOpacity,e.areaGradientShow,e.areaGradientColor],([M])=>{(e.dataType==="static"||r.unref(y)==="design")&&C(M)},{immediate:!0,deep:!0});const v=r.ref(!1),b=ze(e),_=async()=>{var M,H;if(e.dataType==="request")try{v.value=!0;const $=await b();C((H=(M=$==null?void 0:$.data)==null?void 0:M.data)==null?void 0:H.rows,!0)}catch($){console.error($)}finally{v.value=!1}},k=ye(e)("click",M=>{const H=m(e.id);g(e.id,{...H,RECORD:e.tooltipShow?d:M.data})}),A=M=>{t.value.chart.containPixel("grid",[M.offsetX,M.offsetY])&&k()};e.tooltipShow?c.value["zr:click"]=A:c.value.click=k;const D=Ot(e),w=async()=>{var M;try{v.value=!0;const H=await D(),{columns:$=[],rows:P=[]}=((M=H==null?void 0:H.data)==null?void 0:M.data)??{};let L;$.length>0&&(L={name:$[0],types:$.slice(1).map(O=>({label:O,value:O}))}),x(P,L,!0)}catch(H){console.error(H)}finally{v.value=!1}},E=()=>{switch(e.dataType){case"indicator":w();break;case"request":_();break}};be(e,{refreshData:E,resetRecord:()=>{const M=e.id,H=m(M);g(M,{...H,RECORD:""})},click:k});const{setRequest:I}=r.inject(Te,{setRequest:M=>{}});return typeof I=="function"&&I({id:e.id,requestFn:E,sortNum:e.requestSort}),n({refreshData:E}),{option:u,style:a,click:k,loading:v,onClose:h,ecanModal:s,eventObj:c,echartRef:t}}}),Pd="";function bc(e,n,t,o,a,i){const l=r.resolveComponent("echarts"),s=r.resolveComponent("spin"),f=r.resolveComponent("ecan-modal");return r.openBlock(),r.createElementBlock("div",{style:r.normalizeStyle(e.style)},[r.createVNode(s,{spinning:e.loading},{default:r.withCtx(()=>[r.createVNode(l,r.mergeProps({ref:"echartRef",option:e.option,autoresize:""},r.toHandlers(e.eventObj)),null,16,["option"])]),_:1},8,["spinning"]),r.createVNode(f,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:e.onClose},{default:r.withCtx(()=>[r.createVNode(s,{class:"spin-wrap",spinning:e.loading},{default:r.withCtx(()=>[r.createVNode(l,{option:e.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"])],4)}const x0=le(se(vc,[["render",bc]])),Mo={...he,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:"",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:"",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",legendItemGap:10,legendItemWidth:25,legendItemHeight:14,showBarBackground:!1,legendType:""},Fo=fe(Mo),g0=["refreshData","click","resetRecord"];He.use([ct.CanvasRenderer,Ze.BarChart,xe.TitleComponent,xe.LegendComponent,xe.DatasetComponent,xe.ToolboxComponent]);const Sc=r.defineComponent({name:"EcanBar",props:{...Fo},components:{Spin:Dt,Echarts:nt,EcanModal:st,AModal:ae.Modal},setup(e,{expose:n}){const t=r.ref(),o=r.ref(!1),a=r.ref(!1),i=r.ref(null),l=r.ref([]),s=ue(e),f=r.ref([]),c=r.ref(),d=r.computed(()=>o.value?ut:12),p=r.computed(()=>{const{gradientShow:L,gradientColors:O,gradientOffset:z,barBorderRadius:T}=e,B=r.unref(f),F=B.length,N=[];for(let K=0;K<F;K++){const Z={...B[K],type:"bar",barWidth:e.barWidth,showBackground:e.showBarBackground};if(e.isStack&&(Z.stack="stack"),Z.label={show:e.labelShow,fontSize:e.labelFontSize,position:e.labelPosition,color:e.labelColor},Z.itemStyle={},L&&(Z.itemStyle={color:{x:e.isUseHorizontalAxis?1:0,y:0,x2:0,y2:e.isUseHorizontalAxis?0:1,colorStops:[{offset:0,color:e.colors[K]},{offset:z,color:O[K]},{offset:1,color:O[K]}]}}),T){const X=T.split(",");if(X!=null&&X.length){const W=[];for(const pe of X){const ke=parseFloat(pe);isNaN(ke)||W.push(ke)}Z.itemStyle.borderRadius=W}}N.push(Z)}return N}),u=r.ref([]),h=r.ref(!1),m=r.computed(()=>{const L=e.yAxisLabelFormatter,O=e.xAxisLabelFormatter;return{toolbox:{show:e.toolboxShow,left:e.toolboxLeft,top:e.toolboxTop,itemSize:e.toolboxItemSize,itemGap:e.toolboxItemGap,feature:{myLocation:{show:o.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(){a.value=!0;const z=t.value.chart.getOption(),{xAxis:T}=z||{};T&&T.length&&(l.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(){Nt(e.toolboxDownloadUrl)}},myDataZoom:{show:o.value?!1:e.toolboxDataZoomShow,title:"放大",icon:"path://M932.42 902.246667L792 761.793333A403.84 403.84 0 0 0 896 490.666667c0-223.86-181.473333-405.333333-405.333333-405.333334S85.333333 266.806667 85.333333 490.666667s181.473333 405.333333 405.333334 405.333333a403.84 403.84 0 0 0 271.126666-104l140.453334 140.453333a21.333333 21.333333 0 0 0 30.173333-30.173333zM128 490.666667c0-200.293333 162.373333-362.666667 362.666667-362.666667s362.666667 162.373333 362.666666 362.666667-162.373333 362.666667-362.666666 362.666666-362.666667-162.373333-362.666667-362.666666z m512 0a21.333333 21.333333 0 0 1-21.333333 21.333333H512v106.666667a21.333333 21.333333 0 0 1-42.666667 0V512H362.666667a21.333333 21.333333 0 0 1 0-42.666667h106.666666V362.666667a21.333333 21.333333 0 0 1 42.666667 0v106.666666h106.666667a21.333333 21.333333 0 0 1 21.333333 21.333334z",onclick(){var z;o.value=!0,(z=c.value)==null||z.showModal()}},myInfo:{show:e.toolboxInfoShow,title:"说明信息",icon:"path://M512.50142 958.397886c-119.320573 0-231.499491-46.465265-315.871087-130.837884C112.258737 743.188406 65.792449 631.010511 65.792449 511.688915c0-119.319549 46.466288-231.499491 130.837884-315.871087C281.002952 111.445208 393.180847 64.979944 512.50142 64.979944s231.499491 46.465265 315.871087 130.837884c84.372619 84.372619 130.837884 196.551538 130.837884 315.871087 0 119.321596-46.465265 231.499491-130.837884 315.871087C744.000911 911.932622 631.821993 958.397886 512.50142 958.397886zM512.50142 105.962334c-223.718271 0-405.726581 182.00831-405.726581 405.726581s182.00831 405.726581 405.726581 405.726581c223.718271 0 405.727605-182.00831 405.727605-405.726581S736.220714 105.962334 512.50142 105.962334z M510.150886 775.953647c-18.107403 0-32.745798-14.678304-32.745798-32.785707L477.405087 452.191846c0-18.108426 14.638395-32.785707 32.745798-32.785707 18.107403 0 32.745798 14.678304 32.745798 32.785707l0 290.976094C542.896684 761.275343 528.258289 775.953647 510.150886 775.953647z M511.357364 296.458969m-45.080731 0a44.054 44.054 0 1 0 90.161463 0 44.054 44.054 0 1 0-90.161463 0Z",onclick(){ae.Modal.info({title:"说明信息",content:e.toolboxInfoText})}}}},title:{text:e.titleText,subtext:e.titleSubtext,left:"center"},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:z=>{const T=z.length;let B="",F=e.tooltipFormatter;F===""&&(F="{marker} {a} {c}");for(let N=0;N<T;N++){const{marker:K,seriesName:Z,name:X,value:W,data:pe}=z[N]||{};N===0&&(B+=`${X}<br/>`),B+=ve(F,{textData:{marker:K,name:X,value:W,a:Z,b:X,c:W,...pe}},{useNewline:!0,useSpace:!0}),B+="<br/>"}return B},textStyle:{color:e.tooltipTextStyleColor,fontSize:d.value}},legend:{show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,textStyle:{color:e.legendTextStyleColor,fontSize:d.value},itemHeight:e.legendItemHeight,itemWidth:e.legendItemWidth,itemGap:e.legendItemGap,data:r.unref(f).map((z,T)=>({name:z.name,itemStyle:{color:e.colors[T]},icon:e.legendType}))},xAxis:{type:e.isUseHorizontalAxis?"value":"category",data:e.isUseHorizontalAxis?null:r.unref(v),inverse:e.isUseHorizontalAxis?e.xAxisInverse:e.axisInverse,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,formatter(z){return it(O,z)}},axisLine:{show:e.xAxisLineShow,lineStyle:{color:e.xAxisLineStyleColor}},axisTick:{show:e.xAxisTickShow}},yAxis:{type:e.isUseHorizontalAxis?"category":"value",data:e.isUseHorizontalAxis?r.unref(u):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:d.value,color:e.yAxisLabelColor,rotate:e.yAxisLabelRotate,width:e.yAxisLabelWidth,overflow:e.yAxisLabelOverflow,formatter(z){return it(L,z)}},axisLine:{show:e.yAxisLineAlwaysDisplay,lineStyle:{color:e.yAxisLineStyleColor}}},series:r.unref(p)}}),{pageMode:g}=r.inject(_e,{pageMode:"normal"}),y=()=>{o.value=!1},C=(L=[],O=!1)=>{let z={};if(e.dataFieldConfigType==="key"){const T=O?e.keyTypeDataFieldNames:null;z=wt(L,T)}else if(e.dataFieldConfigType==="value"){const T=O?e.valueTypeDataFieldNames:null;z=It(L,T)}f.value=z.dataset,u.value=z.dimensions},x=(L=[],O,z=!1)=>{const B=wt(L,z?O:null);f.value=B.dataset,u.value=B.dimensions},v=r.computed(()=>r.unref(u).map(L=>{let O={};return L&&typeof L=="object"?O={...L,textStyle:{fontSize:d.value}}:O={value:L,textStyle:{fontSize:d.value}},O}));r.watch(()=>e.data,L=>{(e.dataType==="static"||r.unref(g)==="design")&&C(L)},{immediate:!0,deep:!0});const b=ze(e),_=async()=>{var L,O;try{h.value=!0;const z=await b();C((O=(L=z==null?void 0:z.data)==null?void 0:L.data)==null?void 0:O.rows,!0)}catch(z){console.error(z)}finally{h.value=!1}},S=Ot(e),k=async()=>{var L;try{h.value=!0;const O=await S(),{columns:z=[],rows:T=[]}=((L=O==null?void 0:O.data)==null?void 0:L.data)??{};let B;z.length>0&&(B={name:z[0],types:z.slice(1).map(F=>({label:F,value:F}))}),x(T,B,!0)}catch(O){console.error(O)}finally{h.value=!1}},A=()=>{switch(e.dataType){case"indicator":k();break;case"request":_();break}},D=(L,O)=>!!r.unref(l)[O.value].value.includes(L),w=async()=>{a.value=!1;const L=t.value.chart.getOption();for(let O=0;O<7;O++)await E(L,O)},E=(L,O)=>new Promise(z=>{setTimeout(()=>{const{series:T,color:B,xAxis:F}=L,N=t.value.chart,{splitArea:K={}}=F[0]||{};T.forEach((Z,X)=>{const W=Z.data;let pe="";O%2?pe=B[X]+"a8":pe=B[X],W[i.value].itemStyle={color:pe}}),O%2?(K.show=!0,K.areaStyle.color=r.unref(l).map((Z,X)=>X===i.value?"#ff003b26":"")):K.show=!1,N.setOption({series:T,xAxis:F}),z()},200)});n({refreshData:A});const R=ye(e),{getGlobalModel:I,setGlobalModel:M}=r.inject(Se,{getGlobalModel:L=>{},setGlobalModel:(L,O)=>{}}),H=R("click",L=>{const O=I(e.id);M(e.id,{...O,RECORD:L.data})}),{setRequest:$}=r.inject(Te,{setRequest:L=>{}});return typeof $=="function"&&$({id:e.id,requestFn:A,sortNum:e.requestSort}),be(e,{refreshData:A,click:H,resetRecord:()=>{const L=e.id,O=I(L);M(L,{...O,RECORD:""})}}),{option:m,style:s,refreshData:A,click:H,loading:h,onClose:y,ecanModal:c,echartRef:t,handleLocationOk:w,onFilterOption:D,locationVisible:a,locationValue:i,locationNames:l}}}),Md="",Fd="",wc=e=>(r.pushScopeId("data-v-c9631a16"),e=e(),r.popScopeId(),e),Cc={class:"location-wrap"},kc=wc(()=>r.createElementVNode("div",{class:"location-text"},"选择分类:",-1));function _c(e,n,t,o,a,i){const l=r.resolveComponent("echarts"),s=r.resolveComponent("spin"),f=r.resolveComponent("ecan-modal"),c=r.resolveComponent("a-select-option"),d=r.resolveComponent("a-select"),p=r.resolveComponent("a-modal");return r.openBlock(),r.createElementBlock("div",{class:"ecan-bar",style:r.normalizeStyle(e.style)},[r.createVNode(s,{spinning:e.loading},{default:r.withCtx(()=>[r.createVNode(l,{ref:"echartRef",option:e.option,"update-options":{notMerge:!0},autoresize:"",onClick:e.click},null,8,["option","onClick"])]),_:1},8,["spinning"]),r.createVNode(f,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:e.onClose},{default:r.withCtx(()=>[r.createVNode(s,{class:"spin-wrap",spinning:e.loading},{default:r.withCtx(()=>[r.createVNode(l,{option:e.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"]),r.createVNode(p,{visible:e.locationVisible,"onUpdate:visible":n[1]||(n[1]=u=>e.locationVisible=u),title:"快速定位",onOk:e.handleLocationOk},{default:r.withCtx(()=>[r.createElementVNode("div",Cc,[kc,r.createVNode(d,{value:e.locationValue,"onUpdate:value":n[0]||(n[0]=u=>e.locationValue=u),style:{width:"100%"},placeholder:"请选择","show-search":"","filter-option":e.onFilterOption},{default:r.withCtx(()=>[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(e.locationNames,(u,h)=>(r.openBlock(),r.createBlock(c,{key:h,value:h},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(u.value),1)]),_:2},1032,["value"]))),128))]),_:1},8,["value","filter-option"])])]),_:1},8,["visible","onOk"])],4)}const m0=le(se(Sc,[["render",_c],["__scopeId","data-v-c9631a16"]])),Vo={...he,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:"",tooltipShow:!0,tooltipTrigger:"item",tooltipFormatter:"{marker} {b} {c}",legendShow:!1,legendOrient:"horizontal",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"},qo=fe(Vo),p0=["click","refreshData","resetRecord"];He.use([ct.CanvasRenderer,Ze.ScatterChart,xe.ToolboxComponent,xe.TitleComponent,xe.TooltipComponent,xe.LegendComponent]);const Ac=r.defineComponent({name:"EcanScatter",props:{...qo},components:{Spin:Dt,Echarts:nt,EcanModal:st},setup(e){const n=r.ref(!1),t=ue(e),o=r.ref([]),a=r.ref(),i=r.computed(()=>n.value?ut:12),l=r.computed(()=>{const b=e.xAxisLabelFormatter,_=e.yAxisLabelFormatter;return{toolbox:{show:e.toolboxShow,left:e.toolboxLeft,top:e.toolboxTop,itemSize:e.toolboxItemSize,itemGap:e.toolboxItemGap,feature:{myDownload:{show:e.toolboxDownloadShow,title:"数据下载",icon:"path://M502.010485 765.939573c3.773953 3.719718 8.686846 5.573949 13.596669 5.573949 0.075725 0 0.151449-0.010233 0.227174-0.011256 0.329505 0.016373 0.654916 0.050142 0.988514 0.050142 0.706081 0 1.400906-0.042979 2.087545-0.116657 4.352121-0.366344 8.607028-2.190899 11.961426-5.496178l335.053985-330.166675c7.619538-7.509021 7.709589-19.773346 0.200568-27.393907s-19.774369-7.711636-27.39493-0.201591L536.193005 706.304358 536.193005 50.019207c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 657.032164-306.881342-302.44838c-7.618515-7.509021-19.883863-7.419993-27.393907 0.199545-7.509021 7.619538-7.419993 19.884886 0.199545 27.393907L502.010485 765.939573z, M867.170139 711.020776c-10.698666 0-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 13.054317-10.620895 23.675212-23.676236 23.675212L205.182103 919.486668c-13.054317 0-23.676236-10.620895-23.676236-23.675212L181.505867 730.391962c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 34.416857 28.000728 62.416562 62.417585 62.416562l618.941638 0c34.417881 0 62.417585-27.999704 62.417585-62.416562L886.540302 730.391962C886.541325 719.693296 877.868805 711.020776 867.170139 711.020776z",onclick(){Nt(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 S;n.value=!0,(S=a.value)==null||S.showModal()}},myInfo:{show:e.toolboxInfoShow,title:"说明信息",icon:"path://M512.50142 958.397886c-119.320573 0-231.499491-46.465265-315.871087-130.837884C112.258737 743.188406 65.792449 631.010511 65.792449 511.688915c0-119.319549 46.466288-231.499491 130.837884-315.871087C281.002952 111.445208 393.180847 64.979944 512.50142 64.979944s231.499491 46.465265 315.871087 130.837884c84.372619 84.372619 130.837884 196.551538 130.837884 315.871087 0 119.321596-46.465265 231.499491-130.837884 315.871087C744.000911 911.932622 631.821993 958.397886 512.50142 958.397886zM512.50142 105.962334c-223.718271 0-405.726581 182.00831-405.726581 405.726581s182.00831 405.726581 405.726581 405.726581c223.718271 0 405.727605-182.00831 405.727605-405.726581S736.220714 105.962334 512.50142 105.962334z M510.150886 775.953647c-18.107403 0-32.745798-14.678304-32.745798-32.785707L477.405087 452.191846c0-18.108426 14.638395-32.785707 32.745798-32.785707 18.107403 0 32.745798 14.678304 32.745798 32.785707l0 290.976094C542.896684 761.275343 528.258289 775.953647 510.150886 775.953647z M511.357364 296.458969m-45.080731 0a44.054 44.054 0 1 0 90.161463 0 44.054 44.054 0 1 0-90.161463 0Z",onclick(){ae.Modal.info({title:"说明信息",content:e.toolboxInfoText})}}}},title:{text:e.titleText,subtext:e.titleSubtext,left:"center"},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:i.value,color:e.xAxisLabelColor,interval:e.xAxisLabelInterval||0,rotate:e.xAxisLabelRotate,width:e.xAxisLabelWidth,overflow:e.xAxisLabelOverflow,formatter(S){return it(b,S)}},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:i.value,color:e.yAxisLabelColor,formatter(S){return it(_,S)}},axisLine:{show:e.yAxisLineAlwaysDisplay,lineStyle:{color:e.yAxisLineStyleColor}}},tooltip:{show:e.tooltipShow,trigger:e.tooltipTrigger,formatter(S){var R;const{marker:k,seriesName:A}=S,D=((R=S==null?void 0:S.data)==null?void 0:R.record)??{},{name:w,value:E}=D;return ve(e.tooltipFormatter,{textData:{marker:k,seriesName:A,a:A,b:w,c:E,...D}})},axisPointer:{type:"cross"},textStyle:{fontSize:i.value}},legend:{show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,textStyle:{fontSize:i.value}},series:[{data:r.unref(o),type:"scatter",symbolSize:e.symbolSize}]}}),{getGlobalModel:s,setGlobalModel:f}=r.inject(Se,{getGlobalModel:b=>{},setGlobalModel:(b,_)=>{}}),{pageMode:c}=r.inject(_e,{pageMode:"normal"}),d=(b=[],_)=>{const{name:S="name",value:k="value"}=_||{};o.value=b.map(A=>({value:[A[S],A[k]],record:A}))};r.watch(()=>e.data,b=>{(e.dataType==="static"||r.unref(c)==="design")&&d(b)},{immediate:!0,deep:!0});const p=r.ref(!1),u=ze(e),h=async()=>{var b,_;if(e.dataType==="request"){p.value=!0;try{const S=await u();d((_=(b=S==null?void 0:S.data)==null?void 0:b.data)==null?void 0:_.rows,e.dataFieldNames)}catch(S){console.error(S)}finally{p.value=!1}}},m=()=>{n.value=!1},y=ye(e)("click",b=>{const _=e.id,S=s(_);f(_,{...S,RECORD:b==null?void 0:b.data})});be(e,{refreshData:()=>{h()},click:y,resetRecord:()=>{const b=e.id,_=s(b);f(b,{..._,RECORD:""})}});const{setRequest:v}=r.inject(Te,{setRequest:b=>{}});return typeof v=="function"&&v({id:e.id,requestFn:h,sortNum:e.requestSort}),{option:l,style:t,click:y,loading:p,onClose:m,ecanModal:a}}}),qd="";function Ec(e,n,t,o,a,i){const l=r.resolveComponent("echarts"),s=r.resolveComponent("spin"),f=r.resolveComponent("ecan-modal");return r.openBlock(),r.createElementBlock("div",{style:r.normalizeStyle(e.style)},[r.createVNode(s,{spinning:e.loading},{default:r.withCtx(()=>[r.createVNode(l,{option:e.option,autoresize:"",onClick:e.click},null,8,["option","onClick"])]),_:1},8,["spinning"]),r.createVNode(f,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:e.onClose},{default:r.withCtx(()=>[r.createVNode(s,{class:"spin-wrap",spinning:e.loading},{default:r.withCtx(()=>[r.createVNode(l,{option:e.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"])],4)}const y0=le(se(Ac,[["render",Ec]])),Ho={...he,id:"",name:"自定义图表",keyName:"自定义图表",type:"ecanCustomGraph",width:"400px",height:"400px",option:{},optionCode:""},$o=fe(Ho),Tc=r.defineComponent({name:"EcanCustomGraph",props:{...$o},components:{Echarts:nt},setup(e){const n=ue(e),t=r.ref();return r.watch(()=>e.optionCode,o=>{try{const a=eval;t.value=a(o)}catch(a){console.error(a)}},{immediate:!0}),{style:n,myOption:t,echarts:J0}}});function Bc(e,n,t,o,a,i){const l=r.resolveComponent("echarts");return r.openBlock(),r.createElementBlock("div",{style:r.normalizeStyle(e.style)},[r.createVNode(l,{option:e.myOption,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])],4)}const v0=le(se(Tc,[["render",Bc]])),jo={...he,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:"",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,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"},Uo=fe(jo),b0=["refreshData","click","resetRecord"];He.use([ct.CanvasRenderer,Ze.BarChart,Ze.LineChart,xe.TitleComponent,xe.LegendComponent,xe.DatasetComponent,xe.ToolboxComponent]);const Dc=r.defineComponent({name:"EcanComboGraph",props:{...Uo},components:{Spin:Dt,Echarts:nt,EcanModal:st,AModal:ae.Modal},setup(e,{expose:n}){const t=r.ref(),o=r.ref(!1),a=r.ref(!1),i=r.ref(null),l=r.ref([]),s=ue(e),f=r.ref([]),c=r.ref([]),d=r.ref(),p=r.computed(()=>o.value?ut:12),u=r.computed(()=>({title:{text:e.titleText,subtext:e.titleSubtext,left:"center"},toolbox:{show:e.toolboxShow,left:e.toolboxLeft,top:e.toolboxTop,itemSize:e.toolboxItemSize,itemGap:e.toolboxItemGap,feature:{myLocation:{show:o.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(){a.value=!0;const P=t.value.chart.getOption(),{xAxis:L}=P||{};L&&L.length&&(l.value=L[0].data)}},myDownload:{show:e.toolboxDownloadShow,title:"数据下载",icon:"path://M502.010485 765.939573c3.773953 3.719718 8.686846 5.573949 13.596669 5.573949 0.075725 0 0.151449-0.010233 0.227174-0.011256 0.329505 0.016373 0.654916 0.050142 0.988514 0.050142 0.706081 0 1.400906-0.042979 2.087545-0.116657 4.352121-0.366344 8.607028-2.190899 11.961426-5.496178l335.053985-330.166675c7.619538-7.509021 7.709589-19.773346 0.200568-27.393907s-19.774369-7.711636-27.39493-0.201591L536.193005 706.304358 536.193005 50.019207c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 657.032164-306.881342-302.44838c-7.618515-7.509021-19.883863-7.419993-27.393907 0.199545-7.509021 7.619538-7.419993 19.884886 0.199545 27.393907L502.010485 765.939573z, M867.170139 711.020776c-10.698666 0-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 13.054317-10.620895 23.675212-23.676236 23.675212L205.182103 919.486668c-13.054317 0-23.676236-10.620895-23.676236-23.675212L181.505867 730.391962c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 34.416857 28.000728 62.416562 62.417585 62.416562l618.941638 0c34.417881 0 62.417585-27.999704 62.417585-62.416562L886.540302 730.391962C886.541325 719.693296 877.868805 711.020776 867.170139 711.020776z",onclick(){Nt(e.toolboxDownloadUrl)}},myDataZoom:{show:o.value?!1:e.toolboxDataZoomShow,title:"放大",icon:"path://M932.42 902.246667L792 761.793333A403.84 403.84 0 0 0 896 490.666667c0-223.86-181.473333-405.333333-405.333333-405.333334S85.333333 266.806667 85.333333 490.666667s181.473333 405.333333 405.333334 405.333333a403.84 403.84 0 0 0 271.126666-104l140.453334 140.453333a21.333333 21.333333 0 0 0 30.173333-30.173333zM128 490.666667c0-200.293333 162.373333-362.666667 362.666667-362.666667s362.666667 162.373333 362.666666 362.666667-162.373333 362.666667-362.666666 362.666666-362.666667-162.373333-362.666667-362.666666z m512 0a21.333333 21.333333 0 0 1-21.333333 21.333333H512v106.666667a21.333333 21.333333 0 0 1-42.666667 0V512H362.666667a21.333333 21.333333 0 0 1 0-42.666667h106.666666V362.666667a21.333333 21.333333 0 0 1 42.666667 0v106.666666h106.666667a21.333333 21.333333 0 0 1 21.333333 21.333334z",onclick(){var P;o.value=!0,(P=d.value)==null||P.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(){ae.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:p.value}},tooltip:{trigger:"axis",show:e.tooltipShow,formatter:P=>{const L=P.length;let O="",z=e.tooltipFormatter;z===""&&(z="{marker} {a} {c}");const T=e.seriesTypes;for(let B=0;B<L;B++){const F=T[B],{tooltipFormatter:N}=F||{},{marker:K,seriesName:Z,name:X,value:W,data:pe}=P[B]||{};B===0&&(O+=`${X}<br/>`),O+=ve(N||z,{textData:{marker:K,name:X,value:W,seriesName:Z,a:Z,b:X,c:W,...pe}},{useNewline:!0,useSpace:!0}),O+="<br/>"}return O},textStyle:{color:e.tooltipTextStyleColor,fontSize:p.value}},xAxis:{minInterval:e.xAxisMinInterval,type:"category",data:r.unref(c).map(P=>{let L={};return P&&typeof P=="object"?L={...P,textStyle:{fontSize:p.value}}:L={value:P,textStyle:{fontSize:p.value}},L}),splitLine:{show:e.xAxisSplitLineShow,lineStyle:{color:e.xAxisSplitLineStyleColor},interval:e.xAxisSplitLineInterval},splitArea:{show:e.xAxisSplitAreaShow},axisLabel:{color:e.xAxisLabelColor,interval:e.xAxisLabelInterval||0,rotate:e.xAxisLabelRotate,width:e.xAxisLabelWidth,overflow:e.xAxisLabelOverflow},axisLine:{show:e.xAxisLineShow,lineStyle:{color:e.xAxisLineStyleColor}},axisTick:{show:e.xAxisTickShow}},yAxis:r.unref(C),series:r.unref(f)})),{pageMode:h}=r.inject(_e,{pageMode:"normal"}),m=()=>{o.value=!1},g=(P=[],L=!1)=>{let O;if(e.dataFieldConfigType==="key"){const N=L?e.keyTypeDataFieldNames:null;O=wt(P,N)}else if(e.dataFieldConfigType==="value"){const N=L?e.valueTypeDataFieldNames:null;O=It(P,N)}c.value=O.dimensions;const z=O.dataset,T=[],B=z.length,F=e.seriesTypes;for(let N=0;N<B;N++){const K=F[N],{type:Z,axisIndex:X}=K||{};let W={type:Z,yAxisIndex:X,...z[N]};if(Z==="line"&&(W={...W,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[N]},{offset:1,color:e.areaGradientColor||"transparent"}],global:!1}:e.colors[N],opacity:e.areaStyleOpacity},lineStyle:{width:e.lineStyleWidth}}),Z==="bar"){const pe={};if(e.barBorderRadius){const ke=e.barBorderRadius.split(",");if(ke!=null&&ke.length){const et=[];for(const Ge of ke){const Ce=parseFloat(Ge);isNaN(Ce)||et.push(Ce)}pe.borderRadius=et}}W={...W,barWidth:e.barWidth,itemStyle:pe}}T.push(W)}f.value=T},y=(P=[],L,O=!1)=>{const T=wt(P,O?L:null);c.value=T.dimensions;const B=T.dataset,F=[],N=B.length,K=e.seriesTypes;for(let Z=0;Z<N;Z++){const X=K[Z];F.push({type:X==null?void 0:X.type,yAxisIndex:X==null?void 0:X.axisIndex,...B[Z]})}f.value=F};r.watch(()=>[e.data,e.seriesTypes,e.symbolSize,e.smooth,e.areaStyleOpacity,e.lineStyleWidth,e.barWidth,e.barBorderRadius,e.areaGradientShow,e.areaGradientColor],([P])=>{(e.dataType==="static"||r.unref(h)==="design")&&g(P)},{immediate:!0,deep:!0});const C=r.computed(()=>{const P=e.yAxis;return P==null?void 0:P.map(L=>({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:p.value,color:e.yAxisLabelColor,formatter(O){return it(L.axisLabelFormatter,O)}},axisLine:{show:e.yAxisLineAlwaysDisplay,lineStyle:{color:e.yAxisLineStyleColor}}}))}),x=r.ref(!1),v=ze(e),b=async()=>{var P,L;if(e.dataType==="request")try{x.value=!0;const O=await v();g((L=(P=O==null?void 0:O.data)==null?void 0:P.data)==null?void 0:L.rows,!0)}catch(O){console.error(O)}finally{x.value=!1}},_=Ot(e),S=async()=>{var P;try{x.value=!0;const L=await _(),{columns:O=[],rows:z=[]}=((P=L==null?void 0:L.data)==null?void 0:P.data)??{};let T;O.length>0&&(T={name:O[0],types:O.slice(1).map(B=>({label:B,value:B}))}),y(z,T,!0)}catch(L){console.error(L)}finally{x.value=!1}},k=()=>{switch(e.dataType){case"indicator":S();break;case"request":b();break}},A=(P,L)=>!!r.unref(l)[L.value].value.includes(P),D=async()=>{a.value=!1;const P=t.value.chart.getOption();for(let L=0;L<7;L++)await w(P,L)},w=(P,L)=>new Promise(O=>{setTimeout(()=>{const{series:z,color:T,xAxis:B}=P,F=t.value.chart,{splitArea:N={}}=B[0]||{};z.forEach((K,Z)=>{const X=K.data;let W="";L%2?W=T[Z]+"a8":W=T[Z],X[i.value].itemStyle={color:W}}),L%2?(N.show=!0,N.areaStyle.color=r.unref(l).map((K,Z)=>Z===i.value?"#ff003b26":"")):N.show=!1,F.setOption({series:z,xAxis:B}),O()},200)});n({refreshData:k});const E=ye(e),{getGlobalModel:R,setGlobalModel:I}=r.inject(Se,{getGlobalModel:P=>{},setGlobalModel:(P,L)=>{}}),M=E("click",P=>{const L=R(e.id);I(e.id,{...L,RECORD:P==null?void 0:P.data})}),{setRequest:H}=r.inject(Te,{setRequest:P=>{}});return typeof H=="function"&&H({id:e.id,requestFn:k,sortNum:e.requestSort}),be(e,{resetRecord:()=>{const P=e.id,L=R(P);I(P,{...L,RECORD:""})},refreshData:k,click:M}),{style:s,option:u,click:M,loading:x,onClose:m,ecanModal:d,echartRef:t,handleLocationOk:D,onFilterOption:A,locationVisible:a,locationValue:i,locationNames:l}}}),jd="",Ud="",Rc=e=>(r.pushScopeId("data-v-121a0cc9"),e=e(),r.popScopeId(),e),Ic={class:"location-wrap"},Lc=Rc(()=>r.createElementVNode("div",{class:"location-text"},"选择分类:",-1));function Oc(e,n,t,o,a,i){const l=r.resolveComponent("echarts"),s=r.resolveComponent("spin"),f=r.resolveComponent("ecan-modal"),c=r.resolveComponent("a-select-option"),d=r.resolveComponent("a-select"),p=r.resolveComponent("a-modal");return r.openBlock(),r.createElementBlock("div",{style:r.normalizeStyle(e.style)},[r.createVNode(s,{spinning:e.loading},{default:r.withCtx(()=>[r.createVNode(l,{ref:"echartRef",option:e.option,"update-options":{notMerge:!0},autoresize:"",onClick:e.click},null,8,["option","onClick"])]),_:1},8,["spinning"]),r.createVNode(f,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:e.onClose},{default:r.withCtx(()=>[r.createVNode(s,{class:"spin-wrap",spinning:e.loading},{default:r.withCtx(()=>[r.createVNode(l,{option:e.option,"update-options":{notMerge:!0},autoresize:"",onClick:e.click},null,8,["option","onClick"])]),_:1},8,["spinning"])]),_:1},8,["onClose"]),r.createVNode(p,{visible:e.locationVisible,"onUpdate:visible":n[1]||(n[1]=u=>e.locationVisible=u),title:"快速定位",onOk:e.handleLocationOk},{default:r.withCtx(()=>[r.createElementVNode("div",Ic,[Lc,r.createVNode(d,{value:e.locationValue,"onUpdate:value":n[0]||(n[0]=u=>e.locationValue=u),style:{width:"100%"},placeholder:"请选择","show-search":"","filter-option":e.onFilterOption},{default:r.withCtx(()=>[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(e.locationNames,(u,h)=>(r.openBlock(),r.createBlock(c,{key:h,value:h},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(u.value),1)]),_:2},1032,["value"]))),128))]),_:1},8,["value","filter-option"])])]),_:1},8,["visible","onOk"])],4)}const S0=le(se(Dc,[["render",Oc],["__scopeId","data-v-121a0cc9"]])),Go={...he,name:"边框",keyName:"边框",type:"ecanBorder",width:"300px",height:"300px",zIndex:0,fontSize:"16px",fontFamily:"",fontWeight:700,title:"标题",mode:"no-title",borderColor:"#eee",borderRadius:"5px",borderStyle:"solid",borderWidth:"2px",backgroundColor:"#ffffff",useBorderModify:!1,textShadow:"",data:{},gradientShow:!0,gradientColor:"",gradientOffset:1},Wo=fe(Go),w0=["click"],Nc=r.defineComponent({name:"EcanBorder",props:{...Wo},setup(e){const n=ue(e,["background"]),t=r.computed(()=>{const{gradientShow:c,gradientColor:d,gradientOffset:p,backgroundColor:u}=e;return c&&d?{backgroundImage:`linear-gradient(to bottom, ${u}, ${d} ${p*100}%)`}:{}}),{theme:o}=r.inject(_e,{theme:"light"}),a=r.computed(()=>({width:"100%",height:"100%"})),l=ye(e)("click",()=>{}),s=r.ref([]);r.watch(()=>e.data,c=>{s.value=c},{immediate:!0,deep:!0}),be(e,{click:l});const{setGlobalModel:f}=r.inject(Se,{setGlobalModel:(c,d)=>{}});return f(e.id,{type:e.type,value:s}),{style:n,gradientStyle:t,click:l,borderStyle:a,theme:o}}}),Pc="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHQAAAAcCAMAAACH42siAAAAZlBMVEUAAABBltJCldJCldFEk89BltJCltFBldI/lMBKndtmb9pCltNDldFAkclAldNBldJBltM/lM5AltNCldJBldJBlNJBltVBldJBlNJBlNI/lNNBldJBldNAldJBldJBldJBldNBldIiNK7WAAAAInRSTlMAM4BNGmaz5gQGbiAPCV1WQxUpOCY9EmxQSC2jdoacqZK8uPo7tAAAAZ9JREFUSMe90NmOwjAMheGka0J3SulCy/L+Lzk4I+HYhckEKs7dr1x8kQVM5YJMZ7SLiXVHOw817Z72cSns3BmziY7EnGRGjDqUpKt4pEZQKruvyaJt85YmBUebKLJVNUlpq6oOQ1tVVRzbqu6DwFb1NUlsVd3SNL0UDM0jqkaSqoeQqjKmahtQNUzuC1AtU1sF9KHmnmrtrSK6idqBWqE6GFVxFdGvqDGoJ01Qt7rfTEV0e7V6qSK6VjNPtTaqoOq8Ugnqr7aeav+rAuqrTh+qZw3o1urAVcFVQD3U6ZnaYY9MLZk6G5WhDaDFI9UeUPyE7gCNsAdAD9gxoBJ7ARRPUVwALXdu8/h/s3xmjtwUu0/M0M/UJzBjAei3TUTdpmKmcpkBmOHKBNTPzJi59zYJys3DO2aL78YcmNkLgrrM9m9TucwzmoBy08xlju+bgL42G4c5OcxqZSLqbwqXOVNTGXMWFD0ak6KN1ZKaojYmbribndW9MXELNQEFFUyiNqQlmEQ1JqpgErUifUUTUVEIupx1wzpjvWfdsh4FQX8ANe4nnpsb9NEAAAAASUVORK5CYII=",zc="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHQAAAAcCAMAAACH42siAAAAaVBMVEUAAABElM9BltJCldJCldFBltJBldJCltFNmrNCmNNFldNAldJBldNBldRBldNBldNBldJCoNFBldJBltNBldJBldJAldJAltJBldJBldJBldNAlNFAldJBlNJAldJBldNBldJBldJBldLfIVowAAAAI3RSTlMAGjJNgGbmswMSCScgDTs/ZAVRK0eYj2s3r3AWveHEhXjeXb5rzlgAAAFqSURBVEjH1dbJVsJAEIXhHjJ05tlEooK8/0NKsbDrFjmHiBD0Lvqcf9PfthRM7xvoZMQuLHZaOejGYLtcdEItzI9oaLg5xIHj5hgcG262oXXcrGzJ23Umg5717C7NKBrAjOMDM8YgCI5ghmEPprUTmMZkrBOtdbJgfpZovho0gwzNOkfTam9k5jSGkKlTMOezWT3VLH5qlg8wQzSbO5jJ28l8Z+YLmZMwuz9lupvNXpjlFTMTZv7vzFSatTDtGnNeYdpNzZTMSJhx5f84m8Y3mSEzJzTVolko3J7Qve+a0J3vntDWffdEaMUQQo1vTWjuuyA0UWvUUarqzuqLUMPt1MD3uKTaTdRwvdrdorpFtfZtH6eyK2F3RS23U3uhlr9VB1TdE1V2h7Vr1O4mdbdera6o+Wq1Vqi2rEktFapGoZopVLVCtVCXag19IBPUiiWpBrojE1QNXZAp1/TYbhKdKVwuWotORKfn9wu/DSc/X9T6qgAAAABJRU5ErkJggg==",Wd="",qe=e=>(r.pushScopeId("data-v-bbdbee93"),e=e(),r.popScopeId(),e),Mc=qe(()=>r.createElementVNode("div",{class:"top-left border-item"},null,-1)),Fc=qe(()=>r.createElementVNode("div",{class:"top-right border-item"},null,-1)),Vc=qe(()=>r.createElementVNode("div",{class:"bottom-left border-item"},null,-1)),qc=qe(()=>r.createElementVNode("div",{class:"bottom-right border-item"},null,-1)),Hc={class:"title-item-wrapper"},$c={class:"title-item"},jc=qe(()=>r.createElementVNode("img",{class:"title-decoration-left",src:Pc},null,-1)),Uc={class:"title"},Gc=qe(()=>r.createElementVNode("img",{class:"title-decoration-right",src:zc},null,-1)),Wc=qe(()=>r.createElementVNode("div",{class:"top-left border-item"},null,-1)),Zc=qe(()=>r.createElementVNode("div",{class:"top-right border-item"},null,-1)),Kc=qe(()=>r.createElementVNode("div",{class:"bottom-left border-item"},null,-1)),Yc=qe(()=>r.createElementVNode("div",{class:"bottom-right border-item"},null,-1)),Xc={key:2,class:"left-title"},Jc={class:"title"};function Qc(e,n,t,o,a,i){return r.openBlock(),r.createElementBlock("div",{class:"ecan-border",style:r.normalizeStyle({...e.style,...e.gradientStyle}),onClick:n[0]||(n[0]=(...l)=>e.click&&e.click(...l))},[e.mode==="no-title"?(r.openBlock(),r.createElementBlock("div",{key:0,class:"no-title",style:r.normalizeStyle(e.borderStyle)},[e.useBorderModify?(r.openBlock(),r.createElementBlock(r.Fragment,{key:0},[Mc,Fc,Vc,qc],64)):r.createCommentVNode("",!0)],4)):r.createCommentVNode("",!0),e.mode==="top-title"?(r.openBlock(),r.createElementBlock("div",{key:1,class:"top-title",style:r.normalizeStyle(e.borderStyle)},[r.createElementVNode("div",Hc,[r.createElementVNode("div",$c,[jc,r.createElementVNode("div",Uc,r.toDisplayString(e.title),1),Gc])]),Wc,Zc,Kc,Yc],4)):r.createCommentVNode("",!0),e.mode==="left-title"?(r.openBlock(),r.createElementBlock("div",Xc,[r.createElementVNode("div",Jc,[r.createElementVNode("span",null,r.toDisplayString(e.title),1)])])):r.createCommentVNode("",!0)],4)}const C0=le(se(Nc,[["render",Qc],["__scopeId","data-v-bbdbee93"]])),Zo={...he,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"},Ko=fe(Zo),k0=["tabChange"],ef=r.defineComponent({name:"EcanTabs",props:{...Ko},setup(e){const n=ue(e),t=r.ref(0);r.watch(()=>e.activeKey,h=>{t.value=h},{immediate:!0});const{pageMode:o}=r.inject(_e,{pageMode:"normal"});let a=null;const i=()=>{const h=Array.isArray(r.unref(l))?r.unref(l).length-1:0;e.autoSwitch&&h>0&&(a=setInterval(()=>{const m=r.unref(t)+1;m<=h?t.value=m:t.value=0,s.value=r.unref(l)[r.unref(t)],p()},e.autoSwitchInterval*1e3))};r.onMounted(()=>{r.unref(o)!=="design"&&i()}),r.onBeforeUnmount(()=>{clearInterval(a)});const l=r.ref([]),s=r.ref({});r.watch(()=>e.data,h=>{l.value=h,s.value=Array.isArray(h)&&h.length>0?h[0]:{}},{immediate:!0,deep:!0});const f=h=>t.value===h,c=ye(e),{setGlobalModel:d}=r.inject(Se,{setGlobalModel:(h,m)=>{}});d(e.id,{value:s,activeKey:t});const{emitRefreshPage:p}=r.inject(Rt,{emitRefreshPage:()=>{}}),u=c("tabChange",(h,m)=>{m!==r.unref(t)&&(s.value=h,t.value=m,p())});return be(e,{tabChange:u}),{style:n,activeKey:t,isActive:f,tabChange:u,myData:l,useImagePath:at}}}),Kd="",tf=["onClick"];function nf(e,n,t,o,a,i){return r.openBlock(),r.createElementBlock("div",{class:"ecan-tabs",style:r.normalizeStyle(e.style)},[r.createElementVNode("div",{class:"tabs-header",style:r.normalizeStyle({fontSize:e.tabFontSize,alignItems:e.tabAlignItems,justifyContent:e.tabJustifyContent,flexDirection:e.tabFlexDirection})},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(e.myData,(l,s)=>(r.openBlock(),r.createElementBlock("div",{class:"tab",style:r.normalizeStyle({padding:`5px ${e.tabHorizontalPadding}`,color:e.isActive(s)?e.activeTabColor:e.tabColor,backgroundImage:e.isActive(s)?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:s,onClick:r.withModifiers(f=>e.tabChange(l,s),["prevent","stop"])},[r.createElementVNode("div",{class:"tab-inner",style:r.normalizeStyle({borderBottom:!e.activeTabBackgroundImage&&!e.tabBackgroundImage?`1px solid ${e.isActive(s)?e.activeTabColor:"transparent"}`:""})},r.toDisplayString(l.title),5)],12,tf))),128))],4)],4)}const _0=le(se(ef,[["render",nf],["__scopeId","data-v-a2045b93"]])),Yo={...he,name:"图片",keyName:"图片",type:"ecanImage",width:"300px",height:"300px",imgUrl:"",target:"self",href:"",linkPage:""},Xo=fe(Yo),of=r.defineComponent({name:"EcanImage",props:{...Xo},setup(e){const n=ue(e),t=r.computed(()=>at(e.imgUrl)),{pageMode:o}=r.inject(_e,{pageMode:"normal"});return{style:n,myImgUrl:t,onClick:()=>{if(!e.linkPage&&!e.href)return;const i=e.linkPage||"",l=Oa(r.unref(o),i),s=e.href;let f=s||l;f=ve(f);const c=e.target;c&&(c!=="event"?window.open(f,"_"+c):window.parent.postMessage({type:"openPage",url:s},"*"))}}}}),Xd="",rf=["src"];function af(e,n,t,o,a,i){return e.myImgUrl!==""?(r.openBlock(),r.createElementBlock("img",{key:0,style:r.normalizeStyle(e.style),src:e.myImgUrl,onClick:n[0]||(n[0]=(...l)=>e.onClick&&e.onClick(...l))},null,12,rf)):(r.openBlock(),r.createElementBlock("div",{key:1,class:"image-placeholder",style:r.normalizeStyle(e.style)}," 请上传图片 ",4))}const A0=le(se(of,[["render",af],["__scopeId","data-v-ef7a7bee"]])),Jo={...he,name:"网页",keyName:"网页",type:"ecanIframe",width:"300px",height:"300px",link:"",linkType:"web"},Qo=fe(Jo),sf=r.defineComponent({name:"EcanIframe",props:{...Qo},setup(e){const n=ue(e),{contextRequestUrl:t}=r.inject(_e,{contextRequestUrl:""}),o=r.computed(()=>{let a=ve(e.link);if(e.linkType==="erd"&&a!=null){let i=r.unref(t);i[i.length-1]==="/"?i+="erdReport":i+="/erdReport",a=`${vs||i}?_t=0&uid=${a}`}return a});return{style:n,myLink:o}}}),Qd="",lf=["src"];function cf(e,n,t,o,a,i){return e.myLink?(r.openBlock(),r.createElementBlock("iframe",{key:0,src:e.myLink,style:r.normalizeStyle(e.style)},null,12,lf)):(r.openBlock(),r.createElementBlock("div",{key:1,class:"iframe-placeholder",style:r.normalizeStyle(e.style)}," 请填写网页链接 ",4))}const E0=le(se(sf,[["render",cf],["__scopeId","data-v-19bc100c"]])),er={...he,zIndex:2,name:"表格",keyName:"表格",type:"ecanTable",width:"400px",height:"240px",bordered:!1,headerFontSize:"14px",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:"",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},tr=fe(er),T0=["click","refreshData","resetRecord","exportTableData"],nr=r.defineComponent({name:"EcanTable",components:{Skeleton:Vt,AButton:ae.Button,AInput:ae.Input,ACheckboxGroup:ae.CheckboxGroup,ATable:ae.Table,ATableSummary:ae.TableSummary,ATableSummaryRow:ae.TableSummaryRow,ATableSummaryCell:ae.TableSummaryCell},props:{...tr},setup(e,{expose:n}){const t=r.ref(),o=r.ref(!1),a=ue(e),i=r.computed(()=>{if(e.paginationShow)switch(e.size){case"small":return 90;case"middle":return 100;default:return 120}else switch(e.size){case"small":return 40;case"middle":return 47;default:return 55}}),l=r.computed(()=>e.scrollX),s=r.computed(()=>parseFloat(e.height)-r.unref(i)),f=r.ref([]),c=r.ref([]),d=r.ref([]),p=r.ref([]),u=r.ref(0),h=r.ref(1),m=r.ref(e.paginationPageSize||10),g=r.reactive([]),y=(j=[])=>{if(Array.isArray(j)&&j.length>0){const U=j.length,Y=e.columnsFixedNum;for(let J=0;J<U;J++){const G=j[J];J<Y?G.fixed="left":G.fixed=!1;const{cellAlign:ee="center",cellColor:oe,dataIndex:ce,title:de,tableFilter:ie,headerCellAlign:Be,headerCellColor:De}=G;ie&&(g.push(ce),G.filterOptionsInputValue="",G.filterCheckboxGroupValue=[],G.customFilterDropdown=!0,G.onFilter=(Me,_t)=>_t[ce].toString().toLowerCase().includes(Me.toLowerCase())),G.customHeaderCell=()=>({style:{display:"table-cell",verticalAlign:"middle",fontSize:e.headerFontSize,fontWeight:e.headerFontWeight,textAlign:Be||"center",color:De,borderBottomColor:e.borderColor}}),G.customCell=(Me,_t)=>({style:{textAlign:ee,color:oe,backgroundColor:e.cellBackgroundColor,borderBottomColor:e.borderColor},class:{highlight:r.unref(z)===_t&&e.clickHighlight},onClick:M("click",()=>{const We=e.id,lt=H(We);Me={dataIndex:ce,title:de,...Me},$(We,{...lt,RECORD:Me})})}),Array.isArray(G.children)&&y(G.children)}}},C=(j=[])=>(e.isUseSeq&&j.unshift({title:"序号",dataIndex:"SEQ",align:"center"}),e.isUseAction&&j.push({title:"操作",dataIndex:"ACTION",width:e.actionColumnWidth}),y(j),j);r.watch(m,()=>{h.value=1,B(!1)}),r.watch(t,j=>{o.value=!!j}),r.watch(()=>[e.columns,e.isUseSeq,e.isUseAction,e.columnsFixedNum,e.actionColumnWidth,e.cellBackgroundColor,e.borderColor],()=>{f.value=C($e.cloneDeep(e.columns))},{immediate:!0,deep:!0}),r.watch(()=>[e.data,e.dataType],([j,U])=>{U==="static"&&(c.value=j)},{immediate:!0});const x=r.ref({}),v=j=>{if(Array.isArray(j)){const U=j.length,Y=g,J=Y.length,G={};for(let oe=0;oe<U;oe++){const ce=j[oe];for(let de=0;de<J;de++){const ie=Y[de];if(G[ie])G[ie].add(ce[ie]);else{const Be=new Set;Be.add(ce[ie]),G[ie]=Be}}}const ee={};for(const oe in G)if(Object.prototype.hasOwnProperty.call(G,oe)){const ce=G[oe],de=Array.from(ce);ee[oe]=de.map(ie=>({label:ie,value:ie}))}x.value=ee}};r.watch(()=>[e.isReverse,f.value,c.value],()=>{const j=r.unref(f),U=r.unref(c);if(v(U),e.isReverse){const{columns:Y,dataSource:J}=b($e.cloneDeep(j),$e.cloneDeep(U));d.value=Y,p.value=J}else d.value=j,p.value=U},{immediate:!0});const b=(j,U)=>{const Y=j[0],J=[{title:Y.title,dataIndex:"col0",key:"col0",align:"center"}];for(let ee=0;ee<U.length;ee++){const oe=U[ee],ce="col"+(ee+1);J.push({title:oe[Y.dataIndex],dataIndex:ce,key:ce,align:"center"})}const G=[];for(let ee=1;ee<j.length;ee++){const oe=j[ee],ce={col0:oe.title};for(let de=0;de<U.length;de++){const ie=U[de];ce[`col${de+1}`]=ie[oe.dataIndex]}G.push(ce)}return{columns:J,dataSource:G}},_=r.ref(""),S=ze(e),k=r.ref(!1),A=async(j=!0,U={})=>{var Y;try{j&&(k.value=!0),r.unref(_)&&(U.orderCondition=r.unref(_)),e.paginationShow&&(U={pageNum:r.unref(h),pageSize:r.unref(m)||"10",layer:"1",...U});const J=await S(U),{rows:G=[],total:ee=0}=((Y=J==null?void 0:J.data)==null?void 0:Y.data)||{};if(u.value=ee,Array.isArray(G)&&(c.value=G),window.config.routerBaseURL.includes("1523545080925487106")){const{requestParams:oe=[]}=e,ce=oe.find(de=>de.key==="dataSqlId");if((ce==null?void 0:ce.value)==="xt_jxzebg"){const de=G.filter(ie=>!ie.绩效总额).map(ie=>ie.ORG_NAME);de!=null&&de.length&&r.nextTick(()=>{ae.notification.warning({message:"提示",description:`当前时段${de.join("、")}绩效数据为空`,duration:3})})}}}catch(J){console.error(J)}finally{k.value=!1}},D=({current:j},U,Y)=>{if(h.value=j,Y&&Object.keys(Y).length>0){const{field:J,order:G}=Y,oe={ascend:"asc",descend:"desc"}[G];J!=null&&oe!=null&&(_.value=J+" "+oe,h.value=1)}B(!1)},w=r.computed(()=>{const j=e.simple,U=[e.paginationPosition];return e.paginationShow&&{simple:j,position:U,total:r.unref(u),current:r.unref(h),pageSize:r.unref(m)||"10",showSizeChanger:!1}}),E=j=>+j==1?"是":+j==0?"否":j,R=(j,U)=>U==null||U===""?j:{money:ao,percentage:Xt,contrast:Xt,boolean:E}[U](j)||"",I=(j,U)=>{const Y=parseFloat(j+"");if(U!=="contrast")return"";switch(!0){case Y>=0:return"goUp";case Y<0:return"goDown"}},M=ye(e),{getGlobalModel:H,setGlobalModel:$}=r.inject(Se,{getGlobalModel:j=>{},setGlobalModel:(j,U)=>{}}),P=(j=[],U=[])=>{const Y=j.map(J=>({title:J,dataIndex:J,key:J}));f.value=C(Y),c.value=U},L=Ot(e),O=async()=>{var j,U,Y,J;try{k.value=!0;const G=await L();P((U=(j=G==null?void 0:G.data)==null?void 0:j.data)==null?void 0:U.columns,(J=(Y=G==null?void 0:G.data)==null?void 0:Y.data)==null?void 0:J.rows)}catch(G){console.error(G)}finally{k.value=!1}},z=r.ref(-1),T=(j,U)=>({onClick:M("rowClick",()=>{const Y=e.id,J=H(Y);$(Y,{...J,RECORD:j}),z.value=U})}),B=(j=!0)=>{switch(e.dataType){case"request":A(j);break;case"indicator":O();break}},F=()=>{const j=e.id,U=H(j);$(j,{...U,RECORD:""})},N=r.computed(()=>{const j=r.unref(d),U=[];let Y=0;for(let G=0;G<j.length;G++){const ee=j[G],{isCalcTotal:oe}=ee;e.isUseSeq&&G===0?U.push({...ee,total:"小计"}):oe?(U.push({...ee,index:G,total:0}),Y++):U.push({...ee})}if(Y===0)return[];const J=r.unref(p);for(let G=0;G<U.length;G++){const ee=U[G];let oe=0;const{isCalcTotal:ce,dataIndex:de}=ee;if(ce===!0){for(let ie=0;ie<J.length;ie++){const De=+J[ie][de];isNaN(De)||(oe=new Y0.Big(oe).add(De).toNumber())}ee.total=oe}}return U}),{setRequest:K}=r.inject(Te,{setRequest:j=>{}});typeof K=="function"&&K({id:e.id,requestFn:B,sortNum:e.requestSort}),n({refreshData:B});const Z=(j="",U)=>ve(j,U),X=j=>{if(j!=="event")return{self:"_self",blank:"_blank"}[j]},W=(j,U="")=>{j==="event"&&window.parent.postMessage({type:"openPage",url:U},"*")},pe=(j,U)=>{j(U.filterCheckboxGroupValue)},ke=(j,U)=>{j({confirm:!0}),U.filterOptionsInputValue="",U.filterCheckboxGroupValue=[]},et=()=>{},Ge=j=>{const U=j.dataIndex;if(typeof U=="string"){let Y=r.unref(x)[U];const J=r.unref(j.filterOptionsInputValue).trim();return Array.isArray(Y)?(Y=Y.filter(G=>typeof G.label=="string"?G.label.toLowerCase().includes(J.toLowerCase()):!0),Y):[]}return[]},Ce=async()=>{var ie,Be;const j="EXPORT_KEY";ae.message.loading({key:j,content:"正在导出...",duration:0});let U=[];if(e.dataType==="static")U=e.data;else if(e.dataType==="request"){const De={layer:"1"};r.unref(_)&&(De.orderCondition=r.unref(_));const Me=await S(De);U=((Be=(ie=Me==null?void 0:Me.data)==null?void 0:ie.data)==null?void 0:Be.rows)||{}}const Y=r.unref(d),J=[],G=[];Y==null||Y.forEach(De=>{J.push(De.dataIndex),G.push(De.title)});const ee=U.map(De=>$e.pick(De,J)),oe=At.utils.book_new(),ce=At.utils.aoa_to_sheet([G]),de=At.utils.sheet_add_json(ce,ee,{skipHeader:!0,origin:"A2"});At.utils.book_append_sheet(oe,de,"sheet"),At.writeFile(oe,"表格数据.xlsx"),ae.message.success({key:j,content:"导出成功"})},Ee=(j,U=2)=>{const Y=+j*100;return isNaN(Y)||Y<=0?0:Y>=100?100:Y.toFixed(U)};be(e,{resetRecord:F,refreshData:B,exportTableData:Ce});const Ct=r.computed(()=>e.headerBackgroundColor||"#fafafa");return{x:l,y:s,style:a,customRow:T,pagination:w,formatFn:R,contrastClass:I,tableChange:D,summaryList:N,loading:k,onTouchHrefEvent:W,handleHref:Z,handleHrefTarget:X,useRowIndex:z,tableColumns:d,tableDataSource:p,useFilterOptions:Ge,useSetSelectedKeys:pe,onResetFilter:ke,onSearchFilterOptions:et,exportTableData:Ce,handleProgressText:Ee,pageSizeVisible:o,pageSize:m,tableRef:t,headerBgColor:Ct,rowClassName:(j,U)=>{let Y=null;return e.stripedShow&&(Y=U%2===1?"table-striped":null),Y}}}}),B0=()=>{r.useCssVars(e=>({b914fa08:e.headerBgColor}))},D0=nr.setup;nr.setup=D0?(e,n)=>(B0(),D0(e,n)):B0;const t1="",n1="",ff=["id"],df={key:0,class:"table-tool"},uf=r.createTextVNode("导出数据"),hf=r.createTextVNode(" 搜索 "),xf=r.createTextVNode(" 重置 "),gf={key:0},mf={key:1,class:"action-list"},pf=["href","target","onClick"],yf={key:2,class:"progress-cell"},vf={class:"ant-pagination-options-quick-jumper"},bf=r.createTextVNode(" 条 / 页 ");function Sf(e,n,t,o,a,i){const l=r.resolveComponent("a-button"),s=r.resolveComponent("a-input"),f=r.resolveComponent("a-checkbox-group"),c=r.resolveComponent("a-table-summary-cell"),d=r.resolveComponent("a-table-summary-row"),p=r.resolveComponent("a-table-summary"),u=r.resolveComponent("a-table"),h=r.resolveComponent("skeleton");return r.openBlock(),r.createElementBlock("div",{class:"ecan-table",id:"ecanTable-"+e.id,style:r.normalizeStyle(e.style)},[r.createVNode(h,{loading:e.loading},{default:r.withCtx(()=>{var m;return[e.isUseExport?(r.openBlock(),r.createElementBlock("div",df,[r.createVNode(l,{class:"export-button",onClick:e.exportTableData},{default:r.withCtx(()=>[uf]),_:1},8,["onClick"])])):r.createCommentVNode("",!0),r.createVNode(u,{ref:"tableRef",class:"table",style:{height:"100%"},columns:e.tableColumns,"data-source":e.tableDataSource,bordered:e.bordered,size:e.size,customRow:e.customRow,scroll:{x:e.x,y:e.y},pagination:e.pagination,"row-class-name":e.rowClassName,onChange:e.tableChange},{customFilterDropdown:r.withCtx(({column:g,selectedKeys:y,setSelectedKeys:C,confirm:x,clearFilters:v})=>[r.createElementVNode("div",{class:"ecan-table-filter",style:r.normalizeStyle({height:e.filterDropdownHeight})},[r.createVNode(s,{value:g.filterOptionsInputValue,"onUpdate:value":b=>g.filterOptionsInputValue=b,placeholder:"请输入关键字",class:"filter-input",onChange:e.onSearchFilterOptions},null,8,["value","onUpdate:value","onChange"]),r.createVNode(f,{value:g.filterCheckboxGroupValue,"onUpdate:value":b=>g.filterCheckboxGroupValue=b,class:"filter-checkbox",options:e.useFilterOptions(g),onChange:b=>e.useSetSelectedKeys(C,g)},null,8,["value","onUpdate:value","options","onChange"]),r.createElementVNode("div",null,[r.createVNode(l,{type:"primary",size:"small",style:{width:"90px","margin-right":"8px"},onClick:()=>x()},{default:r.withCtx(()=>[hf]),_:2},1032,["onClick"]),r.createVNode(l,{size:"small",style:{width:"90px"},onClick:r.withModifiers(b=>e.onResetFilter(v,g),["stop"])},{default:r.withCtx(()=>[xf]),_:2},1032,["onClick"])])],4)]),bodyCell:r.withCtx(({column:g,index:y,text:C,record:x})=>[g.dataIndex==="SEQ"?(r.openBlock(),r.createElementBlock("span",gf,r.toDisplayString(y+1),1)):g.dataIndex==="ACTION"?(r.openBlock(),r.createElementBlock("div",mf,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(e.actionList,(v,b)=>(r.openBlock(),r.createElementBlock("div",{class:"action",key:b},[r.createElementVNode("a",{href:e.handleHref(v.href,x),target:e.handleHrefTarget(v.target),style:r.normalizeStyle({color:v.color,fontSize:e.fontSize,fontWeight:e.fontWeight}),onClick:_=>e.onTouchHrefEvent(v.target,e.handleHref(v.href,x))},r.toDisplayString(v.title),13,pf)]))),128))])):g.format==="progress"?(r.openBlock(),r.createElementBlock("div",yf,[r.createElementVNode("div",{class:"progress",style:r.normalizeStyle({background:g.progressColor||"#1890ff",height:g.progressWidth||"18px",width:`${e.handleProgressText(C,g.progressTextDecimalPlaces)}%`})},null,4),r.createElementVNode("div",{class:"progress-text",style:r.normalizeStyle({color:e.handleProgressText(C)<100?g.progressTextColor||"#333":g.progressFinishedTextColor||"#fff"})},r.toDisplayString(e.handleProgressText(C,g.progressTextDecimalPlaces))+"% ",5)])):(r.openBlock(),r.createElementBlock("div",{key:3,class:r.normalizeClass([e.contrastClass(C,g.format)]),style:r.normalizeStyle({fontSize:e.fontSize,fontWeight:e.fontWeight})},r.toDisplayString(g.format!=null?e.formatFn(C,g.format):C),7))]),summary:r.withCtx(()=>[e.summaryList.length>0?(r.openBlock(),r.createBlock(p,{key:0},{default:r.withCtx(()=>[r.createVNode(d,null,{default:r.withCtx(()=>[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(e.summaryList,(g,y)=>(r.openBlock(),r.createBlock(c,{key:y,index:y,style:r.normalizeStyle({backgroundColor:e.cellBackgroundColor,textAlign:g.cellAlign||"center",color:g.cellColor,borderBottomColor:e.borderColor})},{default:r.withCtx(()=>[r.createElementVNode("div",{class:r.normalizeClass([e.contrastClass(g.total,g.format)]),style:r.normalizeStyle({fontSize:e.fontSize,fontWeight:e.fontWeight})},r.toDisplayString((g.format!=null||g.format!=="")&&e.formatFn(g.total,g.format)),7)]),_:2},1032,["index","style"]))),128))]),_:1})]),_:1})):r.createCommentVNode("",!0)]),_:1},8,["columns","data-source","bordered","size","customRow","scroll","pagination","row-class-name","onChange"]),(m=e.tableDataSource)!=null&&m.length&&!e.simple&&e.pageSizeShow&&e.pageSizeVisible?(r.openBlock(),r.createBlock(r.Teleport,{key:1,to:"#ecanTable-"+e.id+" .ant-pagination"},[r.createElementVNode("div",vf,[r.withDirectives(r.createElementVNode("input",{type:"text","onUpdate:modelValue":n[0]||(n[0]=g=>e.pageSize=g)},null,512),[[r.vModelText,e.pageSize]]),bf])],8,["to"])):r.createCommentVNode("",!0)]}),_:1},8,["loading"])],12,ff)}const R0=le(se(nr,[["render",Sf],["__scopeId","data-v-75efff66"]])),or={...he,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:"{b}"},rr=fe(or);He.use([ct.CanvasRenderer,Ze.MapChart,Ze.ScatterChart,xe.VisualMapComponent,xe.TooltipComponent,xe.GraphicComponent]);const wf=r.defineComponent({name:"EcanMap",components:{Echarts:nt},props:{...rr},setup(e){const n=ue(e,["backgroundImage"]),t=r.ref(),o=r.computed(()=>at(e.geoBackgroundImage)),a=r.computed(()=>at(e.backgroundImage)),i=r.computed(()=>e.geoBackgroundImage?{image:r.unref(t),repeat:e.geoBackgroundImageRepeat}:e.geoItemStyleAreaColor),l=r.computed(()=>{const d=e.symbolImage;return e.symbolImage?"image://"+at(d):"circle"}),s=r.computed(()=>{const d=e.geoCenter;let p;return typeof d=="string"&&d!==""&&(p=d.split(",")),{tooltip:{show:!0},graphic:[{type:"image",style:{width:parseFloat(e.width),height:parseFloat(e.height),image:r.unref(a)},top:"center"}],geo:{zoom:e.geoZoom,roam:e.geoRoam,center:p,map:"map",tooltip:{show:!1},label:{show:e.geoLabelShow,color:e.geoLabelColor,fontSize:e.geoLabelFontSize},itemStyle:{areaColor:r.unref(i),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:r.unref(l),symbolSize:[e.symbolWidth,e.symbolHeight],label:{show:e.labelShow,fontSize:e.labelFontSize,formatter:e.labelFormatter,color:e.labelColor},tooltip:{show:e.tooltipShow,formatter:e.tooltipFormatter,textStyle:{color:e.tooltipTextStyleColor}},data:e.data}]}}),f=r.ref(!1),c=async()=>{var p;const d=e.mapJson;if(d!=null&&d.path){const u=await Qe(((p=window==null?void 0:window.config)==null?void 0:p.uploadPath)+d.path);He.registerMap("map",(u==null?void 0:u.data)||{})}f.value=!0};return r.watch(()=>e.mapJson,()=>{c()},{immediate:!0,deep:!0}),{option:s,style:n,isLoadedData:f,geoBackgroundImageRef:t,myGeoBackgroundImage:o}}}),r1="",Cf=["src"];function kf(e,n,t,o,a,i){const l=r.resolveComponent("echarts");return r.openBlock(),r.createElementBlock("div",{class:"ecan-map",style:r.normalizeStyle(e.style)},[e.isLoadedData?(r.openBlock(),r.createBlock(l,{key:0,option:e.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])):r.createCommentVNode("",!0),r.withDirectives(r.createElementVNode("img",{ref:"geoBackgroundImageRef",src:e.myGeoBackgroundImage},null,8,Cf),[[r.vShow,!1]])],4)}const I0=le(se(wf,[["render",kf],["__scopeId","data-v-1fb5cdee"]])),L0=Object.freeze(Object.defineProperty({__proto__:null,EcanBar:m0,EcanBorder:C0,EcanButton:o0,EcanCheckbox:a0,EcanComboGraph:S0,EcanCustomGraph:v0,EcanDatePicker:Qa,EcanIframe:E0,EcanImage:A0,EcanInput:Xa,EcanLine:x0,EcanList:Wa,EcanMap:I0,EcanModal:st,EcanPageConfig:Na,EcanPie:u0,EcanProportion:Ka,EcanProviderConfig:Pa,EcanRangePicker:t0,EcanScatter:y0,EcanScrollText:$a,EcanSelect:s0,EcanTable:R0,EcanTabs:_0,EcanText:Ha,EcanTimeDisplay:Ua,EcanTreeSelect:c0,barComponentProps:Fo,barEvents:g0,barProps:Mo,borderComponentProps:Wo,borderEvents:w0,borderProps:Go,buttonComponentProps:_o,buttonEvents:n0,buttonProps:ko,checkboxComponentProps:Eo,checkboxEvents:r0,checkboxProps:Ao,comboGraphComponentProps:Uo,comboGraphEvents:b0,comboGraphProps:jo,customGraphComponentProps:$o,customGraphProps:Ho,datePickerComponentProps:So,datePickerEvents:Ja,datePickerProps:bo,iframeComponentProps:Qo,iframeProps:Jo,imageComponentProps:Xo,imageProps:Yo,inputComponentProps:vo,inputEvents:Ya,inputProps:yo,lineComponentProps:zo,lineEvents:h0,lineProps:Po,listComponentProps:go,listEvents:Ga,listProps:xo,mapComponentProps:rr,mapProps:or,modalComponentProps:No,modalEvents:d0,modalProps:Oo,pageConfig:xn,pageConfigComponentProps:gn,pieComponentProps:Lo,pieEvents:f0,pieProps:Io,proportionComponentProps:po,proportionEvents:Za,proportionProps:mo,providerConfig:io,providerConfigComponentProps:so,rangePickerComponentProps:Co,rangePickerEvents:e0,rangePickerProps:wo,scatterComponentProps:qo,scatterEvents:p0,scatterProps:Vo,selectComponentProps:Bo,selectEvents:i0,selectProps:To,tableComponentProps:tr,tableEvents:T0,tableProps:er,tabsComponentProps:Ko,tabsEvents:k0,tabsProps:Zo,textComponentProps:co,textEvents:za,textProps:lo,timeDisplayComponentProps:ho,timeDisplayEvents:ja,timeDisplayProps:uo,treeSelectComponentProps:Ro,treeSelectEvents:l0,treeSelectProps:Do},Symbol.toStringTag,{value:"Module"})),_f={install:e=>{Object.keys(L0).forEach(n=>{const t=L0[n];t.install&&e.use(t)})}};V.EcanBar=m0,V.EcanBorder=C0,V.EcanButton=o0,V.EcanCheckbox=a0,V.EcanComboGraph=S0,V.EcanCustomGraph=v0,V.EcanDatePicker=Qa,V.EcanIframe=E0,V.EcanImage=A0,V.EcanInput=Xa,V.EcanLine=x0,V.EcanList=Wa,V.EcanMap=I0,V.EcanModal=st,V.EcanPageConfig=Na,V.EcanPie=u0,V.EcanProportion=Ka,V.EcanProviderConfig=Pa,V.EcanRangePicker=t0,V.EcanScatter=y0,V.EcanScrollText=$a,V.EcanSelect=s0,V.EcanTable=R0,V.EcanTabs=_0,V.EcanText=Ha,V.EcanTimeDisplay=Ua,V.EcanTreeSelect=c0,V.barComponentProps=Fo,V.barEvents=g0,V.barProps=Mo,V.borderComponentProps=Wo,V.borderEvents=w0,V.borderProps=Go,V.buttonComponentProps=_o,V.buttonEvents=n0,V.buttonProps=ko,V.checkboxComponentProps=Eo,V.checkboxEvents=r0,V.checkboxProps=Ao,V.comboGraphComponentProps=Uo,V.comboGraphEvents=b0,V.comboGraphProps=jo,V.customGraphComponentProps=$o,V.customGraphProps=Ho,V.datePickerComponentProps=So,V.datePickerEvents=Ja,V.datePickerProps=bo,V.default=_f,V.iframeComponentProps=Qo,V.iframeProps=Jo,V.imageComponentProps=Xo,V.imageProps=Yo,V.inputComponentProps=vo,V.inputEvents=Ya,V.inputProps=yo,V.lineComponentProps=zo,V.lineEvents=h0,V.lineProps=Po,V.listComponentProps=go,V.listEvents=Ga,V.listProps=xo,V.mapComponentProps=rr,V.mapProps=or,V.modalComponentProps=No,V.modalEvents=d0,V.modalProps=Oo,V.pageConfig=xn,V.pageConfigComponentProps=gn,V.pieComponentProps=Lo,V.pieEvents=f0,V.pieProps=Io,V.proportionComponentProps=po,V.proportionEvents=Za,V.proportionProps=mo,V.providerConfig=io,V.providerConfigComponentProps=so,V.rangePickerComponentProps=Co,V.rangePickerEvents=e0,V.rangePickerProps=wo,V.scatterComponentProps=qo,V.scatterEvents=p0,V.scatterProps=Vo,V.selectComponentProps=Bo,V.selectEvents=i0,V.selectProps=To,V.tableComponentProps=tr,V.tableEvents=T0,V.tableProps=er,V.tabsComponentProps=Ko,V.tabsEvents=k0,V.tabsProps=Zo,V.textComponentProps=co,V.textEvents=za,V.textProps=lo,V.timeDisplayComponentProps=ho,V.timeDisplayEvents=ja,V.timeDisplayProps=uo,V.treeSelectComponentProps=Ro,V.treeSelectEvents=l0,V.treeSelectProps=Do,Object.defineProperties(V,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
118
118
  //# sourceMappingURL=index.umd.js.map