streamlit 1.49.1__py3-none-any.whl → 1.50.0__py3-none-any.whl
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.
- streamlit/column_config.py +2 -0
- streamlit/commands/navigation.py +3 -1
- streamlit/components/v1/custom_component.py +17 -42
- streamlit/config.py +306 -0
- streamlit/connections/base_connection.py +4 -2
- streamlit/dataframe_util.py +3 -2
- streamlit/delta_generator.py +2 -3
- streamlit/elements/arrow.py +63 -43
- streamlit/elements/deck_gl_json_chart.py +1 -0
- streamlit/elements/form.py +6 -6
- streamlit/elements/graphviz_chart.py +23 -6
- streamlit/elements/iframe.py +0 -2
- streamlit/elements/image.py +10 -9
- streamlit/elements/layouts.py +58 -11
- streamlit/elements/lib/built_in_chart_utils.py +95 -29
- streamlit/elements/lib/column_config_utils.py +5 -0
- streamlit/elements/lib/column_types.py +563 -144
- streamlit/elements/lib/dialog.py +1 -0
- streamlit/elements/lib/pandas_styler_utils.py +30 -14
- streamlit/elements/lib/utils.py +17 -5
- streamlit/elements/map.py +1 -3
- streamlit/elements/media.py +2 -0
- streamlit/elements/metric.py +10 -32
- streamlit/elements/plotly_chart.py +17 -9
- streamlit/elements/pyplot.py +6 -6
- streamlit/elements/vega_charts.py +110 -44
- streamlit/elements/widgets/audio_input.py +48 -0
- streamlit/elements/widgets/button.py +27 -25
- streamlit/elements/widgets/button_group.py +1 -0
- streamlit/elements/widgets/camera_input.py +1 -0
- streamlit/elements/widgets/chat.py +1 -0
- streamlit/elements/widgets/checkbox.py +1 -0
- streamlit/elements/widgets/color_picker.py +1 -0
- streamlit/elements/widgets/data_editor.py +6 -5
- streamlit/elements/widgets/file_uploader.py +1 -0
- streamlit/elements/widgets/multiselect.py +10 -0
- streamlit/elements/widgets/number_input.py +3 -0
- streamlit/elements/widgets/radio.py +1 -0
- streamlit/elements/widgets/select_slider.py +1 -0
- streamlit/elements/widgets/selectbox.py +4 -0
- streamlit/elements/widgets/slider.py +1 -0
- streamlit/elements/widgets/text_widgets.py +6 -0
- streamlit/elements/widgets/time_widgets.py +9 -0
- streamlit/elements/write.py +1 -17
- streamlit/git_util.py +65 -43
- streamlit/material_icon_names.py +1 -1
- streamlit/proto/Arrow_pb2.py +10 -8
- streamlit/proto/Arrow_pb2.pyi +31 -2
- streamlit/proto/AudioInput_pb2.py +2 -2
- streamlit/proto/AudioInput_pb2.pyi +6 -2
- streamlit/proto/Block_pb2.py +11 -11
- streamlit/proto/Block_pb2.pyi +5 -0
- streamlit/proto/NewSession_pb2.py +18 -16
- streamlit/proto/NewSession_pb2.pyi +135 -2
- streamlit/runtime/app_session.py +18 -5
- streamlit/runtime/theme_util.py +148 -0
- streamlit/static/index.html +2 -2
- streamlit/static/manifest.json +222 -222
- streamlit/static/static/css/index.CHEnSPGk.css +1 -0
- streamlit/static/static/css/{index.C8X8rNzw.css → index.CIiu7Ygf.css} +1 -1
- streamlit/static/static/js/{ErrorOutline.esm.DcGrhbBP.js → ErrorOutline.esm.DUpR0_Ka.js} +1 -1
- streamlit/static/static/js/{FileDownload.esm.DgBvV6Pq.js → FileDownload.esm.CN4j9-1w.js} +1 -1
- streamlit/static/static/js/{FileHelper.M6AAaeuA.js → FileHelper.CaIUKG91.js} +1 -1
- streamlit/static/static/js/{FormClearHelper.DHh1GFzm.js → FormClearHelper.DTcdrasw.js} +1 -1
- streamlit/static/static/js/{Hooks.DGu1od_L.js → Hooks.BRba_Own.js} +1 -1
- streamlit/static/static/js/InputInstructions.xnSDuYeQ.js +1 -0
- streamlit/static/static/js/{Particles.DDVT-6Qc.js → Particles.CElH0XX2.js} +1 -1
- streamlit/static/static/js/{ProgressBar.BEY0cXXV.js → ProgressBar.DetlP5aY.js} +2 -2
- streamlit/static/static/js/Toolbar.C77ar7rq.js +1 -0
- streamlit/static/static/js/{base-input.CK3UVGp1.js → base-input.BQft14La.js} +3 -3
- streamlit/static/static/js/{checkbox.D8W881TL.js → checkbox.yZOfXCeX.js} +1 -1
- streamlit/static/static/js/{createSuper.B6W-Dh9S.js → createSuper.Dh9w1cs8.js} +1 -1
- streamlit/static/static/js/data-grid-overlay-editor.DcuHuCyW.js +1 -0
- streamlit/static/static/js/{downloader.DiKpuU_S.js → downloader.MeHtkq8r.js} +1 -1
- streamlit/static/static/js/{es6.B8zRNPZ-.js → es6.VpBPGCnM.js} +2 -2
- streamlit/static/static/js/{iframeResizer.contentWindow.DIewJmmh.js → iframeResizer.contentWindow.yMw_ARIL.js} +1 -1
- streamlit/static/static/js/{index.B9mjBcgE.js → index.64ejlaaT.js} +1 -1
- streamlit/static/static/js/{index.CD8HuT3N.js → index.6xX1278W.js} +90 -91
- streamlit/static/static/js/index.B-hiXRzw.js +1 -0
- streamlit/static/static/js/{index.Ch7MBCx0.js → index.B0H9IXUJ.js} +47 -47
- streamlit/static/static/js/{index.4eF4NxG2.js → index.B4cAbHP6.js} +1 -1
- streamlit/static/static/js/{index.Dk4C7X3i.js → index.B4dUQfni.js} +1 -1
- streamlit/static/static/js/{index.CvYYtxD_.js → index.BPQo7BKk.js} +1 -1
- streamlit/static/static/js/index.Baqa90pe.js +2 -0
- streamlit/static/static/js/{index.D5naqx-J.js → index.Bj9JgOEC.js} +1 -1
- streamlit/static/static/js/index.BjCwMzj4.js +3 -0
- streamlit/static/static/js/{index.C_tmcx4B.js → index.Bm3VbPB5.js} +1 -1
- streamlit/static/static/js/{index.C7fRKRs4.js → index.Bxz2yX3P.js} +1 -1
- streamlit/static/static/js/{index.ho6NIXGl.js → index.BycLveZ4.js} +1 -1
- streamlit/static/static/js/{index.452cqrrL.js → index.C9BdUqTi.js} +1 -1
- streamlit/static/static/js/index.CFMf5_ez.js +197 -0
- streamlit/static/static/js/index.CGYqqs6j.js +1 -0
- streamlit/static/static/js/{index.zecpGxtj.js → index.CH1tqnSs.js} +1 -1
- streamlit/static/static/js/{index.CjXWwH-y.js → index.CMItVsFA.js} +1 -1
- streamlit/static/static/js/{index.B6U8LQo3.js → index.CTBk8Vk2.js} +1 -1
- streamlit/static/static/js/index.CiAQIz1H.js +7 -0
- streamlit/static/static/js/index.Cj7DSzVR.js +73 -0
- streamlit/static/static/js/index.Ck8rQ9OL.js +1 -0
- streamlit/static/static/js/{index.Ts_0SdB9.js → index.ClELlchS.js} +2 -2
- streamlit/static/static/js/{index.Bte_9Lyq.js → index.Cnpi3o3E.js} +1 -1
- streamlit/static/static/js/{index.CcJf6BCU.js → index.Ctn27_AE.js} +1 -1
- streamlit/static/static/js/{index.CP5TD2z1.js → index.D2QEXQq_.js} +1 -1
- streamlit/static/static/js/index.DH71Ezyj.js +1 -0
- streamlit/static/static/js/{index.D2-atlaQ.js → index.DHh-U0dK.js} +2 -2
- streamlit/static/static/js/{index.DtYN2x4k.js → index.DK7hD7_w.js} +1 -1
- streamlit/static/static/js/{index.qhs54UAB.js → index.DKv_lNO7.js} +1 -1
- streamlit/static/static/js/index.DNLrMXgm.js +12 -0
- streamlit/static/static/js/index.DW0Grddz.js +1 -0
- streamlit/static/static/js/{index.cnnXF7xQ.js → index.Dbe-Q3C-.js} +1 -1
- streamlit/static/static/js/index.DcPNYEUo.js +1 -0
- streamlit/static/static/js/index.DuxqVQpd.js +1 -0
- streamlit/static/static/js/{index.CejBxbg1.js → index.FFOzOWzC.js} +1 -1
- streamlit/static/static/js/{index.BnEpvLEz.js → index.GRUzrudl.js} +1 -1
- streamlit/static/static/js/{input.nzVJphXi.js → input.s6pjQ49A.js} +1 -1
- streamlit/static/static/js/{memory.CjCgTQz3.js → memory.Cuvsdfrl.js} +1 -1
- streamlit/static/static/js/{number-overlay-editor.DaRFzZEO.js → number-overlay-editor.DdgVR5m3.js} +1 -1
- streamlit/static/static/js/{possibleConstructorReturn.DgiPnZ9N.js → possibleConstructorReturn.CqidKeei.js} +1 -1
- streamlit/static/static/js/{sandbox.mithfq7Z.js → sandbox.CCQREcJx.js} +1 -1
- streamlit/static/static/js/{timepicker.Dbl5KFh6.js → timepicker.mkJF97Bb.js} +4 -4
- streamlit/static/static/js/{toConsumableArray.D-Dx88BQ.js → toConsumableArray.De7I7KVR.js} +1 -1
- streamlit/static/static/js/{uniqueId.Bh26R_3S.js → uniqueId.RI1LJdtz.js} +1 -1
- streamlit/static/static/js/{useBasicWidgetState.DeK-QJpD.js → useBasicWidgetState.CedkNjUW.js} +1 -1
- streamlit/static/static/js/{useTextInputAutoExpand.4iAdLWD-.js → useTextInputAutoExpand.Ca7w8dVs.js} +2 -2
- streamlit/static/static/js/{useUpdateUiValue.CmT7_nJN.js → useUpdateUiValue.DeXelfRH.js} +1 -1
- streamlit/static/static/js/withFullScreenWrapper.C3561XxJ.js +1 -0
- streamlit/static/static/media/MaterialSymbols-Rounded.DeCZgS-4.woff2 +0 -0
- streamlit/string_util.py +58 -1
- streamlit/web/bootstrap.py +0 -31
- streamlit/web/server/routes.py +17 -4
- streamlit/web/server/server.py +1 -0
- {streamlit-1.49.1.dist-info → streamlit-1.50.0.dist-info}/METADATA +1 -1
- {streamlit-1.49.1.dist-info → streamlit-1.50.0.dist-info}/RECORD +136 -135
- streamlit/static/static/css/index.COe1010n.css +0 -1
- streamlit/static/static/js/InputInstructions.z6sVgyYt.js +0 -1
- streamlit/static/static/js/Toolbar.DSnK1fUh.js +0 -1
- streamlit/static/static/js/data-grid-overlay-editor.DRTHOydk.js +0 -1
- streamlit/static/static/js/index.BXYmrqnf.js +0 -1
- streamlit/static/static/js/index.B_8AnktO.js +0 -1
- streamlit/static/static/js/index.Bl7zGQSh.js +0 -7
- streamlit/static/static/js/index.BnJIOYn9.js +0 -73
- streamlit/static/static/js/index.C1HcTl5K.js +0 -1
- streamlit/static/static/js/index.C7lSmSOP.js +0 -1
- streamlit/static/static/js/index.D3K5nOu9.js +0 -197
- streamlit/static/static/js/index.DkKT3LUI.js +0 -1
- streamlit/static/static/js/index.MTPPBDHk.js +0 -2
- streamlit/static/static/js/index.pqW9AMJD.js +0 -3
- streamlit/static/static/js/index.urHgTgMQ.js +0 -12
- streamlit/static/static/js/index.wzkv_11M.js +0 -1
- streamlit/static/static/js/index.yF5AncHY.js +0 -1
- streamlit/static/static/js/withFullScreenWrapper.DLp1ENGm.js +0 -1
- streamlit/static/static/media/MaterialSymbols-Rounded.CBxVaFdk.woff2 +0 -0
- {streamlit-1.49.1.data → streamlit-1.50.0.data}/scripts/streamlit.cmd +0 -0
- {streamlit-1.49.1.dist-info → streamlit-1.50.0.dist-info}/WHEEL +0 -0
- {streamlit-1.49.1.dist-info → streamlit-1.50.0.dist-info}/entry_points.txt +0 -0
- {streamlit-1.49.1.dist-info → streamlit-1.50.0.dist-info}/top_level.txt +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{b0 as $8,b1 as J8,a5 as Q8,x as eF,b2 as tF,b3 as tS,b4 as rF,b5 as aF,b6 as nF,b7 as qv,b8 as yh,b9 as rS,ba as iF,aA as Wf,o as KA,bb as oF,bc as Yg,r as Gv,J as aS,j as ub,u as sF}from"./index.CD8HuT3N.js";import{w as lF,E as nS}from"./withFullScreenWrapper.DLp1ENGm.js";import{F as uF}from"./FormClearHelper.DHh1GFzm.js";var sb={},lb={},$A;function cF(){return $A||($A=1,function(rn){function Wi(Xo){"@babel/helpers - typeof";return Wi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(al){return typeof al}:function(al){return al&&typeof Symbol=="function"&&al.constructor===Symbol&&al!==Symbol.prototype?"symbol":typeof al},Wi(Xo)}Object.defineProperty(rn,"__esModule",{value:!0}),rn.default=qd;var Ss=Hu($8()),Bo=Is(J8());function Is(Xo){return Xo&&Xo.__esModule?Xo:{default:Xo}}function rc(Xo){if(typeof WeakMap!="function")return null;var al=new WeakMap,dc=new WeakMap;return(rc=function(iu){return iu?dc:al})(Xo)}function Hu(Xo,al){if(Xo&&Xo.__esModule)return Xo;if(Xo===null||Wi(Xo)!=="object"&&typeof Xo!="function")return{default:Xo};var dc=rc(al);if(dc&&dc.has(Xo))return dc.get(Xo);var Zn={},iu=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var bl in Xo)if(bl!=="default"&&Object.prototype.hasOwnProperty.call(Xo,bl)){var go=iu?Object.getOwnPropertyDescriptor(Xo,bl):null;go&&(go.get||go.set)?Object.defineProperty(Zn,bl,go):Zn[bl]=Xo[bl]}return Zn.default=Xo,dc&&dc.set(Xo,Zn),Zn}function Xf(Xo,al){if(!(Xo instanceof al))throw new TypeError("Cannot call a class as a function")}function Tf(Xo,al){for(var dc=0;dc<al.length;dc++){var Zn=al[dc];Zn.enumerable=Zn.enumerable||!1,Zn.configurable=!0,"value"in Zn&&(Zn.writable=!0),Object.defineProperty(Xo,Zn.key,Zn)}}function gf(Xo,al,dc){return al&&Tf(Xo.prototype,al),Object.defineProperty(Xo,"prototype",{writable:!1}),Xo}function Af(Xo,al){if(typeof al!="function"&&al!==null)throw new TypeError("Super expression must either be null or a function");Xo.prototype=Object.create(al&&al.prototype,{constructor:{value:Xo,writable:!0,configurable:!0}}),Object.defineProperty(Xo,"prototype",{writable:!1}),al&&Qc(Xo,al)}function Qc(Xo,al){return Qc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(Zn,iu){return Zn.__proto__=iu,Zn},Qc(Xo,al)}function Fc(Xo){var al=Sf();return function(){var Zn=Js(Xo),iu;if(al){var bl=Js(this).constructor;iu=Reflect.construct(Zn,arguments,bl)}else iu=Zn.apply(this,arguments);return vs(this,iu)}}function vs(Xo,al){if(al&&(Wi(al)==="object"||typeof al=="function"))return al;if(al!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Hl(Xo)}function Hl(Xo){if(Xo===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Xo}function Sf(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Js(Xo){return Js=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(dc){return dc.__proto__||Object.getPrototypeOf(dc)},Js(Xo)}var He=["AfterExport","AfterPlot","Animated","AnimatingFrame","AnimationInterrupted","AutoSize","BeforeExport","BeforeHover","ButtonClicked","Click","ClickAnnotation","Deselect","DoubleClick","Framework","Hover","LegendClick","LegendDoubleClick","Relayout","Relayouting","Restyle","Redraw","Selected","Selecting","SliderChange","SliderEnd","SliderStart","SunburstClick","Transitioning","TransitionInterrupted","Unhover","WebGlContextLost"],wv=["plotly_restyle","plotly_redraw","plotly_relayout","plotly_relayouting","plotly_doubleclick","plotly_animated","plotly_sunburstclick"],cd=typeof window<"u";function qd(Xo){var al=function(dc){Af(iu,dc);var Zn=Fc(iu);function iu(bl){var go;return Xf(this,iu),go=Zn.call(this,bl),go.p=Promise.resolve(),go.resizeHandler=null,go.handlers={},go.syncWindowResize=go.syncWindowResize.bind(Hl(go)),go.syncEventHandlers=go.syncEventHandlers.bind(Hl(go)),go.attachUpdateEvents=go.attachUpdateEvents.bind(Hl(go)),go.getRef=go.getRef.bind(Hl(go)),go.handleUpdate=go.handleUpdate.bind(Hl(go)),go.figureCallback=go.figureCallback.bind(Hl(go)),go.updatePlotly=go.updatePlotly.bind(Hl(go)),go}return gf(iu,[{key:"updatePlotly",value:function(go,ef,lo){var Eo=this;this.p=this.p.then(function(){if(!Eo.unmounting){if(!Eo.el)throw new Error("Missing element reference");return Xo.react(Eo.el,{data:Eo.props.data,layout:Eo.props.layout,config:Eo.props.config,frames:Eo.props.frames})}}).then(function(){Eo.unmounting||(Eo.syncWindowResize(go),Eo.syncEventHandlers(),Eo.figureCallback(ef),lo&&Eo.attachUpdateEvents())}).catch(function(Yh){Eo.props.onError&&Eo.props.onError(Yh)})}},{key:"componentDidMount",value:function(){this.unmounting=!1,this.updatePlotly(!0,this.props.onInitialized,!0)}},{key:"componentDidUpdate",value:function(go){this.unmounting=!1;var ef=go.frames&&go.frames.length?go.frames.length:0,lo=this.props.frames&&this.props.frames.length?this.props.frames.length:0,Eo=!(go.layout===this.props.layout&&go.data===this.props.data&&go.config===this.props.config&&lo===ef),Yh=go.revision!==void 0,tv=go.revision!==this.props.revision;!Eo&&(!Yh||Yh&&!tv)||this.updatePlotly(!1,this.props.onUpdate,!1)}},{key:"componentWillUnmount",value:function(){this.unmounting=!0,this.figureCallback(this.props.onPurge),this.resizeHandler&&cd&&(window.removeEventListener("resize",this.resizeHandler),this.resizeHandler=null),this.removeUpdateEvents(),Xo.purge(this.el)}},{key:"attachUpdateEvents",value:function(){var go=this;!this.el||!this.el.removeListener||wv.forEach(function(ef){go.el.on(ef,go.handleUpdate)})}},{key:"removeUpdateEvents",value:function(){var go=this;!this.el||!this.el.removeListener||wv.forEach(function(ef){go.el.removeListener(ef,go.handleUpdate)})}},{key:"handleUpdate",value:function(){this.figureCallback(this.props.onUpdate)}},{key:"figureCallback",value:function(go){if(typeof go=="function"){var ef=this.el,lo=ef.data,Eo=ef.layout,Yh=this.el._transitionData?this.el._transitionData._frames:null,tv={data:lo,layout:Eo,frames:Yh};go(tv,this.el)}}},{key:"syncWindowResize",value:function(go){var ef=this;cd&&(this.props.useResizeHandler&&!this.resizeHandler?(this.resizeHandler=function(){return Xo.Plots.resize(ef.el)},window.addEventListener("resize",this.resizeHandler),go&&this.resizeHandler()):!this.props.useResizeHandler&&this.resizeHandler&&(window.removeEventListener("resize",this.resizeHandler),this.resizeHandler=null))}},{key:"getRef",value:function(go){this.el=go,this.props.debug&&cd&&(window.gd=this.el)}},{key:"syncEventHandlers",value:function(){var go=this;He.forEach(function(ef){var lo=go.props["on"+ef],Eo=go.handlers[ef],Yh=!!Eo;lo&&!Yh?go.addEventHandler(ef,lo):!lo&&Yh?go.removeEventHandler(ef):lo&&Yh&&lo!==Eo&&(go.removeEventHandler(ef),go.addEventHandler(ef,lo))})}},{key:"addEventHandler",value:function(go,ef){this.handlers[go]=ef,this.el.on(this.getPlotlyEventName(go),this.handlers[go])}},{key:"removeEventHandler",value:function(go){this.el.removeListener(this.getPlotlyEventName(go),this.handlers[go]),delete this.handlers[go]}},{key:"getPlotlyEventName",value:function(go){return"plotly_"+go.toLowerCase()}},{key:"render",value:function(){return Ss.default.createElement("div",{id:this.props.divId,style:this.props.style,ref:this.getRef,className:this.props.className})}}]),iu}(Ss.Component);return al.propTypes={data:Bo.default.arrayOf(Bo.default.object),config:Bo.default.object,layout:Bo.default.object,frames:Bo.default.arrayOf(Bo.default.object),revision:Bo.default.number,onInitialized:Bo.default.func,onPurge:Bo.default.func,onError:Bo.default.func,onUpdate:Bo.default.func,debug:Bo.default.bool,style:Bo.default.object,className:Bo.default.string,useResizeHandler:Bo.default.bool,divId:Bo.default.string},He.forEach(function(dc){al.propTypes["on"+dc]=Bo.default.func}),al.defaultProps={debug:!1,useResizeHandler:!1,data:[],style:{position:"relative",display:"inline-block"}},al}}(lb)),lb}var Km={exports:{}},fF=Km.exports,JA;function hF(){return JA||(JA=1,function(rn){var Wi={};(function(Ss,Bo){rn.exports?rn.exports=Bo():Ss.moduleName=Bo()})(typeof self<"u"?self:fF,()=>{var Ss=(()=>{var Bo=Object.create,Is=Object.defineProperty,rc=Object.defineProperties,Hu=Object.getOwnPropertyDescriptor,Xf=Object.getOwnPropertyDescriptors,Tf=Object.getOwnPropertyNames,gf=Object.getOwnPropertySymbols,Af=Object.getPrototypeOf,Qc=Object.prototype.hasOwnProperty,Fc=Object.prototype.propertyIsEnumerable,vs=(Y,H,h)=>H in Y?Is(Y,H,{enumerable:!0,configurable:!0,writable:!0,value:h}):Y[H]=h,Hl=(Y,H)=>{for(var h in H||(H={}))Qc.call(H,h)&&vs(Y,h,H[h]);if(gf)for(var h of gf(H))Fc.call(H,h)&&vs(Y,h,H[h]);return Y},Sf=(Y,H)=>rc(Y,Xf(H)),Js=(Y,H)=>function(){return Y&&(H=(0,Y[Tf(Y)[0]])(Y=0)),H},He=(Y,H)=>function(){return H||(0,Y[Tf(Y)[0]])((H={exports:{}}).exports,H),H.exports},wv=(Y,H)=>{for(var h in H)Is(Y,h,{get:H[h],enumerable:!0})},cd=(Y,H,h,x)=>{if(H&&typeof H=="object"||typeof H=="function")for(let A of Tf(H))!Qc.call(Y,A)&&A!==h&&Is(Y,A,{get:()=>H[A],enumerable:!(x=Hu(H,A))||x.enumerable});return Y},qd=(Y,H,h)=>(h=Y!=null?Bo(Af(Y)):{},cd(Is(h,"default",{value:Y,enumerable:!0}),Y)),Xo=Y=>cd(Is({},"__esModule",{value:!0}),Y),al=He({"src/version.js"(Y){Y.version="3.1.0"}}),dc=He({"node_modules/native-promise-only/lib/npo.src.js"(Y,H){(function(x,A,E){A[x]=A[x]||E(),typeof H<"u"&&H.exports&&(H.exports=A[x])})("Promise",typeof window<"u"?window:Y,function(){var x,A,E,e=Object.prototype.toString,t=typeof setImmediate<"u"?function(y){return setImmediate(y)}:setTimeout;try{Object.defineProperty({},"x",{}),x=function(y,w,S,M){return Object.defineProperty(y,w,{value:S,writable:!0,configurable:M!==!1})}}catch{x=function(w,S,M){return w[S]=M,w}}E=function(){var y,w,S;function M(_,b){this.fn=_,this.self=b,this.next=void 0}return{add:function(b,d){S=new M(b,d),w?w.next=S:y=S,w=S,S=void 0},drain:function(){var b=y;for(y=w=A=void 0;b;)b.fn.call(b.self),b=b.next}}}();function r(l,y){E.add(l,y),A||(A=t(E.drain))}function i(l){var y,w=typeof l;return l!=null&&(w=="object"||w=="function")&&(y=l.then),typeof y=="function"?y:!1}function a(){for(var l=0;l<this.chain.length;l++)o(this,this.state===1?this.chain[l].success:this.chain[l].failure,this.chain[l]);this.chain.length=0}function o(l,y,w){var S,M;try{y===!1?w.reject(l.msg):(y===!0?S=l.msg:S=y.call(void 0,l.msg),S===w.promise?w.reject(TypeError("Promise-chain cycle")):(M=i(S))?M.call(S,w.resolve,w.reject):w.resolve(S))}catch(_){w.reject(_)}}function n(l){var y,w=this;if(!w.triggered){w.triggered=!0,w.def&&(w=w.def);try{(y=i(l))?r(function(){var S=new f(w);try{y.call(l,function(){n.apply(S,arguments)},function(){s.apply(S,arguments)})}catch(M){s.call(S,M)}}):(w.msg=l,w.state=1,w.chain.length>0&&r(a,w))}catch(S){s.call(new f(w),S)}}}function s(l){var y=this;y.triggered||(y.triggered=!0,y.def&&(y=y.def),y.msg=l,y.state=2,y.chain.length>0&&r(a,y))}function c(l,y,w,S){for(var M=0;M<y.length;M++)(function(b){l.resolve(y[b]).then(function(u){w(b,u)},S)})(M)}function f(l){this.def=l,this.triggered=!1}function p(l){this.promise=l,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function v(l){if(typeof l!="function")throw TypeError("Not a function");if(this.__NPO__!==0)throw TypeError("Not a promise");this.__NPO__=1;var y=new p(this);this.then=function(S,M){var _={success:typeof S=="function"?S:!0,failure:typeof M=="function"?M:!1};return _.promise=new this.constructor(function(d,u){if(typeof d!="function"||typeof u!="function")throw TypeError("Not a function");_.resolve=d,_.reject=u}),y.chain.push(_),y.state!==0&&r(a,y),_.promise},this.catch=function(S){return this.then(void 0,S)};try{l.call(void 0,function(S){n.call(y,S)},function(S){s.call(y,S)})}catch(w){s.call(y,w)}}var T=x({},"constructor",v,!1);return v.prototype=T,x(T,"__NPO__",0,!1),x(v,"resolve",function(y){var w=this;return y&&typeof y=="object"&&y.__NPO__===1?y:new w(function(M,_){if(typeof M!="function"||typeof _!="function")throw TypeError("Not a function");M(y)})}),x(v,"reject",function(y){return new this(function(S,M){if(typeof S!="function"||typeof M!="function")throw TypeError("Not a function");M(y)})}),x(v,"all",function(y){var w=this;return e.call(y)!="[object Array]"?w.reject(TypeError("Not an array")):y.length===0?w.resolve([]):new w(function(M,_){if(typeof M!="function"||typeof _!="function")throw TypeError("Not a function");var b=y.length,d=Array(b),u=0;c(w,y,function(m,R){d[m]=R,++u===b&&M(d)},_)})}),x(v,"race",function(y){var w=this;return e.call(y)!="[object Array]"?w.reject(TypeError("Not an array")):new w(function(M,_){if(typeof M!="function"||typeof _!="function")throw TypeError("Not a function");c(w,y,function(d,u){M(u)},_)})}),v})}}),Zn=He({"node_modules/@plotly/d3/d3.js"(Y,H){(function(){var h={version:"3.8.2"},x=[].slice,A=function(pe){return x.call(pe)},E=self.document;function e(pe){return pe&&(pe.ownerDocument||pe.document||pe).documentElement}function t(pe){return pe&&(pe.ownerDocument&&pe.ownerDocument.defaultView||pe.document&&pe||pe.defaultView)}if(E)try{A(E.documentElement.childNodes)[0].nodeType}catch{A=function(Le){for(var Ke=Le.length,dt=new Array(Ke);Ke--;)dt[Ke]=Le[Ke];return dt}}if(Date.now||(Date.now=function(){return+new Date}),E)try{E.createElement("DIV").style.setProperty("opacity",0,"")}catch{var r=this.Element.prototype,i=r.setAttribute,a=r.setAttributeNS,o=this.CSSStyleDeclaration.prototype,n=o.setProperty;r.setAttribute=function(Le,Ke){i.call(this,Le,Ke+"")},r.setAttributeNS=function(Le,Ke,dt){a.call(this,Le,Ke,dt+"")},o.setProperty=function(Le,Ke,dt){n.call(this,Le,Ke+"",dt)}}h.ascending=s;function s(pe,Le){return pe<Le?-1:pe>Le?1:pe>=Le?0:NaN}h.descending=function(pe,Le){return Le<pe?-1:Le>pe?1:Le>=pe?0:NaN},h.min=function(pe,Le){var Ke=-1,dt=pe.length,gt,Tt;if(arguments.length===1){for(;++Ke<dt;)if((Tt=pe[Ke])!=null&&Tt>=Tt){gt=Tt;break}for(;++Ke<dt;)(Tt=pe[Ke])!=null&>>Tt&&(gt=Tt)}else{for(;++Ke<dt;)if((Tt=Le.call(pe,pe[Ke],Ke))!=null&&Tt>=Tt){gt=Tt;break}for(;++Ke<dt;)(Tt=Le.call(pe,pe[Ke],Ke))!=null&>>Tt&&(gt=Tt)}return gt},h.max=function(pe,Le){var Ke=-1,dt=pe.length,gt,Tt;if(arguments.length===1){for(;++Ke<dt;)if((Tt=pe[Ke])!=null&&Tt>=Tt){gt=Tt;break}for(;++Ke<dt;)(Tt=pe[Ke])!=null&&Tt>gt&&(gt=Tt)}else{for(;++Ke<dt;)if((Tt=Le.call(pe,pe[Ke],Ke))!=null&&Tt>=Tt){gt=Tt;break}for(;++Ke<dt;)(Tt=Le.call(pe,pe[Ke],Ke))!=null&&Tt>gt&&(gt=Tt)}return gt},h.extent=function(pe,Le){var Ke=-1,dt=pe.length,gt,Tt,Vt;if(arguments.length===1){for(;++Ke<dt;)if((Tt=pe[Ke])!=null&&Tt>=Tt){gt=Vt=Tt;break}for(;++Ke<dt;)(Tt=pe[Ke])!=null&&(gt>Tt&&(gt=Tt),Vt<Tt&&(Vt=Tt))}else{for(;++Ke<dt;)if((Tt=Le.call(pe,pe[Ke],Ke))!=null&&Tt>=Tt){gt=Vt=Tt;break}for(;++Ke<dt;)(Tt=Le.call(pe,pe[Ke],Ke))!=null&&(gt>Tt&&(gt=Tt),Vt<Tt&&(Vt=Tt))}return[gt,Vt]};function c(pe){return pe===null?NaN:+pe}function f(pe){return!isNaN(pe)}h.sum=function(pe,Le){var Ke=0,dt=pe.length,gt,Tt=-1;if(arguments.length===1)for(;++Tt<dt;)f(gt=+pe[Tt])&&(Ke+=gt);else for(;++Tt<dt;)f(gt=+Le.call(pe,pe[Tt],Tt))&&(Ke+=gt);return Ke},h.mean=function(pe,Le){var Ke=0,dt=pe.length,gt,Tt=-1,Vt=dt;if(arguments.length===1)for(;++Tt<dt;)f(gt=c(pe[Tt]))?Ke+=gt:--Vt;else for(;++Tt<dt;)f(gt=c(Le.call(pe,pe[Tt],Tt)))?Ke+=gt:--Vt;if(Vt)return Ke/Vt},h.quantile=function(pe,Le){var Ke=(pe.length-1)*Le+1,dt=Math.floor(Ke),gt=+pe[dt-1],Tt=Ke-dt;return Tt?gt+Tt*(pe[dt]-gt):gt},h.median=function(pe,Le){var Ke=[],dt=pe.length,gt,Tt=-1;if(arguments.length===1)for(;++Tt<dt;)f(gt=c(pe[Tt]))&&Ke.push(gt);else for(;++Tt<dt;)f(gt=c(Le.call(pe,pe[Tt],Tt)))&&Ke.push(gt);if(Ke.length)return h.quantile(Ke.sort(s),.5)},h.variance=function(pe,Le){var Ke=pe.length,dt=0,gt,Tt,Vt=0,jt=-1,sr=0;if(arguments.length===1)for(;++jt<Ke;)f(gt=c(pe[jt]))&&(Tt=gt-dt,dt+=Tt/++sr,Vt+=Tt*(gt-dt));else for(;++jt<Ke;)f(gt=c(Le.call(pe,pe[jt],jt)))&&(Tt=gt-dt,dt+=Tt/++sr,Vt+=Tt*(gt-dt));if(sr>1)return Vt/(sr-1)},h.deviation=function(){var pe=h.variance.apply(this,arguments);return pe&&Math.sqrt(pe)};function p(pe){return{left:function(Le,Ke,dt,gt){for(arguments.length<3&&(dt=0),arguments.length<4&&(gt=Le.length);dt<gt;){var Tt=dt+gt>>>1;pe(Le[Tt],Ke)<0?dt=Tt+1:gt=Tt}return dt},right:function(Le,Ke,dt,gt){for(arguments.length<3&&(dt=0),arguments.length<4&&(gt=Le.length);dt<gt;){var Tt=dt+gt>>>1;pe(Le[Tt],Ke)>0?gt=Tt:dt=Tt+1}return dt}}}var v=p(s);h.bisectLeft=v.left,h.bisect=h.bisectRight=v.right,h.bisector=function(pe){return p(pe.length===1?function(Le,Ke){return s(pe(Le),Ke)}:pe)},h.shuffle=function(pe,Le,Ke){(dt=arguments.length)<3&&(Ke=pe.length,dt<2&&(Le=0));for(var dt=Ke-Le,gt,Tt;dt;)Tt=Math.random()*dt--|0,gt=pe[dt+Le],pe[dt+Le]=pe[Tt+Le],pe[Tt+Le]=gt;return pe},h.permute=function(pe,Le){for(var Ke=Le.length,dt=new Array(Ke);Ke--;)dt[Ke]=pe[Le[Ke]];return dt},h.pairs=function(pe){for(var Le=0,Ke=pe.length-1,dt=pe[0],gt=new Array(Ke<0?0:Ke);Le<Ke;)gt[Le]=[dt,dt=pe[++Le]];return gt},h.transpose=function(pe){if(!(Tt=pe.length))return[];for(var Le=-1,Ke=h.min(pe,T),dt=new Array(Ke);++Le<Ke;)for(var gt=-1,Tt,Vt=dt[Le]=new Array(Tt);++gt<Tt;)Vt[gt]=pe[gt][Le];return dt};function T(pe){return pe.length}h.zip=function(){return h.transpose(arguments)},h.keys=function(pe){var Le=[];for(var Ke in pe)Le.push(Ke);return Le},h.values=function(pe){var Le=[];for(var Ke in pe)Le.push(pe[Ke]);return Le},h.entries=function(pe){var Le=[];for(var Ke in pe)Le.push({key:Ke,value:pe[Ke]});return Le},h.merge=function(pe){for(var Le=pe.length,Ke,dt=-1,gt=0,Tt,Vt;++dt<Le;)gt+=pe[dt].length;for(Tt=new Array(gt);--Le>=0;)for(Vt=pe[Le],Ke=Vt.length;--Ke>=0;)Tt[--gt]=Vt[Ke];return Tt};var l=Math.abs;h.range=function(pe,Le,Ke){if(arguments.length<3&&(Ke=1,arguments.length<2&&(Le=pe,pe=0)),(Le-pe)/Ke===1/0)throw new Error("infinite range");var dt=[],gt=y(l(Ke)),Tt=-1,Vt;if(pe*=gt,Le*=gt,Ke*=gt,Ke<0)for(;(Vt=pe+Ke*++Tt)>Le;)dt.push(Vt/gt);else for(;(Vt=pe+Ke*++Tt)<Le;)dt.push(Vt/gt);return dt};function y(pe){for(var Le=1;pe*Le%1;)Le*=10;return Le}function w(pe,Le){for(var Ke in Le)Object.defineProperty(pe.prototype,Ke,{value:Le[Ke],enumerable:!1})}h.map=function(pe,Le){var Ke=new S;if(pe instanceof S)pe.forEach(function(jt,sr){Ke.set(jt,sr)});else if(Array.isArray(pe)){var dt=-1,gt=pe.length,Tt;if(arguments.length===1)for(;++dt<gt;)Ke.set(dt,pe[dt]);else for(;++dt<gt;)Ke.set(Le.call(pe,Tt=pe[dt],dt),Tt)}else for(var Vt in pe)Ke.set(Vt,pe[Vt]);return Ke};function S(){this._=Object.create(null)}var M="__proto__",_="\0";w(S,{has:u,get:function(pe){return this._[b(pe)]},set:function(pe,Le){return this._[b(pe)]=Le},remove:g,keys:m,values:function(){var pe=[];for(var Le in this._)pe.push(this._[Le]);return pe},entries:function(){var pe=[];for(var Le in this._)pe.push({key:d(Le),value:this._[Le]});return pe},size:R,empty:I,forEach:function(pe){for(var Le in this._)pe.call(this,d(Le),this._[Le])}});function b(pe){return(pe+="")===M||pe[0]===_?_+pe:pe}function d(pe){return(pe+="")[0]===_?pe.slice(1):pe}function u(pe){return b(pe)in this._}function g(pe){return(pe=b(pe))in this._&&delete this._[pe]}function m(){var pe=[];for(var Le in this._)pe.push(d(Le));return pe}function R(){var pe=0;for(var Le in this._)++pe;return pe}function I(){for(var pe in this._)return!1;return!0}h.nest=function(){var pe={},Le=[],Ke=[],dt,gt;function Tt(jt,sr,Pr){if(Pr>=Le.length)return gt?gt.call(pe,sr):dt?sr.sort(dt):sr;for(var kr=-1,Zr=sr.length,la=Le[Pr++],ca,on,pa,Pa=new S,Na;++kr<Zr;)(Na=Pa.get(ca=la(on=sr[kr])))?Na.push(on):Pa.set(ca,[on]);return jt?(on=jt(),pa=function(an,ln){on.set(an,Tt(jt,ln,Pr))}):(on={},pa=function(an,ln){on[an]=Tt(jt,ln,Pr)}),Pa.forEach(pa),on}function Vt(jt,sr){if(sr>=Le.length)return jt;var Pr=[],kr=Ke[sr++];return jt.forEach(function(Zr,la){Pr.push({key:Zr,values:Vt(la,sr)})}),kr?Pr.sort(function(Zr,la){return kr(Zr.key,la.key)}):Pr}return pe.map=function(jt,sr){return Tt(sr,jt,0)},pe.entries=function(jt){return Vt(Tt(h.map,jt,0),0)},pe.key=function(jt){return Le.push(jt),pe},pe.sortKeys=function(jt){return Ke[Le.length-1]=jt,pe},pe.sortValues=function(jt){return dt=jt,pe},pe.rollup=function(jt){return gt=jt,pe},pe},h.set=function(pe){var Le=new z;if(pe)for(var Ke=0,dt=pe.length;Ke<dt;++Ke)Le.add(pe[Ke]);return Le};function z(){this._=Object.create(null)}w(z,{has:u,add:function(pe){return this._[b(pe+="")]=!0,pe},remove:g,values:m,size:R,empty:I,forEach:function(pe){for(var Le in this._)pe.call(this,d(Le))}}),h.behavior={};function F(pe){return pe}h.rebind=function(pe,Le){for(var Ke=1,dt=arguments.length,gt;++Ke<dt;)pe[gt=arguments[Ke]]=B(pe,Le,Le[gt]);return pe};function B(pe,Le,Ke){return function(){var dt=Ke.apply(Le,arguments);return dt===Le?pe:dt}}function O(pe,Le){if(Le in pe)return Le;Le=Le.charAt(0).toUpperCase()+Le.slice(1);for(var Ke=0,dt=P.length;Ke<dt;++Ke){var gt=P[Ke]+Le;if(gt in pe)return gt}}var P=["webkit","ms","moz","Moz","o","O"];function N(){}h.dispatch=function(){for(var pe=new U,Le=-1,Ke=arguments.length;++Le<Ke;)pe[arguments[Le]]=X(pe);return pe};function U(){}U.prototype.on=function(pe,Le){var Ke=pe.indexOf("."),dt="";if(Ke>=0&&(dt=pe.slice(Ke+1),pe=pe.slice(0,Ke)),pe)return arguments.length<2?this[pe].on(dt):this[pe].on(dt,Le);if(arguments.length===2){if(Le==null)for(pe in this)this.hasOwnProperty(pe)&&this[pe].on(dt,null);return this}};function X(pe){var Le=[],Ke=new S;function dt(){for(var gt=Le,Tt=-1,Vt=gt.length,jt;++Tt<Vt;)(jt=gt[Tt].on)&&jt.apply(this,arguments);return pe}return dt.on=function(gt,Tt){var Vt=Ke.get(gt),jt;return arguments.length<2?Vt&&Vt.on:(Vt&&(Vt.on=null,Le=Le.slice(0,jt=Le.indexOf(Vt)).concat(Le.slice(jt+1)),Ke.remove(gt)),Tt&&Le.push(Ke.set(gt,{on:Tt})),pe)},dt}h.event=null;function te(){h.event.preventDefault()}function ue(){for(var pe=h.event,Le;Le=pe.sourceEvent;)pe=Le;return pe}function ie(pe){for(var Le=new U,Ke=0,dt=arguments.length;++Ke<dt;)Le[arguments[Ke]]=X(Le);return Le.of=function(gt,Tt){return function(Vt){try{var jt=Vt.sourceEvent=h.event;Vt.target=pe,h.event=Vt,Le[Vt.type].apply(gt,Tt)}finally{h.event=jt}}},Le}h.requote=function(pe){return pe.replace(le,"\\$&")};var le=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g,q={}.__proto__?function(pe,Le){pe.__proto__=Le}:function(pe,Le){for(var Ke in Le)pe[Ke]=Le[Ke]};function J(pe){return q(pe,Q),pe}var ee=function(pe,Le){return Le.querySelector(pe)},Z=function(pe,Le){return Le.querySelectorAll(pe)},se=function(pe,Le){var Ke=pe.matches||pe[O(pe,"matchesSelector")];return se=function(dt,gt){return Ke.call(dt,gt)},se(pe,Le)};typeof Sizzle=="function"&&(ee=function(pe,Le){return Sizzle(pe,Le)[0]||null},Z=Sizzle,se=Sizzle.matchesSelector),h.selection=function(){return h.select(E.documentElement)};var Q=h.selection.prototype=[];Q.select=function(pe){var Le=[],Ke,dt,gt,Tt;pe=V(pe);for(var Vt=-1,jt=this.length;++Vt<jt;){Le.push(Ke=[]),Ke.parentNode=(gt=this[Vt]).parentNode;for(var sr=-1,Pr=gt.length;++sr<Pr;)(Tt=gt[sr])?(Ke.push(dt=pe.call(Tt,Tt.__data__,sr,Vt)),dt&&"__data__"in Tt&&(dt.__data__=Tt.__data__)):Ke.push(null)}return J(Le)};function V(pe){return typeof pe=="function"?pe:function(){return ee(pe,this)}}Q.selectAll=function(pe){var Le=[],Ke,dt;pe=re(pe);for(var gt=-1,Tt=this.length;++gt<Tt;)for(var Vt=this[gt],jt=-1,sr=Vt.length;++jt<sr;)(dt=Vt[jt])&&(Le.push(Ke=A(pe.call(dt,dt.__data__,jt,gt))),Ke.parentNode=dt);return J(Le)};function re(pe){return typeof pe=="function"?pe:function(){return Z(pe,this)}}var ae="http://www.w3.org/1999/xhtml",fe={svg:"http://www.w3.org/2000/svg",xhtml:ae,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};h.ns={prefix:fe,qualify:function(pe){var Le=pe.indexOf(":"),Ke=pe;return Le>=0&&(Ke=pe.slice(0,Le))!=="xmlns"&&(pe=pe.slice(Le+1)),fe.hasOwnProperty(Ke)?{space:fe[Ke],local:pe}:pe}},Q.attr=function(pe,Le){if(arguments.length<2){if(typeof pe=="string"){var Ke=this.node();return pe=h.ns.qualify(pe),pe.local?Ke.getAttributeNS(pe.space,pe.local):Ke.getAttribute(pe)}for(Le in pe)this.each(xe(Le,pe[Le]));return this}return this.each(xe(pe,Le))};function xe(pe,Le){pe=h.ns.qualify(pe);function Ke(){this.removeAttribute(pe)}function dt(){this.removeAttributeNS(pe.space,pe.local)}function gt(){this.setAttribute(pe,Le)}function Tt(){this.setAttributeNS(pe.space,pe.local,Le)}function Vt(){var sr=Le.apply(this,arguments);sr==null?this.removeAttribute(pe):this.setAttribute(pe,sr)}function jt(){var sr=Le.apply(this,arguments);sr==null?this.removeAttributeNS(pe.space,pe.local):this.setAttributeNS(pe.space,pe.local,sr)}return Le==null?pe.local?dt:Ke:typeof Le=="function"?pe.local?jt:Vt:pe.local?Tt:gt}function Ae(pe){return pe.trim().replace(/\s+/g," ")}Q.classed=function(pe,Le){if(arguments.length<2){if(typeof pe=="string"){var Ke=this.node(),dt=(pe=Ce(pe)).length,gt=-1;if(Le=Ke.classList){for(;++gt<dt;)if(!Le.contains(pe[gt]))return!1}else for(Le=Ke.getAttribute("class");++gt<dt;)if(!Pe(pe[gt]).test(Le))return!1;return!0}for(Le in pe)this.each(je(Le,pe[Le]));return this}return this.each(je(pe,Le))};function Pe(pe){return new RegExp("(?:^|\\s+)"+h.requote(pe)+"(?:\\s+|$)","g")}function Ce(pe){return(pe+"").trim().split(/^|\s+/)}function je(pe,Le){pe=Ce(pe).map(at);var Ke=pe.length;function dt(){for(var Tt=-1;++Tt<Ke;)pe[Tt](this,Le)}function gt(){for(var Tt=-1,Vt=Le.apply(this,arguments);++Tt<Ke;)pe[Tt](this,Vt)}return typeof Le=="function"?gt:dt}function at(pe){var Le=Pe(pe);return function(Ke,dt){if(gt=Ke.classList)return dt?gt.add(pe):gt.remove(pe);var gt=Ke.getAttribute("class")||"";dt?(Le.lastIndex=0,Le.test(gt)||Ke.setAttribute("class",Ae(gt+" "+pe))):Ke.setAttribute("class",Ae(gt.replace(Le," ")))}}Q.style=function(pe,Le,Ke){var dt=arguments.length;if(dt<3){if(typeof pe!="string"){dt<2&&(Le="");for(Ke in pe)this.each(tt(Ke,pe[Ke],Le));return this}if(dt<2){var gt=this.node();return t(gt).getComputedStyle(gt,null).getPropertyValue(pe)}Ke=""}return this.each(tt(pe,Le,Ke))};function tt(pe,Le,Ke){function dt(){this.style.removeProperty(pe)}function gt(){this.style.setProperty(pe,Le,Ke)}function Tt(){var Vt=Le.apply(this,arguments);Vt==null?this.style.removeProperty(pe):this.style.setProperty(pe,Vt,Ke)}return Le==null?dt:typeof Le=="function"?Tt:gt}Q.property=function(pe,Le){if(arguments.length<2){if(typeof pe=="string")return this.node()[pe];for(Le in pe)this.each(Je(Le,pe[Le]));return this}return this.each(Je(pe,Le))};function Je(pe,Le){function Ke(){delete this[pe]}function dt(){this[pe]=Le}function gt(){var Tt=Le.apply(this,arguments);Tt==null?delete this[pe]:this[pe]=Tt}return Le==null?Ke:typeof Le=="function"?gt:dt}Q.text=function(pe){return arguments.length?this.each(typeof pe=="function"?function(){var Le=pe.apply(this,arguments);this.textContent=Le??""}:pe==null?function(){this.textContent=""}:function(){this.textContent=pe}):this.node().textContent},Q.html=function(pe){return arguments.length?this.each(typeof pe=="function"?function(){var Le=pe.apply(this,arguments);this.innerHTML=Le??""}:pe==null?function(){this.innerHTML=""}:function(){this.innerHTML=pe}):this.node().innerHTML},Q.append=function(pe){return pe=Ze(pe),this.select(function(){return this.appendChild(pe.apply(this,arguments))})};function Ze(pe){function Le(){var dt=this.ownerDocument,gt=this.namespaceURI;return gt===ae&&dt.documentElement.namespaceURI===ae?dt.createElement(pe):dt.createElementNS(gt,pe)}function Ke(){return this.ownerDocument.createElementNS(pe.space,pe.local)}return typeof pe=="function"?pe:(pe=h.ns.qualify(pe)).local?Ke:Le}Q.insert=function(pe,Le){return pe=Ze(pe),Le=V(Le),this.select(function(){return this.insertBefore(pe.apply(this,arguments),Le.apply(this,arguments)||null)})},Q.remove=function(){return this.each(Me)};function Me(){var pe=this.parentNode;pe&&pe.removeChild(this)}Q.data=function(pe,Le){var Ke=-1,dt=this.length,gt,Tt;if(!arguments.length){for(pe=new Array(dt=(gt=this[0]).length);++Ke<dt;)(Tt=gt[Ke])&&(pe[Ke]=Tt.__data__);return pe}function Vt(kr,Zr){var la,ca=kr.length,on=Zr.length,pa=Math.min(ca,on),Pa=new Array(on),Na=new Array(on),an=new Array(ca),ln,Ba;if(Le){var Dn=new S,oi=new Array(ca),Kn;for(la=-1;++la<ca;)(ln=kr[la])&&(Dn.has(Kn=Le.call(ln,ln.__data__,la))?an[la]=ln:Dn.set(Kn,ln),oi[la]=Kn);for(la=-1;++la<on;)(ln=Dn.get(Kn=Le.call(Zr,Ba=Zr[la],la)))?ln!==!0&&(Pa[la]=ln,ln.__data__=Ba):Na[la]=we(Ba),Dn.set(Kn,!0);for(la=-1;++la<ca;)la in oi&&Dn.get(oi[la])!==!0&&(an[la]=kr[la])}else{for(la=-1;++la<pa;)ln=kr[la],Ba=Zr[la],ln?(ln.__data__=Ba,Pa[la]=ln):Na[la]=we(Ba);for(;la<on;++la)Na[la]=we(Zr[la]);for(;la<ca;++la)an[la]=kr[la]}Na.update=Pa,Na.parentNode=Pa.parentNode=an.parentNode=kr.parentNode,jt.push(Na),sr.push(Pa),Pr.push(an)}var jt=nt([]),sr=J([]),Pr=J([]);if(typeof pe=="function")for(;++Ke<dt;)Vt(gt=this[Ke],pe.call(gt,gt.parentNode.__data__,Ke));else for(;++Ke<dt;)Vt(gt=this[Ke],pe);return sr.enter=function(){return jt},sr.exit=function(){return Pr},sr};function we(pe){return{__data__:pe}}Q.datum=function(pe){return arguments.length?this.property("__data__",pe):this.property("__data__")},Q.filter=function(pe){var Le=[],Ke,dt,gt;typeof pe!="function"&&(pe=he(pe));for(var Tt=0,Vt=this.length;Tt<Vt;Tt++){Le.push(Ke=[]),Ke.parentNode=(dt=this[Tt]).parentNode;for(var jt=0,sr=dt.length;jt<sr;jt++)(gt=dt[jt])&&pe.call(gt,gt.__data__,jt,Tt)&&Ke.push(gt)}return J(Le)};function he(pe){return function(){return se(this,pe)}}Q.order=function(){for(var pe=-1,Le=this.length;++pe<Le;)for(var Ke=this[pe],dt=Ke.length-1,gt=Ke[dt],Tt;--dt>=0;)(Tt=Ke[dt])&&(gt&>!==Tt.nextSibling&>.parentNode.insertBefore(Tt,gt),gt=Tt);return this},Q.sort=function(pe){pe=De.apply(this,arguments);for(var Le=-1,Ke=this.length;++Le<Ke;)this[Le].sort(pe);return this.order()};function De(pe){return arguments.length||(pe=s),function(Le,Ke){return Le&&Ke?pe(Le.__data__,Ke.__data__):!Le-!Ke}}Q.each=function(pe){return et(this,function(Le,Ke,dt){pe.call(Le,Le.__data__,Ke,dt)})};function et(pe,Le){for(var Ke=0,dt=pe.length;Ke<dt;Ke++)for(var gt=pe[Ke],Tt=0,Vt=gt.length,jt;Tt<Vt;Tt++)(jt=gt[Tt])&&Le(jt,Tt,Ke);return pe}Q.call=function(pe){var Le=A(arguments);return pe.apply(Le[0]=this,Le),this},Q.empty=function(){return!this.node()},Q.node=function(){for(var pe=0,Le=this.length;pe<Le;pe++)for(var Ke=this[pe],dt=0,gt=Ke.length;dt<gt;dt++){var Tt=Ke[dt];if(Tt)return Tt}return null},Q.size=function(){var pe=0;return et(this,function(){++pe}),pe};function nt(pe){return q(pe,$e),pe}var $e=[];h.selection.enter=nt,h.selection.enter.prototype=$e,$e.append=Q.append,$e.empty=Q.empty,$e.node=Q.node,$e.call=Q.call,$e.size=Q.size,$e.select=function(pe){for(var Le=[],Ke,dt,gt,Tt,Vt,jt=-1,sr=this.length;++jt<sr;){gt=(Tt=this[jt]).update,Le.push(Ke=[]),Ke.parentNode=Tt.parentNode;for(var Pr=-1,kr=Tt.length;++Pr<kr;)(Vt=Tt[Pr])?(Ke.push(gt[Pr]=dt=pe.call(Tt.parentNode,Vt.__data__,Pr,jt)),dt.__data__=Vt.__data__):Ke.push(null)}return J(Le)},$e.insert=function(pe,Le){return arguments.length<2&&(Le=Et(this)),Q.insert.call(this,pe,Le)};function Et(pe){var Le,Ke;return function(dt,gt,Tt){var Vt=pe[Tt].update,jt=Vt.length,sr;for(Tt!=Ke&&(Ke=Tt,Le=0),gt>=Le&&(Le=gt+1);!(sr=Vt[Le])&&++Le<jt;);return sr}}h.select=function(pe){var Le;return typeof pe=="string"?(Le=[ee(pe,E)],Le.parentNode=E.documentElement):(Le=[pe],Le.parentNode=e(pe)),J([Le])},h.selectAll=function(pe){var Le;return typeof pe=="string"?(Le=A(Z(pe,E)),Le.parentNode=E.documentElement):(Le=A(pe),Le.parentNode=null),J([Le])},Q.on=function(pe,Le,Ke){var dt=arguments.length;if(dt<3){if(typeof pe!="string"){dt<2&&(Le=!1);for(Ke in pe)this.each(kt(Ke,pe[Ke],Le));return this}if(dt<2)return(dt=this.node()["__on"+pe])&&dt._;Ke=!1}return this.each(kt(pe,Le,Ke))};function kt(pe,Le,Ke){var dt="__on"+pe,gt=pe.indexOf("."),Tt=Yt;gt>0&&(pe=pe.slice(0,gt));var Vt=Ut.get(pe);Vt&&(pe=Vt,Tt=vr);function jt(){var kr=this[dt];kr&&(this.removeEventListener(pe,kr,kr.$),delete this[dt])}function sr(){var kr=Tt(Le,A(arguments));jt.call(this),this.addEventListener(pe,this[dt]=kr,kr.$=Ke),kr._=Le}function Pr(){var kr=new RegExp("^__on([^.]+)"+h.requote(pe)+"$"),Zr;for(var la in this)if(Zr=la.match(kr)){var ca=this[la];this.removeEventListener(Zr[1],ca,ca.$),delete this[la]}}return gt?Le?sr:jt:Le?N:Pr}var Ut=h.map({mouseenter:"mouseover",mouseleave:"mouseout"});E&&Ut.forEach(function(pe){"on"+pe in E&&Ut.remove(pe)});function Yt(pe,Le){return function(Ke){var dt=h.event;h.event=Ke,Le[0]=this.__data__;try{pe.apply(this,Le)}finally{h.event=dt}}}function vr(pe,Le){var Ke=Yt(pe,Le);return function(dt){var gt=this,Tt=dt.relatedTarget;(!Tt||Tt!==gt&&!(Tt.compareDocumentPosition(gt)&8))&&Ke.call(gt,dt)}}var hr,Rr=0;function dr(pe){var Le=".dragsuppress-"+ ++Rr,Ke="click"+Le,dt=h.select(t(pe)).on("touchmove"+Le,te).on("dragstart"+Le,te).on("selectstart"+Le,te);if(hr==null&&(hr="onselectstart"in pe?!1:O(pe.style,"userSelect")),hr){var gt=e(pe).style,Tt=gt[hr];gt[hr]="none"}return function(Vt){if(dt.on(Le,null),hr&&(gt[hr]=Tt),Vt){var jt=function(){dt.on(Ke,null)};dt.on(Ke,function(){te(),jt()},!0),setTimeout(jt,0)}}}h.mouse=function(pe){return mt(pe,ue())};var wr=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;function mt(pe,Le){Le.changedTouches&&(Le=Le.changedTouches[0]);var Ke=pe.ownerSVGElement||pe;if(Ke.createSVGPoint){var dt=Ke.createSVGPoint();if(wr<0){var gt=t(pe);if(gt.scrollX||gt.scrollY){Ke=h.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important");var Tt=Ke[0][0].getScreenCTM();wr=!(Tt.f||Tt.e),Ke.remove()}}return wr?(dt.x=Le.pageX,dt.y=Le.pageY):(dt.x=Le.clientX,dt.y=Le.clientY),dt=dt.matrixTransform(pe.getScreenCTM().inverse()),[dt.x,dt.y]}var Vt=pe.getBoundingClientRect();return[Le.clientX-Vt.left-pe.clientLeft,Le.clientY-Vt.top-pe.clientTop]}h.touch=function(pe,Le,Ke){if(arguments.length<3&&(Ke=Le,Le=ue().changedTouches),Le){for(var dt=0,gt=Le.length,Tt;dt<gt;++dt)if((Tt=Le[dt]).identifier===Ke)return mt(pe,Tt)}},h.behavior.drag=function(){var pe=ie(gt,"drag","dragstart","dragend"),Le=null,Ke=Tt(N,h.mouse,t,"mousemove","mouseup"),dt=Tt(Fe,h.touch,F,"touchmove","touchend");function gt(){this.on("mousedown.drag",Ke).on("touchstart.drag",dt)}function Tt(Vt,jt,sr,Pr,kr){return function(){var Zr=this,la=h.event.target.correspondingElement||h.event.target,ca=Zr.parentNode,on=pe.of(Zr,arguments),pa=0,Pa=Vt(),Na=".drag"+(Pa==null?"":"-"+Pa),an,ln=h.select(sr(la)).on(Pr+Na,oi).on(kr+Na,Kn),Ba=dr(la),Dn=jt(ca,Pa);Le?(an=Le.apply(Zr,arguments),an=[an.x-Dn[0],an.y-Dn[1]]):an=[0,0],on({type:"dragstart"});function oi(){var ni=jt(ca,Pa),Ai,Ci;ni&&(Ai=ni[0]-Dn[0],Ci=ni[1]-Dn[1],pa|=Ai|Ci,Dn=ni,on({type:"drag",x:ni[0]+an[0],y:ni[1]+an[1],dx:Ai,dy:Ci}))}function Kn(){jt(ca,Pa)&&(ln.on(Pr+Na,null).on(kr+Na,null),Ba(pa),on({type:"dragend"}))}}}return gt.origin=function(Vt){return arguments.length?(Le=Vt,gt):Le},h.rebind(gt,pe,"on")};function Fe(){return h.event.changedTouches[0].identifier}h.touches=function(pe,Le){return arguments.length<2&&(Le=ue().touches),Le?A(Le).map(function(Ke){var dt=mt(pe,Ke);return dt.identifier=Ke.identifier,dt}):[]};var We=1e-6,Oe=We*We,de=Math.PI,ye=2*de,be=ye-We,Ie=de/2,Xe=de/180,ht=180/de;function bt(pe,Le,Ke){return(Le[0]-pe[0])*(Ke[1]-pe[1])-(Le[1]-pe[1])*(Ke[0]-pe[0])}function Ct(pe){return pe>1?Ie:pe<-1?-Ie:Math.asin(pe)}function Zt(pe){return((pe=Math.exp(pe))-1/pe)/2}function Wt(pe){return((pe=Math.exp(pe))+1/pe)/2}function rr(pe){return((pe=Math.exp(2*pe))-1)/(pe+1)}var Jt=Math.SQRT2,yr=2,ia=4;h.interpolateZoom=function(pe,Le){var Ke=pe[0],dt=pe[1],gt=pe[2],Tt=Le[0],Vt=Le[1],jt=Le[2],sr=Tt-Ke,Pr=Vt-dt,kr=sr*sr+Pr*Pr,Zr,la;if(kr<Oe)la=Math.log(jt/gt)/Jt,Zr=function(an){return[Ke+an*sr,dt+an*Pr,gt*Math.exp(Jt*an*la)]};else{var ca=Math.sqrt(kr),on=(jt*jt-gt*gt+ia*kr)/(2*gt*yr*ca),pa=(jt*jt-gt*gt-ia*kr)/(2*jt*yr*ca),Pa=Math.log(Math.sqrt(on*on+1)-on),Na=Math.log(Math.sqrt(pa*pa+1)-pa);la=(Na-Pa)/Jt,Zr=function(an){var ln=an*la,Ba=Wt(Pa),Dn=gt/(yr*ca)*(Ba*rr(Jt*ln+Pa)-Zt(Pa));return[Ke+Dn*sr,dt+Dn*Pr,gt*Ba/Wt(Jt*ln+Pa)]}}return Zr.duration=la*1e3,Zr},h.behavior.zoom=function(){var pe={x:0,y:0,k:1},Le,Ke,dt,gt=[960,500],Tt=Ia,Vt=250,jt=0,sr="mousedown.zoom",Pr="mousemove.zoom",kr="mouseup.zoom",Zr,la="touchstart.zoom",ca,on=ie(ln,"zoomstart","zoom","zoomend"),pa,Pa,Na,an;Aa||(Aa="onwheel"in E?(La=function(){return-h.event.deltaY*(h.event.deltaMode?120:1)},"wheel"):"onmousewheel"in E?(La=function(){return h.event.wheelDelta},"mousewheel"):(La=function(){return-h.event.detail},"MozMousePixelScroll"));function ln(gi){gi.on(sr,co).on(Aa+".zoom",_l).on("dblclick.zoom",Gs).on(la,es)}ln.event=function(gi){gi.each(function(){var Ro=on.of(this,arguments),Ko=pe;Mi?h.select(this).transition().each("start.zoom",function(){pe=this.__chart__||{x:0,y:0,k:1},Ci(Ro)}).tween("zoom:zoom",function(){var Ns=gt[0],ks=gt[1],ru=Ke?Ke[0]:Ns/2,_s=Ke?Ke[1]:ks/2,Us=h.interpolateZoom([(ru-pe.x)/pe.k,(_s-pe.y)/pe.k,Ns/pe.k],[(ru-Ko.x)/Ko.k,(_s-Ko.y)/Ko.k,Ns/Ko.k]);return function(bu){var pl=Us(bu),lt=Ns/pl[2];this.__chart__=pe={x:ru-pl[0]*lt,y:_s-pl[1]*lt,k:lt},Wo(Ro)}}).each("interrupt.zoom",function(){Ri(Ro)}).each("end.zoom",function(){Ri(Ro)}):(this.__chart__=pe,Ci(Ro),Wo(Ro),Ri(Ro))})},ln.translate=function(gi){return arguments.length?(pe={x:+gi[0],y:+gi[1],k:pe.k},Ai(),ln):[pe.x,pe.y]},ln.scale=function(gi){return arguments.length?(pe={x:pe.x,y:pe.y,k:null},oi(+gi),Ai(),ln):pe.k},ln.scaleExtent=function(gi){return arguments.length?(Tt=gi==null?Ia:[+gi[0],+gi[1]],ln):Tt},ln.center=function(gi){return arguments.length?(dt=gi&&[+gi[0],+gi[1]],ln):dt},ln.size=function(gi){return arguments.length?(gt=gi&&[+gi[0],+gi[1]],ln):gt},ln.duration=function(gi){return arguments.length?(Vt=+gi,ln):Vt},ln.x=function(gi){return arguments.length?(Pa=gi,pa=gi.copy(),pe={x:0,y:0,k:1},ln):Pa},ln.y=function(gi){return arguments.length?(an=gi,Na=gi.copy(),pe={x:0,y:0,k:1},ln):an};function Ba(gi){return[(gi[0]-pe.x)/pe.k,(gi[1]-pe.y)/pe.k]}function Dn(gi){return[gi[0]*pe.k+pe.x,gi[1]*pe.k+pe.y]}function oi(gi){pe.k=Math.max(Tt[0],Math.min(Tt[1],gi))}function Kn(gi,Ro){Ro=Dn(Ro),pe.x+=gi[0]-Ro[0],pe.y+=gi[1]-Ro[1]}function ni(gi,Ro,Ko,Ns){gi.__chart__={x:pe.x,y:pe.y,k:pe.k},oi(Math.pow(2,Ns)),Kn(Ke=Ro,Ko),gi=h.select(gi),Vt>0&&(gi=gi.transition().duration(Vt)),gi.call(ln.event)}function Ai(){Pa&&Pa.domain(pa.range().map(function(gi){return(gi-pe.x)/pe.k}).map(pa.invert)),an&&an.domain(Na.range().map(function(gi){return(gi-pe.y)/pe.k}).map(Na.invert))}function Ci(gi){jt++||gi({type:"zoomstart"})}function Wo(gi){Ai(),gi({type:"zoom",scale:pe.k,translate:[pe.x,pe.y]})}function Ri(gi){--jt||(gi({type:"zoomend"}),Ke=null)}function co(){var gi=this,Ro=on.of(gi,arguments),Ko=0,Ns=h.select(t(gi)).on(Pr,_s).on(kr,Us),ks=Ba(h.mouse(gi)),ru=dr(gi);en.call(gi),Ci(Ro);function _s(){Ko=1,Kn(h.mouse(gi),ks),Wo(Ro)}function Us(){Ns.on(Pr,null).on(kr,null),ru(Ko),Ri(Ro)}}function es(){var gi=this,Ro=on.of(gi,arguments),Ko={},Ns=0,ks,ru=".zoom-"+h.event.changedTouches[0].identifier,_s="touchmove"+ru,Us="touchend"+ru,bu=[],pl=h.select(gi),lt=dr(gi);ur(),Ci(Ro),pl.on(sr,null).on(la,ur);function ir(){var Jr=h.touches(gi);return ks=pe.k,Jr.forEach(function($r){$r.identifier in Ko&&(Ko[$r.identifier]=Ba($r))}),Jr}function ur(){var Jr=h.event.target;h.select(Jr).on(_s,fa).on(Us,Va),bu.push(Jr);for(var $r=h.event.changedTouches,fn=0,un=$r.length;fn<un;++fn)Ko[$r[fn].identifier]=null;var cn=ir(),Tn=Date.now();if(cn.length===1){if(Tn-ca<500){var ei=cn[0];ni(gi,ei,Ko[ei.identifier],Math.floor(Math.log(pe.k)/Math.LN2)+1),te()}ca=Tn}else if(cn.length>1){var ei=cn[0],Vn=cn[1],bn=ei[0]-Vn[0],Za=ei[1]-Vn[1];Ns=bn*bn+Za*Za}}function fa(){var Jr=h.touches(gi),$r,fn,un,cn;en.call(gi);for(var Tn=0,ei=Jr.length;Tn<ei;++Tn,cn=null)if(un=Jr[Tn],cn=Ko[un.identifier]){if(fn)break;$r=un,fn=cn}if(cn){var Vn=(Vn=un[0]-$r[0])*Vn+(Vn=un[1]-$r[1])*Vn,bn=Ns&&Math.sqrt(Vn/Ns);$r=[($r[0]+un[0])/2,($r[1]+un[1])/2],fn=[(fn[0]+cn[0])/2,(fn[1]+cn[1])/2],oi(bn*ks)}ca=null,Kn($r,fn),Wo(Ro)}function Va(){if(h.event.touches.length){for(var Jr=h.event.changedTouches,$r=0,fn=Jr.length;$r<fn;++$r)delete Ko[Jr[$r].identifier];for(var un in Ko)return void ir()}h.selectAll(bu).on(ru,null),pl.on(sr,co).on(la,es),lt(),Ri(Ro)}}function _l(){var gi=on.of(this,arguments);Zr?clearTimeout(Zr):(en.call(this),Le=Ba(Ke=dt||h.mouse(this)),Ci(gi)),Zr=setTimeout(function(){Zr=null,Ri(gi)},50),te(),oi(Math.pow(2,La()*.002)*pe.k),Kn(Ke,Le),Wo(gi)}function Gs(){var gi=h.mouse(this),Ro=Math.log(pe.k)/Math.LN2;ni(this,gi,Ba(gi),h.event.shiftKey?Math.ceil(Ro)-1:Math.floor(Ro)+1)}return h.rebind(ln,on,"on")};var Ia=[0,1/0],La,Aa;h.color=Ga;function Ga(){}Ga.prototype.toString=function(){return this.rgb()+""},h.hsl=ba;function ba(pe,Le,Ke){return this instanceof ba?(this.h=+pe,this.s=+Le,void(this.l=+Ke)):arguments.length<2?pe instanceof ba?new ba(pe.h,pe.s,pe.l):Or(""+pe,jr,ba):new ba(pe,Le,Ke)}var Xa=ba.prototype=new Ga;Xa.brighter=function(pe){return pe=Math.pow(.7,arguments.length?pe:1),new ba(this.h,this.s,this.l/pe)},Xa.darker=function(pe){return pe=Math.pow(.7,arguments.length?pe:1),new ba(this.h,this.s,pe*this.l)},Xa.rgb=function(){return _n(this.h,this.s,this.l)};function _n(pe,Le,Ke){var dt,gt;pe=isNaN(pe)?0:(pe%=360)<0?pe+360:pe,Le=isNaN(Le)||Le<0?0:Le>1?1:Le,Ke=Ke<0?0:Ke>1?1:Ke,gt=Ke<=.5?Ke*(1+Le):Ke+Le-Ke*Le,dt=2*Ke-gt;function Tt(jt){return jt>360?jt-=360:jt<0&&(jt+=360),jt<60?dt+(gt-dt)*jt/60:jt<180?gt:jt<240?dt+(gt-dt)*(240-jt)/60:dt}function Vt(jt){return Math.round(Tt(jt)*255)}return new ot(Vt(pe+120),Vt(pe),Vt(pe-120))}h.hcl=$t;function $t(pe,Le,Ke){return this instanceof $t?(this.h=+pe,this.c=+Le,void(this.l=+Ke)):arguments.length<2?pe instanceof $t?new $t(pe.h,pe.c,pe.l):pe instanceof Ht?Ya(pe.l,pe.a,pe.b):Ya((pe=Dr((pe=h.rgb(pe)).r,pe.g,pe.b)).l,pe.a,pe.b):new $t(pe,Le,Ke)}var zt=$t.prototype=new Ga;zt.brighter=function(pe){return new $t(this.h,this.c,Math.min(100,this.l+Tr*(arguments.length?pe:1)))},zt.darker=function(pe){return new $t(this.h,this.c,Math.max(0,this.l-Tr*(arguments.length?pe:1)))},zt.rgb=function(){return Kt(this.h,this.c,this.l).rgb()};function Kt(pe,Le,Ke){return isNaN(pe)&&(pe=0),isNaN(Le)&&(Le=0),new Ht(Ke,Math.cos(pe*=Xe)*Le,Math.sin(pe)*Le)}h.lab=Ht;function Ht(pe,Le,Ke){return this instanceof Ht?(this.l=+pe,this.a=+Le,void(this.b=+Ke)):arguments.length<2?pe instanceof Ht?new Ht(pe.l,pe.a,pe.b):pe instanceof $t?Kt(pe.h,pe.c,pe.l):Dr((pe=ot(pe)).r,pe.g,pe.b):new Ht(pe,Le,Ke)}var Tr=18,qr=.95047,ha=1,Gr=1.08883,wa=Ht.prototype=new Ga;wa.brighter=function(pe){return new Ht(Math.min(100,this.l+Tr*(arguments.length?pe:1)),this.a,this.b)},wa.darker=function(pe){return new Ht(Math.max(0,this.l-Tr*(arguments.length?pe:1)),this.a,this.b)},wa.rgb=function(){return Da(this.l,this.a,this.b)};function Da(pe,Le,Ke){var dt=(pe+16)/116,gt=dt+Le/500,Tt=dt-Ke/200;return gt=$a(gt)*qr,dt=$a(dt)*ha,Tt=$a(Tt)*Gr,new ot(yt(3.2404542*gt-1.5371385*dt-.4985314*Tt),yt(-.969266*gt+1.8760108*dt+.041556*Tt),yt(.0556434*gt-.2040259*dt+1.0572252*Tt))}function Ya(pe,Le,Ke){return pe>0?new $t(Math.atan2(Ke,Le)*ht,Math.sqrt(Le*Le+Ke*Ke),pe):new $t(NaN,NaN,pe)}function $a(pe){return pe>.206893034?pe*pe*pe:(pe-4/29)/7.787037}function nn(pe){return pe>.008856?Math.pow(pe,1/3):7.787037*pe+4/29}function yt(pe){return Math.round(255*(pe<=.00304?12.92*pe:1.055*Math.pow(pe,1/2.4)-.055))}h.rgb=ot;function ot(pe,Le,Ke){return this instanceof ot?(this.r=~~pe,this.g=~~Le,void(this.b=~~Ke)):arguments.length<2?pe instanceof ot?new ot(pe.r,pe.g,pe.b):Or(""+pe,ot,_n):new ot(pe,Le,Ke)}function Lr(pe){return new ot(pe>>16,pe>>8&255,pe&255)}function Er(pe){return Lr(pe)+""}var Mr=ot.prototype=new Ga;Mr.brighter=function(pe){pe=Math.pow(.7,arguments.length?pe:1);var Le=this.r,Ke=this.g,dt=this.b,gt=30;return!Le&&!Ke&&!dt?new ot(gt,gt,gt):(Le&&Le<gt&&(Le=gt),Ke&&Ke<gt&&(Ke=gt),dt&&dt<gt&&(dt=gt),new ot(Math.min(255,Le/pe),Math.min(255,Ke/pe),Math.min(255,dt/pe)))},Mr.darker=function(pe){return pe=Math.pow(.7,arguments.length?pe:1),new ot(pe*this.r,pe*this.g,pe*this.b)},Mr.hsl=function(){return jr(this.r,this.g,this.b)},Mr.toString=function(){return"#"+br(this.r)+br(this.g)+br(this.b)};function br(pe){return pe<16?"0"+Math.max(0,pe).toString(16):Math.min(255,pe).toString(16)}function Or(pe,Le,Ke){var dt=0,gt=0,Tt=0,Vt,jt,sr;if(Vt=/([a-z]+)\((.*)\)/.exec(pe=pe.toLowerCase()),Vt)switch(jt=Vt[2].split(","),Vt[1]){case"hsl":return Ke(parseFloat(jt[0]),parseFloat(jt[1])/100,parseFloat(jt[2])/100);case"rgb":return Le(na(jt[0]),na(jt[1]),na(jt[2]))}return(sr=ta.get(pe))?Le(sr.r,sr.g,sr.b):(pe!=null&&pe.charAt(0)==="#"&&!isNaN(sr=parseInt(pe.slice(1),16))&&(pe.length===4?(dt=(sr&3840)>>4,dt=dt>>4|dt,gt=sr&240,gt=gt>>4|gt,Tt=sr&15,Tt=Tt<<4|Tt):pe.length===7&&(dt=(sr&16711680)>>16,gt=(sr&65280)>>8,Tt=sr&255)),Le(dt,gt,Tt))}function jr(pe,Le,Ke){var dt=Math.min(pe/=255,Le/=255,Ke/=255),gt=Math.max(pe,Le,Ke),Tt=gt-dt,Vt,jt,sr=(gt+dt)/2;return Tt?(jt=sr<.5?Tt/(gt+dt):Tt/(2-gt-dt),pe==gt?Vt=(Le-Ke)/Tt+(Le<Ke?6:0):Le==gt?Vt=(Ke-pe)/Tt+2:Vt=(pe-Le)/Tt+4,Vt*=60):(Vt=NaN,jt=sr>0&&sr<1?0:Vt),new ba(Vt,jt,sr)}function Dr(pe,Le,Ke){pe=Hr(pe),Le=Hr(Le),Ke=Hr(Ke);var dt=nn((.4124564*pe+.3575761*Le+.1804375*Ke)/qr),gt=nn((.2126729*pe+.7151522*Le+.072175*Ke)/ha),Tt=nn((.0193339*pe+.119192*Le+.9503041*Ke)/Gr);return Ht(116*gt-16,500*(dt-gt),200*(gt-Tt))}function Hr(pe){return(pe/=255)<=.04045?pe/12.92:Math.pow((pe+.055)/1.055,2.4)}function na(pe){var Le=parseFloat(pe);return pe.charAt(pe.length-1)==="%"?Math.round(Le*2.55):Le}var ta=h.map({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});ta.forEach(function(pe,Le){ta.set(pe,Lr(Le))});function At(pe){return typeof pe=="function"?pe:function(){return pe}}h.functor=At,h.xhr=or(F);function or(pe){return function(Le,Ke,dt){return arguments.length===2&&typeof Ke=="function"&&(dt=Ke,Ke=null),Ar(Le,Ke,pe,dt)}}function Ar(pe,Le,Ke,dt){var gt={},Tt=h.dispatch("beforesend","progress","load","error"),Vt={},jt=new XMLHttpRequest,sr=null;self.XDomainRequest&&!("withCredentials"in jt)&&/^(http(s)?:)?\/\//.test(pe)&&(jt=new XDomainRequest),"onload"in jt?jt.onload=jt.onerror=Pr:jt.onreadystatechange=function(){jt.readyState>3&&Pr()};function Pr(){var kr=jt.status,Zr;if(!kr&&ga(jt)||kr>=200&&kr<300||kr===304){try{Zr=Ke.call(gt,jt)}catch(la){Tt.error.call(gt,la);return}Tt.load.call(gt,Zr)}else Tt.error.call(gt,jt)}return jt.onprogress=function(kr){var Zr=h.event;h.event=kr;try{Tt.progress.call(gt,jt)}finally{h.event=Zr}},gt.header=function(kr,Zr){return kr=(kr+"").toLowerCase(),arguments.length<2?Vt[kr]:(Zr==null?delete Vt[kr]:Vt[kr]=Zr+"",gt)},gt.mimeType=function(kr){return arguments.length?(Le=kr==null?null:kr+"",gt):Le},gt.responseType=function(kr){return arguments.length?(sr=kr,gt):sr},gt.response=function(kr){return Ke=kr,gt},["get","post"].forEach(function(kr){gt[kr]=function(){return gt.send.apply(gt,[kr].concat(A(arguments)))}}),gt.send=function(kr,Zr,la){if(arguments.length===2&&typeof Zr=="function"&&(la=Zr,Zr=null),jt.open(kr,pe,!0),Le!=null&&!("accept"in Vt)&&(Vt.accept=Le+",*/*"),jt.setRequestHeader)for(var ca in Vt)jt.setRequestHeader(ca,Vt[ca]);return Le!=null&&jt.overrideMimeType&&jt.overrideMimeType(Le),sr!=null&&(jt.responseType=sr),la!=null&>.on("error",la).on("load",function(on){la(null,on)}),Tt.beforesend.call(gt,jt),jt.send(Zr??null),gt},gt.abort=function(){return jt.abort(),gt},h.rebind(gt,Tt,"on"),dt==null?gt:gt.get(oa(dt))}function oa(pe){return pe.length===1?function(Le,Ke){pe(Le==null?Ke:null)}:pe}function ga(pe){var Le=pe.responseType;return Le&&Le!=="text"?pe.response:pe.responseText}h.dsv=function(pe,Le){var Ke=new RegExp('["'+pe+`
|
|
1
|
+
import{a$ as $8,b0 as J8,a3 as Q8,x as eF,b1 as tF,b2 as tS,b3 as rF,b4 as aF,b5 as nF,b6 as qv,b7 as yh,b8 as rS,b9 as iF,ay as Wf,o as KA,ba as oF,bb as Yg,r as Gv,J as aS,j as ub,u as sF}from"./index.6xX1278W.js";import{w as lF,E as nS}from"./withFullScreenWrapper.C3561XxJ.js";import{F as uF}from"./FormClearHelper.DTcdrasw.js";var sb={},lb={},$A;function cF(){return $A||($A=1,function(rn){function Wi(Xo){"@babel/helpers - typeof";return Wi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(al){return typeof al}:function(al){return al&&typeof Symbol=="function"&&al.constructor===Symbol&&al!==Symbol.prototype?"symbol":typeof al},Wi(Xo)}Object.defineProperty(rn,"__esModule",{value:!0}),rn.default=qd;var Ss=Hu($8()),Bo=Is(J8());function Is(Xo){return Xo&&Xo.__esModule?Xo:{default:Xo}}function rc(Xo){if(typeof WeakMap!="function")return null;var al=new WeakMap,dc=new WeakMap;return(rc=function(iu){return iu?dc:al})(Xo)}function Hu(Xo,al){if(Xo&&Xo.__esModule)return Xo;if(Xo===null||Wi(Xo)!=="object"&&typeof Xo!="function")return{default:Xo};var dc=rc(al);if(dc&&dc.has(Xo))return dc.get(Xo);var Zn={},iu=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var bl in Xo)if(bl!=="default"&&Object.prototype.hasOwnProperty.call(Xo,bl)){var go=iu?Object.getOwnPropertyDescriptor(Xo,bl):null;go&&(go.get||go.set)?Object.defineProperty(Zn,bl,go):Zn[bl]=Xo[bl]}return Zn.default=Xo,dc&&dc.set(Xo,Zn),Zn}function Xf(Xo,al){if(!(Xo instanceof al))throw new TypeError("Cannot call a class as a function")}function Tf(Xo,al){for(var dc=0;dc<al.length;dc++){var Zn=al[dc];Zn.enumerable=Zn.enumerable||!1,Zn.configurable=!0,"value"in Zn&&(Zn.writable=!0),Object.defineProperty(Xo,Zn.key,Zn)}}function gf(Xo,al,dc){return al&&Tf(Xo.prototype,al),Object.defineProperty(Xo,"prototype",{writable:!1}),Xo}function Af(Xo,al){if(typeof al!="function"&&al!==null)throw new TypeError("Super expression must either be null or a function");Xo.prototype=Object.create(al&&al.prototype,{constructor:{value:Xo,writable:!0,configurable:!0}}),Object.defineProperty(Xo,"prototype",{writable:!1}),al&&Qc(Xo,al)}function Qc(Xo,al){return Qc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(Zn,iu){return Zn.__proto__=iu,Zn},Qc(Xo,al)}function Fc(Xo){var al=Sf();return function(){var Zn=Js(Xo),iu;if(al){var bl=Js(this).constructor;iu=Reflect.construct(Zn,arguments,bl)}else iu=Zn.apply(this,arguments);return vs(this,iu)}}function vs(Xo,al){if(al&&(Wi(al)==="object"||typeof al=="function"))return al;if(al!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Hl(Xo)}function Hl(Xo){if(Xo===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Xo}function Sf(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Js(Xo){return Js=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(dc){return dc.__proto__||Object.getPrototypeOf(dc)},Js(Xo)}var He=["AfterExport","AfterPlot","Animated","AnimatingFrame","AnimationInterrupted","AutoSize","BeforeExport","BeforeHover","ButtonClicked","Click","ClickAnnotation","Deselect","DoubleClick","Framework","Hover","LegendClick","LegendDoubleClick","Relayout","Relayouting","Restyle","Redraw","Selected","Selecting","SliderChange","SliderEnd","SliderStart","SunburstClick","Transitioning","TransitionInterrupted","Unhover","WebGlContextLost"],wv=["plotly_restyle","plotly_redraw","plotly_relayout","plotly_relayouting","plotly_doubleclick","plotly_animated","plotly_sunburstclick"],cd=typeof window<"u";function qd(Xo){var al=function(dc){Af(iu,dc);var Zn=Fc(iu);function iu(bl){var go;return Xf(this,iu),go=Zn.call(this,bl),go.p=Promise.resolve(),go.resizeHandler=null,go.handlers={},go.syncWindowResize=go.syncWindowResize.bind(Hl(go)),go.syncEventHandlers=go.syncEventHandlers.bind(Hl(go)),go.attachUpdateEvents=go.attachUpdateEvents.bind(Hl(go)),go.getRef=go.getRef.bind(Hl(go)),go.handleUpdate=go.handleUpdate.bind(Hl(go)),go.figureCallback=go.figureCallback.bind(Hl(go)),go.updatePlotly=go.updatePlotly.bind(Hl(go)),go}return gf(iu,[{key:"updatePlotly",value:function(go,ef,lo){var Eo=this;this.p=this.p.then(function(){if(!Eo.unmounting){if(!Eo.el)throw new Error("Missing element reference");return Xo.react(Eo.el,{data:Eo.props.data,layout:Eo.props.layout,config:Eo.props.config,frames:Eo.props.frames})}}).then(function(){Eo.unmounting||(Eo.syncWindowResize(go),Eo.syncEventHandlers(),Eo.figureCallback(ef),lo&&Eo.attachUpdateEvents())}).catch(function(Yh){Eo.props.onError&&Eo.props.onError(Yh)})}},{key:"componentDidMount",value:function(){this.unmounting=!1,this.updatePlotly(!0,this.props.onInitialized,!0)}},{key:"componentDidUpdate",value:function(go){this.unmounting=!1;var ef=go.frames&&go.frames.length?go.frames.length:0,lo=this.props.frames&&this.props.frames.length?this.props.frames.length:0,Eo=!(go.layout===this.props.layout&&go.data===this.props.data&&go.config===this.props.config&&lo===ef),Yh=go.revision!==void 0,tv=go.revision!==this.props.revision;!Eo&&(!Yh||Yh&&!tv)||this.updatePlotly(!1,this.props.onUpdate,!1)}},{key:"componentWillUnmount",value:function(){this.unmounting=!0,this.figureCallback(this.props.onPurge),this.resizeHandler&&cd&&(window.removeEventListener("resize",this.resizeHandler),this.resizeHandler=null),this.removeUpdateEvents(),Xo.purge(this.el)}},{key:"attachUpdateEvents",value:function(){var go=this;!this.el||!this.el.removeListener||wv.forEach(function(ef){go.el.on(ef,go.handleUpdate)})}},{key:"removeUpdateEvents",value:function(){var go=this;!this.el||!this.el.removeListener||wv.forEach(function(ef){go.el.removeListener(ef,go.handleUpdate)})}},{key:"handleUpdate",value:function(){this.figureCallback(this.props.onUpdate)}},{key:"figureCallback",value:function(go){if(typeof go=="function"){var ef=this.el,lo=ef.data,Eo=ef.layout,Yh=this.el._transitionData?this.el._transitionData._frames:null,tv={data:lo,layout:Eo,frames:Yh};go(tv,this.el)}}},{key:"syncWindowResize",value:function(go){var ef=this;cd&&(this.props.useResizeHandler&&!this.resizeHandler?(this.resizeHandler=function(){return Xo.Plots.resize(ef.el)},window.addEventListener("resize",this.resizeHandler),go&&this.resizeHandler()):!this.props.useResizeHandler&&this.resizeHandler&&(window.removeEventListener("resize",this.resizeHandler),this.resizeHandler=null))}},{key:"getRef",value:function(go){this.el=go,this.props.debug&&cd&&(window.gd=this.el)}},{key:"syncEventHandlers",value:function(){var go=this;He.forEach(function(ef){var lo=go.props["on"+ef],Eo=go.handlers[ef],Yh=!!Eo;lo&&!Yh?go.addEventHandler(ef,lo):!lo&&Yh?go.removeEventHandler(ef):lo&&Yh&&lo!==Eo&&(go.removeEventHandler(ef),go.addEventHandler(ef,lo))})}},{key:"addEventHandler",value:function(go,ef){this.handlers[go]=ef,this.el.on(this.getPlotlyEventName(go),this.handlers[go])}},{key:"removeEventHandler",value:function(go){this.el.removeListener(this.getPlotlyEventName(go),this.handlers[go]),delete this.handlers[go]}},{key:"getPlotlyEventName",value:function(go){return"plotly_"+go.toLowerCase()}},{key:"render",value:function(){return Ss.default.createElement("div",{id:this.props.divId,style:this.props.style,ref:this.getRef,className:this.props.className})}}]),iu}(Ss.Component);return al.propTypes={data:Bo.default.arrayOf(Bo.default.object),config:Bo.default.object,layout:Bo.default.object,frames:Bo.default.arrayOf(Bo.default.object),revision:Bo.default.number,onInitialized:Bo.default.func,onPurge:Bo.default.func,onError:Bo.default.func,onUpdate:Bo.default.func,debug:Bo.default.bool,style:Bo.default.object,className:Bo.default.string,useResizeHandler:Bo.default.bool,divId:Bo.default.string},He.forEach(function(dc){al.propTypes["on"+dc]=Bo.default.func}),al.defaultProps={debug:!1,useResizeHandler:!1,data:[],style:{position:"relative",display:"inline-block"}},al}}(lb)),lb}var Km={exports:{}},fF=Km.exports,JA;function hF(){return JA||(JA=1,function(rn){var Wi={};(function(Ss,Bo){rn.exports?rn.exports=Bo():Ss.moduleName=Bo()})(typeof self<"u"?self:fF,()=>{var Ss=(()=>{var Bo=Object.create,Is=Object.defineProperty,rc=Object.defineProperties,Hu=Object.getOwnPropertyDescriptor,Xf=Object.getOwnPropertyDescriptors,Tf=Object.getOwnPropertyNames,gf=Object.getOwnPropertySymbols,Af=Object.getPrototypeOf,Qc=Object.prototype.hasOwnProperty,Fc=Object.prototype.propertyIsEnumerable,vs=(Y,H,h)=>H in Y?Is(Y,H,{enumerable:!0,configurable:!0,writable:!0,value:h}):Y[H]=h,Hl=(Y,H)=>{for(var h in H||(H={}))Qc.call(H,h)&&vs(Y,h,H[h]);if(gf)for(var h of gf(H))Fc.call(H,h)&&vs(Y,h,H[h]);return Y},Sf=(Y,H)=>rc(Y,Xf(H)),Js=(Y,H)=>function(){return Y&&(H=(0,Y[Tf(Y)[0]])(Y=0)),H},He=(Y,H)=>function(){return H||(0,Y[Tf(Y)[0]])((H={exports:{}}).exports,H),H.exports},wv=(Y,H)=>{for(var h in H)Is(Y,h,{get:H[h],enumerable:!0})},cd=(Y,H,h,x)=>{if(H&&typeof H=="object"||typeof H=="function")for(let A of Tf(H))!Qc.call(Y,A)&&A!==h&&Is(Y,A,{get:()=>H[A],enumerable:!(x=Hu(H,A))||x.enumerable});return Y},qd=(Y,H,h)=>(h=Y!=null?Bo(Af(Y)):{},cd(Is(h,"default",{value:Y,enumerable:!0}),Y)),Xo=Y=>cd(Is({},"__esModule",{value:!0}),Y),al=He({"src/version.js"(Y){Y.version="3.1.0"}}),dc=He({"node_modules/native-promise-only/lib/npo.src.js"(Y,H){(function(x,A,E){A[x]=A[x]||E(),typeof H<"u"&&H.exports&&(H.exports=A[x])})("Promise",typeof window<"u"?window:Y,function(){var x,A,E,e=Object.prototype.toString,t=typeof setImmediate<"u"?function(y){return setImmediate(y)}:setTimeout;try{Object.defineProperty({},"x",{}),x=function(y,w,S,M){return Object.defineProperty(y,w,{value:S,writable:!0,configurable:M!==!1})}}catch{x=function(w,S,M){return w[S]=M,w}}E=function(){var y,w,S;function M(_,b){this.fn=_,this.self=b,this.next=void 0}return{add:function(b,d){S=new M(b,d),w?w.next=S:y=S,w=S,S=void 0},drain:function(){var b=y;for(y=w=A=void 0;b;)b.fn.call(b.self),b=b.next}}}();function r(l,y){E.add(l,y),A||(A=t(E.drain))}function i(l){var y,w=typeof l;return l!=null&&(w=="object"||w=="function")&&(y=l.then),typeof y=="function"?y:!1}function a(){for(var l=0;l<this.chain.length;l++)o(this,this.state===1?this.chain[l].success:this.chain[l].failure,this.chain[l]);this.chain.length=0}function o(l,y,w){var S,M;try{y===!1?w.reject(l.msg):(y===!0?S=l.msg:S=y.call(void 0,l.msg),S===w.promise?w.reject(TypeError("Promise-chain cycle")):(M=i(S))?M.call(S,w.resolve,w.reject):w.resolve(S))}catch(_){w.reject(_)}}function n(l){var y,w=this;if(!w.triggered){w.triggered=!0,w.def&&(w=w.def);try{(y=i(l))?r(function(){var S=new f(w);try{y.call(l,function(){n.apply(S,arguments)},function(){s.apply(S,arguments)})}catch(M){s.call(S,M)}}):(w.msg=l,w.state=1,w.chain.length>0&&r(a,w))}catch(S){s.call(new f(w),S)}}}function s(l){var y=this;y.triggered||(y.triggered=!0,y.def&&(y=y.def),y.msg=l,y.state=2,y.chain.length>0&&r(a,y))}function c(l,y,w,S){for(var M=0;M<y.length;M++)(function(b){l.resolve(y[b]).then(function(u){w(b,u)},S)})(M)}function f(l){this.def=l,this.triggered=!1}function p(l){this.promise=l,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function v(l){if(typeof l!="function")throw TypeError("Not a function");if(this.__NPO__!==0)throw TypeError("Not a promise");this.__NPO__=1;var y=new p(this);this.then=function(S,M){var _={success:typeof S=="function"?S:!0,failure:typeof M=="function"?M:!1};return _.promise=new this.constructor(function(d,u){if(typeof d!="function"||typeof u!="function")throw TypeError("Not a function");_.resolve=d,_.reject=u}),y.chain.push(_),y.state!==0&&r(a,y),_.promise},this.catch=function(S){return this.then(void 0,S)};try{l.call(void 0,function(S){n.call(y,S)},function(S){s.call(y,S)})}catch(w){s.call(y,w)}}var T=x({},"constructor",v,!1);return v.prototype=T,x(T,"__NPO__",0,!1),x(v,"resolve",function(y){var w=this;return y&&typeof y=="object"&&y.__NPO__===1?y:new w(function(M,_){if(typeof M!="function"||typeof _!="function")throw TypeError("Not a function");M(y)})}),x(v,"reject",function(y){return new this(function(S,M){if(typeof S!="function"||typeof M!="function")throw TypeError("Not a function");M(y)})}),x(v,"all",function(y){var w=this;return e.call(y)!="[object Array]"?w.reject(TypeError("Not an array")):y.length===0?w.resolve([]):new w(function(M,_){if(typeof M!="function"||typeof _!="function")throw TypeError("Not a function");var b=y.length,d=Array(b),u=0;c(w,y,function(m,R){d[m]=R,++u===b&&M(d)},_)})}),x(v,"race",function(y){var w=this;return e.call(y)!="[object Array]"?w.reject(TypeError("Not an array")):new w(function(M,_){if(typeof M!="function"||typeof _!="function")throw TypeError("Not a function");c(w,y,function(d,u){M(u)},_)})}),v})}}),Zn=He({"node_modules/@plotly/d3/d3.js"(Y,H){(function(){var h={version:"3.8.2"},x=[].slice,A=function(pe){return x.call(pe)},E=self.document;function e(pe){return pe&&(pe.ownerDocument||pe.document||pe).documentElement}function t(pe){return pe&&(pe.ownerDocument&&pe.ownerDocument.defaultView||pe.document&&pe||pe.defaultView)}if(E)try{A(E.documentElement.childNodes)[0].nodeType}catch{A=function(Le){for(var Ke=Le.length,dt=new Array(Ke);Ke--;)dt[Ke]=Le[Ke];return dt}}if(Date.now||(Date.now=function(){return+new Date}),E)try{E.createElement("DIV").style.setProperty("opacity",0,"")}catch{var r=this.Element.prototype,i=r.setAttribute,a=r.setAttributeNS,o=this.CSSStyleDeclaration.prototype,n=o.setProperty;r.setAttribute=function(Le,Ke){i.call(this,Le,Ke+"")},r.setAttributeNS=function(Le,Ke,dt){a.call(this,Le,Ke,dt+"")},o.setProperty=function(Le,Ke,dt){n.call(this,Le,Ke+"",dt)}}h.ascending=s;function s(pe,Le){return pe<Le?-1:pe>Le?1:pe>=Le?0:NaN}h.descending=function(pe,Le){return Le<pe?-1:Le>pe?1:Le>=pe?0:NaN},h.min=function(pe,Le){var Ke=-1,dt=pe.length,gt,Tt;if(arguments.length===1){for(;++Ke<dt;)if((Tt=pe[Ke])!=null&&Tt>=Tt){gt=Tt;break}for(;++Ke<dt;)(Tt=pe[Ke])!=null&>>Tt&&(gt=Tt)}else{for(;++Ke<dt;)if((Tt=Le.call(pe,pe[Ke],Ke))!=null&&Tt>=Tt){gt=Tt;break}for(;++Ke<dt;)(Tt=Le.call(pe,pe[Ke],Ke))!=null&>>Tt&&(gt=Tt)}return gt},h.max=function(pe,Le){var Ke=-1,dt=pe.length,gt,Tt;if(arguments.length===1){for(;++Ke<dt;)if((Tt=pe[Ke])!=null&&Tt>=Tt){gt=Tt;break}for(;++Ke<dt;)(Tt=pe[Ke])!=null&&Tt>gt&&(gt=Tt)}else{for(;++Ke<dt;)if((Tt=Le.call(pe,pe[Ke],Ke))!=null&&Tt>=Tt){gt=Tt;break}for(;++Ke<dt;)(Tt=Le.call(pe,pe[Ke],Ke))!=null&&Tt>gt&&(gt=Tt)}return gt},h.extent=function(pe,Le){var Ke=-1,dt=pe.length,gt,Tt,Vt;if(arguments.length===1){for(;++Ke<dt;)if((Tt=pe[Ke])!=null&&Tt>=Tt){gt=Vt=Tt;break}for(;++Ke<dt;)(Tt=pe[Ke])!=null&&(gt>Tt&&(gt=Tt),Vt<Tt&&(Vt=Tt))}else{for(;++Ke<dt;)if((Tt=Le.call(pe,pe[Ke],Ke))!=null&&Tt>=Tt){gt=Vt=Tt;break}for(;++Ke<dt;)(Tt=Le.call(pe,pe[Ke],Ke))!=null&&(gt>Tt&&(gt=Tt),Vt<Tt&&(Vt=Tt))}return[gt,Vt]};function c(pe){return pe===null?NaN:+pe}function f(pe){return!isNaN(pe)}h.sum=function(pe,Le){var Ke=0,dt=pe.length,gt,Tt=-1;if(arguments.length===1)for(;++Tt<dt;)f(gt=+pe[Tt])&&(Ke+=gt);else for(;++Tt<dt;)f(gt=+Le.call(pe,pe[Tt],Tt))&&(Ke+=gt);return Ke},h.mean=function(pe,Le){var Ke=0,dt=pe.length,gt,Tt=-1,Vt=dt;if(arguments.length===1)for(;++Tt<dt;)f(gt=c(pe[Tt]))?Ke+=gt:--Vt;else for(;++Tt<dt;)f(gt=c(Le.call(pe,pe[Tt],Tt)))?Ke+=gt:--Vt;if(Vt)return Ke/Vt},h.quantile=function(pe,Le){var Ke=(pe.length-1)*Le+1,dt=Math.floor(Ke),gt=+pe[dt-1],Tt=Ke-dt;return Tt?gt+Tt*(pe[dt]-gt):gt},h.median=function(pe,Le){var Ke=[],dt=pe.length,gt,Tt=-1;if(arguments.length===1)for(;++Tt<dt;)f(gt=c(pe[Tt]))&&Ke.push(gt);else for(;++Tt<dt;)f(gt=c(Le.call(pe,pe[Tt],Tt)))&&Ke.push(gt);if(Ke.length)return h.quantile(Ke.sort(s),.5)},h.variance=function(pe,Le){var Ke=pe.length,dt=0,gt,Tt,Vt=0,jt=-1,sr=0;if(arguments.length===1)for(;++jt<Ke;)f(gt=c(pe[jt]))&&(Tt=gt-dt,dt+=Tt/++sr,Vt+=Tt*(gt-dt));else for(;++jt<Ke;)f(gt=c(Le.call(pe,pe[jt],jt)))&&(Tt=gt-dt,dt+=Tt/++sr,Vt+=Tt*(gt-dt));if(sr>1)return Vt/(sr-1)},h.deviation=function(){var pe=h.variance.apply(this,arguments);return pe&&Math.sqrt(pe)};function p(pe){return{left:function(Le,Ke,dt,gt){for(arguments.length<3&&(dt=0),arguments.length<4&&(gt=Le.length);dt<gt;){var Tt=dt+gt>>>1;pe(Le[Tt],Ke)<0?dt=Tt+1:gt=Tt}return dt},right:function(Le,Ke,dt,gt){for(arguments.length<3&&(dt=0),arguments.length<4&&(gt=Le.length);dt<gt;){var Tt=dt+gt>>>1;pe(Le[Tt],Ke)>0?gt=Tt:dt=Tt+1}return dt}}}var v=p(s);h.bisectLeft=v.left,h.bisect=h.bisectRight=v.right,h.bisector=function(pe){return p(pe.length===1?function(Le,Ke){return s(pe(Le),Ke)}:pe)},h.shuffle=function(pe,Le,Ke){(dt=arguments.length)<3&&(Ke=pe.length,dt<2&&(Le=0));for(var dt=Ke-Le,gt,Tt;dt;)Tt=Math.random()*dt--|0,gt=pe[dt+Le],pe[dt+Le]=pe[Tt+Le],pe[Tt+Le]=gt;return pe},h.permute=function(pe,Le){for(var Ke=Le.length,dt=new Array(Ke);Ke--;)dt[Ke]=pe[Le[Ke]];return dt},h.pairs=function(pe){for(var Le=0,Ke=pe.length-1,dt=pe[0],gt=new Array(Ke<0?0:Ke);Le<Ke;)gt[Le]=[dt,dt=pe[++Le]];return gt},h.transpose=function(pe){if(!(Tt=pe.length))return[];for(var Le=-1,Ke=h.min(pe,T),dt=new Array(Ke);++Le<Ke;)for(var gt=-1,Tt,Vt=dt[Le]=new Array(Tt);++gt<Tt;)Vt[gt]=pe[gt][Le];return dt};function T(pe){return pe.length}h.zip=function(){return h.transpose(arguments)},h.keys=function(pe){var Le=[];for(var Ke in pe)Le.push(Ke);return Le},h.values=function(pe){var Le=[];for(var Ke in pe)Le.push(pe[Ke]);return Le},h.entries=function(pe){var Le=[];for(var Ke in pe)Le.push({key:Ke,value:pe[Ke]});return Le},h.merge=function(pe){for(var Le=pe.length,Ke,dt=-1,gt=0,Tt,Vt;++dt<Le;)gt+=pe[dt].length;for(Tt=new Array(gt);--Le>=0;)for(Vt=pe[Le],Ke=Vt.length;--Ke>=0;)Tt[--gt]=Vt[Ke];return Tt};var l=Math.abs;h.range=function(pe,Le,Ke){if(arguments.length<3&&(Ke=1,arguments.length<2&&(Le=pe,pe=0)),(Le-pe)/Ke===1/0)throw new Error("infinite range");var dt=[],gt=y(l(Ke)),Tt=-1,Vt;if(pe*=gt,Le*=gt,Ke*=gt,Ke<0)for(;(Vt=pe+Ke*++Tt)>Le;)dt.push(Vt/gt);else for(;(Vt=pe+Ke*++Tt)<Le;)dt.push(Vt/gt);return dt};function y(pe){for(var Le=1;pe*Le%1;)Le*=10;return Le}function w(pe,Le){for(var Ke in Le)Object.defineProperty(pe.prototype,Ke,{value:Le[Ke],enumerable:!1})}h.map=function(pe,Le){var Ke=new S;if(pe instanceof S)pe.forEach(function(jt,sr){Ke.set(jt,sr)});else if(Array.isArray(pe)){var dt=-1,gt=pe.length,Tt;if(arguments.length===1)for(;++dt<gt;)Ke.set(dt,pe[dt]);else for(;++dt<gt;)Ke.set(Le.call(pe,Tt=pe[dt],dt),Tt)}else for(var Vt in pe)Ke.set(Vt,pe[Vt]);return Ke};function S(){this._=Object.create(null)}var M="__proto__",_="\0";w(S,{has:u,get:function(pe){return this._[b(pe)]},set:function(pe,Le){return this._[b(pe)]=Le},remove:g,keys:m,values:function(){var pe=[];for(var Le in this._)pe.push(this._[Le]);return pe},entries:function(){var pe=[];for(var Le in this._)pe.push({key:d(Le),value:this._[Le]});return pe},size:R,empty:I,forEach:function(pe){for(var Le in this._)pe.call(this,d(Le),this._[Le])}});function b(pe){return(pe+="")===M||pe[0]===_?_+pe:pe}function d(pe){return(pe+="")[0]===_?pe.slice(1):pe}function u(pe){return b(pe)in this._}function g(pe){return(pe=b(pe))in this._&&delete this._[pe]}function m(){var pe=[];for(var Le in this._)pe.push(d(Le));return pe}function R(){var pe=0;for(var Le in this._)++pe;return pe}function I(){for(var pe in this._)return!1;return!0}h.nest=function(){var pe={},Le=[],Ke=[],dt,gt;function Tt(jt,sr,Pr){if(Pr>=Le.length)return gt?gt.call(pe,sr):dt?sr.sort(dt):sr;for(var kr=-1,Zr=sr.length,la=Le[Pr++],ca,on,pa,Pa=new S,Na;++kr<Zr;)(Na=Pa.get(ca=la(on=sr[kr])))?Na.push(on):Pa.set(ca,[on]);return jt?(on=jt(),pa=function(an,ln){on.set(an,Tt(jt,ln,Pr))}):(on={},pa=function(an,ln){on[an]=Tt(jt,ln,Pr)}),Pa.forEach(pa),on}function Vt(jt,sr){if(sr>=Le.length)return jt;var Pr=[],kr=Ke[sr++];return jt.forEach(function(Zr,la){Pr.push({key:Zr,values:Vt(la,sr)})}),kr?Pr.sort(function(Zr,la){return kr(Zr.key,la.key)}):Pr}return pe.map=function(jt,sr){return Tt(sr,jt,0)},pe.entries=function(jt){return Vt(Tt(h.map,jt,0),0)},pe.key=function(jt){return Le.push(jt),pe},pe.sortKeys=function(jt){return Ke[Le.length-1]=jt,pe},pe.sortValues=function(jt){return dt=jt,pe},pe.rollup=function(jt){return gt=jt,pe},pe},h.set=function(pe){var Le=new z;if(pe)for(var Ke=0,dt=pe.length;Ke<dt;++Ke)Le.add(pe[Ke]);return Le};function z(){this._=Object.create(null)}w(z,{has:u,add:function(pe){return this._[b(pe+="")]=!0,pe},remove:g,values:m,size:R,empty:I,forEach:function(pe){for(var Le in this._)pe.call(this,d(Le))}}),h.behavior={};function F(pe){return pe}h.rebind=function(pe,Le){for(var Ke=1,dt=arguments.length,gt;++Ke<dt;)pe[gt=arguments[Ke]]=B(pe,Le,Le[gt]);return pe};function B(pe,Le,Ke){return function(){var dt=Ke.apply(Le,arguments);return dt===Le?pe:dt}}function O(pe,Le){if(Le in pe)return Le;Le=Le.charAt(0).toUpperCase()+Le.slice(1);for(var Ke=0,dt=P.length;Ke<dt;++Ke){var gt=P[Ke]+Le;if(gt in pe)return gt}}var P=["webkit","ms","moz","Moz","o","O"];function N(){}h.dispatch=function(){for(var pe=new U,Le=-1,Ke=arguments.length;++Le<Ke;)pe[arguments[Le]]=X(pe);return pe};function U(){}U.prototype.on=function(pe,Le){var Ke=pe.indexOf("."),dt="";if(Ke>=0&&(dt=pe.slice(Ke+1),pe=pe.slice(0,Ke)),pe)return arguments.length<2?this[pe].on(dt):this[pe].on(dt,Le);if(arguments.length===2){if(Le==null)for(pe in this)this.hasOwnProperty(pe)&&this[pe].on(dt,null);return this}};function X(pe){var Le=[],Ke=new S;function dt(){for(var gt=Le,Tt=-1,Vt=gt.length,jt;++Tt<Vt;)(jt=gt[Tt].on)&&jt.apply(this,arguments);return pe}return dt.on=function(gt,Tt){var Vt=Ke.get(gt),jt;return arguments.length<2?Vt&&Vt.on:(Vt&&(Vt.on=null,Le=Le.slice(0,jt=Le.indexOf(Vt)).concat(Le.slice(jt+1)),Ke.remove(gt)),Tt&&Le.push(Ke.set(gt,{on:Tt})),pe)},dt}h.event=null;function te(){h.event.preventDefault()}function ue(){for(var pe=h.event,Le;Le=pe.sourceEvent;)pe=Le;return pe}function ie(pe){for(var Le=new U,Ke=0,dt=arguments.length;++Ke<dt;)Le[arguments[Ke]]=X(Le);return Le.of=function(gt,Tt){return function(Vt){try{var jt=Vt.sourceEvent=h.event;Vt.target=pe,h.event=Vt,Le[Vt.type].apply(gt,Tt)}finally{h.event=jt}}},Le}h.requote=function(pe){return pe.replace(le,"\\$&")};var le=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g,q={}.__proto__?function(pe,Le){pe.__proto__=Le}:function(pe,Le){for(var Ke in Le)pe[Ke]=Le[Ke]};function J(pe){return q(pe,Q),pe}var ee=function(pe,Le){return Le.querySelector(pe)},Z=function(pe,Le){return Le.querySelectorAll(pe)},se=function(pe,Le){var Ke=pe.matches||pe[O(pe,"matchesSelector")];return se=function(dt,gt){return Ke.call(dt,gt)},se(pe,Le)};typeof Sizzle=="function"&&(ee=function(pe,Le){return Sizzle(pe,Le)[0]||null},Z=Sizzle,se=Sizzle.matchesSelector),h.selection=function(){return h.select(E.documentElement)};var Q=h.selection.prototype=[];Q.select=function(pe){var Le=[],Ke,dt,gt,Tt;pe=V(pe);for(var Vt=-1,jt=this.length;++Vt<jt;){Le.push(Ke=[]),Ke.parentNode=(gt=this[Vt]).parentNode;for(var sr=-1,Pr=gt.length;++sr<Pr;)(Tt=gt[sr])?(Ke.push(dt=pe.call(Tt,Tt.__data__,sr,Vt)),dt&&"__data__"in Tt&&(dt.__data__=Tt.__data__)):Ke.push(null)}return J(Le)};function V(pe){return typeof pe=="function"?pe:function(){return ee(pe,this)}}Q.selectAll=function(pe){var Le=[],Ke,dt;pe=re(pe);for(var gt=-1,Tt=this.length;++gt<Tt;)for(var Vt=this[gt],jt=-1,sr=Vt.length;++jt<sr;)(dt=Vt[jt])&&(Le.push(Ke=A(pe.call(dt,dt.__data__,jt,gt))),Ke.parentNode=dt);return J(Le)};function re(pe){return typeof pe=="function"?pe:function(){return Z(pe,this)}}var ae="http://www.w3.org/1999/xhtml",fe={svg:"http://www.w3.org/2000/svg",xhtml:ae,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};h.ns={prefix:fe,qualify:function(pe){var Le=pe.indexOf(":"),Ke=pe;return Le>=0&&(Ke=pe.slice(0,Le))!=="xmlns"&&(pe=pe.slice(Le+1)),fe.hasOwnProperty(Ke)?{space:fe[Ke],local:pe}:pe}},Q.attr=function(pe,Le){if(arguments.length<2){if(typeof pe=="string"){var Ke=this.node();return pe=h.ns.qualify(pe),pe.local?Ke.getAttributeNS(pe.space,pe.local):Ke.getAttribute(pe)}for(Le in pe)this.each(xe(Le,pe[Le]));return this}return this.each(xe(pe,Le))};function xe(pe,Le){pe=h.ns.qualify(pe);function Ke(){this.removeAttribute(pe)}function dt(){this.removeAttributeNS(pe.space,pe.local)}function gt(){this.setAttribute(pe,Le)}function Tt(){this.setAttributeNS(pe.space,pe.local,Le)}function Vt(){var sr=Le.apply(this,arguments);sr==null?this.removeAttribute(pe):this.setAttribute(pe,sr)}function jt(){var sr=Le.apply(this,arguments);sr==null?this.removeAttributeNS(pe.space,pe.local):this.setAttributeNS(pe.space,pe.local,sr)}return Le==null?pe.local?dt:Ke:typeof Le=="function"?pe.local?jt:Vt:pe.local?Tt:gt}function Ae(pe){return pe.trim().replace(/\s+/g," ")}Q.classed=function(pe,Le){if(arguments.length<2){if(typeof pe=="string"){var Ke=this.node(),dt=(pe=Ce(pe)).length,gt=-1;if(Le=Ke.classList){for(;++gt<dt;)if(!Le.contains(pe[gt]))return!1}else for(Le=Ke.getAttribute("class");++gt<dt;)if(!Pe(pe[gt]).test(Le))return!1;return!0}for(Le in pe)this.each(je(Le,pe[Le]));return this}return this.each(je(pe,Le))};function Pe(pe){return new RegExp("(?:^|\\s+)"+h.requote(pe)+"(?:\\s+|$)","g")}function Ce(pe){return(pe+"").trim().split(/^|\s+/)}function je(pe,Le){pe=Ce(pe).map(at);var Ke=pe.length;function dt(){for(var Tt=-1;++Tt<Ke;)pe[Tt](this,Le)}function gt(){for(var Tt=-1,Vt=Le.apply(this,arguments);++Tt<Ke;)pe[Tt](this,Vt)}return typeof Le=="function"?gt:dt}function at(pe){var Le=Pe(pe);return function(Ke,dt){if(gt=Ke.classList)return dt?gt.add(pe):gt.remove(pe);var gt=Ke.getAttribute("class")||"";dt?(Le.lastIndex=0,Le.test(gt)||Ke.setAttribute("class",Ae(gt+" "+pe))):Ke.setAttribute("class",Ae(gt.replace(Le," ")))}}Q.style=function(pe,Le,Ke){var dt=arguments.length;if(dt<3){if(typeof pe!="string"){dt<2&&(Le="");for(Ke in pe)this.each(tt(Ke,pe[Ke],Le));return this}if(dt<2){var gt=this.node();return t(gt).getComputedStyle(gt,null).getPropertyValue(pe)}Ke=""}return this.each(tt(pe,Le,Ke))};function tt(pe,Le,Ke){function dt(){this.style.removeProperty(pe)}function gt(){this.style.setProperty(pe,Le,Ke)}function Tt(){var Vt=Le.apply(this,arguments);Vt==null?this.style.removeProperty(pe):this.style.setProperty(pe,Vt,Ke)}return Le==null?dt:typeof Le=="function"?Tt:gt}Q.property=function(pe,Le){if(arguments.length<2){if(typeof pe=="string")return this.node()[pe];for(Le in pe)this.each(Je(Le,pe[Le]));return this}return this.each(Je(pe,Le))};function Je(pe,Le){function Ke(){delete this[pe]}function dt(){this[pe]=Le}function gt(){var Tt=Le.apply(this,arguments);Tt==null?delete this[pe]:this[pe]=Tt}return Le==null?Ke:typeof Le=="function"?gt:dt}Q.text=function(pe){return arguments.length?this.each(typeof pe=="function"?function(){var Le=pe.apply(this,arguments);this.textContent=Le??""}:pe==null?function(){this.textContent=""}:function(){this.textContent=pe}):this.node().textContent},Q.html=function(pe){return arguments.length?this.each(typeof pe=="function"?function(){var Le=pe.apply(this,arguments);this.innerHTML=Le??""}:pe==null?function(){this.innerHTML=""}:function(){this.innerHTML=pe}):this.node().innerHTML},Q.append=function(pe){return pe=Ze(pe),this.select(function(){return this.appendChild(pe.apply(this,arguments))})};function Ze(pe){function Le(){var dt=this.ownerDocument,gt=this.namespaceURI;return gt===ae&&dt.documentElement.namespaceURI===ae?dt.createElement(pe):dt.createElementNS(gt,pe)}function Ke(){return this.ownerDocument.createElementNS(pe.space,pe.local)}return typeof pe=="function"?pe:(pe=h.ns.qualify(pe)).local?Ke:Le}Q.insert=function(pe,Le){return pe=Ze(pe),Le=V(Le),this.select(function(){return this.insertBefore(pe.apply(this,arguments),Le.apply(this,arguments)||null)})},Q.remove=function(){return this.each(Me)};function Me(){var pe=this.parentNode;pe&&pe.removeChild(this)}Q.data=function(pe,Le){var Ke=-1,dt=this.length,gt,Tt;if(!arguments.length){for(pe=new Array(dt=(gt=this[0]).length);++Ke<dt;)(Tt=gt[Ke])&&(pe[Ke]=Tt.__data__);return pe}function Vt(kr,Zr){var la,ca=kr.length,on=Zr.length,pa=Math.min(ca,on),Pa=new Array(on),Na=new Array(on),an=new Array(ca),ln,Ba;if(Le){var Dn=new S,oi=new Array(ca),Kn;for(la=-1;++la<ca;)(ln=kr[la])&&(Dn.has(Kn=Le.call(ln,ln.__data__,la))?an[la]=ln:Dn.set(Kn,ln),oi[la]=Kn);for(la=-1;++la<on;)(ln=Dn.get(Kn=Le.call(Zr,Ba=Zr[la],la)))?ln!==!0&&(Pa[la]=ln,ln.__data__=Ba):Na[la]=we(Ba),Dn.set(Kn,!0);for(la=-1;++la<ca;)la in oi&&Dn.get(oi[la])!==!0&&(an[la]=kr[la])}else{for(la=-1;++la<pa;)ln=kr[la],Ba=Zr[la],ln?(ln.__data__=Ba,Pa[la]=ln):Na[la]=we(Ba);for(;la<on;++la)Na[la]=we(Zr[la]);for(;la<ca;++la)an[la]=kr[la]}Na.update=Pa,Na.parentNode=Pa.parentNode=an.parentNode=kr.parentNode,jt.push(Na),sr.push(Pa),Pr.push(an)}var jt=nt([]),sr=J([]),Pr=J([]);if(typeof pe=="function")for(;++Ke<dt;)Vt(gt=this[Ke],pe.call(gt,gt.parentNode.__data__,Ke));else for(;++Ke<dt;)Vt(gt=this[Ke],pe);return sr.enter=function(){return jt},sr.exit=function(){return Pr},sr};function we(pe){return{__data__:pe}}Q.datum=function(pe){return arguments.length?this.property("__data__",pe):this.property("__data__")},Q.filter=function(pe){var Le=[],Ke,dt,gt;typeof pe!="function"&&(pe=he(pe));for(var Tt=0,Vt=this.length;Tt<Vt;Tt++){Le.push(Ke=[]),Ke.parentNode=(dt=this[Tt]).parentNode;for(var jt=0,sr=dt.length;jt<sr;jt++)(gt=dt[jt])&&pe.call(gt,gt.__data__,jt,Tt)&&Ke.push(gt)}return J(Le)};function he(pe){return function(){return se(this,pe)}}Q.order=function(){for(var pe=-1,Le=this.length;++pe<Le;)for(var Ke=this[pe],dt=Ke.length-1,gt=Ke[dt],Tt;--dt>=0;)(Tt=Ke[dt])&&(gt&>!==Tt.nextSibling&>.parentNode.insertBefore(Tt,gt),gt=Tt);return this},Q.sort=function(pe){pe=De.apply(this,arguments);for(var Le=-1,Ke=this.length;++Le<Ke;)this[Le].sort(pe);return this.order()};function De(pe){return arguments.length||(pe=s),function(Le,Ke){return Le&&Ke?pe(Le.__data__,Ke.__data__):!Le-!Ke}}Q.each=function(pe){return et(this,function(Le,Ke,dt){pe.call(Le,Le.__data__,Ke,dt)})};function et(pe,Le){for(var Ke=0,dt=pe.length;Ke<dt;Ke++)for(var gt=pe[Ke],Tt=0,Vt=gt.length,jt;Tt<Vt;Tt++)(jt=gt[Tt])&&Le(jt,Tt,Ke);return pe}Q.call=function(pe){var Le=A(arguments);return pe.apply(Le[0]=this,Le),this},Q.empty=function(){return!this.node()},Q.node=function(){for(var pe=0,Le=this.length;pe<Le;pe++)for(var Ke=this[pe],dt=0,gt=Ke.length;dt<gt;dt++){var Tt=Ke[dt];if(Tt)return Tt}return null},Q.size=function(){var pe=0;return et(this,function(){++pe}),pe};function nt(pe){return q(pe,$e),pe}var $e=[];h.selection.enter=nt,h.selection.enter.prototype=$e,$e.append=Q.append,$e.empty=Q.empty,$e.node=Q.node,$e.call=Q.call,$e.size=Q.size,$e.select=function(pe){for(var Le=[],Ke,dt,gt,Tt,Vt,jt=-1,sr=this.length;++jt<sr;){gt=(Tt=this[jt]).update,Le.push(Ke=[]),Ke.parentNode=Tt.parentNode;for(var Pr=-1,kr=Tt.length;++Pr<kr;)(Vt=Tt[Pr])?(Ke.push(gt[Pr]=dt=pe.call(Tt.parentNode,Vt.__data__,Pr,jt)),dt.__data__=Vt.__data__):Ke.push(null)}return J(Le)},$e.insert=function(pe,Le){return arguments.length<2&&(Le=Et(this)),Q.insert.call(this,pe,Le)};function Et(pe){var Le,Ke;return function(dt,gt,Tt){var Vt=pe[Tt].update,jt=Vt.length,sr;for(Tt!=Ke&&(Ke=Tt,Le=0),gt>=Le&&(Le=gt+1);!(sr=Vt[Le])&&++Le<jt;);return sr}}h.select=function(pe){var Le;return typeof pe=="string"?(Le=[ee(pe,E)],Le.parentNode=E.documentElement):(Le=[pe],Le.parentNode=e(pe)),J([Le])},h.selectAll=function(pe){var Le;return typeof pe=="string"?(Le=A(Z(pe,E)),Le.parentNode=E.documentElement):(Le=A(pe),Le.parentNode=null),J([Le])},Q.on=function(pe,Le,Ke){var dt=arguments.length;if(dt<3){if(typeof pe!="string"){dt<2&&(Le=!1);for(Ke in pe)this.each(kt(Ke,pe[Ke],Le));return this}if(dt<2)return(dt=this.node()["__on"+pe])&&dt._;Ke=!1}return this.each(kt(pe,Le,Ke))};function kt(pe,Le,Ke){var dt="__on"+pe,gt=pe.indexOf("."),Tt=Yt;gt>0&&(pe=pe.slice(0,gt));var Vt=Ut.get(pe);Vt&&(pe=Vt,Tt=vr);function jt(){var kr=this[dt];kr&&(this.removeEventListener(pe,kr,kr.$),delete this[dt])}function sr(){var kr=Tt(Le,A(arguments));jt.call(this),this.addEventListener(pe,this[dt]=kr,kr.$=Ke),kr._=Le}function Pr(){var kr=new RegExp("^__on([^.]+)"+h.requote(pe)+"$"),Zr;for(var la in this)if(Zr=la.match(kr)){var ca=this[la];this.removeEventListener(Zr[1],ca,ca.$),delete this[la]}}return gt?Le?sr:jt:Le?N:Pr}var Ut=h.map({mouseenter:"mouseover",mouseleave:"mouseout"});E&&Ut.forEach(function(pe){"on"+pe in E&&Ut.remove(pe)});function Yt(pe,Le){return function(Ke){var dt=h.event;h.event=Ke,Le[0]=this.__data__;try{pe.apply(this,Le)}finally{h.event=dt}}}function vr(pe,Le){var Ke=Yt(pe,Le);return function(dt){var gt=this,Tt=dt.relatedTarget;(!Tt||Tt!==gt&&!(Tt.compareDocumentPosition(gt)&8))&&Ke.call(gt,dt)}}var hr,Rr=0;function dr(pe){var Le=".dragsuppress-"+ ++Rr,Ke="click"+Le,dt=h.select(t(pe)).on("touchmove"+Le,te).on("dragstart"+Le,te).on("selectstart"+Le,te);if(hr==null&&(hr="onselectstart"in pe?!1:O(pe.style,"userSelect")),hr){var gt=e(pe).style,Tt=gt[hr];gt[hr]="none"}return function(Vt){if(dt.on(Le,null),hr&&(gt[hr]=Tt),Vt){var jt=function(){dt.on(Ke,null)};dt.on(Ke,function(){te(),jt()},!0),setTimeout(jt,0)}}}h.mouse=function(pe){return mt(pe,ue())};var wr=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;function mt(pe,Le){Le.changedTouches&&(Le=Le.changedTouches[0]);var Ke=pe.ownerSVGElement||pe;if(Ke.createSVGPoint){var dt=Ke.createSVGPoint();if(wr<0){var gt=t(pe);if(gt.scrollX||gt.scrollY){Ke=h.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important");var Tt=Ke[0][0].getScreenCTM();wr=!(Tt.f||Tt.e),Ke.remove()}}return wr?(dt.x=Le.pageX,dt.y=Le.pageY):(dt.x=Le.clientX,dt.y=Le.clientY),dt=dt.matrixTransform(pe.getScreenCTM().inverse()),[dt.x,dt.y]}var Vt=pe.getBoundingClientRect();return[Le.clientX-Vt.left-pe.clientLeft,Le.clientY-Vt.top-pe.clientTop]}h.touch=function(pe,Le,Ke){if(arguments.length<3&&(Ke=Le,Le=ue().changedTouches),Le){for(var dt=0,gt=Le.length,Tt;dt<gt;++dt)if((Tt=Le[dt]).identifier===Ke)return mt(pe,Tt)}},h.behavior.drag=function(){var pe=ie(gt,"drag","dragstart","dragend"),Le=null,Ke=Tt(N,h.mouse,t,"mousemove","mouseup"),dt=Tt(Fe,h.touch,F,"touchmove","touchend");function gt(){this.on("mousedown.drag",Ke).on("touchstart.drag",dt)}function Tt(Vt,jt,sr,Pr,kr){return function(){var Zr=this,la=h.event.target.correspondingElement||h.event.target,ca=Zr.parentNode,on=pe.of(Zr,arguments),pa=0,Pa=Vt(),Na=".drag"+(Pa==null?"":"-"+Pa),an,ln=h.select(sr(la)).on(Pr+Na,oi).on(kr+Na,Kn),Ba=dr(la),Dn=jt(ca,Pa);Le?(an=Le.apply(Zr,arguments),an=[an.x-Dn[0],an.y-Dn[1]]):an=[0,0],on({type:"dragstart"});function oi(){var ni=jt(ca,Pa),Ai,Ci;ni&&(Ai=ni[0]-Dn[0],Ci=ni[1]-Dn[1],pa|=Ai|Ci,Dn=ni,on({type:"drag",x:ni[0]+an[0],y:ni[1]+an[1],dx:Ai,dy:Ci}))}function Kn(){jt(ca,Pa)&&(ln.on(Pr+Na,null).on(kr+Na,null),Ba(pa),on({type:"dragend"}))}}}return gt.origin=function(Vt){return arguments.length?(Le=Vt,gt):Le},h.rebind(gt,pe,"on")};function Fe(){return h.event.changedTouches[0].identifier}h.touches=function(pe,Le){return arguments.length<2&&(Le=ue().touches),Le?A(Le).map(function(Ke){var dt=mt(pe,Ke);return dt.identifier=Ke.identifier,dt}):[]};var We=1e-6,Oe=We*We,de=Math.PI,ye=2*de,be=ye-We,Ie=de/2,Xe=de/180,ht=180/de;function bt(pe,Le,Ke){return(Le[0]-pe[0])*(Ke[1]-pe[1])-(Le[1]-pe[1])*(Ke[0]-pe[0])}function Ct(pe){return pe>1?Ie:pe<-1?-Ie:Math.asin(pe)}function Zt(pe){return((pe=Math.exp(pe))-1/pe)/2}function Wt(pe){return((pe=Math.exp(pe))+1/pe)/2}function rr(pe){return((pe=Math.exp(2*pe))-1)/(pe+1)}var Jt=Math.SQRT2,yr=2,ia=4;h.interpolateZoom=function(pe,Le){var Ke=pe[0],dt=pe[1],gt=pe[2],Tt=Le[0],Vt=Le[1],jt=Le[2],sr=Tt-Ke,Pr=Vt-dt,kr=sr*sr+Pr*Pr,Zr,la;if(kr<Oe)la=Math.log(jt/gt)/Jt,Zr=function(an){return[Ke+an*sr,dt+an*Pr,gt*Math.exp(Jt*an*la)]};else{var ca=Math.sqrt(kr),on=(jt*jt-gt*gt+ia*kr)/(2*gt*yr*ca),pa=(jt*jt-gt*gt-ia*kr)/(2*jt*yr*ca),Pa=Math.log(Math.sqrt(on*on+1)-on),Na=Math.log(Math.sqrt(pa*pa+1)-pa);la=(Na-Pa)/Jt,Zr=function(an){var ln=an*la,Ba=Wt(Pa),Dn=gt/(yr*ca)*(Ba*rr(Jt*ln+Pa)-Zt(Pa));return[Ke+Dn*sr,dt+Dn*Pr,gt*Ba/Wt(Jt*ln+Pa)]}}return Zr.duration=la*1e3,Zr},h.behavior.zoom=function(){var pe={x:0,y:0,k:1},Le,Ke,dt,gt=[960,500],Tt=Ia,Vt=250,jt=0,sr="mousedown.zoom",Pr="mousemove.zoom",kr="mouseup.zoom",Zr,la="touchstart.zoom",ca,on=ie(ln,"zoomstart","zoom","zoomend"),pa,Pa,Na,an;Aa||(Aa="onwheel"in E?(La=function(){return-h.event.deltaY*(h.event.deltaMode?120:1)},"wheel"):"onmousewheel"in E?(La=function(){return h.event.wheelDelta},"mousewheel"):(La=function(){return-h.event.detail},"MozMousePixelScroll"));function ln(gi){gi.on(sr,co).on(Aa+".zoom",_l).on("dblclick.zoom",Gs).on(la,es)}ln.event=function(gi){gi.each(function(){var Ro=on.of(this,arguments),Ko=pe;Mi?h.select(this).transition().each("start.zoom",function(){pe=this.__chart__||{x:0,y:0,k:1},Ci(Ro)}).tween("zoom:zoom",function(){var Ns=gt[0],ks=gt[1],ru=Ke?Ke[0]:Ns/2,_s=Ke?Ke[1]:ks/2,Us=h.interpolateZoom([(ru-pe.x)/pe.k,(_s-pe.y)/pe.k,Ns/pe.k],[(ru-Ko.x)/Ko.k,(_s-Ko.y)/Ko.k,Ns/Ko.k]);return function(bu){var pl=Us(bu),lt=Ns/pl[2];this.__chart__=pe={x:ru-pl[0]*lt,y:_s-pl[1]*lt,k:lt},Wo(Ro)}}).each("interrupt.zoom",function(){Ri(Ro)}).each("end.zoom",function(){Ri(Ro)}):(this.__chart__=pe,Ci(Ro),Wo(Ro),Ri(Ro))})},ln.translate=function(gi){return arguments.length?(pe={x:+gi[0],y:+gi[1],k:pe.k},Ai(),ln):[pe.x,pe.y]},ln.scale=function(gi){return arguments.length?(pe={x:pe.x,y:pe.y,k:null},oi(+gi),Ai(),ln):pe.k},ln.scaleExtent=function(gi){return arguments.length?(Tt=gi==null?Ia:[+gi[0],+gi[1]],ln):Tt},ln.center=function(gi){return arguments.length?(dt=gi&&[+gi[0],+gi[1]],ln):dt},ln.size=function(gi){return arguments.length?(gt=gi&&[+gi[0],+gi[1]],ln):gt},ln.duration=function(gi){return arguments.length?(Vt=+gi,ln):Vt},ln.x=function(gi){return arguments.length?(Pa=gi,pa=gi.copy(),pe={x:0,y:0,k:1},ln):Pa},ln.y=function(gi){return arguments.length?(an=gi,Na=gi.copy(),pe={x:0,y:0,k:1},ln):an};function Ba(gi){return[(gi[0]-pe.x)/pe.k,(gi[1]-pe.y)/pe.k]}function Dn(gi){return[gi[0]*pe.k+pe.x,gi[1]*pe.k+pe.y]}function oi(gi){pe.k=Math.max(Tt[0],Math.min(Tt[1],gi))}function Kn(gi,Ro){Ro=Dn(Ro),pe.x+=gi[0]-Ro[0],pe.y+=gi[1]-Ro[1]}function ni(gi,Ro,Ko,Ns){gi.__chart__={x:pe.x,y:pe.y,k:pe.k},oi(Math.pow(2,Ns)),Kn(Ke=Ro,Ko),gi=h.select(gi),Vt>0&&(gi=gi.transition().duration(Vt)),gi.call(ln.event)}function Ai(){Pa&&Pa.domain(pa.range().map(function(gi){return(gi-pe.x)/pe.k}).map(pa.invert)),an&&an.domain(Na.range().map(function(gi){return(gi-pe.y)/pe.k}).map(Na.invert))}function Ci(gi){jt++||gi({type:"zoomstart"})}function Wo(gi){Ai(),gi({type:"zoom",scale:pe.k,translate:[pe.x,pe.y]})}function Ri(gi){--jt||(gi({type:"zoomend"}),Ke=null)}function co(){var gi=this,Ro=on.of(gi,arguments),Ko=0,Ns=h.select(t(gi)).on(Pr,_s).on(kr,Us),ks=Ba(h.mouse(gi)),ru=dr(gi);en.call(gi),Ci(Ro);function _s(){Ko=1,Kn(h.mouse(gi),ks),Wo(Ro)}function Us(){Ns.on(Pr,null).on(kr,null),ru(Ko),Ri(Ro)}}function es(){var gi=this,Ro=on.of(gi,arguments),Ko={},Ns=0,ks,ru=".zoom-"+h.event.changedTouches[0].identifier,_s="touchmove"+ru,Us="touchend"+ru,bu=[],pl=h.select(gi),lt=dr(gi);ur(),Ci(Ro),pl.on(sr,null).on(la,ur);function ir(){var Jr=h.touches(gi);return ks=pe.k,Jr.forEach(function($r){$r.identifier in Ko&&(Ko[$r.identifier]=Ba($r))}),Jr}function ur(){var Jr=h.event.target;h.select(Jr).on(_s,fa).on(Us,Va),bu.push(Jr);for(var $r=h.event.changedTouches,fn=0,un=$r.length;fn<un;++fn)Ko[$r[fn].identifier]=null;var cn=ir(),Tn=Date.now();if(cn.length===1){if(Tn-ca<500){var ei=cn[0];ni(gi,ei,Ko[ei.identifier],Math.floor(Math.log(pe.k)/Math.LN2)+1),te()}ca=Tn}else if(cn.length>1){var ei=cn[0],Vn=cn[1],bn=ei[0]-Vn[0],Za=ei[1]-Vn[1];Ns=bn*bn+Za*Za}}function fa(){var Jr=h.touches(gi),$r,fn,un,cn;en.call(gi);for(var Tn=0,ei=Jr.length;Tn<ei;++Tn,cn=null)if(un=Jr[Tn],cn=Ko[un.identifier]){if(fn)break;$r=un,fn=cn}if(cn){var Vn=(Vn=un[0]-$r[0])*Vn+(Vn=un[1]-$r[1])*Vn,bn=Ns&&Math.sqrt(Vn/Ns);$r=[($r[0]+un[0])/2,($r[1]+un[1])/2],fn=[(fn[0]+cn[0])/2,(fn[1]+cn[1])/2],oi(bn*ks)}ca=null,Kn($r,fn),Wo(Ro)}function Va(){if(h.event.touches.length){for(var Jr=h.event.changedTouches,$r=0,fn=Jr.length;$r<fn;++$r)delete Ko[Jr[$r].identifier];for(var un in Ko)return void ir()}h.selectAll(bu).on(ru,null),pl.on(sr,co).on(la,es),lt(),Ri(Ro)}}function _l(){var gi=on.of(this,arguments);Zr?clearTimeout(Zr):(en.call(this),Le=Ba(Ke=dt||h.mouse(this)),Ci(gi)),Zr=setTimeout(function(){Zr=null,Ri(gi)},50),te(),oi(Math.pow(2,La()*.002)*pe.k),Kn(Ke,Le),Wo(gi)}function Gs(){var gi=h.mouse(this),Ro=Math.log(pe.k)/Math.LN2;ni(this,gi,Ba(gi),h.event.shiftKey?Math.ceil(Ro)-1:Math.floor(Ro)+1)}return h.rebind(ln,on,"on")};var Ia=[0,1/0],La,Aa;h.color=Ga;function Ga(){}Ga.prototype.toString=function(){return this.rgb()+""},h.hsl=ba;function ba(pe,Le,Ke){return this instanceof ba?(this.h=+pe,this.s=+Le,void(this.l=+Ke)):arguments.length<2?pe instanceof ba?new ba(pe.h,pe.s,pe.l):Or(""+pe,jr,ba):new ba(pe,Le,Ke)}var Xa=ba.prototype=new Ga;Xa.brighter=function(pe){return pe=Math.pow(.7,arguments.length?pe:1),new ba(this.h,this.s,this.l/pe)},Xa.darker=function(pe){return pe=Math.pow(.7,arguments.length?pe:1),new ba(this.h,this.s,pe*this.l)},Xa.rgb=function(){return _n(this.h,this.s,this.l)};function _n(pe,Le,Ke){var dt,gt;pe=isNaN(pe)?0:(pe%=360)<0?pe+360:pe,Le=isNaN(Le)||Le<0?0:Le>1?1:Le,Ke=Ke<0?0:Ke>1?1:Ke,gt=Ke<=.5?Ke*(1+Le):Ke+Le-Ke*Le,dt=2*Ke-gt;function Tt(jt){return jt>360?jt-=360:jt<0&&(jt+=360),jt<60?dt+(gt-dt)*jt/60:jt<180?gt:jt<240?dt+(gt-dt)*(240-jt)/60:dt}function Vt(jt){return Math.round(Tt(jt)*255)}return new ot(Vt(pe+120),Vt(pe),Vt(pe-120))}h.hcl=$t;function $t(pe,Le,Ke){return this instanceof $t?(this.h=+pe,this.c=+Le,void(this.l=+Ke)):arguments.length<2?pe instanceof $t?new $t(pe.h,pe.c,pe.l):pe instanceof Ht?Ya(pe.l,pe.a,pe.b):Ya((pe=Dr((pe=h.rgb(pe)).r,pe.g,pe.b)).l,pe.a,pe.b):new $t(pe,Le,Ke)}var zt=$t.prototype=new Ga;zt.brighter=function(pe){return new $t(this.h,this.c,Math.min(100,this.l+Tr*(arguments.length?pe:1)))},zt.darker=function(pe){return new $t(this.h,this.c,Math.max(0,this.l-Tr*(arguments.length?pe:1)))},zt.rgb=function(){return Kt(this.h,this.c,this.l).rgb()};function Kt(pe,Le,Ke){return isNaN(pe)&&(pe=0),isNaN(Le)&&(Le=0),new Ht(Ke,Math.cos(pe*=Xe)*Le,Math.sin(pe)*Le)}h.lab=Ht;function Ht(pe,Le,Ke){return this instanceof Ht?(this.l=+pe,this.a=+Le,void(this.b=+Ke)):arguments.length<2?pe instanceof Ht?new Ht(pe.l,pe.a,pe.b):pe instanceof $t?Kt(pe.h,pe.c,pe.l):Dr((pe=ot(pe)).r,pe.g,pe.b):new Ht(pe,Le,Ke)}var Tr=18,qr=.95047,ha=1,Gr=1.08883,wa=Ht.prototype=new Ga;wa.brighter=function(pe){return new Ht(Math.min(100,this.l+Tr*(arguments.length?pe:1)),this.a,this.b)},wa.darker=function(pe){return new Ht(Math.max(0,this.l-Tr*(arguments.length?pe:1)),this.a,this.b)},wa.rgb=function(){return Da(this.l,this.a,this.b)};function Da(pe,Le,Ke){var dt=(pe+16)/116,gt=dt+Le/500,Tt=dt-Ke/200;return gt=$a(gt)*qr,dt=$a(dt)*ha,Tt=$a(Tt)*Gr,new ot(yt(3.2404542*gt-1.5371385*dt-.4985314*Tt),yt(-.969266*gt+1.8760108*dt+.041556*Tt),yt(.0556434*gt-.2040259*dt+1.0572252*Tt))}function Ya(pe,Le,Ke){return pe>0?new $t(Math.atan2(Ke,Le)*ht,Math.sqrt(Le*Le+Ke*Ke),pe):new $t(NaN,NaN,pe)}function $a(pe){return pe>.206893034?pe*pe*pe:(pe-4/29)/7.787037}function nn(pe){return pe>.008856?Math.pow(pe,1/3):7.787037*pe+4/29}function yt(pe){return Math.round(255*(pe<=.00304?12.92*pe:1.055*Math.pow(pe,1/2.4)-.055))}h.rgb=ot;function ot(pe,Le,Ke){return this instanceof ot?(this.r=~~pe,this.g=~~Le,void(this.b=~~Ke)):arguments.length<2?pe instanceof ot?new ot(pe.r,pe.g,pe.b):Or(""+pe,ot,_n):new ot(pe,Le,Ke)}function Lr(pe){return new ot(pe>>16,pe>>8&255,pe&255)}function Er(pe){return Lr(pe)+""}var Mr=ot.prototype=new Ga;Mr.brighter=function(pe){pe=Math.pow(.7,arguments.length?pe:1);var Le=this.r,Ke=this.g,dt=this.b,gt=30;return!Le&&!Ke&&!dt?new ot(gt,gt,gt):(Le&&Le<gt&&(Le=gt),Ke&&Ke<gt&&(Ke=gt),dt&&dt<gt&&(dt=gt),new ot(Math.min(255,Le/pe),Math.min(255,Ke/pe),Math.min(255,dt/pe)))},Mr.darker=function(pe){return pe=Math.pow(.7,arguments.length?pe:1),new ot(pe*this.r,pe*this.g,pe*this.b)},Mr.hsl=function(){return jr(this.r,this.g,this.b)},Mr.toString=function(){return"#"+br(this.r)+br(this.g)+br(this.b)};function br(pe){return pe<16?"0"+Math.max(0,pe).toString(16):Math.min(255,pe).toString(16)}function Or(pe,Le,Ke){var dt=0,gt=0,Tt=0,Vt,jt,sr;if(Vt=/([a-z]+)\((.*)\)/.exec(pe=pe.toLowerCase()),Vt)switch(jt=Vt[2].split(","),Vt[1]){case"hsl":return Ke(parseFloat(jt[0]),parseFloat(jt[1])/100,parseFloat(jt[2])/100);case"rgb":return Le(na(jt[0]),na(jt[1]),na(jt[2]))}return(sr=ta.get(pe))?Le(sr.r,sr.g,sr.b):(pe!=null&&pe.charAt(0)==="#"&&!isNaN(sr=parseInt(pe.slice(1),16))&&(pe.length===4?(dt=(sr&3840)>>4,dt=dt>>4|dt,gt=sr&240,gt=gt>>4|gt,Tt=sr&15,Tt=Tt<<4|Tt):pe.length===7&&(dt=(sr&16711680)>>16,gt=(sr&65280)>>8,Tt=sr&255)),Le(dt,gt,Tt))}function jr(pe,Le,Ke){var dt=Math.min(pe/=255,Le/=255,Ke/=255),gt=Math.max(pe,Le,Ke),Tt=gt-dt,Vt,jt,sr=(gt+dt)/2;return Tt?(jt=sr<.5?Tt/(gt+dt):Tt/(2-gt-dt),pe==gt?Vt=(Le-Ke)/Tt+(Le<Ke?6:0):Le==gt?Vt=(Ke-pe)/Tt+2:Vt=(pe-Le)/Tt+4,Vt*=60):(Vt=NaN,jt=sr>0&&sr<1?0:Vt),new ba(Vt,jt,sr)}function Dr(pe,Le,Ke){pe=Hr(pe),Le=Hr(Le),Ke=Hr(Ke);var dt=nn((.4124564*pe+.3575761*Le+.1804375*Ke)/qr),gt=nn((.2126729*pe+.7151522*Le+.072175*Ke)/ha),Tt=nn((.0193339*pe+.119192*Le+.9503041*Ke)/Gr);return Ht(116*gt-16,500*(dt-gt),200*(gt-Tt))}function Hr(pe){return(pe/=255)<=.04045?pe/12.92:Math.pow((pe+.055)/1.055,2.4)}function na(pe){var Le=parseFloat(pe);return pe.charAt(pe.length-1)==="%"?Math.round(Le*2.55):Le}var ta=h.map({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});ta.forEach(function(pe,Le){ta.set(pe,Lr(Le))});function At(pe){return typeof pe=="function"?pe:function(){return pe}}h.functor=At,h.xhr=or(F);function or(pe){return function(Le,Ke,dt){return arguments.length===2&&typeof Ke=="function"&&(dt=Ke,Ke=null),Ar(Le,Ke,pe,dt)}}function Ar(pe,Le,Ke,dt){var gt={},Tt=h.dispatch("beforesend","progress","load","error"),Vt={},jt=new XMLHttpRequest,sr=null;self.XDomainRequest&&!("withCredentials"in jt)&&/^(http(s)?:)?\/\//.test(pe)&&(jt=new XDomainRequest),"onload"in jt?jt.onload=jt.onerror=Pr:jt.onreadystatechange=function(){jt.readyState>3&&Pr()};function Pr(){var kr=jt.status,Zr;if(!kr&&ga(jt)||kr>=200&&kr<300||kr===304){try{Zr=Ke.call(gt,jt)}catch(la){Tt.error.call(gt,la);return}Tt.load.call(gt,Zr)}else Tt.error.call(gt,jt)}return jt.onprogress=function(kr){var Zr=h.event;h.event=kr;try{Tt.progress.call(gt,jt)}finally{h.event=Zr}},gt.header=function(kr,Zr){return kr=(kr+"").toLowerCase(),arguments.length<2?Vt[kr]:(Zr==null?delete Vt[kr]:Vt[kr]=Zr+"",gt)},gt.mimeType=function(kr){return arguments.length?(Le=kr==null?null:kr+"",gt):Le},gt.responseType=function(kr){return arguments.length?(sr=kr,gt):sr},gt.response=function(kr){return Ke=kr,gt},["get","post"].forEach(function(kr){gt[kr]=function(){return gt.send.apply(gt,[kr].concat(A(arguments)))}}),gt.send=function(kr,Zr,la){if(arguments.length===2&&typeof Zr=="function"&&(la=Zr,Zr=null),jt.open(kr,pe,!0),Le!=null&&!("accept"in Vt)&&(Vt.accept=Le+",*/*"),jt.setRequestHeader)for(var ca in Vt)jt.setRequestHeader(ca,Vt[ca]);return Le!=null&&jt.overrideMimeType&&jt.overrideMimeType(Le),sr!=null&&(jt.responseType=sr),la!=null&>.on("error",la).on("load",function(on){la(null,on)}),Tt.beforesend.call(gt,jt),jt.send(Zr??null),gt},gt.abort=function(){return jt.abort(),gt},h.rebind(gt,Tt,"on"),dt==null?gt:gt.get(oa(dt))}function oa(pe){return pe.length===1?function(Le,Ke){pe(Le==null?Ke:null)}:pe}function ga(pe){var Le=pe.responseType;return Le&&Le!=="text"?pe.response:pe.responseText}h.dsv=function(pe,Le){var Ke=new RegExp('["'+pe+`
|
|
2
2
|
]`),dt=pe.charCodeAt(0);function gt(Pr,kr,Zr){arguments.length<3&&(Zr=kr,kr=null);var la=Ar(Pr,Le,kr==null?Tt:Vt(kr),Zr);return la.row=function(ca){return arguments.length?la.response((kr=ca)==null?Tt:Vt(ca)):kr},la}function Tt(Pr){return gt.parse(Pr.responseText)}function Vt(Pr){return function(kr){return gt.parse(kr.responseText,Pr)}}gt.parse=function(Pr,kr){var Zr;return gt.parseRows(Pr,function(la,ca){if(Zr)return Zr(la,ca-1);var on=function(pa){for(var Pa={},Na=la.length,an=0;an<Na;++an)Pa[la[an]]=pa[an];return Pa};Zr=kr?function(pa,Pa){return kr(on(pa),Pa)}:on})},gt.parseRows=function(Pr,kr){var Zr={},la={},ca=[],on=Pr.length,pa=0,Pa=0,Na,an;function ln(){if(pa>=on)return la;if(an)return an=!1,Zr;var Dn=pa;if(Pr.charCodeAt(Dn)===34){for(var oi=Dn;oi++<on;)if(Pr.charCodeAt(oi)===34){if(Pr.charCodeAt(oi+1)!==34)break;++oi}pa=oi+2;var Kn=Pr.charCodeAt(oi+1);return Kn===13?(an=!0,Pr.charCodeAt(oi+2)===10&&++pa):Kn===10&&(an=!0),Pr.slice(Dn+1,oi).replace(/""/g,'"')}for(;pa<on;){var Kn=Pr.charCodeAt(pa++),ni=1;if(Kn===10)an=!0;else if(Kn===13)an=!0,Pr.charCodeAt(pa)===10&&(++pa,++ni);else if(Kn!==dt)continue;return Pr.slice(Dn,pa-ni)}return Pr.slice(Dn)}for(;(Na=ln())!==la;){for(var Ba=[];Na!==Zr&&Na!==la;)Ba.push(Na),Na=ln();kr&&(Ba=kr(Ba,Pa++))==null||ca.push(Ba)}return ca},gt.format=function(Pr){if(Array.isArray(Pr[0]))return gt.formatRows(Pr);var kr=new z,Zr=[];return Pr.forEach(function(la){for(var ca in la)kr.has(ca)||Zr.push(kr.add(ca))}),[Zr.map(sr).join(pe)].concat(Pr.map(function(la){return Zr.map(function(ca){return sr(la[ca])}).join(pe)})).join(`
|
|
3
3
|
`)},gt.formatRows=function(Pr){return Pr.map(jt).join(`
|
|
4
4
|
`)};function jt(Pr){return Pr.map(sr).join(pe)}function sr(Pr){return Ke.test(Pr)?'"'+Pr.replace(/\"/g,'""')+'"':Pr}return gt},h.csv=h.dsv(",","text/csv"),h.tsv=h.dsv(" ","text/tab-separated-values");var Sa,za,ra,Ta,On=this[O(this,"requestAnimationFrame")]||function(pe){setTimeout(pe,17)};h.timer=function(){mn.apply(this,arguments)};function mn(pe,Le,Ke){var dt=arguments.length;dt<2&&(Le=0),dt<3&&(Ke=Date.now());var gt=Ke+Le,Tt={c:pe,t:gt,n:null};return za?za.n=Tt:Sa=Tt,za=Tt,ra||(Ta=clearTimeout(Ta),ra=1,On(Qn)),Tt}function Qn(){var pe=fi(),Le=yi()-pe;Le>24?(isFinite(Le)&&(clearTimeout(Ta),Ta=setTimeout(Qn,Le)),ra=0):(ra=1,On(Qn))}h.timer.flush=function(){fi(),yi()};function fi(){for(var pe=Date.now(),Le=Sa;Le;)pe>=Le.t&&Le.c(pe-Le.t)&&(Le.c=null),Le=Le.n;return pe}function yi(){for(var pe,Le=Sa,Ke=1/0;Le;)Le.c?(Le.t<Ke&&(Ke=Le.t),Le=(pe=Le).n):Le=pe?pe.n=Le.n:Sa=Le.n;return za=pe,Ke}h.round=function(pe,Le){return Le?Math.round(pe*(Le=Math.pow(10,Le)))/Le:Math.round(pe)},h.geom={};function pi(pe){return pe[0]}function Pi(pe){return pe[1]}h.geom.hull=function(pe){var Le=pi,Ke=Pi;if(arguments.length)return dt(pe);function dt(gt){if(gt.length<3)return[];var Tt=At(Le),Vt=At(Ke),jt,sr=gt.length,Pr=[],kr=[];for(jt=0;jt<sr;jt++)Pr.push([+Tt.call(this,gt[jt],jt),+Vt.call(this,gt[jt],jt),jt]);for(Pr.sort(hi),jt=0;jt<sr;jt++)kr.push([Pr[jt][0],-Pr[jt][1]]);var Zr=Ui(Pr),la=Ui(kr),ca=la[0]===Zr[0],on=la[la.length-1]===Zr[Zr.length-1],pa=[];for(jt=Zr.length-1;jt>=0;--jt)pa.push(gt[Pr[Zr[jt]][2]]);for(jt=+ca;jt<la.length-on;++jt)pa.push(gt[Pr[la[jt]][2]]);return pa}return dt.x=function(gt){return arguments.length?(Le=gt,dt):Le},dt.y=function(gt){return arguments.length?(Ke=gt,dt):Ke},dt};function Ui(pe){for(var Le=pe.length,Ke=[0,1],dt=2,gt=2;gt<Le;gt++){for(;dt>1&&bt(pe[Ke[dt-2]],pe[Ke[dt-1]],pe[gt])<=0;)--dt;Ke[dt++]=gt}return Ke.slice(0,dt)}function hi(pe,Le){return pe[0]-Le[0]||pe[1]-Le[1]}h.geom.polygon=function(pe){return q(pe,wi),pe};var wi=h.geom.polygon.prototype=[];wi.area=function(){for(var pe=-1,Le=this.length,Ke,dt=this[Le-1],gt=0;++pe<Le;)Ke=dt,dt=this[pe],gt+=Ke[1]*dt[0]-Ke[0]*dt[1];return gt*.5},wi.centroid=function(pe){var Le=-1,Ke=this.length,dt=0,gt=0,Tt,Vt=this[Ke-1],jt;for(arguments.length||(pe=-1/(6*this.area()));++Le<Ke;)Tt=Vt,Vt=this[Le],jt=Tt[0]*Vt[1]-Vt[0]*Tt[1],dt+=(Tt[0]+Vt[0])*jt,gt+=(Tt[1]+Vt[1])*jt;return[dt*pe,gt*pe]},wi.clip=function(pe){for(var Le,Ke=xs(pe),dt=-1,gt=this.length-xs(this),Tt,Vt,jt=this[gt-1],sr,Pr,kr;++dt<gt;){for(Le=pe.slice(),pe.length=0,sr=this[dt],Pr=Le[(Vt=Le.length-Ke)-1],Tt=-1;++Tt<Vt;)kr=Le[Tt],po(kr,jt,sr)?(po(Pr,jt,sr)||pe.push(Vo(Pr,kr,jt,sr)),pe.push(kr)):po(Pr,jt,sr)&&pe.push(Vo(Pr,kr,jt,sr)),Pr=kr;Ke&&pe.push(pe[0]),jt=sr}return pe};function po(pe,Le,Ke){return(Ke[0]-Le[0])*(pe[1]-Le[1])<(Ke[1]-Le[1])*(pe[0]-Le[0])}function Vo(pe,Le,Ke,dt){var gt=pe[0],Tt=Ke[0],Vt=Le[0]-gt,jt=dt[0]-Tt,sr=pe[1],Pr=Ke[1],kr=Le[1]-sr,Zr=dt[1]-Pr,la=(jt*(sr-Pr)-Zr*(gt-Tt))/(Zr*Vt-jt*kr);return[gt+la*Vt,sr+la*kr]}function xs(pe){var Le=pe[0],Ke=pe[pe.length-1];return!(Le[0]-Ke[0]||Le[1]-Ke[1])}var ao,ki,Di,To=[],Co,Ao,ji=[];function io(){Qs(this),this.edge=this.site=this.circle=null}function ps(pe){var Le=To.pop()||new io;return Le.site=pe,Le}function Rs(pe){ns(pe),Di.remove(pe),To.push(pe),Qs(pe)}function bs(pe){var Le=pe.circle,Ke=Le.x,dt=Le.cy,gt={x:Ke,y:dt},Tt=pe.P,Vt=pe.N,jt=[pe];Rs(pe);for(var sr=Tt;sr.circle&&l(Ke-sr.circle.x)<We&&l(dt-sr.circle.cy)<We;)Tt=sr.P,jt.unshift(sr),Rs(sr),sr=Tt;jt.unshift(sr),ns(sr);for(var Pr=Vt;Pr.circle&&l(Ke-Pr.circle.x)<We&&l(dt-Pr.circle.cy)<We;)Vt=Pr.N,jt.push(Pr),Rs(Pr),Pr=Vt;jt.push(Pr),ns(Pr);var kr=jt.length,Zr;for(Zr=1;Zr<kr;++Zr)Pr=jt[Zr],sr=jt[Zr-1],zi(Pr.edge,sr.site,Pr.site,gt);sr=jt[0],Pr=jt[kr-1],Pr.edge=Jo(sr.site,Pr.site,null,gt),qo(sr),qo(Pr)}function Lo(pe){for(var Le=pe.x,Ke=pe.y,dt,gt,Tt,Vt,jt=Di._;jt;)if(Tt=Cn(jt,Ke)-Le,Tt>We)jt=jt.L;else if(Vt=Le-vi(jt,Ke),Vt>We){if(!jt.R){dt=jt;break}jt=jt.R}else{Tt>-We?(dt=jt.P,gt=jt):Vt>-We?(dt=jt,gt=jt.N):dt=gt=jt;break}var sr=ps(pe);if(Di.insert(dt,sr),!(!dt&&!gt)){if(dt===gt){ns(dt),gt=ps(dt.site),Di.insert(sr,gt),sr.edge=gt.edge=Jo(dt.site,sr.site),qo(dt),qo(gt);return}if(!gt){sr.edge=Jo(dt.site,sr.site);return}ns(dt),ns(gt);var Pr=dt.site,kr=Pr.x,Zr=Pr.y,la=pe.x-kr,ca=pe.y-Zr,on=gt.site,pa=on.x-kr,Pa=on.y-Zr,Na=2*(la*Pa-ca*pa),an=la*la+ca*ca,ln=pa*pa+Pa*Pa,Ba={x:(Pa*an-ca*ln)/Na+kr,y:(la*ln-pa*an)/Na+Zr};zi(gt.edge,Pr,on,Ba),sr.edge=Jo(Pr,pe,null,Ba),gt.edge=Jo(pe,on,null,Ba),qo(dt),qo(gt)}}function Cn(pe,Le){var Ke=pe.site,dt=Ke.x,gt=Ke.y,Tt=gt-Le;if(!Tt)return dt;var Vt=pe.P;if(!Vt)return-1/0;Ke=Vt.site;var jt=Ke.x,sr=Ke.y,Pr=sr-Le;if(!Pr)return jt;var kr=jt-dt,Zr=1/Tt-1/Pr,la=kr/Pr;return Zr?(-la+Math.sqrt(la*la-2*Zr*(kr*kr/(-2*Pr)-sr+Pr/2+gt-Tt/2)))/Zr+dt:(dt+jt)/2}function vi(pe,Le){var Ke=pe.N;if(Ke)return Cn(Ke,Le);var dt=pe.site;return dt.y===Le?dt.x:1/0}function js(pe){this.site=pe,this.edges=[]}js.prototype.prepare=function(){for(var pe=this.edges,Le=pe.length,Ke;Le--;)Ke=pe[Le].edge,(!Ke.b||!Ke.a)&&pe.splice(Le,1);return pe.sort(Gi),pe.length};function Ls(pe){for(var Le=pe[0][0],Ke=pe[1][0],dt=pe[0][1],gt=pe[1][1],Tt,Vt,jt,sr,Pr=ki,kr=Pr.length,Zr,la,ca,on,pa,Pa;kr--;)if(Zr=Pr[kr],!(!Zr||!Zr.prepare()))for(ca=Zr.edges,on=ca.length,la=0;la<on;)Pa=ca[la].end(),jt=Pa.x,sr=Pa.y,pa=ca[++la%on].start(),Tt=pa.x,Vt=pa.y,(l(jt-Tt)>We||l(sr-Vt)>We)&&(ca.splice(la,0,new ws(Zs(Zr.site,Pa,l(jt-Le)<We&>-sr>We?{x:Le,y:l(Tt-Le)<We?Vt:gt}:l(sr-gt)<We&&Ke-jt>We?{x:l(Vt-gt)<We?Tt:Ke,y:gt}:l(jt-Ke)<We&&sr-dt>We?{x:Ke,y:l(Tt-Ke)<We?Vt:dt}:l(sr-dt)<We&&jt-Le>We?{x:l(Vt-dt)<We?Tt:Le,y:dt}:null),Zr.site,null)),++on)}function Gi(pe,Le){return Le.angle-pe.angle}function Ws(){Qs(this),this.x=this.y=this.arc=this.site=this.cy=null}function qo(pe){var Le=pe.P,Ke=pe.N;if(!(!Le||!Ke)){var dt=Le.site,gt=pe.site,Tt=Ke.site;if(dt!==Tt){var Vt=gt.x,jt=gt.y,sr=dt.x-Vt,Pr=dt.y-jt,kr=Tt.x-Vt,Pa=Tt.y-jt,Zr=2*(sr*Pa-Pr*kr);if(!(Zr>=-Oe)){var la=sr*sr+Pr*Pr,ca=kr*kr+Pa*Pa,on=(Pa*la-Pr*ca)/Zr,pa=(sr*ca-kr*la)/Zr,Pa=pa+jt,Na=ji.pop()||new Ws;Na.arc=pe,Na.site=gt,Na.x=on+Vt,Na.y=Pa+Math.sqrt(on*on+pa*pa),Na.cy=Pa,pe.circle=Na;for(var an=null,ln=Ao._;ln;)if(Na.y<ln.y||Na.y===ln.y&&Na.x<=ln.x)if(ln.L)ln=ln.L;else{an=ln.P;break}else if(ln.R)ln=ln.R;else{an=ln;break}Ao.insert(an,Na),an||(Co=Na)}}}}function ns(pe){var Le=pe.circle;Le&&(Le.P||(Co=Le.N),Ao.remove(Le),ji.push(Le),Qs(Le),pe.circle=null)}function Xs(pe,Le,Ke,dt){return function(gt){var Tt=gt.a,Vt=gt.b,jt=Tt.x,sr=Tt.y,Pr=Vt.x,kr=Vt.y,Zr=0,la=1,ca=Pr-jt,on=kr-sr,pa;if(pa=pe-jt,!(!ca&&pa>0)){if(pa/=ca,ca<0){if(pa<Zr)return;pa<la&&(la=pa)}else if(ca>0){if(pa>la)return;pa>Zr&&(Zr=pa)}if(pa=Ke-jt,!(!ca&&pa<0)){if(pa/=ca,ca<0){if(pa>la)return;pa>Zr&&(Zr=pa)}else if(ca>0){if(pa<Zr)return;pa<la&&(la=pa)}if(pa=Le-sr,!(!on&&pa>0)){if(pa/=on,on<0){if(pa<Zr)return;pa<la&&(la=pa)}else if(on>0){if(pa>la)return;pa>Zr&&(Zr=pa)}if(pa=dt-sr,!(!on&&pa<0)){if(pa/=on,on<0){if(pa>la)return;pa>Zr&&(Zr=pa)}else if(on>0){if(pa<Zr)return;pa<la&&(la=pa)}return Zr>0&&(gt.a={x:jt+Zr*ca,y:sr+Zr*on}),la<1&&(gt.b={x:jt+la*ca,y:sr+la*on}),gt}}}}}}function di(pe){for(var Le=ao,Ke=Xs(pe[0][0],pe[0][1],pe[1][0],pe[1][1]),dt=Le.length,gt;dt--;)gt=Le[dt],(!uo(gt,pe)||!Ke(gt)||l(gt.a.x-gt.b.x)<We&&l(gt.a.y-gt.b.y)<We)&&(gt.a=gt.b=null,Le.splice(dt,1))}function uo(pe,Le){var Ke=pe.b;if(Ke)return!0;var dt=pe.a,gt=Le[0][0],Tt=Le[1][0],Vt=Le[0][1],jt=Le[1][1],sr=pe.l,Pr=pe.r,kr=sr.x,Zr=sr.y,la=Pr.x,ca=Pr.y,on=(kr+la)/2,pa=(Zr+ca)/2,Pa,Na;if(ca===Zr){if(on<gt||on>=Tt)return;if(kr>la){if(!dt)dt={x:on,y:Vt};else if(dt.y>=jt)return;Ke={x:on,y:jt}}else{if(!dt)dt={x:on,y:jt};else if(dt.y<Vt)return;Ke={x:on,y:Vt}}}else if(Pa=(kr-la)/(ca-Zr),Na=pa-Pa*on,Pa<-1||Pa>1)if(kr>la){if(!dt)dt={x:(Vt-Na)/Pa,y:Vt};else if(dt.y>=jt)return;Ke={x:(jt-Na)/Pa,y:jt}}else{if(!dt)dt={x:(jt-Na)/Pa,y:jt};else if(dt.y<Vt)return;Ke={x:(Vt-Na)/Pa,y:Vt}}else if(Zr<ca){if(!dt)dt={x:gt,y:Pa*gt+Na};else if(dt.x>=Tt)return;Ke={x:Tt,y:Pa*Tt+Na}}else{if(!dt)dt={x:Tt,y:Pa*Tt+Na};else if(dt.x<gt)return;Ke={x:gt,y:Pa*gt+Na}}return pe.a=dt,pe.b=Ke,!0}function Bi(pe,Le){this.l=pe,this.r=Le,this.a=this.b=null}function Jo(pe,Le,Ke,dt){var gt=new Bi(pe,Le);return ao.push(gt),Ke&&zi(gt,pe,Le,Ke),dt&&zi(gt,Le,pe,dt),ki[pe.i].edges.push(new ws(gt,pe,Le)),ki[Le.i].edges.push(new ws(gt,Le,pe)),gt}function Zs(pe,Le,Ke){var dt=new Bi(pe,null);return dt.a=Le,dt.b=Ke,ao.push(dt),dt}function zi(pe,Le,Ke,dt){!pe.a&&!pe.b?(pe.a=dt,pe.l=Le,pe.r=Ke):pe.l===Ke?pe.b=dt:pe.a=dt}function ws(pe,Le,Ke){var dt=pe.a,gt=pe.b;this.edge=pe,this.site=Le,this.angle=Ke?Math.atan2(Ke.y-Le.y,Ke.x-Le.x):pe.l===Le?Math.atan2(gt.x-dt.x,dt.y-gt.y):Math.atan2(dt.x-gt.x,gt.y-dt.y)}ws.prototype={start:function(){return this.edge.l===this.site?this.edge.a:this.edge.b},end:function(){return this.edge.l===this.site?this.edge.b:this.edge.a}};function kl(){this._=null}function Qs(pe){pe.U=pe.C=pe.L=pe.R=pe.P=pe.N=null}kl.prototype={insert:function(pe,Le){var Ke,dt,gt;if(pe){if(Le.P=pe,Le.N=pe.N,pe.N&&(pe.N.P=Le),pe.N=Le,pe.R){for(pe=pe.R;pe.L;)pe=pe.L;pe.L=Le}else pe.R=Le;Ke=pe}else this._?(pe=Ds(this._),Le.P=null,Le.N=pe,pe.P=pe.L=Le,Ke=pe):(Le.P=Le.N=null,this._=Le,Ke=null);for(Le.L=Le.R=null,Le.U=Ke,Le.C=!0,pe=Le;Ke&&Ke.C;)dt=Ke.U,Ke===dt.L?(gt=dt.R,gt&>.C?(Ke.C=gt.C=!1,dt.C=!0,pe=dt):(pe===Ke.R&&(Xl(this,Ke),pe=Ke,Ke=pe.U),Ke.C=!1,dt.C=!0,ul(this,dt))):(gt=dt.L,gt&>.C?(Ke.C=gt.C=!1,dt.C=!0,pe=dt):(pe===Ke.L&&(ul(this,Ke),pe=Ke,Ke=pe.U),Ke.C=!1,dt.C=!0,Xl(this,dt))),Ke=pe.U;this._.C=!1},remove:function(pe){pe.N&&(pe.N.P=pe.P),pe.P&&(pe.P.N=pe.N),pe.N=pe.P=null;var Le=pe.U,Ke,dt=pe.L,gt=pe.R,Tt,Vt;if(dt?gt?Tt=Ds(gt):Tt=dt:Tt=gt,Le?Le.L===pe?Le.L=Tt:Le.R=Tt:this._=Tt,dt&>?(Vt=Tt.C,Tt.C=pe.C,Tt.L=dt,dt.U=Tt,Tt!==gt?(Le=Tt.U,Tt.U=pe.U,pe=Tt.R,Le.L=pe,Tt.R=gt,gt.U=Tt):(Tt.U=Le,Le=Tt,pe=Tt.R)):(Vt=pe.C,pe=Tt),pe&&(pe.U=Le),!Vt){if(pe&&pe.C){pe.C=!1;return}do{if(pe===this._)break;if(pe===Le.L){if(Ke=Le.R,Ke.C&&(Ke.C=!1,Le.C=!0,Xl(this,Le),Ke=Le.R),Ke.L&&Ke.L.C||Ke.R&&Ke.R.C){(!Ke.R||!Ke.R.C)&&(Ke.L.C=!1,Ke.C=!0,ul(this,Ke),Ke=Le.R),Ke.C=Le.C,Le.C=Ke.R.C=!1,Xl(this,Le),pe=this._;break}}else if(Ke=Le.L,Ke.C&&(Ke.C=!1,Le.C=!0,ul(this,Le),Ke=Le.L),Ke.L&&Ke.L.C||Ke.R&&Ke.R.C){(!Ke.L||!Ke.L.C)&&(Ke.R.C=!1,Ke.C=!0,Xl(this,Ke),Ke=Le.L),Ke.C=Le.C,Le.C=Ke.L.C=!1,ul(this,Le),pe=this._;break}Ke.C=!0,pe=Le,Le=Le.U}while(!pe.C);pe&&(pe.C=!1)}}};function Xl(pe,Le){var Ke=Le,dt=Le.R,gt=Ke.U;gt?gt.L===Ke?gt.L=dt:gt.R=dt:pe._=dt,dt.U=gt,Ke.U=dt,Ke.R=dt.L,Ke.R&&(Ke.R.U=Ke),dt.L=Ke}function ul(pe,Le){var Ke=Le,dt=Le.L,gt=Ke.U;gt?gt.L===Ke?gt.L=dt:gt.R=dt:pe._=dt,dt.U=gt,Ke.U=dt,Ke.L=dt.R,Ke.L&&(Ke.L.U=Ke),dt.R=Ke}function Ds(pe){for(;pe.L;)pe=pe.L;return pe}function Zl(pe,Le){var Ke=pe.sort(Xu).pop(),dt,gt,Tt;for(ao=[],ki=new Array(pe.length),Di=new kl,Ao=new kl;;)if(Tt=Co,Ke&&(!Tt||Ke.y<Tt.y||Ke.y===Tt.y&&Ke.x<Tt.x))(Ke.x!==dt||Ke.y!==gt)&&(ki[Ke.i]=new js(Ke),Lo(Ke),dt=Ke.x,gt=Ke.y),Ke=pe.pop();else if(Tt)bs(Tt.arc);else break;Le&&(di(Le),Ls(Le));var Vt={cells:ki,edges:ao};return Di=Ao=ao=ki=null,Vt}function Xu(pe,Le){return Le.y-pe.y||Le.x-pe.x}h.geom.voronoi=function(pe){var Le=pi,Ke=Pi,dt=Le,gt=Ke,Tt=Zu;if(pe)return Vt(pe);function Vt(sr){var Pr=new Array(sr.length),kr=Tt[0][0],Zr=Tt[0][1],la=Tt[1][0],ca=Tt[1][1];return Zl(jt(sr),Tt).cells.forEach(function(on,pa){var Pa=on.edges,Na=on.site,an=Pr[pa]=Pa.length?Pa.map(function(ln){var Ba=ln.start();return[Ba.x,Ba.y]}):Na.x>=kr&&Na.x<=la&&Na.y>=Zr&&Na.y<=ca?[[kr,ca],[la,ca],[la,Zr],[kr,Zr]]:[];an.point=sr[pa]}),Pr}function jt(sr){return sr.map(function(Pr,kr){return{x:Math.round(dt(Pr,kr)/We)*We,y:Math.round(gt(Pr,kr)/We)*We,i:kr}})}return Vt.links=function(sr){return Zl(jt(sr)).edges.filter(function(Pr){return Pr.l&&Pr.r}).map(function(Pr){return{source:sr[Pr.l.i],target:sr[Pr.r.i]}})},Vt.triangles=function(sr){var Pr=[];return Zl(jt(sr)).cells.forEach(function(kr,Zr){for(var la=kr.site,ca=kr.edges.sort(Gi),on=-1,pa=ca.length,Pa,Na=ca[pa-1].edge,an=Na.l===la?Na.r:Na.l;++on<pa;)Pa=an,Na=ca[on].edge,an=Na.l===la?Na.r:Na.l,Zr<Pa.i&&Zr<an.i&&Tu(la,Pa,an)<0&&Pr.push([sr[Zr],sr[Pa.i],sr[an.i]])}),Pr},Vt.x=function(sr){return arguments.length?(dt=At(Le=sr),Vt):Le},Vt.y=function(sr){return arguments.length?(gt=At(Ke=sr),Vt):Ke},Vt.clipExtent=function(sr){return arguments.length?(Tt=sr??Zu,Vt):Tt===Zu?null:Tt},Vt.size=function(sr){return arguments.length?Vt.clipExtent(sr&&[[0,0],sr]):Tt===Zu?null:Tt&&Tt[1]},Vt};var Zu=[[-1e6,-1e6],[1e6,1e6]];function Tu(pe,Le,Ke){return(pe.x-Ke.x)*(Le.y-pe.y)-(pe.x-Le.x)*(Ke.y-pe.y)}h.geom.delaunay=function(pe){return h.geom.voronoi().triangles(pe)},h.geom.quadtree=function(pe,Le,Ke,dt,gt){var Tt=pi,Vt=Pi,jt;if(jt=arguments.length)return Tt=Hc,Vt=mf,jt===3&&(gt=Ke,dt=Le,Ke=Le=0),sr(pe);function sr(Pr){var kr,Zr=At(Tt),la=At(Vt),ca,on,pa,Pa,Na,an,ln,Ba;if(Le!=null)Na=Le,an=Ke,ln=dt,Ba=gt;else if(ln=Ba=-(Na=an=1/0),ca=[],on=[],Pa=Pr.length,jt)for(pa=0;pa<Pa;++pa)kr=Pr[pa],kr.x<Na&&(Na=kr.x),kr.y<an&&(an=kr.y),kr.x>ln&&(ln=kr.x),kr.y>Ba&&(Ba=kr.y),ca.push(kr.x),on.push(kr.y);else for(pa=0;pa<Pa;++pa){var Dn=+Zr(kr=Pr[pa],pa),oi=+la(kr,pa);Dn<Na&&(Na=Dn),oi<an&&(an=oi),Dn>ln&&(ln=Dn),oi>Ba&&(Ba=oi),ca.push(Dn),on.push(oi)}var Kn=ln-Na,ni=Ba-an;Kn>ni?Ba=an+Kn:ln=Na+ni;function Ai(Ri,co,es,_l,Gs,gi,Ro,Ko){if(!(isNaN(es)||isNaN(_l)))if(Ri.leaf){var Ns=Ri.x,ks=Ri.y;if(Ns!=null)if(l(Ns-es)+l(ks-_l)<.01)Ci(Ri,co,es,_l,Gs,gi,Ro,Ko);else{var ru=Ri.point;Ri.x=Ri.y=Ri.point=null,Ci(Ri,ru,Ns,ks,Gs,gi,Ro,Ko),Ci(Ri,co,es,_l,Gs,gi,Ro,Ko)}else Ri.x=es,Ri.y=_l,Ri.point=co}else Ci(Ri,co,es,_l,Gs,gi,Ro,Ko)}function Ci(Ri,co,es,_l,Gs,gi,Ro,Ko){var Ns=(Gs+Ro)*.5,ks=(gi+Ko)*.5,ru=es>=Ns,_s=_l>=ks,Us=_s<<1|ru;Ri.leaf=!1,Ri=Ri.nodes[Us]||(Ri.nodes[Us]=Ts()),ru?Gs=Ns:Ro=Ns,_s?gi=ks:Ko=ks,Ai(Ri,co,es,_l,Gs,gi,Ro,Ko)}var Wo=Ts();if(Wo.add=function(Ri){Ai(Wo,Ri,+Zr(Ri,++pa),+la(Ri,pa),Na,an,ln,Ba)},Wo.visit=function(Ri){Du(Ri,Wo,Na,an,ln,Ba)},Wo.find=function(Ri){return Wc(Wo,Ri[0],Ri[1],Na,an,ln,Ba)},pa=-1,Le==null){for(;++pa<Pa;)Ai(Wo,Pr[pa],ca[pa],on[pa],Na,an,ln,Ba);--pa}else Pr.forEach(Wo.add);return ca=on=Pr=kr=null,Wo}return sr.x=function(Pr){return arguments.length?(Tt=Pr,sr):Tt},sr.y=function(Pr){return arguments.length?(Vt=Pr,sr):Vt},sr.extent=function(Pr){return arguments.length?(Pr==null?Le=Ke=dt=gt=null:(Le=+Pr[0][0],Ke=+Pr[0][1],dt=+Pr[1][0],gt=+Pr[1][1]),sr):Le==null?null:[[Le,Ke],[dt,gt]]},sr.size=function(Pr){return arguments.length?(Pr==null?Le=Ke=dt=gt=null:(Le=Ke=0,dt=+Pr[0],gt=+Pr[1]),sr):Le==null?null:[dt-Le,gt-Ke]},sr};function Hc(pe){return pe.x}function mf(pe){return pe.y}function Ts(){return{leaf:!0,nodes:[],point:null,x:null,y:null}}function Du(pe,Le,Ke,dt,gt,Tt){if(!pe(Le,Ke,dt,gt,Tt)){var Vt=(Ke+gt)*.5,jt=(dt+Tt)*.5,sr=Le.nodes;sr[0]&&Du(pe,sr[0],Ke,dt,Vt,jt),sr[1]&&Du(pe,sr[1],Vt,dt,gt,jt),sr[2]&&Du(pe,sr[2],Ke,jt,Vt,Tt),sr[3]&&Du(pe,sr[3],Vt,jt,gt,Tt)}}function Wc(pe,Le,Ke,dt,gt,Tt,Vt){var jt=1/0,sr;return function Pr(kr,Zr,la,ca,on){if(!(Zr>Tt||la>Vt||ca<dt||on<gt)){if(pa=kr.point){var pa,Pa=Le-kr.x,Na=Ke-kr.y,an=Pa*Pa+Na*Na;if(an<jt){var ln=Math.sqrt(jt=an);dt=Le-ln,gt=Ke-ln,Tt=Le+ln,Vt=Ke+ln,sr=pa}}for(var Ba=kr.nodes,Dn=(Zr+ca)*.5,oi=(la+on)*.5,Kn=Le>=Dn,ni=Ke>=oi,Ai=ni<<1|Kn,Ci=Ai+4;Ai<Ci;++Ai)if(kr=Ba[Ai&3])switch(Ai&3){case 0:Pr(kr,Zr,la,Dn,oi);break;case 1:Pr(kr,Dn,la,ca,oi);break;case 2:Pr(kr,Zr,oi,Dn,on);break;case 3:Pr(kr,Dn,oi,ca,on);break}}}(pe,dt,gt,Tt,Vt),sr}h.interpolateRgb=Ol;function Ol(pe,Le){pe=h.rgb(pe),Le=h.rgb(Le);var Ke=pe.r,dt=pe.g,gt=pe.b,Tt=Le.r-Ke,Vt=Le.g-dt,jt=Le.b-gt;return function(sr){return"#"+br(Math.round(Ke+Tt*sr))+br(Math.round(dt+Vt*sr))+br(Math.round(gt+jt*sr))}}h.interpolateObject=Cl;function Cl(pe,Le){var Ke={},dt={},gt;for(gt in pe)gt in Le?Ke[gt]=Go(pe[gt],Le[gt]):dt[gt]=pe[gt];for(gt in Le)gt in pe||(dt[gt]=Le[gt]);return function(Tt){for(gt in Ke)dt[gt]=Ke[gt](Tt);return dt}}h.interpolateNumber=Bl;function Bl(pe,Le){return pe=+pe,Le=+Le,function(Ke){return pe*(1-Ke)+Le*Ke}}h.interpolateString=Au;function Au(pe,Le){var Ke=Vs.lastIndex=Ll.lastIndex=0,dt,gt,Tt,Vt=-1,jt=[],sr=[];for(pe=pe+"",Le=Le+"";(dt=Vs.exec(pe))&&(gt=Ll.exec(Le));)(Tt=gt.index)>Ke&&(Tt=Le.slice(Ke,Tt),jt[Vt]?jt[Vt]+=Tt:jt[++Vt]=Tt),(dt=dt[0])===(gt=gt[0])?jt[Vt]?jt[Vt]+=gt:jt[++Vt]=gt:(jt[++Vt]=null,sr.push({i:Vt,x:Bl(dt,gt)})),Ke=Ll.lastIndex;return Ke<Le.length&&(Tt=Le.slice(Ke),jt[Vt]?jt[Vt]+=Tt:jt[++Vt]=Tt),jt.length<2?sr[0]?(Le=sr[0].x,function(Pr){return Le(Pr)+""}):function(){return Le}:(Le=sr.length,function(Pr){for(var kr=0,Zr;kr<Le;++kr)jt[(Zr=sr[kr]).i]=Zr.x(Pr);return jt.join("")})}var Vs=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Ll=new RegExp(Vs.source,"g");h.interpolate=Go;function Go(pe,Le){for(var Ke=h.interpolators.length,dt;--Ke>=0&&!(dt=h.interpolators[Ke](pe,Le)););return dt}h.interpolators=[function(pe,Le){var Ke=typeof Le;return(Ke==="string"?ta.has(Le.toLowerCase())||/^(#|rgb\(|hsl\()/i.test(Le)?Ol:Au:Le instanceof Ga?Ol:Array.isArray(Le)?Ms:Ke==="object"&&isNaN(Le)?Cl:Bl)(pe,Le)}],h.interpolateArray=Ms;function Ms(pe,Le){var Ke=[],dt=[],gt=pe.length,Tt=Le.length,Vt=Math.min(pe.length,Le.length),jt;for(jt=0;jt<Vt;++jt)Ke.push(Go(pe[jt],Le[jt]));for(;jt<gt;++jt)dt[jt]=pe[jt];for(;jt<Tt;++jt)dt[jt]=Le[jt];return function(sr){for(jt=0;jt<Vt;++jt)dt[jt]=Ke[jt](sr);return dt}}var Yu=function(){return F},Ql=h.map({linear:Yu,poly:_c,quad:function(){return jf},cubic:function(){return us},sin:function(){return Su},exp:function(){return wl},circle:function(){return Xc},elastic:oc,back:Cc,bounce:function(){return Pl}}),ic=h.map({in:F,out:kf,"in-out":No,"out-in":function(pe){return No(kf(pe))}});h.ease=function(pe){var Le=pe.indexOf("-"),Ke=Le>=0?pe.slice(0,Le):pe,dt=Le>=0?pe.slice(Le+1):"in";return Ke=Ql.get(Ke)||Yu,dt=ic.get(dt)||F,el(dt(Ke.apply(null,x.call(arguments,1))))};function el(pe){return function(Le){return Le<=0?0:Le>=1?1:pe(Le)}}function kf(pe){return function(Le){return 1-pe(1-Le)}}function No(pe){return function(Le){return .5*(Le<.5?pe(2*Le):2-pe(2-2*Le))}}function jf(pe){return pe*pe}function us(pe){return pe*pe*pe}function Ni(pe){if(pe<=0)return 0;if(pe>=1)return 1;var Le=pe*pe,Ke=Le*pe;return 4*(pe<.5?Ke:3*(pe-Le)+Ke-.75)}function _c(pe){return function(Le){return Math.pow(Le,pe)}}function Su(pe){return 1-Math.cos(pe*Ie)}function wl(pe){return Math.pow(2,10*(pe-1))}function Xc(pe){return 1-Math.sqrt(1-pe*pe)}function oc(pe,Le){var Ke;return arguments.length<2&&(Le=.45),arguments.length?Ke=Le/ye*Math.asin(1/pe):(pe=1,Ke=Le/4),function(dt){return 1+pe*Math.pow(2,-10*dt)*Math.sin((dt-Ke)*ye/Le)}}function Cc(pe){return pe||(pe=1.70158),function(Le){return Le*Le*((pe+1)*Le-pe)}}function Pl(pe){return pe<1/2.75?7.5625*pe*pe:pe<2/2.75?7.5625*(pe-=1.5/2.75)*pe+.75:pe<2.5/2.75?7.5625*(pe-=2.25/2.75)*pe+.9375:7.5625*(pe-=2.625/2.75)*pe+.984375}h.interpolateHcl=_f;function _f(pe,Le){pe=h.hcl(pe),Le=h.hcl(Le);var Ke=pe.h,dt=pe.c,gt=pe.l,Tt=Le.h-Ke,Vt=Le.c-dt,jt=Le.l-gt;return isNaN(Vt)&&(Vt=0,dt=isNaN(dt)?Le.c:dt),isNaN(Tt)?(Tt=0,Ke=isNaN(Ke)?Le.h:Ke):Tt>180?Tt-=360:Tt<-180&&(Tt+=360),function(sr){return Kt(Ke+Tt*sr,dt+Vt*sr,gt+jt*sr)+""}}h.interpolateHsl=tf;function tf(pe,Le){pe=h.hsl(pe),Le=h.hsl(Le);var Ke=pe.h,dt=pe.s,gt=pe.l,Tt=Le.h-Ke,Vt=Le.s-dt,jt=Le.l-gt;return isNaN(Vt)&&(Vt=0,dt=isNaN(dt)?Le.s:dt),isNaN(Tt)?(Tt=0,Ke=isNaN(Ke)?Le.h:Ke):Tt>180?Tt-=360:Tt<-180&&(Tt+=360),function(sr){return _n(Ke+Tt*sr,dt+Vt*sr,gt+jt*sr)+""}}h.interpolateLab=Lc;function Lc(pe,Le){pe=h.lab(pe),Le=h.lab(Le);var Ke=pe.l,dt=pe.a,gt=pe.b,Tt=Le.l-Ke,Vt=Le.a-dt,jt=Le.b-gt;return function(sr){return Da(Ke+Tt*sr,dt+Vt*sr,gt+jt*sr)+""}}h.interpolateRound=sc;function sc(pe,Le){return Le-=pe,function(Ke){return Math.round(pe+Le*Ke)}}h.transform=function(pe){var Le=E.createElementNS(h.ns.prefix.svg,"g");return(h.transform=function(Ke){if(Ke!=null){Le.setAttribute("transform",Ke);var dt=Le.transform.baseVal.consolidate()}return new Zc(dt?dt.matrix:Ku)})(pe)};function Zc(pe){var Le=[pe.a,pe.b],Ke=[pe.c,pe.d],dt=Mu(Le),gt=Yc(Le,Ke),Tt=Mu(rf(Ke,Le,-gt))||0;Le[0]*Ke[1]<Ke[0]*Le[1]&&(Le[0]*=-1,Le[1]*=-1,dt*=-1,gt*=-1),this.rotate=(dt?Math.atan2(Le[1],Le[0]):Math.atan2(-Ke[0],Ke[1]))*ht,this.translate=[pe.e,pe.f],this.scale=[dt,Tt],this.skew=Tt?Math.atan2(gt,Tt)*ht:0}Zc.prototype.toString=function(){return"translate("+this.translate+")rotate("+this.rotate+")skewX("+this.skew+")scale("+this.scale+")"};function Yc(pe,Le){return pe[0]*Le[0]+pe[1]*Le[1]}function Mu(pe){var Le=Math.sqrt(Yc(pe,pe));return Le&&(pe[0]/=Le,pe[1]/=Le),Le}function rf(pe,Le,Ke){return pe[0]+=Ke*Le[0],pe[1]+=Ke*Le[1],pe}var Ku={a:1,b:0,c:0,d:1,e:0,f:0};h.interpolateTransform=Oc;function zu(pe){return pe.length?pe.pop()+",":""}function Il(pe,Le,Ke,dt){if(pe[0]!==Le[0]||pe[1]!==Le[1]){var gt=Ke.push("translate(",null,",",null,")");dt.push({i:gt-4,x:Bl(pe[0],Le[0])},{i:gt-2,x:Bl(pe[1],Le[1])})}else(Le[0]||Le[1])&&Ke.push("translate("+Le+")")}function pc(pe,Le,Ke,dt){pe!==Le?(pe-Le>180?Le+=360:Le-pe>180&&(pe+=360),dt.push({i:Ke.push(zu(Ke)+"rotate(",null,")")-2,x:Bl(pe,Le)})):Le&&Ke.push(zu(Ke)+"rotate("+Le+")")}function Kc(pe,Le,Ke,dt){pe!==Le?dt.push({i:Ke.push(zu(Ke)+"skewX(",null,")")-2,x:Bl(pe,Le)}):Le&&Ke.push(zu(Ke)+"skewX("+Le+")")}function Ps(pe,Le,Ke,dt){if(pe[0]!==Le[0]||pe[1]!==Le[1]){var gt=Ke.push(zu(Ke)+"scale(",null,",",null,")");dt.push({i:gt-4,x:Bl(pe[0],Le[0])},{i:gt-2,x:Bl(pe[1],Le[1])})}else(Le[0]!==1||Le[1]!==1)&&Ke.push(zu(Ke)+"scale("+Le+")")}function Oc(pe,Le){var Ke=[],dt=[];return pe=h.transform(pe),Le=h.transform(Le),Il(pe.translate,Le.translate,Ke,dt),pc(pe.rotate,Le.rotate,Ke,dt),Kc(pe.skew,Le.skew,Ke,dt),Ps(pe.scale,Le.scale,Ke,dt),pe=Le=null,function(gt){for(var Tt=-1,Vt=dt.length,jt;++Tt<Vt;)Ke[(jt=dt[Tt]).i]=jt.x(gt);return Ke.join("")}}function Cf(pe,Le){return Le=(Le-=pe=+pe)||1/Le,function(Ke){return(Ke-pe)/Le}}function af(pe,Le){return Le=(Le-=pe=+pe)||1/Le,function(Ke){return Math.max(0,Math.min(1,(Ke-pe)/Le))}}h.layout={},h.layout.bundle=function(){return function(pe){for(var Le=[],Ke=-1,dt=pe.length;++Ke<dt;)Le.push(Pc(pe[Ke]));return Le}};function Pc(pe){for(var Le=pe.source,Ke=pe.target,dt=su(Le,Ke),gt=[Le];Le!==dt;)Le=Le.parent,gt.push(Le);for(var Tt=gt.length;Ke!==dt;)gt.splice(Tt,0,Ke),Ke=Ke.parent;return gt}function nf(pe){for(var Le=[],Ke=pe.parent;Ke!=null;)Le.push(pe),pe=Ke,Ke=Ke.parent;return Le.push(pe),Le}function su(pe,Le){if(pe===Le)return pe;for(var Ke=nf(pe),dt=nf(Le),gt=Ke.pop(),Tt=dt.pop(),Vt=null;gt===Tt;)Vt=gt,gt=Ke.pop(),Tt=dt.pop();return Vt}h.layout.chord=function(){var pe={},Le,Ke,dt,gt,Tt=0,Vt,jt,sr;function Pr(){var Zr={},la=[],ca=h.range(gt),on=[],pa,Pa,Na,an,ln;for(Le=[],Ke=[],pa=0,an=-1;++an<gt;){for(Pa=0,ln=-1;++ln<gt;)Pa+=dt[an][ln];la.push(Pa),on.push(h.range(gt)),pa+=Pa}for(Vt&&ca.sort(function(Wo,Ri){return Vt(la[Wo],la[Ri])}),jt&&on.forEach(function(Wo,Ri){Wo.sort(function(co,es){return jt(dt[Ri][co],dt[Ri][es])})}),pa=(ye-Tt*gt)/pa,Pa=0,an=-1;++an<gt;){for(Na=Pa,ln=-1;++ln<gt;){var Ba=ca[an],Dn=on[Ba][ln],oi=dt[Ba][Dn],Kn=Pa,ni=Pa+=oi*pa;Zr[Ba+"-"+Dn]={index:Ba,subindex:Dn,startAngle:Kn,endAngle:ni,value:oi}}Ke[Ba]={index:Ba,startAngle:Na,endAngle:Pa,value:la[Ba]},Pa+=Tt}for(an=-1;++an<gt;)for(ln=an-1;++ln<gt;){var Ai=Zr[an+"-"+ln],Ci=Zr[ln+"-"+an];(Ai.value||Ci.value)&&Le.push(Ai.value<Ci.value?{source:Ci,target:Ai}:{source:Ai,target:Ci})}sr&&kr()}function kr(){Le.sort(function(Zr,la){return sr((Zr.source.value+Zr.target.value)/2,(la.source.value+la.target.value)/2)})}return pe.matrix=function(Zr){return arguments.length?(gt=(dt=Zr)&&dt.length,Le=Ke=null,pe):dt},pe.padding=function(Zr){return arguments.length?(Tt=Zr,Le=Ke=null,pe):Tt},pe.sortGroups=function(Zr){return arguments.length?(Vt=Zr,Le=Ke=null,pe):Vt},pe.sortSubgroups=function(Zr){return arguments.length?(jt=Zr,Le=null,pe):jt},pe.sortChords=function(Zr){return arguments.length?(sr=Zr,Le&&kr(),pe):sr},pe.chords=function(){return Le||Pr(),Le},pe.groups=function(){return Ke||Pr(),Ke},pe},h.layout.force=function(){var pe={},Le=h.dispatch("start","tick","end"),Ke,dt=[1,1],gt,Tt,Vt=.9,jt=$u,sr=Yl,Pr=-30,kr=uu,Zr=.1,la=.64,ca=[],on=[],pa,Pa,Na;function an(Ba){return function(Dn,oi,Kn,ni){if(Dn.point!==Ba){var Ai=Dn.cx-Ba.x,Ci=Dn.cy-Ba.y,Wo=ni-oi,Ri=Ai*Ai+Ci*Ci;if(Wo*Wo/la<Ri){if(Ri<kr){var co=Dn.charge/Ri;Ba.px-=Ai*co,Ba.py-=Ci*co}return!0}if(Dn.point&&Ri&&Ri<kr){var co=Dn.pointCharge/Ri;Ba.px-=Ai*co,Ba.py-=Ci*co}}return!Dn.charge}}pe.tick=function(){if((Tt*=.99)<.005)return Ke=null,Le.end({type:"end",alpha:Tt=0}),!0;var Ba=ca.length,Dn=on.length,oi,Kn,ni,Ai,Ci,Wo,Ri,co,es;for(Kn=0;Kn<Dn;++Kn)ni=on[Kn],Ai=ni.source,Ci=ni.target,co=Ci.x-Ai.x,es=Ci.y-Ai.y,(Wo=co*co+es*es)&&(Wo=Tt*Pa[Kn]*((Wo=Math.sqrt(Wo))-pa[Kn])/Wo,co*=Wo,es*=Wo,Ci.x-=co*(Ri=Ai.weight+Ci.weight?Ai.weight/(Ai.weight+Ci.weight):.5),Ci.y-=es*Ri,Ai.x+=co*(Ri=1-Ri),Ai.y+=es*Ri);if((Ri=Tt*Zr)&&(co=dt[0]/2,es=dt[1]/2,Kn=-1,Ri))for(;++Kn<Ba;)ni=ca[Kn],ni.x+=(co-ni.x)*Ri,ni.y+=(es-ni.y)*Ri;if(Pr)for(qs(oi=h.geom.quadtree(ca),Tt,Na),Kn=-1;++Kn<Ba;)(ni=ca[Kn]).fixed||oi.visit(an(ni));for(Kn=-1;++Kn<Ba;)ni=ca[Kn],ni.fixed?(ni.x=ni.px,ni.y=ni.py):(ni.x-=(ni.px-(ni.px=ni.x))*Vt,ni.y-=(ni.py-(ni.py=ni.y))*Vt);Le.tick({type:"tick",alpha:Tt})},pe.nodes=function(Ba){return arguments.length?(ca=Ba,pe):ca},pe.links=function(Ba){return arguments.length?(on=Ba,pe):on},pe.size=function(Ba){return arguments.length?(dt=Ba,pe):dt},pe.linkDistance=function(Ba){return arguments.length?(jt=typeof Ba=="function"?Ba:+Ba,pe):jt},pe.distance=pe.linkDistance,pe.linkStrength=function(Ba){return arguments.length?(sr=typeof Ba=="function"?Ba:+Ba,pe):sr},pe.friction=function(Ba){return arguments.length?(Vt=+Ba,pe):Vt},pe.charge=function(Ba){return arguments.length?(Pr=typeof Ba=="function"?Ba:+Ba,pe):Pr},pe.chargeDistance=function(Ba){return arguments.length?(kr=Ba*Ba,pe):Math.sqrt(kr)},pe.gravity=function(Ba){return arguments.length?(Zr=+Ba,pe):Zr},pe.theta=function(Ba){return arguments.length?(la=Ba*Ba,pe):Math.sqrt(la)},pe.alpha=function(Ba){return arguments.length?(Ba=+Ba,Tt?Ba>0?Tt=Ba:(Ke.c=null,Ke.t=NaN,Ke=null,Le.end({type:"end",alpha:Tt=0})):Ba>0&&(Le.start({type:"start",alpha:Tt=Ba}),Ke=mn(pe.tick)),pe):Tt},pe.start=function(){var Ba,Dn=ca.length,oi=on.length,Kn=dt[0],ni=dt[1],Ai,Ci;for(Ba=0;Ba<Dn;++Ba)(Ci=ca[Ba]).index=Ba,Ci.weight=0;for(Ba=0;Ba<oi;++Ba)Ci=on[Ba],typeof Ci.source=="number"&&(Ci.source=ca[Ci.source]),typeof Ci.target=="number"&&(Ci.target=ca[Ci.target]),++Ci.source.weight,++Ci.target.weight;for(Ba=0;Ba<Dn;++Ba)Ci=ca[Ba],isNaN(Ci.x)&&(Ci.x=Wo("x",Kn)),isNaN(Ci.y)&&(Ci.y=Wo("y",ni)),isNaN(Ci.px)&&(Ci.px=Ci.x),isNaN(Ci.py)&&(Ci.py=Ci.y);if(pa=[],typeof jt=="function")for(Ba=0;Ba<oi;++Ba)pa[Ba]=+jt.call(this,on[Ba],Ba);else for(Ba=0;Ba<oi;++Ba)pa[Ba]=jt;if(Pa=[],typeof sr=="function")for(Ba=0;Ba<oi;++Ba)Pa[Ba]=+sr.call(this,on[Ba],Ba);else for(Ba=0;Ba<oi;++Ba)Pa[Ba]=sr;if(Na=[],typeof Pr=="function")for(Ba=0;Ba<Dn;++Ba)Na[Ba]=+Pr.call(this,ca[Ba],Ba);else for(Ba=0;Ba<Dn;++Ba)Na[Ba]=Pr;function Wo(Ri,co){if(!Ai){for(Ai=new Array(Dn),Gs=0;Gs<Dn;++Gs)Ai[Gs]=[];for(Gs=0;Gs<oi;++Gs){var es=on[Gs];Ai[es.source.index].push(es.target),Ai[es.target.index].push(es.source)}}for(var _l=Ai[Ba],Gs=-1,gi=_l.length,Ro;++Gs<gi;)if(!isNaN(Ro=_l[Gs][Ri]))return Ro;return Math.random()*co}return pe.resume()},pe.resume=function(){return pe.alpha(.1)},pe.stop=function(){return pe.alpha(0)},pe.drag=function(){if(gt||(gt=h.behavior.drag().origin(F).on("dragstart.force",of).on("drag.force",ln).on("dragend.force",sl)),!arguments.length)return gt;this.on("mouseover.force",lu).on("mouseout.force",lc).call(gt)};function ln(Ba){Ba.px=h.event.x,Ba.py=h.event.y,pe.resume()}return h.rebind(pe,Le,"on")};function of(pe){pe.fixed|=2}function sl(pe){pe.fixed&=-7}function lu(pe){pe.fixed|=4,pe.px=pe.x,pe.py=pe.y}function lc(pe){pe.fixed&=-5}function qs(pe,Le,Ke){var dt=0,gt=0;if(pe.charge=0,!pe.leaf)for(var Tt=pe.nodes,Vt=Tt.length,jt=-1,sr;++jt<Vt;)sr=Tt[jt],sr!=null&&(qs(sr,Le,Ke),pe.charge+=sr.charge,dt+=sr.charge*sr.cx,gt+=sr.charge*sr.cy);if(pe.point){pe.leaf||(pe.point.x+=Math.random()-.5,pe.point.y+=Math.random()-.5);var Pr=Le*Ke[pe.point.index];pe.charge+=pe.pointCharge=Pr,dt+=Pr*pe.point.x,gt+=Pr*pe.point.y}pe.cx=dt/pe.charge,pe.cy=gt/pe.charge}var $u=20,Yl=1,uu=1/0;h.layout.hierarchy=function(){var pe=Lf,Le=uc,Ke=Bc;function dt(gt){var Tt=[gt],Vt=[],jt;for(gt.depth=0;(jt=Tt.pop())!=null;)if(Vt.push(jt),(Pr=Le.call(dt,jt,jt.depth))&&(sr=Pr.length)){for(var sr,Pr,kr;--sr>=0;)Tt.push(kr=Pr[sr]),kr.parent=jt,kr.depth=jt.depth+1;Ke&&(jt.value=0),jt.children=Pr}else Ke&&(jt.value=+Ke.call(dt,jt,jt.depth)||0),delete jt.children;return Fu(gt,function(Zr){var la,ca;pe&&(la=Zr.children)&&la.sort(pe),Ke&&(ca=Zr.parent)&&(ca.value+=Zr.value)}),Vt}return dt.sort=function(gt){return arguments.length?(pe=gt,dt):pe},dt.children=function(gt){return arguments.length?(Le=gt,dt):Le},dt.value=function(gt){return arguments.length?(Ke=gt,dt):Ke},dt.revalue=function(gt){return Ke&&(xc(gt,function(Tt){Tt.children&&(Tt.value=0)}),Fu(gt,function(Tt){var Vt;Tt.children||(Tt.value=+Ke.call(dt,Tt,Tt.depth)||0),(Vt=Tt.parent)&&(Vt.value+=Tt.value)})),gt},dt};function tl(pe,Le){return h.rebind(pe,Le,"sort","children","value"),pe.nodes=pe,pe.links=Kf,pe}function xc(pe,Le){for(var Ke=[pe];(pe=Ke.pop())!=null;)if(Le(pe),(gt=pe.children)&&(dt=gt.length))for(var dt,gt;--dt>=0;)Ke.push(gt[dt])}function Fu(pe,Le){for(var Ke=[pe],dt=[];(pe=Ke.pop())!=null;)if(dt.push(pe),(Vt=pe.children)&&(Tt=Vt.length))for(var gt=-1,Tt,Vt;++gt<Tt;)Ke.push(Vt[gt]);for(;(pe=dt.pop())!=null;)Le(pe)}function uc(pe){return pe.children}function Bc(pe){return pe.value}function Lf(pe,Le){return Le.value-pe.value}function Kf(pe){return h.merge(pe.map(function(Le){return(Le.children||[]).map(function(Ke){return{source:Le,target:Ke}})}))}h.layout.partition=function(){var pe=h.layout.hierarchy(),Le=[1,1];function Ke(Tt,Vt,jt,sr){var Pr=Tt.children;if(Tt.x=Vt,Tt.y=Tt.depth*sr,Tt.dx=jt,Tt.dy=sr,Pr&&(Zr=Pr.length)){var kr=-1,Zr,la,ca;for(jt=Tt.value?jt/Tt.value:0;++kr<Zr;)Ke(la=Pr[kr],Vt,ca=la.value*jt,sr),Vt+=ca}}function dt(Tt){var Vt=Tt.children,jt=0;if(Vt&&(Pr=Vt.length))for(var sr=-1,Pr;++sr<Pr;)jt=Math.max(jt,dt(Vt[sr]));return 1+jt}function gt(Tt,Vt){var jt=pe.call(this,Tt,Vt);return Ke(jt[0],0,Le[0],Le[1]/dt(jt[0])),jt}return gt.size=function(Tt){return arguments.length?(Le=Tt,gt):Le},tl(gt,pe)},h.layout.pie=function(){var pe=Number,Le=bc,Ke=0,dt=ye,gt=0;function Tt(Vt){var jt=Vt.length,sr=Vt.map(function(an,ln){return+pe.call(Tt,an,ln)}),Pr=+(typeof Ke=="function"?Ke.apply(this,arguments):Ke),kr=(typeof dt=="function"?dt.apply(this,arguments):dt)-Pr,Zr=Math.min(Math.abs(kr)/jt,+(typeof gt=="function"?gt.apply(this,arguments):gt)),la=Zr*(kr<0?-1:1),ca=h.sum(sr),on=ca?(kr-jt*la)/ca:0,pa=h.range(jt),Pa=[],Na;return Le!=null&&pa.sort(Le===bc?function(an,ln){return sr[ln]-sr[an]}:function(an,ln){return Le(Vt[an],Vt[ln])}),pa.forEach(function(an){Pa[an]={data:Vt[an],value:Na=sr[an],startAngle:Pr,endAngle:Pr+=Na*on+la,padAngle:Zr}}),Pa}return Tt.value=function(Vt){return arguments.length?(pe=Vt,Tt):pe},Tt.sort=function(Vt){return arguments.length?(Le=Vt,Tt):Le},Tt.startAngle=function(Vt){return arguments.length?(Ke=Vt,Tt):Ke},Tt.endAngle=function(Vt){return arguments.length?(dt=Vt,Tt):dt},Tt.padAngle=function(Vt){return arguments.length?(gt=Vt,Tt):gt},Tt};var bc={};h.layout.stack=function(){var pe=F,Le=sf,Ke=Tc,dt=Uc,gt=Nc,Tt=yu;function Vt(jt,sr){if(!(on=jt.length))return jt;var Pr=jt.map(function(an,ln){return pe.call(Vt,an,ln)}),kr=Pr.map(function(an){return an.map(function(ln,Ba){return[gt.call(Vt,ln,Ba),Tt.call(Vt,ln,Ba)]})}),Zr=Le.call(Vt,kr,sr);Pr=h.permute(Pr,Zr),kr=h.permute(kr,Zr);var la=Ke.call(Vt,kr,sr),ca=Pr[0].length,on,pa,Pa,Na;for(Pa=0;Pa<ca;++Pa)for(dt.call(Vt,Pr[0][Pa],Na=la[Pa],kr[0][Pa][1]),pa=1;pa<on;++pa)dt.call(Vt,Pr[pa][Pa],Na+=kr[pa-1][Pa][1],kr[pa][Pa][1]);return jt}return Vt.values=function(jt){return arguments.length?(pe=jt,Vt):pe},Vt.order=function(jt){return arguments.length?(Le=typeof jt=="function"?jt:Nl.get(jt)||sf,Vt):Le},Vt.offset=function(jt){return arguments.length?(Ke=typeof jt=="function"?jt:wc.get(jt)||Tc,Vt):Ke},Vt.x=function(jt){return arguments.length?(gt=jt,Vt):gt},Vt.y=function(jt){return arguments.length?(Tt=jt,Vt):Tt},Vt.out=function(jt){return arguments.length?(dt=jt,Vt):dt},Vt};function Nc(pe){return pe.x}function yu(pe){return pe.y}function Uc(pe,Le,Ke){pe.y0=Le,pe.y=Ke}var Nl=h.map({"inside-out":function(pe){var Le=pe.length,Ke,dt,gt=pe.map(Ys),Tt=pe.map(cu),Vt=h.range(Le).sort(function(Zr,la){return gt[Zr]-gt[la]}),jt=0,sr=0,Pr=[],kr=[];for(Ke=0;Ke<Le;++Ke)dt=Vt[Ke],jt<sr?(jt+=Tt[dt],Pr.push(dt)):(sr+=Tt[dt],kr.push(dt));return kr.reverse().concat(Pr)},reverse:function(pe){return h.range(pe.length).reverse()},default:sf}),wc=h.map({silhouette:function(pe){var Le=pe.length,Ke=pe[0].length,dt=[],gt=0,Tt,Vt,jt,sr=[];for(Vt=0;Vt<Ke;++Vt){for(Tt=0,jt=0;Tt<Le;Tt++)jt+=pe[Tt][Vt][1];jt>gt&&(gt=jt),dt.push(jt)}for(Vt=0;Vt<Ke;++Vt)sr[Vt]=(gt-dt[Vt])/2;return sr},wiggle:function(pe){var Le=pe.length,Ke=pe[0],dt=Ke.length,gt,Tt,Vt,jt,sr,Pr,kr,Zr,la,ca=[];for(ca[0]=Zr=la=0,Tt=1;Tt<dt;++Tt){for(gt=0,jt=0;gt<Le;++gt)jt+=pe[gt][Tt][1];for(gt=0,sr=0,kr=Ke[Tt][0]-Ke[Tt-1][0];gt<Le;++gt){for(Vt=0,Pr=(pe[gt][Tt][1]-pe[gt][Tt-1][1])/(2*kr);Vt<gt;++Vt)Pr+=(pe[Vt][Tt][1]-pe[Vt][Tt-1][1])/kr;sr+=Pr*pe[gt][Tt][1]}ca[Tt]=Zr-=jt?sr/jt*kr:0,Zr<la&&(la=Zr)}for(Tt=0;Tt<dt;++Tt)ca[Tt]-=la;return ca},expand:function(pe){var Le=pe.length,Ke=pe[0].length,dt=1/Le,gt,Tt,Vt,jt=[];for(Tt=0;Tt<Ke;++Tt){for(gt=0,Vt=0;gt<Le;gt++)Vt+=pe[gt][Tt][1];if(Vt)for(gt=0;gt<Le;gt++)pe[gt][Tt][1]/=Vt;else for(gt=0;gt<Le;gt++)pe[gt][Tt][1]=dt}for(Tt=0;Tt<Ke;++Tt)jt[Tt]=0;return jt},zero:Tc});function sf(pe){return h.range(pe.length)}function Tc(pe){for(var Le=-1,Ke=pe[0].length,dt=[];++Le<Ke;)dt[Le]=0;return dt}function Ys(pe){for(var Le=1,Ke=0,dt=pe[0][1],gt,Tt=pe.length;Le<Tt;++Le)(gt=pe[Le][1])>dt&&(Ke=Le,dt=gt);return Ke}function cu(pe){return pe.reduce(Eu,0)}function Eu(pe,Le){return pe+Le[1]}h.layout.histogram=function(){var pe=!0,Le=Number,Ke=Ic,dt=$c;function gt(Tt,la){for(var jt=[],sr=Tt.map(Le,this),Pr=Ke.call(this,sr,la),kr=dt.call(this,Pr,sr,la),Zr,la=-1,ca=sr.length,on=kr.length-1,pa=pe?1:1/ca,Pa;++la<on;)Zr=jt[la]=[],Zr.dx=kr[la+1]-(Zr.x=kr[la]),Zr.y=0;if(on>0)for(la=-1;++la<ca;)Pa=sr[la],Pa>=Pr[0]&&Pa<=Pr[1]&&(Zr=jt[h.bisect(kr,Pa,1,on)-1],Zr.y+=pa,Zr.push(Tt[la]));return jt}return gt.value=function(Tt){return arguments.length?(Le=Tt,gt):Le},gt.range=function(Tt){return arguments.length?(Ke=At(Tt),gt):Ke},gt.bins=function(Tt){return arguments.length?(dt=typeof Tt=="number"?function(Vt){return $s(Vt,Tt)}:At(Tt),gt):dt},gt.frequency=function(Tt){return arguments.length?(pe=!!Tt,gt):pe},gt};function $c(pe,Le){return $s(pe,Math.ceil(Math.log(Le.length)/Math.LN2+1))}function $s(pe,Le){for(var Ke=-1,dt=+pe[0],gt=(pe[1]-dt)/Le,Tt=[];++Ke<=Le;)Tt[Ke]=gt*Ke+dt;return Tt}function Ic(pe){return[h.min(pe),h.max(pe)]}h.layout.pack=function(){var pe=h.layout.hierarchy().sort(cc),Le=0,Ke=[1,1],dt;function gt(Tt,Vt){var jt=pe.call(this,Tt,Vt),sr=jt[0],Pr=Ke[0],kr=Ke[1],Zr=dt==null?Math.sqrt:typeof dt=="function"?dt:function(){return dt};if(sr.x=sr.y=0,Fu(sr,function(ca){ca.r=+Zr(ca.value)}),Fu(sr,Dc),Le){var la=Le*(dt?1:Math.max(2*sr.r/Pr,2*sr.r/kr))/2;Fu(sr,function(ca){ca.r+=la}),Fu(sr,Dc),Fu(sr,function(ca){ca.r-=la})}return lf(sr,Pr/2,kr/2,dt?1:1/Math.max(2*sr.r/Pr,2*sr.r/kr)),jt}return gt.size=function(Tt){return arguments.length?(Ke=Tt,gt):Ke},gt.radius=function(Tt){return arguments.length?(dt=Tt==null||typeof Tt=="function"?Tt:+Tt,gt):dt},gt.padding=function(Tt){return arguments.length?(Le=+Tt,gt):Le},tl(gt,pe)};function cc(pe,Le){return pe.value-Le.value}function mu(pe,Le){var Ke=pe._pack_next;pe._pack_next=Le,Le._pack_prev=pe,Le._pack_next=Ke,Ke._pack_prev=Le}function Rc(pe,Le){pe._pack_next=Le,Le._pack_prev=pe}function Ou(pe,Le){var Ke=Le.x-pe.x,dt=Le.y-pe.y,gt=pe.r+Le.r;return .999*gt*gt>Ke*Ke+dt*dt}function Dc(pe){if(!(Le=pe.children)||!(la=Le.length))return;var Le,Ke=1/0,dt=-1/0,gt=1/0,Tt=-1/0,Vt,jt,sr,Pr,kr,Zr,la;function ca(Ba){Ke=Math.min(Ba.x-Ba.r,Ke),dt=Math.max(Ba.x+Ba.r,dt),gt=Math.min(Ba.y-Ba.r,gt),Tt=Math.max(Ba.y+Ba.r,Tt)}if(Le.forEach(Pf),Vt=Le[0],Vt.x=-Vt.r,Vt.y=0,ca(Vt),la>1&&(jt=Le[1],jt.x=jt.r,jt.y=0,ca(jt),la>2))for(sr=Le[2],_u(Vt,jt,sr),ca(sr),mu(Vt,sr),Vt._pack_prev=sr,mu(sr,jt),jt=Vt._pack_next,Pr=3;Pr<la;Pr++){_u(Vt,jt,sr=Le[Pr]);var on=0,pa=1,Pa=1;for(kr=jt._pack_next;kr!==jt;kr=kr._pack_next,pa++)if(Ou(kr,sr)){on=1;break}if(on==1)for(Zr=Vt._pack_prev;Zr!==kr._pack_prev&&!Ou(Zr,sr);Zr=Zr._pack_prev,Pa++);on?(pa<Pa||pa==Pa&&jt.r<Vt.r?Rc(Vt,jt=kr):Rc(Vt=Zr,jt),Pr--):(mu(Vt,sr),jt=sr,ca(sr))}var Na=(Ke+dt)/2,an=(gt+Tt)/2,ln=0;for(Pr=0;Pr<la;Pr++)sr=Le[Pr],sr.x-=Na,sr.y-=an,ln=Math.max(ln,sr.r+Math.sqrt(sr.x*sr.x+sr.y*sr.y));pe.r=ln,Le.forEach(jl)}function Pf(pe){pe._pack_next=pe._pack_prev=pe}function jl(pe){delete pe._pack_next,delete pe._pack_prev}function lf(pe,Le,Ke,dt){var gt=pe.children;if(pe.x=Le+=dt*pe.x,pe.y=Ke+=dt*pe.y,pe.r*=dt,gt)for(var Tt=-1,Vt=gt.length;++Tt<Vt;)lf(gt[Tt],Le,Ke,dt)}function _u(pe,Le,Ke){var dt=pe.r+Ke.r,gt=Le.x-pe.x,Tt=Le.y-pe.y;if(dt&&(gt||Tt)){var Vt=Le.r+Ke.r,jt=gt*gt+Tt*Tt;Vt*=Vt,dt*=dt;var sr=.5+(dt-Vt)/(2*jt),Pr=Math.sqrt(Math.max(0,2*Vt*(dt+jt)-(dt-=jt)*dt-Vt*Vt))/(2*jt);Ke.x=pe.x+sr*gt+Pr*Tt,Ke.y=pe.y+sr*Tt-Pr*gt}else Ke.x=pe.x+dt,Ke.y=pe.y}h.layout.tree=function(){var pe=h.layout.hierarchy().sort(null).value(null),Le=Ju,Ke=[1,1],dt=null;function gt(kr,Zr){var la=pe.call(this,kr,Zr),ca=la[0],on=Tt(ca);if(Fu(on,Vt),on.parent.m=-on.z,xc(on,jt),dt)xc(ca,Pr);else{var pa=ca,Pa=ca,Na=ca;xc(ca,function(Dn){Dn.x<pa.x&&(pa=Dn),Dn.x>Pa.x&&(Pa=Dn),Dn.depth>Na.depth&&(Na=Dn)});var an=Le(pa,Pa)/2-pa.x,ln=Ke[0]/(Pa.x+Le(Pa,pa)/2+an),Ba=Ke[1]/(Na.depth||1);xc(ca,function(Dn){Dn.x=(Dn.x+an)*ln,Dn.y=Dn.depth*Ba})}return la}function Tt(kr){for(var Zr={A:null,children:[kr]},la=[Zr],ca;(ca=la.pop())!=null;)for(var on=ca.children,pa,Pa=0,Na=on.length;Pa<Na;++Pa)la.push((on[Pa]=pa={_:on[Pa],parent:ca,children:(pa=on[Pa].children)&&pa.slice()||[],A:null,a:null,z:0,m:0,c:0,s:0,t:null,i:Pa}).a=pa);return Zr.children[0]}function Vt(kr){var Zr=kr.children,la=kr.parent.children,ca=kr.i?la[kr.i-1]:null;if(Zr.length){nl(kr);var on=(Zr[0].z+Zr[Zr.length-1].z)/2;ca?(kr.z=ca.z+Le(kr._,ca._),kr.m=kr.z-on):kr.z=on}else ca&&(kr.z=ca.z+Le(kr._,ca._));kr.parent.A=sr(kr,ca,kr.parent.A||la[0])}function jt(kr){kr._.x=kr.z+kr.parent.m,kr.m+=kr.parent.m}function sr(kr,Zr,la){if(Zr){for(var ca=kr,on=kr,pa=Zr,Pa=ca.parent.children[0],Na=ca.m,an=on.m,ln=pa.m,Ba=Pa.m,Dn;pa=cl(pa),ca=Bu(ca),pa&&ca;)Pa=Bu(Pa),on=cl(on),on.a=kr,Dn=pa.z+ln-ca.z-Na+Le(pa._,ca._),Dn>0&&(eu(fc(pa,kr,la),kr,Dn),Na+=Dn,an+=Dn),ln+=pa.m,Na+=ca.m,Ba+=Pa.m,an+=on.m;pa&&!cl(on)&&(on.t=pa,on.m+=ln-an),ca&&!Bu(Pa)&&(Pa.t=ca,Pa.m+=Na-Ba,la=kr)}return la}function Pr(kr){kr.x*=Ke[0],kr.y=kr.depth*Ke[1]}return gt.separation=function(kr){return arguments.length?(Le=kr,gt):Le},gt.size=function(kr){return arguments.length?(dt=(Ke=kr)==null?Pr:null,gt):dt?null:Ke},gt.nodeSize=function(kr){return arguments.length?(dt=(Ke=kr)==null?null:Pr,gt):dt?Ke:null},tl(gt,pe)};function Ju(pe,Le){return pe.parent==Le.parent?1:2}function Bu(pe){var Le=pe.children;return Le.length?Le[0]:pe.t}function cl(pe){var Le=pe.children,Ke;return(Ke=Le.length)?Le[Ke-1]:pe.t}function eu(pe,Le,Ke){var dt=Ke/(Le.i-pe.i);Le.c-=dt,Le.s+=Ke,pe.c+=dt,Le.z+=Ke,Le.m+=Ke}function nl(pe){for(var Le=0,Ke=0,dt=pe.children,gt=dt.length,Tt;--gt>=0;)Tt=dt[gt],Tt.z+=Le,Tt.m+=Le,Le+=Tt.s+(Ke+=Tt.c)}function fc(pe,Le,Ke){return pe.a.parent===Le.parent?pe.a:Ke}h.layout.cluster=function(){var pe=h.layout.hierarchy().sort(null).value(null),Le=Ju,Ke=[1,1],dt=!1;function gt(Tt,Vt){var jt=pe.call(this,Tt,Vt),sr=jt[0],Pr,kr=0;Fu(sr,function(pa){var Pa=pa.children;Pa&&Pa.length?(pa.x=Jc(Pa),pa.y=Nu(Pa)):(pa.x=Pr?kr+=Le(pa,Pr):0,pa.y=0,Pr=pa)});var Zr=Qt(sr),la=mr(sr),ca=Zr.x-Le(Zr,la)/2,on=la.x+Le(la,Zr)/2;return Fu(sr,dt?function(pa){pa.x=(pa.x-sr.x)*Ke[0],pa.y=(sr.y-pa.y)*Ke[1]}:function(pa){pa.x=(pa.x-ca)/(on-ca)*Ke[0],pa.y=(1-(sr.y?pa.y/sr.y:1))*Ke[1]}),jt}return gt.separation=function(Tt){return arguments.length?(Le=Tt,gt):Le},gt.size=function(Tt){return arguments.length?(dt=(Ke=Tt)==null,gt):dt?null:Ke},gt.nodeSize=function(Tt){return arguments.length?(dt=(Ke=Tt)!=null,gt):dt?Ke:null},tl(gt,pe)};function Nu(pe){return 1+h.max(pe,function(Le){return Le.y})}function Jc(pe){return pe.reduce(function(Le,Ke){return Le+Ke.x},0)/pe.length}function Qt(pe){var Le=pe.children;return Le&&Le.length?Qt(Le[0]):pe}function mr(pe){var Le=pe.children,Ke;return Le&&(Ke=Le.length)?mr(Le[Ke-1]):pe}h.layout.treemap=function(){var pe=h.layout.hierarchy(),Le=Math.round,Ke=[1,1],dt=null,gt=Kr,Tt=!1,Vt,jt="squarify",sr=.5*(1+Math.sqrt(5));function Pr(pa,Pa){for(var Na=-1,an=pa.length,ln,Ba;++Na<an;)Ba=(ln=pa[Na]).value*(Pa<0?0:Pa),ln.area=isNaN(Ba)||Ba<=0?0:Ba}function kr(pa){var Pa=pa.children;if(Pa&&Pa.length){var Na=gt(pa),an=[],ln=Pa.slice(),Ba,Dn=1/0,oi,Kn=jt==="slice"?Na.dx:jt==="dice"?Na.dy:jt==="slice-dice"?pa.depth&1?Na.dy:Na.dx:Math.min(Na.dx,Na.dy),ni;for(Pr(ln,Na.dx*Na.dy/pa.value),an.area=0;(ni=ln.length)>0;)an.push(Ba=ln[ni-1]),an.area+=Ba.area,jt!=="squarify"||(oi=la(an,Kn))<=Dn?(ln.pop(),Dn=oi):(an.area-=an.pop().area,ca(an,Kn,Na,!1),Kn=Math.min(Na.dx,Na.dy),an.length=an.area=0,Dn=1/0);an.length&&(ca(an,Kn,Na,!0),an.length=an.area=0),Pa.forEach(kr)}}function Zr(pa){var Pa=pa.children;if(Pa&&Pa.length){var Na=gt(pa),an=Pa.slice(),ln,Ba=[];for(Pr(an,Na.dx*Na.dy/pa.value),Ba.area=0;ln=an.pop();)Ba.push(ln),Ba.area+=ln.area,ln.z!=null&&(ca(Ba,ln.z?Na.dx:Na.dy,Na,!an.length),Ba.length=Ba.area=0);Pa.forEach(Zr)}}function la(pa,Pa){for(var Na=pa.area,an,ln=0,Ba=1/0,Dn=-1,oi=pa.length;++Dn<oi;)(an=pa[Dn].area)&&(an<Ba&&(Ba=an),an>ln&&(ln=an));return Na*=Na,Pa*=Pa,Na?Math.max(Pa*ln*sr/Na,Na/(Pa*Ba*sr)):1/0}function ca(pa,Pa,Na,an){var ln=-1,Ba=pa.length,Dn=Na.x,oi=Na.y,Kn=Pa?Le(pa.area/Pa):0,ni;if(Pa==Na.dx){for((an||Kn>Na.dy)&&(Kn=Na.dy);++ln<Ba;)ni=pa[ln],ni.x=Dn,ni.y=oi,ni.dy=Kn,Dn+=ni.dx=Math.min(Na.x+Na.dx-Dn,Kn?Le(ni.area/Kn):0);ni.z=!0,ni.dx+=Na.x+Na.dx-Dn,Na.y+=Kn,Na.dy-=Kn}else{for((an||Kn>Na.dx)&&(Kn=Na.dx);++ln<Ba;)ni=pa[ln],ni.x=Dn,ni.y=oi,ni.dx=Kn,oi+=ni.dy=Math.min(Na.y+Na.dy-oi,Kn?Le(ni.area/Kn):0);ni.z=!1,ni.dy+=Na.y+Na.dy-oi,Na.x+=Kn,Na.dx-=Kn}}function on(pa){var Pa=Vt||pe(pa),Na=Pa[0];return Na.x=Na.y=0,Na.value?(Na.dx=Ke[0],Na.dy=Ke[1]):Na.dx=Na.dy=0,Vt&&pe.revalue(Na),Pr([Na],Na.dx*Na.dy/Na.value),(Vt?Zr:kr)(Na),Tt&&(Vt=Pa),Pa}return on.size=function(pa){return arguments.length?(Ke=pa,on):Ke},on.padding=function(pa){if(!arguments.length)return dt;function Pa(ln){var Ba=pa.call(on,ln,ln.depth);return Ba==null?Kr(ln):Vr(ln,typeof Ba=="number"?[Ba,Ba,Ba,Ba]:Ba)}function Na(ln){return Vr(ln,pa)}var an;return gt=(dt=pa)==null?Kr:(an=typeof pa)=="function"?Pa:(an==="number"&&(pa=[pa,pa,pa,pa]),Na),on},on.round=function(pa){return arguments.length?(Le=pa?Math.round:Number,on):Le!=Number},on.sticky=function(pa){return arguments.length?(Tt=pa,Vt=null,on):Tt},on.ratio=function(pa){return arguments.length?(sr=pa,on):sr},on.mode=function(pa){return arguments.length?(jt=pa+"",on):jt},tl(on,pe)};function Kr(pe){return{x:pe.x,y:pe.y,dx:pe.dx,dy:pe.dy}}function Vr(pe,Le){var Ke=pe.x+Le[3],dt=pe.y+Le[0],gt=pe.dx-Le[1]-Le[3],Tt=pe.dy-Le[0]-Le[2];return gt<0&&(Ke+=gt/2,gt=0),Tt<0&&(dt+=Tt/2,Tt=0),{x:Ke,y:dt,dx:gt,dy:Tt}}h.random={normal:function(pe,Le){var Ke=arguments.length;return Ke<2&&(Le=1),Ke<1&&(pe=0),function(){var dt,gt,Tt;do dt=Math.random()*2-1,gt=Math.random()*2-1,Tt=dt*dt+gt*gt;while(!Tt||Tt>1);return pe+Le*dt*Math.sqrt(-2*Math.log(Tt)/Tt)}},logNormal:function(){var pe=h.random.normal.apply(h,arguments);return function(){return Math.exp(pe())}},bates:function(pe){var Le=h.random.irwinHall(pe);return function(){return Le()/pe}},irwinHall:function(pe){return function(){for(var Le=0,Ke=0;Ke<pe;Ke++)Le+=Math.random();return Le}}},h.scale={};function ya(pe){var Le=pe[0],Ke=pe[pe.length-1];return Le<Ke?[Le,Ke]:[Ke,Le]}function tn(pe){return pe.rangeExtent?pe.rangeExtent():ya(pe.range())}function Ja(pe,Le,Ke,dt){var gt=Ke(pe[0],pe[1]),Tt=dt(Le[0],Le[1]);return function(Vt){return Tt(gt(Vt))}}function Pn(pe,Le){var Ke=0,dt=pe.length-1,gt=pe[Ke],Tt=pe[dt],Vt;return Tt<gt&&(Vt=Ke,Ke=dt,dt=Vt,Vt=gt,gt=Tt,Tt=Vt),pe[Ke]=Le.floor(gt),pe[dt]=Le.ceil(Tt),pe}function Bn(pe){return pe?{floor:function(Le){return Math.floor(Le/pe)*pe},ceil:function(Le){return Math.ceil(Le/pe)*pe}}:ti}var ti={floor:F,ceil:F};function xn(pe,Le,Ke,dt){var gt=[],Tt=[],Vt=0,jt=Math.min(pe.length,Le.length)-1;for(pe[jt]<pe[0]&&(pe=pe.slice().reverse(),Le=Le.slice().reverse());++Vt<=jt;)gt.push(Ke(pe[Vt-1],pe[Vt])),Tt.push(dt(Le[Vt-1],Le[Vt]));return function(sr){var Pr=h.bisect(pe,sr,1,jt)-1;return Tt[Pr](gt[Pr](sr))}}h.scale.linear=function(){return Gn([0,1],[0,1],Go,!1)};function Gn(pe,Le,Ke,dt){var gt,Tt;function Vt(){var sr=Math.min(pe.length,Le.length)>2?xn:Ja,Pr=dt?af:Cf;return gt=sr(pe,Le,Pr,Ke),Tt=sr(Le,pe,Pr,Go),jt}function jt(sr){return gt(sr)}return jt.invert=function(sr){return Tt(sr)},jt.domain=function(sr){return arguments.length?(pe=sr.map(Number),Vt()):pe},jt.range=function(sr){return arguments.length?(Le=sr,Vt()):Le},jt.rangeRound=function(sr){return jt.range(sr).interpolate(sc)},jt.clamp=function(sr){return arguments.length?(dt=sr,Vt()):dt},jt.interpolate=function(sr){return arguments.length?(Ke=sr,Vt()):Ke},jt.ticks=function(sr){return Hi(pe,sr)},jt.tickFormat=function(sr,Pr){return d3_scale_linearTickFormat(pe,sr,Pr)},jt.nice=function(sr){return pn(pe,sr),Vt()},jt.copy=function(){return Gn(pe,Le,Ke,dt)},Vt()}function kn(pe,Le){return h.rebind(pe,Le,"range","rangeRound","interpolate","clamp")}function pn(pe,Le){return Pn(pe,Bn(ii(pe,Le)[2])),Pn(pe,Bn(ii(pe,Le)[2])),pe}function ii(pe,Le){Le==null&&(Le=10);var Ke=ya(pe),dt=Ke[1]-Ke[0],gt=Math.pow(10,Math.floor(Math.log(dt/Le)/Math.LN10)),Tt=Le/dt*gt;return Tt<=.15?gt*=10:Tt<=.35?gt*=5:Tt<=.75&&(gt*=2),Ke[0]=Math.ceil(Ke[0]/gt)*gt,Ke[1]=Math.floor(Ke[1]/gt)*gt+gt*.5,Ke[2]=gt,Ke}function Hi(pe,Le){return h.range.apply(h,ii(pe,Le))}h.scale.log=function(){return Oi(h.scale.linear().domain([0,1]),10,!0,[1,10])};function Oi(pe,Le,Ke,dt){function gt(jt){return(Ke?Math.log(jt<0?0:jt):-Math.log(jt>0?0:-jt))/Math.log(Le)}function Tt(jt){return Ke?Math.pow(Le,jt):-Math.pow(Le,-jt)}function Vt(jt){return pe(gt(jt))}return Vt.invert=function(jt){return Tt(pe.invert(jt))},Vt.domain=function(jt){return arguments.length?(Ke=jt[0]>=0,pe.domain((dt=jt.map(Number)).map(gt)),Vt):dt},Vt.base=function(jt){return arguments.length?(Le=+jt,pe.domain(dt.map(gt)),Vt):Le},Vt.nice=function(){var jt=Pn(dt.map(gt),Ke?Math:Yi);return pe.domain(jt),dt=jt.map(Tt),Vt},Vt.ticks=function(){var jt=ya(dt),sr=[],Pr=jt[0],kr=jt[1],Zr=Math.floor(gt(Pr)),la=Math.ceil(gt(kr)),ca=Le%1?2:Le;if(isFinite(la-Zr)){if(Ke){for(;Zr<la;Zr++)for(var on=1;on<ca;on++)sr.push(Tt(Zr)*on);sr.push(Tt(Zr))}else for(sr.push(Tt(Zr));Zr++<la;)for(var on=ca-1;on>0;on--)sr.push(Tt(Zr)*on);for(Zr=0;sr[Zr]<Pr;Zr++);for(la=sr.length;sr[la-1]>kr;la--);sr=sr.slice(Zr,la)}return sr},Vt.copy=function(){return Oi(pe.copy(),Le,Ke,dt)},kn(Vt,pe)}var Yi={floor:function(pe){return-Math.ceil(-pe)},ceil:function(pe){return-Math.floor(-pe)}};h.scale.pow=function(){return Xi(h.scale.linear(),1,[0,1])};function Xi(pe,Le,Ke){var dt=si(Le),gt=si(1/Le);function Tt(Vt){return pe(dt(Vt))}return Tt.invert=function(Vt){return gt(pe.invert(Vt))},Tt.domain=function(Vt){return arguments.length?(pe.domain((Ke=Vt.map(Number)).map(dt)),Tt):Ke},Tt.ticks=function(Vt){return Hi(Ke,Vt)},Tt.tickFormat=function(Vt,jt){return d3_scale_linearTickFormat(Ke,Vt,jt)},Tt.nice=function(Vt){return Tt.domain(pn(Ke,Vt))},Tt.exponent=function(Vt){return arguments.length?(dt=si(Le=Vt),gt=si(1/Le),pe.domain(Ke.map(dt)),Tt):Le},Tt.copy=function(){return Xi(pe.copy(),Le,Ke)},kn(Tt,pe)}function si(pe){return function(Le){return Le<0?-Math.pow(-Le,pe):Math.pow(Le,pe)}}h.scale.sqrt=function(){return h.scale.pow().exponent(.5)},h.scale.ordinal=function(){return Xn([],{t:"range",a:[[]]})};function Xn(pe,Le){var Ke,dt,gt;function Tt(jt){return dt[((Ke.get(jt)||(Le.t==="range"?Ke.set(jt,pe.push(jt)):NaN))-1)%dt.length]}function Vt(jt,sr){return h.range(pe.length).map(function(Pr){return jt+sr*Pr})}return Tt.domain=function(jt){if(!arguments.length)return pe;pe=[],Ke=new S;for(var sr=-1,Pr=jt.length,kr;++sr<Pr;)Ke.has(kr=jt[sr])||Ke.set(kr,pe.push(kr));return Tt[Le.t].apply(Tt,Le.a)},Tt.range=function(jt){return arguments.length?(dt=jt,gt=0,Le={t:"range",a:arguments},Tt):dt},Tt.rangePoints=function(jt,sr){arguments.length<2&&(sr=0);var Pr=jt[0],kr=jt[1],Zr=pe.length<2?(Pr=(Pr+kr)/2,0):(kr-Pr)/(pe.length-1+sr);return dt=Vt(Pr+Zr*sr/2,Zr),gt=0,Le={t:"rangePoints",a:arguments},Tt},Tt.rangeRoundPoints=function(jt,sr){arguments.length<2&&(sr=0);var Pr=jt[0],kr=jt[1],Zr=pe.length<2?(Pr=kr=Math.round((Pr+kr)/2),0):(kr-Pr)/(pe.length-1+sr)|0;return dt=Vt(Pr+Math.round(Zr*sr/2+(kr-Pr-(pe.length-1+sr)*Zr)/2),Zr),gt=0,Le={t:"rangeRoundPoints",a:arguments},Tt},Tt.rangeBands=function(jt,sr,Pr){arguments.length<2&&(sr=0),arguments.length<3&&(Pr=sr);var kr=jt[1]<jt[0],Zr=jt[kr-0],la=jt[1-kr],ca=(la-Zr)/(pe.length-sr+2*Pr);return dt=Vt(Zr+ca*Pr,ca),kr&&dt.reverse(),gt=ca*(1-sr),Le={t:"rangeBands",a:arguments},Tt},Tt.rangeRoundBands=function(jt,sr,Pr){arguments.length<2&&(sr=0),arguments.length<3&&(Pr=sr);var kr=jt[1]<jt[0],Zr=jt[kr-0],la=jt[1-kr],ca=Math.floor((la-Zr)/(pe.length-sr+2*Pr));return dt=Vt(Zr+Math.round((la-Zr-(pe.length-sr)*ca)/2),ca),kr&&dt.reverse(),gt=Math.round(ca*(1-sr)),Le={t:"rangeRoundBands",a:arguments},Tt},Tt.rangeBand=function(){return gt},Tt.rangeExtent=function(){return ya(Le.a[0])},Tt.copy=function(){return Xn(pe,Le)},Tt.domain(pe)}h.scale.category10=function(){return h.scale.ordinal().range(no)},h.scale.category20=function(){return h.scale.ordinal().range(Uo)},h.scale.category20b=function(){return h.scale.ordinal().range(ys)},h.scale.category20c=function(){return h.scale.ordinal().range(Os)};var no=[2062260,16744206,2924588,14034728,9725885,9197131,14907330,8355711,12369186,1556175].map(Er),Uo=[2062260,11454440,16744206,16759672,2924588,10018698,14034728,16750742,9725885,12955861,9197131,12885140,14907330,16234194,8355711,13092807,12369186,14408589,1556175,10410725].map(Er),ys=[3750777,5395619,7040719,10264286,6519097,9216594,11915115,13556636,9202993,12426809,15186514,15190932,8666169,11356490,14049643,15177372,8077683,10834324,13528509,14589654].map(Er),Os=[3244733,7057110,10406625,13032431,15095053,16616764,16625259,16634018,3253076,7652470,10607003,13101504,7695281,10394312,12369372,14342891,6513507,9868950,12434877,14277081].map(Er);h.scale.quantile=function(){return ms([],[])};function ms(pe,Le){var Ke;function dt(){var Tt=0,Vt=Le.length;for(Ke=[];++Tt<Vt;)Ke[Tt-1]=h.quantile(pe,Tt/Vt);return gt}function gt(Tt){if(!isNaN(Tt=+Tt))return Le[h.bisect(Ke,Tt)]}return gt.domain=function(Tt){return arguments.length?(pe=Tt.map(c).filter(f).sort(s),dt()):pe},gt.range=function(Tt){return arguments.length?(Le=Tt,dt()):Le},gt.quantiles=function(){return Ke},gt.invertExtent=function(Tt){return Tt=Le.indexOf(Tt),Tt<0?[NaN,NaN]:[Tt>0?Ke[Tt-1]:pe[0],Tt<Ke.length?Ke[Tt]:pe[pe.length-1]]},gt.copy=function(){return ms(pe,Le)},dt()}h.scale.quantize=function(){return Bs(0,1,[0,1])};function Bs(pe,Le,Ke){var dt,gt;function Tt(jt){return Ke[Math.max(0,Math.min(gt,Math.floor(dt*(jt-pe))))]}function Vt(){return dt=Ke.length/(Le-pe),gt=Ke.length-1,Tt}return Tt.domain=function(jt){return arguments.length?(pe=+jt[0],Le=+jt[jt.length-1],Vt()):[pe,Le]},Tt.range=function(jt){return arguments.length?(Ke=jt,Vt()):Ke},Tt.invertExtent=function(jt){return jt=Ke.indexOf(jt),jt=jt<0?NaN:jt/dt+pe,[jt,jt+1/dt]},Tt.copy=function(){return Bs(pe,Le,Ke)},Vt()}h.scale.threshold=function(){return Qo([.5],[0,1])};function Qo(pe,Le){function Ke(dt){if(dt<=dt)return Le[h.bisect(pe,dt)]}return Ke.domain=function(dt){return arguments.length?(pe=dt,Ke):pe},Ke.range=function(dt){return arguments.length?(Le=dt,Ke):Le},Ke.invertExtent=function(dt){return dt=Le.indexOf(dt),[pe[dt-1],pe[dt]]},Ke.copy=function(){return Qo(pe,Le)},Ke}h.scale.identity=function(){return vl([0,1])};function vl(pe){function Le(Ke){return+Ke}return Le.invert=Le,Le.domain=Le.range=function(Ke){return arguments.length?(pe=Ke.map(Le),Le):pe},Le.ticks=function(Ke){return Hi(pe,Ke)},Le.tickFormat=function(Ke,dt){return d3_scale_linearTickFormat(pe,Ke,dt)},Le.copy=function(){return vl(pe)},Le}h.svg={};function fl(){return 0}h.svg.arc=function(){var pe=Ti,Le=_o,Ke=fl,dt=zs,gt=Es,Tt=cs,Vt=Kl;function jt(){var Pr=Math.max(0,+pe.apply(this,arguments)),kr=Math.max(0,+Le.apply(this,arguments)),Zr=gt.apply(this,arguments)-Ie,la=Tt.apply(this,arguments)-Ie,ca=Math.abs(la-Zr),on=Zr>la?0:1;if(kr<Pr&&(pa=kr,kr=Pr,Pr=pa),ca>=be)return sr(kr,on)+(Pr?sr(Pr,1-on):"")+"Z";var pa,Pa,Na,an,ln=0,Ba=0,Dn,oi,Kn,ni,Ai,Ci,Wo,Ri,co=[];if((an=(+Vt.apply(this,arguments)||0)/2)&&(Na=dt===zs?Math.sqrt(Pr*Pr+kr*kr):+dt.apply(this,arguments),on||(Ba*=-1),kr&&(Ba=Ct(Na/kr*Math.sin(an))),Pr&&(ln=Ct(Na/Pr*Math.sin(an)))),kr){Dn=kr*Math.cos(Zr+Ba),oi=kr*Math.sin(Zr+Ba),Kn=kr*Math.cos(la-Ba),ni=kr*Math.sin(la-Ba);var es=Math.abs(la-Zr-2*Ba)<=de?0:1;if(Ba&&$l(Dn,oi,Kn,ni)===on^es){var _l=(Zr+la)/2;Dn=kr*Math.cos(_l),oi=kr*Math.sin(_l),Kn=ni=null}}else Dn=oi=0;if(Pr){Ai=Pr*Math.cos(la-ln),Ci=Pr*Math.sin(la-ln),Wo=Pr*Math.cos(Zr+ln),Ri=Pr*Math.sin(Zr+ln);var Gs=Math.abs(Zr-la+2*ln)<=de?0:1;if(ln&&$l(Ai,Ci,Wo,Ri)===1-on^Gs){var gi=(Zr+la)/2;Ai=Pr*Math.cos(gi),Ci=Pr*Math.sin(gi),Wo=Ri=null}}else Ai=Ci=0;if(ca>We&&(pa=Math.min(Math.abs(kr-Pr)/2,+Ke.apply(this,arguments)))>.001){Pa=Pr<kr^on?0:1;var Ro=pa,Ko=pa;if(ca<de){var Ns=Wo==null?[Ai,Ci]:Kn==null?[Dn,oi]:Vo([Dn,oi],[Wo,Ri],[Kn,ni],[Ai,Ci]),ks=Dn-Ns[0],ru=oi-Ns[1],_s=Kn-Ns[0],Us=ni-Ns[1],bu=1/Math.sin(Math.acos((ks*_s+ru*Us)/(Math.sqrt(ks*ks+ru*ru)*Math.sqrt(_s*_s+Us*Us)))/2),pl=Math.sqrt(Ns[0]*Ns[0]+Ns[1]*Ns[1]);Ko=Math.min(pa,(Pr-pl)/(bu-1)),Ro=Math.min(pa,(kr-pl)/(bu+1))}if(Kn!=null){var lt=tu(Wo==null?[Ai,Ci]:[Wo,Ri],[Dn,oi],kr,Ro,on),ir=tu([Kn,ni],[Ai,Ci],kr,Ro,on);pa===Ro?co.push("M",lt[0],"A",Ro,",",Ro," 0 0,",Pa," ",lt[1],"A",kr,",",kr," 0 ",1-on^$l(lt[1][0],lt[1][1],ir[1][0],ir[1][1]),",",on," ",ir[1],"A",Ro,",",Ro," 0 0,",Pa," ",ir[0]):co.push("M",lt[0],"A",Ro,",",Ro," 0 1,",Pa," ",ir[0])}else co.push("M",Dn,",",oi);if(Wo!=null){var ur=tu([Dn,oi],[Wo,Ri],Pr,-Ko,on),fa=tu([Ai,Ci],Kn==null?[Dn,oi]:[Kn,ni],Pr,-Ko,on);pa===Ko?co.push("L",fa[0],"A",Ko,",",Ko," 0 0,",Pa," ",fa[1],"A",Pr,",",Pr," 0 ",on^$l(fa[1][0],fa[1][1],ur[1][0],ur[1][1]),",",1-on," ",ur[1],"A",Ko,",",Ko," 0 0,",Pa," ",ur[0]):co.push("L",fa[0],"A",Ko,",",Ko," 0 0,",Pa," ",ur[0])}else co.push("L",Ai,",",Ci)}else co.push("M",Dn,",",oi),Kn!=null&&co.push("A",kr,",",kr," 0 ",es,",",on," ",Kn,",",ni),co.push("L",Ai,",",Ci),Wo!=null&&co.push("A",Pr,",",Pr," 0 ",Gs,",",1-on," ",Wo,",",Ri);return co.push("Z"),co.join("")}function sr(Pr,kr){return"M0,"+Pr+"A"+Pr+","+Pr+" 0 1,"+kr+" 0,"+-Pr+"A"+Pr+","+Pr+" 0 1,"+kr+" 0,"+Pr}return jt.innerRadius=function(Pr){return arguments.length?(pe=At(Pr),jt):pe},jt.outerRadius=function(Pr){return arguments.length?(Le=At(Pr),jt):Le},jt.cornerRadius=function(Pr){return arguments.length?(Ke=At(Pr),jt):Ke},jt.padRadius=function(Pr){return arguments.length?(dt=Pr==zs?zs:At(Pr),jt):dt},jt.startAngle=function(Pr){return arguments.length?(gt=At(Pr),jt):gt},jt.endAngle=function(Pr){return arguments.length?(Tt=At(Pr),jt):Tt},jt.padAngle=function(Pr){return arguments.length?(Vt=At(Pr),jt):Vt},jt.centroid=function(){var Pr=(+pe.apply(this,arguments)+ +Le.apply(this,arguments))/2,kr=(+gt.apply(this,arguments)+ +Tt.apply(this,arguments))/2-Ie;return[Math.cos(kr)*Pr,Math.sin(kr)*Pr]},jt};var zs="auto";function Ti(pe){return pe.innerRadius}function _o(pe){return pe.outerRadius}function Es(pe){return pe.startAngle}function cs(pe){return pe.endAngle}function Kl(pe){return pe&&pe.padAngle}function $l(pe,Le,Ke,dt){return(pe-Ke)*Le-(Le-dt)*pe>0?0:1}function tu(pe,Le,Ke,dt,gt){var Tt=pe[0]-Le[0],Vt=pe[1]-Le[1],jt=(gt?dt:-dt)/Math.sqrt(Tt*Tt+Vt*Vt),sr=jt*Vt,Pr=-jt*Tt,kr=pe[0]+sr,Zr=pe[1]+Pr,la=Le[0]+sr,ca=Le[1]+Pr,on=(kr+la)/2,pa=(Zr+ca)/2,Pa=la-kr,Na=ca-Zr,an=Pa*Pa+Na*Na,ln=Ke-dt,Ba=kr*ca-la*Zr,Dn=(Na<0?-1:1)*Math.sqrt(Math.max(0,ln*ln*an-Ba*Ba)),oi=(Ba*Na-Pa*Dn)/an,Kn=(-Ba*Pa-Na*Dn)/an,ni=(Ba*Na+Pa*Dn)/an,Ai=(-Ba*Pa+Na*Dn)/an,Ci=oi-on,Wo=Kn-pa,Ri=ni-on,co=Ai-pa;return Ci*Ci+Wo*Wo>Ri*Ri+co*co&&(oi=ni,Kn=Ai),[[oi-sr,Kn-Pr],[oi*Ke/ln,Kn*Ke/ln]]}function gc(){return!0}function Jl(pe){var Le=pi,Ke=Pi,dt=gc,gt=dl,Tt=gt.key,Vt=.7;function jt(sr){var Pr=[],kr=[],Zr=-1,la=sr.length,ca,on=At(Le),pa=At(Ke);function Pa(){Pr.push("M",gt(pe(kr),Vt))}for(;++Zr<la;)dt.call(this,ca=sr[Zr],Zr)?kr.push([+on.call(this,ca,Zr),+pa.call(this,ca,Zr)]):kr.length&&(Pa(),kr=[]);return kr.length&&Pa(),Pr.length?Pr.join(""):null}return jt.x=function(sr){return arguments.length?(Le=sr,jt):Le},jt.y=function(sr){return arguments.length?(Ke=sr,jt):Ke},jt.defined=function(sr){return arguments.length?(dt=sr,jt):dt},jt.interpolate=function(sr){return arguments.length?(typeof sr=="function"?Tt=gt=sr:Tt=(gt=Qu.get(sr)||dl).key,jt):Tt},jt.tension=function(sr){return arguments.length?(Vt=sr,jt):Vt},jt}h.svg.line=function(){return Jl(F)};var Qu=h.map({linear:dl,"linear-closed":ec,step:Ki,"step-before":oo,"step-after":tc,basis:Te,"basis-open":Se,"basis-closed":Re,bundle:ft,cardinal:ze,"cardinal-open":xu,"cardinal-closed":fu,monotone:Ye});Qu.forEach(function(pe,Le){Le.key=pe,Le.closed=/-closed$/.test(pe)});function dl(pe){return pe.length>1?pe.join("L"):pe+"Z"}function ec(pe){return pe.join("L")+"Z"}function Ki(pe){for(var Le=0,Ke=pe.length,dt=pe[0],gt=[dt[0],",",dt[1]];++Le<Ke;)gt.push("H",(dt[0]+(dt=pe[Le])[0])/2,"V",dt[1]);return Ke>1&>.push("H",dt[0]),gt.join("")}function oo(pe){for(var Le=0,Ke=pe.length,dt=pe[0],gt=[dt[0],",",dt[1]];++Le<Ke;)gt.push("V",(dt=pe[Le])[1],"H",dt[0]);return gt.join("")}function tc(pe){for(var Le=0,Ke=pe.length,dt=pe[0],gt=[dt[0],",",dt[1]];++Le<Ke;)gt.push("H",(dt=pe[Le])[0],"V",dt[1]);return gt.join("")}function xu(pe,Le){return pe.length<4?dl(pe):pe[1]+L(pe.slice(1,-1),ne(pe,Le))}function fu(pe,Le){return pe.length<3?ec(pe):pe[0]+L((pe.push(pe[0]),pe),ne([pe[pe.length-2]].concat(pe,[pe[1]]),Le))}function ze(pe,Le){return pe.length<3?dl(pe):pe[0]+L(pe,ne(pe,Le))}function L(pe,Le){if(Le.length<1||pe.length!=Le.length&&pe.length!=Le.length+2)return dl(pe);var Ke=pe.length!=Le.length,dt="",gt=pe[0],Tt=pe[1],Vt=Le[0],jt=Vt,sr=1;if(Ke&&(dt+="Q"+(Tt[0]-Vt[0]*2/3)+","+(Tt[1]-Vt[1]*2/3)+","+Tt[0]+","+Tt[1],gt=pe[1],sr=2),Le.length>1){jt=Le[1],Tt=pe[sr],sr++,dt+="C"+(gt[0]+Vt[0])+","+(gt[1]+Vt[1])+","+(Tt[0]-jt[0])+","+(Tt[1]-jt[1])+","+Tt[0]+","+Tt[1];for(var Pr=2;Pr<Le.length;Pr++,sr++)Tt=pe[sr],jt=Le[Pr],dt+="S"+(Tt[0]-jt[0])+","+(Tt[1]-jt[1])+","+Tt[0]+","+Tt[1]}if(Ke){var kr=pe[sr];dt+="Q"+(Tt[0]+jt[0]*2/3)+","+(Tt[1]+jt[1]*2/3)+","+kr[0]+","+kr[1]}return dt}function ne(pe,Le){for(var Ke=[],dt=(1-Le)/2,gt,Tt=pe[0],Vt=pe[1],jt=1,sr=pe.length;++jt<sr;)gt=Tt,Tt=Vt,Vt=pe[jt],Ke.push([dt*(Vt[0]-gt[0]),dt*(Vt[1]-gt[1])]);return Ke}function Te(pe){if(pe.length<3)return dl(pe);var Le=1,Ke=pe.length,dt=pe[0],gt=dt[0],Tt=dt[1],Vt=[gt,gt,gt,(dt=pe[1])[0]],jt=[Tt,Tt,Tt,dt[1]],sr=[gt,",",Tt,"L",xt(fr,Vt),",",xt(fr,jt)];for(pe.push(pe[Ke-1]);++Le<=Ke;)dt=pe[Le],Vt.shift(),Vt.push(dt[0]),jt.shift(),jt.push(dt[1]),pr(sr,Vt,jt);return pe.pop(),sr.push("L",dt),sr.join("")}function Se(pe){if(pe.length<4)return dl(pe);for(var Le=[],Ke=-1,dt=pe.length,gt,Tt=[0],Vt=[0];++Ke<3;)gt=pe[Ke],Tt.push(gt[0]),Vt.push(gt[1]);for(Le.push(xt(fr,Tt)+","+xt(fr,Vt)),--Ke;++Ke<dt;)gt=pe[Ke],Tt.shift(),Tt.push(gt[0]),Vt.shift(),Vt.push(gt[1]),pr(Le,Tt,Vt);return Le.join("")}function Re(pe){for(var Le,Ke=-1,dt=pe.length,gt=dt+4,Tt,Vt=[],jt=[];++Ke<4;)Tt=pe[Ke%dt],Vt.push(Tt[0]),jt.push(Tt[1]);for(Le=[xt(fr,Vt),",",xt(fr,jt)],--Ke;++Ke<gt;)Tt=pe[Ke%dt],Vt.shift(),Vt.push(Tt[0]),jt.shift(),jt.push(Tt[1]),pr(Le,Vt,jt);return Le.join("")}function ft(pe,Le){var Ke=pe.length-1;if(Ke)for(var dt=pe[0][0],gt=pe[0][1],Tt=pe[Ke][0]-dt,Vt=pe[Ke][1]-gt,jt=-1,sr,Pr;++jt<=Ke;)sr=pe[jt],Pr=jt/Ke,sr[0]=Le*sr[0]+(1-Le)*(dt+Pr*Tt),sr[1]=Le*sr[1]+(1-Le)*(gt+Pr*Vt);return Te(pe)}function xt(pe,Le){return pe[0]*Le[0]+pe[1]*Le[1]+pe[2]*Le[2]+pe[3]*Le[3]}var Dt=[0,2/3,1/3,0],er=[0,1/3,2/3,0],fr=[0,1/6,2/3,1/6];function pr(pe,Le,Ke){pe.push("C",xt(Dt,Le),",",xt(Dt,Ke),",",xt(er,Le),",",xt(er,Ke),",",xt(fr,Le),",",xt(fr,Ke))}function Br(pe,Le){return(Le[1]-pe[1])/(Le[0]-pe[0])}function ea(pe){for(var Le=0,Ke=pe.length-1,dt=[],gt=pe[0],Tt=pe[1],Vt=dt[0]=Br(gt,Tt);++Le<Ke;)dt[Le]=(Vt+(Vt=Br(gt=Tt,Tt=pe[Le+1])))/2;return dt[Le]=Vt,dt}function Ve(pe){for(var Le=[],Ke,dt,gt,Tt,Vt=ea(pe),jt=-1,sr=pe.length-1;++jt<sr;)Ke=Br(pe[jt],pe[jt+1]),l(Ke)<We?Vt[jt]=Vt[jt+1]=0:(dt=Vt[jt]/Ke,gt=Vt[jt+1]/Ke,Tt=dt*dt+gt*gt,Tt>9&&(Tt=Ke*3/Math.sqrt(Tt),Vt[jt]=Tt*dt,Vt[jt+1]=Tt*gt));for(jt=-1;++jt<=sr;)Tt=(pe[Math.min(sr,jt+1)][0]-pe[Math.max(0,jt-1)][0])/(6*(1+Vt[jt]*Vt[jt])),Le.push([Tt||0,Vt[jt]*Tt||0]);return Le}function Ye(pe){return pe.length<3?dl(pe):pe[0]+L(pe,Ve(pe))}h.svg.line.radial=function(){var pe=Jl(it);return pe.radius=pe.x,delete pe.x,pe.angle=pe.y,delete pe.y,pe};function it(pe){for(var Le,Ke=-1,dt=pe.length,gt,Tt;++Ke<dt;)Le=pe[Ke],gt=Le[0],Tt=Le[1]-Ie,Le[0]=gt*Math.cos(Tt),Le[1]=gt*Math.sin(Tt);return pe}function vt(pe){var Le=pi,Ke=pi,dt=0,gt=Pi,Tt=gc,Vt=dl,jt=Vt.key,sr=Vt,Pr="L",kr=.7;function Zr(la){var ca=[],on=[],pa=[],Pa=-1,Na=la.length,an,ln=At(Le),Ba=At(dt),Dn=Le===Ke?function(){return Kn}:At(Ke),oi=dt===gt?function(){return ni}:At(gt),Kn,ni;function Ai(){ca.push("M",Vt(pe(pa),kr),Pr,sr(pe(on.reverse()),kr),"Z")}for(;++Pa<Na;)Tt.call(this,an=la[Pa],Pa)?(on.push([Kn=+ln.call(this,an,Pa),ni=+Ba.call(this,an,Pa)]),pa.push([+Dn.call(this,an,Pa),+oi.call(this,an,Pa)])):on.length&&(Ai(),on=[],pa=[]);return on.length&&Ai(),ca.length?ca.join(""):null}return Zr.x=function(la){return arguments.length?(Le=Ke=la,Zr):Ke},Zr.x0=function(la){return arguments.length?(Le=la,Zr):Le},Zr.x1=function(la){return arguments.length?(Ke=la,Zr):Ke},Zr.y=function(la){return arguments.length?(dt=gt=la,Zr):gt},Zr.y0=function(la){return arguments.length?(dt=la,Zr):dt},Zr.y1=function(la){return arguments.length?(gt=la,Zr):gt},Zr.defined=function(la){return arguments.length?(Tt=la,Zr):Tt},Zr.interpolate=function(la){return arguments.length?(typeof la=="function"?jt=Vt=la:jt=(Vt=Qu.get(la)||dl).key,sr=Vt.reverse||Vt,Pr=Vt.closed?"M":"L",Zr):jt},Zr.tension=function(la){return arguments.length?(kr=la,Zr):kr},Zr}oo.reverse=tc,tc.reverse=oo,h.svg.area=function(){return vt(F)},h.svg.area.radial=function(){var pe=vt(it);return pe.radius=pe.x,delete pe.x,pe.innerRadius=pe.x0,delete pe.x0,pe.outerRadius=pe.x1,delete pe.x1,pe.angle=pe.y,delete pe.y,pe.startAngle=pe.y0,delete pe.y0,pe.endAngle=pe.y1,delete pe.y1,pe};function St(pe){return pe.source}function _t(pe){return pe.target}h.svg.chord=function(){var pe=St,Le=_t,Ke=Lt,dt=Es,gt=cs;function Tt(kr,Zr){var la=Vt(this,pe,kr,Zr),ca=Vt(this,Le,kr,Zr);return"M"+la.p0+sr(la.r,la.p1,la.a1-la.a0)+(jt(la,ca)?Pr(la.r,la.p1,la.r,la.p0):Pr(la.r,la.p1,ca.r,ca.p0)+sr(ca.r,ca.p1,ca.a1-ca.a0)+Pr(ca.r,ca.p1,la.r,la.p0))+"Z"}function Vt(kr,Zr,la,ca){var on=Zr.call(kr,la,ca),pa=Ke.call(kr,on,ca),Pa=dt.call(kr,on,ca)-Ie,Na=gt.call(kr,on,ca)-Ie;return{r:pa,a0:Pa,a1:Na,p0:[pa*Math.cos(Pa),pa*Math.sin(Pa)],p1:[pa*Math.cos(Na),pa*Math.sin(Na)]}}function jt(kr,Zr){return kr.a0==Zr.a0&&kr.a1==Zr.a1}function sr(kr,Zr,la){return"A"+kr+","+kr+" 0 "+ +(la>de)+",1 "+Zr}function Pr(kr,Zr,la,ca){return"Q 0,0 "+ca}return Tt.radius=function(kr){return arguments.length?(Ke=At(kr),Tt):Ke},Tt.source=function(kr){return arguments.length?(pe=At(kr),Tt):pe},Tt.target=function(kr){return arguments.length?(Le=At(kr),Tt):Le},Tt.startAngle=function(kr){return arguments.length?(dt=At(kr),Tt):dt},Tt.endAngle=function(kr){return arguments.length?(gt=At(kr),Tt):gt},Tt};function Lt(pe){return pe.radius}h.svg.diagonal=function(){var pe=St,Le=_t,Ke=nr;function dt(gt,Tt){var Vt=pe.call(this,gt,Tt),jt=Le.call(this,gt,Tt),sr=(Vt.y+jt.y)/2,Pr=[Vt,{x:Vt.x,y:sr},{x:jt.x,y:sr},jt];return Pr=Pr.map(Ke),"M"+Pr[0]+"C"+Pr[1]+" "+Pr[2]+" "+Pr[3]}return dt.source=function(gt){return arguments.length?(pe=At(gt),dt):pe},dt.target=function(gt){return arguments.length?(Le=At(gt),dt):Le},dt.projection=function(gt){return arguments.length?(Ke=gt,dt):Ke},dt};function nr(pe){return[pe.x,pe.y]}h.svg.diagonal.radial=function(){var pe=h.svg.diagonal(),Le=nr,Ke=pe.projection;return pe.projection=function(dt){return arguments.length?Ke(cr(Le=dt)):Le},pe};function cr(pe){return function(){var Le=pe.apply(this,arguments),Ke=Le[0],dt=Le[1]-Ie;return[Ke*Math.cos(dt),Ke*Math.sin(dt)]}}h.svg.symbol=function(){var pe=Cr,Le=gr;function Ke(dt,gt){return(ua.get(pe.call(this,dt,gt))||Wr)(Le.call(this,dt,gt))}return Ke.type=function(dt){return arguments.length?(pe=At(dt),Ke):pe},Ke.size=function(dt){return arguments.length?(Le=At(dt),Ke):Le},Ke};function gr(){return 64}function Cr(){return"circle"}function Wr(pe){var Le=Math.sqrt(pe/de);return"M0,"+Le+"A"+Le+","+Le+" 0 1,1 0,"+-Le+"A"+Le+","+Le+" 0 1,1 0,"+Le+"Z"}var ua=h.map({circle:Wr,cross:function(pe){var Le=Math.sqrt(pe/5)/2;return"M"+-3*Le+","+-Le+"H"+-Le+"V"+-3*Le+"H"+Le+"V"+-Le+"H"+3*Le+"V"+Le+"H"+Le+"V"+3*Le+"H"+-Le+"V"+Le+"H"+-3*Le+"Z"},diamond:function(pe){var Le=Math.sqrt(pe/(2*Ma)),Ke=Le*Ma;return"M0,"+-Le+"L"+Ke+",0 0,"+Le+" "+-Ke+",0Z"},square:function(pe){var Le=Math.sqrt(pe)/2;return"M"+-Le+","+-Le+"L"+Le+","+-Le+" "+Le+","+Le+" "+-Le+","+Le+"Z"},"triangle-down":function(pe){var Le=Math.sqrt(pe/va),Ke=Le*va/2;return"M0,"+Ke+"L"+Le+","+-Ke+" "+-Le+","+-Ke+"Z"},"triangle-up":function(pe){var Le=Math.sqrt(pe/va),Ke=Le*va/2;return"M0,"+-Ke+"L"+Le+","+Ke+" "+-Le+","+Ke+"Z"}});h.svg.symbolTypes=ua.keys();var va=Math.sqrt(3),Ma=Math.tan(30*Xe);Q.transition=function(pe){for(var Le=Mi||++li,Ke=Yo(pe),dt=[],gt,Tt,Vt=xi||{time:Date.now(),ease:Ni,delay:0,duration:250},jt=-1,sr=this.length;++jt<sr;){dt.push(gt=[]);for(var Pr=this[jt],kr=-1,Zr=Pr.length;++kr<Zr;)(Tt=Pr[kr])&&ko(Tt,kr,Ke,Le,Vt),gt.push(Tt)}return An(dt,Ke,Le)},Q.interrupt=function(pe){return this.each(pe==null?en:In(Yo(pe)))};var en=In(Yo());function In(pe){return function(){var Le,Ke,dt;(Le=this[pe])&&(dt=Le[Ke=Le.active])&&(dt.timer.c=null,dt.timer.t=NaN,--Le.count?delete Le[Ke]:delete this[pe],Le.active+=.5,dt.event&&dt.event.interrupt.call(this,this.__data__,dt.index))}}function An(pe,Le,Ke){return q(pe,Rn),pe.namespace=Le,pe.id=Ke,pe}var Rn=[],li=0,Mi,xi;Rn.call=Q.call,Rn.empty=Q.empty,Rn.node=Q.node,Rn.size=Q.size,h.transition=function(pe,Le){return pe&&pe.transition?Mi?pe.transition(Le):pe:h.selection().transition(pe)},h.transition.prototype=Rn,Rn.select=function(pe){var Le=this.id,Ke=this.namespace,dt=[],gt,Tt,Vt;pe=V(pe);for(var jt=-1,sr=this.length;++jt<sr;){dt.push(gt=[]);for(var Pr=this[jt],kr=-1,Zr=Pr.length;++kr<Zr;)(Vt=Pr[kr])&&(Tt=pe.call(Vt,Vt.__data__,kr,jt))?("__data__"in Vt&&(Tt.__data__=Vt.__data__),ko(Tt,kr,Ke,Le,Vt[Ke][Le]),gt.push(Tt)):gt.push(null)}return An(dt,Ke,Le)},Rn.selectAll=function(pe){var Le=this.id,Ke=this.namespace,dt=[],gt,Tt,Vt,jt,sr;pe=re(pe);for(var Pr=-1,kr=this.length;++Pr<kr;)for(var Zr=this[Pr],la=-1,ca=Zr.length;++la<ca;)if(Vt=Zr[la]){sr=Vt[Ke][Le],Tt=pe.call(Vt,Vt.__data__,la,Pr),dt.push(gt=[]);for(var on=-1,pa=Tt.length;++on<pa;)(jt=Tt[on])&&ko(jt,on,Ke,Le,sr),gt.push(jt)}return An(dt,Ke,Le)},Rn.filter=function(pe){var Le=[],Ke,dt,gt;typeof pe!="function"&&(pe=he(pe));for(var Tt=0,Vt=this.length;Tt<Vt;Tt++){Le.push(Ke=[]);for(var dt=this[Tt],jt=0,sr=dt.length;jt<sr;jt++)(gt=dt[jt])&&pe.call(gt,gt.__data__,jt,Tt)&&Ke.push(gt)}return An(Le,this.namespace,this.id)},Rn.tween=function(pe,Le){var Ke=this.id,dt=this.namespace;return arguments.length<2?this.node()[dt][Ke].tween.get(pe):et(this,Le==null?function(gt){gt[dt][Ke].tween.remove(pe)}:function(gt){gt[dt][Ke].tween.set(pe,Le)})};function Ji(pe,Le,Ke,dt){var gt=pe.id,Tt=pe.namespace;return et(pe,typeof Ke=="function"?function(Vt,jt,sr){Vt[Tt][gt].tween.set(Le,dt(Ke.call(Vt,Vt.__data__,jt,sr)))}:(Ke=dt(Ke),function(Vt){Vt[Tt][gt].tween.set(Le,Ke)}))}Rn.attr=function(pe,Le){if(arguments.length<2){for(Le in pe)this.attr(Le,pe[Le]);return this}var Ke=pe=="transform"?Oc:Go,dt=h.ns.qualify(pe);function gt(){this.removeAttribute(dt)}function Tt(){this.removeAttributeNS(dt.space,dt.local)}function Vt(sr){return sr==null?gt:(sr+="",function(){var Pr=this.getAttribute(dt),kr;return Pr!==sr&&(kr=Ke(Pr,sr),function(Zr){this.setAttribute(dt,kr(Zr))})})}function jt(sr){return sr==null?Tt:(sr+="",function(){var Pr=this.getAttributeNS(dt.space,dt.local),kr;return Pr!==sr&&(kr=Ke(Pr,sr),function(Zr){this.setAttributeNS(dt.space,dt.local,kr(Zr))})})}return Ji(this,"attr."+pe,Le,dt.local?jt:Vt)},Rn.attrTween=function(pe,Le){var Ke=h.ns.qualify(pe);function dt(Tt,Vt){var jt=Le.call(this,Tt,Vt,this.getAttribute(Ke));return jt&&function(sr){this.setAttribute(Ke,jt(sr))}}function gt(Tt,Vt){var jt=Le.call(this,Tt,Vt,this.getAttributeNS(Ke.space,Ke.local));return jt&&function(sr){this.setAttributeNS(Ke.space,Ke.local,jt(sr))}}return this.tween("attr."+pe,Ke.local?gt:dt)},Rn.style=function(pe,Le,Ke){var dt=arguments.length;if(dt<3){if(typeof pe!="string"){dt<2&&(Le="");for(Ke in pe)this.style(Ke,pe[Ke],Le);return this}Ke=""}function gt(){this.style.removeProperty(pe)}function Tt(Vt){return Vt==null?gt:(Vt+="",function(){var jt=t(this).getComputedStyle(this,null).getPropertyValue(pe),sr;return jt!==Vt&&(sr=Go(jt,Vt),function(Pr){this.style.setProperty(pe,sr(Pr),Ke)})})}return Ji(this,"style."+pe,Le,Tt)},Rn.styleTween=function(pe,Le,Ke){arguments.length<3&&(Ke="");function dt(gt,Tt){var Vt=Le.call(this,gt,Tt,t(this).getComputedStyle(this,null).getPropertyValue(pe));return Vt&&function(jt){this.style.setProperty(pe,Vt(jt),Ke)}}return this.tween("style."+pe,dt)},Rn.text=function(pe){return Ji(this,"text",pe,Zo)};function Zo(pe){return pe==null&&(pe=""),function(){this.textContent=pe}}Rn.remove=function(){var pe=this.namespace;return this.each("end.transition",function(){var Le;this[pe].count<2&&(Le=this.parentNode)&&Le.removeChild(this)})},Rn.ease=function(pe){var Le=this.id,Ke=this.namespace;return arguments.length<1?this.node()[Ke][Le].ease:(typeof pe!="function"&&(pe=h.ease.apply(h,arguments)),et(this,function(dt){dt[Ke][Le].ease=pe}))},Rn.delay=function(pe){var Le=this.id,Ke=this.namespace;return arguments.length<1?this.node()[Ke][Le].delay:et(this,typeof pe=="function"?function(dt,gt,Tt){dt[Ke][Le].delay=+pe.call(dt,dt.__data__,gt,Tt)}:(pe=+pe,function(dt){dt[Ke][Le].delay=pe}))},Rn.duration=function(pe){var Le=this.id,Ke=this.namespace;return arguments.length<1?this.node()[Ke][Le].duration:et(this,typeof pe=="function"?function(dt,gt,Tt){dt[Ke][Le].duration=Math.max(1,pe.call(dt,dt.__data__,gt,Tt))}:(pe=Math.max(1,pe),function(dt){dt[Ke][Le].duration=pe}))},Rn.each=function(pe,Le){var Ke=this.id,dt=this.namespace;if(arguments.length<2){var gt=xi,Tt=Mi;try{Mi=Ke,et(this,function(Vt,jt,sr){xi=Vt[dt][Ke],pe.call(Vt,Vt.__data__,jt,sr)})}finally{xi=gt,Mi=Tt}}else et(this,function(Vt){var jt=Vt[dt][Ke];(jt.event||(jt.event=h.dispatch("start","end","interrupt"))).on(pe,Le)});return this},Rn.transition=function(){for(var pe=this.id,Le=++li,Ke=this.namespace,dt=[],gt,Tt,Vt,jt,sr=0,Pr=this.length;sr<Pr;sr++){dt.push(gt=[]);for(var Tt=this[sr],kr=0,Zr=Tt.length;kr<Zr;kr++)(Vt=Tt[kr])&&(jt=Vt[Ke][pe],ko(Vt,kr,Ke,Le,{time:jt.time,ease:jt.ease,delay:jt.delay+jt.duration,duration:jt.duration})),gt.push(Vt)}return An(dt,Ke,Le)};function Yo(pe){return pe==null?"__transition__":"__transition_"+pe+"__"}function ko(pe,Le,Ke,dt,gt){var Tt=pe[Ke]||(pe[Ke]={active:0,count:0}),Vt=Tt[dt],jt,sr,Pr,kr,Zr;function la(pa){var Pa=Vt.delay;if(sr.t=Pa+jt,Pa<=pa)return ca(pa-Pa);sr.c=ca}function ca(pa){var Pa=Tt.active,Na=Tt[Pa];Na&&(Na.timer.c=null,Na.timer.t=NaN,--Tt.count,delete Tt[Pa],Na.event&&Na.event.interrupt.call(pe,pe.__data__,Na.index));for(var an in Tt)if(+an<dt){var ln=Tt[an];ln.timer.c=null,ln.timer.t=NaN,--Tt.count,delete Tt[an]}sr.c=on,mn(function(){return sr.c&&on(pa||1)&&(sr.c=null,sr.t=NaN),1},0,jt),Tt.active=dt,Vt.event&&Vt.event.start.call(pe,pe.__data__,Le),Zr=[],Vt.tween.forEach(function(Ba,Dn){(Dn=Dn.call(pe,pe.__data__,Le))&&Zr.push(Dn)}),kr=Vt.ease,Pr=Vt.duration}function on(pa){for(var Pa=pa/Pr,Na=kr(Pa),an=Zr.length;an>0;)Zr[--an].call(pe,Na);if(Pa>=1)return Vt.event&&Vt.event.end.call(pe,pe.__data__,Le),--Tt.count?delete Tt[dt]:delete pe[Ke],1}Vt||(jt=gt.time,sr=mn(la,0,jt),Vt=Tt[dt]={tween:new S,time:jt,timer:sr,delay:gt.delay,duration:gt.duration,ease:gt.ease,index:Le},gt=null,++Tt.count)}h.svg.axis=function(){var pe=h.scale.linear(),Le=ts,Ke=6,dt=6,gt=3,Tt=[10],Vt=null,jt;function sr(Pr){Pr.each(function(){var kr=h.select(this),Zr=this.__chart__||pe,la=this.__chart__=pe.copy(),ca=Vt??(la.ticks?la.ticks.apply(la,Tt):la.domain()),on=jt??(la.tickFormat?la.tickFormat.apply(la,Tt):F),pa=kr.selectAll(".tick").data(ca,la),Pa=pa.enter().insert("g",".domain").attr("class","tick").style("opacity",We),Na=h.transition(pa.exit()).style("opacity",We).remove(),an=h.transition(pa.order()).style("opacity",1),ln=Math.max(Ke,0)+gt,Ba,Dn=tn(la),oi=kr.selectAll(".domain").data([0]),Kn=(oi.enter().append("path").attr("class","domain"),h.transition(oi));Pa.append("line"),Pa.append("text");var ni=Pa.select("line"),Ai=an.select("line"),Ci=pa.select("text").text(on),Wo=Pa.select("text"),Ri=an.select("text"),co=Le==="top"||Le==="left"?-1:1,es,_l,Gs,gi;if(Le==="bottom"||Le==="top"?(Ba=Ks,es="x",Gs="y",_l="x2",gi="y2",Ci.attr("dy",co<0?"0em":".71em").style("text-anchor","middle"),Kn.attr("d","M"+Dn[0]+","+co*dt+"V0H"+Dn[1]+"V"+co*dt)):(Ba=Po,es="y",Gs="x",_l="y2",gi="x2",Ci.attr("dy",".32em").style("text-anchor",co<0?"end":"start"),Kn.attr("d","M"+co*dt+","+Dn[0]+"H0V"+Dn[1]+"H"+co*dt)),ni.attr(gi,co*Ke),Wo.attr(Gs,co*ln),Ai.attr(_l,0).attr(gi,co*Ke),Ri.attr(es,0).attr(Gs,co*ln),la.rangeBand){var Ro=la,Ko=Ro.rangeBand()/2;Zr=la=function(Ns){return Ro(Ns)+Ko}}else Zr.rangeBand?Zr=la:Na.call(Ba,la,Zr);Pa.call(Ba,Zr,la),an.call(Ba,la,la)})}return sr.scale=function(Pr){return arguments.length?(pe=Pr,sr):pe},sr.orient=function(Pr){return arguments.length?(Le=Pr in il?Pr+"":ts,sr):Le},sr.ticks=function(){return arguments.length?(Tt=A(arguments),sr):Tt},sr.tickValues=function(Pr){return arguments.length?(Vt=Pr,sr):Vt},sr.tickFormat=function(Pr){return arguments.length?(jt=Pr,sr):jt},sr.tickSize=function(Pr){var kr=arguments.length;return kr?(Ke=+Pr,dt=+arguments[kr-1],sr):Ke},sr.innerTickSize=function(Pr){return arguments.length?(Ke=+Pr,sr):Ke},sr.outerTickSize=function(Pr){return arguments.length?(dt=+Pr,sr):dt},sr.tickPadding=function(Pr){return arguments.length?(gt=+Pr,sr):gt},sr.tickSubdivide=function(){return arguments.length&&sr},sr};var ts="bottom",il={top:1,right:1,bottom:1,left:1};function Ks(pe,Le,Ke){pe.attr("transform",function(dt){var gt=Le(dt);return"translate("+(isFinite(gt)?gt:Ke(dt))+",0)"})}function Po(pe,Le,Ke){pe.attr("transform",function(dt){var gt=Le(dt);return"translate(0,"+(isFinite(gt)?gt:Ke(dt))+")"})}h.svg.brush=function(){var pe=ie(kr,"brushstart","brush","brushend"),Le=null,Ke=null,dt=[0,0],gt=[0,0],Tt,Vt,jt=!0,sr=!0,Pr=ml[0];function kr(pa){pa.each(function(){var Pa=h.select(this).style("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush",on).on("touchstart.brush",on),Na=Pa.selectAll(".background").data([0]);Na.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),Pa.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var an=Pa.selectAll(".resize").data(Pr,F);an.exit().remove(),an.enter().append("g").attr("class",function(oi){return"resize "+oi}).style("cursor",function(oi){return Io[oi]}).append("rect").attr("x",function(oi){return/[ew]$/.test(oi)?-3:null}).attr("y",function(oi){return/^[ns]/.test(oi)?-3:null}).attr("width",6).attr("height",6).style("visibility","hidden"),an.style("display",kr.empty()?"none":null);var ln=h.transition(Pa),Ba=h.transition(Na),Dn;Le&&(Dn=tn(Le),Ba.attr("x",Dn[0]).attr("width",Dn[1]-Dn[0]),la(ln)),Ke&&(Dn=tn(Ke),Ba.attr("y",Dn[0]).attr("height",Dn[1]-Dn[0]),ca(ln)),Zr(ln)})}kr.event=function(pa){pa.each(function(){var Pa=pe.of(this,arguments),Na={x:dt,y:gt,i:Tt,j:Vt},an=this.__chart__||Na;this.__chart__=Na,Mi?h.select(this).transition().each("start.brush",function(){Tt=an.i,Vt=an.j,dt=an.x,gt=an.y,Pa({type:"brushstart"})}).tween("brush:brush",function(){var ln=Ms(dt,Na.x),Ba=Ms(gt,Na.y);return Tt=Vt=null,function(Dn){dt=Na.x=ln(Dn),gt=Na.y=Ba(Dn),Pa({type:"brush",mode:"resize"})}}).each("end.brush",function(){Tt=Na.i,Vt=Na.j,Pa({type:"brush",mode:"resize"}),Pa({type:"brushend"})}):(Pa({type:"brushstart"}),Pa({type:"brush",mode:"resize"}),Pa({type:"brushend"}))})};function Zr(pa){pa.selectAll(".resize").attr("transform",function(Pa){return"translate("+dt[+/e$/.test(Pa)]+","+gt[+/^s/.test(Pa)]+")"})}function la(pa){pa.select(".extent").attr("x",dt[0]),pa.selectAll(".extent,.n>rect,.s>rect").attr("width",dt[1]-dt[0])}function ca(pa){pa.select(".extent").attr("y",gt[0]),pa.selectAll(".extent,.e>rect,.w>rect").attr("height",gt[1]-gt[0])}function on(){var pa=this,Pa=h.select(h.event.target),Na=pe.of(pa,arguments),an=h.select(pa),ln=Pa.datum(),Ba=!/^(n|s)$/.test(ln)&&Le,Dn=!/^(e|w)$/.test(ln)&&Ke,oi=Pa.classed("extent"),Kn=dr(pa),ni,Ai=h.mouse(pa),Ci,Wo=h.select(t(pa)).on("keydown.brush",es).on("keyup.brush",_l);if(h.event.changedTouches?Wo.on("touchmove.brush",Gs).on("touchend.brush",Ro):Wo.on("mousemove.brush",Gs).on("mouseup.brush",Ro),an.interrupt().selectAll("*").interrupt(),oi)Ai[0]=dt[0]-Ai[0],Ai[1]=gt[0]-Ai[1];else if(ln){var Ri=+/w$/.test(ln),co=+/^n/.test(ln);Ci=[dt[1-Ri]-Ai[0],gt[1-co]-Ai[1]],Ai[0]=dt[Ri],Ai[1]=gt[co]}else h.event.altKey&&(ni=Ai.slice());an.style("pointer-events","none").selectAll(".resize").style("display",null),h.select("body").style("cursor",Pa.style("cursor")),Na({type:"brushstart"}),Gs();function es(){h.event.keyCode==32&&(oi||(ni=null,Ai[0]-=dt[1],Ai[1]-=gt[1],oi=2),te())}function _l(){h.event.keyCode==32&&oi==2&&(Ai[0]+=dt[1],Ai[1]+=gt[1],oi=0,te())}function Gs(){var Ko=h.mouse(pa),Ns=!1;Ci&&(Ko[0]+=Ci[0],Ko[1]+=Ci[1]),oi||(h.event.altKey?(ni||(ni=[(dt[0]+dt[1])/2,(gt[0]+gt[1])/2]),Ai[0]=dt[+(Ko[0]<ni[0])],Ai[1]=gt[+(Ko[1]<ni[1])]):ni=null),Ba&&gi(Ko,Le,0)&&(la(an),Ns=!0),Dn&&gi(Ko,Ke,1)&&(ca(an),Ns=!0),Ns&&(Zr(an),Na({type:"brush",mode:oi?"move":"resize"}))}function gi(Ko,Ns,ks){var ru=tn(Ns),_s=ru[0],Us=ru[1],bu=Ai[ks],pl=ks?gt:dt,lt=pl[1]-pl[0],ir,ur;if(oi&&(_s-=bu,Us-=lt+bu),ir=(ks?sr:jt)?Math.max(_s,Math.min(Us,Ko[ks])):Ko[ks],oi?ur=(ir+=bu)+lt:(ni&&(bu=Math.max(_s,Math.min(Us,2*ni[ks]-ir))),bu<ir?(ur=ir,ir=bu):ur=bu),pl[0]!=ir||pl[1]!=ur)return ks?Vt=null:Tt=null,pl[0]=ir,pl[1]=ur,!0}function Ro(){Gs(),an.style("pointer-events","all").selectAll(".resize").style("display",kr.empty()?"none":null),h.select("body").style("cursor",null),Wo.on("mousemove.brush",null).on("mouseup.brush",null).on("touchmove.brush",null).on("touchend.brush",null).on("keydown.brush",null).on("keyup.brush",null),Kn(),Na({type:"brushend"})}}return kr.x=function(pa){return arguments.length?(Le=pa,Pr=ml[!Le<<1|!Ke],kr):Le},kr.y=function(pa){return arguments.length?(Ke=pa,Pr=ml[!Le<<1|!Ke],kr):Ke},kr.clamp=function(pa){return arguments.length?(Le&&Ke?(jt=!!pa[0],sr=!!pa[1]):Le?jt=!!pa:Ke&&(sr=!!pa),kr):Le&&Ke?[jt,sr]:Le?jt:Ke?sr:null},kr.extent=function(pa){var Pa,Na,an,ln,Ba;return arguments.length?(Le&&(Pa=pa[0],Na=pa[1],Ke&&(Pa=Pa[0],Na=Na[0]),Tt=[Pa,Na],Le.invert&&(Pa=Le(Pa),Na=Le(Na)),Na<Pa&&(Ba=Pa,Pa=Na,Na=Ba),(Pa!=dt[0]||Na!=dt[1])&&(dt=[Pa,Na])),Ke&&(an=pa[0],ln=pa[1],Le&&(an=an[1],ln=ln[1]),Vt=[an,ln],Ke.invert&&(an=Ke(an),ln=Ke(ln)),ln<an&&(Ba=an,an=ln,ln=Ba),(an!=gt[0]||ln!=gt[1])&&(gt=[an,ln])),kr):(Le&&(Tt?(Pa=Tt[0],Na=Tt[1]):(Pa=dt[0],Na=dt[1],Le.invert&&(Pa=Le.invert(Pa),Na=Le.invert(Na)),Na<Pa&&(Ba=Pa,Pa=Na,Na=Ba))),Ke&&(Vt?(an=Vt[0],ln=Vt[1]):(an=gt[0],ln=gt[1],Ke.invert&&(an=Ke.invert(an),ln=Ke.invert(ln)),ln<an&&(Ba=an,an=ln,ln=Ba))),Le&&Ke?[[Pa,an],[Na,ln]]:Le?[Pa,Na]:Ke&&[an,ln])},kr.clear=function(){return kr.empty()||(dt=[0,0],gt=[0,0],Tt=Vt=null),kr},kr.empty=function(){return!!Le&&dt[0]==dt[1]||!!Ke&>[0]==gt[1]},h.rebind(kr,pe,"on")};var Io={n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},ml=[["n","e","s","w","nw","ne","se","sw"],["e","w"],["n","s"],[]];h.text=or(function(pe){return pe.responseText}),h.json=function(pe,Le){return Ar(pe,"application/json",Ul,Le)};function Ul(pe){return JSON.parse(pe.responseText)}h.html=function(pe,Le){return Ar(pe,"text/html",hu,Le)};function hu(pe){var Le=E.createRange();return Le.selectNode(E.body),Le.createContextualFragment(pe.responseText)}h.xml=or(function(pe){return pe.responseXML}),typeof H=="object"&&H.exports?H.exports=h:this.d3=h}).apply(self)}}),iu=He({"node_modules/d3-time/dist/d3-time.js"(Y,H){(function(h,x){typeof Y=="object"&&typeof H<"u"?x(Y):(h=h||self,x(h.d3=h.d3||{}))})(Y,function(h){var x=new Date,A=new Date;function E(he,De,et,nt){function $e(Et){return he(Et=arguments.length===0?new Date:new Date(+Et)),Et}return $e.floor=function(Et){return he(Et=new Date(+Et)),Et},$e.ceil=function(Et){return he(Et=new Date(Et-1)),De(Et,1),he(Et),Et},$e.round=function(Et){var kt=$e(Et),Ut=$e.ceil(Et);return Et-kt<Ut-Et?kt:Ut},$e.offset=function(Et,kt){return De(Et=new Date(+Et),kt==null?1:Math.floor(kt)),Et},$e.range=function(Et,kt,Ut){var Yt=[],vr;if(Et=$e.ceil(Et),Ut=Ut==null?1:Math.floor(Ut),!(Et<kt)||!(Ut>0))return Yt;do Yt.push(vr=new Date(+Et)),De(Et,Ut),he(Et);while(vr<Et&&Et<kt);return Yt},$e.filter=function(Et){return E(function(kt){if(kt>=kt)for(;he(kt),!Et(kt);)kt.setTime(kt-1)},function(kt,Ut){if(kt>=kt)if(Ut<0)for(;++Ut<=0;)for(;De(kt,-1),!Et(kt););else for(;--Ut>=0;)for(;De(kt,1),!Et(kt););})},et&&($e.count=function(Et,kt){return x.setTime(+Et),A.setTime(+kt),he(x),he(A),Math.floor(et(x,A))},$e.every=function(Et){return Et=Math.floor(Et),!isFinite(Et)||!(Et>0)?null:Et>1?$e.filter(nt?function(kt){return nt(kt)%Et===0}:function(kt){return $e.count(0,kt)%Et===0}):$e}),$e}var e=E(function(){},function(he,De){he.setTime(+he+De)},function(he,De){return De-he});e.every=function(he){return he=Math.floor(he),!isFinite(he)||!(he>0)?null:he>1?E(function(De){De.setTime(Math.floor(De/he)*he)},function(De,et){De.setTime(+De+et*he)},function(De,et){return(et-De)/he}):e};var t=e.range,r=1e3,i=6e4,a=36e5,o=864e5,n=6048e5,s=E(function(he){he.setTime(he-he.getMilliseconds())},function(he,De){he.setTime(+he+De*r)},function(he,De){return(De-he)/r},function(he){return he.getUTCSeconds()}),c=s.range,f=E(function(he){he.setTime(he-he.getMilliseconds()-he.getSeconds()*r)},function(he,De){he.setTime(+he+De*i)},function(he,De){return(De-he)/i},function(he){return he.getMinutes()}),p=f.range,v=E(function(he){he.setTime(he-he.getMilliseconds()-he.getSeconds()*r-he.getMinutes()*i)},function(he,De){he.setTime(+he+De*a)},function(he,De){return(De-he)/a},function(he){return he.getHours()}),T=v.range,l=E(function(he){he.setHours(0,0,0,0)},function(he,De){he.setDate(he.getDate()+De)},function(he,De){return(De-he-(De.getTimezoneOffset()-he.getTimezoneOffset())*i)/o},function(he){return he.getDate()-1}),y=l.range;function w(he){return E(function(De){De.setDate(De.getDate()-(De.getDay()+7-he)%7),De.setHours(0,0,0,0)},function(De,et){De.setDate(De.getDate()+et*7)},function(De,et){return(et-De-(et.getTimezoneOffset()-De.getTimezoneOffset())*i)/n})}var S=w(0),M=w(1),_=w(2),b=w(3),d=w(4),u=w(5),g=w(6),m=S.range,R=M.range,I=_.range,z=b.range,F=d.range,B=u.range,O=g.range,P=E(function(he){he.setDate(1),he.setHours(0,0,0,0)},function(he,De){he.setMonth(he.getMonth()+De)},function(he,De){return De.getMonth()-he.getMonth()+(De.getFullYear()-he.getFullYear())*12},function(he){return he.getMonth()}),N=P.range,U=E(function(he){he.setMonth(0,1),he.setHours(0,0,0,0)},function(he,De){he.setFullYear(he.getFullYear()+De)},function(he,De){return De.getFullYear()-he.getFullYear()},function(he){return he.getFullYear()});U.every=function(he){return!isFinite(he=Math.floor(he))||!(he>0)?null:E(function(De){De.setFullYear(Math.floor(De.getFullYear()/he)*he),De.setMonth(0,1),De.setHours(0,0,0,0)},function(De,et){De.setFullYear(De.getFullYear()+et*he)})};var X=U.range,te=E(function(he){he.setUTCSeconds(0,0)},function(he,De){he.setTime(+he+De*i)},function(he,De){return(De-he)/i},function(he){return he.getUTCMinutes()}),ue=te.range,ie=E(function(he){he.setUTCMinutes(0,0,0)},function(he,De){he.setTime(+he+De*a)},function(he,De){return(De-he)/a},function(he){return he.getUTCHours()}),le=ie.range,q=E(function(he){he.setUTCHours(0,0,0,0)},function(he,De){he.setUTCDate(he.getUTCDate()+De)},function(he,De){return(De-he)/o},function(he){return he.getUTCDate()-1}),J=q.range;function ee(he){return E(function(De){De.setUTCDate(De.getUTCDate()-(De.getUTCDay()+7-he)%7),De.setUTCHours(0,0,0,0)},function(De,et){De.setUTCDate(De.getUTCDate()+et*7)},function(De,et){return(et-De)/n})}var Z=ee(0),se=ee(1),Q=ee(2),V=ee(3),re=ee(4),ae=ee(5),fe=ee(6),xe=Z.range,Ae=se.range,Pe=Q.range,Ce=V.range,je=re.range,at=ae.range,tt=fe.range,Je=E(function(he){he.setUTCDate(1),he.setUTCHours(0,0,0,0)},function(he,De){he.setUTCMonth(he.getUTCMonth()+De)},function(he,De){return De.getUTCMonth()-he.getUTCMonth()+(De.getUTCFullYear()-he.getUTCFullYear())*12},function(he){return he.getUTCMonth()}),Ze=Je.range,Me=E(function(he){he.setUTCMonth(0,1),he.setUTCHours(0,0,0,0)},function(he,De){he.setUTCFullYear(he.getUTCFullYear()+De)},function(he,De){return De.getUTCFullYear()-he.getUTCFullYear()},function(he){return he.getUTCFullYear()});Me.every=function(he){return!isFinite(he=Math.floor(he))||!(he>0)?null:E(function(De){De.setUTCFullYear(Math.floor(De.getUTCFullYear()/he)*he),De.setUTCMonth(0,1),De.setUTCHours(0,0,0,0)},function(De,et){De.setUTCFullYear(De.getUTCFullYear()+et*he)})};var we=Me.range;h.timeDay=l,h.timeDays=y,h.timeFriday=u,h.timeFridays=B,h.timeHour=v,h.timeHours=T,h.timeInterval=E,h.timeMillisecond=e,h.timeMilliseconds=t,h.timeMinute=f,h.timeMinutes=p,h.timeMonday=M,h.timeMondays=R,h.timeMonth=P,h.timeMonths=N,h.timeSaturday=g,h.timeSaturdays=O,h.timeSecond=s,h.timeSeconds=c,h.timeSunday=S,h.timeSundays=m,h.timeThursday=d,h.timeThursdays=F,h.timeTuesday=_,h.timeTuesdays=I,h.timeWednesday=b,h.timeWednesdays=z,h.timeWeek=S,h.timeWeeks=m,h.timeYear=U,h.timeYears=X,h.utcDay=q,h.utcDays=J,h.utcFriday=ae,h.utcFridays=at,h.utcHour=ie,h.utcHours=le,h.utcMillisecond=e,h.utcMilliseconds=t,h.utcMinute=te,h.utcMinutes=ue,h.utcMonday=se,h.utcMondays=Ae,h.utcMonth=Je,h.utcMonths=Ze,h.utcSaturday=fe,h.utcSaturdays=tt,h.utcSecond=s,h.utcSeconds=c,h.utcSunday=Z,h.utcSundays=xe,h.utcThursday=re,h.utcThursdays=je,h.utcTuesday=Q,h.utcTuesdays=Pe,h.utcWednesday=V,h.utcWednesdays=Ce,h.utcWeek=Z,h.utcWeeks=xe,h.utcYear=Me,h.utcYears=we,Object.defineProperty(h,"__esModule",{value:!0})})}}),bl=He({"node_modules/d3-time-format/dist/d3-time-format.js"(Y,H){(function(h,x){typeof Y=="object"&&typeof H<"u"?x(Y,iu()):(h=h||self,x(h.d3=h.d3||{},h.d3))})(Y,function(h,x){function A(Fe){if(0<=Fe.y&&Fe.y<100){var We=new Date(-1,Fe.m,Fe.d,Fe.H,Fe.M,Fe.S,Fe.L);return We.setFullYear(Fe.y),We}return new Date(Fe.y,Fe.m,Fe.d,Fe.H,Fe.M,Fe.S,Fe.L)}function E(Fe){if(0<=Fe.y&&Fe.y<100){var We=new Date(Date.UTC(-1,Fe.m,Fe.d,Fe.H,Fe.M,Fe.S,Fe.L));return We.setUTCFullYear(Fe.y),We}return new Date(Date.UTC(Fe.y,Fe.m,Fe.d,Fe.H,Fe.M,Fe.S,Fe.L))}function e(Fe,We,Oe){return{y:Fe,m:We,d:Oe,H:0,M:0,S:0,L:0}}function t(Fe){var We=Fe.dateTime,Oe=Fe.date,de=Fe.time,ye=Fe.periods,be=Fe.days,Ie=Fe.shortDays,Xe=Fe.months,ht=Fe.shortMonths,bt=c(ye),Ct=f(ye),Zt=c(be),Wt=f(be),rr=c(Ie),Jt=f(Ie),yr=c(Xe),ia=f(Xe),Ia=c(ht),La=f(ht),Aa={a:Da,A:Ya,b:$a,B:nn,c:null,d:P,e:P,f:ue,H:N,I:U,j:X,L:te,m:ie,M:le,p:yt,q:ot,Q:kt,s:Ut,S:q,u:J,U:ee,V:Z,w:se,W:Q,x:null,X:null,y:V,Y:re,Z:ae,"%":Et},Ga={a:Lr,A:Er,b:Mr,B:br,c:null,d:fe,e:fe,f:je,H:xe,I:Ae,j:Pe,L:Ce,m:at,M:tt,p:Or,q:jr,Q:kt,s:Ut,S:Je,u:Ze,U:Me,V:we,w:he,W:De,x:null,X:null,y:et,Y:nt,Z:$e,"%":Et},ba={a:Kt,A:Ht,b:Tr,B:qr,c:ha,d,e:d,f:z,H:g,I:g,j:u,L:I,m:b,M:m,p:zt,q:_,Q:B,s:O,S:R,u:v,U:T,V:l,w:p,W:y,x:Gr,X:wa,y:S,Y:w,Z:M,"%":F};Aa.x=Xa(Oe,Aa),Aa.X=Xa(de,Aa),Aa.c=Xa(We,Aa),Ga.x=Xa(Oe,Ga),Ga.X=Xa(de,Ga),Ga.c=Xa(We,Ga);function Xa(Dr,Hr){return function(na){var ta=[],At=-1,or=0,Ar=Dr.length,oa,ga,Sa;for(na instanceof Date||(na=new Date(+na));++At<Ar;)Dr.charCodeAt(At)===37&&(ta.push(Dr.slice(or,At)),(ga=r[oa=Dr.charAt(++At)])!=null?oa=Dr.charAt(++At):ga=oa==="e"?" ":"0",(Sa=Hr[oa])&&(oa=Sa(na,ga)),ta.push(oa),or=At+1);return ta.push(Dr.slice(or,At)),ta.join("")}}function _n(Dr,Hr){return function(na){var ta=e(1900,void 0,1),At=$t(ta,Dr,na+="",0),or,Ar;if(At!=na.length)return null;if("Q"in ta)return new Date(ta.Q);if("s"in ta)return new Date(ta.s*1e3+("L"in ta?ta.L:0));if(Hr&&!("Z"in ta)&&(ta.Z=0),"p"in ta&&(ta.H=ta.H%12+ta.p*12),ta.m===void 0&&(ta.m="q"in ta?ta.q:0),"V"in ta){if(ta.V<1||ta.V>53)return null;"w"in ta||(ta.w=1),"Z"in ta?(or=E(e(ta.y,0,1)),Ar=or.getUTCDay(),or=Ar>4||Ar===0?x.utcMonday.ceil(or):x.utcMonday(or),or=x.utcDay.offset(or,(ta.V-1)*7),ta.y=or.getUTCFullYear(),ta.m=or.getUTCMonth(),ta.d=or.getUTCDate()+(ta.w+6)%7):(or=A(e(ta.y,0,1)),Ar=or.getDay(),or=Ar>4||Ar===0?x.timeMonday.ceil(or):x.timeMonday(or),or=x.timeDay.offset(or,(ta.V-1)*7),ta.y=or.getFullYear(),ta.m=or.getMonth(),ta.d=or.getDate()+(ta.w+6)%7)}else("W"in ta||"U"in ta)&&("w"in ta||(ta.w="u"in ta?ta.u%7:"W"in ta?1:0),Ar="Z"in ta?E(e(ta.y,0,1)).getUTCDay():A(e(ta.y,0,1)).getDay(),ta.m=0,ta.d="W"in ta?(ta.w+6)%7+ta.W*7-(Ar+5)%7:ta.w+ta.U*7-(Ar+6)%7);return"Z"in ta?(ta.H+=ta.Z/100|0,ta.M+=ta.Z%100,E(ta)):A(ta)}}function $t(Dr,Hr,na,ta){for(var At=0,or=Hr.length,Ar=na.length,oa,ga;At<or;){if(ta>=Ar)return-1;if(oa=Hr.charCodeAt(At++),oa===37){if(oa=Hr.charAt(At++),ga=ba[oa in r?Hr.charAt(At++):oa],!ga||(ta=ga(Dr,na,ta))<0)return-1}else if(oa!=na.charCodeAt(ta++))return-1}return ta}function zt(Dr,Hr,na){var ta=bt.exec(Hr.slice(na));return ta?(Dr.p=Ct[ta[0].toLowerCase()],na+ta[0].length):-1}function Kt(Dr,Hr,na){var ta=rr.exec(Hr.slice(na));return ta?(Dr.w=Jt[ta[0].toLowerCase()],na+ta[0].length):-1}function Ht(Dr,Hr,na){var ta=Zt.exec(Hr.slice(na));return ta?(Dr.w=Wt[ta[0].toLowerCase()],na+ta[0].length):-1}function Tr(Dr,Hr,na){var ta=Ia.exec(Hr.slice(na));return ta?(Dr.m=La[ta[0].toLowerCase()],na+ta[0].length):-1}function qr(Dr,Hr,na){var ta=yr.exec(Hr.slice(na));return ta?(Dr.m=ia[ta[0].toLowerCase()],na+ta[0].length):-1}function ha(Dr,Hr,na){return $t(Dr,We,Hr,na)}function Gr(Dr,Hr,na){return $t(Dr,Oe,Hr,na)}function wa(Dr,Hr,na){return $t(Dr,de,Hr,na)}function Da(Dr){return Ie[Dr.getDay()]}function Ya(Dr){return be[Dr.getDay()]}function $a(Dr){return ht[Dr.getMonth()]}function nn(Dr){return Xe[Dr.getMonth()]}function yt(Dr){return ye[+(Dr.getHours()>=12)]}function ot(Dr){return 1+~~(Dr.getMonth()/3)}function Lr(Dr){return Ie[Dr.getUTCDay()]}function Er(Dr){return be[Dr.getUTCDay()]}function Mr(Dr){return ht[Dr.getUTCMonth()]}function br(Dr){return Xe[Dr.getUTCMonth()]}function Or(Dr){return ye[+(Dr.getUTCHours()>=12)]}function jr(Dr){return 1+~~(Dr.getUTCMonth()/3)}return{format:function(Dr){var Hr=Xa(Dr+="",Aa);return Hr.toString=function(){return Dr},Hr},parse:function(Dr){var Hr=_n(Dr+="",!1);return Hr.toString=function(){return Dr},Hr},utcFormat:function(Dr){var Hr=Xa(Dr+="",Ga);return Hr.toString=function(){return Dr},Hr},utcParse:function(Dr){var Hr=_n(Dr+="",!0);return Hr.toString=function(){return Dr},Hr}}}var r={"-":"",_:" ",0:"0"},i=/^\s*\d+/,a=/^%/,o=/[\\^$*+?|[\]().{}]/g;function n(Fe,We,Oe){var de=Fe<0?"-":"",ye=(de?-Fe:Fe)+"",be=ye.length;return de+(be<Oe?new Array(Oe-be+1).join(We)+ye:ye)}function s(Fe){return Fe.replace(o,"\\$&")}function c(Fe){return new RegExp("^(?:"+Fe.map(s).join("|")+")","i")}function f(Fe){for(var We={},Oe=-1,de=Fe.length;++Oe<de;)We[Fe[Oe].toLowerCase()]=Oe;return We}function p(Fe,We,Oe){var de=i.exec(We.slice(Oe,Oe+1));return de?(Fe.w=+de[0],Oe+de[0].length):-1}function v(Fe,We,Oe){var de=i.exec(We.slice(Oe,Oe+1));return de?(Fe.u=+de[0],Oe+de[0].length):-1}function T(Fe,We,Oe){var de=i.exec(We.slice(Oe,Oe+2));return de?(Fe.U=+de[0],Oe+de[0].length):-1}function l(Fe,We,Oe){var de=i.exec(We.slice(Oe,Oe+2));return de?(Fe.V=+de[0],Oe+de[0].length):-1}function y(Fe,We,Oe){var de=i.exec(We.slice(Oe,Oe+2));return de?(Fe.W=+de[0],Oe+de[0].length):-1}function w(Fe,We,Oe){var de=i.exec(We.slice(Oe,Oe+4));return de?(Fe.y=+de[0],Oe+de[0].length):-1}function S(Fe,We,Oe){var de=i.exec(We.slice(Oe,Oe+2));return de?(Fe.y=+de[0]+(+de[0]>68?1900:2e3),Oe+de[0].length):-1}function M(Fe,We,Oe){var de=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(We.slice(Oe,Oe+6));return de?(Fe.Z=de[1]?0:-(de[2]+(de[3]||"00")),Oe+de[0].length):-1}function _(Fe,We,Oe){var de=i.exec(We.slice(Oe,Oe+1));return de?(Fe.q=de[0]*3-3,Oe+de[0].length):-1}function b(Fe,We,Oe){var de=i.exec(We.slice(Oe,Oe+2));return de?(Fe.m=de[0]-1,Oe+de[0].length):-1}function d(Fe,We,Oe){var de=i.exec(We.slice(Oe,Oe+2));return de?(Fe.d=+de[0],Oe+de[0].length):-1}function u(Fe,We,Oe){var de=i.exec(We.slice(Oe,Oe+3));return de?(Fe.m=0,Fe.d=+de[0],Oe+de[0].length):-1}function g(Fe,We,Oe){var de=i.exec(We.slice(Oe,Oe+2));return de?(Fe.H=+de[0],Oe+de[0].length):-1}function m(Fe,We,Oe){var de=i.exec(We.slice(Oe,Oe+2));return de?(Fe.M=+de[0],Oe+de[0].length):-1}function R(Fe,We,Oe){var de=i.exec(We.slice(Oe,Oe+2));return de?(Fe.S=+de[0],Oe+de[0].length):-1}function I(Fe,We,Oe){var de=i.exec(We.slice(Oe,Oe+3));return de?(Fe.L=+de[0],Oe+de[0].length):-1}function z(Fe,We,Oe){var de=i.exec(We.slice(Oe,Oe+6));return de?(Fe.L=Math.floor(de[0]/1e3),Oe+de[0].length):-1}function F(Fe,We,Oe){var de=a.exec(We.slice(Oe,Oe+1));return de?Oe+de[0].length:-1}function B(Fe,We,Oe){var de=i.exec(We.slice(Oe));return de?(Fe.Q=+de[0],Oe+de[0].length):-1}function O(Fe,We,Oe){var de=i.exec(We.slice(Oe));return de?(Fe.s=+de[0],Oe+de[0].length):-1}function P(Fe,We){return n(Fe.getDate(),We,2)}function N(Fe,We){return n(Fe.getHours(),We,2)}function U(Fe,We){return n(Fe.getHours()%12||12,We,2)}function X(Fe,We){return n(1+x.timeDay.count(x.timeYear(Fe),Fe),We,3)}function te(Fe,We){return n(Fe.getMilliseconds(),We,3)}function ue(Fe,We){return te(Fe,We)+"000"}function ie(Fe,We){return n(Fe.getMonth()+1,We,2)}function le(Fe,We){return n(Fe.getMinutes(),We,2)}function q(Fe,We){return n(Fe.getSeconds(),We,2)}function J(Fe){var We=Fe.getDay();return We===0?7:We}function ee(Fe,We){return n(x.timeSunday.count(x.timeYear(Fe)-1,Fe),We,2)}function Z(Fe,We){var Oe=Fe.getDay();return Fe=Oe>=4||Oe===0?x.timeThursday(Fe):x.timeThursday.ceil(Fe),n(x.timeThursday.count(x.timeYear(Fe),Fe)+(x.timeYear(Fe).getDay()===4),We,2)}function se(Fe){return Fe.getDay()}function Q(Fe,We){return n(x.timeMonday.count(x.timeYear(Fe)-1,Fe),We,2)}function V(Fe,We){return n(Fe.getFullYear()%100,We,2)}function re(Fe,We){return n(Fe.getFullYear()%1e4,We,4)}function ae(Fe){var We=Fe.getTimezoneOffset();return(We>0?"-":(We*=-1,"+"))+n(We/60|0,"0",2)+n(We%60,"0",2)}function fe(Fe,We){return n(Fe.getUTCDate(),We,2)}function xe(Fe,We){return n(Fe.getUTCHours(),We,2)}function Ae(Fe,We){return n(Fe.getUTCHours()%12||12,We,2)}function Pe(Fe,We){return n(1+x.utcDay.count(x.utcYear(Fe),Fe),We,3)}function Ce(Fe,We){return n(Fe.getUTCMilliseconds(),We,3)}function je(Fe,We){return Ce(Fe,We)+"000"}function at(Fe,We){return n(Fe.getUTCMonth()+1,We,2)}function tt(Fe,We){return n(Fe.getUTCMinutes(),We,2)}function Je(Fe,We){return n(Fe.getUTCSeconds(),We,2)}function Ze(Fe){var We=Fe.getUTCDay();return We===0?7:We}function Me(Fe,We){return n(x.utcSunday.count(x.utcYear(Fe)-1,Fe),We,2)}function we(Fe,We){var Oe=Fe.getUTCDay();return Fe=Oe>=4||Oe===0?x.utcThursday(Fe):x.utcThursday.ceil(Fe),n(x.utcThursday.count(x.utcYear(Fe),Fe)+(x.utcYear(Fe).getUTCDay()===4),We,2)}function he(Fe){return Fe.getUTCDay()}function De(Fe,We){return n(x.utcMonday.count(x.utcYear(Fe)-1,Fe),We,2)}function et(Fe,We){return n(Fe.getUTCFullYear()%100,We,2)}function nt(Fe,We){return n(Fe.getUTCFullYear()%1e4,We,4)}function $e(){return"+0000"}function Et(){return"%"}function kt(Fe){return+Fe}function Ut(Fe){return Math.floor(+Fe/1e3)}var Yt;vr({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function vr(Fe){return Yt=t(Fe),h.timeFormat=Yt.format,h.timeParse=Yt.parse,h.utcFormat=Yt.utcFormat,h.utcParse=Yt.utcParse,Yt}var hr="%Y-%m-%dT%H:%M:%S.%LZ";function Rr(Fe){return Fe.toISOString()}var dr=Date.prototype.toISOString?Rr:h.utcFormat(hr);function wr(Fe){var We=new Date(Fe);return isNaN(We)?null:We}var mt=+new Date("2000-01-01T00:00:00.000Z")?wr:h.utcParse(hr);h.isoFormat=dr,h.isoParse=mt,h.timeFormatDefaultLocale=vr,h.timeFormatLocale=t,Object.defineProperty(h,"__esModule",{value:!0})})}}),go=He({"node_modules/d3-format/dist/d3-format.js"(Y,H){(function(h,x){typeof Y=="object"&&typeof H<"u"?x(Y):(h=typeof globalThis<"u"?globalThis:h||self,x(h.d3=h.d3||{}))})(Y,function(h){function x(b){return Math.abs(b=Math.round(b))>=1e21?b.toLocaleString("en").replace(/,/g,""):b.toString(10)}function A(b,d){if((u=(b=d?b.toExponential(d-1):b.toExponential()).indexOf("e"))<0)return null;var u,g=b.slice(0,u);return[g.length>1?g[0]+g.slice(2):g,+b.slice(u+1)]}function E(b){return b=A(Math.abs(b)),b?b[1]:NaN}function e(b,d){return function(u,g){for(var m=u.length,R=[],I=0,z=b[0],F=0;m>0&&z>0&&(F+z+1>g&&(z=Math.max(1,g-F)),R.push(u.substring(m-=z,m+z)),!((F+=z+1)>g));)z=b[I=(I+1)%b.length];return R.reverse().join(d)}}function t(b){return function(d){return d.replace(/[0-9]/g,function(u){return b[+u]})}}var r=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function i(b){if(!(d=r.exec(b)))throw new Error("invalid format: "+b);var d;return new a({fill:d[1],align:d[2],sign:d[3],symbol:d[4],zero:d[5],width:d[6],comma:d[7],precision:d[8]&&d[8].slice(1),trim:d[9],type:d[10]})}i.prototype=a.prototype;function a(b){this.fill=b.fill===void 0?" ":b.fill+"",this.align=b.align===void 0?">":b.align+"",this.sign=b.sign===void 0?"-":b.sign+"",this.symbol=b.symbol===void 0?"":b.symbol+"",this.zero=!!b.zero,this.width=b.width===void 0?void 0:+b.width,this.comma=!!b.comma,this.precision=b.precision===void 0?void 0:+b.precision,this.trim=!!b.trim,this.type=b.type===void 0?"":b.type+""}a.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function o(b){e:for(var d=b.length,u=1,g=-1,m;u<d;++u)switch(b[u]){case".":g=m=u;break;case"0":g===0&&(g=u),m=u;break;default:if(!+b[u])break e;g>0&&(g=0);break}return g>0?b.slice(0,g)+b.slice(m+1):b}var n;function s(b,d){var u=A(b,d);if(!u)return b+"";var g=u[0],m=u[1],R=m-(n=Math.max(-8,Math.min(8,Math.floor(m/3)))*3)+1,I=g.length;return R===I?g:R>I?g+new Array(R-I+1).join("0"):R>0?g.slice(0,R)+"."+g.slice(R):"0."+new Array(1-R).join("0")+A(b,Math.max(0,d+R-1))[0]}function c(b,d){var u=A(b,d);if(!u)return b+"";var g=u[0],m=u[1];return m<0?"0."+new Array(-m).join("0")+g:g.length>m+1?g.slice(0,m+1)+"."+g.slice(m+1):g+new Array(m-g.length+2).join("0")}var f={"%":function(b,d){return(b*100).toFixed(d)},b:function(b){return Math.round(b).toString(2)},c:function(b){return b+""},d:x,e:function(b,d){return b.toExponential(d)},f:function(b,d){return b.toFixed(d)},g:function(b,d){return b.toPrecision(d)},o:function(b){return Math.round(b).toString(8)},p:function(b,d){return c(b*100,d)},r:c,s,X:function(b){return Math.round(b).toString(16).toUpperCase()},x:function(b){return Math.round(b).toString(16)}};function p(b){return b}var v=Array.prototype.map,T=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function l(b){var d=b.grouping===void 0||b.thousands===void 0?p:e(v.call(b.grouping,Number),b.thousands+""),u=b.currency===void 0?"":b.currency[0]+"",g=b.currency===void 0?"":b.currency[1]+"",m=b.decimal===void 0?".":b.decimal+"",R=b.numerals===void 0?p:t(v.call(b.numerals,String)),I=b.percent===void 0?"%":b.percent+"",z=b.minus===void 0?"-":b.minus+"",F=b.nan===void 0?"NaN":b.nan+"";function B(P){P=i(P);var N=P.fill,U=P.align,X=P.sign,te=P.symbol,ue=P.zero,ie=P.width,le=P.comma,q=P.precision,J=P.trim,ee=P.type;ee==="n"?(le=!0,ee="g"):f[ee]||(q===void 0&&(q=12),J=!0,ee="g"),(ue||N==="0"&&U==="=")&&(ue=!0,N="0",U="=");var Z=te==="$"?u:te==="#"&&/[boxX]/.test(ee)?"0"+ee.toLowerCase():"",se=te==="$"?g:/[%p]/.test(ee)?I:"",Q=f[ee],V=/[defgprs%]/.test(ee);q=q===void 0?6:/[gprs]/.test(ee)?Math.max(1,Math.min(21,q)):Math.max(0,Math.min(20,q));function re(ae){var fe=Z,xe=se,Ae,Pe,Ce;if(ee==="c")xe=Q(ae)+xe,ae="";else{ae=+ae;var je=ae<0||1/ae<0;if(ae=isNaN(ae)?F:Q(Math.abs(ae),q),J&&(ae=o(ae)),je&&+ae==0&&X!=="+"&&(je=!1),fe=(je?X==="("?X:z:X==="-"||X==="("?"":X)+fe,xe=(ee==="s"?T[8+n/3]:"")+xe+(je&&X==="("?")":""),V){for(Ae=-1,Pe=ae.length;++Ae<Pe;)if(Ce=ae.charCodeAt(Ae),48>Ce||Ce>57){xe=(Ce===46?m+ae.slice(Ae+1):ae.slice(Ae))+xe,ae=ae.slice(0,Ae);break}}}le&&!ue&&(ae=d(ae,1/0));var at=fe.length+ae.length+xe.length,tt=at<ie?new Array(ie-at+1).join(N):"";switch(le&&ue&&(ae=d(tt+ae,tt.length?ie-xe.length:1/0),tt=""),U){case"<":ae=fe+ae+xe+tt;break;case"=":ae=fe+tt+ae+xe;break;case"^":ae=tt.slice(0,at=tt.length>>1)+fe+ae+xe+tt.slice(at);break;default:ae=tt+fe+ae+xe;break}return R(ae)}return re.toString=function(){return P+""},re}function O(P,N){var U=B((P=i(P),P.type="f",P)),X=Math.max(-8,Math.min(8,Math.floor(E(N)/3)))*3,te=Math.pow(10,-X),ue=T[8+X/3];return function(ie){return U(te*ie)+ue}}return{format:B,formatPrefix:O}}var y;w({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function w(b){return y=l(b),h.format=y.format,h.formatPrefix=y.formatPrefix,y}function S(b){return Math.max(0,-E(Math.abs(b)))}function M(b,d){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(E(d)/3)))*3-E(Math.abs(b)))}function _(b,d){return b=Math.abs(b),d=Math.abs(d)-b,Math.max(0,E(d)-E(b))+1}h.FormatSpecifier=a,h.formatDefaultLocale=w,h.formatLocale=l,h.formatSpecifier=i,h.precisionFixed=S,h.precisionPrefix=M,h.precisionRound=_,Object.defineProperty(h,"__esModule",{value:!0})})}}),ef=He({"node_modules/is-string-blank/index.js"(Y,H){H.exports=function(h){for(var x=h.length,A,E=0;E<x;E++)if(A=h.charCodeAt(E),(A<9||A>13)&&A!==32&&A!==133&&A!==160&&A!==5760&&A!==6158&&(A<8192||A>8205)&&A!==8232&&A!==8233&&A!==8239&&A!==8287&&A!==8288&&A!==12288&&A!==65279)return!1;return!0}}}),lo=He({"node_modules/fast-isnumeric/index.js"(Y,H){var h=ef();H.exports=function(x){var A=typeof x;if(A==="string"){var E=x;if(x=+x,x===0&&h(E))return!1}else if(A!=="number")return!1;return x-x<1}}}),Eo=He({"src/constants/numerical.js"(Y,H){H.exports={BADNUM:void 0,FP_SAFE:Number.MAX_VALUE*1e-4,ONEMAXYEAR:316224e5,ONEAVGYEAR:315576e5,ONEMINYEAR:31536e6,ONEMAXQUARTER:79488e5,ONEAVGQUARTER:78894e5,ONEMINQUARTER:76896e5,ONEMAXMONTH:26784e5,ONEAVGMONTH:26298e5,ONEMINMONTH:24192e5,ONEWEEK:6048e5,ONEDAY:864e5,ONEHOUR:36e5,ONEMIN:6e4,ONESEC:1e3,ONEMILLI:1,ONEMICROSEC:.001,EPOCHJD:24405875e-1,ALMOST_EQUAL:1-1e-6,LOG_CLIP:10,MINUS_SIGN:"−"}}}),Yh=He({"node_modules/base64-arraybuffer/dist/base64-arraybuffer.umd.js"(Y,H){(function(h,x){typeof Y=="object"&&typeof H<"u"?x(Y):(h=typeof globalThis<"u"?globalThis:h||self,x(h["base64-arraybuffer"]={}))})(Y,function(h){for(var x="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",A=typeof Uint8Array>"u"?[]:new Uint8Array(256),E=0;E<x.length;E++)A[x.charCodeAt(E)]=E;var e=function(r){var i=new Uint8Array(r),a,o=i.length,n="";for(a=0;a<o;a+=3)n+=x[i[a]>>2],n+=x[(i[a]&3)<<4|i[a+1]>>4],n+=x[(i[a+1]&15)<<2|i[a+2]>>6],n+=x[i[a+2]&63];return o%3===2?n=n.substring(0,n.length-1)+"=":o%3===1&&(n=n.substring(0,n.length-2)+"=="),n},t=function(r){var i=r.length*.75,a=r.length,o,n=0,s,c,f,p;r[r.length-1]==="="&&(i--,r[r.length-2]==="="&&i--);var v=new ArrayBuffer(i),T=new Uint8Array(v);for(o=0;o<a;o+=4)s=A[r.charCodeAt(o)],c=A[r.charCodeAt(o+1)],f=A[r.charCodeAt(o+2)],p=A[r.charCodeAt(o+3)],T[n++]=s<<2|c>>4,T[n++]=(c&15)<<4|f>>2,T[n++]=(f&3)<<6|p&63;return v};h.decode=t,h.encode=e,Object.defineProperty(h,"__esModule",{value:!0})})}}),tv=He({"src/lib/is_plain_object.js"(Y,H){H.exports=function(x){return window&&window.process&&window.process.versions?Object.prototype.toString.call(x)==="[object Object]":Object.prototype.toString.call(x)==="[object Object]"&&Object.getPrototypeOf(x).hasOwnProperty("hasOwnProperty")}}}),Ah=He({"src/lib/array.js"(Y){var H=Yh().decode,h=tv(),x=Array.isArray,A=ArrayBuffer,E=DataView;function e(s){return A.isView(s)&&!(s instanceof E)}Y.isTypedArray=e;function t(s){return x(s)||e(s)}Y.isArrayOrTypedArray=t;function r(s){return!t(s[0])}Y.isArray1D=r,Y.ensureArray=function(s,c){return x(s)||(s=[]),s.length=c,s};var i={u1c:typeof Uint8ClampedArray>"u"?void 0:Uint8ClampedArray,i1:typeof Int8Array>"u"?void 0:Int8Array,u1:typeof Uint8Array>"u"?void 0:Uint8Array,i2:typeof Int16Array>"u"?void 0:Int16Array,u2:typeof Uint16Array>"u"?void 0:Uint16Array,i4:typeof Int32Array>"u"?void 0:Int32Array,u4:typeof Uint32Array>"u"?void 0:Uint32Array,f4:typeof Float32Array>"u"?void 0:Float32Array,f8:typeof Float64Array>"u"?void 0:Float64Array};i.uint8c=i.u1c,i.uint8=i.u1,i.int8=i.i1,i.uint16=i.u2,i.int16=i.i2,i.uint32=i.u4,i.int32=i.i4,i.float32=i.f4,i.float64=i.f8;function a(s){return s.constructor===ArrayBuffer}Y.isArrayBuffer=a,Y.decodeTypedArraySpec=function(s){var c=[],f=o(s),p=f.dtype,v=i[p];if(!v)throw new Error('Error in dtype: "'+p+'"');var T=v.BYTES_PER_ELEMENT,l=f.bdata;a(l)||(l=H(l));var y=f.shape===void 0?[l.byteLength/T]:(""+f.shape).split(",");y.reverse();var w=y.length,S,M,_=+y[0],b=T*_,d=0;if(w===1)c=new v(l);else if(w===2)for(S=+y[1],M=0;M<S;M++)c[M]=new v(l,d,_),d+=b;else if(w===3){S=+y[1];for(var u=+y[2],g=0;g<u;g++)for(c[g]=[],M=0;M<S;M++)c[g][M]=new v(l,d,_),d+=b}else throw new Error("ndim: "+w+'is not supported with the shape:"'+f.shape+'"');return c.bdata=f.bdata,c.dtype=f.dtype,c.shape=y.reverse().join(","),s._inputArray=c,c},Y.isTypedArraySpec=function(s){return h(s)&&s.hasOwnProperty("dtype")&&typeof s.dtype=="string"&&s.hasOwnProperty("bdata")&&(typeof s.bdata=="string"||a(s.bdata))&&(s.shape===void 0||s.hasOwnProperty("shape")&&(typeof s.shape=="string"||typeof s.shape=="number"))};function o(s){return{bdata:s.bdata,dtype:s.dtype,shape:s.shape}}Y.concat=function(){var s=[],c=!0,f=0,p,v,T,l,y,w,S,M;for(T=0;T<arguments.length;T++)l=arguments[T],w=l.length,w&&(v?s.push(l):(v=l,y=w),x(l)?p=!1:(c=!1,f?p!==l.constructor&&(p=!1):p=l.constructor),f+=w);if(!f)return[];if(!s.length)return v;if(c)return v.concat.apply(v,s);if(p){for(S=new p(f),S.set(v),T=0;T<s.length;T++)l=s[T],S.set(l,y),y+=l.length;return S}for(S=new Array(f),M=0;M<v.length;M++)S[M]=v[M];for(T=0;T<s.length;T++){for(l=s[T],M=0;M<l.length;M++)S[y+M]=l[M];y+=M}return S},Y.maxRowLength=function(s){return n(s,Math.max,0)},Y.minRowLength=function(s){return n(s,Math.min,1/0)};function n(s,c,f){if(t(s))if(t(s[0])){for(var p=f,v=0;v<s.length;v++)p=c(p,s[v].length);return p}else return s.length;return 0}}}),Kg=He({"src/lib/nested_property.js"(Y,H){var h=lo(),x=Ah().isArrayOrTypedArray;H.exports=function(s,c){if(h(c))c=String(c);else if(typeof c!="string"||c.substr(c.length-4)==="[-1]")throw"bad property string";var f=c.split("."),p,v,T,l;for(l=0;l<f.length;l++)if(String(f[l]).slice(0,2)==="__")throw"bad property string";for(l=0;l<f.length;){if(p=String(f[l]).match(/^([^\[\]]*)((\[\-?[0-9]*\])+)$/),p){if(p[1])f[l]=p[1];else if(l===0)f.splice(0,1);else throw"bad property string";for(v=p[2].substr(1,p[2].length-2).split("]["),T=0;T<v.length;T++)l++,f.splice(l,0,Number(v[T]))}l++}return typeof s!="object"?o(s,c,f):{set:t(s,f,c),get:A(s,f),astr:c,parts:f,obj:s}};function A(n,s){return function(c){var f=n,p,v,T,l,y;for(l=0;l<s.length-1;l++){if(p=s[l],p===-1){for(v=!0,T=[],y=0;y<f.length;y++)T[y]=A(f[y],s.slice(l+1))(c),T[y]!==T[0]&&(v=!1);return v?T[0]:T}if(typeof p=="number"&&!x(f)||(f=f[p],typeof f!="object"||f===null))return}if(!(typeof f!="object"||f===null)&&(T=f[s[l]],!(!c&&T===null)))return T}}var E=/(^|\.)args\[/;function e(n,s){return n===void 0||n===null&&!s.match(E)}function t(n,s,c){return function(f){var p=n,v="",T=e(f,c),l,y;for(y=0;y<s.length-1;y++){if(l=s[y],typeof l=="number"&&!x(p))throw"array index but container is not an array";if(l===-1){if(T=!i(p,s.slice(y+1),f,c),T)break;return}if(!a(p,l,s[y+1],T))break;if(p=p[l],typeof p!="object"||p===null)throw"container is not an object";v=r(v,l)}if(T){if(y===s.length-1&&(delete p[s[y]],Array.isArray(p)&&+s[y]===p.length-1))for(;p.length&&p[p.length-1]===void 0;)p.pop()}else p[s[y]]=f}}function r(n,s){var c=s;return h(s)?c="["+s+"]":n&&(c="."+s),n+c}function i(n,s,c,f){var p=x(c),v=!0,T=c,l=f.replace("-1",0),y=p?!1:e(c,l),w=s[0],S;for(S=0;S<n.length;S++)l=f.replace("-1",S),p&&(T=c[S%c.length],y=e(T,l)),y&&(v=!1),a(n,S,w,y)&&t(n[S],s,f.replace("-1",S))(T);return v}function a(n,s,c,f){if(n[s]===void 0){if(f)return!1;typeof c=="number"?n[s]=[]:n[s]={}}return!0}function o(n,s,c){return{set:function(){throw"bad container"},get:function(){},astr:s,parts:c,obj:n}}}}),oS=He({"src/lib/keyed_container.js"(Y,H){var h=Kg(),x=/^\w*$/,A=0,E=1,e=2,t=3,r=4;H.exports=function(a,o,n,s){n=n||"name",s=s||"value";var c,f,p,v={};o&&o.length?(p=h(a,o),f=p.get()):f=a,o=o||"";var T={};if(f)for(c=0;c<f.length;c++)T[f[c][n]]=c;var l=x.test(s),y={set:function(w,S){var M=S===null?r:A;if(!f){if(!p||M===r)return;f=[],p.set(f)}var _=T[w];if(_===void 0){if(M===r)return;M=M|t,_=f.length,T[w]=_}else S!==(l?f[_][s]:h(f[_],s).get())&&(M=M|e);var b=f[_]=f[_]||{};return b[n]=w,l?b[s]=S:h(b,s).set(S),S!==null&&(M=M&~r),v[_]=v[_]|M,y},get:function(w){if(f){var S=T[w];if(S!==void 0)return l?f[S][s]:h(f[S],s).get()}},rename:function(w,S){var M=T[w];return M===void 0||(v[M]=v[M]|E,T[S]=M,delete T[w],f[M][n]=S),y},remove:function(w){var S=T[w];if(S===void 0)return y;var M=f[S];if(Object.keys(M).length>2)return v[S]=v[S]|e,y.set(w,null);if(l){for(c=S;c<f.length;c++)v[c]=v[c]|t;for(c=S;c<f.length;c++)T[f[c][n]]--;f.splice(S,1),delete T[w]}else h(M,s).set(null),v[S]=v[S]|e|r;return y},constructUpdate:function(){for(var w,S,M={},_=Object.keys(v),b=0;b<_.length;b++)S=_[b],w=o+"["+S+"]",f[S]?(v[S]&E&&(M[w+"."+n]=f[S][n]),v[S]&e&&(l?M[w+"."+s]=v[S]&r?null:f[S][s]:M[w+"."+s]=v[S]&r?null:h(f[S],s).get())):M[w]=null;return M}};return y}}}),sS=He({"src/lib/relative_attr.js"(Y,H){var h=/^(.*)(\.[^\.\[\]]+|\[\d\])$/,x=/^[^\.\[\]]+$/;H.exports=function(A,E){for(;E;){var e=A.match(h);if(e)A=e[1];else if(A.match(x))A="";else throw new Error("bad relativeAttr call:"+[A,E]);if(E.charAt(0)==="^")E=E.slice(1);else break}return A&&E.charAt(0)!=="["?A+"."+E:A+E}}}),$m=He({"src/lib/to_log_range.js"(Y,H){var h=lo();H.exports=function(A,E){if(A>0)return Math.log(A)/Math.LN10;var e=Math.log(Math.min(E[0],E[1]))/Math.LN10;return h(e)||(e=Math.log(Math.max(E[0],E[1]))/Math.LN10-6),e}}}),lS=He({"src/lib/relink_private.js"(Y,H){var h=Ah().isArrayOrTypedArray,x=tv();H.exports=function A(E,e){for(var t in e){var r=e[t],i=E[t];if(i!==r)if(t.charAt(0)==="_"||typeof r=="function"){if(t in E)continue;E[t]=r}else if(h(r)&&h(i)&&x(r[0])){if(t==="customdata"||t==="ids")continue;for(var a=Math.min(r.length,i.length),o=0;o<a;o++)i[o]!==r[o]&&x(r[o])&&x(i[o])&&A(i[o],r[o])}else x(r)&&x(i)&&(A(i,r),Object.keys(i).length||delete E[t])}}}}),z0=He({"src/lib/mod.js"(Y,H){function h(A,E){var e=A%E;return e<0?e+E:e}function x(A,E){return Math.abs(A)>E/2?A-Math.round(A/E)*E:A}H.exports={mod:h,modHalf:x}}}),Zf=He({"node_modules/tinycolor2/tinycolor.js"(Y,H){(function(h){var x=/^\s+/,A=/\s+$/,E=0,e=h.round,t=h.min,r=h.max,i=h.random;function a(V,re){if(V=V||"",re=re||{},V instanceof a)return V;if(!(this instanceof a))return new a(V,re);var ae=o(V);this._originalInput=V,this._r=ae.r,this._g=ae.g,this._b=ae.b,this._a=ae.a,this._roundA=e(100*this._a)/100,this._format=re.format||ae.format,this._gradientType=re.gradientType,this._r<1&&(this._r=e(this._r)),this._g<1&&(this._g=e(this._g)),this._b<1&&(this._b=e(this._b)),this._ok=ae.ok,this._tc_id=E++}a.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var V=this.toRgb();return(V.r*299+V.g*587+V.b*114)/1e3},getLuminance:function(){var V=this.toRgb(),re,ae,fe,xe,Ae,Pe;return re=V.r/255,ae=V.g/255,fe=V.b/255,re<=.03928?xe=re/12.92:xe=h.pow((re+.055)/1.055,2.4),ae<=.03928?Ae=ae/12.92:Ae=h.pow((ae+.055)/1.055,2.4),fe<=.03928?Pe=fe/12.92:Pe=h.pow((fe+.055)/1.055,2.4),.2126*xe+.7152*Ae+.0722*Pe},setAlpha:function(V){return this._a=P(V),this._roundA=e(100*this._a)/100,this},toHsv:function(){var V=f(this._r,this._g,this._b);return{h:V.h*360,s:V.s,v:V.v,a:this._a}},toHsvString:function(){var V=f(this._r,this._g,this._b),re=e(V.h*360),ae=e(V.s*100),fe=e(V.v*100);return this._a==1?"hsv("+re+", "+ae+"%, "+fe+"%)":"hsva("+re+", "+ae+"%, "+fe+"%, "+this._roundA+")"},toHsl:function(){var V=s(this._r,this._g,this._b);return{h:V.h*360,s:V.s,l:V.l,a:this._a}},toHslString:function(){var V=s(this._r,this._g,this._b),re=e(V.h*360),ae=e(V.s*100),fe=e(V.l*100);return this._a==1?"hsl("+re+", "+ae+"%, "+fe+"%)":"hsla("+re+", "+ae+"%, "+fe+"%, "+this._roundA+")"},toHex:function(V){return v(this._r,this._g,this._b,V)},toHexString:function(V){return"#"+this.toHex(V)},toHex8:function(V){return T(this._r,this._g,this._b,this._a,V)},toHex8String:function(V){return"#"+this.toHex8(V)},toRgb:function(){return{r:e(this._r),g:e(this._g),b:e(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+e(this._r)+", "+e(this._g)+", "+e(this._b)+")":"rgba("+e(this._r)+", "+e(this._g)+", "+e(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:e(N(this._r,255)*100)+"%",g:e(N(this._g,255)*100)+"%",b:e(N(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+e(N(this._r,255)*100)+"%, "+e(N(this._g,255)*100)+"%, "+e(N(this._b,255)*100)+"%)":"rgba("+e(N(this._r,255)*100)+"%, "+e(N(this._g,255)*100)+"%, "+e(N(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:B[v(this._r,this._g,this._b,!0)]||!1},toFilter:function(V){var re="#"+l(this._r,this._g,this._b,this._a),ae=re,fe=this._gradientType?"GradientType = 1, ":"";if(V){var xe=a(V);ae="#"+l(xe._r,xe._g,xe._b,xe._a)}return"progid:DXImageTransform.Microsoft.gradient("+fe+"startColorstr="+re+",endColorstr="+ae+")"},toString:function(V){var re=!!V;V=V||this._format;var ae=!1,fe=this._a<1&&this._a>=0,xe=!re&&fe&&(V==="hex"||V==="hex6"||V==="hex3"||V==="hex4"||V==="hex8"||V==="name");return xe?V==="name"&&this._a===0?this.toName():this.toRgbString():(V==="rgb"&&(ae=this.toRgbString()),V==="prgb"&&(ae=this.toPercentageRgbString()),(V==="hex"||V==="hex6")&&(ae=this.toHexString()),V==="hex3"&&(ae=this.toHexString(!0)),V==="hex4"&&(ae=this.toHex8String(!0)),V==="hex8"&&(ae=this.toHex8String()),V==="name"&&(ae=this.toName()),V==="hsl"&&(ae=this.toHslString()),V==="hsv"&&(ae=this.toHsvString()),ae||this.toHexString())},clone:function(){return a(this.toString())},_applyModification:function(V,re){var ae=V.apply(null,[this].concat([].slice.call(re)));return this._r=ae._r,this._g=ae._g,this._b=ae._b,this.setAlpha(ae._a),this},lighten:function(){return this._applyModification(M,arguments)},brighten:function(){return this._applyModification(_,arguments)},darken:function(){return this._applyModification(b,arguments)},desaturate:function(){return this._applyModification(y,arguments)},saturate:function(){return this._applyModification(w,arguments)},greyscale:function(){return this._applyModification(S,arguments)},spin:function(){return this._applyModification(d,arguments)},_applyCombination:function(V,re){return V.apply(null,[this].concat([].slice.call(re)))},analogous:function(){return this._applyCombination(I,arguments)},complement:function(){return this._applyCombination(u,arguments)},monochromatic:function(){return this._applyCombination(z,arguments)},splitcomplement:function(){return this._applyCombination(R,arguments)},triad:function(){return this._applyCombination(g,arguments)},tetrad:function(){return this._applyCombination(m,arguments)}},a.fromRatio=function(V,re){if(typeof V=="object"){var ae={};for(var fe in V)V.hasOwnProperty(fe)&&(fe==="a"?ae[fe]=V[fe]:ae[fe]=le(V[fe]));V=ae}return a(V,re)};function o(V){var re={r:0,g:0,b:0},ae=1,fe=null,xe=null,Ae=null,Pe=!1,Ce=!1;return typeof V=="string"&&(V=se(V)),typeof V=="object"&&(Z(V.r)&&Z(V.g)&&Z(V.b)?(re=n(V.r,V.g,V.b),Pe=!0,Ce=String(V.r).substr(-1)==="%"?"prgb":"rgb"):Z(V.h)&&Z(V.s)&&Z(V.v)?(fe=le(V.s),xe=le(V.v),re=p(V.h,fe,xe),Pe=!0,Ce="hsv"):Z(V.h)&&Z(V.s)&&Z(V.l)&&(fe=le(V.s),Ae=le(V.l),re=c(V.h,fe,Ae),Pe=!0,Ce="hsl"),V.hasOwnProperty("a")&&(ae=V.a)),ae=P(ae),{ok:Pe,format:V.format||Ce,r:t(255,r(re.r,0)),g:t(255,r(re.g,0)),b:t(255,r(re.b,0)),a:ae}}function n(V,re,ae){return{r:N(V,255)*255,g:N(re,255)*255,b:N(ae,255)*255}}function s(V,re,ae){V=N(V,255),re=N(re,255),ae=N(ae,255);var fe=r(V,re,ae),xe=t(V,re,ae),Ae,Pe,Ce=(fe+xe)/2;if(fe==xe)Ae=Pe=0;else{var je=fe-xe;switch(Pe=Ce>.5?je/(2-fe-xe):je/(fe+xe),fe){case V:Ae=(re-ae)/je+(re<ae?6:0);break;case re:Ae=(ae-V)/je+2;break;case ae:Ae=(V-re)/je+4;break}Ae/=6}return{h:Ae,s:Pe,l:Ce}}function c(V,re,ae){var fe,xe,Ae;V=N(V,360),re=N(re,100),ae=N(ae,100);function Pe(at,tt,Je){return Je<0&&(Je+=1),Je>1&&(Je-=1),Je<1/6?at+(tt-at)*6*Je:Je<1/2?tt:Je<2/3?at+(tt-at)*(2/3-Je)*6:at}if(re===0)fe=xe=Ae=ae;else{var Ce=ae<.5?ae*(1+re):ae+re-ae*re,je=2*ae-Ce;fe=Pe(je,Ce,V+1/3),xe=Pe(je,Ce,V),Ae=Pe(je,Ce,V-1/3)}return{r:fe*255,g:xe*255,b:Ae*255}}function f(V,re,ae){V=N(V,255),re=N(re,255),ae=N(ae,255);var fe=r(V,re,ae),xe=t(V,re,ae),Ae,Pe,Ce=fe,je=fe-xe;if(Pe=fe===0?0:je/fe,fe==xe)Ae=0;else{switch(fe){case V:Ae=(re-ae)/je+(re<ae?6:0);break;case re:Ae=(ae-V)/je+2;break;case ae:Ae=(V-re)/je+4;break}Ae/=6}return{h:Ae,s:Pe,v:Ce}}function p(V,re,ae){V=N(V,360)*6,re=N(re,100),ae=N(ae,100);var fe=h.floor(V),xe=V-fe,Ae=ae*(1-re),Pe=ae*(1-xe*re),Ce=ae*(1-(1-xe)*re),je=fe%6,at=[ae,Pe,Ae,Ae,Ce,ae][je],tt=[Ce,ae,ae,Pe,Ae,Ae][je],Je=[Ae,Ae,Ce,ae,ae,Pe][je];return{r:at*255,g:tt*255,b:Je*255}}function v(V,re,ae,fe){var xe=[ie(e(V).toString(16)),ie(e(re).toString(16)),ie(e(ae).toString(16))];return fe&&xe[0].charAt(0)==xe[0].charAt(1)&&xe[1].charAt(0)==xe[1].charAt(1)&&xe[2].charAt(0)==xe[2].charAt(1)?xe[0].charAt(0)+xe[1].charAt(0)+xe[2].charAt(0):xe.join("")}function T(V,re,ae,fe,xe){var Ae=[ie(e(V).toString(16)),ie(e(re).toString(16)),ie(e(ae).toString(16)),ie(q(fe))];return xe&&Ae[0].charAt(0)==Ae[0].charAt(1)&&Ae[1].charAt(0)==Ae[1].charAt(1)&&Ae[2].charAt(0)==Ae[2].charAt(1)&&Ae[3].charAt(0)==Ae[3].charAt(1)?Ae[0].charAt(0)+Ae[1].charAt(0)+Ae[2].charAt(0)+Ae[3].charAt(0):Ae.join("")}function l(V,re,ae,fe){var xe=[ie(q(fe)),ie(e(V).toString(16)),ie(e(re).toString(16)),ie(e(ae).toString(16))];return xe.join("")}a.equals=function(V,re){return!V||!re?!1:a(V).toRgbString()==a(re).toRgbString()},a.random=function(){return a.fromRatio({r:i(),g:i(),b:i()})};function y(V,re){re=re===0?0:re||10;var ae=a(V).toHsl();return ae.s-=re/100,ae.s=U(ae.s),a(ae)}function w(V,re){re=re===0?0:re||10;var ae=a(V).toHsl();return ae.s+=re/100,ae.s=U(ae.s),a(ae)}function S(V){return a(V).desaturate(100)}function M(V,re){re=re===0?0:re||10;var ae=a(V).toHsl();return ae.l+=re/100,ae.l=U(ae.l),a(ae)}function _(V,re){re=re===0?0:re||10;var ae=a(V).toRgb();return ae.r=r(0,t(255,ae.r-e(255*-(re/100)))),ae.g=r(0,t(255,ae.g-e(255*-(re/100)))),ae.b=r(0,t(255,ae.b-e(255*-(re/100)))),a(ae)}function b(V,re){re=re===0?0:re||10;var ae=a(V).toHsl();return ae.l-=re/100,ae.l=U(ae.l),a(ae)}function d(V,re){var ae=a(V).toHsl(),fe=(ae.h+re)%360;return ae.h=fe<0?360+fe:fe,a(ae)}function u(V){var re=a(V).toHsl();return re.h=(re.h+180)%360,a(re)}function g(V){var re=a(V).toHsl(),ae=re.h;return[a(V),a({h:(ae+120)%360,s:re.s,l:re.l}),a({h:(ae+240)%360,s:re.s,l:re.l})]}function m(V){var re=a(V).toHsl(),ae=re.h;return[a(V),a({h:(ae+90)%360,s:re.s,l:re.l}),a({h:(ae+180)%360,s:re.s,l:re.l}),a({h:(ae+270)%360,s:re.s,l:re.l})]}function R(V){var re=a(V).toHsl(),ae=re.h;return[a(V),a({h:(ae+72)%360,s:re.s,l:re.l}),a({h:(ae+216)%360,s:re.s,l:re.l})]}function I(V,re,ae){re=re||6,ae=ae||30;var fe=a(V).toHsl(),xe=360/ae,Ae=[a(V)];for(fe.h=(fe.h-(xe*re>>1)+720)%360;--re;)fe.h=(fe.h+xe)%360,Ae.push(a(fe));return Ae}function z(V,re){re=re||6;for(var ae=a(V).toHsv(),fe=ae.h,xe=ae.s,Ae=ae.v,Pe=[],Ce=1/re;re--;)Pe.push(a({h:fe,s:xe,v:Ae})),Ae=(Ae+Ce)%1;return Pe}a.mix=function(V,re,ae){ae=ae===0?0:ae||50;var fe=a(V).toRgb(),xe=a(re).toRgb(),Ae=ae/100,Pe={r:(xe.r-fe.r)*Ae+fe.r,g:(xe.g-fe.g)*Ae+fe.g,b:(xe.b-fe.b)*Ae+fe.b,a:(xe.a-fe.a)*Ae+fe.a};return a(Pe)},a.readability=function(V,re){var ae=a(V),fe=a(re);return(h.max(ae.getLuminance(),fe.getLuminance())+.05)/(h.min(ae.getLuminance(),fe.getLuminance())+.05)},a.isReadable=function(V,re,ae){var fe=a.readability(V,re),xe,Ae;switch(Ae=!1,xe=Q(ae),xe.level+xe.size){case"AAsmall":case"AAAlarge":Ae=fe>=4.5;break;case"AAlarge":Ae=fe>=3;break;case"AAAsmall":Ae=fe>=7;break}return Ae},a.mostReadable=function(V,re,ae){var fe=null,xe=0,Ae,Pe,Ce,je;ae=ae||{},Pe=ae.includeFallbackColors,Ce=ae.level,je=ae.size;for(var at=0;at<re.length;at++)Ae=a.readability(V,re[at]),Ae>xe&&(xe=Ae,fe=a(re[at]));return a.isReadable(V,fe,{level:Ce,size:je})||!Pe?fe:(ae.includeFallbackColors=!1,a.mostReadable(V,["#fff","#000"],ae))};var F=a.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},B=a.hexNames=O(F);function O(V){var re={};for(var ae in V)V.hasOwnProperty(ae)&&(re[V[ae]]=ae);return re}function P(V){return V=parseFloat(V),(isNaN(V)||V<0||V>1)&&(V=1),V}function N(V,re){te(V)&&(V="100%");var ae=ue(V);return V=t(re,r(0,parseFloat(V))),ae&&(V=parseInt(V*re,10)/100),h.abs(V-re)<1e-6?1:V%re/parseFloat(re)}function U(V){return t(1,r(0,V))}function X(V){return parseInt(V,16)}function te(V){return typeof V=="string"&&V.indexOf(".")!=-1&&parseFloat(V)===1}function ue(V){return typeof V=="string"&&V.indexOf("%")!=-1}function ie(V){return V.length==1?"0"+V:""+V}function le(V){return V<=1&&(V=V*100+"%"),V}function q(V){return h.round(parseFloat(V)*255).toString(16)}function J(V){return X(V)/255}var ee=function(){var V="[-\\+]?\\d+%?",re="[-\\+]?\\d*\\.\\d+%?",ae="(?:"+re+")|(?:"+V+")",fe="[\\s|\\(]+("+ae+")[,|\\s]+("+ae+")[,|\\s]+("+ae+")\\s*\\)?",xe="[\\s|\\(]+("+ae+")[,|\\s]+("+ae+")[,|\\s]+("+ae+")[,|\\s]+("+ae+")\\s*\\)?";return{CSS_UNIT:new RegExp(ae),rgb:new RegExp("rgb"+fe),rgba:new RegExp("rgba"+xe),hsl:new RegExp("hsl"+fe),hsla:new RegExp("hsla"+xe),hsv:new RegExp("hsv"+fe),hsva:new RegExp("hsva"+xe),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function Z(V){return!!ee.CSS_UNIT.exec(V)}function se(V){V=V.replace(x,"").replace(A,"").toLowerCase();var re=!1;if(F[V])V=F[V],re=!0;else if(V=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var ae;return(ae=ee.rgb.exec(V))?{r:ae[1],g:ae[2],b:ae[3]}:(ae=ee.rgba.exec(V))?{r:ae[1],g:ae[2],b:ae[3],a:ae[4]}:(ae=ee.hsl.exec(V))?{h:ae[1],s:ae[2],l:ae[3]}:(ae=ee.hsla.exec(V))?{h:ae[1],s:ae[2],l:ae[3],a:ae[4]}:(ae=ee.hsv.exec(V))?{h:ae[1],s:ae[2],v:ae[3]}:(ae=ee.hsva.exec(V))?{h:ae[1],s:ae[2],v:ae[3],a:ae[4]}:(ae=ee.hex8.exec(V))?{r:X(ae[1]),g:X(ae[2]),b:X(ae[3]),a:J(ae[4]),format:re?"name":"hex8"}:(ae=ee.hex6.exec(V))?{r:X(ae[1]),g:X(ae[2]),b:X(ae[3]),format:re?"name":"hex"}:(ae=ee.hex4.exec(V))?{r:X(ae[1]+""+ae[1]),g:X(ae[2]+""+ae[2]),b:X(ae[3]+""+ae[3]),a:J(ae[4]+""+ae[4]),format:re?"name":"hex8"}:(ae=ee.hex3.exec(V))?{r:X(ae[1]+""+ae[1]),g:X(ae[2]+""+ae[2]),b:X(ae[3]+""+ae[3]),format:re?"name":"hex"}:!1}function Q(V){var re,ae;return V=V||{level:"AA",size:"small"},re=(V.level||"AA").toUpperCase(),ae=(V.size||"small").toLowerCase(),re!=="AA"&&re!=="AAA"&&(re="AA"),ae!=="small"&&ae!=="large"&&(ae="small"),{level:re,size:ae}}typeof H<"u"&&H.exports?H.exports=a:window.tinycolor=a})(Math)}}),Do=He({"src/lib/extend.js"(Y){var H=tv(),h=Array.isArray;function x(E,e){var t,r;for(t=0;t<E.length;t++){if(r=E[t],r!==null&&typeof r=="object")return!1;r!==void 0&&(e[t]=r)}return!0}Y.extendFlat=function(){return A(arguments,!1,!1,!1)},Y.extendDeep=function(){return A(arguments,!0,!1,!1)},Y.extendDeepAll=function(){return A(arguments,!0,!0,!1)},Y.extendDeepNoArrays=function(){return A(arguments,!0,!1,!0)};function A(E,e,t,r){var i=E[0],a=E.length,o,n,s,c,f,p,v;if(a===2&&h(i)&&h(E[1])&&i.length===0){if(v=x(E[1],i),v)return i;i.splice(0,i.length)}for(var T=1;T<a;T++){o=E[T];for(n in o)s=i[n],c=o[n],r&&h(c)?i[n]=c:e&&c&&(H(c)||(f=h(c)))?(f?(f=!1,p=s&&h(s)?s:[]):p=s&&H(s)?s:{},i[n]=A([p,c],e,t,r)):(typeof c<"u"||t)&&(i[n]=c)}return i}}}),Pu=He({"src/plots/font_attributes.js"(Y,H){H.exports=function(h){var x=h.variantValues,A=h.editType,E=h.colorEditType;E===void 0&&(E=A);var e={editType:A,valType:"integer",min:1,max:1e3,extras:["normal","bold"],dflt:"normal"};h.noNumericWeightValues&&(e.valType="enumerated",e.values=e.extras,e.extras=void 0,e.min=void 0,e.max=void 0);var t={family:{valType:"string",noBlank:!0,strict:!0,editType:A},size:{valType:"number",min:1,editType:A},color:{valType:"color",editType:E},weight:e,style:{editType:A,valType:"enumerated",values:["normal","italic"],dflt:"normal"},variant:h.noFontVariant?void 0:{editType:A,valType:"enumerated",values:x||["normal","small-caps","all-small-caps","all-petite-caps","petite-caps","unicase"],dflt:"normal"},textcase:h.noFontTextcase?void 0:{editType:A,valType:"enumerated",values:["normal","word caps","upper","lower"],dflt:"normal"},lineposition:h.noFontLineposition?void 0:{editType:A,valType:"flaglist",flags:["under","over","through"],extras:["none"],dflt:"none"},shadow:h.noFontShadow?void 0:{editType:A,valType:"string",dflt:h.autoShadowDflt?"auto":"none"},editType:A};return h.autoSize&&(t.size.dflt="auto"),h.autoColor&&(t.color.dflt="auto"),h.arrayOk&&(t.family.arrayOk=!0,t.weight.arrayOk=!0,t.style.arrayOk=!0,h.noFontVariant||(t.variant.arrayOk=!0),h.noFontTextcase||(t.textcase.arrayOk=!0),h.noFontLineposition||(t.lineposition.arrayOk=!0),h.noFontShadow||(t.shadow.arrayOk=!0),t.size.arrayOk=!0,t.color.arrayOk=!0),t}}}),$g=He({"src/components/fx/constants.js"(Y,H){H.exports={YANGLE:60,HOVERARROWSIZE:6,HOVERTEXTPAD:3,HOVERFONTSIZE:13,HOVERFONT:"Arial, sans-serif",HOVERMINTIME:50,HOVERID:"-hover"}}}),Gd=He({"src/components/fx/layout_attributes.js"(Y,H){var h=$g(),x=Pu(),A=x({editType:"none"});A.family.dflt=h.HOVERFONT,A.size.dflt=h.HOVERFONTSIZE,H.exports={clickmode:{valType:"flaglist",flags:["event","select"],dflt:"event",editType:"plot",extras:["none"]},dragmode:{valType:"enumerated",values:["zoom","pan","select","lasso","drawclosedpath","drawopenpath","drawline","drawrect","drawcircle","orbit","turntable",!1],dflt:"zoom",editType:"modebar"},hovermode:{valType:"enumerated",values:["x","y","closest",!1,"x unified","y unified"],dflt:"closest",editType:"modebar"},hoversubplots:{valType:"enumerated",values:["single","overlaying","axis"],dflt:"overlaying",editType:"none"},hoverdistance:{valType:"integer",min:-1,dflt:20,editType:"none"},spikedistance:{valType:"integer",min:-1,dflt:-1,editType:"none"},hoverlabel:{bgcolor:{valType:"color",editType:"none"},bordercolor:{valType:"color",editType:"none"},font:A,grouptitlefont:x({editType:"none"}),align:{valType:"enumerated",values:["left","right","auto"],dflt:"auto",editType:"none"},namelength:{valType:"integer",min:-1,dflt:15,editType:"none"},showarrow:{valType:"boolean",dflt:!0,editType:"none"},editType:"none"},selectdirection:{valType:"enumerated",values:["h","v","d","any"],dflt:"any",editType:"none"}}}}),F0=He({"src/components/fx/attributes.js"(Y,H){var h=Pu(),x=Gd().hoverlabel,A=Do().extendFlat;H.exports={hoverlabel:{bgcolor:A({},x.bgcolor,{arrayOk:!0}),bordercolor:A({},x.bordercolor,{arrayOk:!0}),font:h({arrayOk:!0,editType:"none"}),align:A({},x.align,{arrayOk:!0}),namelength:A({},x.namelength,{arrayOk:!0}),showarrow:A({},x.showarrow),editType:"none"}}}}),Fl=He({"src/plots/attributes.js"(Y,H){var h=Pu(),x=F0();H.exports={type:{valType:"enumerated",values:[],dflt:"scatter",editType:"calc+clearAxisTypes",_noTemplating:!0},visible:{valType:"enumerated",values:[!0,!1,"legendonly"],dflt:!0,editType:"calc"},showlegend:{valType:"boolean",dflt:!0,editType:"style"},legend:{valType:"subplotid",dflt:"legend",editType:"style"},legendgroup:{valType:"string",dflt:"",editType:"style"},legendgrouptitle:{text:{valType:"string",dflt:"",editType:"style"},font:h({editType:"style"}),editType:"style"},legendrank:{valType:"number",dflt:1e3,editType:"style"},legendwidth:{valType:"number",min:0,editType:"style"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"style"},name:{valType:"string",editType:"style"},uid:{valType:"string",editType:"plot",anim:!0},ids:{valType:"data_array",editType:"calc",anim:!0},customdata:{valType:"data_array",editType:"calc"},meta:{valType:"any",arrayOk:!0,editType:"plot"},selectedpoints:{valType:"any",editType:"calc"},hoverinfo:{valType:"flaglist",flags:["x","y","z","text","name"],extras:["all","none","skip"],arrayOk:!0,dflt:"all",editType:"none"},hoverlabel:x.hoverlabel,stream:{token:{valType:"string",noBlank:!0,strict:!0,editType:"calc"},maxpoints:{valType:"number",min:0,max:1e4,dflt:500,editType:"calc"},editType:"calc"},uirevision:{valType:"any",editType:"none"}}}}),Cp=He({"src/components/colorscale/scales.js"(Y,H){var h=Zf(),x={Greys:[[0,"rgb(0,0,0)"],[1,"rgb(255,255,255)"]],YlGnBu:[[0,"rgb(8,29,88)"],[.125,"rgb(37,52,148)"],[.25,"rgb(34,94,168)"],[.375,"rgb(29,145,192)"],[.5,"rgb(65,182,196)"],[.625,"rgb(127,205,187)"],[.75,"rgb(199,233,180)"],[.875,"rgb(237,248,217)"],[1,"rgb(255,255,217)"]],Greens:[[0,"rgb(0,68,27)"],[.125,"rgb(0,109,44)"],[.25,"rgb(35,139,69)"],[.375,"rgb(65,171,93)"],[.5,"rgb(116,196,118)"],[.625,"rgb(161,217,155)"],[.75,"rgb(199,233,192)"],[.875,"rgb(229,245,224)"],[1,"rgb(247,252,245)"]],YlOrRd:[[0,"rgb(128,0,38)"],[.125,"rgb(189,0,38)"],[.25,"rgb(227,26,28)"],[.375,"rgb(252,78,42)"],[.5,"rgb(253,141,60)"],[.625,"rgb(254,178,76)"],[.75,"rgb(254,217,118)"],[.875,"rgb(255,237,160)"],[1,"rgb(255,255,204)"]],Bluered:[[0,"rgb(0,0,255)"],[1,"rgb(255,0,0)"]],RdBu:[[0,"rgb(5,10,172)"],[.35,"rgb(106,137,247)"],[.5,"rgb(190,190,190)"],[.6,"rgb(220,170,132)"],[.7,"rgb(230,145,90)"],[1,"rgb(178,10,28)"]],Reds:[[0,"rgb(220,220,220)"],[.2,"rgb(245,195,157)"],[.4,"rgb(245,160,105)"],[1,"rgb(178,10,28)"]],Blues:[[0,"rgb(5,10,172)"],[.35,"rgb(40,60,190)"],[.5,"rgb(70,100,245)"],[.6,"rgb(90,120,245)"],[.7,"rgb(106,137,247)"],[1,"rgb(220,220,220)"]],Picnic:[[0,"rgb(0,0,255)"],[.1,"rgb(51,153,255)"],[.2,"rgb(102,204,255)"],[.3,"rgb(153,204,255)"],[.4,"rgb(204,204,255)"],[.5,"rgb(255,255,255)"],[.6,"rgb(255,204,255)"],[.7,"rgb(255,153,255)"],[.8,"rgb(255,102,204)"],[.9,"rgb(255,102,102)"],[1,"rgb(255,0,0)"]],Rainbow:[[0,"rgb(150,0,90)"],[.125,"rgb(0,0,200)"],[.25,"rgb(0,25,255)"],[.375,"rgb(0,152,255)"],[.5,"rgb(44,255,150)"],[.625,"rgb(151,255,0)"],[.75,"rgb(255,234,0)"],[.875,"rgb(255,111,0)"],[1,"rgb(255,0,0)"]],Portland:[[0,"rgb(12,51,131)"],[.25,"rgb(10,136,186)"],[.5,"rgb(242,211,56)"],[.75,"rgb(242,143,56)"],[1,"rgb(217,30,30)"]],Jet:[[0,"rgb(0,0,131)"],[.125,"rgb(0,60,170)"],[.375,"rgb(5,255,255)"],[.625,"rgb(255,255,0)"],[.875,"rgb(250,0,0)"],[1,"rgb(128,0,0)"]],Hot:[[0,"rgb(0,0,0)"],[.3,"rgb(230,0,0)"],[.6,"rgb(255,210,0)"],[1,"rgb(255,255,255)"]],Blackbody:[[0,"rgb(0,0,0)"],[.2,"rgb(230,0,0)"],[.4,"rgb(230,210,0)"],[.7,"rgb(255,255,255)"],[1,"rgb(160,200,255)"]],Earth:[[0,"rgb(0,0,130)"],[.1,"rgb(0,180,180)"],[.2,"rgb(40,210,40)"],[.4,"rgb(230,230,50)"],[.6,"rgb(120,70,20)"],[1,"rgb(255,255,255)"]],Electric:[[0,"rgb(0,0,0)"],[.15,"rgb(30,0,100)"],[.4,"rgb(120,0,100)"],[.6,"rgb(160,90,0)"],[.8,"rgb(230,200,0)"],[1,"rgb(255,250,220)"]],Viridis:[[0,"#440154"],[.06274509803921569,"#48186a"],[.12549019607843137,"#472d7b"],[.18823529411764706,"#424086"],[.25098039215686274,"#3b528b"],[.3137254901960784,"#33638d"],[.3764705882352941,"#2c728e"],[.4392156862745098,"#26828e"],[.5019607843137255,"#21918c"],[.5647058823529412,"#1fa088"],[.6274509803921569,"#28ae80"],[.6901960784313725,"#3fbc73"],[.7529411764705882,"#5ec962"],[.8156862745098039,"#84d44b"],[.8784313725490196,"#addc30"],[.9411764705882353,"#d8e219"],[1,"#fde725"]],Cividis:[[0,"rgb(0,32,76)"],[.058824,"rgb(0,42,102)"],[.117647,"rgb(0,52,110)"],[.176471,"rgb(39,63,108)"],[.235294,"rgb(60,74,107)"],[.294118,"rgb(76,85,107)"],[.352941,"rgb(91,95,109)"],[.411765,"rgb(104,106,112)"],[.470588,"rgb(117,117,117)"],[.529412,"rgb(131,129,120)"],[.588235,"rgb(146,140,120)"],[.647059,"rgb(161,152,118)"],[.705882,"rgb(176,165,114)"],[.764706,"rgb(192,177,109)"],[.823529,"rgb(209,191,102)"],[.882353,"rgb(225,204,92)"],[.941176,"rgb(243,219,79)"],[1,"rgb(255,233,69)"]]},A=x.RdBu;function E(r,i){if(i||(i=A),!r)return i;function a(){try{r=x[r]||JSON.parse(r)}catch{r=i}}return typeof r=="string"&&(a(),typeof r=="string"&&a()),e(r)?r:i}function e(r){var i=0;if(!Array.isArray(r)||r.length<2||!r[0]||!r[r.length-1]||+r[0][0]!=0||+r[r.length-1][0]!=1)return!1;for(var a=0;a<r.length;a++){var o=r[a];if(o.length!==2||+o[0]<i||!h(o[1]).isValid())return!1;i=+o[0]}return!0}function t(r){return x[r]!==void 0?!0:e(r)}H.exports={scales:x,defaultScale:A,get:E,isValid:t}}}),Mf=He({"src/components/color/attributes.js"(Y){Y.defaults=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"],Y.defaultLine="#444",Y.lightLine="#eee",Y.background="#fff",Y.borderLine="#BEC8D9",Y.lightFraction=100*10/11}}),Fi=He({"src/components/color/index.js"(Y,H){var h=Zf(),x=lo(),A=Ah().isTypedArray,E=H.exports={},e=Mf();E.defaults=e.defaults;var t=E.defaultLine=e.defaultLine;E.lightLine=e.lightLine;var r=E.background=e.background;E.tinyRGB=function(a){var o=a.toRgb();return"rgb("+Math.round(o.r)+", "+Math.round(o.g)+", "+Math.round(o.b)+")"},E.rgb=function(a){return E.tinyRGB(h(a))},E.opacity=function(a){return a?h(a).getAlpha():0},E.addOpacity=function(a,o){var n=h(a).toRgb();return"rgba("+Math.round(n.r)+", "+Math.round(n.g)+", "+Math.round(n.b)+", "+o+")"},E.combine=function(a,o){var n=h(a).toRgb();if(n.a===1)return h(a).toRgbString();var s=h(o||r).toRgb(),c=s.a===1?s:{r:255*(1-s.a)+s.r*s.a,g:255*(1-s.a)+s.g*s.a,b:255*(1-s.a)+s.b*s.a},f={r:c.r*(1-n.a)+n.r*n.a,g:c.g*(1-n.a)+n.g*n.a,b:c.b*(1-n.a)+n.b*n.a};return h(f).toRgbString()},E.interpolate=function(a,o,n){var s=h(a).toRgb(),c=h(o).toRgb(),f={r:n*s.r+(1-n)*c.r,g:n*s.g+(1-n)*c.g,b:n*s.b+(1-n)*c.b};return h(f).toRgbString()},E.contrast=function(a,o,n){var s=h(a);s.getAlpha()!==1&&(s=h(E.combine(a,r)));var c=s.isDark()?o?s.lighten(o):r:n?s.darken(n):t;return c.toString()},E.stroke=function(a,o){var n=h(o);a.style({stroke:E.tinyRGB(n),"stroke-opacity":n.getAlpha()})},E.fill=function(a,o){var n=h(o);a.style({fill:E.tinyRGB(n),"fill-opacity":n.getAlpha()})},E.clean=function(a){if(!(!a||typeof a!="object")){var o=Object.keys(a),n,s,c,f;for(n=0;n<o.length;n++)if(c=o[n],f=a[c],c.substr(c.length-5)==="color")if(Array.isArray(f))for(s=0;s<f.length;s++)f[s]=i(f[s]);else a[c]=i(f);else if(c.substr(c.length-10)==="colorscale"&&Array.isArray(f))for(s=0;s<f.length;s++)Array.isArray(f[s])&&(f[s][1]=i(f[s][1]));else if(Array.isArray(f)){var p=f[0];if(!Array.isArray(p)&&p&&typeof p=="object")for(s=0;s<f.length;s++)E.clean(f[s])}else f&&typeof f=="object"&&!A(f)&&E.clean(f)}};function i(a){if(x(a)||typeof a!="string")return a;var o=a.trim();if(o.substr(0,3)!=="rgb")return a;var n=o.match(/^rgba?\s*\(([^()]*)\)$/);if(!n)return a;var s=n[1].trim().split(/\s*[\s,]\s*/),c=o.charAt(3)==="a"&&s.length===4;if(!c&&s.length!==3)return a;for(var f=0;f<s.length;f++){if(!s[f].length||(s[f]=Number(s[f]),!(s[f]>=0)))return a;if(f===3)s[f]>1&&(s[f]=1);else if(s[f]>=1)return a}var p=Math.round(s[0]*255)+", "+Math.round(s[1]*255)+", "+Math.round(s[2]*255);return c?"rgba("+p+", "+s[3]+")":"rgb("+p+")"}}}),Hd=He({"src/constants/interactions.js"(Y,H){H.exports={SHOW_PLACEHOLDER:100,HIDE_PLACEHOLDER:1e3,DESELECTDIM:.2}}}),O0=He({"src/lib/regex.js"(Y){Y.counter=function(H,h,x,A){var E=(h||"")+(x?"":"$"),e=A===!1?"":"^";return H==="xy"?new RegExp(e+"x([2-9]|[1-9][0-9]+)?y([2-9]|[1-9][0-9]+)?"+E):new RegExp(e+H+"([2-9]|[1-9][0-9]+)?"+E)}}}),uS=He({"src/lib/coerce.js"(Y){var H=lo(),h=Zf(),x=Do().extendFlat,A=Fl(),E=Cp(),e=Fi(),t=Hd().DESELECTDIM,r=Kg(),i=O0().counter,a=z0().modHalf,o=Ah().isArrayOrTypedArray,n=Ah().isTypedArraySpec,s=Ah().decodeTypedArraySpec;Y.valObjectMeta={data_array:{coerceFunction:function(f,p,v){p.set(o(f)?f:n(f)?s(f):v)}},enumerated:{coerceFunction:function(f,p,v,T){T.coerceNumber&&(f=+f),T.values.indexOf(f)===-1?p.set(v):p.set(f)},validateFunction:function(f,p){p.coerceNumber&&(f=+f);for(var v=p.values,T=0;T<v.length;T++){var l=String(v[T]);if(l.charAt(0)==="/"&&l.charAt(l.length-1)==="/"){var y=new RegExp(l.substr(1,l.length-2));if(y.test(f))return!0}else if(f===v[T])return!0}return!1}},boolean:{coerceFunction:function(f,p,v){f===!0||f===!1?p.set(f):p.set(v)}},number:{coerceFunction:function(f,p,v,T){n(f)&&(f=s(f)),!H(f)||T.min!==void 0&&f<T.min||T.max!==void 0&&f>T.max?p.set(v):p.set(+f)}},integer:{coerceFunction:function(f,p,v,T){if((T.extras||[]).indexOf(f)!==-1){p.set(f);return}n(f)&&(f=s(f)),f%1||!H(f)||T.min!==void 0&&f<T.min||T.max!==void 0&&f>T.max?p.set(v):p.set(+f)}},string:{coerceFunction:function(f,p,v,T){if(typeof f!="string"){var l=typeof f=="number";T.strict===!0||!l?p.set(v):p.set(String(f))}else T.noBlank&&!f?p.set(v):p.set(f)}},color:{coerceFunction:function(f,p,v){n(f)&&(f=s(f)),h(f).isValid()?p.set(f):p.set(v)}},colorlist:{coerceFunction:function(f,p,v){function T(l){return h(l).isValid()}!Array.isArray(f)||!f.length?p.set(v):f.every(T)?p.set(f):p.set(v)}},colorscale:{coerceFunction:function(f,p,v){p.set(E.get(f,v))}},angle:{coerceFunction:function(f,p,v){n(f)&&(f=s(f)),f==="auto"?p.set("auto"):H(f)?p.set(a(+f,360)):p.set(v)}},subplotid:{coerceFunction:function(f,p,v,T){var l=T.regex||i(v);if(typeof f=="string"&&l.test(f)){p.set(f);return}p.set(v)},validateFunction:function(f,p){var v=p.dflt;return f===v?!0:typeof f!="string"?!1:!!i(v).test(f)}},flaglist:{coerceFunction:function(f,p,v,T){if((T.extras||[]).indexOf(f)!==-1){p.set(f);return}if(typeof f!="string"){p.set(v);return}for(var l=f.split("+"),y=0;y<l.length;){var w=l[y];T.flags.indexOf(w)===-1||l.indexOf(w)<y?l.splice(y,1):y++}l.length?p.set(l.join("+")):p.set(v)}},any:{coerceFunction:function(f,p,v){f===void 0?p.set(v):p.set(n(f)?s(f):f)}},info_array:{coerceFunction:function(f,p,v,T){function l(F,B,O){var P,N={set:function(U){P=U}};return O===void 0&&(O=B.dflt),Y.valObjectMeta[B.valType].coerceFunction(F,N,O,B),P}if(n(f)&&(f=s(f)),!o(f)){p.set(v);return}var y=T.dimensions===2||T.dimensions==="1-2"&&Array.isArray(f)&&o(f[0]),w=T.items,S=[],M=Array.isArray(w),_=M&&y&&o(w[0]),b=y&&M&&!_,d=M&&!b?w.length:f.length,u,g,m,R,I,z;if(v=Array.isArray(v)?v:[],y)for(u=0;u<d;u++)for(S[u]=[],m=o(f[u])?f[u]:[],b?I=w.length:M?I=w[u].length:I=m.length,g=0;g<I;g++)b?R=w[g]:M?R=w[u][g]:R=w,z=l(m[g],R,(v[u]||[])[g]),z!==void 0&&(S[u][g]=z);else for(u=0;u<d;u++)z=l(f[u],M?w[u]:w,v[u]),z!==void 0&&(S[u]=z);p.set(S)},validateFunction:function(f,p){if(!o(f))return!1;var v=p.items,T=Array.isArray(v),l=p.dimensions===2;if(!p.freeLength&&f.length!==v.length)return!1;for(var y=0;y<f.length;y++)if(l){if(!o(f[y])||!p.freeLength&&f[y].length!==v[y].length)return!1;for(var w=0;w<f[y].length;w++)if(!c(f[y][w],T?v[y][w]:v))return!1}else if(!c(f[y],T?v[y]:v))return!1;return!0}}},Y.coerce=function(f,p,v,T,l){var y=r(v,T).get(),w=r(f,T),S=r(p,T),M=w.get(),_=p._template;if(M===void 0&&_&&(M=r(_,T).get(),_=0),l===void 0&&(l=y.dflt),y.arrayOk){if(o(M))return S.set(M),M;if(n(M))return M=s(M),S.set(M),M}var b=Y.valObjectMeta[y.valType].coerceFunction;b(M,S,l,y);var d=S.get();return _&&d===l&&!c(M,y)&&(M=r(_,T).get(),b(M,S,l,y),d=S.get()),d},Y.coerce2=function(f,p,v,T,l){var y=r(f,T),w=Y.coerce(f,p,v,T,l),S=y.get();return S!=null?w:!1},Y.coerceFont=function(f,p,v,T){T||(T={}),v=x({},v),v=x(v,T.overrideDflt||{});var l={family:f(p+".family",v.family),size:f(p+".size",v.size),color:f(p+".color",v.color),weight:f(p+".weight",v.weight),style:f(p+".style",v.style)};if(T.noFontVariant||(l.variant=f(p+".variant",v.variant)),T.noFontLineposition||(l.lineposition=f(p+".lineposition",v.lineposition)),T.noFontTextcase||(l.textcase=f(p+".textcase",v.textcase)),!T.noFontShadow){var y=v.shadow;y==="none"&&T.autoShadowDflt&&(y="auto"),l.shadow=f(p+".shadow",y)}return l},Y.coercePattern=function(f,p,v,T){var l=f(p+".shape"),y;if(l||(y=f(p+".path")),l||y){l&&f(p+".solidity"),f(p+".size");var w=f(p+".fillmode"),S=w==="overlay";if(!T){var M=f(p+".bgcolor",S?v:void 0);f(p+".fgcolor",S?e.contrast(M):v)}f(p+".fgopacity",S?.5:1)}},Y.coerceHoverinfo=function(f,p,v){var T=p._module.attributes,l=T.hoverinfo?T:A,y=l.hoverinfo,w;if(v._dataLength===1){var S=y.dflt==="all"?y.flags.slice():y.dflt.split("+");S.splice(S.indexOf("name"),1),w=S.join("+")}return Y.coerce(f,p,l,"hoverinfo",w)},Y.coerceSelectionMarkerOpacity=function(f,p){if(f.marker){var v=f.marker.opacity;if(v!==void 0){var T,l;!o(v)&&!f.selected&&!f.unselected&&(T=v,l=t*v),p("selected.marker.opacity",T),p("unselected.marker.opacity",l)}}};function c(f,p){var v=Y.valObjectMeta[p.valType];if(p.arrayOk&&o(f))return!0;if(v.validateFunction)return v.validateFunction(f,p);var T={},l=T,y={set:function(w){l=w}};return v.coerceFunction(f,y,T,p),l!==T}Y.validate=c}}),Lp=He({"src/plot_api/plot_config.js"(Y,H){var h={staticPlot:{valType:"boolean",dflt:!1},typesetMath:{valType:"boolean",dflt:!0},plotlyServerURL:{valType:"string",dflt:""},editable:{valType:"boolean",dflt:!1},edits:{annotationPosition:{valType:"boolean",dflt:!1},annotationTail:{valType:"boolean",dflt:!1},annotationText:{valType:"boolean",dflt:!1},axisTitleText:{valType:"boolean",dflt:!1},colorbarPosition:{valType:"boolean",dflt:!1},colorbarTitleText:{valType:"boolean",dflt:!1},legendPosition:{valType:"boolean",dflt:!1},legendText:{valType:"boolean",dflt:!1},shapePosition:{valType:"boolean",dflt:!1},titleText:{valType:"boolean",dflt:!1}},editSelection:{valType:"boolean",dflt:!0},autosizable:{valType:"boolean",dflt:!1},responsive:{valType:"boolean",dflt:!1},fillFrame:{valType:"boolean",dflt:!1},frameMargins:{valType:"number",dflt:0,min:0,max:.5},scrollZoom:{valType:"flaglist",flags:["cartesian","gl3d","geo","mapbox","map"],extras:[!0,!1],dflt:"gl3d+geo+map"},doubleClick:{valType:"enumerated",values:[!1,"reset","autosize","reset+autosize"],dflt:"reset+autosize"},doubleClickDelay:{valType:"number",dflt:300,min:0},showAxisDragHandles:{valType:"boolean",dflt:!0},showAxisRangeEntryBoxes:{valType:"boolean",dflt:!0},showTips:{valType:"boolean",dflt:!0},showLink:{valType:"boolean",dflt:!1},linkText:{valType:"string",dflt:"Edit chart",noBlank:!0},sendData:{valType:"boolean",dflt:!0},showSources:{valType:"any",dflt:!1},displayModeBar:{valType:"enumerated",values:["hover",!0,!1],dflt:"hover"},showSendToCloud:{valType:"boolean",dflt:!1},showEditInChartStudio:{valType:"boolean",dflt:!1},modeBarButtonsToRemove:{valType:"any",dflt:[]},modeBarButtonsToAdd:{valType:"any",dflt:[]},modeBarButtons:{valType:"any",dflt:!1},toImageButtonOptions:{valType:"any",dflt:{}},displaylogo:{valType:"boolean",dflt:!0},watermark:{valType:"boolean",dflt:!1},plotGlPixelRatio:{valType:"number",dflt:2,min:1,max:4},setBackground:{valType:"any",dflt:"transparent"},topojsonURL:{valType:"string",noBlank:!0,dflt:"https://cdn.plot.ly/un/"},mapboxAccessToken:{valType:"string",dflt:null},logging:{valType:"integer",min:0,max:2,dflt:1},notifyOnLogging:{valType:"integer",min:0,max:2,dflt:0},queueLength:{valType:"integer",min:0,dflt:0},locale:{valType:"string",dflt:"en-US"},locales:{valType:"any",dflt:{}}},x={};function A(E,e){for(var t in E){var r=E[t];r.valType?e[t]=r.dflt:(e[t]||(e[t]={}),A(r,e[t]))}}A(h,x),H.exports={configAttributes:h,dfltConfig:x}}}),cb=He({"src/lib/notifier.js"(Y,H){var h=Zn(),x=lo(),A=[];H.exports=function(E,e){if(A.indexOf(E)!==-1)return;A.push(E);var t=1e3;x(e)?t=e:e==="long"&&(t=3e3);var r=h.select("body").selectAll(".plotly-notifier").data([0]);r.enter().append("div").classed("plotly-notifier",!0);var i=r.selectAll(".notifier-note").data(A);function a(o){o.duration(700).style("opacity",0).each("end",function(n){var s=A.indexOf(n);s!==-1&&A.splice(s,1),h.select(this).remove()})}i.enter().append("div").classed("notifier-note",!0).style("opacity",0).each(function(o){var n=h.select(this);n.append("button").classed("notifier-close",!0).html("×").on("click",function(){n.transition().call(a)});for(var s=n.append("p"),c=o.split(/<br\s*\/?>/g),f=0;f<c.length;f++)f&&s.append("br"),s.append("span").text(c[f]);e==="stick"?n.transition().duration(350).style("opacity",1):n.transition().duration(700).style("opacity",1).transition().delay(t).call(a)})}}}),Wd=He({"src/lib/loggers.js"(Y,H){var h=Lp().dfltConfig,x=cb(),A=H.exports={};A.log=function(){var E;if(h.logging>1){var e=["LOG:"];for(E=0;E<arguments.length;E++)e.push(arguments[E]);console.trace.apply(console,e)}if(h.notifyOnLogging>1){var t=[];for(E=0;E<arguments.length;E++)t.push(arguments[E]);x(t.join("<br>"),"long")}},A.warn=function(){var E;if(h.logging>0){var e=["WARN:"];for(E=0;E<arguments.length;E++)e.push(arguments[E]);console.trace.apply(console,e)}if(h.notifyOnLogging>0){var t=[];for(E=0;E<arguments.length;E++)t.push(arguments[E]);x(t.join("<br>"),"stick")}},A.error=function(){var E;if(h.logging>0){var e=["ERROR:"];for(E=0;E<arguments.length;E++)e.push(arguments[E]);console.error.apply(console,e)}if(h.notifyOnLogging>0){var t=[];for(E=0;E<arguments.length;E++)t.push(arguments[E]);x(t.join("<br>"),"stick")}}}}),Jm=He({"src/lib/noop.js"(Y,H){H.exports=function(){}}}),fb=He({"src/lib/push_unique.js"(Y,H){H.exports=function(x,A){if(A instanceof RegExp){for(var E=A.toString(),e=0;e<x.length;e++)if(x[e]instanceof RegExp&&x[e].toString()===E)return x;x.push(A)}else(A||A===0)&&x.indexOf(A)===-1&&x.push(A);return x}}}),cS=He({"node_modules/gl-mat4/create.js"(Y,H){H.exports=h;function h(){var x=new Float32Array(16);return x[0]=1,x[1]=0,x[2]=0,x[3]=0,x[4]=0,x[5]=1,x[6]=0,x[7]=0,x[8]=0,x[9]=0,x[10]=1,x[11]=0,x[12]=0,x[13]=0,x[14]=0,x[15]=1,x}}}),fS=He({"node_modules/gl-mat4/clone.js"(Y,H){H.exports=h;function h(x){var A=new Float32Array(16);return A[0]=x[0],A[1]=x[1],A[2]=x[2],A[3]=x[3],A[4]=x[4],A[5]=x[5],A[6]=x[6],A[7]=x[7],A[8]=x[8],A[9]=x[9],A[10]=x[10],A[11]=x[11],A[12]=x[12],A[13]=x[13],A[14]=x[14],A[15]=x[15],A}}}),hS=He({"node_modules/gl-mat4/copy.js"(Y,H){H.exports=h;function h(x,A){return x[0]=A[0],x[1]=A[1],x[2]=A[2],x[3]=A[3],x[4]=A[4],x[5]=A[5],x[6]=A[6],x[7]=A[7],x[8]=A[8],x[9]=A[9],x[10]=A[10],x[11]=A[11],x[12]=A[12],x[13]=A[13],x[14]=A[14],x[15]=A[15],x}}}),hb=He({"node_modules/gl-mat4/identity.js"(Y,H){H.exports=h;function h(x){return x[0]=1,x[1]=0,x[2]=0,x[3]=0,x[4]=0,x[5]=1,x[6]=0,x[7]=0,x[8]=0,x[9]=0,x[10]=1,x[11]=0,x[12]=0,x[13]=0,x[14]=0,x[15]=1,x}}}),vS=He({"node_modules/gl-mat4/transpose.js"(Y,H){H.exports=h;function h(x,A){if(x===A){var E=A[1],e=A[2],t=A[3],r=A[6],i=A[7],a=A[11];x[1]=A[4],x[2]=A[8],x[3]=A[12],x[4]=E,x[6]=A[9],x[7]=A[13],x[8]=e,x[9]=r,x[11]=A[14],x[12]=t,x[13]=i,x[14]=a}else x[0]=A[0],x[1]=A[4],x[2]=A[8],x[3]=A[12],x[4]=A[1],x[5]=A[5],x[6]=A[9],x[7]=A[13],x[8]=A[2],x[9]=A[6],x[10]=A[10],x[11]=A[14],x[12]=A[3],x[13]=A[7],x[14]=A[11],x[15]=A[15];return x}}}),dS=He({"node_modules/gl-mat4/invert.js"(Y,H){H.exports=h;function h(x,A){var E=A[0],e=A[1],t=A[2],r=A[3],i=A[4],a=A[5],o=A[6],n=A[7],s=A[8],c=A[9],f=A[10],p=A[11],v=A[12],T=A[13],l=A[14],y=A[15],w=E*a-e*i,S=E*o-t*i,M=E*n-r*i,_=e*o-t*a,b=e*n-r*a,d=t*n-r*o,u=s*T-c*v,g=s*l-f*v,m=s*y-p*v,R=c*l-f*T,I=c*y-p*T,z=f*y-p*l,F=w*z-S*I+M*R+_*m-b*g+d*u;return F?(F=1/F,x[0]=(a*z-o*I+n*R)*F,x[1]=(t*I-e*z-r*R)*F,x[2]=(T*d-l*b+y*_)*F,x[3]=(f*b-c*d-p*_)*F,x[4]=(o*m-i*z-n*g)*F,x[5]=(E*z-t*m+r*g)*F,x[6]=(l*M-v*d-y*S)*F,x[7]=(s*d-f*M+p*S)*F,x[8]=(i*I-a*m+n*u)*F,x[9]=(e*m-E*I-r*u)*F,x[10]=(v*b-T*M+y*w)*F,x[11]=(c*M-s*b-p*w)*F,x[12]=(a*g-i*R-o*u)*F,x[13]=(E*R-e*g+t*u)*F,x[14]=(T*S-v*_-l*w)*F,x[15]=(s*_-c*S+f*w)*F,x):null}}}),pS=He({"node_modules/gl-mat4/adjoint.js"(Y,H){H.exports=h;function h(x,A){var E=A[0],e=A[1],t=A[2],r=A[3],i=A[4],a=A[5],o=A[6],n=A[7],s=A[8],c=A[9],f=A[10],p=A[11],v=A[12],T=A[13],l=A[14],y=A[15];return x[0]=a*(f*y-p*l)-c*(o*y-n*l)+T*(o*p-n*f),x[1]=-(e*(f*y-p*l)-c*(t*y-r*l)+T*(t*p-r*f)),x[2]=e*(o*y-n*l)-a*(t*y-r*l)+T*(t*n-r*o),x[3]=-(e*(o*p-n*f)-a*(t*p-r*f)+c*(t*n-r*o)),x[4]=-(i*(f*y-p*l)-s*(o*y-n*l)+v*(o*p-n*f)),x[5]=E*(f*y-p*l)-s*(t*y-r*l)+v*(t*p-r*f),x[6]=-(E*(o*y-n*l)-i*(t*y-r*l)+v*(t*n-r*o)),x[7]=E*(o*p-n*f)-i*(t*p-r*f)+s*(t*n-r*o),x[8]=i*(c*y-p*T)-s*(a*y-n*T)+v*(a*p-n*c),x[9]=-(E*(c*y-p*T)-s*(e*y-r*T)+v*(e*p-r*c)),x[10]=E*(a*y-n*T)-i*(e*y-r*T)+v*(e*n-r*a),x[11]=-(E*(a*p-n*c)-i*(e*p-r*c)+s*(e*n-r*a)),x[12]=-(i*(c*l-f*T)-s*(a*l-o*T)+v*(a*f-o*c)),x[13]=E*(c*l-f*T)-s*(e*l-t*T)+v*(e*f-t*c),x[14]=-(E*(a*l-o*T)-i*(e*l-t*T)+v*(e*o-t*a)),x[15]=E*(a*f-o*c)-i*(e*f-t*c)+s*(e*o-t*a),x}}}),gS=He({"node_modules/gl-mat4/determinant.js"(Y,H){H.exports=h;function h(x){var A=x[0],E=x[1],e=x[2],t=x[3],r=x[4],i=x[5],a=x[6],o=x[7],n=x[8],s=x[9],c=x[10],f=x[11],p=x[12],v=x[13],T=x[14],l=x[15],y=A*i-E*r,w=A*a-e*r,S=A*o-t*r,M=E*a-e*i,_=E*o-t*i,b=e*o-t*a,d=n*v-s*p,u=n*T-c*p,g=n*l-f*p,m=s*T-c*v,R=s*l-f*v,I=c*l-f*T;return y*I-w*R+S*m+M*g-_*u+b*d}}}),yS=He({"node_modules/gl-mat4/multiply.js"(Y,H){H.exports=h;function h(x,A,E){var e=A[0],t=A[1],r=A[2],i=A[3],a=A[4],o=A[5],n=A[6],s=A[7],c=A[8],f=A[9],p=A[10],v=A[11],T=A[12],l=A[13],y=A[14],w=A[15],S=E[0],M=E[1],_=E[2],b=E[3];return x[0]=S*e+M*a+_*c+b*T,x[1]=S*t+M*o+_*f+b*l,x[2]=S*r+M*n+_*p+b*y,x[3]=S*i+M*s+_*v+b*w,S=E[4],M=E[5],_=E[6],b=E[7],x[4]=S*e+M*a+_*c+b*T,x[5]=S*t+M*o+_*f+b*l,x[6]=S*r+M*n+_*p+b*y,x[7]=S*i+M*s+_*v+b*w,S=E[8],M=E[9],_=E[10],b=E[11],x[8]=S*e+M*a+_*c+b*T,x[9]=S*t+M*o+_*f+b*l,x[10]=S*r+M*n+_*p+b*y,x[11]=S*i+M*s+_*v+b*w,S=E[12],M=E[13],_=E[14],b=E[15],x[12]=S*e+M*a+_*c+b*T,x[13]=S*t+M*o+_*f+b*l,x[14]=S*r+M*n+_*p+b*y,x[15]=S*i+M*s+_*v+b*w,x}}}),mS=He({"node_modules/gl-mat4/translate.js"(Y,H){H.exports=h;function h(x,A,E){var e=E[0],t=E[1],r=E[2],i,a,o,n,s,c,f,p,v,T,l,y;return A===x?(x[12]=A[0]*e+A[4]*t+A[8]*r+A[12],x[13]=A[1]*e+A[5]*t+A[9]*r+A[13],x[14]=A[2]*e+A[6]*t+A[10]*r+A[14],x[15]=A[3]*e+A[7]*t+A[11]*r+A[15]):(i=A[0],a=A[1],o=A[2],n=A[3],s=A[4],c=A[5],f=A[6],p=A[7],v=A[8],T=A[9],l=A[10],y=A[11],x[0]=i,x[1]=a,x[2]=o,x[3]=n,x[4]=s,x[5]=c,x[6]=f,x[7]=p,x[8]=v,x[9]=T,x[10]=l,x[11]=y,x[12]=i*e+s*t+v*r+A[12],x[13]=a*e+c*t+T*r+A[13],x[14]=o*e+f*t+l*r+A[14],x[15]=n*e+p*t+y*r+A[15]),x}}}),_S=He({"node_modules/gl-mat4/scale.js"(Y,H){H.exports=h;function h(x,A,E){var e=E[0],t=E[1],r=E[2];return x[0]=A[0]*e,x[1]=A[1]*e,x[2]=A[2]*e,x[3]=A[3]*e,x[4]=A[4]*t,x[5]=A[5]*t,x[6]=A[6]*t,x[7]=A[7]*t,x[8]=A[8]*r,x[9]=A[9]*r,x[10]=A[10]*r,x[11]=A[11]*r,x[12]=A[12],x[13]=A[13],x[14]=A[14],x[15]=A[15],x}}}),xS=He({"node_modules/gl-mat4/rotate.js"(Y,H){H.exports=h;function h(x,A,E,e){var t=e[0],r=e[1],i=e[2],a=Math.sqrt(t*t+r*r+i*i),o,n,s,c,f,p,v,T,l,y,w,S,M,_,b,d,u,g,m,R,I,z,F,B;return Math.abs(a)<1e-6?null:(a=1/a,t*=a,r*=a,i*=a,o=Math.sin(E),n=Math.cos(E),s=1-n,c=A[0],f=A[1],p=A[2],v=A[3],T=A[4],l=A[5],y=A[6],w=A[7],S=A[8],M=A[9],_=A[10],b=A[11],d=t*t*s+n,u=r*t*s+i*o,g=i*t*s-r*o,m=t*r*s-i*o,R=r*r*s+n,I=i*r*s+t*o,z=t*i*s+r*o,F=r*i*s-t*o,B=i*i*s+n,x[0]=c*d+T*u+S*g,x[1]=f*d+l*u+M*g,x[2]=p*d+y*u+_*g,x[3]=v*d+w*u+b*g,x[4]=c*m+T*R+S*I,x[5]=f*m+l*R+M*I,x[6]=p*m+y*R+_*I,x[7]=v*m+w*R+b*I,x[8]=c*z+T*F+S*B,x[9]=f*z+l*F+M*B,x[10]=p*z+y*F+_*B,x[11]=v*z+w*F+b*B,A!==x&&(x[12]=A[12],x[13]=A[13],x[14]=A[14],x[15]=A[15]),x)}}}),bS=He({"node_modules/gl-mat4/rotateX.js"(Y,H){H.exports=h;function h(x,A,E){var e=Math.sin(E),t=Math.cos(E),r=A[4],i=A[5],a=A[6],o=A[7],n=A[8],s=A[9],c=A[10],f=A[11];return A!==x&&(x[0]=A[0],x[1]=A[1],x[2]=A[2],x[3]=A[3],x[12]=A[12],x[13]=A[13],x[14]=A[14],x[15]=A[15]),x[4]=r*t+n*e,x[5]=i*t+s*e,x[6]=a*t+c*e,x[7]=o*t+f*e,x[8]=n*t-r*e,x[9]=s*t-i*e,x[10]=c*t-a*e,x[11]=f*t-o*e,x}}}),wS=He({"node_modules/gl-mat4/rotateY.js"(Y,H){H.exports=h;function h(x,A,E){var e=Math.sin(E),t=Math.cos(E),r=A[0],i=A[1],a=A[2],o=A[3],n=A[8],s=A[9],c=A[10],f=A[11];return A!==x&&(x[4]=A[4],x[5]=A[5],x[6]=A[6],x[7]=A[7],x[12]=A[12],x[13]=A[13],x[14]=A[14],x[15]=A[15]),x[0]=r*t-n*e,x[1]=i*t-s*e,x[2]=a*t-c*e,x[3]=o*t-f*e,x[8]=r*e+n*t,x[9]=i*e+s*t,x[10]=a*e+c*t,x[11]=o*e+f*t,x}}}),TS=He({"node_modules/gl-mat4/rotateZ.js"(Y,H){H.exports=h;function h(x,A,E){var e=Math.sin(E),t=Math.cos(E),r=A[0],i=A[1],a=A[2],o=A[3],n=A[4],s=A[5],c=A[6],f=A[7];return A!==x&&(x[8]=A[8],x[9]=A[9],x[10]=A[10],x[11]=A[11],x[12]=A[12],x[13]=A[13],x[14]=A[14],x[15]=A[15]),x[0]=r*t+n*e,x[1]=i*t+s*e,x[2]=a*t+c*e,x[3]=o*t+f*e,x[4]=n*t-r*e,x[5]=s*t-i*e,x[6]=c*t-a*e,x[7]=f*t-o*e,x}}}),AS=He({"node_modules/gl-mat4/fromRotation.js"(Y,H){H.exports=h;function h(x,A,E){var e,t,r,i=E[0],a=E[1],o=E[2],n=Math.sqrt(i*i+a*a+o*o);return Math.abs(n)<1e-6?null:(n=1/n,i*=n,a*=n,o*=n,e=Math.sin(A),t=Math.cos(A),r=1-t,x[0]=i*i*r+t,x[1]=a*i*r+o*e,x[2]=o*i*r-a*e,x[3]=0,x[4]=i*a*r-o*e,x[5]=a*a*r+t,x[6]=o*a*r+i*e,x[7]=0,x[8]=i*o*r+a*e,x[9]=a*o*r-i*e,x[10]=o*o*r+t,x[11]=0,x[12]=0,x[13]=0,x[14]=0,x[15]=1,x)}}}),SS=He({"node_modules/gl-mat4/fromRotationTranslation.js"(Y,H){H.exports=h;function h(x,A,E){var e=A[0],t=A[1],r=A[2],i=A[3],a=e+e,o=t+t,n=r+r,s=e*a,c=e*o,f=e*n,p=t*o,v=t*n,T=r*n,l=i*a,y=i*o,w=i*n;return x[0]=1-(p+T),x[1]=c+w,x[2]=f-y,x[3]=0,x[4]=c-w,x[5]=1-(s+T),x[6]=v+l,x[7]=0,x[8]=f+y,x[9]=v-l,x[10]=1-(s+p),x[11]=0,x[12]=E[0],x[13]=E[1],x[14]=E[2],x[15]=1,x}}}),MS=He({"node_modules/gl-mat4/fromScaling.js"(Y,H){H.exports=h;function h(x,A){return x[0]=A[0],x[1]=0,x[2]=0,x[3]=0,x[4]=0,x[5]=A[1],x[6]=0,x[7]=0,x[8]=0,x[9]=0,x[10]=A[2],x[11]=0,x[12]=0,x[13]=0,x[14]=0,x[15]=1,x}}}),ES=He({"node_modules/gl-mat4/fromTranslation.js"(Y,H){H.exports=h;function h(x,A){return x[0]=1,x[1]=0,x[2]=0,x[3]=0,x[4]=0,x[5]=1,x[6]=0,x[7]=0,x[8]=0,x[9]=0,x[10]=1,x[11]=0,x[12]=A[0],x[13]=A[1],x[14]=A[2],x[15]=1,x}}}),kS=He({"node_modules/gl-mat4/fromXRotation.js"(Y,H){H.exports=h;function h(x,A){var E=Math.sin(A),e=Math.cos(A);return x[0]=1,x[1]=0,x[2]=0,x[3]=0,x[4]=0,x[5]=e,x[6]=E,x[7]=0,x[8]=0,x[9]=-E,x[10]=e,x[11]=0,x[12]=0,x[13]=0,x[14]=0,x[15]=1,x}}}),CS=He({"node_modules/gl-mat4/fromYRotation.js"(Y,H){H.exports=h;function h(x,A){var E=Math.sin(A),e=Math.cos(A);return x[0]=e,x[1]=0,x[2]=-E,x[3]=0,x[4]=0,x[5]=1,x[6]=0,x[7]=0,x[8]=E,x[9]=0,x[10]=e,x[11]=0,x[12]=0,x[13]=0,x[14]=0,x[15]=1,x}}}),LS=He({"node_modules/gl-mat4/fromZRotation.js"(Y,H){H.exports=h;function h(x,A){var E=Math.sin(A),e=Math.cos(A);return x[0]=e,x[1]=E,x[2]=0,x[3]=0,x[4]=-E,x[5]=e,x[6]=0,x[7]=0,x[8]=0,x[9]=0,x[10]=1,x[11]=0,x[12]=0,x[13]=0,x[14]=0,x[15]=1,x}}}),vb=He({"node_modules/gl-mat4/fromQuat.js"(Y,H){H.exports=h;function h(x,A){var E=A[0],e=A[1],t=A[2],r=A[3],i=E+E,a=e+e,o=t+t,n=E*i,s=e*i,c=e*a,f=t*i,p=t*a,v=t*o,T=r*i,l=r*a,y=r*o;return x[0]=1-c-v,x[1]=s+y,x[2]=f-l,x[3]=0,x[4]=s-y,x[5]=1-n-v,x[6]=p+T,x[7]=0,x[8]=f+l,x[9]=p-T,x[10]=1-n-c,x[11]=0,x[12]=0,x[13]=0,x[14]=0,x[15]=1,x}}}),PS=He({"node_modules/gl-mat4/frustum.js"(Y,H){H.exports=h;function h(x,A,E,e,t,r,i){var a=1/(E-A),o=1/(t-e),n=1/(r-i);return x[0]=r*2*a,x[1]=0,x[2]=0,x[3]=0,x[4]=0,x[5]=r*2*o,x[6]=0,x[7]=0,x[8]=(E+A)*a,x[9]=(t+e)*o,x[10]=(i+r)*n,x[11]=-1,x[12]=0,x[13]=0,x[14]=i*r*2*n,x[15]=0,x}}}),IS=He({"node_modules/gl-mat4/perspective.js"(Y,H){H.exports=h;function h(x,A,E,e,t){var r=1/Math.tan(A/2),i=1/(e-t);return x[0]=r/E,x[1]=0,x[2]=0,x[3]=0,x[4]=0,x[5]=r,x[6]=0,x[7]=0,x[8]=0,x[9]=0,x[10]=(t+e)*i,x[11]=-1,x[12]=0,x[13]=0,x[14]=2*t*e*i,x[15]=0,x}}}),RS=He({"node_modules/gl-mat4/perspectiveFromFieldOfView.js"(Y,H){H.exports=h;function h(x,A,E,e){var t=Math.tan(A.upDegrees*Math.PI/180),r=Math.tan(A.downDegrees*Math.PI/180),i=Math.tan(A.leftDegrees*Math.PI/180),a=Math.tan(A.rightDegrees*Math.PI/180),o=2/(i+a),n=2/(t+r);return x[0]=o,x[1]=0,x[2]=0,x[3]=0,x[4]=0,x[5]=n,x[6]=0,x[7]=0,x[8]=-((i-a)*o*.5),x[9]=(t-r)*n*.5,x[10]=e/(E-e),x[11]=-1,x[12]=0,x[13]=0,x[14]=e*E/(E-e),x[15]=0,x}}}),DS=He({"node_modules/gl-mat4/ortho.js"(Y,H){H.exports=h;function h(x,A,E,e,t,r,i){var a=1/(A-E),o=1/(e-t),n=1/(r-i);return x[0]=-2*a,x[1]=0,x[2]=0,x[3]=0,x[4]=0,x[5]=-2*o,x[6]=0,x[7]=0,x[8]=0,x[9]=0,x[10]=2*n,x[11]=0,x[12]=(A+E)*a,x[13]=(t+e)*o,x[14]=(i+r)*n,x[15]=1,x}}}),zS=He({"node_modules/gl-mat4/lookAt.js"(Y,H){var h=hb();H.exports=x;function x(A,E,e,t){var r,i,a,o,n,s,c,f,p,v,T=E[0],l=E[1],y=E[2],w=t[0],S=t[1],M=t[2],_=e[0],b=e[1],d=e[2];return Math.abs(T-_)<1e-6&&Math.abs(l-b)<1e-6&&Math.abs(y-d)<1e-6?h(A):(c=T-_,f=l-b,p=y-d,v=1/Math.sqrt(c*c+f*f+p*p),c*=v,f*=v,p*=v,r=S*p-M*f,i=M*c-w*p,a=w*f-S*c,v=Math.sqrt(r*r+i*i+a*a),v?(v=1/v,r*=v,i*=v,a*=v):(r=0,i=0,a=0),o=f*a-p*i,n=p*r-c*a,s=c*i-f*r,v=Math.sqrt(o*o+n*n+s*s),v?(v=1/v,o*=v,n*=v,s*=v):(o=0,n=0,s=0),A[0]=r,A[1]=o,A[2]=c,A[3]=0,A[4]=i,A[5]=n,A[6]=f,A[7]=0,A[8]=a,A[9]=s,A[10]=p,A[11]=0,A[12]=-(r*T+i*l+a*y),A[13]=-(o*T+n*l+s*y),A[14]=-(c*T+f*l+p*y),A[15]=1,A)}}}),FS=He({"node_modules/gl-mat4/str.js"(Y,H){H.exports=h;function h(x){return"mat4("+x[0]+", "+x[1]+", "+x[2]+", "+x[3]+", "+x[4]+", "+x[5]+", "+x[6]+", "+x[7]+", "+x[8]+", "+x[9]+", "+x[10]+", "+x[11]+", "+x[12]+", "+x[13]+", "+x[14]+", "+x[15]+")"}}}),db=He({"node_modules/gl-mat4/index.js"(Y,H){H.exports={create:cS(),clone:fS(),copy:hS(),identity:hb(),transpose:vS(),invert:dS(),adjoint:pS(),determinant:gS(),multiply:yS(),translate:mS(),scale:_S(),rotate:xS(),rotateX:bS(),rotateY:wS(),rotateZ:TS(),fromRotation:AS(),fromRotationTranslation:SS(),fromScaling:MS(),fromTranslation:ES(),fromXRotation:kS(),fromYRotation:CS(),fromZRotation:LS(),fromQuat:vb(),frustum:PS(),perspective:IS(),perspectiveFromFieldOfView:RS(),ortho:DS(),lookAt:zS(),str:FS()}}}),Qm=He({"src/lib/matrix.js"(Y){var H=db();Y.init2dArray=function(h,x){for(var A=new Array(h),E=0;E<h;E++)A[E]=new Array(x);return A},Y.transposeRagged=function(h){var x=0,A=h.length,E,e;for(E=0;E<A;E++)x=Math.max(x,h[E].length);var t=new Array(x);for(E=0;E<x;E++)for(t[E]=new Array(A),e=0;e<A;e++)t[E][e]=h[e][E];return t},Y.dot=function(h,x){if(!(h.length&&x.length)||h.length!==x.length)return null;var A=h.length,E,e;if(h[0].length)for(E=new Array(A),e=0;e<A;e++)E[e]=Y.dot(h[e],x);else if(x[0].length){var t=Y.transposeRagged(x);for(E=new Array(t.length),e=0;e<t.length;e++)E[e]=Y.dot(h,t[e])}else for(E=0,e=0;e<A;e++)E+=h[e]*x[e];return E},Y.translationMatrix=function(h,x){return[[1,0,h],[0,1,x],[0,0,1]]},Y.rotationMatrix=function(h){var x=h*Math.PI/180;return[[Math.cos(x),-Math.sin(x),0],[Math.sin(x),Math.cos(x),0],[0,0,1]]},Y.rotationXYMatrix=function(h,x,A){return Y.dot(Y.dot(Y.translationMatrix(x,A),Y.rotationMatrix(h)),Y.translationMatrix(-x,-A))},Y.apply3DTransform=function(h){return function(){var x=arguments,A=arguments.length===1?x[0]:[x[0],x[1],x[2]||0];return Y.dot(h,[A[0],A[1],A[2],1]).slice(0,3)}},Y.apply2DTransform=function(h){return function(){var x=arguments;x.length===3&&(x=x[0]);var A=arguments.length===1?x[0]:[x[0],x[1]];return Y.dot(h,[A[0],A[1],1]).slice(0,2)}},Y.apply2DTransform2=function(h){var x=Y.apply2DTransform(h);return function(A){return x(A.slice(0,2)).concat(x(A.slice(2,4)))}},Y.convertCssMatrix=function(h){if(h){var x=h.length;if(x===16)return h;if(x===6)return[h[0],h[1],0,0,h[2],h[3],0,0,0,0,1,0,h[4],h[5],0,1]}return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]},Y.inverseTransformMatrix=function(h){var x=[];return H.invert(x,h),[[x[0],x[1],x[2],x[3]],[x[4],x[5],x[6],x[7]],[x[8],x[9],x[10],x[11]],[x[12],x[13],x[14],x[15]]]}}}),Jg=He({"src/lib/dom.js"(Y,H){var h=Zn(),x=Wd(),A=Qm(),E=db();function e(T){var l;if(typeof T=="string"){if(l=document.getElementById(T),l===null)throw new Error("No DOM element with id '"+T+"' exists on the page.");return l}else if(T==null)throw new Error("DOM element provided is null or undefined");return T}function t(T){var l=h.select(T);return l.node()instanceof HTMLElement&&l.size()&&l.classed("js-plotly-plot")}function r(T){var l=T&&T.parentNode;l&&l.removeChild(T)}function i(T,l){a("global",T,l)}function a(T,l,y){var w="plotly.js-style-"+T,S=document.getElementById(w);if(!(S&&S.matches(".no-inline-styles"))){S||(S=document.createElement("style"),S.setAttribute("id",w),S.appendChild(document.createTextNode("")),document.head.appendChild(S));var M=S.sheet;M?M.insertRule?M.insertRule(l+"{"+y+"}",0):M.addRule?M.addRule(l,y,0):x.warn("addStyleRule failed"):x.warn("Cannot addRelatedStyleRule, probably due to strict CSP...")}}function o(T){var l="plotly.js-style-"+T,y=document.getElementById(l);y&&r(y)}function n(T,l,y,w,S,M){var _=w.split(":"),b=S.split(":"),d="data-btn-style-event-added";M||(M=document),M.querySelectorAll(T).forEach(function(u){u.getAttribute(d)||(u.addEventListener("mouseenter",function(){var g=this.querySelector(y);g&&(g.style[_[0]]=_[1])}),u.addEventListener("mouseleave",function(){var g=this.querySelector(y);g&&(l&&this.matches(l)?g.style[_[0]]=_[1]:g.style[b[0]]=b[1])}),u.setAttribute(d,!0))})}function s(T){var l=f(T),y=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];return l.forEach(function(w){var S=c(w);if(S){var M=A.convertCssMatrix(S);y=E.multiply(y,y,M)}}),y}function c(T){var l=window.getComputedStyle(T,null),y=l.getPropertyValue("-webkit-transform")||l.getPropertyValue("-moz-transform")||l.getPropertyValue("-ms-transform")||l.getPropertyValue("-o-transform")||l.getPropertyValue("transform");return y==="none"?null:y.replace("matrix","").replace("3d","").slice(1,-1).split(",").map(function(w){return+w})}function f(T){for(var l=[];p(T);)l.push(T),T=T.parentNode,typeof ShadowRoot=="function"&&T instanceof ShadowRoot&&(T=T.host);return l}function p(T){return T&&(T instanceof Element||T instanceof HTMLElement)}function v(T,l){return T&&l&&T.top===l.top&&T.left===l.left&&T.right===l.right&&T.bottom===l.bottom}H.exports={getGraphDiv:e,isPlotDiv:t,removeElement:r,addStyleRule:i,addRelatedStyleRule:a,deleteRelatedStyleRule:o,setStyleOnHover:n,getFullTransformMatrix:s,getElementTransformMatrix:c,getElementAndAncestors:f,equalDomRects:v}}}),Qg=He({"src/plots/animation_attributes.js"(Y,H){H.exports={mode:{valType:"enumerated",dflt:"afterall",values:["immediate","next","afterall"]},direction:{valType:"enumerated",values:["forward","reverse"],dflt:"forward"},fromcurrent:{valType:"boolean",dflt:!1},frame:{duration:{valType:"number",min:0,dflt:500},redraw:{valType:"boolean",dflt:!0}},transition:{duration:{valType:"number",min:0,dflt:500,editType:"none"},easing:{valType:"enumerated",dflt:"cubic-in-out",values:["linear","quad","cubic","sin","exp","circle","elastic","back","bounce","linear-in","quad-in","cubic-in","sin-in","exp-in","circle-in","elastic-in","back-in","bounce-in","linear-out","quad-out","cubic-out","sin-out","exp-out","circle-out","elastic-out","back-out","bounce-out","linear-in-out","quad-in-out","cubic-in-out","sin-in-out","exp-in-out","circle-in-out","elastic-in-out","back-in-out","bounce-in-out"],editType:"none"},ordering:{valType:"enumerated",values:["layout first","traces first"],dflt:"layout first",editType:"none"}}}}}),Wu=He({"src/plot_api/edit_types.js"(Y,H){var h=Do().extendFlat,x=tv(),A={valType:"flaglist",extras:["none"],flags:["calc","clearAxisTypes","plot","style","markerSize","colorbars"]},E={valType:"flaglist",extras:["none"],flags:["calc","plot","legend","ticks","axrange","layoutstyle","modebar","camera","arraydraw","colorbars"]},e=A.flags.slice().concat(["fullReplot"]),t=E.flags.slice().concat("layoutReplot");H.exports={traces:A,layout:E,traceFlags:function(){return r(e)},layoutFlags:function(){return r(t)},update:function(o,n){var s=n.editType;if(s&&s!=="none")for(var c=s.split("+"),f=0;f<c.length;f++)o[c[f]]=!0},overrideAll:i};function r(o){for(var n={},s=0;s<o.length;s++)n[o[s]]=!1;return n}function i(o,n,s){var c=h({},o);for(var f in c){var p=c[f];x(p)&&(c[f]=a(p,n,s,f))}return s==="from-root"&&(c.editType=n),c}function a(o,n,s,c){if(o.valType){var f=h({},o);if(f.editType=n,Array.isArray(o.items)){f.items=new Array(o.items.length);for(var p=0;p<o.items.length;p++)f.items[p]=a(o.items[p],n)}return f}else return i(o,n,c.charAt(0)==="_"?"nested":"from-root")}}}),ah=He({"src/components/drawing/attributes.js"(Y){Y.dash={valType:"string",values:["solid","dot","dash","longdash","dashdot","longdashdot"],dflt:"solid",editType:"style"},Y.pattern={shape:{valType:"enumerated",values:["","/","\\","x","-","|","+","."],dflt:"",arrayOk:!0,editType:"style"},path:{valType:"string",arrayOk:!0,editType:"style"},fillmode:{valType:"enumerated",values:["replace","overlay"],dflt:"replace",editType:"style"},bgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgopacity:{valType:"number",editType:"style",min:0,max:1},size:{valType:"number",min:0,dflt:8,arrayOk:!0,editType:"style"},solidity:{valType:"number",min:0,max:1,dflt:.3,arrayOk:!0,editType:"style"},editType:"style"}}}),pb=He({"src/constants/docs.js"(Y,H){H.exports={FORMAT_LINK:"https://github.com/d3/d3-format/tree/v1.4.5#d3-format",DATE_FORMAT_LINK:"https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format"}}}),ds=He({"src/plots/template_attributes.js"(Y){var H=pb(),h=H.FORMAT_LINK,x=H.DATE_FORMAT_LINK;function A(e){var t=e&&e.supportOther;return["Variables are inserted using %{variable},",'for example "y: %{y}"'+(t?" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown.":"."),`Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}".`,h,"for details on the formatting syntax.",`Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}".`,x,"for details on the date formatting syntax."].join(" ")}Y.templateFormatStringDescription=A;function E(e){var t=e.description?" "+e.description:"",r=e.keys||[];if(r.length>0){for(var i=[],a=0;a<r.length;a++)i[a]="`"+r[a]+"`";t=t+"Finally, the template string has access to ",r.length===1?t=t+"variable "+i[0]:t=t+"variables "+i.slice(0,-1).join(", ")+" and "+i.slice(-1)+"."}return t}Y.hovertemplateAttrs=function(e,t){e=e||{},t=t||{},E(t);var r={valType:"string",dflt:"",editType:e.editType||"none"};return e.arrayOk!==!1&&(r.arrayOk=!0),r},Y.texttemplateAttrs=function(e,t){e=e||{},t=t||{},E(t);var r={valType:"string",dflt:"",editType:e.editType||"calc"};return e.arrayOk!==!1&&(r.arrayOk=!0),r},Y.shapeTexttemplateAttrs=function(e,t){e=e||{},t=t||{},e.newshape,E(t);var r={valType:"string",dflt:"",editType:e.editType||"arraydraw"};return r}}}),e1=He({"src/components/shapes/label_texttemplate.js"(Y,H){function h(y,w){return w?w.d2l(y):y}function x(y,w){return w?w.l2d(y):y}function A(y){return y.x0}function E(y){return y.x1}function e(y){return y.y0}function t(y){return y.y1}function r(y){return y.x0shift||0}function i(y){return y.x1shift||0}function a(y){return y.y0shift||0}function o(y){return y.y1shift||0}function n(y,w){return h(y.x1,w)+i(y)-h(y.x0,w)-r(y)}function s(y,w,S){return h(y.y1,S)+o(y)-h(y.y0,S)-a(y)}function c(y,w){return Math.abs(n(y,w))}function f(y,w,S){return Math.abs(s(y,w,S))}function p(y,w,S){return y.type!=="line"?void 0:Math.sqrt(Math.pow(n(y,w),2)+Math.pow(s(y,w,S),2))}function v(y,w){return x((h(y.x1,w)+i(y)+h(y.x0,w)+r(y))/2,w)}function T(y,w,S){return x((h(y.y1,S)+o(y)+h(y.y0,S)+a(y))/2,S)}function l(y,w,S){return y.type!=="line"?void 0:s(y,w,S)/n(y,w)}H.exports={x0:A,x1:E,y0:e,y1:t,slope:l,dx:n,dy:s,width:c,height:f,length:p,xcenter:v,ycenter:T}}}),OS=He({"src/components/shapes/draw_newshape/attributes.js"(Y,H){var h=Wu().overrideAll,x=Fl(),A=Pu(),E=ah().dash,e=Do().extendFlat,t=ds().shapeTexttemplateAttrs,r=e1();H.exports=h({newshape:{visible:e({},x.visible,{}),showlegend:{valType:"boolean",dflt:!1},legend:e({},x.legend,{}),legendgroup:e({},x.legendgroup,{}),legendgrouptitle:{text:e({},x.legendgrouptitle.text,{}),font:A({})},legendrank:e({},x.legendrank,{}),legendwidth:e({},x.legendwidth,{}),line:{color:{valType:"color"},width:{valType:"number",min:0,dflt:4},dash:e({},E,{dflt:"solid"})},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd"},opacity:{valType:"number",min:0,max:1,dflt:1},layer:{valType:"enumerated",values:["below","above","between"],dflt:"above"},drawdirection:{valType:"enumerated",values:["ortho","horizontal","vertical","diagonal"],dflt:"diagonal"},name:e({},x.name,{}),label:{text:{valType:"string",dflt:""},texttemplate:t({newshape:!0},{keys:Object.keys(r)}),font:A({}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"]},textangle:{valType:"angle",dflt:"auto"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto"},yanchor:{valType:"enumerated",values:["top","middle","bottom"]},padding:{valType:"number",dflt:3,min:0}}},activeshape:{fillcolor:{valType:"color",dflt:"rgb(255,0,255)"},opacity:{valType:"number",min:0,max:1,dflt:.5}}},"none","from-root")}}),BS=He({"src/components/selections/draw_newselection/attributes.js"(Y,H){var h=ah().dash,x=Do().extendFlat;H.exports={newselection:{mode:{valType:"enumerated",values:["immediate","gradual"],dflt:"immediate",editType:"none"},line:{color:{valType:"color",editType:"none"},width:{valType:"number",min:1,dflt:1,editType:"none"},dash:x({},h,{dflt:"dot",editType:"none"}),editType:"none"},editType:"none"},activeselection:{fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"none"},opacity:{valType:"number",min:0,max:1,dflt:.5,editType:"none"},editType:"none"}}}}),t1=He({"src/plots/pad_attributes.js"(Y,H){H.exports=function(h){var x=h.editType;return{t:{valType:"number",dflt:0,editType:x},r:{valType:"number",dflt:0,editType:x},b:{valType:"number",dflt:0,editType:x},l:{valType:"number",dflt:0,editType:x},editType:x}}}}),B0=He({"src/plots/layout_attributes.js"(Y,H){var h=Pu(),x=Qg(),A=Mf(),E=OS(),e=BS(),t=t1(),r=Do().extendFlat,i=h({editType:"calc"});i.family.dflt='"Open Sans", verdana, arial, sans-serif',i.size.dflt=12,i.color.dflt=A.defaultLine,H.exports={font:i,title:{text:{valType:"string",editType:"layoutstyle"},font:h({editType:"layoutstyle"}),subtitle:{text:{valType:"string",editType:"layoutstyle"},font:h({editType:"layoutstyle"}),editType:"layoutstyle"},xref:{valType:"enumerated",dflt:"container",values:["container","paper"],editType:"layoutstyle"},yref:{valType:"enumerated",dflt:"container",values:["container","paper"],editType:"layoutstyle"},x:{valType:"number",min:0,max:1,dflt:.5,editType:"layoutstyle"},y:{valType:"number",min:0,max:1,dflt:"auto",editType:"layoutstyle"},xanchor:{valType:"enumerated",dflt:"auto",values:["auto","left","center","right"],editType:"layoutstyle"},yanchor:{valType:"enumerated",dflt:"auto",values:["auto","top","middle","bottom"],editType:"layoutstyle"},pad:r(t({editType:"layoutstyle"}),{}),automargin:{valType:"boolean",dflt:!1,editType:"plot"},editType:"layoutstyle"},uniformtext:{mode:{valType:"enumerated",values:[!1,"hide","show"],dflt:!1,editType:"plot"},minsize:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"},autosize:{valType:"boolean",dflt:!1,editType:"none"},width:{valType:"number",min:10,dflt:700,editType:"plot"},height:{valType:"number",min:10,dflt:450,editType:"plot"},minreducedwidth:{valType:"number",min:2,dflt:64,editType:"plot"},minreducedheight:{valType:"number",min:2,dflt:64,editType:"plot"},margin:{l:{valType:"number",min:0,dflt:80,editType:"plot"},r:{valType:"number",min:0,dflt:80,editType:"plot"},t:{valType:"number",min:0,dflt:100,editType:"plot"},b:{valType:"number",min:0,dflt:80,editType:"plot"},pad:{valType:"number",min:0,dflt:0,editType:"plot"},autoexpand:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},computed:{valType:"any",editType:"none"},paper_bgcolor:{valType:"color",dflt:A.background,editType:"plot"},plot_bgcolor:{valType:"color",dflt:A.background,editType:"layoutstyle"},autotypenumbers:{valType:"enumerated",values:["convert types","strict"],dflt:"convert types",editType:"calc"},separators:{valType:"string",editType:"plot"},hidesources:{valType:"boolean",dflt:!1,editType:"plot"},showlegend:{valType:"boolean",editType:"legend"},colorway:{valType:"colorlist",dflt:A.defaults,editType:"calc"},datarevision:{valType:"any",editType:"calc"},uirevision:{valType:"any",editType:"none"},editrevision:{valType:"any",editType:"none"},selectionrevision:{valType:"any",editType:"none"},template:{valType:"any",editType:"calc"},newshape:E.newshape,activeshape:E.activeshape,newselection:e.newselection,activeselection:e.activeselection,meta:{valType:"any",arrayOk:!0,editType:"plot"},transition:r({},x.transition,{editType:"none"})}}}),NS=Js({"temp_stylePlugin:node_modules/maplibre-gl/dist/maplibre-gl.css"(){}}),US=Js({"stylePlugin:/home/cam/Development/plotly/plotly.js/node_modules/maplibre-gl/dist/maplibre-gl.css"(){NS()}}),qi=He({"src/registry.js"(Y){var H=Wd(),h=Jm(),x=fb(),A=tv(),E=Jg().addStyleRule,e=Do(),t=Fl(),r=B0(),i=e.extendFlat,a=e.extendDeepAll;Y.modules={},Y.allCategories={},Y.allTypes=[],Y.subplotsRegistry={},Y.componentsRegistry={},Y.layoutArrayContainers=[],Y.layoutArrayRegexes=[],Y.traceLayoutAttributes={},Y.localeRegistry={},Y.apiMethodRegistry={},Y.collectableSubplotTypes=null,Y.register=function(w){if(Y.collectableSubplotTypes=null,w)w&&!Array.isArray(w)&&(w=[w]);else throw new Error("No argument passed to Plotly.register.");for(var S=0;S<w.length;S++){var M=w[S];if(!M)throw new Error("Invalid module was attempted to be registered!");switch(M.moduleType){case"trace":o(M);break;case"transform":c(M);break;case"component":s(M);break;case"locale":f(M);break;case"apiMethod":var _=M.name;Y.apiMethodRegistry[_]=M.fn;break;default:throw new Error("Invalid module was attempted to be registered!")}}},Y.getModule=function(y){var w=Y.modules[l(y)];return w?w._module:!1},Y.traceIs=function(y,w){if(y=l(y),y==="various")return!1;var S=Y.modules[y];return S||(y&&H.log("Unrecognized trace type "+y+"."),S=Y.modules[t.type.dflt]),!!S.categories[w]},Y.getComponentMethod=function(y,w){var S=Y.componentsRegistry[y];return S&&S[w]||h},Y.call=function(){var y=arguments[0],w=[].slice.call(arguments,1);return Y.apiMethodRegistry[y].apply(null,w)};function o(y){var w=y.name,S=y.categories,M=y.meta;if(Y.modules[w]){H.log("Type "+w+" already registered");return}Y.subplotsRegistry[y.basePlotModule.name]||n(y.basePlotModule);for(var _={},b=0;b<S.length;b++)_[S[b]]=!0,Y.allCategories[S[b]]=!0;Y.modules[w]={_module:y,categories:_},M&&Object.keys(M).length&&(Y.modules[w].meta=M),Y.allTypes.push(w);for(var d in Y.componentsRegistry)v(d,w);y.layoutAttributes&&i(Y.traceLayoutAttributes,y.layoutAttributes);var u=y.basePlotModule,g=u.name;if(g==="mapbox"){var m=u.constants.styleRules;for(var R in m)E(".js-plotly-plot .plotly .mapboxgl-"+R,m[R])}g==="map"&&US(),(g==="geo"||g==="mapbox"||g==="map")&&window.PlotlyGeoAssets===void 0&&(window.PlotlyGeoAssets={topojson:{}})}function n(y){var w=y.name;if(Y.subplotsRegistry[w]){H.log("Plot type "+w+" already registered.");return}p(y),Y.subplotsRegistry[w]=y;for(var S in Y.componentsRegistry)T(S,y.name)}function s(y){if(typeof y.name!="string")throw new Error("Component module *name* must be a string.");var w=y.name;Y.componentsRegistry[w]=y,y.layoutAttributes&&(y.layoutAttributes._isLinkedToArray&&x(Y.layoutArrayContainers,w),p(y));for(var S in Y.modules)v(w,S);for(var M in Y.subplotsRegistry)T(w,M);y.schema&&y.schema.layout&&a(r,y.schema.layout)}function c(y){if(typeof y.name!="string")throw new Error("Transform module *name* must be a string.");var w="Transform module "+y.name,S=typeof y.transform=="function",M=typeof y.calcTransform=="function";if(!S&&!M)throw new Error(w+" is missing a *transform* or *calcTransform* method.");S&&M&&H.log([w+" has both a *transform* and *calcTransform* methods.","Please note that all *transform* methods are executed","before all *calcTransform* methods."].join(" ")),A(y.attributes)||H.log(w+" registered without an *attributes* object."),typeof y.supplyDefaults!="function"&&H.log(w+" registered without a *supplyDefaults* method.")}function f(y){var w=y.name,S=w.split("-")[0],M=y.dictionary,_=y.format,b=M&&Object.keys(M).length,d=_&&Object.keys(_).length,u=Y.localeRegistry,g=u[w];if(g||(u[w]=g={}),S!==w){var m=u[S];m||(u[S]=m={}),b&&m.dictionary===g.dictionary&&(m.dictionary=M),d&&m.format===g.format&&(m.format=_)}b&&(g.dictionary=M),d&&(g.format=_)}function p(y){if(y.layoutAttributes){var w=y.layoutAttributes._arrayAttrRegexps;if(w)for(var S=0;S<w.length;S++)x(Y.layoutArrayRegexes,w[S])}}function v(y,w){var S=Y.componentsRegistry[y].schema;if(!(!S||!S.traces)){var M=S.traces[w];M&&a(Y.modules[w]._module.attributes,M)}}function T(y,w){var S=Y.componentsRegistry[y].schema;if(!(!S||!S.subplots)){var M=Y.subplotsRegistry[w],_=M.layoutAttributes,b=M.attr==="subplot"?M.name:M.attr;Array.isArray(b)&&(b=b[0]);var d=S.subplots[b];_&&d&&a(_,d)}}function l(y){return typeof y=="object"&&(y=y.type),y}}}),jS=He({"src/lib/dates.js"(Y){var H=bl().timeFormat,h=lo(),x=Wd(),A=z0().mod,E=Eo(),e=E.BADNUM,t=E.ONEDAY,r=E.ONEHOUR,i=E.ONEMIN,a=E.ONESEC,o=E.EPOCHJD,n=qi(),s=bl().utcFormat,c=/^\s*(-?\d\d\d\d|\d\d)(-(\d?\d)(-(\d?\d)([ Tt]([01]?\d|2[0-3])(:([0-5]\d)(:([0-5]\d(\.\d+)?))?(Z|z|[+\-]\d\d(:?\d\d)?)?)?)?)?)?\s*$/m,f=/^\s*(-?\d\d\d\d|\d\d)(-(\d?\di?)(-(\d?\d)([ Tt]([01]?\d|2[0-3])(:([0-5]\d)(:([0-5]\d(\.\d+)?))?(Z|z|[+\-]\d\d(:?\d\d)?)?)?)?)?)?\s*$/m,p=new Date().getFullYear()-70;function v(F){return F&&n.componentsRegistry.calendars&&typeof F=="string"&&F!=="gregorian"}Y.dateTick0=function(F,B){var O=T(F,!!B);if(B<2)return O;var P=Y.dateTime2ms(O,F);return P+=t*(B-1),Y.ms2DateTime(P,0,F)};function T(F,B){return v(F)?B?n.getComponentMethod("calendars","CANONICAL_SUNDAY")[F]:n.getComponentMethod("calendars","CANONICAL_TICK")[F]:B?"2000-01-02":"2000-01-01"}Y.dfltRange=function(F){return v(F)?n.getComponentMethod("calendars","DFLTRANGE")[F]:["2000-01-01","2001-01-01"]},Y.isJSDate=function(F){return typeof F=="object"&&F!==null&&typeof F.getTime=="function"};var l,y;Y.dateTime2ms=function(F,B){if(Y.isJSDate(F)){var O=F.getTimezoneOffset()*i,P=(F.getUTCMinutes()-F.getMinutes())*i+(F.getUTCSeconds()-F.getSeconds())*a+(F.getUTCMilliseconds()-F.getMilliseconds());if(P){var N=3*i;O=O-N/2+A(P-O+N/2,N)}return F=Number(F)-O,F>=l&&F<=y?F:e}if(typeof F!="string"&&typeof F!="number")return e;F=String(F);var U=v(B),X=F.charAt(0);U&&(X==="G"||X==="g")&&(F=F.substr(1),B="");var te=U&&B.substr(0,7)==="chinese",ue=F.match(te?f:c);if(!ue)return e;var ie=ue[1],le=ue[3]||"1",q=Number(ue[5]||1),J=Number(ue[7]||0),ee=Number(ue[9]||0),Z=Number(ue[11]||0);if(U){if(ie.length===2)return e;ie=Number(ie);var se;try{var Q=n.getComponentMethod("calendars","getCal")(B);if(te){var V=le.charAt(le.length-1)==="i";le=parseInt(le,10),se=Q.newDate(ie,Q.toMonthIndex(ie,le,V),q)}else se=Q.newDate(ie,Number(le),q)}catch{return e}return se?(se.toJD()-o)*t+J*r+ee*i+Z*a:e}ie.length===2?ie=(Number(ie)+2e3-p)%100+p:ie=Number(ie),le-=1;var re=new Date(Date.UTC(2e3,le,q,J,ee));return re.setUTCFullYear(ie),re.getUTCMonth()!==le||re.getUTCDate()!==q?e:re.getTime()+Z*a},l=Y.MIN_MS=Y.dateTime2ms("-9999"),y=Y.MAX_MS=Y.dateTime2ms("9999-12-31 23:59:59.9999"),Y.isDateTime=function(F,B){return Y.dateTime2ms(F,B)!==e};function w(F,B){return String(F+Math.pow(10,B)).substr(1)}var S=90*t,M=3*r,_=5*i;Y.ms2DateTime=function(F,B,O){if(typeof F!="number"||!(F>=l&&F<=y))return e;B||(B=0);var P=Math.floor(A(F+.05,1)*10),N=Math.round(F-P/10),U,X,te,ue,ie,le;if(v(O)){var q=Math.floor(N/t)+o,J=Math.floor(A(F,t));try{U=n.getComponentMethod("calendars","getCal")(O).fromJD(q).formatDate("yyyy-mm-dd")}catch{U=s("G%Y-%m-%d")(new Date(N))}if(U.charAt(0)==="-")for(;U.length<11;)U="-0"+U.substr(1);else for(;U.length<10;)U="0"+U;X=B<S?Math.floor(J/r):0,te=B<S?Math.floor(J%r/i):0,ue=B<M?Math.floor(J%i/a):0,ie=B<_?J%a*10+P:0}else le=new Date(N),U=s("%Y-%m-%d")(le),X=B<S?le.getUTCHours():0,te=B<S?le.getUTCMinutes():0,ue=B<M?le.getUTCSeconds():0,ie=B<_?le.getUTCMilliseconds()*10+P:0;return b(U,X,te,ue,ie)},Y.ms2DateTimeLocal=function(F){if(!(F>=l+t&&F<=y-t))return e;var B=Math.floor(A(F+.05,1)*10),O=new Date(Math.round(F-B/10)),P=H("%Y-%m-%d")(O),N=O.getHours(),U=O.getMinutes(),X=O.getSeconds(),te=O.getUTCMilliseconds()*10+B;return b(P,N,U,X,te)};function b(F,B,O,P,N){if((B||O||P||N)&&(F+=" "+w(B,2)+":"+w(O,2),(P||N)&&(F+=":"+w(P,2),N))){for(var U=4;N%10===0;)U-=1,N/=10;F+="."+w(N,U)}return F}Y.cleanDate=function(F,B,O){if(F===e)return B;if(Y.isJSDate(F)||typeof F=="number"&&isFinite(F)){if(v(O))return x.error("JS Dates and milliseconds are incompatible with world calendars",F),B;if(F=Y.ms2DateTimeLocal(+F),!F&&B!==void 0)return B}else if(!Y.isDateTime(F,O))return x.error("unrecognized date",F),B;return F};var d=/%\d?f/g,u=/%h/g,g={1:"1",2:"1",3:"2",4:"2"};function m(F,B,O,P){F=F.replace(d,function(U){var X=Math.min(+U.charAt(1)||6,6),te=(B/1e3%1+2).toFixed(X).substr(2).replace(/0+$/,"")||"0";return te});var N=new Date(Math.floor(B+.05));if(F=F.replace(u,function(){return g[O("%q")(N)]}),v(P))try{F=n.getComponentMethod("calendars","worldCalFmt")(F,B,P)}catch{return"Invalid"}return O(F)(N)}var R=[59,59.9,59.99,59.999,59.9999];function I(F,B){var O=A(F+.05,t),P=w(Math.floor(O/r),2)+":"+w(A(Math.floor(O/i),60),2);if(B!=="M"){h(B)||(B=0);var N=Math.min(A(F/a,60),R[B]),U=(100+N).toFixed(B).substr(1);B>0&&(U=U.replace(/0+$/,"").replace(/[\.]$/,"")),P+=":"+U}return P}Y.formatDate=function(F,B,O,P,N,U){if(N=v(N)&&N,!B)if(O==="y")B=U.year;else if(O==="m")B=U.month;else if(O==="d")B=U.dayMonth+`
|