@ecan-bi/datav 1.5.59 → 1.5.61

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.umd.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! @ecan-bi/datav@1.5.59 */
1
+ /*! @ecan-bi/datav@1.5.61 */
2
2
  (function(ii,gi){typeof exports=="object"&&typeof module<"u"?gi(exports,require("vue"),require("echarts/core"),require("resize-detector"),require("ant-design-vue"),require("ant-design-vue/es/spin/style"),require("ant-design-vue/es/skeleton/style"),require("lodash-es"),require("dayjs"),require("axios"),require("mitt"),require("echarts/renderers"),require("echarts/charts"),require("echarts/components"),require("ant-design-vue/es/modal/style"),require("ant-design-vue/es/progress/style"),require("ant-design-vue/es/input/style"),require("ant-design-vue/es/date-picker/style"),require("ant-design-vue/es/date-picker/locale/zh_CN"),require("ant-design-vue/es/button/style"),require("ant-design-vue/es/checkbox/style"),require("ant-design-vue/es/select/style"),require("ant-design-vue/es/tree-select/style"),require("echarts"),require("ant-design-vue/es/table/style"),require("ant-design-vue/es/notification/style"),require("xlsx"),require("big.js")):typeof define=="function"&&define.amd?define(["exports","vue","echarts/core","resize-detector","ant-design-vue","ant-design-vue/es/spin/style","ant-design-vue/es/skeleton/style","lodash-es","dayjs","axios","mitt","echarts/renderers","echarts/charts","echarts/components","ant-design-vue/es/modal/style","ant-design-vue/es/progress/style","ant-design-vue/es/input/style","ant-design-vue/es/date-picker/style","ant-design-vue/es/date-picker/locale/zh_CN","ant-design-vue/es/button/style","ant-design-vue/es/checkbox/style","ant-design-vue/es/select/style","ant-design-vue/es/tree-select/style","echarts","ant-design-vue/es/table/style","ant-design-vue/es/notification/style","xlsx","big.js"],gi):(ii=typeof globalThis<"u"?globalThis:ii||self,gi(ii["@ecan/bi-datav"]={},ii.Vue,ii["echarts/core"],ii.ResizeDetector,ii.AntDesignVue,null,null,ii.LodashEs,ii.Dayjs,ii.Axios,ii.Mitt,ii["echarts/renderers"],ii["echarts/charts"],ii["echarts/components"],null,null,null,null,ii["ant-design-vue/es/date-picker/locale/zh_CN"],null,null,null,null,ii.Echarts,null,null,ii.Xlsx,ii.big.js))})(this,function(exports,vue,core$1,resizeDetector,antDesignVue,style$1,style$2,lodashEs,dayjs,axios,mitt,renderers,charts,components$1,style$3,style$4,style$5,style$6,locale,style$7,style$8,style$9,style$a,echarts,style$b,style$c,xlsx,big_js){var ii,gi,Ai,Ti;"use strict";function _interopNamespaceDefault(c){const u=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(c){for(const f in c)if(f!=="default"){const d=Object.getOwnPropertyDescriptor(c,f);Object.defineProperty(u,f,d.get?d:{enumerable:!0,get:()=>c[f]})}}return u.default=c,Object.freeze(u)}const echarts__namespace=_interopNamespaceDefault(echarts),METHOD_NAMES=["getWidth","getHeight","getDom","getOption","resize","dispatchAction","convertToPixel","convertFromPixel","containPixel","getDataURL","getConnectedDataURL","appendData","clear","isDisposed","dispose"];function usePublicAPI(c,u){function f(h){return(...v)=>{if(c.value||u(),!c.value)throw new Error("ECharts is not initialized yet.");return c.value[h].apply(c.value,v)}}function d(){const h=Object.create(null);return METHOD_NAMES.forEach(v=>{h[v]=f(v)}),h}return d()}function useAutoresize(c,u,f){let d=null;vue.watch([f,c,u],([h,v,p],m,g)=>{h&&v&&p&&(d=core$1.throttle(()=>{v.resize()},100),resizeDetector.addListener(h,d)),g(()=>{d&&h&&resizeDetector.removeListener(h,d)})})}const autoresizeProps={autoresize:Boolean},LOADING_OPTIONS_KEY="ecLoadingOptions";function useLoading(c,u,f){const d=vue.inject(LOADING_OPTIONS_KEY,{}),h=vue.computed(()=>({...vue.unref(d),...f==null?void 0:f.value}));vue.watchEffect(()=>{const v=c.value;v&&(u.value?v.showLoading(h.value):v.hideLoading())})}const loadingProps$1={loading:Boolean,loadingOptions:Object},style="",onRE=/^on[^a-z]/,isOn=c=>onRE.test(c);function omitOn(c){const u={};for(const f in c)isOn(f)||(u[f]=c[f]);return u}const TAG_NAME="x-vue-echarts",THEME_KEY="ecTheme",INIT_OPTIONS_KEY="ecInitOptions",UPDATE_OPTIONS_KEY="ecUpdateOptions",Echarts=vue.defineComponent({name:"echarts",props:{option:Object,theme:{type:[Object,String]},initOptions:Object,updateOptions:Object,group:String,manualUpdate:Boolean,...autoresizeProps,...loadingProps$1},inheritAttrs:!1,setup(c,{attrs:u,listeners:f}){const d=vue.shallowRef(),h=vue.shallowRef(),v=vue.shallowRef(),p=vue.inject(THEME_KEY,null),m=vue.inject(INIT_OPTIONS_KEY,null),g=vue.inject(UPDATE_OPTIONS_KEY,null),{autoresize:y,manualUpdate:b,loading:Pn,loadingOptions:x}=vue.toRefs(c),vn=vue.computed(()=>v.value||c.option||Object.create(null)),J=vue.computed(()=>c.theme||vue.unref(p)||{}),j=vue.computed(()=>c.initOptions||vue.unref(m)||{}),Fn=vue.computed(()=>c.updateOptions||vue.unref(g)||{}),Bn=vue.computed(()=>omitOn(u));function w(Wn){if(h.value||!d.value)return;const Gn=h.value=core$1.init(d.value,J.value,j.value);c.group&&(Gn.group=c.group);let Zn=f;Zn||(Zn={},Object.keys(u).filter(Jn=>Jn.indexOf("on")===0&&Jn.length>2).forEach(Jn=>{const ir=Jn.charAt(2).toLowerCase()+Jn.slice(3);Zn[ir]=u[Jn]})),Object.keys(Zn).forEach(Jn=>{const ir=Zn[Jn];ir&&(Jn.indexOf("zr:")===0?Gn.getZr().on(Jn.slice(3).toLowerCase(),ir):Gn.on(Jn.toLowerCase(),ir))});function Xn(){if(Gn&&!Gn.isDisposed())try{Gn.resize()}catch(Jn){if(Jn.message==="Cannot read property 'get' of undefined")return;throw Jn}}function er(){Gn.setOption(Wn||vn.value,Fn.value)}y.value?vue.nextTick(()=>{Xn(),er()}):er()}function gn(Wn,Gn){c.manualUpdate&&(v.value=Wn),h.value?h.value.setOption(Wn,Gn||{}):w(Wn)}function re(){h.value&&(h.value.dispose(),h.value=void 0)}let Rn=null;vue.watch(b,Wn=>{typeof Rn=="function"&&(Rn(),Rn=null),Wn||(Rn=vue.watch(()=>c.option,Gn=>{Gn&&(h.value?h.value.setOption(Gn,Fn.value):w())},{deep:!0}))},{immediate:!0}),vue.watch([J,j],()=>{re(),w()},{deep:!0}),vue.watchEffect(()=>{c.group&&h.value&&(h.value.group=c.group)});const Vn=usePublicAPI(h,w);return useLoading(h,Pn,x),useAutoresize(h,y,d),vue.onMounted(()=>{c.option&&w()}),vue.onUnmounted(re),{chart:h,root:d,setOption:gn,nonEventAttrs:Bn,...Vn}},render(){const c={...this.nonEventAttrs};return c.ref="root",c.class=c.class?["echarts"].concat(c.class):"echarts",vue.h(TAG_NAME,c)}});function bound01(c,u){isOnePointZero(c)&&(c="100%");var f=isPercentage(c);return c=u===360?c:Math.min(u,Math.max(0,parseFloat(c))),f&&(c=parseInt(String(c*u),10)/100),Math.abs(c-u)<1e-6?1:(u===360?c=(c<0?c%u+u:c%u)/parseFloat(String(u)):c=c%u/parseFloat(String(u)),c)}function isOnePointZero(c){return typeof c=="string"&&c.indexOf(".")!==-1&&parseFloat(c)===1}function isPercentage(c){return typeof c=="string"&&c.indexOf("%")!==-1}function boundAlpha(c){return c=parseFloat(c),(isNaN(c)||c<0||c>1)&&(c=1),c}function convertToPercentage(c){return c<=1?"".concat(Number(c)*100,"%"):c}function pad2(c){return c.length===1?"0"+c:String(c)}function rgbToRgb(c,u,f){return{r:bound01(c,255)*255,g:bound01(u,255)*255,b:bound01(f,255)*255}}function hue2rgb(c,u,f){return f<0&&(f+=1),f>1&&(f-=1),f<1/6?c+(u-c)*(6*f):f<1/2?u:f<2/3?c+(u-c)*(2/3-f)*6:c}function hslToRgb(c,u,f){var d,h,v;if(c=bound01(c,360),u=bound01(u,100),f=bound01(f,100),u===0)h=f,v=f,d=f;else{var p=f<.5?f*(1+u):f+u-f*u,m=2*f-p;d=hue2rgb(m,p,c+1/3),h=hue2rgb(m,p,c),v=hue2rgb(m,p,c-1/3)}return{r:d*255,g:h*255,b:v*255}}function rgbToHsv(c,u,f){c=bound01(c,255),u=bound01(u,255),f=bound01(f,255);var d=Math.max(c,u,f),h=Math.min(c,u,f),v=0,p=d,m=d-h,g=d===0?0:m/d;if(d===h)v=0;else{switch(d){case c:v=(u-f)/m+(u<f?6:0);break;case u:v=(f-c)/m+2;break;case f:v=(c-u)/m+4;break}v/=6}return{h:v,s:g,v:p}}function hsvToRgb(c,u,f){c=bound01(c,360)*6,u=bound01(u,100),f=bound01(f,100);var d=Math.floor(c),h=c-d,v=f*(1-u),p=f*(1-h*u),m=f*(1-(1-h)*u),g=d%6,y=[f,p,v,v,m,f][g],b=[m,f,f,p,v,v][g],Pn=[v,v,m,f,f,p][g];return{r:y*255,g:b*255,b:Pn*255}}function rgbToHex(c,u,f,d){var h=[pad2(Math.round(c).toString(16)),pad2(Math.round(u).toString(16)),pad2(Math.round(f).toString(16))];return d&&h[0].startsWith(h[0].charAt(1))&&h[1].startsWith(h[1].charAt(1))&&h[2].startsWith(h[2].charAt(1))?h[0].charAt(0)+h[1].charAt(0)+h[2].charAt(0):h.join("")}function convertHexToDecimal(c){return parseIntFromHex(c)/255}function parseIntFromHex(c){return parseInt(c,16)}var names={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function inputToRGB(c){var u={r:0,g:0,b:0},f=1,d=null,h=null,v=null,p=!1,m=!1;return typeof c=="string"&&(c=stringInputToObject(c)),typeof c=="object"&&(isValidCSSUnit(c.r)&&isValidCSSUnit(c.g)&&isValidCSSUnit(c.b)?(u=rgbToRgb(c.r,c.g,c.b),p=!0,m=String(c.r).substr(-1)==="%"?"prgb":"rgb"):isValidCSSUnit(c.h)&&isValidCSSUnit(c.s)&&isValidCSSUnit(c.v)?(d=convertToPercentage(c.s),h=convertToPercentage(c.v),u=hsvToRgb(c.h,d,h),p=!0,m="hsv"):isValidCSSUnit(c.h)&&isValidCSSUnit(c.s)&&isValidCSSUnit(c.l)&&(d=convertToPercentage(c.s),v=convertToPercentage(c.l),u=hslToRgb(c.h,d,v),p=!0,m="hsl"),Object.prototype.hasOwnProperty.call(c,"a")&&(f=c.a)),f=boundAlpha(f),{ok:p,format:c.format||m,r:Math.min(255,Math.max(u.r,0)),g:Math.min(255,Math.max(u.g,0)),b:Math.min(255,Math.max(u.b,0)),a:f}}var CSS_INTEGER="[-\\+]?\\d+%?",CSS_NUMBER="[-\\+]?\\d*\\.\\d+%?",CSS_UNIT="(?:".concat(CSS_NUMBER,")|(?:").concat(CSS_INTEGER,")"),PERMISSIVE_MATCH3="[\\s|\\(]+(".concat(CSS_UNIT,")[,|\\s]+(").concat(CSS_UNIT,")[,|\\s]+(").concat(CSS_UNIT,")\\s*\\)?"),PERMISSIVE_MATCH4="[\\s|\\(]+(".concat(CSS_UNIT,")[,|\\s]+(").concat(CSS_UNIT,")[,|\\s]+(").concat(CSS_UNIT,")[,|\\s]+(").concat(CSS_UNIT,")\\s*\\)?"),matchers={CSS_UNIT:new RegExp(CSS_UNIT),rgb:new RegExp("rgb"+PERMISSIVE_MATCH3),rgba:new RegExp("rgba"+PERMISSIVE_MATCH4),hsl:new RegExp("hsl"+PERMISSIVE_MATCH3),hsla:new RegExp("hsla"+PERMISSIVE_MATCH4),hsv:new RegExp("hsv"+PERMISSIVE_MATCH3),hsva:new RegExp("hsva"+PERMISSIVE_MATCH4),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function stringInputToObject(c){if(c=c.trim().toLowerCase(),c.length===0)return!1;var u=!1;if(names[c])c=names[c],u=!0;else if(c==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var f=matchers.rgb.exec(c);return f?{r:f[1],g:f[2],b:f[3]}:(f=matchers.rgba.exec(c),f?{r:f[1],g:f[2],b:f[3],a:f[4]}:(f=matchers.hsl.exec(c),f?{h:f[1],s:f[2],l:f[3]}:(f=matchers.hsla.exec(c),f?{h:f[1],s:f[2],l:f[3],a:f[4]}:(f=matchers.hsv.exec(c),f?{h:f[1],s:f[2],v:f[3]}:(f=matchers.hsva.exec(c),f?{h:f[1],s:f[2],v:f[3],a:f[4]}:(f=matchers.hex8.exec(c),f?{r:parseIntFromHex(f[1]),g:parseIntFromHex(f[2]),b:parseIntFromHex(f[3]),a:convertHexToDecimal(f[4]),format:u?"name":"hex8"}:(f=matchers.hex6.exec(c),f?{r:parseIntFromHex(f[1]),g:parseIntFromHex(f[2]),b:parseIntFromHex(f[3]),format:u?"name":"hex"}:(f=matchers.hex4.exec(c),f?{r:parseIntFromHex(f[1]+f[1]),g:parseIntFromHex(f[2]+f[2]),b:parseIntFromHex(f[3]+f[3]),a:convertHexToDecimal(f[4]+f[4]),format:u?"name":"hex8"}:(f=matchers.hex3.exec(c),f?{r:parseIntFromHex(f[1]+f[1]),g:parseIntFromHex(f[2]+f[2]),b:parseIntFromHex(f[3]+f[3]),format:u?"name":"hex"}:!1)))))))))}function isValidCSSUnit(c){return!!matchers.CSS_UNIT.exec(String(c))}var hueStep=2,saturationStep=.16,saturationStep2=.05,brightnessStep1=.05,brightnessStep2=.15,lightColorCount=5,darkColorCount=4,darkColorMap=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function toHsv(c){var u=c.r,f=c.g,d=c.b,h=rgbToHsv(u,f,d);return{h:h.h*360,s:h.s,v:h.v}}function toHex(c){var u=c.r,f=c.g,d=c.b;return"#".concat(rgbToHex(u,f,d,!1))}function mix(c,u,f){var d=f/100,h={r:(u.r-c.r)*d+c.r,g:(u.g-c.g)*d+c.g,b:(u.b-c.b)*d+c.b};return h}function getHue(c,u,f){var d;return Math.round(c.h)>=60&&Math.round(c.h)<=240?d=f?Math.round(c.h)-hueStep*u:Math.round(c.h)+hueStep*u:d=f?Math.round(c.h)+hueStep*u:Math.round(c.h)-hueStep*u,d<0?d+=360:d>=360&&(d-=360),d}function getSaturation(c,u,f){if(c.h===0&&c.s===0)return c.s;var d;return f?d=c.s-saturationStep*u:u===darkColorCount?d=c.s+saturationStep:d=c.s+saturationStep2*u,d>1&&(d=1),f&&u===lightColorCount&&d>.1&&(d=.1),d<.06&&(d=.06),Number(d.toFixed(2))}function getValue(c,u,f){var d;return f?d=c.v+brightnessStep1*u:d=c.v-brightnessStep2*u,d>1&&(d=1),Number(d.toFixed(2))}function generate$1(c){for(var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},f=[],d=inputToRGB(c),h=lightColorCount;h>0;h-=1){var v=toHsv(d),p=toHex(inputToRGB({h:getHue(v,h,!0),s:getSaturation(v,h,!0),v:getValue(v,h,!0)}));f.push(p)}f.push(toHex(d));for(var m=1;m<=darkColorCount;m+=1){var g=toHsv(d),y=toHex(inputToRGB({h:getHue(g,m),s:getSaturation(g,m),v:getValue(g,m)}));f.push(y)}return u.theme==="dark"?darkColorMap.map(function(b){var Pn=b.index,x=b.opacity,vn=toHex(mix(inputToRGB(u.backgroundColor||"#141414"),inputToRGB(f[Pn]),x*100));return vn}):f}var presetPrimaryColors={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1890FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},presetPalettes={},presetDarkPalettes={};Object.keys(presetPrimaryColors).forEach(function(c){presetPalettes[c]=generate$1(presetPrimaryColors[c]),presetPalettes[c].primary=presetPalettes[c][5],presetDarkPalettes[c]=generate$1(presetPrimaryColors[c],{theme:"dark",backgroundColor:"#141414"}),presetDarkPalettes[c].primary=presetDarkPalettes[c][5]});var containers=[],styleElements=[],usage="insert-css: You need to provide a CSS string. Usage: insertCss(cssString[, options]).";function createStyleElement(){var c=document.createElement("style");return c.setAttribute("type","text/css"),c}function insertCss(c,u){if(u=u||{},c===void 0)throw new Error(usage);var f=u.prepend===!0?"prepend":"append",d=u.container!==void 0?u.container:document.querySelector("head"),h=containers.indexOf(d);h===-1&&(h=containers.push(d)-1,styleElements[h]={});var v;return styleElements[h]!==void 0&&styleElements[h][f]!==void 0?v=styleElements[h][f]:(v=styleElements[h][f]=createStyleElement(),f==="prepend"?d.insertBefore(v,d.childNodes[0]):d.appendChild(v)),c.charCodeAt(0)===65279&&(c=c.substr(1,c.length)),v.styleSheet?v.styleSheet.cssText+=c:v.textContent+=c,v}function _objectSpread$d(c){for(var u=1;u<arguments.length;u++){var f=arguments[u]!=null?Object(arguments[u]):{},d=Object.keys(f);typeof Object.getOwnPropertySymbols=="function"&&(d=d.concat(Object.getOwnPropertySymbols(f).filter(function(h){return Object.getOwnPropertyDescriptor(f,h).enumerable}))),d.forEach(function(h){_defineProperty$e(c,h,f[h])})}return c}function _defineProperty$e(c,u,f){return u in c?Object.defineProperty(c,u,{value:f,enumerable:!0,configurable:!0,writable:!0}):c[u]=f,c}function warn(c,u){process.env.NODE_ENV!=="production"&&!c&&console!==void 0&&console.error("Warning: ".concat(u))}function warning(c,u){warn(c,"[@ant-design/icons-vue] ".concat(u))}function isIconDefinition(c){return typeof c=="object"&&typeof c.name=="string"&&typeof c.theme=="string"&&(typeof c.icon=="object"||typeof c.icon=="function")}function generate(c,u,f){return f?vue.h(c.tag,_objectSpread$d({key:u},f,c.attrs),(c.children||[]).map(function(d,h){return generate(d,"".concat(u,"-").concat(c.tag,"-").concat(h))})):vue.h(c.tag,_objectSpread$d({key:u},c.attrs),(c.children||[]).map(function(d,h){return generate(d,"".concat(u,"-").concat(c.tag,"-").concat(h))}))}function getSecondaryColor(c){return generate$1(c)[0]}function normalizeTwoToneColors(c){return c?Array.isArray(c)?c:[c]:[]}var iconStyles=`
3
3
  .anticon {
4
4
  display: inline-block;
@@ -100,7 +100,7 @@ version: 2.9.0
100
100
  `),formatMoney=(c,u=2)=>{const f=parseFloat(c+"");return isNaN(f)?c:f.toFixed(u).replace(/(\d)(?=(\d{3})+\.)/g,"$1,")},formatThousands=c=>{const u=parseFloat(c+"");return isNaN(u)?c:(u+"").replace(/\B(?=(\d{3})+(?!\d))/g,",")},formatPercentage=(c,u=2)=>{const f=c+"";if(f.includes("%"))return c;const d=parseFloat(f);return isNaN(d)?c:`${(d*100).toFixed(u)}%`},formatDecimals=(c,u=2)=>{const f=c+"",d=parseFloat(f);return isNaN(d)?c:d.toFixed(u)},formatCustom=(c,u)=>In(u,c),getFixedValueDatas=c=>{const{leftAxisList:u=[],rightAxisList:f=[],queryColumnList:d=[],indicators:h=[]}=c;return[...u,...f,...d,...h].filter(v=>(v==null?void 0:v.calcType)==="COMPONENT").map(v=>({keyName:v.builtInCalcWay,id:v.builtInValueSource}))},canRequestIndicator=(c,u)=>{let f=!0;const d=getFixedValueDatas(c);return d!=null&&d.length&&(f=d.map(h=>u[h.id]).every(h=>h)),f},getLegendFormat=(c,u)=>{var p;const f=c.match(/\{(.+?)\}/g),d=((p=c.split(`
101
101
  `))==null?void 0:p.length)-1;let h="";if(d)for(let m=0;m<d;m++)h+=`
102
102
  `;let v=c;if(f!=null&&f.length){for(const m of f){const g=hn(m,{textData:u},{useNewline:!1,useSpace:!1});g&&(v=v.replace(m,g))}return`${h}{text|${v}}`}else return c},setDefaultRangeVal=(c,u)=>{const{props:f,componentList:d,getGlobalModel:h}=c,{graphicConfig:v={},startValue:p,endValue:m}=f,g=getdefCompleteData({graphicConfig:v,startValue:p,endValue:m,componentList:d,getGlobalModel:h}),{dimensions:y,dataset:b}=u,{classificationList:Pn=[]}=v,vn=Pn.find(J=>J.show).label||"";for(const J of g)!y.find(j=>+j==+J)&&!isNaN(+J)&&y.push(+J);y.sort((J,j)=>dayjs(J).isBefore(dayjs(j))?-1:1);for(const J of b){const{data:j}=J;if(j!=null&&j.length){const Fn=[];for(const Bn of g)if(!j.find(w=>+w[vn]==+Bn)&&!isNaN(+Bn)){const w=lodashEs.cloneDeep(j[0]);for(const gn in w)gn===vn?w[gn]=+Bn:w[gn]=0;Fn.push(w)}J.data.push(...Fn),J.data.sort((Bn,w)=>dayjs(Bn[vn]).isBefore(dayjs(w[vn]))?-1:1)}}};function getdefCompleteData(c){const{startValue:u,endValue:f,componentList:d,graphicConfig:h,getGlobalModel:v}=c,p=getVariableAndField(u),m=getVariableAndField(f),g=[];if(p&&m){const y=d.find(Pn=>Pn.keyName===p.keyName),b=d.find(Pn=>Pn.keyName===m.keyName);if(y&&b){const Pn=v(y.id),x=v(b.id),{classificationList:vn=[]}=h,J=vn.find(j=>j.show);if(J){let j="YYYY-MM";switch(J.name){case"the_year":j="YYYY";break;case"the_month":j="MM";break;case"the_day":j="DD";break;case"the_date":j=(J==null?void 0:J.dateFormat)||j;break}const Fn=getFormatStep(j);if(j){const Bn=vue.unref(Pn[p.field]),w=vue.unref(x[m.field]);let gn=dayjs(Bn);const re=dayjs(w);for(g.push(re.format(j));gn.isBefore(re);)g.push(gn.format(j)),gn=gn.add(1,Fn)}}}}return g}function getVariableAndField(c){let u=null;if(c){const f=c.match(/\{(.+?)\}/g);if(f!=null&&f.length){let d=f[0].slice(1,-1).trim();const h=d.match(/\[(.+?)\]/g);let v="";h!=null&&h.length&&(d=d.replace(h[0],""),v=h[0].slice(1,-1).trim()),u={keyName:d,field:v}}}return u}function getFormatStep(c){const u=c.split("-");let f="";if(u!=null&&u.length)switch(u[u.length-1]){case"YYYY":f="year";break;case"MM":f="month";break;case"DD":f="day";break}return f}function handleJumpLink(c,u){var Pn;const{pageMode:f,targetTemplate:d,getRecordValueByKeyName:h,setTemplateData:v}=u,p=c.linkPage||"",m=usePageUrl(f,p),g=c.href;let y=g||m;y=hn(y);const b=c.target;if(b)if(b==="event")window.parent.postMessage({type:"openPage",url:g},"*");else{const x={pageId:p,componentId:d};if((Pn=c.transParams)!=null&&Pn.length){y.includes("?")?y+="&":y+="?";const vn=[];for(const J of c.transParams){const j=h(String(J.fieldName));vn.push(`${J.keyName}=${j}`),x[J.keyName]=j}y+=vn.join("&")}b==="template"?(Object.prototype.hasOwnProperty.call(window,"oldPageId")||(window.oldPageId=""),window.oldPageId&&(window.controller.abort(),window.controller=new AbortController),window.oldPageId=p,v(x)):(b==="blank"&&(y+=`${y.includes("?")?"&":"?"}drillFlag=1`),window.open(y,"_"+b))}}function getPageUrlParams(c){var f,d;let u={};if(c){const h=(((f=window.config)==null?void 0:f.urlParams)||{})[c]||{};for(const v in h)v.includes("{")||(u[v]=h[v])}else u=((d=window.config)==null?void 0:d.requestParams)||{};return u}function getNewValueFromUrlParams(c,u,f){let d="";const{urlParams:h}=window.config;if(c&&h[c])for(const v in h[c]){const p=h[c][v];if(v===`{${u}[${f}]}`&&p){d=p;break}}return d}function getFormatWh(c,u){return typeof c=="number"?c:typeof c=="string"?parseFloat(c):c.suffix==="px"?+c.value:c.suffix==="%"?parseFloat(u)*(c.value/100):0}const hasChinese=c=>/[\u4e00-\u9fa5]/.test(c),dragModalAction=(c,u)=>{const f=document.querySelector(u);if(!f)return;f.style.cursor="move",f.style.userSelect="none";const d=f.parentElement,h=200,v=d.getBoundingClientRect(),{width:p,left:m,top:g}=v,y=window.innerWidth,b=window.innerHeight,Pn=c.clientX,x=c.clientY,vn=parseFloat(d.style.left)||0,J=parseFloat(d.style.top)||0,j=-(m+p-h-vn),Fn=y-m+vn-h,Bn=-(g-J),w=b-g+J-h,gn=Rn=>{Rn.preventDefault();const Vn=Rn.clientX-Pn,Wn=Rn.clientY-x;let Gn=vn+Vn,Zn=J+Wn;Gn=Math.max(j,Math.min(Gn,Fn)),Zn=Math.max(Bn,Math.min(Zn,w)),d.style.left=`${Gn}px`,d.style.top=`${Zn}px`},re=()=>{f.style.cursor="",f.style.userSelect="",document.removeEventListener("mousemove",gn),document.removeEventListener("mouseup",re)};document.addEventListener("mousemove",gn),document.addEventListener("mouseup",re)},getPageId=()=>{var u;let c=((u=window==null?void 0:window.config)==null?void 0:u.pageId)||"";if(!c){const{pathname:f}=window==null?void 0:window.location;if(f){const d=f.split("/");d!=null&&d.length&&(c=d[d.length-1])}}return c},useRequestData=(c,u,f=()=>{})=>{var ir;const{requestUrl:d,requestMethod:h,requestHeaders:v,requestParams:p,requestInterval:m,isOpenRequestTimer:g,openCustomRequestData:y,projectRequestUrl:b="",getModel:Pn,requestParamsMode:x,customRequestParams:vn,dataSetParam:J,requestType:j,dataType:Fn,dataSetchecked:Bn}=c,{pageMode:w}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"})||{},{pageId:gn}=vue.inject("templateOperate",{pageId:""})||{},{contextRequestUrl:re,touchEventId:Rn}=vue.inject(GLOBAL_CONFIG,{contextRequestUrl:"",touchEventId:""})||{},{getGlobalModel:Vn}=vue.inject(GLOBAL_MODEL,{getGlobalModel:dr=>{}})||{},Wn=vue.inject(COMMON_OPERATE,{operateAction:(dr,or)=>{}}),Gn=Pn||Vn;let Zn=hn(d),Xn=vue.unref(re)||b||"";(Fn==="request"&&Bn||j===1)&&(Xn="",Zn=((ir=window.config)==null?void 0:ir.dataSetUrl)||"/api/datav/dataset/data2");const er=async(dr={})=>{var sr;if(vue.unref(w)==="design")return;if(Fn!=="request"&&Jn){clearInterval(Jn);return}if(!Zn||!h||!v)return;let or={};for(const Qn of p){const{key:ar,value:cr}=Qn;if((cr==null?void 0:cr.id)==="PARENT"&&(cr!=null&&cr.prop)){const lr=(((sr=window.config)==null?void 0:sr.record)||{})[cr.prop];if(lr){const hr=lr[cr.propKey||"value"];hr&&(["date","range"].some(ur=>yn(lr==null?void 0:lr.type,ur))?or[ar]=vue.unref(hr).format(lr.format||"YYYY-MM-DD"):or[ar]=vue.unref(hr))}continue}if(typeof cr=="object"&&cr!=null&&cr.id){let Yn={};const{id:lr,prop:hr,propKey:mr,operate:ur}=cr;let gr=!1;try{JSON.parse(lr),gr=!0}catch{gr=!1}lr==="THIS"?Yn=Gn(vue.unref(Rn))||{}:Yn=Gn(lr)||{};const fr=vue.unref(Yn[hr]);let vr=null;if(["date","range"].some(Cr=>yn(Yn==null?void 0:Yn.type,Cr))){const{value:Cr,type:yr,mode:pr}=ur||{};if(Cr&&yr&&pr)switch(yr){case"add":vr=vue.unref(fr).add(Cr,pr);break;case"minus":vr=vue.unref(fr).subtract(Cr,pr);break}vr==null&&(vr=vue.unref(fr)),vr=vr&&(vr==null?void 0:vr.format((mr==null?void 0:mr.trim())||Yn.format))||""}else if(Object.prototype.toString.call(fr)==="[object Object]")mr?vr=fr[mr]:vr=hr?fr[hr]:fr;else if(yn(Yn==null?void 0:Yn.type,"select")&&vue.unref(fr)&&hr&&Array.isArray(vue.unref(fr)))vr=vue.unref(fr).map(Cr=>Object.prototype.hasOwnProperty.call(Cr,hr)?Cr[hr]:Cr);else if(gr){const Cr=JSON.parse(lr);console.log(Cr,"urlvalue"),vr=Cr.value}else vr=fr;or[ar]=vr}else typeof cr=="object"&&!cr.id&&j===1?(console.log(cr.propKey,"value.propKey"),or[ar]=cr.propKey):typeof cr=="string"&&(or[ar]=hn(cr))}if(j===1){console.log(or,"_params");const Qn=Object.entries(or);let ar=J;if(!J.param&&Array.isArray(J)){const cr={};for(const Yn of J)cr[Yn.key]=Yn.value;ar=cr}ar.param=ar.param.map((cr,Yn)=>({...cr,paramKey:Qn[Yn][0],defaultValue:Qn[Yn][1]||""})),or=ar}if(x==="2"&&vn!=="{}"){const Qn=JSON.parse(vn);Hn(Qn),Qn&&(or=Qn)}function Hn(Qn){const ar={...or,...getPageUrlParams(gn)};if(Array.isArray(Qn))Qn.forEach((cr,Yn)=>{if(typeof cr=="string"){const lr=cr.match(/\${(.+?)\}/g);if(lr!=null&&lr.length){const hr=lr[0].slice(2,-1);hr&&ar[hr]?Qn[Yn]=ar[hr]:Qn[Yn]=""}}else Hn(cr)});else if(Object.prototype.toString.call(Qn)==="[object Object]")for(const cr in Qn)if(typeof Qn[cr]=="string"){const Yn=Qn[cr].match(/\${(.+?)\}/g);if(Yn!=null&&Yn.length){const lr=Yn[0].slice(2,-1);lr&&ar[lr]?Qn[cr]=ar[lr]:Qn[cr]=""}}else Hn(Qn[cr])}const Kn=getPageUrlParams(gn);for(const Qn in Kn)Kn[Qn]&&(Kn[Qn]=decodeURIComponent(Kn[Qn]));or={...Kn,...dr,...or};let zn="";const qn=Object.keys(or),tr=qn.length-1,Un=qn.length;qn.forEach((Qn,ar)=>{let cr=or[Qn];Object.prototype.toString.call(cr)==="[object Object]"&&(cr=JSON.stringify(cr)),ar===0?Un!==1?zn+=`?${Qn}=${cr}&`:zn+=`?${Qn}=${cr}`:ar===tr?zn+=`${Qn}=${cr}`:zn+=`${Qn}=${cr}&`}),Zn.includes("?")&&(zn=zn.replace("?","&"));function nr(Qn){var ar;if(j===1)return{Authentication:(ar=window==null?void 0:window.config)==null?void 0:ar.indicatorToken};if(typeof Qn=="string"){const cr=JSON.parse(Qn),Yn=getPageUrlParams(gn);if(Object.prototype.toString.call(cr)==="[object Object]"){for(const lr in cr)if(typeof cr[lr]=="string"){const hr=cr[lr].match(/\${(.+?)\}/g);if(hr!=null&&hr.length){const mr=hr[0].slice(2,-1);mr&&Yn[mr]?cr[lr]=Yn[mr]:cr[lr]=""}}}return cr}else return Qn}try{const Qn=["get","head"].includes(h),ar={};let cr=Qn?Zn+zn:Zn;or.dataSqlId&&!cr.includes("dataSqlId")&&(cr+=`${cr.includes("?")?"&":"?"}dataSqlId=${or.dataSqlId}`),Object.prototype.hasOwnProperty.call(or,"signal")?ar.signal=or.signal:window.controller&&(ar.signal=window.controller.signal);const Yn=await request({baseURL:Xn,url:cr,method:h,headers:v?nr(v):{},data:Qn?{}:or,...ar});return f(Yn),Wn==null||Wn.operateAction("SAVE_COMPONENT_RES_DATA",{id:c.id,data:(Yn==null?void 0:Yn.data)||{}}),Yn}catch(Qn){console.error(Qn)}},Jn=vue.unref(w)!=="design"&&g&&(y||y===void 0)&&setInterval(er,m*1e3);return vue.onUnmounted(()=>{clearInterval(Jn)}),er},useImagePath=(c,u=!1)=>{var d;if(!c)return c;let f="";return c!=null&&c.includes("://")?f=c:f=((d=window==null?void 0:window.config)==null?void 0:d.uploadPath)+c,u&&(f=`url(${f})`),f},usePageUrl=(c,u)=>{const f=`${BASE_URL}/preview?pageId=${u}`,d=`${BASE_URL}/${u}`;return c==="preview"?f:d},useIndicatorData=(c={},u=()=>{})=>{var b;const{pageMode:f}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"}),{requestToken:d}=vue.inject(GLOBAL_TOKEN,{requestToken:()=>{}}),{setLoadedData:h}=vue.inject(LOADED_DATA,{setLoadedData:(Pn,x)=>{}}),{getAllGlobalModel:v}=vue.inject(GLOBAL_MODEL,{getAllGlobalModel:()=>{}}),{pageId:p}=vue.inject("templateOperate",{pageId:""})||{},m=vue.inject(COMMON_OPERATE,{operateAction:(Pn,x)=>{}});c.dataType==="indicator"&&d();const g=async(Pn={})=>{var gn,re,Rn,Vn,Wn;if(vue.unref(f)==="design")return;const x=v();h(c.id,!1);const vn=Dn({...c,globalModel:x},Pn),{url:J,...j}=vn||{},{pathname:Fn,search:Bn}=window==null?void 0:window.location;let w=p||((gn=window==null?void 0:window.config)==null?void 0:gn.pageId);if(!w&&Fn){const Gn=Fn.split("/");Gn!=null&&Gn.length&&(w=Gn[Gn.length-1])}if(J&&j){let Gn,Zn;if(c.type==="ecanIndexPanel"&&(Gn=c.theFlag),["/diagram/formData","/diagram"].includes(J)){Zn={};const er=Bn.slice(1,Bn.length).split("&");for(const Jn of er)if(Jn){const ir=Jn.split("=");if(ir[0])if(ir[0]==="userInfo")try{Zn.token=(Rn=(re=JSON.parse(decodeURIComponent(ir[1])))==null?void 0:re.baseInfo)==null?void 0:Rn.hrpToken}catch(dr){console.log(dr)}else Zn[ir[0]]=ir[1]}}try{const Xn=await request({url:`${INDICATOR_URL}${J}`,method:"post",headers:{Authentication:(Vn=window==null?void 0:window.config)==null?void 0:Vn.indicatorToken,operateContext:CONTEXT},data:{...j,pageId:w,theFlag:Gn,extParam:Zn},signal:((Wn=window.controller)==null?void 0:Wn.signal)||""});return Pn!=null&&Pn.isTimer&&u(Xn),m==null||m.operateAction("SAVE_COMPONENT_RES_DATA",{id:c.id,data:(Xn==null?void 0:Xn.data)||{}}),Xn}catch(Xn){console.error(Xn)}}},y=vue.unref(f)!=="design"&&((b=c==null?void 0:c.graphicConfig)==null?void 0:b.pageMode)!=="design"&&c.isOpenRequestTimer&&c.requestInterval&&setInterval(()=>{g({isTimer:!0})},c.requestInterval*1e3);return vue.onUnmounted(()=>{clearInterval(y)}),g},useHrefParamsToGlobalVariables=()=>{const u=window.location.search.slice(1).split("&"),f=u.length,d={};for(let h=0;h<f;h++){const v=u[h];if(v==null||v==="")continue;const p=v.split("=");if(Array.isArray(p)){const m=p[0];m.includes("{")||(d[m]=p[1])}}window.config.requestParams={...window.config.requestParams,...d},window.config={...window.config,...d}},_sfc_main$B=vue.defineComponent({name:"EcanPageConfig",inheritAttrs:!1,props:{...pageConfigComponentProps,pageId:{type:String,default:""},customId:{type:String,default:"container"},portId:{type:String,default:"norPageConfig"}},setup(c){const{width:u,height:f,isCompatible:d}=vue.inject(GLOBAL_CONFIG,{width:null,height:null,isCompatible:null}),h=vue.inject("setPageHeight",Vn=>{}),v=vue.inject("isMobile",!1),p=vue.computed(()=>{const Vn={};return(!d.value||!v)&&(Vn.width=u.value,Vn.height=f.value),{...Vn,backgroundColor:c.pageId?"transparent":c.backgroundColor,backgroundImage:useImagePath(c.backgroundImage,!0),backgroundSize:c.backgroundSize}}),m=vue.ref(0),g=vue.ref(0),y=vue.ref(0),b=vue.ref(0),Pn=vue.ref(!1),x=vue.ref();let vn;const J=()=>new Promise(Vn=>{vue.nextTick(()=>{u.value&&f.value?(m.value=parseFloat(u.value),g.value=parseFloat(f.value)):(m.value=x.value.clientWidth,g.value=x.value.clientHeight),(!y.value||!b.value)&&(y.value=window.screen.width,b.value=window.screen.height),Vn()})}),j=()=>{m.value&&g.value?(x.value.style.width=`${m.value}px`,x.value.style.height=`${g.value}px`):(x.value.style.width=`${y.value}px`,x.value.style.height=`${b.value}px`)};vue.watch([u,f],async()=>{c.pageId||(await J(),j(),Bn(),window.addEventListener("resize",gn),re()),Pn.value=!0},{immediate:!0});const Fn=vue.ref({});vue.provide("scaleValue",Fn);const Bn=()=>{if(d.value&&v){x.value.style.width="100%",x.value.style.height="auto",h("auto");return}const Vn=document.body.clientWidth,Wn=document.body.clientHeight,Gn=m.value||y.value,Zn=g.value||b.value,Xn=Vn/Gn;let er=Wn/Zn;(m.value!==1920||g.value!==1080)&&(er=g.value/m.value*Vn/Zn),Fn.value={widthScale:Xn,heightScale:er},x.value&&(x.value.style.transform=`scale(${Xn}, ${er})`),h(Fn.value)},w=vue.computed(()=>{var Wn;let Vn={};return c.customId==="modalContainer"&&((Wn=vue.unref(Fn))!=null&&Wn.heightScale)&&(Vn.height=100/vue.unref(Fn).heightScale+"vh"),Vn}),gn=lodashEs.debounce(async()=>{await J(),Bn()},100),re=()=>{const Vn=window.MutationObserver;vn=new Vn(gn),vn.observe(x.value,{attributes:!0,attributeFilter:["style"],attributeOldValue:!0})},Rn=()=>{vn&&(vn.disconnect(),vn.takeRecords(),vn=null)};return vue.onMounted(()=>{Pn.value=!1}),vue.onUnmounted(()=>{window.removeEventListener("resize",gn),Rn()}),{style:p,container:x,ready:Pn,scaleValue:Fn,containerStyle:w}}}),PageConfig_vue_vue_type_style_index_0_scoped_eced44d2_lang="",_hoisted_1$p=["id"],_hoisted_2$e=["id"];function _sfc_render$G(c,u,f,d,h,v){return vue.openBlock(),vue.createElementBlock("div",{class:"page-config-container",id:c.customId,style:vue.normalizeStyle(c.containerStyle),ref:"container"},[c.customId!=="modalContainer"&&(c.ready||c.pageId)?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"page-config",id:c.portId,style:vue.normalizeStyle(c.style)},[vue.renderSlot(c.$slots,"default",{},void 0,!0)],12,_hoisted_2$e)):vue.createCommentVNode("",!0)],12,_hoisted_1$p)}const PageConfig=_export_sfc$1(_sfc_main$B,[["render",_sfc_render$G],["__scopeId","data-v-eced44d2"]]),EcanPageConfig=withInstall$1(PageConfig),providerConfig={contextRequestUrl:"",pageMode:"normal",theme:"light",containerMap:{},combinationMap:{},width:"1920px",height:"1080px",pageFontFamily:"",textColor:"",jumpType:"page",jumpTime:null,jumpPage:"",jumpLink:"",requestList:[],events:[],isCompatible:!0,variableList:[],drillingMode:"pivotTable",pivotTableFontSize:"16px",drillDetailUrl:""},providerConfigComponentProps=transformToComponentProps(providerConfig),_sfc_main$A=vue.defineComponent({name:"IndicatorDetailModal",components:{BorderOutlined:BorderOutlined$1,SwitcherOutlined:SwitcherOutlined$1,CloseOutlined:CloseOutlined$1,ZoomInOutlined:ZoomInOutlined$1,ZoomOutOutlined:ZoomOutOutlined$1,RedoOutlined:RedoOutlined$1},props:{theme:{type:String,default:"light"}},setup(c,{expose:u}){const f=vue.ref(!1),d=vue.ref([]),h=vue.ref(!1),v=vue.ref(),p=vue.ref(!1),m=vue.ref(1),g=vue.inject("isMobile",!1),y=vue.computed(()=>c.theme),b=vue.computed(()=>m.value!==1?{transform:`scale(${m.value})`,transformOrigin:"left top"}:{}),Pn=async({data:Vn,indicatorUrl:Wn,indicatorToken:Gn,context:Zn,pageId:Xn})=>{var dr,or;h.value=!0,f.value=!0;let er=[];const{graphicConfig:Jn,theFlag:ir}=vue.unref(Vn)||{};if(Jn){const{leftAxisList:Hn=[],rightAxisList:Kn=[],indicators:zn=[]}=Jn,qn=Hn.concat(Kn).concat(zn);qn!=null&&qn.length&&(er=qn.map(tr=>({calcType:tr.calcType||"COLUMN",columnName:tr.name,hrpIndexCode:tr.indexCode,hrpIndexCodeNum:tr.indexCodeNum,label:tr.label,show:tr.show,formula:tr.formula})))}if(er!=null&&er.length)try{const Hn=await request({url:`${vue.unref(Wn)}/diagram/obtainIndicatorInfo`,method:"post",headers:{Authentication:Gn,operateContext:Zn},data:{source:"INDICATOR_LIB",pageId:Xn,indicatorList:er,theFlag:ir}}),Kn=((dr=Hn==null?void 0:Hn.data)==null?void 0:dr.data)||[];(or=Kn[0])!=null&&or.remark?(v.value=Kn[0].remark,d.value=[]):(v.value=null,d.value=Kn)}catch{}finally{h.value=!1}vue.nextTick(()=>{J(!0),j(!0)})},x=()=>document.querySelector("#modalContainer")||document.body,vn=vue.computed(()=>{let Vn="ind-detail-modal";return(p.value||vue.unref(g))&&(Vn+=" full",vue.unref(g)&&(Vn+=" mobile")),vue.unref(y)==="darkBlue"&&(Vn+=" darkBlue"),Vn}),J=Vn=>{const Wn=document.querySelector(".ind-detail-modal .ant-modal-header");Wn&&(Vn?Wn.addEventListener("dblclick",Bn):Wn.removeEventListener("dblclick",Bn))},j=Vn=>{const Wn=document.querySelector(".ind-detail-modal .ant-modal-header");if(Wn)if(Vn)Wn.addEventListener("mousedown",Fn);else{const Gn=Wn.parentElement;Gn&&(Gn.style.left="",Gn.style.top=""),Wn.removeEventListener("mousedown",Fn)}};function Fn(Vn){dragModalAction(Vn,".ind-detail-modal .ant-modal-header")}const Bn=()=>{p.value=!p.value,vue.nextTick(()=>{p.value?j(!1):j(!0)})},w=()=>{vue.unref(g)||(p.value=!1),J(!1),j(!1)},gn=()=>{m.value+=.5},re=()=>{vue.unref(m)>1&&(m.value-=.5)},Rn=()=>{m.value=1};return vue.watch(m,Vn=>{localStorage.setItem("indDetailZoom",String(Vn))}),vue.watch(f,Vn=>{Vn?document.documentElement.style.overflow="hidden":document.documentElement.style.overflow="hidden auto"}),vue.onMounted(()=>{var Wn,Gn;const Vn=localStorage.getItem("indDetailZoom");if(Vn&&(m.value=+Vn),vue.unref(g)){const Zn=document.querySelector("#modalContainer");p.value=!0,(Wn=Zn==null?void 0:Zn.style)==null||Wn.setProperty("--window-screen-width",document.body.clientWidth+"px"),(Gn=Zn==null?void 0:Zn.style)==null||Gn.setProperty("--window-screen-height",document.body.clientHeight+"px")}}),u({showModal:Pn}),{visible:f,dataList:d,isLoading:h,hasOwn:mn,remarkData:v,wrapClassName:vn,isIndFullScreen:p,infoStyle:b,indDetailZoom:m,isMobile:g,getContainer:x,toggleFullScreen:Bn,onDetailCancel:w,handleZoomIn:gn,handleZoomOut:re,handleResetZoom:Rn}}}),IndicatorDetailModal_vue_vue_type_style_index_0_scoped_c8548b1d_lang="",IndicatorDetailModal_vue_vue_type_style_index_1_lang="",_withScopeId$7=c=>(vue.pushScopeId("data-v-c8548b1d"),c=c(),vue.popScopeId(),c),_hoisted_1$o=_withScopeId$7(()=>vue.createElementVNode("div",{class:"modal-title"},"指标详情",-1)),_hoisted_2$d={class:"zoom-btn"},_hoisted_3$6={key:0,class:"spin-container"},_hoisted_4$5=["innerHTML"],_hoisted_5$4={class:"index-name"},_hoisted_6$4={key:0,class:"card-row"},_hoisted_7$4=_withScopeId$7(()=>vue.createElementVNode("div",{class:"label"},"计量单位:",-1)),_hoisted_8$4={class:"content"},_hoisted_9$3={key:1,class:"card-row"},_hoisted_10$3=_withScopeId$7(()=>vue.createElementVNode("div",{class:"label"},"指标定义:",-1)),_hoisted_11$3={class:"content"},_hoisted_12$3={key:2,class:"card-row"},_hoisted_13$3=_withScopeId$7(()=>vue.createElementVNode("div",{class:"label"},"计算方法:",-1)),_hoisted_14$3={class:"content"},_hoisted_15$2={key:3,class:"card-row"},_hoisted_16$1=_withScopeId$7(()=>vue.createElementVNode("div",{class:"label"},"指标说明:",-1)),_hoisted_17$1={class:"content"};function _sfc_render$F(c,u,f,d,h,v){const p=vue.resolveComponent("close-outlined"),m=vue.resolveComponent("redo-outlined"),g=vue.resolveComponent("zoom-out-outlined"),y=vue.resolveComponent("zoom-in-outlined"),b=vue.resolveComponent("switcher-outlined"),Pn=vue.resolveComponent("border-outlined"),x=vue.resolveComponent("a-spin"),vn=vue.resolveComponent("a-modal");return vue.openBlock(),vue.createBlock(vn,{visible:c.visible,"onUpdate:visible":u[0]||(u[0]=J=>c.visible=J),width:"55%",getContainer:c.getContainer,footer:null,destroyOnClose:!0,bodyStyle:{maxHeight:c.isIndFullScreen?"":"70vh",height:c.isIndFullScreen?"100vh":"",overflow:"auto",padding:"20px 24px 24px"},"wrap-class-name":c.wrapClassName,onCancel:c.onDetailCancel},{title:vue.withCtx(()=>[_hoisted_1$o]),closeIcon:vue.withCtx(()=>[vue.createVNode(p,{class:vue.normalizeClass(["close-icon",c.theme])},null,8,["class"])]),default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_2$d,[c.indDetailZoom>1?(vue.openBlock(),vue.createBlock(m,{key:0,class:"modal-icon",title:"还原",onClick:c.handleResetZoom},null,8,["onClick"])):vue.createCommentVNode("",!0),c.indDetailZoom>1?(vue.openBlock(),vue.createBlock(g,{key:1,class:"modal-icon",title:"缩小内容",onClick:c.handleZoomOut},null,8,["onClick"])):vue.createCommentVNode("",!0),vue.createVNode(y,{class:"modal-icon",title:"放大内容",onClick:vue.withModifiers(c.handleZoomIn,["stop","prevent"])},null,8,["onClick"]),!c.isMobile&&c.isIndFullScreen?(vue.openBlock(),vue.createBlock(b,{key:2,class:vue.normalizeClass(["modal-icon",c.theme]),title:"取消全屏",onClick:c.toggleFullScreen},null,8,["class","onClick"])):c.isMobile?vue.createCommentVNode("",!0):(vue.openBlock(),vue.createBlock(Pn,{key:3,class:vue.normalizeClass(["modal-icon",c.theme]),title:"全屏",onClick:c.toggleFullScreen},null,8,["class","onClick"]))]),c.isLoading?(vue.openBlock(),vue.createElementBlock("div",_hoisted_3$6,[vue.createVNode(x,{size:"large"})])):(vue.openBlock(),vue.createElementBlock("div",{key:1,class:"info-container",style:vue.normalizeStyle(c.infoStyle)},[c.remarkData?(vue.openBlock(),vue.createElementBlock("div",{key:0,innerHTML:c.remarkData},null,8,_hoisted_4$5)):c.dataList.length?(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,{key:1},vue.renderList(c.dataList,(J,j)=>(vue.openBlock(),vue.createElementBlock("div",{class:"detail-wrap",key:j},[vue.createElementVNode("div",_hoisted_5$4,vue.toDisplayString(J.indexName||"--"),1),c.hasOwn(J,"theUnit")?(vue.openBlock(),vue.createElementBlock("div",_hoisted_6$4,[_hoisted_7$4,vue.createElementVNode("div",_hoisted_8$4,vue.toDisplayString(J.theUnit||"--"),1)])):vue.createCommentVNode("",!0),c.hasOwn(J,"meaning")?(vue.openBlock(),vue.createElementBlock("div",_hoisted_9$3,[_hoisted_10$3,vue.createElementVNode("div",_hoisted_11$3,vue.toDisplayString(J.meaning||"--"),1)])):vue.createCommentVNode("",!0),c.hasOwn(J,"theFormula")?(vue.openBlock(),vue.createElementBlock("div",_hoisted_12$3,[_hoisted_13$3,vue.createElementVNode("div",_hoisted_14$3,vue.toDisplayString(J.theFormula||"--"),1)])):vue.createCommentVNode("",!0),c.hasOwn(J,"theExplain")?(vue.openBlock(),vue.createElementBlock("div",_hoisted_15$2,[_hoisted_16$1,vue.createElementVNode("div",_hoisted_17$1,vue.toDisplayString(J.theExplain||"--"),1)])):vue.createCommentVNode("",!0)]))),128)):vue.createCommentVNode("",!0)],4))]),_:1},8,["visible","getContainer","bodyStyle","wrap-class-name","onCancel"])}const IndicatorDetailModal=_export_sfc$1(_sfc_main$A,[["render",_sfc_render$F],["__scopeId","data-v-c8548b1d"]]),lineProps={...props$1,id:"",name:"折线图",keyName:"折线图",type:"ecanLine",width:"400px",height:"400px",top:"",left:"",rotate:"",data:[{name:"名称一",value:235,type:"类型一"},{name:"名称二",value:280,type:"类型一"},{name:"名称三",value:230,type:"类型一"},{name:"名称四",value:335,type:"类型一"}],titleText:"",titleFontSize:"12px",titleColor:"#333",fontWeight:400,textAlign:"left",titleSubtext:"",titleLeft:"",legendShow:!0,legendOrient:"horizontal",legendTextStyleColor:"#333",legendTop:"top",legendLeft:"center",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],symbolSize:4,lineStyleWidth:2,smooth:!1,xAxisLabelWidth:void 0,xAxisLabelRotate:0,xAxisLabelOverflow:"none",xAxisLabelInterval:0,xAxisSplitLineShow:!0,xAxisSplitAreaShow:!1,xAxisSplitLineInterval:0,xAxisSplitLineStyleColor:"#333",xAxisLabelColor:"#333",xAxisLineShow:!0,xAxisLineStyleColor:"#333",xAxisTickShow:!0,xAxisLabelFormatter:"{value}",xAxisMinInterval:0,yAxisMinInterval:0,yAxisSplitLineShow:!0,yAxisSplitAreaShow:!1,yAxisSplitLineStyleColor:"#333",yAxisLabelColor:"#333",yAxisLineStyleColor:"#333",yAxisLineAlwaysDisplay:!1,yAxisLabelFormatter:"{value}",gridContainLabel:!0,gridTop:"10%",gridBottom:"10%",gridLeft:"5%",gridRight:"5%",valueTypeDataFieldNames:{name:"name",value:"value",type:"type"},keyTypeDataFieldNames:{name:"name",types:[]},dataFieldConfigType:"value",graphicConfig:{},tooltipShow:!0,tooltipFormatter:"{marker} {a} {c}",toolboxShow:!1,toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息",areaStyleOpacity:0,areaGradientShow:!1,areaGradientColor:"",isBoundaryGap:!0,yAxisLabelShow:!0,yAxisSplitLineType:"solid",legendItemGap:10,legendItemWidth:25,legendItemHeight:14,legendType:"",shadowColor:"",shadowBlur:0,shadowOffsetY:0,shadowOffsetX:0,legendFontSize:"12px",xAxisLabelFontSize:"12px",yAxisLabelFontSize:"12px",graphicType:"ecanLine",tooltipPosition:"",isShowMarkLine:!1,markLineType:"average",legendFormatter:"{name}",legendWidth:null,legendHeight:null,legendTextWidth:null,legendScroll:!1,yAxisName:"",xAxisName:"",xAxisMaxValue:null,yAxisMaxValue:null,xAxisLabelShow:!0,tooltipTextStyleColor:"",noDataTip:!1,tipText:"暂无数据",tipTextColor:"#000000",tipTextFontSize:"18px",defaultRangeValue:!1,startValue:"",endValue:"",isForbidClick:!1},lineComponentProps=transformToComponentProps(lineProps),lineEvents=["click","refreshData","resetRecord"],useDownloadFile=async c=>{var g;const u=await request.post(c,{},{responseType:"blob"}),{data:f,headers:d}=u,h=d["content-disposition"].replace(/\w+;filename=(.*)/,"$1"),v=new Blob([f]),p=document.createElement("a"),m=window.URL.createObjectURL(v);p.href=m,p.download=decodeURI(h),p.style.display="none",document.body.appendChild(p),p.click(),(g=p.parentNode)==null||g.removeChild(p),window.URL.revokeObjectURL(m)},modalProps={id:"",type:"ecanModal",title:"",titleFontSize:"14px",titleColor:"",width:"1000px",height:"800px",originalWidth:"1920px",originalHeight:"1080px",backgroundColor:"#fff",backgroundImage:"",backgroundSize:"100% 100%",keyName:"弹窗",componentList:[],fullModal:!1,destroyOnClose:!0,position:"default",closeBtnColor:"#333",isShowCloseBtn:!0,events:[],borderRadius:"0",borderWidth:"0px",borderColor:"",boxShadow:"0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 9px 28px 8px rgba(0, 0, 0, 0.05)",allComponentList:[],requestList:[],parentIframeId:"",banScale:!1},modalComponentProps=transformToComponentProps(modalProps),modalEvents=["showModal","hideModal"],containerType=["ecanBorder","ecanTabs","ecanCirculate"];function handleScrollCombinations(c){const{containerMap:u={},sourceList:f=[],pageConfig:d={}}=c,h=lodashEs.cloneDeep(c.componentList),v=h.filter(p=>p.type==="ecanTabs"&&p.isAutoScroll);if(v!=null&&v.length)for(const p of v){const m=u[p.id],g=[];if((!mn(p,"componentList")||!(p!=null&&p.componentList))&&(p.componentList=[]),m){let y=0;for(const b in m){const Pn=m[b],x=[];if(Pn!=null&&Pn.length)for(const vn of Pn){let J=h.find(j=>j.id===vn);J||(J=f.find(j=>j.id===vn)),J&&(x.push(J),containerType.includes(J.type)&&x.push(...getComponentByContainer(J.id,u,f)))}for(const vn of x)mn(vn,"scale")?parseFloat(b)>0&&(vn.left=parseFloat(vn.left)+y+"px"):(vn.left=parseFloat(vn.sourceLeft||vn.left)-parseFloat(p.sourceLeft||p.left)+y+"px",vn.top=parseFloat(vn.sourceTop||vn.top)-parseFloat(p.sourceTop||p.top)+"px"),g.includes(vn.id)||g.push(vn.id);p.componentList.push(...x),y=getMaxLeftInComponents(x,d)}}for(const y of g){const b=h.findIndex(Pn=>Pn.id===y);b!==-1&&h.splice(b,1)}}return h}function compatibleMobileList(c){var m,g,y;const u=document.body.clientWidth,{combinationMap:f={},sourceList:d=[],pageConfig:h={}}=c,v=c.containerMap,p=lodashEs.cloneDeep([...c.componentList,...getTabsSomeComponentList(v,d)]);if(handleContainerMap(v,p),(m=Object.keys(v))!=null&&m.length||(g=Object.keys(f))!=null&&g.length){for(const j in v){const Fn=p.find(Bn=>Bn.id===j);if(Fn){if(Fn!=null&&Fn.isFlowGrid){Fn.sourceLeft=Fn.left,Fn.sourceTop=Fn.top;continue}mn(Fn,"parentId")||(Fn.parentId="",Fn.sourceLeft=Fn.left,Fn.sourceTop=Fn.top);for(const Bn in v[j])if(v[j][Bn])for(const w of v[j][Bn]){const gn=p.find(re=>re.id===w);if(gn&&(gn.parentId=j,gn.sourceLeft=gn.left,gn.sourceTop=gn.top,gn.left=parseFloat(gn.left)-parseFloat(Fn.sourceLeft||Fn.left)+"px",gn.top=parseFloat(gn.top)-parseFloat(Fn.sourceTop||Fn.top)+"px",gn.type==="ecanIndexPanel")){const{componentIds:re}=gn;for(const Rn of re){const Vn=p.find(Wn=>Wn.id===Rn);Vn&&(Vn.left=parseFloat(Vn.left)-parseFloat(gn.sourceLeft)+"px",Vn.top=parseFloat(Vn.top)-parseFloat(gn.sourceTop)+"px")}}}}}const b=Array.from(new Set(p.filter(j=>(!mn(j,"parentId")||j.parentId==="")&&j.combinationId).map(j=>j.combinationId))),Pn=getCombinationList(b,{...c,componentList:p,pageConfig:h});Pn!=null&&Pn.length&&p.unshift(...Pn);const x=["ecanPie","ecanLine","ecanBar","ecanScatter","ecanComboGraph","ecanCustomGraph","ecanRadar","ecanMap","ecanTable"],vn=p.filter(j=>x.includes(j.type)&&!mn(j,"parentId")),J=[];for(const j of vn)if(j){const Fn=j.id+"_vir";if(J.push({id:Fn,keyName:j.keyName+"_vir",parentId:"",type:"ecanBorder",borderRadius:"",borderWidth:null,width:u,height:getFormatWh(j.height,h==null?void 0:h.height),left:j.left,top:j.top,sourceLeft:j.left,sourceTop:j.top}),j.parentId=Fn,j.sourceLeft=j.left,j.sourceTop=j.top,j.left=10,j.top=0,j.width=u-20+"px",j.type==="ecanTable"){const{columns:Bn=[]}=j;j.scrollX="max-content";for(const w of Bn)(y=w==null?void 0:w.width)!=null&&y.includes("%")&&(w.width=parseFloat(w.width)/100*u+"px")}}J!=null&&J.length&&p.unshift(...J);for(const j of p){if(j.parentId===""&&containerType.includes(j.type))j.sourceWidth=getFormatWh(j.width,h==null?void 0:h.width),j.height=(u/(j.sourceWidth/getFormatWh(j.height,h==null?void 0:h.height))).toFixed(2)+"px",j.width="100%",j.position="relative",j.top="auto",j.left="auto";else{const Fn=p.find(Bn=>Bn.id===j.parentId);if((Fn==null?void 0:Fn.parentId)===""){const Bn=Fn.sourceWidth||getFormatWh(Fn.width,h==null?void 0:h.width),w=u/Bn;j.scale=w,j.top=parseFloat(j.top)*w-getFormatWh(j.height,h==null?void 0:h.height)*(1-w)/2+"px",j.left=parseFloat(j.left)*w-getFormatWh(j.width,h==null?void 0:h.width)*(1-w)/2+"px"}}j.type==="ecanModal"&&(j.parentId="",j.fullModal=!0)}return sortList(p)}return p}function handleContainerMap(c,u){const f=lodashEs.cloneDeep(c),d=u.filter(h=>h.type==="ecanTabs"&&h.isAutoScroll);if(d!=null&&d.length)for(const h of d){const v=f[h.id];for(const p in v)for(const m of v[p]){const g=u.find(y=>y.id===m);if(g&&containerType.includes(g.type)){const y=getComponentByContainer(g.id,f,u);for(const b of y)c[h.id][p].push(b.id),containerType.includes(b.type)&&delete c[b.id];delete c[g.id]}}}}function getTabsSomeComponentList(c,u){const f=[],d=u.filter(h=>h.type==="ecanTabs"&&h.isAutoScroll);if(d!=null&&d.length)for(const h of d){const v=c[h.id];for(const p in v)if(parseFloat(p)>0)for(const m of v[p]){const g=u.find(y=>y.id===m);g&&(f.push(g),containerType.includes(g.type)&&f.push(...getComponentByContainer(g.id,c,u)))}}return f}function getComponentByContainer(c,u,f){const d=[],h=u[c];for(const v in h)for(const p of h[v]){const m=f.find(g=>g.id===p);m&&(d.push(m),containerType.includes(m.type)&&d.push(...getComponentByContainer(m.id,u,f)))}return d}function getCombinationList(c,u,f){const{combinationMap:d={},componentList:h=[],pageConfig:v={}}=u,p=[];for(const m of c){const g=d[m];if(g!=null&&g.length){const y=h.filter(b=>g.includes(b.id));if(y!=null&&y.length){const b=getCombinateRect(y,v);if(b){p.push({...b,id:m,keyName:m,parentId:f||"",type:"ecanBorder",borderRadius:"",borderWidth:null,sourceLeft:b.left,sourceTop:b.top});for(const Pn of y)Pn&&(Pn.parentId=m,Pn.sourceLeft=Pn.left,Pn.sourceTop=Pn.top,Pn.left=parseFloat(Pn.left)-parseFloat(b.left)+"px",Pn.top=parseFloat(Pn.top)-parseFloat(b.top)+"px")}}}}return p}function sortList(c){const f=c.filter(d=>d.parentId===""||(d==null?void 0:d.isFlowGrid));if(f!=null&&f.length){const d=lodashEs.cloneDeep(f).map(h=>({...h,sourceTop:parseFloat(h.sourceTop),sourceLeft:parseFloat(h.sourceLeft)}));for(let h=0;h<d.length-1;h++)for(let v=0;v<d.length-h-1;v++){let p=!1;if((d[v].sourceTop-d[v+1].sourceTop>40||Math.abs(d[v+1].sourceTop-d[v].sourceTop)<=40&&d[v].sourceLeft>d[v+1].sourceLeft)&&(p=!0),p){const m=d[v];d[v]=d[v+1],d[v+1]=m}}for(const h of d){const v=c.findIndex(p=>p.id===h.id);v!==-1&&c.splice(v,1)}return[...d,...c]}return c}function getCombinateRect(c,u){const f=c.sort((p,m)=>parseFloat(p.top)-parseFloat(m.top))[0],d=c.sort((p,m)=>parseFloat(p.left)-parseFloat(m.left))[0],h=c.map(p=>({...p,computedTop:parseFloat(p.top)+getFormatWh(p.height,u==null?void 0:u.height)})).sort((p,m)=>m.computedTop-p.computedTop)[0],v=c.map(p=>({...p,computedLeft:parseFloat(p.left)+getFormatWh(p.width,u==null?void 0:u.width)})).sort((p,m)=>m.computedLeft-p.computedLeft)[0];return f&&d&&h&&v?{left:d.left,top:f.top,width:v.computedLeft-parseFloat(d.left)+"px",height:h.computedTop-parseFloat(f.top)+"px"}:null}function getMaxLeftInComponents(c,u){const f=c.map(d=>parseFloat(d.left)+getFormatWh(d.width,u==null?void 0:u.width)).sort((d,h)=>h-d)[0];return f||0}function moveToComponentList(c,u,f){const d=c[f],h=[];if(d)for(const v in d){const p=d[v];for(const m of p){const g=u.find(y=>y.id===m);g&&(h.push(g),containerType.includes(g.type)&&h.push(...getComponentByContainer(g.id,c,u)))}}return h}const _sfc_main$z=vue.defineComponent({name:"Render",props:{component:{type:Object,default:()=>{}}},setup(c,{emit:u}){u("ready",c.component.id)}});function _sfc_render$E(c,u,f,d,h,v){return c.component.parentId?(vue.openBlock(),vue.createBlock(vue.Teleport,{key:0,to:"#container_"+c.component.parentId},[(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(c.component.type),vue.mergeProps({style:{scale:c.component.scale}},c.component),null,16,["style"]))],8,["to"])):(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(c.component.type),vue.normalizeProps(vue.mergeProps({key:1},c.component)),null,16))}const Render=_export_sfc$1(_sfc_main$z,[["render",_sfc_render$E]]),EcanRender=withInstall$1(Render),_sfc_main$y=vue.defineComponent({name:"EcanModal",components:{AModal:antDesignVue.Modal,CloseOutlined:CloseOutlined$1,Render:EcanRender},props:{...modalComponentProps},setup(c,{emit:u}){const f=vue.ref([]),d=vue.inject("isMobile",!1),{width:h,height:v}=vue.inject(GLOBAL_CONFIG,{width:null,height:null}),p=vue.computed(()=>c.fullModal),m=vue.inject("getContainerMap",()=>{}),g=vue.inject("getCombinationMap",()=>{}),{clearInteractiveData:y,interactiveData:b,setRequestData:Pn}=vue.inject(GLOBAL_MODEL,{setRequestData:(Cr,yr)=>{},clearInteractiveData:()=>{},interactiveData:null}),x=()=>document.getElementById("ProviderConfig")||document.body,vn=vue.computed(()=>{const Cr=c.position;return{verticalAlign:{default:"",top:"top",center:"middle",bottom:"bottom"}[Cr]}}),J=c.fullModal?"1920px":c.width,j=c.fullModal?"1080px":c.height,Fn=c.originalWidth,Bn=c.originalHeight,w=vue.ref("80%"),gn=vue.ref(0),re=vue.ref(),Rn=vue.ref(0),Vn=vue.ref({}),Wn=usePickComponentStyle(c),Gn=vue.ref({}),Zn=vue.ref(!1),Xn=vue.ref();let er;const Jn=()=>{re.value=parseFloat(J)/parseFloat(Fn);const Cr=parseFloat(j)/parseFloat(Bn),yr=document.body.offsetWidth,pr=document.body.offsetHeight;if(gn.value=yr*vue.unref(re),Rn.value=pr*Cr,w.value=`${vue.unref(re)*100}%`,Vn.value={width:`${vue.unref(gn)}px`,height:`${vue.unref(Rn)}px`,border:`${c.borderWidth} solid ${c.borderColor}`,borderRadius:c.borderRadius+"px",boxShadow:c.boxShadow},Gn.value={...vue.unref(Wn),backgroundImage:useImagePath(c.backgroundImage,!0)},d)Gn.value={...Gn.value,width:"100%",height:"100%"};else{const br={...Gn.value,width:J,height:j};c.banScale&&vue.unref(p)?(br.width="100%",br.height="100%"):br.transform=`scale(${vue.unref(gn)/parseFloat(J)},${vue.unref(Rn)/parseFloat(j)})`,Gn.value=br}},ir=lodashEs.debounce(()=>{Jn()},100),dr=()=>{const Cr=window.MutationObserver;er=new Cr(ir),er.observe(document.body,{attributes:!0,attributeFilter:["style"],attributeOldValue:!0})},or=()=>{er&&(er.disconnect(),er.takeRecords(),er=null)},Hn=vue.ref(!1),{touchRequest:Kn}=vue.inject(REQUEST_MODEL,{touchRequest:()=>{}}),zn=vue.ref(""),qn=()=>{var pr;const{title:Cr}=c,yr=(pr=vue.unref(b))==null?void 0:pr.RECORD;return yr?hn(Cr,{textData:yr},{useNewline:!1,useSpace:!1}):Cr},tr=useEmitEvent(c),Un=Cr=>{const{changeIframeStyle:yr}=window.parent;yr&&typeof yr=="function"&&yr({iframeId:c.parentIframeId||"",action:Cr})},nr=()=>{vue.unref(p)&&Un("open"),d&&(document.documentElement.style.overflow="hidden"),zn.value=qn(),Hn.value=!0},sr=tr("hideModal",()=>{vue.unref(p)&&Un("close"),u("close"),d&&(document.documentElement.style.overflow="hidden auto",f.value=[]),Hn.value=!1}),Qn=()=>{sr()},ar=()=>{sr(),y()},{setModalModel:cr,pushUseModalIds:Yn,popUseModalIds:lr}=vue.inject(MODAL_MODEL,{pushUseModalIds:Cr=>{},popUseModalIds:()=>{},setModalModel:(Cr,yr)=>{}}),hr=vue.computed(()=>{let Cr=c.componentList;const yr=lodashEs.cloneDeep(c.componentList),pr=m(),br=g(),wr={containerMap:pr,combinationMap:br};d&&(Cr=compatibleMobileList({...wr,componentList:yr,sourceList:c.allComponentList,pageConfig:{width:vue.unref(h),height:vue.unref(v)}})),Cr=handleScrollCombinations({...wr,componentList:Cr,sourceList:c.allComponentList,pageConfig:{width:vue.unref(h),height:vue.unref(v)}});const kr=[];for(const Er of Cr)if(Er.type==="ecanCirculate"){const Ir=moveToComponentList(pr,vue.unref(yr),Er.id);Er.componentList=Ir,kr.push(...Ir.map(Mr=>Mr.id))}else if(Er.type==="ecanTable"){const{headerFontSize:Ir,fontSize:Mr,size:qr,bodyRowHeight:Rr,headRowHeight:Fr}=Er;if(!Rr||!Fr)if(Er.size){let jr=0;switch(qr){case"default":jr=16;break;case"middle":jr=12;break;case"small":jr=8;break}Rr||(Er.bodyRowHeight=(jr*2+parseFloat(Mr)*1.5715).toFixed(0)+"px"),Fr||(Er.headRowHeight=(jr*2+parseFloat(Ir)*1.5715).toFixed(0)+"px")}else Rr||(Er.bodyRowHeight="54px"),Fr||(Er.headRowHeight="54px")}if(kr!=null&&kr.length)for(const Er of kr){const Ir=Cr.findIndex(Mr=>Mr.id===Er);Ir!==-1&&Cr.splice(Ir,1)}return Cr}),mr=()=>{const Cr=c.id;let yr=[];const pr=c.componentList;Array.isArray(pr)&&(yr=pr.map(br=>br.id),cr(Cr,[...new Set(yr)]))},ur=vue.ref(!1),gr={};for(const Cr of c.requestList)gr[Cr.requestName]=useRequestData(Cr);vue.watch(()=>Hn.value,async Cr=>{if(Cr)Zn.value=!1,Yn(c.id),mr(),await vue.nextTick(()=>{Jn(),window.addEventListener("resize",ir),dr(),Zn.value=!0}),Kn();else{if(Pn)for(const yr in gr)Pn(yr,{});lr(),window.removeEventListener("resize",ir),or()}});const fr=vue.computed(()=>vue.unref(re)>=1),vr=vue.computed(()=>{let Cr="ecan-modal";return vue.unref(fr)&&(Cr+=" ecan-full-width-modal"),vue.unref(p)&&(Cr+=" ecan-full-modal"),Cr});return useOnEvent(c,{showModal:nr,hideModal:sr}),{modalRef:Xn,containStyle:Vn,contentStyle:Gn,getContainer:x,modalStyle:vn,modalWith:w,isFullModal:p,style:Wn,visible:Hn,showModal:nr,onOk:Qn,onCancel:ar,isFullWidth:fr,wrapClassName:vr,ready:Zn,usedComponentList:hr,isMobile:d,readyIds:f,hasOwn:mn,onComponentReady:Cr=>{f.value.push(Cr)},formatTitle:zn,requestLoaded:ur}}}),Modal_vue_vue_type_style_index_0_scoped_cb5d6923_lang="",Modal_vue_vue_type_style_index_1_lang="";function _sfc_render$D(c,u,f,d,h,v){const p=vue.resolveComponent("close-outlined"),m=vue.resolveComponent("render"),g=vue.resolveComponent("a-modal");return vue.openBlock(),vue.createBlock(g,{getContainer:c.getContainer,wrapClassName:c.wrapClassName,centered:"",visible:c.visible,footer:null,width:c.isFullModal||c.isFullWidth?"100%":c.modalWith,destroyOnClose:c.destroyOnClose,style:vue.normalizeStyle(c.modalStyle),closable:!1,onOk:c.onOk,onCancel:c.onCancel,ref:"modalRef",id:"container_"+c.id},{default:vue.withCtx(()=>[vue.createElementVNode("div",{class:"contain",ref:"containRef",style:vue.normalizeStyle(c.containStyle)},[c.ready?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"content",style:vue.normalizeStyle(c.contentStyle)},[vue.createElementVNode("div",{class:"header-bar",style:vue.normalizeStyle({backgroundColor:c.backgroundColor,padding:"20px 30px",height:c.isMobile?"62px":""})},[c.formatTitle?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"ant-modal-title",style:vue.normalizeStyle({fontSize:c.titleFontSize,color:c.titleColor})},vue.toDisplayString(c.formatTitle),5)):vue.createCommentVNode("",!0),c.isShowCloseBtn?(vue.openBlock(),vue.createBlock(p,{key:1,class:"close-icon",style:vue.normalizeStyle({color:c.closeBtnColor}),onClick:c.onCancel},null,8,["style","onClick"])):vue.createCommentVNode("",!0)],4),c.usedComponentList.length?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:vue.normalizeClass(c.isMobile?"mobile-wrap":"")},[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(c.usedComponentList,(y,b)=>(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:y.id+b},[c.isMobile?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[c.hasOwn(y,"parentId")&&(c.readyIds.includes(y.parentId)||y.parentId==="")?(vue.openBlock(),vue.createBlock(m,{key:0,component:y,onReady:c.onComponentReady},null,8,["component","onReady"])):vue.createCommentVNode("",!0)],64)):(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(y.type),vue.normalizeProps(vue.mergeProps({key:1},y)),null,16))],64))),128))],2)):vue.renderSlot(c.$slots,"default",{key:1},void 0,!0)],4)):vue.createCommentVNode("",!0)],4)]),_:3},8,["getContainer","wrapClassName","visible","width","destroyOnClose","style","onOk","onCancel","id"])}const Modal=_export_sfc$1(_sfc_main$y,[["render",_sfc_render$D],["__scopeId","data-v-cb5d6923"]]),EcanModal=withInstall$1(Modal);core$1.use([renderers.CanvasRenderer,charts.LineChart,components$1.ToolboxComponent,components$1.TitleComponent,components$1.LegendComponent,components$1.MarkLineComponent]);const _sfc_main$x=vue.defineComponent({name:"EcanLine",props:{...lineComponentProps},components:{Spin,Echarts,EcanModal},setup(c,{expose:u}){const f=vue.ref(!1),{pageMode:d,fontFamily:h}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal",fontFamily:""}),v=vue.inject("showIndDetail",tr=>{}),p=vue.inject("usedComponentList",[]),m=vue.ref(),g=vue.ref(!1),y=usePickComponentStyle(c),b=vue.ref([]),Pn=vue.ref([]),x=vue.ref(),vn=vue.computed(()=>g.value?ZOOM_FONT_SIZE:12),J=vue.ref({});let j;const Fn=vue.ref([]),Bn=vue.computed(()=>{const tr=c.xAxisLabelFormatter,Un=c.yAxisLabelFormatter;return{textStyle:{fontFamily:vue.unref(h)},toolbox:{show:c.toolboxShow,left:c.toolboxLeft,top:c.toolboxTop,itemSize:c.toolboxItemSize,itemGap:c.toolboxItemGap,orient:c.toolboxOrient,feature:{myDownload:{show:c.toolboxDownloadShow,title:"数据下载",icon:"path://M502.010485 765.939573c3.773953 3.719718 8.686846 5.573949 13.596669 5.573949 0.075725 0 0.151449-0.010233 0.227174-0.011256 0.329505 0.016373 0.654916 0.050142 0.988514 0.050142 0.706081 0 1.400906-0.042979 2.087545-0.116657 4.352121-0.366344 8.607028-2.190899 11.961426-5.496178l335.053985-330.166675c7.619538-7.509021 7.709589-19.773346 0.200568-27.393907s-19.774369-7.711636-27.39493-0.201591L536.193005 706.304358 536.193005 50.019207c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 657.032164-306.881342-302.44838c-7.618515-7.509021-19.883863-7.419993-27.393907 0.199545-7.509021 7.619538-7.419993 19.884886 0.199545 27.393907L502.010485 765.939573z, M867.170139 711.020776c-10.698666 0-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 13.054317-10.620895 23.675212-23.676236 23.675212L205.182103 919.486668c-13.054317 0-23.676236-10.620895-23.676236-23.675212L181.505867 730.391962c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 34.416857 28.000728 62.416562 62.417585 62.416562l618.941638 0c34.417881 0 62.417585-27.999704 62.417585-62.416562L886.540302 730.391962C886.541325 719.693296 877.868805 711.020776 867.170139 711.020776z",onclick(){useDownloadFile(c.toolboxDownloadUrl)}},myDataZoom:{show:g.value?!1:c.toolboxDataZoomShow,title:"放大",icon:"path://M932.42 902.246667L792 761.793333A403.84 403.84 0 0 0 896 490.666667c0-223.86-181.473333-405.333333-405.333333-405.333334S85.333333 266.806667 85.333333 490.666667s181.473333 405.333333 405.333334 405.333333a403.84 403.84 0 0 0 271.126666-104l140.453334 140.453333a21.333333 21.333333 0 0 0 30.173333-30.173333zM128 490.666667c0-200.293333 162.373333-362.666667 362.666667-362.666667s362.666667 162.373333 362.666666 362.666667-162.373333 362.666667-362.666666 362.666666-362.666667-162.373333-362.666667-362.666666z m512 0a21.333333 21.333333 0 0 1-21.333333 21.333333H512v106.666667a21.333333 21.333333 0 0 1-42.666667 0V512H362.666667a21.333333 21.333333 0 0 1 0-42.666667h106.666666V362.666667a21.333333 21.333333 0 0 1 42.666667 0v106.666666h106.666667a21.333333 21.333333 0 0 1 21.333333 21.333334z",onclick(){var nr;g.value=!0,(nr=x.value)==null||nr.showModal()}},myInfo:{show:c.toolboxInfoShow,title:"详情",icon:"path://M512.50142 958.397886c-119.320573 0-231.499491-46.465265-315.871087-130.837884C112.258737 743.188406 65.792449 631.010511 65.792449 511.688915c0-119.319549 46.466288-231.499491 130.837884-315.871087C281.002952 111.445208 393.180847 64.979944 512.50142 64.979944s231.499491 46.465265 315.871087 130.837884c84.372619 84.372619 130.837884 196.551538 130.837884 315.871087 0 119.321596-46.465265 231.499491-130.837884 315.871087C744.000911 911.932622 631.821993 958.397886 512.50142 958.397886zM512.50142 105.962334c-223.718271 0-405.726581 182.00831-405.726581 405.726581s182.00831 405.726581 405.726581 405.726581c223.718271 0 405.727605-182.00831 405.727605-405.726581S736.220714 105.962334 512.50142 105.962334z M510.150886 775.953647c-18.107403 0-32.745798-14.678304-32.745798-32.785707L477.405087 452.191846c0-18.108426 14.638395-32.785707 32.745798-32.785707 18.107403 0 32.745798 14.678304 32.745798 32.785707l0 290.976094C542.896684 761.275343 528.258289 775.953647 510.150886 775.953647z M511.357364 296.458969m-45.080731 0a44.054 44.054 0 1 0 90.161463 0 44.054 44.054 0 1 0-90.161463 0Z",onclick(){v(c)}}}},title:{text:c.titleText,subText:c.titleSubtext,textStyle:{fontSize:c.titleFontSize,fontWeight:c.fontWeight,color:c.titleColor},left:c.textAlign},grid:{top:c.gridTop,bottom:c.gridBottom,left:c.gridLeft,right:c.gridRight,containLabel:c.gridContainLabel},color:c.colors,tooltip:{trigger:"axis",textStyle:{fontSize:vn.value,color:c.tooltipTextStyleColor},show:c.tooltipShow,formatter:nr=>{var cr;const sr=nr.length;let Qn="",ar=c.tooltipFormatter;j=(cr=nr[0])==null?void 0:cr.data,ar===""&&(ar="{marker} {a} {c}");for(let Yn=0;Yn<sr;Yn++){const{marker:lr,seriesName:hr,name:mr,value:ur,data:gr}=nr[Yn]||{};if(Yn===0){let fr=mr;typeof mr=="string"&&mr[0]==="0"&&!isNaN(+mr)&&(fr=(+mr).toString()),Qn+=`${In(tr,fr)}<br/>`}Qn+=hn(ar,{textData:{marker:lr,name:mr,value:ur,a:hr,b:mr,c:ur||0,...gr}},{useNewline:!0,useSpace:!0}),Qn+="<br/>"}return Qn},position:c.tooltipPosition||void 0},xAxis:{type:"category",boundaryGap:c.isBoundaryGap,data:vue.unref(Pn).map(nr=>{let sr={};return nr&&typeof nr=="object"?sr={...nr}:sr={value:nr},sr}),minInterval:c.xAxisMinInterval,splitLine:{show:c.xAxisSplitLineShow,lineStyle:{color:c.xAxisSplitLineStyleColor},interval:c.xAxisSplitLineInterval},splitArea:{show:c.xAxisSplitAreaShow},axisLabel:{show:c.xAxisLabelShow,color:c.xAxisLabelColor,interval:c.xAxisLabelInterval||0,rotate:c.xAxisLabelRotate,width:c.xAxisLabelWidth,overflow:c.xAxisLabelOverflow,fontSize:c.xAxisLabelFontSize,formatter(nr){return typeof nr=="string"&&nr[0]==="0"&&!isNaN(+nr)&&(nr=(+nr).toString()),In(tr,nr)}},axisLine:{show:c.xAxisLineShow,lineStyle:{color:c.xAxisLineStyleColor}},axisTick:{show:c.xAxisTickShow},name:c.xAxisName,nameTextStyle:{fontSize:c.xAxisLabelFontSize,color:c.xAxisLabelColor,align:"left"},max:c.xAxisMaxValue||null},yAxis:{type:"value",minInterval:c.yAxisMinInterval,splitLine:{show:c.yAxisSplitLineShow,lineStyle:{color:c.yAxisSplitLineStyleColor,type:c.yAxisSplitLineType}},splitArea:{show:c.yAxisSplitAreaShow},axisLabel:{show:c.yAxisLabelShow,fontSize:c.yAxisLabelFontSize,color:c.yAxisLabelColor,formatter(nr){return In(Un,nr)}},axisLine:{show:c.yAxisLineAlwaysDisplay,lineStyle:{color:c.yAxisLineStyleColor}},name:c.yAxisName,nameTextStyle:{fontSize:c.yAxisLabelFontSize,color:c.yAxisLabelColor,align:"right"},max:c.yAxisMaxValue||null},legend:{type:c.legendScroll?"scroll":"plain",width:c.legendWidth,height:c.legendHeight,show:c.legendShow,orient:c.legendOrient,top:c.legendTop,left:c.legendLeft,textStyle:{lineHeight:(g.value?ZOOM_FONT_SIZE:parseFloat(c.legendFontSize))+8,rich:{text:{width:c.legendTextWidth,color:c.legendTextStyleColor,fontSize:g.value?ZOOM_FONT_SIZE:c.legendFontSize}}},itemHeight:c.legendItemHeight,itemWidth:c.legendItemWidth,itemGap:c.legendItemGap,data:vue.unref(Fn).map(nr=>({name:nr.name,icon:c.legendType})),formatter:nr=>getLegendFormat(c.legendFormatter,{name:nr})},series:vue.unref(b)}}),w=()=>{g.value=!1},{getGlobalModel:gn,setGlobalModel:re}=vue.inject(GLOBAL_MODEL,{getGlobalModel:tr=>{},setGlobalModel:(tr,Un)=>{}}),Rn=vue.computed(()=>c.isShowMarkLine?{markLine:{data:[{type:c.markLineType}]}}:{}),Vn=(tr=[],Un=!1)=>{var cr;let nr;if(c.dataFieldConfigType==="key"){const Yn=Un?c.keyTypeDataFieldNames:null;nr=Mn(tr,Yn)}else if(c.dataFieldConfigType==="value"){const Yn=Un?c.valueTypeDataFieldNames:null;nr=En(tr,Yn)}Pn.value=nr.dimensions,Fn.value=nr.dataset;const sr=nr.dataset,Qn=[],ar=sr.length;for(let Yn=0;Yn<ar;Yn++){const lr={};c.shadowColor&&(lr.shadowColor=c.shadowColor,lr.shadowBlur=c.shadowBlur,lr.shadowOffsetY=c.shadowOffsetY,lr.shadowOffsetX=c.shadowOffsetX);let hr=c.colors[Yn];if(!hr&&c.colors.length){const mr=(Yn+1)%c.colors.length-1;hr=mr>0?c.colors[mr]:c.colors[0]}hr||(hr="#5470C6"),Qn.push({type:"line",...sr[Yn],symbolSize:c.symbolSize,smooth:c.smooth,areaStyle:{color:c.areaGradientShow?{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:hr},{offset:1,color:c.areaGradientColor||"transparent"}],global:!1}:hr,opacity:c.areaStyleOpacity},lineStyle:{width:c.lineStyleWidth,...lr},...vue.unref(Rn)})}b.value=Qn,(cr=nr.dataset)!=null&&cr.length?f.value=!1:f.value=!0},Wn=(tr=[],Un,nr=!1)=>{var lr,hr,mr;const Qn=Mn(tr,nr?Un:null,!0);if(c.defaultRangeValue&&setDefaultRangeVal({props:c,componentList:vue.unref(p),getGlobalModel:gn},Qn),(lr=Qn.dataset)!=null&&lr.length){for(const ur of Qn.dataset)if((hr=ur.data)!=null&&hr.length)for(const gr of ur.data)(gr.value===null||gr.value===void 0)&&(gr.value=0)}Pn.value=Qn.dimensions,Fn.value=Qn.dataset;const ar=Qn.dataset,cr=[],Yn=ar.length;for(let ur=0;ur<Yn;ur++){const gr={};c.shadowColor&&(gr.shadowColor=c.shadowColor,gr.shadowBlur=c.shadowBlur,gr.shadowOffsetY=c.shadowOffsetY,gr.shadowOffsetX=c.shadowOffsetX);let fr=c.colors[ur];if(!fr&&c.colors.length){const vr=(ur+1)%c.colors.length-1;fr=vr>0?c.colors[vr]:c.colors[0]}fr||(fr="#5470C6"),cr.push({type:"line",...ar[ur],symbolSize:c.symbolSize,smooth:c.smooth,areaStyle:{color:c.areaGradientShow?{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:fr||ur%(c.colors.length||1)},{offset:1,color:c.areaGradientColor||"transparent"}],global:!1}:fr,opacity:c.areaStyleOpacity},lineStyle:{width:c.lineStyleWidth,...gr},...vue.unref(Rn)})}b.value=cr,(mr=Qn.dataset)!=null&&mr.length?f.value=!1:f.value=!0};vue.watch(()=>[c.data,c.symbolSize,c.smooth,c.lineStyleWidth,c.areaStyleOpacity,c.areaGradientShow,c.areaGradientColor,c.shadowColor,c.shadowBlur,c.shadowOffsetY,c.shadowOffsetX,c.legendFontSize,c.isShowMarkLine,c.markLineType,c.legendFormatter,c.legendWidth,c.legendHeight,c.legendTextWidth,c.legendScroll],([tr])=>{(c.dataType==="static"||vue.unref(d)==="design")&&Vn(tr)},{immediate:!0,deep:!0});const Gn=vue.ref(!1),Zn=useRequestData(c),Xn=async()=>{var tr,Un;if(c.dataType==="request")try{Gn.value=!0;const nr=await Zn();Vn((Un=(tr=nr==null?void 0:nr.data)==null?void 0:tr.data)==null?void 0:Un.rows,!0)}catch(nr){console.error(nr)}finally{Gn.value=!1}},er=useEmitEvent(c);re(c.id,{type:c.type,RECORD:""});const Jn=er("click",tr=>{const Un=gn(c.id);re(c.id,{...Un,type:c.type,RECORD:c.tooltipShow?j:tr.data})}),ir=tr=>{m.value.chart.containPixel("grid",[tr.offsetX,tr.offsetY])&&Jn()};c.isForbidClick||(c.tooltipShow?J.value["zr:click"]=ir:J.value.click=Jn);const dr=tr=>{var cr;const{columns:Un=[],rows:nr=[]}=((cr=tr==null?void 0:tr.data)==null?void 0:cr.data)??{};let sr;Un.length>0&&(sr={name:Un[0],types:Un.slice(1).map(Yn=>({label:Yn,value:Yn}))});const{leftAxisList:Qn=[]}=c.graphicConfig,ar=Qn.filter(Yn=>Yn.show).map(Yn=>Yn.label);for(const Yn of nr)if(Yn)for(const lr in Yn)typeof Yn[lr]=="string"&&ar.includes(lr)&&!isNaN(parseFloat(Yn[lr]))&&(Yn[lr]=parseFloat(Yn[lr]));Wn(nr,sr,!0)},or=useIndicatorData(c,tr=>{c.isViewRedrawing&&m.value.clear(),dr(tr)}),Hn=async()=>{try{Gn.value=!0;const tr=await or();dr(tr)}catch(tr){console.error(tr)}finally{Gn.value=!1}},Kn=async()=>{switch(c.dataType){case"indicator":await Hn();break;case"request":await Xn();break}};useOnEvent(c,{refreshData:Kn,resetRecord:()=>{const tr=c.id,Un=gn(tr);re(tr,{...Un,RECORD:""})},click:Jn});const{setRequest:qn}=vue.inject(REQUEST_MODEL,{setRequest:tr=>{}});return typeof qn=="function"&&qn({id:c.id,requestFn:Kn,sortNum:c.requestSort}),u({refreshData:Kn}),{option:Bn,style:y,click:Jn,loading:Gn,onClose:w,ecanModal:x,eventObj:J,echartRef:m,emptyData:f}}}),Line_vue_vue_type_style_index_0_lang="",Line_vue_vue_type_style_index_1_scoped_fadf491b_lang="";function _sfc_render$C(c,u,f,d,h,v){const p=vue.resolveComponent("echarts"),m=vue.resolveComponent("spin"),g=vue.resolveComponent("ecan-modal");return vue.openBlock(),vue.createElementBlock("div",{style:vue.normalizeStyle(c.style)},[vue.createVNode(m,{spinning:c.loading},{default:vue.withCtx(()=>[c.noDataTip&&c.emptyData?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"empty-wrap",style:vue.normalizeStyle({color:c.tipTextColor,fontSize:c.tipTextFontSize})},[vue.createElementVNode("span",null,vue.toDisplayString(c.tipText),1)],4)):(vue.openBlock(),vue.createBlock(p,vue.mergeProps({key:1,ref:"echartRef",option:c.option,autoresize:""},vue.toHandlers(c.eventObj)),null,16,["option"]))]),_:1},8,["spinning"]),vue.createVNode(g,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:c.onClose},{default:vue.withCtx(()=>[vue.createVNode(m,{class:"spin-wrap",spinning:c.loading},{default:vue.withCtx(()=>[vue.createVNode(p,{option:c.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"])],4)}const Line=_export_sfc$1(_sfc_main$x,[["render",_sfc_render$C],["__scopeId","data-v-fadf491b"]]),EcanLine=withInstall$1(Line);let random=c=>crypto.getRandomValues(new Uint8Array(c)),customRandom=(c,u,f)=>{let d=(2<<Math.log(c.length-1)/Math.LN2)-1,h=-~(1.6*d*u/c.length);return(v=u)=>{let p="";for(;;){let m=f(h),g=h;for(;g--;)if(p+=c[m[g]&d]||"",p.length===v)return p}}},customAlphabet=(c,u=21)=>customRandom(c,u,random),nanoid=(c=21)=>crypto.getRandomValues(new Uint8Array(c)).reduce((u,f)=>(f&=63,f<36?u+=f.toString(36):f<62?u+=(f-26).toString(36).toUpperCase():f>62?u+="-":u+="_",u),"");const _sfc_main$w=vue.defineComponent({name:"TrendModal",components:{EcanLine},props:{theme:{type:String,default:"light"}},setup(c,{expose:u}){const f=vue.ref(!1),d=vue.ref(),h=vue.ref(),v=vue.inject("isMobile",!1),p=async({data:y,pageConfig:b,unitText:Pn})=>{if(y){const{graphicConfig:x}=y,vn=nanoid(6),J={source:"INDICATOR_LIB",dataSourceId:"",idxLibMode:"",classificationList:[{id:"3f5bda70a08a442085857adb7fc547de",indexCode:null,indexCodeNum:null,title:"日期",name:"the_date",label:"日期",typeGuid:"the_date",genericType:"DATE",hrpIndexComplexid:"the_date",scope:"BUILT_IN_DIM",fromTable:"hrp_index_complex",parentId:"3f5bda70a08a442085857adb7fc547de",show:!0,edit:!1,dataTo:"0",dateFormat:"YYYY-MM",dataSetParams:{}}],leftAxisList:(x==null?void 0:x.indicators)||[],controlList:(x==null?void 0:x.controlList)||[],variableList:(x==null?void 0:x.variableList)||[],variableConditions:(x==null?void 0:x.variableConditions)||[]};d.value={...lodashEs.cloneDeep(lineProps),id:vn,keyName:`折线图_${vn}`,position:"relative",top:0,left:0,width:vue.unref(v)?"100%":parseFloat(b.width)*.57+"px",height:vue.unref(v)?"100%":parseFloat(b.height)*.4+"px",dataType:"indicator",tooltipFormatter:"{marker} {a} {c}"+Pn,xAxisLabelRotate:45,yAxisLabelFormatter:Pn?`{value}${Pn}`:"{value}",isForbidClick:!0,graphicConfig:J},f.value=!0,vue.nextTick(()=>{vue.unref(h).refreshData()})}},m=()=>document.querySelector("#modalContainer")||document.body,g=vue.computed(()=>{let y="trend-modal";return vue.unref(v)&&(y+=" full"),c.theme==="darkBlue"&&(y+=" darkBlue"),y});return vue.watch(f,y=>{y?document.documentElement.style.overflow="hidden":document.documentElement.style.overflow="hidden auto"}),vue.onMounted(()=>{var y,b;if(vue.unref(v)){const Pn=document.querySelector("#modalContainer");(y=Pn==null?void 0:Pn.style)==null||y.setProperty("--window-screen-width",document.body.clientWidth+"px"),(b=Pn==null?void 0:Pn.style)==null||b.setProperty("--window-screen-height",document.body.clientHeight+"px")}}),u({showModal:p}),{visible:f,componentConfig:d,lineRef:h,wrapClassName:g,isMobile:v,getContainer:m}}}),TrendModal_vue_vue_type_style_index_0_scoped_292e6a60_lang="",TrendModal_vue_vue_type_style_index_1_lang="",_withScopeId$6=c=>(vue.pushScopeId("data-v-292e6a60"),c=c(),vue.popScopeId(),c),_hoisted_1$n=_withScopeId$6(()=>vue.createElementVNode("div",{class:"modal-title"},"趋势图",-1));function _sfc_render$B(c,u,f,d,h,v){const p=vue.resolveComponent("ecan-line"),m=vue.resolveComponent("a-modal");return vue.openBlock(),vue.createBlock(m,{visible:c.visible,"onUpdate:visible":u[0]||(u[0]=g=>c.visible=g),width:"60%",getContainer:c.getContainer,footer:null,destroyOnClose:!0,bodyStyle:{maxHeight:c.isMobile?"":"60vh",height:c.isMobile?"100vh":"",overflow:"auto",padding:"20px 24px 24px"},"wrap-class-name":c.wrapClassName},{title:vue.withCtx(()=>[_hoisted_1$n]),default:vue.withCtx(()=>[c.componentConfig?(vue.openBlock(),vue.createBlock(p,vue.mergeProps({key:0},c.componentConfig,{ref:"lineRef"}),null,16)):vue.createCommentVNode("",!0)]),_:1},8,["visible","getContainer","bodyStyle","wrap-class-name"])}const TrendModal=_export_sfc$1(_sfc_main$w,[["render",_sfc_render$B],["__scopeId","data-v-292e6a60"]]),pivotTableProps={...props$1,name:"透视表",keyName:"透视表",width:"800px",height:"400px",type:"ecanPivotTable",graphicConfig:{},dataType:"indicator",data:[],dimensionList:[],indicatorList:[],styleConfig:{borderColor:"#E3E3E3",headerBgColor:"#ECF1F5",headerColor:"#000000",bodyBgColor:"#FFFFFF",bodyColor:"#000000",indicatorsHeaderBgColor:"#ECF1F5",indicatorsHeaderColor:"#000000",indicatorsBodyBgColor:"#FFFFFF",indicatorsBodyColor:"#000000",aggregateBgColor:"#ECF1F5",aggregateColor:"#000000",sortNotActiveColor:"#CCCCCC",sortActiveColor:"#416EFF",dropDownMenuBgColor:"#FFFFFF",dropDownMenuColor:"#141414",dropDownMenuHightLightColor:"#2E68CF"},configMode:"halfMode"},pivotTableComponentProps=transformToComponentProps(pivotTableProps),pivotTableEvents=["refreshData"];var zhCn={exports:{}};(function(c,u){(function(f,d){c.exports=d(dayjs)})(commonjsGlobal,function(f){function d(p){return p&&typeof p=="object"&&"default"in p?p:{default:p}}var h=d(f),v={name:"zh-cn",weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),ordinal:function(p,m){return m==="W"?p+"周":p+"日"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},relativeTime:{future:"%s内",past:"%s前",s:"几秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},meridiem:function(p,m){var g=100*p+m;return g<600?"凌晨":g<900?"早上":g<1100?"上午":g<1300?"中午":g<1800?"下午":"晚上"}};return h.default.locale(v,null,!0),v})})(zhCn);const LastDetail_vue_vue_type_style_index_0_scoped_36b76737_lang="",LastDetail_vue_vue_type_style_index_1_lang="";dayjs.locale("zh-cn");const _sfc_main$v=vue.defineComponent({name:"LastDetail",components:{ATable:antDesignVue.Table,BorderOutlined:BorderOutlined$1,SwitcherOutlined:SwitcherOutlined$1,CloseOutlined:CloseOutlined$1},props:{theme:{type:String,default:"light"},theDateInfo:{type:Object,default:()=>({})},scaleValue:{type:Object,default:()=>({})}},setup(c,{emit:u,expose:f}){const d=`dtmodal_${nanoid(6)}`,h=vue.ref(!1),v=vue.ref(!1),p=vue.ref(!1),m=vue.ref([]),g=vue.ref([]),y=vue.ref({current:1,pageSize:10,total:0,showSizeChanger:!1,showQuickJumper:!1,showLessItems:!0,showTotal:Gn=>`共 ${Gn} 条数据`}),b=vue.ref(""),Pn=vue.ref(""),x=vue.inject("isMobile",!1),vn=vue.computed(()=>INDICATOR_URL),J=()=>document.querySelector("#modalContainer")||document.body,j=Gn=>{const Zn=document.querySelector(`.${d} .ant-modal-header`);if(Zn)if(Gn)Zn.addEventListener("mousedown",Bn);else{const Xn=Zn.parentElement;Xn&&(Xn.style.left="",Xn.style.top=""),Zn.removeEventListener("mousedown",Bn)}},Fn=Gn=>{const Zn=document.querySelector(`.${d} .ant-modal-header`);Zn&&(Gn?Zn.addEventListener("dblclick",w):Zn.removeEventListener("dblclick",w))},Bn=Gn=>{dragModalAction(Gn,`.${d} .ant-modal-header`)},w=()=>{h.value=!h.value,vue.nextTick(()=>{h.value?j(!1):j(!0)})},gn=()=>{h.value=!1,Fn(!1),j(!1)};async function re(Gn){var nr,sr;p.value=!0,v.value=!0;const Zn=((nr=window==null?void 0:window.config)==null?void 0:nr.indicatorToken)||"",{record:Xn,dimOpts:er,column:Jn,formatParams:ir,cpntProps:dr={},drillDetailUrl:or}=Gn,{indicatorList:Hn=[]}=ir,Kn=Hn.find(Qn=>Qn.label===Jn.dataIndex),zn={};for(const Qn in Xn){const ar=er.find(cr=>cr.name===Qn);ar&&(zn[ar.typeGuid]=Xn[Qn])}const{startTime:qn,endTime:tr,rangeFormat:Un}=c.theDateInfo;if(qn&&tr&&(zn.startTime=dayjs(qn).format(Un),zn.endTime=dayjs(tr).format(Un)),or)h.value=!0,b.value=or,Pn.value=encodeURIComponent(JSON.stringify({indexCode:(Kn==null?void 0:Kn.hrpIndexCode)||"",indexName:Kn.label,theFlag:dr.theFlag,param:zn,conditions:drillConditions})),p.value=!1;else{const Qn=await request.post(`${vue.unref(vn)}/diagram/obtainDataSetData`,{pageId:getPageId(),indexCode:(Kn==null?void 0:Kn.hrpIndexCode)||"",indexName:Kn.label,theFlag:dr.theFlag,param:zn},{headers:{Authentication:Zn,operateContext:CONTEXT}}),{columns:ar=[],data:cr=[]}=((sr=Qn==null?void 0:Qn.data)==null?void 0:sr.data)||{};m.value=ar.filter(Yn=>Yn).map(Yn=>({title:Yn,dataIndex:Yn,width:"120px"})),g.value=cr.map(Yn=>({...Yn,uid:nanoid(6)})),p.value=!1}vue.nextTick(()=>{Fn(!0),j(!0)})}const Rn=Gn=>{vue.unref(y).current=Gn.current},Vn=vue.computed(()=>{let Gn=`last-detail-modal ${d}`;return(vue.unref(x)||h.value)&&(Gn+=" full"),c.theme==="darkBlue"&&(Gn+=" darkBlue"),vue.unref(b)||(Gn+=" table"),Gn}),Wn=vue.computed(()=>vue.unref(x)?{padding:"10px 0"}:{maxHeight:vue.unref(b)||h.value?"":"50vh",height:vue.unref(b)?"50vh":"",overflow:vue.unref(b)?"hidden":"auto"});return f({showModal:re}),{visible:v,loading:p,pagination:y,columns:m,dataSource:g,wrapClassName:Vn,detailBodyStyle:Wn,isMobile:x,urlJsonStr:Pn,drillDetailUrl:b,isIndFullScreen:h,handleTableChange:Rn,getContainer:J,onDetailCancel:gn,toggleFullScreen:w}}}),_hoisted_1$m=["src"],_hoisted_2$c={key:0,class:"spin-container"};function _sfc_render$A(c,u,f,d,h,v){const p=vue.resolveComponent("close-outlined"),m=vue.resolveComponent("switcher-outlined"),g=vue.resolveComponent("border-outlined"),y=vue.resolveComponent("a-spin"),b=vue.resolveComponent("a-table"),Pn=vue.resolveComponent("a-modal");return vue.openBlock(),vue.createBlock(Pn,{wrapClassName:c.wrapClassName,visible:c.visible,"onUpdate:visible":u[1]||(u[1]=x=>c.visible=x),width:"40%",title:"指标明细",destroyOnClose:!0,footer:null,bodyStyle:c.detailBodyStyle,getContainer:c.getContainer,onCancel:c.onDetailCancel},{closeIcon:vue.withCtx(()=>[vue.createVNode(p,{class:vue.normalizeClass(["modal-icon",c.theme])},null,8,["class"])]),default:vue.withCtx(()=>[vue.createElementVNode("div",{class:"zoom-btn",onClick:u[0]||(u[0]=(...x)=>c.toggleFullScreen&&c.toggleFullScreen(...x))},[c.isIndFullScreen?(vue.openBlock(),vue.createBlock(m,{key:0,class:vue.normalizeClass(["modal-icon",c.theme])},null,8,["class"])):(vue.openBlock(),vue.createBlock(g,{key:1,class:vue.normalizeClass(["modal-icon",c.theme])},null,8,["class"]))]),c.drillDetailUrl&&c.urlJsonStr?(vue.openBlock(),vue.createElementBlock("iframe",{key:0,src:`${c.drillDetailUrl}${c.drillDetailUrl.includes("?")?"&":"?"}params=${c.urlJsonStr}`,frameborder:"0",width:"100%",height:"100%"},`\r
103
- `,8,_hoisted_1$m)):c.drillDetailUrl?vue.createCommentVNode("",!0):(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:1},[c.loading?(vue.openBlock(),vue.createElementBlock("div",_hoisted_2$c,[vue.createVNode(y,{size:"large"})])):vue.createCommentVNode("",!0),c.loading?vue.createCommentVNode("",!0):(vue.openBlock(),vue.createBlock(b,{key:1,"row-key":x=>x.uid,columns:c.columns,"data-source":c.dataSource,pagination:c.pagination,scroll:{x:"max-content",y:c.isMobile?"70vh":""},onChange:c.handleTableChange},null,8,["row-key","columns","data-source","pagination","scroll","onChange"]))],64))]),_:1},8,["wrapClassName","visible","bodyStyle","getContainer","onCancel"])}const LastDetail=_export_sfc$1(_sfc_main$v,[["render",_sfc_render$A],["__scopeId","data-v-36b76737"]]),_sfc_main$u=vue.defineComponent({name:"DrillModal",components:{ATable:antDesignVue.Table,BorderOutlined:BorderOutlined$1,SwitcherOutlined:SwitcherOutlined$1,CloseOutlined:CloseOutlined$1,LastDetail},props:{theme:{type:String,default:"light"},drillingMode:{type:String,default:"default"},pageMode:{type:String,default:"normal"},scaleValue:{type:Object,default:()=>({})},pivotTableFontSize:{type:Number,default:16},width:{type:String,default:""},drillDetailUrl:{type:String,default:""}},setup(c,{expose:u,emit:f}){const m={IN:"属于",NOT_IN:"不属于",LIKE:"包含",NOT_LIKE:"不包含","LIKE%":"开头是","%LIKE":"结尾是",EQUAL:"等于",LESS:"小于",LESS_EQUAL:"小于等于",GREATER:"大于",GREATER_EQUAL:"大于等于",NOT_EQUAL:"不等于"},g={borderColor:"#666E8D",headerBgColor:"#06347C",headerColor:"#DEE5EF",bodyBgColor:"#112861",bodyColor:"#B2CCE7",indicatorsHeaderBgColor:"#184273",indicatorsHeaderColor:"#FFFFFF",indicatorsBodyBgColor:"#184273",indicatorsBodyColor:"#FFFFFF",aggregateBgColor:"#0F4F9B",aggregateColor:"#FFFCFC",sortNotActiveColor:"#B0B0B0",sortActiveColor:"#00CCFF",dropDownMenuBgColor:"#08154F",dropDownMenuColor:"#B2C3DD",dropDownMenuHightLightColor:"#2E68CF"},y=vue.ref(!1),b=vue.ref(),Pn=vue.ref(),x=vue.ref(),vn=vue.ref(!1),J=vue.ref({}),j=vue.ref([]),Fn=vue.ref([]),Bn=vue.ref([]),w=vue.ref(!1),gn=vue.ref({dateFormat:"YYYY-MM-DD"}),re=vue.reactive({keyName:"",visible:!1,dataSource:[],columns:[],title:"",pagination:{current:1,pageSize:10,total:0,showSizeChanger:!1,showQuickJumper:!1,showLessItems:!0,showTotal:ur=>`共 ${ur} 条数据`}}),Rn=vue.ref({}),Vn=vue.inject("isMobile",!1),Wn=vue.inject("usedComponentList",[]),Gn=vue.inject("componentList",[]),{getAllGlobalModel:Zn}=vue.inject(GLOBAL_MODEL,{getAllGlobalModel:()=>{}}),Xn=vue.computed(()=>INDICATOR_URL);vue.watch(()=>re.visible,ur=>{ur?document.documentElement.style.overflow="hidden":document.documentElement.style.overflow="hidden auto"});const er=vue.computed(()=>({width:vue.unref(J).width,height:vue.unref(J).height})),Jn=vue.computed(()=>vue.unref(Vn)?{padding:"10px 0"}:{}),ir=vue.computed(()=>{let ur="datav-drill-modal";return(vn.value||vue.unref(Vn))&&(ur+=" full"),c.theme==="darkBlue"&&(ur+=" darkBlue"),ur}),dr=(ur,gr)=>{const{leftAxisList:fr=[],rightAxisList:vr=[],indicators:xr=[],classificationList:Cr=[],rowHeaderList:yr=[],dimensionList:pr=[],seriesList:br=[],queryColumns:wr=[],indexLibColumns:kr=[]}=gr.graphicConfig,Ir=fr.concat(vr).concat(xr).concat(Cr).concat(yr).concat(pr).concat(br).concat(wr).concat(kr).filter(Rr=>Rr.conditions),Mr=Hn(Ir,"conditions",!0),qr=Hn(ur.sqlConditions,"sqlConditions",!1);Fn.value=Mr.concat(qr).filter(Rr=>Rr.label)||[]},or=()=>document.querySelector("#modalContainer")||document.body;function Hn(ur,gr,fr){const vr=[];for(const xr of ur)xr[gr]?vr.push(...Hn(xr[gr],gr,fr)):xr.filter?vr.push({...xr.filter,label:xr.label}):(!fr||xr.dataType!=="component"&&!(xr.fieldValue.startsWith("${")&&xr.fieldValue.endsWith("}")))&&vr.push(xr);return vr}const Kn=async({cpntProps:ur,pageId:gr,formatParams:fr,classifications:vr,indicatorToken:xr})=>{var Cr,yr,pr;return await request({url:`${vue.unref(Xn)}/diagram/obtainDrillAbleDimensionOptions`,method:"post",headers:{Authentication:xr,operateContext:CONTEXT},data:{source:((Cr=ur==null?void 0:ur.graphicConfig)==null?void 0:Cr.source)||"INDICATOR_LIB",pageId:gr,indicatorList:(fr==null?void 0:fr.indicatorList)||[],classifications:vr,dataSourceId:((yr=ur==null?void 0:ur.graphicConfig)==null?void 0:yr.dataSourceId)||""},signal:((pr=window.controller)==null?void 0:pr.signal)||""})},zn=ur=>{let gr="",fr="";const{componentConfig:vr}=ur;for(const Cr in vr)if(vr[Cr].key==="currentValue"){fr=Cr;break}const xr=vue.unref(Gn).find(Cr=>Cr.id===fr);return xr!=null&&xr.unitText&&(gr=xr.unitText),gr};function qn(ur){const gr=[];for(const fr of ur)fr.sqlConditions?gr.push(...qn(fr.sqlConditions)):fr.fieldName==="the_date"&&gr.push(fr);return gr}const tr=ur=>{var Cr;const{sqlConditions:gr=[],queryColumns:fr=[]}=ur||{},vr=qn(gr),xr=fr.find(yr=>yr.typeGuid==="the_date");if(xr&&(gn.value={dateFormat:xr.dateFormat||"YYYY-MM-DD"}),vr!=null&&vr.length)for(const yr of vr)["startTime","endTime"].includes(yr.prop)&&(vue.unref(gn)[yr.prop]=yr.fieldValue||"",(Cr=vue.unref(gn))!=null&&Cr.rangeFormat||(vue.unref(gn).rangeFormat=yr.dateFormat||"YYYY-MM-DD"))},Un=async ur=>{var Er,Ir,Mr,qr,Rr;if(c.drillingMode==="default")return;let gr=lodashEs.cloneDeep(ur).props;if(gr.parentId){const Fr=vue.unref(Wn).find(jr=>jr.id===gr.parentId);if((Fr==null?void 0:Fr.dataType)==="indicator")gr=lodashEs.cloneDeep(Fr);else return}re.keyName=gr==null?void 0:gr.keyName;const fr=((Er=window==null?void 0:window.config)==null?void 0:Er.indicatorToken)||"",vr=getPageId(),xr=(gr==null?void 0:gr.graphicConfig)||{},{leftAxisList:Cr=[],rightAxisList:yr=[],indicators:pr=[]}=xr,br=Cr.concat(yr).concat(pr);if(!(br!=null&&br.length))return;const wr=br.filter(Fr=>Fr.show).map(Fr=>Fr.label);wr!=null&&wr.length&&(re.title=`下钻:${wr.join("、")}`);const kr=Dn({...gr,globalModel:Zn()});if(c.drillingMode==="normalTable"||vue.unref(Vn)){re.pagination.current=1;let Fr=(kr==null?void 0:kr.classification)||(kr==null?void 0:kr.classifications)||[];Array.isArray(Fr)||(Fr=[Fr]);try{w.value=!0,re.visible=!0;const jr=await Kn({cpntProps:gr,pageId:vr,formatParams:kr,classifications:Fr,indicatorToken:fr}),Nr=((Ir=jr==null?void 0:jr.data)==null?void 0:Ir.data)||[];let Ur=[],Qr=[];const{usedDimensions:Wr=[],params:ri={}}=ur;if(Wr!=null&&Wr.length){for(const Zr of Nr)if(!Wr.find(ni=>ni.label===Zr.name)){Qr.push(Zr);break}kr.sqlConditions=lodashEs.cloneDeep(ri.sqlConditions);const{sqlConditions:Or=[]}=kr,{record:Gr={}}=ur;Wr.forEach((Zr,ni)=>{if(mn(Gr,Zr.label)){const ci=Nr.find(vi=>vi.name===Zr.label),ai={fieldName:Zr.label,fieldValue:Gr[Zr.label],globalCondition:!0,hrpIndexCode:null,hrpIndexCodeNum:null,label:Zr.label,rule:"EQUAL",typeGuid:Zr.typeGuid,valueType:(ci==null?void 0:ci.genericType)||"TEXT"};ni!==Wr.length-1&&(ai.join="&&"),ni===0&&(Or!=null&&Or.length)&&(Or[Or.length-1].join="&&"),Or.push(ai)}})}else Ur=Fr.map(Or=>({...Or,calcType:"COLUMN"})),Qr=Nr.slice(0,2).sort((Or,Gr)=>Or.typeGuid-Gr.typeGuid);dr(kr,lodashEs.cloneDeep(ur.props));for(const Or of Qr)Ur.push({calcType:"COLUMN",columnName:Or.name,label:Or.name,show:!0,typeGuid:Or.typeGuid});kr.queryColumns=Ur,kr.layer="1",kr.plugin="1",delete kr.classification,delete kr.classifications;const{url:ei,...Tr}=kr||{};tr(kr);const Br=await request({url:`${vue.unref(Xn)}${ei}`,method:"post",headers:{Authentication:fr,operateContext:CONTEXT},data:{...Tr,pageId:vr}}),{columns:Lr=[],rows:Hr=[]}=((Mr=Br==null?void 0:Br.data)==null?void 0:Mr.data)||{};if(yn(gr.type,"indexPanel")){const Or=xr.indicators.find(Zr=>Zr.show),Gr=zn(gr);Gr&&Or&&(Rn.value={[Or.label]:Gr})}re.columns=Lr.filter(Or=>!!Or).map(Or=>{let Gr=Or;const Zr=Nr.find(ni=>ni.name===Or);return Zr&&(Gr=Zr.title||Zr.label),{title:Gr,dataIndex:Or,width:"120px",customCell:(ni,ci,ai)=>({[vue.unref(Vn)?"onClick":"onDblclick"]:()=>{Nr.find(ui=>ai.dataIndex===ui.name)?(!(Wr!=null&&Wr.length)||Nr.length-1>Wr.length)&&(y.value=!0,vue.nextTick(()=>{vue.unref(b).showModal({...ur,record:ni,usedDimensions:[...Wr,...Ur],params:kr})})):vue.unref(Pn).showModal({record:ni,dimOpts:Nr,column:ai,formatParams:kr,cpntProps:gr,drillDetailUrl:c.drillDetailUrl,drillConditions:vue.unref(hr)})}})}}),re.dataSource=(Array.isArray(Hr)?Hr:[Hr]).map(Or=>({...Or,uuid:nanoid(6)})),re.pagination.total=(Hr==null?void 0:Hr.length)||0,w.value=!1}catch(jr){console.error(jr)}}else if(c.drillingMode==="pivotTable"){const Fr=await Kn({cpntProps:gr,pageId:vr,formatParams:kr,classifications:[],indicatorToken:fr});Bn.value=((qr=Fr==null?void 0:Fr.data)==null?void 0:qr.data)||[];const jr=nanoid(6);xr.queryColumnList||(xr.queryColumnList=[]),xr!=null&&xr.classificationList&&(xr.queryColumnList=xr.classificationList,delete xr.classificationList),xr!=null&&xr.seriesList&&(xr.queryColumnList=xr.queryColumnList.concat(xr.seriesList),delete xr.seriesList),xr.indicators=lodashEs.cloneDeep(br||[]),delete xr.leftAxisList,delete xr.rightAxisList;const Nr={};if(yn(gr.type,"indexPanel")){const Qr=xr.indicators.find(ei=>ei.show),Wr=vue.unref(Bn).slice(0,2).sort((ei,Tr)=>ei.typeGuid-Tr.typeGuid).map(ei=>({...ei,show:!0,edit:!1,dataTo:"0",width:ei.name==="the_date"?15:0,dataSetParams:{}}));Wr!=null&&Wr.length&&(xr.queryColumnList=Wr);const ri=zn(gr);if(ri&&Qr){const{label:ei}=Qr;Nr.defaultConfig={indexFormatConfig:{[ei]:{fieldName:ei,indicatorKey:ei,position:"right",unit:ri}}}}}gr!=null&&gr.theFlag&&(Nr.theFlag=gr.theFlag),(Rr=xr.queryColumnList)!=null&&Rr.length||(xr.queryColumnList=[{id:"3f5bda70a08a442085857adb7fc547de",indexCode:null,indexCodeNum:null,title:"日期(内置)",name:"the_date",label:"日期(内置)",typeGuid:"the_date",genericType:"DATE",hrpIndexComplexid:"the_date",scope:"BUILT_IN_DIM",fromTable:"hrp_index_complex",parentId:"3f5bda70a08a442085857adb7fc547de",show:!0,edit:!1,dataTo:"0",dataSetParams:{}}]);const Ur={...lodashEs.cloneDeep(pivotTableProps),id:jr,keyName:`透视表_${jr}`,position:"relative",top:0,left:0,width:parseFloat(c.width)*.57+"px",height:window.screen.height*.6+"px",pageId:vr,indicatorToken:fr,context:CONTEXT,globalModel:Zn(),graphicConfig:xr,pageConfig:c,...Nr};c.theme==="darkBlue"&&(Ur.styleConfig=g),J.value=Ur,re.visible=!0,vue.nextTick(()=>{vue.unref(x).refreshData()})}vue.nextTick(()=>{sr(!0),Qn(!0)})},nr=ur=>{re.pagination.current=ur.current},sr=ur=>{const gr=document.querySelector(".datav-drill-modal .ant-modal-header");gr&&(ur?gr.addEventListener("dblclick",cr):gr.removeEventListener("dblclick",cr))},Qn=ur=>{const gr=document.querySelector(".datav-drill-modal .ant-modal-header");if(gr)if(ur)gr.addEventListener("mousedown",ar);else{const fr=gr.parentElement;fr&&(fr.style.left="",fr.style.top=""),gr.removeEventListener("mousedown",ar)}};function ar(ur){dragModalAction(ur,".datav-drill-modal .ant-modal-header")}const cr=()=>{vn.value=!vn.value,vue.nextTick(()=>{vn.value?(vue.unref(J).width=parseFloat(c.width)*.97+"px",vue.unref(J).height=window.screen.height*.9+"px",Qn(!1)):(vue.unref(J).width=parseFloat(c.width)*.57+"px",vue.unref(J).height=window.screen.height*.6+"px",Qn(!0))})},Yn=()=>{vn.value=!1,sr(!1),Qn(!1),f("close")},lr=({type:ur,data:gr})=>{if(ur==="11"&&gr){const{indicatorList:fr=[],queryColumns:vr=[]}=gr,Cr=fr.concat(vr).filter(br=>br.conditions||br.filter),yr=Hn(Cr,"conditions",!0),pr=Hn(gr.sqlConditions,"sqlConditions",!1);Fn.value=yr.concat(pr).filter(br=>br.label)||[]}};vue.watch(Fn,(ur=[])=>{j.value=ur.map(gr=>{let fr=gr.fieldValue;if(fr&&typeof fr=="string"){const vr=fr.split(",");(vr==null?void 0:vr.length)>3&&(fr=vr.slice(0,3).join(",")+"等")}else fr||(fr='""');if(c.drillingMode==="normalTable")return`${gr.label} ${m[gr.rule]} ${fr}`;{const vr=vue.unref(Bn).find(xr=>xr.label===gr.label);return`${(vr==null?void 0:vr.title)||gr.label} ${m[gr.rule]} ${fr}`}})||[]},{deep:!0});const hr=vue.computed(()=>vue.unref(Fn).map(ur=>({label:ur.title||ur.label,typeGuid:ur.typeGuid,rule:ur.rule,value:ur.fieldValue}))),mr=()=>{y.value=!1};return u({showModal:Un}),{indDetailInfo:re,pivotTableConfig:J,pivotTableStyle:er,detailBodyStyle:Jn,wrapClassName:ir,isIndFullScreen:vn,isMobile:Vn,conditionInfo:j,indicatorUrl:Xn,allDimensions:Bn,detailLoading:w,pivotTableRef:x,lastDetailRef:Pn,subDrillModalRef:b,theDateInfo:gn,isShowSubDrillModal:y,normalTableUnits:Rn,drillConditions:hr,getContainer:or,toggleFullScreen:cr,onDetailCancel:Yn,onPivotTableChange:lr,handleTableChange:nr,onCloseModal:mr}}}),DrillModal_vue_vue_type_style_index_0_scoped_c3da6b05_lang="",DrillModal_vue_vue_type_style_index_1_lang="",_hoisted_1$l=["title"],_hoisted_2$b={key:0,class:"spin-container"},_hoisted_3$5=["title"],_hoisted_4$4=["title"];function _sfc_render$z(c,u,f,d,h,v){const p=vue.resolveComponent("close-outlined"),m=vue.resolveComponent("switcher-outlined"),g=vue.resolveComponent("border-outlined"),y=vue.resolveComponent("a-spin"),b=vue.resolveComponent("a-table"),Pn=vue.resolveComponent("pivot-table"),x=vue.resolveComponent("a-modal"),vn=vue.resolveComponent("last-detail"),J=vue.resolveComponent("drill-modal",!0);return vue.openBlock(),vue.createElementBlock(vue.Fragment,null,[vue.createVNode(x,{visible:c.indDetailInfo.visible,"onUpdate:visible":u[1]||(u[1]=j=>c.indDetailInfo.visible=j),width:"60%",getContainer:c.getContainer,footer:null,destroyOnClose:!0,"wrap-class-name":c.wrapClassName,bodyStyle:c.detailBodyStyle,onCancel:c.onDetailCancel},{title:vue.withCtx(()=>[vue.createElementVNode("div",{class:"detail-modal-title",title:c.conditionInfo.join("、")},vue.toDisplayString(c.indDetailInfo.title)+" "+vue.toDisplayString(c.conditionInfo.join("、")),9,_hoisted_1$l)]),closeIcon:vue.withCtx(()=>[vue.createVNode(p,{class:vue.normalizeClass(["modal-icon",c.theme])},null,8,["class"])]),default:vue.withCtx(()=>[c.isMobile?vue.createCommentVNode("",!0):(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"zoom-btn",onClick:u[0]||(u[0]=(...j)=>c.toggleFullScreen&&c.toggleFullScreen(...j))},[c.isIndFullScreen?(vue.openBlock(),vue.createBlock(m,{key:0,class:vue.normalizeClass(["modal-icon",c.theme])},null,8,["class"])):(vue.openBlock(),vue.createBlock(g,{key:1,class:vue.normalizeClass(["modal-icon",c.theme])},null,8,["class"]))])),c.drillingMode==="normalTable"||c.isMobile?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:1},[c.detailLoading?(vue.openBlock(),vue.createElementBlock("div",_hoisted_2$b,[vue.createVNode(y,{size:"large"})])):(vue.openBlock(),vue.createBlock(b,{key:1,scroll:{x:"max-content",y:c.isIndFullScreen?"100vh":"70vh"},"row-key":j=>j.uuid,columns:c.indDetailInfo.columns,"data-source":c.indDetailInfo.dataSource,pagination:c.indDetailInfo.pagination,onChange:c.handleTableChange},{headerCell:vue.withCtx(({title:j})=>[vue.createElementVNode("div",{class:"detail-table-header-cell",title:j},vue.toDisplayString(j),9,_hoisted_3$5)]),bodyCell:vue.withCtx(({text:j,column:Fn})=>[vue.createElementVNode("div",{title:j},vue.toDisplayString(j)+vue.toDisplayString(c.normalTableUnits[Fn.title]),9,_hoisted_4$4)]),_:1},8,["scroll","row-key","columns","data-source","pagination","onChange"]))],64)):c.drillingMode==="pivotTable"?(vue.openBlock(),vue.createElementBlock("div",{key:2,style:vue.normalizeStyle({position:"relative",...c.pivotTableStyle})},[vue.createVNode(Pn,vue.mergeProps({ref:"pivotTableRef"},c.pivotTableConfig,{pageMode:c.pageMode,theme:c.theme,fullMode:!1,allowDrill:!0,showFullScreen:!1,indicatorUrl:c.indicatorUrl,relateKeyName:c.indDetailInfo.keyName,allDimensions:c.allDimensions,scaleValue:c.scaleValue,defaultFontSize:c.pivotTableFontSize,drillDetailUrl:c.drillDetailUrl,drillConditions:c.drillConditions,isMobile:c.isMobile,isNeedEmptyRow:!1,enlargeContainer:"#norPageConfig",onTableChange:c.onPivotTableChange}),null,16,["pageMode","theme","indicatorUrl","relateKeyName","allDimensions","scaleValue","defaultFontSize","drillDetailUrl","drillConditions","isMobile","onTableChange"])],4)):vue.createCommentVNode("",!0)]),_:1},8,["visible","getContainer","wrap-class-name","bodyStyle","onCancel"]),vue.createVNode(vn,{ref:"lastDetailRef",theme:c.theme,theDateInfo:c.theDateInfo,scaleValue:c.scaleValue},null,8,["theme","theDateInfo","scaleValue"]),c.isShowSubDrillModal?(vue.openBlock(),vue.createBlock(J,{key:0,ref:"subDrillModalRef",width:c.width,theme:c.theme,drillingMode:c.drillingMode,pageMode:c.pageMode,scaleValue:c.scaleValue,pivotTableFontSize:c.pivotTableFontSize,drillDetailUrl:c.drillDetailUrl,onClose:c.onCloseModal},null,8,["width","theme","drillingMode","pageMode","scaleValue","pivotTableFontSize","drillDetailUrl","onClose"])):vue.createCommentVNode("",!0)],64)}const DrillModal=_export_sfc$1(_sfc_main$u,[["render",_sfc_render$z],["__scopeId","data-v-c3da6b05"]]),_sfc_main$t=vue.defineComponent({name:"EcanProviderConfig",inheritAttrs:!1,components:{IndicatorDetailModal,TrendModal,DrillModal},props:{...providerConfigComponentProps,pageId:{type:String,default:""},customId:{type:String,default:"ProviderConfig"},customStyle:{type:Object,default:()=>({})},fixedHeight:{type:String,default:"0px"}},setup(c,{expose:u,emit:f}){c.pageId||useHrefParamsToGlobalVariables();const d=vue.ref(),h=vue.ref(),v=vue.ref(),p=vue.computed(()=>INDICATOR_URL),m=vue.computed(()=>hn(c.contextRequestUrl)),g=vue.computed(()=>c.pageMode),y=vue.computed(()=>c.theme),b=vue.computed(()=>c.width),Pn=vue.computed(()=>c.height),x=vue.computed(()=>c.pageFontFamily),vn=vue.computed(()=>c.textColor),J=vue.computed(()=>c.fixedHeight?parseFloat(c.fixedHeight):0),j=vue.computed(()=>c.isCompatible),Fn=vue.computed(()=>c.variableList),Bn=vue.computed(()=>!!navigator.userAgent.match(/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i)),w=vue.computed(()=>parseFloat(c.pivotTableFontSize)),gn=vue.ref(),re=vue.ref({}),Rn=()=>{gn.value.setAttribute("datav-theme",c.theme)},Vn=vue.ref({currentYmd:dayjs().format("YYYY-MM-DD"),currentYear:dayjs().format("YYYY"),currentMonth:dayjs().format("MM"),currentDay:dayjs().format("DD")}),Wn=vue.computed(()=>{const Tr={};if(vue.unref(Fn))for(const Lr of vue.unref(Fn))Tr[Lr.label]=Lr.value;return{$page:{...vue.unref(Vn),...Tr}}});vue.provide(GLOBAL_VARIABLE,{globalVariable:Wn});const Gn=vue.inject("usedComponentList",[]),Zn=vue.inject("componentList",[]);vue.watch(Wn,()=>{f("setGlobalVar",vue.unref(Vn))},{deep:!0,immediate:!0});const Xn=vue.computed(()=>{const Tr=[];for(const Br of vue.unref(Gn))Br.type==="ecanModal"?Tr.push(...Br.componentList):Tr.push(Br);return Tr});vue.watch(()=>c.theme,()=>{Rn()}),vue.onMounted(()=>{Rn()});const er=vue.computed(()=>{const Tr=[],Br=vue.unref(Zn).filter(Lr=>Lr.type==="ecanModal");for(const Lr of Br)Lr!=null&&Lr.requestList&&Tr.push(...Lr.requestList);return[...Tr,...c.requestList]}),Jn=Tr=>Object.prototype.toString.call(Tr)==="[object Object]",ir=Tr=>{console.log("field",Tr),console.log("globalVariable",vue.unref(Wn));debugger;const Br=Tr.split(".");let Lr=vue.unref(Wn);for(const Hr of Br)if(Lr&&Jn(Lr))Lr=Lr[Hr];else{Lr="";break}return Lr},dr=vue.ref("");vue.provide(GLOBAL_CONFIG,{contextRequestUrl:m,pageMode:g,theme:y,touchEventId:dr,width:b,height:Pn,fontFamily:x,textColor:vn,requestList:er,isCompatible:j,fixedHeight:J,getGlobalVar:ir});const or=vue.ref({height:"100%",overflow:c.pageMode==="design"?"":"hidden"});vue.provide("setPageHeight",Tr=>{let Br=0;Tr==="auto"?(Br=Tr,re.value={widthScale:1,heightScale:1}):(Br=Tr.heightScale,re.value=Tr),(!j.value||!Bn.value)&&(Br=parseFloat(Pn.value)*Br+"px"),or.value.height=Br}),vue.provide("isMobile",Bn.value),vue.provide("getContainerMap",()=>c.containerMap),vue.provide("getCombinationMap",()=>c.combinationMap),vue.provide("templateOperate",{pageId:c.pageId,templateEmit:f,setTemplateData:Tr=>{var Br;if(Tr!=null&&Tr.pageId){const{componentId:Lr,...Hr}=Tr;(Br=window.config)!=null&&Br.urlParams||(window.config.urlParams={}),window.config.urlParams[Tr.pageId]=Hr,f("templateChange",Tr)}}});const Hn=vue.ref(),Kn=new Map,zn=()=>Kn,qn=Tr=>{let Br=Kn.get(Tr);if(!Br){const Lr=vue.unref(Zn).find(Hr=>Hr.keyName===Tr);Lr&&(Br=Kn.get(Lr.id))}return Br},tr=(Tr,Br)=>{var Lr;if(Hn.value=Br,Kn.set(Tr,Br),!c.pageId){const Hr=vue.unref(Gn).find(Or=>Or.id===Tr);Hr&&((Lr=window.config)!=null&&Lr.record||(window.config.record={}),window.config.record[Hr.keyName]=Br)}},Un=()=>{Hn.value=null},nr=Tr=>{let Br=Tr;if(Br){const Lr=Tr.match(/\{(.+?)\}/g);if(Lr!=null&&Lr.length){let Hr=Lr[0].slice(1,-1).trim();const Or=Hr.match(/\[(.+?)\]/g);let Gr="";Or!=null&&Or.length&&(Hr=Hr.replace(Or[0],""),Gr=Or[0].slice(1,-1).trim());const Zr=vue.unref(Xn).find(ni=>ni.keyName===Hr);if(Zr){const ni=qn(Zr.id),{type:ci,value:ai,RECORD:vi,recordData:ui}=ni||{};yn(ci,MODEL_KEY_LIST)?Br=vi[Gr]:yn(ci,"select")?ui[Gr]?Br=ui[Gr]:Br=vue.unref(ai):yn(ci,["rangePicker","date"])?dayjs.isDayjs(vue.unref(ni[Gr]))?Br=vue.unref(ni[Gr]).format(ni.format):Br=vue.unref(ni[Gr]):Br=ai}else{const ni=window.config.requestParams||{},ci=window.location.search.slice(1).split("&"),ai={};for(const ui of ci)if(ui!=null&&ui.includes("=")){const pi=ui.split("=");ai[pi[0]]=pi[1]||""}Br={...ai,...ni}[Hr]||""}}}return Br},sr=new Map,Qn={},ar=async(Tr,Br)=>{var Zr;const{requestName:Lr}=Tr,Hr=await useRequestData({...Tr,projectRequestUrl:vue.unref(m),getModel:qn})(),Or=((Zr=Hr==null?void 0:Hr.data)==null?void 0:Zr.data)||{};Tr.requestKeyName&&(Vn.value[Tr.requestKeyName]=Or);const Gr=sr.get(Lr);if(Gr!=null&&Gr.length&&(!Br||Qn[Lr])){for(const ni of Gr)ni(Or);Br||sr.delete(Lr)}},cr=(Tr,Br)=>{Qn[Tr]&&(clearInterval(Qn[Tr]),delete Qn[Tr],sr.delete(Tr));const Lr=vue.unref(Xn).filter(Or=>Or.dataType==="request"&&!Or.openCustomRequestData&&Or.customRequestName===Tr),Hr=sr.get(Tr)||[];if((Lr==null?void 0:Lr.length)>Hr.length&&(Hr.push(Br),sr.set(Tr,Hr),(Lr==null?void 0:Lr.length)===Hr.length)){const Or=vue.unref(er).find(Gr=>Gr.requestName===Tr);Or&&(Or!=null&&Or.isOpenRequestTimer&&(Or!=null&&Or.requestInterval)?(ar(Or,!0),Qn[Tr]=setInterval(()=>{ar(Or,!0)},Or.requestInterval*1e3)):ar(Or))}};vue.provide(GLOBAL_MODEL,{getGlobalModel:qn,setGlobalModel:tr,getAllGlobalModel:zn,clearInteractiveData:Un,getRecordValueByKeyName:nr,hanldePageRequestData:cr,interactiveData:Hn});const Yn=vue.ref({}),lr=(Tr,Br)=>{Yn.value[Tr]=Br};vue.provide(LOADED_DATA,{loadedData:Yn,setLoadedData:lr});const hr=[],mr=()=>{hr.pop()},ur=Tr=>{hr.push(Tr)},gr=new Map,fr=Tr=>gr.get(Tr),vr=(Tr,Br)=>{gr.set(Tr,Br)};vue.provide(MODAL_MODEL,{popUseModalIds:mr,pushUseModalIds:ur,getModalModel:fr,setModalModel:vr});const xr=mitt(),Cr=new Set,yr=(Tr,Br)=>{Cr.add(Tr),xr.on(Tr,Lr=>{const{eventName:Hr,params:Or}=Lr;return typeof Br[Hr]=="function"&&Br[Hr](Or)}),vue.onBeforeUnmount(()=>{pr(Tr)})},pr=Tr=>{Cr.delete(Tr),xr.off(Tr)},br=(Tr,Br,Lr={})=>{if(Tr==="PAGE"){const Hr=hr.length;let Or=[];if(Hr===0)Or=[...Cr];else{const Gr=hr[Hr-1];Or=[...fr(Gr)]}Or.forEach(Gr=>{xr.emit(Gr,{eventName:Br,params:Lr})})}else xr.emit(Tr,{eventName:Br,params:Lr})};vue.provide(EVENT_BUS,{onEvent:yr,offEvent:pr,emitEvent:br});const wr=vue.ref(0),kr=()=>{wr.value=vue.unref(wr)+1};vue.provide(GLOBAL_TOKEN,{requestToken:kr});const Er=new Map,Ir=new Map,Mr=({requestFn:Tr=()=>{},sortNum:Br=0,id:Lr=""})=>{if(Er.has(Br)){const Hr=Er.get(Br);Hr==null||Hr.push(Tr)}else Er.set(Br,[Tr]);Ir.set(Lr,Tr)},qr=Tr=>new Promise((Br,Lr)=>{const Hr=[];for(const Or of Tr)Hr.push(new Promise(async Gr=>{await Or(),Gr()}));Promise.all(Hr).then(Or=>{Br(Or)}).catch(Or=>{Lr(Or)})}),Rr=Tr=>new Promise(async(Br,Lr)=>{if(Tr){if(typeof Tr=="string"){const Hr=Ir.get(Tr);if(typeof Hr=="function"){const Or=request.interceptors.response.use(Gr=>(Br(Gr),Gr),Gr=>(Lr(Gr),Promise.reject(Gr)));Hr(),request.interceptors.response.eject(Or)}}}else{const Hr=Array.from(Er);Hr.sort((Gr,Zr)=>Zr[0]-Gr[0]);const Or=Hr.length;try{c.pageMode!=="design"&&vue.unref(wr)>0;for(let Gr=0;Gr<Or;Gr++){const Zr=Hr[Gr][1];await qr(Zr)}}catch(Gr){console.error(Gr)}finally{Er.clear(),Br(null)}}});vue.provide(REQUEST_MODEL,{setRequest:Mr,touchRequest:Rr});const Fr=()=>{xr.emit(REFRESH_PAGE)};vue.provide(REFRESH_PAGE,{emitRefreshPage:Fr});const jr=Tr=>{xr.on(REFRESH_PAGE,()=>Tr()),vue.onMounted(()=>{xr.off(REFRESH_PAGE)})},Nr=vue.ref({});vue.provide(All_COMPONENT_RES_DATA,{allComponentResData:Nr});const Ur=Tr=>{const{id:Br,data:Lr}=Tr;Lr.success&&(Nr.value[Br]=(Lr==null?void 0:Lr.data)||{})},Qr=(Tr,Br)=>{switch(Tr){case"SHOW_INDICATOR_DETAIL_MODAL":vue.unref(d).showModal(Br);break;case"SAVE_COMPONENT_RES_DATA":Ur(Br);break}};vue.provide(COMMON_OPERATE,{operateAction:lodashEs.debounce((Tr,Br)=>{Qr(Tr,Br)},100)}),vue.watchEffect(()=>{var Tr;if((Tr=vue.unref(Gn))!=null&&Tr.length&&vue.unref(g)!=="design"){const{jumpType:Br,jumpTime:Lr,jumpPage:Hr,jumpLink:Or}=c;if(Lr!=null&&Lr.value){let Gr=0;switch(Lr==null?void 0:Lr.suffix){case"hours":Gr=Lr.value*60*60*1e3;break;case"minute":Gr=Lr.value*60*1e3;break;case"seconds":Gr=Lr.value*1e3;break}setTimeout(()=>{let Zr="";Br==="page"&&Hr?Zr=usePageUrl(vue.unref(g),Hr):Br==="link"&&Or&&(Zr=Or),Zr=hn(Zr),window.open(Zr,"_self")},Gr)}}});const Wr=Tr=>{var Br;vue.unref(h).showModal({data:Tr,indicatorUrl:vue.unref(p),indicatorToken:((Br=window==null?void 0:window.config)==null?void 0:Br.indicatorToken)||"",context:CONTEXT,pageId:getPageId()})},ri=Tr=>{vue.unref(v).showModal({data:Tr,pageConfig:c,unitText:ei(Tr)})},ei=Tr=>{let Br="",Lr="";const{componentConfig:Hr}=Tr;for(const Gr in Hr)if(Hr[Gr].key==="currentValue"){Lr=Gr;break}const Or=vue.unref(Zn).find(Gr=>Gr.id===Lr);return Or!=null&&Or.unitText&&(Br=Or.unitText),Br};return vue.provide("showIndDetail",Wr),vue.onBeforeUnmount(()=>{Er==null||Er.clear(),Ir==null||Ir.clear()}),u({touchRequest:Rr,getGlobalModel:qn,onRefreshPage:jr,emitEvent:br,getRecordValueByKeyName:nr,showIndDetail:Wr,showTrend:ri,props:c,systemVariable:Vn}),{providerConfig:gn,configStyle:or,indicatorUrl:p,theme:y,drillModalRef:d,indDetailModalRef:h,trendModalRef:v,scaleValue:re,defaultPivotTableFontSize:w,isMobile:Bn}}}),ProviderConfig_vue_vue_type_style_index_0_scoped_281c3456_lang="",ProviderConfig_vue_vue_type_style_index_1_lang="",_hoisted_1$k=["id"];function _sfc_render$y(c,u,f,d,h,v){const p=vue.resolveComponent("drill-modal"),m=vue.resolveComponent("indicator-detail-modal"),g=vue.resolveComponent("trend-modal");return vue.openBlock(),vue.createElementBlock(vue.Fragment,null,[vue.createElementVNode("div",{class:"provider-config-container",id:c.customId,ref:"providerConfig",style:vue.normalizeStyle({...c.configStyle,fontFamily:c.pageFontFamily,...c.customStyle})},[vue.renderSlot(c.$slots,"default",{},void 0,!0)],12,_hoisted_1$k),vue.createVNode(p,{ref:"drillModalRef",width:c.width,theme:c.theme,drillingMode:c.drillingMode,pageMode:c.pageMode,scaleValue:c.scaleValue,pivotTableFontSize:c.defaultPivotTableFontSize,drillDetailUrl:c.drillDetailUrl},null,8,["width","theme","drillingMode","pageMode","scaleValue","pivotTableFontSize","drillDetailUrl"]),vue.createVNode(m,{ref:"indDetailModalRef",theme:c.theme},null,8,["theme"]),vue.createVNode(g,{ref:"trendModalRef",theme:c.theme},null,8,["theme"])],64)}const ProviderConfig=_export_sfc$1(_sfc_main$t,[["render",_sfc_render$y],["__scopeId","data-v-281c3456"]]),EcanProviderConfig=withInstall$1(ProviderConfig),textProps={...props$1,name:"文本",keyName:"文本",type:"ecanText",width:"100px",height:"40px",text:"文字",lineHeight:"18px",color:"",variableColor:"",fontSize:"14px",fontFamily:"",fontWeight:400,textShadow:"",justifyContent:"center",alignItems:"center",variableFontSize:"14px",variableDefaultValue:"0",format:"",target:"self",href:"",linkPage:"",data:{},percentageSide:"left",increaseColor:"",declineColor:"",minusSignShow:!0,unitShow:!0,unitText:"",unitFontSize:"14px",unitFontWeight:400,unitColor:"#333",unitTop:"",unitLeft:"",graphicConfig:{},targetShow:!1,targetRule:"",targetValue:"",notExpectColor:"",gradientShow:!1,gradientColor:"",gradientOffset:1,gradientAngle:"180deg",openCustomRequestData:!0,customRequestName:"",customRequestField:"",showEllipsis:!1,showAnimation:!1,transParams:[],exceedConfig:"",targetTemplate:"",dataSetchecked:!1,titleContent:"",titleBackgroundColor:"#ffffff",titleFontColor:"#000000",isMarkDown:!1,isContentMarkDown:!1,parentId:""},textComponentProps=transformToComponentProps(textProps),textEvents=["refreshData","click","valueChange"],goUp="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAMAAADXqc3KAAAAV1BMVEUAAAD/WzT/WjP/WDD/WzT/WzP/WzT/WzT/WzT/WjT/WzT/WDT/YED/WzT/WzT/WjT/YED/WzT/WzT/WzT/XDT/WzT/WjX/WjP/XDT/XDT/WTL/Tif/WzReH8z5AAAAHHRSTlMA8RgS9W9YHbePZyME5sVjCP7bzcCxgndOQC4GFJJgKwAAAIJJREFUKM+Nkd0OgyAMRjvqcLA53fzXvv9zaokmxq8mnsue5ACFDjiy+XyjLZ7yyK35OxN5mSFZKa2QojEIKRhrZKM0QnsMQxirmJ0kBubTIZvAtUyiFAT4JFoUIYmIotZ5xjDPfyoCAV16nMPdFir8xZ16nM//tePtXw2ODOJY0V0WqQwM2rgKrU0AAAAASUVORK5CYII=",goDown="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAACXBIWXMAAAsTAAALEwEAmpwYAAAFHGlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNS42LWMxNDUgNzkuMTYzNDk5LCAyMDE4LzA4LzEzLTE2OjQwOjIyICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIgeG1sbnM6cGhvdG9zaG9wPSJodHRwOi8vbnMuYWRvYmUuY29tL3Bob3Rvc2hvcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RFdnQ9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZUV2ZW50IyIgeG1wOkNyZWF0b3JUb29sPSJBZG9iZSBQaG90b3Nob3AgQ0MgMjAxOSAoV2luZG93cykiIHhtcDpDcmVhdGVEYXRlPSIyMDIyLTA3LTIyVDA5OjM1OjE5KzA4OjAwIiB4bXA6TW9kaWZ5RGF0ZT0iMjAyMi0wNy0yMlQwOTozNTozNyswODowMCIgeG1wOk1ldGFkYXRhRGF0ZT0iMjAyMi0wNy0yMlQwOTozNTozNyswODowMCIgZGM6Zm9ybWF0PSJpbWFnZS9wbmciIHBob3Rvc2hvcDpDb2xvck1vZGU9IjMiIHBob3Rvc2hvcDpJQ0NQcm9maWxlPSJzUkdCIElFQzYxOTY2LTIuMSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDozNmRlNzg2MS1kNzhmLTQyNGYtYTNjOS01ZTk0MjkwY2RjZjEiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6MzZkZTc4NjEtZDc4Zi00MjRmLWEzYzktNWU5NDI5MGNkY2YxIiB4bXBNTTpPcmlnaW5hbERvY3VtZW50SUQ9InhtcC5kaWQ6MzZkZTc4NjEtZDc4Zi00MjRmLWEzYzktNWU5NDI5MGNkY2YxIj4gPHhtcE1NOkhpc3Rvcnk+IDxyZGY6U2VxPiA8cmRmOmxpIHN0RXZ0OmFjdGlvbj0iY3JlYXRlZCIgc3RFdnQ6aW5zdGFuY2VJRD0ieG1wLmlpZDozNmRlNzg2MS1kNzhmLTQyNGYtYTNjOS01ZTk0MjkwY2RjZjEiIHN0RXZ0OndoZW49IjIwMjItMDctMjJUMDk6MzU6MTkrMDg6MDAiIHN0RXZ0OnNvZnR3YXJlQWdlbnQ9IkFkb2JlIFBob3Rvc2hvcCBDQyAyMDE5IChXaW5kb3dzKSIvPiA8L3JkZjpTZXE+IDwveG1wTU06SGlzdG9yeT4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz6VDI+BAAABUUlEQVRIia3WPyhGURgG8B8pi0xisStKMioZLQaLiaQMBoxiVBImCwaLf6MssloUk8Gmb7GgJFKSUvIZ7qe+bvd89+A+03uf989z3nPPPe+tK5fLqtF3tSESzRjFAJ4vemams4IaYqulCq9gEo34QGco+LcCg9hHaxW3jpsiBIZxmMp5kXQTRH1k8S4cZCxoE6//FaiXbEtThm87JjkPI+jN4E9xW4TAQoA/isjNFehCT8B3VoTAUID/xHURAn0B/g5fRQh0B/j7mOJkf2gTaKvY7YG8FsxXPe/hIVbgCTs5C+vAasU+xlooMGuLTrCVI/CDR0zVCgi9gzmUIgQmBbYmT+AdY5LjGMKWpNuaqHWKLrEY8JUkXeYi75iu4DzFfUi6ey9C4AvjeKviliTdRSHmsrvBbMU+lzNg0oidaLvox7LIK+IHdem/iqIROzL/jG+NrT1BRsXKNQAAAABJRU5ErkJggg==";var esmEntry$1={exports:{}},defaults$5={exports:{}};function getDefaults$1(){return{baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}function changeDefaults$1(c){defaults$5.exports.defaults=c}defaults$5.exports={defaults:getDefaults$1(),getDefaults:getDefaults$1,changeDefaults:changeDefaults$1};const escapeTest=/[&<>"']/,escapeReplace=/[&<>"']/g,escapeTestNoEncode=/[<>"']|&(?!#?\w+;)/,escapeReplaceNoEncode=/[<>"']|&(?!#?\w+;)/g,escapeReplacements={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},getEscapeReplacement=c=>escapeReplacements[c];function escape$3(c,u){if(u){if(escapeTest.test(c))return c.replace(escapeReplace,getEscapeReplacement)}else if(escapeTestNoEncode.test(c))return c.replace(escapeReplaceNoEncode,getEscapeReplacement);return c}const unescapeTest=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function unescape$1(c){return c.replace(unescapeTest,(u,f)=>(f=f.toLowerCase(),f==="colon"?":":f.charAt(0)==="#"?f.charAt(1)==="x"?String.fromCharCode(parseInt(f.substring(2),16)):String.fromCharCode(+f.substring(1)):""))}const caret=/(^|[^\[])\^/g;function edit$1(c,u){c=c.source||c,u=u||"";const f={replace:(d,h)=>(h=h.source||h,h=h.replace(caret,"$1"),c=c.replace(d,h),f),getRegex:()=>new RegExp(c,u)};return f}const nonWordAndColonTest=/[^\w:]/g,originIndependentUrl=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function cleanUrl$1(c,u,f){if(c){let d;try{d=decodeURIComponent(unescape$1(f)).replace(nonWordAndColonTest,"").toLowerCase()}catch{return null}if(d.indexOf("javascript:")===0||d.indexOf("vbscript:")===0||d.indexOf("data:")===0)return null}u&&!originIndependentUrl.test(f)&&(f=resolveUrl(u,f));try{f=encodeURI(f).replace(/%25/g,"%")}catch{return null}return f}const baseUrls={},justDomain=/^[^:]+:\/*[^/]*$/,protocol=/^([^:]+:)[\s\S]*$/,domain=/^([^:]+:\/*[^/]*)[\s\S]*$/;function resolveUrl(c,u){baseUrls[" "+c]||(justDomain.test(c)?baseUrls[" "+c]=c+"/":baseUrls[" "+c]=rtrim$1(c,"/",!0)),c=baseUrls[" "+c];const f=c.indexOf(":")===-1;return u.substring(0,2)==="//"?f?u:c.replace(protocol,"$1")+u:u.charAt(0)==="/"?f?u:c.replace(domain,"$1")+u:c+u}const noopTest$1={exec:function(){}};function merge$2(c){let u=1,f,d;for(;u<arguments.length;u++){f=arguments[u];for(d in f)Object.prototype.hasOwnProperty.call(f,d)&&(c[d]=f[d])}return c}function splitCells$1(c,u){const f=c.replace(/\|/g,(v,p,m)=>{let g=!1,y=p;for(;--y>=0&&m[y]==="\\";)g=!g;return g?"|":" |"}),d=f.split(/ \|/);let h=0;if(d[0].trim()||d.shift(),d[d.length-1].trim()||d.pop(),d.length>u)d.splice(u);else for(;d.length<u;)d.push("");for(;h<d.length;h++)d[h]=d[h].trim().replace(/\\\|/g,"|");return d}function rtrim$1(c,u,f){const d=c.length;if(d===0)return"";let h=0;for(;h<d;){const v=c.charAt(d-h-1);if(v===u&&!f)h++;else if(v!==u&&f)h++;else break}return c.substr(0,d-h)}function findClosingBracket$1(c,u){if(c.indexOf(u[1])===-1)return-1;const f=c.length;let d=0,h=0;for(;h<f;h++)if(c[h]==="\\")h++;else if(c[h]===u[0])d++;else if(c[h]===u[1]&&(d--,d<0))return h;return-1}function checkSanitizeDeprecation$1(c){c&&c.sanitize&&!c.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}function repeatString$1(c,u){if(u<1)return"";let f="";for(;u>1;)u&1&&(f+=c),u>>=1,c+=c;return f+c}var helpers={escape:escape$3,unescape:unescape$1,edit:edit$1,cleanUrl:cleanUrl$1,resolveUrl,noopTest:noopTest$1,merge:merge$2,splitCells:splitCells$1,rtrim:rtrim$1,findClosingBracket:findClosingBracket$1,checkSanitizeDeprecation:checkSanitizeDeprecation$1,repeatString:repeatString$1};const{defaults:defaults$4}=defaults$5.exports,{rtrim,splitCells,escape:escape$2,findClosingBracket}=helpers;function outputLink(c,u,f,d){const h=u.href,v=u.title?escape$2(u.title):null,p=c[1].replace(/\\([\[\]])/g,"$1");if(c[0].charAt(0)!=="!"){d.state.inLink=!0;const m={type:"link",raw:f,href:h,title:v,text:p,tokens:d.inlineTokens(p,[])};return d.state.inLink=!1,m}else return{type:"image",raw:f,href:h,title:v,text:escape$2(p)}}function indentCodeCompensation(c,u){const f=c.match(/^(\s+)(?:```)/);if(f===null)return u;const d=f[1];return u.split(`
103
+ `,8,_hoisted_1$m)):c.drillDetailUrl?vue.createCommentVNode("",!0):(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:1},[c.loading?(vue.openBlock(),vue.createElementBlock("div",_hoisted_2$c,[vue.createVNode(y,{size:"large"})])):vue.createCommentVNode("",!0),c.loading?vue.createCommentVNode("",!0):(vue.openBlock(),vue.createBlock(b,{key:1,"row-key":x=>x.uid,columns:c.columns,"data-source":c.dataSource,pagination:c.pagination,scroll:{x:"max-content",y:c.isMobile?"70vh":""},onChange:c.handleTableChange},null,8,["row-key","columns","data-source","pagination","scroll","onChange"]))],64))]),_:1},8,["wrapClassName","visible","bodyStyle","getContainer","onCancel"])}const LastDetail=_export_sfc$1(_sfc_main$v,[["render",_sfc_render$A],["__scopeId","data-v-36b76737"]]),_sfc_main$u=vue.defineComponent({name:"DrillModal",components:{ATable:antDesignVue.Table,BorderOutlined:BorderOutlined$1,SwitcherOutlined:SwitcherOutlined$1,CloseOutlined:CloseOutlined$1,LastDetail},props:{theme:{type:String,default:"light"},drillingMode:{type:String,default:"default"},pageMode:{type:String,default:"normal"},scaleValue:{type:Object,default:()=>({})},pivotTableFontSize:{type:Number,default:16},width:{type:String,default:""},drillDetailUrl:{type:String,default:""}},setup(c,{expose:u,emit:f}){const m={IN:"属于",NOT_IN:"不属于",LIKE:"包含",NOT_LIKE:"不包含","LIKE%":"开头是","%LIKE":"结尾是",EQUAL:"等于",LESS:"小于",LESS_EQUAL:"小于等于",GREATER:"大于",GREATER_EQUAL:"大于等于",NOT_EQUAL:"不等于"},g={borderColor:"#666E8D",headerBgColor:"#06347C",headerColor:"#DEE5EF",bodyBgColor:"#112861",bodyColor:"#B2CCE7",indicatorsHeaderBgColor:"#184273",indicatorsHeaderColor:"#FFFFFF",indicatorsBodyBgColor:"#184273",indicatorsBodyColor:"#FFFFFF",aggregateBgColor:"#0F4F9B",aggregateColor:"#FFFCFC",sortNotActiveColor:"#B0B0B0",sortActiveColor:"#00CCFF",dropDownMenuBgColor:"#08154F",dropDownMenuColor:"#B2C3DD",dropDownMenuHightLightColor:"#2E68CF"},y=vue.ref(!1),b=vue.ref(),Pn=vue.ref(),x=vue.ref(),vn=vue.ref(!1),J=vue.ref({}),j=vue.ref([]),Fn=vue.ref([]),Bn=vue.ref([]),w=vue.ref(!1),gn=vue.ref({dateFormat:"YYYY-MM-DD"}),re=vue.reactive({keyName:"",visible:!1,dataSource:[],columns:[],title:"",pagination:{current:1,pageSize:10,total:0,showSizeChanger:!1,showQuickJumper:!1,showLessItems:!0,showTotal:ur=>`共 ${ur} 条数据`}}),Rn=vue.ref({}),Vn=vue.inject("isMobile",!1),Wn=vue.inject("usedComponentList",[]),Gn=vue.inject("componentList",[]),{getAllGlobalModel:Zn}=vue.inject(GLOBAL_MODEL,{getAllGlobalModel:()=>{}}),Xn=vue.computed(()=>INDICATOR_URL);vue.watch(()=>re.visible,ur=>{ur?document.documentElement.style.overflow="hidden":document.documentElement.style.overflow="hidden auto"});const er=vue.computed(()=>({width:vue.unref(J).width,height:vue.unref(J).height})),Jn=vue.computed(()=>vue.unref(Vn)?{padding:"10px 0"}:{}),ir=vue.computed(()=>{let ur="datav-drill-modal";return(vn.value||vue.unref(Vn))&&(ur+=" full"),c.theme==="darkBlue"&&(ur+=" darkBlue"),ur}),dr=(ur,gr)=>{const{leftAxisList:fr=[],rightAxisList:vr=[],indicators:xr=[],classificationList:Cr=[],rowHeaderList:yr=[],dimensionList:pr=[],seriesList:br=[],queryColumns:wr=[],indexLibColumns:kr=[]}=gr.graphicConfig,Ir=fr.concat(vr).concat(xr).concat(Cr).concat(yr).concat(pr).concat(br).concat(wr).concat(kr).filter(Rr=>Rr.conditions),Mr=Hn(Ir,"conditions",!0),qr=Hn(ur.sqlConditions,"sqlConditions",!1);Fn.value=Mr.concat(qr).filter(Rr=>Rr.label)||[]},or=()=>document.querySelector("#modalContainer")||document.body;function Hn(ur,gr,fr){const vr=[];for(const xr of ur)xr[gr]?vr.push(...Hn(xr[gr],gr,fr)):xr.filter?vr.push({...xr.filter,label:xr.label}):(!fr||xr.dataType!=="component"&&!(xr.fieldValue.startsWith("${")&&xr.fieldValue.endsWith("}")))&&vr.push(xr);return vr}const Kn=async({cpntProps:ur,pageId:gr,formatParams:fr,classifications:vr,indicatorToken:xr})=>{var Cr,yr,pr;return await request({url:`${vue.unref(Xn)}/diagram/obtainDrillAbleDimensionOptions`,method:"post",headers:{Authentication:xr,operateContext:CONTEXT},data:{source:((Cr=ur==null?void 0:ur.graphicConfig)==null?void 0:Cr.source)||"INDICATOR_LIB",pageId:gr,indicatorList:(fr==null?void 0:fr.indicatorList)||[],classifications:vr,dataSourceId:((yr=ur==null?void 0:ur.graphicConfig)==null?void 0:yr.dataSourceId)||""},signal:((pr=window.controller)==null?void 0:pr.signal)||""})},zn=ur=>{let gr="",fr="";const{componentConfig:vr}=ur;for(const Cr in vr)if(vr[Cr].key==="currentValue"){fr=Cr;break}const xr=vue.unref(Gn).find(Cr=>Cr.id===fr);return xr!=null&&xr.unitText&&(gr=xr.unitText),gr};function qn(ur){const gr=[];for(const fr of ur)fr.sqlConditions?gr.push(...qn(fr.sqlConditions)):fr.fieldName==="the_date"&&gr.push(fr);return gr}const tr=ur=>{var Cr;const{sqlConditions:gr=[],queryColumns:fr=[]}=ur||{},vr=qn(gr),xr=fr.find(yr=>yr.typeGuid==="the_date");if(xr&&(gn.value={dateFormat:xr.dateFormat||"YYYY-MM-DD"}),vr!=null&&vr.length)for(const yr of vr)["startTime","endTime"].includes(yr.prop)&&(vue.unref(gn)[yr.prop]=yr.fieldValue||"",(Cr=vue.unref(gn))!=null&&Cr.rangeFormat||(vue.unref(gn).rangeFormat=yr.dateFormat||"YYYY-MM-DD"))},Un=async ur=>{var Er,Ir,Mr,qr,Rr;if(c.drillingMode==="default")return;let gr=lodashEs.cloneDeep(ur).props;if(gr.parentId){const Fr=vue.unref(Wn).find(jr=>jr.id===gr.parentId);if((Fr==null?void 0:Fr.dataType)==="indicator")gr=lodashEs.cloneDeep(Fr);else return}re.keyName=gr==null?void 0:gr.keyName;const fr=((Er=window==null?void 0:window.config)==null?void 0:Er.indicatorToken)||"",vr=getPageId(),xr=(gr==null?void 0:gr.graphicConfig)||{},{leftAxisList:Cr=[],rightAxisList:yr=[],indicators:pr=[]}=xr,br=Cr.concat(yr).concat(pr);if(!(br!=null&&br.length))return;const wr=br.filter(Fr=>Fr.show).map(Fr=>Fr.label);wr!=null&&wr.length&&(re.title=`下钻:${wr.join("、")}`);const kr=Dn({...gr,globalModel:Zn()});if(c.drillingMode==="normalTable"||vue.unref(Vn)){re.pagination.current=1;let Fr=(kr==null?void 0:kr.classification)||(kr==null?void 0:kr.classifications)||[];Array.isArray(Fr)||(Fr=[Fr]);try{w.value=!0,re.visible=!0;const jr=await Kn({cpntProps:gr,pageId:vr,formatParams:kr,classifications:Fr,indicatorToken:fr}),Nr=((Ir=jr==null?void 0:jr.data)==null?void 0:Ir.data)||[];let Ur=[],Qr=[];const{usedDimensions:Wr=[],params:ri={}}=ur;if(Wr!=null&&Wr.length){for(const Zr of Nr)if(!Wr.find(ni=>ni.label===Zr.name)){Qr.push(Zr);break}kr.sqlConditions=lodashEs.cloneDeep(ri.sqlConditions);const{sqlConditions:Or=[]}=kr,{record:Gr={}}=ur;Wr.forEach((Zr,ni)=>{if(mn(Gr,Zr.label)){const ci=Nr.find(vi=>vi.name===Zr.label),ai={fieldName:Zr.label,fieldValue:Gr[Zr.label],globalCondition:!0,hrpIndexCode:null,hrpIndexCodeNum:null,label:Zr.label,rule:"EQUAL",typeGuid:Zr.typeGuid,valueType:(ci==null?void 0:ci.genericType)||"TEXT"};ni!==Wr.length-1&&(ai.join="&&"),ni===0&&(Or!=null&&Or.length)&&(Or[Or.length-1].join="&&"),Or.push(ai)}})}else Ur=Fr.map(Or=>({...Or,calcType:"COLUMN"})),Qr=Nr.slice(0,2).sort((Or,Gr)=>Or.typeGuid-Gr.typeGuid);dr(kr,lodashEs.cloneDeep(ur.props));for(const Or of Qr)Ur.push({calcType:"COLUMN",columnName:Or.name,label:Or.name,show:!0,typeGuid:Or.typeGuid});kr.queryColumns=Ur,kr.layer="1",kr.plugin="1",delete kr.classification,delete kr.classifications;const{url:ei,...Tr}=kr||{};tr(kr);const Br=await request({url:`${vue.unref(Xn)}${ei}`,method:"post",headers:{Authentication:fr,operateContext:CONTEXT},data:{...Tr,pageId:vr}}),{columns:Lr=[],rows:Hr=[]}=((Mr=Br==null?void 0:Br.data)==null?void 0:Mr.data)||{};if(yn(gr.type,"indexPanel")){const Or=xr.indicators.find(Zr=>Zr.show),Gr=zn(gr);Gr&&Or&&(Rn.value={[Or.label]:Gr})}re.columns=Lr.filter(Or=>!!Or).map(Or=>{let Gr=Or;const Zr=Nr.find(ni=>ni.name===Or);return Zr&&(Gr=Zr.title||Zr.label),{title:Gr,dataIndex:Or,width:"120px",customCell:(ni,ci,ai)=>({[vue.unref(Vn)?"onClick":"onDblclick"]:()=>{Nr.find(ui=>ai.dataIndex===ui.name)?(!(Wr!=null&&Wr.length)||Nr.length-1>Wr.length)&&(y.value=!0,vue.nextTick(()=>{vue.unref(b).showModal({...ur,record:ni,usedDimensions:[...Wr,...Ur],params:kr})})):vue.unref(Pn).showModal({record:ni,dimOpts:Nr,column:ai,formatParams:kr,cpntProps:gr,drillDetailUrl:c.drillDetailUrl,drillConditions:vue.unref(hr)})}})}}),re.dataSource=(Array.isArray(Hr)?Hr:[Hr]).map(Or=>({...Or,uuid:nanoid(6)})),re.pagination.total=(Hr==null?void 0:Hr.length)||0,w.value=!1}catch(jr){console.error(jr)}}else if(c.drillingMode==="pivotTable"){const Fr=await Kn({cpntProps:gr,pageId:vr,formatParams:kr,classifications:[],indicatorToken:fr});Bn.value=((qr=Fr==null?void 0:Fr.data)==null?void 0:qr.data)||[];const jr=nanoid(6);xr.queryColumnList||(xr.queryColumnList=[]),xr!=null&&xr.classificationList&&(xr.queryColumnList=xr.classificationList,delete xr.classificationList),xr!=null&&xr.seriesList&&(xr.queryColumnList=xr.queryColumnList.concat(xr.seriesList),delete xr.seriesList),xr.indicators=lodashEs.cloneDeep(br||[]),delete xr.leftAxisList,delete xr.rightAxisList;const Nr={};if(yn(gr.type,"indexPanel")){const Qr=xr.indicators.find(ei=>ei.show),Wr=vue.unref(Bn).slice(0,2).sort((ei,Tr)=>ei.typeGuid-Tr.typeGuid).map(ei=>({...ei,show:!0,edit:!1,dataTo:"0",width:ei.name==="the_date"?15:0,dataSetParams:{}}));Wr!=null&&Wr.length&&(xr.queryColumnList=Wr);const ri=zn(gr);if(ri&&Qr){const{label:ei}=Qr;Nr.defaultConfig={indexFormatConfig:{[ei]:{fieldName:ei,indicatorKey:ei,position:"right",unit:ri}}}}}gr!=null&&gr.theFlag&&(Nr.theFlag=gr.theFlag),(Rr=xr.queryColumnList)!=null&&Rr.length||(xr.queryColumnList=[{id:"3f5bda70a08a442085857adb7fc547de",indexCode:null,indexCodeNum:null,title:"日期(内置)",name:"the_date",label:"日期(内置)",typeGuid:"the_date",genericType:"DATE",hrpIndexComplexid:"the_date",scope:"BUILT_IN_DIM",fromTable:"hrp_index_complex",parentId:"3f5bda70a08a442085857adb7fc547de",show:!0,edit:!1,dataTo:"0",dataSetParams:{}}]);const Ur={...lodashEs.cloneDeep(pivotTableProps),id:jr,keyName:`透视表_${jr}`,position:"relative",top:0,left:0,width:parseFloat(c.width)*.57+"px",height:window.screen.height*.6+"px",pageId:vr,indicatorToken:fr,context:CONTEXT,globalModel:Zn(),graphicConfig:xr,pageConfig:c,...Nr};c.theme==="darkBlue"&&(Ur.styleConfig=g),J.value=Ur,re.visible=!0,vue.nextTick(()=>{vue.unref(x).refreshData()})}vue.nextTick(()=>{sr(!0),Qn(!0)})},nr=ur=>{re.pagination.current=ur.current},sr=ur=>{const gr=document.querySelector(".datav-drill-modal .ant-modal-header");gr&&(ur?gr.addEventListener("dblclick",cr):gr.removeEventListener("dblclick",cr))},Qn=ur=>{const gr=document.querySelector(".datav-drill-modal .ant-modal-header");if(gr)if(ur)gr.addEventListener("mousedown",ar);else{const fr=gr.parentElement;fr&&(fr.style.left="",fr.style.top=""),gr.removeEventListener("mousedown",ar)}};function ar(ur){dragModalAction(ur,".datav-drill-modal .ant-modal-header")}const cr=()=>{vn.value=!vn.value,vue.nextTick(()=>{vn.value?(vue.unref(J).width=parseFloat(c.width)*.97+"px",vue.unref(J).height=window.screen.height*.9+"px",Qn(!1)):(vue.unref(J).width=parseFloat(c.width)*.57+"px",vue.unref(J).height=window.screen.height*.6+"px",Qn(!0))})},Yn=()=>{vn.value=!1,sr(!1),Qn(!1),f("close")},lr=({type:ur,data:gr})=>{if(ur==="11"&&gr){const{indicatorList:fr=[],queryColumns:vr=[]}=gr,Cr=fr.concat(vr).filter(br=>br.conditions||br.filter),yr=Hn(Cr,"conditions",!0),pr=Hn(gr.sqlConditions,"sqlConditions",!1);Fn.value=yr.concat(pr).filter(br=>br.label)||[]}};vue.watch(Fn,(ur=[])=>{j.value=ur.map(gr=>{let fr=gr.fieldValue;if(fr&&typeof fr=="string"){const vr=fr.split(",");(vr==null?void 0:vr.length)>3&&(fr=vr.slice(0,3).join(",")+"等")}else fr||(fr='""');if(c.drillingMode==="normalTable")return`${gr.label} ${m[gr.rule]} ${fr}`;{const vr=vue.unref(Bn).find(xr=>xr.label===gr.label);return`${(vr==null?void 0:vr.title)||gr.label} ${m[gr.rule]} ${fr}`}})||[]},{deep:!0});const hr=vue.computed(()=>vue.unref(Fn).map(ur=>({label:ur.title||ur.label,typeGuid:ur.typeGuid,rule:ur.rule,value:ur.fieldValue}))),mr=()=>{y.value=!1};return u({showModal:Un}),{indDetailInfo:re,pivotTableConfig:J,pivotTableStyle:er,detailBodyStyle:Jn,wrapClassName:ir,isIndFullScreen:vn,isMobile:Vn,conditionInfo:j,indicatorUrl:Xn,allDimensions:Bn,detailLoading:w,pivotTableRef:x,lastDetailRef:Pn,subDrillModalRef:b,theDateInfo:gn,isShowSubDrillModal:y,normalTableUnits:Rn,drillConditions:hr,getContainer:or,toggleFullScreen:cr,onDetailCancel:Yn,onPivotTableChange:lr,handleTableChange:nr,onCloseModal:mr}}}),DrillModal_vue_vue_type_style_index_0_scoped_c3da6b05_lang="",DrillModal_vue_vue_type_style_index_1_lang="",_hoisted_1$l=["title"],_hoisted_2$b={key:0,class:"spin-container"},_hoisted_3$5=["title"],_hoisted_4$4=["title"];function _sfc_render$z(c,u,f,d,h,v){const p=vue.resolveComponent("close-outlined"),m=vue.resolveComponent("switcher-outlined"),g=vue.resolveComponent("border-outlined"),y=vue.resolveComponent("a-spin"),b=vue.resolveComponent("a-table"),Pn=vue.resolveComponent("pivot-table"),x=vue.resolveComponent("a-modal"),vn=vue.resolveComponent("last-detail"),J=vue.resolveComponent("drill-modal",!0);return vue.openBlock(),vue.createElementBlock(vue.Fragment,null,[vue.createVNode(x,{visible:c.indDetailInfo.visible,"onUpdate:visible":u[1]||(u[1]=j=>c.indDetailInfo.visible=j),width:"60%",getContainer:c.getContainer,footer:null,destroyOnClose:!0,"wrap-class-name":c.wrapClassName,bodyStyle:c.detailBodyStyle,onCancel:c.onDetailCancel},{title:vue.withCtx(()=>[vue.createElementVNode("div",{class:"detail-modal-title",title:c.conditionInfo.join("、")},vue.toDisplayString(c.indDetailInfo.title)+" "+vue.toDisplayString(c.conditionInfo.join("、")),9,_hoisted_1$l)]),closeIcon:vue.withCtx(()=>[vue.createVNode(p,{class:vue.normalizeClass(["modal-icon",c.theme])},null,8,["class"])]),default:vue.withCtx(()=>[c.isMobile?vue.createCommentVNode("",!0):(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"zoom-btn",onClick:u[0]||(u[0]=(...j)=>c.toggleFullScreen&&c.toggleFullScreen(...j))},[c.isIndFullScreen?(vue.openBlock(),vue.createBlock(m,{key:0,class:vue.normalizeClass(["modal-icon",c.theme])},null,8,["class"])):(vue.openBlock(),vue.createBlock(g,{key:1,class:vue.normalizeClass(["modal-icon",c.theme])},null,8,["class"]))])),c.drillingMode==="normalTable"||c.isMobile?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:1},[c.detailLoading?(vue.openBlock(),vue.createElementBlock("div",_hoisted_2$b,[vue.createVNode(y,{size:"large"})])):(vue.openBlock(),vue.createBlock(b,{key:1,scroll:{x:"max-content",y:c.isIndFullScreen?"100vh":"70vh"},"row-key":j=>j.uuid,columns:c.indDetailInfo.columns,"data-source":c.indDetailInfo.dataSource,pagination:c.indDetailInfo.pagination,onChange:c.handleTableChange},{headerCell:vue.withCtx(({title:j})=>[vue.createElementVNode("div",{class:"detail-table-header-cell",title:j},vue.toDisplayString(j),9,_hoisted_3$5)]),bodyCell:vue.withCtx(({text:j,column:Fn})=>[vue.createElementVNode("div",{title:j},vue.toDisplayString(j)+vue.toDisplayString(c.normalTableUnits[Fn.title]),9,_hoisted_4$4)]),_:1},8,["scroll","row-key","columns","data-source","pagination","onChange"]))],64)):c.drillingMode==="pivotTable"?(vue.openBlock(),vue.createElementBlock("div",{key:2,style:vue.normalizeStyle({position:"relative",...c.pivotTableStyle})},[vue.createVNode(Pn,vue.mergeProps({ref:"pivotTableRef"},c.pivotTableConfig,{pageMode:c.pageMode,theme:c.theme,fullMode:!1,allowDrill:!0,showFullScreen:!1,indicatorUrl:c.indicatorUrl,relateKeyName:c.indDetailInfo.keyName,allDimensions:c.allDimensions,scaleValue:c.scaleValue,defaultFontSize:c.pivotTableFontSize,drillDetailUrl:c.drillDetailUrl,drillConditions:c.drillConditions,isMobile:c.isMobile,isNeedEmptyRow:!1,enlargeContainer:"#norPageConfig",onTableChange:c.onPivotTableChange}),null,16,["pageMode","theme","indicatorUrl","relateKeyName","allDimensions","scaleValue","defaultFontSize","drillDetailUrl","drillConditions","isMobile","onTableChange"])],4)):vue.createCommentVNode("",!0)]),_:1},8,["visible","getContainer","wrap-class-name","bodyStyle","onCancel"]),vue.createVNode(vn,{ref:"lastDetailRef",theme:c.theme,theDateInfo:c.theDateInfo,scaleValue:c.scaleValue},null,8,["theme","theDateInfo","scaleValue"]),c.isShowSubDrillModal?(vue.openBlock(),vue.createBlock(J,{key:0,ref:"subDrillModalRef",width:c.width,theme:c.theme,drillingMode:c.drillingMode,pageMode:c.pageMode,scaleValue:c.scaleValue,pivotTableFontSize:c.pivotTableFontSize,drillDetailUrl:c.drillDetailUrl,onClose:c.onCloseModal},null,8,["width","theme","drillingMode","pageMode","scaleValue","pivotTableFontSize","drillDetailUrl","onClose"])):vue.createCommentVNode("",!0)],64)}const DrillModal=_export_sfc$1(_sfc_main$u,[["render",_sfc_render$z],["__scopeId","data-v-c3da6b05"]]),_sfc_main$t=vue.defineComponent({name:"EcanProviderConfig",inheritAttrs:!1,components:{IndicatorDetailModal,TrendModal,DrillModal},props:{...providerConfigComponentProps,pageId:{type:String,default:""},customId:{type:String,default:"ProviderConfig"},customStyle:{type:Object,default:()=>({})},fixedHeight:{type:String,default:"0px"}},setup(c,{expose:u,emit:f}){c.pageId||useHrefParamsToGlobalVariables();const d=vue.ref(),h=vue.ref(),v=vue.ref(),p=vue.computed(()=>INDICATOR_URL),m=vue.computed(()=>hn(c.contextRequestUrl)),g=vue.computed(()=>c.pageMode),y=vue.computed(()=>c.theme),b=vue.computed(()=>c.width),Pn=vue.computed(()=>c.height),x=vue.computed(()=>c.pageFontFamily),vn=vue.computed(()=>c.textColor),J=vue.computed(()=>c.fixedHeight?parseFloat(c.fixedHeight):0),j=vue.computed(()=>c.isCompatible),Fn=vue.computed(()=>c.variableList),Bn=vue.computed(()=>!!navigator.userAgent.match(/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i)),w=vue.computed(()=>parseFloat(c.pivotTableFontSize)),gn=vue.ref(),re=vue.ref({}),Rn=()=>{gn.value.setAttribute("datav-theme",c.theme)},Vn=vue.ref({currentYmd:dayjs().format("YYYY-MM-DD"),currentYear:dayjs().format("YYYY"),currentMonth:dayjs().format("MM"),currentDay:dayjs().format("DD")}),Wn=vue.computed(()=>{const Tr={};if(vue.unref(Fn))for(const Lr of vue.unref(Fn))Tr[Lr.label]=Lr.value;return{$page:{...vue.unref(Vn),...Tr}}});vue.provide(GLOBAL_VARIABLE,{globalVariable:Wn});const Gn=vue.inject("usedComponentList",[]),Zn=vue.inject("componentList",[]);vue.watch(Wn,()=>{f("setGlobalVar",vue.unref(Vn))},{deep:!0,immediate:!0});const Xn=vue.computed(()=>{const Tr=[];for(const Br of vue.unref(Gn))Br.type==="ecanModal"?Tr.push(...Br.componentList):Tr.push(Br);return Tr});vue.watch(()=>c.theme,()=>{Rn()}),vue.onMounted(()=>{Rn()});const er=vue.computed(()=>{const Tr=[],Br=vue.unref(Zn).filter(Lr=>Lr.type==="ecanModal");for(const Lr of Br)Lr!=null&&Lr.requestList&&Tr.push(...Lr.requestList);return[...Tr,...c.requestList]}),Jn=Tr=>Object.prototype.toString.call(Tr)==="[object Object]",ir=Tr=>{const Br=Tr.split(".");let Lr=vue.unref(Wn);for(const Hr of Br)if(Lr&&Jn(Lr))Lr=Lr[Hr];else{Lr="";break}return Lr},dr=vue.ref("");vue.provide(GLOBAL_CONFIG,{contextRequestUrl:m,pageMode:g,theme:y,touchEventId:dr,width:b,height:Pn,fontFamily:x,textColor:vn,requestList:er,isCompatible:j,fixedHeight:J,getGlobalVar:ir});const or=vue.ref({height:"100%",overflow:c.pageMode==="design"?"":"hidden"});vue.provide("setPageHeight",Tr=>{let Br=0;Tr==="auto"?(Br=Tr,re.value={widthScale:1,heightScale:1}):(Br=Tr.heightScale,re.value=Tr),(!j.value||!Bn.value)&&(Br=parseFloat(Pn.value)*Br+"px"),or.value.height=Br}),vue.provide("isMobile",Bn.value),vue.provide("getContainerMap",()=>c.containerMap),vue.provide("getCombinationMap",()=>c.combinationMap),vue.provide("templateOperate",{pageId:c.pageId,templateEmit:f,setTemplateData:Tr=>{var Br;if(Tr!=null&&Tr.pageId){const{componentId:Lr,...Hr}=Tr;(Br=window.config)!=null&&Br.urlParams||(window.config.urlParams={}),window.config.urlParams[Tr.pageId]=Hr,f("templateChange",Tr)}}});const Hn=vue.ref(),Kn=new Map,zn=()=>Kn,qn=Tr=>{let Br=Kn.get(Tr);if(!Br){const Lr=vue.unref(Zn).find(Hr=>Hr.keyName===Tr);Lr&&(Br=Kn.get(Lr.id))}return Br},tr=(Tr,Br)=>{var Lr;if(Hn.value=Br,Kn.set(Tr,Br),!c.pageId){const Hr=vue.unref(Gn).find(Or=>Or.id===Tr);Hr&&((Lr=window.config)!=null&&Lr.record||(window.config.record={}),window.config.record[Hr.keyName]=Br)}},Un=()=>{Hn.value=null},nr=Tr=>{let Br=Tr;if(Br){const Lr=Tr.match(/\{(.+?)\}/g);if(Lr!=null&&Lr.length){let Hr=Lr[0].slice(1,-1).trim();const Or=Hr.match(/\[(.+?)\]/g);let Gr="";Or!=null&&Or.length&&(Hr=Hr.replace(Or[0],""),Gr=Or[0].slice(1,-1).trim());const Zr=vue.unref(Xn).find(ni=>ni.keyName===Hr);if(Zr){const ni=qn(Zr.id),{type:ci,value:ai,RECORD:vi,recordData:ui}=ni||{};yn(ci,MODEL_KEY_LIST)?Br=vi[Gr]:yn(ci,"select")?ui[Gr]?Br=ui[Gr]:Br=vue.unref(ai):yn(ci,["rangePicker","date"])?dayjs.isDayjs(vue.unref(ni[Gr]))?Br=vue.unref(ni[Gr]).format(ni.format):Br=vue.unref(ni[Gr]):Br=ai}else{const ni=window.config.requestParams||{},ci=window.location.search.slice(1).split("&"),ai={};for(const ui of ci)if(ui!=null&&ui.includes("=")){const pi=ui.split("=");ai[pi[0]]=pi[1]||""}Br={...ai,...ni}[Hr]||""}}}return Br},sr=new Map,Qn={},ar=async(Tr,Br)=>{var Zr;const{requestName:Lr}=Tr,Hr=await useRequestData({...Tr,projectRequestUrl:vue.unref(m),getModel:qn})(),Or=((Zr=Hr==null?void 0:Hr.data)==null?void 0:Zr.data)||{};Tr.requestKeyName&&(Vn.value[Tr.requestKeyName]=Or);const Gr=sr.get(Lr);if(Gr!=null&&Gr.length&&(!Br||Qn[Lr])){for(const ni of Gr)ni(Or);Br||sr.delete(Lr)}},cr=(Tr,Br)=>{Qn[Tr]&&(clearInterval(Qn[Tr]),delete Qn[Tr],sr.delete(Tr));const Lr=vue.unref(Xn).filter(Or=>Or.dataType==="request"&&!Or.openCustomRequestData&&Or.customRequestName===Tr),Hr=sr.get(Tr)||[];if((Lr==null?void 0:Lr.length)>Hr.length&&(Hr.push(Br),sr.set(Tr,Hr),(Lr==null?void 0:Lr.length)===Hr.length)){const Or=vue.unref(er).find(Gr=>Gr.requestName===Tr);Or&&(Or!=null&&Or.isOpenRequestTimer&&(Or!=null&&Or.requestInterval)?(ar(Or,!0),Qn[Tr]=setInterval(()=>{ar(Or,!0)},Or.requestInterval*1e3)):ar(Or))}};vue.provide(GLOBAL_MODEL,{getGlobalModel:qn,setGlobalModel:tr,getAllGlobalModel:zn,clearInteractiveData:Un,getRecordValueByKeyName:nr,hanldePageRequestData:cr,interactiveData:Hn});const Yn=vue.ref({}),lr=(Tr,Br)=>{Yn.value[Tr]=Br};vue.provide(LOADED_DATA,{loadedData:Yn,setLoadedData:lr});const hr=[],mr=()=>{hr.pop()},ur=Tr=>{hr.push(Tr)},gr=new Map,fr=Tr=>gr.get(Tr),vr=(Tr,Br)=>{gr.set(Tr,Br)};vue.provide(MODAL_MODEL,{popUseModalIds:mr,pushUseModalIds:ur,getModalModel:fr,setModalModel:vr});const xr=mitt(),Cr=new Set,yr=(Tr,Br)=>{Cr.add(Tr),xr.on(Tr,Lr=>{const{eventName:Hr,params:Or}=Lr;return typeof Br[Hr]=="function"&&Br[Hr](Or)}),vue.onBeforeUnmount(()=>{pr(Tr)})},pr=Tr=>{Cr.delete(Tr),xr.off(Tr)},br=(Tr,Br,Lr={})=>{if(Tr==="PAGE"){const Hr=hr.length;let Or=[];if(Hr===0)Or=[...Cr];else{const Gr=hr[Hr-1];Or=[...fr(Gr)]}Or.forEach(Gr=>{xr.emit(Gr,{eventName:Br,params:Lr})})}else xr.emit(Tr,{eventName:Br,params:Lr})};vue.provide(EVENT_BUS,{onEvent:yr,offEvent:pr,emitEvent:br});const wr=vue.ref(0),kr=()=>{wr.value=vue.unref(wr)+1};vue.provide(GLOBAL_TOKEN,{requestToken:kr});const Er=new Map,Ir=new Map,Mr=({requestFn:Tr=()=>{},sortNum:Br=0,id:Lr=""})=>{if(Er.has(Br)){const Hr=Er.get(Br);Hr==null||Hr.push(Tr)}else Er.set(Br,[Tr]);Ir.set(Lr,Tr)},qr=Tr=>new Promise((Br,Lr)=>{const Hr=[];for(const Or of Tr)Hr.push(new Promise(async Gr=>{await Or(),Gr()}));Promise.all(Hr).then(Or=>{Br(Or)}).catch(Or=>{Lr(Or)})}),Rr=Tr=>new Promise(async(Br,Lr)=>{if(Tr){if(typeof Tr=="string"){const Hr=Ir.get(Tr);if(typeof Hr=="function"){const Or=request.interceptors.response.use(Gr=>(Br(Gr),Gr),Gr=>(Lr(Gr),Promise.reject(Gr)));Hr(),request.interceptors.response.eject(Or)}}}else{const Hr=Array.from(Er);Hr.sort((Gr,Zr)=>Zr[0]-Gr[0]);const Or=Hr.length;try{c.pageMode!=="design"&&vue.unref(wr)>0;for(let Gr=0;Gr<Or;Gr++){const Zr=Hr[Gr][1];await qr(Zr)}}catch(Gr){console.error(Gr)}finally{Er.clear(),Br(null)}}});vue.provide(REQUEST_MODEL,{setRequest:Mr,touchRequest:Rr});const Fr=()=>{xr.emit(REFRESH_PAGE)};vue.provide(REFRESH_PAGE,{emitRefreshPage:Fr});const jr=Tr=>{xr.on(REFRESH_PAGE,()=>Tr()),vue.onMounted(()=>{xr.off(REFRESH_PAGE)})},Nr=vue.ref({});vue.provide(All_COMPONENT_RES_DATA,{allComponentResData:Nr});const Ur=Tr=>{const{id:Br,data:Lr}=Tr;Lr.success&&(Nr.value[Br]=(Lr==null?void 0:Lr.data)||{})},Qr=(Tr,Br)=>{switch(Tr){case"SHOW_INDICATOR_DETAIL_MODAL":vue.unref(d).showModal(Br);break;case"SAVE_COMPONENT_RES_DATA":Ur(Br);break}};vue.provide(COMMON_OPERATE,{operateAction:lodashEs.debounce((Tr,Br)=>{Qr(Tr,Br)},100)}),vue.watchEffect(()=>{var Tr;if((Tr=vue.unref(Gn))!=null&&Tr.length&&vue.unref(g)!=="design"){const{jumpType:Br,jumpTime:Lr,jumpPage:Hr,jumpLink:Or}=c;if(Lr!=null&&Lr.value){let Gr=0;switch(Lr==null?void 0:Lr.suffix){case"hours":Gr=Lr.value*60*60*1e3;break;case"minute":Gr=Lr.value*60*1e3;break;case"seconds":Gr=Lr.value*1e3;break}setTimeout(()=>{let Zr="";Br==="page"&&Hr?Zr=usePageUrl(vue.unref(g),Hr):Br==="link"&&Or&&(Zr=Or),Zr=hn(Zr),window.open(Zr,"_self")},Gr)}}});const Wr=Tr=>{var Br;vue.unref(h).showModal({data:Tr,indicatorUrl:vue.unref(p),indicatorToken:((Br=window==null?void 0:window.config)==null?void 0:Br.indicatorToken)||"",context:CONTEXT,pageId:getPageId()})},ri=Tr=>{vue.unref(v).showModal({data:Tr,pageConfig:c,unitText:ei(Tr)})},ei=Tr=>{let Br="",Lr="";const{componentConfig:Hr}=Tr;for(const Gr in Hr)if(Hr[Gr].key==="currentValue"){Lr=Gr;break}const Or=vue.unref(Zn).find(Gr=>Gr.id===Lr);return Or!=null&&Or.unitText&&(Br=Or.unitText),Br};return vue.provide("showIndDetail",Wr),vue.onBeforeUnmount(()=>{Er==null||Er.clear(),Ir==null||Ir.clear()}),u({touchRequest:Rr,getGlobalModel:qn,onRefreshPage:jr,emitEvent:br,getRecordValueByKeyName:nr,showIndDetail:Wr,showTrend:ri,props:c,systemVariable:Vn}),{providerConfig:gn,configStyle:or,indicatorUrl:p,theme:y,drillModalRef:d,indDetailModalRef:h,trendModalRef:v,scaleValue:re,defaultPivotTableFontSize:w,isMobile:Bn}}}),ProviderConfig_vue_vue_type_style_index_0_scoped_5cf5a076_lang="",ProviderConfig_vue_vue_type_style_index_1_lang="",_hoisted_1$k=["id"];function _sfc_render$y(c,u,f,d,h,v){const p=vue.resolveComponent("drill-modal"),m=vue.resolveComponent("indicator-detail-modal"),g=vue.resolveComponent("trend-modal");return vue.openBlock(),vue.createElementBlock(vue.Fragment,null,[vue.createElementVNode("div",{class:"provider-config-container",id:c.customId,ref:"providerConfig",style:vue.normalizeStyle({...c.configStyle,fontFamily:c.pageFontFamily,...c.customStyle})},[vue.renderSlot(c.$slots,"default",{},void 0,!0)],12,_hoisted_1$k),vue.createVNode(p,{ref:"drillModalRef",width:c.width,theme:c.theme,drillingMode:c.drillingMode,pageMode:c.pageMode,scaleValue:c.scaleValue,pivotTableFontSize:c.defaultPivotTableFontSize,drillDetailUrl:c.drillDetailUrl},null,8,["width","theme","drillingMode","pageMode","scaleValue","pivotTableFontSize","drillDetailUrl"]),vue.createVNode(m,{ref:"indDetailModalRef",theme:c.theme},null,8,["theme"]),vue.createVNode(g,{ref:"trendModalRef",theme:c.theme},null,8,["theme"])],64)}const ProviderConfig=_export_sfc$1(_sfc_main$t,[["render",_sfc_render$y],["__scopeId","data-v-5cf5a076"]]),EcanProviderConfig=withInstall$1(ProviderConfig),textProps={...props$1,name:"文本",keyName:"文本",type:"ecanText",width:"100px",height:"40px",text:"文字",lineHeight:"18px",color:"",variableColor:"",fontSize:"14px",fontFamily:"",fontWeight:400,textShadow:"",justifyContent:"center",alignItems:"center",variableFontSize:"14px",variableDefaultValue:"0",format:"",target:"self",href:"",linkPage:"",data:{},percentageSide:"left",increaseColor:"",declineColor:"",minusSignShow:!0,unitShow:!0,unitText:"",unitFontSize:"14px",unitFontWeight:400,unitColor:"#333",unitTop:"",unitLeft:"",graphicConfig:{},targetShow:!1,targetRule:"",targetValue:"",notExpectColor:"",gradientShow:!1,gradientColor:"",gradientOffset:1,gradientAngle:"180deg",openCustomRequestData:!0,customRequestName:"",customRequestField:"",showEllipsis:!1,showAnimation:!1,transParams:[],exceedConfig:"",targetTemplate:"",dataSetchecked:!1,titleContent:"",titleBackgroundColor:"#ffffff",titleFontColor:"#000000",isMarkDown:!1,isContentMarkDown:!1,parentId:""},textComponentProps=transformToComponentProps(textProps),textEvents=["refreshData","click","valueChange"],goUp="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAMAAADXqc3KAAAAV1BMVEUAAAD/WzT/WjP/WDD/WzT/WzP/WzT/WzT/WzT/WjT/WzT/WDT/YED/WzT/WzT/WjT/YED/WzT/WzT/WzT/XDT/WzT/WjX/WjP/XDT/XDT/WTL/Tif/WzReH8z5AAAAHHRSTlMA8RgS9W9YHbePZyME5sVjCP7bzcCxgndOQC4GFJJgKwAAAIJJREFUKM+Nkd0OgyAMRjvqcLA53fzXvv9zaokmxq8mnsue5ACFDjiy+XyjLZ7yyK35OxN5mSFZKa2QojEIKRhrZKM0QnsMQxirmJ0kBubTIZvAtUyiFAT4JFoUIYmIotZ5xjDPfyoCAV16nMPdFir8xZ16nM//tePtXw2ODOJY0V0WqQwM2rgKrU0AAAAASUVORK5CYII=",goDown="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAACXBIWXMAAAsTAAALEwEAmpwYAAAFHGlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNS42LWMxNDUgNzkuMTYzNDk5LCAyMDE4LzA4LzEzLTE2OjQwOjIyICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIgeG1sbnM6cGhvdG9zaG9wPSJodHRwOi8vbnMuYWRvYmUuY29tL3Bob3Rvc2hvcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RFdnQ9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZUV2ZW50IyIgeG1wOkNyZWF0b3JUb29sPSJBZG9iZSBQaG90b3Nob3AgQ0MgMjAxOSAoV2luZG93cykiIHhtcDpDcmVhdGVEYXRlPSIyMDIyLTA3LTIyVDA5OjM1OjE5KzA4OjAwIiB4bXA6TW9kaWZ5RGF0ZT0iMjAyMi0wNy0yMlQwOTozNTozNyswODowMCIgeG1wOk1ldGFkYXRhRGF0ZT0iMjAyMi0wNy0yMlQwOTozNTozNyswODowMCIgZGM6Zm9ybWF0PSJpbWFnZS9wbmciIHBob3Rvc2hvcDpDb2xvck1vZGU9IjMiIHBob3Rvc2hvcDpJQ0NQcm9maWxlPSJzUkdCIElFQzYxOTY2LTIuMSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDozNmRlNzg2MS1kNzhmLTQyNGYtYTNjOS01ZTk0MjkwY2RjZjEiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6MzZkZTc4NjEtZDc4Zi00MjRmLWEzYzktNWU5NDI5MGNkY2YxIiB4bXBNTTpPcmlnaW5hbERvY3VtZW50SUQ9InhtcC5kaWQ6MzZkZTc4NjEtZDc4Zi00MjRmLWEzYzktNWU5NDI5MGNkY2YxIj4gPHhtcE1NOkhpc3Rvcnk+IDxyZGY6U2VxPiA8cmRmOmxpIHN0RXZ0OmFjdGlvbj0iY3JlYXRlZCIgc3RFdnQ6aW5zdGFuY2VJRD0ieG1wLmlpZDozNmRlNzg2MS1kNzhmLTQyNGYtYTNjOS01ZTk0MjkwY2RjZjEiIHN0RXZ0OndoZW49IjIwMjItMDctMjJUMDk6MzU6MTkrMDg6MDAiIHN0RXZ0OnNvZnR3YXJlQWdlbnQ9IkFkb2JlIFBob3Rvc2hvcCBDQyAyMDE5IChXaW5kb3dzKSIvPiA8L3JkZjpTZXE+IDwveG1wTU06SGlzdG9yeT4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz6VDI+BAAABUUlEQVRIia3WPyhGURgG8B8pi0xisStKMioZLQaLiaQMBoxiVBImCwaLf6MssloUk8Gmb7GgJFKSUvIZ7qe+bvd89+A+03uf989z3nPPPe+tK5fLqtF3tSESzRjFAJ4vemams4IaYqulCq9gEo34QGco+LcCg9hHaxW3jpsiBIZxmMp5kXQTRH1k8S4cZCxoE6//FaiXbEtThm87JjkPI+jN4E9xW4TAQoA/isjNFehCT8B3VoTAUID/xHURAn0B/g5fRQh0B/j7mOJkf2gTaKvY7YG8FsxXPe/hIVbgCTs5C+vAasU+xlooMGuLTrCVI/CDR0zVCgi9gzmUIgQmBbYmT+AdY5LjGMKWpNuaqHWKLrEY8JUkXeYi75iu4DzFfUi6ey9C4AvjeKviliTdRSHmsrvBbMU+lzNg0oidaLvox7LIK+IHdem/iqIROzL/jG+NrT1BRsXKNQAAAABJRU5ErkJggg==";var esmEntry$1={exports:{}},defaults$5={exports:{}};function getDefaults$1(){return{baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}function changeDefaults$1(c){defaults$5.exports.defaults=c}defaults$5.exports={defaults:getDefaults$1(),getDefaults:getDefaults$1,changeDefaults:changeDefaults$1};const escapeTest=/[&<>"']/,escapeReplace=/[&<>"']/g,escapeTestNoEncode=/[<>"']|&(?!#?\w+;)/,escapeReplaceNoEncode=/[<>"']|&(?!#?\w+;)/g,escapeReplacements={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},getEscapeReplacement=c=>escapeReplacements[c];function escape$3(c,u){if(u){if(escapeTest.test(c))return c.replace(escapeReplace,getEscapeReplacement)}else if(escapeTestNoEncode.test(c))return c.replace(escapeReplaceNoEncode,getEscapeReplacement);return c}const unescapeTest=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function unescape$1(c){return c.replace(unescapeTest,(u,f)=>(f=f.toLowerCase(),f==="colon"?":":f.charAt(0)==="#"?f.charAt(1)==="x"?String.fromCharCode(parseInt(f.substring(2),16)):String.fromCharCode(+f.substring(1)):""))}const caret=/(^|[^\[])\^/g;function edit$1(c,u){c=c.source||c,u=u||"";const f={replace:(d,h)=>(h=h.source||h,h=h.replace(caret,"$1"),c=c.replace(d,h),f),getRegex:()=>new RegExp(c,u)};return f}const nonWordAndColonTest=/[^\w:]/g,originIndependentUrl=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function cleanUrl$1(c,u,f){if(c){let d;try{d=decodeURIComponent(unescape$1(f)).replace(nonWordAndColonTest,"").toLowerCase()}catch{return null}if(d.indexOf("javascript:")===0||d.indexOf("vbscript:")===0||d.indexOf("data:")===0)return null}u&&!originIndependentUrl.test(f)&&(f=resolveUrl(u,f));try{f=encodeURI(f).replace(/%25/g,"%")}catch{return null}return f}const baseUrls={},justDomain=/^[^:]+:\/*[^/]*$/,protocol=/^([^:]+:)[\s\S]*$/,domain=/^([^:]+:\/*[^/]*)[\s\S]*$/;function resolveUrl(c,u){baseUrls[" "+c]||(justDomain.test(c)?baseUrls[" "+c]=c+"/":baseUrls[" "+c]=rtrim$1(c,"/",!0)),c=baseUrls[" "+c];const f=c.indexOf(":")===-1;return u.substring(0,2)==="//"?f?u:c.replace(protocol,"$1")+u:u.charAt(0)==="/"?f?u:c.replace(domain,"$1")+u:c+u}const noopTest$1={exec:function(){}};function merge$2(c){let u=1,f,d;for(;u<arguments.length;u++){f=arguments[u];for(d in f)Object.prototype.hasOwnProperty.call(f,d)&&(c[d]=f[d])}return c}function splitCells$1(c,u){const f=c.replace(/\|/g,(v,p,m)=>{let g=!1,y=p;for(;--y>=0&&m[y]==="\\";)g=!g;return g?"|":" |"}),d=f.split(/ \|/);let h=0;if(d[0].trim()||d.shift(),d[d.length-1].trim()||d.pop(),d.length>u)d.splice(u);else for(;d.length<u;)d.push("");for(;h<d.length;h++)d[h]=d[h].trim().replace(/\\\|/g,"|");return d}function rtrim$1(c,u,f){const d=c.length;if(d===0)return"";let h=0;for(;h<d;){const v=c.charAt(d-h-1);if(v===u&&!f)h++;else if(v!==u&&f)h++;else break}return c.substr(0,d-h)}function findClosingBracket$1(c,u){if(c.indexOf(u[1])===-1)return-1;const f=c.length;let d=0,h=0;for(;h<f;h++)if(c[h]==="\\")h++;else if(c[h]===u[0])d++;else if(c[h]===u[1]&&(d--,d<0))return h;return-1}function checkSanitizeDeprecation$1(c){c&&c.sanitize&&!c.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}function repeatString$1(c,u){if(u<1)return"";let f="";for(;u>1;)u&1&&(f+=c),u>>=1,c+=c;return f+c}var helpers={escape:escape$3,unescape:unescape$1,edit:edit$1,cleanUrl:cleanUrl$1,resolveUrl,noopTest:noopTest$1,merge:merge$2,splitCells:splitCells$1,rtrim:rtrim$1,findClosingBracket:findClosingBracket$1,checkSanitizeDeprecation:checkSanitizeDeprecation$1,repeatString:repeatString$1};const{defaults:defaults$4}=defaults$5.exports,{rtrim,splitCells,escape:escape$2,findClosingBracket}=helpers;function outputLink(c,u,f,d){const h=u.href,v=u.title?escape$2(u.title):null,p=c[1].replace(/\\([\[\]])/g,"$1");if(c[0].charAt(0)!=="!"){d.state.inLink=!0;const m={type:"link",raw:f,href:h,title:v,text:p,tokens:d.inlineTokens(p,[])};return d.state.inLink=!1,m}else return{type:"image",raw:f,href:h,title:v,text:escape$2(p)}}function indentCodeCompensation(c,u){const f=c.match(/^(\s+)(?:```)/);if(f===null)return u;const d=f[1];return u.split(`
104
104
  `).map(h=>{const v=h.match(/^\s+/);if(v===null)return h;const[p]=v;return p.length>=d.length?h.slice(d.length):h}).join(`
105
105
  `)}var Tokenizer_1$1=class{constructor(u){this.options=u||defaults$4}space(u){const f=this.rules.block.newline.exec(u);if(f)return f[0].length>1?{type:"space",raw:f[0]}:{raw:`
106
106
  `}}code(u){const f=this.rules.block.code.exec(u);if(f){const d=f[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:f[0],codeBlockStyle:"indented",text:this.options.pedantic?d:rtrim(d,`
@@ -179,7 +179,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
179
179
  Contributions by leeoniya.
180
180
  License: MIT, header required.
181
181
  */var Matrix=function(){var c=Math.cos,u=Math.sin,f=Math.tan,d=Math.round;function h(){return this.props[0]=1,this.props[1]=0,this.props[2]=0,this.props[3]=0,this.props[4]=0,this.props[5]=1,this.props[6]=0,this.props[7]=0,this.props[8]=0,this.props[9]=0,this.props[10]=1,this.props[11]=0,this.props[12]=0,this.props[13]=0,this.props[14]=0,this.props[15]=1,this}function v(zn){if(zn===0)return this;var qn=c(zn),tr=u(zn);return this._t(qn,-tr,0,0,tr,qn,0,0,0,0,1,0,0,0,0,1)}function p(zn){if(zn===0)return this;var qn=c(zn),tr=u(zn);return this._t(1,0,0,0,0,qn,-tr,0,0,tr,qn,0,0,0,0,1)}function m(zn){if(zn===0)return this;var qn=c(zn),tr=u(zn);return this._t(qn,0,tr,0,0,1,0,0,-tr,0,qn,0,0,0,0,1)}function g(zn){if(zn===0)return this;var qn=c(zn),tr=u(zn);return this._t(qn,-tr,0,0,tr,qn,0,0,0,0,1,0,0,0,0,1)}function y(zn,qn){return this._t(1,qn,zn,1,0,0)}function b(zn,qn){return this.shear(f(zn),f(qn))}function Pn(zn,qn){var tr=c(qn),Un=u(qn);return this._t(tr,Un,0,0,-Un,tr,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,f(zn),1,0,0,0,0,1,0,0,0,0,1)._t(tr,-Un,0,0,Un,tr,0,0,0,0,1,0,0,0,0,1)}function x(zn,qn,tr){return!tr&&tr!==0&&(tr=1),zn===1&&qn===1&&tr===1?this:this._t(zn,0,0,0,0,qn,0,0,0,0,tr,0,0,0,0,1)}function vn(zn,qn,tr,Un,nr,sr,Qn,ar,cr,Yn,lr,hr,mr,ur,gr,fr){return this.props[0]=zn,this.props[1]=qn,this.props[2]=tr,this.props[3]=Un,this.props[4]=nr,this.props[5]=sr,this.props[6]=Qn,this.props[7]=ar,this.props[8]=cr,this.props[9]=Yn,this.props[10]=lr,this.props[11]=hr,this.props[12]=mr,this.props[13]=ur,this.props[14]=gr,this.props[15]=fr,this}function J(zn,qn,tr){return tr=tr||0,zn!==0||qn!==0||tr!==0?this._t(1,0,0,0,0,1,0,0,0,0,1,0,zn,qn,tr,1):this}function j(zn,qn,tr,Un,nr,sr,Qn,ar,cr,Yn,lr,hr,mr,ur,gr,fr){var vr=this.props;if(zn===1&&qn===0&&tr===0&&Un===0&&nr===0&&sr===1&&Qn===0&&ar===0&&cr===0&&Yn===0&&lr===1&&hr===0)return vr[12]=vr[12]*zn+vr[15]*mr,vr[13]=vr[13]*sr+vr[15]*ur,vr[14]=vr[14]*lr+vr[15]*gr,vr[15]*=fr,this._identityCalculated=!1,this;var xr=vr[0],Cr=vr[1],yr=vr[2],pr=vr[3],br=vr[4],wr=vr[5],kr=vr[6],Er=vr[7],Ir=vr[8],Mr=vr[9],qr=vr[10],Rr=vr[11],Fr=vr[12],jr=vr[13],Nr=vr[14],Ur=vr[15];return vr[0]=xr*zn+Cr*nr+yr*cr+pr*mr,vr[1]=xr*qn+Cr*sr+yr*Yn+pr*ur,vr[2]=xr*tr+Cr*Qn+yr*lr+pr*gr,vr[3]=xr*Un+Cr*ar+yr*hr+pr*fr,vr[4]=br*zn+wr*nr+kr*cr+Er*mr,vr[5]=br*qn+wr*sr+kr*Yn+Er*ur,vr[6]=br*tr+wr*Qn+kr*lr+Er*gr,vr[7]=br*Un+wr*ar+kr*hr+Er*fr,vr[8]=Ir*zn+Mr*nr+qr*cr+Rr*mr,vr[9]=Ir*qn+Mr*sr+qr*Yn+Rr*ur,vr[10]=Ir*tr+Mr*Qn+qr*lr+Rr*gr,vr[11]=Ir*Un+Mr*ar+qr*hr+Rr*fr,vr[12]=Fr*zn+jr*nr+Nr*cr+Ur*mr,vr[13]=Fr*qn+jr*sr+Nr*Yn+Ur*ur,vr[14]=Fr*tr+jr*Qn+Nr*lr+Ur*gr,vr[15]=Fr*Un+jr*ar+Nr*hr+Ur*fr,this._identityCalculated=!1,this}function Fn(zn){var qn=zn.props;return this.transform(qn[0],qn[1],qn[2],qn[3],qn[4],qn[5],qn[6],qn[7],qn[8],qn[9],qn[10],qn[11],qn[12],qn[13],qn[14],qn[15])}function Bn(){return this._identityCalculated||(this._identity=!(this.props[0]!==1||this.props[1]!==0||this.props[2]!==0||this.props[3]!==0||this.props[4]!==0||this.props[5]!==1||this.props[6]!==0||this.props[7]!==0||this.props[8]!==0||this.props[9]!==0||this.props[10]!==1||this.props[11]!==0||this.props[12]!==0||this.props[13]!==0||this.props[14]!==0||this.props[15]!==1),this._identityCalculated=!0),this._identity}function w(zn){for(var qn=0;qn<16;){if(zn.props[qn]!==this.props[qn])return!1;qn+=1}return!0}function gn(zn){var qn;for(qn=0;qn<16;qn+=1)zn.props[qn]=this.props[qn];return zn}function re(zn){var qn;for(qn=0;qn<16;qn+=1)this.props[qn]=zn[qn]}function Rn(zn,qn,tr){return{x:zn*this.props[0]+qn*this.props[4]+tr*this.props[8]+this.props[12],y:zn*this.props[1]+qn*this.props[5]+tr*this.props[9]+this.props[13],z:zn*this.props[2]+qn*this.props[6]+tr*this.props[10]+this.props[14]}}function Vn(zn,qn,tr){return zn*this.props[0]+qn*this.props[4]+tr*this.props[8]+this.props[12]}function Wn(zn,qn,tr){return zn*this.props[1]+qn*this.props[5]+tr*this.props[9]+this.props[13]}function Gn(zn,qn,tr){return zn*this.props[2]+qn*this.props[6]+tr*this.props[10]+this.props[14]}function Zn(){var zn=this.props[0]*this.props[5]-this.props[1]*this.props[4],qn=this.props[5]/zn,tr=-this.props[1]/zn,Un=-this.props[4]/zn,nr=this.props[0]/zn,sr=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/zn,Qn=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/zn,ar=new Matrix;return ar.props[0]=qn,ar.props[1]=tr,ar.props[4]=Un,ar.props[5]=nr,ar.props[12]=sr,ar.props[13]=Qn,ar}function Xn(zn){var qn=this.getInverseMatrix();return qn.applyToPointArray(zn[0],zn[1],zn[2]||0)}function er(zn){var qn,tr=zn.length,Un=[];for(qn=0;qn<tr;qn+=1)Un[qn]=Xn(zn[qn]);return Un}function Jn(zn,qn,tr){var Un=createTypedArray("float32",6);if(this.isIdentity())Un[0]=zn[0],Un[1]=zn[1],Un[2]=qn[0],Un[3]=qn[1],Un[4]=tr[0],Un[5]=tr[1];else{var nr=this.props[0],sr=this.props[1],Qn=this.props[4],ar=this.props[5],cr=this.props[12],Yn=this.props[13];Un[0]=zn[0]*nr+zn[1]*Qn+cr,Un[1]=zn[0]*sr+zn[1]*ar+Yn,Un[2]=qn[0]*nr+qn[1]*Qn+cr,Un[3]=qn[0]*sr+qn[1]*ar+Yn,Un[4]=tr[0]*nr+tr[1]*Qn+cr,Un[5]=tr[0]*sr+tr[1]*ar+Yn}return Un}function ir(zn,qn,tr){var Un;return this.isIdentity()?Un=[zn,qn,tr]:Un=[zn*this.props[0]+qn*this.props[4]+tr*this.props[8]+this.props[12],zn*this.props[1]+qn*this.props[5]+tr*this.props[9]+this.props[13],zn*this.props[2]+qn*this.props[6]+tr*this.props[10]+this.props[14]],Un}function dr(zn,qn){if(this.isIdentity())return zn+","+qn;var tr=this.props;return Math.round((zn*tr[0]+qn*tr[4]+tr[12])*100)/100+","+Math.round((zn*tr[1]+qn*tr[5]+tr[13])*100)/100}function or(){for(var zn=0,qn=this.props,tr="matrix3d(",Un=1e4;zn<16;)tr+=d(qn[zn]*Un)/Un,tr+=zn===15?")":",",zn+=1;return tr}function Hn(zn){var qn=1e4;return zn<1e-6&&zn>0||zn>-1e-6&&zn<0?d(zn*qn)/qn:zn}function Kn(){var zn=this.props,qn=Hn(zn[0]),tr=Hn(zn[1]),Un=Hn(zn[4]),nr=Hn(zn[5]),sr=Hn(zn[12]),Qn=Hn(zn[13]);return"matrix("+qn+","+tr+","+Un+","+nr+","+sr+","+Qn+")"}return function(){this.reset=h,this.rotate=v,this.rotateX=p,this.rotateY=m,this.rotateZ=g,this.skew=b,this.skewFromAxis=Pn,this.shear=y,this.scale=x,this.setTransform=vn,this.translate=J,this.transform=j,this.multiply=Fn,this.applyToPoint=Rn,this.applyToX=Vn,this.applyToY=Wn,this.applyToZ=Gn,this.applyToPointArray=ir,this.applyToTriplePoints=Jn,this.applyToPointStringified=dr,this.toCSS=or,this.to2dCSS=Kn,this.clone=gn,this.cloneFromProps=re,this.equals=w,this.inversePoints=er,this.inversePoint=Xn,this.getInverseMatrix=Zn,this._t=this.transform,this.isIdentity=Bn,this._identity=!0,this._identityCalculated=!1,this.props=createTypedArray("float32",16),this.reset()}}();function _typeof$3(c){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$3=function(f){return typeof f}:_typeof$3=function(f){return f&&typeof Symbol=="function"&&f.constructor===Symbol&&f!==Symbol.prototype?"symbol":typeof f},_typeof$3(c)}var lottie={};function setLocation(c){setLocationHref(c)}function searchAnimations(){animationManager.searchAnimations()}function setSubframeRendering(c){setSubframeEnabled(c)}function setPrefix(c){setIdPrefix(c)}function loadAnimation(c){return animationManager.loadAnimation(c)}function setQuality(c){if(typeof c=="string")switch(c){case"high":setDefaultCurveSegments(200);break;default:case"medium":setDefaultCurveSegments(50);break;case"low":setDefaultCurveSegments(10);break}else!isNaN(c)&&c>1&&setDefaultCurveSegments(c)}function inBrowser(){return typeof navigator<"u"}function installPlugin(c,u){c==="expressions"&&setExpressionsPlugin(u)}function getFactory(c){switch(c){case"propertyFactory":return PropertyFactory;case"shapePropertyFactory":return ShapePropertyFactory;case"matrix":return Matrix;default:return null}}lottie.play=animationManager.play,lottie.pause=animationManager.pause,lottie.setLocationHref=setLocation,lottie.togglePause=animationManager.togglePause,lottie.setSpeed=animationManager.setSpeed,lottie.setDirection=animationManager.setDirection,lottie.stop=animationManager.stop,lottie.searchAnimations=searchAnimations,lottie.registerAnimation=animationManager.registerAnimation,lottie.loadAnimation=loadAnimation,lottie.setSubframeRendering=setSubframeRendering,lottie.resize=animationManager.resize,lottie.goToAndStop=animationManager.goToAndStop,lottie.destroy=animationManager.destroy,lottie.setQuality=setQuality,lottie.inBrowser=inBrowser,lottie.installPlugin=installPlugin,lottie.freeze=animationManager.freeze,lottie.unfreeze=animationManager.unfreeze,lottie.setVolume=animationManager.setVolume,lottie.mute=animationManager.mute,lottie.unmute=animationManager.unmute,lottie.getRegisteredAnimations=animationManager.getRegisteredAnimations,lottie.useWebWorker=setWebWorker,lottie.setIDPrefix=setPrefix,lottie.__getFactory=getFactory,lottie.version="5.12.2";function checkReady(){document.readyState==="complete"&&(clearInterval(readyStateCheckInterval),searchAnimations())}function getQueryVariable(c){for(var u=queryString.split("&"),f=0;f<u.length;f+=1){var d=u[f].split("=");if(decodeURIComponent(d[0])==c)return decodeURIComponent(d[1])}return null}var queryString="";{var scripts=document.getElementsByTagName("script"),index=scripts.length-1,myScript=scripts[index]||{src:""};queryString=myScript.src?myScript.src.replace(/^[^\?]+\??/,""):"",getQueryVariable("renderer")}var readyStateCheckInterval=setInterval(checkReady,100);try{_typeof$3(exports)!=="object"&&(window.bodymovin=lottie)}catch(c){}var ShapeModifiers=function(){var c={},u={};c.registerModifier=f,c.getModifier=d;function f(h,v){u[h]||(u[h]=v)}function d(h,v,p){return new u[h](v,p)}return c}();function ShapeModifier(){}ShapeModifier.prototype.initModifierProperties=function(){},ShapeModifier.prototype.addShapeToModifier=function(){},ShapeModifier.prototype.addShape=function(c){if(!this.closed){c.sh.container.addDynamicProperty(c.sh);var u={shape:c.sh,data:c,localShapeCollection:shapeCollectionPool.newShapeCollection()};this.shapes.push(u),this.addShapeToModifier(u),this._isAnimated&&c.setAsAnimated()}},ShapeModifier.prototype.init=function(c,u){this.shapes=[],this.elem=c,this.initDynamicPropertyContainer(c),this.initModifierProperties(c,u),this.frameId=initialDefaultFrame,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0)},ShapeModifier.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},extendPrototype([DynamicPropertyContainer],ShapeModifier);function TrimModifier(){}extendPrototype([ShapeModifier],TrimModifier),TrimModifier.prototype.initModifierProperties=function(c,u){this.s=PropertyFactory.getProp(c,u.s,0,.01,this),this.e=PropertyFactory.getProp(c,u.e,0,.01,this),this.o=PropertyFactory.getProp(c,u.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=u.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},TrimModifier.prototype.addShapeToModifier=function(c){c.pathsData=[]},TrimModifier.prototype.calculateShapeEdges=function(c,u,f,d,h){var v=[];u<=1?v.push({s:c,e:u}):c>=1?v.push({s:c-1,e:u-1}):(v.push({s:c,e:1}),v.push({s:0,e:u-1}));var p=[],m,g=v.length,y;for(m=0;m<g;m+=1)if(y=v[m],!(y.e*h<d||y.s*h>d+f)){var b,Pn;y.s*h<=d?b=0:b=(y.s*h-d)/f,y.e*h>=d+f?Pn=1:Pn=(y.e*h-d)/f,p.push([b,Pn])}return p.length||p.push([0,0]),p},TrimModifier.prototype.releasePathsData=function(c){var u,f=c.length;for(u=0;u<f;u+=1)segmentsLengthPool.release(c[u]);return c.length=0,c},TrimModifier.prototype.processShapes=function(c){var u,f;if(this._mdf||c){var d=this.o.v%360/360;if(d<0&&(d+=1),this.s.v>1?u=1+d:this.s.v<0?u=0+d:u=this.s.v+d,this.e.v>1?f=1+d:this.e.v<0?f=0+d:f=this.e.v+d,u>f){var h=u;u=f,f=h}u=Math.round(u*1e4)*1e-4,f=Math.round(f*1e4)*1e-4,this.sValue=u,this.eValue=f}else u=this.sValue,f=this.eValue;var v,p,m=this.shapes.length,g,y,b,Pn,x,vn=0;if(f===u)for(p=0;p<m;p+=1)this.shapes[p].localShapeCollection.releaseShapes(),this.shapes[p].shape._mdf=!0,this.shapes[p].shape.paths=this.shapes[p].localShapeCollection,this._mdf&&(this.shapes[p].pathsData.length=0);else if(f===1&&u===0||f===0&&u===1){if(this._mdf)for(p=0;p<m;p+=1)this.shapes[p].pathsData.length=0,this.shapes[p].shape._mdf=!0}else{var J=[],j,Fn;for(p=0;p<m;p+=1)if(j=this.shapes[p],!j.shape._mdf&&!this._mdf&&!c&&this.m!==2)j.shape.paths=j.localShapeCollection;else{if(v=j.shape.paths,y=v._length,x=0,!j.shape._mdf&&j.pathsData.length)x=j.totalShapeLength;else{for(b=this.releasePathsData(j.pathsData),g=0;g<y;g+=1)Pn=bez.getSegmentsLength(v.shapes[g]),b.push(Pn),x+=Pn.totalLength;j.totalShapeLength=x,j.pathsData=b}vn+=x,j.shape._mdf=!0}var Bn=u,w=f,gn=0,re;for(p=m-1;p>=0;p-=1)if(j=this.shapes[p],j.shape._mdf){for(Fn=j.localShapeCollection,Fn.releaseShapes(),this.m===2&&m>1?(re=this.calculateShapeEdges(u,f,j.totalShapeLength,gn,vn),gn+=j.totalShapeLength):re=[[Bn,w]],y=re.length,g=0;g<y;g+=1){Bn=re[g][0],w=re[g][1],J.length=0,w<=1?J.push({s:j.totalShapeLength*Bn,e:j.totalShapeLength*w}):Bn>=1?J.push({s:j.totalShapeLength*(Bn-1),e:j.totalShapeLength*(w-1)}):(J.push({s:j.totalShapeLength*Bn,e:j.totalShapeLength}),J.push({s:0,e:j.totalShapeLength*(w-1)}));var Rn=this.addShapes(j,J[0]);if(J[0].s!==J[0].e){if(J.length>1){var Vn=j.shape.paths.shapes[j.shape.paths._length-1];if(Vn.c){var Wn=Rn.pop();this.addPaths(Rn,Fn),Rn=this.addShapes(j,J[1],Wn)}else this.addPaths(Rn,Fn),Rn=this.addShapes(j,J[1])}this.addPaths(Rn,Fn)}}j.shape.paths=Fn}}},TrimModifier.prototype.addPaths=function(c,u){var f,d=c.length;for(f=0;f<d;f+=1)u.addShape(c[f])},TrimModifier.prototype.addSegment=function(c,u,f,d,h,v,p){h.setXYAt(u[0],u[1],"o",v),h.setXYAt(f[0],f[1],"i",v+1),p&&h.setXYAt(c[0],c[1],"v",v),h.setXYAt(d[0],d[1],"v",v+1)},TrimModifier.prototype.addSegmentFromArray=function(c,u,f,d){u.setXYAt(c[1],c[5],"o",f),u.setXYAt(c[2],c[6],"i",f+1),d&&u.setXYAt(c[0],c[4],"v",f),u.setXYAt(c[3],c[7],"v",f+1)},TrimModifier.prototype.addShapes=function(c,u,f){var d=c.pathsData,h=c.shape.paths.shapes,v,p=c.shape.paths._length,m,g,y=0,b,Pn,x,vn,J=[],j,Fn=!0;for(f?(Pn=f._length,j=f._length):(f=shapePool.newElement(),Pn=0,j=0),J.push(f),v=0;v<p;v+=1){for(x=d[v].lengths,f.c=h[v].c,g=h[v].c?x.length:x.length+1,m=1;m<g;m+=1)if(b=x[m-1],y+b.addedLength<u.s)y+=b.addedLength,f.c=!1;else if(y>u.e){f.c=!1;break}else u.s<=y&&u.e>=y+b.addedLength?(this.addSegment(h[v].v[m-1],h[v].o[m-1],h[v].i[m],h[v].v[m],f,Pn,Fn),Fn=!1):(vn=bez.getNewSegment(h[v].v[m-1],h[v].v[m],h[v].o[m-1],h[v].i[m],(u.s-y)/b.addedLength,(u.e-y)/b.addedLength,x[m-1]),this.addSegmentFromArray(vn,f,Pn,Fn),Fn=!1,f.c=!1),y+=b.addedLength,Pn+=1;if(h[v].c&&x.length){if(b=x[m-1],y<=u.e){var Bn=x[m-1].addedLength;u.s<=y&&u.e>=y+Bn?(this.addSegment(h[v].v[m-1],h[v].o[m-1],h[v].i[0],h[v].v[0],f,Pn,Fn),Fn=!1):(vn=bez.getNewSegment(h[v].v[m-1],h[v].v[0],h[v].o[m-1],h[v].i[0],(u.s-y)/Bn,(u.e-y)/Bn,x[m-1]),this.addSegmentFromArray(vn,f,Pn,Fn),Fn=!1,f.c=!1)}else f.c=!1;y+=b.addedLength,Pn+=1}if(f._length&&(f.setXYAt(f.v[j][0],f.v[j][1],"i",j),f.setXYAt(f.v[f._length-1][0],f.v[f._length-1][1],"o",f._length-1)),y>u.e)break;v<p-1&&(f=shapePool.newElement(),Fn=!0,J.push(f),Pn=0)}return J};function PuckerAndBloatModifier(){}extendPrototype([ShapeModifier],PuckerAndBloatModifier),PuckerAndBloatModifier.prototype.initModifierProperties=function(c,u){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(c,u.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},PuckerAndBloatModifier.prototype.processPath=function(c,u){var f=u/100,d=[0,0],h=c._length,v=0;for(v=0;v<h;v+=1)d[0]+=c.v[v][0],d[1]+=c.v[v][1];d[0]/=h,d[1]/=h;var p=shapePool.newElement();p.c=c.c;var m,g,y,b,Pn,x;for(v=0;v<h;v+=1)m=c.v[v][0]+(d[0]-c.v[v][0])*f,g=c.v[v][1]+(d[1]-c.v[v][1])*f,y=c.o[v][0]+(d[0]-c.o[v][0])*-f,b=c.o[v][1]+(d[1]-c.o[v][1])*-f,Pn=c.i[v][0]+(d[0]-c.i[v][0])*-f,x=c.i[v][1]+(d[1]-c.i[v][1])*-f,p.setTripleAt(m,g,y,b,Pn,x,v);return p},PuckerAndBloatModifier.prototype.processShapes=function(c){var u,f,d=this.shapes.length,h,v,p=this.amount.v;if(p!==0){var m,g;for(f=0;f<d;f+=1){if(m=this.shapes[f],g=m.localShapeCollection,!(!m.shape._mdf&&!this._mdf&&!c))for(g.releaseShapes(),m.shape._mdf=!0,u=m.shape.paths.shapes,v=m.shape.paths._length,h=0;h<v;h+=1)g.addShape(this.processPath(u[h],p));m.shape.paths=m.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};var TransformPropertyFactory=function(){var c=[0,0];function u(g){var y=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||y,this.a&&g.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&g.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&g.skewFromAxis(-this.sk.v,this.sa.v),this.r?g.rotate(-this.r.v):g.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.data.p.s?this.data.p.z?g.translate(this.px.v,this.py.v,-this.pz.v):g.translate(this.px.v,this.py.v,0):g.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}function f(g){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||g){var y;if(this.v.cloneFromProps(this.pre.props),this.appliedTransformations<1&&this.v.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations<2&&this.v.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&this.appliedTransformations<3&&this.v.skewFromAxis(-this.sk.v,this.sa.v),this.r&&this.appliedTransformations<4?this.v.rotate(-this.r.v):!this.r&&this.appliedTransformations<4&&this.v.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.autoOriented){var b,Pn;if(y=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(b=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/y,0),Pn=this.p.getValueAtTime(this.p.keyframes[0].t/y,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(b=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/y,0),Pn=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/y,0)):(b=this.p.pv,Pn=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/y,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){b=[],Pn=[];var x=this.px,vn=this.py;x._caching.lastFrame+x.offsetTime<=x.keyframes[0].t?(b[0]=x.getValueAtTime((x.keyframes[0].t+.01)/y,0),b[1]=vn.getValueAtTime((vn.keyframes[0].t+.01)/y,0),Pn[0]=x.getValueAtTime(x.keyframes[0].t/y,0),Pn[1]=vn.getValueAtTime(vn.keyframes[0].t/y,0)):x._caching.lastFrame+x.offsetTime>=x.keyframes[x.keyframes.length-1].t?(b[0]=x.getValueAtTime(x.keyframes[x.keyframes.length-1].t/y,0),b[1]=vn.getValueAtTime(vn.keyframes[vn.keyframes.length-1].t/y,0),Pn[0]=x.getValueAtTime((x.keyframes[x.keyframes.length-1].t-.01)/y,0),Pn[1]=vn.getValueAtTime((vn.keyframes[vn.keyframes.length-1].t-.01)/y,0)):(b=[x.pv,vn.pv],Pn[0]=x.getValueAtTime((x._caching.lastFrame+x.offsetTime-.01)/y,x.offsetTime),Pn[1]=vn.getValueAtTime((vn._caching.lastFrame+vn.offsetTime-.01)/y,vn.offsetTime))}else Pn=c,b=Pn;this.v.rotate(-Math.atan2(b[1]-Pn[1],b[0]-Pn[0]))}this.data.p&&this.data.p.s?this.data.p.z?this.v.translate(this.px.v,this.py.v,-this.pz.v):this.v.translate(this.px.v,this.py.v,0):this.v.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}this.frameId=this.elem.globalData.frameId}}function d(){if(this.appliedTransformations=0,this.pre.reset(),!this.a.effectsSequence.length)this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1;else return;if(!this.s.effectsSequence.length)this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2;else return;if(this.sk)if(!this.sk.effectsSequence.length&&!this.sa.effectsSequence.length)this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3;else return;this.r?this.r.effectsSequence.length||(this.pre.rotate(-this.r.v),this.appliedTransformations=4):!this.rz.effectsSequence.length&&!this.ry.effectsSequence.length&&!this.rx.effectsSequence.length&&!this.or.effectsSequence.length&&(this.pre.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.appliedTransformations=4)}function h(){}function v(g){this._addDynamicProperty(g),this.elem.addDynamicProperty(g),this._isDirty=!0}function p(g,y,b){if(this.elem=g,this.frameId=-1,this.propType="transform",this.data=y,this.v=new Matrix,this.pre=new Matrix,this.appliedTransformations=0,this.initDynamicPropertyContainer(b||g),y.p&&y.p.s?(this.px=PropertyFactory.getProp(g,y.p.x,0,0,this),this.py=PropertyFactory.getProp(g,y.p.y,0,0,this),y.p.z&&(this.pz=PropertyFactory.getProp(g,y.p.z,0,0,this))):this.p=PropertyFactory.getProp(g,y.p||{k:[0,0,0]},1,0,this),y.rx){if(this.rx=PropertyFactory.getProp(g,y.rx,0,degToRads,this),this.ry=PropertyFactory.getProp(g,y.ry,0,degToRads,this),this.rz=PropertyFactory.getProp(g,y.rz,0,degToRads,this),y.or.k[0].ti){var Pn,x=y.or.k.length;for(Pn=0;Pn<x;Pn+=1)y.or.k[Pn].to=null,y.or.k[Pn].ti=null}this.or=PropertyFactory.getProp(g,y.or,1,degToRads,this),this.or.sh=!0}else this.r=PropertyFactory.getProp(g,y.r||{k:0},0,degToRads,this);y.sk&&(this.sk=PropertyFactory.getProp(g,y.sk,0,degToRads,this),this.sa=PropertyFactory.getProp(g,y.sa,0,degToRads,this)),this.a=PropertyFactory.getProp(g,y.a||{k:[0,0,0]},1,0,this),this.s=PropertyFactory.getProp(g,y.s||{k:[100,100,100]},1,.01,this),y.o?this.o=PropertyFactory.getProp(g,y.o,0,.01,g):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}p.prototype={applyToMatrix:u,getValue:f,precalculateMatrix:d,autoOrient:h},extendPrototype([DynamicPropertyContainer],p),p.prototype.addDynamicProperty=v,p.prototype._addDynamicProperty=DynamicPropertyContainer.prototype.addDynamicProperty;function m(g,y,b){return new p(g,y,b)}return{getTransformProperty:m}}();function RepeaterModifier(){}extendPrototype([ShapeModifier],RepeaterModifier),RepeaterModifier.prototype.initModifierProperties=function(c,u){this.getValue=this.processKeys,this.c=PropertyFactory.getProp(c,u.c,0,null,this),this.o=PropertyFactory.getProp(c,u.o,0,null,this),this.tr=TransformPropertyFactory.getTransformProperty(c,u.tr,this),this.so=PropertyFactory.getProp(c,u.tr.so,0,.01,this),this.eo=PropertyFactory.getProp(c,u.tr.eo,0,.01,this),this.data=u,this.dynamicProperties.length||this.getValue(!0),this._isAnimated=!!this.dynamicProperties.length,this.pMatrix=new Matrix,this.rMatrix=new Matrix,this.sMatrix=new Matrix,this.tMatrix=new Matrix,this.matrix=new Matrix},RepeaterModifier.prototype.applyTransforms=function(c,u,f,d,h,v){var p=v?-1:1,m=d.s.v[0]+(1-d.s.v[0])*(1-h),g=d.s.v[1]+(1-d.s.v[1])*(1-h);c.translate(d.p.v[0]*p*h,d.p.v[1]*p*h,d.p.v[2]),u.translate(-d.a.v[0],-d.a.v[1],d.a.v[2]),u.rotate(-d.r.v*p*h),u.translate(d.a.v[0],d.a.v[1],d.a.v[2]),f.translate(-d.a.v[0],-d.a.v[1],d.a.v[2]),f.scale(v?1/m:m,v?1/g:g),f.translate(d.a.v[0],d.a.v[1],d.a.v[2])},RepeaterModifier.prototype.init=function(c,u,f,d){for(this.elem=c,this.arr=u,this.pos=f,this.elemsData=d,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(c),this.initModifierProperties(c,u[f]);f>0;)f-=1,this._elements.unshift(u[f]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},RepeaterModifier.prototype.resetElements=function(c){var u,f=c.length;for(u=0;u<f;u+=1)c[u]._processed=!1,c[u].ty==="gr"&&this.resetElements(c[u].it)},RepeaterModifier.prototype.cloneElements=function(c){var u=JSON.parse(JSON.stringify(c));return this.resetElements(u),u},RepeaterModifier.prototype.changeGroupRender=function(c,u){var f,d=c.length;for(f=0;f<d;f+=1)c[f]._render=u,c[f].ty==="gr"&&this.changeGroupRender(c[f].it,u)},RepeaterModifier.prototype.processShapes=function(c){var u,f,d,h,v,p=!1;if(this._mdf||c){var m=Math.ceil(this.c.v);if(this._groups.length<m){for(;this._groups.length<m;){var g={it:this.cloneElements(this._elements),ty:"gr"};g.it.push({a:{a:0,ix:1,k:[0,0]},nm:"Transform",o:{a:0,ix:7,k:100},p:{a:0,ix:2,k:[0,0]},r:{a:1,ix:6,k:[{s:0,e:0,t:0},{s:0,e:0,t:1}]},s:{a:0,ix:3,k:[100,100]},sa:{a:0,ix:5,k:0},sk:{a:0,ix:4,k:0},ty:"tr"}),this.arr.splice(0,0,g),this._groups.splice(0,0,g),this._currentCopies+=1}this.elem.reloadShapes(),p=!0}v=0;var y;for(d=0;d<=this._groups.length-1;d+=1){if(y=v<m,this._groups[d]._render=y,this.changeGroupRender(this._groups[d].it,y),!y){var b=this.elemsData[d].it,Pn=b[b.length-1];Pn.transform.op.v!==0?(Pn.transform.op._mdf=!0,Pn.transform.op.v=0):Pn.transform.op._mdf=!1}v+=1}this._currentCopies=m;var x=this.o.v,vn=x%1,J=x>0?Math.floor(x):Math.ceil(x),j=this.pMatrix.props,Fn=this.rMatrix.props,Bn=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var w=0;if(x>0){for(;w<J;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),w+=1;vn&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,vn,!1),w+=vn)}else if(x<0){for(;w>J;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),w-=1;vn&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-vn,!0),w-=vn)}d=this.data.m===1?0:this._currentCopies-1,h=this.data.m===1?1:-1,v=this._currentCopies;for(var gn,re;v;){if(u=this.elemsData[d].it,f=u[u.length-1].transform.mProps.v.props,re=f.length,u[u.length-1].transform.mProps._mdf=!0,u[u.length-1].transform.op._mdf=!0,u[u.length-1].transform.op.v=this._currentCopies===1?this.so.v:this.so.v+(this.eo.v-this.so.v)*(d/(this._currentCopies-1)),w!==0){for((d!==0&&h===1||d!==this._currentCopies-1&&h===-1)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(Fn[0],Fn[1],Fn[2],Fn[3],Fn[4],Fn[5],Fn[6],Fn[7],Fn[8],Fn[9],Fn[10],Fn[11],Fn[12],Fn[13],Fn[14],Fn[15]),this.matrix.transform(Bn[0],Bn[1],Bn[2],Bn[3],Bn[4],Bn[5],Bn[6],Bn[7],Bn[8],Bn[9],Bn[10],Bn[11],Bn[12],Bn[13],Bn[14],Bn[15]),this.matrix.transform(j[0],j[1],j[2],j[3],j[4],j[5],j[6],j[7],j[8],j[9],j[10],j[11],j[12],j[13],j[14],j[15]),gn=0;gn<re;gn+=1)f[gn]=this.matrix.props[gn];this.matrix.reset()}else for(this.matrix.reset(),gn=0;gn<re;gn+=1)f[gn]=this.matrix.props[gn];w+=1,v-=1,d+=h}}else for(v=this._currentCopies,d=0,h=1;v;)u=this.elemsData[d].it,f=u[u.length-1].transform.mProps.v.props,u[u.length-1].transform.mProps._mdf=!1,u[u.length-1].transform.op._mdf=!1,v-=1,d+=h;return p},RepeaterModifier.prototype.addShape=function(){};function RoundCornersModifier(){}extendPrototype([ShapeModifier],RoundCornersModifier),RoundCornersModifier.prototype.initModifierProperties=function(c,u){this.getValue=this.processKeys,this.rd=PropertyFactory.getProp(c,u.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},RoundCornersModifier.prototype.processPath=function(c,u){var f=shapePool.newElement();f.c=c.c;var d,h=c._length,v,p,m,g,y,b,Pn=0,x,vn,J,j,Fn,Bn;for(d=0;d<h;d+=1)v=c.v[d],m=c.o[d],p=c.i[d],v[0]===m[0]&&v[1]===m[1]&&v[0]===p[0]&&v[1]===p[1]?(d===0||d===h-1)&&!c.c?(f.setTripleAt(v[0],v[1],m[0],m[1],p[0],p[1],Pn),Pn+=1):(d===0?g=c.v[h-1]:g=c.v[d-1],y=Math.sqrt(Math.pow(v[0]-g[0],2)+Math.pow(v[1]-g[1],2)),b=y?Math.min(y/2,u)/y:0,Fn=v[0]+(g[0]-v[0])*b,x=Fn,Bn=v[1]-(v[1]-g[1])*b,vn=Bn,J=x-(x-v[0])*roundCorner,j=vn-(vn-v[1])*roundCorner,f.setTripleAt(x,vn,J,j,Fn,Bn,Pn),Pn+=1,d===h-1?g=c.v[0]:g=c.v[d+1],y=Math.sqrt(Math.pow(v[0]-g[0],2)+Math.pow(v[1]-g[1],2)),b=y?Math.min(y/2,u)/y:0,J=v[0]+(g[0]-v[0])*b,x=J,j=v[1]+(g[1]-v[1])*b,vn=j,Fn=x-(x-v[0])*roundCorner,Bn=vn-(vn-v[1])*roundCorner,f.setTripleAt(x,vn,J,j,Fn,Bn,Pn),Pn+=1):(f.setTripleAt(c.v[d][0],c.v[d][1],c.o[d][0],c.o[d][1],c.i[d][0],c.i[d][1],Pn),Pn+=1);return f},RoundCornersModifier.prototype.processShapes=function(c){var u,f,d=this.shapes.length,h,v,p=this.rd.v;if(p!==0){var m,g;for(f=0;f<d;f+=1){if(m=this.shapes[f],g=m.localShapeCollection,!(!m.shape._mdf&&!this._mdf&&!c))for(g.releaseShapes(),m.shape._mdf=!0,u=m.shape.paths.shapes,v=m.shape.paths._length,h=0;h<v;h+=1)g.addShape(this.processPath(u[h],p));m.shape.paths=m.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function floatEqual(c,u){return Math.abs(c-u)*1e5<=Math.min(Math.abs(c),Math.abs(u))}function floatZero(c){return Math.abs(c)<=1e-5}function lerp(c,u,f){return c*(1-f)+u*f}function lerpPoint(c,u,f){return[lerp(c[0],u[0],f),lerp(c[1],u[1],f)]}function quadRoots(c,u,f){if(c===0)return[];var d=u*u-4*c*f;if(d<0)return[];var h=-u/(2*c);if(d===0)return[h];var v=Math.sqrt(d)/(2*c);return[h-v,h+v]}function polynomialCoefficients(c,u,f,d){return[-c+3*u-3*f+d,3*c-6*u+3*f,-3*c+3*u,c]}function singlePoint(c){return new PolynomialBezier(c,c,c,c,!1)}function PolynomialBezier(c,u,f,d,h){h&&pointEqual(c,u)&&(u=lerpPoint(c,d,1/3)),h&&pointEqual(f,d)&&(f=lerpPoint(c,d,2/3));var v=polynomialCoefficients(c[0],u[0],f[0],d[0]),p=polynomialCoefficients(c[1],u[1],f[1],d[1]);this.a=[v[0],p[0]],this.b=[v[1],p[1]],this.c=[v[2],p[2]],this.d=[v[3],p[3]],this.points=[c,u,f,d]}PolynomialBezier.prototype.point=function(c){return[((this.a[0]*c+this.b[0])*c+this.c[0])*c+this.d[0],((this.a[1]*c+this.b[1])*c+this.c[1])*c+this.d[1]]},PolynomialBezier.prototype.derivative=function(c){return[(3*c*this.a[0]+2*this.b[0])*c+this.c[0],(3*c*this.a[1]+2*this.b[1])*c+this.c[1]]},PolynomialBezier.prototype.tangentAngle=function(c){var u=this.derivative(c);return Math.atan2(u[1],u[0])},PolynomialBezier.prototype.normalAngle=function(c){var u=this.derivative(c);return Math.atan2(u[0],u[1])},PolynomialBezier.prototype.inflectionPoints=function(){var c=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(floatZero(c))return[];var u=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/c,f=u*u-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/c;if(f<0)return[];var d=Math.sqrt(f);return floatZero(d)?d>0&&d<1?[u]:[]:[u-d,u+d].filter(function(h){return h>0&&h<1})},PolynomialBezier.prototype.split=function(c){if(c<=0)return[singlePoint(this.points[0]),this];if(c>=1)return[this,singlePoint(this.points[this.points.length-1])];var u=lerpPoint(this.points[0],this.points[1],c),f=lerpPoint(this.points[1],this.points[2],c),d=lerpPoint(this.points[2],this.points[3],c),h=lerpPoint(u,f,c),v=lerpPoint(f,d,c),p=lerpPoint(h,v,c);return[new PolynomialBezier(this.points[0],u,h,p,!0),new PolynomialBezier(p,v,d,this.points[3],!0)]};function extrema(c,u){var f=c.points[0][u],d=c.points[c.points.length-1][u];if(f>d){var h=d;d=f,f=h}for(var v=quadRoots(3*c.a[u],2*c.b[u],c.c[u]),p=0;p<v.length;p+=1)if(v[p]>0&&v[p]<1){var m=c.point(v[p])[u];m<f?f=m:m>d&&(d=m)}return{min:f,max:d}}PolynomialBezier.prototype.bounds=function(){return{x:extrema(this,0),y:extrema(this,1)}},PolynomialBezier.prototype.boundingBox=function(){var c=this.bounds();return{left:c.x.min,right:c.x.max,top:c.y.min,bottom:c.y.max,width:c.x.max-c.x.min,height:c.y.max-c.y.min,cx:(c.x.max+c.x.min)/2,cy:(c.y.max+c.y.min)/2}};function intersectData(c,u,f){var d=c.boundingBox();return{cx:d.cx,cy:d.cy,width:d.width,height:d.height,bez:c,t:(u+f)/2,t1:u,t2:f}}function splitData(c){var u=c.bez.split(.5);return[intersectData(u[0],c.t1,c.t),intersectData(u[1],c.t,c.t2)]}function boxIntersect(c,u){return Math.abs(c.cx-u.cx)*2<c.width+u.width&&Math.abs(c.cy-u.cy)*2<c.height+u.height}function intersectsImpl(c,u,f,d,h,v){if(boxIntersect(c,u)){if(f>=v||c.width<=d&&c.height<=d&&u.width<=d&&u.height<=d){h.push([c.t,u.t]);return}var p=splitData(c),m=splitData(u);intersectsImpl(p[0],m[0],f+1,d,h,v),intersectsImpl(p[0],m[1],f+1,d,h,v),intersectsImpl(p[1],m[0],f+1,d,h,v),intersectsImpl(p[1],m[1],f+1,d,h,v)}}PolynomialBezier.prototype.intersections=function(c,u,f){u===void 0&&(u=2),f===void 0&&(f=7);var d=[];return intersectsImpl(intersectData(this,0,1),intersectData(c,0,1),0,u,d,f),d},PolynomialBezier.shapeSegment=function(c,u){var f=(u+1)%c.length();return new PolynomialBezier(c.v[u],c.o[u],c.i[f],c.v[f],!0)},PolynomialBezier.shapeSegmentInverted=function(c,u){var f=(u+1)%c.length();return new PolynomialBezier(c.v[f],c.i[f],c.o[u],c.v[u],!0)};function crossProduct(c,u){return[c[1]*u[2]-c[2]*u[1],c[2]*u[0]-c[0]*u[2],c[0]*u[1]-c[1]*u[0]]}function lineIntersection(c,u,f,d){var h=[c[0],c[1],1],v=[u[0],u[1],1],p=[f[0],f[1],1],m=[d[0],d[1],1],g=crossProduct(crossProduct(h,v),crossProduct(p,m));return floatZero(g[2])?null:[g[0]/g[2],g[1]/g[2]]}function polarOffset(c,u,f){return[c[0]+Math.cos(u)*f,c[1]-Math.sin(u)*f]}function pointDistance(c,u){return Math.hypot(c[0]-u[0],c[1]-u[1])}function pointEqual(c,u){return floatEqual(c[0],u[0])&&floatEqual(c[1],u[1])}function ZigZagModifier(){}extendPrototype([ShapeModifier],ZigZagModifier),ZigZagModifier.prototype.initModifierProperties=function(c,u){this.getValue=this.processKeys,this.amplitude=PropertyFactory.getProp(c,u.s,0,null,this),this.frequency=PropertyFactory.getProp(c,u.r,0,null,this),this.pointsType=PropertyFactory.getProp(c,u.pt,0,null,this),this._isAnimated=this.amplitude.effectsSequence.length!==0||this.frequency.effectsSequence.length!==0||this.pointsType.effectsSequence.length!==0};function setPoint(c,u,f,d,h,v,p){var m=f-Math.PI/2,g=f+Math.PI/2,y=u[0]+Math.cos(f)*d*h,b=u[1]-Math.sin(f)*d*h;c.setTripleAt(y,b,y+Math.cos(m)*v,b-Math.sin(m)*v,y+Math.cos(g)*p,b-Math.sin(g)*p,c.length())}function getPerpendicularVector(c,u){var f=[u[0]-c[0],u[1]-c[1]],d=-Math.PI*.5,h=[Math.cos(d)*f[0]-Math.sin(d)*f[1],Math.sin(d)*f[0]+Math.cos(d)*f[1]];return h}function getProjectingAngle(c,u){var f=u===0?c.length()-1:u-1,d=(u+1)%c.length(),h=c.v[f],v=c.v[d],p=getPerpendicularVector(h,v);return Math.atan2(0,1)-Math.atan2(p[1],p[0])}function zigZagCorner(c,u,f,d,h,v,p){var m=getProjectingAngle(u,f),g=u.v[f%u._length],y=u.v[f===0?u._length-1:f-1],b=u.v[(f+1)%u._length],Pn=v===2?Math.sqrt(Math.pow(g[0]-y[0],2)+Math.pow(g[1]-y[1],2)):0,x=v===2?Math.sqrt(Math.pow(g[0]-b[0],2)+Math.pow(g[1]-b[1],2)):0;setPoint(c,u.v[f%u._length],m,p,d,x/((h+1)*2),Pn/((h+1)*2))}function zigZagSegment(c,u,f,d,h,v){for(var p=0;p<d;p+=1){var m=(p+1)/(d+1),g=h===2?Math.sqrt(Math.pow(u.points[3][0]-u.points[0][0],2)+Math.pow(u.points[3][1]-u.points[0][1],2)):0,y=u.normalAngle(m),b=u.point(m);setPoint(c,b,y,v,f,g/((d+1)*2),g/((d+1)*2)),v=-v}return v}ZigZagModifier.prototype.processPath=function(c,u,f,d){var h=c._length,v=shapePool.newElement();if(v.c=c.c,c.c||(h-=1),h===0)return v;var p=-1,m=PolynomialBezier.shapeSegment(c,0);zigZagCorner(v,c,0,u,f,d,p);for(var g=0;g<h;g+=1)p=zigZagSegment(v,m,u,f,d,-p),g===h-1&&!c.c?m=null:m=PolynomialBezier.shapeSegment(c,(g+1)%h),zigZagCorner(v,c,g+1,u,f,d,p);return v},ZigZagModifier.prototype.processShapes=function(c){var u,f,d=this.shapes.length,h,v,p=this.amplitude.v,m=Math.max(0,Math.round(this.frequency.v)),g=this.pointsType.v;if(p!==0){var y,b;for(f=0;f<d;f+=1){if(y=this.shapes[f],b=y.localShapeCollection,!(!y.shape._mdf&&!this._mdf&&!c))for(b.releaseShapes(),y.shape._mdf=!0,u=y.shape.paths.shapes,v=y.shape.paths._length,h=0;h<v;h+=1)b.addShape(this.processPath(u[h],p,m,g));y.shape.paths=y.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function linearOffset(c,u,f){var d=Math.atan2(u[0]-c[0],u[1]-c[1]);return[polarOffset(c,d,f),polarOffset(u,d,f)]}function offsetSegment(c,u){var f,d,h,v,p,m,g;g=linearOffset(c.points[0],c.points[1],u),f=g[0],d=g[1],g=linearOffset(c.points[1],c.points[2],u),h=g[0],v=g[1],g=linearOffset(c.points[2],c.points[3],u),p=g[0],m=g[1];var y=lineIntersection(f,d,h,v);y===null&&(y=d);var b=lineIntersection(p,m,h,v);return b===null&&(b=p),new PolynomialBezier(f,y,b,m)}function joinLines(c,u,f,d,h){var v=u.points[3],p=f.points[0];if(d===3||pointEqual(v,p))return v;if(d===2){var m=-u.tangentAngle(1),g=-f.tangentAngle(0)+Math.PI,y=lineIntersection(v,polarOffset(v,m+Math.PI/2,100),p,polarOffset(p,m+Math.PI/2,100)),b=y?pointDistance(y,v):pointDistance(v,p)/2,Pn=polarOffset(v,m,2*b*roundCorner);return c.setXYAt(Pn[0],Pn[1],"o",c.length()-1),Pn=polarOffset(p,g,2*b*roundCorner),c.setTripleAt(p[0],p[1],p[0],p[1],Pn[0],Pn[1],c.length()),p}var x=pointEqual(v,u.points[2])?u.points[0]:u.points[2],vn=pointEqual(p,f.points[1])?f.points[3]:f.points[1],J=lineIntersection(x,v,p,vn);return J&&pointDistance(J,v)<h?(c.setTripleAt(J[0],J[1],J[0],J[1],J[0],J[1],c.length()),J):v}function getIntersection(c,u){var f=c.intersections(u);return f.length&&floatEqual(f[0][0],1)&&f.shift(),f.length?f[0]:null}function pruneSegmentIntersection(c,u){var f=c.slice(),d=u.slice(),h=getIntersection(c[c.length-1],u[0]);return h&&(f[c.length-1]=c[c.length-1].split(h[0])[0],d[0]=u[0].split(h[1])[1]),c.length>1&&u.length>1&&(h=getIntersection(c[0],u[u.length-1]),h)?[[c[0].split(h[0])[0]],[u[u.length-1].split(h[1])[1]]]:[f,d]}function pruneIntersections(c){for(var u,f=1;f<c.length;f+=1)u=pruneSegmentIntersection(c[f-1],c[f]),c[f-1]=u[0],c[f]=u[1];return c.length>1&&(u=pruneSegmentIntersection(c[c.length-1],c[0]),c[c.length-1]=u[0],c[0]=u[1]),c}function offsetSegmentSplit(c,u){var f=c.inflectionPoints(),d,h,v,p;if(f.length===0)return[offsetSegment(c,u)];if(f.length===1||floatEqual(f[1],1))return v=c.split(f[0]),d=v[0],h=v[1],[offsetSegment(d,u),offsetSegment(h,u)];v=c.split(f[0]),d=v[0];var m=(f[1]-f[0])/(1-f[0]);return v=v[1].split(m),p=v[0],h=v[1],[offsetSegment(d,u),offsetSegment(p,u),offsetSegment(h,u)]}function OffsetPathModifier(){}extendPrototype([ShapeModifier],OffsetPathModifier),OffsetPathModifier.prototype.initModifierProperties=function(c,u){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(c,u.a,0,null,this),this.miterLimit=PropertyFactory.getProp(c,u.ml,0,null,this),this.lineJoin=u.lj,this._isAnimated=this.amount.effectsSequence.length!==0},OffsetPathModifier.prototype.processPath=function(c,u,f,d){var h=shapePool.newElement();h.c=c.c;var v=c.length();c.c||(v-=1);var p,m,g,y=[];for(p=0;p<v;p+=1)g=PolynomialBezier.shapeSegment(c,p),y.push(offsetSegmentSplit(g,u));if(!c.c)for(p=v-1;p>=0;p-=1)g=PolynomialBezier.shapeSegmentInverted(c,p),y.push(offsetSegmentSplit(g,u));y=pruneIntersections(y);var b=null,Pn=null;for(p=0;p<y.length;p+=1){var x=y[p];for(Pn&&(b=joinLines(h,Pn,x[0],f,d)),Pn=x[x.length-1],m=0;m<x.length;m+=1)g=x[m],b&&pointEqual(g.points[0],b)?h.setXYAt(g.points[1][0],g.points[1][1],"o",h.length()-1):h.setTripleAt(g.points[0][0],g.points[0][1],g.points[1][0],g.points[1][1],g.points[0][0],g.points[0][1],h.length()),h.setTripleAt(g.points[3][0],g.points[3][1],g.points[3][0],g.points[3][1],g.points[2][0],g.points[2][1],h.length()),b=g.points[3]}return y.length&&joinLines(h,Pn,y[0][0],f,d),h},OffsetPathModifier.prototype.processShapes=function(c){var u,f,d=this.shapes.length,h,v,p=this.amount.v,m=this.miterLimit.v,g=this.lineJoin;if(p!==0){var y,b;for(f=0;f<d;f+=1){if(y=this.shapes[f],b=y.localShapeCollection,!(!y.shape._mdf&&!this._mdf&&!c))for(b.releaseShapes(),y.shape._mdf=!0,u=y.shape.paths.shapes,v=y.shape.paths._length,h=0;h<v;h+=1)b.addShape(this.processPath(u[h],p,g,m));y.shape.paths=y.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function getFontProperties(c){for(var u=c.fStyle?c.fStyle.split(" "):[],f="normal",d="normal",h=u.length,v,p=0;p<h;p+=1)switch(v=u[p].toLowerCase(),v){case"italic":d="italic";break;case"bold":f="700";break;case"black":f="900";break;case"medium":f="500";break;case"regular":case"normal":f="400";break;case"light":case"thin":f="200";break}return{style:d,weight:c.fWeight||f}}var FontManager=function(){var c=5e3,u={w:0,size:0,shapes:[],data:{shapes:[]}},f=[];f=f.concat([2304,2305,2306,2307,2362,2363,2364,2364,2366,2367,2368,2369,2370,2371,2372,2373,2374,2375,2376,2377,2378,2379,2380,2381,2382,2383,2387,2388,2389,2390,2391,2402,2403]);var d=127988,h=917631,v=917601,p=917626,m=65039,g=8205,y=127462,b=127487,Pn=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"];function x(Hn){var Kn=Hn.split(","),zn,qn=Kn.length,tr=[];for(zn=0;zn<qn;zn+=1)Kn[zn]!=="sans-serif"&&Kn[zn]!=="monospace"&&tr.push(Kn[zn]);return tr.join(",")}function vn(Hn,Kn){var zn=createTag("span");zn.setAttribute("aria-hidden",!0),zn.style.fontFamily=Kn;var qn=createTag("span");qn.innerText="giItT1WQy@!-/#",zn.style.position="absolute",zn.style.left="-10000px",zn.style.top="-10000px",zn.style.fontSize="300px",zn.style.fontVariant="normal",zn.style.fontStyle="normal",zn.style.fontWeight="normal",zn.style.letterSpacing="0",zn.appendChild(qn),document.body.appendChild(zn);var tr=qn.offsetWidth;return qn.style.fontFamily=x(Hn)+", "+Kn,{node:qn,w:tr,parent:zn}}function J(){var Hn,Kn=this.fonts.length,zn,qn,tr=Kn;for(Hn=0;Hn<Kn;Hn+=1)this.fonts[Hn].loaded?tr-=1:this.fonts[Hn].fOrigin==="n"||this.fonts[Hn].origin===0?this.fonts[Hn].loaded=!0:(zn=this.fonts[Hn].monoCase.node,qn=this.fonts[Hn].monoCase.w,zn.offsetWidth!==qn?(tr-=1,this.fonts[Hn].loaded=!0):(zn=this.fonts[Hn].sansCase.node,qn=this.fonts[Hn].sansCase.w,zn.offsetWidth!==qn&&(tr-=1,this.fonts[Hn].loaded=!0)),this.fonts[Hn].loaded&&(this.fonts[Hn].sansCase.parent.parentNode.removeChild(this.fonts[Hn].sansCase.parent),this.fonts[Hn].monoCase.parent.parentNode.removeChild(this.fonts[Hn].monoCase.parent)));tr!==0&&Date.now()-this.initTime<c?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)}function j(Hn,Kn){var zn=document.body&&Kn?"svg":"canvas",qn,tr=getFontProperties(Hn);if(zn==="svg"){var Un=createNS("text");Un.style.fontSize="100px",Un.setAttribute("font-family",Hn.fFamily),Un.setAttribute("font-style",tr.style),Un.setAttribute("font-weight",tr.weight),Un.textContent="1",Hn.fClass?(Un.style.fontFamily="inherit",Un.setAttribute("class",Hn.fClass)):Un.style.fontFamily=Hn.fFamily,Kn.appendChild(Un),qn=Un}else{var nr=new OffscreenCanvas(500,500).getContext("2d");nr.font=tr.style+" "+tr.weight+" 100px "+Hn.fFamily,qn=nr}function sr(Qn){return zn==="svg"?(qn.textContent=Qn,qn.getComputedTextLength()):qn.measureText(Qn).width}return{measureText:sr}}function Fn(Hn,Kn){if(!Hn){this.isLoaded=!0;return}if(this.chars){this.isLoaded=!0,this.fonts=Hn.list;return}if(!document.body){this.isLoaded=!0,Hn.list.forEach(function(lr){lr.helper=j(lr),lr.cache={}}),this.fonts=Hn.list;return}var zn=Hn.list,qn,tr=zn.length,Un=tr;for(qn=0;qn<tr;qn+=1){var nr=!0,sr,Qn;if(zn[qn].loaded=!1,zn[qn].monoCase=vn(zn[qn].fFamily,"monospace"),zn[qn].sansCase=vn(zn[qn].fFamily,"sans-serif"),!zn[qn].fPath)zn[qn].loaded=!0,Un-=1;else if(zn[qn].fOrigin==="p"||zn[qn].origin===3){if(sr=document.querySelectorAll('style[f-forigin="p"][f-family="'+zn[qn].fFamily+'"], style[f-origin="3"][f-family="'+zn[qn].fFamily+'"]'),sr.length>0&&(nr=!1),nr){var ar=createTag("style");ar.setAttribute("f-forigin",zn[qn].fOrigin),ar.setAttribute("f-origin",zn[qn].origin),ar.setAttribute("f-family",zn[qn].fFamily),ar.type="text/css",ar.innerText="@font-face {font-family: "+zn[qn].fFamily+"; font-style: normal; src: url('"+zn[qn].fPath+"');}",Kn.appendChild(ar)}}else if(zn[qn].fOrigin==="g"||zn[qn].origin===1){for(sr=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),Qn=0;Qn<sr.length;Qn+=1)sr[Qn].href.indexOf(zn[qn].fPath)!==-1&&(nr=!1);if(nr){var cr=createTag("link");cr.setAttribute("f-forigin",zn[qn].fOrigin),cr.setAttribute("f-origin",zn[qn].origin),cr.type="text/css",cr.rel="stylesheet",cr.href=zn[qn].fPath,document.body.appendChild(cr)}}else if(zn[qn].fOrigin==="t"||zn[qn].origin===2){for(sr=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),Qn=0;Qn<sr.length;Qn+=1)zn[qn].fPath===sr[Qn].src&&(nr=!1);if(nr){var Yn=createTag("link");Yn.setAttribute("f-forigin",zn[qn].fOrigin),Yn.setAttribute("f-origin",zn[qn].origin),Yn.setAttribute("rel","stylesheet"),Yn.setAttribute("href",zn[qn].fPath),Kn.appendChild(Yn)}}zn[qn].helper=j(zn[qn],Kn),zn[qn].cache={},this.fonts.push(zn[qn])}Un===0?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}function Bn(Hn){if(Hn){this.chars||(this.chars=[]);var Kn,zn=Hn.length,qn,tr=this.chars.length,Un;for(Kn=0;Kn<zn;Kn+=1){for(qn=0,Un=!1;qn<tr;)this.chars[qn].style===Hn[Kn].style&&this.chars[qn].fFamily===Hn[Kn].fFamily&&this.chars[qn].ch===Hn[Kn].ch&&(Un=!0),qn+=1;Un||(this.chars.push(Hn[Kn]),tr+=1)}}}function w(Hn,Kn,zn){for(var qn=0,tr=this.chars.length;qn<tr;){if(this.chars[qn].ch===Hn&&this.chars[qn].style===Kn&&this.chars[qn].fFamily===zn)return this.chars[qn];qn+=1}return(typeof Hn=="string"&&Hn.charCodeAt(0)!==13||!Hn)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",Hn,Kn,zn)),u}function gn(Hn,Kn,zn){var qn=this.getFontByName(Kn),tr=Hn;if(!qn.cache[tr]){var Un=qn.helper;if(Hn===" "){var nr=Un.measureText("|"+Hn+"|"),sr=Un.measureText("||");qn.cache[tr]=(nr-sr)/100}else qn.cache[tr]=Un.measureText(Hn)/100}return qn.cache[tr]*zn}function re(Hn){for(var Kn=0,zn=this.fonts.length;Kn<zn;){if(this.fonts[Kn].fName===Hn)return this.fonts[Kn];Kn+=1}return this.fonts[0]}function Rn(Hn){var Kn=0,zn=Hn.charCodeAt(0);if(zn>=55296&&zn<=56319){var qn=Hn.charCodeAt(1);qn>=56320&&qn<=57343&&(Kn=(zn-55296)*1024+qn-56320+65536)}return Kn}function Vn(Hn,Kn){var zn=Hn.toString(16)+Kn.toString(16);return Pn.indexOf(zn)!==-1}function Wn(Hn){return Hn===g}function Gn(Hn){return Hn===m}function Zn(Hn){var Kn=Rn(Hn);return Kn>=y&&Kn<=b}function Xn(Hn){return Zn(Hn.substr(0,2))&&Zn(Hn.substr(2,2))}function er(Hn){return f.indexOf(Hn)!==-1}function Jn(Hn,Kn){var zn=Rn(Hn.substr(Kn,2));if(zn!==d)return!1;var qn=0;for(Kn+=2;qn<5;){if(zn=Rn(Hn.substr(Kn,2)),zn<v||zn>p)return!1;qn+=1,Kn+=2}return Rn(Hn.substr(Kn,2))===h}function ir(){this.isLoaded=!0}var dr=function(){this.fonts=[],this.chars=null,this.typekitLoaded=0,this.isLoaded=!1,this._warned=!1,this.initTime=Date.now(),this.setIsLoadedBinded=this.setIsLoaded.bind(this),this.checkLoadedFontsBinded=this.checkLoadedFonts.bind(this)};dr.isModifier=Vn,dr.isZeroWidthJoiner=Wn,dr.isFlagEmoji=Xn,dr.isRegionalCode=Zn,dr.isCombinedCharacter=er,dr.isRegionalFlag=Jn,dr.isVariationSelector=Gn,dr.BLACK_FLAG_CODE_POINT=d;var or={addChars:Bn,addFonts:Fn,getCharData:w,getFontByName:re,measureText:gn,checkLoadedFonts:J,setIsLoaded:ir};return dr.prototype=or,dr}();function SlotManager(c){this.animationData=c}SlotManager.prototype.getProp=function(c){return this.animationData.slots&&this.animationData.slots[c.sid]?Object.assign(c,this.animationData.slots[c.sid].p):c};function slotFactory(c){return new SlotManager(c)}function RenderableElement(){}RenderableElement.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(u){this.renderableComponents.indexOf(u)===-1&&this.renderableComponents.push(u)},removeRenderableComponent:function(u){this.renderableComponents.indexOf(u)!==-1&&this.renderableComponents.splice(this.renderableComponents.indexOf(u),1)},prepareRenderableFrame:function(u){this.checkLayerLimits(u)},checkTransparency:function(){this.finalTransform.mProp.o.v<=0?!this.isTransparent&&this.globalData.renderConfig.hideOnTransparent&&(this.isTransparent=!0,this.hide()):this.isTransparent&&(this.isTransparent=!1,this.show())},checkLayerLimits:function(u){this.data.ip-this.data.st<=u&&this.data.op-this.data.st>u?this.isInRange!==!0&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):this.isInRange!==!1&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide())},renderRenderable:function(){var u,f=this.renderableComponents.length;for(u=0;u<f;u+=1)this.renderableComponents[u].renderFrame(this._isFirstFrame)},sourceRectAtTime:function(){return{top:0,left:0,width:100,height:100}},getLayerSize:function(){return this.data.ty===5?{w:this.data.textData.width,h:this.data.textData.height}:{w:this.data.width,h:this.data.height}}};var getBlendMode=function(){var c={0:"source-over",1:"multiply",2:"screen",3:"overlay",4:"darken",5:"lighten",6:"color-dodge",7:"color-burn",8:"hard-light",9:"soft-light",10:"difference",11:"exclusion",12:"hue",13:"saturation",14:"color",15:"luminosity"};return function(u){return c[u]||""}}();function SliderEffect(c,u,f){this.p=PropertyFactory.getProp(u,c.v,0,0,f)}function AngleEffect(c,u,f){this.p=PropertyFactory.getProp(u,c.v,0,0,f)}function ColorEffect(c,u,f){this.p=PropertyFactory.getProp(u,c.v,1,0,f)}function PointEffect(c,u,f){this.p=PropertyFactory.getProp(u,c.v,1,0,f)}function LayerIndexEffect(c,u,f){this.p=PropertyFactory.getProp(u,c.v,0,0,f)}function MaskIndexEffect(c,u,f){this.p=PropertyFactory.getProp(u,c.v,0,0,f)}function CheckboxEffect(c,u,f){this.p=PropertyFactory.getProp(u,c.v,0,0,f)}function NoValueEffect(){this.p={}}function EffectsManager(c,u){var f=c.ef||[];this.effectElements=[];var d,h=f.length,v;for(d=0;d<h;d+=1)v=new GroupEffect(f[d],u),this.effectElements.push(v)}function GroupEffect(c,u){this.init(c,u)}extendPrototype([DynamicPropertyContainer],GroupEffect),GroupEffect.prototype.getValue=GroupEffect.prototype.iterateDynamicProperties,GroupEffect.prototype.init=function(c,u){this.data=c,this.effectElements=[],this.initDynamicPropertyContainer(u);var f,d=this.data.ef.length,h,v=this.data.ef;for(f=0;f<d;f+=1){switch(h=null,v[f].ty){case 0:h=new SliderEffect(v[f],u,this);break;case 1:h=new AngleEffect(v[f],u,this);break;case 2:h=new ColorEffect(v[f],u,this);break;case 3:h=new PointEffect(v[f],u,this);break;case 4:case 7:h=new CheckboxEffect(v[f],u,this);break;case 10:h=new LayerIndexEffect(v[f],u,this);break;case 11:h=new MaskIndexEffect(v[f],u,this);break;case 5:h=new EffectsManager(v[f],u);break;default:h=new NoValueEffect(v[f]);break}h&&this.effectElements.push(h)}};function BaseElement(){}BaseElement.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var u=0,f=this.data.masksProperties.length;u<f;){if(this.data.masksProperties[u].mode!=="n"&&this.data.masksProperties[u].cl!==!1)return!0;u+=1}return!1},initExpressions:function(){var u=getExpressionInterfaces();if(u){var f=u("layer"),d=u("effects"),h=u("shape"),v=u("text"),p=u("comp");this.layerInterface=f(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager);var m=d.createEffectsInterface(this,this.layerInterface);this.layerInterface.registerEffectsInterface(m),this.data.ty===0||this.data.xt?this.compInterface=p(this):this.data.ty===4?(this.layerInterface.shapeInterface=h(this.shapesData,this.itemsData,this.layerInterface),this.layerInterface.content=this.layerInterface.shapeInterface):this.data.ty===5&&(this.layerInterface.textInterface=v(this),this.layerInterface.text=this.layerInterface.textInterface)}},setBlendMode:function(){var u=getBlendMode(this.data.bm),f=this.baseElement||this.layerElement;f.style["mix-blend-mode"]=u},initBaseData:function(u,f,d){this.globalData=f,this.comp=d,this.data=u,this.layerId=createElementID(),this.data.sr||(this.data.sr=1),this.effectsManager=new EffectsManager(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}};function FrameElement(){}FrameElement.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(u,f){var d,h=this.dynamicProperties.length;for(d=0;d<h;d+=1)(f||this._isParent&&this.dynamicProperties[d].propType==="transform")&&(this.dynamicProperties[d].getValue(),this.dynamicProperties[d]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(u){this.dynamicProperties.indexOf(u)===-1&&this.dynamicProperties.push(u)}};function FootageElement(c,u,f){this.initFrame(),this.initRenderable(),this.assetData=u.getAssetData(c.refId),this.footageData=u.imageLoader.getAsset(this.assetData),this.initBaseData(c,u,f)}FootageElement.prototype.prepareFrame=function(){},extendPrototype([RenderableElement,BaseElement,FrameElement],FootageElement),FootageElement.prototype.getBaseElement=function(){return null},FootageElement.prototype.renderFrame=function(){},FootageElement.prototype.destroy=function(){},FootageElement.prototype.initExpressions=function(){var c=getExpressionInterfaces();if(c){var u=c("footage");this.layerInterface=u(this)}},FootageElement.prototype.getFootageData=function(){return this.footageData};function AudioElement(c,u,f){this.initFrame(),this.initRenderable(),this.assetData=u.getAssetData(c.refId),this.initBaseData(c,u,f),this._isPlaying=!1,this._canPlay=!1;var d=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(d),this._currentTime=0,this.globalData.audioController.addAudio(this),this._volumeMultiplier=1,this._volume=1,this._previousVolume=null,this.tm=c.tm?PropertyFactory.getProp(this,c.tm,0,u.frameRate,this):{_placeholder:!0},this.lv=PropertyFactory.getProp(this,c.au&&c.au.lv?c.au.lv:{k:[100]},1,.01,this)}AudioElement.prototype.prepareFrame=function(c){if(this.prepareRenderableFrame(c,!0),this.prepareProperties(c,!0),this.tm._placeholder)this._currentTime=c/this.data.sr;else{var u=this.tm.v;this._currentTime=u}this._volume=this.lv.v[0];var f=this._volume*this._volumeMultiplier;this._previousVolume!==f&&(this._previousVolume=f,this.audio.volume(f))},extendPrototype([RenderableElement,BaseElement,FrameElement],AudioElement),AudioElement.prototype.renderFrame=function(){this.isInRange&&this._canPlay&&(this._isPlaying?(!this.audio.playing()||Math.abs(this._currentTime/this.globalData.frameRate-this.audio.seek())>.1)&&this.audio.seek(this._currentTime/this.globalData.frameRate):(this.audio.play(),this.audio.seek(this._currentTime/this.globalData.frameRate),this._isPlaying=!0))},AudioElement.prototype.show=function(){},AudioElement.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},AudioElement.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},AudioElement.prototype.resume=function(){this._canPlay=!0},AudioElement.prototype.setRate=function(c){this.audio.rate(c)},AudioElement.prototype.volume=function(c){this._volumeMultiplier=c,this._previousVolume=c*this._volume,this.audio.volume(this._previousVolume)},AudioElement.prototype.getBaseElement=function(){return null},AudioElement.prototype.destroy=function(){},AudioElement.prototype.sourceRectAtTime=function(){},AudioElement.prototype.initExpressions=function(){};function BaseRenderer(){}BaseRenderer.prototype.checkLayers=function(c){var u,f=this.layers.length,d;for(this.completeLayers=!0,u=f-1;u>=0;u-=1)this.elements[u]||(d=this.layers[u],d.ip-d.st<=c-this.layers[u].st&&d.op-d.st>c-this.layers[u].st&&this.buildItem(u)),this.completeLayers=this.elements[u]?this.completeLayers:!1;this.checkPendingElements()},BaseRenderer.prototype.createItem=function(c){switch(c.ty){case 2:return this.createImage(c);case 0:return this.createComp(c);case 1:return this.createSolid(c);case 3:return this.createNull(c);case 4:return this.createShape(c);case 5:return this.createText(c);case 6:return this.createAudio(c);case 13:return this.createCamera(c);case 15:return this.createFootage(c);default:return this.createNull(c)}},BaseRenderer.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},BaseRenderer.prototype.createAudio=function(c){return new AudioElement(c,this.globalData,this)},BaseRenderer.prototype.createFootage=function(c){return new FootageElement(c,this.globalData,this)},BaseRenderer.prototype.buildAllItems=function(){var c,u=this.layers.length;for(c=0;c<u;c+=1)this.buildItem(c);this.checkPendingElements()},BaseRenderer.prototype.includeLayers=function(c){this.completeLayers=!1;var u,f=c.length,d,h=this.layers.length;for(u=0;u<f;u+=1)for(d=0;d<h;){if(this.layers[d].id===c[u].id){this.layers[d]=c[u];break}d+=1}},BaseRenderer.prototype.setProjectInterface=function(c){this.globalData.projectInterface=c},BaseRenderer.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},BaseRenderer.prototype.buildElementParenting=function(c,u,f){for(var d=this.elements,h=this.layers,v=0,p=h.length;v<p;)h[v].ind==u&&(!d[v]||d[v]===!0?(this.buildItem(v),this.addPendingElement(c)):(f.push(d[v]),d[v].setAsParent(),h[v].parent!==void 0?this.buildElementParenting(c,h[v].parent,f):c.setHierarchy(f))),v+=1},BaseRenderer.prototype.addPendingElement=function(c){this.pendingElements.push(c)},BaseRenderer.prototype.searchExtraCompositions=function(c){var u,f=c.length;for(u=0;u<f;u+=1)if(c[u].xt){var d=this.createComp(c[u]);d.initExpressions(),this.globalData.projectInterface.registerComposition(d)}},BaseRenderer.prototype.getElementById=function(c){var u,f=this.elements.length;for(u=0;u<f;u+=1)if(this.elements[u].data.ind===c)return this.elements[u];return null},BaseRenderer.prototype.getElementByPath=function(c){var u=c.shift(),f;if(typeof u=="number")f=this.elements[u];else{var d,h=this.elements.length;for(d=0;d<h;d+=1)if(this.elements[d].data.nm===u){f=this.elements[d];break}}return c.length===0?f:f.getElementByPath(c)},BaseRenderer.prototype.setupGlobalData=function(c,u){this.globalData.fontManager=new FontManager,this.globalData.slotManager=slotFactory(c),this.globalData.fontManager.addChars(c.chars),this.globalData.fontManager.addFonts(c.fonts,u),this.globalData.getAssetData=this.animationItem.getAssetData.bind(this.animationItem),this.globalData.getAssetsPath=this.animationItem.getAssetsPath.bind(this.animationItem),this.globalData.imageLoader=this.animationItem.imagePreloader,this.globalData.audioController=this.animationItem.audioController,this.globalData.frameId=0,this.globalData.frameRate=c.fr,this.globalData.nm=c.nm,this.globalData.compSize={w:c.w,h:c.h}};var effectTypes={TRANSFORM_EFFECT:"transformEFfect"};function TransformElement(){}TransformElement.prototype={initTransform:function(){var u=new Matrix;this.finalTransform={mProp:this.data.ks?TransformPropertyFactory.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_localMatMdf:!1,_opMdf:!1,mat:u,localMat:u,localOpacity:1},this.data.ao&&(this.finalTransform.mProp.autoOriented=!0),this.data.ty},renderTransform:function(){if(this.finalTransform._opMdf=this.finalTransform.mProp.o._mdf||this._isFirstFrame,this.finalTransform._matMdf=this.finalTransform.mProp._mdf||this._isFirstFrame,this.hierarchy){var u,f=this.finalTransform.mat,d=0,h=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;d<h;){if(this.hierarchy[d].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}d+=1}if(this.finalTransform._matMdf)for(u=this.finalTransform.mProp.v.props,f.cloneFromProps(u),d=0;d<h;d+=1)f.multiply(this.hierarchy[d].finalTransform.mProp.v)}this.finalTransform._matMdf&&(this.finalTransform._localMatMdf=this.finalTransform._matMdf),this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v)},renderLocalTransform:function(){if(this.localTransforms){var u=0,f=this.localTransforms.length;if(this.finalTransform._localMatMdf=this.finalTransform._matMdf,!this.finalTransform._localMatMdf||!this.finalTransform._opMdf)for(;u<f;)this.localTransforms[u]._mdf&&(this.finalTransform._localMatMdf=!0),this.localTransforms[u]._opMdf&&!this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v,this.finalTransform._opMdf=!0),u+=1;if(this.finalTransform._localMatMdf){var d=this.finalTransform.localMat;for(this.localTransforms[0].matrix.clone(d),u=1;u<f;u+=1){var h=this.localTransforms[u].matrix;d.multiply(h)}d.multiply(this.finalTransform.mat)}if(this.finalTransform._opMdf){var v=this.finalTransform.localOpacity;for(u=0;u<f;u+=1)v*=this.localTransforms[u].opacity*.01;this.finalTransform.localOpacity=v}}},searchEffectTransforms:function(){if(this.renderableEffectsManager){var u=this.renderableEffectsManager.getEffects(effectTypes.TRANSFORM_EFFECT);if(u.length){this.localTransforms=[],this.finalTransform.localMat=new Matrix;var f=0,d=u.length;for(f=0;f<d;f+=1)this.localTransforms.push(u[f])}}},globalToLocal:function(u){var f=[];f.push(this.finalTransform);for(var d=!0,h=this.comp;d;)h.finalTransform?(h.data.hasMask&&f.splice(0,0,h.finalTransform),h=h.comp):d=!1;var v,p=f.length,m;for(v=0;v<p;v+=1)m=f[v].mat.applyToPointArray(0,0,0),u=[u[0]-m[0],u[1]-m[1],0];return u},mHelper:new Matrix};function MaskElement(c,u,f){this.data=c,this.element=u,this.globalData=f,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var d=this.globalData.defs,h,v=this.masksProperties?this.masksProperties.length:0;this.viewData=createSizedArray(v),this.solidPath="";var p,m=this.masksProperties,g=0,y=[],b,Pn,x=createElementID(),vn,J,j,Fn,Bn="clipPath",w="clip-path";for(h=0;h<v;h+=1)if((m[h].mode!=="a"&&m[h].mode!=="n"||m[h].inv||m[h].o.k!==100||m[h].o.x)&&(Bn="mask",w="mask"),(m[h].mode==="s"||m[h].mode==="i")&&g===0?(vn=createNS("rect"),vn.setAttribute("fill","#ffffff"),vn.setAttribute("width",this.element.comp.data.w||0),vn.setAttribute("height",this.element.comp.data.h||0),y.push(vn)):vn=null,p=createNS("path"),m[h].mode==="n")this.viewData[h]={op:PropertyFactory.getProp(this.element,m[h].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,m[h],3),elem:p,lastPath:""},d.appendChild(p);else{g+=1,p.setAttribute("fill",m[h].mode==="s"?"#000000":"#ffffff"),p.setAttribute("clip-rule","nonzero");var gn;if(m[h].x.k!==0?(Bn="mask",w="mask",Fn=PropertyFactory.getProp(this.element,m[h].x,0,null,this.element),gn=createElementID(),J=createNS("filter"),J.setAttribute("id",gn),j=createNS("feMorphology"),j.setAttribute("operator","erode"),j.setAttribute("in","SourceGraphic"),j.setAttribute("radius","0"),J.appendChild(j),d.appendChild(J),p.setAttribute("stroke",m[h].mode==="s"?"#000000":"#ffffff")):(j=null,Fn=null),this.storedData[h]={elem:p,x:Fn,expan:j,lastPath:"",lastOperator:"",filterId:gn,lastRadius:0},m[h].mode==="i"){Pn=y.length;var re=createNS("g");for(b=0;b<Pn;b+=1)re.appendChild(y[b]);var Rn=createNS("mask");Rn.setAttribute("mask-type","alpha"),Rn.setAttribute("id",x+"_"+g),Rn.appendChild(p),d.appendChild(Rn),re.setAttribute("mask","url("+getLocationHref()+"#"+x+"_"+g+")"),y.length=0,y.push(re)}else y.push(p);m[h].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[h]={elem:p,lastPath:"",op:PropertyFactory.getProp(this.element,m[h].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,m[h],3),invRect:vn},this.viewData[h].prop.k||this.drawPath(m[h],this.viewData[h].prop.v,this.viewData[h])}for(this.maskElement=createNS(Bn),v=y.length,h=0;h<v;h+=1)this.maskElement.appendChild(y[h]);g>0&&(this.maskElement.setAttribute("id",x),this.element.maskedElement.setAttribute(w,"url("+getLocationHref()+"#"+x+")"),d.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}MaskElement.prototype.getMaskProperty=function(c){return this.viewData[c].prop},MaskElement.prototype.renderFrame=function(c){var u=this.element.finalTransform.mat,f,d=this.masksProperties.length;for(f=0;f<d;f+=1)if((this.viewData[f].prop._mdf||c)&&this.drawPath(this.masksProperties[f],this.viewData[f].prop.v,this.viewData[f]),(this.viewData[f].op._mdf||c)&&this.viewData[f].elem.setAttribute("fill-opacity",this.viewData[f].op.v),this.masksProperties[f].mode!=="n"&&(this.viewData[f].invRect&&(this.element.finalTransform.mProp._mdf||c)&&this.viewData[f].invRect.setAttribute("transform",u.getInverseMatrix().to2dCSS()),this.storedData[f].x&&(this.storedData[f].x._mdf||c))){var h=this.storedData[f].expan;this.storedData[f].x.v<0?(this.storedData[f].lastOperator!=="erode"&&(this.storedData[f].lastOperator="erode",this.storedData[f].elem.setAttribute("filter","url("+getLocationHref()+"#"+this.storedData[f].filterId+")")),h.setAttribute("radius",-this.storedData[f].x.v)):(this.storedData[f].lastOperator!=="dilate"&&(this.storedData[f].lastOperator="dilate",this.storedData[f].elem.setAttribute("filter",null)),this.storedData[f].elem.setAttribute("stroke-width",this.storedData[f].x.v*2))}},MaskElement.prototype.getMaskelement=function(){return this.maskElement},MaskElement.prototype.createLayerSolidPath=function(){var c="M0,0 ";return c+=" h"+this.globalData.compSize.w,c+=" v"+this.globalData.compSize.h,c+=" h-"+this.globalData.compSize.w,c+=" v-"+this.globalData.compSize.h+" ",c},MaskElement.prototype.drawPath=function(c,u,f){var d=" M"+u.v[0][0]+","+u.v[0][1],h,v;for(v=u._length,h=1;h<v;h+=1)d+=" C"+u.o[h-1][0]+","+u.o[h-1][1]+" "+u.i[h][0]+","+u.i[h][1]+" "+u.v[h][0]+","+u.v[h][1];if(u.c&&v>1&&(d+=" C"+u.o[h-1][0]+","+u.o[h-1][1]+" "+u.i[0][0]+","+u.i[0][1]+" "+u.v[0][0]+","+u.v[0][1]),f.lastPath!==d){var p="";f.elem&&(u.c&&(p=c.inv?this.solidPath+d:d),f.elem.setAttribute("d",p)),f.lastPath=d}},MaskElement.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var filtersFactory=function(){var c={};c.createFilter=u,c.createAlphaToLuminanceFilter=f;function u(d,h){var v=createNS("filter");return v.setAttribute("id",d),h!==!0&&(v.setAttribute("filterUnits","objectBoundingBox"),v.setAttribute("x","0%"),v.setAttribute("y","0%"),v.setAttribute("width","100%"),v.setAttribute("height","100%")),v}function f(){var d=createNS("feColorMatrix");return d.setAttribute("type","matrix"),d.setAttribute("color-interpolation-filters","sRGB"),d.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),d}return c}(),featureSupport=function(){var c={maskType:!0,svgLumaHidden:!0,offscreenCanvas:typeof OffscreenCanvas<"u"};return(/MSIE 10/i.test(navigator.userAgent)||/MSIE 9/i.test(navigator.userAgent)||/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent))&&(c.maskType=!1),/firefox/i.test(navigator.userAgent)&&(c.svgLumaHidden=!1),c}(),registeredEffects$1={},idPrefix="filter_result_";function SVGEffects(c){var u,f="SourceGraphic",d=c.data.ef?c.data.ef.length:0,h=createElementID(),v=filtersFactory.createFilter(h,!0),p=0;this.filters=[];var m;for(u=0;u<d;u+=1){m=null;var g=c.data.ef[u].ty;if(registeredEffects$1[g]){var y=registeredEffects$1[g].effect;m=new y(v,c.effectsManager.effectElements[u],c,idPrefix+p,f),f=idPrefix+p,registeredEffects$1[g].countsAsEffect&&(p+=1)}m&&this.filters.push(m)}p&&(c.globalData.defs.appendChild(v),c.layerElement.setAttribute("filter","url("+getLocationHref()+"#"+h+")")),this.filters.length&&c.addRenderableComponent(this)}SVGEffects.prototype.renderFrame=function(c){var u,f=this.filters.length;for(u=0;u<f;u+=1)this.filters[u].renderFrame(c)},SVGEffects.prototype.getEffects=function(c){var u,f=this.filters.length,d=[];for(u=0;u<f;u+=1)this.filters[u].type===c&&d.push(this.filters[u]);return d};function registerEffect$1(c,u,f){registeredEffects$1[c]={effect:u,countsAsEffect:f}}function SVGBaseElement(){}SVGBaseElement.prototype={initRendererElement:function(){this.layerElement=createNS("g")},createContainerElements:function(){this.matteElement=createNS("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var u=null;if(this.data.td){this.matteMasks={};var f=createNS("g");f.setAttribute("id",this.layerId),f.appendChild(this.layerElement),u=f,this.globalData.defs.appendChild(f)}else this.data.tt?(this.matteElement.appendChild(this.layerElement),u=this.matteElement,this.baseElement=this.matteElement):this.baseElement=this.layerElement;if(this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),this.data.ty===0&&!this.data.hd){var d=createNS("clipPath"),h=createNS("path");h.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var v=createElementID();if(d.setAttribute("id",v),d.appendChild(h),this.globalData.defs.appendChild(d),this.checkMasks()){var p=createNS("g");p.setAttribute("clip-path","url("+getLocationHref()+"#"+v+")"),p.appendChild(this.layerElement),this.transformedElement=p,u?u.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+v+")")}this.data.bm!==0&&this.setBlendMode()},renderElement:function(){this.finalTransform._localMatMdf&&this.transformedElement.setAttribute("transform",this.finalTransform.localMat.to2dCSS()),this.finalTransform._opMdf&&this.transformedElement.setAttribute("opacity",this.finalTransform.localOpacity)},destroyBaseElement:function(){this.layerElement=null,this.matteElement=null,this.maskManager.destroy()},getBaseElement:function(){return this.data.hd?null:this.baseElement},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData),this.renderableEffectsManager=new SVGEffects(this),this.searchEffectTransforms()},getMatte:function(u){if(this.matteMasks||(this.matteMasks={}),!this.matteMasks[u]){var f=this.layerId+"_"+u,d,h,v,p;if(u===1||u===3){var m=createNS("mask");m.setAttribute("id",f),m.setAttribute("mask-type",u===3?"luminance":"alpha"),v=createNS("use"),v.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),m.appendChild(v),this.globalData.defs.appendChild(m),!featureSupport.maskType&&u===1&&(m.setAttribute("mask-type","luminance"),d=createElementID(),h=filtersFactory.createFilter(d),this.globalData.defs.appendChild(h),h.appendChild(filtersFactory.createAlphaToLuminanceFilter()),p=createNS("g"),p.appendChild(v),m.appendChild(p),p.setAttribute("filter","url("+getLocationHref()+"#"+d+")"))}else if(u===2){var g=createNS("mask");g.setAttribute("id",f),g.setAttribute("mask-type","alpha");var y=createNS("g");g.appendChild(y),d=createElementID(),h=filtersFactory.createFilter(d);var b=createNS("feComponentTransfer");b.setAttribute("in","SourceGraphic"),h.appendChild(b);var Pn=createNS("feFuncA");Pn.setAttribute("type","table"),Pn.setAttribute("tableValues","1.0 0.0"),b.appendChild(Pn),this.globalData.defs.appendChild(h);var x=createNS("rect");x.setAttribute("width",this.comp.data.w),x.setAttribute("height",this.comp.data.h),x.setAttribute("x","0"),x.setAttribute("y","0"),x.setAttribute("fill","#ffffff"),x.setAttribute("opacity","0"),y.setAttribute("filter","url("+getLocationHref()+"#"+d+")"),y.appendChild(x),v=createNS("use"),v.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),y.appendChild(v),featureSupport.maskType||(g.setAttribute("mask-type","luminance"),h.appendChild(filtersFactory.createAlphaToLuminanceFilter()),p=createNS("g"),y.appendChild(x),p.appendChild(this.layerElement),y.appendChild(p)),this.globalData.defs.appendChild(g)}this.matteMasks[u]=f}return this.matteMasks[u]},setMatte:function(u){this.matteElement&&this.matteElement.setAttribute("mask","url("+getLocationHref()+"#"+u+")")}};function HierarchyElement(){}HierarchyElement.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(u){this.hierarchy=u},setAsParent:function(){this._isParent=!0},checkParenting:function(){this.data.parent!==void 0&&this.comp.buildElementParenting(this,this.data.parent,[])}};function RenderableDOMElement(){}(function(){var c={initElement:function(f,d,h){this.initFrame(),this.initBaseData(f,d,h),this.initTransform(f,d,h),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()},hide:function(){if(!this.hidden&&(!this.isInRange||this.isTransparent)){var f=this.baseElement||this.layerElement;f.style.display="none",this.hidden=!0}},show:function(){if(this.isInRange&&!this.isTransparent){if(!this.data.hd){var f=this.baseElement||this.layerElement;f.style.display="block"}this.hidden=!1,this._isFirstFrame=!0}},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},renderInnerContent:function(){},prepareFrame:function(f){this._mdf=!1,this.prepareRenderableFrame(f),this.prepareProperties(f,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}};extendPrototype([RenderableElement,createProxyFunction(c)],RenderableDOMElement)})();function IImageElement(c,u,f){this.assetData=u.getAssetData(c.refId),this.assetData&&this.assetData.sid&&(this.assetData=u.slotManager.getProp(this.assetData)),this.initElement(c,u,f),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],IImageElement),IImageElement.prototype.createContent=function(){var c=this.globalData.getAssetsPath(this.assetData);this.innerElem=createNS("image"),this.innerElem.setAttribute("width",this.assetData.w+"px"),this.innerElem.setAttribute("height",this.assetData.h+"px"),this.innerElem.setAttribute("preserveAspectRatio",this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio),this.innerElem.setAttributeNS("http://www.w3.org/1999/xlink","href",c),this.layerElement.appendChild(this.innerElem)},IImageElement.prototype.sourceRectAtTime=function(){return this.sourceRect};function ProcessedElement(c,u){this.elem=c,this.pos=u}function IShapeElement(){}IShapeElement.prototype={addShapeToModifiers:function(u){var f,d=this.shapeModifiers.length;for(f=0;f<d;f+=1)this.shapeModifiers[f].addShape(u)},isShapeInAnimatedModifiers:function(u){for(var f=0,d=this.shapeModifiers.length;f<d;)if(this.shapeModifiers[f].isAnimatedWithShape(u))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var u,f=this.shapes.length;for(u=0;u<f;u+=1)this.shapes[u].sh.reset();f=this.shapeModifiers.length;var d;for(u=f-1;u>=0&&(d=this.shapeModifiers[u].processShapes(this._isFirstFrame),!d);u-=1);}},searchProcessedElement:function(u){for(var f=this.processedElements,d=0,h=f.length;d<h;){if(f[d].elem===u)return f[d].pos;d+=1}return 0},addProcessedElement:function(u,f){for(var d=this.processedElements,h=d.length;h;)if(h-=1,d[h].elem===u){d[h].pos=f;return}d.push(new ProcessedElement(u,f))},prepareFrame:function(u){this.prepareRenderableFrame(u),this.prepareProperties(u,this.isInRange)}};var lineCapEnum={1:"butt",2:"round",3:"square"},lineJoinEnum={1:"miter",2:"round",3:"bevel"};function SVGShapeData(c,u,f){this.caches=[],this.styles=[],this.transformers=c,this.lStr="",this.sh=f,this.lvl=u,this._isAnimated=!!f.k;for(var d=0,h=c.length;d<h;){if(c[d].mProps.dynamicProperties.length){this._isAnimated=!0;break}d+=1}}SVGShapeData.prototype.setAsAnimated=function(){this._isAnimated=!0};function SVGStyleData(c,u){this.data=c,this.type=c.ty,this.d="",this.lvl=u,this._mdf=!1,this.closed=c.hd===!0,this.pElem=createNS("path"),this.msElem=null}SVGStyleData.prototype.reset=function(){this.d="",this._mdf=!1};function DashProperty(c,u,f,d){this.elem=c,this.frameId=-1,this.dataProps=createSizedArray(u.length),this.renderer=f,this.k=!1,this.dashStr="",this.dashArray=createTypedArray("float32",u.length?u.length-1:0),this.dashoffset=createTypedArray("float32",1),this.initDynamicPropertyContainer(d);var h,v=u.length||0,p;for(h=0;h<v;h+=1)p=PropertyFactory.getProp(c,u[h].v,0,0,this),this.k=p.k||this.k,this.dataProps[h]={n:u[h].n,p};this.k||this.getValue(!0),this._isAnimated=this.k}DashProperty.prototype.getValue=function(c){if(!(this.elem.globalData.frameId===this.frameId&&!c)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||c,this._mdf)){var u=0,f=this.dataProps.length;for(this.renderer==="svg"&&(this.dashStr=""),u=0;u<f;u+=1)this.dataProps[u].n!=="o"?this.renderer==="svg"?this.dashStr+=" "+this.dataProps[u].p.v:this.dashArray[u]=this.dataProps[u].p.v:this.dashoffset[0]=this.dataProps[u].p.v}},extendPrototype([DynamicPropertyContainer],DashProperty);function SVGStrokeStyleData(c,u,f){this.initDynamicPropertyContainer(c),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(c,u.o,0,.01,this),this.w=PropertyFactory.getProp(c,u.w,0,null,this),this.d=new DashProperty(c,u.d||{},"svg",this),this.c=PropertyFactory.getProp(c,u.c,1,255,this),this.style=f,this._isAnimated=!!this._isAnimated}extendPrototype([DynamicPropertyContainer],SVGStrokeStyleData);function SVGFillStyleData(c,u,f){this.initDynamicPropertyContainer(c),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(c,u.o,0,.01,this),this.c=PropertyFactory.getProp(c,u.c,1,255,this),this.style=f}extendPrototype([DynamicPropertyContainer],SVGFillStyleData);function SVGNoStyleData(c,u,f){this.initDynamicPropertyContainer(c),this.getValue=this.iterateDynamicProperties,this.style=f}extendPrototype([DynamicPropertyContainer],SVGNoStyleData);function GradientProperty(c,u,f){this.data=u,this.c=createTypedArray("uint8c",u.p*4);var d=u.k.k[0].s?u.k.k[0].s.length-u.p*4:u.k.k.length-u.p*4;this.o=createTypedArray("float32",d),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=d,this.initDynamicPropertyContainer(f),this.prop=PropertyFactory.getProp(c,u.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}GradientProperty.prototype.comparePoints=function(c,u){for(var f=0,d=this.o.length/2,h;f<d;){if(h=Math.abs(c[f*4]-c[u*4+f*2]),h>.01)return!1;f+=1}return!0},GradientProperty.prototype.checkCollapsable=function(){if(this.o.length/2!==this.c.length/4)return!1;if(this.data.k.k[0].s)for(var c=0,u=this.data.k.k.length;c<u;){if(!this.comparePoints(this.data.k.k[c].s,this.data.p))return!1;c+=1}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},GradientProperty.prototype.getValue=function(c){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||c){var u,f=this.data.p*4,d,h;for(u=0;u<f;u+=1)d=u%4===0?100:255,h=Math.round(this.prop.v[u]*d),this.c[u]!==h&&(this.c[u]=h,this._cmdf=!c);if(this.o.length)for(f=this.prop.v.length,u=this.data.p*4;u<f;u+=1)d=u%2===0?100:1,h=u%2===0?Math.round(this.prop.v[u]*100):this.prop.v[u],this.o[u-this.data.p*4]!==h&&(this.o[u-this.data.p*4]=h,this._omdf=!c);this._mdf=!c}},extendPrototype([DynamicPropertyContainer],GradientProperty);function SVGGradientFillStyleData(c,u,f){this.initDynamicPropertyContainer(c),this.getValue=this.iterateDynamicProperties,this.initGradientData(c,u,f)}SVGGradientFillStyleData.prototype.initGradientData=function(c,u,f){this.o=PropertyFactory.getProp(c,u.o,0,.01,this),this.s=PropertyFactory.getProp(c,u.s,1,null,this),this.e=PropertyFactory.getProp(c,u.e,1,null,this),this.h=PropertyFactory.getProp(c,u.h||{k:0},0,.01,this),this.a=PropertyFactory.getProp(c,u.a||{k:0},0,degToRads,this),this.g=new GradientProperty(c,u.g,this),this.style=f,this.stops=[],this.setGradientData(f.pElem,u),this.setGradientOpacity(u,f),this._isAnimated=!!this._isAnimated},SVGGradientFillStyleData.prototype.setGradientData=function(c,u){var f=createElementID(),d=createNS(u.t===1?"linearGradient":"radialGradient");d.setAttribute("id",f),d.setAttribute("spreadMethod","pad"),d.setAttribute("gradientUnits","userSpaceOnUse");var h=[],v,p,m;for(m=u.g.p*4,p=0;p<m;p+=4)v=createNS("stop"),d.appendChild(v),h.push(v);c.setAttribute(u.ty==="gf"?"fill":"stroke","url("+getLocationHref()+"#"+f+")"),this.gf=d,this.cst=h},SVGGradientFillStyleData.prototype.setGradientOpacity=function(c,u){if(this.g._hasOpacity&&!this.g._collapsable){var f,d,h,v=createNS("mask"),p=createNS("path");v.appendChild(p);var m=createElementID(),g=createElementID();v.setAttribute("id",g);var y=createNS(c.t===1?"linearGradient":"radialGradient");y.setAttribute("id",m),y.setAttribute("spreadMethod","pad"),y.setAttribute("gradientUnits","userSpaceOnUse"),h=c.g.k.k[0].s?c.g.k.k[0].s.length:c.g.k.k.length;var b=this.stops;for(d=c.g.p*4;d<h;d+=2)f=createNS("stop"),f.setAttribute("stop-color","rgb(255,255,255)"),y.appendChild(f),b.push(f);p.setAttribute(c.ty==="gf"?"fill":"stroke","url("+getLocationHref()+"#"+m+")"),c.ty==="gs"&&(p.setAttribute("stroke-linecap",lineCapEnum[c.lc||2]),p.setAttribute("stroke-linejoin",lineJoinEnum[c.lj||2]),c.lj===1&&p.setAttribute("stroke-miterlimit",c.ml)),this.of=y,this.ms=v,this.ost=b,this.maskId=g,u.msElem=p}},extendPrototype([DynamicPropertyContainer],SVGGradientFillStyleData);function SVGGradientStrokeStyleData(c,u,f){this.initDynamicPropertyContainer(c),this.getValue=this.iterateDynamicProperties,this.w=PropertyFactory.getProp(c,u.w,0,null,this),this.d=new DashProperty(c,u.d||{},"svg",this),this.initGradientData(c,u,f),this._isAnimated=!!this._isAnimated}extendPrototype([SVGGradientFillStyleData,DynamicPropertyContainer],SVGGradientStrokeStyleData);function ShapeGroupData(){this.it=[],this.prevViewData=[],this.gr=createNS("g")}function SVGTransformData(c,u,f){this.transform={mProps:c,op:u,container:f},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}var buildShapeString=function(u,f,d,h){if(f===0)return"";var v=u.o,p=u.i,m=u.v,g,y=" M"+h.applyToPointStringified(m[0][0],m[0][1]);for(g=1;g<f;g+=1)y+=" C"+h.applyToPointStringified(v[g-1][0],v[g-1][1])+" "+h.applyToPointStringified(p[g][0],p[g][1])+" "+h.applyToPointStringified(m[g][0],m[g][1]);return d&&f&&(y+=" C"+h.applyToPointStringified(v[g-1][0],v[g-1][1])+" "+h.applyToPointStringified(p[0][0],p[0][1])+" "+h.applyToPointStringified(m[0][0],m[0][1]),y+="z"),y},SVGElementsRenderer=function(){var c=new Matrix,u=new Matrix,f={createRenderFunction:d};function d(Pn){switch(Pn.ty){case"fl":return m;case"gf":return y;case"gs":return g;case"st":return b;case"sh":case"el":case"rc":case"sr":return p;case"tr":return h;case"no":return v;default:return null}}function h(Pn,x,vn){(vn||x.transform.op._mdf)&&x.transform.container.setAttribute("opacity",x.transform.op.v),(vn||x.transform.mProps._mdf)&&x.transform.container.setAttribute("transform",x.transform.mProps.v.to2dCSS())}function v(){}function p(Pn,x,vn){var J,j,Fn,Bn,w,gn,re=x.styles.length,Rn=x.lvl,Vn,Wn,Gn,Zn;for(gn=0;gn<re;gn+=1){if(Bn=x.sh._mdf||vn,x.styles[gn].lvl<Rn){for(Wn=u.reset(),Gn=Rn-x.styles[gn].lvl,Zn=x.transformers.length-1;!Bn&&Gn>0;)Bn=x.transformers[Zn].mProps._mdf||Bn,Gn-=1,Zn-=1;if(Bn)for(Gn=Rn-x.styles[gn].lvl,Zn=x.transformers.length-1;Gn>0;)Wn.multiply(x.transformers[Zn].mProps.v),Gn-=1,Zn-=1}else Wn=c;if(Vn=x.sh.paths,j=Vn._length,Bn){for(Fn="",J=0;J<j;J+=1)w=Vn.shapes[J],w&&w._length&&(Fn+=buildShapeString(w,w._length,w.c,Wn));x.caches[gn]=Fn}else Fn=x.caches[gn];x.styles[gn].d+=Pn.hd===!0?"":Fn,x.styles[gn]._mdf=Bn||x.styles[gn]._mdf}}function m(Pn,x,vn){var J=x.style;(x.c._mdf||vn)&&J.pElem.setAttribute("fill","rgb("+bmFloor(x.c.v[0])+","+bmFloor(x.c.v[1])+","+bmFloor(x.c.v[2])+")"),(x.o._mdf||vn)&&J.pElem.setAttribute("fill-opacity",x.o.v)}function g(Pn,x,vn){y(Pn,x,vn),b(Pn,x,vn)}function y(Pn,x,vn){var J=x.gf,j=x.g._hasOpacity,Fn=x.s.v,Bn=x.e.v;if(x.o._mdf||vn){var w=Pn.ty==="gf"?"fill-opacity":"stroke-opacity";x.style.pElem.setAttribute(w,x.o.v)}if(x.s._mdf||vn){var gn=Pn.t===1?"x1":"cx",re=gn==="x1"?"y1":"cy";J.setAttribute(gn,Fn[0]),J.setAttribute(re,Fn[1]),j&&!x.g._collapsable&&(x.of.setAttribute(gn,Fn[0]),x.of.setAttribute(re,Fn[1]))}var Rn,Vn,Wn,Gn;if(x.g._cmdf||vn){Rn=x.cst;var Zn=x.g.c;for(Wn=Rn.length,Vn=0;Vn<Wn;Vn+=1)Gn=Rn[Vn],Gn.setAttribute("offset",Zn[Vn*4]+"%"),Gn.setAttribute("stop-color","rgb("+Zn[Vn*4+1]+","+Zn[Vn*4+2]+","+Zn[Vn*4+3]+")")}if(j&&(x.g._omdf||vn)){var Xn=x.g.o;for(x.g._collapsable?Rn=x.cst:Rn=x.ost,Wn=Rn.length,Vn=0;Vn<Wn;Vn+=1)Gn=Rn[Vn],x.g._collapsable||Gn.setAttribute("offset",Xn[Vn*2]+"%"),Gn.setAttribute("stop-opacity",Xn[Vn*2+1])}if(Pn.t===1)(x.e._mdf||vn)&&(J.setAttribute("x2",Bn[0]),J.setAttribute("y2",Bn[1]),j&&!x.g._collapsable&&(x.of.setAttribute("x2",Bn[0]),x.of.setAttribute("y2",Bn[1])));else{var er;if((x.s._mdf||x.e._mdf||vn)&&(er=Math.sqrt(Math.pow(Fn[0]-Bn[0],2)+Math.pow(Fn[1]-Bn[1],2)),J.setAttribute("r",er),j&&!x.g._collapsable&&x.of.setAttribute("r",er)),x.e._mdf||x.h._mdf||x.a._mdf||vn){er||(er=Math.sqrt(Math.pow(Fn[0]-Bn[0],2)+Math.pow(Fn[1]-Bn[1],2)));var Jn=Math.atan2(Bn[1]-Fn[1],Bn[0]-Fn[0]),ir=x.h.v;ir>=1?ir=.99:ir<=-1&&(ir=-.99);var dr=er*ir,or=Math.cos(Jn+x.a.v)*dr+Fn[0],Hn=Math.sin(Jn+x.a.v)*dr+Fn[1];J.setAttribute("fx",or),J.setAttribute("fy",Hn),j&&!x.g._collapsable&&(x.of.setAttribute("fx",or),x.of.setAttribute("fy",Hn))}}}function b(Pn,x,vn){var J=x.style,j=x.d;j&&(j._mdf||vn)&&j.dashStr&&(J.pElem.setAttribute("stroke-dasharray",j.dashStr),J.pElem.setAttribute("stroke-dashoffset",j.dashoffset[0])),x.c&&(x.c._mdf||vn)&&J.pElem.setAttribute("stroke","rgb("+bmFloor(x.c.v[0])+","+bmFloor(x.c.v[1])+","+bmFloor(x.c.v[2])+")"),(x.o._mdf||vn)&&J.pElem.setAttribute("stroke-opacity",x.o.v),(x.w._mdf||vn)&&(J.pElem.setAttribute("stroke-width",x.w.v),J.msElem&&J.msElem.setAttribute("stroke-width",x.w.v))}return f}();function SVGShapeElement(c,u,f){this.shapes=[],this.shapesData=c.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(c,u,f),this.prevViewData=[]}extendPrototype([BaseElement,TransformElement,SVGBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableDOMElement],SVGShapeElement),SVGShapeElement.prototype.initSecondaryElement=function(){},SVGShapeElement.prototype.identityMatrix=new Matrix,SVGShapeElement.prototype.buildExpressionInterface=function(){},SVGShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},SVGShapeElement.prototype.filterUniqueShapes=function(){var c,u=this.shapes.length,f,d,h=this.stylesList.length,v,p=[],m=!1;for(d=0;d<h;d+=1){for(v=this.stylesList[d],m=!1,p.length=0,c=0;c<u;c+=1)f=this.shapes[c],f.styles.indexOf(v)!==-1&&(p.push(f),m=f._isAnimated||m);p.length>1&&m&&this.setShapesAsAnimated(p)}},SVGShapeElement.prototype.setShapesAsAnimated=function(c){var u,f=c.length;for(u=0;u<f;u+=1)c[u].setAsAnimated()},SVGShapeElement.prototype.createStyleElement=function(c,u){var f,d=new SVGStyleData(c,u),h=d.pElem;if(c.ty==="st")f=new SVGStrokeStyleData(this,c,d);else if(c.ty==="fl")f=new SVGFillStyleData(this,c,d);else if(c.ty==="gf"||c.ty==="gs"){var v=c.ty==="gf"?SVGGradientFillStyleData:SVGGradientStrokeStyleData;f=new v(this,c,d),this.globalData.defs.appendChild(f.gf),f.maskId&&(this.globalData.defs.appendChild(f.ms),this.globalData.defs.appendChild(f.of),h.setAttribute("mask","url("+getLocationHref()+"#"+f.maskId+")"))}else c.ty==="no"&&(f=new SVGNoStyleData(this,c,d));return(c.ty==="st"||c.ty==="gs")&&(h.setAttribute("stroke-linecap",lineCapEnum[c.lc||2]),h.setAttribute("stroke-linejoin",lineJoinEnum[c.lj||2]),h.setAttribute("fill-opacity","0"),c.lj===1&&h.setAttribute("stroke-miterlimit",c.ml)),c.r===2&&h.setAttribute("fill-rule","evenodd"),c.ln&&h.setAttribute("id",c.ln),c.cl&&h.setAttribute("class",c.cl),c.bm&&(h.style["mix-blend-mode"]=getBlendMode(c.bm)),this.stylesList.push(d),this.addToAnimatedContents(c,f),f},SVGShapeElement.prototype.createGroupElement=function(c){var u=new ShapeGroupData;return c.ln&&u.gr.setAttribute("id",c.ln),c.cl&&u.gr.setAttribute("class",c.cl),c.bm&&(u.gr.style["mix-blend-mode"]=getBlendMode(c.bm)),u},SVGShapeElement.prototype.createTransformElement=function(c,u){var f=TransformPropertyFactory.getTransformProperty(this,c,this),d=new SVGTransformData(f,f.o,u);return this.addToAnimatedContents(c,d),d},SVGShapeElement.prototype.createShapeElement=function(c,u,f){var d=4;c.ty==="rc"?d=5:c.ty==="el"?d=6:c.ty==="sr"&&(d=7);var h=ShapePropertyFactory.getShapeProp(this,c,d,this),v=new SVGShapeData(u,f,h);return this.shapes.push(v),this.addShapeToModifiers(v),this.addToAnimatedContents(c,v),v},SVGShapeElement.prototype.addToAnimatedContents=function(c,u){for(var f=0,d=this.animatedContents.length;f<d;){if(this.animatedContents[f].element===u)return;f+=1}this.animatedContents.push({fn:SVGElementsRenderer.createRenderFunction(c),element:u,data:c})},SVGShapeElement.prototype.setElementStyles=function(c){var u=c.styles,f,d=this.stylesList.length;for(f=0;f<d;f+=1)this.stylesList[f].closed||u.push(this.stylesList[f])},SVGShapeElement.prototype.reloadShapes=function(){this._isFirstFrame=!0;var c,u=this.itemsData.length;for(c=0;c<u;c+=1)this.prevViewData[c]=this.itemsData[c];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),u=this.dynamicProperties.length,c=0;c<u;c+=1)this.dynamicProperties[c].getValue();this.renderModifiers()},SVGShapeElement.prototype.searchShapes=function(c,u,f,d,h,v,p){var m=[].concat(v),g,y=c.length-1,b,Pn,x=[],vn=[],J,j,Fn;for(g=y;g>=0;g-=1){if(Fn=this.searchProcessedElement(c[g]),Fn?u[g]=f[Fn-1]:c[g]._render=p,c[g].ty==="fl"||c[g].ty==="st"||c[g].ty==="gf"||c[g].ty==="gs"||c[g].ty==="no")Fn?u[g].style.closed=!1:u[g]=this.createStyleElement(c[g],h),c[g]._render&&u[g].style.pElem.parentNode!==d&&d.appendChild(u[g].style.pElem),x.push(u[g].style);else if(c[g].ty==="gr"){if(!Fn)u[g]=this.createGroupElement(c[g]);else for(Pn=u[g].it.length,b=0;b<Pn;b+=1)u[g].prevViewData[b]=u[g].it[b];this.searchShapes(c[g].it,u[g].it,u[g].prevViewData,u[g].gr,h+1,m,p),c[g]._render&&u[g].gr.parentNode!==d&&d.appendChild(u[g].gr)}else c[g].ty==="tr"?(Fn||(u[g]=this.createTransformElement(c[g],d)),J=u[g].transform,m.push(J)):c[g].ty==="sh"||c[g].ty==="rc"||c[g].ty==="el"||c[g].ty==="sr"?(Fn||(u[g]=this.createShapeElement(c[g],m,h)),this.setElementStyles(u[g])):c[g].ty==="tm"||c[g].ty==="rd"||c[g].ty==="ms"||c[g].ty==="pb"||c[g].ty==="zz"||c[g].ty==="op"?(Fn?(j=u[g],j.closed=!1):(j=ShapeModifiers.getModifier(c[g].ty),j.init(this,c[g]),u[g]=j,this.shapeModifiers.push(j)),vn.push(j)):c[g].ty==="rp"&&(Fn?(j=u[g],j.closed=!0):(j=ShapeModifiers.getModifier(c[g].ty),u[g]=j,j.init(this,c,g,u),this.shapeModifiers.push(j),p=!1),vn.push(j));this.addProcessedElement(c[g],g+1)}for(y=x.length,g=0;g<y;g+=1)x[g].closed=!0;for(y=vn.length,g=0;g<y;g+=1)vn[g].closed=!0},SVGShapeElement.prototype.renderInnerContent=function(){this.renderModifiers();var c,u=this.stylesList.length;for(c=0;c<u;c+=1)this.stylesList[c].reset();for(this.renderShape(),c=0;c<u;c+=1)(this.stylesList[c]._mdf||this._isFirstFrame)&&(this.stylesList[c].msElem&&(this.stylesList[c].msElem.setAttribute("d",this.stylesList[c].d),this.stylesList[c].d="M0 0"+this.stylesList[c].d),this.stylesList[c].pElem.setAttribute("d",this.stylesList[c].d||"M0 0"))},SVGShapeElement.prototype.renderShape=function(){var c,u=this.animatedContents.length,f;for(c=0;c<u;c+=1)f=this.animatedContents[c],(this._isFirstFrame||f.element._isAnimated)&&f.data!==!0&&f.fn(f.data,f.element,this._isFirstFrame)},SVGShapeElement.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null};function LetterProps(c,u,f,d,h,v){this.o=c,this.sw=u,this.sc=f,this.fc=d,this.m=h,this.p=v,this._mdf={o:!0,sw:!!u,sc:!!f,fc:!!d,m:!0,p:!0}}LetterProps.prototype.update=function(c,u,f,d,h,v){this._mdf.o=!1,this._mdf.sw=!1,this._mdf.sc=!1,this._mdf.fc=!1,this._mdf.m=!1,this._mdf.p=!1;var p=!1;return this.o!==c&&(this.o=c,this._mdf.o=!0,p=!0),this.sw!==u&&(this.sw=u,this._mdf.sw=!0,p=!0),this.sc!==f&&(this.sc=f,this._mdf.sc=!0,p=!0),this.fc!==d&&(this.fc=d,this._mdf.fc=!0,p=!0),this.m!==h&&(this.m=h,this._mdf.m=!0,p=!0),v.length&&(this.p[0]!==v[0]||this.p[1]!==v[1]||this.p[4]!==v[4]||this.p[5]!==v[5]||this.p[12]!==v[12]||this.p[13]!==v[13])&&(this.p=v,this._mdf.p=!0,p=!0),p};function TextProperty(c,u){this._frameId=initialDefaultFrame,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,u.d&&u.d.sid&&(u.d=c.globalData.slotManager.getProp(u.d)),this.data=u,this.elem=c,this.comp=this.elem.comp,this.keysIndex=0,this.canResize=!1,this.minimumFontSize=1,this.effectsSequence=[],this.currentData={ascent:0,boxWidth:this.defaultBoxWidth,f:"",fStyle:"",fWeight:"",fc:"",j:"",justifyOffset:"",l:[],lh:0,lineWidths:[],ls:"",of:"",s:"",sc:"",sw:0,t:0,tr:0,sz:0,ps:null,fillColorAnim:!1,strokeColorAnim:!1,strokeWidthAnim:!1,yOffset:0,finalSize:0,finalText:[],finalLineHeight:0,__complete:!1},this.copyData(this.currentData,this.data.d.k[0].s),this.searchProperty()||this.completeTextData(this.currentData)}TextProperty.prototype.defaultBoxWidth=[0,0],TextProperty.prototype.copyData=function(c,u){for(var f in u)Object.prototype.hasOwnProperty.call(u,f)&&(c[f]=u[f]);return c},TextProperty.prototype.setCurrentData=function(c){c.__complete||this.completeTextData(c),this.currentData=c,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},TextProperty.prototype.searchProperty=function(){return this.searchKeyframes()},TextProperty.prototype.searchKeyframes=function(){return this.kf=this.data.d.k.length>1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},TextProperty.prototype.addEffect=function(c){this.effectsSequence.push(c),this.elem.addDynamicProperty(this)},TextProperty.prototype.getValue=function(c){if(!((this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)&&!c)){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var u=this.currentData,f=this.keysIndex;if(this.lock){this.setCurrentData(this.currentData);return}this.lock=!0,this._mdf=!1;var d,h=this.effectsSequence.length,v=c||this.data.d.k[this.keysIndex].s;for(d=0;d<h;d+=1)f!==this.keysIndex?v=this.effectsSequence[d](v,v.t):v=this.effectsSequence[d](this.currentData,v.t);u!==v&&this.setCurrentData(v),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId}},TextProperty.prototype.getKeyframeValue=function(){for(var c=this.data.d.k,u=this.elem.comp.renderedFrame,f=0,d=c.length;f<=d-1&&!(f===d-1||c[f+1].t>u);)f+=1;return this.keysIndex!==f&&(this.keysIndex=f),this.data.d.k[this.keysIndex].s},TextProperty.prototype.buildFinalText=function(c){for(var u=[],f=0,d=c.length,h,v,p=!1,m=!1,g="";f<d;)p=m,m=!1,h=c.charCodeAt(f),g=c.charAt(f),FontManager.isCombinedCharacter(h)?p=!0:h>=55296&&h<=56319?FontManager.isRegionalFlag(c,f)?g=c.substr(f,14):(v=c.charCodeAt(f+1),v>=56320&&v<=57343&&(FontManager.isModifier(h,v)?(g=c.substr(f,2),p=!0):FontManager.isFlagEmoji(c.substr(f,4))?g=c.substr(f,4):g=c.substr(f,2))):h>56319?(v=c.charCodeAt(f+1),FontManager.isVariationSelector(h)&&(p=!0)):FontManager.isZeroWidthJoiner(h)&&(p=!0,m=!0),p?(u[u.length-1]+=g,p=!1):u.push(g),f+=g.length;return u},TextProperty.prototype.completeTextData=function(c){c.__complete=!0;var u=this.elem.globalData.fontManager,f=this.data,d=[],h,v,p,m=0,g,y=f.m.g,b=0,Pn=0,x=0,vn=[],J=0,j=0,Fn,Bn,w=u.getFontByName(c.f),gn,re=0,Rn=getFontProperties(w);c.fWeight=Rn.weight,c.fStyle=Rn.style,c.finalSize=c.s,c.finalText=this.buildFinalText(c.t),v=c.finalText.length,c.finalLineHeight=c.lh;var Vn=c.tr/1e3*c.finalSize,Wn;if(c.sz)for(var Gn=!0,Zn=c.sz[0],Xn=c.sz[1],er,Jn;Gn;){Jn=this.buildFinalText(c.t),er=0,J=0,v=Jn.length,Vn=c.tr/1e3*c.finalSize;var ir=-1;for(h=0;h<v;h+=1)Wn=Jn[h].charCodeAt(0),p=!1,Jn[h]===" "?ir=h:(Wn===13||Wn===3)&&(J=0,p=!0,er+=c.finalLineHeight||c.finalSize*1.2),u.chars?(gn=u.getCharData(Jn[h],w.fStyle,w.fFamily),re=p?0:gn.w*c.finalSize/100):re=u.measureText(Jn[h],c.f,c.finalSize),J+re>Zn&&Jn[h]!==" "?(ir===-1?v+=1:h=ir,er+=c.finalLineHeight||c.finalSize*1.2,Jn.splice(h,ir===h?1:0,"\r"),ir=-1,J=0):(J+=re,J+=Vn);er+=w.ascent*c.finalSize/100,this.canResize&&c.finalSize>this.minimumFontSize&&Xn<er?(c.finalSize-=1,c.finalLineHeight=c.finalSize*c.lh/c.s):(c.finalText=Jn,v=c.finalText.length,Gn=!1)}J=-Vn,re=0;var dr=0,or;for(h=0;h<v;h+=1)if(p=!1,or=c.finalText[h],Wn=or.charCodeAt(0),Wn===13||Wn===3?(dr=0,vn.push(J),j=J>j?J:j,J=-2*Vn,g="",p=!0,x+=1):g=or,u.chars?(gn=u.getCharData(or,w.fStyle,u.getFontByName(c.f).fFamily),re=p?0:gn.w*c.finalSize/100):re=u.measureText(g,c.f,c.finalSize),or===" "?dr+=re+Vn:(J+=re+Vn+dr,dr=0),d.push({l:re,an:re,add:b,n:p,anIndexes:[],val:g,line:x,animatorJustifyOffset:0}),y==2){if(b+=re,g===""||g===" "||h===v-1){for((g===""||g===" ")&&(b-=re);Pn<=h;)d[Pn].an=b,d[Pn].ind=m,d[Pn].extra=re,Pn+=1;m+=1,b=0}}else if(y==3){if(b+=re,g===""||h===v-1){for(g===""&&(b-=re);Pn<=h;)d[Pn].an=b,d[Pn].ind=m,d[Pn].extra=re,Pn+=1;b=0,m+=1}}else d[m].ind=m,d[m].extra=0,m+=1;if(c.l=d,j=J>j?J:j,vn.push(J),c.sz)c.boxWidth=c.sz[0],c.justifyOffset=0;else switch(c.boxWidth=j,c.j){case 1:c.justifyOffset=-c.boxWidth;break;case 2:c.justifyOffset=-c.boxWidth/2;break;default:c.justifyOffset=0}c.lineWidths=vn;var Hn=f.a,Kn,zn;Bn=Hn.length;var qn,tr,Un=[];for(Fn=0;Fn<Bn;Fn+=1){for(Kn=Hn[Fn],Kn.a.sc&&(c.strokeColorAnim=!0),Kn.a.sw&&(c.strokeWidthAnim=!0),(Kn.a.fc||Kn.a.fh||Kn.a.fs||Kn.a.fb)&&(c.fillColorAnim=!0),tr=0,qn=Kn.s.b,h=0;h<v;h+=1)zn=d[h],zn.anIndexes[Fn]=tr,(qn==1&&zn.val!==""||qn==2&&zn.val!==""&&zn.val!==" "||qn==3&&(zn.n||zn.val==" "||h==v-1)||qn==4&&(zn.n||h==v-1))&&(Kn.s.rn===1&&Un.push(tr),tr+=1);f.a[Fn].s.totalChars=tr;var nr=-1,sr;if(Kn.s.rn===1)for(h=0;h<v;h+=1)zn=d[h],nr!=zn.anIndexes[Fn]&&(nr=zn.anIndexes[Fn],sr=Un.splice(Math.floor(Math.random()*Un.length),1)[0]),zn.anIndexes[Fn]=sr}c.yOffset=c.finalLineHeight||c.finalSize*1.2,c.ls=c.ls||0,c.ascent=w.ascent*c.finalSize/100},TextProperty.prototype.updateDocumentData=function(c,u){u=u===void 0?this.keysIndex:u;var f=this.copyData({},this.data.d.k[u].s);f=this.copyData(f,c),this.data.d.k[u].s=f,this.recalculate(u),this.setCurrentData(f),this.elem.addDynamicProperty(this)},TextProperty.prototype.recalculate=function(c){var u=this.data.d.k[c].s;u.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(u)},TextProperty.prototype.canResizeFont=function(c){this.canResize=c,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},TextProperty.prototype.setMinimumFontSize=function(c){this.minimumFontSize=Math.floor(c)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var TextSelectorProp=function(){var c=Math.max,u=Math.min,f=Math.floor;function d(v,p){this._currentTextLength=-1,this.k=!1,this.data=p,this.elem=v,this.comp=v.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(v),this.s=PropertyFactory.getProp(v,p.s||{k:0},0,0,this),"e"in p?this.e=PropertyFactory.getProp(v,p.e,0,0,this):this.e={v:100},this.o=PropertyFactory.getProp(v,p.o||{k:0},0,0,this),this.xe=PropertyFactory.getProp(v,p.xe||{k:0},0,0,this),this.ne=PropertyFactory.getProp(v,p.ne||{k:0},0,0,this),this.sm=PropertyFactory.getProp(v,p.sm||{k:100},0,0,this),this.a=PropertyFactory.getProp(v,p.a,0,.01,this),this.dynamicProperties.length||this.getValue()}d.prototype={getMult:function(p){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var m=0,g=0,y=1,b=1;this.ne.v>0?m=this.ne.v/100:g=-this.ne.v/100,this.xe.v>0?y=1-this.xe.v/100:b=1+this.xe.v/100;var Pn=BezierFactory.getBezierEasing(m,g,y,b).get,x=0,vn=this.finalS,J=this.finalE,j=this.data.sh;if(j===2)J===vn?x=p>=J?1:0:x=c(0,u(.5/(J-vn)+(p-vn)/(J-vn),1)),x=Pn(x);else if(j===3)J===vn?x=p>=J?0:1:x=1-c(0,u(.5/(J-vn)+(p-vn)/(J-vn),1)),x=Pn(x);else if(j===4)J===vn?x=0:(x=c(0,u(.5/(J-vn)+(p-vn)/(J-vn),1)),x<.5?x*=2:x=1-2*(x-.5)),x=Pn(x);else if(j===5){if(J===vn)x=0;else{var Fn=J-vn;p=u(c(0,p+.5-vn),J-vn);var Bn=-Fn/2+p,w=Fn/2;x=Math.sqrt(1-Bn*Bn/(w*w))}x=Pn(x)}else j===6?(J===vn?x=0:(p=u(c(0,p+.5-vn),J-vn),x=(1+Math.cos(Math.PI+Math.PI*2*p/(J-vn)))/2),x=Pn(x)):(p>=f(vn)&&(p-vn<0?x=c(0,u(u(J,1)-(vn-p),1)):x=c(0,u(J-p,1))),x=Pn(x));if(this.sm.v!==100){var gn=this.sm.v*.01;gn===0&&(gn=1e-8);var re=.5-gn*.5;x<re?x=0:(x=(x-re)/gn,x>1&&(x=1))}return x*this.a.v},getValue:function(p){this.iterateDynamicProperties(),this._mdf=p||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,p&&this.data.r===2&&(this.e.v=this._currentTextLength);var m=this.data.r===2?1:100/this.data.totalChars,g=this.o.v/m,y=this.s.v/m+g,b=this.e.v/m+g;if(y>b){var Pn=y;y=b,b=Pn}this.finalS=y,this.finalE=b}},extendPrototype([DynamicPropertyContainer],d);function h(v,p,m){return new d(v,p)}return{getTextSelectorProp:h}}();function TextAnimatorDataProperty(c,u,f){var d={propType:!1},h=PropertyFactory.getProp,v=u.a;this.a={r:v.r?h(c,v.r,0,degToRads,f):d,rx:v.rx?h(c,v.rx,0,degToRads,f):d,ry:v.ry?h(c,v.ry,0,degToRads,f):d,sk:v.sk?h(c,v.sk,0,degToRads,f):d,sa:v.sa?h(c,v.sa,0,degToRads,f):d,s:v.s?h(c,v.s,1,.01,f):d,a:v.a?h(c,v.a,1,0,f):d,o:v.o?h(c,v.o,0,.01,f):d,p:v.p?h(c,v.p,1,0,f):d,sw:v.sw?h(c,v.sw,0,0,f):d,sc:v.sc?h(c,v.sc,1,0,f):d,fc:v.fc?h(c,v.fc,1,0,f):d,fh:v.fh?h(c,v.fh,0,0,f):d,fs:v.fs?h(c,v.fs,0,.01,f):d,fb:v.fb?h(c,v.fb,0,.01,f):d,t:v.t?h(c,v.t,0,0,f):d},this.s=TextSelectorProp.getTextSelectorProp(c,u.s,f),this.s.t=u.s.t}function TextAnimatorProperty(c,u,f){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=c,this._renderType=u,this._elem=f,this._animatorsData=createSizedArray(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(f)}TextAnimatorProperty.prototype.searchProperties=function(){var c,u=this._textData.a.length,f,d=PropertyFactory.getProp;for(c=0;c<u;c+=1)f=this._textData.a[c],this._animatorsData[c]=new TextAnimatorDataProperty(this._elem,f,this);this._textData.p&&"m"in this._textData.p?(this._pathData={a:d(this._elem,this._textData.p.a,0,0,this),f:d(this._elem,this._textData.p.f,0,0,this),l:d(this._elem,this._textData.p.l,0,0,this),r:d(this._elem,this._textData.p.r,0,0,this),p:d(this._elem,this._textData.p.p,0,0,this),m:this._elem.maskManager.getMaskProperty(this._textData.p.m)},this._hasMaskedPath=!0):this._hasMaskedPath=!1,this._moreOptions.alignment=d(this._elem,this._textData.m.a,1,0,this)},TextAnimatorProperty.prototype.getMeasures=function(c,u){if(this.lettersChangedFlag=u,!(!this._mdf&&!this._isFirstFrame&&!u&&(!this._hasMaskedPath||!this._pathData.m._mdf))){this._isFirstFrame=!1;var f=this._moreOptions.alignment.v,d=this._animatorsData,h=this._textData,v=this.mHelper,p=this._renderType,m=this.renderedLetters.length,g,y,b,Pn,x=c.l,vn,J,j,Fn,Bn,w,gn,re,Rn,Vn,Wn,Gn,Zn,Xn,er;if(this._hasMaskedPath){if(er=this._pathData.m,!this._pathData.n||this._pathData._mdf){var Jn=er.v;this._pathData.r.v&&(Jn=Jn.reverse()),vn={tLength:0,segments:[]},Pn=Jn._length-1;var ir;for(Gn=0,b=0;b<Pn;b+=1)ir=bez.buildBezierData(Jn.v[b],Jn.v[b+1],[Jn.o[b][0]-Jn.v[b][0],Jn.o[b][1]-Jn.v[b][1]],[Jn.i[b+1][0]-Jn.v[b+1][0],Jn.i[b+1][1]-Jn.v[b+1][1]]),vn.tLength+=ir.segmentLength,vn.segments.push(ir),Gn+=ir.segmentLength;b=Pn,er.v.c&&(ir=bez.buildBezierData(Jn.v[b],Jn.v[0],[Jn.o[b][0]-Jn.v[b][0],Jn.o[b][1]-Jn.v[b][1]],[Jn.i[0][0]-Jn.v[0][0],Jn.i[0][1]-Jn.v[0][1]]),vn.tLength+=ir.segmentLength,vn.segments.push(ir),Gn+=ir.segmentLength),this._pathData.pi=vn}if(vn=this._pathData.pi,J=this._pathData.f.v,gn=0,w=1,Fn=0,Bn=!0,Vn=vn.segments,J<0&&er.v.c)for(vn.tLength<Math.abs(J)&&(J=-Math.abs(J)%vn.tLength),gn=Vn.length-1,Rn=Vn[gn].points,w=Rn.length-1;J<0;)J+=Rn[w].partialLength,w-=1,w<0&&(gn-=1,Rn=Vn[gn].points,w=Rn.length-1);Rn=Vn[gn].points,re=Rn[w-1],j=Rn[w],Wn=j.partialLength}Pn=x.length,g=0,y=0;var dr=c.finalSize*1.2*.714,or=!0,Hn,Kn,zn,qn,tr;qn=d.length;var Un,nr=-1,sr,Qn,ar,cr=J,Yn=gn,lr=w,hr=-1,mr,ur,gr,fr,vr,xr,Cr,yr,pr="",br=this.defaultPropsArray,wr;if(c.j===2||c.j===1){var kr=0,Er=0,Ir=c.j===2?-.5:-1,Mr=0,qr=!0;for(b=0;b<Pn;b+=1)if(x[b].n){for(kr&&(kr+=Er);Mr<b;)x[Mr].animatorJustifyOffset=kr,Mr+=1;kr=0,qr=!0}else{for(zn=0;zn<qn;zn+=1)Hn=d[zn].a,Hn.t.propType&&(qr&&c.j===2&&(Er+=Hn.t.v*Ir),Kn=d[zn].s,Un=Kn.getMult(x[b].anIndexes[zn],h.a[zn].s.totalChars),Un.length?kr+=Hn.t.v*Un[0]*Ir:kr+=Hn.t.v*Un*Ir);qr=!1}for(kr&&(kr+=Er);Mr<b;)x[Mr].animatorJustifyOffset=kr,Mr+=1}for(b=0;b<Pn;b+=1){if(v.reset(),mr=1,x[b].n)g=0,y+=c.yOffset,y+=or?1:0,J=cr,or=!1,this._hasMaskedPath&&(gn=Yn,w=lr,Rn=Vn[gn].points,re=Rn[w-1],j=Rn[w],Wn=j.partialLength,Fn=0),pr="",yr="",xr="",wr="",br=this.defaultPropsArray;else{if(this._hasMaskedPath){if(hr!==x[b].line){switch(c.j){case 1:J+=Gn-c.lineWidths[x[b].line];break;case 2:J+=(Gn-c.lineWidths[x[b].line])/2;break}hr=x[b].line}nr!==x[b].ind&&(x[nr]&&(J+=x[nr].extra),J+=x[b].an/2,nr=x[b].ind),J+=f[0]*x[b].an*.005;var Rr=0;for(zn=0;zn<qn;zn+=1)Hn=d[zn].a,Hn.p.propType&&(Kn=d[zn].s,Un=Kn.getMult(x[b].anIndexes[zn],h.a[zn].s.totalChars),Un.length?Rr+=Hn.p.v[0]*Un[0]:Rr+=Hn.p.v[0]*Un),Hn.a.propType&&(Kn=d[zn].s,Un=Kn.getMult(x[b].anIndexes[zn],h.a[zn].s.totalChars),Un.length?Rr+=Hn.a.v[0]*Un[0]:Rr+=Hn.a.v[0]*Un);for(Bn=!0,this._pathData.a.v&&(J=x[0].an*.5+(Gn-this._pathData.f.v-x[0].an*.5-x[x.length-1].an*.5)*nr/(Pn-1),J+=this._pathData.f.v);Bn;)Fn+Wn>=J+Rr||!Rn?(Zn=(J+Rr-Fn)/j.partialLength,Qn=re.point[0]+(j.point[0]-re.point[0])*Zn,ar=re.point[1]+(j.point[1]-re.point[1])*Zn,v.translate(-f[0]*x[b].an*.005,-(f[1]*dr)*.01),Bn=!1):Rn&&(Fn+=j.partialLength,w+=1,w>=Rn.length&&(w=0,gn+=1,Vn[gn]?Rn=Vn[gn].points:er.v.c?(w=0,gn=0,Rn=Vn[gn].points):(Fn-=j.partialLength,Rn=null)),Rn&&(re=j,j=Rn[w],Wn=j.partialLength));sr=x[b].an/2-x[b].add,v.translate(-sr,0,0)}else sr=x[b].an/2-x[b].add,v.translate(-sr,0,0),v.translate(-f[0]*x[b].an*.005,-f[1]*dr*.01,0);for(zn=0;zn<qn;zn+=1)Hn=d[zn].a,Hn.t.propType&&(Kn=d[zn].s,Un=Kn.getMult(x[b].anIndexes[zn],h.a[zn].s.totalChars),(g!==0||c.j!==0)&&(this._hasMaskedPath?Un.length?J+=Hn.t.v*Un[0]:J+=Hn.t.v*Un:Un.length?g+=Hn.t.v*Un[0]:g+=Hn.t.v*Un));for(c.strokeWidthAnim&&(gr=c.sw||0),c.strokeColorAnim&&(c.sc?ur=[c.sc[0],c.sc[1],c.sc[2]]:ur=[0,0,0]),c.fillColorAnim&&c.fc&&(fr=[c.fc[0],c.fc[1],c.fc[2]]),zn=0;zn<qn;zn+=1)Hn=d[zn].a,Hn.a.propType&&(Kn=d[zn].s,Un=Kn.getMult(x[b].anIndexes[zn],h.a[zn].s.totalChars),Un.length?v.translate(-Hn.a.v[0]*Un[0],-Hn.a.v[1]*Un[1],Hn.a.v[2]*Un[2]):v.translate(-Hn.a.v[0]*Un,-Hn.a.v[1]*Un,Hn.a.v[2]*Un));for(zn=0;zn<qn;zn+=1)Hn=d[zn].a,Hn.s.propType&&(Kn=d[zn].s,Un=Kn.getMult(x[b].anIndexes[zn],h.a[zn].s.totalChars),Un.length?v.scale(1+(Hn.s.v[0]-1)*Un[0],1+(Hn.s.v[1]-1)*Un[1],1):v.scale(1+(Hn.s.v[0]-1)*Un,1+(Hn.s.v[1]-1)*Un,1));for(zn=0;zn<qn;zn+=1){if(Hn=d[zn].a,Kn=d[zn].s,Un=Kn.getMult(x[b].anIndexes[zn],h.a[zn].s.totalChars),Hn.sk.propType&&(Un.length?v.skewFromAxis(-Hn.sk.v*Un[0],Hn.sa.v*Un[1]):v.skewFromAxis(-Hn.sk.v*Un,Hn.sa.v*Un)),Hn.r.propType&&(Un.length?v.rotateZ(-Hn.r.v*Un[2]):v.rotateZ(-Hn.r.v*Un)),Hn.ry.propType&&(Un.length?v.rotateY(Hn.ry.v*Un[1]):v.rotateY(Hn.ry.v*Un)),Hn.rx.propType&&(Un.length?v.rotateX(Hn.rx.v*Un[0]):v.rotateX(Hn.rx.v*Un)),Hn.o.propType&&(Un.length?mr+=(Hn.o.v*Un[0]-mr)*Un[0]:mr+=(Hn.o.v*Un-mr)*Un),c.strokeWidthAnim&&Hn.sw.propType&&(Un.length?gr+=Hn.sw.v*Un[0]:gr+=Hn.sw.v*Un),c.strokeColorAnim&&Hn.sc.propType)for(vr=0;vr<3;vr+=1)Un.length?ur[vr]+=(Hn.sc.v[vr]-ur[vr])*Un[0]:ur[vr]+=(Hn.sc.v[vr]-ur[vr])*Un;if(c.fillColorAnim&&c.fc){if(Hn.fc.propType)for(vr=0;vr<3;vr+=1)Un.length?fr[vr]+=(Hn.fc.v[vr]-fr[vr])*Un[0]:fr[vr]+=(Hn.fc.v[vr]-fr[vr])*Un;Hn.fh.propType&&(Un.length?fr=addHueToRGB(fr,Hn.fh.v*Un[0]):fr=addHueToRGB(fr,Hn.fh.v*Un)),Hn.fs.propType&&(Un.length?fr=addSaturationToRGB(fr,Hn.fs.v*Un[0]):fr=addSaturationToRGB(fr,Hn.fs.v*Un)),Hn.fb.propType&&(Un.length?fr=addBrightnessToRGB(fr,Hn.fb.v*Un[0]):fr=addBrightnessToRGB(fr,Hn.fb.v*Un))}}for(zn=0;zn<qn;zn+=1)Hn=d[zn].a,Hn.p.propType&&(Kn=d[zn].s,Un=Kn.getMult(x[b].anIndexes[zn],h.a[zn].s.totalChars),this._hasMaskedPath?Un.length?v.translate(0,Hn.p.v[1]*Un[0],-Hn.p.v[2]*Un[1]):v.translate(0,Hn.p.v[1]*Un,-Hn.p.v[2]*Un):Un.length?v.translate(Hn.p.v[0]*Un[0],Hn.p.v[1]*Un[1],-Hn.p.v[2]*Un[2]):v.translate(Hn.p.v[0]*Un,Hn.p.v[1]*Un,-Hn.p.v[2]*Un));if(c.strokeWidthAnim&&(xr=gr<0?0:gr),c.strokeColorAnim&&(Cr="rgb("+Math.round(ur[0]*255)+","+Math.round(ur[1]*255)+","+Math.round(ur[2]*255)+")"),c.fillColorAnim&&c.fc&&(yr="rgb("+Math.round(fr[0]*255)+","+Math.round(fr[1]*255)+","+Math.round(fr[2]*255)+")"),this._hasMaskedPath){if(v.translate(0,-c.ls),v.translate(0,f[1]*dr*.01+y,0),this._pathData.p.v){Xn=(j.point[1]-re.point[1])/(j.point[0]-re.point[0]);var Fr=Math.atan(Xn)*180/Math.PI;j.point[0]<re.point[0]&&(Fr+=180),v.rotate(-Fr*Math.PI/180)}v.translate(Qn,ar,0),J-=f[0]*x[b].an*.005,x[b+1]&&nr!==x[b+1].ind&&(J+=x[b].an/2,J+=c.tr*.001*c.finalSize)}else{switch(v.translate(g,y,0),c.ps&&v.translate(c.ps[0],c.ps[1]+c.ascent,0),c.j){case 1:v.translate(x[b].animatorJustifyOffset+c.justifyOffset+(c.boxWidth-c.lineWidths[x[b].line]),0,0);break;case 2:v.translate(x[b].animatorJustifyOffset+c.justifyOffset+(c.boxWidth-c.lineWidths[x[b].line])/2,0,0);break}v.translate(0,-c.ls),v.translate(sr,0,0),v.translate(f[0]*x[b].an*.005,f[1]*dr*.01,0),g+=x[b].l+c.tr*.001*c.finalSize}p==="html"?pr=v.toCSS():p==="svg"?pr=v.to2dCSS():br=[v.props[0],v.props[1],v.props[2],v.props[3],v.props[4],v.props[5],v.props[6],v.props[7],v.props[8],v.props[9],v.props[10],v.props[11],v.props[12],v.props[13],v.props[14],v.props[15]],wr=mr}m<=b?(tr=new LetterProps(wr,xr,Cr,yr,pr,br),this.renderedLetters.push(tr),m+=1,this.lettersChangedFlag=!0):(tr=this.renderedLetters[b],this.lettersChangedFlag=tr.update(wr,xr,Cr,yr,pr,br)||this.lettersChangedFlag)}}},TextAnimatorProperty.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},TextAnimatorProperty.prototype.mHelper=new Matrix,TextAnimatorProperty.prototype.defaultPropsArray=[],extendPrototype([DynamicPropertyContainer],TextAnimatorProperty);function ITextElement(){}ITextElement.prototype.initElement=function(c,u,f){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(c,u,f),this.textProperty=new TextProperty(this,c.t,this.dynamicProperties),this.textAnimator=new TextAnimatorProperty(c.t,this.renderType,this),this.initTransform(c,u,f),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},ITextElement.prototype.prepareFrame=function(c){this._mdf=!1,this.prepareRenderableFrame(c),this.prepareProperties(c,this.isInRange)},ITextElement.prototype.createPathShape=function(c,u){var f,d=u.length,h,v="";for(f=0;f<d;f+=1)u[f].ty==="sh"&&(h=u[f].ks.k,v+=buildShapeString(h,h.i.length,!0,c));return v},ITextElement.prototype.updateDocumentData=function(c,u){this.textProperty.updateDocumentData(c,u)},ITextElement.prototype.canResizeFont=function(c){this.textProperty.canResizeFont(c)},ITextElement.prototype.setMinimumFontSize=function(c){this.textProperty.setMinimumFontSize(c)},ITextElement.prototype.applyTextPropertiesToMatrix=function(c,u,f,d,h){switch(c.ps&&u.translate(c.ps[0],c.ps[1]+c.ascent,0),u.translate(0,-c.ls,0),c.j){case 1:u.translate(c.justifyOffset+(c.boxWidth-c.lineWidths[f]),0,0);break;case 2:u.translate(c.justifyOffset+(c.boxWidth-c.lineWidths[f])/2,0,0);break}u.translate(d,h,0)},ITextElement.prototype.buildColor=function(c){return"rgb("+Math.round(c[0]*255)+","+Math.round(c[1]*255)+","+Math.round(c[2]*255)+")"},ITextElement.prototype.emptyProp=new LetterProps,ITextElement.prototype.destroy=function(){},ITextElement.prototype.validateText=function(){(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)};var emptyShapeData={shapes:[]};function SVGTextLottieElement(c,u,f){this.textSpans=[],this.renderType="svg",this.initElement(c,u,f)}extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],SVGTextLottieElement),SVGTextLottieElement.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=createNS("text"))},SVGTextLottieElement.prototype.buildTextContents=function(c){for(var u=0,f=c.length,d=[],h="";u<f;)c[u]===String.fromCharCode(13)||c[u]===String.fromCharCode(3)?(d.push(h),h=""):h+=c[u],u+=1;return d.push(h),d},SVGTextLottieElement.prototype.buildShapeData=function(c,u){if(c.shapes&&c.shapes.length){var f=c.shapes[0];if(f.it){var d=f.it[f.it.length-1];d.s&&(d.s.k[0]=u,d.s.k[1]=u)}}return c},SVGTextLottieElement.prototype.buildNewText=function(){this.addDynamicProperty(this);var c,u,f=this.textProperty.currentData;this.renderedLetters=createSizedArray(f?f.l.length:0),f.fc?this.layerElement.setAttribute("fill",this.buildColor(f.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),f.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(f.sc)),this.layerElement.setAttribute("stroke-width",f.sw)),this.layerElement.setAttribute("font-size",f.finalSize);var d=this.globalData.fontManager.getFontByName(f.f);if(d.fClass)this.layerElement.setAttribute("class",d.fClass);else{this.layerElement.setAttribute("font-family",d.fFamily);var h=f.fWeight,v=f.fStyle;this.layerElement.setAttribute("font-style",v),this.layerElement.setAttribute("font-weight",h)}this.layerElement.setAttribute("aria-label",f.t);var p=f.l||[],m=!!this.globalData.fontManager.chars;u=p.length;var g,y=this.mHelper,b="",Pn=this.data.singleShape,x=0,vn=0,J=!0,j=f.tr*.001*f.finalSize;if(Pn&&!m&&!f.sz){var Fn=this.textContainer,Bn="start";switch(f.j){case 1:Bn="end";break;case 2:Bn="middle";break;default:Bn="start";break}Fn.setAttribute("text-anchor",Bn),Fn.setAttribute("letter-spacing",j);var w=this.buildTextContents(f.finalText);for(u=w.length,vn=f.ps?f.ps[1]+f.ascent:0,c=0;c<u;c+=1)g=this.textSpans[c].span||createNS("tspan"),g.textContent=w[c],g.setAttribute("x",0),g.setAttribute("y",vn),g.style.display="inherit",Fn.appendChild(g),this.textSpans[c]||(this.textSpans[c]={span:null,glyph:null}),this.textSpans[c].span=g,vn+=f.finalLineHeight;this.layerElement.appendChild(Fn)}else{var gn=this.textSpans.length,re;for(c=0;c<u;c+=1){if(this.textSpans[c]||(this.textSpans[c]={span:null,childSpan:null,glyph:null}),!m||!Pn||c===0){if(g=gn>c?this.textSpans[c].span:createNS(m?"g":"text"),gn<=c){if(g.setAttribute("stroke-linecap","butt"),g.setAttribute("stroke-linejoin","round"),g.setAttribute("stroke-miterlimit","4"),this.textSpans[c].span=g,m){var Rn=createNS("g");g.appendChild(Rn),this.textSpans[c].childSpan=Rn}this.textSpans[c].span=g,this.layerElement.appendChild(g)}g.style.display="inherit"}if(y.reset(),Pn&&(p[c].n&&(x=-j,vn+=f.yOffset,vn+=J?1:0,J=!1),this.applyTextPropertiesToMatrix(f,y,p[c].line,x,vn),x+=p[c].l||0,x+=j),m){re=this.globalData.fontManager.getCharData(f.finalText[c],d.fStyle,this.globalData.fontManager.getFontByName(f.f).fFamily);var Vn;if(re.t===1)Vn=new SVGCompElement(re.data,this.globalData,this);else{var Wn=emptyShapeData;re.data&&re.data.shapes&&(Wn=this.buildShapeData(re.data,f.finalSize)),Vn=new SVGShapeElement(Wn,this.globalData,this)}if(this.textSpans[c].glyph){var Gn=this.textSpans[c].glyph;this.textSpans[c].childSpan.removeChild(Gn.layerElement),Gn.destroy()}this.textSpans[c].glyph=Vn,Vn._debug=!0,Vn.prepareFrame(0),Vn.renderFrame(),this.textSpans[c].childSpan.appendChild(Vn.layerElement),re.t===1&&this.textSpans[c].childSpan.setAttribute("transform","scale("+f.finalSize/100+","+f.finalSize/100+")")}else Pn&&g.setAttribute("transform","translate("+y.props[12]+","+y.props[13]+")"),g.textContent=p[c].val,g.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}Pn&&g&&g.setAttribute("d",b)}for(;c<this.textSpans.length;)this.textSpans[c].span.style.display="none",c+=1;this._sizeChanged=!0},SVGTextLottieElement.prototype.sourceRectAtTime=function(){if(this.prepareFrame(this.comp.renderedFrame-this.data.st),this.renderInnerContent(),this._sizeChanged){this._sizeChanged=!1;var c=this.layerElement.getBBox();this.bbox={top:c.y,left:c.x,width:c.width,height:c.height}}return this.bbox},SVGTextLottieElement.prototype.getValue=function(){var c,u=this.textSpans.length,f;for(this.renderedFrame=this.comp.renderedFrame,c=0;c<u;c+=1)f=this.textSpans[c].glyph,f&&(f.prepareFrame(this.comp.renderedFrame-this.data.st),f._mdf&&(this._mdf=!0))},SVGTextLottieElement.prototype.renderInnerContent=function(){if(this.validateText(),(!this.data.singleShape||this._mdf)&&(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag)){this._sizeChanged=!0;var c,u,f=this.textAnimator.renderedLetters,d=this.textProperty.currentData.l;u=d.length;var h,v,p;for(c=0;c<u;c+=1)d[c].n||(h=f[c],v=this.textSpans[c].span,p=this.textSpans[c].glyph,p&&p.renderFrame(),h._mdf.m&&v.setAttribute("transform",h.m),h._mdf.o&&v.setAttribute("opacity",h.o),h._mdf.sw&&v.setAttribute("stroke-width",h.sw),h._mdf.sc&&v.setAttribute("stroke",h.sc),h._mdf.fc&&v.setAttribute("fill",h.fc))}};function ISolidElement(c,u,f){this.initElement(c,u,f)}extendPrototype([IImageElement],ISolidElement),ISolidElement.prototype.createContent=function(){var c=createNS("rect");c.setAttribute("width",this.data.sw),c.setAttribute("height",this.data.sh),c.setAttribute("fill",this.data.sc),this.layerElement.appendChild(c)};function NullElement(c,u,f){this.initFrame(),this.initBaseData(c,u,f),this.initFrame(),this.initTransform(c,u,f),this.initHierarchy()}NullElement.prototype.prepareFrame=function(c){this.prepareProperties(c,!0)},NullElement.prototype.renderFrame=function(){},NullElement.prototype.getBaseElement=function(){return null},NullElement.prototype.destroy=function(){},NullElement.prototype.sourceRectAtTime=function(){},NullElement.prototype.hide=function(){},extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement],NullElement);function SVGRendererBase(){}extendPrototype([BaseRenderer],SVGRendererBase),SVGRendererBase.prototype.createNull=function(c){return new NullElement(c,this.globalData,this)},SVGRendererBase.prototype.createShape=function(c){return new SVGShapeElement(c,this.globalData,this)},SVGRendererBase.prototype.createText=function(c){return new SVGTextLottieElement(c,this.globalData,this)},SVGRendererBase.prototype.createImage=function(c){return new IImageElement(c,this.globalData,this)},SVGRendererBase.prototype.createSolid=function(c){return new ISolidElement(c,this.globalData,this)},SVGRendererBase.prototype.configAnimation=function(c){this.svgElement.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.svgElement.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),this.renderConfig.viewBoxSize?this.svgElement.setAttribute("viewBox",this.renderConfig.viewBoxSize):this.svgElement.setAttribute("viewBox","0 0 "+c.w+" "+c.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute("width",c.w),this.svgElement.setAttribute("height",c.h),this.svgElement.style.width="100%",this.svgElement.style.height="100%",this.svgElement.style.transform="translate3d(0,0,0)",this.svgElement.style.contentVisibility=this.renderConfig.contentVisibility),this.renderConfig.width&&this.svgElement.setAttribute("width",this.renderConfig.width),this.renderConfig.height&&this.svgElement.setAttribute("height",this.renderConfig.height),this.renderConfig.className&&this.svgElement.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.svgElement.setAttribute("id",this.renderConfig.id),this.renderConfig.focusable!==void 0&&this.svgElement.setAttribute("focusable",this.renderConfig.focusable),this.svgElement.setAttribute("preserveAspectRatio",this.renderConfig.preserveAspectRatio),this.animationItem.wrapper.appendChild(this.svgElement);var u=this.globalData.defs;this.setupGlobalData(c,u),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=c;var f=createNS("clipPath"),d=createNS("rect");d.setAttribute("width",c.w),d.setAttribute("height",c.h),d.setAttribute("x",0),d.setAttribute("y",0);var h=createElementID();f.setAttribute("id",h),f.appendChild(d),this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+h+")"),u.appendChild(f),this.layers=c.layers,this.elements=createSizedArray(c.layers.length)},SVGRendererBase.prototype.destroy=function(){this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.layerElement=null,this.globalData.defs=null;var c,u=this.layers?this.layers.length:0;for(c=0;c<u;c+=1)this.elements[c]&&this.elements[c].destroy&&this.elements[c].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},SVGRendererBase.prototype.updateContainerSize=function(){},SVGRendererBase.prototype.findIndexByInd=function(c){var u=0,f=this.layers.length;for(u=0;u<f;u+=1)if(this.layers[u].ind===c)return u;return-1},SVGRendererBase.prototype.buildItem=function(c){var u=this.elements;if(!(u[c]||this.layers[c].ty===99)){u[c]=!0;var f=this.createItem(this.layers[c]);if(u[c]=f,getExpressionsPlugin()&&(this.layers[c].ty===0&&this.globalData.projectInterface.registerComposition(f),f.initExpressions()),this.appendElementInPos(f,c),this.layers[c].tt){var d="tp"in this.layers[c]?this.findIndexByInd(this.layers[c].tp):c-1;if(d===-1)return;if(!this.elements[d]||this.elements[d]===!0)this.buildItem(d),this.addPendingElement(f);else{var h=u[d],v=h.getMatte(this.layers[c].tt);f.setMatte(v)}}}},SVGRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var c=this.pendingElements.pop();if(c.checkParenting(),c.data.tt)for(var u=0,f=this.elements.length;u<f;){if(this.elements[u]===c){var d="tp"in c.data?this.findIndexByInd(c.data.tp):u-1,h=this.elements[d],v=h.getMatte(this.layers[u].tt);c.setMatte(v);break}u+=1}}},SVGRendererBase.prototype.renderFrame=function(c){if(!(this.renderedFrame===c||this.destroyed)){c===null?c=this.renderedFrame:this.renderedFrame=c,this.globalData.frameNum=c,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=c,this.globalData._mdf=!1;var u,f=this.layers.length;for(this.completeLayers||this.checkLayers(c),u=f-1;u>=0;u-=1)(this.completeLayers||this.elements[u])&&this.elements[u].prepareFrame(c-this.layers[u].st);if(this.globalData._mdf)for(u=0;u<f;u+=1)(this.completeLayers||this.elements[u])&&this.elements[u].renderFrame()}},SVGRendererBase.prototype.appendElementInPos=function(c,u){var f=c.getBaseElement();if(f){for(var d=0,h;d<u;)this.elements[d]&&this.elements[d]!==!0&&this.elements[d].getBaseElement()&&(h=this.elements[d].getBaseElement()),d+=1;h?this.layerElement.insertBefore(f,h):this.layerElement.appendChild(f)}},SVGRendererBase.prototype.hide=function(){this.layerElement.style.display="none"},SVGRendererBase.prototype.show=function(){this.layerElement.style.display="block"};function ICompElement(){}extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement,RenderableDOMElement],ICompElement),ICompElement.prototype.initElement=function(c,u,f){this.initFrame(),this.initBaseData(c,u,f),this.initTransform(c,u,f),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),(this.data.xt||!u.progressiveLoad)&&this.buildAllItems(),this.hide()},ICompElement.prototype.prepareFrame=function(c){if(this._mdf=!1,this.prepareRenderableFrame(c),this.prepareProperties(c,this.isInRange),!(!this.isInRange&&!this.data.xt)){if(this.tm._placeholder)this.renderedFrame=c/this.data.sr;else{var u=this.tm.v;u===this.data.op&&(u=this.data.op-1),this.renderedFrame=u}var f,d=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),f=d-1;f>=0;f-=1)(this.completeLayers||this.elements[f])&&(this.elements[f].prepareFrame(this.renderedFrame-this.layers[f].st),this.elements[f]._mdf&&(this._mdf=!0))}},ICompElement.prototype.renderInnerContent=function(){var c,u=this.layers.length;for(c=0;c<u;c+=1)(this.completeLayers||this.elements[c])&&this.elements[c].renderFrame()},ICompElement.prototype.setElements=function(c){this.elements=c},ICompElement.prototype.getElements=function(){return this.elements},ICompElement.prototype.destroyElements=function(){var c,u=this.layers.length;for(c=0;c<u;c+=1)this.elements[c]&&this.elements[c].destroy()},ICompElement.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()};function SVGCompElement(c,u,f){this.layers=c.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(c,u,f),this.tm=c.tm?PropertyFactory.getProp(this,c.tm,0,u.frameRate,this):{_placeholder:!0}}extendPrototype([SVGRendererBase,ICompElement,SVGBaseElement],SVGCompElement),SVGCompElement.prototype.createComp=function(c){return new SVGCompElement(c,this.globalData,this)};function SVGRenderer(c,u){this.animationItem=c,this.layers=null,this.renderedFrame=-1,this.svgElement=createNS("svg");var f="";if(u&&u.title){var d=createNS("title"),h=createElementID();d.setAttribute("id",h),d.textContent=u.title,this.svgElement.appendChild(d),f+=h}if(u&&u.description){var v=createNS("desc"),p=createElementID();v.setAttribute("id",p),v.textContent=u.description,this.svgElement.appendChild(v),f+=" "+p}f&&this.svgElement.setAttribute("aria-labelledby",f);var m=createNS("defs");this.svgElement.appendChild(m);var g=createNS("g");this.svgElement.appendChild(g),this.layerElement=g,this.renderConfig={preserveAspectRatio:u&&u.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:u&&u.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:u&&u.contentVisibility||"visible",progressiveLoad:u&&u.progressiveLoad||!1,hideOnTransparent:!(u&&u.hideOnTransparent===!1),viewBoxOnly:u&&u.viewBoxOnly||!1,viewBoxSize:u&&u.viewBoxSize||!1,className:u&&u.className||"",id:u&&u.id||"",focusable:u&&u.focusable,filterSize:{width:u&&u.filterSize&&u.filterSize.width||"100%",height:u&&u.filterSize&&u.filterSize.height||"100%",x:u&&u.filterSize&&u.filterSize.x||"0%",y:u&&u.filterSize&&u.filterSize.y||"0%"},width:u&&u.width,height:u&&u.height,runExpressions:!u||u.runExpressions===void 0||u.runExpressions},this.globalData={_mdf:!1,frameNum:-1,defs:m,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}extendPrototype([SVGRendererBase],SVGRenderer),SVGRenderer.prototype.createComp=function(c){return new SVGCompElement(c,this.globalData,this)};function ShapeTransformManager(){this.sequences={},this.sequenceList=[],this.transform_key_count=0}ShapeTransformManager.prototype={addTransformSequence:function(u){var f,d=u.length,h="_";for(f=0;f<d;f+=1)h+=u[f].transform.key+"_";var v=this.sequences[h];return v||(v={transforms:[].concat(u),finalTransform:new Matrix,_mdf:!1},this.sequences[h]=v,this.sequenceList.push(v)),v},processSequence:function(u,f){for(var d=0,h=u.transforms.length,v=f;d<h&&!f;){if(u.transforms[d].transform.mProps._mdf){v=!0;break}d+=1}if(v)for(u.finalTransform.reset(),d=h-1;d>=0;d-=1)u.finalTransform.multiply(u.transforms[d].transform.mProps.v);u._mdf=v},processSequences:function(u){var f,d=this.sequenceList.length;for(f=0;f<d;f+=1)this.processSequence(this.sequenceList[f],u)},getNewKey:function(){return this.transform_key_count+=1,"_"+this.transform_key_count}};var lumaLoader=function(){var u="__lottie_element_luma_buffer",f=null,d=null,h=null;function v(){var g=createNS("svg"),y=createNS("filter"),b=createNS("feColorMatrix");return y.setAttribute("id",u),b.setAttribute("type","matrix"),b.setAttribute("color-interpolation-filters","sRGB"),b.setAttribute("values","0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0"),y.appendChild(b),g.appendChild(y),g.setAttribute("id",u+"_svg"),featureSupport.svgLumaHidden&&(g.style.display="none"),g}function p(){f||(h=v(),document.body.appendChild(h),f=createTag("canvas"),d=f.getContext("2d"),d.filter="url(#"+u+")",d.fillStyle="rgba(0,0,0,0)",d.fillRect(0,0,1,1))}function m(g){return f||p(),f.width=g.width,f.height=g.height,d.filter="url(#"+u+")",f}return{load:p,get:m}};function createCanvas(c,u){if(featureSupport.offscreenCanvas)return new OffscreenCanvas(c,u);var f=createTag("canvas");return f.width=c,f.height=u,f}var assetLoader=function(){return{loadLumaCanvas:lumaLoader.load,getLumaCanvas:lumaLoader.get,createCanvas}}(),registeredEffects={};function CVEffects(c){var u,f=c.data.ef?c.data.ef.length:0;this.filters=[];var d;for(u=0;u<f;u+=1){d=null;var h=c.data.ef[u].ty;if(registeredEffects[h]){var v=registeredEffects[h].effect;d=new v(c.effectsManager.effectElements[u],c)}d&&this.filters.push(d)}this.filters.length&&c.addRenderableComponent(this)}CVEffects.prototype.renderFrame=function(c){var u,f=this.filters.length;for(u=0;u<f;u+=1)this.filters[u].renderFrame(c)},CVEffects.prototype.getEffects=function(c){var u,f=this.filters.length,d=[];for(u=0;u<f;u+=1)this.filters[u].type===c&&d.push(this.filters[u]);return d};function registerEffect(c,u){registeredEffects[c]={effect:u}}function CVMaskElement(c,u){this.data=c,this.element=u,this.masksProperties=this.data.masksProperties||[],this.viewData=createSizedArray(this.masksProperties.length);var f,d=this.masksProperties.length,h=!1;for(f=0;f<d;f+=1)this.masksProperties[f].mode!=="n"&&(h=!0),this.viewData[f]=ShapePropertyFactory.getShapeProp(this.element,this.masksProperties[f],3);this.hasMasks=h,h&&this.element.addRenderableComponent(this)}CVMaskElement.prototype.renderFrame=function(){if(this.hasMasks){var c=this.element.finalTransform.mat,u=this.element.canvasContext,f,d=this.masksProperties.length,h,v,p;for(u.beginPath(),f=0;f<d;f+=1)if(this.masksProperties[f].mode!=="n"){this.masksProperties[f].inv&&(u.moveTo(0,0),u.lineTo(this.element.globalData.compSize.w,0),u.lineTo(this.element.globalData.compSize.w,this.element.globalData.compSize.h),u.lineTo(0,this.element.globalData.compSize.h),u.lineTo(0,0)),p=this.viewData[f].v,h=c.applyToPointArray(p.v[0][0],p.v[0][1],0),u.moveTo(h[0],h[1]);var m,g=p._length;for(m=1;m<g;m+=1)v=c.applyToTriplePoints(p.o[m-1],p.i[m],p.v[m]),u.bezierCurveTo(v[0],v[1],v[2],v[3],v[4],v[5]);v=c.applyToTriplePoints(p.o[m-1],p.i[0],p.v[0]),u.bezierCurveTo(v[0],v[1],v[2],v[3],v[4],v[5])}this.element.globalData.renderer.save(!0),u.clip()}},CVMaskElement.prototype.getMaskProperty=MaskElement.prototype.getMaskProperty,CVMaskElement.prototype.destroy=function(){this.element=null};function CVBaseElement(){}var operationsMap={1:"source-in",2:"source-out",3:"source-in",4:"source-out"};CVBaseElement.prototype={createElements:function(){},initRendererElement:function(){},createContainerElements:function(){if(this.data.tt>=1){this.buffers=[];var u=this.globalData.canvasContext,f=assetLoader.createCanvas(u.canvas.width,u.canvas.height);this.buffers.push(f);var d=assetLoader.createCanvas(u.canvas.width,u.canvas.height);this.buffers.push(d),this.data.tt>=3&&!document._isProxy&&assetLoader.loadLumaCanvas()}this.canvasContext=this.globalData.canvasContext,this.transformCanvas=this.globalData.transformCanvas,this.renderableEffectsManager=new CVEffects(this),this.searchEffectTransforms()},createContent:function(){},setBlendMode:function(){var u=this.globalData;if(u.blendMode!==this.data.bm){u.blendMode=this.data.bm;var f=getBlendMode(this.data.bm);u.canvasContext.globalCompositeOperation=f}},createRenderableComponents:function(){this.maskManager=new CVMaskElement(this.data,this),this.transformEffects=this.renderableEffectsManager.getEffects(effectTypes.TRANSFORM_EFFECT)},hideElement:function(){!this.hidden&&(!this.isInRange||this.isTransparent)&&(this.hidden=!0)},showElement:function(){this.isInRange&&!this.isTransparent&&(this.hidden=!1,this._isFirstFrame=!0,this.maskManager._isFirstFrame=!0)},clearCanvas:function(u){u.clearRect(this.transformCanvas.tx,this.transformCanvas.ty,this.transformCanvas.w*this.transformCanvas.sx,this.transformCanvas.h*this.transformCanvas.sy)},prepareLayer:function(){if(this.data.tt>=1){var u=this.buffers[0],f=u.getContext("2d");this.clearCanvas(f),f.drawImage(this.canvasContext.canvas,0,0),this.currentTransform=this.canvasContext.getTransform(),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform)}},exitLayer:function(){if(this.data.tt>=1){var u=this.buffers[1],f=u.getContext("2d");this.clearCanvas(f),f.drawImage(this.canvasContext.canvas,0,0),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform);var d=this.comp.getElementById("tp"in this.data?this.data.tp:this.data.ind-1);if(d.renderFrame(!0),this.canvasContext.setTransform(1,0,0,1,0,0),this.data.tt>=3&&!document._isProxy){var h=assetLoader.getLumaCanvas(this.canvasContext.canvas),v=h.getContext("2d");v.drawImage(this.canvasContext.canvas,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.drawImage(h,0,0)}this.canvasContext.globalCompositeOperation=operationsMap[this.data.tt],this.canvasContext.drawImage(u,0,0),this.canvasContext.globalCompositeOperation="destination-over",this.canvasContext.drawImage(this.buffers[0],0,0),this.canvasContext.setTransform(this.currentTransform),this.canvasContext.globalCompositeOperation="source-over"}},renderFrame:function(u){if(!(this.hidden||this.data.hd)&&!(this.data.td===1&&!u)){this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.setBlendMode();var f=this.data.ty===0;this.prepareLayer(),this.globalData.renderer.save(f),this.globalData.renderer.ctxTransform(this.finalTransform.localMat.props),this.globalData.renderer.ctxOpacity(this.finalTransform.localOpacity),this.renderInnerContent(),this.globalData.renderer.restore(f),this.exitLayer(),this.maskManager.hasMasks&&this.globalData.renderer.restore(!0),this._isFirstFrame&&(this._isFirstFrame=!1)}},destroy:function(){this.canvasContext=null,this.data=null,this.globalData=null,this.maskManager.destroy()},mHelper:new Matrix},CVBaseElement.prototype.hide=CVBaseElement.prototype.hideElement,CVBaseElement.prototype.show=CVBaseElement.prototype.showElement;function CVShapeData(c,u,f,d){this.styledShapes=[],this.tr=[0,0,0,0,0,0];var h=4;u.ty==="rc"?h=5:u.ty==="el"?h=6:u.ty==="sr"&&(h=7),this.sh=ShapePropertyFactory.getShapeProp(c,u,h,c);var v,p=f.length,m;for(v=0;v<p;v+=1)f[v].closed||(m={transforms:d.addTransformSequence(f[v].transforms),trNodes:[]},this.styledShapes.push(m),f[v].elements.push(m))}CVShapeData.prototype.setAsAnimated=SVGShapeData.prototype.setAsAnimated;function CVShapeElement(c,u,f){this.shapes=[],this.shapesData=c.shapes,this.stylesList=[],this.itemsData=[],this.prevViewData=[],this.shapeModifiers=[],this.processedElements=[],this.transformsManager=new ShapeTransformManager,this.initElement(c,u,f)}extendPrototype([BaseElement,TransformElement,CVBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableElement],CVShapeElement),CVShapeElement.prototype.initElement=RenderableDOMElement.prototype.initElement,CVShapeElement.prototype.transformHelper={opacity:1,_opMdf:!1},CVShapeElement.prototype.dashResetter=[],CVShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[])},CVShapeElement.prototype.createStyleElement=function(c,u){var f={data:c,type:c.ty,preTransforms:this.transformsManager.addTransformSequence(u),transforms:[],elements:[],closed:c.hd===!0},d={};if(c.ty==="fl"||c.ty==="st"?(d.c=PropertyFactory.getProp(this,c.c,1,255,this),d.c.k||(f.co="rgb("+bmFloor(d.c.v[0])+","+bmFloor(d.c.v[1])+","+bmFloor(d.c.v[2])+")")):(c.ty==="gf"||c.ty==="gs")&&(d.s=PropertyFactory.getProp(this,c.s,1,null,this),d.e=PropertyFactory.getProp(this,c.e,1,null,this),d.h=PropertyFactory.getProp(this,c.h||{k:0},0,.01,this),d.a=PropertyFactory.getProp(this,c.a||{k:0},0,degToRads,this),d.g=new GradientProperty(this,c.g,this)),d.o=PropertyFactory.getProp(this,c.o,0,.01,this),c.ty==="st"||c.ty==="gs"){if(f.lc=lineCapEnum[c.lc||2],f.lj=lineJoinEnum[c.lj||2],c.lj==1&&(f.ml=c.ml),d.w=PropertyFactory.getProp(this,c.w,0,null,this),d.w.k||(f.wi=d.w.v),c.d){var h=new DashProperty(this,c.d,"canvas",this);d.d=h,d.d.k||(f.da=d.d.dashArray,f.do=d.d.dashoffset[0])}}else f.r=c.r===2?"evenodd":"nonzero";return this.stylesList.push(f),d.style=f,d},CVShapeElement.prototype.createGroupElement=function(){var c={it:[],prevViewData:[]};return c},CVShapeElement.prototype.createTransformElement=function(c){var u={transform:{opacity:1,_opMdf:!1,key:this.transformsManager.getNewKey(),op:PropertyFactory.getProp(this,c.o,0,.01,this),mProps:TransformPropertyFactory.getTransformProperty(this,c,this)}};return u},CVShapeElement.prototype.createShapeElement=function(c){var u=new CVShapeData(this,c,this.stylesList,this.transformsManager);return this.shapes.push(u),this.addShapeToModifiers(u),u},CVShapeElement.prototype.reloadShapes=function(){this._isFirstFrame=!0;var c,u=this.itemsData.length;for(c=0;c<u;c+=1)this.prevViewData[c]=this.itemsData[c];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[]),u=this.dynamicProperties.length,c=0;c<u;c+=1)this.dynamicProperties[c].getValue();this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame)},CVShapeElement.prototype.addTransformToStyleList=function(c){var u,f=this.stylesList.length;for(u=0;u<f;u+=1)this.stylesList[u].closed||this.stylesList[u].transforms.push(c)},CVShapeElement.prototype.removeTransformFromStyleList=function(){var c,u=this.stylesList.length;for(c=0;c<u;c+=1)this.stylesList[c].closed||this.stylesList[c].transforms.pop()},CVShapeElement.prototype.closeStyles=function(c){var u,f=c.length;for(u=0;u<f;u+=1)c[u].closed=!0},CVShapeElement.prototype.searchShapes=function(c,u,f,d,h){var v,p=c.length-1,m,g,y=[],b=[],Pn,x,vn,J=[].concat(h);for(v=p;v>=0;v-=1){if(Pn=this.searchProcessedElement(c[v]),Pn?u[v]=f[Pn-1]:c[v]._shouldRender=d,c[v].ty==="fl"||c[v].ty==="st"||c[v].ty==="gf"||c[v].ty==="gs")Pn?u[v].style.closed=!1:u[v]=this.createStyleElement(c[v],J),y.push(u[v].style);else if(c[v].ty==="gr"){if(!Pn)u[v]=this.createGroupElement(c[v]);else for(g=u[v].it.length,m=0;m<g;m+=1)u[v].prevViewData[m]=u[v].it[m];this.searchShapes(c[v].it,u[v].it,u[v].prevViewData,d,J)}else c[v].ty==="tr"?(Pn||(vn=this.createTransformElement(c[v]),u[v]=vn),J.push(u[v]),this.addTransformToStyleList(u[v])):c[v].ty==="sh"||c[v].ty==="rc"||c[v].ty==="el"||c[v].ty==="sr"?Pn||(u[v]=this.createShapeElement(c[v])):c[v].ty==="tm"||c[v].ty==="rd"||c[v].ty==="pb"||c[v].ty==="zz"||c[v].ty==="op"?(Pn?(x=u[v],x.closed=!1):(x=ShapeModifiers.getModifier(c[v].ty),x.init(this,c[v]),u[v]=x,this.shapeModifiers.push(x)),b.push(x)):c[v].ty==="rp"&&(Pn?(x=u[v],x.closed=!0):(x=ShapeModifiers.getModifier(c[v].ty),u[v]=x,x.init(this,c,v,u),this.shapeModifiers.push(x),d=!1),b.push(x));this.addProcessedElement(c[v],v+1)}for(this.removeTransformFromStyleList(),this.closeStyles(y),p=b.length,v=0;v<p;v+=1)b[v].closed=!0},CVShapeElement.prototype.renderInnerContent=function(){this.transformHelper.opacity=1,this.transformHelper._opMdf=!1,this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame),this.renderShape(this.transformHelper,this.shapesData,this.itemsData,!0)},CVShapeElement.prototype.renderShapeTransform=function(c,u){(c._opMdf||u.op._mdf||this._isFirstFrame)&&(u.opacity=c.opacity,u.opacity*=u.op.v,u._opMdf=!0)},CVShapeElement.prototype.drawLayer=function(){var c,u=this.stylesList.length,f,d,h,v,p,m,g=this.globalData.renderer,y=this.globalData.canvasContext,b,Pn;for(c=0;c<u;c+=1)if(Pn=this.stylesList[c],b=Pn.type,!((b==="st"||b==="gs")&&Pn.wi===0||!Pn.data._shouldRender||Pn.coOp===0||this.globalData.currentGlobalAlpha===0)){for(g.save(),p=Pn.elements,b==="st"||b==="gs"?(g.ctxStrokeStyle(b==="st"?Pn.co:Pn.grd),g.ctxLineWidth(Pn.wi),g.ctxLineCap(Pn.lc),g.ctxLineJoin(Pn.lj),g.ctxMiterLimit(Pn.ml||0)):g.ctxFillStyle(b==="fl"?Pn.co:Pn.grd),g.ctxOpacity(Pn.coOp),b!=="st"&&b!=="gs"&&y.beginPath(),g.ctxTransform(Pn.preTransforms.finalTransform.props),d=p.length,f=0;f<d;f+=1){for((b==="st"||b==="gs")&&(y.beginPath(),Pn.da&&(y.setLineDash(Pn.da),y.lineDashOffset=Pn.do)),m=p[f].trNodes,v=m.length,h=0;h<v;h+=1)m[h].t==="m"?y.moveTo(m[h].p[0],m[h].p[1]):m[h].t==="c"?y.bezierCurveTo(m[h].pts[0],m[h].pts[1],m[h].pts[2],m[h].pts[3],m[h].pts[4],m[h].pts[5]):y.closePath();(b==="st"||b==="gs")&&(g.ctxStroke(),Pn.da&&y.setLineDash(this.dashResetter))}b!=="st"&&b!=="gs"&&this.globalData.renderer.ctxFill(Pn.r),g.restore()}},CVShapeElement.prototype.renderShape=function(c,u,f,d){var h,v=u.length-1,p;for(p=c,h=v;h>=0;h-=1)u[h].ty==="tr"?(p=f[h].transform,this.renderShapeTransform(c,p)):u[h].ty==="sh"||u[h].ty==="el"||u[h].ty==="rc"||u[h].ty==="sr"?this.renderPath(u[h],f[h]):u[h].ty==="fl"?this.renderFill(u[h],f[h],p):u[h].ty==="st"?this.renderStroke(u[h],f[h],p):u[h].ty==="gf"||u[h].ty==="gs"?this.renderGradientFill(u[h],f[h],p):u[h].ty==="gr"?this.renderShape(p,u[h].it,f[h].it):u[h].ty;d&&this.drawLayer()},CVShapeElement.prototype.renderStyledShape=function(c,u){if(this._isFirstFrame||u._mdf||c.transforms._mdf){var f=c.trNodes,d=u.paths,h,v,p,m=d._length;f.length=0;var g=c.transforms.finalTransform;for(p=0;p<m;p+=1){var y=d.shapes[p];if(y&&y.v){for(v=y._length,h=1;h<v;h+=1)h===1&&f.push({t:"m",p:g.applyToPointArray(y.v[0][0],y.v[0][1],0)}),f.push({t:"c",pts:g.applyToTriplePoints(y.o[h-1],y.i[h],y.v[h])});v===1&&f.push({t:"m",p:g.applyToPointArray(y.v[0][0],y.v[0][1],0)}),y.c&&v&&(f.push({t:"c",pts:g.applyToTriplePoints(y.o[h-1],y.i[0],y.v[0])}),f.push({t:"z"}))}}c.trNodes=f}},CVShapeElement.prototype.renderPath=function(c,u){if(c.hd!==!0&&c._shouldRender){var f,d=u.styledShapes.length;for(f=0;f<d;f+=1)this.renderStyledShape(u.styledShapes[f],u.sh)}},CVShapeElement.prototype.renderFill=function(c,u,f){var d=u.style;(u.c._mdf||this._isFirstFrame)&&(d.co="rgb("+bmFloor(u.c.v[0])+","+bmFloor(u.c.v[1])+","+bmFloor(u.c.v[2])+")"),(u.o._mdf||f._opMdf||this._isFirstFrame)&&(d.coOp=u.o.v*f.opacity)},CVShapeElement.prototype.renderGradientFill=function(c,u,f){var d=u.style,h;if(!d.grd||u.g._mdf||u.s._mdf||u.e._mdf||c.t!==1&&(u.h._mdf||u.a._mdf)){var v=this.globalData.canvasContext,p=u.s.v,m=u.e.v;if(c.t===1)h=v.createLinearGradient(p[0],p[1],m[0],m[1]);else{var g=Math.sqrt(Math.pow(p[0]-m[0],2)+Math.pow(p[1]-m[1],2)),y=Math.atan2(m[1]-p[1],m[0]-p[0]),b=u.h.v;b>=1?b=.99:b<=-1&&(b=-.99);var Pn=g*b,x=Math.cos(y+u.a.v)*Pn+p[0],vn=Math.sin(y+u.a.v)*Pn+p[1];h=v.createRadialGradient(x,vn,0,p[0],p[1],g)}var J,j=c.g.p,Fn=u.g.c,Bn=1;for(J=0;J<j;J+=1)u.g._hasOpacity&&u.g._collapsable&&(Bn=u.g.o[J*2+1]),h.addColorStop(Fn[J*4]/100,"rgba("+Fn[J*4+1]+","+Fn[J*4+2]+","+Fn[J*4+3]+","+Bn+")");d.grd=h}d.coOp=u.o.v*f.opacity},CVShapeElement.prototype.renderStroke=function(c,u,f){var d=u.style,h=u.d;h&&(h._mdf||this._isFirstFrame)&&(d.da=h.dashArray,d.do=h.dashoffset[0]),(u.c._mdf||this._isFirstFrame)&&(d.co="rgb("+bmFloor(u.c.v[0])+","+bmFloor(u.c.v[1])+","+bmFloor(u.c.v[2])+")"),(u.o._mdf||f._opMdf||this._isFirstFrame)&&(d.coOp=u.o.v*f.opacity),(u.w._mdf||this._isFirstFrame)&&(d.wi=u.w.v)},CVShapeElement.prototype.destroy=function(){this.shapesData=null,this.globalData=null,this.canvasContext=null,this.stylesList.length=0,this.itemsData.length=0};function CVTextElement(c,u,f){this.textSpans=[],this.yOffset=0,this.fillColorAnim=!1,this.strokeColorAnim=!1,this.strokeWidthAnim=!1,this.stroke=!1,this.fill=!1,this.justifyOffset=0,this.currentRender=null,this.renderType="canvas",this.values={fill:"rgba(0,0,0,0)",stroke:"rgba(0,0,0,0)",sWidth:0,fValue:""},this.initElement(c,u,f)}extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement,ITextElement],CVTextElement),CVTextElement.prototype.tHelper=createTag("canvas").getContext("2d"),CVTextElement.prototype.buildNewText=function(){var c=this.textProperty.currentData;this.renderedLetters=createSizedArray(c.l?c.l.length:0);var u=!1;c.fc?(u=!0,this.values.fill=this.buildColor(c.fc)):this.values.fill="rgba(0,0,0,0)",this.fill=u;var f=!1;c.sc&&(f=!0,this.values.stroke=this.buildColor(c.sc),this.values.sWidth=c.sw);var d=this.globalData.fontManager.getFontByName(c.f),h,v,p=c.l,m=this.mHelper;this.stroke=f,this.values.fValue=c.finalSize+"px "+this.globalData.fontManager.getFontByName(c.f).fFamily,v=c.finalText.length;var g,y,b,Pn,x,vn,J,j,Fn,Bn,w=this.data.singleShape,gn=c.tr*.001*c.finalSize,re=0,Rn=0,Vn=!0,Wn=0;for(h=0;h<v;h+=1){g=this.globalData.fontManager.getCharData(c.finalText[h],d.fStyle,this.globalData.fontManager.getFontByName(c.f).fFamily),y=g&&g.data||{},m.reset(),w&&p[h].n&&(re=-gn,Rn+=c.yOffset,Rn+=Vn?1:0,Vn=!1),x=y.shapes?y.shapes[0].it:[],J=x.length,m.scale(c.finalSize/100,c.finalSize/100),w&&this.applyTextPropertiesToMatrix(c,m,p[h].line,re,Rn),Fn=createSizedArray(J-1);var Gn=0;for(vn=0;vn<J;vn+=1)if(x[vn].ty==="sh"){for(Pn=x[vn].ks.k.i.length,j=x[vn].ks.k,Bn=[],b=1;b<Pn;b+=1)b===1&&Bn.push(m.applyToX(j.v[0][0],j.v[0][1],0),m.applyToY(j.v[0][0],j.v[0][1],0)),Bn.push(m.applyToX(j.o[b-1][0],j.o[b-1][1],0),m.applyToY(j.o[b-1][0],j.o[b-1][1],0),m.applyToX(j.i[b][0],j.i[b][1],0),m.applyToY(j.i[b][0],j.i[b][1],0),m.applyToX(j.v[b][0],j.v[b][1],0),m.applyToY(j.v[b][0],j.v[b][1],0));Bn.push(m.applyToX(j.o[b-1][0],j.o[b-1][1],0),m.applyToY(j.o[b-1][0],j.o[b-1][1],0),m.applyToX(j.i[0][0],j.i[0][1],0),m.applyToY(j.i[0][0],j.i[0][1],0),m.applyToX(j.v[0][0],j.v[0][1],0),m.applyToY(j.v[0][0],j.v[0][1],0)),Fn[Gn]=Bn,Gn+=1}w&&(re+=p[h].l,re+=gn),this.textSpans[Wn]?this.textSpans[Wn].elem=Fn:this.textSpans[Wn]={elem:Fn},Wn+=1}},CVTextElement.prototype.renderInnerContent=function(){this.validateText();var c=this.canvasContext;c.font=this.values.fValue,this.globalData.renderer.ctxLineCap("butt"),this.globalData.renderer.ctxLineJoin("miter"),this.globalData.renderer.ctxMiterLimit(4),this.data.singleShape||this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag);var u,f,d,h,v,p,m=this.textAnimator.renderedLetters,g=this.textProperty.currentData.l;f=g.length;var y,b=null,Pn=null,x=null,vn,J,j=this.globalData.renderer;for(u=0;u<f;u+=1)if(!g[u].n){if(y=m[u],y&&(j.save(),j.ctxTransform(y.p),j.ctxOpacity(y.o)),this.fill){for(y&&y.fc?b!==y.fc&&(j.ctxFillStyle(y.fc),b=y.fc):b!==this.values.fill&&(b=this.values.fill,j.ctxFillStyle(this.values.fill)),vn=this.textSpans[u].elem,h=vn.length,this.globalData.canvasContext.beginPath(),d=0;d<h;d+=1)for(J=vn[d],p=J.length,this.globalData.canvasContext.moveTo(J[0],J[1]),v=2;v<p;v+=6)this.globalData.canvasContext.bezierCurveTo(J[v],J[v+1],J[v+2],J[v+3],J[v+4],J[v+5]);this.globalData.canvasContext.closePath(),j.ctxFill()}if(this.stroke){for(y&&y.sw?x!==y.sw&&(x=y.sw,j.ctxLineWidth(y.sw)):x!==this.values.sWidth&&(x=this.values.sWidth,j.ctxLineWidth(this.values.sWidth)),y&&y.sc?Pn!==y.sc&&(Pn=y.sc,j.ctxStrokeStyle(y.sc)):Pn!==this.values.stroke&&(Pn=this.values.stroke,j.ctxStrokeStyle(this.values.stroke)),vn=this.textSpans[u].elem,h=vn.length,this.globalData.canvasContext.beginPath(),d=0;d<h;d+=1)for(J=vn[d],p=J.length,this.globalData.canvasContext.moveTo(J[0],J[1]),v=2;v<p;v+=6)this.globalData.canvasContext.bezierCurveTo(J[v],J[v+1],J[v+2],J[v+3],J[v+4],J[v+5]);this.globalData.canvasContext.closePath(),j.ctxStroke()}y&&this.globalData.renderer.restore()}};function CVImageElement(c,u,f){this.assetData=u.getAssetData(c.refId),this.img=u.imageLoader.getAsset(this.assetData),this.initElement(c,u,f)}extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVImageElement),CVImageElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVImageElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVImageElement.prototype.createContent=function(){if(this.img.width&&(this.assetData.w!==this.img.width||this.assetData.h!==this.img.height)){var c=createTag("canvas");c.width=this.assetData.w,c.height=this.assetData.h;var u=c.getContext("2d"),f=this.img.width,d=this.img.height,h=f/d,v=this.assetData.w/this.assetData.h,p,m,g=this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio;h>v&&g==="xMidYMid slice"||h<v&&g!=="xMidYMid slice"?(m=d,p=m*v):(p=f,m=p/v),u.drawImage(this.img,(f-p)/2,(d-m)/2,p,m,0,0,this.assetData.w,this.assetData.h),this.img=c}},CVImageElement.prototype.renderInnerContent=function(){this.canvasContext.drawImage(this.img,0,0)},CVImageElement.prototype.destroy=function(){this.img=null};function CVSolidElement(c,u,f){this.initElement(c,u,f)}extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVSolidElement),CVSolidElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVSolidElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVSolidElement.prototype.renderInnerContent=function(){this.globalData.renderer.ctxFillStyle(this.data.sc),this.globalData.renderer.ctxFillRect(0,0,this.data.sw,this.data.sh)};function CanvasRendererBase(){}extendPrototype([BaseRenderer],CanvasRendererBase),CanvasRendererBase.prototype.createShape=function(c){return new CVShapeElement(c,this.globalData,this)},CanvasRendererBase.prototype.createText=function(c){return new CVTextElement(c,this.globalData,this)},CanvasRendererBase.prototype.createImage=function(c){return new CVImageElement(c,this.globalData,this)},CanvasRendererBase.prototype.createSolid=function(c){return new CVSolidElement(c,this.globalData,this)},CanvasRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,CanvasRendererBase.prototype.ctxTransform=function(c){c[0]===1&&c[1]===0&&c[4]===0&&c[5]===1&&c[12]===0&&c[13]===0||this.canvasContext.transform(c[0],c[1],c[4],c[5],c[12],c[13])},CanvasRendererBase.prototype.ctxOpacity=function(c){this.canvasContext.globalAlpha*=c<0?0:c},CanvasRendererBase.prototype.ctxFillStyle=function(c){this.canvasContext.fillStyle=c},CanvasRendererBase.prototype.ctxStrokeStyle=function(c){this.canvasContext.strokeStyle=c},CanvasRendererBase.prototype.ctxLineWidth=function(c){this.canvasContext.lineWidth=c},CanvasRendererBase.prototype.ctxLineCap=function(c){this.canvasContext.lineCap=c},CanvasRendererBase.prototype.ctxLineJoin=function(c){this.canvasContext.lineJoin=c},CanvasRendererBase.prototype.ctxMiterLimit=function(c){this.canvasContext.miterLimit=c},CanvasRendererBase.prototype.ctxFill=function(c){this.canvasContext.fill(c)},CanvasRendererBase.prototype.ctxFillRect=function(c,u,f,d){this.canvasContext.fillRect(c,u,f,d)},CanvasRendererBase.prototype.ctxStroke=function(){this.canvasContext.stroke()},CanvasRendererBase.prototype.reset=function(){if(!this.renderConfig.clearCanvas){this.canvasContext.restore();return}this.contextData.reset()},CanvasRendererBase.prototype.save=function(){this.canvasContext.save()},CanvasRendererBase.prototype.restore=function(c){if(!this.renderConfig.clearCanvas){this.canvasContext.restore();return}c&&(this.globalData.blendMode="source-over"),this.contextData.restore(c)},CanvasRendererBase.prototype.configAnimation=function(c){if(this.animationItem.wrapper){this.animationItem.container=createTag("canvas");var u=this.animationItem.container.style;u.width="100%",u.height="100%";var f="0px 0px 0px";u.transformOrigin=f,u.mozTransformOrigin=f,u.webkitTransformOrigin=f,u["-webkit-transform"]=f,u.contentVisibility=this.renderConfig.contentVisibility,this.animationItem.wrapper.appendChild(this.animationItem.container),this.canvasContext=this.animationItem.container.getContext("2d"),this.renderConfig.className&&this.animationItem.container.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.animationItem.container.setAttribute("id",this.renderConfig.id)}else this.canvasContext=this.renderConfig.context;this.contextData.setContext(this.canvasContext),this.data=c,this.layers=c.layers,this.transformCanvas={w:c.w,h:c.h,sx:0,sy:0,tx:0,ty:0},this.setupGlobalData(c,document.body),this.globalData.canvasContext=this.canvasContext,this.globalData.renderer=this,this.globalData.isDashed=!1,this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.globalData.transformCanvas=this.transformCanvas,this.elements=createSizedArray(c.layers.length),this.updateContainerSize()},CanvasRendererBase.prototype.updateContainerSize=function(c,u){this.reset();var f,d;c?(f=c,d=u,this.canvasContext.canvas.width=f,this.canvasContext.canvas.height=d):(this.animationItem.wrapper&&this.animationItem.container?(f=this.animationItem.wrapper.offsetWidth,d=this.animationItem.wrapper.offsetHeight):(f=this.canvasContext.canvas.width,d=this.canvasContext.canvas.height),this.canvasContext.canvas.width=f*this.renderConfig.dpr,this.canvasContext.canvas.height=d*this.renderConfig.dpr);var h,v;if(this.renderConfig.preserveAspectRatio.indexOf("meet")!==-1||this.renderConfig.preserveAspectRatio.indexOf("slice")!==-1){var p=this.renderConfig.preserveAspectRatio.split(" "),m=p[1]||"meet",g=p[0]||"xMidYMid",y=g.substr(0,4),b=g.substr(4);h=f/d,v=this.transformCanvas.w/this.transformCanvas.h,v>h&&m==="meet"||v<h&&m==="slice"?(this.transformCanvas.sx=f/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=f/(this.transformCanvas.w/this.renderConfig.dpr)):(this.transformCanvas.sx=d/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.sy=d/(this.transformCanvas.h/this.renderConfig.dpr)),y==="xMid"&&(v<h&&m==="meet"||v>h&&m==="slice")?this.transformCanvas.tx=(f-this.transformCanvas.w*(d/this.transformCanvas.h))/2*this.renderConfig.dpr:y==="xMax"&&(v<h&&m==="meet"||v>h&&m==="slice")?this.transformCanvas.tx=(f-this.transformCanvas.w*(d/this.transformCanvas.h))*this.renderConfig.dpr:this.transformCanvas.tx=0,b==="YMid"&&(v>h&&m==="meet"||v<h&&m==="slice")?this.transformCanvas.ty=(d-this.transformCanvas.h*(f/this.transformCanvas.w))/2*this.renderConfig.dpr:b==="YMax"&&(v>h&&m==="meet"||v<h&&m==="slice")?this.transformCanvas.ty=(d-this.transformCanvas.h*(f/this.transformCanvas.w))*this.renderConfig.dpr:this.transformCanvas.ty=0}else this.renderConfig.preserveAspectRatio==="none"?(this.transformCanvas.sx=f/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=d/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.tx=0,this.transformCanvas.ty=0):(this.transformCanvas.sx=this.renderConfig.dpr,this.transformCanvas.sy=this.renderConfig.dpr,this.transformCanvas.tx=0,this.transformCanvas.ty=0);this.transformCanvas.props=[this.transformCanvas.sx,0,0,0,0,this.transformCanvas.sy,0,0,0,0,1,0,this.transformCanvas.tx,this.transformCanvas.ty,0,1],this.ctxTransform(this.transformCanvas.props),this.canvasContext.beginPath(),this.canvasContext.rect(0,0,this.transformCanvas.w,this.transformCanvas.h),this.canvasContext.closePath(),this.canvasContext.clip(),this.renderFrame(this.renderedFrame,!0)},CanvasRendererBase.prototype.destroy=function(){this.renderConfig.clearCanvas&&this.animationItem.wrapper&&(this.animationItem.wrapper.innerText="");var c,u=this.layers?this.layers.length:0;for(c=u-1;c>=0;c-=1)this.elements[c]&&this.elements[c].destroy&&this.elements[c].destroy();this.elements.length=0,this.globalData.canvasContext=null,this.animationItem.container=null,this.destroyed=!0},CanvasRendererBase.prototype.renderFrame=function(c,u){if(!(this.renderedFrame===c&&this.renderConfig.clearCanvas===!0&&!u||this.destroyed||c===-1)){this.renderedFrame=c,this.globalData.frameNum=c-this.animationItem._isFirstFrame,this.globalData.frameId+=1,this.globalData._mdf=!this.renderConfig.clearCanvas||u,this.globalData.projectInterface.currentFrame=c;var f,d=this.layers.length;for(this.completeLayers||this.checkLayers(c),f=d-1;f>=0;f-=1)(this.completeLayers||this.elements[f])&&this.elements[f].prepareFrame(c-this.layers[f].st);if(this.globalData._mdf){for(this.renderConfig.clearCanvas===!0?this.canvasContext.clearRect(0,0,this.transformCanvas.w,this.transformCanvas.h):this.save(),f=d-1;f>=0;f-=1)(this.completeLayers||this.elements[f])&&this.elements[f].renderFrame();this.renderConfig.clearCanvas!==!0&&this.restore()}}},CanvasRendererBase.prototype.buildItem=function(c){var u=this.elements;if(!(u[c]||this.layers[c].ty===99)){var f=this.createItem(this.layers[c],this,this.globalData);u[c]=f,f.initExpressions()}},CanvasRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var c=this.pendingElements.pop();c.checkParenting()}},CanvasRendererBase.prototype.hide=function(){this.animationItem.container.style.display="none"},CanvasRendererBase.prototype.show=function(){this.animationItem.container.style.display="block"};function CanvasContext(){this.opacity=-1,this.transform=createTypedArray("float32",16),this.fillStyle="",this.strokeStyle="",this.lineWidth="",this.lineCap="",this.lineJoin="",this.miterLimit="",this.id=Math.random()}function CVContextData(){this.stack=[],this.cArrPos=0,this.cTr=new Matrix;var c,u=15;for(c=0;c<u;c+=1){var f=new CanvasContext;this.stack[c]=f}this._length=u,this.nativeContext=null,this.transformMat=new Matrix,this.currentOpacity=1,this.currentFillStyle="",this.appliedFillStyle="",this.currentStrokeStyle="",this.appliedStrokeStyle="",this.currentLineWidth="",this.appliedLineWidth="",this.currentLineCap="",this.appliedLineCap="",this.currentLineJoin="",this.appliedLineJoin="",this.appliedMiterLimit="",this.currentMiterLimit=""}CVContextData.prototype.duplicate=function(){var c=this._length*2,u=0;for(u=this._length;u<c;u+=1)this.stack[u]=new CanvasContext;this._length=c},CVContextData.prototype.reset=function(){this.cArrPos=0,this.cTr.reset(),this.stack[this.cArrPos].opacity=1},CVContextData.prototype.restore=function(c){this.cArrPos-=1;var u=this.stack[this.cArrPos],f=u.transform,d,h=this.cTr.props;for(d=0;d<16;d+=1)h[d]=f[d];if(c){this.nativeContext.restore();var v=this.stack[this.cArrPos+1];this.appliedFillStyle=v.fillStyle,this.appliedStrokeStyle=v.strokeStyle,this.appliedLineWidth=v.lineWidth,this.appliedLineCap=v.lineCap,this.appliedLineJoin=v.lineJoin,this.appliedMiterLimit=v.miterLimit}this.nativeContext.setTransform(f[0],f[1],f[4],f[5],f[12],f[13]),(c||u.opacity!==-1&&this.currentOpacity!==u.opacity)&&(this.nativeContext.globalAlpha=u.opacity,this.currentOpacity=u.opacity),this.currentFillStyle=u.fillStyle,this.currentStrokeStyle=u.strokeStyle,this.currentLineWidth=u.lineWidth,this.currentLineCap=u.lineCap,this.currentLineJoin=u.lineJoin,this.currentMiterLimit=u.miterLimit},CVContextData.prototype.save=function(c){c&&this.nativeContext.save();var u=this.cTr.props;this._length<=this.cArrPos&&this.duplicate();var f=this.stack[this.cArrPos],d;for(d=0;d<16;d+=1)f.transform[d]=u[d];this.cArrPos+=1;var h=this.stack[this.cArrPos];h.opacity=f.opacity,h.fillStyle=f.fillStyle,h.strokeStyle=f.strokeStyle,h.lineWidth=f.lineWidth,h.lineCap=f.lineCap,h.lineJoin=f.lineJoin,h.miterLimit=f.miterLimit},CVContextData.prototype.setOpacity=function(c){this.stack[this.cArrPos].opacity=c},CVContextData.prototype.setContext=function(c){this.nativeContext=c},CVContextData.prototype.fillStyle=function(c){this.stack[this.cArrPos].fillStyle!==c&&(this.currentFillStyle=c,this.stack[this.cArrPos].fillStyle=c)},CVContextData.prototype.strokeStyle=function(c){this.stack[this.cArrPos].strokeStyle!==c&&(this.currentStrokeStyle=c,this.stack[this.cArrPos].strokeStyle=c)},CVContextData.prototype.lineWidth=function(c){this.stack[this.cArrPos].lineWidth!==c&&(this.currentLineWidth=c,this.stack[this.cArrPos].lineWidth=c)},CVContextData.prototype.lineCap=function(c){this.stack[this.cArrPos].lineCap!==c&&(this.currentLineCap=c,this.stack[this.cArrPos].lineCap=c)},CVContextData.prototype.lineJoin=function(c){this.stack[this.cArrPos].lineJoin!==c&&(this.currentLineJoin=c,this.stack[this.cArrPos].lineJoin=c)},CVContextData.prototype.miterLimit=function(c){this.stack[this.cArrPos].miterLimit!==c&&(this.currentMiterLimit=c,this.stack[this.cArrPos].miterLimit=c)},CVContextData.prototype.transform=function(c){this.transformMat.cloneFromProps(c);var u=this.cTr;this.transformMat.multiply(u),u.cloneFromProps(this.transformMat.props);var f=u.props;this.nativeContext.setTransform(f[0],f[1],f[4],f[5],f[12],f[13])},CVContextData.prototype.opacity=function(c){var u=this.stack[this.cArrPos].opacity;u*=c<0?0:c,this.stack[this.cArrPos].opacity!==u&&(this.currentOpacity!==c&&(this.nativeContext.globalAlpha=c,this.currentOpacity=c),this.stack[this.cArrPos].opacity=u)},CVContextData.prototype.fill=function(c){this.appliedFillStyle!==this.currentFillStyle&&(this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle),this.nativeContext.fill(c)},CVContextData.prototype.fillRect=function(c,u,f,d){this.appliedFillStyle!==this.currentFillStyle&&(this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle),this.nativeContext.fillRect(c,u,f,d)},CVContextData.prototype.stroke=function(){this.appliedStrokeStyle!==this.currentStrokeStyle&&(this.appliedStrokeStyle=this.currentStrokeStyle,this.nativeContext.strokeStyle=this.appliedStrokeStyle),this.appliedLineWidth!==this.currentLineWidth&&(this.appliedLineWidth=this.currentLineWidth,this.nativeContext.lineWidth=this.appliedLineWidth),this.appliedLineCap!==this.currentLineCap&&(this.appliedLineCap=this.currentLineCap,this.nativeContext.lineCap=this.appliedLineCap),this.appliedLineJoin!==this.currentLineJoin&&(this.appliedLineJoin=this.currentLineJoin,this.nativeContext.lineJoin=this.appliedLineJoin),this.appliedMiterLimit!==this.currentMiterLimit&&(this.appliedMiterLimit=this.currentMiterLimit,this.nativeContext.miterLimit=this.appliedMiterLimit),this.nativeContext.stroke()};function CVCompElement(c,u,f){this.completeLayers=!1,this.layers=c.layers,this.pendingElements=[],this.elements=createSizedArray(this.layers.length),this.initElement(c,u,f),this.tm=c.tm?PropertyFactory.getProp(this,c.tm,0,u.frameRate,this):{_placeholder:!0}}extendPrototype([CanvasRendererBase,ICompElement,CVBaseElement],CVCompElement),CVCompElement.prototype.renderInnerContent=function(){var c=this.canvasContext;c.beginPath(),c.moveTo(0,0),c.lineTo(this.data.w,0),c.lineTo(this.data.w,this.data.h),c.lineTo(0,this.data.h),c.lineTo(0,0),c.clip();var u,f=this.layers.length;for(u=f-1;u>=0;u-=1)(this.completeLayers||this.elements[u])&&this.elements[u].renderFrame()},CVCompElement.prototype.destroy=function(){var c,u=this.layers.length;for(c=u-1;c>=0;c-=1)this.elements[c]&&this.elements[c].destroy();this.layers=null,this.elements=null},CVCompElement.prototype.createComp=function(c){return new CVCompElement(c,this.globalData,this)};function CanvasRenderer(c,u){this.animationItem=c,this.renderConfig={clearCanvas:u&&u.clearCanvas!==void 0?u.clearCanvas:!0,context:u&&u.context||null,progressiveLoad:u&&u.progressiveLoad||!1,preserveAspectRatio:u&&u.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:u&&u.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:u&&u.contentVisibility||"visible",className:u&&u.className||"",id:u&&u.id||"",runExpressions:!u||u.runExpressions===void 0||u.runExpressions},this.renderConfig.dpr=u&&u.dpr||1,this.animationItem.wrapper&&(this.renderConfig.dpr=u&&u.dpr||window.devicePixelRatio||1),this.renderedFrame=-1,this.globalData={frameNum:-1,_mdf:!1,renderConfig:this.renderConfig,currentGlobalAlpha:-1},this.contextData=new CVContextData,this.elements=[],this.pendingElements=[],this.transformMat=new Matrix,this.completeLayers=!1,this.rendererType="canvas",this.renderConfig.clearCanvas&&(this.ctxTransform=this.contextData.transform.bind(this.contextData),this.ctxOpacity=this.contextData.opacity.bind(this.contextData),this.ctxFillStyle=this.contextData.fillStyle.bind(this.contextData),this.ctxStrokeStyle=this.contextData.strokeStyle.bind(this.contextData),this.ctxLineWidth=this.contextData.lineWidth.bind(this.contextData),this.ctxLineCap=this.contextData.lineCap.bind(this.contextData),this.ctxLineJoin=this.contextData.lineJoin.bind(this.contextData),this.ctxMiterLimit=this.contextData.miterLimit.bind(this.contextData),this.ctxFill=this.contextData.fill.bind(this.contextData),this.ctxFillRect=this.contextData.fillRect.bind(this.contextData),this.ctxStroke=this.contextData.stroke.bind(this.contextData),this.save=this.contextData.save.bind(this.contextData))}extendPrototype([CanvasRendererBase],CanvasRenderer),CanvasRenderer.prototype.createComp=function(c){return new CVCompElement(c,this.globalData,this)};function HBaseElement(){}HBaseElement.prototype={checkBlendMode:function(){},initRendererElement:function(){this.baseElement=createTag(this.data.tg||"div"),this.data.hasMask?(this.svgElement=createNS("svg"),this.layerElement=createNS("g"),this.maskedElement=this.layerElement,this.svgElement.appendChild(this.layerElement),this.baseElement.appendChild(this.svgElement)):this.layerElement=this.baseElement,styleDiv(this.baseElement)},createContainerElements:function(){this.renderableEffectsManager=new CVEffects(this),this.transformedElement=this.baseElement,this.maskedElement=this.layerElement,this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),this.data.bm!==0&&this.setBlendMode()},renderElement:function(){var u=this.transformedElement?this.transformedElement.style:{};if(this.finalTransform._matMdf){var f=this.finalTransform.mat.toCSS();u.transform=f,u.webkitTransform=f}this.finalTransform._opMdf&&(u.opacity=this.finalTransform.mProp.o.v)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},destroy:function(){this.layerElement=null,this.transformedElement=null,this.matteElement&&(this.matteElement=null),this.maskManager&&(this.maskManager.destroy(),this.maskManager=null)},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData)},addEffects:function(){},setMatte:function(){}},HBaseElement.prototype.getBaseElement=SVGBaseElement.prototype.getBaseElement,HBaseElement.prototype.destroyBaseElement=HBaseElement.prototype.destroy,HBaseElement.prototype.buildElementParenting=BaseRenderer.prototype.buildElementParenting;function HSolidElement(c,u,f){this.initElement(c,u,f)}extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],HSolidElement),HSolidElement.prototype.createContent=function(){var c;this.data.hasMask?(c=createNS("rect"),c.setAttribute("width",this.data.sw),c.setAttribute("height",this.data.sh),c.setAttribute("fill",this.data.sc),this.svgElement.setAttribute("width",this.data.sw),this.svgElement.setAttribute("height",this.data.sh)):(c=createTag("div"),c.style.width=this.data.sw+"px",c.style.height=this.data.sh+"px",c.style.backgroundColor=this.data.sc),this.layerElement.appendChild(c)};function HShapeElement(c,u,f){this.shapes=[],this.shapesData=c.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.shapesContainer=createNS("g"),this.initElement(c,u,f),this.prevViewData=[],this.currentBBox={x:999999,y:-999999,h:0,w:0}}extendPrototype([BaseElement,TransformElement,HSolidElement,SVGShapeElement,HBaseElement,HierarchyElement,FrameElement,RenderableElement],HShapeElement),HShapeElement.prototype._renderShapeFrame=HShapeElement.prototype.renderInnerContent,HShapeElement.prototype.createContent=function(){var c;if(this.baseElement.style.fontSize=0,this.data.hasMask)this.layerElement.appendChild(this.shapesContainer),c=this.svgElement;else{c=createNS("svg");var u=this.comp.data?this.comp.data:this.globalData.compSize;c.setAttribute("width",u.w),c.setAttribute("height",u.h),c.appendChild(this.shapesContainer),this.layerElement.appendChild(c)}this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.shapesContainer,0,[],!0),this.filterUniqueShapes(),this.shapeCont=c},HShapeElement.prototype.getTransformedPoint=function(c,u){var f,d=c.length;for(f=0;f<d;f+=1)u=c[f].mProps.v.applyToPointArray(u[0],u[1],0);return u},HShapeElement.prototype.calculateShapeBoundingBox=function(c,u){var f=c.sh.v,d=c.transformers,h,v=f._length,p,m,g,y;if(!(v<=1)){for(h=0;h<v-1;h+=1)p=this.getTransformedPoint(d,f.v[h]),m=this.getTransformedPoint(d,f.o[h]),g=this.getTransformedPoint(d,f.i[h+1]),y=this.getTransformedPoint(d,f.v[h+1]),this.checkBounds(p,m,g,y,u);f.c&&(p=this.getTransformedPoint(d,f.v[h]),m=this.getTransformedPoint(d,f.o[h]),g=this.getTransformedPoint(d,f.i[0]),y=this.getTransformedPoint(d,f.v[0]),this.checkBounds(p,m,g,y,u))}},HShapeElement.prototype.checkBounds=function(c,u,f,d,h){this.getBoundsOfCurve(c,u,f,d);var v=this.shapeBoundingBox;h.x=bmMin(v.left,h.x),h.xMax=bmMax(v.right,h.xMax),h.y=bmMin(v.top,h.y),h.yMax=bmMax(v.bottom,h.yMax)},HShapeElement.prototype.shapeBoundingBox={left:0,right:0,top:0,bottom:0},HShapeElement.prototype.tempBoundingBox={x:0,xMax:0,y:0,yMax:0,width:0,height:0},HShapeElement.prototype.getBoundsOfCurve=function(c,u,f,d){for(var h=[[c[0],d[0]],[c[1],d[1]]],v,p,m,g,y,b,Pn,x=0;x<2;++x)p=6*c[x]-12*u[x]+6*f[x],v=-3*c[x]+9*u[x]-9*f[x]+3*d[x],m=3*u[x]-3*c[x],p|=0,v|=0,m|=0,v===0&&p===0||(v===0?(g=-m/p,g>0&&g<1&&h[x].push(this.calculateF(g,c,u,f,d,x))):(y=p*p-4*m*v,y>=0&&(b=(-p+bmSqrt(y))/(2*v),b>0&&b<1&&h[x].push(this.calculateF(b,c,u,f,d,x)),Pn=(-p-bmSqrt(y))/(2*v),Pn>0&&Pn<1&&h[x].push(this.calculateF(Pn,c,u,f,d,x)))));this.shapeBoundingBox.left=bmMin.apply(null,h[0]),this.shapeBoundingBox.top=bmMin.apply(null,h[1]),this.shapeBoundingBox.right=bmMax.apply(null,h[0]),this.shapeBoundingBox.bottom=bmMax.apply(null,h[1])},HShapeElement.prototype.calculateF=function(c,u,f,d,h,v){return bmPow(1-c,3)*u[v]+3*bmPow(1-c,2)*c*f[v]+3*(1-c)*bmPow(c,2)*d[v]+bmPow(c,3)*h[v]},HShapeElement.prototype.calculateBoundingBox=function(c,u){var f,d=c.length;for(f=0;f<d;f+=1)c[f]&&c[f].sh?this.calculateShapeBoundingBox(c[f],u):c[f]&&c[f].it?this.calculateBoundingBox(c[f].it,u):c[f]&&c[f].style&&c[f].w&&this.expandStrokeBoundingBox(c[f].w,u)},HShapeElement.prototype.expandStrokeBoundingBox=function(c,u){var f=0;if(c.keyframes){for(var d=0;d<c.keyframes.length;d+=1){var h=c.keyframes[d].s;h>f&&(f=h)}f*=c.mult}else f=c.v*c.mult;u.x-=f,u.xMax+=f,u.y-=f,u.yMax+=f},HShapeElement.prototype.currentBoxContains=function(c){return this.currentBBox.x<=c.x&&this.currentBBox.y<=c.y&&this.currentBBox.width+this.currentBBox.x>=c.x+c.width&&this.currentBBox.height+this.currentBBox.y>=c.y+c.height},HShapeElement.prototype.renderInnerContent=function(){if(this._renderShapeFrame(),!this.hidden&&(this._isFirstFrame||this._mdf)){var c=this.tempBoundingBox,u=999999;if(c.x=u,c.xMax=-u,c.y=u,c.yMax=-u,this.calculateBoundingBox(this.itemsData,c),c.width=c.xMax<c.x?0:c.xMax-c.x,c.height=c.yMax<c.y?0:c.yMax-c.y,this.currentBoxContains(c))return;var f=!1;if(this.currentBBox.w!==c.width&&(this.currentBBox.w=c.width,this.shapeCont.setAttribute("width",c.width),f=!0),this.currentBBox.h!==c.height&&(this.currentBBox.h=c.height,this.shapeCont.setAttribute("height",c.height),f=!0),f||this.currentBBox.x!==c.x||this.currentBBox.y!==c.y){this.currentBBox.w=c.width,this.currentBBox.h=c.height,this.currentBBox.x=c.x,this.currentBBox.y=c.y,this.shapeCont.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h);var d=this.shapeCont.style,h="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";d.transform=h,d.webkitTransform=h}}};function HTextElement(c,u,f){this.textSpans=[],this.textPaths=[],this.currentBBox={x:999999,y:-999999,h:0,w:0},this.renderType="svg",this.isMasked=!1,this.initElement(c,u,f)}extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],HTextElement),HTextElement.prototype.createContent=function(){if(this.isMasked=this.checkMasks(),this.isMasked){this.renderType="svg",this.compW=this.comp.data.w,this.compH=this.comp.data.h,this.svgElement.setAttribute("width",this.compW),this.svgElement.setAttribute("height",this.compH);var c=createNS("g");this.maskedElement.appendChild(c),this.innerElem=c}else this.renderType="html",this.innerElem=this.layerElement;this.checkParenting()},HTextElement.prototype.buildNewText=function(){var c=this.textProperty.currentData;this.renderedLetters=createSizedArray(c.l?c.l.length:0);var u=this.innerElem.style,f=c.fc?this.buildColor(c.fc):"rgba(0,0,0,0)";u.fill=f,u.color=f,c.sc&&(u.stroke=this.buildColor(c.sc),u.strokeWidth=c.sw+"px");var d=this.globalData.fontManager.getFontByName(c.f);if(!this.globalData.fontManager.chars)if(u.fontSize=c.finalSize+"px",u.lineHeight=c.finalSize+"px",d.fClass)this.innerElem.className=d.fClass;else{u.fontFamily=d.fFamily;var h=c.fWeight,v=c.fStyle;u.fontStyle=v,u.fontWeight=h}var p,m,g=c.l;m=g.length;var y,b,Pn,x=this.mHelper,vn,J="",j=0;for(p=0;p<m;p+=1){if(this.globalData.fontManager.chars?(this.textPaths[j]?y=this.textPaths[j]:(y=createNS("path"),y.setAttribute("stroke-linecap",lineCapEnum[1]),y.setAttribute("stroke-linejoin",lineJoinEnum[2]),y.setAttribute("stroke-miterlimit","4")),this.isMasked||(this.textSpans[j]?(b=this.textSpans[j],Pn=b.children[0]):(b=createTag("div"),b.style.lineHeight=0,Pn=createNS("svg"),Pn.appendChild(y),styleDiv(b)))):this.isMasked?y=this.textPaths[j]?this.textPaths[j]:createNS("text"):this.textSpans[j]?(b=this.textSpans[j],y=this.textPaths[j]):(b=createTag("span"),styleDiv(b),y=createTag("span"),styleDiv(y),b.appendChild(y)),this.globalData.fontManager.chars){var Fn=this.globalData.fontManager.getCharData(c.finalText[p],d.fStyle,this.globalData.fontManager.getFontByName(c.f).fFamily),Bn;if(Fn?Bn=Fn.data:Bn=null,x.reset(),Bn&&Bn.shapes&&Bn.shapes.length&&(vn=Bn.shapes[0].it,x.scale(c.finalSize/100,c.finalSize/100),J=this.createPathShape(x,vn),y.setAttribute("d",J)),this.isMasked)this.innerElem.appendChild(y);else{if(this.innerElem.appendChild(b),Bn&&Bn.shapes){document.body.appendChild(Pn);var w=Pn.getBBox();Pn.setAttribute("width",w.width+2),Pn.setAttribute("height",w.height+2),Pn.setAttribute("viewBox",w.x-1+" "+(w.y-1)+" "+(w.width+2)+" "+(w.height+2));var gn=Pn.style,re="translate("+(w.x-1)+"px,"+(w.y-1)+"px)";gn.transform=re,gn.webkitTransform=re,g[p].yOffset=w.y-1}else Pn.setAttribute("width",1),Pn.setAttribute("height",1);b.appendChild(Pn)}}else if(y.textContent=g[p].val,y.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),this.isMasked)this.innerElem.appendChild(y);else{this.innerElem.appendChild(b);var Rn=y.style,Vn="translate3d(0,"+-c.finalSize/1.2+"px,0)";Rn.transform=Vn,Rn.webkitTransform=Vn}this.isMasked?this.textSpans[j]=y:this.textSpans[j]=b,this.textSpans[j].style.display="block",this.textPaths[j]=y,j+=1}for(;j<this.textSpans.length;)this.textSpans[j].style.display="none",j+=1},HTextElement.prototype.renderInnerContent=function(){this.validateText();var c;if(this.data.singleShape){if(!this._isFirstFrame&&!this.lettersChangedFlag)return;if(this.isMasked&&this.finalTransform._matMdf){this.svgElement.setAttribute("viewBox",-this.finalTransform.mProp.p.v[0]+" "+-this.finalTransform.mProp.p.v[1]+" "+this.compW+" "+this.compH),c=this.svgElement.style;var u="translate("+-this.finalTransform.mProp.p.v[0]+"px,"+-this.finalTransform.mProp.p.v[1]+"px)";c.transform=u,c.webkitTransform=u}}if(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),!(!this.lettersChangedFlag&&!this.textAnimator.lettersChangedFlag)){var f,d,h=0,v=this.textAnimator.renderedLetters,p=this.textProperty.currentData.l;d=p.length;var m,g,y;for(f=0;f<d;f+=1)p[f].n?h+=1:(g=this.textSpans[f],y=this.textPaths[f],m=v[h],h+=1,m._mdf.m&&(this.isMasked?g.setAttribute("transform",m.m):(g.style.webkitTransform=m.m,g.style.transform=m.m)),g.style.opacity=m.o,m.sw&&m._mdf.sw&&y.setAttribute("stroke-width",m.sw),m.sc&&m._mdf.sc&&y.setAttribute("stroke",m.sc),m.fc&&m._mdf.fc&&(y.setAttribute("fill",m.fc),y.style.color=m.fc));if(this.innerElem.getBBox&&!this.hidden&&(this._isFirstFrame||this._mdf)){var b=this.innerElem.getBBox();this.currentBBox.w!==b.width&&(this.currentBBox.w=b.width,this.svgElement.setAttribute("width",b.width)),this.currentBBox.h!==b.height&&(this.currentBBox.h=b.height,this.svgElement.setAttribute("height",b.height));var Pn=1;if(this.currentBBox.w!==b.width+Pn*2||this.currentBBox.h!==b.height+Pn*2||this.currentBBox.x!==b.x-Pn||this.currentBBox.y!==b.y-Pn){this.currentBBox.w=b.width+Pn*2,this.currentBBox.h=b.height+Pn*2,this.currentBBox.x=b.x-Pn,this.currentBBox.y=b.y-Pn,this.svgElement.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h),c=this.svgElement.style;var x="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";c.transform=x,c.webkitTransform=x}}}};function HCameraElement(c,u,f){this.initFrame(),this.initBaseData(c,u,f),this.initHierarchy();var d=PropertyFactory.getProp;if(this.pe=d(this,c.pe,0,0,this),c.ks.p.s?(this.px=d(this,c.ks.p.x,1,0,this),this.py=d(this,c.ks.p.y,1,0,this),this.pz=d(this,c.ks.p.z,1,0,this)):this.p=d(this,c.ks.p,1,0,this),c.ks.a&&(this.a=d(this,c.ks.a,1,0,this)),c.ks.or.k.length&&c.ks.or.k[0].to){var h,v=c.ks.or.k.length;for(h=0;h<v;h+=1)c.ks.or.k[h].to=null,c.ks.or.k[h].ti=null}this.or=d(this,c.ks.or,1,degToRads,this),this.or.sh=!0,this.rx=d(this,c.ks.rx,0,degToRads,this),this.ry=d(this,c.ks.ry,0,degToRads,this),this.rz=d(this,c.ks.rz,0,degToRads,this),this.mat=new Matrix,this._prevMat=new Matrix,this._isFirstFrame=!0,this.finalTransform={mProp:this}}extendPrototype([BaseElement,FrameElement,HierarchyElement],HCameraElement),HCameraElement.prototype.setup=function(){var c,u=this.comp.threeDElements.length,f,d,h;for(c=0;c<u;c+=1)if(f=this.comp.threeDElements[c],f.type==="3d"){d=f.perspectiveElem.style,h=f.container.style;var v=this.pe.v+"px",p="0px 0px 0px",m="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";d.perspective=v,d.webkitPerspective=v,h.transformOrigin=p,h.mozTransformOrigin=p,h.webkitTransformOrigin=p,d.transform=m,d.webkitTransform=m}},HCameraElement.prototype.createElements=function(){},HCameraElement.prototype.hide=function(){},HCameraElement.prototype.renderFrame=function(){var c=this._isFirstFrame,u,f;if(this.hierarchy)for(f=this.hierarchy.length,u=0;u<f;u+=1)c=this.hierarchy[u].finalTransform.mProp._mdf||c;if(c||this.pe._mdf||this.p&&this.p._mdf||this.px&&(this.px._mdf||this.py._mdf||this.pz._mdf)||this.rx._mdf||this.ry._mdf||this.rz._mdf||this.or._mdf||this.a&&this.a._mdf){if(this.mat.reset(),this.hierarchy)for(f=this.hierarchy.length-1,u=f;u>=0;u-=1){var d=this.hierarchy[u].finalTransform.mProp;this.mat.translate(-d.p.v[0],-d.p.v[1],d.p.v[2]),this.mat.rotateX(-d.or.v[0]).rotateY(-d.or.v[1]).rotateZ(d.or.v[2]),this.mat.rotateX(-d.rx.v).rotateY(-d.ry.v).rotateZ(d.rz.v),this.mat.scale(1/d.s.v[0],1/d.s.v[1],1/d.s.v[2]),this.mat.translate(d.a.v[0],d.a.v[1],d.a.v[2])}if(this.p?this.mat.translate(-this.p.v[0],-this.p.v[1],this.p.v[2]):this.mat.translate(-this.px.v,-this.py.v,this.pz.v),this.a){var h;this.p?h=[this.p.v[0]-this.a.v[0],this.p.v[1]-this.a.v[1],this.p.v[2]-this.a.v[2]]:h=[this.px.v-this.a.v[0],this.py.v-this.a.v[1],this.pz.v-this.a.v[2]];var v=Math.sqrt(Math.pow(h[0],2)+Math.pow(h[1],2)+Math.pow(h[2],2)),p=[h[0]/v,h[1]/v,h[2]/v],m=Math.sqrt(p[2]*p[2]+p[0]*p[0]),g=Math.atan2(p[1],m),y=Math.atan2(p[0],-p[2]);this.mat.rotateY(y).rotateX(-g)}this.mat.rotateX(-this.rx.v).rotateY(-this.ry.v).rotateZ(this.rz.v),this.mat.rotateX(-this.or.v[0]).rotateY(-this.or.v[1]).rotateZ(this.or.v[2]),this.mat.translate(this.globalData.compSize.w/2,this.globalData.compSize.h/2,0),this.mat.translate(0,0,this.pe.v);var b=!this._prevMat.equals(this.mat);if((b||this.pe._mdf)&&this.comp.threeDElements){f=this.comp.threeDElements.length;var Pn,x,vn;for(u=0;u<f;u+=1)if(Pn=this.comp.threeDElements[u],Pn.type==="3d"){if(b){var J=this.mat.toCSS();vn=Pn.container.style,vn.transform=J,vn.webkitTransform=J}this.pe._mdf&&(x=Pn.perspectiveElem.style,x.perspective=this.pe.v+"px",x.webkitPerspective=this.pe.v+"px")}this.mat.clone(this._prevMat)}}this._isFirstFrame=!1},HCameraElement.prototype.prepareFrame=function(c){this.prepareProperties(c,!0)},HCameraElement.prototype.destroy=function(){},HCameraElement.prototype.getBaseElement=function(){return null};function HImageElement(c,u,f){this.assetData=u.getAssetData(c.refId),this.initElement(c,u,f)}extendPrototype([BaseElement,TransformElement,HBaseElement,HSolidElement,HierarchyElement,FrameElement,RenderableElement],HImageElement),HImageElement.prototype.createContent=function(){var c=this.globalData.getAssetsPath(this.assetData),u=new Image;this.data.hasMask?(this.imageElem=createNS("image"),this.imageElem.setAttribute("width",this.assetData.w+"px"),this.imageElem.setAttribute("height",this.assetData.h+"px"),this.imageElem.setAttributeNS("http://www.w3.org/1999/xlink","href",c),this.layerElement.appendChild(this.imageElem),this.baseElement.setAttribute("width",this.assetData.w),this.baseElement.setAttribute("height",this.assetData.h)):this.layerElement.appendChild(u),u.crossOrigin="anonymous",u.src=c,this.data.ln&&this.baseElement.setAttribute("id",this.data.ln)};function HybridRendererBase(c,u){this.animationItem=c,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:u&&u.className||"",imagePreserveAspectRatio:u&&u.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(u&&u.hideOnTransparent===!1),filterSize:{width:u&&u.filterSize&&u.filterSize.width||"400%",height:u&&u.filterSize&&u.filterSize.height||"400%",x:u&&u.filterSize&&u.filterSize.x||"-100%",y:u&&u.filterSize&&u.filterSize.y||"-100%"}},this.globalData={_mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this.pendingElements=[],this.elements=[],this.threeDElements=[],this.destroyed=!1,this.camera=null,this.supports3d=!0,this.rendererType="html"}extendPrototype([BaseRenderer],HybridRendererBase),HybridRendererBase.prototype.buildItem=SVGRenderer.prototype.buildItem,HybridRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var c=this.pendingElements.pop();c.checkParenting()}},HybridRendererBase.prototype.appendElementInPos=function(c,u){var f=c.getBaseElement();if(f){var d=this.layers[u];if(!d.ddd||!this.supports3d)if(this.threeDElements)this.addTo3dContainer(f,u);else{for(var h=0,v,p,m;h<u;)this.elements[h]&&this.elements[h]!==!0&&this.elements[h].getBaseElement&&(p=this.elements[h],m=this.layers[h].ddd?this.getThreeDContainerByPos(h):p.getBaseElement(),v=m||v),h+=1;v?(!d.ddd||!this.supports3d)&&this.layerElement.insertBefore(f,v):(!d.ddd||!this.supports3d)&&this.layerElement.appendChild(f)}else this.addTo3dContainer(f,u)}},HybridRendererBase.prototype.createShape=function(c){return this.supports3d?new HShapeElement(c,this.globalData,this):new SVGShapeElement(c,this.globalData,this)},HybridRendererBase.prototype.createText=function(c){return this.supports3d?new HTextElement(c,this.globalData,this):new SVGTextLottieElement(c,this.globalData,this)},HybridRendererBase.prototype.createCamera=function(c){return this.camera=new HCameraElement(c,this.globalData,this),this.camera},HybridRendererBase.prototype.createImage=function(c){return this.supports3d?new HImageElement(c,this.globalData,this):new IImageElement(c,this.globalData,this)},HybridRendererBase.prototype.createSolid=function(c){return this.supports3d?new HSolidElement(c,this.globalData,this):new ISolidElement(c,this.globalData,this)},HybridRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,HybridRendererBase.prototype.getThreeDContainerByPos=function(c){for(var u=0,f=this.threeDElements.length;u<f;){if(this.threeDElements[u].startPos<=c&&this.threeDElements[u].endPos>=c)return this.threeDElements[u].perspectiveElem;u+=1}return null},HybridRendererBase.prototype.createThreeDContainer=function(c,u){var f=createTag("div"),d,h;styleDiv(f);var v=createTag("div");if(styleDiv(v),u==="3d"){d=f.style,d.width=this.globalData.compSize.w+"px",d.height=this.globalData.compSize.h+"px";var p="50% 50%";d.webkitTransformOrigin=p,d.mozTransformOrigin=p,d.transformOrigin=p,h=v.style;var m="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";h.transform=m,h.webkitTransform=m}f.appendChild(v);var g={container:v,perspectiveElem:f,startPos:c,endPos:c,type:u};return this.threeDElements.push(g),g},HybridRendererBase.prototype.build3dContainers=function(){var c,u=this.layers.length,f,d="";for(c=0;c<u;c+=1)this.layers[c].ddd&&this.layers[c].ty!==3?(d!=="3d"&&(d="3d",f=this.createThreeDContainer(c,"3d")),f.endPos=Math.max(f.endPos,c)):(d!=="2d"&&(d="2d",f=this.createThreeDContainer(c,"2d")),f.endPos=Math.max(f.endPos,c));for(u=this.threeDElements.length,c=u-1;c>=0;c-=1)this.resizerElem.appendChild(this.threeDElements[c].perspectiveElem)},HybridRendererBase.prototype.addTo3dContainer=function(c,u){for(var f=0,d=this.threeDElements.length;f<d;){if(u<=this.threeDElements[f].endPos){for(var h=this.threeDElements[f].startPos,v;h<u;)this.elements[h]&&this.elements[h].getBaseElement&&(v=this.elements[h].getBaseElement()),h+=1;v?this.threeDElements[f].container.insertBefore(c,v):this.threeDElements[f].container.appendChild(c);break}f+=1}},HybridRendererBase.prototype.configAnimation=function(c){var u=createTag("div"),f=this.animationItem.wrapper,d=u.style;d.width=c.w+"px",d.height=c.h+"px",this.resizerElem=u,styleDiv(u),d.transformStyle="flat",d.mozTransformStyle="flat",d.webkitTransformStyle="flat",this.renderConfig.className&&u.setAttribute("class",this.renderConfig.className),f.appendChild(u),d.overflow="hidden";var h=createNS("svg");h.setAttribute("width","1"),h.setAttribute("height","1"),styleDiv(h),this.resizerElem.appendChild(h);var v=createNS("defs");h.appendChild(v),this.data=c,this.setupGlobalData(c,h),this.globalData.defs=v,this.layers=c.layers,this.layerElement=this.resizerElem,this.build3dContainers(),this.updateContainerSize()},HybridRendererBase.prototype.destroy=function(){this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.animationItem.container=null,this.globalData.defs=null;var c,u=this.layers?this.layers.length:0;for(c=0;c<u;c+=1)this.elements[c]&&this.elements[c].destroy&&this.elements[c].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},HybridRendererBase.prototype.updateContainerSize=function(){var c=this.animationItem.wrapper.offsetWidth,u=this.animationItem.wrapper.offsetHeight,f=c/u,d=this.globalData.compSize.w/this.globalData.compSize.h,h,v,p,m;d>f?(h=c/this.globalData.compSize.w,v=c/this.globalData.compSize.w,p=0,m=(u-this.globalData.compSize.h*(c/this.globalData.compSize.w))/2):(h=u/this.globalData.compSize.h,v=u/this.globalData.compSize.h,p=(c-this.globalData.compSize.w*(u/this.globalData.compSize.h))/2,m=0);var g=this.resizerElem.style;g.webkitTransform="matrix3d("+h+",0,0,0,0,"+v+",0,0,0,0,1,0,"+p+","+m+",0,1)",g.transform=g.webkitTransform},HybridRendererBase.prototype.renderFrame=SVGRenderer.prototype.renderFrame,HybridRendererBase.prototype.hide=function(){this.resizerElem.style.display="none"},HybridRendererBase.prototype.show=function(){this.resizerElem.style.display="block"},HybridRendererBase.prototype.initItems=function(){if(this.buildAllItems(),this.camera)this.camera.setup();else{var c=this.globalData.compSize.w,u=this.globalData.compSize.h,f,d=this.threeDElements.length;for(f=0;f<d;f+=1){var h=this.threeDElements[f].perspectiveElem.style;h.webkitPerspective=Math.sqrt(Math.pow(c,2)+Math.pow(u,2))+"px",h.perspective=h.webkitPerspective}}},HybridRendererBase.prototype.searchExtraCompositions=function(c){var u,f=c.length,d=createTag("div");for(u=0;u<f;u+=1)if(c[u].xt){var h=this.createComp(c[u],d,this.globalData.comp,null);h.initExpressions(),this.globalData.projectInterface.registerComposition(h)}};function HCompElement(c,u,f){this.layers=c.layers,this.supports3d=!c.hasMask,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(c,u,f),this.tm=c.tm?PropertyFactory.getProp(this,c.tm,0,u.frameRate,this):{_placeholder:!0}}extendPrototype([HybridRendererBase,ICompElement,HBaseElement],HCompElement),HCompElement.prototype._createBaseContainerElements=HCompElement.prototype.createContainerElements,HCompElement.prototype.createContainerElements=function(){this._createBaseContainerElements(),this.data.hasMask?(this.svgElement.setAttribute("width",this.data.w),this.svgElement.setAttribute("height",this.data.h),this.transformedElement=this.baseElement):this.transformedElement=this.layerElement},HCompElement.prototype.addTo3dContainer=function(c,u){for(var f=0,d;f<u;)this.elements[f]&&this.elements[f].getBaseElement&&(d=this.elements[f].getBaseElement()),f+=1;d?this.layerElement.insertBefore(c,d):this.layerElement.appendChild(c)},HCompElement.prototype.createComp=function(c){return this.supports3d?new HCompElement(c,this.globalData,this):new SVGCompElement(c,this.globalData,this)};function HybridRenderer(c,u){this.animationItem=c,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:u&&u.className||"",imagePreserveAspectRatio:u&&u.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(u&&u.hideOnTransparent===!1),filterSize:{width:u&&u.filterSize&&u.filterSize.width||"400%",height:u&&u.filterSize&&u.filterSize.height||"400%",x:u&&u.filterSize&&u.filterSize.x||"-100%",y:u&&u.filterSize&&u.filterSize.y||"-100%"},runExpressions:!u||u.runExpressions===void 0||u.runExpressions},this.globalData={_mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this.pendingElements=[],this.elements=[],this.threeDElements=[],this.destroyed=!1,this.camera=null,this.supports3d=!0,this.rendererType="html"}extendPrototype([HybridRendererBase],HybridRenderer),HybridRenderer.prototype.createComp=function(c){return this.supports3d?new HCompElement(c,this.globalData,this):new SVGCompElement(c,this.globalData,this)};var CompExpressionInterface=function(){return function(c){function u(f){for(var d=0,h=c.layers.length;d<h;){if(c.layers[d].nm===f||c.layers[d].ind===f)return c.elements[d].layerInterface;d+=1}return null}return Object.defineProperty(u,"_name",{value:c.data.nm}),u.layer=u,u.pixelAspect=1,u.height=c.data.h||c.globalData.compSize.h,u.width=c.data.w||c.globalData.compSize.w,u.pixelAspect=1,u.frameDuration=1/c.globalData.frameRate,u.displayStartTime=0,u.numLayers=c.layers.length,u}}();function _typeof$2(c){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$2=function(f){return typeof f}:_typeof$2=function(f){return f&&typeof Symbol=="function"&&f.constructor===Symbol&&f!==Symbol.prototype?"symbol":typeof f},_typeof$2(c)}function seedRandom(c,u){var f=this,d=256,h=6,v=52,p="random",m=u.pow(d,h),g=u.pow(2,v),y=g*2,b=d-1,Pn;function x(gn,re,Rn){var Vn=[];re=re===!0?{entropy:!0}:re||{};var Wn=Fn(j(re.entropy?[gn,w(c)]:gn===null?Bn():gn,3),Vn),Gn=new vn(Vn),Zn=function(){for(var er=Gn.g(h),Jn=m,ir=0;er<g;)er=(er+ir)*d,Jn*=d,ir=Gn.g(1);for(;er>=y;)er/=2,Jn/=2,ir>>>=1;return(er+ir)/Jn};return Zn.int32=function(){return Gn.g(4)|0},Zn.quick=function(){return Gn.g(4)/4294967296},Zn.double=Zn,Fn(w(Gn.S),c),(re.pass||Rn||function(Xn,er,Jn,ir){return ir&&(ir.S&&J(ir,Gn),Xn.state=function(){return J(Gn,{})}),Jn?(u[p]=Xn,er):Xn})(Zn,Wn,"global"in re?re.global:this==u,re.state)}u["seed"+p]=x;function vn(gn){var re,Rn=gn.length,Vn=this,Wn=0,Gn=Vn.i=Vn.j=0,Zn=Vn.S=[];for(Rn||(gn=[Rn++]);Wn<d;)Zn[Wn]=Wn++;for(Wn=0;Wn<d;Wn++)Zn[Wn]=Zn[Gn=b&Gn+gn[Wn%Rn]+(re=Zn[Wn])],Zn[Gn]=re;Vn.g=function(Xn){for(var er,Jn=0,ir=Vn.i,dr=Vn.j,or=Vn.S;Xn--;)er=or[ir=b&ir+1],Jn=Jn*d+or[b&(or[ir]=or[dr=b&dr+er])+(or[dr]=er)];return Vn.i=ir,Vn.j=dr,Jn}}function J(gn,re){return re.i=gn.i,re.j=gn.j,re.S=gn.S.slice(),re}function j(gn,re){var Rn=[],Vn=_typeof$2(gn),Wn;if(re&&Vn=="object")for(Wn in gn)try{Rn.push(j(gn[Wn],re-1))}catch{}return Rn.length?Rn:Vn=="string"?gn:gn+"\0"}function Fn(gn,re){for(var Rn=gn+"",Vn,Wn=0;Wn<Rn.length;)re[b&Wn]=b&(Vn^=re[b&Wn]*19)+Rn.charCodeAt(Wn++);return w(re)}function Bn(){try{var gn=new Uint8Array(d);return(f.crypto||f.msCrypto).getRandomValues(gn),w(gn)}catch{var re=f.navigator,Rn=re&&re.plugins;return[+new Date,f,Rn,f.screen,w(c)]}}function w(gn){return String.fromCharCode.apply(0,gn)}Fn(u.random(),c)}function initialize$2(c){seedRandom([],c)}var propTypes={SHAPE:"shape"};function _typeof$1(c){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$1=function(f){return typeof f}:_typeof$1=function(f){return f&&typeof Symbol=="function"&&f.constructor===Symbol&&f!==Symbol.prototype?"symbol":typeof f},_typeof$1(c)}var ExpressionManager=function(){var ob={},Math=BMMath,window=null,document=null,XMLHttpRequest=null,fetch=null,frames=null,_lottieGlobal={};initialize$2(BMMath);function resetFrame(){_lottieGlobal={}}function $bm_isInstanceOfArray(c){return c.constructor===Array||c.constructor===Float32Array}function isNumerable(c,u){return c==="number"||u instanceof Number||c==="boolean"||c==="string"}function $bm_neg(c){var u=_typeof$1(c);if(u==="number"||c instanceof Number||u==="boolean")return-c;if($bm_isInstanceOfArray(c)){var f,d=c.length,h=[];for(f=0;f<d;f+=1)h[f]=-c[f];return h}return c.propType?c.v:-c}var easeInBez=BezierFactory.getBezierEasing(.333,0,.833,.833,"easeIn").get,easeOutBez=BezierFactory.getBezierEasing(.167,.167,.667,1,"easeOut").get,easeInOutBez=BezierFactory.getBezierEasing(.33,0,.667,1,"easeInOut").get;function sum(c,u){var f=_typeof$1(c),d=_typeof$1(u);if(isNumerable(f,c)&&isNumerable(d,u)||f==="string"||d==="string")return c+u;if($bm_isInstanceOfArray(c)&&isNumerable(d,u))return c=c.slice(0),c[0]+=u,c;if(isNumerable(f,c)&&$bm_isInstanceOfArray(u))return u=u.slice(0),u[0]=c+u[0],u;if($bm_isInstanceOfArray(c)&&$bm_isInstanceOfArray(u)){for(var h=0,v=c.length,p=u.length,m=[];h<v||h<p;)(typeof c[h]=="number"||c[h]instanceof Number)&&(typeof u[h]=="number"||u[h]instanceof Number)?m[h]=c[h]+u[h]:m[h]=u[h]===void 0?c[h]:c[h]||u[h],h+=1;return m}return 0}var add=sum;function sub(c,u){var f=_typeof$1(c),d=_typeof$1(u);if(isNumerable(f,c)&&isNumerable(d,u))return f==="string"&&(c=parseInt(c,10)),d==="string"&&(u=parseInt(u,10)),c-u;if($bm_isInstanceOfArray(c)&&isNumerable(d,u))return c=c.slice(0),c[0]-=u,c;if(isNumerable(f,c)&&$bm_isInstanceOfArray(u))return u=u.slice(0),u[0]=c-u[0],u;if($bm_isInstanceOfArray(c)&&$bm_isInstanceOfArray(u)){for(var h=0,v=c.length,p=u.length,m=[];h<v||h<p;)(typeof c[h]=="number"||c[h]instanceof Number)&&(typeof u[h]=="number"||u[h]instanceof Number)?m[h]=c[h]-u[h]:m[h]=u[h]===void 0?c[h]:c[h]||u[h],h+=1;return m}return 0}function mul(c,u){var f=_typeof$1(c),d=_typeof$1(u),h;if(isNumerable(f,c)&&isNumerable(d,u))return c*u;var v,p;if($bm_isInstanceOfArray(c)&&isNumerable(d,u)){for(p=c.length,h=createTypedArray("float32",p),v=0;v<p;v+=1)h[v]=c[v]*u;return h}if(isNumerable(f,c)&&$bm_isInstanceOfArray(u)){for(p=u.length,h=createTypedArray("float32",p),v=0;v<p;v+=1)h[v]=c*u[v];return h}return 0}function div(c,u){var f=_typeof$1(c),d=_typeof$1(u),h;if(isNumerable(f,c)&&isNumerable(d,u))return c/u;var v,p;if($bm_isInstanceOfArray(c)&&isNumerable(d,u)){for(p=c.length,h=createTypedArray("float32",p),v=0;v<p;v+=1)h[v]=c[v]/u;return h}if(isNumerable(f,c)&&$bm_isInstanceOfArray(u)){for(p=u.length,h=createTypedArray("float32",p),v=0;v<p;v+=1)h[v]=c/u[v];return h}return 0}function mod(c,u){return typeof c=="string"&&(c=parseInt(c,10)),typeof u=="string"&&(u=parseInt(u,10)),c%u}var $bm_sum=sum,$bm_sub=sub,$bm_mul=mul,$bm_div=div,$bm_mod=mod;function clamp(c,u,f){if(u>f){var d=f;f=u,u=d}return Math.min(Math.max(c,u),f)}function radiansToDegrees(c){return c/degToRads}var radians_to_degrees=radiansToDegrees;function degreesToRadians(c){return c*degToRads}var degrees_to_radians=radiansToDegrees,helperLengthArray=[0,0,0,0,0,0];function length(c,u){if(typeof c=="number"||c instanceof Number)return u=u||0,Math.abs(c-u);u||(u=helperLengthArray);var f,d=Math.min(c.length,u.length),h=0;for(f=0;f<d;f+=1)h+=Math.pow(u[f]-c[f],2);return Math.sqrt(h)}function normalize(c){return div(c,length(c))}function rgbToHsl(c){var u=c[0],f=c[1],d=c[2],h=Math.max(u,f,d),v=Math.min(u,f,d),p,m,g=(h+v)/2;if(h===v)p=0,m=0;else{var y=h-v;switch(m=g>.5?y/(2-h-v):y/(h+v),h){case u:p=(f-d)/y+(f<d?6:0);break;case f:p=(d-u)/y+2;break;case d:p=(u-f)/y+4;break}p/=6}return[p,m,g,c[3]]}function hue2rgb(c,u,f){return f<0&&(f+=1),f>1&&(f-=1),f<1/6?c+(u-c)*6*f:f<1/2?u:f<2/3?c+(u-c)*(2/3-f)*6:c}function hslToRgb(c){var u=c[0],f=c[1],d=c[2],h,v,p;if(f===0)h=d,p=d,v=d;else{var m=d<.5?d*(1+f):d+f-d*f,g=2*d-m;h=hue2rgb(g,m,u+1/3),v=hue2rgb(g,m,u),p=hue2rgb(g,m,u-1/3)}return[h,v,p,c[3]]}function linear(c,u,f,d,h){if((d===void 0||h===void 0)&&(d=u,h=f,u=0,f=1),f<u){var v=f;f=u,u=v}if(c<=u)return d;if(c>=f)return h;var p=f===u?0:(c-u)/(f-u);if(!d.length)return d+(h-d)*p;var m,g=d.length,y=createTypedArray("float32",g);for(m=0;m<g;m+=1)y[m]=d[m]+(h[m]-d[m])*p;return y}function random(c,u){if(u===void 0&&(c===void 0?(c=0,u=1):(u=c,c=void 0)),u.length){var f,d=u.length;c||(c=createTypedArray("float32",d));var h=createTypedArray("float32",d),v=BMMath.random();for(f=0;f<d;f+=1)h[f]=c[f]+v*(u[f]-c[f]);return h}c===void 0&&(c=0);var p=BMMath.random();return c+p*(u-c)}function createPath(c,u,f,d){var h,v=c.length,p=shapePool.newElement();p.setPathData(!!d,v);var m=[0,0],g,y;for(h=0;h<v;h+=1)g=u&&u[h]?u[h]:m,y=f&&f[h]?f[h]:m,p.setTripleAt(c[h][0],c[h][1],y[0]+c[h][0],y[1]+c[h][1],g[0]+c[h][0],g[1]+c[h][1],h,!0);return p}function initiateExpression(elem,data,property){function noOp(c){return c}if(!elem.globalData.renderConfig.runExpressions)return noOp;var val=data.x,needsVelocity=/velocity(?![\w\d])/.test(val),_needsRandom=val.indexOf("random")!==-1,elemType=elem.data.ty,transform,$bm_transform,content,effect,thisProperty=property;thisProperty.valueAtTime=thisProperty.getValueAtTime,Object.defineProperty(thisProperty,"value",{get:function(){return thisProperty.v}}),elem.comp.frameDuration=1/elem.comp.globalData.frameRate,elem.comp.displayStartTime=0;var inPoint=elem.data.ip/elem.comp.globalData.frameRate,outPoint=elem.data.op/elem.comp.globalData.frameRate,width=elem.data.sw?elem.data.sw:0,height=elem.data.sh?elem.data.sh:0,name=elem.data.nm,loopIn,loop_in,loopOut,loop_out,smooth,toWorld,fromWorld,fromComp,toComp,fromCompToSurface,position,rotation,anchorPoint,scale,thisLayer,thisComp,mask,valueAtTime,velocityAtTime,scoped_bm_rt,expression_function=eval("[function _expression_function(){"+val+";scoped_bm_rt=$bm_rt}]")[0],numKeys=property.kf?data.k.length:0,active=!this.data||this.data.hd!==!0,wiggle=(function c(u,f){var d,h,v=this.pv.length?this.pv.length:1,p=createTypedArray("float32",v);u=5;var m=Math.floor(time*u);for(d=0,h=0;d<m;){for(h=0;h<v;h+=1)p[h]+=-f+f*2*BMMath.random();d+=1}var g=time*u,y=g-Math.floor(g),b=createTypedArray("float32",v);if(v>1){for(h=0;h<v;h+=1)b[h]=this.pv[h]+p[h]+(-f+f*2*BMMath.random())*y;return b}return this.pv+p[0]+(-f+f*2*BMMath.random())*y}).bind(this);thisProperty.loopIn&&(loopIn=thisProperty.loopIn.bind(thisProperty),loop_in=loopIn),thisProperty.loopOut&&(loopOut=thisProperty.loopOut.bind(thisProperty),loop_out=loopOut),thisProperty.smooth&&(smooth=thisProperty.smooth.bind(thisProperty));function loopInDuration(c,u){return loopIn(c,u,!0)}function loopOutDuration(c,u){return loopOut(c,u,!0)}this.getValueAtTime&&(valueAtTime=this.getValueAtTime.bind(this)),this.getVelocityAtTime&&(velocityAtTime=this.getVelocityAtTime.bind(this));var comp=elem.comp.globalData.projectInterface.bind(elem.comp.globalData.projectInterface);function lookAt(c,u){var f=[u[0]-c[0],u[1]-c[1],u[2]-c[2]],d=Math.atan2(f[0],Math.sqrt(f[1]*f[1]+f[2]*f[2]))/degToRads,h=-Math.atan2(f[1],f[2])/degToRads;return[h,d,0]}function easeOut(c,u,f,d,h){return applyEase(easeOutBez,c,u,f,d,h)}function easeIn(c,u,f,d,h){return applyEase(easeInBez,c,u,f,d,h)}function ease(c,u,f,d,h){return applyEase(easeInOutBez,c,u,f,d,h)}function applyEase(c,u,f,d,h,v){h===void 0?(h=f,v=d):u=(u-f)/(d-f),u>1?u=1:u<0&&(u=0);var p=c(u);if($bm_isInstanceOfArray(h)){var m,g=h.length,y=createTypedArray("float32",g);for(m=0;m<g;m+=1)y[m]=(v[m]-h[m])*p+h[m];return y}return(v-h)*p+h}function nearestKey(c){var u,f=data.k.length,d,h;if(!data.k.length||typeof data.k[0]=="number")d=0,h=0;else if(d=-1,c*=elem.comp.globalData.frameRate,c<data.k[0].t)d=1,h=data.k[0].t;else{for(u=0;u<f-1;u+=1)if(c===data.k[u].t){d=u+1,h=data.k[u].t;break}else if(c>data.k[u].t&&c<data.k[u+1].t){c-data.k[u].t>data.k[u+1].t-c?(d=u+2,h=data.k[u+1].t):(d=u+1,h=data.k[u].t);break}d===-1&&(d=u+1,h=data.k[u].t)}var v={};return v.index=d,v.time=h/elem.comp.globalData.frameRate,v}function key(c){var u,f,d;if(!data.k.length||typeof data.k[0]=="number")throw new Error("The property has no keyframe at index "+c);c-=1,u={time:data.k[c].t/elem.comp.globalData.frameRate,value:[]};var h=Object.prototype.hasOwnProperty.call(data.k[c],"s")?data.k[c].s:data.k[c-1].e;for(d=h.length,f=0;f<d;f+=1)u[f]=h[f],u.value[f]=h[f];return u}function framesToTime(c,u){return u||(u=elem.comp.globalData.frameRate),c/u}function timeToFrames(c,u){return!c&&c!==0&&(c=time),u||(u=elem.comp.globalData.frameRate),c*u}function seedRandom(c){BMMath.seedrandom(randSeed+c)}function sourceRectAtTime(){return elem.sourceRectAtTime()}function substring(c,u){return typeof value=="string"?u===void 0?value.substring(c):value.substring(c,u):""}function substr(c,u){return typeof value=="string"?u===void 0?value.substr(c):value.substr(c,u):""}function posterizeTime(c){time=c===0?0:Math.floor(time*c)/c,value=valueAtTime(time)}var time,velocity,value,text,textIndex,textTotal,selectorValue,index=elem.data.ind,hasParent=!!(elem.hierarchy&&elem.hierarchy.length),parent,randSeed=Math.floor(Math.random()*1e6),globalData=elem.globalData;function executeExpression(c){return value=c,this.frameExpressionId===elem.globalData.frameId&&this.propType!=="textSelector"?value:(this.propType==="textSelector"&&(textIndex=this.textIndex,textTotal=this.textTotal,selectorValue=this.selectorValue),thisLayer||(text=elem.layerInterface.text,thisLayer=elem.layerInterface,thisComp=elem.comp.compInterface,toWorld=thisLayer.toWorld.bind(thisLayer),fromWorld=thisLayer.fromWorld.bind(thisLayer),fromComp=thisLayer.fromComp.bind(thisLayer),toComp=thisLayer.toComp.bind(thisLayer),mask=thisLayer.mask?thisLayer.mask.bind(thisLayer):null,fromCompToSurface=fromComp),transform||(transform=elem.layerInterface("ADBE Transform Group"),$bm_transform=transform,transform&&(anchorPoint=transform.anchorPoint)),elemType===4&&!content&&(content=thisLayer("ADBE Root Vectors Group")),effect||(effect=thisLayer(4)),hasParent=!!(elem.hierarchy&&elem.hierarchy.length),hasParent&&!parent&&(parent=elem.hierarchy[0].layerInterface),time=this.comp.renderedFrame/this.comp.globalData.frameRate,_needsRandom&&seedRandom(randSeed+time),needsVelocity&&(velocity=velocityAtTime(time)),expression_function(),this.frameExpressionId=elem.globalData.frameId,scoped_bm_rt=scoped_bm_rt.propType===propTypes.SHAPE?scoped_bm_rt.v:scoped_bm_rt,scoped_bm_rt)}return executeExpression.__preventDeadCodeRemoval=[$bm_transform,anchorPoint,time,velocity,inPoint,outPoint,width,height,name,loop_in,loop_out,smooth,toComp,fromCompToSurface,toWorld,fromWorld,mask,position,rotation,scale,thisComp,numKeys,active,wiggle,loopInDuration,loopOutDuration,comp,lookAt,easeOut,easeIn,ease,nearestKey,key,text,textIndex,textTotal,selectorValue,framesToTime,timeToFrames,sourceRectAtTime,substring,substr,posterizeTime,index,globalData],executeExpression}return ob.initiateExpression=initiateExpression,ob.__preventDeadCodeRemoval=[window,document,XMLHttpRequest,fetch,frames,$bm_neg,add,$bm_sum,$bm_sub,$bm_mul,$bm_div,$bm_mod,clamp,radians_to_degrees,degreesToRadians,degrees_to_radians,normalize,rgbToHsl,hslToRgb,linear,random,createPath,_lottieGlobal],ob.resetFrame=resetFrame,ob}(),Expressions=function(){var c={};c.initExpressions=u,c.resetFrame=ExpressionManager.resetFrame;function u(f){var d=0,h=[];function v(){d+=1}function p(){d-=1,d===0&&g()}function m(y){h.indexOf(y)===-1&&h.push(y)}function g(){var y,b=h.length;for(y=0;y<b;y+=1)h[y].release();h.length=0}f.renderer.compInterface=CompExpressionInterface(f.renderer),f.renderer.globalData.projectInterface.registerComposition(f.renderer),f.renderer.globalData.pushExpression=v,f.renderer.globalData.popExpression=p,f.renderer.globalData.registerExpressionProperty=m}return c}(),MaskManagerInterface=function(){function c(f,d){this._mask=f,this._data=d}Object.defineProperty(c.prototype,"maskPath",{get:function(){return this._mask.prop.k&&this._mask.prop.getValue(),this._mask.prop}}),Object.defineProperty(c.prototype,"maskOpacity",{get:function(){return this._mask.op.k&&this._mask.op.getValue(),this._mask.op.v*100}});var u=function(d){var h=createSizedArray(d.viewData.length),v,p=d.viewData.length;for(v=0;v<p;v+=1)h[v]=new c(d.viewData[v],d.masksProperties[v]);var m=function(y){for(v=0;v<p;){if(d.masksProperties[v].nm===y)return h[v];v+=1}return null};return m};return u}(),ExpressionPropertyInterface=function(){var c={pv:0,v:0,mult:1},u={pv:[0,0,0],v:[0,0,0],mult:1};function f(p,m,g){Object.defineProperty(p,"velocity",{get:function(){return m.getVelocityAtTime(m.comp.currentFrame)}}),p.numKeys=m.keyframes?m.keyframes.length:0,p.key=function(y){if(!p.numKeys)return 0;var b="";"s"in m.keyframes[y-1]?b=m.keyframes[y-1].s:"e"in m.keyframes[y-2]?b=m.keyframes[y-2].e:b=m.keyframes[y-2].s;var Pn=g==="unidimensional"?new Number(b):Object.assign({},b);return Pn.time=m.keyframes[y-1].t/m.elem.comp.globalData.frameRate,Pn.value=g==="unidimensional"?b[0]:b,Pn},p.valueAtTime=m.getValueAtTime,p.speedAtTime=m.getSpeedAtTime,p.velocityAtTime=m.getVelocityAtTime,p.propertyGroup=m.propertyGroup}function d(p){(!p||!("pv"in p))&&(p=c);var m=1/p.mult,g=p.pv*m,y=new Number(g);return y.value=g,f(y,p,"unidimensional"),function(){return p.k&&p.getValue(),g=p.v*m,y.value!==g&&(y=new Number(g),y.value=g,f(y,p,"unidimensional")),y}}function h(p){(!p||!("pv"in p))&&(p=u);var m=1/p.mult,g=p.data&&p.data.l||p.pv.length,y=createTypedArray("float32",g),b=createTypedArray("float32",g);return y.value=b,f(y,p,"multidimensional"),function(){p.k&&p.getValue();for(var Pn=0;Pn<g;Pn+=1)b[Pn]=p.v[Pn]*m,y[Pn]=b[Pn];return y}}function v(){return c}return function(p){return p?p.propType==="unidimensional"?d(p):h(p):v}}(),TransformExpressionInterface=function(){return function(c){function u(p){switch(p){case"scale":case"Scale":case"ADBE Scale":case 6:return u.scale;case"rotation":case"Rotation":case"ADBE Rotation":case"ADBE Rotate Z":case 10:return u.rotation;case"ADBE Rotate X":return u.xRotation;case"ADBE Rotate Y":return u.yRotation;case"position":case"Position":case"ADBE Position":case 2:return u.position;case"ADBE Position_0":return u.xPosition;case"ADBE Position_1":return u.yPosition;case"ADBE Position_2":return u.zPosition;case"anchorPoint":case"AnchorPoint":case"Anchor Point":case"ADBE AnchorPoint":case 1:return u.anchorPoint;case"opacity":case"Opacity":case 11:return u.opacity;default:return null}}Object.defineProperty(u,"rotation",{get:ExpressionPropertyInterface(c.r||c.rz)}),Object.defineProperty(u,"zRotation",{get:ExpressionPropertyInterface(c.rz||c.r)}),Object.defineProperty(u,"xRotation",{get:ExpressionPropertyInterface(c.rx)}),Object.defineProperty(u,"yRotation",{get:ExpressionPropertyInterface(c.ry)}),Object.defineProperty(u,"scale",{get:ExpressionPropertyInterface(c.s)});var f,d,h,v;return c.p?v=ExpressionPropertyInterface(c.p):(f=ExpressionPropertyInterface(c.px),d=ExpressionPropertyInterface(c.py),c.pz&&(h=ExpressionPropertyInterface(c.pz))),Object.defineProperty(u,"position",{get:function(){return c.p?v():[f(),d(),h?h():0]}}),Object.defineProperty(u,"xPosition",{get:ExpressionPropertyInterface(c.px)}),Object.defineProperty(u,"yPosition",{get:ExpressionPropertyInterface(c.py)}),Object.defineProperty(u,"zPosition",{get:ExpressionPropertyInterface(c.pz)}),Object.defineProperty(u,"anchorPoint",{get:ExpressionPropertyInterface(c.a)}),Object.defineProperty(u,"opacity",{get:ExpressionPropertyInterface(c.o)}),Object.defineProperty(u,"skew",{get:ExpressionPropertyInterface(c.sk)}),Object.defineProperty(u,"skewAxis",{get:ExpressionPropertyInterface(c.sa)}),Object.defineProperty(u,"orientation",{get:ExpressionPropertyInterface(c.or)}),u}}(),LayerExpressionInterface=function(){function c(y){var b=new Matrix;if(y!==void 0){var Pn=this._elem.finalTransform.mProp.getValueAtTime(y);Pn.clone(b)}else{var x=this._elem.finalTransform.mProp;x.applyToMatrix(b)}return b}function u(y,b){var Pn=this.getMatrix(b);return Pn.props[12]=0,Pn.props[13]=0,Pn.props[14]=0,this.applyPoint(Pn,y)}function f(y,b){var Pn=this.getMatrix(b);return this.applyPoint(Pn,y)}function d(y,b){var Pn=this.getMatrix(b);return Pn.props[12]=0,Pn.props[13]=0,Pn.props[14]=0,this.invertPoint(Pn,y)}function h(y,b){var Pn=this.getMatrix(b);return this.invertPoint(Pn,y)}function v(y,b){if(this._elem.hierarchy&&this._elem.hierarchy.length){var Pn,x=this._elem.hierarchy.length;for(Pn=0;Pn<x;Pn+=1)this._elem.hierarchy[Pn].finalTransform.mProp.applyToMatrix(y)}return y.applyToPointArray(b[0],b[1],b[2]||0)}function p(y,b){if(this._elem.hierarchy&&this._elem.hierarchy.length){var Pn,x=this._elem.hierarchy.length;for(Pn=0;Pn<x;Pn+=1)this._elem.hierarchy[Pn].finalTransform.mProp.applyToMatrix(y)}return y.inversePoint(b)}function m(y){var b=new Matrix;if(b.reset(),this._elem.finalTransform.mProp.applyToMatrix(b),this._elem.hierarchy&&this._elem.hierarchy.length){var Pn,x=this._elem.hierarchy.length;for(Pn=0;Pn<x;Pn+=1)this._elem.hierarchy[Pn].finalTransform.mProp.applyToMatrix(b);return b.inversePoint(y)}return b.inversePoint(y)}function g(){return[1,1,1,1]}return function(y){var b;function Pn(j){vn.mask=new MaskManagerInterface(j,y)}function x(j){vn.effect=j}function vn(j){switch(j){case"ADBE Root Vectors Group":case"Contents":case 2:return vn.shapeInterface;case 1:case 6:case"Transform":case"transform":case"ADBE Transform Group":return b;case 4:case"ADBE Effect Parade":case"effects":case"Effects":return vn.effect;case"ADBE Text Properties":return vn.textInterface;default:return null}}vn.getMatrix=c,vn.invertPoint=p,vn.applyPoint=v,vn.toWorld=f,vn.toWorldVec=u,vn.fromWorld=h,vn.fromWorldVec=d,vn.toComp=f,vn.fromComp=m,vn.sampleImage=g,vn.sourceRectAtTime=y.sourceRectAtTime.bind(y),vn._elem=y,b=TransformExpressionInterface(y.finalTransform.mProp);var J=getDescriptor(b,"anchorPoint");return Object.defineProperties(vn,{hasParent:{get:function(){return y.hierarchy.length}},parent:{get:function(){return y.hierarchy[0].layerInterface}},rotation:getDescriptor(b,"rotation"),scale:getDescriptor(b,"scale"),position:getDescriptor(b,"position"),opacity:getDescriptor(b,"opacity"),anchorPoint:J,anchor_point:J,transform:{get:function(){return b}},active:{get:function(){return y.isInRange}}}),vn.startTime=y.data.st,vn.index=y.data.ind,vn.source=y.data.refId,vn.height=y.data.ty===0?y.data.h:100,vn.width=y.data.ty===0?y.data.w:100,vn.inPoint=y.data.ip/y.comp.globalData.frameRate,vn.outPoint=y.data.op/y.comp.globalData.frameRate,vn._name=y.data.nm,vn.registerMaskInterface=Pn,vn.registerEffectsInterface=x,vn}}(),propertyGroupFactory=function(){return function(c,u){return function(f){return f=f===void 0?1:f,f<=0?c:u(f-1)}}}(),PropertyInterface=function(){return function(c,u){var f={_name:c};function d(h){return h=h===void 0?1:h,h<=0?f:u(h-1)}return d}}(),EffectsExpressionInterface=function(){var c={createEffectsInterface:u};function u(h,v){if(h.effectsManager){var p=[],m=h.data.ef,g,y=h.effectsManager.effectElements.length;for(g=0;g<y;g+=1)p.push(f(m[g],h.effectsManager.effectElements[g],v,h));var b=h.data.ef||[],Pn=function(vn){for(g=0,y=b.length;g<y;){if(vn===b[g].nm||vn===b[g].mn||vn===b[g].ix)return p[g];g+=1}return null};return Object.defineProperty(Pn,"numProperties",{get:function(){return b.length}}),Pn}return null}function f(h,v,p,m){function g(vn){for(var J=h.ef,j=0,Fn=J.length;j<Fn;){if(vn===J[j].nm||vn===J[j].mn||vn===J[j].ix)return J[j].ty===5?b[j]:b[j]();j+=1}throw new Error}var y=propertyGroupFactory(g,p),b=[],Pn,x=h.ef.length;for(Pn=0;Pn<x;Pn+=1)h.ef[Pn].ty===5?b.push(f(h.ef[Pn],v.effectElements[Pn],v.effectElements[Pn].propertyGroup,m)):b.push(d(v.effectElements[Pn],h.ef[Pn].ty,m,y));return h.mn==="ADBE Color Control"&&Object.defineProperty(g,"color",{get:function(){return b[0]()}}),Object.defineProperties(g,{numProperties:{get:function(){return h.np}},_name:{value:h.nm},propertyGroup:{value:y}}),g.enabled=h.en!==0,g.active=g.enabled,g}function d(h,v,p,m){var g=ExpressionPropertyInterface(h.p);function y(){return v===10?p.comp.compInterface(h.p.v):g()}return h.p.setGroupProperty&&h.p.setGroupProperty(PropertyInterface("",m)),y}return c}(),ShapePathInterface=function(){return function(u,f,d){var h=f.sh;function v(m){return m==="Shape"||m==="shape"||m==="Path"||m==="path"||m==="ADBE Vector Shape"||m===2?v.path:null}var p=propertyGroupFactory(v,d);return h.setGroupProperty(PropertyInterface("Path",p)),Object.defineProperties(v,{path:{get:function(){return h.k&&h.getValue(),h}},shape:{get:function(){return h.k&&h.getValue(),h}},_name:{value:u.nm},ix:{value:u.ix},propertyIndex:{value:u.ix},mn:{value:u.mn},propertyGroup:{value:d}}),v}}(),ShapeExpressionInterface=function(){function c(J,j,Fn){var Bn=[],w,gn=J?J.length:0;for(w=0;w<gn;w+=1)J[w].ty==="gr"?Bn.push(f(J[w],j[w],Fn)):J[w].ty==="fl"?Bn.push(d(J[w],j[w],Fn)):J[w].ty==="st"?Bn.push(p(J[w],j[w],Fn)):J[w].ty==="tm"?Bn.push(m(J[w],j[w],Fn)):J[w].ty==="tr"||(J[w].ty==="el"?Bn.push(y(J[w],j[w],Fn)):J[w].ty==="sr"?Bn.push(b(J[w],j[w],Fn)):J[w].ty==="sh"?Bn.push(ShapePathInterface(J[w],j[w],Fn)):J[w].ty==="rc"?Bn.push(Pn(J[w],j[w],Fn)):J[w].ty==="rd"?Bn.push(x(J[w],j[w],Fn)):J[w].ty==="rp"?Bn.push(vn(J[w],j[w],Fn)):J[w].ty==="gf"?Bn.push(h(J[w],j[w],Fn)):Bn.push(v(J[w],j[w])));return Bn}function u(J,j,Fn){var Bn,w=function(Rn){for(var Vn=0,Wn=Bn.length;Vn<Wn;){if(Bn[Vn]._name===Rn||Bn[Vn].mn===Rn||Bn[Vn].propertyIndex===Rn||Bn[Vn].ix===Rn||Bn[Vn].ind===Rn)return Bn[Vn];Vn+=1}return typeof Rn=="number"?Bn[Rn-1]:null};w.propertyGroup=propertyGroupFactory(w,Fn),Bn=c(J.it,j.it,w.propertyGroup),w.numProperties=Bn.length;var gn=g(J.it[J.it.length-1],j.it[j.it.length-1],w.propertyGroup);return w.transform=gn,w.propertyIndex=J.cix,w._name=J.nm,w}function f(J,j,Fn){var Bn=function(Rn){switch(Rn){case"ADBE Vectors Group":case"Contents":case 2:return Bn.content;default:return Bn.transform}};Bn.propertyGroup=propertyGroupFactory(Bn,Fn);var w=u(J,j,Bn.propertyGroup),gn=g(J.it[J.it.length-1],j.it[j.it.length-1],Bn.propertyGroup);return Bn.content=w,Bn.transform=gn,Object.defineProperty(Bn,"_name",{get:function(){return J.nm}}),Bn.numProperties=J.np,Bn.propertyIndex=J.ix,Bn.nm=J.nm,Bn.mn=J.mn,Bn}function d(J,j,Fn){function Bn(w){return w==="Color"||w==="color"?Bn.color:w==="Opacity"||w==="opacity"?Bn.opacity:null}return Object.defineProperties(Bn,{color:{get:ExpressionPropertyInterface(j.c)},opacity:{get:ExpressionPropertyInterface(j.o)},_name:{value:J.nm},mn:{value:J.mn}}),j.c.setGroupProperty(PropertyInterface("Color",Fn)),j.o.setGroupProperty(PropertyInterface("Opacity",Fn)),Bn}function h(J,j,Fn){function Bn(w){return w==="Start Point"||w==="start point"?Bn.startPoint:w==="End Point"||w==="end point"?Bn.endPoint:w==="Opacity"||w==="opacity"?Bn.opacity:null}return Object.defineProperties(Bn,{startPoint:{get:ExpressionPropertyInterface(j.s)},endPoint:{get:ExpressionPropertyInterface(j.e)},opacity:{get:ExpressionPropertyInterface(j.o)},type:{get:function(){return"a"}},_name:{value:J.nm},mn:{value:J.mn}}),j.s.setGroupProperty(PropertyInterface("Start Point",Fn)),j.e.setGroupProperty(PropertyInterface("End Point",Fn)),j.o.setGroupProperty(PropertyInterface("Opacity",Fn)),Bn}function v(){function J(){return null}return J}function p(J,j,Fn){var Bn=propertyGroupFactory(Wn,Fn),w=propertyGroupFactory(Vn,Bn);function gn(Gn){Object.defineProperty(Vn,J.d[Gn].nm,{get:ExpressionPropertyInterface(j.d.dataProps[Gn].p)})}var re,Rn=J.d?J.d.length:0,Vn={};for(re=0;re<Rn;re+=1)gn(re),j.d.dataProps[re].p.setGroupProperty(w);function Wn(Gn){return Gn==="Color"||Gn==="color"?Wn.color:Gn==="Opacity"||Gn==="opacity"?Wn.opacity:Gn==="Stroke Width"||Gn==="stroke width"?Wn.strokeWidth:null}return Object.defineProperties(Wn,{color:{get:ExpressionPropertyInterface(j.c)},opacity:{get:ExpressionPropertyInterface(j.o)},strokeWidth:{get:ExpressionPropertyInterface(j.w)},dash:{get:function(){return Vn}},_name:{value:J.nm},mn:{value:J.mn}}),j.c.setGroupProperty(PropertyInterface("Color",Bn)),j.o.setGroupProperty(PropertyInterface("Opacity",Bn)),j.w.setGroupProperty(PropertyInterface("Stroke Width",Bn)),Wn}function m(J,j,Fn){function Bn(gn){return gn===J.e.ix||gn==="End"||gn==="end"?Bn.end:gn===J.s.ix?Bn.start:gn===J.o.ix?Bn.offset:null}var w=propertyGroupFactory(Bn,Fn);return Bn.propertyIndex=J.ix,j.s.setGroupProperty(PropertyInterface("Start",w)),j.e.setGroupProperty(PropertyInterface("End",w)),j.o.setGroupProperty(PropertyInterface("Offset",w)),Bn.propertyIndex=J.ix,Bn.propertyGroup=Fn,Object.defineProperties(Bn,{start:{get:ExpressionPropertyInterface(j.s)},end:{get:ExpressionPropertyInterface(j.e)},offset:{get:ExpressionPropertyInterface(j.o)},_name:{value:J.nm}}),Bn.mn=J.mn,Bn}function g(J,j,Fn){function Bn(gn){return J.a.ix===gn||gn==="Anchor Point"?Bn.anchorPoint:J.o.ix===gn||gn==="Opacity"?Bn.opacity:J.p.ix===gn||gn==="Position"?Bn.position:J.r.ix===gn||gn==="Rotation"||gn==="ADBE Vector Rotation"?Bn.rotation:J.s.ix===gn||gn==="Scale"?Bn.scale:J.sk&&J.sk.ix===gn||gn==="Skew"?Bn.skew:J.sa&&J.sa.ix===gn||gn==="Skew Axis"?Bn.skewAxis:null}var w=propertyGroupFactory(Bn,Fn);return j.transform.mProps.o.setGroupProperty(PropertyInterface("Opacity",w)),j.transform.mProps.p.setGroupProperty(PropertyInterface("Position",w)),j.transform.mProps.a.setGroupProperty(PropertyInterface("Anchor Point",w)),j.transform.mProps.s.setGroupProperty(PropertyInterface("Scale",w)),j.transform.mProps.r.setGroupProperty(PropertyInterface("Rotation",w)),j.transform.mProps.sk&&(j.transform.mProps.sk.setGroupProperty(PropertyInterface("Skew",w)),j.transform.mProps.sa.setGroupProperty(PropertyInterface("Skew Angle",w))),j.transform.op.setGroupProperty(PropertyInterface("Opacity",w)),Object.defineProperties(Bn,{opacity:{get:ExpressionPropertyInterface(j.transform.mProps.o)},position:{get:ExpressionPropertyInterface(j.transform.mProps.p)},anchorPoint:{get:ExpressionPropertyInterface(j.transform.mProps.a)},scale:{get:ExpressionPropertyInterface(j.transform.mProps.s)},rotation:{get:ExpressionPropertyInterface(j.transform.mProps.r)},skew:{get:ExpressionPropertyInterface(j.transform.mProps.sk)},skewAxis:{get:ExpressionPropertyInterface(j.transform.mProps.sa)},_name:{value:J.nm}}),Bn.ty="tr",Bn.mn=J.mn,Bn.propertyGroup=Fn,Bn}function y(J,j,Fn){function Bn(re){return J.p.ix===re?Bn.position:J.s.ix===re?Bn.size:null}var w=propertyGroupFactory(Bn,Fn);Bn.propertyIndex=J.ix;var gn=j.sh.ty==="tm"?j.sh.prop:j.sh;return gn.s.setGroupProperty(PropertyInterface("Size",w)),gn.p.setGroupProperty(PropertyInterface("Position",w)),Object.defineProperties(Bn,{size:{get:ExpressionPropertyInterface(gn.s)},position:{get:ExpressionPropertyInterface(gn.p)},_name:{value:J.nm}}),Bn.mn=J.mn,Bn}function b(J,j,Fn){function Bn(re){return J.p.ix===re?Bn.position:J.r.ix===re?Bn.rotation:J.pt.ix===re?Bn.points:J.or.ix===re||re==="ADBE Vector Star Outer Radius"?Bn.outerRadius:J.os.ix===re?Bn.outerRoundness:J.ir&&(J.ir.ix===re||re==="ADBE Vector Star Inner Radius")?Bn.innerRadius:J.is&&J.is.ix===re?Bn.innerRoundness:null}var w=propertyGroupFactory(Bn,Fn),gn=j.sh.ty==="tm"?j.sh.prop:j.sh;return Bn.propertyIndex=J.ix,gn.or.setGroupProperty(PropertyInterface("Outer Radius",w)),gn.os.setGroupProperty(PropertyInterface("Outer Roundness",w)),gn.pt.setGroupProperty(PropertyInterface("Points",w)),gn.p.setGroupProperty(PropertyInterface("Position",w)),gn.r.setGroupProperty(PropertyInterface("Rotation",w)),J.ir&&(gn.ir.setGroupProperty(PropertyInterface("Inner Radius",w)),gn.is.setGroupProperty(PropertyInterface("Inner Roundness",w))),Object.defineProperties(Bn,{position:{get:ExpressionPropertyInterface(gn.p)},rotation:{get:ExpressionPropertyInterface(gn.r)},points:{get:ExpressionPropertyInterface(gn.pt)},outerRadius:{get:ExpressionPropertyInterface(gn.or)},outerRoundness:{get:ExpressionPropertyInterface(gn.os)},innerRadius:{get:ExpressionPropertyInterface(gn.ir)},innerRoundness:{get:ExpressionPropertyInterface(gn.is)},_name:{value:J.nm}}),Bn.mn=J.mn,Bn}function Pn(J,j,Fn){function Bn(re){return J.p.ix===re?Bn.position:J.r.ix===re?Bn.roundness:J.s.ix===re||re==="Size"||re==="ADBE Vector Rect Size"?Bn.size:null}var w=propertyGroupFactory(Bn,Fn),gn=j.sh.ty==="tm"?j.sh.prop:j.sh;return Bn.propertyIndex=J.ix,gn.p.setGroupProperty(PropertyInterface("Position",w)),gn.s.setGroupProperty(PropertyInterface("Size",w)),gn.r.setGroupProperty(PropertyInterface("Rotation",w)),Object.defineProperties(Bn,{position:{get:ExpressionPropertyInterface(gn.p)},roundness:{get:ExpressionPropertyInterface(gn.r)},size:{get:ExpressionPropertyInterface(gn.s)},_name:{value:J.nm}}),Bn.mn=J.mn,Bn}function x(J,j,Fn){function Bn(re){return J.r.ix===re||re==="Round Corners 1"?Bn.radius:null}var w=propertyGroupFactory(Bn,Fn),gn=j;return Bn.propertyIndex=J.ix,gn.rd.setGroupProperty(PropertyInterface("Radius",w)),Object.defineProperties(Bn,{radius:{get:ExpressionPropertyInterface(gn.rd)},_name:{value:J.nm}}),Bn.mn=J.mn,Bn}function vn(J,j,Fn){function Bn(re){return J.c.ix===re||re==="Copies"?Bn.copies:J.o.ix===re||re==="Offset"?Bn.offset:null}var w=propertyGroupFactory(Bn,Fn),gn=j;return Bn.propertyIndex=J.ix,gn.c.setGroupProperty(PropertyInterface("Copies",w)),gn.o.setGroupProperty(PropertyInterface("Offset",w)),Object.defineProperties(Bn,{copies:{get:ExpressionPropertyInterface(gn.c)},offset:{get:ExpressionPropertyInterface(gn.o)},_name:{value:J.nm}}),Bn.mn=J.mn,Bn}return function(J,j,Fn){var Bn;function w(re){if(typeof re=="number")return re=re===void 0?1:re,re===0?Fn:Bn[re-1];for(var Rn=0,Vn=Bn.length;Rn<Vn;){if(Bn[Rn]._name===re)return Bn[Rn];Rn+=1}return null}function gn(){return Fn}return w.propertyGroup=propertyGroupFactory(w,gn),Bn=c(J,j,w.propertyGroup),w.numProperties=Bn.length,w._name="Contents",w}}(),TextExpressionInterface=function(){return function(c){var u;function f(d){switch(d){case"ADBE Text Document":return f.sourceText;default:return null}}return Object.defineProperty(f,"sourceText",{get:function(){c.textProperty.getValue();var h=c.textProperty.currentData.t;return(!u||h!==u.value)&&(u=new String(h),u.value=h||new String(h),Object.defineProperty(u,"style",{get:function(){return{fillColor:c.textProperty.currentData.fc}}})),u}}),f}}();function _typeof(c){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof=function(f){return typeof f}:_typeof=function(f){return f&&typeof Symbol=="function"&&f.constructor===Symbol&&f!==Symbol.prototype?"symbol":typeof f},_typeof(c)}var FootageInterface=function(){var c=function(d){var h="",v=d.getFootageData();function p(){return h="",v=d.getFootageData(),m}function m(g){if(v[g])return h=g,v=v[g],_typeof(v)==="object"?m:v;var y=g.indexOf(h);if(y!==-1){var b=parseInt(g.substr(y+h.length),10);return v=v[b],_typeof(v)==="object"?m:v}return""}return p},u=function(d){function h(v){return v==="Outline"?h.outlineInterface():null}return h._name="Outline",h.outlineInterface=c(d),h};return function(f){function d(h){return h==="Data"?d.dataInterface:null}return d._name="Data",d.dataInterface=u(f),d}}(),interfaces={layer:LayerExpressionInterface,effects:EffectsExpressionInterface,comp:CompExpressionInterface,shape:ShapeExpressionInterface,text:TextExpressionInterface,footage:FootageInterface};function getInterface(c){return interfaces[c]||null}var expressionHelpers=function(){function c(p,m,g){m.x&&(g.k=!0,g.x=!0,g.initiateExpression=ExpressionManager.initiateExpression,g.effectsSequence.push(g.initiateExpression(p,m,g).bind(g)))}function u(p){return p*=this.elem.globalData.frameRate,p-=this.offsetTime,p!==this._cachingAtTime.lastFrame&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastFrame<p?this._cachingAtTime.lastIndex:0,this._cachingAtTime.value=this.interpolateValue(p,this._cachingAtTime),this._cachingAtTime.lastFrame=p),this._cachingAtTime.value}function f(p){var m=-.01,g=this.getValueAtTime(p),y=this.getValueAtTime(p+m),b=0;if(g.length){var Pn;for(Pn=0;Pn<g.length;Pn+=1)b+=Math.pow(y[Pn]-g[Pn],2);b=Math.sqrt(b)*100}else b=0;return b}function d(p){if(this.vel!==void 0)return this.vel;var m=-.001,g=this.getValueAtTime(p),y=this.getValueAtTime(p+m),b;if(g.length){b=createTypedArray("float32",g.length);var Pn;for(Pn=0;Pn<g.length;Pn+=1)b[Pn]=(y[Pn]-g[Pn])/m}else b=(y-g)/m;return b}function h(){return this.pv}function v(p){this.propertyGroup=p}return{searchExpressions:c,getSpeedAtTime:f,getVelocityAtTime:d,getValueAtTime:u,getStaticValueAtTime:h,setGroupProperty:v}}();function addPropertyDecorator(){function c(x,vn,J){if(!this.k||!this.keyframes)return this.pv;x=x?x.toLowerCase():"";var j=this.comp.renderedFrame,Fn=this.keyframes,Bn=Fn[Fn.length-1].t;if(j<=Bn)return this.pv;var w,gn;J?(vn?w=Math.abs(Bn-this.elem.comp.globalData.frameRate*vn):w=Math.max(0,Bn-this.elem.data.ip),gn=Bn-w):((!vn||vn>Fn.length-1)&&(vn=Fn.length-1),gn=Fn[Fn.length-1-vn].t,w=Bn-gn);var re,Rn,Vn;if(x==="pingpong"){var Wn=Math.floor((j-gn)/w);if(Wn%2!==0)return this.getValueAtTime((w-(j-gn)%w+gn)/this.comp.globalData.frameRate,0)}else if(x==="offset"){var Gn=this.getValueAtTime(gn/this.comp.globalData.frameRate,0),Zn=this.getValueAtTime(Bn/this.comp.globalData.frameRate,0),Xn=this.getValueAtTime(((j-gn)%w+gn)/this.comp.globalData.frameRate,0),er=Math.floor((j-gn)/w);if(this.pv.length){for(Vn=new Array(Gn.length),Rn=Vn.length,re=0;re<Rn;re+=1)Vn[re]=(Zn[re]-Gn[re])*er+Xn[re];return Vn}return(Zn-Gn)*er+Xn}else if(x==="continue"){var Jn=this.getValueAtTime(Bn/this.comp.globalData.frameRate,0),ir=this.getValueAtTime((Bn-.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(Vn=new Array(Jn.length),Rn=Vn.length,re=0;re<Rn;re+=1)Vn[re]=Jn[re]+(Jn[re]-ir[re])*((j-Bn)/this.comp.globalData.frameRate)/5e-4;return Vn}return Jn+(Jn-ir)*((j-Bn)/.001)}return this.getValueAtTime(((j-gn)%w+gn)/this.comp.globalData.frameRate,0)}function u(x,vn,J){if(!this.k)return this.pv;x=x?x.toLowerCase():"";var j=this.comp.renderedFrame,Fn=this.keyframes,Bn=Fn[0].t;if(j>=Bn)return this.pv;var w,gn;J?(vn?w=Math.abs(this.elem.comp.globalData.frameRate*vn):w=Math.max(0,this.elem.data.op-Bn),gn=Bn+w):((!vn||vn>Fn.length-1)&&(vn=Fn.length-1),gn=Fn[vn].t,w=gn-Bn);var re,Rn,Vn;if(x==="pingpong"){var Wn=Math.floor((Bn-j)/w);if(Wn%2===0)return this.getValueAtTime(((Bn-j)%w+Bn)/this.comp.globalData.frameRate,0)}else if(x==="offset"){var Gn=this.getValueAtTime(Bn/this.comp.globalData.frameRate,0),Zn=this.getValueAtTime(gn/this.comp.globalData.frameRate,0),Xn=this.getValueAtTime((w-(Bn-j)%w+Bn)/this.comp.globalData.frameRate,0),er=Math.floor((Bn-j)/w)+1;if(this.pv.length){for(Vn=new Array(Gn.length),Rn=Vn.length,re=0;re<Rn;re+=1)Vn[re]=Xn[re]-(Zn[re]-Gn[re])*er;return Vn}return Xn-(Zn-Gn)*er}else if(x==="continue"){var Jn=this.getValueAtTime(Bn/this.comp.globalData.frameRate,0),ir=this.getValueAtTime((Bn+.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(Vn=new Array(Jn.length),Rn=Vn.length,re=0;re<Rn;re+=1)Vn[re]=Jn[re]+(Jn[re]-ir[re])*(Bn-j)/.001;return Vn}return Jn+(Jn-ir)*(Bn-j)/.001}return this.getValueAtTime((w-((Bn-j)%w+Bn))/this.comp.globalData.frameRate,0)}function f(x,vn){if(!this.k)return this.pv;if(x=(x||.4)*.5,vn=Math.floor(vn||5),vn<=1)return this.pv;var J=this.comp.renderedFrame/this.comp.globalData.frameRate,j=J-x,Fn=J+x,Bn=vn>1?(Fn-j)/(vn-1):1,w=0,gn=0,re;this.pv.length?re=createTypedArray("float32",this.pv.length):re=0;for(var Rn;w<vn;){if(Rn=this.getValueAtTime(j+w*Bn),this.pv.length)for(gn=0;gn<this.pv.length;gn+=1)re[gn]+=Rn[gn];else re+=Rn;w+=1}if(this.pv.length)for(gn=0;gn<this.pv.length;gn+=1)re[gn]/=vn;else re/=vn;return re}function d(x){this._transformCachingAtTime||(this._transformCachingAtTime={v:new Matrix});var vn=this._transformCachingAtTime.v;if(vn.cloneFromProps(this.pre.props),this.appliedTransformations<1){var J=this.a.getValueAtTime(x);vn.translate(-J[0]*this.a.mult,-J[1]*this.a.mult,J[2]*this.a.mult)}if(this.appliedTransformations<2){var j=this.s.getValueAtTime(x);vn.scale(j[0]*this.s.mult,j[1]*this.s.mult,j[2]*this.s.mult)}if(this.sk&&this.appliedTransformations<3){var Fn=this.sk.getValueAtTime(x),Bn=this.sa.getValueAtTime(x);vn.skewFromAxis(-Fn*this.sk.mult,Bn*this.sa.mult)}if(this.r&&this.appliedTransformations<4){var w=this.r.getValueAtTime(x);vn.rotate(-w*this.r.mult)}else if(!this.r&&this.appliedTransformations<4){var gn=this.rz.getValueAtTime(x),re=this.ry.getValueAtTime(x),Rn=this.rx.getValueAtTime(x),Vn=this.or.getValueAtTime(x);vn.rotateZ(-gn*this.rz.mult).rotateY(re*this.ry.mult).rotateX(Rn*this.rx.mult).rotateZ(-Vn[2]*this.or.mult).rotateY(Vn[1]*this.or.mult).rotateX(Vn[0]*this.or.mult)}if(this.data.p&&this.data.p.s){var Wn=this.px.getValueAtTime(x),Gn=this.py.getValueAtTime(x);if(this.data.p.z){var Zn=this.pz.getValueAtTime(x);vn.translate(Wn*this.px.mult,Gn*this.py.mult,-Zn*this.pz.mult)}else vn.translate(Wn*this.px.mult,Gn*this.py.mult,0)}else{var Xn=this.p.getValueAtTime(x);vn.translate(Xn[0]*this.p.mult,Xn[1]*this.p.mult,-Xn[2]*this.p.mult)}return vn}function h(){return this.v.clone(new Matrix)}var v=TransformPropertyFactory.getTransformProperty;TransformPropertyFactory.getTransformProperty=function(x,vn,J){var j=v(x,vn,J);return j.dynamicProperties.length?j.getValueAtTime=d.bind(j):j.getValueAtTime=h.bind(j),j.setGroupProperty=expressionHelpers.setGroupProperty,j};var p=PropertyFactory.getProp;PropertyFactory.getProp=function(x,vn,J,j,Fn){var Bn=p(x,vn,J,j,Fn);Bn.kf?Bn.getValueAtTime=expressionHelpers.getValueAtTime.bind(Bn):Bn.getValueAtTime=expressionHelpers.getStaticValueAtTime.bind(Bn),Bn.setGroupProperty=expressionHelpers.setGroupProperty,Bn.loopOut=c,Bn.loopIn=u,Bn.smooth=f,Bn.getVelocityAtTime=expressionHelpers.getVelocityAtTime.bind(Bn),Bn.getSpeedAtTime=expressionHelpers.getSpeedAtTime.bind(Bn),Bn.numKeys=vn.a===1?vn.k.length:0,Bn.propertyIndex=vn.ix;var w=0;return J!==0&&(w=createTypedArray("float32",vn.a===1?vn.k[0].s.length:vn.k.length)),Bn._cachingAtTime={lastFrame:initialDefaultFrame,lastIndex:0,value:w},expressionHelpers.searchExpressions(x,vn,Bn),Bn.k&&Fn.addDynamicProperty(Bn),Bn};function m(x){return this._cachingAtTime||(this._cachingAtTime={shapeValue:shapePool.clone(this.pv),lastIndex:0,lastTime:initialDefaultFrame}),x*=this.elem.globalData.frameRate,x-=this.offsetTime,x!==this._cachingAtTime.lastTime&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastTime<x?this._caching.lastIndex:0,this._cachingAtTime.lastTime=x,this.interpolateShape(x,this._cachingAtTime.shapeValue,this._cachingAtTime)),this._cachingAtTime.shapeValue}var g=ShapePropertyFactory.getConstructorFunction(),y=ShapePropertyFactory.getKeyframedConstructorFunction();function b(){}b.prototype={vertices:function(vn,J){this.k&&this.getValue();var j=this.v;J!==void 0&&(j=this.getValueAtTime(J,0));var Fn,Bn=j._length,w=j[vn],gn=j.v,re=createSizedArray(Bn);for(Fn=0;Fn<Bn;Fn+=1)vn==="i"||vn==="o"?re[Fn]=[w[Fn][0]-gn[Fn][0],w[Fn][1]-gn[Fn][1]]:re[Fn]=[w[Fn][0],w[Fn][1]];return re},points:function(vn){return this.vertices("v",vn)},inTangents:function(vn){return this.vertices("i",vn)},outTangents:function(vn){return this.vertices("o",vn)},isClosed:function(){return this.v.c},pointOnPath:function(vn,J){var j=this.v;J!==void 0&&(j=this.getValueAtTime(J,0)),this._segmentsLength||(this._segmentsLength=bez.getSegmentsLength(j));for(var Fn=this._segmentsLength,Bn=Fn.lengths,w=Fn.totalLength*vn,gn=0,re=Bn.length,Rn=0,Vn;gn<re;){if(Rn+Bn[gn].addedLength>w){var Wn=gn,Gn=j.c&&gn===re-1?0:gn+1,Zn=(w-Rn)/Bn[gn].addedLength;Vn=bez.getPointInSegment(j.v[Wn],j.v[Gn],j.o[Wn],j.i[Gn],Zn,Bn[gn]);break}else Rn+=Bn[gn].addedLength;gn+=1}return Vn||(Vn=j.c?[j.v[0][0],j.v[0][1]]:[j.v[j._length-1][0],j.v[j._length-1][1]]),Vn},vectorOnPath:function(vn,J,j){vn==1?vn=this.v.c:vn==0&&(vn=.999);var Fn=this.pointOnPath(vn,J),Bn=this.pointOnPath(vn+.001,J),w=Bn[0]-Fn[0],gn=Bn[1]-Fn[1],re=Math.sqrt(Math.pow(w,2)+Math.pow(gn,2));if(re===0)return[0,0];var Rn=j==="tangent"?[w/re,gn/re]:[-gn/re,w/re];return Rn},tangentOnPath:function(vn,J){return this.vectorOnPath(vn,J,"tangent")},normalOnPath:function(vn,J){return this.vectorOnPath(vn,J,"normal")},setGroupProperty:expressionHelpers.setGroupProperty,getValueAtTime:expressionHelpers.getStaticValueAtTime},extendPrototype([b],g),extendPrototype([b],y),y.prototype.getValueAtTime=m,y.prototype.initiateExpression=ExpressionManager.initiateExpression;var Pn=ShapePropertyFactory.getShapeProp;ShapePropertyFactory.getShapeProp=function(x,vn,J,j,Fn){var Bn=Pn(x,vn,J,j,Fn);return Bn.propertyIndex=vn.ix,Bn.lock=!1,J===3?expressionHelpers.searchExpressions(x,vn.pt,Bn):J===4&&expressionHelpers.searchExpressions(x,vn.ks,Bn),Bn.k&&x.addDynamicProperty(Bn),Bn}}function initialize$1(){addPropertyDecorator()}function addDecorator(){function c(){return this.data.d.x?(this.calculateExpression=ExpressionManager.initiateExpression.bind(this)(this.elem,this.data.d,this),this.addEffect(this.getExpressionValue.bind(this)),!0):null}TextProperty.prototype.getExpressionValue=function(u,f){var d=this.calculateExpression(f);if(u.t!==d){var h={};return this.copyData(h,u),h.t=d.toString(),h.__complete=!1,h}return u},TextProperty.prototype.searchProperty=function(){var u=this.searchKeyframes(),f=this.searchExpressions();return this.kf=u||f,this.kf},TextProperty.prototype.searchExpressions=c}function initialize(){addDecorator()}function SVGComposableEffect(){}SVGComposableEffect.prototype={createMergeNode:function c(u,f){var d=createNS("feMerge");d.setAttribute("result",u);var h,v;for(v=0;v<f.length;v+=1)h=createNS("feMergeNode"),h.setAttribute("in",f[v]),d.appendChild(h),d.appendChild(h);return d}};var linearFilterValue="0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0";function SVGTintFilter(c,u,f,d,h){this.filterManager=u;var v=createNS("feColorMatrix");v.setAttribute("type","matrix"),v.setAttribute("color-interpolation-filters","linearRGB"),v.setAttribute("values",linearFilterValue+" 1 0"),this.linearFilter=v,v.setAttribute("result",d+"_tint_1"),c.appendChild(v),v=createNS("feColorMatrix"),v.setAttribute("type","matrix"),v.setAttribute("color-interpolation-filters","sRGB"),v.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),v.setAttribute("result",d+"_tint_2"),c.appendChild(v),this.matrixFilter=v;var p=this.createMergeNode(d,[h,d+"_tint_1",d+"_tint_2"]);c.appendChild(p)}extendPrototype([SVGComposableEffect],SVGTintFilter),SVGTintFilter.prototype.renderFrame=function(c){if(c||this.filterManager._mdf){var u=this.filterManager.effectElements[0].p.v,f=this.filterManager.effectElements[1].p.v,d=this.filterManager.effectElements[2].p.v/100;this.linearFilter.setAttribute("values",linearFilterValue+" "+d+" 0"),this.matrixFilter.setAttribute("values",f[0]-u[0]+" 0 0 0 "+u[0]+" "+(f[1]-u[1])+" 0 0 0 "+u[1]+" "+(f[2]-u[2])+" 0 0 0 "+u[2]+" 0 0 0 1 0")}};function SVGFillFilter(c,u,f,d){this.filterManager=u;var h=createNS("feColorMatrix");h.setAttribute("type","matrix"),h.setAttribute("color-interpolation-filters","sRGB"),h.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),h.setAttribute("result",d),c.appendChild(h),this.matrixFilter=h}SVGFillFilter.prototype.renderFrame=function(c){if(c||this.filterManager._mdf){var u=this.filterManager.effectElements[2].p.v,f=this.filterManager.effectElements[6].p.v;this.matrixFilter.setAttribute("values","0 0 0 0 "+u[0]+" 0 0 0 0 "+u[1]+" 0 0 0 0 "+u[2]+" 0 0 0 "+f+" 0")}};function SVGStrokeEffect(c,u,f){this.initialized=!1,this.filterManager=u,this.elem=f,this.paths=[]}SVGStrokeEffect.prototype.initialize=function(){var c=this.elem.layerElement.children||this.elem.layerElement.childNodes,u,f,d,h;for(this.filterManager.effectElements[1].p.v===1?(h=this.elem.maskManager.masksProperties.length,d=0):(d=this.filterManager.effectElements[0].p.v-1,h=d+1),f=createNS("g"),f.setAttribute("fill","none"),f.setAttribute("stroke-linecap","round"),f.setAttribute("stroke-dashoffset",1),d;d<h;d+=1)u=createNS("path"),f.appendChild(u),this.paths.push({p:u,m:d});if(this.filterManager.effectElements[10].p.v===3){var v=createNS("mask"),p=createElementID();v.setAttribute("id",p),v.setAttribute("mask-type","alpha"),v.appendChild(f),this.elem.globalData.defs.appendChild(v);var m=createNS("g");for(m.setAttribute("mask","url("+getLocationHref()+"#"+p+")");c[0];)m.appendChild(c[0]);this.elem.layerElement.appendChild(m),this.masker=v,f.setAttribute("stroke","#fff")}else if(this.filterManager.effectElements[10].p.v===1||this.filterManager.effectElements[10].p.v===2){if(this.filterManager.effectElements[10].p.v===2)for(c=this.elem.layerElement.children||this.elem.layerElement.childNodes;c.length;)this.elem.layerElement.removeChild(c[0]);this.elem.layerElement.appendChild(f),this.elem.layerElement.removeAttribute("mask"),f.setAttribute("stroke","#fff")}this.initialized=!0,this.pathMasker=f},SVGStrokeEffect.prototype.renderFrame=function(c){this.initialized||this.initialize();var u,f=this.paths.length,d,h;for(u=0;u<f;u+=1)if(this.paths[u].m!==-1&&(d=this.elem.maskManager.viewData[this.paths[u].m],h=this.paths[u].p,(c||this.filterManager._mdf||d.prop._mdf)&&h.setAttribute("d",d.lastPath),c||this.filterManager.effectElements[9].p._mdf||this.filterManager.effectElements[4].p._mdf||this.filterManager.effectElements[7].p._mdf||this.filterManager.effectElements[8].p._mdf||d.prop._mdf)){var v;if(this.filterManager.effectElements[7].p.v!==0||this.filterManager.effectElements[8].p.v!==100){var p=Math.min(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v)*.01,m=Math.max(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v)*.01,g=h.getTotalLength();v="0 0 0 "+g*p+" ";var y=g*(m-p),b=1+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*.01,Pn=Math.floor(y/b),x;for(x=0;x<Pn;x+=1)v+="1 "+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*.01+" ";v+="0 "+g*10+" 0 0"}else v="1 "+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*.01;h.setAttribute("stroke-dasharray",v)}if((c||this.filterManager.effectElements[4].p._mdf)&&this.pathMasker.setAttribute("stroke-width",this.filterManager.effectElements[4].p.v*2),(c||this.filterManager.effectElements[6].p._mdf)&&this.pathMasker.setAttribute("opacity",this.filterManager.effectElements[6].p.v),(this.filterManager.effectElements[10].p.v===1||this.filterManager.effectElements[10].p.v===2)&&(c||this.filterManager.effectElements[3].p._mdf)){var vn=this.filterManager.effectElements[3].p.v;this.pathMasker.setAttribute("stroke","rgb("+bmFloor(vn[0]*255)+","+bmFloor(vn[1]*255)+","+bmFloor(vn[2]*255)+")")}};function SVGTritoneFilter(c,u,f,d){this.filterManager=u;var h=createNS("feColorMatrix");h.setAttribute("type","matrix"),h.setAttribute("color-interpolation-filters","linearRGB"),h.setAttribute("values","0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0"),c.appendChild(h);var v=createNS("feComponentTransfer");v.setAttribute("color-interpolation-filters","sRGB"),v.setAttribute("result",d),this.matrixFilter=v;var p=createNS("feFuncR");p.setAttribute("type","table"),v.appendChild(p),this.feFuncR=p;var m=createNS("feFuncG");m.setAttribute("type","table"),v.appendChild(m),this.feFuncG=m;var g=createNS("feFuncB");g.setAttribute("type","table"),v.appendChild(g),this.feFuncB=g,c.appendChild(v)}SVGTritoneFilter.prototype.renderFrame=function(c){if(c||this.filterManager._mdf){var u=this.filterManager.effectElements[0].p.v,f=this.filterManager.effectElements[1].p.v,d=this.filterManager.effectElements[2].p.v,h=d[0]+" "+f[0]+" "+u[0],v=d[1]+" "+f[1]+" "+u[1],p=d[2]+" "+f[2]+" "+u[2];this.feFuncR.setAttribute("tableValues",h),this.feFuncG.setAttribute("tableValues",v),this.feFuncB.setAttribute("tableValues",p)}};function SVGProLevelsFilter(c,u,f,d){this.filterManager=u;var h=this.filterManager.effectElements,v=createNS("feComponentTransfer");(h[10].p.k||h[10].p.v!==0||h[11].p.k||h[11].p.v!==1||h[12].p.k||h[12].p.v!==1||h[13].p.k||h[13].p.v!==0||h[14].p.k||h[14].p.v!==1)&&(this.feFuncR=this.createFeFunc("feFuncR",v)),(h[17].p.k||h[17].p.v!==0||h[18].p.k||h[18].p.v!==1||h[19].p.k||h[19].p.v!==1||h[20].p.k||h[20].p.v!==0||h[21].p.k||h[21].p.v!==1)&&(this.feFuncG=this.createFeFunc("feFuncG",v)),(h[24].p.k||h[24].p.v!==0||h[25].p.k||h[25].p.v!==1||h[26].p.k||h[26].p.v!==1||h[27].p.k||h[27].p.v!==0||h[28].p.k||h[28].p.v!==1)&&(this.feFuncB=this.createFeFunc("feFuncB",v)),(h[31].p.k||h[31].p.v!==0||h[32].p.k||h[32].p.v!==1||h[33].p.k||h[33].p.v!==1||h[34].p.k||h[34].p.v!==0||h[35].p.k||h[35].p.v!==1)&&(this.feFuncA=this.createFeFunc("feFuncA",v)),(this.feFuncR||this.feFuncG||this.feFuncB||this.feFuncA)&&(v.setAttribute("color-interpolation-filters","sRGB"),c.appendChild(v)),(h[3].p.k||h[3].p.v!==0||h[4].p.k||h[4].p.v!==1||h[5].p.k||h[5].p.v!==1||h[6].p.k||h[6].p.v!==0||h[7].p.k||h[7].p.v!==1)&&(v=createNS("feComponentTransfer"),v.setAttribute("color-interpolation-filters","sRGB"),v.setAttribute("result",d),c.appendChild(v),this.feFuncRComposed=this.createFeFunc("feFuncR",v),this.feFuncGComposed=this.createFeFunc("feFuncG",v),this.feFuncBComposed=this.createFeFunc("feFuncB",v))}SVGProLevelsFilter.prototype.createFeFunc=function(c,u){var f=createNS(c);return f.setAttribute("type","table"),u.appendChild(f),f},SVGProLevelsFilter.prototype.getTableValue=function(c,u,f,d,h){for(var v=0,p=256,m,g=Math.min(c,u),y=Math.max(c,u),b=Array.call(null,{length:p}),Pn,x=0,vn=h-d,J=u-c;v<=256;)m=v/256,m<=g?Pn=J<0?h:d:m>=y?Pn=J<0?d:h:Pn=d+vn*Math.pow((m-c)/J,1/f),b[x]=Pn,x+=1,v+=256/(p-1);return b.join(" ")},SVGProLevelsFilter.prototype.renderFrame=function(c){if(c||this.filterManager._mdf){var u,f=this.filterManager.effectElements;this.feFuncRComposed&&(c||f[3].p._mdf||f[4].p._mdf||f[5].p._mdf||f[6].p._mdf||f[7].p._mdf)&&(u=this.getTableValue(f[3].p.v,f[4].p.v,f[5].p.v,f[6].p.v,f[7].p.v),this.feFuncRComposed.setAttribute("tableValues",u),this.feFuncGComposed.setAttribute("tableValues",u),this.feFuncBComposed.setAttribute("tableValues",u)),this.feFuncR&&(c||f[10].p._mdf||f[11].p._mdf||f[12].p._mdf||f[13].p._mdf||f[14].p._mdf)&&(u=this.getTableValue(f[10].p.v,f[11].p.v,f[12].p.v,f[13].p.v,f[14].p.v),this.feFuncR.setAttribute("tableValues",u)),this.feFuncG&&(c||f[17].p._mdf||f[18].p._mdf||f[19].p._mdf||f[20].p._mdf||f[21].p._mdf)&&(u=this.getTableValue(f[17].p.v,f[18].p.v,f[19].p.v,f[20].p.v,f[21].p.v),this.feFuncG.setAttribute("tableValues",u)),this.feFuncB&&(c||f[24].p._mdf||f[25].p._mdf||f[26].p._mdf||f[27].p._mdf||f[28].p._mdf)&&(u=this.getTableValue(f[24].p.v,f[25].p.v,f[26].p.v,f[27].p.v,f[28].p.v),this.feFuncB.setAttribute("tableValues",u)),this.feFuncA&&(c||f[31].p._mdf||f[32].p._mdf||f[33].p._mdf||f[34].p._mdf||f[35].p._mdf)&&(u=this.getTableValue(f[31].p.v,f[32].p.v,f[33].p.v,f[34].p.v,f[35].p.v),this.feFuncA.setAttribute("tableValues",u))}};function SVGDropShadowEffect(c,u,f,d,h){var v=u.container.globalData.renderConfig.filterSize,p=u.data.fs||v;c.setAttribute("x",p.x||v.x),c.setAttribute("y",p.y||v.y),c.setAttribute("width",p.width||v.width),c.setAttribute("height",p.height||v.height),this.filterManager=u;var m=createNS("feGaussianBlur");m.setAttribute("in","SourceAlpha"),m.setAttribute("result",d+"_drop_shadow_1"),m.setAttribute("stdDeviation","0"),this.feGaussianBlur=m,c.appendChild(m);var g=createNS("feOffset");g.setAttribute("dx","25"),g.setAttribute("dy","0"),g.setAttribute("in",d+"_drop_shadow_1"),g.setAttribute("result",d+"_drop_shadow_2"),this.feOffset=g,c.appendChild(g);var y=createNS("feFlood");y.setAttribute("flood-color","#00ff00"),y.setAttribute("flood-opacity","1"),y.setAttribute("result",d+"_drop_shadow_3"),this.feFlood=y,c.appendChild(y);var b=createNS("feComposite");b.setAttribute("in",d+"_drop_shadow_3"),b.setAttribute("in2",d+"_drop_shadow_2"),b.setAttribute("operator","in"),b.setAttribute("result",d+"_drop_shadow_4"),c.appendChild(b);var Pn=this.createMergeNode(d,[d+"_drop_shadow_4",h]);c.appendChild(Pn)}extendPrototype([SVGComposableEffect],SVGDropShadowEffect),SVGDropShadowEffect.prototype.renderFrame=function(c){if(c||this.filterManager._mdf){if((c||this.filterManager.effectElements[4].p._mdf)&&this.feGaussianBlur.setAttribute("stdDeviation",this.filterManager.effectElements[4].p.v/4),c||this.filterManager.effectElements[0].p._mdf){var u=this.filterManager.effectElements[0].p.v;this.feFlood.setAttribute("flood-color",rgbToHex(Math.round(u[0]*255),Math.round(u[1]*255),Math.round(u[2]*255)))}if((c||this.filterManager.effectElements[1].p._mdf)&&this.feFlood.setAttribute("flood-opacity",this.filterManager.effectElements[1].p.v/255),c||this.filterManager.effectElements[2].p._mdf||this.filterManager.effectElements[3].p._mdf){var f=this.filterManager.effectElements[3].p.v,d=(this.filterManager.effectElements[2].p.v-90)*degToRads,h=f*Math.cos(d),v=f*Math.sin(d);this.feOffset.setAttribute("dx",h),this.feOffset.setAttribute("dy",v)}}};var _svgMatteSymbols=[];function SVGMatte3Effect(c,u,f){this.initialized=!1,this.filterManager=u,this.filterElem=c,this.elem=f,f.matteElement=createNS("g"),f.matteElement.appendChild(f.layerElement),f.matteElement.appendChild(f.transformedElement),f.baseElement=f.matteElement}SVGMatte3Effect.prototype.findSymbol=function(c){for(var u=0,f=_svgMatteSymbols.length;u<f;){if(_svgMatteSymbols[u]===c)return _svgMatteSymbols[u];u+=1}return null},SVGMatte3Effect.prototype.replaceInParent=function(c,u){var f=c.layerElement.parentNode;if(f){for(var d=f.children,h=0,v=d.length;h<v&&d[h]!==c.layerElement;)h+=1;var p;h<=v-2&&(p=d[h+1]);var m=createNS("use");m.setAttribute("href","#"+u),p?f.insertBefore(m,p):f.appendChild(m)}},SVGMatte3Effect.prototype.setElementAsMask=function(c,u){if(!this.findSymbol(u)){var f=createElementID(),d=createNS("mask");d.setAttribute("id",u.layerId),d.setAttribute("mask-type","alpha"),_svgMatteSymbols.push(u);var h=c.globalData.defs;h.appendChild(d);var v=createNS("symbol");v.setAttribute("id",f),this.replaceInParent(u,f),v.appendChild(u.layerElement),h.appendChild(v);var p=createNS("use");p.setAttribute("href","#"+f),d.appendChild(p),u.data.hd=!1,u.show()}c.setMatte(u.layerId)},SVGMatte3Effect.prototype.initialize=function(){for(var c=this.filterManager.effectElements[0].p.v,u=this.elem.comp.elements,f=0,d=u.length;f<d;)u[f]&&u[f].data.ind===c&&this.setElementAsMask(this.elem,u[f]),f+=1;this.initialized=!0},SVGMatte3Effect.prototype.renderFrame=function(){this.initialized||this.initialize()};function SVGGaussianBlurEffect(c,u,f,d){c.setAttribute("x","-100%"),c.setAttribute("y","-100%"),c.setAttribute("width","300%"),c.setAttribute("height","300%"),this.filterManager=u;var h=createNS("feGaussianBlur");h.setAttribute("result",d),c.appendChild(h),this.feGaussianBlur=h}SVGGaussianBlurEffect.prototype.renderFrame=function(c){if(c||this.filterManager._mdf){var u=.3,f=this.filterManager.effectElements[0].p.v*u,d=this.filterManager.effectElements[1].p.v,h=d==3?0:f,v=d==2?0:f;this.feGaussianBlur.setAttribute("stdDeviation",h+" "+v);var p=this.filterManager.effectElements[2].p.v==1?"wrap":"duplicate";this.feGaussianBlur.setAttribute("edgeMode",p)}};function TransformEffect(){}TransformEffect.prototype.init=function(c){this.effectsManager=c,this.type=effectTypes.TRANSFORM_EFFECT,this.matrix=new Matrix,this.opacity=-1,this._mdf=!1,this._opMdf=!1},TransformEffect.prototype.renderFrame=function(c){if(this._opMdf=!1,this._mdf=!1,c||this.effectsManager._mdf){var u=this.effectsManager.effectElements,f=u[0].p.v,d=u[1].p.v,h=u[2].p.v===1,v=u[3].p.v,p=h?v:u[4].p.v,m=u[5].p.v,g=u[6].p.v,y=u[7].p.v;this.matrix.reset(),this.matrix.translate(-f[0],-f[1],f[2]),this.matrix.scale(p*.01,v*.01,1),this.matrix.rotate(-y*degToRads),this.matrix.skewFromAxis(-m*degToRads,(g+90)*degToRads),this.matrix.translate(d[0],d[1],0),this._mdf=!0,this.opacity!==u[8].p.v&&(this.opacity=u[8].p.v,this._opMdf=!0)}};function SVGTransformEffect(c,u){this.init(u)}extendPrototype([TransformEffect],SVGTransformEffect);function CVTransformEffect(c){this.init(c)}return extendPrototype([TransformEffect],CVTransformEffect),registerRenderer("canvas",CanvasRenderer),registerRenderer("html",HybridRenderer),registerRenderer("svg",SVGRenderer),ShapeModifiers.registerModifier("tm",TrimModifier),ShapeModifiers.registerModifier("pb",PuckerAndBloatModifier),ShapeModifiers.registerModifier("rp",RepeaterModifier),ShapeModifiers.registerModifier("rd",RoundCornersModifier),ShapeModifiers.registerModifier("zz",ZigZagModifier),ShapeModifiers.registerModifier("op",OffsetPathModifier),setExpressionsPlugin(Expressions),setExpressionInterfaces(getInterface),initialize$1(),initialize(),registerEffect$1(20,SVGTintFilter,!0),registerEffect$1(21,SVGFillFilter,!0),registerEffect$1(22,SVGStrokeEffect,!1),registerEffect$1(23,SVGTritoneFilter,!0),registerEffect$1(24,SVGProLevelsFilter,!0),registerEffect$1(25,SVGDropShadowEffect,!0),registerEffect$1(28,SVGMatte3Effect,!1),registerEffect$1(29,SVGGaussianBlurEffect,!0),registerEffect$1(35,SVGTransformEffect,!1),registerEffect(35,CVTransformEffect),lottie})})(lottie$1,lottie$1.exports);var lottieExports=lottie$1.exports;const lottie=getDefaultExportFromCjs(lottieExports),__default__$1=vue.defineComponent({name:"EcanImage",props:{...imageComponentProps},setup(c){const u=usePickComponentStyle(c),f=vue.computed(()=>useImagePath(c.imgUrl)),{pageMode:d}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"}),h=vue.computed(()=>{const J={},{actionType:j,linkPage:Fn,href:Bn}=c,{requestParams:w={}}=window.config;return vue.unref(d)!=="design"&&j==="close"&&c.isDrillShow&&!w.drillFlag&&(J.display="none"),(j==="link"&&(Fn||Bn)||!j&&(Fn||Bn)||j==="close")&&(J.cursor="pointer"),{...vue.unref(u),...J}}),{getGlobalModel:v,setGlobalModel:p,getRecordValueByKeyName:m}=vue.inject(GLOBAL_MODEL,{getGlobalModel:J=>{},setGlobalModel:(J,j)=>{},getRecordValueByKeyName:J=>{}}),{setTemplateData:g}=vue.inject("templateOperate",{setTemplateData:J=>{}}),b=useEmitEvent(c)("click",()=>{const J=v(c.id);if(p(c.id,{...J,type:c.type,RECORD:c.data||{}}),setTimeout(()=>{p(c.id,{...J,type:c.type,RECORD:{}})},0),[void 0,"link"].includes(c.actionType)){if(!c.linkPage&&!c.href)return;handleJumpLink(c,{pageMode:vue.unref(d),targetTemplate:c.targetTemplate,getRecordValueByKeyName:m,setTemplateData:g})}else c.actionType==="close"&&window.close()}),Pn=vue.ref(),x=vue.ref(),vn=()=>{const{directory:J}=c.animationSource;c.isAnimation&&Pn.value&&J&&(x.value=lottie.loadAnimation({name:`${c.keyName}-lotTie`,container:Pn.value,renderer:"svg",loop:!0,autoplay:!0,path:useImagePath(J)+"data.json"}),vue.unref(x).setSpeed(1))};return vue.watch(()=>[c.isAnimation,c.animationSource],([J])=>{J&&vue.nextTick(()=>{vn()})},{immediate:!0,deep:!0}),useOnEvent(c,{click:b}),{customStyle:h,myImgUrl:f,animation:Pn,pageMode:d,onClick:b}}}),__injectCSSVars__$1=()=>{vue.useCssVars(c=>({"8d74eefa":c.isHoverStyle?"pointer":"auto","7ff7bf46":c.isHoverStyle?"0.6":"1"}))},__setup__$1=__default__$1.setup;__default__$1.setup=__setup__$1?(c,u)=>(__injectCSSVars__$1(),__setup__$1(c,u)):__injectCSSVars__$1;const Image_vue_vue_type_style_index_0_scoped_8b128e89_lang="",_hoisted_1$3=["src"];function _sfc_render$7(c,u,f,d,h,v){var p;return vue.openBlock(),vue.createElementBlock(vue.Fragment,null,[c.isAnimation?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[c.animationSource.directory?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:vue.normalizeClass(["ecan-image",c.pageMode==="design"?"component":""]),ref:"animation",style:vue.normalizeStyle(c.customStyle),onClick:u[0]||(u[0]=(...m)=>c.onClick&&c.onClick(...m))},null,6)):vue.createCommentVNode("",!0)],64)):(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:1},[c.myImgUrl!==""?(vue.openBlock(),vue.createElementBlock("img",{key:0,class:vue.normalizeClass(["ecan-image",c.pageMode==="design"?"component":""]),style:vue.normalizeStyle(c.customStyle),src:c.myImgUrl,onClick:u[1]||(u[1]=(...m)=>c.onClick&&c.onClick(...m))},null,14,_hoisted_1$3)):vue.createCommentVNode("",!0)],64)),(c.isAnimation?!((p=c.animationSource)!=null&&p.directory):!c.myImgUrl)?(vue.openBlock(),vue.createElementBlock("div",{key:2,class:vue.normalizeClass(["image-placeholder",c.pageMode==="design"?"component":""]),style:vue.normalizeStyle(c.customStyle)}," 请上传图片 ",6)):vue.createCommentVNode("",!0)],64)}const Image$1=_export_sfc$1(__default__$1,[["render",_sfc_render$7],["__scopeId","data-v-8b128e89"]]),EcanImage=withInstall$1(Image$1),iframeProps={...props$1,name:"网页",keyName:"网页",type:"ecanIframe",width:"300px",height:"300px",link:"",linkType:"web",transParams:[]},iframeComponentProps=transformToComponentProps(iframeProps),_sfc_main$5=vue.defineComponent({name:"EcanIframe",props:{...iframeComponentProps},setup(c){const u=usePickComponentStyle(c),{contextRequestUrl:f}=vue.inject(GLOBAL_CONFIG,{contextRequestUrl:""}),{getRecordValueByKeyName:d}=vue.inject(GLOBAL_MODEL,{getRecordValueByKeyName:v=>{}}),h=vue.computed(()=>{var p;let v=hn(c.link);if(c.linkType==="erd"&&v!=null){let m=vue.unref(f);m[m.length-1]==="/"?m+="erdReport":m+="/erdReport",v=`${ERD_URL||m}?_t=0&uid=${v}`}if((p=c.transParams)!=null&&p.length){v.includes("?")?v+="&":v+="?";const m=[];for(const g of c.transParams){const y=d(String(g.fieldName));m.push(`${g.keyName}=${y}`)}v+=m.join("&")}return v});return{style:u,myLink:h}}}),Iframe_vue_vue_type_style_index_0_scoped_c0393b8d_lang="",_hoisted_1$2=["src"];function _sfc_render$6(c,u,f,d,h,v){return c.myLink?(vue.openBlock(),vue.createElementBlock("iframe",{key:0,src:c.myLink,style:vue.normalizeStyle(c.style)},null,12,_hoisted_1$2)):(vue.openBlock(),vue.createElementBlock("div",{key:1,class:"iframe-placeholder",style:vue.normalizeStyle(c.style)}," 请填写网页链接 ",4))}const Iframe=_export_sfc$1(_sfc_main$5,[["render",_sfc_render$6],["__scopeId","data-v-c0393b8d"]]),EcanIframe=withInstall$1(Iframe),tableProps={...props$1,zIndex:2,name:"表格",keyName:"表格",type:"ecanTable",width:"400px",height:"240px",bordered:!1,headerFontSize:"14px",headerFontColor:"",fontSize:"14px",isUseSeq:!1,size:"",headerFontWeight:400,isUseExport:!1,fontWeight:400,columnsFixedNum:0,scrollX:0,paginationShow:!0,isReverse:!1,simple:!1,pageSizeShow:!1,cellBackgroundColor:"",cellFontColor:"",headerBackgroundColor:"",borderColor:"",paginationPosition:"bottomRight",paginationPageSize:10,isUseAction:!1,clickHighlight:!1,filterDropdownHeight:"200px",actionList:[{title:"",href:"",target:"",color:""}],actionColumnWidth:100,columns:[{title:"姓名",dataIndex:"name"},{title:"年龄",dataIndex:"age"},{title:"住址",dataIndex:"address"}],data:[{name:"小明",age:32,address:"福州软件园"},{name:"小红",age:25,address:"福州软件园"}],graphicConfig:{},stripedShow:!1,stripedColor:"#fafafa",isGroupTable:!1,seqWidth:"10%",seqName:"序号",seqIcon:!1,isSummaryFixed:!1,isPageBottom:!1,isShowTotal:!1,hideTableHeader:!1,paginationColor:"",paginationBgColor:"",activePaginationColor:"",activePaginationBgColor:"",hoverBackgroundColor:"",subTotalColumn:"",subTotalName:"小计",isSortByFront:!1,transParams:[],linkPage:"",target:"self",href:"",isAutoScroll:!1,scrollSpeed:10,clickTarget:"row",clickTargetColumns:[],linkTextColor:"",isTableFill:!1,conditionList:[],bodyRowHeight:"",headRowHeight:"",tableVersion:1},tableComponentProps=transformToComponentProps(tableProps),tableEvents=["click","refreshData","resetRecord","exportTableData"],topArrow="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAYCAYAAADOMhxqAAAAAXNSR0IArs4c6QAAAK1JREFUOE/tktENgjAURe+FBRiBCdCOwAYOoIiTqBs4Agn+OwJuUHECRugC5ZkUUItNXIB+3ndOmt5XInCkLU6AGK7qy3zMeSB6u0HMm8ut5FTX+zfjCaLLFHGvAUlGyMDGiqrqJuktjHADSOrfyg42yifJCaLLBFHfgLIOvQnCB3onmUFoiwqUfRD+hBWz+kDXCOX4Bx7Glufflp478VrJao9ZBLeTpSWAy9cAXto7eMUv8Bo2AAAAAElFTkSuQmCC",downArrow="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAYCAYAAADOMhxqAAAAAXNSR0IArs4c6QAAAMBJREFUOE/tlE0OwVAURs8tcx0RRpWQGLIDXYIViB3YgdpJl2AHXQJzJJ0hBjoy0fbSl5C2ohvQN3rf994Z3F+hdAYX1bx16IjkdUFkDzUA1FkC/rM1BlddkeKVB+mH9kyWhhf1FeZVkAj+vi0LAzg3tZsPApTxD2gX33HDvkSfOoxO6iQWgYKThxTCJMUNuxJmfqFwGRQ32KLYBhKiOGHy/vwFmCVw0ikWQXbXhNmxJ5vKrWGgsy4RWq/hWZdjegLPIXik13+8RAAAAABJRU5ErkJggg==",seqIcon1="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADoAAAA6CAYAAADhu0ooAAAAAXNSR0IArs4c6QAABzRJREFUaEPtWktzVEUUPn1fk5lJ5DVJeEx4hMRAxABCBKRUqtTS8oFilY+dZfEL3FnudOXKtVt3LqxyoQtlI1WUCFhYpSCIhKoAgTwhJMFkZm73bavP7dO3h9yQpJJNJtObnJx7u+ee+333O6cfDJahSQCHhhk91p1Ttj8xs4F8zOEe2dx3C2hH0efkkwCvKluCPEc+l7mfKHvD+X7jW8qjsqV0th60Hqh6GSsSUQlgWNDX0RGoQNauCdcbmvruU8oWnB9NqAtvGRtgPzJXJuMMh86U8jX7USPd57H4OmPwjWEOZ5/hfRdvDi6WiYumbj1Q/YrZSkf0l2OAytlRLj5BtAm4uwvV0pG9hl4S3lW2C3DEopdP9mDolpV9vew+JN80hxll+0xy8nU1iHXKLmYi83sM4D+tzl/SfWVXfqXstt8GcIy52oKpW5OBUl7sO7TeiEPBadoZi0y0l96aYOwdbb9MPgcgr+wxzgw6l0uBeduTggl13WEgkz4yipEC04dJicg3WeK3Jx9ibl7nSczVcZO3tPEpeQoXbn+rbIZDxi0V0XqgKxlRky56Wg0dxoNgB5LCi3OiaqGM9sVMYSfJ54JsVvbDKKajapdm/JL6e5e7IfkMH2N6Ip2YxSVXM8y3fI6MhYnJhM4gWUX5tngc87dqXTmBJWXOkUbwqJT0hP+Boe6qCXT0aNtmjFp4Bw0Cgncqe1I68TUAGJduu/q70+UkQNBX9lAwLpV8IzaoKooB1FENbYkCQW9UwhINqoZUV1+jHFii5UoZC5k1PBOAKHfnwjX0k9syEaYmAPamQbQeaK0hOniw+CxSzXGPE8y3OMMP/HKYyIPvRhuV73gQmvvOTQdYqdwJZwtPaNGV6Kzu5dpv1MuiuJnrxZUVtgyTRqIy5AOZ5OBI4mfT4kWm+4FGvmkWdVdNoKO9xRdjsXGMyJwJfUw1F0J6r0qEJCL6cbZsED2rER20EK1oxGwxIhRV/zQxInjs6oVsszQBAFmNbt5OTRrRVi8y3gP5cDai9UBrDdGR3rYXFKVGJDtBunCqnEHqXhYJdXe5Yk7qDljUJRGyqyGisxqTaGrnVkuPjOnqOtymc06vOuRZkoV9Td2N81F3FQaaiNFP5QCnWv+kIPpRihilIWqjaKNLqSay0k8aoo5G1E45WQ1vo5VyHoeoZPC8qYwSROuB4kuhb7SmED2lqXvFou5eVxRVwB9my68THSiPLoa6SxGjZaduTQY6eLB4TCF0D5JaNy3QZzy+Vd33XkPltUcRtWvdtPSSVvfa07THVUa2GFF6yVWnl2n1PK12rasroyoxqgcKAPY3uuIRHevd+pKCfkiCmY1TZbTQQO2inop5u5BPo649dZsjj6L7kTyKmdTOo56QSN1mf3ZRX0XdVRPo8OF2XHwe5fyNR2vd+RD9S68VXddrR6o/IWVXQ3ZdS9cXWutWIaqrpayTSJmjEd0WCLMyuDvHceGgCtF6oAsQo5WF6KEdryB1hTAVT9o0rQ2iteq+k/myEa0si/dARrhjFhT+LMUL2A+EY5aF7PUhKuYXkUdnrRkVrJy5KwiRss1+1GCJ2n1lM+Ekm9HD9UCrJ94rH9Herai645Dk0bMVP6t8f1iLYxN6NTELyR7HiVwF92P2e+Jpoo0D8YZxfyVexVft75KHdFZtRsb120Kpm7Pmnt0NHOm5LeC08qnybLxHA/Jr+o1MJvxC2U1nhkbJx4ZXS6Bjh4uHVNQVyUweHeYebrhe4zE6ql3VZ6LuyGQdqaSTYosrzYbx+w0lXBBvd2UH9Q01ijiORveGhTihm4wM0JmJUevKhEZkaG8mArhmkJISt/mb803fkQ+gBRnETp9ONpbrgdYaoncPbMZyyfWzXQS9iMI9yp4WzNBvSLpNyvevSLZwr2qxGkk4A2UtWvt83kLutxvC58guMIn+KWvz+FbFw62/dktkso7E6k8ADCXDS6QnA/4j+cq+d0nZbb/eth8DU3fVGYZVE6jZ8T4C5qOfyHXi3kV5soybv6pJgG71d1yy7eQb4I5eFk12SK6JuJC5n2xuVU21TjSEyJzDfmjOJgUMsMKKACas30PU/Cj6nnxhkEERahUFOokCcP48Hq+z0bMIZkyV1OInqwdaI4imwZwc4OgxJ1Xu5SfbkMJSPEl9eMR2K3tYsC3kuyEczH83w4TO9tx0uxf/1+kntdEmJ54wBAx+oHFEwK4ou5QT/eQr/jzwQNN0vgWKWWHNdaAq9vfUeKBpKJNvtKuAaQbR3dCIx+aYlChUqk1ziWJzP3LwDBLeZ73/gifuKZ/PWB9dZ8xBkcnxivE1XbwbT7WSRYvHPda81xZ86LEeaK0imsaRqZ5WUwXNZHJ4hhecyFRVjFmpVMKNmM7sKo3V/Hs/VjXLRdO0Z1w0dVd1oHbwUp/UnoLNmDJUmxnjZgbWUhhBMWKnrcOM80rJ0m9YFkRXQqD/A/mshzl9oUoNAAAAAElFTkSuQmCC",seqIcon2="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAA4CAYAAACohjseAAAAAXNSR0IArs4c6QAABQFJREFUaEPtWt1v21QUv9eJ80FbWmV0adel7ZqyLenSgVYJaQghHhBIICEhoWkvSGgCiQ+JdWMCISEVxAPSoEWT+AN4QTzxzl/Ah8SAQtJ23dKvreuydl3TrIsd23e6xz63LovqeE2BePaLT06ur33O7+dzj8+5lPyHh5I7f4TfPpT6IIuPQSll9XwkWs/J3M7lGQOV7JdpYTxjX206gr4IMiM/CwQDdBhQTZ8VOreOs4//VxD0DWwkBO/kxjqRIkFDHwWZktdQZ2h6AOXlpUUQY3s7BKuCsoxB5ltUalLgYy43pYevu6Vr3SnqKQNZ9ptm9KjK7n5iye/bAkqYyzeuLQjV3OVJIavlMshyKCR03f2HQe5I9AgdpbRkBiP6BSpD6xTYQY+fubsdqjtC0DeQscZBkLERCamgZFveNmMH+9xGjzYu3165KVSzUzmQS8U1t7GBNLU8Kq7pS0HCQ1pjj9nmofPmD/aRoO3A2e/huWzZUM0U9ayB5exoP3iFGT/a3NfH5Y3SulDNTJrp5OpywTVatV6wJy5WIHLgkJkcRR5p2rzcWk8NSTuBSkcEfQMtVzUEgowxQFTLnj+OEBtEeteST6Lu2swVEGcvmUEEXnVW168cR9ZSyYx5vQdTYmxXbxKf5eWqFPWkgSw7GkNrVWa8A2gQkkCdrigQm4Ph8Kuom7j4K4grhSVHT+/2gFh7XNwifeyp+xH0vIEYJU3TjXP8VFiYLaJbSsViK5eTA4Nvoi732y8g3rp5Y7cBcpzfEUHfQC8iOD3+u0goJUlq5zzpP3L0Lc9Q1PMGTv55USSUciCwt9EQlCh5Riz01YKMb+D/fJlwhWA4JHdxuPtSmTcaJcj4BtrfwWg00m1m7enXPYmgb6Bjtri7A6rlolveQeWvMfHFyKh+mj+OpyjqfQPHRzNIIiYZ79WCYH7ib7hkcS6/u/yrYfZ9PVDggwPrp1sp6ht4/zLhKQRZRYUO0qEnhk4hFQLBYAuX7UVeLBvai8E1MMzVEHuRFwu/9mIwLzLAhAZ5WiTbigNFPWng/KWJVfTAfP4y1GfC4bBo4iUHBp/lulh7XHiKt/m4bmlhTqAyb/UCK6rqCik+2N4zTCQPwvWdiV4xD5WkCv9BGbmASlkLQDOIPjl8e1sEPWXglpYz02ELB2MEKmn8KK2uQBv2ymTW5DchZH1tDbzX0toGLTN+9KcyL/Bzc1ubWHYqqgqVckTynwhjNRyr1Pz/fd0HYD5EjctBGcjB+3VTeD9JZ/B1Iw+e+wl11c7UN7DREbTDyqYvQMtZVRVzBxK8xPR5fjYYC6Ju+fpV2BQwO5UTrduyoupcF+/aL8r+3Y8ffonrIpGo0NmXkYK1OaHToiUfG45GLTYSUVVmViAJKaWvxXMNjWxsR00x7qEysJpHsHdRYYZovhiMDfGxuq6JntnV/DSE5sWZvLnlA9ZbA87JVOYY6uL7e4ER/JAkam5DoUQwgRH2HVdphvwpjmvOnH7gHoFjh9c30HJzwyJYjbbl8TH4RqGSJvagMUJBp2zcgTWSH4VFMxh1JHogd+VHKBQxowhMQCGoMV37DFWRox+Kta7avd3qHCn6UBqIRmPLG4KC1dc3qPTK5v9mRkQJEa0ASukP+L+cPvOHCWR9tzHbQXkgBH0DLQ9gTtuwCFZ7PzEb4v9Vyhok3vJyEagIdHxuRHMbKHYyfkcUbQQD7wHq9EAq9LeVYwAAAABJRU5ErkJggg==",seqIcon3="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAA4CAYAAACohjseAAAAAXNSR0IArs4c6QAABMJJREFUaEPtWl1sFFUUPndmlm1LdW1XoGxly7qFYqmIBkxEJDTRRI3RxNhgpDzpkwixJCaEJx588MHQCPrgGwT8SSD4Zkx84DfGEEjU2KpAS6ktZVsKpF0K3Z+55p4798ysGdju0A3Mdu5De/bcn7nnfN/ce+ecy+ABli1fHGsTjz+4fWMPTYMxPptTYrM5WKljBQaW6jGX9mVF8N19p2PimYxBnXq2ZpqfK5kDvCpl/qvSMdC7hPzN9vWkux87AwNn6r3O7pOLRVtT5+/bfVinJS9TOjNvakoeG0mhGF20gLoYIUMtMgcI9TzsEvKhrg0jM52PzYhSe9ylfWCg5RhfINjx9c8RMd/QnapN9v7FP7Dk1aTjPCTk1LDNrIHzfVSduTONcmgeNsPStCyJ/xvijfbQjKXFD87ZZ0qZy+t7hHx4x7rb9yKhp0Wmogx8be+PYeGhCNS+TC89AC7lAPCCw3s1Qr557TqpLv19AeX0xOS9nOxaN/+RWtInW1tQjkRptxE/BxFVYDtVw++2rf8eZcdpqCiCgYG2/32AIOeI6OYvT62jeXO2RVKBv+PgUlTIU+lbpOr/6zzKN8bGS6bjTDtEGxZS08SKZpSra9CvVpEnIt3UaPErpGglGtix55d6ZX/IyH4oX1JYonSZ25kGIc+rCr+pdEP9l1Ec+Oei7Ts+q185RUFlmjwQJVokkqI0JuL43wR4Q+lYYKDfEez86hhhbJraJwLaoT7cYrCkJyaRoitWtxFFe8/9jnXjqbGiVCp3g/qFj9MjVq6Rh6gCis5JA3vP/kFe0TQmEXx2FSHYc/Y3rL8+eq3cABUd3xOCgYF+R7DnjE1R3ahAigYGPuQU5SZ7iU4ybtuE3xEMDHQiGAqHnhBwL1/V+rqC/WHfB0tCMDCw6FmjvA3cTjIFCG7qPvGUmoJuwMdCdlI0XF2FH1nNbS1WHgHAVxSteAM37zvxtEKQA3xUcQgGBvr9HfSCYH+vDBEOD9hf/uVdK+8+emwpxcdARcALVtE5aeClP+1w4GR64jHhv9bnnqFQnBEyMNrqDPKqwK8zGDzbqDqDvCrw6wwGiyCDeCZn+RfpsO2GYGCgnxBUqWeEVpdpMc44JjiRhqMyHfbvxT7KUjbE4xifWxBbRHsoABhCd3VwmJh5+YJMdmYz2ZLZ6kyKLmlOYP9YHM/9WJim4aAc2F6lC+dznwp5f1f7TWpX8QY6XatygXW8ls6dwNgroo3JTUIwNXgFu42OjFCWcuny5PNCF6mvo0CyQk4h+X+EuZXPUHkGUd/YJJd9hZqQHTcvjqj5anpe3rzY2m6viC48KcguBQZaHvItgm4rgco+GXrubaIHY2uEnMlMEwMGrAUlP52jLGVTSxITqdXza0jn3CdTQ5LqMYuWQg5XV6nHnKOFAjT8CPByvatojr7iDXRD9b3uU0+iXocOqmcm6qYmpkiVuiIRakom5DUJANAMY61jTJV/lhlVLHyH+Pvttg0/2GN7v0NaFMHAQHpRKghBm03yVoYodDODw1tENnUi4too+YHxn6jelHcBsjeiR5Xu8O6VGTfWeNV5oujcMdDFreqwIKoi7FE8q14dz8qMKQAc392e84qGl373h2Bg4INH8D9A563p5gHY1gAAAABJRU5ErkJggg==",__default__=vue.defineComponent({name:"EcanTable",components:{Skeleton,AButton:antDesignVue.Button,AInput:antDesignVue.Input,ACheckboxGroup:antDesignVue.CheckboxGroup,ATable:antDesignVue.Table,ATableSummary:antDesignVue.TableSummary,ATableSummaryRow:antDesignVue.TableSummaryRow,ATableSummaryCell:antDesignVue.TableSummaryCell,DownOutlined:DownOutlined$1,RightOutlined:RightOutlined$1,MarqueeScroll},props:{...tableComponentProps},setup(c,{expose:u}){const{pageMode:f,height:d,theme:h}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal",height:null,theme:"light"}),v=vue.ref(!1),p=vue.computed(()=>vue.unref(f)!=="design"&&c.isAutoScroll),m=vue.ref({}),g=vue.ref(!1),y=vue.computed(()=>{const Sr=lodashEs.cloneDeep(c.columns);return c.isUseSeq&&Sr.unshift({title:c.seqName,dataIndex:"SEQ",align:"center",width:c.seqWidth}),c.isUseAction&&Sr.push({title:"操作",dataIndex:"ACTION",width:c.actionColumnWidth}),Sr}),b=vue.ref(),Pn=vue.ref(),x=vue.ref(!1),vn=usePickComponentStyle(c),J=vue.ref([]),j=vue.computed(()=>{const{height:Sr}=c;return typeof Sr=="string"?Sr:Sr.suffix==="px"?Sr.value+"px":Sr.suffix==="%"?parseFloat(vue.unref(d))*(Sr.value/100)+"px":"0"}),Fn=vue.computed(()=>c.scrollX),Bn=vue.ref(parseFloat(j.value)),w=()=>{let Sr=0;switch(c.size){case"small":Sr=50;break;case"middle":Sr=53;break;default:Sr=65;break}return Sr},gn=vue.ref(0),re=vue.ref(""),Rn=vue.ref(0);vue.watchEffect(()=>{var Sr;(Sr=J.value)!=null&&Sr.length&&j.value&&setTimeout(()=>{let _r=parseFloat(j.value),Ar=document.querySelector(`#ecanTable-${c.id} .ant-table-tbody`),Dr=document.querySelector(`#ecanTable-${c.id} thead.ant-table-thead`);const zr=document.querySelector(`#ecanTable-${c.id} .ant-table-summary`);let $r=0;if(Dr&&(_r-=(Dr==null?void 0:Dr.clientHeight)||0),zr&&c.isSummaryFixed&&($r=(zr==null?void 0:zr.clientHeight)||0,_r-=$r),c.paginationShow&&!c.isAutoScroll){let Pr=0;Pr=w(),Pr&&(_r-=Pr)}(Ar==null?void 0:Ar.clientHeight)>_r?Bn.value=_r:Bn.value=0,vue.nextTick(()=>{if($r){const Pr=document.querySelector(`#ecanTable-${c.id} .ant-table-summary`),Vr=(Pr==null?void 0:Pr.clientHeight)||0;$r!==Vr&&vue.unref(Bn)&&(Bn.value=_r+$r-Vr)}c.isAutoScroll&&v.value&&setTimeout(()=>{var Yr;const Pr=document.querySelector(`#ecanTable-${c.id} .ant-table-body`);Ar=document.querySelector(`#ecanTable-${c.id} .ant-table-tbody`),Dr=document.querySelector(`#ecanTable-${c.id} thead.ant-table-thead`);const Vr=Pr||Ar;gn.value=(Vr==null?void 0:Vr.clientHeight)||0,Rn.value=(Dr==null?void 0:Dr.clientHeight)||0,m.value={height:((Ar==null?void 0:Ar.clientHeight)||0)+"px"};const Kr=document.querySelector(`#ecanTable-${c.id} .ant-table-body > table`);if(re.value=(Yr=document.querySelector(`#ecanTable-${c.id} .ant-table`))==null?void 0:Yr.className,Kr){const Xr=Kr.cloneNode(!0);Kr.style.visibility="hidden",setTimeout(()=>{Vr==null||Vr.setAttribute("id","hiddenTableBody")},0);const Jr=document.querySelectorAll(`#ecanTable-${c.id} .scroll-wrap`);if(Jr!=null&&Jr.length){for(const li of Jr)li.append(Xr.cloneNode(!0));const ti=document.querySelectorAll(`#ecanTable-${c.id} .scroll-wrap .ant-table-cell`);if(ti!=null&&ti.length)for(const li of ti)Vn(li);const oi=document.querySelector(`#ecanTable-${c.id} .vue3-marquee`);oi&&oi.addEventListener("scroll",li=>{var fi;document.querySelector(`#ecanTable-${c.id} .ant-table-header`).scrollLeft=((fi=li==null?void 0:li.target)==null?void 0:fi.scrollLeft)||0})}}},0)})},0)});function Vn(Sr){Sr.addEventListener("click",_r=>{const Dr=Wn(_r.target).getAttribute("dix");if(Dr){const zr=document.querySelector(`#ecanTable-${c.id} #hiddenTableBody td[dix="${Dr}"]`);zr&&zr.click()}})}function Wn(Sr){return Sr.className.includes("ant-table-cell")?Sr:Wn(Sr.parentElement)}const Gn=vue.ref([]),Zn=vue.ref([]),Xn=vue.ref([]),er=vue.ref([]),Jn=vue.ref(0),ir=vue.ref(1),dr=vue.ref(c.paginationPageSize||10),or=vue.reactive([]),Hn=(Sr,_r)=>{let Ar="";return Sr.forEach((Dr,zr)=>{const{value:$r,rule:Pr}=Dr;Dr.conditions?Ar+=`(${Hn(Dr.conditions,Dr.join)})`:$r&&Pr&&(Ar+=`value ${Pr} '${$r}'`),Ar+=`${zr===Sr.length-1?"":_r?" "+_r+" ":""}`}),Ar},Kn=(Sr=[])=>{var _r,Ar;if(Array.isArray(Sr)&&Sr.length>0){let Dr=Sr.length;const zr=c.columnsFixedNum;if(c.dataType==="indicator"&&((_r=vue.unref(y))!=null&&_r.length)&&!vue.unref(y).find($r=>{var Pr;return(Pr=$r.children)==null?void 0:Pr.length})){const{graphicConfig:{indicators:$r=[]}}=c;Sr.forEach((Pr,Vr)=>{if(vue.unref(y)[Vr])for(const Xr in vue.unref(y)[Vr])["dataIndex","title"].includes(Xr)||(Pr[Xr]=vue.unref(y)[Vr][Xr]);const Kr=$r.find(Xr=>Xr.label===Pr.title),{showLabel:Yr=""}=Kr||{};Yr&&(Pr.title=Yr)})}for(let $r=Dr-1;$r>=0;$r--)(Ar=Sr[$r])!=null&&Ar.isHidden&&Sr.splice($r,1);Dr=Sr.length;for(let $r=0;$r<Dr;$r++){const Pr=Sr[$r];if($r<zr?Pr.fixed="left":Pr.fixed=!1,c.isSortByFront&&Pr.sorter){const hi=Pr.dataIndex;Pr.sorter=(mi,bi)=>mi[hi]-bi[hi]}const{cellAlign:Vr="center",cellColor:Kr,dataIndex:Yr,title:Xr,tableFilter:Jr,headerCellAlign:ti,headerCellColor:oi,overflow:li,conditions:fi}=Pr;Jr&&(or.push(Yr),Pr.filterOptionsInputValue="",Pr.filterCheckboxGroupValue=[],Pr.customFilterDropdown=!0,Pr.onFilter=(hi,mi)=>mi[Yr].toString().toLowerCase().includes(hi.toLowerCase())),fi&&(Pr.conditionCode=Hn(fi)),Pr.customHeaderCell=()=>({style:{display:"table-cell",verticalAlign:"middle",fontSize:c.headerFontSize,fontWeight:c.headerFontWeight,textAlign:ti||"center",color:oi||c.headerFontColor,borderBottomColor:c.borderColor,backgroundColor:c.headerBackgroundColor}}),Pr.customCell=(hi,mi,bi)=>({style:{textAlign:Vr,color:zn(bi)?c.linkTextColor:Kr||c.cellFontColor,backgroundColor:c.cellBackgroundColor,borderBottomColor:c.borderColor},class:{highlight:vue.unref(Rr)===mi&&c.clickHighlight,linkText:zn(bi)},dix:bi.dataIndex+"_"+mi,onClick:pr("click",()=>{const Pi=c.id,Mi=br(Pi);hi={dataIndex:Yr,title:Xr,...hi},wr(Pi,{...Mi,type:c.type,RECORD:hi}),Rr.value=mi,setTimeout(()=>{if(!c.linkPage&&!c.href)return;let Ii=!1;(zn(bi)||c.clickTarget!=="cell")&&(Ii=!0),Ii&&handleJumpLink(c,{pageMode:vue.unref(f),getRecordValueByKeyName:kr})},0)})}),li==="ellipsis"?Pr.ellipsis=!0:Pr.ellipsis=!1,Array.isArray(Pr.children)&&Kn(Pr.children)}}};function zn(Sr){let _r=!1;return c.clickTarget==="cell"&&c.clickTargetColumns.includes(Sr.dataIndex)&&(_r=!0),_r}const qn=(Sr=[])=>{var Ar;let _r=lodashEs.cloneDeep(Sr);return(Ar=vue.unref(er))!=null&&Ar.length&&(_r=lodashEs.cloneDeep(vue.unref(er))),c.isUseSeq&&_r.unshift({title:c.seqName,dataIndex:"SEQ",align:"center",width:c.seqWidth}),c.isUseAction&&_r.push({title:"操作",dataIndex:"ACTION",width:c.actionColumnWidth}),Kn(_r),_r};vue.watch(dr,()=>{ir.value=1,Nr(!1)}),vue.watch(b,Sr=>{x.value=!!Sr}),vue.watch(()=>[c.columns,c.isUseSeq,c.seqWidth,c.seqName,c.seqIcon,c.isUseAction,c.columnsFixedNum,c.actionColumnWidth,c.cellBackgroundColor,c.headerBackgroundColor,c.borderColor,c.stripedColor],()=>{Gn.value=qn(lodashEs.cloneDeep(c.columns))},{immediate:!0,deep:!0}),vue.watch(()=>[c.data,c.dataType],([Sr,_r])=>{_r==="static"&&(Zn.value=Sr)},{immediate:!0});const tr=vue.ref({}),Un=Sr=>{if(Array.isArray(Sr)){const _r=Sr.length,Ar=or,Dr=Ar.length,zr={};for(let Pr=0;Pr<_r;Pr++){const Vr=Sr[Pr];for(let Kr=0;Kr<Dr;Kr++){const Yr=Ar[Kr];if(zr[Yr])zr[Yr].add(Vr[Yr]);else{const Xr=new Set;Xr.add(Vr[Yr]),zr[Yr]=Xr}}}const $r={};for(const Pr in zr)if(Object.prototype.hasOwnProperty.call(zr,Pr)){const Vr=zr[Pr],Kr=Array.from(Vr);$r[Pr]=Kr.map(Yr=>({label:Yr,value:Yr}))}tr.value=$r}},nr=Sr=>{var _r,Ar;for(const Dr of Sr)typeof(Dr==null?void 0:Dr.width)=="object"&&((_r=Dr.width)!=null&&_r.value)&&((Ar=Dr.width)!=null&&Ar.suffix)&&(Dr.width=Dr.width.value+Dr.width.suffix)};vue.watch(()=>[c.isReverse,Gn.value,Zn.value],()=>{const Sr=vue.unref(Gn),_r=vue.unref(Zn);if(Un(_r),c.isReverse){const{columns:Ar,dataSource:Dr}=sr(lodashEs.cloneDeep(Sr),lodashEs.cloneDeep(_r));nr(Ar),Xn.value=Ar,J.value=Dr.map(zr=>({key:nanoid(6),...zr}))}else nr(Sr),Xn.value=Sr,J.value=_r.map(Ar=>({key:nanoid(6),...Ar}))},{immediate:!0});const sr=(Sr,_r)=>{const Ar=Sr[0],Dr=[{title:Ar.title,dataIndex:"col0",key:"col0",align:"center"}];for(let $r=0;$r<_r.length;$r++){const Pr=_r[$r],Vr="col"+($r+1);Dr.push({title:Pr[Ar.dataIndex],dataIndex:Vr,key:Vr,align:"center"})}const zr=[];for(let $r=1;$r<Sr.length;$r++){const Pr=Sr[$r],Vr={col0:Pr.title};for(let Kr=0;Kr<_r.length;Kr++){const Yr=_r[Kr];Vr[`col${Kr+1}`]=Yr[Pr.dataIndex]}zr.push(Vr)}return{columns:Dr,dataSource:zr}},Qn=vue.ref(""),ar=Sr=>{var Dr;const{rows:_r=[],total:Ar=0}=((Dr=Sr==null?void 0:Sr.data)==null?void 0:Dr.data)||{};if(Jn.value=Ar,Array.isArray(_r)&&(Zn.value=_r),window.config.routerBaseURL.includes("1523545080925487106")){const{requestParams:zr=[]}=c,$r=zr.find(Pr=>Pr.key==="dataSqlId");if(($r==null?void 0:$r.value)==="xt_jxzebg"){const Pr=_r.filter(Vr=>!Vr.绩效总额).map(Vr=>Vr.ORG_NAME);Pr!=null&&Pr.length&&vue.nextTick(()=>{antDesignVue.notification.warning({message:"提示",description:`当前时段${Pr.join("、")}绩效数据为空`,duration:3})})}}v.value=!0},cr=useRequestData(c),Yn=async(Sr=!0,_r={})=>{try{Sr&&(g.value=!0),vue.unref(Qn)&&(_r.orderCondition=vue.unref(Qn)),c.paginationShow&&(_r={pageNum:vue.unref(ir),pageSize:vue.unref(dr)||"10",layer:"1",..._r});const Ar=await cr(_r);ar(Ar)}catch(Ar){console.error(Ar)}finally{g.value=!1}},lr=({current:Sr},_r,Ar)=>{if(ir.value=Sr,Ar&&Object.keys(Ar).length>0){const{field:Dr,order:zr}=Ar,Pr={ascend:"asc",descend:"desc"}[zr];Dr!=null&&Pr!=null&&Pr?Qn.value=Dr+" "+Pr:Pr||(Qn.value="")}c.isSortByFront||Nr(!1)},hr=vue.computed(()=>{const Sr=c.simple,_r=[c.paginationPosition],Ar={};return c.isShowTotal&&(Ar.showTotal=Dr=>`共 ${Dr} 条数据`),c.paginationShow&&{simple:Sr,position:_r,total:vue.unref(Jn),current:vue.unref(ir),pageSize:vue.unref(dr)||"10",showSizeChanger:!1,size:"large",...Ar}}),mr=Sr=>+Sr==1?"是":+Sr==0?"否":Sr,ur=(Sr,_r)=>{const{format:Ar,retentiondigit:Dr,customFormatter:zr,defaultVal:$r}=_r;let Pr="";if(Ar==null||Ar==="")Pr=Sr;else{const Vr={money:formatMoney,percentage:formatPercentage,contrast:formatPercentage,boolean:mr,decimals:formatDecimals,custom:formatCustom};Vr[Ar]||(Pr=""),Ar==="decimals"?Pr=Vr[Ar](Sr,Dr)||"":Ar==="custom"?Pr=Vr[Ar](Sr,zr)||"":Pr=Vr[Ar](Sr)||""}return Pr||(Pr=$r),Pr},gr=Sr=>Sr==="contrast"?"upDown":"",fr=Sr=>{const{text:_r,format:Ar,declineColor:Dr="#39cf93",increaseColor:zr="#ff512e"}=Sr,$r={fontSize:c.fontSize};if(yi(Sr.dataIndex))return $r.display="flex",$r.justifyContent="center",$r.alignItems="center",$r;if(Ar==="contrast"){const Pr=parseFloat(_r+"");return Pr>=0?$r.color=zr:Pr<0&&($r.color=Dr),$r}else return{}},vr=vue.computed(()=>{const{fontSize:Sr}=c;return{width:Sr,height:Sr,textIndent:`-${parseFloat(Sr)*2}px`,overflow:"hidden"}}),xr=Sr=>{const{text:_r,declineColor:Ar="#39cf93",increaseColor:Dr="#ff512e"}=Sr,{fontSize:zr}=c,$r=parseFloat(_r+""),Pr={width:zr,verticalAlign:"unset"};return $r>=0?Pr.filter=`drop-shadow(${Dr||"#ff512e"} ${zr} -1px)`:$r<0&&(Pr.filter=`drop-shadow(${Ar||"#39cf93"} ${zr} -1px)`),Pr},Cr=Sr=>{const _r=parseFloat(Sr+"");if(_r>=0)return goUp;if(_r<0)return goDown},yr=(Sr,_r,Ar,Dr)=>{var Vr,Kr,Yr;const zr="#39cf93",$r="#ff512e",Pr=c.conditionList.find(Xr=>Xr.dataIndex===Sr.dataIndex);if((Vr=Pr==null?void 0:Pr.conditions)!=null&&Vr.length){const{fontSize:Xr}=c,Jr={style:{width:Xr,verticalAlign:"middle"},src:""};for(const ti of Pr.conditions){const oi=((Kr=ti==null?void 0:ti.property)==null?void 0:Kr.icon)||"";let li=((Yr=ti==null?void 0:ti.property)==null?void 0:Yr.iconColor)||"";if(oi){let fi=!1;if(ti.rule&&ti.value){const hi=`${ti.field} ${ti.rule} '${ti.value}'`;fi=pn(hi,{...Ar,value:_r})}else fi=!0;fi&&(oi==="increase"?Jr.src=topArrow:oi==="decline"&&(Jr.src=downArrow),li||(oi==="increase"?li=$r:oi==="decline"&&(li=zr)),Jr.style.filter=`drop-shadow(${li} ${Xr} -1px)`)}}if(Dr===1)return Jr.style;if(Dr===2)return Jr.src}else return""},pr=useEmitEvent(c),{getGlobalModel:br,setGlobalModel:wr,getRecordValueByKeyName:kr}=vue.inject(GLOBAL_MODEL,{getGlobalModel:Sr=>{},setGlobalModel:(Sr,_r)=>{},getRecordValueByKeyName:Sr=>{}});wr(c.id,{type:c.type,RECORD:""});const Er=(Sr=[],_r=[])=>{let Ar=Sr.map(Dr=>({title:Dr,dataIndex:Dr,key:Dr}));vue.unref(y).find(Dr=>{var zr;return(zr=Dr.children)==null?void 0:zr.length})&&(Ar=lodashEs.cloneDeep(vue.unref(y))),er.value=lodashEs.cloneDeep(Ar),Gn.value=qn(Ar),Zn.value=_r,v.value=!0},Ir=Sr=>{var _r,Ar,Dr,zr;Er((Ar=(_r=Sr==null?void 0:Sr.data)==null?void 0:_r.data)==null?void 0:Ar.columns,(zr=(Dr=Sr==null?void 0:Sr.data)==null?void 0:Dr.data)==null?void 0:zr.rows)},Mr=useIndicatorData(c,Ir),qr=async(Sr=!0)=>{try{Sr&&(g.value=!0);const _r=vue.unref(Qn).split(" "),Ar={};c.isSortByFront||(Ar.sort={order:_r[1],field:_r[0]});const Dr=await Mr(Ar);Ir(Dr)}catch(_r){console.error(_r)}finally{g.value=!1}},Rr=vue.ref(-1),{loadedData:Fr}=vue.inject(LOADED_DATA,{loadedData:{}}),jr=vue.ref(!1);vue.watch(Fr,Sr=>{if(c.dataType==="indicator"){const _r=getFixedValueDatas(c.graphicConfig);_r!=null&&_r.length&&(!vue.unref(jr)&&canRequestIndicator(c.graphicConfig,Sr)?(jr.value=!0,Nr()):canRequestIndicator(c.graphicConfig,Sr)||(jr.value=!1))}},{deep:!0});const Nr=async(Sr=!0)=>{switch(c.dataType){case"request":await Yn(Sr);break;case"indicator":canRequestIndicator(c.graphicConfig,vue.unref(Fr))&&await qr(Sr);break}},Ur=()=>{const Sr=c.id,_r=br(Sr);wr(Sr,{..._r,type:c.type,RECORD:""})},Qr=vue.computed(()=>{const Sr=vue.unref(Xn);let _r=0;const{subTotalColumn:Ar,subTotalName:Dr}=c;Ar&&(_r=Sr.findIndex(Kr=>Kr.dataIndex===Ar),_r<0&&(_r=0));const zr=[];let $r=0;for(let Kr=0;Kr<Sr.length;Kr++){const Yr=Sr[Kr],{isCalcTotal:Xr}=Yr;Kr===_r?zr.push({...Yr,total:Dr}):Xr?(zr.push({...Yr,index:Kr,total:0}),$r++):zr.push({...Yr})}if($r===0)return[];const Pr=vue.unref(J),Vr=Wr(zr);for(let Kr=0;Kr<Vr.length;Kr++){const Yr=Vr[Kr];let Xr=0;const{isCalcTotal:Jr,dataIndex:ti}=Yr;if(Jr===!0){for(let oi=0;oi<Pr.length;oi++){const fi=+Pr[oi][ti];isNaN(fi)||(Xr=new big_js.Big(Xr).add(fi).toNumber())}Yr.total=Xr}}return Vr});function Wr(Sr){var Ar;const _r=[];for(const Dr of Sr)(Ar=Dr.children)!=null&&Ar.length?_r.push(...Wr(Dr.children)):_r.push(Dr);return _r}const{setRequest:ri}=vue.inject(REQUEST_MODEL,{setRequest:Sr=>{}});typeof ri=="function"&&ri({id:c.id,requestFn:Nr,sortNum:c.requestSort}),u({refreshData:Nr});const ei=(Sr="",_r)=>hn(Sr,_r),Tr=Sr=>{if(Sr!=="event")return{self:"_self",blank:"_blank"}[Sr]},Br=(Sr,_r="")=>{Sr==="event"&&window.parent.postMessage({type:"openPage",url:_r},"*")},Lr=(Sr,_r)=>{Sr(_r.filterCheckboxGroupValue)},Hr=(Sr,_r)=>{Sr({confirm:!0}),_r.filterOptionsInputValue="",_r.filterCheckboxGroupValue=[]},Or=()=>{},Gr=Sr=>{const _r=Sr.dataIndex;if(typeof _r=="string"){let Ar=vue.unref(tr)[_r];const Dr=vue.unref(Sr.filterOptionsInputValue).trim();return Array.isArray(Ar)?(Ar=Ar.filter(zr=>typeof zr.label=="string"?zr.label.toLowerCase().includes(Dr.toLowerCase()):!0),Ar):[]}return[]},Zr=async()=>{var Yr,Xr;const Sr="EXPORT_KEY";antDesignVue.message.loading({key:Sr,content:"正在导出...",duration:0});let _r=[];if(c.dataType==="static")_r=c.data;else if(c.dataType==="request"){const Jr={layer:"1"};vue.unref(Qn)&&(Jr.orderCondition=vue.unref(Qn));const ti=await cr(Jr);_r=((Xr=(Yr=ti==null?void 0:ti.data)==null?void 0:Yr.data)==null?void 0:Xr.rows)||{}}const Ar=vue.unref(Xn),Dr=[],zr=[];Ar==null||Ar.forEach(Jr=>{Dr.push(Jr.dataIndex),zr.push(Jr.title)});const $r=_r.map(Jr=>lodashEs.pick(Jr,Dr)),Pr=xlsx.utils.book_new(),Vr=xlsx.utils.aoa_to_sheet([zr]),Kr=xlsx.utils.sheet_add_json(Vr,$r,{skipHeader:!0,origin:"A2"});xlsx.utils.book_append_sheet(Pr,Kr,"sheet"),xlsx.writeFile(Pr,"表格数据.xlsx"),antDesignVue.message.success({key:Sr,content:"导出成功"})},ni=(Sr,_r=2)=>{const Ar=+Sr*100;return isNaN(Ar)||Ar<=0?0:Ar>=100?100:Ar.toFixed(_r)};useOnEvent(c,{resetRecord:Ur,refreshData:Nr,exportTableData:Zr});const ci=(Sr,_r)=>{let Ar=null;return c.stripedShow&&(Ar=_r%2===1?"table-striped":null),Ar},ai=vue.computed(()=>{var Ar;let Sr=0;const{isTableFill:_r}=c;if(_r&&j.value){let Dr=0;c.paginationShow&&((Ar=vue.unref(J))!=null&&Ar.length)&&(Dr=w()),Sr=parseFloat(vue.unref(j))-Dr}return Sr?Sr+"px":"100%"}),vi=vue.computed(()=>{const Sr=vue.unref(h)==="darkBlue";let _r="";return c.isTableFill&&(_r=c.cellBackgroundColor,_r||(pi.value==="transparent"?Sr?_r="#071655":_r="transparent":Sr?_r=pi.value:_r="transparent")),_r}),ui=vue.computed(()=>{let Sr="#071655";return c.headerBackgroundColor&&(Sr="transparent"),Sr}),pi=vue.computed(()=>{let Sr="#071655";return(c.cellBackgroundColor||c.stripedShow&&c.stripedColor)&&(Sr="transparent"),Sr}),ki=vue.computed(()=>parseFloat(c.fontSize)+16),xi=vue.computed(()=>{let Sr="";const{paginationColor:_r,paginationBgColor:Ar,activePaginationColor:Dr,activePaginationBgColor:zr,hoverBackgroundColor:$r}=c;return _r&&(Sr+="p-color "),Ar&&(Sr+="p-bg-color "),Dr&&(Sr+="active-p-color "),zr&&(Sr+="active-p-bg-color "),$r&&(Sr+="hover-bg-color "),Sr}),Si=(Sr,_r)=>{if(yi(Sr.dataIndex))return!1;const{conditionCode:Ar}=Sr;return pn(Ar,{value:_r})},Ci=(Sr,_r,Ar)=>{var Kr,Yr;const{overflow:Dr,conditionCode:zr,attribute:$r,dataIndex:Pr}=Sr,Vr={};if(Dr==="ellipsis"&&(Vr.overflow="hidden",Vr.textOverflow="ellipsis"),zr&&($r!=null&&$r.color)&&Si(Sr,_r)&&(Vr.color=$r.color),$r!=null&&$r.icon&&(Sr==null?void 0:Sr.cellAlign)==="right"&&(Vr.display="flex",Vr.alignItems="center",Vr.justifyContent="flex-end"),yi(Pr)){const Xr=c.conditionList.find(Jr=>Jr.dataIndex===Pr);if((Kr=Xr==null?void 0:Xr.conditions)!=null&&Kr.length){for(const Jr of Xr.conditions)if((Yr=Jr==null?void 0:Jr.property)!=null&&Yr.color){let ti=!1;if(Jr.rule&&Jr.value){const oi=`${Jr.field} ${Jr.rule} '${Jr.value}'`;ti=pn(oi,{...Ar,value:_r})}else ti=!0;ti&&(Vr.color=Jr.property.color)}}else delete Vr.color}return Vr},si=Sr=>{const{attribute:_r}=Sr;let Ar="";return _r!=null&&_r.icon&&(Ar=useImagePath(_r.icon)),Ar},di=Sr=>{let _r={};return(Sr==null?void 0:Sr.cellAlign)==="right"?_r={marginRight:"5px"}:_r={position:"absolute",marginLeft:"5px"},{width:"auto",height:parseFloat(c.fontSize)+6+"px",..._r}},wi=(Sr,_r)=>Sr||Sr===0?Sr:_r==null?void 0:_r.defaultVal;function yi(Sr){var Ar;const _r=c.conditionList.find(Dr=>Dr.dataIndex===Sr);return!!((Ar=_r==null?void 0:_r.conditions)!=null&&Ar.length)}const Di=(Sr,_r,Ar)=>{var zr,$r;const Dr=c.conditionList.find(Pr=>Pr.dataIndex===Sr.dataIndex);if((zr=Dr==null?void 0:Dr.conditions)!=null&&zr.length){let Pr=_r;for(const Vr of Dr.conditions){const Kr=(($r=Vr==null?void 0:Vr.property)==null?void 0:$r.formatText)||"";if(Kr){let Yr=!1;if(Vr.rule&&Vr.value){const Xr=`${Vr.field} ${Vr.rule} '${Vr.value}'`;Yr=pn(Xr,{...Ar,value:_r})}else Yr=!0;Yr&&(Pr=hn(Kr,{textData:{...Ar,value:_r}}))}}return Pr}else return""};return setTimeout(()=>{var Sr,_r,Ar,Dr,zr,$r,Pr,Vr;(_r=(Sr=vue.unref(Pn))==null?void 0:Sr.style)==null||_r.setProperty("--pagination-color",c.paginationColor),(Dr=(Ar=vue.unref(Pn))==null?void 0:Ar.style)==null||Dr.setProperty("--pagination-bg-color",c.paginationBgColor),($r=(zr=vue.unref(Pn))==null?void 0:zr.style)==null||$r.setProperty("--active-pagination-color",c.activePaginationColor),(Vr=(Pr=vue.unref(Pn))==null?void 0:Pr.style)==null||Vr.setProperty("--active-pagination-bg-color",c.activePaginationBgColor)},0),{x:Fn,y:Bn,style:vn,pagination:hr,formatFn:ur,contrastClass:gr,tableChange:lr,summaryList:Qr,loading:g,onTouchHrefEvent:Br,handleHref:ei,handleHrefTarget:Tr,useRowIndex:Rr,tableColumns:Xn,tableDataSource:J,useFilterOptions:Gr,useSetSelectedKeys:Lr,onResetFilter:Hr,onSearchFilterOptions:Or,exportTableData:Zr,handleProgressText:ni,pageSizeVisible:x,pageSize:dr,tableRef:b,tableWrapRef:Pn,rowClassName:ci,tableHeight:ai,tableBgColor:vi,tableHeaderBgColor:ui,tableBodyBgColor:pi,getChgStyle:fr,chgBoxStyle:vr,getChgBoxImgStyle:xr,getChgBoxImgSrc:Cr,seqIcon1,seqIcon2,seqIcon3,iconSize:ki,containerClass:xi,getCellStyle:Ci,isMatchCondition:Si,getAttrImgSrc:si,getAttrImgStyle:di,getCellText:wi,autoScrollHeight:gn,autoScrollClass:re,autoScrollTop:Rn,isScroll:p,scrollWrapStyle:m,isLinkStyle:zn,hasConditionConfig:yi,formatTextByConditions:Di,getChgByCondition:yr}}}),__injectCSSVars__=()=>{vue.useCssVars(c=>({"48fedd10":c.stripedColor,c4c5410a:c.bodyRowHeight,"1f0ab0fd":c.headRowHeight,"12abb7c7":c.tableHeaderBgColor,"33a016dc":c.tableBodyBgColor,"3b8d2f1d":c.hoverBackgroundColor}))},__setup__=__default__.setup;__default__.setup=__setup__?(c,u)=>(__injectCSSVars__(),__setup__(c,u)):__injectCSSVars__;const Table_vue_vue_type_style_index_0_scoped_d6d74805_lang="",Table_vue_vue_type_style_index_1_lang="",_withScopeId=c=>(vue.pushScopeId("data-v-d6d74805"),c=c(),vue.popScopeId(),c),_hoisted_1$1=["id"],_hoisted_2$1={key:0,class:"table-tool"},_hoisted_3=vue.createTextVNode("导出数据"),_hoisted_4={key:0,style:{float:"left","margin-right":"5px"}},_hoisted_5={key:1,style:{float:"left","margin-right":"5px",visibility:"hidden"}},_hoisted_6=vue.createTextVNode(" 搜索 "),_hoisted_7=vue.createTextVNode(" 重置 "),_hoisted_8=["src","width","height"],_hoisted_9=["src","width","height"],_hoisted_10=["src","width","height"],_hoisted_11={key:1},_hoisted_12={key:1,class:"action-list"},_hoisted_13=["href","target","onClick"],_hoisted_14={key:2,class:"progress-cell"},_hoisted_15=["src"],_hoisted_16=["title"],_hoisted_17=["title"],_hoisted_18=["src"],_hoisted_19=["src"],_hoisted_20=["title"],_hoisted_21=["src"],_hoisted_22=["src"],_hoisted_23={class:"ant-pagination-options-quick-jumper"},_hoisted_24=_withScopeId(()=>vue.createElementVNode("span",null,"条 / 页",-1));function _sfc_render$5(c,u,f,d,h,v){const p=vue.resolveComponent("a-button"),m=vue.resolveComponent("down-outlined"),g=vue.resolveComponent("right-outlined"),y=vue.resolveComponent("a-input"),b=vue.resolveComponent("a-checkbox-group"),Pn=vue.resolveComponent("a-table-summary-cell"),x=vue.resolveComponent("a-table-summary-row"),vn=vue.resolveComponent("a-table-summary"),J=vue.resolveComponent("a-table"),j=vue.resolveComponent("marquee-scroll"),Fn=vue.resolveComponent("skeleton");return vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(["ecan-table",c.containerClass]),ref:"tableWrapRef",id:"ecanTable-"+c.id,style:vue.normalizeStyle(c.style)},[vue.createVNode(Fn,{loading:c.loading},{default:vue.withCtx(()=>{var Bn;return[c.isUseExport?(vue.openBlock(),vue.createElementBlock("div",_hoisted_2$1,[vue.createVNode(p,{class:"export-button",onClick:c.exportTableData},{default:vue.withCtx(()=>[_hoisted_3]),_:1},8,["onClick"])])):vue.createCommentVNode("",!0),vue.createVNode(J,{ref:"tableRef",class:"table",style:vue.normalizeStyle({height:c.tableHeight,backgroundColor:c.tableBgColor}),columns:c.tableColumns,"data-source":c.tableDataSource,bordered:c.bordered,scroll:c.y?{x:c.x,y:c.y}:{x:c.x},pagination:c.isAutoScroll?!1:c.pagination,"row-class-name":c.rowClassName,"show-header":!c.hideTableHeader,indentSize:30,onChange:c.tableChange},{expandIcon:vue.withCtx(w=>{var gn;return[(gn=w.record.children)!=null&&gn.length?(vue.openBlock(),vue.createElementBlock("span",_hoisted_4,[w.expanded?(vue.openBlock(),vue.createBlock(m,{key:0,onClick:re=>w.onExpand(w.record,re)},null,8,["onClick"])):(vue.openBlock(),vue.createBlock(g,{key:1,onClick:re=>w.onExpand(w.record,re)},null,8,["onClick"]))])):(vue.openBlock(),vue.createElementBlock("span",_hoisted_5,[vue.createVNode(m)]))]}),customFilterDropdown:vue.withCtx(({column:w,setSelectedKeys:gn,confirm:re,clearFilters:Rn})=>[vue.createElementVNode("div",{class:"ecan-table-filter",style:vue.normalizeStyle({height:c.filterDropdownHeight})},[vue.createVNode(y,{value:w.filterOptionsInputValue,"onUpdate:value":Vn=>w.filterOptionsInputValue=Vn,placeholder:"请输入关键字",class:"filter-input",onChange:c.onSearchFilterOptions},null,8,["value","onUpdate:value","onChange"]),vue.createVNode(b,{value:w.filterCheckboxGroupValue,"onUpdate:value":Vn=>w.filterCheckboxGroupValue=Vn,class:"filter-checkbox",options:c.useFilterOptions(w),onChange:Vn=>c.useSetSelectedKeys(gn,w)},null,8,["value","onUpdate:value","options","onChange"]),vue.createElementVNode("div",null,[vue.createVNode(p,{type:"primary",size:"small",style:{width:"90px","margin-right":"8px"},onClick:()=>re()},{default:vue.withCtx(()=>[_hoisted_6]),_:2},1032,["onClick"]),vue.createVNode(p,{size:"small",style:{width:"90px"},onClick:vue.withModifiers(Vn=>c.onResetFilter(Rn,w),["stop"])},{default:vue.withCtx(()=>[_hoisted_7]),_:2},1032,["onClick"])])],4)]),bodyCell:vue.withCtx(({column:w,index:gn,text:re,record:Rn})=>{var Vn,Wn,Gn,Zn,Xn,er;return[w.dataIndex==="SEQ"?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[c.seqIcon?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[gn===0?(vue.openBlock(),vue.createElementBlock("img",{key:0,class:"seq-icon",src:c.seqIcon1,width:c.iconSize,height:c.iconSize},null,8,_hoisted_8)):gn===1?(vue.openBlock(),vue.createElementBlock("img",{key:1,class:"seq-icon",src:c.seqIcon2,width:c.iconSize,height:c.iconSize},null,8,_hoisted_9)):gn>=2?(vue.openBlock(),vue.createElementBlock("img",{key:2,class:"seq-icon",src:c.seqIcon3,width:c.iconSize,height:c.iconSize},null,8,_hoisted_10)):vue.createCommentVNode("",!0),vue.createElementVNode("span",{class:"seq-icon seq-text",style:vue.normalizeStyle({fontSize:c.fontSize})},vue.toDisplayString(gn+1),5)],64)):(vue.openBlock(),vue.createElementBlock("span",_hoisted_11,vue.toDisplayString(gn+1),1))],64)):w.dataIndex==="ACTION"?(vue.openBlock(),vue.createElementBlock("div",_hoisted_12,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(c.actionList,(Jn,ir)=>(vue.openBlock(),vue.createElementBlock("div",{class:"action",key:ir},[vue.createElementVNode("a",{href:c.handleHref(Jn.href,Rn),target:c.handleHrefTarget(Jn.target),style:vue.normalizeStyle({color:Jn.color,fontSize:c.fontSize,fontWeight:c.fontWeight}),onClick:dr=>c.onTouchHrefEvent(Jn.target,c.handleHref(Jn.href,Rn))},vue.toDisplayString(Jn.title),13,_hoisted_13)]))),128))])):w.format==="progress"?(vue.openBlock(),vue.createElementBlock("div",_hoisted_14,[vue.createElementVNode("div",{class:"progress",style:vue.normalizeStyle({background:w.progressColor||"#1890ff",height:w.progressWidth||"18px",width:`${c.handleProgressText(re,w.progressTextDecimalPlaces)}%`})},null,4),vue.createElementVNode("div",{class:"progress-text",style:vue.normalizeStyle({color:+c.handleProgressText(re)<100?w.progressTextColor||"#333":w.progressFinishedTextColor||"#fff"})},vue.toDisplayString(c.handleProgressText(re,w.progressTextDecimalPlaces))+"% ",5)])):(vue.openBlock(),vue.createElementBlock("div",{key:3,style:vue.normalizeStyle({fontSize:c.fontSize,fontWeight:c.isLinkStyle(w)?"bold":c.fontWeight,...c.getCellStyle(w,re,Rn)})},[c.isMatchCondition(w,re)&&(w==null?void 0:w.cellAlign)==="right"&&((Vn=w==null?void 0:w.attribute)!=null&&Vn.icon)?(vue.openBlock(),vue.createElementBlock("img",{key:0,style:vue.normalizeStyle(c.getAttrImgStyle(w)),src:c.getAttrImgSrc(w)},null,12,_hoisted_15)):vue.createCommentVNode("",!0),!c.hasConditionConfig(w.dataIndex)&&w.format==="contrast"?(vue.openBlock(),vue.createElementBlock("span",{key:1,title:((Wn=w==null?void 0:w.customFormatter)==null?void 0:Wn.split("{value}")[0])||""},vue.toDisplayString(((Gn=w==null?void 0:w.customFormatter)==null?void 0:Gn.split("{value}")[0])||""),9,_hoisted_16)):vue.createCommentVNode("",!0),vue.createElementVNode("span",{class:vue.normalizeClass([c.contrastClass(w.format)]),style:vue.normalizeStyle(c.getChgStyle({...w,text:re})),title:c.hasConditionConfig(w.dataIndex)?c.formatTextByConditions(w,re,Rn):w.format!=null?c.formatFn(re,w):re},[!c.hasConditionConfig(w.dataIndex)&&w.format==="contrast"?(vue.openBlock(),vue.createElementBlock("div",{key:0,style:vue.normalizeStyle(c.chgBoxStyle)},[vue.createElementVNode("img",{style:vue.normalizeStyle(c.getChgBoxImgStyle({...w,text:re})),src:c.getChgBoxImgSrc(re)},null,12,_hoisted_18)],4)):vue.createCommentVNode("",!0),vue.createTextVNode(" "+vue.toDisplayString(c.hasConditionConfig(w.dataIndex)?c.formatTextByConditions(w,re,Rn):w.format!=null?c.formatFn(re,w):c.getCellText(re,w))+" ",1),c.hasConditionConfig(w.dataIndex)&&c.getChgByCondition(w,re,Rn,2)?(vue.openBlock(),vue.createElementBlock("div",{key:1,style:vue.normalizeStyle({...c.chgBoxStyle,height:"auto",scale:.6})},[vue.createElementVNode("img",{style:vue.normalizeStyle(c.getChgByCondition(w,re,Rn,1)),src:c.getChgByCondition(w,re,Rn,2)},null,12,_hoisted_19)],4)):vue.createCommentVNode("",!0)],14,_hoisted_17),!c.hasConditionConfig(w.dataIndex)&&w.format==="contrast"?(vue.openBlock(),vue.createElementBlock("span",{key:2,title:((Zn=w==null?void 0:w.customFormatter)==null?void 0:Zn.split("{value}")[1])||""},vue.toDisplayString(((Xn=w==null?void 0:w.customFormatter)==null?void 0:Xn.split("{value}")[1])||""),9,_hoisted_20)):vue.createCommentVNode("",!0),c.isMatchCondition(w,re)&&(w==null?void 0:w.cellAlign)!=="right"&&((er=w==null?void 0:w.attribute)!=null&&er.icon)?(vue.openBlock(),vue.createElementBlock("img",{key:3,style:vue.normalizeStyle(c.getAttrImgStyle(w)),src:c.getAttrImgSrc(w)},null,12,_hoisted_21)):vue.createCommentVNode("",!0)],4))]}),summary:vue.withCtx(()=>[c.summaryList.length>0?(vue.openBlock(),vue.createBlock(vn,{key:0,fixed:c.isSummaryFixed},{default:vue.withCtx(()=>[vue.createVNode(x,null,{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(c.summaryList,(w,gn)=>(vue.openBlock(),vue.createBlock(Pn,{key:gn,index:gn,style:vue.normalizeStyle({backgroundColor:c.cellBackgroundColor,textAlign:w.cellAlign||"center",color:c.cellFontColor,borderBottomColor:c.borderColor})},{default:vue.withCtx(()=>[vue.createElementVNode("span",{class:vue.normalizeClass([c.contrastClass(w.format)]),style:vue.normalizeStyle({...c.getChgStyle({...w,text:w.total}),fontSize:c.fontSize,fontWeight:c.fontWeight})},[w.format==="contrast"?(vue.openBlock(),vue.createElementBlock("div",{key:0,style:vue.normalizeStyle(c.chgBoxStyle)},[vue.createElementVNode("img",{style:vue.normalizeStyle(c.getChgBoxImgStyle({...w,text:w.total})),src:c.getChgBoxImgSrc(w.total)},null,12,_hoisted_22)],4)):vue.createCommentVNode("",!0),vue.createTextVNode(" "+vue.toDisplayString((w.format!=null||w.format!=="")&&c.formatFn(w.total,w)),1)],6)]),_:2},1032,["index","style"]))),128))]),_:1})]),_:1},8,["fixed"])):vue.createCommentVNode("",!0)]),_:1},8,["style","columns","data-source","bordered","scroll","pagination","row-class-name","show-header","onChange"]),c.paginationShow?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:1},[(Bn=c.tableDataSource)!=null&&Bn.length&&!c.simple&&c.pageSizeShow&&c.pageSizeVisible?(vue.openBlock(),vue.createBlock(vue.Teleport,{key:0,to:"#ecanTable-"+c.id+" .ant-pagination"},[vue.createElementVNode("div",_hoisted_23,[vue.withDirectives(vue.createElementVNode("input",{type:"text","onUpdate:modelValue":u[0]||(u[0]=w=>c.pageSize=w)},null,512),[[vue.vModelText,c.pageSize]]),_hoisted_24])],8,["to"])):vue.createCommentVNode("",!0)],64)):vue.createCommentVNode("",!0),c.isAutoScroll?(vue.openBlock(),vue.createElementBlock("div",{key:2,class:vue.normalizeClass(["auto-scroll-content ant-table-wrapper table",c.autoScrollClass]),style:vue.normalizeStyle({width:"100%",position:"absolute",left:"0",height:c.autoScrollHeight+"px",top:c.autoScrollTop+"px",overflow:"auto"})},[vue.createVNode(j,{visible:c.isScroll,step:c.scrollSpeed,wrapStyle:{display:"flex",flexDirection:"column",flexWrap:"wrap"}},{default:vue.withCtx(()=>[vue.createElementVNode("div",{class:"scroll-wrap",style:vue.normalizeStyle(c.scrollWrapStyle)},null,4)]),_:1},8,["visible","step"])],6)):vue.createCommentVNode("",!0)]}),_:1},8,["loading"]),vue.renderSlot(c.$slots,"toolbox",{},void 0,!0)],14,_hoisted_1$1)}const Table=_export_sfc$1(__default__,[["render",_sfc_render$5],["__scopeId","data-v-d6d74805"]]),EcanTable=withInstall$1(Table),mapProps={...props$1,mapJson:null,data:[],name:"地图",keyName:"地图",type:"ecanMap",width:"400px",height:"400px",backgroundImage:"",backgroundImageRepeat:"no-repeat",geoBackgroundImage:"",geoBackgroundImageRepeat:"no-repeat",symbolImage:"",symbolWidth:10,symbolHeight:10,itemStyleColor:"#11BFDA",labelFontSize:14,labelShow:!0,geoLabelShow:!0,geoLabelColor:"#000",geoZoom:1,geoRoam:!1,geoCenter:"",geoLabelFontSize:12,labelColor:"",labelFormatter:"{b}",geoItemStyleAreaColor:"#eee",geoItemStyleBorderColor:"#000",geoItemStyleBorderWidth:1,geoItemStyleShadowColor:"",geoItemStyleShadowOffsetX:0,geoItemStyleShadowOffsetY:0,geoItemStyleShadowBlur:0,geoEmphasisDisabled:!1,geoEmphasisLabelColor:"#fff",geoEmphasisItemStyleAreaColor:"#f00",geoEmphasisItemStyleBorderColor:"#000",tooltipShow:!0,tooltipTextStyleColor:"",tooltipFormatter:"{name}:{value}",tooltipRequestData:{requestUrl:"",requestMethod:"get",requestParams:[]},tooltipBackgroundColor:"#fff",areaStyleKeyName:"",mapAreaStyleConfig:[],legendShow:!1,legendTextStyleColor:"#333",legendOrient:"horizontal",legendTop:"bottom",legendLeft:"right",mapLegendType:"circle",legendTextShow:!0,legendTitle:"",legendTitleColor:"#333",legendTitleFontSize:"16px",legendFrontText:"",legendAfterText:"",legendBoxShadow:""},mapComponentProps=transformToComponentProps(mapProps),mapEvents=["refreshData","click"];core$1.use([renderers.CanvasRenderer,charts.MapChart,charts.ScatterChart,components$1.VisualMapComponent,components$1.TooltipComponent,components$1.GraphicComponent]);const _sfc_main$4=vue.defineComponent({name:"EcanMap",components:{Echarts},props:{...mapComponentProps},setup(c){const u=useRequestData({...c.tooltipRequestData,requestHeaders:{}}),f=vue.ref(),d=vue.ref(""),h=vue.ref(""),v=usePickComponentStyle(c,["backgroundImage"]),p=vue.ref(),m=vue.computed(()=>useImagePath(c.geoBackgroundImage)),g=vue.computed(()=>useImagePath(c.backgroundImage)),y=vue.ref([]),b=vue.computed(()=>c.geoBackgroundImage?{image:vue.unref(p),repeat:c.geoBackgroundImageRepeat}:c.geoItemStyleAreaColor),Pn=vue.computed(()=>{const Qn=c.symbolImage;return c.symbolImage?"image://"+useImagePath(Qn):"circle"}),x=Qn=>{let ar=c.tooltipFormatter;const cr=ar.match(/\{(.+?)\}/g);if(cr==null||cr.length===0)return ar;for(let Yn=0;Yn<cr.length;Yn++){const lr=cr[Yn];let hr=lr.slice(1,-1).trim();const mr=/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,ur=hr.match(mr);for(let gr=0;gr<ur.length;gr++){const fr=ur[gr],vr=Qn[fr];vr!=null&&(hr=hr.replace(fr,vr))}ar=ar.replace(lr,hr)}return ar.split(`
182
- `)},vn=vue.ref(!1),J=vue.ref("");let j=new AbortController;const Fn=(Qn,ar)=>{const cr=j.signal;vn.value=!0,d.value=Qn,u({name:Qn,signal:cr}).then(Yn=>{var lr,hr;if(Yn){const mr=((hr=(lr=Yn==null?void 0:Yn.data)==null?void 0:lr.data)==null?void 0:hr.rows)||[];let ur="";for(const gr of mr){const fr=x(gr)||[];if(fr!=null&&fr.length)for(const vr of fr)ur+=`<div style="word-break: break-all;white-space: normal;">${vr}</div>`}ur=`<div style="max-width:200px;">${ur}</div>`,h.value=ur,ar(vue.unref(J),ur)}else cr.aborted?h.value="Loading":h.value=Qn,ar(vue.unref(J),h.value);vn.value=!1})},Bn=vue.ref(),w=vue.computed(()=>c.dataType==="request"?Bn.value:c.data),gn=vue.computed(()=>{const Qn=[],{mapAreaStyleConfig:ar}=c;if(ar!=null&&ar.length)for(const cr of ar)Qn.push({...cr,key:nanoid(6)});return Qn}),re=vue.computed(()=>{const Qn=[];for(const ar of vue.unref(gn)){let cr="";ar.value1&&(cr+=`value ${ar.rule1} ${ar.value1}`),ar.value2&&(cr+=`${ar.value1?"&&":""} value ${ar.rule2} ${ar.value2}`),cr&&Qn.push({rule:cr,color:ar.color,key:ar.key})}return Qn.reverse()}),Rn=vue.computed(()=>{var cr;const Qn=[],{areaStyleKeyName:ar}=c;if((cr=vue.unref(w))!=null&&cr.length)for(const Yn of vue.unref(w)){const lr=Yn[ar];if(lr||lr===0){const hr=vue.unref(re).find(mr=>pn(mr.rule,{value:lr}));hr&&Qn.push({name:Yn.name,itemStyle:{areaColor:vue.unref(y).includes(hr.key)?c.geoItemStyleAreaColor:hr.color}})}}return Qn}),Vn=vue.computed(()=>{const Qn=c.geoCenter;let ar;return typeof Qn=="string"&&Qn!==""&&(ar=Qn.split(",")),{tooltip:{show:!0},graphic:[{type:"image",style:{width:parseFloat(c.width),height:parseFloat(c.height),image:vue.unref(g)},top:"center"}],geo:{zoom:c.geoZoom,roam:c.geoRoam,center:ar,map:`map-${c.id}`,selectedMode:"single",tooltip:{show:c.tooltipShow,trigger:"item",backgroundColor:c.tooltipBackgroundColor,borderColor:"transparent",textStyle:{color:c.tooltipTextStyleColor},formatter:(cr,Yn,lr)=>{J.value=Yn;const{name:hr=""}=cr,{requestUrl:mr}=c.tooltipRequestData;if(!mr){let ur="",gr=c.tooltipFormatter;gr===""&&(gr="{name}:{value}");const fr=vue.unref(w).find(vr=>vr.name===hr);return fr?(ur+=hn(gr,{textData:{name:hr,...fr}},{useNewline:!0,useSpace:!0}),ur):hr}if(vue.unref(vn))vue.unref(d)!==hr&&(j.abort(),j=new AbortController);else{if(vue.unref(d)===hr)return vue.unref(h);Fn(hr,lr)}return"Loading"}},label:{show:c.geoLabelShow,color:c.geoLabelColor,fontSize:c.geoLabelFontSize},itemStyle:{areaColor:vue.unref(b),borderColor:c.geoItemStyleBorderColor,borderWidth:c.geoItemStyleBorderWidth,shadowColor:c.geoItemStyleShadowColor,shadowBlur:c.geoItemStyleShadowBlur,shadowOffsetX:c.geoItemStyleShadowOffsetX,shadowOffsetY:c.geoItemStyleShadowOffsetY},emphasis:{disabled:c.geoEmphasisDisabled,label:{color:c.geoEmphasisLabelColor},itemStyle:{areaColor:c.geoEmphasisItemStyleAreaColor,borderColor:c.geoEmphasisItemStyleBorderColor}},regions:Rn.value},series:[{type:"scatter",coordinateSystem:"geo",itemStyle:{color:c.itemStyleColor},symbol:vue.unref(Pn),symbolSize:[c.symbolWidth,c.symbolHeight],label:{show:c.labelShow,fontSize:c.labelFontSize,formatter:c.labelFormatter,color:c.labelColor},tooltip:{show:c.tooltipShow,textStyle:{color:c.tooltipTextStyleColor}},data:w.value}]}}),Wn=vue.ref(!1),Gn=async()=>{var cr;Wn.value=!1;const Qn=c.mapJson,ar=`map-${c.id}`;if(Qn!=null&&Qn.path){const Yn=await request(((cr=window==null?void 0:window.config)==null?void 0:cr.uploadPath)+Qn.path);core$1.registerMap(ar,(Yn==null?void 0:Yn.data)||{})}else core$1.registerMap(ar,{});Wn.value=!0};vue.watch(()=>c.mapJson,()=>{Gn()},{immediate:!0,deep:!0});const Zn=async Qn=>{var Yn,lr,hr,mr;const ar=(lr=(Yn=Qn==null?void 0:Qn.data)==null?void 0:Yn.data)==null?void 0:lr.rows,cr=`map-${c.id}`;if(ar!=null&&ar.path){const ur=await request(ar.path);core$1.registerMap(cr,(ur==null?void 0:ur.data)||{})}else if(Array.isArray(ar))if(Bn.value=ar,(hr=ar[0])!=null&&hr.mapUrl){const ur=await request((mr=ar[0])==null?void 0:mr.mapUrl);core$1.registerMap(cr,(ur==null?void 0:ur.data)||{})}else core$1.registerMap(cr,{});else core$1.registerMap(cr,{});vue.nextTick(()=>{Wn.value=!0})},Xn=useRequestData(c),er=async()=>{if(c.dataType==="request"){Wn.value=!1;try{const Qn=await Xn();Zn(Qn)}catch(Qn){console.error(Qn),Wn.value=!0}}},Jn=async()=>{const Qn=ir(c.id);switch(dr(c.id,{...Qn,RECORD:{}}),c.dataType){case"static":Gn();break;case"request":await er();break}},{getGlobalModel:ir,setGlobalModel:dr}=vue.inject(GLOBAL_MODEL,{getGlobalModel:Qn=>{},setGlobalModel:(Qn,ar)=>{}}),Hn=useEmitEvent(c)("click",()=>{var ar,cr;const Qn=ir(c.id);((ar=Qn==null?void 0:Qn.RECORD)==null?void 0:ar.name)===((cr=vue.unref(f))==null?void 0:cr.name)?dr(c.id,{...Qn,RECORD:{}}):dr(c.id,{...Qn,RECORD:vue.unref(f)})});useOnEvent(c,{refreshData:Jn});const{setRequest:Kn}=vue.inject(REQUEST_MODEL,{setRequest:Qn=>{}});typeof Kn=="function"&&Kn({id:c.id,requestFn:Jn,sortNum:c.requestSort});const zn=()=>{vue.unref(f)&&Hn()},qn=(Qn={})=>{Qn.componentType==="geo"&&Qn.region?f.value=Qn.region:f.value=null},tr=vue.computed(()=>{const Qn={},{legendTop:ar,legendLeft:cr,legendBoxShadow:Yn}=c;return Yn&&(Qn.boxShadow=Yn),ar==="bottom"?Qn.bottom=0:ar==="top"&&(Qn.top=0),cr==="left"?Qn.left=0:cr==="right"&&(Qn.right=0),Qn}),Un=vue.computed(()=>{const Qn={};return c.legendOrient==="vertical"&&(Qn.flexDirection="column"),Qn}),nr=vue.computed(()=>{var Qn;if((Qn=vue.unref(gn))!=null&&Qn.length){const ar=[];for(const cr of vue.unref(gn)){const{value1:Yn,value2:lr,rule1:hr,rule2:mr,color:ur}=cr;Yn&&lr?+Yn<+lr?hr.includes(">")&&mr.includes("<")&&ar.push({text:`${Yn} - ${lr}`,color:ur,key:cr.key}):+Yn>+lr?hr.includes("<")&&mr.includes(">")&&ar.push({text:`${lr} - ${Yn}`,color:ur,key:cr.key}):+Yn==+lr&&ar.push({text:`${Yn} - ${lr}`,color:ur,key:cr.key}):Yn?ar.push({text:`${hr} ${Yn}`,color:ur,key:cr.key}):lr&&ar.push({text:`${mr} ${lr}`,color:ur,key:cr.key})}return ar}else return[]});return{option:Vn,style:v,isLoadedData:Wn,geoBackgroundImageRef:p,myGeoBackgroundImage:m,mapLegendStyle:tr,legendContainerStyle:Un,mapLegendList:nr,hiddenLegendKey:y,customClick:zn,onMouseOver:qn,handleToggleVisible:Qn=>{const ar=vue.unref(y).findIndex(cr=>cr===Qn);ar>=0?y.value.splice(ar,1):y.value.push(Qn)}}}}),Map_vue_vue_type_style_index_0_scoped_795834b9_lang="",_hoisted_1=["src"],_hoisted_2=["title","onClick"];function _sfc_render$4(c,u,f,d,h,v){const p=vue.resolveComponent("echarts");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-map",style:vue.normalizeStyle(c.style)},[c.isLoadedData?(vue.openBlock(),vue.createBlock(p,{key:0,option:c.option,"update-options":{notMerge:!0},autoresize:"","onZr:click":c.customClick,onMouseover:c.onMouseOver},null,8,["option","onZr:click","onMouseover"])):vue.createCommentVNode("",!0),vue.withDirectives(vue.createElementVNode("img",{ref:"geoBackgroundImageRef",src:c.myGeoBackgroundImage},null,8,_hoisted_1),[[vue.vShow,!1]]),c.legendShow?(vue.openBlock(),vue.createElementBlock("div",{key:1,class:"map-legend",style:vue.normalizeStyle(c.mapLegendStyle)},[vue.createElementVNode("div",{class:"legend-title",style:vue.normalizeStyle({color:c.legendTitleColor,fontSize:c.legendTitleFontSize})},vue.toDisplayString(c.legendTitle),5),vue.createElementVNode("div",{class:"legend-container",style:vue.normalizeStyle(c.legendContainerStyle)},[vue.createElementVNode("div",{style:vue.normalizeStyle({color:c.legendTextStyleColor,marginRight:c.legendOrient==="horizontal"?"5px":"",marginBottom:c.legendOrient==="vertical"?"5px":""})},vue.toDisplayString(c.legendFrontText),5),(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(c.mapLegendList,(m,g)=>(vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(["legend-item",{hidden:c.hiddenLegendKey.includes(m.key)}]),style:vue.normalizeStyle({marginRight:c.legendOrient==="horizontal"?"10px":"",marginLeft:c.legendOrient==="horizontal"?"10px":"",marginBottom:c.legendOrient==="vertical"?"10px":"",marginTop:c.legendOrient==="vertical"?"10px":""}),key:g,title:c.legendTextShow?"":m.text,onClick:y=>c.handleToggleVisible(m.key)},[vue.createElementVNode("div",{class:"color-block",style:vue.normalizeStyle({backgroundColor:m.color,width:"20px",height:c.mapLegendType==="rect"?"16px":"20px",borderRadius:c.mapLegendType==="circle"?"50%":"4px"})},null,4),c.legendTextShow?(vue.openBlock(),vue.createElementBlock("span",{key:0,class:"legend-item-text",style:vue.normalizeStyle({color:c.legendTextStyleColor,marginLeft:"10px"})},vue.toDisplayString(m.text),5)):vue.createCommentVNode("",!0)],14,_hoisted_2))),128)),vue.createElementVNode("div",{style:vue.normalizeStyle({color:c.legendTextStyleColor,marginLeft:c.legendOrient==="horizontal"?"5px":"",marginTop:c.legendOrient==="vertical"?"5px":""})},vue.toDisplayString(c.legendAfterText),5)],4)],4)):vue.createCommentVNode("",!0)],4)}const Map$1=_export_sfc$1(_sfc_main$4,[["render",_sfc_render$4],["__scopeId","data-v-795834b9"]]),EcanMap=withInstall$1(Map$1),dataSelectProps={...props$1,name:"下拉框选择器-数据",keyName:"下拉框选择器-数据",width:"120px",height:"33px",type:"ecanDataSelect",mode:void 0,data:[{label:"选项一",value:"1"},{label:"选项二",value:"2"},{label:"选项三",value:"3"}],value:void 0,dataFieldNames:{label:"label",value:"value",options:""},maxTagCount:3,autoClearSearchValue:!0,placeholder:"请选择",selectFirstOption:!1,graphicConfig:{},valueType:"value",isAllowClear:!0,optionFontSize:"14px"},dataSelectComponentProps=transformToComponentProps(dataSelectProps),dataSelectEvents=["selectChange","refreshData"],_sfc_main$3=vue.defineComponent({name:"EcanDataSelect",components:{ASelect:antDesignVue.Select,ASelectOption:antDesignVue.SelectOption},props:{...dataSelectComponentProps},setup(c,{expose:u}){var dr;const f=usePickComponentStyle(c),d=()=>document.getElementById("ProviderConfig")||document.body,h=vue.ref(c.data||[]),v=vue.ref(),p=vue.computed({get:()=>{var Hn;const{mode:or}=c;return(Hn=vue.unref(h))!=null&&Hn.length?v.value:or==="multiple"||or==="tags"||or==="combobox"?[]:""},set:or=>{v.value=or}}),{getGlobalModel:m,setGlobalModel:g,getRecordValueByKeyName:y}=vue.inject(GLOBAL_MODEL,{getGlobalModel:or=>{},setGlobalModel:(or,Hn)=>{},getRecordValueByKeyName:or=>{}}),b=c.dataFieldNames;vue.watch(()=>[c.value,c.mode,c.selectFirstOption,c.valueType,h.value],()=>{const{mode:or,selectFirstOption:Hn,value:Kn}=c,zn=y(Kn),qn=b.value;if(or==="multiple"||or==="tags"||or==="combobox"){if(zn)v.value=zn.split(",");else if(Hn){const tr=vue.unref(h)[0];v.value=tr?[tr[qn]]:[]}}else if(zn)v.value=zn;else if(Hn){const tr=vue.unref(h)[0];v.value=tr?tr[qn]:""}},{immediate:!0});const Pn=(or,Hn)=>{const Kn=b.label,zn=b.value;let qn;const tr=Hn[Kn],Un=Hn[zn];return tr!=null?qn=tr:Un!=null&&(qn=Un),(qn==null?void 0:qn.toLowerCase().indexOf(or==null?void 0:or.toLowerCase()))>=0},x=or=>{const{label:Hn,value:Kn,options:zn}=c.dataFieldNames;if(zn&&Array.isArray(or))if(or.some(qn=>zn in qn)){const qn={},tr=[];or.forEach(Un=>{qn[Un[zn]]||(qn[Un[zn]]=[]),qn[Un[zn]].push({[Hn]:Un[Hn],[Kn]:Un[Kn]})});for(const Un in qn)tr.push({[Hn]:Un,[zn]:qn[Un]});return tr}else return or;else if(!zn)return or},vn=vue.ref(!1),J=or=>{var Hn,Kn;if(h.value=x(((Kn=(Hn=or==null?void 0:or.data)==null?void 0:Hn.data)==null?void 0:Kn.rows)||[]),c.selectFirstOption){let zn=vue.unref(h)[0];if(b.options){const qn=zn[b.options];qn&&qn.length&&(zn=qn[0])}v.value=zn[b.value]}},j=useRequestData(c),Fn=async()=>{if(c.dataType==="request"){vn.value=!0;try{const or=await j();J(or)}catch(or){console.error(or)}finally{vn.value=!1}}},Bn=vue.computed(()=>{let or=v.value;if(c.valueType==="label"&&vue.unref(v)&&vue.unref(h)){const Hn=b.label,Kn=b.value;if(c.mode==="multiple")or=vue.unref(h).filter(zn=>vue.unref(v).includes(zn[Kn])).map(zn=>zn[Hn]);else{const zn=vue.unref(h).find(qn=>vue.unref(v)===qn[Kn]);zn&&(or=zn[Hn])}}return or}),w=vue.ref([]),gn=vue.computed(()=>{const or={};if(c.mode!=="multiple"){const Hn=vue.unref(w).find(Kn=>Kn.value===vue.unref(v));Hn&&(or.itemCodes=Hn.item_codes)}return or}),re=vue.computed(()=>{const{value:or,label:Hn}=b,Kn=vue.unref(h).find(zn=>zn[or]===vue.unref(p));return Kn?{label:Kn[Hn],value:Kn[or]}:{}}),{pageId:Rn}=vue.inject("templateOperate",{pageId:""})||{};g(c.id,{type:c.type,dataType:c.dataType,value:Bn,label:(dr=vue.unref(re))==null?void 0:dr.label,...vue.unref(gn),recordData:vue.unref(re)});const Vn=useEmitEvent(c),Wn=Vn("selectChange",()=>{const or=c.id,Hn=m(or);g(or,{...Hn,...vue.unref(gn),value:Bn,RECORD:Bn,recordData:vue.unref(re),dataType:c.dataType,type:c.type});const Kn=getNewValueFromUrlParams(Rn,c.keyName,"value");Kn&&(p.value=Kn)}),Gn=Vn("refreshData",(or=[])=>{if(h.value=x(or),c.selectFirstOption){let Hn=vue.unref(h)[0];if(b.options){const Kn=Hn[b.options];Kn&&Kn.length&&(Hn=Kn[0])}v.value=Hn[b.value]}g(c.id,{type:c.type,value:Bn,...vue.unref(gn),recordData:vue.unref(re),RECORD:vue.unref(re),dataType:c.dataType})}),Zn=or=>{var qn;const{data:Hn}=(or==null?void 0:or.data)||{},Kn=b.label,zn=b.value;if(Hn){const{rows:tr=[]}=((qn=or==null?void 0:or.data)==null?void 0:qn.data)||{};w.value=tr||[];const Un=vue.unref(w).map(Qn=>({[Kn]:Qn.label,[zn]:Qn.value})),{id:nr}=c,sr=m(nr);g(nr,{...sr,...vue.unref(gn),dataType:c.dataType}),Gn(Un)}else Gn([])},Xn=useIndicatorData(c,Zn),er=async()=>{try{vn.value=!0;const or=await Xn();Zn(or)}catch(or){console.error(or)}finally{vn.value=!1}},Jn=async()=>{switch(c.dataType){case"indicator":{await er();break}case"request":await Fn();break}};useOnEvent(c,{selectChange:Wn,refreshData:Jn});const{setRequest:ir}=vue.inject(REQUEST_MODEL,{setRequest:({id:or,sortNum:Hn,requestFn:Kn})=>{}});return typeof ir=="function"&&ir({id:c.id,requestFn:Jn,sortNum:c.requestSort}),u({refreshData:Jn}),{style:f,getPopupContainer:d,myValue:v,selectChange:Wn,options:h,filterOption:Pn,loading:vn,resultValue:p}}}),DataSelect_vue_vue_type_style_index_0_scoped_d7702a9f_lang="",DataSelect_vue_vue_type_style_index_1_lang="";function _sfc_render$3(c,u,f,d,h,v){const p=vue.resolveComponent("a-select-option"),m=vue.resolveComponent("a-select");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-select",style:vue.normalizeStyle(c.style)},[vue.createVNode(m,{class:"select",value:c.resultValue,"onUpdate:value":u[0]||(u[0]=g=>c.resultValue=g),placeholder:c.placeholder,showSearch:"",allowClear:c.isAllowClear,mode:c.mode,getPopupContainer:c.getPopupContainer,fieldNames:c.dataFieldNames,maxTagCount:c.maxTagCount,filterOption:c.filterOption,loading:c.loading,autoClearSearchValue:c.autoClearSearchValue,onChange:c.selectChange,style:vue.normalizeStyle({fontSize:c.optionFontSize})},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(c.options,(g,y)=>(vue.openBlock(),vue.createBlock(p,{key:y,value:g.value,label:g.label,style:vue.normalizeStyle({fontSize:c.optionFontSize})},null,8,["value","label","style"]))),128))]),_:1},8,["value","placeholder","allowClear","mode","getPopupContainer","fieldNames","maxTagCount","filterOption","loading","autoClearSearchValue","onChange","style"]),vue.renderSlot(c.$slots,"toolbox",{},void 0,!0)],4)}const DataSelect=_export_sfc$1(_sfc_main$3,[["render",_sfc_render$3],["__scopeId","data-v-d7702a9f"]]),EcanDataSelect=withInstall$1(DataSelect),_sfc_main$2=vue.defineComponent({name:"EcanPivotTable",components:{},props:{...pivotTableComponentProps,fullMode:{type:Boolean,default:!1}},setup(c,{emit:u,expose:f}){var re,Rn;const d=(re=window==null?void 0:window.config)==null?void 0:re.pageId,h=(Rn=window==null?void 0:window.config)==null?void 0:Rn.indicatorToken,v=usePickComponentStyle(c),p=vue.ref(),{pageMode:m,theme:g,width:y,height:b}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal",theme:"light",width:"",height:""}),Pn=vue.inject("scaleValue",{widthScale:"1",heightScale:"1"}),{getAllGlobalModel:x}=vue.inject(GLOBAL_MODEL,{getAllGlobalModel:()=>{}}),vn=vue.computed(()=>{const{width:Vn,height:Wn}=c;let Gn=0,Zn=0;return typeof Vn=="string"?Gn=parseFloat(Vn):Vn.suffix==="px"?Gn=+Vn.value:Vn.suffix==="%"&&(Gn=parseFloat(vue.unref(y))*(Vn.value/100)),typeof Wn=="string"?Zn=parseFloat(Wn):Wn.suffix==="px"?Zn=+Wn.value:Wn.suffix==="%"&&(Zn=parseFloat(vue.unref(b))*(Wn.value/100)),{...c,width:Gn+"px",height:Zn+"px",pageId:d,indicatorToken:h,context:CONTEXT,globalModel:x()}}),J=vue.computed(()=>INDICATOR_URL),j=()=>{switch(c.dataType){case"indicator":vue.unref(p).refreshData();break}},{setRequest:Fn}=vue.inject(REQUEST_MODEL,{setRequest:({id:Vn,sortNum:Wn,requestFn:Gn})=>{}});typeof Fn=="function"&&Fn({id:c.id,requestFn:j,sortNum:c.requestSort}),f({refreshData:j});const w=useEmitEvent(c)("click",()=>{vue.unref(p).click()});return useOnEvent(c,{refreshData:j,click:w}),vue.onMounted(()=>{}),{props:c,style:v,pageMode:m,pivotTableRef:p,theme:g,customProps:vn,indicatorUrl:J,scaleValue:Pn,click:w,onTableChange:({type:Vn,data:Wn})=>{u("tableChange",{type:Vn,data:Wn})}}}}),PivotTableContainer_vue_vue_type_style_index_0_scoped_46e3d7d4_lang="";function _sfc_render$2(c,u,f,d,h,v){const p=vue.resolveComponent("pivot-table");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-pivot-table",style:vue.normalizeStyle(c.style)},[vue.createVNode(p,vue.mergeProps({ref:"pivotTableRef"},c.customProps,{pageMode:c.pageMode,theme:c.theme,fullMode:c.fullMode,indicatorUrl:c.indicatorUrl,scaleValue:c.scaleValue,enlargeContainer:"#norPageConfig",onTableChange:c.onTableChange}),null,16,["pageMode","theme","fullMode","indicatorUrl","scaleValue","onTableChange"])],4)}const PivotTableContainer=_export_sfc$1(_sfc_main$2,[["render",_sfc_render$2],["__scopeId","data-v-46e3d7d4"]]),EcanPivotTable=withInstall$1(PivotTableContainer),valueLineProps={...props$1,id:"",name:"双值轴折线图",keyName:"双值轴折线图",type:"ecanValueLine",width:"400px",height:"400px",top:"",left:"",rotate:"",data:[{name:0,value:0,value2:10},{name:10,value:20,value2:35},{name:20,value:30,value2:25},{name:30,value:40,value2:55}],titleText:"",titleFontSize:"12px",titleColor:"#333",fontWeight:400,textAlign:"left",titleSubtext:"",titleLeft:"",legendShow:!0,legendOrient:"horizontal",legendTextStyleColor:"#333",legendTop:"top",legendLeft:"center",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],symbolSize:4,lineStyleWidth:2,smooth:!1,xAxisLabelWidth:void 0,xAxisLabelRotate:0,xAxisLabelOverflow:"none",xAxisLabelInterval:0,xAxisSplitLineShow:!0,xAxisSplitAreaShow:!1,xAxisSplitLineInterval:0,xAxisSplitLineStyleColor:"#333",xAxisLabelColor:"#333",xAxisLineShow:!0,xAxisLineStyleColor:"#333",xAxisTickShow:!0,xAxisLabelFormatter:"{value}",xAxisMinInterval:0,yAxisMinInterval:0,yAxisSplitLineShow:!0,yAxisSplitAreaShow:!1,yAxisSplitLineStyleColor:"#333",yAxisLabelColor:"#333",yAxisLineStyleColor:"#333",yAxisLineAlwaysDisplay:!1,yAxisLabelFormatter:"{value}",gridContainLabel:!0,gridTop:"10%",gridBottom:"10%",gridLeft:"5%",gridRight:"5%",graphicConfig:{},tooltipShow:!0,tooltipFormatter:"{marker} {a}:{c}",toolboxShow:!1,toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息",areaStyleOpacity:0,areaGradientShow:!1,areaGradientColor:"",isBoundaryGap:!0,yAxisLabelShow:!0,yAxisSplitLineType:"solid",legendItemGap:10,legendItemWidth:25,legendItemHeight:14,legendType:"",shadowColor:"",shadowBlur:0,shadowOffsetY:0,shadowOffsetX:0,legendFontSize:"12px",xAxisLabelFontSize:"12px",yAxisLabelFontSize:"12px",tooltipPosition:"",isShowMarkLine:!1,markLineType:"average",legendFormatter:"{name}",legendWidth:null,legendHeight:null,legendTextWidth:null,legendScroll:!1,yAxisName:"",xAxisName:"",xAxisMaxValue:null,yAxisMaxValue:null,xAxisLabelShow:!0,tooltipTextStyleColor:"",customPoint:"",axisMarkPoint:[],markPointFormatter:"{x}, {y}"},valueLineComponentProps=transformToComponentProps(valueLineProps),valueLineEvents=["click","refreshData","resetRecord"];core$1.use([renderers.CanvasRenderer,charts.LineChart,components$1.ToolboxComponent,components$1.TitleComponent,components$1.LegendComponent,components$1.MarkLineComponent,components$1.MarkPointComponent]);const _sfc_main$1=vue.defineComponent({name:"EcanValueLine",props:{...valueLineComponentProps},components:{Spin,Echarts,EcanModal},setup(c,{expose:u}){const{pageMode:f,fontFamily:d}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal",fontFamily:""}),h=vue.ref(),v=vue.ref(!1),p=usePickComponentStyle(c),m=vue.ref([]),g=vue.ref(),y=vue.computed(()=>v.value?ZOOM_FONT_SIZE:12),b=vue.ref({});let Pn;const x=vue.computed(()=>{const qn=c.xAxisLabelFormatter,tr=c.yAxisLabelFormatter;return{textStyle:{fontFamily:vue.unref(d)},toolbox:{show:c.toolboxShow,left:c.toolboxLeft,top:c.toolboxTop,itemSize:c.toolboxItemSize,itemGap:c.toolboxItemGap,orient:c.toolboxOrient,feature:{myDownload:{show:c.toolboxDownloadShow,title:"数据下载",icon:"path://M502.010485 765.939573c3.773953 3.719718 8.686846 5.573949 13.596669 5.573949 0.075725 0 0.151449-0.010233 0.227174-0.011256 0.329505 0.016373 0.654916 0.050142 0.988514 0.050142 0.706081 0 1.400906-0.042979 2.087545-0.116657 4.352121-0.366344 8.607028-2.190899 11.961426-5.496178l335.053985-330.166675c7.619538-7.509021 7.709589-19.773346 0.200568-27.393907s-19.774369-7.711636-27.39493-0.201591L536.193005 706.304358 536.193005 50.019207c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 657.032164-306.881342-302.44838c-7.618515-7.509021-19.883863-7.419993-27.393907 0.199545-7.509021 7.619538-7.419993 19.884886 0.199545 27.393907L502.010485 765.939573z, M867.170139 711.020776c-10.698666 0-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 13.054317-10.620895 23.675212-23.676236 23.675212L205.182103 919.486668c-13.054317 0-23.676236-10.620895-23.676236-23.675212L181.505867 730.391962c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 34.416857 28.000728 62.416562 62.417585 62.416562l618.941638 0c34.417881 0 62.417585-27.999704 62.417585-62.416562L886.540302 730.391962C886.541325 719.693296 877.868805 711.020776 867.170139 711.020776z",onclick(){useDownloadFile(c.toolboxDownloadUrl)}},myDataZoom:{show:v.value?!1:c.toolboxDataZoomShow,title:"放大",icon:"path://M932.42 902.246667L792 761.793333A403.84 403.84 0 0 0 896 490.666667c0-223.86-181.473333-405.333333-405.333333-405.333334S85.333333 266.806667 85.333333 490.666667s181.473333 405.333333 405.333334 405.333333a403.84 403.84 0 0 0 271.126666-104l140.453334 140.453333a21.333333 21.333333 0 0 0 30.173333-30.173333zM128 490.666667c0-200.293333 162.373333-362.666667 362.666667-362.666667s362.666667 162.373333 362.666666 362.666667-162.373333 362.666667-362.666666 362.666666-362.666667-162.373333-362.666667-362.666666z m512 0a21.333333 21.333333 0 0 1-21.333333 21.333333H512v106.666667a21.333333 21.333333 0 0 1-42.666667 0V512H362.666667a21.333333 21.333333 0 0 1 0-42.666667h106.666666V362.666667a21.333333 21.333333 0 0 1 42.666667 0v106.666666h106.666667a21.333333 21.333333 0 0 1 21.333333 21.333334z",onclick(){var Un;v.value=!0,(Un=g.value)==null||Un.showModal()}},myInfo:{show:c.toolboxInfoShow,title:"说明信息",icon:"path://M512.50142 958.397886c-119.320573 0-231.499491-46.465265-315.871087-130.837884C112.258737 743.188406 65.792449 631.010511 65.792449 511.688915c0-119.319549 46.466288-231.499491 130.837884-315.871087C281.002952 111.445208 393.180847 64.979944 512.50142 64.979944s231.499491 46.465265 315.871087 130.837884c84.372619 84.372619 130.837884 196.551538 130.837884 315.871087 0 119.321596-46.465265 231.499491-130.837884 315.871087C744.000911 911.932622 631.821993 958.397886 512.50142 958.397886zM512.50142 105.962334c-223.718271 0-405.726581 182.00831-405.726581 405.726581s182.00831 405.726581 405.726581 405.726581c223.718271 0 405.727605-182.00831 405.727605-405.726581S736.220714 105.962334 512.50142 105.962334z M510.150886 775.953647c-18.107403 0-32.745798-14.678304-32.745798-32.785707L477.405087 452.191846c0-18.108426 14.638395-32.785707 32.745798-32.785707 18.107403 0 32.745798 14.678304 32.745798 32.785707l0 290.976094C542.896684 761.275343 528.258289 775.953647 510.150886 775.953647z M511.357364 296.458969m-45.080731 0a44.054 44.054 0 1 0 90.161463 0 44.054 44.054 0 1 0-90.161463 0Z",onclick(){antDesignVue.Modal.info({title:"说明信息",content:c.toolboxInfoText})}}}},title:{text:c.titleText,subText:c.titleSubtext,textStyle:{fontSize:c.titleFontSize,fontWeight:c.fontWeight,color:c.titleColor},left:c.textAlign},grid:{top:c.gridTop,bottom:c.gridBottom,left:c.gridLeft,right:c.gridRight,containLabel:c.gridContainLabel},color:c.colors,tooltip:{trigger:"axis",textStyle:{fontSize:y.value,color:c.tooltipTextStyleColor},show:c.tooltipShow,formatter:Un=>{var ar;const nr=Un.length;let sr="",Qn=c.tooltipFormatter;Pn=(ar=Un[0])==null?void 0:ar.data,Qn===""&&(Qn="{marker} {a} {c}");for(let cr=0;cr<nr;cr++){const{marker:Yn,seriesName:lr,name:hr,value:mr,data:ur}=Un[cr]||{};if(cr===0){let gr=hr;typeof hr=="string"&&hr[0]==="0"&&!isNaN(+hr)&&(gr=(+hr).toString()),sr+=`${In(qn,gr)}<br/>`}sr+=hn(Qn,{textData:{marker:Yn,a:lr,b:mr[0],c:mr[1]||0,...ur==null?void 0:ur.record}},{useNewline:!0,useSpace:!0}),sr+="<br/>"}return sr},position:c.tooltipPosition||void 0},xAxis:{type:"value",boundaryGap:c.isBoundaryGap,minInterval:c.xAxisMinInterval,splitLine:{show:c.xAxisSplitLineShow,lineStyle:{color:c.xAxisSplitLineStyleColor},interval:c.xAxisSplitLineInterval},splitArea:{show:c.xAxisSplitAreaShow},axisLabel:{show:c.xAxisLabelShow,color:c.xAxisLabelColor,interval:c.xAxisLabelInterval||0,rotate:c.xAxisLabelRotate,width:c.xAxisLabelWidth,overflow:c.xAxisLabelOverflow,fontSize:c.xAxisLabelFontSize,formatter(Un){return typeof Un=="string"&&Un[0]==="0"&&!isNaN(+Un)&&(Un=(+Un).toString()),In(qn,Un)}},axisLine:{show:c.xAxisLineShow,lineStyle:{color:c.xAxisLineStyleColor}},axisTick:{show:c.xAxisTickShow},name:c.xAxisName,nameTextStyle:{fontSize:c.xAxisLabelFontSize,color:c.xAxisLabelColor,align:"left"},max:c.xAxisMaxValue||null},yAxis:{type:"value",minInterval:c.yAxisMinInterval,splitLine:{show:c.yAxisSplitLineShow,lineStyle:{color:c.yAxisSplitLineStyleColor,type:c.yAxisSplitLineType}},splitArea:{show:c.yAxisSplitAreaShow},axisLabel:{show:c.yAxisLabelShow,fontSize:c.yAxisLabelFontSize,color:c.yAxisLabelColor,formatter(Un){return In(tr,Un)}},axisLine:{show:c.yAxisLineAlwaysDisplay,lineStyle:{color:c.yAxisLineStyleColor}},name:c.yAxisName,nameTextStyle:{fontSize:c.yAxisLabelFontSize,color:c.yAxisLabelColor,align:"right"},max:c.yAxisMaxValue||null},legend:{type:c.legendScroll?"scroll":"plain",width:c.legendWidth,height:c.legendHeight,show:c.legendShow,orient:c.legendOrient,top:c.legendTop,left:c.legendLeft,textStyle:{lineHeight:(v.value?ZOOM_FONT_SIZE:parseFloat(c.legendFontSize))+8,rich:{text:{width:c.legendTextWidth,color:c.legendTextStyleColor,fontSize:v.value?ZOOM_FONT_SIZE:c.legendFontSize}}},itemHeight:c.legendItemHeight,itemWidth:c.legendItemWidth,itemGap:c.legendItemGap,formatter:Un=>getLegendFormat(c.legendFormatter,{name:Un})},series:vue.unref(m)}}),vn=()=>{v.value=!1},{getGlobalModel:J,setGlobalModel:j,getRecordValueByKeyName:Fn}=vue.inject(GLOBAL_MODEL,{getGlobalModel:qn=>{},setGlobalModel:(qn,tr)=>{},getRecordValueByKeyName:qn=>{}}),Bn=vue.computed(()=>c.isShowMarkLine?{markLine:{data:[{type:c.markLineType}]}}:{}),w=(qn,tr,Un,nr,sr,Qn,ar,cr)=>{const Yn=(-(sr*cr-Qn*ar)/(ar-sr)+(qn*nr-tr*Un)/(Un-qn))/((nr-tr)/(Un-qn)-(cr-Qn)/(ar-sr)),lr=(nr-tr)/(Un-qn)*(-(sr*cr-Qn*ar)/(ar-sr)+(qn*nr-tr*Un)/(Un-qn))/((nr-tr)/(Un-qn)-(cr-Qn)/(ar-sr))-(qn*nr-tr*Un)/(Un-qn);return[Yn,lr]},gn=()=>{var Un;const qn={symbol:"circle",tooltip:{trigger:"item",formatter:nr=>{let sr="",Qn=c.markPointFormatter;Qn===""&&(Qn="{x}, {y}");const{data:{coord:ar=[]}}=nr||{};return sr+=hn(Qn,{textData:{x:ar[0]||0,y:ar[1]||0}},{useNewline:!0,useSpace:!0}),sr+="<br/>",sr}},data:[]},{axisMarkPoint:tr=[]}=c;for(const nr of tr){const{coord:sr=""}=nr,Qn=[];let ar=[];if(sr.includes("getIntersectPoint")){const cr=(Un=sr.match(/getIntersectPoint\((.*?)\)/)[1])==null?void 0:Un.split(",");if((cr==null?void 0:cr.length)===8){const Yn=[];for(const lr of cr){const hr=lr.replaceAll(" ","");(hr==null?void 0:hr.slice(0,1))==="{"&&(hr==null?void 0:hr.slice(-1))==="}"?Yn.push(+Fn(hr)||0):Yn.push(+hr)}ar=w(...Yn)}}else ar=sr.split(",");(ar==null?void 0:ar.length)===2&&(Qn[0]=+ar[0],Qn[1]=+ar[1]),Qn!=null&&Qn.length&&qn.data.push({coord:Qn,symbolSize:nr.symbolSize,itemStyle:{color:nr.pointColor||"transparent",borderWidth:nr.borderWidth||"transparent",borderColor:nr.borderColor||"transparent"},label:{formatter:nr.label,position:nr.labelPosition,color:nr.labelColor||"transparent"}})}return qn},re=qn=>{var Yn,lr,hr;const tr=lodashEs.cloneDeep(qn),{graphicConfig:Un,customPoint:nr=""}=c,sr={},Qn={},{formFields:ar={}}=Un;let cr=[];if(nr){cr=JSON.parse(nr);for(const mr of cr)for(const ur in mr)typeof mr[ur]=="string"&&((Yn=mr[ur])==null?void 0:Yn.slice(0,1))==="{"&&((lr=mr[ur])==null?void 0:lr.slice(-1))==="}"&&(mr[ur]=Fn(mr[ur])||0)}cr!=null&&cr.length&&tr.push(...cr),c.dataType==="static"?(Qn.name="name",Qn.values=["value","value2"]):(Qn.name=(ar==null?void 0:ar.labelField)||"name",Qn.values=(ar==null?void 0:ar.valueField)||["value","value2"]);for(const mr of tr){const{values:ur,name:gr}=Qn;for(const fr of ur){const vr={value:[mr[gr],mr[fr]],record:mr};mn(sr,fr)?sr[fr].push(vr):sr[fr]=[vr]}}if((hr=Object.keys(sr))!=null&&hr.length){const mr=[];for(const ur in sr)mr.push({name:ur,data:sr[ur]});return mr}else return[]},Rn=(qn=[])=>{const tr=re(qn),Un=[],nr=tr.length;for(let sr=0;sr<nr;sr++){const Qn={},ar={};sr===0&&(ar.markPoint=gn()),c.shadowColor&&(Qn.shadowColor=c.shadowColor,Qn.shadowBlur=c.shadowBlur,Qn.shadowOffsetY=c.shadowOffsetY,Qn.shadowOffsetX=c.shadowOffsetX);let cr=c.colors[sr];if(!cr&&c.colors.length){const Yn=(sr+1)%c.colors.length-1;cr=Yn>0?c.colors[Yn]:c.colors[0]}cr||(cr="#5470C6"),Un.push({type:"line",...ar,...tr[sr],symbolSize:c.symbolSize,smooth:c.smooth,areaStyle:{color:c.areaGradientShow?{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:cr},{offset:1,color:c.areaGradientColor||"transparent"}],global:!1}:cr,opacity:c.areaStyleOpacity},lineStyle:{width:c.lineStyleWidth,...Qn},...vue.unref(Bn)})}m.value=Un},Vn=(qn=[])=>{const tr=re(qn),Un=[],nr=tr.length;for(let sr=0;sr<nr;sr++){const Qn={};c.shadowColor&&(Qn.shadowColor=c.shadowColor,Qn.shadowBlur=c.shadowBlur,Qn.shadowOffsetY=c.shadowOffsetY,Qn.shadowOffsetX=c.shadowOffsetX);const ar={};sr===0&&(ar.markPoint=gn());let cr=c.colors[sr];if(!cr&&c.colors.length){const Yn=(sr+1)%c.colors.length-1;cr=Yn>0?c.colors[Yn]:c.colors[0]}cr||(cr="#5470C6"),Un.push({type:"line",...tr[sr],symbolSize:c.symbolSize,smooth:c.smooth,areaStyle:{color:c.areaGradientShow?{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:cr},{offset:1,color:c.areaGradientColor||"transparent"}],global:!1}:cr,opacity:c.areaStyleOpacity},lineStyle:{width:c.lineStyleWidth,...Qn},...vue.unref(Bn),...ar})}m.value=Un};vue.watch(()=>[c.data,c.dataType,c.symbolSize,c.smooth,c.lineStyleWidth,c.areaStyleOpacity,c.areaGradientShow,c.areaGradientColor,c.shadowColor,c.shadowBlur,c.shadowOffsetY,c.shadowOffsetX,c.legendFontSize,c.isShowMarkLine,c.markLineType,c.legendFormatter,c.legendWidth,c.legendHeight,c.legendTextWidth,c.legendScroll],([qn])=>{(c.dataType==="static"||vue.unref(f)==="design")&&Rn(qn)},{immediate:!0,deep:!0});const Wn=vue.ref(!1),Gn=useRequestData(c),Zn=async()=>{var qn,tr;if(c.dataType==="request")try{Wn.value=!0;const Un=await Gn();Rn((tr=(qn=Un==null?void 0:Un.data)==null?void 0:qn.data)==null?void 0:tr.rows)}catch(Un){console.error(Un)}finally{Wn.value=!1}},Xn=useEmitEvent(c);j(c.id,{type:c.type,RECORD:""});const er=Xn("click",qn=>{const tr=J(c.id);j(c.id,{...tr,type:c.type,RECORD:c.tooltipShow?Pn:qn.data})}),Jn=qn=>{h.value.chart.containPixel("grid",[qn.offsetX,qn.offsetY])&&er()};c.tooltipShow?b.value["zr:click"]=Jn:b.value.click=er;const ir=qn=>{var Un;const{rows:tr=[]}=((Un=qn==null?void 0:qn.data)==null?void 0:Un.data)??{};Vn(tr)},dr=useIndicatorData(c,qn=>{c.isViewRedrawing&&h.value.clear(),ir(qn)}),or=async()=>{try{Wn.value=!0;const qn=await dr();ir(qn)}catch(qn){console.error(qn)}finally{Wn.value=!1}},Hn=async()=>{switch(c.dataType){case"indicator":await or();break;case"request":await Zn();break}};useOnEvent(c,{refreshData:Hn,resetRecord:()=>{const qn=c.id,tr=J(qn);j(qn,{...tr,RECORD:""})},click:er});const{setRequest:zn}=vue.inject(REQUEST_MODEL,{setRequest:qn=>{}});return typeof zn=="function"&&zn({id:c.id,requestFn:Hn,sortNum:c.requestSort}),u({refreshData:Hn}),{option:x,style:p,click:er,loading:Wn,onClose:vn,ecanModal:g,eventObj:b,echartRef:h}}}),ValueLine_vue_vue_type_style_index_0_lang="";function _sfc_render$1(c,u,f,d,h,v){const p=vue.resolveComponent("echarts"),m=vue.resolveComponent("spin"),g=vue.resolveComponent("ecan-modal");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-value-line",style:vue.normalizeStyle(c.style)},[vue.createVNode(m,{spinning:c.loading},{default:vue.withCtx(()=>[vue.createVNode(p,vue.mergeProps({ref:"echartRef",option:c.option,autoresize:""},vue.toHandlers(c.eventObj)),null,16,["option"])]),_:1},8,["spinning"]),vue.createVNode(g,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:c.onClose},{default:vue.withCtx(()=>[vue.createVNode(m,{class:"spin-wrap",spinning:c.loading},{default:vue.withCtx(()=>[vue.createVNode(p,{option:c.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"]),vue.renderSlot(c.$slots,"toolbox")],4)}const ValueLine=_export_sfc$1(_sfc_main$1,[["render",_sfc_render$1]]),EcanValueLine=withInstall$1(ValueLine),indexPanelProps={...props$1,name:"指标面板",keyName:"指标面板",type:"ecanIndexPanel",width:"360px",height:"210px",zIndex:1,borderRadius:"5",componentIds:[],componentConfig:{},data:{},dataType:"indicator",graphicConfig:{},theFlag:""},indexPanelComponentProps=transformToComponentProps(indexPanelProps),indexPanelEvents=["refreshData"],_sfc_main=vue.defineComponent({name:"EcanIndexPanel",components:{Skeleton},props:{...indexPanelComponentProps},setup(c,{expose:u}){const f=vue.ref(!1),d=vue.ref(),h=usePickComponentStyle(c),{pageMode:v}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"}),p=vue.inject("triggerRefresh",Fn=>{}),m=vue.inject("usedComponentList",[]),g=vue.computed(()=>{const{borderRadius:Fn}=c,Bn=[],w={};if(Fn){const gn=Fn.split(",");for(const re of gn)(+re||+re==0)&&Bn.push(+re+"px")}return Bn!=null&&Bn.length&&(w.borderRadius=Bn.join(" ")),vue.unref(v)==="design"&&(w.border="1px solid #a8a8a8"),vue.unref(d)?w.backgroundColor=vue.unref(d):vue.unref(v)!=="design"&&(w.backgroundColor="#B3AFAF"),w}),y=Fn=>{var w;const{rows:Bn}=((w=Fn==null?void 0:Fn.data)==null?void 0:w.data)||{};if(Bn){const{componentIds:gn,componentConfig:re,graphicConfig:Rn}=c,Vn=[],Wn=Rn==null?void 0:Rn.indicators.find(Gn=>Gn.show);d.value=Bn.color;for(const Gn of gn){const Zn=vue.unref(m).find(dr=>dr.id===Gn),Xn=re[Gn],{text:er=""}=Zn||{};let Jn=Bn[Xn.key],ir="";if(Xn.key==="systemSource"){const dr=Jn.split(",");(dr==null?void 0:dr.length)>3&&(Jn=dr.slice(0,3).join(",")+"等",ir=Bn[Xn.key])}else Xn.key==="indexName"&&(Jn=Wn.label);Vn.push({id:Gn,text:er.includes("{value}")||er.includes("{")||er.includes("}")?er:"{value}",data:{...Bn,value:Jn},titleContent:ir})}p(Vn)}},b=useIndicatorData(c,y),Pn=async()=>{try{f.value=!0;const Fn=await b();y(Fn)}catch(Fn){console.error(Fn)}finally{f.value=!1}},x=async()=>{switch(c.dataType){case"indicator":await Pn();break}},{setRequest:vn}=vue.inject(REQUEST_MODEL,{setRequest:({id:Fn,sortNum:Bn,requestFn:w})=>{}});typeof vn=="function"&&vn({id:c.id,requestFn:x,sortNum:c.requestSort});const j=useEmitEvent(c)("click");return useOnEvent(c,{refreshData:x}),u({refreshData:x}),{loading:f,style:h,customStyle:g,click:j}}});function _sfc_render(c,u,f,d,h,v){const p=vue.resolveComponent("skeleton");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-index-panel",style:vue.normalizeStyle(c.loading?{}:{...c.style,...c.customStyle}),onClick:u[0]||(u[0]=(...m)=>c.click&&c.click(...m))},[c.loading?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"skeleton-wrapper",style:vue.normalizeStyle(c.style)},[vue.createVNode(p,{loading:c.loading},null,8,["loading"])],4)):(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:1},[vue.renderSlot(c.$slots,"children"),vue.renderSlot(c.$slots,"toolbox")],64))],4)}const IndexPanel=_export_sfc$1(_sfc_main,[["render",_sfc_render]]),EcanIndexPanel=withInstall$1(IndexPanel),components=Object.freeze(Object.defineProperty({__proto__:null,EcanBar,EcanBorder,EcanButton,EcanCheckbox,EcanCirculate,EcanComboGraph,EcanCounter,EcanCustomGraph,EcanDataSelect,EcanDatePicker,EcanIframe,EcanImage,EcanIndexPanel,EcanInput,EcanLine,EcanList,EcanMap,EcanModal,EcanNavTab,EcanPageConfig,EcanPie,EcanPivotTable,EcanProportion,EcanProviderConfig,EcanRadar,EcanRadio,EcanRangePicker,EcanRectangle,EcanScatter,EcanScrollText,EcanSelect,EcanTable,EcanTabs,EcanTemplate,EcanText,EcanTimeDisplay,EcanTreeSelect,EcanValueLine,barComponentProps,barEvents,barProps,borderComponentProps,borderEvents,borderProps,buttonComponentProps,buttonEvents,buttonProps,checkboxComponentProps,checkboxEvents,checkboxProps:checkboxProps$1,circulateComponentProps,circulateEvents,circulateProps,comboGraphComponentProps,comboGraphEvents,comboGraphProps,counterComponentProps,counterEvents,counterProps,customGraphComponentProps,customGraphProps,dataSelectComponentProps,dataSelectEvents,dataSelectProps,datePickerComponentProps,datePickerEvents,datePickerProps:datePickerProps$1,iframeComponentProps,iframeProps,imageComponentProps,imageEvents,imageProps,indexPanelComponentProps,indexPanelEvents,indexPanelProps,inputComponentProps,inputEvents,inputProps,lineComponentProps,lineEvents,lineProps,listComponentProps,listEvents,listProps,mapComponentProps,mapEvents,mapProps,modalComponentProps,modalEvents,modalProps,navTabComponentProps,navTabEvents,navTabProps,pageConfig,pageConfigComponentProps,pieComponentProps,pieEvents,pieProps,pivotTableComponentProps,pivotTableEvents,pivotTableProps,proportionComponentProps,proportionEvents,proportionProps,providerConfig,providerConfigComponentProps,radarComponentProps,radarEvents,radarProps,radioComponentProps,radioEvents,radioProps,rangePickerComponentProps,rangePickerEvents,rangePickerProps,rectangleComponentProps,rectangleEvents,rectangleProps,scatterComponentProps,scatterEvents,scatterProps,selectComponentProps,selectEvents,selectProps,tableComponentProps,tableEvents,tableProps,tabsComponentProps,tabsEvents,tabsProps:tabsProps$1,templateComponentProps,templateEvents,templateProps,textComponentProps,textEvents,textProps,timeDisplayComponentProps,timeDisplayEvents,timeDisplayProps,treeSelectComponentProps,treeSelectEvents,treeSelectProps,valueLineComponentProps,valueLineEvents,valueLineProps},Symbol.toStringTag,{value:"Module"}));function noop(){}const extend=Object.assign,inBrowser$1=typeof window<"u",isObject$1=c=>c!==null&&typeof c=="object",isDef=c=>c!=null,isFunction=c=>typeof c=="function",isPromise=c=>isObject$1(c)&&isFunction(c.then)&&isFunction(c.catch),isDate=c=>Object.prototype.toString.call(c)==="[object Date]"&&!Number.isNaN(c.getTime()),isNumeric=c=>typeof c=="number"||/^\d+(\.\d+)?$/.test(c),isIOS$1=()=>inBrowser$1?/ios|iphone|ipad|ipod/.test(navigator.userAgent.toLowerCase()):!1;function get(c,u){const f=u.split(".");let d=c;return f.forEach(h=>{var v;d=isObject$1(d)&&(v=d[h])!=null?v:""}),d}function pick(c,u,f){return u.reduce((d,h)=>((!f||c[h]!==void 0)&&(d[h]=c[h]),d),{})}const isSameValue=(c,u)=>JSON.stringify(c)===JSON.stringify(u),toArray=c=>Array.isArray(c)?c:[c],flat=c=>c.reduce((u,f)=>u.concat(f),[]),unknownProp=null,numericProp=[Number,String],truthProp={type:Boolean,default:!0},makeRequiredProp=c=>({type:c,required:!0}),makeArrayProp=()=>({type:Array,default:()=>[]}),makeNumericProp=c=>({type:numericProp,default:c}),makeStringProp=c=>({type:String,default:c});var inBrowser=typeof window<"u";function raf(c){return inBrowser?requestAnimationFrame(c):-1}function cancelRaf(c){inBrowser&&cancelAnimationFrame(c)}function doubleRaf(c){raf(()=>raf(c))}var isWindow=c=>c===window,makeDOMRect=(c,u)=>({top:0,left:0,right:c,bottom:u,width:c,height:u}),useRect=c=>{const u=vue.unref(c);if(isWindow(u)){const f=u.innerWidth,d=u.innerHeight;return makeDOMRect(f,d)}return u!=null&&u.getBoundingClientRect?u.getBoundingClientRect():makeDOMRect(0,0)};function useParent(c){const u=vue.inject(c,null);if(u){const f=vue.getCurrentInstance(),{link:d,unlink:h,internalChildren:v}=u;d(f),vue.onUnmounted(()=>h(f));const p=vue.computed(()=>v.indexOf(f));return{parent:u,index:p}}return{parent:null,index:vue.ref(-1)}}function flattenVNodes(c){const u=[],f=d=>{Array.isArray(d)&&d.forEach(h=>{var v;vue.isVNode(h)&&(u.push(h),(v=h.component)!=null&&v.subTree&&(u.push(h.component.subTree),f(h.component.subTree.children)),h.children&&f(h.children))})};return f(c),u}var findVNodeIndex=(c,u)=>{const f=c.indexOf(u);return f===-1?c.findIndex(d=>u.key!==void 0&&u.key!==null&&d.type===u.type&&d.key===u.key):f};function sortChildren(c,u,f){const d=flattenVNodes(c.subTree.children);f.sort((v,p)=>findVNodeIndex(d,v.vnode)-findVNodeIndex(d,p.vnode));const h=f.map(v=>v.proxy);u.sort((v,p)=>{const m=h.indexOf(v),g=h.indexOf(p);return m-g})}function useChildren(c){const u=vue.reactive([]),f=vue.reactive([]),d=vue.getCurrentInstance();return{children:u,linkChildren:v=>{const p=g=>{g.proxy&&(f.push(g),u.push(g.proxy),sortChildren(d,u,f))},m=g=>{const y=f.indexOf(g);u.splice(y,1),f.splice(y,1)};vue.provide(c,Object.assign({link:p,unlink:m,children:u,internalChildren:f},v))}}}function onMountedOrActivated(c){let u;vue.onMounted(()=>{c(),vue.nextTick(()=>{u=!0})}),vue.onActivated(()=>{u&&c()})}function useEventListener(c,u,f={}){if(!inBrowser)return;const{target:d=window,passive:h=!1,capture:v=!1}=f;let p=!1,m;const g=Pn=>{if(p)return;const x=vue.unref(Pn);x&&!m&&(x.addEventListener(c,u,{capture:v,passive:h}),m=!0)},y=Pn=>{if(p)return;const x=vue.unref(Pn);x&&m&&(x.removeEventListener(c,u,v),m=!1)};vue.onUnmounted(()=>y(d)),vue.onDeactivated(()=>y(d)),onMountedOrActivated(()=>g(d));let b;return vue.isRef(d)&&(b=vue.watch(d,(Pn,x)=>{y(x),g(Pn)})),()=>{b==null||b(),y(d),p=!0}}var width,height;function useWindowSize(){if(!width&&(width=vue.ref(0),height=vue.ref(0),inBrowser)){const c=()=>{width.value=window.innerWidth,height.value=window.innerHeight};c(),window.addEventListener("resize",c,{passive:!0}),window.addEventListener("orientationchange",c,{passive:!0})}return{width,height}}var overflowScrollReg=/scroll|auto|overlay/i,defaultRoot=inBrowser?window:void 0;function isElement(c){return c.tagName!=="HTML"&&c.tagName!=="BODY"&&c.nodeType===1}function getScrollParent(c,u=defaultRoot){let f=c;for(;f&&f!==u&&isElement(f);){const{overflowY:d}=window.getComputedStyle(f);if(overflowScrollReg.test(d))return f;f=f.parentNode}return u}function useScrollParent(c,u=defaultRoot){const f=vue.ref();return vue.onMounted(()=>{c.value&&(f.value=getScrollParent(c.value,u))}),f}var visibility;function usePageVisibility(){if(!visibility&&(visibility=vue.ref("visible"),inBrowser)){const c=()=>{visibility.value=document.hidden?"hidden":"visible"};c(),window.addEventListener("visibilitychange",c)}return visibility}var CUSTOM_FIELD_INJECTION_KEY=Symbol("van-field");function useCustomFieldValue(c){const u=vue.inject(CUSTOM_FIELD_INJECTION_KEY,null);u&&!u.customValue.value&&(u.customValue.value=c,vue.watch(c,()=>{u.resetValidation(),u.validateWithTrigger("onChange")}))}function getScrollTop(c){const u="scrollTop"in c?c.scrollTop:c.pageYOffset;return Math.max(u,0)}function setScrollTop(c,u){"scrollTop"in c?c.scrollTop=u:c.scrollTo(c.scrollX,u)}function getRootScrollTop(){return window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0}function setRootScrollTop(c){setScrollTop(window,c),setScrollTop(document.body,c)}function getElementTop(c,u){if(c===window)return 0;const f=u?getScrollTop(u):getRootScrollTop();return useRect(c).top+f}const isIOS=isIOS$1();function resetScroll(){isIOS&&setRootScrollTop(getRootScrollTop())}const stopPropagation=c=>c.stopPropagation();function preventDefault(c,u){(typeof c.cancelable!="boolean"||c.cancelable)&&c.preventDefault(),u&&stopPropagation(c)}function isHidden(c){const u=vue.unref(c);if(!u)return!1;const f=window.getComputedStyle(u),d=f.display==="none",h=u.offsetParent===null&&f.position!=="fixed";return d||h}const{width:windowWidth,height:windowHeight}=useWindowSize();function addUnit(c){if(isDef(c))return isNumeric(c)?`${c}px`:String(c)}function getSizeStyle(c){if(isDef(c)){if(Array.isArray(c))return{width:addUnit(c[0]),height:addUnit(c[1])};const u=addUnit(c);return{width:u,height:u}}}function getZIndexStyle(c){const u={};return c!==void 0&&(u.zIndex=+c),u}let rootFontSize;function getRootFontSize(){if(!rootFontSize){const c=document.documentElement,u=c.style.fontSize||window.getComputedStyle(c).fontSize;rootFontSize=parseFloat(u)}return rootFontSize}function convertRem(c){return c=c.replace(/rem/g,""),+c*getRootFontSize()}function convertVw(c){return c=c.replace(/vw/g,""),+c*windowWidth.value/100}function convertVh(c){return c=c.replace(/vh/g,""),+c*windowHeight.value/100}function unitToPx(c){if(typeof c=="number")return c;if(inBrowser$1){if(c.includes("rem"))return convertRem(c);if(c.includes("vw"))return convertVw(c);if(c.includes("vh"))return convertVh(c)}return parseFloat(c)}const camelizeRE=/-(\w)/g,camelize=c=>c.replace(camelizeRE,(u,f)=>f.toUpperCase()),kebabCase=c=>c.replace(/([A-Z])/g,"-$1").toLowerCase().replace(/^-/,"");function padZero(c,u=2){let f=c+"";for(;f.length<u;)f="0"+f;return f}const clamp=(c,u,f)=>Math.min(Math.max(c,u),f);function trimExtraChar(c,u,f){const d=c.indexOf(u);return d===-1?c:u==="-"&&d!==0?c.slice(0,d):c.slice(0,d+1)+c.slice(d).replace(f,"")}function formatNumber(c,u=!0,f=!0){u?c=trimExtraChar(c,".",/\./g):c=c.split(".")[0],f?c=trimExtraChar(c,"-",/-/g):c=c.replace(/-/,"");const d=u?/[^-0-9.]/g:/[^-0-9]/g;return c.replace(d,"")}const{hasOwnProperty}=Object.prototype;function assignKey(c,u,f){const d=u[f];isDef(d)&&(!hasOwnProperty.call(c,f)||!isObject$1(d)?c[f]=d:c[f]=deepAssign(Object(c[f]),d))}function deepAssign(c,u){return Object.keys(u).forEach(f=>{assignKey(c,u,f)}),c}var stdin_default$o={name:"姓名",tel:"电话",save:"保存",clear:"清空",cancel:"取消",confirm:"确认",delete:"删除",loading:"加载中...",noCoupon:"暂无优惠券",nameEmpty:"请填写姓名",addContact:"添加联系人",telInvalid:"请填写正确的电话",vanCalendar:{end:"结束",start:"开始",title:"日期选择",weekdays:["日","一","二","三","四","五","六"],monthTitle:(c,u)=>`${c}年${u}月`,rangePrompt:c=>`最多选择 ${c} 天`},vanCascader:{select:"请选择"},vanPagination:{prev:"上一页",next:"下一页"},vanPullRefresh:{pulling:"下拉即可刷新...",loosing:"释放即可刷新..."},vanSubmitBar:{label:"合计:"},vanCoupon:{unlimited:"无门槛",discount:c=>`${c}折`,condition:c=>`满${c}元可用`},vanCouponCell:{title:"优惠券",count:c=>`${c}张可用`},vanCouponList:{exchange:"兑换",close:"不使用",enable:"可用",disabled:"不可用",placeholder:"输入优惠码"},vanAddressEdit:{area:"地区",areaEmpty:"请选择地区",addressEmpty:"请填写详细地址",addressDetail:"详细地址",defaultAddress:"设为默认收货地址"},vanAddressList:{add:"新增地址"}};const lang=vue.ref("zh-CN"),messages=vue.reactive({"zh-CN":stdin_default$o}),Locale={messages(){return messages[lang.value]},use(c,u){lang.value=c,this.add({[c]:u})},add(c={}){deepAssign(messages,c)}};var stdin_default$n=Locale;function createTranslate(c){const u=camelize(c)+".";return(f,...d)=>{const h=stdin_default$n.messages(),v=get(h,u+f)||get(h,f);return isFunction(v)?v(...d):v}}function genBem(c,u){return u?typeof u=="string"?` ${c}--${u}`:Array.isArray(u)?u.reduce((f,d)=>f+genBem(c,d),""):Object.keys(u).reduce((f,d)=>f+(u[d]?genBem(c,d):""),""):""}function createBEM(c){return(u,f)=>(u&&typeof u!="string"&&(f=u,u=""),u=u?`${c}__${u}`:c,`${u}${genBem(u,f)}`)}function createNamespace(c){const u=`van-${c}`;return[u,createBEM(u),createTranslate(u)]}const BORDER="van-hairline",BORDER_TOP_BOTTOM=`${BORDER}--top-bottom`,BORDER_UNSET_TOP_BOTTOM=`${BORDER}-unset--top-bottom`,HAPTICS_FEEDBACK="van-haptics-feedback",FORM_KEY=Symbol("van-form"),TAP_OFFSET=5;function callInterceptor(c,{args:u=[],done:f,canceled:d,error:h}){if(c){const v=c.apply(null,u);isPromise(v)?v.then(p=>{p?f():d&&d()}).catch(h||noop):v?f():d&&d()}else f()}function withInstall(c){return c.install=u=>{const{name:f}=c;f&&(u.component(f,c),u.component(camelize(`-${f}`),c))},c}const POPUP_TOGGLE_KEY=Symbol();function onPopupReopen(c){const u=vue.inject(POPUP_TOGGLE_KEY,null);u&&vue.watch(u,f=>{f&&c()})}function useExpose(c){const u=vue.getCurrentInstance();u&&extend(u.proxy,c)}const routeProps={to:[String,Object],url:String,replace:Boolean};function route({to:c,url:u,replace:f,$router:d}){c&&d?d[f?"replace":"push"](c):u&&(f?location.replace(u):location.href=u)}function useRoute(){const c=vue.getCurrentInstance().proxy;return()=>route(c)}const[name$n,bem$l]=createNamespace("badge"),badgeProps={dot:Boolean,max:numericProp,tag:makeStringProp("div"),color:String,offset:Array,content:numericProp,showZero:truthProp,position:makeStringProp("top-right")};var stdin_default$m=vue.defineComponent({name:name$n,props:badgeProps,setup(c,{slots:u}){const f=()=>{if(u.content)return!0;const{content:m,showZero:g}=c;return isDef(m)&&m!==""&&(g||m!==0&&m!=="0")},d=()=>{const{dot:m,max:g,content:y}=c;if(!m&&f())return u.content?u.content():isDef(g)&&isNumeric(y)&&+y>+g?`${g}+`:y},h=m=>m.startsWith("-")?m.replace("-",""):`-${m}`,v=vue.computed(()=>{const m={background:c.color};if(c.offset){const[g,y]=c.offset,{position:b}=c,[Pn,x]=b.split("-");u.default?(typeof y=="number"?m[Pn]=addUnit(Pn==="top"?y:-y):m[Pn]=Pn==="top"?addUnit(y):h(y),typeof g=="number"?m[x]=addUnit(x==="left"?g:-g):m[x]=x==="left"?addUnit(g):h(g)):(m.marginTop=addUnit(y),m.marginLeft=addUnit(g))}return m}),p=()=>{if(f()||c.dot)return vue.createVNode("div",{class:bem$l([c.position,{dot:c.dot,fixed:!!u.default}]),style:v.value},[d()])};return()=>{if(u.default){const{tag:m}=c;return vue.createVNode(m,{class:bem$l("wrapper")},{default:()=>[u.default(),p()]})}return p()}}});const Badge=withInstall(stdin_default$m);let globalZIndex=2e3;const useGlobalZIndex=()=>++globalZIndex,setGlobalZIndex=c=>{globalZIndex=c},[name$m,bem$k]=createNamespace("config-provider"),CONFIG_PROVIDER_KEY=Symbol(name$m),configProviderProps={tag:makeStringProp("div"),theme:makeStringProp("light"),zIndex:Number,themeVars:Object,themeVarsDark:Object,themeVarsLight:Object,themeVarsScope:makeStringProp("local"),iconPrefix:String};function insertDash(c){return c.replace(/([a-zA-Z])(\d)/g,"$1-$2")}function mapThemeVarsToCSSVars(c){const u={};return Object.keys(c).forEach(f=>{const d=insertDash(kebabCase(f));u[`--van-${d}`]=c[f]}),u}function syncThemeVarsOnRoot(c={},u={}){Object.keys(c).forEach(f=>{c[f]!==u[f]&&document.documentElement.style.setProperty(f,c[f])}),Object.keys(u).forEach(f=>{c[f]||document.documentElement.style.removeProperty(f)})}vue.defineComponent({name:name$m,props:configProviderProps,setup(c,{slots:u}){const f=vue.computed(()=>mapThemeVarsToCSSVars(extend({},c.themeVars,c.theme==="dark"?c.themeVarsDark:c.themeVarsLight)));if(inBrowser$1){const d=()=>{document.documentElement.classList.add(`van-theme-${c.theme}`)},h=(v=c.theme)=>{document.documentElement.classList.remove(`van-theme-${v}`)};vue.watch(()=>c.theme,(v,p)=>{p&&h(p),d()},{immediate:!0}),vue.onActivated(d),vue.onDeactivated(h),vue.onBeforeUnmount(h),vue.watch(f,(v,p)=>{c.themeVarsScope==="global"&&syncThemeVarsOnRoot(v,p)}),vue.watch(()=>c.themeVarsScope,(v,p)=>{p==="global"&&syncThemeVarsOnRoot({},f.value),v==="global"&&syncThemeVarsOnRoot(f.value,{})}),c.themeVarsScope==="global"&&syncThemeVarsOnRoot(f.value,{})}return vue.provide(CONFIG_PROVIDER_KEY,c),vue.watchEffect(()=>{c.zIndex!==void 0&&setGlobalZIndex(c.zIndex)}),()=>vue.createVNode(c.tag,{class:bem$k(),style:c.themeVarsScope==="local"?f.value:void 0},{default:()=>{var d;return[(d=u.default)==null?void 0:d.call(u)]}})}});const[name$l,bem$j]=createNamespace("icon"),isImage=c=>c==null?void 0:c.includes("/"),iconProps={dot:Boolean,tag:makeStringProp("i"),name:String,size:numericProp,badge:numericProp,color:String,badgeProps:Object,classPrefix:String};var stdin_default$l=vue.defineComponent({name:name$l,props:iconProps,setup(c,{slots:u}){const f=vue.inject(CONFIG_PROVIDER_KEY,null),d=vue.computed(()=>c.classPrefix||(f==null?void 0:f.iconPrefix)||bem$j());return()=>{const{tag:h,dot:v,name:p,size:m,badge:g,color:y}=c,b=isImage(p);return vue.createVNode(Badge,vue.mergeProps({dot:v,tag:h,class:[d.value,b?"":`${d.value}-${p}`],style:{color:y,fontSize:addUnit(m)},content:g},c.badgeProps),{default:()=>{var Pn;return[(Pn=u.default)==null?void 0:Pn.call(u),b&&vue.createVNode("img",{class:bem$j("image"),src:p},null)]}})}}});const Icon=withInstall(stdin_default$l),[name$k,bem$i]=createNamespace("loading"),SpinIcon=Array(12).fill(null).map((c,u)=>vue.createVNode("i",{class:bem$i("line",String(u+1))},null)),CircularIcon=vue.createVNode("svg",{class:bem$i("circular"),viewBox:"25 25 50 50"},[vue.createVNode("circle",{cx:"50",cy:"50",r:"20",fill:"none"},null)]),loadingProps={size:numericProp,type:makeStringProp("circular"),color:String,vertical:Boolean,textSize:numericProp,textColor:String};var stdin_default$k=vue.defineComponent({name:name$k,props:loadingProps,setup(c,{slots:u}){const f=vue.computed(()=>extend({color:c.color},getSizeStyle(c.size))),d=()=>{const v=c.type==="spinner"?SpinIcon:CircularIcon;return vue.createVNode("span",{class:bem$i("spinner",c.type),style:f.value},[u.icon?u.icon():v])},h=()=>{var v;if(u.default)return vue.createVNode("span",{class:bem$i("text"),style:{fontSize:addUnit(c.textSize),color:(v=c.textColor)!=null?v:c.color}},[u.default()])};return()=>{const{type:v,vertical:p}=c;return vue.createVNode("div",{class:bem$i([v,{vertical:p}]),"aria-live":"polite","aria-busy":!0},[d(),h()])}}});const Loading=withInstall(stdin_default$k),popupSharedProps={show:Boolean,zIndex:numericProp,overlay:truthProp,duration:numericProp,teleport:[String,Object],lockScroll:truthProp,lazyRender:truthProp,beforeClose:Function,overlayStyle:Object,overlayClass:unknownProp,transitionAppear:Boolean,closeOnClickOverlay:truthProp};function getDirection(c,u){return c>u?"horizontal":u>c?"vertical":""}function useTouch(){const c=vue.ref(0),u=vue.ref(0),f=vue.ref(0),d=vue.ref(0),h=vue.ref(0),v=vue.ref(0),p=vue.ref(""),m=vue.ref(!0),g=()=>p.value==="vertical",y=()=>p.value==="horizontal",b=()=>{f.value=0,d.value=0,h.value=0,v.value=0,p.value="",m.value=!0};return{move:vn=>{const J=vn.touches[0];f.value=(J.clientX<0?0:J.clientX)-c.value,d.value=J.clientY-u.value,h.value=Math.abs(f.value),v.value=Math.abs(d.value);const j=10;(!p.value||h.value<j&&v.value<j)&&(p.value=getDirection(h.value,v.value)),m.value&&(h.value>TAP_OFFSET||v.value>TAP_OFFSET)&&(m.value=!1)},start:vn=>{b(),c.value=vn.touches[0].clientX,u.value=vn.touches[0].clientY},reset:b,startX:c,startY:u,deltaX:f,deltaY:d,offsetX:h,offsetY:v,direction:p,isVertical:g,isHorizontal:y,isTap:m}}let totalLockCount=0;const BODY_LOCK_CLASS="van-overflow-hidden";function useLockScroll(c,u){const f=useTouch(),d="01",h="10",v=b=>{f.move(b);const Pn=f.deltaY.value>0?h:d,x=getScrollParent(b.target,c.value),{scrollHeight:vn,offsetHeight:J,scrollTop:j}=x;let Fn="11";j===0?Fn=J>=vn?"00":"01":j+J>=vn&&(Fn="10"),Fn!=="11"&&f.isVertical()&&!(parseInt(Fn,2)&parseInt(Pn,2))&&preventDefault(b,!0)},p=()=>{document.addEventListener("touchstart",f.start),document.addEventListener("touchmove",v,{passive:!1}),totalLockCount||document.body.classList.add(BODY_LOCK_CLASS),totalLockCount++},m=()=>{totalLockCount&&(document.removeEventListener("touchstart",f.start),document.removeEventListener("touchmove",v),totalLockCount--,totalLockCount||document.body.classList.remove(BODY_LOCK_CLASS))},g=()=>u()&&p(),y=()=>u()&&m();onMountedOrActivated(g),vue.onDeactivated(y),vue.onBeforeUnmount(y),vue.watch(u,b=>{b?p():m()})}function useLazyRender(c){const u=vue.ref(!1);return vue.watch(c,f=>{f&&(u.value=f)},{immediate:!0}),f=>()=>u.value?f():null}const useScopeId=()=>{var c;const{scopeId:u}=((c=vue.getCurrentInstance())==null?void 0:c.vnode)||{};return u?{[u]:""}:null},[name$j,bem$h]=createNamespace("overlay"),overlayProps={show:Boolean,zIndex:numericProp,duration:numericProp,className:unknownProp,lockScroll:truthProp,lazyRender:truthProp,customStyle:Object,teleport:[String,Object]};var stdin_default$j=vue.defineComponent({name:name$j,props:overlayProps,setup(c,{slots:u}){const f=vue.ref(),d=useLazyRender(()=>c.show||!c.lazyRender),h=p=>{c.lockScroll&&preventDefault(p,!0)},v=d(()=>{var p;const m=extend(getZIndexStyle(c.zIndex),c.customStyle);return isDef(c.duration)&&(m.animationDuration=`${c.duration}s`),vue.withDirectives(vue.createVNode("div",{ref:f,style:m,class:[bem$h(),c.className]},[(p=u.default)==null?void 0:p.call(u)]),[[vue.vShow,c.show]])});return useEventListener("touchmove",h,{target:f}),()=>{const p=vue.createVNode(vue.Transition,{name:"van-fade",appear:!0},{default:v});return c.teleport?vue.createVNode(vue.Teleport,{to:c.teleport},{default:()=>[p]}):p}}});const Overlay=withInstall(stdin_default$j),popupProps=extend({},popupSharedProps,{round:Boolean,position:makeStringProp("center"),closeIcon:makeStringProp("cross"),closeable:Boolean,transition:String,iconPrefix:String,closeOnPopstate:Boolean,closeIconPosition:makeStringProp("top-right"),safeAreaInsetTop:Boolean,safeAreaInsetBottom:Boolean}),[name$i,bem$g]=createNamespace("popup");var stdin_default$i=vue.defineComponent({name:name$i,inheritAttrs:!1,props:popupProps,emits:["open","close","opened","closed","keydown","update:show","clickOverlay","clickCloseIcon"],setup(c,{emit:u,attrs:f,slots:d}){let h,v;const p=vue.ref(),m=vue.ref(),g=useLazyRender(()=>c.show||!c.lazyRender),y=vue.computed(()=>{const Vn={zIndex:p.value};if(isDef(c.duration)){const Wn=c.position==="center"?"animationDuration":"transitionDuration";Vn[Wn]=`${c.duration}s`}return Vn}),b=()=>{h||(h=!0,p.value=c.zIndex!==void 0?+c.zIndex:useGlobalZIndex(),u("open"))},Pn=()=>{h&&callInterceptor(c.beforeClose,{done(){h=!1,u("close"),u("update:show",!1)}})},x=Vn=>{u("clickOverlay",Vn),c.closeOnClickOverlay&&Pn()},vn=()=>{if(c.overlay)return vue.createVNode(Overlay,vue.mergeProps({show:c.show,class:c.overlayClass,zIndex:p.value,duration:c.duration,customStyle:c.overlayStyle,role:c.closeOnClickOverlay?"button":void 0,tabindex:c.closeOnClickOverlay?0:void 0},useScopeId(),{onClick:x}),{default:d["overlay-content"]})},J=Vn=>{u("clickCloseIcon",Vn),Pn()},j=()=>{if(c.closeable)return vue.createVNode(Icon,{role:"button",tabindex:0,name:c.closeIcon,class:[bem$g("close-icon",c.closeIconPosition),HAPTICS_FEEDBACK],classPrefix:c.iconPrefix,onClick:J},null)};let Fn;const Bn=()=>{Fn&&clearTimeout(Fn),Fn=setTimeout(()=>{u("opened")})},w=()=>u("closed"),gn=Vn=>u("keydown",Vn),re=g(()=>{var Vn;const{round:Wn,position:Gn,safeAreaInsetTop:Zn,safeAreaInsetBottom:Xn}=c;return vue.withDirectives(vue.createVNode("div",vue.mergeProps({ref:m,style:y.value,role:"dialog",tabindex:0,class:[bem$g({round:Wn,[Gn]:Gn}),{"van-safe-area-top":Zn,"van-safe-area-bottom":Xn}],onKeydown:gn},f,useScopeId()),[(Vn=d.default)==null?void 0:Vn.call(d),j()]),[[vue.vShow,c.show]])}),Rn=()=>{const{position:Vn,transition:Wn,transitionAppear:Gn}=c,Zn=Vn==="center"?"van-fade":`van-popup-slide-${Vn}`;return vue.createVNode(vue.Transition,{name:Wn||Zn,appear:Gn,onAfterEnter:Bn,onAfterLeave:w},{default:re})};return vue.watch(()=>c.show,Vn=>{Vn&&!h&&(b(),f.tabindex===0&&vue.nextTick(()=>{var Wn;(Wn=m.value)==null||Wn.focus()})),!Vn&&h&&(h=!1,u("close"))}),useExpose({popupRef:m}),useLockScroll(m,()=>c.show&&c.lockScroll),useEventListener("popstate",()=>{c.closeOnPopstate&&(Pn(),v=!1)}),vue.onMounted(()=>{c.show&&b()}),vue.onActivated(()=>{v&&(u("update:show",!0),v=!1)}),vue.onDeactivated(()=>{c.show&&c.teleport&&(Pn(),v=!0)}),vue.provide(POPUP_TOGGLE_KEY,()=>c.show),()=>c.teleport?vue.createVNode(vue.Teleport,{to:c.teleport},{default:()=>[vn(),Rn()]}):vue.createVNode(vue.Fragment,null,[vn(),Rn()])}});const Popup=withInstall(stdin_default$i),[name$h,bem$f,t$1]=createNamespace("picker"),getFirstEnabledOption=c=>c.find(u=>!u.disabled)||c[0];function getColumnsType(c,u){const f=c[0];if(f){if(Array.isArray(f))return"multiple";if(u.children in f)return"cascade"}return"default"}function findIndexOfEnabledOption(c,u){u=clamp(u,0,c.length);for(let f=u;f<c.length;f++)if(!c[f].disabled)return f;for(let f=u-1;f>=0;f--)if(!c[f].disabled)return f;return 0}const isOptionExist=(c,u,f)=>u!==void 0&&!!c.find(d=>d[f.value]===u);function findOptionByValue(c,u,f){const d=c.findIndex(v=>v[f.value]===u),h=findIndexOfEnabledOption(c,d);return c[h]}function formatCascadeColumns(c,u,f){const d=[];let h={[u.children]:c},v=0;for(;h&&h[u.children];){const p=h[u.children],m=f.value[v];if(h=isDef(m)?findOptionByValue(p,m,u):void 0,!h&&p.length){const g=getFirstEnabledOption(p)[u.value];h=findOptionByValue(p,g,u)}v++,d.push(p)}return d}function getElementTranslateY(c){const{transform:u}=window.getComputedStyle(c),f=u.slice(7,u.length-1).split(", ")[5];return Number(f)}function assignDefaultFields(c){return extend({text:"text",value:"value",children:"children"},c)}const DEFAULT_DURATION=200,MOMENTUM_TIME=300,MOMENTUM_DISTANCE=15,[name$g,bem$e]=createNamespace("picker-column"),PICKER_KEY=Symbol(name$g);var stdin_default$h=vue.defineComponent({name:name$g,props:{value:numericProp,fields:makeRequiredProp(Object),options:makeArrayProp(),readonly:Boolean,allowHtml:Boolean,optionHeight:makeRequiredProp(Number),swipeDuration:makeRequiredProp(numericProp),visibleOptionNum:makeRequiredProp(numericProp)},emits:["change","clickOption","scrollInto"],setup(c,{emit:u,slots:f}){let d,h,v,p,m;const g=vue.ref(),y=vue.ref(),b=vue.ref(0),Pn=vue.ref(0),x=useTouch(),vn=()=>c.options.length,J=()=>c.optionHeight*(+c.visibleOptionNum-1)/2,j=Xn=>{let er=findIndexOfEnabledOption(c.options,Xn);const Jn=-er*c.optionHeight,ir=()=>{er>vn()-1&&(er=findIndexOfEnabledOption(c.options,Xn));const dr=c.options[er][c.fields.value];dr!==c.value&&u("change",dr)};d&&Jn!==b.value?m=ir:ir(),b.value=Jn},Fn=()=>c.readonly||!c.options.length,Bn=Xn=>{d||Fn()||(m=null,Pn.value=DEFAULT_DURATION,j(Xn),u("clickOption",c.options[Xn]))},w=Xn=>clamp(Math.round(-Xn/c.optionHeight),0,vn()-1),gn=vue.computed(()=>w(b.value)),re=(Xn,er)=>{const Jn=Math.abs(Xn/er);Xn=b.value+Jn/.003*(Xn<0?-1:1);const ir=w(Xn);Pn.value=+c.swipeDuration,j(ir)},Rn=()=>{d=!1,Pn.value=0,m&&(m(),m=null)},Vn=Xn=>{if(!Fn()){if(x.start(Xn),d){const er=getElementTranslateY(y.value);b.value=Math.min(0,er-J())}Pn.value=0,h=b.value,v=Date.now(),p=h,m=null}},Wn=Xn=>{if(Fn())return;x.move(Xn),x.isVertical()&&(d=!0,preventDefault(Xn,!0));const er=clamp(h+x.deltaY.value,-(vn()*c.optionHeight),c.optionHeight),Jn=w(er);Jn!==gn.value&&u("scrollInto",c.options[Jn]),b.value=er;const ir=Date.now();ir-v>MOMENTUM_TIME&&(v=ir,p=er)},Gn=()=>{if(Fn())return;const Xn=b.value-p,er=Date.now()-v;if(er<MOMENTUM_TIME&&Math.abs(Xn)>MOMENTUM_DISTANCE){re(Xn,er);return}const ir=w(b.value);Pn.value=DEFAULT_DURATION,j(ir),setTimeout(()=>{d=!1},0)},Zn=()=>{const Xn={height:`${c.optionHeight}px`};return c.options.map((er,Jn)=>{const ir=er[c.fields.text],{disabled:dr}=er,or=er[c.fields.value],Hn={role:"button",style:Xn,tabindex:dr?-1:0,class:[bem$e("item",{disabled:dr,selected:or===c.value}),er.className],onClick:()=>Bn(Jn)},Kn={class:"van-ellipsis",[c.allowHtml?"innerHTML":"textContent"]:ir};return vue.createVNode("li",Hn,[f.option?f.option(er,Jn):vue.createVNode("div",Kn,null)])})};return useParent(PICKER_KEY),useExpose({stopMomentum:Rn}),vue.watchEffect(()=>{const Xn=d?Math.floor(-b.value/c.optionHeight):c.options.findIndex(ir=>ir[c.fields.value]===c.value),er=findIndexOfEnabledOption(c.options,Xn),Jn=-er*c.optionHeight;d&&er<Xn&&Rn(),b.value=Jn}),useEventListener("touchmove",Wn,{target:g}),()=>vue.createVNode("div",{ref:g,class:bem$e(),onTouchstartPassive:Vn,onTouchend:Gn,onTouchcancel:Gn},[vue.createVNode("ul",{ref:y,style:{transform:`translate3d(0, ${b.value+J()}px, 0)`,transitionDuration:`${Pn.value}ms`,transitionProperty:Pn.value?"all":"none"},class:bem$e("wrapper"),onTransitionend:Rn},[Zn()])])}});const[name$f]=createNamespace("picker-toolbar"),pickerToolbarProps={title:String,cancelButtonText:String,confirmButtonText:String},pickerToolbarSlots=["cancel","confirm","title","toolbar"],pickerToolbarPropKeys=Object.keys(pickerToolbarProps);var stdin_default$g=vue.defineComponent({name:name$f,props:pickerToolbarProps,emits:["confirm","cancel"],setup(c,{emit:u,slots:f}){const d=()=>{if(f.title)return f.title();if(c.title)return vue.createVNode("div",{class:[bem$f("title"),"van-ellipsis"]},[c.title])},h=()=>u("cancel"),v=()=>u("confirm"),p=()=>{var g;const y=(g=c.cancelButtonText)!=null?g:t$1("cancel");if(!(!f.cancel&&!y))return vue.createVNode("button",{type:"button",class:[bem$f("cancel"),HAPTICS_FEEDBACK],onClick:h},[f.cancel?f.cancel():y])},m=()=>{var g;const y=(g=c.confirmButtonText)!=null?g:t$1("confirm");if(!(!f.confirm&&!y))return vue.createVNode("button",{type:"button",class:[bem$f("confirm"),HAPTICS_FEEDBACK],onClick:v},[f.confirm?f.confirm():y])};return()=>vue.createVNode("div",{class:bem$f("toolbar")},[f.toolbar?f.toolbar():[p(),d(),m()]])}});const useSyncPropRef=(c,u)=>{const f=vue.ref(c());return vue.watch(c,d=>{d!==f.value&&(f.value=d)}),vue.watch(f,d=>{d!==c()&&u(d)}),f};/**
182
+ `)},vn=vue.ref(!1),J=vue.ref("");let j=new AbortController;const Fn=(Qn,ar)=>{const cr=j.signal;vn.value=!0,d.value=Qn,u({name:Qn,signal:cr}).then(Yn=>{var lr,hr;if(Yn){const mr=((hr=(lr=Yn==null?void 0:Yn.data)==null?void 0:lr.data)==null?void 0:hr.rows)||[];let ur="";for(const gr of mr){const fr=x(gr)||[];if(fr!=null&&fr.length)for(const vr of fr)ur+=`<div style="word-break: break-all;white-space: normal;">${vr}</div>`}ur=`<div style="max-width:200px;">${ur}</div>`,h.value=ur,ar(vue.unref(J),ur)}else cr.aborted?h.value="Loading":h.value=Qn,ar(vue.unref(J),h.value);vn.value=!1})},Bn=vue.ref(),w=vue.computed(()=>c.dataType==="request"?Bn.value:c.data),gn=vue.computed(()=>{const Qn=[],{mapAreaStyleConfig:ar}=c;if(ar!=null&&ar.length)for(const cr of ar)Qn.push({...cr,key:nanoid(6)});return Qn}),re=vue.computed(()=>{const Qn=[];for(const ar of vue.unref(gn)){let cr="";ar.value1&&(cr+=`value ${ar.rule1} ${ar.value1}`),ar.value2&&(cr+=`${ar.value1?"&&":""} value ${ar.rule2} ${ar.value2}`),cr&&Qn.push({rule:cr,color:ar.color,key:ar.key})}return Qn.reverse()}),Rn=vue.computed(()=>{var cr;const Qn=[],{areaStyleKeyName:ar}=c;if((cr=vue.unref(w))!=null&&cr.length)for(const Yn of vue.unref(w)){const lr=Yn[ar];if(lr||lr===0){const hr=vue.unref(re).find(mr=>pn(mr.rule,{value:lr}));hr&&Qn.push({name:Yn.name,itemStyle:{areaColor:vue.unref(y).includes(hr.key)?c.geoItemStyleAreaColor:hr.color}})}}return Qn}),Vn=vue.computed(()=>{const Qn=c.geoCenter;let ar;return typeof Qn=="string"&&Qn!==""&&(ar=Qn.split(",")),{tooltip:{show:!0},graphic:[{type:"image",style:{width:parseFloat(c.width),height:parseFloat(c.height),image:vue.unref(g)},top:"center"}],geo:{zoom:c.geoZoom,roam:c.geoRoam,center:ar,map:`map-${c.id}`,selectedMode:"single",tooltip:{show:c.tooltipShow,trigger:"item",backgroundColor:c.tooltipBackgroundColor,borderColor:"transparent",textStyle:{color:c.tooltipTextStyleColor},formatter:(cr,Yn,lr)=>{J.value=Yn;const{name:hr=""}=cr,{requestUrl:mr}=c.tooltipRequestData;if(!mr){let ur="",gr=c.tooltipFormatter;gr===""&&(gr="{name}:{value}");const fr=vue.unref(w).find(vr=>vr.name===hr);return fr?(ur+=hn(gr,{textData:{name:hr,...fr}},{useNewline:!0,useSpace:!0}),ur):hr}if(vue.unref(vn))vue.unref(d)!==hr&&(j.abort(),j=new AbortController);else{if(vue.unref(d)===hr)return vue.unref(h);Fn(hr,lr)}return"Loading"}},label:{show:c.geoLabelShow,color:c.geoLabelColor,fontSize:c.geoLabelFontSize},itemStyle:{areaColor:vue.unref(b),borderColor:c.geoItemStyleBorderColor,borderWidth:c.geoItemStyleBorderWidth,shadowColor:c.geoItemStyleShadowColor,shadowBlur:c.geoItemStyleShadowBlur,shadowOffsetX:c.geoItemStyleShadowOffsetX,shadowOffsetY:c.geoItemStyleShadowOffsetY},emphasis:{disabled:c.geoEmphasisDisabled,label:{color:c.geoEmphasisLabelColor},itemStyle:{areaColor:c.geoEmphasisItemStyleAreaColor,borderColor:c.geoEmphasisItemStyleBorderColor}},regions:Rn.value},series:[{type:"scatter",coordinateSystem:"geo",itemStyle:{color:c.itemStyleColor},symbol:vue.unref(Pn),symbolSize:[c.symbolWidth,c.symbolHeight],label:{show:c.labelShow,fontSize:c.labelFontSize,formatter:c.labelFormatter,color:c.labelColor},tooltip:{show:c.tooltipShow,textStyle:{color:c.tooltipTextStyleColor}},data:w.value}]}}),Wn=vue.ref(!1),Gn=async()=>{var cr;Wn.value=!1;const Qn=c.mapJson,ar=`map-${c.id}`;if(Qn!=null&&Qn.path){const Yn=await request(((cr=window==null?void 0:window.config)==null?void 0:cr.uploadPath)+Qn.path);core$1.registerMap(ar,(Yn==null?void 0:Yn.data)||{})}else core$1.registerMap(ar,{});Wn.value=!0};vue.watch(()=>c.mapJson,()=>{Gn()},{immediate:!0,deep:!0});const Zn=async Qn=>{var Yn,lr,hr,mr;const ar=(lr=(Yn=Qn==null?void 0:Qn.data)==null?void 0:Yn.data)==null?void 0:lr.rows,cr=`map-${c.id}`;if(ar!=null&&ar.path){const ur=await request(ar.path);core$1.registerMap(cr,(ur==null?void 0:ur.data)||{})}else if(Array.isArray(ar))if(Bn.value=ar,(hr=ar[0])!=null&&hr.mapUrl){const ur=await request((mr=ar[0])==null?void 0:mr.mapUrl);core$1.registerMap(cr,(ur==null?void 0:ur.data)||{})}else core$1.registerMap(cr,{});else core$1.registerMap(cr,{});vue.nextTick(()=>{Wn.value=!0})},Xn=useRequestData(c),er=async()=>{if(c.dataType==="request"){Wn.value=!1;try{const Qn=await Xn();Zn(Qn)}catch(Qn){console.error(Qn),Wn.value=!0}}},Jn=async()=>{const Qn=ir(c.id);switch(dr(c.id,{...Qn,RECORD:{}}),c.dataType){case"static":Gn();break;case"request":await er();break}},{getGlobalModel:ir,setGlobalModel:dr}=vue.inject(GLOBAL_MODEL,{getGlobalModel:Qn=>{},setGlobalModel:(Qn,ar)=>{}}),Hn=useEmitEvent(c)("click",()=>{var ar,cr;const Qn=ir(c.id);((ar=Qn==null?void 0:Qn.RECORD)==null?void 0:ar.name)===((cr=vue.unref(f))==null?void 0:cr.name)?dr(c.id,{...Qn,RECORD:{}}):dr(c.id,{...Qn,RECORD:vue.unref(f)})});useOnEvent(c,{refreshData:Jn});const{setRequest:Kn}=vue.inject(REQUEST_MODEL,{setRequest:Qn=>{}});typeof Kn=="function"&&Kn({id:c.id,requestFn:Jn,sortNum:c.requestSort});const zn=()=>{vue.unref(f)&&Hn()},qn=(Qn={})=>{Qn.componentType==="geo"&&Qn.region?f.value=Qn.region:f.value=null},tr=vue.computed(()=>{const Qn={},{legendTop:ar,legendLeft:cr,legendBoxShadow:Yn}=c;return Yn&&(Qn.boxShadow=Yn),ar==="bottom"?Qn.bottom=0:ar==="top"&&(Qn.top=0),cr==="left"?Qn.left=0:cr==="right"&&(Qn.right=0),Qn}),Un=vue.computed(()=>{const Qn={};return c.legendOrient==="vertical"&&(Qn.flexDirection="column"),Qn}),nr=vue.computed(()=>{var Qn;if((Qn=vue.unref(gn))!=null&&Qn.length){const ar=[];for(const cr of vue.unref(gn)){const{value1:Yn,value2:lr,rule1:hr,rule2:mr,color:ur}=cr;Yn&&lr?+Yn<+lr?hr.includes(">")&&mr.includes("<")&&ar.push({text:`${Yn} - ${lr}`,color:ur,key:cr.key}):+Yn>+lr?hr.includes("<")&&mr.includes(">")&&ar.push({text:`${lr} - ${Yn}`,color:ur,key:cr.key}):+Yn==+lr&&ar.push({text:`${Yn} - ${lr}`,color:ur,key:cr.key}):Yn?ar.push({text:`${hr} ${Yn}`,color:ur,key:cr.key}):lr&&ar.push({text:`${mr} ${lr}`,color:ur,key:cr.key})}return ar}else return[]});return{option:Vn,style:v,isLoadedData:Wn,geoBackgroundImageRef:p,myGeoBackgroundImage:m,mapLegendStyle:tr,legendContainerStyle:Un,mapLegendList:nr,hiddenLegendKey:y,customClick:zn,onMouseOver:qn,handleToggleVisible:Qn=>{const ar=vue.unref(y).findIndex(cr=>cr===Qn);ar>=0?y.value.splice(ar,1):y.value.push(Qn)}}}}),Map_vue_vue_type_style_index_0_scoped_795834b9_lang="",_hoisted_1=["src"],_hoisted_2=["title","onClick"];function _sfc_render$4(c,u,f,d,h,v){const p=vue.resolveComponent("echarts");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-map",style:vue.normalizeStyle(c.style)},[c.isLoadedData?(vue.openBlock(),vue.createBlock(p,{key:0,option:c.option,"update-options":{notMerge:!0},autoresize:"","onZr:click":c.customClick,onMouseover:c.onMouseOver},null,8,["option","onZr:click","onMouseover"])):vue.createCommentVNode("",!0),vue.withDirectives(vue.createElementVNode("img",{ref:"geoBackgroundImageRef",src:c.myGeoBackgroundImage},null,8,_hoisted_1),[[vue.vShow,!1]]),c.legendShow?(vue.openBlock(),vue.createElementBlock("div",{key:1,class:"map-legend",style:vue.normalizeStyle(c.mapLegendStyle)},[vue.createElementVNode("div",{class:"legend-title",style:vue.normalizeStyle({color:c.legendTitleColor,fontSize:c.legendTitleFontSize})},vue.toDisplayString(c.legendTitle),5),vue.createElementVNode("div",{class:"legend-container",style:vue.normalizeStyle(c.legendContainerStyle)},[vue.createElementVNode("div",{style:vue.normalizeStyle({color:c.legendTextStyleColor,marginRight:c.legendOrient==="horizontal"?"5px":"",marginBottom:c.legendOrient==="vertical"?"5px":""})},vue.toDisplayString(c.legendFrontText),5),(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(c.mapLegendList,(m,g)=>(vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(["legend-item",{hidden:c.hiddenLegendKey.includes(m.key)}]),style:vue.normalizeStyle({marginRight:c.legendOrient==="horizontal"?"10px":"",marginLeft:c.legendOrient==="horizontal"?"10px":"",marginBottom:c.legendOrient==="vertical"?"10px":"",marginTop:c.legendOrient==="vertical"?"10px":""}),key:g,title:c.legendTextShow?"":m.text,onClick:y=>c.handleToggleVisible(m.key)},[vue.createElementVNode("div",{class:"color-block",style:vue.normalizeStyle({backgroundColor:m.color,width:"20px",height:c.mapLegendType==="rect"?"16px":"20px",borderRadius:c.mapLegendType==="circle"?"50%":"4px"})},null,4),c.legendTextShow?(vue.openBlock(),vue.createElementBlock("span",{key:0,class:"legend-item-text",style:vue.normalizeStyle({color:c.legendTextStyleColor,marginLeft:"10px"})},vue.toDisplayString(m.text),5)):vue.createCommentVNode("",!0)],14,_hoisted_2))),128)),vue.createElementVNode("div",{style:vue.normalizeStyle({color:c.legendTextStyleColor,marginLeft:c.legendOrient==="horizontal"?"5px":"",marginTop:c.legendOrient==="vertical"?"5px":""})},vue.toDisplayString(c.legendAfterText),5)],4)],4)):vue.createCommentVNode("",!0)],4)}const Map$1=_export_sfc$1(_sfc_main$4,[["render",_sfc_render$4],["__scopeId","data-v-795834b9"]]),EcanMap=withInstall$1(Map$1),dataSelectProps={...props$1,name:"下拉框选择器-数据",keyName:"下拉框选择器-数据",width:"120px",height:"33px",type:"ecanDataSelect",mode:void 0,data:[{label:"选项一",value:"1"},{label:"选项二",value:"2"},{label:"选项三",value:"3"}],value:void 0,dataFieldNames:{label:"label",value:"value",options:""},maxTagCount:3,autoClearSearchValue:!0,placeholder:"请选择",selectFirstOption:!1,graphicConfig:{},valueType:"value",isAllowClear:!0,optionFontSize:"14px"},dataSelectComponentProps=transformToComponentProps(dataSelectProps),dataSelectEvents=["selectChange","refreshData"],_sfc_main$3=vue.defineComponent({name:"EcanDataSelect",components:{ASelect:antDesignVue.Select,ASelectOption:antDesignVue.SelectOption},props:{...dataSelectComponentProps},setup(c,{expose:u}){var dr;const f=usePickComponentStyle(c),d=()=>document.getElementById("ProviderConfig")||document.body,h=vue.ref(c.data||[]),v=vue.ref(),p=vue.computed({get:()=>{var Hn;const{mode:or}=c;return(Hn=vue.unref(h))!=null&&Hn.length?v.value:or==="multiple"||or==="tags"||or==="combobox"?[]:""},set:or=>{v.value=or}}),{getGlobalModel:m,setGlobalModel:g,getRecordValueByKeyName:y}=vue.inject(GLOBAL_MODEL,{getGlobalModel:or=>{},setGlobalModel:(or,Hn)=>{},getRecordValueByKeyName:or=>{}}),b=c.dataFieldNames;vue.watch(()=>[c.value,c.mode,c.selectFirstOption,c.valueType,h.value],()=>{const{mode:or,selectFirstOption:Hn,value:Kn}=c,zn=y(Kn),qn=b.value;if(or==="multiple"||or==="tags"||or==="combobox"){if(zn)v.value=zn.split(",");else if(Hn){const tr=vue.unref(h)[0];v.value=tr?[tr[qn]]:[]}}else if(zn)v.value=zn;else if(Hn){const tr=vue.unref(h)[0];v.value=tr?tr[qn]:""}},{immediate:!0});const Pn=(or,Hn)=>{const Kn=b.label,zn=b.value;let qn;const tr=Hn[Kn],Un=Hn[zn];return tr!=null?qn=tr:Un!=null&&(qn=Un),(qn==null?void 0:qn.toLowerCase().indexOf(or==null?void 0:or.toLowerCase()))>=0},x=or=>{const{label:Hn,value:Kn,options:zn}=c.dataFieldNames;if(zn&&Array.isArray(or))if(or.some(qn=>zn in qn)){const qn={},tr=[];or.forEach(Un=>{qn[Un[zn]]||(qn[Un[zn]]=[]),qn[Un[zn]].push({[Hn]:Un[Hn],[Kn]:Un[Kn]})});for(const Un in qn)tr.push({[Hn]:Un,[zn]:qn[Un]});return tr}else return or;else if(!zn)return or},vn=vue.ref(!1),J=or=>{var Hn,Kn;if(h.value=x(((Kn=(Hn=or==null?void 0:or.data)==null?void 0:Hn.data)==null?void 0:Kn.rows)||[]),c.selectFirstOption){let zn=vue.unref(h)[0];if(b.options){const qn=zn[b.options];qn&&qn.length&&(zn=qn[0])}v.value=zn[b.value]}},j=useRequestData(c),Fn=async()=>{if(c.dataType==="request"){vn.value=!0;try{const or=await j();J(or)}catch(or){console.error(or)}finally{vn.value=!1}}},Bn=vue.computed(()=>{let or=v.value;if(c.valueType==="label"&&vue.unref(v)&&vue.unref(h)){const Hn=b.label,Kn=b.value;if(c.mode==="multiple")or=vue.unref(h).filter(zn=>vue.unref(v).includes(zn[Kn])).map(zn=>zn[Hn]);else{const zn=vue.unref(h).find(qn=>vue.unref(v)===qn[Kn]);zn&&(or=zn[Hn])}}return or}),w=vue.ref([]),gn=vue.computed(()=>{const or={};if(c.mode!=="multiple"){const Hn=vue.unref(w).find(Kn=>Kn.value===vue.unref(v));Hn&&(or.itemCodes=Hn.item_codes)}return or}),re=vue.computed(()=>{const{value:or,label:Hn}=b,Kn=vue.unref(h).find(zn=>zn[or]===vue.unref(p));return Kn?{label:Kn[Hn],value:Kn[or]}:{}}),{pageId:Rn}=vue.inject("templateOperate",{pageId:""})||{};g(c.id,{type:c.type,dataType:c.dataType,value:Bn,label:(dr=vue.unref(re))==null?void 0:dr.label,...vue.unref(gn),recordData:vue.unref(re)});const Vn=useEmitEvent(c),Wn=Vn("selectChange",()=>{const or=c.id,Hn=m(or);g(or,{...Hn,...vue.unref(gn),value:Bn,RECORD:Bn,recordData:vue.unref(re),dataType:c.dataType,type:c.type});const Kn=getNewValueFromUrlParams(Rn,c.keyName,"value");Kn&&(p.value=Kn)}),Gn=Vn("refreshData",(or=[])=>{if(h.value=x(or),c.selectFirstOption){let Hn=vue.unref(h)[0];if(b.options){const Kn=Hn[b.options];Kn&&Kn.length&&(Hn=Kn[0])}v.value=Hn[b.value]}g(c.id,{type:c.type,value:Bn,...vue.unref(gn),recordData:vue.unref(re),RECORD:vue.unref(re),dataType:c.dataType})}),Zn=or=>{var qn;const{data:Hn}=(or==null?void 0:or.data)||{},Kn=b.label,zn=b.value;if(Hn){const{rows:tr=[]}=((qn=or==null?void 0:or.data)==null?void 0:qn.data)||{};w.value=tr||[];const Un=vue.unref(w).map(Qn=>({[Kn]:Qn.label,[zn]:Qn.value})),{id:nr}=c,sr=m(nr);g(nr,{...sr,...vue.unref(gn),dataType:c.dataType}),Gn(Un)}else Gn([])},Xn=useIndicatorData(c,Zn),er=async()=>{try{vn.value=!0;const or=await Xn();Zn(or)}catch(or){console.error(or)}finally{vn.value=!1}},Jn=async()=>{switch(c.dataType){case"indicator":{await er();break}case"request":await Fn();break}};useOnEvent(c,{selectChange:Wn,refreshData:Jn});const{setRequest:ir}=vue.inject(REQUEST_MODEL,{setRequest:({id:or,sortNum:Hn,requestFn:Kn})=>{}});return typeof ir=="function"&&ir({id:c.id,requestFn:Jn,sortNum:c.requestSort}),u({refreshData:Jn}),{style:f,getPopupContainer:d,myValue:v,selectChange:Wn,options:h,filterOption:Pn,loading:vn,resultValue:p}}}),DataSelect_vue_vue_type_style_index_0_scoped_d7702a9f_lang="",DataSelect_vue_vue_type_style_index_1_lang="";function _sfc_render$3(c,u,f,d,h,v){const p=vue.resolveComponent("a-select-option"),m=vue.resolveComponent("a-select");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-select",style:vue.normalizeStyle(c.style)},[vue.createVNode(m,{class:"select",value:c.resultValue,"onUpdate:value":u[0]||(u[0]=g=>c.resultValue=g),placeholder:c.placeholder,showSearch:"",allowClear:c.isAllowClear,mode:c.mode,getPopupContainer:c.getPopupContainer,fieldNames:c.dataFieldNames,maxTagCount:c.maxTagCount,filterOption:c.filterOption,loading:c.loading,autoClearSearchValue:c.autoClearSearchValue,onChange:c.selectChange,style:vue.normalizeStyle({fontSize:c.optionFontSize})},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(c.options,(g,y)=>(vue.openBlock(),vue.createBlock(p,{key:y,value:g.value,label:g.label,style:vue.normalizeStyle({fontSize:c.optionFontSize})},null,8,["value","label","style"]))),128))]),_:1},8,["value","placeholder","allowClear","mode","getPopupContainer","fieldNames","maxTagCount","filterOption","loading","autoClearSearchValue","onChange","style"]),vue.renderSlot(c.$slots,"toolbox",{},void 0,!0)],4)}const DataSelect=_export_sfc$1(_sfc_main$3,[["render",_sfc_render$3],["__scopeId","data-v-d7702a9f"]]),EcanDataSelect=withInstall$1(DataSelect),_sfc_main$2=vue.defineComponent({name:"EcanPivotTable",components:{},props:{...pivotTableComponentProps,fullMode:{type:Boolean,default:!1}},setup(c,{emit:u,expose:f}){var re,Rn;const d=(re=window==null?void 0:window.config)==null?void 0:re.pageId,h=(Rn=window==null?void 0:window.config)==null?void 0:Rn.indicatorToken,v=usePickComponentStyle(c),p=vue.ref(),{pageMode:m,theme:g,width:y,height:b}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal",theme:"light",width:"",height:""}),Pn=vue.inject("scaleValue",{widthScale:"1",heightScale:"1"}),{getAllGlobalModel:x}=vue.inject(GLOBAL_MODEL,{getAllGlobalModel:()=>{}}),vn=vue.computed(()=>{const{width:Vn,height:Wn}=c;let Gn=0,Zn=0;return typeof Vn=="string"?Gn=parseFloat(Vn):Vn.suffix==="px"?Gn=+Vn.value:Vn.suffix==="%"&&(Gn=parseFloat(vue.unref(y))*(Vn.value/100)),typeof Wn=="string"?Zn=parseFloat(Wn):Wn.suffix==="px"?Zn=+Wn.value:Wn.suffix==="%"&&(Zn=parseFloat(vue.unref(b))*(Wn.value/100)),{...c,width:Gn+"px",height:Zn+"px",pageId:d,indicatorToken:h,context:CONTEXT,globalModel:x()}}),J=vue.computed(()=>INDICATOR_URL),j=()=>{switch(c.dataType){case"indicator":vue.unref(p).refreshData();break}},{setRequest:Fn}=vue.inject(REQUEST_MODEL,{setRequest:({id:Vn,sortNum:Wn,requestFn:Gn})=>{}});typeof Fn=="function"&&Fn({id:c.id,requestFn:j,sortNum:c.requestSort}),f({refreshData:j});const w=useEmitEvent(c)("click",()=>{vue.unref(p).click()});return useOnEvent(c,{refreshData:j,click:w}),vue.onMounted(()=>{}),{props:c,style:v,pageMode:m,pivotTableRef:p,theme:g,customProps:vn,indicatorUrl:J,scaleValue:Pn,click:w,onTableChange:({type:Vn,data:Wn})=>{u("tableChange",{type:Vn,data:Wn})}}}}),PivotTableContainer_vue_vue_type_style_index_0_scoped_46e3d7d4_lang="";function _sfc_render$2(c,u,f,d,h,v){const p=vue.resolveComponent("pivot-table");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-pivot-table",style:vue.normalizeStyle(c.style)},[vue.createVNode(p,vue.mergeProps({ref:"pivotTableRef"},c.customProps,{pageMode:c.pageMode,theme:c.theme,fullMode:c.fullMode,indicatorUrl:c.indicatorUrl,scaleValue:c.scaleValue,enlargeContainer:"#norPageConfig",onTableChange:c.onTableChange}),null,16,["pageMode","theme","fullMode","indicatorUrl","scaleValue","onTableChange"])],4)}const PivotTableContainer=_export_sfc$1(_sfc_main$2,[["render",_sfc_render$2],["__scopeId","data-v-46e3d7d4"]]),EcanPivotTable=withInstall$1(PivotTableContainer),valueLineProps={...props$1,id:"",name:"双值轴折线图",keyName:"双值轴折线图",type:"ecanValueLine",width:"400px",height:"400px",top:"",left:"",rotate:"",data:[{name:0,value:0,value2:10},{name:10,value:20,value2:35},{name:20,value:30,value2:25},{name:30,value:40,value2:55}],titleText:"",titleFontSize:"12px",titleColor:"#333",fontWeight:400,textAlign:"left",titleSubtext:"",titleLeft:"",legendShow:!0,legendOrient:"horizontal",legendTextStyleColor:"#333",legendTop:"top",legendLeft:"center",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],symbolSize:4,lineStyleWidth:2,smooth:!1,xAxisLabelWidth:void 0,xAxisLabelRotate:0,xAxisLabelOverflow:"none",xAxisLabelInterval:0,xAxisSplitLineShow:!0,xAxisSplitAreaShow:!1,xAxisSplitLineInterval:0,xAxisSplitLineStyleColor:"#333",xAxisLabelColor:"#333",xAxisLineShow:!0,xAxisLineStyleColor:"#333",xAxisTickShow:!0,xAxisLabelFormatter:"{value}",xAxisMinInterval:0,yAxisMinInterval:0,yAxisSplitLineShow:!0,yAxisSplitAreaShow:!1,yAxisSplitLineStyleColor:"#333",yAxisLabelColor:"#333",yAxisLineStyleColor:"#333",yAxisLineAlwaysDisplay:!1,yAxisLabelFormatter:"{value}",gridContainLabel:!0,gridTop:"10%",gridBottom:"10%",gridLeft:"5%",gridRight:"5%",graphicConfig:{},tooltipShow:!0,tooltipFormatter:"{marker} {a}:{c}",toolboxShow:!1,toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息",areaStyleOpacity:0,areaGradientShow:!1,areaGradientColor:"",isBoundaryGap:!0,yAxisLabelShow:!0,yAxisSplitLineType:"solid",legendItemGap:10,legendItemWidth:25,legendItemHeight:14,legendType:"",shadowColor:"",shadowBlur:0,shadowOffsetY:0,shadowOffsetX:0,legendFontSize:"12px",xAxisLabelFontSize:"12px",yAxisLabelFontSize:"12px",tooltipPosition:"",isShowMarkLine:!1,markLineType:"average",legendFormatter:"{name}",legendWidth:null,legendHeight:null,legendTextWidth:null,legendScroll:!1,yAxisName:"",xAxisName:"",xAxisMaxValue:null,yAxisMaxValue:null,xAxisLabelShow:!0,tooltipTextStyleColor:"",customPoint:"",axisMarkPoint:[],markPointFormatter:"{x}, {y}"},valueLineComponentProps=transformToComponentProps(valueLineProps),valueLineEvents=["click","refreshData","resetRecord"];core$1.use([renderers.CanvasRenderer,charts.LineChart,components$1.ToolboxComponent,components$1.TitleComponent,components$1.LegendComponent,components$1.MarkLineComponent,components$1.MarkPointComponent]);const _sfc_main$1=vue.defineComponent({name:"EcanValueLine",props:{...valueLineComponentProps},components:{Spin,Echarts,EcanModal},setup(c,{expose:u}){const{pageMode:f,fontFamily:d}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal",fontFamily:""}),h=vue.ref(),v=vue.ref(!1),p=usePickComponentStyle(c),m=vue.ref([]),g=vue.ref(),y=vue.computed(()=>v.value?ZOOM_FONT_SIZE:12),b=vue.ref({});let Pn;const x=vue.computed(()=>{const qn=c.xAxisLabelFormatter,tr=c.yAxisLabelFormatter;return{textStyle:{fontFamily:vue.unref(d)},toolbox:{show:c.toolboxShow,left:c.toolboxLeft,top:c.toolboxTop,itemSize:c.toolboxItemSize,itemGap:c.toolboxItemGap,orient:c.toolboxOrient,feature:{myDownload:{show:c.toolboxDownloadShow,title:"数据下载",icon:"path://M502.010485 765.939573c3.773953 3.719718 8.686846 5.573949 13.596669 5.573949 0.075725 0 0.151449-0.010233 0.227174-0.011256 0.329505 0.016373 0.654916 0.050142 0.988514 0.050142 0.706081 0 1.400906-0.042979 2.087545-0.116657 4.352121-0.366344 8.607028-2.190899 11.961426-5.496178l335.053985-330.166675c7.619538-7.509021 7.709589-19.773346 0.200568-27.393907s-19.774369-7.711636-27.39493-0.201591L536.193005 706.304358 536.193005 50.019207c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 657.032164-306.881342-302.44838c-7.618515-7.509021-19.883863-7.419993-27.393907 0.199545-7.509021 7.619538-7.419993 19.884886 0.199545 27.393907L502.010485 765.939573z, M867.170139 711.020776c-10.698666 0-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 13.054317-10.620895 23.675212-23.676236 23.675212L205.182103 919.486668c-13.054317 0-23.676236-10.620895-23.676236-23.675212L181.505867 730.391962c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 34.416857 28.000728 62.416562 62.417585 62.416562l618.941638 0c34.417881 0 62.417585-27.999704 62.417585-62.416562L886.540302 730.391962C886.541325 719.693296 877.868805 711.020776 867.170139 711.020776z",onclick(){useDownloadFile(c.toolboxDownloadUrl)}},myDataZoom:{show:v.value?!1:c.toolboxDataZoomShow,title:"放大",icon:"path://M932.42 902.246667L792 761.793333A403.84 403.84 0 0 0 896 490.666667c0-223.86-181.473333-405.333333-405.333333-405.333334S85.333333 266.806667 85.333333 490.666667s181.473333 405.333333 405.333334 405.333333a403.84 403.84 0 0 0 271.126666-104l140.453334 140.453333a21.333333 21.333333 0 0 0 30.173333-30.173333zM128 490.666667c0-200.293333 162.373333-362.666667 362.666667-362.666667s362.666667 162.373333 362.666666 362.666667-162.373333 362.666667-362.666666 362.666666-362.666667-162.373333-362.666667-362.666666z m512 0a21.333333 21.333333 0 0 1-21.333333 21.333333H512v106.666667a21.333333 21.333333 0 0 1-42.666667 0V512H362.666667a21.333333 21.333333 0 0 1 0-42.666667h106.666666V362.666667a21.333333 21.333333 0 0 1 42.666667 0v106.666666h106.666667a21.333333 21.333333 0 0 1 21.333333 21.333334z",onclick(){var Un;v.value=!0,(Un=g.value)==null||Un.showModal()}},myInfo:{show:c.toolboxInfoShow,title:"说明信息",icon:"path://M512.50142 958.397886c-119.320573 0-231.499491-46.465265-315.871087-130.837884C112.258737 743.188406 65.792449 631.010511 65.792449 511.688915c0-119.319549 46.466288-231.499491 130.837884-315.871087C281.002952 111.445208 393.180847 64.979944 512.50142 64.979944s231.499491 46.465265 315.871087 130.837884c84.372619 84.372619 130.837884 196.551538 130.837884 315.871087 0 119.321596-46.465265 231.499491-130.837884 315.871087C744.000911 911.932622 631.821993 958.397886 512.50142 958.397886zM512.50142 105.962334c-223.718271 0-405.726581 182.00831-405.726581 405.726581s182.00831 405.726581 405.726581 405.726581c223.718271 0 405.727605-182.00831 405.727605-405.726581S736.220714 105.962334 512.50142 105.962334z M510.150886 775.953647c-18.107403 0-32.745798-14.678304-32.745798-32.785707L477.405087 452.191846c0-18.108426 14.638395-32.785707 32.745798-32.785707 18.107403 0 32.745798 14.678304 32.745798 32.785707l0 290.976094C542.896684 761.275343 528.258289 775.953647 510.150886 775.953647z M511.357364 296.458969m-45.080731 0a44.054 44.054 0 1 0 90.161463 0 44.054 44.054 0 1 0-90.161463 0Z",onclick(){antDesignVue.Modal.info({title:"说明信息",content:c.toolboxInfoText})}}}},title:{text:c.titleText,subText:c.titleSubtext,textStyle:{fontSize:c.titleFontSize,fontWeight:c.fontWeight,color:c.titleColor},left:c.textAlign},grid:{top:c.gridTop,bottom:c.gridBottom,left:c.gridLeft,right:c.gridRight,containLabel:c.gridContainLabel},color:c.colors,tooltip:{trigger:"axis",textStyle:{fontSize:y.value,color:c.tooltipTextStyleColor},show:c.tooltipShow,formatter:Un=>{var ar;const nr=Un.length;let sr="",Qn=c.tooltipFormatter;Pn=(ar=Un[0])==null?void 0:ar.data,Qn===""&&(Qn="{marker} {a} {c}");for(let cr=0;cr<nr;cr++){const{marker:Yn,seriesName:lr,name:hr,value:mr,data:ur}=Un[cr]||{};if(cr===0){let gr=hr;typeof hr=="string"&&hr[0]==="0"&&!isNaN(+hr)&&(gr=(+hr).toString()),sr+=`${In(qn,gr)}<br/>`}sr+=hn(Qn,{textData:{marker:Yn,a:lr,b:mr[0],c:mr[1]||0,...ur==null?void 0:ur.record}},{useNewline:!0,useSpace:!0}),sr+="<br/>"}return sr},position:c.tooltipPosition||void 0},xAxis:{type:"value",boundaryGap:c.isBoundaryGap,minInterval:c.xAxisMinInterval,splitLine:{show:c.xAxisSplitLineShow,lineStyle:{color:c.xAxisSplitLineStyleColor},interval:c.xAxisSplitLineInterval},splitArea:{show:c.xAxisSplitAreaShow},axisLabel:{show:c.xAxisLabelShow,color:c.xAxisLabelColor,interval:c.xAxisLabelInterval||0,rotate:c.xAxisLabelRotate,width:c.xAxisLabelWidth,overflow:c.xAxisLabelOverflow,fontSize:c.xAxisLabelFontSize,formatter(Un){return typeof Un=="string"&&Un[0]==="0"&&!isNaN(+Un)&&(Un=(+Un).toString()),In(qn,Un)}},axisLine:{show:c.xAxisLineShow,lineStyle:{color:c.xAxisLineStyleColor}},axisTick:{show:c.xAxisTickShow},name:c.xAxisName,nameTextStyle:{fontSize:c.xAxisLabelFontSize,color:c.xAxisLabelColor,align:"left"},max:c.xAxisMaxValue||null},yAxis:{type:"value",minInterval:c.yAxisMinInterval,splitLine:{show:c.yAxisSplitLineShow,lineStyle:{color:c.yAxisSplitLineStyleColor,type:c.yAxisSplitLineType}},splitArea:{show:c.yAxisSplitAreaShow},axisLabel:{show:c.yAxisLabelShow,fontSize:c.yAxisLabelFontSize,color:c.yAxisLabelColor,formatter(Un){return In(tr,Un)}},axisLine:{show:c.yAxisLineAlwaysDisplay,lineStyle:{color:c.yAxisLineStyleColor}},name:c.yAxisName,nameTextStyle:{fontSize:c.yAxisLabelFontSize,color:c.yAxisLabelColor,align:"right"},max:c.yAxisMaxValue||null},legend:{type:c.legendScroll?"scroll":"plain",width:c.legendWidth,height:c.legendHeight,show:c.legendShow,orient:c.legendOrient,top:c.legendTop,left:c.legendLeft,textStyle:{lineHeight:(v.value?ZOOM_FONT_SIZE:parseFloat(c.legendFontSize))+8,rich:{text:{width:c.legendTextWidth,color:c.legendTextStyleColor,fontSize:v.value?ZOOM_FONT_SIZE:c.legendFontSize}}},itemHeight:c.legendItemHeight,itemWidth:c.legendItemWidth,itemGap:c.legendItemGap,formatter:Un=>getLegendFormat(c.legendFormatter,{name:Un})},series:vue.unref(m)}}),vn=()=>{v.value=!1},{getGlobalModel:J,setGlobalModel:j,getRecordValueByKeyName:Fn}=vue.inject(GLOBAL_MODEL,{getGlobalModel:qn=>{},setGlobalModel:(qn,tr)=>{},getRecordValueByKeyName:qn=>{}}),Bn=vue.computed(()=>c.isShowMarkLine?{markLine:{data:[{type:c.markLineType}]}}:{}),w=(qn,tr,Un,nr,sr,Qn,ar,cr)=>{const Yn=(-(sr*cr-Qn*ar)/(ar-sr)+(qn*nr-tr*Un)/(Un-qn))/((nr-tr)/(Un-qn)-(cr-Qn)/(ar-sr)),lr=(nr-tr)/(Un-qn)*(-(sr*cr-Qn*ar)/(ar-sr)+(qn*nr-tr*Un)/(Un-qn))/((nr-tr)/(Un-qn)-(cr-Qn)/(ar-sr))-(qn*nr-tr*Un)/(Un-qn);return[Yn,lr]},gn=()=>{var Un;const qn={symbol:"circle",tooltip:{trigger:"item",formatter:nr=>{let sr="",Qn=c.markPointFormatter;Qn===""&&(Qn="{x}, {y}");const{data:{coord:ar=[]}}=nr||{};return sr+=hn(Qn,{textData:{x:ar[0]||0,y:ar[1]||0}},{useNewline:!0,useSpace:!0}),sr+="<br/>",sr}},data:[]},{axisMarkPoint:tr=[]}=c;for(const nr of tr){const{coord:sr=""}=nr,Qn=[];let ar=[];if(sr.includes("getIntersectPoint")){const cr=(Un=sr.match(/getIntersectPoint\((.*?)\)/)[1])==null?void 0:Un.split(",");if((cr==null?void 0:cr.length)===8){const Yn=[];for(const lr of cr){const hr=lr.replaceAll(" ","");(hr==null?void 0:hr.slice(0,1))==="{"&&(hr==null?void 0:hr.slice(-1))==="}"?Yn.push(+Fn(hr)||0):Yn.push(+hr)}ar=w(...Yn)}}else ar=sr.split(",");(ar==null?void 0:ar.length)===2&&(Qn[0]=+ar[0],Qn[1]=+ar[1]),Qn!=null&&Qn.length&&qn.data.push({coord:Qn,symbolSize:nr.symbolSize,itemStyle:{color:nr.pointColor||"transparent",borderWidth:nr.borderWidth||"transparent",borderColor:nr.borderColor||"transparent"},label:{formatter:nr.label,position:nr.labelPosition,color:nr.labelColor||"transparent"}})}return qn},re=qn=>{var Yn,lr,hr;const tr=lodashEs.cloneDeep(qn),{graphicConfig:Un,customPoint:nr=""}=c,sr={},Qn={},{formFields:ar={}}=Un;let cr=[];if(nr){cr=JSON.parse(nr);for(const mr of cr)for(const ur in mr)typeof mr[ur]=="string"&&((Yn=mr[ur])==null?void 0:Yn.slice(0,1))==="{"&&((lr=mr[ur])==null?void 0:lr.slice(-1))==="}"&&(mr[ur]=Fn(mr[ur])||0)}cr!=null&&cr.length&&tr.push(...cr),c.dataType==="static"?(Qn.name="name",Qn.values=["value","value2"]):(Qn.name=(ar==null?void 0:ar.labelField)||"name",Qn.values=(ar==null?void 0:ar.valueField)||["value","value2"]);for(const mr of tr){const{values:ur,name:gr}=Qn;for(const fr of ur){const vr={value:[mr[gr],mr[fr]],record:mr};mn(sr,fr)?sr[fr].push(vr):sr[fr]=[vr]}}if((hr=Object.keys(sr))!=null&&hr.length){const mr=[];for(const ur in sr)mr.push({name:ur,data:sr[ur]});return mr}else return[]},Rn=(qn=[])=>{const tr=re(qn),Un=[],nr=tr.length;for(let sr=0;sr<nr;sr++){const Qn={},ar={};sr===0&&(ar.markPoint=gn()),c.shadowColor&&(Qn.shadowColor=c.shadowColor,Qn.shadowBlur=c.shadowBlur,Qn.shadowOffsetY=c.shadowOffsetY,Qn.shadowOffsetX=c.shadowOffsetX);let cr=c.colors[sr];if(!cr&&c.colors.length){const Yn=(sr+1)%c.colors.length-1;cr=Yn>0?c.colors[Yn]:c.colors[0]}cr||(cr="#5470C6"),Un.push({type:"line",...ar,...tr[sr],symbolSize:c.symbolSize,smooth:c.smooth,areaStyle:{color:c.areaGradientShow?{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:cr},{offset:1,color:c.areaGradientColor||"transparent"}],global:!1}:cr,opacity:c.areaStyleOpacity},lineStyle:{width:c.lineStyleWidth,...Qn},...vue.unref(Bn)})}m.value=Un},Vn=(qn=[])=>{const tr=re(qn),Un=[],nr=tr.length;for(let sr=0;sr<nr;sr++){const Qn={};c.shadowColor&&(Qn.shadowColor=c.shadowColor,Qn.shadowBlur=c.shadowBlur,Qn.shadowOffsetY=c.shadowOffsetY,Qn.shadowOffsetX=c.shadowOffsetX);const ar={};sr===0&&(ar.markPoint=gn());let cr=c.colors[sr];if(!cr&&c.colors.length){const Yn=(sr+1)%c.colors.length-1;cr=Yn>0?c.colors[Yn]:c.colors[0]}cr||(cr="#5470C6"),Un.push({type:"line",...tr[sr],symbolSize:c.symbolSize,smooth:c.smooth,areaStyle:{color:c.areaGradientShow?{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:cr},{offset:1,color:c.areaGradientColor||"transparent"}],global:!1}:cr,opacity:c.areaStyleOpacity},lineStyle:{width:c.lineStyleWidth,...Qn},...vue.unref(Bn),...ar})}m.value=Un};vue.watch(()=>[c.data,c.dataType,c.symbolSize,c.smooth,c.lineStyleWidth,c.areaStyleOpacity,c.areaGradientShow,c.areaGradientColor,c.shadowColor,c.shadowBlur,c.shadowOffsetY,c.shadowOffsetX,c.legendFontSize,c.isShowMarkLine,c.markLineType,c.legendFormatter,c.legendWidth,c.legendHeight,c.legendTextWidth,c.legendScroll],([qn])=>{(c.dataType==="static"||vue.unref(f)==="design")&&Rn(qn)},{immediate:!0,deep:!0});const Wn=vue.ref(!1),Gn=useRequestData(c),Zn=async()=>{var qn,tr;if(c.dataType==="request")try{Wn.value=!0;const Un=await Gn();Rn((tr=(qn=Un==null?void 0:Un.data)==null?void 0:qn.data)==null?void 0:tr.rows)}catch(Un){console.error(Un)}finally{Wn.value=!1}},Xn=useEmitEvent(c);j(c.id,{type:c.type,RECORD:""});const er=Xn("click",qn=>{const tr=J(c.id);j(c.id,{...tr,type:c.type,RECORD:c.tooltipShow?Pn:qn.data})}),Jn=qn=>{h.value.chart.containPixel("grid",[qn.offsetX,qn.offsetY])&&er()};c.tooltipShow?b.value["zr:click"]=Jn:b.value.click=er;const ir=qn=>{var Un;const{rows:tr=[]}=((Un=qn==null?void 0:qn.data)==null?void 0:Un.data)??{};Vn(tr)},dr=useIndicatorData(c,qn=>{c.isViewRedrawing&&h.value.clear(),ir(qn)}),or=async()=>{try{Wn.value=!0;const qn=await dr();ir(qn)}catch(qn){console.error(qn)}finally{Wn.value=!1}},Hn=async()=>{switch(c.dataType){case"indicator":await or();break;case"request":await Zn();break}};useOnEvent(c,{refreshData:Hn,resetRecord:()=>{const qn=c.id,tr=J(qn);j(qn,{...tr,RECORD:""})},click:er});const{setRequest:zn}=vue.inject(REQUEST_MODEL,{setRequest:qn=>{}});return typeof zn=="function"&&zn({id:c.id,requestFn:Hn,sortNum:c.requestSort}),u({refreshData:Hn}),{option:x,style:p,click:er,loading:Wn,onClose:vn,ecanModal:g,eventObj:b,echartRef:h}}}),ValueLine_vue_vue_type_style_index_0_lang="";function _sfc_render$1(c,u,f,d,h,v){const p=vue.resolveComponent("echarts"),m=vue.resolveComponent("spin"),g=vue.resolveComponent("ecan-modal");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-value-line",style:vue.normalizeStyle(c.style)},[vue.createVNode(m,{spinning:c.loading},{default:vue.withCtx(()=>[vue.createVNode(p,vue.mergeProps({ref:"echartRef",option:c.option,autoresize:""},vue.toHandlers(c.eventObj)),null,16,["option"])]),_:1},8,["spinning"]),vue.createVNode(g,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:c.onClose},{default:vue.withCtx(()=>[vue.createVNode(m,{class:"spin-wrap",spinning:c.loading},{default:vue.withCtx(()=>[vue.createVNode(p,{option:c.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"]),vue.renderSlot(c.$slots,"toolbox")],4)}const ValueLine=_export_sfc$1(_sfc_main$1,[["render",_sfc_render$1]]),EcanValueLine=withInstall$1(ValueLine),indexPanelProps={...props$1,name:"指标面板",keyName:"指标面板",type:"ecanIndexPanel",width:"360px",height:"210px",zIndex:1,borderRadius:"5",componentIds:[],componentConfig:{},data:{},dataType:"indicator",graphicConfig:{},theFlag:""},indexPanelComponentProps=transformToComponentProps(indexPanelProps),indexPanelEvents=["refreshData"],_sfc_main=vue.defineComponent({name:"EcanIndexPanel",components:{Skeleton},props:{...indexPanelComponentProps},setup(c,{expose:u}){const f=vue.ref(!1),d=vue.ref(),h=usePickComponentStyle(c),{pageMode:v}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"}),p=vue.inject("triggerRefresh",Fn=>{}),m=vue.inject("usedComponentList",[]),g=vue.computed(()=>{const{borderRadius:Fn}=c,Bn=[],w={};if(Fn){const gn=Fn.split(",");for(const re of gn)(+re||+re==0)&&Bn.push(+re+"px")}return Bn!=null&&Bn.length&&(w.borderRadius=Bn.join(" ")),vue.unref(v)==="design"&&(w.border="1px solid #a8a8a8"),vue.unref(d)?w.backgroundColor=vue.unref(d):w.backgroundColor="#B3AFAF",w}),y=Fn=>{var w;const{rows:Bn}=((w=Fn==null?void 0:Fn.data)==null?void 0:w.data)||{};if(Bn){const{componentIds:gn,componentConfig:re,graphicConfig:Rn}=c,Vn=[],Wn=Rn==null?void 0:Rn.indicators.find(Gn=>Gn.show);d.value=Bn.color;for(const Gn of gn){const Zn=vue.unref(m).find(dr=>dr.id===Gn),Xn=re[Gn],{text:er=""}=Zn||{};let Jn=Bn[Xn.key],ir="";if(Xn.key==="systemSource"){const dr=Jn.split(",");(dr==null?void 0:dr.length)>3&&(Jn=dr.slice(0,3).join(",")+"等",ir=Bn[Xn.key])}else Xn.key==="indexName"&&(Jn=Wn.label);Vn.push({id:Gn,text:er.includes("{value}")||er.includes("{")||er.includes("}")?er:"{value}",data:{...Bn,value:Jn},titleContent:ir})}p(Vn)}},b=useIndicatorData(c,y),Pn=async()=>{try{f.value=!0;const Fn=await b();y(Fn)}catch(Fn){console.error(Fn)}finally{f.value=!1}},x=async()=>{switch(c.dataType){case"indicator":await Pn();break}},{setRequest:vn}=vue.inject(REQUEST_MODEL,{setRequest:({id:Fn,sortNum:Bn,requestFn:w})=>{}});typeof vn=="function"&&vn({id:c.id,requestFn:x,sortNum:c.requestSort});const j=useEmitEvent(c)("click");return useOnEvent(c,{refreshData:x}),u({refreshData:x}),{loading:f,style:h,customStyle:g,click:j}}});function _sfc_render(c,u,f,d,h,v){const p=vue.resolveComponent("skeleton");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-index-panel",style:vue.normalizeStyle(c.loading?{}:{...c.style,...c.customStyle}),onClick:u[0]||(u[0]=(...m)=>c.click&&c.click(...m))},[c.loading?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"skeleton-wrapper",style:vue.normalizeStyle(c.style)},[vue.createVNode(p,{loading:c.loading},null,8,["loading"])],4)):(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:1},[vue.renderSlot(c.$slots,"children"),vue.renderSlot(c.$slots,"toolbox")],64))],4)}const IndexPanel=_export_sfc$1(_sfc_main,[["render",_sfc_render]]),EcanIndexPanel=withInstall$1(IndexPanel),components=Object.freeze(Object.defineProperty({__proto__:null,EcanBar,EcanBorder,EcanButton,EcanCheckbox,EcanCirculate,EcanComboGraph,EcanCounter,EcanCustomGraph,EcanDataSelect,EcanDatePicker,EcanIframe,EcanImage,EcanIndexPanel,EcanInput,EcanLine,EcanList,EcanMap,EcanModal,EcanNavTab,EcanPageConfig,EcanPie,EcanPivotTable,EcanProportion,EcanProviderConfig,EcanRadar,EcanRadio,EcanRangePicker,EcanRectangle,EcanScatter,EcanScrollText,EcanSelect,EcanTable,EcanTabs,EcanTemplate,EcanText,EcanTimeDisplay,EcanTreeSelect,EcanValueLine,barComponentProps,barEvents,barProps,borderComponentProps,borderEvents,borderProps,buttonComponentProps,buttonEvents,buttonProps,checkboxComponentProps,checkboxEvents,checkboxProps:checkboxProps$1,circulateComponentProps,circulateEvents,circulateProps,comboGraphComponentProps,comboGraphEvents,comboGraphProps,counterComponentProps,counterEvents,counterProps,customGraphComponentProps,customGraphProps,dataSelectComponentProps,dataSelectEvents,dataSelectProps,datePickerComponentProps,datePickerEvents,datePickerProps:datePickerProps$1,iframeComponentProps,iframeProps,imageComponentProps,imageEvents,imageProps,indexPanelComponentProps,indexPanelEvents,indexPanelProps,inputComponentProps,inputEvents,inputProps,lineComponentProps,lineEvents,lineProps,listComponentProps,listEvents,listProps,mapComponentProps,mapEvents,mapProps,modalComponentProps,modalEvents,modalProps,navTabComponentProps,navTabEvents,navTabProps,pageConfig,pageConfigComponentProps,pieComponentProps,pieEvents,pieProps,pivotTableComponentProps,pivotTableEvents,pivotTableProps,proportionComponentProps,proportionEvents,proportionProps,providerConfig,providerConfigComponentProps,radarComponentProps,radarEvents,radarProps,radioComponentProps,radioEvents,radioProps,rangePickerComponentProps,rangePickerEvents,rangePickerProps,rectangleComponentProps,rectangleEvents,rectangleProps,scatterComponentProps,scatterEvents,scatterProps,selectComponentProps,selectEvents,selectProps,tableComponentProps,tableEvents,tableProps,tabsComponentProps,tabsEvents,tabsProps:tabsProps$1,templateComponentProps,templateEvents,templateProps,textComponentProps,textEvents,textProps,timeDisplayComponentProps,timeDisplayEvents,timeDisplayProps,treeSelectComponentProps,treeSelectEvents,treeSelectProps,valueLineComponentProps,valueLineEvents,valueLineProps},Symbol.toStringTag,{value:"Module"}));function noop(){}const extend=Object.assign,inBrowser$1=typeof window<"u",isObject$1=c=>c!==null&&typeof c=="object",isDef=c=>c!=null,isFunction=c=>typeof c=="function",isPromise=c=>isObject$1(c)&&isFunction(c.then)&&isFunction(c.catch),isDate=c=>Object.prototype.toString.call(c)==="[object Date]"&&!Number.isNaN(c.getTime()),isNumeric=c=>typeof c=="number"||/^\d+(\.\d+)?$/.test(c),isIOS$1=()=>inBrowser$1?/ios|iphone|ipad|ipod/.test(navigator.userAgent.toLowerCase()):!1;function get(c,u){const f=u.split(".");let d=c;return f.forEach(h=>{var v;d=isObject$1(d)&&(v=d[h])!=null?v:""}),d}function pick(c,u,f){return u.reduce((d,h)=>((!f||c[h]!==void 0)&&(d[h]=c[h]),d),{})}const isSameValue=(c,u)=>JSON.stringify(c)===JSON.stringify(u),toArray=c=>Array.isArray(c)?c:[c],flat=c=>c.reduce((u,f)=>u.concat(f),[]),unknownProp=null,numericProp=[Number,String],truthProp={type:Boolean,default:!0},makeRequiredProp=c=>({type:c,required:!0}),makeArrayProp=()=>({type:Array,default:()=>[]}),makeNumericProp=c=>({type:numericProp,default:c}),makeStringProp=c=>({type:String,default:c});var inBrowser=typeof window<"u";function raf(c){return inBrowser?requestAnimationFrame(c):-1}function cancelRaf(c){inBrowser&&cancelAnimationFrame(c)}function doubleRaf(c){raf(()=>raf(c))}var isWindow=c=>c===window,makeDOMRect=(c,u)=>({top:0,left:0,right:c,bottom:u,width:c,height:u}),useRect=c=>{const u=vue.unref(c);if(isWindow(u)){const f=u.innerWidth,d=u.innerHeight;return makeDOMRect(f,d)}return u!=null&&u.getBoundingClientRect?u.getBoundingClientRect():makeDOMRect(0,0)};function useParent(c){const u=vue.inject(c,null);if(u){const f=vue.getCurrentInstance(),{link:d,unlink:h,internalChildren:v}=u;d(f),vue.onUnmounted(()=>h(f));const p=vue.computed(()=>v.indexOf(f));return{parent:u,index:p}}return{parent:null,index:vue.ref(-1)}}function flattenVNodes(c){const u=[],f=d=>{Array.isArray(d)&&d.forEach(h=>{var v;vue.isVNode(h)&&(u.push(h),(v=h.component)!=null&&v.subTree&&(u.push(h.component.subTree),f(h.component.subTree.children)),h.children&&f(h.children))})};return f(c),u}var findVNodeIndex=(c,u)=>{const f=c.indexOf(u);return f===-1?c.findIndex(d=>u.key!==void 0&&u.key!==null&&d.type===u.type&&d.key===u.key):f};function sortChildren(c,u,f){const d=flattenVNodes(c.subTree.children);f.sort((v,p)=>findVNodeIndex(d,v.vnode)-findVNodeIndex(d,p.vnode));const h=f.map(v=>v.proxy);u.sort((v,p)=>{const m=h.indexOf(v),g=h.indexOf(p);return m-g})}function useChildren(c){const u=vue.reactive([]),f=vue.reactive([]),d=vue.getCurrentInstance();return{children:u,linkChildren:v=>{const p=g=>{g.proxy&&(f.push(g),u.push(g.proxy),sortChildren(d,u,f))},m=g=>{const y=f.indexOf(g);u.splice(y,1),f.splice(y,1)};vue.provide(c,Object.assign({link:p,unlink:m,children:u,internalChildren:f},v))}}}function onMountedOrActivated(c){let u;vue.onMounted(()=>{c(),vue.nextTick(()=>{u=!0})}),vue.onActivated(()=>{u&&c()})}function useEventListener(c,u,f={}){if(!inBrowser)return;const{target:d=window,passive:h=!1,capture:v=!1}=f;let p=!1,m;const g=Pn=>{if(p)return;const x=vue.unref(Pn);x&&!m&&(x.addEventListener(c,u,{capture:v,passive:h}),m=!0)},y=Pn=>{if(p)return;const x=vue.unref(Pn);x&&m&&(x.removeEventListener(c,u,v),m=!1)};vue.onUnmounted(()=>y(d)),vue.onDeactivated(()=>y(d)),onMountedOrActivated(()=>g(d));let b;return vue.isRef(d)&&(b=vue.watch(d,(Pn,x)=>{y(x),g(Pn)})),()=>{b==null||b(),y(d),p=!0}}var width,height;function useWindowSize(){if(!width&&(width=vue.ref(0),height=vue.ref(0),inBrowser)){const c=()=>{width.value=window.innerWidth,height.value=window.innerHeight};c(),window.addEventListener("resize",c,{passive:!0}),window.addEventListener("orientationchange",c,{passive:!0})}return{width,height}}var overflowScrollReg=/scroll|auto|overlay/i,defaultRoot=inBrowser?window:void 0;function isElement(c){return c.tagName!=="HTML"&&c.tagName!=="BODY"&&c.nodeType===1}function getScrollParent(c,u=defaultRoot){let f=c;for(;f&&f!==u&&isElement(f);){const{overflowY:d}=window.getComputedStyle(f);if(overflowScrollReg.test(d))return f;f=f.parentNode}return u}function useScrollParent(c,u=defaultRoot){const f=vue.ref();return vue.onMounted(()=>{c.value&&(f.value=getScrollParent(c.value,u))}),f}var visibility;function usePageVisibility(){if(!visibility&&(visibility=vue.ref("visible"),inBrowser)){const c=()=>{visibility.value=document.hidden?"hidden":"visible"};c(),window.addEventListener("visibilitychange",c)}return visibility}var CUSTOM_FIELD_INJECTION_KEY=Symbol("van-field");function useCustomFieldValue(c){const u=vue.inject(CUSTOM_FIELD_INJECTION_KEY,null);u&&!u.customValue.value&&(u.customValue.value=c,vue.watch(c,()=>{u.resetValidation(),u.validateWithTrigger("onChange")}))}function getScrollTop(c){const u="scrollTop"in c?c.scrollTop:c.pageYOffset;return Math.max(u,0)}function setScrollTop(c,u){"scrollTop"in c?c.scrollTop=u:c.scrollTo(c.scrollX,u)}function getRootScrollTop(){return window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0}function setRootScrollTop(c){setScrollTop(window,c),setScrollTop(document.body,c)}function getElementTop(c,u){if(c===window)return 0;const f=u?getScrollTop(u):getRootScrollTop();return useRect(c).top+f}const isIOS=isIOS$1();function resetScroll(){isIOS&&setRootScrollTop(getRootScrollTop())}const stopPropagation=c=>c.stopPropagation();function preventDefault(c,u){(typeof c.cancelable!="boolean"||c.cancelable)&&c.preventDefault(),u&&stopPropagation(c)}function isHidden(c){const u=vue.unref(c);if(!u)return!1;const f=window.getComputedStyle(u),d=f.display==="none",h=u.offsetParent===null&&f.position!=="fixed";return d||h}const{width:windowWidth,height:windowHeight}=useWindowSize();function addUnit(c){if(isDef(c))return isNumeric(c)?`${c}px`:String(c)}function getSizeStyle(c){if(isDef(c)){if(Array.isArray(c))return{width:addUnit(c[0]),height:addUnit(c[1])};const u=addUnit(c);return{width:u,height:u}}}function getZIndexStyle(c){const u={};return c!==void 0&&(u.zIndex=+c),u}let rootFontSize;function getRootFontSize(){if(!rootFontSize){const c=document.documentElement,u=c.style.fontSize||window.getComputedStyle(c).fontSize;rootFontSize=parseFloat(u)}return rootFontSize}function convertRem(c){return c=c.replace(/rem/g,""),+c*getRootFontSize()}function convertVw(c){return c=c.replace(/vw/g,""),+c*windowWidth.value/100}function convertVh(c){return c=c.replace(/vh/g,""),+c*windowHeight.value/100}function unitToPx(c){if(typeof c=="number")return c;if(inBrowser$1){if(c.includes("rem"))return convertRem(c);if(c.includes("vw"))return convertVw(c);if(c.includes("vh"))return convertVh(c)}return parseFloat(c)}const camelizeRE=/-(\w)/g,camelize=c=>c.replace(camelizeRE,(u,f)=>f.toUpperCase()),kebabCase=c=>c.replace(/([A-Z])/g,"-$1").toLowerCase().replace(/^-/,"");function padZero(c,u=2){let f=c+"";for(;f.length<u;)f="0"+f;return f}const clamp=(c,u,f)=>Math.min(Math.max(c,u),f);function trimExtraChar(c,u,f){const d=c.indexOf(u);return d===-1?c:u==="-"&&d!==0?c.slice(0,d):c.slice(0,d+1)+c.slice(d).replace(f,"")}function formatNumber(c,u=!0,f=!0){u?c=trimExtraChar(c,".",/\./g):c=c.split(".")[0],f?c=trimExtraChar(c,"-",/-/g):c=c.replace(/-/,"");const d=u?/[^-0-9.]/g:/[^-0-9]/g;return c.replace(d,"")}const{hasOwnProperty}=Object.prototype;function assignKey(c,u,f){const d=u[f];isDef(d)&&(!hasOwnProperty.call(c,f)||!isObject$1(d)?c[f]=d:c[f]=deepAssign(Object(c[f]),d))}function deepAssign(c,u){return Object.keys(u).forEach(f=>{assignKey(c,u,f)}),c}var stdin_default$o={name:"姓名",tel:"电话",save:"保存",clear:"清空",cancel:"取消",confirm:"确认",delete:"删除",loading:"加载中...",noCoupon:"暂无优惠券",nameEmpty:"请填写姓名",addContact:"添加联系人",telInvalid:"请填写正确的电话",vanCalendar:{end:"结束",start:"开始",title:"日期选择",weekdays:["日","一","二","三","四","五","六"],monthTitle:(c,u)=>`${c}年${u}月`,rangePrompt:c=>`最多选择 ${c} 天`},vanCascader:{select:"请选择"},vanPagination:{prev:"上一页",next:"下一页"},vanPullRefresh:{pulling:"下拉即可刷新...",loosing:"释放即可刷新..."},vanSubmitBar:{label:"合计:"},vanCoupon:{unlimited:"无门槛",discount:c=>`${c}折`,condition:c=>`满${c}元可用`},vanCouponCell:{title:"优惠券",count:c=>`${c}张可用`},vanCouponList:{exchange:"兑换",close:"不使用",enable:"可用",disabled:"不可用",placeholder:"输入优惠码"},vanAddressEdit:{area:"地区",areaEmpty:"请选择地区",addressEmpty:"请填写详细地址",addressDetail:"详细地址",defaultAddress:"设为默认收货地址"},vanAddressList:{add:"新增地址"}};const lang=vue.ref("zh-CN"),messages=vue.reactive({"zh-CN":stdin_default$o}),Locale={messages(){return messages[lang.value]},use(c,u){lang.value=c,this.add({[c]:u})},add(c={}){deepAssign(messages,c)}};var stdin_default$n=Locale;function createTranslate(c){const u=camelize(c)+".";return(f,...d)=>{const h=stdin_default$n.messages(),v=get(h,u+f)||get(h,f);return isFunction(v)?v(...d):v}}function genBem(c,u){return u?typeof u=="string"?` ${c}--${u}`:Array.isArray(u)?u.reduce((f,d)=>f+genBem(c,d),""):Object.keys(u).reduce((f,d)=>f+(u[d]?genBem(c,d):""),""):""}function createBEM(c){return(u,f)=>(u&&typeof u!="string"&&(f=u,u=""),u=u?`${c}__${u}`:c,`${u}${genBem(u,f)}`)}function createNamespace(c){const u=`van-${c}`;return[u,createBEM(u),createTranslate(u)]}const BORDER="van-hairline",BORDER_TOP_BOTTOM=`${BORDER}--top-bottom`,BORDER_UNSET_TOP_BOTTOM=`${BORDER}-unset--top-bottom`,HAPTICS_FEEDBACK="van-haptics-feedback",FORM_KEY=Symbol("van-form"),TAP_OFFSET=5;function callInterceptor(c,{args:u=[],done:f,canceled:d,error:h}){if(c){const v=c.apply(null,u);isPromise(v)?v.then(p=>{p?f():d&&d()}).catch(h||noop):v?f():d&&d()}else f()}function withInstall(c){return c.install=u=>{const{name:f}=c;f&&(u.component(f,c),u.component(camelize(`-${f}`),c))},c}const POPUP_TOGGLE_KEY=Symbol();function onPopupReopen(c){const u=vue.inject(POPUP_TOGGLE_KEY,null);u&&vue.watch(u,f=>{f&&c()})}function useExpose(c){const u=vue.getCurrentInstance();u&&extend(u.proxy,c)}const routeProps={to:[String,Object],url:String,replace:Boolean};function route({to:c,url:u,replace:f,$router:d}){c&&d?d[f?"replace":"push"](c):u&&(f?location.replace(u):location.href=u)}function useRoute(){const c=vue.getCurrentInstance().proxy;return()=>route(c)}const[name$n,bem$l]=createNamespace("badge"),badgeProps={dot:Boolean,max:numericProp,tag:makeStringProp("div"),color:String,offset:Array,content:numericProp,showZero:truthProp,position:makeStringProp("top-right")};var stdin_default$m=vue.defineComponent({name:name$n,props:badgeProps,setup(c,{slots:u}){const f=()=>{if(u.content)return!0;const{content:m,showZero:g}=c;return isDef(m)&&m!==""&&(g||m!==0&&m!=="0")},d=()=>{const{dot:m,max:g,content:y}=c;if(!m&&f())return u.content?u.content():isDef(g)&&isNumeric(y)&&+y>+g?`${g}+`:y},h=m=>m.startsWith("-")?m.replace("-",""):`-${m}`,v=vue.computed(()=>{const m={background:c.color};if(c.offset){const[g,y]=c.offset,{position:b}=c,[Pn,x]=b.split("-");u.default?(typeof y=="number"?m[Pn]=addUnit(Pn==="top"?y:-y):m[Pn]=Pn==="top"?addUnit(y):h(y),typeof g=="number"?m[x]=addUnit(x==="left"?g:-g):m[x]=x==="left"?addUnit(g):h(g)):(m.marginTop=addUnit(y),m.marginLeft=addUnit(g))}return m}),p=()=>{if(f()||c.dot)return vue.createVNode("div",{class:bem$l([c.position,{dot:c.dot,fixed:!!u.default}]),style:v.value},[d()])};return()=>{if(u.default){const{tag:m}=c;return vue.createVNode(m,{class:bem$l("wrapper")},{default:()=>[u.default(),p()]})}return p()}}});const Badge=withInstall(stdin_default$m);let globalZIndex=2e3;const useGlobalZIndex=()=>++globalZIndex,setGlobalZIndex=c=>{globalZIndex=c},[name$m,bem$k]=createNamespace("config-provider"),CONFIG_PROVIDER_KEY=Symbol(name$m),configProviderProps={tag:makeStringProp("div"),theme:makeStringProp("light"),zIndex:Number,themeVars:Object,themeVarsDark:Object,themeVarsLight:Object,themeVarsScope:makeStringProp("local"),iconPrefix:String};function insertDash(c){return c.replace(/([a-zA-Z])(\d)/g,"$1-$2")}function mapThemeVarsToCSSVars(c){const u={};return Object.keys(c).forEach(f=>{const d=insertDash(kebabCase(f));u[`--van-${d}`]=c[f]}),u}function syncThemeVarsOnRoot(c={},u={}){Object.keys(c).forEach(f=>{c[f]!==u[f]&&document.documentElement.style.setProperty(f,c[f])}),Object.keys(u).forEach(f=>{c[f]||document.documentElement.style.removeProperty(f)})}vue.defineComponent({name:name$m,props:configProviderProps,setup(c,{slots:u}){const f=vue.computed(()=>mapThemeVarsToCSSVars(extend({},c.themeVars,c.theme==="dark"?c.themeVarsDark:c.themeVarsLight)));if(inBrowser$1){const d=()=>{document.documentElement.classList.add(`van-theme-${c.theme}`)},h=(v=c.theme)=>{document.documentElement.classList.remove(`van-theme-${v}`)};vue.watch(()=>c.theme,(v,p)=>{p&&h(p),d()},{immediate:!0}),vue.onActivated(d),vue.onDeactivated(h),vue.onBeforeUnmount(h),vue.watch(f,(v,p)=>{c.themeVarsScope==="global"&&syncThemeVarsOnRoot(v,p)}),vue.watch(()=>c.themeVarsScope,(v,p)=>{p==="global"&&syncThemeVarsOnRoot({},f.value),v==="global"&&syncThemeVarsOnRoot(f.value,{})}),c.themeVarsScope==="global"&&syncThemeVarsOnRoot(f.value,{})}return vue.provide(CONFIG_PROVIDER_KEY,c),vue.watchEffect(()=>{c.zIndex!==void 0&&setGlobalZIndex(c.zIndex)}),()=>vue.createVNode(c.tag,{class:bem$k(),style:c.themeVarsScope==="local"?f.value:void 0},{default:()=>{var d;return[(d=u.default)==null?void 0:d.call(u)]}})}});const[name$l,bem$j]=createNamespace("icon"),isImage=c=>c==null?void 0:c.includes("/"),iconProps={dot:Boolean,tag:makeStringProp("i"),name:String,size:numericProp,badge:numericProp,color:String,badgeProps:Object,classPrefix:String};var stdin_default$l=vue.defineComponent({name:name$l,props:iconProps,setup(c,{slots:u}){const f=vue.inject(CONFIG_PROVIDER_KEY,null),d=vue.computed(()=>c.classPrefix||(f==null?void 0:f.iconPrefix)||bem$j());return()=>{const{tag:h,dot:v,name:p,size:m,badge:g,color:y}=c,b=isImage(p);return vue.createVNode(Badge,vue.mergeProps({dot:v,tag:h,class:[d.value,b?"":`${d.value}-${p}`],style:{color:y,fontSize:addUnit(m)},content:g},c.badgeProps),{default:()=>{var Pn;return[(Pn=u.default)==null?void 0:Pn.call(u),b&&vue.createVNode("img",{class:bem$j("image"),src:p},null)]}})}}});const Icon=withInstall(stdin_default$l),[name$k,bem$i]=createNamespace("loading"),SpinIcon=Array(12).fill(null).map((c,u)=>vue.createVNode("i",{class:bem$i("line",String(u+1))},null)),CircularIcon=vue.createVNode("svg",{class:bem$i("circular"),viewBox:"25 25 50 50"},[vue.createVNode("circle",{cx:"50",cy:"50",r:"20",fill:"none"},null)]),loadingProps={size:numericProp,type:makeStringProp("circular"),color:String,vertical:Boolean,textSize:numericProp,textColor:String};var stdin_default$k=vue.defineComponent({name:name$k,props:loadingProps,setup(c,{slots:u}){const f=vue.computed(()=>extend({color:c.color},getSizeStyle(c.size))),d=()=>{const v=c.type==="spinner"?SpinIcon:CircularIcon;return vue.createVNode("span",{class:bem$i("spinner",c.type),style:f.value},[u.icon?u.icon():v])},h=()=>{var v;if(u.default)return vue.createVNode("span",{class:bem$i("text"),style:{fontSize:addUnit(c.textSize),color:(v=c.textColor)!=null?v:c.color}},[u.default()])};return()=>{const{type:v,vertical:p}=c;return vue.createVNode("div",{class:bem$i([v,{vertical:p}]),"aria-live":"polite","aria-busy":!0},[d(),h()])}}});const Loading=withInstall(stdin_default$k),popupSharedProps={show:Boolean,zIndex:numericProp,overlay:truthProp,duration:numericProp,teleport:[String,Object],lockScroll:truthProp,lazyRender:truthProp,beforeClose:Function,overlayStyle:Object,overlayClass:unknownProp,transitionAppear:Boolean,closeOnClickOverlay:truthProp};function getDirection(c,u){return c>u?"horizontal":u>c?"vertical":""}function useTouch(){const c=vue.ref(0),u=vue.ref(0),f=vue.ref(0),d=vue.ref(0),h=vue.ref(0),v=vue.ref(0),p=vue.ref(""),m=vue.ref(!0),g=()=>p.value==="vertical",y=()=>p.value==="horizontal",b=()=>{f.value=0,d.value=0,h.value=0,v.value=0,p.value="",m.value=!0};return{move:vn=>{const J=vn.touches[0];f.value=(J.clientX<0?0:J.clientX)-c.value,d.value=J.clientY-u.value,h.value=Math.abs(f.value),v.value=Math.abs(d.value);const j=10;(!p.value||h.value<j&&v.value<j)&&(p.value=getDirection(h.value,v.value)),m.value&&(h.value>TAP_OFFSET||v.value>TAP_OFFSET)&&(m.value=!1)},start:vn=>{b(),c.value=vn.touches[0].clientX,u.value=vn.touches[0].clientY},reset:b,startX:c,startY:u,deltaX:f,deltaY:d,offsetX:h,offsetY:v,direction:p,isVertical:g,isHorizontal:y,isTap:m}}let totalLockCount=0;const BODY_LOCK_CLASS="van-overflow-hidden";function useLockScroll(c,u){const f=useTouch(),d="01",h="10",v=b=>{f.move(b);const Pn=f.deltaY.value>0?h:d,x=getScrollParent(b.target,c.value),{scrollHeight:vn,offsetHeight:J,scrollTop:j}=x;let Fn="11";j===0?Fn=J>=vn?"00":"01":j+J>=vn&&(Fn="10"),Fn!=="11"&&f.isVertical()&&!(parseInt(Fn,2)&parseInt(Pn,2))&&preventDefault(b,!0)},p=()=>{document.addEventListener("touchstart",f.start),document.addEventListener("touchmove",v,{passive:!1}),totalLockCount||document.body.classList.add(BODY_LOCK_CLASS),totalLockCount++},m=()=>{totalLockCount&&(document.removeEventListener("touchstart",f.start),document.removeEventListener("touchmove",v),totalLockCount--,totalLockCount||document.body.classList.remove(BODY_LOCK_CLASS))},g=()=>u()&&p(),y=()=>u()&&m();onMountedOrActivated(g),vue.onDeactivated(y),vue.onBeforeUnmount(y),vue.watch(u,b=>{b?p():m()})}function useLazyRender(c){const u=vue.ref(!1);return vue.watch(c,f=>{f&&(u.value=f)},{immediate:!0}),f=>()=>u.value?f():null}const useScopeId=()=>{var c;const{scopeId:u}=((c=vue.getCurrentInstance())==null?void 0:c.vnode)||{};return u?{[u]:""}:null},[name$j,bem$h]=createNamespace("overlay"),overlayProps={show:Boolean,zIndex:numericProp,duration:numericProp,className:unknownProp,lockScroll:truthProp,lazyRender:truthProp,customStyle:Object,teleport:[String,Object]};var stdin_default$j=vue.defineComponent({name:name$j,props:overlayProps,setup(c,{slots:u}){const f=vue.ref(),d=useLazyRender(()=>c.show||!c.lazyRender),h=p=>{c.lockScroll&&preventDefault(p,!0)},v=d(()=>{var p;const m=extend(getZIndexStyle(c.zIndex),c.customStyle);return isDef(c.duration)&&(m.animationDuration=`${c.duration}s`),vue.withDirectives(vue.createVNode("div",{ref:f,style:m,class:[bem$h(),c.className]},[(p=u.default)==null?void 0:p.call(u)]),[[vue.vShow,c.show]])});return useEventListener("touchmove",h,{target:f}),()=>{const p=vue.createVNode(vue.Transition,{name:"van-fade",appear:!0},{default:v});return c.teleport?vue.createVNode(vue.Teleport,{to:c.teleport},{default:()=>[p]}):p}}});const Overlay=withInstall(stdin_default$j),popupProps=extend({},popupSharedProps,{round:Boolean,position:makeStringProp("center"),closeIcon:makeStringProp("cross"),closeable:Boolean,transition:String,iconPrefix:String,closeOnPopstate:Boolean,closeIconPosition:makeStringProp("top-right"),safeAreaInsetTop:Boolean,safeAreaInsetBottom:Boolean}),[name$i,bem$g]=createNamespace("popup");var stdin_default$i=vue.defineComponent({name:name$i,inheritAttrs:!1,props:popupProps,emits:["open","close","opened","closed","keydown","update:show","clickOverlay","clickCloseIcon"],setup(c,{emit:u,attrs:f,slots:d}){let h,v;const p=vue.ref(),m=vue.ref(),g=useLazyRender(()=>c.show||!c.lazyRender),y=vue.computed(()=>{const Vn={zIndex:p.value};if(isDef(c.duration)){const Wn=c.position==="center"?"animationDuration":"transitionDuration";Vn[Wn]=`${c.duration}s`}return Vn}),b=()=>{h||(h=!0,p.value=c.zIndex!==void 0?+c.zIndex:useGlobalZIndex(),u("open"))},Pn=()=>{h&&callInterceptor(c.beforeClose,{done(){h=!1,u("close"),u("update:show",!1)}})},x=Vn=>{u("clickOverlay",Vn),c.closeOnClickOverlay&&Pn()},vn=()=>{if(c.overlay)return vue.createVNode(Overlay,vue.mergeProps({show:c.show,class:c.overlayClass,zIndex:p.value,duration:c.duration,customStyle:c.overlayStyle,role:c.closeOnClickOverlay?"button":void 0,tabindex:c.closeOnClickOverlay?0:void 0},useScopeId(),{onClick:x}),{default:d["overlay-content"]})},J=Vn=>{u("clickCloseIcon",Vn),Pn()},j=()=>{if(c.closeable)return vue.createVNode(Icon,{role:"button",tabindex:0,name:c.closeIcon,class:[bem$g("close-icon",c.closeIconPosition),HAPTICS_FEEDBACK],classPrefix:c.iconPrefix,onClick:J},null)};let Fn;const Bn=()=>{Fn&&clearTimeout(Fn),Fn=setTimeout(()=>{u("opened")})},w=()=>u("closed"),gn=Vn=>u("keydown",Vn),re=g(()=>{var Vn;const{round:Wn,position:Gn,safeAreaInsetTop:Zn,safeAreaInsetBottom:Xn}=c;return vue.withDirectives(vue.createVNode("div",vue.mergeProps({ref:m,style:y.value,role:"dialog",tabindex:0,class:[bem$g({round:Wn,[Gn]:Gn}),{"van-safe-area-top":Zn,"van-safe-area-bottom":Xn}],onKeydown:gn},f,useScopeId()),[(Vn=d.default)==null?void 0:Vn.call(d),j()]),[[vue.vShow,c.show]])}),Rn=()=>{const{position:Vn,transition:Wn,transitionAppear:Gn}=c,Zn=Vn==="center"?"van-fade":`van-popup-slide-${Vn}`;return vue.createVNode(vue.Transition,{name:Wn||Zn,appear:Gn,onAfterEnter:Bn,onAfterLeave:w},{default:re})};return vue.watch(()=>c.show,Vn=>{Vn&&!h&&(b(),f.tabindex===0&&vue.nextTick(()=>{var Wn;(Wn=m.value)==null||Wn.focus()})),!Vn&&h&&(h=!1,u("close"))}),useExpose({popupRef:m}),useLockScroll(m,()=>c.show&&c.lockScroll),useEventListener("popstate",()=>{c.closeOnPopstate&&(Pn(),v=!1)}),vue.onMounted(()=>{c.show&&b()}),vue.onActivated(()=>{v&&(u("update:show",!0),v=!1)}),vue.onDeactivated(()=>{c.show&&c.teleport&&(Pn(),v=!0)}),vue.provide(POPUP_TOGGLE_KEY,()=>c.show),()=>c.teleport?vue.createVNode(vue.Teleport,{to:c.teleport},{default:()=>[vn(),Rn()]}):vue.createVNode(vue.Fragment,null,[vn(),Rn()])}});const Popup=withInstall(stdin_default$i),[name$h,bem$f,t$1]=createNamespace("picker"),getFirstEnabledOption=c=>c.find(u=>!u.disabled)||c[0];function getColumnsType(c,u){const f=c[0];if(f){if(Array.isArray(f))return"multiple";if(u.children in f)return"cascade"}return"default"}function findIndexOfEnabledOption(c,u){u=clamp(u,0,c.length);for(let f=u;f<c.length;f++)if(!c[f].disabled)return f;for(let f=u-1;f>=0;f--)if(!c[f].disabled)return f;return 0}const isOptionExist=(c,u,f)=>u!==void 0&&!!c.find(d=>d[f.value]===u);function findOptionByValue(c,u,f){const d=c.findIndex(v=>v[f.value]===u),h=findIndexOfEnabledOption(c,d);return c[h]}function formatCascadeColumns(c,u,f){const d=[];let h={[u.children]:c},v=0;for(;h&&h[u.children];){const p=h[u.children],m=f.value[v];if(h=isDef(m)?findOptionByValue(p,m,u):void 0,!h&&p.length){const g=getFirstEnabledOption(p)[u.value];h=findOptionByValue(p,g,u)}v++,d.push(p)}return d}function getElementTranslateY(c){const{transform:u}=window.getComputedStyle(c),f=u.slice(7,u.length-1).split(", ")[5];return Number(f)}function assignDefaultFields(c){return extend({text:"text",value:"value",children:"children"},c)}const DEFAULT_DURATION=200,MOMENTUM_TIME=300,MOMENTUM_DISTANCE=15,[name$g,bem$e]=createNamespace("picker-column"),PICKER_KEY=Symbol(name$g);var stdin_default$h=vue.defineComponent({name:name$g,props:{value:numericProp,fields:makeRequiredProp(Object),options:makeArrayProp(),readonly:Boolean,allowHtml:Boolean,optionHeight:makeRequiredProp(Number),swipeDuration:makeRequiredProp(numericProp),visibleOptionNum:makeRequiredProp(numericProp)},emits:["change","clickOption","scrollInto"],setup(c,{emit:u,slots:f}){let d,h,v,p,m;const g=vue.ref(),y=vue.ref(),b=vue.ref(0),Pn=vue.ref(0),x=useTouch(),vn=()=>c.options.length,J=()=>c.optionHeight*(+c.visibleOptionNum-1)/2,j=Xn=>{let er=findIndexOfEnabledOption(c.options,Xn);const Jn=-er*c.optionHeight,ir=()=>{er>vn()-1&&(er=findIndexOfEnabledOption(c.options,Xn));const dr=c.options[er][c.fields.value];dr!==c.value&&u("change",dr)};d&&Jn!==b.value?m=ir:ir(),b.value=Jn},Fn=()=>c.readonly||!c.options.length,Bn=Xn=>{d||Fn()||(m=null,Pn.value=DEFAULT_DURATION,j(Xn),u("clickOption",c.options[Xn]))},w=Xn=>clamp(Math.round(-Xn/c.optionHeight),0,vn()-1),gn=vue.computed(()=>w(b.value)),re=(Xn,er)=>{const Jn=Math.abs(Xn/er);Xn=b.value+Jn/.003*(Xn<0?-1:1);const ir=w(Xn);Pn.value=+c.swipeDuration,j(ir)},Rn=()=>{d=!1,Pn.value=0,m&&(m(),m=null)},Vn=Xn=>{if(!Fn()){if(x.start(Xn),d){const er=getElementTranslateY(y.value);b.value=Math.min(0,er-J())}Pn.value=0,h=b.value,v=Date.now(),p=h,m=null}},Wn=Xn=>{if(Fn())return;x.move(Xn),x.isVertical()&&(d=!0,preventDefault(Xn,!0));const er=clamp(h+x.deltaY.value,-(vn()*c.optionHeight),c.optionHeight),Jn=w(er);Jn!==gn.value&&u("scrollInto",c.options[Jn]),b.value=er;const ir=Date.now();ir-v>MOMENTUM_TIME&&(v=ir,p=er)},Gn=()=>{if(Fn())return;const Xn=b.value-p,er=Date.now()-v;if(er<MOMENTUM_TIME&&Math.abs(Xn)>MOMENTUM_DISTANCE){re(Xn,er);return}const ir=w(b.value);Pn.value=DEFAULT_DURATION,j(ir),setTimeout(()=>{d=!1},0)},Zn=()=>{const Xn={height:`${c.optionHeight}px`};return c.options.map((er,Jn)=>{const ir=er[c.fields.text],{disabled:dr}=er,or=er[c.fields.value],Hn={role:"button",style:Xn,tabindex:dr?-1:0,class:[bem$e("item",{disabled:dr,selected:or===c.value}),er.className],onClick:()=>Bn(Jn)},Kn={class:"van-ellipsis",[c.allowHtml?"innerHTML":"textContent"]:ir};return vue.createVNode("li",Hn,[f.option?f.option(er,Jn):vue.createVNode("div",Kn,null)])})};return useParent(PICKER_KEY),useExpose({stopMomentum:Rn}),vue.watchEffect(()=>{const Xn=d?Math.floor(-b.value/c.optionHeight):c.options.findIndex(ir=>ir[c.fields.value]===c.value),er=findIndexOfEnabledOption(c.options,Xn),Jn=-er*c.optionHeight;d&&er<Xn&&Rn(),b.value=Jn}),useEventListener("touchmove",Wn,{target:g}),()=>vue.createVNode("div",{ref:g,class:bem$e(),onTouchstartPassive:Vn,onTouchend:Gn,onTouchcancel:Gn},[vue.createVNode("ul",{ref:y,style:{transform:`translate3d(0, ${b.value+J()}px, 0)`,transitionDuration:`${Pn.value}ms`,transitionProperty:Pn.value?"all":"none"},class:bem$e("wrapper"),onTransitionend:Rn},[Zn()])])}});const[name$f]=createNamespace("picker-toolbar"),pickerToolbarProps={title:String,cancelButtonText:String,confirmButtonText:String},pickerToolbarSlots=["cancel","confirm","title","toolbar"],pickerToolbarPropKeys=Object.keys(pickerToolbarProps);var stdin_default$g=vue.defineComponent({name:name$f,props:pickerToolbarProps,emits:["confirm","cancel"],setup(c,{emit:u,slots:f}){const d=()=>{if(f.title)return f.title();if(c.title)return vue.createVNode("div",{class:[bem$f("title"),"van-ellipsis"]},[c.title])},h=()=>u("cancel"),v=()=>u("confirm"),p=()=>{var g;const y=(g=c.cancelButtonText)!=null?g:t$1("cancel");if(!(!f.cancel&&!y))return vue.createVNode("button",{type:"button",class:[bem$f("cancel"),HAPTICS_FEEDBACK],onClick:h},[f.cancel?f.cancel():y])},m=()=>{var g;const y=(g=c.confirmButtonText)!=null?g:t$1("confirm");if(!(!f.confirm&&!y))return vue.createVNode("button",{type:"button",class:[bem$f("confirm"),HAPTICS_FEEDBACK],onClick:v},[f.confirm?f.confirm():y])};return()=>vue.createVNode("div",{class:bem$f("toolbar")},[f.toolbar?f.toolbar():[p(),d(),m()]])}});const useSyncPropRef=(c,u)=>{const f=vue.ref(c());return vue.watch(c,d=>{d!==f.value&&(f.value=d)}),vue.watch(f,d=>{d!==c()&&u(d)}),f};/**
183
183
  * @vue/shared v3.5.4
184
184
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
185
185
  * @license MIT