dash-ant-design 0.1.0 → 0.1.2
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/README.md +135 -28
- package/dash_antd_components/async-audio-player.js +1 -0
- package/dash_antd_components/async-chart-ava.js +1 -0
- package/dash_antd_components/async-chart.js +1 -0
- package/dash_antd_components/async-data-entry.js +1 -0
- package/dash_antd_components/async-display.js +1 -1
- package/dash_antd_components/async-dnd-shared.js +1 -0
- package/dash_antd_components/async-dnd.js +1 -1
- package/dash_antd_components/async-feedback.js +1 -1
- package/dash_antd_components/async-form-upload.js +1 -0
- package/dash_antd_components/async-highlight-shared.js +1 -0
- package/dash_antd_components/async-highlight.js +1 -0
- package/dash_antd_components/async-icon-filled.js +1 -0
- package/dash_antd_components/async-icon-outlined.js +1 -0
- package/dash_antd_components/async-icon-twotone.js +1 -0
- package/dash_antd_components/async-infographic.js +1 -1
- package/dash_antd_components/async-locale-ar.js +1 -0
- package/dash_antd_components/async-locale-az.js +1 -0
- package/dash_antd_components/async-locale-bg.js +1 -0
- package/dash_antd_components/async-locale-bn.js +1 -0
- package/dash_antd_components/async-locale-by.js +1 -0
- package/dash_antd_components/async-locale-ca.js +1 -0
- package/dash_antd_components/async-locale-cs.js +1 -0
- package/dash_antd_components/async-locale-da.js +1 -0
- package/dash_antd_components/async-locale-de.js +1 -0
- package/dash_antd_components/async-locale-el.js +1 -0
- package/dash_antd_components/async-locale-en.js +1 -0
- package/dash_antd_components/async-locale-es.js +1 -0
- package/dash_antd_components/async-locale-et.js +1 -0
- package/dash_antd_components/async-locale-eu.js +1 -0
- package/dash_antd_components/async-locale-fa.js +1 -0
- package/dash_antd_components/async-locale-fi.js +1 -0
- package/dash_antd_components/async-locale-fr.js +1 -0
- package/dash_antd_components/async-locale-ga.js +1 -0
- package/dash_antd_components/async-locale-gl.js +1 -0
- package/dash_antd_components/async-locale-he.js +1 -0
- package/dash_antd_components/async-locale-hi.js +1 -0
- package/dash_antd_components/async-locale-hr.js +1 -0
- package/dash_antd_components/async-locale-hu.js +1 -0
- package/dash_antd_components/async-locale-hy.js +1 -0
- package/dash_antd_components/async-locale-id.js +1 -0
- package/dash_antd_components/async-locale-is.js +1 -0
- package/dash_antd_components/async-locale-it.js +1 -0
- package/dash_antd_components/async-locale-ja.js +1 -0
- package/dash_antd_components/async-locale-ka.js +1 -0
- package/dash_antd_components/async-locale-kk.js +1 -0
- package/dash_antd_components/async-locale-km.js +1 -0
- package/dash_antd_components/async-locale-kmr.js +1 -0
- package/dash_antd_components/async-locale-kn.js +1 -0
- package/dash_antd_components/async-locale-ko.js +1 -0
- package/dash_antd_components/async-locale-ku.js +1 -0
- package/dash_antd_components/async-locale-lt.js +1 -0
- package/dash_antd_components/async-locale-lv.js +1 -0
- package/dash_antd_components/async-locale-mk.js +1 -0
- package/dash_antd_components/async-locale-ml.js +1 -0
- package/dash_antd_components/async-locale-mn.js +1 -0
- package/dash_antd_components/async-locale-mr.js +1 -0
- package/dash_antd_components/async-locale-ms.js +1 -0
- package/dash_antd_components/async-locale-my.js +1 -0
- package/dash_antd_components/async-locale-nb.js +1 -0
- package/dash_antd_components/async-locale-ne.js +1 -0
- package/dash_antd_components/async-locale-nl.js +1 -0
- package/dash_antd_components/async-locale-pl.js +1 -0
- package/dash_antd_components/async-locale-pt.js +1 -0
- package/dash_antd_components/async-locale-ro.js +1 -0
- package/dash_antd_components/async-locale-ru.js +1 -0
- package/dash_antd_components/async-locale-si.js +1 -0
- package/dash_antd_components/async-locale-sk.js +1 -0
- package/dash_antd_components/async-locale-sl.js +1 -0
- package/dash_antd_components/async-locale-sq.js +1 -0
- package/dash_antd_components/async-locale-sr.js +1 -0
- package/dash_antd_components/async-locale-sv.js +1 -0
- package/dash_antd_components/async-locale-ta.js +1 -0
- package/dash_antd_components/async-locale-th.js +1 -0
- package/dash_antd_components/async-locale-tk.js +1 -0
- package/dash_antd_components/async-locale-tr.js +1 -0
- package/dash_antd_components/async-locale-uk.js +1 -0
- package/dash_antd_components/async-locale-ur.js +1 -0
- package/dash_antd_components/async-locale-uz.js +1 -0
- package/dash_antd_components/async-locale-vi.js +1 -0
- package/dash_antd_components/async-locale-zh.js +1 -0
- package/dash_antd_components/async-lottie.js +1 -0
- package/dash_antd_components/async-markdown.js +1 -1
- package/dash_antd_components/async-media-shared.js +1 -0
- package/dash_antd_components/async-media.js +1 -1
- package/dash_antd_components/async-navigation.js +1 -0
- package/dash_antd_components/async-picker.js +1 -1
- package/dash_antd_components/async-select.js +1 -1
- package/dash_antd_components/async-sheet.js +1 -0
- package/dash_antd_components/async-socket-io.js +1 -0
- package/dash_antd_components/async-table.js +1 -1
- package/dash_antd_components/async-tree.js +1 -1
- package/dash_antd_components/async-video-dash.js +1 -0
- package/dash_antd_components/async-video-hls.js +1 -0
- package/dash_antd_components/async-video-player.js +1 -0
- package/dash_antd_components/async-viz-canvas-shared.js +1 -0
- package/dash_antd_components/async-viz-shared.js +1 -0
- package/dash_antd_components/dash_antd_components.js +1 -1
- package/package.json +43 -44
- package/dash_antd_components/async-anchor.js +0 -1
- package/dash_antd_components/async-breadcrumb.js +0 -1
- package/dash_antd_components/async-cascader.js +0 -1
- package/dash_antd_components/async-controls.js +0 -1
- package/dash_antd_components/async-count.js +0 -1
- package/dash_antd_components/async-echarts.js +0 -1
- package/dash_antd_components/async-filled-icon.js +0 -1
- package/dash_antd_components/async-floating.js +0 -1
- package/dash_antd_components/async-form.js +0 -1
- package/dash_antd_components/async-g2.js +0 -1
- package/dash_antd_components/async-input.js +0 -1
- package/dash_antd_components/async-layout.js +0 -1
- package/dash_antd_components/async-locale.js +0 -1
- package/dash_antd_components/async-lunar-calendar.js +0 -1
- package/dash_antd_components/async-mentions.js +0 -1
- package/dash_antd_components/async-menu.js +0 -1
- package/dash_antd_components/async-outlined-icon.js +0 -1
- package/dash_antd_components/async-overlay.js +0 -1
- package/dash_antd_components/async-pagination.js +0 -1
- package/dash_antd_components/async-prism.js +0 -1
- package/dash_antd_components/async-s2.js +0 -1
- package/dash_antd_components/async-steps.js +0 -1
- package/dash_antd_components/async-tabs.js +0 -1
- package/dash_antd_components/async-transfer.js +0 -1
- package/dash_antd_components/async-twotone-icon.js +0 -1
- package/dash_antd_components/async-upload.js +0 -1
- package/dash_antd_components/proptypes.js +0 -5051
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunkdash_antd_components=self.webpackChunkdash_antd_components||[]).push([["async-g2"],{"./node_modules/.pnpm/@antv+coord@0.4.7/node_modules/@antv/coord/dist/coordinate.min.js"(t,e){!function(t){"use strict";function e(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return{value:(t=t&&r>=t.length?void 0:t)&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function n(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,A=n.call(t),o=[];try{for(;(void 0===e||0<e--)&&!(r=A.next()).done;)o.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=A.return)&&n.call(A)}finally{if(i)throw i.error}}return o}function r(t,e,n){if(n||2===arguments.length)for(var r,i=0,A=e.length;i<A;i++)!r&&i in e||((r=r||Array.prototype.slice.call(e,0,i))[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))}function i(t){return o(t,"Function")}var A={}.toString,o=function(t,e){return A.call(t)==="[object "+e+"]"},a=function(t){return Array.isArray?Array.isArray(t):o(t,"Array")},s=function(t){if("object"!=typeof(e=t)||null===e||!o(t,"Object"))return!1;var e;if(null===Object.getPrototypeOf(t))return!0;for(var n=t;null!==Object.getPrototypeOf(n);)n=Object.getPrototypeOf(n);return Object.getPrototypeOf(t)===n},l=function(t){return o(t,"Number")},c=Object.values?function(t){return Object.values(t)}:function(t){var e,n=[],r=t,A=function(e,r){i(t)&&"prototype"===r||n.push(e)};if(r)if(a(r))for(var o=0,s=r.length;o<s&&!1!==A(r[o],o);o++);else if(e=typeof r,null!==r&&"object"==e||"function"==e)for(var l in r)if(r.hasOwnProperty(l)&&!1===A(r[l],l))break;return n};function u(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];for(var r=0;r<e.length;r+=1)!function t(e,n,r,i){for(var A in r=r||0,i=i||5,n){var o;n.hasOwnProperty(A)&&(null!==(o=n[A])&&s(o)?(s(e[A])||(e[A]={}),r<i?t(e[A],o,r+1,i):e[A]=n[A]):a(o)?(e[A]=[],e[A]=e[A].concat(o)):void 0!==o&&(e[A]=o))}}(t,e[r]);return t}function d(t){return t}!function(t,e){var n;if(i(t))return(n=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var A,o=e?e.apply(this,r):r[0],a=n.cache;return a.has(o)?a.get(o):(A=t.apply(this,r),a.set(o,A),A)}).cache=new Map;throw new TypeError("Expected a function")}(function(t,e){var n=(e=void 0===e?{}:e).fontSize,r=e.fontFamily,i=e.fontWeight,A=e.fontStyle;return e=e.fontVariant,(f=f||document.createElement("canvas").getContext("2d")).font=[A,e,i,n+"px",r].join(" "),f.measureText(o(t,"String")?t:"").width},function(t,e){return function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),i=0;for(e=0;e<n;e++)for(var A=arguments[e],o=0,a=A.length;o<a;o++,i++)r[i]=A[o];return r}([t],c(e=void 0===e?{}:e)).join("")});var f,h="undefined"!=typeof Float32Array?Float32Array:Array;function p(){var t=new h(9);return h!=Float32Array&&(t[1]=0,t[2]=0,t[3]=0,t[5]=0,t[6]=0,t[7]=0),t[0]=1,t[4]=1,t[8]=1,t}Math.hypot||(Math.hypot=function(){for(var t=0,e=arguments.length;e--;)t+=arguments[e]*arguments[e];return Math.sqrt(t)});function g(){var t=new h(16);return h!=Float32Array&&(t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=0,t[12]=0,t[13]=0,t[14]=0),t[0]=1,t[5]=1,t[10]=1,t[15]=1,t}function m(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return t?e.reduce(function(t,e){return function(n){return e(t(n))}},t):d}function y(t){return t instanceof Float32Array||t instanceof Array}function v(t,e,n){for(;t<e;)t+=2*Math.PI;for(;n<t;)t-=2*Math.PI;return t}function b(t,e,r,i,A){var o=(t=n(t,2))[0];return o=[o,t=t[1]],(t=p())[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=o[0],t[7]=o[1],t[8]=1,t}function w(t,...e){return e.reduce((t,e)=>n=>t(e(n)),t)}function B(t,e){return e-t?n=>(n-t)/(e-t):t=>.5}U=new h(3),h!=Float32Array&&(U[0]=0,U[1]=0,U[2]=0),U=new h(4),h!=Float32Array&&(U[0]=0,U[1]=0,U[2]=0,U[3]=0);const x=Math.sqrt(50),C=Math.sqrt(10),E=Math.sqrt(2);function O(t,e,n){return n=(e=(e-t)/Math.max(0,n))/10**(t=Math.floor(Math.log(e)/Math.LN10)),0<=t?(n>=x?10:n>=C?5:n>=E?2:1)*10**t:-(10**-t)/(n>=x?10:n>=C?5:n>=E?2:1)}const k=(t,e,n=5)=>{let r,i=0,A=(t=[t,e]).length-1,o=t[i],a=t[A];return a<o&&([o,a]=[a,o],[i,A]=[A,i]),0<(r=O(o,a,n))?(o=Math.floor(o/r)*r,a=Math.ceil(a/r)*r,r=O(o,a,n)):r<0&&(o=Math.ceil(o*r)/r,a=Math.floor(a*r)/r,r=O(o,a,n)),0<r?(t[i]=Math.floor(o/r)*r,t[A]=Math.ceil(a/r)*r):r<0&&(t[i]=Math.ceil(o*r)/r,t[A]=Math.floor(a*r)/r),t};function F(t){return null!=t&&!Number.isNaN(t)}function Q(t,e){return n=>{n.prototype.rescale=function(){this.initRange(),this.nice();var[t]=this.chooseTransforms();this.composeOutput(t,this.chooseClamp(t))},n.prototype.initRange=function(){this.options.range=t(this.options.interpolator)},n.prototype.composeOutput=function(t,n){var r,{domain:i,interpolator:A,round:o}=this.getOptions(),i=e(i.map(t)),o=o?(r=A,t=>(t=r(t),l(t)?Math.round(t):t)):A;this.output=w(o,i,n,t)},n.prototype.invert=void 0}}var M,U={exports:{}},S={exports:{}},_=function(t){return!(!t||"string"==typeof t)&&(t instanceof Array||Array.isArray(t)||0<=t.length&&(t.splice instanceof Function||Object.getOwnPropertyDescriptor(t,t.length-1)&&"String"!==t.constructor.name))},I=Array.prototype.concat,T=Array.prototype.slice,L=S.exports=function(t){for(var e=[],n=0,r=t.length;n<r;n++){var i=t[n];_(i)?e=I.call(e,T.call(i)):e.push(i)}return e},P=(L.wrap=function(t){return function(){return t(L(arguments))}},{aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}),j=S.exports,H=Object.hasOwnProperty,N=Object.create(null);for(M in P)H.call(P,M)&&(N[P[M]]=M);var D=U.exports={to:{},get:{}};function R(t,e,n){return Math.min(Math.max(e,t),n)}function K(t){return(t=Math.round(t).toString(16).toUpperCase()).length<2?"0"+t:t}D.get=function(t){var e,n;switch(t.substring(0,3).toLowerCase()){case"hsl":e=D.get.hsl(t),n="hsl";break;case"hwb":e=D.get.hwb(t),n="hwb";break;default:e=D.get.rgb(t),n="rgb"}return e?{model:n,value:e}:null},D.get.rgb=function(t){if(!t)return null;var e,n,r,i=[0,0,0,1];if(e=t.match(/^#([a-f0-9]{6})([a-f0-9]{2})?$/i)){for(r=e[2],e=e[1],n=0;n<3;n++){var A=2*n;i[n]=parseInt(e.slice(A,2+A),16)}r&&(i[3]=parseInt(r,16)/255)}else if(e=t.match(/^#([a-f0-9]{3,4})$/i)){for(r=(e=e[1])[3],n=0;n<3;n++)i[n]=parseInt(e[n]+e[n],16);r&&(i[3]=parseInt(r+r,16)/255)}else{if(e=t.match(/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/))for(n=0;n<3;n++)i[n]=parseInt(e[n+1],0);else{if(!(e=t.match(/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)))return(e=t.match(/^(\w+)$/))?"transparent"===e[1]?[0,0,0,0]:H.call(P,e[1])?((i=P[e[1]])[3]=1,i):null:null;for(n=0;n<3;n++)i[n]=Math.round(2.55*parseFloat(e[n+1]))}e[4]&&(i[3]=e[5]?.01*parseFloat(e[4]):parseFloat(e[4]))}for(n=0;n<3;n++)i[n]=R(i[n],0,255);return i[3]=R(i[3],0,1),i},D.get.hsl=function(t){var e;return(t=t&&t.match(/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d\.]+)%\s*,?\s*([+-]?[\d\.]+)%\s*(?:[,|\/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/))?(e=parseFloat(t[4]),[(parseFloat(t[1])%360+360)%360,R(parseFloat(t[2]),0,100),R(parseFloat(t[3]),0,100),R(isNaN(e)?1:e,0,1)]):null},D.get.hwb=function(t){var e;return(t=t&&t.match(/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/))?(e=parseFloat(t[4]),[(parseFloat(t[1])%360+360)%360,R(parseFloat(t[2]),0,100),R(parseFloat(t[3]),0,100),R(isNaN(e)?1:e,0,1)]):null},D.to.hex=function(){var t=j(arguments);return"#"+K(t[0])+K(t[1])+K(t[2])+(t[3]<1?K(Math.round(255*t[3])):"")},D.to.rgb=function(){var t=j(arguments);return t.length<4||1===t[3]?"rgb("+Math.round(t[0])+", "+Math.round(t[1])+", "+Math.round(t[2])+")":"rgba("+Math.round(t[0])+", "+Math.round(t[1])+", "+Math.round(t[2])+", "+t[3]+")"},D.to.rgb.percent=function(){var t=j(arguments),e=Math.round(t[0]/255*100),n=Math.round(t[1]/255*100),r=Math.round(t[2]/255*100);return t.length<4||1===t[3]?"rgb("+e+"%, "+n+"%, "+r+"%)":"rgba("+e+"%, "+n+"%, "+r+"%, "+t[3]+")"},D.to.hsl=function(){var t=j(arguments);return t.length<4||1===t[3]?"hsl("+t[0]+", "+t[1]+"%, "+t[2]+"%)":"hsla("+t[0]+", "+t[1]+"%, "+t[2]+"%, "+t[3]+")"},D.to.hwb=function(){var t=j(arguments),e="";return 4<=t.length&&1!==t[3]&&(e=", "+t[3]),"hwb("+t[0]+", "+t[1]+"%, "+t[2]+"%"+e+")"},D.to.keyword=function(t){return N[t.slice(0,3)]};var z=U.exports;function G(t,e,n){let r=n;return r<0&&(r+=1),1<r&&--r,r<1/6?t+6*(e-t)*r:r<.5?e:r<2/3?t+(e-t)*(2/3-r)*6:t}function V(t){var e,n,r;return(t=z.get(t))?(({model:t,value:e}=t),"rgb"===t?e:"hsl"===t?(e=(t=e)[0]/360,n=t[1]/100,r=t[2]/100,t=t[3],0==n?[255*r,255*r,255*r,t]:[255*G(n=2*r-(r=r<.5?r*(1+n):r+n-r*n),r,e+1/3),255*G(n,r,e),255*G(n,r,e-1/3),t]):null):null}const W=(t,e)=>n=>t*(1-n)+e*n,X=(t,e)=>{if("number"==typeof t&&"number"==typeof e)return W(t,e);if("string"!=typeof t||"string"!=typeof e)return()=>t;{var n=t,r=e;const i=V(n),A=V(r);return null===i||null===A?i?()=>n:()=>r:t=>{var e=new Array(4);for(let n=0;n<4;n+=1)e[n]=i[n]*(1-t)+A[n]*t;var[n,r,o,a]=e;return`rgba(${Math.round(n)}, ${Math.round(r)}, ${Math.round(o)}, ${a})`}}},Y=(t,e)=>{const n=W(t,e);return t=>Math.round(n(t))};function $({map:t,initKey:e},n){return e=e(n),t.has(e)?t.get(e):n}function q(t){return"object"==typeof t?t.valueOf():t}class Z extends Map{constructor(t){if(super(),this.map=new Map,this.initKey=q,null!==t)for(var[e,n]of t)this.set(e,n)}get(t){return super.get($({map:this.map,initKey:this.initKey},t))}has(t){return super.has($({map:this.map,initKey:this.initKey},t))}set(t,e){return super.set(([{map:t,initKey:n},r]=[{map:this.map,initKey:this.initKey},t],n=n(r),t.has(n)?t.get(n):(t.set(n,r),r)),e);var n,r}delete(t){return super.delete(([{map:t,initKey:e},n]=[{map:this.map,initKey:this.initKey},t],e=e(n),t.has(e)&&(n=t.get(e),t.delete(e)),n));var e,n}}class J{constructor(t){this.options=u({},this.getDefaultOptions()),this.update(t)}getOptions(){return this.options}update(t={}){this.options=u({},this.options,t),this.rescale(t)}rescale(t){}}const tt=Symbol("defaultUnknown");function et(t,e,n){for(let r=0;r<e.length;r+=1)t.has(e[r])||t.set(n(e[r]),r)}function nt(t){var{value:t,from:e,to:n,mapper:r,notFoundReturn:i}=t;let A=r.get(t);if(void 0===A){if(i!==tt)return i;A=e.push(t)-1,r.set(t,A)}return n[A%n.length]}function rt(t){return t instanceof Date?t=>""+t:"object"==typeof t?t=>JSON.stringify(t):t=>t}class it extends J{getDefaultOptions(){return{domain:[],range:[],unknown:tt}}constructor(t){super(t)}map(t){return 0===this.domainIndexMap.size&&et(this.domainIndexMap,this.getDomain(),this.domainKey),nt({value:this.domainKey(t),mapper:this.domainIndexMap,from:this.getDomain(),to:this.getRange(),notFoundReturn:this.options.unknown})}invert(t){return 0===this.rangeIndexMap.size&&et(this.rangeIndexMap,this.getRange(),this.rangeKey),nt({value:this.rangeKey(t),mapper:this.rangeIndexMap,from:this.getRange(),to:this.getDomain(),notFoundReturn:this.options.unknown})}rescale(t){var[e]=this.options.domain,[n]=this.options.range;this.domainKey=rt(e),this.rangeKey=rt(n),this.rangeIndexMap?(t&&!t.range||this.rangeIndexMap.clear(),t&&!t.domain&&!t.compare||(this.domainIndexMap.clear(),this.sortedDomain=void 0)):(this.rangeIndexMap=new Map,this.domainIndexMap=new Map)}clone(){return new it(this.options)}getRange(){return this.options.range}getDomain(){var t,e;return this.sortedDomain||(({domain:t,compare:e}=this.options),this.sortedDomain=e?[...t].sort(e):t),this.sortedDomain}}class At extends it{getDefaultOptions(){return{domain:[],range:[0,1],align:.5,round:!1,paddingInner:0,paddingOuter:0,padding:0,unknown:tt,flex:[]}}constructor(t){super(t)}clone(){return new At(this.options)}getStep(t){return void 0===this.valueStep?1:"number"==typeof this.valueStep?this.valueStep:void 0===t?Array.from(this.valueStep.values())[0]:this.valueStep.get(t)}getBandWidth(t){return void 0===this.valueBandWidth?1:"number"==typeof this.valueBandWidth?this.valueBandWidth:void 0===t?Array.from(this.valueBandWidth.values())[0]:this.valueBandWidth.get(t)}getRange(){return this.adjustedRange}getPaddingInner(){var{padding:t,paddingInner:e}=this.options;return 0<t?t:e}getPaddingOuter(){var{padding:t,paddingOuter:e}=this.options;return 0<t?t:e}rescale(){super.rescale();var{align:t,domain:e,range:n,round:r,flex:i}=this.options,{adjustedRange:t,valueBandWidth:n,valueStep:r}=function(t){var e=t.domain;if(0===(e=e.length))return{valueBandWidth:void 0,valueStep:void 0,adjustedRange:[]};if(null!=(n=t.flex)&&n.length)return function(t){const{domain:e,range:n,paddingOuter:r,paddingInner:i,flex:A,round:o,align:a}=t;var s,l=e.length,c=0<(c=(t=l)-(s=A).length)?[...s,...new Array(c).fill(1)]:c<0?s.slice(0,t):s,[t,s]=n;const u=(p=(s-=t)/(2/l*r+1-1/l*i))*i/l;p-=l*u;const d=function(t){const e=Math.min(...t);return t.map(t=>t/e)}(c),f=p/d.reduce((t,e)=>t+e);c=new Z(e.map((t,e)=>(e=d[e]*f,[t,o?Math.floor(e):e])));var h=new Z(e.map((t,e)=>(e=d[e]*f+u,[t,o?Math.floor(e):e]))),p=Array.from(h.values()).reduce((t,e)=>t+e);t+=(s-(p-p/l*i))*a;let g=o?Math.round(t):t;var m=new Array(l);for(let t=0;t<l;t+=1){m[t]=(y=g,Math.round(1e12*y)/1e12);var y=e[t];g+=h.get(y)}return{valueBandWidth:c,valueStep:h,adjustedRange:m}}(t);var{range:n,paddingOuter:t,paddingInner:r,round:i,align:A}=t;let o,a,s=n[0];return o=(n=n[1]-s)/Math.max(1,2*t+(e-r)),i&&(o=Math.floor(o)),s+=(n-o*(e-r))*A,a=o*(1-r),i&&(s=Math.round(s),a=Math.round(a)),t=new Array(e).fill(0).map((t,e)=>s+e*o),{valueStep:o,valueBandWidth:a,adjustedRange:t}}({align:t,range:n,round:r,flex:i,paddingInner:this.getPaddingInner(),paddingOuter:this.getPaddingOuter(),domain:e});this.valueStep=r,this.valueBandWidth=n,this.adjustedRange=t}}const ot=(t,e,n)=>{let r,i,A=t,o=e;if(A===o&&0<n)return[A];let a=O(A,o,n);if(0===a||!Number.isFinite(a))return[];if(0<a){A=Math.ceil(A/a),o=Math.floor(o/a),i=new Array(r=Math.ceil(o-A+1));for(let t=0;t<r;t+=1)i[t]=(A+t)*a}else{a=-a,A=Math.ceil(A*a),o=Math.floor(o*a),i=new Array(r=Math.ceil(o-A+1));for(let t=0;t<r;t+=1)i[t]=(A+t)/a}return i},at=(t,e,n)=>{var[t,r]=t,[e,i]=e;let A,o;return w(o=t<r?(A=B(t,r),n(e,i)):(A=B(r,t),n(i,e)),A)},st=(t,e,n)=>{const r=Math.min(t.length,e.length)-1,i=new Array(r),A=new Array(r);var o=t[0]>t[r],a=o?[...t].reverse():t,s=o?[...e].reverse():e;for(let t=0;t<r;t+=1)i[t]=B(a[t],a[t+1]),A[t]=n(s[t],s[t+1]);return e=>{var n=function(t,e,n,r){let i=1,A=r||t.length;for(var o=t=>t;i<A;){var a=Math.floor((i+A)/2);o(t[a])>e?A=a:i=a+1}return i}(t,e,0,r)-1;return w(A[n],i[n])(e)}},lt=(t,e,n,r)=>(2<Math.min(t.length,e.length)?st:at)(t,e,r?Y:n);class ct extends J{getDefaultOptions(){return{domain:[0,1],range:[0,1],nice:!1,clamp:!1,round:!1,interpolate:W,tickCount:5}}map(t){return F(t)?this.output(t):this.options.unknown}invert(t){return F(t)?this.input(t):this.options.unknown}nice(){var t,e,n,r;this.options.nice&&([t,e,n,...r]=this.getTickMethodOptions(),this.options.domain=this.chooseNice()(t,e,n,...r))}getTicks(){var t=this.options.tickMethod,[e,n,r,...i]=this.getTickMethodOptions();return t(e,n,r,...i)}getTickMethodOptions(){var{domain:t,tickCount:e}=this.options;return[t[0],t[t.length-1],e]}chooseNice(){return k}rescale(){this.nice();var[t,e]=this.chooseTransforms();this.composeOutput(t,this.chooseClamp(t)),this.composeInput(t,e,this.chooseClamp(e))}chooseClamp(t){var{clamp:e,range:n}=this.options,n=(t=this.options.domain.map(t),Math.min(t.length,n.length));if(e){e=t[0];const r=(t=t[n-1])<e?t:e,i=t<e?e:t;return t=>Math.min(Math.max(r,t),i)}return d}composeOutput(t,e){var{domain:n,range:r,round:i,interpolate:A}=this.options,n=lt(n.map(t),r,A,i);this.output=w(n,e,t)}composeInput(t,e,n){var{domain:r,range:i}=this.options,i=lt(i,r.map(t),W);this.input=w(e,n,i)}}class ut extends ct{getDefaultOptions(){return{domain:[0,1],range:[0,1],unknown:void 0,nice:!1,clamp:!1,round:!1,interpolate:X,tickMethod:ot,tickCount:5}}chooseTransforms(){return[d,d]}clone(){return new ut(this.options)}}class dt extends At{getDefaultOptions(){return{domain:[],range:[0,1],align:.5,round:!1,padding:0,unknown:tt,paddingInner:1,paddingOuter:0}}constructor(t){super(t)}getPaddingInner(){return 1}clone(){return new dt(this.options)}update(t){super.update(t)}getPaddingOuter(){return this.options.padding}}function ft(t,e){for(var n=[],r=0,i=t.length;r<i;r++)n.push(t[r].substr(0,e));return n}S=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];var ht,pt,gt=ft(U=["January","February","March","April","May","June","July","August","September","October","November","December"],3);!function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];for(var r=0,i=e;r<i.length;r++){var A,o=i[r];for(A in o)t[A]=o[A]}}({},{dayNamesShort:ft(S,3),dayNames:S,monthNamesShort:gt,monthNames:U,amPm:["am","pm"],DoFn:function(t){return t+["th","st","nd","rd"][3<t%10?0:(t-t%10!=10?1:0)*t%10]}});let mt=ht=class extends ut{getDefaultOptions(){return{domain:[0,1],unknown:void 0,nice:!1,clamp:!1,round:!1,interpolator:d,tickMethod:ot,tickCount:5}}constructor(t){super(t)}clone(){return new ht(this.options)}};mt=ht=function(t,e,n,r){var i,A=arguments.length,o=A<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;0<=a;a--)(i=t[a])&&(o=(A<3?i(o):3<A?i(e,n,o):i(e,n))||o);return 3<A&&o&&Object.defineProperty(e,n,o),o}([Q(function(t){return[t(0),t(1)]},t=>{var[t,e]=t;return w(W(0,1),B(t,e))})],mt);let yt=pt=class extends ut{getDefaultOptions(){return{domain:[0,.5,1],unknown:void 0,nice:!1,clamp:!1,round:!1,interpolator:d,tickMethod:ot,tickCount:5}}constructor(t){super(t)}clone(){return new pt(this.options)}};function vt(t,e,r,i,A){var o=new ut({range:[e,e+i]}),a=new ut({range:[r,r+A]});return{transform:function(t){var e=(t=n(t,2))[0];return t=t[1],[o.map(e),a.map(t)]},untransform:function(t){var e=(t=n(t,2))[0];return t=t[1],[o.invert(e),a.invert(t)]}}}function bt(t,e,r,i,A){return(0,n(t,1)[0])(e,r,i,A)}function wt(t,e,r,i,A){return n(t,1)[0]}function Bt(t,e,r,i,A){var o=(t=n(t,4))[0],a=t[1],s=t[2],l=new ut({range:[s,t=t[3]]}),c=new ut({range:[o,a]}),u=1<(s=A/i)?1:s,d=1<s?1/s:1;return{transform:function(t){var e=(t=n(t,2))[0];return t=t[1],e=c.map(e),[(t=l.map(t))*Math.cos(e)*u*.5+.5,t*Math.sin(e)*d*.5+.5]},untransform:function(t){var e=2*((e=(t=n(t,2))[0])-.5)/u,r=(t=2*((t=t[1])-.5)/d,Math.sqrt(Math.pow(e,2)+Math.pow(t,2)));return t=v(Math.atan2(t,e),o,a),[c.invert(t),l.invert(r)]}}}function xt(t,e,r,i,A){return{transform:function(t){return[(t=n(t,2))[1],t[0]]},untransform:function(t){return[(t=n(t,2))[1],t[0]]}}}function Ct(t){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];return Mt.apply(void 0,r([[-1,-1]],n(e),!1))}function Et(t){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];return Mt.apply(void 0,r([[-1,1]],n(e),!1))}function Ot(t){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];return Mt.apply(void 0,r([[1,-1]],n(e),!1))}function kt(t,e,r,i,A){t=n(t,1)[0];var o,a=p();return o=Math.sin(t),t=Math.cos(t),a[0]=t,a[1]=o,a[2]=0,a[3]=-o,a[4]=t,a[5]=0,a[6]=0,a[7]=0,a[8]=1,a}function Ft(t,e,r,i,A){var o=(t=n(t,4))[0],a=t[1],s=t[2],l=(t[3]-s)/(+a/(2*Math.PI)+1),c=l/(2*Math.PI),u=new ut({range:[s,s+.99*l]}),d=new ut({range:[o,a]}),f=1<(t=A/i)?1:t,h=1<t?1/t:1;return{transform:function(t){var e=(t=n(t,2))[0];return t=t[1],e=d.map(e),t=u.map(t),[Math.cos(e)*(c*e+t)*f*.5+.5,Math.sin(e)*(c*e+t)*h*.5+.5]},untransform:function(t){var e=2*((e=(t=n(t,2))[0])-.5)/f,r=(t=2*((t=t[1])-.5)/h,Math.sqrt(Math.pow(e,2)+Math.pow(t,2)));return t=v(Math.atan2(t,e)+Math.floor(r/l)*Math.PI*2,o,a),e=r-c*t,[d.invert(t),u.invert(e)]}}}function Qt(t,e,r,i,A){var o=(t=n(t,4))[0],a=t[1],s=new ut({range:[t[2],t=t[3]]});return{transform:function(t){for(var e=[],n=t.length,r=new dt({domain:new Array(n).fill(0).map(function(t,e){return e}),range:[o,a]}),i=0;i<n;i++){var A=t[i],l=r.map(i);A=s.map(A),e.push(l,A)}return e},untransform:function(t){for(var e=[],n=0;n<t.length;n+=2)e.push(s.invert(t[n+1]));return e}}}yt=pt=function(t,e,n,r){var i,A=arguments.length,o=A<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;0<=a;a--)(i=t[a])&&(o=(A<3?i(o):3<A?i(e,n,o):i(e,n))||o);return 3<A&&o&&Object.defineProperty(e,n,o),o}([Q(function(t){return[t(0),t(.5),t(1)]},t=>{const[e,n,r]=t,i=w(W(0,.5),B(e,n)),A=w(W(.5,1),B(n,r));return t=>(e>r?t<n?A:i:t<n?i:A)(t)})],yt);var Mt=function(t,e,r,i,A){var o=(t=n(t,2))[0];return o=[o,t=t[1]],(t=p())[0]=o[0],t[1]=0,t[2]=0,t[3]=0,t[4]=o[1],t[5]=0,t[6]=0,t[7]=0,t[8]=1,t};function Ut(t){return 1/Math.tan(t)}function St(t,e,r,i,A){var o=Ut(n(t,1)[0]);return{transform:function(t){return[(t=n(t,2))[0]+(t=t[1])*o,t]},untransform:function(t){return[(t=n(t,2))[0]-(t=t[1])*o,t]}}}function _t(t,e,r,i,A){var o=Ut(n(t,1)[0]);return{transform:function(t){var e=(t=n(t,2))[0];return[e,t[1]+e*o]},untransform:function(t){var e=(t=n(t,2))[0];return[e,t[1]-e*o]}}}function It(t,e,n,r,i){var A=t<e;return i=(A?e-r:i-e)||i-r,(r=A?-1:1)*i*(n+1)/(n+i/((t-e)*r))+e}function Tt(t,e,n,r,i){var A=t<e;return(i=(A?e-r:i-e)||i-r)/(i*(n+1)/(t-e)-n*(A?-1:1))+e}function Lt(t,e,n){return n?new ut({range:[0,1],domain:[0,e]}).map(t):t}function Pt(t,e,r,i,A){var o=(t=n(t,3))[0],a=t[1],s=Lt(o,i,void 0!==(t=t[2])&&t);return{transform:function(t){var e=(t=n(t,2))[0];return t=t[1],[It(e,s,a,0,1),t]},untransform:function(t){var e=(t=n(t,2))[0];return t=t[1],[Tt(e,s,a,0,1),t]}}}function jt(t,e,r,i,A){var o=(t=n(t,3))[0],a=t[1],s=Lt(o,A,void 0!==(t=t[2])&&t);return{transform:function(t){return[(t=n(t,2))[0],It(t[1],s,a,0,1)]},untransform:function(t){return[(t=n(t,2))[0],Tt(t[1],s,a,0,1)]}}}function Ht(t,e,r,i,A){var o=(t=n(t,5))[0],a=t[1],s=t[2],l=t[3],c=Lt(o,i,t=void 0!==(t=t[4])&&t),u=Lt(a,A,t);return{transform:function(t){var e=(t=n(t,2))[0];return t=t[1],[It(e,c,s,0,1),It(t,u,l,0,1)]},untransform:function(t){var e=(t=n(t,2))[0];return t=t[1],[Tt(e,c,s,0,1),Tt(t,u,l,0,1)]}}}function Nt(t,e,r,i,A){var o=(t=n(t,5))[0],a=t[1],s=t[2],l=t[3],c=(t=void 0!==(t=t[4])&&t,new ut({range:[0,i]})),u=new ut({range:[0,A]}),d=t?o:c.map(o),f=t?a:u.map(a);return{transform:function(t){var e=(t=n(t,2))[0],r=(t=t[1],c.map(e)-d),i=u.map(t)-f,A=Math.sqrt(r*r+i*i);return s<A?[e,t]:(e=It(A,0,l,0,s),t=Math.atan2(i,r),A=d+e*Math.cos(t),i=f+e*Math.sin(t),[c.invert(A),u.invert(i)])},untransform:function(t){var e=(t=n(t,2))[0],r=(t=t[1],c.map(e)-d),i=u.map(t)-f,A=Math.sqrt(r*r+i*i);return s<A?[e,t]:(e=Tt(A,0,l,0,s),t=Math.atan2(i,r),A=d+e*Math.cos(t),i=f+e*Math.sin(t),[c.invert(A),u.invert(i)])}}}function Dt(t,e,r,i,A,o,a){var s=new ut({range:[e,e+A]}),l=new ut({range:[r,r+o]}),c=new ut({range:[i,i+a]});return{transform:function(t){var e=(t=n(t,3))[0],r=t[1];return t=t[2],[s.map(e),l.map(r),c.map(t)]},untransform:function(t){var e=(t=n(t,3))[0],r=t[1];return t=t[2],[s.invert(e),l.invert(r),c.invert(t)]}}}function Rt(t,e,r,i,A,o,a){var s,l=(t=n(t,3))[0];return l=[l,t[1],t=t[2]],(s=g())[0]=1,s[1]=0,s[2]=0,s[3]=0,s[4]=0,s[5]=1,s[6]=0,s[7]=0,s[8]=0,s[9]=0,s[10]=1,s[11]=0,s[12]=l[0],s[13]=l[1],s[14]=l[2],s[15]=1,s}function Kt(t,e,r,i,A,o,a){return{transform:function(t){return[(t=n(t,3))[1],t[0],t[2]]},untransform:function(t){return[(t=n(t,3))[1],t[0],t[2]]}}}function zt(t,e,r,i,A,o,a){var s,l=(t=n(t,3))[0],c=t[1];return t=t[2],(s=g())[0]=(l=[l,c,t])[0],s[1]=0,s[2]=0,s[3]=0,s[4]=0,s[5]=l[1],s[6]=0,s[7]=0,s[8]=0,s[9]=0,s[10]=l[2],s[11]=0,s[12]=0,s[13]=0,s[14]=0,s[15]=1,s}function Gt(t){this.options={x:0,y:0,width:300,height:150,transformations:[]},this.transformers={cartesian:vt,translate:b,custom:bt,matrix:wt,polar:Bt,transpose:xt,scale:Mt,"shear.x":St,"shear.y":_t,reflect:Ct,"reflect.x":Et,"reflect.y":Ot,rotate:kt,helix:Ft,parallel:Qt,fisheye:Ht,"fisheye.x":Pt,"fisheye.y":jt,"fisheye.circular":Nt},this.update(t)}function Vt(t){this.options={x:0,y:0,z:0,width:300,height:150,depth:150,transformations:[]},this.transformers={cartesian3D:Dt,translate3D:Rt,scale3D:zt,transpose3D:Kt},this.update(t)}Gt.prototype.update=function(t){this.options=u({},this.options,t),this.recoordinate()},Gt.prototype.clone=function(){return new Gt(this.options)},Gt.prototype.getOptions=function(){return this.options},Gt.prototype.clear=function(){this.update({transformations:[]})},Gt.prototype.getSize=function(){var t=this.options;return[t.width,t.height]},Gt.prototype.getCenter=function(){var t=this.options;return[(2*t.x+t.width)/2,(2*t.y+t.height)/2]},Gt.prototype.transform=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return this.update({transformations:r(r([],n(this.options.transformations),!1),[r([],n(t),!1)],!1)}),this},Gt.prototype.map=function(t){return this.output(t)},Gt.prototype.invert=function(t){return this.input(t)},Gt.prototype.recoordinate=function(){this.output=this.compose(),this.input=this.compose(!0)},Gt.prototype.compose=function(t){function i(t,e){var i;c.push((e=void 0===e||e)?(i=t,function(t){for(var e=[],A=0;A<t.length-1;A+=2){var o=i(o=[t[A],t[A+1]]);e.push.apply(e,r([],n(o),!1))}return e}):t)}var A,o,a=(t=void 0!==t&&t)?r([],n(this.options.transformations),!1).reverse():this.options.transformations,s=t?function(t){return t.untransform}:function(t){return t.transform},l=[],c=[];try{for(var u=e(a),f=u.next();!f.done;f=u.next()){var h,p,g,v,b,w,B=n(f.value),x=B[0],C=B.slice(1),E=this.transformers[x];E&&(p=(h=this.options).x,g=h.y,v=h.width,b=h.height,y(w=E(r([],n(C),!1),p,g,v,b))?l.push(w):(l.length&&(i(this.createMatrixTransform(l,t)),l.splice(0,l.length)),i(s(w)||d,"parallel"!==x)))}}catch(t){A={error:t}}finally{try{f&&!f.done&&(o=u.return)&&o.call(u)}finally{if(A)throw A.error}}return l.length&&i(this.createMatrixTransform(l,t)),m.apply(void 0,r([],n(c),!1))},Gt.prototype.createMatrixTransform=function(t,e){var n,r,i,A,o,a,s,l,c,u,d,f,g=p();return e&&t.reverse(),t.forEach(function(t){return function(t,e,n){var r=e[0],i=e[1],A=e[2],o=e[3],a=e[4],s=e[5],l=e[6],c=e[7],u=(e=e[8],n[0]),d=n[1],f=n[2],h=n[3],p=n[4],g=n[5],m=n[6],y=n[7];return n=n[8],t[0]=u*r+d*o+f*l,t[1]=u*i+d*a+f*c,t[2]=u*A+d*s+f*e,t[3]=h*r+p*o+g*l,t[4]=h*i+p*a+g*c,t[5]=h*A+p*s+g*e,t[6]=m*r+y*o+n*l,t[7]=m*i+y*a+n*c,t[8]=m*A+y*s+n*e,t}(g,g,t)}),e&&(e=t=g,(f=new h(9))[0]=e[0],f[1]=e[1],f[2]=e[2],f[3]=e[3],f[4]=e[4],f[5]=e[5],f[6]=e[6],f[7]=e[7],f[8]=e[8],f=(e=f)[0],n=e[1],r=e[2],i=e[3],A=e[4],o=e[5],a=e[6],s=e[7],d=f*(l=(e=e[8])*A-o*s)+n*(c=-e*i+o*a)+r*(u=s*i-A*a))&&(t[0]=l*(d=1/d),t[1]=(-e*n+r*s)*d,t[2]=(o*n-r*A)*d,t[3]=c*d,t[4]=(e*f-r*a)*d,t[5]=(-o*f+r*i)*d,t[6]=u*d,t[7]=(-s*f+n*a)*d,t[8]=(A*f-n*i)*d),function(t){var e,n,r,i,A;return i=(n=e=t=[t[0],t[1],1])[0],e[0]=i*(r=g)[0]+(A=n[1])*r[3]+(n=n[2])*r[6],e[1]=i*r[1]+A*r[4]+n*r[7],e[2]=i*r[2]+A*r[5]+n*r[8],[t[0],t[1]]}},S=Gt,Vt.prototype.update=function(t){this.options=u({},this.options,t),this.recoordinate()},Vt.prototype.clone=function(){return new Vt(this.options)},Vt.prototype.getOptions=function(){return this.options},Vt.prototype.clear=function(){this.update({transformations:[]})},Vt.prototype.getSize=function(){var t=this.options;return[t.width,t.height,t.depth]},Vt.prototype.getCenter=function(){var t=this.options;return[(2*t.x+t.width)/2,(2*t.y+t.height)/2,(2*t.z+t.depth)/2]},Vt.prototype.transform=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return this.update({transformations:r(r([],n(this.options.transformations),!1),[r([],n(t),!1)],!1)}),this},Vt.prototype.map=function(t){return this.output(t)},Vt.prototype.invert=function(t){return this.input(t)},Vt.prototype.recoordinate=function(){this.output=this.compose(),this.input=this.compose(!0)},Vt.prototype.compose=function(t){function i(t,e){var i;c.push((e=void 0===e||e)?(i=t,function(t){for(var e=[],A=0;A<t.length-1;A+=3){var o=i(o=[t[A],t[A+1],t[A+2]]);e.push.apply(e,r([],n(o),!1))}return e}):t)}var A,o,a=(t=void 0!==t&&t)?r([],n(this.options.transformations),!1).reverse():this.options.transformations,s=t?function(t){return t.untransform}:function(t){return t.transform},l=[],c=[];try{for(var u=e(a),f=u.next();!f.done;f=u.next()){var h,p,g,v,b,w,B,x,C=n(f.value),E=C[0],O=C.slice(1),k=this.transformers[E];k&&(p=(h=this.options).x,g=h.y,v=h.z,b=h.width,w=h.height,B=h.depth,y(x=k(r([],n(O),!1),p,g,v,b,w,B))?l.push(x):(l.length&&(i(this.createMatrixTransform(l,t)),l.splice(0,l.length)),i(s(x)||d,!0)))}}catch(t){A={error:t}}finally{try{f&&!f.done&&(o=u.return)&&o.call(u)}finally{if(A)throw A.error}}return l.length&&i(this.createMatrixTransform(l,t)),m.apply(void 0,r([],n(c),!1))},Vt.prototype.createMatrixTransform=function(t,e){var n,r,i,A,o,a,s,l,c,u,d,f,p,m,y,v,b,w,B,x,C,E,O,k,F,Q,M,U,S=g();return e&&t.reverse(),t.forEach(function(t){return function(t,e,n){var r=e[0],i=e[1],A=e[2],o=e[3],a=e[4],s=e[5],l=e[6],c=e[7],u=e[8],d=e[9],f=e[10],h=e[11],p=e[12],g=e[13],m=e[14],y=(e=e[15],n[0]),v=n[1],b=n[2],w=n[3];return t[0]=y*r+v*a+b*u+w*p,t[1]=y*i+v*s+b*d+w*g,t[2]=y*A+v*l+b*f+w*m,t[3]=y*o+v*c+b*h+w*e,t[4]=(y=n[4])*r+(v=n[5])*a+(b=n[6])*u+(w=n[7])*p,t[5]=y*i+v*s+b*d+w*g,t[6]=y*A+v*l+b*f+w*m,t[7]=y*o+v*c+b*h+w*e,t[8]=(y=n[8])*r+(v=n[9])*a+(b=n[10])*u+(w=n[11])*p,t[9]=y*i+v*s+b*d+w*g,t[10]=y*A+v*l+b*f+w*m,t[11]=y*o+v*c+b*h+w*e,t[12]=(y=n[12])*r+(v=n[13])*a+(b=n[14])*u+(w=n[15])*p,t[13]=y*i+v*s+b*d+w*g,t[14]=y*A+v*l+b*f+w*m,t[15]=y*o+v*c+b*h+w*e,t}(S,S,t)}),e&&(e=t=S,(U=new h(16))[0]=e[0],U[1]=e[1],U[2]=e[2],U[3]=e[3],U[4]=e[4],U[5]=e[5],U[6]=e[6],U[7]=e[7],U[8]=e[8],U[9]=e[9],U[10]=e[10],U[11]=e[11],U[12]=e[12],U[13]=e[13],U[14]=e[14],U[15]=e[15],U=(e=U)[0],r=e[2],i=e[3],a=e[6],s=e[7],l=e[8],c=e[9],d=e[11],f=e[12],p=e[13],m=e[14],M=(y=U*(o=e[5])-(n=e[1])*(A=e[4]))*(Q=(u=e[10])*(e=e[15])-d*m)-(v=U*a-r*A)*(F=c*e-d*p)+(b=U*s-i*A)*(k=c*m-u*p)+(w=n*a-r*o)*(O=l*e-d*f)-(B=n*s-i*o)*(E=l*m-u*f)+(x=r*s-i*a)*(C=l*p-c*f))&&(t[0]=(o*Q-a*F+s*k)*(M=1/M),t[1]=(r*F-n*Q-i*k)*M,t[2]=(p*x-m*B+e*w)*M,t[3]=(u*B-c*x-d*w)*M,t[4]=(a*O-A*Q-s*E)*M,t[5]=(U*Q-r*O+i*E)*M,t[6]=(m*b-f*x-e*v)*M,t[7]=(l*x-u*b+d*v)*M,t[8]=(A*F-o*O+s*C)*M,t[9]=(n*O-U*F-i*C)*M,t[10]=(f*B-p*b+e*y)*M,t[11]=(c*b-l*B-d*y)*M,t[12]=(o*E-A*k-a*C)*M,t[13]=(U*k-n*E+r*C)*M,t[14]=(p*v-f*w-m*y)*M,t[15]=(l*w-c*v+u*y)*M),function(t){var e,n,r,i,A,o;return i=(n=e=t=[t[0],t[1],t[2],1])[0],e[0]=(r=S)[0]*i+r[4]*(A=n[1])+r[8]*(o=n[2])+r[12]*(n=n[3]),e[1]=r[1]*i+r[5]*A+r[9]*o+r[13]*n,e[2]=r[2]*i+r[6]*A+r[10]*o+r[14]*n,e[3]=r[3]*i+r[7]*A+r[11]*o+r[15]*n,[t[0],t[1],t[2]]}},gt=Vt,t.Coordinate=S,t.Coordinate3D=gt,Object.defineProperty(t,"__esModule",{value:!0})}(e)},"./node_modules/.pnpm/@antv+event-emitter@0.1.3/node_modules/@antv/event-emitter/esm/index.js"(t,e,n){"use strict";var r=function(){function t(){this._events={}}return t.prototype.on=function(t,e,n){return this._events[t]||(this._events[t]=[]),this._events[t].push({callback:e,once:!!n}),this},t.prototype.once=function(t,e){return this.on(t,e,!0)},t.prototype.emit=function(t){for(var e=this,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var i=this._events["*"]||[],A=function(r){for(var i=r.length,A=0;A<i;A++)if(r[A]){var o=r[A],a=o.callback;o.once&&(r.splice(A,1),0===r.length&&delete e._events[t],i--,A--),a.apply(e,n)}};A(this._events[t]||[]),A(i)},t.prototype.off=function(t,e){if(t)if(e){for(var n=this._events[t]||[],r=n.length,i=0;i<r;i++)n[i].callback===e&&(n.splice(i,1),r--,i--);0===n.length&&delete this._events[t]}else delete this._events[t];else this._events={};return this},t.prototype.getEvents=function(){return this._events},t}();n.d(e,["A",0,r])},"./node_modules/.pnpm/@antv+g-canvas@2.2.0/node_modules/@antv/g-canvas/dist/index.esm.js"(t,e,n){"use strict";n.d(e,{A4:()=>wt});var r=n("./node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/createClass.js"),i=n("./node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/classCallCheck.js"),A=n("./node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/callSuper.js"),o=n("./node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/inherits.js"),a=n("./node_modules/.pnpm/@antv+g-lite@2.7.0/node_modules/@antv/g-lite/dist/index.esm.js"),s=n("./node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/defineProperty.js"),l=n("./node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/objectSpread2.js"),c=n("./node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/slicedToArray.js");function u(t,e){if(!{}.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var d=0;function f(t){return"__private_"+d+++"_"+t}var h=n("./node_modules/.pnpm/gl-matrix@3.4.4/node_modules/gl-matrix/esm/mat4.js"),p=n("./node_modules/.pnpm/gl-matrix@3.4.4/node_modules/gl-matrix/esm/vec3.js"),g=n("./node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/esm/lodash/is-nil.js"),m=n("./node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/esm/path/process/arc-2-cubic.js"),y=n("./node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/esm/lodash/clamp.js"),v=n("./node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/esm/lodash/is-string.js"),b=n("./node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/createForOfIteratorHelper.js"),w=n("./node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js"),B=n("./node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js"),x=n("./node_modules/.pnpm/@antv+g-math@3.1.0/node_modules/@antv/g-math/dist/index.esm.js"),C=f("renderState"),E=function(){function t(e){(0,i.A)(this,t),this.renderQueue=[],Object.defineProperty(this,C,{writable:!0,value:{restoreStack:[],prevObject:null,currentContext:new Map}}),this.clearFullScreenLastFrame=!1,this.clearFullScreen=!1,this.vpMatrix=h.vt(),this.dprMatrix=h.vt(),this.tmpMat4=h.vt(),this.vec3a=p.vt(),this.vec3b=p.vt(),this.vec3c=p.vt(),this.vec3d=p.vt(),this.canvasRendererPluginOptions=e}return(0,r.A)(t,[{key:"apply",value:function(e,n){var r=this;this.context=e;var i=this.context,A=i.config,o=i.camera,s=i.renderingService,l=i.renderingContext,d=i.pathGeneratorFactory,f=A.renderer.getConfig().enableRenderingOptimization;A.renderer.getConfig().enableDirtyCheck=!1,A.renderer.getConfig().enableDirtyRectangleRendering=!1,this.pathGeneratorFactory=d;var g=e.contextService,m=l.root.ownerDocument.defaultView;s.hooks.init.tap(t.tag,function(){var t=g.getDPR(),e=A.width,n=A.height,i=g.getContext();r.clearRect(i,0,0,e*t,n*t,A.background)}),s.hooks.destroy.tap(t.tag,function(){r.renderQueue=[],u(r,C)[C]={restoreStack:[],prevObject:null,currentContext:null}});var y=function(t,e){for(var i=[t];i.length>0;){var A,o=i.pop();o.isVisible()&&!o.isCulled()&&(f?r.renderDisplayObjectOptimized(o,e,r.context,u(r,C)[C],n):r.renderDisplayObject(o,e,r.context,u(r,C)[C],n));for(var a=(null===(A=o.sortable)||void 0===A||null===(A=A.sorted)||void 0===A?void 0:A.length)>0?o.sortable.sorted:o.childNodes,s=a.length-1;s>=0;s--)i.push(a[s])}};s.hooks.endFrame.tap(t.tag,function(){if(function(){var t,e=g.getContext(),n=g.getDPR(),i=A.width,o=A.height,a=r.canvasRendererPluginOptions,l=a.dirtyObjectNumThreshold,c=a.dirtyObjectRatioThreshold,u=s.getStats(),d=u.rendered,f=d/u.total;r.clearFullScreen=r.clearFullScreenLastFrame||!(null!==(t=m.context.renderingPlugins[1])&&void 0!==t&&t.isFirstTimeRenderingFinished)||s.disableDirtyRectangleRendering()||d>l&&f>c,e&&("function"==typeof e.resetTransform?e.resetTransform():e.setTransform(1,0,0,1,0,0),r.clearFullScreen&&r.clearRect(e,0,0,i*n,o*n,A.background))}(),0!==l.root.childNodes.length){f=A.renderer.getConfig().enableRenderingOptimization,u(r,C)[C]={restoreStack:[],prevObject:null,currentContext:u(r,C)[C].currentContext},u(r,C)[C].currentContext.clear(),r.clearFullScreenLastFrame=!1;var t=g.getContext(),e=g.getDPR();if(h.CV(r.dprMatrix,[e,e,1]),h.lw(r.vpMatrix,r.dprMatrix,o.getOrthoMatrix()),r.clearFullScreen)f?(t.save(),y(l.root,t),t.restore()):y(l.root,t);else{var i=r.safeMergeAABB(r.mergeDirtyAABBs(r.renderQueue));if(a.F5.isEmpty(i))return void(r.renderQueue=[]);var d=r.convertAABB2Rect(i),v=d.x,b=d.y,w=d.width,B=d.height,x=p.Z0(r.vec3a,[v,b,0],r.vpMatrix),E=p.Z0(r.vec3b,[v+w,b,0],r.vpMatrix),O=p.Z0(r.vec3c,[v,b+B,0],r.vpMatrix),k=p.Z0(r.vec3d,[v+w,b+B,0],r.vpMatrix),F=Math.min(x[0],E[0],k[0],O[0]),Q=Math.min(x[1],E[1],k[1],O[1]),M=Math.max(x[0],E[0],k[0],O[0]),U=Math.max(x[1],E[1],k[1],O[1]),S=Math.floor(F),_=Math.floor(Q),I=Math.ceil(M-F),T=Math.ceil(U-Q);t.save(),r.clearRect(t,S,_,I,T,A.background),t.beginPath(),t.rect(S,_,I,T),t.clip(),t.setTransform(r.vpMatrix[0],r.vpMatrix[1],r.vpMatrix[4],r.vpMatrix[5],r.vpMatrix[12],r.vpMatrix[13]),A.renderer.getConfig().enableDirtyRectangleRenderingDebug&&m.dispatchEvent(new a.up(a.N3.DIRTY_RECTANGLE,{dirtyRect:{x:S,y:_,width:I,height:T}}));var L=i.getMin(),P=(0,c.A)(L,2),j=P[0],H=P[1],N=i.getMax(),D=(0,c.A)(N,2);l.root.ownerDocument.elementsFromBBox(j,H,D[0],D[1]).sort(function(t,e){return t.sortable.renderOrder-e.sortable.renderOrder}).forEach(function(e){e&&e.isVisible()&&!e.isCulled()&&r.renderDisplayObject(e,t,r.context,u(r,C)[C],n)}),t.restore(),r.renderQueue.forEach(function(t){r.saveDirtyAABB(t)}),r.renderQueue=[]}u(r,C)[C].restoreStack.forEach(function(){t.restore()}),u(r,C)[C].restoreStack=[]}else r.clearFullScreenLastFrame=!0}),s.hooks.render.tap(t.tag,function(t){r.clearFullScreen||r.renderQueue.push(t)})}},{key:"clearRect",value:function(t,e,n,r,i,A){t.clearRect(e,n,r,i),A&&(t.fillStyle=A,t.fillRect(e,n,r,i))}},{key:"renderDisplayObjectOptimized",value:function(t,e,n,r,i){var A=t.nodeName,o=!1,s=this.context.styleRendererFactory[A],l=this.pathGeneratorFactory[A],c=t.parsedStyle.clipPath;if(c){(!r.prevObject||!h.t2(c.getWorldTransform(),r.prevObject.getWorldTransform()))&&(this.applyWorldTransform(e,c),r.prevObject=null);var d=this.pathGeneratorFactory[c.nodeName];d&&(e.save(),o=!0,e.beginPath(),d(e,c.parsedStyle),e.closePath(),e.clip())}if(s){(!r.prevObject||!h.t2(t.getWorldTransform(),r.prevObject.getWorldTransform()))&&this.applyWorldTransform(e,t);var f=!r.prevObject;if(!f){var p=r.prevObject.nodeName;f=A===a.yp.TEXT?p!==a.yp.TEXT:A===a.yp.IMAGE?p!==a.yp.IMAGE:p===a.yp.TEXT||p===a.yp.IMAGE}s.applyStyleToContext(e,t,f,r),r.prevObject=t}l&&(e.beginPath(),l(e,t.parsedStyle),A!==a.yp.LINE&&A!==a.yp.PATH&&A!==a.yp.POLYLINE&&e.closePath()),s&&s.drawToContext(e,t,u(this,C)[C],this,i),o&&e.restore(),t.dirty(!1)}},{key:"renderDisplayObject",value:function(t,e,n,r,i){var A=t.nodeName,o=r.restoreStack[r.restoreStack.length-1];!o||t.compareDocumentPosition(o)&a.bP.DOCUMENT_POSITION_CONTAINS||(e.restore(),r.restoreStack.pop());var s=this.context.styleRendererFactory[A],l=this.pathGeneratorFactory[A],c=t.parsedStyle.clipPath;if(c){this.applyWorldTransform(e,c);var u=this.pathGeneratorFactory[c.nodeName];u&&(e.save(),r.restoreStack.push(t),e.beginPath(),u(e,c.parsedStyle),e.closePath(),e.clip())}s&&(this.applyWorldTransform(e,t),e.save(),this.applyAttributesToContext(e,t)),l&&(e.beginPath(),l(e,t.parsedStyle),A!==a.yp.LINE&&A!==a.yp.PATH&&A!==a.yp.POLYLINE&&e.closePath()),s&&(s.render(e,t.parsedStyle,t,n,this,i),e.restore()),t.dirty(!1)}},{key:"applyAttributesToContext",value:function(t,e){var n=e.parsedStyle,r=n.stroke,i=n.fill,A=n.opacity,o=n.lineDash,a=n.lineDashOffset;o&&t.setLineDash(o),(0,g.A)(a)||(t.lineDashOffset=a),(0,g.A)(A)||(t.globalAlpha*=A),(0,g.A)(r)||Array.isArray(r)||r.isNone||(t.strokeStyle=e.attributes.stroke),(0,g.A)(i)||Array.isArray(i)||i.isNone||(t.fillStyle=e.attributes.fill)}},{key:"convertAABB2Rect",value:function(t){var e=t.getMin(),n=t.getMax(),r=Math.floor(e[0]),i=Math.floor(e[1]);return{x:r,y:i,width:Math.ceil(n[0])-r,height:Math.ceil(n[1])-i}}},{key:"mergeDirtyAABBs",value:function(t){var e=new a.F5;return t.forEach(function(t){var n=t.getRenderBounds();e.add(n);var r=t.renderable.dirtyRenderBounds;r&&e.add(r)}),e}},{key:"saveDirtyAABB",value:function(t){var e=t.renderable;e.dirtyRenderBounds||(e.dirtyRenderBounds=new a.F5);var n=t.getRenderBounds();n&&e.dirtyRenderBounds.update(n.center,n.halfExtents)}},{key:"applyWorldTransform",value:function(t,e,n){n?(h.C(this.tmpMat4,e.getLocalTransform()),h.lw(this.tmpMat4,n,this.tmpMat4),h.lw(this.tmpMat4,this.vpMatrix,this.tmpMat4)):(h.C(this.tmpMat4,e.getWorldTransform()),h.lw(this.tmpMat4,this.vpMatrix,this.tmpMat4)),t.setTransform(this.tmpMat4[0],this.tmpMat4[1],this.tmpMat4[4],this.tmpMat4[5],this.tmpMat4[12],this.tmpMat4[13])}},{key:"safeMergeAABB",value:function(){for(var t=new a.F5,e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return n.forEach(function(e){t.add(e)}),t}}])}();function O(t,e,n,r,i,A,o){var a,s;if("rect"===t.image.nodeName){var l=t.image.parsedStyle,c=l.width,u=l.height;s=r.contextService.getDPR();var d=r.config.offscreenCanvas;(a=A.offscreenCanvasCreator.getOrCreateCanvas(d)).width=c*s,a.height=u*s;var f=A.offscreenCanvasCreator.getOrCreateContext(d),h={restoreStack:[],prevObject:null,currentContext:new Map};t.image.forEach(function(t){i.renderDisplayObject(t,f,r,h,A)}),h.restoreStack.forEach(function(){f.restore()})}return o.getOrCreatePatternSync(e,t,n,a,s,e.getGeometryBounds().min,function(){e.dirty(),r.renderingService.dirty()})}function k(t,e,n,r){var i;if(t.type===a.hq.LinearGradient||t.type===a.hq.RadialGradient){var A=e.getGeometryBounds(),o=A&&2*A.halfExtents[0]||1,s=A&&2*A.halfExtents[1]||1,c=A&&A.min||[0,0];i=r.getOrCreateGradient((0,l.A)((0,l.A)({type:t.type},t.value),{},{min:c,width:o,height:s}),n)}return i}E.tag="CanvasRenderer";var F=["shadowBlur","shadowOffsetX","shadowOffsetY"],Q=["lineCap","lineJoin","miterLimit"],M={globalAlpha:1,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",filter:"none",globalCompositeOperation:"source-over",strokeStyle:"#000",strokeOpacity:1,lineWidth:1,lineDash:[],lineDashOffset:0,lineCap:"butt",lineJoin:"miter",miterLimit:10,fillStyle:"#000",fillOpacity:1},U={};function S(t,e,n,r){var i=r.has(e)?r.get(e):M[e];return i!==n&&("lineDash"===e?t.setLineDash(n):t[e]=n,r.set(e,n)),i}var _=function(){return(0,r.A)(function t(e){(0,i.A)(this,t),this.imagePool=e},[{key:"applyAttributesToContext",value:function(t,e){}},{key:"render",value:function(t,e,n,r,i,A){}},{key:"applyCommonStyleToContext",value:function(t,e,n,r){var i=n?U:r.prevObject.parsedStyle,A=e.parsedStyle;(n||A.opacity!==i.opacity)&&S(t,"globalAlpha",(0,g.A)(A.opacity)?M.globalAlpha:A.opacity,r.currentContext),(n||A.blend!==i.blend)&&S(t,"globalCompositeOperation",(0,g.A)(A.blend)?M.globalCompositeOperation:A.blend,r.currentContext)}},{key:"applyStrokeFillStyleToContext",value:function(t,e,n,r){var i=n?U:r.prevObject.parsedStyle,A=e.parsedStyle,o=A.lineWidth,a=A.fill&&!A.fill.isNone;if(A.stroke&&!A.stroke.isNone&&(void 0===o?M.lineWidth:o)>0){(n||e.attributes.stroke!==r.prevObject.attributes.stroke)&&S(t,"strokeStyle",(0,g.A)(A.stroke)||Array.isArray(A.stroke)||A.stroke.isNone?M.strokeStyle:e.attributes.stroke,r.currentContext),(n||A.lineWidth!==i.lineWidth)&&S(t,"lineWidth",(0,g.A)(A.lineWidth)?M.lineWidth:A.lineWidth,r.currentContext),(n||A.lineDash!==i.lineDash)&&S(t,"lineDash",A.lineDash||M.lineDash,r.currentContext),(n||A.lineDashOffset!==i.lineDashOffset)&&S(t,"lineDashOffset",(0,g.A)(A.lineDashOffset)?M.lineDashOffset:A.lineDashOffset,r.currentContext);for(var s=0;s<Q.length;s++){var l=Q[s];(n||A[l]!==i[l])&&S(t,l,(0,g.A)(A[l])?M[l]:A[l],r.currentContext)}}a&&(n||e.attributes.fill!==r.prevObject.attributes.fill)&&S(t,"fillStyle",(0,g.A)(A.fill)||Array.isArray(A.fill)||A.fill.isNone?M.fillStyle:e.attributes.fill,r.currentContext)}},{key:"applyStyleToContext",value:function(t,e,n,r){var i=e.nodeName;this.applyCommonStyleToContext(t,e,n,r),i===a.yp.IMAGE||this.applyStrokeFillStyleToContext(t,e,n,r)}},{key:"applyShadowAndFilterStyleToContext",value:function(t,e,n,r){var i=e.parsedStyle;if(n){S(t,"shadowColor",i.shadowColor.toString(),r.currentContext);for(var A=0;A<F.length;A++){var o=F[A];S(t,o,i[o]||M[o],r.currentContext)}}i.filter&&i.filter.length&&S(t,"filter",e.attributes.filter,r.currentContext)}},{key:"clearShadowAndFilterStyleForContext",value:function(t,e,n,r){var i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(e){S(t,"shadowColor",M.shadowColor,r.currentContext);for(var A=0;A<F.length;A++){var o=F[A];S(t,o,M[o],r.currentContext)}}if(n)if(e&&i){var a=t.filter;!(0,g.A)(a)&&a.indexOf("drop-shadow")>-1&&S(t,"filter",a.replace(/drop-shadow\([^)]*\)/,"").trim()||M.filter,r.currentContext)}else S(t,"filter",M.filter,r.currentContext)}},{key:"fillToContext",value:function(t,e,n,r,i){var A=this,o=e.parsedStyle,s=o.fill,l=o.fillRule,c=null;if(Array.isArray(s)&&s.length>0)s.forEach(function(r){var i=S(t,"fillStyle",k(r,e,t,A.imagePool),n.currentContext);c=null!=c?c:i,l?t.fill(l):t.fill()});else{if((0,a.Pt)(s)){var u=O(s,e,t,e.ownerDocument.defaultView.context,r,i,this.imagePool);u&&(t.fillStyle=u,c=!0)}l?t.fill(l):t.fill()}null!==c&&S(t,"fillStyle",c,n.currentContext)}},{key:"strokeToContext",value:function(t,e,n,r,i){var A=this,o=e.parsedStyle.stroke,s=null;if(Array.isArray(o)&&o.length>0)o.forEach(function(r){var i=S(t,"strokeStyle",k(r,e,t,A.imagePool),n.currentContext);s=null!=s?s:i,t.stroke()});else{if((0,a.Pt)(o)){var l=O(o,e,t,e.ownerDocument.defaultView.context,r,i,this.imagePool);if(l){var c=S(t,"strokeStyle",l,n.currentContext);s=null!=s?s:c}}t.stroke()}null!==s&&S(t,"strokeStyle",s,n.currentContext)}},{key:"drawToContext",value:function(t,e,n,r,i){var A,o=e.nodeName,s=e.parsedStyle,l=s.opacity,c=void 0===l?M.globalAlpha:l,u=s.fillOpacity,d=void 0===u?M.fillOpacity:u,f=s.strokeOpacity,h=void 0===f?M.strokeOpacity:f,p=s.lineWidth,m=s.fill&&!s.fill.isNone,y=s.stroke&&!s.stroke.isNone&&(void 0===p?M.lineWidth:p)>0;if(m||y){var v=!(0,g.A)(s.shadowColor)&&s.shadowBlur>0,b="inner"===s.shadowType,w=0===(null===(A=s.fill)||void 0===A?void 0:A.alpha),B=!(!s.filter||!s.filter.length),x=v&&y&&(o===a.yp.PATH||o===a.yp.LINE||o===a.yp.POLYLINE||w||b),C=null;if(m&&(x||this.applyShadowAndFilterStyleToContext(t,e,v,n),C=S(t,"globalAlpha",c*d,n.currentContext),this.fillToContext(t,e,n,r,i),x||this.clearShadowAndFilterStyleForContext(t,v,B,n)),y){var E=!1,O=S(t,"globalAlpha",c*h,n.currentContext);if(C=m?C:O,x&&(this.applyShadowAndFilterStyleToContext(t,e,v,n),E=!0,b)){var k=t.globalCompositeOperation;t.globalCompositeOperation="source-atop",this.strokeToContext(t,e,n,r,i),t.globalCompositeOperation=k,this.clearShadowAndFilterStyleForContext(t,v,B,n,!0)}this.strokeToContext(t,e,n,r,i),E&&this.clearShadowAndFilterStyleForContext(t,v,B,n)}null!==C&&S(t,"globalAlpha",C,n.currentContext)}}}])}(),I=function(t){function e(){return(0,i.A)(this,e),(0,A.A)(this,e,arguments)}return(0,o.A)(e,t),(0,r.A)(e,[{key:"render",value:function(t,e,n,r,i,A){var o=e.fill,s=e.fillRule,l=e.opacity,c=void 0===l?1:l,u=e.fillOpacity,d=void 0===u?1:u,f=e.stroke,h=e.strokeOpacity,p=void 0===h?1:h,m=e.lineWidth,y=void 0===m?1:m,v=e.lineCap,b=e.lineJoin,w=e.shadowType,B=e.shadowBlur,x=e.filter,C=e.miterLimit,E=o&&!o.isNone,O=f&&!f.isNone&&y>0,k=0===(null==o?void 0:o.alpha),F=!(!x||!x.length),Q=!(0,g.A)(e.shadowColor)&&B>0,U=n.nodeName,S="inner"===w,_=O&&Q&&(U===a.yp.PATH||U===a.yp.LINE||U===a.yp.POLYLINE||k||S);E&&(t.globalAlpha=c*d,_||T(n,t,Q),L(t,n,o,s,r,i,A,this.imagePool),_||this.clearShadowAndFilter(t,F,Q)),O&&(t.globalAlpha=c*p,t.lineWidth=y,(0,g.A)(C)||(t.miterLimit=C),(0,g.A)(v)||(t.lineCap=v),(0,g.A)(b)||(t.lineJoin=b),_&&(S&&(t.globalCompositeOperation="source-atop"),T(n,t,!0),S&&(P(t,n,f,r,i,A,this.imagePool),t.globalCompositeOperation=M.globalCompositeOperation,this.clearShadowAndFilter(t,F,!0))),P(t,n,f,r,i,A,this.imagePool))}},{key:"clearShadowAndFilter",value:function(t,e,n){if(n&&(t.shadowColor="transparent",t.shadowBlur=0),e){var r=t.filter;!(0,g.A)(r)&&r.indexOf("drop-shadow")>-1&&(t.filter=r.replace(/drop-shadow\([^)]*\)/,"").trim()||"none")}}}])}(_);function T(t,e,n){var r=t.parsedStyle,i=r.filter,A=r.shadowColor,o=r.shadowBlur,a=r.shadowOffsetX,s=r.shadowOffsetY;i&&i.length&&(e.filter=t.style.filter),n&&(e.shadowColor=A.toString(),e.shadowBlur=o||0,e.shadowOffsetX=a||0,e.shadowOffsetY=s||0)}function L(t,e,n,r,i,A,o,s){var l=arguments.length>8&&void 0!==arguments[8]&&arguments[8];Array.isArray(n)?n.forEach(function(n){t.fillStyle=k(n,e,t,s),l||(r?t.fill(r):t.fill())}):((0,a.Pt)(n)&&(t.fillStyle=O(n,e,t,i,A,o,s)),l||(r?t.fill(r):t.fill()))}function P(t,e,n,r,i,A,o){var s=arguments.length>7&&void 0!==arguments[7]&&arguments[7];Array.isArray(n)?n.forEach(function(n){t.strokeStyle=k(n,e,t,o),s||t.stroke()}):((0,a.Pt)(n)&&(t.strokeStyle=O(n,e,t,r,i,A,o)),s||t.stroke())}var j=function(t){function e(){return(0,i.A)(this,e),(0,A.A)(this,e,arguments)}return(0,o.A)(e,t),(0,r.A)(e,[{key:"renderDownSampled",value:function(t,e,n,r){var i=r.src,A=r.imageCache;A.downSampled?t.drawImage(A.downSampled,Math.floor(r.drawRect[0]),Math.floor(r.drawRect[1]),Math.ceil(r.drawRect[2]),Math.ceil(r.drawRect[3])):this.imagePool.createDownSampledImage(i,n).then(function(){n.ownerDocument&&(n.dirty(),n.ownerDocument.defaultView.context.renderingService.dirty())}).catch(function(t){console.error(t)})}},{key:"renderTile",value:function(t,e,n,r){var i=r.src,A=r.imageCache,o=r.imageRect,a=r.drawRect,s=A.size,l=t.getTransform(),c=l.a,u=l.b,d=l.c,f=l.d,h=l.e,p=l.f;if(t.resetTransform(),null!=A&&A.gridSize){for(var g=[s[0]/o[2],s[1]/o[3]],m=[A.tileSize[0]/g[0],A.tileSize[1]/g[1]],y=[Math.floor((a[0]-o[0])/m[0]),Math.ceil((a[0]+a[2]-o[0])/m[0])],v=y[0],b=y[1],w=[Math.floor((a[1]-o[1])/m[1]),Math.ceil((a[1]+a[3]-o[1])/m[1])],B=w[1],x=w[0];x<=B;x++)for(var C=v;C<=b;C++){var E=A.tiles[x][C];if(E){var O=[Math.floor(o[0]+E.tileX*m[0]),Math.floor(o[1]+E.tileY*m[1]),Math.ceil(m[0]),Math.ceil(m[1])];t.drawImage(E.data,O[0],O[1],O[2],O[3])}}t.setTransform(c,u,d,f,h,p)}else this.imagePool.createImageTiles(i,[],function(){n.ownerDocument&&(n.dirty(),n.ownerDocument.defaultView.context.renderingService.dirty())},n).catch(function(t){console.error(t)})}},{key:"render",value:function(t,n,r){var i=n.x,A=void 0===i?0:i,o=n.y,a=void 0===o?0:o,s=n.width,l=n.height,u=n.src,d=n.shadowColor,f=n.shadowBlur,m=this.imagePool.getImageSync(u,r),y=null==m?void 0:m.img,v=s,b=l;if(y){var w,B,x,C,E,O,k,F,Q,M,U,S,_,I,L,P,j,H,N,D,R;v||(v=y.width),b||(b=y.height),T(r,t,!(0,g.A)(d)&&f>0);try{var K=r.ownerDocument.defaultView.getContextService().getDomElement(),z=K.width,G=K.height,V=t.getTransform(),W=h.fA(V.a,V.c,0,0,V.b,V.d,0,0,0,0,1,0,V.e,V.f,0,1),X=(P=[A,a,v,b],j=W,H=p.Z0(p.vt(),[P[0],P[1],0],j),N=p.Z0(p.vt(),[P[0]+P[2],P[1],0],j),D=p.Z0(p.vt(),[P[0],P[1]+P[3],0],j),R=p.Z0(p.vt(),[P[0]+P[2],P[1]+P[3],0],j),[Math.min(H[0],N[0],D[0],R[0]),Math.min(H[1],N[1],D[1],R[1]),Math.max(H[0],N[0],D[0],R[0])-Math.min(H[0],N[0],D[0],R[0]),Math.max(H[1],N[1],D[1],R[1])-Math.min(H[1],N[1],D[1],R[1])]),Y=(w=X,x=(B=(0,c.A)([0,0,z,G],4))[0],C=B[1],E=B[2],O=B[3],F=(k=(0,c.A)(w,4))[0],Q=k[1],M=k[2],U=k[3],S=Math.max(x,F),_=Math.max(C,Q),I=Math.min(x+E,F+M),L=Math.min(C+O,Q+U),I<=S||L<=_?null:[S,_,I-S,L-_]);if(!Y)return;if(!r.ownerDocument.defaultView.getConfig().enableLargeImageOptimization)return void e.renderFull(t,n,r,{image:y,drawRect:[A,a,v,b]});if(X[2]/m.size[0]<(m.downSamplingRate||.5))return void this.renderDownSampled(t,n,r,{src:u,imageCache:m,drawRect:[A,a,v,b]});if(!ImagePool.isSupportTile)return void e.renderFull(t,n,r,{image:y,drawRect:[A,a,v,b]});this.renderTile(t,n,r,{src:u,imageCache:m,imageRect:X,drawRect:Y})}catch(t){}}}},{key:"drawToContext",value:function(t,e,n,r,i){this.render(t,e.parsedStyle,e)}}],[{key:"renderFull",value:function(t,e,n,r){t.drawImage(r.image,Math.floor(r.drawRect[0]),Math.floor(r.drawRect[1]),Math.ceil(r.drawRect[2]),Math.ceil(r.drawRect[3]))}}])}(I),H=function(t){function e(){return(0,i.A)(this,e),(0,A.A)(this,e,arguments)}return(0,o.A)(e,t),(0,r.A)(e,[{key:"render",value:function(t,e,n,r,i,A){n.getBounds();var o=e.lineWidth,a=void 0===o?1:o,s=e.textAlign,l=void 0===s?"start":s,c=e.textBaseline,u=void 0===c?"alphabetic":c,d=e.lineJoin,f=void 0===d?"miter":d,h=e.miterLimit,p=void 0===h?10:h,m=e.letterSpacing,y=void 0===m?0:m,v=e.stroke,b=e.fill,w=e.fillRule,B=e.fillOpacity,x=void 0===B?1:B,C=e.strokeOpacity,E=void 0===C?1:C,O=e.opacity,k=void 0===O?1:O,F=e.metrics,Q=e.x,M=void 0===Q?0:Q,U=e.y,S=void 0===U?0:U,_=e.dx,I=e.dy,L=e.shadowColor,P=e.shadowBlur,j=e.textDecorationLine,H=F.lines,N=F.height,D=F.lineHeight,R=F.lineMetrics;t.font=F.font,t.lineWidth=a,t.textAlign="middle"===l?"center":l;var K=u;"alphabetic"===K&&(K="bottom"),t.lineJoin=f,(0,g.A)(p)||(t.miterLimit=p);var z=S;"middle"===u?z+=-N/2-D/2:"bottom"===u||"alphabetic"===u||"ideographic"===u?z+=-N:"top"!==u&&"hanging"!==u||(z+=-D);var G=M+(_||0);z+=I||0,1===H.length&&("bottom"===K?(K="middle",z-=.5*N):"top"===K&&(K="middle",z+=.5*N)),t.textBaseline=K,T(n,t,!(0,g.A)(L)&&P>0);for(var V=0;V<H.length;V++){var W=a/2+G;z+=D,(0,g.A)(v)||v.isNone||!a||this.drawLetterSpacing(t,n,H[V],R[V],l,W,z,y,b,w,x,v,E,k,!0,r,i,A),(0,g.A)(b)||this.drawLetterSpacing(t,n,H[V],R[V],l,W,z,y,b,w,x,v,E,k,!1,r,i,A)}j&&"none"!==j&&this.drawTextDecorations(t,e,n,H,D,G,S+(I||0),r,i,A)}},{key:"drawLetterSpacing",value:function(t,e,n,r,i,A,o,a,s,l,c,u,d,f,h,p,g,m){if(0!==a){var y=t.textAlign;t.textAlign="left";var v=A;"center"===i||"middle"===i?v=A-r.width/2:"right"!==i&&"end"!==i||(v=A-r.width);for(var b=Array.from(n),w=t.measureText(n).width,B=0,x=0;x<b.length;++x){var C=b[x];h?this.strokeText(t,e,C,v,o,u,d,p,g,m):this.fillText(t,e,C,v,o,s,l,c,f,p,g,m),v+=w-(B=t.measureText(n.substring(x+1)).width)+a,w=B}t.textAlign=y}else h?this.strokeText(t,e,n,A,o,u,d,p,g,m):this.fillText(t,e,n,A,o,s,l,c,f,p,g,m)}},{key:"fillText",value:function(t,e,n,r,i,A,o,a,s,l,c,u){var d;L(t,e,A,o,l,c,u,this.imagePool,!0);var f=!(0,g.A)(a)&&1!==a;f&&(d=t.globalAlpha,t.globalAlpha=a*s),t.fillText(n,r,i),f&&(t.globalAlpha=d)}},{key:"strokeText",value:function(t,e,n,r,i,A,o,a,s,l){var c;P(t,e,A,a,s,l,this.imagePool,!0);var u=!(0,g.A)(o)&&1!==o;u&&(c=t.globalAlpha,t.globalAlpha=o),t.strokeText(n,r,i),u&&(t.globalAlpha=c)}},{key:"drawTextDecorations",value:function(t,e,n,r,i,A,o,a,s,l){var c=e.textDecorationLine,u=e.textDecorationColor,d=e.textDecorationStyle,f=e.textDecorationThickness,h=void 0===f?1:f,p=e.textAlign,g=void 0===p?"start":p,m=e.lineWidth,y=void 0===m?1:m,v=e.metrics;if(c&&"none"!==c){var w=v.lineMetrics,B=c.split(" ");switch(t.lineWidth=h,u&&(t.strokeStyle="rgba(".concat(u.r,", ").concat(u.g,", ").concat(u.b,", ").concat(u.alpha,")")),d){case"dashed":t.setLineDash([5,5]);break;case"dotted":t.setLineDash([2,2]);break;default:t.setLineDash([])}var x=o,C=e.textBaseline,E=void 0===C?"alphabetic":C;"middle"===E?x+=-v.height/2-i/2:"bottom"===E||"alphabetic"===E||"ideographic"===E?x+=-v.height:"top"!==E&&"hanging"!==E||(x+=-i);for(var O=0;O<r.length;O++){x+=i;var k=w[O];if(k){var F=y/2,Q=A,M=A+k.width;"center"===g||"middle"===g?(Q=A-k.width/2,M=A+k.width/2):"right"!==g&&"end"!==g||(Q=A-k.width,M=A),Q+=F,M+=F;var U,S=(0,b.A)(B);try{for(S.s();!(U=S.n()).done;){var _=x;switch(U.value){case"underline":_+=2;break;case"overline":_-=i-2;break;case"line-through":_-=i/2;break;default:continue}"wavy"===d?this.drawWavyLine(t,Q,M,_):(t.beginPath(),t.moveTo(Q,_),t.lineTo(M,_),t.stroke())}}catch(t){S.e(t)}finally{S.f()}}}t.setLineDash([])}}},{key:"drawWavyLine",value:function(t,e,n,r){var i=Math.floor((n-e)/10);t.beginPath(),t.moveTo(e,r);for(var A=0;A<i;A++)t.quadraticCurveTo(e+10*A+2.5,r+2,e+10*A+5,r),t.quadraticCurveTo(e+10*A+7.5,r-2,e+10*(A+1),r);t.stroke()}},{key:"drawToContext",value:function(t,e,n,r,i){this.render(t,e.parsedStyle,e,e.ownerDocument.defaultView.context,r,i)}}])}(I),N=function(t){function e(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,i.A)(this,e),(t=(0,A.A)(this,e)).name="canvas-renderer",t.options=n,t}return(0,o.A)(e,t),(0,r.A)(e,[{key:"init",value:function(){var t,e=(0,l.A)({dirtyObjectNumThreshold:500,dirtyObjectRatioThreshold:.8},this.options),n=this.context.imagePool,r=new I(n),i=((0,s.A)((0,s.A)((0,s.A)((0,s.A)((0,s.A)((0,s.A)((0,s.A)((0,s.A)((0,s.A)((0,s.A)(t={},a.yp.CIRCLE,r),a.yp.ELLIPSE,r),a.yp.RECT,r),a.yp.IMAGE,new j(n)),a.yp.TEXT,new H(n)),a.yp.LINE,r),a.yp.POLYLINE,r),a.yp.POLYGON,r),a.yp.PATH,r),a.yp.GROUP,void 0),(0,s.A)((0,s.A)((0,s.A)(t,a.yp.HTML,void 0),a.yp.MESH,void 0),a.yp.FRAGMENT,void 0));this.context.defaultStyleRendererFactory=i,this.context.styleRendererFactory=i,this.addRenderingPlugin(new E(e))}},{key:"destroy",value:function(){this.removeAllRenderingPlugins(),delete this.context.defaultStyleRendererFactory,delete this.context.styleRendererFactory}}])}(a.V1),D=p.vt(),R=p.vt(),K=p.vt(),z=h.vt(),G=function(){function t(){var e=this;(0,i.A)(this,t),this.isHit=function(t,n,r,i){var A=e.context.pointInPathPickerFactory[t.nodeName];if(A){var o=h.B8(z,r),s=p.Z0(R,p.hZ(K,n[0],n[1],0),o);if(A(t,new a.uc(s[0],s[1]),i,e.isPointInPath,e.context,e.runtime))return!0}return!1},this.isPointInPath=function(t,n){var r=e.runtime.offscreenCanvasCreator.getOrCreateContext(e.context.config.offscreenCanvas),i=e.context.pathGeneratorFactory[t.nodeName];return i&&(r.beginPath(),i(r,t.parsedStyle),r.closePath()),r.isPointInPath(n.x,n.y)}}return(0,r.A)(t,[{key:"apply",value:function(e,n){var r,i=this,A=e.renderingService,o=e.renderingContext;this.context=e,this.runtime=n;var a=null===(r=o.root)||void 0===r?void 0:r.ownerDocument;A.hooks.pick.tapPromise(t.tag,function(){var t=(0,B.A)((0,w.A)().mark(function t(e){return(0,w.A)().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",i.pick(a,e));case 1:case"end":return t.stop()}},t)}));return function(e){return t.apply(this,arguments)}}()),A.hooks.pickSync.tap(t.tag,function(t){return i.pick(a,t)})}},{key:"pick",value:function(t,e){var n,r=e.topmost,i=e.position,A=p.hZ(D,i.x,i.y,0),o=t.elementsFromBBox(A[0],A[1],A[0],A[1]),s=[],l=(0,b.A)(o);try{for(l.s();!(n=l.n()).done;){var c=n.value,u=c.getWorldTransform();if(this.isHit(c,A,u,!1)){var d=(0,a.zV)(c);if(d){var f=d.parsedStyle.clipPath;if(this.isHit(f,A,f.getWorldTransform(),!0)){if(r)return e.picked=[c],e;s.push(c)}}else{if(r)return e.picked=[c],e;s.push(c)}}}}catch(t){l.e(t)}finally{l.f()}return e.picked=s,e}}])}();function V(t,e,n){var r=t.parsedStyle,i=r.cx,A=r.cy,o=r.r,s=r.fill,l=r.stroke,u=r.lineWidth,d=r.increasedLineWidthForHitTesting,f=r.pointerEvents,h=void 0===f?"auto":f,p=((void 0===u?1:u)+(void 0===d?0:d))/2,g=(0,x.Io)(void 0===i?0:i,void 0===A?0:A,e.x,e.y),m=(0,a.Hh)(h,s,l),y=(0,c.A)(m,2),v=y[0],b=y[1];return v&&b||n?g<=o+p:v?g<=o:!!b&&g>=o-p&&g<=o+p}function W(t,e,n,r){return t/(n*n)+e/(r*r)}function X(t,e,n){var r=t.parsedStyle,i=r.cx,A=void 0===i?0:i,o=r.cy,s=void 0===o?0:o,l=r.rx,u=r.ry,d=r.lineWidth,f=void 0===d?1:d,h=r.increasedLineWidthForHitTesting,p=void 0===h?0:h,g=r.pointerEvents,m=e.x,y=e.y,v=(0,a.Hh)(void 0===g?"auto":g,r.fill,r.stroke),b=(0,c.A)(v,2),w=b[0],B=b[1],x=(f+p)/2,C=(m-A)*(m-A),E=(y-s)*(y-s);return w&&B||n?W(C,E,l+x,u+x)<=1:w?W(C,E,l,u)<=1:!!B&&W(C,E,l-x,u-x)>=1&&W(C,E,l+x,u+x)<=1}function Y(t,e,n,r,i,A){return i>=t&&i<=t+n&&A>=e&&A<=e+r}function $(t,e,n,r,i,A,o,a){var s=(Math.atan2(a-e,o-t)+2*Math.PI)%(2*Math.PI),l={x:t+n*Math.cos(s),y:e+n*Math.sin(s)};return(0,x.Io)(l.x,l.y,o,a)<=A/2}function q(t,e,n,r,i,A,o){var a=Math.min(t,n),s=Math.max(t,n),l=Math.min(e,r),c=Math.max(e,r),u=i/2;return A>=a-u&&A<=s+u&&o>=l-u&&o<=c+u&&(0,x.M7)(t,e,n,r,A,o)<=i/2}function Z(t,e,n,r,i){var A=t.length;if(A<2)return!1;for(var o=0;o<A-1;o++)if(q(t[o][0],t[o][1],t[o+1][0],t[o+1][1],e,n,r))return!0;if(i){var a=t[0],s=t[A-1];if(q(a[0],a[1],s[0],s[1],e,n,r))return!0}return!1}function J(t){return Math.abs(t)<1e-6?0:t<0?-1:1}function tt(t,e,n){return(n[0]-t[0])*(e[1]-t[1])===(e[0]-t[0])*(n[1]-t[1])&&Math.min(t[0],e[0])<=n[0]&&n[0]<=Math.max(t[0],e[0])&&Math.min(t[1],e[1])<=n[1]&&n[1]<=Math.max(t[1],e[1])}function et(t,e,n){var r=!1,i=t.length;if(i<=2)return!1;for(var A=0;A<i;A++){var o=t[A],a=t[(A+1)%i];if(tt(o,a,[e,n]))return!0;J(o[1]-n)>0!=J(a[1]-n)>0&&J(e-(n-o[1])*(o[0]-a[0])/(o[1]-a[1])-o[0])<0&&(r=!r)}return r}function nt(t,e,n){for(var r=!1,i=0;i<t.length&&!(r=et(t[i],e,n));i++);return r}function rt(t,e,n){var r=t.parsedStyle,i=r.x1,A=r.y1,o=r.x2,s=r.y2,l=r.lineWidth,u=void 0===l?1:l,d=r.increasedLineWidthForHitTesting,f=void 0===d?0:d,h=r.pointerEvents,p=(0,a.Hh)(void 0===h?"auto":h,r.fill,r.stroke);return!(!(0,c.A)(p,2)[1]&&!n||!u)&&q(i,A,o,s,u+f,e.x,e.y)}function it(t,e,n,r,i,A){var o=t.parsedStyle,s=o.lineWidth,l=void 0===s?1:s,u=o.increasedLineWidthForHitTesting,d=void 0===u?0:u,f=o.d,h=o.pointerEvents,p=f.segments,g=f.hasArc,y=f.polylines,v=f.polygons,b=(0,a.Hh)(void 0===h?"auto":h,(null==v?void 0:v.length)&&o.fill,o.stroke),w=(0,c.A)(b,2),B=w[0],C=w[1],E=(0,a.tc)(t),O=!1;return B||n?O=g?r(t,e):nt(v,e.x,e.y)||nt(y,e.x,e.y):((C||n)&&(O=function(t,e,n,r,i){for(var A=!1,o=e/2,a=0;a<t.length;a++){var s=t[a],l=s.currentPoint,c=s.params,u=s.prePoint,d=s.box;if(!d||Y(d.x-o,d.y-o,d.width+e,d.height+e,n,r))switch(s.command){case"L":case"Z":if(A=q(u[0],u[1],l[0],l[1],e,n,r))return!0;break;case"Q":if(A=(0,x.tT)(u[0],u[1],c[1],c[2],c[3],c[4],n,r)<=e/2)return!0;break;case"C":if(A=(0,x.Wp)(u[0],u[1],c[1],c[2],c[3],c[4],c[5],c[6],n,r,i)<=e/2)return!0;break;case"A":s.cubicParams||(s.cubicParams=(0,m.U)(u[0],u[1],c[1],c[2],c[3],c[4],c[5],c[6],c[7],void 0));for(var f=s.cubicParams,h=u,p=0;p<f.length;p+=6){var g=(0,x.Wp)(h[0],h[1],f[p],f[p+1],f[p+2],f[p+3],f[p+4],f[p+5],n,r,i);if(h=[f[p+4],f[p+5]],A=g<=e/2)return!0}}}return A}(p,l+d,e.x,e.y,E)),O)}function At(t,e,n){var r=t.parsedStyle,i=r.lineWidth,A=void 0===i?1:i,o=r.increasedLineWidthForHitTesting,s=void 0===o?0:o,l=r.points,u=r.pointerEvents,d=(0,a.Hh)(void 0===u?"auto":u,r.fill,r.stroke),f=(0,c.A)(d,2),h=f[0],p=!1;return(f[1]||n)&&(p=Z(l.points,A+s,e.x,e.y,!0)),p||!h&&!n||(p=et(l.points,e.x,e.y)),p}function ot(t,e,n){var r=t.parsedStyle,i=r.lineWidth,A=void 0===i?1:i,o=r.increasedLineWidthForHitTesting,s=void 0===o?0:o,l=r.points,u=r.pointerEvents,d=(0,a.Hh)(void 0===u?"auto":u,r.fill,r.stroke);return!(!(0,c.A)(d,2)[1]&&!n||!A)&&Z(l.points,A+s,e.x,e.y,!1)}function at(t,e,n,r,i){var A=t.parsedStyle,o=A.radius,s=A.lineWidth,l=void 0===s?1:s,u=A.increasedLineWidthForHitTesting,d=void 0===u?0:u,f=A.x,h=void 0===f?0:f,p=A.y,g=void 0===p?0:p,m=A.width,v=A.height,b=A.pointerEvents,w=(0,a.Hh)(void 0===b?"auto":b,A.fill,A.stroke),B=(0,c.A)(w,2),x=B[0],C=B[1],E=l+d;if(o&&o.some(function(t){return 0!==t})){var O=!1;return(C||n)&&(O=function(t,e,n,r,i,A,o,a){var s=(0,c.A)(i,4),l=s[0],u=s[1],d=s[2],f=s[3];return q(t+l,e,t+n-u,e,A,o,a)||q(t+n,e+u,t+n,e+r-d,A,o,a)||q(t+n-d,e+r,t+f,e+r,A,o,a)||q(t,e+r-f,t,e+l,A,o,a)||$(t+n-u,e+u,u,Math,Math,A,o,a)||$(t+n-d,e+r-d,d,0,Math,A,o,a)||$(t+f,e+r-f,f,Math,Math,A,o,a)||$(t+l,e+l,l,Math,Math,A,o,a)}(h,g,m,v,o.map(function(t){return(0,y.A)(t,0,Math.min(Math.abs(m)/2,Math.abs(v)/2))}),E,e.x,e.y)),O||!x&&!n||(O=r(t,e)),O}var k=E/2;return x&&C||n?Y(h-k,g-k,m+k,v+k,e.x,e.y):x?Y(h,g,m,v,e.x,e.y):!!C&&function(t,e,n,r,i,A,o){var a=i/2;return Y(t-a,e-a,n,i,A,o)||Y(t+n-a,e-a,i,r,A,o)||Y(t+a,e+r-a,n,i,A,o)||Y(t-a,e+a,i,r,A,o)}(h,g,m,v,E,e.x,e.y)}function st(t,e,n,r,i,A){var o=t.parsedStyle,s=o.pointerEvents,c=o.x,u=void 0===c?0:c,d=o.y,f=void 0===d?0:d,h=o.width,p=o.height;if("non-transparent-pixel"===(void 0===s?"auto":s)){var g=i.config.offscreenCanvas,m=A.offscreenCanvasCreator.getOrCreateCanvas(g),y=A.offscreenCanvasCreator.getOrCreateContext(g,{willReadFrequently:!0});return m.width=h,m.height=p,i.defaultStyleRendererFactory[a.yp.IMAGE].render(y,(0,l.A)((0,l.A)({},t.parsedStyle),{},{x:0,y:0}),t,void 0,void 0,void 0),y.getImageData(e.x-u,e.y-f,1,1).data.every(function(t){return 0!==t})}return!0}function lt(t,e,n,r){var i=t.getGeometryBounds();return e.x>=i.min[0]&&e.y>=i.min[1]&&e.x<=i.max[0]&&e.y<=i.max[1]}G.tag="CanvasPicker";var ct=function(t){function e(){var t;(0,i.A)(this,e);for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=(0,A.A)(this,e,[].concat(r))).name="canvas-picker",t}return(0,o.A)(e,t),(0,r.A)(e,[{key:"init",value:function(){var t,e=((0,s.A)((0,s.A)((0,s.A)((0,s.A)((0,s.A)((0,s.A)((0,s.A)((0,s.A)((0,s.A)((0,s.A)(t={},a.yp.CIRCLE,V),a.yp.ELLIPSE,X),a.yp.RECT,at),a.yp.LINE,rt),a.yp.POLYLINE,ot),a.yp.POLYGON,At),a.yp.PATH,it),a.yp.TEXT,lt),a.yp.GROUP,null),a.yp.IMAGE,st),(0,s.A)((0,s.A)(t,a.yp.HTML,null),a.yp.MESH,null));this.context.pointInPathPickerFactory=e,this.addRenderingPlugin(new G)}},{key:"destroy",value:function(){delete this.context.pointInPathPickerFactory,this.removeAllRenderingPlugins()}}])}(a.V1);function ut(t,e){var n=e.cx,r=e.cy;t.arc(void 0===n?0:n,void 0===r?0:r,e.r,0,2*Math.PI,!1)}function dt(t,e){var n=e.cx,r=void 0===n?0:n,i=e.cy,A=void 0===i?0:i,o=e.rx,a=e.ry;if(t.ellipse)t.ellipse(r,A,o,a,0,0,2*Math.PI,!1);else{var s=o>a?o:a,l=o>a?1:o/a,c=o>a?a/o:1;t.save(),t.scale(l,c),t.arc(r,A,s,0,2*Math.PI)}}function ft(t,e){var n,r,i=e.x1,A=e.y1,o=e.x2,s=e.y2,l=e.markerStart,c=e.markerEnd,u=e.markerStartOffset,d=e.markerEndOffset,f=0,h=0,p=0,g=0,m=0;l&&(0,a.y5)(l)&&u&&(n=o-i,r=s-A,m=Math.atan2(r,n),f=Math.cos(m)*(u||0),h=Math.sin(m)*(u||0)),c&&(0,a.y5)(c)&&d&&(n=i-o,r=A-s,m=Math.atan2(r,n),p=Math.cos(m)*(d||0),g=Math.sin(m)*(d||0)),t.moveTo(i+f,A+h),t.lineTo(o+p,s+g)}function ht(t,e){var n,r,i=e.markerStart,A=e.markerEnd,o=e.markerStartOffset,s=e.markerEndOffset,l=e.d,u=l.absolutePath,d=l.segments,f=0,h=0,p=0,g=0,m=0;if(i&&(0,a.y5)(i)&&o){var y=i.parentNode.getStartTangent(),v=(0,c.A)(y,2),b=v[0],w=v[1];n=b[0]-w[0],r=b[1]-w[1],m=Math.atan2(r,n),f=Math.cos(m)*(o||0),h=Math.sin(m)*(o||0)}if(A&&(0,a.y5)(A)&&s){var B=A.parentNode.getEndTangent(),x=(0,c.A)(B,2),C=x[0],E=x[1];n=C[0]-E[0],r=C[1]-E[1],m=Math.atan2(r,n),p=Math.cos(m)*(s||0),g=Math.sin(m)*(s||0)}for(var O=0;O<u.length;O++){var k=u[O],F=k[0],Q=u[O+1],M=(O===u.length-1||Q&&("M"===Q[0]||"Z"===Q[0]))&&0!==p&&0!==g,U=(0,c.A)(0!==O||0===f&&0===h?[0,0]:[f,h],2),S=U[0],_=U[1],I=(0,c.A)(M?[p,g]:[0,0],2),T=I[0],L=I[1];switch(F){case"M":t.moveTo(k[1]+S,k[2]+_);break;case"L":t.lineTo(k[1]+T,k[2]+L);break;case"Q":t.quadraticCurveTo(k[1],k[2],k[3]+T,k[4]+L);break;case"C":t.bezierCurveTo(k[1],k[2],k[3],k[4],k[5]+T,k[6]+L);break;case"A":var P=d[O].arcParams,j=P.cx,H=P.cy,N=P.rx,D=P.ry,R=P.startAngle,K=P.endAngle,z=P.xRotation,G=P.sweepFlag;if(t.ellipse)t.ellipse(j,H,N,D,z,R,K,!!(1-G));else{var V=N>D?N:D,W=N>D?1:N/D,X=N>D?D/N:1;t.translate(j,H),t.rotate(z),t.scale(W,X),t.arc(0,0,V,R,K,!!(1-G)),t.scale(1/W,1/X),t.rotate(-z),t.translate(-j,-H)}M&&t.lineTo(k[6]+p,k[7]+g);break;case"Z":t.closePath()}}}function pt(t,e){var n,r,i=e.markerStart,A=e.markerEnd,o=e.markerStartOffset,s=e.markerEndOffset,l=e.points.points,c=l.length,u=l[0][0],d=l[0][1],f=l[c-1][0],h=l[c-1][1],p=0,g=0,m=0,y=0,v=0;i&&(0,a.y5)(i)&&o&&(n=l[1][0]-l[0][0],r=l[1][1]-l[0][1],v=Math.atan2(r,n),p=Math.cos(v)*(o||0),g=Math.sin(v)*(o||0)),A&&(0,a.y5)(A)&&s&&(n=l[c-1][0]-l[0][0],r=l[c-1][1]-l[0][1],v=Math.atan2(r,n),m=Math.cos(v)*(s||0),y=Math.sin(v)*(s||0)),t.moveTo(u+(p||m),d+(g||y));for(var b=1;b<c-1;b++){var w=l[b];t.lineTo(w[0],w[1])}t.lineTo(f,h)}function gt(t,e){var n,r,i=e.markerStart,A=e.markerEnd,o=e.markerStartOffset,s=e.markerEndOffset,l=e.points.points,c=l.length,u=l[0][0],d=l[0][1],f=l[c-1][0],h=l[c-1][1],p=0,g=0,m=0,y=0,v=0;i&&(0,a.y5)(i)&&o&&(n=l[1][0]-l[0][0],r=l[1][1]-l[0][1],v=Math.atan2(r,n),p=Math.cos(v)*(o||0),g=Math.sin(v)*(o||0)),A&&(0,a.y5)(A)&&s&&(n=l[c-2][0]-l[c-1][0],r=l[c-2][1]-l[c-1][1],v=Math.atan2(r,n),m=Math.cos(v)*(s||0),y=Math.sin(v)*(s||0)),t.moveTo(u+p,d+g);for(var b=1;b<c-1;b++){var w=l[b];t.lineTo(w[0],w[1])}t.lineTo(f+m,h+y)}function mt(t,e){var n=e.x,r=void 0===n?0:n,i=e.y,A=void 0===i?0:i,o=e.radius,a=e.width,s=e.height,l=a,u=s;if(o&&o.some(function(t){return 0!==t})){var d=a>0?1:-1,f=s>0?1:-1,h=d+f===0,p=o.map(function(t){return(0,y.A)(t,0,Math.min(Math.abs(l)/2,Math.abs(u)/2))}),g=(0,c.A)(p,4),m=g[0],v=g[1],b=g[2],w=g[3];t.moveTo(d*m+r,A),t.lineTo(l-d*v+r,A),0!==v&&t.arc(l-d*v+r,f*v+A,v,-f*Math.PI/2,d>0?0:Math.PI,h),t.lineTo(l+r,u-f*b+A),0!==b&&t.arc(l-d*b+r,u-f*b+A,b,d>0?0:Math.PI,f>0?Math.PI/2:1.5*Math.PI,h),t.lineTo(d*w+r,u+A),0!==w&&t.arc(d*w+r,u-f*w+A,w,f>0?Math.PI/2:-Math.PI/2,d>0?Math.PI:0,h),t.lineTo(r,f*m+A),0!==m&&t.arc(d*m+r,f*m+A,m,d>0?Math.PI:0,f>0?1.5*Math.PI:Math.PI/2,h)}else t.rect(r,A,l,u)}var yt=function(t){function e(){var t;(0,i.A)(this,e);for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=(0,A.A)(this,e,[].concat(r))).name="canvas-path-generator",t}return(0,o.A)(e,t),(0,r.A)(e,[{key:"init",value:function(){var t,e=((0,s.A)((0,s.A)((0,s.A)((0,s.A)((0,s.A)((0,s.A)((0,s.A)((0,s.A)((0,s.A)((0,s.A)(t={},a.yp.CIRCLE,ut),a.yp.ELLIPSE,dt),a.yp.RECT,mt),a.yp.LINE,ft),a.yp.POLYLINE,gt),a.yp.POLYGON,pt),a.yp.PATH,ht),a.yp.TEXT,void 0),a.yp.GROUP,void 0),a.yp.IMAGE,void 0),(0,s.A)((0,s.A)((0,s.A)(t,a.yp.HTML,void 0),a.yp.MESH,void 0),a.yp.FRAGMENT,void 0));this.context.pathGeneratorFactory=e}},{key:"destroy",value:function(){delete this.context.pathGeneratorFactory}}])}(a.V1),vt=function(){return(0,r.A)(function t(e){(0,i.A)(this,t),this.renderingContext=e.renderingContext,this.canvasConfig=e.config},[{key:"init",value:function(){var t=this.canvasConfig,e=t.container,n=t.canvas;if(n)this.$canvas=n,e&&n.parentElement!==e&&e.appendChild(n),this.$container=n.parentElement,this.canvasConfig.container=this.$container;else if(e&&(this.$container=(0,v.A)(e)?document.getElementById(e):e,this.$container)){var r=document.createElement("canvas");this.$container.appendChild(r),this.$container.style.position||(this.$container.style.position="relative"),this.$canvas=r}this.context=this.$canvas.getContext("2d"),this.resize(this.canvasConfig.width,this.canvasConfig.height)}},{key:"getContext",value:function(){return this.context}},{key:"getDomElement",value:function(){return this.$canvas}},{key:"getDPR",value:function(){return this.dpr}},{key:"getBoundingClientRect",value:function(){if(this.$canvas.getBoundingClientRect)return this.$canvas.getBoundingClientRect()}},{key:"destroy",value:function(){this.$container&&this.$canvas&&this.$canvas.parentNode&&this.$container.removeChild(this.$canvas)}},{key:"resize",value:function(t,e){this.dpr=this.canvasConfig.devicePixelRatio,this.$canvas&&(this.$canvas.width=this.dpr*t,this.$canvas.height=this.dpr*e,(0,a.q8)(this.$canvas,t,e)),this.renderingContext.renderReasons.add(a.po.CAMERA_CHANGED)}},{key:"applyCursorStyle",value:function(t){this.$container&&this.$container.style&&(this.$container.style.cursor=t)}},{key:"toDataURL",value:(t=(0,B.A)((0,w.A)().mark(function t(){var e,n=arguments;return(0,w.A)().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.context.canvas.toDataURL((e=n.length>0&&void 0!==n[0]?n[0]:{}).type,e.encoderOptions));case 1:case"end":return t.stop()}},t,this)})),function(){return t.apply(this,arguments)})}]);var t}(),bt=function(t){function e(){var t;(0,i.A)(this,e);for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=(0,A.A)(this,e,[].concat(r))).name="canvas-context-register",t}return(0,o.A)(e,t),(0,r.A)(e,[{key:"init",value:function(){this.context.ContextService=vt}},{key:"destroy",value:function(){delete this.context.ContextService}}])}(a.V1),wt=function(t){function e(t){var n;return(0,i.A)(this,e),(n=(0,A.A)(this,e,[t])).registerPlugin(new bt),n.registerPlugin(new a.$N.Plugin),n.registerPlugin(new yt),n.registerPlugin(new N),n.registerPlugin(new a.Tj.Plugin),n.registerPlugin(new ct),n.registerPlugin(new a.ne.Plugin),n}return(0,o.A)(e,t),(0,r.A)(e)}(a.kp)},"./node_modules/.pnpm/@antv+g-lite@2.7.0/node_modules/@antv/g-lite/dist/index.esm.js"(t,e,n){"use strict";n.d(e,{F5:()=>_t,kp:()=>Ot,V1:()=>Et,Ks:()=>ko,i7:()=>se,Aq:()=>re,Hl:()=>No,N3:()=>Io,jl:()=>oo,K9:()=>so,up:()=>aA,q9:()=>Ao,Tj:()=>na,eg:()=>Ht,jX:()=>gA,Pp:()=>lo,Ns:()=>rA,hq:()=>sn,YJ:()=>co,g3:()=>fo,ne:()=>Jo,_V:()=>ho,$N:()=>$o,N1:()=>go,bP:()=>lA,wA:()=>yo,uc:()=>Pt,tS:()=>bo,Ro:()=>Bo,NZ:()=>ge,rw:()=>xo,po:()=>dA,yp:()=>xt,EY:()=>Eo,O5:()=>dr,Q_:()=>Kt,kU:()=>Gt,zV:()=>ci,_H:()=>Dt,tc:()=>tr,y5:()=>to,Hh:()=>gi,Pt:()=>Sn,H0:()=>In,pC:()=>Nr,fA:()=>VA,q8:()=>ui});var r=n("./node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/objectSpread2.js"),i=n("./node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/classCallCheck.js"),A=n("./node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/createClass.js"),o=n("./node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/toConsumableArray.js"),a=n("./node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/callSuper.js"),s=n("./node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/inherits.js"),l=n("./node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/slicedToArray.js"),c=n("./node_modules/.pnpm/eventemitter3@5.0.4/node_modules/eventemitter3/index.mjs"),u=n("./node_modules/.pnpm/gl-matrix@3.4.4/node_modules/gl-matrix/esm/vec3.js"),d=n("./node_modules/.pnpm/gl-matrix@3.4.4/node_modules/gl-matrix/esm/vec4.js"),f=n("./node_modules/.pnpm/gl-matrix@3.4.4/node_modules/gl-matrix/esm/mat4.js"),h={};n.r(h),n.d(h,{add:()=>f.WQ,adjoint:()=>f.KC,clone:()=>f.o8,copy:()=>f.C,create:()=>f.vt,decompose:()=>f.o,determinant:()=>f.a4,equals:()=>f.aI,exactEquals:()=>f.t2,frob:()=>f.O,fromQuat:()=>f.I0,fromQuat2:()=>f.yo,fromRotation:()=>f.$0,fromRotationTranslation:()=>f.U_,fromRotationTranslationScale:()=>f.o1,fromRotationTranslationScaleOrigin:()=>f.O7,fromScaling:()=>f.CV,fromTranslation:()=>f.kN,fromValues:()=>f.fA,fromXRotation:()=>f.hM,fromYRotation:()=>f.i1,fromZRotation:()=>f.N9,frustum:()=>f.$h,getRotation:()=>f.l,getScaling:()=>f.IL,getTranslation:()=>f.sC,identity:()=>f.D_,invert:()=>f.B8,lookAt:()=>f.t5,mul:()=>f.lK,multiply:()=>f.lw,multiplyScalar:()=>f.Ny,multiplyScalarAndAdd:()=>f.TV,ortho:()=>f.v3,orthoNO:()=>f.up,orthoZO:()=>f.W7,perspective:()=>f.fN,perspectiveFromFieldOfView:()=>f.nc,perspectiveNO:()=>f.Kp,perspectiveZO:()=>f.ef,rotate:()=>f.e$,rotateX:()=>f.eL,rotateY:()=>f.Z8,rotateZ:()=>f.Qr,scale:()=>f.hs,set:()=>f.hZ,str:()=>f.gx,sub:()=>f.jb,subtract:()=>f.Re,targetTo:()=>f.xI,translate:()=>f.Tl,transpose:()=>f.mg});var p=n("./node_modules/.pnpm/gl-matrix@3.4.4/node_modules/gl-matrix/esm/mat3.js"),g=n("./node_modules/.pnpm/gl-matrix@3.4.4/node_modules/gl-matrix/esm/quat.js"),m=n("./node_modules/.pnpm/gl-matrix@3.4.4/node_modules/gl-matrix/esm/vec2.js"),y=n("./node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/esm/lodash/is-number.js"),v=n("./node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/esm/path/util/distance-square-root.js"),b=n("./node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/esm/lodash/is-nil.js"),w=n("./node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/esm/lodash/is-string.js"),B=n("./node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/esm/lodash/clamp.js"),x=n("./node_modules/.pnpm/tslib@2.8.1/node_modules/tslib/tslib.es6.mjs"),C={a:7,c:6,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,z:0};function E(t){return Array.isArray(t)&&t.every(function(t){var e=t[0].toLowerCase();return C[e]===t.length-1&&"achlmqstvz".includes(e)})}function O(t){return E(t)&&t.every(function(t){var e=t[0];return e===e.toUpperCase()})}function k(t){return O(t)&&t.every(function(t){return"ACLMQZ".includes(t[0])})}var F={x1:0,y1:0,x2:0,y2:0,x:0,y:0,qx:null,qy:null};function Q(t){for(var e=t.pathValue[t.segmentStart],n=e.toLowerCase(),r=t.data;r.length>=C[n]&&("m"===n&&r.length>2?(t.segments.push([e].concat(r.splice(0,2))),n="l",e="m"===e?"l":"L"):t.segments.push([e].concat(r.splice(0,C[n]))),C[n]););}function M(t){var e=t.index,n=t.pathValue,r=n.charCodeAt(e);return 48===r?(t.param=0,void(t.index+=1)):49===r?(t.param=1,void(t.index+=1)):void(t.err='[path-util]: invalid Arc flag "'.concat(n[e],'", expecting 0 or 1 at index ').concat(e))}function U(t){return t>=48&&t<=57||43===t||45===t||46===t}function S(t){return t>=48&&t<=57}function _(t){var e,n=t.max,r=t.pathValue,i=t.index,A=i,o=!1,a=!1,s=!1,l=!1;if(A>=n)t.err="[path-util]: Invalid path value at index ".concat(A,', "pathValue" is missing param');else if(43!==(e=r.charCodeAt(A))&&45!==e||(e=r.charCodeAt(A+=1)),S(e)||46===e){if(46!==e){if(o=48===e,e=r.charCodeAt(A+=1),o&&A<n&&e&&S(e))return void(t.err="[path-util]: Invalid path value at index ".concat(i,', "').concat(r[i],'" illegal number'));for(;A<n&&S(r.charCodeAt(A));)A+=1,a=!0;e=r.charCodeAt(A)}if(46===e){for(l=!0,A+=1;S(r.charCodeAt(A));)A+=1,s=!0;e=r.charCodeAt(A)}if(101===e||69===e){if(l&&!a&&!s)return void(t.err="[path-util]: Invalid path value at index ".concat(A,', "').concat(r[A],'" invalid float exponent'));if(43!==(e=r.charCodeAt(A+=1))&&45!==e||(A+=1),!(A<n&&S(r.charCodeAt(A))))return void(t.err="[path-util]: Invalid path value at index ".concat(A,', "').concat(r[A],'" invalid integer exponent'));for(;A<n&&S(r.charCodeAt(A));)A+=1}t.index=A,t.param=+t.pathValue.slice(i,A)}else t.err="[path-util]: Invalid path value at index ".concat(A,', "').concat(r[A],'" is not a number')}function I(t){return 10===t||13===t||8232===t||8233===t||32===t||9===t||11===t||12===t||160===t||t>=5760&&[5760,6158,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279].includes(t)}function T(t){for(var e=t.pathValue,n=t.max;t.index<n&&I(e.charCodeAt(t.index));)t.index+=1}function L(t){return 97==(32|t)}function P(t){var e=t.max,n=t.pathValue,r=t.index,i=n.charCodeAt(r),A=C[n[r].toLowerCase()];if(t.segmentStart=r,function(t){switch(32|t){case 109:case 122:case 108:case 104:case 118:case 99:case 115:case 113:case 116:case 97:return!0;default:return!1}}(i))if(t.index+=1,T(t),t.data=[],A){for(;;){for(var o=A;o>0;o-=1){if(!L(i)||3!==o&&4!==o?_(t):M(t),t.err.length)return;t.data.push(t.param),T(t),t.index<e&&44===n.charCodeAt(t.index)&&(t.index+=1,T(t))}if(t.index>=t.max)break;if(!U(n.charCodeAt(t.index)))break}Q(t)}else Q(t);else t.err='[path-util]: Invalid path value "'.concat(n[r],'" is not a path command')}var j=function(t){this.pathValue=t,this.segments=[],this.max=t.length,this.index=0,this.param=0,this.segmentStart=0,this.data=[],this.err=""};function H(t,e){var n=t[0],r=e.x1,i=e.y1,A=e.x2,o=e.y2,a=t.slice(1).map(Number),s=t;if("TQ".includes(n)||(e.qx=null,e.qy=null),"H"===n)s=["L",t[1],i];else if("V"===n)s=["L",r,t[1]];else if("S"===n){var l=2*r-A,c=2*i-o;e.x1=l,e.y1=c,s=["C",l,c].concat(a)}else if("T"===n){var u=2*r-e.qx,d=2*i-e.qy;e.qx=u,e.qy=d,s=["Q",u,d].concat(a)}else if("Q"===n){var f=a[1];e.qx=a[0],e.qy=f}return s}function N(t){if(k(t))return[].concat(t);for(var e=function(t){if(O(t))return[].concat(t);var e=function(t){if(E(t))return[].concat(t);var e=new j(t);for(T(e);e.index<e.max&&!e.err.length;)P(e);return e.err?e.err:e.segments}(t),n=0,r=0,i=0,A=0;return e.map(function(t){var e,o=t.slice(1).map(Number),a=t[0],s=a.toUpperCase();if("M"===a)return i=n=o[0],A=r=o[1],["M",n,r];if(a!==s)switch(s){case"A":e=[s,o[0],o[1],o[2],o[3],o[4],o[5]+n,o[6]+r];break;case"V":e=[s,o[0]+r];break;case"H":e=[s,o[0]+n];break;default:var l=o.map(function(t,e){return t+(e%2?r:n)});e=[s].concat(l)}else e=[s].concat(o);var c=e.length;switch(s){case"Z":n=i,r=A;break;case"H":n=e[1];break;case"V":r=e[1];break;default:n=e[c-2],r=e[c-1],"M"===s&&(i=n,A=r)}return e})}(t),n=(0,x.Cl)({},F),r=0;r<e.length;r+=1){e[r]=H(e[r],n);var i=e[r],A=i.length;n.x1=+i[A-2],n.y1=+i[A-1],n.x2=+i[A-4]||n.x1,n.y2=+i[A-3]||n.y1}return e}function D(t,e,n){var r=t[0],i=t[1];return[r+(e[0]-r)*n,i+(e[1]-i)*n]}function R(t,e,n,r,i){var A=(0,v.F)([t,e],[n,r]),o={x:0,y:0};if("number"==typeof i)if(i<=0)o={x:t,y:e};else if(i>=A)o={x:n,y:r};else{var a=D([t,e],[n,r],i/A);o={x:a[0],y:a[1]}}return{length:A,point:o,min:{x:Math.min(t,n),y:Math.min(e,r)},max:{x:Math.max(t,n),y:Math.max(e,r)}}}function K(t,e){var n=t.x,r=t.y,i=e.x,A=e.y,o=n*i+r*A,a=Math.sqrt((Math.pow(n,2)+Math.pow(r,2))*(Math.pow(i,2)+Math.pow(A,2)));return(n*A-r*i<0?-1:1)*Math.acos(o/a)}function z(t,e,n,r,i,A,o,a,s,l){var c=Math.abs,u=Math.sin,d=Math.cos,f=Math.sqrt,h=Math.PI,p=c(n),g=c(r),m=(i%360+360)%360*(h/180);if(t===a&&e===s)return{x:t,y:e};if(0===p||0===g)return R(t,e,a,s,l).point;var y=(t-a)/2,v=(e-s)/2,b={x:d(m)*y+u(m)*v,y:-u(m)*y+d(m)*v},w=Math.pow(b.x,2)/Math.pow(p,2)+Math.pow(b.y,2)/Math.pow(g,2);w>1&&(p*=f(w),g*=f(w));var B=(Math.pow(p,2)*Math.pow(g,2)-Math.pow(p,2)*Math.pow(b.y,2)-Math.pow(g,2)*Math.pow(b.x,2))/(Math.pow(p,2)*Math.pow(b.y,2)+Math.pow(g,2)*Math.pow(b.x,2)),x=(A!==o?1:-1)*f(B=B<0?0:B),C=x*(p*b.y/g),E=x*(-g*b.x/p),O=d(m)*C-u(m)*E+(t+a)/2,k=u(m)*C+d(m)*E+(e+s)/2,F={x:(b.x-C)/p,y:(b.y-E)/g},Q=K({x:1,y:0},F),M=K(F,{x:(-b.x-C)/p,y:(-b.y-E)/g});!o&&M>0?M-=2*h:o&&M<0&&(M+=2*h);var U=Q+(M%=2*h)*l,S=p*d(U),_=g*u(U);return{x:d(m)*S-u(m)*_+O,y:u(m)*S+d(m)*_+k}}function G(t,e,n,r,i,A,o,a,s,l,c){var u,d=c.bbox,f=void 0===d||d,h=c.length,p=void 0===h||h,g=c.sampleSize,m=void 0===g?30:g,y="number"==typeof l,b=t,w=e,B=0,x=[b,w,B],C=[b,w],E={x:0,y:0},O=[{x:b,y:w}];y&&l<=0&&(E={x:b,y:w});for(var k=0;k<=m;k+=1){if(b=(u=z(t,e,n,r,i,A,o,a,s,k/m)).x,w=u.y,f&&O.push({x:b,y:w}),p&&(B+=(0,v.F)(C,[b,w])),C=[b,w],y&&B>=l&&l>x[2]){var F=(B-l)/(B-x[2]);E={x:C[0]*(1-F)+x[0]*F,y:C[1]*(1-F)+x[1]*F}}x=[b,w,B]}return y&&l>=B&&(E={x:a,y:s}),{length:B,point:E,min:{x:Math.min.apply(null,O.map(function(t){return t.x})),y:Math.min.apply(null,O.map(function(t){return t.y}))},max:{x:Math.max.apply(null,O.map(function(t){return t.x})),y:Math.max.apply(null,O.map(function(t){return t.y}))}}}function V(t,e,n,r,i,A,o,a,s){var l=1-s;return{x:Math.pow(l,3)*t+3*Math.pow(l,2)*s*n+3*l*Math.pow(s,2)*i+Math.pow(s,3)*o,y:Math.pow(l,3)*e+3*Math.pow(l,2)*s*r+3*l*Math.pow(s,2)*A+Math.pow(s,3)*a}}function W(t,e,n,r,i,A,o,a,s,l){var c,u=l.bbox,d=void 0===u||u,f=l.length,h=void 0===f||f,p=l.sampleSize,g=void 0===p?10:p,m="number"==typeof s,y=t,b=e,w=0,B=[y,b,w],x=[y,b],C={x:0,y:0},E=[{x:y,y:b}];m&&s<=0&&(C={x:y,y:b});for(var O=0;O<=g;O+=1){if(y=(c=V(t,e,n,r,i,A,o,a,O/g)).x,b=c.y,d&&E.push({x:y,y:b}),h&&(w+=(0,v.F)(x,[y,b])),x=[y,b],m&&w>=s&&s>B[2]){var k=(w-s)/(w-B[2]);C={x:x[0]*(1-k)+B[0]*k,y:x[1]*(1-k)+B[1]*k}}B=[y,b,w]}return m&&s>=w&&(C={x:o,y:a}),{length:w,point:C,min:{x:Math.min.apply(null,E.map(function(t){return t.x})),y:Math.min.apply(null,E.map(function(t){return t.y}))},max:{x:Math.max.apply(null,E.map(function(t){return t.x})),y:Math.max.apply(null,E.map(function(t){return t.y}))}}}function X(t,e,n,r,i,A,o){var a=1-o;return{x:Math.pow(a,2)*t+2*a*o*n+Math.pow(o,2)*i,y:Math.pow(a,2)*e+2*a*o*r+Math.pow(o,2)*A}}function Y(t,e,n,r,i,A,o,a){var s,l=a.bbox,c=void 0===l||l,u=a.length,d=void 0===u||u,f=a.sampleSize,h=void 0===f?10:f,p="number"==typeof o,g=t,m=e,y=0,b=[g,m,y],w=[g,m],B={x:0,y:0},x=[{x:g,y:m}];p&&o<=0&&(B={x:g,y:m});for(var C=0;C<=h;C+=1){if(g=(s=X(t,e,n,r,i,A,C/h)).x,m=s.y,c&&x.push({x:g,y:m}),d&&(y+=(0,v.F)(w,[g,m])),w=[g,m],p&&y>=o&&o>b[2]){var E=(y-o)/(y-b[2]);B={x:w[0]*(1-E)+b[0]*E,y:w[1]*(1-E)+b[1]*E}}b=[g,m,y]}return p&&o>=y&&(B={x:i,y:A}),{length:y,point:B,min:{x:Math.min.apply(null,x.map(function(t){return t.x})),y:Math.min.apply(null,x.map(function(t){return t.y}))},max:{x:Math.max.apply(null,x.map(function(t){return t.x})),y:Math.max.apply(null,x.map(function(t){return t.y}))}}}function $(t,e,n){for(var r,i,A,o,a,s,l,c,u,d=N(t),f="number"==typeof e,h=[],p=0,g=0,m=0,y=0,v=[],b=[],w=0,B={x:0,y:0},x=B,C=B,E=B,O=0,k=0,F=d.length;k<F;k+=1)h=(l="M"===(c=(u=d[k])[0]))?h:[p,g].concat(u.slice(1)),l?(x=B={x:m=u[1],y:y=u[2]},w=0,f&&e<.001&&(E=B)):"L"===c?(w=(r=R(h[0],h[1],h[2],h[3],(e||0)-O)).length,B=r.min,x=r.max,C=r.point):"A"===c?(w=(i=G(h[0],h[1],h[2],h[3],h[4],h[5],h[6],h[7],h[8],(e||0)-O,n||{})).length,B=i.min,x=i.max,C=i.point):"C"===c?(w=(A=W(h[0],h[1],h[2],h[3],h[4],h[5],h[6],h[7],(e||0)-O,n||{})).length,B=A.min,x=A.max,C=A.point):"Q"===c?(w=(o=Y(h[0],h[1],h[2],h[3],h[4],h[5],(e||0)-O,n||{})).length,B=o.min,x=o.max,C=o.point):"Z"===c&&(w=(a=R((h=[p,g,m,y])[0],h[1],h[2],h[3],(e||0)-O)).length,B=a.min,x=a.max,C=a.point),f&&O<e&&O+w>=e&&(E=C),b.push(x),v.push(B),O+=w,p=(s="Z"!==c?u.slice(-2):[m,y])[0],g=s[1];return f&&e>=O&&(E={x:p,y:g}),{length:O,point:E,min:{x:Math.min.apply(null,v.map(function(t){return t.x})),y:Math.min.apply(null,v.map(function(t){return t.y}))},max:{x:Math.max.apply(null,b.map(function(t){return t.x})),y:Math.max.apply(null,b.map(function(t){return t.y}))}}}var q=n("./node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/esm/lodash/min.js"),Z=n("./node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/esm/lodash/max.js"),J=n("./node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/esm/lodash/is-number-equal.js");const tt=function(t,e){return(t%e+e)%e};function et(t,e,n){if(t[n].length>7){t[n].shift();for(var r=t[n],i=n;r.length;)e[n]="A",t.splice(i+=1,0,["C"].concat(r.splice(0,6)));t.splice(n,1)}}var nt=n("./node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/esm/path/process/arc-2-cubic.js"),rt=function(t,e,n,r){var i=D([t,e],[n,r],.5);return(0,x.fX)((0,x.fX)([],i,!0),[n,r,n,r],!1)};function it(t,e){var n,r,i,A,o,a,s,l=t[0],c=t.slice(1).map(Number),u=c[0],d=c[1],f=e.x1,h=e.y1,p=e.x,g=e.y;switch("TQ".includes(l)||(e.qx=null,e.qy=null),l){case"M":return e.x=u,e.y=d,t;case"A":return n=[f,h].concat(c),["C"].concat((0,nt.U)(n[0],n[1],n[2],n[3],n[4],n[5],n[6],n[7],n[8],n[9]));case"Q":return e.qx=u,e.qy=d,n=[f,h].concat(c),["C"].concat([(a=1/3)*n[0]+(s=2/3)*(r=n[2]),a*n[1]+s*(i=n[3]),a*(A=n[4])+s*r,a*(o=n[5])+s*i,A,o]);case"L":return["C"].concat(rt(f,h,u,d));case"Z":return f===p&&h===g?["C",f,h,p,g,p,g]:["C"].concat(rt(f,h,p,g))}return t}function At(t,e){if(void 0===e&&(e=!1),function(t){return k(t)&&t.every(function(t){return"MC".includes(t[0])})}(t)){var n=[].concat(t);return e?[n,[]]:n}for(var r,i,A=N(t),o=(0,x.Cl)({},F),a=[],s="",l=A.length,c=[],u=0;u<l;u+=1){A[u]&&(s=A[u][0]),a[u]=s;var d=it(A[u],o);A[u]=d,et(A,a,u),l=A.length,"Z"===s&&c.push(u),o.x1=+(r=A[u])[(i=r.length)-2],o.y1=+r[i-1],o.x2=+r[i-4]||o.x1,o.y2=+r[i-3]||o.y1}return e?[A,c]:A}function ot(t){return t.map(function(t,e,n){var r=e&&n[e-1].slice(-2).concat(t.slice(1)),i=e?W(r[0],r[1],r[2],r[3],r[4],r[5],r[6],r[7],r[8],{bbox:!1}).length:0;return{s:t,ss:e?i?function(t,e){void 0===e&&(e=.5);var n=t.slice(0,2),r=t.slice(2,4),i=t.slice(4,6),A=t.slice(6,8),o=D(n,r,e),a=D(r,i,e),s=D(i,A,e),l=D(o,a,e),c=D(a,s,e),u=D(l,c,e);return[["C"].concat(o,l,u),["C"].concat(c,s,A)]}(r):[t,t]:[t],l:i}})}function at(t,e,n,r){if(void 0===r&&(r=0),r>50)return console.warn("Maximum recursion depth reached in equalizeSegments"),[t,e];var i=ot(t),A=ot(e),o=i.length,a=A.length,s=i.filter(function(t){return t.l}).length,l=A.filter(function(t){return t.l}).length,c=i.filter(function(t){return t.l}).reduce(function(t,e){return t+e.l},0)/s||0,u=A.filter(function(t){return t.l}).reduce(function(t,e){return t+e.l},0)/l||0,d=n||Math.max(o,a),f=[c,u],h=[d-o,d-a],p=0,g=[i,A].map(function(t,e){return t.l===d?t.map(function(t){return t.s}):t.map(function(t,n){return h[e]-=(p=n&&h[e]&&t.l>=f[e])?1:0,p?t.ss:[t.s]}).flat()});return g[0].length===g[1].length?g:at(g[0],g[1],d,r+1)}function st(t){return e=0,n=0,r=0,At(t).map(function(t){var i;if("M"===t[0])return e=t[1],n=t[2],0;var A,o,a,s,l,c,u,d,f=t.slice(1);return r=3*(((d=f[5])-(o=n))*((a=f[0])+(l=f[2]))-((u=f[4])-(A=e))*((s=f[1])+(c=f[3]))+s*(A-l)-a*(o-c)+d*(l+A/3)-u*(c+o/3))/20,i=t.slice(-2),e=i[0],n=i[1],r}).reduce(function(t,e){return t+e},0)>=0;var e,n,r}var lt=n("./node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/esm/lodash/is-undefined.js"),ct=n("./node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/esm/lodash/is-array.js"),ut=n("./node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/esm/lodash/is-type.js");const dt=function(t){return(0,ut.A)(t,"Boolean")};var ft=n("./node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/esm/lodash/is-function.js"),ht=n("./node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/esm/lodash/is-object.js"),pt=n("./node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/defineProperty.js"),gt=n("./node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/superPropGet.js"),mt=n("./node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js"),yt=n("./node_modules/.pnpm/@antv+g-math@3.1.0/node_modules/@antv/g-math/dist/index.esm.js"),vt=n("./node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js"),bt=n("./node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js"),wt=n("./node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/createForOfIteratorHelper.js"),Bt=n("./node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"),xt=function(t){return t.GROUP="g",t.FRAGMENT="fragment",t.CIRCLE="circle",t.ELLIPSE="ellipse",t.IMAGE="image",t.RECT="rect",t.LINE="line",t.POLYLINE="polyline",t.POLYGON="polygon",t.TEXT="text",t.PATH="path",t.HTML="html",t.MESH="mesh",t}({}),Ct=function(t){return t[t.ZERO=0]="ZERO",t[t.NEGATIVE_ONE=1]="NEGATIVE_ONE",t}({}),Et=function(){return(0,A.A)(function t(){(0,i.A)(this,t),this.plugins=[]},[{key:"addRenderingPlugin",value:function(t){this.plugins.push(t),this.context.renderingPlugins.push(t)}},{key:"removeAllRenderingPlugins",value:function(){var t=this;this.plugins.forEach(function(e){var n=t.context.renderingPlugins.indexOf(e);n>=0&&t.context.renderingPlugins.splice(n,1)})}}])}(),Ot=function(){return(0,A.A)(function t(e){(0,i.A)(this,t),this.clipSpaceNearZ=Ct.NEGATIVE_ONE,this.plugins=[],this.config=(0,r.A)({enableDirtyCheck:!0,enableCulling:!1,enableAutoRendering:!0,enableDirtyRectangleRendering:!0,enableDirtyRectangleRenderingDebug:!1,enableSizeAttenuation:!0,enableRenderingOptimization:!1},e)},[{key:"registerPlugin",value:function(t){-1===this.plugins.findIndex(function(e){return e===t})&&this.plugins.push(t)}},{key:"unregisterPlugin",value:function(t){var e=this.plugins.findIndex(function(e){return e===t});e>-1&&this.plugins.splice(e,1)}},{key:"getPlugins",value:function(){return this.plugins}},{key:"getPlugin",value:function(t){return this.plugins.find(function(e){return e.name===t})}},{key:"getConfig",value:function(){return this.config}},{key:"setConfig",value:function(t){Object.assign(this.config,t)}}])}(),kt=u.WQ,Ft=u.C,Qt=u.T9,Mt=u.jk,Ut=u.hs,St=u.jb,_t=function(){function t(){(0,i.A)(this,t),this.center=[0,0,0],this.halfExtents=[0,0,0],this.min=[0,0,0],this.max=[0,0,0]}return(0,A.A)(t,[{key:"update",value:function(t,e){Ft(this.center,t),Ft(this.halfExtents,e),St(this.min,this.center,this.halfExtents),kt(this.max,this.center,this.halfExtents)}},{key:"setMinMax",value:function(t,e){kt(this.center,e,t),Ut(this.center,this.center,.5),St(this.halfExtents,e,t),Ut(this.halfExtents,this.halfExtents,.5),Ft(this.min,t),Ft(this.max,e)}},{key:"getMin",value:function(){return this.min}},{key:"getMax",value:function(){return this.max}},{key:"add",value:function(e){if(!t.isEmpty(e))if(t.isEmpty(this))this.setMinMax(e.getMin(),e.getMax());else{var n=this.center,r=n[0],i=n[1],A=n[2],o=this.halfExtents,a=o[0],s=o[1],l=o[2],c=r-a,u=r+a,d=i-s,f=i+s,h=A-l,p=A+l,g=e.center,m=g[0],y=g[1],v=g[2],b=e.halfExtents,w=b[0],B=b[1],x=b[2],C=m-w,E=m+w,O=y-B,k=y+B,F=v-x,Q=v+x;C<c&&(c=C),E>u&&(u=E),O<d&&(d=O),k>f&&(f=k),F<h&&(h=F),Q>p&&(p=Q),n[0]=.5*(c+u),n[1]=.5*(d+f),n[2]=.5*(h+p),o[0]=.5*(u-c),o[1]=.5*(f-d),o[2]=.5*(p-h),this.min[0]=c,this.min[1]=d,this.min[2]=h,this.max[0]=u,this.max[1]=f,this.max[2]=p}}},{key:"setFromTransformedAABB",value:function(t,e){var n=this.center,r=this.halfExtents,i=t.center,A=t.halfExtents,o=e[0],a=e[4],s=e[8],l=e[1],c=e[5],u=e[9],d=e[2],f=e[6],h=e[10],p=Math.abs(o),g=Math.abs(a),m=Math.abs(s),y=Math.abs(l),v=Math.abs(c),b=Math.abs(u),w=Math.abs(d),B=Math.abs(f),x=Math.abs(h);n[0]=e[12]+o*i[0]+a*i[1]+s*i[2],n[1]=e[13]+l*i[0]+c*i[1]+u*i[2],n[2]=e[14]+d*i[0]+f*i[1]+h*i[2],r[0]=p*A[0]+g*A[1]+m*A[2],r[1]=y*A[0]+v*A[1]+b*A[2],r[2]=w*A[0]+B*A[1]+x*A[2],St(this.min,n,r),kt(this.max,n,r)}},{key:"intersects",value:function(t){var e=this.getMax(),n=this.getMin(),r=t.getMax(),i=t.getMin();return n[0]<=r[0]&&e[0]>=i[0]&&n[1]<=r[1]&&e[1]>=i[1]&&n[2]<=r[2]&&e[2]>=i[2]}},{key:"intersection",value:function(e){if(!this.intersects(e))return null;var n=new t,r=Qt([0,0,0],this.getMin(),e.getMin()),i=Mt([0,0,0],this.getMax(),e.getMax());return n.setMinMax(r,i),n}},{key:"getNegativeFarPoint",value:function(t){return 273===t.pnVertexFlag?Ft([0,0,0],this.min):272===t.pnVertexFlag?[this.min[0],this.min[1],this.max[2]]:257===t.pnVertexFlag?[this.min[0],this.max[1],this.min[2]]:256===t.pnVertexFlag?[this.min[0],this.max[1],this.max[2]]:17===t.pnVertexFlag?[this.max[0],this.min[1],this.min[2]]:16===t.pnVertexFlag?[this.max[0],this.min[1],this.max[2]]:1===t.pnVertexFlag?[this.max[0],this.max[1],this.min[2]]:[this.max[0],this.max[1],this.max[2]]}},{key:"getPositiveFarPoint",value:function(t){return 273===t.pnVertexFlag?Ft([0,0,0],this.max):272===t.pnVertexFlag?[this.max[0],this.max[1],this.min[2]]:257===t.pnVertexFlag?[this.max[0],this.min[1],this.max[2]]:256===t.pnVertexFlag?[this.max[0],this.min[1],this.min[2]]:17===t.pnVertexFlag?[this.min[0],this.max[1],this.max[2]]:16===t.pnVertexFlag?[this.min[0],this.max[1],this.min[2]]:1===t.pnVertexFlag?[this.min[0],this.min[1],this.max[2]]:[this.min[0],this.min[1],this.min[2]]}}],[{key:"isEmpty",value:function(t){return!t||0===t.halfExtents[0]&&0===t.halfExtents[1]&&0===t.halfExtents[2]}}])}(),It=function(){return(0,A.A)(function t(e,n){(0,i.A)(this,t),this.distance=e||0,this.normal=n||u.fA(0,1,0),this.updatePNVertexFlag()},[{key:"updatePNVertexFlag",value:function(){this.pnVertexFlag=(Number(this.normal[0]>=0)<<8)+(Number(this.normal[1]>=0)<<4)+Number(this.normal[2]>=0)}},{key:"distanceToPoint",value:function(t){return u.Om(t,this.normal)-this.distance}},{key:"normalize",value:function(){var t=1/u.Il(this.normal);u.hs(this.normal,this.normal,t),this.distance*=t}},{key:"intersectsLine",value:function(t,e,n){var r=this.distanceToPoint(t),i=r/(r-this.distanceToPoint(e)),A=i>=0&&i<=1;return A&&n&&u.Cc(n,t,e,i),A}}])}(),Tt=function(t){return t[t.OUTSIDE=4294967295]="OUTSIDE",t[t.INSIDE=0]="INSIDE",t[t.INDETERMINATE=2147483647]="INDETERMINATE",t}({}),Lt=function(){return(0,A.A)(function t(e){if((0,i.A)(this,t),this.planes=[],e)this.planes=e;else for(var n=0;n<6;n++)this.planes.push(new It)},[{key:"extractFromVPMatrix",value:function(t){var e=(0,l.A)(t,16),n=e[0],r=e[1],i=e[2],A=e[3],o=e[4],a=e[5],s=e[6],c=e[7],d=e[8],f=e[9],h=e[10],p=e[11],g=e[12],m=e[13],y=e[14],v=e[15];u.hZ(this.planes[0].normal,A-n,c-o,p-d),this.planes[0].distance=v-g,u.hZ(this.planes[1].normal,A+n,c+o,p+d),this.planes[1].distance=v+g,u.hZ(this.planes[2].normal,A+r,c+a,p+f),this.planes[2].distance=v+m,u.hZ(this.planes[3].normal,A-r,c-a,p-f),this.planes[3].distance=v-m,u.hZ(this.planes[4].normal,A-i,c-s,p-h),this.planes[4].distance=v-y,u.hZ(this.planes[5].normal,A+i,c+s,p+h),this.planes[5].distance=v+y,this.planes.forEach(function(t){t.normalize(),t.updatePNVertexFlag()})}}])}(),Pt=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;(0,i.A)(this,t),this.x=0,this.y=0,this.x=e,this.y=n}return(0,A.A)(t,[{key:"clone",value:function(){return new t(this.x,this.y)}},{key:"copyFrom",value:function(t){this.x=t.x,this.y=t.y}}])}(),jt=function(){function t(e,n,r,A){(0,i.A)(this,t),this.x=e,this.y=n,this.width=r,this.height=A,this.left=e,this.right=e+r,this.top=n,this.bottom=n+A}return(0,A.A)(t,[{key:"toJSON",value:function(){}}],[{key:"fromRect",value:function(e){return new t(e.x,e.y,e.width,e.height)}},{key:"applyTransform",value:function(e,n){var r=d.fA(e.x,e.y,0,1),i=d.fA(e.x+e.width,e.y,0,1),A=d.fA(e.x,e.y+e.height,0,1),o=d.fA(e.x+e.width,e.y+e.height,0,1),a=d.vt(),s=d.vt(),l=d.vt(),c=d.vt();d.Z0(a,r,n),d.Z0(s,i,n),d.Z0(l,A,n),d.Z0(c,o,n);var u=Math.min(a[0],s[0],l[0],c[0]),f=Math.min(a[1],s[1],l[1],c[1]),h=Math.max(a[0],s[0],l[0],c[0]),p=Math.max(a[1],s[1],l[1],c[1]);return t.fromRect({x:u,y:f,width:h-u,height:p-f})}}])}(),Ht="Method not implemented.",Nt="Use document.documentElement instead.";function Dt(t){return void 0===t?0:t>360||t<-360?t%360:t}var Rt=u.vt();function Kt(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];return Array.isArray(t)&&3===t.length?r?u.o8(t):u.C(Rt,t):(0,y.A)(t)?r?u.fA(t,e,n):u.hZ(Rt,t,e,n):r?u.fA(t[0],t[1]||e,t[2]||n):u.hZ(Rt,t[0],t[1]||e,t[2]||n)}var zt=Math.PI/180;function Gt(t){return t*zt}var Vt=180/Math.PI;function Wt(t){return t*Vt}var Xt=Math.PI/2;function Yt(t,e){return 16===e.length?function(t,e){var n,r,i=f.IL(u.vt(),e),A=(0,l.A)(i,3),o=A[0],a=A[1],s=A[2],c=Math.asin(-e[2]/o);return c<Xt?c>-Xt?(n=Math.atan2(e[6]/a,e[10]/s),r=Math.atan2(e[1]/o,e[0]/o)):(r=0,n=-Math.atan2(e[4]/a,e[5]/a)):(r=0,n=Math.atan2(e[4]/a,e[5]/a)),t[0]=n,t[1]=c,t[2]=r,t}(t,e):function(t,e){var n=e[0],r=e[1],i=e[2],A=e[3],o=r*r,a=i*i,s=A*A,l=n*n+o+a+s,c=n*A-r*i;return c>.499995*l?(t[0]=Xt,t[1]=2*Math.atan2(r,n),t[2]=0):c<-.499995*l?(t[0]=-Xt,t[1]=2*Math.atan2(r,n),t[2]=0):(t[0]=Math.asin(2*(n*i-A*r)),t[1]=Math.atan2(2*(n*A+r*i),1-2*(a+s)),t[2]=Math.atan2(2*(n*r+i*A),1-2*(o+a))),t}(t,e)}function $t(t){var e=t[0],n=t[1],r=t[3],i=t[4],A=Math.sqrt(e*e+n*n),o=Math.sqrt(r*r+i*i);if(e*i-n*r<0&&(e<i?A=-A:o=-o),A){var a=1/A;e*=a,n*=a}if(o){var s=1/o;r*=s,i*=s}var l=Wt(Math.atan2(n,e));return[t[6],t[7],A,o,l]}var qt=f.vt(),Zt=f.vt(),Jt=d.vt(),te=[u.vt(),u.vt(),u.vt()],ee=u.vt();function ne(t,e,n,r,i){t[0]=e[0]*r+n[0]*i,t[1]=e[1]*r+n[1]*i,t[2]=e[2]*r+n[2]*i}var re=function(t){return t[t.ORBITING=0]="ORBITING",t[t.EXPLORING=1]="EXPLORING",t[t.TRACKING=2]="TRACKING",t}({}),ie=function(t){return t[t.DEFAULT=0]="DEFAULT",t[t.ROTATIONAL=1]="ROTATIONAL",t[t.TRANSLATIONAL=2]="TRANSLATIONAL",t[t.CINEMATIC=3]="CINEMATIC",t}({}),Ae=function(t){return t[t.ORTHOGRAPHIC=0]="ORTHOGRAPHIC",t[t.PERSPECTIVE=1]="PERSPECTIVE",t}({}),oe="updated",ae=2e-4,se=function(){return(0,A.A)(function t(){(0,i.A)(this,t),this.clipSpaceNearZ=Ct.NEGATIVE_ONE,this.eventEmitter=new c.A,this.matrix=f.vt(),this.right=u.fA(1,0,0),this.up=u.fA(0,1,0),this.forward=u.fA(0,0,1),this.position=u.fA(0,0,1),this.focalPoint=u.fA(0,0,0),this.distanceVector=u.fA(0,0,-1),this.distance=1,this.azimuth=0,this.elevation=0,this.roll=0,this.relAzimuth=0,this.relElevation=0,this.relRoll=0,this.dollyingStep=0,this.maxDistance=1/0,this.minDistance=-1/0,this.zoom=1,this.rotateWorld=!1,this.fov=30,this.near=.1,this.far=1e3,this.aspect=1,this.projectionMatrix=f.vt(),this.projectionMatrixInverse=f.vt(),this.jitteredProjectionMatrix=void 0,this.enableUpdate=!0,this.type=re.EXPLORING,this.trackingMode=ie.DEFAULT,this.projectionMode=Ae.PERSPECTIVE,this.frustum=new Lt,this.orthoMatrix=f.vt()},[{key:"isOrtho",value:function(){return this.projectionMode===Ae.ORTHOGRAPHIC}},{key:"getProjectionMode",value:function(){return this.projectionMode}},{key:"getPerspective",value:function(){return this.jitteredProjectionMatrix||this.projectionMatrix}},{key:"getPerspectiveInverse",value:function(){return this.projectionMatrixInverse}},{key:"getFrustum",value:function(){return this.frustum}},{key:"getPosition",value:function(){return this.position}},{key:"getFocalPoint",value:function(){return this.focalPoint}},{key:"getDollyingStep",value:function(){return this.dollyingStep}},{key:"getNear",value:function(){return this.near}},{key:"getFar",value:function(){return this.far}},{key:"getZoom",value:function(){return this.zoom}},{key:"getOrthoMatrix",value:function(){return this.orthoMatrix}},{key:"getView",value:function(){return this.view}},{key:"setEnableUpdate",value:function(t){this.enableUpdate=t}},{key:"setType",value:function(t,e){return this.type=t,this.setWorldRotation(this.type===re.EXPLORING),this._getAngles(),this.type===re.TRACKING&&void 0!==e&&this.setTrackingMode(e),this}},{key:"setProjectionMode",value:function(t){return this.projectionMode=t,this}},{key:"setTrackingMode",value:function(t){if(this.type!==re.TRACKING)throw new Error("Impossible to set a tracking mode if the camera is not of tracking type");return this.trackingMode=t,this}},{key:"setWorldRotation",value:function(t){return this.rotateWorld=t,this._getAngles(),this}},{key:"getViewTransform",value:function(){return f.B8(f.vt(),this.matrix)}},{key:"getWorldTransform",value:function(){return this.matrix}},{key:"jitterProjectionMatrix",value:function(t,e){var n=f.kN(f.vt(),[t,e,0]);this.jitteredProjectionMatrix=f.lw(f.vt(),n,this.projectionMatrix)}},{key:"clearJitterProjectionMatrix",value:function(){this.jitteredProjectionMatrix=void 0}},{key:"setMatrix",value:function(t){return this.matrix=t,this._update(),this}},{key:"setProjectionMatrix",value:function(t){this.projectionMatrix=t}},{key:"setFov",value:function(t){return this.setPerspective(this.near,this.far,t,this.aspect),this}},{key:"setAspect",value:function(t){return this.setPerspective(this.near,this.far,this.fov,t),this}},{key:"setNear",value:function(t){return this.projectionMode===Ae.PERSPECTIVE?this.setPerspective(t,this.far,this.fov,this.aspect):this.setOrthographic(this.left,this.rright,this.top,this.bottom,t,this.far),this}},{key:"setFar",value:function(t){return this.projectionMode===Ae.PERSPECTIVE?this.setPerspective(this.near,t,this.fov,this.aspect):this.setOrthographic(this.left,this.rright,this.top,this.bottom,this.near,t),this}},{key:"setViewOffset",value:function(t,e,n,r,i,A){return this.aspect=t/e,void 0===this.view&&(this.view={enabled:!0,fullWidth:1,fullHeight:1,offsetX:0,offsetY:0,width:1,height:1}),this.view.enabled=!0,this.view.fullWidth=t,this.view.fullHeight=e,this.view.offsetX=n,this.view.offsetY=r,this.view.width=i,this.view.height=A,this.projectionMode===Ae.PERSPECTIVE?this.setPerspective(this.near,this.far,this.fov,this.aspect):this.setOrthographic(this.left,this.rright,this.top,this.bottom,this.near,this.far),this}},{key:"clearViewOffset",value:function(){return void 0!==this.view&&(this.view.enabled=!1),this.projectionMode===Ae.PERSPECTIVE?this.setPerspective(this.near,this.far,this.fov,this.aspect):this.setOrthographic(this.left,this.rright,this.top,this.bottom,this.near,this.far),this}},{key:"setZoom",value:function(t){return this.zoom=t,this.projectionMode===Ae.ORTHOGRAPHIC?this.setOrthographic(this.left,this.rright,this.top,this.bottom,this.near,this.far):this.projectionMode===Ae.PERSPECTIVE&&this.setPerspective(this.near,this.far,this.fov,this.aspect),this}},{key:"setZoomByViewportPoint",value:function(t,e){var n=this.canvas.viewport2Canvas({x:e[0],y:e[1]}),r=n.x,i=n.y,A=this.roll;this.rotate(0,0,-A),this.setPosition(r,i),this.setFocalPoint(r,i),this.setZoom(t),this.rotate(0,0,A);var o=this.canvas.viewport2Canvas({x:e[0],y:e[1]}),a=u.fA(o.x-r,o.y-i,0),s=u.Om(a,this.right)/u.Bw(this.right),c=u.Om(a,this.up)/u.Bw(this.up),d=this.getPosition(),f=(0,l.A)(d,2),h=f[0],p=f[1],g=this.getFocalPoint(),m=(0,l.A)(g,2),y=m[0],v=m[1];return this.setPosition(h-s,p-c),this.setFocalPoint(y-s,v-c),this}},{key:"setPerspective",value:function(t,e,n,r){var i;this.projectionMode=Ae.PERSPECTIVE,this.fov=n,this.near=t,this.far=e,this.aspect=r;var A=this.near*Math.tan(Gt(.5*this.fov))/this.zoom,o=2*A,a=this.aspect*o,s=-.5*a;if(null!==(i=this.view)&&void 0!==i&&i.enabled){var l=this.view.fullWidth,c=this.view.fullHeight;s+=this.view.offsetX*a/l,A-=this.view.offsetY*o/c,a*=this.view.width/l,o*=this.view.height/c}return function(t,e,n,r,i,A,o){var a,s,l=2*A,c=n-e,u=r-i,d=l/u,f=(n+e)/c,h=(r+i)/u,p=o-A,g=o*A;arguments.length>7&&void 0!==arguments[7]&&arguments[7]?(a=-o/p,s=-g/p):(a=-(o+A)/p,s=-2*g/p),t[0]=l/c,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=d,t[6]=0,t[7]=0,t[8]=f,t[9]=h,t[10]=a,t[11]=-1,t[12]=0,t[13]=0,t[14]=s,t[15]=0}(this.projectionMatrix,s,s+a,A-o,A,t,this.far,this.clipSpaceNearZ===Ct.ZERO),f.B8(this.projectionMatrixInverse,this.projectionMatrix),this.triggerUpdate(),this}},{key:"setOrthographic",value:function(t,e,n,r,i,A){var o;this.projectionMode=Ae.ORTHOGRAPHIC,this.rright=e,this.left=t,this.top=n,this.bottom=r,this.near=i,this.far=A;var a=(this.rright-this.left)/(2*this.zoom),s=(this.top-this.bottom)/(2*this.zoom),l=(this.rright+this.left)/2,c=(this.top+this.bottom)/2,u=l-a,d=l+a,h=c+s,p=c-s;if(null!==(o=this.view)&&void 0!==o&&o.enabled){var g=(this.rright-this.left)/this.view.fullWidth/this.zoom,m=(this.top-this.bottom)/this.view.fullHeight/this.zoom;d=(u+=g*this.view.offsetX)+g*this.view.width,p=(h-=m*this.view.offsetY)-m*this.view.height}return this.clipSpaceNearZ===Ct.NEGATIVE_ONE?f.v3(this.projectionMatrix,u,d,h,p,i,A):f.W7(this.projectionMatrix,u,d,h,p,i,A),f.B8(this.projectionMatrixInverse,this.projectionMatrix),this._getOrthoMatrix(),this.triggerUpdate(),this}},{key:"setPosition",value:function(t){var e=Kt(t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.position[1],arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.position[2]);return this._setPosition(e),this.setFocalPoint(this.focalPoint),this.triggerUpdate(),this}},{key:"setFocalPoint",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.focalPoint[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.focalPoint[2],r=u.fA(0,1,0);if(this.focalPoint=Kt(t,e,n),this.trackingMode===ie.CINEMATIC){var i=u.Re(u.vt(),this.focalPoint,this.position);t=i[0],e=i[1],n=i[2];var A=u.Bw(i),o=Wt(Math.asin(e/A)),a=90+Wt(Math.atan2(n,t)),s=f.vt();f.Z8(s,s,Gt(a)),f.eL(s,s,Gt(o)),r=u.Z0(u.vt(),[0,1,0],s)}return f.B8(this.matrix,f.t5(f.vt(),this.position,this.focalPoint,r)),this._getAxes(),this._getDistance(),this._getAngles(),this.triggerUpdate(),this}},{key:"getDistance",value:function(){return this.distance}},{key:"getDistanceVector",value:function(){return this.distanceVector}},{key:"setDistance",value:function(t){if(this.distance===t||t<0)return this;this.distance=t,this.distance<ae&&(this.distance=ae),this.dollyingStep=this.distance/100;var e=u.vt(),n=this.forward,r=this.focalPoint;return e[0]=(t=this.distance)*n[0]+r[0],e[1]=t*n[1]+r[1],e[2]=t*n[2]+r[2],this._setPosition(e),this.triggerUpdate(),this}},{key:"setMaxDistance",value:function(t){return this.maxDistance=t,this}},{key:"setMinDistance",value:function(t){return this.minDistance=t,this}},{key:"setAzimuth",value:function(t){return this.azimuth=Dt(t),this.computeMatrix(),this._getAxes(),this.type===re.ORBITING||this.type===re.EXPLORING?this._getPosition():this.type===re.TRACKING&&this._getFocalPoint(),this.triggerUpdate(),this}},{key:"getAzimuth",value:function(){return this.azimuth}},{key:"setElevation",value:function(t){return this.elevation=Dt(t),this.computeMatrix(),this._getAxes(),this.type===re.ORBITING||this.type===re.EXPLORING?this._getPosition():this.type===re.TRACKING&&this._getFocalPoint(),this.triggerUpdate(),this}},{key:"getElevation",value:function(){return this.elevation}},{key:"setRoll",value:function(t){return this.roll=Dt(t),this.computeMatrix(),this._getAxes(),this.type===re.ORBITING||this.type===re.EXPLORING?this._getPosition():this.type===re.TRACKING&&this._getFocalPoint(),this.triggerUpdate(),this}},{key:"getRoll",value:function(){return this.roll}},{key:"_update",value:function(){this._getAxes(),this._getPosition(),this._getDistance(),this._getAngles(),this._getOrthoMatrix(),this.triggerUpdate()}},{key:"computeMatrix",value:function(){var t=g.x8(g.vt(),[0,0,1],Gt(this.roll));f.D_(this.matrix);var e=g.x8(g.vt(),[1,0,0],Gt((this.rotateWorld&&this.type!==re.TRACKING||this.type===re.TRACKING?1:-1)*this.elevation)),n=g.x8(g.vt(),[0,1,0],Gt((this.rotateWorld&&this.type!==re.TRACKING||this.type===re.TRACKING?1:-1)*this.azimuth)),r=g.lw(g.vt(),n,e);r=g.lw(g.vt(),r,t);var i=f.I0(f.vt(),r);this.type===re.ORBITING||this.type===re.EXPLORING?(f.Tl(this.matrix,this.matrix,this.focalPoint),f.lw(this.matrix,this.matrix,i),f.Tl(this.matrix,this.matrix,[0,0,this.distance])):this.type===re.TRACKING&&(f.Tl(this.matrix,this.matrix,this.position),f.lw(this.matrix,this.matrix,i))}},{key:"_setPosition",value:function(t,e,n){this.position=Kt(t,e,n);var r=this.matrix;r[12]=this.position[0],r[13]=this.position[1],r[14]=this.position[2],r[15]=1,this._getOrthoMatrix()}},{key:"_getAxes",value:function(){u.C(this.right,Kt(d.Z0(d.vt(),[1,0,0,0],this.matrix))),u.C(this.up,Kt(d.Z0(d.vt(),[0,1,0,0],this.matrix))),u.C(this.forward,Kt(d.Z0(d.vt(),[0,0,1,0],this.matrix))),u.S8(this.right,this.right),u.S8(this.up,this.up),u.S8(this.forward,this.forward)}},{key:"_getAngles",value:function(){var t=this.distanceVector[0],e=this.distanceVector[1],n=this.distanceVector[2],r=u.Bw(this.distanceVector);if(0===r)return this.elevation=0,void(this.azimuth=0);this.type===re.TRACKING||this.rotateWorld?(this.elevation=Wt(Math.asin(e/r)),this.azimuth=Wt(Math.atan2(-t,-n))):(this.elevation=-Wt(Math.asin(e/r)),this.azimuth=-Wt(Math.atan2(-t,-n)))}},{key:"_getPosition",value:function(){u.C(this.position,Kt(d.Z0(d.vt(),[0,0,0,1],this.matrix))),this._getDistance()}},{key:"_getFocalPoint",value:function(){u.ei(this.distanceVector,[0,0,-this.distance],p.z0(p.vt(),this.matrix)),u.WQ(this.focalPoint,this.position,this.distanceVector),this._getDistance()}},{key:"_getDistance",value:function(){this.distanceVector=u.Re(u.vt(),this.focalPoint,this.position),this.distance=u.Bw(this.distanceVector),this.dollyingStep=this.distance/100}},{key:"_getOrthoMatrix",value:function(){if(this.projectionMode===Ae.ORTHOGRAPHIC){var t=this.position,e=g.x8(g.vt(),[0,0,1],-this.roll*Math.PI/180);f.O7(this.orthoMatrix,e,u.fA((this.rright-this.left)/2-t[0],(this.top-this.bottom)/2-t[1],0),u.fA(this.zoom,this.zoom,1),t)}}},{key:"triggerUpdate",value:function(){if(this.enableUpdate){var t=this.getViewTransform(),e=f.lw(f.vt(),this.getPerspective(),t);this.getFrustum().extractFromVPMatrix(e),this.eventEmitter.emit(oe)}}},{key:"rotate",value:function(t,e,n){throw new Error(Ht)}},{key:"pan",value:function(t,e){throw new Error(Ht)}},{key:"dolly",value:function(t){throw new Error(Ht)}},{key:"createLandmark",value:function(t,e){throw new Error(Ht)}},{key:"gotoLandmark",value:function(t,e){throw new Error(Ht)}},{key:"cancelLandmarkAnimation",value:function(){throw new Error(Ht)}}])}(),le=function(t){return t[t.Standard=0]="Standard",t}({}),ce=function(t){return t[t.ADDED=0]="ADDED",t[t.REMOVED=1]="REMOVED",t[t.Z_INDEX_CHANGED=2]="Z_INDEX_CHANGED",t}({}),ue=u.vt(),de=f.vt(),fe=g.vt();function he(t){if(t.localDirtyFlag){if(0!==t.localSkew[0]||0!==t.localSkew[1]){f.O7(t.localTransform,t.localRotation,t.localPosition,u.fA(1,1,1),t.origin),0===t.localSkew[0]&&0===t.localSkew[1]||(f.D_(de),de[4]=Math.tan(t.localSkew[0]),de[1]=Math.tan(t.localSkew[1]),f.lw(t.localTransform,t.localTransform,de));var e=f.O7(de,g.hZ(fe,0,0,0,1),u.hZ(ue,1,1,1),t.localScale,t.origin);f.lw(t.localTransform,t.localTransform,e)}else{var n=t.localTransform,r=t.localPosition,i=t.localRotation,A=t.localScale,o=t.origin,a=0!==r[0]||0!==r[1]||0!==r[2];1!==i[3]||0!==i[0]||0!==i[1]||0!==i[2]||1!==A[0]||1!==A[1]||1!==A[2]||0!==o[0]||0!==o[1]||0!==o[2]?f.O7(n,i,r,A,o):a?f.kN(n,r):f.D_(n)}t.localDirtyFlag=!1}}var pe={absolutePath:[],hasArc:!1,segments:[],polygons:[],polylines:[],curve:null,totalLength:0,rect:new jt(0,0,0,0)},ge=function(t){return t.COORDINATE="<coordinate>",t.COLOR="<color>",t.PAINT="<paint>",t.NUMBER="<number>",t.ANGLE="<angle>",t.OPACITY_VALUE="<opacity-value>",t.SHADOW_BLUR="<shadow-blur>",t.LENGTH="<length>",t.PERCENTAGE="<percentage>",t.LENGTH_PERCENTAGE="<length> | <percentage>",t.LENGTH_PERCENTAGE_12="[<length> | <percentage>]{1,2}",t.LENGTH_PERCENTAGE_14="[<length> | <percentage>]{1,4}",t.LIST_OF_POINTS="<list-of-points>",t.PATH="<path>",t.FILTER="<filter>",t.Z_INDEX="<z-index>",t.OFFSET_DISTANCE="<offset-distance>",t.DEFINED_PATH="<defined-path>",t.MARKER="<marker>",t.TRANSFORM="<transform>",t.TRANSFORM_ORIGIN="<transform-origin>",t.TEXT="<text>",t.TEXT_TRANSFORM="<text-transform>",t}({});function me(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function ye(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function ve(){}var be=.7,we=1/be,Be="\\s*([+-]?\\d+)\\s*",xe="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Ce="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Ee=/^#([0-9a-f]{3,8})$/,Oe=new RegExp(`^rgb\\(${Be},${Be},${Be}\\)$`),ke=new RegExp(`^rgb\\(${Ce},${Ce},${Ce}\\)$`),Fe=new RegExp(`^rgba\\(${Be},${Be},${Be},${xe}\\)$`),Qe=new RegExp(`^rgba\\(${Ce},${Ce},${Ce},${xe}\\)$`),Me=new RegExp(`^hsl\\(${xe},${Ce},${Ce}\\)$`),Ue=new RegExp(`^hsla\\(${xe},${Ce},${Ce},${xe}\\)$`),Se={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function _e(){return this.rgb().formatHex()}function Ie(){return this.rgb().formatRgb()}function Te(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=Ee.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?Le(e):3===n?new je(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?Pe(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?Pe(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=Oe.exec(t))?new je(e[1],e[2],e[3],1):(e=ke.exec(t))?new je(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=Fe.exec(t))?Pe(e[1],e[2],e[3],e[4]):(e=Qe.exec(t))?Pe(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=Me.exec(t))?ze(e[1],e[2]/100,e[3]/100,1):(e=Ue.exec(t))?ze(e[1],e[2]/100,e[3]/100,e[4]):Se.hasOwnProperty(t)?Le(Se[t]):"transparent"===t?new je(NaN,NaN,NaN,0):null}function Le(t){return new je(t>>16&255,t>>8&255,255&t,1)}function Pe(t,e,n,r){return r<=0&&(t=e=n=NaN),new je(t,e,n,r)}function je(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function He(){return`#${Ke(this.r)}${Ke(this.g)}${Ke(this.b)}`}function Ne(){const t=De(this.opacity);return`${1===t?"rgb(":"rgba("}${Re(this.r)}, ${Re(this.g)}, ${Re(this.b)}${1===t?")":`, ${t})`}`}function De(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function Re(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function Ke(t){return((t=Re(t))<16?"0":"")+t.toString(16)}function ze(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new Ve(t,e,n,r)}function Ge(t){if(t instanceof Ve)return new Ve(t.h,t.s,t.l,t.opacity);if(t instanceof ve||(t=Te(t)),!t)return new Ve;if(t instanceof Ve)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),A=Math.max(e,n,r),o=NaN,a=A-i,s=(A+i)/2;return a?(o=e===A?(n-r)/a+6*(n<r):n===A?(r-e)/a+2:(e-n)/a+4,a/=s<.5?A+i:2-A-i,o*=60):a=s>0&&s<1?0:o,new Ve(o,a,s,t.opacity)}function Ve(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function We(t){return(t=(t||0)%360)<0?t+360:t}function Xe(t){return Math.max(0,Math.min(1,t||0))}function Ye(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}function $e(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){for(var r=arguments.length,i=new Array(r),A=0;A<r;A++)i[A]=arguments[A];var o=e?e.apply(this,i):i[0],a=n.cache;if(a.has(o))return a.get(o);var s=t.apply(this,i);return n.cache=a.set(o,s)||a,s};return n.cache=new($e.Cache||Map),$e.cacheList.push(n.cache),n}me(ve,Te,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:_e,formatHex:_e,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Ge(this).formatHsl()},formatRgb:Ie,toString:Ie}),me(je,function(t,e,n,r){return 1===arguments.length?((i=t)instanceof ve||(i=Te(i)),i?new je((i=i.rgb()).r,i.g,i.b,i.opacity):new je):new je(t,e,n,r??1);var i},ye(ve,{brighter(t){return t=null==t?we:Math.pow(we,t),new je(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=null==t?be:Math.pow(be,t),new je(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new je(Re(this.r),Re(this.g),Re(this.b),De(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:He,formatHex:He,formatHex8:function(){return`#${Ke(this.r)}${Ke(this.g)}${Ke(this.b)}${Ke(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Ne,toString:Ne})),me(Ve,function(t,e,n,r){return 1===arguments.length?Ge(t):new Ve(t,e,n,r??1)},ye(ve,{brighter(t){return t=null==t?we:Math.pow(we,t),new Ve(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?be:Math.pow(be,t),new Ve(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new je(Ye(t>=240?t-240:t+120,i,r),Ye(t,i,r),Ye(t<120?t+240:t-120,i,r),this.opacity)},clamp(){return new Ve(We(this.h),Xe(this.s),Xe(this.l),De(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const t=De(this.opacity);return`${1===t?"hsl(":"hsla("}${We(this.h)}, ${100*Xe(this.s)}%, ${100*Xe(this.l)}%${1===t?")":`, ${t})`}`}})),$e.Cache=Map,$e.cacheList=[],$e.clearCache=function(){$e.cacheList.forEach(function(t){return t.clear()})};var qe=function(t){return t[t.kUnknown=0]="kUnknown",t[t.kNumber=1]="kNumber",t[t.kPercentage=2]="kPercentage",t[t.kEms=3]="kEms",t[t.kPixels=4]="kPixels",t[t.kRems=5]="kRems",t[t.kDegrees=6]="kDegrees",t[t.kRadians=7]="kRadians",t[t.kGradians=8]="kGradians",t[t.kTurns=9]="kTurns",t[t.kMilliseconds=10]="kMilliseconds",t[t.kSeconds=11]="kSeconds",t[t.kInteger=12]="kInteger",t}({}),Ze=function(t){return t[t.kUNumber=0]="kUNumber",t[t.kUPercent=1]="kUPercent",t[t.kULength=2]="kULength",t[t.kUAngle=3]="kUAngle",t[t.kUTime=4]="kUTime",t[t.kUOther=5]="kUOther",t}({}),Je=function(t){return t[t.kYes=0]="kYes",t[t.kNo=1]="kNo",t}({}),tn=function(t){return t[t.kYes=0]="kYes",t[t.kNo=1]="kNo",t}({}),en=[{name:"em",unit_type:qe.kEms},{name:"px",unit_type:qe.kPixels},{name:"deg",unit_type:qe.kDegrees},{name:"rad",unit_type:qe.kRadians},{name:"grad",unit_type:qe.kGradians},{name:"ms",unit_type:qe.kMilliseconds},{name:"s",unit_type:qe.kSeconds},{name:"rem",unit_type:qe.kRems},{name:"turn",unit_type:qe.kTurns}],nn=function(t){return t[t.kUnknownType=0]="kUnknownType",t[t.kUnparsedType=1]="kUnparsedType",t[t.kKeywordType=2]="kKeywordType",t[t.kUnitType=3]="kUnitType",t[t.kSumType=4]="kSumType",t[t.kProductType=5]="kProductType",t[t.kNegateType=6]="kNegateType",t[t.kInvertType=7]="kInvertType",t[t.kMinType=8]="kMinType",t[t.kMaxType=9]="kMaxType",t[t.kClampType=10]="kClampType",t[t.kTransformType=11]="kTransformType",t[t.kPositionType=12]="kPositionType",t[t.kURLImageType=13]="kURLImageType",t[t.kColorType=14]="kColorType",t[t.kUnsupportedColorType=15]="kUnsupportedColorType",t}({}),rn=function(t){var e=1;switch(t){case qe.kPixels:case qe.kDegrees:case qe.kSeconds:break;case qe.kMilliseconds:e=.001;break;case qe.kRadians:e=180/Math.PI;break;case qe.kGradians:e=.9;break;case qe.kTurns:e=360}return e},An=function(t){switch(t){case qe.kNumber:case qe.kInteger:return"";case qe.kPercentage:return"%";case qe.kEms:return"em";case qe.kRems:return"rem";case qe.kPixels:return"px";case qe.kDegrees:return"deg";case qe.kRadians:return"rad";case qe.kGradians:return"grad";case qe.kMilliseconds:return"ms";case qe.kSeconds:return"s";case qe.kTurns:return"turn"}return""},on=function(){return(0,A.A)(function t(){(0,i.A)(this,t)},[{key:"toString",value:function(){return this.buildCSSText(Je.kNo,tn.kNo,"")}},{key:"isNumericValue",value:function(){return this.getType()>=nn.kUnitType&&this.getType()<=nn.kClampType}}],[{key:"isAngle",value:function(t){return t===qe.kDegrees||t===qe.kRadians||t===qe.kGradians||t===qe.kTurns}},{key:"isLength",value:function(t){return t>=qe.kEms&&t<qe.kDegrees}},{key:"isRelativeUnit",value:function(t){return t===qe.kPercentage||t===qe.kEms||t===qe.kRems}},{key:"isTime",value:function(t){return t===qe.kSeconds||t===qe.kMilliseconds}}])}(),an=function(t){function e(t){var n;return(0,i.A)(this,e),(n=(0,a.A)(this,e)).colorSpace=t,n}return(0,s.A)(e,t),(0,A.A)(e,[{key:"getType",value:function(){return nn.kColorType}},{key:"to",value:function(t){return this}}])}(on),sn=function(t){return t[t.Constant=0]="Constant",t[t.LinearGradient=1]="LinearGradient",t[t.RadialGradient=2]="RadialGradient",t}({}),ln=function(t){function e(t,n){var r;return(0,i.A)(this,e),(r=(0,a.A)(this,e)).type=t,r.value=n,r}return(0,s.A)(e,t),(0,A.A)(e,[{key:"clone",value:function(){return new e(this.type,this.value)}},{key:"buildCSSText",value:function(t,e,n){return n}},{key:"getType",value:function(){return nn.kColorType}}])}(on),cn=function(t){function e(t){var n;return(0,i.A)(this,e),(n=(0,a.A)(this,e)).value=t,n}return(0,s.A)(e,t),(0,A.A)(e,[{key:"clone",value:function(){return new e(this.value)}},{key:"getType",value:function(){return nn.kKeywordType}},{key:"buildCSSText",value:function(t,e,n){return n+this.value}}])}(on),un=function(t){return function(t){switch(t){case Ze.kUNumber:return qe.kNumber;case Ze.kULength:return qe.kPixels;case Ze.kUPercent:return qe.kPercentage;case Ze.kUTime:return qe.kSeconds;case Ze.kUAngle:return qe.kDegrees;default:return qe.kUnknown}}(function(t){switch(t){case qe.kNumber:case qe.kInteger:return Ze.kUNumber;case qe.kPercentage:return Ze.kUPercent;case qe.kPixels:return Ze.kULength;case qe.kMilliseconds:case qe.kSeconds:return Ze.kUTime;case qe.kDegrees:case qe.kRadians:case qe.kGradians:case qe.kTurns:return Ze.kUAngle;default:return Ze.kUOther}}(t))},dn=function(t){function e(t){var n,r,A,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:qe.kNumber;return(0,i.A)(this,e),n=(0,a.A)(this,e),r="string"==typeof o?(A=o)?"number"===A?qe.kNumber:"percent"===A||"%"===A?qe.kPercentage:function(t){return en.find(function(e){return e.name===t}).unit_type}(A):qe.kUnknown:o,n.unit=r,n.value=t,n}return(0,s.A)(e,t),(0,A.A)(e,[{key:"clone",value:function(){return new e(this.value,this.unit)}},{key:"equals",value:function(t){return this.value===t.value&&this.unit===t.unit}},{key:"getType",value:function(){return nn.kUnitType}},{key:"convertTo",value:function(t){if(this.unit===t)return new e(this.value,this.unit);var n=un(this.unit);if(n!==un(t)||n===qe.kUnknown)return null;var r=rn(this.unit)/rn(t);return new e(this.value*r,t)}},{key:"buildCSSText",value:function(t,e,n){var r;switch(this.unit){case qe.kUnknown:break;case qe.kInteger:r=Number(this.value).toFixed(0);break;case qe.kNumber:case qe.kPercentage:case qe.kEms:case qe.kRems:case qe.kPixels:case qe.kDegrees:case qe.kRadians:case qe.kGradians:case qe.kMilliseconds:case qe.kSeconds:case qe.kTurns:var i=this.value,A=An(this.unit);if(i<-999999||i>999999){var o=An(this.unit);r=!Number.isFinite(i)||Number.isNaN(i)?function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return(Number.isFinite(t)?"NaN":t>0?"infinity":"-infinity")+e}(i,o):i+(o||"")}else r="".concat(i).concat(A)}return n+r}}])}(on),fn=new dn(0,"px");new dn(1,"px");var hn=new dn(0,"deg"),pn=function(t){function e(t,n,r){var A,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,s=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return(0,i.A)(this,e),(A=(0,a.A)(this,e,["rgb"])).r=t,A.g=n,A.b=r,A.alpha=o,A.isNone=s,A}return(0,s.A)(e,t),(0,A.A)(e,[{key:"clone",value:function(){return new e(this.r,this.g,this.b,this.alpha)}},{key:"buildCSSText",value:function(t,e,n){return"".concat(n,"rgba(").concat(this.r,",").concat(this.g,",").concat(this.b,",").concat(this.alpha,")")}}])}(an),gn=new cn("unset"),mn={"":gn,unset:gn,initial:new cn("initial"),inherit:new cn("inherit")},yn=new pn(0,0,0,0,!0),vn=new pn(0,0,0,0),bn=$e(function(t,e,n,r){return new pn(t,e,n,r)},function(t,e,n,r){return"rgba(".concat(t,",").concat(e,",").concat(n,",").concat(r,")")}),wn=function(t){return new dn(t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:qe.kNumber)};function Bn(t){var e=t.type,n=t.value;return"hex"===e?"#".concat(n):"literal"===e?n:"rgb"===e?"rgb(".concat(n.join(","),")"):"rgba(".concat(n.join(","),")")}new dn(50,"%");var xn=function(){var t=/^(linear\-gradient)/i,e=/^(repeating\-linear\-gradient)/i,n=/^(radial\-gradient)/i,r=/^(repeating\-radial\-gradient)/i,i=/^(conic\-gradient)/i,A=/^to (left (top|bottom)|right (top|bottom)|top (left|right)|bottom (left|right)|left|right|top|bottom)/i,o=/^(closest\-side|closest\-corner|farthest\-side|farthest\-corner|contain|cover)/,a=/^(left|center|right|top|bottom)/i,s=/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))px/,l=/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))\%/,c=/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))em/,u=/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))deg/,d=/^\(/,f=/^\)/,h=/^,/,p=/^\#([0-9a-fA-F]+)/,g=/^([a-zA-Z]+)/,m=/^rgb/i,y=/^rgba/i,v=/^(([0-9]*\.[0-9]+)|([0-9]+\.?))/,b="";function w(t){throw new Error("".concat(b,": ").concat(t))}function B(){return x("linear-gradient",t,E)||x("repeating-linear-gradient",e,E)||x("radial-gradient",n,O)||x("repeating-radial-gradient",r,O)||x("conic-gradient",i,O)}function x(t,e,n){return C(e,function(e){var r=n();return r&&(P(h)||w("Missing comma before color stops")),{type:t,orientation:r,colorStops:U(S)}})}function C(t,e){var n=P(t);if(n){P(d)||w("Missing (");var r=e(n);return P(f)||w("Missing )"),r}}function E(){return L("directional",A,1)||L("angular",u,1)}function O(){var t,e,n=k();return n&&((t=[]).push(n),e=b,P(h)&&((n=k())?t.push(n):b=e)),t}function k(){var t,e,n=((e=L("shape",/^(circle)/i,0))&&(e.style=T()||F()),e||((t=L("shape",/^(ellipse)/i,0))&&(t.style=I()||F()),t));if(n)n.at=Q();else{var r=F();if(r){n=r;var i=Q();i&&(n.at=i)}else{var A=M();A&&(n={type:"default-radial",at:A})}}return n}function F(){return L("extent-keyword",o,1)}function Q(){if(L("position",/^at/,0)){var t=M();return t||w("Missing positioning value"),t}}function M(){var t={x:I(),y:I()};if(t.x||t.y)return{type:"position",value:t}}function U(t){var e=t(),n=[];if(e)for(n.push(e);P(h);)(e=t())?n.push(e):w("One extra comma");return n}function S(){var t=L("hex",p,1)||C(y,function(){return{type:"rgba",value:U(_)}})||C(m,function(){return{type:"rgb",value:U(_)}})||L("literal",g,0);return t||w("Expected color definition"),t.length=I(),t}function _(){return P(v)[1]}function I(){return L("%",l,1)||L("position-keyword",a,1)||T()}function T(){return L("px",s,1)||L("em",c,1)}function L(t,e,n){var r=P(e);if(r)return{type:t,value:r[n]}}function P(t){var e=/^[\n\r\t\s]+/.exec(b);e&&j(e[0].length);var n=t.exec(b);return n&&j(n[0].length),n}function j(t){b=b.substring(t)}return function(t){return b=t,e=U(B),b.length>0&&w("Invalid input not EOF"),e;var e}}(),Cn=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,En=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,On=/^p\s*\(\s*([axyn])\s*\)\s*(.*)/i,kn=/[\d.]+:(#[^\s]+|[^\)]+\))/gi,Fn={left:180,top:-90,bottom:90,right:0,"left top":225,"top left":225,"left bottom":135,"bottom left":135,"right top":-45,"top right":-45,"right bottom":45,"bottom right":45},Qn=$e(function(t){var e;return e="angular"===t.type?Number(t.value):Fn[t.value]||0,wn(e,"deg")}),Mn=$e(function(t){var e=50,n=50,r="%",i="%";if("position"===(null==t?void 0:t.type)){var A=t.value,o=A.x,a=A.y;"position-keyword"===(null==o?void 0:o.type)&&("left"===o.value?e=0:"center"===o.value?e=50:"right"===o.value?e=100:"top"===o.value?n=0:"bottom"===o.value&&(n=100)),"position-keyword"===(null==a?void 0:a.type)&&("left"===a.value?e=0:"center"===a.value?n=50:"right"===a.value?e=100:"top"===a.value?n=0:"bottom"===a.value&&(n=100)),"px"!==(null==o?void 0:o.type)&&"%"!==(null==o?void 0:o.type)&&"em"!==(null==o?void 0:o.type)||(r=null==o?void 0:o.type,e=Number(o.value)),"px"!==(null==a?void 0:a.type)&&"%"!==(null==a?void 0:a.type)&&"em"!==(null==a?void 0:a.type)||(i=null==a?void 0:a.type,n=Number(a.value))}return{cx:wn(e,r),cy:wn(n,i)}}),Un=$e(function(t){if(t.indexOf("linear")>-1||t.indexOf("radial")>-1)return xn(t).map(function(t){var e=t.type,n=t.orientation,r=t.colorStops;!function(t){var e,n,r=t.length;t[r-1].length=null!==(e=t[r-1].length)&&void 0!==e?e:{type:"%",value:"100"},r>1&&(t[0].length=null!==(n=t[0].length)&&void 0!==n?n:{type:"%",value:"0"});for(var i=0,A=Number(t[0].length.value),o=1;o<r;o++){var a,s=null===(a=t[o].length)||void 0===a?void 0:a.value;if(!(0,b.A)(s)&&!(0,b.A)(A)){for(var l=1;l<o-i;l++)t[i+l].length={type:"%",value:"".concat(A+(Number(s)-A)*l/(o-i))};i=o,A=Number(s)}}}(r);var i,A=r.map(function(t){return{offset:wn(Number(t.length.value),"%"),color:Bn(t)}});if("linear-gradient"===e)return new ln(sn.LinearGradient,{angle:n?Qn(n):hn,steps:A});if("radial-gradient"===e&&(n||(n=[{type:"shape",value:"circle"}]),"shape"===n[0].type&&"circle"===n[0].value)){var o,a=Mn(n[0].at),s=a.cx,l=a.cy;if(n[0].style){var c=n[0].style,u=c.type,d=c.value;"extent-keyword"===u?(mn[i=d]||(mn[i]=new cn(i)),o=mn[i]):o=wn(d,u)}return new ln(sn.RadialGradient,{cx:s,cy:l,size:o,steps:A})}});var e=t[0];if("("===t[1]||"("===t[2])if("l"===e){var n=Cn.exec(t);if(n){var r,i=(null===(r=n[2].match(kn))||void 0===r?void 0:r.map(function(t){return t.split(":")}))||[];return[new ln(sn.LinearGradient,{angle:wn(parseFloat(n[1]),"deg"),steps:i.map(function(t){var e=(0,l.A)(t,2),n=e[1];return{offset:wn(100*Number(e[0]),"%"),color:n}})})]}}else if("r"===e){var A=function(t){var e=En.exec(t);if(e){var n,r=(null===(n=e[4].match(kn))||void 0===n?void 0:n.map(function(t){return t.split(":")}))||[];return{cx:wn(50,"%"),cy:wn(50,"%"),steps:r.map(function(t){var e=(0,l.A)(t,2),n=e[1];return{offset:wn(100*Number(e[0]),"%"),color:n}})}}return null}(t);if(A){if(!(0,w.A)(A))return[new ln(sn.RadialGradient,A)];t=A}}else if("p"===e)return function(t){var e=On.exec(t);if(e){var n=e[1],r=e[2];switch(n){case"a":n="repeat";break;case"x":n="repeat-x";break;case"y":n="repeat-y";break;default:n="no-repeat"}return{image:r,repetition:n}}return null}(t)});function Sn(t){return t&&!!t.image}function _n(t){return t&&!(0,b.A)(t.r)&&!(0,b.A)(t.g)&&!(0,b.A)(t.b)}var In=$e(function(t){if(Sn(t))return(0,r.A)({repetition:"repeat"},t);if((0,b.A)(t)&&(t=""),"transparent"===t)return vn;if("currentColor"===t)t="black";else if("none"===t)return yn;var e=Un(t);if(e)return e;var n=Te(t),i=[0,0,0,0];return null!==n&&(i[0]=n.r||0,i[1]=n.g||0,i[2]=n.b||0,i[3]=n.opacity),bn.apply(void 0,i)});function Tn(t,e){if(_n(t)&&_n(e))return[[Number(t.r),Number(t.g),Number(t.b),Number(t.alpha)],[Number(e.r),Number(e.g),Number(e.b),Number(e.alpha)],function(t){var e=t.slice();if(e[3])for(var n=0;n<3;n++)e[n]=Math.round((0,B.A)(e[n],0,255));return e[3]=(0,B.A)(e[3],0,1),"rgba(".concat(e.join(","),")")}]}function Ln(t,e){if((0,b.A)(e))return wn(0,"px");if(e="".concat(e).trim().toLowerCase(),isFinite(Number(e))){if("px".search(t)>=0)return wn(Number(e),"px");if("deg".search(t)>=0)return wn(Number(e),"deg")}var n=[];e=e.replace(t,function(t){return n.push(t),"U".concat(t)});var r="U(".concat(t.source,")");return n.map(function(t){return wn(Number(e.replace(new RegExp("U".concat(t),"g"),"").replace(new RegExp(r,"g"),"*0")),t)})[0]}var Pn=function(t){return Ln(new RegExp("px","g"),t)},jn=$e(Pn);$e(function(t){return Ln(new RegExp("%","g"),t)});var Hn=function(t){return(0,y.A)(t)||isFinite(Number(t))?wn(Number(t)||0,"px"):Ln(new RegExp("px|%|em|rem","g"),t)},Nn=$e(Hn),Dn=function(t){return Ln(new RegExp("deg|rad|grad|turn","g"),t)},Rn=$e(Dn);function Kn(t,e,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,A="",o=t.value||0,a=e.value||0,s=un(t.unit),l=t.convertTo(s),c=e.convertTo(s);return l&&c?(o=l.value,a=c.value,A=An(t.unit)):(dn.isLength(t.unit)||dn.isLength(e.unit))&&(o=Vn(t,i,n),a=Vn(e,i,n),A="px"),[o,a,function(t){return r&&(t=Math.max(t,0)),t+A}]}function zn(t){var e=0;return t.unit===qe.kDegrees?e=t.value:t.unit===qe.kRadians?e=Wt(Number(t.value)):t.unit===qe.kTurns?e=360*Number(t.value):t.value&&(e=t.value),e}function Gn(t,e){var n;return Array.isArray(t)?n=t.map(function(t){return Number(t)}):(0,w.A)(t)?n=t.split(" ").map(function(t){return Number(t)}):(0,y.A)(t)&&(n=[t]),2===e?1===n.length?[n[0],n[0]]:[n[0],n[1]]:4===e?1===n.length?[n[0],n[0],n[0],n[0]]:2===n.length?[n[0],n[1],n[0],n[1]]:3===n.length?[n[0],n[1],n[2],n[1]]:[n[0],n[1],n[2],n[3]]:"even"===e&&n.length%2==1?[].concat((0,o.A)(n),(0,o.A)(n)):n}function Vn(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(t.unit===qe.kPixels)return Number(t.value);if(t.unit===qe.kPercentage&&n){var i=n.nodeName===xt.GROUP?n.getLocalBounds():n.getGeometryBounds();return(r?i.min[e]:0)+t.value/100*i.halfExtents[e]*2}return 0}var Wn=["blur","brightness","drop-shadow","contrast","grayscale","sepia","saturate","hue-rotate","invert"];function Xn(t){return t.toString()}var Yn=function(t){return"number"==typeof t?wn(t):/^\s*[-+]?(\d*\.)?\d+\s*$/.test(t)?wn(Number(t)):wn(0)},$n=$e(Yn);function qn(t,e){return[t,e,Xn]}function Zn(t,e){return function(n,r){return[n,r,function(n){return Xn((0,B.A)(n,t,e))}]}}function Jn(t,e){if(t.length===e.length)return[t,e,function(t){return t}]}function tr(t){return 0===t.parsedStyle.d.totalLength&&(t.parsedStyle.d.totalLength=$(t.parsedStyle.d.absolutePath,void 0,(0,x.Cl)((0,x.Cl)({},void 0),{bbox:!1,length:!0})).length),t.parsedStyle.d.totalLength}function er(t,e){return t[0]===e[0]&&t[1]===e[1]}function nr(t,e){var n=t.prePoint,r=t.currentPoint,i=t.nextPoint,A=Math.pow(r[0]-n[0],2)+Math.pow(r[1]-n[1],2),o=Math.pow(r[0]-i[0],2)+Math.pow(r[1]-i[1],2),a=Math.pow(n[0]-i[0],2)+Math.pow(n[1]-i[1],2),s=Math.acos((A+o-a)/(2*Math.sqrt(A)*Math.sqrt(o)));if(!s||0===Math.sin(s)||(0,J.A)(s,0))return{xExtra:0,yExtra:0};var l=Math.abs(Math.atan2(i[1]-r[1],i[0]-r[0])),c=Math.abs(Math.atan2(i[0]-r[0],i[1]-r[1]));return l=l>Math.PI/2?Math.PI-l:l,c=c>Math.PI/2?Math.PI-c:c,{xExtra:Math.cos(s/2-l)*(e/2*(1/Math.sin(s/2)))-e/2||0,yExtra:Math.cos(c-s/2)*(e/2*(1/Math.sin(s/2)))-e/2||0}}function rr(t,e){return[e[0]+(e[0]-t[0]),e[1]+(e[1]-t[1])]}$e(function(t){return(0,w.A)(t)?t.split(" ").map($n):t.map($n)});var ir=function(t,e){var n=t.x*e.x+t.y*e.y,r=Math.sqrt((Math.pow(t.x,2)+Math.pow(t.y,2))*(Math.pow(e.x,2)+Math.pow(e.y,2)));return(t.x*e.y-t.y*e.x<0?-1:1)*Math.acos(n/r)},Ar=function(t,e,n,r,i,A,o,a){e=Math.abs(e),n=Math.abs(n);var s=Gt(r=tt(r,360));if(t.x===o.x&&t.y===o.y)return{x:t.x,y:t.y,ellipticalArcAngle:0};if(0===e||0===n)return{x:0,y:0,ellipticalArcAngle:0};var l=(t.x-o.x)/2,c=(t.y-o.y)/2,u={x:Math.cos(s)*l+Math.sin(s)*c,y:-Math.sin(s)*l+Math.cos(s)*c},d=Math.pow(u.x,2)/Math.pow(e,2)+Math.pow(u.y,2)/Math.pow(n,2);d>1&&(e*=Math.sqrt(d),n*=Math.sqrt(d));var f=(Math.pow(e,2)*Math.pow(n,2)-Math.pow(e,2)*Math.pow(u.y,2)-Math.pow(n,2)*Math.pow(u.x,2))/(Math.pow(e,2)*Math.pow(u.y,2)+Math.pow(n,2)*Math.pow(u.x,2));f=f<0?0:f;var h=(i!==A?1:-1)*Math.sqrt(f),p=h*(e*u.y/n),g=h*(-n*u.x/e),m={x:Math.cos(s)*p-Math.sin(s)*g+(t.x+o.x)/2,y:Math.sin(s)*p+Math.cos(s)*g+(t.y+o.y)/2},y={x:(u.x-p)/e,y:(u.y-g)/n},v=ir({x:1,y:0},y),b=ir(y,{x:(-u.x-p)/e,y:(-u.y-g)/n});!A&&b>0?b-=2*Math.PI:A&&b<0&&(b+=2*Math.PI);var w=v+(b%=2*Math.PI)*a,B=e*Math.cos(w),x=n*Math.sin(w);return{x:Math.cos(s)*B-Math.sin(s)*x+m.x,y:Math.sin(s)*B+Math.cos(s)*x+m.y,ellipticalArcStartAngle:v,ellipticalArcEndAngle:v+b,ellipticalArcAngle:w,ellipticalArcCenter:m,resultantRx:e,resultantRy:n}};function or(t,e){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=t.arcParams,i=r.rx,A=void 0===i?0:i,o=r.ry,a=void 0===o?0:o,s=r.xRotation,l=r.arcFlag,c=r.sweepFlag,u=Ar({x:t.prePoint[0],y:t.prePoint[1]},A,a,s,!!l,!!c,{x:t.currentPoint[0],y:t.currentPoint[1]},e),d=Ar({x:t.prePoint[0],y:t.prePoint[1]},A,a,s,!!l,!!c,{x:t.currentPoint[0],y:t.currentPoint[1]},n?e+.005:e-.005),f=d.x-u.x,h=d.y-u.y,p=Math.sqrt(f*f+h*h);return{x:-f/p,y:-h/p}}function ar(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function sr(t,e){return ar(t)*ar(e)?(t[0]*e[0]+t[1]*e[1])/(ar(t)*ar(e)):1}function lr(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(sr(t,e))}function cr(t,e){var n=e[1],r=e[2],i=tt(Gt(e[3]),2*Math.PI),A=e[4],o=e[5],a=t[0],s=t[1],l=e[6],c=e[7],u=Math.cos(i)*(a-l)/2+Math.sin(i)*(s-c)/2,d=-1*Math.sin(i)*(a-l)/2+Math.cos(i)*(s-c)/2,f=u*u/(n*n)+d*d/(r*r);f>1&&(n*=Math.sqrt(f),r*=Math.sqrt(f));var h=n*n*(d*d)+r*r*(u*u),p=h?Math.sqrt((n*n*(r*r)-h)/h):1;A===o&&(p*=-1),isNaN(p)&&(p=0);var g=r?p*n*d/r:0,m=n?p*-r*u/n:0,y=(a+l)/2+Math.cos(i)*g-Math.sin(i)*m,v=(s+c)/2+Math.sin(i)*g+Math.cos(i)*m,b=[(u-g)/n,(d-m)/r],w=[(-1*u-g)/n,(-1*d-m)/r],B=lr([1,0],b),x=lr(b,w);return sr(b,w)<=-1&&(x=Math.PI),sr(b,w)>=1&&(x=0),0===o&&x>0&&(x-=2*Math.PI),1===o&&x<0&&(x+=2*Math.PI),{cx:y,cy:v,rx:er(t,[l,c])?0:n,ry:er(t,[l,c])?0:r,startAngle:B,endAngle:B+x,xRotation:i,arcFlag:A,sweepFlag:o}}function ur(t,e,n,r){var i=(-1+Math.sqrt(2))/3*4,A=t*i,o=e*i,a=n-t,s=n+t,l=r-e,c=r+e;return[["M",a,r],["C",a,r-o,n-A,l,n,l],["C",n+A,l,s,r-o,s,r],["C",s,r+o,n+A,c,n,c],["C",n-A,c,a,r+o,a,r],["Z"]]}function dr(t){var e,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.getLocalTransform(),i=[];switch(t.nodeName){case xt.LINE:var A=t.parsedStyle,a=A.x1,s=A.y1,c=A.x2,d=A.y2;i=[["M",void 0===a?0:a,void 0===s?0:s],["L",void 0===c?0:c,void 0===d?0:d]];break;case xt.CIRCLE:var f=t.parsedStyle,h=f.r,p=void 0===h?0:h,g=f.cx,m=f.cy;i=ur(p,p,void 0===g?0:g,void 0===m?0:m);break;case xt.ELLIPSE:var y=t.parsedStyle,v=y.rx,b=y.ry,w=y.cx,x=y.cy;i=ur(void 0===v?0:v,void 0===b?0:b,void 0===w?0:w,void 0===x?0:x);break;case xt.POLYLINE:case xt.POLYGON:e=t.nodeName===xt.POLYGON,n=t.parsedStyle.points.points.map(function(t,e){return[0===e?"M":"L",t[0],t[1]]}),e&&n.push(["Z"]),i=n;break;case xt.RECT:var C=t.parsedStyle,E=C.width,O=void 0===E?0:E,k=C.height,F=void 0===k?0:k,Q=C.x,M=void 0===Q?0:Q,U=C.y,S=void 0===U?0:U,_=C.radius,I=_&&_.some(function(t){return 0!==t});i=function(t,e,n,r,i){if(i){var A=(0,l.A)(i,4),o=A[0],a=A[1],s=A[2],c=A[3],u=t>0?1:-1,d=e>0?1:-1,f=u+d!==0?1:0;return[["M",u*o+n,r],["L",t-u*a+n,r],a?["A",a,a,0,0,f,t+n,d*a+r]:null,["L",t+n,e-d*s+r],s?["A",s,s,0,0,f,t+n-u*s,e+r]:null,["L",n+u*c,e+r],c?["A",c,c,0,0,f,n,e+r-d*c]:null,["L",n,d*o+r],o?["A",o,o,0,0,f,u*o+n,r]:null,["Z"]].filter(function(t){return t})}return[["M",n,r],["L",n+t,r],["L",n+t,r+e],["L",n,r+e],["Z"]]}(O,F,M,S,I&&_.map(function(t){return(0,B.A)(t,0,Math.min(Math.abs(O)/2,Math.abs(F)/2))}));break;case xt.PATH:i=(0,o.A)(t.parsedStyle.d.absolutePath)}if(i.length)return function(t,e,n){return t.reduce(function(t,e){var r="";if("M"===e[0]||"L"===e[0]){var i=u.fA(e[1],e[2],0);n&&u.Z0(i,i,n),r="".concat(e[0]).concat(i[0],",").concat(i[1])}else if("Z"===e[0])r=e[0];else if("C"===e[0]){var A=u.fA(e[1],e[2],0),o=u.fA(e[3],e[4],0),a=u.fA(e[5],e[6],0);n&&(u.Z0(A,A,n),u.Z0(o,o,n),u.Z0(a,a,n)),r="".concat(e[0]).concat(A[0],",").concat(A[1],",").concat(o[0],",").concat(o[1],",").concat(a[0],",").concat(a[1])}else if("A"===e[0]){var s=u.fA(e[6],e[7],0);n&&u.Z0(s,s,n),r="".concat(e[0]).concat(e[1],",").concat(e[2],",").concat(e[3],",").concat(e[4],",").concat(e[5],",").concat(s[0],",").concat(s[1])}else if("Q"===e[0]){var l=u.fA(e[1],e[2],0),c=u.fA(e[3],e[4],0);n&&(u.Z0(l,l,n),u.Z0(c,c,n)),r="".concat(e[0]).concat(e[1],",").concat(e[2],",").concat(e[3],",").concat(e[4],"}")}return t+r},"")}(i,0,r)}var fr=function(t){if(""===t||Array.isArray(t)&&0===t.length)return{absolutePath:[],hasArc:!1,segments:[],polygons:[],polylines:[],curve:null,totalLength:0,rect:{x:0,y:0,width:0,height:0}};var e;try{e=N(t)}catch(n){e=N(""),console.error("[g]: Invalid SVG Path definition: ".concat(t))}!function(t){for(var e=0;e<t.length;e++){var n=t[e-1],r=t[e];if("M"===r[0]&&n){var i=n[0],A=void 0;"L"===i||"M"===i?A=[n[1],n[2]]:"C"!==i&&"A"!==i&&"Q"!==i||(A=[n[n.length-2],n[n.length-1]]),A&&er([r[1],r[2]],A)&&(t.splice(e,1),e--)}}}(e);var n=function(t){for(var e=!1,n=t.length,r=0;r<n;r++){var i=t[r][0];if("C"===i||"A"===i||"Q"===i){e=!0;break}}return e}(e),r=function(t){for(var e=[],n=[],r=[],i=0;i<t.length;i++){var A=t[i],o=A[0];"M"===o?(r.length&&(n.push(r),r=[]),r.push([A[1],A[2]])):"Z"===o?r.length&&(e.push(r),r=[]):r.push([A[1],A[2]])}return r.length>0&&n.push(r),{polygons:e,polylines:n}}(e),i=r.polygons,A=r.polylines,o=function(t){for(var e=[],n=null,r=null,i=null,A=0,o=t.length,a=0;a<o;a++){var s=t[a];r=t[a+1];var l=s[0],c={command:l,prePoint:n,params:s,startTangent:null,endTangent:null,currentPoint:null,nextPoint:null,arcParams:null,box:null,cubicParams:null};switch(l){case"M":i=[s[1],s[2]],A=a;break;case"A":var u=cr(n,s);c.arcParams=u}if("Z"===l)n=i,r=t[A+1];else{var d=s.length;n=[s[d-2],s[d-1]]}r&&"Z"===r[0]&&(r=t[A],e[A]&&(e[A].prePoint=n)),c.currentPoint=n,e[A]&&er(n,e[A].currentPoint)&&(e[A].prePoint=c.prePoint),c.nextPoint=r?[r[r.length-2],r[r.length-1]]:null;var f=c.prePoint;if(["L","H","V"].includes(l))c.startTangent=[f[0]-n[0],f[1]-n[1]],c.endTangent=[n[0]-f[0],n[1]-f[1]];else if("Q"===l){var h=[s[1],s[2]];c.startTangent=[f[0]-h[0],f[1]-h[1]],c.endTangent=[n[0]-h[0],n[1]-h[1]]}else if("T"===l){var p=e[a-1],g=rr(p.currentPoint,f);"Q"===p.command?(c.command="Q",c.startTangent=[f[0]-g[0],f[1]-g[1]],c.endTangent=[n[0]-g[0],n[1]-g[1]]):(c.command="TL",c.startTangent=[f[0]-n[0],f[1]-n[1]],c.endTangent=[n[0]-f[0],n[1]-f[1]])}else if("C"===l){var m=[s[1],s[2]],y=[s[3],s[4]];c.startTangent=[f[0]-m[0],f[1]-m[1]],c.endTangent=[n[0]-y[0],n[1]-y[1]],0===c.startTangent[0]&&0===c.startTangent[1]&&(c.startTangent=[m[0]-y[0],m[1]-y[1]]),0===c.endTangent[0]&&0===c.endTangent[1]&&(c.endTangent=[y[0]-m[0],y[1]-m[1]])}else if("S"===l){var v=e[a-1],b=rr(v.currentPoint,f),w=[s[1],s[2]];"C"===v.command?(c.command="C",c.startTangent=[f[0]-b[0],f[1]-b[1]],c.endTangent=[n[0]-w[0],n[1]-w[1]]):(c.command="SQ",c.startTangent=[f[0]-w[0],f[1]-w[1]],c.endTangent=[n[0]-w[0],n[1]-w[1]])}else if("A"===l){var B=or(c,0),x=B.x,C=B.y,E=or(c,1,!1),O=E.x,k=E.y;c.startTangent=[x,C],c.endTangent=[O,k]}e.push(c)}return e}(e),a=function(t){for(var e=[],n=[],r=[],i=0;i<t.length;i++){var A=t[i],o=A.currentPoint,a=A.params,s=A.prePoint,l=void 0;switch(A.command){case"Q":l=(0,yt.d9)(s[0],s[1],a[1],a[2],a[3],a[4]);break;case"C":l=(0,yt.oe)(s[0],s[1],a[1],a[2],a[3],a[4],a[5],a[6]);break;case"A":var c=A.arcParams;l=(0,yt.kF)(c.cx,c.cy,c.rx,c.ry,c.xRotation,c.startAngle,c.endAngle);break;default:e.push(o[0]),n.push(o[1])}l&&(A.box=l,e.push(l.x,l.x+l.width),n.push(l.y,l.y+l.height))}e=e.filter(function(t){return!Number.isNaN(t)&&t!==1/0&&t!==-1/0}),n=n.filter(function(t){return!Number.isNaN(t)&&t!==1/0&&t!==-1/0});var u=(0,q.A)(e),d=(0,q.A)(n),f=(0,Z.A)(e),h=(0,Z.A)(n);if(0===r.length)return{x:u,y:d,width:f-u,height:h-d};for(var p=0;p<r.length;p++){var g=r[p],m=g.currentPoint;m[0]===u?u-=nr(g,0).xExtra:m[0]===f&&(f+=nr(g,0).xExtra),m[1]===d?d-=nr(g,0).yExtra:m[1]===h&&(h+=nr(g,0).yExtra)}return{x:u,y:d,width:f-u,height:h-d}}(o),s=a.x,l=a.y,c=a.width,u=a.height;return{absolutePath:e,hasArc:n,segments:o,polygons:i,polylines:A,totalLength:0,rect:{x:Number.isFinite(s)?s:0,y:Number.isFinite(l)?l:0,width:Number.isFinite(c)?c:0,height:Number.isFinite(u)?u:0}}},hr=$e(fr);function pr(t){return(0,w.A)(t)?hr(t):fr(t)}function gr(t,e,n){var r=t.curve,i=e.curve;r&&0!==r.length||(r=At(t.absolutePath,!1),t.curve=r),i&&0!==i.length||(i=At(e.absolutePath,!1),e.curve=i);var A=[r,i];r.length!==i.length&&(A=at(r,i));var o,a,s,l,c,u,d,f,h=st(A[0])!==st(A[1])?(a=(o=A[0]).slice(1).map(function(t,e,n){return e?n[e-1].slice(-2).concat(t.slice(1)):o[0].slice(1).concat(t.slice(1))}).map(function(t){return t.map(function(e,n){return t[t.length-n-2*(1-n%2)]})}).reverse(),[["M"].concat(a[0].slice(0,2))].concat(a.map(function(t){return["C"].concat(t.slice(2))}))):A[0].map(function(t){return Array.isArray(t)?[].concat(t):t});return[h,(s=A[1],l=h,c=s.length-1,u=[],d=0,f=function(t){var e=t.length,n=e-1;return t.map(function(r,i){return t.map(function(r,A){var o=i+A;return 0===A||t[o]&&"M"===t[o][0]?["M"].concat(t[o].slice(-2)):(o>=e&&(o-=n),t[o])})})}(s),f.forEach(function(t,e){s.slice(1).forEach(function(t,n){d+=(0,v.F)(s[(e+n)%c].slice(-2),l[n%c].slice(-2))}),u[e]=d,d=0}),f[u.indexOf(Math.min.apply(null,u))]),function(t){return t}]}function mr(t,e){return[t.points,e.points,function(t){return t}]}var yr=null,vr=/\s*(\w+)\(([^)]*)\)/g;function br(t){return function(e){var n=0;return t.map(function(t){return t===yr?e[n++]:t})}}function wr(t){return t}var Br={matrix:["NNNNNN",[yr,yr,0,0,yr,yr,0,0,0,0,1,0,yr,yr,0,1],wr],matrix3d:["NNNNNNNNNNNNNNNN",wr],rotate:["A"],rotateX:["A"],rotateY:["A"],rotateZ:["A"],rotate3d:["NNNA"],perspective:["L"],scale:["Nn",br([yr,yr,new dn(1)]),wr],scaleX:["N",br([yr,new dn(1),new dn(1)]),br([yr,new dn(1)])],scaleY:["N",br([new dn(1),yr,new dn(1)]),br([new dn(1),yr])],scaleZ:["N",br([new dn(1),new dn(1),yr])],scale3d:["NNN",wr],skew:["Aa",null,wr],skewX:["A",null,br([yr,hn])],skewY:["A",null,br([hn,yr])],translate:["Tt",br([yr,yr,fn]),wr],translateX:["T",br([yr,fn,fn]),br([yr,fn])],translateY:["T",br([fn,yr,fn]),br([fn,yr])],translateZ:["L",br([fn,fn,yr])],translate3d:["TTL",wr]};function xr(t){for(var e=[],n=t.length,r=0;r<n;r++){var i=t[r],A=i[0],o=i.slice(1);if("translate"===A||"skew"===A?1===o.length&&o.push(0):"scale"===A&&1===o.length&&o.push(o[0]),!Br[A])return[];var a=o.map(function(t){return wn(t)});e.push({t:A,d:a})}return e}function Cr(t){if(Array.isArray(t))return xr(t);if("none"===(t=(t||"none").trim()))return[];var e,n=[],r=0;for(vr.lastIndex=0;e=vr.exec(t);){if(e.index!==r)return[];r=e.index+e[0].length;var i=e[1],A=Br[i];if(!A)return[];var o=e[2].split(","),a=A[0];if(a.length<o.length)return[];for(var s=[],l=0;l<a.length;l++){var c,u=o[l],d=a[l];if(void 0===(c=u?{A:function(t){return"0"===t.trim()?hn:Rn(t)},N:$n,T:Nn,L:jn}[d.toUpperCase()](u):{a:hn,n:s[0],t:fn}[d]))return[];s.push(c)}if(n.push({t:i,d:s}),vr.lastIndex===t.length)return n}return[]}function Er(t){if(Array.isArray(t))return xr(t);if("none"===(t=(t||"none").trim()))return[];var e,n=[],r=0;for(vr.lastIndex=0;e=vr.exec(t);){if(e.index!==r)return[];r=e.index+e[0].length;var i=e[1],A=Br[i];if(!A)return[];var o=e[2].split(","),a=A[0];if(a.length<o.length)return[];for(var s=[],l=0;l<a.length;l++){var c,u=o[l],d=a[l];if(void 0===(c=u?{A:function(t){return"0"===t.trim()?hn:Dn(t)},N:Yn,T:Hn,L:Pn}[d.toUpperCase()](u):{a:hn,n:s[0],t:fn}[d]))return[];s.push(c)}if(n.push({t:i,d:s}),vr.lastIndex===t.length)return n}return[]}function Or(t){var e,n,r,i;switch(t.t){case"rotateX":return i=Gt(zn(t.d[0])),[1,0,0,0,0,Math.cos(i),Math.sin(i),0,0,-Math.sin(i),Math.cos(i),0,0,0,0,1];case"rotateY":return i=Gt(zn(t.d[0])),[Math.cos(i),0,-Math.sin(i),0,0,1,0,0,Math.sin(i),0,Math.cos(i),0,0,0,0,1];case"rotate":case"rotateZ":return i=Gt(zn(t.d[0])),[Math.cos(i),Math.sin(i),0,0,-Math.sin(i),Math.cos(i),0,0,0,0,1,0,0,0,0,1];case"rotate3d":e=t.d[0].value,n=t.d[1].value,r=t.d[2].value,i=Gt(zn(t.d[3]));var A=e*e+n*n+r*r;if(0===A)e=1,n=0,r=0;else if(1!==A){var o=Math.sqrt(A);e/=o,n/=o,r/=o}var a=Math.sin(i/2),s=a*Math.cos(i/2),l=a*a;return[1-2*(n*n+r*r)*l,2*(e*n*l+r*s),2*(e*r*l-n*s),0,2*(e*n*l-r*s),1-2*(e*e+r*r)*l,2*(n*r*l+e*s),0,2*(e*r*l+n*s),2*(n*r*l-e*s),1-2*(e*e+n*n)*l,0,0,0,0,1];case"scale":return[t.d[0].value,0,0,0,0,t.d[1].value,0,0,0,0,1,0,0,0,0,1];case"scaleX":return[t.d[0].value,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];case"scaleY":return[1,0,0,0,0,t.d[0].value,0,0,0,0,1,0,0,0,0,1];case"scaleZ":return[1,0,0,0,0,1,0,0,0,0,t.d[0].value,0,0,0,0,1];case"scale3d":return[t.d[0].value,0,0,0,0,t.d[1].value,0,0,0,0,t.d[2].value,0,0,0,0,1];case"skew":var c=Gt(zn(t.d[0])),u=Gt(zn(t.d[1]));return[1,Math.tan(u),0,0,Math.tan(c),1,0,0,0,0,1,0,0,0,0,1];case"skewX":return i=Gt(zn(t.d[0])),[1,0,0,0,Math.tan(i),1,0,0,0,0,1,0,0,0,0,1];case"skewY":return i=Gt(zn(t.d[0])),[1,Math.tan(i),0,0,0,1,0,0,0,0,1,0,0,0,0,1];case"translate":return[1,0,0,0,0,1,0,0,0,0,1,0,e=Vn(t.d[0],0,null)||0,n=Vn(t.d[1],0,null)||0,0,1];case"translateX":return[1,0,0,0,0,1,0,0,0,0,1,0,e=Vn(t.d[0],0,null)||0,0,0,1];case"translateY":return[1,0,0,0,0,1,0,0,0,0,1,0,0,n=Vn(t.d[0],0,null)||0,0,1];case"translateZ":return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,r=Vn(t.d[0],0,null)||0,1];case"translate3d":return[1,0,0,0,0,1,0,0,0,0,1,0,e=Vn(t.d[0],0,null)||0,n=Vn(t.d[1],0,null)||0,r=Vn(t.d[2],0,null)||0,1];case"perspective":var d=Vn(t.d[0],0,null)||0;return[1,0,0,0,0,1,0,0,0,0,1,d?-1/d:0,0,0,0,1];case"matrix":return[t.d[0].value,t.d[1].value,0,0,t.d[2].value,t.d[3].value,0,0,0,0,1,0,t.d[4].value,t.d[5].value,0,1];case"matrix3d":return t.d.map(function(t){return t.value})}}function kr(t,e){return[t[0]*e[0]+t[4]*e[1]+t[8]*e[2]+t[12]*e[3],t[1]*e[0]+t[5]*e[1]+t[9]*e[2]+t[13]*e[3],t[2]*e[0]+t[6]*e[1]+t[10]*e[2]+t[14]*e[3],t[3]*e[0]+t[7]*e[1]+t[11]*e[2]+t[15]*e[3],t[0]*e[4]+t[4]*e[5]+t[8]*e[6]+t[12]*e[7],t[1]*e[4]+t[5]*e[5]+t[9]*e[6]+t[13]*e[7],t[2]*e[4]+t[6]*e[5]+t[10]*e[6]+t[14]*e[7],t[3]*e[4]+t[7]*e[5]+t[11]*e[6]+t[15]*e[7],t[0]*e[8]+t[4]*e[9]+t[8]*e[10]+t[12]*e[11],t[1]*e[8]+t[5]*e[9]+t[9]*e[10]+t[13]*e[11],t[2]*e[8]+t[6]*e[9]+t[10]*e[10]+t[14]*e[11],t[3]*e[8]+t[7]*e[9]+t[11]*e[10]+t[15]*e[11],t[0]*e[12]+t[4]*e[13]+t[8]*e[14]+t[12]*e[15],t[1]*e[12]+t[5]*e[13]+t[9]*e[14]+t[13]*e[15],t[2]*e[12]+t[6]*e[13]+t[10]*e[14]+t[14]*e[15],t[3]*e[12]+t[7]*e[13]+t[11]*e[14]+t[15]*e[15]]}function Fr(t){var e=[0,0,0],n=[1,1,1],r=[0,0,0],i=[0,0,0,1],A=[0,0,0,1];return function(t,e,n,r,i,A){if(!function(t,e){var n=e[15];if(0===n)return!1;for(var r=1/n,i=0;i<16;i++)t[i]=e[i]*r;return!0}(qt,t))return!1;if(f.C(Zt,qt),Zt[3]=0,Zt[7]=0,Zt[11]=0,Zt[15]=1,Math.abs(f.a4(Zt))<1e-8)return!1;var o,a,s=qt[3],l=qt[7],c=qt[11],h=qt[12],p=qt[13],g=qt[14],m=qt[15];if(0!==s||0!==l||0!==c){if(Jt[0]=s,Jt[1]=l,Jt[2]=c,Jt[3]=m,!f.B8(Zt,Zt))return!1;f.mg(Zt,Zt),d.Z0(i,Jt,Zt)}else i[0]=i[1]=i[2]=0,i[3]=1;if(e[0]=h,e[1]=p,e[2]=g,(o=te)[0][0]=(a=qt)[0],o[0][1]=a[1],o[0][2]=a[2],o[1][0]=a[4],o[1][1]=a[5],o[1][2]=a[6],o[2][0]=a[8],o[2][1]=a[9],o[2][2]=a[10],n[0]=u.Bw(te[0]),u.S8(te[0],te[0]),r[0]=u.Om(te[0],te[1]),ne(te[1],te[1],te[0],1,-r[0]),n[1]=u.Bw(te[1]),u.S8(te[1],te[1]),r[0]/=n[1],r[1]=u.Om(te[0],te[2]),ne(te[2],te[2],te[0],1,-r[1]),r[2]=u.Om(te[1],te[2]),ne(te[2],te[2],te[1],1,-r[2]),n[2]=u.Bw(te[2]),u.S8(te[2],te[2]),r[1]/=n[2],r[2]/=n[2],u.$A(ee,te[1],te[2]),u.Om(te[0],ee)<0)for(var y=0;y<3;y++)n[y]*=-1,te[y][0]*=-1,te[y][1]*=-1,te[y][2]*=-1;A[0]=.5*Math.sqrt(Math.max(1+te[0][0]-te[1][1]-te[2][2],0)),A[1]=.5*Math.sqrt(Math.max(1-te[0][0]+te[1][1]-te[2][2],0)),A[2]=.5*Math.sqrt(Math.max(1-te[0][0]-te[1][1]+te[2][2],0)),A[3]=.5*Math.sqrt(Math.max(1+te[0][0]+te[1][1]+te[2][2],0)),te[2][1]>te[1][2]&&(A[0]=-A[0]),te[0][2]>te[2][0]&&(A[1]=-A[1]),te[1][0]>te[0][1]&&(A[2]=-A[2])}(function(t){return 0===t.length?[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]:t.map(Or).reduce(kr)}(t),e,n,r,i,A),[[e,n,r,A,i]]}var Qr=function(){function t(t,e){for(var n=[[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0]],r=0;r<4;r++)for(var i=0;i<4;i++)for(var A=0;A<4;A++)n[r][i]+=e[r][A]*t[A][i];return n}return function(e,n,r,i,A){for(var o=[[1,0,0,0],[0,1,0,0],[0,0,1,0],[0,0,0,1]],a=0;a<4;a++)o[a][3]=A[a];for(var s=0;s<3;s++)for(var l=0;l<3;l++)o[3][s]+=e[l]*o[l][s];var c=i[0],u=i[1],d=i[2],f=i[3],h=[[1,0,0,0],[0,1,0,0],[0,0,1,0],[0,0,0,1]];h[0][0]=1-2*(u*u+d*d),h[0][1]=2*(c*u-d*f),h[0][2]=2*(c*d+u*f),h[1][0]=2*(c*u+d*f),h[1][1]=1-2*(c*c+d*d),h[1][2]=2*(u*d-c*f),h[2][0]=2*(c*d-u*f),h[2][1]=2*(u*d+c*f),h[2][2]=1-2*(c*c+u*u),o=t(o,h);var p,g=[[1,0,0,0],[0,1,0,0],[0,0,1,0],[0,0,0,1]];r[2]&&(g[2][1]=r[2],o=t(o,g)),r[1]&&(g[2][1]=0,g[2][0]=r[0],o=t(o,g)),r[0]&&(g[2][0]=0,g[1][0]=r[0],o=t(o,g));for(var m=0;m<3;m++)for(var y=0;y<3;y++)o[m][y]*=n[m];return 0===(p=o)[0][2]&&0===p[0][3]&&0===p[1][2]&&0===p[1][3]&&0===p[2][0]&&0===p[2][1]&&1===p[2][2]&&0===p[2][3]&&0===p[3][2]&&1===p[3][3]?[o[0][0],o[0][1],o[1][0],o[1][1],o[3][0],o[3][1]]:o[0].concat(o[1],o[2],o[3])}}();function Mr(t){return t.toFixed(6).replace(".000000","")}function Ur(t,e){var n,r;return t.decompositionPair!==e&&(t.decompositionPair=e,n=Fr(t)),e.decompositionPair!==t&&(e.decompositionPair=t,r=Fr(e)),null===n[0]||null===r[0]?[[!1],[!0],function(n){return n?e[0].d:t[0].d}]:(n[0].push(0),r[0].push(1),[n,r,function(t){var e=function(t,e,n){var r=function(t,e){for(var n=0,r=0;r<t.length;r++)n+=t[r]*e[r];return n}(t,e),i=[];if(1===(r=(0,B.A)(r,-1,1)))i=t;else for(var A=Math.acos(r),o=1*Math.sin(n*A)/Math.sqrt(1-r*r),a=0;a<4;a++)i.push(t[a]*(Math.cos(n*A)-r*o)+e[a]*o);return i}(n[0][3],r[0][3],t[5]);return Qr(t[0],t[1],t[2],e,t[4]).map(Mr).join(",")}])}function Sr(t){return t.replace(/[XY]/,"")}function _r(t){return t.replace(/(X|Y|Z|3d)?$/,"3d")}var Ir=function(t,e){return"perspective"===t&&"perspective"===e||("matrix"===t||"matrix3d"===t)&&("matrix"===e||"matrix3d"===e)};function Tr(t,e,n){var r=!1;if(!t.length||!e.length){t.length||(r=!0,t=e,e=[]);for(var i=function(){var n=t[A],r=n.t,i=n.d,o="scale"===r.substring(0,5)?1:0;e.push({t:r,d:i.map(function(t){return"number"==typeof t?wn(o):wn(o,t.unit)})})},A=0;A<t.length;A++)i()}var o=[],a=[],s=[];if(t.length!==e.length){var l=Ur(t,e);o=[l[0]],a=[l[1]],s=[["matrix",[l[2]]]]}else for(var c=0;c<t.length;c++){var u=t[c].t,d=e[c].t,f=t[c].d,h=e[c].d,p=Br[u],g=Br[d],m=void 0;if(Ir(u,d)){var y=Ur([t[c]],[e[c]]);o.push(y[0]),a.push(y[1]),s.push(["matrix",[y[2]]])}else{if(u===d)m=u;else if(p[2]&&g[2]&&Sr(u)===Sr(d))m=Sr(u),f=p[2](f),h=g[2](h);else{if(!p[1]||!g[1]||_r(u)!==_r(d)){var v=Ur(t,e);o=[v[0]],a=[v[1]],s=[["matrix",[v[2]]]];break}m=_r(u),f=p[1](f),h=g[1](h)}for(var b=[],w=[],B=[],x=0;x<f.length;x++){var C=Kn(f[x],h[x],n,!1,x);b[x]=C[0],w[x]=C[1],B.push(C[2])}o.push(b),a.push(w),s.push([m,B])}}if(r){var E=o;o=a,a=E}return[o,a,function(t){return t.map(function(t,e){var n=t.map(function(t,n){return s[e][1][n](t)}).join(",");return"matrix"===s[e][0]&&16===n.split(",").length&&(s[e][0]="matrix3d"),"matrix3d"===s[e][0]&&6===n.split(",").length&&(s[e][0]="matrix"),"".concat(s[e][0],"(").concat(n,")")}).join(" ")}]}var Lr=$e(function(t){if((0,w.A)(t)){if("text-anchor"===t)return[wn(0,"px"),wn(0,"px")];var e=t.split(" ");return 1===e.length&&("top"===e[0]||"bottom"===e[0]?(e[1]=e[0],e[0]="center"):e[1]="center"),2!==e.length?null:[Nn(Pr(e[0])),Nn(Pr(e[1]))]}return[wn(t[0]||0,"px"),wn(t[1]||0,"px")]});function Pr(t){return"center"===t?"50%":"left"===t||"top"===t?"0%":"right"===t||"bottom"===t?"100%":t}var jr=[{n:"display",k:["none"]},{n:"opacity",int:!0,inh:!0,d:"1",syntax:ge.OPACITY_VALUE},{n:"fillOpacity",int:!0,inh:!0,d:"1",syntax:ge.OPACITY_VALUE},{n:"strokeOpacity",int:!0,inh:!0,d:"1",syntax:ge.OPACITY_VALUE},{n:"fill",int:!0,k:["none"],d:"none",syntax:ge.PAINT},{n:"fillRule",k:["nonzero","evenodd"],d:"nonzero"},{n:"stroke",int:!0,k:["none"],d:"none",syntax:ge.PAINT,l:!0},{n:"shadowType",k:["inner","outer","both"],d:"outer",l:!0},{n:"shadowColor",int:!0,syntax:ge.COLOR},{n:"shadowOffsetX",int:!0,l:!0,d:"0",syntax:ge.LENGTH_PERCENTAGE},{n:"shadowOffsetY",int:!0,l:!0,d:"0",syntax:ge.LENGTH_PERCENTAGE},{n:"shadowBlur",int:!0,l:!0,d:"0",syntax:ge.SHADOW_BLUR},{n:"lineWidth",int:!0,inh:!0,d:"1",l:!0,a:["strokeWidth"],syntax:ge.LENGTH_PERCENTAGE},{n:"increasedLineWidthForHitTesting",inh:!0,d:"0",l:!0,syntax:ge.LENGTH_PERCENTAGE},{n:"lineJoin",inh:!0,l:!0,a:["strokeLinejoin"],k:["miter","bevel","round"],d:"miter"},{n:"lineCap",inh:!0,l:!0,a:["strokeLinecap"],k:["butt","round","square"],d:"butt"},{n:"lineDash",int:!0,inh:!0,k:["none"],a:["strokeDasharray"],syntax:ge.LENGTH_PERCENTAGE_12},{n:"lineDashOffset",int:!0,inh:!0,d:"0",a:["strokeDashoffset"],syntax:ge.LENGTH_PERCENTAGE},{n:"offsetPath",syntax:ge.DEFINED_PATH},{n:"offsetDistance",int:!0,syntax:ge.OFFSET_DISTANCE},{n:"dx",int:!0,l:!0,d:"0",syntax:ge.LENGTH_PERCENTAGE},{n:"dy",int:!0,l:!0,d:"0",syntax:ge.LENGTH_PERCENTAGE},{n:"zIndex",ind:!0,int:!0,d:"0",k:["auto"],syntax:ge.Z_INDEX},{n:"visibility",k:["visible","hidden"],ind:!0,inh:!0,int:!0,d:"visible"},{n:"pointerEvents",inh:!0,k:["none","auto","stroke","fill","painted","visible","visiblestroke","visiblefill","visiblepainted","all"],d:"auto"},{n:"filter",ind:!0,l:!0,k:["none"],d:"none",syntax:ge.FILTER},{n:"clipPath",syntax:ge.DEFINED_PATH},{n:"textPath",syntax:ge.DEFINED_PATH},{n:"textPathSide",k:["left","right"],d:"left"},{n:"textPathStartOffset",l:!0,d:"0",syntax:ge.LENGTH_PERCENTAGE},{n:"transform",p:100,int:!0,k:["none"],d:"none",syntax:ge.TRANSFORM},{n:"transformOrigin",p:100,d:"0 0",l:!0,syntax:ge.TRANSFORM_ORIGIN},{n:"cx",int:!0,l:!0,d:"0",syntax:ge.COORDINATE},{n:"cy",int:!0,l:!0,d:"0",syntax:ge.COORDINATE},{n:"cz",int:!0,l:!0,d:"0",syntax:ge.COORDINATE},{n:"r",int:!0,l:!0,d:"0",syntax:ge.LENGTH_PERCENTAGE},{n:"rx",int:!0,l:!0,d:"0",syntax:ge.LENGTH_PERCENTAGE},{n:"ry",int:!0,l:!0,d:"0",syntax:ge.LENGTH_PERCENTAGE},{n:"x",int:!0,l:!0,d:"0",syntax:ge.COORDINATE},{n:"y",int:!0,l:!0,d:"0",syntax:ge.COORDINATE},{n:"z",int:!0,l:!0,d:"0",syntax:ge.COORDINATE},{n:"width",int:!0,l:!0,k:["auto","fit-content","min-content","max-content"],d:"0",syntax:ge.LENGTH_PERCENTAGE},{n:"height",int:!0,l:!0,k:["auto","fit-content","min-content","max-content"],d:"0",syntax:ge.LENGTH_PERCENTAGE},{n:"radius",int:!0,l:!0,d:"0",syntax:ge.LENGTH_PERCENTAGE_14},{n:"x1",int:!0,l:!0,syntax:ge.COORDINATE},{n:"y1",int:!0,l:!0,syntax:ge.COORDINATE},{n:"z1",int:!0,l:!0,syntax:ge.COORDINATE},{n:"x2",int:!0,l:!0,syntax:ge.COORDINATE},{n:"y2",int:!0,l:!0,syntax:ge.COORDINATE},{n:"z2",int:!0,l:!0,syntax:ge.COORDINATE},{n:"d",int:!0,l:!0,d:"",syntax:ge.PATH,p:50},{n:"points",int:!0,l:!0,syntax:ge.LIST_OF_POINTS,p:50},{n:"text",l:!0,d:"",syntax:ge.TEXT,p:50},{n:"textTransform",l:!0,inh:!0,k:["capitalize","uppercase","lowercase","none"],d:"none",syntax:ge.TEXT_TRANSFORM,p:51},{n:"font",l:!0},{n:"fontSize",int:!0,inh:!0,d:"16px",l:!0,syntax:ge.LENGTH_PERCENTAGE},{n:"fontFamily",l:!0,inh:!0,d:"sans-serif"},{n:"fontStyle",l:!0,inh:!0,k:["normal","italic","oblique"],d:"normal"},{n:"fontWeight",l:!0,inh:!0,k:["normal","bold","bolder","lighter"],d:"normal"},{n:"fontVariant",l:!0,inh:!0,k:["normal","small-caps"],d:"normal"},{n:"lineHeight",l:!0,syntax:ge.LENGTH,int:!0,d:"0"},{n:"letterSpacing",l:!0,syntax:ge.LENGTH,int:!0,d:"0"},{n:"miterLimit",l:!0,syntax:ge.NUMBER,d:function(t){return t===xt.PATH||t===xt.POLYGON||t===xt.POLYLINE?"4":"10"}},{n:"wordWrap",l:!0},{n:"wordWrapWidth",l:!0},{n:"maxLines",l:!0},{n:"textOverflow",l:!0,d:"clip"},{n:"leading",l:!0},{n:"textBaseline",l:!0,inh:!0,k:["top","hanging","middle","alphabetic","ideographic","bottom"],d:"alphabetic"},{n:"textAlign",l:!0,inh:!0,k:["start","center","middle","end","left","right"],d:"start"},{n:"markerStart",syntax:ge.MARKER},{n:"markerEnd",syntax:ge.MARKER},{n:"markerMid",syntax:ge.MARKER},{n:"markerStartOffset",syntax:ge.LENGTH,l:!0,int:!0,d:"0"},{n:"markerEndOffset",syntax:ge.LENGTH,l:!0,int:!0,d:"0"}],Hr=new Set(jr.filter(function(t){return!!t.l}).map(function(t){return t.n})),Nr={},Dr=function(){return(0,A.A)(function t(e){var n=this;(0,i.A)(this,t),this.runtime=e,jr.forEach(function(t){n.registerMetadata(t)})},[{key:"registerMetadata",value:function(t){[t.n].concat((0,o.A)(t.a||[])).forEach(function(e){Nr[e]=t})}},{key:"getPropertySyntax",value:function(t){return this.runtime.CSSPropertySyntaxFactory[t]}},{key:"processProperties",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{skipUpdateAttribute:!1,skipParse:!1,forceUpdateGeometry:!1,usedAttributes:[],memoize:!0};Object.assign(t.attributes,e);var i=t.parsedStyle.clipPath,A=t.parsedStyle.offsetPath;!function(t,e){var n=Rr(t);for(var r in e)n.has(r)&&(t.parsedStyle[r]=e[r])}(t,e);var o=!!n.forceUpdateGeometry;if(!o)for(var a in e)if(Hr.has(a)){o=!0;break}var s,c=Rr(t);c.has("fill")&&e.fill&&(t.parsedStyle.fill=In(e.fill)),c.has("stroke")&&e.stroke&&(t.parsedStyle.stroke=In(e.stroke)),c.has("shadowColor")&&e.shadowColor&&(t.parsedStyle.shadowColor=In(e.shadowColor)),c.has("filter")&&e.filter&&(t.parsedStyle.filter=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if("none"===(t=t.toLowerCase().trim()))return[];for(var e,n=/\s*([\w-]+)\(([^)]*)\)/g,r=[],i=0;e=n.exec(t);){if(e.index!==i)return[];if(i=e.index+e[0].length,Wn.indexOf(e[1])>-1&&r.push({name:e[1],params:e[2].split(" ").map(function(t){return Ln(/deg|rad|grad|turn|px|%/g,t)||In(t)})}),n.lastIndex===t.length)return r}return[]}(e.filter)),c.has("radius")&&!(0,b.A)(e.radius)&&(t.parsedStyle.radius=Gn(e.radius,4)),c.has("lineDash")&&!(0,b.A)(e.lineDash)&&(t.parsedStyle.lineDash=Gn(e.lineDash,"even")),c.has("points")&&e.points&&(t.parsedStyle.points={points:(0,w.A)(s=e.points)?s.split(" ").map(function(t){var e=t.split(","),n=(0,l.A)(e,2),r=n[1];return[Number(n[0]),Number(r)]}):s,totalLength:0,segments:[]}),c.has("d")&&""===e.d&&(t.parsedStyle.d=(0,r.A)({},pe)),c.has("d")&&e.d&&(t.parsedStyle.d=pr(e.d)),c.has("textTransform")&&e.textTransform&&this.runtime.CSSPropertySyntaxFactory[ge.TEXT_TRANSFORM].calculator(null,null,{value:e.textTransform},t,null),c.has("clipPath")&&!(0,lt.A)(e.clipPath)&&this.runtime.CSSPropertySyntaxFactory[ge.DEFINED_PATH].calculator("clipPath",i,e.clipPath,t,this.runtime),c.has("offsetPath")&&e.offsetPath&&this.runtime.CSSPropertySyntaxFactory[ge.DEFINED_PATH].calculator("offsetPath",A,e.offsetPath,t,this.runtime),c.has("transform")&&e.transform&&(t.parsedStyle.transform=Cr(e.transform)),c.has("transformOrigin")&&e.transformOrigin&&(t.parsedStyle.transformOrigin=Lr(e.transformOrigin)),c.has("markerStart")&&e.markerStart&&(t.parsedStyle.markerStart=this.runtime.CSSPropertySyntaxFactory[ge.MARKER].calculator(null,e.markerStart,e.markerStart,null,null)),c.has("markerEnd")&&e.markerEnd&&(t.parsedStyle.markerEnd=this.runtime.CSSPropertySyntaxFactory[ge.MARKER].calculator(null,e.markerEnd,e.markerEnd,null,null)),c.has("markerMid")&&e.markerMid&&(t.parsedStyle.markerMid=this.runtime.CSSPropertySyntaxFactory[ge.MARKER].calculator("",e.markerMid,e.markerMid,null,null)),c.has("zIndex")&&!(0,b.A)(e.zIndex)&&this.runtime.CSSPropertySyntaxFactory[ge.Z_INDEX].postProcessor(t),c.has("offsetDistance")&&!(0,b.A)(e.offsetDistance)&&this.runtime.CSSPropertySyntaxFactory[ge.OFFSET_DISTANCE].postProcessor(t),c.has("transform")&&e.transform&&this.runtime.CSSPropertySyntaxFactory[ge.TRANSFORM].postProcessor(t),c.has("transformOrigin")&&e.transformOrigin&&this.runtime.CSSPropertySyntaxFactory[ge.TRANSFORM_ORIGIN].postProcessor(t),o&&(t.dirty(!0,!0),n.forceUpdateGeometry||this.runtime.sceneGraphService.dirtyToRoot(t))}},{key:"updateGeometry",value:function(t){var e=t.nodeName,n=this.runtime.geometryUpdaterFactory[e];if(n){var r=t.geometry;r.contentBounds||(r.contentBounds=new _t),r.renderBounds||(r.renderBounds=new _t);var i=t.parsedStyle,A=n.update(i,t),o=A.cx,a=void 0===o?0:o,s=A.cy,l=void 0===s?0:s,c=A.cz,d=void 0===c?0:c,f=A.hwidth,h=void 0===f?0:f,p=A.hheight,g=void 0===p?0:p,m=A.hdepth,y=void 0===m?0:m,v=[Math.abs(h),Math.abs(g),y],b=i.stroke,w=i.lineWidth,B=void 0===w?1:w,x=i.increasedLineWidthForHitTesting,C=void 0===x?0:x,E=i.shadowType,O=void 0===E?"outer":E,k=i.shadowColor,F=i.filter,Q=void 0===F?[]:F,M=i.transformOrigin,U=[a,l,d];r.contentBounds.update(U,v);var S=e===xt.POLYLINE||e===xt.POLYGON||e===xt.PATH?Math.SQRT2:.5;if(b&&!b.isNone){var _=((B||0)+(C||0))*S;v[0]+=_,v[1]+=_}if(r.renderBounds.update(U,v),k&&O&&"inner"!==O){var I=r.renderBounds,T=I.min,L=I.max,P=i.shadowBlur||0,j=i.shadowOffsetX||0,H=i.shadowOffsetY||0,N=L[0]+P+j,D=T[1]-P+H,R=L[1]+P+H;T[0]=Math.min(T[0],T[0]-P+j),L[0]=Math.max(L[0],N),T[1]=Math.min(T[1],D),L[1]=Math.max(L[1],R),r.renderBounds.setMinMax(T,L)}Q.forEach(function(t){var e=t.name,n=t.params;if("blur"===e){var i=n[0].value;r.renderBounds.update(r.renderBounds.center,u.WQ(r.renderBounds.halfExtents,r.renderBounds.halfExtents,[i,i,0]))}else if("drop-shadow"===e){var A=n[0].value,o=n[1].value,a=n[2].value,s=r.renderBounds,l=s.min,c=s.max,d=c[0]+a+A,f=l[1]-a+o,h=c[1]+a+o;l[0]=Math.min(l[0],l[0]-a+A),c[0]=Math.max(c[0],d),l[1]=Math.min(l[1],f),c[1]=Math.max(c[1],h),r.renderBounds.setMinMax(l,c)}}),t.geometry.dirty=!1;var K=g<0,z=(h<0?-1:1)*(M?Vn(M[0],0,t,!0):0),G=(K?-1:1)*(M?Vn(M[1],1,t,!0):0);(z||G)&&t.setOrigin(z,G)}}},{key:"updateSizeAttenuation",value:function(t,e){t.style.isSizeAttenuation?(t.style.rawLineWidth||(t.style.rawLineWidth=t.style.lineWidth),t.style.lineWidth=(t.style.rawLineWidth||1)/e,t.nodeName===xt.CIRCLE&&(t.style.rawR||(t.style.rawR=t.style.r),t.style.r=(t.style.rawR||1)/e)):(t.style.rawLineWidth&&(t.style.lineWidth=t.style.rawLineWidth,delete t.style.rawLineWidth),t.nodeName===xt.CIRCLE&&t.style.rawR&&(t.style.r=t.style.rawR,delete t.style.rawR))}}])}();function Rr(t){return t.constructor.PARSED_STYLE_LIST}var Kr=function(){return(0,A.A)(function t(){(0,i.A)(this,t),this.mixer=qn},[{key:"calculator",value:function(t,e,n,r){return zn(n)}}])}(),zr=function(){return(0,A.A)(function t(){(0,i.A)(this,t)},[{key:"calculator",value:function(t,e,n,r,i){return n instanceof cn&&(n=null),i.sceneGraphService.updateDisplayObjectDependency(t,e,n,r),"clipPath"===t&&r.forEach(function(t){0===t.childNodes.length&&i.sceneGraphService.dirtyToRoot(t)}),n}}])}(),Gr=function(){return(0,A.A)(function t(){(0,i.A)(this,t),this.parser=In,this.mixer=Tn},[{key:"calculator",value:function(t,e,n,r){return n instanceof cn?"none"===n.value?yn:vn:n}}])}(),Vr=function(){return(0,A.A)(function t(){(0,i.A)(this,t)},[{key:"calculator",value:function(t,e,n){return n instanceof cn?[]:n}}])}();function Wr(t){var e=t.parsedStyle.fontSize;return(0,b.A)(e)?null:e}var Xr=function(){return(0,A.A)(function t(){(0,i.A)(this,t),this.mixer=qn},[{key:"calculator",value:function(t,e,n,r,i){if((0,y.A)(n))return n;if(!dn.isRelativeUnit(n.unit))return n.value;if(n.unit===qe.kPercentage)return 0;if(n.unit===qe.kEms){if(r.parentNode){var A=Wr(r.parentNode);if(A)return A*n.value}return 0}if(n.unit===qe.kRems){var o;if(null!=r&&null!==(o=r.ownerDocument)&&void 0!==o&&o.documentElement){var a=Wr(r.ownerDocument.documentElement);if(a)return a*n.value}return 0}}}])}(),Yr=function(){return(0,A.A)(function t(){(0,i.A)(this,t),this.mixer=Jn},[{key:"calculator",value:function(t,e,n){return n.map(function(t){return t.value})}}])}(),$r=function(){return(0,A.A)(function t(){(0,i.A)(this,t),this.mixer=Jn},[{key:"calculator",value:function(t,e,n){return n.map(function(t){return t.value})}}])}(),qr=function(){return(0,A.A)(function t(){(0,i.A)(this,t)},[{key:"calculator",value:function(t,e,n,r){var i;n instanceof cn&&(n=null);var A=null===(i=n)||void 0===i?void 0:i.cloneNode(!0);return A&&(A.style.isMarker=!0),A}}])}(),Zr=function(){return(0,A.A)(function t(){(0,i.A)(this,t),this.mixer=qn},[{key:"calculator",value:function(t,e,n){return n.value}}])}(),Jr=function(){return(0,A.A)(function t(){(0,i.A)(this,t),this.mixer=Zn(0,1)},[{key:"calculator",value:function(t,e,n){return n.value}},{key:"postProcessor",value:function(t){var e=t.parsedStyle,n=e.offsetPath;if(n){var r=n.nodeName;if(r===xt.LINE||r===xt.PATH||r===xt.POLYLINE){var i=n.getPoint(e.offsetDistance);i&&t.setLocalPosition(i.x,i.y)}}}}])}(),ti=function(){return(0,A.A)(function t(){(0,i.A)(this,t),this.mixer=Zn(0,1)},[{key:"calculator",value:function(t,e,n){return n.value}}])}(),ei=function(){return(0,A.A)(function t(){(0,i.A)(this,t),this.parser=pr,this.mixer=gr},[{key:"calculator",value:function(t,e,n){return n instanceof cn&&"unset"===n.value?{absolutePath:[],hasArc:!1,segments:[],polygons:[],polylines:[],curve:null,totalLength:0,rect:new jt(0,0,0,0)}:n}}])}(),ni=(0,A.A)(function t(){(0,i.A)(this,t),this.mixer=mr}),ri=function(t){function e(){var t;(0,i.A)(this,e);for(var n=arguments.length,r=new Array(n),A=0;A<n;A++)r[A]=arguments[A];return(t=(0,a.A)(this,e,[].concat(r))).mixer=Zn(0,1/0),t}return(0,s.A)(e,t),(0,A.A)(e)}(Xr),ii=function(){return(0,A.A)(function t(){(0,i.A)(this,t)},[{key:"calculator",value:function(t,e,n,r){return n instanceof cn?"unset"===n.value?"":n.value:"".concat(n)}},{key:"postProcessor",value:function(t){t.nodeValue="".concat(t.parsedStyle.text)||""}}])}(),Ai=function(){return(0,A.A)(function t(){(0,i.A)(this,t)},[{key:"calculator",value:function(t,e,n,r){var i=r.getAttribute("text");if(i){var A=i;"capitalize"===n.value?A=i.charAt(0).toUpperCase()+i.slice(1):"lowercase"===n.value?A=i.toLowerCase():"uppercase"===n.value&&(A=i.toUpperCase()),r.parsedStyle.text=A}return n.value}}])}(),oi=new WeakMap,ai="undefined"!=typeof window&&void 0!==window.document;function si(t){return!!t.getAttribute}function li(t,e){var n=Number(t.parsedStyle.zIndex||0),r=Number(e.parsedStyle.zIndex||0);if(n===r){var i=t.parentNode;if(i){var A=i.childNodes||[];return A.indexOf(t)-A.indexOf(e)}}return n-r}function ci(t){var e=t;do{var n;if(null===(n=e.parsedStyle)||void 0===n?void 0:n.clipPath)return e;e=e.parentElement}while(null!==e);return null}function ui(t,e,n){ai&&t.style&&(t.style.width=e+"px",t.style.height=n+"px")}function di(t,e){if(ai)return document.defaultView.getComputedStyle(t,null).getPropertyValue(e)}var fi={touchstart:"pointerdown",touchend:"pointerup",touchendoutside:"pointerupoutside",touchmove:"pointermove",touchcancel:"pointercancel"},hi="object"==typeof performance&&performance.now?performance:Date;function pi(t){return t.nodeName===xt.FRAGMENT||t.getRootNode().nodeName===xt.FRAGMENT}function gi(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"auto",e=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,r=!1,i=!1;return"visiblepainted"===t||"painted"===t||"auto"===t?(r=!!e&&!e.isNone,i=!!n&&!n.isNone):"visiblefill"===t||"fill"===t?r=!0:"visiblestroke"===t||"stroke"===t?i=!0:"visible"!==t&&"all"!==t||(r=!0,i=!0),[r,i]}var mi=1,yi="object"==typeof self&&self.self===self?self:"object"==typeof n.g&&n.g.global===n.g?n.g:{},vi=Date.now(),bi={},wi=Date.now(),Bi=function(t){if("function"!=typeof t)throw new TypeError("".concat(t," is not a function"));var e=Date.now(),n=e-wi,r=n>16?0:16-n,i=mi++;return bi[i]=t,Object.keys(bi).length>1||setTimeout(function(){wi=e;var t=bi;bi={},Object.keys(t).forEach(function(e){return t[e](yi.performance&&"function"==typeof yi.performance.now?yi.performance.now():Date.now()-vi)})},r),i},xi=function(t){delete bi[t]},Ci=function(t){return"string"!=typeof t?Bi:""===t?yi.requestAnimationFrame:yi["".concat(t,"RequestAnimationFrame")]},Ei=function(t,e){for(var n=0;void 0!==t[n];){if(e(t[n]))return t[n];n+=1}}(["","webkit","moz","ms","o"],function(t){return!!Ci(t)}),Oi=Ci(Ei),ki=function(t){return"string"!=typeof t?xi:""===t?yi.cancelAnimationFrame:yi["".concat(t,"CancelAnimationFrame")]||yi["".concat(t,"CancelRequestAnimationFrame")]}(Ei);yi.requestAnimationFrame=Oi,yi.cancelAnimationFrame=ki;var Fi=function(){return(0,A.A)(function t(){(0,i.A)(this,t),this.callbacks=[]},[{key:"getCallbacksNum",value:function(){return this.callbacks.length}},{key:"tapPromise",value:function(t,e){this.callbacks.push(e)}},{key:"promise",value:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return Promise.all(this.callbacks.map(function(t){return t.apply(void 0,e)}))}}])}(),Qi=function(){return(0,A.A)(function t(){(0,i.A)(this,t),this.callbacks=[]},[{key:"tapPromise",value:function(t,e){this.callbacks.push(e)}},{key:"promise",value:(t=(0,bt.A)((0,vt.A)().mark(function t(){var e,n,r,i,A=arguments;return(0,vt.A)().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(!this.callbacks.length){t.next=6;break}return t.next=1,(e=this.callbacks)[0].apply(e,A);case 1:n=t.sent,r=1;case 2:if(!(r<this.callbacks.length)){t.next=5;break}return i=this.callbacks[r],t.next=3,i(n);case 3:n=t.sent;case 4:r++,t.next=2;break;case 5:return t.abrupt("return",n);case 6:return t.abrupt("return",null);case 7:case"end":return t.stop()}},t,this)})),function(){return t.apply(this,arguments)})}]);var t}(),Mi=function(){return(0,A.A)(function t(){(0,i.A)(this,t),this.callbacks=[]},[{key:"tap",value:function(t,e){this.callbacks.push(e)}},{key:"call",value:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=arguments;this.callbacks.forEach(function(t){t.apply(void 0,r)})}}])}(),Ui=function(){return(0,A.A)(function t(){(0,i.A)(this,t),this.callbacks=[]},[{key:"tap",value:function(t,e){this.callbacks.push(e)}},{key:"call",value:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];if(this.callbacks.length){for(var r=this.callbacks[0].apply(void 0,arguments),i=1;i<this.callbacks.length;i++)r=(0,this.callbacks[i])(r);return r}return null}}])}(),Si=["serif","sans-serif","monospace","cursive","fantasy","system-ui"],_i=/([\"\'])[^\'\"]+\1/;function Ii(t){var e=t.fontSize,n=t.fontFamily,r=t.fontStyle,i=t.fontVariant,A=t.fontWeight;return{fontSize:void 0===e?16:e,fontFamily:void 0===n?"sans-serif":n,fontStyle:void 0===r?"normal":r,fontVariant:void 0===i?"normal":i,fontWeight:void 0===A?"normal":A}}var Ti=$e(function(t){for(var e=Ii(t),n=e.fontSize,r=e.fontFamily,i=e.fontStyle,A=e.fontVariant,o=e.fontWeight,a=(0,y.A)(n)&&"".concat(n,"px")||"16px",s=r.split(","),l=s.length-1;l>=0;l--){var c=s[l].trim();!_i.test(c)&&Si.indexOf(c)<0&&(c='"'.concat(c,'"')),s[l]=c}return"".concat(i," ").concat(A," ").concat(o," ").concat(a," ").concat(s.join(","))},function(t){var e=Ii(t),n=e.fontSize,r=e.fontFamily,i=e.fontVariant,A=e.fontWeight;return"".concat(e.fontStyle,"_").concat(i,"_").concat(A,"_").concat(n,"_").concat(r)}),Li=function(t){return Math.max(t,1e-6)};function Pi(t,e,n){return f.D_(t),t[4]=Math.tan(e),t[1]=Math.tan(n),t}var ji=f.vt(),Hi=f.vt(),Ni={scale:function(t){f.CV(ji,[t[0].value,t[1].value,1].map(function(t){return Li(t)}))},scaleX:function(t){f.CV(ji,[t[0].value,1,1].map(function(t){return Li(t)}))},scaleY:function(t){f.CV(ji,[1,t[0].value,1].map(function(t){return Li(t)}))},scaleZ:function(t){f.CV(ji,[1,1,t[0].value].map(function(t){return Li(t)}))},scale3d:function(t){f.CV(ji,[t[0].value,t[1].value,t[2].value].map(function(t){return Li(t)}))},translate:function(t){f.kN(ji,[t[0].value,t[1].value,0])},translateX:function(t){f.kN(ji,[t[0].value,0,0])},translateY:function(t){f.kN(ji,[0,t[0].value,0])},translateZ:function(t){f.kN(ji,[0,0,t[0].value])},translate3d:function(t){f.kN(ji,[t[0].value,t[1].value,t[2].value])},rotate:function(t){f.N9(ji,Gt(zn(t[0])))},rotateX:function(t){f.hM(ji,Gt(zn(t[0])))},rotateY:function(t){f.i1(ji,Gt(zn(t[0])))},rotateZ:function(t){f.N9(ji,Gt(zn(t[0])))},rotate3d:function(t){f.$0(ji,Gt(zn(t[3])),[t[0].value,t[1].value,t[2].value])},skew:function(t){Pi(ji,Gt(t[0].value),Gt(t[1].value))},skewX:function(t){Pi(ji,Gt(t[0].value),0)},skewY:function(t){Pi(ji,0,Gt(t[0].value))},matrix:function(t){f.hZ(ji,t[0].value,t[1].value,0,0,t[2].value,t[3].value,0,0,0,0,1,0,t[4].value,t[5].value,0,1)},matrix3d:function(t){f.hZ.apply(h,[ji].concat((0,o.A)(t.map(function(t){return t.value}))))}},Di=u.fA(1,1,1),Ri=u.vt(),Ki={translate:function(t,e){VA.sceneGraphService.setLocalScale(t,Di,!1),VA.sceneGraphService.setLocalEulerAngles(t,Ri,void 0,void 0,!1),VA.sceneGraphService.setLocalPosition(t,[e[0].value,e[1].value,0],!1),VA.sceneGraphService.dirtyLocalTransform(t,t.transformable)}};function zi(t,e){if(t.length){if(1===t.length&&Ki[t[0].t])return void Ki[t[0].t](e,t[0].d);for(var n=f.D_(Hi),r=0;r<t.length;r++){var i=t[r],A=Ni[i.t];A&&(A(i.d),f.lK(n,n,ji))}e.setLocalTransform(n)}else e.resetLocalTransform();return e.getLocalTransform()}var Gi=function(){return(0,A.A)(function t(){(0,i.A)(this,t),this.parser=Er,this.mixer=Tr},[{key:"calculator",value:function(t,e,n,r){return n instanceof cn?[]:n}},{key:"postProcessor",value:function(t){zi(t.parsedStyle.transform,t)}}])}(),Vi=function(){return(0,A.A)(function t(){(0,i.A)(this,t)},[{key:"postProcessor",value:function(t){var e=t.parsedStyle.transformOrigin;e[0].unit===qe.kPixels&&e[1].unit===qe.kPixels?t.setOrigin(e[0].value,e[1].value):t.getGeometryBounds()}}])}(),Wi=function(){return(0,A.A)(function t(){(0,i.A)(this,t)},[{key:"calculator",value:function(t,e,n,r){return n.value}},{key:"postProcessor",value:function(t){if(t.parentNode){var e=t.parentNode,n=e.sortable;e.renderable&&e.dirty(),n&&(n.dirty=!0,n.dirtyReason=ce.Z_INDEX_CHANGED)}}}])}(),Xi=function(){return(0,A.A)(function t(){(0,i.A)(this,t)},[{key:"update",value:function(t,e){var n=t.cx,r=t.cy,i=t.r,A=void 0===i?0:i;return{cx:void 0===n?0:n,cy:void 0===r?0:r,hwidth:A,hheight:A}}}])}(),Yi=function(){return(0,A.A)(function t(){(0,i.A)(this,t)},[{key:"update",value:function(t,e){var n=t.cx,r=t.cy,i=t.rx,A=t.ry;return{cx:void 0===n?0:n,cy:void 0===r?0:r,hwidth:void 0===i?0:i,hheight:void 0===A?0:A}}}])}(),$i=function(){return(0,A.A)(function t(){(0,i.A)(this,t)},[{key:"update",value:function(t){var e=t.x1,n=t.y1,r=t.x2,i=t.y2,A=Math.min(e,r),o=Math.max(e,r),a=Math.min(n,i),s=(o-A)/2,l=(Math.max(n,i)-a)/2;return{cx:A+s,cy:a+l,hwidth:s,hheight:l}}}])}(),qi=function(){return(0,A.A)(function t(){(0,i.A)(this,t)},[{key:"update",value:function(t){var e=t.d.rect,n=e.width/2,r=e.height/2;return{cx:e.x+n,cy:e.y+r,hwidth:n,hheight:r}}}])}(),Zi=function(){return(0,A.A)(function t(){(0,i.A)(this,t)},[{key:"update",value:function(t){if(t.points&&(0,ct.A)(t.points.points)){var e=t.points.points,n=Math.min.apply(Math,(0,o.A)(e.map(function(t){return t[0]}))),r=Math.max.apply(Math,(0,o.A)(e.map(function(t){return t[0]}))),i=Math.min.apply(Math,(0,o.A)(e.map(function(t){return t[1]}))),A=(r-n)/2,a=(Math.max.apply(Math,(0,o.A)(e.map(function(t){return t[1]})))-i)/2;return{cx:n+A,cy:i+a,hwidth:A,hheight:a}}return{cx:0,cy:0,hwidth:0,hheight:0}}}])}(),Ji=function(){return(0,A.A)(function t(){(0,i.A)(this,t)},[{key:"update",value:function(t,e){var n=t.x,r=void 0===n?0:n,i=t.y,A=void 0===i?0:i,o=t.src,a=t.width,s=t.height,l=void 0===a?0:a,c=void 0===s?0:s;return o&&!(0,w.A)(o)&&(l||(t.width=l=o.width),c||(t.height=c=o.height)),{cx:r+l/2,cy:A+c/2,hwidth:l/2,hheight:c/2}}}])}(),tA=function(){return(0,A.A)(function t(e){(0,i.A)(this,t),this.globalRuntime=e},[{key:"isReadyToMeasure",value:function(t,e){return t.text}},{key:"update",value:function(t,e){var n,r=t.text,i=t.textAlign,A=void 0===i?"start":i,o=t.lineWidth,a=void 0===o?1:o,s=t.textBaseline,l=void 0===s?"alphabetic":s,c=t.dx,u=void 0===c?0:c,d=t.dy,f=void 0===d?0:d,h=t.x,p=void 0===h?0:h,g=t.y,m=void 0===g?0:g;if(!this.isReadyToMeasure(t,e))return t.metrics={font:"",width:0,height:0,lines:[],lineWidths:[],lineHeight:0,maxLineWidth:0,fontProperties:{ascent:0,descent:0,fontSize:0},lineMetrics:[]},{hwidth:0,hheight:0,cx:0,cy:0};var y=(null==e||null===(n=e.ownerDocument)||void 0===n||null===(n=n.defaultView)||void 0===n?void 0:n.getConfig())||{},v=this.globalRuntime.textService.measureText(r,t,y.offscreenCanvas);t.metrics=v;var b=v.width/2,w=v.height/2,B=p+b;"center"===A||"middle"===A?B+=a/2-b:"right"!==A&&"end"!==A||(B+=a-2*b);var x=m-w;return"middle"===l?x+=w:"top"===l||"hanging"===l?x+=2*w:"alphabetic"===l||"bottom"!==l&&"ideographic"!==l||(x+=0),u&&(B+=u),f&&(x+=f),{cx:B,cy:x,hwidth:b,hheight:w}}}])}(),eA=function(){return(0,A.A)(function t(){(0,i.A)(this,t)},[{key:"update",value:function(t,e){return{cx:0,cy:0,hwidth:0,hheight:0}}}])}(),nA=function(){return(0,A.A)(function t(){(0,i.A)(this,t)},[{key:"update",value:function(t,e){var n=t.x,r=t.y,i=t.width,A=void 0===i?0:i,o=t.height,a=void 0===o?0:o;return{cx:(void 0===n?0:n)+A/2,cy:(void 0===r?0:r)+a/2,hwidth:A/2,hheight:a/2}}}])}(),rA=function(){return(0,A.A)(function t(e){(0,i.A)(this,t),this.eventPhase=t.prototype.NONE,this.bubbles=!0,this.cancelBubble=!0,this.cancelable=!1,this.defaultPrevented=!1,this.propagationStopped=!1,this.propagationImmediatelyStopped=!1,this.layer=new Pt,this.page=new Pt,this.canvas=new Pt,this.viewport=new Pt,this.composed=!1,this.NONE=0,this.CAPTURING_PHASE=1,this.AT_TARGET=2,this.BUBBLING_PHASE=3,this.manager=e},[{key:"name",get:function(){return this.type}},{key:"layerX",get:function(){return this.layer.x}},{key:"layerY",get:function(){return this.layer.y}},{key:"pageX",get:function(){return this.page.x}},{key:"pageY",get:function(){return this.page.y}},{key:"x",get:function(){return this.canvas.x}},{key:"y",get:function(){return this.canvas.y}},{key:"canvasX",get:function(){return this.canvas.x}},{key:"canvasY",get:function(){return this.canvas.y}},{key:"viewportX",get:function(){return this.viewport.x}},{key:"viewportY",get:function(){return this.viewport.y}},{key:"composedPath",value:function(){return!this.manager||this.path&&this.path[0]===this.target||(this.path=this.target?this.manager.propagationPath(this.target):[]),this.path}},{key:"propagationPath",get:function(){return this.composedPath()}},{key:"preventDefault",value:function(){this.nativeEvent instanceof Event&&this.nativeEvent.cancelable&&this.nativeEvent.preventDefault(),this.defaultPrevented=!0}},{key:"stopImmediatePropagation",value:function(){this.propagationImmediatelyStopped=!0}},{key:"stopPropagation",value:function(){this.propagationStopped=!0}},{key:"initEvent",value:function(){}},{key:"initUIEvent",value:function(){}},{key:"clone",value:function(){throw new Error(Ht)}}])}(),iA=function(t){function e(){var t;(0,i.A)(this,e);for(var n=arguments.length,r=new Array(n),A=0;A<n;A++)r[A]=arguments[A];return(t=(0,a.A)(this,e,[].concat(r))).client=new Pt,t.movement=new Pt,t.offset=new Pt,t.global=new Pt,t.screen=new Pt,t}return(0,s.A)(e,t),(0,A.A)(e,[{key:"clientX",get:function(){return this.client.x}},{key:"clientY",get:function(){return this.client.y}},{key:"movementX",get:function(){return this.movement.x}},{key:"movementY",get:function(){return this.movement.y}},{key:"offsetX",get:function(){return this.offset.x}},{key:"offsetY",get:function(){return this.offset.y}},{key:"globalX",get:function(){return this.global.x}},{key:"globalY",get:function(){return this.global.y}},{key:"screenX",get:function(){return this.screen.x}},{key:"screenY",get:function(){return this.screen.y}},{key:"getModifierState",value:function(t){return"getModifierState"in this.nativeEvent&&this.nativeEvent.getModifierState(t)}},{key:"initMouseEvent",value:function(){throw new Error(Ht)}}])}(rA),AA=function(t){function e(){var t;(0,i.A)(this,e);for(var n=arguments.length,r=new Array(n),A=0;A<n;A++)r[A]=arguments[A];return(t=(0,a.A)(this,e,[].concat(r))).width=0,t.height=0,t.isPrimary=!1,t}return(0,s.A)(e,t),(0,A.A)(e,[{key:"getCoalescedEvents",value:function(){return"pointermove"===this.type||"mousemove"===this.type||"touchmove"===this.type?[this]:[]}},{key:"getPredictedEvents",value:function(){throw new Error("getPredictedEvents is not supported!")}},{key:"clone",value:function(){return this.manager.clonePointerEvent(this)}}])}(iA),oA=function(t){function e(){return(0,i.A)(this,e),(0,a.A)(this,e,arguments)}return(0,s.A)(e,t),(0,A.A)(e,[{key:"clone",value:function(){return this.manager.cloneWheelEvent(this)}}])}(iA),aA=function(t){function e(t,n){var r;return(0,i.A)(this,e),(r=(0,a.A)(this,e,[null])).type=t,r.detail=null==n?void 0:n.detail,n&&!("detail"in n)&&(r.detail=n),Object.assign(r,n),r}return(0,s.A)(e,t),(0,A.A)(e)}(rA),sA=function(){return(0,A.A)(function t(){(0,i.A)(this,t),this.emitter=new c.A},[{key:"on",value:function(t,e,n){return this.addEventListener(t,e,n),this}},{key:"addEventListener",value:function(t,e,n){var r=!1,i=!1;if(dt(n))r=n;else if(n){var A=n.capture;r=void 0!==A&&A;var o=n.once;i=void 0!==o&&o}r&&(t+="capture"),e=(0,ft.A)(e)?e:e.handleEvent;var a=(0,ft.A)(e)?void 0:e;return i?this.emitter.once(t,e,a):this.emitter.on(t,e,a),this}},{key:"off",value:function(t,e,n){return t?this.removeEventListener(t,e,n):this.removeAllEventListeners(),this}},{key:"removeAllEventListeners",value:function(){var t;null===(t=this.emitter)||void 0===t||t.removeAllListeners()}},{key:"removeEventListener",value:function(t,e,n){var r;if(!this.emitter)return this;(dt(n)?n:null==n?void 0:n.capture)&&(t+="capture"),e=(0,ft.A)(e)?e:null===(r=e)||void 0===r?void 0:r.handleEvent;var i=(0,ft.A)(e)?void 0:e;return this.emitter.off(t,e,i),this}},{key:"emit",value:function(t,e){this.dispatchEvent(new aA(t,e))}},{key:"dispatchEventToSelf",value:function(t){t.target||(t.target=this),t.currentTarget=this,this.emitter.emit(t.type,t)}},{key:"dispatchEvent",value:function(t){var e,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(arguments.length>2?arguments[2]:void 0)return this.dispatchEventToSelf(t),!0;if(this.document)e=this;else if(this.defaultView)e=this.defaultView;else{var r;e=null===(r=this.ownerDocument)||void 0===r?void 0:r.defaultView}if(e){if(t.manager=e.getEventService(),!t.manager)return!1;t.defaultPrevented=!1,t.path?t.path.length=0:t.page=[],n||(t.target=this),t.manager.dispatchEvent(t,t.type,n)}else this.dispatchEventToSelf(t);return!t.defaultPrevented}}])}(),lA=function(t){function e(){var t;(0,i.A)(this,e);for(var n=arguments.length,r=new Array(n),A=0;A<n;A++)r[A]=arguments[A];return(t=(0,a.A)(this,e,[].concat(r))).shadow=!1,t.ownerDocument=null,t.isConnected=!1,t.baseURI="",t.childNodes=[],t.nodeType=0,t.nodeName="",t.nodeValue=null,t.mutations=void 0,t.parentNode=null,t.destroyed=!1,t}return(0,s.A)(e,t),(0,A.A)(e,[{key:"textContent",get:function(){var t="";this.nodeName===xt.TEXT&&(t+=this.style.text);var e,n=(0,wt.A)(this.childNodes);try{for(n.s();!(e=n.n()).done;){var r=e.value;t+=r.nodeName===xt.TEXT?r.nodeValue:r.textContent}}catch(t){n.e(t)}finally{n.f()}return t},set:function(t){var e=this;this.childNodes.slice().forEach(function(t){e.removeChild(t)}),this.nodeName===xt.TEXT&&(this.style.text="".concat(t))}},{key:"getRootNode",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.parentNode?this.parentNode.getRootNode(t):t.composed&&this.host?this.host.getRootNode(t):this}},{key:"hasChildNodes",value:function(){return this.childNodes.length>0}},{key:"isDefaultNamespace",value:function(t){throw new Error(Ht)}},{key:"lookupNamespaceURI",value:function(t){throw new Error(Ht)}},{key:"lookupPrefix",value:function(t){throw new Error(Ht)}},{key:"normalize",value:function(){throw new Error(Ht)}},{key:"isEqualNode",value:function(t){return this===t}},{key:"isSameNode",value:function(t){return this.isEqualNode(t)}},{key:"parent",get:function(){return this.parentNode}},{key:"parentElement",get:function(){return null}},{key:"nextSibling",get:function(){return null}},{key:"previousSibling",get:function(){return null}},{key:"firstChild",get:function(){return this.childNodes.length>0?this.childNodes[0]:null}},{key:"lastChild",get:function(){return this.childNodes.length>0?this.childNodes[this.childNodes.length-1]:null}},{key:"compareDocumentPosition",value:function(t){if(t===this)return 0;for(var n=t,r=this,i=[n],A=[r];null!==(o=n.parentNode)&&void 0!==o?o:r.parentNode;){var o;n=n.parentNode?(i.push(n.parentNode),n.parentNode):n,r=r.parentNode?(A.push(r.parentNode),r.parentNode):r}if(n!==r)return e.DOCUMENT_POSITION_DISCONNECTED|e.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC|e.DOCUMENT_POSITION_PRECEDING;var a=i.length>A.length?i:A,s=a===i?A:i;if(a[a.length-s.length]===s[0])return a===i?e.DOCUMENT_POSITION_CONTAINED_BY|e.DOCUMENT_POSITION_FOLLOWING:e.DOCUMENT_POSITION_CONTAINS|e.DOCUMENT_POSITION_PRECEDING;for(var l=a.length-s.length,c=s.length-1;c>=0;c--){var u=s[c],d=a[l+c];if(d!==u){var f=u.parentNode.childNodes;return f.indexOf(u)<f.indexOf(d)?s===i?e.DOCUMENT_POSITION_PRECEDING:e.DOCUMENT_POSITION_FOLLOWING:a===i?e.DOCUMENT_POSITION_PRECEDING:e.DOCUMENT_POSITION_FOLLOWING}}return e.DOCUMENT_POSITION_FOLLOWING}},{key:"contain",value:function(t){return this.contains(t)}},{key:"contains",value:function(t){for(var e=t;e&&this!==e;)e=e.parentNode;return!!e}},{key:"getAncestor",value:function(t){for(var e=this;t>0&&e;)e=e.parentNode,t--;return e}},{key:"forEach",value:function(t){for(var e=[this];e.length>0;){var n=e.pop();if(!1===t(n))break;for(var r=n.childNodes.length-1;r>=0;r--)e.push(n.childNodes[r])}}}],[{key:"isNode",value:function(t){return!!t.childNodes}}])}(sA);lA.DOCUMENT_POSITION_DISCONNECTED=1,lA.DOCUMENT_POSITION_PRECEDING=2,lA.DOCUMENT_POSITION_FOLLOWING=4,lA.DOCUMENT_POSITION_CONTAINS=8,lA.DOCUMENT_POSITION_CONTAINED_BY=16,lA.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC=32;var cA=function(){return(0,A.A)(function t(e,n){var r=this;(0,i.A)(this,t),this.nativeHTMLMap=new WeakMap,this.cursor="default",this.mappingTable={},this.mappingState={trackingData:{}},this.eventPool=new Map,this.tmpMatrix=f.vt(),this.tmpVec3=u.vt(),this.onPointerDown=function(t){var e=r.createPointerEvent(t);r.dispatchEvent(e,"pointerdown"),"touch"===e.pointerType?r.dispatchEvent(e,"touchstart"):"mouse"!==e.pointerType&&"pen"!==e.pointerType||r.dispatchEvent(e,2===e.button?"rightdown":"mousedown"),r.trackingData(t.pointerId).pressTargetsByButton[t.button]=e.composedPath(),r.freeEvent(e)},this.onPointerUp=function(t){var e=hi.now(),n=r.createPointerEvent(t,void 0,void 0,r.context.config.alwaysTriggerPointerEventOnCanvas?r.rootTarget:void 0);r.dispatchEvent(n,"pointerup"),"touch"===n.pointerType?r.dispatchEvent(n,"touchend"):"mouse"!==n.pointerType&&"pen"!==n.pointerType||r.dispatchEvent(n,2===n.button?"rightup":"mouseup");var i=r.trackingData(t.pointerId),A=r.findMountedTarget(i.pressTargetsByButton[t.button]),o=A;if(A&&!n.composedPath().includes(A)){for(var a=A;a&&!n.composedPath().includes(a);)n.currentTarget=a,r.notifyTarget(n,"pointerupoutside"),"touch"===n.pointerType?r.notifyTarget(n,"touchendoutside"):"mouse"!==n.pointerType&&"pen"!==n.pointerType||r.notifyTarget(n,2===n.button?"rightupoutside":"mouseupoutside"),lA.isNode(a)&&(a=a.parentNode);delete i.pressTargetsByButton[t.button],o=a}if(o){var s,l=r.clonePointerEvent(n,"click");l.target=o,l.path=[],i.clicksByButton[t.button]||(i.clicksByButton[t.button]={clickCount:0,target:l.target,timeStamp:e});var c=i.clicksByButton[t.button];c.target===l.target&&e-c.timeStamp<r.context.renderingContext.root.ownerDocument.defaultView.getConfig().dblClickSpeed?++c.clickCount:c.clickCount=1,c.target=l.target,c.timeStamp=e,l.detail=c.clickCount,null!==(s=n.detail)&&void 0!==s&&s.preventClick||(r.context.config.useNativeClickEvent||"mouse"!==l.pointerType&&"touch"!==l.pointerType||r.dispatchEvent(l,"click"),r.dispatchEvent(l,"pointertap")),r.freeEvent(l)}r.freeEvent(n)},this.onPointerMove=function(t){var e=r.createPointerEvent(t,void 0,void 0,r.context.config.alwaysTriggerPointerEventOnCanvas?r.rootTarget:void 0),n="mouse"===e.pointerType||"pen"===e.pointerType,i=r.trackingData(t.pointerId),A=r.findMountedTarget(i.overTargets);if(i.overTargets&&A!==e.target){var o=r.createPointerEvent(t,"mousemove"===t.type?"mouseout":"pointerout",A||void 0);if(r.dispatchEvent(o,"pointerout"),n&&r.dispatchEvent(o,"mouseout"),!e.composedPath().includes(A)){var a=r.createPointerEvent(t,"pointerleave",A||void 0);for(a.eventPhase=a.AT_TARGET;a.target&&!e.composedPath().includes(a.target);)a.currentTarget=a.target,r.notifyTarget(a),n&&r.notifyTarget(a,"mouseleave"),lA.isNode(a.target)&&(a.target=a.target.parentNode);r.freeEvent(a)}r.freeEvent(o)}if(A!==e.target){var s=r.clonePointerEvent(e,"mousemove"===t.type?"mouseover":"pointerover");r.dispatchEvent(s,"pointerover"),n&&r.dispatchEvent(s,"mouseover");for(var l=A&&lA.isNode(A)&&A.parentNode;l&&l!==(lA.isNode(r.rootTarget)&&r.rootTarget.parentNode)&&l!==e.target;)l=l.parentNode;if(!l||l===(lA.isNode(r.rootTarget)&&r.rootTarget.parentNode)){var c=r.clonePointerEvent(e,"pointerenter");for(c.eventPhase=c.AT_TARGET;c.target&&c.target!==A&&c.target!==(lA.isNode(r.rootTarget)&&r.rootTarget.parentNode);)c.currentTarget=c.target,r.notifyTarget(c),n&&r.notifyTarget(c,"mouseenter"),lA.isNode(c.target)&&(c.target=c.target.parentNode);r.freeEvent(c)}r.freeEvent(s)}r.dispatchEvent(e,"pointermove"),"touch"===e.pointerType&&r.dispatchEvent(e,"touchmove"),n&&(r.dispatchEvent(e,"mousemove"),r.cursor=r.getCursor(e.target)),i.overTargets=e.composedPath(),r.freeEvent(e)},this.onPointerOut=function(t){var e=r.trackingData(t.pointerId);if(e.overTargets){var n="mouse"===t.pointerType||"pen"===t.pointerType,i=r.findMountedTarget(e.overTargets),A=r.createPointerEvent(t,"pointerout",i||void 0);r.dispatchEvent(A),n&&r.dispatchEvent(A,"mouseout");var o=r.createPointerEvent(t,"pointerleave",i||void 0);for(o.eventPhase=o.AT_TARGET;o.target&&o.target!==(lA.isNode(r.rootTarget)&&r.rootTarget.parentNode);)o.currentTarget=o.target,r.notifyTarget(o),n&&r.notifyTarget(o,"mouseleave"),lA.isNode(o.target)&&(o.target=o.target.parentNode);e.overTargets=null,r.freeEvent(A),r.freeEvent(o)}r.cursor=null},this.onPointerOver=function(t){var e=r.trackingData(t.pointerId),n=r.createPointerEvent(t),i="mouse"===n.pointerType||"pen"===n.pointerType;r.dispatchEvent(n,"pointerover"),i&&r.dispatchEvent(n,"mouseover"),"mouse"===n.pointerType&&(r.cursor=r.getCursor(n.target));var A=r.clonePointerEvent(n,"pointerenter");for(A.eventPhase=A.AT_TARGET;A.target&&A.target!==(lA.isNode(r.rootTarget)&&r.rootTarget.parentNode);)A.currentTarget=A.target,r.notifyTarget(A),i&&r.notifyTarget(A,"mouseenter"),lA.isNode(A.target)&&(A.target=A.target.parentNode);e.overTargets=n.composedPath(),r.freeEvent(n),r.freeEvent(A)},this.onPointerUpOutside=function(t){var e=r.trackingData(t.pointerId),n=r.findMountedTarget(e.pressTargetsByButton[t.button]),i=r.createPointerEvent(t);if(n){for(var A=n;A;)i.currentTarget=A,r.notifyTarget(i,"pointerupoutside"),"touch"===i.pointerType||"mouse"!==i.pointerType&&"pen"!==i.pointerType||r.notifyTarget(i,2===i.button?"rightupoutside":"mouseupoutside"),lA.isNode(A)&&(A=A.parentNode);delete e.pressTargetsByButton[t.button]}r.freeEvent(i)},this.onWheel=function(t){var e=r.createWheelEvent(t);r.dispatchEvent(e),r.freeEvent(e)},this.onClick=function(t){if(r.context.config.useNativeClickEvent){var e=r.createPointerEvent(t);r.dispatchEvent(e),r.freeEvent(e)}},this.onPointerCancel=function(t){var e=r.createPointerEvent(t,void 0,void 0,r.context.config.alwaysTriggerPointerEventOnCanvas?r.rootTarget:void 0);r.dispatchEvent(e),r.freeEvent(e)},this.globalRuntime=e,this.context=n},[{key:"init",value:function(){this.rootTarget=this.context.renderingContext.root.parentNode,this.addEventMapping("pointerdown",this.onPointerDown),this.addEventMapping("pointerup",this.onPointerUp),this.addEventMapping("pointermove",this.onPointerMove),this.addEventMapping("pointerout",this.onPointerOut),this.addEventMapping("pointerleave",this.onPointerOut),this.addEventMapping("pointercancel",this.onPointerCancel),this.addEventMapping("pointerover",this.onPointerOver),this.addEventMapping("pointerupoutside",this.onPointerUpOutside),this.addEventMapping("wheel",this.onWheel),this.addEventMapping("click",this.onClick)}},{key:"destroy",value:function(){this.mappingTable={},this.mappingState={},this.eventPool.clear()}},{key:"getScale",value:function(){var t=this.context.contextService.getBoundingClientRect(),e=1,n=1,r=this.context.contextService.getDomElement();if(r&&t){var i=r.offsetWidth,A=r.offsetHeight;i&&A&&(e=t.width/i,n=t.height/A)}return{scaleX:e,scaleY:n,bbox:t}}},{key:"client2Viewport",value:function(t){var e=this.getScale(),n=e.bbox;return new Pt((t.x-((null==n?void 0:n.left)||0))/e.scaleX,(t.y-((null==n?void 0:n.top)||0))/e.scaleY)}},{key:"viewport2Client",value:function(t){var e=this.getScale(),n=e.bbox;return new Pt((t.x+((null==n?void 0:n.left)||0))*e.scaleX,(t.y+((null==n?void 0:n.top)||0))*e.scaleY)}},{key:"viewport2Canvas",value:function(t){var e=t.x,n=t.y,r=this.rootTarget.defaultView.getCamera(),i=this.context.config,A=i.width,o=i.height,a=r.getPerspectiveInverse(),s=r.getWorldTransform(),l=f.lw(this.tmpMatrix,s,a),c=u.hZ(this.tmpVec3,e/A*2-1,2*(1-n/o)-1,0);return u.Z0(c,c,l),new Pt(c[0],c[1])}},{key:"canvas2Viewport",value:function(t){var e=this.rootTarget.defaultView.getCamera(),n=e.getPerspective(),r=e.getViewTransform(),i=f.lw(this.tmpMatrix,n,r),A=u.hZ(this.tmpVec3,t.x,t.y,0);u.Z0(this.tmpVec3,this.tmpVec3,i);var o=this.context.config;return new Pt((A[0]+1)/2*o.width,(1-(A[1]+1)/2)*o.height)}},{key:"setPickHandler",value:function(t){this.pickHandler=t}},{key:"addEventMapping",value:function(t,e){this.mappingTable[t]||(this.mappingTable[t]=[]),this.mappingTable[t].push({fn:e,priority:0}),this.mappingTable[t].sort(function(t,e){return t.priority-e.priority})}},{key:"mapEvent",value:function(t){if(this.rootTarget){var e=this.mappingTable[t.type];if(e)for(var n=0,r=e.length;n<r;n++)e[n].fn(t);else console.warn("[EventService]: Event mapping not defined for ".concat(t.type))}}},{key:"dispatchEvent",value:function(t,e,n){n?(t.eventPhase=t.AT_TARGET,t.currentTarget=this.rootTarget.defaultView||null,this.notifyListeners(t,e)):(t.propagationStopped=!1,t.propagationImmediatelyStopped=!1,this.propagate(t,e))}},{key:"propagate",value:function(t,e){if(t.target){var n=t.composedPath();t.eventPhase=t.CAPTURING_PHASE;for(var r=n.length-1;r>=1;r--)if(t.currentTarget=n[r],this.notifyTarget(t,e),t.propagationStopped||t.propagationImmediatelyStopped)return;if(t.eventPhase=t.AT_TARGET,t.currentTarget=t.target,this.notifyTarget(t,e),!t.propagationStopped&&!t.propagationImmediatelyStopped){var i=n.indexOf(t.currentTarget);t.eventPhase=t.BUBBLING_PHASE;for(var A=i+1;A<n.length;A++)if(t.currentTarget=n[A],this.notifyTarget(t,e),t.propagationStopped||t.propagationImmediatelyStopped)return}}}},{key:"propagationPath",value:function(t){var e=[t],n=this.rootTarget.defaultView||null;if(n&&n===t)return e.unshift(n.document),e;for(var r=0;r<2048&&t!==this.rootTarget;r++)lA.isNode(t)&&t.parentNode&&(e.push(t.parentNode),t=t.parentNode);return n&&e.push(n),e}},{key:"hitTest",value:function(t){var e=t.viewportX,n=t.viewportY,r=this.context.config;return e<0||n<0||e>r.width||n>r.height?null:!r.disableHitTesting&&this.pickHandler(t)||this.rootTarget||null}},{key:"isNativeEventFromCanvas",value:function(t,e){var n,r=null==e?void 0:e.target;if(null!==(n=r)&&void 0!==n&&n.shadowRoot&&(r=e.composedPath()[0]),r){if(r===t)return!0;if(t&&t.contains)return t.contains(r)}return!(null==e||!e.composedPath)&&e.composedPath().indexOf(t)>-1}},{key:"getExistedHTML",value:function(t){if(t.nativeEvent.composedPath)for(var e=0,n=t.nativeEvent.composedPath();e<n.length;e++){var r=this.nativeHTMLMap.get(n[e]);if(r)return r}return null}},{key:"pickTarget",value:function(t){return this.hitTest({clientX:t.clientX,clientY:t.clientY,viewportX:t.viewportX,viewportY:t.viewportY,x:t.canvasX,y:t.canvasY})}},{key:"createPointerEvent",value:function(t,e,n,r){var i=this.allocateEvent(AA);this.copyPointerData(t,i),this.copyMouseData(t,i),this.copyData(t,i),i.nativeEvent=t.nativeEvent,i.originalEvent=t;var A=this.getExistedHTML(i),o=this.context.contextService.getDomElement();return i.target=null!=n?n:A||this.isNativeEventFromCanvas(o,i.nativeEvent)&&this.pickTarget(i)||r,"string"==typeof e&&(i.type=e),i}},{key:"createWheelEvent",value:function(t){var e=this.allocateEvent(oA);this.copyWheelData(t,e),this.copyMouseData(t,e),this.copyData(t,e),e.nativeEvent=t.nativeEvent,e.originalEvent=t;var n=this.getExistedHTML(e),r=this.context.contextService.getDomElement();return e.target=n||this.isNativeEventFromCanvas(r,e.nativeEvent)&&this.pickTarget(e),e}},{key:"trackingData",value:function(t){return this.mappingState.trackingData[t]||(this.mappingState.trackingData[t]={pressTargetsByButton:{},clicksByButton:{},overTarget:null}),this.mappingState.trackingData[t]}},{key:"cloneWheelEvent",value:function(t){var e=this.allocateEvent(oA);return e.nativeEvent=t.nativeEvent,e.originalEvent=t.originalEvent,this.copyWheelData(t,e),this.copyMouseData(t,e),this.copyData(t,e),e.target=t.target,e.path=t.composedPath().slice(),e.type=t.type,e}},{key:"clonePointerEvent",value:function(t,e){var n=this.allocateEvent(AA);return n.nativeEvent=t.nativeEvent,n.originalEvent=t.originalEvent,this.copyPointerData(t,n),this.copyMouseData(t,n),this.copyData(t,n),n.target=t.target,n.path=t.composedPath().slice(),n.type=null!=e?e:n.type,n}},{key:"copyPointerData",value:function(t,e){e.pointerId=t.pointerId,e.width=t.width,e.height=t.height,e.isPrimary=t.isPrimary,e.pointerType=t.pointerType,e.pressure=t.pressure,e.tangentialPressure=t.tangentialPressure,e.tiltX=t.tiltX,e.tiltY=t.tiltY,e.twist=t.twist}},{key:"copyMouseData",value:function(t,e){e.altKey=t.altKey,e.button=t.button,e.buttons=t.buttons,e.ctrlKey=t.ctrlKey,e.metaKey=t.metaKey,e.shiftKey=t.shiftKey,e.client.copyFrom(t.client),e.movement.copyFrom(t.movement),e.canvas.copyFrom(t.canvas),e.screen.copyFrom(t.screen),e.global.copyFrom(t.global),e.offset.copyFrom(t.offset)}},{key:"copyWheelData",value:function(t,e){e.deltaMode=t.deltaMode,e.deltaX=t.deltaX,e.deltaY=t.deltaY,e.deltaZ=t.deltaZ}},{key:"copyData",value:function(t,e){e.isTrusted=t.isTrusted,e.timeStamp=hi.now(),e.type=t.type,e.detail=t.detail,e.view=t.view,e.page.copyFrom(t.page),e.viewport.copyFrom(t.viewport)}},{key:"allocateEvent",value:function(t){this.eventPool.has(t)||this.eventPool.set(t,[]);var e=this.eventPool.get(t).pop()||new t(this);return e.eventPhase=e.NONE,e.currentTarget=null,e.path=[],e.target=null,e}},{key:"freeEvent",value:function(t){if(t.manager!==this)throw new Error("It is illegal to free an event not managed by this EventBoundary!");var e=t.constructor;this.eventPool.has(e)||this.eventPool.set(e,[]),this.eventPool.get(e).push(t)}},{key:"notifyTarget",value:function(t,e){e=null!=e?e:t.type;var n=t.eventPhase===t.CAPTURING_PHASE||t.eventPhase===t.AT_TARGET?"".concat(e,"capture"):e;this.notifyListeners(t,n),t.eventPhase===t.AT_TARGET&&this.notifyListeners(t,e)}},{key:"notifyListeners",value:function(t,e){var n=t.currentTarget.emitter,r=n._events[e];if(r)if("fn"in r)r.once&&n.removeListener(e,r.fn,void 0,!0),r.fn.call(t.currentTarget||r.context,t);else for(var i=0;i<r.length&&!t.propagationImmediatelyStopped;i++)r[i].once&&n.removeListener(e,r[i].fn,void 0,!0),r[i].fn.call(t.currentTarget||r[i].context,t)}},{key:"findMountedTarget",value:function(t){if(!t)return null;for(var e=t[t.length-1],n=t.length-2;n>=0;n--){var r=t[n];if(!(r===this.rootTarget||lA.isNode(r)&&r.parentNode===e))break;e=t[n]}return e}},{key:"getCursor",value:function(t){for(var e=t;e;){var n=si(e)&&e.getAttribute("cursor");if(n)return n;e=lA.isNode(e)&&e.parentNode}}}])}(),uA=function(){return(0,A.A)(function t(){(0,i.A)(this,t)},[{key:"getOrCreateCanvas",value:function(t,e){if(this.canvas)return this.canvas;if(t||VA.offscreenCanvas)this.canvas=t||VA.offscreenCanvas,this.context=this.canvas.getContext("2d",(0,r.A)({willReadFrequently:!0},e));else try{this.canvas=new window.OffscreenCanvas(0,0),this.context=this.canvas.getContext("2d",(0,r.A)({willReadFrequently:!0},e)),this.context&&this.context.measureText||(this.canvas=document.createElement("canvas"),this.context=this.canvas.getContext("2d"))}catch(t){this.canvas=document.createElement("canvas"),this.context=this.canvas.getContext("2d",(0,r.A)({willReadFrequently:!0},e))}return this.canvas.width=10,this.canvas.height=10,this.canvas}},{key:"getOrCreateContext",value:function(t,e){return this.context||this.getOrCreateCanvas(t,e),this.context}}],[{key:"createCanvas",value:function(){try{return new window.OffscreenCanvas(0,0)}catch(t){}try{return document.createElement("canvas")}catch(t){}return null}}])}(),dA=function(t){return t[t.CAMERA_CHANGED=0]="CAMERA_CHANGED",t[t.DISPLAY_OBJECT_CHANGED=1]="DISPLAY_OBJECT_CHANGED",t[t.NONE=2]="NONE",t}({}),fA=function(){return(0,A.A)(function t(e,n){(0,i.A)(this,t),this.inited=!1,this.stats={total:0,rendered:0},this.zIndexCounter=0,this.hooks={init:new Mi,initAsync:new Fi,dirtycheck:new Ui,cull:new Ui,beginFrame:new Mi,beforeRender:new Mi,render:new Mi,afterRender:new Mi,endFrame:new Mi,destroy:new Mi,pick:new Qi,pickSync:new Ui,pointerDown:new Mi,pointerUp:new Mi,pointerMove:new Mi,pointerOut:new Mi,pointerOver:new Mi,pointerWheel:new Mi,pointerCancel:new Mi,click:new Mi},this.globalRuntime=e,this.context=n},[{key:"init",value:function(t){var e=this,n=(0,r.A)((0,r.A)({},this.globalRuntime),this.context);this.context.renderingPlugins.forEach(function(t){t.apply(n,e.globalRuntime)}),this.hooks.init.call(),0===this.hooks.initAsync.getCallbacksNum()?(this.inited=!0,t()):this.hooks.initAsync.promise().then(function(){e.inited=!0,t()}).catch(function(t){})}},{key:"getStats",value:function(){return this.stats}},{key:"disableDirtyRectangleRendering",value:function(){return!this.context.config.renderer.getConfig().enableDirtyRectangleRendering||this.context.renderingContext.renderReasons.has(dA.CAMERA_CHANGED)}},{key:"render",value:function(t,e,n){var r=this,i=t.getConfig(),A=this.context.renderingContext;if(this.stats.total=0,this.stats.rendered=0,this.zIndexCounter=0,this.globalRuntime.sceneGraphService.syncHierarchy(A.root),this.globalRuntime.sceneGraphService.notifyMutationObservers(t),A.renderReasons.size&&this.inited){A.dirtyRectangleRenderingDisabled=this.disableDirtyRectangleRendering();var o=1===A.renderReasons.size&&A.renderReasons.has(dA.CAMERA_CHANGED),a=!i.disableRenderHooks||!o;a&&this.renderDisplayObject(A.root,i,A),this.hooks.beginFrame.call(e),a&&A.renderListCurrentFrame.forEach(function(t){r.hooks.beforeRender.call(t),r.hooks.render.call(t),r.hooks.afterRender.call(t)}),this.hooks.endFrame.call(e),A.renderListCurrentFrame=[],A.renderReasons.clear(),n()}}},{key:"renderDisplayObject",value:function(t,e,n){var r=this,i=e.renderer.getConfig(),A=i.enableDirtyCheck,o=i.enableCulling;function a(t){var e=t.sortable,i=A?t.renderable.dirty||n.dirtyRectangleRenderingDisabled?t:null:t,a=null;i&&(a=o?r.hooks.cull.call(i,r.context.camera):i)&&(r.stats.rendered+=1,n.renderListCurrentFrame.push(a)),t.dirty(!1),e.renderOrder=r.zIndexCounter,r.zIndexCounter+=1,r.stats.total+=1,e.dirty&&(r.sort(t,e),e.dirty=!1,e.dirtyChildren=[],e.dirtyReason=void 0)}for(var s=[t];s.length>0;){var l,c=s.pop();a(c);for(var u=(null===(l=c.sortable)||void 0===l||null===(l=l.sorted)||void 0===l?void 0:l.length)>0?c.sortable.sorted:c.childNodes,d=u.length-1;d>=0;d--)s.push(u[d])}}},{key:"sort",value:function(t,e){var n,r;(null==e||null===(n=e.sorted)||void 0===n?void 0:n.length)>0&&e.dirtyReason!==ce.Z_INDEX_CHANGED?e.dirtyChildren.forEach(function(n){var r=e.sorted.indexOf(n);if(r>-1&&e.sorted.splice(r,1),t.childNodes.indexOf(n)>-1)if(0===e.sorted.length)e.sorted.push(n);else{var i=function(t,e){for(var n=0,r=t.length;n<r;){var i=n+r>>>1;li(t[i],e)<0?n=i+1:r=i}return n}(e.sorted,n);e.sorted.splice(i,0,n)}}):e.sorted=t.childNodes.slice().sort(li),(null===(r=e.sorted)||void 0===r?void 0:r.length)>0&&0===t.childNodes.filter(function(t){return t.parsedStyle.zIndex}).length&&(e.sorted=[])}},{key:"destroy",value:function(){this.inited=!1,this.hooks.destroy.call()}},{key:"dirty",value:function(){this.context.renderingContext.renderReasons.add(dA.DISPLAY_OBJECT_CHANGED)}}])}(),hA=/\[\s*(.*)=(.*)\s*\]/,pA=function(){return(0,A.A)(function t(){(0,i.A)(this,t)},[{key:"selectOne",value:function(t,e){var n=this;if(t.startsWith("."))return e.find(function(e){return((null==e?void 0:e.classList)||[]).indexOf(n.getIdOrClassname(t))>-1});if(t.startsWith("#"))return e.find(function(e){return e.id===n.getIdOrClassname(t)});if(t.startsWith("[")){var r=this.getAttribute(t),i=r.name,A=r.value;return i?e.find(function(t){return e!==t&&("name"===i?t.name===A:n.attributeToString(t,i)===A)}):null}return e.find(function(n){return e!==n&&n.nodeName===t})}},{key:"selectAll",value:function(t,e){var n=this;if(t.startsWith("."))return e.findAll(function(r){return e!==r&&((null==r?void 0:r.classList)||[]).indexOf(n.getIdOrClassname(t))>-1});if(t.startsWith("#"))return e.findAll(function(r){return e!==r&&r.id===n.getIdOrClassname(t)});if(t.startsWith("[")){var r=this.getAttribute(t),i=r.name,A=r.value;return i?e.findAll(function(t){return e!==t&&("name"===i?t.name===A:n.attributeToString(t,i)===A)}):[]}return e.findAll(function(n){return e!==n&&n.nodeName===t})}},{key:"is",value:function(t,e){if(t.startsWith("."))return e.className===this.getIdOrClassname(t);if(t.startsWith("#"))return e.id===this.getIdOrClassname(t);if(t.startsWith("[")){var n=this.getAttribute(t),r=n.name,i=n.value;return"name"===r?e.name===i:this.attributeToString(e,r)===i}return e.nodeName===t}},{key:"getIdOrClassname",value:function(t){return t.substring(1)}},{key:"getAttribute",value:function(t){var e=t.match(hA),n="",r="";return e&&e.length>2&&(n=e[1].replace(/"/g,""),r=e[2].replace(/"/g,"")),{name:n,value:r}}},{key:"attributeToString",value:function(t,e){if(!t.getAttribute)return"";var n=t.getAttribute(e);return(0,b.A)(n)?"":n.toString?n.toString():""}}])}(),gA=function(t){return t.ATTR_MODIFIED="DOMAttrModified",t.INSERTED="DOMNodeInserted",t.MOUNTED="DOMNodeInsertedIntoDocument",t.REMOVED="removed",t.UNMOUNTED="DOMNodeRemovedFromDocument",t.REPARENT="reparent",t.DESTROY="destroy",t.BOUNDS_CHANGED="bounds-changed",t.CULLED="culled",t}({}),mA=function(t){function e(t,n,r,A,o,s,l,c){var u;return(0,i.A)(this,e),(u=(0,a.A)(this,e,[null])).relatedNode=n,u.prevValue=r,u.newValue=A,u.attrName=o,u.attrChange=s,u.prevParsedValue=l,u.newParsedValue=c,u.type=t,u}return(0,s.A)(e,t),(0,A.A)(e)}(rA);mA.ADDITION=2,mA.MODIFICATION=1,mA.REMOVAL=3;var yA,vA,bA,wA=new mA(gA.REPARENT,null,"","","",0,"",""),BA=m.vt(),xA=u.vt(),CA=u.fA(1,1,1),EA=f.vt(),OA=m.vt(),kA=u.vt(),FA=f.vt(),QA=g.vt(),MA=u.vt(),UA=g.vt(),SA=u.vt(),_A=u.vt(),IA=u.vt(),TA=f.vt(),LA=g.vt(),PA=g.vt(),jA=g.vt(),HA=function(){return(0,A.A)(function t(e){(0,i.A)(this,t),this.displayObjectDependencyMap=new WeakMap,this.runtime=e},[{key:"matches",value:function(t,e){return this.runtime.sceneGraphSelector.is(t,e)}},{key:"querySelector",value:function(t,e){return this.runtime.sceneGraphSelector.selectOne(t,e)}},{key:"querySelectorAll",value:function(t,e){return this.runtime.sceneGraphSelector.selectAll(t,e)}},{key:"attach",value:function(t,e,n){var r,i=!1;t.parentNode&&(i=t.parentNode!==e,this.detach(t));var A=t.nodeName===xt.FRAGMENT,o=pi(e);t.parentNode=e;var a=A?t.childNodes:[t];(0,y.A)(n)?a.forEach(function(t){e.childNodes.splice(n,0,t),t.parentNode=e}):a.forEach(function(t){e.childNodes.push(t),t.parentNode=e});var s=e.sortable;if((null!=s&&null!==(r=s.sorted)&&void 0!==r&&r.length||s.dirty||t.parsedStyle.zIndex)&&(-1===s.dirtyChildren.indexOf(t)&&s.dirtyChildren.push(t),s.dirty=!0,s.dirtyReason=ce.ADDED),!o){if(A)this.dirtyFragment(t);else{var l=t.transformable;l&&this.dirtyWorldTransform(t,l)}if(i){var c,u=!0===(null===(c=e.ownerDocument)||void 0===c||null===(c=c.defaultView)||void 0===c||null===(c=c.getConfig())||void 0===c||null===(c=c.future)||void 0===c?void 0:c.experimentalCancelEventPropagation);t.dispatchEvent(wA,u,u)}}}},{key:"detach",value:function(t){var e,n;if(t.parentNode){var r=t.transformable,i=t.parentNode.sortable;(null!=i&&null!==(e=i.sorted)&&void 0!==e&&e.length||null!==(n=t.style)&&void 0!==n&&n.zIndex)&&(-1===i.dirtyChildren.indexOf(t)&&i.dirtyChildren.push(t),i.dirty=!0,i.dirtyReason=ce.REMOVED);var A=t.parentNode.childNodes.indexOf(t);A>-1&&t.parentNode.childNodes.splice(A,1),r&&this.dirtyWorldTransform(t,r),t.parentNode=null}}},{key:"getLocalPosition",value:function(t){return t.transformable.localPosition}},{key:"getLocalRotation",value:function(t){return t.transformable.localRotation}},{key:"getLocalScale",value:function(t){return t.transformable.localScale}},{key:"getLocalSkew",value:function(t){return t.transformable.localSkew}},{key:"getLocalTransform",value:function(t){var e=t.transformable;return he(e),e.localTransform}},{key:"setLocalPosition",value:function(t,e){var n,r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=t.transformable;_A[0]=e[0],_A[1]=e[1],_A[2]=null!==(n=e[2])&&void 0!==n?n:0,u.aI(i.localPosition,_A)||(u.C(i.localPosition,_A),r&&this.dirtyLocalTransform(t,i))}},{key:"translateLocal",value:function(t,e){"number"==typeof e&&(e=u.fA(e,arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,arguments.length>3&&void 0!==arguments[3]?arguments[3]:0));var n=t.transformable;u.aI(e,xA)||(u.gL(e,e,n.localRotation),u.WQ(n.localPosition,n.localPosition,e),this.dirtyLocalTransform(t,n))}},{key:"setLocalRotation",value:function(t,e,n,r,i){var A=!(arguments.length>5&&void 0!==arguments[5])||arguments[5];"number"==typeof e&&(e=g.hZ(QA,e,n,r,i));var o=t.transformable;g.C(o.localRotation,e),A&&this.dirtyLocalTransform(t,o)}},{key:"rotateLocal",value:function(t,e){"number"==typeof e&&(e=u.fA(e,arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,arguments.length>3&&void 0!==arguments[3]?arguments[3]:0));var n=t.transformable;g.A6(PA,e[0],e[1],e[2]),g.lK(n.localRotation,n.localRotation,PA),this.dirtyLocalTransform(t,n)}},{key:"setLocalScale",value:function(t,e){var n,r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=t.transformable;u.hZ(kA,e[0],e[1],null!==(n=e[2])&&void 0!==n?n:i.localScale[2]),u.aI(kA,i.localScale)||(u.C(i.localScale,kA),r&&this.dirtyLocalTransform(t,i))}},{key:"scaleLocal",value:function(t,e){var n,r=t.transformable;u.lw(r.localScale,r.localScale,u.hZ(kA,e[0],e[1],null!==(n=e[2])&&void 0!==n?n:1)),this.dirtyLocalTransform(t,r)}},{key:"setLocalSkew",value:function(t,e,n){var r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];"number"==typeof e&&(e=m.hZ(OA,e,n));var i=t.transformable;m.C(i.localSkew,e),r&&this.dirtyLocalTransform(t,i)}},{key:"setLocalEulerAngles",value:function(t,e){var n=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];"number"==typeof e&&(e=u.fA(e,arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,arguments.length>3&&void 0!==arguments[3]?arguments[3]:0));var r=t.transformable;g.A6(r.localRotation,e[0],e[1],e[2]),n&&this.dirtyLocalTransform(t,r)}},{key:"setLocalTransform",value:function(t,e){var n=f.sC(MA,e),r=f.l(UA,e),i=f.IL(SA,e);this.setLocalScale(t,i,!1),this.setLocalPosition(t,n,!1),this.setLocalRotation(t,r,void 0,void 0,void 0,!1),this.dirtyLocalTransform(t,t.transformable)}},{key:"resetLocalTransform",value:function(t){this.setLocalScale(t,CA,!1),this.setLocalPosition(t,xA,!1),this.setLocalEulerAngles(t,xA,void 0,void 0,!1),this.setLocalSkew(t,BA,void 0,!1),this.dirtyLocalTransform(t,t.transformable)}},{key:"getPosition",value:function(t){var e=t.transformable;return f.sC(e.position,this.getWorldTransform(t,e))}},{key:"getRotation",value:function(t){var e=t.transformable;return f.l(e.rotation,this.getWorldTransform(t,e))}},{key:"getScale",value:function(t){var e=t.transformable;return f.IL(e.scaling,this.getWorldTransform(t,e))}},{key:"getOrigin",value:function(t){return t.getGeometryBounds(),t.transformable.origin}},{key:"getWorldTransform",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.transformable;return e.localDirtyFlag||e.dirtyFlag?(t.parentNode&&t.parentNode.transformable&&this.getWorldTransform(t.parentNode),this.internalUpdateTransform(t),e.worldTransform):e.worldTransform}},{key:"setPosition",value:function(t,e){var n,r=t.transformable;IA[0]=e[0],IA[1]=e[1],IA[2]=null!==(n=e[2])&&void 0!==n?n:0,u.aI(this.getPosition(t),IA)||(u.C(r.position,IA),null!==t.parentNode&&t.parentNode.transformable?(f.C(TA,t.parentNode.transformable.worldTransform),f.B8(TA,TA),u.Z0(r.localPosition,IA,TA)):u.C(r.localPosition,IA),this.dirtyLocalTransform(t,r))}},{key:"translate",value:function(t,e){"number"==typeof e&&(e=u.hZ(kA,e,arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,arguments.length>3&&void 0!==arguments[3]?arguments[3]:0)),u.aI(e,xA)||(u.WQ(kA,this.getPosition(t),e),this.setPosition(t,kA))}},{key:"setRotation",value:function(t,e,n,r,i){var A=t.transformable;if("number"==typeof e&&(e=g.fA(e,n,r,i)),null!==t.parentNode&&t.parentNode.transformable){var o=this.getRotation(t.parentNode);g.C(QA,o),g.B8(QA,QA),g.lw(A.localRotation,QA,e),g.S8(A.localRotation,A.localRotation),this.dirtyLocalTransform(t,A)}else this.setLocalRotation(t,e)}},{key:"rotate",value:function(t,e){"number"==typeof e&&(e=u.fA(e,arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,arguments.length>3&&void 0!==arguments[3]?arguments[3]:0));var n=t.transformable;if(null!==t.parentNode&&t.parentNode.transformable){var r=QA;g.A6(r,e[0],e[1],e[2]);var i=this.getRotation(t),A=this.getRotation(t.parentNode);g.C(jA,A),g.B8(jA,jA),g.lw(r,jA,r),g.lw(n.localRotation,r,i),g.S8(n.localRotation,n.localRotation),this.dirtyLocalTransform(t,n)}else this.rotateLocal(t,e)}},{key:"setOrigin",value:function(t,e){"number"==typeof e&&(e=[e,arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,arguments.length>3&&void 0!==arguments[3]?arguments[3]:0]);var n=t.transformable;if(e[0]!==n.origin[0]||e[1]!==n.origin[1]||e[2]!==n.origin[2]){var r=n.origin;r[0]=e[0],r[1]=e[1],r[2]=e[2]||0,this.dirtyLocalTransform(t,n)}}},{key:"setEulerAngles",value:function(t,e){"number"==typeof e&&(e=u.fA(e,arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,arguments.length>3&&void 0!==arguments[3]?arguments[3]:0));var n=t.transformable;if(null!==t.parentNode&&t.parentNode.transformable){g.A6(n.localRotation,e[0],e[1],e[2]);var r=this.getRotation(t.parentNode);g.C(LA,g.B8(QA,r)),g.lK(n.localRotation,n.localRotation,LA),this.dirtyLocalTransform(t,n)}else this.setLocalEulerAngles(t,e)}},{key:"getGeometryBounds",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=t.geometry;return n.dirty&&VA.styleValueRegistry.updateGeometry(t),(e?n.renderBounds:n.contentBounds||null)||new _t}},{key:"getTransformedGeometryBounds",value:function(t){var e=arguments.length>2?arguments[2]:void 0,n=this.getGeometryBounds(t,arguments.length>1&&void 0!==arguments[1]&&arguments[1]);if(!_t.isEmpty(n)){var r=e||new _t;return r.setFromTransformedAABB(n,this.getWorldTransform(t)),r}return null}},{key:"getBounds",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=t.renderable;if(!r.boundsDirty&&!n&&r.bounds)return r.bounds;if(!r.renderBoundsDirty&&n&&r.renderBounds)return r.renderBounds;var i=n?r.renderBounds:r.bounds,A=this.getTransformedGeometryBounds(t,n,i);if(t.childNodes.forEach(function(t){var r=e.getBounds(t,n);r&&(A?A.add(r):(A=i||new _t).update(r.center,r.halfExtents))}),A||(A=new _t),n){var o=ci(t);if(o){var a=o.parsedStyle.clipPath.getBounds(n);A?a&&(A=a.intersection(A)):A.update(a.center,a.halfExtents)}}return n?(r.renderBounds=A,r.renderBoundsDirty=!1):(r.bounds=A,r.boundsDirty=!1),A}},{key:"getLocalBounds",value:function(t){if(t.parentNode){var e=EA;t.parentNode.transformable&&(e=f.B8(FA,this.getWorldTransform(t.parentNode)));var n=this.getBounds(t);if(!_t.isEmpty(n)){var r=new _t;return r.setFromTransformedAABB(n,e),r}}return this.getBounds(t)}},{key:"getBoundingClientRect",value:function(t){var e,n,r=this.getGeometryBounds(t);_t.isEmpty(r)||(n=new _t).setFromTransformedAABB(r,this.getWorldTransform(t));var i=null===(e=t.ownerDocument)||void 0===e||null===(e=e.defaultView)||void 0===e?void 0:e.getContextService().getBoundingClientRect();if(n){var A=n.getMin(),o=(0,l.A)(A,2),a=o[0],s=o[1],c=n.getMax(),u=(0,l.A)(c,2);return new jt(a+((null==i?void 0:i.left)||0),s+((null==i?void 0:i.top)||0),u[0]-a,u[1]-s)}return new jt((null==i?void 0:i.left)||0,(null==i?void 0:i.top)||0,0,0)}},{key:"internalUpdateTransform",value:function(t){var e,n=null===(e=t.parentNode)||void 0===e?void 0:e.transformable;he(t.transformable),function(t,e){t.dirtyFlag&&(e?f.lw(t.worldTransform,e.worldTransform,t.localTransform):f.C(t.worldTransform,t.localTransform),t.dirtyFlag=!1)}(t.transformable,n)}},{key:"internalUpdateElement",value:function(t,e){var n,r,i,A,o,a,s=!0===(null===(n=t.ownerDocument)||void 0===n||null===(n=n.defaultView)||void 0===n||null===(n=n.getConfig())||void 0===n||null===(n=n.future)||void 0===n?void 0:n.experimentalAttributeUpdateOptimization),l=e[e.length-1],c=(null==l?void 0:l.transformDirty)||(null===(r=t.transformable)||void 0===r?void 0:r.localDirtyFlag);t.transformable&&((o=t.transformable).dirtyFlag||(o.dirtyFlag=c)),this.internalUpdateTransform(t),c&&(null===(a=t.dirty)||void 0===a||a.call(t,!0,!0));var u=(null===(i=t.renderable)||void 0===i?void 0:i.boundsDirty)||(null===(A=t.renderable)||void 0===A?void 0:A.renderBoundsDirty);if((c||u)&&!1===(null==l?void 0:l.shapeUpdated)&&s)for(var d=e.length-1;d>=0;){var f,h,p=e[d];if(p.shapeUpdated)break;null===(f=(h=p.node).dirty)||void 0===f||f.call(h,!0,!0),p.shapeUpdated=!0,d-=1}return c}},{key:"syncHierarchy",value:function(t){for(var e,n,r=[t],i=t.parentNode?[{node:t.parentNode,transformDirty:(null===(e=t.parentNode.transformable)||void 0===e?void 0:e.localDirtyFlag)||(null===(n=t.parentNode.transformable)||void 0===n?void 0:n.dirtyFlag),shapeUpdated:!1}]:[];r.length>0;){for(var A=r.pop(),o=i[i.length-1];i.length>0&&A.parentNode!==o.node;)o=i.pop();var a=this.internalUpdateElement(A,i);if(A.childNodes.length>0){for(var s=A.childNodes.length-1;s>=0;s--)r.push(A.childNodes[s]);i.push({node:A,transformDirty:a,shapeUpdated:!1})}}}},{key:"dirtyLocalTransform",value:function(t,e){pi(t)||e.localDirtyFlag||(e.localDirtyFlag=!0,e.dirtyFlag||this.dirtyWorldTransform(t,e))}},{key:"dirtyWorldTransform",value:function(t,e){this.dirtyWorldInternal(t,e),this.dirtyToRoot(t,!0)}},{key:"dirtyWorldInternal",value:function(t,e){var n,r=this,i=!0===(null===(n=t.ownerDocument)||void 0===n||null===(n=n.defaultView)||void 0===n||null===(n=n.getConfig())||void 0===n||null===(n=n.future)||void 0===n?void 0:n.experimentalAttributeUpdateOptimization);e.dirtyFlag||(e.dirtyFlag=!0,t.dirty(!0,!0),i||t.childNodes.forEach(function(t){r.dirtyWorldInternal(t,t.transformable)}))}},{key:"dirtyToRoot",value:function(t){for(var e,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=t,i=!0===(null===(e=t.ownerDocument)||void 0===e||null===(e=e.defaultView)||void 0===e||null===(e=e.getConfig())||void 0===e||null===(e=e.future)||void 0===e?void 0:e.experimentalAttributeUpdateOptimization);r;){var A,o;if(null===(A=(o=r).dirty)||void 0===A||A.call(o,!0,!0),i)break;r=r.parentNode}n&&t.forEach(function(t){var e;null===(e=t.dirty)||void 0===e||e.call(t,!0,!0)}),this.informDependentDisplayObjects(t);var a=t.mutations||[],s=a.find(function(t){return"attributes"===t.type&&t._boundsChangeData});s?s._boundsChangeData={affectChildren:s._boundsChangeData.affectChildren||n}:a.push(s={type:"attributes",target:t,_boundsChangeData:{affectChildren:n}}),t.mutations=a}},{key:"dirtyFragment",value:function(t){var e,n,r=t.transformable;r&&(r.dirtyFlag=!0,r.localDirtyFlag=!0),null===(e=(n=t).dirty)||void 0===e||e.call(n,!0,!0);for(var i=t.childNodes.length,A=0;A<i;A++)this.dirtyFragment(t.childNodes[A])}},{key:"notifyMutationObservers",value:function(t){var e=new Set;if(t.getRoot().forEach(function(t){(t.mutations||[]).forEach(function(n){"attributes"===n.type&&n._boundsChangeData&&(n._boundsChangeData.affectChildren?t.forEach(function(t){var i=(0,r.A)({},n);i.target=t,e.add(i)}):e.add(n))}),t.mutations=void 0}),e.size>0){var n=new aA(gA.BOUNDS_CHANGED,{detail:Array.from(e)});t.dispatchEvent(n,!0,!0)}}},{key:"updateDisplayObjectDependency",value:function(t,e,n,r){if(e&&e!==n){var i=this.displayObjectDependencyMap.get(e);if(i&&i[t]){var A=i[t].indexOf(r);i[t].splice(A,1)}}if(n){var o=this.displayObjectDependencyMap.get(n);o||(this.displayObjectDependencyMap.set(n,{}),o=this.displayObjectDependencyMap.get(n)),o[t]||(o[t]=[]),o[t].push(r)}}},{key:"informDependentDisplayObjects",value:function(t){var e,n=this,r=this.displayObjectDependencyMap.get(t);if(r){var i=null===(e=t.ownerDocument)||void 0===e||null===(e=e.defaultView)||void 0===e||null===(e=e.getConfig())||void 0===e||null===(e=e.future)||void 0===e?void 0:e.experimentalCancelEventPropagation;Object.keys(r).forEach(function(t){r[t].forEach(function(e){n.dirtyToRoot(e,!0),e.dispatchEvent(new mA(gA.ATTR_MODIFIED,e,n,n,t,mA.MODIFICATION,n,n),i,i),e.isCustomElement&&e.isConnected&&e.attributeChangedCallback&&e.attributeChangedCallback(t,n,n)})})}}}])}(),NA=function(){return(0,A.A)(function t(e){if((0,i.A)(this,t),e<=0)throw new Error("LRU capacity must be a positive number.");this.capacity=e,this.cache=new Map},[{key:"get",value:function(t){if(this.cache.has(t)){var e=this.cache.get(t);return this.cache.delete(t),this.cache.set(t,e),e}}},{key:"put",value:function(t,e){if(this.cache.has(t)&&this.cache.delete(t),this.cache.set(t,e),this.cache.size>this.capacity){var n=this.cache.keys().next().value;this.cache.delete(n)}}},{key:"len",value:function(){return this.cache.size}},{key:"clear",value:function(){this.cache.clear()}}])}(),DA={MetricsString:"|ÉqÅ",BaselineSymbol:"M",BaselineMultiplier:1.4,HeightMultiplier:2,Newlines:[10,13],BreakingSpaces:[9,32,8192,8193,8194,8195,8196,8197,8198,8200,8201,8202,8287,12288]},RA=/[a-zA-Z0-9\u00C0-\u00D6\u00D8-\u00f6\u00f8-\u00ff!"#$%&'()*+,-./:;]/,KA=new RegExp("".concat(/[!%),.:;?\]}¢°·'""†‡›℃∶、。〃〆〕〗〞﹚﹜!"%'),.:;?!]}~]/.source,"|").concat(/[!),.:;?\]}¢·–—'"•"、。〆〞〕〉》」︰︱︲︳﹐﹑﹒﹔﹕﹖﹘﹚﹜!),.:;?︶︸︺︼︾﹀﹂﹗]|}、]/.source,"|").concat(/[)\]}〕〉》」』】〙〗〟'"⦆»ヽヾーァィゥェォッャュョヮヵヶぁぃぅぇぉっゃゅょゎゕゖㇰㇱㇲㇳㇴㇵㇶㇷㇸㇹㇺㇻㇼㇽㇾㇿ々〻‐゠–〜?!‼⁇⁈⁉・、:;,。.]/.source,"|").concat(/[!%),.:;?\]}¢°'"†‡℃〆〈《「『〕!%),.:;?]}]/.source)),zA=new RegExp("".concat(/[$(£¥·'"〈《「『【〔〖〝﹙﹛$(.[{£¥]/.source,"|").concat(/[([{£¥'"‵〈《「『〔〝︴﹙﹛({︵︷︹︻︽︿﹁﹃﹏]/.source,"|").concat(/[([{〔〈《「『【〘〖〝'"⦅«—...‥〳〴〵]/.source,"|").concat(/[$([{£¥'"々〇〉》」〔$([{⦆¥₩#]/.source)),GA=function(){return(0,A.A)(function t(e){var n=this;(0,i.A)(this,t),this.fontMetricsCache={},this.shouldBreakByKinsokuShorui=function(t,e){return!n.isBreakingSpace(e)&&!(!t||!zA.exec(e)&&!KA.exec(t))},this.trimByKinsokuShorui=function(t){var e=(0,o.A)(t),n=e[e.length-2];if(!n)return t;var r=n[n.length-1];return e[e.length-2]=n.slice(0,-1),e[e.length-1]=r+e[e.length-1],e},this.runtime=e,this.charWidthCache=new NA(100)},[{key:"measureFont",value:function(t,e){if(this.fontMetricsCache[t])return this.fontMetricsCache[t];var n={ascent:0,descent:0,fontSize:0},r=this.runtime.offscreenCanvasCreator.getOrCreateCanvas(e),i=this.runtime.offscreenCanvasCreator.getOrCreateContext(e,{willReadFrequently:!0});i.font=t;var A=DA.MetricsString+DA.BaselineSymbol,o=Math.ceil(i.measureText(A).width),a=Math.ceil(i.measureText(DA.BaselineSymbol).width),s=DA.HeightMultiplier*a;a=a*DA.BaselineMultiplier|0,r.width=o,r.height=s,i.fillStyle="#f00",i.fillRect(0,0,o,s),i.font=t,i.textBaseline="alphabetic",i.fillStyle="#000",i.fillText(A,0,a);var l=i.getImageData(0,0,o||1,s||1).data,c=l.length,u=4*o,d=0,f=0,h=!1;for(d=0;d<a;++d){for(var p=0;p<u;p+=4)if(255!==l[f+p]){h=!0;break}if(h)break;f+=u}for(n.ascent=a-d,f=c-u,h=!1,d=s;d>a;--d){for(var g=0;g<u;g+=4)if(255!==l[f+g]){h=!0;break}if(h)break;f-=u}return n.descent=d-a,n.fontSize=n.ascent+n.descent,this.fontMetricsCache[t]=n,n}},{key:"measureText",value:function(t,e,n){var r=e.fontSize,i=void 0===r?16:r,A=e.wordWrap,o=void 0!==A&&A,a=e.lineHeight,s=e.lineWidth,l=void 0===s?1:s,c=e.textBaseline,u=void 0===c?"alphabetic":c,d=e.textAlign,f=void 0===d?"start":d,h=e.letterSpacing,p=void 0===h?0:h,g=e.textPath,m=e.leading,y=void 0===m?0:m,v=Ti(e),b=this.measureFont(v,n);0===b.fontSize&&(b.fontSize=i,b.ascent=i);var w=this.runtime.offscreenCanvasCreator.getOrCreateContext(n);w.font=v,e.isOverflowing=!1;var B=(o?this.wordWrap(t,e,n):t).split(/(?:\r\n|\r|\n)/),x=new Array(B.length),C=0;if(!g){for(var E=0;E<B.length;E++){var O=w.measureText(B[E]).width+(B[E].length-1)*p;x[E]=O,C=Math.max(C,O)}var k=C+l,F=a||b.fontSize+l,Q=Math.max(F,b.fontSize+l)+(B.length-1)*(F+y),M=0;return"middle"===u?M=-Q/2:"bottom"===u||"alphabetic"===u||"ideographic"===u?M=-Q:"top"!==u&&"hanging"!==u||(M=0),{font:v,width:k,height:Q,lines:B,lineWidths:x,lineHeight:F+=y,maxLineWidth:C,fontProperties:b,lineMetrics:x.map(function(t,e){var n=0;return"center"===f||"middle"===f?n-=t/2:"right"!==f&&"end"!==f||(n-=t),new jt(n-l/2,M+e*F,t+l,F)})}}g.getTotalLength();for(var U=0;U<B.length;U++)w.measureText(B[U])}},{key:"wordWrap",value:function(t,e,n){var r=this,i=Array.from(t);if(0===i.length)return"";var A=this,o=e.wordWrapWidth,a=void 0===o?0:o,s=e.letterSpacing,l=void 0===s?0:s,c=e.maxLines,u=void 0===c?1/0:c,d=e.textOverflow,f=this.runtime.offscreenCanvasCreator.getOrCreateContext(n),h=a+l,p="";"ellipsis"===d?p="...":d&&"clip"!==d&&(p=d);var g=[""],m=0,y=0,v=-1,b=Ti(e),w=this.charWidthCache.get(b);w||(w=new NA(500),this.charWidthCache.put(b,w));var B=function(t){return r.getFromCache(t,l,w,f)},x=B(p);function C(t,e,n,r){for(;B(t)<r&&e<i.length-1&&!A.isNewline(i[e+1]);)t+=i[e+=1];for(;B(t)>r&&e>=n;)e-=1,t=t.slice(0,-1);return{lineTxt:t,txtLastCharIndex:e}}function E(t,e){if(!(x<=0||x>h))if(g[t]){var n=C(g[t],e,v+1,h-x);g[t]=n.lineTxt+p}else g[t]=p}for(var O=0;O<i.length;O++){var k=i[O],F=i[O-1],Q=i[O+1],M=B(k);if(this.isNewline(k)){if(m+1>=u){O<i.length-1&&E(m,O-1),e.isOverflowing=!0;break}v=O-1,y=0,g[m+=1]=""}else{if(M>h){E(m,O-1),e.isOverflowing=!0;break}if(y>0&&y+M>h){var U=C(g[m],O-1,v+1,h);if(U.txtLastCharIndex!==O-1){if(g[m]=U.lineTxt,U.txtLastCharIndex===i.length-1)break;F=i[(O=U.txtLastCharIndex+1)-1],Q=i[O+1],M=B(k=i[O])}if(m+1>=u){E(m,O-1),e.isOverflowing=!0;break}if(v=O-1,y=0,g[m+=1]="",this.isBreakingSpace(k))continue;this.canBreakInLastChar(k)||(g=this.trimToBreakable(g),y=this.sumTextWidthByCache(g[m]||"",B)),this.shouldBreakByKinsokuShorui(k,Q)&&(g=this.trimByKinsokuShorui(g),y+=B(F||""))}y+=M,g[m]+=k}}return g.join("\n")}},{key:"isBreakingSpace",value:function(t){return"string"==typeof t&&DA.BreakingSpaces.indexOf(t.charCodeAt(0))>=0}},{key:"isNewline",value:function(t){return"string"==typeof t&&DA.Newlines.indexOf(t.charCodeAt(0))>=0}},{key:"trimToBreakable",value:function(t){var e=(0,o.A)(t),n=e[e.length-2],r=this.findBreakableIndex(n);if(-1===r||!n)return e;var i=n.slice(r,r+1),A=r+(this.isBreakingSpace(i)?0:1);return e[e.length-1]+=n.slice(r+1,n.length),e[e.length-2]=n.slice(0,A),e}},{key:"canBreakInLastChar",value:function(t){return!t||!RA.test(t)}},{key:"sumTextWidthByCache",value:function(t,e){return t.split("").reduce(function(t,n){return t+e(n)},0)}},{key:"findBreakableIndex",value:function(t){for(var e=t.length-1;e>=0;e--)if(!RA.test(t[e]))return e;return-1}},{key:"getFromCache",value:function(t,e,n,r){var i=n.get(t);if("number"!=typeof i){var A=t.length*e,o=r.measureText(t);n.put(t,i=o.width+A)}return i}},{key:"clearCache",value:function(){this.fontMetricsCache={},this.charWidthCache.clear()}}])}(),VA={},WA=(vA=new Ji,bA=new Zi,(0,pt.A)((0,pt.A)((0,pt.A)((0,pt.A)((0,pt.A)((0,pt.A)((0,pt.A)((0,pt.A)((0,pt.A)((0,pt.A)(yA={},xt.FRAGMENT,null),xt.CIRCLE,new Xi),xt.ELLIPSE,new Yi),xt.RECT,vA),xt.IMAGE,vA),xt.GROUP,new eA),xt.LINE,new $i),xt.TEXT,new tA(VA)),xt.POLYLINE,bA),xt.POLYGON,bA),(0,pt.A)((0,pt.A)((0,pt.A)(yA,xt.PATH,new qi),xt.HTML,new nA),xt.MESH,null)),XA=function(t){var e=new Gr,n=new Xr;return(0,pt.A)((0,pt.A)((0,pt.A)((0,pt.A)((0,pt.A)((0,pt.A)((0,pt.A)((0,pt.A)((0,pt.A)((0,pt.A)(t={},ge.PERCENTAGE,null),ge.NUMBER,new Zr),ge.ANGLE,new Kr),ge.DEFINED_PATH,new zr),ge.PAINT,e),ge.COLOR,e),ge.FILTER,new Vr),ge.LENGTH,n),ge.LENGTH_PERCENTAGE,n),ge.LENGTH_PERCENTAGE_12,new Yr),(0,pt.A)((0,pt.A)((0,pt.A)((0,pt.A)((0,pt.A)((0,pt.A)((0,pt.A)((0,pt.A)((0,pt.A)((0,pt.A)(t,ge.LENGTH_PERCENTAGE_14,new $r),ge.COORDINATE,new Xr),ge.OFFSET_DISTANCE,new Jr),ge.OPACITY_VALUE,new ti),ge.PATH,new ei),ge.LIST_OF_POINTS,new ni),ge.SHADOW_BLUR,new ri),ge.TEXT,new ii),ge.TEXT_TRANSFORM,new Ai),ge.TRANSFORM,new Gi),(0,pt.A)((0,pt.A)((0,pt.A)(t,ge.TRANSFORM_ORIGIN,new Vi),ge.Z_INDEX,new Wi),ge.MARKER,new qr)}();VA.CameraContribution=se,VA.AnimationTimeline=null,VA.EasingFunction=null,VA.offscreenCanvasCreator=new uA,VA.sceneGraphSelector=new pA,VA.sceneGraphService=new HA(VA),VA.textService=new GA(VA),VA.geometryUpdaterFactory=WA,VA.CSSPropertySyntaxFactory=XA,VA.styleValueRegistry=new Dr(VA),VA.layoutRegistry=null,VA.globalThis="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==n.g?n.g:{},VA.enableStyleSyntax=!0,VA.enableSizeAttenuation=!1;var YA=0,$A=new mA(gA.INSERTED,null,"","","",0,"",""),qA=new mA(gA.REMOVED,null,"","","",0,"",""),ZA=new aA(gA.DESTROY),JA=function(t){function e(){var t;(0,i.A)(this,e);for(var n=arguments.length,r=new Array(n),A=0;A<n;A++)r[A]=arguments[A];return(t=(0,a.A)(this,e,[].concat(r))).entity=YA++,t.transformable={dirtyFlag:!1,localDirtyFlag:!1,localPosition:[0,0,0],localRotation:[0,0,0,1],localScale:[1,1,1],localTransform:[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],localSkew:[0,0],position:[0,0,0],rotation:[0,0,0,1],scaling:[1,1,1],worldTransform:[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],origin:[0,0,0]},t.renderable={bounds:void 0,boundsDirty:!0,renderBounds:void 0,renderBoundsDirty:!0,dirtyRenderBounds:void 0,dirty:!1},t.geometry={contentBounds:void 0,renderBounds:void 0,dirty:!0},t.cullable={strategy:le.Standard,visibilityPlaneMask:-1,visible:!0,enable:!0},t.sortable={dirty:!1,sorted:void 0,renderOrder:0,dirtyChildren:[],dirtyReason:void 0},t.namespaceURI="g",t.scrollLeft=0,t.scrollTop=0,t.clientTop=0,t.clientLeft=0,t.style={},t.computedStyle={},t.parsedStyle={},t.attributes={},t}return(0,s.A)(e,t),(0,A.A)(e,[{key:"dirty",value:function(){var t=arguments.length>1?arguments[1]:void 0;this.renderable.dirty=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],void 0!==t&&(this.renderable.boundsDirty=t,this.renderable.renderBoundsDirty=t,this.geometry.dirty=t)}},{key:"className",get:function(){return this.getAttribute("class")||""},set:function(t){this.setAttribute("class",t)}},{key:"classList",get:function(){return this.className.split(" ").filter(function(t){return""!==t})}},{key:"tagName",get:function(){return this.nodeName}},{key:"children",get:function(){return this.childNodes}},{key:"childElementCount",get:function(){return this.childNodes.length}},{key:"firstElementChild",get:function(){return this.firstChild}},{key:"lastElementChild",get:function(){return this.lastChild}},{key:"parentElement",get:function(){return this.parentNode}},{key:"nextSibling",get:function(){if(this.parentNode){var t=this.parentNode.childNodes.indexOf(this);return this.parentNode.childNodes[t+1]||null}return null}},{key:"previousSibling",get:function(){if(this.parentNode){var t=this.parentNode.childNodes.indexOf(this);return this.parentNode.childNodes[t-1]||null}return null}},{key:"cloneNode",value:function(t){throw new Error(Ht)}},{key:"appendChild",value:function(t,e){var n;if(t.destroyed)throw new Error("Cannot append a destroyed element.");return VA.sceneGraphService.attach(t,this,e),null!==(n=this.ownerDocument)&&void 0!==n&&n.defaultView&&(pi(this)||t.nodeName!==xt.FRAGMENT?this.ownerDocument.defaultView.mountChildren(t):this.ownerDocument.defaultView.mountFragment(t)),this.isMutationObserved&&($A.relatedNode=this,t.dispatchEvent($A)),t}},{key:"insertBefore",value:function(t,e){if(e){t.parentElement&&t.parentElement.removeChild(t);var n=this.childNodes.indexOf(e);-1===n?this.appendChild(t):this.appendChild(t,n)}else this.appendChild(t);return t}},{key:"replaceChild",value:function(t,e){var n=this.childNodes.indexOf(e);return this.removeChild(e),this.appendChild(t,n),e}},{key:"removeChild",value:function(t){var e,n,r=!0===(null===(e=this.ownerDocument)||void 0===e||null===(e=e.defaultView)||void 0===e||null===(e=e.getConfig().future)||void 0===e?void 0:e.experimentalCancelEventPropagation);return qA.relatedNode=this,t.dispatchEvent(qA,r,r),null!==(n=t.ownerDocument)&&void 0!==n&&n.defaultView&&t.ownerDocument.defaultView.unmountChildren(t),VA.sceneGraphService.detach(t),t}},{key:"removeChildren",value:function(){for(var t=this.childNodes.length-1;t>=0;t--)this.removeChild(this.childNodes[t])}},{key:"destroyChildren",value:function(){for(var t=this.childNodes.length-1;t>=0;t--){var e=this.childNodes[t];e.childNodes.length>0&&e.destroyChildren(),e.destroy()}}},{key:"matches",value:function(t){return VA.sceneGraphService.matches(t,this)}},{key:"getElementById",value:function(t){return VA.sceneGraphService.querySelector("#".concat(t),this)}},{key:"getElementsByName",value:function(t){return VA.sceneGraphService.querySelectorAll('[name="'.concat(t,'"]'),this)}},{key:"getElementsByClassName",value:function(t){return VA.sceneGraphService.querySelectorAll(".".concat(t),this)}},{key:"getElementsByTagName",value:function(t){return VA.sceneGraphService.querySelectorAll(t,this)}},{key:"querySelector",value:function(t){return VA.sceneGraphService.querySelector(t,this)}},{key:"querySelectorAll",value:function(t){return VA.sceneGraphService.querySelectorAll(t,this)}},{key:"closest",value:function(t){var e=this;do{if(VA.sceneGraphService.matches(t,e))return e;e=e.parentElement}while(null!==e);return null}},{key:"find",value:function(t){var e=this,n=null;return this.forEach(function(r){return r===e||!t(r)||(n=r,!1)}),n}},{key:"findAll",value:function(t){var e=this,n=[];return this.forEach(function(r){r!==e&&t(r)&&n.push(r)}),n}},{key:"after",value:function(){var t=this;if(this.parentNode){for(var e=this.parentNode.childNodes.indexOf(this),n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];r.forEach(function(n,r){var i;return null===(i=t.parentNode)||void 0===i?void 0:i.appendChild(n,e+r+1)})}}},{key:"before",value:function(){if(this.parentNode){for(var t,e=this.parentNode.childNodes.indexOf(this),n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];var A=r[0],a=(0,mt.A)(r).slice(1);this.parentNode.appendChild(A,e),(t=A).after.apply(t,(0,o.A)(a))}}},{key:"replaceWith",value:function(){this.after.apply(this,arguments),this.remove()}},{key:"append",value:function(){for(var t=this,e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];n.forEach(function(e){return t.appendChild(e)})}},{key:"prepend",value:function(){for(var t=this,e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];n.forEach(function(e,n){return t.appendChild(e,n)})}},{key:"replaceChildren",value:function(){for(;this.childNodes.length&&this.firstChild;)this.removeChild(this.firstChild);this.append.apply(this,arguments)}},{key:"remove",value:function(){return this.parentNode?this.parentNode.removeChild(this):this}},{key:"destroy",value:function(){var t,e=!0===(null===(t=this.ownerDocument)||void 0===t||null===(t=t.defaultView)||void 0===t||null===(t=t.getConfig().future)||void 0===t?void 0:t.experimentalCancelEventPropagation);this.destroyChildren(),this.dispatchEvent(ZA,e,e),this.remove(),this.emitter.removeAllListeners(),this.destroyed=!0}},{key:"getGeometryBounds",value:function(){return VA.sceneGraphService.getGeometryBounds(this,arguments.length>0&&void 0!==arguments[0]&&arguments[0])}},{key:"getTransformedGeometryBounds",value:function(){return VA.sceneGraphService.getTransformedGeometryBounds(this,arguments.length>0&&void 0!==arguments[0]&&arguments[0])}},{key:"getBounds",value:function(){return VA.sceneGraphService.getBounds(this)}},{key:"getRenderBounds",value:function(){return VA.sceneGraphService.getBounds(this,!0)}},{key:"getLocalBounds",value:function(){return VA.sceneGraphService.getLocalBounds(this)}},{key:"getBoundingClientRect",value:function(){return VA.sceneGraphService.getBoundingClientRect(this)}},{key:"getClientRects",value:function(){return[this.getBoundingClientRect()]}},{key:"computedStyleMap",value:function(){return new Map(Object.entries(this.computedStyle))}},{key:"getAttributeNames",value:function(){return Object.keys(this.attributes)}},{key:"getAttribute",value:function(t){if("symbol"!=typeof t)return this.attributes[t]}},{key:"hasAttribute",value:function(t){return this.getAttributeNames().includes(t)}},{key:"hasAttributes",value:function(){return!!this.getAttributeNames().length}},{key:"removeAttribute",value:function(t){this.setAttribute(t,null),delete this.attributes[t]}},{key:"setAttribute",value:function(t,e){this.attributes[t]=e}},{key:"getAttributeNS",value:function(t,e){throw new Error(Ht)}},{key:"getAttributeNode",value:function(t){throw new Error(Ht)}},{key:"getAttributeNodeNS",value:function(t,e){throw new Error(Ht)}},{key:"hasAttributeNS",value:function(t,e){throw new Error(Ht)}},{key:"removeAttributeNS",value:function(t,e){throw new Error(Ht)}},{key:"removeAttributeNode",value:function(t){throw new Error(Ht)}},{key:"setAttributeNS",value:function(t,e,n){throw new Error(Ht)}},{key:"setAttributeNode",value:function(t){throw new Error(Ht)}},{key:"setAttributeNodeNS",value:function(t){throw new Error(Ht)}},{key:"toggleAttribute",value:function(t,e){throw new Error(Ht)}}])}(lA);function to(t){return!(null==t||!t.nodeName)}var eo=VA.globalThis.Proxy?VA.globalThis.Proxy:function(){},no=new mA(gA.ATTR_MODIFIED,null,null,null,null,mA.MODIFICATION,null,null),ro=u.vt(),io=g.vt(),Ao=function(t){function e(t){var n;return(0,i.A)(this,e),(n=(0,a.A)(this,e)).isCustomElement=!1,n.isMutationObserved=!1,n.activeAnimations=[],n.config=t,n.id=t.id||"",n.name=t.name||"",(t.className||t.class)&&(n.className=t.className||t.class),n.nodeName=t.type||xt.GROUP,t.initialParsedStyle&&Object.assign(n.parsedStyle,t.initialParsedStyle),n.initAttributes(t.style),VA.enableStyleSyntax&&(n.style=new eo({setProperty:function(t,e){n.setAttribute(t,e)},getPropertyValue:function(t){return n.getAttribute(t)},removeProperty:function(t){n.removeAttribute(t)},item:function(){return""}},{get:function(t,e){return void 0!==t[e]?t[e]:n.getAttribute(e)},set:function(t,e,r){return n.setAttribute(e,r),!0}})),n}return(0,s.A)(e,t),(0,A.A)(e,[{key:"destroy",value:function(){(0,gt.A)(e,"destroy",this,3)([]),this.getAnimations().forEach(function(t){t.cancel()})}},{key:"cloneNode",value:function(t,e){var n=(0,r.A)({},this.attributes);for(var i in n){var A=n[i];to(A)&&"clipPath"!==i&&"offsetPath"!==i&&"textPath"!==i&&(n[i]=A.cloneNode(t)),e&&(n[i]=e(i,A))}var o=new this.constructor((0,r.A)((0,r.A)({},this.config),{},{style:n}));return o.setLocalTransform(this.getLocalTransform()),t&&this.children.forEach(function(e){if(!e.style.isMarker){var n=e.cloneNode(t);o.appendChild(n)}}),o}},{key:"initAttributes",value:function(){VA.styleValueRegistry.processProperties(this,arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{forceUpdateGeometry:!0}),this.dirty()}},{key:"setAttribute",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];(0,lt.A)(n)||(r||n!==this.attributes[t])&&(this.internalSetAttribute(t,n,{memoize:i}),(0,gt.A)(e,"setAttribute",this,3)([t,n]))}},{key:"setAttributes",value:function(t){var e,n,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},A=i.skipDispatchAttrModifiedEvent,o=void 0!==A&&A;if(o||(e=(0,r.A)({},this.attributes),n=(0,r.A)({},this.parsedStyle)),VA.styleValueRegistry.processProperties(this,t,i),this.dirty(),!o)for(var a in t)this.dispatchAttrModifiedEvent(a,e[a],t[a],n[a])}},{key:"internalSetAttribute",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=this.attributes[t],i=this.parsedStyle[t];VA.styleValueRegistry.processProperties(this,(0,pt.A)({},t,e),n),this.dirty(),this.dispatchAttrModifiedEvent(t,r,e,i)}},{key:"dispatchAttrModifiedEvent",value:function(t,e,n,r){var i,A=this.parsedStyle[t];if(this.isConnected)if(no.relatedNode=this,no.prevValue=e,no.newValue=n,no.attrName=t,no.prevParsedValue=r,no.newParsedValue=A,this.isMutationObserved)this.dispatchEvent(no);else{var o,a=!0===(null===(o=this.ownerDocument.defaultView.getConfig().future)||void 0===o?void 0:o.experimentalCancelEventPropagation);no.target=this,this.ownerDocument.defaultView.dispatchEvent(no,!0,a)}(this.isCustomElement&&this.isConnected||!this.isCustomElement)&&(null===(i=this.attributeChangedCallback)||void 0===i||i.call(this,t,e,n,r,A))}},{key:"getBBox",value:function(){var t=this.getBounds(),e=t.getMin(),n=(0,l.A)(e,2),r=n[0],i=n[1],A=t.getMax(),o=(0,l.A)(A,2);return new jt(r,i,o[0]-r,o[1]-i)}},{key:"setOrigin",value:function(t){return VA.sceneGraphService.setOrigin(this,Kt(t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,!1)),this}},{key:"getOrigin",value:function(){return VA.sceneGraphService.getOrigin(this)}},{key:"setPosition",value:function(t){return VA.sceneGraphService.setPosition(this,Kt(t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,!1)),this}},{key:"setLocalPosition",value:function(t){return VA.sceneGraphService.setLocalPosition(this,Kt(t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,!1)),this}},{key:"translate",value:function(t){return VA.sceneGraphService.translate(this,Kt(t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,!1)),this}},{key:"translateLocal",value:function(t){return VA.sceneGraphService.translateLocal(this,Kt(t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,!1)),this}},{key:"getPosition",value:function(){return VA.sceneGraphService.getPosition(this)}},{key:"getLocalPosition",value:function(){return VA.sceneGraphService.getLocalPosition(this)}},{key:"scale",value:function(t,e,n){return this.scaleLocal(t,e,n)}},{key:"scaleLocal",value:function(t,e,n){return"number"==typeof t&&(t=Kt(t,e=e||t,n=n||t,!1)),VA.sceneGraphService.scaleLocal(this,t),this}},{key:"setLocalScale",value:function(t,e,n){return"number"==typeof t&&(t=Kt(t,e=e||t,n=n||t,!1)),VA.sceneGraphService.setLocalScale(this,t),this}},{key:"getLocalScale",value:function(){return VA.sceneGraphService.getLocalScale(this)}},{key:"getScale",value:function(){return VA.sceneGraphService.getScale(this)}},{key:"getEulerAngles",value:function(){var t=Yt(ro,VA.sceneGraphService.getWorldTransform(this));return Wt((0,l.A)(t,3)[2])}},{key:"getLocalEulerAngles",value:function(){var t=Yt(ro,VA.sceneGraphService.getLocalRotation(this));return Wt((0,l.A)(t,3)[2])}},{key:"setEulerAngles",value:function(t){return VA.sceneGraphService.setEulerAngles(this,0,0,t),this}},{key:"setLocalEulerAngles",value:function(t){return VA.sceneGraphService.setLocalEulerAngles(this,0,0,t),this}},{key:"rotateLocal",value:function(t,e,n){return(0,b.A)(e)&&(0,b.A)(n)?VA.sceneGraphService.rotateLocal(this,0,0,t):VA.sceneGraphService.rotateLocal(this,t,e,n),this}},{key:"rotate",value:function(t,e,n){return(0,b.A)(e)&&(0,b.A)(n)?VA.sceneGraphService.rotate(this,0,0,t):VA.sceneGraphService.rotate(this,t,e,n),this}},{key:"setRotation",value:function(t,e,n,r){return VA.sceneGraphService.setRotation(this,t,e,n,r),this}},{key:"setLocalRotation",value:function(t,e,n,r){return VA.sceneGraphService.setLocalRotation(this,t,e,n,r),this}},{key:"setLocalSkew",value:function(t,e){return VA.sceneGraphService.setLocalSkew(this,t,e),this}},{key:"getRotation",value:function(){return VA.sceneGraphService.getRotation(this)}},{key:"getLocalRotation",value:function(){return VA.sceneGraphService.getLocalRotation(this)}},{key:"getLocalSkew",value:function(){return VA.sceneGraphService.getLocalSkew(this)}},{key:"getLocalTransform",value:function(){return VA.sceneGraphService.getLocalTransform(this)}},{key:"getWorldTransform",value:function(){return VA.sceneGraphService.getWorldTransform(this)}},{key:"setLocalTransform",value:function(t){return VA.sceneGraphService.setLocalTransform(this,t),this}},{key:"resetLocalTransform",value:function(){VA.sceneGraphService.resetLocalTransform(this)}},{key:"getAnimations",value:function(){return this.activeAnimations}},{key:"animate",value:function(t,e){var n,r=null===(n=this.ownerDocument)||void 0===n?void 0:n.timeline;return r?r.play(this,t,e):null}},{key:"isVisible",value:function(){var t;return"hidden"!==(null===(t=this.parsedStyle)||void 0===t?void 0:t.visibility)}},{key:"interactive",get:function(){return this.isInteractive()},set:function(t){this.style.pointerEvents=t?"auto":"none"}},{key:"isInteractive",value:function(){var t;return"none"!==(null===(t=this.parsedStyle)||void 0===t?void 0:t.pointerEvents)}},{key:"isCulled",value:function(){return!(!this.cullable||!this.cullable.enable||this.cullable.visible)}},{key:"toFront",value:function(){return this.parentNode&&(this.style.zIndex=Math.max.apply(Math,(0,o.A)(this.parentNode.children.map(function(t){return Number(t.style.zIndex)})))+1),this}},{key:"toBack",value:function(){return this.parentNode&&(this.style.zIndex=Math.min.apply(Math,(0,o.A)(this.parentNode.children.map(function(t){return Number(t.style.zIndex)})))-1),this}},{key:"getConfig",value:function(){return this.config}},{key:"attr",value:function(){for(var t=this,e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var i=n[0],A=n[1];return i?(0,ht.A)(i)?(Object.keys(i).forEach(function(e){t.setAttribute(e,i[e])}),this):2===n.length?(this.setAttribute(i,A),this):this.attributes[i]:this.attributes}},{key:"getMatrix",value:function(t){var e=t||this.getWorldTransform(),n=f.sC(ro,e),r=(0,l.A)(n,2),i=r[0],A=r[1],o=f.IL(ro,e),a=(0,l.A)(o,2),s=a[0],c=a[1],u=f.l(io,e),d=Yt(ro,u),h=(0,l.A)(d,3);return function(t,e,n,r,i){var A=Math.cos(t),o=Math.sin(t);return p.fA(r*A,i*o,0,-r*o,i*A,0,e,n,1)}(h[0]||h[2],i,A,s,c)}},{key:"getLocalMatrix",value:function(){return this.getMatrix(this.getLocalTransform())}},{key:"setMatrix",value:function(t){var e=$t(t),n=(0,l.A)(e,5),r=n[0],i=n[1],A=n[2],o=n[3];this.setEulerAngles(n[4]).setPosition(r,i).setLocalScale(A,o)}},{key:"setLocalMatrix",value:function(t){var e=$t(t),n=(0,l.A)(e,5),r=n[0],i=n[1],A=n[2],o=n[3];this.setLocalEulerAngles(n[4]).setLocalPosition(r,i).setLocalScale(A,o)}},{key:"show",value:function(){this.forEach(function(t){t.style.visibility="visible"})}},{key:"hide",value:function(){this.forEach(function(t){t.style.visibility="hidden"})}},{key:"getCount",value:function(){return this.childElementCount}},{key:"getParent",value:function(){return this.parentElement}},{key:"getChildren",value:function(){return this.children}},{key:"getFirst",value:function(){return this.firstElementChild}},{key:"getLast",value:function(){return this.lastElementChild}},{key:"getChildByIndex",value:function(t){return this.children[t]||null}},{key:"add",value:function(t,e){return this.appendChild(t,e)}},{key:"set",value:function(t,e){this.config[t]=e}},{key:"get",value:function(t){return this.config[t]}},{key:"moveTo",value:function(t){return this.setPosition(t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,arguments.length>2&&void 0!==arguments[2]?arguments[2]:0),this}},{key:"move",value:function(t){return this.setPosition(t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,arguments.length>2&&void 0!==arguments[2]?arguments[2]:0),this}},{key:"setZIndex",value:function(t){return this.style.zIndex=t,this}}])}(JA);Ao.PARSED_STYLE_LIST=new Set(["class","className","clipPath","cursor","display","draggable","droppable","fill","fillOpacity","fillRule","filter","increasedLineWidthForHitTesting","lineCap","lineDash","lineDashOffset","lineJoin","lineWidth","miterLimit","hitArea","offsetDistance","offsetPath","offsetX","offsetY","opacity","pointerEvents","shadowColor","shadowType","shadowBlur","shadowOffsetX","shadowOffsetY","stroke","strokeOpacity","strokeWidth","strokeLinecap","strokeLineJoin","strokeDasharray","strokeDashoffset","transform","transformOrigin","textTransform","visibility","zIndex"]);var oo=function(t){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,i.A)(this,e),(0,a.A)(this,e,[(0,r.A)({type:xt.CIRCLE},t)])}return(0,s.A)(e,t),(0,A.A)(e)}(Ao);oo.PARSED_STYLE_LIST=new Set([].concat((0,o.A)(Ao.PARSED_STYLE_LIST),["cx","cy","cz","r","isBillboard","isSizeAttenuation"]));var ao=["style"],so=function(t){function e(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},A=n.style,o=(0,Bt.A)(n,ao);return(0,i.A)(this,e),(t=(0,a.A)(this,e,[(0,r.A)({style:A},o)])).isCustomElement=!0,t}return(0,s.A)(e,t),(0,A.A)(e)}(Ao);so.PARSED_STYLE_LIST=new Set(["class","className","clipPath","cursor","draggable","droppable","opacity","pointerEvents","transform","transformOrigin","zIndex","visibility"]);var lo=function(t){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,i.A)(this,e),(0,a.A)(this,e,[(0,r.A)({type:xt.ELLIPSE},t)])}return(0,s.A)(e,t),(0,A.A)(e)}(Ao);lo.PARSED_STYLE_LIST=new Set([].concat((0,o.A)(Ao.PARSED_STYLE_LIST),["cx","cy","cz","rx","ry","isBillboard","isSizeAttenuation"])),(function(t){function e(){return(0,i.A)(this,e),(0,a.A)(this,e,[{type:xt.FRAGMENT}])}return(0,s.A)(e,t),(0,A.A)(e)}(Ao)).PARSED_STYLE_LIST=new Set(["class","className"]);var co=function(t){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,i.A)(this,e),(0,a.A)(this,e,[(0,r.A)({type:xt.GROUP},t)])}return(0,s.A)(e,t),(0,A.A)(e)}(Ao);co.PARSED_STYLE_LIST=new Set(["class","className","clipPath","cursor","draggable","droppable","opacity","pointerEvents","transform","transformOrigin","zIndex","visibility"]);var uo=["style"],fo=function(t){function e(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},A=n.style,o=(0,Bt.A)(n,uo);return(0,i.A)(this,e),(t=(0,a.A)(this,e,[(0,r.A)({type:xt.HTML,style:A},o)])).cullable.enable=!1,t}return(0,s.A)(e,t),(0,A.A)(e,[{key:"getDomElement",value:function(){return this.parsedStyle.$el}},{key:"getClientRects",value:function(){return[this.getBoundingClientRect()]}},{key:"getLocalBounds",value:function(){if(this.parentNode){var t=f.B8(f.vt(),this.parentNode.getWorldTransform()),e=this.getBounds();if(!_t.isEmpty(e)){var n=new _t;return n.setFromTransformedAABB(e,t),n}}return this.getBounds()}}])}(Ao);fo.PARSED_STYLE_LIST=new Set([].concat((0,o.A)(Ao.PARSED_STYLE_LIST),["x","y","$el","innerHTML","width","height"]));var ho=function(t){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,i.A)(this,e),(0,a.A)(this,e,[(0,r.A)({type:xt.IMAGE},t)])}return(0,s.A)(e,t),(0,A.A)(e)}(Ao);ho.PARSED_STYLE_LIST=new Set([].concat((0,o.A)(Ao.PARSED_STYLE_LIST),["x","y","z","src","width","height","isBillboard","billboardRotation","isSizeAttenuation","keepAspectRatio"]));var po=["style"],go=function(t){function e(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},A=n.style,o=(0,Bt.A)(n,po);(0,i.A)(this,e),(t=(0,a.A)(this,e,[(0,r.A)({type:xt.LINE,style:(0,r.A)({x1:0,y1:0,x2:0,y2:0,z1:0,z2:0},A)},o)])).markerStartAngle=0,t.markerEndAngle=0;var s=t.parsedStyle,l=s.markerStart,c=s.markerEnd;return l&&to(l)&&(t.markerStartAngle=l.getLocalEulerAngles(),t.appendChild(l)),c&&to(c)&&(t.markerEndAngle=c.getLocalEulerAngles(),t.appendChild(c)),t.transformMarker(!0),t.transformMarker(!1),t}return(0,s.A)(e,t),(0,A.A)(e,[{key:"attributeChangedCallback",value:function(t,e,n,r,i){"x1"===t||"y1"===t||"x2"===t||"y2"===t||"markerStartOffset"===t||"markerEndOffset"===t?(this.transformMarker(!0),this.transformMarker(!1)):"markerStart"===t?(r&&to(r)&&(this.markerStartAngle=0,r.remove()),i&&to(i)&&(this.markerStartAngle=i.getLocalEulerAngles(),this.appendChild(i),this.transformMarker(!0))):"markerEnd"===t&&(r&&to(r)&&(this.markerEndAngle=0,r.remove()),i&&to(i)&&(this.markerEndAngle=i.getLocalEulerAngles(),this.appendChild(i),this.transformMarker(!1)))}},{key:"transformMarker",value:function(t){var e,n,r,i,A,o,a,s=this.parsedStyle,l=s.markerStartOffset,c=s.markerEndOffset,u=s.x1,d=s.x2,f=s.y1,h=s.y2,p=t?s.markerStart:s.markerEnd;p&&to(p)&&(t?(i=u,A=f,n=d-u,r=h-f,o=l||0,a=this.markerStartAngle):(i=d,A=h,n=u-d,r=f-h,o=c||0,a=this.markerEndAngle),e=Math.atan2(r,n),p.setLocalEulerAngles(180*e/Math.PI+a),p.setLocalPosition(i+Math.cos(e)*o,A+Math.sin(e)*o))}},{key:"getPoint",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.parsedStyle,r=(0,yt.iP)(n.x1,n.y1,n.x2,n.y2,t),i=r.x,A=r.y,o=u.Z0(u.vt(),u.fA(i,A,0),e?this.getWorldTransform():this.getLocalTransform());return new Pt(o[0],o[1])}},{key:"getPointAtLength",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this.getPoint(t/this.getTotalLength(),e)}},{key:"getTotalLength",value:function(){var t=this.parsedStyle;return(0,yt.bU)(t.x1,t.y1,t.x2,t.y2)}}])}(Ao);go.PARSED_STYLE_LIST=new Set([].concat((0,o.A)(Ao.PARSED_STYLE_LIST),["x1","y1","x2","y2","z1","z2","isBillboard","isSizeAttenuation","markerStart","markerEnd","markerStartOffset","markerEndOffset"]));var mo=["style"],yo=function(t){function e(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},A=n.style,o=(0,Bt.A)(n,mo);(0,i.A)(this,e),(t=(0,a.A)(this,e,[(0,r.A)({type:xt.PATH,style:A,initialParsedStyle:{miterLimit:4,d:(0,r.A)({},pe)}},o)])).markerStartAngle=0,t.markerEndAngle=0,t.markerMidList=[];var s=t.parsedStyle,l=s.markerStart,c=s.markerEnd,u=s.markerMid;return l&&to(l)&&(t.markerStartAngle=l.getLocalEulerAngles(),t.appendChild(l)),u&&to(u)&&t.placeMarkerMid(u),c&&to(c)&&(t.markerEndAngle=c.getLocalEulerAngles(),t.appendChild(c)),t.transformMarker(!0),t.transformMarker(!1),t}return(0,s.A)(e,t),(0,A.A)(e,[{key:"attributeChangedCallback",value:function(t,e,n,r,i){"d"===t?(this.transformMarker(!0),this.transformMarker(!1),this.placeMarkerMid(this.parsedStyle.markerMid)):"markerStartOffset"===t||"markerEndOffset"===t?(this.transformMarker(!0),this.transformMarker(!1)):"markerStart"===t?(r&&to(r)&&(this.markerStartAngle=0,r.remove()),i&&to(i)&&(this.markerStartAngle=i.getLocalEulerAngles(),this.appendChild(i),this.transformMarker(!0))):"markerEnd"===t?(r&&to(r)&&(this.markerEndAngle=0,r.remove()),i&&to(i)&&(this.markerEndAngle=i.getLocalEulerAngles(),this.appendChild(i),this.transformMarker(!1))):"markerMid"===t&&this.placeMarkerMid(i)}},{key:"transformMarker",value:function(t){var e=this.parsedStyle,n=e.markerStartOffset,r=e.markerEndOffset,i=t?e.markerStart:e.markerEnd;if(i&&to(i)){var A,o,a,s,c,u,d;if(t){var f=this.getStartTangent(),h=(0,l.A)(f,2),p=h[0],g=h[1];s=g[0],c=g[1],o=p[0]-g[0],a=p[1]-g[1],u=n||0,d=this.markerStartAngle}else{var m=this.getEndTangent(),y=(0,l.A)(m,2),v=y[0],b=y[1];s=b[0],c=b[1],o=v[0]-b[0],a=v[1]-b[1],u=r||0,d=this.markerEndAngle}A=Math.atan2(a,o),i.setLocalEulerAngles(180*A/Math.PI+d),i.setLocalPosition(s+Math.cos(A)*u,c+Math.sin(A)*u)}}},{key:"placeMarkerMid",value:function(t){var e=this.parsedStyle.d.segments;if(this.markerMidList.forEach(function(t){t.remove()}),t&&to(t))for(var n=1;n<e.length-1;n++){var r=(0,l.A)(e[n].currentPoint,2),i=r[0],A=r[1],o=1===n?t:t.cloneNode(!0);this.markerMidList.push(o),this.appendChild(o),o.setLocalPosition(i,A)}}},{key:"getTotalLength",value:function(){return tr(this)}},{key:"getPointAtLength",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=function(t,e){return $(t,e,(0,x.Cl)((0,x.Cl)({},void 0),{bbox:!1,length:!0})).point}(this.parsedStyle.d.absolutePath,t),r=n.x,i=n.y,A=u.Z0(u.vt(),u.fA(r,i,0),e?this.getWorldTransform():this.getLocalTransform());return new Pt(A[0],A[1])}},{key:"getPoint",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this.getPointAtLength(t*tr(this),e)}},{key:"getStartTangent",value:function(){var t=this.parsedStyle.d.segments,e=[];if(t.length>1){var n=t[0].currentPoint,r=t[1].currentPoint,i=t[1].startTangent;e=[],i?(e.push([n[0]-i[0],n[1]-i[1]]),e.push([n[0],n[1]])):(e.push([r[0],r[1]]),e.push([n[0],n[1]]))}return e}},{key:"getEndTangent",value:function(){var t=this.parsedStyle.d.segments,e=t.length,n=[];if(e>1){var r=t[e-2].currentPoint,i=t[e-1].currentPoint,A=t[e-1].endTangent;n=[],A?(n.push([i[0]-A[0],i[1]-A[1]]),n.push([i[0],i[1]])):(n.push([r[0],r[1]]),n.push([i[0],i[1]]))}return n}}])}(Ao);yo.PARSED_STYLE_LIST=new Set([].concat((0,o.A)(Ao.PARSED_STYLE_LIST),["d","markerStart","markerMid","markerEnd","markerStartOffset","markerEndOffset","isBillboard","isSizeAttenuation"]));var vo=["style"],bo=function(t){function e(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},A=n.style,o=(0,Bt.A)(n,vo);(0,i.A)(this,e),(t=(0,a.A)(this,e,[(0,r.A)({type:xt.POLYGON,style:A,initialParsedStyle:{points:{points:[],totalLength:0,segments:[]},miterLimit:4,isClosed:!0}},o)])).markerStartAngle=0,t.markerEndAngle=0,t.markerMidList=[];var s=t.parsedStyle,l=s.markerStart,c=s.markerEnd,u=s.markerMid;return l&&to(l)&&(t.markerStartAngle=l.getLocalEulerAngles(),t.appendChild(l)),u&&to(u)&&t.placeMarkerMid(u),c&&to(c)&&(t.markerEndAngle=c.getLocalEulerAngles(),t.appendChild(c)),t.transformMarker(!0),t.transformMarker(!1),t}return(0,s.A)(e,t),(0,A.A)(e,[{key:"attributeChangedCallback",value:function(t,e,n,r,i){"points"===t?(this.transformMarker(!0),this.transformMarker(!1),this.placeMarkerMid(this.parsedStyle.markerMid)):"markerStartOffset"===t||"markerEndOffset"===t?(this.transformMarker(!0),this.transformMarker(!1)):"markerStart"===t?(r&&to(r)&&(this.markerStartAngle=0,r.remove()),i&&to(i)&&(this.markerStartAngle=i.getLocalEulerAngles(),this.appendChild(i),this.transformMarker(!0))):"markerEnd"===t?(r&&to(r)&&(this.markerEndAngle=0,r.remove()),i&&to(i)&&(this.markerEndAngle=i.getLocalEulerAngles(),this.appendChild(i),this.transformMarker(!1))):"markerMid"===t&&this.placeMarkerMid(i)}},{key:"transformMarker",value:function(t){var e=this.parsedStyle,n=e.markerStartOffset,r=e.markerEndOffset,i=(e.points||{}).points,A=t?e.markerStart:e.markerEnd;if(A&&to(A)&&i){var o,a,s,l,c,u,d;if(l=i[0][0],c=i[0][1],t)a=i[1][0]-i[0][0],s=i[1][1]-i[0][1],u=n||0,d=this.markerStartAngle;else{var f=i.length;this.parsedStyle.isClosed?(a=i[f-1][0]-i[0][0],s=i[f-1][1]-i[0][1]):(l=i[f-1][0],c=i[f-1][1],a=i[f-2][0]-i[f-1][0],s=i[f-2][1]-i[f-1][1]),u=r||0,d=this.markerEndAngle}o=Math.atan2(s,a),A.setLocalEulerAngles(180*o/Math.PI+d),A.setLocalPosition(l+Math.cos(o)*u,c+Math.sin(o)*u)}}},{key:"placeMarkerMid",value:function(t){var e=(this.parsedStyle.points||{}).points;if(this.markerMidList.forEach(function(t){t.remove()}),this.markerMidList=[],t&&to(t)&&e)for(var n=1;n<(this.parsedStyle.isClosed?e.length:e.length-1);n++){var r=e[n][0],i=e[n][1],A=1===n?t:t.cloneNode(!0);this.markerMidList.push(A),this.appendChild(A),A.setLocalPosition(r,i)}}}])}(Ao);bo.PARSED_STYLE_LIST=new Set([].concat((0,o.A)(Ao.PARSED_STYLE_LIST),["points","markerStart","markerMid","markerEnd","markerStartOffset","markerEndOffset","isClosed","isBillboard","isSizeAttenuation"]));var wo=["style"],Bo=function(t){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.style,A=(0,Bt.A)(t,wo);return(0,i.A)(this,e),(0,a.A)(this,e,[(0,r.A)({type:xt.POLYLINE,style:n,initialParsedStyle:{points:{points:[],totalLength:0,segments:[]},miterLimit:4,isClosed:!1}},A)])}return(0,s.A)(e,t),(0,A.A)(e,[{key:"getTotalLength",value:function(){return 0===(t=this).parsedStyle.points.totalLength&&(t.parsedStyle.points.totalLength=(0,yt.Sy)(t.parsedStyle.points.points)),t.parsedStyle.points.totalLength;var t}},{key:"getPointAtLength",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this.getPoint(t/this.getTotalLength(),e)}},{key:"getPoint",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.parsedStyle.points.points;if(0===this.parsedStyle.points.segments.length){var r,i,A=[],o=0,a=this.getTotalLength();n.forEach(function(t,e){n[e+1]&&((r=[0,0])[0]=o/a,i=(0,yt.bU)(t[0],t[1],n[e+1][0],n[e+1][1]),r[1]=(o+=i)/a,A.push(r))}),this.parsedStyle.points.segments=A}var s=0,l=0;this.parsedStyle.points.segments.forEach(function(e,n){t>=e[0]&&t<=e[1]&&(s=(t-e[0])/(e[1]-e[0]),l=n)});var c=(0,yt.iP)(n[l][0],n[l][1],n[l+1][0],n[l+1][1],s),d=c.x,f=c.y,h=u.Z0(u.vt(),u.fA(d,f,0),e?this.getWorldTransform():this.getLocalTransform());return new Pt(h[0],h[1])}},{key:"getStartTangent",value:function(){var t=this.parsedStyle.points.points,e=[];return e.push([t[1][0],t[1][1]]),e.push([t[0][0],t[0][1]]),e}},{key:"getEndTangent",value:function(){var t=this.parsedStyle.points.points,e=t.length-1,n=[];return n.push([t[e-1][0],t[e-1][1]]),n.push([t[e][0],t[e][1]]),n}}])}(bo);Bo.PARSED_STYLE_LIST=new Set([].concat((0,o.A)(bo.PARSED_STYLE_LIST),["points","markerStart","markerMid","markerEnd","markerStartOffset","markerEndOffset","isBillboard"]));var xo=function(t){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,i.A)(this,e),(0,a.A)(this,e,[(0,r.A)({type:xt.RECT},t)])}return(0,s.A)(e,t),(0,A.A)(e)}(Ao);xo.PARSED_STYLE_LIST=new Set([].concat((0,o.A)(Ao.PARSED_STYLE_LIST),["x","y","z","width","height","isBillboard","isSizeAttenuation","radius"]));var Co=["style"],Eo=function(t){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.style,A=(0,Bt.A)(t,Co);return(0,i.A)(this,e),(0,a.A)(this,e,[(0,r.A)({type:xt.TEXT,style:(0,r.A)({fill:"black"},n)},A)])}return(0,s.A)(e,t),(0,A.A)(e,[{key:"getComputedTextLength",value:function(){var t;return this.getGeometryBounds(),(null===(t=this.parsedStyle.metrics)||void 0===t?void 0:t.maxLineWidth)||0}},{key:"getLineBoundingRects",value:function(){var t;return this.getGeometryBounds(),(null===(t=this.parsedStyle.metrics)||void 0===t?void 0:t.lineMetrics)||[]}},{key:"isOverflowing",value:function(){return this.getGeometryBounds(),!!this.parsedStyle.isOverflowing}}])}(Ao);Eo.PARSED_STYLE_LIST=new Set([].concat((0,o.A)(Ao.PARSED_STYLE_LIST),["x","y","z","isBillboard","billboardRotation","isSizeAttenuation","text","textAlign","textBaseline","fontStyle","fontSize","fontFamily","fontWeight","fontVariant","lineHeight","letterSpacing","leading","wordWrap","wordWrapWidth","maxLines","textOverflow","isOverflowing","textPath","textDecorationLine","textDecorationColor","textDecorationStyle","textDecorationThickness","textPathSide","textPathStartOffset","metrics","dx","dy"]));var Oo=function(){return(0,A.A)(function t(){(0,i.A)(this,t),this.registry={},this.define(xt.CIRCLE,oo),this.define(xt.ELLIPSE,lo),this.define(xt.RECT,xo),this.define(xt.IMAGE,ho),this.define(xt.LINE,go),this.define(xt.GROUP,co),this.define(xt.PATH,yo),this.define(xt.POLYGON,bo),this.define(xt.POLYLINE,Bo),this.define(xt.TEXT,Eo),this.define(xt.HTML,fo)},[{key:"define",value:function(t,e){this.registry[t]=e}},{key:"get",value:function(t){return this.registry[t]}}])}(),ko={number:function(t){return new dn(t)},percent:function(t){return new dn(t,"%")},px:function(t){return new dn(t,"px")},em:function(t){return new dn(t,"em")},rem:function(t){return new dn(t,"rem")},deg:function(t){return new dn(t,"deg")},grad:function(t){return new dn(t,"grad")},rad:function(t){return new dn(t,"rad")},turn:function(t){return new dn(t,"turn")},s:function(t){return new dn(t,"s")},ms:function(t){return new dn(t,"ms")},registerProperty:function(t){VA.styleValueRegistry.registerMetadata({n:t.name,inh:t.inherits,int:t.interpolable,d:t.initialValue,syntax:t.syntax})},registerLayout:function(t,e){VA.layoutRegistry.registerLayout(t,e)}},Fo=function(t){function e(){var t;(0,i.A)(this,e),(t=(0,a.A)(this,e)).defaultView=null,t.ownerDocument=null,t.nodeName="document";try{t.timeline=new VA.AnimationTimeline(t)}catch(t){}var n={};return jr.forEach(function(t){var e=t.d;t.inh&&e&&(n[t.n]=(0,ft.A)(e)?e(xt.GROUP):e)}),t.documentElement=new co({id:"g-root",style:n}),t.documentElement.ownerDocument=t,t.documentElement.parentNode=t,t.childNodes=[t.documentElement],t}return(0,s.A)(e,t),(0,A.A)(e,[{key:"children",get:function(){return this.childNodes}},{key:"childElementCount",get:function(){return this.childNodes.length}},{key:"firstElementChild",get:function(){return this.firstChild}},{key:"lastElementChild",get:function(){return this.lastChild}},{key:"createElement",value:function(t,e){if("svg"===t)return this.documentElement;var n=this.defaultView.customElements.get(t);n||(console.warn("Unsupported tagName: ",t),n="tspan"===t?Eo:co);var r=new n(e);return r.ownerDocument=this,r}},{key:"createElementNS",value:function(t,e,n){return this.createElement(e,n)}},{key:"cloneNode",value:function(t){throw new Error(Ht)}},{key:"destroy",value:function(){try{this.documentElement.destroyChildren(),this.timeline.destroy()}catch(t){}}},{key:"elementsFromBBox",value:function(t,e,n,r){var i=[],A=function(o){if(o.isInteractive()&&!o.isCulled()){var a=o.parsedStyle.pointerEvents;if(!["auto","visiblepainted","visiblefill","visiblestroke","visible"].includes(void 0===a?"auto":a)||o.isVisible()){var s=o.getTransformedGeometryBounds(!0);s&&!_t.isEmpty(s)&&s.max[0]>=t&&s.min[0]<=n&&s.max[1]>=e&&s.min[1]<=r&&i.push(o)}o.childNodes&&o.childNodes.forEach(function(t){t instanceof Ao&&A(t)})}};return A(this.documentElement),i.sort(function(t,e){return e.sortable.renderOrder-t.sortable.renderOrder}),i}},{key:"elementFromPointSync",value:function(t,e){var n=this.defaultView.canvas2Viewport({x:t,y:e}),r=n.x,i=n.y,A=this.defaultView.getConfig();if(r<0||i<0||r>A.width||i>A.height)return null;var o=this.defaultView.viewport2Client({x:r,y:i}),a=o.x,s=o.y,l=this.defaultView.getRenderingService().hooks.pickSync.call({topmost:!0,position:{x:t,y:e,viewportX:r,viewportY:i,clientX:a,clientY:s},picked:[]}).picked;return l&&l[0]||this.documentElement}},{key:"elementFromPoint",value:(r=(0,bt.A)((0,vt.A)().mark(function t(e,n){var r,i,A,o,a,s,l,c,u,d;return(0,vt.A)().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(r=this.defaultView.canvas2Viewport({x:e,y:n}),i=r.x,A=r.y,o=this.defaultView.getConfig(),a=o.width,s=o.height,!(i<0||A<0||i>a||A>s)){t.next=1;break}return t.abrupt("return",null);case 1:return l=this.defaultView.viewport2Client({x:i,y:A}),c=l.x,u=l.y,t.next=2,this.defaultView.getRenderingService().hooks.pick.promise({topmost:!0,position:{x:e,y:n,viewportX:i,viewportY:A,clientX:c,clientY:u},picked:[]});case 2:return t.abrupt("return",(d=t.sent.picked)&&d[0]||this.documentElement);case 3:case"end":return t.stop()}},t,this)})),function(t,e){return r.apply(this,arguments)})},{key:"elementsFromPointSync",value:function(t,e){var n=this.defaultView.canvas2Viewport({x:t,y:e}),r=n.x,i=n.y,A=this.defaultView.getConfig();if(r<0||i<0||r>A.width||i>A.height)return[];var o=this.defaultView.viewport2Client({x:r,y:i}),a=o.x,s=o.y,l=this.defaultView.getRenderingService().hooks.pickSync.call({topmost:!1,position:{x:t,y:e,viewportX:r,viewportY:i,clientX:a,clientY:s},picked:[]}).picked;return l[l.length-1]!==this.documentElement&&l.push(this.documentElement),l}},{key:"elementsFromPoint",value:(n=(0,bt.A)((0,vt.A)().mark(function t(e,n){var r,i,A,o,a,s,l,c,u,d;return(0,vt.A)().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(r=this.defaultView.canvas2Viewport({x:e,y:n}),i=r.x,A=r.y,o=this.defaultView.getConfig(),a=o.width,s=o.height,!(i<0||A<0||i>a||A>s)){t.next=1;break}return t.abrupt("return",[]);case 1:return l=this.defaultView.viewport2Client({x:i,y:A}),c=l.x,u=l.y,t.next=2,this.defaultView.getRenderingService().hooks.pick.promise({topmost:!1,position:{x:e,y:n,viewportX:i,viewportY:A,clientX:c,clientY:u},picked:[]});case 2:return(d=t.sent.picked)[d.length-1]!==this.documentElement&&d.push(this.documentElement),t.abrupt("return",d);case 3:case"end":return t.stop()}},t,this)})),function(t,e){return n.apply(this,arguments)})},{key:"appendChild",value:function(t,e){throw new Error(Nt)}},{key:"insertBefore",value:function(t,e){throw new Error(Nt)}},{key:"removeChild",value:function(t,e){throw new Error(Nt)}},{key:"replaceChild",value:function(t,e,n){throw new Error(Nt)}},{key:"append",value:function(){throw new Error(Nt)}},{key:"prepend",value:function(){throw new Error(Nt)}},{key:"getElementById",value:function(t){return this.documentElement.getElementById(t)}},{key:"getElementsByName",value:function(t){return this.documentElement.getElementsByName(t)}},{key:"getElementsByTagName",value:function(t){return this.documentElement.getElementsByTagName(t)}},{key:"getElementsByClassName",value:function(t){return this.documentElement.getElementsByClassName(t)}},{key:"querySelector",value:function(t){return this.documentElement.querySelector(t)}},{key:"querySelectorAll",value:function(t){return this.documentElement.querySelectorAll(t)}},{key:"find",value:function(t){return this.documentElement.find(t)}},{key:"findAll",value:function(t){return this.documentElement.findAll(t)}}]);var n,r}(lA),Qo=function(){function t(e){(0,i.A)(this,t),this.strategies=e}return(0,A.A)(t,[{key:"apply",value:function(e){var n=e.config,r=e.camera,i=e.renderingService,A=e.renderingContext,o=this.strategies;i.hooks.cull.tap(t.tag,function(t){if(t){var e;if(t.cullable.visible=0===o.length?A.unculledEntities.indexOf(t.entity)>-1:o.every(function(e){return e.isVisible(r,t)}),!t.isCulled()&&t.isVisible())return t;var i=!0===(null===(e=n.future)||void 0===e?void 0:e.experimentalCancelEventPropagation);return t.dispatchEvent(new aA(gA.CULLED),i,i),null}return t}),i.hooks.afterRender.tap(t.tag,function(t){t.cullable.visibilityPlaneMask=-1})}}])}();Qo.tag="Culling";var Mo=function(){function t(){var e=this;(0,i.A)(this,t),this.autoPreventDefault=!1,this.rootPointerEvent=new AA(null),this.rootWheelEvent=new oA(null),this.onPointerMove=function(t){var n,r=null===(n=e.context.renderingContext.root)||void 0===n||null===(n=n.ownerDocument)||void 0===n?void 0:n.defaultView;if(!r.supportsTouchEvents||"touch"!==t.pointerType){var i,A=e.normalizeToPointerEvent(t,r),o=(0,wt.A)(A);try{for(o.s();!(i=o.n()).done;){var a=e.bootstrapEvent(e.rootPointerEvent,i.value,r,t);e.context.eventService.mapEvent(a)}}catch(t){o.e(t)}finally{o.f()}e.setCursor(e.context.eventService.cursor)}},this.onClick=function(t){var n,r,i=null===(n=e.context.renderingContext.root)||void 0===n||null===(n=n.ownerDocument)||void 0===n?void 0:n.defaultView,A=e.normalizeToPointerEvent(t,i),o=(0,wt.A)(A);try{for(o.s();!(r=o.n()).done;){var a=e.bootstrapEvent(e.rootPointerEvent,r.value,i,t);e.context.eventService.mapEvent(a)}}catch(t){o.e(t)}finally{o.f()}e.setCursor(e.context.eventService.cursor)}}return(0,A.A)(t,[{key:"apply",value:function(e){var n=this;this.context=e;var r=e.renderingService,i=this.context.renderingContext.root.ownerDocument.defaultView;this.context.eventService.setPickHandler(function(t){return n.context.renderingService.hooks.pickSync.call({position:t,picked:[],topmost:!0}).picked[0]||null}),r.hooks.pointerWheel.tap(t.tag,function(t){var e=n.normalizeWheelEvent(t);n.context.eventService.mapEvent(e)}),r.hooks.pointerDown.tap(t.tag,function(t){if(!i.supportsTouchEvents||"touch"!==t.pointerType){var e=n.normalizeToPointerEvent(t,i);n.autoPreventDefault&&e[0].isNormalized&&(t.cancelable||!("cancelable"in t))&&t.preventDefault();var r,A=(0,wt.A)(e);try{for(A.s();!(r=A.n()).done;){var o=n.bootstrapEvent(n.rootPointerEvent,r.value,i,t);n.context.eventService.mapEvent(o)}}catch(t){A.e(t)}finally{A.f()}n.setCursor(n.context.eventService.cursor)}}),r.hooks.pointerUp.tap(t.tag,function(t){if(!i.supportsTouchEvents||"touch"!==t.pointerType){var e,r=n.context.contextService.getDomElement(),A=n.context.eventService.isNativeEventFromCanvas(r,t)?"":"outside",o=n.normalizeToPointerEvent(t,i),a=(0,wt.A)(o);try{for(a.s();!(e=a.n()).done;){var s=n.bootstrapEvent(n.rootPointerEvent,e.value,i,t);s.type+=A,n.context.eventService.mapEvent(s)}}catch(t){a.e(t)}finally{a.f()}n.setCursor(n.context.eventService.cursor)}}),r.hooks.pointerMove.tap(t.tag,this.onPointerMove),r.hooks.pointerOver.tap(t.tag,this.onPointerMove),r.hooks.pointerOut.tap(t.tag,this.onPointerMove),r.hooks.click.tap(t.tag,this.onClick),r.hooks.pointerCancel.tap(t.tag,function(t){var e,r=n.normalizeToPointerEvent(t,i),A=(0,wt.A)(r);try{for(A.s();!(e=A.n()).done;){var o=n.bootstrapEvent(n.rootPointerEvent,e.value,i,t);n.context.eventService.mapEvent(o)}}catch(t){A.e(t)}finally{A.f()}n.setCursor(n.context.eventService.cursor)})}},{key:"bootstrapEvent",value:function(t,e,n,r){t.view=n,t.originalEvent=null,t.nativeEvent=r,t.pointerId=e.pointerId,t.width=e.width,t.height=e.height,t.isPrimary=e.isPrimary,t.pointerType=e.pointerType,t.pressure=e.pressure,t.tangentialPressure=e.tangentialPressure,t.tiltX=e.tiltX,t.tiltY=e.tiltY,t.twist=e.twist,this.transferMouseData(t,e);var i=this.context.eventService.client2Viewport({x:e.clientX,y:e.clientY}),A=i.y;t.viewport.x=i.x,t.viewport.y=A;var o=this.context.eventService.viewport2Canvas(t.viewport),a=o.y;return t.canvas.x=o.x,t.canvas.y=a,t.global.copyFrom(t.canvas),t.offset.copyFrom(t.canvas),t.isTrusted=r.isTrusted,"pointerleave"===t.type&&(t.type="pointerout"),t.type.startsWith("mouse")&&(t.type=t.type.replace("mouse","pointer")),t.type.startsWith("touch")&&(t.type=fi[t.type]||t.type),t}},{key:"normalizeWheelEvent",value:function(t){var e=this.rootWheelEvent;this.transferMouseData(e,t),e.deltaMode=t.deltaMode,e.deltaX=t.deltaX,e.deltaY=t.deltaY,e.deltaZ=t.deltaZ;var n=this.context.eventService.client2Viewport({x:t.clientX,y:t.clientY}),r=n.y;e.viewport.x=n.x,e.viewport.y=r;var i=this.context.eventService.viewport2Canvas(e.viewport),A=i.y;return e.canvas.x=i.x,e.canvas.y=A,e.global.copyFrom(e.canvas),e.offset.copyFrom(e.canvas),e.nativeEvent=t,e.type=t.type,e}},{key:"transferMouseData",value:function(t,e){t.isTrusted=e.isTrusted,t.srcElement=e.srcElement,t.timeStamp=hi.now(),t.type=e.type,t.altKey=e.altKey,t.metaKey=e.metaKey,t.shiftKey=e.shiftKey,t.ctrlKey=e.ctrlKey,t.button=e.button,t.buttons=e.buttons,t.client.x=e.clientX,t.client.y=e.clientY,t.movement.x=e.movementX,t.movement.y=e.movementY,t.page.x=e.pageX,t.page.y=e.pageY,t.screen.x=e.screenX,t.screen.y=e.screenY,t.relatedTarget=null}},{key:"setCursor",value:function(t){this.context.contextService.applyCursorStyle(t||this.context.config.cursor||"default")}},{key:"normalizeToPointerEvent",value:function(t,e){var n=[];if(e.isTouchEvent(t))for(var r=0;r<t.changedTouches.length;r++){var i=t.changedTouches[r];(0,lt.A)(i.button)&&(i.button=0),(0,lt.A)(i.buttons)&&(i.buttons=1),(0,lt.A)(i.isPrimary)&&(i.isPrimary=1===t.touches.length&&"touchstart"===t.type),(0,lt.A)(i.width)&&(i.width=i.radiusX||1),(0,lt.A)(i.height)&&(i.height=i.radiusY||1),(0,lt.A)(i.tiltX)&&(i.tiltX=0),(0,lt.A)(i.tiltY)&&(i.tiltY=0),(0,lt.A)(i.pointerType)&&(i.pointerType="touch"),(0,lt.A)(i.pointerId)&&(i.pointerId=i.identifier||0),(0,lt.A)(i.pressure)&&(i.pressure=i.force||.5),(0,lt.A)(i.twist)&&(i.twist=0),(0,lt.A)(i.tangentialPressure)&&(i.tangentialPressure=0),i.isNormalized=!0,i.type=t.type,n.push(i)}else if(e.isMouseEvent(t)){var A=t;(0,lt.A)(A.isPrimary)&&(A.isPrimary=!0),(0,lt.A)(A.width)&&(A.width=1),(0,lt.A)(A.height)&&(A.height=1),(0,lt.A)(A.tiltX)&&(A.tiltX=0),(0,lt.A)(A.tiltY)&&(A.tiltY=0),(0,lt.A)(A.pointerType)&&(A.pointerType="mouse"),(0,lt.A)(A.pointerId)&&(A.pointerId=1),(0,lt.A)(A.pressure)&&(A.pressure=.5),(0,lt.A)(A.twist)&&(A.twist=0),(0,lt.A)(A.tangentialPressure)&&(A.tangentialPressure=0),A.isNormalized=!0,n.push(A)}else n.push(t);return n}}])}();Mo.tag="Event";var Uo=[xt.CIRCLE,xt.ELLIPSE,xt.IMAGE,xt.RECT,xt.LINE,xt.POLYLINE,xt.POLYGON,xt.TEXT,xt.PATH,xt.HTML],So=function(){return(0,A.A)(function t(){(0,i.A)(this,t)},[{key:"isVisible",value:function(t,e){var n,r=e.cullable;if(!r.enable)return!0;var i=e.getRenderBounds();if(_t.isEmpty(i))return!1;var A=t.getFrustum(),o=null===(n=e.parentNode)||void 0===n||null===(n=n.cullable)||void 0===n?void 0:n.visibilityPlaneMask;return r.visibilityPlaneMask=this.computeVisibilityWithPlaneMask(e,i,o||Tt.INDETERMINATE,A.planes),r.visible=r.visibilityPlaneMask!==Tt.OUTSIDE,r.visible}},{key:"computeVisibilityWithPlaneMask",value:function(t,e,n,r){if(n===Tt.OUTSIDE||n===Tt.INSIDE)return n;for(var i=Tt.INSIDE,A=Uo.indexOf(t.nodeName)>-1,o=0,a=r.length;o<a;++o){var s=1<<o;if(0!==(n&s)&&(!A||4!==o&&5!==o)){var l=r[o],c=l.normal,d=l.distance;if(u.Om(c,e.getPositiveFarPoint(r[o]))+d<0)return Tt.OUTSIDE;u.Om(c,e.getNegativeFarPoint(r[o]))+d<0&&(i|=s)}}return i}}])}(),_o=function(){function t(){(0,i.A)(this,t),this.mutationRecords=[],this.isFirstTimeRendering=!0,this.isFirstTimeRenderingFinished=!1}return(0,A.A)(t,[{key:"apply",value:function(e){var n,r=this,i=e.renderingService,A=e.renderingContext.root.ownerDocument.defaultView,a=function(t){i.dirty()},s=function(t){var e;(e=r.mutationRecords).push.apply(e,(0,o.A)(t.detail)),i.dirty()},l=function(t){VA.enableSizeAttenuation&&VA.styleValueRegistry.updateSizeAttenuation(t.target,A.getCamera().getZoom())},c=function(t){VA.sceneGraphService.dirtyToRoot(t.target),i.dirty()};i.hooks.init.tap(t.tag,function(){A.addEventListener(gA.MOUNTED,l),A.addEventListener(gA.UNMOUNTED,c),A.addEventListener(gA.ATTR_MODIFIED,a),A.addEventListener(gA.BOUNDS_CHANGED,s)}),i.hooks.destroy.tap(t.tag,function(){A.removeEventListener(gA.MOUNTED,l),A.removeEventListener(gA.UNMOUNTED,c),A.removeEventListener(gA.ATTR_MODIFIED,a),A.removeEventListener(gA.BOUNDS_CHANGED,s),r.mutationRecords=[]});var u=null!==(n=VA.globalThis.requestIdleCallback)&&void 0!==n?n:Oi.bind(VA.globalThis);i.hooks.endFrame.tap(t.tag,function(){r.isFirstTimeRendering&&(r.isFirstTimeRendering=!1,u(function(){r.isFirstTimeRenderingFinished=!0})),r.mutationRecords=[]})}}])}();_o.tag="Prepare";var Io=function(t){return t.READY="ready",t.BEFORE_RENDER="beforerender",t.RERENDER="rerender",t.AFTER_RENDER="afterrender",t.BEFORE_DESTROY="beforedestroy",t.AFTER_DESTROY="afterdestroy",t.RESIZE="resize",t.DIRTY_RECTANGLE="dirtyrectangle",t.RENDERER_CHANGED="rendererchanged",t}({}),To=new aA(gA.MOUNTED),Lo=new aA(gA.UNMOUNTED),Po=new aA(Io.BEFORE_RENDER),jo=new aA(Io.RERENDER),Ho=new aA(Io.AFTER_RENDER),No=function(t){function e(t){var n;(0,i.A)(this,e),(n=(0,a.A)(this,e)).Element=Ao,n.inited=!1,n.context={};var A=t.container,o=t.canvas,s=t.renderer,l=t.width,c=t.height,u=t.background,d=t.cursor,f=t.supportsMutipleCanvasesInOneContainer,h=t.cleanUpOnDestroy,p=void 0===h||h,g=t.offscreenCanvas,m=t.requestAnimationFrame,y=t.cancelAnimationFrame,v=t.createImage,b=t.supportsTouchEvents,w=t.supportsPointerEvents,B=t.isTouchEvent,x=t.isMouseEvent,C=t.dblClickSpeed,E=l,O=c,k=t.devicePixelRatio||ai&&window.devicePixelRatio||1;return k=k>=1?Math.ceil(k):1,o&&(E=l||function(t){var e=di(t,"width");return"auto"===e?t.offsetWidth:parseFloat(e)}(o)||o.width/k,O=c||function(t){var e=di(t,"height");return"auto"===e?t.offsetHeight:parseFloat(e)}(o)||o.height/k),n.customElements=new Oo,n.devicePixelRatio=k,n.requestAnimationFrame=null!=m?m:Oi.bind(VA.globalThis),n.cancelAnimationFrame=null!=y?y:ki.bind(VA.globalThis),n.createImage=null!=v?v:function(){return new window.Image},n.supportsTouchEvents=null!=b?b:"ontouchstart"in VA.globalThis,n.supportsPointerEvents=null!=w?w:!!VA.globalThis.PointerEvent,n.isTouchEvent=null!=B?B:function(t){return n.supportsTouchEvents&&t instanceof VA.globalThis.TouchEvent},n.isMouseEvent=null!=x?x:function(t){return!VA.globalThis.MouseEvent||t instanceof VA.globalThis.MouseEvent&&(!n.supportsPointerEvents||!(t instanceof VA.globalThis.PointerEvent))},g&&(VA.offscreenCanvas=g),n.document=new Fo,n.document.defaultView=n,f||function(t,e,n){if(t){var r="string"==typeof t?document.getElementById(t):t;oi.has(r)&&oi.get(r).destroy(n),oi.set(r,e)}}(A,n,p),n.initRenderingContext((0,r.A)((0,r.A)({},t),{},{width:E,height:O,background:null!=u?u:"transparent",cursor:null!=d?d:"default",cleanUpOnDestroy:p,devicePixelRatio:k,requestAnimationFrame:n.requestAnimationFrame,cancelAnimationFrame:n.cancelAnimationFrame,createImage:n.createImage,supportsTouchEvents:n.supportsTouchEvents,supportsPointerEvents:n.supportsPointerEvents,isTouchEvent:n.isTouchEvent,isMouseEvent:n.isMouseEvent,dblClickSpeed:null!=C?C:200})),n.initDefaultCamera(E,O,s.clipSpaceNearZ),n.initRenderer(s,!0),n}return(0,s.A)(e,t),(0,A.A)(e,[{key:"initRenderingContext",value:function(t){this.context.config=t,this.context.renderingContext={root:this.document.documentElement,unculledEntities:[],renderListCurrentFrame:[],renderReasons:new Set,force:!1,dirty:!1}}},{key:"initDefaultCamera",value:function(t,e,n){var r=this,i=new VA.CameraContribution;i.clipSpaceNearZ=n,i.setType(re.EXPLORING,ie.DEFAULT).setPosition(t/2,e/2,500).setFocalPoint(t/2,e/2,0).setOrthographic(t/-2,t/2,e/2,e/-2,.1,1e3),i.canvas=this,i.eventEmitter.on(oe,function(){r.context.renderingContext.renderReasons.add(dA.CAMERA_CHANGED),VA.enableSizeAttenuation&&r.getConfig().renderer.getConfig().enableSizeAttenuation&&r.updateSizeAttenuation()}),this.context.camera=i}},{key:"updateSizeAttenuation",value:function(){var t=this.getCamera().getZoom();this.document.documentElement.forEach(function(e){VA.styleValueRegistry.updateSizeAttenuation(e,t)})}},{key:"getConfig",value:function(){return this.context.config}},{key:"getRoot",value:function(){return this.document.documentElement}},{key:"getCamera",value:function(){return this.context.camera}},{key:"getContextService",value:function(){return this.context.contextService}},{key:"getEventService",value:function(){return this.context.eventService}},{key:"getRenderingService",value:function(){return this.context.renderingService}},{key:"getRenderingContext",value:function(){return this.context.renderingContext}},{key:"getStats",value:function(){return this.getRenderingService().getStats()}},{key:"ready",get:function(){var t=this;return this.readyPromise||(this.readyPromise=new Promise(function(e){t.resolveReadyPromise=function(){e(t)}}),this.inited&&this.resolveReadyPromise()),this.readyPromise}},{key:"destroy",value:function(){var t,e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],n=arguments.length>1?arguments[1]:void 0;$e.clearCache();var r=!0===(null===(t=this.getConfig().future)||void 0===t?void 0:t.experimentalCancelEventPropagation);n||this.dispatchEvent(new aA(Io.BEFORE_DESTROY),r,r),this.frameId&&this.cancelAnimationFrame(this.frameId);var i=this.getRoot();e&&(this.unmountChildren(i),this.document.destroy(),this.getEventService().destroy()),this.getRenderingService().destroy(),this.getContextService().destroy(),n||this.dispatchEvent(new aA(Io.AFTER_DESTROY),r,r);var A=function(t){t.currentTarget=null,t.manager=null,t.target=null,t.relatedNode=null};A(To),A(Lo),A(Po),A(jo),A(Ho),A(no),A($A),A(qA),A(ZA),VA.textService.clearCache()}},{key:"changeSize",value:function(t,e){this.resize(t,e)}},{key:"resize",value:function(t,e){var n,r=this.context.config;r.width=t,r.height=e,this.getContextService().resize(t,e);var i=this.context.camera,A=i.getProjectionMode();i.setPosition(t/2,e/2,500).setFocalPoint(t/2,e/2,0),A===Ae.ORTHOGRAPHIC?i.setOrthographic(t/-2,t/2,e/2,e/-2,i.getNear(),i.getFar()):i.setAspect(t/e);var o=!0===(null===(n=r.future)||void 0===n?void 0:n.experimentalCancelEventPropagation);this.dispatchEvent(new aA(Io.RESIZE,{width:t,height:e}),o,o)}},{key:"appendChild",value:function(t,e){return this.document.documentElement.appendChild(t,e)}},{key:"insertBefore",value:function(t,e){return this.document.documentElement.insertBefore(t,e)}},{key:"removeChild",value:function(t){return this.document.documentElement.removeChild(t)}},{key:"removeChildren",value:function(){this.document.documentElement.removeChildren()}},{key:"destroyChildren",value:function(){this.document.documentElement.destroyChildren()}},{key:"render",value:function(t){var e,n=this;t&&(Po.detail=t,Ho.detail=t);var r=!0===(null===(e=this.getConfig().future)||void 0===e?void 0:e.experimentalCancelEventPropagation);this.dispatchEvent(Po,r,r),this.getRenderingService().render(this,t,function(){n.dispatchEvent(jo,r,r)}),this.dispatchEvent(Ho,r,r)}},{key:"run",value:function(){var t=this,e=function(n,r){t.render(r),t.frameId=t.requestAnimationFrame(e)};e()}},{key:"initRenderer",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!t)throw new Error("Renderer is required.");this.inited=!1,this.readyPromise=void 0,this.context.renderingPlugins=[],this.context.renderingPlugins.push(new Mo,new _o,new Qo([new So])),this.loadRendererContainerModule(t),this.context.contextService=new this.context.ContextService((0,r.A)((0,r.A)({},VA),this.context)),this.context.renderingService=new fA(VA,this.context),this.context.eventService=new cA(VA,this.context),this.context.eventService.init(),this.context.contextService.init?(this.context.contextService.init(),this.initRenderingService(t,n,!0)):this.context.contextService.initAsync().then(function(){e.initRenderingService(t,n)}).catch(function(t){console.error(t)})}},{key:"initRenderingService",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this.context.renderingService.init(function(){var i;e.inited=!0;var A=!0===(null===(i=e.getConfig().future)||void 0===i?void 0:i.experimentalCancelEventPropagation);n?r?e.requestAnimationFrame(function(){e.dispatchEvent(new aA(Io.READY),A,A)}):e.dispatchEvent(new aA(Io.READY),A,A):e.dispatchEvent(new aA(Io.RENDERER_CHANGED),A,A),e.readyPromise&&e.resolveReadyPromise(),n||e.getRoot().forEach(function(t){var e,n;null===(e=(n=t).dirty)||void 0===e||e.call(n,!0,!0)}),e.mountChildren(e.getRoot()),t.getConfig().enableAutoRendering&&e.run()})}},{key:"loadRendererContainerModule",value:function(t){var e=this;t.getPlugins().forEach(function(t){t.context=e.context,t.init(VA)})}},{key:"setRenderer",value:function(t){var e=this.getConfig();if(e.renderer!==t){var n=e.renderer;e.renderer=t,this.destroy(!1,!0),(0,o.A)((null==n?void 0:n.getPlugins())||[]).reverse().forEach(function(t){t.destroy(VA)}),this.initRenderer(t)}}},{key:"setCursor",value:function(t){this.getConfig().cursor=t,this.getContextService().applyCursorStyle(t)}},{key:"unmountChildren",value:function(t){var e=this;if(t.childNodes.forEach(function(t){e.unmountChildren(t)}),this.inited){if(t.isMutationObserved)t.dispatchEvent(Lo);else{var n,r=!0===(null===(n=this.getConfig().future)||void 0===n?void 0:n.experimentalCancelEventPropagation);Lo.target=t,this.dispatchEvent(Lo,!0,r)}t!==this.document.documentElement&&(t.ownerDocument=null),t.isConnected=!1}t.isCustomElement&&t.disconnectedCallback&&t.disconnectedCallback()}},{key:"mountChildren",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:pi(t);if(this.inited){if(!t.isConnected&&(t.ownerDocument=this.document,t.isConnected=!0,!n))if(t.isMutationObserved)t.dispatchEvent(To);else{var r,i=!0===(null===(r=this.getConfig().future)||void 0===r?void 0:r.experimentalCancelEventPropagation);To.target=t,this.dispatchEvent(To,!0,i)}}else console.warn("[g]: You are trying to call `canvas.appendChild` before canvas' initialization finished. You can either await `canvas.ready` or listen to `CanvasEvent.READY` manually.","appended child: ",t.nodeName);t.childNodes.forEach(function(t){e.mountChildren(t,n)}),t.isCustomElement&&t.connectedCallback&&t.connectedCallback()}},{key:"mountFragment",value:function(t){this.mountChildren(t,!1)}},{key:"client2Viewport",value:function(t){return this.getEventService().client2Viewport(t)}},{key:"viewport2Client",value:function(t){return this.getEventService().viewport2Client(t)}},{key:"viewport2Canvas",value:function(t){return this.getEventService().viewport2Canvas(t)}},{key:"canvas2Viewport",value:function(t){return this.getEventService().canvas2Viewport(t)}},{key:"getPointByClient",value:function(t,e){return this.client2Viewport({x:t,y:e})}},{key:"getClientByPoint",value:function(t,e){return this.viewport2Client({x:t,y:e})}}])}(sA);new WeakMap;var Do=function(){return(0,A.A)(function t(){(0,i.A)(this,t),this.cacheStore=new Map},[{key:"onRefAdded",value:function(t){}},{key:"has",value:function(t){return this.cacheStore.has(t)}},{key:"put",value:function(t,e,n){return!this.cacheStore.has(t)&&(this.cacheStore.set(t,{value:e,counter:new Set([n.entity])}),this.onRefAdded(n),!0)}},{key:"get",value:function(t,e){var n=this.cacheStore.get(t);return n?(n.counter.has(e.entity)||(n.counter.add(e.entity),this.onRefAdded(e)),n.value):null}},{key:"update",value:function(t,e,n){var i=this.cacheStore.get(t);return!!i&&(i.value=(0,r.A)((0,r.A)({},i.value),e),i.counter.has(n.entity)||(i.counter.add(n.entity),this.onRefAdded(n)),!0)}},{key:"release",value:function(t,e){var n=this.cacheStore.get(t);return!!n&&(n.counter.delete(e.entity),n.counter.size<=0&&this.cacheStore.delete(t),!0)}},{key:"releaseRef",value:function(t){var e=this;Array.from(this.cacheStore.keys()).forEach(function(n){e.release(n,t)})}},{key:"getSize",value:function(){return this.cacheStore.size}},{key:"clear",value:function(){this.cacheStore.clear()}}])}(),Ro=[],Ko=[],zo=function(){function t(){(0,i.A)(this,t)}return(0,A.A)(t,null,[{key:"stop",value:function(){t.rafId&&((arguments.length>0&&void 0!==arguments[0]?arguments[0]:t.api).cancelAnimationFrame(t.rafId),t.rafId=null)}},{key:"executeTask",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:t.api;Ro.length<=0&&Ko.length<=0||(Ko.forEach(function(t){return t()}),Ko=Ro.splice(0,t.TASK_NUM_PER_FRAME),t.rafId=e.requestAnimationFrame(function(){t.executeTask(e)}))}},{key:"sliceImage",value:function(e,n,r,i){for(var A=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:t.api,a=e.naturalWidth||e.width,s=e.naturalHeight||e.height,l=n-A,c=r-A,u=Math.ceil(a/l),d=Math.ceil(s/c),f={tileSize:[n,r],gridSize:[d,u],tiles:Array(d).fill(null).map(function(){return Array(u).fill(null)})},h=function(t){for(var A=function(A){Ro.push(function(){var u=A*l,d=t*c,h=[Math.min(n,a-u),Math.min(r,s-d)],p=h[0],g=h[1],m=o.createCanvas();m.width=n,m.height=r,m.getContext("2d").drawImage(e,u,d,p,g,0,0,p,g),f.tiles[t][A]={x:u,y:d,tileX:A,tileY:t,data:m},i()})},d=0;d<u;d++)A(d)},p=0;p<d;p++)h(p);return t.stop(),t.executeTask(),f}}])}();zo.TASK_NUM_PER_FRAME=10;var Go=new Do;Go.onRefAdded=function(t){var e=this;t.addEventListener(gA.DESTROY,function(){e.releaseRef(t)},{once:!0})};var Vo=function(){return(0,A.A)(function t(e,n){(0,i.A)(this,t),this.gradientCache={},this.patternCache={},this.context=e,this.runtime=n},[{key:"getImageSync",value:function(t,e,n){var r=(0,w.A)(t)?t:t.src;if(Go.has(r)){var i=Go.get(r,e);if(i.img.complete)return null==n||n(i),i}return this.getOrCreateImage(t,e).then(function(t){null==n||n(t)}).catch(function(t){console.error(t)}),null}},{key:"getOrCreateImage",value:function(t,e){var n=this,r=(0,w.A)(t)?t:t.src;if(!(0,w.A)(t)&&!Go.has(r)){var i={img:t,size:[t.naturalWidth||t.width,t.naturalHeight||t.height],tileSize:Wo(t)};Go.put(r,i,e)}if(Go.has(r)){var A=Go.get(r,e);return A.img.complete?Promise.resolve(A):new Promise(function(t,e){A.img.addEventListener("load",function(){A.size=[A.img.naturalWidth||A.img.width,A.img.naturalHeight||A.img.height],A.tileSize=Wo(A.img),t(A)}),A.img.addEventListener("error",function(t){e(t)})})}return new Promise(function(t,i){var A=n.context.config.createImage();if(A){var o={img:A,size:[0,0],tileSize:Wo(A)};Go.put(r,o,e),A.onload=function(){o.size=[A.naturalWidth||A.width,A.naturalHeight||A.height],o.tileSize=Wo(o.img),t(o)},A.onerror=function(t){i(t)},A.crossOrigin="Anonymous",A.src=r}})}},{key:"createDownSampledImage",value:(e=(0,bt.A)((0,vt.A)().mark(function t(e,n){var i,A,o,a,s,c,u,d,f,h,p,g,m,y;return(0,vt.A)().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=1,this.getOrCreateImage(e,n);case 1:if(void 0===(i=t.sent).downSamplingRate){t.next=2;break}return t.abrupt("return",i);case 2:if(s=void 0===(a=(o="boolean"==typeof(A=this.context.config.enableLargeImageOptimization)?{}:A).maxDownSampledImageSize)?2048:a,u=void 0===(c=o.downSamplingRateThreshold)?.5:c,d=this.runtime.globalThis.createImageBitmap,f=(0,l.A)(i.size,2),h=f[0],p=f[1],g=i.img,m=Math.min((s+s)/(h+p),Math.max(.01,Math.min(u,.5))),y=(0,r.A)((0,r.A)({},i),{},{downSamplingRate:m}),Go.update(i.img.src,y,n),!d){t.next=7;break}return t.prev=3,t.next=4,d(i.img,{resizeWidth:h*m,resizeHeight:p*m});case 4:g=t.sent,t.next=6;break;case 5:t.prev=5,t.catch(3),m=1;case 6:t.next=8;break;case 7:m=1;case 8:return y=(0,r.A)((0,r.A)({},this.getImageSync(e,n)),{},{downSampled:g,downSamplingRate:m}),Go.update(i.img.src,y,n),t.abrupt("return",y);case 9:case"end":return t.stop()}},t,this,[[3,5]])})),function(t,n){return e.apply(this,arguments)})},{key:"createImageTiles",value:(t=(0,bt.A)((0,vt.A)().mark(function t(e,n,i,A){var o,a,s;return(0,vt.A)().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=1,this.getOrCreateImage(e,A);case 1:return o=t.sent,zo.api={requestAnimationFrame:(a=A.ownerDocument.defaultView).requestAnimationFrame,cancelAnimationFrame:a.cancelAnimationFrame,createCanvas:function(){return uA.createCanvas()}},s=(0,r.A)((0,r.A)({},o),zo.sliceImage(o.img,o.tileSize[0],o.tileSize[0],i)),Go.update(o.img.src,s,A),t.abrupt("return",s);case 2:case"end":return t.stop()}},t,this)})),function(e,n,r,i){return t.apply(this,arguments)})},{key:"releaseImage",value:function(t,e){Go.release((0,w.A)(t)?t:t.src,e)}},{key:"releaseImageRef",value:function(t){Go.releaseRef(t)}},{key:"getOrCreatePatternSync",value:function(t,e,n,r,i,A,o){var a=this.generatePatternKey(e);if(a&&this.patternCache[a])return this.patternCache[a];var s,l=e.image,c=e.repetition,u=e.transform,d=!1;if((0,w.A)(l)){var h=this.getImageSync(l,t,o);s=null==h?void 0:h.img}else r?(s=r,d=!0):s=l;var p,g=s&&n.createPattern(s,c);return g&&(p=u?zi(Cr(u),new Ao({})):f.D_(f.vt()),d&&f.hs(p,p,[1/i,1/i,1]),g.setTransform({a:p[0],b:p[1],c:p[4],d:p[5],e:p[12]+A[0],f:p[13]+A[1]})),a&&g&&(this.patternCache[a]=g),g}},{key:"getOrCreateGradient",value:function(t,e){var n=this.generateGradientKey(t),r=t.type,i=t.steps,A=t.min,o=t.width,a=t.height,s=t.cx,l=t.cy,c=t.size;if(this.gradientCache[n])return this.gradientCache[n];var u=null;if(r===sn.LinearGradient){var d=function(t,e,n,r){var i=Gt(r.value),A=0+e/2,o=0+n/2,a=Math.abs(e*Math.cos(i))+Math.abs(n*Math.sin(i));return{x1:t[0]+A-Math.cos(i)*a/2,y1:t[1]+o-Math.sin(i)*a/2,x2:t[0]+A+Math.cos(i)*a/2,y2:t[1]+o+Math.sin(i)*a/2}}(A,o,a,t.angle);u=e.createLinearGradient(d.x1,d.y1,d.x2,d.y2)}else if(r===sn.RadialGradient){var f=function(t,e,n,r,i,A){var o=r.value,a=i.value;r.unit===qe.kPercentage&&(o=r.value/100*e),i.unit===qe.kPercentage&&(a=i.value/100*n);var s=Math.max((0,v.F)([0,0],[o,a]),(0,v.F)([0,n],[o,a]),(0,v.F)([e,n],[o,a]),(0,v.F)([e,0],[o,a]));return A&&(A instanceof dn?s=A.value:A instanceof cn&&("closest-side"===A.value?s=Math.min(o,e-o,a,n-a):"farthest-side"===A.value?s=Math.max(o,e-o,a,n-a):"closest-corner"===A.value&&(s=Math.min((0,v.F)([0,0],[o,a]),(0,v.F)([0,n],[o,a]),(0,v.F)([e,n],[o,a]),(0,v.F)([e,0],[o,a]))))),{x:o+t[0],y:a+t[1],r:s}}(A,o,a,s,l,c),h=f.x,p=f.y;u=e.createRadialGradient(h,p,0,h,p,f.r)}return u&&(i.forEach(function(t){var e,n=t.offset;n.unit===qe.kPercentage&&(null===(e=u)||void 0===e||e.addColorStop(n.value/100,t.color.toString()))}),this.gradientCache[n]=u),this.gradientCache[n]}},{key:"generateGradientKey",value:function(t){var e=t.min,n=t.width,r=t.height,i=t.steps,A=t.angle,o=t.cx,a=t.cy,s=t.size;return"gradient-".concat(t.type,"-").concat((null==A?void 0:A.toString())||0,"-").concat((null==o?void 0:o.toString())||0,"-").concat((null==a?void 0:a.toString())||0,"-").concat((null==s?void 0:s.toString())||0,"-").concat(e[0],"-").concat(e[1],"-").concat(n,"-").concat(r,"-").concat(i.map(function(t){var e=t.color;return"".concat(t.offset).concat(e)}).join("-"))}},{key:"generatePatternKey",value:function(t){var e=t.image,n=t.repetition;return(0,w.A)(e)?"pattern-".concat(e,"-").concat(n):"rect"===e.nodeName?"pattern-".concat(e.entity,"-").concat(n):void 0}}]);var t,e}();function Wo(t){if(!t.complete)return[0,0];var e=t.naturalWidth||t.width,n=t.naturalHeight||t.height,r=256;return[256,512].forEach(function(t){Math.ceil(n/t)*Math.ceil(e/t)<1e3&&(r=t)}),[r,r]}Vo.isSupportTile=!!uA.createCanvas();var Xo=function(){function t(){(0,i.A)(this,t)}return(0,A.A)(t,[{key:"apply",value:function(e){var n=e.renderingService,r=e.imagePool,i=e.renderingContext.root.ownerDocument.defaultView,A=function(t,e,n){var r=t.parsedStyle,i=r.width,A=r.height;i&&!A?t.setAttribute("height",n/e*i):!i&&A&&t.setAttribute("width",e/n*A)},o=function(t){var e=t.target,i=e.attributes;if(e.nodeName===xt.IMAGE){var o=i.keepAspectRatio;r.getImageSync(i.src,e,function(t){var r=t.img;o&&A(e,r.width,r.height),e.dirty(),n.dirty()})}},a=function(t){var e=t.target,i=t.prevValue,o=t.newValue;e.nodeName===xt.IMAGE&&"src"===t.attrName&&(i!==o&&r.releaseImage(i,e),(0,w.A)(o)&&r.getOrCreateImage(o,e).then(function(t){var r=t.img;e.attributes.keepAspectRatio&&A(e,r.width,r.height),e.dirty(),n.dirty()}).catch(function(){}))};n.hooks.init.tap(t.tag,function(){i.addEventListener(gA.MOUNTED,o),i.addEventListener(gA.ATTR_MODIFIED,a)}),n.hooks.destroy.tap(t.tag,function(){i.removeEventListener(gA.MOUNTED,o),i.removeEventListener(gA.ATTR_MODIFIED,a)})}}])}();Xo.tag="LoadImage";var Yo=function(t){function e(){var t;(0,i.A)(this,e);for(var n=arguments.length,r=new Array(n),A=0;A<n;A++)r[A]=arguments[A];return(t=(0,a.A)(this,e,[].concat(r))).name="image-loader",t}return(0,s.A)(e,t),(0,A.A)(e,[{key:"init",value:function(t){this.context.imagePool=new Vo(this.context,t),this.addRenderingPlugin(new Xo)}},{key:"destroy",value:function(){this.removeAllRenderingPlugins()}}])}(Et),$o=Object.freeze({__proto__:null,ImagePool:Vo,Plugin:Yo}),qo=function(){function t(){(0,i.A)(this,t),this.displayObjectHTMLElementMap=new WeakMap}return(0,A.A)(t,[{key:"joinTransformMatrix",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[0,0,0];return"matrix(".concat([t[0],t[1],t[4],t[5],t[12]+e[0],t[13]+e[1]].join(","),")")}},{key:"apply",value:function(e,n){var r=this,i=e.camera,A=e.renderingContext,o=e.renderingService;this.context=e;var a=A.root.ownerDocument.defaultView,s=a.context.eventService.nativeHTMLMap,l=function(t,e){e.style.transform=r.joinTransformMatrix(t.getWorldTransform(),t.getOrigin())},c=function(t){var e=t.target;if(e.nodeName===xt.HTML){r.$camera||(r.$camera=r.createCamera(i));var n=r.getOrCreateEl(e);r.$camera.appendChild(n),Object.keys(e.attributes).forEach(function(t){r.updateAttribute(t,e)}),l(e,n),s.set(n,e)}},u=function(t){var e=t.target;if(e.nodeName===xt.HTML&&r.$camera){var n=r.getOrCreateEl(e);n&&(n.remove(),s.delete(n))}},d=function(t){var e=t.target;e.nodeName===xt.HTML&&r.updateAttribute(t.attrName,e)},f=function(t){for(var e=t.detail,n=0;n<e.length;n++){var i=e[n].target;(i.nodeName===xt.FRAGMENT?i.childNodes:[i]).forEach(function(t){if(t.nodeName===xt.HTML){var e=r.getOrCreateEl(t);l(t,e)}})}},h=function(){if(r.$camera){var t=r.context.config,e=t.height;r.$camera.parentElement.style.width="".concat(t.width||0,"px"),r.$camera.parentElement.style.height="".concat(e||0,"px")}};o.hooks.init.tap(t.tag,function(){a.addEventListener(Io.RESIZE,h),a.addEventListener(gA.MOUNTED,c),a.addEventListener(gA.UNMOUNTED,u),a.addEventListener(gA.ATTR_MODIFIED,d),a.addEventListener(gA.BOUNDS_CHANGED,f)}),o.hooks.endFrame.tap(t.tag,function(){r.$camera&&A.renderReasons.has(dA.CAMERA_CHANGED)&&(r.$camera.style.transform=r.joinTransformMatrix(i.getOrthoMatrix()))}),o.hooks.destroy.tap(t.tag,function(){r.$camera&&r.$camera.remove(),a.removeEventListener(Io.RESIZE,h),a.removeEventListener(gA.MOUNTED,c),a.removeEventListener(gA.UNMOUNTED,u),a.removeEventListener(gA.ATTR_MODIFIED,d),a.removeEventListener(gA.BOUNDS_CHANGED,f)})}},{key:"createCamera",value:function(t){var e=this.context.config,n=e.document,r=e.width,i=e.height,A=this.context.contextService.getDomElement(),o=A.parentNode;if(o){var a="g-canvas-camera",s=o.querySelector("#".concat(a));if(!s){var l=(n||document).createElement("div");l.style.overflow="hidden",l.style.pointerEvents="none",l.style.position="absolute",l.style.left="0px",l.style.top="0px",l.style.width="".concat(r||0,"px"),l.style.height="".concat(i||0,"px");var c=(n||document).createElement("div");s=c,c.id=a,c.style.position="absolute",c.style.left="".concat(A.offsetLeft||0,"px"),c.style.top="".concat(A.offsetTop||0,"px"),c.style.transformOrigin="left top",c.style.transform=this.joinTransformMatrix(t.getOrthoMatrix()),c.style.pointerEvents="none",c.style.width="100%",c.style.height="100%",l.appendChild(c),o.appendChild(l)}return s}return null}},{key:"getOrCreateEl",value:function(t){var e=this.context.config.document,n=this.displayObjectHTMLElementMap.get(t);return n||(n=(e||document).createElement("div"),t.parsedStyle.$el=n,this.displayObjectHTMLElementMap.set(t,n),t.id&&(n.id=t.id),t.name&&n.setAttribute("name",t.name),t.className&&(n.className=t.className),n.style.position="absolute",n.style["will-change"]="transform",n.style.transform=this.joinTransformMatrix(t.getWorldTransform(),t.getOrigin())),n}},{key:"updateAttribute",value:function(t,e){var n=this.getOrCreateEl(e);switch(t){case"innerHTML":var r=e.parsedStyle.innerHTML;(0,w.A)(r)?n.innerHTML=r:(n.innerHTML="",n.appendChild(r));break;case"x":n.style.left="".concat(e.parsedStyle.x,"px");break;case"y":n.style.top="".concat(e.parsedStyle.y,"px");break;case"transformOrigin":var i=e.parsedStyle.transformOrigin;n.style["transform-origin"]="".concat(i[0].buildCSSText(null,null,"")," ").concat(i[1].buildCSSText(null,null,""));break;case"width":var A=e.parsedStyle.width;n.style.width=(0,y.A)(A)?"".concat(A,"px"):A.toString();break;case"height":var o=e.parsedStyle.height;n.style.height=(0,y.A)(o)?"".concat(o,"px"):o.toString();break;case"zIndex":n.style["z-index"]="".concat(e.parsedStyle.zIndex);break;case"visibility":n.style.visibility=e.parsedStyle.visibility;break;case"pointerEvents":var a=e.parsedStyle.pointerEvents;n.style.pointerEvents=void 0===a?"auto":a;break;case"opacity":n.style.opacity="".concat(e.parsedStyle.opacity);break;case"fill":var s=e.parsedStyle.fill,l="";_n(s)?l=s.isNone?"transparent":e.getAttribute("fill"):Array.isArray(s)?l=e.getAttribute("fill"):Sn(s),n.style.background=l;break;case"stroke":var c=e.parsedStyle.stroke,u="";_n(c)?u=c.isNone?"transparent":e.getAttribute("stroke"):Array.isArray(c)?u=e.getAttribute("stroke"):Sn(c),n.style["border-color"]=u,n.style["border-style"]="solid";break;case"lineWidth":n.style["border-width"]="".concat(e.parsedStyle.lineWidth||0,"px");break;case"lineDash":n.style["border-style"]="dashed";break;case"filter":n.style.filter=e.style.filter;break;default:(0,b.A)(e.style[t])||""===e.style[t]||(n.style[t]=e.style[t])}}}])}();qo.tag="HTMLRendering";var Zo=function(t){function e(){var t;(0,i.A)(this,e);for(var n=arguments.length,r=new Array(n),A=0;A<n;A++)r[A]=arguments[A];return(t=(0,a.A)(this,e,[].concat(r))).name="html-renderer",t}return(0,s.A)(e,t),(0,A.A)(e,[{key:"init",value:function(){this.addRenderingPlugin(new qo)}},{key:"destroy",value:function(){this.removeAllRenderingPlugins()}}])}(Et),Jo=Object.freeze({__proto__:null,Plugin:Zo}),ta=function(){function t(){(0,i.A)(this,t)}return(0,A.A)(t,[{key:"apply",value:function(e,n){var r=this,i=e.renderingService,A=e.renderingContext,o=e.config;this.context=e;var a=A.root.ownerDocument.defaultView,s=function(t){i.hooks.pointerMove.call(t)},l=function(t){i.hooks.pointerUp.call(t)},c=function(t){i.hooks.pointerDown.call(t)},u=function(t){i.hooks.pointerOver.call(t)},d=function(t){i.hooks.pointerOut.call(t)},f=function(t){i.hooks.pointerCancel.call(t)},h=function(t){i.hooks.pointerWheel.call(t)},p=function(t){i.hooks.click.call(t)};i.hooks.init.tap(t.tag,function(){var t=r.context.contextService.getDomElement();n.globalThis.navigator.msPointerEnabled?(t.style.msContentZooming="none",t.style.msTouchAction="none"):a.supportsPointerEvents&&(t.style.touchAction="none"),a.supportsPointerEvents?function(t){n.globalThis.document.addEventListener("pointermove",s,!0),t.addEventListener("pointerdown",c,!0),t.addEventListener("pointerleave",d,!0),t.addEventListener("pointerover",u,!0),n.globalThis.addEventListener("pointerup",l,!0),n.globalThis.addEventListener("pointercancel",f,!0)}(t):function(t){n.globalThis.document.addEventListener("mousemove",s,!0),t.addEventListener("mousedown",c,!0),t.addEventListener("mouseout",d,!0),t.addEventListener("mouseover",u,!0),n.globalThis.addEventListener("mouseup",l,!0)}(t),a.supportsTouchEvents&&function(t){t.addEventListener("touchstart",c,!0),t.addEventListener("touchend",l,!0),t.addEventListener("touchmove",s,!0),t.addEventListener("touchcancel",f,!0)}(t),o.useNativeClickEvent&&t.addEventListener("click",p,!0),t.addEventListener("wheel",h,{passive:!0,capture:!0})}),i.hooks.destroy.tap(t.tag,function(){var t=r.context.contextService.getDomElement();n.globalThis.navigator.msPointerEnabled?(t.style.msContentZooming="",t.style.msTouchAction=""):a.supportsPointerEvents&&(t.style.touchAction=""),a.supportsPointerEvents?function(t){n.globalThis.document.removeEventListener("pointermove",s,!0),t.removeEventListener("pointerdown",c,!0),t.removeEventListener("pointerleave",d,!0),t.removeEventListener("pointerover",u,!0),n.globalThis.removeEventListener("pointerup",l,!0),n.globalThis.removeEventListener("pointercancel",f,!0)}(t):function(t){n.globalThis.document.removeEventListener("mousemove",s,!0),t.removeEventListener("mousedown",c,!0),t.removeEventListener("mouseout",d,!0),t.removeEventListener("mouseover",u,!0),n.globalThis.removeEventListener("mouseup",l,!0)}(t),a.supportsTouchEvents&&function(t){t.removeEventListener("touchstart",c,!0),t.removeEventListener("touchend",l,!0),t.removeEventListener("touchmove",s,!0),t.removeEventListener("touchcancel",f,!0)}(t),o.useNativeClickEvent&&t.removeEventListener("click",p,!0),t.removeEventListener("wheel",h,!0)})}}])}();ta.tag="DOMInteraction";var ea=function(t){function e(){var t;(0,i.A)(this,e);for(var n=arguments.length,r=new Array(n),A=0;A<n;A++)r[A]=arguments[A];return(t=(0,a.A)(this,e,[].concat(r))).name="dom-interaction",t}return(0,s.A)(e,t),(0,A.A)(e,[{key:"init",value:function(){this.addRenderingPlugin(new ta)}},{key:"destroy",value:function(){this.removeAllRenderingPlugins()}}])}(Et),na=Object.freeze({__proto__:null,Plugin:ea});(function(){function t(){(0,i.A)(this,t)}return(0,A.A)(t,[{key:"apply",value:function(e){var n=e.renderingService,r=e.config,i=e.contextService.getDomElement(),A=function(t){n.hooks.pointerDown.call(t)},o=function(t){n.hooks.pointerUp.call(t)},a=function(t){n.hooks.pointerMove.call(t)},s=function(t){n.hooks.pointerOver.call(t)},l=function(t){n.hooks.pointerOut.call(t)},c=function(t){n.hooks.click.call(t)},u=function(t){n.hooks.pointerCancel.call(t)};n.hooks.init.tap(t.tag,function(){i.addEventListener("touchstart",A,!0),i.addEventListener("touchend",o,!0),i.addEventListener("touchmove",a,!0),i.addEventListener("touchcancel",u,!0),i.addEventListener("mouseout",l,!0),i.addEventListener("mouseover",s,!0),r.useNativeClickEvent&&i.addEventListener("click",c,!0)}),n.hooks.destroy.tap(t.tag,function(){i.removeEventListener("touchstart",A,!0),i.removeEventListener("touchend",o,!0),i.removeEventListener("touchmove",a,!0),i.removeEventListener("touchcancel",u,!0),i.removeEventListener("mouseout",l,!0),i.removeEventListener("mouseover",s,!0),r.useNativeClickEvent&&i.removeEventListener("click",c,!0)})}}])}()).tag="MobileInteraction"},"./node_modules/.pnpm/@antv+g-math@3.1.0/node_modules/@antv/g-math/dist/index.esm.js"(t,e,n){"use strict";n.d(e,{Io:()=>o,M7:()=>h,Sy:()=>v,Wp:()=>y,bU:()=>d,d9:()=>B,iP:()=>f,kF:()=>c,oe:()=>m,tT:()=>x});var r=n("./node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/toConsumableArray.js"),i=n("./node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/esm/lodash/is-number-equal.js"),A=n("./node_modules/.pnpm/gl-matrix@3.4.4/node_modules/gl-matrix/esm/vec2.js");function o(t,e,n,r){var i=t-n,A=e-r;return Math.sqrt(i*i+A*A)}function a(t,e){var n=Math.min.apply(Math,(0,r.A)(t)),i=Math.min.apply(Math,(0,r.A)(e));return{x:n,y:i,width:Math.max.apply(Math,(0,r.A)(t))-n,height:Math.max.apply(Math,(0,r.A)(e))-i}}function s(t,e,n,r,i,A){return n*Math.cos(i)*Math.cos(A)-r*Math.sin(i)*Math.sin(A)+t}function l(t,e,n,r,i,A){return n*Math.sin(i)*Math.cos(A)+r*Math.cos(i)*Math.sin(A)+e}function c(t,e,n,r,i,A,o){for(var a=function(t,e,n){return Math.atan(-e/t*Math.tan(n))}(n,r,i),c=1/0,u=-1/0,d=[A,o],f=2*-Math.PI;f<=2*Math.PI;f+=Math.PI){var h=a+f;A<o?A<h&&h<o&&d.push(h):o<h&&h<A&&d.push(h)}for(var p=0;p<d.length;p++){var g=s(t,0,n,r,i,d[p]);g<c&&(c=g),g>u&&(u=g)}for(var m=function(t,e,n){return Math.atan(e/(t*Math.tan(n)))}(n,r,i),y=1/0,v=-1/0,b=[A,o],w=2*-Math.PI;w<=2*Math.PI;w+=Math.PI){var B=m+w;A<o?A<B&&B<o&&b.push(B):o<B&&B<A&&b.push(B)}for(var x=0;x<b.length;x++){var C=l(0,e,n,r,i,b[x]);C<y&&(y=C),C>v&&(v=C)}return{x:c,y,width:u-c,height:v-y}}function u(t,e,n,i,A,a){var s=-1,l=1/0,c=[n,i],u=20;a&&a>200&&(u=a/10);for(var d=1/u,f=d/10,h=0;h<=u;h++){var p=h*d,g=[A.apply(void 0,(0,r.A)(t.concat([p]))),A.apply(void 0,(0,r.A)(e.concat([p])))],m=o(c[0],c[1],g[0],g[1]);m<l&&(s=p,l=m)}if(0===s)return{x:t[0],y:e[0]};if(1===s){var y=t.length;return{x:t[y-1],y:e[y-1]}}l=1/0;for(var v=0;v<32&&!(f<1e-4);v++){var b=s-f,w=s+f,B=[A.apply(void 0,(0,r.A)(t.concat([b]))),A.apply(void 0,(0,r.A)(e.concat([b])))],x=o(c[0],c[1],B[0],B[1]);if(b>=0&&x<l)s=b,l=x;else{var C=[A.apply(void 0,(0,r.A)(t.concat([w]))),A.apply(void 0,(0,r.A)(e.concat([w])))],E=o(c[0],c[1],C[0],C[1]);w<=1&&E<l?(s=w,l=E):f*=.5}}return{x:A.apply(void 0,(0,r.A)(t.concat([s]))),y:A.apply(void 0,(0,r.A)(e.concat([s])))}}function d(t,e,n,r){return o(t,e,n,r)}function f(t,e,n,r,i){return{x:(1-i)*t+i*n,y:(1-i)*e+i*r}}function h(t,e,n,r,i,o){var a=[n-t,r-e];if(A.t2(a,[0,0]))return Math.sqrt((i-t)*(i-t)+(o-e)*(o-e));var s=[-a[1],a[0]];return A.S8(s,s),Math.abs(A.Om([i-t,o-e],s))}function p(t,e,n,r,i){var A=1-i;return A*A*A*t+3*e*i*A*A+3*n*i*i*A+r*i*i*i}function g(t,e,n,r){var A,o,a,s=-3*t+9*e-9*n+3*r,l=6*t-12*e+6*n,c=3*e-3*t,u=[];if((0,i.A)(s,0))(0,i.A)(l,0)||(A=-c/l)>=0&&A<=1&&u.push(A);else{var d=l*l-4*s*c;(0,i.A)(d,0)?u.push(-l/(2*s)):d>0&&(o=(-l-(a=Math.sqrt(d)))/(2*s),(A=(-l+a)/(2*s))>=0&&A<=1&&u.push(A),o>=0&&o<=1&&u.push(o))}return u}function m(t,e,n,r,i,A,o,s){for(var l=[t,o],c=[e,s],u=g(t,n,i,o),d=g(e,r,A,s),f=0;f<u.length;f++)l.push(p(t,n,i,o,u[f]));for(var h=0;h<d.length;h++)c.push(p(e,r,A,s,d[h]));return a(l,c)}function y(t,e,n,r,i,A,a,s,l,c,d){var f=function(t,e,n,r,i,A,o,a,s,l,c){return u([t,n,i,o],[e,r,A,a],s,l,p,c)}(t,e,n,r,i,A,a,s,l,c,d);return o(f.x,f.y,l,c)}function v(t){return function(t){if(t.length<2)return 0;for(var e=0,n=0;n<t.length-1;n++){var r=t[n],i=t[n+1];e+=o(r[0],r[1],i[0],i[1])}return e}(t)}function b(t,e,n,r){var i=1-r;return i*i*t+2*r*i*e+r*r*n}function w(t,e,n){var r=t+n-2*e;if((0,i.A)(r,0))return[.5];var A=(t-e)/r;return A<=1&&A>=0?[A]:[]}function B(t,e,n,r,i,A){var o=w(t,n,i)[0],s=w(e,r,A)[0],l=[t,i],c=[e,A];return void 0!==o&&l.push(b(t,n,i,o)),void 0!==s&&c.push(b(e,r,A,s)),a(l,c)}function x(t,e,n,r,i,A,a,s){var l=function(t,e,n,r,i,A,o,a){return u([t,n,i],[e,r,A],o,a,b)}(t,e,n,r,i,A,a,s);return o(l.x,l.y,a,s)}},"./node_modules/.pnpm/@antv+g@6.3.1/node_modules/@antv/g/dist/index.esm.js"(t,e,n){"use strict";n.d(e,{EY:()=>r.EY,F5:()=>r.F5,H0:()=>r.H0,Hl:()=>r.Hl,K9:()=>r.K9,Ks:()=>r.Ks,N1:()=>r.N1,NZ:()=>r.NZ,O5:()=>r.O5,Pp:()=>r.Pp,Ro:()=>r.Ro,YJ:()=>r.YJ,_V:()=>r._V,fA:()=>r.fA,g3:()=>r.g3,jX:()=>r.jX,jl:()=>r.jl,q9:()=>r.q9,rw:()=>r.rw,tS:()=>r.tS,up:()=>r.up,wA:()=>r.wA,yp:()=>r.yp});var r=n("./node_modules/.pnpm/@antv+g-lite@2.7.0/node_modules/@antv/g-lite/dist/index.esm.js"),i=n("./node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/classCallCheck.js"),A=n("./node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/createClass.js"),o=n("./node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/callSuper.js"),a=n("./node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/inherits.js"),s=n("./node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/toConsumableArray.js"),l=n("./node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/slicedToArray.js"),c=n("./node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/esm/lodash/clamp.js"),u=n("./node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/esm/lodash/is-number-equal.js"),d=n("./node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/esm/lodash/is-nil.js"),f=n("./node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/esm/lodash/is-number.js"),h=n("./node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/esm/lodash/is-string.js"),p=n("./node_modules/.pnpm/gl-matrix@3.4.4/node_modules/gl-matrix/esm/mat4.js"),g=n("./node_modules/.pnpm/gl-matrix@3.4.4/node_modules/gl-matrix/esm/quat.js"),m=n("./node_modules/.pnpm/gl-matrix@3.4.4/node_modules/gl-matrix/esm/vec3.js"),y=n("./node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"),v=(n("./node_modules/.pnpm/html2canvas@1.4.1/node_modules/html2canvas/dist/html2canvas.js"),n("./node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/objectSpread2.js")),b=n("./node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/defineProperty.js"),w=n("./node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/superPropGet.js"),B=function(t){function e(t,n,r,A){var a;return(0,i.A)(this,e),(a=(0,o.A)(this,e,[t])).currentTime=r,a.timelineTime=A,a.target=n,a.type="finish",a.bubbles=!1,a.currentTarget=n,a.defaultPrevented=!1,a.eventPhase=a.AT_TARGET,a.timeStamp=Date.now(),a.currentTime=r,a.timelineTime=A,a}return(0,a.A)(e,t),(0,A.A)(e)}(r.Ns),x=0,C=function(){return(0,A.A)(function t(e,n){var r;(0,i.A)(this,t),this.currentTimePending=!1,this._idle=!0,this._paused=!1,this._finishedFlag=!0,this._currentTime=0,this._playbackRate=1,this._inTimeline=!0,this.effect=e,e.animation=this,this.timeline=n,this.id="".concat(x++),this._inEffect=!!this.effect.update(0),this._totalDuration=Number(null===(r=this.effect)||void 0===r?void 0:r.getComputedTiming().endTime),this._holdTime=0,this._paused=!1,this.oldPlayState="idle",this.updatePromises()},[{key:"pending",get:function(){return null===this._startTime&&!this._paused&&0!==this.playbackRate||this.currentTimePending}},{key:"playState",get:function(){return this._idle?"idle":this._isFinished?"finished":this._paused?"paused":"running"}},{key:"ready",get:function(){var t=this;return this.readyPromise||(-1===this.timeline.animationsWithPromises.indexOf(this)&&this.timeline.animationsWithPromises.push(this),this.readyPromise=new Promise(function(e,n){t.resolveReadyPromise=function(){e(t)},t.rejectReadyPromise=function(){n(new Error)}}),this.pending||this.resolveReadyPromise()),this.readyPromise}},{key:"finished",get:function(){var t=this;return this.finishedPromise||(-1===this.timeline.animationsWithPromises.indexOf(this)&&this.timeline.animationsWithPromises.push(this),this.finishedPromise=new Promise(function(e,n){t.resolveFinishedPromise=function(){e(t)},t.rejectFinishedPromise=function(){n(new Error)}}),"finished"===this.playState&&this.resolveFinishedPromise()),this.finishedPromise}},{key:"currentTime",get:function(){return this.updatePromises(),this._idle||this.currentTimePending?null:this._currentTime},set:function(t){var e;(t=Number(t),isNaN(t))||(this.timeline.restart(),this._paused||null===this._startTime||(this._startTime=Number(null===(e=this.timeline)||void 0===e?void 0:e.currentTime)-t/this.playbackRate),this.currentTimePending=!1,this._currentTime!==t&&(this._idle&&(this._idle=!1,this._paused=!0),this.tickCurrentTime(t,!0),this.timeline.applyDirtiedAnimation(this)))}},{key:"startTime",get:function(){return this._startTime},set:function(t){if(null!==t){if(this.updatePromises(),t=Number(t),isNaN(t))return;if(this._paused||this._idle)return;this._startTime=t,this.tickCurrentTime((Number(this.timeline.currentTime)-this._startTime)*this.playbackRate),this.timeline.applyDirtiedAnimation(this),this.updatePromises()}}},{key:"playbackRate",get:function(){return this._playbackRate},set:function(t){if(t!==this._playbackRate){this.updatePromises();var e=this.currentTime;this._playbackRate=t,this.startTime=null,"paused"!==this.playState&&"idle"!==this.playState&&(this._finishedFlag=!1,this._idle=!1,this.ensureAlive(),this.timeline.applyDirtiedAnimation(this)),null!==e&&(this.currentTime=e),this.updatePromises()}}},{key:"_isFinished",get:function(){return!this._idle&&(this._playbackRate>0&&Number(this._currentTime)>=this._totalDuration||this._playbackRate<0&&Number(this._currentTime)<=0)}},{key:"totalDuration",get:function(){return this._totalDuration}},{key:"_needsTick",get:function(){return this.pending||"running"===this.playState||!this._finishedFlag}},{key:"updatePromises",value:function(){var t;if(null!==(t=this.effect.target)&&void 0!==t&&t.destroyed)return this.readyPromise=void 0,this.finishedPromise=void 0,!1;var e=this.oldPlayState,n=this.pending?"pending":this.playState;return this.readyPromise&&n!==e&&("idle"===n?(this.rejectReadyPromise(),this.readyPromise=void 0):"pending"===e?this.resolveReadyPromise():"pending"===n&&(this.readyPromise=void 0)),this.finishedPromise&&n!==e&&("idle"===n?(this.rejectFinishedPromise(),this.finishedPromise=void 0):"finished"===n?this.resolveFinishedPromise():"finished"===e&&(this.finishedPromise=void 0)),this.oldPlayState=n,this.readyPromise||this.finishedPromise}},{key:"play",value:function(){this.updatePromises(),this._paused=!1,(this._isFinished||this._idle)&&(this.rewind(),this._startTime=null),this._finishedFlag=!1,this._idle=!1,this.ensureAlive(),this.timeline.applyDirtiedAnimation(this),-1===this.timeline.animations.indexOf(this)&&this.timeline.animations.push(this),this.updatePromises()}},{key:"pause",value:function(){this.updatePromises(),this.currentTime&&(this._holdTime=this.currentTime),this._isFinished||this._paused||this._idle?this._idle&&(this.rewind(),this._idle=!1):this.currentTimePending=!0,this._startTime=null,this._paused=!0,this.updatePromises()}},{key:"finish",value:function(){this.updatePromises(),this._idle||(this.currentTime=this._playbackRate>0?this._totalDuration:0,this._startTime=this._totalDuration-this.currentTime,this.currentTimePending=!1,this.timeline.applyDirtiedAnimation(this),this.updatePromises())}},{key:"cancel",value:function(){var t=this;if(this.updatePromises(),this._inEffect&&(this._inEffect=!1,this._idle=!0,this._paused=!1,this._finishedFlag=!0,this._currentTime=null,this._startTime=null,this.effect.update(null),this.timeline.applyDirtiedAnimation(this),this.updatePromises(),this.oncancel)){var e=new B(null,this,this.currentTime,null);setTimeout(function(){t.oncancel(e)})}}},{key:"reverse",value:function(){this.updatePromises();var t=this.currentTime;this.playbackRate*=-1,this.play(),null!==t&&(this.currentTime=t),this.updatePromises()}},{key:"updatePlaybackRate",value:function(t){this.playbackRate=t}},{key:"targetAnimations",value:function(){var t;return(null===(t=this.effect)||void 0===t?void 0:t.target).getAnimations()}},{key:"markTarget",value:function(){var t=this.targetAnimations();-1===t.indexOf(this)&&t.push(this)}},{key:"unmarkTarget",value:function(){var t=this.targetAnimations(),e=t.indexOf(this);-1!==e&&t.splice(e,1)}},{key:"tick",value:function(t,e){this._idle||this._paused||(null===this._startTime?e&&(this.startTime=t-this._currentTime/this.playbackRate):this._isFinished||this.tickCurrentTime((t-this._startTime)*this.playbackRate)),e&&(this.currentTimePending=!1,this.fireEvents(t))}},{key:"rewind",value:function(){if(this.playbackRate>=0)this.currentTime=0;else{if(!(this._totalDuration<1/0))throw new Error("Unable to rewind negative playback rate animation with infinite duration");this.currentTime=this._totalDuration}}},{key:"persist",value:function(){throw new Error(r.eg)}},{key:"addEventListener",value:function(t,e,n){throw new Error(r.eg)}},{key:"removeEventListener",value:function(t,e,n){throw new Error(r.eg)}},{key:"dispatchEvent",value:function(t){throw new Error(r.eg)}},{key:"commitStyles",value:function(){throw new Error(r.eg)}},{key:"ensureAlive",value:function(){var t,e;this._inEffect=this.playbackRate<0&&0===this.currentTime?!(null===(t=this.effect)||void 0===t||!t.update(-1)):!(null===(e=this.effect)||void 0===e||!e.update(this.currentTime)),this._inTimeline||!this._inEffect&&this._finishedFlag||(this._inTimeline=!0,this.timeline.animations.push(this))}},{key:"tickCurrentTime",value:function(t,e){t!==this._currentTime&&(this._currentTime=t,this._isFinished&&!e&&(this._currentTime=this._playbackRate>0?this._totalDuration:0),this.ensureAlive())}},{key:"fireEvents",value:function(t){var e=this;if(this._isFinished){if(!this._finishedFlag){if(this.onfinish){var n=new B(null,this,this.currentTime,t);setTimeout(function(){e.onfinish&&e.onfinish(n)})}this._finishedFlag=!0}}else{if(this.onframe&&"running"===this.playState){var r=new B(null,this,this.currentTime,t);this.onframe(r)}this._finishedFlag=!1}}}])}(),E=.1,O="function"==typeof Float32Array,k=function(t,e){return 1-3*e+3*t},F=function(t,e){return 3*e-6*t},Q=function(t){return 3*t},M=function(t,e,n){return((k(e,n)*t+F(e,n))*t+Q(e))*t},U=function(t,e,n){return 3*k(e,n)*t*t+2*F(e,n)*t+Q(e)},S=function(t,e,n,r){if(!(t>=0&&t<=1&&n>=0&&n<=1))throw new Error("bezier x values must be in [0, 1] range");if(t===e&&n===r)return function(t){return t};for(var i=O?new Float32Array(11):new Array(11),A=0;A<11;++A)i[A]=M(A*E,t,n);return function(A){return 0===A||1===A?A:M(function(e){for(var r=0,A=1;10!==A&&i[A]<=e;++A)r+=E;--A;var o=r+(e-i[A])/(i[A+1]-i[A])*E,a=U(o,t,n);return a>=.001?function(t,e,n,r){for(var i=0;i<4;++i){var A=U(e,n,r);if(0===A)return e;e-=(M(e,n,r)-t)/A}return e}(e,o,t,n):0===a?o:function(t,e,n,r,i){var A,o,a=0;do{(A=M(o=e+(n-e)/2,r,i)-t)>0?n=o:e=o}while(Math.abs(A)>1e-7&&++a<10);return o}(e,r,r+E,t,n)}(A),e,r)}},_=function(t){return Math.pow(t,2)},I=function(t){return Math.pow(t,3)},T=function(t){return Math.pow(t,4)},L=function(t){return Math.pow(t,5)},P=function(t){return Math.pow(t,6)},j=function(t){return 1-Math.cos(t*Math.PI/2)},H=function(t){return 1-Math.sqrt(1-t*t)},N=function(t){return t*t*(3*t-2)},D=function(t){for(var e,n=4;t<((e=Math.pow(2,--n))-1)/11;);return 1/Math.pow(4,3-n)-7.5625*Math.pow((3*e-2)/22-t,2)},R=function(t){var e=(0,l.A)(arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],2),n=e[0],r=e[1],i=void 0===r?.5:r,A=(0,c.A)(Number(void 0===n?1:n),1,10),o=(0,c.A)(Number(i),.1,2);return 0===t||1===t?t:-A*Math.pow(2,10*(t-1))*Math.sin((t-1-o/(2*Math.PI)*Math.asin(1/A))*(2*Math.PI)/o)},K=function(t){var e=arguments.length>2?arguments[2]:void 0,n=(0,l.A)(arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],4),r=n[0],i=void 0===r?1:r,A=n[1],o=void 0===A?100:A,a=n[2],s=void 0===a?10:a,u=n[3],d=void 0===u?0:u;i=(0,c.A)(i,.1,1e3),o=(0,c.A)(o,.1,1e3),s=(0,c.A)(s,.1,1e3),d=(0,c.A)(d,.1,1e3);var f=Math.sqrt(o/i),h=s/(2*Math.sqrt(o*i)),p=h<1?f*Math.sqrt(1-h*h):0,g=h<1?(h*f-d)/p:-d+f,m=e?e*t/1e3:t;return m=h<1?Math.exp(-m*h*f)*(1*Math.cos(p*m)+g*Math.sin(p*m)):(1+g*m)*Math.exp(-m*f),0===t||1===t?t:1-m},z=function(t){var e=(0,l.A)(arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],2),n=e[0],r=void 0===n?10:n;return("start"===e[1]?Math.ceil:Math.floor)((0,c.A)(t,0,1)*r)/r},G=function(t){var e=(0,l.A)(arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],4);return S(e[0],e[1],e[2],e[3])(t)},V=S(.42,0,1,1),W=function(t){return function(e){return 1-t(1-e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],arguments.length>2?arguments[2]:void 0)}},X=function(t){return function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2?arguments[2]:void 0;return e<.5?t(2*e,n,r)/2:1-t(-2*e+2,n,r)/2}},Y=function(t){return function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2?arguments[2]:void 0;return e<.5?(1-t(1-2*e,n,r))/2:(t(2*e-1,n,r)+1)/2}},$={steps:z,"step-start":function(t){return z(t,[1,"start"])},"step-end":function(t){return z(t,[1,"end"])},linear:function(t){return t},"cubic-bezier":G,ease:function(t){return G(t,[.25,.1,.25,1])},in:V,out:W(V),"in-out":X(V),"out-in":Y(V),"in-quad":_,"out-quad":W(_),"in-out-quad":X(_),"out-in-quad":Y(_),"in-cubic":I,"out-cubic":W(I),"in-out-cubic":X(I),"out-in-cubic":Y(I),"in-quart":T,"out-quart":W(T),"in-out-quart":X(T),"out-in-quart":Y(T),"in-quint":L,"out-quint":W(L),"in-out-quint":X(L),"out-in-quint":Y(L),"in-expo":P,"out-expo":W(P),"in-out-expo":X(P),"out-in-expo":Y(P),"in-sine":j,"out-sine":W(j),"in-out-sine":X(j),"out-in-sine":Y(j),"in-circ":H,"out-circ":W(H),"in-out-circ":X(H),"out-in-circ":Y(H),"in-back":N,"out-back":W(N),"in-out-back":X(N),"out-in-back":Y(N),"in-bounce":D,"out-bounce":W(D),"in-out-bounce":X(D),"out-in-bounce":Y(D),"in-elastic":R,"out-elastic":W(R),"in-out-elastic":X(R),"out-in-elastic":Y(R),spring:K,"spring-in":K,"spring-out":W(K),"spring-in-out":X(K),"spring-out-in":Y(K)},q=function(t){return t};function Z(t,e){return function(n){if(n>=1)return 1;var r=1/t;return(n+=e*r)-n%r}}var J="\\s*(-?\\d+\\.?\\d*|-?\\.\\d+)\\s*",tt=new RegExp("cubic-bezier\\(".concat(J,",").concat(J,",").concat(J,",").concat(J,"\\)")),et=/steps\(\s*(\d+)\s*\)/,nt=/steps\(\s*(\d+)\s*,\s*(start|middle|end)\s*\)/;function rt(t){var e=tt.exec(t);if(e)return S.apply(void 0,(0,s.A)(e.slice(1).map(Number)));var n=et.exec(t);if(n)return Z(Number(n[1]),0);var r,i,A=nt.exec(t);return A?Z(Number(A[1]),{start:1,middle:.5,end:0}[A[2]]):$[r=t,(i=r,"-"===(i=i.replace(/([A-Z])/g,function(t){return"-".concat(t.toLowerCase())})).charAt(0)?i.substring(1):i).replace(/^ease-/,"").replace(/(\(|\s).+/,"").toLowerCase().trim()]||$.linear}function it(t){return"offset"!==t&&"easing"!==t&&"composite"!==t&&"computedOffset"!==t}var At=function(t,e,n){return function(r){var i=at(t,e,r);return(0,f.A)(i)?i:n(i)}};function ot(t,e,n,i){var A=r.pC[t];if(A&&A.syntax&&A.int){var o=r.fA.styleValueRegistry.getPropertySyntax(A.syntax);if(o){var a=o.parser,l=a?a(e,i):e,c=a?a(n,i):n,u=o.mixer(l,c,i);if(u){var d=At.apply(void 0,(0,s.A)(u));return function(t){return 0===t?e:1===t?n:d(t)}}}}return At(!1,!0,function(t){return t?n:e})}function at(t,e,n){if("number"==typeof t&&"number"==typeof e)return t*(1-n)+e*n;if("boolean"==typeof t&&"boolean"==typeof e||"string"==typeof t&&"string"==typeof e)return n<.5?t:e;if(Array.isArray(t)&&Array.isArray(e)){for(var r=t.length,i=e.length,A=Math.max(r,i),o=[],a=0;a<A;a++)o.push(at(t[a<r?a:r-1],e[a<i?a:i-1],n));return o}throw new Error("Mismatched interpolation arguments ".concat(t,":").concat(e))}var st=function(){return(0,A.A)(function t(){(0,i.A)(this,t),this.delay=0,this.direction="normal",this.duration="auto",this._easing="linear",this.easingFunction=q,this.endDelay=0,this.fill="auto",this.iterationStart=0,this.iterations=1,this.currentIteration=null,this.progress=null},[{key:"easing",get:function(){return this._easing},set:function(t){this.easingFunction=rt(t),this._easing=t}}])}();function lt(t,e){if(null===t)return[];Array.isArray(t)||(t=function(t){var e=[];for(var n in t)if(!(n in["easing","offset","composite"])){var r=t[n];Array.isArray(r)||(r=[r]);for(var i=r.length,A=0;A<i;A++){if(!e[A]){var o={};"offset"in t&&(o.offset=Number(t.offset)),"easing"in t&&(o.easing=t.easing),"composite"in t&&(o.composite=t.composite),e[A]=o}null!=r[A]&&(e[A][n]=r[A])}}return e.sort(function(t,e){return(t.computedOffset||0)-(e.computedOffset||0)}),e}(t));for(var n=t.map(function(t){var n={};for(var r in null!=e&&e.composite&&(n.composite="auto"),t){var i=t[r];if("offset"===r){if(null!==i){if(i=Number(i),!isFinite(i))throw new Error("Keyframe offsets must be numbers.");if(i<0||i>1)throw new Error("Keyframe offsets must be between 0 and 1.");n.computedOffset=i}}else if("composite"===r&&-1===["replace","add","accumulate","auto"].indexOf(i))throw new Error("".concat(i," compositing is not supported"));n[r]=i}return void 0===n.offset&&(n.offset=null),void 0===n.easing&&(n.easing=(null==e?void 0:e.easing)||"linear"),void 0===n.composite&&(n.composite="auto"),n}),r=!0,i=-1/0,A=0;A<n.length;A++){var o=n[A].offset;if((0,d.A)(o))r=!1;else{if(o<i)throw new TypeError("Keyframes are not loosely sorted by offset. Sort or specify offsets.");i=o}}return n=n.filter(function(t){return Number(t.offset)>=0&&Number(t.offset)<=1}),r||function(){var t,e,r=n.length;n[r-1].computedOffset=Number(null!==(t=n[r-1].offset)&&void 0!==t?t:1),r>1&&(n[0].computedOffset=Number(null!==(e=n[0].offset)&&void 0!==e?e:0));for(var i=0,A=Number(n[0].computedOffset),o=1;o<r;o++){var a=n[o].computedOffset;if(!(0,d.A)(a)&&!(0,d.A)(A)){for(var s=1;s<o-i;s++)n[i+s].computedOffset=A+(Number(a)-A)*s/(o-i);i=o,A=Number(a)}}}(),n}var ct="backwards|forwards|both|none".split("|"),ut="reverse|alternate|alternate-reverse".split("|");var dt=function(){return(0,A.A)(function t(e,n,A){var o,a=this;(0,i.A)(this,t),this.composite="replace",this.iterationComposite="replace",this.target=e,this.timing=function(t,e){return function(t,e){var n=new st;return e&&(n.fill="both",n.duration="auto"),"number"!=typeof t||isNaN(t)?void 0!==t&&Object.keys(t).forEach(function(e){if(null!=t[e]&&"auto"!==t[e]){if(("number"==typeof n[e]||"duration"===e)&&("number"!=typeof t[e]||isNaN(t[e])))return;if("fill"===e&&-1===ct.indexOf(t[e]))return;if("direction"===e&&-1===ut.indexOf(t[e]))return;n[e]=t[e]}}):n.duration=t,n}(t=function(t){return"number"==typeof t&&(t=isNaN(t)?{duration:"auto"}:{duration:t}),t}(null!=t?t:{duration:"auto"}),e)}(A,!1),this.timing.effect=this,this.timing.activeDuration=(o=this.timing,Math.abs(function(t){var e;return 0===t.duration||0===t.iterations?0:("auto"===t.duration?0:Number(t.duration))*(null!==(e=t.iterations)&&void 0!==e?e:1)}(o)/(o.playbackRate||1))),this.timing.endTime=Math.max(0,this.timing.delay+this.timing.activeDuration+this.timing.endDelay),this.normalizedKeyframes=lt(n,this.timing),this.interpolations=function(t,e,n){var r=function(t,e){for(var n={},r=0;r<t.length;r++)for(var i in t[r])if(it(i)){var A={offset:t[r].offset,computedOffset:t[r].computedOffset,easing:t[r].easing,easingFunction:rt(t[r].easing)||e.easingFunction,value:t[r][i]};n[i]=n[i]||[],n[i].push(A)}return n}(t,e),i=function(t,e){var n=[];for(var r in t)for(var i=t[r],A=0;A<i.length-1;A++){var o=A,a=A+1,s=i[o].computedOffset,l=i[a].computedOffset,c=s,u=l;0===A&&(c=-1/0,0===l&&(a=o)),A===i.length-2&&(u=1/0,1===s&&(o=a)),n.push({applyFrom:c,applyTo:u,startOffset:i[o].computedOffset,endOffset:i[a].computedOffset,easingFunction:i[o].easingFunction,property:r,interpolation:ot(r,i[o].value,i[a].value,e)})}return n.sort(function(t,e){return t.startOffset-e.startOffset}),n}(r,n);return function(t,e){if(null!==e)i.filter(function(t){return e>=t.applyFrom&&e<t.applyTo}).forEach(function(n){var r=n.endOffset-n.startOffset;t.setAttribute(n.property,n.interpolation(0===r?0:(e-n.startOffset)/r),!1,!1)});else for(var n in r)it(n)&&t.setAttribute(n,null)}}(this.normalizedKeyframes,this.timing,this.target);var s=r.fA.globalThis.Proxy;this.computedTiming=s?new s(this.timing,{get:function(t,e){return"duration"===e?"auto"===t.duration?0:t.duration:"fill"===e?"auto"===t.fill?"none":t.fill:"localTime"===e?a.animation&&a.animation.currentTime||null:"currentIteration"===e?a.animation&&"running"===a.animation.playState?t.currentIteration||0:null:"progress"===e?a.animation&&"running"===a.animation.playState?t.progress||0:null:t[e]},set:function(){return!0}}):this.timing},[{key:"applyInterpolations",value:function(){this.interpolations(this.target,Number(this.timeFraction))}},{key:"update",value:function(t){return null!==t&&(this.timeFraction=function(t,e,n){var r=function(t,e,n){if(null===e)return 0;var r=n.endTime;return e<Math.min(n.delay,r)?1:e>=Math.min(n.delay+t+n.endDelay,r)?2:3}(t,e,n),i=function(t,e,n,r,i){switch(r){case 1:return"backwards"===e||"both"===e?0:null;case 3:return n-i;case 2:return"forwards"===e||"both"===e?t:null;case 0:return null}}(t,n.fill,e,r,n.delay);if(null===i)return null;var A="auto"===n.duration?0:n.duration,o=function(t,e,n,r,i){var A=i;return 0===t?1!==e&&(A+=n):A+=r/t,A}(A,r,n.iterations,i,n.iterationStart),a=function(t,e,n,r,i,A){var o=t===1/0?e%1:t%1;return 0!==o||2!==n||0===r||0===i&&0!==A||(o=1),o}(o,n.iterationStart,r,n.iterations,i,A),s=function(t,e,n,r){return 2===t&&e===1/0?1/0:1===n?Math.floor(r)-1:Math.floor(r)}(r,n.iterations,a,o),l=function(t,e,n){var r=t;if("normal"!==t&&"reverse"!==t){var i=e;"alternate-reverse"===t&&(i+=1),r="normal",i!==1/0&&i%2!=0&&(r="reverse")}return"normal"===r?n:1-n}(n.direction,s,a);return n.currentIteration=s,n.progress=l,n.easingFunction(l)}(this.timing.activeDuration,t,this.timing),null!==this.timeFraction)}},{key:"getKeyframes",value:function(){return this.normalizedKeyframes}},{key:"setKeyframes",value:function(t){this.normalizedKeyframes=lt(t)}},{key:"getComputedTiming",value:function(){return this.computedTiming}},{key:"getTiming",value:function(){return this.timing}},{key:"updateTiming",value:function(t){var e=this;Object.keys(t||{}).forEach(function(n){e.timing[n]=t[n]})}}])}();function ft(t,e){return Number(t.id)-Number(e.id)}var ht=function(){return(0,A.A)(function t(e){var n=this;(0,i.A)(this,t),this.animations=[],this.ticking=!1,this.timelineTicking=!1,this.hasRestartedThisFrame=!1,this.animationsWithPromises=[],this.inTick=!1,this.pendingEffects=[],this.currentTime=null,this.rafId=0,this.rafCallbacks=[],this.webAnimationsNextTick=function(t){n.currentTime=t,n.discardAnimations(),0===n.animations.length?n.timelineTicking=!1:n.requestAnimationFrame(n.webAnimationsNextTick)},this.processRafCallbacks=function(t){var e=n.rafCallbacks;n.rafCallbacks=[],t<Number(n.currentTime)&&(t=Number(n.currentTime)),n.animations.sort(ft),n.animations=n.tick(t,!0,n.animations)[0],e.forEach(function(e){e[1](t)}),n.applyPendingEffects()},this.document=e},[{key:"getAnimations",value:function(){return this.discardAnimations(),this.animations.slice()}},{key:"isTicking",value:function(){return this.inTick}},{key:"play",value:function(t,e,n){var r=new dt(t,e,n),i=new C(r,this);return this.animations.push(i),this.restartWebAnimationsNextTick(),i.updatePromises(),i.play(),i.updatePromises(),i}},{key:"applyDirtiedAnimation",value:function(t){var e=this;if(!this.inTick){t.markTarget();var n=t.targetAnimations();n.sort(ft),this.tick(Number(this.currentTime),!1,n.slice())[1].forEach(function(t){var n=e.animations.indexOf(t);-1!==n&&e.animations.splice(n,1)}),this.applyPendingEffects()}}},{key:"restart",value:function(){return this.ticking||(this.ticking=!0,this.requestAnimationFrame(function(){}),this.hasRestartedThisFrame=!0),this.hasRestartedThisFrame}},{key:"destroy",value:function(){this.document.defaultView.cancelAnimationFrame(this.frameId)}},{key:"applyPendingEffects",value:function(){this.pendingEffects.forEach(function(t){null==t||t.applyInterpolations()}),this.pendingEffects=[]}},{key:"updateAnimationsPromises",value:function(){this.animationsWithPromises=this.animationsWithPromises.filter(function(t){return t.updatePromises()})}},{key:"discardAnimations",value:function(){this.updateAnimationsPromises(),this.animations=this.animations.filter(function(t){return"finished"!==t.playState&&"idle"!==t.playState})}},{key:"restartWebAnimationsNextTick",value:function(){this.timelineTicking||(this.timelineTicking=!0,this.requestAnimationFrame(this.webAnimationsNextTick))}},{key:"rAF",value:function(t){var e=this.rafId++;return 0===this.rafCallbacks.length&&(this.frameId=this.document.defaultView.requestAnimationFrame(this.processRafCallbacks)),this.rafCallbacks.push([e,t]),e}},{key:"requestAnimationFrame",value:function(t){var e=this;return this.rAF(function(n){e.updateAnimationsPromises(),t(n),e.updateAnimationsPromises()})}},{key:"tick",value:function(t,e,n){var r,i,A=this;this.inTick=!0,this.hasRestartedThisFrame=!1,this.currentTime=t,this.ticking=!1;var o=[],a=[],s=[],l=[];return n.forEach(function(n){n.tick(t,e),n._inEffect?(a.push(n.effect),n.markTarget()):(o.push(n.effect),n.unmarkTarget()),n._needsTick&&(A.ticking=!0);var r=n._inEffect||n._needsTick;n._inTimeline=r,r?s.push(n):l.push(n)}),(r=this.pendingEffects).push.apply(r,o),(i=this.pendingEffects).push.apply(i,a),this.ticking&&this.requestAnimationFrame(function(){}),this.inTick=!1,[s,l]}}])}();r.fA.EasingFunction=rt,r.fA.AnimationTimeline=ht;var pt=function(t){function e(){var t;(0,i.A)(this,e);for(var n=arguments.length,r=new Array(n),A=0;A<n;A++)r[A]=arguments[A];return(t=(0,o.A)(this,e,[].concat(r))).landmarks=[],t}return(0,a.A)(e,t),(0,A.A)(e,[{key:"rotate",value:function(t,e,n){if(this.relElevation=(0,r._H)(e),this.relAzimuth=(0,r._H)(t),this.relRoll=(0,r._H)(n),this.elevation+=this.relElevation,this.azimuth+=this.relAzimuth,this.roll+=this.relRoll,this.type===r.Aq.EXPLORING){var i=g.x8(g.vt(),[1,0,0],(0,r.kU)((this.rotateWorld?1:-1)*this.relElevation)),A=g.x8(g.vt(),[0,1,0],(0,r.kU)((this.rotateWorld?1:-1)*this.relAzimuth)),o=g.x8(g.vt(),[0,0,1],(0,r.kU)(this.relRoll)),a=g.lw(g.vt(),A,i);a=g.lw(g.vt(),a,o);var s=p.I0(p.vt(),a);p.Tl(this.matrix,this.matrix,[0,0,-this.distance]),p.lw(this.matrix,this.matrix,s),p.Tl(this.matrix,this.matrix,[0,0,this.distance])}else{if(Math.abs(this.elevation)>90)return this;this.computeMatrix()}return this._getAxes(),this.type===r.Aq.ORBITING||this.type===r.Aq.EXPLORING?this._getPosition():this.type===r.Aq.TRACKING&&this._getFocalPoint(),this._update(),this}},{key:"pan",value:function(t,e){var n=(0,r.Q_)(t,e,0),i=m.o8(this.position);return m.WQ(i,i,m.hs(m.vt(),this.right,n[0])),m.WQ(i,i,m.hs(m.vt(),this.up,n[1])),this._setPosition(i),this.triggerUpdate(),this}},{key:"dolly",value:function(t){var e,n=this.forward,i=m.o8(this.position);return e=Math.max(Math.min(this.distance+t*this.dollyingStep,this.maxDistance),this.minDistance)-this.distance,i[0]+=e*n[0],i[1]+=e*n[1],i[2]+=e*n[2],this._setPosition(i),this.type===r.Aq.ORBITING||this.type===r.Aq.EXPLORING?this._getDistance():this.type===r.Aq.TRACKING&&m.WQ(this.focalPoint,i,this.distanceVector),this.triggerUpdate(),this}},{key:"cancelLandmarkAnimation",value:function(){void 0!==this.landmarkAnimationID&&this.canvas.cancelAnimationFrame(this.landmarkAnimationID)}},{key:"createLandmark",value:function(t){var e,n,i,A,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=o.position,s=void 0===a?this.position:a,l=o.focalPoint,c=void 0===l?this.focalPoint:l,u=o.roll,d=o.zoom,f=new r.fA.CameraContribution;f.setType(this.type,void 0),f.setPosition(s[0],null!==(e=s[1])&&void 0!==e?e:this.position[1],null!==(n=s[2])&&void 0!==n?n:this.position[2]),f.setFocalPoint(c[0],null!==(i=c[1])&&void 0!==i?i:this.focalPoint[1],null!==(A=c[2])&&void 0!==A?A:this.focalPoint[2]),f.setRoll(null!=u?u:this.roll),f.setZoom(null!=d?d:this.zoom);var h={name:t,matrix:p.o8(f.getWorldTransform()),right:m.o8(f.right),up:m.o8(f.up),forward:m.o8(f.forward),position:m.o8(f.getPosition()),focalPoint:m.o8(f.getFocalPoint()),distanceVector:m.o8(f.getDistanceVector()),distance:f.getDistance(),dollyingStep:f.getDollyingStep(),azimuth:f.getAzimuth(),elevation:f.getElevation(),roll:f.getRoll(),relAzimuth:f.relAzimuth,relElevation:f.relElevation,relRoll:f.relRoll,zoom:f.getZoom()};return this.landmarks.push(h),h}},{key:"gotoLandmark",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=(0,h.A)(t)?this.landmarks.find(function(e){return e.name===t}):t;if(i){var A=(0,f.A)(n)?{duration:n}:n,o=A.easing,a=void 0===o?"linear":o,s=A.duration,l=void 0===s?100:s,c=A.easingFunction,u=void 0===c?void 0:c,d=A.onfinish,p=void 0===d?void 0:d,g=A.onframe,y=void 0===g?void 0:g;this.cancelLandmarkAnimation();var v,b=i.position,w=i.focalPoint,B=i.zoom,x=i.roll,C=u||r.fA.EasingFunction(a),E=function(){e.setFocalPoint(w),e.setPosition(b),e.setRoll(x),e.setZoom(B),e.computeMatrix(),e.triggerUpdate(),null==p||p()};if(0===l)return E();var O=function(t){void 0===v&&(v=t);var n=t-v;if(n>=l)E();else{var r,i,A=C(n/l),o=m.vt(),a=m.vt();if(m.Cc(o,e.focalPoint,w,A),m.Cc(a,e.position,b,A),i=e.roll*(1-A)+x*A,r=e.zoom*(1-A)+B*A,e.setFocalPoint(o),e.setPosition(a),e.setRoll(i),e.setZoom(r),m.xg(o,w)+m.xg(a,b)<=.01&&void 0===B&&void 0===x)return E();e.computeMatrix(),e.triggerUpdate(),n<l&&(null==y||y(A),e.landmarkAnimationID=e.canvas.requestAnimationFrame(O))}};this.canvas.requestAnimationFrame(O)}}}])}(r.i7);r.fA.CameraContribution=pt;var gt=["body","startHead","endHead","startHeadOffset","endHeadOffset"],mt=["body","startHead","endHead","startHeadOffset","endHeadOffset"],yt=["body","startHead","endHead","startHeadOffset","endHeadOffset"],vt=function(t){function e(t){var n;(0,i.A)(this,e);var r=(n=(0,o.A)(this,e,[(0,v.A)((0,v.A)({},t),{},{type:e.tag})])).attributes,A=r.body,a=r.startHead,s=r.endHead,l=(0,y.A)(r,gt);if(!A)throw new Error("Arrow's body is required");return n.body=A,n.appendChild(n.body),n.handleBodyAttributeChanged(n.body),a&&n.appendArrowHead(n.getArrowHeadType(a),!0),s&&n.appendArrowHead(n.getArrowHeadType(s),!1),n.applyArrowStyle(l,[n.body,n.startHead,n.endHead]),n}return(0,a.A)(e,t),(0,A.A)(e,[{key:"handleBodyAttributeChanged",value:function(t){var e=this;t.addEventListener(r.jX.ATTR_MODIFIED,function(t){var n=t.attrName;"x1"===n||"y1"===n?e.startHead&&e.transformArrowHead(e.startHead,!0):"x2"!==n&&"y2"!==n||e.endHead&&e.transformArrowHead(e.endHead,!1)})}},{key:"getBody",value:function(){return this.body}},{key:"getStartHead",value:function(){return this.startHead}},{key:"getEndHead",value:function(){return this.endHead}},{key:"attributeChangedCallback",value:function(t,e,n){if("opacity"===t||"strokeOpacity"===t||"stroke"===t||"lineWidth"===t||"increasedLineWidthForHitTesting"===t)this.applyArrowStyle((0,b.A)({},t,n),[this.body,this.startHead,this.endHead]);else if("startHead"===t||"endHead"===t){var r="startHead"===t;if(this.destroyArrowHead(r),n){var i=(0,y.A)(this.attributes,mt);this.appendArrowHead(this.getArrowHeadType(n),r),this.applyArrowStyle(i,[r?this.startHead:this.endHead])}}else if("body"===t){var A=(0,y.A)(this.attributes,yt);this.body.destroy(),this.body=n,this.appendChild(this.body),this.applyArrowStyle(A,[this.body])}else"startHeadOffset"===t?this.moveArrowHeadAlongTangent(n,!0):"endHeadOffset"===t&&this.moveArrowHeadAlongTangent(n,!1)}},{key:"getArrowHeadType",value:function(t){return"boolean"==typeof t?"default":"custom"}},{key:"appendArrowHead",value:function(t,e){var n;n="default"===t?this.createDefaultArrowHead():e?this.attributes.startHead:this.attributes.endHead,this.transformArrowHead(n,e),n.setAttribute("zIndex",1),e?this.startHead=n:this.endHead=n,this.appendChild(n);var r=e?this.attributes.startHeadOffset:this.attributes.endHeadOffset;r&&this.moveArrowHeadAlongTangent(r,e)}},{key:"transformArrowHead",value:function(t,e){var n,i=m.vt(),A=0,o=0,a=0,s=0,c=this.body&&this.body.nodeName;if(c===r.yp.LINE){var u=this.body.attributes,d=u.x1,f=u.x2,h=u.y1,p=u.y2;A=e?f:d,o=e?d:f,a=e?p:h,s=e?h:p}else if(c===r.yp.POLYLINE){var g=this.body.attributes.points,y=g.length;A=e?g[1][0]:g[y-2][0],a=e?g[1][1]:g[y-2][1],o=e?g[0][0]:g[y-1][0],s=e?g[0][1]:g[y-1][1]}else if(c===r.yp.PATH){var v=this.getTangent(this.body,e),b=(0,l.A)(v,2),w=b[0],B=b[1];A=w[0],a=w[1],o=B[0],s=B[1]}n=Math.atan2(a-s,A-o),i=m.fA(o,s,0),e?(this.startHeadPosition=i,this.startHeadRad=n):(this.endHeadPosition=i,this.endHeadRad=n),t.setLocalPosition(i),t.setLocalEulerAngles(180*n/Math.PI+t.getLocalEulerAngles())}},{key:"moveArrowHeadAlongTangent",value:function(t,e){var n=e?this.startHead:this.endHead;n&&n.setLocalPosition(m.jb(m.vt(),e?this.startHeadPosition:this.endHeadPosition,m.fA(Math.cos(e?this.startHeadRad:this.endHeadRad)*t,Math.sin(e?this.startHeadRad:this.endHeadRad)*t,0)))}},{key:"destroyArrowHead",value:function(t){t&&this.startHead&&(this.startHead.destroy(),this.startHead=void 0),!t&&this.endHead&&(this.endHead.destroy(),this.endHead=void 0)}},{key:"getTangent",value:function(t,e){return e?t.getStartTangent():t.getEndTangent()}},{key:"createDefaultArrowHead",value:function(){var t=this.attributes,e=t.stroke,n=t.lineWidth,i=Math.sin,A=Math.cos,o=Math.PI,a=10*A(o/6);return new r.wA({style:{d:"M".concat(a/2,",").concat(10*i(o/6)," L-").concat(a/2,",0 L").concat(a/2,",-").concat(10*i(o/6)),stroke:e,lineWidth:n,transformOrigin:"center"}})}},{key:"applyArrowStyle",value:function(t,e){var n=t.opacity,r=t.stroke,i=t.strokeOpacity,A=t.lineWidth,o=t.increasedLineWidthForHitTesting;e.forEach(function(t){t&&((0,d.A)(n)||(t.style.opacity=n),(0,d.A)(r)||(t.style.stroke=r),(0,d.A)(i)||(t.style.strokeOpacity=i),(0,d.A)(A)||(t.style.lineWidth=A),(0,d.A)(o)||(t.style.increasedLineWidthForHitTesting=o))})}}])}(r.K9);vt.tag="arrow",vt.PARSED_STYLE_LIST=new Set([].concat((0,s.A)(r.K9.PARSED_STYLE_LIST),["body","startHead","endHead","startHeadOffset","endHeadOffset","stroke","lineWidth","opacity","strokeOpacity"]));var bt=Math.PI,wt=2*bt,Bt=Math.sin,xt=Math.cos,Ct=Math.acos,Et=Math.atan2,Ot=Math.sqrt,kt=Math.max,Ft=Math.min,Qt=1e-4;[{name:"sr",inherits:!1,interpolable:!0,syntax:r.NZ.LENGTH_PERCENTAGE},{name:"sr0",inherits:!1,interpolable:!0,syntax:r.NZ.LENGTH_PERCENTAGE},{name:"startAngle",inherits:!1,interpolable:!0,syntax:r.NZ.ANGLE},{name:"endAngle",inherits:!1,interpolable:!0,syntax:r.NZ.ANGLE}].forEach(function(t){r.Ks.registerProperty(t)});var Mt=function(t,e,n,r){return{x:t+n*Math.cos(r),y:e+n*Math.sin(r)}};function Ut(t,e,n,r,i,A,o){var a=t-n,s=e-r,l=(o?A:-A)/Ot(a*a+s*s),c=l*s,u=-l*a,d=t+c,f=e+u,h=n+c,p=r+u,g=(d+h)/2,m=(f+p)/2,y=h-d,v=p-f,b=y*y+v*v,w=i-A,B=d*p-h*f,x=(v<0?-1:1)*Ot(kt(0,w*w*b-B*B)),C=(B*v-y*x)/b,E=(-B*y-v*x)/b,O=(B*v+y*x)/b,k=(-B*y+v*x)/b,F=C-g,Q=E-m,M=O-g,U=k-m;return F*F+Q*Q>M*M+U*U&&(C=O,E=k),{cx:C,cy:E,x0:-c,y0:-u,x1:C*(i/w-1),y1:E*(i/w-1)}}function St(t,e){return(e=e<0&&t>=0?e+wt:e)-t<=bt?0:1}(function(t){function e(t){var n;return(0,i.A)(this,e),(n=(0,o.A)(this,e,[t])).updatePath(),n}return(0,a.A)(e,t),(0,A.A)(e,[{key:"setAttribute",value:function(t,n,r){(0,w.A)(e,"setAttribute",this,3)([t,n,r]),["startAngle","endAngle","sr","sr0","radius"].indexOf(t)>-1&&this.updatePath()}},{key:"updatePath",value:function(){var t=this.parsedStyle,n=t.startAngle,i=t.endAngle,A=t.sr,o=t.sr0,a=t.radius,s=this.createPath(t.x,t.y,n?(0,r.kU)(n):0,i?(0,r.kU)(i):2*Math.PI,A||0,o||0,a||[0,0,0,0]);(0,w.A)(e,"setAttribute",this,3)(["d",s])}},{key:"createPath",value:function(t,e,n,r,i,A,o){if(!(i<=0)){var a=Mt(t,e,i,n),s=Mt(t,e,i,r),c=Mt(t,e,A,n),d=Mt(t,e,A,r);if((0,u.A)(r-n,2*Math.PI)){var f=Mt(t,e,i,n+Math.PI),h=Mt(t,e,A,n+Math.PI),p=[["M",a.x,a.y],["A",i,i,0,1,1,f.x,f.y],["A",i,i,0,1,1,s.x,s.y],["M",c.x,c.y]];return A&&(p.push(["A",A,A,0,1,0,h.x,h.y]),p.push(["A",A,A,0,1,0,d.x,d.y])),p.push(["M",a.x,a.y]),p.push(["Z"]),p}var g=r-n,m=i*xt(n),y=i*Bt(n),v=A*xt(r),b=A*Bt(r),w=i*xt(r),B=i*Bt(r),x=A*xt(n),C=A*Bt(n),E=(0,l.A)(o,4),O=E[0],k=E[1],F=E[2],Q=E[3],M=(i-A)/2,U=Ft(M,O),S=Ft(M,k),_=Ft(M,F),I=Ft(M,Q),T=kt(U,S),L=kt(_,I),P=T,j=L;if((T>Qt||L>Qt)&&g<bt){var H=function(t,e,n,r,i,A,o,a){var s=n-t,l=r-e,c=o-i,u=a-A,d=u*s-c*l;if(!(d*d<Qt))return[t+(d=(c*(e-A)-u*(t-i))/d)*s,e+d*l]}(m,y,x,C,w,B,v,b);if(H){var N=m-H[0],D=y-H[1],R=w-H[0],K=B-H[1],z=1/Bt(Ct((N*R+D*K)/(Ot(N*N+D*D)*Ot(R*R+K*K)))/2),G=Ot(H[0]*H[0]+H[1]*H[1]);P=Ft(T,(i-G)/(z+1)),j=Ft(L,(A-G)/(z-1))}}var V=St(n,r),W=!0,X=[];if(P>Qt){var Y=Ft(O,P),$=Ft(k,P),q=Ut(x,C,m,y,i,Y,W),Z=Ut(w,B,v,b,i,$,W);if(X.push(["M",t+q.cx+q.x0,e+q.cy+q.y0]),P<T&&Y===$){var J=Et(q.y0,q.x0),tt=Et(Z.y0,Z.x0);X.push(["A",P,P,0,St(J,tt),1,t+Z.cx+Z.x0,e+Z.cy+Z.y0])}else{if(Y>0){var et=Et(q.y0,q.x0),nt=Et(q.y1,q.x1),rt=Mt(t,e,i,nt);X.push(["A",Y,Y,0,St(et,nt),1,rt.x,rt.y])}var it=Et(q.cy+q.y1,q.cx+q.x1),At=Et(Z.cy+Z.y1,Z.cx+Z.x1),ot=Mt(t,e,i,At);if(X.push(["A",i,i,0,St(it,At),1,ot.x,ot.y]),$>0){var at=Et(Z.y1,Z.x1),st=Et(Z.y0,Z.x0);X.push(["A",$,$,0,St(at,st),1,t+Z.cx+Z.x0,e+Z.cy+Z.y0])}}}else X.push(["M",a.x,a.y]),X.push(["A",i,i,0,V,1,s.x,s.y]);if(A<Qt)X.push(["L",d.x,d.y]);else if(j>Qt){var lt=Ft(Q,j),ct=Ft(F,j),ut=Ut(v,b,0,0,A-i,ct,W),dt=Ut(0,0,x,C,A-i,lt,W);if(X.push(["L",t+ut.cx+ut.x0,e+ut.cy+ut.y0]),j<L&<===ct){var ft=Et(ut.y0,ut.x0),ht=Et(dt.y0,dt.x0),pt=Mt(t,e,A,ht);X.push(["A",P,P,0,St(ft,ht),1,pt.x,pt.y])}else{if(ct>0){var gt=Et(ut.y0,ut.x0),mt=Et(ut.y1,ut.x1),yt=Mt(t,e,A-i,mt);X.push(["A",ct,ct,0,St(gt,mt),1,yt.x,yt.y])}var vt=Et(ut.cy+ut.y1,ut.cx+ut.x1),wt=Et(dt.cy+dt.y1,dt.cx+dt.x1),_t=Mt(t,e,A,wt);if(X.push(["A",A,A,0,St(wt,vt),0,_t.x,_t.y]),X.push(["L",_t.x,_t.y]),lt>0){var It=Et(dt.y1,dt.x1),Tt=Et(dt.y0,dt.x0);X.push(["A",lt,lt,0,St(It,Tt),1,t+dt.cx+dt.x0,e+dt.cy+dt.y0])}}}else X.push(["L",d.x,d.y]),X.push(["A",A,A,0,V,0,c.x,c.y]);return X.push(["Z"]),X}}}])}(r.wA)).PARSED_STYLE_LIST=new Set([].concat((0,s.A)(r.wA.PARSED_STYLE_LIST),["x","y","sr","sr0","radius","startAngle","endAngle"]))},"./node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/esm/lodash/clamp.js"(t,e,n){"use strict";n.d(e,["A",0,function(t,e,n){return t<e?e:t>n?n:t}])},"./node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/esm/lodash/is-array.js"(t,e,n){"use strict";function r(t){return Array.isArray(t)}n.d(e,{A:()=>r})},"./node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/esm/lodash/is-function.js"(t,e,n){"use strict";function r(t){return"function"==typeof t}n.d(e,{A:()=>r})},"./node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/esm/lodash/is-nil.js"(t,e,n){"use strict";function r(t){return null==t}n.d(e,{A:()=>r})},"./node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/esm/lodash/is-number-equal.js"(t,e,n){"use strict";function r(t,e,n){return void 0===n&&(n=1e-5),t===e||Math.abs(t-e)<n}n.d(e,{A:()=>r})},"./node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/esm/lodash/is-number.js"(t,e,n){"use strict";function r(t){return"number"==typeof t}n.d(e,{A:()=>r})},"./node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/esm/lodash/is-object.js"(t,e,n){"use strict";n.d(e,["A",0,function(t){var e=typeof t;return null!==t&&"object"===e||"function"===e}])},"./node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/esm/lodash/is-string.js"(t,e,n){"use strict";function r(t){return"string"==typeof t}n.d(e,{A:()=>r})},"./node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/esm/lodash/is-type.js"(t,e,n){"use strict";var r={}.toString;n.d(e,["A",0,function(t,e){return r.call(t)==="[object "+e+"]"}])},"./node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/esm/lodash/is-undefined.js"(t,e,n){"use strict";n.d(e,["A",0,function(t){return void 0===t}])},"./node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/esm/lodash/max.js"(t,e,n){"use strict";function r(t){if(!Array.isArray(t))return-1/0;var e=t.length;if(!e)return-1/0;for(var n=t[0],r=1;r<e;r++)n=Math.max(n,t[r]);return n}n.d(e,{A:()=>r})},"./node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/esm/lodash/min.js"(t,e,n){"use strict";var r=n("./node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/esm/lodash/is-array.js");n.d(e,["A",0,function(t){if((0,r.A)(t))return t.reduce(function(t,e){return Math.min(t,e)},t[0])}])},"./node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/esm/path/process/arc-2-cubic.js"(t,e,n){"use strict";function r(t,e,n){return{x:t*Math.cos(n)-e*Math.sin(n),y:t*Math.sin(n)+e*Math.cos(n)}}function i(t,e,n,A,o,a,s,l,c,u){var d,f,h,p,g,m=t,y=e,v=n,b=A,w=l,B=c,x=120*Math.PI/180,C=Math.PI/180*(+o||0),E=[];if(u)f=u[0],h=u[1],p=u[2],g=u[3];else{y=(d=r(m,y,-C)).y;var O=((m=d.x)-(w=(d=r(w,B,-C)).x))/2,k=(y-(B=d.y))/2,F=O*O/(v*v)+k*k/(b*b);F>1&&(v*=F=Math.sqrt(F),b*=F);var Q=v*v,M=b*b,U=(a===s?-1:1)*Math.sqrt(Math.abs((Q*M-Q*k*k-M*O*O)/(Q*k*k+M*O*O)));p=U*v*k/b+(m+w)/2,g=U*-b*O/v+(y+B)/2,f=Math.asin(((y-g)/b*Math.pow(10,9)|0)/Math.pow(10,9)),h=Math.asin(((B-g)/b*Math.pow(10,9)|0)/Math.pow(10,9)),f=m<p?Math.PI-f:f,h=w<p?Math.PI-h:h,f<0&&(f=2*Math.PI+f),h<0&&(h=2*Math.PI+h),s&&f>h&&(f-=2*Math.PI),!s&&h>f&&(h-=2*Math.PI)}var S=h-f;if(Math.abs(S)>x){var _=h,I=w,T=B;h=f+x*(s&&h>f?1:-1),E=i(w=p+v*Math.cos(h),B=g+b*Math.sin(h),v,b,o,0,s,I,T,[h,_,p,g])}S=h-f;var L=Math.cos(f),P=Math.sin(f),j=Math.cos(h),H=Math.sin(h),N=Math.tan(S/4),D=4/3*v*N,R=4/3*b*N,K=[m,y],z=[m+D*P,y-R*L],G=[w+D*H,B-R*j],V=[w,B];if(z[0]=2*K[0]-z[0],z[1]=2*K[1]-z[1],u)return z.concat(G,V,E);for(var W=[],X=0,Y=(E=z.concat(G,V,E)).length;X<Y;X+=1)W[X]=X%2?r(E[X-1],E[X],C).y:r(E[X],E[X+1],C).x;return W}n.d(e,{U:()=>i})},"./node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/esm/path/util/distance-square-root.js"(t,e,n){"use strict";function r(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}n.d(e,{F:()=>r})},"./node_modules/.pnpm/color-name@1.1.3/node_modules/color-name/index.js"(t){"use strict";t.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},"./node_modules/.pnpm/color-string@1.9.1/node_modules/color-string/index.js"(t,e,n){var r=n("./node_modules/.pnpm/color-name@1.1.3/node_modules/color-name/index.js"),i=n("./node_modules/.pnpm/simple-swizzle@0.2.4/node_modules/simple-swizzle/index.js"),A=Object.hasOwnProperty,o=Object.create(null);for(var a in r)A.call(r,a)&&(o[r[a]]=a);var s=t.exports={to:{},get:{}};function l(t,e,n){return Math.min(Math.max(e,t),n)}function c(t){var e=Math.round(t).toString(16).toUpperCase();return e.length<2?"0"+e:e}s.get=function(t){var e,n;switch(t.substring(0,3).toLowerCase()){case"hsl":e=s.get.hsl(t),n="hsl";break;case"hwb":e=s.get.hwb(t),n="hwb";break;default:e=s.get.rgb(t),n="rgb"}return e?{model:n,value:e}:null},s.get.rgb=function(t){if(!t)return null;var e,n,i,o=[0,0,0,1];if(e=t.match(/^#([a-f0-9]{6})([a-f0-9]{2})?$/i)){for(i=e[2],e=e[1],n=0;n<3;n++){var a=2*n;o[n]=parseInt(e.slice(a,a+2),16)}i&&(o[3]=parseInt(i,16)/255)}else if(e=t.match(/^#([a-f0-9]{3,4})$/i)){for(i=(e=e[1])[3],n=0;n<3;n++)o[n]=parseInt(e[n]+e[n],16);i&&(o[3]=parseInt(i+i,16)/255)}else if(e=t.match(/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)){for(n=0;n<3;n++)o[n]=parseInt(e[n+1],0);e[4]&&(o[3]=e[5]?.01*parseFloat(e[4]):parseFloat(e[4]))}else{if(!(e=t.match(/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)))return(e=t.match(/^(\w+)$/))?"transparent"===e[1]?[0,0,0,0]:A.call(r,e[1])?((o=r[e[1]])[3]=1,o):null:null;for(n=0;n<3;n++)o[n]=Math.round(2.55*parseFloat(e[n+1]));e[4]&&(o[3]=e[5]?.01*parseFloat(e[4]):parseFloat(e[4]))}for(n=0;n<3;n++)o[n]=l(o[n],0,255);return o[3]=l(o[3],0,1),o},s.get.hsl=function(t){if(!t)return null;var e=t.match(/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d\.]+)%\s*,?\s*([+-]?[\d\.]+)%\s*(?:[,|\/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/);if(e){var n=parseFloat(e[4]);return[(parseFloat(e[1])%360+360)%360,l(parseFloat(e[2]),0,100),l(parseFloat(e[3]),0,100),l(isNaN(n)?1:n,0,1)]}return null},s.get.hwb=function(t){if(!t)return null;var e=t.match(/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/);if(e){var n=parseFloat(e[4]);return[(parseFloat(e[1])%360+360)%360,l(parseFloat(e[2]),0,100),l(parseFloat(e[3]),0,100),l(isNaN(n)?1:n,0,1)]}return null},s.to.hex=function(){var t=i(arguments);return"#"+c(t[0])+c(t[1])+c(t[2])+(t[3]<1?c(Math.round(255*t[3])):"")},s.to.rgb=function(){var t=i(arguments);return t.length<4||1===t[3]?"rgb("+Math.round(t[0])+", "+Math.round(t[1])+", "+Math.round(t[2])+")":"rgba("+Math.round(t[0])+", "+Math.round(t[1])+", "+Math.round(t[2])+", "+t[3]+")"},s.to.rgb.percent=function(){var t=i(arguments),e=Math.round(t[0]/255*100),n=Math.round(t[1]/255*100),r=Math.round(t[2]/255*100);return t.length<4||1===t[3]?"rgb("+e+"%, "+n+"%, "+r+"%)":"rgba("+e+"%, "+n+"%, "+r+"%, "+t[3]+")"},s.to.hsl=function(){var t=i(arguments);return t.length<4||1===t[3]?"hsl("+t[0]+", "+t[1]+"%, "+t[2]+"%)":"hsla("+t[0]+", "+t[1]+"%, "+t[2]+"%, "+t[3]+")"},s.to.hwb=function(){var t=i(arguments),e="";return t.length>=4&&1!==t[3]&&(e=", "+t[3]),"hwb("+t[0]+", "+t[1]+"%, "+t[2]+"%"+e+")"},s.to.keyword=function(t){return o[t.slice(0,3)]}},"./node_modules/.pnpm/eventemitter3@5.0.4/node_modules/eventemitter3/index.js"(t){"use strict";var e=Object.prototype.hasOwnProperty,n="~";function r(){}function i(t,e,n){this.fn=t,this.context=e,this.once=n||!1}function A(t,e,r,A,o){if("function"!=typeof r)throw new TypeError("The listener must be a function");var a=new i(r,A||t,o),s=n?n+e:e;return t._events[s]?t._events[s].fn?t._events[s]=[t._events[s],a]:t._events[s].push(a):(t._events[s]=a,t._eventsCount++),t}function o(t,e){0===--t._eventsCount?t._events=new r:delete t._events[e]}function a(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),(new r).__proto__||(n=!1)),a.prototype.eventNames=function(){var t,r,i=[];if(0===this._eventsCount)return i;for(r in t=this._events)e.call(t,r)&&i.push(n?r.slice(1):r);return Object.getOwnPropertySymbols?i.concat(Object.getOwnPropertySymbols(t)):i},a.prototype.listeners=function(t){var e=this._events[n?n+t:t];if(!e)return[];if(e.fn)return[e.fn];for(var r=0,i=e.length,A=new Array(i);r<i;r++)A[r]=e[r].fn;return A},a.prototype.listenerCount=function(t){var e=this._events[n?n+t:t];return e?e.fn?1:e.length:0},a.prototype.emit=function(t,e,r,i,A,o){var a=n?n+t:t;if(!this._events[a])return!1;var s,l,c=this._events[a],u=arguments.length;if(c.fn){switch(c.once&&this.removeListener(t,c.fn,void 0,!0),u){case 1:return c.fn.call(c.context),!0;case 2:return c.fn.call(c.context,e),!0;case 3:return c.fn.call(c.context,e,r),!0;case 4:return c.fn.call(c.context,e,r,i),!0;case 5:return c.fn.call(c.context,e,r,i,A),!0;case 6:return c.fn.call(c.context,e,r,i,A,o),!0}for(l=1,s=new Array(u-1);l<u;l++)s[l-1]=arguments[l];c.fn.apply(c.context,s)}else{var d,f=c.length;for(l=0;l<f;l++)switch(c[l].once&&this.removeListener(t,c[l].fn,void 0,!0),u){case 1:c[l].fn.call(c[l].context);break;case 2:c[l].fn.call(c[l].context,e);break;case 3:c[l].fn.call(c[l].context,e,r);break;case 4:c[l].fn.call(c[l].context,e,r,i);break;default:if(!s)for(d=1,s=new Array(u-1);d<u;d++)s[d-1]=arguments[d];c[l].fn.apply(c[l].context,s)}}return!0},a.prototype.on=function(t,e,n){return A(this,t,e,n,!1)},a.prototype.once=function(t,e,n){return A(this,t,e,n,!0)},a.prototype.removeListener=function(t,e,r,i){var A=n?n+t:t;if(!this._events[A])return this;if(!e)return o(this,A),this;var a=this._events[A];if(a.fn)a.fn!==e||i&&!a.once||r&&a.context!==r||o(this,A);else{for(var s=0,l=[],c=a.length;s<c;s++)(a[s].fn!==e||i&&!a[s].once||r&&a[s].context!==r)&&l.push(a[s]);l.length?this._events[A]=1===l.length?l[0]:l:o(this,A)}return this},a.prototype.removeAllListeners=function(t){var e;return t?this._events[e=n?n+t:t]&&o(this,e):(this._events=new r,this._eventsCount=0),this},a.prototype.off=a.prototype.removeListener,a.prototype.addListener=a.prototype.on,a.prefixed=n,a.EventEmitter=a,t.exports=a},"./node_modules/.pnpm/gl-matrix@3.4.4/node_modules/gl-matrix/esm/common.js"(t,e,n){"use strict";n.d(e,{bw:()=>A,p8:()=>r,tb:()=>i});var r=1e-6,i="undefined"!=typeof Float32Array?Float32Array:Array,A=(Math,"zyx");Math,Math},"./node_modules/.pnpm/gl-matrix@3.4.4/node_modules/gl-matrix/esm/mat3.js"(t,e,n){"use strict";n.d(e,{fA:()=>o,vt:()=>i,z0:()=>A});var r=n("./node_modules/.pnpm/gl-matrix@3.4.4/node_modules/gl-matrix/esm/common.js");function i(){var t=new r.tb(9);return r.tb!=Float32Array&&(t[1]=0,t[2]=0,t[3]=0,t[5]=0,t[6]=0,t[7]=0),t[0]=1,t[4]=1,t[8]=1,t}function A(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[4],t[4]=e[5],t[5]=e[6],t[6]=e[8],t[7]=e[9],t[8]=e[10],t}function o(t,e,n,i,A,o,a,s,l){var c=new r.tb(9);return c[0]=t,c[1]=e,c[2]=n,c[3]=i,c[4]=A,c[5]=o,c[6]=a,c[7]=s,c[8]=l,c}},"./node_modules/.pnpm/gl-matrix@3.4.4/node_modules/gl-matrix/esm/mat4.js"(t,e,n){"use strict";n.r(e),n.d(e,{$0:()=>x,$h:()=>L,B8:()=>u,C:()=>o,CV:()=>B,D_:()=>l,I0:()=>T,IL:()=>M,KC:()=>d,Kp:()=>P,N9:()=>O,Ny:()=>$,O:()=>W,O7:()=>I,Qr:()=>b,Re:()=>Y,TV:()=>q,Tl:()=>p,U_:()=>k,W7:()=>K,WQ:()=>X,Z8:()=>v,a4:()=>f,aI:()=>J,e$:()=>m,eL:()=>y,ef:()=>H,fA:()=>a,fN:()=>j,gx:()=>V,hM:()=>C,hZ:()=>s,hs:()=>g,i1:()=>E,jb:()=>et,kN:()=>w,l:()=>U,lK:()=>tt,lw:()=>h,mg:()=>c,nc:()=>N,o:()=>S,o1:()=>_,o8:()=>A,sC:()=>Q,t2:()=>Z,t5:()=>z,up:()=>D,v3:()=>R,vt:()=>i,xI:()=>G,yo:()=>F});var r=n("./node_modules/.pnpm/gl-matrix@3.4.4/node_modules/gl-matrix/esm/common.js");function i(){var t=new r.tb(16);return r.tb!=Float32Array&&(t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=0,t[12]=0,t[13]=0,t[14]=0),t[0]=1,t[5]=1,t[10]=1,t[15]=1,t}function A(t){var e=new r.tb(16);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}function o(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}function a(t,e,n,i,A,o,a,s,l,c,u,d,f,h,p,g){var m=new r.tb(16);return m[0]=t,m[1]=e,m[2]=n,m[3]=i,m[4]=A,m[5]=o,m[6]=a,m[7]=s,m[8]=l,m[9]=c,m[10]=u,m[11]=d,m[12]=f,m[13]=h,m[14]=p,m[15]=g,m}function s(t,e,n,r,i,A,o,a,s,l,c,u,d,f,h,p,g){return t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=A,t[5]=o,t[6]=a,t[7]=s,t[8]=l,t[9]=c,t[10]=u,t[11]=d,t[12]=f,t[13]=h,t[14]=p,t[15]=g,t}function l(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function c(t,e){if(t===e){var n=e[1],r=e[2],i=e[3],A=e[6],o=e[7],a=e[11];t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=n,t[6]=e[9],t[7]=e[13],t[8]=r,t[9]=A,t[11]=e[14],t[12]=i,t[13]=o,t[14]=a}else t[0]=e[0],t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=e[1],t[5]=e[5],t[6]=e[9],t[7]=e[13],t[8]=e[2],t[9]=e[6],t[10]=e[10],t[11]=e[14],t[12]=e[3],t[13]=e[7],t[14]=e[11],t[15]=e[15];return t}function u(t,e){var n=e[0],r=e[1],i=e[2],A=e[3],o=e[4],a=e[5],s=e[6],l=e[7],c=e[8],u=e[9],d=e[10],f=e[11],h=e[12],p=e[13],g=e[14],m=e[15],y=n*a-r*o,v=n*s-i*o,b=n*l-A*o,w=r*s-i*a,B=r*l-A*a,x=i*l-A*s,C=c*p-u*h,E=c*g-d*h,O=c*m-f*h,k=u*g-d*p,F=u*m-f*p,Q=d*m-f*g,M=y*Q-v*F+b*k+w*O-B*E+x*C;return M?(t[0]=(a*Q-s*F+l*k)*(M=1/M),t[1]=(i*F-r*Q-A*k)*M,t[2]=(p*x-g*B+m*w)*M,t[3]=(d*B-u*x-f*w)*M,t[4]=(s*O-o*Q-l*E)*M,t[5]=(n*Q-i*O+A*E)*M,t[6]=(g*b-h*x-m*v)*M,t[7]=(c*x-d*b+f*v)*M,t[8]=(o*F-a*O+l*C)*M,t[9]=(r*O-n*F-A*C)*M,t[10]=(h*B-p*b+m*y)*M,t[11]=(u*b-c*B-f*y)*M,t[12]=(a*E-o*k-s*C)*M,t[13]=(n*k-r*E+i*C)*M,t[14]=(p*v-h*w-g*y)*M,t[15]=(c*w-u*v+d*y)*M,t):null}function d(t,e){var n=e[0],r=e[1],i=e[2],A=e[3],o=e[4],a=e[5],s=e[6],l=e[7],c=e[8],u=e[9],d=e[10],f=e[11],h=e[12],p=e[13],g=e[14],m=e[15],y=n*a-r*o,v=n*s-i*o,b=n*l-A*o,w=r*s-i*a,B=r*l-A*a,x=i*l-A*s,C=c*p-u*h,E=c*g-d*h,O=c*m-f*h,k=u*g-d*p,F=u*m-f*p,Q=d*m-f*g;return t[0]=a*Q-s*F+l*k,t[1]=i*F-r*Q-A*k,t[2]=p*x-g*B+m*w,t[3]=d*B-u*x-f*w,t[4]=s*O-o*Q-l*E,t[5]=n*Q-i*O+A*E,t[6]=g*b-h*x-m*v,t[7]=c*x-d*b+f*v,t[8]=o*F-a*O+l*C,t[9]=r*O-n*F-A*C,t[10]=h*B-p*b+m*y,t[11]=u*b-c*B-f*y,t[12]=a*E-o*k-s*C,t[13]=n*k-r*E+i*C,t[14]=p*v-h*w-g*y,t[15]=c*w-u*v+d*y,t}function f(t){var e=t[0],n=t[1],r=t[2],i=t[4],A=t[5],o=t[6],a=t[8],s=t[9],l=t[10],c=t[12],u=t[13],d=t[14],f=e*A-n*i,h=e*o-r*i,p=n*o-r*A,g=a*u-s*c,m=a*d-l*c,y=s*d-l*u;return t[7]*(e*y-n*m+r*g)-t[3]*(i*y-A*m+o*g)+t[15]*(a*p-s*h+l*f)-t[11]*(c*p-u*h+d*f)}function h(t,e,n){var r=e[0],i=e[1],A=e[2],o=e[3],a=e[4],s=e[5],l=e[6],c=e[7],u=e[8],d=e[9],f=e[10],h=e[11],p=e[12],g=e[13],m=e[14],y=e[15],v=n[0],b=n[1],w=n[2],B=n[3];return t[0]=v*r+b*a+w*u+B*p,t[1]=v*i+b*s+w*d+B*g,t[2]=v*A+b*l+w*f+B*m,t[3]=v*o+b*c+w*h+B*y,t[4]=(v=n[4])*r+(b=n[5])*a+(w=n[6])*u+(B=n[7])*p,t[5]=v*i+b*s+w*d+B*g,t[6]=v*A+b*l+w*f+B*m,t[7]=v*o+b*c+w*h+B*y,t[8]=(v=n[8])*r+(b=n[9])*a+(w=n[10])*u+(B=n[11])*p,t[9]=v*i+b*s+w*d+B*g,t[10]=v*A+b*l+w*f+B*m,t[11]=v*o+b*c+w*h+B*y,t[12]=(v=n[12])*r+(b=n[13])*a+(w=n[14])*u+(B=n[15])*p,t[13]=v*i+b*s+w*d+B*g,t[14]=v*A+b*l+w*f+B*m,t[15]=v*o+b*c+w*h+B*y,t}function p(t,e,n){var r,i,A,o,a,s,l,c,u,d,f,h,p=n[0],g=n[1],m=n[2];return e===t?(t[12]=e[0]*p+e[4]*g+e[8]*m+e[12],t[13]=e[1]*p+e[5]*g+e[9]*m+e[13],t[14]=e[2]*p+e[6]*g+e[10]*m+e[14],t[15]=e[3]*p+e[7]*g+e[11]*m+e[15]):(i=e[1],A=e[2],o=e[3],a=e[4],s=e[5],l=e[6],c=e[7],u=e[8],d=e[9],f=e[10],h=e[11],t[0]=r=e[0],t[1]=i,t[2]=A,t[3]=o,t[4]=a,t[5]=s,t[6]=l,t[7]=c,t[8]=u,t[9]=d,t[10]=f,t[11]=h,t[12]=r*p+a*g+u*m+e[12],t[13]=i*p+s*g+d*m+e[13],t[14]=A*p+l*g+f*m+e[14],t[15]=o*p+c*g+h*m+e[15]),t}function g(t,e,n){var r=n[0],i=n[1],A=n[2];return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t[3]=e[3]*r,t[4]=e[4]*i,t[5]=e[5]*i,t[6]=e[6]*i,t[7]=e[7]*i,t[8]=e[8]*A,t[9]=e[9]*A,t[10]=e[10]*A,t[11]=e[11]*A,t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}function m(t,e,n,i){var A,o,a,s,l,c,u,d,f,h,p,g,m,y,v,b,w,B,x,C,E,O,k,F,Q=i[0],M=i[1],U=i[2],S=Math.sqrt(Q*Q+M*M+U*U);return S<r.p8?null:(Q*=S=1/S,M*=S,U*=S,A=Math.sin(n),o=Math.cos(n),l=e[1],c=e[2],u=e[3],f=e[5],h=e[6],p=e[7],m=e[9],y=e[10],v=e[11],x=Q*M*(a=1-o)-U*A,C=M*M*a+o,E=U*M*a+Q*A,O=Q*U*a+M*A,k=M*U*a-Q*A,F=U*U*a+o,t[0]=(s=e[0])*(b=Q*Q*a+o)+(d=e[4])*(w=M*Q*a+U*A)+(g=e[8])*(B=U*Q*a-M*A),t[1]=l*b+f*w+m*B,t[2]=c*b+h*w+y*B,t[3]=u*b+p*w+v*B,t[4]=s*x+d*C+g*E,t[5]=l*x+f*C+m*E,t[6]=c*x+h*C+y*E,t[7]=u*x+p*C+v*E,t[8]=s*O+d*k+g*F,t[9]=l*O+f*k+m*F,t[10]=c*O+h*k+y*F,t[11]=u*O+p*k+v*F,e!==t&&(t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t)}function y(t,e,n){var r=Math.sin(n),i=Math.cos(n),A=e[4],o=e[5],a=e[6],s=e[7],l=e[8],c=e[9],u=e[10],d=e[11];return e!==t&&(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[4]=A*i+l*r,t[5]=o*i+c*r,t[6]=a*i+u*r,t[7]=s*i+d*r,t[8]=l*i-A*r,t[9]=c*i-o*r,t[10]=u*i-a*r,t[11]=d*i-s*r,t}function v(t,e,n){var r=Math.sin(n),i=Math.cos(n),A=e[0],o=e[1],a=e[2],s=e[3],l=e[8],c=e[9],u=e[10],d=e[11];return e!==t&&(t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[0]=A*i-l*r,t[1]=o*i-c*r,t[2]=a*i-u*r,t[3]=s*i-d*r,t[8]=A*r+l*i,t[9]=o*r+c*i,t[10]=a*r+u*i,t[11]=s*r+d*i,t}function b(t,e,n){var r=Math.sin(n),i=Math.cos(n),A=e[0],o=e[1],a=e[2],s=e[3],l=e[4],c=e[5],u=e[6],d=e[7];return e!==t&&(t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[0]=A*i+l*r,t[1]=o*i+c*r,t[2]=a*i+u*r,t[3]=s*i+d*r,t[4]=l*i-A*r,t[5]=c*i-o*r,t[6]=u*i-a*r,t[7]=d*i-s*r,t}function w(t,e){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=e[0],t[13]=e[1],t[14]=e[2],t[15]=1,t}function B(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=e[1],t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=e[2],t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function x(t,e,n){var i,A,o,a=n[0],s=n[1],l=n[2],c=Math.sqrt(a*a+s*s+l*l);return c<r.p8?null:(a*=c=1/c,s*=c,l*=c,i=Math.sin(e),A=Math.cos(e),t[0]=a*a*(o=1-A)+A,t[1]=s*a*o+l*i,t[2]=l*a*o-s*i,t[3]=0,t[4]=a*s*o-l*i,t[5]=s*s*o+A,t[6]=l*s*o+a*i,t[7]=0,t[8]=a*l*o+s*i,t[9]=s*l*o-a*i,t[10]=l*l*o+A,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t)}function C(t,e){var n=Math.sin(e),r=Math.cos(e);return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=r,t[6]=n,t[7]=0,t[8]=0,t[9]=-n,t[10]=r,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function E(t,e){var n=Math.sin(e),r=Math.cos(e);return t[0]=r,t[1]=0,t[2]=-n,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=n,t[9]=0,t[10]=r,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function O(t,e){var n=Math.sin(e),r=Math.cos(e);return t[0]=r,t[1]=n,t[2]=0,t[3]=0,t[4]=-n,t[5]=r,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function k(t,e,n){var r=e[0],i=e[1],A=e[2],o=e[3],a=r+r,s=i+i,l=A+A,c=r*a,u=r*s,d=r*l,f=i*s,h=i*l,p=A*l,g=o*a,m=o*s,y=o*l;return t[0]=1-(f+p),t[1]=u+y,t[2]=d-m,t[3]=0,t[4]=u-y,t[5]=1-(c+p),t[6]=h+g,t[7]=0,t[8]=d+m,t[9]=h-g,t[10]=1-(c+f),t[11]=0,t[12]=n[0],t[13]=n[1],t[14]=n[2],t[15]=1,t}function F(t,e){var n=new r.tb(3),i=-e[0],A=-e[1],o=-e[2],a=e[3],s=e[4],l=e[5],c=e[6],u=e[7],d=i*i+A*A+o*o+a*a;return d>0?(n[0]=2*(s*a+u*i+l*o-c*A)/d,n[1]=2*(l*a+u*A+c*i-s*o)/d,n[2]=2*(c*a+u*o+s*A-l*i)/d):(n[0]=2*(s*a+u*i+l*o-c*A),n[1]=2*(l*a+u*A+c*i-s*o),n[2]=2*(c*a+u*o+s*A-l*i)),k(t,e,n),t}function Q(t,e){return t[0]=e[12],t[1]=e[13],t[2]=e[14],t}function M(t,e){var n=e[0],r=e[1],i=e[2],A=e[4],o=e[5],a=e[6],s=e[8],l=e[9],c=e[10];return t[0]=Math.sqrt(n*n+r*r+i*i),t[1]=Math.sqrt(A*A+o*o+a*a),t[2]=Math.sqrt(s*s+l*l+c*c),t}function U(t,e){var n=new r.tb(3);M(n,e);var i=1/n[0],A=1/n[1],o=1/n[2],a=e[0]*i,s=e[1]*A,l=e[2]*o,c=e[4]*i,u=e[5]*A,d=e[6]*o,f=e[8]*i,h=e[9]*A,p=e[10]*o,g=a+u+p,m=0;return g>0?(m=2*Math.sqrt(g+1),t[3]=.25*m,t[0]=(d-h)/m,t[1]=(f-l)/m,t[2]=(s-c)/m):a>u&&a>p?(m=2*Math.sqrt(1+a-u-p),t[3]=(d-h)/m,t[0]=.25*m,t[1]=(s+c)/m,t[2]=(f+l)/m):u>p?(m=2*Math.sqrt(1+u-a-p),t[3]=(f-l)/m,t[0]=(s+c)/m,t[1]=.25*m,t[2]=(d+h)/m):(m=2*Math.sqrt(1+p-a-u),t[3]=(s-c)/m,t[0]=(f+l)/m,t[1]=(d+h)/m,t[2]=.25*m),t}function S(t,e,n,r){e[0]=r[12],e[1]=r[13],e[2]=r[14];var i=r[0],A=r[1],o=r[2],a=r[4],s=r[5],l=r[6],c=r[8],u=r[9],d=r[10];n[0]=Math.sqrt(i*i+A*A+o*o),n[1]=Math.sqrt(a*a+s*s+l*l),n[2]=Math.sqrt(c*c+u*u+d*d);var f=1/n[0],h=1/n[1],p=1/n[2],g=i*f,m=A*h,y=o*p,v=a*f,b=s*h,w=l*p,B=c*f,x=u*h,C=d*p,E=g+b+C,O=0;return E>0?(O=2*Math.sqrt(E+1),t[3]=.25*O,t[0]=(w-x)/O,t[1]=(B-y)/O,t[2]=(m-v)/O):g>b&&g>C?(O=2*Math.sqrt(1+g-b-C),t[3]=(w-x)/O,t[0]=.25*O,t[1]=(m+v)/O,t[2]=(B+y)/O):b>C?(O=2*Math.sqrt(1+b-g-C),t[3]=(B-y)/O,t[0]=(m+v)/O,t[1]=.25*O,t[2]=(w+x)/O):(O=2*Math.sqrt(1+C-g-b),t[3]=(m-v)/O,t[0]=(B+y)/O,t[1]=(w+x)/O,t[2]=.25*O),t}function _(t,e,n,r){var i=e[0],A=e[1],o=e[2],a=e[3],s=i+i,l=A+A,c=o+o,u=i*s,d=i*l,f=i*c,h=A*l,p=A*c,g=o*c,m=a*s,y=a*l,v=a*c,b=r[0],w=r[1],B=r[2];return t[0]=(1-(h+g))*b,t[1]=(d+v)*b,t[2]=(f-y)*b,t[3]=0,t[4]=(d-v)*w,t[5]=(1-(u+g))*w,t[6]=(p+m)*w,t[7]=0,t[8]=(f+y)*B,t[9]=(p-m)*B,t[10]=(1-(u+h))*B,t[11]=0,t[12]=n[0],t[13]=n[1],t[14]=n[2],t[15]=1,t}function I(t,e,n,r,i){var A=e[0],o=e[1],a=e[2],s=e[3],l=A+A,c=o+o,u=a+a,d=A*l,f=A*c,h=A*u,p=o*c,g=o*u,m=a*u,y=s*l,v=s*c,b=s*u,w=r[0],B=r[1],x=r[2],C=i[0],E=i[1],O=i[2],k=(1-(p+m))*w,F=(f+b)*w,Q=(h-v)*w,M=(f-b)*B,U=(1-(d+m))*B,S=(g+y)*B,_=(h+v)*x,I=(g-y)*x,T=(1-(d+p))*x;return t[0]=k,t[1]=F,t[2]=Q,t[3]=0,t[4]=M,t[5]=U,t[6]=S,t[7]=0,t[8]=_,t[9]=I,t[10]=T,t[11]=0,t[12]=n[0]+C-(k*C+M*E+_*O),t[13]=n[1]+E-(F*C+U*E+I*O),t[14]=n[2]+O-(Q*C+S*E+T*O),t[15]=1,t}function T(t,e){var n=e[0],r=e[1],i=e[2],A=e[3],o=n+n,a=r+r,s=i+i,l=n*o,c=r*o,u=r*a,d=i*o,f=i*a,h=i*s,p=A*o,g=A*a,m=A*s;return t[0]=1-u-h,t[1]=c+m,t[2]=d-g,t[3]=0,t[4]=c-m,t[5]=1-l-h,t[6]=f+p,t[7]=0,t[8]=d+g,t[9]=f-p,t[10]=1-l-u,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function L(t,e,n,r,i,A,o){var a=1/(n-e),s=1/(i-r),l=1/(A-o);return t[0]=2*A*a,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=2*A*s,t[6]=0,t[7]=0,t[8]=(n+e)*a,t[9]=(i+r)*s,t[10]=(o+A)*l,t[11]=-1,t[12]=0,t[13]=0,t[14]=o*A*2*l,t[15]=0,t}function P(t,e,n,r,i){var A=1/Math.tan(e/2);if(t[0]=A/n,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=A,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=-1,t[12]=0,t[13]=0,t[15]=0,null!=i&&i!==1/0){var o=1/(r-i);t[10]=(i+r)*o,t[14]=2*i*r*o}else t[10]=-1,t[14]=-2*r;return t}var j=P;function H(t,e,n,r,i){var A=1/Math.tan(e/2);if(t[0]=A/n,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=A,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=-1,t[12]=0,t[13]=0,t[15]=0,null!=i&&i!==1/0){var o=1/(r-i);t[10]=i*o,t[14]=i*r*o}else t[10]=-1,t[14]=-r;return t}function N(t,e,n,r){var i=Math.tan(e.upDegrees*Math.PI/180),A=Math.tan(e.downDegrees*Math.PI/180),o=Math.tan(e.leftDegrees*Math.PI/180),a=Math.tan(e.rightDegrees*Math.PI/180),s=2/(o+a),l=2/(i+A);return t[0]=s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=l,t[6]=0,t[7]=0,t[8]=-(o-a)*s*.5,t[9]=(i-A)*l*.5,t[10]=r/(n-r),t[11]=-1,t[12]=0,t[13]=0,t[14]=r*n/(n-r),t[15]=0,t}function D(t,e,n,r,i,A,o){var a=1/(e-n),s=1/(r-i),l=1/(A-o);return t[0]=-2*a,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*s,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=2*l,t[11]=0,t[12]=(e+n)*a,t[13]=(i+r)*s,t[14]=(o+A)*l,t[15]=1,t}var R=D;function K(t,e,n,r,i,A,o){var a=1/(e-n),s=1/(r-i),l=1/(A-o);return t[0]=-2*a,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*s,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=l,t[11]=0,t[12]=(e+n)*a,t[13]=(i+r)*s,t[14]=A*l,t[15]=1,t}function z(t,e,n,i){var A,o,a,s,c,u,d,f,h,p,g=e[0],m=e[1],y=e[2],v=i[0],b=i[1],w=i[2],B=n[0],x=n[1],C=n[2];return Math.abs(g-B)<r.p8&&Math.abs(m-x)<r.p8&&Math.abs(y-C)<r.p8?l(t):(d=g-B,f=m-x,h=y-C,A=b*(h*=p=1/Math.sqrt(d*d+f*f+h*h))-w*(f*=p),o=w*(d*=p)-v*h,a=v*f-b*d,(p=Math.sqrt(A*A+o*o+a*a))?(A*=p=1/p,o*=p,a*=p):(A=0,o=0,a=0),s=f*a-h*o,c=h*A-d*a,u=d*o-f*A,(p=Math.sqrt(s*s+c*c+u*u))?(s*=p=1/p,c*=p,u*=p):(s=0,c=0,u=0),t[0]=A,t[1]=s,t[2]=d,t[3]=0,t[4]=o,t[5]=c,t[6]=f,t[7]=0,t[8]=a,t[9]=u,t[10]=h,t[11]=0,t[12]=-(A*g+o*m+a*y),t[13]=-(s*g+c*m+u*y),t[14]=-(d*g+f*m+h*y),t[15]=1,t)}function G(t,e,n,r){var i=e[0],A=e[1],o=e[2],a=r[0],s=r[1],l=r[2],c=i-n[0],u=A-n[1],d=o-n[2],f=c*c+u*u+d*d;f>0&&(c*=f=1/Math.sqrt(f),u*=f,d*=f);var h=s*d-l*u,p=l*c-a*d,g=a*u-s*c;return(f=h*h+p*p+g*g)>0&&(h*=f=1/Math.sqrt(f),p*=f,g*=f),t[0]=h,t[1]=p,t[2]=g,t[3]=0,t[4]=u*g-d*p,t[5]=d*h-c*g,t[6]=c*p-u*h,t[7]=0,t[8]=c,t[9]=u,t[10]=d,t[11]=0,t[12]=i,t[13]=A,t[14]=o,t[15]=1,t}function V(t){return"mat4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+", "+t[9]+", "+t[10]+", "+t[11]+", "+t[12]+", "+t[13]+", "+t[14]+", "+t[15]+")"}function W(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]+t[3]*t[3]+t[4]*t[4]+t[5]*t[5]+t[6]*t[6]+t[7]*t[7]+t[8]*t[8]+t[9]*t[9]+t[10]*t[10]+t[11]*t[11]+t[12]*t[12]+t[13]*t[13]+t[14]*t[14]+t[15]*t[15])}function X(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],t[4]=e[4]+n[4],t[5]=e[5]+n[5],t[6]=e[6]+n[6],t[7]=e[7]+n[7],t[8]=e[8]+n[8],t[9]=e[9]+n[9],t[10]=e[10]+n[10],t[11]=e[11]+n[11],t[12]=e[12]+n[12],t[13]=e[13]+n[13],t[14]=e[14]+n[14],t[15]=e[15]+n[15],t}function Y(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t[3]=e[3]-n[3],t[4]=e[4]-n[4],t[5]=e[5]-n[5],t[6]=e[6]-n[6],t[7]=e[7]-n[7],t[8]=e[8]-n[8],t[9]=e[9]-n[9],t[10]=e[10]-n[10],t[11]=e[11]-n[11],t[12]=e[12]-n[12],t[13]=e[13]-n[13],t[14]=e[14]-n[14],t[15]=e[15]-n[15],t}function $(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t[4]=e[4]*n,t[5]=e[5]*n,t[6]=e[6]*n,t[7]=e[7]*n,t[8]=e[8]*n,t[9]=e[9]*n,t[10]=e[10]*n,t[11]=e[11]*n,t[12]=e[12]*n,t[13]=e[13]*n,t[14]=e[14]*n,t[15]=e[15]*n,t}function q(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t[3]=e[3]+n[3]*r,t[4]=e[4]+n[4]*r,t[5]=e[5]+n[5]*r,t[6]=e[6]+n[6]*r,t[7]=e[7]+n[7]*r,t[8]=e[8]+n[8]*r,t[9]=e[9]+n[9]*r,t[10]=e[10]+n[10]*r,t[11]=e[11]+n[11]*r,t[12]=e[12]+n[12]*r,t[13]=e[13]+n[13]*r,t[14]=e[14]+n[14]*r,t[15]=e[15]+n[15]*r,t}function Z(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]&&t[4]===e[4]&&t[5]===e[5]&&t[6]===e[6]&&t[7]===e[7]&&t[8]===e[8]&&t[9]===e[9]&&t[10]===e[10]&&t[11]===e[11]&&t[12]===e[12]&&t[13]===e[13]&&t[14]===e[14]&&t[15]===e[15]}function J(t,e){var n=t[0],i=t[1],A=t[2],o=t[3],a=t[4],s=t[5],l=t[6],c=t[7],u=t[8],d=t[9],f=t[10],h=t[11],p=t[12],g=t[13],m=t[14],y=t[15],v=e[0],b=e[1],w=e[2],B=e[3],x=e[4],C=e[5],E=e[6],O=e[7],k=e[8],F=e[9],Q=e[10],M=e[11],U=e[12],S=e[13],_=e[14],I=e[15];return Math.abs(n-v)<=r.p8*Math.max(1,Math.abs(n),Math.abs(v))&&Math.abs(i-b)<=r.p8*Math.max(1,Math.abs(i),Math.abs(b))&&Math.abs(A-w)<=r.p8*Math.max(1,Math.abs(A),Math.abs(w))&&Math.abs(o-B)<=r.p8*Math.max(1,Math.abs(o),Math.abs(B))&&Math.abs(a-x)<=r.p8*Math.max(1,Math.abs(a),Math.abs(x))&&Math.abs(s-C)<=r.p8*Math.max(1,Math.abs(s),Math.abs(C))&&Math.abs(l-E)<=r.p8*Math.max(1,Math.abs(l),Math.abs(E))&&Math.abs(c-O)<=r.p8*Math.max(1,Math.abs(c),Math.abs(O))&&Math.abs(u-k)<=r.p8*Math.max(1,Math.abs(u),Math.abs(k))&&Math.abs(d-F)<=r.p8*Math.max(1,Math.abs(d),Math.abs(F))&&Math.abs(f-Q)<=r.p8*Math.max(1,Math.abs(f),Math.abs(Q))&&Math.abs(h-M)<=r.p8*Math.max(1,Math.abs(h),Math.abs(M))&&Math.abs(p-U)<=r.p8*Math.max(1,Math.abs(p),Math.abs(U))&&Math.abs(g-S)<=r.p8*Math.max(1,Math.abs(g),Math.abs(S))&&Math.abs(m-_)<=r.p8*Math.max(1,Math.abs(m),Math.abs(_))&&Math.abs(y-I)<=r.p8*Math.max(1,Math.abs(y),Math.abs(I))}var tt=h,et=Y},"./node_modules/.pnpm/gl-matrix@3.4.4/node_modules/gl-matrix/esm/quat.js"(t,e,n){"use strict";n.d(e,{A6:()=>u,B8:()=>c,C:()=>f,S8:()=>g,fA:()=>d,hZ:()=>h,lK:()=>p,lw:()=>l,vt:()=>a,x8:()=>s});var r=n("./node_modules/.pnpm/gl-matrix@3.4.4/node_modules/gl-matrix/esm/common.js"),i=n("./node_modules/.pnpm/gl-matrix@3.4.4/node_modules/gl-matrix/esm/mat3.js"),A=n("./node_modules/.pnpm/gl-matrix@3.4.4/node_modules/gl-matrix/esm/vec3.js"),o=n("./node_modules/.pnpm/gl-matrix@3.4.4/node_modules/gl-matrix/esm/vec4.js");function a(){var t=new r.tb(4);return r.tb!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0),t[3]=1,t}function s(t,e,n){n*=.5;var r=Math.sin(n);return t[0]=r*e[0],t[1]=r*e[1],t[2]=r*e[2],t[3]=Math.cos(n),t}function l(t,e,n){var r=e[0],i=e[1],A=e[2],o=e[3],a=n[0],s=n[1],l=n[2],c=n[3];return t[0]=r*c+o*a+i*l-A*s,t[1]=i*c+o*s+A*a-r*l,t[2]=A*c+o*l+r*s-i*a,t[3]=o*c-r*a-i*s-A*l,t}function c(t,e){var n=e[0],r=e[1],i=e[2],A=e[3],o=n*n+r*r+i*i+A*A,a=o?1/o:0;return t[0]=-n*a,t[1]=-r*a,t[2]=-i*a,t[3]=A*a,t}function u(t,e,n,i){var A=arguments.length>4&&void 0!==arguments[4]?arguments[4]:r.bw,o=Math.PI/360;e*=o,i*=o,n*=o;var a=Math.sin(e),s=Math.cos(e),l=Math.sin(n),c=Math.cos(n),u=Math.sin(i),d=Math.cos(i);switch(A){case"xyz":t[0]=a*c*d+s*l*u,t[1]=s*l*d-a*c*u,t[2]=s*c*u+a*l*d,t[3]=s*c*d-a*l*u;break;case"xzy":t[0]=a*c*d-s*l*u,t[1]=s*l*d-a*c*u,t[2]=s*c*u+a*l*d,t[3]=s*c*d+a*l*u;break;case"yxz":t[0]=a*c*d+s*l*u,t[1]=s*l*d-a*c*u,t[2]=s*c*u-a*l*d,t[3]=s*c*d+a*l*u;break;case"yzx":t[0]=a*c*d+s*l*u,t[1]=s*l*d+a*c*u,t[2]=s*c*u-a*l*d,t[3]=s*c*d-a*l*u;break;case"zxy":t[0]=a*c*d-s*l*u,t[1]=s*l*d+a*c*u,t[2]=s*c*u+a*l*d,t[3]=s*c*d-a*l*u;break;case"zyx":t[0]=a*c*d-s*l*u,t[1]=s*l*d+a*c*u,t[2]=s*c*u-a*l*d,t[3]=s*c*d+a*l*u;break;default:throw new Error("Unknown angle order "+A)}return t}var d=o.fA,f=o.C,h=o.hZ,p=l,g=o.S8;A.vt(),A.fA(1,0,0),A.fA(0,1,0),a(),a(),i.vt()},"./node_modules/.pnpm/gl-matrix@3.4.4/node_modules/gl-matrix/esm/vec2.js"(t,e,n){"use strict";n.d(e,{C:()=>A,Om:()=>s,S8:()=>a,hZ:()=>o,t2:()=>l,vt:()=>i});var r=n("./node_modules/.pnpm/gl-matrix@3.4.4/node_modules/gl-matrix/esm/common.js");function i(){var t=new r.tb(2);return r.tb!=Float32Array&&(t[0]=0,t[1]=0),t}function A(t,e){return t[0]=e[0],t[1]=e[1],t}function o(t,e,n){return t[0]=e,t[1]=n,t}function a(t,e){var n=e[0],r=e[1],i=n*n+r*r;return i>0&&(i=1/Math.sqrt(i)),t[0]=e[0]*i,t[1]=e[1]*i,t}function s(t,e){return t[0]*e[0]+t[1]*e[1]}function l(t,e){return t[0]===e[0]&&t[1]===e[1]}i()},"./node_modules/.pnpm/gl-matrix@3.4.4/node_modules/gl-matrix/esm/vec3.js"(t,e,n){"use strict";n.d(e,{$A:()=>y,Bw:()=>o,C:()=>s,Cc:()=>v,Il:()=>O,Om:()=>m,Re:()=>u,S8:()=>g,T9:()=>h,WQ:()=>c,Z0:()=>b,aI:()=>x,ei:()=>w,fA:()=>a,gL:()=>B,hZ:()=>l,hs:()=>p,jb:()=>C,jk:()=>f,lw:()=>d,o8:()=>A,vt:()=>i,xg:()=>E});var r=n("./node_modules/.pnpm/gl-matrix@3.4.4/node_modules/gl-matrix/esm/common.js");function i(){var t=new r.tb(3);return r.tb!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0),t}function A(t){var e=new r.tb(3);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e}function o(t){var e=t[0],n=t[1],r=t[2];return Math.sqrt(e*e+n*n+r*r)}function a(t,e,n){var i=new r.tb(3);return i[0]=t,i[1]=e,i[2]=n,i}function s(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function l(t,e,n,r){return t[0]=e,t[1]=n,t[2]=r,t}function c(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t}function u(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t}function d(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t[2]=e[2]*n[2],t}function f(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t[2]=Math.min(e[2],n[2]),t}function h(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t[2]=Math.max(e[2],n[2]),t}function p(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t}function g(t,e){var n=e[0],r=e[1],i=e[2],A=n*n+r*r+i*i;return A>0&&(A=1/Math.sqrt(A)),t[0]=e[0]*A,t[1]=e[1]*A,t[2]=e[2]*A,t}function m(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function y(t,e,n){var r=e[0],i=e[1],A=e[2],o=n[0],a=n[1],s=n[2];return t[0]=i*s-A*a,t[1]=A*o-r*s,t[2]=r*a-i*o,t}function v(t,e,n,r){var i=e[0],A=e[1],o=e[2];return t[0]=i+r*(n[0]-i),t[1]=A+r*(n[1]-A),t[2]=o+r*(n[2]-o),t}function b(t,e,n){var r=e[0],i=e[1],A=e[2],o=n[3]*r+n[7]*i+n[11]*A+n[15];return t[0]=(n[0]*r+n[4]*i+n[8]*A+n[12])/(o=o||1),t[1]=(n[1]*r+n[5]*i+n[9]*A+n[13])/o,t[2]=(n[2]*r+n[6]*i+n[10]*A+n[14])/o,t}function w(t,e,n){var r=e[0],i=e[1],A=e[2];return t[0]=r*n[0]+i*n[3]+A*n[6],t[1]=r*n[1]+i*n[4]+A*n[7],t[2]=r*n[2]+i*n[5]+A*n[8],t}function B(t,e,n){var r=n[0],i=n[1],A=n[2],o=n[3],a=e[0],s=e[1],l=e[2],c=i*l-A*s,u=A*a-r*l,d=r*s-i*a;return t[0]=a+o*(c+=c)+i*(d+=d)-A*(u+=u),t[1]=s+o*u+A*c-r*d,t[2]=l+o*d+r*u-i*c,t}function x(t,e){var n=t[0],i=t[1],A=t[2],o=e[0],a=e[1],s=e[2];return Math.abs(n-o)<=r.p8*Math.max(1,Math.abs(n),Math.abs(o))&&Math.abs(i-a)<=r.p8*Math.max(1,Math.abs(i),Math.abs(a))&&Math.abs(A-s)<=r.p8*Math.max(1,Math.abs(A),Math.abs(s))}var C=u,E=function(t,e){var n=e[0]-t[0],r=e[1]-t[1],i=e[2]-t[2];return Math.sqrt(n*n+r*r+i*i)},O=o;i()},"./node_modules/.pnpm/gl-matrix@3.4.4/node_modules/gl-matrix/esm/vec4.js"(t,e,n){"use strict";n.d(e,{Bw:()=>u,C:()=>a,Cc:()=>p,Om:()=>h,S8:()=>f,WQ:()=>l,Z0:()=>g,fA:()=>o,hZ:()=>s,hs:()=>c,m3:()=>d,o8:()=>A,t2:()=>m,vt:()=>i});var r=n("./node_modules/.pnpm/gl-matrix@3.4.4/node_modules/gl-matrix/esm/common.js");function i(){var t=new r.tb(4);return r.tb!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0,t[3]=0),t}function A(t){var e=new r.tb(4);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}function o(t,e,n,i){var A=new r.tb(4);return A[0]=t,A[1]=e,A[2]=n,A[3]=i,A}function a(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}function s(t,e,n,r,i){return t[0]=e,t[1]=n,t[2]=r,t[3]=i,t}function l(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],t}function c(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t}function u(t){var e=t[0],n=t[1],r=t[2],i=t[3];return Math.sqrt(e*e+n*n+r*r+i*i)}function d(t){var e=t[0],n=t[1],r=t[2],i=t[3];return e*e+n*n+r*r+i*i}function f(t,e){var n=e[0],r=e[1],i=e[2],A=e[3],o=n*n+r*r+i*i+A*A;return o>0&&(o=1/Math.sqrt(o)),t[0]=n*o,t[1]=r*o,t[2]=i*o,t[3]=A*o,t}function h(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]+t[3]*e[3]}function p(t,e,n,r){var i=e[0],A=e[1],o=e[2],a=e[3];return t[0]=i+r*(n[0]-i),t[1]=A+r*(n[1]-A),t[2]=o+r*(n[2]-o),t[3]=a+r*(n[3]-a),t}function g(t,e,n){var r=e[0],i=e[1],A=e[2],o=e[3];return t[0]=n[0]*r+n[4]*i+n[8]*A+n[12]*o,t[1]=n[1]*r+n[5]*i+n[9]*A+n[13]*o,t[2]=n[2]*r+n[6]*i+n[10]*A+n[14]*o,t[3]=n[3]*r+n[7]*i+n[11]*A+n[15]*o,t}function m(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]}i()},"./node_modules/.pnpm/html2canvas@1.4.1/node_modules/html2canvas/dist/html2canvas.js"(t){t.exports=function(){"use strict";var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};function e(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}var n=function(){return n=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},n.apply(this,arguments)};function r(t,e,n,r){return new(n||(n=Promise))(function(i,A){function o(t){try{s(r.next(t))}catch(t){A(t)}}function a(t){try{s(r.throw(t))}catch(t){A(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n(function(t){t(e)})).then(o,a)}s((r=r.apply(t,e||[])).next())})}function i(t,e){var n,r,i,A,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return A={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(A[Symbol.iterator]=function(){return this}),A;function a(A){return function(a){return function(A){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(i=2&A[0]?r.return:A[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,A[1])).done)return i;switch(r=0,i&&(A=[2&A[0],i.value]),A[0]){case 0:case 1:i=A;break;case 4:return o.label++,{value:A[1],done:!1};case 5:o.label++,r=A[1],A=[0];continue;case 7:A=o.ops.pop(),o.trys.pop();continue;default:if(!((i=(i=o.trys).length>0&&i[i.length-1])||6!==A[0]&&2!==A[0])){o=0;continue}if(3===A[0]&&(!i||A[1]>i[0]&&A[1]<i[3])){o.label=A[1];break}if(6===A[0]&&o.label<i[1]){o.label=i[1],i=A;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(A);break}i[2]&&o.ops.pop(),o.trys.pop();continue}A=e.call(t,o)}catch(t){A=[6,t],r=0}finally{n=i=0}if(5&A[0])throw A[1];return{value:A[0]?A[1]:void 0,done:!0}}([A,a])}}}function A(t,e,n){if(n||2===arguments.length)for(var r,i=0,A=e.length;i<A;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||e)}for(var o=function(){function t(t,e,n,r){this.left=t,this.top=e,this.width=n,this.height=r}return t.prototype.add=function(e,n,r,i){return new t(this.left+e,this.top+n,this.width+r,this.height+i)},t.fromClientRect=function(e,n){return new t(n.left+e.windowBounds.left,n.top+e.windowBounds.top,n.width,n.height)},t.fromDOMRectList=function(e,n){var r=Array.from(n).find(function(t){return 0!==t.width});return r?new t(r.left+e.windowBounds.left,r.top+e.windowBounds.top,r.width,r.height):t.EMPTY},t.EMPTY=new t(0,0,0,0),t}(),a=function(t,e){return o.fromClientRect(t,e.getBoundingClientRect())},s=function(t){for(var e=[],n=0,r=t.length;n<r;){var i=t.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){var A=t.charCodeAt(n++);56320==(64512&A)?e.push(((1023&i)<<10)+(1023&A)+65536):(e.push(i),n--)}else e.push(i)}return e},l=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(String.fromCodePoint)return String.fromCodePoint.apply(String,t);var n=t.length;if(!n)return"";for(var r=[],i=-1,A="";++i<n;){var o=t[i];o<=65535?r.push(o):r.push(55296+((o-=65536)>>10),o%1024+56320),(i+1===n||r.length>16384)&&(A+=String.fromCharCode.apply(String,r),r.length=0)}return A},c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",u="undefined"==typeof Uint8Array?[]:new Uint8Array(256),d=0;d<64;d++)u[c.charCodeAt(d)]=d;for(var f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",h="undefined"==typeof Uint8Array?[]:new Uint8Array(256),p=0;p<64;p++)h[f.charCodeAt(p)]=p;for(var g=function(t,e,n){return t.slice?t.slice(e,n):new Uint16Array(Array.prototype.slice.call(t,e,n))},m=function(){function t(t,e,n,r,i,A){this.initialValue=t,this.errorValue=e,this.highStart=n,this.highValueIndex=r,this.index=i,this.data=A}return t.prototype.get=function(t){var e;if(t>=0){if(t<55296||t>56319&&t<=65535)return this.data[e=((e=this.index[t>>5])<<2)+(31&t)];if(t<=65535)return this.data[e=((e=this.index[2048+(t-55296>>5)])<<2)+(31&t)];if(t<this.highStart)return e=this.index[e=2080+(t>>11)],this.data[e=((e=this.index[e+=t>>5&63])<<2)+(31&t)];if(t<=1114111)return this.data[this.highValueIndex]}return this.errorValue},t}(),y="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",v="undefined"==typeof Uint8Array?[]:new Uint8Array(256),b=0;b<64;b++)v[y.charCodeAt(b)]=b;var w=10,B=13,x=15,C=17,E=18,O=19,k=20,F=21,Q=22,M=24,U=25,S=26,_=27,I=28,T=30,L=32,P=33,j=34,H=35,N=37,D=38,R=39,K=40,z=42,G=[9001,65288],V="×",W="÷",X=function(t){var e,n,r,i=function(t){var e,n,r,i,A,o=.75*t.length,a=t.length,s=0;"="===t[t.length-1]&&(o--,"="===t[t.length-2]&&o--);var l="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array&&void 0!==Uint8Array.prototype.slice?new ArrayBuffer(o):new Array(o),c=Array.isArray(l)?l:new Uint8Array(l);for(e=0;e<a;e+=4)n=h[t.charCodeAt(e)],r=h[t.charCodeAt(e+1)],i=h[t.charCodeAt(e+2)],A=h[t.charCodeAt(e+3)],c[s++]=n<<2|r>>4,c[s++]=(15&r)<<4|i>>2,c[s++]=(3&i)<<6|63&A;return l}(t),A=Array.isArray(i)?function(t){for(var e=t.length,n=[],r=0;r<e;r+=4)n.push(t[r+3]<<24|t[r+2]<<16|t[r+1]<<8|t[r]);return n}(i):new Uint32Array(i),o=Array.isArray(i)?function(t){for(var e=t.length,n=[],r=0;r<e;r+=2)n.push(t[r+1]<<8|t[r]);return n}(i):new Uint16Array(i),a=g(o,12,A[4]/2),s=2===A[5]?g(o,(24+A[4])/2):(e=A,n=Math.ceil((24+A[4])/4),e.slice?e.slice(n,r):new Uint32Array(Array.prototype.slice.call(e,n,r)));return new m(A[0],A[1],A[2],A[3],a,s)}("KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF8AZwBgAGgAcQB5AHUAfQCFAI0AlQCdAKIAqgCyALoAYABoAGAAaABgAGgAwgDKAGAAaADGAM4A0wDbAOEA6QDxAPkAAQEJAQ8BFwF1AH0AHAEkASwBNAE6AUIBQQFJAVEBWQFhAWgBcAF4ATAAgAGGAY4BlQGXAZ8BpwGvAbUBvQHFAc0B0wHbAeMB6wHxAfkBAQIJAvEBEQIZAiECKQIxAjgCQAJGAk4CVgJeAmQCbAJ0AnwCgQKJApECmQKgAqgCsAK4ArwCxAIwAMwC0wLbAjAA4wLrAvMC+AIAAwcDDwMwABcDHQMlAy0DNQN1AD0DQQNJA0kDSQNRA1EDVwNZA1kDdQB1AGEDdQBpA20DdQN1AHsDdQCBA4kDkQN1AHUAmQOhA3UAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AKYDrgN1AHUAtgO+A8YDzgPWAxcD3gPjA+sD8wN1AHUA+wMDBAkEdQANBBUEHQQlBCoEFwMyBDgEYABABBcDSARQBFgEYARoBDAAcAQzAXgEgASIBJAEdQCXBHUAnwSnBK4EtgS6BMIEyAR1AHUAdQB1AHUAdQCVANAEYABgAGAAYABgAGAAYABgANgEYADcBOQEYADsBPQE/AQEBQwFFAUcBSQFLAU0BWQEPAVEBUsFUwVbBWAAYgVgAGoFcgV6BYIFigWRBWAAmQWfBaYFYABgAGAAYABgAKoFYACxBbAFuQW6BcEFwQXHBcEFwQXPBdMF2wXjBeoF8gX6BQIGCgYSBhoGIgYqBjIGOgZgAD4GRgZMBmAAUwZaBmAAYABgAGAAYABgAGAAYABgAGAAYABgAGIGYABpBnAGYABgAGAAYABgAGAAYABgAGAAYAB4Bn8GhQZgAGAAYAB1AHcDFQSLBmAAYABgAJMGdQA9A3UAmwajBqsGqwaVALMGuwbDBjAAywbSBtIG1QbSBtIG0gbSBtIG0gbdBuMG6wbzBvsGAwcLBxMHAwcbByMHJwcsBywHMQcsB9IGOAdAB0gHTgfSBkgHVgfSBtIG0gbSBtIG0gbSBtIG0gbSBiwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdgAGAALAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdbB2MHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB2kH0gZwB64EdQB1AHUAdQB1AHUAdQB1AHUHfQdgAIUHjQd1AHUAlQedB2AAYAClB6sHYACzB7YHvgfGB3UAzgfWBzMB3gfmB1EB7gf1B/0HlQENAQUIDQh1ABUIHQglCBcDLQg1CD0IRQhNCEEDUwh1AHUAdQBbCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIcAh3CHoIMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIgggwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAALAcsBywHLAcsBywHLAcsBywHLAcsB4oILAcsB44I0gaWCJ4Ipgh1AHUAqgiyCHUAdQB1AHUAdQB1AHUAdQB1AHUAtwh8AXUAvwh1AMUIyQjRCNkI4AjoCHUAdQB1AO4I9gj+CAYJDgkTCS0HGwkjCYIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiAAIAAAAFAAYABgAGIAXwBgAHEAdQBFAJUAogCyAKAAYABgAEIA4ABGANMA4QDxAMEBDwE1AFwBLAE6AQEBUQF4QkhCmEKoQrhCgAHIQsAB0MLAAcABwAHAAeDC6ABoAHDCwMMAAcABwAHAAdDDGMMAAcAB6MM4wwjDWMNow3jDaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAEjDqABWw6bDqABpg6gAaABoAHcDvwOPA+gAaABfA/8DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DpcPAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcAB9cPKwkyCToJMAB1AHUAdQBCCUoJTQl1AFUJXAljCWcJawkwADAAMAAwAHMJdQB2CX4JdQCECYoJjgmWCXUAngkwAGAAYABxAHUApgn3A64JtAl1ALkJdQDACTAAMAAwADAAdQB1AHUAdQB1AHUAdQB1AHUAowYNBMUIMAAwADAAMADICcsJ0wnZCRUE4QkwAOkJ8An4CTAAMAB1AAAKvwh1AAgKDwoXCh8KdQAwACcKLgp1ADYKqAmICT4KRgowADAAdQB1AE4KMAB1AFYKdQBeCnUAZQowADAAMAAwADAAMAAwADAAMAAVBHUAbQowADAAdQC5CXUKMAAwAHwBxAijBogEMgF9CoQKiASMCpQKmgqIBKIKqgquCogEDQG2Cr4KxgrLCjAAMADTCtsKCgHjCusK8Qr5CgELMAAwADAAMAB1AIsECQsRC3UANAEZCzAAMAAwADAAMAB1ACELKQswAHUANAExCzkLdQBBC0kLMABRC1kLMAAwADAAMAAwADAAdQBhCzAAMAAwAGAAYABpC3ELdwt/CzAAMACHC4sLkwubC58Lpwt1AK4Ltgt1APsDMAAwADAAMAAwADAAMAAwAL4LwwvLC9IL1wvdCzAAMADlC+kL8Qv5C/8LSQswADAAMAAwADAAMAAwADAAMAAHDDAAMAAwADAAMAAODBYMHgx1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1ACYMMAAwADAAdQB1AHUALgx1AHUAdQB1AHUAdQA2DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AD4MdQBGDHUAdQB1AHUAdQB1AEkMdQB1AHUAdQB1AFAMMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQBYDHUAdQB1AF8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUA+wMVBGcMMAAwAHwBbwx1AHcMfwyHDI8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAYABgAJcMMAAwADAAdQB1AJ8MlQClDDAAMACtDCwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB7UMLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AA0EMAC9DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAsBywHLAcsBywHLAcsBywHLQcwAMEMyAwsBywHLAcsBywHLAcsBywHLAcsBywHzAwwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1ANQM2QzhDDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMABgAGAAYABgAGAAYABgAOkMYADxDGAA+AwADQYNYABhCWAAYAAODTAAMAAwADAAFg1gAGAAHg37AzAAMAAwADAAYABgACYNYAAsDTQNPA1gAEMNPg1LDWAAYABgAGAAYABgAGAAYABgAGAAUg1aDYsGVglhDV0NcQBnDW0NdQ15DWAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAlQCBDZUAiA2PDZcNMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAnw2nDTAAMAAwADAAMAAwAHUArw23DTAAMAAwADAAMAAwADAAMAAwADAAMAB1AL8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQDHDTAAYABgAM8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA1w11ANwNMAAwAD0B5A0wADAAMAAwADAAMADsDfQN/A0EDgwOFA4wABsOMAAwADAAMAAwADAAMAAwANIG0gbSBtIG0gbSBtIG0gYjDigOwQUuDsEFMw7SBjoO0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGQg5KDlIOVg7SBtIGXg5lDm0OdQ7SBtIGfQ6EDooOjQ6UDtIGmg6hDtIG0gaoDqwO0ga0DrwO0gZgAGAAYADEDmAAYAAkBtIGzA5gANIOYADaDokO0gbSBt8O5w7SBu8O0gb1DvwO0gZgAGAAxA7SBtIG0gbSBtIGYABgAGAAYAAED2AAsAUMD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHJA8sBywHLAcsBywHLAccDywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywPLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAc0D9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHPA/SBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gYUD0QPlQCVAJUAMAAwADAAMACVAJUAlQCVAJUAlQCVAEwPMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA//8EAAQABAAEAAQABAAEAAQABAANAAMAAQABAAIABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQACgATABcAHgAbABoAHgAXABYAEgAeABsAGAAPABgAHABLAEsASwBLAEsASwBLAEsASwBLABgAGAAeAB4AHgATAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABYAGwASAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWAA0AEQAeAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAFAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJABYAGgAbABsAGwAeAB0AHQAeAE8AFwAeAA0AHgAeABoAGwBPAE8ADgBQAB0AHQAdAE8ATwAXAE8ATwBPABYAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAFAATwBAAE8ATwBPAEAATwBQAFAATwBQAB4AHgAeAB4AHgAeAB0AHQAdAB0AHgAdAB4ADgBQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgBQAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAkACQAJAAkACQAJAAkABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAFAAHgAeAB4AKwArAFAAUABQAFAAGABQACsAKwArACsAHgAeAFAAHgBQAFAAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUAAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAYAA0AKwArAB4AHgAbACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAB4ABAAEAB4ABAAEABMABAArACsAKwArACsAKwArACsAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAKwArACsAKwBWAFYAVgBWAB4AHgArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AGgAaABoAGAAYAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQAEwAEACsAEwATAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABLAEsASwBLAEsASwBLAEsASwBLABoAGQAZAB4AUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABMAUAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABABQAFAABAAEAB4ABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUAAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAFAABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQAUABQAB4AHgAYABMAUAArACsABAAbABsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAFAABAAEAAQABAAEAFAABAAEAAQAUAAEAAQABAAEAAQAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArACsAHgArAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAUAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEAA0ADQBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUAArACsAKwBQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABABQACsAKwArACsAKwArACsAKwAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUAAaABoAUABQAFAAUABQAEwAHgAbAFAAHgAEACsAKwAEAAQABAArAFAAUABQAFAAUABQACsAKwArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQACsAUABQACsAKwAEACsABAAEAAQABAAEACsAKwArACsABAAEACsAKwAEAAQABAArACsAKwAEACsAKwArACsAKwArACsAUABQAFAAUAArAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLAAQABABQAFAAUAAEAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAArACsAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AGwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAKwArACsAKwArAAQABAAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAAQAUAArAFAAUABQAFAAUABQACsAKwArAFAAUABQACsAUABQAFAAUAArACsAKwBQAFAAKwBQACsAUABQACsAKwArAFAAUAArACsAKwBQAFAAUAArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAAQABAAEAAQABAArACsAKwAEAAQABAArAAQABAAEAAQAKwArAFAAKwArACsAKwArACsABAArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAHgAeAB4AHgAeAB4AGwAeACsAKwArACsAKwAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAUABQAFAAKwArACsAKwArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwAOAFAAUABQAFAAUABQAFAAHgBQAAQABAAEAA4AUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAKwArAAQAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAKwArACsAKwArACsAUAArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABABQAB4AKwArACsAKwBQAFAAUAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQABoAUABQAFAAUABQAFAAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQACsAUAArACsAUABQAFAAUABQAFAAUAArACsAKwAEACsAKwArACsABAAEAAQABAAEAAQAKwAEACsABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgAqACsAKwArACsAGwBcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAeAEsASwBLAEsASwBLAEsASwBLAEsADQANACsAKwArACsAKwBcAFwAKwBcACsAXABcAFwAXABcACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAXAArAFwAXABcAFwAXABcAFwAXABcAFwAKgBcAFwAKgAqACoAKgAqACoAKgAqACoAXAArACsAXABcAFwAXABcACsAXAArACoAKgAqACoAKgAqACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwBcAFwAXABcAFAADgAOAA4ADgAeAA4ADgAJAA4ADgANAAkAEwATABMAEwATAAkAHgATAB4AHgAeAAQABAAeAB4AHgAeAB4AHgBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQAFAADQAEAB4ABAAeAAQAFgARABYAEQAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAAQABAAEAAQADQAEAAQAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAA0ADQAeAB4AHgAeAB4AHgAEAB4AHgAeAB4AHgAeACsAHgAeAA4ADgANAA4AHgAeAB4AHgAeAAkACQArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgBcAEsASwBLAEsASwBLAEsASwBLAEsADQANAB4AHgAeAB4AXABcAFwAXABcAFwAKgAqACoAKgBcAFwAXABcACoAKgAqAFwAKgAqACoAXABcACoAKgAqACoAKgAqACoAXABcAFwAKgAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqAFwAKgBLAEsASwBLAEsASwBLAEsASwBLACoAKgAqACoAKgAqAFAAUABQAFAAUABQACsAUAArACsAKwArACsAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAKwBQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsABAAEAAQAHgANAB4AHgAeAB4AHgAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUAArACsADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWABEAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQANAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAANAA0AKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUAArAAQABAArACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqAA0ADQAVAFwADQAeAA0AGwBcACoAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwAeAB4AEwATAA0ADQAOAB4AEwATAB4ABAAEAAQACQArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAHgArACsAKwATABMASwBLAEsASwBLAEsASwBLAEsASwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAXABcAFwAXABcACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAXAArACsAKwAqACoAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsAHgAeAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKwAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKwArAAQASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACoAKgAqACoAKgAqACoAXAAqACoAKgAqACoAKgArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABABQAFAAUABQAFAAUABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwANAA0AHgANAA0ADQANAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwAeAB4AHgAeAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArAA0ADQANAA0ADQBLAEsASwBLAEsASwBLAEsASwBLACsAKwArAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUAAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAAQAUABQAFAAUABQAFAABABQAFAABAAEAAQAUAArACsAKwArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQACsAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAFAAUABQACsAHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQACsAKwAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQACsAHgAeAB4AHgAeAB4AHgAOAB4AKwANAA0ADQANAA0ADQANAAkADQANAA0ACAAEAAsABAAEAA0ACQANAA0ADAAdAB0AHgAXABcAFgAXABcAFwAWABcAHQAdAB4AHgAUABQAFAANAAEAAQAEAAQABAAEAAQACQAaABoAGgAaABoAGgAaABoAHgAXABcAHQAVABUAHgAeAB4AHgAeAB4AGAAWABEAFQAVABUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ADQAeAA0ADQANAA0AHgANAA0ADQAHAB4AHgAeAB4AKwAEAAQABAAEAAQABAAEAAQABAAEAFAAUAArACsATwBQAFAAUABQAFAAHgAeAB4AFgARAE8AUABPAE8ATwBPAFAAUABQAFAAUAAeAB4AHgAWABEAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArABsAGwAbABsAGwAbABsAGgAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGgAbABsAGwAbABoAGwAbABoAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAHgAeAFAAGgAeAB0AHgBQAB4AGgAeAB4AHgAeAB4AHgAeAB4AHgBPAB4AUAAbAB4AHgBQAFAAUABQAFAAHgAeAB4AHQAdAB4AUAAeAFAAHgBQAB4AUABPAFAAUAAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgBQAFAAUABQAE8ATwBQAFAAUABQAFAATwBQAFAATwBQAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAUABQAFAATwBPAE8ATwBPAE8ATwBPAE8ATwBQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABPAB4AHgArACsAKwArAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHQAdAB4AHgAeAB0AHQAeAB4AHQAeAB4AHgAdAB4AHQAbABsAHgAdAB4AHgAeAB4AHQAeAB4AHQAdAB0AHQAeAB4AHQAeAB0AHgAdAB0AHQAdAB0AHQAeAB0AHgAeAB4AHgAeAB0AHQAdAB0AHgAeAB4AHgAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHgAeAB0AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAeAB0AHQAdAB0AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAdAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAWABEAHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAWABEAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AHQAdAB0AHgAeAB0AHgAeAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlAB4AHQAdAB4AHgAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AJQAlAB0AHQAlAB4AJQAlACUAIAAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAdAB0AHQAeAB0AJQAdAB0AHgAdAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAdAB0AHQAdACUAHgAlACUAJQAdACUAJQAdAB0AHQAlACUAHQAdACUAHQAdACUAJQAlAB4AHQAeAB4AHgAeAB0AHQAlAB0AHQAdAB0AHQAdACUAJQAlACUAJQAdACUAJQAgACUAHQAdACUAJQAlACUAJQAlACUAJQAeAB4AHgAlACUAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AFwAXABcAFwAXABcAHgATABMAJQAeAB4AHgAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARABYAEQAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAEAAQABAAeAB4AKwArACsAKwArABMADQANAA0AUAATAA0AUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUAANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAA0ADQANAA0ADQANAA0ADQAeAA0AFgANAB4AHgAXABcAHgAeABcAFwAWABEAFgARABYAEQAWABEADQANAA0ADQATAFAADQANAB4ADQANAB4AHgAeAB4AHgAMAAwADQANAA0AHgANAA0AFgANAA0ADQANAA0ADQANAA0AHgANAB4ADQANAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArAA0AEQARACUAJQBHAFcAVwAWABEAFgARABYAEQAWABEAFgARACUAJQAWABEAFgARABYAEQAWABEAFQAWABEAEQAlAFcAVwBXAFcAVwBXAFcAVwBXAAQABAAEAAQABAAEACUAVwBXAFcAVwA2ACUAJQBXAFcAVwBHAEcAJQAlACUAKwBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBRAFcAUQBXAFEAVwBXAFcAVwBXAFcAUQBXAFcAVwBXAFcAVwBRAFEAKwArAAQABAAVABUARwBHAFcAFQBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBRAFcAVwBXAFcAVwBXAFEAUQBXAFcAVwBXABUAUQBHAEcAVwArACsAKwArACsAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwAlACUAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACsAKwArACsAKwArACsAKwArACsAKwArAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBPAE8ATwBPAE8ATwBPAE8AJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADQATAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABLAEsASwBLAEsASwBLAEsASwBLAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAABAAEAAQABAAeAAQABAAEAAQABAAEAAQABAAEAAQAHgBQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAeAA0ADQANAA0ADQArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAAQAUABQAFAABABQAFAAUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAeAB4AHgAeAAQAKwArACsAUABQAFAAUABQAFAAHgAeABoAHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADgAOABMAEwArACsAKwArACsAKwArACsABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUAAeAB4AHgBQAA4AUABQAAQAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAB4AWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYACsAKwArAAQAHgAeAB4AHgAeAB4ADQANAA0AHgAeAB4AHgArAFAASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArAB4AHgBcAFwAXABcAFwAKgBcAFwAXABcAFwAXABcAFwAXABcAEsASwBLAEsASwBLAEsASwBLAEsAXABcAFwAXABcACsAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAFAAUABQAAQAUABQAFAAUABQAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAHgANAA0ADQBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAKgAqACoAXABcACoAKgBcAFwAXABcAFwAKgAqAFwAKgBcACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcACoAKgBQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAA0ADQBQAFAAUAAEAAQAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQADQAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAVABVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBUAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVACsAKwArACsAKwArACsAKwArACsAKwArAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAKwArACsAKwBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAKwArACsAKwAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAKwArACsAKwArAFYABABWAFYAVgBWAFYAVgBWAFYAVgBWAB4AVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgArAFYAVgBWAFYAVgArAFYAKwBWAFYAKwBWAFYAKwBWAFYAVgBWAFYAVgBWAFYAVgBWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAEQAWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAaAB4AKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAGAARABEAGAAYABMAEwAWABEAFAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACUAJQAlACUAJQAWABEAFgARABYAEQAWABEAFgARABYAEQAlACUAFgARACUAJQAlACUAJQAlACUAEQAlABEAKwAVABUAEwATACUAFgARABYAEQAWABEAJQAlACUAJQAlACUAJQAlACsAJQAbABoAJQArACsAKwArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAcAKwATACUAJQAbABoAJQAlABYAEQAlACUAEQAlABEAJQBXAFcAVwBXAFcAVwBXAFcAVwBXABUAFQAlACUAJQATACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXABYAJQARACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAWACUAEQAlABYAEQARABYAEQARABUAVwBRAFEAUQBRAFEAUQBRAFEAUQBRAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcARwArACsAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXACsAKwBXAFcAVwBXAFcAVwArACsAVwBXAFcAKwArACsAGgAbACUAJQAlABsAGwArAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAAQAB0AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsADQANAA0AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAA0AUABQAFAAUAArACsAKwArAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwBQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAUABQAFAAUABQAAQABAAEACsABAAEACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAKwBQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAA0ADQANAA0ADQANAA0ADQAeACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAArACsAKwArAFAAUABQAFAAUAANAA0ADQANAA0ADQAUACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsADQANAA0ADQANAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArAAQABAANACsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAB4AHgAeAB4AHgArACsAKwArACsAKwAEAAQABAAEAAQABAAEAA0ADQAeAB4AHgAeAB4AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsASwBLAEsASwBLAEsASwBLAEsASwANAA0ADQANAFAABAAEAFAAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAeAA4AUAArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAADQANAB4ADQAEAAQABAAEAB4ABAAEAEsASwBLAEsASwBLAEsASwBLAEsAUAAOAFAADQANAA0AKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAA0AHgANAA0AHgAEACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAA0AKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsABAAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAUAArACsAKwArACsAKwAEACsAKwArACsAKwBQAFAAUABQAFAABAAEACsAKwAEAAQABAAEAAQABAAEACsAKwArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABABQAFAAUABQAA0ADQANAA0AHgBLAEsASwBLAEsASwBLAEsASwBLAA0ADQArAB4ABABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUAAeAFAAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABAAEAAQADgANAA0AEwATAB4AHgAeAA0ADQANAA0ADQANAA0ADQANAA0ADQANAA0ADQANAFAAUABQAFAABAAEACsAKwAEAA0ADQAeAFAAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKwArACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBcAFwADQANAA0AKgBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQAKwAEAAQAKwArAAQABAAEAAQAUAAEAFAABAAEAA0ADQANACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABABQAA4AUAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAOAB4ADQANAA0ADQAOAB4ABAArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAA0ADQANAFAADgAOAA4ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAFAADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAOABMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAArACsAKwAEACsABAAEACsABAAEAAQABAAEAAQABABQAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAaABoAGgAaAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABIAEgAQwBDAEMAUABQAFAAUABDAFAAUABQAEgAQwBIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABDAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAJAAkACQAJAAkACQAJABYAEQArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwANAA0AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAANACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQANAB4AHgAeAB4AHgAeAFAAUABQAFAADQAeACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAA0AHgAeACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAARwBHABUARwAJACsAKwArACsAKwArACsAKwArACsAKwAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUQBRAFEAKwArACsAKwArACsAKwArACsAKwArACsAKwBRAFEAUQBRACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAHgAEAAQADQAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQABAAEAAQABAAeAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQAHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAKwArAFAAKwArAFAAUAArACsAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUAArAFAAUABQAFAAUABQAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAHgAeAFAAUABQAFAAUAArAFAAKwArACsAUABQAFAAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeACsAKwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4ABAAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAHgAeAA0ADQANAA0AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArAAQABAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwBQAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArABsAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAB4AHgAeAB4ABAAEAAQABAAEAAQABABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArABYAFgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAGgBQAFAAUAAaAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUAArACsAKwArACsAKwBQACsAKwArACsAUAArAFAAKwBQACsAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUAArAFAAKwBQACsAUAArAFAAUAArAFAAKwArAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAKwBQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AJQAlACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeACUAJQAlAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAlACUAJQAlACUAHgAlACUAJQAlACUAIAAgACAAJQAlACAAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACEAIQAhACEAIQAlACUAIAAgACUAJQAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAIAAlACUAJQAlACAAIAAgACUAIAAgACAAJQAlACUAJQAlACUAJQAgACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAlAB4AJQAeACUAJQAlACUAJQAgACUAJQAlACUAHgAlAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACAAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABcAFwAXABUAFQAVAB4AHgAeAB4AJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAgACUAJQAgACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAIAAgACUAJQAgACAAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACAAIAAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACAAIAAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAA=="),Y=[T,36],$=[1,2,3,5],q=[w,8],Z=[_,S],J=$.concat(q),tt=[D,R,K,j,H],et=[x,B],nt=function(t,e,n,r){var i=r[n];if(Array.isArray(t)?-1!==t.indexOf(i):t===i)for(var A=n;A<=r.length;){if((s=r[++A])===e)return!0;if(s!==w)break}if(i===w)for(A=n;A>0;){var o=r[--A];if(Array.isArray(t)?-1!==t.indexOf(o):t===o)for(var a=n;a<=r.length;){var s;if((s=r[++a])===e)return!0;if(s!==w)break}if(o!==w)break}return!1},rt=function(t,e){for(var n=t;n>=0;){var r=e[n];if(r!==w)return r;n--}return 0},it=function(t,e,n,r,i){if(0===n[r])return V;var A=r-1;if(Array.isArray(i)&&!0===i[A])return V;var o=A-1,a=A+1,s=e[A],l=o>=0?e[o]:0,c=e[a];if(2===s&&3===c)return V;if(-1!==$.indexOf(s))return"!";if(-1!==$.indexOf(c))return V;if(-1!==q.indexOf(c))return V;if(8===rt(A,e))return W;if(11===X.get(t[A]))return V;if((s===L||s===P)&&11===X.get(t[a]))return V;if(7===s||7===c)return V;if(9===s)return V;if(-1===[w,B,x].indexOf(s)&&9===c)return V;if(-1!==[C,E,O,M,I].indexOf(c))return V;if(rt(A,e)===Q)return V;if(nt(23,Q,A,e))return V;if(nt([C,E],F,A,e))return V;if(nt(12,12,A,e))return V;if(s===w)return W;if(23===s||23===c)return V;if(16===c||16===s)return W;if(-1!==[B,x,F].indexOf(c)||14===s)return V;if(36===l&&-1!==et.indexOf(s))return V;if(s===I&&36===c)return V;if(c===k)return V;if(-1!==Y.indexOf(c)&&s===U||-1!==Y.indexOf(s)&&c===U)return V;if(s===_&&-1!==[N,L,P].indexOf(c)||-1!==[N,L,P].indexOf(s)&&c===S)return V;if(-1!==Y.indexOf(s)&&-1!==Z.indexOf(c)||-1!==Z.indexOf(s)&&-1!==Y.indexOf(c))return V;if(-1!==[_,S].indexOf(s)&&(c===U||-1!==[Q,x].indexOf(c)&&e[a+1]===U)||-1!==[Q,x].indexOf(s)&&c===U||s===U&&-1!==[U,I,M].indexOf(c))return V;if(-1!==[U,I,M,C,E].indexOf(c))for(var u=A;u>=0;){if((d=e[u])===U)return V;if(-1===[I,M].indexOf(d))break;u--}if(-1!==[_,S].indexOf(c))for(u=-1!==[C,E].indexOf(s)?o:A;u>=0;){var d;if((d=e[u])===U)return V;if(-1===[I,M].indexOf(d))break;u--}if(D===s&&-1!==[D,R,j,H].indexOf(c)||-1!==[R,j].indexOf(s)&&-1!==[R,K].indexOf(c)||-1!==[K,H].indexOf(s)&&c===K)return V;if(-1!==tt.indexOf(s)&&-1!==[k,S].indexOf(c)||-1!==tt.indexOf(c)&&s===_)return V;if(-1!==Y.indexOf(s)&&-1!==Y.indexOf(c))return V;if(s===M&&-1!==Y.indexOf(c))return V;if(-1!==Y.concat(U).indexOf(s)&&c===Q&&-1===G.indexOf(t[a])||-1!==Y.concat(U).indexOf(c)&&s===E)return V;if(41===s&&41===c){for(var f=n[A],h=1;f>0&&41===e[--f];)h++;if(h%2!=0)return V}return s===L&&c===P?V:W},At=function(t,e){e||(e={lineBreak:"normal",wordBreak:"normal"});var n=function(t,e){void 0===e&&(e="strict");var n=[],r=[],i=[];return t.forEach(function(t,A){var o=X.get(t);if(o>50?(i.push(!0),o-=50):i.push(!1),-1!==["normal","auto","loose"].indexOf(e)&&-1!==[8208,8211,12316,12448].indexOf(t))return r.push(A),n.push(16);if(4===o||11===o){if(0===A)return r.push(A),n.push(T);var a=n[A-1];return-1===J.indexOf(a)?(r.push(r[A-1]),n.push(a)):(r.push(A),n.push(T))}return r.push(A),31===o?n.push("strict"===e?F:N):o===z||29===o?n.push(T):43===o?n.push(t>=131072&&t<=196605||t>=196608&&t<=262141?N:T):void n.push(o)}),[r,n,i]}(t,e.lineBreak),r=n[0],i=n[1],A=n[2];"break-all"!==e.wordBreak&&"break-word"!==e.wordBreak||(i=i.map(function(t){return-1!==[U,T,z].indexOf(t)?N:t}));var o="keep-all"===e.wordBreak?A.map(function(e,n){return e&&t[n]>=19968&&t[n]<=40959}):void 0;return[r,i,o]},ot=function(){function t(t,e,n,r){this.codePoints=t,this.required="!"===e,this.start=n,this.end=r}return t.prototype.slice=function(){return l.apply(void 0,this.codePoints.slice(this.start,this.end))},t}(),at=45,st=43,lt=-1,ct=function(t){return t>=48&&t<=57},ut=function(t){return ct(t)||t>=65&&t<=70||t>=97&&t<=102},dt=function(t){return 10===t||9===t||32===t},ft=function(t){return function(t){return function(t){return t>=97&&t<=122}(t)||function(t){return t>=65&&t<=90}(t)}(t)||function(t){return t>=128}(t)||95===t},ht=function(t){return ft(t)||ct(t)||t===at},pt=function(t){return t>=0&&t<=8||11===t||t>=14&&t<=31||127===t},gt=function(t,e){return 92===t&&10!==e},mt=function(t,e,n){return t===at?ft(e)||gt(e,n):!!ft(t)||!(92!==t||!gt(t,e))},yt=function(t,e,n){return t===st||t===at?!!ct(e)||46===e&&ct(n):ct(46===t?e:t)},vt=function(t){var e=0,n=1;t[e]!==st&&t[e]!==at||(t[e]===at&&(n=-1),e++);for(var r=[];ct(t[e]);)r.push(t[e++]);var i=r.length?parseInt(l.apply(void 0,r),10):0;46===t[e]&&e++;for(var A=[];ct(t[e]);)A.push(t[e++]);var o=A.length,a=o?parseInt(l.apply(void 0,A),10):0;69!==t[e]&&101!==t[e]||e++;var s=1;t[e]!==st&&t[e]!==at||(t[e]===at&&(s=-1),e++);for(var c=[];ct(t[e]);)c.push(t[e++]);var u=c.length?parseInt(l.apply(void 0,c),10):0;return n*(i+a*Math.pow(10,-o))*Math.pow(10,s*u)},bt={type:2},wt={type:3},Bt={type:4},xt={type:13},Ct={type:8},Et={type:21},Ot={type:9},kt={type:10},Ft={type:11},Qt={type:12},Mt={type:14},Ut={type:23},St={type:1},_t={type:25},It={type:24},Tt={type:26},Lt={type:27},Pt={type:28},jt={type:29},Ht={type:31},Nt={type:32},Dt=function(){function t(){this._value=[]}return t.prototype.write=function(t){this._value=this._value.concat(s(t))},t.prototype.read=function(){for(var t=[],e=this.consumeToken();e!==Nt;)t.push(e),e=this.consumeToken();return t},t.prototype.consumeToken=function(){var t=this.consumeCodePoint();switch(t){case 34:return this.consumeStringToken(34);case 35:var e=this.peekCodePoint(0),n=this.peekCodePoint(1),r=this.peekCodePoint(2);if(ht(e)||gt(n,r)){var i=mt(e,n,r)?2:1;return{type:5,value:this.consumeName(),flags:i}}break;case 36:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),xt;break;case 39:return this.consumeStringToken(39);case 40:return bt;case 41:return wt;case 42:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),Mt;break;case st:if(yt(t,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(t),this.consumeNumericToken();break;case 44:return Bt;case at:var A=t,o=this.peekCodePoint(0),a=this.peekCodePoint(1);if(yt(A,o,a))return this.reconsumeCodePoint(t),this.consumeNumericToken();if(mt(A,o,a))return this.reconsumeCodePoint(t),this.consumeIdentLikeToken();if(o===at&&62===a)return this.consumeCodePoint(),this.consumeCodePoint(),It;break;case 46:if(yt(t,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(t),this.consumeNumericToken();break;case 47:if(42===this.peekCodePoint(0))for(this.consumeCodePoint();;){var s=this.consumeCodePoint();if(42===s&&47===(s=this.consumeCodePoint()))return this.consumeToken();if(s===lt)return this.consumeToken()}break;case 58:return Tt;case 59:return Lt;case 60:if(33===this.peekCodePoint(0)&&this.peekCodePoint(1)===at&&this.peekCodePoint(2)===at)return this.consumeCodePoint(),this.consumeCodePoint(),_t;break;case 64:var c=this.peekCodePoint(0),u=this.peekCodePoint(1),d=this.peekCodePoint(2);if(mt(c,u,d))return{type:7,value:this.consumeName()};break;case 91:return Pt;case 92:if(gt(t,this.peekCodePoint(0)))return this.reconsumeCodePoint(t),this.consumeIdentLikeToken();break;case 93:return jt;case 61:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),Ct;break;case 123:return Ft;case 125:return Qt;case 117:case 85:var f=this.peekCodePoint(0),h=this.peekCodePoint(1);return f!==st||!ut(h)&&63!==h||(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(t),this.consumeIdentLikeToken();case 124:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),Ot;if(124===this.peekCodePoint(0))return this.consumeCodePoint(),Et;break;case 126:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),kt;break;case lt:return Nt}return dt(t)?(this.consumeWhiteSpace(),Ht):ct(t)?(this.reconsumeCodePoint(t),this.consumeNumericToken()):ft(t)?(this.reconsumeCodePoint(t),this.consumeIdentLikeToken()):{type:6,value:l(t)}},t.prototype.consumeCodePoint=function(){var t=this._value.shift();return void 0===t?-1:t},t.prototype.reconsumeCodePoint=function(t){this._value.unshift(t)},t.prototype.peekCodePoint=function(t){return t>=this._value.length?-1:this._value[t]},t.prototype.consumeUnicodeRangeToken=function(){for(var t=[],e=this.consumeCodePoint();ut(e)&&t.length<6;)t.push(e),e=this.consumeCodePoint();for(var n=!1;63===e&&t.length<6;)t.push(e),e=this.consumeCodePoint(),n=!0;if(n)return{type:30,start:parseInt(l.apply(void 0,t.map(function(t){return 63===t?48:t})),16),end:parseInt(l.apply(void 0,t.map(function(t){return 63===t?70:t})),16)};var r=parseInt(l.apply(void 0,t),16);if(this.peekCodePoint(0)===at&&ut(this.peekCodePoint(1))){this.consumeCodePoint(),e=this.consumeCodePoint();for(var i=[];ut(e)&&i.length<6;)i.push(e),e=this.consumeCodePoint();return{type:30,start:r,end:parseInt(l.apply(void 0,i),16)}}return{type:30,start:r,end:r}},t.prototype.consumeIdentLikeToken=function(){var t=this.consumeName();return"url"===t.toLowerCase()&&40===this.peekCodePoint(0)?(this.consumeCodePoint(),this.consumeUrlToken()):40===this.peekCodePoint(0)?(this.consumeCodePoint(),{type:19,value:t}):{type:20,value:t}},t.prototype.consumeUrlToken=function(){var t=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===lt)return{type:22,value:""};var e=this.peekCodePoint(0);if(39===e||34===e){var n=this.consumeStringToken(this.consumeCodePoint());return 0===n.type&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===lt||41===this.peekCodePoint(0))?(this.consumeCodePoint(),{type:22,value:n.value}):(this.consumeBadUrlRemnants(),Ut)}for(;;){var r=this.consumeCodePoint();if(r===lt||41===r)return{type:22,value:l.apply(void 0,t)};if(dt(r))return this.consumeWhiteSpace(),this.peekCodePoint(0)===lt||41===this.peekCodePoint(0)?(this.consumeCodePoint(),{type:22,value:l.apply(void 0,t)}):(this.consumeBadUrlRemnants(),Ut);if(34===r||39===r||40===r||pt(r))return this.consumeBadUrlRemnants(),Ut;if(92===r){if(!gt(r,this.peekCodePoint(0)))return this.consumeBadUrlRemnants(),Ut;t.push(this.consumeEscapedCodePoint())}else t.push(r)}},t.prototype.consumeWhiteSpace=function(){for(;dt(this.peekCodePoint(0));)this.consumeCodePoint()},t.prototype.consumeBadUrlRemnants=function(){for(;;){var t=this.consumeCodePoint();if(41===t||t===lt)return;gt(t,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},t.prototype.consumeStringSlice=function(t){for(var e="";t>0;){var n=Math.min(5e4,t);e+=l.apply(void 0,this._value.splice(0,n)),t-=n}return this._value.shift(),e},t.prototype.consumeStringToken=function(t){for(var e="",n=0;;){var r=this._value[n];if(r===lt||void 0===r||r===t)return{type:0,value:e+=this.consumeStringSlice(n)};if(10===r)return this._value.splice(0,n),St;if(92===r){var i=this._value[n+1];i!==lt&&void 0!==i&&(10===i?(e+=this.consumeStringSlice(n),n=-1,this._value.shift()):gt(r,i)&&(e+=this.consumeStringSlice(n),e+=l(this.consumeEscapedCodePoint()),n=-1))}n++}},t.prototype.consumeNumber=function(){var t=[],e=4,n=this.peekCodePoint(0);for(n!==st&&n!==at||t.push(this.consumeCodePoint());ct(this.peekCodePoint(0));)t.push(this.consumeCodePoint());n=this.peekCodePoint(0);var r=this.peekCodePoint(1);if(46===n&&ct(r))for(t.push(this.consumeCodePoint(),this.consumeCodePoint()),e=8;ct(this.peekCodePoint(0));)t.push(this.consumeCodePoint());n=this.peekCodePoint(0),r=this.peekCodePoint(1);var i=this.peekCodePoint(2);if((69===n||101===n)&&((r===st||r===at)&&ct(i)||ct(r)))for(t.push(this.consumeCodePoint(),this.consumeCodePoint()),e=8;ct(this.peekCodePoint(0));)t.push(this.consumeCodePoint());return[vt(t),e]},t.prototype.consumeNumericToken=function(){var t=this.consumeNumber(),e=t[0],n=t[1],r=this.peekCodePoint(0),i=this.peekCodePoint(1),A=this.peekCodePoint(2);return mt(r,i,A)?{type:15,number:e,flags:n,unit:this.consumeName()}:37===r?(this.consumeCodePoint(),{type:16,number:e,flags:n}):{type:17,number:e,flags:n}},t.prototype.consumeEscapedCodePoint=function(){var t=this.consumeCodePoint();if(ut(t)){for(var e=l(t);ut(this.peekCodePoint(0))&&e.length<6;)e+=l(this.consumeCodePoint());dt(this.peekCodePoint(0))&&this.consumeCodePoint();var n=parseInt(e,16);return 0===n||function(t){return t>=55296&&t<=57343}(n)||n>1114111?65533:n}return t===lt?65533:t},t.prototype.consumeName=function(){for(var t="";;){var e=this.consumeCodePoint();if(ht(e))t+=l(e);else{if(!gt(e,this.peekCodePoint(0)))return this.reconsumeCodePoint(e),t;t+=l(this.consumeEscapedCodePoint())}}},t}(),Rt=function(){function t(t){this._tokens=t}return t.create=function(e){var n=new Dt;return n.write(e),new t(n.read())},t.parseValue=function(e){return t.create(e).parseComponentValue()},t.parseValues=function(e){return t.create(e).parseComponentValues()},t.prototype.parseComponentValue=function(){for(var t=this.consumeToken();31===t.type;)t=this.consumeToken();if(32===t.type)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(t);var e=this.consumeComponentValue();do{t=this.consumeToken()}while(31===t.type);if(32===t.type)return e;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},t.prototype.parseComponentValues=function(){for(var t=[];;){var e=this.consumeComponentValue();if(32===e.type)return t;t.push(e),t.push()}},t.prototype.consumeComponentValue=function(){var t=this.consumeToken();switch(t.type){case 11:case 28:case 2:return this.consumeSimpleBlock(t.type);case 19:return this.consumeFunction(t)}return t},t.prototype.consumeSimpleBlock=function(t){for(var e={type:t,values:[]},n=this.consumeToken();;){if(32===n.type||qt(n,t))return e;this.reconsumeToken(n),e.values.push(this.consumeComponentValue()),n=this.consumeToken()}},t.prototype.consumeFunction=function(t){for(var e={name:t.value,values:[],type:18};;){var n=this.consumeToken();if(32===n.type||3===n.type)return e;this.reconsumeToken(n),e.values.push(this.consumeComponentValue())}},t.prototype.consumeToken=function(){var t=this._tokens.shift();return void 0===t?Nt:t},t.prototype.reconsumeToken=function(t){this._tokens.unshift(t)},t}(),Kt=function(t){return 15===t.type},zt=function(t){return 17===t.type},Gt=function(t){return 20===t.type},Vt=function(t){return 0===t.type},Wt=function(t,e){return Gt(t)&&t.value===e},Xt=function(t){return 31!==t.type},Yt=function(t){return 31!==t.type&&4!==t.type},$t=function(t){var e=[],n=[];return t.forEach(function(t){if(4===t.type){if(0===n.length)throw new Error("Error parsing function args, zero tokens for arg");return e.push(n),void(n=[])}31!==t.type&&n.push(t)}),n.length&&e.push(n),e},qt=function(t,e){return 11===e&&12===t.type||28===e&&29===t.type||2===e&&3===t.type},Zt=function(t){return 17===t.type||15===t.type},Jt=function(t){return 16===t.type||Zt(t)},te=function(t){return t.length>1?[t[0],t[1]]:[t[0]]},ee={type:17,number:0,flags:4},ne={type:16,number:50,flags:4},re={type:16,number:100,flags:4},ie=function(t,e,n){var r=t[0],i=t[1];return[Ae(r,e),Ae(void 0!==i?i:r,n)]},Ae=function(t,e){if(16===t.type)return t.number/100*e;if(Kt(t))switch(t.unit){case"rem":case"em":return 16*t.number;default:return t.number}return t.number},oe="grad",ae="turn",se=function(t,e){if(15===e.type)switch(e.unit){case"deg":return Math.PI*e.number/180;case oe:return Math.PI/200*e.number;case"rad":return e.number;case ae:return 2*Math.PI*e.number}throw new Error("Unsupported angle type")},le=function(t){return 15===t.type&&("deg"===t.unit||t.unit===oe||"rad"===t.unit||t.unit===ae)},ce=function(t){switch(t.filter(Gt).map(function(t){return t.value}).join(" ")){case"to bottom right":case"to right bottom":case"left top":case"top left":return[ee,ee];case"to top":case"bottom":return ue(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[ee,re];case"to right":case"left":return ue(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[re,re];case"to bottom":case"top":return ue(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[re,ee];case"to left":case"right":return ue(270)}return 0},ue=function(t){return Math.PI*t/180},de=function(t,e){if(18===e.type){var n=be[e.name];if(void 0===n)throw new Error('Attempting to parse an unsupported color function "'+e.name+'"');return n(t,e.values)}if(5===e.type){if(3===e.value.length){var r=e.value.substring(0,1),i=e.value.substring(1,2),A=e.value.substring(2,3);return pe(parseInt(r+r,16),parseInt(i+i,16),parseInt(A+A,16),1)}if(4===e.value.length){r=e.value.substring(0,1),i=e.value.substring(1,2),A=e.value.substring(2,3);var o=e.value.substring(3,4);return pe(parseInt(r+r,16),parseInt(i+i,16),parseInt(A+A,16),parseInt(o+o,16)/255)}if(6===e.value.length)return r=e.value.substring(0,2),i=e.value.substring(2,4),A=e.value.substring(4,6),pe(parseInt(r,16),parseInt(i,16),parseInt(A,16),1);if(8===e.value.length)return r=e.value.substring(0,2),i=e.value.substring(2,4),A=e.value.substring(4,6),o=e.value.substring(6,8),pe(parseInt(r,16),parseInt(i,16),parseInt(A,16),parseInt(o,16)/255)}if(20===e.type){var a=Be[e.value.toUpperCase()];if(void 0!==a)return a}return Be.TRANSPARENT},fe=function(t){return!(255&t)},he=function(t){var e=255&t,n=255&t>>8,r=255&t>>16,i=255&t>>24;return e<255?"rgba("+i+","+r+","+n+","+e/255+")":"rgb("+i+","+r+","+n+")"},pe=function(t,e,n,r){return(t<<24|e<<16|n<<8|Math.round(255*r))>>>0},ge=function(t,e){if(17===t.type)return t.number;if(16===t.type){var n=3===e?1:255;return 3===e?t.number/100*n:Math.round(t.number/100*n)}return 0},me=function(t,e){var n=e.filter(Yt);if(3===n.length){var r=n.map(ge);return pe(r[0],r[1],r[2],1)}if(4===n.length){var i=n.map(ge);return pe(i[0],i[1],i[2],i[3])}return 0};function ye(t,e,n){return n<0&&(n+=1),n>=1&&(n-=1),n<1/6?(e-t)*n*6+t:n<.5?e:n<2/3?6*(e-t)*(2/3-n)+t:t}var ve=function(t,e){var n=e.filter(Yt),r=n[0],i=n[1],A=n[2],o=n[3],a=(17===r.type?ue(r.number):se(t,r))/(2*Math.PI),s=Jt(i)?i.number/100:0,l=Jt(A)?A.number/100:0,c=void 0!==o&&Jt(o)?Ae(o,1):1;if(0===s)return pe(255*l,255*l,255*l,1);var u=l<=.5?l*(s+1):l+s-l*s,d=2*l-u,f=ye(d,u,a+1/3),h=ye(d,u,a),p=ye(d,u,a-1/3);return pe(255*f,255*h,255*p,c)},be={hsl:ve,hsla:ve,rgb:me,rgba:me},we=function(t,e){return de(t,Rt.create(e).parseComponentValue())},Be={ALICEBLUE:4042850303,ANTIQUEWHITE:4209760255,AQUA:16777215,AQUAMARINE:2147472639,AZURE:4043309055,BEIGE:4126530815,BISQUE:4293182719,BLACK:255,BLANCHEDALMOND:4293643775,BLUE:65535,BLUEVIOLET:2318131967,BROWN:2771004159,BURLYWOOD:3736635391,CADETBLUE:1604231423,CHARTREUSE:2147418367,CHOCOLATE:3530104575,CORAL:4286533887,CORNFLOWERBLUE:1687547391,CORNSILK:4294499583,CRIMSON:3692313855,CYAN:16777215,DARKBLUE:35839,DARKCYAN:9145343,DARKGOLDENROD:3095837695,DARKGRAY:2846468607,DARKGREEN:6553855,DARKGREY:2846468607,DARKKHAKI:3182914559,DARKMAGENTA:2332068863,DARKOLIVEGREEN:1433087999,DARKORANGE:4287365375,DARKORCHID:2570243327,DARKRED:2332033279,DARKSALMON:3918953215,DARKSEAGREEN:2411499519,DARKSLATEBLUE:1211993087,DARKSLATEGRAY:793726975,DARKSLATEGREY:793726975,DARKTURQUOISE:13554175,DARKVIOLET:2483082239,DEEPPINK:4279538687,DEEPSKYBLUE:12582911,DIMGRAY:1768516095,DIMGREY:1768516095,DODGERBLUE:512819199,FIREBRICK:2988581631,FLORALWHITE:4294635775,FORESTGREEN:579543807,FUCHSIA:4278255615,GAINSBORO:3705462015,GHOSTWHITE:4177068031,GOLD:4292280575,GOLDENROD:3668254975,GRAY:2155905279,GREEN:8388863,GREENYELLOW:2919182335,GREY:2155905279,HONEYDEW:4043305215,HOTPINK:4285117695,INDIANRED:3445382399,INDIGO:1258324735,IVORY:4294963455,KHAKI:4041641215,LAVENDER:3873897215,LAVENDERBLUSH:4293981695,LAWNGREEN:2096890111,LEMONCHIFFON:4294626815,LIGHTBLUE:2916673279,LIGHTCORAL:4034953471,LIGHTCYAN:3774873599,LIGHTGOLDENRODYELLOW:4210742015,LIGHTGRAY:3553874943,LIGHTGREEN:2431553791,LIGHTGREY:3553874943,LIGHTPINK:4290167295,LIGHTSALMON:4288707327,LIGHTSEAGREEN:548580095,LIGHTSKYBLUE:2278488831,LIGHTSLATEGRAY:2005441023,LIGHTSLATEGREY:2005441023,LIGHTSTEELBLUE:2965692159,LIGHTYELLOW:4294959359,LIME:16711935,LIMEGREEN:852308735,LINEN:4210091775,MAGENTA:4278255615,MAROON:2147483903,MEDIUMAQUAMARINE:1724754687,MEDIUMBLUE:52735,MEDIUMORCHID:3126187007,MEDIUMPURPLE:2473647103,MEDIUMSEAGREEN:1018393087,MEDIUMSLATEBLUE:2070474495,MEDIUMSPRINGGREEN:16423679,MEDIUMTURQUOISE:1221709055,MEDIUMVIOLETRED:3340076543,MIDNIGHTBLUE:421097727,MINTCREAM:4127193855,MISTYROSE:4293190143,MOCCASIN:4293178879,NAVAJOWHITE:4292783615,NAVY:33023,OLDLACE:4260751103,OLIVE:2155872511,OLIVEDRAB:1804477439,ORANGE:4289003775,ORANGERED:4282712319,ORCHID:3664828159,PALEGOLDENROD:4008225535,PALEGREEN:2566625535,PALETURQUOISE:2951671551,PALEVIOLETRED:3681588223,PAPAYAWHIP:4293907967,PEACHPUFF:4292524543,PERU:3448061951,PINK:4290825215,PLUM:3718307327,POWDERBLUE:2967529215,PURPLE:2147516671,REBECCAPURPLE:1714657791,RED:4278190335,ROSYBROWN:3163525119,ROYALBLUE:1097458175,SADDLEBROWN:2336560127,SALMON:4202722047,SANDYBROWN:4104413439,SEAGREEN:780883967,SEASHELL:4294307583,SIENNA:2689740287,SILVER:3233857791,SKYBLUE:2278484991,SLATEBLUE:1784335871,SLATEGRAY:1887473919,SLATEGREY:1887473919,SNOW:4294638335,SPRINGGREEN:16744447,STEELBLUE:1182971135,TAN:3535047935,TEAL:8421631,THISTLE:3636451583,TOMATO:4284696575,TRANSPARENT:0,TURQUOISE:1088475391,VIOLET:4001558271,WHEAT:4125012991,WHITE:4294967295,WHITESMOKE:4126537215,YELLOW:4294902015,YELLOWGREEN:2597139199},xe={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(t,e){return e.map(function(t){if(Gt(t))switch(t.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},Ce={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Ee=function(t,e){var n=de(t,e[0]),r=e[1];return r&&Jt(r)?{color:n,stop:r}:{color:n,stop:null}},Oe=function(t,e){var n=t[0],r=t[t.length-1];null===n.stop&&(n.stop=ee),null===r.stop&&(r.stop=re);for(var i=[],A=0,o=0;o<t.length;o++){var a=t[o].stop;if(null!==a){var s=Ae(a,e);i.push(s>A?s:A),A=s}else i.push(null)}var l=null;for(o=0;o<i.length;o++){var c=i[o];if(null===c)null===l&&(l=o);else if(null!==l){for(var u=o-l,d=(c-i[l-1])/(u+1),f=1;f<=u;f++)i[l+f-1]=d*f;l=null}}return t.map(function(t,n){return{color:t.color,stop:Math.max(Math.min(1,i[n]/e),0)}})},ke=function(t,e,n){var r="number"==typeof t?t:function(t,e,n){var r=e/2,i=n/2,A=Ae(t[0],e)-r,o=i-Ae(t[1],n);return(Math.atan2(o,A)+2*Math.PI)%(2*Math.PI)}(t,e,n),i=Math.abs(e*Math.sin(r))+Math.abs(n*Math.cos(r)),A=e/2,o=n/2,a=i/2,s=Math.sin(r-Math.PI/2)*a,l=Math.cos(r-Math.PI/2)*a;return[i,A-l,A+l,o-s,o+s]},Fe=function(t,e){return Math.sqrt(t*t+e*e)},Qe=function(t,e,n,r,i){return[[0,0],[0,e],[t,0],[t,e]].reduce(function(t,e){var A=Fe(n-e[0],r-e[1]);return(i?A<t.optimumDistance:A>t.optimumDistance)?{optimumCorner:e,optimumDistance:A}:t},{optimumDistance:i?1/0:-1/0,optimumCorner:null}).optimumCorner},Me=function(t,e){var n=ue(180),r=[];return $t(e).forEach(function(e,i){if(0===i){var A=e[0];if(20===A.type&&-1!==["top","left","right","bottom"].indexOf(A.value))return void(n=ce(e));if(le(A))return void(n=(se(t,A)+ue(270))%ue(360))}var o=Ee(t,e);r.push(o)}),{angle:n,stops:r,type:1}},Ue="closest-side",Se="farthest-side",_e="closest-corner",Ie="farthest-corner",Te="circle",Le="ellipse",Pe="cover",je="contain",He=function(t,e){var n=0,r=3,i=[],A=[];return $t(e).forEach(function(e,o){var a=!0;if(0===o?a=e.reduce(function(t,e){if(Gt(e))switch(e.value){case"center":return A.push(ne),!1;case"top":case"left":return A.push(ee),!1;case"right":case"bottom":return A.push(re),!1}else if(Jt(e)||Zt(e))return A.push(e),!1;return t},a):1===o&&(a=e.reduce(function(t,e){if(Gt(e))switch(e.value){case Te:return n=0,!1;case Le:return n=1,!1;case je:case Ue:return r=0,!1;case Se:return r=1,!1;case _e:return r=2,!1;case Pe:case Ie:return r=3,!1}else if(Zt(e)||Jt(e))return Array.isArray(r)||(r=[]),r.push(e),!1;return t},a)),a){var s=Ee(t,e);i.push(s)}}),{size:r,shape:n,stops:i,position:A,type:2}},Ne=function(t,e){if(22===e.type){var n={url:e.value,type:0};return t.cache.addImage(e.value),n}if(18===e.type){var r=Re[e.name];if(void 0===r)throw new Error('Attempting to parse an unsupported image function "'+e.name+'"');return r(t,e.values)}throw new Error("Unsupported image type "+e.type)};var De,Re={"linear-gradient":function(t,e){var n=ue(180),r=[];return $t(e).forEach(function(e,i){if(0===i){var A=e[0];if(20===A.type&&"to"===A.value)return void(n=ce(e));if(le(A))return void(n=se(t,A))}var o=Ee(t,e);r.push(o)}),{angle:n,stops:r,type:1}},"-moz-linear-gradient":Me,"-ms-linear-gradient":Me,"-o-linear-gradient":Me,"-webkit-linear-gradient":Me,"radial-gradient":function(t,e){var n=0,r=3,i=[],A=[];return $t(e).forEach(function(e,o){var a=!0;if(0===o){var s=!1;a=e.reduce(function(t,e){if(s)if(Gt(e))switch(e.value){case"center":return A.push(ne),t;case"top":case"left":return A.push(ee),t;case"right":case"bottom":return A.push(re),t}else(Jt(e)||Zt(e))&&A.push(e);else if(Gt(e))switch(e.value){case Te:return n=0,!1;case Le:return n=1,!1;case"at":return s=!0,!1;case Ue:return r=0,!1;case Pe:case Se:return r=1,!1;case je:case _e:return r=2,!1;case Ie:return r=3,!1}else if(Zt(e)||Jt(e))return Array.isArray(r)||(r=[]),r.push(e),!1;return t},a)}if(a){var l=Ee(t,e);i.push(l)}}),{size:r,shape:n,stops:i,position:A,type:2}},"-moz-radial-gradient":He,"-ms-radial-gradient":He,"-o-radial-gradient":He,"-webkit-radial-gradient":He,"-webkit-gradient":function(t,e){var n=ue(180),r=[],i=1;return $t(e).forEach(function(e,n){var A=e[0];if(0===n){if(Gt(A)&&"linear"===A.value)return void(i=1);if(Gt(A)&&"radial"===A.value)return void(i=2)}if(18===A.type)if("from"===A.name){var o=de(t,A.values[0]);r.push({stop:ee,color:o})}else if("to"===A.name)o=de(t,A.values[0]),r.push({stop:re,color:o});else if("color-stop"===A.name){var a=A.values.filter(Yt);if(2===a.length){o=de(t,a[1]);var s=a[0];zt(s)&&r.push({stop:{type:16,number:100*s.number,flags:s.flags},color:o})}}}),1===i?{angle:(n+ue(180))%ue(360),stops:r,type:i}:{size:3,shape:0,stops:r,position:[],type:i}}},Ke={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(t,e){if(0===e.length)return[];var n=e[0];return 20===n.type&&"none"===n.value?[]:e.filter(function(t){return Yt(t)&&function(t){return!(20===t.type&&"none"===t.value||18===t.type&&!Re[t.name])}(t)}).map(function(e){return Ne(t,e)})}},ze={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(t,e){return e.map(function(t){if(Gt(t))switch(t.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},Ge={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(t,e){return $t(e).map(function(t){return t.filter(Jt)}).map(te)}},Ve={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(t,e){return $t(e).map(function(t){return t.filter(Gt).map(function(t){return t.value}).join(" ")}).map(We)}},We=function(t){switch(t){case"no-repeat":return 1;case"repeat-x":case"repeat no-repeat":return 2;case"repeat-y":case"no-repeat repeat":return 3;default:return 0}};!function(t){t.AUTO="auto",t.CONTAIN="contain",t.COVER="cover"}(De||(De={}));var Xe,Ye={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(t,e){return $t(e).map(function(t){return t.filter($e)})}},$e=function(t){return Gt(t)||Jt(t)},qe=function(t){return{name:"border-"+t+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},Ze=qe("top"),Je=qe("right"),tn=qe("bottom"),en=qe("left"),nn=function(t){return{name:"border-radius-"+t,initialValue:"0 0",prefix:!1,type:1,parse:function(t,e){return te(e.filter(Jt))}}},rn=nn("top-left"),An=nn("top-right"),on=nn("bottom-right"),an=nn("bottom-left"),sn=function(t){return{name:"border-"+t+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(t,e){switch(e){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},ln=sn("top"),cn=sn("right"),un=sn("bottom"),dn=sn("left"),fn=function(t){return{name:"border-"+t+"-width",initialValue:"0",type:0,prefix:!1,parse:function(t,e){return Kt(e)?e.number:0}}},hn=fn("top"),pn=fn("right"),gn=fn("bottom"),mn=fn("left"),yn={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},vn={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(t,e){return"rtl"===e?1:0}},bn={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(t,e){return e.filter(Gt).reduce(function(t,e){return t|wn(e.value)},0)}},wn=function(t){switch(t){case"block":case"-webkit-box":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0},Bn={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(t,e){switch(e){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},xn={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(t,e){return 20===e.type&&"normal"===e.value?0:17===e.type||15===e.type?e.number:0}};!function(t){t.NORMAL="normal",t.STRICT="strict"}(Xe||(Xe={}));var Cn,En={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(t,e){return"strict"===e?Xe.STRICT:Xe.NORMAL}},On={name:"line-height",initialValue:"normal",prefix:!1,type:4},kn=function(t,e){return Gt(t)&&"normal"===t.value?1.2*e:17===t.type?e*t.number:Jt(t)?Ae(t,e):e},Fn={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(t,e){return 20===e.type&&"none"===e.value?null:Ne(t,e)}},Qn={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(t,e){return"inside"===e?0:1}},Mn={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(t,e){switch(e){case"disc":return 0;case"circle":return 1;case"square":return 2;case"decimal":return 3;case"cjk-decimal":return 4;case"decimal-leading-zero":return 5;case"lower-roman":return 6;case"upper-roman":return 7;case"lower-greek":return 8;case"lower-alpha":return 9;case"upper-alpha":return 10;case"arabic-indic":return 11;case"armenian":return 12;case"bengali":return 13;case"cambodian":return 14;case"cjk-earthly-branch":return 15;case"cjk-heavenly-stem":return 16;case"cjk-ideographic":return 17;case"devanagari":return 18;case"ethiopic-numeric":return 19;case"georgian":return 20;case"gujarati":return 21;case"gurmukhi":case"hebrew":return 22;case"hiragana":return 23;case"hiragana-iroha":return 24;case"japanese-formal":return 25;case"japanese-informal":return 26;case"kannada":return 27;case"katakana":return 28;case"katakana-iroha":return 29;case"khmer":return 30;case"korean-hangul-formal":return 31;case"korean-hanja-formal":return 32;case"korean-hanja-informal":return 33;case"lao":return 34;case"lower-armenian":return 35;case"malayalam":return 36;case"mongolian":return 37;case"myanmar":return 38;case"oriya":return 39;case"persian":return 40;case"simp-chinese-formal":return 41;case"simp-chinese-informal":return 42;case"tamil":return 43;case"telugu":return 44;case"thai":return 45;case"tibetan":return 46;case"trad-chinese-formal":return 47;case"trad-chinese-informal":return 48;case"upper-armenian":return 49;case"disclosure-open":return 50;case"disclosure-closed":return 51;default:return-1}}},Un=function(t){return{name:"margin-"+t,initialValue:"0",prefix:!1,type:4}},Sn=Un("top"),_n=Un("right"),In=Un("bottom"),Tn=Un("left"),Ln={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(t,e){return e.filter(Gt).map(function(t){switch(t.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;default:return 0}})}},Pn={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(t,e){return"break-word"===e?"break-word":"normal"}},jn=function(t){return{name:"padding-"+t,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},Hn=jn("top"),Nn=jn("right"),Dn=jn("bottom"),Rn=jn("left"),Kn={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(t,e){switch(e){case"right":return 2;case"center":case"justify":return 1;default:return 0}}},zn={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(t,e){switch(e){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},Gn={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(t,e){return 1===e.length&&Wt(e[0],"none")?[]:$t(e).map(function(e){for(var n={color:Be.TRANSPARENT,offsetX:ee,offsetY:ee,blur:ee},r=0,i=0;i<e.length;i++){var A=e[i];Zt(A)?(0===r?n.offsetX=A:1===r?n.offsetY=A:n.blur=A,r++):n.color=de(t,A)}return n})}},Vn={name:"text-transform",initialValue:"none",prefix:!1,type:2,parse:function(t,e){switch(e){case"uppercase":return 2;case"lowercase":return 1;case"capitalize":return 3}return 0}},Wn={name:"transform",initialValue:"none",prefix:!0,type:0,parse:function(t,e){if(20===e.type&&"none"===e.value)return null;if(18===e.type){var n=Xn[e.name];if(void 0===n)throw new Error('Attempting to parse an unsupported transform function "'+e.name+'"');return n(e.values)}return null}},Xn={matrix:function(t){var e=t.filter(function(t){return 17===t.type}).map(function(t){return t.number});return 6===e.length?e:null},matrix3d:function(t){var e=t.filter(function(t){return 17===t.type}).map(function(t){return t.number});return 16===e.length?[e[0],e[1],e[4],e[5],e[12],e[13]]:null}},Yn={type:16,number:50,flags:4},$n=[Yn,Yn],qn={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(t,e){var n=e.filter(Jt);return 2!==n.length?$n:[n[0],n[1]]}},Zn={name:"visible",initialValue:"none",prefix:!1,type:2,parse:function(t,e){switch(e){case"hidden":return 1;case"collapse":return 2;default:return 0}}};!function(t){t.NORMAL="normal",t.BREAK_ALL="break-all",t.KEEP_ALL="keep-all"}(Cn||(Cn={}));for(var Jn={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(t,e){switch(e){case"break-all":return Cn.BREAK_ALL;case"keep-all":return Cn.KEEP_ALL;default:return Cn.NORMAL}}},tr={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(t,e){if(20===e.type)return{auto:!0,order:0};if(zt(e))return{auto:!1,order:e.number};throw new Error("Invalid z-index number parsed")}},er={name:"time",parse:function(t,e){if(15===e.type)switch(e.unit.toLowerCase()){case"s":return 1e3*e.number;case"ms":return e.number}throw new Error("Unsupported time type")}},nr={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(t,e){return zt(e)?e.number:1}},rr={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},ir={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(t,e){return e.filter(Gt).map(function(t){switch(t.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0}).filter(function(t){return 0!==t})}},Ar={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(t,e){var n=[],r=[];return e.forEach(function(t){switch(t.type){case 20:case 0:n.push(t.value);break;case 17:n.push(t.number.toString());break;case 4:r.push(n.join(" ")),n.length=0}}),n.length&&r.push(n.join(" ")),r.map(function(t){return-1===t.indexOf(" ")?t:"'"+t+"'"})}},or={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},ar={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(t,e){return zt(e)?e.number:Gt(e)&&"bold"===e.value?700:400}},sr={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(t,e){return e.filter(Gt).map(function(t){return t.value})}},lr={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:function(t,e){switch(e){case"oblique":return"oblique";case"italic":return"italic";default:return"normal"}}},cr=function(t,e){return 0!==(t&e)},ur={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(t,e){if(0===e.length)return[];var n=e[0];return 20===n.type&&"none"===n.value?[]:e}},dr={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(t,e){if(0===e.length)return null;var n=e[0];if(20===n.type&&"none"===n.value)return null;for(var r=[],i=e.filter(Xt),A=0;A<i.length;A++){var o=i[A],a=i[A+1];if(20===o.type){var s=a&&zt(a)?a.number:1;r.push({counter:o.value,increment:s})}}return r}},fr={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:function(t,e){if(0===e.length)return[];for(var n=[],r=e.filter(Xt),i=0;i<r.length;i++){var A=r[i],o=r[i+1];if(Gt(A)&&"none"!==A.value){var a=o&&zt(o)?o.number:0;n.push({counter:A.value,reset:a})}}return n}},hr={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(t,e){return e.filter(Kt).map(function(e){return er.parse(t,e)})}},pr={name:"quotes",initialValue:"none",prefix:!0,type:1,parse:function(t,e){if(0===e.length)return null;var n=e[0];if(20===n.type&&"none"===n.value)return null;var r=[],i=e.filter(Vt);if(i.length%2!=0)return null;for(var A=0;A<i.length;A+=2)r.push({open:i[A].value,close:i[A+1].value});return r}},gr=function(t,e,n){if(!t)return"";var r=t[Math.min(e,t.length-1)];return r?n?r.open:r.close:""},mr={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:function(t,e){return 1===e.length&&Wt(e[0],"none")?[]:$t(e).map(function(e){for(var n={color:255,offsetX:ee,offsetY:ee,blur:ee,spread:ee,inset:!1},r=0,i=0;i<e.length;i++){var A=e[i];Wt(A,"inset")?n.inset=!0:Zt(A)?(0===r?n.offsetX=A:1===r?n.offsetY=A:2===r?n.blur=A:n.spread=A,r++):n.color=de(t,A)}return n})}},yr={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:function(t,e){var n=[];return e.filter(Gt).forEach(function(t){switch(t.value){case"stroke":n.push(1);break;case"fill":n.push(0);break;case"markers":n.push(2)}}),[0,1,2].forEach(function(t){-1===n.indexOf(t)&&n.push(t)}),n}},vr={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},br={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:function(t,e){return Kt(e)?e.number:0}},wr=function(){function t(t,e){var n,r;this.animationDuration=Cr(t,hr,e.animationDuration),this.backgroundClip=Cr(t,xe,e.backgroundClip),this.backgroundColor=Cr(t,Ce,e.backgroundColor),this.backgroundImage=Cr(t,Ke,e.backgroundImage),this.backgroundOrigin=Cr(t,ze,e.backgroundOrigin),this.backgroundPosition=Cr(t,Ge,e.backgroundPosition),this.backgroundRepeat=Cr(t,Ve,e.backgroundRepeat),this.backgroundSize=Cr(t,Ye,e.backgroundSize),this.borderTopColor=Cr(t,Ze,e.borderTopColor),this.borderRightColor=Cr(t,Je,e.borderRightColor),this.borderBottomColor=Cr(t,tn,e.borderBottomColor),this.borderLeftColor=Cr(t,en,e.borderLeftColor),this.borderTopLeftRadius=Cr(t,rn,e.borderTopLeftRadius),this.borderTopRightRadius=Cr(t,An,e.borderTopRightRadius),this.borderBottomRightRadius=Cr(t,on,e.borderBottomRightRadius),this.borderBottomLeftRadius=Cr(t,an,e.borderBottomLeftRadius),this.borderTopStyle=Cr(t,ln,e.borderTopStyle),this.borderRightStyle=Cr(t,cn,e.borderRightStyle),this.borderBottomStyle=Cr(t,un,e.borderBottomStyle),this.borderLeftStyle=Cr(t,dn,e.borderLeftStyle),this.borderTopWidth=Cr(t,hn,e.borderTopWidth),this.borderRightWidth=Cr(t,pn,e.borderRightWidth),this.borderBottomWidth=Cr(t,gn,e.borderBottomWidth),this.borderLeftWidth=Cr(t,mn,e.borderLeftWidth),this.boxShadow=Cr(t,mr,e.boxShadow),this.color=Cr(t,yn,e.color),this.direction=Cr(t,vn,e.direction),this.display=Cr(t,bn,e.display),this.float=Cr(t,Bn,e.cssFloat),this.fontFamily=Cr(t,Ar,e.fontFamily),this.fontSize=Cr(t,or,e.fontSize),this.fontStyle=Cr(t,lr,e.fontStyle),this.fontVariant=Cr(t,sr,e.fontVariant),this.fontWeight=Cr(t,ar,e.fontWeight),this.letterSpacing=Cr(t,xn,e.letterSpacing),this.lineBreak=Cr(t,En,e.lineBreak),this.lineHeight=Cr(t,On,e.lineHeight),this.listStyleImage=Cr(t,Fn,e.listStyleImage),this.listStylePosition=Cr(t,Qn,e.listStylePosition),this.listStyleType=Cr(t,Mn,e.listStyleType),this.marginTop=Cr(t,Sn,e.marginTop),this.marginRight=Cr(t,_n,e.marginRight),this.marginBottom=Cr(t,In,e.marginBottom),this.marginLeft=Cr(t,Tn,e.marginLeft),this.opacity=Cr(t,nr,e.opacity);var i=Cr(t,Ln,e.overflow);this.overflowX=i[0],this.overflowY=i[i.length>1?1:0],this.overflowWrap=Cr(t,Pn,e.overflowWrap),this.paddingTop=Cr(t,Hn,e.paddingTop),this.paddingRight=Cr(t,Nn,e.paddingRight),this.paddingBottom=Cr(t,Dn,e.paddingBottom),this.paddingLeft=Cr(t,Rn,e.paddingLeft),this.paintOrder=Cr(t,yr,e.paintOrder),this.position=Cr(t,zn,e.position),this.textAlign=Cr(t,Kn,e.textAlign),this.textDecorationColor=Cr(t,rr,null!==(n=e.textDecorationColor)&&void 0!==n?n:e.color),this.textDecorationLine=Cr(t,ir,null!==(r=e.textDecorationLine)&&void 0!==r?r:e.textDecoration),this.textShadow=Cr(t,Gn,e.textShadow),this.textTransform=Cr(t,Vn,e.textTransform),this.transform=Cr(t,Wn,e.transform),this.transformOrigin=Cr(t,qn,e.transformOrigin),this.visibility=Cr(t,Zn,e.visibility),this.webkitTextStrokeColor=Cr(t,vr,e.webkitTextStrokeColor),this.webkitTextStrokeWidth=Cr(t,br,e.webkitTextStrokeWidth),this.wordBreak=Cr(t,Jn,e.wordBreak),this.zIndex=Cr(t,tr,e.zIndex)}return t.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&0===this.visibility},t.prototype.isTransparent=function(){return fe(this.backgroundColor)},t.prototype.isTransformed=function(){return null!==this.transform},t.prototype.isPositioned=function(){return 0!==this.position},t.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},t.prototype.isFloating=function(){return 0!==this.float},t.prototype.isInlineLevel=function(){return cr(this.display,4)||cr(this.display,33554432)||cr(this.display,268435456)||cr(this.display,536870912)||cr(this.display,67108864)||cr(this.display,134217728)},t}(),Br=function(t,e){this.content=Cr(t,ur,e.content),this.quotes=Cr(t,pr,e.quotes)},xr=function(t,e){this.counterIncrement=Cr(t,dr,e.counterIncrement),this.counterReset=Cr(t,fr,e.counterReset)},Cr=function(t,e,n){var r=new Dt,i=null!=n?n.toString():e.initialValue;r.write(i);var A=new Rt(r.read());switch(e.type){case 2:var o=A.parseComponentValue();return e.parse(t,Gt(o)?o.value:e.initialValue);case 0:return e.parse(t,A.parseComponentValue());case 1:return e.parse(t,A.parseComponentValues());case 4:return A.parseComponentValue();case 3:switch(e.format){case"angle":return se(t,A.parseComponentValue());case"color":return de(t,A.parseComponentValue());case"image":return Ne(t,A.parseComponentValue());case"length":var a=A.parseComponentValue();return Zt(a)?a:ee;case"length-percentage":var s=A.parseComponentValue();return Jt(s)?s:ee;case"time":return er.parse(t,A.parseComponentValue())}}},Er=function(t,e){var n=function(t){switch(t.getAttribute("data-html2canvas-debug")){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}}(t);return 1===n||e===n},Or=function(t,e){this.context=t,this.textNodes=[],this.elements=[],this.flags=0,Er(e,3),this.styles=new wr(t,window.getComputedStyle(e,null)),Mi(e)&&(this.styles.animationDuration.some(function(t){return t>0})&&(e.style.animationDuration="0s"),null!==this.styles.transform&&(e.style.transform="none")),this.bounds=a(this.context,e),Er(e,4)&&(this.flags|=16)},kr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Fr="undefined"==typeof Uint8Array?[]:new Uint8Array(256),Qr=0;Qr<64;Qr++)Fr[kr.charCodeAt(Qr)]=Qr;for(var Mr=function(t,e,n){return t.slice?t.slice(e,n):new Uint16Array(Array.prototype.slice.call(t,e,n))},Ur=function(){function t(t,e,n,r,i,A){this.initialValue=t,this.errorValue=e,this.highStart=n,this.highValueIndex=r,this.index=i,this.data=A}return t.prototype.get=function(t){var e;if(t>=0){if(t<55296||t>56319&&t<=65535)return this.data[e=((e=this.index[t>>5])<<2)+(31&t)];if(t<=65535)return this.data[e=((e=this.index[2048+(t-55296>>5)])<<2)+(31&t)];if(t<this.highStart)return e=this.index[e=2080+(t>>11)],this.data[e=((e=this.index[e+=t>>5&63])<<2)+(31&t)];if(t<=1114111)return this.data[this.highValueIndex]}return this.errorValue},t}(),Sr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",_r="undefined"==typeof Uint8Array?[]:new Uint8Array(256),Ir=0;Ir<64;Ir++)_r[Sr.charCodeAt(Ir)]=Ir;var Tr,Lr=8,Pr=9,jr=11,Hr=12,Nr=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(String.fromCodePoint)return String.fromCodePoint.apply(String,t);var n=t.length;if(!n)return"";for(var r=[],i=-1,A="";++i<n;){var o=t[i];o<=65535?r.push(o):r.push(55296+((o-=65536)>>10),o%1024+56320),(i+1===n||r.length>16384)&&(A+=String.fromCharCode.apply(String,r),r.length=0)}return A},Dr=function(t){var e,n,r,i=function(t){var e,n,r,i,A,o=.75*t.length,a=t.length,s=0;"="===t[t.length-1]&&(o--,"="===t[t.length-2]&&o--);var l="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array&&void 0!==Uint8Array.prototype.slice?new ArrayBuffer(o):new Array(o),c=Array.isArray(l)?l:new Uint8Array(l);for(e=0;e<a;e+=4)n=Fr[t.charCodeAt(e)],r=Fr[t.charCodeAt(e+1)],i=Fr[t.charCodeAt(e+2)],A=Fr[t.charCodeAt(e+3)],c[s++]=n<<2|r>>4,c[s++]=(15&r)<<4|i>>2,c[s++]=(3&i)<<6|63&A;return l}(t),A=Array.isArray(i)?function(t){for(var e=t.length,n=[],r=0;r<e;r+=4)n.push(t[r+3]<<24|t[r+2]<<16|t[r+1]<<8|t[r]);return n}(i):new Uint32Array(i),o=Array.isArray(i)?function(t){for(var e=t.length,n=[],r=0;r<e;r+=2)n.push(t[r+1]<<8|t[r]);return n}(i):new Uint16Array(i),a=Mr(o,12,A[4]/2),s=2===A[5]?Mr(o,(24+A[4])/2):(e=A,n=Math.ceil((24+A[4])/4),e.slice?e.slice(n,r):new Uint32Array(Array.prototype.slice.call(e,n,r)));return new Ur(A[0],A[1],A[2],A[3],a,s)}("AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6wsrDGUMpQzlDJUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAfAKAAuZA64AtwCJALoC6ADwAAgAuACgA/oEpgO6AqsD+AAIAAgAswMIAAgACAAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAQADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUAAAAFAAUAAAAFAAUAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAQAAAAUABQAFAAUABQAFAAAAAAAFAAUAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAFAAUAAQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAAABwAHAAcAAAAHAAcABwAFAAEAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAcABwAFAAUAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAQABAAAAAAAAAAAAAAAFAAUABQAFAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAHAAcAAAAHAAcAAAAAAAUABQAHAAUAAQAHAAEABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwABAAUABQAFAAUAAAAAAAAAAAAAAAEAAQABAAEAAQABAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABQANAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAABQAHAAUABQAFAAAAAAAAAAcABQAFAAUABQAFAAQABAAEAAQABAAEAAQABAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUAAAAFAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAUAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAcABwAFAAcABwAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUABwAHAAUABQAFAAUAAAAAAAcABwAAAAAABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAAAAAAAAAAABQAFAAAAAAAFAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAFAAUABQAFAAUAAAAFAAUABwAAAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABwAFAAUABQAFAAAAAAAHAAcAAAAAAAcABwAFAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAAAAAAAAAHAAcABwAAAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAUABQAFAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAHAAcABQAHAAcAAAAFAAcABwAAAAcABwAFAAUAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAFAAcABwAFAAUABQAAAAUAAAAHAAcABwAHAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAHAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUAAAAFAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAUAAAAFAAUAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABwAFAAUABQAFAAUABQAAAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABQAFAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAFAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAHAAUABQAFAAUABQAFAAUABwAHAAcABwAHAAcABwAHAAUABwAHAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABwAHAAcABwAFAAUABwAHAAcAAAAAAAAAAAAHAAcABQAHAAcABwAHAAcABwAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAUABQAFAAUABQAFAAUAAAAFAAAABQAAAAAABQAFAAUABQAFAAUABQAFAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAUABQAFAAUABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABwAFAAcABwAHAAcABwAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAUABQAFAAUABwAHAAUABQAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABQAFAAcABwAHAAUABwAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAcABQAFAAUABQAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAAAAAABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAAAAAAAAAFAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAUABQAHAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAFAAUABQAFAAcABwAFAAUABwAHAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAcABwAFAAUABwAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABQAAAAAABQAFAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAcABwAAAAAAAAAAAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAcABwAFAAcABwAAAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAFAAUABQAAAAUABQAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABwAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAHAAcABQAHAAUABQAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAAABwAHAAAAAAAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAFAAUABwAFAAcABwAFAAcABQAFAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAAAAAABwAHAAcABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAFAAcABwAFAAUABQAFAAUABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAUABQAFAAcABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABQAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAAAAAAFAAUABwAHAAcABwAFAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAHAAUABQAFAAUABQAFAAUABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAABQAAAAUABQAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAHAAcAAAAFAAUAAAAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABQAFAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAABQAFAAUABQAFAAUABQAAAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAFAAUABQAFAAUADgAOAA4ADgAOAA4ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAMAAwADAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAAAAAAAAAAAAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAAAAAAAAAAAAsADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwACwAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAADgAOAA4AAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAAAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4AAAAOAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAAAAAAAAAAAA4AAAAOAAAAAAAAAAAADgAOAA4AAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA="),Rr="×",Kr=function(t){return Dr.get(t)},zr=function(t,e,n){var r=n-2,i=e[r],A=e[n-1],o=e[n];if(2===A&&3===o)return Rr;if(2===A||3===A||4===A)return"÷";if(2===o||3===o||4===o)return"÷";if(A===Lr&&-1!==[Lr,Pr,jr,Hr].indexOf(o))return Rr;if(!(A!==jr&&A!==Pr||o!==Pr&&10!==o))return Rr;if((A===Hr||10===A)&&10===o)return Rr;if(13===o||5===o)return Rr;if(7===o)return Rr;if(1===A)return Rr;if(13===A&&14===o){for(;5===i;)i=e[--r];if(14===i)return Rr}if(15===A&&15===o){for(var a=0;15===i;)a++,i=e[--r];if(a%2==0)return Rr}return"÷"},Gr=function(t){var e=function(t){for(var e=[],n=0,r=t.length;n<r;){var i=t.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){var A=t.charCodeAt(n++);56320==(64512&A)?e.push(((1023&i)<<10)+(1023&A)+65536):(e.push(i),n--)}else e.push(i)}return e}(t),n=e.length,r=0,i=0,A=e.map(Kr);return{next:function(){if(r>=n)return{done:!0,value:null};for(var t=Rr;r<n&&(t=zr(0,A,++r))===Rr;);if(t!==Rr||r===n){var o=Nr.apply(null,e.slice(i,r));return i=r,{value:o,done:!1}}return{done:!0,value:null}}}},Vr=function(t){return 0===t[0]&&255===t[1]&&0===t[2]&&255===t[3]},Wr=function(t,e,n,r,i){var A="http://www.w3.org/2000/svg",o=document.createElementNS(A,"svg"),a=document.createElementNS(A,"foreignObject");return o.setAttributeNS(null,"width",t.toString()),o.setAttributeNS(null,"height",e.toString()),a.setAttributeNS(null,"width","100%"),a.setAttributeNS(null,"height","100%"),a.setAttributeNS(null,"x",n.toString()),a.setAttributeNS(null,"y",r.toString()),a.setAttributeNS(null,"externalResourcesRequired","true"),o.appendChild(a),a.appendChild(i),o},Xr=function(t){return new Promise(function(e,n){var r=new Image;r.onload=function(){return e(r)},r.onerror=n,r.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent((new XMLSerializer).serializeToString(t))})},Yr={get SUPPORT_RANGE_BOUNDS(){var t=function(t){if(t.createRange){var e=t.createRange();if(e.getBoundingClientRect){var n=t.createElement("boundtest");n.style.height="123px",n.style.display="block",t.body.appendChild(n),e.selectNode(n);var r=e.getBoundingClientRect(),i=Math.round(r.height);if(t.body.removeChild(n),123===i)return!0}}return!1}(document);return Object.defineProperty(Yr,"SUPPORT_RANGE_BOUNDS",{value:t}),t},get SUPPORT_WORD_BREAKING(){var t=Yr.SUPPORT_RANGE_BOUNDS&&function(t){var e=t.createElement("boundtest");e.style.width="50px",e.style.display="block",e.style.fontSize="12px",e.style.letterSpacing="0px",e.style.wordSpacing="0px",t.body.appendChild(e);var n=t.createRange();e.innerHTML="function"==typeof"".repeat?"👨".repeat(10):"";var r=e.firstChild,i=s(r.data).map(function(t){return l(t)}),A=0,o={},a=i.every(function(t,e){n.setStart(r,A),n.setEnd(r,A+t.length);var i=n.getBoundingClientRect();A+=t.length;var a=i.x>o.x||i.y>o.y;return o=i,0===e||a});return t.body.removeChild(e),a}(document);return Object.defineProperty(Yr,"SUPPORT_WORD_BREAKING",{value:t}),t},get SUPPORT_SVG_DRAWING(){var t=function(t){var e=new Image,n=t.createElement("canvas"),r=n.getContext("2d");if(!r)return!1;e.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{r.drawImage(e,0,0),n.toDataURL()}catch(t){return!1}return!0}(document);return Object.defineProperty(Yr,"SUPPORT_SVG_DRAWING",{value:t}),t},get SUPPORT_FOREIGNOBJECT_DRAWING(){var t="function"==typeof Array.from&&"function"==typeof window.fetch?function(t){var e=t.createElement("canvas"),n=100;e.width=n,e.height=n;var r=e.getContext("2d");if(!r)return Promise.reject(!1);r.fillStyle="rgb(0, 255, 0)",r.fillRect(0,0,n,n);var i=new Image,A=e.toDataURL();i.src=A;var o=Wr(n,n,0,0,i);return r.fillStyle="red",r.fillRect(0,0,n,n),Xr(o).then(function(e){r.drawImage(e,0,0);var i=r.getImageData(0,0,n,n).data;r.fillStyle="red",r.fillRect(0,0,n,n);var o=t.createElement("div");return o.style.backgroundImage="url("+A+")",o.style.height=n+"px",Vr(i)?Xr(Wr(n,n,0,0,o)):Promise.reject(!1)}).then(function(t){return r.drawImage(t,0,0),Vr(r.getImageData(0,0,n,n).data)}).catch(function(){return!1})}(document):Promise.resolve(!1);return Object.defineProperty(Yr,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:t}),t},get SUPPORT_CORS_IMAGES(){var t=void 0!==(new Image).crossOrigin;return Object.defineProperty(Yr,"SUPPORT_CORS_IMAGES",{value:t}),t},get SUPPORT_RESPONSE_TYPE(){var t="string"==typeof(new XMLHttpRequest).responseType;return Object.defineProperty(Yr,"SUPPORT_RESPONSE_TYPE",{value:t}),t},get SUPPORT_CORS_XHR(){var t="withCredentials"in new XMLHttpRequest;return Object.defineProperty(Yr,"SUPPORT_CORS_XHR",{value:t}),t},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var t=!("undefined"==typeof Intl||!Intl.Segmenter);return Object.defineProperty(Yr,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:t}),t}},$r=function(t,e){this.text=t,this.bounds=e},qr=function(t,e){var n=e.ownerDocument;if(n){var r=n.createElement("html2canvaswrapper");r.appendChild(e.cloneNode(!0));var i=e.parentNode;if(i){i.replaceChild(r,e);var A=a(t,r);return r.firstChild&&i.replaceChild(r.firstChild,r),A}}return o.EMPTY},Zr=function(t,e,n){var r=t.ownerDocument;if(!r)throw new Error("Node has no owner document");var i=r.createRange();return i.setStart(t,e),i.setEnd(t,e+n),i},Jr=function(t){if(Yr.SUPPORT_NATIVE_TEXT_SEGMENTATION){var e=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(e.segment(t)).map(function(t){return t.segment})}return function(t){for(var e,n=Gr(t),r=[];!(e=n.next()).done;)e.value&&r.push(e.value.slice());return r}(t)},ti=function(t,e){return 0!==e.letterSpacing?Jr(t):function(t,e){if(Yr.SUPPORT_NATIVE_TEXT_SEGMENTATION){var n=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(n.segment(t)).map(function(t){return t.segment})}return ni(t,e)}(t,e)},ei=[32,160,4961,65792,65793,4153,4241],ni=function(t,e){for(var n,r=function(t,e){var n=s(t),r=At(n,e),i=r[0],A=r[1],o=r[2],a=n.length,l=0,c=0;return{next:function(){if(c>=a)return{done:!0,value:null};for(var t=V;c<a&&(t=it(n,A,i,++c,o))===V;);if(t!==V||c===a){var e=new ot(n,t,l,c);return l=c,{value:e,done:!1}}return{done:!0,value:null}}}}(t,{lineBreak:e.lineBreak,wordBreak:"break-word"===e.overflowWrap?"break-word":e.wordBreak}),i=[],A=function(){if(n.value){var t=n.value.slice(),e=s(t),r="";e.forEach(function(t){-1===ei.indexOf(t)?r+=l(t):(r.length&&i.push(r),i.push(l(t)),r="")}),r.length&&i.push(r)}};!(n=r.next()).done;)A();return i},ri=function(t,e,n){this.text=ii(e.data,n.textTransform),this.textBounds=function(t,e,n,r){var i=ti(e,n),A=[],a=0;return i.forEach(function(e){if(n.textDecorationLine.length||e.trim().length>0)if(Yr.SUPPORT_RANGE_BOUNDS){var i=Zr(r,a,e.length).getClientRects();if(i.length>1){var s=Jr(e),l=0;s.forEach(function(e){A.push(new $r(e,o.fromDOMRectList(t,Zr(r,l+a,e.length).getClientRects()))),l+=e.length})}else A.push(new $r(e,o.fromDOMRectList(t,i)))}else{var c=r.splitText(e.length);A.push(new $r(e,qr(t,r))),r=c}else Yr.SUPPORT_RANGE_BOUNDS||(r=r.splitText(e.length));a+=e.length}),A}(t,this.text,n,e)},ii=function(t,e){switch(e){case 1:return t.toLowerCase();case 3:return t.replace(Ai,oi);case 2:return t.toUpperCase();default:return t}},Ai=/(^|\s|:|-|\(|\))([a-z])/g,oi=function(t,e,n){return t.length>0?e+n.toUpperCase():t},ai=function(t){function n(e,n){var r=t.call(this,e,n)||this;return r.src=n.currentSrc||n.src,r.intrinsicWidth=n.naturalWidth,r.intrinsicHeight=n.naturalHeight,r.context.cache.addImage(r.src),r}return e(n,t),n}(Or),si=function(t){function n(e,n){var r=t.call(this,e,n)||this;return r.canvas=n,r.intrinsicWidth=n.width,r.intrinsicHeight=n.height,r}return e(n,t),n}(Or),li=function(t){function n(e,n){var r=t.call(this,e,n)||this,i=new XMLSerializer,A=a(e,n);return n.setAttribute("width",A.width+"px"),n.setAttribute("height",A.height+"px"),r.svg="data:image/svg+xml,"+encodeURIComponent(i.serializeToString(n)),r.intrinsicWidth=n.width.baseVal.value,r.intrinsicHeight=n.height.baseVal.value,r.context.cache.addImage(r.svg),r}return e(n,t),n}(Or),ci=function(t){function n(e,n){var r=t.call(this,e,n)||this;return r.value=n.value,r}return e(n,t),n}(Or),ui=function(t){function n(e,n){var r=t.call(this,e,n)||this;return r.start=n.start,r.reversed="boolean"==typeof n.reversed&&!0===n.reversed,r}return e(n,t),n}(Or),di=[{type:15,flags:0,unit:"px",number:3}],fi=[{type:16,flags:0,number:50}],hi="checkbox",pi="radio",gi="password",mi=707406591,yi=function(t){function n(e,n){var r,i,A,a=t.call(this,e,n)||this;switch(a.type=n.type.toLowerCase(),a.checked=n.checked,a.value=0===(A=(i=n).type===gi?new Array(i.value.length+1).join("•"):i.value).length?i.placeholder||"":A,a.type!==hi&&a.type!==pi||(a.styles.backgroundColor=3739148031,a.styles.borderTopColor=a.styles.borderRightColor=a.styles.borderBottomColor=a.styles.borderLeftColor=2779096575,a.styles.borderTopWidth=a.styles.borderRightWidth=a.styles.borderBottomWidth=a.styles.borderLeftWidth=1,a.styles.borderTopStyle=a.styles.borderRightStyle=a.styles.borderBottomStyle=a.styles.borderLeftStyle=1,a.styles.backgroundClip=[0],a.styles.backgroundOrigin=[0],a.bounds=(r=a.bounds).width>r.height?new o(r.left+(r.width-r.height)/2,r.top,r.height,r.height):r.width<r.height?new o(r.left,r.top+(r.height-r.width)/2,r.width,r.width):r),a.type){case hi:a.styles.borderTopRightRadius=a.styles.borderTopLeftRadius=a.styles.borderBottomRightRadius=a.styles.borderBottomLeftRadius=di;break;case pi:a.styles.borderTopRightRadius=a.styles.borderTopLeftRadius=a.styles.borderBottomRightRadius=a.styles.borderBottomLeftRadius=fi}return a}return e(n,t),n}(Or),vi=function(t){function n(e,n){var r=t.call(this,e,n)||this,i=n.options[n.selectedIndex||0];return r.value=i&&i.text||"",r}return e(n,t),n}(Or),bi=function(t){function n(e,n){var r=t.call(this,e,n)||this;return r.value=n.value,r}return e(n,t),n}(Or),wi=function(t){function n(e,n){var r=t.call(this,e,n)||this;r.src=n.src,r.width=parseInt(n.width,10)||0,r.height=parseInt(n.height,10)||0,r.backgroundColor=r.styles.backgroundColor;try{if(n.contentWindow&&n.contentWindow.document&&n.contentWindow.document.documentElement){r.tree=Ei(e,n.contentWindow.document.documentElement);var i=n.contentWindow.document.documentElement?we(e,getComputedStyle(n.contentWindow.document.documentElement).backgroundColor):Be.TRANSPARENT,A=n.contentWindow.document.body?we(e,getComputedStyle(n.contentWindow.document.body).backgroundColor):Be.TRANSPARENT;r.backgroundColor=fe(i)?fe(A)?r.styles.backgroundColor:A:i}}catch(t){}return r}return e(n,t),n}(Or),Bi=["OL","UL","MENU"],xi=function(t,e,n,r){for(var i=e.firstChild,A=void 0;i;i=A)if(A=i.nextSibling,Fi(i)&&i.data.trim().length>0)n.textNodes.push(new ri(t,i,n.styles));else if(Qi(i))if(zi(i)&&i.assignedNodes)i.assignedNodes().forEach(function(e){return xi(t,e,n,r)});else{var o=Ci(t,i);o.styles.isVisible()&&(Oi(i,o,r)?o.flags|=4:ki(o.styles)&&(o.flags|=2),-1!==Bi.indexOf(i.tagName)&&(o.flags|=8),n.elements.push(o),i.shadowRoot?xi(t,i.shadowRoot,o,r):Ri(i)||Ti(i)||Ki(i)||xi(t,i,o,r))}},Ci=function(t,e){return Hi(e)?new ai(t,e):Pi(e)?new si(t,e):Ti(e)?new li(t,e):Si(e)?new ci(t,e):_i(e)?new ui(t,e):Ii(e)?new yi(t,e):Ki(e)?new vi(t,e):Ri(e)?new bi(t,e):Ni(e)?new wi(t,e):new Or(t,e)},Ei=function(t,e){var n=Ci(t,e);return n.flags|=4,xi(t,e,n,n),n},Oi=function(t,e,n){return e.styles.isPositionedWithZIndex()||e.styles.opacity<1||e.styles.isTransformed()||Li(t)&&n.styles.isTransparent()},ki=function(t){return t.isPositioned()||t.isFloating()},Fi=function(t){return t.nodeType===Node.TEXT_NODE},Qi=function(t){return t.nodeType===Node.ELEMENT_NODE},Mi=function(t){return Qi(t)&&void 0!==t.style&&!Ui(t)},Ui=function(t){return"object"==typeof t.className},Si=function(t){return"LI"===t.tagName},_i=function(t){return"OL"===t.tagName},Ii=function(t){return"INPUT"===t.tagName},Ti=function(t){return"svg"===t.tagName},Li=function(t){return"BODY"===t.tagName},Pi=function(t){return"CANVAS"===t.tagName},ji=function(t){return"VIDEO"===t.tagName},Hi=function(t){return"IMG"===t.tagName},Ni=function(t){return"IFRAME"===t.tagName},Di=function(t){return"STYLE"===t.tagName},Ri=function(t){return"TEXTAREA"===t.tagName},Ki=function(t){return"SELECT"===t.tagName},zi=function(t){return"SLOT"===t.tagName},Gi=function(t){return t.tagName.indexOf("-")>0},Vi=function(){function t(){this.counters={}}return t.prototype.getCounterValue=function(t){var e=this.counters[t];return e&&e.length?e[e.length-1]:1},t.prototype.getCounterValues=function(t){return this.counters[t]||[]},t.prototype.pop=function(t){var e=this;t.forEach(function(t){return e.counters[t].pop()})},t.prototype.parse=function(t){var e=this,n=t.counterIncrement,r=t.counterReset,i=!0;null!==n&&n.forEach(function(t){var n=e.counters[t.counter];n&&0!==t.increment&&(i=!1,n.length||n.push(1),n[Math.max(0,n.length-1)]+=t.increment)});var A=[];return i&&r.forEach(function(t){var n=e.counters[t.counter];A.push(t.counter),n||(n=e.counters[t.counter]=[]),n.push(t.reset)}),A},t}(),Wi={integers:[1e3,900,500,400,100,90,50,40,10,9,5,4,1],values:["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"]},Xi={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["Ք","Փ","Ւ","Ց","Ր","Տ","Վ","Ս","Ռ","Ջ","Պ","Չ","Ո","Շ","Ն","Յ","Մ","Ճ","Ղ","Ձ","Հ","Կ","Ծ","Խ","Լ","Ի","Ժ","Թ","Ը","Է","Զ","Ե","Դ","Գ","Բ","Ա"]},Yi={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["י׳","ט׳","ח׳","ז׳","ו׳","ה׳","ד׳","ג׳","ב׳","א׳","ת","ש","ר","ק","צ","פ","ע","ס","נ","מ","ל","כ","יט","יח","יז","טז","טו","י","ט","ח","ז","ו","ה","ד","ג","ב","א"]},$i={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["ჵ","ჰ","ჯ","ჴ","ხ","ჭ","წ","ძ","ც","ჩ","შ","ყ","ღ","ქ","ფ","ჳ","ტ","ს","რ","ჟ","პ","ო","ჲ","ნ","მ","ლ","კ","ი","თ","ჱ","ზ","ვ","ე","დ","გ","ბ","ა"]},qi=function(t,e,n,r,i,A){return t<e||t>n?oA(t,i,A.length>0):r.integers.reduce(function(e,n,i){for(;t>=n;)t-=n,e+=r.values[i];return e},"")+A},Zi=function(t,e,n,r){var i="";do{n||t--,i=r(t)+i,t/=e}while(t*e>=e);return i},Ji=function(t,e,n,r,i){var A=n-e+1;return(t<0?"-":"")+(Zi(Math.abs(t),A,r,function(t){return l(Math.floor(t%A)+e)})+i)},tA=function(t,e,n){void 0===n&&(n=". ");var r=e.length;return Zi(Math.abs(t),r,!1,function(t){return e[Math.floor(t%r)]})+n},eA=function(t,e,n,r,i,A){if(t<-9999||t>9999)return oA(t,4,i.length>0);var o=Math.abs(t),a=i;if(0===o)return e[0]+a;for(var s=0;o>0&&s<=4;s++){var l=o%10;0===l&&cr(A,1)&&""!==a?a=e[l]+a:l>1||1===l&&0===s||1===l&&1===s&&cr(A,2)||1===l&&1===s&&cr(A,4)&&t>100||1===l&&s>1&&cr(A,8)?a=e[l]+(s>0?n[s-1]:"")+a:1===l&&s>0&&(a=n[s-1]+a),o=Math.floor(o/10)}return(t<0?r:"")+a},nA="十百千萬",rA="拾佰仟萬",iA="マイナス",AA="마이너스",oA=function(t,e,n){var r=n?". ":"",i=n?"、":"",A=n?", ":"",o=n?" ":"";switch(e){case 0:return"•"+o;case 1:return"◦"+o;case 2:return"◾"+o;case 5:var a=Ji(t,48,57,!0,r);return a.length<4?"0"+a:a;case 4:return tA(t,"〇一二三四五六七八九",i);case 6:return qi(t,1,3999,Wi,3,r).toLowerCase();case 7:return qi(t,1,3999,Wi,3,r);case 8:return Ji(t,945,969,!1,r);case 9:return Ji(t,97,122,!1,r);case 10:return Ji(t,65,90,!1,r);case 11:return Ji(t,1632,1641,!0,r);case 12:case 49:return qi(t,1,9999,Xi,3,r);case 35:return qi(t,1,9999,Xi,3,r).toLowerCase();case 13:return Ji(t,2534,2543,!0,r);case 14:case 30:return Ji(t,6112,6121,!0,r);case 15:return tA(t,"子丑寅卯辰巳午未申酉戌亥",i);case 16:return tA(t,"甲乙丙丁戊己庚辛壬癸",i);case 17:case 48:return eA(t,"零一二三四五六七八九",nA,"負",i,14);case 47:return eA(t,"零壹貳參肆伍陸柒捌玖",rA,"負",i,15);case 42:return eA(t,"零一二三四五六七八九",nA,"负",i,14);case 41:return eA(t,"零壹贰叁肆伍陆柒捌玖",rA,"负",i,15);case 26:return eA(t,"〇一二三四五六七八九","十百千万",iA,i,0);case 25:return eA(t,"零壱弐参四伍六七八九","拾百千万",iA,i,7);case 31:return eA(t,"영일이삼사오육칠팔구","십백천만",AA,A,7);case 33:return eA(t,"零一二三四五六七八九","十百千萬",AA,A,0);case 32:return eA(t,"零壹貳參四五六七八九","拾百千",AA,A,7);case 18:return Ji(t,2406,2415,!0,r);case 20:return qi(t,1,19999,$i,3,r);case 21:return Ji(t,2790,2799,!0,r);case 22:return Ji(t,2662,2671,!0,r);case 22:return qi(t,1,10999,Yi,3,r);case 23:return tA(t,"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん");case 24:return tA(t,"いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす");case 27:return Ji(t,3302,3311,!0,r);case 28:return tA(t,"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン",i);case 29:return tA(t,"イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス",i);case 34:return Ji(t,3792,3801,!0,r);case 37:return Ji(t,6160,6169,!0,r);case 38:return Ji(t,4160,4169,!0,r);case 39:return Ji(t,2918,2927,!0,r);case 40:return Ji(t,1776,1785,!0,r);case 43:return Ji(t,3046,3055,!0,r);case 44:return Ji(t,3174,3183,!0,r);case 45:return Ji(t,3664,3673,!0,r);case 46:return Ji(t,3872,3881,!0,r);default:return Ji(t,48,57,!0,r)}},aA="data-html2canvas-ignore",sA=function(){function t(t,e,n){if(this.context=t,this.options=n,this.scrolledElements=[],this.referenceElement=e,this.counters=new Vi,this.quoteDepth=0,!e.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(e.ownerDocument.documentElement,!1)}return t.prototype.toIFrame=function(t,e){var n=this,A=cA(t,e);if(!A.contentWindow)return Promise.reject("Unable to find iframe window");var o=t.defaultView.pageXOffset,a=t.defaultView.pageYOffset,s=A.contentWindow,l=s.document,c=fA(A).then(function(){return r(n,void 0,void 0,function(){var t,n;return i(this,function(r){switch(r.label){case 0:return this.scrolledElements.forEach(yA),s&&(s.scrollTo(e.left,e.top),!/(iPad|iPhone|iPod)/g.test(navigator.userAgent)||s.scrollY===e.top&&s.scrollX===e.left||(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(s.scrollX-e.left,s.scrollY-e.top,0,0))),t=this.options.onclone,void 0===(n=this.clonedReferenceElement)?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:l.fonts&&l.fonts.ready?[4,l.fonts.ready]:[3,2];case 1:r.sent(),r.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,dA(l)]:[3,4];case 3:r.sent(),r.label=4;case 4:return"function"==typeof t?[2,Promise.resolve().then(function(){return t(l,n)}).then(function(){return A})]:[2,A]}})})});return l.open(),l.write(gA(document.doctype)+"<html></html>"),mA(this.referenceElement.ownerDocument,o,a),l.replaceChild(l.adoptNode(this.documentElement),l.documentElement),l.close(),c},t.prototype.createElementClone=function(t){if(Er(t,2),Pi(t))return this.createCanvasClone(t);if(ji(t))return this.createVideoClone(t);if(Di(t))return this.createStyleClone(t);var e=t.cloneNode(!1);return Hi(e)&&(Hi(t)&&t.currentSrc&&t.currentSrc!==t.src&&(e.src=t.currentSrc,e.srcset=""),"lazy"===e.loading&&(e.loading="eager")),Gi(e)?this.createCustomElementClone(e):e},t.prototype.createCustomElementClone=function(t){var e=document.createElement("html2canvascustomelement");return pA(t.style,e),e},t.prototype.createStyleClone=function(t){try{var e=t.sheet;if(e&&e.cssRules){var n=[].slice.call(e.cssRules,0).reduce(function(t,e){return e&&"string"==typeof e.cssText?t+e.cssText:t},""),r=t.cloneNode(!1);return r.textContent=n,r}}catch(t){if(this.context.logger.error("Unable to access cssRules property",t),"SecurityError"!==t.name)throw t}return t.cloneNode(!1)},t.prototype.createCanvasClone=function(t){var e;if(this.options.inlineImages&&t.ownerDocument){var n=t.ownerDocument.createElement("img");try{return n.src=t.toDataURL(),n}catch(e){this.context.logger.info("Unable to inline canvas contents, canvas is tainted",t)}}var r=t.cloneNode(!1);try{r.width=t.width,r.height=t.height;var i=t.getContext("2d"),A=r.getContext("2d");if(A)if(!this.options.allowTaint&&i)A.putImageData(i.getImageData(0,0,t.width,t.height),0,0);else{var o=null!==(e=t.getContext("webgl2"))&&void 0!==e?e:t.getContext("webgl");if(o){var a=o.getContextAttributes();!1===(null==a?void 0:a.preserveDrawingBuffer)&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",t)}A.drawImage(t,0,0)}return r}catch(e){this.context.logger.info("Unable to clone canvas as it is tainted",t)}return r},t.prototype.createVideoClone=function(t){var e=t.ownerDocument.createElement("canvas");e.width=t.offsetWidth,e.height=t.offsetHeight;var n=e.getContext("2d");try{return n&&(n.drawImage(t,0,0,e.width,e.height),this.options.allowTaint||n.getImageData(0,0,e.width,e.height)),e}catch(e){this.context.logger.info("Unable to clone video as it is tainted",t)}var r=t.ownerDocument.createElement("canvas");return r.width=t.offsetWidth,r.height=t.offsetHeight,r},t.prototype.appendChildNode=function(t,e,n){Qi(e)&&("SCRIPT"===e.tagName||e.hasAttribute(aA)||"function"==typeof this.options.ignoreElements&&this.options.ignoreElements(e))||this.options.copyStyles&&Qi(e)&&Di(e)||t.appendChild(this.cloneNode(e,n))},t.prototype.cloneChildNodes=function(t,e,n){for(var r=this,i=t.shadowRoot?t.shadowRoot.firstChild:t.firstChild;i;i=i.nextSibling)if(Qi(i)&&zi(i)&&"function"==typeof i.assignedNodes){var A=i.assignedNodes();A.length&&A.forEach(function(t){return r.appendChildNode(e,t,n)})}else this.appendChildNode(e,i,n)},t.prototype.cloneNode=function(t,e){if(Fi(t))return document.createTextNode(t.data);if(!t.ownerDocument)return t.cloneNode(!1);var n=t.ownerDocument.defaultView;if(n&&Qi(t)&&(Mi(t)||Ui(t))){var r=this.createElementClone(t);r.style.transitionProperty="none";var i=n.getComputedStyle(t),A=n.getComputedStyle(t,":before"),o=n.getComputedStyle(t,":after");this.referenceElement===t&&Mi(r)&&(this.clonedReferenceElement=r),Li(r)&&BA(r);var a=this.counters.parse(new xr(this.context,i)),s=this.resolvePseudoContent(t,r,A,Tr.BEFORE);Gi(t)&&(e=!0),ji(t)||this.cloneChildNodes(t,r,e),s&&r.insertBefore(s,r.firstChild);var l=this.resolvePseudoContent(t,r,o,Tr.AFTER);return l&&r.appendChild(l),this.counters.pop(a),(i&&(this.options.copyStyles||Ui(t))&&!Ni(t)||e)&&pA(i,r),0===t.scrollTop&&0===t.scrollLeft||this.scrolledElements.push([r,t.scrollLeft,t.scrollTop]),(Ri(t)||Ki(t))&&(Ri(r)||Ki(r))&&(r.value=t.value),r}return t.cloneNode(!1)},t.prototype.resolvePseudoContent=function(t,e,n,r){var i=this;if(n){var A=n.content,o=e.ownerDocument;if(o&&A&&"none"!==A&&"-moz-alt-content"!==A&&"none"!==n.display){this.counters.parse(new xr(this.context,n));var a=new Br(this.context,n),s=o.createElement("html2canvaspseudoelement");pA(n,s),a.content.forEach(function(e){if(0===e.type)s.appendChild(o.createTextNode(e.value));else if(22===e.type){var n=o.createElement("img");n.src=e.value,n.style.opacity="1",s.appendChild(n)}else if(18===e.type){if("attr"===e.name){var r=e.values.filter(Gt);r.length&&s.appendChild(o.createTextNode(t.getAttribute(r[0].value)||""))}else if("counter"===e.name){var A=e.values.filter(Yt),l=A[1];if((d=A[0])&&Gt(d)){var c=i.counters.getCounterValue(d.value),u=l&&Gt(l)?Mn.parse(i.context,l.value):3;s.appendChild(o.createTextNode(oA(c,u,!1)))}}else if("counters"===e.name){var d,f=e.values.filter(Yt),h=f[1];if(l=f[2],(d=f[0])&&Gt(d)){var p=i.counters.getCounterValues(d.value),g=l&&Gt(l)?Mn.parse(i.context,l.value):3,m=h&&0===h.type?h.value:"",y=p.map(function(t){return oA(t,g,!1)}).join(m);s.appendChild(o.createTextNode(y))}}}else if(20===e.type)switch(e.value){case"open-quote":s.appendChild(o.createTextNode(gr(a.quotes,i.quoteDepth++,!0)));break;case"close-quote":s.appendChild(o.createTextNode(gr(a.quotes,--i.quoteDepth,!1)));break;default:s.appendChild(o.createTextNode(e.value))}}),s.className=vA+" "+bA;var l=r===Tr.BEFORE?" "+vA:" "+bA;return Ui(e)?e.className.baseValue+=l:e.className+=l,s}}},t.destroy=function(t){return!!t.parentNode&&(t.parentNode.removeChild(t),!0)},t}();!function(t){t[t.BEFORE=0]="BEFORE",t[t.AFTER=1]="AFTER"}(Tr||(Tr={}));var lA,cA=function(t,e){var n=t.createElement("iframe");return n.className="html2canvas-container",n.style.visibility="hidden",n.style.position="fixed",n.style.left="-10000px",n.style.top="0px",n.style.border="0",n.width=e.width.toString(),n.height=e.height.toString(),n.scrolling="no",n.setAttribute(aA,"true"),t.body.appendChild(n),n},uA=function(t){return new Promise(function(e){t.complete?e():t.src?(t.onload=e,t.onerror=e):e()})},dA=function(t){return Promise.all([].slice.call(t.images,0).map(uA))},fA=function(t){return new Promise(function(e,n){var r=t.contentWindow;if(!r)return n("No window assigned for iframe");var i=r.document;r.onload=t.onload=function(){r.onload=t.onload=null;var n=setInterval(function(){i.body.childNodes.length>0&&"complete"===i.readyState&&(clearInterval(n),e(t))},50)}})},hA=["all","d","content"],pA=function(t,e){for(var n=t.length-1;n>=0;n--){var r=t.item(n);-1===hA.indexOf(r)&&e.style.setProperty(r,t.getPropertyValue(r))}return e},gA=function(t){var e="";return t&&(e+="<!DOCTYPE ",t.name&&(e+=t.name),t.internalSubset&&(e+=t.internalSubset),t.publicId&&(e+='"'+t.publicId+'"'),t.systemId&&(e+='"'+t.systemId+'"'),e+=">"),e},mA=function(t,e,n){t&&t.defaultView&&(e!==t.defaultView.pageXOffset||n!==t.defaultView.pageYOffset)&&t.defaultView.scrollTo(e,n)},yA=function(t){var e=t[0],n=t[2];e.scrollLeft=t[1],e.scrollTop=n},vA="___html2canvas___pseudoelement_before",bA="___html2canvas___pseudoelement_after",wA='{\n content: "" !important;\n display: none !important;\n}',BA=function(t){xA(t,"."+vA+":before"+wA+"\n ."+bA+":after"+wA)},xA=function(t,e){var n=t.ownerDocument;if(n){var r=n.createElement("style");r.textContent=e,t.appendChild(r)}},CA=function(){function t(){}return t.getOrigin=function(e){var n=t._link;return n?(n.href=e,n.href=n.href,n.protocol+n.hostname+n.port):"about:blank"},t.isSameOrigin=function(e){return t.getOrigin(e)===t._origin},t.setContext=function(e){t._link=e.document.createElement("a"),t._origin=t.getOrigin(e.location.href)},t._origin="about:blank",t}(),EA=function(){function t(t,e){this.context=t,this._options=e,this._cache={}}return t.prototype.addImage=function(t){var e=Promise.resolve();return this.has(t)?e:SA(t)||QA(t)?((this._cache[t]=this.loadImage(t)).catch(function(){}),e):e},t.prototype.match=function(t){return this._cache[t]},t.prototype.loadImage=function(t){return r(this,void 0,void 0,function(){var e,n,r,A,o=this;return i(this,function(i){switch(i.label){case 0:return e=CA.isSameOrigin(t),n=!MA(t)&&!0===this._options.useCORS&&Yr.SUPPORT_CORS_IMAGES&&!e,r=!MA(t)&&!e&&!SA(t)&&"string"==typeof this._options.proxy&&Yr.SUPPORT_CORS_XHR&&!n,e||!1!==this._options.allowTaint||MA(t)||SA(t)||r||n?(A=t,r?[4,this.proxy(A)]:[3,2]):[2];case 1:A=i.sent(),i.label=2;case 2:return this.context.logger.debug("Added image "+t.substring(0,256)),[4,new Promise(function(t,e){var r=new Image;r.onload=function(){return t(r)},r.onerror=e,(UA(A)||n)&&(r.crossOrigin="anonymous"),r.src=A,!0===r.complete&&setTimeout(function(){return t(r)},500),o._options.imageTimeout>0&&setTimeout(function(){return e("Timed out ("+o._options.imageTimeout+"ms) loading image")},o._options.imageTimeout)})];case 3:return[2,i.sent()]}})})},t.prototype.has=function(t){return void 0!==this._cache[t]},t.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},t.prototype.proxy=function(t){var e=this,n=this._options.proxy;if(!n)throw new Error("No proxy defined");var r=t.substring(0,256);return new Promise(function(i,A){var o=Yr.SUPPORT_RESPONSE_TYPE?"blob":"text",a=new XMLHttpRequest;a.onload=function(){if(200===a.status)if("text"===o)i(a.response);else{var t=new FileReader;t.addEventListener("load",function(){return i(t.result)},!1),t.addEventListener("error",function(t){return A(t)},!1),t.readAsDataURL(a.response)}else A("Failed to proxy resource "+r+" with status code "+a.status)},a.onerror=A;var s=n.indexOf("?")>-1?"&":"?";if(a.open("GET",""+n+s+"url="+encodeURIComponent(t)+"&responseType="+o),"text"!==o&&a instanceof XMLHttpRequest&&(a.responseType=o),e._options.imageTimeout){var l=e._options.imageTimeout;a.timeout=l,a.ontimeout=function(){return A("Timed out ("+l+"ms) proxying "+r)}}a.send()})},t}(),OA=/^data:image\/svg\+xml/i,kA=/^data:image\/.*;base64,/i,FA=/^data:image\/.*/i,QA=function(t){return Yr.SUPPORT_SVG_DRAWING||!_A(t)},MA=function(t){return FA.test(t)},UA=function(t){return kA.test(t)},SA=function(t){return"blob"===t.substr(0,4)},_A=function(t){return"svg"===t.substr(-3).toLowerCase()||OA.test(t)},IA=function(){function t(t,e){this.type=0,this.x=t,this.y=e}return t.prototype.add=function(e,n){return new t(this.x+e,this.y+n)},t}(),TA=function(t,e,n){return new IA(t.x+(e.x-t.x)*n,t.y+(e.y-t.y)*n)},LA=function(){function t(t,e,n,r){this.type=1,this.start=t,this.startControl=e,this.endControl=n,this.end=r}return t.prototype.subdivide=function(e,n){var r=TA(this.start,this.startControl,e),i=TA(this.startControl,this.endControl,e),A=TA(this.endControl,this.end,e),o=TA(r,i,e),a=TA(i,A,e),s=TA(o,a,e);return n?new t(this.start,r,o,s):new t(s,a,A,this.end)},t.prototype.add=function(e,n){return new t(this.start.add(e,n),this.startControl.add(e,n),this.endControl.add(e,n),this.end.add(e,n))},t.prototype.reverse=function(){return new t(this.end,this.endControl,this.startControl,this.start)},t}(),PA=function(t){return 1===t.type},jA=function(t){var e=t.styles,n=t.bounds,r=ie(e.borderTopLeftRadius,n.width,n.height),i=r[0],A=r[1],o=ie(e.borderTopRightRadius,n.width,n.height),a=o[0],s=o[1],l=ie(e.borderBottomRightRadius,n.width,n.height),c=l[0],u=l[1],d=ie(e.borderBottomLeftRadius,n.width,n.height),f=d[0],h=d[1],p=[];p.push((i+a)/n.width),p.push((f+c)/n.width),p.push((A+h)/n.height),p.push((s+u)/n.height);var g=Math.max.apply(Math,p);g>1&&(i/=g,A/=g,a/=g,s/=g,c/=g,u/=g,f/=g,h/=g);var m=n.width-a,y=n.height-u,v=n.width-c,b=n.height-h,w=e.borderTopWidth,B=e.borderRightWidth,x=e.borderBottomWidth,C=e.borderLeftWidth,E=Ae(e.paddingTop,t.bounds.width),O=Ae(e.paddingRight,t.bounds.width),k=Ae(e.paddingBottom,t.bounds.width),F=Ae(e.paddingLeft,t.bounds.width);this.topLeftBorderDoubleOuterBox=i>0||A>0?HA(n.left+C/3,n.top+w/3,i-C/3,A-w/3,lA.TOP_LEFT):new IA(n.left+C/3,n.top+w/3),this.topRightBorderDoubleOuterBox=i>0||A>0?HA(n.left+m,n.top+w/3,a-B/3,s-w/3,lA.TOP_RIGHT):new IA(n.left+n.width-B/3,n.top+w/3),this.bottomRightBorderDoubleOuterBox=c>0||u>0?HA(n.left+v,n.top+y,c-B/3,u-x/3,lA.BOTTOM_RIGHT):new IA(n.left+n.width-B/3,n.top+n.height-x/3),this.bottomLeftBorderDoubleOuterBox=f>0||h>0?HA(n.left+C/3,n.top+b,f-C/3,h-x/3,lA.BOTTOM_LEFT):new IA(n.left+C/3,n.top+n.height-x/3),this.topLeftBorderDoubleInnerBox=i>0||A>0?HA(n.left+2*C/3,n.top+2*w/3,i-2*C/3,A-2*w/3,lA.TOP_LEFT):new IA(n.left+2*C/3,n.top+2*w/3),this.topRightBorderDoubleInnerBox=i>0||A>0?HA(n.left+m,n.top+2*w/3,a-2*B/3,s-2*w/3,lA.TOP_RIGHT):new IA(n.left+n.width-2*B/3,n.top+2*w/3),this.bottomRightBorderDoubleInnerBox=c>0||u>0?HA(n.left+v,n.top+y,c-2*B/3,u-2*x/3,lA.BOTTOM_RIGHT):new IA(n.left+n.width-2*B/3,n.top+n.height-2*x/3),this.bottomLeftBorderDoubleInnerBox=f>0||h>0?HA(n.left+2*C/3,n.top+b,f-2*C/3,h-2*x/3,lA.BOTTOM_LEFT):new IA(n.left+2*C/3,n.top+n.height-2*x/3),this.topLeftBorderStroke=i>0||A>0?HA(n.left+C/2,n.top+w/2,i-C/2,A-w/2,lA.TOP_LEFT):new IA(n.left+C/2,n.top+w/2),this.topRightBorderStroke=i>0||A>0?HA(n.left+m,n.top+w/2,a-B/2,s-w/2,lA.TOP_RIGHT):new IA(n.left+n.width-B/2,n.top+w/2),this.bottomRightBorderStroke=c>0||u>0?HA(n.left+v,n.top+y,c-B/2,u-x/2,lA.BOTTOM_RIGHT):new IA(n.left+n.width-B/2,n.top+n.height-x/2),this.bottomLeftBorderStroke=f>0||h>0?HA(n.left+C/2,n.top+b,f-C/2,h-x/2,lA.BOTTOM_LEFT):new IA(n.left+C/2,n.top+n.height-x/2),this.topLeftBorderBox=i>0||A>0?HA(n.left,n.top,i,A,lA.TOP_LEFT):new IA(n.left,n.top),this.topRightBorderBox=a>0||s>0?HA(n.left+m,n.top,a,s,lA.TOP_RIGHT):new IA(n.left+n.width,n.top),this.bottomRightBorderBox=c>0||u>0?HA(n.left+v,n.top+y,c,u,lA.BOTTOM_RIGHT):new IA(n.left+n.width,n.top+n.height),this.bottomLeftBorderBox=f>0||h>0?HA(n.left,n.top+b,f,h,lA.BOTTOM_LEFT):new IA(n.left,n.top+n.height),this.topLeftPaddingBox=i>0||A>0?HA(n.left+C,n.top+w,Math.max(0,i-C),Math.max(0,A-w),lA.TOP_LEFT):new IA(n.left+C,n.top+w),this.topRightPaddingBox=a>0||s>0?HA(n.left+Math.min(m,n.width-B),n.top+w,m>n.width+B?0:Math.max(0,a-B),Math.max(0,s-w),lA.TOP_RIGHT):new IA(n.left+n.width-B,n.top+w),this.bottomRightPaddingBox=c>0||u>0?HA(n.left+Math.min(v,n.width-C),n.top+Math.min(y,n.height-x),Math.max(0,c-B),Math.max(0,u-x),lA.BOTTOM_RIGHT):new IA(n.left+n.width-B,n.top+n.height-x),this.bottomLeftPaddingBox=f>0||h>0?HA(n.left+C,n.top+Math.min(b,n.height-x),Math.max(0,f-C),Math.max(0,h-x),lA.BOTTOM_LEFT):new IA(n.left+C,n.top+n.height-x),this.topLeftContentBox=i>0||A>0?HA(n.left+C+F,n.top+w+E,Math.max(0,i-(C+F)),Math.max(0,A-(w+E)),lA.TOP_LEFT):new IA(n.left+C+F,n.top+w+E),this.topRightContentBox=a>0||s>0?HA(n.left+Math.min(m,n.width+C+F),n.top+w+E,m>n.width+C+F?0:a-C+F,s-(w+E),lA.TOP_RIGHT):new IA(n.left+n.width-(B+O),n.top+w+E),this.bottomRightContentBox=c>0||u>0?HA(n.left+Math.min(v,n.width-(C+F)),n.top+Math.min(y,n.height+w+E),Math.max(0,c-(B+O)),u-(x+k),lA.BOTTOM_RIGHT):new IA(n.left+n.width-(B+O),n.top+n.height-(x+k)),this.bottomLeftContentBox=f>0||h>0?HA(n.left+C+F,n.top+b,Math.max(0,f-(C+F)),h-(x+k),lA.BOTTOM_LEFT):new IA(n.left+C+F,n.top+n.height-(x+k))};!function(t){t[t.TOP_LEFT=0]="TOP_LEFT",t[t.TOP_RIGHT=1]="TOP_RIGHT",t[t.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",t[t.BOTTOM_LEFT=3]="BOTTOM_LEFT"}(lA||(lA={}));var HA=function(t,e,n,r,i){var A=(Math.sqrt(2)-1)/3*4,o=n*A,a=r*A,s=t+n,l=e+r;switch(i){case lA.TOP_LEFT:return new LA(new IA(t,l),new IA(t,l-a),new IA(s-o,e),new IA(s,e));case lA.TOP_RIGHT:return new LA(new IA(t,e),new IA(t+o,e),new IA(s,l-a),new IA(s,l));case lA.BOTTOM_RIGHT:return new LA(new IA(s,e),new IA(s,e+a),new IA(t+o,l),new IA(t,l));default:return new LA(new IA(s,l),new IA(s-o,l),new IA(t,e+a),new IA(t,e))}},NA=function(t){return[t.topLeftBorderBox,t.topRightBorderBox,t.bottomRightBorderBox,t.bottomLeftBorderBox]},DA=function(t){return[t.topLeftPaddingBox,t.topRightPaddingBox,t.bottomRightPaddingBox,t.bottomLeftPaddingBox]},RA=function(t,e,n){this.offsetX=t,this.offsetY=e,this.matrix=n,this.type=0,this.target=6},KA=function(t,e){this.path=t,this.target=e,this.type=1},zA=function(t){this.opacity=t,this.type=2,this.target=6},GA=function(t){return 1===t.type},VA=function(t,e){return t.length===e.length&&t.some(function(t,n){return t===e[n]})},WA=function(t){this.element=t,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]},XA=function(){function t(t,e){if(this.container=t,this.parent=e,this.effects=[],this.curves=new jA(this.container),this.container.styles.opacity<1&&this.effects.push(new zA(this.container.styles.opacity)),null!==this.container.styles.transform&&this.effects.push(new RA(this.container.bounds.left+this.container.styles.transformOrigin[0].number,this.container.bounds.top+this.container.styles.transformOrigin[1].number,this.container.styles.transform)),0!==this.container.styles.overflowX){var n=NA(this.curves),r=DA(this.curves);VA(n,r)?this.effects.push(new KA(n,6)):(this.effects.push(new KA(n,2)),this.effects.push(new KA(r,4)))}}return t.prototype.getEffects=function(t){for(var e=-1===[2,3].indexOf(this.container.styles.position),n=this.parent,r=this.effects.slice(0);n;){var i=n.effects.filter(function(t){return!GA(t)});if(e||0!==n.container.styles.position||!n.parent){if(r.unshift.apply(r,i),e=-1===[2,3].indexOf(n.container.styles.position),0!==n.container.styles.overflowX){var A=NA(n.curves),o=DA(n.curves);VA(A,o)||r.unshift(new KA(o,6))}}else r.unshift.apply(r,i);n=n.parent}return r.filter(function(e){return cr(e.target,t)})},t}(),YA=function(t,e,n,r){t.container.elements.forEach(function(i){var A=cr(i.flags,4),o=cr(i.flags,2),a=new XA(i,t);cr(i.styles.display,2048)&&r.push(a);var s=cr(i.flags,8)?[]:r;if(A||o){var l=A||i.styles.isPositioned()?n:e,c=new WA(a);if(i.styles.isPositioned()||i.styles.opacity<1||i.styles.isTransformed()){var u=i.styles.zIndex.order;if(u<0){var d=0;l.negativeZIndex.some(function(t,e){return u>t.element.container.styles.zIndex.order?(d=e,!1):d>0}),l.negativeZIndex.splice(d,0,c)}else if(u>0){var f=0;l.positiveZIndex.some(function(t,e){return u>=t.element.container.styles.zIndex.order?(f=e+1,!1):f>0}),l.positiveZIndex.splice(f,0,c)}else l.zeroOrAutoZIndexOrTransformedOrOpacity.push(c)}else i.styles.isFloating()?l.nonPositionedFloats.push(c):l.nonPositionedInlineLevel.push(c);YA(a,c,A?c:n,s)}else i.styles.isInlineLevel()?e.inlineLevel.push(a):e.nonInlineLevel.push(a),YA(a,e,n,s);cr(i.flags,8)&&$A(i,s)})},$A=function(t,e){for(var n=t instanceof ui?t.start:1,r=t instanceof ui&&t.reversed,i=0;i<e.length;i++){var A=e[i];A.container instanceof ci&&"number"==typeof A.container.value&&0!==A.container.value&&(n=A.container.value),A.listValue=oA(n,A.container.styles.listStyleType,!0),n+=r?-1:1}},qA=function(t,e){switch(e){case 0:return JA(t.topLeftBorderBox,t.topLeftPaddingBox,t.topRightBorderBox,t.topRightPaddingBox);case 1:return JA(t.topRightBorderBox,t.topRightPaddingBox,t.bottomRightBorderBox,t.bottomRightPaddingBox);case 2:return JA(t.bottomRightBorderBox,t.bottomRightPaddingBox,t.bottomLeftBorderBox,t.bottomLeftPaddingBox);default:return JA(t.bottomLeftBorderBox,t.bottomLeftPaddingBox,t.topLeftBorderBox,t.topLeftPaddingBox)}},ZA=function(t,e){var n=[];return PA(t)?n.push(t.subdivide(.5,!1)):n.push(t),PA(e)?n.push(e.subdivide(.5,!0)):n.push(e),n},JA=function(t,e,n,r){var i=[];return PA(t)?i.push(t.subdivide(.5,!1)):i.push(t),PA(n)?i.push(n.subdivide(.5,!0)):i.push(n),PA(r)?i.push(r.subdivide(.5,!0).reverse()):i.push(r),PA(e)?i.push(e.subdivide(.5,!1).reverse()):i.push(e),i},to=function(t){var e=t.styles;return t.bounds.add(e.borderLeftWidth,e.borderTopWidth,-(e.borderRightWidth+e.borderLeftWidth),-(e.borderTopWidth+e.borderBottomWidth))},eo=function(t){var e=t.styles,n=t.bounds,r=Ae(e.paddingLeft,n.width),i=Ae(e.paddingRight,n.width),A=Ae(e.paddingTop,n.width),o=Ae(e.paddingBottom,n.width);return n.add(r+e.borderLeftWidth,A+e.borderTopWidth,-(e.borderRightWidth+e.borderLeftWidth+r+i),-(e.borderTopWidth+e.borderBottomWidth+A+o))},no=function(t,e,n){var r=function(t,e){return 0===t?e.bounds:2===t?eo(e):to(e)}(oo(t.styles.backgroundOrigin,e),t),i=function(t,e){return 0===t?e.bounds:2===t?eo(e):to(e)}(oo(t.styles.backgroundClip,e),t),A=Ao(oo(t.styles.backgroundSize,e),n,r),o=A[0],a=A[1],s=ie(oo(t.styles.backgroundPosition,e),r.width-o,r.height-a);return[ao(oo(t.styles.backgroundRepeat,e),s,A,r,i),Math.round(r.left+s[0]),Math.round(r.top+s[1]),o,a]},ro=function(t){return Gt(t)&&t.value===De.AUTO},io=function(t){return"number"==typeof t},Ao=function(t,e,n){var r=e[0],i=e[1],A=e[2],o=t[0],a=t[1];if(!o)return[0,0];if(Jt(o)&&a&&Jt(a))return[Ae(o,n.width),Ae(a,n.height)];var s=io(A);if(Gt(o)&&(o.value===De.CONTAIN||o.value===De.COVER))return io(A)?n.width/n.height<A!=(o.value===De.COVER)?[n.width,n.width/A]:[n.height*A,n.height]:[n.width,n.height];var l=io(r),c=io(i),u=l||c;if(ro(o)&&(!a||ro(a)))return l&&c?[r,i]:s||u?u&&s?[l?r:i*A,c?i:r/A]:[l?r:n.width,c?i:n.height]:[n.width,n.height];if(s){var d=0,f=0;return Jt(o)?d=Ae(o,n.width):Jt(a)&&(f=Ae(a,n.height)),ro(o)?d=f*A:a&&!ro(a)||(f=d/A),[d,f]}var h=null,p=null;if(Jt(o)?h=Ae(o,n.width):a&&Jt(a)&&(p=Ae(a,n.height)),null===h||a&&!ro(a)||(p=l&&c?h/r*i:n.height),null!==p&&ro(o)&&(h=l&&c?p/i*r:n.width),null!==h&&null!==p)return[h,p];throw new Error("Unable to calculate background-size for element")},oo=function(t,e){var n=t[e];return void 0===n?t[0]:n},ao=function(t,e,n,r,i){var A=e[0],o=e[1],a=n[0],s=n[1];switch(t){case 2:return[new IA(Math.round(r.left),Math.round(r.top+o)),new IA(Math.round(r.left+r.width),Math.round(r.top+o)),new IA(Math.round(r.left+r.width),Math.round(s+r.top+o)),new IA(Math.round(r.left),Math.round(s+r.top+o))];case 3:return[new IA(Math.round(r.left+A),Math.round(r.top)),new IA(Math.round(r.left+A+a),Math.round(r.top)),new IA(Math.round(r.left+A+a),Math.round(r.height+r.top)),new IA(Math.round(r.left+A),Math.round(r.height+r.top))];case 1:return[new IA(Math.round(r.left+A),Math.round(r.top+o)),new IA(Math.round(r.left+A+a),Math.round(r.top+o)),new IA(Math.round(r.left+A+a),Math.round(r.top+o+s)),new IA(Math.round(r.left+A),Math.round(r.top+o+s))];default:return[new IA(Math.round(i.left),Math.round(i.top)),new IA(Math.round(i.left+i.width),Math.round(i.top)),new IA(Math.round(i.left+i.width),Math.round(i.height+i.top)),new IA(Math.round(i.left),Math.round(i.height+i.top))]}},so="Hidden Text",lo=function(){function t(t){this._data={},this._document=t}return t.prototype.parseMetrics=function(t,e){var n=this._document.createElement("div"),r=this._document.createElement("img"),i=this._document.createElement("span"),A=this._document.body;n.style.visibility="hidden",n.style.fontFamily=t,n.style.fontSize=e,n.style.margin="0",n.style.padding="0",n.style.whiteSpace="nowrap",A.appendChild(n),r.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",r.width=1,r.height=1,r.style.margin="0",r.style.padding="0",r.style.verticalAlign="baseline",i.style.fontFamily=t,i.style.fontSize=e,i.style.margin="0",i.style.padding="0",i.appendChild(this._document.createTextNode(so)),n.appendChild(i),n.appendChild(r);var o=r.offsetTop-i.offsetTop+2;n.removeChild(i),n.appendChild(this._document.createTextNode(so)),n.style.lineHeight="normal",r.style.verticalAlign="super";var a=r.offsetTop-n.offsetTop+2;return A.removeChild(n),{baseline:o,middle:a}},t.prototype.getMetrics=function(t,e){var n=t+" "+e;return void 0===this._data[n]&&(this._data[n]=this.parseMetrics(t,e)),this._data[n]},t}(),co=function(t,e){this.context=t,this.options=e},uo=function(t){function n(e,n){var r=t.call(this,e,n)||this;return r._activeEffects=[],r.canvas=n.canvas?n.canvas:document.createElement("canvas"),r.ctx=r.canvas.getContext("2d"),n.canvas||(r.canvas.width=Math.floor(n.width*n.scale),r.canvas.height=Math.floor(n.height*n.scale),r.canvas.style.width=n.width+"px",r.canvas.style.height=n.height+"px"),r.fontMetrics=new lo(document),r.ctx.scale(r.options.scale,r.options.scale),r.ctx.translate(-n.x,-n.y),r.ctx.textBaseline="bottom",r._activeEffects=[],r.context.logger.debug("Canvas renderer initialized ("+n.width+"x"+n.height+") with scale "+n.scale),r}return e(n,t),n.prototype.applyEffects=function(t){for(var e=this;this._activeEffects.length;)this.popEffect();t.forEach(function(t){return e.applyEffect(t)})},n.prototype.applyEffect=function(t){this.ctx.save(),function(t){return 2===t.type}(t)&&(this.ctx.globalAlpha=t.opacity),function(t){return 0===t.type}(t)&&(this.ctx.translate(t.offsetX,t.offsetY),this.ctx.transform(t.matrix[0],t.matrix[1],t.matrix[2],t.matrix[3],t.matrix[4],t.matrix[5]),this.ctx.translate(-t.offsetX,-t.offsetY)),GA(t)&&(this.path(t.path),this.ctx.clip()),this._activeEffects.push(t)},n.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},n.prototype.renderStack=function(t){return r(this,void 0,void 0,function(){return i(this,function(e){switch(e.label){case 0:return t.element.container.styles.isVisible()?[4,this.renderStackContent(t)]:[3,2];case 1:e.sent(),e.label=2;case 2:return[2]}})})},n.prototype.renderNode=function(t){return r(this,void 0,void 0,function(){return i(this,function(e){switch(e.label){case 0:return cr(t.container.flags,16),t.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(t)]:[3,3];case 1:return e.sent(),[4,this.renderNodeContent(t)];case 2:e.sent(),e.label=3;case 3:return[2]}})})},n.prototype.renderTextWithLetterSpacing=function(t,e,n){var r=this;0===e?this.ctx.fillText(t.text,t.bounds.left,t.bounds.top+n):Jr(t.text).reduce(function(e,i){return r.ctx.fillText(i,e,t.bounds.top+n),e+r.ctx.measureText(i).width},t.bounds.left)},n.prototype.createFontStyle=function(t){var e=t.fontVariant.filter(function(t){return"normal"===t||"small-caps"===t}).join(""),n=mo(t.fontFamily).join(", "),r=Kt(t.fontSize)?""+t.fontSize.number+t.fontSize.unit:t.fontSize.number+"px";return[[t.fontStyle,e,t.fontWeight,r,n].join(" "),n,r]},n.prototype.renderTextNode=function(t,e){return r(this,void 0,void 0,function(){var n,r,A,o,a,s,l,c=this;return i(this,function(i){return n=this.createFontStyle(e),r=n[1],A=n[2],this.ctx.font=n[0],this.ctx.direction=1===e.direction?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",o=this.fontMetrics.getMetrics(r,A),a=o.baseline,s=o.middle,l=e.paintOrder,t.textBounds.forEach(function(t){l.forEach(function(n){switch(n){case 0:c.ctx.fillStyle=he(e.color),c.renderTextWithLetterSpacing(t,e.letterSpacing,a);var r=e.textShadow;r.length&&t.text.trim().length&&(r.slice(0).reverse().forEach(function(n){c.ctx.shadowColor=he(n.color),c.ctx.shadowOffsetX=n.offsetX.number*c.options.scale,c.ctx.shadowOffsetY=n.offsetY.number*c.options.scale,c.ctx.shadowBlur=n.blur.number,c.renderTextWithLetterSpacing(t,e.letterSpacing,a)}),c.ctx.shadowColor="",c.ctx.shadowOffsetX=0,c.ctx.shadowOffsetY=0,c.ctx.shadowBlur=0),e.textDecorationLine.length&&(c.ctx.fillStyle=he(e.textDecorationColor||e.color),e.textDecorationLine.forEach(function(e){switch(e){case 1:c.ctx.fillRect(t.bounds.left,Math.round(t.bounds.top+a),t.bounds.width,1);break;case 2:c.ctx.fillRect(t.bounds.left,Math.round(t.bounds.top),t.bounds.width,1);break;case 3:c.ctx.fillRect(t.bounds.left,Math.ceil(t.bounds.top+s),t.bounds.width,1)}}));break;case 1:e.webkitTextStrokeWidth&&t.text.trim().length&&(c.ctx.strokeStyle=he(e.webkitTextStrokeColor),c.ctx.lineWidth=e.webkitTextStrokeWidth,c.ctx.lineJoin=window.chrome?"miter":"round",c.ctx.strokeText(t.text,t.bounds.left,t.bounds.top+a)),c.ctx.strokeStyle="",c.ctx.lineWidth=0,c.ctx.lineJoin="miter"}})}),[2]})})},n.prototype.renderReplacedElement=function(t,e,n){if(n&&t.intrinsicWidth>0&&t.intrinsicHeight>0){var r=eo(t),i=DA(e);this.path(i),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(n,0,0,t.intrinsicWidth,t.intrinsicHeight,r.left,r.top,r.width,r.height),this.ctx.restore()}},n.prototype.renderNodeContent=function(t){return r(this,void 0,void 0,function(){var e,r,A,a,s,l,c,u,d,f,h,p,g,m,y,v;return i(this,function(i){switch(i.label){case 0:this.applyEffects(t.getEffects(4)),r=t.curves,A=(e=t.container).styles,a=0,s=e.textNodes,i.label=1;case 1:return a<s.length?[4,this.renderTextNode(s[a],A)]:[3,4];case 2:i.sent(),i.label=3;case 3:return a++,[3,1];case 4:if(!(e instanceof ai))return[3,8];i.label=5;case 5:return i.trys.push([5,7,,8]),[4,this.context.cache.match(e.src)];case 6:return g=i.sent(),this.renderReplacedElement(e,r,g),[3,8];case 7:return i.sent(),this.context.logger.error("Error loading image "+e.src),[3,8];case 8:if(e instanceof si&&this.renderReplacedElement(e,r,e.canvas),!(e instanceof li))return[3,12];i.label=9;case 9:return i.trys.push([9,11,,12]),[4,this.context.cache.match(e.svg)];case 10:return g=i.sent(),this.renderReplacedElement(e,r,g),[3,12];case 11:return i.sent(),this.context.logger.error("Error loading svg "+e.svg.substring(0,255)),[3,12];case 12:return e instanceof wi&&e.tree?[4,new n(this.context,{scale:this.options.scale,backgroundColor:e.backgroundColor,x:0,y:0,width:e.width,height:e.height}).render(e.tree)]:[3,14];case 13:l=i.sent(),e.width&&e.height&&this.ctx.drawImage(l,0,0,e.width,e.height,e.bounds.left,e.bounds.top,e.bounds.width,e.bounds.height),i.label=14;case 14:if(e instanceof yi&&(c=Math.min(e.bounds.width,e.bounds.height),e.type===hi?e.checked&&(this.ctx.save(),this.path([new IA(e.bounds.left+.39363*c,e.bounds.top+.79*c),new IA(e.bounds.left+.16*c,e.bounds.top+.5549*c),new IA(e.bounds.left+.27347*c,e.bounds.top+.44071*c),new IA(e.bounds.left+.39694*c,e.bounds.top+.5649*c),new IA(e.bounds.left+.72983*c,e.bounds.top+.23*c),new IA(e.bounds.left+.84*c,e.bounds.top+.34085*c),new IA(e.bounds.left+.39363*c,e.bounds.top+.79*c)]),this.ctx.fillStyle=he(mi),this.ctx.fill(),this.ctx.restore()):e.type===pi&&e.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(e.bounds.left+c/2,e.bounds.top+c/2,c/4,0,2*Math.PI,!0),this.ctx.fillStyle=he(mi),this.ctx.fill(),this.ctx.restore())),fo(e)&&e.value.length){switch(u=this.createFontStyle(A),d=this.fontMetrics.getMetrics(y=u[0],u[1]).baseline,this.ctx.font=y,this.ctx.fillStyle=he(A.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=po(e.styles.textAlign),v=eo(e),f=0,e.styles.textAlign){case 1:f+=v.width/2;break;case 2:f+=v.width}h=v.add(f,0,0,-v.height/2+1),this.ctx.save(),this.path([new IA(v.left,v.top),new IA(v.left+v.width,v.top),new IA(v.left+v.width,v.top+v.height),new IA(v.left,v.top+v.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new $r(e.value,h),A.letterSpacing,d),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!cr(e.styles.display,2048))return[3,20];if(null===e.styles.listStyleImage)return[3,19];if(0!==(p=e.styles.listStyleImage).type)return[3,18];g=void 0,m=p.url,i.label=15;case 15:return i.trys.push([15,17,,18]),[4,this.context.cache.match(m)];case 16:return g=i.sent(),this.ctx.drawImage(g,e.bounds.left-(g.width+10),e.bounds.top),[3,18];case 17:return i.sent(),this.context.logger.error("Error loading list-style-image "+m),[3,18];case 18:return[3,20];case 19:t.listValue&&-1!==e.styles.listStyleType&&(y=this.createFontStyle(A)[0],this.ctx.font=y,this.ctx.fillStyle=he(A.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",v=new o(e.bounds.left,e.bounds.top+Ae(e.styles.paddingTop,e.bounds.width),e.bounds.width,kn(A.lineHeight,A.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new $r(t.listValue,v),A.letterSpacing,kn(A.lineHeight,A.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),i.label=20;case 20:return[2]}})})},n.prototype.renderStackContent=function(t){return r(this,void 0,void 0,function(){var e,n,r,A,o,a,s,l,c,u,d,f,h,p;return i(this,function(i){switch(i.label){case 0:return cr(t.element.container.flags,16),[4,this.renderNodeBackgroundAndBorders(t.element)];case 1:i.sent(),e=0,n=t.negativeZIndex,i.label=2;case 2:return e<n.length?[4,this.renderStack(n[e])]:[3,5];case 3:i.sent(),i.label=4;case 4:return e++,[3,2];case 5:return[4,this.renderNodeContent(t.element)];case 6:i.sent(),r=0,A=t.nonInlineLevel,i.label=7;case 7:return r<A.length?[4,this.renderNode(A[r])]:[3,10];case 8:i.sent(),i.label=9;case 9:return r++,[3,7];case 10:o=0,a=t.nonPositionedFloats,i.label=11;case 11:return o<a.length?[4,this.renderStack(a[o])]:[3,14];case 12:i.sent(),i.label=13;case 13:return o++,[3,11];case 14:s=0,l=t.nonPositionedInlineLevel,i.label=15;case 15:return s<l.length?[4,this.renderStack(l[s])]:[3,18];case 16:i.sent(),i.label=17;case 17:return s++,[3,15];case 18:c=0,u=t.inlineLevel,i.label=19;case 19:return c<u.length?[4,this.renderNode(u[c])]:[3,22];case 20:i.sent(),i.label=21;case 21:return c++,[3,19];case 22:d=0,f=t.zeroOrAutoZIndexOrTransformedOrOpacity,i.label=23;case 23:return d<f.length?[4,this.renderStack(f[d])]:[3,26];case 24:i.sent(),i.label=25;case 25:return d++,[3,23];case 26:h=0,p=t.positiveZIndex,i.label=27;case 27:return h<p.length?[4,this.renderStack(p[h])]:[3,30];case 28:i.sent(),i.label=29;case 29:return h++,[3,27];case 30:return[2]}})})},n.prototype.mask=function(t){this.ctx.beginPath(),this.ctx.moveTo(0,0),this.ctx.lineTo(this.canvas.width,0),this.ctx.lineTo(this.canvas.width,this.canvas.height),this.ctx.lineTo(0,this.canvas.height),this.ctx.lineTo(0,0),this.formatPath(t.slice(0).reverse()),this.ctx.closePath()},n.prototype.path=function(t){this.ctx.beginPath(),this.formatPath(t),this.ctx.closePath()},n.prototype.formatPath=function(t){var e=this;t.forEach(function(t,n){var r=PA(t)?t.start:t;0===n?e.ctx.moveTo(r.x,r.y):e.ctx.lineTo(r.x,r.y),PA(t)&&e.ctx.bezierCurveTo(t.startControl.x,t.startControl.y,t.endControl.x,t.endControl.y,t.end.x,t.end.y)})},n.prototype.renderRepeat=function(t,e,n,r){this.path(t),this.ctx.fillStyle=e,this.ctx.translate(n,r),this.ctx.fill(),this.ctx.translate(-n,-r)},n.prototype.resizeImage=function(t,e,n){var r;if(t.width===e&&t.height===n)return t;var i=(null!==(r=this.canvas.ownerDocument)&&void 0!==r?r:document).createElement("canvas");return i.width=Math.max(1,e),i.height=Math.max(1,n),i.getContext("2d").drawImage(t,0,0,t.width,t.height,0,0,e,n),i},n.prototype.renderBackgroundImage=function(t){return r(this,void 0,void 0,function(){var e,n,r,A,o;return i(this,function(a){switch(a.label){case 0:e=t.styles.backgroundImage.length-1,n=function(n){var A,o,a,s,l,c,u,d,f,h,p,g,m,y,v,b,w,B,x,C,E,O,k,F,Q,M,U,S,_,I,T;return i(this,function(i){switch(i.label){case 0:if(0!==n.type)return[3,5];A=void 0,o=n.url,i.label=1;case 1:return i.trys.push([1,3,,4]),[4,r.context.cache.match(o)];case 2:return A=i.sent(),[3,4];case 3:return i.sent(),r.context.logger.error("Error loading background-image "+o),[3,4];case 4:return A&&(a=no(t,e,[A.width,A.height,A.width/A.height]),b=a[0],O=a[1],k=a[2],y=r.ctx.createPattern(r.resizeImage(A,x=a[3],C=a[4]),"repeat"),r.renderRepeat(b,y,O,k)),[3,6];case 5:1===n.type?(s=no(t,e,[null,null,null]),b=s[0],O=s[1],k=s[2],l=ke(n.angle,x=s[3],C=s[4]),c=l[0],u=l[1],d=l[2],f=l[3],h=l[4],(p=document.createElement("canvas")).width=x,p.height=C,g=p.getContext("2d"),m=g.createLinearGradient(u,f,d,h),Oe(n.stops,c).forEach(function(t){return m.addColorStop(t.stop,he(t.color))}),g.fillStyle=m,g.fillRect(0,0,x,C),x>0&&C>0&&(y=r.ctx.createPattern(p,"repeat"),r.renderRepeat(b,y,O,k))):function(t){return 2===t.type}(n)&&(v=no(t,e,[null,null,null]),b=v[0],w=v[1],B=v[2],C=v[4],O=Ae((E=0===n.position.length?[ne]:n.position)[0],x=v[3]),k=Ae(E[E.length-1],C),F=function(t,e,n,r,i){var A=0,o=0;switch(t.size){case 0:0===t.shape?A=o=Math.min(Math.abs(e),Math.abs(e-r),Math.abs(n),Math.abs(n-i)):1===t.shape&&(A=Math.min(Math.abs(e),Math.abs(e-r)),o=Math.min(Math.abs(n),Math.abs(n-i)));break;case 2:if(0===t.shape)A=o=Math.min(Fe(e,n),Fe(e,n-i),Fe(e-r,n),Fe(e-r,n-i));else if(1===t.shape){var a=Math.min(Math.abs(n),Math.abs(n-i))/Math.min(Math.abs(e),Math.abs(e-r)),s=Qe(r,i,e,n,!0);o=a*(A=Fe(s[0]-e,(s[1]-n)/a))}break;case 1:0===t.shape?A=o=Math.max(Math.abs(e),Math.abs(e-r),Math.abs(n),Math.abs(n-i)):1===t.shape&&(A=Math.max(Math.abs(e),Math.abs(e-r)),o=Math.max(Math.abs(n),Math.abs(n-i)));break;case 3:if(0===t.shape)A=o=Math.max(Fe(e,n),Fe(e,n-i),Fe(e-r,n),Fe(e-r,n-i));else if(1===t.shape){a=Math.max(Math.abs(n),Math.abs(n-i))/Math.max(Math.abs(e),Math.abs(e-r));var l=Qe(r,i,e,n,!1);o=a*(A=Fe(l[0]-e,(l[1]-n)/a))}}return Array.isArray(t.size)&&(A=Ae(t.size[0],r),o=2===t.size.length?Ae(t.size[1],i):A),[A,o]}(n,O,k,x,C),M=F[1],(Q=F[0])>0&&M>0&&(U=r.ctx.createRadialGradient(w+O,B+k,0,w+O,B+k,Q),Oe(n.stops,2*Q).forEach(function(t){return U.addColorStop(t.stop,he(t.color))}),r.path(b),r.ctx.fillStyle=U,Q!==M?(S=t.bounds.left+.5*t.bounds.width,_=t.bounds.top+.5*t.bounds.height,T=1/(I=M/Q),r.ctx.save(),r.ctx.translate(S,_),r.ctx.transform(1,0,0,I,0,0),r.ctx.translate(-S,-_),r.ctx.fillRect(w,T*(B-_)+_,x,C*T),r.ctx.restore()):r.ctx.fill())),i.label=6;case 6:return e--,[2]}})},r=this,A=0,o=t.styles.backgroundImage.slice(0).reverse(),a.label=1;case 1:return A<o.length?[5,n(o[A])]:[3,4];case 2:a.sent(),a.label=3;case 3:return A++,[3,1];case 4:return[2]}})})},n.prototype.renderSolidBorder=function(t,e,n){return r(this,void 0,void 0,function(){return i(this,function(r){return this.path(qA(n,e)),this.ctx.fillStyle=he(t),this.ctx.fill(),[2]})})},n.prototype.renderDoubleBorder=function(t,e,n,A){return r(this,void 0,void 0,function(){var r,o;return i(this,function(i){switch(i.label){case 0:return e<3?[4,this.renderSolidBorder(t,n,A)]:[3,2];case 1:return i.sent(),[2];case 2:return r=function(t,e){switch(e){case 0:return JA(t.topLeftBorderBox,t.topLeftBorderDoubleOuterBox,t.topRightBorderBox,t.topRightBorderDoubleOuterBox);case 1:return JA(t.topRightBorderBox,t.topRightBorderDoubleOuterBox,t.bottomRightBorderBox,t.bottomRightBorderDoubleOuterBox);case 2:return JA(t.bottomRightBorderBox,t.bottomRightBorderDoubleOuterBox,t.bottomLeftBorderBox,t.bottomLeftBorderDoubleOuterBox);default:return JA(t.bottomLeftBorderBox,t.bottomLeftBorderDoubleOuterBox,t.topLeftBorderBox,t.topLeftBorderDoubleOuterBox)}}(A,n),this.path(r),this.ctx.fillStyle=he(t),this.ctx.fill(),o=function(t,e){switch(e){case 0:return JA(t.topLeftBorderDoubleInnerBox,t.topLeftPaddingBox,t.topRightBorderDoubleInnerBox,t.topRightPaddingBox);case 1:return JA(t.topRightBorderDoubleInnerBox,t.topRightPaddingBox,t.bottomRightBorderDoubleInnerBox,t.bottomRightPaddingBox);case 2:return JA(t.bottomRightBorderDoubleInnerBox,t.bottomRightPaddingBox,t.bottomLeftBorderDoubleInnerBox,t.bottomLeftPaddingBox);default:return JA(t.bottomLeftBorderDoubleInnerBox,t.bottomLeftPaddingBox,t.topLeftBorderDoubleInnerBox,t.topLeftPaddingBox)}}(A,n),this.path(o),this.ctx.fill(),[2]}})})},n.prototype.renderNodeBackgroundAndBorders=function(t){return r(this,void 0,void 0,function(){var e,n,r,A,o,a,s,l,c=this;return i(this,function(i){switch(i.label){case 0:return this.applyEffects(t.getEffects(2)),n=!fe((e=t.container.styles).backgroundColor)||e.backgroundImage.length,r=[{style:e.borderTopStyle,color:e.borderTopColor,width:e.borderTopWidth},{style:e.borderRightStyle,color:e.borderRightColor,width:e.borderRightWidth},{style:e.borderBottomStyle,color:e.borderBottomColor,width:e.borderBottomWidth},{style:e.borderLeftStyle,color:e.borderLeftColor,width:e.borderLeftWidth}],A=ho(oo(e.backgroundClip,0),t.curves),n||e.boxShadow.length?(this.ctx.save(),this.path(A),this.ctx.clip(),fe(e.backgroundColor)||(this.ctx.fillStyle=he(e.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(t.container)]):[3,2];case 1:i.sent(),this.ctx.restore(),e.boxShadow.slice(0).reverse().forEach(function(e){c.ctx.save();var n,r,i,A,o=NA(t.curves),a=e.inset?0:1e4,s=(n=(e.inset?1:-1)*e.spread.number-a,r=(e.inset?1:-1)*e.spread.number,i=e.spread.number*(e.inset?-2:2),A=e.spread.number*(e.inset?-2:2),o.map(function(t,e){switch(e){case 0:return t.add(n,r);case 1:return t.add(n+i,r);case 2:return t.add(n+i,r+A);case 3:return t.add(n,r+A)}return t}));e.inset?(c.path(o),c.ctx.clip(),c.mask(s)):(c.mask(o),c.ctx.clip(),c.path(s)),c.ctx.shadowOffsetX=e.offsetX.number+a,c.ctx.shadowOffsetY=e.offsetY.number,c.ctx.shadowColor=he(e.color),c.ctx.shadowBlur=e.blur.number,c.ctx.fillStyle=e.inset?he(e.color):"rgba(0,0,0,1)",c.ctx.fill(),c.ctx.restore()}),i.label=2;case 2:o=0,a=0,s=r,i.label=3;case 3:return a<s.length?0!==(l=s[a]).style&&!fe(l.color)&&l.width>0?2!==l.style?[3,5]:[4,this.renderDashedDottedBorder(l.color,l.width,o,t.curves,2)]:[3,11]:[3,13];case 4:return i.sent(),[3,11];case 5:return 3!==l.style?[3,7]:[4,this.renderDashedDottedBorder(l.color,l.width,o,t.curves,3)];case 6:return i.sent(),[3,11];case 7:return 4!==l.style?[3,9]:[4,this.renderDoubleBorder(l.color,l.width,o,t.curves)];case 8:return i.sent(),[3,11];case 9:return[4,this.renderSolidBorder(l.color,o,t.curves)];case 10:i.sent(),i.label=11;case 11:o++,i.label=12;case 12:return a++,[3,3];case 13:return[2]}})})},n.prototype.renderDashedDottedBorder=function(t,e,n,A,o){return r(this,void 0,void 0,function(){var r,a,s,l,c,u,d,f,h,p,g,m,y,v,b,w;return i(this,function(i){return this.ctx.save(),r=function(t,e){switch(e){case 0:return ZA(t.topLeftBorderStroke,t.topRightBorderStroke);case 1:return ZA(t.topRightBorderStroke,t.bottomRightBorderStroke);case 2:return ZA(t.bottomRightBorderStroke,t.bottomLeftBorderStroke);default:return ZA(t.bottomLeftBorderStroke,t.topLeftBorderStroke)}}(A,n),a=qA(A,n),2===o&&(this.path(a),this.ctx.clip()),PA(a[0])?(s=a[0].start.x,l=a[0].start.y):(s=a[0].x,l=a[0].y),PA(a[1])?(c=a[1].end.x,u=a[1].end.y):(c=a[1].x,u=a[1].y),d=0===n||2===n?Math.abs(s-c):Math.abs(l-u),this.ctx.beginPath(),this.formatPath(3===o?r:a.slice(0,2)),f=e<3?3*e:2*e,h=e<3?2*e:e,3===o&&(f=e,h=e),p=!0,d<=2*f?p=!1:d<=2*f+h?(f*=g=d/(2*f+h),h*=g):(m=Math.floor((d+h)/(f+h)),y=(d-m*f)/(m-1),h=(v=(d-(m+1)*f)/m)<=0||Math.abs(h-y)<Math.abs(h-v)?y:v),p&&this.ctx.setLineDash(3===o?[0,f+h]:[f,h]),3===o?(this.ctx.lineCap="round",this.ctx.lineWidth=e):this.ctx.lineWidth=2*e+1.1,this.ctx.strokeStyle=he(t),this.ctx.stroke(),this.ctx.setLineDash([]),2===o&&(PA(a[0])&&(b=a[3],w=a[0],this.ctx.beginPath(),this.formatPath([new IA(b.end.x,b.end.y),new IA(w.start.x,w.start.y)]),this.ctx.stroke()),PA(a[1])&&(b=a[1],w=a[2],this.ctx.beginPath(),this.formatPath([new IA(b.end.x,b.end.y),new IA(w.start.x,w.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]})})},n.prototype.render=function(t){return r(this,void 0,void 0,function(){return i(this,function(e){switch(e.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=he(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),n=new XA(t,null),r=new WA(n),YA(n,r,r,i=[]),$A(n.container,i),[4,this.renderStack(r)];case 1:return e.sent(),this.applyEffects([]),[2,this.canvas]}var n,r,i})})},n}(co),fo=function(t){return t instanceof bi||t instanceof vi||t instanceof yi&&t.type!==pi&&t.type!==hi},ho=function(t,e){switch(t){case 0:return NA(e);case 2:return function(t){return[t.topLeftContentBox,t.topRightContentBox,t.bottomRightContentBox,t.bottomLeftContentBox]}(e);default:return DA(e)}},po=function(t){switch(t){case 1:return"center";case 2:return"right";default:return"left"}},go=["-apple-system","system-ui"],mo=function(t){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?t.filter(function(t){return-1===go.indexOf(t)}):t},yo=function(t){function n(e,n){var r=t.call(this,e,n)||this;return r.canvas=n.canvas?n.canvas:document.createElement("canvas"),r.ctx=r.canvas.getContext("2d"),r.options=n,r.canvas.width=Math.floor(n.width*n.scale),r.canvas.height=Math.floor(n.height*n.scale),r.canvas.style.width=n.width+"px",r.canvas.style.height=n.height+"px",r.ctx.scale(r.options.scale,r.options.scale),r.ctx.translate(-n.x,-n.y),r.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized ("+n.width+"x"+n.height+" at "+n.x+","+n.y+") with scale "+n.scale),r}return e(n,t),n.prototype.render=function(t){return r(this,void 0,void 0,function(){var e,n;return i(this,function(r){switch(r.label){case 0:return e=Wr(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,t),[4,vo(e)];case 1:return n=r.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=he(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(n,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}})})},n}(co),vo=function(t){return new Promise(function(e,n){var r=new Image;r.onload=function(){e(r)},r.onerror=n,r.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent((new XMLSerializer).serializeToString(t))})},bo=function(){function t(t){var e=t.enabled;this.id=t.id,this.enabled=e,this.start=Date.now()}return t.prototype.debug=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this.enabled&&("undefined"!=typeof window&&window.console&&"function"==typeof console.debug?console.debug.apply(console,A([this.id,this.getTime()+"ms"],t)):this.info.apply(this,t))},t.prototype.getTime=function(){return Date.now()-this.start},t.prototype.info=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this.enabled&&"undefined"!=typeof window&&window.console&&"function"==typeof console.info&&console.info.apply(console,A([this.id,this.getTime()+"ms"],t))},t.prototype.warn=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this.enabled&&("undefined"!=typeof window&&window.console&&"function"==typeof console.warn?console.warn.apply(console,A([this.id,this.getTime()+"ms"],t)):this.info.apply(this,t))},t.prototype.error=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this.enabled&&("undefined"!=typeof window&&window.console&&"function"==typeof console.error?console.error.apply(console,A([this.id,this.getTime()+"ms"],t)):this.info.apply(this,t))},t.instances={},t}(),wo=function(){function t(e,n){var r;this.windowBounds=n,this.instanceName="#"+t.instanceCount++,this.logger=new bo({id:this.instanceName,enabled:e.logging}),this.cache=null!==(r=e.cache)&&void 0!==r?r:new EA(this,e)}return t.instanceCount=1,t}();"undefined"!=typeof window&&CA.setContext(window);var Bo=function(t,e){return r(void 0,void 0,void 0,function(){var r,A,s,l,c,u,d,f,h,p,g,m,y,v,b,w,B,x,C,E,O,k,F,Q,M,U,S,_,I,T,L,P,j,H,N,D,R,K;return i(this,function(i){switch(i.label){case 0:if(!t||"object"!=typeof t)return[2,Promise.reject("Invalid element provided as first argument")];if(!(r=t.ownerDocument))throw new Error("Element is not attached to a Document");if(!(A=r.defaultView))throw new Error("Document is not attached to a Window");return s={allowTaint:null!==(k=e.allowTaint)&&void 0!==k&&k,imageTimeout:null!==(F=e.imageTimeout)&&void 0!==F?F:15e3,proxy:e.proxy,useCORS:null!==(Q=e.useCORS)&&void 0!==Q&&Q},l=n({logging:null===(M=e.logging)||void 0===M||M,cache:e.cache},s),c={windowWidth:null!==(U=e.windowWidth)&&void 0!==U?U:A.innerWidth,windowHeight:null!==(S=e.windowHeight)&&void 0!==S?S:A.innerHeight,scrollX:null!==(_=e.scrollX)&&void 0!==_?_:A.pageXOffset,scrollY:null!==(I=e.scrollY)&&void 0!==I?I:A.pageYOffset},u=new o(c.scrollX,c.scrollY,c.windowWidth,c.windowHeight),d=new wo(l,u),f=null!==(T=e.foreignObjectRendering)&&void 0!==T&&T,h={allowTaint:null!==(L=e.allowTaint)&&void 0!==L&&L,onclone:e.onclone,ignoreElements:e.ignoreElements,inlineImages:f,copyStyles:f},d.logger.debug("Starting document clone with size "+u.width+"x"+u.height+" scrolled to "+-u.left+","+-u.top),p=new sA(d,t,h),(g=p.clonedReferenceElement)?[4,p.toIFrame(r,u)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return m=i.sent(),y=Li(g)||"HTML"===g.tagName?function(t){var e=t.body,n=t.documentElement;if(!e||!n)throw new Error("Unable to get document size");var r=Math.max(Math.max(e.scrollWidth,n.scrollWidth),Math.max(e.offsetWidth,n.offsetWidth),Math.max(e.clientWidth,n.clientWidth)),i=Math.max(Math.max(e.scrollHeight,n.scrollHeight),Math.max(e.offsetHeight,n.offsetHeight),Math.max(e.clientHeight,n.clientHeight));return new o(0,0,r,i)}(g.ownerDocument):a(d,g),v=y.width,b=y.height,w=y.left,B=y.top,x=xo(d,g,e.backgroundColor),C={canvas:e.canvas,backgroundColor:x,scale:null!==(j=null!==(P=e.scale)&&void 0!==P?P:A.devicePixelRatio)&&void 0!==j?j:1,x:(null!==(H=e.x)&&void 0!==H?H:0)+w,y:(null!==(N=e.y)&&void 0!==N?N:0)+B,width:null!==(D=e.width)&&void 0!==D?D:Math.ceil(v),height:null!==(R=e.height)&&void 0!==R?R:Math.ceil(b)},f?(d.logger.debug("Document cloned, using foreign object rendering"),[4,new yo(d,C).render(g)]):[3,3];case 2:return E=i.sent(),[3,5];case 3:return d.logger.debug("Document cloned, element located at "+w+","+B+" with size "+v+"x"+b+" using computed rendering"),d.logger.debug("Starting DOM parsing"),O=Ei(d,g),x===O.styles.backgroundColor&&(O.styles.backgroundColor=Be.TRANSPARENT),d.logger.debug("Starting renderer for element at "+C.x+","+C.y+" with size "+C.width+"x"+C.height),[4,new uo(d,C).render(O)];case 4:E=i.sent(),i.label=5;case 5:return(null===(K=e.removeContainer)||void 0===K||K)&&(sA.destroy(m)||d.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),d.logger.debug("Finished rendering"),[2,E]}})})},xo=function(t,e,n){var r=e.ownerDocument,i=r.documentElement?we(t,getComputedStyle(r.documentElement).backgroundColor):Be.TRANSPARENT,A=r.body?we(t,getComputedStyle(r.body).backgroundColor):Be.TRANSPARENT,o="string"==typeof n?we(t,n):null===n?Be.TRANSPARENT:4294967295;return e===r.documentElement?fe(i)?fe(A)?o:A:i:o};return function(t,e){return void 0===e&&(e={}),Bo(t,e)}}()},"./node_modules/.pnpm/is-arrayish@0.3.4/node_modules/is-arrayish/index.js"(t){t.exports=function(t){return!(!t||"string"==typeof t)&&(t instanceof Array||Array.isArray(t)||t.length>=0&&(t.splice instanceof Function||Object.getOwnPropertyDescriptor(t,t.length-1)&&"String"!==t.constructor.name))}},"./node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_SetCache.js"(t,e,n){var r=n("./node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_MapCache.js"),i=n("./node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_setCacheAdd.js"),A=n("./node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_setCacheHas.js");function o(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new r;++e<n;)this.add(t[e])}o.prototype.add=o.prototype.push=i,o.prototype.has=A,t.exports=o},"./node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_arraySome.js"(t){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}},"./node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_baseIsEqual.js"(t,e,n){var r=n("./node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_baseIsEqualDeep.js"),i=n("./node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/isObjectLike.js");t.exports=function t(e,n,A,o,a){return e===n||(null==e||null==n||!i(e)&&!i(n)?e!=e&&n!=n:r(e,n,A,o,t,a))}},"./node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_baseIsEqualDeep.js"(t,e,n){var r=n("./node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_Stack.js"),i=n("./node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_equalArrays.js"),A=n("./node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_equalByTag.js"),o=n("./node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_equalObjects.js"),a=n("./node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_getTag.js"),s=n("./node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/isArray.js"),l=n("./node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/isBuffer.js"),c=n("./node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/isTypedArray.js"),u="[object Arguments]",d="[object Array]",f="[object Object]",h=Object.prototype.hasOwnProperty;t.exports=function(t,e,n,p,g,m){var y=s(t),v=s(e),b=y?d:a(t),w=v?d:a(e),B=(b=b==u?f:b)==f,x=(w=w==u?f:w)==f,C=b==w;if(C&&l(t)){if(!l(e))return!1;y=!0,B=!1}if(C&&!B)return m||(m=new r),y||c(t)?i(t,e,n,p,g,m):A(t,e,b,n,p,g,m);if(!(1&n)){var E=B&&h.call(t,"__wrapped__"),O=x&&h.call(e,"__wrapped__");if(E||O){var k=E?t.value():t,F=O?e.value():e;return m||(m=new r),g(k,F,n,p,m)}}return!!C&&(m||(m=new r),o(t,e,n,p,g,m))}},"./node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_cacheHas.js"(t){t.exports=function(t,e){return t.has(e)}},"./node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_equalArrays.js"(t,e,n){var r=n("./node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_SetCache.js"),i=n("./node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_arraySome.js"),A=n("./node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_cacheHas.js");t.exports=function(t,e,n,o,a,s){var l=1&n,c=t.length,u=e.length;if(c!=u&&!(l&&u>c))return!1;var d=s.get(t),f=s.get(e);if(d&&f)return d==e&&f==t;var h=-1,p=!0,g=2&n?new r:void 0;for(s.set(t,e),s.set(e,t);++h<c;){var m=t[h],y=e[h];if(o)var v=l?o(y,m,h,e,t,s):o(m,y,h,t,e,s);if(void 0!==v){if(v)continue;p=!1;break}if(g){if(!i(e,function(t,e){if(!A(g,e)&&(m===t||a(m,t,n,o,s)))return g.push(e)})){p=!1;break}}else if(m!==y&&!a(m,y,n,o,s)){p=!1;break}}return s.delete(t),s.delete(e),p}},"./node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_equalByTag.js"(t,e,n){var r=n("./node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_Symbol.js"),i=n("./node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_Uint8Array.js"),A=n("./node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/eq.js"),o=n("./node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_equalArrays.js"),a=n("./node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_mapToArray.js"),s=n("./node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_setToArray.js"),l=r?r.prototype:void 0,c=l?l.valueOf:void 0;t.exports=function(t,e,n,r,l,u,d){switch(n){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!u(new i(t),new i(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return A(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var f=a;case"[object Set]":if(f||(f=s),t.size!=e.size&&!(1&r))return!1;var h=d.get(t);if(h)return h==e;r|=2,d.set(t,e);var p=o(f(t),f(e),r,l,u,d);return d.delete(t),p;case"[object Symbol]":if(c)return c.call(t)==c.call(e)}return!1}},"./node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_equalObjects.js"(t,e,n){var r=n("./node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_getAllKeys.js"),i=Object.prototype.hasOwnProperty;t.exports=function(t,e,n,A,o,a){var s=1&n,l=r(t),c=l.length;if(c!=r(e).length&&!s)return!1;for(var u=c;u--;){var d=l[u];if(!(s?d in e:i.call(e,d)))return!1}var f=a.get(t),h=a.get(e);if(f&&h)return f==e&&h==t;var p=!0;a.set(t,e),a.set(e,t);for(var g=s;++u<c;){var m=t[d=l[u]],y=e[d];if(A)var v=s?A(y,m,d,e,t,a):A(m,y,d,t,e,a);if(!(void 0===v?m===y||o(m,y,n,A,a):v)){p=!1;break}g||(g="constructor"==d)}if(p&&!g){var b=t.constructor,w=e.constructor;b==w||!("constructor"in t)||!("constructor"in e)||"function"==typeof b&&b instanceof b&&"function"==typeof w&&w instanceof w||(p=!1)}return a.delete(t),a.delete(e),p}},"./node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_mapToArray.js"(t){t.exports=function(t){var e=-1,n=Array(t.size);return t.forEach(function(t,r){n[++e]=[r,t]}),n}},"./node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_setCacheAdd.js"(t){t.exports=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this}},"./node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_setCacheHas.js"(t){t.exports=function(t){return this.__data__.has(t)}},"./node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_setToArray.js"(t){t.exports=function(t){var e=-1,n=Array(t.size);return t.forEach(function(t){n[++e]=t}),n}},"./node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/isEqual.js"(t,e,n){var r=n("./node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_baseIsEqual.js");t.exports=function(t,e){return r(t,e)}},"./node_modules/.pnpm/pdfast@0.2.0/node_modules/pdfast/src/helper.js"(t){"use strict";var e=t.exports;t.exports.isNumber=function(t){return"number"==typeof t},t.exports.findMin=function(t){if(0===t.length)return 1/0;for(var e=t[0],n=1;n<t.length;n++)e=Math.min(e,t[n]);return e},t.exports.findMax=function(t){if(0===t.length)return-1/0;for(var e=t[0],n=1;n<t.length;n++)e=Math.max(e,t[n]);return e},t.exports.findMinMulti=function(t){for(var n=e.findMin(t[0]),r=1;r<t.length;r++)n=Math.min(n,e.findMin(t[r]));return n},t.exports.findMaxMulti=function(t){for(var n=e.findMax(t[0]),r=1;r<t.length;r++)n=Math.max(n,e.findMax(t[r]));return n},t.exports.inside=function(t,e,n){return t<=n&&n<=e}},"./node_modules/.pnpm/pdfast@0.2.0/node_modules/pdfast/src/index.js"(t,e,n){"use strict";var r=Math.log(2),i=t.exports,A=n("./node_modules/.pnpm/pdfast@0.2.0/node_modules/pdfast/src/helper.js");function o(t){return 1-Math.abs(t)}t.exports.getUnifiedMinMax=function(t,e){return i.getUnifiedMinMaxMulti([t],e)},t.exports.getUnifiedMinMaxMulti=function(t,e){var n=!1,r=!1,i=A.isNumber((e=e||{}).width)?e.width:2,o=A.isNumber(e.size)?e.size:50,a=A.isNumber(e.min)?e.min:(n=!0,A.findMinMulti(t)),s=A.isNumber(e.max)?e.max:(r=!0,A.findMaxMulti(t)),l=(s-a)/(o-1);return n&&(a-=2*i*l),r&&(s+=2*i*l),{min:a,max:s}},t.exports.create=function(t,e){if(!t||0===t.length)return[];var n=A.isNumber((e=e||{}).size)?e.size:50,r=A.isNumber(e.width)?e.width:2,a=i.getUnifiedMinMax(t,{size:n,width:r,min:e.min,max:e.max}),s=a.min,l=a.max-s,c=l/(n-1);if(0===l)return[{x:s,y:1}];for(var u=[],d=0;d<n;d++)u.push({x:s+d*c,y:0});var f=function(t,e){for(var n={},r=0,i=-e;i<=e;i++)r+=t(i/e),n[i]=r;return n}(o,r),h=f[r],p=f[r-1]-f[r-2],g=0;t.forEach(function(t){var e=function(t){return Math.floor((t-s)/c)}(t);if(!(e+r<0||e-r>=u.length)){var n=Math.max(e-r,0),i=e,o=Math.min(e+r,u.length-1),a=n-(e-r),l=h/(h-(f[-r-1+a]||0)-(f[-r-1+(e+r-o)]||0));a>0&&(g+=l*(a-1)*p);var d=Math.max(0,e-r+1);A.inside(0,u.length-1,d)&&(u[d].y+=1*l*p),A.inside(0,u.length-1,i+1)&&(u[i+1].y-=2*l*p),A.inside(0,u.length-1,o+1)&&(u[o+1].y+=1*l*p)}});var m=g,y=0,v=0;return u.forEach(function(t){t.y=m+=y+=t.y,v+=m}),v>0&&u.forEach(function(t){t.y/=v}),u},t.exports.getExpectedValueFromPdf=function(t){if(t&&0!==t.length){var e=0;return t.forEach(function(t){e+=t.x*t.y}),e}},t.exports.getXWithLeftTailArea=function(t,e){if(t&&0!==t.length){for(var n=0,r=0,i=0;i<t.length&&(r=i,!((n+=t[i].y)>=e));i++);return t[r].x}},t.exports.getPerplexity=function(t){if(t&&0!==t.length){var e=0;return t.forEach(function(t){var n=Math.log(t.y);isFinite(n)&&(e+=t.y*n)}),e=-e/r,Math.pow(2,e)}}},"./node_modules/.pnpm/simple-swizzle@0.2.4/node_modules/simple-swizzle/index.js"(t,e,n){"use strict";var r=n("./node_modules/.pnpm/is-arrayish@0.3.4/node_modules/is-arrayish/index.js"),i=Array.prototype.concat,A=Array.prototype.slice,o=t.exports=function(t){for(var e=[],n=0,o=t.length;n<o;n++){var a=t[n];r(a)?e=i.call(e,A.call(a)):e.push(a)}return e};o.wrap=function(t){return function(){return t(o(arguments))}}},"./src/components/fragments/async/extensions/G2.tsx"(t,e,n){"use strict";n.r(e),n.d(e,{default:()=>xS});var r={};n.r(r),n.d(r,{area:()=>Yp,bottom:()=>rg,bottomLeft:()=>rg,bottomRight:()=>rg,inside:()=>rg,left:()=>rg,outside:()=>ag,right:()=>rg,spider:()=>ug,surround:()=>dg,top:()=>rg,topLeft:()=>rg,topRight:()=>rg});var i={};n.r(i),n.d(i,{interpolateBlues:()=>Sm,interpolateBrBG:()=>zg,interpolateBuGn:()=>sm,interpolateBuPu:()=>cm,interpolateCividis:()=>Km,interpolateCool:()=>ly,interpolateCubehelixDefault:()=>ay,interpolateGnBu:()=>dm,interpolateGreens:()=>Im,interpolateGreys:()=>Lm,interpolateInferno:()=>by,interpolateMagma:()=>vy,interpolateOrRd:()=>hm,interpolateOranges:()=>Rm,interpolatePRGn:()=>Vg,interpolatePiYG:()=>Xg,interpolatePlasma:()=>wy,interpolatePuBu:()=>ym,interpolatePuBuGn:()=>gm,interpolatePuOr:()=>$g,interpolatePuRd:()=>bm,interpolatePurples:()=>jm,interpolateRainbow:()=>uy,interpolateRdBu:()=>Zg,interpolateRdGy:()=>tm,interpolateRdPu:()=>Bm,interpolateRdYlBu:()=>nm,interpolateRdYlGn:()=>im,interpolateReds:()=>Nm,interpolateSinebow:()=>py,interpolateSpectral:()=>om,interpolateTurbo:()=>gy,interpolateViridis:()=>yy,interpolateWarm:()=>sy,interpolateYlGn:()=>Om,interpolateYlGnBu:()=>Cm,interpolateYlOrBr:()=>Fm,interpolateYlOrRd:()=>Mm,schemeAccent:()=>Ug,schemeBlues:()=>Um,schemeBrBG:()=>Kg,schemeBuGn:()=>am,schemeBuPu:()=>lm,schemeCategory10:()=>Mg,schemeDark2:()=>Sg,schemeGnBu:()=>um,schemeGreens:()=>_m,schemeGreys:()=>Tm,schemeObservable10:()=>_g,schemeOrRd:()=>fm,schemeOranges:()=>Dm,schemePRGn:()=>Gg,schemePaired:()=>Ig,schemePastel1:()=>Tg,schemePastel2:()=>Lg,schemePiYG:()=>Wg,schemePuBu:()=>mm,schemePuBuGn:()=>pm,schemePuOr:()=>Yg,schemePuRd:()=>vm,schemePurples:()=>Pm,schemeRdBu:()=>qg,schemeRdGy:()=>Jg,schemeRdPu:()=>wm,schemeRdYlBu:()=>em,schemeRdYlGn:()=>rm,schemeReds:()=>Hm,schemeSet1:()=>Pg,schemeSet2:()=>jg,schemeSet3:()=>Hg,schemeSpectral:()=>Am,schemeTableau10:()=>Ng,schemeYlGn:()=>Em,schemeYlGnBu:()=>xm,schemeYlOrBr:()=>km,schemeYlOrRd:()=>Qm});var A={};n.r(A),n.d(A,{geoAlbers:()=>MO,geoAlbersUsa:()=>UO,geoAzimuthalEqualArea:()=>TO,geoAzimuthalEqualAreaRaw:()=>IO,geoAzimuthalEquidistant:()=>PO,geoAzimuthalEquidistantRaw:()=>LO,geoConicConformal:()=>KO,geoConicConformalRaw:()=>RO,geoConicEqualArea:()=>QO,geoConicEqualAreaRaw:()=>FO,geoConicEquidistant:()=>WO,geoConicEquidistantRaw:()=>VO,geoEqualEarth:()=>tk,geoEqualEarthRaw:()=>JO,geoEquirectangular:()=>GO,geoEquirectangularRaw:()=>zO,geoGnomonic:()=>nk,geoGnomonicRaw:()=>ek,geoIdentity:()=>rk,geoMercator:()=>HO,geoMercatorRaw:()=>jO,geoNaturalEarth1:()=>Ak,geoNaturalEarth1Raw:()=>ik,geoOrthographic:()=>ak,geoOrthographicRaw:()=>ok,geoProjection:()=>EO,geoProjectionMutator:()=>OO,geoStereographic:()=>lk,geoStereographicRaw:()=>sk,geoTransverseMercator:()=>uk,geoTransverseMercatorRaw:()=>ck});var o={};n.r(o),n.d(o,{frequency:()=>CF,id:()=>EF,name:()=>OF,weight:()=>xF});var a=n("react/jsx-runtime");const s=()=>[["cartesian"]];s.props={};const l=(t={})=>{const e={startAngle:-Math.PI/2,endAngle:3*Math.PI/2,innerRadius:0,outerRadius:1},n=Object.assign(Object.assign({},e),t);return Object.assign(Object.assign({},n),(r=n.startAngle,i=n.endAngle,r%=2*Math.PI,i%=2*Math.PI,r<0&&(r=2*Math.PI+r),i<0&&(i=2*Math.PI+i),r>=i&&(i+=2*Math.PI),{startAngle:r,endAngle:i}));var r,i},c=t=>{const{startAngle:e,endAngle:n,innerRadius:r,outerRadius:i}=l(t);return[["translate",0,.5],["reflect.y"],["translate",0,-.5],["polar",e,n,r,i]]};c.props={};const u=()=>[["transpose"],["translate",.5,.5],["reflect.x"],["translate",-.5,-.5]];u.props={transform:!0};const d=t=>{const{startAngle:e,endAngle:n,innerRadius:r,outerRadius:i}=((t={})=>{const e={startAngle:-Math.PI/2,endAngle:3*Math.PI/2,innerRadius:0,outerRadius:1};return Object.assign(Object.assign({},e),t)})(t);return[["transpose"],["translate",.5,.5],["reflect.x"],["translate",-.5,-.5],...c({startAngle:e,endAngle:n,innerRadius:r,outerRadius:i})]};d.props={};const f=()=>[["parallel",0,1,0,1]];f.props={};const h=({focusX:t=0,focusY:e=0,distortionX:n=2,distortionY:r=2,visual:i=!1})=>[["fisheye",t,e,n,r,i]];h.props={transform:!0};const p=(t={})=>{const e={startAngle:-Math.PI/2,endAngle:3*Math.PI/2,innerRadius:0,outerRadius:1};return Object.assign(Object.assign({},e),t)},g=t=>{const{startAngle:e,endAngle:n,innerRadius:r,outerRadius:i}=p(t);return[["transpose"],["translate",.5,.5],["reflect"],["translate",-.5,-.5],...c({startAngle:e,endAngle:n,innerRadius:r,outerRadius:i})]};g.props={};const m=t=>{const{startAngle:e=-Math.PI/2,endAngle:n=3*Math.PI/2,innerRadius:r=0,outerRadius:i=1}=t;return[["parallel",0,1,0,1],...c({startAngle:e,endAngle:n,innerRadius:r,outerRadius:i})]};m.props={};const y=({startAngle:t=0,endAngle:e=6*Math.PI,innerRadius:n=0,outerRadius:r=1})=>[["translate",.5,.5],["reflect.y"],["translate",-.5,-.5],["helix",t,e,n,r]];y.props={};const v=({value:t})=>e=>e.map(()=>t);v.props={};const b=({value:t})=>e=>e.map(e=>e[t]);b.props={};const w=({value:t})=>e=>e.map(t);w.props={};const B=({value:t})=>()=>t;B.props={};var x=n("./node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/esm/lodash/is-array.js");const C=function(t){return"object"==typeof t&&null!==t};var E=n("./node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/esm/lodash/is-type.js");const O=function(t){if(!C(t)||!(0,E.A)(t,"Object"))return!1;if(null===Object.getPrototypeOf(t))return!0;for(var e=t;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e};function k(t,e){if(Object.hasOwn)return Object.hasOwn(t,e);if(null==t)throw new TypeError("Cannot convert undefined or null to object");return Object.prototype.hasOwnProperty.call(Object(t),e)}function F(t,e,n,r){for(var i in n=n||0,r=r||5,e)if(k(e,i)){var A=e[i];null!==A&&O(A)?(O(t[i])||(t[i]={}),n<r?F(t[i],A,n+1,r):t[i]=e[i]):(0,x.A)(A)?(t[i]=[],t[i]=t[i].concat(A)):void 0!==A&&(t[i]=A)}}const Q=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];for(var r=0;r<e.length;r+=1)F(t,e[r]);return t};function M(t,e){if(null!==t)return{type:"column",value:t,field:e}}function U(t,e){const n=M(t,e);return Object.assign(Object.assign({},n),{inferred:!0})}function S(t,e){if(null!==t)return{type:"column",value:t,field:e,visual:!0}}function _(t,e){const n=M(t,e);return Object.assign(Object.assign({},n),{constant:!1})}function I(t,e){const n=[];for(const r of t)n[r]=e;return n}function T(t,e){const n=t[e];if(!n)return[null,null];const{value:r,field:i=null}=n;return[r,i]}function L(t,...e){for(const n of e){if("string"!=typeof n)return[n,null];{const[e,r]=T(t,n);if(null!==e)return[e,r]}}return[null,null]}function P(t){return!(t instanceof Date)&&"object"==typeof t}const j=()=>(t,e)=>{const{encode:n}=e,{y1:r}=n;return void 0!==r?[t,e]:[t,Q({},e,{encode:{y1:U(I(t,0))}})]};j.props={};const H=()=>(t,e)=>{const{encode:n}=e,{x:r}=n;return void 0!==r?[t,e]:[t,Q({},e,{encode:{x:U(I(t,0))},scale:{x:{guide:null}}})]};H.props={};var N=n("./node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/arc.js");function D(t){const{transformations:e}=t.getOptions();return e.map(([t])=>t).filter(t=>"transpose"===t).length%2!=0}function R(t){const{transformations:e}=t.getOptions();return e.some(([t])=>"polar"===t)}function K(t){const{transformations:e}=t.getOptions();return e.some(([t])=>"reflect"===t)&&e.some(([t])=>t.startsWith("transpose"))}function z(t){const{transformations:e}=t.getOptions();return e.some(([t])=>"helix"===t)}function G(t){const{transformations:e}=t.getOptions();return e.some(([t])=>"parallel"===t)}function V(t){const{transformations:e}=t.getOptions();return e.some(([t])=>"fisheye"===t)}function W(t){return z(t)||R(t)}function X(t){const{transformations:e}=t.getOptions(),[,,,n,r]=e.find(t=>"polar"===t[0]);return[+n,+r]}function Y(t,e=!0){const{transformations:n}=t.getOptions(),[,r,i]=n.find(t=>"polar"===t[0]);return e?[180*+r/Math.PI,180*+i/Math.PI]:[r,i]}var $=n("./node_modules/.pnpm/@antv+g@6.3.1/node_modules/@antv/g/dist/index.esm.js");class q extends Map{constructor(t,e=J){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:e}}),null!=t)for(const[e,n]of t)this.set(e,n)}get(t){return super.get(Z(this,t))}has(t){return super.has(Z(this,t))}set(t,e){return super.set(function({_intern:t,_key:e},n){const r=e(n);return t.has(r)?t.get(r):(t.set(r,n),n)}(this,t),e)}delete(t){return super.delete(function({_intern:t,_key:e},n){const r=e(n);return t.has(r)&&(n=t.get(r),t.delete(r)),n}(this,t))}}function Z({_intern:t,_key:e},n){const r=e(n);return t.has(r)?t.get(r):n}function J(t){return null!==t&&"object"==typeof t?t.valueOf():t}function tt(t){return t}function et(t,...e){return At(t,tt,tt,e)}function nt(t,...e){return At(t,Array.from,tt,e)}function rt(t,e,...n){return At(t,tt,e,n)}function it(t,e,...n){return At(t,Array.from,e,n)}function At(t,e,n,r){return function t(i,A){if(A>=r.length)return n(i);const o=new q,a=r[A++];let s=-1;for(const t of i){const e=a(t,++s,i),n=o.get(e);n?n.push(t):o.set(e,[t])}for(const[e,n]of o)o.set(e,t(n,A));return e(o)}(t,0)}Set;var ot=n("./node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/esm/lodash/is-nil.js");const at=function(t){return(0,ot.A)(t)?"":t.toString()},st=function(t){var e=at(t);return e.charAt(0).toLowerCase()+e.substring(1)};function lt({map:t,initKey:e},n){const r=e(n);return t.has(r)?t.get(r):n}function ct(t){return"object"==typeof t?t.valueOf():t}class ut extends Map{constructor(t){if(super(),this.map=new Map,this.initKey=ct,null!==t)for(const[e,n]of t)this.set(e,n)}get(t){return super.get(lt({map:this.map,initKey:this.initKey},t))}has(t){return super.has(lt({map:this.map,initKey:this.initKey},t))}set(t,e){return super.set(function({map:t,initKey:e},n){const r=e(n);return t.has(r)?t.get(r):(t.set(r,n),n)}({map:this.map,initKey:this.initKey},t),e)}delete(t){return super.delete(function({map:t,initKey:e},n){const r=e(n);return t.has(r)&&(n=t.get(r),t.delete(r)),n}({map:this.map,initKey:this.initKey},t))}}class dt{transformBreaks(t){return t}constructor(t){var e;this.options=Q({},this.getDefaultOptions()),this.update((null===(e=null==t?void 0:t.breaks)||void 0===e?void 0:e.length)?this.transformBreaks(t):t)}getOptions(){return this.options}update(t={}){const e=t.breaks?this.transformBreaks(t):t;this.options=Q({},this.options,e),this.rescale(e)}rescale(t){}}const ft=Symbol("defaultUnknown");function ht(t,e,n){for(let r=0;r<e.length;r+=1)t.has(e[r])||t.set(n(e[r]),r)}function pt(t){const{value:e,from:n,to:r,mapper:i,notFoundReturn:A}=t;let o=i.get(e);if(void 0===o){if(A!==ft)return A;o=n.push(e)-1,i.set(e,o)}return r[o%r.length]}function gt(t){return t instanceof Date?t=>`${t}`:"object"==typeof t?t=>JSON.stringify(t):t=>t}class mt extends dt{getDefaultOptions(){return{domain:[],range:[],unknown:ft}}constructor(t){super(t)}map(t){return 0===this.domainIndexMap.size&&ht(this.domainIndexMap,this.getDomain(),this.domainKey),pt({value:this.domainKey(t),mapper:this.domainIndexMap,from:this.getDomain(),to:this.getRange(),notFoundReturn:this.options.unknown})}invert(t){return 0===this.rangeIndexMap.size&&ht(this.rangeIndexMap,this.getRange(),this.rangeKey),pt({value:this.rangeKey(t),mapper:this.rangeIndexMap,from:this.getRange(),to:this.getDomain(),notFoundReturn:this.options.unknown})}rescale(t){const[e]=this.options.domain,[n]=this.options.range;if(this.domainKey=gt(e),this.rangeKey=gt(n),!this.rangeIndexMap)return this.rangeIndexMap=new Map,void(this.domainIndexMap=new Map);t&&!t.range||this.rangeIndexMap.clear(),(!t||t.domain||t.compare)&&(this.domainIndexMap.clear(),this.sortedDomain=void 0)}clone(){return new mt(this.options)}getRange(){return this.options.range}getDomain(){if(this.sortedDomain)return this.sortedDomain;const{domain:t,compare:e}=this.options;return this.sortedDomain=e?[...t].sort(e):t,this.sortedDomain}}function yt(t){return Math.round(1e12*t)/1e12}class vt extends mt{getDefaultOptions(){return{domain:[],range:[0,1],align:.5,round:!1,paddingInner:0,paddingOuter:0,padding:0,unknown:ft,flex:[]}}constructor(t){super(t)}clone(){return new vt(this.options)}getStep(t){return void 0===this.valueStep?1:"number"==typeof this.valueStep?this.valueStep:void 0===t?Array.from(this.valueStep.values())[0]:this.valueStep.get(t)}getBandWidth(t){return void 0===this.valueBandWidth?1:"number"==typeof this.valueBandWidth?this.valueBandWidth:void 0===t?Array.from(this.valueBandWidth.values())[0]:this.valueBandWidth.get(t)}getRange(){return this.adjustedRange}getPaddingInner(){const{padding:t,paddingInner:e}=this.options;return t>0?t:e}getPaddingOuter(){const{padding:t,paddingOuter:e}=this.options;return t>0?t:e}rescale(){super.rescale();const{align:t,domain:e,range:n,round:r,flex:i}=this.options,{adjustedRange:A,valueBandWidth:o,valueStep:a}=function(t){var e;const{domain:n}=t,r=n.length;if(0===r)return{valueBandWidth:void 0,valueStep:void 0,adjustedRange:[]};if(null===(e=t.flex)||void 0===e?void 0:e.length)return function(t){const{domain:e,range:n,paddingOuter:r,paddingInner:i,flex:A,round:o,align:a}=t,s=e.length,l=function(t,e){const n=e-t.length;return n>0?[...t,...new Array(n).fill(1)]:n<0?t.slice(0,e):t}(A,s),[c,u]=n,d=u-c,f=d/(2/s*r+1-1/s*i),h=f*i/s,p=f-s*h,g=function(t){const e=t.reduce((t,e)=>Math.min(t,e),1/0);return e===1/0?[]:t.map(t=>t/e)}(l),m=g.reduce((t,e)=>t+e),y=p/m,v=new ut(e.map((t,e)=>{const n=g[e]*y;return[t,o?Math.floor(n):n]})),b=new ut(e.map((t,e)=>{const n=g[e]*y+h;return[t,o?Math.floor(n):n]})),w=Array.from(b.values()).reduce((t,e)=>t+e),B=c+(d-(w-w/s*i))*a;let x=o?Math.round(B):B;const C=new Array(s);for(let t=0;t<s;t+=1)C[t]=yt(x),x+=b.get(e[t]);return{valueBandWidth:v,valueStep:b,adjustedRange:C}}(t);const{range:i,paddingOuter:A,paddingInner:o,round:a,align:s}=t;let l,c,u=i[0];const d=i[1]-u;l=d/Math.max(1,2*A+(r-o)),a&&(l=Math.floor(l)),u+=(d-l*(r-o))*s,c=l*(1-o),a&&(u=Math.round(u),c=Math.round(c));const f=new Array(r).fill(0).map((t,e)=>u+e*l);return{valueStep:l,valueBandWidth:c,adjustedRange:f}}({align:t,range:n,round:r,flex:i,paddingInner:this.getPaddingInner(),paddingOuter:this.getPaddingOuter(),domain:e});this.valueStep=a,this.valueBandWidth=o,this.adjustedRange=A}}var bt=n("./node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/esm/lodash/is-number.js");const wt=Math.sqrt(50),Bt=Math.sqrt(10),xt=Math.sqrt(2);function Ct(t,e,n){const r=(e-t)/Math.max(0,n),i=Math.floor(Math.log(r)/Math.LN10),A=r/10**i;return i>=0?(A>=wt?10:A>=Bt?5:A>=xt?2:1)*10**i:-(10**-i)/(A>=wt?10:A>=Bt?5:A>=xt?2:1)}function Et(t,e,n){const r=Math.abs(e-t)/Math.max(0,n);let i=10**Math.floor(Math.log(r)/Math.LN10);const A=r/i;return A>=wt?i*=10:A>=Bt?i*=5:A>=xt&&(i*=2),e<t?-i:i}const Ot=(t,e,n,r)=>{let i,A,o=t,a=e;if(o===a&&n>0)return[o];let s=Ct(o,a,n);if(0===s||!Number.isFinite(s))return[];if(s>0){o=Math.ceil(o/s),a=Math.floor(a/s),A=new Array(i=Math.ceil(a-o+1));for(let t=0;t<i;t+=1)A[t]=(o+t)*s}else{s=-s,o=Math.ceil(o*s),a=Math.floor(a*s),A=new Array(i=Math.ceil(a-o+1));for(let t=0;t<i;t+=1)A[t]=(o+t)/s}return((t,e)=>{if(!(null==e?void 0:e.length))return t;const n=[...t,...e.flatMap(t=>[t.start,t.end])],r=Array.from(new Set(n)).sort((t,e)=>t-e).filter(t=>!e.some(({start:e,end:n})=>t>e&&t<n));return r.length?r:t})(A,r)};class kt extends dt{getDefaultOptions(){return{range:[0],domain:[0,1],unknown:void 0,tickCount:5,tickMethod:Ot}}map(t){const[e]=this.options.range;return void 0!==e?e:this.options.unknown}invert(t){const[e]=this.options.range;return t===e&&void 0!==e?this.options.domain:[]}getTicks(){const{tickMethod:t,domain:e,tickCount:n}=this.options,[r,i]=e;return(0,bt.A)(r)&&(0,bt.A)(i)?t(r,i,n):[]}clone(){return new kt(this.options)}}function Ft(t){const{markType:e,nodeName:n}=t;return"heatmap"===e&&"image"===n}function Qt(t,e){const n=null!=e?e:function(t){var e;let n=t;for(;n;){if("view"===(null===(e=n.attributes)||void 0===e?void 0:e.class))return n;n=n.parentNode}return null}(t).__data__,r=t.__data__,{markKey:i,index:A,seriesIndex:o,normalized:a={x:0}}=r,{markState:s}=n,l=Array.from(s.keys()).find(t=>t.key===i);if(l)return o?o.map(t=>l.data[t]):Ft(t)?l.data[Math.round(l.data.length*a.x)]:l.data[A]}function Mt(t){return t}function Ut(t){return t.reduce((t,e)=>(n,...r)=>e(t(n,...r),...r),Mt)}function St(t){return t.replace(/( |^)[a-z]/g,t=>t.toUpperCase())}function _t(t=""){throw new Error(t)}function It(t,e){const{attributes:n}=e,r=new Set(["id","className"]);for(const[e,i]of Object.entries(n))r.has(e)||t.attr(e,i)}function Tt(t){return null!=t&&!Number.isNaN(t)}function Lt(t){const e=new Map;return n=>{if(e.has(n))return e.get(n);const r=t(n);return e.set(n,r),r}}function Pt(t,e){return jt(t,e)||{}}function jt(t,e){const n=Object.entries(t||{}).filter(([t])=>t.startsWith(e)).map(([t,n])=>[st(t.replace(e,"").trim()),n]).filter(([t])=>!!t);return 0===n.length?null:Object.fromEntries(n)}function Ht(t,...e){return Object.fromEntries(Object.entries(t).filter(([t])=>e.every(e=>!t.startsWith(e))))}function Nt(t,e){if(void 0===t)return null;if("number"==typeof t)return t;const n=+t.replace("%","");return Number.isNaN(n)?null:n/100*e}function Dt(t){return!("object"!=typeof t||t instanceof Date||null===t||Array.isArray(t))}function Rt(t){return null===t||!1===t}function Kt(t,e,n=5,r=0){if(!(r>=n)){for(const i of Object.keys(e)){const A=e[i];O(A)&&O(t[i])?Kt(t[i],A,n,r+1):t[i]=A}return t}}function zt(t){return new Gt([t],null,t,t.ownerDocument)}class Gt{constructor(t=null,e=null,n=null,r=null,i=[null,null,null,null,null],A=[],o=[]){this._elements=Array.from(t),this._data=e,this._parent=n,this._document=r,this._enter=i[0],this._update=i[1],this._exit=i[2],this._merge=i[3],this._split=i[4],this._transitions=A,this._facetElements=o}selectAll(t){const e="string"==typeof t?this._parent.querySelectorAll(t):t;return new Gt(e,null,this._elements[0],this._document)}selectFacetAll(t){const e="string"==typeof t?this._parent.querySelectorAll(t):t;return new Gt(this._elements,null,this._parent,this._document,void 0,void 0,e)}select(t){const e="string"==typeof t?this._parent.querySelectorAll(t)[0]||null:t;return new Gt([e],null,e,this._document)}append(t){const e="function"==typeof t?t:()=>this.createElement(t),n=[];if(null!==this._data){for(let t=0;t<this._data.length;t++){const r=this._data[t],[i,A]=Array.isArray(r)?r:[r,null],o=e(i,t);o.__data__=i,null!==A&&(o.__fromElements__=A),this._parent.appendChild(o),n.push(o)}return new Gt(n,null,this._parent,this._document)}for(let t=0;t<this._elements.length;t++){const r=this._elements[t],i=e(r.__data__,t);r.appendChild(i),n.push(i)}return new Gt(n,null,n[0],this._document)}maybeAppend(t,e,n){const r=this._elements[0],i=r.getElementById(t);if(i)return new Gt([i],null,this._parent,this._document);const A="string"==typeof e?this.createElement(e):e();return A.id=t,n&&(A.className=n),r.appendChild(A),new Gt([A],null,this._parent,this._document)}data(t,e=t=>t,n=()=>null){const r=[],i=[],A=new Set(this._elements),o=[],a=new Set,s=new Map(this._elements.map((t,n)=>[e(t.__data__,n),t])),l=new Map(this._facetElements.map((t,n)=>[e(t.__data__,n),t])),c=et(this._elements,t=>n(t.__data__));for(let u=0;u<t.length;u++){const d=t[u],f=e(d,u),h=n(d,u);if(s.has(f)){const t=s.get(f);t.__data__=d,t.__facet__=!1,i.push(t),A.delete(t),s.delete(f)}else if(l.has(f)){const t=l.get(f);t.__data__=d,t.__facet__=!0,i.push(t),l.delete(f)}else if(c.has(f)){const t=c.get(f);o.push([d,t]);for(const e of t)A.delete(e);c.delete(f)}else if(s.has(h)){const t=s.get(h);t.__toData__?t.__toData__.push(d):t.__toData__=[d],a.add(t),A.delete(t)}else r.push(d)}const u=[new Gt([],r,this._parent,this._document),new Gt(i,null,this._parent,this._document),new Gt(A,null,this._parent,this._document),new Gt([],o,this._parent,this._document),new Gt(a,null,this._parent,this._document)];return new Gt(this._elements,null,this._parent,this._document,u)}merge(t){const e=[...this._elements,...t._elements],n=[...this._transitions,...t._transitions];return new Gt(e,null,this._parent,this._document,void 0,n)}createElement(t){if(this._document)return this._document.createElement(t,{});const e=Gt.registry[t];return e?new e:_t(`Unknown node type: ${t}`)}join(t=t=>t,e=t=>t,n=t=>t.remove(),r=t=>t,i=t=>t.remove()){const A=t(this._enter),o=e(this._update),a=n(this._exit),s=r(this._merge),l=i(this._split);return o.merge(A).merge(a).merge(s).merge(l)}remove(){for(let t=0;t<this._elements.length;t++){const e=this._transitions[t];if(this._elements[t].__removed__=!0,e){const n=Array.isArray(e)?e:[e];Promise.all(n.map(t=>t.finished)).then(()=>{const e=this._elements[t];e.__removed__&&e.remove()})}else{const e=this._elements[t];e.__removed__&&e.remove()}}return new Gt([],null,this._parent,this._document,void 0,this._transitions)}each(t){for(let e=0;e<this._elements.length;e++){const n=this._elements[e];t(n.__data__,e,n)}return this}attr(t,e){const n="function"!=typeof e?()=>e:e;return this.each(function(r,i,A){void 0!==e&&(A[t]=n(r,i,A))})}style(t,e){const n="function"!=typeof e?()=>e:e;return this.each(function(r,i,A){void 0!==e&&(A.style[t]=n(r,i,A))})}transition(t){const e="function"!=typeof t?()=>t:t,{_transitions:n}=this;return this.each(function(t,r,i){n[r]=e(t,r,i)})}on(t,e){return this.each(function(n,r,i){i.addEventListener(t,e)}),this}call(t,...e){return t(this,...e),this}node(){return this._elements[0]}nodes(){return this._elements}transitions(){return this._transitions}parent(){return this._parent}}function Vt([t,e],[n,r]){return[t-n,e-r]}function Wt([t,e],[n,r]){return[t+n,e+r]}function Xt([t,e],[n,r]){return Math.sqrt(Math.pow(t-n,2)+Math.pow(e-r,2))}function Yt([t,e]){return Math.atan2(e,t)}function $t([t,e]){return Yt([t,e])+Math.PI/2}function qt(t,e){const n=Yt(t),r=Yt(e);return n<r?r-n:2*Math.PI-(n-r)}function Zt(t){let e=1/0,n=-1/0,r=1/0,i=-1/0;for(const[A,o]of t)e=Math.min(A,e),n=Math.max(A,n),r=Math.min(o,r),i=Math.max(o,i);return[e,r,n-e,i-r]}function Jt([t,e],[n,r]){return[(t+n)/2,(e+r)/2]}function te(t,e,n){return Math.max(e,Math.min(t,n))}function ee(t,e=10){return"number"!=typeof t||Math.abs(t)<1e-15?t:parseFloat(t.toFixed(e))}Gt.registry={g:$.YJ,rect:$.rw,circle:$.jl,path:$.wA,text:$.EY,ellipse:$.Pp,image:$._V,line:$.N1,polygon:$.tS,polyline:$.Ro,html:$.g3};const ne=function(t){return null!==t&&"function"!=typeof t&&isFinite(t.length)};function re(t){if(ne(t))return t[t.length-1]}const ie=function(t){return t};function Ae(t,e){return e-t?n=>(n-t)/(e-t):t=>.5}function oe(t,...e){return e.reduce((t,e)=>n=>t(e(n)),t)}function ae(t,e,n,r,i){let A=n||0,o=r||t.length;const a=i||(t=>t);for(;A<o;){const n=Math.floor((A+o)/2);a(t[n])>e?o=n:A=n+1}return A}var se=n("./node_modules/.pnpm/color-string@1.9.1/node_modules/color-string/index.js"),le=n.n(se);function ce(t,e,n){let r=n;return r<0&&(r+=1),r>1&&(r-=1),r<1/6?t+6*(e-t)*r:r<.5?e:r<2/3?t+(e-t)*(2/3-r)*6:t}function ue(t){const e=le().get(t);if(!e)return null;const{model:n,value:r}=e;return"rgb"===n?r:"hsl"===n?function(t){const e=t[0]/360,n=t[1]/100,r=t[2]/100,i=t[3];if(0===n)return[255*r,255*r,255*r,i];const A=r<.5?r*(1+n):r+n-r*n,o=2*r-A;return[255*ce(o,A,e+1/3),255*ce(o,A,e),255*ce(o,A,e-1/3),i]}(r):null}const de=(t,e)=>n=>t*(1-n)+e*n,fe=(t,e)=>"number"==typeof t&&"number"==typeof e?de(t,e):"string"==typeof t&&"string"==typeof e?((t,e)=>{const n=ue(t),r=ue(e);return null===n||null===r?n?()=>t:()=>e:t=>{const e=new Array(4);for(let i=0;i<4;i+=1)e[i]=n[i]*(1-t)+r[i]*t;const[i,A,o,a]=e;return`rgba(${Math.round(i)}, ${Math.round(A)}, ${Math.round(o)}, ${a})`}})(t,e):()=>t,he=(t,e)=>{const n=de(t,e);return t=>Math.round(n(t))};var pe=n("./node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/esm/lodash/is-undefined.js");function ge(t){return null===t}function me(t){return!(0,pe.A)(t)&&!ge(t)&&!Number.isNaN(t)}const ye=(t,e,n=5)=>{const r=[t,e];let i,A=0,o=r.length-1,a=r[A],s=r[o];return s<a&&([a,s]=[s,a],[A,o]=[o,A]),i=Ct(a,s,n),i>0?(a=Math.floor(a/i)*i,s=Math.ceil(s/i)*i,i=Ct(a,s,n)):i<0&&(a=Math.ceil(a*i)/i,s=Math.floor(s*i)/i,i=Ct(a,s,n)),i>0?(r[A]=Math.floor(a/i)*i,r[o]=Math.ceil(s/i)*i):i<0&&(r[A]=Math.ceil(a*i)/i,r[o]=Math.floor(s*i)/i),r},ve=(t,e,n)=>{const[r,i]=t,[A,o]=e;let a,s;return r<i?(a=Ae(r,i),s=n(A,o)):(a=Ae(i,r),s=n(o,A)),oe(s,a)},be=(t,e,n)=>{const r=Math.min(t.length,e.length)-1,i=new Array(r),A=new Array(r),o=t[0]>t[r],a=o?[...t].reverse():t,s=o?[...e].reverse():e;for(let t=0;t<r;t+=1)i[t]=Ae(a[t],a[t+1]),A[t]=n(s[t],s[t+1]);return e=>{const n=ae(t,e,1,r)-1;return oe(A[n],i[n])(e)}},we=(t,e,n,r)=>(Math.min(t.length,e.length)>2?be:ve)(t,e,r?he:n);class Be extends dt{getDefaultOptions(){return{domain:[0,1],range:[0,1],nice:!1,clamp:!1,round:!1,interpolate:de,tickCount:5}}map(t){return me(t)?this.output(t):this.options.unknown}invert(t){return me(t)?this.input(t):this.options.unknown}nice(){if(!this.options.nice)return;const[t,e,n,...r]=this.getTickMethodOptions();this.options.domain=this.chooseNice()(t,e,n,...r)}getTicks(){const{tickMethod:t}=this.options,[e,n,r,...i]=this.getTickMethodOptions();return t(e,n,r,...i)}getTickMethodOptions(){const{domain:t,tickCount:e}=this.options;return[t[0],t[t.length-1],e]}chooseNice(){return ye}rescale(){this.nice();const[t,e]=this.chooseTransforms();this.composeOutput(t,this.chooseClamp(t)),this.composeInput(t,e,this.chooseClamp(e))}chooseClamp(t){const{clamp:e,range:n}=this.options,r=this.options.domain.map(t),i=Math.min(r.length,n.length);return e?function(t,e){const n=e<t?e:t,r=t>e?t:e;return t=>Math.min(Math.max(n,t),r)}(r[0],r[i-1]):ie}composeOutput(t,e){const{domain:n,range:r,round:i,interpolate:A}=this.options,o=we(n.map(t),r,A,i);this.output=oe(o,e,t)}composeInput(t,e,n){const{domain:r,range:i}=this.options,A=we(i,r.map(t),de);this.input=oe(e,n,A)}}class xe extends Be{getDefaultOptions(){return{domain:[0,1],range:[0,1],unknown:void 0,nice:!1,clamp:!1,round:!1,interpolate:fe,tickMethod:Ot,tickCount:5}}removeUnsortedValues(t,e,n){let r=-1/0;const i=e.reduce((t,i,A)=>{if(0===A)return t;const o=r>0?r:i;return r>0&&(n?i>r:i<r)?t.push(A):(o-e[A-1])*(n?-1:1)<0?(r<0&&(r=e[A-1]),t.push(A)):r=-1/0,t},[]);return i.slice().reverse().forEach(n=>{t.splice(n,1),e.splice(n,1)}),{breaksDomain:t,breaksRange:e}}transformDomain(t){const{domain:e=[],range:n=[1,0],breaks:r=[],tickCount:i=5}=t,[A,o]=[Math.min(...e),Math.max(...e)],a=r.filter(({end:t})=>t<o).sort((t,e)=>t.start-e.start),s=Ot(A,o,i,a);re(s)<o&&s.push(o);const[l,c]=[n[0],re(n)],u=o-A,d=Math.abs(c-l),f=l>c,h=s.map(t=>{const e=(t-A)/u;return f?l-e*d:l+e*d}),[p,g]=[.2,.8];return a.forEach(({start:t,end:e,gap:n=.03,compress:r="middle"})=>{const i=s.indexOf(t),A=s.indexOf(e);let o=(h[i]+h[A])/2;"start"===r&&(o=h[i]),"end"===r&&(o=h[A]);const a=n*d/2;let l=f?o+a:o-a,c=f?o-a:o+a;l<p&&(c+=p-l,l=p),c>g&&(l-=c-g,c=g),l>g&&(c-=l-g,l=g),c<p&&(l+=p-c,c=p),h[i]=l,h[A]=c}),this.removeUnsortedValues(s,h,f)}transformBreaks(t){const{domain:e,breaks:n=[]}=t;if(!(0,x.A)(t.breaks))return t;const r=Math.max(...e),i=n.filter(({end:t})=>t<r),A={...t,breaks:i},{breaksDomain:o,breaksRange:a}=this.transformDomain(A);return{...t,domain:o,range:a,breaks:i,tickMethod:()=>[...o]}}chooseTransforms(){return[ie,ie]}clone(){return new xe(this.options)}}function Ce(t,e){let n,r;if(void 0===e)for(const e of t)null!=e&&(void 0===n?e>=e&&(n=r=e):(n>e&&(n=e),r<e&&(r=e)));else{let i=-1;for(let A of t)null!=(A=e(A,++i,t))&&(void 0===n?A>=A&&(n=r=A):(n>A&&(n=A),r<A&&(r=A)))}return[n,r]}function Ee(t,e){return Object.entries(t).reduce((n,[r,i])=>(n[r]=e(i,r,t),n),{})}function Oe(t){return t.map((t,e)=>e)}function ke(t){return t[0]}function Fe(t){return t[t.length-1]}function Qe(t,e){const n=[[],[]];return t.forEach(t=>{n[e(t)?0:1].push(t)}),n}function Me(t,e=t.length){if(1===e)return t.map(t=>[t]);const n=[];for(let r=0;r<t.length;r++)Me(t.slice(r+1),e-1).forEach(e=>{n.push([t[r],...e])});return n}function Ue(t,e){for(const[n,r]of Object.entries(e))t.style(n,r)}function Se(t,e,n,r,i){const A=Yt(Vt(r,e))+Math.PI,o=Yt(Vt(r,n))+Math.PI;return t.arc(r[0],r[1],i,A,o,o-A<0),t}function _e(t,e,n,r="y",i="between",A=!1){const o="y"===r||!0===r?n:e,a=((t,e)=>"y"===t||!0===t?e?180:90:e?90:0)(r,A),s=Oe(o),[l,c]=Ce(s,t=>o[t]),u=new xe({domain:[l,c],range:[0,100]}),d=t=>(0,bt.A)(o[t])&&!Number.isNaN(o[t])?u.map(o[t]):0,f={between:e=>`${t[e]} ${d(e)}%`,start:e=>0===e?`${t[e]} ${d(e)}%`:`${t[e-1]} ${d(e)}%, ${t[e]} ${d(e)}%`,end:e=>e===t.length-1?`${t[e]} ${d(e)}%`:`${t[e]} ${d(e)}%, ${t[e+1]} ${d(e)}%`};return`linear-gradient(${a}deg, ${s.sort((t,e)=>d(t)-d(e)).map(f[i]||f.between).join(",")})`}function Ie(t){const[e,n,r,i]=t;return[i,e,n,r]}function Te(t,e,n){const[r,i,,A]=D(t)?Ie(e):e,[o,a]=n,s=t.getCenter(),l=$t(Vt(r,s)),c=$t(Vt(i,s)),u=c===l&&o!==a?c+2*Math.PI:c,d=1e-4;return{startAngle:l+d,endAngle:(u-l>=0?u:2*Math.PI+u)-d,innerRadius:Xt(A,s),outerRadius:Xt(r,s)}}function Le(t){const{colorAttribute:e,opacityAttribute:n=e}=t;return`${n}Opacity`}function Pe(t,e){if(!R(t))return"";const n=t.getCenter(),{transform:r}=e;return`translate(${n[0]}, ${n[1]}) ${r||""}`}function je(t){if(1===t.length)return t[0];const[[e,n,r=0],[i,A,o=0]]=t;return[(e+i)/2,(n+A)/2,(r+o)/2]}var He=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n};function Ne(t,e,n,r,i={}){const{inset:A=0,radius:o=0,insetLeft:a=A,insetTop:s=A,insetRight:l=A,insetBottom:c=A,radiusBottomLeft:u=o,radiusBottomRight:d=o,radiusTopLeft:f=o,radiusTopRight:h=o,minWidth:p=-1/0,maxWidth:g=1/0,minHeight:m=-1/0}=i,y=He(i,["inset","radius","insetLeft","insetTop","insetRight","insetBottom","radiusBottomLeft","radiusBottomRight","radiusTopLeft","radiusTopRight","minWidth","maxWidth","minHeight"]);if(!R(r)&&!z(r)){const n=!!D(r),[i,,A]=n?Ie(e):e,[o,v]=i,[b,w]=Vt(A,i),B=(b>0?o:o+b)+a,x=(w>0?v:v+w)+s,C=Math.abs(b)-(a+l),E=Math.abs(w)-(s+c),O=n?te(C,m,1/0):te(C,p,g),k=n?te(E,p,g):te(E,m,1/0),F=n?B:B-(O-C)/2,Q=n?x-(k-E)/2:x-(k-E);return zt(t.createElement("rect",{})).style("x",F).style("y",Q).style("width",O).style("height",k).style("radius",[f,h,d,u]).call(Ue,y).node()}const{y:v,y1:b}=n,w=r.getCenter(),B=Te(r,e,[v,b]),x=(0,N.A)().cornerRadius(o).padAngle(A*Math.PI/180);return zt(t.createElement("path",{})).style("d",x(B)).style("transform",`translate(${w[0]}, ${w[1]})`).style("radius",o).style("inset",A).call(Ue,y).node()}const De=(t,e)=>{const{colorAttribute:n,opacityAttribute:r="fill",first:i=!0,last:A=!0}=t,o=He(t,["colorAttribute","opacityAttribute","first","last"]),{coordinate:a,document:s}=e;return(e,r,l)=>{const{color:c,radius:u=0}=l,d=He(l,["color","radius"]),f=d.lineWidth||1,{stroke:h,radius:p=u,radiusTopLeft:g=p,radiusTopRight:m=p,radiusBottomRight:y=p,radiusBottomLeft:v=p,innerRadius:b=0,innerRadiusTopLeft:w=b,innerRadiusTopRight:B=b,innerRadiusBottomRight:x=b,innerRadiusBottomLeft:C=b,lineWidth:E=("stroke"===n||h?f:0),inset:O=0,insetLeft:k=O,insetRight:F=O,insetBottom:Q=O,insetTop:M=O,minWidth:U,maxWidth:S,minHeight:_}=o,I=He(o,["stroke","radius","radiusTopLeft","radiusTopRight","radiusBottomRight","radiusBottomLeft","innerRadius","innerRadiusTopLeft","innerRadiusTopRight","innerRadiusBottomRight","innerRadiusBottomLeft","lineWidth","inset","insetLeft","insetRight","insetBottom","insetTop","minWidth","maxWidth","minHeight"]),{color:T=c,opacity:L}=r,P=[i?g:w,i?m:B,A?y:x,A?v:C],j=["radiusTopLeft","radiusTopRight","radiusBottomRight","radiusBottomLeft"];D(a)&&j.push(j.shift());const H=Object.assign(Object.assign({radius:p},Object.fromEntries(j.map((t,e)=>[t,P[e]]))),{inset:O,insetLeft:k,insetRight:F,insetBottom:Q,insetTop:M,minWidth:U,maxWidth:S,minHeight:_});return zt(Ne(s,e,r,a,H)).call(Ue,d).style("fill","transparent").style(n,T).style(Le(t),L).style("lineWidth",E).style("stroke",void 0===h?T:h).call(Ue,I).node()}};De.props={defaultEnterAnimation:"scaleInY",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};const Re=(t,e)=>De(Object.assign({colorAttribute:"fill"},t),e);Re.props=Object.assign(Object.assign({},De.props),{defaultMarker:"square"});const Ke=(t,e)=>De(Object.assign({colorAttribute:"stroke"},t),e);Ke.props=Object.assign(Object.assign({},De.props),{defaultMarker:"hollowSquare"});var ze=n("./node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/line.js");function Ge(){}function Ve(t){this._context=t}function We(t){return new Ve(t)}Ve.prototype={areaStart:Ge,areaEnd:Ge,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,e){t=+t,e=+e,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))}};var Xe=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n};function Ye(t,e,n,r,i){const[A,o,a,s]=t;return D(r)?i?[[n?n[1][0]:A[0],A[1]],o,a,[n?n[2][0]:s[0],s[1]]]:[A,[e?e[0][0]:o[0],o[1]],[e?e[3][0]:a[0],a[1]],s]:i?[[A[0],n?n[1][1]:A[1]],o,a,[s[0],n?n[2][1]:s[1]]]:[A,[o[0],e?e[0][1]:o[1]],[a[0],e?e[3][1]:a[1]],s]}const $e=(t,e)=>e/Math.tan(t/2);const qe=(t,e)=>{const{adjustPoints:n=Ye,radius:r,radiusTopLeft:i=r,radiusTopRight:A=r,radiusBottomRight:o=r,radiusBottomLeft:a=r,innerRadius:s=0,innerRadiusTopLeft:l=s,innerRadiusTopRight:c=s,innerRadiusBottomRight:u=s,innerRadiusBottomLeft:d=s,first:f=!0,last:h=!0}=t,p=Xe(t,["adjustPoints","radius","radiusTopLeft","radiusTopRight","radiusBottomRight","radiusBottomLeft","innerRadius","innerRadiusTopLeft","innerRadiusTopRight","innerRadiusBottomRight","innerRadiusBottomLeft","first","last"]),{coordinate:g,document:m}=e;return(t,e,r,s)=>{const{index:y}=e,{color:v}=r,b=Xe(r,["color"]),w=n(t,s[y+1],s[y-1],g,p.reverse),B=!!D(g),[x,C,E,O]=B?Ie(w):w,{color:k=v,opacity:F}=e,Q=[f&&null!=i?i:l,f&&null!=A?A:c,h&&null!=o?o:u,h&&null!=a?a:d],M=Q.find(t=>t>0)?function(t,e){const[n,r,i,A]=t,[o,a,s,l]=e,c=r[0]-n[0]>i[0]-A[0],u=Math.atan2(Math.abs(r[1]-i[1]),Math.abs(r[0]-i[0])),d=c?[$e(u,o),$e(u,a),s,l]:[o,a,$e(u,s),$e(u,l)],f=c?1:-1,h=d.map(t=>((t,e,n)=>({x:Math.cos(t)*e*n,y:Math.sin(t)*e}))(u,t,f));return[`M${n[0]+d[0]} ${n[1]}`,`L${r[0]-d[1]} ${r[1]}`,`Q${r[0]} ${r[1]} ${r[0]-h[1].x} ${r[1]+h[1].y}`,`L${i[0]+h[2].x} ${i[1]-h[2].y}`,`Q${i[0]} ${i[1]} ${i[0]-d[2]} ${i[1]}`,`L${A[0]+d[3]} ${A[1]}`,`Q${A[0]} ${A[1]} ${A[0]-h[3].x} ${A[1]-h[3].y}`,`L${n[0]+h[0].x} ${n[1]+h[0].y}`,`Q${n[0]} ${n[1]} ${n[0]+d[0]} ${n[1]}`,"Z"].join(" ")}([x,C,E,O],Q):(0,ze.A)().curve(We)([x,C,E,O]);return zt(m.createElement("path",{})).call(Ue,b).style("d",M).style("fill",k).style("fillOpacity",F).call(Ue,p).node()}};function Ze(t,e,n,r,i){const[A,o,a,s]=t;return D(r)?i?[[n?n[1][0]:(A[0]+s[0])/2,A[1]],o,a,[n?n[2][0]:(A[0]+s[0])/2,s[1]]]:[A,[e?e[0][0]:(o[0]+a[0])/2,o[1]],[e?e[3][0]:(o[0]+a[0])/2,a[1]],s]:i?[[A[0],n?n[1][1]:(A[1]+s[1])/2],o,a,[s[0],n?n[2][1]:(A[1]+s[1])/2]]:[A,[o[0],e?e[0][1]:(o[1]+a[1])/2],[a[0],e?e[3][1]:(o[1]+a[1])/2],s]}qe.props={defaultMarker:"square"};const Je=(t,e)=>qe(Object.assign({adjustPoints:Ze},t),e);function tn(t){return Math.abs(t)>10?String(t):t.toString().padStart(2,"0")}function en(t){const e=`${t.getFullYear()}-${tn(t.getMonth()+1)}-${tn(t.getDate())}`,n=t.getHours(),r=t.getMinutes(),i=t.getSeconds();return n||r||i?`${e} ${tn(n)}:${tn(r)}:${tn(i)}`:e}Je.props={defaultMarker:"square"};const nn=(t={})=>{const{channel:e="x"}=t;return(t,n)=>{const{encode:r}=n,{tooltip:i}=n;if(Rt(i))return[t,n];const{title:A}=i;if(void 0!==A)return[t,n];const o=Object.keys(r).filter(t=>t.startsWith(e)).filter(t=>!r[t].inferred).map(t=>T(r,t)).filter(([t])=>t).map(t=>t[0]);if(0===o.length)return[t,n];const a=[];for(const e of t)a[e]={value:o.map(t=>t[e]instanceof Date?en(t[e]):t[e]).join(", ")};return[t,Q({},n,{tooltip:{title:a}})]}};nn.props={};const rn=t=>{const{channel:e}=t;return(t,n)=>{const{encode:r,tooltip:i}=n;if(Rt(i))return[t,n];const{items:A=[]}=i;if(!A||A.length>0)return[t,n];const o=(Array.isArray(e)?e:[e]).flatMap(t=>Object.keys(r).filter(e=>e.startsWith(t)).map(t=>{const{field:e,value:n,inferred:i=!1,aggregate:A}=r[t];return i?null:A&&n?{channel:t}:e?{field:e}:n?{channel:t}:null}).filter(t=>null!==t));return[t,Q({},n,{tooltip:{items:o}})]}};rn.props={};const An=()=>(t,e)=>{const{encode:n}=e,{key:r}=n,i=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n}(n,["key"]);if(void 0!==r)return[t,e];const A=Object.values(i).map(({value:t})=>t),o=t.map(t=>A.filter(Array.isArray).map(e=>e[t]).join("-"));return[t,Q({},e,{encode:{key:M(o)}})]};function on(t={}){const{shapes:e}=t;return[{name:"color"},{name:"opacity"},{name:"shape",range:e},{name:"enterType"},{name:"enterDelay",scaleKey:"enter"},{name:"enterDuration",scaleKey:"enter"},{name:"enterEasing"},{name:"key",scale:"identity"},{name:"groupKey",scale:"identity"},{name:"label",scale:"identity"}]}function an(t={}){return[...on(t),{name:"title",scale:"identity"}]}function sn(){return[{type:nn,channel:"color"},{type:rn,channel:["x","y"]}]}function ln(){return[{type:nn,channel:"x"},{type:rn,channel:["y"]}]}function cn(t={}){return on(t)}function un(){return[{type:An}]}function dn(t,e){return t.getBandWidth(t.invert(e))}function fn(t,e,n={}){const{x:r,y:i,series:A}=e,{x:o,y:a,series:s}=t,{style:{bandOffset:l=(s?0:.5),bandOffsetX:c=l,bandOffsetY:u=l}={}}=n,d=!!(null==o?void 0:o.getBandWidth),f=!!(null==a?void 0:a.getBandWidth),h=!!(null==s?void 0:s.getBandWidth);return d||f?(t,e)=>{const n=d?dn(o,r[e]):0,l=f?dn(a,i[e]):0,p=h&&A?(dn(s,A[e])/2+ +A[e])*n:0,[g,m]=t;return[g+c*n+p,m+u*l]}:t=>t}function hn(t){return parseFloat(t)/100}function pn(t,e,n,r){const{x:i,y:A}=n,{innerWidth:o,innerHeight:a}=r.getOptions(),s=Array.from(t,t=>{const e=i[t],n=A[t];return[["string"==typeof e?hn(e)*o:+e,"string"==typeof n?hn(n)*a:+n]]});return[t,s]}function gn(t){return"function"==typeof t?t:e=>e[t]}function mn(t,e){return Array.from(t,gn(e))}function yn(t,e){const n=function(t){return Array.isArray(t)?{links:t}:t&&"object"==typeof t?{links:t.links||[],nodes:t.nodes}:{links:[]}}(t),{source:r=t=>t.source,target:i=t=>t.target,value:A=t=>t.value}=e,{links:o,nodes:a}=n;if(!o.length)return{links:[],nodes:a||[]};const s=mn(o,r),l=mn(o,i),c=mn(o,A);return{links:o.map((t,e)=>({target:l[e],source:s[e],value:c[e]})),nodes:a||Array.from(new Set([...s,...l]),t=>({key:t}))}}function vn(t,e){return t.getBandWidth(t.invert(e))}An.props={};const bn={rect:Re,hollow:Ke,funnel:qe,pyramid:Je},wn=()=>(t,e,n,r)=>{const{x:i,y1:A,series:o,size:a}=n;let{y:s}=n;s=s.map(t=>void 0!==t?t:1);const l=e.x,c=e.series,[u]=r.getSize(),d=a?a.map(t=>+t/u):null,f=a?(t,e,n)=>{const r=t+e/2,i=d[n];return[r-i/2,r+i/2]}:(t,e,n)=>[t,t+e],h=Array.from(t,t=>{const e=vn(l,i[t]),n=e*(c?vn(c,null==o?void 0:o[t]):1),a=+i[t]+(+(null==o?void 0:o[t])||0)*e,[u,d]=f(a,n,t),h=+s[t],p=+A[t];return[[u,h],[d,h],[d,p],[u,p]].map(t=>r.map(t))});return[t,h]};wn.props={defaultShape:"rect",defaultLabelShape:"label",composite:!1,shape:bn,channels:[...an({shapes:Object.keys(bn)}),{name:"x",scale:"band",required:!0},{name:"y",required:!0},{name:"series",scale:"band"},{name:"size"}],preInference:[...un(),{type:j},{type:H}],postInference:[...ln()],interaction:{shareTooltip:!0}};const Bn={rect:Re,hollow:Ke},xn=()=>(t,e,n,r)=>{const{x:i,x1:A,y:o,y1:a}=n,s=Array.from(t,t=>[[+i[t],+o[t]],[+A[t],+o[t]],[+A[t],+a[t]],[+i[t],+a[t]]].map(t=>r.map(t)));return[t,s]};xn.props={defaultShape:"rect",defaultLabelShape:"label",composite:!1,shape:Bn,channels:[...an({shapes:Object.keys(Bn)}),{name:"x",required:!0},{name:"y",required:!0}],preInference:[...un(),{type:j}],postInference:[...ln()],interaction:{shareTooltip:!0}};var Cn=n("./node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/linear.js"),En=kn(Cn.A);function On(t){this._curve=t}function kn(t){function e(e){return new On(t(e))}return e._curve=t,e}function Fn(t){var e=t.curve;return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t.curve=function(t){return arguments.length?e(kn(t)):e()._curve},t}function Qn(t){const e="function"==typeof t?t:t.render;return class extends $.K9{connectedCallback(){this.draw()}attributeChangedCallback(){this.draw()}draw(){e(this)}}}On.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(t,e){this._curve.point(e*Math.sin(t),e*-Math.cos(t))}};var Mn=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n};const Un=Qn(t=>{const{d1:e,d2:n,style1:r,style2:i}=t.attributes,A=t.ownerDocument;zt(t).maybeAppend("line",()=>A.createElement("path",{})).style("d",e).call(Ue,r),zt(t).maybeAppend("line1",()=>A.createElement("path",{})).style("d",n).call(Ue,i)}),Sn=(t,e)=>{const{curve:n,gradient:r=!1,gradientColor:i="between",defined:A=t=>!Number.isNaN(t)&&null!=t,connect:o=!1}=t,a=Mn(t,["curve","gradient","gradientColor","defined","connect"]),{coordinate:s,document:l}=e;return(t,e,c)=>{const{color:u,lineWidth:d}=c,f=Mn(c,["color","lineWidth"]),{color:h=u,size:p=d,seriesColor:g,seriesX:m,seriesY:y}=e,v=Pe(s,e),b=D(s),w=r&&g?_e(g,m,y,r,i,b):h,B=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},f),w&&{stroke:w}),p&&{lineWidth:p}),v&&{transform:v}),a);let x;if(R(s)){const t=s.getCenter();x=e=>Fn((0,ze.A)().curve(En)).angle((n,r)=>$t(Vt(e[r],t))).radius((n,r)=>Xt(e[r],t)).defined(([t,e])=>A(t)&&A(e)).curve(n)(e)}else x=(0,ze.A)().x(t=>t[0]).y(t=>t[1]).defined(([t,e])=>A(t)&&A(e)).curve(n);const[C,E]=function(t,e){const n=[],r=[];let i=!1,A=null;for(const o of t)e(o[0])&&e(o[1])?(n.push(o),i&&(i=!1,r.push([A,o])),A=o):i=!0;return[n,r]}(t,A),O=Pt(B,"connect"),k=!!E.length;return!k||o&&!Object.keys(O).length?zt(l.createElement("path",{})).style("d",x(C)||[]).call(Ue,B).node():k&&!o?zt(l.createElement("path",{})).style("d",x(t)).call(Ue,B).node():zt(new Un).style("style1",Object.assign(Object.assign({},B),O)).style("style2",B).style("d1",(F=E,F.map(x).join(","))).style("d2",x(t)).node();var F}};Sn.props={defaultMarker:"smooth",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};const _n=(t,e)=>{const{coordinate:n}=e;return(...r)=>{const i=R(n)?We:Cn.A;return Sn(Object.assign({curve:i},t),e)(...r)}};function In(t,e,n){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-n),t._x2,t._y2)}function Tn(t,e){this._context=t,this._k=(1-e)/6}function Ln(t,e){this._context=t,this._k=(1-e)/6}function Pn(t,e,n){var r=t._x1,i=t._y1,A=t._x2,o=t._y2;if(t._l01_a>1e-12){var a=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,s=3*t._l01_a*(t._l01_a+t._l12_a);r=(r*a-t._x0*t._l12_2a+t._x2*t._l01_2a)/s,i=(i*a-t._y0*t._l12_2a+t._y2*t._l01_2a)/s}if(t._l23_a>1e-12){var l=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,c=3*t._l23_a*(t._l23_a+t._l12_a);A=(A*l+t._x1*t._l23_2a-e*t._l12_2a)/c,o=(o*l+t._y1*t._l23_2a-n*t._l12_2a)/c}t._context.bezierCurveTo(r,i,A,o,t._x2,t._y2)}function jn(t,e){this._context=t,this._alpha=e}function Hn(t,e){this._context=t,this._alpha=e}_n.props=Object.assign(Object.assign({},Sn.props),{defaultMarker:"line"}),Tn.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:In(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:In(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}},function t(e){function n(t){return new Tn(t,e)}return n.tension=function(e){return t(+e)},n}(0),Ln.prototype={areaStart:Ge,areaEnd:Ge,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:In(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}},function t(e){function n(t){return new Ln(t,e)}return n.tension=function(e){return t(+e)},n}(0),jn.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3;default:Pn(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}},function t(e){function n(t){return e?new jn(t,e):new Tn(t,0)}return n.alpha=function(e){return t(+e)},n}(.5),Hn.prototype={areaStart:Ge,areaEnd:Ge,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:Pn(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const Nn=function t(e){function n(t){return e?new Hn(t,e):new Ln(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function Dn(t){return t<0?-1:1}function Rn(t,e,n){var r=t._x1-t._x0,i=e-t._x1,A=(t._y1-t._y0)/(r||i<0&&-0),o=(n-t._y1)/(i||r<0&&-0),a=(A*i+o*r)/(r+i);return(Dn(A)+Dn(o))*Math.min(Math.abs(A),Math.abs(o),.5*Math.abs(a))||0}function Kn(t,e){var n=t._x1-t._x0;return n?(3*(t._y1-t._y0)/n-e)/2:e}function zn(t,e,n){var r=t._x0,i=t._x1,A=t._y1,o=(i-r)/3;t._context.bezierCurveTo(r+o,t._y0+o*e,i-o,A-o*n,i,A)}function Gn(t){this._context=t}function Vn(t){this._context=new Wn(t)}function Wn(t){this._context=t}function Xn(t){return new Gn(t)}function Yn(t){return new Vn(t)}Gn.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:zn(this,this._t0,Kn(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var n=NaN;if(e=+e,(t=+t)!==this._x1||e!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,zn(this,Kn(this,n=Rn(this,t,e)),n);break;default:zn(this,this._t0,n=Rn(this,t,e))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=n}}},(Vn.prototype=Object.create(Gn.prototype)).point=function(t,e){Gn.prototype.point.call(this,e,t)},Wn.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,n,r,i,A){this._context.bezierCurveTo(e,t,r,n,A,i)}};const $n=(t,e)=>{const n=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n}(t,[]),{coordinate:r}=e;return(...t)=>{const i=R(r)?Nn:D(r)?Yn:Xn;return Sn(Object.assign({curve:i},n),e)(...t)}};function qn(t,e){this._context=t,this._t=e}function Zn(t){return new qn(t,.5)}function Jn(t){return new qn(t,0)}function tr(t){return new qn(t,1)}$n.props=Object.assign(Object.assign({},Sn.props),{defaultMarker:"smooth"}),qn.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var n=this._x*(1-this._t)+t*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,e)}}this._x=t,this._y=e}};const er=(t,e)=>Sn(Object.assign({curve:tr},t),e);er.props=Object.assign(Object.assign({},Sn.props),{defaultMarker:"hv"});const nr=(t,e)=>Sn(Object.assign({curve:Jn},t),e);nr.props=Object.assign(Object.assign({},Sn.props),{defaultMarker:"vh"});const rr=(t,e)=>Sn(Object.assign({curve:Zn},t),e);rr.props=Object.assign(Object.assign({},Sn.props),{defaultMarker:"hvh"});var ir=n("./node_modules/.pnpm/d3-path@3.1.0/node_modules/d3-path/src/path.js");function Ar(t,e,n,r,i){const A=Yt(Vt(n,e)),o=A+Math.PI/2,a=[r/2*Math.cos(o),r/2*Math.sin(o)],s=[i/2*Math.cos(o),i/2*Math.sin(o)],l=[i/2*Math.cos(A),i/2*Math.sin(A)],c=[r/2*Math.cos(A),r/2*Math.sin(A)],u=Wt(e,a),d=Wt(n,s),f=Wt(d,l),h=Wt(n,l),p=Vt(h,s),g=Vt(n,s),m=Vt(e,a),y=Vt(m,c),v=Vt(e,c),b=Vt(u,c);t.moveTo(...u),t.lineTo(...d),t.arcTo(...f,...h,i/2),t.arcTo(...p,...g,i/2),t.lineTo(...m),t.arcTo(...y,...v,r/2),t.arcTo(...b,...u,r/2),t.closePath()}const or=(t,e)=>{const{document:n}=e;return(e,r,i)=>{const{seriesSize:A,color:o}=r,{color:a}=i,s=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n}(i,["color"]),l=(0,ir.Ae)();for(let t=0;t<e.length-1;t++){const n=e[t],r=e[t+1],i=A[t],o=A[t+1];[...n,...r].every(Tt)&&Ar(l,n,r,i,o)}return zt(n.createElement("path",{})).call(Ue,s).style("fill",o||a).style("d",l.toString()).call(Ue,t).node()}};or.props=Object.assign(Object.assign({},Sn.props),{defaultMarker:"line"});const ar=()=>(t,e)=>{const{style:n={},encode:r}=e,{series:i}=r,{gradient:A}=n;return!A||i?[t,e]:[t,Q({},e,{encode:{series:S(I(t,void 0))}})]};ar.props={};const sr=()=>(t,e)=>{const{encode:n}=e,{series:r,color:i}=n;if(void 0!==r||void 0===i)return[t,e];const[A,o]=T(n,"color");return[t,Q({},e,{encode:{series:M(A,o)}})]};sr.props={};const lr={line:_n,smooth:$n,hv:er,vh:nr,hvh:rr,trail:or},cr=(t,e,n,r)=>{var i,A;const{series:o,x:a,y:s}=n,{x:l,y:c}=e;if(void 0===a||void 0===s)throw new Error("Missing encode for x or y channel.");const u=o?Array.from(et(t,t=>o[t]).values()):[t],d=u.map(t=>t[0]).filter(t=>void 0!==t),f=((null===(i=null==l?void 0:l.getBandWidth)||void 0===i?void 0:i.call(l))||0)/2,h=((null===(A=null==c?void 0:c.getBandWidth)||void 0===A?void 0:A.call(c))||0)/2,p=Array.from(u,t=>t.map(t=>r.map([+a[t]+f,+s[t]+h])));return[d,p,u]},ur=(t,e,n,r)=>{const i=Object.entries(n).filter(([t])=>t.startsWith("position")).map(([,t])=>t);if(0===i.length)throw new Error("Missing encode for position channel.");R(r)&&i.push(i[0]);const A=Array.from(t,t=>{const e=i.map(e=>+e[t]),n=r.map(e),A=[];for(let t=0;t<n.length;t+=2)A.push([n[t],n[t+1]]);return A});return[t,A]},dr=()=>(t,e,n,r)=>(G(r)?ur:cr)(t,e,n,r);dr.props={defaultShape:"line",defaultLabelShape:"label",composite:!1,shape:lr,channels:[...an({shapes:Object.keys(lr)}),{name:"x"},{name:"y"},{name:"position",independent:!0},{name:"size"},{name:"series",scale:"band"}],preInference:[...un(),{type:ar},{type:sr}],postInference:[...ln(),{type:nn,channel:"color"},{type:rn,channel:["position"]}],interaction:{shareTooltip:!0,seriesTooltip:!0,crosshairs:!0}};const fr=(t,e,n)=>[["M",t-n,e],["A",n,n,0,1,0,t+n,e],["A",n,n,0,1,0,t-n,e],["Z"]];fr.style=["fill"];const hr=fr.bind(void 0);hr.style=["stroke","lineWidth"];const pr=(t,e,n)=>[["M",t-n,e-n],["L",t+n,e-n],["L",t+n,e+n],["L",t-n,e+n],["Z"]];pr.style=["fill"];const gr=pr.bind(void 0);gr.style=["fill"];const mr=pr.bind(void 0);mr.style=["stroke","lineWidth"];const yr=(t,e,n)=>{const r=.618*n;return[["M",t-r,e],["L",t,e-n],["L",t+r,e],["L",t,e+n],["Z"]]};yr.style=["fill"];const vr=yr.bind(void 0);vr.style=["stroke","lineWidth"];const br=(t,e,n)=>{const r=n*Math.sin(1/3*Math.PI);return[["M",t-n,e+r],["L",t,e-r],["L",t+n,e+r],["Z"]]};br.style=["fill"];const wr=br.bind(void 0);wr.style=["stroke","lineWidth"];const Br=(t,e,n)=>{const r=n*Math.sin(1/3*Math.PI);return[["M",t-n,e-r],["L",t+n,e-r],["L",t,e+r],["Z"]]};Br.style=["fill"];const xr=Br.bind(void 0);xr.style=["stroke","lineWidth"];const Cr=(t,e,n)=>{const r=n/2*Math.sqrt(3);return[["M",t,e-n],["L",t+r,e-n/2],["L",t+r,e+n/2],["L",t,e+n],["L",t-r,e+n/2],["L",t-r,e-n/2],["Z"]]};Cr.style=["fill"];const Er=Cr.bind(void 0);Er.style=["stroke","lineWidth"];const Or=(t,e,n)=>{const r=n-1.5;return[["M",t-n,e-r],["L",t+n,e+r],["L",t+n,e-r],["L",t-n,e+r],["Z"]]};Or.style=["fill"];const kr=Or.bind(void 0);kr.style=["stroke","lineWidth"];const Fr=(t,e,n)=>[["M",t,e+n],["L",t,e-n]];Fr.style=["stroke","lineWidth"];const Qr=(t,e,n)=>[["M",t-n,e-n],["L",t+n,e+n],["M",t+n,e-n],["L",t-n,e+n]];Qr.style=["stroke","lineWidth"];const Mr=(t,e,n)=>[["M",t-n/2,e-n],["L",t+n/2,e-n],["M",t,e-n],["L",t,e+n],["M",t-n/2,e+n],["L",t+n/2,e+n]];Mr.style=["stroke","lineWidth"];const Ur=(t,e,n)=>[["M",t-n,e],["L",t+n,e],["M",t,e-n],["L",t,e+n]];Ur.style=["stroke","lineWidth"];const Sr=(t,e,n)=>[["M",t-n,e],["L",t+n,e]];Sr.style=["stroke","lineWidth"];const _r=(t,e,n)=>[["M",t-n,e],["L",t+n,e]];_r.style=["stroke","lineWidth"];const Ir=_r.bind(void 0);Ir.style=["stroke","lineWidth"];const Tr=(t,e,n)=>[["M",t-n,e],["A",n/2,n/2,0,1,1,t,e],["A",n/2,n/2,0,1,0,t+n,e]];Tr.style=["stroke","lineWidth"];const Lr=(t,e,n)=>[["M",t-n-1,e-2.5],["L",t,e-2.5],["L",t,e+2.5],["L",t+n+1,e+2.5]];Lr.style=["stroke","lineWidth"];const Pr=(t,e,n)=>[["M",t-n-1,e+2.5],["L",t,e+2.5],["L",t,e-2.5],["L",t+n+1,e-2.5]];Pr.style=["stroke","lineWidth"];const jr=(t,e,n)=>[["M",t-(n+1),e+2.5],["L",t-n/2,e+2.5],["L",t-n/2,e-2.5],["L",t+n/2,e-2.5],["L",t+n/2,e+2.5],["L",t+n+1,e+2.5]];jr.style=["stroke","lineWidth"];const Hr=(t,e,n)=>[["M",t-5,e+2.5],["L",t-5,e],["L",t,e],["L",t,e-3],["L",t,e+3],["L",t+6.5,e+3]];Hr.style=["stroke","lineWidth"];const Nr=new Map([["bowtie",Or],["cross",Qr],["dash",Ir],["diamond",yr],["dot",_r],["hexagon",Cr],["hollowBowtie",kr],["hollowDiamond",vr],["hollowHexagon",Er],["hollowPoint",hr],["hollowSquare",mr],["hollowTriangle",wr],["hollowTriangleDown",xr],["hv",Lr],["hvh",jr],["hyphen",Sr],["line",Fr],["plus",Ur],["point",fr],["rect",gr],["smooth",Tr],["square",pr],["tick",Mr],["triangleDown",Br],["triangle",br],["vh",Pr],["vhv",Hr]]);function Dr(t){return t.replace(/-(\w)/g,function(t,e){return e.toUpperCase()})}function Rr(t,e,n,r){if(1===e.length)return;const{size:i}=n;if("fixed"===t)return i;if("normal"===t||V(r)){const[[t,n],[r,i]]=e,A=Math.abs((r-t)/2),o=Math.abs((i-n)/2);return Math.max(0,(A+o)/2)}return i}const Kr=(t,e)=>{const{colorAttribute:n,symbol:r,mode:i="auto"}=t,A=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n}(t,["colorAttribute","symbol","mode"]),o=Nr.get(Dr(r))||Nr.get("point"),{coordinate:a,document:s}=e;return(e,r,l)=>{const{lineWidth:c,color:u}=l,d=A.stroke?c||1:c,{color:f=u,transform:h,opacity:p}=r,[g,m]=je(e),y=Rr(i,e,r,a)||A.r||l.r;return zt(s.createElement("path",{})).call(Ue,l).style("fill","transparent").style("d",o(g,m,y)).style("lineWidth",d).style("transform",h).style("transformOrigin",`${g-y} ${m-y}`).style("stroke",f).style(Le(t),p).style(n,f).call(Ue,A).node()}};Kr.props={defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};const zr=(t,e)=>Kr(Object.assign({colorAttribute:"stroke",symbol:"point"},t),e);zr.props=Object.assign({defaultMarker:"hollowPoint"},Kr.props);const Gr=(t,e)=>Kr(Object.assign({colorAttribute:"stroke",symbol:"diamond"},t),e);Gr.props=Object.assign({defaultMarker:"hollowDiamond"},Kr.props);const Vr=(t,e)=>Kr(Object.assign({colorAttribute:"stroke",symbol:"hexagon"},t),e);Vr.props=Object.assign({defaultMarker:"hollowHexagon"},Kr.props);const Wr=(t,e)=>Kr(Object.assign({colorAttribute:"stroke",symbol:"square"},t),e);Wr.props=Object.assign({defaultMarker:"hollowSquare"},Kr.props);const Xr=(t,e)=>Kr(Object.assign({colorAttribute:"stroke",symbol:"triangle-down"},t),e);Xr.props=Object.assign({defaultMarker:"hollowTriangleDown"},Kr.props);const Yr=(t,e)=>Kr(Object.assign({colorAttribute:"stroke",symbol:"triangle"},t),e);Yr.props=Object.assign({defaultMarker:"hollowTriangle"},Kr.props);const $r=(t,e)=>Kr(Object.assign({colorAttribute:"stroke",symbol:"bowtie"},t),e);$r.props=Object.assign({defaultMarker:"hollowBowtie"},Kr.props);const qr=(t,e)=>{const{colorAttribute:n,mode:r="auto"}=t,i=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n}(t,["colorAttribute","mode"]),{coordinate:A,document:o}=e;return(e,a,s)=>{const{lineWidth:l,color:c}=s,u=i.stroke?l||1:l,{color:d=c,transform:f,opacity:h}=a,[p,g]=je(e),m=Rr(r,e,a,A)||i.r||s.r;return zt(o.createElement("circle",{})).call(Ue,s).style("fill","transparent").style("cx",p).style("cy",g).style("r",m).style("lineWidth",u).style("transform",f).style("transformOrigin",`${p} ${g}`).style("stroke",d).style(Le(t),h).style(n,d).call(Ue,i).node()}},Zr=(t,e)=>qr(Object.assign({colorAttribute:"fill"},t),e);Zr.props={defaultMarker:"circle",defaultEnterAnimation:"fadeIn",defaultExitAnimation:"fadeOut"};const Jr=(t,e)=>qr(Object.assign({colorAttribute:"stroke"},t),e);Jr.props=Object.assign({defaultMarker:"hollowPoint"},Zr.props);const ti=(t,e)=>Kr(Object.assign({colorAttribute:"fill",symbol:"point"},t),e);ti.props=Object.assign({defaultMarker:"point"},Kr.props);const ei=(t,e)=>Kr(Object.assign({colorAttribute:"stroke",symbol:"plus"},t),e);ei.props=Object.assign({defaultMarker:"plus"},Kr.props);const ni=(t,e)=>Kr(Object.assign({colorAttribute:"fill",symbol:"diamond"},t),e);ni.props=Object.assign({defaultMarker:"diamond"},Kr.props);const ri=(t,e)=>Kr(Object.assign({colorAttribute:"fill",symbol:"square"},t),e);ri.props=Object.assign({defaultMarker:"square"},Kr.props);const ii=(t,e)=>Kr(Object.assign({colorAttribute:"fill",symbol:"triangle"},t),e);ii.props=Object.assign({defaultMarker:"triangle"},Kr.props);const Ai=(t,e)=>Kr(Object.assign({colorAttribute:"fill",symbol:"hexagon"},t),e);Ai.props=Object.assign({defaultMarker:"hexagon"},Kr.props);const oi=(t,e)=>Kr(Object.assign({colorAttribute:"stroke",symbol:"cross"},t),e);oi.props=Object.assign({defaultMarker:"cross"},Kr.props);const ai=(t,e)=>Kr(Object.assign({colorAttribute:"fill",symbol:"bowtie"},t),e);ai.props=Object.assign({defaultMarker:"bowtie"},Kr.props);const si=(t,e)=>Kr(Object.assign({colorAttribute:"stroke",symbol:"hyphen"},t),e);si.props=Object.assign({defaultMarker:"hyphen"},Kr.props);const li=(t,e)=>Kr(Object.assign({colorAttribute:"stroke",symbol:"line"},t),e);li.props=Object.assign({defaultMarker:"line"},Kr.props);const ci=(t,e)=>Kr(Object.assign({colorAttribute:"stroke",symbol:"tick"},t),e);ci.props=Object.assign({defaultMarker:"tick"},Kr.props);const ui=(t,e)=>Kr(Object.assign({colorAttribute:"fill",symbol:"triangle-down"},t),e);ui.props=Object.assign({defaultMarker:"triangleDown"},Kr.props);const di=()=>(t,e)=>{const{encode:n}=e,{y:r}=n;return void 0!==r?[t,e]:[t,Q({},e,{encode:{y:U(I(t,0))},scale:{y:{guide:null}}})]};di.props={};const fi=()=>(t,e)=>{const{encode:n}=e,{size:r}=n;return void 0!==r?[t,e]:[t,Q({},e,{encode:{size:S(I(t,3))}})]};fi.props={};const hi={hollow:zr,hollowDiamond:Gr,hollowHexagon:Vr,hollowSquare:Wr,hollowTriangleDown:Xr,hollowTriangle:Yr,hollowBowtie:$r,hollowCircle:Jr,point:ti,plus:ei,diamond:ni,square:ri,triangle:ii,hexagon:Ai,cross:oi,bowtie:ai,hyphen:si,line:li,tick:ci,triangleDown:ui,circle:Zr},pi=t=>(e,n,r,i)=>{const{x:A,y:o,x1:a,y1:s,size:l,dx:c,dy:u}=r,[d,f]=i.getSize(),h=fn(n,r,t),p=t=>[+((null==c?void 0:c[t])||0)+(a?(+A[t]+ +a[t])/2:+A[t]),+((null==u?void 0:u[t])||0)+(s?(+o[t]+ +s[t])/2:+o[t])],g=Array.from(e,l?t=>{const[e,n]=p(t),r=+l[t],A=r/d,o=r/f,a=[e+A,n+o];return[i.map(h([e-A,n-o],t)),i.map(h(a,t))]}:t=>[i.map(h(p(t),t))]);return[e,g]};pi.props={defaultShape:"hollow",defaultLabelShape:"label",composite:!1,shape:hi,channels:[...an({shapes:Object.keys(hi)}),{name:"x",required:!0},{name:"y",required:!0},{name:"series",scale:"band"},{name:"size",quantitative:"sqrt"},{name:"dx",scale:"identity"},{name:"dy",scale:"identity"}],preInference:[...un(),{type:H},{type:di}],postInference:[{type:fi},...sn()]};var gi=n("./node_modules/.pnpm/tslib@2.8.1/node_modules/tslib/tslib.es6.mjs"),mi=n("./node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/esm/lodash/is-function.js");function yi(t,e){e(t),t.children&&t.children.forEach(function(t){t&&yi(t,e)})}function vi(t){wi(t,!0)}function bi(t){wi(t,!1)}function wi(t,e){var n=e?"visible":"hidden";yi(t,function(t){t.attr("visibility",n)})}var Bi=function(t,e,n,r){void 0===n&&(n=0),void 0===r&&(r=5),Object.entries(e).forEach(function(i){var A=(0,gi.zs)(i,2),o=A[0],a=A[1],s=t;Object.prototype.hasOwnProperty.call(e,o)&&(a?O(a)?(O(t[o])||(s[o]={}),n<r?Bi(t[o],a,n+1,r):s[o]=e[o]):(0,x.A)(a)?(s[o]=[],s[o]=s[o].concat(a)):s[o]=a:s[o]=a)})},xi=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];for(var r=0;r<e.length;r+=1)Bi(t,e[r]);return t},Ci=function(t){function e(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r=t.apply(this,(0,gi.fX)([],(0,gi.zs)(e),!1))||this;return r.isMutationObserved=!0,r.addEventListener($.jX.INSERTED,function(){bi(r)}),r}return(0,gi.C6)(e,t),e}($.YJ);function Ei(t){var e=t.appendChild(new Ci({class:"offscreen"}));return bi(e),e}function Oi(){wi(this,"hidden"!==this.attributes.visibility)}var ki=function(t){function e(e,n){void 0===n&&(n={});var r=t.call(this,xi({},{style:n},e))||this;return r.initialized=!1,r._defaultOptions=n,r}return(0,gi.C6)(e,t),Object.defineProperty(e.prototype,"offscreenGroup",{get:function(){return this._offscreen||(this._offscreen=Ei(this)),this._offscreen},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"defaultOptions",{get:function(){return this._defaultOptions},enumerable:!1,configurable:!0}),e.prototype.connectedCallback=function(){this.render(this.attributes,this),this.bindEvents(this.attributes,this),this.initialized=!0},e.prototype.disconnectedCallback=function(){var t;null===(t=this._offscreen)||void 0===t||t.destroy()},e.prototype.attributeChangedCallback=function(t){"visibility"===t&&Oi.call(this)},e.prototype.update=function(t,e){var n;return this.attr(xi({},this.attributes,t||{})),null===(n=this.render)||void 0===n?void 0:n.call(this,this.attributes,this,e)},e.prototype.clear=function(){this.removeChildren()},e.prototype.bindEvents=function(t,e){},e.prototype.getSubShapeStyle=function(t){return(0,gi.Tt)(t,["x","y","transform","transformOrigin","class","className","zIndex"])},e}($.K9);function Fi(t,e,n,r,i){return void 0===r&&(r=!0),void 0===i&&(i=function(t){t.node().removeChildren()}),t?n(e):(r&&i(e),null)}var Qi=function(t){function e(e){void 0===e&&(e={});var n=e.style,r=(0,gi.Tt)(e,["style"]);return t.call(this,(0,gi.Cl)({style:(0,gi.Cl)({text:"",fill:"black",fontFamily:"sans-serif",fontSize:16,fontStyle:"normal",fontVariant:"normal",fontWeight:"normal",lineWidth:1,textAlign:"start",textBaseline:"middle"},n)},r))||this}return(0,gi.C6)(e,t),Object.defineProperty(e.prototype,"offscreenGroup",{get:function(){return this._offscreen||(this._offscreen=Ei(this)),this._offscreen},enumerable:!1,configurable:!0}),e.prototype.disconnectedCallback=function(){var t;null===(t=this._offscreen)||void 0===t||t.destroy()},e}($.EY),Mi=function(){function t(t,n,r,i,A,o,a){void 0===t&&(t=null),void 0===n&&(n=null),void 0===r&&(r=null),void 0===i&&(i=null),void 0===A&&(A=[null,null,null,null,null]),void 0===o&&(o=[]),void 0===a&&(a=[]),e.add(this),this._elements=Array.from(t),this._data=n,this._parent=r,this._document=i,this._enter=A[0],this._update=A[1],this._exit=A[2],this._merge=A[3],this._split=A[4],this._transitions=o,this._facetElements=a}var e,n,r;return t.prototype.selectAll=function(t){var e="string"==typeof t?this._parent.querySelectorAll(t):t;return new n(e,null,this._elements[0],this._document)},t.prototype.selectFacetAll=function(t){var e="string"==typeof t?this._parent.querySelectorAll(t):t;return new n(this._elements,null,this._parent,this._document,void 0,void 0,e)},t.prototype.select=function(t){var e="string"==typeof t?this._parent.querySelectorAll(t)[0]||null:t;return new n([e],null,e,this._document)},t.prototype.append=function(t){var e=this,r="function"==typeof t?t:function(){return e.createElement(t)},i=[];if(null!==this._data){for(var A=0;A<this._data.length;A++){var o=this._data[A],a=(0,gi.zs)(Array.isArray(o)?o:[o,null],2),s=a[1];(u=r(l=a[0],A)).__data__=l,null!==s&&(u.__fromElements__=s),this._parent.appendChild(u),i.push(u)}return new n(i,null,this._parent,this._document)}for(A=0;A<this._elements.length;A++){var l,c=this._elements[A],u=r(l=c.__data__,A);c.appendChild(u),i.push(u)}return new n(i,null,i[0],this._document)},t.prototype.maybeAppend=function(t,n){var i=(0,gi.gn)(this,e,"m",r).call(this,"#"===t[0]?t:"#".concat(t),n);return i.attr("id",t),i},t.prototype.maybeAppendByClassName=function(t,n){var i=t.toString(),A=(0,gi.gn)(this,e,"m",r).call(this,"."===i[0]?i:".".concat(i),n);return A.attr("className",i),A},t.prototype.maybeAppendByName=function(t,n){var i=(0,gi.gn)(this,e,"m",r).call(this,'[name="'.concat(t,'"]'),n);return i.attr("name",t),i},t.prototype.data=function(t,e,r){var i,A;void 0===e&&(e=function(t){return t}),void 0===r&&(r=function(){return null});for(var o=[],a=[],s=new Set(this._elements),l=[],c=new Set,u=new Map(this._elements.map(function(t,n){return[e(t.__data__,n),t]})),d=new Map(this._facetElements.map(function(t,n){return[e(t.__data__,n),t]})),f=function(t){var e=new Map;return t.forEach(function(t){var n=function(t){return r(t.__data__)}(t);e.has(n)||e.set(n,[]),e.get(n).push(t)}),e}(this._elements),h=0;h<t.length;h++){var p=t[h],g=e(p,h),m=r(p,h);if(u.has(g))(w=u.get(g)).__data__=p,w.__facet__=!1,a.push(w),s.delete(w),u.delete(g);else if(d.has(g))(w=d.get(g)).__data__=p,w.__facet__=!0,a.push(w),d.delete(g);else if(f.has(g)){var y=f.get(g);l.push([p,y]);try{for(var v=(i=void 0,(0,gi.Ju)(y)),b=v.next();!b.done;b=v.next())s.delete(w=b.value)}catch(t){i={error:t}}finally{try{b&&!b.done&&(A=v.return)&&A.call(v)}finally{if(i)throw i.error}}f.delete(g)}else if(u.has(m)){var w;(w=u.get(m)).__toData__?w.__toData__.push(p):w.__toData__=[p],c.add(w),s.delete(w)}else o.push(p)}var B=[new n([],o,this._parent,this._document),new n(a,null,this._parent,this._document),new n(s,null,this._parent,this._document),new n([],l,this._parent,this._document),new n(c,null,this._parent,this._document)];return new n(this._elements,null,this._parent,this._document,B)},t.prototype.merge=function(t){var e=(0,gi.fX)((0,gi.fX)([],(0,gi.zs)(this._elements),!1),(0,gi.zs)(t._elements),!1),r=(0,gi.fX)((0,gi.fX)([],(0,gi.zs)(this._transitions),!1),(0,gi.zs)(t._transitions),!1);return new n(e,null,this._parent,this._document,void 0,r)},t.prototype.createElement=function(t){if(this._document)return this._document.createElement(t,{});var e=n.registry[t];return e?new e:function(t){throw new Error(t)}("Unknown node type: ".concat(t))},t.prototype.join=function(t,e,n,r,i){void 0===t&&(t=function(t){return t}),void 0===e&&(e=function(t){return t}),void 0===n&&(n=function(t){return t.remove()}),void 0===r&&(r=function(t){return t}),void 0===i&&(i=function(t){return t.remove()});var A=t(this._enter),o=e(this._update),a=n(this._exit),s=r(this._merge),l=i(this._split);return o.merge(A).merge(a).merge(s).merge(l)},t.prototype.remove=function(){for(var t=function(t){var n=e._elements[t],r=e._transitions[t];r?r.then(function(){return n.remove()}):n.remove()},e=this,r=0;r<this._elements.length;r++)t(r);return new n([],null,this._parent,this._document,void 0,this._transitions)},t.prototype.each=function(t){for(var e=0;e<this._elements.length;e++){var n=this._elements[e];t.call(n,n.__data__,e)}return this},t.prototype.attr=function(t,e){var n="function"!=typeof e?function(){return e}:e;return this.each(function(r,i){void 0!==e&&(this[t]=n.call(this,r,i))})},t.prototype.style=function(t,e,n){void 0===n&&(n=!0);var r="function"==typeof e&&n?e:function(){return e};return this.each(function(n,i){void 0!==e&&(this.style[t]=r.call(this,n,i))})},t.prototype.styles=function(t,e){return void 0===t&&(t={}),void 0===e&&(e=!0),this.each(function(n,r){var i=this;Object.entries(t).forEach(function(t){var A=(0,gi.zs)(t,2),o=A[1];void 0!==o&&i.attr(A[0],("function"==typeof o&&e?o:function(){return o}).call(i,n,r))})})},t.prototype.update=function(t,e){void 0===e&&(e=!0);var n="function"==typeof t&&e?t:function(){return t};return this.each(function(e,r){t&&this.update&&this.update(n.call(this,e,r))})},t.prototype.maybeUpdate=function(t,e){void 0===e&&(e=!0);var n="function"==typeof t&&e?t:function(){return t};return this.each(function(e,r){t&&this.update&&this.update(n.call(this,e,r))})},t.prototype.transition=function(t){var e=new Array(this._elements.length);return this.each(function(n,r){e[r]=t.call(this,n,r)}),this._transitions=function(t){if(!(0,x.A)(t))return[];for(var e=[],n=0;n<t.length;n++)e=e.concat(t[n]);return e}(e),this},t.prototype.on=function(t,e){return this.each(function(){this.addEventListener(t,e)}),this},t.prototype.call=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return t.call.apply(t,(0,gi.fX)([this._parent,this],(0,gi.zs)(e),!1)),this},t.prototype.node=function(){return this._elements[0]},t.prototype.nodes=function(){return this._elements},t.prototype.transitions=function(){return this._transitions.filter(function(t){return!!t})},t.prototype.parent=function(){return this._parent},n=t,e=new WeakSet,r=function(t,e){var r=this._elements[0],i=r.querySelector(t);if(i)return new n([i],null,this._parent,this._document);var A="string"==typeof e?this.createElement(e):e();return r.appendChild(A),new n([A],null,this._parent,this._document)},t.registry={g:$.YJ,rect:$.rw,circle:$.jl,path:$.wA,text:Qi,ellipse:$.Pp,image:$._V,line:$.N1,polygon:$.tS,polyline:$.Ro,html:$.g3},t}();function Ui(t){return new Mi([t],null,t,t.ownerDocument)}var Si=function(t,e,n){return[["M",t-n,e],["A",n,n,0,1,0,t+n,e],["A",n,n,0,1,0,t-n,e],["Z"]]},_i=Si,Ii=function(t,e,n){return[["M",t,e+n],["L",t,e-n]]},Ti=function(t,e,n){return[["M",t-n,e],["L",t+n,e]]},Li=Ti,Pi=function(t,e,n){return[["M",t-n,e-n],["L",t+n,e],["L",t-n,e+n],["Z"]]},ji=n("./node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/esm/lodash/is-object.js"),Hi=n("./node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/esm/lodash/is-string.js");var Ni=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,gi.C6)(e,t),e.prototype.render=function(t,n){var r=t.x,i=void 0===r?0:r,A=t.y,o=void 0===A?0:A,a=this.getSubShapeStyle(t),s=a.symbol,l=a.size,c=void 0===l?16:l,u=(0,gi.Tt)(a,["symbol","size"]),d=function(t){var e=function(t){var e="default";if((0,ji.A)(t)&&t instanceof Image)e="image";else if((0,mi.A)(t))e="symbol";else if((0,Hi.A)(t)){var n=new RegExp("data:(image|text)");e=t.match(n)?"base64":/^(https?:\/\/(([a-zA-Z0-9]+-?)+[a-zA-Z0-9]+\.)+[a-zA-Z]+)(:\d+)?(\/.*)?(\?.*)?(#.*)?$/.test(t)?"url":"symbol"}return e}(t);return["base64","url","image"].includes(e)?"image":t&&"symbol"===e?"path":null}(s);Fi(!!d,Ui(n),function(t){t.maybeAppendByClassName("marker",d).attr("className","marker ".concat(d,"-marker")).call(function(t){if("image"===d)t.styles({img:s,width:n=2*c,height:n,x:i-c,y:o-c});else{var n=c/2,r=(0,mi.A)(s)?s:e.getSymbol(s);t.styles((0,gi.Cl)({d:null==r?void 0:r(i,o,n)},u))}})})},e.MARKER_SYMBOL_MAP=new Map,e.registerSymbol=function(t,n){e.MARKER_SYMBOL_MAP.set(t,n)},e.getSymbol=function(t){return e.MARKER_SYMBOL_MAP.get(t)},e.getSymbols=function(){return Array.from(e.MARKER_SYMBOL_MAP.keys())},e}(ki);Ni.registerSymbol("cross",function(t,e,n){return[["M",t-n,e-n],["L",t+n,e+n],["M",t+n,e-n],["L",t-n,e+n]]}),Ni.registerSymbol("hyphen",function(t,e,n){return[["M",t-n,e],["L",t+n,e]]}),Ni.registerSymbol("line",Ii),Ni.registerSymbol("plus",function(t,e,n){return[["M",t-n,e],["L",t+n,e],["M",t,e-n],["L",t,e+n]]}),Ni.registerSymbol("tick",function(t,e,n){return[["M",t-n/2,e-n],["L",t+n/2,e-n],["M",t,e-n],["L",t,e+n],["M",t-n/2,e+n],["L",t+n/2,e+n]]}),Ni.registerSymbol("circle",Si),Ni.registerSymbol("point",_i),Ni.registerSymbol("bowtie",function(t,e,n){var r=n-1.5;return[["M",t-n,e-r],["L",t+n,e+r],["L",t+n,e-r],["L",t-n,e+r],["Z"]]}),Ni.registerSymbol("hexagon",function(t,e,n){var r=n/2*Math.sqrt(3);return[["M",t,e-n],["L",t+r,e-n/2],["L",t+r,e+n/2],["L",t,e+n],["L",t-r,e+n/2],["L",t-r,e-n/2],["Z"]]}),Ni.registerSymbol("square",function(t,e,n){return[["M",t-n,e-n],["L",t+n,e-n],["L",t+n,e+n],["L",t-n,e+n],["Z"]]}),Ni.registerSymbol("diamond",function(t,e,n){return[["M",t-n,e],["L",t,e-n],["L",t+n,e],["L",t,e+n],["Z"]]}),Ni.registerSymbol("triangle",function(t,e,n){var r=n*Math.sin(1/3*Math.PI);return[["M",t-n,e+r],["L",t,e-r],["L",t+n,e+r],["Z"]]}),Ni.registerSymbol("triangle-down",function(t,e,n){var r=n*Math.sin(1/3*Math.PI);return[["M",t-n,e-r],["L",t+n,e-r],["L",t,e+r],["Z"]]}),Ni.registerSymbol("line",Ii),Ni.registerSymbol("dot",Ti),Ni.registerSymbol("dash",Li),Ni.registerSymbol("smooth",function(t,e,n){return[["M",t-n,e],["A",n/2,n/2,0,1,1,t,e],["A",n/2,n/2,0,1,0,t+n,e]]}),Ni.registerSymbol("hv",function(t,e,n){return[["M",t-n-1,e-2.5],["L",t,e-2.5],["L",t,e+2.5],["L",t+n+1,e+2.5]]}),Ni.registerSymbol("vh",function(t,e,n){return[["M",t-n-1,e+2.5],["L",t,e+2.5],["L",t,e-2.5],["L",t+n+1,e-2.5]]}),Ni.registerSymbol("hvh",function(t,e,n){return[["M",t-(n+1),e+2.5],["L",t-n/2,e+2.5],["L",t-n/2,e-2.5],["L",t+n/2,e-2.5],["L",t+n/2,e+2.5],["L",t+n+1,e+2.5]]}),Ni.registerSymbol("vhv",function(t,e){return[["M",t-5,e+2.5],["L",t-5,e],["L",t,e],["L",t,e-3],["L",t,e+3],["L",t+6.5,e+3]]}),Ni.registerSymbol("focus",function(t,e,n){var r=.2*n,i=.7*n;return[["M",t-n,e],["A",n,n,0,1,0,t+n,e],["A",n,n,0,1,0,t-n,e],["Z"],["M",t-i,e],["L",t-r,e],["M",t+r,e],["L",t+i,e],["M",t,e-i],["L",t,e-r],["M",t,e+r],["L",t,e+i]]});var Di=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n};function Ri(t){const{min:[e,n],max:[r,i]}=t.getLocalBounds();let A=0,o=0;return e>0&&(A=e),r<0&&(A=r),n>0&&(o=n),i<0&&(o=i),[A,o]}const Ki=Qn(t=>{const e=t.attributes,{className:n,labelTransform:r,labelTransformOrigin:i,x:A,y:o,x0:a=A,y0:s=o,text:l,background:c,connector:u,startMarker:d,endMarker:f,coordCenter:h,innerHTML:p}=e,g=Di(e,["className","class","transform","rotate","labelTransform","labelTransformOrigin","x","y","x0","y0","text","background","connector","startMarker","endMarker","coordCenter","innerHTML"]);if(t.style.transform=`translate(${A}, ${o})`,[A,o,a,s].some(t=>!(0,bt.A)(t)))return void t.children.forEach(t=>t.remove());const m=Pt(g,"background"),{padding:y}=m,v=Di(m,["padding"]),b=Pt(g,"connector"),{points:w=[]}=b,B=Di(b,["points"]);let x;x=p?zt(t).maybeAppend("html","html",n).style("zIndex",0).style("innerHTML",p).call(Ue,Object.assign({transform:r,transformOrigin:i},g)).node():zt(t).maybeAppend("text","text").style("zIndex",0).style("text",l).call(Ue,Object.assign({textBaseline:"middle",transform:r,transformOrigin:i},g)).node();const C=zt(t).maybeAppend("background","rect").style("zIndex",-1).call(Ue,function(t,e=[]){const[n=0,r=0,i=n,A=r]=e,o=t.parentNode,a=o.getEulerAngles();o.setEulerAngles(0);const{min:s,halfExtents:l}=t.getLocalBounds(),[c,u]=s,[d,f]=l;return o.setEulerAngles(a),{x:c-A,y:u-n,width:2*d+A+r,height:2*f+n+i}}(x,y)).call(Ue,c?v:{}).node(),E=function(t,e,n,r,i=!0,A=!0){const o=t=>(0,ze.A)()(t);if(!e[0]&&!e[1])return o([Ri(t),e]);if(!n.length)return o([[0,0],e]);const[a,s]=n,l=[...s],c=[...a];if(s[0]!==a[0]){const t=i?-4:4;l[1]=s[1],A&&!i&&(l[0]=Math.max(a[0],s[0]-t),s[1]<a[1]?c[1]=l[1]:(c[1]=a[1],c[0]=Math.max(c[0],l[0]-t))),A||i||(l[0]=Math.max(a[0],s[0]-t),s[1]>a[1]?c[1]=l[1]:(c[1]=a[1],c[0]=Math.max(c[0],l[0]-t))),!A&&i&&(l[0]=Math.min(a[0],s[0]-t),s[1]>a[1]?c[1]=l[1]:(c[1]=a[1],c[0]=Math.min(c[0],l[0]-t))),A&&i&&(l[0]=Math.min(a[0],s[0]-t),s[1]<a[1]?c[1]=l[1]:(c[1]=a[1],c[0]=Math.min(c[0],l[0]-t)))}return o([s,l,c,a,e])}(C,[+a-+A,+s-+o],w,0,+a<h[0],+s<h[1]),O=d&&new Ni({id:"startMarker",style:Object.assign({x:0,y:0},Pt(g,"startMarker"))}),k=f&&new Ni({id:"endMarker",style:Object.assign({x:0,y:0},Pt(g,"endMarker"))});zt(t).maybeAppend("connector","path").style("zIndex",0).style("d",E).style("markerStart",O).style("markerEnd",k).call(Ue,u?B:{})}),zi=(t,e)=>{const{coordinate:n}=e;return(e,r,i)=>{const{color:A,text:o="",fontSize:a,rotate:s=0,transform:l=""}=r,c={text:String(o),stroke:A,fill:A,fontSize:a},[[u,d]]=e;return zt(new Ki).style("x",u).style("y",d).call(Ue,i).style("transform",`${l}rotate(${+s})`).style("coordCenter",n.getCenter()).call(Ue,c).call(Ue,t).node()}};zi.props={defaultMarker:"point",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};var Gi=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n};const Vi=Qn(t=>{const e=Gi(t.attributes,["class","x","y","transform"]),n=Pt(e,"marker"),{size:r=24}=n,i=()=>function(t){const e=t/Math.sqrt(2),n=t*Math.sqrt(2),[r,i]=[-e,e-n],[A,o]=[0,0],[a,s]=[e,e-n];return[["M",r,i],["A",t,t,0,1,1,a,s],["L",A,o],["Z"]]}(r/2),A=zt(t).maybeAppend("marker",()=>new Ni({})).call(t=>t.node().update(Object.assign({symbol:i},n))).node(),[o,a]=function(t){const{min:e,max:n}=t.getLocalBounds();return[.5*(e[0]+n[0]),.5*(e[1]+n[1])]}(A);zt(t).maybeAppend("text","text").style("x",o).style("y",a).call(Ue,e)}),Wi=(t,e)=>{const n=Gi(t,[]);return(t,e,r)=>{const{color:i}=r,A=Gi(r,["color"]),{color:o=i,text:a=""}=e,s={text:String(a),stroke:o,fill:o},[[l,c]]=t;return zt(new Vi).call(Ue,A).style("transform",`translate(${l},${c})`).call(Ue,s).call(Ue,n).node()}};Wi.props={defaultMarker:"point",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};const Xi=(t,e)=>{const{coordinate:n}=e;return(e,r,i)=>{const{color:A,text:o="",fontSize:a,rotate:s=0,transform:l=""}=r,c={text:String(o),stroke:A,fill:A,fontSize:a,textAlign:"center",textBaseline:"middle"},[[u,d]]=e;return zt(new $.EY).style("x",u).style("y",d).call(Ue,i).style("transformOrigin","center center").style("transform",`${l}rotate(${s}deg)`).style("coordCenter",n.getCenter()).call(Ue,c).call(Ue,t).node()}};Xi.props={defaultMarker:"point",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};const Yi=()=>(t,e)=>{const{data:n}=e;if(!Array.isArray(n)||n.some(P))return[t,e];const r=Array.isArray(n[0])?n:[n],i=r.map(t=>t[0]),A=r.map(t=>t[1]);return[t,Q({},e,{encode:{x:M(i),y:M(A)}})]};Yi.props={};var $i=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n};const qi=()=>(t,e)=>{const{style:n={}}=e,r=$i(e,["data","style"]),{x:i,y:A}=n,o=$i(n,["x","y"]);if(null==i||null==A)return[t,e];const a=A||0;return[[0],Q({},r,{data:[0],cartesian:!0,encode:{x:M([i||0]),y:M([a])},scale:{x:{type:"identity",independent:!0,guide:null},y:{type:"identity",independent:!0,guide:null}},style:o})]};qi.props={};const Zi={text:zi,badge:Wi,tag:Xi},Ji=t=>{const{cartesian:e=!1}=t;return e?pn:(e,n,r,i)=>{const{x:A,y:o}=r,a=fn(n,r,t),s=Array.from(e,t=>[i.map(a([+A[t],+o[t]],t))]);return[e,s]}};Ji.props={defaultShape:"text",defaultLabelShape:"label",composite:!1,shape:Zi,channels:[...an({shapes:Object.keys(Zi)}),{name:"x",required:!0},{name:"y",required:!0},{name:"text",scale:"identity"},{name:"fontSize",scale:"identity"},{name:"rotate",scale:"identity"}],preInference:[...un(),{type:Yi},{type:qi}],postInference:[...sn()]};const tA=()=>(t,e)=>[t,Q({scale:{x:{padding:0},y:{padding:0}}},e)];tA.props={};const eA={cell:Re,hollow:Ke},nA=()=>(t,e,n,r)=>{const{x:i,y:A}=n,o=e.x,a=e.y,s=Array.from(t,t=>{const e=o.getBandWidth(o.invert(+i[t])),n=a.getBandWidth(a.invert(+A[t])),s=+i[t],l=+A[t];return[[s,l],[s+e,l],[s+e,l+n],[s,l+n]].map(t=>r.map(t))});return[t,s]};nA.props={defaultShape:"cell",defaultLabelShape:"label",shape:eA,composite:!1,channels:[...an({shapes:Object.keys(eA)}),{name:"x",required:!0,scale:"band"},{name:"y",required:!0,scale:"band"}],preInference:[...un(),{type:H},{type:di},{type:tA}],postInference:[...sn()]};var rA=n("./node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/array.js"),iA=n("./node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/constant.js"),AA=n("./node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/path.js"),oA=n("./node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/point.js");function aA(t,e,n){var r=null,i=(0,iA.A)(!0),A=null,o=Cn.A,a=null,s=(0,AA.i)(l);function l(l){var c,u,d,f,h,p=(l=(0,rA.A)(l)).length,g=!1,m=new Array(p),y=new Array(p);for(null==A&&(a=o(h=s())),c=0;c<=p;++c){if(!(c<p&&i(f=l[c],c,l))===g)if(g=!g)u=c,a.areaStart(),a.lineStart();else{for(a.lineEnd(),a.lineStart(),d=c-1;d>=u;--d)a.point(m[d],y[d]);a.lineEnd(),a.areaEnd()}g&&(m[c]=+t(f,c,l),y[c]=+e(f,c,l),a.point(r?+r(f,c,l):m[c],n?+n(f,c,l):y[c]))}if(h)return a=null,h+""||null}function c(){return(0,ze.A)().defined(i).curve(o).context(A)}return t="function"==typeof t?t:void 0===t?oA.x:(0,iA.A)(+t),e="function"==typeof e?e:(0,iA.A)(void 0===e?0:+e),n="function"==typeof n?n:void 0===n?oA.y:(0,iA.A)(+n),l.x=function(e){return arguments.length?(t="function"==typeof e?e:(0,iA.A)(+e),r=null,l):t},l.x0=function(e){return arguments.length?(t="function"==typeof e?e:(0,iA.A)(+e),l):t},l.x1=function(t){return arguments.length?(r=null==t?null:"function"==typeof t?t:(0,iA.A)(+t),l):r},l.y=function(t){return arguments.length?(e="function"==typeof t?t:(0,iA.A)(+t),n=null,l):e},l.y0=function(t){return arguments.length?(e="function"==typeof t?t:(0,iA.A)(+t),l):e},l.y1=function(t){return arguments.length?(n=null==t?null:"function"==typeof t?t:(0,iA.A)(+t),l):n},l.lineX0=l.lineY0=function(){return c().x(t).y(e)},l.lineY1=function(){return c().x(t).y(n)},l.lineX1=function(){return c().x(r).y(e)},l.defined=function(t){return arguments.length?(i="function"==typeof t?t:(0,iA.A)(!!t),l):i},l.curve=function(t){return arguments.length?(o=t,null!=A&&(a=o(A)),l):o},l.context=function(t){return arguments.length?(null==t?A=a=null:a=o(A=t),l):A},l}const sA=Qn(t=>{const{areaPath:e,connectPath:n,areaStyle:r,connectStyle:i}=t.attributes,A=t.ownerDocument;zt(t).maybeAppend("connect-path",()=>A.createElement("path",{})).style("d",n).call(Ue,i),zt(t).maybeAppend("area-path",()=>A.createElement("path",{})).style("d",e).call(Ue,r)}),lA=(t,e)=>{const{curve:n,gradient:r=!1,defined:i=t=>!Number.isNaN(t)&&null!=t,connect:A=!1}=t,o=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n}(t,["curve","gradient","defined","connect"]),{coordinate:a,document:s}=e;return(t,e,l)=>{const{color:c}=l,{color:u=c,seriesColor:d,seriesX:f,seriesY:h}=e,p=D(a),g=Pe(a,e),m=r&&d?_e(d,f,h,r,void 0,p):u,y=Object.assign(Object.assign(Object.assign(Object.assign({},l),{stroke:m,fill:m}),g&&{transform:g}),o),[v,b]=function(t,e){const n=[],r=[],i=[];let A=!1,o=null;const a=t.length/2;for(let s=0;s<a;s++){const l=t[s],c=t[s+a];if([...l,...c].some(t=>!e(t)))A=!0;else{if(n.push(l),r.push(c),A&&o){A=!1;const[t,e]=o;i.push([t,l,e,c])}o=[l,c]}}return[n.concat(r),i]}(t,i),w=Pt(y,"connect"),B=!!b.length,x=t=>zt(s.createElement("path",{})).style("d",t||"").call(Ue,y).node();if(R(a)){const e=t=>{const e=a.getCenter(),r=t.slice(0,t.length/2),A=t.slice(t.length/2);return function(){var t=aA().curve(En),e=t.curve,n=t.lineX0,r=t.lineX1,i=t.lineY0,A=t.lineY1;return t.angle=t.x,delete t.x,t.startAngle=t.x0,delete t.x0,t.endAngle=t.x1,delete t.x1,t.radius=t.y,delete t.y,t.innerRadius=t.y0,delete t.y0,t.outerRadius=t.y1,delete t.y1,t.lineStartAngle=function(){return Fn(n())},delete t.lineX0,t.lineEndAngle=function(){return Fn(r())},delete t.lineX1,t.lineInnerRadius=function(){return Fn(i())},delete t.lineY0,t.lineOuterRadius=function(){return Fn(A())},delete t.lineY1,t.curve=function(t){return arguments.length?e(kn(t)):e()._curve},t}().angle((t,n)=>$t(Vt(r[n],e))).outerRadius((t,n)=>Xt(r[n],e)).innerRadius((t,n)=>Xt(A[n],e)).defined((t,e)=>[...r[e],...A[e]].every(i)).curve(n)(A)};return!B||A&&!Object.keys(w).length?x(e(v)):B&&!A?x(e(t)):zt(new sA).style("areaStyle",y).style("connectStyle",Object.assign(Object.assign({},w),o)).style("areaPath",e(t)).style("connectPath",b.map(e).join("")).node()}{const e=t=>{const e=t.slice(0,t.length/2),r=t.slice(t.length/2);return p?aA().y((t,n)=>e[n][1]).x1((t,n)=>e[n][0]).x0((t,e)=>r[e][0]).defined((t,n)=>[...e[n],...r[n]].every(i)).curve(n)(e):aA().x((t,n)=>e[n][0]).y1((t,n)=>e[n][1]).y0((t,e)=>r[e][1]).defined((t,n)=>[...e[n],...r[n]].every(i)).curve(n)(e)};return!B||A&&!Object.keys(w).length?x(e(v)):B&&!A?x(e(t)):zt(new sA).style("areaStyle",y).style("connectStyle",Object.assign(Object.assign({},w),o)).style("areaPath",e(t)).style("connectPath",b.map(e).join("")).node()}}};lA.props={defaultMarker:"smooth",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};const cA=(t,e)=>{const{coordinate:n}=e;return(...r)=>{const i=R(n)?We:Cn.A;return lA(Object.assign({curve:i},t),e)(...r)}};cA.props=Object.assign(Object.assign({},lA.props),{defaultMarker:"square"});const uA=(t,e)=>{const n=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n}(t,[]),{coordinate:r}=e;return(...t)=>{const i=R(r)?Nn:D(r)?Yn:Xn;return lA(Object.assign({curve:i},n),e)(...t)}};uA.props=Object.assign(Object.assign({},lA.props),{defaultMarker:"smooth"});const dA=(t,e)=>(...n)=>lA(Object.assign({curve:Zn},t),e)(...n);dA.props=Object.assign(Object.assign({},lA.props),{defaultMarker:"hvh"});const fA=(t,e)=>(...n)=>lA(Object.assign({curve:Jn},t),e)(...n);fA.props=Object.assign(Object.assign({},lA.props),{defaultMarker:"vh"});const hA=(t,e)=>(...n)=>lA(Object.assign({curve:tr},t),e)(...n);hA.props=Object.assign(Object.assign({},lA.props),{defaultMarker:"hv"});const pA={area:cA,smooth:uA,hvh:dA,vh:fA,hv:hA},gA=()=>(t,e,n,r)=>{var i,A;const{x:o,y:a,y1:s,series:l}=n,{x:c,y:u}=e,d=l?Array.from(et(t,t=>l[t]).values()):[t],f=d.map(t=>t[0]).filter(t=>void 0!==t),h=((null===(i=null==c?void 0:c.getBandWidth)||void 0===i?void 0:i.call(c))||0)/2,p=((null===(A=null==u?void 0:u.getBandWidth)||void 0===A?void 0:A.call(u))||0)/2,g=Array.from(d,t=>{const e=t.length,n=new Array(2*e);for(let i=0;i<t.length;i++){const A=t[i];n[i]=r.map([+o[A]+h,+a[A]+p]),n[e+i]=r.map([+o[A]+h,+s[A]+p])}return n});return[f,g,d]};gA.props={defaultShape:"area",defaultLabelShape:"label",composite:!1,shape:pA,channels:[...an({shapes:Object.keys(pA)}),{name:"x",required:!0},{name:"y",required:!0},{name:"size"},{name:"series",scale:"band"}],preInference:[...un(),{type:sr},{type:j},{type:tA}],postInference:[...ln()],interaction:{shareTooltip:!0,seriesTooltip:!0,crosshairs:!0}};const mA=()=>(t,e)=>{const{encode:n}=e,{y1:r}=n;if(r)return[t,e];const[i]=T(n,"y");return[t,Q({},e,{encode:{y1:M([...i])}})]};mA.props={};const yA=()=>(t,e)=>{const{encode:n}=e,{x1:r}=n;if(r)return[t,e];const[i]=T(n,"x");return[t,Q({},e,{encode:{x1:M([...i])}})]};yA.props={};var vA=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n};const bA=(t,e)=>{const{arrow:n=!0,arrowSize:r="40%"}=t,i=vA(t,["arrow","arrowSize"]),{document:A}=e;return(t,e,o)=>{const{defaultColor:a}=o,s=vA(o,["defaultColor"]),{color:l=a,transform:c}=e,[u,d]=t,f=(0,ir.Ae)();if(f.moveTo(...u),f.lineTo(...d),n){const[t,e]=function(t,e,n){const{arrowSize:r}=n,i="string"==typeof r?+parseFloat(r)/100*Xt(t,e):r,A=Math.PI/6,o=Math.atan2(e[1]-t[1],e[0]-t[0]),a=Math.PI/2-o-A,s=o-A;return[[e[0]-i*Math.sin(a),e[1]-i*Math.cos(a)],[e[0]-i*Math.cos(s),e[1]-i*Math.sin(s)]]}(u,d,{arrowSize:r});f.moveTo(...t),f.lineTo(...d),f.lineTo(...e)}return zt(A.createElement("path",{})).call(Ue,s).style("d",f.toString()).style("stroke",l).style("transform",c).call(Ue,i).node()}};bA.props={defaultMarker:"line",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};const wA=(t,e)=>{const{arrow:n=!1}=t;return(...r)=>bA(Object.assign(Object.assign({},t),{arrow:n}),e)(...r)};wA.props={defaultMarker:"line",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};var BA=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n};const xA=(t,e)=>{const n=BA(t,[]),{coordinate:r,document:i}=e;return(t,e,A)=>{const{color:o}=A,a=BA(A,["color"]),{color:s=o,transform:l}=e,[c,u]=t,d=(0,ir.Ae)();if(d.moveTo(c[0],c[1]),R(r)){const t=r.getCenter();d.quadraticCurveTo(t[0],t[1],u[0],u[1])}else Se(d,c,u,Jt(c,u),Xt(c,u)/2);return zt(i.createElement("path",{})).call(Ue,a).style("d",d.toString()).style("stroke",s).style("transform",l).call(Ue,n).node()}};xA.props={defaultMarker:"smooth",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};var CA=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n};const EA=(t,e)=>{const n=CA(t,[]),{document:r}=e;return(t,e,i)=>{const{color:A}=i,o=CA(i,["color"]),{color:a=A,transform:s}=e,[l,c]=t,u=(0,ir.Ae)();return u.moveTo(l[0],l[1]),u.bezierCurveTo(l[0]/2+c[0]/2,l[1],l[0]/2+c[0]/2,c[1],c[0],c[1]),zt(r.createElement("path",{})).call(Ue,o).style("d",u.toString()).style("stroke",a).style("transform",s).call(Ue,n).node()}};EA.props={defaultMarker:"smooth",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};var OA=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n};const kA=(t,e)=>{const{cornerRatio:n=1/3}=t,r=OA(t,["cornerRatio"]),{coordinate:i,document:A}=e;return(t,e,o)=>{const{defaultColor:a}=o,s=OA(o,["defaultColor"]),{color:l=a,transform:c}=e,[u,d]=t,f=function(t,e,n,r){const i=(0,ir.Ae)();if(R(n)){const A=n.getCenter(),o=Xt(t,A),a=(Xt(e,A)-o)*r+o;return i.moveTo(t[0],t[1]),Se(i,t,e,A,a),i.lineTo(e[0],e[1]),i}return D(n)?(i.moveTo(t[0],t[1]),i.lineTo(t[0]+(e[0]-t[0])*r,t[1]),i.lineTo(t[0]+(e[0]-t[0])*r,e[1]),i.lineTo(e[0],e[1]),i):(i.moveTo(t[0],t[1]),i.lineTo(t[0],t[1]+(e[1]-t[1])*r),i.lineTo(e[0],t[1]+(e[1]-t[1])*r),i.lineTo(e[0],e[1]),i)}(u,d,i,n);return zt(A.createElement("path",{})).call(Ue,s).style("d",f.toString()).style("stroke",l).style("transform",c).call(Ue,r).node()}};kA.props={defaultMarker:"vhv",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};const FA={link:wA,arc:xA,smooth:EA,vhv:kA},QA=t=>(e,n,r,i)=>{const{x:A,y:o,x1:a=A,y1:s=o}=r,l=fn(n,r,t),c=e.map(t=>[i.map(l([+A[t],+o[t]],t)),i.map(l([+a[t],+s[t]],t))]);return[e,c]};QA.props={defaultShape:"link",defaultLabelShape:"label",composite:!1,shape:FA,channels:[...an({shapes:Object.keys(FA)}),{name:"x",required:!0},{name:"y",required:!0}],preInference:[...un(),{type:mA},{type:yA}],postInference:[...sn()]};const MA=(t,e)=>{const{coordinate:n,document:r}=e;return(e,i,A)=>{const{color:o}=A,a=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n}(A,["color"]),{color:s=o,src:l="",size:c=32,transform:u=""}=i;let{width:d=c,height:f=c}=t;const[[h,p]]=e,[g,m]=n.getSize();d="string"==typeof d?hn(d)*g:d,f="string"==typeof f?hn(f)*m:f;const y=h-Number(d)/2,v=p-Number(f)/2;return zt(r.createElement("image",{})).call(Ue,a).style("x",y).style("y",v).style("src",l).style("stroke",s).style("transform",u).call(Ue,t).style("width",d).style("height",f).node()}};MA.props={defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};const UA={image:MA},SA=t=>{const{cartesian:e}=t;return e?pn:(e,n,r,i)=>{const{x:A,y:o}=r,a=fn(n,r,t),s=Array.from(e,t=>[i.map(a([+A[t],+o[t]],t))]);return[e,s]}};SA.props={defaultShape:"image",defaultLabelShape:"label",composite:!1,shape:UA,channels:[...an({shapes:Object.keys(UA)}),{name:"x",required:!0},{name:"y",required:!0},{name:"src",scale:"identity"},{name:"size"}],preInference:[...un(),{type:Yi},{type:qi}],postInference:[...sn()]};const _A=(t,e)=>{const{coordinate:n,document:r}=e;return(e,i,A)=>{const{color:o}=A,a=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n}(A,["color"]),{color:s=o,transform:l}=i,c=function(t,e){const n=(0,ir.Ae)();if(R(e)){const r=e.getCenter(),i=[...t,t[0]],A=i.map(t=>Xt(t,r));return i.forEach((e,i)=>{if(0===i)return void n.moveTo(e[0],e[1]);const o=A[i],a=t[i-1],s=A[i-1];void 0!==s&&Math.abs(o-s)<1e-10?Se(n,a,e,r,o):n.lineTo(e[0],e[1])}),n.closePath(),n}return function(t,e){return e.forEach((e,n)=>0===n?t.moveTo(e[0],e[1]):t.lineTo(e[0],e[1])),t.closePath(),t}(n,t)}(e,n);return zt(r.createElement("path",{})).call(Ue,a).style("d",c.toString()).style("stroke",s).style("fill",s).style("transform",l).call(Ue,t).node()}};_A.props={defaultMarker:"square",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};var IA=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n};const TA=(t,e)=>{const n=IA(t,[]),{coordinate:r,document:i}=e;return(t,e,A)=>{const{color:o}=A,a=IA(A,["color"]),{color:s=o,transform:l}=e,c=function(t,e){const[n,r,i,A]=t,o=(0,ir.Ae)();if(R(e)){const t=e.getCenter(),a=Xt(t,n);return o.moveTo(n[0],n[1]),o.quadraticCurveTo(t[0],t[1],i[0],i[1]),Se(o,i,A,t,a),o.quadraticCurveTo(t[0],t[1],r[0],r[1]),Se(o,r,n,t,a),o.closePath(),o}return o.moveTo(n[0],n[1]),o.bezierCurveTo(n[0]/2+i[0]/2,n[1],n[0]/2+i[0]/2,i[1],i[0],i[1]),o.lineTo(A[0],A[1]),o.bezierCurveTo(A[0]/2+r[0]/2,A[1],A[0]/2+r[0]/2,r[1],r[0],r[1]),o.lineTo(n[0],n[1]),o.closePath(),o}(t,r);return zt(i.createElement("path",{})).call(Ue,a).style("d",c.toString()).style("fill",s||o).style("stroke",s||o).style("transform",l).call(Ue,n).node()}};TA.props={defaultMarker:"square",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};const LA={polygon:_A,ribbon:TA},PA=()=>(t,e,n,r)=>{const i=Object.entries(n).filter(([t])=>t.startsWith("x")).map(([,t])=>t),A=Object.entries(n).filter(([t])=>t.startsWith("y")).map(([,t])=>t),o=t.map(t=>{const e=[];for(let n=0;n<i.length;n++){const o=i[n][t];if(void 0===o)break;e.push(r.map([+o,+A[n][t]]))}return e});return[t,o]};PA.props={defaultShape:"polygon",defaultLabelShape:"label",composite:!1,shape:LA,channels:[...an({shapes:Object.keys(LA)}),{name:"x",required:!0},{name:"y",required:!0}],preInference:[...un()],postInference:[...sn()]};const jA=(t,e)=>{const{coordinate:n,document:r}=e;return(e,i,A)=>{const{color:o,transform:a}=i,{color:s,fill:l=s,stroke:c=s}=A,u=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n}(A,["color","fill","stroke"]),d=function(t,e){const n=(0,ir.Ae)();if(R(e)){const r=e.getCenter(),[i,A]=r,o=Yt(Vt(t[0],r)),a=Yt(Vt(t[1],r)),s=Xt(r,t[2]),l=Xt(r,t[3]),c=Xt(r,t[8]),u=Xt(r,t[10]),d=Xt(r,t[11]);n.moveTo(...t[0]),n.arc(i,A,s,o,a),n.arc(i,A,s,a,o,!0),n.moveTo(...t[2]),n.lineTo(...t[3]),n.moveTo(...t[4]),n.arc(i,A,l,o,a),n.lineTo(...t[6]),n.arc(i,A,u,a,o,!0),n.closePath(),n.moveTo(...t[8]),n.arc(i,A,c,o,a),n.arc(i,A,c,a,o,!0),n.moveTo(...t[10]),n.lineTo(...t[11]),n.moveTo(...t[12]),n.arc(i,A,d,o,a),n.arc(i,A,d,a,o,!0)}else n.moveTo(...t[0]),n.lineTo(...t[1]),n.moveTo(...t[2]),n.lineTo(...t[3]),n.moveTo(...t[4]),n.lineTo(...t[5]),n.lineTo(...t[6]),n.lineTo(...t[7]),n.closePath(),n.moveTo(...t[8]),n.lineTo(...t[9]),n.moveTo(...t[10]),n.lineTo(...t[11]),n.moveTo(...t[12]),n.lineTo(...t[13]);return n}(e,n);return zt(r.createElement("path",{})).call(Ue,u).style("d",d.toString()).style("stroke",c).style("fill",o||l).style("transform",a).call(Ue,t).node()}};jA.props={defaultMarker:"point",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};const HA=(t,e)=>{const{coordinate:n,document:r}=e;return(e,i,A)=>{const{color:o,transform:a}=i,{color:s,fill:l=s,stroke:c=s}=A,u=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n}(A,["color","fill","stroke"]),d=function(t,e,n=4){const r=(0,ir.Ae)();if(!R(e))return r.moveTo(...t[2]),r.lineTo(...t[3]),r.lineTo(t[3][0]-n,t[3][1]),r.lineTo(t[10][0]-n,t[10][1]),r.lineTo(t[10][0]+n,t[10][1]),r.lineTo(t[3][0]+n,t[3][1]),r.lineTo(...t[3]),r.closePath(),r.moveTo(...t[10]),r.lineTo(...t[11]),r.moveTo(t[3][0]+n/2,t[8][1]),r.arc(t[3][0],t[8][1],n/2,0,2*Math.PI),r.closePath(),r;const i=e.getCenter(),[A,o]=i,a=Xt(i,t[3]),s=Xt(i,t[8]),l=Xt(i,t[10]),c=Yt(Vt(t[2],i)),u=Math.asin(n/s),d=c-u,f=c+u;r.moveTo(...t[2]),r.lineTo(...t[3]),r.moveTo(Math.cos(d)*a+A,Math.sin(d)*a+o),r.arc(A,o,a,d,f),r.lineTo(Math.cos(f)*l+A,Math.sin(f)*l+o),r.arc(A,o,l,f,d,!0),r.lineTo(Math.cos(d)*a+A,Math.sin(d)*a+o),r.closePath(),r.moveTo(...t[10]),r.lineTo(...t[11]);const h=(d+f)/2;return r.moveTo(Math.cos(h)*(s+n/2)+A,Math.sin(h)*(s+n/2)+o),r.arc(Math.cos(h)*s+A,Math.sin(h)*s+o,n/2,h,2*Math.PI+h),r.closePath(),r}(e,n,4);return zt(r.createElement("path",{})).call(Ue,u).style("d",d.toString()).style("stroke",c).style("fill",o||l).style("transform",a).call(Ue,t).node()}};HA.props={defaultMarker:"point",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};const NA={box:jA,violin:HA},DA=()=>(t,e,n,r)=>{const{x:i,y:A,y1:o,y2:a,y3:s,y4:l,series:c}=n,u=e.x,d=e.series,f=Array.from(t,t=>{const e=u.getBandWidth(u.invert(+i[t])),n=e*(d?d.getBandWidth(d.invert(+(null==c?void 0:c[t]))):1),f=+i[t]+(+(null==c?void 0:c[t])||0)*e+n/2,[h,p,g,m,y]=[+A[t],+o[t],+a[t],+s[t],+l[t]];return[[f-n/2,y],[f+n/2,y],[f,y],[f,m],[f-n/2,m],[f+n/2,m],[f+n/2,p],[f-n/2,p],[f-n/2,g],[f+n/2,g],[f,p],[f,h],[f-n/2,h],[f+n/2,h]].map(t=>r.map(t))});return[t,f]};DA.props={defaultShape:"box",defaultLabelShape:"label",composite:!1,shape:NA,channels:[...an({shapes:Object.keys(NA)}),{name:"x",scale:"band",required:!0},{name:"y",required:!0},{name:"series",scale:"band"}],preInference:[...un(),{type:H}],postInference:[...ln()],interaction:{shareTooltip:!0}};const RA={vector:bA},KA=()=>(t,e,n,r)=>{const{x:i,y:A,size:o,rotate:a}=n,[s,l]=r.getSize(),c=t.map(t=>{const e=+a[t]/180*Math.PI,n=+o[t],c=n/l,u=n/s*Math.cos(e),d=-c*Math.sin(e);return[r.map([+i[t]-u/2,+A[t]-d/2]),r.map([+i[t]+u/2,+A[t]+d/2])]});return[t,c]};KA.props={defaultShape:"vector",defaultLabelShape:"label",composite:!1,shape:RA,channels:[...an({shapes:Object.keys(RA)}),{name:"x",required:!0},{name:"y",required:!0},{name:"rotate",required:!0,scale:"identity"},{name:"size",required:!0}],preInference:[...un()],postInference:[...sn()]};var zA=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n};const GA=(t,e)=>{const{arrow:n,arrowSize:r=4}=t,i=zA(t,["arrow","arrowSize"]),{coordinate:A,document:o}=e;return(t,e,a)=>{const{color:s,lineWidth:l}=a,c=zA(a,["color","lineWidth"]),{color:u=s,size:d=l}=e,f=n?function(t,e,n){return t.createElement("path",{style:Object.assign({d:`M ${e},${e} L -${e},0 L ${e},-${e} L 0,0 Z`,transformOrigin:"center"},n)})}(o,r,Object.assign({fill:i.stroke||u,stroke:i.stroke||u},Pt(i,"arrow"))):null,h=function(t,e){if(!R(e))return(0,ze.A)().x(t=>t[0]).y(t=>t[1])(t);const n=e.getCenter();return(0,N.A)()({startAngle:0,endAngle:2*Math.PI,outerRadius:Xt(t[0],n),innerRadius:Xt(t[1],n)})}(t,A),p=function(t,e){if(!R(t))return e;const[n,r]=t.getCenter();return`translate(${n}, ${r}) ${e||""}`}(A,e.transform);return zt(o.createElement("path",{})).call(Ue,c).style("d",h).style("stroke",u).style("lineWidth",d).style("transform",p).style("markerEnd",f).call(Ue,i).node()}};GA.props={defaultMarker:"line",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};const VA=()=>(t,e)=>{const{data:n}=e;return!Array.isArray(n)||n.some(P)?[t,e]:[t,Q({},e,{encode:{x:M(n)}})]};VA.props={};const WA={line:GA},XA=t=>(e,n,r,i)=>{const{x:A}=r,o=fn(n,r,Q({style:{bandOffset:0}},t)),a=Array.from(e,t=>[[A[t],1],[A[t],0]].map(e=>i.map(o(e,t))));return[e,a]};XA.props={defaultShape:"line",defaultLabelShape:"label",composite:!1,shape:WA,channels:[...cn({shapes:Object.keys(WA)}),{name:"x",required:!0}],preInference:[...un(),{type:VA}],postInference:[]};const YA=()=>(t,e)=>{const{data:n}=e;return!Array.isArray(n)||n.some(P)?[t,e]:[t,Q({},e,{encode:{y:M(n)}})]};YA.props={};const $A={line:GA},qA=t=>(e,n,r,i)=>{const{y:A}=r,o=fn(n,r,Q({style:{bandOffset:0}},t)),a=Array.from(e,t=>[[0,A[t]],[1,A[t]]].map(e=>i.map(o(e,t))));return[e,a]};qA.props={defaultShape:"line",defaultLabelShape:"label",composite:!1,shape:$A,channels:[...cn({shapes:Object.keys($A)}),{name:"y",required:!0}],preInference:[...un(),{type:YA}],postInference:[]};var ZA=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n};function JA(t,e,n){return[["M",t,e],["L",t+2*n,e-n],["L",t+2*n,e+n],["Z"]]}const to=(t,e)=>{const{offsetX:n=0,sourceOffsetX:r=n,targetOffsetX:i=n,offsetY:A=0,sourceOffsetY:o=A,targetOffsetY:a=A,connectLength1:s,endMarker:l=!0}=t,c=ZA(t,["offsetX","sourceOffsetX","targetOffsetX","offsetY","sourceOffsetY","targetOffsetY","connectLength1","endMarker"]),{coordinate:u}=e;return(t,e,n)=>{const{color:A,connectLength1:d}=n,f=ZA(n,["color","connectLength1"]),{color:h,transform:p}=e,g=function(t,e,n,r,i,A,o=0){const[[a,s],[l,c]]=e;if(D(t)){const t=a+n,e=t+o,u=s+i,d=c+A;return[[t,u],[e,u],[e,d],[l+r,d]]}const u=s-n,d=u-o,f=a-i,h=l-A;return[[f,u],[f,d],[h,d],[h,c-r]]}(u,t,o,a,r,i,null!=s?s:d),m=Pt(Object.assign(Object.assign({},c),n),"endMarker");return zt(new $.wA).call(Ue,f).style("d",function(t){return(0,ze.A)().x(t=>t[0]).y(t=>t[1])(t)}(g)).style("stroke",h||A).style("transform",p).style("markerEnd",l?new Ni({className:"marker",style:Object.assign(Object.assign({},m),{symbol:JA})}):null).call(Ue,c).node()}};to.props={defaultMarker:"line",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};const eo={connector:to},no=(...t)=>QA(...t);function ro(t,e,n,r){if(e)return()=>[0,1];const{[t]:i,[`${t}1`]:A}=n;return t=>{var e;const n=(null===(e=r.getBandWidth)||void 0===e?void 0:e.call(r,r.invert(+A[t])))||0;return[i[t],A[t]+n]}}function io(t={}){const{extendX:e=!1,extendY:n=!1}=t;return(t,r,i,A)=>{const o=ro("x",e,i,r.x),a=ro("y",n,i,r.y),s=Array.from(t,t=>{const[e,n]=o(t),[r,i]=a(t);return[[e,r],[n,r],[n,i],[e,i]].map(t=>A.map(t))});return[t,s]}}no.props={defaultShape:"connector",defaultLabelShape:"label",composite:!1,shape:eo,channels:[...cn({shapes:Object.keys(eo)}),{name:"x",required:!0},{name:"y",required:!0}],preInference:[...un()],postInference:[]};const Ao={range:Re},oo=()=>io();oo.props={defaultShape:"range",defaultLabelShape:"label",composite:!1,shape:Ao,channels:[...cn({shapes:Object.keys(Ao)}),{name:"x",required:!0},{name:"y",required:!0}],preInference:[...un()],postInference:[]};const ao=()=>(t,e)=>{const{data:n}=e;if(Array.isArray(n)&&(n.every(Array.isArray)||!n.some(P))){const r=(t,e)=>Array.isArray(t[0])?t.map(t=>t[e]):[t[e]];return[t,Q({},e,{encode:{x:M(r(n,0)),x1:M(r(n,1))}})]}return[t,e]};ao.props={};const so={range:Re},lo=()=>io({extendY:!0});lo.props={defaultShape:"range",defaultLabelShape:"label",composite:!1,shape:so,channels:[...cn({shapes:Object.keys(so)}),{name:"x",required:!0}],preInference:[...un(),{type:ao}],postInference:[]};const co=()=>(t,e)=>{const{data:n}=e;if(Array.isArray(n)&&(n.every(Array.isArray)||!n.some(P))){const r=(t,e)=>Array.isArray(t[0])?t.map(t=>t[e]):[t[e]];return[t,Q({},e,{encode:{y:M(r(n,0)),y1:M(r(n,1))}})]}return[t,e]};co.props={};const uo={range:Re},fo=()=>io({extendX:!0});fo.props={defaultShape:"range",defaultLabelShape:"label",composite:!1,shape:uo,channels:[...cn({shapes:Object.keys(uo)}),{name:"y",required:!0}],preInference:[...un(),{type:co}],postInference:[]};var ho=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n};const po=(t,e)=>{const{colorAttribute:n}=t,r=ho(t,["arrow","colorAttribute"]),{coordinate:i,document:A}=e;return(t,e,o)=>{const{color:a}=o,s=ho(o,["color","stroke"]),{d:l,color:c=a}=e,[u,d]=i.getSize();return zt(A.createElement("path",{})).call(Ue,s).style("d","function"==typeof l?l({width:u,height:d}):l).style(n,c).call(Ue,r).node()}};po.props={defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};const go=(t,e)=>po(Object.assign({colorAttribute:"fill"},t),e);go.props={defaultMarker:"hvh",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};const mo=(t,e)=>po(Object.assign({fill:"none",colorAttribute:"stroke"},t),e);mo.props={defaultMarker:"hvh",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};const yo={path:go,hollow:mo},vo=t=>(t,e,n,r)=>[t,t.map(()=>[[0,0]])];vo.props={defaultShape:"path",defaultLabelShape:"label",shape:yo,composite:!1,channels:[...an({shapes:Object.keys(yo)}),{name:"d",scale:"identity"}],preInference:[...un()],postInference:[]};const bo=(t,e)=>{const{render:n}=t,r=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n}(t,["render"]);return t=>{const[[i,A]]=t;return n(Object.assign(Object.assign({},r),{x:i,y:A}),e)}};bo.props={defaultMarker:"point",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};const wo=()=>(t,e)=>{const{style:n={}}=e;return[t,Q({},e,{style:Object.assign(Object.assign({},n),Object.fromEntries(Object.entries(n).filter(([,t])=>"function"==typeof t).map(([t,e])=>[t,()=>e])))})]};wo.props={};const Bo=t=>{const{cartesian:e}=t;return e?pn:(e,n,r,i)=>{const{x:A,y:o}=r,a=fn(n,r,t),s=Array.from(e,t=>[i.map(a([+A[t],+o[t]],t))]);return[e,s]}};Bo.props={defaultShape:"shape",defaultLabelShape:"label",composite:!1,shape:{shape:bo},channels:[{name:"x",required:!0},{name:"y",required:!0}],preInference:[...un(),{type:Yi},{type:qi},{type:wo}]};const xo=(t,e)=>{const{document:n}=e;return(e,r,i)=>{const{transform:A}=r,{color:o}=i,a=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n}(i,["color"]),{color:s=o}=r,[l,...c]=e,u=(0,ir.Ae)();return u.moveTo(...l),c.forEach(([t,e])=>{u.lineTo(t,e)}),u.closePath(),zt(n.createElement("path",{})).call(Ue,a).style("d",u.toString()).style("stroke",s||o).style("fill",s||o).style("fillOpacity",.4).style("transform",A).call(Ue,t).node()}};xo.props={defaultMarker:"square",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};const Co={density:xo},Eo=()=>(t,e,n,r)=>{const{x:i,series:A}=n,o=Object.entries(n).filter(([t])=>t.startsWith("y")).map(([,t])=>t),a=Object.entries(n).filter(([t])=>t.startsWith("size")).map(([,t])=>t);if(void 0===i||void 0===o||void 0===a)throw new Error("Missing encode for x or y or size channel.");const s=e.x,l=e.series,c=Array.from(t,e=>{const n=s.getBandWidth(s.invert(+i[e])),c=l?l.getBandWidth(l.invert(+(null==A?void 0:A[e]))):1,u=+i[e]+(+(null==A?void 0:A[e])||0)*n+n*c/2;return[...o.map((n,r)=>[u+ +a[r][e]/t.length,+o[r][e]]),...o.map((n,r)=>[u-+a[r][e]/t.length,+o[r][e]]).reverse()].map(t=>r.map(t))});return[t,c]};function Oo(t,e){let n;if(void 0===e)for(const e of t)null!=e&&(n>e||void 0===n&&e>=e)&&(n=e);else{let r=-1;for(let i of t)null!=(i=e(i,++r,t))&&(n>i||void 0===n&&i>=i)&&(n=i)}return n}function ko(t,e){let n;if(void 0===e)for(const e of t)null!=e&&(n<e||void 0===n&&e>=e)&&(n=e);else{let r=-1;for(let i of t)null!=(i=e(i,++r,t))&&(n<i||void 0===n&&i>=i)&&(n=i)}return n}Eo.props={defaultShape:"density",defaultLabelShape:"label",composite:!1,shape:Co,channels:[...an({shapes:Object.keys(Co)}),{name:"x",scale:"band",required:!0},{name:"y",required:!0},{name:"size",required:!0},{name:"series",scale:"band"},{name:"size",required:!0,scale:"identity"}],preInference:[...un(),{type:j},{type:H}],postInference:[...ln()],interaction:{shareTooltip:!0}};var Fo=n("./node_modules/.pnpm/flru@1.0.2/node_modules/flru/dist/flru.mjs");function Qo(t,e=(...t)=>`${t[0]}`,n=16){const r=(0,Fo.A)(n);return(...n)=>{const i=e(...n);let A=r.get(i);return r.has(i)?r.get(i):(A=t(...n),r.set(i,A),A)}}function Mo(t,e,n){const r=t?t():document.createElement("canvas");return r.width=e,r.height=n,r}(0,Fo.A)(3);const Uo=Qo((t,e,n)=>{const r=Mo(n,2*t,2*t),i=r.getContext("2d"),A=t,o=t;if(1===e)i.beginPath(),i.arc(A,o,t,0,2*Math.PI,!1),i.fillStyle="rgba(0,0,0,1)",i.fill();else{const n=i.createRadialGradient(A,o,t*e,A,o,t);n.addColorStop(0,"rgba(0,0,0,1)"),n.addColorStop(1,"rgba(0,0,0,0)"),i.fillStyle=n,i.fillRect(0,0,2*t,2*t)}return r},t=>`${t}`);const So=(t,e)=>{const{gradient:n,opacity:r,maxOpacity:i,minOpacity:A,blur:o,useGradientOpacity:a}=t,s=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n}(t,["gradient","opacity","maxOpacity","minOpacity","blur","useGradientOpacity"]),{coordinate:l,createCanvas:c,document:u}=e;return(t,e,d)=>{const{transform:f}=e,[h,p]=l.getSize(),g=t.map(t=>({x:t[0],y:t[1],value:t[2],radius:t[3]})),m=Oo(t,t=>t[2]),y=ko(t,t=>t[2]),v=h&&p?function(t,e,n,r,i,A,o){const a=Object.assign({blur:.85,minOpacity:0,opacity:.6,maxOpacity:1,gradient:[[.25,"rgb(0,0,255)"],[.55,"rgb(0,255,0)"],[.85,"yellow"],[1,"rgb(255,0,0)"]]},A);a.minOpacity*=255,a.opacity*=255,a.maxOpacity*=255;const s=Mo(o,t,e).getContext("2d"),l=function(t,e){const n=Mo(e,256,1).getContext("2d"),r=n.createLinearGradient(0,0,256,1);return function(t){return"string"==typeof t?t.split(" ").map(t=>{const[e,n]=t.split(":");return[+e,n]}):t}(t).forEach(([t,e])=>{r.addColorStop(t,e)}),n.fillStyle=r,n.fillRect(0,0,256,1),n.getImageData(0,0,256,1).data}(a.gradient,o);s.clearRect(0,0,t,e),function(t,e,n,r,i,A){const{blur:o}=i;let a=r.length;for(;a--;){const{x:i,y:s,value:l,radius:c}=r[a],u=Math.min(l,n),d=i-c,f=s-c,h=Uo(c,1-o,A);t.globalAlpha=Math.max((u-e)/(n-e),.001),t.drawImage(h,d,f)}}(s,n,r,i,a,o);const c=function(t,e,n,r,i){const{minOpacity:A,opacity:o,maxOpacity:a,useGradientOpacity:s}=i,l=t.getImageData(0,0,e,n),c=l.data,u=c.length;for(let t=3;t<u;t+=4){const e=c[t],n=4*e;if(!n)continue;const i=o||Math.max(0,Math.min(a,Math.max(A,e)));c[t-3]=r[n],c[t-2]=r[n+1],c[t-1]=r[n+2],c[t]=s?r[n+3]:i}return l}(s,t,e,l,a),u=Mo(o,t,e).getContext("2d");return u.putImageData(c,0,0),u}(h,p,m,y,g,(b={gradient:n,opacity:r,minOpacity:A,maxOpacity:i,blur:o,useGradientOpacity:a},w=t=>void 0===t,Object.keys(b).reduce((t,e)=>{const n=b[e];return w(n)||(t[e]=n),t},{})),c):{canvas:null};var b,w;return zt(u.createElement("image",{})).call(Ue,d).style("x",0).style("y",0).style("width",h).style("height",p).style("src",v.canvas.toDataURL()).style("transform",f).call(Ue,s).node()}};So.props={defaultMarker:"point",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};const _o={heatmap:So},Io=t=>(t,e,n,r)=>{const{x:i,y:A,size:o,color:a}=n,s=Array.from(t,t=>{const e=o?+o[t]:40;return[...r.map([+i[t],+A[t]]),a[t],e]});return[[0],[s]]};Io.props={defaultShape:"heatmap",defaultLabelShape:"label",composite:!1,shape:_o,channels:[...an({shapes:Object.keys(_o)}),{name:"x",required:!0},{name:"y",required:!0},{name:"color",scale:"identity",required:!0},{name:"size"}],preInference:[...un(),{type:H},{type:di}],postInference:[...sn()]};const To=(t,e)=>{return n=void 0,r=void 0,A=function*(){const{width:n,height:r}=e,{data:i,encode:A={},scale:o,style:a={},layout:s={}}=t,l=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n}(t,["data","encode","scale","style","layout"]),c=function(t,e){const{text:n="text",value:r="value"}=e;return t.map(t=>Object.assign(Object.assign({},t),{text:t[n],value:t[r]}))}(i,A);return Q({},{axis:!1,type:"text",encode:{x:"x",y:"y",text:"text",rotate:"rotate",fontSize:"size",shape:"tag"},scale:{x:{range:[0,1]},y:{range:[0,1]}},style:{fontFamily:t=>t.fontFamily},tooltip:{items:[t=>({name:t.text,value:t.value})]}},Object.assign(Object.assign({data:{value:c,transform:[Object.assign({type:"wordCloud",size:[n,r]},s)]},encode:A,scale:o,style:a},l),{axis:!1}))},new((i=void 0)||(i=Promise))(function(t,e){function o(t){try{s(A.next(t))}catch(t){e(t)}}function a(t){try{s(A.throw(t))}catch(t){e(t)}}function s(e){e.done?t(e.value):function(t){return t instanceof i?t:new i(function(e){e(t)})}(e.value).then(o,a)}s((A=A.apply(n,r||[])).next())});var n,r,i,A};To.props={};var Lo=n("./node_modules/.pnpm/d3-force@3.0.0/node_modules/d3-force/src/simulation.js"),Po=n("./node_modules/.pnpm/d3-force@3.0.0/node_modules/d3-force/src/collide.js"),jo=n("./node_modules/.pnpm/d3-force@3.0.0/node_modules/d3-force/src/constant.js");function Ho(t){var e,n,r,i=(0,jo.A)(.1);function A(t){for(var i,A=0,o=e.length;A<o;++A)(i=e[A]).vx+=(r[A]-i.x)*n[A]*t}function o(){if(e){var A,o=e.length;for(n=new Array(o),r=new Array(o),A=0;A<o;++A)n[A]=isNaN(r[A]=+t(e[A],A,e))?0:+i(e[A],A,e)}}return"function"!=typeof t&&(t=(0,jo.A)(null==t?0:+t)),A.initialize=function(t){e=t,o()},A.strength=function(t){return arguments.length?(i="function"==typeof t?t:(0,jo.A)(+t),o(),A):i},A.x=function(e){return arguments.length?(t="function"==typeof e?e:(0,jo.A)(+e),o(),A):t},A}function No(t){var e,n,r,i=(0,jo.A)(.1);function A(t){for(var i,A=0,o=e.length;A<o;++A)(i=e[A]).vy+=(r[A]-i.y)*n[A]*t}function o(){if(e){var A,o=e.length;for(n=new Array(o),r=new Array(o),A=0;A<o;++A)n[A]=isNaN(r[A]=+t(e[A],A,e))?0:+i(e[A],A,e)}}return"function"!=typeof t&&(t=(0,jo.A)(null==t?0:+t)),A.initialize=function(t){e=t,o()},A.strength=function(t){return arguments.length?(i="function"==typeof t?t:(0,jo.A)(+t),o(),A):i},A.y=function(e){return arguments.length?(t="function"==typeof e?e:(0,jo.A)(+e),o(),A):t},A}const Do={hollow:zr,hollowDiamond:Gr,hollowHexagon:Vr,hollowSquare:Wr,hollowTriangleDown:Xr,hollowTriangle:Yr,hollowBowtie:$r,hollowCircle:Jr,point:ti,plus:ei,diamond:ni,square:ri,triangle:ii,hexagon:Ai,cross:oi,bowtie:ai,hyphen:si,line:li,tick:ci,triangleDown:ui,circle:Zr},Ro=t=>(e,n,r,i)=>{const{x:A,y:o,size:a}=r;if(!A.length||!o.length)return[e,o.map(()=>[[]])];const[s,l]=i.getSize(),c=fn(n,r,t),u=Array.from(e,t=>({i:t,x:+A[t]*s,y:+o[t]*l,r:+a[t]||4})),d=(0,Lo.A)(u).stop().force("collide",(0,Po.A)().radius(t=>t.r+1).strength(1));d.force("x",Ho(t=>t.x).strength(0)),d.force("y",No(t=>t.y).strength(5));for(let t=0;t<200;t++)d.tick();d.stop();const f=t=>{const e=u.find(e=>e.i===t);return[e.x/s,e.y/l]},h=Array.from(e,a?t=>{const[e,n]=f(t),r=+a[t],A=r/s,o=r/l,u=[e+A,n+o];return[i.map(c([e-A,n-o],t)),i.map(c(u,t))]}:t=>[i.map(c(f(t),t))]);return[e,h]};Ro.props={defaultShape:"point",defaultLabelShape:"label",composite:!1,shape:Do,channels:[...an({shapes:Object.keys(Do)}),{name:"x",required:!0},{name:"y",required:!0},{name:"series",scale:"band"},{name:"size",quantitative:"sqrt"}],preInference:[...un(),{type:H},{type:di}],postInference:[{type:fi},...sn()]};const Ko=()=>["#5B8FF9","#5AD8A6","#5D7092","#F6BD16","#6F5EF9","#6DC8EC","#945FB9","#FF9845","#1E9493","#FF99C3"];Ko.props={};const zo=()=>["#5B8FF9","#CDDDFD","#5AD8A6","#CDF3E4","#5D7092","#CED4DE","#F6BD16","#FCEBB9","#6F5EF9","#D3CEFD","#6DC8EC","#D3EEF9","#945FB9","#DECFEA","#FF9845","#FFE0C7","#1E9493","#BBDEDE","#FF99C3","#FFE0ED"];zo.props={};const Go=t=>new xe(t);Go.props={};const Vo=t=>new mt(t);Vo.props={};const Wo=t=>new vt(t);function Xo(t){return(0,ot.A)(t)?0:ne(t)?t.length:Object.keys(t).length}Wo.props={};const Yo=function(t,e){if(!ne(t))return-1;var n=Array.prototype.indexOf;if(n)return n.call(t,e);for(var r=-1,i=0;i<t.length;i++)if(t[i]===e){r=i;break}return r};function $o(t){return Math.abs(t)<1e-14?t:parseFloat(t.toFixed(14))}const qo=[1,5,2,2.5,4,3],Zo=100*Number.EPSILON;function Jo(t,e,n,r,i,A){const o=Xo(e),a=Yo(e,t);let s=0;const l=function(t,e){return(t%e+e)%e}(r,A);return(l<Zo||A-l<Zo)&&r<=0&&i>=0&&(s=1),1-a/(o-1)-n+s}function ta(t,e,n){const r=Xo(e);return 1-Yo(e,t)/(r-1)-n+1}function ea(t,e,n,r,i,A){const o=(t-1)/(A-i),a=(e-1)/(Math.max(A,r)-Math.min(n,i));return 2-Math.max(o/a,a/o)}function na(t,e){return t>=e?2-(t-1)/(e-1):1}function ra(t,e,n,r){return 1-.5*((e-r)**2+(t-n)**2)/(.1*(e-t))**2}function ia(t,e,n){const r=e-t;return n>r?1-((n-r)/2)**2/(.1*r)**2:1}function Aa(){return 1}const oa=(t,e,n=5,r=!0,i=qo,A=[.25,.2,.5,.05])=>{const o=n<0?0:Math.round(n);if(Number.isNaN(t)||Number.isNaN(e)||"number"!=typeof t||"number"!=typeof e||!o)return[];if(e-t<1e-15||1===o)return[t];const a={score:-2,lmin:0,lmax:0,lstep:0};let s=1;for(;s<1/0;){for(let n=0;n<i.length;n+=1){const l=i[n],c=ta(l,i,s);if(A[0]*c+A[1]+A[2]+A[3]<a.score){s=1/0;break}let u=2;for(;u<1/0;){const n=na(u,o);if(A[0]*c+A[1]+A[2]*n+A[3]<a.score)break;let d=Math.ceil(Math.log10((e-t)/(u+1)/s/l));for(;d<1/0;){const f=s*l*10**d,h=ia(t,e,f*(u-1));if(A[0]*c+A[1]*h+A[2]*n+A[3]<a.score)break;const p=Math.floor(e/f)*s-(u-1)*s,g=Math.ceil(t/f)*s;if(p<=g){const n=g-p;for(let c=0;c<=n;c+=1){const n=(p+c)*(f/s),d=n+f*(u-1),h=f,g=Jo(l,i,s,n,d,h),m=ra(t,e,n,d),y=ea(u,o,t,e,n,d),v=Aa(),b=A[0]*g+A[1]*m+A[2]*y+A[3]*v;b>a.score&&(!r||n<=t&&d>=e)&&(a.lmin=n,a.lmax=d,a.lstep=h,a.score=b)}}d+=1}u+=1}}s+=1}const l=$o(a.lmax),c=$o(a.lmin),u=$o(a.lstep),d=Math.floor(function(t){return Math.round(1e12*t)/1e12}((l-c)/u))+1,f=new Array(d);f[0]=$o(c);for(let t=1;t<d;t+=1)f[t]=$o(f[t-1]+u);return f};class aa extends dt{getDefaultOptions(){return{domain:[0,1],range:[0,1],tickCount:5,unknown:void 0,tickMethod:oa}}map(t){return me(t)?t:this.options.unknown}invert(t){return this.map(t)}clone(){return new aa(this.options)}getTicks(){const{domain:t,tickCount:e,tickMethod:n}=this.options,[r,i]=t;return(0,bt.A)(r)&&(0,bt.A)(i)?n(r,i,e):[]}}const sa=t=>new aa(t);sa.props={};class la extends vt{getDefaultOptions(){return{domain:[],range:[0,1],align:.5,round:!1,padding:0,unknown:ft,paddingInner:1,paddingOuter:0}}constructor(t){super(t)}getPaddingInner(){return 1}clone(){return new la(this.options)}update(t){super.update(t)}getPaddingOuter(){return this.options.padding}}const ca=t=>new la(t);ca.props={};var ua=/d{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|ZZ|Z|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,da=/\[([^]*?)\]/gm;function fa(t,e){for(var n=[],r=0,i=t.length;r<i;r++)n.push(t[r].substr(0,e));return n}var ha=function(t){return function(e,n){var r=n[t].map(function(t){return t.toLowerCase()}),i=r.indexOf(e.toLowerCase());return i>-1?i:null}};function pa(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];for(var r=0,i=e;r<i.length;r++){var A=i[r];for(var o in A)t[o]=A[o]}return t}var ga=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],ma=["January","February","March","April","May","June","July","August","September","October","November","December"],ya=fa(ma,3),va=pa({},{dayNamesShort:fa(ga,3),dayNames:ga,monthNamesShort:ya,monthNames:ma,amPm:["am","pm"],DoFn:function(t){return t+["th","st","nd","rd"][t%10>3?0:(t-t%10!=10?1:0)*t%10]}}),ba=function(t,e){for(void 0===e&&(e=2),t=String(t);t.length<e;)t="0"+t;return t},wa={D:function(t){return String(t.getDate())},DD:function(t){return ba(t.getDate())},Do:function(t,e){return e.DoFn(t.getDate())},d:function(t){return String(t.getDay())},dd:function(t){return ba(t.getDay())},ddd:function(t,e){return e.dayNamesShort[t.getDay()]},dddd:function(t,e){return e.dayNames[t.getDay()]},M:function(t){return String(t.getMonth()+1)},MM:function(t){return ba(t.getMonth()+1)},MMM:function(t,e){return e.monthNamesShort[t.getMonth()]},MMMM:function(t,e){return e.monthNames[t.getMonth()]},YY:function(t){return ba(String(t.getFullYear()),4).substr(2)},YYYY:function(t){return ba(t.getFullYear(),4)},h:function(t){return String(t.getHours()%12||12)},hh:function(t){return ba(t.getHours()%12||12)},H:function(t){return String(t.getHours())},HH:function(t){return ba(t.getHours())},m:function(t){return String(t.getMinutes())},mm:function(t){return ba(t.getMinutes())},s:function(t){return String(t.getSeconds())},ss:function(t){return ba(t.getSeconds())},S:function(t){return String(Math.round(t.getMilliseconds()/100))},SS:function(t){return ba(Math.round(t.getMilliseconds()/10),2)},SSS:function(t){return ba(t.getMilliseconds(),3)},a:function(t,e){return t.getHours()<12?e.amPm[0]:e.amPm[1]},A:function(t,e){return t.getHours()<12?e.amPm[0].toUpperCase():e.amPm[1].toUpperCase()},ZZ:function(t){var e=t.getTimezoneOffset();return(e>0?"-":"+")+ba(100*Math.floor(Math.abs(e)/60)+Math.abs(e)%60,4)},Z:function(t){var e=t.getTimezoneOffset();return(e>0?"-":"+")+ba(Math.floor(Math.abs(e)/60),2)+":"+ba(Math.abs(e)%60,2)}},Ba=(ha("monthNamesShort"),ha("monthNames"),{default:"ddd MMM DD YYYY HH:mm:ss",shortDate:"M/D/YY",mediumDate:"MMM D, YYYY",longDate:"MMMM D, YYYY",fullDate:"dddd, MMMM D, YYYY",isoDate:"YYYY-MM-DD",isoDateTime:"YYYY-MM-DDTHH:mm:ssZ",shortTime:"HH:mm",mediumTime:"HH:mm:ss",longTime:"HH:mm:ss.SSS"});const xa=36e5,Ca=864e5,Ea=6048e5,Oa=2592e6,ka=31536e6;function Fa(t,e,n,r){const i=(t,i)=>{i&&((t,e)=>{const i=t=>r(t)%e===0;let A=e;for(;A&&!i(t);)n(t,-1),A-=1})(t,i),e(t)},A=(t,e)=>{const r=new Date(+t-1);return i(r,e),n(r,e),i(r),r};return{ceil:A,floor:(t,e)=>{const n=new Date(+t);return i(n,e),n},range:(t,e,r,o)=>{const a=[],s=Math.floor(r);for(let l=o?A(t,r):A(t);l<e;n(l,s),i(l))a.push(new Date(+l));return a},duration:t}}const Qa=Fa(1,t=>t,(t,e=1)=>{t.setTime(+t+e)},t=>t.getTime()),Ma=Fa(1e3,t=>{t.setMilliseconds(0)},(t,e=1)=>{t.setTime(+t+1e3*e)},t=>t.getSeconds()),Ua=Fa(6e4,t=>{t.setSeconds(0,0)},(t,e=1)=>{t.setTime(+t+6e4*e)},t=>t.getMinutes()),Sa=Fa(xa,t=>{t.setMinutes(0,0,0)},(t,e=1)=>{t.setTime(+t+xa*e)},t=>t.getHours()),_a=Fa(Ca,t=>{t.setHours(0,0,0,0)},(t,e=1)=>{t.setTime(+t+Ca*e)},t=>t.getDate()-1),Ia=Fa(Oa,t=>{t.setDate(1),t.setHours(0,0,0,0)},(t,e=1)=>{const n=t.getMonth();t.setMonth(n+e)},t=>t.getMonth()),Ta=Fa(Ea,t=>{t.setDate(t.getDate()-t.getDay()%7),t.setHours(0,0,0,0)},(t,e=1)=>{t.setDate(t.getDate()+7*e)},t=>{const e=Ia.floor(t),n=new Date(+t);return Math.floor((+n-+e)/Ea)}),La=Fa(ka,t=>{t.setMonth(0,1),t.setHours(0,0,0,0)},(t,e=1)=>{const n=t.getFullYear();t.setFullYear(n+e)},t=>t.getFullYear()),Pa={millisecond:Qa,second:Ma,minute:Ua,hour:Sa,day:_a,week:Ta,month:Ia,year:La},ja=Fa(1,t=>t,(t,e=1)=>{t.setTime(+t+e)},t=>t.getTime()),Ha=Fa(1e3,t=>{t.setUTCMilliseconds(0)},(t,e=1)=>{t.setTime(+t+1e3*e)},t=>t.getUTCSeconds()),Na=Fa(6e4,t=>{t.setUTCSeconds(0,0)},(t,e=1)=>{t.setTime(+t+6e4*e)},t=>t.getUTCMinutes()),Da=Fa(xa,t=>{t.setUTCMinutes(0,0,0)},(t,e=1)=>{t.setTime(+t+xa*e)},t=>t.getUTCHours()),Ra=Fa(Ca,t=>{t.setUTCHours(0,0,0,0)},(t,e=1)=>{t.setTime(+t+Ca*e)},t=>t.getUTCDate()-1),Ka=Fa(Oa,t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)},(t,e=1)=>{const n=t.getUTCMonth();t.setUTCMonth(n+e)},t=>t.getUTCMonth()),za=Fa(Ea,t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7)%7),t.setUTCHours(0,0,0,0)},(t,e=1)=>{t.setTime(+t+Ea*e)},t=>{const e=Ka.floor(t),n=new Date(+t);return Math.floor((+n-+e)/Ea)}),Ga=Fa(ka,t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,e=1)=>{const n=t.getUTCFullYear();t.setUTCFullYear(n+e)},t=>t.getUTCFullYear()),Va={millisecond:ja,second:Ha,minute:Na,hour:Da,day:Ra,week:za,month:Ka,year:Ga};function Wa(t,e,n,r,i){const A=+t,o=+e,{tickIntervals:a,year:s,millisecond:l}=function(t){const e=t?Va:Pa,{year:n,month:r,week:i,day:A,hour:o,minute:a,second:s,millisecond:l}=e;return{tickIntervals:[[s,1],[s,5],[s,15],[s,30],[a,1],[a,5],[a,15],[a,30],[o,1],[o,3],[o,6],[o,12],[A,1],[A,2],[i,1],[r,1],[r,3],[n,1]],year:n,millisecond:l}}(i),c=([t,e])=>t.duration*e,u=r?(o-A)/r:n||5,d=r||(o-A)/u,f=a.length,h=ae(a,d,0,f,c);let p;if(h===f)p=[s,Et(A/s.duration,o/s.duration,u)];else if(h){const t=d/c(a[h-1])<c(a[h])/d,[e,n]=t?a[h-1]:a[h];p=[e,r?Math.ceil(r/e.duration):n]}else p=[l,Math.max(Et(A,o,u),1)];return p}const Xa=(t,e,n,r,i)=>{const A=t>e,o=A?e:t,a=A?t:e,[s,l]=Wa(o,a,n,r,i),c=s.range(o,new Date(+a+1),l,!0);return A?c.reverse():c},Ya=(t,e,n,r,i)=>{const A=t>e,o=A?e:t,a=A?t:e,[s,l]=Wa(o,a,n,r,i),c=[s.floor(o,l),s.ceil(a,l)];return A?c.reverse():c};function $a(t){const e=t.getTimezoneOffset(),n=new Date(t);return n.setMinutes(n.getMinutes()+e,n.getSeconds(),n.getMilliseconds()),n}class qa extends Be{getDefaultOptions(){return{domain:[new Date(2e3,0,1),new Date(2e3,0,2)],range:[0,1],nice:!1,tickCount:5,tickInterval:void 0,unknown:void 0,clamp:!1,tickMethod:Xa,interpolate:de,mask:void 0,utc:!1}}chooseTransforms(){return[t=>+t,t=>new Date(t)]}chooseNice(){return Ya}getTickMethodOptions(){const{domain:t,tickCount:e,tickInterval:n,utc:r}=this.options;return[t[0],t[t.length-1],e,n,r]}getFormatter(){const{mask:t,utc:e}=this.options,n=e?Va:Pa,r=e?$a:ie;return e=>function(t,e,n){if(void 0===e&&(e=Ba.default),void 0===n&&(n={}),"number"==typeof t&&(t=new Date(t)),"[object Date]"!==Object.prototype.toString.call(t)||isNaN(t.getTime()))throw new Error("Invalid Date pass to format");var r=[];e=(e=Ba[e]||e).replace(da,function(t,e){return r.push(e),"@@@"});var i=pa(pa({},va),n);return(e=e.replace(ua,function(e){return wa[e](t,i)})).replace(/@@@/g,function(){return r.shift()})}(r(e),t||function(t,e){const{second:n,minute:r,hour:i,day:A,week:o,month:a,year:s}=e;return n.floor(t)<t?".SSS":r.floor(t)<t?":ss":i.floor(t)<t?"hh:mm":A.floor(t)<t?"hh A":a.floor(t)<t?o.floor(t)<t?"MMM DD":"ddd DD":s.floor(t)<t?"MMMM":"YYYY"}(e,n))}clone(){return new qa(this.options)}}const Za=t=>new qa(t);Za.props={};const Ja=t=>e=>-t(-e),ts=(t,e)=>{const n=Math.log(t),r=t===Math.E?Math.log:10===t?Math.log10:2===t?Math.log2:t=>Math.log(t)/n;return e?Ja(r):r},es=(t,e)=>{const n=t===Math.E?Math.exp:e=>t**e;return e?Ja(n):n},ns=(t,e,n,r=10)=>{const i=t<0,A=es(r,i),o=ts(r,i),a=e<t,s=a?e:t,l=a?t:e;let c=o(s),u=o(l),d=[];if(!(r%1)&&u-c<n){if(c=Math.floor(c),u=Math.ceil(u),i)for(;c<=u;c+=1){const t=A(c);for(let e=r-1;e>=1;e-=1){const n=t*e;if(n>l)break;n>=s&&d.push(n)}}else for(;c<=u;c+=1){const t=A(c);for(let e=1;e<r;e+=1){const n=t*e;if(n>l)break;n>=s&&d.push(n)}}2*d.length<n&&(d=Ot(s,l,n))}else{const t=-1===n?u-c:Math.min(u-c,n);d=Ot(c,u,t).map(A)}return a?d.reverse():d},rs=(t,e,n,r)=>{const i=t<0,A=ts(r,i),o=es(r,i),a=t>e,s=a?t:e,l=[o(Math.floor(A(a?e:t))),o(Math.ceil(A(s)))];return a?l.reverse():l};class is extends Be{getDefaultOptions(){return{domain:[1,10],range:[0,1],base:10,interpolate:fe,tickMethod:ns,tickCount:5}}chooseNice(){return rs}getTickMethodOptions(){const{domain:t,tickCount:e,base:n}=this.options;return[t[0],t[t.length-1],e,n]}chooseTransforms(){const{base:t,domain:e}=this.options,n=e[0]<0;return[ts(t,n),es(t,n)]}clone(){return new is(this.options)}}const As=t=>new is(t);As.props={};const os=t=>t<0?-Math.sqrt(-t):Math.sqrt(t);class as extends Be{getDefaultOptions(){return{domain:[0,1],range:[0,1],nice:!1,clamp:!1,round:!1,exponent:2,interpolate:fe,tickMethod:Ot,tickCount:5}}constructor(t){super(t)}chooseTransforms(){const{exponent:t}=this.options;if(1===t)return[ie,ie];const e=.5===t?os:(t=>e=>e<0?-((-e)**t):e**t)(t),n=(t=>e=>e<0?-((-e)**(1/t)):e**(1/t))(t);return[e,n]}clone(){return new as(this.options)}}const ss=t=>new as(t);ss.props={};class ls extends as{getDefaultOptions(){return{domain:[0,1],range:[0,1],nice:!1,clamp:!1,round:!1,interpolate:fe,tickMethod:Ot,tickCount:5,exponent:.5}}constructor(t){super(t)}update(t){super.update(t)}clone(){return new ls(this.options)}}const cs=t=>new ls(t);cs.props={};class us extends dt{getDefaultOptions(){return{domain:[.5],range:[0,1]}}constructor(t){super(t)}map(t){if(!me(t))return this.options.unknown;const e=ae(this.thresholds,t,0,this.n);return this.options.range[e]}invert(t){const{range:e}=this.options,n=e.indexOf(t),r=this.thresholds;return[r[n-1],r[n]]}clone(){return new us(this.options)}rescale(){const{domain:t,range:e}=this.options;this.n=Math.min(t.length,e.length-1),this.thresholds=t}}const ds=t=>new us(t);function fs(t,e){const n=t.length;if(!n)return;if(n<2)return t[n-1];const r=(n-1)*e,i=Math.floor(r),A=t[i];return A+(t[i+1]-A)*(r-i)}ds.props={};class hs extends us{getDefaultOptions(){return{domain:[],range:[],tickCount:5,unknown:void 0,tickMethod:oa}}constructor(t){super(t)}rescale(){const{domain:t,range:e}=this.options;this.n=e.length-1,this.thresholds=function(t,e,n=!1){const r=t;n||r.sort((t,e)=>t-e);const i=[];for(let t=1;t<e;t+=1)i.push(fs(r,t/e));return i}(t,this.n+1,!1)}invert(t){const[e,n]=super.invert(t),{domain:r}=this.options;return void 0===e&&void 0===n?[e,n]:[e||r[0],n||r[r.length-1]]}getThresholds(){return this.thresholds}clone(){return new hs(this.options)}getTicks(){const{tickCount:t,domain:e,tickMethod:n}=this.options;return n(e[0],e[e.length-1],t)}}const ps=t=>new hs(t);ps.props={};class gs extends us{getDefaultOptions(){return{domain:[0,1],range:[.5],nice:!1,tickCount:5,tickMethod:oa}}constructor(t){super(t)}nice(){const{nice:t}=this.options;if(t){const[t,e,n]=this.getTickMethodOptions();this.options.domain=ye(t,e,n)}}getTicks(){const{tickMethod:t}=this.options,[e,n,r]=this.getTickMethodOptions();return t(e,n,r)}getTickMethodOptions(){const{domain:t,tickCount:e}=this.options;return[t[0],t[t.length-1],e]}rescale(){this.nice();const{range:t,domain:e}=this.options,[n,r]=e;this.n=t.length-1,this.thresholds=new Array(this.n);for(let t=0;t<this.n;t+=1)this.thresholds[t]=((t+1)*r-(t-this.n)*n)/(this.n+1)}invert(t){const[e,n]=super.invert(t),[r,i]=this.options.domain;return void 0===e&&void 0===n?[e,n]:[e||r,n||i]}getThresholds(){return this.thresholds}clone(){return new gs(this.options)}}const ms=t=>new gs(t);ms.props={};var ys;let vs=ys=class extends xe{getDefaultOptions(){return{domain:[0,1],unknown:void 0,nice:!1,clamp:!1,round:!1,interpolator:ie,tickMethod:Ot,tickCount:5}}constructor(t){super(t)}clone(){return new ys(this.options)}};vs=ys=function(t,e,n,r){var i,A=arguments.length,o=A<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(A<3?i(o):A>3?i(e,n,o):i(e,n))||o);return A>3&&o&&Object.defineProperty(e,n,o),o}([t=>{t.prototype.rescale=function(){this.initRange(),this.nice();const[t]=this.chooseTransforms();this.composeOutput(t,this.chooseClamp(t))},t.prototype.initRange=function(){const{interpolator:t}=this.options;this.options.range=function(t){return[t(0),t(1)]}(t)},t.prototype.composeOutput=function(t,e){const{domain:n,interpolator:r,round:i}=this.getOptions(),A=(t=>{const[e,n]=t;return oe(de(0,1),Ae(e,n))})(n.map(t)),o=i?(t=>e=>{const n=t(e);return(0,bt.A)(n)?Math.round(n):n})(r):r;this.output=oe(o,A,e,t)},t.prototype.invert=void 0}],vs);const bs=t=>new vs(t);bs.props={};const ws=t=>new kt(t);function Bs(t){return`.g2-${t}`}ws.props={};const xs=[["legendCategory",[[["color","discrete"],["opacity","discrete"],["shape","discrete"],["size","constant"]],[["color","discrete"],["opacity","constant"],["shape","discrete"],["size","constant"]],[["color","discrete"],["opacity","discrete"],["shape","constant"],["size","constant"]],[["color","discrete"],["opacity","constant"],["shape","constant"],["size","constant"]],[["color","constant"],["opacity","discrete"],["shape","discrete"],["size","constant"]],[["color","constant"],["opacity","constant"],["shape","discrete"],["size","constant"]],[["color","constant"],["opacity","discrete"],["shape","constant"],["size","constant"]],[["color","discrete"],["shape","discrete"],["size","constant"]],[["color","discrete"],["opacity","discrete"],["shape","discrete"]],[["color","discrete"],["opacity","discrete"],["size","constant"]],[["color","discrete"],["opacity","constant"],["shape","discrete"]],[["color","discrete"],["opacity","constant"],["size","constant"]],[["color","discrete"],["shape","constant"],["size","constant"]],[["color","discrete"],["opacity","discrete"],["shape","constant"]],[["color","discrete"],["opacity","constant"],["shape","constant"]],[["color","constant"],["shape","discrete"],["size","constant"]],[["color","constant"],["opacity","discrete"],["shape","discrete"]],[["color","constant"],["opacity","discrete"],["size","constant"]],[["color","constant"],["opacity","constant"],["shape","discrete"]],[["color","constant"],["opacity","discrete"],["shape","constant"]],[["color","discrete"],["shape","discrete"]],[["color","discrete"],["size","constant"]],[["color","discrete"],["opacity","discrete"]],[["color","discrete"],["opacity","constant"]],[["color","discrete"],["shape","constant"]],[["color","constant"],["shape","discrete"]],[["color","constant"],["size","constant"]],[["color","constant"],["opacity","discrete"]],[["color","discrete"]]]],["legendContinuousSize",[[["color","continuous"],["opacity","continuous"],["size","continuous"]],[["color","constant"],["opacity","continuous"],["size","continuous"]],[["color","continuous"],["size","continuous"]],[["color","constant"],["size","continuous"]],[["size","continuous"],["opacity","continuous"]],[["size","continuous"]]]],["legendContinuousBlockSize",[[["color","distribution"],["opacity","distribution"],["size","distribution"]],[["color","distribution"],["size","distribution"]]]],["legendContinuousBlock",[[["color","distribution"],["opacity","continuous"]],[["color","distribution"]]]],["legendContinuous",[[["color","continuous"],["opacity","continuous"]],[["color","continuous"]],[["opacity","continuous"]]]]],Cs=["lineX","lineY","rangeX","rangeY","range","connector"];function Es({colorDefault:t,colorBlack:e,colorWhite:n,colorStroke:r,colorBackground:i,padding1:A,padding2:o,alpha90:a,alpha65:s,alpha45:l,alpha10:c,category10:u,category20:d,sizeDefault:f=1,padding:h="auto",margin:p=16}){return{padding:h,margin:p,size:f,color:t,category10:u,category20:d,enter:{duration:300,fill:"both",delay:0},update:{duration:300,fill:"both",delay:0},exit:{duration:300,fill:"both",delay:0},view:{viewFill:i,plotFill:"transparent",mainFill:"transparent",contentFill:"transparent"},line:{line:{fill:"",strokeOpacity:1,lineWidth:1,lineCap:"round"}},point:{point:{r:3,fillOpacity:.95,lineWidth:0},hollow:{r:3,strokeOpacity:.95,lineWidth:1},plus:{r:3,strokeOpacity:.95,lineWidth:3},diamond:{r:3,strokeOpacity:.95,lineWidth:1}},interval:{rect:{fillOpacity:.95},hollow:{fill:"",strokeOpacity:1,lineWidth:2}},area:{area:{fillOpacity:.85,lineWidth:0}},polygon:{polygon:{fillOpacity:.95}},cell:{cell:{fillOpacity:.95},hollow:{fill:"",strokeOpacity:1,lineWidth:2}},rect:{rect:{fillOpacity:.95},hollow:{fill:"",strokeOpacity:1,lineWidth:2}},link:{link:{fill:"",strokeOpacity:1}},vector:{vector:{fillOpacity:1}},box:{box:{fillOpacity:.95,stroke:e,lineWidth:1}},text:{text:{fill:"#1D2129",fontSize:12,lineWidth:0,connectorStroke:r,connectorStrokeOpacity:.45,connectorLineWidth:1,backgroundFill:r,backgroundFillOpacity:.15,backgroundPadding:[2,4],startMarkerSymbol:"circle",startMarkerSize:4,endMarkerSymbol:"circle",endMarkerSize:4},badge:{fill:"#1D2129",fillOpacity:.65,lineWidth:0,fontSize:10,textAlign:"center",textBaseline:"middle",markerFill:r,markerFillOpacity:.25,markerStrokeOpacity:0}},lineX:{line:{stroke:r,strokeOpacity:.45,lineWidth:1}},lineY:{line:{stroke:r,strokeOpacity:.45,lineWidth:1}},rangeX:{range:{fill:r,fillOpacity:.15,lineWidth:0}},rangeY:{range:{fill:r,fillOpacity:.15,lineWidth:0}},connector:{connector:{stroke:r,strokeOpacity:.45,lineWidth:1,connectLength1:12,endMarker:!0,endMarkerSize:6,endMarkerFill:r,endMarkerFillOpacity:.95}},axis:{arrow:!1,gridLineDash:[3,4],gridLineWidth:.5,gridStroke:e,gridStrokeOpacity:c,labelAlign:"horizontal",labelFill:e,labelOpacity:l,labelFontSize:12,labelFontWeight:"normal",labelSpacing:A,line:!1,lineLineWidth:.5,lineStroke:e,lineStrokeOpacity:l,tickLength:4,tickLineWidth:1,tickStroke:e,tickOpacity:l,titleFill:e,titleOpacity:a,titleFontSize:12,titleFontWeight:"normal",titleSpacing:12,titleTransformOrigin:"center",lineArrowOffset:6,lineArrowSize:6},axisTop:{gridDirection:"positive",labelDirection:"negative",tickDirection:"negative",titlePosition:"top",titleSpacing:12,labelSpacing:4,titleTextBaseline:"middle"},axisBottom:{gridDirection:"negative",labelDirection:"positive",tickDirection:"positive",titlePosition:"bottom",titleSpacing:12,labelSpacing:4,titleTextBaseline:"bottom",titleTransform:"translate(0, 8)"},axisLeft:{gridDirection:"positive",labelDirection:"negative",labelSpacing:4,tickDirection:"negative",titlePosition:"left",titleSpacing:12,titleTextBaseline:"middle",titleDirection:"vertical",titleTransform:"rotate(-90) translate(0, -8)",titleTransformOrigin:"center"},axisRight:{gridDirection:"negative",labelDirection:"positive",labelSpacing:4,tickDirection:"positive",titlePosition:"right",titleSpacing:12,titleTextBaseline:"top",titleDirection:"vertical",titleTransformOrigin:"center"},axisLinear:{girdClosed:!0,gridConnect:"arc",gridDirection:"negative",gridType:"surround",titlePosition:"top",titleSpacing:0},axisArc:{title:!1,titlePosition:"inner",line:!1,tick:!0,labelSpacing:4},axisRadar:{girdClosed:!0,gridStrokeOpacity:.3,gridType:"surround",tick:!1,titlePosition:"start"},legendCategory:{backgroundFill:"transparent",itemBackgroundFill:"transparent",itemLabelFill:e,itemLabelFillOpacity:a,itemLabelFontSize:12,itemLabelFontWeight:"normal",itemMarkerFillOpacity:1,itemMarkerSize:8,focusMarkerSize:12,itemSpacing:[A,A,A/2],itemValueFill:e,itemValueFillOpacity:.65,itemValueFontSize:12,itemValueFontWeight:"normal",navButtonFill:e,navButtonFillOpacity:.65,navPageNumFill:e,navPageNumFillOpacity:.45,navPageNumFontSize:12,padding:8,title:!1,titleFill:e,titleFillOpacity:.65,titleFontSize:12,titleFontWeight:"normal",titleSpacing:4,tickStroke:e,tickStrokeOpacity:.25,rowPadding:A,colPadding:o,maxRows:3,maxCols:3},legendContinuous:{handleHeight:12,handleLabelFill:e,handleLabelFillOpacity:l,handleLabelFontSize:12,handleLabelFontWeight:"normal",handleMarkerFill:e,handleMarkerFillOpacity:.6,handleMarkerLineWidth:1,handleMarkerStroke:e,handleMarkerStrokeOpacity:.25,handleWidth:10,labelFill:e,labelFillOpacity:l,labelFontSize:12,labelFontWeight:"normal",labelSpacing:3,tick:!0,tickLength:12,ribbonSize:12,ribbonFill:"#aaa",handle:!0,handleLabel:!1,handleShape:"slider",handleIconSize:12/1.8,indicator:!1,titleFontSize:12,titleSpacing:4,titleFontWeight:"normal",titleFillOpacity:a,tickStroke:e,tickStrokeOpacity:l},label:{fill:e,fillOpacity:.65,fontSize:12,fontWeight:"normal",stroke:void 0,offset:12,connectorStroke:e,connectorStrokeOpacity:.45,connectorLineWidth:1,connectorLength:12,connectorLength2:8,connectorDistance:4},innerLabel:{fill:n,fontSize:12,fillOpacity:.85,fontWeight:"normal",stroke:void 0,offset:0},htmlLabel:{fontSize:12,opacity:.65,color:e,fontWeight:"normal"},slider:{trackSize:16,trackFill:r,trackFillOpacity:1,selectionFill:t,selectionFillOpacity:.15,handleIconSize:10,handleIconFill:"#f7f7f7",handleIconFillOpacity:1,handleIconStroke:e,handleIconStrokeOpacity:.25,handleIconLineWidth:1,handleIconRadius:2,handleLabelFill:e,handleLabelFillOpacity:.45,handleLabelFontSize:12,handleLabelFontWeight:"normal"},scrollbar:{padding:[0,0,0,0],trackSize:6,isRound:!0,slidable:!0,scrollable:!0,trackFill:"#e5e5e5",trackFillOpacity:0,thumbFill:"#000",thumbFillOpacity:.15,thumbHighlightedFillOpacity:.2},title:{spacing:8,titleFill:e,titleFillOpacity:a,titleFontSize:16,titleFontWeight:"bold",titleTextBaseline:"top",subtitleFill:e,subtitleFillOpacity:s,subtitleFontSize:12,subtitleFontWeight:"normal",subtitleTextBaseline:"top"},tooltip:{css:{[Bs("tooltip")]:{"font-family":"sans-serif"}}}}}const Os=Es({colorBlack:"#1D2129",colorWhite:"#ffffff",colorStroke:"#416180",colorDefault:"#1783FF",colorBackground:"transparent",category10:["#1783FF","#00C9C9","#F0884D","#D580FF","#7863FF","#60C42D","#BD8F24","#FF80CA","#2491B3","#17C76F"],category20:["#1783FF","#00C9C9","#F0884D","#D580FF","#7863FF","#60C42D","#BD8F24","#FF80CA","#2491B3","#17C76F","#AABA01","#BC7CFC","#237CBC","#2DE379","#CE8032","#FF7AF4","#545FD3","#AFE410","#D8C608","#FFA1E0"],padding1:8,padding2:12,padding3:20,alpha90:.9,alpha65:.65,alpha45:.45,alpha25:.25,alpha10:.1}),ks=t=>Q({},Os,t);ks.props={};const Fs=t=>Q({},ks(),{category10:"category10",category20:"category20"},t);Fs.props={};const Qs=Es({colorBlack:"#fff",colorWhite:"#000",colorStroke:"#416180",colorDefault:"#1783FF",colorBackground:"transparent",category10:["#1783FF","#00C9C9","#F0884D","#D580FF","#7863FF","#60C42D","#BD8F24","#FF80CA","#2491B3","#17C76F"],category20:["#1783FF","#00C9C9","#F0884D","#D580FF","#7863FF","#60C42D","#BD8F24","#FF80CA","#2491B3","#17C76F","#AABA01","#BC7CFC","#237CBC","#2DE379","#CE8032","#FF7AF4","#545FD3","#AFE410","#D8C608","#FFA1E0"],padding1:8,padding2:12,padding3:20,alpha90:.9,alpha65:.65,alpha45:.45,alpha25:.25,alpha10:.25}),Ms=t=>Q({},Qs,{tooltip:{crosshairsStroke:"#fff",crosshairsLineWidth:1,crosshairsStrokeOpacity:.25,css:{[Bs("tooltip")]:{background:"#1f1f1f",opacity:.95},[Bs("tooltip-title")]:{color:"#A6A6A6"},[Bs("tooltip-list-item-name-label")]:{color:"#A6A6A6"},[Bs("tooltip-list-item-value")]:{color:"#A6A6A6"}}}},t),Us=t=>Object.assign({},Ms(),{category10:"category10",category20:"category20"},t);Us.props={};const Ss=Es({colorBlack:"#000",colorWhite:"#fff",colorStroke:"#888",colorDefault:"#4e79a7",colorBackground:"transparent",category10:["#4e79a7","#f28e2c","#e15759","#76b7b2","#59a14f","#edc949","#af7aa1","#ff9da7","#9c755f","#bab0ab"],category20:["#4e79a7","#f28e2c","#e15759","#76b7b2","#59a14f","#edc949","#af7aa1","#ff9da7","#9c755f","#bab0ab"],padding1:8,padding2:12,padding3:20,alpha90:.9,alpha65:.65,alpha45:.45,alpha25:.25,alpha10:.1}),_s=t=>Q({},Ss,{text:{text:{fontSize:10}},axis:{gridLineDash:[0,0],gridLineWidth:1,gridStroke:"#ddd",gridStrokeOpacity:1,labelOpacity:1,labelStrokeOpacity:1,labelFontSize:10,line:!0,lineLineWidth:1,lineStroke:"#888",lineStrokeOpacity:1,tickLength:5,tickStrokeOpacity:1,titleOpacity:1,titleStrokeOpacity:1,titleFillOpacity:1,titleFontSize:11,titleFontWeight:"bold"},axisLeft:{gridFilter:(t,e)=>0!==e},axisRight:{gridFilter:(t,e)=>0!==e},legendCategory:{itemLabelFillOpacity:1,itemLabelFontSize:10,itemValueFillOpacity:1,itemValueFontSize:10,titleFillOpacity:1,titleFontSize:11,titleFontWeight:"bold"},legendContinuous:{handleLabelFontSize:10,labelFillOpacity:.45,labelFontSize:10},label:{fontSize:10},innerLabel:{fontSize:10},htmlLabel:{fontSize:10},slider:{handleLabelFontSize:10,trackFillOpacity:.05}},t);function Is(t){if(!t)return{enter:!1,update:!1,exit:!1};var e=["enter","update","exit"],n=Object.fromEntries(Object.entries(t).filter(function(t){var n=(0,gi.zs)(t,1);return!e.includes(n[0])}));return Object.fromEntries(e.map(function(e){return function(t){return"boolean"!=typeof t&&"enter"in t&&"update"in t&&"exit"in t}(t)?!1===t[e]?[e,!1]:[e,(0,gi.Cl)((0,gi.Cl)({},t[e]),n)]:[e,n]}))}function Ts(t,e){t?t.finished.then(e):e()}function Ls(t,e){"update"in t?t.update(e):t.attr(e)}function Ps(t,e,n){return 0===e.length?null:n?t.animate(e,n):(Ls(t,{style:e.slice(-1)[0]}),null)}function js(t,e,n){var r={},i={};return Object.entries(e).forEach(function(e){var n=(0,gi.zs)(e,2),A=n[0],o=n[1];if(!(0,ot.A)(o)){var a=t.style[A]||t.parsedStyle[A]||0;a!==o&&(r[A]=a,i[A]=o)}}),n?Ps(t,[r,i],(0,gi.Cl)({fill:"both"},n)):(Ls(t,i),null)}_s.props={};var Hs=function(t,e){var n=function(t){return"".concat(e,"-").concat(t)},r=Object.fromEntries(Object.entries(t).map(function(t){var e=(0,gi.zs)(t,2),r=e[0],i=n(e[1]);return[r,{name:i,class:".".concat(i),id:"#".concat(i),toString:function(){return i}}]}));return Object.assign(r,{prefix:n}),r},Ns="grid-group",Ds="main-group",Rs="line-group",Ks="tick-group",zs="label-group",Gs="title-group",Vs="grid",Ws="line",Xs="line-first",Ys="line-second",$s="tick",qs="tick-item",Zs="label",Js="label-item",tl="title",el={data:[],animate:{enter:!1,update:{duration:100,easing:"ease-in-out-sine",fill:"both"},exit:{duration:100,fill:"both"}},showArrow:!0,showGrid:!0,showLabel:!0,showLine:!0,showTick:!0,showTitle:!0,showTrunc:!1,dataThreshold:100,lineLineWidth:1,lineStroke:"black",crossPadding:10,titleFill:"black",titleFontSize:12,titlePosition:"lb",titleSpacing:0,titleTextAlign:"center",titleTextBaseline:"middle",lineArrow:function(){return new $.wA({style:{d:[["M",10,10],["L",-10,0],["L",10,-10],["L",0,0],["L",10,10],["Z"]],fill:"black",transformOrigin:"center"}})},labelAlign:"parallel",labelDirection:"positive",labelFontSize:12,labelSpacing:0,gridConnect:"line",gridControlAngles:[],gridDirection:"positive",gridLength:0,gridType:"segment",lineArrowOffset:15,lineArrowSize:10,tickDirection:"positive",tickLength:5,tickLineWidth:1,tickStroke:"black",labelOverlap:[]},nl=(Q({},el,{style:{type:"arc"}}),Q({},el,{style:{}}),Hs({mainGroup:Ds,gridGroup:Ns,grid:Vs,lineGroup:Rs,line:Ws,tickGroup:Ks,tick:$s,tickItem:qs,labelGroup:zs,label:Zs,labelItem:Js,titleGroup:Gs,title:tl,lineFirst:Xs,lineSecond:Ys},"axis"));function rl(t,e){return[t[0]*e,t[1]*e]}function il(t,e){return[t[0]+e[0],t[1]+e[1]]}function Al(t,e){return[t[0]-e[0],t[1]-e[1]]}function ol(t,e){return[Math.min(t[0],e[0]),Math.min(t[1],e[1])]}function al(t,e){return[Math.max(t[0],e[0]),Math.max(t[1],e[1])]}function sl(t,e){return Math.sqrt(Math.pow(t[0]-e[0],2)+Math.pow(t[1]-e[1],2))}function ll(t){if(0===t[0]&&0===t[1])return[0,0];var e=Math.sqrt(Math.pow(t[0],2)+Math.pow(t[1],2));return[t[0]/e,t[1]/e]}function cl(t){return t*Math.PI/180}function ul(t){return Number((180*t/Math.PI).toPrecision(5))}function dl(t){return t.toString().charAt(0).toUpperCase()+t.toString().slice(1)}function fl(t,e,n){var r;void 0===n&&(n=!0);var i=e||(null===(r=t.match(/^([a-z][a-z0-9]+)/))||void 0===r?void 0:r[0])||"",A=t.replace(new RegExp("^(".concat(i,")")),"");return n?function(t){return t.toString().charAt(0).toLowerCase()+t.toString().slice(1)}(A):A}var hl=function(t,e){if(!(null==t?void 0:t.startsWith(e)))return!1;var n=t[e.length];return n>="A"&&n<="Z"};function pl(t,e,n){void 0===n&&(n=!1);var r={};return Object.entries(t).forEach(function(t){var i,A=(0,gi.zs)(t,2),o=A[0],a=A[1];if("className"===o||"class"===o);else if(hl(o,"show")&&hl(fl(o,"show"),e)!==n)o===(i=e,"".concat("show").concat(dl(i)))?r[o]=a:r[o.replace(new RegExp(dl(e)),"")]=a;else if(!hl(o,"show")&&hl(o,e)!==n){var s=fl(o,e);"filter"===s&&"function"==typeof a||(r[s]=a)}}),r}function gl(t,e){return Object.entries(t).reduce(function(t,n){var r=(0,gi.zs)(n,2),i=r[0],A=r[1];return i.startsWith("show")?t["show".concat(e).concat(i.slice(4))]=A:t["".concat(e).concat(dl(i))]=A,t},{})}function ml(t,e){void 0===e&&(e=["x","y","class","className"]);var n=["transform","transformOrigin","anchor","visibility","pointerEvents","zIndex","cursor","clipPath","clipPathTargets","offsetPath","offsetPathTargets","offsetDistance","draggable","droppable"],r={},i={};return Object.entries(t).forEach(function(t){var A=(0,gi.zs)(t,2),o=A[0],a=A[1];e.includes(o)||(-1!==n.indexOf(o)?i[o]=a:r[o]=a)}),[r,i]}function yl(t,e){return(0,mi.A)(t)?t.apply(void 0,(0,gi.fX)([],(0,gi.zs)(e),!1)):t}function vl(t,e){return t.style.opacity||(t.style.opacity=1),js(t,{opacity:0},e)}var bl=["$el","cx","cy","d","dx","dy","fill","fillOpacity","filter","fontFamily","fontSize","fontStyle","fontVariant","fontWeight","height","img","increasedLineWidthForHitTesting","innerHTML","isBillboard","billboardRotation","isSizeAttenuation","isClosed","isOverflowing","leading","letterSpacing","lineDash","lineHeight","lineWidth","markerEnd","markerEndOffset","markerMid","markerStart","markerStartOffset","maxLines","metrics","miterLimit","offsetX","offsetY","opacity","path","points","r","radius","rx","ry","shadowColor","src","stroke","strokeOpacity","text","textAlign","textBaseline","textDecorationColor","textDecorationLine","textDecorationStyle","textOverflow","textPath","textPathSide","textPathStartOffset","transform","transformOrigin","visibility","width","wordWrap","wordWrapWidth","x","x1","x2","y","y1","y2","z1","z2","zIndex"];function wl(t){return bl.includes(t)}function Bl(t){var e={};for(var n in t)wl(n)&&(e[n]=t[n]);return e}var xl=Hs({lineGroup:"line-group",line:"line",regionGroup:"region-group",region:"region"},"grid");function Cl(t){return t.reduce(function(t,e,n){return t.push((0,gi.fX)([0===n?"M":"L"],(0,gi.zs)(e),!1)),t},[])}function El(t,e,n){return"surround"===e.type?function(t,e,n){var r=e.connect,i=e.center;if("line"===(void 0===r?"line":r))return Cl(t);if(!i)return[];var A=sl(t[0],i),o=n?0:1;return t.reduce(function(t,e,n){return t.push((0,gi.fX)(0===n?["M"]:["A",A,A,0,0,o],(0,gi.zs)(e),!1)),t},[])}(t,e,n):Cl(t)}function Ol(t,e,n){var r=n.type,i=n.connect,A=n.center,o=n.closed?[["Z"]]:[],a=(0,gi.zs)([El(t,n),El(e.slice().reverse(),n,!0)],2),s=a[0],l=a[1],c=(0,gi.zs)([t[0],e.slice(-1)[0]],2),u=c[0],d=c[1],f=function(t,e){return[s,t,l,e,o].flat()};if("line"===i||"surround"===r)return f([(0,gi.fX)(["L"],(0,gi.zs)(d),!1)],[(0,gi.fX)(["L"],(0,gi.zs)(u),!1)]);if(!A)throw new Error("Arc grid need to specified center");var h=(0,gi.zs)([sl(d,A),sl(u,A)],2),p=h[0],g=h[1];return f([(0,gi.fX)(["A",p,p,0,0,1],(0,gi.zs)(d),!1),(0,gi.fX)(["L"],(0,gi.zs)(d),!1)],[(0,gi.fX)(["A",g,g,0,0,0],(0,gi.zs)(u),!1),(0,gi.fX)(["L"],(0,gi.zs)(u),!1)])}var kl=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,gi.C6)(e,t),e.prototype.render=function(t,e){var n=(0,gi.Tt)(t,["type","center","areaFill","closed"]),r=function(t){var e=t.data,n=void 0===e?[]:e;return t.closed?n.map(function(t){var e=t.points,n=(0,gi.zs)(e,1)[0];return(0,gi.Cl)((0,gi.Cl)({},t),{points:(0,gi.fX)((0,gi.fX)([],(0,gi.zs)(e),!1),[n],!1)})}):n}(t),i=Ui(e).maybeAppendByClassName(xl.lineGroup,"g"),A=Ui(e).maybeAppendByClassName(xl.regionGroup,"g"),o=function(t,e,n,r){var i=n.animate,A=n.isBillboard,o=e.map(function(t,e){return{id:t.id||"grid-line-".concat(e),d:El(t.points,n)}});return t.selectAll(xl.line.class).data(o,function(t){return t.id}).join(function(t){return t.append("path").each(function(t,e){var n=yl(Bl((0,gi.Cl)({d:t.d},r)),[t,e,o]);this.attr((0,gi.Cl)({class:xl.line.name,stroke:"#D9D9D9",lineWidth:1,lineDash:[4,4],isBillboard:A},n))})},function(t){return t.transition(function(t,e){return js(this,yl(Bl((0,gi.Cl)({d:t.d},r)),[t,e,o]),i.update)})},function(t){return t.transition(function(){var t=this,e=vl(this,i.exit);return Ts(e,function(){return t.remove()}),e})}).transitions()}(i,r,t,n),a=function(t,e,n){var r=n.animate,i=n.areaFill;if(e.length<2||!i||!n.connect)return[];for(var A=Array.isArray(i)?i:[i,"transparent"],o=function(t){return A[t%A.length]},a=[],s=0;s<e.length-1;s++){var l=(0,gi.zs)([e[s].points,e[s+1].points],2),c=Ol(l[0],l[1],n);a.push({d:c,fill:o(s)})}return t.selectAll(xl.region.class).data(a,function(t,e){return e}).join(function(t){return t.append("path").each(function(t,e){var n=yl(t,[t,e,a]);this.attr(n)}).attr("className",xl.region.name)},function(t){return t.transition(function(t,e){return js(this,yl(t,[t,e,a]),r.update)})},function(t){return t.transition(function(){var t=this,e=vl(this,r.exit);return Ts(e,function(){return t.remove()}),e})}).transitions()}(A,r,t);return(0,gi.fX)((0,gi.fX)([],(0,gi.zs)(o),!1),(0,gi.zs)(a),!1)},e}(ki);const Fl=function(t,e,n){for(var r=0,i=(0,Hi.A)(e)?e.split("."):e;t&&r<i.length;)t=t[i[r++]];return void 0===t||r<i.length?n:t};function Ql(t,e){return"number"==typeof t&&"number"==typeof e?function(t,e){return function(n){return t*(1-n)+e*n}}(t,e):Array.isArray(t)&&Array.isArray(e)?function(t,e){var n=e?e.length:0,r=t?Math.min(n,t.length):0;return function(i){var A=new Array(r),o=new Array(n),a=0;for(a=0;a<r;++a)A[a]=Ql(t[a],e[a]);for(;a<n;++a)o[a]=e[a];for(a=0;a<r;++a)o[a]=A[a](i);return o}}(t,e):"object"==typeof t&&"object"==typeof e?function(t,e){void 0===t&&(t={}),void 0===e&&(e={});var n={},r={};return Object.entries(e).forEach(function(e){var i=(0,gi.zs)(e,2),A=i[0],o=i[1];A in t?n[A]=Ql(t[A],o):r[A]=o}),function(t){return Object.entries(n).forEach(function(e){var n=(0,gi.zs)(e,2);return r[n[0]]=(0,n[1])(t)}),r}}(t,e):function(e){return t}}function Ml(t){return"function"==typeof t?t():(0,Hi.A)(t)||(0,bt.A)(t)?new Qi({style:{text:String(t)}}):t}function Ul(t,e,n){void 0===n&&(n=!1);var r=t.getBBox(),i=e/Math.max(r.width,r.height);return n&&(t.style.transform="scale(".concat(i,")")),i}function Sl(t,e){var n={},r=Array.isArray(e)?e:[e];for(var i in t)r.includes(i)||(n[i]=t[i]);return n}function _l(t,e){return Object.fromEntries(Object.entries(t).map(function(t){var n=(0,gi.zs)(t,2);return[n[0],yl(n[1],e)]}))}function Il(t,e){return e&&(0,mi.A)(e)?t.filter(e):t}function Tl(t,e){var n=e.startAngle;return(e.endAngle-n)*t+n}function Ll(t,e){if("linear"===e.type){var n=(0,gi.zs)(e.startPos,2),r=n[0],i=n[1],A=(0,gi.zs)(e.endPos,2),o=(0,gi.zs)([A[0]-r,A[1]-i],2);return ll([o[0],o[1]])}var a=cl(Tl(t,e));return[-Math.sin(a),Math.cos(a)]}function Pl(t,e,n){var r;return r=Ll(t,n),"positive"!==e?[r[1],-r[0]]:[-r[1],r[0]]}function jl(t,e){return Pl(t,e.labelDirection,e)}function Hl(t,e,n){return n?"".concat(t," ").concat(n,"axis-").concat(e):t}function Nl(t,e,n,r){return r&&t.attr("className",Hl(e.name,n,r)),t}function Dl(t,e){return"linear"===e.type?function(t,e){var n=(0,gi.zs)(e.startPos,2),r=n[0],i=n[1],A=(0,gi.zs)(e.endPos,2),o=(0,gi.zs)([A[0]-r,A[1]-i],2);return[r+o[0]*t,i+o[1]*t]}(t,e):function(t,e){var n=e.radius,r=(0,gi.zs)(e.center,2),i=r[0],A=r[1],o=cl(Tl(t,e));return[i+n*Math.cos(o),A+n*Math.sin(o)]}(t,e)}function Rl(t){return 0===Ll(0,t)[1]}function Kl(t){return 0===Ll(0,t)[0]}function zl(t,e){return e-t===360}function Gl(t,e,n,r,i){var A=e-t,o=(0,gi.zs)([i,i],2),a=o[0],s=o[1],l=(0,gi.zs)([cl(t),cl(e)],2),c=l[0],u=l[1],d=function(t){return[n+i*Math.cos(t),r+i*Math.sin(t)]},f=(0,gi.zs)(d(c),2),h=f[0],p=f[1],g=(0,gi.zs)(d(u),2),m=g[0],y=g[1];if(zl(t,e)){var v=(0,gi.zs)(d((u+c)/2),2);return[["M",h,p],["A",a,s,0,1,0,v[0],v[1]],["A",a,s,0,1,0,m,y]]}var b=A>180?1:0,w=t>e?0:1;return"M".concat(h,",").concat(p,",A").concat(a,",").concat(s,",0,").concat(b,",").concat(w,",").concat(m,",").concat(y)}function Vl(t,e,n,r){var i=e.startAngle,A=e.endAngle,o=e.center,a=e.radius,s=e.classNamePrefix;return t.selectAll(nl.line.class).data([{d:Gl.apply(void 0,(0,gi.fX)((0,gi.fX)([i,A],(0,gi.zs)(o),!1),[a],!1))}],function(t,e){return e}).join(function(t){var n=t.append("path").attr("className",nl.line.name).styles(e).styles({d:function(t){return t.d}});return Nl(n,nl.line,Ws,s),n},function(t){return t.transition(function(){var t=this,e=function(t,e,n,r){if(!r)return t.attr("__keyframe_data__",n),null;var i=r.duration,A=void 0===i?0:i,o=Ql(e,n),a=Math.ceil(+A/16),s=new Array(a).fill(0).map(function(t,e,n){return{__keyframe_data__:o(e/(n.length-1))}});return t.animate(s,(0,gi.Cl)({fill:"both"},r))}(this,function(t){var e=t.attributes,n=e.radius;return(0,gi.fX)((0,gi.fX)([e.startAngle,e.endAngle],(0,gi.zs)(e.center),!1),[n],!1)}(this),(0,gi.fX)((0,gi.fX)([i,A],(0,gi.zs)(o),!1),[a],!1),r.update);if(e){var n=function(){var e=Fl(t.attributes,"__keyframe_data__");t.style.d=Gl.apply(void 0,(0,gi.fX)([],(0,gi.zs)(e),!1))};e.onframe=n,e.onfinish=n}return e}).styles(e)},function(t){return t.remove()}).styles(n).transitions()}function Wl(t){var e=(0,gi.zs)(t,2),n=(0,gi.zs)(e[0],2),r=n[0],i=n[1],A=(0,gi.zs)(e[1],2);return{x1:r,y1:i,x2:A[0],y2:A[1]}}function Xl(t,e,n){var r,i=e.type,A=pl(e,"line");return r="linear"===i?function(t,e,n,r){var i=e.showTrunc,A=e.startPos,o=e.endPos,a=e.truncRange,s=e.lineExtension,l=e.classNamePrefix,c=(0,gi.zs)([A,o],2),u=(0,gi.zs)(c[0],2),d=u[0],f=u[1],h=(0,gi.zs)(c[1],2),p=h[0],g=h[1],m=(0,gi.zs)(s?function(t,e,n){void 0===n&&(n=[0,0]);var r=(0,gi.zs)([t,e,n],3),i=(0,gi.zs)(r[0],2),A=i[0],o=i[1],a=(0,gi.zs)(r[1],2),s=a[0],l=a[1],c=(0,gi.zs)(r[2],2),u=c[0],d=c[1],f=(0,gi.zs)([s-A,l-o],2),h=f[0],p=f[1],g=Math.sqrt(Math.pow(h,2)+Math.pow(p,2)),m=(0,gi.zs)([-u/g,d/g],2),y=m[0],v=m[1];return[y*h,y*p,v*h,v*p]}(A,o,s):new Array(4).fill(0),4),y=m[0],v=m[1],b=m[2],w=m[3],B=function(e){return t.selectAll(nl.line.class).data(e,function(t,e){return e}).join(function(t){var e=t.append("line").styles(n).transition(function(t){return js(this,Wl(t.line),!1)});return e.attr("className",function(t){if(!l)return"".concat(nl.line.name," ").concat(t.className);var e=Hl(nl.line.name,Ws,l);if(t.className===nl.lineFirst.name){var n=Hl(nl.lineFirst.name,Xs,l);return"".concat(e," ").concat(n)}return t.className===nl.lineSecond.name?(n=Hl(nl.lineSecond.name,Ys,l),"".concat(e," ").concat(n)):e}),e},function(t){return t.styles(n).transition(function(t){return js(this,Wl(t.line),r.update)})},function(t){return t.remove()}).transitions()};if(!i||!a)return B([{line:[[d+y,f+v],[p+b,g+w]],className:nl.line.name}]);var x=(0,gi.zs)(a,2),C=x[0],E=x[1],O=p-d,k=g-f,F=(0,gi.zs)([d+O*C,f+k*C],2),Q=F[0],M=F[1],U=(0,gi.zs)([d+O*E,f+k*E],2);return B([{line:[[d+y,f+v],[Q,M]],className:nl.lineFirst.name},{line:[[U[0],U[1]],[p+b,g+w]],className:nl.lineSecond.name}])}(t,e,Sl(A,"arrow"),n):Vl(t,e,Sl(A,"arrow"),n),function(t,e,n,r){var i,A=n.showArrow,o=n.lineArrow,a=n.lineArrowOffset,s=n.lineArrowSize;if(i=t.select("arc"===e?nl.line.class:n.showTrunc?nl.lineSecond.class:nl.line.class),!A||!o||"arc"===n.type&&zl(n.startAngle,n.endAngle)){var l=i.node();l&&(l.style.markerEnd=void 0)}else{var c=Ml(o);c.attr(r),Ul(c,s,!0),i.style("markerEnd",c).style("markerEndOffset",-a)}}(t,i,e,A),r}function Yl(t){var e=t.gridCenter;return"linear"===t.type?e:e||t.center}function $l(t,e,n,r){var i=n.classNamePrefix,A=pl(n,"grid"),o=A.type,a=A.areaFill,s=Yl(n),l=Il(e,n.gridFilter),c="segment"===o?function(t,e){var n=e.gridLength;return t.map(function(t,r){var i=t.value,A=(0,gi.zs)(Dl(i,e),2),o=A[0],a=A[1],s=(0,gi.zs)(rl(function(t,e){return Pl(t,e.gridDirection,e)}(i,e),n),2);return{id:r,points:[[o,a],[o+s[0],a+s[1]]]}})}(l,n):function(t,e){var n=e.gridControlAngles,r=Yl(e);if(!r)throw new Error("grid center is not provide");if(t.length<2)throw new Error("Invalid grid data");if(!n||0===n.length)throw new Error("Invalid gridControlAngles");var i=(0,gi.zs)(r,2),A=i[0],o=i[1];return t.map(function(t,r){var i=(0,gi.zs)(Dl(t.value,e),2),a=(0,gi.zs)([i[0]-A,i[1]-o],2),s=a[0],l=a[1],c=[];return n.forEach(function(t){var e=cl(t),n=(0,gi.zs)([Math.cos(e),Math.sin(e)],2),r=n[0],i=n[1];c.push([s*r-l*i+A,s*i+l*r+o])}),{points:c,id:r}})}(l,n),u=(0,gi.Cl)((0,gi.Cl)({},A),{center:s,areaFill:(0,mi.A)(a)?l.map(function(t,e){return yl(a,[t,e,l])}):a,animate:r,data:c});return t.selectAll(nl.grid.class).data([1]).join(function(t){var e=t.append(function(){return new kl({style:u})}).attr("className",nl.grid.name);return Nl(e,nl.grid,Vs,i),e},function(t){return t.transition(function(){return this.update(u)})},function(t){return t.remove()}).transitions()}function ql(t,e,n,r,i){return void 0===r&&(r=!0),void 0===i&&(i=!1),!!(r&&t===e||i&&t===n)||t>e&&t<n}var Zl,Jl,tc,ec,nc=new Map,rc=(Jl=function(t,e){var n=e.fontSize,r=e.fontFamily,i=e.fontWeight,A=e.fontStyle,o=e.fontVariant;return Zl||(Zl=$.fA.offscreenCanvasCreator.getOrCreateContext(void 0)),Zl.font=[A,o,i,"".concat(n,"px"),r].join(" "),Zl.measureText(t).width},tc=function(t,e){return[t,Object.values(e||ic(t)).join()].join("")},void 0===(ec=4096)&&(ec=128),function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=tc?tc.apply(this,t):t[0];nc.has(Jl)||nc.set(Jl,function(t){var e,n,r,i=t||1;function A(t,A){++e>i&&(r=n,o(1),++e),n[t]=A}function o(t){e=0,n=Object.create(null),t||(r=Object.create(null))}return o(),{clear:o,has:function(t){return void 0!==n[t]||void 0!==r[t]},get:function(t){var e=n[t];return void 0!==e?e:void 0!==(e=r[t])?(A(t,e),e):void 0},set:function(t,e){void 0!==n[t]?n[t]=e:A(t,e)}}}(ec));var r=nc.get(Jl);if(r.has(n))return r.get(n);var i=Jl.apply(this,t);return r.set(n,i),i}),ic=function(t){var e=t.style.fontSize;return{fontSize:e="object"==typeof e?e.value:e,fontFamily:t.style.fontFamily||"sans-serif",fontWeight:t.style.fontWeight||"normal",fontStyle:t.style.fontStyle||"normal",fontVariant:t.style.fontVariant}};function Ac(t){return"text"===t.nodeName?t:"g"===t.nodeName&&1===t.children.length&&"text"===t.children[0].nodeName?t.children[0]:null}function oc(t,e){var n=Ac(t);n&&n.attr(e)}function ac(t,e,n){void 0===n&&(n="..."),oc(t,{wordWrap:!0,wordWrapWidth:e,maxLines:1,textOverflow:n})}function sc(t,e){if(e)try{var n=e.replace(/translate\(([+-]*[\d]+[%]*),[ ]*([+-]*[\d]+[%]*)\)/g,function(e,n,r){return"translate(".concat(function(t,e,n){var r=t.getBBox(),i=r.width,A=r.height,o=(0,gi.zs)([e,n].map(function(t,e){var n;return t.includes("%")?parseFloat((null===(n=t.match(/[+-]?([0-9]*[.])?[0-9]+/))||void 0===n?void 0:n[0])||"0")/100*(0===e?i:A):t}),2);return[o[0],o[1]]}(t,n,r),")")});t.attr("transform",n)}catch(t){}}function lc(t){if((0,bt.A)(t))return[t,t,t,t];if((0,x.A)(t)){var e=t.length;if(1===e)return[t[0],t[0],t[0],t[0]];if(2===e)return[t[0],t[1],t[0],t[1]];if(3===e)return[t[0],t[1],t[2],t[1]];if(4===e)return t}return[0,0,0,0]}var cc=function(){function t(t,e,n,r){this.set(t,e,n,r)}return Object.defineProperty(t.prototype,"left",{get:function(){return this.x1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"top",{get:function(){return this.y1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"right",{get:function(){return this.x2},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"bottom",{get:function(){return this.y2},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"width",{get:function(){return this.defined("x2")&&this.defined("x1")?this.x2-this.x1:void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return this.defined("y2")&&this.defined("y1")?this.y2-this.y1:void 0},enumerable:!1,configurable:!0}),t.prototype.rotatedPoints=function(t,e,n){var r=this,i=r.x1,A=r.y1,o=r.x2,a=r.y2,s=Math.cos(t),l=Math.sin(t),c=e-e*s+n*l,u=n-e*l-n*s;return[[s*i-l*a+c,l*i+s*a+u],[s*o-l*a+c,l*o+s*a+u],[s*i-l*A+c,l*i+s*A+u],[s*o-l*A+c,l*o+s*A+u]]},t.prototype.set=function(t,e,n,r){return n<t?(this.x2=t,this.x1=n):(this.x1=t,this.x2=n),r<e?(this.y2=e,this.y1=r):(this.y1=e,this.y2=r),this},t.prototype.defined=function(t){return this[t]!==Number.MAX_VALUE&&this[t]!==-Number.MAX_VALUE},t}();function uc(t,e){var n=t.getEulerAngles()||0;t.setEulerAngles(0);var r=t.getBounds(),i=(0,gi.zs)(r.min,2),A=i[0],o=i[1],a=(0,gi.zs)(r.max,2),s=a[0],l=a[1],c=t.getBBox(),u=c.width,d=c.height,f=0,h=0,p=A,g=o,m=Ac(t);if(m){d-=1.5;var y=m.style.textAlign,v=m.style.textBaseline;"center"===y?p=(A+s)/2:"right"!==y&&"end"!==y||(p=s),"middle"===v?g=(o+l)/2:"bottom"===v&&(g=l)}var b=(0,gi.zs)(lc(e),4),w=b[0],B=void 0===w?0:w,x=b[1],C=void 0===x?0:x,E=b[2],O=b[3],k=new cc((f+=A)-(void 0===O?C:O),(h+=o)-B,f+u+C,h+d+(void 0===E?B:E));return t.setEulerAngles(n),k.rotatedPoints(cl(n),p,g)}function dc(t,e){return e[0]<=Math.max(t[0][0],t[1][0])&&e[0]<=Math.min(t[0][0],t[1][0])&&e[1]<=Math.max(t[0][1],t[1][1])&&e[1]<=Math.min(t[0][1],t[1][1])}function fc(t,e,n){var r=(e[1]-t[1])*(n[0]-e[0])-(e[0]-t[0])*(n[1]-e[1]);return 0===r?0:r<0?2:1}function hc(t,e){var n=fc(t[0],t[1],e[0]),r=fc(t[0],t[1],e[1]),i=fc(e[0],e[1],t[0]),A=fc(e[0],e[1],t[1]);return n!==r&&i!==A||!(0!==n||!dc(t,e[0]))||!(0!==r||!dc(t,e[1]))||!(0!==i||!dc(e,t[0]))||!(0!==A||!dc(e,t[1]))}function pc(t,e){return[[t[0],t[1],t[2],t[3]],[t[2],t[3],t[4],t[5]],[t[4],t[5],t[6],t[7]],[t[6],t[7],t[0],t[1]]].some(function(t){return function(t,e){var n=(0,gi.zs)(t,4),r=n[0],i=n[1],A=n[2],o=n[3],a=(0,gi.zs)(e,4),s=a[0],l=a[1],c=A-r,u=o-i,d=a[2]-s,f=a[3]-l,h=c*f-d*u;if(0===h)return!1;var p=h>0,g=r-s,m=i-l,y=c*m-u*g;if(y<0===p)return!1;var v=d*m-f*g;return v<0!==p&&y>h!==p&&v>h!==p}(e,t)})}function gc(t,e,n){var r,i,A=e.crossPadding,o=new Set,a=null,s=function(t,e){var n=t.labelDirection,r=t.crossSize;if(!r)return!1;if("arc"===t.type){var i=t.radius,A=(0,gi.zs)(t.center,2),o=A[0],a=A[1],s="negative"===n?0:r,l=-i-s,c=i+s,u=(0,gi.zs)(lc(e),4);return new cc(o+l-u[3],a+l-u[0],o+c+u[1],a+c+u[2])}var d=(0,gi.zs)(t.startPos,2),f=d[0],h=d[1],p=(0,gi.zs)(t.endPos,2),g=p[0],m=p[1],y=(0,gi.zs)(Kl(t)?[-e,0,e,0]:[0,e,0,-e],4),v=y[0],b=y[1],w=y[2],B=y[3],x=rl(jl(0,t),r),C=new cc(f,h,g,m);return C.x1+=B,C.y1+=v,C.x2+=b+x[0],C.y2+=w+x[1],C}(e,A),l=function(t){return!s||function(t,e){var n,r=t.x1,i=t.x2,A=t.y1,o=t.y2;return n=[[r,A],[i,A],[i,o],[r,o]],uc(e,void 0).every(function(t){return function(t,e){var n=t.length;if(n<3)return!1;var r=[e,[9999,e[1]]],i=0,A=0;do{var o=[t[A],t[(A+1)%n]];if(hc(o,r)){if(0===fc(o[0],e,o[1]))return dc(o,e);i++}A=(A+1)%n}while(0!==A);return!!(1&i)}(n,t)})}(s,t)},c=function(t,e){return!t||!t.firstChild||!function(t,e,n){var r,i,A=uc(t,n).flat(1),o=uc(e,n).flat(1),a=[[A[0],A[1],A[2],A[3]],[A[0],A[1],A[4],A[5]],[A[4],A[5],A[6],A[7]],[A[2],A[3],A[6],A[7]]];try{for(var s=(0,gi.Ju)(a),l=s.next();!l.done;l=s.next())if(pc(o,l.value))return!0}catch(t){r={error:t}}finally{try{l&&!l.done&&(i=s.return)&&i.call(s)}finally{if(r)throw r.error}}return!1}(t.firstChild,e.firstChild,lc(n))};try{for(var u=(0,gi.Ju)(t),d=u.next();!d.done;d=u.next()){var f=d.value;l(f)?!a||c(a,f)?a=f:(o.add(a),o.add(f)):o.add(f)}}catch(t){r={error:t}}finally{try{d&&!d.done&&(i=u.return)&&i.call(u)}finally{if(r)throw r.error}}return Array.from(o)}function mc(t,e){return void 0===e&&(e={}),(0,ot.A)(t)?0:"number"==typeof t?t:Math.floor(rc(t,e))}var yc=function(t){return void 0!==t&&null!=t&&!Number.isNaN(t)};function vc(t){var e=t.getLocalBounds(),n=(0,gi.zs)([e.min,e.max],2),r=(0,gi.zs)(n[0],2),i=r[0],A=r[1],o=(0,gi.zs)(n[1],2),a=o[0],s=o[1];return{x:i,y:A,width:a-i,height:s-A,left:i,bottom:s,top:A,right:a}}function bc(t,e){var n=(0,gi.zs)(t,2),r=n[0],i=n[1],A=(0,gi.zs)(e,2);return r!==A[0]&&i===A[1]}var wc=function(t,e){var n=e.seq,r=void 0===n?2:n;return t.filter(function(t,e){return!(e%r&&(bi(t),1))})},Bc=function(t){return t.filter(yc)},xc=new Map([["hide",function(t,e,n,r){var i=t.length,A=e.keepHeader,o=e.keepTail;if(!(i<=1||2===i&&A&&o)){var a,s,l=wc,c=function(t){return t.forEach(r.show),t},u=2,d=t.slice(),f=t.slice(),h=Math.min.apply(Math,(0,gi.fX)([1],(0,gi.zs)(t.map(function(t){return t.getBBox().width})),!1));if("linear"===n.type&&(Rl(n)||Kl(n))){var p=vc(t[0]).left,g=vc(t[i-1]).right,m=Math.abs(g-p)||1;u=Math.max(Math.floor(i*h/m),u)}for(A&&(a=d.splice(0,1)[0]),o&&(s=d.splice(-1,1)[0],d.reverse()),c(d);u<t.length&&gc(Bc(s?(0,gi.fX)((0,gi.fX)([s],(0,gi.zs)(f),!1),[a],!1):(0,gi.fX)([a],(0,gi.zs)(f),!1)),n,null==e?void 0:e.margin).length;)(s&&!a&&u%2==0||s&&a)&&d.splice(0,1).forEach(r.hide),f=l(c(d),{seq:u}),u++}}],["rotate",function(t,e,n,r){var i,A,o=e.optionalAngles,a=void 0===o?[0,45,90]:o,s=e.margin,l=e.recoverWhenFailed,c=void 0===l||l,u=t.map(function(t){return t.getLocalEulerAngles()}),d=function(){return gc(t,n,s).length<1},f=function(e){return t.forEach(function(t,n){var i=Array.isArray(e)?e[n]:e;r.rotate(t,+i)})};try{for(var h=(0,gi.Ju)(a),p=h.next();!p.done;p=h.next())if(f(p.value),d())return}catch(t){i={error:t}}finally{try{p&&!p.done&&(A=h.return)&&A.call(h)}finally{if(i)throw i.error}}c&&f(u)}],["ellipsis",function(t,e,n,r){if(!(t.length<=0)){var i=e.suffix,A=void 0===i?"...":i,o=e.minLength,a=e.maxLength,s=void 0===a?1/0:a,l=e.step,c=void 0===l?" ":l,u=e.margin,d=void 0===u?[0,0,0,0]:u,f=ic(r.getTextShape(t[0])),h=mc(c,f),p=o?mc(o,f):h,g=mc(s,f);((0,ot.A)(g)||g===1/0)&&(g=Math.max.apply(null,t.map(function(t){return t.getBBox().width})));for(var m=t.slice(),y=((0,gi.zs)(d,4),function(e){if(m.forEach(function(t){r.ellipsis(r.getTextShape(t),e,A)}),(m=gc(t,n,d)).length<1)return{value:void 0}}),v=g;v>p+h;v-=h){var b=y(v);if("object"==typeof b)return b.value}}}],["wrap",function(t,e,n,r,i){var A,o=e.maxLines,a=void 0===o?3:o,s=e.recoverWhenFailed,l=void 0===s||s,c=e.margin,u=void 0===c?[0,0,0,0]:c,d=yl(null!==(A=e.wordWrapWidth)&&void 0!==A?A:50,[i]),f=t.map(function(t){return t.attr("maxLines")||1}),h=Math.min.apply(Math,(0,gi.fX)([],(0,gi.zs)(f),!1)),p=function(){return gc(t,n,u).length<1},g=function(t){var e=t.labelDirection;return"linear"===t.type&&Rl(t)?"negative"===e?"bottom":"top":"middle"}(n),m=function(e){return t.forEach(function(t,n){var i=Array.isArray(e)?e[n]:e;r.wrap(t,d,i,g)})};if(!(h>a)){if("linear"===n.type&&Rl(n)){if(m(a),p())return}else for(var y=h;y<=a;y++)if(m(y),p())return;l&&m(f)}}]]);function Cc(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return t.reduce(function(t,e){return t*("positive"===e?-1:1)},1)}function Ec(t){for(var e=t;e<0;)e+=360;return Math.round(e%360)}function Oc(t,e){var n=(0,gi.zs)(t,2),r=n[0],i=n[1],A=(0,gi.zs)(e,2),o=A[0],a=A[1],s=(0,gi.zs)([r*o+i*a,r*a-i*o],2);return Math.atan2(s[1],s[0])}function kc(t,e,n){var r=n.type,i=n.labelAlign,A=jl(t,n),o=Ec(e),a=Ec(ul(Oc([1,0],A))),s="center",l="middle";return"linear"===r?[90,270].includes(a)&&0===o?(s="center",l=1===A[1]?"top":"bottom"):a%180||![90,270].includes(o)?0===a?(ql(o,0,90,!1,!0)||ql(o,0,90)||ql(o,270,360))&&(s="start"):90===a?ql(o,0,90,!1,!0)?s="start":(ql(o,90,180)||ql(o,270,360))&&(s="end"):270===a?ql(o,0,90,!1,!0)?s="end":(ql(o,90,180)||ql(o,270,360))&&(s="start"):180===a&&(90===o?s="start":(ql(o,0,90)||ql(o,270,360))&&(s="end")):s="center":"parallel"===i?l=ql(a,0,180,!0)?"top":"bottom":"horizontal"===i?ql(a,90,270,!1)?s="end":(ql(a,270,360,!1)||ql(a,0,90))&&(s="start"):"perpendicular"===i&&(s=ql(a,90,270)?"end":"start"),{textAlign:s,textBaseline:l}}function Fc(t,e,n){var r=n.showTick,i=n.tickLength,A=n.tickDirection,o=n.labelDirection,a=n.labelSpacing,s=e.indexOf(t),l=yl(a,[t,s,e]),c=(0,gi.zs)([jl(t.value,n),Cc(o,A)],2),u=c[0],d=1===c[1]?yl(r?i:0,[t,s,e]):0,f=(0,gi.zs)(il(rl(u,l+d),Dl(t.value,n)),2);return{x:f[0],y:f[1]}}function Qc(t,e){["text","html"].includes(t.nodeName)&&t.attr(e)}function Mc(t,e){!function(t,e,n,r){var i=e.labelOverlap,A=void 0===i?[]:i;A.length&&A.forEach(function(i){var A=i.type,o=xc.get(A);(function(t,e,n){return!(e.labelOverlap.length<1)&&("hide"===n?!function(t){for(var e=t;e;){if("offscreen"===e.className)return!0;e=e.parent}return!1}(t[0]):"rotate"===n?!t.some(function(t){var e;return!!(null===(e=t.attr("transform"))||void 0===e?void 0:e.includes("rotate"))}):"ellipsis"!==n&&"wrap"!==n||t.filter(function(t){return t.querySelector("text")}).length>=1)})(t,e,A)&&(null==o||o(t,i,e,r,n))})}(this.node().childNodes,t,e,{hide:bi,show:vi,rotate:function(e,n){!function(t,e,n){e.setLocalEulerAngles(t);var r=kc(e.__data__.value,t,n),i=e.querySelector(nl.labelItem.class);i&&Qc(i,r)}(+n,e,t)},ellipsis:function(t,e,n){t&&ac(t,e||1/0,n)},wrap:function(t,e,n){var r,i;t&&(void 0===(r=n)&&(r=2),void 0===i&&(i="top"),oc(t,{wordWrap:!0,wordWrapWidth:e,maxLines:r,textBaseline:i}))},getTextShape:function(t){return t.querySelector(nl.labelItem.class)}})}function Uc(t,e,n,r,i){var A=n.indexOf(e),o=i.labelRender,a=i.classNamePrefix,s=Ui(t).append(o?function(t,e,n,r){var i=r.labelRender,A=(Fl(r,"endPos.0",400)-Fl(r,"startPos.0",0))/n.length,o=(0,mi.A)(i)?yl(i,[t,e,n,jl(t.value,r)]):t.label||"",a=function(t){var e=(new DOMParser).parseFromString(t,"text/html").body.firstElementChild;if(console.log(null==e?void 0:e.getClientRects(),11),!e)return 0;var n=e.getAttribute("style")||"",r=Object.fromEntries(n.split(";").map(function(t){return t.trim()}).filter(function(t){return t.includes(":")}).map(function(t){var e=(0,gi.zs)(t.split(":").map(function(t){return t.trim()}),2),n=e[1];return[e[0].toLowerCase(),n]})),i=function(t){if(!t)return 0;var e=t.match(/([\d.]+)px/);return e?parseFloat(e[1]):0};if(r.height)return i(r.height);var A,o=i(r["font-size"])||16,a=r["line-height"];A=a&&"normal"!==a?a.endsWith("px")?i(a):/^[\d.]+$/.test(a)?parseFloat(a)*o:o:1.2*o;var s=i(r["padding-top"]),l=i(r["padding-bottom"]);r.padding&&(1===(c=r.padding.split(/\s+/).map(i)).length||2===c.length?(s=c[0],l=c[0]):(3===c.length||4===c.length)&&(s=c[0],l=c[2]));var c,u=i(r["border-top-width"]),d=i(r["border-bottom-width"]);if(r.border){var f=r.border.match(/([\d.]+)px/);f&&(u=parseFloat(f[1]),d=parseFloat(f[1]))}return r["border-width"]&&(1===(c=r["border-width"].split(/\s+/).map(i)).length||2===c.length?(u=c[0],d=c[0]):(3===c.length||4===c.length)&&(u=c[0],d=c[2])),A+s+l+u+d}(o)||30;return function(){return e={width:A,height:a},"function"==typeof(t=o)?t():(0,Hi.A)(t)||(0,bt.A)(t)?new $.g3({style:(0,gi.Cl)((0,gi.Cl)({},e),{innerHTML:String(t)})}):t;var t,e}}(e,A,n,i):function(t,e,n,r){var i=r.labelFormatter;return(0,mi.A)(i)?function(){return Ml(yl(i,[t,e,n,jl(t.value,r)]))}:function(){return Ml(t.label||"")}}(e,A,n,i)).attr("className",nl.labelItem.name).node();Nl(Ui(s),nl.labelItem,Js,a);var l=(0,gi.zs)(ml(_l(r,[e,A,n])),2),c=l[0],u=l[1],d=u.transform,f=(0,gi.Tt)(u,["transform"]);sc(s,d);var h=function(t,e,n){var r,i=n.labelAlign;if(null===(r=e.style.transform)||void 0===r?void 0:r.includes("rotate"))return e.getLocalEulerAngles();var A,o,a=jl(t.value,n),s=Ll(t.value,n);return"horizontal"===i?0:(A=ul("perpendicular"===i?Oc([1,0],a):Oc([s[0]<0?-1:1,0],s)),ql(o=(A+360)%180,-90,90)||(o+=180),o)}(e,s,i);return s.getLocalEulerAngles()||s.setLocalEulerAngles(h),Qc(s,(0,gi.Cl)((0,gi.Cl)({},kc(e.value,h,i)),c)),t.attr(f),s}function Sc(t,e,n,r,i){var A,o,a,s=n.classNamePrefix,l=Il(e,n.labelFilter),c=pl(n,"label"),u=t.selectAll(nl.label.class).data(l,function(t,e){return e}).join(function(t){var r=t.append("g").attr("className",nl.label.name).transition(function(t){Uc(this,t,e,c,n);var r=Fc(t,e,n),i=r.y;return this.style.transform="translate(".concat(r.x,", ").concat(i,")"),null});return Nl(r,nl.label,Zs,s),r},function(t){return t.transition(function(t){var i=function(t,e,n,r){if(void 0===r&&(r="destroy"),function(t,e){return"text"===t.nodeName&&"text"===e.nodeName&&t.attributes.text===e.attributes.text}(t,e))return t.remove(),[null];var i=function(){"destroy"===r?t.destroy():"hide"===r&&bi(t),e.isVisible()&&vi(e)};if(!n)return i(),[null];var A=n.duration,o=void 0===A?0:A,a=n.delay,s=void 0===a?0:a,l=Math.ceil(+o/2),c=+o/4,u=(0,gi.zs)(t.getGeometryBounds().center,2),d=u[0],f=u[1],h=(0,gi.zs)(e.getGeometryBounds().center,2),p=(0,gi.zs)([(d+h[0])/2-d,(f+h[1])/2-f],2),g=p[0],m=p[1],y=t.style.opacity,v=e.style.opacity,b=void 0===v?1:v,w=t.style.transform||"",B=e.style.transform||"",x=t.animate([{opacity:void 0===y?1:y,transform:"translate(0, 0) ".concat(w)},{opacity:0,transform:"translate(".concat(g,", ").concat(m,") ").concat(w)}],(0,gi.Cl)((0,gi.Cl)({fill:"both"},n),{duration:s+l+c})),C=e.animate([{opacity:0,transform:"translate(".concat(-g,", ").concat(-m,") ").concat(B),offset:.01},{opacity:b,transform:"translate(0, 0) ".concat(B)}],(0,gi.Cl)((0,gi.Cl)({fill:"both"},n),{duration:l+c,delay:s+l-c}));return Ts(C,i),[x,C]}(this.querySelector(nl.labelItem.class),Uc(this,t,e,c,n),r.update),A=Fc(t,e,n),o=A.y,a=js(this,{transform:"translate(".concat(A.x,", ").concat(o,")")},r.update);return(0,gi.fX)((0,gi.fX)([],(0,gi.zs)(i),!1),[a],!1)})},function(t){return A=t,t.transition(function(){var t=this,e=vl(this.childNodes[0],r.exit);return Ts(e,function(){return Ui(t).remove()}),e}),A}).transitions();return a=function(){Mc.call(t,n,i)},0===(o=u).length?a():Promise.all(o.map(function(t){return null==t?void 0:t.finished})).then(a),u}function _c(t,e){return Pl(t,e.tickDirection,e)}function Ic(t,e,n,r,i,A){var o=function(t,e,n,r,i){var A=i.tickFormatter,o=i.classNamePrefix,a=_c(e.value,i),s="line";(0,mi.A)(A)&&(s=function(){return yl(A,[e,n,r,a])});var l=t.append(s).attr("className",nl.tickItem.name);return Nl(l,nl.tickItem,qs,o),l}(Ui(this),t,e,n,r);!function(t,e,n,r,i,A,o){var a=_c(t.value,A),s=function(t,e,n,r,i){var A=(0,gi.zs)(function(t,e){var n=(0,gi.zs)(t,2);return[[0,0],[n[0]*e,n[1]*e]]}(r,yl(i.tickLength,[t,e,n])),2),o=(0,gi.zs)(A[0],2),a=o[0],s=o[1],l=(0,gi.zs)(A[1],2);return{x1:a,x2:l[0],y1:s,y2:l[1]}}(t,e,n,a,A),l=s.x1,c=s.x2,u=s.y1,d=s.y2,f=(0,gi.zs)(ml(_l(o,[t,e,n,a])),2),h=f[0],p=f[1];"line"===r.node().nodeName&&r.styles((0,gi.Cl)({x1:l,x2:c,y1:u,y2:d},h)),i.attr(p),r.styles(h)}(t,e,n,o,this,r,i);var a=(0,gi.zs)(Dl(t.value,r),2),s=a[1];return js(this,{transform:"translate(".concat(a[0],", ").concat(s,")")},A)}function Tc(t){return/\S+-\S+/g.test(t)?t.split("-").map(function(t){return t[0]}):t.length>2?[t[0]]:t.split("")}function Lc(t,e,n,r,i){var A=pl(r,"title"),o=(0,gi.zs)(ml(A),2),a=o[0],s=o[1],l=s.transform,c=s.transformOrigin,u=(0,gi.Tt)(s,["transform","transformOrigin"]);e.styles(u);var d=l||function(t,e,n){var r=2*t.getGeometryBounds().halfExtents[1];if("vertical"===e){if("left"===n)return"rotate(-90) translate(0, ".concat(r/2,")");if("right"===n)return"rotate(-90) translate(0, -".concat(r/2,")")}return""}(t.node(),a.direction,a.position);t.styles((0,gi.Cl)((0,gi.Cl)({},a),{transformOrigin:c})),sc(t.node(),d);var f=function(t,e,n){var r=n.titlePosition,i=void 0===r?"lb":r,A=n.titleSpacing,o=Tc(i),a=t.node().getLocalBounds(),s=(0,gi.zs)(a.min,2),l=s[0],c=s[1],u=(0,gi.zs)(a.halfExtents,2),d=u[0],f=u[1],h=(0,gi.zs)(e.node().getLocalBounds().halfExtents,2),p=h[0],g=h[1],m=(0,gi.zs)([l+d,c+f],2),y=m[0],v=m[1],b=(0,gi.zs)(lc(A),4),w=b[0],B=b[1],x=b[2],C=b[3];if(["start","end"].includes(i)&&"linear"===n.type){var E=n.startPos,O=n.endPos,k=(0,gi.zs)("start"===i?[E,O]:[O,E],2),F=k[0],Q=k[1],M=ll([-Q[0]+F[0],-Q[1]+F[1]]),U=(0,gi.zs)(rl(M,w),2);return{x:F[0]+U[0],y:F[1]+U[1]}}return o.includes("t")&&(v-=f+g+w),o.includes("r")&&(y+=d+p+B),o.includes("l")&&(y-=d+p+C),o.includes("b")&&(v+=f+g+x),{x:y,y:v}}(Ui(n._offscreen||n.querySelector(nl.mainGroup.class)),e,r),h=f.x,p=f.y;return js(e.node(),{transform:"translate(".concat(h,", ").concat(p,")")},i)}function Pc(t,e,n,r){var i=t.showLine,A=t.showTick,o=t.showLabel,a=t.classNamePrefix,s=e.maybeAppendByClassName(nl.lineGroup,"g");Nl(s,nl.lineGroup,Rs,a);var l=Fi(i,s,function(e){return Xl(e,t,r)})||[],c=e.maybeAppendByClassName(nl.tickGroup,"g");Nl(c,nl.tickGroup,Ks,a);var u=Fi(A,c,function(e){return function(t,e,n,r){var i=n.classNamePrefix,A=Il(e,n.tickFilter),o=pl(n,"tick");return t.selectAll(nl.tick.class).data(A,function(t){return t.id||t.label}).join(function(t){var e=t.append("g").attr("className",nl.tick.name).transition(function(t,e){return Ic.call(this,t,e,A,n,o,!1)});return Nl(e,nl.tick,$s,i),e},function(t){return t.transition(function(t,e){return this.removeChildren(),Ic.call(this,t,e,A,n,o,r.update)})},function(t){return t.transition(function(){var t=this,e=vl(this.childNodes[0],r.exit);return Ts(e,function(){return t.remove()}),e})}).transitions()}(e,n,t,r)})||[],d=e.maybeAppendByClassName(nl.labelGroup,"g");Nl(d,nl.labelGroup,zs,a);var f=Fi(o,d,function(i){return Sc(i,n,t,r,e.node())})||[];return(0,gi.fX)((0,gi.fX)((0,gi.fX)([],(0,gi.zs)(l),!1),(0,gi.zs)(u),!1),(0,gi.zs)(f),!1).filter(function(t){return!!t})}var jc=function(t){function e(e){return t.call(this,e,el)||this}return(0,gi.C6)(e,t),e.prototype.render=function(t,e,n){var r=this,i=t.titleText,A=t.data,o=t.animate,a=t.showTitle,s=t.showGrid,l=t.dataThreshold,c=t.truncRange,u=t.classNamePrefix;u?e.attr("className","".concat(e.className||"axis"," ").concat(u,"axis")):e.className||e.attr("className","axis");var d=function(t,e){if(t.length<=e)return t;for(var n=Math.floor(t.length/e),r=[],i=0;i<t.length;i+=n)r.push(t[i]);return r}(A,l).filter(function(t){var e=t.value;return!(c&&e>c[0]&&e<c[1])}),f=Is(void 0===n?o:n),h=Ui(e).maybeAppendByClassName(nl.gridGroup,"g");Nl(h,nl.gridGroup,Ns,u);var p=Fi(s,h,function(e){return $l(e,d,t,f)})||[],g=Ui(e).maybeAppendByClassName(nl.mainGroup,"g");Nl(g,nl.mainGroup,Ds,u),i&&(!this.initialized&&f.enter||this.initialized&&f.update)&&Pc(t,Ui(this.offscreenGroup),d,Is(!1));var m=Pc(t,Ui(g.node()),d,f),y=Ui(e).maybeAppendByClassName(nl.titleGroup,"g");Nl(y,nl.titleGroup,Gs,u);var v=Fi(a,y,function(e){return function(t,e,n,r){var i=n.titleText,A=n.classNamePrefix;return t.selectAll(nl.title.class).data([{title:i}].filter(function(t){return!!t.title}),function(t,e){return t.title}).join(function(o){var a=o.append(function(){return Ml(i)}).attr("className",nl.title.name).transition(function(){return Lc(Ui(this),t,e,n,r.enter)});return Nl(a,nl.title,tl,A),a},function(i){return i.transition(function(){return Lc(Ui(this),t,e,n,r.update)})},function(t){return t.remove()}).transitions()}(e,r,t,f)})||[];return(0,gi.fX)((0,gi.fX)((0,gi.fX)([],(0,gi.zs)(p),!1),(0,gi.zs)(m),!1),(0,gi.zs)(v),!1).flat().filter(function(t){return!!t})},e}(ki);const Hc=function(t,e){if(t)if((0,x.A)(t))for(var n=0,r=t.length;n<r&&!1!==e(t[n],n);n++);else if((0,ji.A)(t))for(var i in t)if(t.hasOwnProperty(i)&&!1===e(t[i],i))break},Nc=function(t,e){return function(t,e,n){if(!(0,x.A)(t)&&!O(t))return t;var r=n;return Hc(t,function(t,n){r=e(r,t,n)}),r}(t,function(t,n,r){return e.includes(r)||(t[r]=n),t},{})},Dc=function(t){var e=at(t);return e.charAt(0).toUpperCase()+e.substring(1)};var Rc=n("./node_modules/.pnpm/d3-format@3.1.2/node_modules/d3-format/src/defaultLocale.js"),Kc=function(){function t(t,e,n,r){void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=0),void 0===r&&(r=0),this.x=0,this.y=0,this.width=0,this.height=0,this.x=t,this.y=e,this.width=n,this.height=r}return Object.defineProperty(t.prototype,"bottom",{get:function(){return this.y+this.height},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"left",{get:function(){return this.x},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"right",{get:function(){return this.x+this.width},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"top",{get:function(){return this.y},enumerable:!1,configurable:!0}),t.fromRect=function(e){return new t(e.x,e.y,e.width,e.height)},t.prototype.toJSON=function(){return{x:this.x,y:this.y,width:this.width,height:this.height,top:this.top,right:this.right,bottom:this.bottom,left:this.left}},t.prototype.isPointIn=function(t,e){return t>=this.left&&t<=this.right&&e>=this.top&&e<=this.bottom},t}();function zc(t){for(var e=1/0,n=1/0,r=-1/0,i=-1/0,A=0;A<t.length;A++){var o=t[A],a=o.x,s=o.y,l=(0,gi.zs)([a+o.width,s+o.height],2),c=l[0],u=l[1];a<e&&(e=a),s<n&&(n=s),c>r&&(r=c),u>i&&(i=u)}return new Kc(e,n,r-e,i-n)}var Gc=function(t,e,n){var r=t.width,i=t.height,A=n.flexDirection,o=void 0===A?"row":A,a=n.justifyContent,s=void 0===a?"flex-start":a,l=n.alignItems,c=void 0===l?"flex-start":l,u="row"===o,d="row"===o||"column"===o,f=u?d?[1,0]:[-1,0]:d?[0,1]:[0,-1],h=(0,gi.zs)([0,0],2),p=h[0],g=h[1],m=e.map(function(t){var e,n=t.width,r=t.height,i=(0,gi.zs)([p,g],2),A=i[0],o=i[1];return e=(0,gi.zs)([p+n*f[0],g+r*f[1]],2),p=e[0],g=e[1],new Kc(A,o,n,r)}),y=zc(m),v={"flex-start":0,"flex-end":u?r-y.width:i-y.height,center:u?(r-y.width)/2:(i-y.height)/2},b=m.map(function(t){var e=t.x,n=t.y,r=Kc.fromRect(t);return r.x=u?e+v[s]:e,r.y=u?n:n+v[s],r}),w=(zc(b),function(t){var e=(0,gi.zs)(u?["height",i]:["width",r],2),n=e[0],A=e[1];switch(c){case"flex-start":default:return 0;case"flex-end":return A-t[n];case"center":return A/2-t[n]/2}}),B=b.map(function(t){var e=t.x,n=t.y,r=Kc.fromRect(t);return r.x=u?e:e+w(r),r.y=u?n+w(r):n,r}),x=B.map(function(e){var n,r,i=Kc.fromRect(e);return i.x+=null!==(n=t.x)&&void 0!==n?n:0,i.y+=null!==(r=t.y)&&void 0!==r?r:0,i});return x},Vc=function(t,e,n){return[]},Wc=function(t){function e(e){var n=t.call(this,e)||this;n.layoutEvents=[$.jX.BOUNDS_CHANGED,$.jX.INSERTED,$.jX.REMOVED],n.$margin=lc(0),n.$padding=lc(0);var r=e.style||{},i=r.margin,A=r.padding,o=void 0===A?0:A;return n.margin=void 0===i?0:i,n.padding=o,n.isMutationObserved=!0,n.bindEvents(),n}return(0,gi.C6)(e,t),Object.defineProperty(e.prototype,"margin",{get:function(){return this.$margin},set:function(t){this.$margin=lc(t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"padding",{get:function(){return this.$padding},set:function(t){this.$padding=lc(t)},enumerable:!1,configurable:!0}),e.prototype.getBBox=function(){var t=this.attributes,e=t.x,n=void 0===e?0:e,r=t.y,i=void 0===r?0:r,A=t.width,o=t.height,a=(0,gi.zs)(this.$margin,4),s=a[0],l=a[3];return new Kc(n-l,i-s,A+l+a[1],o+s+a[2])},e.prototype.appendChild=function(e,n){return e.isMutationObserved=!0,t.prototype.appendChild.call(this,e,n),e},e.prototype.getAvailableSpace=function(){var t=this.attributes,e=t.width,n=t.height,r=(0,gi.zs)(this.$padding,4),i=r[0],A=r[1],o=r[2],a=r[3],s=(0,gi.zs)(this.$margin,4);return new Kc(a+s[3],i+s[0],e-a-A,n-i-o)},e.prototype.layout=function(){if(this.attributes.display&&this.isConnected&&!this.children.some(function(t){return!t.isConnected}))try{var t=this.attributes,e=t.y;this.style.transform="translate(".concat(t.x,", ").concat(e,")");var n=function(t,e,n){if(0===e.length)return[];var r={flex:Gc,grid:Vc},i=n.display in r?r[n.display]:null;return(null==i?void 0:i.call(null,t,e,n))||[]}(this.getAvailableSpace(),this.children.map(function(t){return t.getBBox()}),this.attributes);this.children.forEach(function(t,e){var r=n[e],i=r.y;t.style.transform="translate(".concat(r.x,", ").concat(i,")")})}catch(t){}},e.prototype.bindEvents=function(){var t=this;this.layoutEvents.forEach(function(e){t.addEventListener(e,function(e){e.target&&(e.target.isMutationObserved=!0,t.layout())})})},e.prototype.attributeChangedCallback=function(t,e,n){"margin"===t?this.margin=n:"padding"===t&&(this.padding=n),this.layout()},e}($.YJ);function Xc(t,e,n){return t.querySelector(e)?zt(t).select(e):zt(t).append(n)}function Yc(t){return Array.isArray(t)?t.join(", "):`${t||""}`}function $c(t,e){let{flexDirection:n,justifyContent:r,alignItems:i}={display:"flex",flexDirection:"row",justifyContent:"flex-start",alignItems:"center"};const A={top:["row","flex-start","center"],bottom:["row","flex-start","center"],left:["column","flex-start","center"],right:["column","flex-start","center"],center:["column","center","center"]};return t in A&&([n,r,i]=A[t]),Object.assign({display:"flex",flexDirection:n,justifyContent:r,alignItems:i},e)}class qc extends Wc{get child(){var t;return null===(t=this.children)||void 0===t?void 0:t[0]}update(t){var e;const{subOptions:n}=t;null===(e=this.child)||void 0===e||e.update(n),this.attr(t)}}class Zc extends qc{update(t){var e;const{subOptions:n}=t;null===(e=this.child)||void 0===e||e.update(n),this.attr(t)}}function Jc(t,e){var n;return null===(n=t.filter(t=>t.getOptions().name===e))||void 0===n?void 0:n[0]}function tu(t){return"vertical"===t||t===-Math.PI/2}function eu(t,e,n){const{bbox:r}=t,{position:i="top",size:A,length:o}=e,a=["top","bottom","center"].includes(i),[s,l]=a?[r.height,r.width]:[r.width,r.height],{defaultSize:c,defaultLength:u}=n.props,d=A||c||s,f=o||u||l,h=a?"horizontal":"vertical",[p,g]=a?[f,d]:[d,f];return{orientation:h,width:p,height:g,size:d,length:f}}function nu(t){const e=["arrow","crosshairs","grid","handle","handleLabel","indicator","label","line","tick","tip","title","trunc"],{style:n}=t,r=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n}(t,["style"]),i={};return Object.entries(r).forEach(([t,n])=>{e.includes(t)?i[`show${Dc(t)}`]=n:i[t]=n}),Object.assign(Object.assign({},i),n)}var ru=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n};function iu(t,e){const{eulerAngles:n,origin:r}=e;r&&t.setOrigin(r),n&&t.rotate(n[0],n[1],n[2])}function Au(t){const{innerWidth:e,innerHeight:n,depth:r}=t.getOptions();return[e,n,r]}function ou(t,e,n,r,i,A,o,a){var s;void 0===n&&void 0===A||t.update(Object.assign(Object.assign({},n&&{tickCount:n}),A&&{tickMethod:A}));const l=function(t,e,n){if(t.getTicks)return t.getTicks();if(!n)return e;const[r,i]=Ce(e,t=>+t),{tickCount:A}=t.getOptions();return n(r,i,A)}(t,e,A),c=i?l.filter(i):l,u=t=>t instanceof Date?String(t):"object"==typeof t&&t?t:String(t),d=r||(null===(s=t.getFormatter)||void 0===s?void 0:s.call(t))||u,f=function(t,e){if(R(e))return t=>t;const n=e.getOptions(),{innerWidth:r,innerHeight:i,insetTop:A,insetBottom:o,insetLeft:a,insetRight:s}=n,[l,c,u]="left"===t||"right"===t?[A,o,i]:[a,s,r],d=new xe({domain:[0,1],range:[l/u,1-c/u]});return t=>d.map(t)}(o,a),h=function(t,e){const{width:n,height:r}=e.getOptions();return i=>{if(!V(e))return i;const A=e.map("bottom"===t?[i,1]:[0,i]);if("bottom"===t){const t=A[0];return new xe({domain:[0,n],range:[0,1]}).map(t)}if("left"===t){const t=A[1];return new xe({domain:[0,r],range:[0,1]}).map(t)}return i}}(o,a),p=t=>["left","right"].includes(t);return R(a)||D(a)?c.map((e,n,r)=>{var i,A;const s=(null===(i=t.getBandWidth)||void 0===i?void 0:i.call(t,e))/2||0,l=f(t.map(e)+s);return{value:K(a)&&"center"===o||D(a)&&(null===(A=t.getTicks)||void 0===A?void 0:A.call(t))&&(t=>["top","bottom","center","outer"].includes(t))(o)||D(a)&&p(o)?1-l:l,label:u(d(ee(e),n,r)),id:String(n)}}):c.map((e,n,r)=>{var i;const A=(null===(i=t.getBandWidth)||void 0===i?void 0:i.call(t,e))/2||0,a=h(f(t.map(e)+A));return{value:p(o)?1-a:a,label:u(d(ee(e),n,r)),id:String(n)}})}function au(t=[],e){if(t.length>0)return t;const{labelAutoRotate:n,labelAutoHide:r,labelAutoEllipsis:i,labelAutoWrap:A}=e,o=[],a=(t,e)=>{e&&o.push(Object.assign(Object.assign({},t),e))};return a({type:"rotate",optionalAngles:[0,15,30,45,60,90]},n),a({type:"ellipsis",minLength:20},i),a({type:"hide"},r),a({type:"wrap",wordWrapWidth:100,maxLines:3,recoveryWhenFail:!0},A),o}function su(t,e,n){return!function(t){return R(t)&&D(t)}(e)&&!G(e)&&(void 0===t?!!n.getTicks:t)}const lu=t=>e=>{const{labelFormatter:n,labelFilter:r=()=>!0}=e;return i=>{var A;const{scales:[o]}=i,a=(null===(A=o.getTicks)||void 0===A?void 0:A.call(o))||o.getOptions().domain,s="string"==typeof n?(0,Rc.GP)(n):n,l=Object.assign(Object.assign({},e),{labelFormatter:s,labelFilter:(t,e,n)=>r(a[e],e,a),scale:o});return t(l)(i)}},cu=lu(t=>{const{direction:e="left",important:n={},labelFormatter:r,orientation:i,actualPosition:A,position:o,size:a,style:s={},title:l,tickCount:c,tickFilter:u,tickMethod:d,tickLength:f,transform:h,indexBBox:p}=t,g=ru(t,["direction","important","labelFormatter","order","orientation","actualPosition","position","size","style","title","tickCount","tickFilter","tickMethod","tickLength","transform","indexBBox"]);return({scales:m,value:y,coordinate:v,theme:b})=>{const{bbox:w}=y,[B]=m,{domain:x,xScale:C}=B.getOptions(),E=function(t,e,n,r,i,A){const o=function(t,e,n,r,i){const A=n.axis,o=["top","right","bottom","left"].includes(i)?n[`axis${St(i)}`]:n.axisLinear,a=t.getOptions().name,s=n[`axis${Dc(a)}`]||{};return Object.assign({},A,o,s)}(t,0,n,0,i);return"center"===i?Object.assign(Object.assign(Object.assign(Object.assign({},o),{labelDirection:"right"===r?"negative":"positive"}),"center"===r?{labelTransform:"translate(50%,0)"}:null),{tickDirection:"right"===r?"negative":"positive",labelSpacing:"center"===r?0:4,titleSpacing:tu(A)?10:0,tick:"center"!==r&&void 0}):o}(B,0,b,e,o,i),O=Object.assign(Object.assign(Object.assign({},E),s),g),k=function(t,e,n="xy"){const[r,i,A]=Au(e);return"xy"===n?t.includes("bottom")||t.includes("top")?i:r:"xz"===n?t.includes("bottom")||t.includes("top")?A:r:t.includes("bottom")||t.includes("top")?i:A}(A||o,v,t.plane),F=function(t,e,n,r,i){const{x:A,y:o,width:a,height:s}=n;if("bottom"===t)return{startPos:[A,o],endPos:[A+a,o]};if("left"===t)return{startPos:[A+a,o+s],endPos:[A+a,o]};if("right"===t)return{startPos:[A,o+s],endPos:[A,o]};if("top"===t)return{startPos:[A,o+s],endPos:[A+a,o+s]};if("center"===t){if("vertical"===e)return{startPos:[A,o],endPos:[A,o+s]};if("horizontal"===e)return{startPos:[A,o],endPos:[A+a,o]};if("number"==typeof e){const[t,n]=r.getCenter(),[l,c]=X(r),[u,d]=Y(r),f=Math.min(a,s)/2,{insetLeft:h,insetTop:p}=r.getOptions(),g=l*f,m=c*f,[y,v]=[t+A-h,n+o-p],[b,w]=[Math.cos(e),Math.sin(e)],B=[y+m*b,v+m*w],x=[y+g*b,v+g*w],C=()=>{const{domain:t}=i.getOptions();return t.length},E=R(r)&&i?C():3;return{startPos:B,endPos:x,gridClosed:Math.abs(d-u-360)<1e-6,gridCenter:[y,v],gridControlAngles:new Array(E).fill(0).map((t,e,n)=>(d-u)/E*e)}}}return{}}(o,i,w,v,C),Q=function(t){const{depth:e}=t.getOptions();return e?{tickIsBillboard:!0,lineIsBillboard:!0,labelIsBillboard:!0,titleIsBillboard:!0,gridIsBillboard:!0}:{}}(v),M=ou(B,x,c,r,u,d,o,v),U=p?M.map((t,e)=>{const n=p.get(e);return n?n[0]!==t.label?t:Object.assign(Object.assign({},t),{bbox:n[1]}):t}):M,S=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},O),{type:"linear",data:U,crossSize:a,titleText:Yc(l),labelOverlap:au(h,O),grid:su(O.grid,v,B),gridLength:k,line:!0,indexBBox:p,classNamePrefix:"g2-"}),void 0!==f?{tickLength:f}:null),O.line?null:{lineOpacity:0}),F),Q),n),_=S.labelOverlap.find(t=>"hide"===t.type);return _&&(S.crossSize=!1),new jc({className:"axis",style:nu(S)})}}),uu=lu(t=>{const{position:e,labelFormatter:n,tickFilter:r,tickCount:i,tickMethod:A,tickLength:o,important:a={},style:s={},indexBBox:l,title:c,grid:u=!1}=t,d=ru(t,["order","size","position","orientation","labelFormatter","tickFilter","tickCount","tickMethod","tickLength","important","style","indexBBox","title","grid"]);return({scales:[t],value:s,coordinate:f,theme:h})=>{const{bbox:p}=s,{domain:g}=t.getOptions(),m=ou(t,g,i,n,r,A,e,f),y=l?m.map((t,e)=>{const n=l.get(e);return n?n[0]!==t.label?t:Object.assign(Object.assign({},t),{bbox:n[1]}):t}):m,[v,b]=X(f),w=function(t,e,n,r,i){const{x:A,y:o,width:a,height:s}=e,l=[A+a/2,o+s/2],c=Math.min(a,s)/2,[u,d]=Y(i),[f,h]=Au(i),p={center:l,radius:c,startAngle:u,endAngle:d,gridLength:(r-n)*(Math.min(f,h)/2)};if("inner"===t){const{insetLeft:t,insetTop:e}=i.getOptions();return Object.assign(Object.assign({},p),{center:[l[0]-t,l[1]-e],labelAlign:"perpendicular",labelDirection:"positive",tickDirection:"positive",gridDirection:"negative"})}return Object.assign(Object.assign({},p),{labelAlign:"parallel",labelDirection:"negative",tickDirection:"negative",gridDirection:"positive"})}(e,p,v,b,f),{axis:B,axisArc:x={}}=h,C=nu(Q({},B,x,w,Object.assign(Object.assign(Object.assign({type:"arc",data:y,titleText:Yc(c),grid:u,classNamePrefix:"g2-"},void 0!==o?{tickLength:o}:null),d),a)));return new jc({style:Nc(C,["transform"])})}});cu.props={defaultPosition:"center",defaultSize:45,defaultOrder:0,defaultCrossPadding:[12,12],defaultPadding:[12,12]},uu.props={defaultPosition:"outer",defaultOrientation:"vertical",defaultSize:45,defaultOrder:0,defaultCrossPadding:[12,12],defaultPadding:[12,12]};const du=t=>(...e)=>{const n=cu(Object.assign({},{crossPadding:50},t))(...e);return iu(n,t),n};du.props=Object.assign(Object.assign({},cu.props),{defaultPosition:"bottom"});const fu=t=>(...e)=>{const n=cu(Object.assign({},{crossPadding:10},t))(...e);return iu(n,t),n};function hu(t,e,n){return n?"".concat(t," ").concat(n,"legend-").concat(e):t}fu.props=Object.assign(Object.assign({},cu.props),{defaultPosition:"left"});var pu="marker",gu="handle-marker",mu="handle-label",yu=Hs({text:"text"},"title");function vu(t,e){var n=Object.entries(e).reduce(function(e,n){var r=(0,gi.zs)(n,2),i=r[0],A=r[1];return t.node().attr(i)||(e[i]=A),e},{});t.styles(n)}var bu=function(t){function e(e){return t.call(this,e,{text:"",width:0,height:0,fill:"#4a505a",fontWeight:"bold",fontSize:12,fontFamily:"sans-serif",inset:0,spacing:0,position:"top-left"})||this}return(0,gi.C6)(e,t),e.prototype.getAvailableSpace=function(){var t=this.attributes,e=t.width,n=t.height,r=t.position,i=t.spacing,A=t.inset,o=this.querySelector(yu.text.class);if(!o)return new Kc(0,0,+e,+n);var a=o.getBBox(),s=a.width,l=a.height,c=(0,gi.zs)(lc(i),4),u=c[0],d=c[1],f=c[2],h=c[3],p=(0,gi.zs)([0,0,+e,+n],4),g=p[0],m=p[1],y=p[2],v=p[3],b=Tc(r);if(b.includes("i"))return new Kc(g,m,y,v);b.forEach(function(t,r){var i,A,o,a;"t"===t&&(i=(0,gi.zs)(0===r?[l+f,+n-l-f]:[0,+n],2),m=i[0],v=i[1]),"r"===t&&(A=(0,gi.zs)([+e-s-h],1),y=A[0]),"b"===t&&(o=(0,gi.zs)([+n-l-u],1),v=o[0]),"l"===t&&(a=(0,gi.zs)(0===r?[s+d,+e-s-d]:[0,+e],2),g=a[0],y=a[1])});var w=(0,gi.zs)(lc(A),4),B=w[0],x=w[3],C=(0,gi.zs)([x+w[1],B+w[2]],2);return new Kc(g+x,m+B,y-C[0],v-C[1])},e.prototype.getBBox=function(){return this.title?this.title.getBBox():new Kc(0,0,0,0)},e.prototype.render=function(t,e){var n=this,r=t.classNamePrefix,i=(0,gi.Tt)(t,["width","height","position","spacing","classNamePrefix"]),A=(0,gi.zs)(ml(i),1)[0],o=function(t){var e,n,r,i,A=t.width,o=t.height,a=t.position,s=(0,gi.zs)([+A/2,+o/2],2),l=(0,gi.zs)([+s[0],+s[1],"center","middle"],4),c=l[0],u=l[1],d=l[2],f=l[3],h=Tc(a);return h.includes("l")&&(c=(e=(0,gi.zs)([0,"start"],2))[0],d=e[1]),h.includes("r")&&(c=(n=(0,gi.zs)([+A,"end"],2))[0],d=n[1]),h.includes("t")&&(u=(r=(0,gi.zs)([0,"top"],2))[0],f=r[1]),h.includes("b")&&(u=(i=(0,gi.zs)([+o,"bottom"],2))[0],f=i[1]),{x:c,y:u,textAlign:d,textBaseline:f}}(t),a=o.x,s=o.y,l=o.textAlign,c=o.textBaseline;Fi(!!i.text,Ui(e),function(t){var e=hu(yu.text.name,"title",r);n.title=t.maybeAppendByClassName(yu.text,"text").attr("className",e).styles(A).call(vu,{x:a,y:s,textAlign:l,textBaseline:c}).node()})},e}(ki);const wu=function(){},Bu=function(t,e,n){var r=t,i=(0,Hi.A)(e)?e.split("."):e;return i.forEach(function(t,e){e<i.length-1?((0,ji.A)(r[t])||(r[t]=(0,bt.A)(i[e+1])?[]:{}),r=r[t]):r[t]=n}),t};var xu=n("./node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/esm/lodash/clamp.js");const Cu=function(t,e,n){var r;return function(){var i=this,A=arguments,o=n&&!r;clearTimeout(r),r=setTimeout(function(){r=null,n||t.apply(i,A)},e),o&&t.apply(i,A)}};var Eu,Ou=Hs({prevBtnGroup:"prev-btn-group",prevBtn:"prev-btn",nextBtnGroup:"next-btn-group",nextBtn:"next-btn",pageInfoGroup:"page-info-group",pageInfo:"page-info",playWindow:"play-window",contentGroup:"content-group",controller:"controller",clipPath:"clip-path"},"navigator"),ku=function(t){function e(e){var n=t.call(this,e,{x:0,y:0,animate:{easing:"linear",duration:200,fill:"both"},buttonCursor:"pointer",buttonFill:"black",buttonD:Pi(0,0,6),buttonSize:12,controllerPadding:5,controllerSpacing:5,formatter:function(t,e){return"".concat(t,"/").concat(e)},defaultPage:0,loop:!1,orientation:"horizontal",pageNumFill:"black",pageNumFontSize:12,pageNumTextAlign:"start",pageNumTextBaseline:"middle"})||this;return n.playState="idle",n.contentGroup=n.appendChild(new $.YJ({class:Ou.contentGroup.name})),n.playWindow=n.contentGroup.appendChild(new $.YJ({class:Ou.playWindow.name})),n.innerCurrPage=n.defaultPage,n}return(0,gi.C6)(e,t),Object.defineProperty(e.prototype,"defaultPage",{get:function(){return(0,xu.A)(this.attributes.defaultPage,0,Math.max(this.pageViews.length-1,0))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"pageViews",{get:function(){return this.playWindow.children},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"controllerShape",{get:function(){return this.totalPages>1?{width:55,height:0}:{width:0,height:0}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"pageShape",{get:function(){var t=(0,gi.zs)(function(t){var e;return(null===(e=t[0])||void 0===e?void 0:e.map(function(e,n){return t.map(function(t){return t[n]})}))||[]}(this.pageViews.map(function(t){var e=t.getBBox();return[e.width,e.height]})).map(function(t){return Math.max.apply(Math,(0,gi.fX)([],(0,gi.zs)(t),!1))}),2),e=this.attributes,n=e.pageWidth,r=e.pageHeight;return{pageWidth:void 0===n?t[0]:n,pageHeight:void 0===r?t[1]:r}},enumerable:!1,configurable:!0}),e.prototype.getContainer=function(){return this.playWindow},Object.defineProperty(e.prototype,"totalPages",{get:function(){return this.pageViews.length},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"currPage",{get:function(){return this.innerCurrPage},enumerable:!1,configurable:!0}),e.prototype.getBBox=function(){var e=t.prototype.getBBox.call(this),n=this.pageShape;return new Kc(e.x,e.y,n.pageWidth+this.controllerShape.width,n.pageHeight)},e.prototype.goTo=function(t){var e=this,n=this.attributes.animate,r=this,i=r.playWindow,A=r.pageViews;if("idle"!==r.playState||t<0||A.length<=0||t>=A.length)return null;A[r.currPage].setLocalPosition(0,0),this.prepareFollowingPage(t);var o=(0,gi.zs)(this.getFollowingPageDiff(t),2),a=o[0],s=o[1];this.playState="running";var l=Ps(i,[{transform:"translate(0, 0)"},{transform:"translate(".concat(-a,", ").concat(-s,")")}],n);return Ts(l,function(){e.innerCurrPage=t,e.playState="idle",e.setVisiblePages([t]),e.updatePageInfo()}),l},e.prototype.prev=function(){var t=this.attributes.loop,e=this.pageViews.length,n=this.currPage;if(!t&&n<=0)return null;var r=t?(n-1+e)%e:(0,xu.A)(n-1,0,e);return this.goTo(r)},e.prototype.next=function(){var t=this.attributes.loop,e=this.pageViews.length,n=this.currPage;if(!t&&n>=e-1)return null;var r=t?(n+1)%e:(0,xu.A)(n+1,0,e);return this.goTo(r)},e.prototype.renderClipPath=function(t){var e=this.pageShape,n=e.pageWidth,r=e.pageHeight;n&&r?(this.clipPath=t.maybeAppendByClassName(Ou.clipPath,"rect").styles({width:n,height:r}),this.contentGroup.attr("clipPath",this.clipPath.node())):this.contentGroup.style.clipPath=void 0},e.prototype.setVisiblePages=function(t){this.playWindow.children.forEach(function(e,n){t.includes(n)?vi(e):bi(e)})},e.prototype.adjustControllerLayout=function(){var t=this,e=t.prevBtnGroup,n=t.nextBtnGroup,r=t.pageInfoGroup,i=this.attributes,A=i.orientation,o=i.controllerPadding,a=r.getBBox().width,s=(0,gi.zs)("horizontal"===A?[-180,0]:[-90,90],2),l=s[1];e.setLocalEulerAngles(s[0]),n.setLocalEulerAngles(l);var c=e.getBBox(),u=c.width,d=c.height,f=n.getBBox(),h=f.height,p=Math.max(u,a,f.width),g="horizontal"===A?{offset:[[0,0],[u/2+o,0],[u+a+2*o,0]],textAlign:"start"}:{offset:[[p/2,-d-o],[p/2,0],[p/2,h+o]],textAlign:"center"},m=(0,gi.zs)(g.offset,3),y=(0,gi.zs)(m[0],2),v=y[0],b=y[1],w=(0,gi.zs)(m[1],2),B=w[0],x=w[1],C=(0,gi.zs)(m[2],2),E=C[0],O=C[1],k=g.textAlign,F=r.querySelector("text");F&&(F.style.textAlign=k),e.setLocalPosition(v,b),r.setLocalPosition(B,x),n.setLocalPosition(E,O)},e.prototype.updatePageInfo=function(){var t,e=this,n=e.currPage,r=e.pageViews,i=e.attributes.formatter;r.length<2||(null===(t=this.pageInfoGroup.querySelector(Ou.pageInfo.class))||void 0===t||t.attr("text",i(n+1,r.length)),this.adjustControllerLayout())},e.prototype.getFollowingPageDiff=function(t){var e=this.currPage;if(e===t)return[0,0];var n=this.pageShape,r=t<e?-1:1;return"horizontal"===this.attributes.orientation?[r*n.pageWidth,0]:[0,r*n.pageHeight]},e.prototype.prepareFollowingPage=function(t){var e=this.currPage,n=this.pageViews;if(this.setVisiblePages([t,e]),t!==e){var r=(0,gi.zs)(this.getFollowingPageDiff(t),2);n[t].setLocalPosition(r[0],r[1])}},e.prototype.renderController=function(t){var e=this,n=this.attributes,r=n.controllerSpacing,i=n.classNamePrefix,A=void 0===i?"":i,o=this.pageShape,a=o.pageWidth,s=o.pageHeight,l=this.pageViews.length>=2,c=t.maybeAppendByClassName(Ou.controller,"g");if(wi(c.node(),l),l){var u=pl(this.attributes,"button"),d=pl(this.attributes,"pageNum"),f=(0,gi.zs)(ml(u),2),h=f[0],p=f[1],g=h.size,m=(0,gi.Tt)(h,["size"]),y=!c.select(Ou.prevBtnGroup.class).node(),v=c.maybeAppendByClassName(Ou.prevBtnGroup,"g").styles(p);this.prevBtnGroup=v.node();var b=v.maybeAppendByClassName(Ou.prevBtn,"path");if(A){var w=hu(Ou.prevBtn.name,"prev-btn",A);b.node().setAttribute("class",w)}var B=c.maybeAppendByClassName(Ou.nextBtnGroup,"g").styles(p);this.nextBtnGroup=B.node();var x=B.maybeAppendByClassName(Ou.nextBtn,"path");if(A){var C=hu(Ou.nextBtn.name,"next-btn",A);x.node().setAttribute("class",C)}[b,x].forEach(function(t){t.styles((0,gi.Cl)((0,gi.Cl)({},m),{transformOrigin:"center"})),Ul(t.node(),g,!0)});var E=c.maybeAppendByClassName(Ou.pageInfoGroup,"g");this.pageInfoGroup=E.node();var O=E.maybeAppendByClassName(Ou.pageInfo,"text");if(O.styles(d),A){var k=hu(Ou.pageInfo.name,"page-info",A);O.node().setAttribute("class",k)}this.updatePageInfo(),c.node().setLocalPosition(a+r,s/2),y&&(this.prevBtnGroup.addEventListener("click",function(){e.prev()}),this.nextBtnGroup.addEventListener("click",function(){e.next()}))}},e.prototype.render=function(t,e){var n=t.x,r=t.y,i=void 0===r?0:r;this.attr("transform","translate(".concat(void 0===n?0:n,", ").concat(i,")"));var A=Ui(e);this.renderClipPath(A),this.renderController(A),this.setVisiblePages([this.defaultPage]),this.goTo(this.defaultPage)},e.prototype.bindEvents=function(){var t=this,e=Cu(function(){return t.render(t.attributes,t)},50);this.playWindow.addEventListener($.jX.INSERTED,e),this.playWindow.addEventListener($.jX.REMOVED,e)},e}(ki);function Fu(t,e,n){return void 0===t&&(t="horizontal"),"horizontal"===t?e:n}function Qu(t,e){for(var n in e)e.hasOwnProperty(n)&&"constructor"!==n&&void 0!==e[n]&&(t[n]=e[n])}Ni.registerSymbol("hiddenHandle",function(t,e,n){var r=1.4*n;return[["M",t-n,e-r],["L",t+n,e-r],["L",t+n,e+r],["L",t-n,e+r],["Z"]]}),Ni.registerSymbol("verticalHandle",function(t,e,n){var r=1.4*n,i=n/2,A=n/6,o=t+.4*r;return[["M",t,e],["L",o,e+i],["L",t+r,e+i],["L",t+r,e-i],["L",o,e-i],["Z"],["M",o,e+A],["L",t+r-2,e+A],["M",o,e-A],["L",t+r-2,e-A]]}),Ni.registerSymbol("horizontalHandle",function(t,e,n){var r=1.4*n,i=n/2,A=n/6,o=e+.4*r;return[["M",t,e],["L",t-i,o],["L",t-i,e+r],["L",t+i,e+r],["L",t+i,o],["Z"],["M",t-A,o],["L",t-A,e+r-2],["M",t+A,o],["L",t+A,e+r-2]]});var Mu="component-poptip",Uu="component-poptip-arrow",Su="component-poptip-text",_u=((Eu={})[".".concat(Mu)]={visibility:"visible",position:"absolute","background-color":"rgba(0, 0, 0)","box-shadow":"0px 0px 10px #aeaeae","border-radius":"3px",color:"#fff",opacity:.8,"font-size":"12px",padding:"4px 6px",display:"flex","justify-content":"center","align-items":"center","z-index":8,transition:"visibility 50ms"},Eu[".".concat(Su)]={"text-align":"center"},Eu[".".concat(Mu,"[data-position='top']")]={transform:"translate(-50%, -100%)"},Eu[".".concat(Mu,"[data-position='left']")]={transform:"translate(-100%, -50%)"},Eu[".".concat(Mu,"[data-position='right']")]={transform:"translate(0, -50%)"},Eu[".".concat(Mu,"[data-position='bottom']")]={transform:"translate(-50%, 0)"},Eu[".".concat(Mu,"[data-position='top-left']")]={transform:"translate(0,-100%)"},Eu[".".concat(Mu,"[data-position='top-right']")]={transform:"translate(-100%,-100%)"},Eu[".".concat(Mu,"[data-position='left-top']")]={transform:"translate(-100%, 0)"},Eu[".".concat(Mu,"[data-position='left-bottom']")]={transform:"translate(-100%, -100%)"},Eu[".".concat(Mu,"[data-position='right-top']")]={transform:"translate(0, 0)"},Eu[".".concat(Mu,"[data-position='right-bottom']")]={transform:"translate(0, -100%)"},Eu[".".concat(Mu,"[data-position='bottom-left']")]={transform:"translate(0, 0)"},Eu[".".concat(Mu,"[data-position='bottom-right']")]={transform:"translate(-100%, 0)"},Eu[".".concat(Uu)]={width:"4px",height:"4px",transform:"rotate(45deg)","background-color":"rgba(0, 0, 0)",position:"absolute","z-index":-1},Eu[".".concat(Mu,"[data-position='top']")]={transform:"translate(-50%, calc(-100% - 5px))"},Eu["[data-position='top'] .".concat(Uu)]={bottom:"-2px"},Eu[".".concat(Mu,"[data-position='left']")]={transform:"translate(calc(-100% - 5px), -50%)"},Eu["[data-position='left'] .".concat(Uu)]={right:"-2px"},Eu[".".concat(Mu,"[data-position='right']")]={transform:"translate(5px, -50%)"},Eu["[data-position='right'] .".concat(Uu)]={left:"-2px"},Eu[".".concat(Mu,"[data-position='bottom']")]={transform:"translate(-50%, 5px)"},Eu["[data-position='bottom'] .".concat(Uu)]={top:"-2px"},Eu[".".concat(Mu,"[data-position='top-left']")]={transform:"translate(0, calc(-100% - 5px))"},Eu["[data-position='top-left'] .".concat(Uu)]={left:"10px",bottom:"-2px"},Eu[".".concat(Mu,"[data-position='top-right']")]={transform:"translate(-100%, calc(-100% - 5px))"},Eu["[data-position='top-right'] .".concat(Uu)]={right:"10px",bottom:"-2px"},Eu[".".concat(Mu,"[data-position='left-top']")]={transform:"translate(calc(-100% - 5px), 0)"},Eu["[data-position='left-top'] .".concat(Uu)]={right:"-2px",top:"8px"},Eu[".".concat(Mu,"[data-position='left-bottom']")]={transform:"translate(calc(-100% - 5px), -100%)"},Eu["[data-position='left-bottom'] .".concat(Uu)]={right:"-2px",bottom:"8px"},Eu[".".concat(Mu,"[data-position='right-top']")]={transform:"translate(5px, 0)"},Eu["[data-position='right-top'] .".concat(Uu)]={left:"-2px",top:"8px"},Eu[".".concat(Mu,"[data-position='right-bottom']")]={transform:"translate(5px, -100%)"},Eu["[data-position='right-bottom'] .".concat(Uu)]={left:"-2px",bottom:"8px"},Eu[".".concat(Mu,"[data-position='bottom-left']")]={transform:"translate(0, 5px)"},Eu["[data-position='bottom-left'] .".concat(Uu)]={top:"-2px",left:"8px"},Eu[".".concat(Mu,"[data-position='bottom-right']")]={transform:"translate(-100%, 5px)"},Eu["[data-position='bottom-right'] .".concat(Uu)]={top:"-2px",right:"8px"},Eu);function Iu(t){var e=t&&document.getElementById(t);return e||((e=document.createElement("div")).setAttribute("id",t),document.body.appendChild(e)),e}var Tu=function(t){function e(n){var r=t.call(this,Q({style:{id:"component-poptip"}},e.defaultOptions,n))||this;return r.visibility="visible",r.map=new Map,r.domStyles="",r.initShape(),r.render(r.attributes,r),r}return(0,gi.C6)(e,t),Object.defineProperty(e.prototype,"visible",{get:function(){return"visible"===this.visibility},enumerable:!1,configurable:!0}),e.prototype.render=function(t,e){this.visibility=this.style.visibility,this.updatePoptipElement()},e.prototype.update=function(t){this.attr(Q({},this.style,t)),this.render(this.attributes,this)},e.prototype.bind=function(t,e){var n=this;if(t){var r=this.style.text,i=function(i){var A=t,o=n.style,a=r;if(e){var s="function"==typeof e?e.call(null,i):e,l=s.html,c=s.target,u=(0,gi.Tt)(s,["html","target"]);o=function(t,e,n){return e&&Qu(t,e),n&&Qu(t,n),t}({},n.style,u),(c||!1===c)&&(A=c),"string"==typeof l&&(a=l)}var d=o.position,f=o.offset;if(A){var h=(0,gi.zs)(function(t,e,n,r,i,A){if(void 0===i&&(i=!1),void 0===A&&(A=!1),A)return[t,e];var o=n.getBoundingClientRect(),a=o.x,s=o.y,l=o.width,c=o.height;switch(r){case"top":return i?[a+l/2,s]:[t,s];case"left":return i?[a,s+c/2]:[a,e];case"bottom":return i?[a+l/2,s+c]:[t,s+c];case"right":return i?[a+l,s+c/2]:[a+l,e];case"top-right":case"right-top":return[a+l,s];case"left-bottom":case"bottom-left":return[a,s+c];case"right-bottom":case"bottom-right":return[a+l,s+c];default:return[a,s]}}(i.clientX,i.clientY,A,d,o.arrowPointAtCenter,o.follow),2);n.showTip(h[0],h[1],{text:a,position:d,offset:f})}else n.hideTip()},A=function(){n.hideTip()};t.addEventListener("mousemove",i),t.addEventListener("mouseleave",A),this.map.set(t,[i,A])}},e.prototype.unbind=function(t){if(this.map.has(t)){var e=(0,gi.zs)(this.map.get(t)||[],2),n=e[0],r=e[1];n&&t.removeEventListener("mousemove",n),r&&t.removeEventListener("mouseleave",r),this.map.delete(t)}},e.prototype.clear=function(){this.container.innerHTML=""},e.prototype.destroy=function(){var e,n=this;(0,gi.fX)([],(0,gi.zs)(this.map.keys()),!1).forEach(function(t){return n.unbind(t)}),null===(e=this.container)||void 0===e||e.remove(),t.prototype.destroy.call(this)},e.prototype.showTip=function(t,e,n){var r=Fl(n,"text");if((!r||"string"==typeof r)&&(this.applyStyles(),t&&e&&n)){var i=n.offset,A=n.position;if(A&&this.container.setAttribute("data-position",A),this.setOffsetPosition(t,e,i),"string"==typeof r){var o=this.container.querySelector(".".concat(Su));o&&(o.innerHTML=r)}this.visibility="visible",this.container.style.visibility="visible"}},e.prototype.hideTip=function(){this.visibility="hidden",this.container.style.visibility="hidden"},e.prototype.getContainer=function(){return this.container},e.prototype.getClassName=function(){var t=this.style.containerClassName;return"".concat(Mu).concat(t?" ".concat(t):"")},e.prototype.initShape=function(){var t=this;this.container=function(t){var e=function(t){var e;return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return e||(e=t.apply(void 0,n)),e}}(Iu)(t);return e}(this.style.id),this.container.className=this.getClassName(),this.container.addEventListener("mousemove",function(){return t.showTip()}),this.container.addEventListener("mouseleave",function(){return t.hideTip()})},e.prototype.updatePoptipElement=function(){var t=this.container;this.clear();var e=this.style,n=e.template,r=e.text;this.container.setAttribute("id",e.id),this.container.className=this.getClassName();var i='<span class="'.concat(Uu,'"></span>');t.innerHTML=i,(0,Hi.A)(n)?t.innerHTML+=n:n&&function(t){return t instanceof Element||t instanceof Document}(n)&&t.appendChild(n),r&&(t.getElementsByClassName(Su)[0].textContent=r),this.applyStyles(),this.container.style.visibility=this.visibility},e.prototype.applyStyles=function(){var t=xi({},_u,this.style.domStyles),e=Object.entries(t).reduce(function(t,e){var n=(0,gi.zs)(e,2),r=n[0],i=Object.entries(n[1]).reduce(function(t,e){var n=(0,gi.zs)(e,2),r=n[0],i=n[1];return"".concat(t).concat(r,": ").concat(i,";")},"");return"".concat(t).concat(r,"{").concat(i,"}")},"");if(this.domStyles!==e){this.domStyles=e;var n=this.container.querySelector("style");n&&this.container.removeChild(n),(n=document.createElement("style")).innerHTML=e,this.container.appendChild(n)}},e.prototype.setOffsetPosition=function(t,e,n){void 0===n&&(n=this.style.offset);var r=(0,gi.zs)(n,2),i=r[0],A=r[1],o=void 0===A?0:A;this.container.style.left="".concat(t+(void 0===i?0:i),"px"),this.container.style.top="".concat(e+o,"px")},e.tag="poptip",e.defaultOptions={style:{x:0,y:0,width:0,height:0,target:null,visibility:"hidden",text:"",position:"top",follow:!1,offset:[0,0],domStyles:_u,template:'<div class="'.concat(Su,'"></div>')}},e}(ki),Lu=Hs({layout:"flex",markerGroup:"marker-group",marker:"marker",labelGroup:"label-group",label:"label",valueGroup:"value-group",focusGroup:"focus-group",focus:"focus",value:"value",backgroundGroup:"background-group",background:"background"},"legend-category-item"),Pu={offset:[0,20],domStyles:{".component-poptip":{opacity:"1",padding:"8px 12px",background:"#fff",boxShadow:"0 2px 8px rgba(0, 0, 0, 0.15)"},".component-poptip-arrow":{display:"none"},".component-poptip-text":{color:"#000",lineHeight:"20px"}}},ju=function(t){function e(e,n){var r=t.call(this,e,{span:[1,1],marker:function(){return new $.jl({style:{r:6}})},markerSize:10,labelFill:"#646464",valueFill:"#646464",labelFontSize:12,valueFontSize:12,labelTextBaseline:"middle",valueTextBaseline:"middle"})||this;return r.keyFields={},r.keyFields=n||{},r}return(0,gi.C6)(e,t),Object.defineProperty(e.prototype,"showValue",{get:function(){var t=this.attributes.valueText;return!!t&&("string"==typeof t||"number"==typeof t?""!==t:"function"==typeof t||""!==t.attr("text"))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"actualSpace",{get:function(){var t=this.valueGroup,e=this.attributes,n=e.markerSize,r=e.focus,i=e.focusMarkerSize,A=this.labelGroup.node().getBBox(),o=A.width,a=A.height,s=t.node().getBBox();return{markerWidth:n,labelWidth:o,valueWidth:s.width,focusWidth:r?null!=i?i:12:0,height:Math.max(n,a,s.height)}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"span",{get:function(){var t=this.attributes.span;if(!t)return[1,1];var e=(0,gi.zs)(lc(t),2),n=e[0],r=this.showValue?e[1]:0,i=n+r;return[n/i,r/i]},enumerable:!1,configurable:!0}),e.prototype.setAttribute=function(e,n){t.prototype.setAttribute.call(this,e,n)},Object.defineProperty(e.prototype,"shape",{get:function(){var t,e=this.attributes,n=e.markerSize,r=e.width,i=this.actualSpace,A=i.markerWidth,o=i.focusWidth,a=i.height,s=this.actualSpace,l=s.labelWidth,c=s.valueWidth,u=(0,gi.zs)(this.spacing,3),d=u[0],f=u[1],h=u[2];if(r){var p=r-n-d-f-o-h,g=(0,gi.zs)(this.span,2);l=(t=(0,gi.zs)([g[0]*p,g[1]*p],2))[0],c=t[1]}return{width:A+l+c+d+f+o+h,height:a,markerWidth:A,labelWidth:l,valueWidth:c,focusWidth:o}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"spacing",{get:function(){var t=this.attributes,e=t.spacing,n=t.focus;if(!e)return[0,0,0];var r=(0,gi.zs)(lc(e),3);return[r[0],this.showValue?r[1]:0,n?r[2]:0]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"layout",{get:function(){var t=this.shape,e=t.markerWidth,n=t.labelWidth,r=t.valueWidth,i=t.focusWidth,A=t.width,o=t.height,a=(0,gi.zs)(this.spacing,3),s=a[0],l=a[1];return{height:o,width:A,markerWidth:e,labelWidth:n,valueWidth:r,focusWidth:i,position:[e/2,e+s,e+n+s+l,e+n+r+s+l+a[2]+i/2]}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"scaleSize",{get:function(){var t=function(t){var e=t.querySelector(Lu.marker.class);return e?e.style:{}}(this.markerGroup.node()),e=this.attributes,n=e.markerSize,r=e.markerStrokeWidth,i=e.markerLineWidth,A=e.markerStroke,o=+((void 0===r?t.strokeWidth:r)||(void 0===i?t.lineWidth:i)||((void 0===A?t.stroke:A)?1:0))*Math.sqrt(2),a=this.markerGroup.node().getBBox();return(1-o/Math.max(a.width,a.height))*n},enumerable:!1,configurable:!0}),e.prototype.renderMarker=function(t){var e=this,n=this.attributes,r=n.marker,i=n.classNamePrefix,A=pl(this.attributes,"marker");this.markerGroup=t.maybeAppendByClassName(Lu.markerGroup,"g").style("zIndex",0),Fi(!!r,this.markerGroup,function(){var t,n=e.markerGroup.node(),o=null===(t=n.childNodes)||void 0===t?void 0:t[0],a=hu(Lu.marker.name,pu,i),s="string"==typeof r?new Ni({style:{symbol:r},className:a}):r();if(o)if(s.nodeName===o.nodeName)o instanceof Ni?o.update((0,gi.Cl)((0,gi.Cl)({},A),{symbol:r})):(function(t,e){var n,r,i=e.attributes;try{for(var A=(0,gi.Ju)(Object.entries(i)),o=A.next();!o.done;o=A.next()){var a=(0,gi.zs)(o.value,2),s=a[0];"id"!==s&&"className"!==s&&t.attr(s,a[1])}}catch(t){n={error:t}}finally{try{o&&!o.done&&(r=A.return)&&r.call(A)}finally{if(n)throw n.error}}}(o,s),Ui(o).styles(A));else{if(o.remove(),!(s instanceof Ni)){var l=hu(Lu.marker.name,pu,i);s.className=l}Ui(s).styles(A),n.appendChild(s)}else{if(!(s instanceof Ni)){var c=hu(Lu.marker.name,pu,i);s.className=c,Ui(s).styles(A)}n.appendChild(s)}e.markerGroup.node().scale(1/e.markerGroup.node().getScale()[0]);var u=Ul(e.markerGroup.node(),e.scaleSize,!0);e.markerGroup.node().style._transform="scale(".concat(u,")")})},e.prototype.renderLabel=function(t){var e=pl(this.attributes,"label"),n=e.text,r=(0,gi.Tt)(e,["text"]),i=this.attributes.classNamePrefix;this.labelGroup=t.maybeAppendByClassName(Lu.labelGroup,"g").style("zIndex",0);var A=hu(Lu.label.name,"label",i),o=this.labelGroup.maybeAppendByClassName(Lu.label,function(){return Ml(n)});o.node().setAttribute("class",A),o.styles(r)},e.prototype.renderValue=function(t){var e=this,n=pl(this.attributes,"value"),r=n.text,i=(0,gi.Tt)(n,["text"]),A=this.attributes.classNamePrefix;this.valueGroup=t.maybeAppendByClassName(Lu.valueGroup,"g").style("zIndex",0),Fi(this.showValue,this.valueGroup,function(){var t=hu(Lu.value.name,"value",A),n=e.valueGroup.maybeAppendByClassName(Lu.value,function(){return Ml(r)});n.node().setAttribute("class",t),n.styles(i)})},e.prototype.createPoptip=function(){var t=(0,gi.Tt)(this.attributes.poptip||{},["render"]),e=new Tu({style:xi(Pu,t)});return this.poptipGroup=e,e},e.prototype.bindPoptip=function(t){var e=this,n=this.attributes.poptip;n&&(this.poptipGroup||this.createPoptip()).bind(t,function(){var t=e.attributes,r=t.labelText,i=t.valueText,A=t.markerFill,o="string"==typeof r?r:null==r?void 0:r.attr("text"),a="string"==typeof i?i:null==i?void 0:i.attr("text");if("function"==typeof n.render)return{html:n.render((0,gi.Cl)((0,gi.Cl)({},e.keyFields),{label:o,value:a,color:A}))};var s="";return"string"!=typeof o&&"number"!=typeof o||(s+='<div class="component-poptip-label">'.concat(o,"</div>")),"string"!=typeof a&&"number"!=typeof a||(s+='<div class="component-poptip-value">'.concat(a,"</div>")),{html:s}})},e.prototype.renderFocus=function(t){var e=this,n=this.attributes,r=n.focus,i=n.classNamePrefix,A={x:0,y:0,size:n.focusMarkerSize,opacity:.6,symbol:"focus",stroke:"#aaaaaa",lineWidth:1};(0,pe.A)(r)||(this.focusGroup=t.maybeAppendByClassName(Lu.focusGroup,"g").style("zIndex",0),Fi(r,this.focusGroup,function(){var n=hu(Lu.focus.name,"focus-icon",i),r=new Ni({style:(0,gi.Cl)((0,gi.Cl)({},A),{symbol:"focus"}),className:n}),o=new $.jl({style:{r:A.size/2,fill:"transparent"}}),a=e.focusGroup.node();a.appendChild(o),a.appendChild(r),r.update({opacity:0}),t.node().addEventListener("pointerenter",function(){r.update({opacity:1})}),t.node().addEventListener("pointerleave",function(){r.update({opacity:0})})}))},e.prototype.renderPoptip=function(t){var e=this;this.attributes.poptip&&[t.maybeAppendByClassName(Lu.value,"g").node(),t.maybeAppendByClassName(Lu.label,"g").node()].forEach(function(t){t&&e.bindPoptip(t)})},e.prototype.renderBackground=function(t){var e=this.shape,n=e.width,r=e.height,i=pl(this.attributes,"background");this.background=t.maybeAppendByClassName(Lu.backgroundGroup,"g").style("zIndex",-1);var A=this.background.maybeAppendByClassName(Lu.background,"rect");A.styles((0,gi.Cl)({width:n,height:r},i));var o=this.attributes.classNamePrefix,a=void 0===o?"":o;if(a){var s=hu(Lu.background.name,"background",a);A.node().setAttribute("class",s)}},e.prototype.adjustLayout=function(){var t=this.layout,e=t.labelWidth,n=t.valueWidth,r=t.height,i=(0,gi.zs)(t.position,4),A=i[1],o=i[2],a=i[3],s=r/2;this.markerGroup.styles({transform:"translate(".concat(i[0],", ").concat(s,")").concat(this.markerGroup.node().style._transform)}),this.labelGroup.styles({transform:"translate(".concat(A,", ").concat(s,")")}),this.focusGroup&&this.focusGroup.styles({transform:"translate(".concat(a,", ").concat(s,")")}),ac(this.labelGroup.select(Lu.label.class).node(),Math.ceil(e)),this.showValue&&(this.valueGroup.styles({transform:"translate(".concat(o,", ").concat(s,")")}),ac(this.valueGroup.select(Lu.value.class).node(),Math.ceil(n)))},e.prototype.render=function(t,e){var n=Ui(e),r=t.x,i=t.y,A=void 0===i?0:i;n.styles({transform:"translate(".concat(void 0===r?0:r,", ").concat(A,")")}),this.renderMarker(n),this.renderLabel(n),this.renderValue(n),this.renderBackground(n),this.renderPoptip(n),this.renderFocus(n),this.adjustLayout()},e}(ki),Hu=Hs({page:"item-page",navigator:"navigator",item:"item"},"items"),Nu=function(t,e,n){return void 0===n&&(n=!0),t?e(t):n},Du=function(t){function e(e){var n=t.call(this,e,{data:[],gridRow:1/0,gridCol:void 0,padding:0,width:1e3,height:100,rowPadding:0,colPadding:0,layout:"flex",orientation:"horizontal",click:wu,mouseenter:wu,mouseleave:wu})||this;return n.navigatorShape=[0,0],n}return(0,gi.C6)(e,t),Object.defineProperty(e.prototype,"pageViews",{get:function(){return this.navigator.getContainer()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"grid",{get:function(){var t=this.attributes,e=t.gridRow,n=t.gridCol,r=t.data;if(!e&&!n)throw new Error("gridRow and gridCol can not be set null at the same time");return e&&n?[e,n]:e?[e,r.length]:[r.length,n]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"renderData",{get:function(){var t=this.attributes,e=t.data,n=t.layout,r=t.poptip,i=t.focus,A=t.focusMarkerSize,o=t.classNamePrefix,a=pl(this.attributes,"item"),s=e.map(function(t,s){var l=t.id,c=t.label,u=t.value;return{id:"".concat(void 0===l?s:l),index:s,style:(0,gi.Cl)({layout:n,labelText:c,valueText:u,poptip:r,focus:i,focusMarkerSize:A,classNamePrefix:o},Object.fromEntries(Object.entries(a).map(function(n){var r=(0,gi.zs)(n,2);return[r[0],yl(r[1],[t,s,e])]})))}});return s},enumerable:!1,configurable:!0}),e.prototype.getGridLayout=function(){var t=this,e=this.attributes,n=e.orientation,r=e.width,i=e.rowPadding,A=e.colPadding,o=(0,gi.zs)(this.navigatorShape,1)[0],a=(0,gi.zs)(this.grid,2),s=a[0],l=a[1],c=l*s,u=0;return this.pageViews.children.map(function(e,a){var d,f,h=Math.floor(a/c),p=a%c,g=t.ifHorizontal(l,s),m=[Math.floor(p/g),p%g];"vertical"===n&&m.reverse();var y=(0,gi.zs)(m,2),v=y[0],b=y[1],w=(r-o-(l-1)*A)/l,B=e.getBBox().height,x=(0,gi.zs)([0,0],2),C=x[0],E=x[1];return"horizontal"===n?(C=(d=(0,gi.zs)([u,v*(B+i)],2))[0],E=d[1],u=b===l-1?0:u+w+A):(C=(f=(0,gi.zs)([b*(w+A),u],2))[0],E=f[1],u=v===s-1?0:u+B+i),{page:h,index:a,row:v,col:b,pageIndex:p,width:w,height:B,x:C,y:E}})},e.prototype.getFlexLayout=function(){var t=this.attributes,e=t.width,n=t.height,r=t.rowPadding,i=t.colPadding,A=(0,gi.zs)(this.navigatorShape,1)[0],o=(0,gi.zs)(this.grid,2),a=o[0],s=o[1],l=(0,gi.zs)([e-A,n],2),c=l[0],u=l[1],d=(0,gi.zs)([0,0,0,0,0,0,0,0],8),f=d[2],h=d[3],p=d[4],g=d[5],m=d[6],y=d[7];return this.pageViews.children.map(function(t,e){var n,A,o,l,d=t.getBBox(),v=d.width,b=d.height,w=0===m?0:i,B=m+w+v;return B<=c&&Nu(p,function(t){return t<s})?(n=(0,gi.zs)([m+w,y,B],3),m=n[2],{width:v,height:b,x:n[0],y:n[1],page:f,index:e,pageIndex:h++,row:g,col:p++}):(A=(0,gi.zs)([g+1,0,0,y+b+r],4),g=A[0],p=A[1],m=A[2],(y=A[3])+b<=u&&Nu(g,function(t){return t<a})?(o=(0,gi.zs)([m,y,v],3),m=o[2],{width:v,height:b,x:o[0],y:o[1],page:f,index:e,pageIndex:h++,row:g,col:p++}):(l=(0,gi.zs)([0,0,v,0,f+1,0,0,0],8),m=l[2],y=l[3],h=l[5],p=l[7],{width:v,height:b,x:l[0],y:l[1],page:f=l[4],index:e,pageIndex:h++,row:g=l[6],col:p++}))})},Object.defineProperty(e.prototype,"itemsLayout",{get:function(){this.navigatorShape=[0,0];var t="grid"===this.attributes.layout?this.getGridLayout:this.getFlexLayout,e=t.call(this);return e.slice(-1)[0].page>0?(this.navigatorShape=[55,0],t.call(this)):e},enumerable:!1,configurable:!0}),e.prototype.ifHorizontal=function(t,e){return Fu(this.attributes.orientation,t,e)},e.prototype.flattenPage=function(t){t.querySelectorAll(Hu.item.class).forEach(function(e){t.appendChild(e)}),t.querySelectorAll(Hu.page.class).forEach(function(e){t.removeChild(e).destroy()})},e.prototype.renderItems=function(t){var e=this.attributes,n=e.click,r=e.mouseenter,i=e.mouseleave,A=e.classNamePrefix;this.flattenPage(t);var o=this.dispatchCustomEvent.bind(this),a=hu(Hu.item.name,"item",A);Ui(t).selectAll(Hu.item.class).data(this.renderData,function(t){return t.id}).join(function(t){return t.append(function(t){var e=t.style,n=(0,gi.Tt)(t,["style"]);return new ju({style:e},n)}).attr("className",a).on("click",function(){null==n||n(this),o("itemClick",{item:this})}).on("pointerenter",function(){null==r||r(this),o("itemMouseenter",{item:this})}).on("pointerleave",function(){null==i||i(this),o("itemMouseleave",{item:this})})},function(t){return t.each(function(t){this.update(t.style)})},function(t){return t.remove()})},e.prototype.relayoutNavigator=function(){var t,e=this.attributes,n=e.layout,r=e.width,i=(null===(t=this.pageViews.children[0])||void 0===t?void 0:t.getBBox().height)||0,A=(0,gi.zs)(this.navigatorShape,2);this.navigator.update("grid"===n?{pageWidth:r-A[0],pageHeight:i-A[1]}:{})},e.prototype.adjustLayout=function(){var t,e,n=this,r=Object.entries((t=this.itemsLayout,e="page",t.reduce(function(t,n){return(t[n[e]]=t[n[e]]||[]).push(n),t},{}))).map(function(t){var e=(0,gi.zs)(t,2);return{page:e[0],layouts:e[1]}}),i=(0,gi.fX)([],(0,gi.zs)(this.navigator.getContainer().children),!1);r.forEach(function(t){var e=t.layouts,r=n.pageViews.appendChild(new $.YJ({className:Hu.page.name}));e.forEach(function(t){var e=t.x,n=t.y,A=t.width,o=t.height,a=i[t.index];r.appendChild(a),Bu(a,"__layout__",t),a.update({x:e,y:n,width:A,height:o})})}),this.relayoutNavigator()},e.prototype.renderNavigator=function(t){var e=this.attributes,n=e.orientation,r=e.classNamePrefix,i=pl(this.attributes,"nav"),A=xi({orientation:n,classNamePrefix:r},i),o=this;return t.selectAll(Hu.navigator.class).data(["nav"]).join(function(t){return t.append(function(){return new ku({style:A})}).attr("className",Hu.navigator.name).each(function(){o.navigator=this})},function(t){return t.each(function(){this.update(A)})},function(t){return t.remove()}),this.navigator},e.prototype.getBBox=function(){return this.navigator.getBBox()},e.prototype.render=function(t,e){var n=this.attributes.data;if(n&&0!==n.length){var r=this.renderNavigator(Ui(e));this.renderItems(r.getContainer()),this.adjustLayout()}},e.prototype.dispatchCustomEvent=function(t,e){var n=new $.up(t,{detail:e});this.dispatchEvent(n)},e}(ki),Ru=Hs({markerGroup:"marker-group",marker:"marker",labelGroup:"label-group",label:"label"},"handle"),Ku={showLabel:!0,formatter:function(t){return t.toString()},markerSize:25,markerStroke:"#c5c5c5",markerFill:"#fff",markerLineWidth:1,labelFontSize:12,labelFill:"#c5c5c5",labelText:"",orientation:"vertical",spacing:0},zu=function(t){function e(e){return t.call(this,e,Ku)||this}return(0,gi.C6)(e,t),e.prototype.render=function(t,e){var n=Ui(e).maybeAppendByClassName(Ru.markerGroup,"g");this.renderMarker(n);var r=Ui(e).maybeAppendByClassName(Ru.labelGroup,"g");this.renderLabel(r)},e.prototype.renderMarker=function(t){var e=this,n=this.attributes,r=n.classNamePrefix,i=n.markerSymbol,A=void 0===i?Fu(n.orientation,"horizontalHandle","verticalHandle"):i;Fi(!!A,t,function(t){var n=pl(e.attributes,"marker"),i=(0,gi.Cl)({symbol:A},n),o=hu(Ru.marker.name,gu,r);if(e.marker=t.maybeAppendByClassName(Ru.marker,function(){return new Ni({style:i,className:o})}).update(i),r){var a=e.marker.node().querySelector(".marker");if(a){var s=hu((a.getAttribute("class")||"").split(" ")[0],gu,r);a.setAttribute("class",s)}}})},e.prototype.renderLabel=function(t){var e=this,n=this.attributes,r=n.orientation,i=n.spacing,A=void 0===i?0:i,o=n.formatter,a=n.classNamePrefix;Fi(n.showLabel,t,function(t){var n,i=pl(e.attributes,"label"),s=i.text,l=(0,gi.Tt)(i,["text"]),c=(null===(n=t.select(Ru.marker.class))||void 0===n?void 0:n.node().getBBox())||{},u=c.width,d=c.height,f=(0,gi.zs)(Fu(r,[0,(void 0===d?0:d)+A,"center","top"],[(void 0===u?0:u)+A,0,"start","middle"]),4),h=f[0],p=f[1],g=f[2],m=f[3],y=hu(Ru.label.name,mu,a);t.maybeAppendByClassName(Ru.label,"text").attr("className",y).styles((0,gi.Cl)((0,gi.Cl)({},l),{x:h,y:p,text:o(s).toString(),textAlign:g,textBaseline:m}))})},e}(ki),Gu={showTitle:!0,padding:0,orientation:"horizontal",backgroundFill:"transparent",titleText:"",titleSpacing:4,titlePosition:"top-left",titleFill:"#2C3542",titleFontWeight:"bold",titleFontFamily:"sans-serif",titleFontSize:12},Vu=xi({},Gu,{}),Wu=xi({},Gu,gl(Ku,"handle"),{color:["#d0e3fa","#acc7f6","#8daaf2","#6d8eea","#4d73cd","#325bb1","#5a3e75","#8c3c79","#e23455","#e7655b"],indicatorBackgroundFill:"#262626",indicatorLabelFill:"white",indicatorLabelFontSize:12,indicatorVisibility:"hidden",labelAlign:"value",labelDirection:"positive",labelSpacing:5,showHandle:!0,showIndicator:!0,showLabel:!0,slidable:!0,titleText:"",type:"continuous"}),Xu=Hs({title:"title",html:"html",titleGroup:"title-group",items:"items",itemsGroup:"items-group",contentGroup:"content-group",ribbonGroup:"ribbon-group",ribbon:"ribbon",handlesGroup:"handles-group",handle:"handle",startHandle:"start-handle",endHandle:"end-handle",labelGroup:"label-group",label:"label",indicator:"indicator"},"legend"),Yu=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,gi.C6)(e,t),e.prototype.update=function(t){this.attr(t)},e}($.g3),$u=function(t){function e(e){return t.call(this,e,Vu)||this}return(0,gi.C6)(e,t),e.prototype.renderTitle=function(t,e,n){var r=this.attributes,i=r.showTitle,A=r.titleText,o=r.classNamePrefix,a=pl(this.attributes,"title"),s=(0,gi.zs)(ml(a),2),l=s[0],c=s[1];this.titleGroup=t.maybeAppendByClassName(Xu.titleGroup,"g").styles(c);var u=(0,gi.Cl)((0,gi.Cl)({width:e,height:n},l),{text:i?A:"",classNamePrefix:o});this.title=this.titleGroup.maybeAppendByClassName(Xu.title,function(){return new bu({style:u})}).update(u)},e.prototype.renderCustom=function(t){var e={innerHTML:this.attributes.render(this.attributes.data),pointerEvents:"auto"};t.maybeAppendByClassName(Xu.html,function(){return new Yu({className:Xu.html.name,style:e})}).update(e)},e.prototype.renderItems=function(t,e){var n=e.x,r=e.y,i=e.width,A=e.height,o=pl(this.attributes,"title",!0),a=(0,gi.zs)(ml(o),2),s=a[1],l=(0,gi.Cl)((0,gi.Cl)({},a[0]),{width:i,height:A,x:0,y:0});this.itemsGroup=t.maybeAppendByClassName(Xu.itemsGroup,"g").styles((0,gi.Cl)((0,gi.Cl)({},s),{transform:"translate(".concat(n,", ").concat(r,")")}));var c=this;this.itemsGroup.selectAll(Xu.items.class).data(["items"]).join(function(t){return t.append(function(){return new Du({style:l})}).attr("className",Xu.items.name).each(function(){c.items=Ui(this)})},function(t){return t.update(l)},function(t){return t.remove()})},e.prototype.adjustLayout=function(){if(this.attributes.showTitle){var t=this.title.node().getAvailableSpace(),e=t.x,n=t.y;this.itemsGroup.node().style.transform="translate(".concat(e,", ").concat(n,")")}},Object.defineProperty(e.prototype,"availableSpace",{get:function(){var t=this.attributes,e=t.width,n=t.height;return t.showTitle?this.title.node().getAvailableSpace():new Kc(0,0,e,n)},enumerable:!1,configurable:!0}),e.prototype.getBBox=function(){var e,n,r=null===(e=this.title)||void 0===e?void 0:e.node(),i=null===(n=this.items)||void 0===n?void 0:n.node();return r&&i?function(t,e){var n=t.attributes,r=n.position,i=n.spacing,A=n.inset,o=n.text,a=t.getBBox(),s=e.getBBox(),l=Tc(r),c=(0,gi.zs)(lc(o?i:0),4),u=c[0],d=c[1],f=c[2],h=c[3],p=(0,gi.zs)(lc(A),4),g=p[0],m=p[1],y=p[2],v=p[3],b=(0,gi.zs)([h+d,u+f],2),w=b[0],B=b[1],x=(0,gi.zs)([v+m,g+y],2),C=x[0],E=x[1];if("l"===l[0])return new Kc(a.x,a.y,s.width+a.width+w+C,Math.max(s.height+E,a.height));if("t"===l[0])return new Kc(a.x,a.y,Math.max(s.width+C,a.width),s.height+a.height+B+E);var O=(0,gi.zs)([e.attributes.width||s.width,e.attributes.height||s.height],2);return new Kc(s.x,s.y,O[0]+a.width+w+C,O[1]+a.height+B+E)}(r,i):t.prototype.getBBox.call(this)},e.prototype.render=function(t,e){var n=this.attributes,r=n.width,i=n.height,A=n.x,o=void 0===A?0:A,a=n.y,s=void 0===a?0:a,l=n.classNamePrefix,c=n.render,u=Ui(e);l?e.attr("className","".concat(e.className||"legend-category"," ").concat(l,"legend")):e.className||e.attr("className","legend-category"),e.style.transform="translate(".concat(o,", ").concat(s,")"),c?this.renderCustom(u):(this.renderTitle(u,r,i),this.renderItems(u,this.availableSpace),this.adjustLayout())},e}(ki);const qu=function(t,e,n){var r,i,A,o,a=0;n||(n={});var s=function(){a=!1===n.leading?0:Date.now(),r=null,o=t.apply(i,A),r||(i=A=null)},l=function(){var l=Date.now();a||!1!==n.leading||(a=l);var c=e-(l-a);return i=this,A=arguments,c<=0||c>e?(r&&(clearTimeout(r),r=null),a=l,o=t.apply(i,A),r||(i=A=null)):r||!1===n.trailing||(r=setTimeout(s,c)),o};return l.cancel=function(){clearTimeout(r),a=0,r=i=A=null},l};var Zu=n("./node_modules/.pnpm/d3-array@3.2.4/node_modules/d3-array/src/ascending.js");function Ju(t,...e){if("function"!=typeof t[Symbol.iterator])throw new TypeError("values is not iterable");t=Array.from(t);let[n]=e;if(n&&2!==n.length||e.length>1){const i=Uint32Array.from(t,(t,e)=>e);return e.length>1?(e=e.map(e=>t.map(e)),i.sort((t,n)=>{for(const r of e){const e=ed(r[t],r[n]);if(e)return e}})):(n=t.map(n),i.sort((t,e)=>ed(n[t],n[e]))),r=t,Array.from(i,t=>r[t])}var r;return t.sort(td(n))}function td(t=Zu.A){if(t===Zu.A)return ed;if("function"!=typeof t)throw new TypeError("compare is not a function");return(e,n)=>{const r=t(e,n);return r||0===r?r:(0===t(n,n))-(0===t(e,e))}}function ed(t,e){return(null==t||!(t>=t))-(null==e||!(e>=e))||(t<e?-1:t>e?1:0)}var nd=n("./node_modules/.pnpm/d3-array@3.2.4/node_modules/d3-array/src/bisector.js");const rd="main-layer",id="label-layer",Ad="element",od="component",ad="axis-breaks",sd="axis-breaks-group";var ld=n("./node_modules/.pnpm/d3-array@3.2.4/node_modules/d3-array/src/bisect.js");function cd(t){return!!t.getBandWidth}function ud(t,e,n){if(!cd(t))return t.invert(e);const{adjustedRange:r}=t;if(r.includes(e))return t.invert(e);const{domain:i}=t.getOptions(),A=n?-1:0,o=t.getStep(),a=n?r:r.map(t=>t+o),s=function(t,e,n){return Math.min(n,Math.max(0,t))}((0,ld.ah)(a,e)+A,0,i.length-1);return i[s]}function dd(t,e,n){if(!e)return t.getOptions().domain;if(!cd(t)){const r=Ju(e);if(!n)return r;const[i]=r,{range:A}=t.getOptions(),[o,a]=A,s=o>a?-1:1;return[i,t.invert(t.map(i)+s*n)]}const{domain:r}=t.getOptions(),i=r.indexOf(e[0]);if(n){const t=i+Math.round(r.length*n);return r.slice(i,t)}const A=r.indexOf(e[e.length-1]);return r.slice(i,A+1)}function fd(t,e,n,r,i,A){const{x:o,y:a}=i,s=(t,e)=>{const[n,r]=A.invert(t);return[ud(o,n,e),ud(a,r,e)]},l=s([t,e],!0),c=s([n,r],!1);return[dd(o,[l[0],c[0]]),dd(a,[l[1],c[1]])]}function hd(t,e){const[n,r]=t;return[e.map(n),e.map(r)+(t=>t.getStep?t.getStep():0)(e)]}const pd=(t,e)=>{var n,r;const[i,A]=t,o=(null===(r=null===(n=e.getOptions)||void 0===n?void 0:n.call(e))||void 0===r?void 0:r.domain)||[],a=o.indexOf(i),s=o.indexOf(A);if(-1===a||-1===s)return[e.map(i),e.map(A)];const l=o.length;return l<=1?[0,1]:[a/(l-1),s/(l-1)]};function gd(t,e){if(e(t))return!0;if("g"===t.tagName){const{childNodes:n=[]}=t;for(const t of n)if(gd(t,e))return!0}return!1}const md={visibility:"visible",opacity:1,fillOpacity:1,strokeOpacity:1};function yd(t,e){let n;return gd(t,t=>{var r;return"g"!==t.tagName&&void 0!==(null===(r=t.style)||void 0===r?void 0:r[e])&&(n=t.style[e],!0)}),null!=n?n:md[e]}function vd(t,e,n,r){t.style[e]=n,r&&t.children.forEach(t=>vd(t,e,n,r))}function bd(t){vd(t,"visibility","hidden",!0)}function wd(t){vd(t,"visibility","visible",!0)}var Bd=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n};function xd(t){return zt(t).selectAll(`.${Ad}`).nodes().filter(t=>!t.__removed__)}function Cd(t,e){return Ed(t,e).flatMap(({container:t})=>xd(t))}function Ed(t,e){return e.filter(e=>e!==t&&e.options.parentKey===t.options.key)}function Od(t){return zt(t).select(".plot").node()}function kd(t){if("g"===t.tagName)return t.getRenderBounds();const e=t.getGeometryBounds(),n=new $.F5;return n.setFromTransformedAABB(e,t.getWorldTransform()),n}function Fd(t,e){const{offsetX:n,offsetY:r}=e,i=kd(t),{min:[A,o],max:[a,s]}=i;return n<A||n>a||r<o||r>s?null:[n-A,r-o]}function Qd(t,e){const{offsetX:n,offsetY:r}=e,[i,A,o,a]=function(t){const e=t.getRenderBounds(),{min:[n,r],max:[i,A]}=e;return[n,r,i,A]}(t);return[Math.min(o,Math.max(i,n))-i,Math.min(a,Math.max(A,r))-A]}function Md(t){return t=>t.__data__.color}function Ud(t){return t=>t.__data__.x}function Sd(t){const e=Array.isArray(t)?t:[t],n=new Map(e.flatMap(t=>Array.from(t.markState.keys()).map(e=>[jd(t.key,e.key),e.data])));return t=>{const{index:e,markKey:r,viewKey:i}=t.__data__;return n.get(jd(i,r))[e]}}const _d={selected:3,unselected:3,active:2,inactive:2,default:1},Id={selection:["selected","unselected"],highlight:["active","inactive"]},Td=(t,e,n)=>{gd(t,t=>{"setAttribute"in t&&"function"==typeof t.setAttribute&&t.setAttribute(e,n)})};function Ld(t,e){return e.forEach(e=>{const n=e.__interactionStyle__;e.__interactionStyle__=n?Object.assign(Object.assign({},n),t):t}),(t=(t,e)=>t,e=Td)=>Pd(void 0,t,e)}function Pd(t,e=(t,e)=>t,n=Td){const r="__states__",i="__ordinal__",A=t=>_d[t]||_d.default,o=t=>{var e;return null===(e=Object.entries(Id).find(([e,n])=>n.includes(t)))||void 0===e?void 0:e[0]},a=o=>{var a;const{[r]:s=[],[i]:l={}}=o,c=[...s].sort((t,e)=>A(e)-A(t)),u=new Map;for(const e of c){const n=(null===(a=null!=t?t:o.__interactionStyle__)||void 0===a?void 0:a[e])||{};for(const[t,e]of Object.entries(n))u.has(t)||u.set(t,e)}const d=Object.assign({},l);for(const[t,e]of u.entries())d[t]=e;if(0!==Object.keys(d).length){for(const[t,r]of Object.entries(d)){const i=yd(o,t),A=e(r,o);n(o,t,A),t in l||(l[t]=i)}o[i]=l}},s=t=>{t[r]||(t[r]=[])};return{setState:(t,...e)=>{s(t),t[r]=[...e],a(t)},updateState:(t,...e)=>{s(t);const n=t[r],i=new Set(e.map(t=>o(t)).filter(t=>void 0!==t)),A=n.filter(t=>!i.has(o(t)));t[r]=[...A,...e],a(t)},removeState:(t,...e)=>{s(t);for(const n of e){const e=t[r].indexOf(n);-1!==e&&t[r].splice(e,1)}a(t)},hasState:(t,e)=>(s(t),-1!==t[r].indexOf(e))}}function jd(t,e){return`${t},${e}`}function Hd(t,e){const n=(Array.isArray(t)?t:[t]).flatMap(t=>t.marks.map(e=>[jd(t.key,e.key),e.state])),r={};for(const t of e){const[e,i]=Array.isArray(t)?t:[t,{}];r[e]=n.reduce((t,n)=>{const[r,A={}]=n,o=void 0===(a=A[e])||"object"==typeof a&&0===Object.keys(a).length?i:A[e];var a;for(const[e,n]of Object.entries(o)){const i=t[e],A=(t,e,A,o)=>{const a=jd(o.__data__.viewKey,o.__data__.markKey);return r!==a?null==i?void 0:i(t,e,A,o):"function"!=typeof n?n:n(t,e,A,o)};t[e]=A}return t},{})}return r}function Nd(t,e){const n=new Map(t.map((t,e)=>[t,e])),r=e?t.map(e):t;return(t,i)=>{if("function"!=typeof t)return t;const A=n.get(i);return t(e?e(i):i,A,r,i)}}function Dd(t){var{link:e=!1,valueof:n=(t,e)=>t}=t,r=Bd(t,["link","valueof","coordinate"]);if(!e)return[()=>{},()=>{}];const i=t=>t.__data__.points,A=(t,e)=>{const[,n,r]=t,[i,,,A]=e;return[n,i,A,r]};return[t=>{var e;if(t.length<=1)return;const o=Ju(t,(t,e)=>{const{x:n}=t.__data__,{x:r}=e.__data__;return n-r});for(let t=1;t<o.length;t++){const a=(0,ir.Ae)(),s=o[t-1],l=o[t],[c,u,d,f]=A(i(s),i(l));a.moveTo(...c),a.lineTo(...u),a.lineTo(...d),a.lineTo(...f),a.closePath();const h=Ee(r,t=>n(t,s)),{fill:p=s.getAttribute("fill")}=h,g=Bd(h,["fill"]),m=new $.wA({className:"element-link",style:Object.assign({d:a.toString(),fill:p,zIndex:-2},g)});null===(e=s.link)||void 0===e||e.remove(),s.parentNode.appendChild(m),s.link=m}},t=>{var e;null===(e=t.link)||void 0===e||e.remove(),t.link=null}]}function Rd(t,e,n){const r=e=>{const{transform:n}=t.style;return n?`${n} ${e}`:e};if(R(n)){const{points:i}=t.__data__,[A,o]=D(n)?Ie(i):i,a=n.getCenter(),s=Vt(A,a),l=Vt(o,a),c=Yt(s)+qt(s,l)/2;return r(`translate(${e*Math.cos(c)}, ${e*Math.sin(c)})`)}return D(n)?r(`translate(${e}, 0)`):r(`translate(0, ${-e})`)}function Kd(t){var{document:e,background:n,scale:r,coordinate:i,valueof:A}=t,o=Bd(t,["document","background","scale","coordinate","valueof"]);const a="element-background";if(!n)return[()=>{},()=>{}];const s=(t,e,n)=>{const r=t.invert(e),i=e+t.getBandWidth(r)/2,A=t.getStep(r)/2,o=A*n;return[i-A+o,i+A-o]},l=(t,n)=>{const{padding:A}=n,[o,a]=((t,e)=>{const{x:n}=r;if(!cd(n))return[0,1];const{__data__:i}=t,{x:A}=i,[o,a]=s(n,A,e);return[o,a]})(t,A),[l,c]=((t,e)=>{const{y:n}=r;if(!cd(n))return[0,1];const{__data__:i}=t,{y:A}=i,[o,a]=s(n,A,e);return[o,a]})(t,A),u=[[o,l],[a,l],[a,c],[o,c]].map(t=>i.map(t)),{__data__:d}=t,{y:f,y1:h}=d;return Ne(e,u,{y:f,y1:h},i,n)},c=(t,e)=>{const{transform:n="scale(1.2, 1.2)",transformOrigin:r="center center",stroke:i=""}=e,A=Bd(e,["transform","transformOrigin","stroke"]),o=Object.assign({transform:n,transformOrigin:r,stroke:i},A),a=t.cloneNode(!0);for(const[t,e]of Object.entries(o))a.style[t]=e;return a};return[t=>{t.background&&t.background.remove();const e=Ee(o,e=>A(e,t)),{fill:n="#CCD6EC",fillOpacity:i=.3,zIndex:s=-2,padding:u=.001,lineWidth:d=0}=e,f=Bd(e,["fill","fillOpacity","zIndex","padding","lineWidth"]),h=Object.assign(Object.assign({},f),{fill:n,fillOpacity:i,zIndex:s,padding:u,lineWidth:d}),p=(()=>{const{x:t,y:e}=r;return[t,e].some(cd)})()?l:c,g=p(t,h);g.className=a,t.parentNode.parentNode.appendChild(g),t.background=g},t=>{var e;null===(e=t.background)||void 0===e||e.remove(),t.background=null},t=>t.className===a]}function zd(t,e){const n=t.getRootNode().defaultView.getContextService().getDomElement();(null==n?void 0:n.style)&&(t.cursor=n.style.cursor,n.style.cursor=e)}function Gd(t){zd(t,t.cursor)}function Vd(t,e,n){return t.find(t=>Object.entries(e).every(([e,r])=>n(t)[e]===r))}function Wd(t,e){return Math.sqrt(Math.pow(t[0]-e[0],2)+Math.pow(t[1]-e[1],2))}function Xd(t,e=!1){const n=function(t,e){if(!ne(t))return t;for(var n=[],r=0;r<t.length;r++){var i=t[r];e(i,r)&&n.push(i)}return n}(t,t=>!!t).map((t,e)=>[0===e?"M":"L",...t]);return e&&n.push(["Z"]),n}function Yd(t){return t.querySelectorAll(".element")}function $d(t,e){if(e(t))return t;let n=t.parent;for(;n&&!e(n);)n=n.parent;return n}const qd=["interval","point","density"];function Zd({elementsof:t,root:e,coordinate:n,scale:r,validFindByXMarks:i=qd}){var A,o;let a=t(e);const s=t=>i.includes(t.markType);if(a.find(s)){a=a.filter(s);const t=r.x,i=r.series,l=null!==(o=null===(A=null==t?void 0:t.getBandWidth)||void 0===A?void 0:A.call(t))&&void 0!==o?o:0,c=i?t=>{var e,n;const r=Math.round(1/(null!==(e=i.valueBandWidth)&&void 0!==e?e:1));return t.__data__.x+(null!==(n=t.__data__.series)&&void 0!==n?n:0)*l+l/(2*r)}:t=>t.__data__.x+l/2;return a.sort((t,e)=>c(t)-c(e)),t=>{const r=Fd(e,t);if(!r)return;const[i]=n.invert(r),A=(0,(0,nd.A)(c).center)(a,i);return a[A]}}return t=>{const{target:e}=t;return $d(e,t=>!!t.classList&&t.classList.includes("element"))}}function Jd(t){const e=.01/Math.max(t,1e-4);return Math.max(.1,Math.min(100,e))}function tf(t){return!1===t||null==t}function ef(t,e){const n=new Set;for(const r of e){const{scale:e}=r,i=null==e?void 0:e[t];if(i){if(i.independent)return!0;if(n.add(i.key||"default"),n.size>1)return!0}}return!1}function nf(t){var e,n,r,i,A,o,a,s;const l=Array.from(t.markState.keys()),c=ef("x",l),u=ef("y",l),d=[],f=[],h=[],p=[],g=new Map,m=new Map,y=new Map,v=new Map;let b=1,w=1;for(const[l]of t.markState.entries()){const t=l.key,B=(null===(n=null===(e=null==l?void 0:l.scale)||void 0===e?void 0:e.x)||void 0===n?void 0:n.key)||"x";if((null===(i=null===(r=null==l?void 0:l.scale)||void 0===r?void 0:r.x)||void 0===i?void 0:i.independent)||c&&"x"!==B){f.push(t),y.has(B)||y.set(B,b++);const e=y.get(B);g.set(t,`x${e}`)}else d.push(t),g.set(t,"x");const x=(null===(o=null===(A=null==l?void 0:l.scale)||void 0===A?void 0:A.y)||void 0===o?void 0:o.key)||"y";if((null===(s=null===(a=null==l?void 0:l.scale)||void 0===a?void 0:a.y)||void 0===s?void 0:s.independent)||u&&"y"!==x){p.push(t),v.has(x)||v.set(x,w++);const e=v.get(x);m.set(t,`y${e}`)}else h.push(t),m.set(t,"y")}return{hasIndependentX:c,hasIndependentY:u,marksWithSharedX:d,marksWithIndependentX:f,marksWithSharedY:h,marksWithIndependentY:p,markToXScaleMap:g,markToYScaleMap:m}}var rf=function(t,e,n,r){return new(n||(n=Promise))(function(i,A){function o(t){try{s(r.next(t))}catch(t){A(t)}}function a(t){try{s(r.throw(t))}catch(t){A(t)}}function s(t){t.done?i(t.value):function(t){return t instanceof n?t:new n(function(e){e(t)})}(t.value).then(o,a)}s((r=r.apply(t,e||[])).next())})};const Af="legend-category",of="legend-html-category";function af(t){return t.getElementsByClassName("legend-category-item-marker")[0]}function sf(t){return t.getElementsByClassName("legend-category-item-label")[0]}function lf(t){return t.getElementsByClassName("legend-category-item-focus-group")[0]}function cf(t){return t.getElementsByClassName("items-item")}function uf(t){return t.getElementsByClassName(Af)}function df(t){return t.getElementsByClassName("legend-continuous")}function ff(t){let e=t.parentNode;for(;e&&!e.__data__;)e=e.parentNode;return e.__data__}function hf(t,e){return rf(this,arguments,void 0,function*(t,{legend:e,channel:n,value:r,ordinal:i,channels:A,allChannels:o,facet:a=!1}){const{view:s,update:l,setState:c}=t;c(e,t=>{var l,c;const{marks:u}=t,d=null===(c=null===(l=e.attributes)||void 0===l?void 0:l.scales)||void 0===c?void 0:c.find(t=>t.name===n),f=u.map(e=>{var l,c;if((null!==(l=e.scale[n].key)&&void 0!==l?l:n)!==(null!==(c=null==d?void 0:d.key)&&void 0!==c?c:null==d?void 0:d.name))return e;if("legends"===e.type)return e;if(Cs.includes(e.type))return e;const{transform:u=[],data:f=[]}=e,h=u.findIndex(({type:t})=>t.startsWith("group")||t.startsWith("bin")),p=[...u];f.length&&p.splice(h+1,0,{type:"filter",[n]:{value:r,ordinal:i}});const g=Object.fromEntries(A.map(e=>{const n=function(t,e,n){var r;const i=Object.keys(t).find(r=>{if(r.startsWith(n)){const i=t[r].getOptions();return i.name===n&&i.markKey===e}});return null!==(r=t[i])&&void 0!==r?r:t[n]}(s.scale,t.key,e);return[e,{domain:n.getOptions().domain}]}));return Q({},e,Object.assign(Object.assign({transform:p,scale:g},!i&&{animate:!1}),{legend:!a&&Object.fromEntries(o.map(t=>[t,{preserve:!0}]))}))});return Object.assign(Object.assign({},t),{marks:f})}),yield l()})}function pf(t,e){for(const n of t)hf(n,Object.assign(Object.assign({},e),{facet:!0}))}function gf(t,e){const n=Jc(t,"shape"),r=Jc(t,"color"),i=n?n.clone():null,A=[];for(const[t,n]of e){const e=t.type,o=((null==r?void 0:r.getOptions().domain.length)>0?null==r?void 0:r.getOptions().domain:n.data).map((e,r)=>{var A;return i?i.map(e||"point"):(null===(A=null==t?void 0:t.style)||void 0===A?void 0:A.shape)||n.defaultShape||"point"});"string"==typeof e&&A.push([e,o])}if(0===A.length)return["point",["point"]];if(1===A.length)return A[0];if(!n)return A[0];const{range:o}=n.getOptions();return A.map(([t,e])=>{let n=0;for(let t=0;t<A.length;t++)e[t]===o[t%o.length]&&n++;return[n/e.length,[t,e]]}).sort((t,e)=>e[0]-t[0])[0][1]}function mf(t,e){const{scales:n,library:r,markState:i}=e,[A,o]=gf(n,i),{itemMarker:a,itemMarkerSize:s}=t,l=(t,e)=>{var n,i,o;const a=(null===(o=null===(i=null===(n=r[`mark.${A}`])||void 0===n?void 0:n.props)||void 0===i?void 0:i.shape[t])||void 0===o?void 0:o.props.defaultMarker)||re(t.split(".")),l="function"==typeof s?s(e):s;return()=>function(t,e){var{fill:n,lineWidth:r,stroke:i,color:A}=e,o=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n}(e,["d","fill","lineWidth","path","stroke","color"]);const a=Nr.get(t)||Nr.get("point");return(...t)=>new $.wA({style:Object.assign(Object.assign({},o),{d:a(...t),stroke:a.style.includes("stroke")?A||i:"",fill:a.style.includes("fill")?A||n:"",lineWidth:a.style.includes("lineWidth")?r||r||2:0})})}(a,{color:e.color})(0,0,l)},c=t=>`${o[t]}`;return Jc(n,"shape")&&!a?(t,e)=>l(c(e),t):"function"==typeof a?(t,e)=>{const n=a(t.id,e);return"string"==typeof n?l(n,t):n}:(t,e)=>l(a||c(e),t)}function yf(t){const e=Jc(t,"opacity");if(e){const{range:t}=e.getOptions();return(e,n)=>t[n]}}function vf(t,e){const{scales:n,markState:r}=e,[i,A]=gf(n,r),{itemMarker:o,itemMarkerLineWidth:a}=t;if(void 0!==a)return a;const s=["line","hyphen","dash","smooth","hv","hvh","vh","vhv"];if("string"==typeof o&&s.includes(o))return 4;if("function"==typeof o)return(t,e)=>{const n=o(t.id,e);if("string"==typeof n&&s.includes(n))return 4};const l=(Array.isArray(A)?A:[A]).some(t=>s.includes(t));return l?4:void 0}const bf=t=>{const{layout:e,position:n,title:r,cols:i,render:A}=t,o=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n}(t,["labelFormatter","layout","order","orientation","position","size","title","cols","itemMarker","render"]),{gridRow:a}=o;return s=>{const{value:l,theme:c}=s,{bbox:u}=l,{width:d,height:f}=function(t,e,n){const{position:r}=e;if("center"===r){const{bbox:e}=t,{width:n,height:r}=e;return{width:n,height:r}}const{width:i,height:A}=eu(t,e,n);return{width:i,height:A}}(l,t,bf),h=$c(n,e),p=Object.assign(Object.assign(Object.assign(Object.assign({orientation:["right","left","center"].includes(n)?"vertical":"horizontal",width:d,height:f,layout:void 0!==i?"grid":"flex"},void 0!==i&&{gridCol:i}),void 0!==a&&{gridRow:a}),{titleText:Yc(r)}),function(t,e){const{labelFormatter:n=t=>`${t}`}=t,{scales:r,theme:i}=e,A=function(t,e){const n=Jc(t,"size");return n instanceof aa?2*n.map(NaN):e}(r,i.legendCategory.itemMarkerSize),o={itemMarker:mf(Object.assign(Object.assign({},t),{itemMarkerSize:A}),e),itemMarkerSize:A,itemMarkerOpacity:yf(r),itemMarkerLineWidth:vf(t,e)},a="string"==typeof n?(0,Rc.GP)(n):n,s=Jc(r,"color"),l=function(t){return t.find(t=>t.getOptions().domain.length>0).getOptions().domain}(r),c=s?t=>s.map(t):()=>e.theme.color;return Object.assign(Object.assign({},o),{data:l.map(t=>({id:t,label:a(t),color:c(t)}))})}(t,s)),{legendCategory:g={}}=c,m=nu(Object.assign({},g,function(t){return Object.assign(Object.assign({},t),{data:(null==t?void 0:t.data.filter(t=>""!==t.id&&void 0!==t.id))||[]})}(p),o,{classNamePrefix:"g2-"}));if(A)return new $u({className:of,style:Object.assign(Object.assign({},m),{x:u.x,y:u.y,render:A})});const y=new Zc({style:Object.assign(Object.assign({x:u.x,y:u.y,width:u.width,height:u.height},h),{subOptions:m})});return y.appendChild(new $u({className:"legend-category",style:m})),y}};bf.props={defaultPosition:"top",defaultOrder:1,defaultSize:40,defaultCrossPadding:[12,12],defaultPadding:[12,12]};class wf{constructor(t){this.options=Q({},this.getDefaultOptions()),this.update(t)}getOptions(){return this.options}update(t={}){this.options=Q({},this.options,t),this.rescale(t)}rescale(t){}}function Bf(t,e){return e-t?n=>(n-t)/(e-t):t=>.5}function xf(t,...e){return e.reduce((t,e)=>n=>t(e(n)),t)}function Cf(t,e,n){let r=n;return r<0&&(r+=1),r>1&&(r-=1),r<1/6?t+6*(e-t)*r:r<.5?e:r<2/3?t+(e-t)*(2/3-r)*6:t}function Ef(t){const e=le().get(t);if(!e)return null;const{model:n,value:r}=e;return"rgb"===n?r:"hsl"===n?function(t){const e=t[0]/360,n=t[1]/100,r=t[2]/100,i=t[3];if(0===n)return[255*r,255*r,255*r,i];const A=r<.5?r*(1+n):r+n-r*n,o=2*r-A;return[255*Cf(o,A,e+1/3),255*Cf(o,A,e),255*Cf(o,A,e-1/3),i]}(r):null}const Of=(t,e)=>n=>t*(1-n)+e*n,kf=(t,e)=>"number"==typeof t&&"number"==typeof e?Of(t,e):"string"==typeof t&&"string"==typeof e?((t,e)=>{const n=Ef(t),r=Ef(e);return null===n||null===r?n?()=>t:()=>e:t=>{const e=new Array(4);for(let i=0;i<4;i+=1)e[i]=n[i]*(1-t)+r[i]*t;const[i,A,o,a]=e;return`rgba(${Math.round(i)}, ${Math.round(A)}, ${Math.round(o)}, ${a})`}})(t,e):()=>t,Ff=(t,e)=>{const n=Of(t,e);return t=>Math.round(n(t))};function Qf(t){return!(0,pe.A)(t)&&!ge(t)&&!Number.isNaN(t)}const Mf=Math.sqrt(50),Uf=Math.sqrt(10),Sf=Math.sqrt(2);function _f(t,e,n){const r=(e-t)/Math.max(0,n),i=Math.floor(Math.log(r)/Math.LN10),A=r/10**i;return i>=0?(A>=Mf?10:A>=Uf?5:A>=Sf?2:1)*10**i:-(10**-i)/(A>=Mf?10:A>=Uf?5:A>=Sf?2:1)}const If=(t,e,n=5)=>{const r=[t,e];let i,A=0,o=r.length-1,a=r[A],s=r[o];return s<a&&([a,s]=[s,a],[A,o]=[o,A]),i=_f(a,s,n),i>0?(a=Math.floor(a/i)*i,s=Math.ceil(s/i)*i,i=_f(a,s,n)):i<0&&(a=Math.ceil(a*i)/i,s=Math.floor(s*i)/i,i=_f(a,s,n)),i>0?(r[A]=Math.floor(a/i)*i,r[o]=Math.ceil(s/i)*i):i<0&&(r[A]=Math.ceil(a*i)/i,r[o]=Math.floor(s*i)/i),r},Tf=(t,e,n)=>{const[r,i]=t,[A,o]=e;let a,s;return r<i?(a=Bf(r,i),s=n(A,o)):(a=Bf(i,r),s=n(o,A)),xf(s,a)},Lf=(t,e,n)=>{const r=Math.min(t.length,e.length)-1,i=new Array(r),A=new Array(r),o=t[0]>t[r],a=o?[...t].reverse():t,s=o?[...e].reverse():e;for(let t=0;t<r;t+=1)i[t]=Bf(a[t],a[t+1]),A[t]=n(s[t],s[t+1]);return e=>{const n=function(t,e,n,r){let i=1,A=r||t.length;const o=t=>t;for(;i<A;){const n=Math.floor((i+A)/2);o(t[n])>e?A=n:i=n+1}return i}(t,e,0,r)-1;return xf(A[n],i[n])(e)}},Pf=(t,e,n,r)=>(Math.min(t.length,e.length)>2?Lf:Tf)(t,e,r?Ff:n);class jf extends wf{getDefaultOptions(){return{domain:[0,1],range:[0,1],nice:!1,clamp:!1,round:!1,interpolate:Of,tickCount:5}}map(t){return Qf(t)?this.output(t):this.options.unknown}invert(t){return Qf(t)?this.input(t):this.options.unknown}nice(){if(!this.options.nice)return;const[t,e,n,...r]=this.getTickMethodOptions();this.options.domain=this.chooseNice()(t,e,n,...r)}getTicks(){const{tickMethod:t}=this.options,[e,n,r,...i]=this.getTickMethodOptions();return t(e,n,r,...i)}getTickMethodOptions(){const{domain:t,tickCount:e}=this.options;return[t[0],t[t.length-1],e]}chooseNice(){return If}rescale(){this.nice();const[t,e]=this.chooseTransforms();this.composeOutput(t,this.chooseClamp(t)),this.composeInput(t,e,this.chooseClamp(e))}chooseClamp(t){const{clamp:e,range:n}=this.options,r=this.options.domain.map(t),i=Math.min(r.length,n.length);return e?function(t,e){const n=e<t?e:t,r=t>e?t:e;return t=>Math.min(Math.max(n,t),r)}(r[0],r[i-1]):ie}composeOutput(t,e){const{domain:n,range:r,round:i,interpolate:A}=this.options,o=Pf(n.map(t),r,A,i);this.output=xf(o,e,t)}composeInput(t,e,n){const{domain:r,range:i}=this.options,A=Pf(i,r.map(t),Of);this.input=xf(e,n,A)}}const Hf=(t,e,n)=>{let r,i,A=t,o=e;if(A===o&&n>0)return[A];let a=_f(A,o,n);if(0===a||!Number.isFinite(a))return[];if(a>0){A=Math.ceil(A/a),o=Math.floor(o/a),i=new Array(r=Math.ceil(o-A+1));for(let t=0;t<r;t+=1)i[t]=(A+t)*a}else{a=-a,A=Math.ceil(A*a),o=Math.floor(o*a),i=new Array(r=Math.ceil(o-A+1));for(let t=0;t<r;t+=1)i[t]=(A+t)/a}return i};class Nf extends jf{getDefaultOptions(){return{domain:[0,1],range:[0,1],unknown:void 0,nice:!1,clamp:!1,round:!1,interpolate:kf,tickMethod:Hf,tickCount:5}}chooseTransforms(){return[ie,ie]}clone(){return new Nf(this.options)}}function Df(t,e){return+t.toPrecision(e)}function Rf(t){var e=t.canvas,n=t.touches,r=t.offsetX,i=t.offsetY;if(e)return[e.x,e.y];if(n){var A=n[0];return[A.clientX,A.clientY]}return r&&i?[r,i]:[0,0]}var Kf={backgroundFill:"#262626",backgroundLineCap:"round",backgroundLineWidth:1,backgroundStroke:"#333",backgroundZIndex:-1,formatter:function(t){return t.toString()},labelFill:"#fff",labelFontSize:12,labelTextBaseline:"middle",padding:[2,4],position:"right",radius:0,zIndex:999},zf=Hs({background:"background",labelGroup:"label-group",label:"label"},"indicator"),Gf=function(t){function e(e){var n=t.call(this,e,Kf)||this;return n.point=[0,0],n.group=n.appendChild(new $.YJ({})),n.isMutationObserved=!0,n}return(0,gi.C6)(e,t),e.prototype.renderBackground=function(){if(this.label){var t=this.attributes,e=t.position,n=(0,gi.zs)(lc(t.padding),4),r=n[0],i=n[1],A=n[2],o=n[3],a=this.label.node().getLocalBounds(),s=a.min,l=a.max,c=new Kc(s[0]-o,s[1]-r,l[0]+i-s[0]+o,l[1]+A-s[1]+r),u=this.getPath(e,c),d=pl(this.attributes,"background");this.background=Ui(this.group).maybeAppendByClassName(zf.background,"path").styles((0,gi.Cl)((0,gi.Cl)({},d),{d:u})),this.group.appendChild(this.label.node())}},e.prototype.renderLabel=function(){var t=this.attributes,e=t.formatter,n=t.labelText,r=pl(this.attributes,"label"),i=(0,gi.zs)(ml(r),2),A=i[1],o=(0,gi.Tt)(i[0],["text"]);this.label=Ui(this.group).maybeAppendByClassName(zf.labelGroup,"g").styles(A),n&&this.label.maybeAppendByClassName(zf.label,function(){return Ml(e(n))}).style("text",e(n).toString()).selectAll("text").styles(o)},e.prototype.adjustLayout=function(){var t=(0,gi.zs)(this.point,2),e=t[1],n=this.attributes,r=n.y;this.group.attr("transform","translate(".concat(n.x-t[0],", ").concat(r-e,")"))},e.prototype.getPath=function(t,e){var n=this.attributes.radius,r=e.x,i=e.y,A=e.width,o=e.height,a=[["M",r+n,i],["L",r+A-n,i],["A",n,n,0,0,1,r+A,i+n],["L",r+A,i+o-n],["A",n,n,0,0,1,r+A-n,i+o],["L",r+n,i+o],["A",n,n,0,0,1,r,i+o-n],["L",r,i+n],["A",n,n,0,0,1,r+n,i],["Z"]],s={top:4,right:6,bottom:0,left:2}[t],l=this.createCorner([a[s].slice(-2),a[s+1].slice(-2)]);return a.splice.apply(a,(0,gi.fX)([s+1,1],(0,gi.zs)(l),!1)),a[0][0]="M",a},e.prototype.createCorner=function(t,e){void 0===e&&(e=10);var n=bc.apply(void 0,(0,gi.fX)([],(0,gi.zs)(t),!1)),r=(0,gi.zs)(t,2),i=(0,gi.zs)(r[0],2),A=i[0],o=i[1],a=(0,gi.zs)(r[1],2),s=a[0],l=a[1],c=(0,gi.zs)(n?[s-A,[A,s]]:[l-o,[o,l]],2),u=c[0],d=(0,gi.zs)(c[1],2),f=d[0],h=d[1],p=u/2,g=e*(u/Math.abs(u)),m=g/2,y=g*Math.sqrt(3)/2*.8,v=(0,gi.zs)([f,f+p-m,f+p,f+p+m,h],5),b=v[0],w=v[1],B=v[2],x=v[3],C=v[4];return n?(this.point=[B,o-y],[["L",b,o],["L",w,o],["L",B,o-y],["L",x,o],["L",C,o]]):(this.point=[A+y,B],[["L",A,b],["L",A,w],["L",A+y,B],["L",A,x],["L",A,C]])},e.prototype.applyVisibility=function(){"hidden"===this.attributes.visibility?bi(this):vi(this)},e.prototype.bindEvents=function(){this.label.on($.jX.BOUNDS_CHANGED,this.renderBackground)},e.prototype.render=function(){this.renderLabel(),this.renderBackground(),this.adjustLayout(),this.applyVisibility()},e}(ki),Vf={fill:"#fff",lineWidth:1,radius:2,size:10,stroke:"#bfbfbf",strokeOpacity:1,zIndex:0},Wf={fill:"#000",fillOpacity:.45,fontSize:12,textAlign:"center",textBaseline:"middle",zIndex:1},Xf={x:0,y:0,orientation:"horizontal",showLabel:!0,type:"start"},Yf=Hs({foreground:"foreground",handle:"handle",selection:"selection",sparkline:"sparkline",sparklineGroup:"sparkline-group",track:"track",brushArea:"brush-area"},"slider"),$f=Hs({labelGroup:"label-group",label:"label",iconGroup:"icon-group",icon:"icon",iconRect:"icon-rect",iconLine:"icon-line"},"handle"),qf=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,gi.C6)(e,t),e.prototype.render=function(t,e){var n=t.x,r=t.y,i=t.size,A=void 0===i?10:i,o=t.radius,a=void 0===o?A/4:o,s=t.orientation,l=t.classNamePrefix,c=(0,gi.Tt)(t,["x","y","size","radius","orientation","classNamePrefix"]),u=A,d=2.4*u,f=l?"".concat($f.iconRect.name," ").concat(l,"handle-icon-rect"):$f.iconRect.name,h=function(t){return l?"".concat($f.iconLine,"-").concat(t," ").concat(l,"handle-icon-line"):"".concat($f.iconLine,"-").concat(t)},p=Ui(e).maybeAppendByClassName($f.iconRect,"rect").attr("className",f).styles((0,gi.Cl)((0,gi.Cl)({},c),{width:u,height:d,radius:a,x:n-u/2,y:r-d/2,transformOrigin:"center"})),g=n+1/3*u-u/2,m=n+2/3*u-u/2,y=r+1/4*d-d/2,v=r+3/4*d-d/2;p.maybeAppendByClassName("".concat($f.iconLine,"-1"),"line").attr("className",h(1)).styles((0,gi.Cl)({x1:g,x2:g,y1:y,y2:v},c)),p.maybeAppendByClassName("".concat($f.iconLine,"-2"),"line").attr("className",h(2)).styles((0,gi.Cl)({x1:m,x2:m,y1:y,y2:v},c)),"vertical"===s&&(p.node().style.transform="rotate(90)")},e}(ki),Zf=function(t){function e(e){return t.call(this,e,Xf)||this}return(0,gi.C6)(e,t),e.prototype.renderLabel=function(t){var e=this,n=this.attributes,r=n.x,i=n.y,A=n.showLabel,o=pl(this.attributes,"label"),a=o.x,s=void 0===a?0:a,l=o.y,c=void 0===l?0:l,u=o.transform,d=o.transformOrigin,f=(0,gi.Tt)(o,["x","y","transform","transformOrigin"]),h=(0,gi.zs)(ml(f,[]),2),p=h[0],g=h[1],m=Ui(t).maybeAppendByClassName($f.labelGroup,"g").styles(g),y=(0,gi.Cl)((0,gi.Cl)({},Wf),p),v=y.text,b=(0,gi.Tt)(y,["text"]);Fi(!!A,m,function(t){e.label=t.maybeAppendByClassName($f.label,"text").styles((0,gi.Cl)((0,gi.Cl)({},b),{x:r+s,y:i+c,transform:u,transformOrigin:d,text:"".concat(v)})),e.label.on("mousedown",function(t){t.stopPropagation()}),e.label.on("touchstart",function(t){t.stopPropagation()})})},e.prototype.renderIcon=function(t){var e=this.attributes,n=e.type,r=(0,gi.Cl)((0,gi.Cl)({x:e.x,y:e.y,orientation:e.orientation,classNamePrefix:e.classNamePrefix},Vf),pl(this.attributes,"icon")),i=this.attributes.iconShape,A=void 0===i?function(){return new qf({style:r})}:i;Ui(t).maybeAppendByClassName($f.iconGroup,"g").selectAll($f.icon.class).data([A]).join(function(t){return t.append("string"==typeof A?A:function(){return A(n)}).attr("className",$f.icon.name)},function(t){return t.update(r)},function(t){return t.remove()})},e.prototype.render=function(t,e){this.renderIcon(e),this.renderLabel(e)},e}(ki);function Jf(t,e){var n=(0,gi.zs)(function(t,e){for(var n=1;n<t.length;n+=1){var r=t[n-1],i=t[n];if(e>=r&&e<=i)return[r,i]}return[e,e]}(t,e),2),r=n[0],i=n[1];return{tick:e>(r+i)/2?i:r,range:[r,i]}}var th=Hs({trackGroup:"background-group",track:"background",selectionGroup:"ribbon-group",selection:"ribbon",clipPath:"clip-path"},"ribbon");function eh(t){var e=t.size,n=t.length;return Fu(t.orientation,[n,e],[e,n])}function nh(t){var e=t.type,n=(0,gi.zs)(eh(t),2),r=n[0],i=n[1];return"size"===e?[["M",0,i],["L",0+r,0],["L",0+r,i],["Z"]]:[["M",0,i],["L",0,0],["L",0+r,0],["L",0+r,i],["Z"]]}function rh(t){return nh(t)}function ih(t){var e=t.orientation,n=t.range;if(!n)return[];var r=(0,gi.zs)(eh(t),2),i=r[0],A=r[1],o=(0,gi.zs)(n,2),a=o[0],s=o[1],l=Fu(e,a*i,0),c=Fu(e,0,a*A),u=Fu(e,s*i,i),d=Fu(e,A,s*A);return[["M",l,c],["L",l,d],["L",u,d],["L",u,c],["Z"]]}var Ah=function(t){function e(e){return t.call(this,e,{type:"color",orientation:"horizontal",size:30,range:[0,1],length:200,block:!1,partition:[],color:["#fff","#000"],trackFill:"#e5e5e5"})||this}return(0,gi.C6)(e,t),e.prototype.render=function(t,e){!function(t,e){var n=pl(e,"track"),r=hu(th.track.name,"track",e.classNamePrefix);t.maybeAppendByClassName(th.track,"path").attr("className",r).styles((0,gi.Cl)({d:nh(e)},n))}(Ui(e).maybeAppendByClassName(th.trackGroup,"g"),t),function(t,e){var n=pl(e,"selection"),r=function(t){var e,n=t.orientation,r=t.color,i=t.block,A=t.partition,o=(e=(0,mi.A)(r)?new Array(20).fill(0).map(function(t,e,n){return r(e/(n.length-1))}):r).length,a=e.map(function(t){return(0,$.H0)(t).toString()});return o?1===o?a[0]:i?function(t,e,n){var r=Array.from(e),i=t.length;return new Array(i).fill(0).reduce(function(e,n,A){var o=r[A%r.length];return e+" ".concat(t[A],":").concat(o).concat(A<i-1?" ".concat(t[A+1],":").concat(o):"")},"l(".concat("horizontal"===n?"0":"270",")"))}(A,a,n):a.reduce(function(t,e,n){return t+" ".concat(n/(o-1),":").concat(e)},"l(".concat(Fu(n,"0","270"),")")):""}(e),i=hu(th.selection.name,"selection",e.classNamePrefix),A=t.maybeAppendByClassName(th.selection,"path").attr("className",i).styles((0,gi.Cl)({d:rh(e),fill:r},n)),o=A.maybeAppendByClassName(th.clipPath,"path").styles({d:ih(e)}).node();A.style("clipPath",o)}(Ui(e).maybeAppendByClassName(th.selectionGroup,"g"),t)},e}(ki),oh=function(t){function e(e){var n=t.call(this,e,Wu)||this;return n.eventToOffsetScale=new Nf({}),n.innerRibbonScale=new Nf({}),n.cacheLabelBBox=null,n.cacheHandleBBox=null,n.onHovering=function(t){var e=n.attributes,r=e.data,i=e.block;t.stopPropagation();var A=n.getValueByCanvasPoint(t);if(i){var o=Jf(r.map(function(t){return t.value}),A).range,a=n.getRealSelection(o);n.showIndicator((o[0]+o[1])/2,"".concat(a[0],"-").concat(a[1])),n.dispatchIndicated(A,o)}else{var s=n.getTickValue(A);n.showIndicator(s,"".concat(n.getRealValue(s))),n.dispatchIndicated(s)}},n.onDragStart=function(t){return function(e){e.stopPropagation(),n.attributes.slidable&&(n.target=t,n.prevValue=n.getTickValue(n.getValueByCanvasPoint(e)),document.addEventListener("mousemove",n.onDragging),document.addEventListener("touchmove",n.onDragging),document.addEventListener("mouseleave",n.onDragEnd),document.addEventListener("mouseup",n.onDragEnd),document.addEventListener("mouseup",n.onDragEnd),document.addEventListener("touchend",n.onDragEnd))}},n.onDragging=function(t){var e=n.target;n.updateMouse();var r=(0,gi.zs)(n.selection,2),i=r[0],A=r[1],o=n.getTickValue(n.getValueByCanvasPoint(t)),a=o-n.prevValue;"start"===e?i!==o&&n.updateSelection(o,A):"end"===e?A!==o&&n.updateSelection(i,o):"ribbon"===e&&0!==a&&(n.prevValue=o,n.updateSelection(a,a,!0))},n.onDragEnd=function(){n.style.cursor="pointer",document.removeEventListener("mousemove",n.onDragging),document.removeEventListener("touchmove",n.onDragging),document.removeEventListener("mouseup",n.onDragEnd),document.removeEventListener("touchend",n.onDragEnd)},n}return(0,gi.C6)(e,t),Object.defineProperty(e.prototype,"handleOffsetRatio",{get:function(){return this.ifHorizontal(.5,.5)},enumerable:!1,configurable:!0}),e.prototype.getBBox=function(){var t=this.attributes;return new Kc(0,0,t.width,t.height)},e.prototype.render=function(t,e){var n=this,r=t.classNamePrefix;r?e.attr("className","".concat(e.className||"legend-continuous"," ").concat(r,"legend")):e.className||e.attr("className","legend-continuous");var i=t.showLabel;this.renderTitle(Ui(e));var A=this.availableSpace,o=A.x,a=A.y,s=Ui(e).maybeAppendByClassName(Xu.contentGroup,"g").styles({transform:"translate(".concat(o,", ").concat(a,")")});Fi(!!i,s.maybeAppendByClassName(Xu.labelGroup,"g").styles({zIndex:1}),function(t){n.renderLabel(t)});var l=s.maybeAppendByClassName(Xu.ribbonGroup,"g").styles({zIndex:0});this.handlesGroup=s.maybeAppendByClassName(Xu.handlesGroup,"g").styles({zIndex:2}),this.renderHandles(),this.renderRibbon(l),this.renderIndicator(s),this.adjustLabel(),this.adjustHandles()},Object.defineProperty(e.prototype,"range",{get:function(){var t,e=this.attributes,n=e.domain;return n?{min:n[0],max:n[1]}:(t=e.data,{min:Math.min.apply(Math,(0,gi.fX)([],(0,gi.zs)(t.map(function(t){return t.value})),!1)),max:Math.max.apply(Math,(0,gi.fX)([],(0,gi.zs)(t.map(function(t){return t.value})),!1))})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ribbonScale",{get:function(){var t=this.range;return this.innerRibbonScale.update({domain:[t.min,t.max],range:[0,1]}),this.innerRibbonScale},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ribbonRange",{get:function(){var t=(0,gi.zs)(this.selection,2),e=t[1],n=this.ribbonScale;return[n.map(t[0]),n.map(e)]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"selection",{get:function(){var t=this.range,e=this.attributes.defaultValue,n=(0,gi.zs)(void 0===e?[t.min,t.max]:e,2);return[n[0],n[1]]},enumerable:!1,configurable:!0}),e.prototype.ifHorizontal=function(t,e){return Fu(this.attributes.orientation,"function"==typeof t?t():t,"function"==typeof e?e():e)},e.prototype.renderTitle=function(t){var e=this.attributes,n=e.showTitle,r=e.titleText,i=e.width,A=e.height,o=e.classNamePrefix,a=pl(this.attributes,"title"),s=(0,gi.Cl)((0,gi.Cl)({},a),{width:i,height:A,text:r,classNamePrefix:o}),l=this;t.selectAll(Xu.title.class).data(n?[r]:[]).join(function(t){return t.append(function(){return new bu({style:s})}).attr("className",Xu.title.name).each(function(){l.title=this})},function(t){return t.update(s)},function(t){return t.each(function(){l.title=void 0}).remove()})},Object.defineProperty(e.prototype,"availableSpace",{get:function(){if(this.title)return this.title.getAvailableSpace();var t=this.attributes;return new Kc(0,0,t.width,t.height)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"labelFixedSpacing",{get:function(){return this.attributes.showTick?5:0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"labelPosition",{get:function(){var t=this.attributes;return{vertical:{positive:"right",negative:"left"},horizontal:{positive:"bottom",negative:"top"}}[t.orientation][t.labelDirection]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"labelBBox",{get:function(){var t;if(!this.attributes.showLabel)return new Kc(0,0,0,0);if(this.cacheLabelBBox)return this.cacheLabelBBox;var e=(null===(t=this.label.querySelector(nl.labelGroup.class))||void 0===t?void 0:t.children.slice(-1)[0]).getBBox();return this.cacheLabelBBox=new Kc(0,0,e.width,e.height),this.cacheLabelBBox},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"labelShape",{get:function(){var t=this.attributes,e=t.labelSpacing,n=void 0===e?0:e;if(!t.showLabel)return{width:0,height:0,size:0,length:0};var r=this.labelBBox,i=r.width,A=r.height;return{width:i,height:A,size:this.ifHorizontal(A,i)+n+this.labelFixedSpacing,length:this.ifHorizontal(i,A)}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ribbonBBox",{get:function(){var t,e=this.attributes,n=e.showHandle,r=e.ribbonSize,i=this.availableSpace,A=i.width,o=i.height,a=this.labelShape,s=a.size,l=a.length,c=(0,gi.zs)(this.ifHorizontal([o,A],[A,o]),2),u=c[0],d=c[1],f=n?this.handleShape:{size:0,length:0},h=f.size,p=f.length,g=this.handleOffsetRatio,m=this.labelPosition;t=r||(["bottom","right"].includes(m)?Math.min(u-s,(u-h)/g):u*(1-g)>h?Math.max(u-s,0):Math.max((u-s-h)/g,0));var y=Math.max(p,l),v=d-y,b=(0,gi.zs)(this.ifHorizontal([v,t],[t,v]),2),w=b[0],B=b[1],x=["top","left"].includes(m)?s:0,C=(0,gi.zs)(this.ifHorizontal([y/2,x],[x,y/2]),2);return new Kc(C[0],C[1],w,B)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ribbonShape",{get:function(){var t=this.ribbonBBox,e=t.width,n=t.height;return this.ifHorizontal({size:n,length:e},{size:e,length:n})},enumerable:!1,configurable:!0}),e.prototype.renderRibbon=function(t){var e=this.attributes,n=e.data,r=e.type,i=e.orientation,A=e.color,o=e.block,a=e.classNamePrefix,s=pl(this.attributes,"ribbon"),l=this.range,c=l.min,u=l.max,d=this.ribbonBBox,f=d.y,h=this.ribbonShape,p=h.length,g=h.size,m=xi({transform:"translate(".concat(d.x,", ").concat(f,")"),length:p,size:g,type:r,orientation:i,color:A,block:o,partition:n.map(function(t){return(t.value-c)/(u-c)}),range:this.ribbonRange,classNamePrefix:a},s),y=hu(Xu.ribbon.name,"ribbon",a);this.ribbon=t.maybeAppendByClassName(Xu.ribbon,function(){return new Ah({style:m,className:y})}).update(m)},e.prototype.getHandleClassName=function(t){return"".concat(Xu.prefix("".concat(t,"-handle")))},e.prototype.renderHandles=function(){var t=this.attributes,e=t.showHandle,n=t.orientation,r=t.classNamePrefix,i=pl(this.attributes,"handle"),A=(0,gi.zs)(this.selection,2),o=A[0],a=A[1],s=(0,gi.Cl)((0,gi.Cl)({},i),{orientation:n,classNamePrefix:r}),l=i.shape,c="basic"===(void 0===l?"slider":l)?zu:Zf,u=this,d=hu(Xu.handle.name,"handle",r);this.handlesGroup.selectAll(Xu.handle.class).data(e?[{value:o,type:"start"},{value:a,type:"end"}]:[],function(t){return t.type}).join(function(t){return t.append(function(){return new c({style:s,className:d})}).attr("className",function(t){var e=t.type;return"".concat(d," ").concat(u.getHandleClassName(e))}).each(function(t){var e=t.type;this.update({labelText:t.value});var n="".concat(e,"Handle");u[n]=this,this.addEventListener("pointerdown",u.onDragStart(e))})},function(t){return t.update(s).each(function(t){this.update({labelText:t.value})})},function(t){return t.each(function(t){var e="".concat(t.type,"Handle");u[e]=void 0}).remove()})},e.prototype.adjustHandles=function(){var t=(0,gi.zs)(this.selection,2),e=t[1];this.setHandlePosition("start",t[0]),this.setHandlePosition("end",e);var n=this.attributes,r=n.classNamePrefix,i=n.showHandle,A=pl(this.attributes,"handle").shape;i&&"slider"===(void 0===A?"slider":A)&&r&&(this.startHandle&&this.updateSliderHandleClassNames(this.startHandle,r),this.endHandle&&this.updateSliderHandleClassNames(this.endHandle,r))},e.prototype.updateSliderHandleClassNames=function(t,e){var n=t.container||t,r=n.querySelector(".handle-icon-rect");if(r){var i=hu("handle-icon-rect",gu,e);r.setAttribute("class",i),r.querySelectorAll("line").forEach(function(t){var n=hu((t.getAttribute("class")||"").split(" ")[0],gu,e);t.setAttribute("class",n)})}var A=n.querySelector(".handle-label");if(A){var o=hu("handle-label",mu,e);A.setAttribute("class",o)}},Object.defineProperty(e.prototype,"handleBBox",{get:function(){if(this.cacheHandleBBox)return this.cacheHandleBBox;if(!this.attributes.showHandle)return new Kc(0,0,0,0);var t=this.startHandle.getBBox(),e=t.width,n=t.height,r=this.endHandle.getBBox(),i=r.height,A=(0,gi.zs)([Math.max(e,r.width),Math.max(n,i)],2);return this.cacheHandleBBox=new Kc(0,0,A[0],A[1]),this.cacheHandleBBox},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"handleShape",{get:function(){var t=this.handleBBox,e=t.width,n=t.height,r=(0,gi.zs)(this.ifHorizontal([n,e],[e,n]),2);return{width:e,height:n,size:r[0],length:r[1]}},enumerable:!1,configurable:!0}),e.prototype.setHandlePosition=function(t,e){var n=this.attributes.handleFormatter,r=this.ribbonBBox,i=r.x,A=r.y,o=this.ribbonShape.size,a=this.getOffset(e),s=(0,gi.zs)(this.ifHorizontal([i+a,A+o*this.handleOffsetRatio],[i+o*this.handleOffsetRatio,A+a]),2),l=s[0],c=s[1],u=this.handlesGroup.select(".".concat(this.getHandleClassName(t))).node();null==u||u.update({transform:"translate(".concat(l,", ").concat(c,")"),formatter:n})},e.prototype.renderIndicator=function(t){var e=this.attributes.classNamePrefix,n=pl(this.attributes,"indicator"),r=hu(Xu.indicator.name,"indicator",e);this.indicator=t.maybeAppendByClassName(Xu.indicator,function(){return new Gf({style:n,className:r})}).update(n)},Object.defineProperty(e.prototype,"labelData",{get:function(){var t=this;return this.attributes.data.reduce(function(e,n,r,i){var A,o,a=null!==(A=null==n?void 0:n.id)&&void 0!==A?A:r.toString();if(e.push((0,gi.Cl)((0,gi.Cl)({},n),{id:a,index:r,type:"value",label:null!==(o=null==n?void 0:n.label)&&void 0!==o?o:n.value.toString(),value:t.ribbonScale.map(n.value)})),r<i.length-1){var s=(0,gi.zs)([n.value,i[r+1].value],2),l=s[0],c=s[1],u=(l+c)/2;e.push((0,gi.Cl)((0,gi.Cl)({},n),{id:a,index:r,type:"range",range:[l,c],label:[l,c].join("~"),value:t.ribbonScale.map(u)}))}return e},[])},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"labelStyle",{get:function(){var t=(0,gi.zs)(["center","middle"],2),e=t[0],n=t[1],r=this.labelPosition;return"top"===r?n="bottom":"bottom"===r?n="top":"left"===r?e="end":"right"===r&&(e="start"),{labelTextAlign:e,labelTextBaseline:n}},enumerable:!1,configurable:!0}),e.prototype.renderLabel=function(t){var e=this.attributes,n=e.showTick,r=void 0!==n&&n,i=e.labelFilter,A=e.labelFormatter,o=pl(this.attributes,"tick"),a=pl(this.attributes,"label"),s=a.align,l=xi((0,gi.Cl)({showLine:!1,showGrid:!1,showTick:r,type:"linear",startPos:[0,0],endPos:[0,0],tickDirection:"negative",labelTransform:"rotate(0)"},this.labelStyle),gl(o,"tick"),gl(a,"label"),{data:this.labelData}),c={tickFilter:function(t,e,n){return"value"===(null==t?void 0:t.type)&&(!i||i(t,t.index,n.filter(function(t){return"value"!==t.type})))},labelFilter:function(t,e,n){return(null==t?void 0:t.type)===s&&(!i||i(t,t.index,n.filter(function(t){return t.type===s})))},labelFormatter:A},u=(0,gi.Cl)((0,gi.Cl)((0,gi.Cl)({},l),c),{labelOverlap:[{type:"hide"}]});this.label=t.maybeAppendByClassName(Xu.label,function(){return new jc({style:u})}).node(),this.label.update(u,!1)},Object.defineProperty(e.prototype,"labelAxisStyle",{get:function(){var t=this.attributes,e=t.showTick,n=t.labelDirection,r=t.labelSpacing,i=t.tickLength,A=this.ribbonShape.size,o=this.labelPosition,a=this.labelFixedSpacing,s=(0,gi.zs)([0,0,0],3),l=s[0],c=s[1],u=s[2],d=null!=i?i:A;return e?(u=d,c=a,"positive"===n?"right"===o?(l=d,u=d):"bottom"===o&&(l=u):"negative"===n&&("top"===o||"left"===o)&&(l=A)):"positive"===n?"right"===o?c=d:"bottom"===o&&(l=A+a,c=r):"negative"===n&&("left"===o||"top"===o)&&(c=r),{offset:l,spacing:c,tickLength:u}},enumerable:!1,configurable:!0}),e.prototype.adjustLabel=function(){if(this.attributes.showLabel){var t=this.ribbonBBox,e=t.x,n=t.y,r=this.labelAxisStyle,i=r.offset,A=r.spacing,o=r.tickLength,a=(0,gi.zs)(this.ifHorizontal([[e,n+i],[e+t.width,n+i]],[[e+i,n+t.height],[e+i,n]]),2);this.label.update({startPos:a[0],endPos:a[1],tickLength:o,labelSpacing:A},!1)}},e.prototype.bindEvents=function(){this.style.cursor="pointer",this.ribbon.on("pointerdown",this.onDragStart("ribbon")),this.ribbon.on("pointermove",this.onHovering),this.addEventListener("pointerout",this.hideIndicator)},e.prototype.showIndicator=function(t,e){if(void 0===e&&(e="".concat(t)),this.attributes.showIndicator&&"number"==typeof t){var n=this.range,r=this.ribbonBBox,i=r.x,A=r.y,o=(0,xu.A)(t,n.min,n.max),a=this.getOffset(o),s=this.ifHorizontal([a+i,A],[i,a+A]);this.indicator.update({x:s[0],y:s[1],position:this.ifHorizontal("top","left"),labelText:e}),vi(this.indicator.node())}else this.hideIndicator()},e.prototype.hideIndicator=function(){bi(this.indicator.node())},e.prototype.updateMouse=function(){this.attributes.slidable&&(this.style.cursor="grabbing")},e.prototype.setSelection=function(t,e){this.updateSelection(t,e)},e.prototype.updateSelection=function(t,e,n){var r;void 0===n&&(n=!1);var i=(0,gi.zs)(this.selection,2),A=i[0],o=i[1],a=(0,gi.zs)([t,e],2),s=a[0],l=a[1];n&&(s+=A,l+=o);var c=this.range;r=(0,gi.zs)(function(t,e,n,r){var i;void 0===r&&(r=4);var A=(0,gi.zs)(t,2),o=A[0],a=A[1],s=(0,gi.zs)(e,2),l=s[0],c=s[1],u=(0,gi.zs)(n,2),d=u[0],f=u[1],h=(0,gi.zs)([l,c],2),p=h[0],g=h[1],m=g-p;return p>g&&(p=(i=(0,gi.zs)([g,p],2))[0],g=i[1]),m>a-o?[o,a]:p<o?d===o&&f===g?[o,g]:[o,m+o]:g>a?f===a&&d===p?[p,a]:[a-m,a]:[p,g]}([c.min,c.max],[s,l],this.selection),2),this.update({defaultValue:[s=r[0],l=r[1]]}),this.dispatchSelection()},Object.defineProperty(e.prototype,"step",{get:function(){var t=this.attributes.step,e=void 0===t?1:t,n=this.range,r=n.min,i=n.max;return(0,pe.A)(e)?Df(.01*(i-r),0):e},enumerable:!1,configurable:!0}),e.prototype.getTickValue=function(t){var e=this.attributes,n=this.range.min;return e.block?Jf(e.data.map(function(t){return t.value}),t).tick:function(t,e,n){return n+Math.round((t-n)/e)*e}(t,this.step,n)},e.prototype.getValueByCanvasPoint=function(t){var e=this.range,n=e.min,r=e.max,i=(0,gi.zs)(this.ribbon.node().getPosition(),2),A=this.ifHorizontal(i[0],i[1]),o=this.ifHorizontal.apply(this,(0,gi.fX)([],(0,gi.zs)(Rf(t)),!1));return(0,xu.A)(this.getOffset(o-A,!0),n,r)},e.prototype.getOffset=function(t,e){void 0===e&&(e=!1);var n=this.range,r=this.eventToOffsetScale;return r.update({domain:[n.min,n.max],range:[0,this.ribbonShape.length]}),e?r.invert(t):r.map(t)},e.prototype.getRealSelection=function(t){var e=this.range.max,n=(0,gi.zs)(t,2),r=n[0],i=n[1];return this.ifHorizontal([r,i],[e-i,e-r])},e.prototype.getRealValue=function(t){return this.ifHorizontal(t,this.range.max-t)},e.prototype.dispatchSelection=function(){var t=this.getRealSelection(this.selection),e=new $.up("valuechange",{detail:{value:t}});this.dispatchEvent(e)},e.prototype.dispatchIndicated=function(t,e){var n=this,r=this.range.max,i=this.ifHorizontal(function(){return{value:t,range:e}},function(){return{value:r-t,range:e?n.getRealSelection(e):void 0}}),A=new $.up("indicate",{detail:i});this.dispatchEvent(A)},e}(ki);function ah(t){const{domain:e}=t.getOptions(),[n,r]=[e[0],Fe(e)];return[n,r]}function sh(t,e,n,r,i,A){const o=Jc(t,"color"),a=function(t,e,n){const{size:r}=e,i=eu(t,e,n);return function(t,e,n){return t.size=e,function(t){return"horizontal"===t||0===t}(n)?t.height=e:t.width=e,t}(i,r,i.orientation)}(n,r,i);if(o instanceof us){const{range:t}=o.getOptions(),[e,n]=ah(o);return o instanceof gs||o instanceof hs?function(t,e,n,r,i){const A=e.thresholds,o=function(t){return e=>({value:e/t,label:String(e),domainValue:e})}(r);return Object.assign(Object.assign({},t),{color:i,data:[n,...A,r].map(o)})}(a,o,e,n,t):function(t,e,n){const r=[-1/0,...e.thresholds,1/0].map((t,e)=>({value:e,domainValue:t,label:t}));return Object.assign(Object.assign({},t),{data:r,color:n,labelFilter:(t,e)=>e>0&&e<r.length-1})}(a,o,t)}return function(t,e,n,r,i,A){const{length:o}=t,a=i.color?A.legendContinuous.ribbonFill||"black":A.color,s=e||function(t,e){const n=t.getOptions(),r=t.clone();return r.update(Object.assign(Object.assign({},n),{range:[(0,$.H0)(e).toString()]})),r}(n||r,a),[l,c]=ah(s),[u,d]=ah([e,n,r].filter(t=>void 0!==t).find(t=>!(t instanceof kt)));return Object.assign(Object.assign({},t),{domain:[u,d],data:s.getTicks().map(t=>({value:t})),color:new Array(Math.floor(o)).fill(0).map((t,e)=>{const n=(c-l)/(o-1)*e+l,i=s.map(n)||a,A=r?r.map(n):1;return i.replace(/rgb[a]*\(([\d]{1,3}) *, *([\d]{1,3}) *, *([\d]{1,3})[\S\s]*\)/,(t,e,n,r)=>`rgba(${e}, ${n}, ${r}, ${A})`)})})}(a,o,Jc(t,"size"),Jc(t,"opacity"),e,A)}const lh=t=>{const{labelFormatter:e,layout:n,position:r,title:i,style:A}=t,o=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n}(t,["labelFormatter","layout","order","orientation","position","size","title","style","crossPadding","padding"]);return({scales:a,value:s,theme:l,scale:c})=>{const{bbox:u}=s,{x:d,y:f,width:h,height:p}=u,g=$c(r,n),{legendContinuous:m={}}=l,y=nu(Object.assign({},m,Object.assign(Object.assign(Object.assign({titleText:Yc(i),labelAlign:"value",labelFormatter:"string"==typeof e?t=>(0,Rc.GP)(e)(t.label):e},sh(a,c,s,t,lh,l)),A),{classNamePrefix:"g2-"}),o)),v=new qc({style:Object.assign(Object.assign({x:d,y:f,width:h,height:p},g),{subOptions:y})});return v.appendChild(new oh({className:"legend-continuous",style:y})),v}};lh.props={defaultPosition:"top",defaultOrientation:"vertical",defaultOrder:1,defaultSize:60,defaultLength:200,defaultLegendSize:60,defaultPadding:[20,10],defaultCrossPadding:[12,12]};const ch=t=>()=>new $.YJ;ch.props={};function uh(t,e,n,r){switch(r){case"center":return{x:t+n/2,y:e,textAlign:"middle"};case"right":return{x:t+n,y:e,textAlign:"right"};default:return{x:t,y:e,textAlign:"left"}}}const dh=(fh={render(t,e){const{width:n,title:r,subtitle:i,spacing:A=2,align:o="left",x:a,y:s}=t,l=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n}(t,["width","title","subtitle","spacing","align","x","y"]);e.style.transform=`translate(${a}, ${s})`;const c=Pt(l,"title"),u=Pt(l,"subtitle"),d=Xc(e,".title","text").attr("className","title").call(Ue,Object.assign(Object.assign(Object.assign({},uh(0,0,n,o)),{fontSize:14,textBaseline:"top",text:r}),c)).node().getLocalBounds();Xc(e,".sub-title","text").attr("className","sub-title").call(t=>{if(!i)return t.node().remove();t.node().attr(Object.assign(Object.assign(Object.assign({},uh(0,d.max[1]+A,n,o)),{fontSize:12,textBaseline:"top",text:i}),u))})}},class extends $.K9{constructor(t){super(t),this.descriptor=fh}connectedCallback(){var t,e;null===(e=(t=this.descriptor).render)||void 0===e||e.call(t,this.attributes,this)}update(t={}){var e,n;this.attr(Q({},this.attributes,t)),null===(n=(e=this.descriptor).render)||void 0===n||n.call(e,this.attributes,this)}});var fh;const hh=t=>({value:e,theme:n})=>{const{x:r,y:i,width:A,height:o}=e.bbox;return new dh({style:Q({},n.title,Object.assign({x:r,y:i,width:A,height:o},t))})};function ph({map:t,initKey:e},n){const r=e(n);return t.has(r)?t.get(r):n}function gh(t){return"object"==typeof t?t.valueOf():t}hh.props={defaultPosition:"top",defaultOrder:2,defaultSize:36,defaultCrossPadding:[20,20],defaultPadding:[12,12]};class mh extends Map{constructor(t){if(super(),this.map=new Map,this.initKey=gh,null!==t)for(const[e,n]of t)this.set(e,n)}get(t){return super.get(ph({map:this.map,initKey:this.initKey},t))}has(t){return super.has(ph({map:this.map,initKey:this.initKey},t))}set(t,e){return super.set(function({map:t,initKey:e},n){const r=e(n);return t.has(r)?t.get(r):(t.set(r,n),n)}({map:this.map,initKey:this.initKey},t),e)}delete(t){return super.delete(function({map:t,initKey:e},n){const r=e(n);return t.has(r)&&(n=t.get(r),t.delete(r)),n}({map:this.map,initKey:this.initKey},t))}}const yh=Symbol("defaultUnknown");function vh(t,e,n){for(let r=0;r<e.length;r+=1)t.has(e[r])||t.set(n(e[r]),r)}function bh(t){const{value:e,from:n,to:r,mapper:i,notFoundReturn:A}=t;let o=i.get(e);if(void 0===o){if(A!==yh)return A;o=n.push(e)-1,i.set(e,o)}return r[o%r.length]}function wh(t){return t instanceof Date?t=>`${t}`:"object"==typeof t?t=>JSON.stringify(t):t=>t}class Bh extends wf{getDefaultOptions(){return{domain:[],range:[],unknown:yh}}constructor(t){super(t)}map(t){return 0===this.domainIndexMap.size&&vh(this.domainIndexMap,this.getDomain(),this.domainKey),bh({value:this.domainKey(t),mapper:this.domainIndexMap,from:this.getDomain(),to:this.getRange(),notFoundReturn:this.options.unknown})}invert(t){return 0===this.rangeIndexMap.size&&vh(this.rangeIndexMap,this.getRange(),this.rangeKey),bh({value:this.rangeKey(t),mapper:this.rangeIndexMap,from:this.getRange(),to:this.getDomain(),notFoundReturn:this.options.unknown})}rescale(t){const[e]=this.options.domain,[n]=this.options.range;if(this.domainKey=wh(e),this.rangeKey=wh(n),!this.rangeIndexMap)return this.rangeIndexMap=new Map,void(this.domainIndexMap=new Map);t&&!t.range||this.rangeIndexMap.clear(),(!t||t.domain||t.compare)&&(this.domainIndexMap.clear(),this.sortedDomain=void 0)}clone(){return new Bh(this.options)}getRange(){return this.options.range}getDomain(){if(this.sortedDomain)return this.sortedDomain;const{domain:t,compare:e}=this.options;return this.sortedDomain=e?[...t].sort(e):t,this.sortedDomain}}function xh(t){return Math.round(1e12*t)/1e12}class Ch extends Bh{getDefaultOptions(){return{domain:[],range:[0,1],align:.5,round:!1,paddingInner:0,paddingOuter:0,padding:0,unknown:yh,flex:[]}}constructor(t){super(t)}clone(){return new Ch(this.options)}getStep(t){return void 0===this.valueStep?1:"number"==typeof this.valueStep?this.valueStep:void 0===t?Array.from(this.valueStep.values())[0]:this.valueStep.get(t)}getBandWidth(t){return void 0===this.valueBandWidth?1:"number"==typeof this.valueBandWidth?this.valueBandWidth:void 0===t?Array.from(this.valueBandWidth.values())[0]:this.valueBandWidth.get(t)}getRange(){return this.adjustedRange}getPaddingInner(){const{padding:t,paddingInner:e}=this.options;return t>0?t:e}getPaddingOuter(){const{padding:t,paddingOuter:e}=this.options;return t>0?t:e}rescale(){super.rescale();const{align:t,domain:e,range:n,round:r,flex:i}=this.options,{adjustedRange:A,valueBandWidth:o,valueStep:a}=function(t){var e;const{domain:n}=t,r=n.length;if(0===r)return{valueBandWidth:void 0,valueStep:void 0,adjustedRange:[]};if(null===(e=t.flex)||void 0===e?void 0:e.length)return function(t){const{domain:e,range:n,paddingOuter:r,paddingInner:i,flex:A,round:o,align:a}=t,s=e.length,l=function(t,e){const n=e-t.length;return n>0?[...t,...new Array(n).fill(1)]:n<0?t.slice(0,e):t}(A,s),[c,u]=n,d=u-c,f=d/(2/s*r+1-1/s*i),h=f*i/s,p=f-s*h,g=function(t){const e=Math.min(...t);return t.map(t=>t/e)}(l),m=g.reduce((t,e)=>t+e),y=p/m,v=new mh(e.map((t,e)=>{const n=g[e]*y;return[t,o?Math.floor(n):n]})),b=new mh(e.map((t,e)=>{const n=g[e]*y+h;return[t,o?Math.floor(n):n]})),w=Array.from(b.values()).reduce((t,e)=>t+e),B=c+(d-(w-w/s*i))*a;let x=o?Math.round(B):B;const C=new Array(s);for(let t=0;t<s;t+=1)C[t]=xh(x),x+=b.get(e[t]);return{valueBandWidth:v,valueStep:b,adjustedRange:C}}(t);const{range:i,paddingOuter:A,paddingInner:o,round:a,align:s}=t;let l,c,u=i[0];const d=i[1]-u;l=d/Math.max(1,2*A+(r-o)),a&&(l=Math.floor(l)),u+=(d-l*(r-o))*s,c=l*(1-o),a&&(u=Math.round(u),c=Math.round(c));const f=new Array(r).fill(0).map((t,e)=>u+e*l);return{valueStep:l,valueBandWidth:c,adjustedRange:f}}({align:t,range:n,round:r,flex:i,paddingInner:this.getPaddingInner(),paddingOuter:this.getPaddingOuter(),domain:e});this.valueStep=a,this.valueBandWidth=o,this.adjustedRange=A}}var Eh=function(t){if("object"!=typeof t||null===t)return t;var e;if((0,x.A)(t)){e=[];for(var n=0,r=t.length;n<r;n++)e[n]="object"==typeof t[n]&&null!=t[n]?Eh(t[n]):t[n]}else for(var i in e={},t)e[i]="object"==typeof t[i]&&null!=t[i]?Eh(t[i]):t[i];return e};const Oh=Eh;var kh=function(t){function e(e){var n=this,r=e.style,i=(0,gi.Tt)(e,["style"]);return(n=t.call(this,Q({},{type:"column"},(0,gi.Cl)({style:r},i)))||this).columnsGroup=new $.YJ({name:"columns"}),n.appendChild(n.columnsGroup),n.render(),n}return(0,gi.C6)(e,t),e.prototype.render=function(){var t=this.attributes,e=t.columns,n=t.y;this.columnsGroup.style.transform="translate(".concat(t.x,", ").concat(n,")"),Ui(this.columnsGroup).selectAll(".column").data(e.flat()).join(function(t){return t.append("rect").attr("className","column").each(function(t){this.attr(t)})},function(t){return t.each(function(t){this.attr(t)})},function(t){return t.remove()})},e.prototype.update=function(t){this.attr(xi({},this.attributes,t)),this.render()},e.prototype.clear=function(){this.removeChildren()},e}($.q9),Fh=function(t){function e(e){var n=this,r=e.style,i=(0,gi.Tt)(e,["style"]);return(n=t.call(this,Q({},{type:"lines"},(0,gi.Cl)({style:r},i)))||this).linesGroup=n.appendChild(new $.YJ),n.areasGroup=n.appendChild(new $.YJ),n.render(),n}return(0,gi.C6)(e,t),e.prototype.render=function(){var t=this.attributes,e=t.lines,n=t.areas,r=t.y;this.style.transform="translate(".concat(t.x,", ").concat(r,")"),e&&this.renderLines(e),n&&this.renderAreas(n)},e.prototype.clear=function(){this.linesGroup.removeChildren(),this.areasGroup.removeChildren()},e.prototype.update=function(t){this.attr(xi({},this.attributes,t)),this.render()},e.prototype.renderLines=function(t){Ui(this.linesGroup).selectAll(".line").data(t).join(function(t){return t.append("path").attr("className","line").each(function(t){this.attr(t)})},function(t){return t.each(function(t){this.attr(t)})},function(t){return t.remove()})},e.prototype.renderAreas=function(t){Ui(this.linesGroup).selectAll(".area").data(t).join(function(t){return t.append("path").attr("className","area").each(function(t){this.attr(t)})},function(t){return t.each(function(t){this.style(t)})},function(t){return t.remove()})},e}($.q9),Qh=function(t,e){if(t===e)return!0;if(!t||!e)return!1;if((0,Hi.A)(t)||(0,Hi.A)(e))return!1;if(ne(t)||ne(e)){if(t.length!==e.length)return!1;for(var n=!0,r=0;r<t.length&&(n=Qh(t[r],e[r]));r++);return n}if(C(t)||C(e)){var i=Object.keys(t),A=Object.keys(e);if(i.length!==A.length)return!1;for(n=!0,r=0;r<i.length&&(n=Qh(t[i[r]],e[i[r]]));r++);return n}return!1};const Mh=Qh;function Uh(t,e){void 0===e&&(e=!1);var n=e?t.length-1:0,r=t.map(function(t,e){return(0,gi.fX)([e===n?"M":"L"],(0,gi.zs)(t),!1)});return e?r.reverse():r}function Sh(t,e){if(void 0===e&&(e=!1),t.length<=2)return Uh(t);for(var n=[],r=t.length,i=0;i<r;i+=1){var A=e?t[r-i-1]:t[i];Mh(A,n.slice(-2))||n.push.apply(n,(0,gi.fX)([],(0,gi.zs)(A),!1))}var o=function(t,e,n){var r;void 0===e&&(e=!1),void 0===n&&(n=[[0,0],[1,1]]);for(var i=!!e,A=[],o=0,a=t.length;o<a;o+=2)A.push([t[o],t[o+1]]);var s,l,c,u=function(t,e,n,r){var i,A,o,a,s,l,c=[],u=!!r,d=[1/0,1/0],f=[-1/0,-1/0];if(u){d=(i=(0,gi.zs)(r,2))[0],f=i[1];for(var h=0,p=t.length;h<p;h+=1)d=ol(d,m=t[h]),f=al(f,m)}h=0;for(var g=t.length;h<g;h+=1){var m=t[h];if(0!==h||n)if(h!==g-1||n){var y=[0,0];y=rl(y=Al(o=t[n?(h+1)%g:h+1],A=t[[h?h-1:g-1,h-1][n?0:1]]),.4);var v=sl(m,A),b=sl(m,o),w=v+b;0!==w&&(v/=w,b/=w);var B=rl(y,-v),x=rl(y,b);s=il(m,B),a=ol(a=il(m,x),al(o,m)),a=al(a,ol(o,m)),s=ol(s=il(m,B=rl(B=Al(a,m),-v/b)),al(A,m)),a=il(m,x=rl(x=Al(m,s=al(s,ol(A,m))),b/v)),u&&(s=ol(s=al(s,d),f),a=ol(a=al(a,d),f)),c.push(l),c.push(s),l=a}else s=m,c.push(l),c.push(s);else l=m}return n&&c.push(c.shift()),c}(A,0,i,n),d=A.length,f=[];for(o=0;o<d-1;o+=1)f.push(["C",(s=u[2*o])[0],s[1],(l=u[2*o+1])[0],l[1],(c=A[o+1])[0],c[1]]);return i&&(s=u[d],l=u[d+1],r=(0,gi.zs)(A,1),f.push(["C",s[0],s[1],l[0],l[1],(c=r[0])[0],c[1]])),f}(n,!1);return o.unshift((0,gi.fX)(["M"],(0,gi.zs)(e?t[r-1]:t[0]),!1)),o}function _h(t,e,n){var r=Oh(t);return r.push(["L",e,n],["L",0,n],["Z"]),r}var Ih=n("./node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/esm/lodash/min.js");const Th=function(t,e){if((0,x.A)(t)){for(var n,r=1/0,i=0;i<t.length;i++){var A=t[i],o=(0,mi.A)(e)?e(A):A[e];o<r&&(n=A,r=o)}return n}};var Lh=n("./node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/esm/lodash/max.js");const Ph=function(t,e){if((0,x.A)(t)){for(var n,r=-1/0,i=0;i<t.length;i++){var A=t[i],o=(0,mi.A)(e)?e(A):A[e];o>r&&(n=A,r=o)}return n}};function jh(t){return 0===t.length?[0,0]:[(0,Ih.A)(Th(t,function(t){return(0,Ih.A)(t)||0})),(0,Lh.A)(Ph(t,function(t){return(0,Lh.A)(t)||0}))]}function Hh(t){for(var e=Oh(t),n=e[0].length,r=(0,gi.zs)([Array(n).fill(0),Array(n).fill(0)],2),i=r[0],A=r[1],o=0;o<e.length;o+=1)for(var a=e[o],s=0;s<n;s+=1)a[s]>=0?(a[s]+=i[s],i[s]=a[s]):(a[s]+=A[s],A[s]=a[s]);return e}var Nh=function(t){function e(e){return t.call(this,e,{type:"line",x:0,y:0,width:200,height:20,isStack:!1,color:["#83daad","#edbf45","#d2cef9","#e290b3","#6f63f4"],smooth:!0,lineLineWidth:1,areaOpacity:0,isGroup:!1,columnLineWidth:1,columnStroke:"#fff",scale:1,spacing:0})||this}return(0,gi.C6)(e,t),Object.defineProperty(e.prototype,"rawData",{get:function(){var t=this.attributes.data;if(!t||0===(null==t?void 0:t.length))return[[]];var e=Oh(t);return(0,bt.A)(e[0])?[e]:e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"data",{get:function(){return this.attributes.isStack?Hh(this.rawData):this.rawData},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"scales",{get:function(){return this.createScales(this.data)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"baseline",{get:function(){var t=this.scales.y,e=(0,gi.zs)(t.getOptions().domain||[0,0],2),n=e[0],r=e[1];return t.map(r<0?r:n<0?0:n)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"containerShape",{get:function(){var t=this.attributes;return{width:t.width,height:t.height}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"linesStyle",{get:function(){var t=this,e=this.attributes,n=e.isStack,r=e.smooth;if("line"!==e.type)throw new Error("linesStyle can only be used in line type");var i=pl(this.attributes,"area"),A=pl(this.attributes,"line"),o=this.containerShape.width,a=this.data;if(0===a[0].length)return{lines:[],areas:[]};var s=this.scales,l=function(t,e){var n,r=e.x,i=e.y,A=(0,gi.zs)(i.getOptions().range||[0,0],2),o=A[0],a=A[1];return a>o&&(n=(0,gi.zs)([o,a],2),a=n[0],o=n[1]),t.map(function(t){return t.map(function(t,e){return[r.map(e),(0,xu.A)(i.map(t),a,o)]})})}(a,{type:"line",x:s.x,y:s.y}),c=[];if(i){var u=this.baseline;c=n?r?function(t,e,n){for(var r=[],i=t.length-1;i>=0;i-=1){var A=t[i],o=Sh(A),a=void 0;if(0===i)a=_h(o,e,n);else{var s=Sh(t[i-1],!0),l=A[0];s[0][0]="L",a=(0,gi.fX)((0,gi.fX)((0,gi.fX)([],(0,gi.zs)(o),!1),(0,gi.zs)(s),!1),[(0,gi.fX)(["M"],(0,gi.zs)(l),!1),["Z"]],!1)}r.push(a)}return r}(l,o,u):function(t,e,n){for(var r=[],i=t.length-1;i>=0;i-=1){var A=Uh(t[i]),o=void 0;if(0===i)o=_h(A,e,n);else{var a=Uh(t[i-1],!0);a[0][0]="L",o=(0,gi.fX)((0,gi.fX)((0,gi.fX)([],(0,gi.zs)(A),!1),(0,gi.zs)(a),!1),[["Z"]],!1)}r.push(o)}return r}(l,o,u):function(t,e,n,r){return t.map(function(t){return _h(e?Sh(t):Uh(t),n,r)})}(l,r,o,u)}return{lines:l.map(function(e,n){return(0,gi.Cl)({stroke:t.getColor(n),d:r?Sh(e):Uh(e)},A)}),areas:c.map(function(e,n){return(0,gi.Cl)({d:e,fill:t.getColor(n)},i)})}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"columnsStyle",{get:function(){var t=this,e=pl(this.attributes,"column"),n=this.attributes,r=n.isStack,i=n.scale;if("column"!==n.type)throw new Error("columnsStyle can only be used in column type");var A=this.containerShape.height,o=this.rawData;if(!o)return{columns:[]};r&&(o=Hh(o));var a=this.createScales(o),s=a.x,l=a.y,c=(0,gi.zs)(jh(o),2),u=c[0],d=new Nf({domain:[0,c[1]-(u>0?0:u)],range:[0,A*i]}),f=s.getBandWidth(),h=this.rawData;return{columns:o.map(function(n,i){return n.map(function(n,A){var a=f/o.length;return(0,gi.Cl)((0,gi.Cl)({fill:t.getColor(i)},e),r?{x:s.map(A),y:l.map(n),width:f,height:d.map(h[i][A])}:{x:s.map(A)+a*i,y:l.map(n>=0?n:0),width:a,height:d.map(Math.abs(n))})})})}},enumerable:!1,configurable:!0}),e.prototype.render=function(t,e){var n,r;(n=e,r=".container",n.querySelector(r)?Ui(n).select(r):Ui(n).append("rect")).attr("className","container").node();var i=t.type,A=t.x,o=t.y,a="spark".concat(i),s=(0,gi.Cl)({x:A,y:o},"line"===i?this.linesStyle:this.columnsStyle);Ui(e).selectAll(".spark").data([i]).join(function(t){return t.append(function(t){return"line"===t?new Fh({className:a,style:s}):new kh({className:a,style:s})}).attr("className","spark ".concat(a))},function(t){return t.update(s)},function(t){return t.remove()})},e.prototype.getColor=function(t){var e=this.attributes.color;return(0,x.A)(e)?e[t%e.length]:(0,mi.A)(e)?e.call(null,t):e},e.prototype.createScales=function(t){var e,n,r=this.attributes,i=r.type,A=r.scale,o=r.range,a=void 0===o?[]:o,s=r.spacing,l=this.containerShape,c=l.width,u=l.height,d=(0,gi.zs)(jh(t),2),f=new Nf({domain:[null!==(e=a[0])&&void 0!==e?e:d[0],null!==(n=a[1])&&void 0!==n?n:d[1]],range:[u,u*(1-A)]});return"line"===i?{type:i,x:new Nf({domain:[0,t[0].length-1],range:[0,c]}),y:f}:{type:i,x:new Ch({domain:t[0].map(function(t,e){return e}),range:[0,c],paddingInner:s,paddingOuter:s/2,align:.5}),y:f}},e.tag="sparkline",e}(ki),Dh=function(t){function e(e){var n=t.call(this,e,(0,gi.Cl)((0,gi.Cl)((0,gi.Cl)({x:0,y:0,animate:{duration:100,fill:"both"},brushable:!0,formatter:function(t){return t.toString()},handleSpacing:2,orientation:"horizontal",padding:0,autoFitLabel:!0,scrollable:!0,selectionFill:"#5B8FF9",selectionFillOpacity:.45,selectionZIndex:2,showHandle:!0,showLabel:!0,slidable:!0,trackFill:"#416180",trackLength:200,trackOpacity:.05,trackSize:20,trackZIndex:-1,values:[0,1],type:"range",selectionType:"select",handleIconOffset:0},gl(Xf,"handle")),gl(Vf,"handleIcon")),gl(Wf,"handleLabel")))||this;return n.range=[0,1],n.onDragStart=function(t){return function(e){e.stopPropagation(),n.target=t,n.prevPos=n.getOrientVal(Rf(e));var r=n.availableSpace,i=r.x,A=r.y,o=n.getBBox(),a=o.x,s=o.y;n.selectionStartPos=n.getRatio(n.prevPos-n.getOrientVal([i,A])-n.getOrientVal([+a,+s])),n.selectionWidth=0,document.addEventListener("pointermove",n.onDragging),document.addEventListener("pointerup",n.onDragEnd)}},n.onDragging=function(t){var e=n.attributes,r=e.slidable,i=e.brushable,A=e.type;t.stopPropagation();var o=n.getOrientVal(Rf(t)),a=o-n.prevPos;if(a){var s=n.getRatio(a);switch(n.target){case"start":r&&n.setValuesOffset(s);break;case"end":r&&n.setValuesOffset(0,s);break;case"selection":r&&n.setValuesOffset(s,s);break;case"track":if(!i)return;n.selectionWidth+=s,n.innerSetValues("range"===A?[n.selectionStartPos,n.selectionStartPos+n.selectionWidth].sort():[0,n.selectionStartPos+n.selectionWidth],!0)}n.prevPos=o}},n.onDragEnd=function(){document.removeEventListener("pointermove",n.onDragging),document.removeEventListener("pointermove",n.onDragging),document.removeEventListener("pointerup",n.onDragEnd),n.target="",n.updateHandlesPosition(!1)},n.onValueChange=function(t){var e=n.attributes,r=e.onChange,i=e.type,A="range"===i?t:t[1],o="range"===i?n.getValues():n.getValues()[1],a=new $.up("valuechange",{detail:{oldValue:A,value:o}});n.dispatchEvent(a),null==r||r(o)},n.selectionStartPos=0,n.selectionWidth=0,n.prevPos=0,n.target="",n}return(0,gi.C6)(e,t),Object.defineProperty(e.prototype,"values",{get:function(){return this.attributes.values},set:function(t){this.attributes.values=this.clampValues(t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"sparklineStyle",{get:function(){if("horizontal"!==this.attributes.orientation)return null;var t=pl(this.attributes,"sparkline");return(0,gi.Cl)((0,gi.Cl)({zIndex:0},this.availableSpace),t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"shape",{get:function(){var t=this.attributes,e=t.trackLength,n=t.trackSize,r=(0,gi.zs)(this.getOrientVal([[e,n],[n,e]]),2);return{width:r[0],height:r[1]}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"availableSpace",{get:function(){var t=(0,gi.zs)(lc(this.attributes.padding),4),e=t[0],n=t[3],r=this.shape;return{x:n,y:e,width:r.width-(n+t[1]),height:r.height-(e+t[2])}},enumerable:!1,configurable:!0}),e.prototype.getValues=function(){return this.values},e.prototype.setValues=function(t,e){void 0===t&&(t=[0,0]),void 0===e&&(e=!1),this.attributes.values=t;var n=!1!==e&&this.attributes.animate;this.updateSelectionArea(n),this.updateHandlesPosition(n)},e.prototype.updateSelectionArea=function(t){var e=this.calcSelectionArea();this.foregroundGroup.selectAll(Yf.selection.class).each(function(n,r){js(this,e[r],t)})},e.prototype.updateHandlesPosition=function(t){this.attributes.showHandle&&(this.startHandle&&js(this.startHandle,this.getHandleStyle("start"),t),this.endHandle&&js(this.endHandle,this.getHandleStyle("end"),t))},e.prototype.innerSetValues=function(t,e){void 0===t&&(t=[0,0]),void 0===e&&(e=!1);var n=this.values,r=this.clampValues(t);this.attributes.values=r,this.setValues(r),e&&this.onValueChange(n)},e.prototype.renderTrack=function(t){var e=this.attributes,n=e.x,r=e.y,i=pl(this.attributes,"track");this.trackShape=Ui(t).maybeAppendByClassName(Yf.track,"rect").styles((0,gi.Cl)((0,gi.Cl)({x:n,y:r},this.shape),i))},e.prototype.renderBrushArea=function(t){var e=this.attributes,n=e.x,r=e.y,i=e.brushable;this.brushArea=Ui(t).maybeAppendByClassName(Yf.brushArea,"rect").styles((0,gi.Cl)({x:n,y:r,fill:"transparent",cursor:i?"crosshair":"default"},this.shape))},e.prototype.renderSparkline=function(t){var e=this,n=this.attributes,r=n.x,i=n.y;Fi("horizontal"===n.orientation,Ui(t).maybeAppendByClassName(Yf.sparklineGroup,"g"),function(t){var n=(0,gi.Cl)((0,gi.Cl)({},e.sparklineStyle),{x:r,y:i});t.maybeAppendByClassName(Yf.sparkline,function(){return new Nh({style:n})}).update(n)})},e.prototype.renderHandles=function(){var t,e=this,n=this.attributes,r=n.showHandle?"range"===n.type?["start","end"]:["end"]:[],i=this;null===(t=this.foregroundGroup)||void 0===t||t.selectAll(Yf.handle.class).data(r.map(function(t){return{type:t}}),function(t){return t.type}).join(function(t){return t.append(function(t){return new Zf({style:e.getHandleStyle(t.type)})}).each(function(t){var e=t.type;this.attr("class","".concat(Yf.handle.name," ").concat(e,"-handle"));var n="".concat(e,"Handle");i[n]=this,this.addEventListener("pointerdown",i.onDragStart(e))})},function(t){return t.each(function(t){this.update(i.getHandleStyle(t.type))})},function(t){return t.each(function(t){var e="".concat(t.type,"Handle");i[e]=void 0}).remove()})},e.prototype.renderSelection=function(t){var e=this.attributes,n=e.x,r=e.y,i=e.type,A=e.selectionType;this.foregroundGroup=Ui(t).maybeAppendByClassName(Yf.foreground,"g");var o=pl(this.attributes,"selection"),a=function(t){return t.style("visibility",function(t){return t.show?"visible":"hidden"}).style("cursor",function(t){return"select"===A?"grab":"invert"===A?"crosshair":"default"}).styles((0,gi.Cl)((0,gi.Cl)({},o),{transform:"translate(".concat(n,", ").concat(r,")")}))},s=this;this.foregroundGroup.selectAll(Yf.selection.class).data("value"===i?[]:this.calcSelectionArea().map(function(t,e){return{style:(0,gi.Cl)({},t),index:e,show:"select"===A?1===e:1!==e}}),function(t){return t.index}).join(function(t){return t.append("rect").attr("className",Yf.selection.name).call(a).each(function(t,e){var n=this;1===e?(s.selectionShape=Ui(this),this.on("pointerdown",function(t){n.attr("cursor","grabbing"),s.onDragStart("selection")(t)}),s.dispatchCustomEvent(this,"pointerenter","selectionMouseenter"),s.dispatchCustomEvent(this,"pointerleave","selectionMouseleave"),s.dispatchCustomEvent(this,"click","selectionClick"),this.addEventListener("pointerdown",function(){n.attr("cursor","grabbing")}),this.addEventListener("pointerup",function(){n.attr("cursor","pointer")}),this.addEventListener("pointerover",function(){n.attr("cursor","pointer")})):this.on("pointerdown",s.onDragStart("track"))})},function(t){return t.call(a)},function(t){return t.remove()}),this.updateSelectionArea(!1),this.renderHandles()},e.prototype.render=function(t,e){this.renderTrack(e),this.renderSparkline(e),this.renderBrushArea(e),this.renderSelection(e)},e.prototype.clampValues=function(t,e){var n;void 0===e&&(e=4);var r=(0,gi.zs)(this.range,2),i=r[0],A=r[1],o=(0,gi.zs)(this.getValues().map(function(t){return Df(t,e)}),2),a=o[0],s=o[1],l=Array.isArray(t)?t:[a,null!=t?t:s],c=(0,gi.zs)((l||[a,s]).map(function(t){return Df(t,e)}),2),u=c[0],d=c[1];if("value"===this.attributes.type)return[0,(0,xu.A)(d,i,A)];u>d&&(u=(n=(0,gi.zs)([d,u],2))[0],d=n[1]);var f=d-u;return f>A-i?[i,A]:u<i?a===i&&s===d?[i,d]:[i,f+i]:d>A?s===A&&a===u?[u,A]:[A-f,A]:[u,d]},e.prototype.calcSelectionArea=function(t){var e=(0,gi.zs)(this.clampValues(t),2),n=e[0],r=e[1],i=this.availableSpace,A=i.x,o=i.y,a=i.width,s=i.height;return this.getOrientVal([[{y:o,height:s,x:A,width:n*a},{y:o,height:s,x:n*a+A,width:(r-n)*a},{y:o,height:s,x:r*a,width:(1-r)*a}],[{x:A,width:a,y:o,height:n*s},{x:A,width:a,y:n*s+o,height:(r-n)*s},{x:A,width:a,y:r*s,height:(1-r)*s}]])},e.prototype.calcHandlePosition=function(t){var e=this.attributes.handleIconOffset,n=this.availableSpace,r=n.x,i=n.y,A=n.width,o=n.height,a=(0,gi.zs)(this.clampValues(),2),s="start"===t?-e:e,l=("start"===t?a[0]:a[1])*this.getOrientVal([A,o])+s;return{x:r+this.getOrientVal([l,A/2]),y:i+this.getOrientVal([o/2,l])}},e.prototype.inferTextStyle=function(t){return"horizontal"===this.attributes.orientation?{}:"start"===t?{transformOrigin:"left center",transform:"rotate(90)",textAlign:"start"}:"end"===t?{transformOrigin:"right center",transform:"rotate(90)",textAlign:"end"}:{}},e.prototype.calcHandleText=function(t){var e,n=this.attributes,r=n.type,i=n.orientation,A=n.formatter,o=n.autoFitLabel,a=pl(this.attributes,"handle"),s=pl(a,"label"),l=a.spacing,c=this.getHandleSize(),u=this.clampValues(),d=A("start"===t?u[0]:u[1]),f=new Qi({style:(0,gi.Cl)((0,gi.Cl)((0,gi.Cl)({},s),this.inferTextStyle(t)),{text:d})}),h=f.getBBox(),p=h.width,g=h.height;if(f.destroy(),!o){if("value"===r)return{text:d,x:0,y:-g-l};var m=l+c+("horizontal"===i?p/2:0);return(e={text:d})["horizontal"===i?"x":"y"]="start"===t?-m:m,e}var y=0,v=0,b=this.availableSpace,w=b.width,B=b.height,x=this.calcSelectionArea()[1],C=x.x,E=x.y,O=l+c;if("horizontal"===i){var k=O+p/2;y="start"===t?C-O-p>0?-k:k:w-C-x.width-O>p?k:-k}else{var F=g+O;v="start"===t?E-c>g?-F:O:B-(E+x.height)-c>g?F:-O}return{x:y,y:v,text:d}},e.prototype.getHandleLabelStyle=function(t){var e=pl(this.attributes,"handleLabel");return(0,gi.Cl)((0,gi.Cl)((0,gi.Cl)({},e),this.calcHandleText(t)),this.inferTextStyle(t))},e.prototype.getHandleIconStyle=function(){var t=this.attributes.handleIconShape,e=pl(this.attributes,"handleIcon"),n=this.getOrientVal(["ew-resize","ns-resize"]),r=this.getHandleSize();return(0,gi.Cl)({cursor:n,shape:t,size:r},e)},e.prototype.getHandleStyle=function(t){var e=this.attributes,n=e.x,r=e.y,i=e.showLabel,A=e.showLabelOnInteraction,o=e.orientation,a=this.calcHandlePosition(t),s=a.x,l=a.y,c=this.calcHandleText(t),u=i;return!i&&A&&(u=!!this.target),(0,gi.Cl)((0,gi.Cl)((0,gi.Cl)({},gl(this.getHandleIconStyle(),"icon")),gl((0,gi.Cl)((0,gi.Cl)({},this.getHandleLabelStyle(t)),c),"label")),{transform:"translate(".concat(s+n,", ").concat(l+r,")"),orientation:o,showLabel:u,type:t,zIndex:3})},e.prototype.getHandleSize=function(){var t=this.attributes;return t.handleIconSize||Math.floor((this.getOrientVal([+t.height,+t.width])+4)/2.4)},e.prototype.getOrientVal=function(t){var e=(0,gi.zs)(t,2);return"horizontal"===this.attributes.orientation?e[0]:e[1]},e.prototype.setValuesOffset=function(t,e){void 0===e&&(e=0);var n=this.attributes.type,r=(0,gi.zs)(this.getValues(),2),i=[r[0]+("range"===n?t:0),r[1]+e].sort();this.innerSetValues(i,!0)},e.prototype.getRatio=function(t){var e=this.availableSpace;return t/this.getOrientVal([e.width,e.height])},e.prototype.dispatchCustomEvent=function(t,e,n){var r=this;t.on(e,function(t){t.stopPropagation(),r.dispatchEvent(new $.up(n,{detail:t}))})},e.prototype.bindEvents=function(){this.addEventListener("wheel",this.onScroll);var t=this.brushArea;this.dispatchCustomEvent(t,"click","trackClick"),this.dispatchCustomEvent(t,"pointerenter","trackMouseenter"),this.dispatchCustomEvent(t,"pointerleave","trackMouseleave"),t.on("pointerdown",this.onDragStart("track"))},e.prototype.onScroll=function(t){if(this.attributes.scrollable){var e=this.getRatio(t.deltaY||t.deltaX);this.setValuesOffset(e,e)}},e.tag="slider",e}(ki);const Rh=t=>{const{orientation:e,labelFormatter:n,style:r={},position:i}=t,A=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n}(t,["orientation","labelFormatter","size","style","position"]);return o=>{var a;const{scales:[s],value:l,theme:c,coordinate:u}=o,{bbox:d}=l,{width:f,height:h}=d,{slider:p={}}=c,g=(null===(a=s.getFormatter)||void 0===a?void 0:a.call(s))||(t=>t+""),m="string"==typeof n?(0,Rc.GP)(n):n,y="horizontal"===e,v=D(u)&&y,{trackSize:b=p.trackSize}=r,[w,B]=function(t,e,n){const{x:r,y:i,width:A,height:o}=t;return"left"===e?[r+A-n,i]:"right"===e||"bottom"===e?[r,i]:"top"===e?[r,i+o-n]:void 0}(d,i,b);return new Dh({className:"slider",style:Object.assign({},p,Object.assign(Object.assign({x:w,y:B,trackLength:y?f:h,orientation:e,formatter:t=>(m||g)(ud(s,v?1-t:t,!0)),sparklineData:Kh(t,o)},r),A))})}};function Kh(t,e){const{markState:n}=e;return(0,x.A)(t.sparklineData)?t.sparklineData:function(t,e){const[n]=Array.from(t.entries()).filter(([t])=>"line"===t.type||"area"===t.type||"interval"===t.type).filter(([t])=>t.slider).map(([t])=>{const{encode:n,slider:r}=t;if(null==r?void 0:r.x)return Object.fromEntries(e.map(t=>{const e=n[t];return[t,e?e.value:void 0]}))});if(!(null==n?void 0:n.series))return null==n?void 0:n.y;const r=n.series.reduce((t,e,r)=>(t[e]=t[e]||[],t[e].push(n.y[r]),t),{});return Object.values(r)}(n,["y","series"])}Rh.props={defaultPosition:"bottom",defaultSize:24,defaultOrder:1,defaultCrossPadding:[12,12],defaultPadding:[12,12]};const zh=t=>Rh(Object.assign(Object.assign({},t),{orientation:"horizontal"}));zh.props=Object.assign(Object.assign({},Rh.props),{defaultPosition:"bottom"});const Gh=t=>Rh(Object.assign(Object.assign({},t),{orientation:"vertical"}));Gh.props=Object.assign(Object.assign({},Rh.props),{defaultPosition:"left"});var Vh=function(t){function e(e){var n=t.call(this,e,{x:0,y:0,isRound:!0,orientation:"vertical",padding:[2,2,2,2],scrollable:!0,slidable:!0,thumbCursor:"default",trackSize:10,value:0})||this;return n.range=[0,1],n.onValueChange=function(t){var e=n.attributes.value;if(t!==e){var r={detail:{oldValue:t,value:e}};n.dispatchEvent(new $.up("scroll",r)),n.dispatchEvent(new $.up("valuechange",r))}},n.onTrackClick=function(t){if(n.attributes.slidable){var e=(0,gi.zs)(n.getLocalPosition(),2),r=e[0],i=e[1],A=(0,gi.zs)(n.padding,4),o=n.getOrientVal([r+A[3],i+A[0]]),a=n.getOrientVal(Rf(t));n.setValue((a-o)/n.trackLength,!0)}},n.onThumbMouseenter=function(t){n.dispatchEvent(new $.up("thumbMouseenter",{detail:t.detail}))},n.onTrackMouseenter=function(t){n.dispatchEvent(new $.up("trackMouseenter",{detail:t.detail}))},n.onThumbMouseleave=function(t){n.dispatchEvent(new $.up("thumbMouseleave",{detail:t.detail}))},n.onTrackMouseleave=function(t){n.dispatchEvent(new $.up("trackMouseleave",{detail:t.detail}))},n}return(0,gi.C6)(e,t),Object.defineProperty(e.prototype,"padding",{get:function(){return lc(this.attributes.padding)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){var t=this.attributes.value,e=(0,gi.zs)(this.range,2);return(0,xu.A)(t,e[0],e[1])},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"trackLength",{get:function(){var t=this.attributes,e=t.trackLength;return void 0===e?t.viewportLength:e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"availableSpace",{get:function(){var t=this.attributes.trackSize,e=this.trackLength,n=(0,gi.zs)(this.padding,4),r=n[0],i=n[1],A=n[2],o=n[3],a=(0,gi.zs)(this.getOrientVal([[e,t],[t,e]]),2);return{x:o,y:r,width:+a[0]-(o+i),height:+a[1]-(r+A)}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"trackRadius",{get:function(){var t=this.attributes;return t.isRound?t.trackSize/2:0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"thumbRadius",{get:function(){var t=this.attributes;if(!t.isRound)return 0;var e=this.availableSpace;return t.thumbRadius||this.getOrientVal([e.height,e.width])/2},enumerable:!1,configurable:!0}),e.prototype.getValues=function(t){void 0===t&&(t=this.value);var e=this.attributes,n=e.viewportLength/e.contentLength,r=(0,gi.zs)(this.range,2),i=t*(r[1]-r[0]-n);return[i,i+n]},e.prototype.getValue=function(){return this.value},e.prototype.renderSlider=function(t){var e=this.attributes,n=e.x,r=e.y,i=e.orientation,A=e.trackSize,o=e.padding,a=e.slidable,s=pl(this.attributes,"track"),l=pl(this.attributes,"thumb"),c=(0,gi.Cl)((0,gi.Cl)({x:n,y:r,brushable:!1,orientation:i,padding:o,selectionRadius:this.thumbRadius,showHandle:!1,slidable:a,trackLength:this.trackLength,trackRadius:this.trackRadius,trackSize:A,values:this.getValues()},gl(s,"track")),gl(l,"selection"));this.slider=Ui(t).maybeAppendByClassName("scrollbar",function(){return new Dh({style:c})}).update(c).node()},e.prototype.render=function(t,e){this.renderSlider(e)},e.prototype.setValue=function(t,e){void 0===e&&(e=!1);var n=this.attributes.value,r=(0,gi.zs)(this.range,2);this.slider.setValues(this.getValues((0,xu.A)(t,r[0],r[1])),e),this.onValueChange(n)},e.prototype.bindEvents=function(){var t=this;this.slider.addEventListener("trackClick",function(e){e.stopPropagation(),t.onTrackClick(e.detail)}),this.onHover()},e.prototype.getOrientVal=function(t){return"horizontal"===this.attributes.orientation?t[0]:t[1]},e.prototype.onHover=function(){this.slider.addEventListener("selectionMouseenter",this.onThumbMouseenter),this.slider.addEventListener("trackMouseenter",this.onTrackMouseenter),this.slider.addEventListener("selectionMouseleave",this.onThumbMouseleave),this.slider.addEventListener("trackMouseleave",this.onTrackMouseleave)},e.tag="scrollbar",e}(ki);const Wh=t=>{const{orientation:e,style:n}=t,r=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n}(t,["orientation","labelFormatter","style"]);return({scales:[t],value:i,theme:A})=>{const{bbox:o}=i,{x:a,y:s,width:l,height:c}=o,{scrollbar:u={}}=A,{ratio:d,range:f}=t.getOptions(),h="horizontal"===e?l:c,p=h/d,[g,m]=f,y=m>g?0:1;return new Vh({className:"g2-scrollbar",style:Object.assign({},u,Object.assign(Object.assign(Object.assign(Object.assign({},n),{x:a,y:s,trackLength:h,value:y}),r),{orientation:e,contentLength:p,viewportLength:h}))})}};Wh.props={defaultPosition:"bottom",defaultSize:24,defaultOrder:1,defaultCrossPadding:[12,12],defaultPadding:[12,12]};const Xh=t=>Wh(Object.assign(Object.assign({},t),{orientation:"horizontal"}));Xh.props=Object.assign(Object.assign({},Wh.props),{defaultPosition:"bottom"});const Yh=t=>Wh(Object.assign(Object.assign({},t),{orientation:"vertical"}));Yh.props=Object.assign(Object.assign({},Wh.props),{defaultPosition:"left"});const $h=(t,e)=>{const{coordinate:n}=e;return(e,r,i)=>{const[A]=e,{transform:o="",fillOpacity:a=1,strokeOpacity:s=1,opacity:l=1}=A.style,[c,u]=D(n)?["left bottom","scale(1, 0.0001)"]:["left top","scale(0.0001, 1)"],d=[{transform:`${o} ${u}`.trimStart(),transformOrigin:c,fillOpacity:0,strokeOpacity:0,opacity:0},{transform:`${o} ${u}`.trimStart(),transformOrigin:c,fillOpacity:a,strokeOpacity:s,opacity:l,offset:.01},{transform:`${o} scale(1, 1)`.trimStart(),transformOrigin:c,fillOpacity:a,strokeOpacity:s,opacity:l}];return A.animate(d,Object.assign(Object.assign({},i),t))}},qh=(t,e)=>{const n=1e-4,{coordinate:r}=e;return $.Ks.registerProperty({name:"scaleInYRadius",inherits:!1,initialValue:"",interpolable:!0,syntax:$.NZ.NUMBER}),(e,i,A)=>{const[o]=e;return R(r)?(e=>{const{__data__:i,style:o}=e,{fillOpacity:a=1,strokeOpacity:s=1,opacity:l=1}=o,{points:c,y:u,y1:d}=i,f=Te(r,c,[u,d]),{innerRadius:h,outerRadius:p}=f;return e.animate([{scaleInYRadius:h+n,fillOpacity:0,strokeOpacity:0,opacity:0},{scaleInYRadius:h+n,fillOpacity:a,strokeOpacity:s,opacity:l,offset:.01},{scaleInYRadius:p,fillOpacity:a,strokeOpacity:s,opacity:l}],Object.assign(Object.assign({},A),t))})(o):(e=>{const{style:n}=e,{transform:i="",fillOpacity:o=1,strokeOpacity:a=1,opacity:s=1}=n,[l,c]=D(r)?["left top","scale(0.0001, 1)"]:["left bottom","scale(1, 0.0001)"],u=[{transform:`${i} ${c}`.trimStart(),transformOrigin:l,fillOpacity:0,strokeOpacity:0,opacity:0},{transform:`${i} ${c}`.trimStart(),transformOrigin:l,fillOpacity:o,strokeOpacity:a,opacity:s,offset:.01},{transform:`${i} scale(1, 1)`.trimStart(),transformOrigin:l,fillOpacity:o,strokeOpacity:a,opacity:s}];return e.animate(u,Object.assign(Object.assign({},A),t))})(o)}},Zh=(t,e)=>{const n=1e-4;$.Ks.registerProperty({name:"waveInArcAngle",inherits:!1,initialValue:"",interpolable:!0,syntax:$.NZ.NUMBER});const{coordinate:r}=e;return(i,A,o)=>{const[a]=i;if(!R(r))return $h(t,e)(i,A,o);const{__data__:s,style:l}=a,{radius:c=0,inset:u=0,fillOpacity:d=1,strokeOpacity:f=1,opacity:h=1}=l,{points:p,y:g,y1:m}=s,y=(0,N.A)().cornerRadius(c).padAngle(u*Math.PI/180),v=Te(r,p,[g,m]),{startAngle:b,endAngle:w}=v,B=a.animate([{waveInArcAngle:b+n,fillOpacity:0,strokeOpacity:0,opacity:0},{waveInArcAngle:b+n,fillOpacity:d,strokeOpacity:f,opacity:h,offset:.01},{waveInArcAngle:w,fillOpacity:d,strokeOpacity:f,opacity:h}],Object.assign(Object.assign({},o),t));return B.onframe=function(){a.style.d=y(Object.assign(Object.assign({},v),{endAngle:Number(a.style.waveInArcAngle)}))},B.onfinish=function(){a.style.d=y(Object.assign(Object.assign({},v),{endAngle:w}))},B}};Zh.props={};const Jh=t=>(e,n,r)=>{const[i]=e,{fillOpacity:A=1,strokeOpacity:o=1,opacity:a=1}=i.style;return i.animate([{fillOpacity:0,strokeOpacity:0,opacity:0},{fillOpacity:A,strokeOpacity:o,opacity:a}],Object.assign(Object.assign({},r),t))};Jh.props={};const tp=t=>(e,n,r)=>{const[i]=e,{fillOpacity:A=1,strokeOpacity:o=1,opacity:a=1}=i.style;return i.animate([{fillOpacity:A,strokeOpacity:o,opacity:a},{fillOpacity:0,strokeOpacity:0,opacity:0}],Object.assign(Object.assign({},r),t))};tp.props={};const ep=t=>(e,n,r)=>{var i,A;const[o]=e,a=(null===(A=(i=o).getTotalLength)||void 0===A?void 0:A.call(i))||0;return o.animate([{lineDash:[0,a]},{lineDash:[a,0]}],Object.assign(Object.assign({},r),t))};ep.props={};const np={opacity:1,strokeOpacity:1,fillOpacity:1,lineWidth:0,x:0,y:0,cx:0,cy:0,r:0,rx:0,ry:0,width:0,height:0},rp={[$.yp.CIRCLE]:["cx","cy","r"],[$.yp.ELLIPSE]:["cx","cy","rx","ry"],[$.yp.RECT]:["x","y","width","height"],[$.yp.IMAGE]:["x","y","width","height"],[$.yp.LINE]:["x1","y1","x2","y2"],[$.yp.POLYLINE]:["points"],[$.yp.POLYGON]:["points"]};function ip(t,e,n=!1){const r={};for(const i of e){const e=t.style[i];e?r[i]=e:n&&(r[i]=np[i])}return r}const Ap=["fill","stroke","fillOpacity","strokeOpacity","opacity","lineWidth"];function op(t){const{min:e,max:n}=t.getLocalBounds(),[r,i]=e,[A,o]=n;return[r,i,A-r,o-i]}function ap(t){const[e,n,r,i]=t;return`\n M ${e} ${n}\n L ${e+r} ${n}\n L ${e+r} ${n+i}\n L ${e} ${n+i}\n Z\n `}function sp(t,e){const[n,r,i,A]=op(t),o=Math.ceil(Math.sqrt(e/(A/i))),a=[],s=A/Math.ceil(e/o);let l=0,c=e;for(;c>0;){const t=Math.min(c,o),e=i/t;for(let i=0;i<t;i++)a.push(ap([n+i*e,r+l*s,e,s]));c-=t,l+=1}return a}function lp(t,e){t.__data__=e.__data__,t.className=e.className,t.markType=e.markType,e.parentNode.replaceChild(t,e)}function cp(t,e){return t.indexOf(e)===t.lastIndexOf(e)}function up(t){const e=(0,$.O5)(t);if(e&&!function(t){return!cp(t,"m")||!cp(t,"M")}(e))return e}function dp(t){const{nodeName:e}=t;if("path"===e){const e=Fl(t,"attributes");return e.markerEnd||e.markerStart}return!1}function fp(t,e,n,r){const{nodeName:i}=e,{nodeName:A}=n,o=up(e),a=up(n),{opacity:s=1,strokeOpacity:l=1,fillOpacity:c=1}=e.style,{opacity:u=1,strokeOpacity:d=1,fillOpacity:f=1}=n.style,h=i===A&&"path"!==i,p=void 0===o||void 0===a,g=dp(e)||dp(n);if(h||p||g)return function(t,e,n){let{transform:r}=t.style;const{transform:i}=e.style;lp(e,t);let A=Ap;if(t.nodeName===$.yp.GROUP){const[n,i,A,o]=op(t),[a,s,l,c]=op(e);r=`translate(${n-a}, ${i-s}) scale(${A/l}, ${o/c})`}else A=A.concat(rp[t.nodeName]||[]);const o=[Object.assign({transform:null!=r?r:"none"},ip(t,A,!0)),Object.assign({transform:null!=i?i:"none"},ip(e,A,!0))];return e.animate(o,n)}(e,n,r);const m=function(t,e){const{nodeName:n}=t;if("path"===n)return t;const r=new $.wA({style:Object.assign(Object.assign({},ip(t,Ap)),{d:e})});return lp(r,t),r}(t,o),y=Object.assign(Object.assign({},ip(e,Ap)),{opacity:s,strokeOpacity:l,fillOpacity:c}),v=Object.assign(Object.assign({},ip(n,Ap)),{opacity:u,strokeOpacity:d,fillOpacity:f}),b=[y,v];if(o!==a){b[0].d=o,b[1].d=a;const t=m.animate(b,r);return t.onfinish=()=>{It(m,n),m.style.d=a,m.style.transform="none"},m.style.transform="none",t}return Mh(y,v)?null:m.animate(b,r)}const hp=t=>(e,n,r)=>{const i=function(t="pack"){return"function"==typeof t?t:sp}(t.split),A=Object.assign(Object.assign({},r),t),{length:o}=e,{length:a}=n;if(1===o&&1===a||o>1&&a>1){const[t]=e,[r]=n;return fp(t,t,r,A)}if(1===o&&a>1){const[t]=e;return function(t,e,n,r){t.style.visibility="hidden";const i=r(t,e.length);return e.map((e,r)=>fp(e,new $.wA({style:Object.assign({d:i[r]},ip(t,Ap))}),e,n))}(t,n,A,i)}if(o>1&&1===a){const[t]=n;return function(t,e,n,r){const i=r(e,t.length),{fillOpacity:A=1,strokeOpacity:o=1,opacity:a=1}=e.style,s=e.animate([{fillOpacity:0,strokeOpacity:0,opacity:0},{fillOpacity:0,strokeOpacity:0,opacity:0,offset:.99},{fillOpacity:A,strokeOpacity:o,opacity:a}],n),l=t.map((t,r)=>fp(t,t,new $.wA({style:{d:i[r],fill:e.style.fill}}),n));return[...l,s]}(e,t,A,i)}return null};hp.props={};const pp=(t,e)=>(n,r,i)=>{const[A]=n,{min:[o,a],halfExtents:s}=A.getLocalBounds(),l=2*s[0],c=2*s[1],u=new $.wA({style:{d:`M${o},${a}L${o+l},${a}L${o+l},${a+c}L${o},${a+c}Z`}});return A.appendChild(u),A.style.clipPath=u,$h(t,e)([u],r,i)};pp.props={};const gp=(t,e)=>(n,r,i)=>{const[A]=n,{min:[o,a],halfExtents:s}=A.getLocalBounds(),l=2*s[0],c=2*s[1],u=new $.wA({style:{d:`M${o},${a}L${o+l},${a}L${o+l},${a+c}L${o},${a+c}Z`}});return A.appendChild(u),A.style.clipPath=u,qh(t,e)([u],r,i)};gp.props={};function mp(t){var{delay:e,createGroup:n,createRegionGroup:r,background:i=!1,link:A=!1}=t,o=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n}(t,["delay","createGroup","createRegionGroup","background","link"]);return(t,a,s)=>{const{container:l,view:c,options:u}=t,{scale:d,coordinate:f}=c;return function(t,{elements:e,datum:n,groupKey:r=t=>t,regionGroupKey:i=t=>t,link:A=!1,background:o=!1,delay:a=60,scale:s,coordinate:l,emitter:c,state:u={},region:d=!1,regionEleFilter:f=t=>qd.includes(t.markType)}){var h,p;const g=null!==(h=e(t))&&void 0!==h?h:[],m=d?g.filter(f):g,y=new Set(m),v=d?i:r,b=et(m,v),w=Zd({elementsof:e,root:t,coordinate:l,scale:s}),B=Nd(m,n),[x,C]=Dd(Object.assign({elements:m,valueof:B,link:A,coordinate:l},Pt(u.active,"link"))),[E,O,k]=Kd(Object.assign({document:t.ownerDocument,scale:s,coordinate:l,background:o,valueof:B},Pt(u.active,"background"))),F=Q(u,{active:Object.assign({},(null===(p=u.active)||void 0===p?void 0:p.offset)&&{transform:(...t)=>{const e=u.active.offset(...t),[,n]=t;return Rd(m[n],e,l)}})}),M=Ld(F,m),{updateState:U,removeState:S,hasState:_}=M(B);let I;const T=t=>{const{nativeEvent:e=!0}=t;let r=t.target;if(d&&(r=w(t)),!y.has(r))return;I&&clearTimeout(I);const i=v(r),A=b.get(i),o=new Set(A);for(const t of m)o.has(t)?_(t,"active")||U(t,"active"):(U(t,"inactive"),C(t)),t!==r&&O(t);E(r),x(A),e&&c.emit("element:highlight",{nativeEvent:e,data:{data:n(r),group:A.map(n)}})},L=()=>{I&&clearTimeout(I),I=setTimeout(()=>{P(),I=null},a)},P=(t=!0)=>{for(const t of m)S(t,"active","inactive"),O(t),C(t);t&&c.emit("element:unhighlight",{nativeEvent:t})},j=t=>{let e=t.target;d&&(e=w(t)),e?o&&!k(e)||(o||y.has(e))&&(a>0?L():P()):a>0?L():P()},H=()=>{P()};t.addEventListener("pointerover",T),t.addEventListener("pointermove",T),t.addEventListener("pointerout",j),t.addEventListener("pointerleave",H);const N=t=>{const{nativeEvent:e}=t;e||P(!1)},D=t=>{const{nativeEvent:e}=t;if(e)return;const{data:r}=t.data,i=Vd(m,r,n);i&&T({target:i,nativeEvent:!1})};return c.on("element:highlight",D),c.on("element:unhighlight",N),()=>{t.removeEventListener("pointerover",T),t.removeEventListener("pointermove",T),t.removeEventListener("pointerout",j),t.removeEventListener("pointerleave",H),c.off("element:highlight",D),c.off("element:unhighlight",N);for(const t of m)O(t),C(t)}}(Od(l),Object.assign({elements:xd,datum:Sd(c),groupKey:n?n(c):void 0,regionGroupKey:r?r(c):t=>t.__data__.x,coordinate:f,scale:d,state:Hd(u,[["active",i?{}:{lineWidth:"1",stroke:"#000"}],"inactive"]),background:i,link:A,delay:e,emitter:s},o))}}function yp(t){return mp(Object.assign(Object.assign({},t),{createGroup:Ud}))}function vp(t){return mp(Object.assign(Object.assign({},t),{createGroup:Md}))}mp.props={reapplyWhenUpdate:!0},yp.props={reapplyWhenUpdate:!0},vp.props={reapplyWhenUpdate:!0};function bp(t){var{delay:e,createGroup:n,scale:r,shadow:i,shadowColor:A,shadowBlur:o,shadowOffsetX:a,shadowOffsetY:s,zIndex:l}=t,c=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n}(t,["delay","createGroup","scale","shadow","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","zIndex"]);return(t,u,d)=>{const{container:f,view:h,options:p}=t,g=Od(f),m=Sd(h),{coordinate:y}=h;return function(t,{elements:e,datum:n,groupKey:r=t=>t,scaleFactor:i=1.04,shadow:A=!0,shadowColor:o="rgba(0, 0, 0, 0.4)",shadowBlur:a=10,shadowOffsetX:s=0,shadowOffsetY:l=2,zIndex:c=10,delay:u=60,emitter:d,state:f={},coordinate:h}){const p=()=>{var n;return null!==(n=e(t))&&void 0!==n?n:[]},g=p(),m=Nd(g,n),y=Ld(Q(f,{active:{}}),g),{updateState:v,removeState:b,hasState:w}=y(m),B=new Map;let x;const C=t=>{if(B.has(t))return;const e=t.style.transform||"",n="none"===e?"":e;if(B.set(t,{transform:e,transformOrigin:t.style.transformOrigin||"",zIndex:t.style.zIndex||0,shadowColor:t.style.shadowColor||"",shadowBlur:t.style.shadowBlur||0,shadowOffsetX:t.style.shadowOffsetX||0,shadowOffsetY:t.style.shadowOffsetY||0}),h&&R(h)&&!n){const e=h.getCenter();t.style.transformOrigin=`${e[0]}px ${e[1]}px`}const r=`scale(${i})`;t.style.transform=n?`${n} ${r}`:r,t.style.zIndex=c,A&&(t.style.shadowColor=o,t.style.shadowBlur=a,t.style.shadowOffsetX=s,t.style.shadowOffsetY=l)},E=t=>{const e=B.get(t);e&&(t.style.transform=e.transform,t.style.transformOrigin=e.transformOrigin,t.style.zIndex=e.zIndex,t.style.shadowColor=e.shadowColor,t.style.shadowBlur=e.shadowBlur,t.style.shadowOffsetX=e.shadowOffsetX,t.style.shadowOffsetY=e.shadowOffsetY,B.delete(t))},O=t=>{const{nativeEvent:e=!0}=t,i=t.target,A=p();if(!new Set(A).has(i))return;x&&clearTimeout(x);const o=et(A,r),a=r(i),s=o.get(a);if(!s)return;const l=new Set(s);for(const t of A)l.has(t)||(b(t,"active"),E(t));for(const t of s)w(t,"active")||v(t,"active"),C(t);e&&d.emit("element:hoverscale",{nativeEvent:e,data:{data:n(i),group:s.map(n)}})},k=(t=!0)=>{const e=p();for(const t of e)b(t,"active"),E(t);t&&d.emit("element:unhoverscale",{nativeEvent:t})},F=()=>{u>0?(x&&clearTimeout(x),x=setTimeout(()=>{k(),x=null},u)):k()},M=()=>{k()};t.addEventListener("pointerover",O),t.addEventListener("pointermove",O),t.addEventListener("pointerout",F),t.addEventListener("pointerleave",M);const U=t=>{const{nativeEvent:e}=t;e||k(!1)},S=t=>{const{nativeEvent:e}=t;if(e)return;const{data:r}=t.data,i=Vd(p(),r,n);i&&O({target:i,nativeEvent:!1})};return d.on("element:hoverscale",S),d.on("element:unhoverscale",U),()=>{t.removeEventListener("pointerover",O),t.removeEventListener("pointermove",O),t.removeEventListener("pointerout",F),t.removeEventListener("pointerleave",M),d.off("element:hoverscale",S),d.off("element:unhoverscale",U);const e=p();for(const t of e)E(t);B.clear()}}(g,Object.assign({elements:xd,datum:m,groupKey:n?t=>n(h)(m(t)):void 0,state:Hd(p,["active"]),scaleFactor:r,shadow:i,shadowColor:A,shadowBlur:o,shadowOffsetX:a,shadowOffsetY:s,zIndex:l,delay:e,emitter:d,coordinate:y},c))}}bp.props={reapplyWhenUpdate:!0};function wp(t){var{createGroup:e,createRegionGroup:n,background:r=!1,link:i=!1}=t,A=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n}(t,["createGroup","createRegionGroup","background","link"]);return(t,o,a)=>{const{container:s,view:l,options:c}=t,{coordinate:u,scale:d}=l;return function(t,{elements:e,datum:n,groupKey:r=t=>t,regionGroupKey:i=t=>t,link:A=!1,single:o=!1,multipleSelectHotkey:a,coordinate:s,background:l=!1,scale:c,emitter:u,state:d={},region:f=!1,regionEleFilter:h=t=>qd.includes(t.markType)}){var p;const g=e(t),m=new Set(g),y=Zd({elementsof:e,root:t,coordinate:s,scale:c}),v=et(g,r),b=et(g,i),w=Nd(g,n),[B,x]=Dd(Object.assign({link:A,elements:g,valueof:w,coordinate:s},Pt(d.selected,"link"))),[C,E]=Kd(Object.assign({document:t.ownerDocument,background:l,coordinate:s,scale:c,valueof:w},Pt(d.selected,"background"))),O=Q(d,{selected:Object.assign({},(null===(p=d.selected)||void 0===p?void 0:p.offset)&&{transform:(...t)=>{const e=d.selected.offset(...t),[,n]=t;return Rd(g[n],e,s)}})}),k=Ld(O,g),{updateState:F,removeState:M,hasState:U}=k(w);let S=!o,_=null;const I=(t=!0)=>{for(const t of g)M(t,"selected","unselected"),x(t),E(t);t&&u.emit("element:unselect",{nativeEvent:!0})},T=({event:t,element:e,nativeEvent:i=!0,filter:A=t=>!0,groupBy:o=r,groupMap:a=v})=>{const s=g.filter(A);if(U(e,"selected"))I();else{const r=o(e),A=a.get(r),l=new Set(A);for(const t of s)l.has(t)?F(t,"selected"):(F(t,"unselected"),x(t)),t!==e&&E(t);if(B(A),C(e),!i)return;u.emit("element:select",Object.assign(Object.assign({},t),{nativeEvent:i,data:{data:[n(e),...A.map(n)]}}))}},L=({event:t,element:e,nativeEvent:i=!0,filter:o=t=>!0,groupBy:a=r,groupMap:s=v})=>{const l=a(e),c=s.get(l),d=new Set(c),f=g.filter(o);if(U(e,"selected")){const t=g.some(t=>!d.has(t)&&U(t,"selected"));if(!t)return I();for(const t of c)F(t,"unselected"),x(t),E(t)}else{const t=c.some(t=>U(t,"selected"));for(const t of f)d.has(t)?F(t,"selected"):U(t,"selected")||F(t,"unselected");!t&&A&&B(c),C(e)}i&&u.emit("element:select",Object.assign(Object.assign({},t),{nativeEvent:i,data:{data:g.filter(t=>U(t,"selected")).map(n)}}))},P=t=>{if(m.has(t))return t;for(const e of m){let n=null;if(gd(e,r=>{r===t&&(n=e)}),n)return n}return t},j=t=>{const{target:e,nativeEvent:n=!0}=t,A=S?L:T;let o=e;const a=(t=>{if(m.has(t))return!0;for(const e of m)if(gd(e,e=>e===t))return!0;return!1})(e);return!f||a?a?A({event:t,element:P(o),nativeEvent:n,groupBy:r}):I():(o=y(t),m.has(o)?A({event:t,element:o,nativeEvent:n,filter:h,groupBy:i,groupMap:b}):I())},H=Array.isArray(a)?a:[a],N=t=>{H.includes(t.code)&&!_&&(_=t.code,S=!0)},D=t=>{t.code===_&&(_=null,S=!1)};t.addEventListener("click",j),a&&(S=!1,document.addEventListener("keydown",N),document.addEventListener("keyup",D));const R=t=>{const{nativeEvent:e,data:r}=t;if(e)return;const i=S?r.data:r.data.slice(0,1);for(const t of i){const e=Vd(g,t,n);j({target:e,nativeEvent:!1})}},K=()=>{I(!1)};return u.on("element:select",R),u.on("element:unselect",K),()=>{for(const t of g)x(t);t.removeEventListener("click",j),a&&(document.removeEventListener("keydown",N),document.removeEventListener("keyup",D)),u.off("element:select",R),u.off("element:unselect",K)}}(Od(s),Object.assign({elements:xd,datum:Sd(l),groupKey:e?e(l):void 0,regionGroupKey:n?n(l):t=>t.__data__.x,coordinate:u,scale:d,state:Hd(c,[["selected",r?{}:{lineWidth:"1",stroke:"#000"}],"unselected"]),background:r,link:i,emitter:a},A))}}function Bp(t){return wp(Object.assign(Object.assign({},t),{createGroup:Ud}))}function xp(t){return wp(Object.assign(Object.assign({},t),{createGroup:Md}))}wp.props={reapplyWhenUpdate:!0},Bp.props={reapplyWhenUpdate:!0},xp.props={reapplyWhenUpdate:!0};function Cp(t){var{wait:e=20,leading:n,trailing:r=!1,labelFormatter:i=t=>`${t}`}=t,A=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n}(t,["wait","leading","trailing","labelFormatter"]);return t=>{const{view:o,container:a,update:s,setState:l}=t,{markState:c,scale:u,coordinate:d}=o,f=function(t,e,n){const[r]=Array.from(t.entries()).filter(([t])=>"line"===t.type).map(([t])=>{const{encode:e}=t;return Object.fromEntries(n.map(t=>{const n=e[t];return[t,n?n.value:void 0]}))});return r}(c,0,["x","y","series"]);if(!f)return;const{y:h,x:p,series:g=[]}=f,m=h.map((t,e)=>e),y=Ju(m.map(t=>p[t])),v=Od(a),b=a.getElementsByClassName(Ad),w=et(a.getElementsByClassName("label"),t=>t.__data__.key.split("-")[0]),B=new $.N1({style:Object.assign({x1:0,y1:0,x2:0,y2:v.getAttribute("height"),stroke:"black",lineWidth:1},Pt(A,"rule"))}),x=new $.EY({style:Object.assign({x:0,y:v.getAttribute("height"),text:"",fontSize:10},Pt(A,"label"))});B.append(x),v.appendChild(B);const C=(t,e,n)=>{const[r]=t.invert(n),i=e.invert(r);return y[(0,ld.WD)(y,i)]},E=(t,e)=>{B.setAttribute("x1",t[0]),B.setAttribute("x2",t[0]),x.setAttribute("text",i(e))};let O;const k=qu(t=>{const e=Fd(v,t);e&&(t=>{const{scale:e,coordinate:n}=O,{x:r,y:i}=e,A=C(n,r,t);E(t,A);for(const t of b){const{seriesIndex:e,key:r}=t.__data__,o=e[(0,nd.A)(t=>p[+t]).center(e,A)],a=[0,i.map(1)],s=[0,i.map(h[o]/h[e[0]])],[,l]=n.map(a),[,c]=n.map(s),u=l-c;t.setAttribute("transform",`translate(0, ${u})`);const d=w.get(r)||[];for(const t of d)t.setAttribute("dy",u)}})(e)},e,{leading:n,trailing:r});return(t=>{var e,n,r,i;e=this,n=void 0,i=function*(){const{x:e}=u,n=C(d,e,t);E(t,n),l("chartIndex",t=>{const e=Q({},t),r=e.marks.find(t=>"line"===t.type),i=ko(rt(m,t=>ko(t,t=>+h[t])/Oo(t,t=>+h[t]),t=>g[t]).values());Q(r,{scale:{y:{domain:[1/i,i]}}});const A=function(t){const{transform:e=[]}=t,n=e.find(t=>"normalizeY"===t.type);if(n)return n;const r={type:"normalizeY"};return e.push(r),t.transform=e,r}(r);A.groupBy="color",A.basis=(t,e)=>e[t[(0,nd.A)(t=>p[+t]).center(t,n)]];for(const t of e.marks)t.animate=!1;return e});const r=yield s("chartIndex");O=r.view},new((r=void 0)||(r=Promise))(function(t,A){function o(t){try{s(i.next(t))}catch(t){A(t)}}function a(t){try{s(i.throw(t))}catch(t){A(t)}}function s(e){e.done?t(e.value):function(t){return t instanceof r?t:new r(function(e){e(t)})}(e.value).then(o,a)}s((i=i.apply(e,n||[])).next())})})([0,0]),v.addEventListener("pointerenter",k),v.addEventListener("pointermove",k),v.addEventListener("pointerleave",k),()=>{B.remove(),v.removeEventListener("pointerenter",k),v.removeEventListener("pointermove",k),v.removeEventListener("pointerleave",k)}}}function Ep(t,e){let n,r=-1,i=-1;if(void 0===e)for(const e of t)++i,null!=e&&(n>e||void 0===n&&e>=e)&&(n=e,r=i);else for(let A of t)null!=(A=e(A,++i,t))&&(n>A||void 0===n&&A>=A)&&(n=A,r=i);return r}function Op(t,e){let n=0,r=0;if(void 0===e)for(let e of t)null!=e&&(e=+e)>=e&&(++n,r+=e);else{let i=-1;for(let A of t)null!=(A=e(A,++i,t))&&(A=+A)>=A&&(++n,r+=A)}if(n)return r/n}function kp(t){var e=document.createElement("div");e.innerHTML=t;var n=e.childNodes[0];return n&&e.contains(n)&&e.removeChild(n),n}Cp.props={reapplyWhenUpdate:!0};var Fp=function(t,e){null!=e?t.replaceChildren?Array.isArray(e)?t.replaceChildren.apply(t,(0,gi.fX)([],(0,gi.zs)(e),!1)):t.replaceChildren(e):(t.innerHTML="",Array.isArray(e)?e.forEach(function(e){return t.appendChild(e)}):t.appendChild(e)):t.innerHTML=""};function Qp(t){return void 0===t&&(t=""),{CONTAINER:"".concat(t,"tooltip"),TITLE:"".concat(t,"tooltip-title"),LIST:"".concat(t,"tooltip-list"),LIST_ITEM:"".concat(t,"tooltip-list-item"),NAME:"".concat(t,"tooltip-list-item-name"),MARKER:"".concat(t,"tooltip-list-item-marker"),NAME_LABEL:"".concat(t,"tooltip-list-item-name-label"),VALUE:"".concat(t,"tooltip-list-item-value"),CROSSHAIR_X:"".concat(t,"tooltip-crosshair-x"),CROSSHAIR_Y:"".concat(t,"tooltip-crosshair-y")}}var Mp={overflow:"hidden","white-space":"nowrap","text-overflow":"ellipsis"};function Up(t){var e;void 0===t&&(t="");var n=Qp(t);return(e={})[".".concat(n.CONTAINER)]={position:"absolute",visibility:"visible","z-index":8,transition:"visibility 0.2s cubic-bezier(0.23, 1, 0.32, 1), left 0.4s cubic-bezier(0.23, 1, 0.32, 1), top 0.4s cubic-bezier(0.23, 1, 0.32, 1)","background-color":"rgba(255, 255, 255, 0.96)","box-shadow":"0 6px 12px 0 rgba(0, 0, 0, 0.12)","border-radius":"4px",color:"rgba(0, 0, 0, 0.65)","font-size":"12px","line-height":"20px",padding:"12px","min-width":"120px","max-width":"360px","font-family":"Roboto-Regular"},e[".".concat(n.TITLE)]={color:"rgba(0, 0, 0, 0.45)"},e[".".concat(n.LIST)]={margin:"0px","list-style-type":"none",padding:"0px"},e[".".concat(n.LIST_ITEM)]={"list-style-type":"none",display:"flex","line-height":"2em","align-items":"center","justify-content":"space-between","white-space":"nowrap"},e[".".concat(n.MARKER)]={width:"8px",height:"8px","border-radius":"50%",display:"inline-block","margin-right":"4px"},e[".".concat(n.NAME)]={display:"flex","align-items":"center","max-width":"216px"},e[".".concat(n.NAME_LABEL)]=(0,gi.Cl)({flex:1},Mp),e[".".concat(n.VALUE)]=(0,gi.Cl)({display:"inline-block",float:"right",flex:1,"text-align":"right","min-width":"28px","margin-left":"30px",color:"rgba(0, 0, 0, 0.85)"},Mp),e[".".concat(n.CROSSHAIR_X)]={position:"absolute",width:"1px","background-color":"rgba(0, 0, 0, 0.25)"},e[".".concat(n.CROSSHAIR_Y)]={position:"absolute",height:"1px","background-color":"rgba(0, 0, 0, 0.25)"},e}var Sp=function(t){function e(e){var n,r,i=this,A=null===(r=null===(n=e.style)||void 0===n?void 0:n.template)||void 0===r?void 0:r.prefixCls,o=Qp(A);return(i=t.call(this,e,{data:[],x:0,y:0,visibility:"visible",title:"",position:"bottom-right",offset:[5,5],enterable:!1,container:{x:0,y:0},bounding:null,template:{prefixCls:"",container:'<div class="'.concat(o.CONTAINER,'"></div>'),title:'<div class="'.concat(o.TITLE,'"></div>'),item:'<li class="'.concat(o.LIST_ITEM,'" data-index={index}>\n <span class="').concat(o.NAME,'">\n <span class="').concat(o.MARKER,'" style="background:{color}"></span>\n <span class="').concat(o.NAME_LABEL,'" title="{name}">{name}</span>\n </span>\n <span class="').concat(o.VALUE,'" title="{value}">{value}</span>\n </li>')},style:Up(A)})||this).timestamp=-1,i.prevCustomContentKey=i.attributes.contentKey,i.initShape(),i.render(i.attributes,i),i}return(0,gi.C6)(e,t),Object.defineProperty(e.prototype,"HTMLTooltipElement",{get:function(){return this.element},enumerable:!1,configurable:!0}),e.prototype.getContainer=function(){return this.element},Object.defineProperty(e.prototype,"elementSize",{get:function(){return{width:this.element.offsetWidth,height:this.element.offsetHeight}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"HTMLTooltipItemsElements",{get:function(){var t=this.attributes,e=t.template;return t.data.map(function(t,n){var r=t.name,i=void 0===r?"":r,A=t.color,o=void 0===A?"black":A,a=t.index,s=(0,gi.Tt)(t,["name","color","index"]),l=(0,gi.Cl)({name:i,color:o,index:null!=a?a:n},s);return kp(function(t,e){return t&&e?t.replace(/\\?\{([^{}]+)\}/g,function(t,n){return"\\"===t.charAt(0)?t.slice(1):void 0===e[n]?"":e[n]}):t}(e.item,l))})},enumerable:!1,configurable:!0}),e.prototype.render=function(t,e){this.renderHTMLTooltipElement(),this.updatePosition()},e.prototype.destroy=function(){var e;null===(e=this.element)||void 0===e||e.remove(),t.prototype.destroy.call(this)},e.prototype.show=function(t,e){var n=this;if(void 0!==t&&void 0!==e){var r=function(){n.attributes.x=null!=t?t:n.attributes.x,n.attributes.y=null!=e?e:n.attributes.y,n.updatePosition()};"hidden"===this.element.style.visibility?this.closeTransition(r):r()}this.element.style.visibility="visible"},e.prototype.hide=function(t,e){void 0===t&&(t=0),void 0===e&&(e=0),this.attributes.enterable&&this.isCursorEntered(t,e)||(this.element.style.visibility="hidden")},e.prototype.initShape=function(){this.element=kp(this.attributes.template.container),this.id&&this.element.setAttribute("id",this.id)},e.prototype.renderCustomContent=function(){if(void 0===this.prevCustomContentKey||this.prevCustomContentKey!==this.attributes.contentKey){this.prevCustomContentKey=this.attributes.contentKey;var t=this.attributes.content;t&&("string"==typeof t?this.element.innerHTML=t:Fp(this.element,t))}},e.prototype.renderHTMLTooltipElement=function(){var t,e,n=this.attributes,r=n.template,i=n.title,A=n.enterable,o=n.style,a=n.content,s=Qp(r.prefixCls),l=this.element;if(this.element.style.pointerEvents=A?"auto":"none",a)this.renderCustomContent();else{i?(l.innerHTML=r.title,l.getElementsByClassName(s.TITLE)[0].innerHTML=i):null===(e=null===(t=l.getElementsByClassName(s.TITLE))||void 0===t?void 0:t[0])||void 0===e||e.remove();var c=this.HTMLTooltipItemsElements,u=document.createElement("ul");u.className=s.LIST,Fp(u,c);var d=this.element.querySelector(".".concat(s.LIST));d?d.replaceWith(u):l.appendChild(u)}!function(t,e){Object.entries(e).forEach(function(e){var n=(0,gi.zs)(e,2),r=n[0],i=n[1];(0,gi.fX)([t],(0,gi.zs)(t.querySelectorAll(r)),!1).filter(function(t){return t.matches(r)}).forEach(function(t){t&&(t.style.cssText+=Object.entries(i).reduce(function(t,e){return"".concat(t).concat(e.join(":"),";")},""))})})}(l,o)},e.prototype.getRelativeOffsetFromCursor=function(t){var e=this.attributes,n=e.offset,r=(t||e.position).split("-"),i={left:[-1,0],right:[1,0],top:[0,-1],bottom:[0,1]},A=this.elementSize,o=A.width,a=A.height,s=[-o/2,-a/2];return r.forEach(function(t){var e=(0,gi.zs)(s,2),r=e[0],A=e[1],l=(0,gi.zs)(i[t],2);s=[r+(o/2+n[0])*l[0],A+(a/2+n[1])*l[1]]}),s},e.prototype.setOffsetPosition=function(t){var e=(0,gi.zs)(t,2),n=e[1],r=this.attributes,i=r.x,A=r.y,o=void 0===A?0:A,a=r.container,s=a.y;this.element.style.left="".concat(+(void 0===i?0:i)+a.x+e[0],"px"),this.element.style.top="".concat(+o+s+n,"px")},e.prototype.updatePosition=function(){var t=this.attributes.showDelay,e=void 0===t?60:t,n=Date.now();this.timestamp>0&&n-this.timestamp<e||(this.timestamp=n,this.setOffsetPosition(this.autoPosition(this.getRelativeOffsetFromCursor())))},e.prototype.autoPosition=function(t){var e=(0,gi.zs)(t,2),n=e[0],r=e[1],i=this.attributes,A=i.bounding,o=i.position;if(!A)return[n,r];var a=this.element,s=a.offsetWidth,l=a.offsetHeight,c=(0,gi.zs)([+i.x+n,+i.y+r],2),u=c[0],d=c[1],f={left:"right",right:"left",top:"bottom",bottom:"top"},h=A.x,p=A.y,g={left:u<h,right:u+s>h+A.width,top:d<p,bottom:d+l>p+A.height},m=[];o.split("-").forEach(function(t){m.push(g[t]?f[t]:t)});var y=m.join("-");return this.getRelativeOffsetFromCursor(y)},e.prototype.isCursorEntered=function(t,e){if(this.element){var n=this.element.getBoundingClientRect();return new Kc(n.x,n.y,n.width,n.height).isPointIn(t,e)}return!1},e.prototype.closeTransition=function(t){var e=this,n=this.element.style.transition;this.element.style.transition="none",t(),setTimeout(function(){e.element.style.transition=n},10)},e.tag="tooltip",e}(ki);function _p(t,e,n={},r=!1){if(Rt(t))return t;if(Array.isArray(t)&&r)return t;const i=Pt(t,e);return Q(n,i)}function Ip(t,e={}){return Rt(t)||Array.isArray(t)?t:Tp(t)?Q(e,t):t}function Tp(t){if(0===Object.keys(t).length)return!0;const{title:e,items:n}=t;return void 0!==e||void 0!==n}function Lp(t,e){return"object"==typeof t?Pt(t,e):t}function Pp(t,e,n,r){const{radar:i}=t,[A]=r,o=A.getOptions().name,[a,s]=Y(n),{axisRadar:l={}}=e;return Object.assign(Object.assign({},l),{grid:"position"===o,gridConnect:"line",gridControlAngles:new Array(i.count).fill(0).map((t,e)=>(s-a)/i.count*e)})}const jp=t=>{const{important:e={}}=t,n=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n}(t,["important"]);return r=>{const{theme:i,coordinate:A,scales:o}=r;return cu(Object.assign(Object.assign(Object.assign({},n),function(t){const e=t%(2*Math.PI);return e===Math.PI/2?{titleTransform:"translate(0, 50%)"}:e>-Math.PI/2&&e<Math.PI/2?{titleTransform:"translate(50%, 0)"}:e>Math.PI/2&&e<3*Math.PI/2?{titleTransform:"translate(-50%, 0)"}:{}}(t.orientation)),{important:Object.assign(Object.assign({},Pp(t,i,A,o)),e)}))(r)}};jp.props=Object.assign(Object.assign({},cu.props),{defaultPosition:"center"});const Hp=t=>(...e)=>lh(Object.assign({},{block:!0},t))(...e);Hp.props=Object.assign(Object.assign({},lh.props),{defaultPosition:"top",defaultOrientation:"horizontal"});const Np=t=>e=>{const{scales:n}=e,r=Jc(n,"size");return lh(Object.assign({},{type:"size",data:r.getTicks().map((t,e)=>({value:t,label:String(t)}))},t))(e)};Np.props=Object.assign(Object.assign({},lh.props),{defaultPosition:"top",defaultOrientation:"horizontal"});const Dp=t=>Np(Object.assign({},{block:!0},t));Dp.props=Object.assign(Object.assign({},lh.props),{defaultPosition:"top",defaultOrientation:"horizontal"});const Rp=({static:t=!1}={})=>e=>{const{width:n,height:r,depth:i,paddingLeft:A,paddingRight:o,paddingTop:a,paddingBottom:s,padding:l,inset:c,insetLeft:u,insetTop:d,insetRight:f,insetBottom:h,margin:p,marginLeft:g,marginBottom:m,marginTop:y,marginRight:v,data:b,coordinate:w,theme:B,component:x,interaction:C,x:E,y:O,z:k,key:F,frame:Q,labelTransform:M,parentKey:U,clip:S,viewStyle:_,title:I}=e,T=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n}(e,["width","height","depth","paddingLeft","paddingRight","paddingTop","paddingBottom","padding","inset","insetLeft","insetTop","insetRight","insetBottom","margin","marginLeft","marginBottom","marginTop","marginRight","data","coordinate","theme","component","interaction","x","y","z","key","frame","labelTransform","parentKey","clip","viewStyle","title"]);return[Object.assign(Object.assign({type:"standardView",x:E,y:O,z:k,key:F,width:n,height:r,depth:i,padding:l,paddingLeft:A,paddingRight:o,paddingTop:a,inset:c,insetLeft:u,insetTop:d,insetRight:f,insetBottom:h,paddingBottom:s,theme:B,coordinate:w,component:x,interaction:C,frame:Q,labelTransform:M,margin:p,marginLeft:g,marginBottom:m,marginTop:y,marginRight:v,parentKey:U,clip:S,style:_},!t&&{title:I}),{marks:[Object.assign(Object.assign(Object.assign({},T),{key:`${F}-0`,data:b}),t&&{title:I})]})]};Rp.props={};function Kp(t){return(e,...n)=>Q({},t(e,...n),e)}function zp(t){return(e,...n)=>Q({},e,t(e,...n))}function Gp(t,e){if(!t)return e;if(Array.isArray(t))return t;if(function(t){return!(t instanceof Date)&&"object"==typeof t}(t)){const{value:n=e}=t,r=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n}(t,["value"]);return Object.assign(Object.assign({},r),{value:n})}return t}var Vp=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n};const Wp=()=>t=>{const{children:e}=t,n=Vp(t,["children"]);if(!Array.isArray(e))return[];const{data:r,scale:i={},axis:A={},legend:o={},encode:a={},transform:s=[],slider:l={}}=n,c=Vp(n,["data","scale","axis","legend","encode","transform","slider"]),u=e.map(t=>{var{data:e,scale:n={},axis:c={},legend:u={},encode:d={},transform:f=[],slider:h={}}=t,p=Vp(t,["data","scale","axis","legend","encode","transform","slider"]);return Object.assign({data:Gp(e,r),scale:Q({},i,n),encode:Q({},a,d),transform:[...s,...f],axis:!(!c||!A)&&Q({},A,c),legend:!(!u||!o)&&Q({},o,u),slider:Q({},l,h)},p)});return[Object.assign(Object.assign({},c),{marks:u,type:"standardView",slider:l})]};function Xp(t,e){let n,r=-1,i=-1;if(void 0===e)for(const e of t)++i,null!=e&&(n<e||void 0===n&&e>=e)&&(n=e,r=i);else for(let A of t)null!=(A=e(A,++i,t))&&(n<A||void 0===n&&A>=A)&&(n=A,r=i);return r}function Yp(t,e,n,r){const i=e.length/2,A=e.slice(0,i),o=e.slice(i);let a=Xp(A,(t,e)=>Math.abs(t[1]-o[e][1]));a=Math.max(Math.min(a,i-2),1);const s=t=>[A[t][0],(A[t][1]+o[t][1])/2],l=s(a),c=s(a-1),u=Yt(Vt(s(a+1),c))/Math.PI*180;return{x:l[0],y:l[1],transform:`rotate(${u})`,textAlign:"center",textBaseline:"middle"}}function $p(t,e,n,r){const{bounds:i}=n,[[A,o],[a,s]]=i,l=a-A,c=s-o;return(t=>{const{x:e,y:r}=t,i=Nt(n.x,l),a=Nt(n.y,c);return Object.assign(Object.assign({},t),{x:(i||e)+A,y:(a||r)+o})})("left"===t?{x:0,y:c/2,textAlign:"start",textBaseline:"middle"}:"right"===t?{x:l,y:c/2,textAlign:"end",textBaseline:"middle"}:"top"===t?{x:l/2,y:0,textAlign:"center",textBaseline:"top"}:"bottom"===t?{x:l/2,y:c,textAlign:"center",textBaseline:"bottom"}:"top-left"===t?{x:0,y:0,textAlign:"start",textBaseline:"top"}:"top-right"===t?{x:l,y:0,textAlign:"end",textBaseline:"top"}:"bottom-left"===t?{x:0,y:c,textAlign:"start",textBaseline:"bottom"}:"bottom-right"===t?{x:l,y:c,textAlign:"end",textBaseline:"bottom"}:{x:l/2,y:c/2,textAlign:"center",textBaseline:"middle"})}function qp(t,e,n,r){const{y:i,y1:A,autoRotate:o,rotateToAlignArc:a}=n,s=r.getCenter(),l=Te(r,e,[i,A]),{innerRadius:c,outerRadius:u,startAngle:d,endAngle:f}=l,h="inside"===t?(d+f)/2:f,p=Jp(h,o,a),g=(()=>{const[n,r]=e,i=c+.5*(u-c),[A,o]="inside"===t?Zp(s,h,i):Jt(n,r);return{x:A,y:o}})();return Object.assign(Object.assign({},g),{textAlign:"inside"===t?"center":"start",textBaseline:"middle",rotate:p})}function Zp(t,e,n){return[t[0]+Math.sin(e)*n,t[1]-Math.cos(e)*n]}function Jp(t,e,n){if(!e)return 0;const r=n?0:Math.sin(t)<0?90:-90;return t/Math.PI*180+r}function tg(t,e,n,r){const{y:i,y1:A,autoRotate:o,rotateToAlignArc:a,radius:s=.5,offset:l=0}=n,c=Te(r,e,[i,A]),{startAngle:u,endAngle:d}=c,f=r.getCenter(),h=(u+d)/2,p={textAlign:"center",textBaseline:"middle",rotate:Jp(h,o,a)},{innerRadius:g,outerRadius:m}=c,y=g+(m-g)*s+l,[v,b]=Zp(f,h,y);return Object.assign({x:v,y:b},p)}function eg(t){return void 0===t?null:t}function ng(t,e,n,r){const{bounds:i}=n,[A]=i;return{x:eg(A[0]),y:eg(A[1])}}function rg(t,e,n,r){const{bounds:i}=n;return 1===i.length?ng(0,0,n):(K(r)?qp:W(r)?tg:$p)(t,e,n,r)}function ig(t,e,n){const r=Te(n,t,[e.y,e.y1]),{innerRadius:i,outerRadius:A}=r;return i+(A-i)}function Ag(t,e,n){const r=Te(n,t,[e.y,e.y1]),{startAngle:i,endAngle:A}=r;return(i+A)/2}function og(t,e,n,r){const{autoRotate:i,rotateToAlignArc:A,offset:o=0,connector:a=!0,connectorLength:s=o,connectorLength2:l=0,connectorDistance:c=0}=n,u=r.getCenter(),d=Ag(e,n,r),f=Math.sin(d)>0?1:-1,h=Jp(d,i,A),p={textAlign:f>0||K(r)?"start":"end",textBaseline:"middle",rotate:h},g=ig(e,n,r),m=g+(a?s:o),[[y,v],[b,w],[B,x]]=function(t,e,n,r,i){const[A,o]=Zp(t,e,n),[a,s]=Zp(t,e,r);return[[A,o],[a,s],[a+(Math.sin(e)>0?1:-1)*i,s]]}(u,d,g,m,a?l:0),C=a?+c*f:0,E=B+C,O={connector:a,connectorPoints:[[b-E,w-x],[B-E,x-x]]};return Object.assign(Object.assign({x0:y,y0:v,x:B+C,y:x},p),O)}function ag(t,e,n,r){const{bounds:i}=n;return 1===i.length?ng(0,0,n):(K(r)?qp:W(r)?og:$p)(t,e,n,r)}function sg(t,e={}){const{labelHeight:n=14,height:r}=e,i=Ju(t,t=>t.y),A=i.length,o=new Array(A);for(let t=0;t<A;t++){const e=i[t],{y:r}=e;o[t]={y:r,y1:r+n,labels:[r]}}let a=!0;for(;a;){a=!1;for(let t=o.length-1;t>0;t--){const e=o[t],n=o[t-1];if(n.y1>e.y){a=!0,n.labels.push(...e.labels),o.splice(t,1),n.y1+=e.y1-e.y;const i=n.y1-n.y;n.y1=Math.max(Math.min(n.y1,r),i),n.y=n.y1-i}}}let s=0;for(const t of o){const{y:e,labels:r}=t;let A=e-n;for(const t of r){const e=i[s++];e.connectorPoints[0][1]-=A+n-t,e.y=A+n,A+=n}}}function lg(t,e){const n=Ju(t,t=>t.y),{height:r,labelHeight:i=14}=e,A=Math.ceil(r/i);if(n.length<=A)return sg(n,e);const o=[];for(let t=0;t<n.length;t++)t<n.length-A?(n[t].opacity=0,n[t].connector=!1):o.push(n[t]);sg(o,e)}Wp.props={};const cg=new WeakMap;function ug(t,e,n,r,i,A){if(!W(r))return{};if(cg.has(e))return cg.get(e);const o=A.map(t=>function(t,e,n){const{connectorLength:r,connectorLength2:i,connectorDistance:A}=e,o=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n}(og(0,t,e,n),[]),a=n.getCenter(),s=ig(t,e,n),l=Ag(t,e,n),c=s+r+i,u=Math.sin(l)>0?1:-1,d=a[0]+(c+ +A)*u,{x:f}=o,h=d-f;return o.x+=h,o.connectorPoints[0][0]-=h,o}(t,n,r)),{width:a,height:s}=r.getOptions(),l=o.filter(t=>t.x<a/2),c=o.filter(t=>t.x>=a/2),u=Object.assign(Object.assign({},i),{height:s});return lg(l,u),lg(c,u),o.forEach((t,e)=>cg.set(A[e],t)),cg.get(e)}function dg(t,e,n,r){if(!W(r))return{};const{connectorLength:i,connectorLength2:A,connectorDistance:o}=n,a=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n}(og(0,e,n,r),[]),{x0:s,y0:l}=a,c=r.getCenter(),u=function(t){if(W(t)){const[e,n]=t.getSize(),r=t.getOptions().transformations.find(t=>"polar"===t[0]);if(r)return Math.max(e,n)/2*r[4]}return 0}(r),d=u+i,f=$t([s-c[0],l-c[1]]),h=Math.sin(f)>0?1:-1,[p,g]=Zp(c,f,d);return a.x=p+(A+o)*h,a.y=g,a}var fg=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n};const hg=(t,e)=>{const{coordinate:n,theme:i}=e,{render:A}=t;return(e,o,a,s)=>{const{text:l,transform:c="",transformOrigin:u,className:d=""}=o,f=fg(o,["text","x","y","transform","transformOrigin","className"]),h=function(t,e,n,i,A,o){const{position:a}=e,{render:s}=A,l=function(t,e){return void 0!==t?t:W(e)?"inside":D(e)?"right":"top"}(a,n),c=i[s?"htmlLabel":"inside"===l?"innerLabel":"label"],u=Object.assign({},c,e),d=r[Dr(l)];if(!d)throw new Error(`Unknown position: ${l}`);return Object.assign(Object.assign({},c),d(l,t,u,n,A,o))}(e,o,n,i,t,s),{rotate:p=0,transform:g=""}=h,m=fg(h,["rotate","transform"]);return zt(new Ki).call(Ue,m).style("text",`${l}`).style("className",`${d} g2-label`).style("innerHTML",A?A(l,o.datum,o.index):void 0).style("labelTransform",`${g} rotate(${+p}) ${c}`.trim()).style("labelTransformOrigin",u).style("coordCenter",n.getCenter()).call(Ue,f).node()}};hg.props={defaultMarker:"point"};var pg=function(t,e,n,r){return new(n||(n=Promise))(function(i,A){function o(t){try{s(r.next(t))}catch(t){A(t)}}function a(t){try{s(r.throw(t))}catch(t){A(t)}}function s(t){t.done?i(t.value):function(t){return t instanceof n?t:new n(function(e){e(t)})}(t.value).then(o,a)}s((r=r.apply(t,e||[])).next())})};const gg=.03,mg={fill:"#fff",stroke:"#aaa",lineDash:"4 3",lineWidth:.5,fillOpacity:1,strokeOpacity:1},yg=(t,e,n,r,i,A)=>{const o=[],a=[],s=r-1;for(let r=1;r<s;r++){const l=r/s*e,c=t+(r%2==0?n:-n);o.push(`${l},${c}`),a.push(`${l},${i?c-A:c+A}`)}return o.push(`${e},${t}`),a.push(`${e+A},${t}`),[o,a]},vg=(t,e)=>{const{context:n,selection:r,view:i}=e,A=r.select(".plot").node(),{document:o}=n.canvas,{scale:a}=i,s=new Map;return t=>{const{key:e,start:r,end:i,gap:l=gg,vertices:c=50,lineWidth:u=.5,verticeOffset:d=3}=t,f=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n}(t,["key","start","end","gap","vertices","lineWidth","verticeOffset"]),h=o.createElement("g",{id:`break-group-${e}`,className:sd}),p=Fl(a,"x.sortedDomain",[]),g=a.y.getOptions(),{range:m,domain:y}=g,v=y.indexOf(r),b=y.indexOf(i),{width:w,height:B}=A.getBBox();if(-1===v||-1===b||!p.length)return h;const x=m[0]>m[1],C=m[v]*B,E=m[b]*B;let O="",k="";for(const[t,{y:e,isLower:n}]of[{y:E,isLower:!1},{y:C,isLower:!0}].entries()){const r=x?u:-u,[i,A]=yg(e,w-0,d,c,n,r);0===t?(O=`M 0,${e} L ${i.join(" L ")} `,k=`M ${0-u},${e+r} L ${A.join(" L ")} `):(O+=`L ${w-0},${e} L ${[...i].reverse().join(" L ")} L 0,${e} Z`,k+=`L ${w-0+u+2},${e-r} L ${[...A].reverse().join(" L ")} L ${0-u},${e-r} Z`)}const F=Object.assign(Object.assign({},mg),f);try{const t=new $.wA({style:Object.assign(Object.assign({},F),{d:O})}),o=new $.wA({style:Object.assign(Object.assign({},F),{d:k,lineWidth:0,cursor:"pointer"})});o.addEventListener("click",t=>pg(void 0,void 0,void 0,function*(){t.stopPropagation(),2===t.detail&&(yield((t,e,r)=>pg(void 0,void 0,void 0,function*(){const{update:i,setState:A}=n.externals;A("options",n=>{const{marks:i}=n;if(!i||!i.length)return n;const A=i.map(t=>{const n=Fl(t,"scale.y.breaks",[]),i=n.filter(t=>t.start!==e&&t.end!==r&&!t.collapsed);return n.forEach(t=>{t.start===e&&t.end===r&&(t.collapsed=!0)}),console.log("breaks group:",n,i),Q({},t,{scale:{y:{breaks:i}}})});return s.set(t,{start:e,end:r}),Object.assign(Object.assign({},n),{marks:A})}),yield i()}))(e,r,i))})),h.appendChild(t),h.appendChild(o),A.addEventListener("click",t=>pg(void 0,void 0,void 0,function*(){2===t.detail&&(yield pg(void 0,void 0,void 0,function*(){if(!s.size)return;const{update:t,setState:e}=n.externals;e("options",t=>{const{marks:e}=t,n=e.map(t=>{const e=Fl(t,"scale.y.breaks",[]);return Bu(t,"scale.y.breaks",e.map(t=>Object.assign(Object.assign({},t),{collapsed:!1}))),t});return s.clear(),Object.assign(Object.assign({},t),{marks:n})}),yield t()}))})),A.appendChild(h)}catch(t){console.error("Failed to create break path:",t)}return h}};vg.props={};const bg="beforechangesize",wg="afterchangesize";function Bg(t,e,n,r=t=>!0){return i=>{if(!r(i))return;n.emit(`plot:${t}`,i);const{target:A}=i;if(!A)return;const{className:o}=A;if("plot"===o)return;const a=$d(A,t=>"element"===t.className),s=$d(A,t=>"component"===t.className),l=function(t){return $d(t,t=>"label"===t.className)}(A),c=a||s||l;if(!c)return;const{className:u,markType:d}=c,f=Object.assign(Object.assign({},i),{nativeEvent:!0});"element"===u?(f.data={data:Qt(c,e)},n.emit(`element:${t}`,f),n.emit(`${d}:${t}`,f)):"label"===u?(f.data={data:c.attributes.datum},n.emit(`label:${t}`,f),o.split(/\s+/).filter(Boolean).forEach(e=>{n.emit(`${e}:${t}`,f)})):(n.emit(`component:${t}`,f),o.split(/\s+/).filter(Boolean).forEach(e=>{n.emit(`${e}:${t}`,f)}))}}function xg(){return(t,e,n)=>{const{container:r,view:i}=t,A=Bg("click",i,n,t=>1===t.detail),o=Bg("dblclick",i,n,t=>2===t.detail),a=Bg("pointertap",i,n),s=Bg("pointerdown",i,n),l=Bg("pointerup",i,n),c=Bg("pointerover",i,n),u=Bg("pointerout",i,n),d=Bg("pointermove",i,n),f=Bg("pointerenter",i,n),h=Bg("pointerleave",i,n),p=Bg("pointerupoutside",i,n),g=Bg("dragstart",i,n),m=Bg("drag",i,n),y=Bg("dragend",i,n),v=Bg("dragenter",i,n),b=Bg("dragleave",i,n),w=Bg("dragover",i,n),B=Bg("DROP",i,n);return r.addEventListener("click",A),r.addEventListener("click",o),r.addEventListener("pointertap",a),r.addEventListener("pointerdown",s),r.addEventListener("pointerup",l),r.addEventListener("pointerover",c),r.addEventListener("pointerout",u),r.addEventListener("pointermove",d),r.addEventListener("pointerenter",f),r.addEventListener("pointerleave",h),r.addEventListener("pointerupoutside",p),r.addEventListener("dragstart",g),r.addEventListener("drag",m),r.addEventListener("dragend",y),r.addEventListener("dragenter",v),r.addEventListener("dragleave",b),r.addEventListener("dragover",w),r.addEventListener("drop",B),()=>{r.removeEventListener("click",A),r.removeEventListener("click",o),r.removeEventListener("pointertap",a),r.removeEventListener("pointerdown",s),r.removeEventListener("pointerup",l),r.removeEventListener("pointerover",c),r.removeEventListener("pointerout",u),r.removeEventListener("pointermove",d),r.removeEventListener("pointerenter",f),r.removeEventListener("pointerleave",h),r.removeEventListener("pointerupoutside",p),r.removeEventListener("dragstart",g),r.removeEventListener("drag",m),r.removeEventListener("dragend",y),r.removeEventListener("dragenter",v),r.removeEventListener("dragleave",b),r.removeEventListener("dragover",w),r.removeEventListener("drop",B)}}}xg.props={reapplyWhenUpdate:!0};function Cg(t,e){const n=Object.assign(Object.assign({},{"component.axisRadar":jp,"component.axisLinear":cu,"component.axisArc":uu,"component.legendContinuousBlock":Hp,"component.legendContinuousBlockSize":Dp,"component.legendContinuousSize":Np,"interaction.event":xg,"composition.mark":Rp,"composition.view":Wp,"shape.label.label":hg,"shape.break":vg}),e),r=e=>{if("string"!=typeof e)return e;const r=`${t}.${e}`;return n[r]||_t(`Unknown Component: ${r}`)};return[(t,e)=>{const{type:n}=t,i=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n}(t,["type"]);n||_t("Plot type is required!");const A=r(n);return null==A?void 0:A(i,e)},r]}function Eg(t){const{canvas:e,group:n}=t;return(null==e?void 0:e.document)||(null==n?void 0:n.ownerDocument)||_t("Cannot find library document")}var Og=function(t,e,n,r){return new(n||(n=Promise))(function(i,A){function o(t){try{s(r.next(t))}catch(t){A(t)}}function a(t){try{s(r.throw(t))}catch(t){A(t)}}function s(t){t.done?i(t.value):function(t){return t instanceof n?t:new n(function(e){e(t)})}(t.value).then(o,a)}s((r=r.apply(t,e||[])).next())})};function kg(t,e,n){return Og(this,void 0,void 0,function*(){const[r,i]=yield function(t,e,n){return Og(this,void 0,void 0,function*(){const{library:r}=n,[i]=Cg("transform",r),{preInference:A=[],postInference:o=[]}=e,{transform:a=[]}=t,s=[$y,qy,Zy,Jy,tv,ev,iv,ov,Av,nv,av,...A.map(i),...a.map(i),...o.map(i),rv];let l=[],c=t;for(const t of s)[l,c]=yield t(l,c,n);return[l,c]})}(t,e,n),{encode:A,scale:o,data:a,tooltip:s,key:l}=i;if(!1===Array.isArray(a))return null;const{channels:c}=e,u=it(Object.entries(A).filter(([,t])=>Tt(t)),t=>t.map(([t,e])=>Object.assign({name:t},e)),([t])=>{var e;const n=null===(e=/([^\d]+)\d*$/.exec(t))||void 0===e?void 0:e[1],r=c.find(t=>t.name===n);return(null==r?void 0:r.independent)?t:n}),d=c.filter(t=>{const{name:e,required:n}=t;if(u.find(([t])=>t===e))return!0;if(n)throw new Error(`Missing encoding for channel: ${e}.`);return!1}).flatMap(t=>{const{name:e,scale:n,scaleKey:r,range:i,quantitative:A,ordinal:a}=t;return u.filter(([t])=>t.startsWith(e)).map(([t,e],s)=>{const c=e.some(t=>t.visual),u=e.some(t=>t.constant),d=o[t]||{},{independent:f=!1,key:h=r||t,type:p=(u?"constant":c?"identity":n)}=d,g=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n}(d,["independent","key","type"]),m="constant"===p,y=m?void 0:i;return{name:t,values:e,scaleKey:f||m?Symbol("independent"):h,scale:Object.assign(Object.assign({type:p,markKey:l,range:y},g),{quantitative:A,ordinal:a})}})});return[i,Object.assign(Object.assign({},e),{index:r,channels:d,tooltip:s})]})}function Fg(t){const{type:e,value:n}=t;return"field"===e&&"string"==typeof n?n:null}function Qg(t){for(var e=t.length/6|0,n=new Array(e),r=0;r<e;)n[r]="#"+t.slice(6*r,6*++r);return n}const Mg=Qg("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"),Ug=Qg("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666"),Sg=Qg("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666"),_g=Qg("4269d0efb118ff725c6cc5b03ca951ff8ab7a463f297bbf59c6b4e9498a0"),Ig=Qg("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928"),Tg=Qg("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2"),Lg=Qg("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc"),Pg=Qg("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999"),jg=Qg("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3"),Hg=Qg("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f"),Ng=Qg("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab");var Dg=n("./node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/rgb.js");const Rg=t=>(0,Dg.Ik)(t[t.length-1]);var Kg=new Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e","8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(Qg);const zg=Rg(Kg);var Gg=new Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837","40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(Qg);const Vg=Rg(Gg);var Wg=new Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419","8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(Qg);const Xg=Rg(Wg);var Yg=new Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(Qg);const $g=Rg(Yg);var qg=new Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(Qg);const Zg=Rg(qg);var Jg=new Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040","ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(Qg);const tm=Rg(Jg);var em=new Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4","d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(Qg);const nm=Rg(em);var rm=new Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850","d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(Qg);const im=Rg(rm);var Am=new Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd","9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(Qg);const om=Rg(Am);var am=new Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(Qg);const sm=Rg(am);var lm=new Array(3).concat("e0ecf49ebcda8856a7","edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(Qg);const cm=Rg(lm);var um=new Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(Qg);const dm=Rg(um);var fm=new Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(Qg);const hm=Rg(fm);var pm=new Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(Qg);const gm=Rg(pm);var mm=new Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(Qg);const ym=Rg(mm);var vm=new Array(3).concat("e7e1efc994c7dd1c77","f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(Qg);const bm=Rg(vm);var wm=new Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(Qg);const Bm=Rg(wm);var xm=new Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(Qg);const Cm=Rg(xm);var Em=new Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837","ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(Qg);const Om=Rg(Em);var km=new Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(Qg);const Fm=Rg(km);var Qm=new Array(3).concat("ffeda0feb24cf03b20","ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(Qg);const Mm=Rg(Qm);var Um=new Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(Qg);const Sm=Rg(Um);var _m=new Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(Qg);const Im=Rg(_m);var Tm=new Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525","f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(Qg);const Lm=Rg(Tm);var Pm=new Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(Qg);const jm=Rg(Pm);var Hm=new Array(3).concat("fee0d2fc9272de2d26","fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(Qg);const Nm=Rg(Hm);var Dm=new Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(Qg);const Rm=Rg(Dm);function Km(t){return t=Math.max(0,Math.min(1,t)),"rgb("+Math.max(0,Math.min(255,Math.round(-4.54-t*(35.34-t*(2381.73-t*(6402.7-t*(7024.72-2710.57*t)))))))+", "+Math.max(0,Math.min(255,Math.round(32.49+t*(170.73+t*(52.82-t*(131.46-t*(176.58-67.37*t)))))))+", "+Math.max(0,Math.min(255,Math.round(81.24+t*(442.36-t*(2482.43-t*(6167.24-t*(6614.94-2475.67*t)))))))+")"}var zm=n("./node_modules/.pnpm/d3-color@3.1.0/node_modules/d3-color/src/define.js"),Gm=n("./node_modules/.pnpm/d3-color@3.1.0/node_modules/d3-color/src/color.js");const Vm=Math.PI/180,Wm=180/Math.PI;var Xm=-.14861,Ym=1.78277,$m=-.29227,qm=-.90649,Zm=1.97294,Jm=Zm*qm,ty=Zm*Ym,ey=Ym*$m-qm*Xm;function ny(t,e,n,r){return 1===arguments.length?function(t){if(t instanceof ry)return new ry(t.h,t.s,t.l,t.opacity);t instanceof Gm.Gw||(t=(0,Gm.b)(t));var e=t.g/255,n=t.b/255,r=(ey*n+Jm*(t.r/255)-ty*e)/(ey+Jm-ty),i=n-r,A=(Zm*(e-r)-$m*i)/qm,o=Math.sqrt(A*A+i*i)/(Zm*r*(1-r)),a=o?Math.atan2(A,i)*Wm-120:NaN;return new ry(a<0?a+360:a,o,r,t.opacity)}(t):new ry(t,e,n,r??1)}function ry(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}(0,zm.A)(ry,ny,(0,zm.X)(Gm.Q1,{brighter(t){return t=null==t?Gm.Uw:Math.pow(Gm.Uw,t),new ry(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?Gm.ef:Math.pow(Gm.ef,t),new ry(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=isNaN(this.h)?0:(this.h+120)*Vm,e=+this.l,n=isNaN(this.s)?0:this.s*e*(1-e),r=Math.cos(t),i=Math.sin(t);return new Gm.Gw(255*(e+n*(Xm*r+Ym*i)),255*(e+n*($m*r+qm*i)),255*(e+n*(Zm*r)),this.opacity)}}));var iy=n("./node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/color.js");function Ay(t){return function e(n){function r(e,r){var i=t((e=ny(e)).h,(r=ny(r)).h),A=(0,iy.Ay)(e.s,r.s),o=(0,iy.Ay)(e.l,r.l),a=(0,iy.Ay)(e.opacity,r.opacity);return function(t){return e.h=i(t),e.s=A(t),e.l=o(Math.pow(t,n)),e.opacity=a(t),e+""}}return n=+n,r.gamma=e,r}(1)}Ay(iy.lG);var oy=Ay(iy.Ay);const ay=oy(ny(300,.5,0),ny(-240,.5,1));var sy=oy(ny(-100,.75,.35),ny(80,1.5,.8)),ly=oy(ny(260,.75,.35),ny(80,1.5,.8)),cy=ny();function uy(t){(t<0||t>1)&&(t-=Math.floor(t));var e=Math.abs(t-.5);return cy.h=360*t-100,cy.s=1.5-1.5*e,cy.l=.8-.9*e,cy+""}var dy=(0,Gm.Qh)(),fy=Math.PI/3,hy=2*Math.PI/3;function py(t){var e;return t=(.5-t)*Math.PI,dy.r=255*(e=Math.sin(t))*e,dy.g=255*(e=Math.sin(t+fy))*e,dy.b=255*(e=Math.sin(t+hy))*e,dy+""}function gy(t){return t=Math.max(0,Math.min(1,t)),"rgb("+Math.max(0,Math.min(255,Math.round(34.61+t*(1172.33-t*(10793.56-t*(33300.12-t*(38394.49-14825.05*t)))))))+", "+Math.max(0,Math.min(255,Math.round(23.31+t*(557.33+t*(1225.33-t*(3574.96-t*(1073.77+707.56*t)))))))+", "+Math.max(0,Math.min(255,Math.round(27.2+t*(3211.1-t*(15327.97-t*(27814-t*(22569.18-6838.66*t)))))))+")"}function my(t){var e=t.length;return function(n){return t[Math.max(0,Math.min(e-1,Math.floor(n*e)))]}}const yy=my(Qg("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));var vy=my(Qg("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),by=my(Qg("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),wy=my(Qg("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921")),By=n("./node_modules/.pnpm/@antv+coord@0.4.7/node_modules/@antv/coord/dist/coordinate.min.js"),xy=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n};function Cy(t,e){const{coordinate:n={},coordinates:r}=t,i=xy(t,["coordinate","coordinates"]);if(r)return t;const{type:A,transform:o=[]}=n,a=xy(n,["type","transform"]);if(!A)return Object.assign(Object.assign({},i),{coordinates:o});const[,s]=Cg("coordinate",e),{transform:l=!1}=s(A).props||{};if(l)throw new Error(`Unknown coordinate: ${A}.`);return Object.assign(Object.assign({},i),{coordinates:[Object.assign({type:A},a),...o]})}function Ey(t,e){return t.filter(t=>t.type===e)}function Oy(t){return Ey(t,"polar").length>0}function ky(t){return Ey(t,"transpose").length%2==1}function Fy(t){return Ey(t,"theta").length>0}function Qy(t){return Ey(t,"radial").length>0}function My(t){return Ey(t,"radar").length>0}function Uy(t,e,n,r,A,o){const{guide:a={}}=n,s=function(t,e,n){const{type:r,domain:i,range:A,quantitative:o,ordinal:a}=n;return void 0!==r?r:function(t){return Wy(t,Dt)}(e)?"identity":"string"==typeof A?"linear":(i||A||[]).length>2?Ry(t,a):void 0!==i?Gy([i])?Ry(t,a):Vy(e)?"time":Ky(t,A,o):Gy(e)?Ry(t,a):Vy(e)?"time":Ky(t,A,o)}(t,e,n);if("string"!=typeof s)return n;const l=function(t,e,n,r){const{domain:i}=r;if(void 0!==i)return i;switch(t){case"linear":case"time":case"log":case"pow":case"sqrt":case"quantize":case"threshold":return zy(function(t,e){const{zero:n=!1}=e;let r=1/0,i=-1/0;for(const e of t)for(const t of e)Tt(t)&&(r=Math.min(r,+t),i=Math.max(i,+t));return r===1/0?[]:n?[Math.min(0,r),i]:[r,i]}(n,r),r);case"band":case"ordinal":case"point":return function(t){return Array.from(new Set(t.flat()))}(n);case"quantile":return function(t){return t.flat().sort()}(n);case"sequential":return zy(function(t){let e=1/0,n=-1/0;for(const r of t)for(const t of r)Tt(t)&&(e=Math.min(e,+t),n=Math.max(n,+t));return e===1/0?[]:[e<0?-n:e,n]}(n),r);default:return[]}}(s,0,e,n),c=function(t,e,n){const{ratio:r}=n;return null==r?e:jy({type:t})?function(t,e,n){const r=t.map(Number),i=new xe({domain:r,range:[r[0],r[0]+(r[r.length-1]-r[0])*e]});return t.map("time"===n?t=>new Date(i.map(t)):t=>i.map(t))}(e,r,t):Hy({type:t})?function(t,e){const n=Math.round(t.length*e);return t.slice(0,n)}(e,r):e}(s,l,n);return Object.assign(Object.assign(Object.assign({},n),function(t,e,n,r,A){switch(t){case"linear":case"time":case"log":case"pow":case"sqrt":return function(t,e){const{interpolate:n=fe,nice:r=!1,tickCount:i=5}=e;return Object.assign(Object.assign({},e),{interpolate:n,nice:r,tickCount:i})}(0,r);case"band":case"point":return function(t,e,n,r){if(void 0!==r.padding||void 0!==r.paddingInner||void 0!==r.paddingOuter)return Object.assign(Object.assign({},r),{unknown:NaN});const i=function(t,e,n){return"enterDelay"===e||"enterDuration"===e||"size"===e?0:"band"===t?Fy(n)?0:.1:"point"===t?.5:0}(t,e,n),{paddingInner:A=i,paddingOuter:o=i}=r;return Object.assign(Object.assign({},r),{paddingInner:A,paddingOuter:o,padding:i,unknown:NaN})}(t,e,A,r);case"sequential":return function(t){const{palette:e="ylGnBu",offset:n}=t,r=Dc(e),A=i[`interpolate${r}`];if(!A)throw new Error(`Unknown palette: ${r}`);return{interpolator:n?t=>A(n(t)):A}}(r);default:return r}}(s,t,0,n,r)),{domain:c,range:Ny(s,t,e,n,c,A,o),expectedDomain:l,guide:a,name:t,type:s})}function Sy(t,e){const n={};for(const r of t){const{values:t,name:i}=r,A=e[i];for(const e of t){const{name:t,value:r}=e;n[t]=r.map(t=>A.map(t))}}return n}function _y(t,e){const n=Object.keys(t);for(const r of Object.values(e)){const{name:e}=r.getOptions();if(e in t){const i=n.filter(t=>t.startsWith(e)).map(t=>+(t.replace(e,"")||0)),A=ko(i)+1,o=`${e}${A}`;t[o]=r,r.getOptions().key=o}else t[e]=r}return t}function Iy(t,e){const[n]=Cg("scale",e),{relations:r}=t,[i]=function(t){if(!t||!Array.isArray(t))return[Mt,Mt];let e,n;return[r=>{var i;e=r.map.bind(r),n=null===(i=r.invert)||void 0===i?void 0:i.bind(r);const A=t.filter(([t])=>"function"==typeof t),o=t.filter(([t])=>"function"!=typeof t),a=new Map(o);if(r.map=t=>{for(const[e,n]of A)if(e(t))return n;return a.has(t)?a.get(t):e(t)},!n)return r;const s=new Map(o.map(([t,e])=>[e,t])),l=new Map(A.map(([t,e])=>[e,t]));return r.invert=t=>l.has(t)?t:s.has(t)?s.get(t):n(t),r},t=>(null!==e&&(t.map=e),null!==n&&(t.invert=n),t)]}(r);return i(n(t))}function Ty(t){const e=t.flatMap(t=>Array.from(t.values())).flatMap(t=>t.channels.map(t=>t.scale));Py(e,"x"),Py(e,"y")}function Ly(t){const{channels:e=[],type:n,scale:r={}}=t,i=["shape","color","opacity","size"];return 0!==e.length?e:"axisX"===n?["x"]:"axisY"===n?["y"]:"legends"===n?Object.keys(r).filter(t=>i.includes(t)):[]}function Py(t,e){const n=t.filter(({name:t,facet:n=!0})=>n&&t===e),r=n.flatMap(t=>t.domain),i=n.every(jy)?Ce(r):n.every(Hy)?Array.from(new Set(r)):null;if(null!==i)for(const t of n)t.domain=i}function jy(t){const{type:e}=t;return"string"==typeof e&&["linear","log","pow","time"].includes(e)}function Hy(t){const{type:e}=t;return"string"==typeof e&&["band","point","ordinal"].includes(e)}function Ny(t,e,n,r,i,A,o){const{range:a}=r;if("string"==typeof a)return function(t){return t.split("-")}(a);if(void 0!==a)return a;const{rangeMin:s,rangeMax:l}=r;switch(t){case"linear":case"time":case"log":case"pow":case"sqrt":{const t=Dy(0,r,i,A,o),[n,a]=function(t,e){return"enterDelay"===t?[0,1e3]:"enterDuration"==t?[300,1e3]:t.startsWith("y")||t.startsWith("position")?[1,0]:"color"===t?[ke(e),Fe(e)]:"opacity"===t?[0,1]:"size"===t?[1,10]:[0,1]}(e,t);return[null!=s?s:n,null!=l?l:a]}case"band":case"point":return[null!=s?s:"size"===e?5:0,null!=l?l:"size"===e?10:1];case"ordinal":return Dy(0,r,i,A,o);case"sequential":return;case"constant":return[n[0][0]];default:return[]}}function Dy(t,e,n,r,A){const[o]=Cg("palette",A),{category10:a,category20:s}=r,l=function(t){return Array.from(new Set(t))}(n).length<=a.length?a:s,{palette:c=l,offset:u}=e;if(Array.isArray(c))return c;try{return o({type:c})}catch(t){const e=function(t,e,n=t=>t){if(!t)return null;const r=Dc(t),A=i[`scheme${r}`],o=i[`interpolate${r}`];if(!A&&!o)return null;if(A){if(!A.some(Array.isArray))return A;const t=A[e.length];if(t)return t}return e.map((t,r)=>o(n(r/e.length)))}(c,n,u);if(e)return e;throw new Error(`Unknown Component: ${c} `)}}function Ry(t,e){return e||(function(t){return t.startsWith("x")||t.startsWith("y")||t.startsWith("position")||t.startsWith("size")}(t)?"point":"ordinal")}function Ky(t,e,n){return n||("color"!==t||e?"linear":"sequential")}function zy(t,e){if(0===t.length)return t;const{domainMin:n,domainMax:r}=e,[i,A]=t;return[null!=n?n:i,null!=r?r:A]}function Gy(t){return Wy(t,t=>{const e=typeof t;return"string"===e||"boolean"===e})}function Vy(t){return Wy(t,t=>t instanceof Date)}function Wy(t,e){for(const n of t)if(n.some(e))return!0;return!1}var Xy=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n};const Yy=Symbol("CALLBACK_ITEM");function $y(t,e,n){const{encode:r={},scale:i={},transform:A=[]}=e,o=Xy(e,["encode","scale","transform"]);return[t,Object.assign(Object.assign({},o),{encode:r,scale:i,transform:A})]}function qy(t,e,n){return r=this,i=void 0,o=function*(){const{library:t}=n,{data:r}=e,[i]=Cg("data",t),A=function(t){if((0,bt.A)(t))return{type:"inline",value:t};if(!t)return{type:"inline",value:null};if(Array.isArray(t))return{type:"inline",value:t};const{type:e="inline"}=t,n=Xy(t,["type"]);return Object.assign(Object.assign({},n),{type:e})}(r),{transform:o=[]}=A,a=[Xy(A,["transform"]),...o].map(t=>i(t,n)),s=yield function(t){return t.reduce((t,e)=>n=>{return r=this,i=void 0,o=function*(){const r=yield t(n);return e(r)},new((A=void 0)||(A=Promise))(function(t,e){function n(t){try{s(o.next(t))}catch(t){e(t)}}function a(t){try{s(o.throw(t))}catch(t){e(t)}}function s(e){e.done?t(e.value):function(t){return t instanceof A?t:new A(function(e){e(t)})}(e.value).then(n,a)}s((o=o.apply(r,i||[])).next())});var r,i,A,o},Mt)}(a)(r),l=!r||Array.isArray(r)||Array.isArray(s)?s:{value:s};return[Array.isArray(s)?Oe(s):[],Object.assign(Object.assign({},e),{data:l})]},new((A=void 0)||(A=Promise))(function(t,e){function n(t){try{s(o.next(t))}catch(t){e(t)}}function a(t){try{s(o.throw(t))}catch(t){e(t)}}function s(e){e.done?t(e.value):function(t){return t instanceof A?t:new A(function(e){e(t)})}(e.value).then(n,a)}s((o=o.apply(r,i||[])).next())});var r,i,A,o}function Zy(t,e,n){const{encode:r}=e;if(!r)return[t,e];const i={};for(const[t,e]of Object.entries(r))if(Array.isArray(e))for(let n=0;n<e.length;n++)i[`${t}${0===n?"":n}`]=e[n];else i[t]=e;return[t,Object.assign(Object.assign({},e),{encode:i})]}function Jy(t,e,n){const{encode:r,data:i}=e;if(!r)return[t,e];const A=Ee(r,t=>{if(function(t){if("object"!=typeof t||t instanceof Date||null===t)return!1;const{type:e}=t;return Tt(e)}(t))return t;const e=function(t,e){return"function"==typeof e?"transform":"string"==typeof e&&function(t,e){return!!Array.isArray(t)&&t.some(t=>void 0!==t[e])}(t,e)?"field":"constant"}(i,t);return{type:e,value:t}});return[t,Object.assign(Object.assign({},e),{encode:A})]}function tv(t,e,n){const{encode:r}=e;if(!r)return[t,e];const i=Ee(r,(t,e)=>{const{type:n}=t;return"constant"!==n||function(t){return t.startsWith("x")||t.startsWith("y")||t.startsWith("position")||"enterDelay"===t||"enterDuration"===t||"updateDelay"===t||"updateDuration"===t||"exitDelay"===t||"exitDuration"===t}(e)?t:Object.assign(Object.assign({},t),{constant:!0})});return[t,Object.assign(Object.assign({},e),{encode:i})]}function ev(t,e,n){const{encode:r,data:i}=e;if(!r)return[t,e];const{library:A}=n,o=function(t){const[e]=Cg("encode",t);return(t,n)=>void 0===n||void 0===t?null:Object.assign(Object.assign({},n),{type:"column",value:e(n)(t),field:Fg(n)})}(A),a=Ee(r,t=>o(i,t));return[t,Object.assign(Object.assign({},e),{encode:a})]}function nv(t,e,n){const{tooltip:r={}}=e;return Rt(r)?[t,e]:Array.isArray(r)?[t,Object.assign(Object.assign({},e),{tooltip:{items:r}})]:Dt(r)&&Tp(r)?[t,Object.assign(Object.assign({},e),{tooltip:r})]:[t,Object.assign(Object.assign({},e),{tooltip:{items:[r]}})]}function rv(t,e,n){const{data:r,encode:i,tooltip:A={}}=e;if(Rt(A))return[t,e];const o=e=>{if(!e)return e;if("string"==typeof e)return t.map(t=>({name:e,value:r[t][e]}));if(Dt(e)){const{field:n,channel:A,color:o,name:a=n,valueFormatter:s=t=>t}=e,l="string"==typeof s?(0,Rc.GP)(s):s,c=A&&i[A],u=a||c&&i[A].field||A,d=[];for(const e of t)d[e]={name:u,color:o,value:l(n?r[e][n]:c?i[A].value[e]:null)};return d}if("function"==typeof e){const n=[];for(const A of t){const t=e(r[A],A,r,i);n[A]=Dt(t)?Object.assign(Object.assign({},t),{[Yy]:!0}):{value:t}}return n}return e},{title:a,items:s=[]}=A,l=Xy(A,["title","items"]),c=Object.assign({title:o(a),items:Array.isArray(s)?s.map(o):[]},l);return[t,Object.assign(Object.assign({},e),{tooltip:c})]}function iv(t,e,n){const{encode:r}=e,i=Xy(e,["encode"]);if(!r)return[t,e];const A=Object.entries(r),o=A.filter(([,t])=>{const{value:e}=t;return Array.isArray(e[0])}).flatMap(([e,n])=>{const r=[[e,new Array(t.length).fill(void 0)]],{value:i}=n,A=Xy(n,["value"]);for(let n=0;n<i.length;n++){const A=i[n];if(Array.isArray(A))for(let i=0;i<A.length;i++){const o=r[i]||[`${e}${i}`,new Array(t).fill(void 0)];o[1][n]=A[i],r[i]=o}}return r.map(([t,e])=>[t,Object.assign({type:"column",value:e},A)])}),a=Object.fromEntries([...A,...o]);return[t,Object.assign(Object.assign({},i),{encode:a})]}function Av(t,e,n){const{axis:r={},legend:i={},slider:A={},scrollbar:o={}}=e,a=(t,e)=>{if("boolean"==typeof t)return t?{}:null;const n=t[e];return void 0===n||n?n:null},s="object"==typeof r?Array.from(new Set(["x","y","z",...Object.keys(r)])):["x","y","z"];return Q(e,{scale:Object.assign(Object.assign({},Object.fromEntries(s.map(t=>{const e=a(o,t);return[t,Object.assign({guide:a(r,t),slider:a(A,t),scrollbar:e},e&&{ratio:void 0===e.ratio?.5:e.ratio})]}))),{color:{guide:a(i,"color")},size:{guide:a(i,"size")},shape:{guide:a(i,"shape")},opacity:{guide:a(i,"opacity")}})}),[t,e]}function ov(t,e,n){const{animate:r}=e;return r||void 0===r||Q(e,{animate:{enter:{type:null},exit:{type:null},update:{type:null}}}),[t,e]}function av(t,e,n){var r,i;return Q(e,{scale:{series:Object.assign({key:`DEFAULT_${e.type}_SERIES_KEY`},null!==(i=null===(r=null==e?void 0:e.scale)||void 0===r?void 0:r.series)&&void 0!==i?i:{})}}),[t,e]}var sv=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n};const lv="tooltipLocked";function cv(t,e){var n;if(e)return"string"==typeof e?document.querySelector(e):e;const r=null===(n=t.ownerDocument)||void 0===n?void 0:n.defaultView;return r?r.getContextService().getDomElement().parentElement:void 0}function uv(t,e,n,r,i,A,o,a={},s=[10,10]){const l={[Bs("tooltip")]:{},[Bs("tooltip-title")]:{overflow:"hidden","white-space":"nowrap","text-overflow":"ellipsis"}},c=new Sp({className:"tooltip",style:{x:e,y:n,container:o,data:[],bounding:A,position:r,enterable:i,title:"",offset:s,template:{prefixCls:"g2-"},style:Q(l,a)}});return t.appendChild(c.HTMLTooltipElement),c}function dv({root:t,data:e,x:n,y:r,render:i,event:A,single:o,position:a="right-bottom",enterable:s=!1,css:l,mount:c,bounding:u,offset:d}){const f=cv(t,c),h=cv(t),p=o?h:t,g=u||function(t){const e=t.getRenderBounds(),{min:[n,r],max:[i,A]}=e;return{x:n,y:r,width:i-n,height:A-r}}(t),m=function(t,e){const n=t.getBoundingClientRect(),r=e.getBoundingClientRect();return{x:n.x-r.x,y:n.y-r.y}}(h,f),{tooltipElement:y=uv(f,n,r,a,s,g,m,l,d)}=p,{items:v,title:b=""}=e;y.update(Object.assign({x:n,y:r,data:v.map(t=>Object.assign(Object.assign({},t),{value:t.value||0===t.value?t.value:""})),title:b,position:a,enterable:s,container:m},void 0!==i&&{content:i(A,{items:v,title:b})})),p.tooltipElement=y}function fv({root:t,single:e,emitter:n,nativeEvent:r=!0,event:i=null}){r&&n.emit("tooltip:hide",{nativeEvent:r});const A=cv(t),o=e?A:t,{tooltipElement:a}=o;a&&a.hide(null==i?void 0:i.clientX,null==i?void 0:i.clientY),vv(t),bv(t),wv(t)}function hv({root:t,single:e}){const n=cv(t),r=e?n:t;if(!r)return;const{tooltipElement:i}=r;i&&(i.destroy(),r.tooltipElement=void 0),vv(t),bv(t),wv(t)}function pv(t){const{value:e}=t;return Object.assign(Object.assign({},t),{value:void 0===e?"undefined":e})}function gv(t){const e=t.getAttribute("fill"),n=t.getAttribute("stroke"),{__data__:r}=t,{color:i=(e&&"transparent"!==e?e:n)}=r;return i}function mv(t,e=t=>t){const n=new Map(t.map(t=>[e(t),t]));return Array.from(n.values())}function yv(t,e,n,r=t.map(t=>t.__data__),i={}){const A=t=>t instanceof Date?+t:t,o=mv(r.map(t=>t.title),A).filter(Tt),a=r.flatMap((r,A)=>{const o=r.element||t[A],{items:a=[],title:s}=r,l=a.filter(Tt),c=void 0!==n?n:a.length<=1;return l.map(t=>{var{color:n=gv(o)||i.color,name:A}=t,a=sv(t,["color","name"]);const l=function(t,e){const{color:n,facet:r=!1}=t,{color:i,series:A}=e,o=function(t,e){var n,r,i,A;const o=null!==(n=e.markKey)&&void 0!==n?n:null===(i=null===(r=e.element)||void 0===r?void 0:r.__data__)||void 0===i?void 0:i.markKey,a=Object.keys(t).find(e=>{if(e.startsWith("series")){const n=t[e].getOptions();return"series"===n.name&&n.markKey===o}});return null!==(A=t[a])&&void 0!==A?A:t.series}(t,e),a=t=>t&&t.invert&&!(t instanceof vt)&&!(t instanceof kt);if(a(o))return o.clone().invert(A);if(A&&o instanceof vt&&o.invert(A)!==i&&!r)return o.invert(A);if(a(n)){const t=n.invert(i);return Array.isArray(t)?null:t}return null}(e,r),u=c&&!(Yy in a)?l||A:A||l;return Object.assign(Object.assign({},a),{color:n,name:u||s})})}).map(pv);return Object.assign(Object.assign({},o.length>0&&{title:o.join(",")}),{items:mv(a,t=>`(${A(t.name)}, ${A(t.value)}, ${A(t.color)})`)})}function vv(t){t.ruleY&&(t.ruleY.remove(),t.ruleY=void 0)}function bv(t){t.ruleX&&(t.ruleX.remove(),t.ruleX=void 0)}function wv(t){t.markers&&(t.markers.forEach(t=>t.remove()),t.markers=[])}function Bv(t,e){return Array.from(t.values()).some(t=>{var n;return null===(n=t.interaction)||void 0===n?void 0:n[e]})}function xv(t,e){return void 0===t?e:t}function Cv(t){const{title:e,items:n}=t;return 0===n.length&&void 0===e}function Ev({root:t,event:e,elements:n=[],coordinate:r,scale:i,shared:A}){var o,a;const s=n.filter(t=>!(t=>Cs.includes(t.markType))(t)),l=s.length>0&&s.every(t=>"interval"===t.markType)&&!R(r),c=i.x,u=function(t){const{x:e}=t;if(!e||!e.valueBandWidth)return!0;const{valueBandWidth:n}=e;return!!(0,bt.A)(n)||1===new Set(n.values()).size}(i),d=i.series,f=null!==(a=null===(o=null==c?void 0:c.getBandWidth)||void 0===o?void 0:o.call(c))&&void 0!==a?a:0,h=d&&d.valueBandWidth?t=>{const e=Math.round(1/d.valueBandWidth);return t.__data__.x+t.__data__.series*f+f/(2*e)}:t=>t.__data__.x+f/2;l&&s.sort((t,e)=>h(t)-h(e));const p=t=>{const{target:e=re(n)}=t;return $d(e,e=>!!e.classList&&(Ft(e)&&Bu(e,"__data__.normalized",function(t,e){const{innerWidth:n,innerHeight:r,marginLeft:i,paddingLeft:A,insetLeft:o,marginTop:a,paddingTop:s,insetTop:l}=t.getOptions();return{x:(e.x-i-A-o)/n,y:(e.y-a-s-l)/r}}(r,{x:t.offsetX,y:t.offsetY})),e.classList.includes("element")))},g=l?e=>{const n=Fd(t,e);if(!n)return;const[i]=r.invert(n),o=(0,nd.A)(h).center,a=u?o(s,i):function(t,e){const{adjustedRange:n,valueBandWidth:r,valueStep:i}=t,A=Array.from(r.values()),o=Array.from(i.values()),a=n.map((t,e)=>{const n=(o[e]-A[e])/2;return[t-n,t+A[e]+n]}),s=a.findIndex(([t,n])=>t<=e&&e<=n);return-1!==s?s:e>.5?n.length-1:0}(c,i),l=s[a];if(!A){const t=s.find(t=>t!==l&&h(t)===h(l));if(t)return p(e)||t}return l}:p;return g(e)}function Ov({root:t,event:e,elements:n,coordinate:r,scale:i,startX:A,startY:o}){const a=D(r),s=[],l=[];for(const t of n){if(Cs.includes(t.markType))continue;const{__data__:e}=t,{seriesX:n,title:r,items:i}=e;n?s.push(t):(r||i)&&l.push(t)}const c=l.length&&l.every(t=>"interval"===t.markType)&&!R(r),u=t=>t.__data__.x,d=!!i.x.getBandWidth&&l.length>0;s.sort((t,e)=>{const n=a?0:1,r=t=>t.getBounds().min[n];return a?r(e)-r(t):r(t)-r(e)});const f=t=>{const e=a?1:0,{min:n,max:r}=t.getLocalBounds();return Ju([n[e],r[e]])};l.sort(c?(t,e)=>u(t)-u(e):(t,e)=>{const[n,r]=f(t),[i,A]=f(e),o=(n+r)/2,s=(i+A)/2;return a?s-o:o-s});const h=new Map(s.map(t=>{const{__data__:e}=t,{seriesX:n}=e,r=n.map((t,e)=>e),i=Ju(r,t=>n[+t]);return[t,[i,n]]})),{x:p}=i,g=(null==p?void 0:p.getBandWidth)?p.getBandWidth()/2:0,m=t=>{const[e]=r.invert(t);return e-g},y=(t,e,n,r)=>{const{_x:i}=t,A=void 0!==i?p.map(i):m(e),o=r.filter(Tt),[a,s]=Ju([o[0],o[o.length-1]]);if(!d&&(A<a||A>s)&&a!==s)return null;const l=(0,nd.A)(t=>r[+t]).center;return n[l(n,A)]},v=c?(t,e)=>{const n=e[(0,(0,nd.A)(u).center)(e,m(t))];return et(e,u).get(u(n))}:(t,e)=>{const n=t[a?1:0],r=e.filter(t=>{const[e,r]=f(t);return n>=e&&n<=r});if(!d||r.length>0)return r;const i=(0,nd.A)(t=>{const[e,n]=f(t);return(e+n)/2}).center;return[e[i(e,n)]].filter(Tt)},b=(t,e)=>{const{__data__:n}=t;return Object.fromEntries(Object.entries(n).filter(([t])=>t.startsWith("series")&&"series"!==t).map(([t,n])=>{const r=n[e];return[st(t.replace("series","")),r]}))},w=Fd(t,e);if(!w)return;const B=[w[0]-A,w[1]-o];if(!B)return;const x=v(B,l),C=[],E=[];for(const t of s){const[n,i]=h.get(t),A=y(e,B,n,i);if(null!==A){C.push(t);const e=b(t,A),{x:n,y:i}=e,o=r.map([(n||0)+g,i||0]);E.push([Object.assign(Object.assign({},e),{element:t}),o])}}const O=Array.from(new Set(E.map(t=>t[0].x))),k=O[Ep(O,t=>Math.abs(t-m(B)))],F=E.filter(t=>t[0].x===k),Q=[...F.map(t=>t[0]),...x.map(t=>t.__data__)];return{selectedElements:[...C,...x],selectedData:Q,filteredSeriesData:F,abstractX:m}}function kv(t,e){var{elements:n,sort:r,filter:i,scale:A,coordinate:o,crosshairs:a,crosshairsX:s,crosshairsY:l,render:c,groupName:u,emitter:d,wait:f=50,leading:h=!0,trailing:p=!1,startX:g=0,startY:m=0,body:y=!0,single:v=!0,position:b,enterable:w,mount:B,bounding:x,theme:C,offset:E,disableNative:O=!1,marker:k=!0,preserve:F=!1,style:M={},css:U={},clickLock:S=!1,disableAutoHide:_=!1}=e,I=sv(e,["elements","sort","filter","scale","coordinate","crosshairs","crosshairsX","crosshairsY","render","groupName","emitter","wait","leading","trailing","startX","startY","body","single","position","enterable","mount","bounding","theme","offset","disableNative","marker","preserve","style","css","clickLock","disableAutoHide"]);const T=n(t),L=Q(M,I),P=R(o),j=D(o),{innerWidth:H,innerHeight:N,width:K,height:z,insetLeft:G,insetTop:V}=o.getOptions(),W=qu(e=>{var n;if(S&&t.getAttribute(lv))return;const f=Fd(t,e);if(!f)return;const h=kd(t),p=h.min[0],O=h.min[1],{selectedElements:F,selectedData:Q,filteredSeriesData:M,abstractX:_}=Ov({root:t,event:e,elements:T,coordinate:o,scale:A,startX:g,startY:m}),I=yv(F,A,u,Q,C);if(r&&I.items.sort((t,e)=>r(t)-r(e)),i&&(I.items=I.items.filter(i)),0===F.length||Cv(I))return void X(e);if(y&&dv({root:t,data:I,x:f[0]+p,y:f[1]+O,render:c,event:e,single:v,position:b,enterable:w,mount:B,bounding:x,css:U,offset:E}),a||s||l){const e=Pt(L,"crosshairs"),n=Object.assign(Object.assign({},e),Pt(L,"crosshairsX")),r=Object.assign(Object.assign({},e),Pt(L,"crosshairsY")),i=M.map(t=>t[1]);s&&function(t,e,n,r){var{plotWidth:i,plotHeight:A,mainWidth:o,mainHeight:a,startX:s,startY:l,transposed:c,polar:u,insetLeft:d,insetTop:f}=r,h=sv(r,["plotWidth","plotHeight","mainWidth","mainHeight","startX","startY","transposed","polar","insetLeft","insetTop"]);const p=Object.assign({lineWidth:1,stroke:"#1b1e23",strokeOpacity:.5},h),g=((t,e)=>{if(1===e.length)return e[0];const n=e.map(e=>Xt(e,t)),r=Ep(n,t=>t);return e[r]})(n,e);if(u){const[e,n,r]=(()=>{const t=s+d+o/2,e=l+f+a/2;return[t,e,Xt([t,e],g)]})(),i=t.ruleX||((e,n,r)=>{const i=new $.jl({style:Object.assign({cx:e,cy:n,r},p)});return t.appendChild(i),i})(e,n,r);i.style.cx=e,i.style.cy=n,i.style.r=r,t.ruleX=i}else{const[e,n,r,o]=c?[s+g[0],s+g[0],l,l+A]:[s,s+i,g[1]+l,g[1]+l],a=t.ruleX||((e,n,r,i)=>{const A=new $.N1({style:Object.assign({x1:e,x2:n,y1:r,y2:i},p)});return t.appendChild(A),A})(e,n,r,o);a.style.x1=e,a.style.x2=n,a.style.y1=r,a.style.y2=o,t.ruleX=a}}(t,i,f,Object.assign(Object.assign({},n),{plotWidth:H,plotHeight:N,mainWidth:K,mainHeight:z,insetLeft:G,insetTop:V,startX:g,startY:m,transposed:j,polar:P})),l&&function(t,e,n){var{plotWidth:r,plotHeight:i,mainWidth:A,mainHeight:o,startX:a,startY:s,transposed:l,polar:c,insetLeft:u,insetTop:d}=n,f=sv(n,["plotWidth","plotHeight","mainWidth","mainHeight","startX","startY","transposed","polar","insetLeft","insetTop"]);const h=Object.assign({lineWidth:1,stroke:"#1b1e23",strokeOpacity:.5},f),p=e.map(t=>t[1]),g=e.map(t=>t[0]),m=Op(p),y=Op(g),[v,b,w,B]=(()=>{if(c){const t=Math.min(A,o)/2,e=a+u+A/2,n=s+d+o/2,r=Yt(Vt([y,m],[e,n]));return[e,e+t*Math.cos(r),n,n+t*Math.sin(r)]}return l?[a,a+r,m+s,m+s]:[y+a,y+a,s,s+i]})();if(g.length>0){const e=t.ruleY||(()=>{const e=new $.N1({style:Object.assign({x1:v,x2:b,y1:w,y2:B},h)});return t.appendChild(e),e})();e.style.x1=v,e.style.x2=b,e.style.y1=w,e.style.y2=B,t.ruleY=e}}(t,i,Object.assign(Object.assign({},r),{plotWidth:H,plotHeight:N,mainWidth:K,mainHeight:z,insetLeft:G,insetTop:V,startX:g,startY:m,transposed:j,polar:P}))}if(k){const e=Pt(L,"marker");!function(t,{data:e,style:n,theme:r}){t.markers&&t.markers.forEach(t=>t.remove());const{type:i=""}=n,A=e.filter(t=>{const[{x:e,y:n}]=t;return Tt(e)&&Tt(n)}).map(t=>{const[{color:e,element:A},o]=t,a=e||A.style.fill||A.style.stroke||r.color;return new $.jl({className:"g2-tooltip-marker",style:Object.assign({cx:o[0],cy:o[1],fill:"hollow"===i?"transparent":a,r:4,stroke:"hollow"===i?a:"#fff",lineWidth:2,pointerEvents:"none"},n)})});for(const e of A)t.appendChild(e);t.markers=A}(t,{data:M,style:e,theme:C})}const D=null===(n=M[0])||void 0===n?void 0:n[0].x,R=null!=D?D:_(focus);d.emit("tooltip:show",Object.assign(Object.assign({},e),{nativeEvent:!0,data:Object.assign(Object.assign({},I),{data:{x:ud(A.x,R,!0)}})}))},f,{leading:h,trailing:p}),X=e=>{S&&t.getAttribute(lv)||_||fv({root:t,single:v,emitter:d,event:e})},Y=()=>{hv({root:t,single:v})},q=e=>{var n,{nativeEvent:r,data:i,offsetX:a,offsetY:s}=e,l=sv(e,["nativeEvent","data","offsetX","offsetY"]);if(r)return;const c=null===(n=null==i?void 0:i.data)||void 0===n?void 0:n.x,u=A.x.map(c),[d,f]=o.map([u,.5]),h=kd(t),p=h.min[0],g=h.min[1];W(Object.assign(Object.assign({},l),{offsetX:void 0!==a?a:p+d,offsetY:void 0!==s?s:g+f,_x:c}))},Z=()=>{fv({root:t,single:v,emitter:d,nativeEvent:!1})},J=()=>{it(),Y()},tt=e=>{Fd(t,e)||X(e)},et=()=>{rt()},nt=e=>{S&&t.setAttribute(lv,!t.getAttribute(lv)),W(e)},rt=()=>{O||(t.addEventListener("pointerdown",nt),t.addEventListener("pointerenter",W),t.addEventListener("pointermove",W),t.addEventListener("pointerleave",tt),t.addEventListener("pointerup",X))},it=()=>{O||(t.removeEventListener("pointerdown",nt),t.removeEventListener("pointerenter",W),t.removeEventListener("pointermove",W),t.removeEventListener("pointerleave",tt),t.removeEventListener("pointerup",X))};return rt(),d.on("tooltip:show",q),d.on("tooltip:hide",Z),d.on("tooltip:disable",J),d.on("tooltip:enable",et),()=>{it(),d.off("tooltip:show",q),d.off("tooltip:hide",Z),d.off("tooltip:disable",J),d.off("tooltip:enable",et),F?fv({root:t,single:v,emitter:d,nativeEvent:!1}):Y()}}function Fv(t){const{shared:e,crosshairs:n,crosshairsX:r,crosshairsY:i,series:A,item:o=()=>({}),facet:a=!1}=t,s=sv(t,["shared","crosshairs","crosshairsX","crosshairsY","series","name","item","facet"]);return(t,l,c)=>{const{container:u,view:d}=t,{scale:f,markState:h,coordinate:p,theme:g}=d,m=Bv(h,"seriesTooltip"),y=Bv(h,"crosshairs"),v=Od(u),b=xv(A,m),w=xv(n,y);if(s.clickLock&&!a&&v.setAttribute(lv,!1),b&&function(t){return Array.from(t.values()).some(t=>{var e;return(null===(e=t.interaction)||void 0===e?void 0:e.seriesTooltip)&&t.tooltip})}(h)&&!a)return kv(v,Object.assign(Object.assign({},s),{theme:g,elements:xd,scale:f,coordinate:p,crosshairs:w,crosshairsX:xv(xv(r,n),!1),crosshairsY:xv(i,w),item:o,emitter:c}));if(b&&a){const e=l.filter(e=>e!==t&&e.options.parentKey===t.options.key),A=Cd(t,l),a=e[0].view.scale,u=v.getBounds(),d=u.min[0],f=u.min[1];Object.assign(a,{facet:!0});const h=v.parentNode.parentNode;return s.clickLock&&h.setAttribute(lv,!1),kv(h,Object.assign(Object.assign({},s),{theme:g,elements:()=>A,scale:a,coordinate:p,crosshairs:xv(n,y),crosshairsX:xv(xv(r,n),!1),crosshairsY:xv(i,w),item:o,startX:d,startY:f,emitter:c}))}return function(t,{elements:e,coordinate:n,scale:r,render:i,groupName:A,sort:o,filter:a,emitter:s,wait:l=50,leading:c=!0,trailing:u=!1,groupKey:d=t=>t,single:f=!0,position:h,enterable:p,datum:g,view:m,mount:y,bounding:v,theme:b,offset:w,shared:B=!1,body:x=!0,disableNative:C=!1,preserve:E=!1,css:O={},clickLock:k=!1,disableAutoHide:F=!1}){const Q=e(t),M=et(Q,d),U=qu(e=>{if(k&&t.getAttribute(lv))return;const l=Ev({root:t,event:e,elements:Q,coordinate:n,scale:r,shared:B});if(!l)return void(F||fv({root:t,single:f,emitter:s,event:e}));const c=d(l),u=M.get(c);if(!u)return;const g=1!==u.length||B?yv(u,r,A,void 0,b):function(t){const{__data__:e}=t;if(Ft(t))return function(t){var e,n,r,i,A,o,a;const{__data__:s}=t,{title:l,items:c=[]}=s;if(c.some(t=>Yy in t)){const e=c.filter(Tt).map(e=>{var{color:n=gv(t)}=e,r=sv(e,["color"]);return Object.assign(Object.assign({},r),{color:n})}).map(pv);return Object.assign(Object.assign({},l&&{title:l}),{items:e})}const u=null!==(n=null===(e=null==s?void 0:s.normalized)||void 0===e?void 0:e.x)&&void 0!==n?n:0,d=null===(r=t.parentNode)||void 0===r?void 0:r.__data__,f=null!==(i=null==d?void 0:d.encode)&&void 0!==i?i:{},{x:h={},y:p={},color:g={}}=f,{value:m=[]}=h,{value:y=[]}=p,{value:v=[]}=g,b=Math.min(Math.round(m.length*u),m.length-1);return{title:`${m[b]}, ${y[b]}`,items:[{name:null!==(A=g.field)&&void 0!==A?A:"value",value:v[b],color:(null===(o=t.style)||void 0===o?void 0:o.fill)||(null===(a=t.getAttribute)||void 0===a?void 0:a.call(t,"color"))||"#000"}]}}(t);const{title:n,items:r=[]}=e,i=r.filter(Tt).map(e=>{var{color:n=gv(t)}=e,r=sv(e,["color"]);return Object.assign(Object.assign({},r),{color:n})}).map(pv);return Object.assign(Object.assign({},n&&{title:n}),{items:i})}(u[0]);if(o&&g.items.sort((t,e)=>o(t)-o(e)),a&&(g.items=g.items.filter(a)),Cv(g))return void(F||fv({root:t,single:f,emitter:s,event:e}));const{offsetX:C,offsetY:E}=e;x&&dv({root:t,data:g,x:C,y:E,render:i,event:e,single:f,position:h,enterable:p,mount:y,bounding:v,css:O,offset:w}),s.emit("tooltip:show",Object.assign(Object.assign({},e),{nativeEvent:!0,data:Object.assign(Object.assign({},g),{data:Qt(l,m)})}))},l,{leading:c,trailing:u}),S=e=>{F||fv({root:t,single:f,emitter:s,event:e})},_=e=>{k&&t.setAttribute(lv,!t.getAttribute(lv)),U(e)},I=()=>{C||(t.addEventListener("pointerdown",_),t.addEventListener("pointermove",U),t.addEventListener("pointerleave",S),t.addEventListener("pointerup",S))},T=()=>{C||(t.removeEventListener("pointerdown",_),t.removeEventListener("pointermove",U),t.removeEventListener("pointerleave",S),t.removeEventListener("pointerup",S))},L=({nativeEvent:e,offsetX:n,offsetY:r,data:i})=>{if(e)return;const{data:A}=i,o=Vd(Q,A,g);if(!o)return;const a=o.getBBox(),{x:s,y:l,width:c,height:u}=a,d=t.getBBox();U({target:o,offsetX:void 0!==n?n+d.x:s+c/2,offsetY:void 0!==r?r+d.y:l+u/2})},P=({nativeEvent:e}={})=>{e||fv({root:t,single:f,emitter:s,nativeEvent:!1})},j=()=>{T(),hv({root:t,single:f})},H=()=>{I()};return s.on("tooltip:show",L),s.on("tooltip:hide",P),s.on("tooltip:enable",H),s.on("tooltip:disable",j),I(),()=>{T(),s.off("tooltip:show",L),s.off("tooltip:hide",P),s.off("tooltip:enable",H),s.off("tooltip:disable",j),E?fv({root:t,single:f,emitter:s,nativeEvent:!1}):hv({root:t,single:f})}}(v,Object.assign(Object.assign({},s),{datum:Sd(d),elements:xd,scale:f,coordinate:p,groupKey:e?t=>t.__data__.x:void 0,item:o,emitter:c,view:d,theme:g,shared:e}))}}Fv.props={reapplyWhenUpdate:!0};var Qv=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n};function Mv(t,e){const[n,r,i,A]=t,[o,a,s,l]=e;return!(o>i||s<n||a>A||l<r)}function Uv(t){const{width:e,height:n}=t.getBBox();return[0,0,e,n]}function Sv(t,e){for(const[n,r]of Object.entries(e))t.style(n,r)}const _v=Qn(t=>{const e=t.attributes,{x:n,y:r,width:i,height:A,class:o,renders:a={},handleSize:s=10,document:l}=e,c=Qv(e,["x","y","width","height","class","renders","handleSize","document"]);if(!l||void 0===i||void 0===A||void 0===n||void 0===r)return;const u=s/2,d=(t,e,n)=>{t.handle||(t.handle=n.createElement("rect"),t.append(t.handle));const{handle:r}=t;return r.attr(e),r},f=Pt(Ht(c,"handleNW","handleNE"),"handleN"),{render:h=d}=f,p=Qv(f,["render"]),g=Pt(c,"handleE"),{render:m=d}=g,y=Qv(g,["render"]),v=Pt(Ht(c,"handleSE","handleSW"),"handleS"),{render:b=d}=v,w=Qv(v,["render"]),B=Pt(c,"handleW"),{render:x=d}=B,C=Qv(B,["render"]),E=Pt(c,"handleNW"),{render:O=d}=E,k=Qv(E,["render"]),F=Pt(c,"handleNE"),{render:Q=d}=F,M=Qv(F,["render"]),U=Pt(c,"handleSE"),{render:S=d}=U,_=Qv(U,["render"]),I=Pt(c,"handleSW"),{render:T=d}=I,L=Qv(I,["render"]),P=t=>()=>{const e=Qn(e=>((t,e)=>{const{id:n}=t,r=e(t,t.attributes,l);r.id=n,r.style.draggable=!0})(e,t));return new e({})},j=zt(t).attr("className",o).style("transform",`translate(${n}, ${r})`).style("draggable",!0);j.maybeAppend("selection","rect").style("draggable",!0).style("fill","transparent").call(Sv,Object.assign(Object.assign({width:i,height:A},Ht(c,"handle")),{transform:void 0})),j.maybeAppend("handle-n",P(h)).style("x",u).style("y",-u).style("width",i-s).style("height",s).style("fill","transparent").call(Sv,p),j.maybeAppend("handle-e",P(m)).style("x",i-u).style("y",u).style("width",s).style("height",A-s).style("fill","transparent").call(Sv,y),j.maybeAppend("handle-s",P(b)).style("x",u).style("y",A-u).style("width",i-s).style("height",s).style("fill","transparent").call(Sv,w),j.maybeAppend("handle-w",P(x)).style("x",-u).style("y",u).style("width",s).style("height",A-s).style("fill","transparent").call(Sv,C),j.maybeAppend("handle-nw",P(O)).style("x",-u).style("y",-u).style("width",s).style("height",s).style("fill","transparent").call(Sv,k),j.maybeAppend("handle-ne",P(Q)).style("x",i-u).style("y",-u).style("width",s).style("height",s).style("fill","transparent").call(Sv,M),j.maybeAppend("handle-se",P(S)).style("x",i-u).style("y",A-u).style("width",s).style("height",s).style("fill","transparent").call(Sv,_),j.maybeAppend("handle-sw",P(T)).style("x",-u).style("y",A-u).style("width",s).style("height",s).style("fill","transparent").call(Sv,L)});function Iv(t,e){var{brushed:n=()=>{},brushended:r=()=>{},brushcreated:i=()=>{},brushstarted:A=()=>{},brushupdated:o=()=>{},extent:a=Uv(t),brushRegion:s=(t,e,n,r,i)=>[t,e,n,r],reverse:l=!1,fill:c="#777",fillOpacity:u="0.3",stroke:d="#fff",selectedHandles:f=["handle-n","handle-e","handle-s","handle-w","handle-nw","handle-ne","handle-se","handle-sw"]}=e,h=Qv(e,["brushed","brushended","brushcreated","brushstarted","brushupdated","extent","brushRegion","reverse","fill","fillOpacity","stroke","selectedHandles"]);let p=null,g=null,m=null,y=null,v=null,b=!1;const[w,B,x,C]=a;zd(t,"crosshair"),t.style.draggable=!0;const E=(t,e,n)=>{if(A(n),y&&y.remove(),v&&v.remove(),p=[t,e],l)return O();k()},O=()=>{v=new $.wA({style:Object.assign(Object.assign({},h),{fill:c,fillOpacity:u,stroke:d,pointerEvents:"none"})}),y=new _v({style:{x:0,y:0,width:0,height:0,draggable:!0,document:t.ownerDocument},className:"mask"}),t.appendChild(v),t.appendChild(y)},k=()=>{y=new _v({style:Object.assign(Object.assign({document:t.ownerDocument,x:0,y:0},h),{fill:c,fillOpacity:u,stroke:d,draggable:!0}),className:"mask"}),t.appendChild(y)},F=(t=!0)=>{y&&y.remove(),v&&v.remove(),p=null,g=null,m=null,b=!1,y=null,v=null,r(t)},Q=(t,e,r=!0)=>{const[i,A,o,c]=function(t,e,n,r,i){const[A,o,a,s]=i;return[Math.max(A,Math.min(t,n)),Math.max(o,Math.min(e,r)),Math.min(a,Math.max(t,n)),Math.min(s,Math.max(e,r))]}(t[0],t[1],e[0],e[1],a),[u,d,f,h]=s(i,A,o,c,a);return l?U(u,d,f,h):M(u,d,f,h),n(u,d,f,h,r),[u,d,f,h]},M=(t,e,n,r)=>{y.style.x=t,y.style.y=e,y.style.width=n-t,y.style.height=r-e},U=(t,e,n,r)=>{v.style.d=`\n M${w},${B}L${x},${B}L${x},${C}L${w},${C}Z\n M${t},${e}L${t},${r}L${n},${r}L${n},${e}Z\n `,y.style.x=t,y.style.y=e,y.style.width=n-t,y.style.height=r-e},S={"handle-n":{vector:[0,1,0,0],cursor:"ns-resize"},"handle-e":{vector:[0,0,1,0],cursor:"ew-resize"},"handle-s":{vector:[0,0,0,1],cursor:"ns-resize"},"handle-w":{vector:[1,0,0,0],cursor:"ew-resize"},"handle-nw":{vector:[1,1,0,0],cursor:"nwse-resize"},"handle-ne":{vector:[0,1,1,0],cursor:"nesw-resize"},"handle-se":{vector:[0,0,1,1],cursor:"nwse-resize"},"handle-sw":{vector:[1,0,0,1],cursor:"nesw-resize"}},_=t=>T(t)||I(t),I=t=>{const{id:e}=t;return-1!==f.indexOf(e)&&new Set(Object.keys(S)).has(e)},T=t=>t===y.getElementById("selection"),L=e=>{const{target:n}=e,[r,i]=Qd(t,e);if(!y||!_(n))return E(r,i,e),void(b=!0);_(n)&&(m=[r,i])},P=e=>{const{target:n}=e,r=Qd(t,e);if(!p)return;if(!m)return Q(p,r);if(T(n))return(t=>{const e=(t,e,n,r,i)=>t+e<r?r-e:t+n>i?i-n:t,n=t[1]-m[1],r=e(t[0]-m[0],p[0],g[0],w,x),i=e(n,p[1],g[1],B,C);Q([p[0]+r,p[1]+i],[g[0]+r,g[1]+i])})(r);const[i,A]=[r[0]-m[0],r[1]-m[1]],{id:o}=n;if(S[o]){const[t,e,n,r]=S[o].vector;return Q([p[0]+i*t,p[1]+A*e],[g[0]+i*n,g[1]+A*r])}},j=e=>{if(m){m=null;const{x:t,y:n,width:r,height:i}=y.style;return p=[t,n],g=[t+r,n+i],void o(t,n,t+r,n+i,e)}g=Qd(t,e);const[n,r,A,a]=Q(p,g);b=!1,i(n,r,A,a,e)},H=t=>{const{target:e}=t;y&&!_(e)&&F()},N=e=>{const{target:n}=e;y&&_(n)&&!b?T(n)?zd(t,"move"):I(n)&&zd(t,S[n.id].cursor):zd(t,"crosshair")},D=()=>{zd(t,"default")};return t.addEventListener("dragstart",L),t.addEventListener("drag",P),t.addEventListener("dragend",j),t.addEventListener("click",H),t.addEventListener("pointermove",N),t.addEventListener("pointerleave",D),{mask:y,move(t,e,n,r,i=!0){y||E(t,e,{}),p=[t,e],g=[n,r],Q([t,e],[n,r],i)},remove(t=!0){y&&F(t)},destroy(){y&&F(!1),zd(t,"default"),t.removeEventListener("dragstart",L),t.removeEventListener("drag",P),t.removeEventListener("dragend",j),t.removeEventListener("click",H),t.removeEventListener("pointermove",N),t.removeEventListener("pointerleave",D)}}}function Tv(t,e,n){return e.filter(e=>{if(e===t)return!1;const{interaction:r={}}=e.options;return Object.values(r).find(t=>t.brushKey===n)})}function Lv(t,e,n){return Tv(t,e,n).map(t=>t.options)}function Pv(t,e){var{elements:n,selectedHandles:r,siblings:i=t=>[],datum:A,brushRegion:o,extent:a,reverse:s,scale:l,coordinate:c,series:u=!1,key:d=t=>t,bboxOf:f=t=>{const{x:e,y:n,width:r,height:i}=t.style;return{x:e,y:n,width:r,height:i}},state:h={},emitter:p}=e,g=Qv(e,["elements","selectedHandles","siblings","datum","brushRegion","extent","reverse","scale","coordinate","series","key","bboxOf","state","emitter"]);const m=n(t),y=i(t),v=y.flatMap(n),b=Nd(m,A),w=Pt(g,"mask"),{setState:B,removeState:x}=Pd(h,b),C=new Map,{width:E,height:O,x:k=0,y:F=0}=f(t),Q=a||[0,0,E,O],M=()=>{for(const t of[...m,...v])x(t,"active","inactive")},U=(t,e,n,r)=>{var i;for(const t of y)null===(i=t.brush)||void 0===i||i.remove();const A=new Set;for(const i of m){const{min:o,max:a}=i.getLocalBounds(),[s,l]=o,[c,u]=a;Mv([s,l,c,u],[t,e,n,r])?(B(i,"active"),A.add(d(i))):B(i,"inactive")}for(const t of v)A.has(d(t))?B(t,"active"):B(t,"inactive")},S=()=>{for(const t of m)x(t,"inactive");for(const t of C.values())t.remove();C.clear()},_=(e,n,r,i)=>{const A=t=>{const e=t.cloneNode();return e.__data__=t.__data__,t.parentNode.appendChild(e),C.set(t,e),e},o=new $.rw({style:{x:e+k,y:n+F,width:r-e,height:i-n}});t.appendChild(o);for(const t of m){const e=C.get(t)||A(t);e.style.clipPath=o,B(t,"inactive"),B(e,"active")}},I=Iv(t,Object.assign(Object.assign({},w),{extent:Q,brushRegion:o,reverse:s,selectedHandles:r,brushended:t=>{const e=u?S:M;t&&p.emit("brush:remove",{nativeEvent:!0}),e()},brushed:(t,e,n,r,i)=>{const A=fd(t,e,n,r,l,c);i&&p.emit("brush:highlight",{nativeEvent:!0,data:{selection:A}}),(u?_:U)(t,e,n,r)},brushcreated:(t,e,n,r,i)=>{const A=fd(t,e,n,r,l,c);p.emit("brush:end",Object.assign(Object.assign({},i),{nativeEvent:!0,data:{selection:A}}))},brushupdated:(t,e,n,r,i)=>{const A=fd(t,e,n,r,l,c);p.emit("brush:end",Object.assign(Object.assign({},i),{nativeEvent:!0,data:{selection:A}}))},brushstarted:t=>{p.emit("brush:start",t)}})),T=({nativeEvent:t,data:e})=>{if(t)return;const{selection:n}=e,[r,i,A,o]=function(t,e,n){const{x:r,y:i}=e,[A,o]=t,a=hd(A,r),s=hd(o,i),l=[a[0],s[0]],c=[a[1],s[1]],[u,d]=n.map(l),[f,h]=n.map(c);return[u,d,f,h]}(n,l,c);I.move(r,i,A,o,!1)};p.on("brush:highlight",T);const L=({nativeEvent:t}={})=>{t||I.remove(!1)};p.on("brush:remove",L);const P=I.destroy.bind(I);return I.destroy=()=>{p.off("brush:highlight",T),p.off("brush:remove",L),P()},I}function jv(t){var{facet:e,brushKey:n}=t,r=Qv(t,["facet","brushKey"]);return(t,i,A)=>{const{container:o,view:a,options:s}=t,l=Od(o),c={maskFill:"#777",maskFillOpacity:"0.3",maskStroke:"#fff",reverse:!1},u=["active",["inactive",{opacity:.5}]],{scale:d,coordinate:f}=a;if(e){const e=l.getBounds(),n=e.min[0],o=e.min[1],a=e.max[0],s=e.max[1];return Pv(l.parentNode.parentNode,Object.assign(Object.assign({elements:()=>Cd(t,i),datum:Sd(Ed(t,i).map(t=>t.view)),brushRegion:(t,e,n,r)=>[t,e,n,r],extent:[n,o,a,s],state:Hd(Ed(t,i).map(t=>t.options),u),emitter:A,scale:d,coordinate:f,selectedHandles:void 0},c),r))}const h=Pv(l,Object.assign(Object.assign({elements:xd,key:t=>t.__data__.key,siblings:()=>function(t,e,n){return Tv(t,e,n).map(t=>Od(t.container))}(t,i,n),datum:Sd([a,...Tv(t,i,n).map(t=>t.view)]),brushRegion:(t,e,n,r)=>[t,e,n,r],extent:void 0,state:Hd([s,...Lv(t,i,n)],u),emitter:A,scale:d,coordinate:f,selectedHandles:void 0},c),r));return l.brush=h,()=>h.destroy()}}function Hv(t,e,n,r,i){const[,A,,o]=i;return[t,A,n,o]}function Nv(t,e,n,r,i){const[A,,o]=i;return[A,e,o,r]}jv.props={reapplyWhenUpdate:!0};var Dv=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n};const Rv="axis-hot-area";function Kv(t){return t.getElementsByClassName("axis")}function zv(t){return t.getElementsByClassName("axis-line")[0]}function Gv(t){return function(t){return t.getElementsByClassName("axis-main-group")[0]}(t).getLocalBounds()}function Vv(t,e){var{cross:n,offsetX:r}=e,i=Dv(e,["cross","offsetX","offsetY"]);const A=Gv(t),o=zv(t),[a]=o.getLocalBounds().min,[s,l]=A.min,[c,u]=A.max,d=2*(c-s);return{brushRegion:Nv,hotZone:new $.rw({className:Rv,style:Object.assign({width:n?d/2:d,transform:`translate(${(n?s:a-d/2).toFixed(2)}, ${l})`,height:u-l},i)}),extent:n?(t,e,n,r)=>[-1/0,e,1/0,r]:(t,e,n,i)=>[Math.floor(s-r),e,Math.ceil(c-r),i]}}function Wv(t,e){var{offsetY:n,cross:r=!1}=e,i=Dv(e,["offsetY","offsetX","cross"]);const A=Gv(t),o=zv(t),[,a]=o.getLocalBounds().min,[s,l]=A.min,[c,u]=A.max,d=u-l;return{brushRegion:Hv,hotZone:new $.rw({className:Rv,style:Object.assign({width:c-s,height:r?d:2*d,transform:`translate(${s}, ${r?l:a-d})`},i)}),extent:r?(t,e,n,r)=>[t,-1/0,n,1/0]:(t,e,r,i)=>[t,Math.floor(l-n),r,Math.ceil(u-n)]}}var Xv=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n};function Yv(t){var{hideX:e=!0,hideY:n=!0}=t,r=Xv(t,["hideX","hideY"]);return(t,i,A)=>{const{container:o,view:a,options:s,update:l,setState:c}=t,u=Od(o);let d=!1,f=!1,h=a;const{scale:p,coordinate:g}=a;return function(t,e){var{filter:n,reset:r,brushRegion:i,extent:A,reverse:o,emitter:a,selection:s,series:l=!1}=e;const c=Pt(Xv(e,["filter","reset","brushRegion","extent","reverse","emitter","scale","coordinate","selection","series"]),"mask"),{width:u,height:d}=t.getBBox(),f=A||[0,0,u,d],h=function(t=300){let e=null;return n=>{const{timeStamp:r}=n;return null!==e&&r-e<t?(e=r,!0):(e=r,!1)}}(),p=Iv(t,Object.assign(Object.assign({},c),{extent:f,brushRegion:i,reverse:o,brushcreated:function(t,e,r,i,A){t===r&&e===i||(A.nativeEvent=!0,n(s(t,e,r,i),A),p.remove())}}));function g(t){h(t)&&(t.nativeEvent=!0,r(t))}t.addEventListener("click",g);const m=({nativeEvent:t,data:e})=>{if(t)return;const{selection:r}=e;n(r,{nativeEvent:!1})};return a.on("brush:filter",m),()=>{p.destroy(),a.off("brush:filter",m),t.removeEventListener("click",g)}}(u,Object.assign(Object.assign({brushRegion:(t,e,n,r)=>[t,e,n,r],selection:(t,e,n,r)=>{const{scale:i,coordinate:A}=h;return fd(t,e,n,r,i,A)},filter:(t,r)=>{return i=this,o=void 0,u=function*(){if(f)return;f=!0;const[i,o]=t;c("brushFilter",t=>{const{marks:r}=t,A=r.map(t=>Q({axis:Object.assign(Object.assign({},e&&{x:{transform:[{type:"hide"}]}}),n&&{y:{transform:[{type:"hide"}]}})},t,{scale:{x:{domain:i,nice:!1},y:{domain:o,nice:!1}}}));return Object.assign(Object.assign({},s),{marks:A,clip:!0})}),A.emit("brush:filter",Object.assign(Object.assign({},r),{data:{selection:[i,o]}}));const a=yield l();h=a.view,f=!1,d=!0},new((a=void 0)||(a=Promise))(function(t,e){function n(t){try{A(u.next(t))}catch(t){e(t)}}function r(t){try{A(u.throw(t))}catch(t){e(t)}}function A(e){e.done?t(e.value):function(t){return t instanceof a?t:new a(function(e){e(t)})}(e.value).then(n,r)}A((u=u.apply(i,o||[])).next())});var i,o,a,u},reset:t=>{if(f||!d)return;const{scale:e}=a,{x:n,y:r}=e,i=n.getOptions().domain,o=r.getOptions().domain;A.emit("brush:filter",Object.assign(Object.assign({},t),{data:{selection:[i,o]}})),d=!1,h=a,c("brushFilter"),l()},extent:void 0,emitter:A,scale:p,coordinate:g},{maskFill:"#777",maskFillOpacity:"0.3",maskStroke:"#fff",unhighlightedOpacity:.5,reverse:!1}),r))}}function $v(t,e,n){const r=t?n:e,i=t?e:n,A=cd(r),o=cd(i),a=i.getOptions().domain;return{currentScale:r,targetScale:i,isSourceDiscrete:A,isTargetDiscrete:o,shouldPreserveZeroBaseline:!o&&a&&a.length>=2&&0===a[0]}}function qv(t){return t instanceof Date?t.getTime():"string"==typeof t?parseFloat(t):Number(t)}function Zv(t,e,n,r,i,A="filter",o=!1){if(tf(A))return[];const a=o?"y":"x",s=o?"x":"y",l=[];for(const r of t){const{channelData:t}=r,i=t[a]||[],o=t[s]||[],c=Array.isArray(i[0])?i[0]:i,u=Array.isArray(o[0]);if(0===c.length)continue;const d=c.length;for(let t=0;t<d;t++){const r=c[t];let i=!1;if(n)i=e.includes(r);else if(e.length>=2){const t=qv(r),n=qv(e[0]),A=qv(e[e.length-1]);isNaN(t)||isNaN(n)||isNaN(A)||(i=t>=n&&t<=A)}if("filter"===A&&i)if(u){const e=o.length;for(let n=0;n<e;n++){const e=o[n];if(Array.isArray(e)&&t<e.length){const n=qv(e[t]);isNaN(n)||l.push(n)}}}else if(t<o.length){const e=qv(o[t]);isNaN(e)||l.push(e)}}}return l.length>0?function({isTargetDiscrete:t,filteredValues:e,shouldPreserveZeroBaseline:n}){if(t)return Array.from(new Set(e)).sort((t,e)=>t-e);{const t=Math.min(...e),r=Math.max(...e);return n?[0,r]:[t,r]}}({isTargetDiscrete:r,filteredValues:l,shouldPreserveZeroBaseline:i}):[]}function Jv(t,e,n,r){r&&e instanceof Map?e.forEach((e,n)=>{e&&Array.isArray(e)&&e.length>0&&(t[n]=e)}):!r&&Array.isArray(e)&&e.length>0&&(t[n?"x":"y"]=e)}function tb(t){var e,n,r,i;if(!(null==t?void 0:t.markState))return 0;let A=0;for(const[o,a]of t.markState.entries()){if("point"!==o.type||!(null==a?void 0:a.channels))continue;const t=null===(e=a.channels)||void 0===e?void 0:e.find(t=>"size"===t.name);if(t){if((null===(r=null===(n=t.scale)||void 0===n?void 0:n.range)||void 0===r?void 0:r.length)>0){const e=Math.max(...t.scale.range.filter(t=>"number"==typeof t));A=Math.max(A,e);continue}if((null===(i=t.values)||void 0===i?void 0:i.length)>0){const e=t.values.filter(t=>void 0!==t.value).flatMap(t=>Array.isArray(t.value)?t.value:[t.value]).filter(t=>"number"==typeof t&&!isNaN(t));e.length>0&&(A=Math.max(A,...e))}}}return A}function eb(t,e,n,r,i,A,o){if(o){const a=A?r:i.x,s=A?i.y:r;t.emit(e,Object.assign(Object.assign({},n),{nativeEvent:o,data:{selection:[ib(a),ib(s)]}}))}}function nb(t,e,n,r){const{domain0:i,filteredDomain:A,channel0:o,channel1:a,prefix:s,hasState:l,isMultiAxis:c,markToScaleMap:u,enableAdaptiveFiltering:d}=r;c&&A instanceof Map?t(e,t=>Object.assign({},function(t,e,n,r,i=!1,A="x",o="y",a=new Map,s=new Map){const{marks:l}=t,c=tb(e),u=l.map(t=>{var e,l;const c="string"==typeof(null==t?void 0:t.key)?t.key:String((null==t?void 0:t.key)||""),u=a.get(c),d=s.get(u),f=d&&{y:Object.assign({domain:d,nice:!0},"y"!==u?{independent:!0}:void 0)};return Q({axis:{x:{transform:[{type:"hide"}]},y:{transform:[{type:"hide"}]}}},t,{scale:Object.assign(Object.assign({},n),f),[r]:Object.assign(Object.assign({},(null===(e=t[r])||void 0===e?void 0:e[A])&&{[A]:Object.assign({preserve:!0},i&&{ratio:null})}),(null===(l=t[r])||void 0===l?void 0:l[o])&&{[o]:{preserve:!0}}),animate:!1})});return Object.assign(Object.assign({},t),{marks:u,insetLeft:c,insetRight:c,insetTop:c,insetBottom:c,clip:!0,animate:!1})}(t,n,{[o]:{domain:i,nice:!1}},s,l,o,a,u||new Map,A))):t(e,t=>Object.assign({},function(t,e,n,r,i=!1,A="x",o="y"){const{marks:a}=t,s=tb(e),l=a.map(t=>{var e,a;return Q({axis:{x:{transform:[{type:"hide"}]},y:{transform:[{type:"hide"}]}}},t,{scale:n,[r]:Object.assign(Object.assign({},(null===(e=t[r])||void 0===e?void 0:e[A])&&{[A]:Object.assign({preserve:!0},i&&{ratio:null})}),(null===(a=t[r])||void 0===a?void 0:a[o])&&{[o]:{preserve:!0}}),animate:!1})});return Object.assign(Object.assign({},t),{marks:l,insetLeft:s,insetRight:s,insetTop:s,insetBottom:s,clip:!0,animate:!1})}(t,n,Object.assign({[o]:{domain:i,nice:!1}},d&&Array.isArray(A)?{[a]:{domain:A,nice:!0}}:{}),s,l,o,a)))}function rb(t,e,n){const[r,i]=t,A=n?t=>1-t:t=>t;return dd(e,[ud(e,A(r),!0),ud(e,A(i),!1)])}function ib(t){return[t[0],t[t.length-1]]}function Ab({initDomain:t={},className:e="slider",prefix:n="slider",setValue:r=(t,e)=>t.setValues(e),hasState:i=!1,wait:A=50,leading:o=!0,trailing:a=!1,adaptiveMode:s="filter",getInitValues:l=t=>{var e;const n=null===(e=null==t?void 0:t.attributes)||void 0===e?void 0:e.values;if(0!==n[0]||1!==n[1])return n}}){return(c,u,d)=>{const{container:f,view:h,update:p,setState:g}=c,m=f.getElementsByClassName(e);if(!m.length)return()=>{};let y=!1;const{scale:v,coordinate:b}=h,{x:w,y:B}=v,x=D(b),C=t=>{const e="vertical"===t?"y":"x",n="vertical"===t?"x":"y";return x?[n,e]:[e,n]},E=new Map,O=new Set,k=nf(h),F=function(t,e,n,r,i){var A,o,a,s;const l={x:e.x||n.getOptions().domain||[],y:e.y||r.getOptions().domain||[]},c=i||nf(t),{hasIndependentX:u,hasIndependentY:d}=c;if(u||d){let e=1,n=1;for(const[r,i]of t.markState.entries())if(null==i?void 0:i.channels){if(u){const t=i.channels.find(t=>"x"===t.name);(null===(o=null===(A=null==r?void 0:r.scale)||void 0===A?void 0:A.x)||void 0===o?void 0:o.independent)&&(l[`x${e}`]=t.scale.domain,e++)}if(d){const t=i.channels.find(t=>"y"===t.name);(null===(s=null===(a=null==r?void 0:r.scale)||void 0===a?void 0:a.y)||void 0===s?void 0:s.independent)&&(l[`y${n}`]=t.scale.domain,n++)}}}return l}(h,t,w,B,k),Q=Array.from(m),M=t=>Q.some(e=>{const{orientation:n}=e.attributes,[r]=C(n);return r===t}),U=M("x")&&!M("y"),S=M("y")&&!M("x"),_=!tf(s)&&(U||S);for(const t of m){const{orientation:e}=t.attributes,[c,u]=C(e),f=`${n}${Dc(c)}:filter`,m="x"===c,{ratio:b}=w.getOptions(),{ratio:Q}=B.getOptions(),M=t=>{if(t.data){const{selection:e}=t.data,[n=ib(F.x),r=ib(F.y)]=e;return m?[dd(w,n,b),dd(B,r,Q)]:[dd(B,r,Q),dd(w,n,b)]}const{value:n}=t.detail;return[rb(n,v[c],x&&"horizontal"===e),F[u]]};let I=!1;const T=t=>{I=t,t||(y=!1)},L=ob({getFiltering:()=>I,setFiltering:T,domainsOf:M,view:h,independentScaleInfo:k,enableAdaptiveFiltering:_,hasOnlyXSlider:U,hasOnlyYSlider:S,adaptiveMode:s,scaleX:w,scaleY:B,scale:v,channelDomain:F,channel0:c,channel1:u,isX:m,emitter:d,eventName:f,setState:g,slider:t,prefix:n,hasState:i,update:p,wait:A,leading:o,trailing:a}),P=e=>{const{nativeEvent:n}=e;if(n)return;const{data:i}=e,{selection:A}=i,[o,a]=A;t.dispatchEvent(new $.up("valuechange",{data:i,nativeEvent:!1}));const s=m?pd(o,w):pd(a,B);r(t,s)};d.on(f,P),t.addEventListener("valuechange",L),E.set(t,L),O.add([f,P]);const j=l(t);j&&t.dispatchEvent(new $.up("valuechange",{detail:{value:j},nativeEvent:!1,initValue:!0}))}return()=>{for(const[t,e]of E)t.removeEventListener("valuechange",e);for(const[t,e]of O)d.off(t,e)}}}function ob({getFiltering:t,setFiltering:e,domainsOf:n,view:r,independentScaleInfo:i,enableAdaptiveFiltering:A,hasOnlyXSlider:o,hasOnlyYSlider:a,adaptiveMode:s,scaleX:l,scaleY:c,scale:u,channelDomain:d,channel0:f,channel1:h,isX:p,emitter:g,eventName:m,setState:y,slider:v,prefix:b,hasState:w,update:B,wait:x,leading:C,trailing:E}){return qu(x=>{return C=this,E=void 0,k=function*(){const{initValue:C=!1}=x;if(t()&&!C)return;e(!0);const{nativeEvent:E=!0}=x,{markDataPairs:O}=function(t){var e,n;const r=[],i=[],A=[],o=t.markState;if(o)for(const[t,a]of o.entries())if(null==a?void 0:a.channels){const o={};for(const t of a.channels)if("x"===(null==t?void 0:t.name)&&(null===(e=t.values)||void 0===e?void 0:e.length)>0){let e=[];for(const n of t.values)(null==n?void 0:n.value)&&(e=e.concat(n.value),r.push(n.value));o.x=e}else if(t&&("y"===t.name||t.name.startsWith("y"))&&(null===(n=t.values)||void 0===n?void 0:n.length)>0){const e=t.name,n=[];for(const r of t.values)if(null==r?void 0:r.value){const t=r.value;n.push(t),"y"!==e&&"y1"!==e||(Array.isArray(t)?i.push(t.flat()):i.push([t]))}o[e]=n}(o.x||[]).length>0&&(o.y||[]).length>0&&A.push({markKey:t.key||`mark_${A.length}`,channelData:o})}return{xChannelValues:r.flat(),yChannelValues:i.flat(),markDataPairs:A}}(r);if(i[`hasIndependent${h.toUpperCase()}`]){const[t]=n(x),e=a&&!p,{filteredDomain:B,markToScaleMap:C}=function({view:t,domain0:e,shouldFilterXAxis:n,enableAdaptiveFiltering:r,markDataPairs:i,adaptiveMode:A,scaleX:o,scaleY:a,scale:s,channelDomain:l,independentScaleInfo:c,channel0:u}){const d=new Map,f=new Map;if(!r||0===i.length||!(null==e?void 0:e.length))return{filteredDomain:d,markToScaleMap:f};const h=Fl(t,"options.slider");if(Object.keys(h).length>0&&Object.prototype.hasOwnProperty.call(h,u)){const t=function(t,e,n,r,i){const A=t?r:n,o=(t=>{const e={};return Object.keys(i).forEach(n=>{(n===t||n.match(new RegExp(`^${t}\\d+$`)))&&(e[n]=i[n])}),e})(t?"x":"y"),a=Object.keys(o),s=a.map(t=>e[t]),l=cd(A),c=s.map(t=>cd(t)),u=s.map((t,e)=>{const n=t.getOptions().domain;return!c[e]&&n&&n.length>=2&&0===n[0]});return{currentScale:A,targetScales:s,isSourceDiscrete:l,isTargetDiscrete:c,shouldPreserveZeroBaseline:u,targetScaleKeys:a}}(n,s,o,a,l);(n?c.markToXScaleMap:c.markToYScaleMap).forEach((t,e)=>{f.set(e,t)});const r=function({markDataPairs:t,domain:e,scaleInfo:n,markToScaleMap:r,adaptiveMode:i,shouldFilterXAxis:A=!1}){const o=new Map,{isSourceDiscrete:a,isTargetDiscrete:s,shouldPreserveZeroBaseline:l,targetScaleKeys:c}=n;return t.forEach(t=>{const n=r.get(t.markKey);if(!n)return;const u=c.indexOf(n);if(-1===u)return;const d=Zv([t],e,a,s[u],l[u],i,A);o.set(n,d)}),o}({markDataPairs:i,domain:e,scaleInfo:t,markToScaleMap:f,adaptiveMode:A,isViewSlider:!0,shouldFilterXAxis:n});return Jv(l,r,n,!0),{filteredDomain:r,markToScaleMap:f}}{const r=function(t,e){for(const[n]of t.markState.entries()){const t=Fl(n,"slider");if(Object.keys(t||{}).length>0&&Object.prototype.hasOwnProperty.call(t,e))return String(n.key||"")}return null}(t,u);if(r){const t=$v(n,o,a),s=n?c.markToXScaleMap:c.markToYScaleMap,l=s.get(r)||"";if(l){f.set(r,l);const o=function(t,e,n,r,i,A,o=!1,a){const s=new Map;if(0===t.length||0===e.length)return s;const{isSourceDiscrete:l,isTargetDiscrete:c,shouldPreserveZeroBaseline:u}=n,d=t.filter(a?t=>a.get(t.markKey)===i:t=>t.markKey===r);if(0===d.length)return s;const f=Zv(d,e,l,c,u,A,o);return s.set(i,f),s}(i,e,t,r,l,A,n,s);return{filteredDomain:o,markToScaleMap:f}}}}return{filteredDomain:d,markToScaleMap:f}}({view:r,domain0:t,shouldFilterXAxis:e,enableAdaptiveFiltering:A&&(o&&p||a&&!p),markDataPairs:O,adaptiveMode:s,scaleX:l,scaleY:c,scale:u,channelDomain:d,independentScaleInfo:i,channel0:f});d[f]=t,eb(g,m,x,t,d,p,E),nb(y,v,r,{domain0:t,filteredDomain:B,channel0:f,channel1:h,prefix:b,hasState:w,isMultiAxis:!0,markToScaleMap:C,enableAdaptiveFiltering:A})}else{const[t,e]=n(x),i=function({domain0:t,domain1:e,shouldFilterXAxis:n,enableAdaptiveFiltering:r,markDataPairs:i,adaptiveMode:A,scaleX:o,scaleY:a,channelDomain:s,hasOnlyXSlider:l,hasOnlyYSlider:c,isX:u}){let d=e;return r&&i.length>0&&(l&&u||c&&!u)&&(null==t?void 0:t.length)>0&&(d=function({markDataPairs:t,domain:e,scaleInfo:n,adaptiveMode:r,shouldFilterXAxis:i=!1}){const{isSourceDiscrete:A,isTargetDiscrete:o,shouldPreserveZeroBaseline:a}=n;return Zv(t,e,A,o,a,r,i)}({markDataPairs:i,domain:t,scaleInfo:$v(n,o,a),adaptiveMode:A,shouldFilterXAxis:n}),Jv(s,d,n,!1)),d}({domain0:t,domain1:e,shouldFilterXAxis:a&&!p,enableAdaptiveFiltering:A,markDataPairs:O,adaptiveMode:s,scaleX:l,scaleY:c,channelDomain:d,hasOnlyXSlider:o,hasOnlyYSlider:a,isX:p});d[f]=t,eb(g,m,x,t,d,p,E),nb(y,v,r,{domain0:t,filteredDomain:i,channel0:f,channel1:h,prefix:b,hasState:w,isMultiAxis:!1,markToScaleMap:void 0,enableAdaptiveFiltering:A})}yield B(),e(!1)},new((O=void 0)||(O=Promise))(function(t,e){function n(t){try{i(k.next(t))}catch(t){e(t)}}function r(t){try{i(k.throw(t))}catch(t){e(t)}}function i(e){e.done?t(e.value):function(t){return t instanceof O?t:new O(function(e){e(t)})}(e.value).then(n,r)}i((k=k.apply(C,E||[])).next())});var C,E,O,k},x,{leading:C,trailing:E})}function ab({className:t="slider",setValue:e=(t,e)=>t.setValues(e),minRange:n=.01,wheelSensitivity:r=.05,x:i=!0,y:A=!0}={}){return o=>{const{container:a,view:s}=o,{coordinate:l}=s,c=D(l),u=function(t){var e;try{const n=null===(e=t.ownerDocument)||void 0===e?void 0:e.defaultView;if(!n||"function"!=typeof n.getContextService)return null;const r=n.getContextService().getDomElement();return r instanceof HTMLElement?r:null}catch(t){return null}}(a),d=Math.max(1e-6,Math.min(1,n)),f=a.getElementsByClassName(t);if(!f.length)return()=>{};const h=(t,e)=>!0===t||!1!==t&&("shift"===t?e.shiftKey&&!e.ctrlKey&&!e.altKey:"ctrl"===t?e.ctrlKey&&!e.shiftKey&&!e.altKey:"alt"===t&&e.altKey&&!e.shiftKey&&!e.ctrlKey),p=(t,n)=>{e(t,n),t.dispatchEvent(new $.up("valuechange",{detail:{value:n},nativeEvent:!0}))},g=(t,e,n,r,i)=>{const A=Math.max(0,Math.min(1,(t-e)/n));return Math.max(r,Math.min(i,A))},m=t=>{if(!u)return;if(!u.contains(t.target))return;const e=u.getBoundingClientRect(),n=t.clientX-e.left,o=t.clientY-e.top,a=[];for(const e of f){const{values:n,orientation:r}=e.attributes;if(!n)continue;const o="horizontal"===r;h("x"==(c?o?"y":"x":o?"x":"y")?i:A,t)&&a.push(e)}if(0!==a.length){t.preventDefault(),t.stopPropagation();for(const e of a){const{values:i,orientation:A,x:a,y:s,trackLength:l}=e.attributes,[c,u]=i,f=u-c,h="horizontal"===A?g(n,a,l,c,u):g(o,s,l,c,u),m=r*Jd(f),y=Math.max(d,Math.min(1,f*(1+t.deltaY*m)));let v=h-y*((h-c)/f),b=h+y*((u-h)/f);v<0?(v=0,b=Math.min(1,y)):b>1&&(b=1,v=Math.max(0,1-y)),p(e,[v,b])}}};return u&&u.addEventListener("wheel",m,{passive:!1,capture:!0}),()=>{u&&u.removeEventListener("wheel",m,{capture:!0})}}}ab.props={reapplyWhenUpdate:!0};const sb="g2-scrollbar";function lb(t,e,n){return`<${t} style="${Object.entries(n).map(([t,e])=>`${function(t){return t.replace(/([A-Z])/g,"-$1").toLowerCase()}(t)}:${e}`).join(";")}">${e}</${t}>`}const cb={backgroundColor:"rgba(0,0,0,0.75)",color:"#fff",width:"max-content",padding:"1px 4px",fontSize:"12px",borderRadius:"2.5px",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)"};function ub(t){return"text"===t.nodeName&&!!t.isOverflowing()}function db(t){var{offsetX:e=8,offsetY:n=8}=t,r=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n}(t,["offsetX","offsetY"]);return t=>{const{container:i}=t,[A,o]=i.getBounds().min,a=Pt(r,"tip"),s=new Set,l=t=>{const{target:r}=t;if(!ub(r))return void t.stopPropagation();const{offsetX:l,offsetY:c}=t,u=l+e-A,d=c+n-o;if(r.tip)return r.tip.style.x=u,void(r.tip.style.y=d);const{text:f}=r.style,h=new $.g3({className:"poptip",style:{innerHTML:lb("div",f,Object.assign(Object.assign({},cb),a)),x:u,y:d}});i.appendChild(h),r.tip=h,s.add(h)},c=t=>{const{target:e}=t;ub(e)?e.tip&&(e.tip.remove(),e.tip=null,s.delete(e.tip)):t.stopPropagation()};return i.addEventListener("pointerover",l),i.addEventListener("pointerout",c),()=>{i.removeEventListener("pointerover",l),i.removeEventListener("pointerout",c),s.forEach(t=>t.remove())}}}db.props={reapplyWhenUpdate:!0};const fb=Object.keys?function(t){return Object.keys(t)}:function(t){var e=[];return Hc(t,function(n,r){(0,mi.A)(t)&&"prototype"===r||e.push(r)}),e},hb=function(t,e){if(!(0,x.A)(t))return null;var n;if((0,mi.A)(e)&&(n=e),O(e)&&(n=function(t){return function(t,e){var n=fb(e),r=n.length;if((0,ot.A)(t))return!r;for(var i=0;i<r;i+=1){var A=n[i];if(e[A]!==t[A]||!(A in t))return!1}return!0}(t,e)}),n)for(var r=0;r<t.length;r+=1)if(n(t[r]))return t[r];return null};var pb=Object.prototype.hasOwnProperty;const gb=function(t,e){if(null===t||!O(t))return{};var n={};return Hc(e,function(e){pb.call(t,e)&&(n[e]=t[e])}),n};function mb(t){return null==t?null:yb(t)}function yb(t){if("function"!=typeof t)throw new Error;return t}var vb=n("./node_modules/.pnpm/d3-hierarchy@3.1.2/node_modules/d3-hierarchy/src/hierarchy/index.js"),bb={depth:-1},wb={},Bb={};function xb(t){return t.id}function Cb(t){return t.parentId}function Eb(){var t,e=xb,n=Cb;function r(r){var i,A,o,a,s,l,c,u,d=Array.from(r),f=e,h=n,p=new Map;if(null!=t){const e=d.map((e,n)=>function(t){let e=(t=`${t}`).length;return kb(t,e-1)&&!kb(t,e-2)&&(t=t.slice(0,-1)),"/"===t[0]?t:`/${t}`}(t(e,n,r))),n=e.map(Ob),i=new Set(e).add("");for(const t of n)i.has(t)||(i.add(t),e.push(t),n.push(Ob(t)),d.push(Bb));f=(t,n)=>e[n],h=(t,e)=>n[e]}for(o=0,i=d.length;o<i;++o)l=d[o]=new vb.bP(A=d[o]),null!=(c=f(A,o,r))&&(c+="")&&(u=l.id=c,p.set(u,p.has(u)?wb:l)),null!=(c=h(A,o,r))&&(c+="")&&(l.parent=c);for(o=0;o<i;++o)if(c=(l=d[o]).parent){if(!(s=p.get(c)))throw new Error("missing: "+c);if(s===wb)throw new Error("ambiguous: "+c);s.children?s.children.push(l):s.children=[l],l.parent=s}else{if(a)throw new Error("multiple roots");a=l}if(!a)throw new Error("no root");if(null!=t){for(;a.data===Bb&&1===a.children.length;)a=a.children[0],--i;for(let t=d.length-1;t>=0&&(l=d[t]).data===Bb;--t)l.data=null}if(a.parent=bb,a.eachBefore(function(t){t.depth=t.parent.depth+1,--i}).eachBefore(vb.lW),a.parent=null,i>0)throw new Error("cycle");return a}return r.id=function(t){return arguments.length?(e=mb(t),r):e},r.parentId=function(t){return arguments.length?(n=mb(t),r):n},r.path=function(e){return arguments.length?(t=mb(e),r):t},r}function Ob(t){let e=t.length;if(e<2)return"";for(;--e>1&&!kb(t,e););return t.slice(0,e)}function kb(t,e){if("/"===t[e]){let n=0;for(;e>0&&"\\"===t[--e];)++n;if(!(1&n))return!0}return!1}function Fb(t,e,n,r,i){var A,o,a=t.children,s=a.length,l=new Array(s+1);for(l[0]=o=A=0;A<s;++A)l[A+1]=o+=a[A].value;!function t(e,n,r,i,A,o,s){if(e>=n-1){var c=a[e];return c.x0=i,c.y0=A,c.x1=o,void(c.y1=s)}for(var u=l[e],d=r/2+u,f=e+1,h=n-1;f<h;){var p=f+h>>>1;l[p]<d?f=p+1:h=p}d-l[f-1]<l[f]-d&&e+1<f&&--f;var g=l[f]-u,m=r-g;if(o-i>s-A){var y=r?(i*m+o*g)/r:o;t(e,f,g,i,A,y,s),t(f,n,m,y,A,o,s)}else{var v=r?(A*m+s*g)/r:s;t(e,f,g,i,A,o,v),t(f,n,m,i,v,o,s)}}(0,s,t.value,e,n,r,i)}function Qb(t,e,n,r,i){for(var A,o=t.children,a=-1,s=o.length,l=t.value&&(r-e)/t.value;++a<s;)(A=o[a]).y0=n,A.y1=i,A.x0=e,A.x1=e+=A.value*l}function Mb(t,e,n,r,i){for(var A,o=t.children,a=-1,s=o.length,l=t.value&&(i-n)/t.value;++a<s;)(A=o[a]).x0=e,A.x1=r,A.y0=n,A.y1=n+=A.value*l}function Ub(t,e,n,r,i){(1&t.depth?Mb:Qb)(t,e,n,r,i)}var Sb=(1+Math.sqrt(5))/2;function _b(t,e,n,r,i,A){for(var o,a,s,l,c,u,d,f,h,p,g,m=[],y=e.children,v=0,b=0,w=y.length,B=e.value;v<w;){s=i-n,l=A-r;do{c=y[b++].value}while(!c&&b<w);for(u=d=c,g=c*c*(p=Math.max(l/s,s/l)/(B*t)),h=Math.max(d/g,g/u);b<w;++b){if(c+=a=y[b].value,a<u&&(u=a),a>d&&(d=a),g=c*c*p,(f=Math.max(d/g,g/u))>h){c-=a;break}h=f}m.push(o={value:c,dice:s<l,children:y.slice(v,b)}),o.dice?Qb(o,n,r,i,B?r+=l*c/B:A):Mb(o,n,r,B?n+=s*c/B:i,A),B-=c,v=b}return m}const Ib=function t(e){function n(t,n,r,i,A){_b(e,t,n,r,i,A)}return n.ratio=function(e){return t((e=+e)>1?e:1)},n}(Sb),Tb=function t(e){function n(t,n,r,i,A){if((o=t._squarify)&&o.ratio===e)for(var o,a,s,l,c,u=-1,d=o.length,f=t.value;++u<d;){for(s=(a=o[u]).children,l=a.value=0,c=s.length;l<c;++l)a.value+=s[l].value;a.dice?Qb(a,n,r,i,f?r+=(A-r)*a.value/f:A):Mb(a,n,r,f?n+=(i-n)*a.value/f:i,A),f-=a.value}else t._squarify=o=_b(e,t,n,r,i,A),o.ratio=e}return n.ratio=function(e){return t((e=+e)>1?e:1)},n}(Sb);function Lb(t){t.x0=Math.round(t.x0),t.y0=Math.round(t.y0),t.x1=Math.round(t.x1),t.y1=Math.round(t.y1)}function Pb(){return 0}function jb(t){return function(){return t}}function Hb(t,e=[t.data.name]){t.id=t.id||t.data.name,t.path=e,t.children&&t.children.forEach(n=>{n.id=`${t.id}/${n.data.name}`,n.path=[...e,n.data.name],Hb(n,n.path)})}function Nb(t){const e=Fl(t,["data","name"]);e.replaceAll&&(t.path=e.replaceAll(".","/").split("/")),t.children&&t.children.forEach(t=>{Nb(t)})}function Db(t,e,n){const{value:r}=n,i=function(t,e){const n={treemapBinary:Fb,treemapDice:Qb,treemapSlice:Mb,treemapSliceDice:Ub,treemapSquarify:Ib,treemapResquarify:Tb},r="treemapSquarify"===t?n[t].ratio(e):n[t];if(!r)throw new TypeError("Invalid tile method!");return r}(e.tile,e.ratio),A=function(t,e){return Array.isArray(t)?"function"==typeof e?Eb().path(e)(t):Eb()(t):(0,vb.Ay)(t)}(t,e.path);(0,x.A)(t)?Nb(A):Hb(A),r?A.sum(t=>e.ignoreParentValue&&t.children?0:gn(r)(t)).sort(e.sort):A.count(),function(){var t=Ib,e=!1,n=1,r=1,i=[0],A=Pb,o=Pb,a=Pb,s=Pb,l=Pb;function c(t){return t.x0=t.y0=0,t.x1=n,t.y1=r,t.eachBefore(u),i=[0],e&&t.eachBefore(Lb),t}function u(e){var n=i[e.depth],r=e.x0+n,c=e.y0+n,u=e.x1-n,d=e.y1-n;u<r&&(r=u=(r+u)/2),d<c&&(c=d=(c+d)/2),e.x0=r,e.y0=c,e.x1=u,e.y1=d,e.children&&(n=i[e.depth+1]=A(e)/2,r+=l(e)-n,c+=o(e)-n,(u-=a(e)-n)<r&&(r=u=(r+u)/2),(d-=s(e)-n)<c&&(c=d=(c+d)/2),t(e,r,c,u,d))}return c.round=function(t){return arguments.length?(e=!!t,c):e},c.size=function(t){return arguments.length?(n=+t[0],r=+t[1],c):[n,r]},c.tile=function(e){return arguments.length?(t=yb(e),c):t},c.padding=function(t){return arguments.length?c.paddingInner(t).paddingOuter(t):c.paddingInner()},c.paddingInner=function(t){return arguments.length?(A="function"==typeof t?t:jb(+t),c):A},c.paddingOuter=function(t){return arguments.length?c.paddingTop(t).paddingRight(t).paddingBottom(t).paddingLeft(t):c.paddingTop()},c.paddingTop=function(t){return arguments.length?(o="function"==typeof t?t:jb(+t),c):o},c.paddingRight=function(t){return arguments.length?(a="function"==typeof t?t:jb(+t),c):a},c.paddingBottom=function(t){return arguments.length?(s="function"==typeof t?t:jb(+t),c):s},c.paddingLeft=function(t){return arguments.length?(l="function"==typeof t?t:jb(+t),c):l},c}().tile(i).size(e.size).round(e.round).paddingInner(e.paddingInner).paddingOuter(e.paddingOuter).paddingTop(e.paddingTop).paddingRight(e.paddingRight).paddingBottom(e.paddingBottom).paddingLeft(e.paddingLeft)(A);const o=A.descendants().map(t=>Object.assign(t,{id:t.id.replace(/^\//,""),x:[t.x0,t.x1],y:[t.y0,t.y1]})),a=o.filter("function"==typeof e.layer?e.layer:t=>t.height===e.layer);return[a,o]}const Rb={breadCrumbFill:"rgba(0, 0, 0, 0.85)",breadCrumbFontSize:12,breadCrumbY:12,activeFill:"rgba(0, 0, 0, 0.5)"};const Kb="partition",zb="markType",Gb="path",Vb="ancestor-node",Wb="childNodeCount",Xb={id:Kb,encode:{x:"x",y:"y",key:Gb,color:Vb,value:"value",name:"name"},labels:[{style:{pointerEvents:"none"},text:"value",position:"inside",transform:[{type:"overflowHide"}]}],axis:{x:{title:"Time/Order",label:!0},y:!1},style:{[zb]:Kb,[Wb]:"childNodeCount"},state:{active:{zIndex:2},inactive:{zIndex:1}},legend:!1,coordinate:{type:"cartesian",grid:!1},interaction:{drillDown:!0}},Yb=t=>{const{encode:e,data:n=[],layout:r={}}=t,i=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n}(t,["encode","data","layout"]),{fillParent:A=!0,sort:o}=r,a=Object.assign(Object.assign({},Xb.encode),e),{value:s}=a,l=function(t){const{data:e,encode:n,fillParent:r,sort:i}=t,{color:A,value:o,name:a}=n;return function(t,e={}){const{valueField:n="value",sort:r,fillParent:i=!0,nameField:A="name"}=e;if(!t||0===t.length)return[];const o=(t,e=null,r=0)=>{const i={data:t,depth:r,parent:e,children:[],x0:0,x1:0,value:t[n]||0};return t.children&&t.children.length>0&&(i.children=t.children.map(t=>o(t,i,r+1))),i},a=[];let s=0;return t.forEach(t=>{const e=o(t),l=(t,e=0,n=!1,A=0)=>{if(n||0===t.depth)t.x0=n?e:0,t.x1=t.x0+t.value;else if(t.x0=e,i&&A>0){const n=t.parent?t.parent.children.reduce((t,e)=>t+e.value,0):t.value;t.x1=e+A*(n>0?t.value/n:1/(t.parent?t.parent.children.length:1))}else t.x1=e+t.value;let o=t.x0;const a=t.x1-t.x0,s=r?[...t.children].sort((t,e)=>r(t.data,e.data)):t.children;if(i&&s.length>0){const e=t.children.reduce((t,e)=>t+e.value,0);s.forEach(t=>{l(t,o,!1,a),o+=a*(e>0?t.value/e:1/s.length)})}else s.forEach(t=>{l(t,o,!1,0),o+=t.x1-t.x0})};l(e,s,!0),s+=e.value;const c=t=>{a.push((t=>{var e,r,i;const o=t=>{var e;return null!==(e=t[A])&&void 0!==e?e:t.name},a=[o(t.data)];let s=t;for(;s.parent;)a.unshift(o(s.parent.data)),s=s.parent;return Object.assign(Object.assign({},gb(t.data,[n])),{[Gb]:a,[Vb]:null!==(i=null===(r=null===(e=s.parent)||void 0===e?void 0:e.data)||void 0===r?void 0:r[A])&&void 0!==i?i:t.data[A],name:t.data[A],depth:t.depth,value:t.value,x:[t.x0,t.x1],y:[t.depth,t.depth+1],[Wb]:t.children.length})})(t)),t.children.forEach(c)};c(e)}),a}(e,{valueField:o,fillParent:r,nameField:a,sort:i}).map(t=>{const e=Object.assign({},t);return A&&A!==Vb&&(e[A]=t[A]),e})}({encode:a,data:n,fillParent:A,sort:o});return[Q({},Xb,Object.assign({type:"rect",data:l,encode:a,tooltip:{title:"path",items:[t=>({name:s,value:t[s]})]},interaction:{elementHighlight:!0}},i))]};Yb.props={};const $b={rootText:"root",style:{fill:"rgba(0, 0, 0, 0.6)",fontSize:11},y:4,active:{fill:"rgba(0, 0, 0, 0.4)"}};var qb=function(t,e,n,r){return new(n||(n=Promise))(function(i,A){function o(t){try{s(r.next(t))}catch(t){A(t)}}function a(t){try{s(r.throw(t))}catch(t){A(t)}}function s(t){t.done?i(t.value):function(t){return t instanceof n?t:new n(function(e){e(t)})}(t.value).then(o,a)}s((r=r.apply(t,e||[])).next())})};const Zb={pointR:6,pointStrokeWidth:1,pointStroke:"#888",pointActiveStroke:"#f5f5f5",pathStroke:"#888",pathLineDash:[3,4],labelFontSize:12,labelFill:"#888",labelStroke:"#fff",labelLineWidth:1,labelY:-6,labelX:2},Jb="movePoint",tw=t=>{const e=t.target,{markType:n}=e;"line"===n&&(e.attr("_lineWidth",e.attr("lineWidth")||1),e.attr("lineWidth",e.attr("_lineWidth")+3)),"interval"===n&&(e.attr("_opacity",e.attr("opacity")||1),e.attr("opacity",.7*e.attr("_opacity")))},ew=t=>{const e=t.target,{markType:n}=e;"line"===n&&e.attr("lineWidth",e.attr("_lineWidth")),"interval"===n&&e.attr("opacity",e.attr("_opacity"))},nw=(t,e,n)=>{t.forEach((t,r)=>{t.attr("stroke",e[1]===r?n.activeStroke:n.stroke)})},rw=(t,e,n,r)=>{const i=new $.wA({style:n}),A=new $.EY({style:r});return e.appendChild(A),t.appendChild(i),[i,A]},iw=(t,e)=>{if(!Fl(t,["options","range","indexOf"]))return;const n=t.options.range.indexOf(e);return t.sortedDomain[n]},Aw=(t,e,n)=>{const r=Wd(t,e),i=Wd(t,n)/r;return[t[0]+(e[0]-t[0])*i,t[1]+(e[1]-t[1])*i]};const ow=()=>t=>{const{children:e}=t;if(!Array.isArray(e))return[];const{x:n=0,y:r=0,width:i,height:A,data:o}=t;return e.map(t=>{var{data:e,x:a,y:s,width:l,height:c}=t,u=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n}(t,["data","x","y","width","height"]);return Object.assign(Object.assign({},u),{data:Gp(e,o),x:null!=a?a:n,y:null!=s?s:r,width:null!=l?l:i,height:null!=c?c:A})})};ow.props={};var aw=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n};const sw=()=>t=>{const{children:e}=t;if(!Array.isArray(e))return[];const{direction:n="row",ratio:r=e.map(()=>1),padding:i=0,data:A}=t,[o,a,s,l]="col"===n?["y","height","width","x"]:["x","width","height","y"],c=r.reduce((t,e)=>t+e),u=t[a]-i*(e.length-1),d=r.map(t=>u*(t/c)),f=[];let h=t[o]||0;for(let n=0;n<d.length;n+=1){const r=e[n],{data:c}=r,u=aw(r,["data"]),p=Gp(c,A);f.push(Object.assign({[o]:h,[a]:d[n],[l]:t[l]||0,[s]:t[s],data:p},u)),h+=d[n]+i}return f};sw.props={};class lw{constructor(t){this.$value=t}static of(t){return new lw(t)}call(t,...e){return this.$value=t(this.$value,...e),this}value(){return this.$value}}const cw=Kp(t=>{const{encode:e,data:n,scale:r,shareSize:i=!1}=t,{x:A,y:o}=e,a=(t,e)=>{var A;if(void 0===t||!i)return{};const o=et(n,e=>e[t]),a=(null===(A=null==r?void 0:r[e])||void 0===A?void 0:A.domain)||Array.from(o.keys()),s=a.map(t=>o.has(t)?o.get(t).length:1);return{domain:a,flex:s}};return{scale:{x:Object.assign(Object.assign({paddingOuter:0,paddingInner:.1,guide:void 0===A?null:{position:"top"}},void 0===A&&{paddingInner:0}),a(A,"x")),y:Object.assign(Object.assign({range:[0,1],paddingOuter:0,paddingInner:.1,guide:void 0===o?null:{position:"right"}},void 0===o&&{paddingInner:0}),a(o,"y"))}}}),uw=zp(t=>{const{data:e,scale:n,legend:r}=t,i=[t];let A,o,a;for(;i.length;){const t=i.shift(),{children:e,encode:n={},scale:r={},legend:s={}}=t,{color:l}=n,{color:c}=r,{color:u}=s;void 0!==l&&(A=l),void 0!==c&&(o=c),void 0!==u&&(a=u),Array.isArray(e)&&i.push(...e)}const s="string"==typeof A?A:"",[l,c]=(()=>{var t;const r=null===(t=null==n?void 0:n.color)||void 0===t?void 0:t.domain;if(void 0!==r)return[r];if(void 0===A)return[void 0];const i="function"==typeof A?A:t=>t[A],o=e.map(i);return o.some(t=>"number"==typeof t)?[Ce(o)]:[Array.from(new Set(o)),"ordinal"]})();return Object.assign({encode:{color:{type:"column",value:null!=l?l:[]}},scale:{color:Q({},o,{domain:l,type:c})}},void 0===r&&{legend:{color:Q({title:s},a)}})}),dw=Kp(()=>({animate:{enterType:"fadeIn"}})),fw=zp(()=>({frame:!1,encode:{shape:"hollow"},style:{lineWidth:0}})),hw=zp(()=>({type:"cell"})),pw=zp(t=>{const{data:e}=t,n={type:"custom",callback:()=>{const{data:e,encode:n}=t,{x:r,y:i}=n,A=r?Array.from(new Set(e.map(t=>t[r]))):[],o=i?Array.from(new Set(e.map(t=>t[i]))):[];return(()=>{if(A.length&&o.length){const t=[];for(const e of A)for(const n of o)t.push({[r]:e,[i]:n});return t}return A.length?A.map(t=>({[r]:t})):o.length?o.map(t=>({[i]:t})):void 0})()}};return{data:{type:"inline",value:e,transform:[n]}}}),gw=zp((t,e=mw,n=vw,r=bw,i={})=>{const{data:A,encode:o,children:a,scale:s,x:l=0,y:c=0,shareData:u=!1,key:d}=t,{value:f}=A,{x:h,y:p}=o,{color:g}=s,{domain:m}=g;return{children:(t,A,o)=>{const{x:s,y:g}=A,{paddingLeft:y,paddingTop:v,marginLeft:b,marginTop:w}=o,{domain:B}=s.getOptions(),{domain:x}=g.getOptions(),C=Oe(t),E=t.map(e),O=t.map(({x:t,y:e})=>[s.invert(t),g.invert(e)]),k=O.map(([t,e])=>n=>{const{[h]:r,[p]:i}=n;return!(void 0!==h&&r!==t||void 0!==p&&i!==e)}),F=k.map(t=>f.filter(t)),M=u?ko(F,t=>t.length):void 0,U=O.map(([t,e])=>({columnField:h,columnIndex:B.indexOf(t),columnValue:t,columnValuesLength:B.length,rowField:p,rowIndex:x.indexOf(e),rowValue:e,rowValuesLength:x.length})),S=U.map(t=>Array.isArray(a)?a:[a(t)].flat(1));return C.flatMap(t=>{const[e,A,o,a]=E[t],s=U[t],u=F[t];return S[t].map(g=>{var B,x,{scale:C,key:E,facet:O=!0,axis:k={},legend:F={}}=g,U=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n}(g,["scale","key","facet","axis","legend"]);const S=(null===(B=null==C?void 0:C.y)||void 0===B?void 0:B.guide)||k.y,_=(null===(x=null==C?void 0:C.x)||void 0===x?void 0:x.guide)||k.x,I={x:{tickCount:h?5:void 0},y:{tickCount:p?5:void 0}},T=O?u:0===u.length?[]:f,L={color:{domain:m}},P={x:ww(_,n)(s,T),y:ww(S,r)(s,T)};return Object.assign(Object.assign({key:`${E}-${t}`,data:T,margin:0,x:e+y+l+b,y:A+v+c+w,parentKey:d,width:o,height:a,paddingLeft:0,paddingRight:0,paddingTop:0,paddingBottom:0,frame:!!T.length,dataDomain:M,scale:Q(I,C,L),axis:Q({},k,P),legend:!1},U),i)})})}}});function mw(t){const{points:e}=t;return Zt(e)}function yw(t,e){return Q(e.length?{title:!1,tick:null,label:null}:{title:!1,tick:null,label:null,grid:null},t)}function vw(t){return(e,n)=>{const{rowIndex:r,rowValuesLength:i,columnIndex:A,columnValuesLength:o}=e;return r!==i-1?yw(t,n):Q({title:A===o-1&&void 0,grid:n.length?void 0:null},t)}}function bw(t){return(e,n)=>{const{rowIndex:r,columnIndex:i}=e;return 0!==i?yw(t,n):Q({title:0===r&&void 0,grid:n.length?void 0:null},t)}}function ww(t,e){return"function"==typeof t?t:null===t||!1===t?()=>null:e(t)}const Bw=()=>t=>[lw.of(t).call(hw).call(uw).call(dw).call(cw).call(fw).call(pw).call(gw).value()];Bw.props={};var xw=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n};const Cw=Kp(t=>({scale:{x:{guide:null,paddingOuter:0,paddingInner:.1},y:{guide:null,range:[0,1],paddingOuter:0,paddingInner:.1}}})),Ew=zp(t=>{const{data:e,children:n,x:r=0,y:i=0,key:A}=t;return{children:(t,o,a)=>{const{x:s,y:l}=o,{paddingLeft:c,paddingTop:u,marginLeft:d,marginTop:f}=a,{domain:h}=s.getOptions(),{domain:p}=l.getOptions(),g=Oe(t),m=t.map(({points:t})=>Zt(t)),y=t.map(({x:t,y:e})=>[s.invert(t),l.invert(e)]),v=y.map(([t,e])=>({columnField:t,columnIndex:h.indexOf(t),columnValue:t,columnValuesLength:h.length,rowField:e,rowIndex:p.indexOf(e),rowValue:e,rowValuesLength:p.length})),b=v.map(t=>Array.isArray(n)?n:[n(t)].flat(1));return g.flatMap(t=>{const[n,o,a,s]=m[t],[l,h]=y[t],p=v[t];return b[t].map(g=>{var m,y;const{scale:v,key:b,encode:w,axis:B,interaction:x}=g,C=xw(g,["scale","key","encode","axis","interaction"]),E=null===(m=null==v?void 0:v.y)||void 0===m?void 0:m.guide,O={x:(k=null===(y=null==v?void 0:v.x)||void 0===y?void 0:y.guide,"function"==typeof k?k:null===k?()=>null:(t,e)=>{const{rowIndex:n,rowValuesLength:r}=t;if(n!==r-1)return yw(k,e)})(p,e),y:kw(E)(p,e)};var k;return Object.assign({data:e,parentKey:A,key:`${b}-${t}`,x:n+c+r+d,y:o+u+i+f,width:a,height:s,margin:0,paddingLeft:0,paddingRight:0,paddingTop:0,paddingBottom:0,frame:!0,scale:Q({x:{facet:!1},y:{facet:!1}},v),axis:Q({x:{tickCount:5},y:{tickCount:5}},B,O),legend:!1,encode:Q({},w,{x:l,y:h}),interaction:Q({},x,{legendFilter:!1})},C)})})}}}),Ow=zp(t=>{const{encode:e}=t,n=xw(t,["encode"]),{position:r=[],x:i=r,y:A=[...r].reverse()}=e,o=xw(e,["position","x","y"]),a=[];for(const t of[i].flat(1))for(const e of[A].flat(1))a.push({$x:t,$y:e});return Object.assign(Object.assign({},n),{data:a,encode:Object.assign(Object.assign({},o),{x:"$x",y:"$y"}),scale:Object.assign(Object.assign({},1===[i].flat(1).length&&{x:{paddingInner:0}}),1===[A].flat(1).length&&{y:{paddingInner:0}})})});function kw(t){return"function"==typeof t?t:null===t?()=>null:(e,n)=>{const{columnIndex:r}=e;if(0!==r)return yw(t,n)}}const Fw=Kp(t=>({scale:{x:{guide:{type:"axisArc"},paddingOuter:0,paddingInner:.1},y:{guide:null,range:[0,1],paddingOuter:0,paddingInner:.1}}})),Qw=Kp(t=>({coordinate:{type:"polar"}})),Mw=t=>{const{encode:e}=t,n=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n}(t,["encode"]),{position:r}=e;return Object.assign(Object.assign({},n),{encode:{x:r}})};function Uw(t){return t=>null}function Sw(t){const{points:e}=t,[n,r,i,A]=e,o=Xt(n,A),a=Vt(n,A),s=qt(a,Vt(r,i)),l=1/Math.sin(s/2),c=o/(1+l),u=c*Math.sqrt(2),[d,f]=i,h=$t(a)+s/2,p=c*l;return[d+p*Math.sin(h)-u/2,f-p*Math.cos(h)-u/2,u,u]}function _w(t,e,n){const r=[0,n],i=[1-n,1];return"normal"===t?r:"reverse"===t?i:"alternate"===t?e%2==0?r:i:"reverse-alternate"===t?e%2==0?i:r:void 0}const Iw=()=>t=>{const{children:e=[],duration:n=1e3,iterationCount:r=1,direction:i="normal",easing:A="ease-in-out-sine"}=t,o=e.length;if(!Array.isArray(e)||0===o)return[];const{key:a}=e[0],s=e.map(t=>Object.assign(Object.assign({},t),{key:a})).map(t=>function(t,e,n){const r=[t];for(;r.length;){const t=r.pop();t.animate=Q({enter:{duration:e},update:{duration:e,easing:n,type:"morphing",fill:"both"},exit:{type:"fadeOut",duration:e}},t.animate||{});const{children:i}=t;Array.isArray(i)&&r.push(...i)}return t}(t,n,A));return function*(){let t,e=0;for(;"infinite"===r||e<r;){const[n,r]=_w(i,e,o);for(let e=n;e<r;e+=1){const n=Math.abs(e);t!==n&&(yield s[n]),t=n}e++}}};function Tw(t,e,n){const{encode:r}=n;if(null===t)return[e];const i=function(t){return Array.isArray(t)?t:[t]}(t).map(t=>{var e;return[t,null===(e=T(r,t))||void 0===e?void 0:e[0]]}).filter(([,t])=>Tt(t));return Array.from(et(e,t=>i.map(([,e])=>e[t]).join("-")).values())}function Lw(t){return Array.isArray(t)?function(t){return(e,n,r)=>(n,r)=>t.reduce((t,i)=>0!==t?t:(0,Zu.A)(e[n][i],e[r][i]),0)}(t):"function"==typeof t?function(t){return(e,n,r)=>Kw(n=>t(e[n]))}(t):"series"===t?Hw:"value"===t?Nw:"sum"===t?Dw:"maxIndex"===t?Rw:null}function Pw(t,e){for(const n of t)n.sort(e)}function jw(t,e){return(null==e?void 0:e.domain)||Array.from(new Set(t))}function Hw(t,e,n){return Kw(t=>n[t])}function Nw(t,e,n){return Kw(t=>e[t])}function Dw(t,e,n){const r=Oe(t),i=Array.from(et(r,t=>n[+t]).entries()),A=new Map(i.map(([t,n])=>[t,n.reduce((t,n)=>t+ +e[n])]));return Kw(t=>A.get(n[t]))}function Rw(t,e,n){const r=Oe(t),i=Array.from(et(r,t=>n[+t]).entries()),A=new Map(i.map(([t,n])=>[t,Xp(n,t=>e[t])]));return Kw(t=>A.get(n[t]))}function Kw(t){return(e,n)=>(0,Zu.A)(t(e),t(n))}Iw.props={};const zw=(t={})=>{const{groupBy:e="x",orderBy:n=null,reverse:r=!1,y:i="y",y1:A="y1",series:o=!0}=t;return(t,a)=>{var s;const{data:l,encode:c,style:u={}}=a,[d,f]=T(c,"y"),[h,p]=T(c,"y1"),[g]=o?L(c,"series","color"):T(c,"color"),m=Tw(e,t,a),y=(null!==(s=Lw(n))&&void 0!==s?s:()=>null)(l,d,g);y&&Pw(m,y);const v=new Array(t.length),b=new Array(t.length),w=new Array(t.length),B=[],x=[];for(const t of m){r&&t.reverse();const e=h?+h[t[0]]:0,n=[],i=[];for(const r of t){const t=w[r]=+d[r]-e;t<0?i.push(r):t>=0&&n.push(r)}const A=n.length>0?n:i,o=i.length>0?i:n;let a=n.length-1,s=0;for(;a>0&&0===d[A[a]];)a--;for(;s<o.length-1&&0===d[o[s]];)s++;B.push(A[a]),x.push(o[s]);let l=e;for(const t of i.reverse()){const e=w[t];l=v[t]=(b[t]=l)+e}let c=e;for(const t of n){const e=w[t];e>0?c=v[t]=(b[t]=c)+e:v[t]=b[t]=c}}const C=new Set(B),E=new Set(x),O="y"===i?v:b,k="y"===A?v:b;let F;return F="point"===a.type?{y0:U(d,f),y:M(O,f)}:{y0:U(d,f),y:M(O,f),y1:M(k,p)},[t,Q({},a,{encode:Object.assign({},F),style:Object.assign({first:(t,e)=>C.has(e),last:(t,e)=>E.has(e)},u)})]}};function Gw(t,e){let n=0;if(void 0===e)for(let e of t)null!=e&&(e=+e)>=e&&++n;else{let r=-1;for(let i of t)null!=(i=e(i,++r,t))&&(i=+i)>=i&&++n}return n}function Vw(t,e){const n=function(t,e){let n,r=0,i=0,A=0;if(void 0===e)for(let e of t)null!=e&&(e=+e)>=e&&(n=e-i,i+=n/++r,A+=n*(e-i));else{let o=-1;for(let a of t)null!=(a=e(a,++o,t))&&(a=+a)>=a&&(n=a-i,i+=n/++r,A+=n*(a-i))}if(r>1)return A/(r-1)}(t,e);return n?Math.sqrt(n):n}zw.props={};var Ww=Array.prototype.slice;function Xw(t){return()=>t}var Yw=n("./node_modules/.pnpm/d3-array@3.2.4/node_modules/d3-array/src/ticks.js");function $w(t){return Math.max(1,Math.ceil(Math.log(Gw(t))/Math.LN2)+1)}function qw(t,e,n=0,r=1/0,i){if(e=Math.floor(e),n=Math.floor(Math.max(0,n)),r=Math.floor(Math.min(t.length-1,r)),!(n<=e&&e<=r))return t;for(i=void 0===i?ed:td(i);r>n;){if(r-n>600){const A=r-n+1,o=e-n+1,a=Math.log(A),s=.5*Math.exp(2*a/3),l=.5*Math.sqrt(a*s*(A-s)/A)*(o-A/2<0?-1:1);qw(t,e,Math.max(n,Math.floor(e-o*s/A+l)),Math.min(r,Math.floor(e+(A-o)*s/A+l)),i)}const A=t[e];let o=n,a=r;for(Zw(t,n,e),i(t[r],A)>0&&Zw(t,n,r);o<a;){for(Zw(t,o,a),++o,--a;i(t[o],A)<0;)++o;for(;i(t[a],A)>0;)--a}0===i(t[n],A)?Zw(t,n,a):(++a,Zw(t,a,r)),a<=e&&(n=a+1),e<=a&&(r=a-1)}return t}function Zw(t,e,n){const r=t[e];t[e]=t[n],t[n]=r}var Jw=n("./node_modules/.pnpm/d3-array@3.2.4/node_modules/d3-array/src/number.js");function tB(t,e,n){if((r=(t=Float64Array.from((0,Jw.n)(t,n))).length)&&!isNaN(e=+e)){if(e<=0||r<2)return Oo(t);if(e>=1)return ko(t);var r,i=(r-1)*e,A=Math.floor(i),o=ko(qw(t,A).subarray(0,A+1));return o+(Oo(t.subarray(A+1))-o)*(i-A)}}function eB(t,e){return tB(t,.5,e)}function nB(t,e){return function(t,e,n=Jw.A){if(!isNaN(e=+e)){if(r=Float64Array.from(t,(e,r)=>(0,Jw.A)(n(t[r],r,t))),e<=0)return Ep(r);if(e>=1)return Xp(r);var r,i=Uint32Array.from(t,(t,e)=>e),A=r.length-1,o=Math.floor(A*e);return qw(i,o,0,A,(t,e)=>ed(r[t],r[e])),o=function(t,e=Zu.A){let n,r=!1;if(1===e.length){let i;for(const A of t){const t=e(A);(r?(0,Zu.A)(t,i)>0:0===(0,Zu.A)(t,t))&&(n=A,i=t,r=!0)}}else for(const i of t)(r?e(i,n)>0:0===e(i,i))&&(n=i,r=!0);return n}(i.subarray(0,o+1),t=>r[t]),o>=0?o:-1}}(t,.5,e)}function rB(t,e){let n=0;if(void 0===e)for(let e of t)(e=+e)&&(n+=e);else{let r=-1;for(let i of t)(i=+e(i,++r,t))&&(n+=i)}return n}function iB(t){return e=>null===e?t:`${t} of ${e}`}function AB(){return[(t,e)=>Op(t,t=>+e[t]),iB("mean")]}function oB(){return[(t,e)=>eB(t,t=>+e[t]),iB("median")]}function aB(){return[(t,e)=>ko(t,t=>+e[t]),iB("max")]}function sB(){return[(t,e)=>Oo(t,t=>+e[t]),iB("min")]}function lB(){return[(t,e)=>t.length,iB("count")]}function cB(){return[(t,e)=>rB(t,t=>+e[t]),iB("sum")]}function uB(){return[(t,e)=>e[t[0]],iB("first")]}function dB(){return[(t,e)=>e[t[t.length-1]],iB("last")]}const fB=(t={})=>{const{groupBy:e}=t,n=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n}(t,["groupBy"]);return(t,r)=>{const{data:i,encode:A}=r,o=e(t,r);if(!o)return[t,r];const a=Object.entries(n).map(([t,e])=>{const[n,r]=function(t){if("function"==typeof t)return[t,null];const e={mean:AB,max:aB,count:lB,first:uB,last:dB,sum:cB,min:sB,median:oB}[t];if(!e)throw new Error(`Unknown reducer: ${t}.`);return e()}(e),[a,s]=T(A,t),l=((t,e)=>{if(t)return t;const{from:n}=e;if(!n)return t;const[,r]=T(A,n);return r})(s,e),c=o.map(t=>n(t,null!=a?a:i));return[t,Object.assign(Object.assign({},_(c,(null==r?void 0:r(l))||l)),{aggregate:!0})]}),s=Object.keys(A).map(t=>{const[e,n]=T(A,t),r=o.map(t=>e[t[0]]);return[t,M(r,n)]}),l=o.map(t=>i[t[0]]);return[Oe(o),Q({},r,{data:l,encode:Object.fromEntries([...s,...a])})]}};fB.props={};const hB="thresholds";const pB=(t={})=>{const{groupChannels:e=["color"],binChannels:n=["x","y"]}=t,r=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n}(t,["groupChannels","binChannels"]),i={};return fB(Object.assign(Object.assign(Object.assign({},Object.fromEntries(Object.entries(r).filter(([t])=>!t.startsWith(hB)))),Object.fromEntries(n.flatMap(t=>{const e=([e])=>+i[t].get(e).split(",")[1];return e.from=t,[[t,([e])=>+i[t].get(e).split(",")[0]],[`${t}1`,e]]}))),{groupBy:(t,A)=>{const{encode:o}=A,a=n.map(t=>{const[e]=T(o,t);return e}),s=Pt(r,hB),l=t.filter(t=>a.every(e=>Tt(e[t]))),c=[...e.map(t=>{const[e]=T(o,t);return e}).filter(Tt).map(t=>e=>t[e]),...n.map((t,e)=>{const n=a[e],r=s[t]||function(t){const[e,n]=Ce(t);return Math.min(200,function(t,e,n){const r=Gw(t),i=Vw(t);return r&&i?Math.ceil((n-e)*Math.cbrt(r)/(3.49*i)):1}(t,e,n))}(n),A=function(){var t=tt,e=Ce,n=$w;function r(r){Array.isArray(r)||(r=Array.from(r));var i,A,o,a=r.length,s=new Array(a);for(i=0;i<a;++i)s[i]=t(r[i],i,r);var l=e(s),c=l[0],u=l[1],d=n(s,c,u);if(!Array.isArray(d)){const t=u,n=+d;if(e===Ce&&([c,u]=function(t,e,n){let r;for(;;){const i=(0,Yw.lq)(t,e,n);if(i===r||0===i||!isFinite(i))return[t,e];i>0?(t=Math.floor(t/i)*i,e=Math.ceil(e/i)*i):i<0&&(t=Math.ceil(t*i)/i,e=Math.floor(e*i)/i),r=i}}(c,u,n)),(d=(0,Yw.Ay)(c,u,n))[0]<=c&&(o=(0,Yw.lq)(c,u,n)),d[d.length-1]>=u)if(t>=u&&e===Ce){const t=(0,Yw.lq)(c,u,n);isFinite(t)&&(t>0?u=(Math.floor(u/t)+1)*t:t<0&&(u=(Math.ceil(u*-t)+1)/-t))}else d.pop()}for(var f=d.length,h=0,p=f;d[h]<=c;)++h;for(;d[p-1]>u;)--p;(h||p<f)&&(d=d.slice(h,p),f=p-h);var g,m=new Array(f+1);for(i=0;i<=f;++i)(g=m[i]=[]).x0=i>0?d[i-1]:c,g.x1=i<f?d[i]:u;if(isFinite(o)){if(o>0)for(i=0;i<a;++i)null!=(A=s[i])&&c<=A&&A<=u&&m[Math.min(f,Math.floor((A-c)/o))].push(r[i]);else if(o<0)for(i=0;i<a;++i)if(null!=(A=s[i])&&c<=A&&A<=u){const t=Math.floor((c-A)*o);m[Math.min(f,t+(d[t]<=A))].push(r[i])}}else for(i=0;i<a;++i)null!=(A=s[i])&&c<=A&&A<=u&&m[(0,ld.Ay)(d,A,0,f)].push(r[i]);return m}return r.value=function(e){return arguments.length?(t="function"==typeof e?e:Xw(e),r):t},r.domain=function(t){return arguments.length?(e="function"==typeof t?t:Xw([t[0],t[1]]),r):e},r.thresholds=function(t){return arguments.length?(n="function"==typeof t?t:Xw(Array.isArray(t)?Ww.call(t):t),r):n},r}().thresholds(r).value(t=>+n[t])(l),o=new Map(A.flatMap(t=>{const{x0:e,x1:n}=t,r=`${e},${n}`;return t.map(t=>[t,r])}));return i[t]=o,t=>o.get(t)})];return Array.from(et(l,t=>c.map(e=>e(t)).join("-")).values())}}))};pB.props={};const gB=(t={})=>{const{thresholds:e}=t;return pB(Object.assign(Object.assign({},t),{thresholdsX:e,groupChannels:["color"],binChannels:["x"]}))};gB.props={};const mB=(t={})=>{const{groupBy:e="x",reverse:n=!1,orderBy:r,padding:i}=t;return function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}}(t,["groupBy","reverse","orderBy","padding"]),(t,A)=>{const{data:o,encode:a,scale:s}=A,{series:l}=s,[c]=T(a,"y"),[u]=L(a,"series","color"),d=jw(u,l),f=Q({},A,{scale:{series:{domain:d,paddingInner:i}}}),h=Tw(e,t,A),p=Lw(r);if(!p)return[t,Q(f,{encode:{series:M(u)}})];const g=p(o,c,u);g&&Pw(h,g);const m=new Array(t.length);for(const t of h){n&&t.reverse();for(let e=0;e<t.length;e++)m[t[e]]=d[e]}return[t,Q(f,{encode:{series:M(r?m:u)}})]}};function yB(t,e,n){if(null===t)return[-.5,.5];const r=jw(t,e),i=new vt({domain:r,range:[0,1],padding:n}).getBandWidth();return[-i/2,i/2]}function vB(t,e,n){return e*(1-t)+n*t}mB.props={};const bB=(t={})=>{const{padding:e=0,paddingX:n=e,paddingY:r=e,random:i=Math.random}=t;return(t,e)=>{const{encode:A,scale:o}=e,{x:a,y:s}=o,[l]=T(A,"x"),[c]=T(A,"y"),u=yB(l,a,n),d=yB(c,s,r),f=t.map(()=>vB(i(),...d)),h=t.map(()=>vB(i(),...u));return[t,Q({scale:{x:{padding:.5},y:{padding:.5}}},e,{encode:{dy:M(f),dx:M(h)}})]}};bB.props={};const wB=(t={})=>{const{padding:e=0,random:n=Math.random}=t;return(t,r)=>{const{encode:i,scale:A}=r,{x:o}=A,[a]=T(i,"x"),s=yB(a,o,e),l=t.map(()=>vB(n(),...s));return[t,Q({scale:{x:{padding:.5}}},r,{encode:{dx:M(l)}})]}};wB.props={};const BB=(t={})=>{const{padding:e=0,random:n=Math.random}=t;return(t,r)=>{const{encode:i,scale:A}=r,{y:o}=A,[a]=T(i,"y"),s=yB(a,o,e),l=t.map(()=>vB(n(),...s));return[t,Q({scale:{y:{padding:.5}}},r,{encode:{dy:M(l)}})]}};BB.props={};const xB=(t={})=>{const{groupBy:e="x"}=t;return(t,n)=>{const{encode:r,style:i={}}=n,A=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n}(r,["x"]),o=Object.entries(A).filter(([t])=>t.startsWith("y")).map(([t])=>[t,T(r,t)[0]]),a=o.map(([e])=>[e,new Array(t.length)]),s=Tw(e,t,n),l=new Array(s.length);for(let t=0;t<s.length;t++){const e=s[t].flatMap(t=>o.map(([,e])=>+e[t])),[n,r]=Ce(e);l[t]=(n+r)/2}const c=Math.max(...l);for(let t=0;t<s.length;t++){const e=c-l[t],n=s[t];for(const t of n)for(let n=0;n<o.length;n++){const[,r]=o[n],[,i]=a[n];i[t]=+r[t]+e}}return[t,Q({},n,{encode:Object.fromEntries(a.map(([t,e])=>[t,M(e,T(r,t)[1])])),style:Object.assign({first:(t,e)=>0===e,last:(t,e)=>e===s.length-1},i)})]}};xB.props={};const CB=(t={})=>{const{groupBy:e="x"}=t;return(t,n)=>{const{encode:r}=n,[i]=T(r,"y"),[A,o]=T(r,"y1"),a=Tw(e,t,n),s=new Array(t.length);for(const t of a){const e=t.map(t=>+i[t]);for(let n=0;n<t.length;n++){const r=t[n],A=Math.max(...e.filter((t,e)=>e!==n));s[r]=+i[r]>A?A:i[r]}}return[t,Q({},n,{encode:{y1:M(s,o)}})]}};CB.props={};const EB=t=>{const{groupBy:e=["x"],reducer:n=(t,e)=>e[t[0]],orderBy:r=null,reverse:i=!1,duration:A}=t;return(t,o)=>{const{encode:a}=o,s=(Array.isArray(e)?e:[e]).map(t=>[t,T(a,t)[0]]);if(0===s.length)return[t,o];let l=[t];for(const[,t]of s){const e=[];for(const n of l){const r=Array.from(et(n,e=>t[e]).values());e.push(...r)}l=e}if(r){const[t]=T(a,r);t&&l.sort((e,r)=>n(e,t)-n(r,t)),i&&l.reverse()}const c=(A||3e3)/l.length,[u]=A?[I(t,c)]:L(a,"enterDuration",I(t,c)),[d]=L(a,"enterDelay",I(t,0)),f=new Array(t.length);for(let t=0,e=0;t<l.length;t++){const n=l[t],r=ko(n,t=>+u[t]);for(const t of n)f[t]=+d[t]+e;e+=r}return[t,Q({},o,{encode:{enterDuration:S(u),enterDelay:S(f)}})]}};EB.props={};const OB=(t={})=>{const{groupBy:e="x",basis:n="max"}=t;return(t,r)=>{const{encode:i,tooltip:A}=r,o=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n}(i,["x"]),a=Object.entries(o).filter(([t])=>t.startsWith("y")).map(([t])=>[t,T(i,t)[0]]),[,s]=a.find(([t])=>"y"===t),l=a.map(([e])=>[e,new Array(t.length)]),c=Tw(e,t,r),u=function(t){if("function"==typeof t)return t;const e={min:(t,e)=>Oo(t,t=>e[+t]),max:(t,e)=>ko(t,t=>e[+t]),first:(t,e)=>e[t[0]],last:(t,e)=>e[t[t.length-1]],mean:(t,e)=>Op(t,t=>e[+t]),median:(t,e)=>eB(t,t=>e[+t]),sum:(t,e)=>rB(t,t=>e[+t]),deviation:(t,e)=>Vw(t,t=>e[+t])};return e[t]||ko}(n);for(const t of c){const e=u(t,s);for(const n of t)for(let t=0;t<a.length;t++){const[,r]=a[t],[,i]=l[t];i[n]=+r[n]/e}}const d=Rt(A)||(null==A?void 0:A.items)&&0!==(null==A?void 0:A.items.length);return[t,Q({},r,Object.assign({encode:Object.fromEntries(l.map(([t,e])=>[t,M(e,T(i,t)[1])]))},!d&&i.y0&&{tooltip:{items:[{channel:"y0"}]}}))]}};function kB(t,e){return[t[0]]}function FB(t,e){return[t[t.length-1]]}function QB(t,e){return[t[Xp(t,t=>e[t])]]}function MB(t,e){return[t[Ep(t,t=>e[t])]]}OB.props={};const UB=(t={})=>{const{groupBy:e="series",channel:n,selector:r}=t;return(t,i)=>{const{encode:A}=i,o=Tw(e,t,i),[a]=T(A,n),s=function(t){return"function"==typeof t?t:{first:kB,last:FB,max:QB,min:MB}[t]||kB}(r);return[o.flatMap(t=>s(t,a)),i]}};UB.props={};const SB=(t={})=>{const{selector:e}=t,n=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n}(t,["selector"]);return UB(Object.assign({channel:"x",selector:e},n))};SB.props={};const _B=(t={})=>{const{selector:e}=t,n=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n}(t,["selector"]);return UB(Object.assign({channel:"y",selector:e},n))};_B.props={};const IB=(t={})=>{const{channels:e=["x","y"]}=t,n=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n}(t,["channels"]);return fB(Object.assign(Object.assign({},n),{groupBy:(t,n)=>Tw(e,t,n)}))};IB.props={};const TB=(t={})=>IB(Object.assign(Object.assign({},t),{channels:["x","color","series"]}));TB.props={};const LB=(t={})=>IB(Object.assign(Object.assign({},t),{channels:["y","color","series"]}));LB.props={};const PB=(t={})=>IB(Object.assign(Object.assign({},t),{channels:["color"]}));PB.props={};const jB=(t={})=>(e,n)=>{const{reverse:r,slice:i,channel:A,by:o,ordinal:a=!0,reducer:s}=t,{encode:l,scale:c={}}=n,u=c[A].domain,[d]=T(l,null!=o?o:A),[f]=T(l,A),h=function(t,e,n){const{by:r=t,reducer:i="max"}=e,[A]=T(n,r);if("function"==typeof i)return t=>i(t,A);if("max"===i)return t=>ko(t,t=>+A[t]);if("min"===i)return t=>Oo(t,t=>+A[t]);if("sum"===i)return t=>rB(t,t=>+A[t]);if("median"===i)return t=>eB(t,t=>+A[t]);if("mean"===i)return t=>Op(t,t=>+A[t]);if("first"===i)return t=>A[t[0]];if("last"===i)return t=>A[t[t.length-1]];throw new Error(`Unknown reducer: ${i}`)}(A,{by:o,reducer:s},l),p=function(t,e,n){if(!Array.isArray(n))return t;const r=new Set(n);return t.filter(t=>r.has(e[t]))}(e,f,u),g=(y=p,b=t=>f[t],(2!==(v=h).length?Ju(rt(y,v,b),([t,e],[n,r])=>(0,Zu.A)(e,r)||(0,Zu.A)(t,n)):Ju(et(y,b),([t,e],[n,r])=>v(e,r)||(0,Zu.A)(t,n))).map(([t])=>t)),m=a?e:Ju(e,t=>d[t]);var y,v,b;r&&(!a&&m.reverse(),g.reverse());const w=i?g.slice(..."number"==typeof i?[0,i]:i):g;return[m,Q(n,{scale:{[A]:{domain:w}}})]};jB.props={};const HB=(t={})=>jB(Object.assign(Object.assign({},t),{channel:"x"}));HB.props={};const NB=(t={})=>jB(Object.assign(Object.assign({},t),{channel:"y"}));NB.props={};const DB=(t={})=>jB(Object.assign(Object.assign({},t),{channel:"color"}));DB.props={};const RB=(t={})=>{const{field:e,channel:n="y",reducer:r="sum"}=t;return(t,i)=>{const{data:A,encode:o}=i,[a]=T(o,"x"),s=e?function(t,e){return t.map("string"==typeof e?t=>t[e]:e)}(A,e):T(o,n)[0],l=function(t,e){if("function"==typeof t)return n=>t(n,e);if("sum"===t)return t=>rB(t,t=>+e[t]);throw new Error(`Unknown reducer: ${t}`)}(r,s),c=it(t,l,t=>a[t]).map(t=>t[1]);return[t,Q({},i,{scale:{x:{flex:c}}})]}};function KB(t){const{padding:e=0,direction:n="col"}=t;return(t,r,i)=>{const A=t.length;if(0===A)return[];const{innerWidth:o,innerHeight:a}=i;let s=Math.ceil(Math.sqrt(r/(a/o))),l=o/s,c=Math.ceil(r/s),u=c*l;for(;u>a;)s+=1,l=o/s,c=Math.ceil(r/s),u=c*l;const d=a-c*l,f=c<=1?0:d/(c-1),[h,p]=c<=1?[(o-A*l)/(A-1),(a-l)/2]:[0,0];return t.map((t,r)=>{const[i,A,o,a]=Zt(t),u="col"===n?r%s:Math.floor(r/c),g="col"===n?Math.floor(r/s):r%c;return`translate(${u*l-i+h*u+.5*e}, ${(c-g-1)*l+d-A-f*g-p+.5*e}) scale(${(l-e)/o}, ${(l-e)/a})`})}}RB.props={};const zB=t=>(e,n)=>[e,Q({},n,{modifier:KB(t),axis:!1})];function GB(t,e,n,r){const i=t.length;if(r>=i||0===r)return t;const A=n=>1*e[t[n]],o=e=>1*n[t[e]],a=[],s=(i-2)/(r-2);let l,c,u,d=0;a.push(d);for(let t=0;t<r-2;t++){let e=0,n=0,r=Math.floor((t+1)*s)+1,f=Math.floor((t+2)*s)+1;f=Math.min(f,i);const h=f-r;for(;r<f;r++)e+=A(r),n+=o(r);e/=h,n/=h;let p=Math.floor((t+0)*s)+1;const g=Math.floor((t+1)*s)+1,m=[A(d),o(d)];for(l=c=-1;p<g;p++)c=.5*Math.abs((m[0]-e)*(A(p)-m[1])-(m[0]-o(p))*(n-m[0])),c>l&&(l=c,u=p);a.push(u),d=u}return a.push(i-1),a.map(e=>t[e])}zB.props={};const VB=(t={})=>{const{strategy:e="median",thresholds:n=2e3,groupBy:r=["series","color"]}=t,i=function(t){if("function"==typeof t)return t;if("lttb"===t)return GB;const e={first:t=>[t[0]],last:t=>[t[t.length-1]],min:(t,e,n)=>[t[Ep(t,t=>n[t])]],max:(t,e,n)=>[t[Xp(t,t=>n[t])]],median:(t,e,n)=>[t[nB(t,t=>n[t])]]},n=e[t]||e.median;return(t,e,r,i)=>{const A=function(t,e){const n=t.length,r=[];let i=0;for(;i<n;)r.push(t.slice(i,i+=e));return r}(t,Math.max(1,Math.floor(t.length/i)));return A.flatMap(t=>n(t,e,r))}}(e);return(t,e)=>{const{encode:A}=e,o=Tw(r,t,e),[a]=T(A,"x"),[s]=T(A,"y");return[o.flatMap(t=>i(t,a,s,n)),e]}};VB.props={};const WB=(t={})=>(e,n)=>{const{encode:r,data:i}=n,A=Object.keys(t).length>0,o=Object.entries(t).map(([t,e])=>{const[n]=T(r,t);if(!n)return null;const[i,A=!0]=function(t){return"object"==typeof t?[t.value,t.ordinal]:[t,!0]}(e);if("function"==typeof i)return t=>i(n[t]);if(A){const t=Array.isArray(i)?i:[i];return 0===t.length?null:e=>t.includes(n[e])}{const[t,e]=i;return r=>n[r]>=t&&n[r]<=e}}).filter(Tt),a=e.filter(t=>o.every(e=>e(t))),s=a.map((t,e)=>e);if(0===o.length&&A){const t=function(t){var e;const{encode:n}=t,r=Object.assign(Object.assign({},t),{encode:Object.assign(Object.assign({},t.encode),{y:Object.assign(Object.assign({},t.encode.y),{value:[]})})}),i=null===(e=null==n?void 0:n.color)||void 0===e?void 0:e.field;if(!n||!i)return r;let A;for(const[t,e]of Object.entries(n))"x"!==t&&"y"!==t||e.field!==i||(A=Object.assign(Object.assign({},A),{[t]:Object.assign(Object.assign({},e),{value:[]})}));return A?Object.assign(Object.assign({},t),{encode:Object.assign(Object.assign({},t.encode),A)}):r}(n);return[[],t]}const l=Object.entries(r).map(([t,e])=>[t,Object.assign(Object.assign({},e),{value:s.map(t=>e.value[a[t]]).filter(t=>void 0!==t)})]);return[s,Q({},n,{encode:Object.fromEntries(l),data:a.map(t=>i[t])})]};WB.props={};var XB={},YB={};function $B(t){return new Function("d","return {"+t.map(function(t,e){return JSON.stringify(t)+": d["+e+'] || ""'}).join(",")+"}")}function qB(t){var e=Object.create(null),n=[];return t.forEach(function(t){for(var r in t)r in e||n.push(e[r]=r)}),n}function ZB(t,e){var n=t+"",r=n.length;return r<e?new Array(e-r+1).join(0)+n:n}function JB(t){var e=new RegExp('["'+t+"\n\r]"),n=t.charCodeAt(0);function r(t,e){var r,i=[],A=t.length,o=0,a=0,s=A<=0,l=!1;function c(){if(s)return YB;if(l)return l=!1,XB;var e,r,i=o;if(34===t.charCodeAt(i)){for(;o++<A&&34!==t.charCodeAt(o)||34===t.charCodeAt(++o););return(e=o)>=A?s=!0:10===(r=t.charCodeAt(o++))?l=!0:13===r&&(l=!0,10===t.charCodeAt(o)&&++o),t.slice(i+1,e-1).replace(/""/g,'"')}for(;o<A;){if(10===(r=t.charCodeAt(e=o++)))l=!0;else if(13===r)l=!0,10===t.charCodeAt(o)&&++o;else if(r!==n)continue;return t.slice(i,e)}return s=!0,t.slice(i,A)}for(10===t.charCodeAt(A-1)&&--A,13===t.charCodeAt(A-1)&&--A;(r=c())!==YB;){for(var u=[];r!==XB&&r!==YB;)u.push(r),r=c();e&&null==(u=e(u,a++))||i.push(u)}return i}function i(e,n){return e.map(function(e){return n.map(function(t){return o(e[t])}).join(t)})}function A(e){return e.map(o).join(t)}function o(t){return null==t?"":t instanceof Date?(r=(n=t).getUTCHours(),i=n.getUTCMinutes(),A=n.getUTCSeconds(),o=n.getUTCMilliseconds(),isNaN(n)?"Invalid Date":function(t){return t<0?"-"+ZB(-t,6):t>9999?"+"+ZB(t,6):ZB(t,4)}(n.getUTCFullYear())+"-"+ZB(n.getUTCMonth()+1,2)+"-"+ZB(n.getUTCDate(),2)+(o?"T"+ZB(r,2)+":"+ZB(i,2)+":"+ZB(A,2)+"."+ZB(o,3)+"Z":A?"T"+ZB(r,2)+":"+ZB(i,2)+":"+ZB(A,2)+"Z":i||r?"T"+ZB(r,2)+":"+ZB(i,2)+"Z":"")):e.test(t+="")?'"'+t.replace(/"/g,'""')+'"':t;var n,r,i,A,o}return{parse:function(t,e){var n,i,A=r(t,function(t,r){if(n)return n(t,r-1);i=t,n=e?function(t,e){var n=$B(t);return function(r,i){return e(n(r),i,t)}}(t,e):$B(t)});return A.columns=i||[],A},parseRows:r,format:function(e,n){return null==n&&(n=qB(e)),[n.map(o).join(t)].concat(i(e,n)).join("\n")},formatBody:function(t,e){return null==e&&(e=qB(t)),i(t,e).join("\n")},formatRows:function(t){return t.map(A).join("\n")},formatRow:A,formatValue:o}}function tx(t){for(var e in t){var n,r,i=t[e].trim();if(i)if("true"===i)i=!0;else if("false"===i)i=!1;else if("NaN"===i)i=NaN;else if(isNaN(n=+i)){if(!(r=i.match(/^([-+]\d{2})?\d{4}(-\d{2}(-\d{2})?)?(T\d{2}:\d{2}(:\d{2}(\.\d{3})?)?(Z|[-+]\d{2}:\d{2})?)?$/)))continue;ex&&r[4]&&!r[7]&&(i=i.replace(/-/g,"/").replace(/T/," ")),i=new Date(i)}else i=n;else i=null;t[e]=i}return t}const ex=new Date("2019-01-01T00:00").getHours()||new Date("2019-07-01T00:00").getHours();const nx=t=>{const{value:e,format:n=e.split(".").pop(),delimiter:r=",",autoType:i=!0}=t;return()=>{return t=void 0,A=void 0,a=function*(){const t=yield fetch(e);if("csv"===n){const e=yield t.text();return JB(r).parse(e,i?tx:Mt)}if("json"===n)return yield t.json();throw new Error(`Unknown format: ${n}.`)},new((o=void 0)||(o=Promise))(function(e,n){function r(t){try{s(a.next(t))}catch(t){n(t)}}function i(t){try{s(a.throw(t))}catch(t){n(t)}}function s(t){t.done?e(t.value):function(t){return t instanceof o?t:new o(function(e){e(t)})}(t.value).then(r,i)}s((a=a.apply(t,A||[])).next())});var t,A,o,a}};nx.props={};const rx=t=>{const{value:e}=t;return()=>e};rx.props={};const ix=t=>{const{fields:e=[]}=t,n=(r=!0,e.map(t=>{if(Array.isArray(t)){const[e,n=r]=t;return[e,n]}return[t,r]}));var r;return t=>[...t].sort((t,e)=>n.reduce((n,[r,i=!0])=>0!==n?n:i?t[r]<e[r]?-1:+(t[r]!==e[r]):t[r]>e[r]?-1:+(t[r]!==e[r]),0))};ix.props={};const Ax=t=>{const{callback:e}=t;return t=>Array.isArray(t)?[...t].sort(e):t};function ox(t){return null!=t&&!Number.isNaN(t)}Ax.props={};const ax=t=>{const{callback:e=ox}=t;return t=>t.filter(e)};ax.props={};const sx=t=>{const{fields:e}=t;return t=>t.map(t=>function(t,e=[]){return e.reduce((e,n)=>(n in t&&(e[n]=t[n]),e),{})}(t,e))};sx.props={};const lx=t=>e=>t&&0!==Object.keys(t).length?e.map(e=>Object.entries(e).reduce((e,[n,r])=>(e[t[n]||n]=r,e),{})):e;lx.props={};const cx=t=>{const{fields:e,key:n="key",value:r="value"}=t;return t=>{return(i=e)&&0!==Object.keys(i).length?t.flatMap(t=>e.map(e=>Object.assign(Object.assign({},t),{[n]:e,[r]:t[e]}))):t;var i}};cx.props={};const ux=t=>{const{start:e,end:n}=t;return t=>t.slice(e,n)};ux.props={};const dx=t=>{const{callback:e=Mt}=t;return t=>e(t)};dx.props={};const fx=t=>{const{callback:e=Mt}=t;return t=>Array.isArray(t)?t.map(e):t};function hx(t){return"string"==typeof t?e=>e[t]:t}fx.props={};const px=t=>{const{join:e,on:n,select:r=[],as:i=r,unknown:A=NaN}=t,[o,a]=n,s=hx(a),l=hx(o),c=rt(e,([t])=>t,t=>s(t));return t=>t.map(t=>{const e=c.get(l(t));return Object.assign(Object.assign({},t),r.reduce((t,n,r)=>(t[i[r]]=e?e[n]:A,t),{}))})};px.props={};var gx=n("./node_modules/.pnpm/pdfast@0.2.0/node_modules/pdfast/src/index.js"),mx=n.n(gx);const yx=t=>{const{field:e,groupBy:n,as:r=["y","size"],min:i,max:A,size:o=10,width:a}=t,[s,l]=r;return t=>{const r=Array.from(et(t,t=>n.map(e=>t[e]).join("-")).values());return r.map(t=>{const n=mx().create(t.map(t=>t[e]),{min:i,max:A,size:o,width:a}),r=n.map(t=>t.x),c=n.map(t=>t.y);return Object.assign(Object.assign({},t[0]),{[s]:r,[l]:c})})}};yx.props={};const vx=()=>t=>(console.log("G2 data section:",t),t);vx.props={};const bx=Math.PI/180,wx=2048;function Bx(t){return t.text}function xx(){return"serif"}function Cx(){return"normal"}function Ex(t){return t.value}function Ox(){return 90*~~(2*Math.random())}function kx(){return 1}function Fx(){}function Qx(t,e,n,r){if(e.sprite)return;const i=t.context,A=t.ratio;i.clearRect(0,0,2048/A,wx/A);let o=0,a=0,s=0;const l=n.length;for(--r;++r<l;){e=n[r],i.save(),i.font=e.style+" "+e.weight+" "+~~((e.size+1)/A)+"px "+e.font;let t=i.measureText(e.text+"m").width*A,l=e.size<<1;if(e.rotate){const n=Math.sin(e.rotate*bx),r=Math.cos(e.rotate*bx),i=t*r,A=t*n,o=l*r,a=l*n;t=Math.max(Math.abs(i+a),Math.abs(i-a))+31>>5<<5,l=~~Math.max(Math.abs(A+o),Math.abs(A-o))}else t=t+31>>5<<5;if(l>s&&(s=l),o+t>=2048&&(o=0,a+=s,s=0),a+l>=wx)break;i.translate((o+(t>>1))/A,(a+(l>>1))/A),e.rotate&&i.rotate(e.rotate*bx),i.fillText(e.text,0,0),e.padding&&(i.lineWidth=2*e.padding,i.strokeText(e.text,0,0)),i.restore(),e.width=t,e.height=l,e.xoff=o,e.yoff=a,e.x1=t>>1,e.y1=l>>1,e.x0=-e.x1,e.y0=-e.y1,e.hasText=!0,o+=t}const c=i.getImageData(0,0,2048/A,wx/A).data,u=[];for(;--r>=0;){if(!(e=n[r]).hasText)continue;const t=e.width,i=t>>5;let A=e.y1-e.y0;for(let t=0;t<A*i;t++)u[t]=0;if(o=e.xoff,null==o)return;a=e.yoff;let s=0,l=-1;for(let n=0;n<A;n++){for(let e=0;e<t;e++){const t=c[2048*(a+n)+(o+e)<<2]?1<<31-e%32:0;u[i*n+(e>>5)]|=t,s|=t}s?l=n:(e.y0++,A--,n--,a++)}e.y1=e.y0+l,e.sprite=u.slice(0,(e.y1-e.y0)*i)}}function Mx(t,e,n){const r=t.sprite,i=t.width>>5,A=t.x-(i<<4),o=127&A,a=32-o,s=t.y1-t.y0;let l,c=(t.y+t.y0)*(n>>=5)+(A>>5);for(let t=0;t<s;t++){l=0;for(let n=0;n<=i;n++)if((l<<a|(n<i?(l=r[t*i+n])>>>o:0))&e[c+n])return!0;c+=n}return!1}function Ux(t,e){const n=t[0],r=t[1];e.x+e.x0<n.x&&(n.x=e.x+e.x0),e.y+e.y0<n.y&&(n.y=e.y+e.y0),e.x+e.x1>r.x&&(r.x=e.x+e.x1),e.y+e.y1>r.y&&(r.y=e.y+e.y1)}function Sx(t,e){return t.x+t.x1>e[0].x&&t.x+t.x0<e[1].x&&t.y+t.y1>e[0].y&&t.y+t.y0<e[1].y}function _x(t){const e=t[0]/t[1];return function(t){return[e*(t*=.1)*Math.cos(t),t*Math.sin(t)]}}function Ix(t){const e=[];let n=-1;for(;++n<t;)e[n]=0;return e}function Tx(){return document.createElement("canvas")}function Lx(t){return"function"==typeof t?t:function(){return t}}const Px={archimedean:_x,rectangular:function(t){const e=4*t[0]/t[1];let n=0,r=0;return function(t){const i=t<0?-1:1;switch(Math.sqrt(1+4*i*t)-i&3){case 0:n+=e;break;case 1:r+=4;break;case 2:n-=e;break;default:r-=4}return[n,r]}}};function jx(){let t=[256,256],e=Bx,n=xx,r=Ex,i=Cx,A=Ox,o=kx,a=_x,s=Math.random,l=Fx,c=[],u=null,d=1/0,f=Tx;const h=Cx,p={};function g(e,n,r){const i=n.x,A=n.y,o=Math.sqrt(t[0]*t[0]+t[1]*t[1]),l=a(t),c=s()<.5?1:-1;let u,d,f,h=-c;for(;(u=l(h+=c))&&(d=~~u[0],f=~~u[1],!(Math.min(Math.abs(d),Math.abs(f))>=o));)if(n.x=i+d,n.y=A+f,!(n.x+n.x0<0||n.y+n.y0<0||n.x+n.x1>t[0]||n.y+n.y1>t[1])&&(!r||!Mx(n,e,t[0]))&&(!r||Sx(n,r))){const r=n.sprite,i=n.width>>5,A=t[0]>>5,o=n.x-(i<<4),a=127&o,s=32-a,l=n.y1-n.y0;let c,u=(n.y+n.y0)*A+(o>>5);for(let t=0;t<l;t++){c=0;for(let n=0;n<=i;n++)e[u+n]|=c<<s|(n<i?(c=r[t*i+n])>>>a:0);u+=A}return delete n.sprite,!0}return!1}return p.start=function(){const[a,m]=t,y=function(t){t.width=t.height=1;const e=Math.sqrt(t.getContext("2d").getImageData(0,0,1,1).data.length>>2);t.width=2048/e,t.height=wx/e;const n=t.getContext("2d");return n.fillStyle=n.strokeStyle="red",n.textAlign="center",n.textBaseline="middle",{context:n,ratio:e}}(f()),v=p.board?p.board:Ix((t[0]>>5)*t[1]),b=c.length,w=[],B=c.map(function(t,a,s){return t.text=e.call(this,t,a,s),t.font=n.call(this,t,a,s),t.style=h.call(this,t,a,s),t.weight=i.call(this,t,a,s),t.rotate=A.call(this,t,a,s),t.size=~~r.call(this,t,a,s),t.padding=o.call(this,t,a,s),t}).sort(function(t,e){return e.size-t.size});let x=-1,C=p.board?[{x:0,y:0},{x:a,y:m}]:void 0;function E(){const e=Date.now();for(;Date.now()-e<d&&++x<b;){const e=B[x];e.x=a*(s()+.5)>>1,e.y=m*(s()+.5)>>1,Qx(y,e,B,x),e.hasText&&g(v,e,C)&&(l.call(null,"word",{cloud:p,word:e}),w.push(e),C?p.hasImage||Ux(C,e):C=[{x:e.x+e.x0,y:e.y+e.y0},{x:e.x+e.x1,y:e.y+e.y1}],e.x-=t[0]>>1,e.y-=t[1]>>1)}p._tags=w,p._bounds=C,x>=b&&(p.stop(),l.call(null,"end",{cloud:p,words:w,bounds:C}))}return u&&clearInterval(u),u=setInterval(E,0),E(),p},p.stop=function(){return u&&(clearInterval(u),u=null),p},p.createMask=e=>{const n=document.createElement("canvas"),[r,i]=t;if(!r||!i)return;const A=r>>5,o=Ix((r>>5)*i);n.width=r,n.height=i;const a=n.getContext("2d");a.drawImage(e,0,0,e.width,e.height,0,0,r,i);const s=a.getImageData(0,0,r,i).data;for(let t=0;t<i;t++)for(let e=0;e<r;e++){const n=t*r+e<<2;o[A*t+(e>>5)]|=s[n]>=250&&s[n+1]>=250&&s[n+2]>=250?1<<31-e%32:0}p.board=o,p.hasImage=!0},p.timeInterval=function(t){d=t??1/0},p.words=function(t){c=t},p.size=function(e=[]){t=[+e[0],+e[1]]},p.text=function(t){e=Lx(t)},p.font=function(t){n=Lx(t)},p.fontWeight=function(t){i=Lx(t)},p.rotate=function(t){A=Lx(t)},p.canvas=function(t){f=Lx(t)},p.spiral=function(t){a=Px[t]||t},p.fontSize=function(t){r=Lx(t)},p.padding=function(t){o=Lx(t)},p.random=function(t){s=Lx(t)},p.on=function(t){l=Lx(t)},p}const Hx={fontSize:[20,60],font:"Impact",padding:2,rotate:function(){return 30*(~~(6*Math.random())-3)}};function Nx(t){return new Promise((e,n)=>{if(t instanceof HTMLImageElement)e(t);else{if("string"==typeof t){const r=new Image;return r.crossOrigin="anonymous",r.src=t,r.onload=()=>e(r),void(r.onerror=()=>{console.error(`'image ${t} load failed !!!'`),n()})}n()}})}const Dx=(t,e)=>n=>{return r=void 0,i=void 0,o=function*(){const r=Object.assign({},Hx,t,{canvas:e.createCanvas}),i=jx();var A,o;yield(A=i,o=r,{set(t,e,n){if(void 0===o[t])return this;const r=e?e.call(null,o[t]):o[t];return n?n.call(null,r):"function"==typeof A[t]?A[t](r):A[t]=r,this},setAsync(t,e,n){return r=this,i=void 0,s=function*(){if(void 0===o[t])return this;const r=e?yield e.call(null,o[t]):o[t];return n?n.call(null,r):"function"==typeof A[t]?A[t](r):A[t]=r,this},new((a=void 0)||(a=Promise))(function(t,e){function n(t){try{o(s.next(t))}catch(t){e(t)}}function A(t){try{o(s.throw(t))}catch(t){e(t)}}function o(e){e.done?t(e.value):function(t){return t instanceof a?t:new a(function(e){e(t)})}(e.value).then(n,A)}o((s=s.apply(r,i||[])).next())});var r,i,a,s}}).set("fontSize",t=>{const e=n.map(t=>t.value);return function(t,e){if("function"==typeof t)return t;if(Array.isArray(t)){const[n,r]=t;if(!e)return()=>(r+n)/2;const[i,A]=e;return A===i?()=>(r+n)/2:({value:t})=>(r-n)/(A-i)*(t-i)+n}return()=>t}(t,[Oo(e),ko(e)])}).set("font").set("fontStyle").set("fontWeight").set("padding").set("rotate").set("size").set("spiral").set("timeInterval").set("random").set("text").set("on").set("canvas").setAsync("imageMask",Nx,i.createMask),i.words([...n]);const a=i.start(),[s,l]=r.size,c=[{x:0,y:0},{x:s,y:l}],{_bounds:u=c,_tags:d,hasImage:f}=a,h=d.map(t=>{var{x:e,y:n,font:r}=t,i=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n}(t,["x","y","font"]);return Object.assign(Object.assign({},i),{x:e+s/2,y:n+l/2,fontFamily:r})}),[{x:p,y:g},{x:m,y}]=u,v={text:"",value:0,opacity:0,fontSize:0};return h.push(Object.assign(Object.assign({},v),{x:f?0:p,y:f?0:g}),Object.assign(Object.assign({},v),{x:f?s:m,y:f?l:y})),h},new((A=void 0)||(A=Promise))(function(t,e){function n(t){try{s(o.next(t))}catch(t){e(t)}}function a(t){try{s(o.throw(t))}catch(t){e(t)}}function s(e){e.done?t(e.value):function(t){return t instanceof A?t:new A(function(e){e(t)})}(e.value).then(n,a)}s((o=o.apply(r,i||[])).next())});var r,i,A,o};Dx.props={};const Rx=t=>{const{field:e="y",alpha:n=.6,as:r=e}=t;return t=>{const i=t.map(t=>t[e]),A=function(t,e){if(e<0||e>1)throw new Error("alpha must be between 0 and 1.");if(0===t.length)return[];let n=t[0];const r=[];for(const i of t){if(null==i){r.push(i),console.warn("EMA:The value is null or undefined",t);continue}null==n&&(n=i);const A=n*e+(1-e)*i;r.push(A),n=A}return r}(i,n);return t.map((t,e)=>Object.assign(Object.assign({},t),{[r]:A[e]}))}};function Kx(t){const{min:e,max:n}=t;return[[e[0],e[1]],[n[0],n[1]]]}function zx(t,e,n=.01){const[r,i]=t,[A,o]=e;return r>=A[0]-n&&r<=o[0]+n&&i>=A[1]-n&&i<=o[1]+n}function Gx(t,e,n=.01){const[r,i]=t;return!(zx(r,e,n)&&zx(i,e,n))}Rx.props={};function Vx([t,e],[n,r]){return r>t&&e>n}function Wx(){const t=new Map;return[e=>t.get(e),(e,n)=>t.set(e,n)]}function Xx(t){const e=t.cloneNode(!0),n=e.getElementById("connector");n&&e.removeChild(n);const{min:r,max:i}=e.getRenderBounds();return e.destroy(),{min:r,max:i}}function Yx(t){return"object"==typeof t?t:(0,$.H0)(t)}function $x(t){let e=t/255;return e=e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4),e}function qx(t,e,n){return.2126*$x(t)+.7152*$x(e)+.0722*$x(n)}function Zx(t,e){if(!t||!e||t===e)return 1;const{r:n,g:r,b:i}=t,{r:A,g:o,b:a}=e,s=qx(n,r,i),l=qx(A,o,a);return(Math.max(s,l)+.05)/(Math.min(s,l)+.05)}function Jx(t,e){const n=Xp(e,e=>Zx(t,Yx(e)));return e[n]}function tC(t){var e;const n=t.getAnimations();if(!n||0===n.length)return kd(t);const r=t.cloneNode(!0);r.style.visibility="hidden",n.forEach(t=>{const e=t.effect.getKeyframes();e&&e.length>0&&r.attr(e[e.length-1])}),null===(e=t.parentNode)||void 0===e||e.appendChild(r);const i=kd(r);return r.destroy(),i}const eC=t=>t;function nC(t,e){t&&iC.hasOwnProperty(t.type)&&iC[t.type](t,e)}var rC={Feature:function(t,e){nC(t.geometry,e)},FeatureCollection:function(t,e){for(var n=t.features,r=-1,i=n.length;++r<i;)nC(n[r].geometry,e)}},iC={Sphere:function(t,e){e.sphere()},Point:function(t,e){e.point((t=t.coordinates)[0],t[1],t[2])},MultiPoint:function(t,e){for(var n=t.coordinates,r=-1,i=n.length;++r<i;)e.point((t=n[r])[0],t[1],t[2])},LineString:function(t,e){AC(t.coordinates,e,0)},MultiLineString:function(t,e){for(var n=t.coordinates,r=-1,i=n.length;++r<i;)AC(n[r],e,0)},Polygon:function(t,e){oC(t.coordinates,e)},MultiPolygon:function(t,e){for(var n=t.coordinates,r=-1,i=n.length;++r<i;)oC(n[r],e)},GeometryCollection:function(t,e){for(var n=t.geometries,r=-1,i=n.length;++r<i;)nC(n[r],e)}};function AC(t,e,n){var r,i=-1,A=t.length-n;for(e.lineStart();++i<A;)e.point((r=t[i])[0],r[1],r[2]);e.lineEnd()}function oC(t,e){var n=-1,r=t.length;for(e.polygonStart();++n<r;)AC(t[n],e,1);e.polygonEnd()}function aC(t,e){t&&rC.hasOwnProperty(t.type)?rC[t.type](t,e):nC(t,e)}class sC{constructor(){this._partials=new Float64Array(32),this._n=0}add(t){const e=this._partials;let n=0;for(let r=0;r<this._n&&r<32;r++){const i=e[r],A=t+i,o=Math.abs(t)<Math.abs(i)?t-(A-i):i-(A-t);o&&(e[n++]=o),t=A}return e[n]=t,this._n=n+1,this}valueOf(){const t=this._partials;let e,n,r,i=this._n,A=0;if(i>0){for(A=t[--i];i>0&&(e=A,n=t[--i],A=e+n,r=n-(A-e),!r););i>0&&(r<0&&t[i-1]<0||r>0&&t[i-1]>0)&&(n=2*r,e=A+n,n==e-A&&(A=e))}return A}}var lC=1e-6,cC=Math.PI,uC=cC/2,dC=cC/4,fC=2*cC,hC=180/cC,pC=cC/180,gC=Math.abs,mC=Math.atan,yC=Math.atan2,vC=Math.cos,bC=Math.ceil,wC=Math.exp,BC=(Math,Math,Math.log),xC=Math.pow,CC=Math.sin,EC=Math.sign||function(t){return t>0?1:t<0?-1:0},OC=Math.sqrt,kC=Math.tan;function FC(t){return t>1?0:t<-1?cC:Math.acos(t)}function QC(t){return t>1?uC:t<-1?-uC:Math.asin(t)}function MC(){}var UC,SC,_C,IC,TC=new sC,LC=new sC,PC={point:MC,lineStart:MC,lineEnd:MC,polygonStart:function(){PC.lineStart=jC,PC.lineEnd=DC},polygonEnd:function(){PC.lineStart=PC.lineEnd=PC.point=MC,TC.add(gC(LC)),LC=new sC},result:function(){var t=TC/2;return TC=new sC,t}};function jC(){PC.point=HC}function HC(t,e){PC.point=NC,UC=_C=t,SC=IC=e}function NC(t,e){LC.add(IC*t-_C*e),_C=t,IC=e}function DC(){NC(UC,SC)}const RC=PC;var KC=1/0,zC=KC,GC=-KC,VC=GC,WC={point:function(t,e){t<KC&&(KC=t),t>GC&&(GC=t),e<zC&&(zC=e),e>VC&&(VC=e)},lineStart:MC,lineEnd:MC,polygonStart:MC,polygonEnd:MC,result:function(){var t=[[KC,zC],[GC,VC]];return GC=VC=-(zC=KC=1/0),t}};const XC=WC;var YC,$C,qC,ZC,JC=0,tE=0,eE=0,nE=0,rE=0,iE=0,AE=0,oE=0,aE=0,sE={point:lE,lineStart:cE,lineEnd:fE,polygonStart:function(){sE.lineStart=hE,sE.lineEnd=pE},polygonEnd:function(){sE.point=lE,sE.lineStart=cE,sE.lineEnd=fE},result:function(){var t=aE?[AE/aE,oE/aE]:iE?[nE/iE,rE/iE]:eE?[JC/eE,tE/eE]:[NaN,NaN];return JC=tE=eE=nE=rE=iE=AE=oE=aE=0,t}};function lE(t,e){JC+=t,tE+=e,++eE}function cE(){sE.point=uE}function uE(t,e){sE.point=dE,lE(qC=t,ZC=e)}function dE(t,e){var n=t-qC,r=e-ZC,i=OC(n*n+r*r);nE+=i*(qC+t)/2,rE+=i*(ZC+e)/2,iE+=i,lE(qC=t,ZC=e)}function fE(){sE.point=lE}function hE(){sE.point=gE}function pE(){mE(YC,$C)}function gE(t,e){sE.point=mE,lE(YC=qC=t,$C=ZC=e)}function mE(t,e){var n=t-qC,r=e-ZC,i=OC(n*n+r*r);nE+=i*(qC+t)/2,rE+=i*(ZC+e)/2,iE+=i,AE+=(i=ZC*t-qC*e)*(qC+t),oE+=i*(ZC+e),aE+=3*i,lE(qC=t,ZC=e)}const yE=sE;function vE(t){this._context=t}vE.prototype={_radius:4.5,pointRadius:function(t){return this._radius=t,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._context.closePath(),this._point=NaN},point:function(t,e){switch(this._point){case 0:this._context.moveTo(t,e),this._point=1;break;case 1:this._context.lineTo(t,e);break;default:this._context.moveTo(t+this._radius,e),this._context.arc(t,e,this._radius,0,fC)}},result:MC};var bE,wE,BE,xE,CE,EE=new sC,OE={point:MC,lineStart:function(){OE.point=kE},lineEnd:function(){bE&&FE(wE,BE),OE.point=MC},polygonStart:function(){bE=!0},polygonEnd:function(){bE=null},result:function(){var t=+EE;return EE=new sC,t}};function kE(t,e){OE.point=FE,wE=xE=t,BE=CE=e}function FE(t,e){EE.add(OC((xE-=t)*xE+(CE-=e)*CE)),xE=t,CE=e}const QE=OE;let ME,UE,SE,_E;class IE{constructor(t){this._append=null==t?TE:function(t){const e=Math.floor(t);if(!(e>=0))throw new RangeError(`invalid digits: ${t}`);if(e>15)return TE;if(e!==ME){const t=10**e;ME=e,UE=function(e){let n=1;this._+=e[0];for(const r=e.length;n<r;++n)this._+=Math.round(arguments[n]*t)/t+e[n]}}return UE}(t),this._radius=4.5,this._=""}pointRadius(t){return this._radius=+t,this}polygonStart(){this._line=0}polygonEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){0===this._line&&(this._+="Z"),this._point=NaN}point(t,e){switch(this._point){case 0:this._append`M${t},${e}`,this._point=1;break;case 1:this._append`L${t},${e}`;break;default:if(this._append`M${t},${e}`,this._radius!==SE||this._append!==UE){const t=this._radius,e=this._;this._="",this._append`m0,${t}a${t},${t} 0 1,1 0,${-2*t}a${t},${t} 0 1,1 0,${2*t}z`,SE=t,UE=this._append,_E=this._,this._=e}this._+=_E}}result(){const t=this._;return this._="",t.length?t:null}}function TE(t){let e=1;this._+=t[0];for(const n=t.length;e<n;++e)this._+=arguments[e]+t[e]}function LE(t,e){let n,r,i=3,A=4.5;function o(t){return t&&("function"==typeof A&&r.pointRadius(+A.apply(this,arguments)),aC(t,n(r))),r.result()}return o.area=function(t){return aC(t,n(RC)),RC.result()},o.measure=function(t){return aC(t,n(QE)),QE.result()},o.bounds=function(t){return aC(t,n(XC)),XC.result()},o.centroid=function(t){return aC(t,n(yE)),yE.result()},o.projection=function(e){return arguments.length?(n=null==e?(t=null,eC):(t=e).stream,o):t},o.context=function(t){return arguments.length?(r=null==t?(e=null,new IE(i)):new vE(e=t),"function"!=typeof A&&r.pointRadius(A),o):e},o.pointRadius=function(t){return arguments.length?(A="function"==typeof t?t:(r.pointRadius(+t),+t),o):A},o.digits=function(t){if(!arguments.length)return i;if(null==t)i=null;else{const e=Math.floor(t);if(!(e>=0))throw new RangeError(`invalid digits: ${t}`);i=e}return null===e&&(r=new IE(i)),o},o.projection(t).digits(i).context(e)}function PE(t,e,n){t=+t,e=+e,n=(i=arguments.length)<2?(e=t,t=0,1):i<3?1:+n;for(var r=-1,i=0|Math.max(0,Math.ceil((e-t)/n)),A=new Array(i);++r<i;)A[r]=t+r*n;return A}function jE(t,e,n){var r=PE(t,e-lC,n).concat(e);return function(t){return r.map(function(e){return[t,e]})}}function HE(t,e,n){var r=PE(t,e-lC,n).concat(e);return function(t){return r.map(function(e){return[e,t]})}}function NE(){var t,e=[];return{point:function(e,n,r){t.push([e,n,r])},lineStart:function(){e.push(t=[])},lineEnd:MC,rejoin:function(){e.length>1&&e.push(e.pop().concat(e.shift()))},result:function(){var n=e;return e=[],t=null,n}}}function DE(t,e){return gC(t[0]-e[0])<lC&&gC(t[1]-e[1])<lC}function RE(t,e,n,r){this.x=t,this.z=e,this.o=n,this.e=r,this.v=!1,this.n=this.p=null}function KE(t,e,n,r,i){var A,o,a=[],s=[];if(t.forEach(function(t){if(!((e=t.length-1)<=0)){var e,n,r=t[0],o=t[e];if(DE(r,o)){if(!r[2]&&!o[2]){for(i.lineStart(),A=0;A<e;++A)i.point((r=t[A])[0],r[1]);return void i.lineEnd()}o[0]+=2e-6}a.push(n=new RE(r,t,null,!0)),s.push(n.o=new RE(r,null,n,!1)),a.push(n=new RE(o,t,null,!1)),s.push(n.o=new RE(o,null,n,!0))}}),a.length){for(s.sort(e),zE(a),zE(s),A=0,o=s.length;A<o;++A)s[A].e=n=!n;for(var l,c,u=a[0];;){for(var d=u,f=!0;d.v;)if((d=d.n)===u)return;l=d.z,i.lineStart();do{if(d.v=d.o.v=!0,d.e){if(f)for(A=0,o=l.length;A<o;++A)i.point((c=l[A])[0],c[1]);else r(d.x,d.n.x,1,i);d=d.n}else{if(f)for(A=(l=d.p.z).length-1;A>=0;--A)i.point((c=l[A])[0],c[1]);else r(d.x,d.p.x,-1,i);d=d.p}l=(d=d.o).z,f=!f}while(!d.v);i.lineEnd()}}}function zE(t){if(e=t.length){for(var e,n,r=0,i=t[0];++r<e;)i.n=n=t[r],n.p=i,i=n;i.n=n=t[0],n.p=i}}function GE(t){return[yC(t[1],t[0]),QC(t[2])]}function VE(t){var e=t[0],n=t[1],r=vC(n);return[r*vC(e),r*CC(e),CC(n)]}function WE(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function XE(t,e){return[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]]}function YE(t,e){t[0]+=e[0],t[1]+=e[1],t[2]+=e[2]}function $E(t,e){return[t[0]*e,t[1]*e,t[2]*e]}function qE(t){var e=OC(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]);t[0]/=e,t[1]/=e,t[2]/=e}function ZE(t){return gC(t[0])<=cC?t[0]:EC(t[0])*((gC(t[0])+cC)%fC-cC)}function JE(t){return Array.from(function*(t){for(const e of t)yield*e}(t))}function tO(t,e,n,r){return function(i){var A,o,a,s=e(i),l=NE(),c=e(l),u=!1,d={point:f,lineStart:p,lineEnd:g,polygonStart:function(){d.point=m,d.lineStart=y,d.lineEnd=v,o=[],A=[]},polygonEnd:function(){d.point=f,d.lineStart=p,d.lineEnd=g,o=JE(o);var t=function(t,e){var n=ZE(e),r=e[1],i=CC(r),A=[CC(n),-vC(n),0],o=0,a=0,s=new sC;1===i?r=uC+lC:-1===i&&(r=-uC-lC);for(var l=0,c=t.length;l<c;++l)if(d=(u=t[l]).length)for(var u,d,f=u[d-1],h=ZE(f),p=f[1]/2+dC,g=CC(p),m=vC(p),y=0;y<d;++y,h=b,g=B,m=x,f=v){var v=u[y],b=ZE(v),w=v[1]/2+dC,B=CC(w),x=vC(w),C=b-h,E=C>=0?1:-1,O=E*C,k=O>cC,F=g*B;if(s.add(yC(F*E*CC(O),m*x+F*vC(O))),o+=k?C+E*fC:C,k^h>=n^b>=n){var Q=XE(VE(f),VE(v));qE(Q);var M=XE(A,Q);qE(M);var U=(k^C>=0?-1:1)*QC(M[2]);(r>U||r===U&&(Q[0]||Q[1]))&&(a+=k^C>=0?1:-1)}}return(o<-lC||o<lC&&s<-1e-12)^1&a}(A,r);o.length?(u||(i.polygonStart(),u=!0),KE(o,nO,t,n,i)):t&&(u||(i.polygonStart(),u=!0),i.lineStart(),n(null,null,1,i),i.lineEnd()),u&&(i.polygonEnd(),u=!1),o=A=null},sphere:function(){i.polygonStart(),i.lineStart(),n(null,null,1,i),i.lineEnd(),i.polygonEnd()}};function f(e,n){t(e,n)&&i.point(e,n)}function h(t,e){s.point(t,e)}function p(){d.point=h,s.lineStart()}function g(){d.point=f,s.lineEnd()}function m(t,e){a.push([t,e]),c.point(t,e)}function y(){c.lineStart(),a=[]}function v(){m(a[0][0],a[0][1]),c.lineEnd();var t,e,n,r,s=c.clean(),d=l.result(),f=d.length;if(a.pop(),A.push(a),a=null,f)if(1&s){if((e=(n=d[0]).length-1)>0){for(u||(i.polygonStart(),u=!0),i.lineStart(),t=0;t<e;++t)i.point((r=n[t])[0],r[1]);i.lineEnd()}}else f>1&&2&s&&d.push(d.pop().concat(d.shift())),o.push(d.filter(eO))}return d}}function eO(t){return t.length>1}function nO(t,e){return((t=t.x)[0]<0?t[1]-uC-lC:uC-t[1])-((e=e.x)[0]<0?e[1]-uC-lC:uC-e[1])}const rO=tO(function(){return!0},function(t){var e,n=NaN,r=NaN,i=NaN;return{lineStart:function(){t.lineStart(),e=1},point:function(A,o){var a=A>0?cC:-cC,s=gC(A-n);gC(s-cC)<lC?(t.point(n,r=(r+o)/2>0?uC:-uC),t.point(i,r),t.lineEnd(),t.lineStart(),t.point(a,r),t.point(A,r),e=0):i!==a&&s>=cC&&(gC(n-i)<lC&&(n-=i*lC),gC(A-a)<lC&&(A-=a*lC),r=function(t,e,n,r){var i,A,o=CC(t-n);return gC(o)>lC?mC((CC(e)*(A=vC(r))*CC(n)-CC(r)*(i=vC(e))*CC(t))/(i*A*o)):(e+r)/2}(n,r,A,o),t.point(i,r),t.lineEnd(),t.lineStart(),t.point(a,r),e=0),t.point(n=A,r=o),i=a},lineEnd:function(){t.lineEnd(),n=r=NaN},clean:function(){return 2-e}}},function(t,e,n,r){var i;if(null==t)r.point(-cC,i=n*uC),r.point(0,i),r.point(cC,i),r.point(cC,0),r.point(cC,-i),r.point(0,-i),r.point(-cC,-i),r.point(-cC,0),r.point(-cC,i);else if(gC(t[0]-e[0])>lC){var A=t[0]<e[0]?cC:-cC;r.point(-A,i=n*A/2),r.point(0,i),r.point(A,i)}else r.point(e[0],e[1])},[-cC,-uC]);function iO(t,e){(e=VE(e))[0]-=t,qE(e);var n=FC(-e[1]);return((-e[2]<0?-n:n)+fC-lC)%fC}var AO=1e9,oO=-AO;function aO(t,e,n,r){function i(i,A){return t<=i&&i<=n&&e<=A&&A<=r}function A(i,A,a,l){var c=0,u=0;if(null==i||(c=o(i,a))!==(u=o(A,a))||s(i,A)<0^a>0)do{l.point(0===c||3===c?t:n,c>1?r:e)}while((c=(c+a+4)%4)!==u);else l.point(A[0],A[1])}function o(r,i){return gC(r[0]-t)<lC?i>0?0:3:gC(r[0]-n)<lC?i>0?2:1:gC(r[1]-e)<lC?i>0?1:0:i>0?3:2}function a(t,e){return s(t.x,e.x)}function s(t,e){var n=o(t,1),r=o(e,1);return n!==r?n-r:0===n?e[1]-t[1]:1===n?t[0]-e[0]:2===n?t[1]-e[1]:e[0]-t[0]}return function(o){var s,l,c,u,d,f,h,p,g,m,y,v=o,b=NE(),w={point:B,lineStart:function(){w.point=x,l&&l.push(c=[]),m=!0,g=!1,h=p=NaN},lineEnd:function(){s&&(x(u,d),f&&g&&b.rejoin(),s.push(b.result())),w.point=B,g&&v.lineEnd()},polygonStart:function(){v=b,s=[],l=[],y=!0},polygonEnd:function(){var e=function(){for(var e=0,n=0,i=l.length;n<i;++n)for(var A,o,a=l[n],s=1,c=a.length,u=a[0],d=u[0],f=u[1];s<c;++s)A=d,o=f,d=(u=a[s])[0],f=u[1],o<=r?f>r&&(d-A)*(r-o)>(f-o)*(t-A)&&++e:f<=r&&(d-A)*(r-o)<(f-o)*(t-A)&&--e;return e}(),n=y&&e,i=(s=JE(s)).length;(n||i)&&(o.polygonStart(),n&&(o.lineStart(),A(null,null,1,o),o.lineEnd()),i&&KE(s,a,e,A,o),o.polygonEnd()),v=o,s=l=c=null}};function B(t,e){i(t,e)&&v.point(t,e)}function x(A,o){var a=i(A,o);if(l&&c.push([A,o]),m)u=A,d=o,f=a,m=!1,a&&(v.lineStart(),v.point(A,o));else if(a&&g)v.point(A,o);else{var s=[h=Math.max(oO,Math.min(AO,h)),p=Math.max(oO,Math.min(AO,p))],b=[A=Math.max(oO,Math.min(AO,A)),o=Math.max(oO,Math.min(AO,o))];!function(t,e,n,r,i,A){var o,a=t[0],s=t[1],l=0,c=1,u=e[0]-a,d=e[1]-s;if(o=n-a,u||!(o>0)){if(o/=u,u<0){if(o<l)return;o<c&&(c=o)}else if(u>0){if(o>c)return;o>l&&(l=o)}if(o=i-a,u||!(o<0)){if(o/=u,u<0){if(o>c)return;o>l&&(l=o)}else if(u>0){if(o<l)return;o<c&&(c=o)}if(o=r-s,d||!(o>0)){if(o/=d,d<0){if(o<l)return;o<c&&(c=o)}else if(d>0){if(o>c)return;o>l&&(l=o)}if(o=A-s,d||!(o<0)){if(o/=d,d<0){if(o>c)return;o>l&&(l=o)}else if(d>0){if(o<l)return;o<c&&(c=o)}return l>0&&(t[0]=a+l*u,t[1]=s+l*d),c<1&&(e[0]=a+c*u,e[1]=s+c*d),!0}}}}}(s,b,t,e,n,r)?a&&(v.lineStart(),v.point(A,o),y=!1):(g||(v.lineStart(),v.point(s[0],s[1])),v.point(b[0],b[1]),a||v.lineEnd(),y=!1)}h=A,p=o,g=a}return w}}function sO(t,e){function n(n,r){return n=t(n,r),e(n[0],n[1])}return t.invert&&e.invert&&(n.invert=function(n,r){return(n=e.invert(n,r))&&t.invert(n[0],n[1])}),n}function lO(t,e){return gC(t)>cC&&(t-=Math.round(t/fC)*fC),[t,e]}function cO(t,e,n){return(t%=fC)?e||n?sO(dO(t),fO(e,n)):dO(t):e||n?fO(e,n):lO}function uO(t){return function(e,n){return gC(e+=t)>cC&&(e-=Math.round(e/fC)*fC),[e,n]}}function dO(t){var e=uO(t);return e.invert=uO(-t),e}function fO(t,e){var n=vC(t),r=CC(t),i=vC(e),A=CC(e);function o(t,e){var o=vC(e),a=vC(t)*o,s=CC(t)*o,l=CC(e),c=l*n+a*r;return[yC(s*i-c*A,a*n-l*r),QC(c*i+s*A)]}return o.invert=function(t,e){var o=vC(e),a=vC(t)*o,s=CC(t)*o,l=CC(e),c=l*i-s*A;return[yC(s*i+l*A,a*n+c*r),QC(c*n-a*r)]},o}function hO(t){return function(e){var n=new pO;for(var r in t)n[r]=t[r];return n.stream=e,n}}function pO(){}function gO(t,e,n){var r=t.clipExtent&&t.clipExtent();return t.scale(150).translate([0,0]),null!=r&&t.clipExtent(null),aC(n,t.stream(XC)),e(XC.result()),null!=r&&t.clipExtent(r),t}function mO(t,e,n){return gO(t,function(n){var r=e[1][0]-e[0][0],i=e[1][1]-e[0][1],A=Math.min(r/(n[1][0]-n[0][0]),i/(n[1][1]-n[0][1])),o=+e[0][0]+(r-A*(n[1][0]+n[0][0]))/2,a=+e[0][1]+(i-A*(n[1][1]+n[0][1]))/2;t.scale(150*A).translate([o,a])},n)}function yO(t,e,n){return mO(t,[[0,0],e],n)}function vO(t,e,n){return gO(t,function(n){var r=+e,i=r/(n[1][0]-n[0][0]),A=(r-i*(n[1][0]+n[0][0]))/2,o=-i*n[0][1];t.scale(150*i).translate([A,o])},n)}function bO(t,e,n){return gO(t,function(n){var r=+e,i=r/(n[1][1]-n[0][1]),A=-i*n[0][0],o=(r-i*(n[1][1]+n[0][1]))/2;t.scale(150*i).translate([A,o])},n)}lO.invert=lO,pO.prototype={constructor:pO,point:function(t,e){this.stream.point(t,e)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};var wO=vC(30*pC);function BO(t,e){return+e?function(t,e){function n(r,i,A,o,a,s,l,c,u,d,f,h,p,g){var m=l-r,y=c-i,v=m*m+y*y;if(v>4*e&&p--){var b=o+d,w=a+f,B=s+h,x=OC(b*b+w*w+B*B),C=QC(B/=x),E=gC(gC(B)-1)<lC||gC(A-u)<lC?(A+u)/2:yC(w,b),O=t(E,C),k=O[0],F=O[1],Q=k-r,M=F-i,U=y*Q-m*M;(U*U/v>e||gC((m*Q+y*M)/v-.5)>.3||o*d+a*f+s*h<wO)&&(n(r,i,A,o,a,s,k,F,E,b/=x,w/=x,B,p,g),g.point(k,F),n(k,F,E,b,w,B,l,c,u,d,f,h,p,g))}}return function(e){var r,i,A,o,a,s,l,c,u,d,f,h,p={point:g,lineStart:m,lineEnd:v,polygonStart:function(){e.polygonStart(),p.lineStart=b},polygonEnd:function(){e.polygonEnd(),p.lineStart=m}};function g(n,r){n=t(n,r),e.point(n[0],n[1])}function m(){c=NaN,p.point=y,e.lineStart()}function y(r,i){var A=VE([r,i]),o=t(r,i);n(c,u,l,d,f,h,c=o[0],u=o[1],l=r,d=A[0],f=A[1],h=A[2],16,e),e.point(c,u)}function v(){p.point=g,e.lineEnd()}function b(){m(),p.point=w,p.lineEnd=B}function w(t,e){y(r=t,e),i=c,A=u,o=d,a=f,s=h,p.point=y}function B(){n(c,u,l,d,f,h,i,A,r,o,a,s,16,e),p.lineEnd=v,v()}return p}}(t,e):function(t){return hO({point:function(e,n){e=t(e,n),this.stream.point(e[0],e[1])}})}(t)}var xO=hO({point:function(t,e){this.stream.point(t*pC,e*pC)}});function CO(t,e,n,r,i,A){if(!A)return function(t,e,n,r,i){function A(A,o){return[e+t*(A*=r),n-t*(o*=i)]}return A.invert=function(A,o){return[(A-e)/t*r,(n-o)/t*i]},A}(t,e,n,r,i);var o=vC(A),a=CC(A),s=o*t,l=a*t,c=o/t,u=a/t,d=(a*n-o*e)/t,f=(a*e+o*n)/t;function h(t,A){return[s*(t*=r)-l*(A*=i)+e,n-l*t-s*A]}return h.invert=function(t,e){return[r*(c*t-u*e+d),i*(f-u*t-c*e)]},h}function EO(t){return OO(function(){return t})()}function OO(t){var e,n,r,i,A,o,a,s,l,c,u=150,d=480,f=250,h=0,p=0,g=0,m=0,y=0,v=0,b=1,w=1,B=null,x=rO,C=null,E=eC,O=.5;function k(t){return s(t[0]*pC,t[1]*pC)}function F(t){return(t=s.invert(t[0],t[1]))&&[t[0]*hC,t[1]*hC]}function Q(){var t=CO(u,0,0,b,w,v).apply(null,e(h,p)),r=CO(u,d-t[0],f-t[1],b,w,v);return n=cO(g,m,y),a=sO(e,r),s=sO(n,a),o=BO(a,O),M()}function M(){return l=c=null,k}return k.stream=function(t){return l&&c===t?l:l=xO(function(t){return hO({point:function(e,n){var r=t(e,n);return this.stream.point(r[0],r[1])}})}(n)(x(o(E(c=t)))))},k.preclip=function(t){return arguments.length?(x=t,B=void 0,M()):x},k.postclip=function(t){return arguments.length?(E=t,C=r=i=A=null,M()):E},k.clipAngle=function(t){return arguments.length?(x=+t?function(t){var e=vC(t),n=2*pC,r=e>0,i=gC(e)>lC;function A(t,n){return vC(t)*vC(n)>e}function o(t,n,r){var i=[1,0,0],A=XE(VE(t),VE(n)),o=WE(A,A),a=A[0],s=o-a*a;if(!s)return!r&&t;var l=e*o/s,c=-e*a/s,u=XE(i,A),d=$E(i,l);YE(d,$E(A,c));var f=u,h=WE(d,f),p=WE(f,f),g=h*h-p*(WE(d,d)-1);if(!(g<0)){var m=OC(g),y=$E(f,(-h-m)/p);if(YE(y,d),y=GE(y),!r)return y;var v,b=t[0],w=n[0],B=t[1],x=n[1];w<b&&(v=b,b=w,w=v);var C=w-b,E=gC(C-cC)<lC;if(!E&&x<B&&(v=B,B=x,x=v),E||C<lC?E?B+x>0^y[1]<(gC(y[0]-b)<lC?B:x):B<=y[1]&&y[1]<=x:C>cC^(b<=y[0]&&y[0]<=w)){var O=$E(f,(-h+m)/p);return YE(O,d),[y,GE(O)]}}}function a(e,n){var i=r?t:cC-t,A=0;return e<-i?A|=1:e>i&&(A|=2),n<-i?A|=4:n>i&&(A|=8),A}return tO(A,function(t){var e,n,s,l,c;return{lineStart:function(){l=s=!1,c=1},point:function(u,d){var f,h=[u,d],p=A(u,d),g=r?p?0:a(u,d):p?a(u+(u<0?cC:-cC),d):0;if(!e&&(l=s=p)&&t.lineStart(),p!==s&&(!(f=o(e,h))||DE(e,f)||DE(h,f))&&(h[2]=1),p!==s)c=0,p?(t.lineStart(),f=o(h,e),t.point(f[0],f[1])):(f=o(e,h),t.point(f[0],f[1],2),t.lineEnd()),e=f;else if(i&&e&&r^p){var m;g&n||!(m=o(h,e,!0))||(c=0,r?(t.lineStart(),t.point(m[0][0],m[0][1]),t.point(m[1][0],m[1][1]),t.lineEnd()):(t.point(m[1][0],m[1][1]),t.lineEnd(),t.lineStart(),t.point(m[0][0],m[0][1],3)))}!p||e&&DE(e,h)||t.point(h[0],h[1]),e=h,s=p,n=g},lineEnd:function(){s&&t.lineEnd(),e=null},clean:function(){return c|(l&&s)<<1}}},function(e,r,i,A){!function(t,e,n,r,i,A){if(n){var o=vC(e),a=CC(e),s=r*n;null==i?(i=e+r*fC,A=e-s/2):(i=iO(o,i),A=iO(o,A),(r>0?i<A:i>A)&&(i+=r*fC));for(var l,c=i;r>0?c>A:c<A;c-=s)l=GE([o,-a*vC(c),-a*CC(c)]),t.point(l[0],l[1])}}(A,t,n,i,e,r)},r?[0,-t]:[-cC,t-cC])}(B=t*pC):(B=null,rO),M()):B*hC},k.clipExtent=function(t){return arguments.length?(E=null==t?(C=r=i=A=null,eC):aO(C=+t[0][0],r=+t[0][1],i=+t[1][0],A=+t[1][1]),M()):null==C?null:[[C,r],[i,A]]},k.scale=function(t){return arguments.length?(u=+t,Q()):u},k.translate=function(t){return arguments.length?(d=+t[0],f=+t[1],Q()):[d,f]},k.center=function(t){return arguments.length?(h=t[0]%360*pC,p=t[1]%360*pC,Q()):[h*hC,p*hC]},k.rotate=function(t){return arguments.length?(g=t[0]%360*pC,m=t[1]%360*pC,y=t.length>2?t[2]%360*pC:0,Q()):[g*hC,m*hC,y*hC]},k.angle=function(t){return arguments.length?(v=t%360*pC,Q()):v*hC},k.reflectX=function(t){return arguments.length?(b=t?-1:1,Q()):b<0},k.reflectY=function(t){return arguments.length?(w=t?-1:1,Q()):w<0},k.precision=function(t){return arguments.length?(o=BO(a,O=t*t),M()):OC(O)},k.fitExtent=function(t,e){return mO(k,t,e)},k.fitSize=function(t,e){return yO(k,t,e)},k.fitWidth=function(t,e){return vO(k,t,e)},k.fitHeight=function(t,e){return bO(k,t,e)},function(){return e=t.apply(this,arguments),k.invert=e.invert&&F,Q()}}function kO(t){var e=0,n=cC/3,r=OO(t),i=r(e,n);return i.parallels=function(t){return arguments.length?r(e=t[0]*pC,n=t[1]*pC):[e*hC,n*hC]},i}function FO(t,e){var n=CC(t),r=(n+CC(e))/2;if(gC(r)<lC)return function(t){var e=vC(t);function n(t,n){return[t*e,CC(n)/e]}return n.invert=function(t,n){return[t/e,QC(n*e)]},n}(t);var i=1+n*(2*r-n),A=OC(i)/r;function o(t,e){var n=OC(i-2*r*CC(e))/r;return[n*CC(t*=r),A-n*vC(t)]}return o.invert=function(t,e){var n=A-e,o=yC(t,gC(n))*EC(n);return n*r<0&&(o-=cC*EC(t)*EC(n)),[o/r,QC((i-(t*t+n*n)*r*r)/(2*r))]},o}function QO(){return kO(FO).scale(155.424).center([0,33.6442])}function MO(){return QO().parallels([29.5,45.5]).scale(1070).translate([480,250]).rotate([96,0]).center([-.6,38.7])}function UO(){var t,e,n,r,i,A,o=MO(),a=QO().rotate([154,0]).center([-2,58.5]).parallels([55,65]),s=QO().rotate([157,0]).center([-3,19.9]).parallels([8,18]),l={point:function(t,e){A=[t,e]}};function c(t){var e=t[0],o=t[1];return A=null,n.point(e,o),A||(r.point(e,o),A)||(i.point(e,o),A)}function u(){return t=e=null,c}return c.invert=function(t){var e=o.scale(),n=o.translate(),r=(t[0]-n[0])/e,i=(t[1]-n[1])/e;return(i>=.12&&i<.234&&r>=-.425&&r<-.214?a:i>=.166&&i<.234&&r>=-.214&&r<-.115?s:o).invert(t)},c.stream=function(n){return t&&e===n?t:t=function(t){var e=t.length;return{point:function(n,r){for(var i=-1;++i<e;)t[i].point(n,r)},sphere:function(){for(var n=-1;++n<e;)t[n].sphere()},lineStart:function(){for(var n=-1;++n<e;)t[n].lineStart()},lineEnd:function(){for(var n=-1;++n<e;)t[n].lineEnd()},polygonStart:function(){for(var n=-1;++n<e;)t[n].polygonStart()},polygonEnd:function(){for(var n=-1;++n<e;)t[n].polygonEnd()}}}([o.stream(e=n),a.stream(n),s.stream(n)])},c.precision=function(t){return arguments.length?(o.precision(t),a.precision(t),s.precision(t),u()):o.precision()},c.scale=function(t){return arguments.length?(o.scale(t),a.scale(.35*t),s.scale(t),c.translate(o.translate())):o.scale()},c.translate=function(t){if(!arguments.length)return o.translate();var e=o.scale(),A=+t[0],c=+t[1];return n=o.translate(t).clipExtent([[A-.455*e,c-.238*e],[A+.455*e,c+.238*e]]).stream(l),r=a.translate([A-.307*e,c+.201*e]).clipExtent([[A-.425*e+lC,c+.12*e+lC],[A-.214*e-lC,c+.234*e-lC]]).stream(l),i=s.translate([A-.205*e,c+.212*e]).clipExtent([[A-.214*e+lC,c+.166*e+lC],[A-.115*e-lC,c+.234*e-lC]]).stream(l),u()},c.fitExtent=function(t,e){return mO(c,t,e)},c.fitSize=function(t,e){return yO(c,t,e)},c.fitWidth=function(t,e){return vO(c,t,e)},c.fitHeight=function(t,e){return bO(c,t,e)},c.scale(1070)}function SO(t){return function(e,n){var r=vC(e),i=vC(n),A=t(r*i);return A===1/0?[2,0]:[A*i*CC(e),A*CC(n)]}}function _O(t){return function(e,n){var r=OC(e*e+n*n),i=t(r),A=CC(i),o=vC(i);return[yC(e*A,r*o),QC(r&&n*A/r)]}}var IO=SO(function(t){return OC(2/(1+t))});function TO(){return EO(IO).scale(124.75).clipAngle(179.999)}IO.invert=_O(function(t){return 2*QC(t/2)});var LO=SO(function(t){return(t=FC(t))&&t/CC(t)});function PO(){return EO(LO).scale(79.4188).clipAngle(179.999)}function jO(t,e){return[t,BC(kC((uC+e)/2))]}function HO(){return NO(jO).scale(961/fC)}function NO(t){var e,n,r,i=EO(t),A=i.center,o=i.scale,a=i.translate,s=i.clipExtent,l=null;function c(){var A=cC*o(),a=i(function(t){function e(e){return(e=t(e[0]*pC,e[1]*pC))[0]*=hC,e[1]*=hC,e}return t=cO(t[0]*pC,t[1]*pC,t.length>2?t[2]*pC:0),e.invert=function(e){return(e=t.invert(e[0]*pC,e[1]*pC))[0]*=hC,e[1]*=hC,e},e}(i.rotate()).invert([0,0]));return s(null==l?[[a[0]-A,a[1]-A],[a[0]+A,a[1]+A]]:t===jO?[[Math.max(a[0]-A,l),e],[Math.min(a[0]+A,n),r]]:[[l,Math.max(a[1]-A,e)],[n,Math.min(a[1]+A,r)]])}return i.scale=function(t){return arguments.length?(o(t),c()):o()},i.translate=function(t){return arguments.length?(a(t),c()):a()},i.center=function(t){return arguments.length?(A(t),c()):A()},i.clipExtent=function(t){return arguments.length?(null==t?l=e=n=r=null:(l=+t[0][0],e=+t[0][1],n=+t[1][0],r=+t[1][1]),c()):null==l?null:[[l,e],[n,r]]},c()}function DO(t){return kC((uC+t)/2)}function RO(t,e){var n=vC(t),r=t===e?CC(t):BC(n/vC(e))/BC(DO(e)/DO(t)),i=n*xC(DO(t),r)/r;if(!r)return jO;function A(t,e){i>0?e<-uC+lC&&(e=-uC+lC):e>uC-lC&&(e=uC-lC);var n=i/xC(DO(e),r);return[n*CC(r*t),i-n*vC(r*t)]}return A.invert=function(t,e){var n=i-e,A=EC(r)*OC(t*t+n*n),o=yC(t,gC(n))*EC(n);return n*r<0&&(o-=cC*EC(t)*EC(n)),[o/r,2*mC(xC(i/A,1/r))-uC]},A}function KO(){return kO(RO).scale(109.5).parallels([30,30])}function zO(t,e){return[t,e]}function GO(){return EO(zO).scale(152.63)}function VO(t,e){var n=vC(t),r=t===e?CC(t):(n-vC(e))/(e-t),i=n/r+t;if(gC(r)<lC)return zO;function A(t,e){var n=i-e,A=r*t;return[n*CC(A),i-n*vC(A)]}return A.invert=function(t,e){var n=i-e,A=yC(t,gC(n))*EC(n);return n*r<0&&(A-=cC*EC(t)*EC(n)),[A/r,i-EC(r)*OC(t*t+n*n)]},A}function WO(){return kO(VO).scale(131.154).center([0,13.9389])}LO.invert=_O(function(t){return t}),jO.invert=function(t,e){return[t,2*mC(wC(e))-uC]},zO.invert=zO;var XO=1.340264,YO=-.081106,$O=893e-6,qO=.003796,ZO=OC(3)/2;function JO(t,e){var n=QC(ZO*CC(e)),r=n*n,i=r*r*r;return[t*vC(n)/(ZO*(XO+3*YO*r+i*(7*$O+9*qO*r))),n*(XO+YO*r+i*($O+qO*r))]}function tk(){return EO(JO).scale(177.158)}function ek(t,e){var n=vC(e),r=vC(t)*n;return[n*CC(t)/r,CC(e)/r]}function nk(){return EO(ek).scale(144.049).clipAngle(60)}function rk(){var t,e,n,r,i,A,o,a=1,s=0,l=0,c=1,u=1,d=0,f=null,h=1,p=1,g=hO({point:function(t,e){var n=v([t,e]);this.stream.point(n[0],n[1])}}),m=eC;function y(){return h=a*c,p=a*u,A=o=null,v}function v(n){var r=n[0]*h,i=n[1]*p;if(d){var A=i*t-r*e;r=r*t+i*e,i=A}return[r+s,i+l]}return v.invert=function(n){var r=n[0]-s,i=n[1]-l;if(d){var A=i*t+r*e;r=r*t-i*e,i=A}return[r/h,i/p]},v.stream=function(t){return A&&o===t?A:A=g(m(o=t))},v.postclip=function(t){return arguments.length?(m=t,f=n=r=i=null,y()):m},v.clipExtent=function(t){return arguments.length?(m=null==t?(f=n=r=i=null,eC):aO(f=+t[0][0],n=+t[0][1],r=+t[1][0],i=+t[1][1]),y()):null==f?null:[[f,n],[r,i]]},v.scale=function(t){return arguments.length?(a=+t,y()):a},v.translate=function(t){return arguments.length?(s=+t[0],l=+t[1],y()):[s,l]},v.angle=function(n){return arguments.length?(e=CC(d=n%360*pC),t=vC(d),y()):d*hC},v.reflectX=function(t){return arguments.length?(c=t?-1:1,y()):c<0},v.reflectY=function(t){return arguments.length?(u=t?-1:1,y()):u<0},v.fitExtent=function(t,e){return mO(v,t,e)},v.fitSize=function(t,e){return yO(v,t,e)},v.fitWidth=function(t,e){return vO(v,t,e)},v.fitHeight=function(t,e){return bO(v,t,e)},v}function ik(t,e){var n=e*e,r=n*n;return[t*(.8707-.131979*n+r*(r*(.003971*n-.001529*r)-.013791)),e*(1.007226+n*(.015085+r*(.028874*n-.044475-.005916*r)))]}function Ak(){return EO(ik).scale(175.295)}function ok(t,e){return[vC(e)*CC(t),CC(e)]}function ak(){return EO(ok).scale(249.5).clipAngle(90.000001)}function sk(t,e){var n=vC(e),r=1+vC(t)*n;return[n*CC(t)/r,CC(e)/r]}function lk(){return EO(sk).scale(250).clipAngle(142)}function ck(t,e){return[BC(kC((uC+e)/2)),-t]}function uk(){var t=NO(ck),e=t.center,n=t.rotate;return t.center=function(t){return arguments.length?e([-t[1],t[0]]):[(t=e())[1],-t[0]]},t.rotate=function(t){return arguments.length?n([t[0],t[1],t.length>2?t[2]+90:90]):[(t=n())[0],t[1],t[2]-90]},n([0,0,90]).scale(159.155)}JO.invert=function(t,e){for(var n,r=e,i=r*r,A=i*i*i,o=0;o<12&&(A=(i=(r-=n=(r*(XO+YO*i+A*($O+qO*i))-e)/(XO+3*YO*i+A*(7*$O+9*qO*i)))*r)*i*i,!(gC(n)<1e-12));++o);return[ZO*t*(XO+3*YO*i+A*(7*$O+9*qO*i))/vC(r),QC(CC(r)/ZO)]},ek.invert=_O(mC),ik.invert=function(t,e){var n,r=e,i=25;do{var A=r*r,o=A*A;r-=n=(r*(1.007226+A*(.015085+o*(.028874*A-.044475-.005916*o)))-e)/(1.007226+A*(.045255+o*(.259866*A-.311325-.005916*11*o)))}while(gC(n)>lC&&--i>0);return[t/(.8707+(A=r*r)*(A*(A*A*A*(.003971-.001529*A)-.013791)-.131979)),r]},ok.invert=_O(QC),sk.invert=_O(function(t){return 2*mC(t)}),ck.invert=function(t,e){return[-e,2*mC(wC(t))-uC]};function dk(t){const{data:e}=t;if(Array.isArray(e))return Object.assign(Object.assign({},t),{data:{value:e}});const{type:n}=e;return"graticule10"===n?Object.assign(Object.assign({},t),{data:{value:[function(){var t,e,n,r,i,A,o,a,s,l,c,u,d=10,f=d,h=90,p=360,g=2.5;function m(){return{type:"MultiLineString",coordinates:y()}}function y(){return PE(bC(r/h)*h,n,h).map(c).concat(PE(bC(a/p)*p,o,p).map(u)).concat(PE(bC(e/d)*d,t,d).filter(function(t){return gC(t%h)>lC}).map(s)).concat(PE(bC(A/f)*f,i,f).filter(function(t){return gC(t%p)>lC}).map(l))}return m.lines=function(){return y().map(function(t){return{type:"LineString",coordinates:t}})},m.outline=function(){return{type:"Polygon",coordinates:[c(r).concat(u(o).slice(1),c(n).reverse().slice(1),u(a).reverse().slice(1))]}},m.extent=function(t){return arguments.length?m.extentMajor(t).extentMinor(t):m.extentMinor()},m.extentMajor=function(t){return arguments.length?(a=+t[0][1],o=+t[1][1],(r=+t[0][0])>(n=+t[1][0])&&(t=r,r=n,n=t),a>o&&(t=a,a=o,o=t),m.precision(g)):[[r,a],[n,o]]},m.extentMinor=function(n){return arguments.length?(A=+n[0][1],i=+n[1][1],(e=+n[0][0])>(t=+n[1][0])&&(n=e,e=t,t=n),A>i&&(n=A,A=i,i=n),m.precision(g)):[[e,A],[t,i]]},m.step=function(t){return arguments.length?m.stepMajor(t).stepMinor(t):m.stepMinor()},m.stepMajor=function(t){return arguments.length?(h=+t[0],p=+t[1],m):[h,p]},m.stepMinor=function(t){return arguments.length?(d=+t[0],f=+t[1],m):[d,f]},m.precision=function(d){return arguments.length?(g=+d,s=jE(A,i,90),l=HE(e,t,g),c=jE(a,o,90),u=HE(r,n,g),m):g},m.extentMajor([[-180,-89.999999],[180,89.999999]]).extentMinor([[-180,-80.000001],[180,80.000001]])}()()]}}):"sphere"===n?Object.assign(Object.assign({},t),{sphere:!0,data:{value:[{type:"Sphere"}]}}):t}function fk(t){return"geoPath"===t.type}const hk=()=>t=>{const{children:e,coordinate:n={}}=t;if(!Array.isArray(e))return[];const{type:r="equalEarth"}=n,i=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n}(n,["type"]),o=function(t){if("function"==typeof t)return t;const e=`geo${Dc(t)}`,n=A[e];if(!n)throw new Error(`Unknown coordinate: ${t}`);return n}(r),a=e.map(e=>Object.assign(Object.assign({},e),{data:Gp(e.data,t.data)})).map(dk);let s;return[Object.assign(Object.assign({},t),{type:"view",scale:{x:{type:"identity"},y:{type:"identity"}},axis:!1,coordinate:{type:function(){return[["custom",(t,e,n,r)=>{const A=o();(function(t,e,n,r){const i=()=>{const t=e.filter(fk),n=t.find(t=>t.sphere);return n?{type:"Sphere"}:(r=t.filter(t=>!t.sphere).flatMap(t=>t.data.value),{type:"FeatureCollection",features:r.flatMap(t=>function(t){if(!t||!t.type)return null;const e={Point:"geometry",MultiPoint:"geometry",LineString:"geometry",MultiLineString:"geometry",Polygon:"geometry",MultiPolygon:"geometry",GeometryCollection:"geometry",Feature:"feature",FeatureCollection:"featureCollection"}[t.type];return e?"geometry"===e?{type:"FeatureCollection",features:[{type:"Feature",properties:{},geometry:t}]}:"feature"===e?{type:"FeatureCollection",features:[t]}:"featureCollection"===e?t:void 0:null}(t).features)});var r},{outline:A=i()}=r,{size:o="fitExtent"}=r;"fitExtent"===o?function(t,e,n){const{x:r,y:i,width:A,height:o}=n;t.fitExtent([[r,i],[A,o]],e)}(t,A,n):"fitWidth"===o&&function(t,e,n){const{width:r,height:i}=n,[[A,o],[a,s]]=LE(t.fitWidth(r,e)).bounds(e),l=Math.ceil(s-o),c=Math.min(Math.ceil(a-A),l),u=t.scale()*(c-1)/c,[d,f]=t.translate(),h=f+(i-l)/2;t.scale(u).translate([d,h]).precision(.2)}(t,A,n)})(A,a,{x:t,y:e,width:n,height:r},i),function(t,e){var n;for(const[r,i]of Object.entries(e))null===(n=t[r])||void 0===n||n.call(t,i)}(A,i),s=LE(A);const l=new xe({domain:[t,t+n]}),c=new xe({domain:[e,e+r]});return{transform:t=>(t=>{const e=A(t);if(!e)return[null,null];const[n,r]=e;return[l.map(n),c.map(r)]})(t),untransform:t=>(t=>{if(!t)return null;const[e,n]=t,r=[l.invert(e),c.invert(n)];return A.invert(r)})(t)}}]]}},children:a.flatMap(t=>fk(t)?function(t){const{style:e,tooltip:n={}}=t;return Object.assign(Object.assign({},t),{type:"path",tooltip:Ip(n,{title:"id",items:[{channel:"color"}]}),style:Object.assign(Object.assign({},e),{d:t=>s(t)||[]})})}(t):t)})]};hk.props={};const pk=()=>t=>{const{data:e,scale:n,encode:r,style:i,animate:A,key:o,state:a,tooltip:s}=t,l=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n}(t,["type","data","scale","encode","style","animate","key","state","tooltip"]);return[Object.assign(Object.assign({type:"geoView"},l),{children:[{type:"geoPath",key:`${o}-0`,data:{value:e},scale:n,encode:r,style:i,animate:A,state:a,tooltip:s}]})]};pk.props={};var gk=n("./node_modules/.pnpm/d3-force@3.0.0/node_modules/d3-force/src/manyBody.js"),mk=n("./node_modules/.pnpm/d3-force@3.0.0/node_modules/d3-force/src/link.js"),yk=n("./node_modules/.pnpm/d3-force@3.0.0/node_modules/d3-force/src/center.js");const vk={joint:!0},bk={type:"link",axis:!1,legend:!1,encode:{x:[t=>t.source.x,t=>t.target.x],y:[t=>t.source.y,t=>t.target.y]},style:{stroke:"#999",strokeOpacity:.6}},wk={type:"point",axis:!1,legend:!1,encode:{x:"x",y:"y",size:5,color:"group",shape:"point"},style:{stroke:"#fff"}},Bk={text:""},xk=t=>{const{data:e,encode:n={},scale:r,style:i={},layout:A={},nodeLabels:o=[],linkLabels:a=[],animate:s={},tooltip:l={}}=t,{nodeKey:c=t=>t.id,linkKey:u=t=>t.id}=n,d=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n}(n,["nodeKey","linkKey"]),f=Object.assign({nodeKey:c,linkKey:u},d),h=Pt(f,"node"),p=Pt(f,"link"),{links:g,nodes:m}=yn(e,f),{nodesData:y,linksData:v}=function(t,e,n){const{nodes:r,links:i}=t,{joint:A,nodeStrength:o,linkStrength:a}=e,{nodeKey:s=t=>t.id,linkKey:l=t=>t.id}=n,c=(0,gk.A)(),u=(0,mk.A)(i).id(gn(l));"function"==typeof o&&c.strength(o),"function"==typeof a&&u.strength(a);const d=(0,Lo.A)(r).force("link",u).force("charge",c);A?d.force("center",(0,yk.A)()):d.force("x",Ho()).force("y",No()),d.stop();const f=Math.ceil(Math.log(d.alphaMin())/Math.log(1-d.alphaDecay()));for(let t=0;t<f;t++)d.tick();return{nodesData:r,linksData:i}}({links:g,nodes:m},Q({},vk,A),f),b=_p(l,"link",{items:[t=>({name:"source",value:gn(u)(t.source)}),t=>({name:"target",value:gn(u)(t.target)})]}),w=_p(l,"node",{items:[t=>({name:"key",value:gn(c)(t)})]},!0);return[Q({},bk,{data:v,encode:p,labels:a,style:Pt(i,"link"),tooltip:b,animate:Lp(s,"link")}),Q({},wk,{data:y,encode:Object.assign({},h),scale:r,style:Pt(i,"node"),tooltip:w,labels:[Object.assign(Object.assign({},Bk),Pt(i,"label")),...o],animate:Lp(s,"link")})]};xk.props={};var Ck=n("./node_modules/.pnpm/d3-hierarchy@3.1.2/node_modules/d3-hierarchy/src/tree.js");function Ek(t,e){return t.parent===e.parent?1:2}function Ok(t,e){return t+e.x}function kk(t,e){return Math.max(t,e.y)}function Fk(){var t=Ek,e=1,n=1,r=!1;function i(i){var A,o=0;i.eachAfter(function(e){var n=e.children;n?(e.x=function(t){return t.reduce(Ok,0)/t.length}(n),e.y=function(t){return 1+t.reduce(kk,0)}(n)):(e.x=A?o+=t(e,A):0,e.y=0,A=e)});var a=function(t){for(var e;e=t.children;)t=e[0];return t}(i),s=function(t){for(var e;e=t.children;)t=e[e.length-1];return t}(i),l=a.x-t(a,s)/2,c=s.x+t(s,a)/2;return i.eachAfter(r?function(t){t.x=(t.x-i.x)*e,t.y=(i.y-t.y)*n}:function(t){t.x=(t.x-l)/(c-l)*e,t.y=(1-(i.y?t.y/i.y:1))*n})}return i.separation=function(e){return arguments.length?(t=e,i):t},i.size=function(t){return arguments.length?(r=!1,e=+t[0],n=+t[1],i):r?null:[e,n]},i.nodeSize=function(t){return arguments.length?(r=!0,e=+t[0],n=+t[1],i):r?[e,n]:null},i}const Qk=t=>e=>n=>{const{field:r="value",nodeSize:i,separation:A,sortBy:o,as:a=["x","y"]}=e,[s,l]=a,c=(0,vb.Ay)(n,t=>t.children).sum(t=>t[r]).sort(o),u=t();u.size([1,1]),i&&u.nodeSize(i),A&&u.separation(A),u(c);const d=[];c.each(t=>{t[s]=t.x,t[l]=t.y,t.name=t.data.name,d.push(t)});const f=c.links();return f.forEach(t=>{t[s]=[t.source[s],t.target[s]],t[l]=[t.source[l],t.target[l]]}),{nodes:d,edges:f}},Mk=t=>Qk(Fk)(t);Mk.props={};const Uk=t=>Qk(Ck.A)(t);Uk.props={};const Sk={sortBy:(t,e)=>e.value-t.value},_k={axis:!1,legend:!1,type:"point",encode:{x:"x",y:"y",size:2,shape:"point"}},Ik={type:"link",encode:{x:"x",y:"y",shape:"smooth"}},Tk={text:"",fontSize:10},Lk=t=>{const{data:e,encode:n={},scale:r={},style:i={},layout:A={},nodeLabels:o=[],linkLabels:a=[],animate:s={},tooltip:l={}}=t,c=null==n?void 0:n.value,{nodes:u,edges:d}=Uk(Object.assign(Object.assign(Object.assign({},Sk),A),{field:c}))(e),f=_p(l,"node",{title:"name",items:["value"]},!0),h=_p(l,"link",{title:"",items:[t=>({name:"source",value:t.source.name}),t=>({name:"target",value:t.target.name})]});return[Q({},Ik,{data:d,encode:Pt(n,"link"),scale:Pt(r,"link"),labels:a,style:Object.assign({stroke:"#999"},Pt(i,"link")),tooltip:h,animate:Lp(s,"link")}),Q({},_k,{data:u,scale:Pt(r,"node"),encode:Pt(n,"node"),labels:[Object.assign(Object.assign({},Tk),Pt(i,"label")),...o],style:Object.assign({},Pt(i,"node")),tooltip:f,animate:Lp(s,"node")})]};Lk.props={};const Pk=4294967296;function jk(t,e){var n,r;if(Dk(e,t))return[e];for(n=0;n<t.length;++n)if(Hk(e,t[n])&&Dk(Kk(t[n],e),t))return[t[n],e];for(n=0;n<t.length-1;++n)for(r=n+1;r<t.length;++r)if(Hk(Kk(t[n],t[r]),e)&&Hk(Kk(t[n],e),t[r])&&Hk(Kk(t[r],e),t[n])&&Dk(zk(t[n],t[r],e),t))return[t[n],t[r],e];throw new Error}function Hk(t,e){var n=t.r-e.r,r=e.x-t.x,i=e.y-t.y;return n<0||n*n<r*r+i*i}function Nk(t,e){var n=t.r-e.r+1e-9*Math.max(t.r,e.r,1),r=e.x-t.x,i=e.y-t.y;return n>0&&n*n>r*r+i*i}function Dk(t,e){for(var n=0;n<e.length;++n)if(!Nk(t,e[n]))return!1;return!0}function Rk(t){switch(t.length){case 1:return{x:(e=t[0]).x,y:e.y,r:e.r};case 2:return Kk(t[0],t[1]);case 3:return zk(t[0],t[1],t[2])}var e}function Kk(t,e){var n=t.x,r=t.y,i=t.r,A=e.x,o=e.y,a=e.r,s=A-n,l=o-r,c=a-i,u=Math.sqrt(s*s+l*l);return{x:(n+A+s/u*c)/2,y:(r+o+l/u*c)/2,r:(u+i+a)/2}}function zk(t,e,n){var r=t.x,i=t.y,A=t.r,o=e.x,a=e.y,s=e.r,l=n.x,c=n.y,u=n.r,d=r-o,f=r-l,h=i-a,p=i-c,g=s-A,m=u-A,y=r*r+i*i-A*A,v=y-o*o-a*a+s*s,b=y-l*l-c*c+u*u,w=f*h-d*p,B=(h*b-p*v)/(2*w)-r,x=(p*g-h*m)/w,C=(f*v-d*b)/(2*w)-i,E=(d*m-f*g)/w,O=x*x+E*E-1,k=2*(A+B*x+C*E),F=B*B+C*C-A*A,Q=-(Math.abs(O)>1e-6?(k+Math.sqrt(k*k-4*O*F))/(2*O):F/k);return{x:r+B+x*Q,y:i+C+E*Q,r:Q}}function Gk(t,e,n){var r,i,A,o,a=t.x-e.x,s=t.y-e.y,l=a*a+s*s;l?(i=e.r+n.r,o=t.r+n.r,(i*=i)>(o*=o)?(r=(l+o-i)/(2*l),A=Math.sqrt(Math.max(0,o/l-r*r)),n.x=t.x-r*a-A*s,n.y=t.y-r*s+A*a):(r=(l+i-o)/(2*l),A=Math.sqrt(Math.max(0,i/l-r*r)),n.x=e.x+r*a-A*s,n.y=e.y+r*s+A*a)):(n.x=e.x+n.r,n.y=e.y)}function Vk(t,e){var n=t.r+e.r-1e-6,r=e.x-t.x,i=e.y-t.y;return n>0&&n*n>r*r+i*i}function Wk(t){var e=t._,n=t.next._,r=e.r+n.r,i=(e.x*n.r+n.x*e.r)/r,A=(e.y*n.r+n.y*e.r)/r;return i*i+A*A}function Xk(t){this._=t,this.next=null,this.previous=null}function Yk(t,e){if(!(A=(t=function(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}(t)).length))return 0;var n,r,i,A,o,a,s,l,c,u,d;if((n=t[0]).x=0,n.y=0,!(A>1))return n.r;if(n.x=-(r=t[1]).r,r.x=n.r,r.y=0,!(A>2))return n.r+r.r;Gk(r,n,i=t[2]),n=new Xk(n),r=new Xk(r),i=new Xk(i),n.next=i.previous=r,r.next=n.previous=i,i.next=r.previous=n;t:for(s=3;s<A;++s){Gk(n._,r._,i=t[s]),i=new Xk(i),l=r.next,c=n.previous,u=r._.r,d=n._.r;do{if(u<=d){if(Vk(l._,i._)){n.next=r=l,r.previous=n,--s;continue t}u+=l._.r,l=l.next}else{if(Vk(c._,i._)){(n=c).next=r,r.previous=n,--s;continue t}d+=c._.r,c=c.previous}}while(l!==c.next);for(i.previous=n,i.next=r,n.next=r.previous=r=i,o=Wk(n);(i=i.next)!==r;)(a=Wk(i))<o&&(n=i,o=a);r=n.next}for(n=[r._],i=r;(i=i.next)!==r;)n.push(i._);for(i=function(t,e){for(var n,r,i=0,A=(t=function(t,e){let n,r,i=t.length;for(;i;)r=e()*i--|0,n=t[i],t[i]=t[r],t[r]=n;return t}(Array.from(t),e)).length,o=[];i<A;)n=t[i],r&&Nk(r,n)?++i:(r=Rk(o=jk(o,n)),i=0);return r}(n,e),s=0;s<A;++s)(n=t[s]).x-=i.x,n.y-=i.y;return i.r}function $k(t){return Math.sqrt(t.value)}function qk(t){return function(e){e.children||(e.r=Math.max(0,+t(e)||0))}}function Zk(t,e,n){return function(r){if(i=r.children){var i,A,o,a=i.length,s=t(r)*e||0;if(s)for(A=0;A<a;++A)i[A].r+=s;if(o=Yk(i,n),s)for(A=0;A<a;++A)i[A].r-=s;r.r=o+s}}}function Jk(t){return function(e){var n=e.parent;e.r*=t,n&&(e.x=n.x+t*e.x,e.y=n.y+t*e.y)}}const tF={text:"",position:"inside",textOverflow:"clip",wordWrap:!0,maxLines:1,wordWrapWidth:t=>2*t.r},eF={title:t=>t.data.name,items:[{field:"value"}]},nF=(t,e)=>{const{width:n,height:r}=e,{data:i,encode:A={},scale:o={},style:a={},layout:s={},labels:l=[],tooltip:c={}}=t,u=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n}(t,["data","encode","scale","style","layout","labels","tooltip"]),d=((t,e,n)=>({type:"point",axis:!1,legend:!1,scale:{x:{domain:[0,t]},y:{domain:[0,e]},size:{type:"identity"}},encode:{x:"x",y:"y",size:"r",shape:"point"},style:{fill:n.color?void 0:t=>0===t.height?"#ddd":"#fff",stroke:n.color?void 0:t=>0===t.height?"":"#000"}}))(n,r,A),f=((t,e,n)=>{const{value:r}=n,i=(0,x.A)(t)?Eb().path(e.path)(t):(0,vb.Ay)(t);return r?i.sum(t=>gn(r)(t)).sort(e.sort):i.count(),function(){var t=null,e=1,n=1,r=Pb;function i(i){const A=function(){let t=1;return()=>(t=(1664525*t+1013904223)%Pk)/Pk}();return i.x=e/2,i.y=n/2,t?i.eachBefore(qk(t)).eachAfter(Zk(r,.5,A)).eachBefore(Jk(1)):i.eachBefore(qk($k)).eachAfter(Zk(Pb,1,A)).eachAfter(Zk(r,i.r/Math.min(e,n),A)).eachBefore(Jk(Math.min(e,n)/(2*i.r))),i}return i.radius=function(e){return arguments.length?(t=mb(e),i):t},i.size=function(t){return arguments.length?(e=+t[0],n=+t[1],i):[e,n]},i.padding=function(t){return arguments.length?(r="function"==typeof t?t:jb(+t),i):r},i}().size(e.size).padding(e.padding)(i),i.descendants()})(i,Q({},((t,e)=>({size:[t,e],padding:0,sort:(t,e)=>e.value-t.value}))(n,r),s),Q({},d.encode,A)),h=Pt(a,"label");return Q({},d,Object.assign(Object.assign({data:f,encode:A,scale:o,style:a,labels:[Object.assign(Object.assign({},tF),h),...l]},u),{tooltip:Ip(c,eF),axis:!1}))};function rF(t){return t.target.depth}function iF(t,e){return t.sourceLinks.length?t.depth:e-1}function AF(t){return function(){return t}}function oF(t,e){return sF(t.source,e.source)||t.index-e.index}function aF(t,e){return sF(t.target,e.target)||t.index-e.index}function sF(t,e){return t.y0-e.y0}function lF(t){return t.value}function cF(t){return t.index}function uF(t){return t.nodes}function dF(t){return t.links}function fF(t,e){const n=t.get(e);if(!n)throw new Error("missing: "+e);return n}function hF({nodes:t}){for(const e of t){let t=e.y0,n=t;for(const n of e.sourceLinks)n.y0=t+n.width/2,t+=n.width;for(const t of e.targetLinks)t.y1=n+t.width/2,n+=t.width}}nF.props={};const pF={nodeAlign:"justify",nodeWidth:.008,nodePadding:.03,nodes:t=>t.nodes,links:t=>t.links,nodeSort:void 0,linkSort:void 0,iterations:6},gF={left:function(t){return t.depth},right:function(t,e){return e-1-t.height},center:function(t){return t.targetLinks.length?t.depth:t.sourceLinks.length?Oo(t.sourceLinks,rF)-1:0},justify:iF},mF=t=>e=>{const{nodeId:n,nodeSort:r,nodeAlign:i,nodeWidth:A,nodePadding:o,nodeDepth:a,nodes:s,links:l,linkSort:c,iterations:u}=Object.assign({},pF,t),d=function(){let t,e,n,r,i=0,A=0,o=1,a=1,s=24,l=8,c=cF,u=iF,d=uF,f=dF,h=6;function p(p){const y={nodes:d(p),links:f(p)};return function({nodes:t,links:e}){t.forEach((t,e)=>{t.index=e,t.sourceLinks=[],t.targetLinks=[]});const n=new Map(t.map(t=>[c(t),t]));if(e.forEach((t,e)=>{t.index=e;let{source:r,target:i}=t;"object"!=typeof r&&(r=t.source=fF(n,r)),"object"!=typeof i&&(i=t.target=fF(n,i)),r.sourceLinks.push(t),i.targetLinks.push(t)}),null!=r)for(const{sourceLinks:e,targetLinks:n}of t)e.sort(r),n.sort(r)}(y),function({nodes:t}){for(const e of t)e.value=void 0===e.fixedValue?Math.max(rB(e.sourceLinks,lF),rB(e.targetLinks,lF)):e.fixedValue}(y),function({nodes:t}){const n=t.length;let r=new Set(t),i=new Set,A=0;for(;r.size;){if(r.forEach(t=>{t.depth=A;for(const{target:e}of t.sourceLinks)i.add(e)}),++A>n)throw new Error("circular link");r=i,i=new Set}if(e){const n=Math.max(ko(t,t=>t.depth)+1,0);let r;for(let i=0;i<t.length;i++)r=t[i],r.depth=e.call(null,r,n)}}(y),function({nodes:t}){const e=t.length;let n=new Set(t),r=new Set,i=0;for(;n.size;){if(n.forEach(t=>{t.height=i;for(const{source:e}of t.targetLinks)r.add(e)}),++i>e)throw new Error("circular link");n=r,r=new Set}}(y),function(e){const r=function({nodes:t}){const e=Math.max(ko(t,t=>t.depth)+1,0),r=(o-i-s)/(e-1),A=new Array(e).fill(0).map(()=>[]);for(const n of t){const t=Math.max(0,Math.min(e-1,Math.floor(u.call(null,n,e))));n.layer=t,n.x0=i+t*r,n.x1=n.x0+s,A[t]?A[t].push(n):A[t]=[n]}if(n)for(const t of A)t.sort(n);return A}(e);t=Math.min(l,(a-A)/(ko(r,t=>t.length)-1)),function(e){const n=Oo(e,e=>(a-A-(e.length-1)*t)/rB(e,lF));for(const r of e){let e=A;for(const i of r){i.y0=e,i.y1=e+i.value*n,e=i.y1+t;for(const t of i.sourceLinks)t.width=t.value*n}e=(a-e+t)/(r.length+1);for(let t=0;t<r.length;++t){const n=r[t];n.y0+=e*(t+1),n.y1+=e*(t+1)}B(r)}}(r);for(let t=0;t<h;++t){const e=Math.pow(.99,t),n=Math.max(1-e,(t+1)/h);m(r,e,n),g(r,e,n)}}(y),hF(y),y}function g(t,e,r){for(let i=1,A=t.length;i<A;++i){const A=t[i];for(const t of A){let n=0,r=0;for(const{source:e,value:i}of t.targetLinks){const A=i*(t.layer-e.layer);n+=x(e,t)*A,r+=A}if(!(r>0))continue;const i=(n/r-t.y0)*e;t.y0+=i,t.y1+=i,w(t)}void 0===n&&A.sort(sF),A.length&&y(A,r)}}function m(t,e,r){for(let i=t.length-2;i>=0;--i){const A=t[i];for(const t of A){let n=0,r=0;for(const{target:e,value:i}of t.sourceLinks){const A=i*(e.layer-t.layer);n+=C(t,e)*A,r+=A}if(!(r>0))continue;const i=(n/r-t.y0)*e;t.y0+=i,t.y1+=i,w(t)}void 0===n&&A.sort(sF),A.length&&y(A,r)}}function y(e,n){const r=e.length>>1,i=e[r];b(e,i.y0-t,r-1,n),v(e,i.y1+t,r+1,n),b(e,a,e.length-1,n),v(e,A,0,n)}function v(e,n,r,i){for(;r<e.length;++r){const A=e[r],o=(n-A.y0)*i;o>1e-6&&(A.y0+=o,A.y1+=o),n=A.y1+t}}function b(e,n,r,i){for(;r>=0;--r){const A=e[r],o=(A.y1-n)*i;o>1e-6&&(A.y0-=o,A.y1-=o),n=A.y0-t}}function w({sourceLinks:t,targetLinks:e}){if(void 0===r){for(const{source:{sourceLinks:t}}of e)t.sort(aF);for(const{target:{targetLinks:e}}of t)e.sort(oF)}}function B(t){if(void 0===r)for(const{sourceLinks:e,targetLinks:n}of t)e.sort(aF),n.sort(oF)}function x(e,n){let r=e.y0-(e.sourceLinks.length-1)*t/2;for(const{target:i,width:A}of e.sourceLinks){if(i===n)break;r+=A+t}for(const{source:t,width:i}of n.targetLinks){if(t===e)break;r-=i}return r}function C(e,n){let r=n.y0-(n.targetLinks.length-1)*t/2;for(const{source:i,width:A}of n.targetLinks){if(i===e)break;r+=A+t}for(const{target:t,width:i}of e.sourceLinks){if(t===n)break;r-=i}return r}return p.update=function(t){return hF(t),t},p.nodeId=function(t){return arguments.length?(c="function"==typeof t?t:AF(t),p):c},p.nodeAlign=function(t){return arguments.length?(u="function"==typeof t?t:AF(t),p):u},p.nodeDepth=function(t){return arguments.length?(e=t,p):e},p.nodeSort=function(t){return arguments.length?(n=t,p):n},p.nodeWidth=function(t){return arguments.length?(s=+t,p):s},p.nodePadding=function(e){return arguments.length?(l=t=+e,p):l},p.nodes=function(t){return arguments.length?(d="function"==typeof t?t:AF(t),p):d},p.links=function(t){return arguments.length?(f="function"==typeof t?t:AF(t),p):f},p.linkSort=function(t){return arguments.length?(r=t,p):r},p.size=function(t){return arguments.length?(i=A=0,o=+t[0],a=+t[1],p):[o-i,a-A]},p.extent=function(t){return arguments.length?(i=+t[0][0],o=+t[1][0],A=+t[0][1],a=+t[1][1],p):[[i,A],[o,a]]},p.iterations=function(t){return arguments.length?(h=+t,p):h},p}().nodeSort(r).linkSort(c).links(l).nodes(s).nodeWidth(A).nodePadding(o).nodeDepth(a).nodeAlign(function(t){const e=typeof t;return"string"===e?gF[t]||iF:"function"===e?t:iF}(i)).iterations(u).extent([[0,0],[1,1]]);"function"==typeof n&&d.nodeId(n);const f=d(e),{nodes:h,links:p}=f,g=h.map(t=>{const{x0:e,x1:n,y0:r,y1:i}=t;return Object.assign(Object.assign({},t),{x:[e,n,n,e],y:[r,r,i,i]})}),m=p.map(t=>{const{source:e,target:n}=t,r=e.x1,i=n.x0,A=t.width/2;return Object.assign(Object.assign({},t),{x:[r,r,i,i],y:[t.y0+A,t.y0-A,t.y1+A,t.y1-A]})});return{nodes:g,links:m}};mF.props={};const yF={nodeId:t=>t.key,nodeWidth:.02,nodePadding:.02},vF={type:"polygon",axis:!1,legend:!1,encode:{shape:"polygon",x:"x",y:"y"},scale:{x:{type:"identity"},y:{type:"identity"}},style:{stroke:"#000"}},bF={type:"polygon",axis:!1,legend:!1,encode:{shape:"ribbon",x:"x",y:"y"},style:{fillOpacity:.5,stroke:void 0}},wF={textAlign:t=>t.x[0]<.5?"start":"end",position:t=>t.x[0]<.5?"right":"left",fontSize:10},BF=t=>{const{data:e,encode:n={},scale:r,style:i={},layout:A={},nodeLabels:o=[],linkLabels:a=[],animate:s={},tooltip:l={},interaction:c,state:u={},viewStyle:d={}}=t,{links:f,nodes:h}=yn(e,n);if(!f||0===f.length)return[Q({},vF,{data:[],encode:{},scale:r,style:Pt(i,"node"),viewStyle:d,labels:[],tooltip:!1,animate:!1,axis:!1,interaction:c,state:{}}),Q({},bF,{data:[],encode:{},labels:[],style:Pt(i,"link"),tooltip:!1,animate:!1,interaction:c,state:{}})];const p=Pt(n,"node"),g=Pt(n,"link"),{key:m=t=>t.key,color:y=m}=p,{links:v,nodes:b}=mF(Object.assign(Object.assign(Object.assign({},yF),{nodeId:gn(m)}),A))({links:f,nodes:h}),w=Pt(i,"label"),{text:B=m,spacing:x=5}=w,C=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n}(w,["text","spacing"]),E=gn(m),O=_p(l,"node",{title:E,items:[{field:"value"}]},!0),k=_p(l,"link",{title:"",items:[t=>({name:"source",value:E(t.source)}),t=>({name:"target",value:E(t.target)})]}),[F,M]=Object.entries(u).reduce((t,[e,n])=>{const r=Ht(n,"node","link"),i=Pt(n,"node");t[0][e]=Object.assign(Object.assign({},r),i);const A=Pt(n,"link");return t[1][e]=Object.assign(Object.assign({},r),A),t},[{},{}]);return[Q({},vF,{data:b,encode:Object.assign(Object.assign({},p),{color:y}),scale:r,style:Pt(i,"node"),viewStyle:d,labels:[Object.assign(Object.assign(Object.assign({},wF),{text:B,dx:t=>t.x[0]<.5?x:-x}),C),...o],tooltip:O,animate:Lp(s,"node"),axis:!1,interaction:c,state:F}),Q({},bF,{data:v,encode:g,labels:a,style:Object.assign({fill:g.color?void 0:"#aaa",lineWidth:0},Pt(i,"link")),tooltip:k,animate:Lp(s,"link"),interaction:c,state:M})]};function xF(t,e){return e.value-t.value}function CF(t,e){return e.frequency-t.frequency}function EF(t,e){return`${t.id}`.localeCompare(`${e.id}`)}function OF(t,e){return`${t.name}`.localeCompare(`${e.name}`)}BF.props={};const kF={y:0,thickness:.05,weight:!1,marginRatio:.1,id:t=>t.id,source:t=>t.source,target:t=>t.target,sourceWeight:t=>t.value||1,targetWeight:t=>t.value||1,sortBy:null};const FF=t=>e=>function(t){const{y:e,thickness:n,weight:r,marginRatio:i,id:A,source:a,target:s,sourceWeight:l,targetWeight:c,sortBy:u}=Object.assign(Object.assign({},kF),t);return function(t){const d=t.nodes.map(t=>Object.assign({},t)),f=t.edges.map(t=>Object.assign({},t));return function(t,e){e.forEach(t=>{t.source=a(t),t.target=s(t),t.sourceWeight=l(t),t.targetWeight=c(t)});const n=et(e,t=>t.source),r=et(e,t=>t.target);t.forEach(t=>{t.id=A(t);const e=n.has(t.id)?n.get(t.id):[],i=r.has(t.id)?r.get(t.id):[];t.frequency=e.length+i.length,t.value=rB(e,t=>t.sourceWeight)+rB(i,t=>t.targetWeight)})}(d,f),function(t){const e="function"==typeof u?u:o[u];e&&t.sort(e)}(d),function(t,A){const o=t.length;if(!o)throw _t("Invalid nodes: it's empty!");if(!r){const n=1/o;return t.forEach((t,r)=>{t.x=(r+.5)*n,t.y=e}),{nodes:t,edges:A}}const a=i/(2*o),s=t.reduce((t,e)=>t+e.value,0);t.reduce((t,r)=>{r.weight=r.value/s,r.width=r.weight*(1-i),r.height=n;const A=a+t,o=A+r.width,l=e-n/2,c=l+n;return r.x=[A,o,o,A],r.y=[l,l,c,c],t+r.width+2*a},0)}(d,f),function(t,n){const i=new Map(t.map(t=>[t.id,t]));if(!r)return n.forEach(t=>{const e=a(t),n=s(t),r=i.get(e),A=i.get(n);r&&A&&(t.x=[r.x,A.x],t.y=[r.y,A.y])}),{nodes:t,edges:n};n.forEach(t=>{t.x=[0,0,0,0],t.y=[e,e,e,e]});const A=et(n,t=>t.source),o=et(n,t=>t.target);t.forEach(t=>{const{width:e,x:n,value:r,id:i}=t,a=A.get(i)||[],s=o.get(i)||[];let l=0;a.map(t=>{const i=t.sourceWeight/r*e;t.x[0]=n[0]+l,t.x[1]=n[0]+l+i,l+=i}),s.forEach(t=>{const i=t.targetWeight/r*e;t.x[3]=n[0]+l,t.x[2]=n[0]+l+i,l+=i})})}(d,f),{nodes:d,edges:f}}}(t)(e);FF.props={};var QF=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n};const MF={y:0,thickness:.05,marginRatio:.1,id:t=>t.key,source:t=>t.source,target:t=>t.target,sourceWeight:t=>t.value||1,targetWeight:t=>t.value||1,sortBy:null},UF={type:"polygon",axis:!1,legend:!1,encode:{shape:"polygon",x:"x",y:"y"},scale:{x:{type:"identity"},y:{type:"identity"}},style:{opacity:1,fillOpacity:1,lineWidth:1}},SF={type:"polygon",axis:!1,legend:!1,encode:{shape:"ribbon",x:"x",y:"y"},style:{opacity:.5,lineWidth:1}},_F={position:"outside",fontSize:10},IF=(t,e)=>{const{data:n,encode:r={},scale:i,style:A={},layout:o={},nodeLabels:a=[],linkLabels:s=[],animate:l={},tooltip:c={}}=t,{nodes:u,links:d}=yn(n,r),f=Pt(r,"node"),h=Pt(r,"link"),{key:p=t=>t.key,color:g=p}=f,{linkEncodeColor:m=t=>t.source}=h,{nodeWidthRatio:y=MF.thickness,nodePaddingRatio:v=MF.marginRatio}=o,b=QF(o,["nodeWidthRatio","nodePaddingRatio"]),{nodes:w,edges:B}=FF(Object.assign(Object.assign(Object.assign(Object.assign({},MF),{id:gn(p),thickness:y,marginRatio:v}),b),{weight:!0}))({nodes:u,edges:d}),x=Pt(A,"label"),{text:C=p}=x,E=QF(x,["text"]),O=_p(c,"node",{title:"",items:[t=>({name:t.key,value:t.value})]},!0),k=_p(c,"link",{title:"",items:[t=>({name:`${t.source} -> ${t.target}`,value:t.value})]}),{height:F,width:M}=e,U=Math.min(F,M);return[Q({},SF,{data:B,encode:Object.assign(Object.assign({},h),{color:m}),labels:s,style:Object.assign({fill:m?void 0:"#aaa"},Pt(A,"link")),tooltip:k,animate:Lp(l,"link")}),Q({},UF,{data:w,encode:Object.assign(Object.assign({},f),{color:g}),scale:i,style:Pt(A,"node"),coordinate:{type:"polar",outerRadius:(U-20)/U,startAngle:2*-Math.PI,endAngle:0},labels:[Object.assign(Object.assign(Object.assign({},_F),{text:C}),E),...a],tooltip:O,animate:Lp(l,"node"),axis:!1})]};IF.props={};const TF={fontSize:10,text:t=>re(t.path),position:"inside",fill:"#000",textOverflow:"clip",wordWrap:!0,maxLines:1,wordWrapWidth:t=>t.x1-t.x0,isTreemapLabel:!0},LF={title:t=>{var e,n;return null===(n=null===(e=t.path)||void 0===e?void 0:e.join)||void 0===n?void 0:n.call(e,".")},items:[{field:"value"}]},PF={title:t=>re(t.path),items:[{field:"value"}]},jF=(t,e)=>{const{width:n,height:r,options:i}=e,{data:A,encode:o={},scale:a,style:s={},layout:l={},labels:c=[],tooltip:u={}}=t,d=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n}(t,["data","encode","scale","style","layout","labels","tooltip"]),f=Fl(i,["interaction","treemapDrillDown"])||Fl(i,["marks",0,"interaction","treemapDrillDown"]),h=Q({},((t,e)=>({tile:"treemapSquarify",ratio:.5*(1+Math.sqrt(5)),size:[t,e],round:!1,ignoreParentValue:!0,padding:0,paddingInner:0,paddingOuter:0,paddingTop:0,paddingRight:0,paddingBottom:0,paddingLeft:0,sort:(t,e)=>e.value-t.value,layer:0}))(n,r),l,{layer:f?t=>1===t.depth:l.layer}),[p,g]=Db(A,h,o),m=Pt(s,"label");return Q({},((t,e)=>({type:"rect",axis:!1,encode:{x:"x",y:"y",key:"id",color:t=>t.path[1]},scale:{x:{domain:[0,t],range:[0,1]},y:{domain:[0,e],range:[0,1]}},style:{stroke:"#fff"},state:{active:{opacity:.6},inactive:{opacity:1}}}))(n,r),Object.assign(Object.assign({data:p,scale:a,style:s,labels:[Object.assign(Object.assign(Object.assign({},TF),m),f&&{cursor:"pointer"}),...c]},d),{encode:o,tooltip:Ip(u,LF),axis:!1}),f?{interaction:Object.assign(Object.assign({},d.interaction),{treemapDrillDown:f?Object.assign(Object.assign({},f),{originData:g,layout:h}):void 0}),encode:Object.assign({color:t=>re(t.path)},o),tooltip:Ip(u,PF)}:{})};jF.props={};var HF=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n};function NF(t,e){return Oo(t,t=>e[t])}function DF(t,e){return ko(t,t=>e[t])}function RF(t,e){const n=2.5*KF(t,e)-1.5*GF(t,e);return Oo(t,t=>e[t]>=n?e[t]:NaN)}function KF(t,e){return tB(t,.25,t=>e[t])}function zF(t,e){return tB(t,.5,t=>e[t])}function GF(t,e){return tB(t,.75,t=>e[t])}function VF(t,e){const n=2.5*GF(t,e)-1.5*KF(t,e);return ko(t,t=>e[t]<=n?e[t]:NaN)}function WF(){return(t,e)=>{const{encode:n}=e,{y:r,x:i}=n,{value:A}=r,{value:o}=i,a=Array.from(et(t,t=>o[+t]).values()),s=a.flatMap(t=>{const e=RF(t,A),n=VF(t,A);return t.filter(t=>A[t]<e||A[t]>n)});return[s,e]}}const XF=t=>{const{data:e,encode:n,style:r={},tooltip:i={},animate:A}=t,o=HF(t,["data","encode","style","tooltip","transform","animate"]),{point:a=!0}=r,s=HF(r,["point"]),{y:l}=n,c={y:l,y1:l,y2:l,y3:l,y4:l},u={y1:KF,y2:zF,y3:GF},d=_p(i,"box",{items:[{channel:"y",name:"min"},{channel:"y1",name:"q1"},{channel:"y2",name:"q2"},{channel:"y3",name:"q3"},{channel:"y4",name:"max"}]},!0),f=_p(i,"point",{title:{channel:"x"},items:[{name:"outlier",channel:"y"}]});if(!a)return Object.assign({type:"box",data:e,transform:[Object.assign(Object.assign({type:"groupX",y:NF},u),{y4:DF})],encode:Object.assign(Object.assign({},n),c),style:s,tooltip:d},o);const h=Pt(s,"box"),p=Pt(s,"point");return[Object.assign({type:"box",data:e,transform:[Object.assign(Object.assign({type:"groupX",y:RF},u),{y4:VF})],encode:Object.assign(Object.assign({},n),c),style:h,tooltip:d,animate:Lp(A,"box")},o),{type:"point",data:e,transform:[{type:WF}],encode:n,style:Object.assign({},p),tooltip:f,animate:Lp(A,"point")}]};XF.props={};const YF=(t,e)=>Math.sqrt(Math.pow(t[0]-e[0],2)+Math.pow(t[1]-e[1],2))/2,$F=(t,e)=>{if(!e)return;const{coordinate:n}=e;if(!(null==n?void 0:n.getCenter))return;const r=n.getCenter();return(n,i,A)=>{const{document:o}=e.canvas,{color:a,index:s}=i,l=o.createElement("g",{}),c=YF(n[0],n[1]),u=2*YF(n[0],r),d=((t,e,n)=>{const r=Math.atan2(t[1]-n[1],t[0]-n[0]);let i=Math.atan2(e[1]-n[1],e[0]-n[0])-r;return i<0&&(i+=2*Math.PI),i})(n[3],n[0],r)>Math.PI,f=o.createElement("path",{style:Object.assign(Object.assign(Object.assign({d:[["M",...n[0]],["A",c,c,0,1,0,...n[1]],["A",u+2*c,u+2*c,0,d?1:0,0,...n[2]],["A",c,c,0,1,0===s?0:1,...n[3]],["A",u,u,0,d?1:0,1,...n[0]],["Z"]]},A),Nc(t,["shape","last","first"])),{fill:a||A.color})});return l.appendChild(f),l}};var qF=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n};const ZF={coordinate:{type:"radial",innerRadius:.9,outerRadius:1,startAngle:-1.1*Math.PI,endAngle:.1*Math.PI},axis:{x:!1},legend:!1,tooltip:!1,encode:{x:"x",y:"y",color:"color"},scale:{color:{range:["#30BF78","#D0D0D0"]}}},JF={style:{shape:(t,e)=>{const{radius:n}=t,r=qF(t,["shape","radius"]),i=Pt(r,"pointer"),A=Pt(r,"pin"),{shape:o}=i,a=qF(i,["shape"]),{shape:s}=A,l=qF(A,["shape"]),{coordinate:c,theme:u}=e;return(t,e)=>{const i=t.map(t=>c.invert(t)),[A,d,f]=function(t){const{transformations:e}=t.getOptions(),[,...n]=e.find(t=>"polar"===t[0]);return n}(c),h=c.clone(),{color:p}=e,m=g({startAngle:A,endAngle:d,innerRadius:f,outerRadius:n});m.push(["cartesian"]),h.update({transformations:m});const y=i.map(t=>h.map(t)),[v,b]=je(y),[w,B]=c.getCenter(),x=Object.assign(Object.assign({x1:v,y1:b,x2:w,y2:B,stroke:p},a),r),C=Object.assign(Object.assign({cx:w,cy:B,stroke:p},l),r),E=zt(new $.YJ);return Rt(o)||("function"==typeof o?E.append(()=>o(y,e,h,u)):E.append("line").call(Ue,x).node()),Rt(s)||("function"==typeof s?E.append(()=>s(y,e,h,u)):E.append("circle").call(Ue,C).node()),E.node()}},lineWidth:4,pointerLineCap:"round",pinR:10,pinFill:"#fff",radius:.6}},tQ={type:"text",style:{x:"50%",y:"60%",textAlign:"center",textBaseline:"middle",fontSize:20,fontWeight:800,fill:"#888"},tooltip:!1};function eQ(t,{target:e,total:n}){const{content:r}=t;return r?r(e,n):e.toString()}const nQ=t=>{const{data:e={},scale:n={},style:r={},animate:i={},transform:A=[]}=t,o=qF(t,["data","scale","style","animate","transform"]),{targetData:a,totalData:s,target:l,total:c,scale:u}=function(t,e){const{name:n="score",target:r,total:i,percent:A,thresholds:o=[]}=function(t){if((0,bt.A)(t)){const e=Math.max(0,Math.min(t,1));return{percent:e,target:e,total:1}}return t}(t),a=A||r,s=A?1:i,l=Object.assign({y:{domain:[0,s]}},e);return o.length?{targetData:[{x:n,y:a,color:"target"}],totalData:o.map((t,e)=>({x:n,y:e>=1?t-o[e-1]:t,color:e})),target:a,total:s,scale:l}:{targetData:[{x:n,y:a,color:"target"}],totalData:[{x:n,y:a,color:"target"},{x:n,y:s-a,color:"total"}],target:a,total:s,scale:l}}(e,n),d=Pt(r,"text"),{tooltip:f}=d,h=qF(d,["tooltip"]),p=(g=["pointer","pin"],Object.fromEntries(Object.entries(r).filter(([t])=>g.find(e=>t.startsWith(e)))));var g;const m=Pt(r,"arc");return[Q({},ZF,Object.assign({type:"interval",transform:[{type:"stackY"}],data:s,scale:u,style:"round"===m.shape?Object.assign(Object.assign({},m),{shape:$F}):m,animate:"object"==typeof i?Pt(i,"arc"):i},o)),Q({},ZF,JF,Object.assign({type:"point",data:a,scale:u,style:p,animate:"object"==typeof i?Pt(i,"indicator"):i},o)),Q({},tQ,{style:Object.assign({text:eQ(h,{target:l,total:c})},h),tooltip:f,animate:"object"==typeof i?Pt(i,"text"):i})]};function rQ(t,e,n){return t+(e-t)*n}function iQ(t,e,n,r){return 0===e?[[t+.5*n/Math.PI/2,r/2],[t+.5*n/Math.PI,r],[t+n/4,r]]:1===e?[[t+.5*n/Math.PI/2*(Math.PI-2),r],[t+.5*n/Math.PI/2*(Math.PI-1),r/2],[t+n/4,0]]:2===e?[[t+.5*n/Math.PI/2,-r/2],[t+.5*n/Math.PI,-r],[t+n/4,-r]]:[[t+.5*n/Math.PI/2*(Math.PI-2),-r],[t+.5*n/Math.PI/2*(Math.PI-1),-r/2],[t+n/4,0]]}function AQ(t,e,n,r,i,A,o){const a=4*Math.ceil(2*t/n*4),s=[];let l=r;for(;l<2*-Math.PI;)l+=2*Math.PI;for(;l>0;)l-=2*Math.PI;l=l/Math.PI/2*n;const c=A-t+l-2*t;s.push(["M",c,e]);let u=0;for(let t=0;t<a;++t){const r=iQ(t*n/4,t%4,n,i);s.push(["C",r[0][0]+c,-r[0][1]+e,r[1][0]+c,-r[1][1]+e,r[2][0]+c,-r[2][1]+e]),t===a-1&&(u=r[2][0])}return s.push(["L",u+c,o+t]),s.push(["L",c,o+t]),s.push(["Z"]),s}nQ.props={};const oQ={pin:function(t,e,n){const r=4*n/3,i=Math.max(r,2*n),A=r/2,o=t,a=A+e-i/2,s=Math.asin(A/(.85*(i-A))),l=Math.sin(s)*A,c=Math.cos(s)*A,u=o-c,d=a+l,f=t,h=a+A/Math.sin(s);return`\n M ${u} ${d}\n A ${A} ${A} 0 1 1 ${u+2*c} ${d}\n Q ${f} ${h} ${t} ${e+i/2}\n Q ${f} ${h} ${u} ${d}\n Z \n `},rect:function(t,e,n){const r=.618*n;return`\n M ${t-r} ${e-n}\n L ${t+r} ${e-n}\n L ${t+r} ${e+n}\n L ${t-r} ${e+n}\n Z\n `},circle:function(t,e,n){return`\n M ${t} ${e-n} \n a ${n} ${n} 0 1 0 0 ${2*n}\n a ${n} ${n} 0 1 0 0 ${2*-n}\n Z\n `},diamond:function(t,e,n){return`\n M ${t} ${e-n}\n L ${t+n} ${e}\n L ${t} ${e+n}\n L ${t-n} ${e}\n Z\n `},triangle:function(t,e,n){return`\n M ${t} ${e-n}\n L ${t+n} ${e+n}\n L ${t-n} ${e+n}\n Z\n `}};var aQ=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n};const sQ=(t,e)=>{if(!e)return;const{coordinate:n}=e,{liquidOptions:r,styleOptions:i}=t,{liquidShape:A,percent:o}=r,{background:a,outline:s={},wave:l={}}=i,c=aQ(i,["background","outline","wave"]),{border:u=2,distance:d=0}=s,f=aQ(s,["border","distance"]),{length:h=192,count:p=3}=l;return(t,r,i)=>{const{document:s}=e.canvas,{color:l,fillOpacity:g}=i,m=Object.assign(Object.assign({fill:l},i),c),y=s.createElement("g",{}),[v,b]=n.getCenter(),w=n.getSize(),B=Math.min(...w)/2,x=(0,mi.A)(A)?A:((t="circle")=>oQ[t]||oQ.circle)(A),C=x(v,b,B,...w),E=x(v,b,B+u/2,...w);if(Object.keys(a).length){const t=s.createElement("path",{style:Object.assign({d:C,fill:"#fff"},a)});y.appendChild(t)}if(o>0){const t=s.createElement("path",{style:{d:E}});y.appendChild(t),y.style.clipPath=t,function(t,e,n,r,i,A,o,a,s,l,c){const{fill:u,fillOpacity:d,opacity:f}=i;for(let i=0;i<r;i++){const l=r<=1?1:i/(r-1),h=AQ(a,o+a*n,s,0,a/40,t,e),p=c.createElement("path",{style:{d:h,fill:u,opacity:rQ(.2,.9,l)*Number(f||d)}});A.appendChild(p);try{0,p.animate([{transform:"translate(0, 0)"},{transform:`translate(${2*s}, 0)`}],{duration:2*rQ(2500,5e3,l),iterations:1/0})}catch(t){console.warn("off-screen group animate error!")}}}(v,b,1-o,p,m,y,t.getBBox().y,2*B,h,0,s)}const O=s.createElement("path",{style:{d:C,fill:"transparent",lineWidth:u+2*d,stroke:"#fff"}}),k=s.createElement("path",{style:Object.assign(Object.assign(Object.assign({d:C,stroke:l,strokeOpacity:g,lineWidth:u},m),f),{fill:"transparent"})});return y.appendChild(O),y.appendChild(k),y}};sQ.props={};const lQ={axis:{x:!1,y:!1},legend:!1,tooltip:!1,encode:{x:"type",y:"percent"},scale:{y:{domain:[0,1]}},style:{shape:sQ},animate:{enter:{type:"fadeIn"}}},cQ={type:"text",style:{x:"50%",y:"50%",textAlign:"center",textBaseline:"middle",fontSize:20,fontWeight:800,fill:"#888"},animate:{enter:{type:"fadeIn"}}},uQ=t=>{const{data:e={},style:n={},animate:r}=t,i=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n}(t,["data","style","animate"]),A=Math.max(0,(0,bt.A)(e)?e:null==e?void 0:e.percent),o=[{percent:A,type:"liquid"}],a=Object.assign(Object.assign({},Pt(n,"text")),Pt(n,"content")),s=Pt(n,"outline"),l=Pt(n,"wave"),c=Pt(n,"background");return[Q({},lQ,Object.assign({type:"interval",data:o,style:{liquidOptions:{percent:A,liquidShape:null==n?void 0:n.shape},styleOptions:Object.assign(Object.assign({},n),{outline:s,wave:l,background:c})},animate:r},i)),Q({},cQ,{style:Object.assign({text:`${ee(100*A)} %`},a),animate:r})]};function dQ(t){const e=new Array(t);for(let n=0;n<t;++n)e[n]=0;return e}function fQ(t,e){return dQ(t).map(()=>dQ(e))}function hQ(t,e){let n=0;for(let r=0;r<t.length;++r)n+=t[r]*e[r];return n}function pQ(t){return Math.sqrt(hQ(t,t))}function gQ(t,e,n){for(let r=0;r<e.length;++r)t[r]=e[r]*n}function mQ(t,e,n,r,i){for(let A=0;A<t.length;++A)t[A]=e*n[A]+r*i[A]}function yQ(t,e,n,r,i,A,o){const a=n.fx,s=hQ(n.fxprime,e);let l=a,c=a,u=s,d=0;function f(c,d,f){for(let h=0;h<16;++h)if(mQ(r.x,1,n.x,i=(c+d)/2,e),l=r.fx=t(r.x,r.fxprime),u=hQ(r.fxprime,e),l>a+A*i*s||l>=f)d=i;else{if(Math.abs(u)<=-o*s)return i;u*(d-c)>=0&&(d=c),c=i,f=l}return 0}i=i||1,A=A||1e-6,o=o||.1;for(let h=0;h<10;++h){if(mQ(r.x,1,n.x,i,e),l=r.fx=t(r.x,r.fxprime),u=hQ(r.fxprime,e),l>a+A*i*s||h&&l>=c)return f(d,i,c);if(Math.abs(u)<=-o*s)return i;if(u>=0)return f(i,d,l);c=l,d=i,i*=2}return i}function vQ(t,e,n){let r={x:e.slice(),fx:0,fxprime:e.slice()},i={x:e.slice(),fx:0,fxprime:e.slice()};const A=e.slice();let o,a=1;const s=(n=n||{}).maxIterations||20*e.length;r.fx=t(r.x,r.fxprime);const l=r.fxprime.slice();gQ(l,r.fxprime,-1);for(let e=0;e<s;++e){if(a=yQ(t,l,r,i,a),n.history&&n.history.push({x:r.x.slice(),fx:r.fx,fxprime:r.fxprime.slice(),alpha:a}),a){mQ(A,1,i.fxprime,-1,r.fxprime);const t=hQ(r.fxprime,r.fxprime);mQ(l,Math.max(0,hQ(A,i.fxprime)/t),l,-1,i.fxprime),o=r,r=i,i=o}else gQ(l,r.fxprime,-1);if(pQ(r.fxprime)<=1e-5)break}return n.history&&n.history.push({x:r.x.slice(),fx:r.fx,fxprime:r.fxprime.slice(),alpha:a}),r}uQ.props={};function bQ(t,e){const n=function(t){const e=[];for(let n=0;n<t.length;++n)for(let r=n+1;r<t.length;++r){const i=CQ(t[n],t[r]);for(let t=0;t<i.length;++t){const A=i[t];A.parentIndex=[n,r],e.push(A)}}return e}(t),r=n.filter(function(e){return function(t,e){for(let n=0;n<e.length;++n)if(BQ(t,e[n])>e[n].radius+1e-10)return!1;return!0}(e,t)});let i,A=0,o=0;const a=[];if(r.length>1){const e=function(t){const e={x:0,y:0};for(let n=0;n<t.length;++n)e.x+=t[n].x,e.y+=t[n].y;return e.x/=t.length,e.y/=t.length,e}(r);for(i=0;i<r.length;++i){const t=r[i];t.angle=Math.atan2(t.x-e.x,t.y-e.y)}r.sort(function(t,e){return e.angle-t.angle});let n=r[r.length-1];for(i=0;i<r.length;++i){const e=r[i];o+=(n.x+e.x)*(e.y-n.y);const s={x:(e.x+n.x)/2,y:(e.y+n.y)/2};let l=null;for(let r=0;r<e.parentIndex.length;++r)if(n.parentIndex.indexOf(e.parentIndex[r])>-1){const i=t[e.parentIndex[r]],A=Math.atan2(e.x-i.x,e.y-i.y),o=Math.atan2(n.x-i.x,n.y-i.y);let a=o-A;a<0&&(a+=2*Math.PI);const c=o-a/2;let u=BQ(s,{x:i.x+i.radius*Math.sin(c),y:i.y+i.radius*Math.cos(c)});u>2*i.radius&&(u=2*i.radius),(null===l||l.width>u)&&(l={circle:i,width:u,p1:e,p2:n})}null!==l&&(a.push(l),A+=wQ(l.circle.radius,l.width),n=e)}}else{let e=t[0];for(i=1;i<t.length;++i)t[i].radius<e.radius&&(e=t[i]);let n=!1;for(i=0;i<t.length;++i)if(BQ(t[i],e)>Math.abs(e.radius-t[i].radius)){n=!0;break}n?A=o=0:(A=e.radius*e.radius*Math.PI,a.push({circle:e,p1:{x:e.x,y:e.y+e.radius},p2:{x:e.x-1e-10,y:e.y+e.radius},width:2*e.radius}))}return o/=2,e&&(e.area=A+o,e.arcArea=A,e.polygonArea=o,e.arcs=a,e.innerPoints=r,e.intersectionPoints=n),A+o}function wQ(t,e){return t*t*Math.acos(1-e/t)-(t-e)*Math.sqrt(e*(2*t-e))}function BQ(t,e){return Math.sqrt((t.x-e.x)*(t.x-e.x)+(t.y-e.y)*(t.y-e.y))}function xQ(t,e,n){if(n>=t+e)return 0;if(n<=Math.abs(t-e))return Math.PI*Math.min(t,e)*Math.min(t,e);const r=e-(n*n-t*t+e*e)/(2*n);return wQ(t,t-(n*n-e*e+t*t)/(2*n))+wQ(e,r)}function CQ(t,e){const n=BQ(t,e),r=t.radius,i=e.radius;if(n>=r+i||n<=Math.abs(r-i))return[];const A=(r*r-i*i+n*n)/(2*n),o=Math.sqrt(r*r-A*A),a=t.x+A*(e.x-t.x)/n,s=t.y+A*(e.y-t.y)/n,l=o/n*-(e.y-t.y),c=o/n*-(e.x-t.x);return[{x:a+l,y:s-c},{x:a-l,y:s+c}]}function EQ(t,e,n){return Math.min(t,e)*Math.min(t,e)*Math.PI<=n+1e-10?Math.abs(t-e):function(t,e,n,r){const i=(r=r||{}).maxIterations||100,A=r.tolerance||1e-10,o=t(e),a=t(n);let s=n-e;if(o*a>0)throw"Initial bisect points must have opposite signs";if(0===o)return e;if(0===a)return n;for(let n=0;n<i;++n){s/=2;const n=e+s,r=t(n);if(r*o>=0&&(e=n),Math.abs(s)<A||0===r)return n}return e+s}(function(r){return xQ(t,e,r)-n},0,t+e)}function OQ(t,e){let n=function(t,e){const n=e&&e.lossFunction?e.lossFunction:kQ,r={},i={};let A;for(let e=0;e<t.length;++e){const n=t[e];1==n.sets.length&&(A=n.sets[0],r[A]={x:1e10,y:1e10,rowid:Object.keys(r).length,size:n.size,radius:Math.sqrt(n.size/Math.PI)},i[A]=[])}t=t.filter(function(t){return 2==t.sets.length});for(let e=0;e<t.length;++e){const n=t[e];let A=n.hasOwnProperty("weight")?n.weight:1;const o=n.sets[0],a=n.sets[1];n.size+1e-10>=Math.min(r[o].size,r[a].size)&&(A=0),i[o].push({set:a,size:n.size,weight:A}),i[a].push({set:o,size:n.size,weight:A})}const o=[];for(A in i)if(i.hasOwnProperty(A)){let t=0;for(let e=0;e<i[A].length;++e)t+=i[A][e].size*i[A][e].weight;o.push({set:A,size:t})}function a(t,e){return e.size-t.size}o.sort(a);const s={};function l(t){return t.set in s}function c(t,e){r[e].x=t.x,r[e].y=t.y,s[e]=!0}c({x:0,y:0},o[0].set);for(let e=1;e<o.length;++e){const s=o[e].set,u=i[s].filter(l);if(A=r[s],u.sort(a),0===u.length)throw"ERROR: missing pairwise overlap information";const d=[];for(let t=0;t<u.length;++t){const e=r[u[t].set],n=EQ(A.radius,e.radius,u[t].size);d.push({x:e.x+n,y:e.y}),d.push({x:e.x-n,y:e.y}),d.push({y:e.y+n,x:e.x}),d.push({y:e.y-n,x:e.x});for(let i=t+1;i<u.length;++i){const t=r[u[i].set],o=EQ(A.radius,t.radius,u[i].size),a=CQ({x:e.x,y:e.y,radius:n},{x:t.x,y:t.y,radius:o});for(let t=0;t<a.length;++t)d.push(a[t])}}let f=1e50,h=d[0];for(let e=0;e<d.length;++e){r[s].x=d[e].x,r[s].y=d[e].y;const i=n(r,t);i<f&&(f=i,h=d[e])}c(h,s)}return r}(t,e);const r=e.lossFunction||kQ;if(t.length>=8){const i=function(t,e){const n=(e=e||{}).restarts||10,r=[],i={};let A;for(A=0;A<t.length;++A){const e=t[A];1==e.sets.length&&(i[e.sets[0]]=r.length,r.push(e))}const o=function(t,e,n){const r=fQ(e.length,e.length),i=fQ(e.length,e.length);return t.filter(function(t){return 2==t.sets.length}).map(function(t){const A=n[t.sets[0]],o=n[t.sets[1]],a=EQ(Math.sqrt(e[A].size/Math.PI),Math.sqrt(e[o].size/Math.PI),t.size);r[A][o]=r[o][A]=a;let s=0;t.size+1e-10>=Math.min(e[A].size,e[o].size)?s=1:t.size<=1e-10&&(s=-1),i[A][o]=i[o][A]=s}),{distances:r,constraints:i}}(t,r,i);let a=o.distances;const s=o.constraints,l=pQ(a.map(pQ))/a.length;a=a.map(function(t){return t.map(function(t){return t/l})});const c=function(t,e){return function(t,e,n,r){let i,A=0;for(i=0;i<e.length;++i)e[i]=0;for(i=0;i<n.length;++i){const o=t[2*i],a=t[2*i+1];for(let s=i+1;s<n.length;++s){const l=t[2*s],c=t[2*s+1],u=n[i][s],d=r[i][s],f=(l-o)*(l-o)+(c-a)*(c-a),h=Math.sqrt(f),p=f-u*u;d>0&&h<=u||d<0&&h>=u||(A+=2*p*p,e[2*i]+=4*p*(o-l),e[2*i+1]+=4*p*(a-c),e[2*s]+=4*p*(l-o),e[2*s+1]+=4*p*(c-a))}}return A}(t,e,a,s)};let u,d;for(A=0;A<n;++A)d=vQ(c,dQ(2*a.length).map(Math.random),e),(!u||d.fx<u.fx)&&(u=d);const f=u.x,h={};for(A=0;A<r.length;++A){const t=r[A];h[t.sets[0]]={x:f[2*A]*l,y:f[2*A+1]*l,radius:Math.sqrt(t.size/Math.PI)}}if(e.history)for(A=0;A<e.history.length;++A)gQ(e.history[A].x,l);return h}(t,e);r(i,t)+1e-8<r(n,t)&&(n=i)}return n}function kQ(t,e){let n=0;function r(e){return e.map(function(e){return t[e]})}for(let i=0;i<e.length;++i){const A=e[i];let o;if(1!=A.sets.length){if(2==A.sets.length){const e=t[A.sets[0]],n=t[A.sets[1]];o=xQ(e.radius,n.radius,BQ(e,n))}else o=bQ(r(A.sets));n+=(A.hasOwnProperty("weight")?A.weight:1)*(o-A.size)*(o-A.size)}}return n}const FQ=t=>{const{sets:e="sets",size:n="size",as:r=["key","path"],padding:i=0}=t,[A,o]=r;return t=>{const r=t.map(t=>Object.assign(Object.assign({},t),{sets:t[e],size:t[n],[A]:t.sets.join("&")}));r.sort((t,e)=>t.sets.length-e.sets.length);const a=function(t,e){(e=e||{}).maxIterations=e.maxIterations||500;const n=e.initialLayout||OQ,r=e.lossFunction||kQ;t=function(t){t=t.slice();const e=[],n={};let r,i,A,o;for(r=0;r<t.length;++r){const i=t[r];1==i.sets.length?e.push(i.sets[0]):2==i.sets.length&&(A=i.sets[0],o=i.sets[1],n[[A,o]]=!0,n[[o,A]]=!0)}for(e.sort((t,e)=>t>e?1:-1),r=0;r<e.length;++r)for(A=e[r],i=r+1;i<e.length;++i)o=e[i],[A,o]in n||t.push({sets:[A,o],size:0});return t}(t);const i=n(t,e),A=[],o=[];let a;for(a in i)i.hasOwnProperty(a)&&(A.push(i[a].x),A.push(i[a].y),o.push(a));const s=function(t,e,n){const r=(n=n||{}).maxIterations||200*e.length,i=n.nonZeroDelta||1.05,A=n.zeroDelta||.001,o=n.minErrorDelta||1e-6,a=n.minErrorDelta||1e-5,s=void 0!==n.rho?n.rho:1,l=void 0!==n.chi?n.chi:2,c=void 0!==n.psi?n.psi:-.5,u=void 0!==n.sigma?n.sigma:.5;let d;const f=e.length,h=new Array(f+1);h[0]=e,h[0].fx=t(e),h[0].id=0;for(let n=0;n<f;++n){const r=e.slice();r[n]=r[n]?r[n]*i:A,h[n+1]=r,h[n+1].fx=t(r),h[n+1].id=n+1}function p(t){for(let e=0;e<t.length;e++)h[f][e]=t[e];h[f].fx=t.fx}const g=(t,e)=>t.fx-e.fx,m=e.slice(),y=e.slice(),v=e.slice(),b=e.slice();for(let e=0;e<r;++e){if(h.sort(g),n.history){const t=h.map(t=>{const e=t.slice();return e.fx=t.fx,e.id=t.id,e});t.sort((t,e)=>t.id-e.id),n.history.push({x:h[0].slice(),fx:h[0].fx,simplex:t})}d=0;for(let t=0;t<f;++t)d=Math.max(d,Math.abs(h[0][t]-h[1][t]));if(Math.abs(h[0].fx-h[f].fx)<o&&d<a)break;for(let t=0;t<f;++t){m[t]=0;for(let e=0;e<f;++e)m[t]+=h[e][t];m[t]/=f}const e=h[f];if(mQ(y,1+s,m,-s,e),y.fx=t(y),y.fx<h[0].fx)mQ(b,1+l,m,-l,e),b.fx=t(b),p(b.fx<y.fx?b:y);else if(y.fx>=h[f-1].fx){let n=!1;if(y.fx>e.fx?(mQ(v,1+c,m,-c,e),v.fx=t(v),v.fx<e.fx?p(v):n=!0):(mQ(v,1-c*s,m,c*s,e),v.fx=t(v),v.fx<y.fx?p(v):n=!0),n){if(u>=1)break;for(let e=1;e<h.length;++e)mQ(h[e],1-u,h[0],u,h[e]),h[e].fx=t(h[e])}}else p(y)}return h.sort(g),{fx:h[0].fx,x:h[0]}}(function(e){const n={};for(let t=0;t<o.length;++t){const r=o[t];n[r]={x:e[2*t],y:e[2*t+1],radius:i[r].radius}}return r(n,t)},A,e),l=s.x;for(let t=0;t<o.length;++t)a=o[t],i[a].x=l[2*t],i[a].y=l[2*t+1];return i}(r);let s;return r.map(t=>{const n=t[e];return Object.assign(Object.assign({},t),{[o]:({width:t,height:e})=>{s=s||function(t,e,n,r){const i=[],A=[];for(const e in t)t.hasOwnProperty(e)&&(A.push(e),i.push(t[e]));e-=2*r,n-=2*r;const o=function(t){const e=function(e){const n=Math.max.apply(null,t.map(function(t){return t[e]+t.radius})),r=Math.min.apply(null,t.map(function(t){return t[e]-t.radius}));return{max:n,min:r}};return{xRange:e("x"),yRange:e("y")}}(i),a=o.xRange,s=o.yRange;if(a.max==a.min||s.max==s.min)return console.log("not scaling solution: zero size detected"),t;const l=Math.min(n/(s.max-s.min),e/(a.max-a.min)),c=(e-(a.max-a.min)*l)/2,u=(n-(s.max-s.min)*l)/2,d={};for(let t=0;t<i.length;++t){const e=i[t];d[A[t]]={radius:l*e.radius,x:r+c+(e.x-a.min)*l,y:r+u+(e.y-s.min)*l}}return d}(a,t,e,i);const r=n.map(t=>s[t]);let A=function(t){const e={};bQ(t,e);const n=e.arcs;if(0===n.length)return"M 0 0";if(1==n.length){const t=n[0].circle;return function(t,e,n){const r=[],i=t-n,A=e;return r.push("M",i,A),r.push("A",n,n,0,1,0,i+2*n,A),r.push("A",n,n,0,1,0,i,A),r.join(" ")}(t.x,t.y,t.radius)}{const t=["\nM",n[0].p2.x,n[0].p2.y];for(let e=0;e<n.length;++e){const r=n[e],i=r.circle.radius;t.push("\nA",i,i,0,r.width>i?1:0,1,r.p1.x,r.p1.y)}return t.join(" ")}}(r);return/[zZ]$/.test(A)||(A+=" Z"),A}})})}};FQ.props={};var QQ=n("./node_modules/.pnpm/@antv+g-canvas@2.2.0/node_modules/@antv/g-canvas/dist/index.esm.js"),MQ=n("./node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/objectSpread2.js"),UQ=n("./node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/classCallCheck.js"),SQ=n("./node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/createClass.js"),_Q=n("./node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/callSuper.js"),IQ=n("./node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/inherits.js"),TQ=n("./node_modules/.pnpm/@antv+g-lite@2.7.0/node_modules/@antv/g-lite/dist/index.esm.js"),LQ=n("./node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js"),PQ=n("./node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js"),jQ=n("./node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/esm/path/util/distance-square-root.js"),HQ=function(){function t(e){(0,UQ.A)(this,t),this.dragndropPluginOptions=e}return(0,SQ.A)(t,[{key:"apply",value:function(e){var n=this,r=e.renderingService,i=e.renderingContext.root.ownerDocument,A=i.defaultView,o=function(t){var e=t.target,r=e===i,o=r&&n.dragndropPluginOptions.isDocumentDraggable?i:e.closest&&e.closest("[draggable=true]");if(o){var a=!1,s=t.timeStamp,l=[t.clientX,t.clientY],c=null,u=[t.clientX,t.clientY],d=function(){var t=(0,PQ.A)((0,LQ.A)().mark(function t(A){var d,f,h,p,g,m;return(0,LQ.A)().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(a){t.next=2;break}if(d=A.timeStamp-s,f=(0,jQ.F)([A.clientX,A.clientY],l),!(d<=n.dragndropPluginOptions.dragstartTimeThreshold||f<=n.dragndropPluginOptions.dragstartDistanceThreshold)){t.next=1;break}return t.abrupt("return");case 1:A.type="dragstart",o.dispatchEvent(A),a=!0;case 2:if(A.type="drag",A.dx=A.clientX-u[0],A.dy=A.clientY-u[1],o.dispatchEvent(A),u=[A.clientX,A.clientY],r){t.next=4;break}return h="pointer"===n.dragndropPluginOptions.overlap?[A.canvasX,A.canvasY]:e.getBounds().center,t.next=3,i.elementsFromPoint(h[0],h[1]);case 3:g=(p=t.sent)[p.indexOf(e)+1],m=(null==g?void 0:g.closest("[droppable=true]"))||(n.dragndropPluginOptions.isDocumentDroppable?i:null),c!==m&&(c&&(A.type="dragleave",A.target=c,c.dispatchEvent(A)),m&&(A.type="dragenter",A.target=m,m.dispatchEvent(A)),(c=m)&&(A.type="dragover",A.target=c,c.dispatchEvent(A)));case 4:case"end":return t.stop()}},t)}));return function(e){return t.apply(this,arguments)}}();A.addEventListener("pointermove",d);var f=function(t){if(a){t.detail={preventClick:!0};var e=t.clone();c&&(e.type="drop",e.target=c,c.dispatchEvent(e)),e.type="dragend",o.dispatchEvent(e),a=!1}A.removeEventListener("pointermove",d)};e.addEventListener("pointerup",f,{once:!0}),e.addEventListener("pointerupoutside",f,{once:!0})}};r.hooks.init.tap(t.tag,function(){A.addEventListener("pointerdown",o)}),r.hooks.destroy.tap(t.tag,function(){A.removeEventListener("pointerdown",o)})}}])}();HQ.tag="Dragndrop";var NQ=function(t){function e(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,UQ.A)(this,e),(t=(0,_Q.A)(this,e)).name="dragndrop",t.options=n,t}return(0,IQ.A)(e,t),(0,SQ.A)(e,[{key:"init",value:function(){this.addRenderingPlugin(new HQ((0,MQ.A)({overlap:"pointer",isDocumentDraggable:!1,isDocumentDroppable:!1,dragstartDistanceThreshold:0,dragstartTimeThreshold:0},this.options)))}},{key:"destroy",value:function(){this.removeAllRenderingPlugins()}},{key:"setOptions",value:function(t){Object.assign(this.plugins[0].dragndropPluginOptions,t)}}])}(TQ.V1),DQ=n("./node_modules/.pnpm/@antv+event-emitter@0.1.3/node_modules/@antv/event-emitter/esm/index.js");const RQ={abs:Math.abs,ceil:Math.ceil,floor:Math.floor,max:Math.max,min:Math.min,round:Math.round,sqrt:Math.sqrt,pow:Math.pow};class KQ extends Error{constructor(t,e,n){super(t),this.position=e,this.token=n,this.name="ExpressionError"}}var zQ;!function(t){t[t.STRING=0]="STRING",t[t.NUMBER=1]="NUMBER",t[t.BOOLEAN=2]="BOOLEAN",t[t.NULL=3]="NULL",t[t.IDENTIFIER=4]="IDENTIFIER",t[t.OPERATOR=5]="OPERATOR",t[t.FUNCTION=6]="FUNCTION",t[t.DOT=7]="DOT",t[t.BRACKET_LEFT=8]="BRACKET_LEFT",t[t.BRACKET_RIGHT=9]="BRACKET_RIGHT",t[t.PAREN_LEFT=10]="PAREN_LEFT",t[t.PAREN_RIGHT=11]="PAREN_RIGHT",t[t.COMMA=12]="COMMA",t[t.QUESTION=13]="QUESTION",t[t.COLON=14]="COLON",t[t.DOLLAR=15]="DOLLAR"}(zQ||(zQ={}));const GQ=new Set([32,9,10,13]),VQ=new Set([43,45,42,47,37,33,38,124,61,60,62]),WQ=new Map([["true",zQ.BOOLEAN],["false",zQ.BOOLEAN],["null",zQ.NULL]]),XQ=new Map([["===",!0],["!==",!0],["<=",!0],[">=",!0],["&&",!0],["||",!0],["+",!0],["-",!0],["*",!0],["/",!0],["%",!0],["!",!0],["<",!0],[">",!0]]),YQ=new Map([[46,zQ.DOT],[91,zQ.BRACKET_LEFT],[93,zQ.BRACKET_RIGHT],[40,zQ.PAREN_LEFT],[41,zQ.PAREN_RIGHT],[44,zQ.COMMA],[63,zQ.QUESTION],[58,zQ.COLON],[36,zQ.DOLLAR]]),$Q=new Map;for(const[t,e]of YQ.entries())$Q.set(t,{type:e,value:String.fromCharCode(t)});function qQ(t){return t>=48&&t<=57}function ZQ(t){return t>=97&&t<=122||t>=65&&t<=90||95===t}function JQ(t){return ZQ(t)||qQ(t)}function tM(t){return VQ.has(t)}var eM;!function(t){t[t.Program=0]="Program",t[t.Literal=1]="Literal",t[t.Identifier=2]="Identifier",t[t.MemberExpression=3]="MemberExpression",t[t.CallExpression=4]="CallExpression",t[t.BinaryExpression=5]="BinaryExpression",t[t.UnaryExpression=6]="UnaryExpression",t[t.ConditionalExpression=7]="ConditionalExpression"}(eM||(eM={}));const nM=new Map([["||",2],["&&",3],["===",4],["!==",4],[">",5],[">=",5],["<",5],["<=",5],["+",6],["-",6],["*",7],["/",7],["%",7],["!",8]]),rM={type:eM.Literal,value:null},iM={type:eM.Literal,value:!0},AM={type:eM.Literal,value:!1},oM=t=>{let e=0;const n=t.length,r=()=>e>=n?null:t[e],i=()=>t[e++],A=t=>{const e=r();return null!==e&&e.type===t},o=t=>t.type===zQ.OPERATOR?nM.get(t.value)||-1:t.type===zQ.DOT||t.type===zQ.BRACKET_LEFT?9:t.type===zQ.QUESTION?1:-1,a=t=>{let n,o;if(i().type===zQ.DOT){if(!A(zQ.IDENTIFIER)){const t=r();throw new KQ("Expected property name",e,t?t.value:"<end of input>")}const t=i();n={type:eM.Identifier,name:t.value},o=!1}else{if(n=l(0),!A(zQ.BRACKET_RIGHT)){const t=r();throw new KQ("Expected closing bracket",e,t?t.value:"<end of input>")}i(),o=!0}return{type:eM.MemberExpression,object:t,property:n,computed:o}},s=()=>{const t=r();if(!t)throw new KQ("Unexpected end of input",e,"<end of input>");if(t.type===zQ.OPERATOR&&("!"===t.value||"-"===t.value)){i();const e=s();return{type:eM.UnaryExpression,operator:t.value,argument:e,prefix:!0}}switch(t.type){case zQ.NUMBER:return i(),{type:eM.Literal,value:Number(t.value)};case zQ.STRING:return i(),{type:eM.Literal,value:t.value};case zQ.BOOLEAN:return i(),"true"===t.value?iM:AM;case zQ.NULL:return i(),rM;case zQ.IDENTIFIER:return i(),{type:eM.Identifier,name:t.value};case zQ.FUNCTION:return(()=>{const t=i(),n=[];if(!A(zQ.PAREN_LEFT)){const t=r();throw new KQ("Expected opening parenthesis after function name",e,t?t.value:"<end of input>")}for(i();;){if(A(zQ.PAREN_RIGHT)){i();break}if(!r()){const t=r();throw new KQ("Expected closing parenthesis",e,t?t.value:"<end of input>")}if(n.length>0){if(!A(zQ.COMMA)){const t=r();throw new KQ("Expected comma between function arguments",e,t?t.value:"<end of input>")}i()}const t=l(0);n.push(t)}return{type:eM.CallExpression,callee:{type:eM.Identifier,name:t.value},arguments:n}})();case zQ.PAREN_LEFT:{i();const t=l(0);if(!A(zQ.PAREN_RIGHT)){const t=r();throw new KQ("Expected closing parenthesis",e,t?t.value:"<end of input>")}return i(),t}default:throw new KQ(`Unexpected token: ${t.type}`,e,t.value)}},l=(c=0)=>{let u=s();for(;e<n;){const n=t[e],s=o(n);if(s<=c)break;if(n.type!==zQ.QUESTION)if(n.type!==zQ.OPERATOR){if(n.type!==zQ.DOT&&n.type!==zQ.BRACKET_LEFT)break;u=a(u)}else{i();const t=l(s);u={type:eM.BinaryExpression,operator:n.value,left:u,right:t}}else{i();const t=l(0);if(!A(zQ.COLON)){const t=r();throw new KQ("Expected : in conditional expression",e,t?t.value:"<end of input>")}i();const n=l(0);u={type:eM.ConditionalExpression,test:u,consequent:t,alternate:n}}}return u},c=l();return{type:eM.Program,body:c}},aM=(t,e,n)=>{let r=e;n&&(r={...e,context:{...e.context,...n}});const i=t=>{switch(t.type){case eM.Literal:return(t=>t.value)(t);case eM.Identifier:return(t=>{if(!(t.name in r.context))throw new KQ(`Undefined variable: ${t.name}`);return r.context[t.name]})(t);case eM.MemberExpression:return(t=>{const e=i(t.object);if(null==e)throw new KQ("Cannot access property of null or undefined");return e[t.computed?i(t.property):t.property.name]})(t);case eM.CallExpression:return(t=>{const e=r.functions[t.callee.name];if(!e)throw new KQ(`Undefined function: ${t.callee.name}`);return e(...t.arguments.map(t=>i(t)))})(t);case eM.BinaryExpression:return(t=>{if("&&"===t.operator){const e=i(t.left);return e?i(t.right):e}if("||"===t.operator)return i(t.left)||i(t.right);const e=i(t.left),n=i(t.right);switch(t.operator){case"+":return e+n;case"-":return e-n;case"*":return e*n;case"/":return e/n;case"%":return e%n;case"===":return e===n;case"!==":return e!==n;case">":return e>n;case">=":return e>=n;case"<":return e<n;case"<=":return e<=n;default:throw new KQ(`Unknown operator: ${t.operator}`)}})(t);case eM.UnaryExpression:return(t=>{const e=i(t.argument);if(t.prefix)switch(t.operator){case"!":return!e;case"-":if("number"!=typeof e)throw new KQ(`Cannot apply unary - to non-number: ${e}`);return-e;default:throw new KQ(`Unknown operator: ${t.operator}`)}throw new KQ(`Postfix operators are not supported: ${t.operator}`)})(t);case eM.ConditionalExpression:return(t=>{const e=i(t.test);return i(e?t.consequent:t.alternate)})(t);default:throw new KQ(`Evaluation error: Unsupported node type: ${t.type}`)}};return i(t.body)};var sM=function(t){return t};const lM=["style","encode","labels","children"],cM=Qo(t=>{const e=function(t){const e=(t=>{const e=t,n=e.length,r=new Array(Math.ceil(n/3));let i=0,A=0;function o(t){const r=A+1;A++;let i="",o=!1;for(;A<n;){const n=e.charCodeAt(A);if(n===t)return o||(i=e.substring(r,A)),A++,{type:zQ.STRING,value:i};92===n?(o||(i=e.substring(r,A),o=!0),A++,i+=e[A]):o&&(i+=e[A]),A++}throw new KQ(`Unterminated string starting with ${String.fromCharCode(t)}`,A,e.substring(Math.max(0,A-10),A))}function a(){const t=A;for(45===e.charCodeAt(A)&&A++;A<n&&qQ(e.charCodeAt(A));)A++;if(A<n&&46===e.charCodeAt(A))for(A++;A<n&&qQ(e.charCodeAt(A));)A++;const r=e.slice(t,A);return{type:zQ.NUMBER,value:r}}function s(){A++;const t=A;if(A<n&&ZQ(e.charCodeAt(A)))for(A++;A<n&&JQ(e.charCodeAt(A));)A++;const r=e.slice(t,A);return{type:zQ.FUNCTION,value:r}}function l(){const t=A++;for(;A<n&&JQ(e.charCodeAt(A));)A++;const r=e.slice(t,A),i=WQ.get(r);return i?{type:i,value:r}:{type:zQ.IDENTIFIER,value:r}}function c(){if(A+2<n){const t=e.substring(A,A+3);if(XQ.has(t))return A+=3,{type:zQ.OPERATOR,value:t}}if(A+1<n){const t=e.substring(A,A+2);if(XQ.has(t))return A+=2,{type:zQ.OPERATOR,value:t}}const t=e[A];if(XQ.has(t))return A++,{type:zQ.OPERATOR,value:t};throw new KQ(`Unknown operator at position ${A}: ${e.substring(A,A+1)}`,A,e.substring(Math.max(0,A-10),A))}for(;A<n;){const t=e.charCodeAt(A);if(GQ.has(t)){A++;continue}const u=$Q.get(t);if(u)r[i++]=u,A++;else if(34!==t&&39!==t)if(qQ(t)||45===t&&A+1<n&&qQ(e.charCodeAt(A+1)))r[i++]=a();else if(64!==t)if(ZQ(t))r[i++]=l();else{if(!tM(t))throw new KQ(`Unexpected character: ${e[A]}`,A,e.substring(Math.max(0,A-10),A));r[i++]=c()}else r[i++]=s();else r[i++]=o(t)}return i===r.length?r:r.slice(0,i)})(t),n=oM(e),r=((t={},e={})=>({context:t,functions:e}))({},RQ);return(t={})=>aM(n,r,t)}(t);return(...t)=>{const n=Array.from({length:t.length},(t,e)=>String.fromCharCode(97+e)),r=Object.fromEntries(t.map((t,e)=>[n[e],t]));return e(Object.assign(Object.assign({},r),{global:Object.assign({},r)}))}},t=>t,128);function uM(t,e=!0){if(Array.isArray(t))return t.map((n,r)=>uM(t[r],e));if("object"==typeof t&&t)return function(t,e){void 0===e&&(e=sM);var n={};return(0,ji.A)(t)&&!(0,ot.A)(t)&&Object.keys(t).forEach(function(r){n[r]=e(t[r],r)}),n}(t,(t,n)=>e&&lM.includes(n)?uM(t,"children"===n):e?t:uM(t,!1));if("string"==typeof t){const e=t.trim();if(e.startsWith("{")&&e.endsWith("}"))return cM(e.slice(1,-1))}return t}const dM={linear:"linear",identity:"identity",log:"log",pow:"pow",sqrt:"sqrt",sequential:"sequential"},fM={threshold:"threshold",quantize:"quantize",quantile:"quantile"},hM={ordinal:"ordinal",band:"band",point:"point"},pM={constant:"constant"};var gM=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n};function mM(t,e,n,r,i){const[A]=Cg("component",r),{scaleInstances:o,scale:a,bbox:s}=t,l={bbox:s,library:r};return A(gM(t,["scaleInstances","scale","bbox"]))({coordinate:e,library:r,markState:i,scales:o,theme:n,value:l,scale:a})}function yM(t,e){const n=["left","right","bottom","top"],r=nt(t,({type:t,position:e,group:r})=>n.includes(e)?void 0===r?t.startsWith("legend")?`legend-${e}`:Symbol("independent"):"independent"===r?Symbol("independent"):r:Symbol("independent"));return r.flatMap(([,t])=>{if(1===t.length)return t[0];if(void 0!==e){const n=t.filter(t=>void 0!==t.length).map(t=>t.length),r=rB(n);if(r>e)return t.forEach(t=>t.group=Symbol("independent")),t;const i=(e-r)/(t.length-n.length);t.forEach(t=>{void 0===t.length&&(t.length=i)})}const n=ko(t,t=>t.size),r=ko(t,t=>t.order),i=ko(t,t=>t.crossPadding);return{type:"group",size:n,order:r,position:t[0].position,children:t,crossPadding:i}})}function vM(t,e){const n=["shape","size","color","opacity"],r=t.filter(({type:t,name:e})=>"string"==typeof t&&n.includes(e)&&!((t,e)=>"constant"===t&&"size"===e)(t,e)),i=r.filter(({type:t})=>"constant"===t),A=nt(r.filter(({type:t})=>"constant"!==t),t=>t.field?t.field:Symbol("independent")).map(([t,e])=>[t,[...e,...i]]).filter(([,t])=>t.some(t=>"constant"!==t.type)),o=new Map(A);if(0===o.size)return[];const a=t=>t.sort(([t],[e])=>t.localeCompare(e)),s=Array.from(o).map(([,t])=>{const e=function(t){if(1===t.length)return[t];const e=[];for(let n=1;n<=t.length;n++)e.push(...Me(t,n));return e}(t).sort((t,e)=>e.length-t.length),n=e.map(t=>({combination:t,option:t.map(t=>[t.name,bM(t)])}));for(const{option:t,combination:e}of n)if(!t.every(t=>"constant"===t[1])&&t.every(t=>"discrete"===t[1]||"constant"===t[1]))return["legendCategory",e];for(const[t,e]of xs)for(const{option:r,combination:i}of n)if(e.some(t=>Mh(a(t),a(r))))return[t,i];return null}).filter(Tt);return s}function bM(t){const{type:e}=t;return"string"!=typeof e?null:e in dM?"continuous":e in hM?"discrete":e in fM?"distribution":e in pM?"constant":null}function wM(t,e){return t.map(t=>{const{name:n}=t;if(function(t){return Ey(t,"helix").length>0}(e)||Fy(e))return null;if(ky(e)&&(Oy(e)||Qy(e)))return null;if(n.startsWith("x"))return Oy(e)?["axisArc",[t]]:Qy(e)?["axisLinear",[t]]:[ky(e)?"axisY":"axisX",[t]];if(n.startsWith("y"))return Oy(e)?["axisLinear",[t]]:Qy(e)?["axisArc",[t]]:[ky(e)?"axisX":"axisY",[t]];if(n.startsWith("z"))return["axisZ",[t]];if(n.startsWith("position")){if(My(e))return["axisRadar",[t]];if(!Oy(e))return["axisY",[t]]}return null}).filter(Tt)}function BM(t){const e=Ey(t,"polar");if(e.length){const t=e[e.length-1],{startAngle:n,endAngle:r}=l(t);return[n,r]}const n=Ey(t,"radial");if(n.length){const t=n[n.length-1],{startAngle:e,endAngle:r}=p(t);return[e,r]}return[-Math.PI/2,Math.PI/2*3]}function xM(t,e,n,r,i,A,o){const[a]=BM(o),s=[r.position||e,null!=a?a:n];return"string"==typeof t&&t.startsWith("axis")?function(t,e,n,r,i){const{name:A}=n[0];if("axisRadar"===t){const t=r.filter(t=>t.name.startsWith("position")),e=function(t){const e=/position(\d*)/g.exec(t);return e?+e[1]:null}(A);if(null===e)return[null,null];const[n,o]=BM(i);return["center",(o-n)/(My(i)?t.length:t.length-1)*e+n]}if("axisY"===t&&function(t){return Ey(t,"parallel").length>0}(i))return ky(i)?["center","horizontal"]:["center","vertical"];if("axisLinear"===t){const[t]=BM(i);return["center",t]}return"axisArc"===t?"inner"===e[0]?["inner",null]:["outer",null]:Oy(i)||Qy(i)?["center",null]:"axisX"===t&&function(t){return Ey(t,"reflect").length>0}(i)||"axisX"===t&&function(t){return Ey(t,"reflectY").length>0}(i)?["top",null]:e}(t,s,i,A,o):"string"==typeof t&&t.startsWith("legend")&&Oy(o)&&"center"===r.position?["center","vertical"]:s}function CM(t,e,n,r,i,A){const{type:o}=t;if(!["left","right","bottom","top"].includes(r))return;if("string"!=typeof o)return;const a=o;return(a.startsWith("axis")?QM:a.startsWith("group")?EM:a.startsWith("legendContinuous")?MM:"legendCategory"===a?UM:a.startsWith("slider")?FM:"title"===a?kM:a.startsWith("scrollbar")?OM:()=>{})(t,e,n,r,i,A)}function EM(t,e,n,r,i,A){const{children:o}=t,a=ko(o,t=>t.crossPadding);o.forEach(t=>t.crossPadding=a),o.forEach(t=>CM(t,e,n,r,i,A));const s=ko(o,t=>t.size);t.size=s,o.forEach(t=>t.size=s)}function OM(t,e,n,r,i,A){const{trackSize:o=6}=Q({},i.scrollbar,t);t.size=o}function kM(t,e,n,r,i,A){const o=Q({},i.title,t),{title:a,subtitle:s,spacing:l=0}=o,c=gM(o,["title","subtitle","spacing"]);if(a){const e=PM(a,Pt(c,"title"));t.size=e.height}if(s){const e=PM(s,Pt(c,"subtitle"));t.size+=l+e.height}}function FM(t,e,n,r,i,A){const{trackSize:o,handleIconSize:a}=(()=>{const{slider:e}=i;return Q({},e,t)})(),s=Math.max(o,2.4*a);t.size=s}function QM(t,e,n,r,i,A){var o,a;t.transform=t.transform||[{type:"hide"}];const s="left"===r||"right"===r,l=TM(t,r,i),{tickLength:c=0,labelSpacing:u=0,titleSpacing:d=0,labelAutoRotate:f}=l,h=gM(l,["tickLength","labelSpacing","titleSpacing","labelAutoRotate"]),p=SM(t,A),g=_M(h,p);let m=c;if("function"==typeof t.tickLength){const e=((null===(o=p.getTicks)||void 0===o?void 0:o.call(p))||p.getOptions().domain).map((e,n,r)=>t.tickLength(e,n,r));m=Math.max(...e,0)}const y=m+u;if(g&&g.length){const r=ko(g,t=>t.width),i=ko(g,t=>t.height);if(s)t.size=r+y;else{const{tickFilter:A,labelTransform:o}=t;!function(t,e,n,r,i){const A=rB(e,t=>t.width);if(A>n)return!0;const o=t.clone();o.update({range:[0,n]});const a=LM(t,i),s=a.map(t=>o.map(t)+function(t,e){if(!t.getBandWidth)return 0;return t.getBandWidth(e)/2}(o,t)),l=a.map((t,e)=>e),c=-r[0],u=n+r[1],d=(t,e)=>{const{width:n}=e;return[t-n/2,t+n/2]};for(let t=0;t<l.length;t++){const n=s[t],[r,i]=d(n,e[t]);if(r<c||i>u)return!0;const A=s[t+1];if(A){const[n]=d(A,e[t+1]);if(i>n)return!0}}return!1}(p,g,e,n,A)||o||!1===f||null===f?(t.labelTransform=null!==(a=t.labelTransform)&&void 0!==a?a:"rotate(0)",t.size=i+y):(t.labelTransform="rotate(90)",t.size=r+y)}}else t.size=m;const v=IM(h);v&&(t.size+=s?d+v.width:d+v.height)}function MM(t,e,n,r,i,A){const o=(()=>{const{legendContinuous:e}=i;return Q({},e,t)})(),{labelSpacing:a=0,titleSpacing:s=0}=o,l=gM(o,["labelSpacing","titleSpacing"]),c="left"===r||"right"===r,u=Pt(l,"ribbon"),{size:d}=u,f=Pt(l,"handleIcon"),{size:h}=f,p=Math.max(d,2.4*h);t.size=p;const g=_M(l,SM(t,A));if(g){const e=c?"width":"height",n=ko(g,t=>t[e]);t.size+=n+a}const m=IM(l);m&&(c?t.size=Math.max(t.size,m.width):t.size+=s+m.height)}function UM(t,e,n,r,i,A){const o=(()=>{const{legendCategory:e}=i,{title:n}=t,[r,A]=Array.isArray(n)?[n,void 0]:[void 0,n];return Q({title:r},e,Object.assign(Object.assign({},t),{title:A}))})(),{focus:a,itemSpacing:s,focusMarkerSize:l,itemMarkerSize:c,titleSpacing:u,rowPadding:d,colPadding:f,maxCols:h=1/0,maxRows:p=1/0}=o,g=gM(o,["focus","itemSpacing","focusMarkerSize","itemMarkerSize","titleSpacing","rowPadding","colPadding","maxCols","maxRows"]),{cols:m,length:y}=t,v=t=>Math.min(t,p),b=t=>Math.min(t,h),w="left"===r||"right"===r,B=void 0===y?e+(w?0:n[0]+n[1]):y,x=SM(t,A),{render:C}=t;if(C&&"undefined"!=typeof document){const e=x.getOptions().domain,{labelFormatter:n}=g,r=t=>n?"string"==typeof n?(0,Rc.GP)(n)(t):n(t):`${t}`,i=e.map((t,e)=>({id:t,index:e,label:r(t),value:t,color:x.map(t)})),A=C(i,g),o=document.createElement("div"),{width:a,height:s}=t,l={position:"absolute",visibility:"hidden",top:"-9999px"};a?l.width=`${a}px`:w||(l.width=`${B}px`),s?l.height=`${s}px`:w&&(l.height=`${B}px`),Object.assign(o.style,l),"string"==typeof A?o.innerHTML=A:A instanceof HTMLElement&&o.appendChild(A),document.body.appendChild(o);const c=o.getBoundingClientRect();return document.body.removeChild(o),void(t.size=w?c.width:c.height)}const E=IM(g),O=_M(g,x,"itemLabel"),k=void 0!==g.itemValueText?_M(g,x,"itemValue"):null,F=Math.max(O[0].height,c,...(null==k?void 0:k[0])?[k[0].height]:[])+d,M=(t,e=0)=>{let n=c+t+s[0]+e;return(null==k?void 0:k[0])&&(n+=k[0].width+s[1]),a&&(n+=l+s[2]),n};w?(()=>{let e=-1/0,n=0,r=1,i=0,A=-1/0,o=-1/0;const a=E?E.height:0,s=B-a;for(const{width:t}of O){const a=M(t,f);e=Math.max(e,a),n+F>s?(r++,A=Math.max(A,i),o=Math.max(o,n),i=1,n=F):(n+=F,i++)}r<=1&&(A=i,o=n),t.size=e*b(r),t.length=o+a,Q(t,{cols:b(r),gridRow:A})})():"number"==typeof m?(()=>{const e=Math.ceil(O.length/m),n=ko(O,t=>M(t.width))*m;t.size=F*v(e)-d,t.length=Math.min(n,B)})():(()=>{let e=1,n=0,r=-1/0;for(const{width:t}of O){const i=M(t,f);n+i>B?(r=Math.max(r,n),n=i,e++):n+=i}1===e&&(r=n),t.size=F*v(e)-d,t.length=r})(),E&&(w?t.size=Math.max(t.size,E.width):t.size+=u+E.height)}function SM(t,e){const[n]=Cg("scale",e),{scales:r,tickCount:i,tickMethod:A}=t,o=r.find(t=>"constant"!==t.type&&"identity"!==t.type);return void 0!==i&&(o.tickCount=i),void 0!==A&&(o.tickMethod=A),n(o)}function _M(t,e,n="label"){const{labelFormatter:r,tickFilter:i,label:A=!0}=t,o=gM(t,["labelFormatter","tickFilter","label"]);if(!A)return null;const a=function(t,e,n){const r=LM(t,n).map(t=>"number"==typeof t?ee(t):t),i=e?"string"==typeof e?(0,Rc.GP)(e):e:t.getFormatter?t.getFormatter():t=>`${t}`;return r.map(i)}(e,r,i),s=Pt(o,n),l=a.map((t,e)=>Object.fromEntries(Object.entries(s).map(([n,r])=>[n,"function"==typeof r?r(t,e):r]))),c=a.map((t,e)=>PM(t,l[e])),u=l.some(t=>t.transform);if(!u){const e=a.map((t,e)=>e);t.indexBBox=new Map(e.map(t=>[t,[a[t],c[t]]]))}return c}function IM(t){const{title:e}=t,n=gM(t,["title"]);if((t=>!1===t||null===t)(e)||void 0===e)return null;const r=Pt(n,"title"),{direction:i,transform:A}=r,o=Array.isArray(e)?e.join(","):e;return"string"!=typeof o?null:PM(o,Object.assign(Object.assign({},r),{transform:A||("vertical"===i?"rotate(-90)":"")}))}function TM(t,e,n){const{title:r}=t,[i,A]=Array.isArray(r)?[r,void 0]:[void 0,r],{axis:o,[`axis${St(e)}`]:a}=n;return Q({title:i},o,a,Object.assign(Object.assign({},t),{title:A}))}function LM(t,e){const n=t.getTicks?t.getTicks():t.getOptions().domain;return e?n.filter(e):n}function PM(t,e){const n=function(t){return t instanceof $.q9?t:new $.EY({style:{text:`${t}`}})}(t),r=gM(e,["filter"]);return n.attr(Object.assign(Object.assign({},r),{visibility:"none"})),n.getBBox()}function jM(t,e,n,r,i,A,o){const a=et(t,t=>t.position),{padding:s=A.padding,paddingLeft:l=s,paddingRight:c=s,paddingBottom:u=s,paddingTop:d=s}=i,f={paddingBottom:u,paddingLeft:l,paddingTop:d,paddingRight:c};for(const t of r){const r=`padding${St(Dr(t))}`,i=a.get(t)||[],s=f[r],l=t=>{void 0===t.size&&(t.size=t.defaultSize)},c=t=>{"group"===t.type?(t.children.forEach(l),t.size=ko(t.children,t=>t.size)):t.size=t.defaultSize},u=r=>{r.size||("auto"!==s?c(r):(CM(r,e,n,t,A,o),l(r)))},d=t=>{t.type.startsWith("axis")&&void 0===t.labelAutoHide&&(t.labelAutoHide=!0)},h="bottom"===t||"top"===t,p=Oo(i,t=>t.order),g=i.filter(t=>t.type.startsWith("axis")&&t.order==p);if(g.length&&(g[0].crossPadding=0),"number"==typeof s)i.forEach(l),i.forEach(d);else if(0===i.length)f[r]=0;else{const t=yM(i,h?e+n[0]+n[1]:e);t.forEach(u);const A=t.reduce((t,{size:e,crossPadding:n=12})=>t+e+n,0);f[r]=A}}return f}function HM({width:t,height:e,paddingLeft:n,paddingRight:r,paddingTop:i,paddingBottom:A,marginLeft:o,marginTop:a,marginBottom:s,marginRight:l,innerHeight:c,innerWidth:u,insetBottom:d,insetLeft:f,insetRight:h,insetTop:p}){const g=n+o,m=i+a,y=r+l,v=A+s,b=t-o-l,w=[g+f,m+p,u-f-h,c-p-d,"center",null,null];return{top:[g,0,u,m,"vertical",!0,Zu.A,o,b],right:[t-y,m,y,c,"horizontal",!1,Zu.A],bottom:[g,e-v,u,v,"vertical",!1,Zu.A,o,b],left:[0,m,g,c,"horizontal",!0,Zu.A],"top-left":[g,0,u,m,"vertical",!0,Zu.A],"top-right":[g,0,u,m,"vertical",!0,Zu.A],"bottom-left":[g,e-v,u,v,"vertical",!1,Zu.A],"bottom-right":[g,e-v,u,v,"vertical",!1,Zu.A],center:w,inner:w,outer:w}}function NM(t,e,n,r){const[i,A]=Qe(t,t=>!("string"!=typeof t.type||!t.type.startsWith("axis")));!function(t,e,n,r){"center"===r?function(t){return G(t)&&R(t)}(e)?function(t,e,n){const[r,i,A,o]=n;for(const e of t)e.bbox={x:r,y:i,width:A,height:o},e.radar={index:t.indexOf(e),count:t.length}}(t,0,n):R(e)?function(t,e,n){const[r,i,A,o]=n;for(const e of t)e.bbox={x:r,y:i,width:A,height:o}}(t,0,n):G(e)&&function(t,e,n,r){"horizontal"===r?function(t,e,n){const[r,i,A]=n,o=new Array(t.length).fill(0),a=e.map(o).filter((t,e)=>e%2==1).map(t=>t+i);for(let e=0;e<t.length;e++){const n=a[e];t[e].bbox={x:r,y:n,width:A,height:a[e+1]-n}}}(t,e,n):"vertical"===r&&function(t,e,n){const[r,i,,A]=n,o=new Array(t.length).fill(0),a=e.map(o).filter((t,e)=>e%2==0).map(t=>t+r);for(let e=0;e<t.length;e++){const n=a[e];t[e].bbox={x:n,y:i,width:a[e+1]-n,height:A}}}(t,e,n)}(t,e,n,t[0].orientation):"inner"===r?function(t,e,n){const[r,i,,A]=n,[o,a]=e.getCenter(),[s]=X(e),l=s*(A/2),c=o-l,u=a-l;for(let e=0;e<t.length;e++)t[e].bbox={x:r+c,y:i+u,width:2*l,height:2*l}}(t,e,n):"outer"===r&&function(t,e,n){const[r,i,A,o]=n;for(const e of t)e.bbox={x:r,y:i,width:A,height:o}}(t,0,n)}(i,e,n,r),function(t,e,n){if(0===t.length)return;const[r,i,A,o]=n,[a]=X(e),s=o/2*a/Math.sqrt(2),l=r+A/2,c=i+o/2;for(let e=0;e<t.length;e++)t[e].bbox={x:l-s,y:c-s,width:2*s,height:2*s}}(A,e,n)}function DM(t,e,n){const[r,i,A,o,a,s,l,c,u]=n,[d,f,h,p,g,m,y,v]="vertical"===a?["y",i,"x",r,"height",o,"width",A]:["x",r,"y",i,"width",A,"height",o];t.sort((t,e)=>null==l?void 0:l(t.order,e.order));const b=t=>"title"===t||"group"===t||t.startsWith("legend"),w=(t,e,n)=>void 0===n?e:b(t)?n:e,B=(t,e,n)=>void 0===n?e:b(t)?n:e;for(let e=0,n=s?f+m:f;e<t.length;e++){const r=t[e],{crossPadding:i=0,type:A}=r,{size:o}=r;r.bbox={[d]:s?n-o-i:n+i,[h]:B(A,p,c),[g]:o,[y]:w(A,v,u)},n+=(o+i)*(s?-1:1)}const x=t.filter(t=>"group"===t.type);for(const t of x){const{bbox:e,children:n}=t,r=e[y],i=r/n.length,A=n.reduce((t,e)=>{var n;return(null===(n=e.layout)||void 0===n?void 0:n.justifyContent)||t},"flex-start"),o=n.map((t,e)=>{const{length:r=i,padding:A=0}=t;return r+(e===n.length-1?0:A)}),a=r-rB(o);for(let t=0,r=e[h]+("flex-start"===A?0:"center"===A?a/2:a);t<n.length;t++){const i=n[t],{padding:a=0}=i,s=t===n.length-1?0:a;i.bbox={[g]:e[g],[d]:e[d],[h]:r,[y]:o[t]-s},Q(i,{layout:{justifyContent:A}}),r+=o[t]}}}var RM=function(t,e,n,r){return new(n||(n=Promise))(function(i,A){function o(t){try{s(r.next(t))}catch(t){A(t)}}function a(t){try{s(r.throw(t))}catch(t){A(t)}}function s(t){t.done?i(t.value):function(t){return t instanceof n?t:new n(function(e){e(t)})}(t.value).then(o,a)}s((r=r.apply(t,e||[])).next())})},KM=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n};function zM(t,e,n){return RM(this,void 0,void 0,function*(){var r;const{library:i}=n,[A]=Cg("composition",i),[o]=Cg("interaction",i),a=new Set(Object.keys(i).map(t=>{var e;return null===(e=/mark\.(.*)/.exec(t))||void 0===e?void 0:e[1]}).filter(Tt)),s=new Set(Object.keys(i).map(t=>{var e;return null===(e=/component\.(.*)/.exec(t))||void 0===e?void 0:e[1]}).filter(Tt)),l=t=>{const{type:e}=t;if("function"==typeof e){const{props:t={}}=e,{composite:n=!0}=t;if(n)return"mark"}return"string"!=typeof e?e:a.has(e)||s.has(e)?"mark":e},c=t=>"mark"===l(t),u=t=>"standardView"===l(t),d=t=>{const{type:e}=t;return"string"==typeof e&&!!s.has(e)},f=t=>{if(u(t))return[t];const e=l(t);return A({type:e,static:d(t)})(t)},h=[],p=new Map,g=new Map,m=[t],y=[];for(;m.length;){const t=m.shift();if(u(t)){const e=g.get(t),[r,A]=e?$M(e,t,i):yield WM(t,n);p.set(r,t),h.push(r);const o=A.flatMap(f).map(t=>Cy(t,i));if(m.push(...o),o.every(u)){const t=yield Promise.all(o.map(t=>XM(t,n)));Ty(t);for(let e=0;e<o.length;e++)g.set(o[e],t[e])}}else{const e=f(c(t)?t:yield uU(t,n));Array.isArray(e)?m.push(...e):"function"==typeof e&&y.push(e())}}n.emitter.emit("beforepaint");const v=new Map,b=new Map,w=[];e.selectAll(pU("view")).data(h,t=>t.key).join(t=>t.append("g").attr("className","view").attr("id",t=>t.key).call(GM).each(function(t,e,r){qM(t,zt(r),w,n),v.set(t,r)}),t=>t.call(GM).each(function(t,e,r){qM(t,zt(r),w,n),b.set(t,r)}),t=>t.each(function(t,e,n){const r=n.nameInteraction.values();for(const t of r)t.destroy()}).remove());const B=(t,e,r)=>Array.from(t.entries()).map(([i,A])=>{const o=r||new Map,a=(t,e=t=>t)=>o.set(t,e),s=p.get(i),l=function(t,e,n){const{library:r}=n,i=function(t){const[,e]=Cg("interaction",t);return t=>{const[n,r]=t;try{return[n,e(n)]}catch(t){return[n,r.type]}}}(r),A=cU(e).map(i).filter(t=>t[1]&&t[1].props&&t[1].props.reapplyWhenUpdate).map(t=>t[0]);return(e,r,i)=>RM(this,void 0,void 0,function*(){const[o,a]=yield WM(e,n);qM(o,t,[],n);for(const i of A.filter(t=>t!==r))VM(i,t,e,o,n);for(const e of a)zM(e,t,n);return i(),{options:e,view:o}})}(zt(A),s,n),c={view:i,container:A,options:s,setState:a,update:(n,r)=>RM(this,void 0,void 0,function*(){const i=Ut(Array.from(o.values()))(s);return yield l(i,n,()=>{(0,x.A)(r)&&e(t,r,o)})})};return n.externals.update=c.update,n.externals.setState=a,c}),C=(t=b,e,r)=>{var i;const A=B(t,C,r);for(const t of A){const{options:r,container:a}=t,s=a.nameInteraction;let l=cU(r);e&&(l=l.filter(t=>e.includes(t[0])));for(const e of l){const[r,a]=e,l=s.get(r);if(l&&(null===(i=l.destroy)||void 0===i||i.call(l)),a){const e=YM(t.view,r,a,o)(t,A,n.emitter);s.set(r,{destroy:e})}}}},E=B(v,C);for(const t of E){const{options:e}=t,r=new Map;t.container.nameInteraction=r;for(const i of cU(e)){const[e,A]=i;if(A){const i=YM(t.view,e,A,o)(t,E,n.emitter);r.set(e,{destroy:i})}}}C();const{width:O,height:k}=t,F=[];for(const t of y){const r=new Promise(r=>RM(this,void 0,void 0,function*(){for(const r of t){const t=Object.assign({width:O,height:k},r);yield zM(t,e,n)}r()}));F.push(r)}n.views=h,null===(r=n.animations)||void 0===r||r.forEach(t=>null==t?void 0:t.cancel()),n.animations=w,n.emitter.emit("afterpaint");const Q=w.filter(Tt).map(oU).map(t=>t.finished);return Promise.all([...Q,...F])})}function GM(t){t.style("transform",t=>`translate(${t.layout.x}, ${t.layout.y})`)}function VM(t,e,n,r,i){var A;const{library:o}=i,[a]=Cg("interaction",o),s=e.node().nameInteraction,l=cU(n).find(([e])=>e===t),c=s.get(t);if(!c)return;if(null===(A=c.destroy)||void 0===A||A.call(c),!l[1])return;const u=YM(r,t,l[1],a),d={options:n,view:r,container:e.node(),update:t=>Promise.resolve(t)},f=u(d,[],i.emitter);s.set(t,{destroy:f})}function WM(t,e){return RM(this,void 0,void 0,function*(){const{library:n}=e,r=yield function(t,e){return RM(this,void 0,void 0,function*(){const{library:n}=e,[r,i]=Cg("mark",n),A=new Set(Object.keys(n).map(t=>{var e;return null===(e=/component\.(.*)/.exec(t))||void 0===e?void 0:e[1]}).filter(Tt)),{marks:o}=t,a=[],s=[],l=[...o],{width:c,height:u}=function(t){const{height:e,width:n,padding:r=0,paddingLeft:i=r,paddingRight:A=r,paddingTop:o=r,paddingBottom:a=r,margin:s=16,marginLeft:l=s,marginRight:c=s,marginTop:u=s,marginBottom:d=s,inset:f=0,insetLeft:h=f,insetRight:p=f,insetTop:g=f,insetBottom:m=f}=t,y=t=>"auto"===t?20:t;return{width:n-y(i)-y(A)-l-c-h-p,height:e-y(o)-y(a)-u-d-g-m}}(t),d={options:t,width:c,height:u};for(;l.length;){const[t]=l.splice(0,1),n=yield uU(t,e),{type:o=_t("G2Mark type is required."),key:c}=n;if(A.has(o))s.push(n);else{const{props:t={}}=i(o),{composite:e=!0}=t;if(e){const{data:t}=n,e=Object.assign(Object.assign({},n),{data:t?Array.isArray(t)?t:t.value:t}),i=yield r(e,d),A=Array.isArray(i)?i:[i];l.unshift(...A.map((t,e)=>Object.assign(Object.assign({},t),{key:`${c}-${e}`})))}else a.push(n)}}return Object.assign(Object.assign({},t),{marks:a,components:s})})}(t,e),i=function(t){const{coordinate:e={},interaction:n={},style:r={},marks:i}=t,A=KM(t,["coordinate","interaction","style","marks"]),o=i.map(t=>t.coordinate||{}),a=i.map(t=>t.interaction||{}),s=i.map(t=>t.viewStyle||{}),l=[...o,e].reduceRight((t,e)=>Q(t,e),{}),c=[n,...a].reduce((t,e)=>Q(t,e),{}),u=[...s,r].reduce((t,e)=>Q(t,e),{});return Object.assign(Object.assign({},A),{marks:i,coordinate:l,interaction:c,style:u})}(r);t.interaction=i.interaction,t.coordinate=i.coordinate,t.marks=[...i.marks,...i.components];const A=Cy(i,n);return $M(yield XM(A,e),A,n)})}function XM(t,e){return RM(this,void 0,void 0,function*(){const{library:n}=e,[r]=Cg("theme",n),[,i]=Cg("mark",n),{theme:A,marks:o,coordinates:a=[]}=t,s=r(lU(A)),l=new Map;for(const t of o){const{type:n}=t,{props:r={}}=i(n),A=yield kg(t,r,e);if(A){const[t,e]=A;l.set(t,e)}}const c=et(Array.from(l.values()).flatMap(t=>t.channels),({scaleKey:t})=>t);for(const t of c.values()){const e=t.reduce((t,{scale:e})=>Q(t,e),{}),{scaleKey:r}=t[0],{values:i}=t[0],A=Array.from(new Set(i.map(t=>t.field).filter(Tt))),o=Q({guide:{title:0===A.length?void 0:A},field:A[0]},e),{name:l}=t[0],c=t.flatMap(({values:t})=>t.map(t=>t.value)),u=Object.assign(Object.assign({},Uy(l,c,o,a,s,n)),{uid:Symbol("scale"),key:r});t.forEach(t=>t.scale=u)}return l})}function YM(t,e,n,r){return r(Q("string"==typeof e&&t.theme[e]||{},Object.assign({type:e},n)))}function $M(t,e,n){var r;const[i]=Cg("mark",n),[A]=Cg("theme",n),[o]=Cg("labelTransform",n),{key:a,frame:s=!1,theme:l,clip:c,style:u={},labelTransform:d=[]}=e,f=A(lU(l)),h=Array.from(t.values()),p=function(t,e){var n;const{components:r=[]}=e,i=["scale","encode","axis","legend","data","transform"],A=Array.from(new Set(t.flatMap(t=>t.channels.map(t=>t.scale)))),o=new Map(A.map(t=>[t.name,t]));for(const t of r){const e=Ly(t);for(const r of e){const e=o.get(r),a=(null===(n=t.scale)||void 0===n?void 0:n[r])||{},{independent:s=!1}=a;if(e&&!s){const{guide:n}=e;e.guide=Q({},"boolean"==typeof n?{}:n,t),Object.assign(e,a)}else{const e=Object.assign(Object.assign({},a),{expectedDomain:a.domain,name:r,guide:Nc(t,i)});A.push(e)}}}return A}(h,e),g=function(t){return t.map(t=>{const e=Q(t,t.style);return delete e.style,e})}(function(t,e,n){const{coordinates:r=[],title:i}=e,[,A]=Cg("component",n),o=t.filter(({guide:t})=>null!==t),a=[],s=function(t,e,n){const[,r]=Cg("component",n),{coordinates:i}=t;function A(t,e,n,A){const o=function(t,e,n=[]){return"x"===t?ky(n)?`${e}Y`:`${e}X`:"y"===t?ky(n)?`${e}X`:`${e}Y`:null}(e,t,i);if(!A||!o)return;const{props:a}=r(o),{defaultPosition:s,defaultSize:l,defaultOrder:c,defaultCrossPadding:[u]}=a;return Object.assign(Object.assign({position:s,defaultSize:l,order:c,type:o,crossPadding:u},A),{scales:[n]})}return e.filter(t=>t.slider||t.scrollbar).flatMap(t=>{const{slider:e,scrollbar:n,name:r}=t;return[A("slider",r,t,e),A("scrollbar",r,t,n)]}).filter(t=>!!t)}(e,t,n);if(a.push(...s),i){const{props:t}=A("title"),{defaultPosition:e,defaultOrientation:n,defaultOrder:r,defaultSize:o,defaultCrossPadding:s}=t;a.push(Object.assign({type:"title",position:e,orientation:n,order:r,crossPadding:s[0],defaultSize:o},"string"==typeof i?{title:i}:i))}const l=function(t,e){const n=t.filter(t=>function(t){if(!t||!t.type)return!1;if("function"==typeof t.type)return!0;const{type:e,domain:n,range:r,interpolator:i}=t,A=n&&n.length>0,o=r&&r.length>0;return!!(["linear","sqrt","log","time","pow","threshold","quantize","quantile","ordinal","band","point"].includes(e)&&A&&o)||!(!["sequential"].includes(e)||!A||!o&&!i)||!(!["constant","identity"].includes(e)||!o)}(t));return[...vM(n),...wM(n,e)]}(o,r);return l.forEach(([t,e])=>{const{props:n}=A(t),{defaultPosition:i,defaultPlane:s="xy",defaultOrientation:l,defaultSize:c,defaultOrder:u,defaultLength:d,defaultPadding:f=[0,0],defaultCrossPadding:h=[0,0]}=n,p=Q({},...e),{guide:g,field:m}=p,y=Array.isArray(g)?g:[g];for(const n of y){const[A,p]=xM(t,i,l,n,e,o,r);if(!A&&!p)continue;const g="left"===A||"right"===A,y=g?f[1]:f[0],v=g?h[1]:h[0],{size:b,order:w=u,length:B=d,padding:x=y,crossPadding:C=v}=n;a.push(Object.assign(Object.assign({title:m},n),{defaultSize:c,length:B,position:A,plane:s,orientation:p,padding:x,order:w,crossPadding:C,size:b,type:t,scales:e}))}}),a}(function(t,e,n){var r;for(const[e]of n.entries())if("cell"===e.type)return t.filter(t=>"shape"!==t.name);if(1!==e.length||t.some(t=>"shape"===t.name))return t;const{defaultShape:i}=e[0];if(!["point","line","rect","hollow"].includes(i))return t;const A=(null===(r=t.find(t=>"color"===t.name))||void 0===r?void 0:r.field)||null,o={field:A,name:"shape",type:"constant",domain:[],range:[{point:"point",line:"hyphen",rect:"square",hollow:"hollow"}[i]]};return[...t,o]}(Array.from(p),h,t),e,n)),m=function(t,e,n,r){var i,A,o,a;const{width:s,height:l,depth:c,x:u=0,y:d=0,z:f=0,inset:h=(null!==(i=n.inset)&&void 0!==i?i:0),insetLeft:p=h,insetTop:g=h,insetBottom:m=h,insetRight:y=h,margin:v=(null!==(A=n.margin)&&void 0!==A?A:0),marginLeft:b=v,marginBottom:w=v,marginTop:B=v,marginRight:x=v,padding:C=n.padding,paddingBottom:E=C,paddingLeft:O=C,paddingRight:k=C,paddingTop:F=C}=function(t,e,n,r){const{coordinates:i}=e;if(!Oy(i)&&!Qy(i))return e;const A=t.filter(t=>"string"==typeof t.type&&t.type.startsWith("axis"));if(0===A.length)return e;const o=A.map(t=>TM(t,"axisArc"===t.type?"arc":"linear",n)),a=ko(o,t=>{var e;return null!==(e=t.labelSpacing)&&void 0!==e?e:0}),s=A.flatMap((t,e)=>_M(o[e],SM(t,r))).filter(Tt),l=ko(s,t=>t.height)+a,c=A.flatMap((t,e)=>IM(o[e])).filter(t=>null!==t),u=0===c.length?0:ko(c,t=>t.height),{inset:d=l,insetLeft:f=d,insetBottom:h=d,insetTop:p=d+u,insetRight:g=d}=e;return Object.assign(Object.assign({},e),{insetLeft:f,insetBottom:h,insetTop:p,insetRight:g})}(t,e,n,r),Q=16===b&&"auto"===O,M=16===x&&"auto"===k,U=Fl(e,"coordinates",[]).some(t=>"transpose"===t.type),S=t.find(({type:t})=>"axisX"===t),{size:_,labelTransform:I}=S||{},T=(t,n,r,i,A)=>{const{marks:o}=e;if(0===o.length)return[i,A];if(t-i-A-.25*t>0)return[i,A];const a=.75*t;return["auto"===n?a*i/(i+A):i,"auto"===r?a*A/(i+A):A]},L=t=>"auto"===t?20:null!=t?t:20,P=L(F),j=L(E),H=jM(t,l-P-j,[P+B,j+w],["left","right"],e,n,r),{paddingLeft:N,paddingRight:D}=H,R=s-b-x;let[K,z]=T(R,O,k,N,D),G=R-K-z;const V=jM(t,G,[K+b,z+x],["bottom","top"],e,n,r),{paddingTop:W,paddingBottom:X}=V,Y=l-w-B,[$,q]=T(Y,E,F,X,W),Z=Y-$-q;if(_&&!U&&!I){const{fontSize:t=12,fontFamily:e="sans-serif",scales:n=[]}=S,r=null!==(a=null===(o=null==n?void 0:n[0])||void 0===o?void 0:o.domain)&&void 0!==a?a:[];if(!r.length)return;const i=(n,r,i,A)=>{const o=rc(r,{fontSize:t,fontFamily:e}),a=o/2-i-A;a>0&&(G-=a,"left"===n?K+=o/2-i:z+=o/2-i)};Q&&i("left",function(t){if(ne(t))return t[0]}(r),b,K),M&&i("right",re(r),x,z)}return{width:s,height:l,depth:c,insetLeft:p,insetTop:g,insetBottom:m,insetRight:y,innerWidth:G,innerHeight:Z,paddingLeft:K,paddingRight:z,paddingTop:q,paddingBottom:$,marginLeft:b,marginBottom:w,marginTop:B,marginRight:x,x:u,y:d,z:f}}(g,e,f,n),y=function(t,e,n){const[r]=Cg("coordinate",n),{innerHeight:i,innerWidth:A,insetLeft:o,insetTop:a,insetRight:s,insetBottom:l}=t,{coordinates:c=[]}=e,u=(d=c).find(t=>"cartesian"===t.type||"cartesian3D"===t.type)?d:[...d,{type:"cartesian"}];var d;const f="cartesian3D"===u[0].type,h=Object.assign(Object.assign({},t),{x:o,y:a,width:A-o-s,height:i-l-a,transformations:u.flatMap(r)});return f?new By.Coordinate3D(h):new By.Coordinate(h)}(m,e,n),v=s?Q({mainLineWidth:1,mainStroke:"#000"},u):u;!function(t,e,n){const r=et(t,t=>`${t.plane||"xy"}-${t.position}`),{paddingLeft:i,paddingRight:A,paddingTop:o,paddingBottom:a,marginLeft:s,marginTop:l,marginBottom:c,marginRight:u,innerHeight:d,innerWidth:f,insetBottom:h,insetLeft:p,insetRight:g,insetTop:m,height:y,width:v,depth:b}=n,w={xy:HM({width:v,height:y,paddingLeft:i,paddingRight:A,paddingTop:o,paddingBottom:a,marginLeft:s,marginTop:l,marginBottom:c,marginRight:u,innerHeight:d,innerWidth:f,insetBottom:h,insetLeft:p,insetRight:g,insetTop:m}),yz:HM({width:b,height:y,paddingLeft:0,paddingRight:0,paddingTop:0,paddingBottom:0,marginLeft:0,marginTop:0,marginBottom:0,marginRight:0,innerWidth:b,innerHeight:y,insetBottom:0,insetLeft:0,insetRight:0,insetTop:0}),xz:HM({width:v,height:b,paddingLeft:0,paddingRight:0,paddingTop:0,paddingBottom:0,marginLeft:0,marginTop:0,marginBottom:0,marginRight:0,innerWidth:v,innerHeight:b,insetBottom:0,insetLeft:0,insetRight:0,insetTop:0})};for(const[t,n]of r.entries()){const[r,i]=t.split("-"),A=w[r][i],[o,a]=Qe(n,t=>"string"==typeof t.type&&("center"===i||!(!t.type.startsWith("axis")||!["inner","outer"].includes(i))));o.length&&NM(o,e,A,i),a.length&&DM(n,0,A)}}(yM(g),y,m),function(t){const e=t.find(({type:t})=>"axisX"===t),n=t.find(({type:t})=>"axisY"===t),r=t.find(({type:t})=>"axisZ"===t);e&&n&&r&&(e.plane="xy",n.plane="xy",r.plane="yz",r.origin=[e.bbox.x,e.bbox.y,0],r.eulerAngles=[0,-90,0],r.bbox.x=e.bbox.x,r.bbox.y=e.bbox.y,t.push(Object.assign(Object.assign({},e),{plane:"xz",showLabel:!1,showTitle:!1,origin:[e.bbox.x,e.bbox.y,0],eulerAngles:[-90,0,0]})),t.push(Object.assign(Object.assign({},n),{plane:"yz",showLabel:!1,showTitle:!1,origin:[n.bbox.x+n.bbox.width,n.bbox.y,0],eulerAngles:[0,-90,0]})),t.push(Object.assign(Object.assign({},r),{plane:"xz",actualPosition:"left",showLabel:!1,showTitle:!1,eulerAngles:[90,-90,0]})))}(g);const b=new Map(Array.from(t.values()).flatMap(t=>{const{channels:e}=t;return e.map(({scale:t})=>[t.uid,Iy(t,n)])}));!function(t,e){const n=Array.from(t.values()).flatMap(t=>t.channels),r=it(n,t=>t.map(t=>e.get(t.scale.uid)),t=>t.name).filter(([,t])=>t.some(t=>"function"==typeof t.getOptions().groupTransform)&&t.every(t=>t.getTicks)).map(t=>t[1]);r.forEach(t=>{const e=t.map(t=>t.getOptions().groupTransform)[0];e(t)})}(t,b);const w={};for(const t of g){const{scales:e=[]}=t,i=[];for(const t of e){const{name:e,uid:A}=t,o=null!==(r=b.get(A))&&void 0!==r?r:Iy(t,n);i.push(o),"y"===e&&o.update(Object.assign(Object.assign({},o.getOptions()),{xScale:w.x})),_y(w,{[e]:o})}t.scaleInstances=i}const B=[],x=new Map;for(const[e,n]of t.entries()){const{children:t,dataDomain:r,modifier:A,key:o,data:s}=e;x.set(o,s);const{index:l,channels:c,tooltip:u}=n,d=Ee(Object.fromEntries(c.map(({name:t,scale:e})=>[t,e])),({uid:t})=>b.get(t));_y(w,d);const f=Sy(c,d),h=i(e),[p,g,v]=ZM(h(l,d,f,y)),C=A?A(g,r||p.length,m):[],E=t=>{var e,n;return null===(n=null===(e=u.title)||void 0===e?void 0:e[t])||void 0===n?void 0:n.value},O=t=>u.items.map(e=>e[t]),k=p.map((t,e)=>{const n=Object.assign({points:g[e],transform:C[e],index:t,markKey:o,viewKey:a,data:s[t]},u&&{title:E(t),items:O(t)});for(const[r,i]of Object.entries(f))n[r]=i[t],v&&(n[`series${Dc(r)}`]=v[e].map(t=>i[t]));return v&&(n.seriesIndex=v[e]),v&&u&&(n.seriesItems=v[e].map(t=>O(t)),n.seriesTitle=v[e].map(t=>E(t))),n});n.data=k,n.index=p;const F=null==t?void 0:t(k,d,m);B.push(...F||[])}return[{layout:m,theme:f,coordinate:y,markState:t,key:a,clip:c,scale:w,style:v,components:g,data:x,options:e,labelTransform:Ut(d.map(o))},B]}function qM(t,e,n,r){return RM(this,void 0,void 0,function*(){const{library:i}=r,{components:A,theme:o,layout:a,markState:s,coordinate:l,key:c,style:u,clip:d,scale:f}=t,{width:h,height:p}=a,g=KM(a,["x","y","width","height"]),m=["view","plot","main","content"],y=m.map((t,e)=>e),v=m.map(t=>jt(Object.assign({},o.view,u),t)),b=["a","margin","padding","inset"].map(t=>Pt(g,t)),w=t=>t.style("x",t=>O[t].x).style("y",t=>O[t].y).style("width",t=>O[t].width).style("height",t=>O[t].height).each(function(t,e,n){!function(t,e){for(const[n,r]of Object.entries(e))t.style(n,r)}(zt(n),v[t])});let B=0,x=0,C=h,E=p;const O=y.map(t=>{const e=b[t],{left:n=0,top:r=0,bottom:i=0,right:A=0}=e;return B+=n,x+=r,C-=n+A,E-=r+i,{x:B,y:x,width:C,height:E}});e.selectAll(pU("area")).data(y.filter(t=>Tt(v[t])),t=>m[t]).join(t=>t.append("rect").attr("className","area").style("zIndex",-2).call(w),t=>t.call(w),t=>t.remove());const k=function(t){let e=-1/0,n=1/0;for(const[r,i]of t){const{animate:t={}}=r,{data:A}=i,{enter:o={},update:a={},exit:s={}}=t,{type:l,duration:c=300,delay:u=0}=a,{type:d,duration:f=300,delay:h=0}=o,{type:p,duration:g=300,delay:m=0}=s;for(const t of A){const{updateType:r=l,updateDuration:i=c,updateDelay:A=u,enterType:o=d,enterDuration:a=f,enterDelay:s=h,exitDuration:y=g,exitDelay:v=m,exitType:b=p}=t;(void 0===r||r)&&(e=Math.max(e,i+A),n=Math.min(n,A)),(void 0===b||b)&&(e=Math.max(e,y+v),n=Math.min(n,v)),(void 0===o||o)&&(e=Math.max(e,a+s),n=Math.min(n,s))}}return e===-1/0?null:[n,e-n]}(s),F=!!k&&{duration:k[1]};for(const[,t]of nt(A,t=>`${t.type}-${t.position}`))t.forEach((t,e)=>t.index=e);const M=e.selectAll(pU(od)).data(A,t=>`${t.type}-${t.position}-${t.index}`).join(t=>t.append("g").style("zIndex",({zIndex:t})=>t||-1).attr("className",od).append(t=>mM(Q({animate:F,scale:f},t),l,o,i,s)),t=>t.transition(function(t,e,n){const{preserve:r=!1}=t;if(r)return;const A=mM(Q({animate:F,scale:f},t),l,o,i,s),{attributes:a}=A,[c]=n.childNodes;return c.update(a,!1)})).transitions();n.push(...M.flat().filter(Tt));const U=e.selectAll(pU("plot")).data([a],()=>c).join(t=>t.append("rect").style("zIndex",0).style("fill","transparent").attr("className","plot").call(dU).call(hU,Array.from(s.keys())).call(gU,d),t=>t.call(hU,Array.from(s.keys())).call(dU).call(gU,d)).transitions();n.push(...U.flat());for(const[A,o]of s.entries()){const{data:a}=o,{key:s,class:l,type:c}=A,u=e.select(`#${s}`),d=nU(A,o,t,r),f=AU(A,o,t,i),h=aU(A,o,t,i),p=sU(A,o,t,i),g=tU(e,u,l,"element"),m=u.selectAll(pU(Ad)).selectFacetAll(g).data(a,t=>t.key,t=>t.groupKey).join(t=>t.append(d).attr("className",Ad).attr("markType",c).transition(function(t,e,n){return f(t,[n])}),t=>t.call(t=>{const e=t.parent(),n=Lt(t=>{const[e,n]=t.getBounds().min;return[e,n]});t.transition(function(t,r,i){eU(i,e,n);const A=d(t,r),o=h(t,[i],[A]);return(null==o?void 0:o.length)||(i.nodeName===A.nodeName&&"g"!==A.nodeName?It(i,A):(i.parentNode.replaceChild(A,i),A.className=Ad,A.markType=c,A.__data__=i.__data__)),o}).each(function(t,e,n){n.__removed__&&(n.__removed__=!1)}).attr("markType",c).attr("className",Ad)}),t=>t.each(function(t,e,n){n.__removed__=!0}).transition(function(t,e,n){return p(t,[n])}).remove(),t=>t.append(d).attr("className",Ad).attr("markType",c).transition(function(t,e,n){const{__fromElements__:r}=n,i=h(t,r,[n]);return new Gt(r,null,n.parentNode).transition(i).remove(),i}),t=>t.transition(function(t,e,n){const r=new Gt([],n.__toData__,n.parentNode).append(d).attr("className",Ad).attr("markType",c).nodes();return h(t,[n],r)}).remove()).transitions();n.push(...m.flat())}!function(t,e,n,r,i){const[A]=Cg("labelTransform",r),{markState:o,labelTransform:a}=t,s=e.select(pU(id)).node(),l=new Map,c=new Map,u=Array.from(o.entries()).flatMap(([n,A])=>{const{labels:o=[],key:a}=n,s=function(t,e,n,r,i){const[A]=Cg("shape",r),{data:o,encode:a}=t,{data:s,defaultLabelShape:l}=e,c=s.map(t=>t.points),u=Ee(a,t=>t.value),{theme:d,coordinate:f}=n,h=Object.assign(Object.assign({},i),{document:Eg(i),theme:d,coordinate:f});return t=>{const{index:e,points:n}=t,r=o[e],{formatter:i=t=>`${t}`,style:a,render:s,element:f}=t,p=KM(t,["formatter","transform","style","render","selector","element"]),g=Ee(Object.assign(Object.assign({},p),a),t=>JM(t,r,e,o,{channel:u,element:f})),{shape:m=l,text:y}=g,v=KM(g,["shape","text"]),b="string"==typeof i?(0,Rc.GP)(i):i,w=Object.assign(Object.assign({},v),{text:b(y,r,e,o),datum:r}),B=Object.assign({type:`label.${m}`,render:s},v);return A(B,h)(n,w,rU(d,"label",m,"label"),c)}}(n,A,t,r,i),u=e.select(`#${a}`).selectAll(pU(Ad)).nodes().filter(t=>{var e;return!t.__removed__&&!("hidden"===(null===(e=t.style)||void 0===e?void 0:e.visibility)||t.children&&t.children.some(t=>{var e;return"hidden"===(null===(e=t.style)||void 0===e?void 0:e.visibility)}))});return o.flatMap((t,e)=>{const{transform:n=[]}=t,r=KM(t,["transform"]);return u.flatMap(n=>{const i=function(t,e,n){const{seriesIndex:r,seriesKey:i,points:A,key:o,index:a}=n.__data__,s=function(t){const e=t.cloneNode(!0),n=t.getAnimations();e.style.visibility="hidden",n.forEach(t=>{const n=t.effect.getKeyframes();e.attr(n[n.length-1])}),t.parentNode.appendChild(e);const r=e.getLocalBounds();e.destroy();const{min:i,max:A}=r;return[i,A]}(n);if(!r)return[Object.assign(Object.assign({},t),{key:`${o}-${e}`,bounds:s,index:a,points:A,dependentElement:n})];const l=function(t){const{selector:e}=t;if(!e)return null;if("function"==typeof e)return e;if("first"===e)return t=>[t[0]];if("last"===e)return t=>[t[t.length-1]];throw new Error(`Unknown selector: ${e}`)}(t),c=r.map((r,o)=>Object.assign(Object.assign({},t),{key:`${i[o]}-${e}`,bounds:[A[o]],index:r,points:A,dependentElement:n}));return l?l(c):c}(r,e,n);return i.forEach(e=>{l.set(e,t=>s(Object.assign(Object.assign({},t),{element:n}))),c.set(e,t)}),i})})}),d=zt(s).selectAll(pU("label")).data(u,t=>t.key).join(t=>t.append(t=>l.get(t)(t)).attr("className","label"),t=>t.each(function(t,e,n){It(n,l.get(t)(t))}),t=>t.remove()).nodes(),f=et(d,t=>c.get(t.__data__)),{coordinate:h,layout:p}=t,g={canvas:i.canvas,coordinate:h,layout:p};for(const[t,e]of f){const{transform:n=[]}=t;Ut(n.map(A))(e,g)}a&&a(d,g)}(t,e,0,i,r),function(t,e,n,r){const i=Fl(t.scale,"y.options.breaks",[]),{document:A}=r.canvas;if([ad,sd].forEach(t=>{A.getElementsByClassName(t).forEach(t=>{t.remove()})}),!i.length)return;const o=e.select(pU("plot")).node(),[a]=Cg("shape",n),s=new Map;i.forEach((n,i)=>{s.set(n,a({type:"break"},{view:t,selection:e,context:r}))}),zt(o).selectAll(pU(ad)).data(i,t=>t.key).join(t=>t.append((t,e)=>s.get(t)(t,e)).attr("className",ad),t=>t.each(function(t,e,n){It(n,s.get(t)(t,e))}),t=>t.remove()).nodes()}(t,e,i,r)})}function ZM([t,e,n]){if(n)return[t,e,n];const r=[],i=[];for(let n=0;n<t.length;n++){const A=t[n],o=e[n];o.every(([t,e])=>Tt(t)&&Tt(e))&&(r.push(A),i.push(o))}return[r,i]}function JM(t,e,n,r,i){return"function"==typeof t?t(e,n,r,i):"string"!=typeof t?t:Dt(e)&&void 0!==e[t]?e[t]:t}function tU(t,e,n,r){const i=t.node().parentElement;return i&&"function"==typeof i.findAll?i.findAll(t=>void 0!==t.style.facet&&t.style.facet===n&&t!==e.node()).flatMap(t=>t.getElementsByClassName(r)):[]}function eU(t,e,n){if(!t.__facet__)return;const r=t.parentNode.parentNode,i=e.parentNode,[A,o]=n(r),[a,s]=n(i);!function(t,e){const{transform:n}=t.style,r=(t=>"none"===t||void 0===t)(n)?"":n;t.style.transform=`${r} ${e}`.trimStart()}(t,`translate(${A-a}, ${o-s})`),e.append(t)}function nU(t,e,n,r){const{library:i}=r,[A]=Cg("shape",i),{data:o,encode:a}=t,{defaultShape:s,data:l,shape:c}=e,u=Ee(a,t=>t.value),d=l.map(t=>t.points),{theme:f,coordinate:h}=n,{type:p,style:g={}}=t,m=Object.assign(Object.assign({},r),{document:Eg(r),coordinate:h,theme:f});return e=>{const{shape:n=s}=g,{shape:r=n,points:i,seriesIndex:a,index:l}=e,h=KM(e,["shape","points","seriesIndex","index"]),y=Object.assign(Object.assign({},h),{index:l}),v=a?a.map(t=>o[t]):o[l],b=a||l,w=Ee(g,t=>JM(t,v,b,o,{channel:u}));return(c[r]?c[r](w,m):A(Object.assign(Object.assign({},w),{type:fU(t,r)}),m))(i,y,rU(f,p,r,s),d)}}function rU(t,e,n,r){if("string"!=typeof e)return;const{color:i}=t,A=t[e]||{};return Object.assign({color:i},A[n]||A[r])}function iU(t,e,n,r,i){var A,o;const[,a]=Cg("shape",i),[s]=Cg("animation",i),{defaultShape:l,shape:c}=n,{theme:u,coordinate:d}=r,f=`default${Dc(t)}Animation`,{[f]:h}=(null===(A=c[l])||void 0===A?void 0:A.props)||a(fU(e,l)).props,{[t]:p={}}=u,g=(null===(o=e.animate)||void 0===o?void 0:o[t])||{},m={coordinate:d};return(e,n,r)=>{const{[`${t}Type`]:i,[`${t}Delay`]:A,[`${t}Duration`]:o,[`${t}Easing`]:a}=e,l=Object.assign({type:i||h},g);if(!l.type)return null;const c=s(l,m)(n,r,Q(p,{delay:A,duration:o,easing:a}));let u=[];return u=Array.isArray(c)?c:[c],u.filter(Boolean)}}function AU(t,e,n,r){return iU("enter",t,e,n,r)}function oU(t){return t.finished.then(()=>{t.cancel()}),t}function aU(t,e,n,r){return iU("update",t,e,n,r)}function sU(t,e,n,r){return iU("exit",t,e,n,r)}function lU(t={}){if("string"==typeof t)return{type:t};const{type:e="light"}=t,n=KM(t,["type"]);return Object.assign(Object.assign({},n),{type:e})}function cU(t){const{interaction:e={}}=t;return Object.entries(Q({event:!0,tooltip:!0,sliderFilter:!0,legendFilter:!0,scrollbarFilter:!0},e)).reverse()}function uU(t,e){return RM(this,void 0,void 0,function*(){const{data:n}=t,r=KM(t,["data"]);if(null==n)return t;const[,{data:i}]=yield qy(0,{data:n},e);return Object.assign({data:i},r)})}function dU(t){t.style("transform",t=>`translate(${t.paddingLeft+t.marginLeft}, ${t.paddingTop+t.marginTop})`).style("width",t=>t.innerWidth).style("height",t=>t.innerHeight)}function fU(t,e){const{type:n}=t;return"string"==typeof e?`${n}.${e}`:e}function hU(t,e){const n=t=>void 0!==t.class?`${t.class}`:"";0!==t.nodes().length&&(t.selectAll(pU(rd)).data(e,t=>t.key).join(t=>t.append("g").attr("className",rd).attr("id",t=>t.key).style("facet",n).style("fill","transparent").style("zIndex",t=>{var e;return null!==(e=t.zIndex)&&void 0!==e?e:0}),t=>t.style("facet",n).style("fill","transparent").style("zIndex",t=>{var e;return null!==(e=t.zIndex)&&void 0!==e?e:0}),t=>t.remove()),t.select(pU(id)).node()||t.append("g").attr("className",id).style("zIndex",0))}function pU(...t){return t.map(t=>`.${t}`).join("")}function gU(t,e){t.node()&&t.style("clipPath",t=>{if(!e)return null;const{paddingTop:n,paddingLeft:r,marginLeft:i,marginTop:A,innerWidth:o,innerHeight:a}=t;return new $.rw({style:{x:r+i,y:n+A,width:o,height:a}})})}function mU(t){const{style:e,scale:n,type:r}=t,i={},A=Fl(e,"columnWidthRatio");return A&&"interval"===r&&(i.x=Object.assign(Object.assign({},null==n?void 0:n.x),{padding:1-A})),Object.assign(Object.assign({},t),{scale:Object.assign(Object.assign({},n),i)})}const yU=t=>{if(!t||"string"!=typeof t)return t;const e=t.endsWith("%")?parseFloat(t.slice(0,-1))/100:parseFloat(t);if(isNaN(e)||e<0||e>1)throw new Error(`Invalid gap value: ${t}. It should be between 0 and 1.`);return e};function vU(t){const{axis:e}=t,n=Fl(e,"y.breaks");return n&&Bu(t,"scale.y.breaks",n.map(t=>Object.assign(Object.assign({key:`break-${t.start}-${t.end}`},t),{gap:yU(t.gap)}))),t}function bU(t){const e=function(t){return function(...t){return e=>t.reduce((t,e)=>e(t),e)}(mU,vU)(t)}(t);return e.children&&Array.isArray(e.children)&&(e.children=e.children.map(t=>bU(t))),e}function wU(t,e){const n=new QQ.A4;return n.registerPlugin(new NQ),new $.Hl({width:t,height:e,container:document.createElement("div"),renderer:n})}function BU(t,e={},n=()=>{},r=t=>{throw t}){const i=uM(t),{width:A=640,height:o=480,depth:a=0}=i,s=function(t){const e=Q({},t),n=new Map([[e,null]]),r=new Map([[null,-1]]),i=[e];for(;i.length;){const t=i.shift();if(void 0===t.key){const e=n.get(t),i=r.get(t);t.key=null===e?"0":`${e.key}-${i}`}const{children:e=[]}=t;if(Array.isArray(e))for(let A=0;A<e.length;A++){const o=Q({},e[A]);e[A]=o,n.set(o,t),r.set(o,A),i.push(o)}}return e}(bU(i)),{canvas:l=wU(A,o),emitter:c=new DQ.A}=e;e.canvas=l,e.emitter=c,e.externals={};const{width:u,height:d}=l.getConfig();u===A&&d===o||l.resize(A,o),c.emit("beforerender");const f=zt(l.document.documentElement);return l.ready.then(()=>zM(Object.assign(Object.assign({},s),{width:A,height:o,depth:a}),f,e)).then(()=>{if(a){const[t,e]=l.document.documentElement.getPosition();l.document.documentElement.setPosition(t,e,-a/2)}l.requestAnimationFrame(()=>{l.requestAnimationFrame(()=>{c.emit("afterrender"),null==n||n()})})}).catch(t=>{null==r||r(t)}),"string"==typeof(h=l.getConfig().container)?document.getElementById(h):h;var h}function xU(t,e={},n=!1,r=!0){const{canvas:i,emitter:A}=e;i&&(function(t){const e=t.getRoot().querySelectorAll(".view");null==e||e.forEach(t=>{const{nameInteraction:e=new Map}=t;(null==e?void 0:e.size)>0&&Array.from(null==e?void 0:e.values()).forEach(t=>{null==t||t.destroy()})})}(i),n?i.destroy():i.destroyChildren()),r&&A.off()}const CU=t=>t?parseInt(t):0;function EU(t,e){const n=[t];for(;n.length;){const t=n.shift();e&&e(t);const r=t.children||[];for(const t of r)n.push(t)}}class OU{constructor(t={},e){this.parentNode=null,this.children=[],this.index=0,this.type=e,this.value=t}map(t=t=>t){const e=t(this.value);return this.value=e,this}attr(t,e){return 1===arguments.length?this.value[t]:this.map(n=>(n[t]=e,n))}append(t){const e=new t({});return e.children=[],this.push(e),e}push(t){return t.parentNode=this,t.index=this.children.length,this.children.push(t),this}remove(){const t=this.parentNode;if(t){const{children:e}=t,n=e.findIndex(t=>t===this);e.splice(n,1)}return this}getNodeByKey(t){let e=null;return EU(this,n=>{t===n.attr("key")&&(e=n)}),e}getNodesByType(t){const e=[];return EU(this,n=>{t===n.type&&e.push(n)}),e}getNodeByType(t){let e=null;return EU(this,n=>{e||t===n.type&&(e=n)}),e}call(t,...e){return t(this.map(),...e),this}getRoot(){let t=this;for(;t&&t.parentNode;)t=t.parentNode;return t}}var kU=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n};const FU=["width","height","depth","padding","paddingLeft","paddingRight","paddingBottom","paddingTop","inset","insetLeft","insetRight","insetTop","insetBottom","margin","marginLeft","marginRight","marginTop","marginBottom","autoFit","theme","title","interaction"],QU="__remove__",MU="__callback__";function UU(t){return Object.assign(Object.assign({},t.value),{type:t.type})}function SU(t,e){const{width:n,height:r,autoFit:i,depth:A=0}=t;let o=640,a=480;if(i){const{width:t,height:n}=function(t){const e=getComputedStyle(t),n=t.clientWidth||CU(e.width),r=t.clientHeight||CU(e.height);return{width:n-(CU(e.paddingLeft)+CU(e.paddingRight)),height:r-(CU(e.paddingTop)+CU(e.paddingBottom))}}(e);o=t||o,a=n||a}return o=n||o,a=r||a,{width:Math.max((0,bt.A)(o)?o:1,1),height:Math.max((0,bt.A)(a)?a:1,1),depth:A}}function _U(t,e,n,r,i){const{type:A}=t,{type:o=n||A}=e;if(function(t,e){return"function"!=typeof t&&new Set(Object.keys(e)).has(t)}(o,i)){for(const n of FU)void 0!==t.attr(n)&&void 0===e[n]&&(e[n]=t.attr(n));return e}if(function(t,e){return"function"==typeof t||new Set(Object.keys(e)).has(t)}(o,r)){const t={type:"view"},n=Object.assign({},e);for(const e of FU)void 0!==n[e]&&(t[e]=n[e],delete n[e]);return Object.assign(Object.assign({},t),{children:[n]})}return e}function IU(t,e,n){if("function"==typeof t){const e=new OU;return e.value=t,e.type=MU,e}const{type:r}=t,i=kU(t,["type","children"]),A=function(t,e,n){if("function"==typeof t)return e.mark;const r=Object.assign(Object.assign({},e),n)[t];if(!r)throw new Error(`Unknown mark: ${t}.`);return r}(r,e,n),o=new A;return o.value=i,o.type=r,o}function TU(t,e){const{type:n}=e,r=kU(e,["type","children"]);t.type===n||void 0===n?Kt(t.value,r):"string"==typeof n&&(t.type=n,t.value=r)}function LU(t,e,n,r){if(!t)return;const i=[[t,e]];for(;i.length;){const[t,e]=i.shift(),A=IU(e,n,r);Array.isArray(t.children)&&t.push(A);const{children:o}=e;if(Array.isArray(o))for(const t of o)i.push([A,t]);else"function"==typeof o&&i.push([A,o])}}function PU(t,e,{key:n=e}){t.prototype[e]=function(t){return 0===arguments.length?this.attr(n):this.attr(n,t)}}function jU(t,e,{key:n=e}){t.prototype[e]=function(t){if(0===arguments.length)return this.attr(n);if(Array.isArray(t))return this.attr(n,t);const e=[...this.attr(n)||[],t];return this.attr(n,e)}}function HU(t,e,{key:n=e}){t.prototype[e]=function(t,e){if(0===arguments.length)return this.attr(n);if(1===arguments.length&&"string"!=typeof t)return this.attr(n,t);const r=this.attr(n)||{};return r[t]=1===arguments.length||e,this.attr(n,r)}}function NU(t,e,n){t.prototype[e]=function(t){if(0===arguments.length)return this.attr(e);if(Array.isArray(t))return this.attr(e,{items:t});if(Dt(t)&&(void 0!==t.title||void 0!==t.items))return this.attr(e,t);if(null===t||!1===t)return this.attr(e,t);const n=this.attr(e)||{},{items:r=[]}=n;return r.push(t),n.items=r,this.attr(e,n)}}function DU(t,e,{ctor:n}){t.prototype[e]=function(t){const r=this.append(n);return"mark"===e&&(r.type=t),r}}function RU(t,e,{ctor:n}){t.prototype[e]=function(){return this.type=null,this.append(n)}}function KU(t){return e=>{for(const[n,r]of Object.entries(t)){const{type:t}=r;"value"===t?PU(e,n,r):"array"===t?jU(e,n,r):"object"===t?HU(e,n,r):"node"===t?DU(e,n,r):"container"===t?RU(e,n,r):"mix"===t&&NU(e,n)}return e}}function zU(t){return Object.fromEntries(Object.entries(t).map(([t,e])=>[t,{type:"node",ctor:e}]))}const GU={encode:{type:"object"},scale:{type:"object"},data:{type:"value"},transform:{type:"array"},style:{type:"object"},animate:{type:"object"},coordinate:{type:"object"},interaction:{type:"object"},label:{type:"array",key:"labels"},axis:{type:"object"},legend:{type:"object"},slider:{type:"object"},scrollbar:{type:"object"},state:{type:"object"},layout:{type:"object"},theme:{type:"object"},title:{type:"value"}},VU=Object.assign(Object.assign({},GU),{tooltip:{type:"mix"},viewStyle:{type:"object"}}),WU=Object.assign(Object.assign({},GU),{labelTransform:{type:"array"}});let XU=class extends OU{changeData(t){var e;const n=this.getRoot();if(n)return this.attr("data",t),(null===(e=this.children)||void 0===e?void 0:e.length)&&this.children.forEach(e=>{e.attr("data",t)}),null==n?void 0:n.render()}getView(){const t=this.getRoot(),{views:e}=t.getContext();if(null==e?void 0:e.length)return e.find(t=>t.key===this._key)}getScale(){var t;return null===(t=this.getView())||void 0===t?void 0:t.scale}getScaleByChannel(t){const e=this.getScale();if(e)return e[t]}getCoordinate(){var t;return null===(t=this.getView())||void 0===t?void 0:t.coordinate}getTheme(){var t;return null===(t=this.getView())||void 0===t?void 0:t.theme}getGroup(){const t=this._key;if(t)return this.getRoot().getContext().canvas.getRoot().getElementById(t)}show(){const t=this.getGroup();t&&!t.isVisible()&&wd(t)}hide(){const t=this.getGroup();t&&t.isVisible()&&bd(t)}};XU=function(t,e,n,r){var i,A=arguments.length,o=A<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(A<3?i(o):A>3?i(e,n,o):i(e,n))||o);return A>3&&o&&Object.defineProperty(e,n,o),o}([KU(WU)],XU);let YU=class extends OU{changeData(t){const e=this.getRoot();if(e)return this.attr("data",t),null==e?void 0:e.render()}getMark(){var t;const e=null===(t=this.getRoot())||void 0===t?void 0:t.getView();if(!e)return;const{markState:n}=e,r=Array.from(n.keys()).find(t=>t.key===this.attr("key"));return n.get(r)}getScale(){var t;const e=null===(t=this.getRoot())||void 0===t?void 0:t.getView();if(e)return null==e?void 0:e.scale}getScaleByChannel(t){var e,n;const r=null===(e=this.getRoot())||void 0===e?void 0:e.getView();if(r)return null===(n=null==r?void 0:r.scale)||void 0===n?void 0:n[t]}getGroup(){const t=this.attr("key");if(t)return this.getRoot().getContext().canvas.getRoot().getElementById(t)}};YU=function(t,e,n,r){var i,A=arguments.length,o=A<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(A<3?i(o):A>3?i(e,n,o):i(e,n))||o);return A>3&&o&&Object.defineProperty(e,n,o),o}([KU(VU)],YU);const $U={};const qU="G2_CHART_KEY",ZU=Object.assign({},Object.assign(Object.assign(Object.assign(Object.assign({},{"composition.geoView":hk,"composition.geoPath":pk}),{"data.arc":FF,"data.cluster":Mk,"mark.forceGraph":xk,"mark.tree":Lk,"mark.pack":nF,"mark.sankey":BF,"mark.chord":IF,"mark.treemap":jF,"mark.partition":Yb}),{"data.venn":FQ,"mark.boxplot":XF,"mark.gauge":nQ,"mark.wordCloud":To,"mark.liquid":uQ}),{"data.fetch":nx,"data.inline":rx,"data.sortBy":ix,"data.sort":Ax,"data.filter":ax,"data.pick":sx,"data.rename":lx,"data.fold":cx,"data.slice":ux,"data.custom":dx,"data.map":fx,"data.join":px,"data.kde":yx,"data.log":vx,"data.wordCloud":Dx,"data.ema":Rx,"transform.stackY":zw,"transform.binX":gB,"transform.bin":pB,"transform.dodgeX":mB,"transform.jitter":bB,"transform.jitterX":wB,"transform.jitterY":BB,"transform.symmetryY":xB,"transform.diffY":CB,"transform.stackEnter":EB,"transform.normalizeY":OB,"transform.select":UB,"transform.selectX":SB,"transform.selectY":_B,"transform.groupX":TB,"transform.groupY":LB,"transform.groupColor":PB,"transform.group":IB,"transform.sortX":HB,"transform.sortY":NB,"transform.sortColor":DB,"transform.flexX":RB,"transform.pack":zB,"transform.sample":VB,"transform.filter":WB,"coordinate.cartesian":s,"coordinate.polar":c,"coordinate.transpose":u,"coordinate.theta":d,"coordinate.parallel":f,"coordinate.fisheye":h,"coordinate.radial":g,"coordinate.radar":m,"coordinate.helix":y,"encode.constant":v,"encode.field":b,"encode.transform":w,"encode.column":B,"mark.interval":wn,"mark.rect":xn,"mark.line":dr,"mark.point":pi,"mark.text":Ji,"mark.cell":nA,"mark.area":gA,"mark.link":QA,"mark.image":SA,"mark.polygon":PA,"mark.box":DA,"mark.vector":KA,"mark.lineX":XA,"mark.lineY":qA,"mark.connector":no,"mark.range":oo,"mark.rangeX":lo,"mark.rangeY":fo,"mark.path":vo,"mark.shape":Bo,"mark.density":Eo,"mark.heatmap":Io,"mark.wordCloud":To,"mark.beeswarm":Ro,"palette.category10":Ko,"palette.category20":zo,"scale.linear":Go,"scale.ordinal":Vo,"scale.band":Wo,"scale.identity":sa,"scale.point":ca,"scale.time":Za,"scale.log":As,"scale.pow":ss,"scale.sqrt":cs,"scale.threshold":ds,"scale.quantile":ps,"scale.quantize":ms,"scale.sequential":bs,"scale.constant":ws,"theme.classic":Fs,"theme.classicDark":Us,"theme.academy":_s,"theme.light":ks,"theme.dark":Ms,"component.axisX":du,"component.axisY":fu,"component.legendCategory":bf,"component.legendContinuous":lh,"component.legends":ch,"component.title":hh,"component.sliderX":zh,"component.sliderY":Gh,"component.scrollbarX":Xh,"component.scrollbarY":Yh,"animation.scaleInX":$h,"animation.scaleOutX":(t,e)=>{const{coordinate:n}=e;return(e,r,i)=>{const[A]=e,{transform:o="",fillOpacity:a=1,strokeOpacity:s=1,opacity:l=1}=A.style,[c,u]=D(n)?["left bottom","scale(1, 0.0001)"]:["left top","scale(0.0001, 1)"],d=[{transform:`${o} scale(1, 1)`.trimStart(),transformOrigin:c},{transform:`${o} ${u}`.trimStart(),transformOrigin:c,fillOpacity:a,strokeOpacity:s,opacity:l,offset:.99},{transform:`${o} ${u}`.trimStart(),transformOrigin:c,fillOpacity:0,strokeOpacity:0,opacity:0}];return A.animate(d,Object.assign(Object.assign({},i),t))}},"animation.scaleInY":qh,"animation.scaleOutY":(t,e)=>{const{coordinate:n}=e;return(e,r,i)=>{const[A]=e,{transform:o="",fillOpacity:a=1,strokeOpacity:s=1,opacity:l=1}=A.style,[c,u]=D(n)?["left top","scale(0.0001, 1)"]:["left bottom","scale(1, 0.0001)"],d=[{transform:`${o} scale(1, 1)`.trimStart(),transformOrigin:c},{transform:`${o} ${u}`.trimStart(),transformOrigin:c,fillOpacity:a,strokeOpacity:s,opacity:l,offset:.99},{transform:`${o} ${u}`.trimStart(),transformOrigin:c,fillOpacity:0,strokeOpacity:0,opacity:0}];return A.animate(d,Object.assign(Object.assign({},i),t))}},"animation.waveIn":Zh,"animation.fadeIn":Jh,"animation.fadeOut":tp,"animation.zoomIn":t=>(e,n,r)=>{const[i]=e,{transform:A="",fillOpacity:o=1,strokeOpacity:a=1,opacity:s=1}=i.style,l="center center",c=[{transform:`${A} scale(0.0001)`.trimStart(),transformOrigin:l,fillOpacity:0,strokeOpacity:0,opacity:0},{transform:`${A} scale(0.0001)`.trimStart(),transformOrigin:l,fillOpacity:o,strokeOpacity:a,opacity:s,offset:.01},{transform:`${A} scale(1)`.trimStart(),transformOrigin:l,fillOpacity:o,strokeOpacity:a,opacity:s}];return i.animate(c,Object.assign(Object.assign({},r),t))},"animation.zoomOut":t=>(e,n,r)=>{const[i]=e,{transform:A="",fillOpacity:o=1,strokeOpacity:a=1,opacity:s=1}=i.style,l="center center",c=[{transform:`${A} scale(1)`.trimStart(),transformOrigin:l},{transform:`${A} scale(0.0001)`.trimStart(),transformOrigin:l,fillOpacity:o,strokeOpacity:a,opacity:s,offset:.99},{transform:`${A} scale(0.0001)`.trimStart(),transformOrigin:l,fillOpacity:0,strokeOpacity:0,opacity:0}];return i.animate(c,Object.assign(Object.assign({},r),t))},"animation.pathIn":ep,"animation.morphing":hp,"animation.growInX":pp,"animation.growInY":gp,"interaction.elementHighlight":mp,"interaction.elementHighlightByX":yp,"interaction.elementHighlightByColor":vp,"interaction.elementHoverScale":bp,"interaction.elementSelect":wp,"interaction.elementSelectByX":Bp,"interaction.elementSelectByColor":xp,"interaction.fisheye":function({wait:t=30,leading:e,trailing:n=!1}){return r=>{const{update:i,setState:A,container:o}=r,a=Od(o),s=qu(t=>{const e=Fd(a,t);if(!e)return A("fisheye"),void i();A("fisheye",t=>{const n=Q({},t,{interaction:{tooltip:{preserve:!0}}});for(const t of n.marks)t.animate=!1;const[r,i]=e,A=function(t){const{coordinate:e={}}=t,{transform:n=[]}=e,r=n.find(t=>"fisheye"===t.type);if(r)return r;const i={type:"fisheye"};return n.push(i),e.transform=n,t.coordinate=e,i}(n);return A.focusX=r,A.focusY=i,A.visual=!0,n}),i()},t,{leading:e,trailing:n});return a.addEventListener("pointerenter",s),a.addEventListener("pointermove",s),a.addEventListener("pointerleave",s),()=>{a.removeEventListener("pointerenter",s),a.removeEventListener("pointermove",s),a.removeEventListener("pointerleave",s)}}},"interaction.chartIndex":Cp,"interaction.tooltip":Fv,"interaction.legendFilter":function(){return(t,e,n)=>{const{container:r}=t,i=e.filter(e=>e!==t),A=i.length>0,o=t=>ff(t).scales.map(t=>t.name),a=[...uf(r),...(s=r,s.getElementsByClassName(of)),...df(r)];var s;const l=a.flatMap(o),c=qu(A?pf:hf,50,{trailing:!0}),u=a.map(e=>{const{name:a,domain:s}=ff(e).scales[0],u={legend:e,channel:a,channels:o(e),allChannels:l};return e.className===Af?function(t,{legends:e,marker:n,label:r,datum:i,filter:A,defaultSelect:o,emitter:a,channel:s,state:l={}}){const c=new Map,u=new Map,d=new Map,f=new Map,{unselected:h={markerStroke:"#aaa",markerFill:"#aaa",labelFill:"#aaa"}}=l,p={unselected:Pt(h,"marker")},g={unselected:Pt(h,"label")},{setState:m,removeState:y}=Pd(p,void 0),{setState:v,removeState:b}=Pd(g,void 0),w=Array.from(e(t));let B=w.map(i);const x=()=>{for(const t of w){const e=i(t),A=n(t),o=r(t);B.includes(e)?(y(A,"unselected"),b(o,"unselected")):(m(A,"unselected"),v(o,"unselected"))}};for(const e of w){const n=()=>{zd(t,"pointer")},r=()=>{Gd(t)},o=t=>rf(this,void 0,void 0,function*(){const n=i(e),r=B.indexOf(n);-1===r?B.push(n):B.splice(r,1),yield A(B),x();const{nativeEvent:o=!0}=t;o&&(B.length===w.length?a.emit("legend:reset",{nativeEvent:o}):a.emit("legend:filter",Object.assign(Object.assign({},t),{nativeEvent:o,data:{channel:s,values:B}})))});e.addEventListener("click",o),e.addEventListener("pointerenter",n),e.addEventListener("pointerout",r),c.set(e,o),u.set(e,n),d.set(e,r);const l=lf(e);if(l){const t=t=>rf(this,void 0,void 0,function*(){t.stopPropagation();const n=i(e),r=B.indexOf(n),{nativeEvent:o=!0}=t;if(-1!==r&&1===B.length){if(!o)return;B=w.map(i),yield A(B),x(),a.emit("legend:reset",{nativeEvent:o})}else{if(B=[n],yield A(B),x(),!o)return;a.emit("legend:focus",Object.assign(Object.assign({},t),{nativeEvent:o,data:{channel:s,value:n}}))}});l.addEventListener("click",t),f.set(e,t)}}const C=t=>rf(this,void 0,void 0,function*(){const{nativeEvent:e}=t;if(e)return;const{data:n}=t,{channel:r,value:i}=n;r===s&&(B=[i],yield A(B),x())}),E=t=>rf(this,void 0,void 0,function*(){const{nativeEvent:e}=t;if(e)return;const{data:n}=t,{channel:r,values:i}=n;r===s&&(B=i,yield A(B),x())}),O=t=>rf(this,void 0,void 0,function*(){const{nativeEvent:e}=t;e||(B=w.map(i),yield A(B),x())});return a.on("legend:filter",E),a.on("legend:focus",C),a.on("legend:reset",O),o&&a.emit("legend:filter",{data:{channel:s,values:o}}),()=>{for(const t of w){t.removeEventListener("click",c.get(t)),t.removeEventListener("pointerenter",u.get(t)),t.removeEventListener("pointerout",d.get(t));const e=lf(t);e&&e.removeEventListener("click",f.get(t))}a.off("legend:focus",C),a.off("legend:filter",E),a.off("legend:reset",O)}}(e,{legends:cf,marker:af,label:sf,datum:t=>{const{__data__:e}=t,{index:n}=e;return s[n]},filter:e=>{const n=Object.assign(Object.assign({},u),{value:e,ordinal:!0});c(A?i:t,n)},state:e.attributes.state,defaultSelect:e.attributes.defaultSelect,channel:a,emitter:n}):e.className===of?function(t,{domain:e,filter:n,defaultSelect:r,emitter:i,channel:A}){const o=new Map,a=new Map,s=new Map;let l=[...e];const c=()=>{var e;const n=null===(e=t.ownerDocument)||void 0===e?void 0:e.defaultView;return n&&n.getContextService().getDomElement().parentElement||document.body},u=()=>{c().querySelectorAll("[legend-value]").forEach(t=>{const n=t.getAttribute("legend-value");if(!n)return;if(!e.includes(n))return;const r=t;l.includes(n)?(r.style.opacity="1",r.classList.remove("legend-item-inactive")):(r.style.opacity="0.4",r.classList.add("legend-item-inactive"))})};(()=>{const t=c().querySelector(".legend-html"),r=r=>rf(this,void 0,void 0,function*(){let o=r.target;for(;o&&!o.hasAttribute("legend-value")&&(o=o.parentElement,o!==t););if(!o||!o.hasAttribute("legend-value"))return;r.preventDefault(),r.stopPropagation();const a=o.getAttribute("legend-value");if(!a)return;const s=l.indexOf(a);-1===s?l.push(a):l.splice(s,1),yield n(l),u(),l.length===e.length?i.emit("legend:reset",{nativeEvent:!0}):i.emit("legend:filter",{nativeEvent:!0,data:{channel:A,values:l}})});t.addEventListener("click",r),o.set(t,r)})();const d=t=>rf(this,void 0,void 0,function*(){const{nativeEvent:e}=t;if(e)return;const{data:r}=t,{channel:i,value:o}=r;i===A&&(l=[o],yield n(l),u())}),f=t=>rf(this,void 0,void 0,function*(){const{nativeEvent:e}=t;if(e)return;const{data:r}=t,{channel:i,values:o}=r;i===A&&(l=o,yield n(l),u())}),h=t=>rf(this,void 0,void 0,function*(){const{nativeEvent:r}=t;r||(l=[...e],yield n(l),u())});return i.on("legend:filter",f),i.on("legend:focus",d),i.on("legend:reset",h),r&&i.emit("legend:filter",{data:{channel:A,values:r}}),()=>{c().querySelectorAll("[legend-value]").forEach(t=>{const n=t.getAttribute("legend-value");if(!n)return;if(!e.includes(n))return;const r=o.get(t),i=a.get(t),A=s.get(t);r&&t.removeEventListener("click",r),i&&t.removeEventListener("pointerenter",i),A&&t.removeEventListener("pointerout",A)}),o.clear(),a.clear(),s.clear(),i.off("legend:filter",f),i.off("legend:focus",d),i.off("legend:reset",h)}}(r,{domain:s,filter:e=>{const n=Object.assign(Object.assign({},u),{value:e,ordinal:!0});c(A?i:t,n)},defaultSelect:e.attributes.defaultSelect,channel:a,emitter:n}):function(t,{legend:e,filter:n,emitter:r,channel:i}){const{attributes:A}=e,o=t=>{const{value:e}=t.detail,o=e.map(t=>{var e,n;const r=null===(e=A.data)||void 0===e?void 0:e.find(e=>e.value===t);return r&&null!==(n=r.domainValue)&&void 0!==n?n:t});n(o),r.emit({nativeEvent:!0,data:{channel:i,values:o}})};return e.addEventListener("valuechange",o),()=>{e.removeEventListener("valuechange",o)}}(0,{legend:e,filter:e=>{const n=Object.assign(Object.assign({},u),{value:e,ordinal:!1});c(A?i:t,n)},emitter:n,channel:a})});return()=>{u.forEach(t=>t())}}},"interaction.legendHighlight":function(){return(t,e,n)=>{const{container:r,view:i,options:A}=t,o=uf(r),a=xd(r),s=t=>ff(t).scales[0].name,l=t=>{const{scale:{[t]:e}}=i;return e},c=Hd(A,["active","inactive"]),u=Nd(a,Sd(i)),d=[];for(const t of o){const e=e=>{const{data:n}=t.attributes,{__data__:r}=e,{index:i}=r;return n[i].label},r=s(t),i=cf(t),A=l(r),o=et(a,t=>A.invert(t.__data__[r])),{state:f={}}=t.attributes,{inactive:h={}}=f,{setState:p,removeState:g}=Pd(c,u),m={inactive:Pt(h,"marker")},y={inactive:Pt(h,"label")},{setState:v,removeState:b}=Pd(m),{setState:w,removeState:B}=Pd(y),x=t=>{for(const e of i){const n=af(e),r=sf(e);e===t||null===t?(b(n,"inactive"),B(r,"inactive")):(v(n,"inactive"),w(r,"inactive"))}},C=(t,i)=>{const A=e(i),s=new Set(o.get(A));for(const t of a)s.has(t)?p(t,"active"):p(t,"inactive");x(i);const{nativeEvent:l=!0}=t;l&&n.emit("legend:highlight",Object.assign(Object.assign({},t),{nativeEvent:l,data:{channel:r,value:A}}))},E=new Map;for(const t of i){const e=e=>{C(e,t)};t.addEventListener("pointerover",e),E.set(t,e)}const O=t=>{for(const t of a)g(t,"inactive","active");x(null);const{nativeEvent:e=!0}=t;e&&n.emit("legend:unhighlight",{nativeEvent:e})},k=t=>{const{nativeEvent:n,data:A}=t;if(n)return;const{channel:o,value:a}=A;if(o!==r)return;const s=i.find(t=>e(t)===a);s&&C({nativeEvent:!1},s)},F=t=>{const{nativeEvent:e}=t;e||O({nativeEvent:!1})};t.addEventListener("pointerleave",O),n.on("legend:highlight",k),n.on("legend:unhighlight",F),d.push(()=>{t.removeEventListener(O),n.off("legend:highlight",k),n.off("legend:unhighlight",F);for(const[t,e]of E)t.removeEventListener(e)})}return()=>d.forEach(t=>t())}},"interaction.brushHighlight":jv,"interaction.brushXHighlight":function(t){return jv(Object.assign(Object.assign({},t),{brushRegion:Hv,selectedHandles:["handle-e","handle-w"]}))},"interaction.brushYHighlight":function(t){return jv(Object.assign(Object.assign({},t),{brushRegion:Nv,selectedHandles:["handle-n","handle-s"]}))},"interaction.brushAxisHighlight":function(t){return(e,n,r)=>{const{container:i,view:A,options:o}=e,a=Od(i),{x:s,y:l}=a.getBBox(),{coordinate:c}=A;return function(t,e){var{axes:n,elements:r,points:i,horizontal:A,datum:o,offsetY:a,offsetX:s,reverse:l=!1,state:c={},emitter:u,coordinate:d}=e,f=Dv(e,["axes","elements","points","horizontal","datum","offsetY","offsetX","reverse","state","emitter","coordinate"]);const h=r(t),p=n(t),g=Nd(h,o),{setState:m,removeState:y}=Pd(c,g),v=new Map,b=Pt(f,"mask"),w=t=>Array.from(v.values()).every(([e,n,r,i])=>t.some(([t,A])=>t>=e&&t<=r&&A>=n&&A<=i)),B=p.map(t=>t.attributes.scale),x=t=>t.length>2?[t[0],t[t.length-1]]:t,C=new Map,E=()=>{C.clear();for(let t=0;t<p.length;t++){const e=B[t],{domain:n}=e.getOptions();C.set(t,x(n))}};E();const O=(t,e)=>{const n=[];for(const t of h){const e=i(t);w(e)?(m(t,"active"),n.push(t)):m(t,"inactive")}C.set(t,F(n,t)),e&&u.emit("brushAxis:highlight",{nativeEvent:!0,data:{selection:(()=>{if(!Q)return Array.from(C.values());const t=[];for(const[e,n]of C){const r=B[e],{name:i}=r.getOptions();"x"===i?t[0]=n:t[1]=n}return t})()}})},k=t=>{for(const t of h)y(t,"active","inactive");E(),t&&u.emit("brushAxis:remove",{nativeEvent:!0})},F=(t,e)=>{const n=B[e],{name:r}=n.getOptions(),i=t.map(t=>n.invert(t.__data__[r]));return x(dd(n,i))},Q=p.some(A)&&p.some(t=>!A(t)),M=[];for(let t=0;t<p.length;t++){const e=p[t],n=A(e)?Wv:Vv,{hotZone:r,brushRegion:i,extent:o}=n(e,{offsetY:a,offsetX:s,cross:Q,zIndex:999,fill:"transparent"});e.parentNode.appendChild(r);const c=Iv(r,Object.assign(Object.assign({},b),{reverse:l,brushRegion:i,brushended(n){v.delete(e),0===Array.from(v.entries()).length?k(n):O(t,n)},brushed(n,r,i,A,a){v.set(e,o(n,r,i,A)),O(t,a)}}));M.push(c)}const U=(t={})=>{const{nativeEvent:e}=t;e||M.forEach(t=>t.remove(!1))},S=(t,e,n)=>{const[r,i]=t,o=_(r,e,n),a=_(i,e,n)+(t=>t.getStep?t.getStep():0)(e);return A(n)?[o,-1/0,a,1/0]:[-1/0,o,1/0,a]},_=(t,e,n)=>{const{height:r,width:i}=d.getOptions(),o=e.clone();return A(n)?o.update({range:[0,i]}):o.update({range:[r,0]}),o.map(t)},I=t=>{const{nativeEvent:e}=t;if(e)return;const{selection:n}=t.data;for(let t=0;t<M.length;t++){const e=n[t],r=M[t];e?r.move(...S(e,B[t],p[t]),!1):r.remove(!1)}};return u.on("brushAxis:remove",U),u.on("brushAxis:highlight",I),()=>{M.forEach(t=>t.destroy()),u.off("brushAxis:remove",U),u.off("brushAxis:highlight",I)}}(i,Object.assign({elements:xd,axes:Kv,offsetY:l,offsetX:s,points:t=>t.__data__.points,horizontal:t=>{const{startPos:[e,n],endPos:[r,i]}=t.attributes;return e!==r&&n===i},datum:Sd(A),state:Hd(o,["active",["inactive",{opacity:.5}]]),coordinate:c,emitter:r},t))}},"interaction.brushFilter":Yv,"interaction.brushXFilter":function(t){return Yv(Object.assign(Object.assign({hideX:!0},t),{brushRegion:Hv}))},"interaction.brushYFilter":function(t){return Yv(Object.assign(Object.assign({hideY:!0},t),{brushRegion:Nv}))},"interaction.sliderFilter":Ab,"interaction.sliderWheel":ab,"interaction.scrollbarFilter":function(t={}){return(e,n,r)=>{const{view:i,container:A}=e;if(!A.getElementsByClassName(sb).length)return()=>{};const{scale:o}=i,{x:a,y:s}=o,l={x:[...a.getOptions().domain],y:[...s.getOptions().domain]};return a.update({domain:a.getOptions().expectedDomain}),s.update({domain:s.getOptions().expectedDomain}),Ab(Object.assign({initDomain:l,className:sb,prefix:"scrollbar",hasState:!0,setValue:(t,e)=>t.setValue(e[0]),getInitValues:t=>{const e=t.slider.attributes.values;if(0!==e[0]||1!==e[1])return e},adaptiveMode:!1},t))(e,n,r)}},"interaction.poptip":db,"interaction.treemapDrillDown":function(t={}){const{originData:e=[],layout:n}=t,r=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n}(t,["originData","layout"]),i=Q({},Rb,r),A=Pt(i,"breadCrumb"),o=Pt(i,"active");return t=>{const{update:r,setState:i,container:a,options:s}=t,l=zt(a).select(".plot").node(),c=s.marks[0],{state:u}=c,d=new $.YJ;l.appendChild(d);const f=(t,s)=>{return c=this,u=void 0,p=function*(){if(d.removeChildren(),s){let e="",n=A.y,r=0;const i=[],a=l.getBBox().width,s=t.map((o,s)=>{e=`${e}${o}/`,i.push(o);const l=new $.EY({name:e.replace(/\/$/,""),style:Object.assign(Object.assign({text:o,x:r,path:[...i],depth:s},A),{y:n})});d.appendChild(l),r+=l.getBBox().width;const c=new $.EY({style:Object.assign(Object.assign({x:r,text:" / "},A),{y:n})});return d.appendChild(c),r+=c.getBBox().width,r>a&&(n=d.getBBox().height+A.y,r=0,l.attr({x:r,y:n}),r+=l.getBBox().width,c.attr({x:r,y:n}),r+=c.getBBox().width),s===Xo(t)-1&&c.remove(),l});s.forEach((t,e)=>{if(e===Xo(s)-1)return;const n=Object.assign({},t.attributes);t.attr("cursor","pointer"),t.addEventListener("mouseenter",()=>{t.attr(o)}),t.addEventListener("mouseleave",()=>{t.attr(n)}),t.addEventListener("click",()=>{f(Fl(t,["style","path"]),Fl(t,["style","depth"]))})})}!function(t,e){[...uf(t),...df(t)].forEach(t=>{e(t,t=>t)})}(a,i),i("treemapDrillDown",r=>{const{marks:i}=r,A=t.join("/"),o=i.map(t=>{if("rect"!==t.type)return t;let r=e;if(s){const t=e.filter(t=>{const e=Fl(t,["id"]);return e&&(e.match(`${A}/`)||A.match(e))}).map(t=>({value:0===t.height?Fl(t,["value"]):void 0,name:Fl(t,["id"])})),{paddingLeft:i,paddingBottom:o,paddingRight:a}=n,l=Object.assign(Object.assign({},n),{paddingTop:(n.paddingTop||d.getBBox().height+10)/(s+1),paddingLeft:i/(s+1),paddingBottom:o/(s+1),paddingRight:a/(s+1),path:t=>t.name,layer:t=>t.depth===s+1});r=Db(t,l,{value:"value"})[0]}else r=e.filter(t=>1===t.depth);const i=[];return r.forEach(({path:t})=>{i.push(re(t))}),Q({},t,{data:r,scale:{color:{domain:i}}})});return Object.assign(Object.assign({},r),{marks:o})}),yield r(void 0,["legendFilter"])},new((h=void 0)||(h=Promise))(function(t,e){function n(t){try{i(p.next(t))}catch(t){e(t)}}function r(t){try{i(p.throw(t))}catch(t){e(t)}}function i(e){e.done?t(e.value):function(t){return t instanceof h?t:new h(function(e){e(t)})}(e.value).then(n,r)}i((p=p.apply(c,u||[])).next())});var c,u,h,p},h=t=>{const n=t.target,{markType:r,nodeName:i,attributes:A}=n||{};if("rect"!==r&&i!==$.yp.TEXT)return;const o=i===$.yp.TEXT&&!0===Fl(A,"isTreemapLabel")?(t=>t.attributes.key.split("-")[0])(n):(t=>Fl(t,["__data__","key"]))(n),a=hb(e,t=>t.id===o);Fl(a,"height")&&f(Fl(a,"path"),Fl(a,"depth"))};l.addEventListener("click",h);const p=fb(Object.assign(Object.assign({},u.active),u.inactive)),g=()=>{Yd(l).forEach(t=>{const n=Fl(t,["style","cursor"]),r=hb(e,e=>e.id===Fl(t,["__data__","key"]));if("pointer"!==n&&(null==r?void 0:r.height)){t.style.cursor="pointer";const e=gb(t.attributes,p);t.addEventListener("mouseenter",()=>{t.attr(u.active)}),t.addEventListener("mouseleave",()=>{t.attr(Q(e,u.inactive))})}})};return g(),l.addEventListener("mousemove",g),()=>{d.remove(),l.removeEventListener("click",h),l.removeEventListener("mousemove",g)}}},"interaction.drillDown":function(t={}){const{breadCrumb:e={}}=t,n=Q({},$b,e);return t=>{const{update:e,setState:r,container:i,options:A}=t,o=i.ownerDocument,a=zt(i).select(".plot").node(),s=A.marks.find(({id:t})=>t===Kb);if(!s)return;const{state:l}=s,c=o.createElement("g");c.style.transform=`translate(${n.x||0}px, ${n.y||0}px)`,c.setAttribute("x","drilldown-breadcrumb"),a.appendChild(c);const u=t=>{return i=this,A=void 0,l=function*(){if(c.removeChildren(),t&&t.length>0){const e=o.createElement("text",{style:Object.assign({text:n.rootText},n.style)});c.appendChild(e);let r="";const i=t;let A=n.style.y,s=e.getBBox().width;const l=a.getBBox().width,d=i.map((t,e)=>{const i=o.createElement("text",{style:Object.assign(Object.assign({x:s,text:" / "},n.style),{y:A})});c.appendChild(i),s+=i.getBBox().width,r=`${r}${t} / `;const a=o.createElement("text",{name:r.replace(/\s\/\s$/,""),style:Object.assign(Object.assign({text:t,x:s},n.style),{y:A})});return c.appendChild(a),s+=a.getBBox().width,s>l&&(A=c.getBBox().height,s=0,i.attr({x:s,y:A}),s+=i.getBBox().width,a.attr({x:s,y:A}),s+=a.getBBox().width),a});[e,...d].forEach((e,r)=>{if(r===d.length)return;const i=Object.assign({},e.attributes);e.attr("cursor","pointer"),e.addEventListener("mouseenter",()=>{e.attr(n.active)}),e.addEventListener("mouseleave",()=>{e.attr(i)}),e.addEventListener("click",()=>{u(t.slice(0,r))})})}r("drillDown",e=>{const{marks:n}=e,r=n.map(e=>{if(e.id!==Kb&&"rect"!==e.type)return e;const{data:n}=e,r=n.filter(e=>{var n;const r=null!==(n=e.path)&&void 0!==n?n:[];if(0===t.length)return!0;if(!Array.isArray(r)||r.length<t.length)return!1;for(let e=0;e<t.length;e++)if(r[e]!==t[e])return!1;return!0});return Q({},e,{data:r})});return Object.assign(Object.assign({},e),{marks:r})}),yield e()},new((s=void 0)||(s=Promise))(function(t,e){function n(t){try{o(l.next(t))}catch(t){e(t)}}function r(t){try{o(l.throw(t))}catch(t){e(t)}}function o(e){e.done?t(e.value):function(t){return t instanceof s?t:new s(function(e){e(t)})}(e.value).then(n,r)}o((l=l.apply(i,A||[])).next())});var i,A,s,l},d=t=>{var e,n;const r=t.target,i=r.style||{},A=r.__data__;if("rect"!==r.markType||i[zb]!==Kb||!i[Wb])return;const o=null!==(n=null===(e=null==A?void 0:A.data)||void 0===e?void 0:e.path)&&void 0!==n?n:[];u(o)};a.addEventListener("click",d);const f=fb(Object.assign(Object.assign({},l.active),l.inactive)),h=()=>{const t=(t=>t.querySelectorAll(".element").filter(t=>(t.style||{})[zb]===Kb))(a);t.forEach(t=>{const e=Fl(t,["style",Wb]);if("pointer"!==Fl(t,["style","cursor"])&&e){t.style.cursor="pointer";const e=gb(t.attributes,f);t.addEventListener("mouseenter",()=>{t.attr(l.active)}),t.addEventListener("mouseleave",()=>{t.attr(Q(e,l.inactive))})}})};return a.addEventListener("mousemove",h),()=>{c.remove(),a.removeEventListener("click",d),a.removeEventListener("mousemove",h)}}},"interaction.elementPointMove":function(t={}){const{selection:e=[],precision:n=2}=t,r=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n}(t,["selection","precision"]),i=Object.assign(Object.assign({},Zb),r||{}),A=Pt(i,"path"),o=Pt(i,"label"),a=Pt(i,"point");return(t,r,i)=>{const{update:s,setState:l,container:c,view:u,options:{marks:d,coordinate:f}}=t,h=Od(c);let p,g=Yd(h),m=e;const{transform:y=[],type:v}=f,b=!!hb(y,({type:t})=>"transpose"===t),w="polar"===v,B="theta"===v,x=!!hb(g,({markType:t})=>"area"===t);x&&(g=g.filter(({markType:t})=>"area"===t));const C=new $.YJ({style:{zIndex:2}});h.appendChild(C);const E=()=>{i.emit("element-point:select",{nativeEvent:!0,data:{selection:m}})},O=t=>{const e=t.target;m=[e.parentNode.childNodes.indexOf(e)],E(),F(e)},k=t=>{const{data:{selection:e},nativeEvent:n}=t;if(n)return;m=e;const r=Fl(g,[null==m?void 0:m[0]]);r&&F(r)},F=t=>{const{attributes:e,markType:r,__data__:f}=t,{stroke:h}=e,{points:g,seriesTitle:y,color:v,title:O,seriesX:k,y1:M}=f;if(b&&"interval"!==r)return;const{scale:U,coordinate:S}=(null==p?void 0:p.view)||u,{color:_,y:I,x:T}=U,L=S.getCenter();let P;C.removeChildren();const j=(t,e,n,r)=>qb(this,void 0,void 0,function*(){return l("elementPointMove",A=>{var o;const a=((null===(o=null==p?void 0:p.options)||void 0===o?void 0:o.marks)||d).map(A=>{if(!r.includes(A.type))return A;const{data:o,encode:a}=A,s=Object.keys(a).reduce((r,i)=>{const A=a[i];return"x"===i&&(r[A]=t),"y"===i&&(r[A]=e),"color"===i&&(r[A]=n),r},{}),l=((t,e,n)=>e.map(e=>{const r=["x","color"].reduce((r,i)=>{const A=n[i];return A?e[A]===t[A]&&r:r},!0);return r?Object.assign(Object.assign({},e),t):e}))(s,o,a);return((t,e)=>{i.emit("element-point:moved",{nativeEvent:!0,data:{changeData:t,data:e}})})(s,l),Q({},A,{data:l,animate:!1})});return Object.assign(Object.assign({},A),{marks:a})}),yield s("elementPointMove")});if(["line","area"].includes(r))g.forEach((e,r)=>{const i=T.invert(k[r]);if(!i)return;const s=new $.jl({name:Jb,style:Object.assign({cx:e[0],cy:e[1],fill:h},a)}),l=((t,e)=>{const n=Fl(t,["__data__","seriesItems",e,"0","value"]),r=Fl(t,["__data__","seriesIndex",e]),{__data__:{data:i,encode:A,transform:o}}=t.parentNode,a=hb(o,({type:t})=>"normalizeY"===t),s=Fl(A,["y","field"]),l=i[r][s];return t=>a?1===n?t:t/(1-t)/(n/(1-n))*l:t})(t,r);s.addEventListener("mousedown",u=>{const d=S.output([k[r],0]),f=null==y?void 0:y.length;c.attr("cursor","move"),m[1]!==r&&(m[1]=r,E()),nw(C.childNodes,m,a);const[h,b]=rw(C,s,A,o),B=t=>{const i=e[1]+t.clientY-P[1];if(x)if(w){const A=e[0]+t.clientX-P[0],[o,a]=Aw(L,d,[A,i]),[,c]=S.output([1,I.output(0)]),[,u]=S.invert([o,c-(g[r+f][1]-a)]),p=(r+1)%f,m=Xd([g[(r-1+f)%f],[o,a],y[p]&&g[p]]);b.attr("text",l(I.invert(u)).toFixed(n)),h.attr("d",m),s.attr("cx",o),s.attr("cy",a)}else{const[,t]=S.output([1,I.output(0)]),[,A]=S.invert([e[0],t-(g[r+f][1]-i)]),o=Xd([g[r-1],[e[0],i],y[r+1]&&g[r+1]]);b.attr("text",l(I.invert(A)).toFixed(n)),h.attr("d",o),s.attr("cy",i)}else{const[,t]=S.invert([e[0],i]),A=Xd([g[r-1],[e[0],i],g[r+1]]);b.attr("text",I.invert(t).toFixed(n)),h.attr("d",A),s.attr("cy",i)}};P=[u.clientX,u.clientY],window.addEventListener("mousemove",B);const O=()=>qb(this,void 0,void 0,function*(){if(c.attr("cursor","default"),window.removeEventListener("mousemove",B),c.removeEventListener("mouseup",O),(0,pe.A)(b.attr("text")))return;const e=Number(b.attr("text")),n=iw(_,v);p=yield j(i,e,n,["line","area"]),b.remove(),h.remove(),F(t)});c.addEventListener("mouseup",O)}),C.appendChild(s)}),nw(C.childNodes,m,a);else if("interval"===r){let e=[(g[0][0]+g[1][0])/2,g[0][1]];b?e=[g[0][0],(g[0][1]+g[1][1])/2]:B&&(e=g[0]);const i=(t=>{const e=Fl(t,["__data__","y"]),n=Fl(t,["__data__","y1"])-e,{__data__:{data:r,encode:i,transform:A},childNodes:o}=t.parentNode,a=hb(A,({type:t})=>"normalizeY"===t),s=Fl(i,["y","field"]),l=r[o.indexOf(t)][s];return(t,e=!1)=>a||e?t/(1-t)/(n/(1-n))*l:t})(t),s=new $.jl({name:Jb,style:Object.assign(Object.assign({cx:e[0],cy:e[1],fill:h},a),{stroke:a.activeStroke})});s.addEventListener("mousedown",a=>{c.attr("cursor","move");const l=iw(_,v),[u,d]=rw(C,s,A,o),f=t=>{if(b){const r=e[0]+t.clientX-P[0],[A]=S.output([I.output(0),I.output(0)]),[,o]=S.invert([A+(r-g[2][0]),e[1]]),a=Xd([[r,g[0][1]],[r,g[1][1]],g[2],g[3]],!0);d.attr("text",i(I.invert(o)).toFixed(n)),u.attr("d",a),s.attr("cx",r)}else if(B){const r=e[1]+t.clientY-P[1],A=e[0]+t.clientX-P[0],[o,a]=Aw(L,[A,r],e),[l,c]=Aw(L,[A,r],g[1]),f=S.invert([o,a])[1],h=M-f;if(h<0)return;const p=function(t,e,n=0){const r=[["M",...e[1]]],i=Wd(t,e[1]),A=Wd(t,e[0]);return 0===i?r.push(["L",...e[3]],["A",A,A,0,n,1,...e[0]],["Z"]):r.push(["A",i,i,0,n,0,...e[2]],["L",...e[3]],["A",A,A,0,n,1,...e[0]],["Z"]),r}(L,[[o,a],[l,c],g[2],g[3]],h>.5?1:0);d.attr("text",i(h,!0).toFixed(n)),u.attr("d",p),s.attr("cx",o),s.attr("cy",a)}else{const r=e[1]+t.clientY-P[1],[,A]=S.output([1,I.output(0)]),[,o]=S.invert([e[0],A-(g[2][1]-r)]),a=Xd([[g[0][0],r],[g[1][0],r],g[2],g[3]],!0);d.attr("text",i(I.invert(o)).toFixed(n)),u.attr("d",a),s.attr("cy",r)}};P=[a.clientX,a.clientY],window.addEventListener("mousemove",f);const h=()=>qb(this,void 0,void 0,function*(){if(c.attr("cursor","default"),c.removeEventListener("mouseup",h),window.removeEventListener("mousemove",f),(0,pe.A)(d.attr("text")))return;const e=Number(d.attr("text"));p=yield j(O,e,l,[r]),d.remove(),u.remove(),F(t)});c.addEventListener("mouseup",h)}),C.appendChild(s)}};g.forEach((t,e)=>{m[0]===e&&F(t),t.addEventListener("click",O),t.addEventListener("mouseenter",tw),t.addEventListener("mouseleave",ew)});const M=t=>{const e=null==t?void 0:t.target;e&&(e.name===Jb||g.includes(e))||(m=[],E(),C.removeChildren())};return i.on("element-point:select",k),i.on("element-point:unselect",M),c.addEventListener("mousedown",M),()=>{C.remove(),i.off("element-point:select",k),i.off("element-point:unselect",M),c.removeEventListener("mousedown",M),g.forEach(t=>{t.removeEventListener("click",O),t.removeEventListener("mouseenter",tw),t.removeEventListener("mouseleave",ew)})}}},"composition.spaceLayer":ow,"composition.spaceFlex":sw,"composition.facetRect":Bw,"composition.repeatMatrix":()=>t=>[lw.of(t).call(hw).call(uw).call(Ew).call(Ow).call(dw).call(fw).call(Cw).value()],"composition.facetCircle":()=>t=>[lw.of(t).call(hw).call(Mw).call(uw).call(Qw).call(pw).call(gw,Sw,Uw,Uw,{frame:!1}).call(dw).call(fw).call(Fw).value()],"composition.timingKeyframe":Iw,"labelTransform.overlapHide":t=>{const{priority:e}=t;return t=>{const n=[];return e&&t.sort(e),t.forEach(t=>{wd(t);const e=t.getLocalBounds(),r=n.some(t=>function(t,e){const[n,r]=t,[i,A]=e;return n[0]<A[0]&&r[0]>i[0]&&n[1]<A[1]&&r[1]>i[1]}(Kx(e),Kx(t.getLocalBounds())));r?bd(t):n.push(t)}),t}},"labelTransform.overlapDodgeY":t=>{const{maxIterations:e=10,maxError:n=.1,padding:r=1}=t;return t=>{const i=t.length;if(i<=1)return t;const[A,o]=Wx(),[a,s]=Wx(),[l,c]=Wx(),[u,d]=Wx();for(const e of t){const{min:t,max:n}=Xx(e),[r,i]=t,[A,a]=n;o(e,i),s(e,i),c(e,a-i),d(e,[r,A])}for(let A=0;A<e;A++){t.sort((t,e)=>(0,Zu.A)(a(t),a(e)));let e=0;for(let n=0;n<i-1;n++){const i=t[n];let A,o=n+1;for(;(A=t[o])&&!Vx(u(i),u(A));)o+=1;if(A){const t=a(i),n=l(i),o=a(A),c=o-(t+n);if(c<r){const n=(r-c)/2;e=Math.max(e,n),s(i,t-n),s(A,o+n)}}}if(e<n)break}for(const e of t)e.style.y+=a(e)-A(e);return t}},"labelTransform.overflowHide":()=>t=>(t.forEach(t=>{wd(t);const e=t.attr("bounds");Gx(Kx(t.getLocalBounds()),e)&&bd(t)}),t),"labelTransform.contrastReverse":t=>{const{threshold:e=4.5,palette:n=["#000","#fff"]}=t;return t=>(t.forEach(t=>{const r=t.attr("dependentElement").parsedStyle.fill;Zx(t.parsedStyle.fill,r)<e&&t.attr("fill",Jx(r,n))}),t)},"labelTransform.overflowStroke":t=>{const{palette:e=["#000","#fff"],threshold:n=2}=t;return t=>(t.forEach(t=>{var r,i;const A=t.attr("dependentElement"),o=null!==(i=null!==(r=t.attributes.fill)&&void 0!==r?r:t.parsedStyle.fill)&&void 0!==i?i:"#fff";if(Gx(Kx(tC(t)),Kx(tC(A)),n)){const n=Jx(Yx(o),e);t.attr("stroke",n)}else t.removeAttribute("stroke")}),t)},"labelTransform.exceedAdjust":(t={})=>(e,{layout:n})=>{const{bounds:r="view",offsetX:i=0,offsetY:A=0}=t,o=(()=>{if("main"===r){const{x:t=0,y:e=0,width:r=0,height:o=0,marginLeft:a=0,marginRight:s=0,marginTop:l=0,marginBottom:c=0,paddingLeft:u=0,paddingRight:d=0,paddingTop:f=0,paddingBottom:h=0}=n;return[[t+a+u+i,e+l+f+A],[t+r-s-d-i,e+o-c-h-A]]}{const{x:t=0,y:e=0,width:r=0,height:o=0}=n;return[[t+i,e+A],[t+r-i,e+o-A]]}})();return e.forEach(t=>{wd(t);const{max:e,min:n}=(r=t.getRenderBounds(),i=t.getBounds(),r&&r.min&&r.max?i&&i.min&&i.max?{min:[Math.min(r.min[0],i.min[0]),Math.min(r.min[1],i.min[1])],max:[Math.max(r.max[0],i.max[0]),Math.max(r.max[1],i.max[1])]}:r:i&&i.min&&i.max?i:{min:[0,0],max:[0,0]});var r,i;if(!e||!n||0===e[0]&&0===e[1]&&0===n[0]&&0===n[1])return;const[A,a]=e,[s,l]=n,c=((t,e)=>{const[[n,r],[i,A]]=e,[[o,a],[s,l]]=t;let c=0,u=0;return o<n?c=n-o:s>i&&(c=i-s),a<r?u=r-a:l>A&&(u=A-l),[c,u]})([[s,l],[A,a]],o);t.style.connector&&t.style.connectorPoints&&(t.style.connectorPoints[0][0]-=c[0],t.style.connectorPoints[0][1]-=c[1]),t.style.x+=c[0],t.style.y+=c[1]}),e}})),JU=function(t,e){return class extends t{constructor(t){super(Object.assign(Object.assign({},t),{lib:e}))}}}(class extends XU{constructor(t){const{container:e,canvas:n,renderer:r,plugins:i,lib:A,createCanvas:o}=t;super(function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n}(t,["container","canvas","renderer","plugins","lib","createCanvas"]),"view"),this._hasBindAutoFit=!1,this._rendering=!1,this._trailingClear=null,this._trailing=!1,this._trailingResolve=null,this._trailingReject=null,this._previousDefinedType=null,this._onResize=Cu(()=>{this.forceFit()},300),this._renderer=r||new QQ.A4,this._plugins=i||[],this._container=function(t){if(void 0===t){const t=document.createElement("div");return t[QU]=!0,t}return"string"==typeof t?document.getElementById(t):t}(e),this._emitter=new DQ.A,this._context={library:Object.assign(Object.assign({},A),$U),emitter:this._emitter,canvas:n,createCanvas:o},this._create()}render(){if(this._rendering)return this._addToTrailing();this._context.canvas||this._createCanvas(),this._bindAutoFit(),this._rendering=!0;const t=new Promise((t,e)=>BU(this._computedOptions(),this._context,this._createResolve(t),this._createReject(e))),[e,n,r]=function(){let t,e;return[new Promise((n,r)=>{e=n,t=r}),e,t]}();return t.then(n).then(()=>{if(this._trailingClear){const t=this.options();this._trailingClear(),this._trailing&&this.options(t)}}).catch(r).then(()=>{this._trailingClear=null,this._renderTrailing()}),e}options(t){if(0===arguments.length)return function(t){const e=function(t){if(null!==t.type)return t;const e=t.children[t.children.length-1];for(const n of FU)e.attr(n,t.attr(n));return e}(t),n=[e],r=new Map;for(r.set(e,UU(e));n.length;){const t=n.pop(),e=r.get(t),{children:i=[]}=t;for(const t of i)if(t.type===MU)e.children=t.value;else{const i=UU(t),{children:A=[]}=e;A.push(i),n.push(t),r.set(t,i),e.children=A}}return r.get(e)}(this);const{type:e}=t;return e&&(this._previousDefinedType=e),function(t,e,n,r,i){const A=[[null,t,_U(t,e,n,r,i)]];for(;A.length;){const[t,e,n]=A.shift();if(e)if(n){TU(e,n);const{children:t}=n,{children:r}=e;if(Array.isArray(t)&&Array.isArray(r)){const n=Math.max(t.length,r.length);for(let i=0;i<n;i++)A.push([e,r[i],t[i]])}else"function"==typeof t&&A.push([e,null,t])}else e.remove();else LU(t,n,r,i)}}(this,t,this._previousDefinedType,this._marks,this._compositions),this}getContainer(){return this._container}getContext(){return this._context}on(t,e,n){return this._emitter.on(t,e,n),this}once(t,e){return this._emitter.once(t,e),this}emit(t,...e){return this._emitter.emit(t,...e),this}off(t,e){return this._emitter.off(t,e),this}clear(t=!0){if(this._rendering)return this._trailingClear=()=>{this.clear(t)},void this._reset();this.options(),this.emit("beforeclear"),this._reset(),xU(0,this._context,!1,t),this.emit("afterclear")}destroy(){this.options(),this.emit("beforedestroy"),this._unbindAutoFit(),this._reset(),xU(0,this._context,!0),this._container[QU]&&function(t){const e=t.parentNode;e&&e.removeChild(t)}(this._container),this.emit("afterdestroy")}forceFit(){this.options.autoFit=!0;const{width:t,height:e}=SU(this.options(),this._container);if(t===this._width&&e===this._height)return Promise.resolve(this);this.emit(bg);const n=this.render();return n.then(()=>{this.emit(wg)}),n}changeSize(t,e){if(t===this._width&&e===this._height)return Promise.resolve(this);this.emit(bg),this.attr("width",t),this.attr("height",e);const n=this.render();return n.then(()=>{this.emit(wg)}),n}getDataByXY(t,e={}){const{shared:n=!1,series:r,facet:i=!1,startX:A=0,startY:o=0}=e,{canvas:a,views:s}=this._context,{document:l}=a,{x:c,y:u}=t,{coordinate:d,scale:f,markState:h,data:p,key:g}=s[0],m=l.getElementsByClassName(Ad),y=n?t=>t.__data__.x:t=>t,v=et(m,y),b=Od(l.getElementsByClassName("view")[0]),w=t=>Array.from(t.values()).some(t=>{var e,n;return(null===(e=t.interaction)||void 0===e?void 0:e.seriesTooltip)||(null===(n=t.channels)||void 0===n?void 0:n.some(t=>"series"===t.name&&void 0!==t.values))}),B=xv(r,w(h)),x=t=>Fl(t,"__data__.data",null);try{if(B&&w(h)&&!i){const{selectedData:t}=Ov({root:b,event:{offsetX:c,offsetY:u},elements:m,coordinate:d,scale:f,startX:A,startY:o}),e=p.get(`${g}-0`);return t.map(({index:t})=>e[t])}const t=Ev({root:b,event:{offsetX:c,offsetY:u},elements:m,coordinate:d,scale:f,shared:n});if(Ft(t))return Qt(t,p.get(g));const e=y(t),r=v.get(e);return r?r.map(x):[]}catch(t){const e=a.document.elementFromPointSync(c,u);return e?x(e):[]}}_create(){const{library:t}=this._context,e=["mark.mark",...Object.keys(t).filter(t=>t.startsWith("mark.")||"component.axisX"===t||"component.axisY"===t||"component.legends"===t)];this._marks={};for(const t of e){const e=t.split(".").pop();class n extends YU{constructor(){super({},e)}}this._marks[e]=n,this[e]=function(t){const r=this.append(n);return"mark"===e&&(r.type=t),r}}const n=["composition.view",...Object.keys(t).filter(t=>t.startsWith("composition.")&&"composition.mark"!==t)];this._compositions=Object.fromEntries(n.map(t=>{const e=t.split(".").pop();let n=class extends XU{constructor(){super({},e)}};return n=function(t,e,n,r){var i,A=arguments.length,o=A<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(A<3?i(o):A>3?i(e,n,o):i(e,n))||o);return A>3&&o&&Object.defineProperty(e,n,o),o}([KU(zU(this._marks))],n),[e,n]}));for(const t of Object.values(this._compositions))KU(zU(this._compositions))(t);for(const t of n){const e=t.split(".").pop();this[e]=function(){const t=this._compositions[e];return this.type=null,this.append(t)}}}_reset(){const t=["theme","type","width","height","autoFit"];this.type="view",this.value=Object.fromEntries(Object.entries(this.value).filter(([e])=>e.startsWith("margin")||e.startsWith("padding")||e.startsWith("inset")||t.includes(e))),this.children=[]}_renderTrailing(){this._trailing&&(this._trailing=!1,this.render().then(()=>{const t=this._trailingResolve.bind(this);this._trailingResolve=null,t(this)}).catch(t=>{const e=this._trailingReject.bind(this);this._trailingReject=null,e(t)}))}_createResolve(t){return()=>{this._rendering=!1,t(this)}}_createReject(t){return e=>{this._rendering=!1,t(e)}}_computedOptions(){const t=this.options(),{key:e=qU}=t,{width:n,height:r,depth:i}=SU(t,this._container);return this._width=n,this._height=r,this._key=e,Object.assign(Object.assign({key:this._key},t),{width:n,height:r,depth:i})}_createCanvas(){var t,e;const{width:n,height:r}=SU(this.options(),this._container);this._plugins.push(new NQ),this._plugins.forEach(t=>this._renderer.registerPlugin(t)),this._context.canvas=new $.Hl({container:this._container,width:n,height:r,renderer:this._renderer});const i=null===(e=null===(t=this._context.canvas)||void 0===t?void 0:t.getContextService())||void 0===e?void 0:e.getDomElement();i&&(i.style.display="block")}_addToTrailing(){var t;return null===(t=this._trailingResolve)||void 0===t||t.call(this,this),this._trailing=!0,new Promise((t,e)=>{this._trailingResolve=t,this._trailingReject=e})}_bindAutoFit(){const t=this.options(),{autoFit:e}=t;this._hasBindAutoFit?e||this._unbindAutoFit():e&&(this._hasBindAutoFit=!0,window.addEventListener("resize",this._onResize))}_unbindAutoFit(){this._hasBindAutoFit&&(this._hasBindAutoFit=!1,window.removeEventListener("resize",this._onResize))}},ZU);var tS=n("./node_modules/.pnpm/antd@6.6.1_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/antd/es/theme/index.js"),eS=n("./node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/isEqual.js"),nS=n.n(eS),rS=n("react"),iS=n("./src/utils/antd.tsx"),AS=n("./src/utils/dash3.ts"),oS=n("./src/utils/funcs.ts"),aS=n("./src/utils/theme.ts"),sS=function(){return sS=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},sS.apply(this,arguments)},lS=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n},cS=new Set(["container","canvas","renderer","plugins","lib","createCanvas"]),uS=["element:select","element:unselect","brush:end","brush:remove","brush:filter","brushAxis:highlight","brushAxis:remove"],dS=function(t){var e=(0,rS.useRef)(t),n=(0,rS.useRef)(0);return nS()(e.current,t)||(e.current=t,n.current+=1),n.current},fS=function(t){return{type:(0,aS.c)(t)?"classicDark":"classic"}},hS=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return t.find(function(t){return"number"==typeof t&&Number.isFinite(t)})},pS=function(t,e){var n=e&&"object"==typeof e?e:{},r=n.data&&"object"==typeof n.data?n.data:void 0,i=n.client&&"object"==typeof n.client?n.client:void 0,A=hS(null==i?void 0:i.x,n.offsetX,n.x),o=hS(null==i?void 0:i.y,n.offsetY,n.y),a=(0,iS.xE)(r&&"data"in r?r.data:r),s=(0,iS.xE)(null==r?void 0:r.selection);return sS(sS(sS(sS({event:t},void 0===a?{}:{data:a}),void 0===s?{}:{selection:s}),void 0===A||void 0===o?{}:{point:{x:A,y:o}}),{timestamp:Date.now()})},gS=function(t){return void 0===t&&(t={}),Object.fromEntries(Object.entries(t).filter(function(t){return!cS.has(t[0])}))},mS=function(t){return lS(t,["data"])},yS=function(t){return!!Array.isArray(t.children)&&t.children.some(function(t){return null!=t&&"object"==typeof t&&(Object.prototype.hasOwnProperty.call(t,"data")||yS(t))})},vS=function(t,e){return null!=t&&"object"==typeof t?"constant"===t.type?t.value:void 0:"string"==typeof t&&Array.isArray(e)&&e.some(function(e){return null!=e&&"object"==typeof e&&t in e})?void 0:t},bS=function(t,e,n){var r,i,A;if(!0===t||!1===t)return t;var o=null!==(r=n.autoFit)&&void 0!==r?r:e.autoFit;return"boolean"==typeof o?o:!("number"==typeof(null!==(i=n.width)&&void 0!==i?i:e.width)&&"number"==typeof(null!==(A=n.height)&&void 0!==A?A:e.height))};const wS=function(t){var e,n,r,i=tS.A.useToken().token,A=t.id,o=t.className,s=t.style,l=t.tabIndex,c=t.role,u=t.dir,d=t.lang,f=t.hidden,h=t.options,p=t.config,g=void 0===p?{}:p,m=t.responsive,y=void 0===m?"auto":m,v=t.clear_on_unhover,b=void 0!==v&&v,w=t.loading_state,B=t.setProps,x=lS(t,["id","className","style","tabIndex","role","dir","lang","hidden","options","config","responsive","clear_on_unhover","clickData","hoverData","selectedData","relayoutData","loading_state","setProps"]),C=(0,rS.useRef)(null),E=(0,rS.useRef)(null),O=(0,rS.useRef)(h),k=(0,rS.useRef)(fS(i.colorBgBase)),F=(0,rS.useRef)(g),Q=(0,rS.useRef)(t),M=(0,rS.useRef)(B),U=(0,rS.useRef)(b),S=(0,rS.useRef)(y),_=(0,rS.useRef)(null),I=(0,rS.useRef)(null),T=(0,rS.useRef)(void 0),L=(0,rS.useRef)(0),P=(0,rS.useRef)({component:"G2",id:A,props:t,chart:null}),j=dS(h),H=fS(i.colorBgBase),N=dS(H),D=dS({config:g,responsive:y});O.current=h,k.current=H,F.current=g,Q.current=t,M.current=B,U.current=b,S.current=y,P.current.id=A,P.current.props=Q.current;var R=(0,rS.useMemo)(function(){return Object.fromEntries(Object.entries(x).filter(function(t){var e=t[0],n=t[1];return(e.startsWith("data-")||e.startsWith("aria-"))&&null!=n}))},[x]),K=function(t){var e=(0,oS.qF)(gS(F.current),P.current),n=(0,oS.qF)(O.current,P.current),r=bS(S.current,e,n),i=sS(sS(sS({},e),n),{autoFit:r});return void 0===i.theme&&(i.theme=k.current),!0===S.current&&(delete i.width,delete i.height),i=function(t){var e=t.encode;if(null==e||"object"!=typeof e)return t;var n=e,r=vS(n.updateDuration,t.data),i=vS(n.updateEasing,t.data);if("number"!=typeof r&&"string"!=typeof i)return t;var A=t.animate,o=null!=A&&"object"==typeof A?A:{},a=o.update,s=null!=a&&"object"==typeof a?a:{},l=!1===A||!1===a?t:sS(sS({},t),{animate:sS(sS({},o),{update:sS(sS(sS({},"number"==typeof r?{duration:r}:{}),"string"==typeof i?{easing:i}:{}),s)})}),c=l.axis;if(!1===c)return l;var u=null!=c&&"object"==typeof c?c:{},d=u.x;if(!1===d)return l;var f=null!=d&&"object"==typeof d?d:{};return void 0!==f.animate?l:sS(sS({},l),{axis:sS(sS({},u),{x:sS(sS({},f),{animate:sS(sS({},"number"==typeof r?{duration:r}:{}),"string"==typeof i?{easing:i}:{})})})})}(i),P.current.chart=t,i},z=function(t,e,n){t.options(e),_.current=O.current,I.current=e,T.current=e.theme,t.render().catch(function(t){n===L.current&&console.error("G2".concat(A?' "'.concat(A,'"'):""," failed to render."),t)})};(0,rS.useEffect)(function(){var t=C.current;if(t){var e=++L.current,n=gS(F.current),r=bS(S.current,n,O.current),i=new JU({container:t,autoFit:r}),A=P.current;return E.current=i,A.chart=i,i.on("element:click",function(t){var e;null===(e=M.current)||void 0===e||e.call(M,{clickData:pS("element:click",t)})}),i.on("plot:click",function(t){var e,n;"plot"===(null===(e=(t&&"object"==typeof t?t:{}).target)||void 0===e?void 0:e.className)&&(null===(n=M.current)||void 0===n||n.call(M,{clickData:null}))}),i.on("element:pointerover",function(t){var e;null===(e=M.current)||void 0===e||e.call(M,{hoverData:pS("element:pointerover",t)})}),i.on("element:pointerout",function(){var t;U.current&&(null===(t=M.current)||void 0===t||t.call(M,{hoverData:null}))}),uS.forEach(function(t){i.on(t,function(e){var n;null===(n=M.current)||void 0===n||n.call(M,{selectedData:pS(t,e)})})}),i.on(wg,function(){var e,n=t.getBoundingClientRect();null===(e=M.current)||void 0===e||e.call(M,{relayoutData:{event:"afterchangesize",width:n.width,height:n.height,responsive:Boolean(i.options().autoFit),timestamp:Date.now()}})}),z(i,K(i),e),function(){L.current+=1,i.off(),i.destroy(),E.current===i&&(E.current=null),A.chart===i&&(A.chart=null)}}},[D]),(0,rS.useEffect)(function(){var t=E.current;if(t&&!nS()(_.current,O.current)){var e,n,r=K(t);if(n=r,null!=(e=I.current)&&Object.prototype.hasOwnProperty.call(e,"data")&&Object.prototype.hasOwnProperty.call(n,"data")&&!yS(e)&&!yS(n)&&!nS()(e.data,n.data)&&nS()(mS(e),mS(n)))return _.current=O.current,I.current=r,void t.changeData(r.data).catch(function(e){t===E.current&&console.error("G2".concat(A?' "'.concat(A,'"'):""," failed to update data."),e)});z(t,r,L.current)}},[j]),(0,rS.useEffect)(function(){var t=E.current;if(t){var e=K(t);nS()(T.current,e.theme)||z(t,e,L.current)}},[N]);var G=gS(g),V=null!==(r=null!==(n=null!==(e=null==s?void 0:s.height)&&void 0!==e?e:h.height)&&void 0!==n?n:G.height)&&void 0!==r?r:450,W=sS({width:"100%",height:V},s);return(0,a.jsx)("div",sS({},R,{id:A,ref:C,className:o,style:W,tabIndex:l,role:c,dir:u,lang:d,hidden:f,"data-dash-is-loading":(0,AS.A_)(w)||void 0}))};var BS=function(){return BS=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},BS.apply(this,arguments)};const xS=function(t){return(0,a.jsx)(wS,BS({},t))}},"./src/utils/theme.ts"(t,e,n){"use strict";n.d(e,{c:()=>r});var r=function(t){var e=t.trim(),n=/^#([\da-f])([\da-f])([\da-f])$/i.exec(e),r=/^#([\da-f]{2})([\da-f]{2})([\da-f]{2})$/i.exec(e),i=/^rgba?\(\s*(\d+(?:\.\d+)?)\s*[, ]\s*(\d+(?:\.\d+)?)\s*[, ]\s*(\d+(?:\.\d+)?)/i.exec(e),A=n?n.slice(1).map(function(t){return parseInt(t+t,16)}):r?r.slice(1).map(function(t){return parseInt(t,16)}):i?i.slice(1).map(Number):null;return!!A&&.2126*A[0]+.7152*A[1]+.0722*A[2]<128}},"./node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js"(t,e,n){"use strict";function r(t,e,n,r,i,A,o){try{var a=t[A](o),s=a.value}catch(t){return void n(t)}a.done?e(s):Promise.resolve(s).then(r,i)}function i(t){return function(){var e=this,n=arguments;return new Promise(function(i,A){var o=t.apply(e,n);function a(t){r(o,i,A,a,s,"next",t)}function s(t){r(o,i,A,a,s,"throw",t)}a(void 0)})}}n.d(e,{A:()=>i})},"./node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/callSuper.js"(t,e,n){"use strict";n.d(e,{A:()=>o});var r=n("./node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js"),i=n("./node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js"),A=n("./node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js");function o(t,e,n){return e=(0,r.A)(e),(0,A.A)(t,(0,i.A)()?Reflect.construct(e,n||[],(0,r.A)(t).constructor):e.apply(t,n))}},"./node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/createForOfIteratorHelper.js"(t,e,n){"use strict";n.d(e,{A:()=>i});var r=n("./node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js");function i(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=(0,r.A)(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,A=function(){};return{s:A,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:A}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}},"./node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"(t,e,n){"use strict";function r(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(-1!==e.indexOf(r))continue;n[r]=t[r]}return n}(t,e);if(Object.getOwnPropertySymbols){var A=Object.getOwnPropertySymbols(t);for(r=0;r<A.length;r++)-1===e.indexOf(n=A[r])&&{}.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}n.d(e,{A:()=>r})},"./node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js"(t,e,n){"use strict";function r(t,e){this.v=t,this.k=e}function i(t,e,n,r){var A=Object.defineProperty;try{A({},"",{})}catch(t){A=0}i=function(t,e,n,r){function o(e,n){i(t,e,function(t){return this._invoke(e,n,t)})}e?A?A(t,e,{value:n,enumerable:!r,configurable:!r,writable:!r}):t[e]=n:(o("next",0),o("throw",1),o("return",2))},i(t,e,n,r)}function A(){var t,e,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function a(n,r,A,o){var a=Object.create((r&&r.prototype instanceof l?r:l).prototype);return i(a,"_invoke",function(n,r,i){var A,o,a,l=0,c=i||[],u=!1,d={p:0,n:0,v:t,a:f,f:f.bind(t,4),d:function(e,n){return A=e,o=0,a=t,d.n=n,s}};function f(n,r){for(o=n,a=r,e=0;!u&&l&&!i&&e<c.length;e++){var i,A=c[e],f=d.p,h=A[2];n>3?(i=h===r)&&(a=A[(o=A[4])?5:(o=3,3)],A[4]=A[5]=t):A[0]<=f&&((i=n<2&&f<A[1])?(o=0,d.v=r,d.n=A[1]):f<h&&(i=n<3||A[0]>r||r>h)&&(A[4]=n,A[5]=r,d.n=h,o=0))}if(i||n>1)return s;throw u=!0,r}return function(i,c,h){if(l>1)throw TypeError("Generator is already running");for(u&&1===c&&f(c,h),o=c,a=h;(e=o<2?t:a)||!u;){A||(o?o<3?(o>1&&(d.n=-1),f(o,a)):d.n=a:d.v=a);try{if(l=2,A){if(o||(i="next"),e=A[i]){if(!(e=e.call(A,a)))throw TypeError("iterator result is not an object");if(!e.done)return e;a=e.value,o<2&&(o=0)}else 1===o&&(e=A.return)&&e.call(A),o<2&&(a=TypeError("The iterator does not provide a '"+i+"' method"),o=1);A=t}else if((e=(u=d.n<0)?a:n.call(r,d))!==s)break}catch(e){A=t,o=1,a=e}finally{l=1}}return{value:e,done:u}}}(n,A,o),!0),a}var s={};function l(){}function c(){}function u(){}e=Object.getPrototypeOf;var d=[][r]?e(e([][r]())):(i(e={},r,function(){return this}),e),f=u.prototype=l.prototype=Object.create(d);function h(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,u):(t.__proto__=u,i(t,o,"GeneratorFunction")),t.prototype=Object.create(f),t}return c.prototype=u,i(f,"constructor",u),i(u,"constructor",c),c.displayName="GeneratorFunction",i(u,o,"GeneratorFunction"),i(f),i(f,o,"Generator"),i(f,r,function(){return this}),i(f,"toString",function(){return"[object Generator]"}),(A=function(){return{w:a,m:h}})()}function o(t,e){function n(i,A,o,a){try{var s=t[i](A),l=s.value;return l instanceof r?e.resolve(l.v).then(function(t){n("next",t,o,a)},function(t){n("throw",t,o,a)}):e.resolve(l).then(function(t){s.value=t,o(s)},function(t){return n("throw",t,o,a)})}catch(t){a(t)}}var A;this.next||(i(o.prototype),i(o.prototype,"function"==typeof Symbol&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),i(this,"_invoke",function(t,r,i){function o(){return new e(function(e,r){n(t,i,e,r)})}return A=A?A.then(o,o):o()},!0)}function a(t,e,n,r,i){return new o(A().w(t,e,n,r),i||Promise)}function s(t,e,n,r,i){var A=a(t,e,n,r,i);return A.next().then(function(t){return t.done?t.value:A.next()})}function l(t){var e=Object(t),n=[];for(var r in e)n.unshift(r);return function t(){for(;n.length;)if((r=n.pop())in e)return t.value=r,t.done=!1,t;return t.done=!0,t}}n.d(e,{A:()=>d});var c=n("./node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/typeof.js");function u(t){if(null!=t){var e=t["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],n=0;if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length))return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}}}throw new TypeError((0,c.A)(t)+" is not iterable")}function d(){var t=A(),e=t.m(d),n=(Object.getPrototypeOf?Object.getPrototypeOf(e):e.__proto__).constructor;function i(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===n||"GeneratorFunction"===(e.displayName||e.name))}var c={throw:1,return:2,break:3,continue:3};function f(t){var e,n;return function(r){e||(e={stop:function(){return n(r.a,2)},catch:function(){return r.v},abrupt:function(t,e){return n(r.a,c[t],e)},delegateYield:function(t,i,A){return e.resultName=i,n(r.d,u(t),A)},finish:function(t){return n(r.f,t)}},n=function(t,n,i){r.p=e.prev,r.n=e.next;try{return t(n,i)}finally{e.next=r.n}}),e.resultName&&(e[e.resultName]=r.v,e.resultName=void 0),e.sent=r.v,e.next=r.n;try{return t.call(this,e)}finally{r.p=e.prev,r.n=e.next}}}return(d=function(){return{wrap:function(e,n,r,i){return t.w(f(e),n,r,i&&i.reverse())},isGeneratorFunction:i,mark:t.m,awrap:function(t,e){return new r(t,e)},AsyncIterator:o,async:function(t,e,n,r,A){return(i(e)?a:s)(f(t),e,n,r,A)},keys:l,values:u}})()}},"./node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/superPropGet.js"(t,e,n){"use strict";n.d(e,{A:()=>A});var r=n("./node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js");function i(){return i="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,n){var i=function(t,e){for(;!{}.hasOwnProperty.call(t,e)&&null!==(t=(0,r.A)(t)););return t}(t,e);if(i){var A=Object.getOwnPropertyDescriptor(i,e);return A.get?A.get.call(arguments.length<3?t:n):A.value}},i.apply(null,arguments)}function A(t,e,n,A){var o=i((0,r.A)(1&A?t.prototype:t),e,n);return 2&A&&"function"==typeof o?function(t){return o.apply(n,t)}:o}},"./node_modules/.pnpm/d3-array@3.2.4/node_modules/d3-array/src/ascending.js"(t,e,n){"use strict";function r(t,e){return null==t||null==e?NaN:t<e?-1:t>e?1:t>=e?0:NaN}n.d(e,{A:()=>r})},"./node_modules/.pnpm/d3-array@3.2.4/node_modules/d3-array/src/bisect.js"(t,e,n){"use strict";var r=n("./node_modules/.pnpm/d3-array@3.2.4/node_modules/d3-array/src/ascending.js"),i=n("./node_modules/.pnpm/d3-array@3.2.4/node_modules/d3-array/src/bisector.js"),A=n("./node_modules/.pnpm/d3-array@3.2.4/node_modules/d3-array/src/number.js");const o=(0,i.A)(r.A),a=o.right,s=o.left,l=(0,i.A)(A.A).center;n.d(e,["Ay",0,a,"WD",0,l,"ah",0,s])},"./node_modules/.pnpm/d3-array@3.2.4/node_modules/d3-array/src/bisector.js"(t,e,n){"use strict";n.d(e,{A:()=>A});var r=n("./node_modules/.pnpm/d3-array@3.2.4/node_modules/d3-array/src/ascending.js");function i(t,e){return null==t||null==e?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function A(t){let e,n,A;function a(t,r,i=0,A=t.length){if(i<A){if(0!==e(r,r))return A;do{const e=i+A>>>1;n(t[e],r)<0?i=e+1:A=e}while(i<A)}return i}return 2!==t.length?(e=r.A,n=(e,n)=>(0,r.A)(t(e),n),A=(e,n)=>t(e)-n):(e=t===r.A||t===i?t:o,n=t,A=t),{left:a,center:function(t,e,n=0,r=t.length){const i=a(t,e,n,r-1);return i>n&&A(t[i-1],e)>-A(t[i],e)?i-1:i},right:function(t,r,i=0,A=t.length){if(i<A){if(0!==e(r,r))return A;do{const e=i+A>>>1;n(t[e],r)<=0?i=e+1:A=e}while(i<A)}return i}}}function o(){return 0}},"./node_modules/.pnpm/d3-array@3.2.4/node_modules/d3-array/src/number.js"(t,e,n){"use strict";function r(t){return null===t?NaN:+t}function*i(t,e){if(void 0===e)for(let e of t)null!=e&&(e=+e)>=e&&(yield e);else{let n=-1;for(let r of t)null!=(r=e(r,++n,t))&&(r=+r)>=r&&(yield r)}}n.d(e,{A:()=>r,n:()=>i})},"./node_modules/.pnpm/d3-array@3.2.4/node_modules/d3-array/src/ticks.js"(t,e,n){"use strict";n.d(e,{Ay:()=>a,lq:()=>s,sG:()=>l});const r=Math.sqrt(50),i=Math.sqrt(10),A=Math.sqrt(2);function o(t,e,n){const a=(e-t)/Math.max(0,n),s=Math.floor(Math.log10(a)),l=a/Math.pow(10,s),c=l>=r?10:l>=i?5:l>=A?2:1;let u,d,f;return s<0?(f=Math.pow(10,-s)/c,u=Math.round(t*f),d=Math.round(e*f),u/f<t&&++u,d/f>e&&--d,f=-f):(f=Math.pow(10,s)*c,u=Math.round(t/f),d=Math.round(e/f),u*f<t&&++u,d*f>e&&--d),d<u&&.5<=n&&n<2?o(t,e,2*n):[u,d,f]}function a(t,e,n){if(!((n=+n)>0))return[];if((t=+t)===(e=+e))return[t];const r=e<t,[i,A,a]=r?o(e,t,n):o(t,e,n);if(!(A>=i))return[];const s=A-i+1,l=new Array(s);if(r)if(a<0)for(let t=0;t<s;++t)l[t]=(A-t)/-a;else for(let t=0;t<s;++t)l[t]=(A-t)*a;else if(a<0)for(let t=0;t<s;++t)l[t]=(i+t)/-a;else for(let t=0;t<s;++t)l[t]=(i+t)*a;return l}function s(t,e,n){return o(t=+t,e=+e,n=+n)[2]}function l(t,e,n){n=+n;const r=(e=+e)<(t=+t),i=r?s(e,t,n):s(t,e,n);return(r?-1:1)*(i<0?1/-i:i)}},"./node_modules/.pnpm/d3-color@3.1.0/node_modules/d3-color/src/color.js"(t,e,n){"use strict";n.d(e,{Ay:()=>b,Gw:()=>E,Q1:()=>i,Qh:()=>C,Uw:()=>o,b:()=>x,ef:()=>A});var r=n("./node_modules/.pnpm/d3-color@3.1.0/node_modules/d3-color/src/define.js");function i(){}var A=.7,o=1/A,a="\\s*([+-]?\\d+)\\s*",s="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",l="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",c=/^#([0-9a-f]{3,8})$/,u=new RegExp(`^rgb\\(${a},${a},${a}\\)$`),d=new RegExp(`^rgb\\(${l},${l},${l}\\)$`),f=new RegExp(`^rgba\\(${a},${a},${a},${s}\\)$`),h=new RegExp(`^rgba\\(${l},${l},${l},${s}\\)$`),p=new RegExp(`^hsl\\(${s},${l},${l}\\)$`),g=new RegExp(`^hsla\\(${s},${l},${l},${s}\\)$`),m={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function y(){return this.rgb().formatHex()}function v(){return this.rgb().formatRgb()}function b(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=c.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?w(e):3===n?new E(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?B(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?B(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=u.exec(t))?new E(e[1],e[2],e[3],1):(e=d.exec(t))?new E(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=f.exec(t))?B(e[1],e[2],e[3],e[4]):(e=h.exec(t))?B(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=p.exec(t))?U(e[1],e[2]/100,e[3]/100,1):(e=g.exec(t))?U(e[1],e[2]/100,e[3]/100,e[4]):m.hasOwnProperty(t)?w(m[t]):"transparent"===t?new E(NaN,NaN,NaN,0):null}function w(t){return new E(t>>16&255,t>>8&255,255&t,1)}function B(t,e,n,r){return r<=0&&(t=e=n=NaN),new E(t,e,n,r)}function x(t){return t instanceof i||(t=b(t)),t?new E((t=t.rgb()).r,t.g,t.b,t.opacity):new E}function C(t,e,n,r){return 1===arguments.length?x(t):new E(t,e,n,r??1)}function E(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function O(){return`#${M(this.r)}${M(this.g)}${M(this.b)}`}function k(){const t=F(this.opacity);return`${1===t?"rgb(":"rgba("}${Q(this.r)}, ${Q(this.g)}, ${Q(this.b)}${1===t?")":`, ${t})`}`}function F(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function Q(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function M(t){return((t=Q(t))<16?"0":"")+t.toString(16)}function U(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new _(t,e,n,r)}function S(t){if(t instanceof _)return new _(t.h,t.s,t.l,t.opacity);if(t instanceof i||(t=b(t)),!t)return new _;if(t instanceof _)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,A=Math.min(e,n,r),o=Math.max(e,n,r),a=NaN,s=o-A,l=(o+A)/2;return s?(a=e===o?(n-r)/s+6*(n<r):n===o?(r-e)/s+2:(e-n)/s+4,s/=l<.5?o+A:2-o-A,a*=60):s=l>0&&l<1?0:a,new _(a,s,l,t.opacity)}function _(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function I(t){return(t=(t||0)%360)<0?t+360:t}function T(t){return Math.max(0,Math.min(1,t||0))}function L(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}(0,r.A)(i,b,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:y,formatHex:y,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return S(this).formatHsl()},formatRgb:v,toString:v}),(0,r.A)(E,C,(0,r.X)(i,{brighter(t){return t=null==t?o:Math.pow(o,t),new E(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=null==t?A:Math.pow(A,t),new E(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new E(Q(this.r),Q(this.g),Q(this.b),F(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:O,formatHex:O,formatHex8:function(){return`#${M(this.r)}${M(this.g)}${M(this.b)}${M(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:k,toString:k})),(0,r.A)(_,function(t,e,n,r){return 1===arguments.length?S(t):new _(t,e,n,r??1)},(0,r.X)(i,{brighter(t){return t=null==t?o:Math.pow(o,t),new _(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?A:Math.pow(A,t),new _(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new E(L(t>=240?t-240:t+120,i,r),L(t,i,r),L(t<120?t+240:t-120,i,r),this.opacity)},clamp(){return new _(I(this.h),T(this.s),T(this.l),F(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const t=F(this.opacity);return`${1===t?"hsl(":"hsla("}${I(this.h)}, ${100*T(this.s)}%, ${100*T(this.l)}%${1===t?")":`, ${t})`}`}}))},"./node_modules/.pnpm/d3-color@3.1.0/node_modules/d3-color/src/define.js"(t,e,n){"use strict";function r(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function i(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}n.d(e,{A:()=>r,X:()=>i})},"./node_modules/.pnpm/d3-dispatch@3.0.1/node_modules/d3-dispatch/src/dispatch.js"(t,e,n){"use strict";var r={value:()=>{}};function i(){for(var t,e=0,n=arguments.length,r={};e<n;++e){if(!(t=arguments[e]+"")||t in r||/[\s.]/.test(t))throw new Error("illegal type: "+t);r[t]=[]}return new A(r)}function A(t){this._=t}function o(t,e){for(var n,r=0,i=t.length;r<i;++r)if((n=t[r]).name===e)return n.value}function a(t,e,n){for(var i=0,A=t.length;i<A;++i)if(t[i].name===e){t[i]=r,t=t.slice(0,i).concat(t.slice(i+1));break}return null!=n&&t.push({name:e,value:n}),t}A.prototype=i.prototype={constructor:A,on:function(t,e){var n,r,i=this._,A=(r=i,(t+"").trim().split(/^|\s+/).map(function(t){var e="",n=t.indexOf(".");if(n>=0&&(e=t.slice(n+1),t=t.slice(0,n)),t&&!r.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:e}})),s=-1,l=A.length;if(!(arguments.length<2)){if(null!=e&&"function"!=typeof e)throw new Error("invalid callback: "+e);for(;++s<l;)if(n=(t=A[s]).type)i[n]=a(i[n],t.name,e);else if(null==e)for(n in i)i[n]=a(i[n],t.name,null);return this}for(;++s<l;)if((n=(t=A[s]).type)&&(n=o(i[n],t.name)))return n},copy:function(){var t={},e=this._;for(var n in e)t[n]=e[n].slice();return new A(t)},call:function(t,e){if((n=arguments.length-2)>0)for(var n,r,i=new Array(n),A=0;A<n;++A)i[A]=arguments[A+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(A=0,n=(r=this._[t]).length;A<n;++A)r[A].value.apply(e,i)},apply:function(t,e,n){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var r=this._[t],i=0,A=r.length;i<A;++i)r[i].value.apply(e,n)}},n.d(e,["A",0,i])},"./node_modules/.pnpm/d3-force@3.0.0/node_modules/d3-force/src/center.js"(t,e,n){"use strict";function r(t,e){var n,r=1;function i(){var i,A,o=n.length,a=0,s=0;for(i=0;i<o;++i)a+=(A=n[i]).x,s+=A.y;for(a=(a/o-t)*r,s=(s/o-e)*r,i=0;i<o;++i)(A=n[i]).x-=a,A.y-=s}return null==t&&(t=0),null==e&&(e=0),i.initialize=function(t){n=t},i.x=function(e){return arguments.length?(t=+e,i):t},i.y=function(t){return arguments.length?(e=+t,i):e},i.strength=function(t){return arguments.length?(r=+t,i):r},i}n.d(e,{A:()=>r})},"./node_modules/.pnpm/d3-force@3.0.0/node_modules/d3-force/src/collide.js"(t,e,n){"use strict";n.d(e,{A:()=>s});var r=n("./node_modules/.pnpm/d3-quadtree@3.0.1/node_modules/d3-quadtree/src/quadtree.js"),i=n("./node_modules/.pnpm/d3-force@3.0.0/node_modules/d3-force/src/constant.js"),A=n("./node_modules/.pnpm/d3-force@3.0.0/node_modules/d3-force/src/jiggle.js");function o(t){return t.x+t.vx}function a(t){return t.y+t.vy}function s(t){var e,n,s,l=1,c=1;function u(){for(var t,i,u,f,h,p,g,m=e.length,y=0;y<c;++y)for(i=(0,r.A)(e,o,a).visitAfter(d),t=0;t<m;++t)g=(p=n[(u=e[t]).index])*p,f=u.x+u.vx,h=u.y+u.vy,i.visit(v);function v(t,e,n,r,i){var o=t.data,a=t.r,c=p+a;if(!o)return e>f+c||r<f-c||n>h+c||i<h-c;if(o.index>u.index){var d=f-o.x-o.vx,m=h-o.y-o.vy,y=d*d+m*m;y<c*c&&(0===d&&(y+=(d=(0,A.A)(s))*d),0===m&&(y+=(m=(0,A.A)(s))*m),y=(c-(y=Math.sqrt(y)))/y*l,u.vx+=(d*=y)*(c=(a*=a)/(g+a)),u.vy+=(m*=y)*c,o.vx-=d*(c=1-c),o.vy-=m*c)}}}function d(t){if(t.data)return t.r=n[t.data.index];for(var e=t.r=0;e<4;++e)t[e]&&t[e].r>t.r&&(t.r=t[e].r)}function f(){if(e){var r,i,A=e.length;for(n=new Array(A),r=0;r<A;++r)n[(i=e[r]).index]=+t(i,r,e)}}return"function"!=typeof t&&(t=(0,i.A)(null==t?1:+t)),u.initialize=function(t,n){e=t,s=n,f()},u.iterations=function(t){return arguments.length?(c=+t,u):c},u.strength=function(t){return arguments.length?(l=+t,u):l},u.radius=function(e){return arguments.length?(t="function"==typeof e?e:(0,i.A)(+e),f(),u):t},u}},"./node_modules/.pnpm/d3-force@3.0.0/node_modules/d3-force/src/constant.js"(t,e,n){"use strict";function r(t){return function(){return t}}n.d(e,{A:()=>r})},"./node_modules/.pnpm/d3-force@3.0.0/node_modules/d3-force/src/jiggle.js"(t,e,n){"use strict";function r(t){return 1e-6*(t()-.5)}n.d(e,{A:()=>r})},"./node_modules/.pnpm/d3-force@3.0.0/node_modules/d3-force/src/link.js"(t,e,n){"use strict";n.d(e,{A:()=>a});var r=n("./node_modules/.pnpm/d3-force@3.0.0/node_modules/d3-force/src/constant.js"),i=n("./node_modules/.pnpm/d3-force@3.0.0/node_modules/d3-force/src/jiggle.js");function A(t){return t.index}function o(t,e){var n=t.get(e);if(!n)throw new Error("node not found: "+e);return n}function a(t){var e,n,a,s,l,c,u=A,d=function(t){return 1/Math.min(s[t.source.index],s[t.target.index])},f=(0,r.A)(30),h=1;function p(r){for(var A=0,o=t.length;A<h;++A)for(var a,s,u,d,f,p,g,m=0;m<o;++m)d=(u=(a=t[m]).target).x+u.vx-(s=a.source).x-s.vx||(0,i.A)(c),f=u.y+u.vy-s.y-s.vy||(0,i.A)(c),f*=p=((p=Math.sqrt(d*d+f*f))-n[m])/p*r*e[m],u.vx-=(d*=p)*(g=l[m]),u.vy-=f*g,s.vx+=d*(g=1-g),s.vy+=f*g}function g(){if(a){var r,i,A=a.length,c=t.length,d=new Map(a.map((t,e)=>[u(t,e,a),t]));for(r=0,s=new Array(A);r<c;++r)(i=t[r]).index=r,"object"!=typeof i.source&&(i.source=o(d,i.source)),"object"!=typeof i.target&&(i.target=o(d,i.target)),s[i.source.index]=(s[i.source.index]||0)+1,s[i.target.index]=(s[i.target.index]||0)+1;for(r=0,l=new Array(c);r<c;++r)l[r]=s[(i=t[r]).source.index]/(s[i.source.index]+s[i.target.index]);e=new Array(c),m(),n=new Array(c),y()}}function m(){if(a)for(var n=0,r=t.length;n<r;++n)e[n]=+d(t[n],n,t)}function y(){if(a)for(var e=0,r=t.length;e<r;++e)n[e]=+f(t[e],e,t)}return null==t&&(t=[]),p.initialize=function(t,e){a=t,c=e,g()},p.links=function(e){return arguments.length?(t=e,g(),p):t},p.id=function(t){return arguments.length?(u=t,p):u},p.iterations=function(t){return arguments.length?(h=+t,p):h},p.strength=function(t){return arguments.length?(d="function"==typeof t?t:(0,r.A)(+t),m(),p):d},p.distance=function(t){return arguments.length?(f="function"==typeof t?t:(0,r.A)(+t),y(),p):f},p}},"./node_modules/.pnpm/d3-force@3.0.0/node_modules/d3-force/src/manyBody.js"(t,e,n){"use strict";n.d(e,{A:()=>a});var r=n("./node_modules/.pnpm/d3-quadtree@3.0.1/node_modules/d3-quadtree/src/quadtree.js"),i=n("./node_modules/.pnpm/d3-force@3.0.0/node_modules/d3-force/src/constant.js"),A=n("./node_modules/.pnpm/d3-force@3.0.0/node_modules/d3-force/src/jiggle.js"),o=n("./node_modules/.pnpm/d3-force@3.0.0/node_modules/d3-force/src/simulation.js");function a(){var t,e,n,a,s,l=(0,i.A)(-30),c=1,u=1/0,d=.81;function f(n){var i,A=t.length,s=(0,r.A)(t,o.x,o.y).visitAfter(p);for(a=n,i=0;i<A;++i)e=t[i],s.visit(g)}function h(){if(t){var e,n,r=t.length;for(s=new Array(r),e=0;e<r;++e)s[(n=t[e]).index]=+l(n,e,t)}}function p(t){var e,n,r,i,A,o=0,a=0;if(t.length){for(r=i=A=0;A<4;++A)(e=t[A])&&(n=Math.abs(e.value))&&(o+=e.value,a+=n,r+=n*e.x,i+=n*e.y);t.x=r/a,t.y=i/a}else{(e=t).x=e.data.x,e.y=e.data.y;do{o+=s[e.data.index]}while(e=e.next)}t.value=o}function g(t,r,i,o){if(!t.value)return!0;var l=t.x-e.x,f=t.y-e.y,h=o-r,p=l*l+f*f;if(h*h/d<p)return p<u&&(0===l&&(p+=(l=(0,A.A)(n))*l),0===f&&(p+=(f=(0,A.A)(n))*f),p<c&&(p=Math.sqrt(c*p)),e.vx+=l*t.value*a/p,e.vy+=f*t.value*a/p),!0;if(!(t.length||p>=u)){(t.data!==e||t.next)&&(0===l&&(p+=(l=(0,A.A)(n))*l),0===f&&(p+=(f=(0,A.A)(n))*f),p<c&&(p=Math.sqrt(c*p)));do{t.data!==e&&(e.vx+=l*(h=s[t.data.index]*a/p),e.vy+=f*h)}while(t=t.next)}}return f.initialize=function(e,r){t=e,n=r,h()},f.strength=function(t){return arguments.length?(l="function"==typeof t?t:(0,i.A)(+t),h(),f):l},f.distanceMin=function(t){return arguments.length?(c=t*t,f):Math.sqrt(c)},f.distanceMax=function(t){return arguments.length?(u=t*t,f):Math.sqrt(u)},f.theta=function(t){return arguments.length?(d=t*t,f):Math.sqrt(d)},f}},"./node_modules/.pnpm/d3-force@3.0.0/node_modules/d3-force/src/simulation.js"(t,e,n){"use strict";n.d(e,{A:()=>l,x:()=>o,y:()=>a});var r=n("./node_modules/.pnpm/d3-dispatch@3.0.1/node_modules/d3-dispatch/src/dispatch.js"),i=n("./node_modules/.pnpm/d3-timer@3.0.1/node_modules/d3-timer/src/timer.js");const A=4294967296;function o(t){return t.x}function a(t){return t.y}var s=Math.PI*(3-Math.sqrt(5));function l(t){var e,n=1,o=.001,a=1-Math.pow(o,1/300),l=0,c=.6,u=new Map,d=(0,i.O1)(p),f=(0,r.A)("tick","end"),h=function(){let t=1;return()=>(t=(1664525*t+1013904223)%A)/A}();function p(){g(),f.call("tick",e),n<o&&(d.stop(),f.call("end",e))}function g(r){var i,A,o=t.length;void 0===r&&(r=1);for(var s=0;s<r;++s)for(n+=(l-n)*a,u.forEach(function(t){t(n)}),i=0;i<o;++i)null==(A=t[i]).fx?A.x+=A.vx*=c:(A.x=A.fx,A.vx=0),null==A.fy?A.y+=A.vy*=c:(A.y=A.fy,A.vy=0);return e}function m(){for(var e,n=0,r=t.length;n<r;++n){if((e=t[n]).index=n,null!=e.fx&&(e.x=e.fx),null!=e.fy&&(e.y=e.fy),isNaN(e.x)||isNaN(e.y)){var i=10*Math.sqrt(.5+n),A=n*s;e.x=i*Math.cos(A),e.y=i*Math.sin(A)}(isNaN(e.vx)||isNaN(e.vy))&&(e.vx=e.vy=0)}}function y(e){return e.initialize&&e.initialize(t,h),e}return null==t&&(t=[]),m(),e={tick:g,restart:function(){return d.restart(p),e},stop:function(){return d.stop(),e},nodes:function(n){return arguments.length?(t=n,m(),u.forEach(y),e):t},alpha:function(t){return arguments.length?(n=+t,e):n},alphaMin:function(t){return arguments.length?(o=+t,e):o},alphaDecay:function(t){return arguments.length?(a=+t,e):+a},alphaTarget:function(t){return arguments.length?(l=+t,e):l},velocityDecay:function(t){return arguments.length?(c=1-t,e):1-c},randomSource:function(t){return arguments.length?(h=t,u.forEach(y),e):h},force:function(t,n){return arguments.length>1?(null==n?u.delete(t):u.set(t,y(n)),e):u.get(t)},find:function(e,n,r){var i,A,o,a,s,l=0,c=t.length;for(null==r?r=1/0:r*=r,l=0;l<c;++l)(o=(i=e-(a=t[l]).x)*i+(A=n-a.y)*A)<r&&(s=a,r=o);return s},on:function(t,n){return arguments.length>1?(f.on(t,n),e):f.on(t)}}}},"./node_modules/.pnpm/d3-format@3.1.2/node_modules/d3-format/src/defaultLocale.js"(t,e,n){"use strict";n.d(e,{GP:()=>u,s:()=>d});var r,i=n("./node_modules/.pnpm/d3-format@3.1.2/node_modules/d3-format/src/exponent.js"),A=n("./node_modules/.pnpm/d3-format@3.1.2/node_modules/d3-format/src/formatSpecifier.js"),o=n("./node_modules/.pnpm/d3-format@3.1.2/node_modules/d3-format/src/formatDecimal.js");function a(t,e){var n=(0,o.f)(t,e);if(!n)return t+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}const s={"%":(t,e)=>(100*t).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:o.A,e:(t,e)=>t.toExponential(e),f:(t,e)=>t.toFixed(e),g:(t,e)=>t.toPrecision(e),o:t=>Math.round(t).toString(8),p:(t,e)=>a(100*t,e),r:a,s:function(t,e){var n=(0,o.f)(t,e);if(!n)return r=void 0,t.toPrecision(e);var i=n[0],A=n[1],a=A-(r=3*Math.max(-8,Math.min(8,Math.floor(A/3))))+1,s=i.length;return a===s?i:a>s?i+new Array(a-s+1).join("0"):a>0?i.slice(0,a)+"."+i.slice(a):"0."+new Array(1-a).join("0")+(0,o.f)(t,Math.max(0,e+a-1))[0]},X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function l(t){return t}var c,u,d,f=Array.prototype.map,h=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];c=function(t){var e,n,o=void 0===t.grouping||void 0===t.thousands?l:(e=f.call(t.grouping,Number),n=t.thousands+"",function(t,r){for(var i=t.length,A=[],o=0,a=e[0],s=0;i>0&&a>0&&(s+a+1>r&&(a=Math.max(1,r-s)),A.push(t.substring(i-=a,i+a)),!((s+=a+1)>r));)a=e[o=(o+1)%e.length];return A.reverse().join(n)}),a=void 0===t.currency?"":t.currency[0]+"",c=void 0===t.currency?"":t.currency[1]+"",u=void 0===t.decimal?".":t.decimal+"",d=void 0===t.numerals?l:function(t){return function(e){return e.replace(/[0-9]/g,function(e){return t[+e]})}}(f.call(t.numerals,String)),p=void 0===t.percent?"%":t.percent+"",g=void 0===t.minus?"−":t.minus+"",m=void 0===t.nan?"NaN":t.nan+"";function y(t,e){var n=(t=(0,A.A)(t)).fill,i=t.align,l=t.sign,f=t.symbol,y=t.zero,v=t.width,b=t.comma,w=t.precision,B=t.trim,x=t.type;"n"===x?(b=!0,x="g"):s[x]||(void 0===w&&(w=12),B=!0,x="g"),(y||"0"===n&&"="===i)&&(y=!0,n="0",i="=");var C=(e&&void 0!==e.prefix?e.prefix:"")+("$"===f?a:"#"===f&&/[boxX]/.test(x)?"0"+x.toLowerCase():""),E=("$"===f?c:/[%p]/.test(x)?p:"")+(e&&void 0!==e.suffix?e.suffix:""),O=s[x],k=/[defgprs%]/.test(x);function F(t){var e,A,a,s=C,c=E;if("c"===x)c=O(t)+c,t="";else{var f=(t=+t)<0||1/t<0;if(t=isNaN(t)?m:O(Math.abs(t),w),B&&(t=function(t){t:for(var e,n=t.length,r=1,i=-1;r<n;++r)switch(t[r]){case".":i=e=r;break;case"0":0===i&&(i=r),e=r;break;default:if(!+t[r])break t;i>0&&(i=0)}return i>0?t.slice(0,i)+t.slice(e+1):t}(t)),f&&0===+t&&"+"!==l&&(f=!1),s=(f?"("===l?l:g:"-"===l||"("===l?"":l)+s,c=("s"!==x||isNaN(t)||void 0===r?"":h[8+r/3])+c+(f&&"("===l?")":""),k)for(e=-1,A=t.length;++e<A;)if(48>(a=t.charCodeAt(e))||a>57){c=(46===a?u+t.slice(e+1):t.slice(e))+c,t=t.slice(0,e);break}}b&&!y&&(t=o(t,1/0));var p=s.length+t.length+c.length,F=p<v?new Array(v-p+1).join(n):"";switch(b&&y&&(t=o(F+t,F.length?v-c.length:1/0),F=""),i){case"<":t=s+t+c+F;break;case"=":t=s+F+t+c;break;case"^":t=F.slice(0,p=F.length>>1)+s+t+c+F.slice(p);break;default:t=F+s+t+c}return d(t)}return w=void 0===w?6:/[gprs]/.test(x)?Math.max(1,Math.min(21,w)):Math.max(0,Math.min(20,w)),F.toString=function(){return t+""},F}return{format:y,formatPrefix:function(t,e){var n=3*Math.max(-8,Math.min(8,Math.floor((0,i.A)(e)/3))),r=Math.pow(10,-n),o=y(((t=(0,A.A)(t)).type="f",t),{suffix:h[8+n/3]});return function(t){return o(r*t)}}}}({thousands:",",grouping:[3],currency:["$",""]}),u=c.format,d=c.formatPrefix},"./node_modules/.pnpm/d3-format@3.1.2/node_modules/d3-format/src/exponent.js"(t,e,n){"use strict";n.d(e,{A:()=>i});var r=n("./node_modules/.pnpm/d3-format@3.1.2/node_modules/d3-format/src/formatDecimal.js");function i(t){return(t=(0,r.f)(Math.abs(t)))?t[1]:NaN}},"./node_modules/.pnpm/d3-format@3.1.2/node_modules/d3-format/src/formatDecimal.js"(t,e,n){"use strict";function r(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)}function i(t,e){if(!isFinite(t)||0===t)return null;var n=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"),r=t.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+t.slice(n+1)]}n.d(e,{A:()=>r,f:()=>i})},"./node_modules/.pnpm/d3-format@3.1.2/node_modules/d3-format/src/formatSpecifier.js"(t,e,n){"use strict";n.d(e,{A:()=>i});var r=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function i(t){if(!(e=r.exec(t)))throw new Error("invalid format: "+t);var e;return new A({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}function A(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}i.prototype=A.prototype,A.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type}},"./node_modules/.pnpm/d3-hierarchy@3.1.2/node_modules/d3-hierarchy/src/hierarchy/index.js"(t,e,n){"use strict";function r(t){var e=0,n=t.children,r=n&&n.length;if(r)for(;--r>=0;)e+=n[r].value;else e=1;t.value=e}function i(t,e){t instanceof Map?(t=[void 0,t],void 0===e&&(e=o)):void 0===e&&(e=A);for(var n,r,i,a,c,u=new l(t),d=[u];n=d.pop();)if((i=e(n.data))&&(c=(i=Array.from(i)).length))for(n.children=i,a=c-1;a>=0;--a)d.push(r=i[a]=new l(i[a])),r.parent=n,r.depth=n.depth+1;return u.eachBefore(s)}function A(t){return t.children}function o(t){return Array.isArray(t)?t[1]:null}function a(t){void 0!==t.data.value&&(t.value=t.data.value),t.data=t.data.data}function s(t){var e=0;do{t.height=e}while((t=t.parent)&&t.height<++e)}function l(t){this.data=t,this.depth=this.height=0,this.parent=null}n.d(e,{bP:()=>l,lW:()=>s,Ay:()=>i}),l.prototype=i.prototype={constructor:l,count:function(){return this.eachAfter(r)},each:function(t,e){let n=-1;for(const r of this)t.call(e,r,++n,this);return this},eachAfter:function(t,e){for(var n,r,i,A=this,o=[A],a=[],s=-1;A=o.pop();)if(a.push(A),n=A.children)for(r=0,i=n.length;r<i;++r)o.push(n[r]);for(;A=a.pop();)t.call(e,A,++s,this);return this},eachBefore:function(t,e){for(var n,r,i=this,A=[i],o=-1;i=A.pop();)if(t.call(e,i,++o,this),n=i.children)for(r=n.length-1;r>=0;--r)A.push(n[r]);return this},find:function(t,e){let n=-1;for(const r of this)if(t.call(e,r,++n,this))return r},sum:function(t){return this.eachAfter(function(e){for(var n=+t(e.data)||0,r=e.children,i=r&&r.length;--i>=0;)n+=r[i].value;e.value=n})},sort:function(t){return this.eachBefore(function(e){e.children&&e.children.sort(t)})},path:function(t){for(var e=this,n=function(t,e){if(t===e)return t;var n=t.ancestors(),r=e.ancestors(),i=null;for(t=n.pop(),e=r.pop();t===e;)i=t,t=n.pop(),e=r.pop();return i}(e,t),r=[e];e!==n;)r.push(e=e.parent);for(var i=r.length;t!==n;)r.splice(i,0,t),t=t.parent;return r},ancestors:function(){for(var t=this,e=[t];t=t.parent;)e.push(t);return e},descendants:function(){return Array.from(this)},leaves:function(){var t=[];return this.eachBefore(function(e){e.children||t.push(e)}),t},links:function(){var t=this,e=[];return t.each(function(n){n!==t&&e.push({source:n.parent,target:n})}),e},copy:function(){return i(this).eachBefore(a)},[Symbol.iterator]:function*(){var t,e,n,r,i=this,A=[i];do{for(t=A.reverse(),A=[];i=t.pop();)if(yield i,e=i.children)for(n=0,r=e.length;n<r;++n)A.push(e[n])}while(A.length)}}},"./node_modules/.pnpm/d3-hierarchy@3.1.2/node_modules/d3-hierarchy/src/tree.js"(t,e,n){"use strict";n.d(e,{A:()=>c});var r=n("./node_modules/.pnpm/d3-hierarchy@3.1.2/node_modules/d3-hierarchy/src/hierarchy/index.js");function i(t,e){return t.parent===e.parent?1:2}function A(t){var e=t.children;return e?e[0]:t.t}function o(t){var e=t.children;return e?e[e.length-1]:t.t}function a(t,e,n){var r=n/(e.i-t.i);e.c-=r,e.s+=n,t.c+=r,e.z+=n,e.m+=n}function s(t,e,n){return t.a.parent===e.parent?t.a:n}function l(t,e){this._=t,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=e}function c(){var t=i,e=1,n=1,r=null;function c(i){var A=function(t){for(var e,n,r,i,A,o=new l(t,0),a=[o];e=a.pop();)if(r=e._.children)for(e.children=new Array(A=r.length),i=A-1;i>=0;--i)a.push(n=e.children[i]=new l(r[i],i)),n.parent=e;return(o.parent=new l(null,0)).children=[o],o}(i);if(A.eachAfter(u),A.parent.m=-A.z,A.eachBefore(d),r)i.eachBefore(f);else{var o=i,a=i,s=i;i.eachBefore(function(t){t.x<o.x&&(o=t),t.x>a.x&&(a=t),t.depth>s.depth&&(s=t)});var c=o===a?1:t(o,a)/2,h=c-o.x,p=e/(a.x+c+h),g=n/(s.depth||1);i.eachBefore(function(t){t.x=(t.x+h)*p,t.y=t.depth*g})}return i}function u(e){var n=e.children,r=e.parent.children,i=e.i?r[e.i-1]:null;if(n){!function(t){for(var e,n=0,r=0,i=t.children,A=i.length;--A>=0;)(e=i[A]).z+=n,e.m+=n,n+=e.s+(r+=e.c)}(e);var l=(n[0].z+n[n.length-1].z)/2;i?(e.z=i.z+t(e._,i._),e.m=e.z-l):e.z=l}else i&&(e.z=i.z+t(e._,i._));e.parent.A=function(e,n,r){if(n){for(var i,l=e,c=e,u=n,d=l.parent.children[0],f=l.m,h=c.m,p=u.m,g=d.m;u=o(u),l=A(l),u&&l;)d=A(d),(c=o(c)).a=e,(i=u.z+p-l.z-f+t(u._,l._))>0&&(a(s(u,e,r),e,i),f+=i,h+=i),p+=u.m,f+=l.m,g+=d.m,h+=c.m;u&&!o(c)&&(c.t=u,c.m+=p-h),l&&!A(d)&&(d.t=l,d.m+=f-g,r=e)}return r}(e,i,e.parent.A||r[0])}function d(t){t._.x=t.z+t.parent.m,t.m+=t.parent.m}function f(t){t.x*=e,t.y=t.depth*n}return c.separation=function(e){return arguments.length?(t=e,c):t},c.size=function(t){return arguments.length?(r=!1,e=+t[0],n=+t[1],c):r?null:[e,n]},c.nodeSize=function(t){return arguments.length?(r=!0,e=+t[0],n=+t[1],c):r?[e,n]:null},c}l.prototype=Object.create(r.bP.prototype)},"./node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/color.js"(t,e,n){"use strict";n.d(e,{Ay:()=>a,lG:()=>A,uN:()=>o});var r=n("./node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/constant.js");function i(t,e){return function(n){return t+n*e}}function A(t,e){var n=e-t;return n?i(t,n>180||n<-180?n-360*Math.round(n/360):n):(0,r.A)(isNaN(t)?e:t)}function o(t){return 1===(t=+t)?a:function(e,n){return n-e?function(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}(e,n,t):(0,r.A)(isNaN(e)?n:e)}}function a(t,e){var n=e-t;return n?i(t,n):(0,r.A)(isNaN(t)?e:t)}},"./node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/constant.js"(t,e,n){"use strict";n.d(e,["A",0,t=>()=>t])},"./node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/rgb.js"(t,e,n){"use strict";n.d(e,{Ay:()=>o,Ik:()=>s});var r=n("./node_modules/.pnpm/d3-color@3.1.0/node_modules/d3-color/src/color.js");function i(t,e,n,r,i){var A=t*t,o=A*t;return((1-3*t+3*A-o)*e+(4-6*A+3*o)*n+(1+3*t+3*A-3*o)*r+o*i)/6}var A=n("./node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/color.js");const o=function t(e){var n=(0,A.uN)(e);function i(t,e){var i=n((t=(0,r.Qh)(t)).r,(e=(0,r.Qh)(e)).r),o=n(t.g,e.g),a=n(t.b,e.b),s=(0,A.Ay)(t.opacity,e.opacity);return function(e){return t.r=i(e),t.g=o(e),t.b=a(e),t.opacity=s(e),t+""}}return i.gamma=t,i}(1);function a(t){return function(e){var n,i,A=e.length,o=new Array(A),a=new Array(A),s=new Array(A);for(n=0;n<A;++n)i=(0,r.Qh)(e[n]),o[n]=i.r||0,a[n]=i.g||0,s[n]=i.b||0;return o=t(o),a=t(a),s=t(s),i.opacity=1,function(t){return i.r=o(t),i.g=a(t),i.b=s(t),i+""}}}var s=a(function(t){var e=t.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,e-1):Math.floor(n*e),A=t[r],o=t[r+1];return i((n-r/e)*e,r>0?t[r-1]:2*A-o,A,o,r<e-1?t[r+2]:2*o-A)}});a(function(t){var e=t.length;return function(n){var r=Math.floor(((n%=1)<0?++n:n)*e);return i((n-r/e)*e,t[(r+e-1)%e],t[r%e],t[(r+1)%e],t[(r+2)%e])}})},"./node_modules/.pnpm/d3-path@3.1.0/node_modules/d3-path/src/path.js"(t,e,n){"use strict";n.d(e,{Ae:()=>l,wA:()=>s});const r=Math.PI,i=2*r,A=1e-6,o=i-A;function a(t){this._+=t[0];for(let e=1,n=t.length;e<n;++e)this._+=arguments[e]+t[e]}class s{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=null==t?a:function(t){let e=Math.floor(t);if(!(e>=0))throw new Error(`invalid digits: ${t}`);if(e>15)return a;const n=10**e;return function(t){this._+=t[0];for(let e=1,r=t.length;e<r;++e)this._+=Math.round(arguments[e]*n)/n+t[e]}}(t)}moveTo(t,e){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+e}`}closePath(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,e){this._append`L${this._x1=+t},${this._y1=+e}`}quadraticCurveTo(t,e,n,r){this._append`Q${+t},${+e},${this._x1=+n},${this._y1=+r}`}bezierCurveTo(t,e,n,r,i,A){this._append`C${+t},${+e},${+n},${+r},${this._x1=+i},${this._y1=+A}`}arcTo(t,e,n,i,o){if(t=+t,e=+e,n=+n,i=+i,(o=+o)<0)throw new Error(`negative radius: ${o}`);let a=this._x1,s=this._y1,l=n-t,c=i-e,u=a-t,d=s-e,f=u*u+d*d;if(null===this._x1)this._append`M${this._x1=t},${this._y1=e}`;else if(f>A)if(Math.abs(d*l-c*u)>A&&o){let h=n-a,p=i-s,g=l*l+c*c,m=h*h+p*p,y=Math.sqrt(g),v=Math.sqrt(f),b=o*Math.tan((r-Math.acos((g+f-m)/(2*y*v)))/2),w=b/v,B=b/y;Math.abs(w-1)>A&&this._append`L${t+w*u},${e+w*d}`,this._append`A${o},${o},0,0,${+(d*h>u*p)},${this._x1=t+B*l},${this._y1=e+B*c}`}else this._append`L${this._x1=t},${this._y1=e}`}arc(t,e,n,a,s,l){if(t=+t,e=+e,l=!!l,(n=+n)<0)throw new Error(`negative radius: ${n}`);let c=n*Math.cos(a),u=n*Math.sin(a),d=t+c,f=e+u,h=1^l,p=l?a-s:s-a;null===this._x1?this._append`M${d},${f}`:(Math.abs(this._x1-d)>A||Math.abs(this._y1-f)>A)&&this._append`L${d},${f}`,n&&(p<0&&(p=p%i+i),p>o?this._append`A${n},${n},0,1,${h},${t-c},${e-u}A${n},${n},0,1,${h},${this._x1=d},${this._y1=f}`:p>A&&this._append`A${n},${n},0,${+(p>=r)},${h},${this._x1=t+n*Math.cos(s)},${this._y1=e+n*Math.sin(s)}`)}rect(t,e,n,r){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+e}h${n=+n}v${+r}h${-n}Z`}toString(){return this._}}function l(){return new s}l.prototype=s.prototype},"./node_modules/.pnpm/d3-quadtree@3.0.1/node_modules/d3-quadtree/src/quadtree.js"(t,e,n){"use strict";function r(t,e,n,r){if(isNaN(e)||isNaN(n))return t;var i,A,o,a,s,l,c,u,d,f=t._root,h={data:r},p=t._x0,g=t._y0,m=t._x1,y=t._y1;if(!f)return t._root=h,t;for(;f.length;)if((l=e>=(A=(p+m)/2))?p=A:m=A,(c=n>=(o=(g+y)/2))?g=o:y=o,i=f,!(f=f[u=c<<1|l]))return i[u]=h,t;if(a=+t._x.call(null,f.data),s=+t._y.call(null,f.data),e===a&&n===s)return h.next=f,i?i[u]=h:t._root=h,t;do{i=i?i[u]=new Array(4):t._root=new Array(4),(l=e>=(A=(p+m)/2))?p=A:m=A,(c=n>=(o=(g+y)/2))?g=o:y=o}while((u=c<<1|l)==(d=(s>=o)<<1|a>=A));return i[d]=f,i[u]=h,t}function i(t,e,n,r,i){this.node=t,this.x0=e,this.y0=n,this.x1=r,this.y1=i}function A(t){return t[0]}function o(t){return t[1]}function a(t,e,n){var r=new s(e??A,n??o,NaN,NaN,NaN,NaN);return null==t?r:r.addAll(t)}function s(t,e,n,r,i,A){this._x=t,this._y=e,this._x0=n,this._y0=r,this._x1=i,this._y1=A,this._root=void 0}function l(t){for(var e={data:t.data},n=e;t=t.next;)n=n.next={data:t.data};return e}n.d(e,{A:()=>a});var c=a.prototype=s.prototype;c.copy=function(){var t,e,n=new s(this._x,this._y,this._x0,this._y0,this._x1,this._y1),r=this._root;if(!r)return n;if(!r.length)return n._root=l(r),n;for(t=[{source:r,target:n._root=new Array(4)}];r=t.pop();)for(var i=0;i<4;++i)(e=r.source[i])&&(e.length?t.push({source:e,target:r.target[i]=new Array(4)}):r.target[i]=l(e));return n},c.add=function(t){const e=+this._x.call(null,t),n=+this._y.call(null,t);return r(this.cover(e,n),e,n,t)},c.addAll=function(t){var e,n,i,A,o=t.length,a=new Array(o),s=new Array(o),l=1/0,c=1/0,u=-1/0,d=-1/0;for(n=0;n<o;++n)isNaN(i=+this._x.call(null,e=t[n]))||isNaN(A=+this._y.call(null,e))||(a[n]=i,s[n]=A,i<l&&(l=i),i>u&&(u=i),A<c&&(c=A),A>d&&(d=A));if(l>u||c>d)return this;for(this.cover(l,c).cover(u,d),n=0;n<o;++n)r(this,a[n],s[n],t[n]);return this},c.cover=function(t,e){if(isNaN(t=+t)||isNaN(e=+e))return this;var n=this._x0,r=this._y0,i=this._x1,A=this._y1;if(isNaN(n))i=(n=Math.floor(t))+1,A=(r=Math.floor(e))+1;else{for(var o,a,s=i-n||1,l=this._root;n>t||t>=i||r>e||e>=A;)switch(a=(e<r)<<1|t<n,(o=new Array(4))[a]=l,l=o,s*=2,a){case 0:i=n+s,A=r+s;break;case 1:n=i-s,A=r+s;break;case 2:i=n+s,r=A-s;break;case 3:n=i-s,r=A-s}this._root&&this._root.length&&(this._root=l)}return this._x0=n,this._y0=r,this._x1=i,this._y1=A,this},c.data=function(){var t=[];return this.visit(function(e){if(!e.length)do{t.push(e.data)}while(e=e.next)}),t},c.extent=function(t){return arguments.length?this.cover(+t[0][0],+t[0][1]).cover(+t[1][0],+t[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]},c.find=function(t,e,n){var r,A,o,a,s,l,c,u=this._x0,d=this._y0,f=this._x1,h=this._y1,p=[],g=this._root;for(g&&p.push(new i(g,u,d,f,h)),null==n?n=1/0:(u=t-n,d=e-n,f=t+n,h=e+n,n*=n);l=p.pop();)if(!(!(g=l.node)||(A=l.x0)>f||(o=l.y0)>h||(a=l.x1)<u||(s=l.y1)<d))if(g.length){var m=(A+a)/2,y=(o+s)/2;p.push(new i(g[3],m,y,a,s),new i(g[2],A,y,m,s),new i(g[1],m,o,a,y),new i(g[0],A,o,m,y)),(c=(e>=y)<<1|t>=m)&&(l=p[p.length-1],p[p.length-1]=p[p.length-1-c],p[p.length-1-c]=l)}else{var v=t-+this._x.call(null,g.data),b=e-+this._y.call(null,g.data),w=v*v+b*b;if(w<n){var B=Math.sqrt(n=w);u=t-B,d=e-B,f=t+B,h=e+B,r=g.data}}return r},c.remove=function(t){if(isNaN(A=+this._x.call(null,t))||isNaN(o=+this._y.call(null,t)))return this;var e,n,r,i,A,o,a,s,l,c,u,d,f=this._root,h=this._x0,p=this._y0,g=this._x1,m=this._y1;if(!f)return this;if(f.length)for(;;){if((l=A>=(a=(h+g)/2))?h=a:g=a,(c=o>=(s=(p+m)/2))?p=s:m=s,e=f,!(f=f[u=c<<1|l]))return this;if(!f.length)break;(e[u+1&3]||e[u+2&3]||e[u+3&3])&&(n=e,d=u)}for(;f.data!==t;)if(r=f,!(f=f.next))return this;return(i=f.next)&&delete f.next,r?(i?r.next=i:delete r.next,this):e?(i?e[u]=i:delete e[u],(f=e[0]||e[1]||e[2]||e[3])&&f===(e[3]||e[2]||e[1]||e[0])&&!f.length&&(n?n[d]=f:this._root=f),this):(this._root=i,this)},c.removeAll=function(t){for(var e=0,n=t.length;e<n;++e)this.remove(t[e]);return this},c.root=function(){return this._root},c.size=function(){var t=0;return this.visit(function(e){if(!e.length)do{++t}while(e=e.next)}),t},c.visit=function(t){var e,n,r,A,o,a,s=[],l=this._root;for(l&&s.push(new i(l,this._x0,this._y0,this._x1,this._y1));e=s.pop();)if(!t(l=e.node,r=e.x0,A=e.y0,o=e.x1,a=e.y1)&&l.length){var c=(r+o)/2,u=(A+a)/2;(n=l[3])&&s.push(new i(n,c,u,o,a)),(n=l[2])&&s.push(new i(n,r,u,c,a)),(n=l[1])&&s.push(new i(n,c,A,o,u)),(n=l[0])&&s.push(new i(n,r,A,c,u))}return this},c.visitAfter=function(t){var e,n=[],r=[];for(this._root&&n.push(new i(this._root,this._x0,this._y0,this._x1,this._y1));e=n.pop();){var A=e.node;if(A.length){var o,a=e.x0,s=e.y0,l=e.x1,c=e.y1,u=(a+l)/2,d=(s+c)/2;(o=A[0])&&n.push(new i(o,a,s,u,d)),(o=A[1])&&n.push(new i(o,u,s,l,d)),(o=A[2])&&n.push(new i(o,a,d,u,c)),(o=A[3])&&n.push(new i(o,u,d,l,c))}r.push(e)}for(;e=r.pop();)t(e.node,e.x0,e.y0,e.x1,e.y1);return this},c.x=function(t){return arguments.length?(this._x=t,this):this._x},c.y=function(t){return arguments.length?(this._y=t,this):this._y}},"./node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/arc.js"(t,e,n){"use strict";n.d(e,{A:()=>d});var r=n("./node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/constant.js"),i=n("./node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/math.js"),A=n("./node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/path.js");function o(t){return t.innerRadius}function a(t){return t.outerRadius}function s(t){return t.startAngle}function l(t){return t.endAngle}function c(t){return t&&t.padAngle}function u(t,e,n,r,A,o,a){var s=t-n,l=e-r,c=(a?o:-o)/(0,i.RZ)(s*s+l*l),u=c*l,d=-c*s,f=t+u,h=e+d,p=n+u,g=r+d,m=(f+p)/2,y=(h+g)/2,v=p-f,b=g-h,w=v*v+b*b,B=A-o,x=f*g-p*h,C=(b<0?-1:1)*(0,i.RZ)((0,i.T9)(0,B*B*w-x*x)),E=(x*b-v*C)/w,O=(-x*v-b*C)/w,k=(x*b+v*C)/w,F=(-x*v+b*C)/w,Q=E-m,M=O-y,U=k-m,S=F-y;return Q*Q+M*M>U*U+S*S&&(E=k,O=F),{cx:E,cy:O,x01:-u,y01:-d,x11:E*(A/B-1),y11:O*(A/B-1)}}function d(){var t=o,e=a,n=(0,r.A)(0),d=null,f=s,h=l,p=c,g=null,m=(0,A.i)(y);function y(){var r,A,o=+t.apply(this,arguments),a=+e.apply(this,arguments),s=f.apply(this,arguments)-i.TW,l=h.apply(this,arguments)-i.TW,c=(0,i.tn)(l-s),y=l>s;if(g||(g=r=m()),a<o&&(A=a,a=o,o=A),a>1e-12)if(c>i.FA-1e-12)g.moveTo(a*(0,i.gn)(s),a*(0,i.F8)(s)),g.arc(0,0,a,s,l,!y),o>1e-12&&(g.moveTo(o*(0,i.gn)(l),o*(0,i.F8)(l)),g.arc(0,0,o,l,s,y));else{var v,b,w=s,B=l,x=s,C=l,E=c,O=c,k=p.apply(this,arguments)/2,F=k>1e-12&&(d?+d.apply(this,arguments):(0,i.RZ)(o*o+a*a)),Q=(0,i.jk)((0,i.tn)(a-o)/2,+n.apply(this,arguments)),M=Q,U=Q;if(F>1e-12){var S=(0,i.qR)(F/o*(0,i.F8)(k)),_=(0,i.qR)(F/a*(0,i.F8)(k));(E-=2*S)>1e-12?(x+=S*=y?1:-1,C-=S):(E=0,x=C=(s+l)/2),(O-=2*_)>1e-12?(w+=_*=y?1:-1,B-=_):(O=0,w=B=(s+l)/2)}var I=a*(0,i.gn)(w),T=a*(0,i.F8)(w),L=o*(0,i.gn)(C),P=o*(0,i.F8)(C);if(Q>1e-12){var j,H=a*(0,i.gn)(B),N=a*(0,i.F8)(B),D=o*(0,i.gn)(x),R=o*(0,i.F8)(x);if(c<i.pi)if(j=function(t,e,n,r,i,A,o,a){var s=n-t,l=r-e,c=o-i,u=a-A,d=u*s-c*l;if(!(d*d<1e-12))return[t+(d=(c*(e-A)-u*(t-i))/d)*s,e+d*l]}(I,T,D,R,H,N,L,P)){var K=I-j[0],z=T-j[1],G=H-j[0],V=N-j[1],W=1/(0,i.F8)((0,i.HQ)((K*G+z*V)/((0,i.RZ)(K*K+z*z)*(0,i.RZ)(G*G+V*V)))/2),X=(0,i.RZ)(j[0]*j[0]+j[1]*j[1]);M=(0,i.jk)(Q,(o-X)/(W-1)),U=(0,i.jk)(Q,(a-X)/(W+1))}else M=U=0}O>1e-12?U>1e-12?(v=u(D,R,I,T,a,U,y),b=u(H,N,L,P,a,U,y),g.moveTo(v.cx+v.x01,v.cy+v.y01),U<Q?g.arc(v.cx,v.cy,U,(0,i.FP)(v.y01,v.x01),(0,i.FP)(b.y01,b.x01),!y):(g.arc(v.cx,v.cy,U,(0,i.FP)(v.y01,v.x01),(0,i.FP)(v.y11,v.x11),!y),g.arc(0,0,a,(0,i.FP)(v.cy+v.y11,v.cx+v.x11),(0,i.FP)(b.cy+b.y11,b.cx+b.x11),!y),g.arc(b.cx,b.cy,U,(0,i.FP)(b.y11,b.x11),(0,i.FP)(b.y01,b.x01),!y))):(g.moveTo(I,T),g.arc(0,0,a,w,B,!y)):g.moveTo(I,T),o>1e-12&&E>1e-12?M>1e-12?(v=u(L,P,H,N,o,-M,y),b=u(I,T,D,R,o,-M,y),g.lineTo(v.cx+v.x01,v.cy+v.y01),M<Q?g.arc(v.cx,v.cy,M,(0,i.FP)(v.y01,v.x01),(0,i.FP)(b.y01,b.x01),!y):(g.arc(v.cx,v.cy,M,(0,i.FP)(v.y01,v.x01),(0,i.FP)(v.y11,v.x11),!y),g.arc(0,0,o,(0,i.FP)(v.cy+v.y11,v.cx+v.x11),(0,i.FP)(b.cy+b.y11,b.cx+b.x11),y),g.arc(b.cx,b.cy,M,(0,i.FP)(b.y11,b.x11),(0,i.FP)(b.y01,b.x01),!y))):g.arc(0,0,o,C,x,y):g.lineTo(L,P)}else g.moveTo(0,0);if(g.closePath(),r)return g=null,r+""||null}return y.centroid=function(){var n=(+t.apply(this,arguments)+ +e.apply(this,arguments))/2,r=(+f.apply(this,arguments)+ +h.apply(this,arguments))/2-i.pi/2;return[(0,i.gn)(r)*n,(0,i.F8)(r)*n]},y.innerRadius=function(e){return arguments.length?(t="function"==typeof e?e:(0,r.A)(+e),y):t},y.outerRadius=function(t){return arguments.length?(e="function"==typeof t?t:(0,r.A)(+t),y):e},y.cornerRadius=function(t){return arguments.length?(n="function"==typeof t?t:(0,r.A)(+t),y):n},y.padRadius=function(t){return arguments.length?(d=null==t?null:"function"==typeof t?t:(0,r.A)(+t),y):d},y.startAngle=function(t){return arguments.length?(f="function"==typeof t?t:(0,r.A)(+t),y):f},y.endAngle=function(t){return arguments.length?(h="function"==typeof t?t:(0,r.A)(+t),y):h},y.padAngle=function(t){return arguments.length?(p="function"==typeof t?t:(0,r.A)(+t),y):p},y.context=function(t){return arguments.length?(g=t??null,y):g},y}},"./node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/array.js"(t,e,n){"use strict";function r(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}n.d(e,{A:()=>r})},"./node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/constant.js"(t,e,n){"use strict";function r(t){return function(){return t}}n.d(e,{A:()=>r})},"./node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/linear.js"(t,e,n){"use strict";function r(t){this._context=t}function i(t){return new r(t)}n.d(e,{A:()=>i}),r.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e)}}}},"./node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/line.js"(t,e,n){"use strict";n.d(e,{A:()=>s});var r=n("./node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/array.js"),i=n("./node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/constant.js"),A=n("./node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/linear.js"),o=n("./node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/path.js"),a=n("./node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/point.js");function s(t,e){var n=(0,i.A)(!0),s=null,l=A.A,c=null,u=(0,o.i)(d);function d(i){var A,o,a,d=(i=(0,r.A)(i)).length,f=!1;for(null==s&&(c=l(a=u())),A=0;A<=d;++A)!(A<d&&n(o=i[A],A,i))===f&&((f=!f)?c.lineStart():c.lineEnd()),f&&c.point(+t(o,A,i),+e(o,A,i));if(a)return c=null,a+""||null}return t="function"==typeof t?t:void 0===t?a.x:(0,i.A)(t),e="function"==typeof e?e:void 0===e?a.y:(0,i.A)(e),d.x=function(e){return arguments.length?(t="function"==typeof e?e:(0,i.A)(+e),d):t},d.y=function(t){return arguments.length?(e="function"==typeof t?t:(0,i.A)(+t),d):e},d.defined=function(t){return arguments.length?(n="function"==typeof t?t:(0,i.A)(!!t),d):n},d.curve=function(t){return arguments.length?(l=t,null!=s&&(c=l(s)),d):l},d.context=function(t){return arguments.length?(null==t?s=c=null:c=l(s=t),d):s},d}},"./node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/math.js"(t,e,n){"use strict";n.d(e,{HQ:()=>d,qR:()=>f});const r=Math.abs,i=Math.atan2,A=Math.cos,o=Math.max,a=Math.min,s=Math.sin,l=Math.sqrt,c=Math.PI,u=c/2;function d(t){return t>1?0:t<-1?c:Math.acos(t)}function f(t){return t>=1?u:t<=-1?-u:Math.asin(t)}n.d(e,["F8",0,s,"FA",0,2*c,"FP",0,i,"RZ",0,l,"T9",0,o,"TW",0,u,"gn",0,A,"jk",0,a,"pi",0,c,"tn",0,r])},"./node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/path.js"(t,e,n){"use strict";n.d(e,{i:()=>i});var r=n("./node_modules/.pnpm/d3-path@3.1.0/node_modules/d3-path/src/path.js");function i(t){let e=3;return t.digits=function(n){if(!arguments.length)return e;if(null==n)e=null;else{const t=Math.floor(n);if(!(t>=0))throw new RangeError(`invalid digits: ${n}`);e=t}return t},()=>new r.wA(e)}},"./node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/point.js"(t,e,n){"use strict";function r(t){return t[0]}function i(t){return t[1]}n.d(e,{x:()=>r,y:()=>i})},"./node_modules/.pnpm/d3-timer@3.0.1/node_modules/d3-timer/src/timer.js"(t,e,n){"use strict";n.d(e,{M4:()=>p,O1:()=>g,tB:()=>f});var r,i,A=0,o=0,a=0,s=0,l=0,c=0,u="object"==typeof performance&&performance.now?performance:Date,d="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function f(){return l||(d(h),l=u.now()+c)}function h(){l=0}function p(){this._call=this._time=this._next=null}function g(t,e,n){var r=new p;return r.restart(t,e,n),r}function m(){l=(s=u.now())+c,A=o=0;try{!function(){f(),++A;for(var t,e=r;e;)(t=l-e._time)>=0&&e._call.call(void 0,t),e=e._next;--A}()}finally{A=0,function(){for(var t,e,n=r,A=1/0;n;)n._call?(A>n._time&&(A=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:r=e);i=t,v(A)}(),l=0}}function y(){var t=u.now(),e=t-s;e>1e3&&(c-=e,s=t)}function v(t){A||(o&&(o=clearTimeout(o)),t-l>24?(t<1/0&&(o=setTimeout(m,t-u.now()-c)),a&&(a=clearInterval(a))):(a||(s=u.now(),a=setInterval(y,1e3)),A=1,d(m)))}p.prototype=g.prototype={constructor:p,restart:function(t,e,n){if("function"!=typeof t)throw new TypeError("callback is not a function");n=(null==n?f():+n)+(null==e?0:+e),this._next||i===this||(i?i._next=this:r=this,i=this),this._call=t,this._time=n,v()},stop:function(){this._call&&(this._call=null,this._time=1/0,v())}}},"./node_modules/.pnpm/eventemitter3@5.0.4/node_modules/eventemitter3/index.mjs"(t,e,n){"use strict";var r=n("./node_modules/.pnpm/eventemitter3@5.0.4/node_modules/eventemitter3/index.js");n.d(e,["A",0,r])},"./node_modules/.pnpm/flru@1.0.2/node_modules/flru/dist/flru.mjs"(t,e,n){"use strict";function r(t){var e,n,r,i=t||1;function A(t,A){++e>i&&(r=n,o(1),++e),n[t]=A}function o(t){e=0,n=Object.create(null),t||(r=Object.create(null))}return o(),{clear:o,has:function(t){return void 0!==n[t]||void 0!==r[t]},get:function(t){var e=n[t];return void 0!==e?e:void 0!==(e=r[t])?(A(t,e),e):void 0},set:function(t,e){void 0!==n[t]?n[t]=e:A(t,e)}}}n.d(e,{A:()=>r})}}]);
|