@stlite/desktop 0.79.0 → 0.79.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (67) hide show
  1. package/build/assets/{FileDownload.esm-CUqgQU-j.js → FileDownload.esm-DJAez7Gm.js} +1 -1
  2. package/build/assets/{FormClearHelper-DmeZ2QuQ.js → FormClearHelper-BtlF8Otx.js} +1 -1
  3. package/build/assets/{Hooks-CBIuRW4z.js → Hooks-DirHIiAM.js} +1 -1
  4. package/build/assets/{InputInstructions-iKTPb-Lc.js → InputInstructions-DJSzEvIq.js} +1 -1
  5. package/build/assets/{ProgressBar-Dfr9f8u1.js → ProgressBar-BnrWSmyb.js} +1 -1
  6. package/build/assets/{RenderInPortalIfExists-CxeJAxCs.js → RenderInPortalIfExists-Ca4-_0pe.js} +1 -1
  7. package/build/assets/{Toolbar-CG7W1D-O.js → Toolbar-BsqjDjhG.js} +1 -1
  8. package/build/assets/{base-input-DoV-1XUt.js → base-input-CgYn_7GU.js} +1 -1
  9. package/build/assets/{createSuper-CvaFdVoD.js → createSuper-0pNNY1_M.js} +1 -1
  10. package/build/assets/{data-grid-overlay-editor-CCUG7ReD.js → data-grid-overlay-editor-CNFkKj8T.js} +1 -1
  11. package/build/assets/{downloader-B6rOwzu2.js → downloader-DGmYJOpb.js} +1 -1
  12. package/build/assets/{es6-CTcMcfqp.js → es6-irkMYhr9.js} +2 -2
  13. package/build/assets/{getPrototypeOf-CFHg57KG.js → getPrototypeOf-D0_3wfU4.js} +1 -1
  14. package/build/assets/{iframeResizer.contentWindow-DLNn1A7T.js → iframeResizer.contentWindow-D4yL-VeT.js} +1 -1
  15. package/build/assets/{index-Bp04iQqW.js → index-BByqVhYh.js} +1 -1
  16. package/build/assets/{index-D-lzdDJ5.js → index-BFCLs_X3.js} +1 -1
  17. package/build/assets/{index-CGhw9Sdf.js → index-BFkh2EDe.js} +1 -1
  18. package/build/assets/{index-CWiqZgRl.js → index-BKdmDn79.js} +1 -1
  19. package/build/assets/{index-CoKgwXo8.js → index-BM4uLW3s.js} +1 -1
  20. package/build/assets/{index-ByOIN0Gm.js → index-BQ4RtD02.js} +1 -1
  21. package/build/assets/{index-DjQcVgxO.js → index-BVyxD_B8.js} +1 -1
  22. package/build/assets/{index-hsTwnoRn.js → index-BXRfu-ak.js} +1 -1
  23. package/build/assets/{index-CW4i_Lge.js → index-BcpEGcBW.js} +1 -1
  24. package/build/assets/{index-Dwt05210.js → index-Bo6fA87g.js} +1 -1
  25. package/build/assets/{index-BzTZZCvL.js → index-C1elUt1E.js} +4 -4
  26. package/build/assets/{index-Cua9_98i.js → index-CbfNI9jm.js} +1 -1
  27. package/build/assets/{index-CIL1eIZN.js → index-CcWWS1JT.js} +1 -1
  28. package/build/assets/{index-CIs9EQe5.js → index-ChM6SngL.js} +1 -1
  29. package/build/assets/{index-BhkIHxDp.js → index-D2eWP7lT.js} +1 -1
  30. package/build/assets/{index-BrRb8POj.js → index-DBLWtqmb.js} +1 -1
  31. package/build/assets/{index-CSyyBx79.js → index-DE-qBTEd.js} +1 -1
  32. package/build/assets/{index-Df9nIm6O.js → index-DEXFHxro.js} +1 -1
  33. package/build/assets/{index-D9QNa8Xs.js → index-DUZJI1KN.js} +1 -1
  34. package/build/assets/{index-N6IvabtE.js → index-DVxRcwZL.js} +1 -1
  35. package/build/assets/{index-fudEipDa.js → index-DWA8E9x2.js} +1 -1
  36. package/build/assets/{index-BpeIvyJQ.js → index-DlLUjT1S.js} +1 -1
  37. package/build/assets/{index-DqxtC9MD.js → index-DmCANcEY.js} +1 -1
  38. package/build/assets/{index-qMuFpOqI.js → index-DrFZgW3n.js} +1 -1
  39. package/build/assets/{index-6rnmC53g.js → index-Dx6YQ-Hb.js} +1 -1
  40. package/build/assets/{index-xGO_nKX1.js → index-Hu3FoAZP.js} +1 -1
  41. package/build/assets/{index-DURajqPC.js → index-I5lK7nyO.js} +1 -1
  42. package/build/assets/{index-BTHCcLIl.js → index-ItgUgpY7.js} +1 -1
  43. package/build/assets/{index-DHFNQm8n.js → index-Pb86pUMm.js} +1 -1
  44. package/build/assets/{index-0aipcnh6.js → index-YUTOpyBs.js} +1 -1
  45. package/build/assets/{index-steA8SlM.js → index-ZUNcqgeq.js} +5 -5
  46. package/build/assets/{index-P_LN9wWJ.js → index-ce2FoF0m.js} +1 -1
  47. package/build/assets/{index-BHysWwrh.js → index-gVtKu3MD.js} +1 -1
  48. package/build/assets/{index-DtrE1h0V.js → index-m1mIjWp5.js} +1 -1
  49. package/build/assets/{index-RhMZ16-Y.js → index-w3QLWMIe.js} +1 -1
  50. package/build/assets/{index-C4j64dI5.js → index-xxcWnwsb.js} +1 -1
  51. package/build/assets/{index-OR2HlVVN.js → index-zflrmcBt.js} +1 -1
  52. package/build/assets/{input-BrXgmYe9.js → input-i4Ci2N7G.js} +1 -1
  53. package/build/assets/{memory-Bf74T19z.js → memory-BfVZ1OlY.js} +1 -1
  54. package/build/assets/{number-overlay-editor-20er5Sp-.js → number-overlay-editor-DZNxupwD.js} +1 -1
  55. package/build/assets/{sandbox-CV8SMiuv.js → sandbox-C-kTFbag.js} +1 -1
  56. package/build/assets/{slicedToArray-tqzlNjPF.js → slicedToArray--nOyZAEU.js} +1 -1
  57. package/build/assets/{textarea-DMefjquC.js → textarea-CpIIPJux.js} +1 -1
  58. package/build/assets/{timepicker-D5Qmkk9Q.js → timepicker-BNPmfeK3.js} +1 -1
  59. package/build/assets/{uniqueId-IQr2jcrE.js → uniqueId-BfZwKZCM.js} +1 -1
  60. package/build/assets/{useBasicWidgetState-Cqy4gnzY.js → useBasicWidgetState-D4lxC36U.js} +1 -1
  61. package/build/assets/{useOnInputChange-BD_aeagL.js → useOnInputChange-BtQcqF3z.js} +1 -1
  62. package/build/assets/{withFullScreenWrapper-DIS3bwns.js → withFullScreenWrapper-Cn2wnMdj.js} +1 -1
  63. package/build/assets/{worker-B1MO5Shr.js → worker-CzOlZWlF.js} +14 -11
  64. package/build/electron/worker.js +13 -10
  65. package/build/index.html +1 -1
  66. package/package.json +4 -4
  67. package/wheels/streamlit-1.41.0-cp312-none-any.whl +0 -0
@@ -1,4 +1,4 @@
1
- import{r as op,p as Yg,g as Kg,O as Jg,C as Ug,ac as Wc,S as Gd,aL as Vg,ad as sp,ae as Qg,ag as t1,af as e1,aM as r1,aN as n1,ah as i1,aj as a1,M as o1,aO as w0,j as qg,F as Gg,aP as s1}from"./index-BzTZZCvL.js";import{F as l1}from"./FormClearHelper-DmeZ2QuQ.js";import{w as c1,u as u1,E as h1}from"./withFullScreenWrapper-DIS3bwns.js";var Zg={},Xg={};(function(zn){function ua(s){"@babel/helpers - typeof";return ua=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(u){return typeof u}:function(u){return u&&typeof Symbol=="function"&&u.constructor===Symbol&&u!==Symbol.prototype?"symbol":typeof u},ua(s)}Object.defineProperty(zn,"__esModule",{value:!0}),zn.default=a;var so=nt(op),Va=Qa(Yg);function Qa(s){return s&&s.__esModule?s:{default:s}}function gs(s){if(typeof WeakMap!="function")return null;var u=new WeakMap,x=new WeakMap;return(gs=function(m){return m?x:u})(s)}function nt(s,u){if(s&&s.__esModule)return s;if(s===null||ua(s)!=="object"&&typeof s!="function")return{default:s};var x=gs(u);if(x&&x.has(s))return x.get(s);var m={},y=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in s)if(c!=="default"&&Object.prototype.hasOwnProperty.call(s,c)){var p=y?Object.getOwnPropertyDescriptor(s,c):null;p&&(p.get||p.set)?Object.defineProperty(m,c,p):m[c]=s[c]}return m.default=s,x&&x.set(s,m),m}function W(s,u){if(!(s instanceof u))throw new TypeError("Cannot call a class as a function")}function e(s,u){for(var x=0;x<u.length;x++){var m=u[x];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(s,m.key,m)}}function M(s,u,x){return e(s.prototype,u),Object.defineProperty(s,"prototype",{writable:!1}),s}function C(s,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");s.prototype=Object.create(u&&u.prototype,{constructor:{value:s,writable:!0,configurable:!0}}),Object.defineProperty(s,"prototype",{writable:!1}),u&&r(s,u)}function r(s,u){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(x,m){return x.__proto__=m,x},r(s,u)}function i(s){var u=h();return function(){var x=l(s),m;if(u){var y=l(this).constructor;m=Reflect.construct(x,arguments,y)}else m=x.apply(this,arguments);return w(this,m)}}function w(s,u){if(u&&(ua(u)==="object"||typeof u=="function"))return u;if(u!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return S(s)}function S(s){if(s===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s}function h(){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 l(s){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(u){return u.__proto__||Object.getPrototypeOf(u)},l(s)}var t=["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"],n=["plotly_restyle","plotly_redraw","plotly_relayout","plotly_relayouting","plotly_doubleclick","plotly_animated","plotly_sunburstclick"],o=typeof window<"u";function a(s){var u=function(x){C(y,x);var m=i(y);function y(c){var p;return W(this,y),p=m.call(this,c),p.p=Promise.resolve(),p.resizeHandler=null,p.handlers={},p.syncWindowResize=p.syncWindowResize.bind(S(p)),p.syncEventHandlers=p.syncEventHandlers.bind(S(p)),p.attachUpdateEvents=p.attachUpdateEvents.bind(S(p)),p.getRef=p.getRef.bind(S(p)),p.handleUpdate=p.handleUpdate.bind(S(p)),p.figureCallback=p.figureCallback.bind(S(p)),p.updatePlotly=p.updatePlotly.bind(S(p)),p}return M(y,[{key:"updatePlotly",value:function(c,p,f){var T=this;this.p=this.p.then(function(){if(!T.unmounting){if(!T.el)throw new Error("Missing element reference");return s.react(T.el,{data:T.props.data,layout:T.props.layout,config:T.props.config,frames:T.props.frames})}}).then(function(){T.unmounting||(T.syncWindowResize(c),T.syncEventHandlers(),T.figureCallback(p),f&&T.attachUpdateEvents())}).catch(function(k){T.props.onError&&T.props.onError(k)})}},{key:"componentDidMount",value:function(){this.unmounting=!1,this.updatePlotly(!0,this.props.onInitialized,!0)}},{key:"componentDidUpdate",value:function(c){this.unmounting=!1;var p=c.frames&&c.frames.length?c.frames.length:0,f=this.props.frames&&this.props.frames.length?this.props.frames.length:0,T=!(c.layout===this.props.layout&&c.data===this.props.data&&c.config===this.props.config&&f===p),k=c.revision!==void 0,P=c.revision!==this.props.revision;!T&&(!k||k&&!P)||this.updatePlotly(!1,this.props.onUpdate,!1)}},{key:"componentWillUnmount",value:function(){this.unmounting=!0,this.figureCallback(this.props.onPurge),this.resizeHandler&&o&&(window.removeEventListener("resize",this.resizeHandler),this.resizeHandler=null),this.removeUpdateEvents(),s.purge(this.el)}},{key:"attachUpdateEvents",value:function(){var c=this;!this.el||!this.el.removeListener||n.forEach(function(p){c.el.on(p,c.handleUpdate)})}},{key:"removeUpdateEvents",value:function(){var c=this;!this.el||!this.el.removeListener||n.forEach(function(p){c.el.removeListener(p,c.handleUpdate)})}},{key:"handleUpdate",value:function(){this.figureCallback(this.props.onUpdate)}},{key:"figureCallback",value:function(c){if(typeof c=="function"){var p=this.el,f=p.data,T=p.layout,k=this.el._transitionData?this.el._transitionData._frames:null,P={data:f,layout:T,frames:k};c(P,this.el)}}},{key:"syncWindowResize",value:function(c){var p=this;o&&(this.props.useResizeHandler&&!this.resizeHandler?(this.resizeHandler=function(){return s.Plots.resize(p.el)},window.addEventListener("resize",this.resizeHandler),c&&this.resizeHandler()):!this.props.useResizeHandler&&this.resizeHandler&&(window.removeEventListener("resize",this.resizeHandler),this.resizeHandler=null))}},{key:"getRef",value:function(c){this.el=c,this.props.debug&&o&&(window.gd=this.el)}},{key:"syncEventHandlers",value:function(){var c=this;t.forEach(function(p){var f=c.props["on"+p],T=c.handlers[p],k=!!T;f&&!k?c.addEventHandler(p,f):!f&&k?c.removeEventHandler(p):f&&k&&f!==T&&(c.removeEventHandler(p),c.addEventHandler(p,f))})}},{key:"addEventHandler",value:function(c,p){this.handlers[c]=p,this.el.on(this.getPlotlyEventName(c),this.handlers[c])}},{key:"removeEventHandler",value:function(c){this.el.removeListener(this.getPlotlyEventName(c),this.handlers[c]),delete this.handlers[c]}},{key:"getPlotlyEventName",value:function(c){return"plotly_"+c.toLowerCase()}},{key:"render",value:function(){return so.default.createElement("div",{id:this.props.divId,style:this.props.style,ref:this.getRef,className:this.props.className})}}]),y}(so.Component);return u.propTypes={data:Va.default.arrayOf(Va.default.object),config:Va.default.object,layout:Va.default.object,frames:Va.default.arrayOf(Va.default.object),revision:Va.default.number,onInitialized:Va.default.func,onPurge:Va.default.func,onError:Va.default.func,onUpdate:Va.default.func,debug:Va.default.bool,style:Va.default.object,className:Va.default.string,useResizeHandler:Va.default.bool,divId:Va.default.string},t.forEach(function(x){u.propTypes["on"+x]=Va.default.func}),u.defaultProps={debug:!1,useResizeHandler:!1,data:[],style:{position:"relative",display:"inline-block"}},u}})(Xg);var Wg={exports:{}};(function(zn,ua){(function(so,Va){zn.exports=Va()})(self,function(){return function(){var so={6713:function(nt,W,e){var M=e(34809),C={"X,X div":'direction:ltr;font-family:"Open Sans",verdana,arial,sans-serif;margin:0;padding:0;',"X input,X button":'font-family:"Open Sans",verdana,arial,sans-serif;',"X input:focus,X button:focus":"outline:none;","X a":"text-decoration:none;","X a:hover":"text-decoration:none;","X .crisp":"shape-rendering:crispEdges;","X .user-select-none":"-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none;","X svg":"overflow:hidden;","X svg a":"fill:#447adb;","X svg a:hover":"fill:#3c6dc5;","X .main-svg":"position:absolute;top:0;left:0;pointer-events:none;","X .main-svg .draglayer":"pointer-events:all;","X .cursor-default":"cursor:default;","X .cursor-pointer":"cursor:pointer;","X .cursor-crosshair":"cursor:crosshair;","X .cursor-move":"cursor:move;","X .cursor-col-resize":"cursor:col-resize;","X .cursor-row-resize":"cursor:row-resize;","X .cursor-ns-resize":"cursor:ns-resize;","X .cursor-ew-resize":"cursor:ew-resize;","X .cursor-sw-resize":"cursor:sw-resize;","X .cursor-s-resize":"cursor:s-resize;","X .cursor-se-resize":"cursor:se-resize;","X .cursor-w-resize":"cursor:w-resize;","X .cursor-e-resize":"cursor:e-resize;","X .cursor-nw-resize":"cursor:nw-resize;","X .cursor-n-resize":"cursor:n-resize;","X .cursor-ne-resize":"cursor:ne-resize;","X .cursor-grab":"cursor:-webkit-grab;cursor:grab;","X .modebar":"position:absolute;top:2px;right:2px;","X .ease-bg":"-webkit-transition:background-color .3s ease 0s;-moz-transition:background-color .3s ease 0s;-ms-transition:background-color .3s ease 0s;-o-transition:background-color .3s ease 0s;transition:background-color .3s ease 0s;","X .modebar--hover>:not(.watermark)":"opacity:0;-webkit-transition:opacity .3s ease 0s;-moz-transition:opacity .3s ease 0s;-ms-transition:opacity .3s ease 0s;-o-transition:opacity .3s ease 0s;transition:opacity .3s ease 0s;","X:hover .modebar--hover .modebar-group":"opacity:1;","X .modebar-group":"float:left;display:inline-block;box-sizing:border-box;padding-left:8px;position:relative;vertical-align:middle;white-space:nowrap;","X .modebar-btn":"position:relative;font-size:16px;padding:3px 4px;height:22px;cursor:pointer;line-height:normal;box-sizing:border-box;","X .modebar-btn svg":"position:relative;top:2px;","X .modebar.vertical":"display:flex;flex-direction:column;flex-wrap:wrap;align-content:flex-end;max-height:100%;","X .modebar.vertical svg":"top:-1px;","X .modebar.vertical .modebar-group":"display:block;float:none;padding-left:0px;padding-bottom:8px;","X .modebar.vertical .modebar-group .modebar-btn":"display:block;text-align:center;","X [data-title]:before,X [data-title]:after":"position:absolute;-webkit-transform:translate3d(0, 0, 0);-moz-transform:translate3d(0, 0, 0);-ms-transform:translate3d(0, 0, 0);-o-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);display:none;opacity:0;z-index:1001;pointer-events:none;top:110%;right:50%;","X [data-title]:hover:before,X [data-title]:hover:after":"display:block;opacity:1;","X [data-title]:before":'content:"";position:absolute;background:rgba(0,0,0,0);border:6px solid rgba(0,0,0,0);z-index:1002;margin-top:-12px;border-bottom-color:#69738a;margin-right:-6px;',"X [data-title]:after":"content:attr(data-title);background:#69738a;color:#fff;padding:8px 10px;font-size:12px;line-height:12px;white-space:nowrap;margin-right:-18px;border-radius:2px;","X .vertical [data-title]:before,X .vertical [data-title]:after":"top:0%;right:200%;","X .vertical [data-title]:before":"border:6px solid rgba(0,0,0,0);border-left-color:#69738a;margin-top:8px;margin-right:-30px;",Y:'font-family:"Open Sans",verdana,arial,sans-serif;position:fixed;top:50px;right:20px;z-index:10000;font-size:10pt;max-width:180px;',"Y p":"margin:0;","Y .notifier-note":"min-width:180px;max-width:250px;border:1px solid #fff;z-index:3000;margin:0;background-color:#8c97af;background-color:rgba(140,151,175,.9);color:#fff;padding:10px;overflow-wrap:break-word;word-wrap:break-word;-ms-hyphens:auto;-webkit-hyphens:auto;hyphens:auto;","Y .notifier-close":"color:#fff;opacity:.8;float:right;padding:0 5px;background:none;border:none;font-size:20px;font-weight:bold;line-height:20px;","Y .notifier-close:hover":"color:#444;text-decoration:none;cursor:pointer;"};for(var r in C){var i=r.replace(/^,/," ,").replace(/X/g,".js-plotly-plot .plotly").replace(/Y/g,".plotly-notifier");M.addStyleRule(i,C[r])}},14187:function(nt,W,e){nt.exports=e(47908)},20273:function(nt,W,e){nt.exports=e(58218)},6457:function(nt,W,e){nt.exports=e(89362)},15849:function(nt,W,e){nt.exports=e(53794)},38847:function(nt,W,e){nt.exports=e(29698)},7659:function(nt,W,e){nt.exports=e(51252)},60089:function(nt,W,e){nt.exports=e(48050)},22084:function(nt,W,e){nt.exports=e(58075)},35892:function(nt,W,e){nt.exports=e(9419)},81204:function(nt,W,e){nt.exports=e(28128)},55857:function(nt,W,e){nt.exports=e(47050)},12862:function(nt,W,e){nt.exports=e(91405)},97629:function(nt,W,e){nt.exports=e(34406)},67549:function(nt,W,e){nt.exports=e(17430)},2660:function(nt,W,e){nt.exports=e(91995)},86071:function(nt,W,e){nt.exports=e(81264)},66200:function(nt,W,e){nt.exports=e(42849)},53446:function(nt,W,e){nt.exports=e(52213)},86899:function(nt,W,e){nt.exports=e(91132)},13430:function(nt,W,e){nt.exports=e(50453)},21548:function(nt,W,e){nt.exports=e(29251)},53939:function(nt,W,e){nt.exports=e(72892)},1902:function(nt,W,e){nt.exports=e(74461)},29096:function(nt,W,e){nt.exports=e(66143)},23820:function(nt,W,e){nt.exports=e(81955)},82017:function(nt,W,e){nt.exports=e(36858)},113:function(nt,W,e){nt.exports=e(92106)},20260:function(nt,W,e){var M=e(67549);M.register([e(20273),e(15849),e(21548),e(1902),e(29096),e(23820),e(12862),e(1639),e(10067),e(53446),e(31014),e(113),e(78170),e(8202),e(92382),e(82017),e(86899),e(54357),e(66903),e(90594),e(71680),e(7412),e(55857),e(784),e(74221),e(22084),e(44001),e(97281),e(12345),e(53939),e(29117),e(5410),e(5057),e(81204),e(86071),e(14226),e(35892),e(2660),e(96599),e(28573),e(76832),e(60089),e(51469),e(97629),e(27700),e(7659),e(11780),e(27195),e(6457),e(84639),e(14187),e(66200),e(13430),e(90590),e(38847)]),nt.exports=M},28573:function(nt,W,e){nt.exports=e(25638)},90594:function(nt,W,e){nt.exports=e(75297)},7412:function(nt,W,e){nt.exports=e(58859)},27700:function(nt,W,e){nt.exports=e(12683)},5410:function(nt,W,e){nt.exports=e(6305)},29117:function(nt,W,e){nt.exports=e(83910)},78170:function(nt,W,e){nt.exports=e(49913)},12345:function(nt,W,e){nt.exports=e(15186)},96599:function(nt,W,e){nt.exports=e(71760)},54357:function(nt,W,e){nt.exports=e(17822)},51469:function(nt,W,e){nt.exports=e(56534)},74221:function(nt,W,e){nt.exports=e(18070)},44001:function(nt,W,e){nt.exports=e(52378)},14226:function(nt,W,e){nt.exports=e(30929)},5057:function(nt,W,e){nt.exports=e(83866)},11780:function(nt,W,e){nt.exports=e(66939)},27195:function(nt,W,e){nt.exports=e(23748)},84639:function(nt,W,e){nt.exports=e(73304)},1639:function(nt,W,e){nt.exports=e(12864)},90590:function(nt,W,e){nt.exports=e(99855)},97281:function(nt,W,e){nt.exports=e(91450)},784:function(nt,W,e){nt.exports=e(51943)},8202:function(nt,W,e){nt.exports=e(80809)},66903:function(nt,W,e){nt.exports=e(95984)},76832:function(nt,W,e){nt.exports=e(51671)},92382:function(nt,W,e){nt.exports=e(47181)},10067:function(nt,W,e){nt.exports=e(37276)},71680:function(nt,W,e){nt.exports=e(75703)},31014:function(nt,W,e){nt.exports=e(38261)},11645:function(nt){nt.exports=[{path:"",backoff:0},{path:"M-2.4,-3V3L0.6,0Z",backoff:.6},{path:"M-3.7,-2.5V2.5L1.3,0Z",backoff:1.3},{path:"M-4.45,-3L-1.65,-0.2V0.2L-4.45,3L1.55,0Z",backoff:1.55},{path:"M-2.2,-2.2L-0.2,-0.2V0.2L-2.2,2.2L-1.4,3L1.6,0L-1.4,-3Z",backoff:1.6},{path:"M-4.4,-2.1L-0.6,-0.2V0.2L-4.4,2.1L-4,3L2,0L-4,-3Z",backoff:2},{path:"M2,0A2,2 0 1,1 0,-2A2,2 0 0,1 2,0Z",backoff:0,noRotate:!0},{path:"M2,2V-2H-2V2Z",backoff:0,noRotate:!0}]},50222:function(nt,W,e){var M=e(11645),C=e(80337),r=e(54826),i=e(78032).templatedArray;e(35081),nt.exports=i("annotation",{visible:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},text:{valType:"string",editType:"calc+arraydraw"},textangle:{valType:"angle",dflt:0,editType:"calc+arraydraw"},font:C({editType:"calc+arraydraw",colorEditType:"arraydraw"}),width:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},height:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},align:{valType:"enumerated",values:["left","center","right"],dflt:"center",editType:"arraydraw"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"arraydraw"},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},bordercolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},borderpad:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},borderwidth:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},showarrow:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},arrowcolor:{valType:"color",editType:"arraydraw"},arrowhead:{valType:"integer",min:0,max:M.length,dflt:1,editType:"arraydraw"},startarrowhead:{valType:"integer",min:0,max:M.length,dflt:1,editType:"arraydraw"},arrowside:{valType:"flaglist",flags:["end","start"],extras:["none"],dflt:"end",editType:"arraydraw"},arrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},startarrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},arrowwidth:{valType:"number",min:.1,editType:"calc+arraydraw"},standoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},startstandoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},ax:{valType:"any",editType:"calc+arraydraw"},ay:{valType:"any",editType:"calc+arraydraw"},axref:{valType:"enumerated",dflt:"pixel",values:["pixel",r.idRegex.x.toString()],editType:"calc"},ayref:{valType:"enumerated",dflt:"pixel",values:["pixel",r.idRegex.y.toString()],editType:"calc"},xref:{valType:"enumerated",values:["paper",r.idRegex.x.toString()],editType:"calc"},x:{valType:"any",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},xshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},yref:{valType:"enumerated",values:["paper",r.idRegex.y.toString()],editType:"calc"},y:{valType:"any",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"auto",editType:"calc+arraydraw"},yshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},clicktoshow:{valType:"enumerated",values:[!1,"onoff","onout"],dflt:!1,editType:"arraydraw"},xclick:{valType:"any",editType:"arraydraw"},yclick:{valType:"any",editType:"arraydraw"},hovertext:{valType:"string",editType:"arraydraw"},hoverlabel:{bgcolor:{valType:"color",editType:"arraydraw"},bordercolor:{valType:"color",editType:"arraydraw"},font:C({editType:"arraydraw"}),editType:"arraydraw"},captureevents:{valType:"boolean",editType:"arraydraw"},editType:"calc",_deprecated:{ref:{valType:"string",editType:"calc"}}})},60317:function(nt,W,e){var M=e(34809),C=e(29714),r=e(3377).draw;nt.exports=function(S){var h=S._fullLayout,l=M.filterVisible(h.annotations);if(l.length&&S._fullData.length)return M.syncOrAsync([r,i],S)};function i(S){var h=S._fullLayout;M.filterVisible(h.annotations).forEach(function(l){var t=C.getFromId(S,l.xref),n=C.getFromId(S,l.yref),o=C.getRefType(l.xref),a=C.getRefType(l.yref);l._extremes={},o==="range"&&w(l,t),a==="range"&&w(l,n)})}function w(S,h){var l=h._id,t=l.charAt(0),n=S[t],o=S["a"+t],a=S[t+"ref"],s=S["a"+t+"ref"],u=S["_"+t+"padplus"],x=S["_"+t+"padminus"],m={x:1,y:-1}[t]*S[t+"shift"],y=3*S.arrowsize*S.arrowwidth||0,c=y+m,p=y-m,f=3*S.startarrowsize*S.arrowwidth||0,T=f+m,k=f-m,P;if(s===a){var g=C.findExtremes(h,[h.r2c(n)],{ppadplus:c,ppadminus:p}),A=C.findExtremes(h,[h.r2c(o)],{ppadplus:Math.max(u,T),ppadminus:Math.max(x,k)});P={min:[g.min[0],A.min[0]],max:[g.max[0],A.max[0]]}}else T=o?T+o:T,k=o?k-o:k,P=C.findExtremes(h,[h.r2c(n)],{ppadplus:Math.max(u,c,T),ppadminus:Math.max(x,p,k)});S._extremes[l]=P}},6035:function(nt,W,e){var M=e(34809),C=e(33626),r=e(78032).arrayEditor;nt.exports={hasClickToShow:i,onClick:w};function i(l,t){var n=S(l,t);return n.on.length>0||n.explicitOff.length>0}function w(l,t){var n=S(l,t),o=n.on,a=n.off.concat(n.explicitOff),s={},u=l._fullLayout.annotations,x,m;if(o.length||a.length){for(x=0;x<o.length;x++)m=r(l.layout,"annotations",u[o[x]]),m.modifyItem("visible",!0),M.extendFlat(s,m.getUpdateObj());for(x=0;x<a.length;x++)m=r(l.layout,"annotations",u[a[x]]),m.modifyItem("visible",!1),M.extendFlat(s,m.getUpdateObj());return C.call("update",l,{},s)}}function S(l,t){var n=l._fullLayout.annotations,o=[],a=[],s=[],u=(t||[]).length,x,m,y,c,p,f,T,k;for(x=0;x<n.length;x++)if(y=n[x],c=y.clicktoshow,c){for(m=0;m<u;m++)if(p=t[m],f=p.xaxis,T=p.yaxis,f._id===y.xref&&T._id===y.yref&&f.d2r(p.x)===h(y._xclick,f)&&T.d2r(p.y)===h(y._yclick,T)){y.visible?c==="onout"?k=a:k=s:k=o,k.push(x);break}m===u&&y.visible&&c==="onout"&&a.push(x)}return{on:o,off:a,explicitOff:s}}function h(l,t){return t.type==="log"?t.l2r(l):t.d2r(l)}},53271:function(nt,W,e){var M=e(34809),C=e(78766);nt.exports=function(r,i,w,S){S("opacity");var h=S("bgcolor"),l=S("bordercolor"),t=C.opacity(l);S("borderpad");var n=S("borderwidth"),o=S("showarrow");S("text",o?" ":w._dfltTitle.annotation),S("textangle"),M.coerceFont(S,"font",w.font),S("width"),S("align");var a=S("height");if(a&&S("valign"),o){var s=S("arrowside"),u,x;s.indexOf("end")!==-1&&(u=S("arrowhead"),x=S("arrowsize")),s.indexOf("start")!==-1&&(S("startarrowhead",u),S("startarrowsize",x)),S("arrowcolor",t?i.bordercolor:C.defaultLine),S("arrowwidth",(t&&n||1)*2),S("standoff"),S("startstandoff")}var m=S("hovertext"),y=w.hoverlabel||{};if(m){var c=S("hoverlabel.bgcolor",y.bgcolor||(C.opacity(h)?C.rgb(h):C.defaultLine)),p=S("hoverlabel.bordercolor",y.bordercolor||C.contrast(c)),f=M.extendFlat({},y.font);f.color||(f.color=p),M.coerceFont(S,"hoverlabel.font",f)}S("captureevents",!!m)}},59741:function(nt,W,e){var M=e(10721),C=e(8083);nt.exports=function(r,i,w,S){i=i||{};var h=w==="log"&&i.type==="linear",l=w==="linear"&&i.type==="log";if(!(h||l))return;var t=r._fullLayout.annotations,n=i._id.charAt(0),o,a;function s(x){var m=o[x],y=null;h?y=C(m,i.range):y=Math.pow(10,m),M(y)||(y=null),S(a+x,y)}for(var u=0;u<t.length;u++)o=t[u],a="annotations["+u+"].",o[n+"ref"]===i._id&&s(n),o["a"+n+"ref"]===i._id&&s("a"+n)}},63737:function(nt,W,e){var M=e(34809),C=e(29714),r=e(59008),i=e(53271),w=e(50222);nt.exports=function(h,l){r(h,l,{name:"annotations",handleItemDefaults:S})};function S(h,l,t){function n(E,d){return M.coerce(h,l,w,E,d)}var o=n("visible"),a=n("clicktoshow");if(o||a){i(h,l,t,n);for(var s=l.showarrow,u=["x","y"],x=[-10,-30],m={_fullLayout:t},y=0;y<2;y++){var c=u[y],p=C.coerceRef(h,l,m,c,"","paper");if(p!=="paper"){var f=C.getFromId(m,p);f._annIndices.push(l._index)}if(C.coercePosition(l,m,n,p,c,.5),s){var T="a"+c,k=C.coerceRef(h,l,m,T,"pixel",["pixel","paper"]);k!=="pixel"&&k!==p&&(k=l[T]="pixel");var P=k==="pixel"?x[y]:.4;C.coercePosition(l,m,n,k,T,P)}n(c+"anchor"),n(c+"shift")}if(M.noneOrAll(h,l,["x","y"]),s&&M.noneOrAll(h,l,["ax","ay"]),a){var g=n("xclick"),A=n("yclick");l._xclick=g===void 0?l.x:C.cleanPosition(g,m,l.xref),l._yclick=A===void 0?l.y:C.cleanPosition(A,m,l.yref)}}}},3377:function(nt,W,e){var M=e(45568),C=e(33626),r=e(44122),i=e(34809),w=i.strTranslate,S=e(29714),h=e(78766),l=e(62203),t=e(32141),n=e(30635),o=e(27983),a=e(14751),s=e(78032).arrayEditor,u=e(23768);nt.exports={draw:x,drawOne:m,drawRaw:c};function x(p){var f=p._fullLayout;f._infolayer.selectAll(".annotation").remove();for(var T=0;T<f.annotations.length;T++)f.annotations[T].visible&&m(p,T);return r.previousPromises(p)}function m(p,f){var T=p._fullLayout,k=T.annotations[f]||{},P=S.getFromId(p,k.xref),g=S.getFromId(p,k.yref);P&&P.setScale(),g&&g.setScale(),c(p,k,f,!1,P,g)}function y(p,f,T,k,P){var g=P[T],A=P[T+"ref"],E=T.indexOf("y")!==-1,d=S.getRefType(A)==="domain",_=E?k.h:k.w;return p?d?g+(E?-f:f)/p._length:p.p2r(p.r2p(g)+f):g+(E?-f:f)/_}function c(p,f,T,k,P,g){var A=p._fullLayout,E=p._fullLayout._size,d=p._context.edits,_,L;k?(_="annotation-"+k,L=k+".annotations"):(_="annotation",L="annotations");var b=s(p.layout,L,f),D=b.modifyBase,B=b.modifyItem,I=b.getUpdateObj;A._infolayer.selectAll("."+_+'[data-index="'+T+'"]').remove();var V="clip"+A._uid+"_ann"+T;if(!f._input||f.visible===!1){M.selectAll("#"+V).remove();return}var N={x:{},y:{}},F=+f.textangle||0,U=A._infolayer.append("g").classed(_,!0).attr("data-index",String(T)).style("opacity",f.opacity),G=U.append("g").classed("annotation-text-g",!0),Y=d[f.showarrow?"annotationTail":"annotationPosition"],Q=f.captureevents||d.annotationText||Y;function ft(xt){var At={index:T,annotation:f._input,fullAnnotation:f,event:xt};return k&&(At.subplotId=k),At}var ut=G.append("g").style("pointer-events",Q?"all":null).call(o,"pointer").on("click",function(){p._dragging=!1,p.emit("plotly_clickannotation",ft(M.event))});f.hovertext&&ut.on("mouseover",function(){var xt=f.hoverlabel,At=xt.font,St=this.getBoundingClientRect(),Nt=p.getBoundingClientRect();t.loneHover({x0:St.left-Nt.left,x1:St.right-Nt.left,y:(St.top+St.bottom)/2-Nt.top,text:f.hovertext,color:xt.bgcolor,borderColor:xt.bordercolor,fontFamily:At.family,fontSize:At.size,fontColor:At.color,fontWeight:At.weight,fontStyle:At.style,fontVariant:At.variant,fontShadow:At.fontShadow,fontLineposition:At.fontLineposition,fontTextcase:At.fontTextcase},{container:A._hoverlayer.node(),outerContainer:A._paper.node(),gd:p})}).on("mouseout",function(){t.loneUnhover(A._hoverlayer.node())});var lt=f.borderwidth,K=f.borderpad,$=lt+K,H=ut.append("rect").attr("class","bg").style("stroke-width",lt+"px").call(h.stroke,f.bordercolor).call(h.fill,f.bgcolor),at=f.width||f.height,ct=A._topclips.selectAll("#"+V).data(at?[0]:[]);ct.enter().append("clipPath").classed("annclip",!0).attr("id",V).append("rect"),ct.exit().remove();var et=f.font,Z=A._meta?i.templateString(f.text,A._meta):f.text,ot=ut.append("text").classed("annotation-text",!0).text(Z);function st(xt){return xt.call(l.font,et).attr({"text-anchor":{left:"start",right:"end"}[f.align]||"middle"}),n.convertToTspans(xt,p,dt),xt}function dt(){var xt=ot.selectAll("a");if(xt.size()===1&&xt.text()===ot.text()){var At=ut.insert("a",":first-child").attr({"xlink:xlink:href":xt.attr("xlink:href"),"xlink:xlink:show":xt.attr("xlink:show")}).style({cursor:"pointer"});At.node().appendChild(H.node())}var St=ut.select(".annotation-text-math-group"),Nt=!St.empty(),Wt=l.bBox((Nt?St:ot).node()),Vt=Wt.width,jt=Wt.height,Dt=f.width||Vt,kt=f.height||jt,Bt=Math.round(Dt+2*$),Ot=Math.round(kt+2*$);function Ht(ar,Ye){return Ye==="auto"&&(ar<.3333333333333333?Ye="left":ar>.6666666666666666?Ye="right":Ye="center"),{center:0,middle:0,left:.5,bottom:-.5,right:-.5,top:.5}[Ye]}for(var ye=!1,Qt=["x","y"],_e=0;_e<Qt.length;_e++){var ie=Qt[_e],Ae=f[ie+"ref"]||ie,Pe=f["a"+ie+"ref"],Oe={x:P,y:g}[ie],je=(F+(ie==="x"?0:-90))*Math.PI/180,Le=Bt*Math.cos(je),Ie=Ot*Math.sin(je),Ut=Math.abs(Le)+Math.abs(Ie),ee=f[ie+"anchor"],Kt=f[ie+"shift"]*(ie==="x"?1:-1),ne=N[ie],zt,qt,Zt,ae,vt,Mt=S.getRefType(Ae);if(Oe&&Mt!=="domain"){var Lt=Oe.r2fraction(f[ie]);(Lt<0||Lt>1)&&(Pe===Ae?(Lt=Oe.r2fraction(f["a"+ie]),(Lt<0||Lt>1)&&(ye=!0)):ye=!0),zt=Oe._offset+Oe.r2p(f[ie]),ae=.5}else{var $t=Mt==="domain";ie==="x"?(Zt=f[ie],zt=$t?Oe._offset+Oe._length*Zt:zt=E.l+E.w*Zt):(Zt=1-f[ie],zt=$t?Oe._offset+Oe._length*Zt:zt=E.t+E.h*Zt),ae=f.showarrow?.5:Zt}if(f.showarrow){ne.head=zt;var ge=f["a"+ie];if(vt=Le*Ht(.5,f.xanchor)-Ie*Ht(.5,f.yanchor),Pe===Ae){var de=S.getRefType(Pe);de==="domain"?(ie==="y"&&(ge=1-ge),ne.tail=Oe._offset+Oe._length*ge):de==="paper"?ie==="y"?(ge=1-ge,ne.tail=E.t+E.h*ge):ne.tail=E.l+E.w*ge:ne.tail=Oe._offset+Oe.r2p(ge),qt=vt}else ne.tail=zt+ge,qt=vt+ge;ne.text=ne.tail+vt;var sr=A[ie==="x"?"width":"height"];if(Ae==="paper"&&(ne.head=i.constrain(ne.head,1,sr-1)),Pe==="pixel"){var mr=-Math.max(ne.tail-3,ne.text),Ve=Math.min(ne.tail+3,ne.text)-sr;mr>0?(ne.tail+=mr,ne.text+=mr):Ve>0&&(ne.tail-=Ve,ne.text-=Ve)}ne.tail+=Kt,ne.head+=Kt}else vt=Ut*Ht(ae,ee),qt=vt,ne.text=zt+vt;ne.text+=Kt,vt+=Kt,qt+=Kt,f["_"+ie+"padplus"]=Ut/2+qt,f["_"+ie+"padminus"]=Ut/2-qt,f["_"+ie+"size"]=Ut,f["_"+ie+"shift"]=vt}if(ye){ut.remove();return}var le=0,pe=0;if(f.align!=="left"&&(le=(Dt-Vt)*(f.align==="center"?.5:1)),f.valign!=="top"&&(pe=(kt-jt)*(f.valign==="middle"?.5:1)),Nt)St.select("svg").attr({x:$+le-1,y:$+pe}).call(l.setClipUrl,at?V:null,p);else{var Te=$+pe-Wt.top,Yt=$+le-Wt.left;ot.call(n.positionText,Yt,Te).call(l.setClipUrl,at?V:null,p)}ct.select("rect").call(l.setRect,$,$,Dt,kt),H.call(l.setRect,lt/2,lt/2,Bt-lt,Ot-lt),ut.call(l.setTranslate,Math.round(N.x.text-Bt/2),Math.round(N.y.text-Ot/2)),G.attr({transform:"rotate("+F+","+N.x.text+","+N.y.text+")"});var Ee=function(ar,Ye){U.selectAll(".annotation-arrow-g").remove();var Jt=N.x.head,ue=N.y.head,Se=N.x.tail+ar,De=N.y.tail+Ye,Ze=N.x.text+ar,nr=N.y.text+Ye,Ke=i.rotationXYMatrix(F,Ze,nr),er=i.apply2DTransform(Ke),xr=i.apply2DTransform2(Ke),Sr=+H.attr("width"),Cr=+H.attr("height"),Er=Ze-.5*Sr,Lr=Er+Sr,Ur=nr-.5*Cr,zr=Ur+Cr,te=[[Er,Ur,Er,zr],[Er,zr,Lr,zr],[Lr,zr,Lr,Ur],[Lr,Ur,Er,Ur]].map(xr);if(!te.reduce(function(Xr,Dn){return Xr^!!i.segmentsIntersect(Jt,ue,Jt+1e6,ue+1e6,Dn[0],Dn[1],Dn[2],Dn[3])},!1)){te.forEach(function(Xr){var Dn=i.segmentsIntersect(Se,De,Jt,ue,Xr[0],Xr[1],Xr[2],Xr[3]);Dn&&(Se=Dn.x,De=Dn.y)});var he=f.arrowwidth,Je=f.arrowcolor,br=f.arrowside,pr=U.append("g").style({opacity:h.opacity(Je)}).classed("annotation-arrow-g",!0),We=pr.append("path").attr("d","M"+Se+","+De+"L"+Jt+","+ue).style("stroke-width",he+"px").call(h.stroke,h.rgb(Je));if(u(We,br,f),d.annotationPosition&&We.node().parentNode&&!k){var hr=Jt,Ar=ue;if(f.standoff){var yr=Math.sqrt(Math.pow(Jt-Se,2)+Math.pow(ue-De,2));hr+=f.standoff*(Se-Jt)/yr,Ar+=f.standoff*(De-ue)/yr}var dr=pr.append("path").classed("annotation-arrow",!0).classed("anndrag",!0).classed("cursor-move",!0).attr({d:"M3,3H-3V-3H3ZM0,0L"+(Se-hr)+","+(De-Ar),transform:w(hr,Ar)}).style("stroke-width",he+6+"px").call(h.stroke,"rgba(0,0,0,0)").call(h.fill,"rgba(0,0,0,0)"),Rr,Qr;a.init({element:dr.node(),gd:p,prepFn:function(){var Xr=l.getTranslate(ut);Rr=Xr.x,Qr=Xr.y,P&&P.autorange&&D(P._name+".autorange",!0),g&&g.autorange&&D(g._name+".autorange",!0)},moveFn:function(Xr,Dn){var on=er(Rr,Qr),Hn=on[0]+Xr,Fn=on[1]+Dn;ut.call(l.setTranslate,Hn,Fn),B("x",y(P,Xr,"x",E,f)),B("y",y(g,Dn,"y",E,f)),f.axref===f.xref&&B("ax",y(P,Xr,"ax",E,f)),f.ayref===f.yref&&B("ay",y(g,Dn,"ay",E,f)),pr.attr("transform",w(Xr,Dn)),G.attr({transform:"rotate("+F+","+Hn+","+Fn+")"})},doneFn:function(){C.call("_guiRelayout",p,I());var Xr=document.querySelector(".js-notes-box-panel");Xr&&Xr.redraw(Xr.selectedObj)}})}}};if(f.showarrow&&Ee(0,0),Y){var Ne;a.init({element:ut.node(),gd:p,prepFn:function(){Ne=G.attr("transform")},moveFn:function(ar,Ye){var Jt="pointer";if(f.showarrow)f.axref===f.xref?B("ax",y(P,ar,"ax",E,f)):B("ax",f.ax+ar),f.ayref===f.yref?B("ay",y(g,Ye,"ay",E.w,f)):B("ay",f.ay+Ye),Ee(ar,Ye);else{if(k)return;var ue,Se;if(P)ue=y(P,ar,"x",E,f);else{var De=f._xsize/E.w,Ze=f.x+(f._xshift-f.xshift)/E.w-De/2;ue=a.align(Ze+ar/E.w,De,0,1,f.xanchor)}if(g)Se=y(g,Ye,"y",E,f);else{var nr=f._ysize/E.h,Ke=f.y-(f._yshift+f.yshift)/E.h-nr/2;Se=a.align(Ke-Ye/E.h,nr,0,1,f.yanchor)}B("x",ue),B("y",Se),(!P||!g)&&(Jt=a.getCursor(P?.5:ue,g?.5:Se,f.xanchor,f.yanchor))}G.attr({transform:w(ar,Ye)+Ne}),o(ut,Jt)},clickFn:function(ar,Ye){f.captureevents&&p.emit("plotly_clickannotation",ft(Ye))},doneFn:function(){o(ut),C.call("_guiRelayout",p,I());var ar=document.querySelector(".js-notes-box-panel");ar&&ar.redraw(ar.selectedObj)}})}}d.annotationText?ot.call(n.makeEditable,{delegate:ut,gd:p}).call(st).on("edit",function(xt){f.text=xt,this.call(st),B("text",xt),P&&P.autorange&&D(P._name+".autorange",!0),g&&g.autorange&&D(g._name+".autorange",!0),C.call("_guiRelayout",p,I())}):ot.call(st)}},23768:function(nt,W,e){var M=e(45568),C=e(78766),r=e(11645),i=e(34809),w=i.strScale,S=i.strRotate,h=i.strTranslate;nt.exports=function(l,t,n){var o=l.node(),a=r[n.arrowhead||0],s=r[n.startarrowhead||0],u=(n.arrowwidth||1)*(n.arrowsize||1),x=(n.arrowwidth||1)*(n.startarrowsize||1),m=t.indexOf("start")>=0,y=t.indexOf("end")>=0,c=a.backoff*u+n.standoff,p=s.backoff*x+n.startstandoff,f,T,k,P;if(o.nodeName==="line"){f={x:+l.attr("x1"),y:+l.attr("y1")},T={x:+l.attr("x2"),y:+l.attr("y2")};var g=f.x-T.x,A=f.y-T.y;if(k=Math.atan2(A,g),P=k+Math.PI,c&&p&&c+p>Math.sqrt(g*g+A*A)){U();return}if(c){if(c*c>g*g+A*A){U();return}var E=c*Math.cos(k),d=c*Math.sin(k);T.x+=E,T.y+=d,l.attr({x2:T.x,y2:T.y})}if(p){if(p*p>g*g+A*A){U();return}var _=p*Math.cos(k),L=p*Math.sin(k);f.x-=_,f.y-=L,l.attr({x1:f.x,y1:f.y})}}else if(o.nodeName==="path"){var b=o.getTotalLength(),D="";if(b<c+p){U();return}var B=o.getPointAtLength(0),I=o.getPointAtLength(.1);k=Math.atan2(B.y-I.y,B.x-I.x),f=o.getPointAtLength(Math.min(p,b)),D="0px,"+p+"px,";var V=o.getPointAtLength(b),N=o.getPointAtLength(b-.1);P=Math.atan2(V.y-N.y,V.x-N.x),T=o.getPointAtLength(Math.max(0,b-c));var F=D?p+c:c;D+=b-F+"px,"+b+"px",l.style("stroke-dasharray",D)}function U(){l.style("stroke-dasharray","0px,100px")}function G(Y,Q,ft,ut){Y.path&&(Y.noRotate&&(ft=0),M.select(o.parentNode).append("path").attr({class:l.attr("class"),d:Y.path,transform:h(Q.x,Q.y)+S(ft*180/Math.PI)+w(ut)}).style({fill:C.rgb(n.arrowcolor),"stroke-width":0}))}m&&G(s,f,k,x),y&&G(a,T,P,u)}},3599:function(nt,W,e){var M=e(3377),C=e(6035);nt.exports={moduleType:"component",name:"annotations",layoutAttributes:e(50222),supplyLayoutDefaults:e(63737),includeBasePlot:e(20706)("annotations"),calcAutorange:e(60317),draw:M.draw,drawOne:M.drawOne,drawRaw:M.drawRaw,hasClickToShow:C.hasClickToShow,onClick:C.onClick,convertCoords:e(59741)}},38239:function(nt,W,e){var M=e(50222),C=e(13582).overrideAll,r=e(78032).templatedArray;nt.exports=C(r("annotation",{visible:M.visible,x:{valType:"any"},y:{valType:"any"},z:{valType:"any"},ax:{valType:"number"},ay:{valType:"number"},xanchor:M.xanchor,xshift:M.xshift,yanchor:M.yanchor,yshift:M.yshift,text:M.text,textangle:M.textangle,font:M.font,width:M.width,height:M.height,opacity:M.opacity,align:M.align,valign:M.valign,bgcolor:M.bgcolor,bordercolor:M.bordercolor,borderpad:M.borderpad,borderwidth:M.borderwidth,showarrow:M.showarrow,arrowcolor:M.arrowcolor,arrowhead:M.arrowhead,startarrowhead:M.startarrowhead,arrowside:M.arrowside,arrowsize:M.arrowsize,startarrowsize:M.startarrowsize,arrowwidth:M.arrowwidth,standoff:M.standoff,startstandoff:M.startstandoff,hovertext:M.hovertext,hoverlabel:M.hoverlabel,captureevents:M.captureevents}),"calc","from-root")},47979:function(nt,W,e){var M=e(34809),C=e(29714);nt.exports=function(i){for(var w=i.fullSceneLayout,S=w.annotations,h=0;h<S.length;h++)r(S[h],i);i.fullLayout._infolayer.selectAll(".annotation-"+i.id).remove()};function r(i,w){var S=w.fullSceneLayout,h=S.domain,l=w.fullLayout._size,t={pdata:null,type:"linear",autorange:!1,range:[-1/0,1/0]};i._xa={},M.extendFlat(i._xa,t),C.setConvert(i._xa),i._xa._offset=l.l+h.x[0]*l.w,i._xa.l2p=function(){return .5*(1+i._pdata[0]/i._pdata[3])*l.w*(h.x[1]-h.x[0])},i._ya={},M.extendFlat(i._ya,t),C.setConvert(i._ya),i._ya._offset=l.t+(1-h.y[1])*l.h,i._ya.l2p=function(){return .5*(1-i._pdata[1]/i._pdata[3])*l.h*(h.y[1]-h.y[0])}}},34232:function(nt,W,e){var M=e(34809),C=e(29714),r=e(59008),i=e(53271),w=e(38239);nt.exports=function(h,l,t){r(h,l,{name:"annotations",handleItemDefaults:S,fullLayout:t.fullLayout})};function S(h,l,t,n){function o(u,x){return M.coerce(h,l,w,u,x)}function a(u){var x=u+"axis",m={_fullLayout:{}};return m._fullLayout[x]=t[x],C.coercePosition(l,m,o,u,u,.5)}var s=o("visible");s&&(i(h,l,n.fullLayout,o),a("x"),a("y"),a("z"),M.noneOrAll(h,l,["x","y","z"]),l.xref="x",l.yref="y",l.zref="z",o("xanchor"),o("yanchor"),o("xshift"),o("yshift"),l.showarrow&&(l.axref="pixel",l.ayref="pixel",o("ax",-10),o("ay",-30),M.noneOrAll(h,l,["ax","ay"])))}},9756:function(nt,W,e){var M=e(3377).drawRaw,C=e(25802),r=["x","y","z"];nt.exports=function(i){for(var w=i.fullSceneLayout,S=i.dataScale,h=w.annotations,l=0;l<h.length;l++){for(var t=h[l],n=!1,o=0;o<3;o++){var a=r[o],s=t[a],u=w[a+"axis"],x=u.r2fraction(s);if(x<0||x>1){n=!0;break}}n?i.fullLayout._infolayer.select(".annotation-"+i.id+'[data-index="'+l+'"]').remove():(t._pdata=C(i.glplot.cameraParams,[w.xaxis.r2l(t.x)*S[0],w.yaxis.r2l(t.y)*S[1],w.zaxis.r2l(t.z)*S[2]]),M(i.graphDiv,t,l,i.id,t._xa,t._ya))}}},83348:function(nt,W,e){var M=e(33626),C=e(34809);nt.exports={moduleType:"component",name:"annotations3d",schema:{subplots:{scene:{annotations:e(38239)}}},layoutAttributes:e(38239),handleDefaults:e(34232),includeBasePlot:r,convert:e(47979),draw:e(9756)};function r(i,w){var S=M.subplotsRegistry.gl3d;if(S)for(var h=S.attrRegex,l=Object.keys(i),t=0;t<l.length;t++){var n=l[t];h.test(n)&&(i[n].annotations||[]).length&&(C.pushUnique(w._basePlotModules,S),C.pushUnique(w._subplots.gl3d,n))}}},37177:function(nt,W,e){nt.exports=e(24453),e(23428),e(1401),e(72210),e(28569),e(81133),e(78295),e(25512),e(42645),e(62324),e(91662),e(66445),e(50506),e(84756),e(41858),e(57985)},29698:function(nt,W,e){var M=e(37177),C=e(34809),r=e(63821),i=r.EPOCHJD,w=r.ONEDAY,S={valType:"enumerated",values:C.sortObjectKeys(M.calendars),editType:"calc",dflt:"gregorian"},h=function(P,g,A,E){var d={};return d[A]=S,C.coerce(P,g,d,A,E)},l=function(P,g,A,E){for(var d=0;d<A.length;d++)h(P,g,A[d]+"calendar",E.calendar)},t={chinese:"2000-01-01",coptic:"2000-01-01",discworld:"2000-01-01",ethiopian:"2000-01-01",hebrew:"5000-01-01",islamic:"1000-01-01",julian:"2000-01-01",mayan:"5000-01-01",nanakshahi:"1000-01-01",nepali:"2000-01-01",persian:"1000-01-01",jalali:"1000-01-01",taiwan:"1000-01-01",thai:"2000-01-01",ummalqura:"1400-01-01"},n={chinese:"2000-01-02",coptic:"2000-01-03",discworld:"2000-01-03",ethiopian:"2000-01-05",hebrew:"5000-01-01",islamic:"1000-01-02",julian:"2000-01-03",mayan:"5000-01-01",nanakshahi:"1000-01-05",nepali:"2000-01-05",persian:"1000-01-01",jalali:"1000-01-01",taiwan:"1000-01-04",thai:"2000-01-04",ummalqura:"1400-01-06"},o={chinese:["2000-01-01","2001-01-01"],coptic:["1700-01-01","1701-01-01"],discworld:["1800-01-01","1801-01-01"],ethiopian:["2000-01-01","2001-01-01"],hebrew:["5700-01-01","5701-01-01"],islamic:["1400-01-01","1401-01-01"],julian:["2000-01-01","2001-01-01"],mayan:["5200-01-01","5201-01-01"],nanakshahi:["0500-01-01","0501-01-01"],nepali:["2000-01-01","2001-01-01"],persian:["1400-01-01","1401-01-01"],jalali:["1400-01-01","1401-01-01"],taiwan:["0100-01-01","0101-01-01"],thai:["2500-01-01","2501-01-01"],ummalqura:["1400-01-01","1401-01-01"]},a="##",s={d:{0:"dd","-":"d"},e:{0:"d","-":"d"},a:{0:"D","-":"D"},A:{0:"DD","-":"DD"},j:{0:"oo","-":"o"},W:{0:"ww","-":"w"},m:{0:"mm","-":"m"},b:{0:"M","-":"M"},B:{0:"MM","-":"MM"},y:{0:"yy","-":"yy"},Y:{0:"yyyy","-":"yyyy"},U:a,w:a,c:{0:"D M d %X yyyy","-":"D M d %X yyyy"},x:{0:"mm/dd/yyyy","-":"mm/dd/yyyy"}};function u(P,g,A){for(var E=Math.floor((g+.05)/w)+i,d=m(A).fromJD(E),_=0,L,b,D,B,I;(_=P.indexOf("%",_))!==-1;)L=P.charAt(_+1),L==="0"||L==="-"||L==="_"?(D=3,b=P.charAt(_+2),L==="_"&&(L="-")):(b=L,L="0",D=2),B=s[b],B?(B===a?I=a:I=d.formatDate(B[L]),P=P.substr(0,_)+I+P.substr(_+D),_+=I.length):_+=D;return P}var x={};function m(P){var g=x[P];return g||(g=x[P]=M.instance(P),g)}function y(P){return C.extendFlat({},S,{description:P})}function c(P){return"Sets the calendar system to use with `"+P+"` date data."}var p={xcalendar:y(c("x"))},f=C.extendFlat({},p,{ycalendar:y(c("y"))}),T=C.extendFlat({},f,{zcalendar:y(c("z"))}),k=y(["Sets the calendar system to use for `range` and `tick0`","if this is a date axis. This does not set the calendar for","interpreting data on this axis, that's specified in the trace","or via the global `layout.calendar`"].join(" "));nt.exports={moduleType:"component",name:"calendars",schema:{traces:{scatter:f,bar:f,box:f,heatmap:f,contour:f,histogram:f,histogram2d:f,histogram2dcontour:f,scatter3d:T,surface:T,mesh3d:T,scattergl:f,ohlc:p,candlestick:p},layout:{calendar:y(["Sets the default calendar system to use for interpreting and","displaying dates throughout the plot."].join(" "))},subplots:{xaxis:{calendar:k},yaxis:{calendar:k},scene:{xaxis:{calendar:k},yaxis:{calendar:k},zaxis:{calendar:k}},polar:{radialaxis:{calendar:k}}},transforms:{filter:{valuecalendar:y(["WARNING: All transforms are deprecated and may be removed from the API in next major version.","Sets the calendar system to use for `value`, if it is a date."].join(" ")),targetcalendar:y(["WARNING: All transforms are deprecated and may be removed from the API in next major version.","Sets the calendar system to use for `target`, if it is an","array of dates. If `target` is a string (eg *x*) we use the","corresponding trace attribute (eg `xcalendar`) if it exists,","even if `targetcalendar` is provided."].join(" "))}}},layoutAttributes:S,handleDefaults:h,handleTraceDefaults:l,CANONICAL_SUNDAY:n,CANONICAL_TICK:t,DFLTRANGE:o,getCal:m,worldCalFmt:u}},10229:function(nt,W){W.defaults=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"],W.defaultLine="#444",W.lightLine="#eee",W.background="#fff",W.borderLine="#BEC8D9",W.lightFraction=90.9090909090909},78766:function(nt,W,e){var M=e(65657),C=e(10721),r=e(87800).isTypedArray,i=nt.exports={},w=e(10229);i.defaults=w.defaults;var S=i.defaultLine=w.defaultLine;i.lightLine=w.lightLine;var h=i.background=w.background;i.tinyRGB=function(t){var n=t.toRgb();return"rgb("+Math.round(n.r)+", "+Math.round(n.g)+", "+Math.round(n.b)+")"},i.rgb=function(t){return i.tinyRGB(M(t))},i.opacity=function(t){return t?M(t).getAlpha():0},i.addOpacity=function(t,n){var o=M(t).toRgb();return"rgba("+Math.round(o.r)+", "+Math.round(o.g)+", "+Math.round(o.b)+", "+n+")"},i.combine=function(t,n){var o=M(t).toRgb();if(o.a===1)return M(t).toRgbString();var a=M(n||h).toRgb(),s=a.a===1?a:{r:255*(1-a.a)+a.r*a.a,g:255*(1-a.a)+a.g*a.a,b:255*(1-a.a)+a.b*a.a},u={r:s.r*(1-o.a)+o.r*o.a,g:s.g*(1-o.a)+o.g*o.a,b:s.b*(1-o.a)+o.b*o.a};return M(u).toRgbString()},i.interpolate=function(t,n,o){var a=M(t).toRgb(),s=M(n).toRgb(),u={r:o*a.r+(1-o)*s.r,g:o*a.g+(1-o)*s.g,b:o*a.b+(1-o)*s.b};return M(u).toRgbString()},i.contrast=function(t,n,o){var a=M(t);a.getAlpha()!==1&&(a=M(i.combine(t,h)));var s=a.isDark()?n?a.lighten(n):h:o?a.darken(o):S;return s.toString()},i.stroke=function(t,n){var o=M(n);t.style({stroke:i.tinyRGB(o),"stroke-opacity":o.getAlpha()})},i.fill=function(t,n){var o=M(n);t.style({fill:i.tinyRGB(o),"fill-opacity":o.getAlpha()})},i.clean=function(t){if(!(!t||typeof t!="object")){var n=Object.keys(t),o,a,s,u;for(o=0;o<n.length;o++)if(s=n[o],u=t[s],s.substr(s.length-5)==="color")if(Array.isArray(u))for(a=0;a<u.length;a++)u[a]=l(u[a]);else t[s]=l(u);else if(s.substr(s.length-10)==="colorscale"&&Array.isArray(u))for(a=0;a<u.length;a++)Array.isArray(u[a])&&(u[a][1]=l(u[a][1]));else if(Array.isArray(u)){var x=u[0];if(!Array.isArray(x)&&x&&typeof x=="object")for(a=0;a<u.length;a++)i.clean(u[a])}else u&&typeof u=="object"&&!r(u)&&i.clean(u)}};function l(t){if(C(t)||typeof t!="string")return t;var n=t.trim();if(n.substr(0,3)!=="rgb")return t;var o=n.match(/^rgba?\s*\(([^()]*)\)$/);if(!o)return t;var a=o[1].trim().split(/\s*[\s,]\s*/),s=n.charAt(3)==="a"&&a.length===4;if(!s&&a.length!==3)return t;for(var u=0;u<a.length;u++){if(!a[u].length||(a[u]=Number(a[u]),!(a[u]>=0)))return t;if(u===3)a[u]>1&&(a[u]=1);else if(a[u]>=1)return t}var x=Math.round(a[0]*255)+", "+Math.round(a[1]*255)+", "+Math.round(a[2]*255);return s?"rgba("+x+", "+a[3]+")":"rgb("+x+")"}},25158:function(nt,W,e){var M=e(25829),C=e(80337),r=e(93049).extendFlat,i=e(13582).overrideAll;nt.exports=i({orientation:{valType:"enumerated",values:["h","v"],dflt:"v"},thicknessmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"pixels"},thickness:{valType:"number",min:0,dflt:30},lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction"},len:{valType:"number",min:0,dflt:1},x:{valType:"number"},xref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},xanchor:{valType:"enumerated",values:["left","center","right"]},xpad:{valType:"number",min:0,dflt:10},y:{valType:"number"},yref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},yanchor:{valType:"enumerated",values:["top","middle","bottom"]},ypad:{valType:"number",min:0,dflt:10},outlinecolor:M.linecolor,outlinewidth:M.linewidth,bordercolor:M.linecolor,borderwidth:{valType:"number",min:0,dflt:0},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},tickmode:M.minor.tickmode,nticks:M.nticks,tick0:M.tick0,dtick:M.dtick,tickvals:M.tickvals,ticktext:M.ticktext,ticks:r({},M.ticks,{dflt:""}),ticklabeloverflow:r({},M.ticklabeloverflow,{}),ticklabelposition:{valType:"enumerated",values:["outside","inside","outside top","inside top","outside left","inside left","outside right","inside right","outside bottom","inside bottom"],dflt:"outside"},ticklen:M.ticklen,tickwidth:M.tickwidth,tickcolor:M.tickcolor,ticklabelstep:M.ticklabelstep,showticklabels:M.showticklabels,labelalias:M.labelalias,tickfont:C({}),tickangle:M.tickangle,tickformat:M.tickformat,tickformatstops:M.tickformatstops,tickprefix:M.tickprefix,showtickprefix:M.showtickprefix,ticksuffix:M.ticksuffix,showticksuffix:M.showticksuffix,separatethousands:M.separatethousands,exponentformat:M.exponentformat,minexponent:M.minexponent,showexponent:M.showexponent,title:{text:{valType:"string"},font:C({}),side:{valType:"enumerated",values:["right","top","bottom"]}},_deprecated:{title:{valType:"string"},titlefont:C({}),titleside:{valType:"enumerated",values:["right","top","bottom"],dflt:"top"}}},"colorbars","from-root")},34554:function(nt){nt.exports={cn:{colorbar:"colorbar",cbbg:"cbbg",cbfill:"cbfill",cbfills:"cbfills",cbline:"cbline",cblines:"cblines",cbaxis:"cbaxis",cbtitleunshift:"cbtitleunshift",cbtitle:"cbtitle",cboutline:"cboutline",crisp:"crisp",jsPlaceholder:"js-placeholder"}}},42097:function(nt,W,e){var M=e(34809),C=e(78032),r=e(22777),i=e(87433),w=e(12036),S=e(54616),h=e(25158);nt.exports=function(l,t,n){var o=C.newContainer(t,"colorbar"),a=l.colorbar||{};function s(V,N){return M.coerce(a,o,h,V,N)}var u=n.margin||{t:0,b:0,l:0,r:0},x=n.width-u.l-u.r,m=n.height-u.t-u.b,y=s("orientation"),c=y==="v",p=s("thicknessmode");s("thickness",p==="fraction"?30/(c?x:m):30);var f=s("lenmode");s("len",f==="fraction"?1:c?m:x);var T=s("yref"),k=s("xref"),P=T==="paper",g=k==="paper",A,E,d,_="left";c?(d="middle",_=g?"left":"right",A=g?1.02:1,E=.5):(d=P?"bottom":"top",_="center",A=.5,E=P?1.02:1),M.coerce(a,o,{x:{valType:"number",min:g?-2:0,max:g?3:1,dflt:A}},"x"),M.coerce(a,o,{y:{valType:"number",min:P?-2:0,max:P?3:1,dflt:E}},"y"),s("xanchor",_),s("xpad"),s("yanchor",d),s("ypad"),M.noneOrAll(a,o,["x","y"]),s("outlinecolor"),s("outlinewidth"),s("bordercolor"),s("borderwidth"),s("bgcolor");var L=M.coerce(a,o,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:c?["outside","inside","outside top","inside top","outside bottom","inside bottom"]:["outside","inside","outside left","inside left","outside right","inside right"]}},"ticklabelposition");s("ticklabeloverflow",L.indexOf("inside")!==-1?"hide past domain":"hide past div"),r(a,o,s,"linear");var b=n.font,D={noAutotickangles:!0,noTicklabelshift:!0,noTicklabelstandoff:!0,outerTicks:!1,font:b};L.indexOf("inside")!==-1&&(D.bgColor="black"),S(a,o,s,"linear",D),w(a,o,s,"linear",D),i(a,o,s,"linear",D),s("title.text",n._dfltTitle.colorbar);var B=o.showticklabels?o.tickfont:b,I=M.extendFlat({},b,{family:B.family,size:M.bigFont(B.size)});M.coerceFont(s,"title.font",I),s("title.side",c?"top":"right")}},5881:function(nt,W,e){var M=e(45568),C=e(65657),r=e(44122),i=e(33626),w=e(29714),S=e(14751),h=e(34809),l=h.strTranslate,t=e(93049).extendFlat,n=e(27983),o=e(62203),a=e(78766),s=e(17240),u=e(30635),x=e(65477).flipScale,m=e(97655),y=e(40957),c=e(25829),p=e(4530),f=p.LINE_SPACING,T=p.FROM_TL,k=p.FROM_BR,P=e(34554).cn;function g(b){var D=b._fullLayout,B=D._infolayer.selectAll("g."+P.colorbar).data(A(b),function(I){return I._id});B.enter().append("g").attr("class",function(I){return I._id}).classed(P.colorbar,!0),B.each(function(I){var V=M.select(this);h.ensureSingle(V,"rect",P.cbbg),h.ensureSingle(V,"g",P.cbfills),h.ensureSingle(V,"g",P.cblines),h.ensureSingle(V,"g",P.cbaxis,function(F){F.classed(P.crisp,!0)}),h.ensureSingle(V,"g",P.cbtitleunshift,function(F){F.append("g").classed(P.cbtitle,!0)}),h.ensureSingle(V,"rect",P.cboutline);var N=E(V,I,b);N&&N.then&&(b._promises||[]).push(N),b._context.edits.colorbarPosition&&d(V,I,b)}),B.exit().each(function(I){r.autoMargin(b,I._id)}).remove(),B.order()}function A(b){var D=b._fullLayout,B=b.calcdata,I=[],V,N,F,U;function G(et){return t(et,{_fillcolor:null,_line:{color:null,width:null,dash:null},_levels:{start:null,end:null,size:null},_filllevels:null,_fillgradient:null,_zrange:null})}function Y(){typeof U.calc=="function"?U.calc(b,F,V):(V._fillgradient=N.reversescale?x(N.colorscale):N.colorscale,V._zrange=[N[U.min],N[U.max]])}for(var Q=0;Q<B.length;Q++){var ft=B[Q];if(F=ft[0].trace,!!F._module){var ut=F._module.colorbar;if(F.visible===!0&&ut)for(var lt=Array.isArray(ut),K=lt?ut:[ut],$=0;$<K.length;$++){U=K[$];var H=U.container;N=H?F[H]:F,N&&N.showscale&&(V=G(N.colorbar),V._id="cb"+F.uid+(lt&&H?"-"+H:""),V._traceIndex=F.index,V._propPrefix=(H?H+".":"")+"colorbar.",V._meta=F._meta,Y(),I.push(V))}}}for(var at in D._colorAxes)if(N=D[at],N.showscale){var ct=D._colorAxes[at];V=G(N.colorbar),V._id="cb"+at,V._propPrefix=at+".colorbar.",V._meta=D._meta,U={min:"cmin",max:"cmax"},ct[0]!=="heatmap"&&(F=ct[1],U.calc=F._module.colorbar.calc),Y(),I.push(V)}return I}function E(b,D,B){var I=D.orientation==="v",V=D.len,N=D.lenmode,F=D.thickness,U=D.thicknessmode,G=D.outlinewidth,Y=D.borderwidth,Q=D.bgcolor,ft=D.xanchor,ut=D.yanchor,lt=D.xpad,K=D.ypad,$=D.x,H=I?D.y:1-D.y,at=D.yref==="paper",ct=D.xref==="paper",et=B._fullLayout,Z=et._size,ot=D._fillcolor,st=D._line,dt=D.title,xt=dt.side,At=D._zrange||M.extent((typeof ot=="function"?ot:st.color).domain()),St=typeof st.color=="function"?st.color:function(){return st.color},Nt=typeof ot=="function"?ot:function(){return ot},Wt=D._levels,Vt=_(B,D,At),jt=Vt.fill,Dt=Vt.line,kt=Math.round(F*(U==="fraction"?I?Z.w:Z.h:1)),Bt=kt/(I?Z.w:Z.h),Ot=Math.round(V*(N==="fraction"?I?Z.h:Z.w:1)),Ht=Ot/(I?Z.h:Z.w),ye=ct?Z.w:B._fullLayout.width,Qt=at?Z.h:B._fullLayout.height,_e=Math.round(I?$*ye+lt:H*Qt+K),ie={center:.5,right:1}[ft]||0,Ae={top:1,middle:.5}[ut]||0,Pe=I?$-ie*Bt:H-Ae*Bt,Oe=I?H-Ae*Ht:$-ie*Ht,je=Math.round(I?Qt*(1-Oe):ye*Oe);D._lenFrac=Ht,D._thickFrac=Bt,D._uFrac=Pe,D._vFrac=Oe;var Le=D._axis=L(B,D,At);Le.position=Bt+(I?$+lt/Z.w:H+K/Z.h);var Ie=["top","bottom"].indexOf(xt)!==-1;if(I&&Ie&&(Le.title.side=xt,Le.titlex=$+lt/Z.w,Le.titley=Oe+(dt.side==="top"?Ht-K/Z.h:K/Z.h)),!I&&!Ie&&(Le.title.side=xt,Le.titley=H+K/Z.h,Le.titlex=Oe+lt/Z.w),st.color&&D.tickmode==="auto"){Le.tickmode="linear",Le.tick0=Wt.start;var Ut=Wt.size,ee=h.constrain(Ot/50,4,15)+1,Kt=(At[1]-At[0])/((D.nticks||ee)*Ut);if(Kt>1){var ne=Math.pow(10,Math.floor(Math.log(Kt)/Math.LN10));Ut*=ne*h.roundUp(Kt/ne,[2,5,10]),(Math.abs(Wt.start)/Wt.size+1e-6)%1<2e-6&&(Le.tick0=0)}Le.dtick=Ut}Le.domain=I?[Oe+K/Z.h,Oe+Ht-K/Z.h]:[Oe+lt/Z.w,Oe+Ht-lt/Z.w],Le.setScale(),b.attr("transform",l(Math.round(Z.l),Math.round(Z.t)));var zt=b.select("."+P.cbtitleunshift).attr("transform",l(-Math.round(Z.l),-Math.round(Z.t))),qt=Le.ticklabelposition,Zt=Le.title.font.size,ae=b.select("."+P.cbaxis),vt,Mt=0,Lt=0;function $t(Ve,le){var pe={propContainer:Le,propName:D._propPrefix+"title",traceIndex:D._traceIndex,_meta:D._meta,placeholder:et._dfltTitle.colorbar,containerGroup:b.select("."+P.cbtitle)},Te=Ve.charAt(0)==="h"?Ve.substr(1):"h"+Ve;b.selectAll("."+Te+",."+Te+"-math-group").remove(),s.draw(B,Ve,t(pe,le||{}))}function ge(){if(I&&Ie||!I&&!Ie){var Ve,le;xt==="top"&&(Ve=lt+Z.l+ye*$,le=K+Z.t+Qt*(1-Oe-Ht)+3+Zt*.75),xt==="bottom"&&(Ve=lt+Z.l+ye*$,le=K+Z.t+Qt*(1-Oe)-3-Zt*.25),xt==="right"&&(le=K+Z.t+Qt*H+3+Zt*.75,Ve=lt+Z.l+ye*Oe),$t(Le._id+"title",{attributes:{x:Ve,y:le,"text-anchor":I?"start":"middle"}})}}function de(){if(I&&!Ie||!I&&Ie){var Ve=Le.position||0,le=Le._offset+Le._length/2,pe,Te;if(xt==="right")Te=le,pe=Z.l+ye*Ve+10+Zt*(Le.showticklabels?1:.5);else if(pe=le,xt==="bottom"&&(Te=Z.t+Qt*Ve+10+(qt.indexOf("inside")===-1?Le.tickfont.size:0)+(Le.ticks!=="intside"&&D.ticklen||0)),xt==="top"){var Yt=dt.text.split("<br>").length;Te=Z.t+Qt*Ve+10-kt-f*Zt*Yt}$t((I?"h":"v")+Le._id+"title",{avoid:{selection:M.select(B).selectAll("g."+Le._id+"tick"),side:xt,offsetTop:I?0:Z.t,offsetLeft:I?Z.l:0,maxShift:I?et.width:et.height},attributes:{x:pe,y:Te,"text-anchor":"middle"},transform:{rotate:I?-90:0,offset:0}})}}function sr(){if(!I&&!Ie||I&&Ie){var Ve=b.select("."+P.cbtitle),le=Ve.select("text"),pe=[-G/2,G/2],Te=Ve.select(".h"+Le._id+"title-math-group").node(),Yt=15.6;le.node()&&(Yt=parseInt(le.node().style.fontSize,10)*f);var Ee;if(Te?(Ee=o.bBox(Te),Lt=Ee.width,Mt=Ee.height,Mt>Yt&&(pe[1]-=(Mt-Yt)/2)):le.node()&&!le.classed(P.jsPlaceholder)&&(Ee=o.bBox(le.node()),Lt=Ee.width,Mt=Ee.height),I){if(Mt){if(Mt+=5,xt==="top")Le.domain[1]-=Mt/Z.h,pe[1]*=-1;else{Le.domain[0]+=Mt/Z.h;var Ne=u.lineCount(le);pe[1]+=(1-Ne)*Yt}Ve.attr("transform",l(pe[0],pe[1])),Le.setScale()}}else Lt&&(xt==="right"&&(Le.domain[0]+=(Lt+Zt/2)/Z.w),Ve.attr("transform",l(pe[0],pe[1])),Le.setScale())}b.selectAll("."+P.cbfills+",."+P.cblines).attr("transform",I?l(0,Math.round(Z.h*(1-Le.domain[1]))):l(Math.round(Z.w*Le.domain[0]),0)),ae.attr("transform",I?l(0,Math.round(-Z.t)):l(Math.round(-Z.l),0));var ar=b.select("."+P.cbfills).selectAll("rect."+P.cbfill).attr("style","").data(jt);ar.enter().append("rect").classed(P.cbfill,!0).attr("style",""),ar.exit().remove();var Ye=At.map(Le.c2p).map(Math.round).sort(function(Ze,nr){return Ze-nr});ar.each(function(Ze,nr){var Ke=[nr===0?At[0]:(jt[nr]+jt[nr-1])/2,nr===jt.length-1?At[1]:(jt[nr]+jt[nr+1])/2].map(Le.c2p).map(Math.round);I&&(Ke[1]=h.constrain(Ke[1]+(Ke[1]>Ke[0])?1:-1,Ye[0],Ye[1]));var er=M.select(this).attr(I?"x":"y",_e).attr(I?"y":"x",M.min(Ke)).attr(I?"width":"height",Math.max(kt,2)).attr(I?"height":"width",Math.max(M.max(Ke)-M.min(Ke),2));if(D._fillgradient)o.gradient(er,B,D._id,I?"vertical":"horizontalreversed",D._fillgradient,"fill");else{var xr=Nt(Ze).replace("e-","");er.attr("fill",C(xr).toHexString())}});var Jt=b.select("."+P.cblines).selectAll("path."+P.cbline).data(st.color&&st.width?Dt:[]);Jt.enter().append("path").classed(P.cbline,!0),Jt.exit().remove(),Jt.each(function(Ze){var nr=_e,Ke=Math.round(Le.c2p(Ze))+st.width/2%1;M.select(this).attr("d","M"+(I?nr+","+Ke:Ke+","+nr)+(I?"h":"v")+kt).call(o.lineGroupStyle,st.width,St(Ze),st.dash)}),ae.selectAll("g."+Le._id+"tick,path").remove();var ue=_e+kt+(G||0)/2-(D.ticks==="outside"?1:0),Se=w.calcTicks(Le),De=w.getTickSigns(Le)[2];return w.drawTicks(B,Le,{vals:Le.ticks==="inside"?w.clipEnds(Le,Se):Se,layer:ae,path:w.makeTickPath(Le,ue,De),transFn:w.makeTransTickFn(Le)}),w.drawLabels(B,Le,{vals:Se,layer:ae,transFn:w.makeTransTickLabelFn(Le),labelFns:w.makeLabelFns(Le,ue)})}function mr(){var Ve,le=kt+G/2;qt.indexOf("inside")===-1&&(Ve=o.bBox(ae.node()),le+=I?Ve.width:Ve.height),vt=zt.select("text");var pe=0,Te=I&&xt==="top",Yt=!I&&xt==="right",Ee=0;if(vt.node()&&!vt.classed(P.jsPlaceholder)){var Ne,ar=zt.select(".h"+Le._id+"title-math-group").node();ar&&(I&&Ie||!I&&!Ie)?(Ve=o.bBox(ar),pe=Ve.width,Ne=Ve.height):(Ve=o.bBox(zt.node()),pe=Ve.right-Z.l-(I?_e:je),Ne=Ve.bottom-Z.t-(I?je:_e),!I&&xt==="top"&&(le+=Ve.height,Ee=Ve.height)),Yt&&(vt.attr("transform",l(pe/2+Zt/2,0)),pe*=2),le=Math.max(le,I?pe:Ne)}var Ye=(I?lt:K)*2+le+Y+G/2,Jt=0;!I&&dt.text&&ut==="bottom"&&H<=0&&(Jt=Ye/2,Ye+=Jt,Ee+=Jt),et._hColorbarMoveTitle=Jt,et._hColorbarMoveCBTitle=Ee;var ue=Y+G,Se=(I?_e:je)-ue/2-(I?lt:0),De=(I?je:_e)-(I?Ot:K+Ee-Jt);b.select("."+P.cbbg).attr("x",Se).attr("y",De).attr(I?"width":"height",Math.max(Ye-Jt,2)).attr(I?"height":"width",Math.max(Ot+ue,2)).call(a.fill,Q).call(a.stroke,D.bordercolor).style("stroke-width",Y);var Ze=Yt?Math.max(pe-10,0):0;b.selectAll("."+P.cboutline).attr("x",(I?_e:je+lt)+Ze).attr("y",(I?je+K-Ot:_e)+(Te?Mt:0)).attr(I?"width":"height",Math.max(kt,2)).attr(I?"height":"width",Math.max(Ot-(I?2*K+Mt:2*lt+Ze),2)).call(a.stroke,D.outlinecolor).style({fill:"none","stroke-width":G});var nr=I?ie*Ye:0,Ke=I?0:(1-Ae)*Ye-Ee;if(nr=ct?Z.l-nr:-nr,Ke=at?Z.t-Ke:-Ke,b.attr("transform",l(nr,Ke)),!I&&(Y||C(Q).getAlpha()&&!C.equals(et.paper_bgcolor,Q))){var er=ae.selectAll("text"),xr=er[0].length,Sr=b.select("."+P.cbbg).node(),Cr=o.bBox(Sr),Er=o.getTranslate(b),Lr=2;er.each(function(Ar,yr){var dr=0,Rr=xr-1;if(yr===dr||yr===Rr){var Qr=o.bBox(this),Xr=o.getTranslate(this),Dn;if(yr===Rr){var on=Qr.right+Xr.x,Hn=Cr.right+Er.x+je-Y-Lr+$;Dn=Hn-on,Dn>0&&(Dn=0)}else if(yr===dr){var Fn=Qr.left+Xr.x,jr=Cr.left+Er.x+je+Y+Lr;Dn=jr-Fn,Dn<0&&(Dn=0)}Dn&&(xr<3?this.setAttribute("transform","translate("+Dn+",0) "+this.getAttribute("transform")):this.setAttribute("visibility","hidden"))}})}var Ur={},zr=T[ft],te=k[ft],he=T[ut],Je=k[ut],br=Ye-kt;I?(N==="pixels"?(Ur.y=H,Ur.t=Ot*he,Ur.b=Ot*Je):(Ur.t=Ur.b=0,Ur.yt=H+V*he,Ur.yb=H-V*Je),U==="pixels"?(Ur.x=$,Ur.l=Ye*zr,Ur.r=Ye*te):(Ur.l=br*zr,Ur.r=br*te,Ur.xl=$-F*zr,Ur.xr=$+F*te)):(N==="pixels"?(Ur.x=$,Ur.l=Ot*zr,Ur.r=Ot*te):(Ur.l=Ur.r=0,Ur.xl=$+V*zr,Ur.xr=$-V*te),U==="pixels"?(Ur.y=1-H,Ur.t=Ye*he,Ur.b=Ye*Je):(Ur.t=br*he,Ur.b=br*Je,Ur.yt=H-F*he,Ur.yb=H+F*Je));var pr=D.y<.5?"b":"t",We=D.x<.5?"l":"r";B._fullLayout._reservedMargin[D._id]={};var hr={r:et.width-Se-nr,l:Se+Ur.r,b:et.height-De-Ke,t:De+Ur.b};ct&&at?r.autoMargin(B,D._id,Ur):ct?B._fullLayout._reservedMargin[D._id][pr]=hr[pr]:at||I?B._fullLayout._reservedMargin[D._id][We]=hr[We]:B._fullLayout._reservedMargin[D._id][pr]=hr[pr]}return h.syncOrAsync([r.previousPromises,ge,sr,de,r.previousPromises,mr],B)}function d(b,D,B){var I=D.orientation==="v",V=B._fullLayout,N=V._size,F,U,G;S.init({element:b.node(),gd:B,prepFn:function(){F=b.attr("transform"),n(b)},moveFn:function(Y,Q){b.attr("transform",F+l(Y,Q)),U=S.align((I?D._uFrac:D._vFrac)+Y/N.w,I?D._thickFrac:D._lenFrac,0,1,D.xanchor),G=S.align((I?D._vFrac:1-D._uFrac)-Q/N.h,I?D._lenFrac:D._thickFrac,0,1,D.yanchor);var ft=S.getCursor(U,G,D.xanchor,D.yanchor);n(b,ft)},doneFn:function(){if(n(b),U!==void 0&&G!==void 0){var Y={};Y[D._propPrefix+"x"]=U,Y[D._propPrefix+"y"]=G,D._traceIndex!==void 0?i.call("_guiRestyle",B,Y,D._traceIndex):i.call("_guiRelayout",B,Y)}}})}function _(b,D,B){var I=D._levels,V=[],N=[],F,U,G=I.end+I.size/100,Y=I.size,Q=1.001*B[0]-.001*B[1],ft=1.001*B[1]-.001*B[0];for(U=0;U<1e5&&(F=I.start+U*Y,!(Y>0?F>=G:F<=G));U++)F>Q&&F<ft&&V.push(F);if(D._fillgradient)N=[0];else if(typeof D._fillcolor=="function"){var ut=D._filllevels;if(ut)for(G=ut.end+ut.size/100,Y=ut.size,U=0;U<1e5&&(F=ut.start+U*Y,!(Y>0?F>=G:F<=G));U++)F>B[0]&&F<B[1]&&N.push(F);else N=V.map(function(lt){return lt-I.size/2}),N.push(N[N.length-1]+I.size)}else D._fillcolor&&typeof D._fillcolor=="string"&&(N=[0]);return I.size<0&&(V.reverse(),N.reverse()),{line:V,fill:N}}function L(b,D,B){var I=b._fullLayout,V=D.orientation==="v",N={type:"linear",range:B,tickmode:D.tickmode,nticks:D.nticks,tick0:D.tick0,dtick:D.dtick,tickvals:D.tickvals,ticktext:D.ticktext,ticks:D.ticks,ticklen:D.ticklen,tickwidth:D.tickwidth,tickcolor:D.tickcolor,showticklabels:D.showticklabels,labelalias:D.labelalias,ticklabelposition:D.ticklabelposition,ticklabeloverflow:D.ticklabeloverflow,ticklabelstep:D.ticklabelstep,tickfont:D.tickfont,tickangle:D.tickangle,tickformat:D.tickformat,exponentformat:D.exponentformat,minexponent:D.minexponent,separatethousands:D.separatethousands,showexponent:D.showexponent,showtickprefix:D.showtickprefix,tickprefix:D.tickprefix,showticksuffix:D.showticksuffix,ticksuffix:D.ticksuffix,title:D.title,showline:!0,anchor:"free",side:V?"right":"bottom",position:1},F=V?"y":"x",U={type:"linear",_id:F+D._id},G={letter:F,font:I.font,noAutotickangles:F==="y",noHover:!0,noTickson:!0,noTicklabelmode:!0,noInsideRange:!0,calendar:I.calendar};function Y(Q,ft){return h.coerce(N,U,c,Q,ft)}return m(N,U,Y,G,I),y(N,U,Y,G),U}nt.exports={draw:g}},91362:function(nt,W,e){var M=e(34809);nt.exports=function(C){return M.isPlainObject(C.colorbar)}},96919:function(nt,W,e){nt.exports={moduleType:"component",name:"colorbar",attributes:e(25158),supplyDefaults:e(42097),draw:e(5881).draw,hasColorbar:e(91362)}},87163:function(nt,W,e){var M=e(25158),C=e(90694).counter,r=e(62994),i=e(19017).scales;r(i),nt.exports=function(w,S){w=w||"",S=S||{};var h=S.cLetter||"c";"onlyIfNumerical"in S&&S.onlyIfNumerical;var l="noScale"in S?S.noScale:w==="marker.line",t="showScaleDflt"in S?S.showScaleDflt:h==="z",n=typeof S.colorscaleDflt=="string"?i[S.colorscaleDflt]:null,o=S.editTypeOverride||"",a;"colorAttr"in S?(a=S.colorAttr,S.colorAttr):a={z:"z",c:"color"}[h];var s=h+"auto",u=h+"min",x=h+"max",m=h+"mid",y={};y[u]=y[x]=void 0;var c={};c[s]=!1;var p={};return a==="color"&&(p.color={valType:"color",arrayOk:!0,editType:o||"style"},S.anim&&(p.color.anim=!0)),p[s]={valType:"boolean",dflt:!0,editType:"calc",impliedEdits:y},p[u]={valType:"number",dflt:null,editType:o||"plot",impliedEdits:c},p[x]={valType:"number",dflt:null,editType:o||"plot",impliedEdits:c},p[m]={valType:"number",dflt:null,editType:"calc",impliedEdits:y},p.colorscale={valType:"colorscale",editType:"calc",dflt:n,impliedEdits:{autocolorscale:!1}},p.autocolorscale={valType:"boolean",dflt:S.autoColorDflt!==!1,editType:"calc",impliedEdits:{colorscale:void 0}},p.reversescale={valType:"boolean",dflt:!1,editType:"plot"},l||(p.showscale={valType:"boolean",dflt:t,editType:"calc"},p.colorbar=M),S.noColorAxis||(p.coloraxis={valType:"subplotid",regex:C("coloraxis"),dflt:null,editType:"calc"}),p}},28379:function(nt,W,e){var M=e(10721),C=e(34809),r=e(65477).extractOpts;nt.exports=function(i,w,S){var h=i._fullLayout,l=S.vals,t=S.containerStr,n=t?C.nestedProperty(w,t).get():w,o=r(n),a=o.auto!==!1,s=o.min,u=o.max,x=o.mid,m=function(){return C.aggNums(Math.min,null,l)},y=function(){return C.aggNums(Math.max,null,l)};if(s===void 0?s=m():a&&(n._colorAx&&M(s)?s=Math.min(s,m()):s=m()),u===void 0?u=y():a&&(n._colorAx&&M(u)?u=Math.max(u,y()):u=y()),a&&x!==void 0&&(u-x>x-s?s=x-(u-x):u-x<x-s&&(u=x+(x-s))),s===u&&(s-=.5,u+=.5),o._sync("min",s),o._sync("max",u),o.autocolorscale){var c;s*u<0?c=h.colorscale.diverging:s>=0?c=h.colorscale.sequential:c=h.colorscale.sequentialminus,o._sync("colorscale",c)}}},67623:function(nt,W,e){var M=e(34809),C=e(65477).hasColorscale,r=e(65477).extractOpts;nt.exports=function(i,w){function S(s,u){var x=s["_"+u];x!==void 0&&(s[u]=x)}function h(s,u){var x=u.container?M.nestedProperty(s,u.container).get():s;if(x)if(x.coloraxis)x._colorAx=w[x.coloraxis];else{var m=r(x),y=m.auto;(y||m.min===void 0)&&S(x,u.min),(y||m.max===void 0)&&S(x,u.max),m.autocolorscale&&S(x,"colorscale")}}for(var l=0;l<i.length;l++){var t=i[l],n=t._module.colorbar;if(n)if(Array.isArray(n))for(var o=0;o<n.length;o++)h(t,n[o]);else h(t,n);C(t,"marker.line")&&h(t,{container:"marker.line",min:"cmin",max:"cmax"})}for(var a in w._colorAxes)h(w[a],{min:"cmin",max:"cmax"})}},39356:function(nt,W,e){var M=e(10721),C=e(34809),r=e(91362),i=e(42097),w=e(19017).isValid,S=e(33626).traceIs;function h(l,t){var n=t.slice(0,t.length-1);return t?C.nestedProperty(l,n).get()||{}:l}nt.exports=function l(t,n,o,a,s){var u=s.prefix,x=s.cLetter,m="_module"in n,y=h(t,u),c=h(n,u),p=h(n._template||{},u)||{},f=function(){return delete t.coloraxis,delete n.coloraxis,l(t,n,o,a,s)};if(m){var T=o._colorAxes||{},k=a(u+"coloraxis");if(k){var P=S(n,"contour")&&C.nestedProperty(n,"contours.coloring").get()||"heatmap",g=T[k];g?(g[2].push(f),g[0]!==P&&(g[0]=!1,C.warn(["Ignoring coloraxis:",k,"setting","as it is linked to incompatible colorscales."].join(" ")))):T[k]=[P,n,[f]];return}}var A=y[x+"min"],E=y[x+"max"],d=M(A)&&M(E)&&A<E,_=a(u+x+"auto",!d);_?a(u+x+"mid"):(a(u+x+"min"),a(u+x+"max"));var L=y.colorscale,b=p.colorscale,D;if(L!==void 0&&(D=!w(L)),b!==void 0&&(D=!w(b)),a(u+"autocolorscale",D),a(u+"colorscale"),a(u+"reversescale"),u!=="marker.line."){var B;u&&m&&(B=r(y));var I=a(u+"showscale",B);I&&(u&&p&&(c._template=p),i(y,c,o))}}},65477:function(nt,W,e){var M=e(45568),C=e(65657),r=e(10721),i=e(34809),w=e(78766),S=e(19017).isValid;function h(m,y,c){var p=y?i.nestedProperty(m,y).get()||{}:m,f=p[c||"color"];f&&f._inputArray&&(f=f._inputArray);var T=!1;if(i.isArrayOrTypedArray(f)){for(var k=0;k<f.length;k++)if(r(f[k])){T=!0;break}}return i.isPlainObject(p)&&(T||p.showscale===!0||r(p.cmin)&&r(p.cmax)||S(p.colorscale)||i.isPlainObject(p.colorbar))}var l=["showscale","autocolorscale","colorscale","reversescale","colorbar"],t=["min","max","mid","auto"];function n(m){var y=m._colorAx,c=y||m,p={},f,T,k;for(T=0;T<l.length;T++)k=l[T],p[k]=c[k];if(y)for(f="c",T=0;T<t.length;T++)k=t[T],p[k]=c["c"+k];else{var P;for(T=0;T<t.length;T++){if(k=t[T],P="c"+k,P in c){p[k]=c[P];continue}P="z"+k,P in c&&(p[k]=c[P])}f=P.charAt(0)}return p._sync=function(g,A){var E=t.indexOf(g)!==-1?f+g:g;c[E]=c["_"+E]=A},p}function o(m){for(var y=n(m),c=y.min,p=y.max,f=y.reversescale?a(y.colorscale):y.colorscale,T=f.length,k=new Array(T),P=new Array(T),g=0;g<T;g++){var A=f[g];k[g]=c+A[0]*(p-c),P[g]=A[1]}return{domain:k,range:P}}function a(m){for(var y=m.length,c=new Array(y),p=y-1,f=0;p>=0;p--,f++){var T=m[p];c[f]=[1-T[0],T[1]]}return c}function s(m,y){y=y||{};for(var c=m.domain,p=m.range,f=p.length,T=new Array(f),k=0;k<f;k++){var P=C(p[k]).toRgb();T[k]=[P.r,P.g,P.b,P.a]}var g=M.scale.linear().domain(c).range(T).clamp(!0),A=y.noNumericCheck,E=y.returnArray,d;return A&&E?d=g:A?d=function(_){return x(g(_))}:E?d=function(_){return r(_)?g(_):C(_).isValid()?_:w.defaultLine}:d=function(_){return r(_)?x(g(_)):C(_).isValid()?_:w.defaultLine},d.domain=g.domain,d.range=function(){return p},d}function u(m,y){return s(o(m),y)}function x(m){var y={r:m[0],g:m[1],b:m[2],a:m[3]};return C(y).toRgbString()}nt.exports={hasColorscale:h,extractOpts:n,extractScale:o,flipScale:a,makeColorScaleFunc:s,makeColorScaleFuncFromTrace:u}},88856:function(nt,W,e){var M=e(19017),C=e(65477);nt.exports={moduleType:"component",name:"colorscale",attributes:e(87163),layoutAttributes:e(56978),supplyLayoutDefaults:e(64613),handleDefaults:e(39356),crossTraceDefaults:e(67623),calc:e(28379),scales:M.scales,defaultScale:M.defaultScale,getScale:M.get,isValidScale:M.isValid,hasColorscale:C.hasColorscale,extractOpts:C.extractOpts,extractScale:C.extractScale,flipScale:C.flipScale,makeColorScaleFunc:C.makeColorScaleFunc,makeColorScaleFuncFromTrace:C.makeColorScaleFuncFromTrace}},56978:function(nt,W,e){var M=e(93049).extendFlat,C=e(87163),r=e(19017).scales;nt.exports={editType:"calc",colorscale:{editType:"calc",sequential:{valType:"colorscale",dflt:r.Reds,editType:"calc"},sequentialminus:{valType:"colorscale",dflt:r.Blues,editType:"calc"},diverging:{valType:"colorscale",dflt:r.RdBu,editType:"calc"}},coloraxis:M({_isSubplotObj:!0,editType:"calc"},C("",{colorAttr:"corresponding trace color array(s)",noColorAxis:!0,showScaleDflt:!0}))}},64613:function(nt,W,e){var M=e(34809),C=e(78032),r=e(56978),i=e(39356);nt.exports=function(w,S){function h(x,m){return M.coerce(w,S,r,x,m)}h("colorscale.sequential"),h("colorscale.sequentialminus"),h("colorscale.diverging");var l=S._colorAxes,t,n;function o(x,m){return M.coerce(t,n,r.coloraxis,x,m)}for(var a in l){var s=l[a];if(s[0])t=w[a]||{},n=C.newContainer(S,a,"coloraxis"),n._name=a,i(t,n,S,o,{prefix:"",cLetter:"c"});else{for(var u=0;u<s[2].length;u++)s[2][u]();delete S._colorAxes[a]}}}},19017:function(nt,W,e){var M=e(65657),C={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)"]]},r=C.RdBu;function i(h,l){if(l||(l=r),!h)return l;function t(){try{h=C[h]||JSON.parse(h)}catch{h=l}}return typeof h=="string"&&(t(),typeof h=="string"&&t()),w(h)?h:l}function w(h){var l=0;if(!Array.isArray(h)||h.length<2||!h[0]||!h[h.length-1]||+h[0][0]!=0||+h[h.length-1][0]!=1)return!1;for(var t=0;t<h.length;t++){var n=h[t];if(n.length!==2||+n[0]<l||!M(n[1]).isValid())return!1;l=+n[0]}return!0}function S(h){return C[h]!==void 0?!0:w(h)}nt.exports={scales:C,defaultScale:r,get:i,isValid:S}},53770:function(nt){nt.exports=function(W,e,M,C,r){var i=(W-M)/(C-M),w=i+e/(C-M),S=(i+w)/2;return r==="left"||r==="bottom"?i:r==="center"||r==="middle"?S:r==="right"||r==="top"?w:i<.6666666666666666-S?i:w>1.3333333333333333-S?w:S}},4001:function(nt,W,e){var M=e(34809),C=[["sw-resize","s-resize","se-resize"],["w-resize","move","e-resize"],["nw-resize","n-resize","ne-resize"]];nt.exports=function(r,i,w,S){return w==="left"?r=0:w==="center"?r=1:w==="right"?r=2:r=M.constrain(Math.floor(r*3),0,2),S==="bottom"?i=0:S==="middle"?i=1:S==="top"?i=2:i=M.constrain(Math.floor(i*3),0,2),C[i][r]}},70414:function(nt,W){W.selectMode=function(e){return e==="lasso"||e==="select"},W.drawMode=function(e){return e==="drawclosedpath"||e==="drawopenpath"||e==="drawline"||e==="drawrect"||e==="drawcircle"},W.openMode=function(e){return e==="drawline"||e==="drawopenpath"},W.rectMode=function(e){return e==="select"||e==="drawline"||e==="drawrect"||e==="drawcircle"},W.freeMode=function(e){return e==="lasso"||e==="drawclosedpath"||e==="drawopenpath"},W.selectingOrDrawing=function(e){return W.freeMode(e)||W.rectMode(e)}},14751:function(nt,W,e){var M=e(44039),C=e(39784),r=e(74043),i=e(34809).removeElement,w=e(54826),S=nt.exports={};S.align=e(53770),S.getCursor=e(4001);var h=e(60148);S.unhover=h.wrapped,S.unhoverRaw=h.raw,S.init=function(n){var o=n.gd,a=1,s=o._context.doubleClickDelay,u=n.element,x,m,y,c,p,f,T,k;o._mouseDownTime||(o._mouseDownTime=0),u.style.pointerEvents="all",u.onmousedown=A,r?(u._ontouchstart&&u.removeEventListener("touchstart",u._ontouchstart),u._ontouchstart=A,u.addEventListener("touchstart",A,{passive:!1})):u.ontouchstart=A;function P(_,L,b){return Math.abs(_)<b&&(_=0),Math.abs(L)<b&&(L=0),[_,L]}var g=n.clampFn||P;function A(_){o._dragged=!1,o._dragging=!0;var L=t(_);x=L[0],m=L[1],T=_.target,f=_,k=_.buttons===2||_.ctrlKey,typeof _.clientX>"u"&&typeof _.clientY>"u"&&(_.clientX=x,_.clientY=m),y=new Date().getTime(),y-o._mouseDownTime<s?a+=1:(a=1,o._mouseDownTime=y),n.prepFn&&n.prepFn(_,x,m),C&&!k?(p=l(),p.style.cursor=window.getComputedStyle(u).cursor):C||(p=document,c=window.getComputedStyle(document.documentElement).cursor,document.documentElement.style.cursor=window.getComputedStyle(u).cursor),document.addEventListener("mouseup",d),document.addEventListener("touchend",d),n.dragmode!==!1&&(_.preventDefault(),document.addEventListener("mousemove",E),document.addEventListener("touchmove",E,{passive:!1}))}function E(_){_.preventDefault();var L=t(_),b=n.minDrag||w.MINDRAG,D=g(L[0]-x,L[1]-m,b),B=D[0],I=D[1];(B||I)&&(o._dragged=!0,S.unhover(o,_)),o._dragged&&n.moveFn&&!k&&(o._dragdata={element:u,dx:B,dy:I},n.moveFn(B,I))}function d(_){if(delete o._dragdata,n.dragmode!==!1&&(_.preventDefault(),document.removeEventListener("mousemove",E),document.removeEventListener("touchmove",E)),document.removeEventListener("mouseup",d),document.removeEventListener("touchend",d),C?i(p):c&&(p.documentElement.style.cursor=c,c=null),!o._dragging){o._dragged=!1;return}if(o._dragging=!1,new Date().getTime()-o._mouseDownTime>s&&(a=Math.max(a-1,1)),o._dragged)n.doneFn&&n.doneFn();else if(n.clickFn&&n.clickFn(a,f),!k){var L;try{L=new MouseEvent("click",_)}catch{var b=t(_);L=document.createEvent("MouseEvents"),L.initMouseEvent("click",_.bubbles,_.cancelable,_.view,_.detail,_.screenX,_.screenY,b[0],b[1],_.ctrlKey,_.altKey,_.shiftKey,_.metaKey,_.button,_.relatedTarget)}T.dispatchEvent(L)}o._dragging=!1,o._dragged=!1}};function l(){var n=document.createElement("div");n.className="dragcover";var o=n.style;return o.position="fixed",o.left=0,o.right=0,o.top=0,o.bottom=0,o.zIndex=999999999,o.background="none",document.body.appendChild(n),n}S.coverSlip=l;function t(n){return M(n.changedTouches?n.changedTouches[0]:n,document.body)}},60148:function(nt,W,e){var M=e(68596),C=e(64025),r=e(95425).getGraphDiv,i=e(85988),w=nt.exports={};w.wrapped=function(S,h,l){S=r(S),S._fullLayout&&C.clear(S._fullLayout._uid+i.HOVERID),w.raw(S,h,l)},w.raw=function(S,h){var l=S._fullLayout,t=S._hoverdata;h||(h={}),!(h.target&&!S._dragged&&M.triggerHandler(S,"plotly_beforehover",h)===!1)&&(l._hoverlayer.selectAll("g").remove(),l._hoverlayer.selectAll("line").remove(),l._hoverlayer.selectAll("circle").remove(),S._hoverdata=void 0,h.target&&t&&S.emit("plotly_unhover",{event:h,points:t}))}},94850:function(nt,W){W.T={valType:"string",values:["solid","dot","dash","longdash","dashdot","longdashdot"],dflt:"solid",editType:"style"},W.k={shape:{valType:"enumerated",values:["","/","\\","x","-","|","+","."],dflt:"",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"}},62203:function(nt,W,e){var M=e(45568),C=e(34809),r=C.numberFormat,i=e(10721),w=e(65657),S=e(33626),h=e(78766),l=e(88856),t=C.strTranslate,n=e(30635),o=e(62972),a=e(4530),s=a.LINE_SPACING,u=e(20438).DESELECTDIM,x=e(64726),m=e(92527),y=e(36040).appendArrayPointValue,c=nt.exports={};c.font=function(kt,Bt){var Ot=Bt.variant,Ht=Bt.style,ye=Bt.weight,Qt=Bt.color,_e=Bt.size,ie=Bt.family,Ae=Bt.shadow,Pe=Bt.lineposition,Oe=Bt.textcase;ie&&kt.style("font-family",ie),_e+1&&kt.style("font-size",_e+"px"),Qt&&kt.call(h.fill,Qt),ye&&kt.style("font-weight",ye),Ht&&kt.style("font-style",Ht),Ot&&kt.style("font-variant",Ot),Oe&&kt.style("text-transform",p(T(Oe))),Ae&&kt.style("text-shadow",Ae==="auto"?n.makeTextShadow(h.contrast(Qt)):p(Ae)),Pe&&kt.style("text-decoration-line",p(k(Pe)))};function p(kt){return kt==="none"?void 0:kt}var f={normal:"none",lower:"lowercase",upper:"uppercase","word caps":"capitalize"};function T(kt){return f[kt]}function k(kt){return kt.replace("under","underline").replace("over","overline").replace("through","line-through").split("+").join(" ")}c.setPosition=function(kt,Bt,Ot){kt.attr("x",Bt).attr("y",Ot)},c.setSize=function(kt,Bt,Ot){kt.attr("width",Bt).attr("height",Ot)},c.setRect=function(kt,Bt,Ot,Ht,ye){kt.call(c.setPosition,Bt,Ot).call(c.setSize,Ht,ye)},c.translatePoint=function(kt,Bt,Ot,Ht){var ye=Ot.c2p(kt.x),Qt=Ht.c2p(kt.y);if(i(ye)&&i(Qt)&&Bt.node())Bt.node().nodeName==="text"?Bt.attr("x",ye).attr("y",Qt):Bt.attr("transform",t(ye,Qt));else return!1;return!0},c.translatePoints=function(kt,Bt,Ot){kt.each(function(Ht){var ye=M.select(this);c.translatePoint(Ht,ye,Bt,Ot)})},c.hideOutsideRangePoint=function(kt,Bt,Ot,Ht,ye,Qt){Bt.attr("display",Ot.isPtWithinRange(kt,ye)&&Ht.isPtWithinRange(kt,Qt)?null:"none")},c.hideOutsideRangePoints=function(kt,Bt){if(Bt._hasClipOnAxisFalse){var Ot=Bt.xaxis,Ht=Bt.yaxis;kt.each(function(ye){var Qt=ye[0].trace,_e=Qt.xcalendar,ie=Qt.ycalendar,Ae=S.traceIs(Qt,"bar-like")?".bartext":".point,.textpoint";kt.selectAll(Ae).each(function(Pe){c.hideOutsideRangePoint(Pe,M.select(this),Ot,Ht,_e,ie)})})}},c.crispRound=function(kt,Bt,Ot){return!Bt||!i(Bt)?Ot||0:kt._context.staticPlot?Bt:Bt<1?1:Math.round(Bt)},c.singleLineStyle=function(kt,Bt,Ot,Ht,ye){Bt.style("fill","none");var Qt=(((kt||[])[0]||{}).trace||{}).line||{},_e=Ot||Qt.width||0,ie=ye||Qt.dash||"";h.stroke(Bt,Ht||Qt.color),c.dashLine(Bt,ie,_e)},c.lineGroupStyle=function(kt,Bt,Ot,Ht){kt.style("fill","none").each(function(ye){var Qt=(((ye||[])[0]||{}).trace||{}).line||{},_e=Bt||Qt.width||0,ie=Ht||Qt.dash||"";M.select(this).call(h.stroke,Ot||Qt.color).call(c.dashLine,ie,_e)})},c.dashLine=function(kt,Bt,Ot){Ot=+Ot||0,Bt=c.dashStyle(Bt,Ot),kt.style({"stroke-dasharray":Bt,"stroke-width":Ot+"px"})},c.dashStyle=function(kt,Bt){Bt=+Bt||1;var Ot=Math.max(Bt,3);return kt==="solid"?kt="":kt==="dot"?kt=Ot+"px,"+Ot+"px":kt==="dash"?kt=3*Ot+"px,"+3*Ot+"px":kt==="longdash"?kt=5*Ot+"px,"+5*Ot+"px":kt==="dashdot"?kt=3*Ot+"px,"+Ot+"px,"+Ot+"px,"+Ot+"px":kt==="longdashdot"&&(kt=5*Ot+"px,"+2*Ot+"px,"+Ot+"px,"+2*Ot+"px"),kt};function P(kt,Bt,Ot,Ht){var ye=Bt.fillpattern,Qt=Bt.fillgradient,_e=ye&&c.getPatternAttr(ye.shape,0,"");if(_e){var ie=c.getPatternAttr(ye.bgcolor,0,null),Ae=c.getPatternAttr(ye.fgcolor,0,null),Pe=ye.fgopacity,Oe=c.getPatternAttr(ye.size,0,8),je=c.getPatternAttr(ye.solidity,0,.3),Le=Bt.uid;c.pattern(kt,"point",Ot,Le,_e,Oe,je,void 0,ye.fillmode,ie,Ae,Pe)}else if(Qt&&Qt.type!=="none"){var Ie=Qt.type,Ut="scatterfill-"+Bt.uid;if(Ht&&(Ut="legendfill-"+Bt.uid),!Ht&&(Qt.start!==void 0||Qt.stop!==void 0)){var ee,Kt;Ie==="horizontal"?(ee={x:Qt.start,y:0},Kt={x:Qt.stop,y:0}):Ie==="vertical"&&(ee={x:0,y:Qt.start},Kt={x:0,y:Qt.stop}),ee.x=Bt._xA.c2p(ee.x===void 0?Bt._extremes.x.min[0].val:ee.x,!0),ee.y=Bt._yA.c2p(ee.y===void 0?Bt._extremes.y.min[0].val:ee.y,!0),Kt.x=Bt._xA.c2p(Kt.x===void 0?Bt._extremes.x.max[0].val:Kt.x,!0),Kt.y=Bt._yA.c2p(Kt.y===void 0?Bt._extremes.y.max[0].val:Kt.y,!0),kt.call(b,Ot,Ut,"linear",Qt.colorscale,"fill",ee,Kt,!0,!1)}else Ie==="horizontal"&&(Ie=Ie+"reversed"),kt.call(c.gradient,Ot,Ut,Ie,Qt.colorscale,"fill")}else Bt.fillcolor&&kt.call(h.fill,Bt.fillcolor)}c.singleFillStyle=function(kt,Bt){var Ot=M.select(kt.node()),Ht=Ot.data(),ye=((Ht[0]||[])[0]||{}).trace||{};P(kt,ye,Bt,!1)},c.fillGroupStyle=function(kt,Bt,Ot){kt.style("stroke-width",0).each(function(Ht){var ye=M.select(this);Ht[0].trace&&P(ye,Ht[0].trace,Bt,Ot)})};var g=e(38882);c.symbolNames=[],c.symbolFuncs=[],c.symbolBackOffs=[],c.symbolNeedLines={},c.symbolNoDot={},c.symbolNoFill={},c.symbolList=[],Object.keys(g).forEach(function(kt){var Bt=g[kt],Ot=Bt.n;c.symbolList.push(Ot,String(Ot),kt,Ot+100,String(Ot+100),kt+"-open"),c.symbolNames[Ot]=kt,c.symbolFuncs[Ot]=Bt.f,c.symbolBackOffs[Ot]=Bt.backoff||0,Bt.needLine&&(c.symbolNeedLines[Ot]=!0),Bt.noDot?c.symbolNoDot[Ot]=!0:c.symbolList.push(Ot+200,String(Ot+200),kt+"-dot",Ot+300,String(Ot+300),kt+"-open-dot"),Bt.noFill&&(c.symbolNoFill[Ot]=!0)});var A=c.symbolNames.length,E="M0,0.5L0.5,0L0,-0.5L-0.5,0Z";c.symbolNumber=function(kt){if(i(kt))kt=+kt;else if(typeof kt=="string"){var Bt=0;kt.indexOf("-open")>0&&(Bt=100,kt=kt.replace("-open","")),kt.indexOf("-dot")>0&&(Bt+=200,kt=kt.replace("-dot","")),kt=c.symbolNames.indexOf(kt),kt>=0&&(kt+=Bt)}return kt%100>=A||kt>=400?0:Math.floor(Math.max(kt,0))};function d(kt,Bt,Ot,Ht){var ye=kt%100;return c.symbolFuncs[ye](Bt,Ot,Ht)+(kt>=200?E:"")}var _=r("~f"),L={radial:{type:"radial"},radialreversed:{type:"radial",reversed:!0},horizontal:{type:"linear",start:{x:1,y:0},stop:{x:0,y:0}},horizontalreversed:{type:"linear",start:{x:1,y:0},stop:{x:0,y:0},reversed:!0},vertical:{type:"linear",start:{x:0,y:1},stop:{x:0,y:0}},verticalreversed:{type:"linear",start:{x:0,y:1},stop:{x:0,y:0},reversed:!0}};c.gradient=function(kt,Bt,Ot,Ht,ye,Qt){var _e=L[Ht];return b(kt,Bt,Ot,_e.type,ye,Qt,_e.start,_e.stop,!1,_e.reversed)};function b(kt,Bt,Ot,Ht,ye,Qt,_e,ie,Ae,Pe){var Oe=ye.length,je;Ht==="linear"?je={node:"linearGradient",attrs:{x1:_e.x,y1:_e.y,x2:ie.x,y2:ie.y,gradientUnits:Ae?"userSpaceOnUse":"objectBoundingBox"},reversed:Pe}:Ht==="radial"&&(je={node:"radialGradient",reversed:Pe});for(var Le=new Array(Oe),Ie=0;Ie<Oe;Ie++)je.reversed?Le[Oe-1-Ie]=[_((1-ye[Ie][0])*100),ye[Ie][1]]:Le[Ie]=[_(ye[Ie][0]*100),ye[Ie][1]];var Ut=Bt._fullLayout,ee="g"+Ut._uid+"-"+Ot,Kt=Ut._defs.select(".gradients").selectAll("#"+ee).data([Ht+Le.join(";")],C.identity);Kt.exit().remove(),Kt.enter().append(je.node).each(function(){var ne=M.select(this);je.attrs&&ne.attr(je.attrs),ne.attr("id",ee);var zt=ne.selectAll("stop").data(Le);zt.exit().remove(),zt.enter().append("stop"),zt.each(function(qt){var Zt=w(qt[1]);M.select(this).attr({offset:qt[0]+"%","stop-color":h.tinyRGB(Zt),"stop-opacity":Zt.getAlpha()})})}),kt.style(Qt,at(ee,Bt)).style(Qt+"-opacity",null),kt.classed("gradient_filled",!0)}c.pattern=function(kt,Bt,Ot,Ht,ye,Qt,_e,ie,Ae,Pe,Oe,je){var Le=Bt==="legend";ie&&(Ae==="overlay"?(Pe=ie,Oe=h.contrast(Pe)):(Pe=void 0,Oe=ie));var Ie=Ot._fullLayout,Ut="p"+Ie._uid+"-"+Ht,ee,Kt,ne=function(mr,Ve,le,pe,Te){return pe+(Te-pe)*(mr-Ve)/(le-Ve)},zt,qt,Zt,ae,vt={},Mt=w(Oe),Lt=h.tinyRGB(Mt),$t=Mt.getAlpha(),ge=je*$t;switch(ye){case"/":ee=Qt*Math.sqrt(2),Kt=Qt*Math.sqrt(2),zt="M-"+ee/4+","+Kt/4+"l"+ee/2+",-"+Kt/2+"M0,"+Kt+"L"+ee+",0M"+ee/4*3+","+Kt/4*5+"l"+ee/2+",-"+Kt/2,qt=_e*Qt,ae="path",vt={d:zt,opacity:ge,stroke:Lt,"stroke-width":qt+"px"};break;case"\\":ee=Qt*Math.sqrt(2),Kt=Qt*Math.sqrt(2),zt="M"+ee/4*3+",-"+Kt/4+"l"+ee/2+","+Kt/2+"M0,0L"+ee+","+Kt+"M-"+ee/4+","+Kt/4*3+"l"+ee/2+","+Kt/2,qt=_e*Qt,ae="path",vt={d:zt,opacity:ge,stroke:Lt,"stroke-width":qt+"px"};break;case"x":ee=Qt*Math.sqrt(2),Kt=Qt*Math.sqrt(2),zt="M-"+ee/4+","+Kt/4+"l"+ee/2+",-"+Kt/2+"M0,"+Kt+"L"+ee+",0M"+ee/4*3+","+Kt/4*5+"l"+ee/2+",-"+Kt/2+"M"+ee/4*3+",-"+Kt/4+"l"+ee/2+","+Kt/2+"M0,0L"+ee+","+Kt+"M-"+ee/4+","+Kt/4*3+"l"+ee/2+","+Kt/2,qt=Qt-Qt*Math.sqrt(1-_e),ae="path",vt={d:zt,opacity:ge,stroke:Lt,"stroke-width":qt+"px"};break;case"|":ee=Qt,Kt=Qt,ae="path",zt="M"+ee/2+",0L"+ee/2+","+Kt,qt=_e*Qt,ae="path",vt={d:zt,opacity:ge,stroke:Lt,"stroke-width":qt+"px"};break;case"-":ee=Qt,Kt=Qt,ae="path",zt="M0,"+Kt/2+"L"+ee+","+Kt/2,qt=_e*Qt,ae="path",vt={d:zt,opacity:ge,stroke:Lt,"stroke-width":qt+"px"};break;case"+":ee=Qt,Kt=Qt,ae="path",zt="M"+ee/2+",0L"+ee/2+","+Kt+"M0,"+Kt/2+"L"+ee+","+Kt/2,qt=Qt-Qt*Math.sqrt(1-_e),ae="path",vt={d:zt,opacity:ge,stroke:Lt,"stroke-width":qt+"px"};break;case".":ee=Qt,Kt=Qt,_e<Math.PI/4?Zt=Math.sqrt(_e*Qt*Qt/Math.PI):Zt=ne(_e,Math.PI/4,1,Qt/2,Qt/Math.sqrt(2)),ae="circle",vt={cx:ee/2,cy:Kt/2,r:Zt,opacity:ge,fill:Lt};break}var de=[ye||"noSh",Pe||"noBg",Oe||"noFg",Qt,_e].join(";"),sr=Ie._defs.select(".patterns").selectAll("#"+Ut).data([de],C.identity);sr.exit().remove(),sr.enter().append("pattern").each(function(){var mr=M.select(this);if(mr.attr({id:Ut,width:ee+"px",height:Kt+"px",patternUnits:"userSpaceOnUse",patternTransform:Le?"scale(0.8)":""}),Pe){var Ve=w(Pe),le=h.tinyRGB(Ve),pe=Ve.getAlpha(),Te=mr.selectAll("rect").data([0]);Te.exit().remove(),Te.enter().append("rect").attr({width:ee+"px",height:Kt+"px",fill:le,"fill-opacity":pe})}var Yt=mr.selectAll(ae).data([0]);Yt.exit().remove(),Yt.enter().append(ae).attr(vt)}),kt.style("fill",at(Ut,Ot)).style("fill-opacity",null),kt.classed("pattern_filled",!0)},c.initGradients=function(kt){var Bt=kt._fullLayout,Ot=C.ensureSingle(Bt._defs,"g","gradients");Ot.selectAll("linearGradient,radialGradient").remove(),M.select(kt).selectAll(".gradient_filled").classed("gradient_filled",!1)},c.initPatterns=function(kt){var Bt=kt._fullLayout,Ot=C.ensureSingle(Bt._defs,"g","patterns");Ot.selectAll("pattern").remove(),M.select(kt).selectAll(".pattern_filled").classed("pattern_filled",!1)},c.getPatternAttr=function(kt,Bt,Ot){return kt&&C.isArrayOrTypedArray(kt)?Bt<kt.length?kt[Bt]:Ot:kt},c.pointStyle=function(kt,Bt,Ot,Ht){if(kt.size()){var ye=c.makePointStyleFns(Bt);kt.each(function(Qt){c.singlePointStyle(Qt,M.select(this),Bt,ye,Ot,Ht)})}},c.singlePointStyle=function(kt,Bt,Ot,Ht,ye,Qt){var _e=Ot.marker,ie=_e.line;if(Qt&&Qt.i>=0&&kt.i===void 0&&(kt.i=Qt.i),Bt.style("opacity",Ht.selectedOpacityFn?Ht.selectedOpacityFn(kt):kt.mo===void 0?_e.opacity:kt.mo),Ht.ms2mrc){var Ae;kt.ms==="various"||_e.size==="various"?Ae=3:Ae=Ht.ms2mrc(kt.ms),kt.mrc=Ae,Ht.selectedSizeFn&&(Ae=kt.mrc=Ht.selectedSizeFn(kt));var Pe=c.symbolNumber(kt.mx||_e.symbol)||0;kt.om=Pe%200>=100;var Oe=Dt(kt,Ot),je=Z(kt,Ot);Bt.attr("d",d(Pe,Ae,Oe,je))}var Le=!1,Ie,Ut,ee;if(kt.so)ee=ie.outlierwidth,Ut=ie.outliercolor,Ie=_e.outliercolor;else{var Kt=(ie||{}).width;ee=(kt.mlw+1||Kt+1||(kt.trace?(kt.trace.marker.line||{}).width:0)+1)-1||0,"mlc"in kt?Ut=kt.mlcc=Ht.lineScale(kt.mlc):C.isArrayOrTypedArray(ie.color)?Ut=h.defaultLine:Ut=ie.color,C.isArrayOrTypedArray(_e.color)&&(Ie=h.defaultLine,Le=!0),"mc"in kt?Ie=kt.mcc=Ht.markerScale(kt.mc):Ie=_e.color||_e.colors||"rgba(0,0,0,0)",Ht.selectedColorFn&&(Ie=Ht.selectedColorFn(kt))}if(kt.om)Bt.call(h.stroke,Ie).style({"stroke-width":(ee||1)+"px",fill:"none"});else{Bt.style("stroke-width",(kt.isBlank?0:ee)+"px");var ne=_e.gradient,zt=kt.mgt;zt?Le=!0:zt=ne&&ne.type,C.isArrayOrTypedArray(zt)&&(zt=zt[0],L[zt]||(zt=0));var qt=_e.pattern,Zt=qt&&c.getPatternAttr(qt.shape,kt.i,"");if(zt&&zt!=="none"){var ae=kt.mgc;ae?Le=!0:ae=ne.color;var vt=Ot.uid;Le&&(vt+="-"+kt.i),c.gradient(Bt,ye,vt,zt,[[0,ae],[1,Ie]],"fill")}else if(Zt){var Mt=!1,Lt=qt.fgcolor;!Lt&&Qt&&Qt.color&&(Lt=Qt.color,Mt=!0);var $t=c.getPatternAttr(Lt,kt.i,Qt&&Qt.color||null),ge=c.getPatternAttr(qt.bgcolor,kt.i,null),de=qt.fgopacity,sr=c.getPatternAttr(qt.size,kt.i,8),mr=c.getPatternAttr(qt.solidity,kt.i,.3);Mt=Mt||kt.mcc||C.isArrayOrTypedArray(qt.shape)||C.isArrayOrTypedArray(qt.bgcolor)||C.isArrayOrTypedArray(qt.fgcolor)||C.isArrayOrTypedArray(qt.size)||C.isArrayOrTypedArray(qt.solidity);var Ve=Ot.uid;Mt&&(Ve+="-"+kt.i),c.pattern(Bt,"point",ye,Ve,Zt,sr,mr,kt.mcc,qt.fillmode,ge,$t,de)}else C.isArrayOrTypedArray(Ie)?h.fill(Bt,Ie[kt.i]):h.fill(Bt,Ie);ee&&h.stroke(Bt,Ut)}},c.makePointStyleFns=function(kt){var Bt={},Ot=kt.marker;return Bt.markerScale=c.tryColorscale(Ot,""),Bt.lineScale=c.tryColorscale(Ot,"line"),S.traceIs(kt,"symbols")&&(Bt.ms2mrc=x.isBubble(kt)?m(kt):function(){return(Ot.size||6)/2}),kt.selectedpoints&&C.extendFlat(Bt,c.makeSelectedPointStyleFns(kt)),Bt},c.makeSelectedPointStyleFns=function(kt){var Bt={},Ot=kt.selected||{},Ht=kt.unselected||{},ye=kt.marker||{},Qt=Ot.marker||{},_e=Ht.marker||{},ie=ye.opacity,Ae=Qt.opacity,Pe=_e.opacity,Oe=Ae!==void 0,je=Pe!==void 0;(C.isArrayOrTypedArray(ie)||Oe||je)&&(Bt.selectedOpacityFn=function(Zt){var ae=Zt.mo===void 0?ye.opacity:Zt.mo;return Zt.selected?Oe?Ae:ae:je?Pe:u*ae});var Le=ye.color,Ie=Qt.color,Ut=_e.color;(Ie||Ut)&&(Bt.selectedColorFn=function(Zt){var ae=Zt.mcc||Le;return Zt.selected?Ie||ae:Ut||ae});var ee=ye.size,Kt=Qt.size,ne=_e.size,zt=Kt!==void 0,qt=ne!==void 0;return S.traceIs(kt,"symbols")&&(zt||qt)&&(Bt.selectedSizeFn=function(Zt){var ae=Zt.mrc||ee/2;return Zt.selected?zt?Kt/2:ae:qt?ne/2:ae}),Bt},c.makeSelectedTextStyleFns=function(kt){var Bt={},Ot=kt.selected||{},Ht=kt.unselected||{},ye=kt.textfont||{},Qt=Ot.textfont||{},_e=Ht.textfont||{},ie=ye.color,Ae=Qt.color,Pe=_e.color;return Bt.selectedTextColorFn=function(Oe){var je=Oe.tc||ie;return Oe.selected?Ae||je:Pe||(Ae?je:h.addOpacity(je,u))},Bt},c.selectedPointStyle=function(kt,Bt){if(!(!kt.size()||!Bt.selectedpoints)){var Ot=c.makeSelectedPointStyleFns(Bt),Ht=Bt.marker||{},ye=[];Ot.selectedOpacityFn&&ye.push(function(Qt,_e){Qt.style("opacity",Ot.selectedOpacityFn(_e))}),Ot.selectedColorFn&&ye.push(function(Qt,_e){h.fill(Qt,Ot.selectedColorFn(_e))}),Ot.selectedSizeFn&&ye.push(function(Qt,_e){var ie=_e.mx||Ht.symbol||0,Ae=Ot.selectedSizeFn(_e);Qt.attr("d",d(c.symbolNumber(ie),Ae,Dt(_e,Bt),Z(_e,Bt))),_e.mrc2=Ae}),ye.length&&kt.each(function(Qt){for(var _e=M.select(this),ie=0;ie<ye.length;ie++)ye[ie](_e,Qt)})}},c.tryColorscale=function(kt,Bt){var Ot=Bt?C.nestedProperty(kt,Bt).get():kt;if(Ot){var Ht=Ot.color;if((Ot.colorscale||Ot._colorAx)&&C.isArrayOrTypedArray(Ht))return l.makeColorScaleFuncFromTrace(Ot)}return C.identity};var D={start:1,end:-1,middle:0,bottom:1,top:-1};function B(kt,Bt,Ot,Ht,ye){var Qt=M.select(kt.node().parentNode),_e=Bt.indexOf("top")!==-1?"top":Bt.indexOf("bottom")!==-1?"bottom":"middle",ie=Bt.indexOf("left")!==-1?"end":Bt.indexOf("right")!==-1?"start":"middle",Ae=Ht?Ht/.8+1:0,Pe=(n.lineCount(kt)-1)*s+1,Oe=D[ie]*Ae,je=Ot*.75+D[_e]*Ae+(D[_e]-1)*Pe*Ot/2;kt.attr("text-anchor",ie),ye||Qt.attr("transform",t(Oe,je))}function I(kt,Bt){var Ot=kt.ts||Bt.textfont.size;return i(Ot)&&Ot>0?Ot:0}c.textPointStyle=function(kt,Bt,Ot){if(kt.size()){var Ht;if(Bt.selectedpoints){var ye=c.makeSelectedTextStyleFns(Bt);Ht=ye.selectedTextColorFn}var Qt=Bt.texttemplate,_e=Ot._fullLayout;kt.each(function(ie){var Ae=M.select(this),Pe=Qt?C.extractOption(ie,Bt,"txt","texttemplate"):C.extractOption(ie,Bt,"tx","text");if(!Pe&&Pe!==0){Ae.remove();return}if(Qt){var Oe=Bt._module.formatLabels,je=Oe?Oe(ie,Bt,_e):{},Le={};y(Le,Bt,ie.i);var Ie=Bt._meta||{};Pe=C.texttemplateString(Pe,je,_e._d3locale,Le,ie,Ie)}var Ut=ie.tp||Bt.textposition,ee=I(ie,Bt),Kt=Ht?Ht(ie):ie.tc||Bt.textfont.color;Ae.call(c.font,{family:ie.tf||Bt.textfont.family,weight:ie.tw||Bt.textfont.weight,style:ie.ty||Bt.textfont.style,variant:ie.tv||Bt.textfont.variant,textcase:ie.tC||Bt.textfont.textcase,lineposition:ie.tE||Bt.textfont.lineposition,shadow:ie.tS||Bt.textfont.shadow,size:ee,color:Kt}).text(Pe).call(n.convertToTspans,Ot).call(B,Ut,ee,ie.mrc)})}},c.selectedTextStyle=function(kt,Bt){if(!(!kt.size()||!Bt.selectedpoints)){var Ot=c.makeSelectedTextStyleFns(Bt);kt.each(function(Ht){var ye=M.select(this),Qt=Ot.selectedTextColorFn(Ht),_e=Ht.tp||Bt.textposition,ie=I(Ht,Bt);h.fill(ye,Qt);var Ae=S.traceIs(Bt,"bar-like");B(ye,_e,ie,Ht.mrc2||Ht.mrc,Ae)})}};var V=.5;c.smoothopen=function(kt,Bt){if(kt.length<3)return"M"+kt.join("L");var Ot="M"+kt[0],Ht=[],ye;for(ye=1;ye<kt.length-1;ye++)Ht.push(Q(kt[ye-1],kt[ye],kt[ye+1],Bt));for(Ot+="Q"+Ht[0][0]+" "+kt[1],ye=2;ye<kt.length-1;ye++)Ot+="C"+Ht[ye-2][1]+" "+Ht[ye-1][0]+" "+kt[ye];return Ot+="Q"+Ht[kt.length-3][1]+" "+kt[kt.length-1],Ot},c.smoothclosed=function(kt,Bt){if(kt.length<3)return"M"+kt.join("L")+"Z";var Ot="M"+kt[0],Ht=kt.length-1,ye=[Q(kt[Ht],kt[0],kt[1],Bt)],Qt;for(Qt=1;Qt<Ht;Qt++)ye.push(Q(kt[Qt-1],kt[Qt],kt[Qt+1],Bt));for(ye.push(Q(kt[Ht-1],kt[Ht],kt[0],Bt)),Qt=1;Qt<=Ht;Qt++)Ot+="C"+ye[Qt-1][1]+" "+ye[Qt][0]+" "+kt[Qt];return Ot+="C"+ye[Ht][1]+" "+ye[0][0]+" "+kt[0]+"Z",Ot};var N,F;function U(kt,Bt,Ot){return Ot&&(kt=lt(kt)),Bt?Y(kt[1]):G(kt[0])}function G(kt){var Bt=M.round(kt,2);return N=Bt,Bt}function Y(kt){var Bt=M.round(kt,2);return F=Bt,Bt}function Q(kt,Bt,Ot,Ht){var ye=kt[0]-Bt[0],Qt=kt[1]-Bt[1],_e=Ot[0]-Bt[0],ie=Ot[1]-Bt[1],Ae=Math.pow(ye*ye+Qt*Qt,V/2),Pe=Math.pow(_e*_e+ie*ie,V/2),Oe=(Pe*Pe*ye-Ae*Ae*_e)*Ht,je=(Pe*Pe*Qt-Ae*Ae*ie)*Ht,Le=3*Pe*(Ae+Pe),Ie=3*Ae*(Ae+Pe);return[[G(Bt[0]+(Le&&Oe/Le)),Y(Bt[1]+(Le&&je/Le))],[G(Bt[0]-(Ie&&Oe/Ie)),Y(Bt[1]-(Ie&&je/Ie))]]}var ft={hv:function(kt,Bt,Ot){return"H"+G(Bt[0])+"V"+U(Bt,1,Ot)},vh:function(kt,Bt,Ot){return"V"+Y(Bt[1])+"H"+U(Bt,0,Ot)},hvh:function(kt,Bt,Ot){return"H"+G((kt[0]+Bt[0])/2)+"V"+Y(Bt[1])+"H"+U(Bt,0,Ot)},vhv:function(kt,Bt,Ot){return"V"+Y((kt[1]+Bt[1])/2)+"H"+G(Bt[0])+"V"+U(Bt,1,Ot)}},ut=function(kt,Bt,Ot){return"L"+U(Bt,0,Ot)+","+U(Bt,1,Ot)};c.steps=function(kt){var Bt=ft[kt]||ut;return function(Ot){for(var Ht="M"+G(Ot[0][0])+","+Y(Ot[0][1]),ye=Ot.length,Qt=1;Qt<ye;Qt++)Ht+=Bt(Ot[Qt-1],Ot[Qt],Qt===ye-1);return Ht}};function lt(kt,Bt){var Ot=kt.backoff,Ht=kt.trace,ye=kt.d,Qt=kt.i;if(Ot&&Ht&&Ht.marker&&Ht.marker.angle%360===0&&Ht.line&&Ht.line.shape!=="spline"){var _e=C.isArrayOrTypedArray(Ot),ie=kt,Ae=Bt?Bt[0]:N||0,Pe=Bt?Bt[1]:F||0,Oe=ie[0],je=ie[1],Le=Oe-Ae,Ie=je-Pe,Ut=Math.atan2(Ie,Le),ee=_e?Ot[Qt]:Ot;if(ee==="auto"){var Kt=ie.i;Ht.type==="scatter"&&Kt--;var ne=ie.marker,zt=ne.symbol;C.isArrayOrTypedArray(zt)&&(zt=zt[Kt]);var qt=ne.size;C.isArrayOrTypedArray(qt)&&(qt=qt[Kt]),ee=ne?c.symbolBackOffs[c.symbolNumber(zt)]*qt:0,ee+=c.getMarkerStandoff(ye[Kt],Ht)||0}var Zt=Oe-ee*Math.cos(Ut),ae=je-ee*Math.sin(Ut);(Zt<=Oe&&Zt>=Ae||Zt>=Oe&&Zt<=Ae)&&(ae<=je&&ae>=Pe||ae>=je&&ae<=Pe)&&(kt=[Zt,ae])}return kt}c.applyBackoff=lt,c.makeTester=function(){var kt=C.ensureSingleById(M.select("body"),"svg","js-plotly-tester",function(Ot){Ot.attr(o.svgAttrs).style({position:"absolute",left:"-10000px",top:"-10000px",width:"9000px",height:"9000px","z-index":"1"})}),Bt=C.ensureSingle(kt,"path","js-reference-point",function(Ot){Ot.attr("d","M0,0H1V1H0Z").style({"stroke-width":0,fill:"black"})});c.tester=kt,c.testref=Bt},c.savedBBoxes={};var K=0,$=1e4;c.bBox=function(kt,Bt,Ot){Ot||(Ot=H(kt));var Ht;if(Ot){if(Ht=c.savedBBoxes[Ot],Ht)return C.extendFlat({},Ht)}else if(kt.childNodes.length===1){var ye=kt.childNodes[0];if(Ot=H(ye),Ot){var Qt=+ye.getAttribute("x")||0,_e=+ye.getAttribute("y")||0,ie=ye.getAttribute("transform");if(!ie){var Ae=c.bBox(ye,!1,Ot);return Qt&&(Ae.left+=Qt,Ae.right+=Qt),_e&&(Ae.top+=_e,Ae.bottom+=_e),Ae}if(Ot+="~"+Qt+"~"+_e+"~"+ie,Ht=c.savedBBoxes[Ot],Ht)return C.extendFlat({},Ht)}}var Pe,Oe;Bt?Pe=kt:(Oe=c.tester.node(),Pe=kt.cloneNode(!0),Oe.appendChild(Pe)),M.select(Pe).attr("transform",null).call(n.positionText,0,0);var je=Pe.getBoundingClientRect(),Le=c.testref.node().getBoundingClientRect();Bt||Oe.removeChild(Pe);var Ie={height:je.height,width:je.width,left:je.left-Le.left,top:je.top-Le.top,right:je.right-Le.left,bottom:je.bottom-Le.top};return K>=$&&(c.savedBBoxes={},K=0),Ot&&(c.savedBBoxes[Ot]=Ie),K++,C.extendFlat({},Ie)};function H(kt){var Bt=kt.getAttribute("data-unformatted");if(Bt!==null)return Bt+kt.getAttribute("data-math")+kt.getAttribute("text-anchor")+kt.getAttribute("style")}c.setClipUrl=function(kt,Bt,Ot){kt.attr("clip-path",at(Bt,Ot))};function at(kt,Bt){if(!kt)return null;var Ot=Bt._context,Ht=Ot._exportedPlot?"":Ot._baseUrl||"";return Ht?"url('"+Ht+"#"+kt+"')":"url(#"+kt+")"}c.getTranslate=function(kt){var Bt=/.*\btranslate\((-?\d*\.?\d*)[^-\d]*(-?\d*\.?\d*)[^\d].*/,Ot=kt.attr?"attr":"getAttribute",Ht=kt[Ot]("transform")||"",ye=Ht.replace(Bt,function(Qt,_e,ie){return[_e,ie].join(" ")}).split(" ");return{x:+ye[0]||0,y:+ye[1]||0}},c.setTranslate=function(kt,Bt,Ot){var Ht=/(\btranslate\(.*?\);?)/,ye=kt.attr?"attr":"getAttribute",Qt=kt.attr?"attr":"setAttribute",_e=kt[ye]("transform")||"";return Bt=Bt||0,Ot=Ot||0,_e=_e.replace(Ht,"").trim(),_e+=t(Bt,Ot),_e=_e.trim(),kt[Qt]("transform",_e),_e},c.getScale=function(kt){var Bt=/.*\bscale\((\d*\.?\d*)[^\d]*(\d*\.?\d*)[^\d].*/,Ot=kt.attr?"attr":"getAttribute",Ht=kt[Ot]("transform")||"",ye=Ht.replace(Bt,function(Qt,_e,ie){return[_e,ie].join(" ")}).split(" ");return{x:+ye[0]||1,y:+ye[1]||1}},c.setScale=function(kt,Bt,Ot){var Ht=/(\bscale\(.*?\);?)/,ye=kt.attr?"attr":"getAttribute",Qt=kt.attr?"attr":"setAttribute",_e=kt[ye]("transform")||"";return Bt=Bt||1,Ot=Ot||1,_e=_e.replace(Ht,"").trim(),_e+="scale("+Bt+","+Ot+")",_e=_e.trim(),kt[Qt]("transform",_e),_e};var ct=/\s*sc.*/;c.setPointGroupScale=function(kt,Bt,Ot){if(Bt=Bt||1,Ot=Ot||1,!!kt){var Ht=Bt===1&&Ot===1?"":"scale("+Bt+","+Ot+")";kt.each(function(){var ye=(this.getAttribute("transform")||"").replace(ct,"");ye+=Ht,ye=ye.trim(),this.setAttribute("transform",ye)})}};var et=/translate\([^)]*\)\s*$/;c.setTextPointsScale=function(kt,Bt,Ot){kt&&kt.each(function(){var Ht,ye=M.select(this),Qt=ye.select("text");if(Qt.node()){var _e=parseFloat(Qt.attr("x")||0),ie=parseFloat(Qt.attr("y")||0),Ae=(ye.attr("transform")||"").match(et);Bt===1&&Ot===1?Ht=[]:Ht=[t(_e,ie),"scale("+Bt+","+Ot+")",t(-_e,-ie)],Ae&&Ht.push(Ae),ye.attr("transform",Ht.join(""))}})};function Z(kt,Bt){var Ot;return kt&&(Ot=kt.mf),Ot===void 0&&(Ot=Bt.marker&&Bt.marker.standoff||0),!Bt._geo&&!Bt._xA?-Ot:Ot}c.getMarkerStandoff=Z;var ot=Math.atan2,st=Math.cos,dt=Math.sin;function xt(kt,Bt){var Ot=Bt[0],Ht=Bt[1];return[Ot*st(kt)-Ht*dt(kt),Ot*dt(kt)+Ht*st(kt)]}var At,St,Nt,Wt,Vt,jt;function Dt(kt,Bt){var Ot=kt.ma;Ot===void 0&&(Ot=Bt.marker.angle,(!Ot||C.isArrayOrTypedArray(Ot))&&(Ot=0));var Ht,ye,Qt=Bt.marker.angleref;if(Qt==="previous"||Qt==="north"){if(Bt._geo){var _e=Bt._geo.project(kt.lonlat);Ht=_e[0],ye=_e[1]}else{var ie=Bt._xA,Ae=Bt._yA;if(ie&&Ae)Ht=ie.c2p(kt.x),ye=Ae.c2p(kt.y);else return 90}if(Bt._geo){var Pe=kt.lonlat[0],Oe=kt.lonlat[1],je=Bt._geo.project([Pe,Oe+1e-5]),Le=Bt._geo.project([Pe+1e-5,Oe]),Ie=ot(Le[1]-ye,Le[0]-Ht),Ut=ot(je[1]-ye,je[0]-Ht),ee;if(Qt==="north")ee=Ot/180*Math.PI;else if(Qt==="previous"){var Kt=Pe/180*Math.PI,ne=Oe/180*Math.PI,zt=At/180*Math.PI,qt=St/180*Math.PI,Zt=zt-Kt,ae=st(qt)*dt(Zt),vt=dt(qt)*st(ne)-st(qt)*dt(ne)*st(Zt);ee=-ot(ae,vt)-Math.PI,At=Pe,St=Oe}var Mt=xt(Ie,[st(ee),0]),Lt=xt(Ut,[dt(ee),0]);Ot=ot(Mt[1]+Lt[1],Mt[0]+Lt[0])/Math.PI*180,Qt==="previous"&&!(jt===Bt.uid&&kt.i===Vt+1)&&(Ot=null)}if(Qt==="previous"&&!Bt._geo)if(jt===Bt.uid&&kt.i===Vt+1&&i(Ht)&&i(ye)){var $t=Ht-Nt,ge=ye-Wt,de=Bt.line&&Bt.line.shape||"",sr=de.slice(de.length-1);sr==="h"&&(ge=0),sr==="v"&&($t=0),Ot+=ot(ge,$t)/Math.PI*180+90}else Ot=null}return Nt=Ht,Wt=ye,Vt=kt.i,jt=Bt.uid,Ot}c.getMarkerAngle=Dt},38882:function(nt,W,e){var M=e(26953),C=e(45568).round,r="M0,0Z",i=Math.sqrt(2),w=Math.sqrt(3),S=Math.PI,h=Math.cos,l=Math.sin;nt.exports={circle:{n:0,f:function(x,m,y){if(t(m))return r;var c=C(x,2),p="M"+c+",0A"+c+","+c+" 0 1,1 0,-"+c+"A"+c+","+c+" 0 0,1 "+c+",0Z";return y?u(m,y,p):p}},square:{n:1,f:function(x,m,y){if(t(m))return r;var c=C(x,2);return u(m,y,"M"+c+","+c+"H-"+c+"V-"+c+"H"+c+"Z")}},diamond:{n:2,f:function(x,m,y){if(t(m))return r;var c=C(x*1.3,2);return u(m,y,"M"+c+",0L0,"+c+"L-"+c+",0L0,-"+c+"Z")}},cross:{n:3,f:function(x,m,y){if(t(m))return r;var c=C(x*.4,2),p=C(x*1.2,2);return u(m,y,"M"+p+","+c+"H"+c+"V"+p+"H-"+c+"V"+c+"H-"+p+"V-"+c+"H-"+c+"V-"+p+"H"+c+"V-"+c+"H"+p+"Z")}},x:{n:4,f:function(x,m,y){if(t(m))return r;var c=C(x*.8/i,2),p="l"+c+","+c,f="l"+c+",-"+c,T="l-"+c+",-"+c,k="l-"+c+","+c;return u(m,y,"M0,"+c+p+f+T+f+T+k+T+k+p+k+p+"Z")}},"triangle-up":{n:5,f:function(x,m,y){if(t(m))return r;var c=C(x*2/w,2),p=C(x/2,2),f=C(x,2);return u(m,y,"M-"+c+","+p+"H"+c+"L0,-"+f+"Z")}},"triangle-down":{n:6,f:function(x,m,y){if(t(m))return r;var c=C(x*2/w,2),p=C(x/2,2),f=C(x,2);return u(m,y,"M-"+c+",-"+p+"H"+c+"L0,"+f+"Z")}},"triangle-left":{n:7,f:function(x,m,y){if(t(m))return r;var c=C(x*2/w,2),p=C(x/2,2),f=C(x,2);return u(m,y,"M"+p+",-"+c+"V"+c+"L-"+f+",0Z")}},"triangle-right":{n:8,f:function(x,m,y){if(t(m))return r;var c=C(x*2/w,2),p=C(x/2,2),f=C(x,2);return u(m,y,"M-"+p+",-"+c+"V"+c+"L"+f+",0Z")}},"triangle-ne":{n:9,f:function(x,m,y){if(t(m))return r;var c=C(x*.6,2),p=C(x*1.2,2);return u(m,y,"M-"+p+",-"+c+"H"+c+"V"+p+"Z")}},"triangle-se":{n:10,f:function(x,m,y){if(t(m))return r;var c=C(x*.6,2),p=C(x*1.2,2);return u(m,y,"M"+c+",-"+p+"V"+c+"H-"+p+"Z")}},"triangle-sw":{n:11,f:function(x,m,y){if(t(m))return r;var c=C(x*.6,2),p=C(x*1.2,2);return u(m,y,"M"+p+","+c+"H-"+c+"V-"+p+"Z")}},"triangle-nw":{n:12,f:function(x,m,y){if(t(m))return r;var c=C(x*.6,2),p=C(x*1.2,2);return u(m,y,"M-"+c+","+p+"V-"+c+"H"+p+"Z")}},pentagon:{n:13,f:function(x,m,y){if(t(m))return r;var c=C(x*.951,2),p=C(x*.588,2),f=C(-x,2),T=C(x*-.309,2),k=C(x*.809,2);return u(m,y,"M"+c+","+T+"L"+p+","+k+"H-"+p+"L-"+c+","+T+"L0,"+f+"Z")}},hexagon:{n:14,f:function(x,m,y){if(t(m))return r;var c=C(x,2),p=C(x/2,2),f=C(x*w/2,2);return u(m,y,"M"+f+",-"+p+"V"+p+"L0,"+c+"L-"+f+","+p+"V-"+p+"L0,-"+c+"Z")}},hexagon2:{n:15,f:function(x,m,y){if(t(m))return r;var c=C(x,2),p=C(x/2,2),f=C(x*w/2,2);return u(m,y,"M-"+p+","+f+"H"+p+"L"+c+",0L"+p+",-"+f+"H-"+p+"L-"+c+",0Z")}},octagon:{n:16,f:function(x,m,y){if(t(m))return r;var c=C(x*.924,2),p=C(x*.383,2);return u(m,y,"M-"+p+",-"+c+"H"+p+"L"+c+",-"+p+"V"+p+"L"+p+","+c+"H-"+p+"L-"+c+","+p+"V-"+p+"Z")}},star:{n:17,f:function(x,m,y){if(t(m))return r;var c=x*1.4,p=C(c*.225,2),f=C(c*.951,2),T=C(c*.363,2),k=C(c*.588,2),P=C(-c,2),g=C(c*-.309,2),A=C(c*.118,2),E=C(c*.809,2),d=C(c*.382,2);return u(m,y,"M"+p+","+g+"H"+f+"L"+T+","+A+"L"+k+","+E+"L0,"+d+"L-"+k+","+E+"L-"+T+","+A+"L-"+f+","+g+"H-"+p+"L0,"+P+"Z")}},hexagram:{n:18,f:function(x,m,y){if(t(m))return r;var c=C(x*.66,2),p=C(x*.38,2),f=C(x*.76,2);return u(m,y,"M-"+f+",0l-"+p+",-"+c+"h"+f+"l"+p+",-"+c+"l"+p+","+c+"h"+f+"l-"+p+","+c+"l"+p+","+c+"h-"+f+"l-"+p+","+c+"l-"+p+",-"+c+"h-"+f+"Z")}},"star-triangle-up":{n:19,f:function(x,m,y){if(t(m))return r;var c=C(x*w*.8,2),p=C(x*.8,2),f=C(x*1.6,2),T=C(x*4,2),k="A "+T+","+T+" 0 0 1 ";return u(m,y,"M-"+c+","+p+k+c+","+p+k+"0,-"+f+k+"-"+c+","+p+"Z")}},"star-triangle-down":{n:20,f:function(x,m,y){if(t(m))return r;var c=C(x*w*.8,2),p=C(x*.8,2),f=C(x*1.6,2),T=C(x*4,2),k="A "+T+","+T+" 0 0 1 ";return u(m,y,"M"+c+",-"+p+k+"-"+c+",-"+p+k+"0,"+f+k+c+",-"+p+"Z")}},"star-square":{n:21,f:function(x,m,y){if(t(m))return r;var c=C(x*1.1,2),p=C(x*2,2),f="A "+p+","+p+" 0 0 1 ";return u(m,y,"M-"+c+",-"+c+f+"-"+c+","+c+f+c+","+c+f+c+",-"+c+f+"-"+c+",-"+c+"Z")}},"star-diamond":{n:22,f:function(x,m,y){if(t(m))return r;var c=C(x*1.4,2),p=C(x*1.9,2),f="A "+p+","+p+" 0 0 1 ";return u(m,y,"M-"+c+",0"+f+"0,"+c+f+c+",0"+f+"0,-"+c+f+"-"+c+",0Z")}},"diamond-tall":{n:23,f:function(x,m,y){if(t(m))return r;var c=C(x*.7,2),p=C(x*1.4,2);return u(m,y,"M0,"+p+"L"+c+",0L0,-"+p+"L-"+c+",0Z")}},"diamond-wide":{n:24,f:function(x,m,y){if(t(m))return r;var c=C(x*1.4,2),p=C(x*.7,2);return u(m,y,"M0,"+p+"L"+c+",0L0,-"+p+"L-"+c+",0Z")}},hourglass:{n:25,f:function(x,m,y){if(t(m))return r;var c=C(x,2);return u(m,y,"M"+c+","+c+"H-"+c+"L"+c+",-"+c+"H-"+c+"Z")},noDot:!0},bowtie:{n:26,f:function(x,m,y){if(t(m))return r;var c=C(x,2);return u(m,y,"M"+c+","+c+"V-"+c+"L-"+c+","+c+"V-"+c+"Z")},noDot:!0},"circle-cross":{n:27,f:function(x,m,y){if(t(m))return r;var c=C(x,2);return u(m,y,"M0,"+c+"V-"+c+"M"+c+",0H-"+c+"M"+c+",0A"+c+","+c+" 0 1,1 0,-"+c+"A"+c+","+c+" 0 0,1 "+c+",0Z")},needLine:!0,noDot:!0},"circle-x":{n:28,f:function(x,m,y){if(t(m))return r;var c=C(x,2),p=C(x/i,2);return u(m,y,"M"+p+","+p+"L-"+p+",-"+p+"M"+p+",-"+p+"L-"+p+","+p+"M"+c+",0A"+c+","+c+" 0 1,1 0,-"+c+"A"+c+","+c+" 0 0,1 "+c+",0Z")},needLine:!0,noDot:!0},"square-cross":{n:29,f:function(x,m,y){if(t(m))return r;var c=C(x,2);return u(m,y,"M0,"+c+"V-"+c+"M"+c+",0H-"+c+"M"+c+","+c+"H-"+c+"V-"+c+"H"+c+"Z")},needLine:!0,noDot:!0},"square-x":{n:30,f:function(x,m,y){if(t(m))return r;var c=C(x,2);return u(m,y,"M"+c+","+c+"L-"+c+",-"+c+"M"+c+",-"+c+"L-"+c+","+c+"M"+c+","+c+"H-"+c+"V-"+c+"H"+c+"Z")},needLine:!0,noDot:!0},"diamond-cross":{n:31,f:function(x,m,y){if(t(m))return r;var c=C(x*1.3,2);return u(m,y,"M"+c+",0L0,"+c+"L-"+c+",0L0,-"+c+"ZM0,-"+c+"V"+c+"M-"+c+",0H"+c)},needLine:!0,noDot:!0},"diamond-x":{n:32,f:function(x,m,y){if(t(m))return r;var c=C(x*1.3,2),p=C(x*.65,2);return u(m,y,"M"+c+",0L0,"+c+"L-"+c+",0L0,-"+c+"ZM-"+p+",-"+p+"L"+p+","+p+"M-"+p+","+p+"L"+p+",-"+p)},needLine:!0,noDot:!0},"cross-thin":{n:33,f:function(x,m,y){if(t(m))return r;var c=C(x*1.4,2);return u(m,y,"M0,"+c+"V-"+c+"M"+c+",0H-"+c)},needLine:!0,noDot:!0,noFill:!0},"x-thin":{n:34,f:function(x,m,y){if(t(m))return r;var c=C(x,2);return u(m,y,"M"+c+","+c+"L-"+c+",-"+c+"M"+c+",-"+c+"L-"+c+","+c)},needLine:!0,noDot:!0,noFill:!0},asterisk:{n:35,f:function(x,m,y){if(t(m))return r;var c=C(x*1.2,2),p=C(x*.85,2);return u(m,y,"M0,"+c+"V-"+c+"M"+c+",0H-"+c+"M"+p+","+p+"L-"+p+",-"+p+"M"+p+",-"+p+"L-"+p+","+p)},needLine:!0,noDot:!0,noFill:!0},hash:{n:36,f:function(x,m,y){if(t(m))return r;var c=C(x/2,2),p=C(x,2);return u(m,y,"M"+c+","+p+"V-"+p+"M"+(c-p)+",-"+p+"V"+p+"M"+p+","+c+"H-"+p+"M-"+p+","+(c-p)+"H"+p)},needLine:!0,noFill:!0},"y-up":{n:37,f:function(x,m,y){if(t(m))return r;var c=C(x*1.2,2),p=C(x*1.6,2),f=C(x*.8,2);return u(m,y,"M-"+c+","+f+"L0,0M"+c+","+f+"L0,0M0,-"+p+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-down":{n:38,f:function(x,m,y){if(t(m))return r;var c=C(x*1.2,2),p=C(x*1.6,2),f=C(x*.8,2);return u(m,y,"M-"+c+",-"+f+"L0,0M"+c+",-"+f+"L0,0M0,"+p+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-left":{n:39,f:function(x,m,y){if(t(m))return r;var c=C(x*1.2,2),p=C(x*1.6,2),f=C(x*.8,2);return u(m,y,"M"+f+","+c+"L0,0M"+f+",-"+c+"L0,0M-"+p+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-right":{n:40,f:function(x,m,y){if(t(m))return r;var c=C(x*1.2,2),p=C(x*1.6,2),f=C(x*.8,2);return u(m,y,"M-"+f+","+c+"L0,0M-"+f+",-"+c+"L0,0M"+p+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"line-ew":{n:41,f:function(x,m,y){if(t(m))return r;var c=C(x*1.4,2);return u(m,y,"M"+c+",0H-"+c)},needLine:!0,noDot:!0,noFill:!0},"line-ns":{n:42,f:function(x,m,y){if(t(m))return r;var c=C(x*1.4,2);return u(m,y,"M0,"+c+"V-"+c)},needLine:!0,noDot:!0,noFill:!0},"line-ne":{n:43,f:function(x,m,y){if(t(m))return r;var c=C(x,2);return u(m,y,"M"+c+",-"+c+"L-"+c+","+c)},needLine:!0,noDot:!0,noFill:!0},"line-nw":{n:44,f:function(x,m,y){if(t(m))return r;var c=C(x,2);return u(m,y,"M"+c+","+c+"L-"+c+",-"+c)},needLine:!0,noDot:!0,noFill:!0},"arrow-up":{n:45,f:function(x,m,y){if(t(m))return r;var c=C(x,2),p=C(x*2,2);return u(m,y,"M0,0L-"+c+","+p+"H"+c+"Z")},backoff:1,noDot:!0},"arrow-down":{n:46,f:function(x,m,y){if(t(m))return r;var c=C(x,2),p=C(x*2,2);return u(m,y,"M0,0L-"+c+",-"+p+"H"+c+"Z")},noDot:!0},"arrow-left":{n:47,f:function(x,m,y){if(t(m))return r;var c=C(x*2,2),p=C(x,2);return u(m,y,"M0,0L"+c+",-"+p+"V"+p+"Z")},noDot:!0},"arrow-right":{n:48,f:function(x,m,y){if(t(m))return r;var c=C(x*2,2),p=C(x,2);return u(m,y,"M0,0L-"+c+",-"+p+"V"+p+"Z")},noDot:!0},"arrow-bar-up":{n:49,f:function(x,m,y){if(t(m))return r;var c=C(x,2),p=C(x*2,2);return u(m,y,"M-"+c+",0H"+c+"M0,0L-"+c+","+p+"H"+c+"Z")},backoff:1,needLine:!0,noDot:!0},"arrow-bar-down":{n:50,f:function(x,m,y){if(t(m))return r;var c=C(x,2),p=C(x*2,2);return u(m,y,"M-"+c+",0H"+c+"M0,0L-"+c+",-"+p+"H"+c+"Z")},needLine:!0,noDot:!0},"arrow-bar-left":{n:51,f:function(x,m,y){if(t(m))return r;var c=C(x*2,2),p=C(x,2);return u(m,y,"M0,-"+p+"V"+p+"M0,0L"+c+",-"+p+"V"+p+"Z")},needLine:!0,noDot:!0},"arrow-bar-right":{n:52,f:function(x,m,y){if(t(m))return r;var c=C(x*2,2),p=C(x,2);return u(m,y,"M0,-"+p+"V"+p+"M0,0L-"+c+",-"+p+"V"+p+"Z")},needLine:!0,noDot:!0},arrow:{n:53,f:function(x,m,y){if(t(m))return r;var c=S/2.5,p=2*x*h(c),f=2*x*l(c);return u(m,y,"M0,0L"+-p+","+f+"L"+p+","+f+"Z")},backoff:.9,noDot:!0},"arrow-wide":{n:54,f:function(x,m,y){if(t(m))return r;var c=S/4,p=2*x*h(c),f=2*x*l(c);return u(m,y,"M0,0L"+-p+","+f+"A "+2*x+","+2*x+" 0 0 1 "+p+","+f+"Z")},backoff:.4,noDot:!0}};function t(x){return x===null}var n,o,a,s;function u(x,m,y){if((!x||x%360===0)&&!m)return y;if(a===x&&s===m&&n===y)return o;a=x,s=m,n=y;function c(D,B){var I=h(D),V=l(D),N=B[0],F=B[1]+(m||0);return[N*I-F*V,N*V+F*I]}for(var p=x/180*S,f=0,T=0,k=M(y),P="",g=0;g<k.length;g++){var A=k[g],E=A[0],d=f,_=T;if(E==="M"||E==="L")f=+A[1],T=+A[2];else if(E==="m"||E==="l")f+=+A[1],T+=+A[2];else if(E==="H")f=+A[1];else if(E==="h")f+=+A[1];else if(E==="V")T=+A[1];else if(E==="v")T+=+A[1];else if(E==="A"){f=+A[1],T=+A[2];var L=c(p,[+A[6],+A[7]]);A[6]=L[0],A[7]=L[1],A[3]=+A[3]+x}(E==="H"||E==="V")&&(E="L"),(E==="h"||E==="v")&&(E="l"),(E==="m"||E==="l")&&(f-=d,T-=_);var b=c(p,[f,T]);(E==="H"||E==="V")&&(E="L"),(E==="M"||E==="L"||E==="m"||E==="l")&&(A[1]=b[0],A[2]=b[1]),A[0]=E,P+=A[0]+A.slice(1).join(",")}return o=P,P}},75568:function(nt){nt.exports={visible:{valType:"boolean",editType:"calc"},type:{valType:"enumerated",values:["percent","constant","sqrt","data"],editType:"calc"},symmetric:{valType:"boolean",editType:"calc"},array:{valType:"data_array",editType:"calc"},arrayminus:{valType:"data_array",editType:"calc"},value:{valType:"number",min:0,dflt:10,editType:"calc"},valueminus:{valType:"number",min:0,dflt:10,editType:"calc"},traceref:{valType:"integer",min:0,dflt:0,editType:"style"},tracerefminus:{valType:"integer",min:0,dflt:0,editType:"style"},copy_ystyle:{valType:"boolean",editType:"plot"},copy_zstyle:{valType:"boolean",editType:"style"},color:{valType:"color",editType:"style"},thickness:{valType:"number",min:0,dflt:2,editType:"style"},width:{valType:"number",min:0,editType:"plot"},editType:"calc",_deprecated:{opacity:{valType:"number",editType:"style"}}}},352:function(nt,W,e){var M=e(10721),C=e(33626),r=e(29714),i=e(34809),w=e(25589);nt.exports=function(h){for(var l=h.calcdata,t=0;t<l.length;t++){var n=l[t],o=n[0].trace;if(o.visible===!0&&C.traceIs(o,"errorBarsOK")){var a=r.getFromId(h,o.xaxis),s=r.getFromId(h,o.yaxis);S(n,o,a,"x"),S(n,o,s,"y")}}};function S(h,l,t,n){var o=l["error_"+n]||{},a=o.visible&&["linear","log"].indexOf(t.type)!==-1,s=[];if(a){for(var u=w(o),x=0;x<h.length;x++){var m=h[x],y=m.i;if(y===void 0)y=x;else if(y===null)continue;var c=m[n];if(M(t.c2l(c))){var p=u(c,y);if(M(p[0])&&M(p[1])){var f=m[n+"s"]=c-p[0],T=m[n+"h"]=c+p[1];s.push(f,T)}}}var k=t._id,P=l._extremes[k],g=r.findExtremes(t,s,i.extendFlat({tozero:P.opts.tozero},{padded:!0}));P.min=P.min.concat(g.min),P.max=P.max.concat(g.max)}}},25589:function(nt){nt.exports=function(e){var M=e.type,C=e.symmetric;if(M==="data"){var r=e.array||[];if(C)return function(h,l){var t=+r[l];return[t,t]};var i=e.arrayminus||[];return function(h,l){var t=+r[l],n=+i[l];return!isNaN(t)||!isNaN(n)?[n||0,t||0]:[NaN,NaN]}}else{var w=W(M,e.value),S=W(M,e.valueminus);return C||e.valueminus===void 0?function(h){var l=w(h);return[l,l]}:function(h){return[S(h),w(h)]}}};function W(e,M){if(e==="percent")return function(C){return Math.abs(C*M/100)};if(e==="constant")return function(){return Math.abs(M)};if(e==="sqrt")return function(C){return Math.sqrt(Math.abs(C))}}},5543:function(nt,W,e){var M=e(10721),C=e(33626),r=e(34809),i=e(78032),w=e(75568);nt.exports=function(S,h,l,t){var n="error_"+t.axis,o=i.newContainer(h,n),a=S[n]||{};function s(f,T){return r.coerce(a,o,w,f,T)}var u=a.array!==void 0||a.value!==void 0||a.type==="sqrt",x=s("visible",u);if(x!==!1){var m=s("type","array"in a?"data":"percent"),y=!0;m!=="sqrt"&&(y=s("symmetric",!((m==="data"?"arrayminus":"valueminus")in a))),m==="data"?(s("array"),s("traceref"),y||(s("arrayminus"),s("tracerefminus"))):(m==="percent"||m==="constant")&&(s("value"),y||s("valueminus"));var c="copy_"+t.inherit+"style";if(t.inherit){var p=h["error_"+t.inherit];(p||{}).visible&&s(c,!(a.color||M(a.thickness)||M(a.width)))}(!t.inherit||!o[c])&&(s("color",l),s("thickness"),s("width",C.traceIs(h,"gl3d")?0:4))}}},77901:function(nt,W,e){var M=e(34809),C=e(13582).overrideAll,r=e(75568),i={error_x:M.extendFlat({},r),error_y:M.extendFlat({},r)};delete i.error_x.copy_zstyle,delete i.error_y.copy_zstyle,delete i.error_y.copy_ystyle;var w={error_x:M.extendFlat({},r),error_y:M.extendFlat({},r),error_z:M.extendFlat({},r)};delete w.error_x.copy_ystyle,delete w.error_y.copy_ystyle,delete w.error_z.copy_ystyle,delete w.error_z.copy_zstyle,nt.exports={moduleType:"component",name:"errorbars",schema:{traces:{scatter:i,bar:i,histogram:i,scatter3d:C(w,"calc","nested"),scattergl:C(i,"calc","nested")}},supplyDefaults:e(5543),calc:e(352),makeComputeError:e(25589),plot:e(42130),style:e(22800),hoverInfo:S};function S(h,l,t){(l.error_y||{}).visible&&(t.yerr=h.yh-h.y,l.error_y.symmetric||(t.yerrneg=h.y-h.ys)),(l.error_x||{}).visible&&(t.xerr=h.xh-h.x,l.error_x.symmetric||(t.xerrneg=h.x-h.xs))}},42130:function(nt,W,e){var M=e(45568),C=e(10721),r=e(62203),i=e(64726);nt.exports=function(S,h,l,t){var n,o=l.xaxis,a=l.yaxis,s=t&&t.duration>0,u=S._context.staticPlot;h.each(function(x){var m=x[0].trace,y=m.error_x||{},c=m.error_y||{},p;m.ids&&(p=function(P){return P.id});var f=i.hasMarkers(m)&&m.marker.maxdisplayed>0;!c.visible&&!y.visible&&(x=[]);var T=M.select(this).selectAll("g.errorbar").data(x,p);if(T.exit().remove(),!!x.length){y.visible||T.selectAll("path.xerror").remove(),c.visible||T.selectAll("path.yerror").remove(),T.style("opacity",1);var k=T.enter().append("g").classed("errorbar",!0);s&&k.style("opacity",0).transition().duration(t.duration).style("opacity",1),r.setClipUrl(T,l.layerClipId,S),T.each(function(P){var g=M.select(this),A=w(P,o,a);if(!(f&&!P.vis)){var E,d=g.select("path.yerror");if(c.visible&&C(A.x)&&C(A.yh)&&C(A.ys)){var _=c.width;E="M"+(A.x-_)+","+A.yh+"h"+2*_+"m-"+_+",0V"+A.ys,A.noYS||(E+="m-"+_+",0h"+2*_),n=!d.size(),n?d=g.append("path").style("vector-effect",u?"none":"non-scaling-stroke").classed("yerror",!0):s&&(d=d.transition().duration(t.duration).ease(t.easing)),d.attr("d",E)}else d.remove();var L=g.select("path.xerror");if(y.visible&&C(A.y)&&C(A.xh)&&C(A.xs)){var b=(y.copy_ystyle?c:y).width;E="M"+A.xh+","+(A.y-b)+"v"+2*b+"m0,-"+b+"H"+A.xs,A.noXS||(E+="m0,-"+b+"v"+2*b),n=!L.size(),n?L=g.append("path").style("vector-effect",u?"none":"non-scaling-stroke").classed("xerror",!0):s&&(L=L.transition().duration(t.duration).ease(t.easing)),L.attr("d",E)}else L.remove()}})}})};function w(S,h,l){var t={x:h.c2p(S.x),y:l.c2p(S.y)};return S.yh!==void 0&&(t.yh=l.c2p(S.yh),t.ys=l.c2p(S.ys),C(t.ys)||(t.noYS=!0,t.ys=l.c2p(S.ys,!0))),S.xh!==void 0&&(t.xh=h.c2p(S.xh),t.xs=h.c2p(S.xs),C(t.xs)||(t.noXS=!0,t.xs=h.c2p(S.xs,!0))),t}},22800:function(nt,W,e){var M=e(45568),C=e(78766);nt.exports=function(r){r.each(function(i){var w=i[0].trace,S=w.error_y||{},h=w.error_x||{},l=M.select(this);l.selectAll("path.yerror").style("stroke-width",S.thickness+"px").call(C.stroke,S.color),h.copy_ystyle&&(h=S),l.selectAll("path.xerror").style("stroke-width",h.thickness+"px").call(C.stroke,h.color)})}},70192:function(nt,W,e){var M=e(80337),C=e(6811).hoverlabel,r=e(93049).extendFlat;nt.exports={hoverlabel:{bgcolor:r({},C.bgcolor,{arrayOk:!0}),bordercolor:r({},C.bordercolor,{arrayOk:!0}),font:M({arrayOk:!0,editType:"none"}),align:r({},C.align,{arrayOk:!0}),namelength:r({},C.namelength,{arrayOk:!0}),editType:"none"}}},83552:function(nt,W,e){var M=e(34809),C=e(33626);nt.exports=function(i){var w=i.calcdata,S=i._fullLayout;function h(a){return function(s){return M.coerceHoverinfo({hoverinfo:s},{_module:a._module},S)}}for(var l=0;l<w.length;l++){var t=w[l],n=t[0].trace;if(!C.traceIs(n,"pie-like")){var o=C.traceIs(n,"2dMap")?r:M.fillArray;o(n.hoverinfo,t,"hi",h(n)),n.hovertemplate&&o(n.hovertemplate,t,"ht"),n.hoverlabel&&(o(n.hoverlabel.bgcolor,t,"hbg"),o(n.hoverlabel.bordercolor,t,"hbc"),o(n.hoverlabel.font.size,t,"hts"),o(n.hoverlabel.font.color,t,"htc"),o(n.hoverlabel.font.family,t,"htf"),o(n.hoverlabel.font.weight,t,"htw"),o(n.hoverlabel.font.style,t,"hty"),o(n.hoverlabel.font.variant,t,"htv"),o(n.hoverlabel.namelength,t,"hnl"),o(n.hoverlabel.align,t,"hta"))}}};function r(i,w,S,h){h=h||M.identity,Array.isArray(i)&&(w[0][S]=h(i))}},94225:function(nt,W,e){var M=e(33626),C=e(38103).hover;nt.exports=function(r,i,w){var S=M.getComponentMethod("annotations","onClick")(r,r._hoverdata);w!==void 0&&C(r,i,w,!0);function h(){r.emit("plotly_click",{points:r._hoverdata,event:i})}r._hoverdata&&i&&i.target&&(S&&S.then?S.then(h):h(),i.stopImmediatePropagation&&i.stopImmediatePropagation())}},85988:function(nt){nt.exports={YANGLE:60,HOVERARROWSIZE:6,HOVERTEXTPAD:3,HOVERFONTSIZE:13,HOVERFONT:"Arial, sans-serif",HOVERMINTIME:50,HOVERID:"-hover"}},3239:function(nt,W,e){var M=e(34809),C=e(70192),r=e(26430);nt.exports=function(i,w,S,h){function l(n,o){return M.coerce(i,w,C,n,o)}var t=M.extendFlat({},h.hoverlabel);w.hovertemplate&&(t.namelength=-1),r(i,w,l,t)}},36040:function(nt,W,e){var M=e(34809);W.getSubplot=function(h){return h.subplot||h.xaxis+h.yaxis||h.geo},W.isTraceInSubplots=function(h,l){if(h.type==="splom"){for(var t=h.xaxes||[],n=h.yaxes||[],o=0;o<t.length;o++)for(var a=0;a<n.length;a++)if(l.indexOf(t[o]+n[a])!==-1)return!0;return!1}return l.indexOf(W.getSubplot(h))!==-1},W.flat=function(h,l){for(var t=new Array(h.length),n=0;n<h.length;n++)t[n]=l;return t},W.p2c=function(h,l){for(var t=new Array(h.length),n=0;n<h.length;n++)t[n]=h[n].p2c(l);return t},W.getDistanceFunction=function(h,l,t,n){return h==="closest"?n||W.quadrature(l,t):h.charAt(0)==="x"?l:t},W.getClosest=function(h,l,t){if(t.index!==!1)t.index>=0&&t.index<h.length?t.distance=0:t.index=!1;else for(var n=0;n<h.length;n++){var o=l(h[n]);o<=t.distance&&(t.index=n,t.distance=o)}return t},W.inbox=function(h,l,t){return h*l<0||h===0?t:1/0},W.quadrature=function(h,l){return function(t){var n=h(t),o=l(t);return Math.sqrt(n*n+o*o)}},W.makeEventData=function(h,l,t){var n="index"in h?h.index:h.pointNumber,o={data:l._input,fullData:l,curveNumber:l.index,pointNumber:n};if(l._indexToPoints){var a=l._indexToPoints[n];a.length===1?o.pointIndex=a[0]:o.pointIndices=a}else o.pointIndex=n;return l._module.eventData?o=l._module.eventData(o,h,l,t,n):("xVal"in h?o.x=h.xVal:"x"in h&&(o.x=h.x),"yVal"in h?o.y=h.yVal:"y"in h&&(o.y=h.y),h.xa&&(o.xaxis=h.xa),h.ya&&(o.yaxis=h.ya),h.zLabelVal!==void 0&&(o.z=h.zLabelVal)),W.appendArrayPointValue(o,l,n),o},W.appendArrayPointValue=function(h,l,t){var n=l._arrayAttrs;if(n)for(var o=0;o<n.length;o++){var a=n[o],s=r(a);if(h[s]===void 0){var u=M.nestedProperty(l,a).get(),x=i(u,t);x!==void 0&&(h[s]=x)}}},W.appendArrayMultiPointValues=function(h,l,t){var n=l._arrayAttrs;if(n)for(var o=0;o<n.length;o++){var a=n[o],s=r(a);if(h[s]===void 0){for(var u=M.nestedProperty(l,a).get(),x=new Array(t.length),m=0;m<t.length;m++)x[m]=i(u,t[m]);h[s]=x}}};var C={ids:"id",locations:"location",labels:"label",values:"value","marker.colors":"color",parents:"parent"};function r(h){return C[h]||h}function i(h,l){if(Array.isArray(l)){if(Array.isArray(h)&&Array.isArray(h[l[0]]))return h[l[0]][l[1]]}else return h[l]}var w={x:!0,y:!0},S={"x unified":!0,"y unified":!0};W.isUnifiedHover=function(h){return typeof h!="string"?!1:!!S[h]},W.isXYhover=function(h){return typeof h!="string"?!1:!!w[h]}},38103:function(nt,W,e){var M=e(45568),C=e(10721),r=e(65657),i=e(34809),w=i.pushUnique,S=i.strTranslate,h=i.strRotate,l=e(68596),t=e(30635),n=e(93134),o=e(62203),a=e(78766),s=e(14751),u=e(29714),x=e(54826).zindexSeparator,m=e(33626),y=e(36040),c=e(85988),p=e(73970),f=e(6134),T=c.YANGLE,k=Math.PI*T/180,P=1/Math.sin(k),g=Math.cos(k),A=Math.sin(k),E=c.HOVERARROWSIZE,d=c.HOVERTEXTPAD,_={box:!0,ohlc:!0,violin:!0,candlestick:!0},L={scatter:!0,scattergl:!0,splom:!0};function b(Z,ot){return Z.distance-ot.distance}W.hover=function(Z,ot,st,dt){Z=i.getGraphDiv(Z);var xt=ot.target;i.throttle(Z._fullLayout._uid+c.HOVERID,c.HOVERMINTIME,function(){D(Z,ot,st,dt,xt)})},W.loneHover=function(Z,ot){var st=!0;Array.isArray(Z)||(st=!1,Z=[Z]);var dt=ot.gd,xt=at(dt),At=ct(dt),St=Z.map(function(Ht){var ye=Ht._x0||Ht.x0||Ht.x||0,Qt=Ht._x1||Ht.x1||Ht.x||0,_e=Ht._y0||Ht.y0||Ht.y||0,ie=Ht._y1||Ht.y1||Ht.y||0,Ae=Ht.eventData;if(Ae){var Pe=Math.min(ye,Qt),Oe=Math.max(ye,Qt),je=Math.min(_e,ie),Le=Math.max(_e,ie),Ie=Ht.trace;if(m.traceIs(Ie,"gl3d")){var Ut=dt._fullLayout[Ie.scene]._scene.container,ee=Ut.offsetLeft,Kt=Ut.offsetTop;Pe+=ee,Oe+=ee,je+=Kt,Le+=Kt}Ae.bbox={x0:Pe+At,x1:Oe+At,y0:je+xt,y1:Le+xt},ot.inOut_bbox&&ot.inOut_bbox.push(Ae.bbox)}else Ae=!1;return{color:Ht.color||a.defaultLine,x0:Ht.x0||Ht.x||0,x1:Ht.x1||Ht.x||0,y0:Ht.y0||Ht.y||0,y1:Ht.y1||Ht.y||0,xLabel:Ht.xLabel,yLabel:Ht.yLabel,zLabel:Ht.zLabel,text:Ht.text,name:Ht.name,idealAlign:Ht.idealAlign,borderColor:Ht.borderColor,fontFamily:Ht.fontFamily,fontSize:Ht.fontSize,fontColor:Ht.fontColor,fontWeight:Ht.fontWeight,fontStyle:Ht.fontStyle,fontVariant:Ht.fontVariant,nameLength:Ht.nameLength,textAlign:Ht.textAlign,trace:Ht.trace||{index:0,hoverinfo:""},xa:{_offset:0},ya:{_offset:0},index:0,hovertemplate:Ht.hovertemplate||!1,hovertemplateLabels:Ht.hovertemplateLabels||!1,eventData:Ae}}),Nt=!1,Wt=V(St,{gd:dt,hovermode:"closest",rotateLabels:Nt,bgColor:ot.bgColor||a.background,container:M.select(ot.container),outerContainer:ot.outerContainer||ot.container}),Vt=Wt.hoverLabels,jt=5,Dt=0,kt=0;Vt.sort(function(Ht,ye){return Ht.y0-ye.y0}).each(function(Ht,ye){var Qt=Ht.y0-Ht.by/2;Qt-jt<Dt?Ht.offset=Dt-Qt+jt:Ht.offset=0,Dt=Qt+Ht.by+Ht.offset,ye===ot.anchorIndex&&(kt=Ht.offset)}).each(function(Ht){Ht.offset-=kt});var Bt=dt._fullLayout._invScaleX,Ot=dt._fullLayout._invScaleY;return Y(Vt,Nt,Bt,Ot),st?Vt:Vt.node()};function D(Z,ot,st,dt,xt){st||(st="xy"),typeof st=="string"&&(st=st.split(x)[0]);var At=Array.isArray(st)?st:[st],St,Nt=Z._fullLayout,Wt=Nt.hoversubplots,Vt=Nt._plots||[],jt=Vt[st],Dt=Nt._has("cartesian"),kt=ot.hovermode||Nt.hovermode,Bt=(kt||"").charAt(0)==="x",Ot=(kt||"").charAt(0)==="y",Ht,ye;if(Dt&&(Bt||Ot)&&Wt==="axis"){for(var Qt=At.length,_e=0;_e<Qt;_e++)if(St=At[_e],Vt[St]){Ht=u.getFromId(Z,St,"x"),ye=u.getFromId(Z,St,"y");var ie=(Bt?Ht:ye)._subplotsWith;if(ie&&ie.length)for(var Ae=0;Ae<ie.length;Ae++)w(At,ie[Ae])}}if(jt&&Wt!=="single"){var Pe=jt.overlays.map(function(mi){return mi.id});At=At.concat(Pe)}for(var Oe=At.length,je=new Array(Oe),Le=new Array(Oe),Ie=!1,Ut=0;Ut<Oe;Ut++)if(St=At[Ut],Vt[St])Ie=!0,je[Ut]=Vt[St].xaxis,Le[Ut]=Vt[St].yaxis;else if(Nt[St]&&Nt[St]._subplot){var ee=Nt[St]._subplot;je[Ut]=ee.xaxis,Le[Ut]=ee.yaxis}else{i.warn("Unrecognized subplot: "+St);return}if(kt&&!Ie&&(kt="closest"),["x","y","closest","x unified","y unified"].indexOf(kt)===-1||!Z.calcdata||Z.querySelector(".zoombox")||Z._dragging)return s.unhoverRaw(Z,ot);var Kt=Nt.hoverdistance;Kt===-1&&(Kt=1/0);var ne=Nt.spikedistance;ne===-1&&(ne=1/0);var zt=[],qt=[],Zt,ae,vt,Mt,Lt,$t,ge,de,sr,mr,Ve,le,pe,Te={hLinePoint:null,vLinePoint:null},Yt=!1;if(Array.isArray(ot))for(kt="array",vt=0;vt<ot.length;vt++)Lt=Z.calcdata[ot[vt].curveNumber||0],Lt&&($t=Lt[0].trace,Lt[0].trace.hoverinfo!=="skip"&&(qt.push(Lt),$t.orientation==="h"&&(Yt=!0)));else{var Ee=Z.calcdata.slice();for(Ee.sort(function(mi,$r){var Tn=mi[0].trace.zorder||0,Pn=$r[0].trace.zorder||0;return Tn-Pn}),Mt=0;Mt<Ee.length;Mt++)Lt=Ee[Mt],$t=Lt[0].trace,$t.hoverinfo!=="skip"&&y.isTraceInSubplots($t,At)&&(qt.push(Lt),$t.orientation==="h"&&(Yt=!0));var Ne=!xt,ar,Ye;if(Ne)"xpx"in ot?ar=ot.xpx:ar=je[0]._length/2,"ypx"in ot?Ye=ot.ypx:Ye=Le[0]._length/2;else{if(l.triggerHandler(Z,"plotly_beforehover",ot)===!1)return;var Jt=xt.getBoundingClientRect();ar=ot.clientX-Jt.left,Ye=ot.clientY-Jt.top,Nt._calcInverseTransform(Z);var ue=i.apply3DTransform(Nt._invTransform)(ar,Ye);if(ar=ue[0],Ye=ue[1],ar<0||ar>je[0]._length||Ye<0||Ye>Le[0]._length)return s.unhoverRaw(Z,ot)}if(ot.pointerX=ar+je[0]._offset,ot.pointerY=Ye+Le[0]._offset,"xval"in ot?Zt=y.flat(At,ot.xval):Zt=y.p2c(je,ar),"yval"in ot?ae=y.flat(At,ot.yval):ae=y.p2c(Le,Ye),!C(Zt[0])||!C(ae[0]))return i.warn("Fx.hover failed",ot,Z),s.unhoverRaw(Z,ot)}var Se=1/0;function De(mi,$r){for(Mt=0;Mt<qt.length;Mt++)if(Lt=qt[Mt],!(!Lt||!Lt[0]||!Lt[0].trace)&&($t=Lt[0].trace,!($t.visible!==!0||$t._length===0)&&["carpet","contourcarpet"].indexOf($t._module.name)===-1)){if(sr=kt,y.isUnifiedHover(sr)&&(sr=sr.charAt(0)),$t.type==="splom"?(de=0,ge=At[de]):(ge=y.getSubplot($t),de=At.indexOf(ge)),le={cd:Lt,trace:$t,xa:je[de],ya:Le[de],maxHoverDistance:Kt,maxSpikeDistance:ne,index:!1,distance:Math.min(Se,Kt),spikeDistance:1/0,xSpike:void 0,ySpike:void 0,color:a.defaultLine,name:$t.name,x0:void 0,x1:void 0,y0:void 0,y1:void 0,xLabelVal:void 0,yLabelVal:void 0,zLabelVal:void 0,text:void 0},Nt[ge]&&(le.subplot=Nt[ge]._subplot),Nt._splomScenes&&Nt._splomScenes[$t.uid]&&(le.scene=Nt._splomScenes[$t.uid]),sr==="array"){var Tn=ot[Mt];"pointNumber"in Tn?(le.index=Tn.pointNumber,sr="closest"):(sr="","xval"in Tn&&(mr=Tn.xval,sr="x"),"yval"in Tn&&(Ve=Tn.yval,sr=sr?"closest":"y"))}else mi!==void 0&&$r!==void 0?(mr=mi,Ve=$r):(mr=Zt[de],Ve=ae[de]);if(pe=zt.length,Kt!==0)if($t._module&&$t._module.hoverPoints){var Pn=$t._module.hoverPoints(le,mr,Ve,sr,{finiteRange:!0,hoverLayer:Nt._hoverlayer,hoversubplots:Wt,gd:Z});if(Pn)for(var En,li=0;li<Pn.length;li++)En=Pn[li],C(En.x0)&&C(En.y0)&&zt.push(Q(En,kt))}else i.log("Unrecognized trace type in hover:",$t);if(kt==="closest"&&zt.length>pe&&(zt.splice(0,pe),Se=zt[0].distance),Dt&&ne!==0&&zt.length===0){le.distance=ne,le.index=!1;var Cn=$t._module.hoverPoints(le,mr,Ve,"closest",{hoverLayer:Nt._hoverlayer});if(Cn&&(Cn=Cn.filter(function(qr){return qr.spikeDistance<=ne})),Cn&&Cn.length){var ci,gi=Cn.filter(function(qr){return qr.xa.showspikes&&qr.xa.spikesnap!=="hovered data"});if(gi.length){var Bi=gi[0];C(Bi.x0)&&C(Bi.y0)&&(ci=nr(Bi),(!Te.vLinePoint||Te.vLinePoint.spikeDistance>ci.spikeDistance)&&(Te.vLinePoint=ci))}var Qi=Cn.filter(function(qr){return qr.ya.showspikes&&qr.ya.spikesnap!=="hovered data"});if(Qi.length){var Ma=Qi[0];C(Ma.x0)&&C(Ma.y0)&&(ci=nr(Ma),(!Te.hLinePoint||Te.hLinePoint.spikeDistance>ci.spikeDistance)&&(Te.hLinePoint=ci))}}}}}De();function Ze(mi,$r,Tn){for(var Pn=null,En=1/0,li,Cn=0;Cn<mi.length;Cn++)Ht&&Ht._id!==mi[Cn].xa._id||ye&&ye._id!==mi[Cn].ya._id||(li=mi[Cn].spikeDistance,Tn&&Cn===0&&(li=-1/0),li<=En&&li<=$r&&(Pn=mi[Cn],En=li));return Pn}function nr(mi){return mi?{xa:mi.xa,ya:mi.ya,x:mi.xSpike!==void 0?mi.xSpike:(mi.x0+mi.x1)/2,y:mi.ySpike!==void 0?mi.ySpike:(mi.y0+mi.y1)/2,distance:mi.distance,spikeDistance:mi.spikeDistance,curveNumber:mi.trace.index,color:mi.color,pointNumber:mi.index}:null}var Ke={fullLayout:Nt,container:Nt._hoverlayer,event:ot};Z._spikepoints;var er={vLinePoint:Te.vLinePoint,hLinePoint:Te.hLinePoint};Z._spikepoints=er;var xr=function(){var mi=zt.filter(function(Tn){return Ht&&Ht._id===Tn.xa._id&&ye&&ye._id===Tn.ya._id}),$r=zt.filter(function(Tn){return!(Ht&&Ht._id===Tn.xa._id&&ye&&ye._id===Tn.ya._id)});mi.sort(b),$r.sort(b),zt=mi.concat($r),zt=$(zt,kt)};xr();var Sr=kt.charAt(0),Cr=(Sr==="x"||Sr==="y")&&zt[0]&&L[zt[0].trace.type];if(Dt&&ne!==0&&zt.length!==0){var Er=zt.filter(function(mi){return mi.ya.showspikes}),Lr=Ze(Er,ne,Cr);Te.hLinePoint=nr(Lr);var Ur=zt.filter(function(mi){return mi.xa.showspikes}),zr=Ze(Ur,ne,Cr);Te.vLinePoint=nr(zr)}if(zt.length===0){var te=s.unhoverRaw(Z,ot);return Dt&&(Te.hLinePoint!==null||Te.vLinePoint!==null)&&lt()&&ft(Z,Te,Ke),te}if(Dt&&lt()&&ft(Z,Te,Ke),y.isXYhover(sr)&&zt[0].length!==0&&zt[0].trace.type!=="splom"){var he=zt[0];_[he.trace.type]?zt=zt.filter(function(mi){return mi.trace.index===he.trace.index}):zt=[he];var Je=zt.length,br=H("x",he,Nt),pr=H("y",he,Nt);De(br,pr);var We=[],hr={},Ar=0,yr=function(mi){var $r=_[mi.trace.type]?B(mi):mi.trace.index;if(!hr[$r])Ar++,hr[$r]=Ar,We.push(mi);else{var Tn=hr[$r]-1,Pn=We[Tn];Tn>0&&Math.abs(mi.distance)<Math.abs(Pn.distance)&&(We[Tn]=mi)}},dr;for(dr=0;dr<Je;dr++)yr(zt[dr]);for(dr=zt.length-1;dr>Je-1;dr--)yr(zt[dr]);zt=We,xr()}var Rr=Z._hoverdata,Qr=[],Xr=at(Z),Dn=ct(Z);for(vt=0;vt<zt.length;vt++){var on=zt[vt],Hn=y.makeEventData(on,on.trace,on.cd);if(on.hovertemplate!==!1){var Fn=!1;on.cd[on.index]&&on.cd[on.index].ht&&(Fn=on.cd[on.index].ht),on.hovertemplate=Fn||on.trace.hovertemplate||!1}if(on.xa&&on.ya){var jr=on.x0+on.xa._offset,Pr=on.x1+on.xa._offset,fn=on.y0+on.ya._offset,nn=on.y1+on.ya._offset,Rn=Math.min(jr,Pr),On=Math.max(jr,Pr),vn=Math.min(fn,nn),Gn=Math.max(fn,nn);Hn.bbox={x0:Rn+Dn,x1:On+Dn,y0:vn+Xr,y1:Gn+Xr}}on.eventData=[Hn],Qr.push(Hn)}Z._hoverdata=Qr;var ii=kt==="y"&&(qt.length>1||zt.length>1)||kt==="closest"&&Yt&&zt.length>1,Wi=a.combine(Nt.plot_bgcolor||a.background,Nt.paper_bgcolor),ra=V(zt,{gd:Z,hovermode:kt,rotateLabels:ii,bgColor:Wi,container:Nt._hoverlayer,outerContainer:Nt._paper.node(),commonLabelOpts:Nt.hoverlabel,hoverdistance:Nt.hoverdistance}),vi=ra.hoverLabels;if(y.isUnifiedHover(kt)||(F(vi,ii,Nt,ra.commonLabelBoundingBox),Y(vi,ii,Nt._invScaleX,Nt._invScaleY)),xt&&xt.tagName){var Oi=m.getComponentMethod("annotations","hasClickToShow")(Z,Qr);n(M.select(xt),Oi?"pointer":"")}!xt||dt||!ut(Z,ot,Rr)||(Rr&&Z.emit("plotly_unhover",{event:ot,points:Rr}),Z.emit("plotly_hover",{event:ot,points:Z._hoverdata,xaxes:je,yaxes:Le,xvals:Zt,yvals:ae}))}function B(Z){return[Z.trace.index,Z.index,Z.x0,Z.y0,Z.name,Z.attr,Z.xa?Z.xa._id:"",Z.ya?Z.ya._id:""].join(",")}var I=/<extra>([\s\S]*)<\/extra>/;function V(Z,ot){var st=ot.gd,dt=st._fullLayout,xt=ot.hovermode,At=ot.rotateLabels,St=ot.bgColor,Nt=ot.container,Wt=ot.outerContainer,Vt=ot.commonLabelOpts||{};if(Z.length===0)return[[]];var jt=ot.fontFamily||c.HOVERFONT,Dt=ot.fontSize||c.HOVERFONTSIZE,kt=ot.fontWeight||dt.font.weight,Bt=ot.fontStyle||dt.font.style,Ot=ot.fontVariant||dt.font.variant,Ht=ot.fontTextcase||dt.font.textcase,ye=ot.fontLineposition||dt.font.lineposition,Qt=ot.fontShadow||dt.font.shadow,_e=Z[0],ie=_e.xa,Ae=_e.ya,Pe=xt.charAt(0),Oe=Pe+"Label",je=_e[Oe];if(je===void 0&&ie.type==="multicategory")for(var Le=0;Le<Z.length&&(je=Z[Le][Oe],je===void 0);Le++);var Ie=et(st,Wt),Ut=Ie.top,ee=Ie.width,Kt=Ie.height,ne=je!==void 0&&_e.distance<=ot.hoverdistance&&(xt==="x"||xt==="y");if(ne){var zt=!0,qt,Zt;for(qt=0;qt<Z.length;qt++)if(zt&&Z[qt].zLabel===void 0&&(zt=!1),Zt=Z[qt].hoverinfo||Z[qt].trace.hoverinfo,Zt){var ae=Array.isArray(Zt)?Zt:Zt.split("+");if(ae.indexOf("all")===-1&&ae.indexOf(xt)===-1){ne=!1;break}}zt&&(ne=!1)}var vt=Nt.selectAll("g.axistext").data(ne?[0]:[]);vt.enter().append("g").classed("axistext",!0),vt.exit().remove();var Mt={minX:0,maxX:0,minY:0,maxY:0};if(vt.each(function(){var zr=M.select(this),te=i.ensureSingle(zr,"path","",function(On){On.style({"stroke-width":"1px"})}),he=i.ensureSingle(zr,"text","",function(On){On.attr("data-notex",1)}),Je=Vt.bgcolor||a.defaultLine,br=Vt.bordercolor||a.contrast(Je),pr=a.contrast(Je),We=Vt.font,hr={weight:We.weight||kt,style:We.style||Bt,variant:We.variant||Ot,textcase:We.textcase||Ht,lineposition:We.lineposition||ye,shadow:We.shadow||Qt,family:We.family||jt,size:We.size||Dt,color:We.color||pr};te.style({fill:Je,stroke:br}),he.text(je).call(o.font,hr).call(t.positionText,0,0).call(t.convertToTspans,st),zr.attr("transform","");var Ar=et(st,he.node()),yr,dr;if(xt==="x"){var Rr=ie.side==="top"?"-":"";he.attr("text-anchor","middle").call(t.positionText,0,ie.side==="top"?Ut-Ar.bottom-E-d:Ut-Ar.top+E+d),yr=ie._offset+(_e.x0+_e.x1)/2,dr=Ae._offset+(ie.side==="top"?0:Ae._length);var Qr=Ar.width/2+d,Xr=yr;yr<Qr?Xr=Qr:yr>dt.width-Qr&&(Xr=dt.width-Qr),te.attr("d","M"+(yr-Xr)+",0L"+(yr-Xr+E)+","+Rr+E+"H"+Qr+"v"+Rr+(d*2+Ar.height)+"H"+-Qr+"V"+Rr+E+"H"+(yr-Xr-E)+"Z"),yr=Xr,Mt.minX=yr-Qr,Mt.maxX=yr+Qr,ie.side==="top"?(Mt.minY=dr-(d*2+Ar.height),Mt.maxY=dr-d):(Mt.minY=dr+d,Mt.maxY=dr+(d*2+Ar.height))}else{var Dn,on,Hn;Ae.side==="right"?(Dn="start",on=1,Hn="",yr=ie._offset+ie._length):(Dn="end",on=-1,Hn="-",yr=ie._offset),dr=Ae._offset+(_e.y0+_e.y1)/2,he.attr("text-anchor",Dn),te.attr("d","M0,0L"+Hn+E+","+E+"V"+(d+Ar.height/2)+"h"+Hn+(d*2+Ar.width)+"V-"+(d+Ar.height/2)+"H"+Hn+E+"V-"+E+"Z"),Mt.minY=dr-(d+Ar.height/2),Mt.maxY=dr+(d+Ar.height/2),Ae.side==="right"?(Mt.minX=yr+E,Mt.maxX=yr+E+(d*2+Ar.width)):(Mt.minX=yr-E-(d*2+Ar.width),Mt.maxX=yr-E);var Fn=Ar.height/2,jr=Ut-Ar.top-Fn,Pr="clip"+dt._uid+"commonlabel"+Ae._id,fn;if(yr<Ar.width+2*d+E){fn="M-"+(E+d)+"-"+Fn+"h-"+(Ar.width-d)+"V"+Fn+"h"+(Ar.width-d)+"Z";var nn=Ar.width-yr+d;t.positionText(he,nn,jr),Dn==="end"&&he.selectAll("tspan").each(function(){var On=M.select(this),vn=o.tester.append("text").text(On.text()).call(o.font,hr),Gn=et(st,vn.node());Math.round(Gn.width)<Math.round(Ar.width)&&On.attr("x",nn-Gn.width),vn.remove()})}else t.positionText(he,on*(d+E),jr),fn=null;var Rn=dt._topclips.selectAll("#"+Pr).data(fn?[0]:[]);Rn.enter().append("clipPath").attr("id",Pr).append("path"),Rn.exit().remove(),Rn.select("path").attr("d",fn),o.setClipUrl(he,fn?Pr:null,st)}zr.attr("transform",S(yr,dr))}),y.isUnifiedHover(xt)){Nt.selectAll("g.hovertext").remove();var Lt=Z.filter(function(zr){return zr.hoverinfo!=="none"});if(Lt.length===0)return[];var $t=dt.hoverlabel,ge=$t.font,de={showlegend:!0,legend:{title:{text:je,font:ge},font:ge,bgcolor:$t.bgcolor,bordercolor:$t.bordercolor,borderwidth:1,tracegroupgap:7,traceorder:dt.legend?dt.legend.traceorder:void 0,orientation:"v"}},sr={font:ge};p(de,sr,st._fullData);var mr=sr.legend;mr.entries=[];for(var Ve=0;Ve<Lt.length;Ve++){var le=Lt[Ve];if(le.hoverinfo!=="none"){var pe=N(le,!0,xt,dt,je),Te=pe[0],Yt=pe[1];le.name=Yt,Yt!==""?le.text=Yt+" : "+Te:le.text=Te;var Ee=le.cd[le.index];Ee&&(Ee.mc&&(le.mc=Ee.mc),Ee.mcc&&(le.mc=Ee.mcc),Ee.mlc&&(le.mlc=Ee.mlc),Ee.mlcc&&(le.mlc=Ee.mlcc),Ee.mlw&&(le.mlw=Ee.mlw),Ee.mrc&&(le.mrc=Ee.mrc),Ee.dir&&(le.dir=Ee.dir)),le._distinct=!0,mr.entries.push([le])}}mr.entries.sort(function(zr,te){return zr[0].trace.index-te[0].trace.index}),mr.layer=Nt,mr._inHover=!0,mr._groupTitleFont=$t.grouptitlefont,f(st,mr);var Ne=Nt.select("g.legend"),ar=et(st,Ne.node()),Ye=ar.width+2*d,Jt=ar.height+2*d,ue=Lt[0],Se=(ue.x0+ue.x1)/2,De=(ue.y0+ue.y1)/2,Ze=!(m.traceIs(ue.trace,"bar-like")||m.traceIs(ue.trace,"box-violin")),nr,Ke;Pe==="y"?Ze?(Ke=De-d,nr=De+d):(Ke=Math.min.apply(null,Lt.map(function(zr){return Math.min(zr.y0,zr.y1)})),nr=Math.max.apply(null,Lt.map(function(zr){return Math.max(zr.y0,zr.y1)}))):Ke=nr=i.mean(Lt.map(function(zr){return(zr.y0+zr.y1)/2}))-Jt/2;var er,xr;Pe==="x"?Ze?(er=Se+d,xr=Se-d):(er=Math.max.apply(null,Lt.map(function(zr){return Math.max(zr.x0,zr.x1)})),xr=Math.min.apply(null,Lt.map(function(zr){return Math.min(zr.x0,zr.x1)}))):er=xr=i.mean(Lt.map(function(zr){return(zr.x0+zr.x1)/2}))-Ye/2;var Sr=ie._offset,Cr=Ae._offset;nr+=Cr,er+=Sr,xr+=Sr-Ye,Ke+=Cr-Jt;var Er,Lr;return er+Ye<ee&&er>=0?Er=er:xr+Ye<ee&&xr>=0?Er=xr:Sr+Ye<ee?Er=Sr:er-Se<Se-xr+Ye?Er=ee-Ye:Er=0,Er+=d,nr+Jt<Kt&&nr>=0?Lr=nr:Ke+Jt<Kt&&Ke>=0?Lr=Ke:Cr+Jt<Kt?Lr=Cr:nr-De<De-Ke+Jt?Lr=Kt-Jt:Lr=0,Lr+=d,Ne.attr("transform",S(Er-1,Lr-1)),Ne}var Ur=Nt.selectAll("g.hovertext").data(Z,function(zr){return B(zr)});return Ur.enter().append("g").classed("hovertext",!0).each(function(){var zr=M.select(this);zr.append("rect").call(a.fill,a.addOpacity(St,.8)),zr.append("text").classed("name",!0),zr.append("path").style("stroke-width","1px"),zr.append("text").classed("nums",!0).call(o.font,{weight:kt,style:Bt,variant:Ot,textcase:Ht,lineposition:ye,shadow:Qt,family:jt,size:Dt})}),Ur.exit().remove(),Ur.each(function(zr){var te=M.select(this).attr("transform",""),he=zr.color;Array.isArray(he)&&(he=he[zr.eventData[0].pointNumber]);var Je=zr.bgcolor||he,br=a.combine(a.opacity(Je)?Je:a.defaultLine,St),pr=a.combine(a.opacity(he)?he:a.defaultLine,St),We=zr.borderColor||a.contrast(br),hr=N(zr,ne,xt,dt,je,te),Ar=hr[0],yr=hr[1],dr=te.select("text.nums").call(o.font,{family:zr.fontFamily||jt,size:zr.fontSize||Dt,color:zr.fontColor||We,weight:zr.fontWeight||kt,style:zr.fontStyle||Bt,variant:zr.fontVariant||Ot,textcase:zr.fontTextcase||Ht,lineposition:zr.fontLineposition||ye,shadow:zr.fontShadow||Qt}).text(Ar).attr("data-notex",1).call(t.positionText,0,0).call(t.convertToTspans,st),Rr=te.select("text.name"),Qr=0,Xr=0;if(yr&&yr!==Ar){Rr.call(o.font,{family:zr.fontFamily||jt,size:zr.fontSize||Dt,color:pr,weight:zr.fontWeight||kt,style:zr.fontStyle||Bt,variant:zr.fontVariant||Ot,textcase:zr.fontTextcase||Ht,lineposition:zr.fontLineposition||ye,shadow:zr.fontShadow||Qt}).text(yr).attr("data-notex",1).call(t.positionText,0,0).call(t.convertToTspans,st);var Dn=et(st,Rr.node());Qr=Dn.width+2*d,Xr=Dn.height+2*d}else Rr.remove(),te.select("rect").remove();te.select("path").style({fill:br,stroke:We});var on=zr.xa._offset+(zr.x0+zr.x1)/2,Hn=zr.ya._offset+(zr.y0+zr.y1)/2,Fn=Math.abs(zr.x1-zr.x0),jr=Math.abs(zr.y1-zr.y0),Pr=et(st,dr.node()),fn=Pr.width/dt._invScaleX,nn=Pr.height/dt._invScaleY;zr.ty0=(Ut-Pr.top)/dt._invScaleY,zr.bx=fn+2*d,zr.by=Math.max(nn+2*d,Xr),zr.anchor="start",zr.txwidth=fn,zr.tx2width=Qr,zr.offset=0;var Rn=(fn+E+d+Qr)*dt._invScaleX,On,vn;if(At)zr.pos=on,On=Hn+jr/2+Rn<=Kt,vn=Hn-jr/2-Rn>=0,(zr.idealAlign==="top"||!On)&&vn?(Hn-=jr/2,zr.anchor="end"):On?(Hn+=jr/2,zr.anchor="start"):zr.anchor="middle",zr.crossPos=Hn;else{if(zr.pos=Hn,On=on+Fn/2+Rn<=ee,vn=on-Fn/2-Rn>=0,(zr.idealAlign==="left"||!On)&&vn)on-=Fn/2,zr.anchor="end";else if(On)on+=Fn/2,zr.anchor="start";else{zr.anchor="middle";var Gn=Rn/2,ii=on+Gn-ee,Wi=on-Gn;ii>0&&(on-=ii),Wi<0&&(on+=-Wi)}zr.crossPos=on}dr.attr("text-anchor",zr.anchor),Qr&&Rr.attr("text-anchor",zr.anchor),te.attr("transform",S(on,Hn)+(At?h(T):""))}),{hoverLabels:Ur,commonLabelBoundingBox:Mt}}function N(Z,ot,st,dt,xt,At){var St="",Nt="";Z.nameOverride!==void 0&&(Z.name=Z.nameOverride),Z.name&&(Z.trace._meta&&(Z.name=i.templateString(Z.name,Z.trace._meta)),St=K(Z.name,Z.nameLength));var Wt=st.charAt(0),Vt=Wt==="x"?"y":"x";Z.zLabel!==void 0?(Z.xLabel!==void 0&&(Nt+="x: "+Z.xLabel+"<br>"),Z.yLabel!==void 0&&(Nt+="y: "+Z.yLabel+"<br>"),Z.trace.type!=="choropleth"&&Z.trace.type!=="choroplethmapbox"&&Z.trace.type!=="choroplethmap"&&(Nt+=(Nt?"z: ":"")+Z.zLabel)):ot&&Z[Wt+"Label"]===xt?Nt=Z[Vt+"Label"]||"":Z.xLabel===void 0?Z.yLabel!==void 0&&Z.trace.type!=="scattercarpet"&&(Nt=Z.yLabel):Z.yLabel===void 0?Nt=Z.xLabel:Nt="("+Z.xLabel+", "+Z.yLabel+")",(Z.text||Z.text===0)&&!Array.isArray(Z.text)&&(Nt+=(Nt?"<br>":"")+Z.text),Z.extraText!==void 0&&(Nt+=(Nt?"<br>":"")+Z.extraText),At&&Nt===""&&!Z.hovertemplate&&(St===""&&At.remove(),Nt=St);var jt=Z.hovertemplate||!1;if(jt){var Dt=Z.hovertemplateLabels||Z;Z[Wt+"Label"]!==xt&&(Dt[Wt+"other"]=Dt[Wt+"Val"],Dt[Wt+"otherLabel"]=Dt[Wt+"Label"]),Nt=i.hovertemplateString(jt,Dt,dt._d3locale,Z.eventData[0]||{},Z.trace._meta),Nt=Nt.replace(I,function(kt,Bt){return St=K(Bt,Z.nameLength),""})}return[Nt,St]}function F(Z,ot,st,dt){var xt=ot?"xa":"ya",At=ot?"ya":"xa",St=0,Nt=1,Wt=Z.size(),Vt=new Array(Wt),jt=0,Dt=dt.minX,kt=dt.maxX,Bt=dt.minY,Ot=dt.maxY,Ht=function(Zt){return Zt*st._invScaleX},ye=function(Zt){return Zt*st._invScaleY};Z.each(function(Zt){var ae=Zt[xt],vt=Zt[At],Mt=ae._id.charAt(0)==="x",Lt=ae.range;jt===0&&Lt&&Lt[0]>Lt[1]!==Mt&&(Nt=-1);var $t=0,ge=Mt?st.width:st.height;if(st.hovermode==="x"||st.hovermode==="y"){var de=U(Zt,ot),sr=Zt.anchor,mr=sr==="end"?-1:1,Ve,le;if(sr==="middle")Ve=Zt.crossPos+(Mt?ye(de.y-Zt.by/2):Ht(Zt.bx/2+Zt.tx2width/2)),le=Ve+(Mt?ye(Zt.by):Ht(Zt.bx));else if(Mt)Ve=Zt.crossPos+ye(E+de.y)-ye(Zt.by/2-E),le=Ve+ye(Zt.by);else{var pe=Ht(mr*E+de.x),Te=pe+Ht(mr*Zt.bx);Ve=Zt.crossPos+Math.min(pe,Te),le=Zt.crossPos+Math.max(pe,Te)}Mt?Bt!==void 0&&Ot!==void 0&&Math.min(le,Ot)-Math.max(Ve,Bt)>1&&(vt.side==="left"?($t=vt._mainLinePosition,ge=st.width):ge=vt._mainLinePosition):Dt!==void 0&&kt!==void 0&&Math.min(le,kt)-Math.max(Ve,Dt)>1&&(vt.side==="top"?($t=vt._mainLinePosition,ge=st.height):ge=vt._mainLinePosition)}Vt[jt++]=[{datum:Zt,traceIndex:Zt.trace.index,dp:0,pos:Zt.pos,posref:Zt.posref,size:Zt.by*(Mt?P:1)/2,pmin:$t,pmax:ge}]}),Vt.sort(function(Zt,ae){return Zt[0].posref-ae[0].posref||Nt*(ae[0].traceIndex-Zt[0].traceIndex)});var Qt,_e,ie,Ae,Pe,Oe,je;function Le(Zt){var ae=Zt[0],vt=Zt[Zt.length-1];if(_e=ae.pmin-ae.pos-ae.dp+ae.size,ie=vt.pos+vt.dp+vt.size-ae.pmax,_e>.01){for(Pe=Zt.length-1;Pe>=0;Pe--)Zt[Pe].dp+=_e;Qt=!1}if(!(ie<.01)){if(_e<-.01){for(Pe=Zt.length-1;Pe>=0;Pe--)Zt[Pe].dp-=ie;Qt=!1}if(Qt){var Mt=0;for(Ae=0;Ae<Zt.length;Ae++)Oe=Zt[Ae],Oe.pos+Oe.dp+Oe.size>ae.pmax&&Mt++;for(Ae=Zt.length-1;Ae>=0&&!(Mt<=0);Ae--)Oe=Zt[Ae],Oe.pos>ae.pmax-1&&(Oe.del=!0,Mt--);for(Ae=0;Ae<Zt.length&&!(Mt<=0);Ae++)if(Oe=Zt[Ae],Oe.pos<ae.pmin+1)for(Oe.del=!0,Mt--,ie=Oe.size*2,Pe=Zt.length-1;Pe>=0;Pe--)Zt[Pe].dp-=ie;for(Ae=Zt.length-1;Ae>=0&&!(Mt<=0);Ae--)Oe=Zt[Ae],Oe.pos+Oe.dp+Oe.size>ae.pmax&&(Oe.del=!0,Mt--)}}}for(;!Qt&&St<=Wt;){for(St++,Qt=!0,Ae=0;Ae<Vt.length-1;){var Ie=Vt[Ae],Ut=Vt[Ae+1],ee=Ie[Ie.length-1],Kt=Ut[0];if(_e=ee.pos+ee.dp+ee.size-Kt.pos-Kt.dp+Kt.size,_e>.01){for(Pe=Ut.length-1;Pe>=0;Pe--)Ut[Pe].dp+=_e;for(Ie.push.apply(Ie,Ut),Vt.splice(Ae+1,1),je=0,Pe=Ie.length-1;Pe>=0;Pe--)je+=Ie[Pe].dp;for(ie=je/Ie.length,Pe=Ie.length-1;Pe>=0;Pe--)Ie[Pe].dp-=ie;Qt=!1}else Ae++}Vt.forEach(Le)}for(Ae=Vt.length-1;Ae>=0;Ae--){var ne=Vt[Ae];for(Pe=ne.length-1;Pe>=0;Pe--){var zt=ne[Pe],qt=zt.datum;qt.offset=zt.dp,qt.del=zt.del}}}function U(Z,ot){var st=0,dt=Z.offset;return ot&&(dt*=-A,st=Z.offset*g),{x:st,y:dt}}function G(Z){var ot={start:1,end:-1,middle:0}[Z.anchor],st=ot*(E+d),dt=st+ot*(Z.txwidth+d),xt=Z.anchor==="middle";return xt&&(st-=Z.tx2width/2,dt+=Z.txwidth/2+d),{alignShift:ot,textShiftX:st,text2ShiftX:dt}}function Y(Z,ot,st,dt){var xt=function(St){return St*st},At=function(St){return St*dt};Z.each(function(St){var Nt=M.select(this);if(St.del)return Nt.remove();var Wt=Nt.select("text.nums"),Vt=St.anchor,jt=Vt==="end"?-1:1,Dt=G(St),kt=U(St,ot),Bt=kt.x,Ot=kt.y,Ht=Vt==="middle";Nt.select("path").attr("d",Ht?"M-"+xt(St.bx/2+St.tx2width/2)+","+At(Ot-St.by/2)+"h"+xt(St.bx)+"v"+At(St.by)+"h-"+xt(St.bx)+"Z":"M0,0L"+xt(jt*E+Bt)+","+At(E+Ot)+"v"+At(St.by/2-E)+"h"+xt(jt*St.bx)+"v-"+At(St.by)+"H"+xt(jt*E+Bt)+"V"+At(Ot-E)+"Z");var ye=Bt+Dt.textShiftX,Qt=Ot+St.ty0-St.by/2+d,_e=St.textAlign||"auto";_e!=="auto"&&(_e==="left"&&Vt!=="start"?(Wt.attr("text-anchor","start"),ye=Ht?-St.bx/2-St.tx2width/2+d:-St.bx-d):_e==="right"&&Vt!=="end"&&(Wt.attr("text-anchor","end"),ye=Ht?St.bx/2-St.tx2width/2-d:St.bx+d)),Wt.call(t.positionText,xt(ye),At(Qt)),St.tx2width&&(Nt.select("text.name").call(t.positionText,xt(Dt.text2ShiftX+Dt.alignShift*d+Bt),At(Ot+St.ty0-St.by/2+d)),Nt.select("rect").call(o.setRect,xt(Dt.text2ShiftX+(Dt.alignShift-1)*St.tx2width/2+Bt),At(Ot-St.by/2-1),xt(St.tx2width),At(St.by+2)))})}function Q(Z,ot){var st=Z.index,dt=Z.trace||{},xt=Z.cd[0],At=Z.cd[st]||{};function St(kt){return kt||C(kt)&&kt===0}var Nt=Array.isArray(st)?function(kt,Bt){var Ot=i.castOption(xt,st,kt);return St(Ot)?Ot:i.extractOption({},dt,"",Bt)}:function(kt,Bt){return i.extractOption(At,dt,kt,Bt)};function Wt(kt,Bt,Ot){var Ht=Nt(Bt,Ot);St(Ht)&&(Z[kt]=Ht)}if(Wt("hoverinfo","hi","hoverinfo"),Wt("bgcolor","hbg","hoverlabel.bgcolor"),Wt("borderColor","hbc","hoverlabel.bordercolor"),Wt("fontFamily","htf","hoverlabel.font.family"),Wt("fontSize","hts","hoverlabel.font.size"),Wt("fontColor","htc","hoverlabel.font.color"),Wt("fontWeight","htw","hoverlabel.font.weight"),Wt("fontStyle","hty","hoverlabel.font.style"),Wt("fontVariant","htv","hoverlabel.font.variant"),Wt("nameLength","hnl","hoverlabel.namelength"),Wt("textAlign","hta","hoverlabel.align"),Z.posref=ot==="y"||ot==="closest"&&dt.orientation==="h"?Z.xa._offset+(Z.x0+Z.x1)/2:Z.ya._offset+(Z.y0+Z.y1)/2,Z.x0=i.constrain(Z.x0,0,Z.xa._length),Z.x1=i.constrain(Z.x1,0,Z.xa._length),Z.y0=i.constrain(Z.y0,0,Z.ya._length),Z.y1=i.constrain(Z.y1,0,Z.ya._length),Z.xLabelVal!==void 0&&(Z.xLabel="xLabel"in Z?Z.xLabel:u.hoverLabelText(Z.xa,Z.xLabelVal,dt.xhoverformat),Z.xVal=Z.xa.c2d(Z.xLabelVal)),Z.yLabelVal!==void 0&&(Z.yLabel="yLabel"in Z?Z.yLabel:u.hoverLabelText(Z.ya,Z.yLabelVal,dt.yhoverformat),Z.yVal=Z.ya.c2d(Z.yLabelVal)),Z.zLabelVal!==void 0&&Z.zLabel===void 0&&(Z.zLabel=String(Z.zLabelVal)),!isNaN(Z.xerr)&&!(Z.xa.type==="log"&&Z.xerr<=0)){var Vt=u.tickText(Z.xa,Z.xa.c2l(Z.xerr),"hover").text;Z.xerrneg!==void 0?Z.xLabel+=" +"+Vt+" / -"+u.tickText(Z.xa,Z.xa.c2l(Z.xerrneg),"hover").text:Z.xLabel+=" \xB1 "+Vt,ot==="x"&&(Z.distance+=1)}if(!isNaN(Z.yerr)&&!(Z.ya.type==="log"&&Z.yerr<=0)){var jt=u.tickText(Z.ya,Z.ya.c2l(Z.yerr),"hover").text;Z.yerrneg!==void 0?Z.yLabel+=" +"+jt+" / -"+u.tickText(Z.ya,Z.ya.c2l(Z.yerrneg),"hover").text:Z.yLabel+=" \xB1 "+jt,ot==="y"&&(Z.distance+=1)}var Dt=Z.hoverinfo||Z.trace.hoverinfo;return Dt&&Dt!=="all"&&(Dt=Array.isArray(Dt)?Dt:Dt.split("+"),Dt.indexOf("x")===-1&&(Z.xLabel=void 0),Dt.indexOf("y")===-1&&(Z.yLabel=void 0),Dt.indexOf("z")===-1&&(Z.zLabel=void 0),Dt.indexOf("text")===-1&&(Z.text=void 0),Dt.indexOf("name")===-1&&(Z.name=void 0)),Z}function ft(Z,ot,st){var dt=st.container,xt=st.fullLayout,At=xt._size,St=st.event,Nt=!!ot.hLinePoint,Wt=!!ot.vLinePoint,Vt,jt;if(dt.selectAll(".spikeline").remove(),!!(Wt||Nt)){var Dt=a.combine(xt.plot_bgcolor,xt.paper_bgcolor);if(Nt){var kt=ot.hLinePoint,Bt,Ot;Vt=kt&&kt.xa,jt=kt&&kt.ya;var Ht=jt.spikesnap;Ht==="cursor"?(Bt=St.pointerX,Ot=St.pointerY):(Bt=Vt._offset+kt.x,Ot=jt._offset+kt.y);var ye=r.readability(kt.color,Dt)<1.5?a.contrast(Dt):kt.color,Qt=jt.spikemode,_e=jt.spikethickness,ie=jt.spikecolor||ye,Ae=u.getPxPosition(Z,jt),Pe,Oe;if(Qt.indexOf("toaxis")!==-1||Qt.indexOf("across")!==-1){if(Qt.indexOf("toaxis")!==-1&&(Pe=Ae,Oe=Bt),Qt.indexOf("across")!==-1){var je=jt._counterDomainMin,Le=jt._counterDomainMax;jt.anchor==="free"&&(je=Math.min(je,jt.position),Le=Math.max(Le,jt.position)),Pe=At.l+je*At.w,Oe=At.l+Le*At.w}dt.insert("line",":first-child").attr({x1:Pe,x2:Oe,y1:Ot,y2:Ot,"stroke-width":_e,stroke:ie,"stroke-dasharray":o.dashStyle(jt.spikedash,_e)}).classed("spikeline",!0).classed("crisp",!0),dt.insert("line",":first-child").attr({x1:Pe,x2:Oe,y1:Ot,y2:Ot,"stroke-width":_e+2,stroke:Dt}).classed("spikeline",!0).classed("crisp",!0)}Qt.indexOf("marker")!==-1&&dt.insert("circle",":first-child").attr({cx:Ae+(jt.side!=="right"?_e:-_e),cy:Ot,r:_e,fill:ie}).classed("spikeline",!0)}if(Wt){var Ie=ot.vLinePoint,Ut,ee;Vt=Ie&&Ie.xa,jt=Ie&&Ie.ya;var Kt=Vt.spikesnap;Kt==="cursor"?(Ut=St.pointerX,ee=St.pointerY):(Ut=Vt._offset+Ie.x,ee=jt._offset+Ie.y);var ne=r.readability(Ie.color,Dt)<1.5?a.contrast(Dt):Ie.color,zt=Vt.spikemode,qt=Vt.spikethickness,Zt=Vt.spikecolor||ne,ae=u.getPxPosition(Z,Vt),vt,Mt;if(zt.indexOf("toaxis")!==-1||zt.indexOf("across")!==-1){if(zt.indexOf("toaxis")!==-1&&(vt=ae,Mt=ee),zt.indexOf("across")!==-1){var Lt=Vt._counterDomainMin,$t=Vt._counterDomainMax;Vt.anchor==="free"&&(Lt=Math.min(Lt,Vt.position),$t=Math.max($t,Vt.position)),vt=At.t+(1-$t)*At.h,Mt=At.t+(1-Lt)*At.h}dt.insert("line",":first-child").attr({x1:Ut,x2:Ut,y1:vt,y2:Mt,"stroke-width":qt,stroke:Zt,"stroke-dasharray":o.dashStyle(Vt.spikedash,qt)}).classed("spikeline",!0).classed("crisp",!0),dt.insert("line",":first-child").attr({x1:Ut,x2:Ut,y1:vt,y2:Mt,"stroke-width":qt+2,stroke:Dt}).classed("spikeline",!0).classed("crisp",!0)}zt.indexOf("marker")!==-1&&dt.insert("circle",":first-child").attr({cx:Ut,cy:ae-(Vt.side!=="top"?qt:-qt),r:qt,fill:Zt}).classed("spikeline",!0)}}}function ut(Z,ot,st){if(!st||st.length!==Z._hoverdata.length)return!0;for(var dt=st.length-1;dt>=0;dt--){var xt=st[dt],At=Z._hoverdata[dt];if(xt.curveNumber!==At.curveNumber||String(xt.pointNumber)!==String(At.pointNumber)||String(xt.pointNumbers)!==String(At.pointNumbers))return!0}return!1}function lt(Z,ot){return!0}function K(Z,ot){return t.plainText(Z||"",{len:ot,allowedTags:["br","sub","sup","b","i","em","s","u"]})}function $(Z,ot){for(var st=ot.charAt(0),dt=[],xt=[],At=[],St=0;St<Z.length;St++){var Nt=Z[St];m.traceIs(Nt.trace,"bar-like")||m.traceIs(Nt.trace,"box-violin")?At.push(Nt):Nt.trace[st+"period"]?xt.push(Nt):dt.push(Nt)}return dt.concat(xt).concat(At)}function H(Z,ot,st){var dt=ot[Z+"a"],xt=ot[Z+"Val"],At=ot.cd[0];if(dt.type==="category"||dt.type==="multicategory")xt=dt._categoriesMap[xt];else if(dt.type==="date"){var St=ot.trace[Z+"periodalignment"];if(St){var Nt=ot.cd[ot.index],Wt=Nt[Z+"Start"];Wt===void 0&&(Wt=Nt[Z]);var Vt=Nt[Z+"End"];Vt===void 0&&(Vt=Nt[Z]);var jt=Vt-Wt;St==="end"?xt+=jt:St==="middle"&&(xt+=jt/2)}xt=dt.d2c(xt)}return At&&At.t&&At.t.posLetter===dt._id&&(st.boxmode==="group"||st.violinmode==="group")&&(xt+=At.t.dPos),xt}function at(Z){return Z.offsetTop+Z.clientTop}function ct(Z){return Z.offsetLeft+Z.clientLeft}function et(Z,ot){var st=Z._fullLayout,dt=ot.getBoundingClientRect(),xt=dt.left,At=dt.top,St=xt+dt.width,Nt=At+dt.height,Wt=i.apply3DTransform(st._invTransform)(xt,At),Vt=i.apply3DTransform(st._invTransform)(St,Nt),jt=Wt[0],Dt=Wt[1],kt=Vt[0],Bt=Vt[1];return{x:jt,y:Dt,width:kt-jt,height:Bt-Dt,top:Math.min(Dt,Bt),left:Math.min(jt,kt),right:Math.max(jt,kt),bottom:Math.max(Dt,Bt)}}},26430:function(nt,W,e){var M=e(34809),C=e(78766),r=e(36040).isUnifiedHover;nt.exports=function(i,w,S,h){h=h||{};var l=w.legend;function t(n){h.font[n]||(h.font[n]=l?w.legend.font[n]:w.font[n])}w&&r(w.hovermode)&&(h.font||(h.font={}),t("size"),t("family"),t("color"),t("weight"),t("style"),t("variant"),l?(h.bgcolor||(h.bgcolor=C.combine(w.legend.bgcolor,w.paper_bgcolor)),h.bordercolor||(h.bordercolor=w.legend.bordercolor)):h.bgcolor||(h.bgcolor=w.paper_bgcolor)),S("hoverlabel.bgcolor",h.bgcolor),S("hoverlabel.bordercolor",h.bordercolor),S("hoverlabel.namelength",h.namelength),M.coerceFont(S,"hoverlabel.font",h.font),S("hoverlabel.align",h.align)}},45265:function(nt,W,e){var M=e(34809),C=e(6811);nt.exports=function(r,i){function w(S,h){return i[S]!==void 0?i[S]:M.coerce(r,i,C,S,h)}return w("clickmode"),w("hoversubplots"),w("hovermode")}},32141:function(nt,W,e){var M=e(45568),C=e(34809),r=e(14751),i=e(36040),w=e(6811),S=e(38103);nt.exports={moduleType:"component",name:"fx",constants:e(85988),schema:{layout:w},attributes:e(70192),layoutAttributes:w,supplyLayoutGlobalDefaults:e(5358),supplyDefaults:e(3239),supplyLayoutDefaults:e(8412),calc:e(83552),getDistanceFunction:i.getDistanceFunction,getClosest:i.getClosest,inbox:i.inbox,quadrature:i.quadrature,appendArrayPointValue:i.appendArrayPointValue,castHoverOption:l,castHoverinfo:t,hover:S.hover,unhover:r.unhover,loneHover:S.loneHover,loneUnhover:h,click:e(94225)};function h(n){var o=C.isD3Selection(n)?n:M.select(n);o.selectAll("g.hovertext").remove(),o.selectAll(".spikeline").remove()}function l(n,o,a){return C.castOption(n,o,"hoverlabel."+a)}function t(n,o,a){function s(u){return C.coerceHoverinfo({hoverinfo:u},{_module:n._module},o)}return C.castOption(n,a,"hoverinfo",s)}},6811:function(nt,W,e){var M=e(85988),C=e(80337),r=C({editType:"none"});r.family.dflt=M.HOVERFONT,r.size.dflt=M.HOVERFONTSIZE,nt.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:r,grouptitlefont:C({editType:"none"}),align:{valType:"enumerated",values:["left","right","auto"],dflt:"auto",editType:"none"},namelength:{valType:"integer",min:-1,dflt:15,editType:"none"},editType:"none"},selectdirection:{valType:"enumerated",values:["h","v","d","any"],dflt:"any",editType:"none"}}},8412:function(nt,W,e){var M=e(34809),C=e(6811),r=e(45265),i=e(26430);nt.exports=function(w,S){function h(u,x){return M.coerce(w,S,C,u,x)}var l=r(w,S);l&&(h("hoverdistance"),h("spikedistance"));var t=h("dragmode");t==="select"&&h("selectdirection");var n=S._has("mapbox"),o=S._has("map"),a=S._has("geo"),s=S._basePlotModules.length;S.dragmode==="zoom"&&((n||o||a)&&s===1||(n||o)&&a&&s===2)&&(S.dragmode="pan"),i(w,S,h),M.coerceFont(h,"hoverlabel.grouptitlefont",S.hoverlabel.font)}},5358:function(nt,W,e){var M=e(34809),C=e(26430),r=e(6811);nt.exports=function(i,w){function S(h,l){return M.coerce(i,w,r,h,l)}C(i,w,S)}},83595:function(nt,W,e){var M=e(34809),C=e(90694).counter,r=e(13792).u,i=e(54826).idRegex,w=e(78032),S={rows:{valType:"integer",min:1,editType:"plot"},roworder:{valType:"enumerated",values:["top to bottom","bottom to top"],dflt:"top to bottom",editType:"plot"},columns:{valType:"integer",min:1,editType:"plot"},subplots:{valType:"info_array",freeLength:!0,dimensions:2,items:{valType:"enumerated",values:[C("xy").toString(),""],editType:"plot"},editType:"plot"},xaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[i.x.toString(),""],editType:"plot"},editType:"plot"},yaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[i.y.toString(),""],editType:"plot"},editType:"plot"},pattern:{valType:"enumerated",values:["independent","coupled"],dflt:"coupled",editType:"plot"},xgap:{valType:"number",min:0,max:1,editType:"plot"},ygap:{valType:"number",min:0,max:1,editType:"plot"},domain:r({name:"grid",editType:"plot",noGridCell:!0},{}),xside:{valType:"enumerated",values:["bottom","bottom plot","top plot","top"],dflt:"bottom plot",editType:"plot"},yside:{valType:"enumerated",values:["left","left plot","right plot","right"],dflt:"left plot",editType:"plot"},editType:"plot"};function h(a,s,u){var x=s[u+"axes"],m=Object.keys((a._splomAxes||{})[u]||{});if(Array.isArray(x))return x;if(m.length)return m}function l(a,s){var u=a.grid||{},x=h(s,u,"x"),m=h(s,u,"y");if(!a.grid&&!x&&!m)return;var y=Array.isArray(u.subplots)&&Array.isArray(u.subplots[0]),c=Array.isArray(x),p=Array.isArray(m),f=c&&x!==u.xaxes&&p&&m!==u.yaxes,T,k;y?(T=u.subplots.length,k=u.subplots[0].length):(p&&(T=m.length),c&&(k=x.length));var P=w.newContainer(s,"grid");function g(V,N){return M.coerce(u,P,S,V,N)}var A=g("rows",T),E=g("columns",k);if(!(A*E>1)){delete s.grid;return}if(!y&&!c&&!p){var d=g("pattern")==="independent";d&&(y=!0)}P._hasSubplotGrid=y;var _=g("roworder"),L=_==="top to bottom",b=y?.2:.1,D=y?.3:.1,B,I;f&&s._splomGridDflt&&(B=s._splomGridDflt.xside,I=s._splomGridDflt.yside),P._domains={x:t("x",g,b,B,E),y:t("y",g,D,I,A,L)}}function t(a,s,u,x,m,y){var c=s(a+"gap",u),p=s("domain."+a);s(a+"side",x);for(var f=new Array(m),T=p[0],k=(p[1]-T)/(m-c),P=k*(1-c),g=0;g<m;g++){var A=T+k*g;f[y?m-1-g:g]=[A,A+P]}return f}function n(a,s){var u=s.grid;if(!(!u||!u._domains)){var x=a.grid||{},m=s._subplots,y=u._hasSubplotGrid,c=u.rows,p=u.columns,f=u.pattern==="independent",T,k,P,g,A,E,d,_=u._axisMap={};if(y){var L=x.subplots||[];E=u.subplots=new Array(c);var b=1;for(T=0;T<c;T++){var D=E[T]=new Array(p),B=L[T]||[];for(k=0;k<p;k++)if(f?(A=b===1?"xy":"x"+b+"y"+b,b++):A=B[k],D[k]="",m.cartesian.indexOf(A)!==-1){if(d=A.indexOf("y"),P=A.slice(0,d),g=A.slice(d),_[P]!==void 0&&_[P]!==k||_[g]!==void 0&&_[g]!==T)continue;D[k]=A,_[P]=k,_[g]=T}}}else{var I=h(s,x,"x"),V=h(s,x,"y");u.xaxes=o(I,m.xaxis,p,_,"x"),u.yaxes=o(V,m.yaxis,c,_,"y")}var N=u._anchors={},F=u.roworder==="top to bottom";for(var U in _){var G=U.charAt(0),Y=u[G+"side"],Q,ft,ut;if(Y.length<8)N[U]="free";else if(G==="x"){if(Y.charAt(0)==="t"===F?(Q=0,ft=1,ut=c):(Q=c-1,ft=-1,ut=-1),y){var lt=_[U];for(T=Q;T!==ut;T+=ft)if(A=E[T][lt],!!A&&(d=A.indexOf("y"),A.slice(0,d)===U)){N[U]=A.slice(d);break}}else for(T=Q;T!==ut;T+=ft)if(g=u.yaxes[T],m.cartesian.indexOf(U+g)!==-1){N[U]=g;break}}else if(Y.charAt(0)==="l"?(Q=0,ft=1,ut=p):(Q=p-1,ft=-1,ut=-1),y){var K=_[U];for(T=Q;T!==ut;T+=ft)if(A=E[K][T],!!A&&(d=A.indexOf("y"),A.slice(d)===U)){N[U]=A.slice(0,d);break}}else for(T=Q;T!==ut;T+=ft)if(P=u.xaxes[T],m.cartesian.indexOf(P+U)!==-1){N[U]=P;break}}}}function o(a,s,u,x,m){var y=new Array(u),c;function p(f,T){s.indexOf(T)!==-1&&x[T]===void 0?(y[f]=T,x[T]=f):y[f]=""}if(Array.isArray(a))for(c=0;c<u;c++)p(c,a[c]);else for(p(0,m),c=1;c<u;c++)p(c,m+(c+1));return y}nt.exports={moduleType:"component",name:"grid",schema:{layout:{grid:S}},layoutAttributes:S,sizeDefaults:l,contentDefaults:n}},37260:function(nt,W,e){var M=e(54826),C=e(78032).templatedArray;e(35081),nt.exports=C("image",{visible:{valType:"boolean",dflt:!0,editType:"arraydraw"},source:{valType:"string",editType:"arraydraw"},layer:{valType:"enumerated",values:["below","above"],dflt:"above",editType:"arraydraw"},sizex:{valType:"number",dflt:0,editType:"arraydraw"},sizey:{valType:"number",dflt:0,editType:"arraydraw"},sizing:{valType:"enumerated",values:["fill","contain","stretch"],dflt:"contain",editType:"arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},x:{valType:"any",dflt:0,editType:"arraydraw"},y:{valType:"any",dflt:0,editType:"arraydraw"},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left",editType:"arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],dflt:"top",editType:"arraydraw"},xref:{valType:"enumerated",values:["paper",M.idRegex.x.toString()],dflt:"paper",editType:"arraydraw"},yref:{valType:"enumerated",values:["paper",M.idRegex.y.toString()],dflt:"paper",editType:"arraydraw"},editType:"arraydraw"})},89443:function(nt,W,e){var M=e(10721),C=e(8083);nt.exports=function(r,i,w,S){i=i||{};var h=w==="log"&&i.type==="linear",l=w==="linear"&&i.type==="log";if(h||l){for(var t=r._fullLayout.images,n=i._id.charAt(0),o,a,s=0;s<t.length;s++)if(o=t[s],a="images["+s+"].",o[n+"ref"]===i._id){var u=o[n],x=o["size"+n],m=null,y=null;if(h){m=C(u,i.range);var c=x/Math.pow(10,m)/2;y=2*Math.log(c+Math.sqrt(1+c*c))/Math.LN10}else m=Math.pow(10,u),y=m*(Math.pow(10,x/2)-Math.pow(10,-x/2));M(m)?M(y)||(y=null):(m=null,y=null),S(a+n,m),S(a+"size"+n,y)}}}},507:function(nt,W,e){var M=e(34809),C=e(29714),r=e(59008),i=e(37260),w="images";nt.exports=function(h,l){var t={name:w,handleItemDefaults:S};r(h,l,t)};function S(h,l,t){function n(p,f){return M.coerce(h,l,i,p,f)}var o=n("source"),a=n("visible",!!o);if(!a)return l;n("layer"),n("xanchor"),n("yanchor"),n("sizex"),n("sizey"),n("sizing"),n("opacity");for(var s={_fullLayout:t},u=["x","y"],x=0;x<2;x++){var m=u[x],y=C.coerceRef(h,l,s,m,"paper",void 0);if(y!=="paper"){var c=C.getFromId(s,y);c._imgIndices.push(l._index)}C.coercePosition(l,s,n,y,m,0)}return l}},32211:function(nt,W,e){var M=e(45568),C=e(62203),r=e(29714),i=e(5975),w=e(62972);nt.exports=function(S){var h=S._fullLayout,l=[],t={},n=[],o,a;for(a=0;a<h.images.length;a++){var s=h.images[a];if(s.visible)if(s.layer==="below"&&s.xref!=="paper"&&s.yref!=="paper"){o=i.ref2id(s.xref)+i.ref2id(s.yref);var u=h._plots[o];if(!u){n.push(s);continue}u.mainplot&&(o=u.mainplot.id),t[o]||(t[o]=[]),t[o].push(s)}else s.layer==="above"?l.push(s):n.push(s)}var x={x:{left:{sizing:"xMin",offset:0},center:{sizing:"xMid",offset:-1/2},right:{sizing:"xMax",offset:-1}},y:{top:{sizing:"YMin",offset:0},middle:{sizing:"YMid",offset:-1/2},bottom:{sizing:"YMax",offset:-1}}};function m(P){var g=M.select(this);if(this._imgSrc!==P.source)if(g.attr("xmlns",w.svg),P.source&&P.source.slice(0,5)==="data:")g.attr("xlink:href",P.source),this._imgSrc=P.source;else{var A=new Promise((function(E){var d=new Image;this.img=d,d.setAttribute("crossOrigin","anonymous"),d.onerror=_,d.onload=function(){var L=document.createElement("canvas");L.width=this.width,L.height=this.height;var b=L.getContext("2d",{willReadFrequently:!0});b.drawImage(this,0,0);var D=L.toDataURL("image/png");g.attr("xlink:href",D),E()},g.on("error",_),d.src=P.source,this._imgSrc=P.source;function _(){g.remove(),E()}}).bind(this));S._promises.push(A)}}function y(P){var g=M.select(this),A=r.getFromId(S,P.xref),E=r.getFromId(S,P.yref),d=r.getRefType(P.xref)==="domain",_=r.getRefType(P.yref)==="domain",L=h._size,b,D;A!==void 0?b=typeof P.xref=="string"&&d?A._length*P.sizex:Math.abs(A.l2p(P.sizex)-A.l2p(0)):b=P.sizex*L.w,E!==void 0?D=typeof P.yref=="string"&&_?E._length*P.sizey:Math.abs(E.l2p(P.sizey)-E.l2p(0)):D=P.sizey*L.h;var B=b*x.x[P.xanchor].offset,I=D*x.y[P.yanchor].offset,V=x.x[P.xanchor].sizing+x.y[P.yanchor].sizing,N,F;switch(A!==void 0?N=typeof P.xref=="string"&&d?A._length*P.x+A._offset:A.r2p(P.x)+A._offset:N=P.x*L.w+L.l,N+=B,E!==void 0?F=typeof P.yref=="string"&&_?E._length*(1-P.y)+E._offset:E.r2p(P.y)+E._offset:F=L.h-P.y*L.h+L.t,F+=I,P.sizing){case"fill":V+=" slice";break;case"stretch":V="none";break}g.attr({x:N,y:F,width:b,height:D,preserveAspectRatio:V,opacity:P.opacity});var U=A&&r.getRefType(P.xref)!=="domain"?A._id:"",G=E&&r.getRefType(P.yref)!=="domain"?E._id:"",Y=U+G;C.setClipUrl(g,Y?"clip"+h._uid+Y:null,S)}var c=h._imageLowerLayer.selectAll("image").data(n),p=h._imageUpperLayer.selectAll("image").data(l);c.enter().append("image"),p.enter().append("image"),c.exit().remove(),p.exit().remove(),c.each(function(P){m.bind(this)(P),y.bind(this)(P)}),p.each(function(P){m.bind(this)(P),y.bind(this)(P)});var f=Object.keys(h._plots);for(a=0;a<f.length;a++){o=f[a];var T=h._plots[o];if(T.imagelayer){var k=T.imagelayer.selectAll("image").data(t[o]||[]);k.enter().append("image"),k.exit().remove(),k.each(function(P){m.bind(this)(P),y.bind(this)(P)})}}}},15553:function(nt,W,e){nt.exports={moduleType:"component",name:"images",layoutAttributes:e(37260),supplyLayoutDefaults:e(507),includeBasePlot:e(20706)("images"),draw:e(32211),convertCoords:e(89443)}},86405:function(nt,W,e){var M=e(80337),C=e(10229);nt.exports={_isSubplotObj:!0,visible:{valType:"boolean",dflt:!0,editType:"legend"},bgcolor:{valType:"color",editType:"legend"},bordercolor:{valType:"color",dflt:C.defaultLine,editType:"legend"},borderwidth:{valType:"number",min:0,dflt:0,editType:"legend"},font:M({editType:"legend"}),grouptitlefont:M({editType:"legend"}),orientation:{valType:"enumerated",values:["v","h"],dflt:"v",editType:"legend"},traceorder:{valType:"flaglist",flags:["reversed","grouped"],extras:["normal"],editType:"legend"},tracegroupgap:{valType:"number",min:0,dflt:10,editType:"legend"},entrywidth:{valType:"number",min:0,editType:"legend"},entrywidthmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"pixels",editType:"legend"},indentation:{valType:"number",min:-15,dflt:0,editType:"legend"},itemsizing:{valType:"enumerated",values:["trace","constant"],dflt:"trace",editType:"legend"},itemwidth:{valType:"number",min:30,dflt:30,editType:"legend"},itemclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggle",editType:"legend"},itemdoubleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggleothers",editType:"legend"},groupclick:{valType:"enumerated",values:["toggleitem","togglegroup"],dflt:"togglegroup",editType:"legend"},x:{valType:"number",editType:"legend"},xref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"legend"},y:{valType:"number",editType:"legend"},yref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],editType:"legend"},uirevision:{valType:"any",editType:"none"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"legend"},title:{text:{valType:"string",dflt:"",editType:"legend"},font:M({editType:"legend"}),side:{valType:"enumerated",values:["top","left","top left","top center","top right"],editType:"legend"},editType:"legend"},editType:"legend"}},72783:function(nt){nt.exports={scrollBarWidth:6,scrollBarMinHeight:20,scrollBarColor:"#808BA4",scrollBarMargin:4,scrollBarEnterAttrs:{rx:20,ry:3,width:0,height:0},titlePad:2,itemGap:5}},73970:function(nt,W,e){var M=e(33626),C=e(34809),r=e(78032),i=e(9829),w=e(86405),S=e(6704),h=e(57599);function l(t,n,o,a){var s=n[t]||{},u=r.newContainer(o,t);function x(ut,lt){return C.coerce(s,u,w,ut,lt)}var m=C.coerceFont(x,"font",o.font);x("bgcolor",o.paper_bgcolor),x("bordercolor");var y=x("visible");if(y){for(var c,p=function(ut,lt){var K=c._input,$=c;return C.coerce(K,$,i,ut,lt)},f=o.font||{},T=C.coerceFont(x,"grouptitlefont",f,{overrideDflt:{size:Math.round(f.size*1.1)}}),k=0,P=!1,g="normal",A=(o.shapes||[]).filter(function(ut){return ut.showlegend}),E=a.concat(A).filter(function(ut){return t===(ut.legend||"legend")}),d=0;d<E.length;d++)if(c=E[d],!!c.visible){var _=c._isShape;(c.showlegend||c._dfltShowLegend&&!(c._module&&c._module.attributes&&c._module.attributes.showlegend&&c._module.attributes.showlegend.dflt===!1))&&(k++,c.showlegend&&(P=!0,(!_&&M.traceIs(c,"pie-like")||c._input.showlegend===!0)&&k++),C.coerceFont(p,"legendgrouptitle.font",T)),(!_&&M.traceIs(c,"bar")&&o.barmode==="stack"||["tonextx","tonexty"].indexOf(c.fill)!==-1)&&(g=h.isGrouped({traceorder:g})?"grouped+reversed":"reversed"),c.legendgroup!==void 0&&c.legendgroup!==""&&(g=h.isReversed({traceorder:g})?"reversed+grouped":"grouped")}var L=C.coerce(n,o,S,"showlegend",P&&k>(t==="legend"?1:0));if(L===!1&&(o[t]=void 0),!(L===!1&&!s.uirevision)&&(x("uirevision",o.uirevision),L!==!1)){x("borderwidth");var b=x("orientation"),D=x("yref"),B=x("xref"),I=b==="h",V=D==="paper",N=B==="paper",F,U,G,Y="left";I?(F=0,M.getComponentMethod("rangeslider","isVisible")(n.xaxis)?V?(U=1.1,G="bottom"):(U=1,G="top"):V?(U=-.1,G="top"):(U=0,G="bottom")):(U=1,G="auto",N?F=1.02:(F=1,Y="right")),C.coerce(s,u,{x:{valType:"number",editType:"legend",min:N?-2:0,max:N?3:1,dflt:F}},"x"),C.coerce(s,u,{y:{valType:"number",editType:"legend",min:V?-2:0,max:V?3:1,dflt:U}},"y"),x("traceorder",g),h.isGrouped(o[t])&&x("tracegroupgap"),x("entrywidth"),x("entrywidthmode"),x("indentation"),x("itemsizing"),x("itemwidth"),x("itemclick"),x("itemdoubleclick"),x("groupclick"),x("xanchor",Y),x("yanchor",G),x("valign"),C.noneOrAll(s,u,["x","y"]);var Q=x("title.text");if(Q){x("title.side",I?"left":"top");var ft=C.extendFlat({},m,{size:C.bigFont(m.size)});C.coerceFont(x,"title.font",ft)}}}}nt.exports=function(t,n,o){var a,s=o.slice(),u=n.shapes;if(u)for(a=0;a<u.length;a++){var x=u[a];if(x.showlegend){var m={_input:x._input,visible:x.visible,showlegend:x.showlegend,legend:x.legend};s.push(m)}}var y=["legend"];for(a=0;a<s.length;a++)C.pushUnique(y,s[a].legend);for(n._legends=[],a=0;a<y.length;a++){var c=y[a];l(c,t,n,s),n[c]&&n[c].visible&&(n[c]._id=c),n._legends.push(c)}}},6134:function(nt,W,e){var M=e(45568),C=e(34809),r=e(44122),i=e(33626),w=e(68596),S=e(14751),h=e(62203),l=e(78766),t=e(30635),n=e(22165),o=e(72783),a=e(4530),s=a.LINE_SPACING,u=a.FROM_TL,x=a.FROM_BR,m=e(851),y=e(14375),c=e(57599),p=1,f=/^legend[0-9]*$/;nt.exports=function(F,U){if(U)k(F,U);else{var G=F._fullLayout,Y=G._legends,Q=G._infolayer.selectAll('[class^="legend"]');Q.each(function(){var K=M.select(this),$=K.attr("class"),H=$.split(" ")[0];H.match(f)&&Y.indexOf(H)===-1&&K.remove()});for(var ft=0;ft<Y.length;ft++){var ut=Y[ft],lt=F._fullLayout[ut];k(F,lt)}}};function T(F,U,G){if(!(U.title.side!=="top center"&&U.title.side!=="top right")){var Y=U.title.font,Q=Y.size*s,ft=0,ut=F.node(),lt=h.bBox(ut).width;U.title.side==="top center"?ft=.5*(U._width-2*G-2*o.titlePad-lt):U.title.side==="top right"&&(ft=U._width-2*G-2*o.titlePad-lt),t.positionText(F,G+o.titlePad+ft,G+Q)}}function k(F,U){var G=U||{},Y=F._fullLayout,Q=N(G),ft,ut,lt=G._inHover;if(lt?(ut=G.layer,ft="hover"):(ut=Y._infolayer,ft=Q),!!ut){ft+=Y._uid,F._legendMouseDownTime||(F._legendMouseDownTime=0);var K;if(lt){if(!G.entries)return;K=m(G.entries,G)}else{for(var $=(F.calcdata||[]).slice(),H=Y.shapes,at=0;at<H.length;at++){var ct=H[at];if(ct.showlegend){var et={_isShape:!0,_fullInput:ct,index:ct._index,name:ct.name||ct.label.text||"shape "+ct._index,legend:ct.legend,legendgroup:ct.legendgroup,legendgrouptitle:ct.legendgrouptitle,legendrank:ct.legendrank,legendwidth:ct.legendwidth,showlegend:ct.showlegend,visible:ct.visible,opacity:ct.opacity,mode:ct.type==="line"?"lines":"markers",line:ct.line,marker:{line:ct.line,color:ct.fillcolor,size:12,symbol:ct.type==="rect"?"square":ct.type==="circle"?"circle":"hexagon2"}};$.push([{trace:et}])}}K=Y.showlegend&&m($,G,Y._legends.length>1)}var Z=Y.hiddenlabels||[];if(!lt&&(!Y.showlegend||!K.length))return ut.selectAll("."+Q).remove(),Y._topdefs.select("#"+ft).remove(),r.autoMargin(F,Q);var ot=C.ensureSingle(ut,"g",Q,function(jt){lt||jt.attr("pointer-events","all")}),st=C.ensureSingleById(Y._topdefs,"clipPath",ft,function(jt){jt.append("rect")}),dt=C.ensureSingle(ot,"rect","bg",function(jt){jt.attr("shape-rendering","crispEdges")});dt.call(l.stroke,G.bordercolor).call(l.fill,G.bgcolor).style("stroke-width",G.borderwidth+"px");var xt=C.ensureSingle(ot,"g","scrollbox"),At=G.title;G._titleWidth=0,G._titleHeight=0;var St;At.text?(St=C.ensureSingle(xt,"text",Q+"titletext"),St.attr("text-anchor","start").call(h.font,At.font).text(At.text),_(St,xt,F,G,p)):xt.selectAll("."+Q+"titletext").remove();var Nt=C.ensureSingle(ot,"rect","scrollbar",function(jt){jt.attr(o.scrollBarEnterAttrs).call(l.fill,o.scrollBarColor)}),Wt=xt.selectAll("g.groups").data(K);Wt.enter().append("g").attr("class","groups"),Wt.exit().remove();var Vt=Wt.selectAll("g.traces").data(C.identity);Vt.enter().append("g").attr("class","traces"),Vt.exit().remove(),Vt.style("opacity",function(jt){var Dt=jt[0].trace;return i.traceIs(Dt,"pie-like")?Z.indexOf(jt[0].label)!==-1?.5:1:Dt.visible==="legendonly"?.5:1}).each(function(){M.select(this).call(A,F,G)}).call(y,F,G).each(function(){lt||M.select(this).call(d,F,Q)}),C.syncOrAsync([r.previousPromises,function(){return D(F,Wt,Vt,G)},function(){var jt=Y._size,Dt=G.borderwidth,kt=G.xref==="paper",Bt=G.yref==="paper";if(At.text&&T(St,G,Dt),!lt){var Ot,Ht;kt?Ot=jt.l+jt.w*G.x-u[I(G)]*G._width:Ot=Y.width*G.x-u[I(G)]*G._width,Bt?Ht=jt.t+jt.h*(1-G.y)-u[V(G)]*G._effHeight:Ht=Y.height*(1-G.y)-u[V(G)]*G._effHeight;var ye=B(F,Q,Ot,Ht);if(ye)return;if(Y.margin.autoexpand){var Qt=Ot,_e=Ht;Ot=kt?C.constrain(Ot,0,Y.width-G._width):Qt,Ht=Bt?C.constrain(Ht,0,Y.height-G._effHeight):_e,Ot!==Qt&&C.log("Constrain "+Q+".x to make legend fit inside graph"),Ht!==_e&&C.log("Constrain "+Q+".y to make legend fit inside graph")}h.setTranslate(ot,Ot,Ht)}if(Nt.on(".drag",null),ot.on("wheel",null),lt||G._height<=G._maxHeight||F._context.staticPlot){var ie=G._effHeight;lt&&(ie=G._height),dt.attr({width:G._width-Dt,height:ie-Dt,x:Dt/2,y:Dt/2}),h.setTranslate(xt,0,0),st.select("rect").attr({width:G._width-2*Dt,height:ie-2*Dt,x:Dt,y:Dt}),h.setClipUrl(xt,ft,F),h.setRect(Nt,0,0,0,0),delete G._scrollY}else{var Ae=Math.max(o.scrollBarMinHeight,G._effHeight*G._effHeight/G._height),Pe=G._effHeight-Ae-2*o.scrollBarMargin,Oe=G._height-G._effHeight,je=Pe/Oe,Le=Math.min(G._scrollY||0,Oe);dt.attr({width:G._width-2*Dt+o.scrollBarWidth+o.scrollBarMargin,height:G._effHeight-Dt,x:Dt/2,y:Dt/2}),st.select("rect").attr({width:G._width-2*Dt+o.scrollBarWidth+o.scrollBarMargin,height:G._effHeight-2*Dt,x:Dt,y:Dt+Le}),h.setClipUrl(xt,ft,F),Zt(Le,Ae,je),ot.on("wheel",function(){Le=C.constrain(G._scrollY+M.event.deltaY/Pe*Oe,0,Oe),Zt(Le,Ae,je),Le!==0&&Le!==Oe&&M.event.preventDefault()});var Ie,Ut,ee,Kt=function($t,ge,de){var sr=(de-ge)/je+$t;return C.constrain(sr,0,Oe)},ne=function($t,ge,de){var sr=(ge-de)/je+$t;return C.constrain(sr,0,Oe)},zt=M.behavior.drag().on("dragstart",function(){var $t=M.event.sourceEvent;$t.type==="touchstart"?Ie=$t.changedTouches[0].clientY:Ie=$t.clientY,ee=Le}).on("drag",function(){var $t=M.event.sourceEvent;$t.buttons===2||$t.ctrlKey||($t.type==="touchmove"?Ut=$t.changedTouches[0].clientY:Ut=$t.clientY,Le=Kt(ee,Ie,Ut),Zt(Le,Ae,je))});Nt.call(zt);var qt=M.behavior.drag().on("dragstart",function(){var $t=M.event.sourceEvent;$t.type==="touchstart"&&(Ie=$t.changedTouches[0].clientY,ee=Le)}).on("drag",function(){var $t=M.event.sourceEvent;$t.type==="touchmove"&&(Ut=$t.changedTouches[0].clientY,Le=ne(ee,Ie,Ut),Zt(Le,Ae,je))});xt.call(qt)}function Zt($t,ge,de){G._scrollY=F._fullLayout[Q]._scrollY=$t,h.setTranslate(xt,0,-$t),h.setRect(Nt,G._width,o.scrollBarMargin+$t*de,o.scrollBarWidth,ge),st.select("rect").attr("y",Dt+$t)}if(F._context.edits.legendPosition){var ae,vt,Mt,Lt;ot.classed("cursor-move",!0),S.init({element:ot.node(),gd:F,prepFn:function($t){if($t.target!==Nt.node()){var ge=h.getTranslate(ot);Mt=ge.x,Lt=ge.y}},moveFn:function($t,ge){if(Mt!==void 0&&Lt!==void 0){var de=Mt+$t,sr=Lt+ge;h.setTranslate(ot,de,sr),ae=S.align(de,G._width,jt.l,jt.l+jt.w,G.xanchor),vt=S.align(sr+G._height,-G._height,jt.t+jt.h,jt.t,G.yanchor)}},doneFn:function(){if(ae!==void 0&&vt!==void 0){var $t={};$t[Q+".x"]=ae,$t[Q+".y"]=vt,i.call("_guiRelayout",F,$t)}},clickFn:function($t,ge){var de=ut.selectAll("g.traces").filter(function(){var sr=this.getBoundingClientRect();return ge.clientX>=sr.left&&ge.clientX<=sr.right&&ge.clientY>=sr.top&&ge.clientY<=sr.bottom});de.size()>0&&g(F,ot,de,$t,ge)}})}}],F)}}function P(F,U,G){var Y=F[0],Q=Y.width,ft=U.entrywidthmode,ut=Y.trace.legendwidth||U.entrywidth;return ft==="fraction"?U._maxWidth*ut:G+(ut||Q)}function g(F,U,G,Y,Q){var ft=G.data()[0][0].trace,ut={event:Q,node:G.node(),curveNumber:ft.index,expandedIndex:ft._expandedIndex,data:F.data,layout:F.layout,frames:F._transitionData._frames,config:F._context,fullData:F._fullData,fullLayout:F._fullLayout};ft._group&&(ut.group=ft._group),i.traceIs(ft,"pie-like")&&(ut.label=G.datum()[0].label);var lt=w.triggerHandler(F,"plotly_legendclick",ut);if(Y===1){if(lt===!1)return;U._clickTimeout=setTimeout(function(){F._fullLayout&&n(G,F,Y)},F._context.doubleClickDelay)}else if(Y===2){U._clickTimeout&&clearTimeout(U._clickTimeout),F._legendMouseDownTime=0;var K=w.triggerHandler(F,"plotly_legenddoubleclick",ut);K!==!1&&lt!==!1&&n(G,F,Y)}}function A(F,U,G){var Y=N(G),Q=F.data()[0][0],ft=Q.trace,ut=i.traceIs(ft,"pie-like"),lt=!G._inHover&&U._context.edits.legendText&&!ut,K=G._maxNameLength,$,H;Q.groupTitle?($=Q.groupTitle.text,H=Q.groupTitle.font):(H=G.font,G.entries?$=Q.text:($=ut?Q.label:ft.name,ft._meta&&($=C.templateString($,ft._meta))));var at=C.ensureSingle(F,"text",Y+"text");at.attr("text-anchor","start").call(h.font,H).text(lt?E($,K):$);var ct=G.indentation+G.itemwidth+o.itemGap*2;t.positionText(at,ct,0),lt?at.call(t.makeEditable,{gd:U,text:$}).call(_,F,U,G).on("edit",function(et){this.text(E(et,K)).call(_,F,U,G);var Z=Q.trace._fullInput||{},ot={};if(i.hasTransform(Z,"groupby")){var st=i.getTransformIndices(Z,"groupby"),dt=st[st.length-1],xt=C.keyedContainer(Z,"transforms["+dt+"].styles","target","value.name");xt.set(Q.trace._group,et),ot=xt.constructUpdate()}else ot.name=et;return Z._isShape?i.call("_guiRelayout",U,"shapes["+ft.index+"].name",ot.name):i.call("_guiRestyle",U,ot,ft.index)}):_(at,F,U,G)}function E(F,U){var G=Math.max(4,U);if(F&&F.trim().length>=G/2)return F;F=F||"";for(var Y=G-F.length;Y>0;Y--)F+=" ";return F}function d(F,U,G){var Y=U._context.doubleClickDelay,Q,ft=1,ut=C.ensureSingle(F,"rect",G+"toggle",function(lt){U._context.staticPlot||lt.style("cursor","pointer").attr("pointer-events","all"),lt.call(l.fill,"rgba(0,0,0,0)")});U._context.staticPlot||(ut.on("mousedown",function(){Q=new Date().getTime(),Q-U._legendMouseDownTime<Y?ft+=1:(ft=1,U._legendMouseDownTime=Q)}),ut.on("mouseup",function(){if(!(U._dragged||U._editing)){var lt=U._fullLayout[G];new Date().getTime()-U._legendMouseDownTime>Y&&(ft=Math.max(ft-1,1)),g(U,lt,F,ft,M.event)}}))}function _(F,U,G,Y,Q){Y._inHover&&F.attr("data-notex",!0),t.convertToTspans(F,G,function(){L(U,G,Y,Q)})}function L(F,U,G,Y){var Q=F.data()[0][0];if(!G._inHover&&Q&&!Q.trace.showlegend){F.remove();return}var ft=F.select("g[class*=math-group]"),ut=ft.node(),lt=N(G);G||(G=U._fullLayout[lt]);var K=G.borderwidth,$;Y===p?$=G.title.font:Q.groupTitle?$=Q.groupTitle.font:$=G.font;var H=$.size*s,at,ct;if(ut){var et=h.bBox(ut);at=et.height,ct=et.width,Y===p?h.setTranslate(ft,K,K+at*.75):h.setTranslate(ft,0,at*.25)}else{var Z="."+lt+(Y===p?"title":"")+"text",ot=F.select(Z),st=t.lineCount(ot),dt=ot.node();if(at=H*st,ct=dt?h.bBox(dt).width:0,Y===p)G.title.side==="left"&&(ct+=o.itemGap*2),t.positionText(ot,K+o.titlePad,K+H);else{var xt=o.itemGap*2+G.indentation+G.itemwidth;Q.groupTitle&&(xt=o.itemGap,ct-=G.indentation+G.itemwidth),t.positionText(ot,xt,-H*((st-1)/2-.3))}}Y===p?(G._titleWidth=ct,G._titleHeight=at):(Q.lineHeight=H,Q.height=Math.max(at,16)+3,Q.width=ct)}function b(F){var U=0,G=0,Y=F.title.side;return Y&&(Y.indexOf("left")!==-1&&(U=F._titleWidth),Y.indexOf("top")!==-1&&(G=F._titleHeight)),[U,G]}function D(F,U,G,Y){var Q=F._fullLayout,ft=N(Y);Y||(Y=Q[ft]);var ut=Q._size,lt=c.isVertical(Y),K=c.isGrouped(Y),$=Y.entrywidthmode==="fraction",H=Y.borderwidth,at=2*H,ct=o.itemGap,et=Y.indentation+Y.itemwidth+ct*2,Z=2*(H+ct),ot=V(Y),st=Y.y<0||Y.y===0&&ot==="top",dt=Y.y>1||Y.y===1&&ot==="bottom",xt=Y.tracegroupgap,At={};Y._maxHeight=Math.max(st||dt?Q.height/2:ut.h,30);var St=0;Y._width=0,Y._height=0;var Nt=b(Y);if(lt)G.each(function(ee){var Kt=ee[0].height;h.setTranslate(this,H+Nt[0],H+Nt[1]+Y._height+Kt/2+ct),Y._height+=Kt,Y._width=Math.max(Y._width,ee[0].width)}),St=et+Y._width,Y._width+=ct+et+at,Y._height+=Z,K&&(U.each(function(ee,Kt){h.setTranslate(this,0,Kt*Y.tracegroupgap)}),Y._height+=(Y._lgroupsLength-1)*Y.tracegroupgap);else{var Wt=I(Y),Vt=Y.x<0||Y.x===0&&Wt==="right",jt=Y.x>1||Y.x===1&&Wt==="left",Dt=dt||st,kt=Q.width/2;Y._maxWidth=Math.max(Vt?Dt&&Wt==="left"?ut.l+ut.w:kt:jt?Dt&&Wt==="right"?ut.r+ut.w:kt:ut.w,2*et);var Bt=0,Ot=0;G.each(function(ee){var Kt=P(ee,Y,et);Bt=Math.max(Bt,Kt),Ot+=Kt}),St=null;var Ht=0;if(K){var ye=0,Qt=0,_e=0;U.each(function(){var ee=0,Kt=0;M.select(this).selectAll("g.traces").each(function(zt){var qt=P(zt,Y,et),Zt=zt[0].height;h.setTranslate(this,Nt[0],Nt[1]+H+ct+Zt/2+Kt),Kt+=Zt,ee=Math.max(ee,qt),At[zt[0].trace.legendgroup]=ee});var ne=ee+ct;Qt>0&&ne+H+Qt>Y._maxWidth?(Ht=Math.max(Ht,Qt),Qt=0,_e+=ye+xt,ye=Kt):ye=Math.max(ye,Kt),h.setTranslate(this,Qt,_e),Qt+=ne}),Y._width=Math.max(Ht,Qt)+H,Y._height=_e+ye+Z}else{var ie=G.size(),Ae=Ot+at+(ie-1)*ct<Y._maxWidth,Pe=0,Oe=0,je=0,Le=0;G.each(function(ee){var Kt=ee[0].height,ne=P(ee,Y,et),zt=Ae?ne:Bt;$||(zt+=ct),zt+H+Oe-ct>=Y._maxWidth&&(Ht=Math.max(Ht,Le),Oe=0,je+=Pe,Y._height+=Pe,Pe=0),h.setTranslate(this,Nt[0]+H+Oe,Nt[1]+H+je+Kt/2+ct),Le=Oe+ne+ct,Oe+=zt,Pe=Math.max(Pe,Kt)}),Ae?(Y._width=Oe+at,Y._height=Pe+Z):(Y._width=Math.max(Ht,Le)+at,Y._height+=Pe+Z)}}Y._width=Math.ceil(Math.max(Y._width+Nt[0],Y._titleWidth+2*(H+o.titlePad))),Y._height=Math.ceil(Math.max(Y._height+Nt[1],Y._titleHeight+2*(H+o.itemGap))),Y._effHeight=Math.min(Y._height,Y._maxHeight);var Ie=F._context.edits,Ut=Ie.legendText||Ie.legendPosition;G.each(function(ee){var Kt=M.select(this).select("."+ft+"toggle"),ne=ee[0].height,zt=ee[0].trace.legendgroup,qt=P(ee,Y,et);K&&zt!==""&&(qt=At[zt]);var Zt=Ut?et:St||qt;!lt&&!$&&(Zt+=ct/2),h.setRect(Kt,0,-ne/2,Zt,ne)})}function B(F,U,G,Y){var Q=F._fullLayout,ft=Q[U],ut=I(ft),lt=V(ft),K=ft.xref==="paper",$=ft.yref==="paper";F._fullLayout._reservedMargin[U]={};var H=ft.y<.5?"b":"t",at=ft.x<.5?"l":"r",ct={r:Q.width-G,l:G+ft._width,b:Q.height-Y,t:Y+ft._effHeight};if(K&&$)return r.autoMargin(F,U,{x:ft.x,y:ft.y,l:ft._width*u[ut],r:ft._width*x[ut],b:ft._effHeight*x[lt],t:ft._effHeight*u[lt]});K?F._fullLayout._reservedMargin[U][H]=ct[H]:$||ft.orientation==="v"?F._fullLayout._reservedMargin[U][at]=ct[at]:F._fullLayout._reservedMargin[U][H]=ct[H]}function I(F){return C.isRightAnchor(F)?"right":C.isCenterAnchor(F)?"center":"left"}function V(F){return C.isBottomAnchor(F)?"bottom":C.isMiddleAnchor(F)?"middle":"top"}function N(F){return F._id||"legend"}},851:function(nt,W,e){var M=e(33626),C=e(57599);nt.exports=function(r,i,w){var S=i._inHover,h=C.isGrouped(i),l=C.isReversed(i),t={},n=[],o=!1,a={},s=0,u=0,x,m;function y(N,F,U){if(i.visible!==!1&&!(w&&N!==i._id))if(F===""||!C.isGrouped(i)){var G="~~i"+s;n.push(G),t[G]=[U],s++}else n.indexOf(F)===-1?(n.push(F),o=!0,t[F]=[U]):t[F].push(U)}for(x=0;x<r.length;x++){var c=r[x],p=c[0],f=p.trace,T=f.legend,k=f.legendgroup;if(!(!S&&(!f.visible||!f.showlegend)))if(M.traceIs(f,"pie-like"))for(a[k]||(a[k]={}),m=0;m<c.length;m++){var P=c[m].label;a[k][P]||(y(T,k,{label:P,color:c[m].color,i:c[m].i,trace:f,pts:c[m].pts}),a[k][P]=!0,u=Math.max(u,(P||"").length))}else y(T,k,p),u=Math.max(u,(f.name||"").length)}if(!n.length)return[];var g=!o||!h,A=[];for(x=0;x<n.length;x++){var E=t[n[x]];g?A.push(E[0]):A.push(E)}for(g&&(A=[A]),x=0;x<A.length;x++){var d=1/0;for(m=0;m<A[x].length;m++){var _=A[x][m].trace.legendrank;d>_&&(d=_)}A[x][0]._groupMinRank=d,A[x][0]._preGroupSort=x}var L=function(N,F){return N[0]._groupMinRank-F[0]._groupMinRank||N[0]._preGroupSort-F[0]._preGroupSort},b=function(N,F){return N.trace.legendrank-F.trace.legendrank||N._preSort-F._preSort};for(A.forEach(function(N,F){N[0]._preGroupSort=F}),A.sort(L),x=0;x<A.length;x++){A[x].forEach(function(N,F){N._preSort=F}),A[x].sort(b);var D=A[x][0].trace,B=null;for(m=0;m<A[x].length;m++){var I=A[x][m].trace.legendgrouptitle;if(I&&I.text){B=I,S&&(I.font=i._groupTitleFont);break}}if(l&&A[x].reverse(),B){var V=!1;for(m=0;m<A[x].length;m++)if(M.traceIs(A[x][m].trace,"pie-like")){V=!0;break}A[x].unshift({i:-1,groupTitle:B,noClick:V,trace:{showlegend:D.showlegend,legendgroup:D.legendgroup,visible:i.groupclick==="toggleitem"?!0:D.visible}})}for(m=0;m<A[x].length;m++)A[x][m]=[A[x][m]]}return i._lgroupsLength=A.length,i._maxNameLength=u,A}},22165:function(nt,W,e){var M=e(33626),C=e(34809),r=C.pushUnique,i=!0;nt.exports=function(w,S,h){var l=S._fullLayout;if(S._dragged||S._editing)return;var t=l.legend.itemclick,n=l.legend.itemdoubleclick,o=l.legend.groupclick;h===1&&t==="toggle"&&n==="toggleothers"&&i&&S.data&&S._context.showTips&&C.notifier(C._(S,"Double-click on legend to isolate one trace"),"long"),i=!1;var a;if(h===1?a=t:h===2&&(a=n),!a)return;var s=o==="togglegroup",u=l.hiddenlabels?l.hiddenlabels.slice():[],x=w.data()[0][0];if(x.groupTitle&&x.noClick)return;var m=S._fullData,y=(l.shapes||[]).filter(function(Dt){return Dt.showlegend}),c=m.concat(y),p=x.trace;p._isShape&&(p=p._fullInput);var f=p.legendgroup,T,k,P,g,A,E,d={},_=[],L=[],b=[];function D(Dt,kt){var Bt=_.indexOf(Dt),Ot=d.visible;return Ot||(Ot=d.visible=[]),_.indexOf(Dt)===-1&&(_.push(Dt),Bt=_.length-1),Ot[Bt]=kt,Bt}var B=(l.shapes||[]).map(function(Dt){return Dt._input}),I=!1;function V(Dt,kt){B[Dt].visible=kt,I=!0}function N(Dt,kt){if(!(x.groupTitle&&!s)){var Bt=Dt._fullInput||Dt,Ot=Bt._isShape,Ht=Bt.index;if(Ht===void 0&&(Ht=Bt._index),M.hasTransform(Bt,"groupby")){var ye=L[Ht];if(!ye){var Qt=M.getTransformIndices(Bt,"groupby"),_e=Qt[Qt.length-1];ye=C.keyedContainer(Bt,"transforms["+_e+"].styles","target","value.visible"),L[Ht]=ye}var ie=ye.get(Dt._group);ie===void 0&&(ie=!0),ie!==!1&&ye.set(Dt._group,kt),b[Ht]=D(Ht,Bt.visible!==!1)}else{var Ae=Bt.visible===!1?!1:kt;Ot?V(Ht,Ae):D(Ht,Ae)}}}var F=p.legend,U=p._fullInput,G=U&&U._isShape;if(!G&&M.traceIs(p,"pie-like")){var Y=x.label,Q=u.indexOf(Y);if(a==="toggle")Q===-1?u.push(Y):u.splice(Q,1);else if(a==="toggleothers"){var ft=Q!==-1,ut=[];for(T=0;T<S.calcdata.length;T++){var lt=S.calcdata[T];for(k=0;k<lt.length;k++){var K=lt[k],$=K.label;F===lt[0].trace.legend&&Y!==$&&(u.indexOf($)===-1&&(ft=!0),r(u,$),ut.push($))}}if(!ft)for(var H=0;H<ut.length;H++){var at=u.indexOf(ut[H]);at!==-1&&u.splice(at,1)}}M.call("_guiRelayout",S,"hiddenlabels",u)}else{var ct=f&&f.length,et=[],Z;if(ct)for(T=0;T<c.length;T++)Z=c[T],Z.visible&&Z.legendgroup===f&&et.push(T);if(a==="toggle"){var ot;switch(p.visible){case!0:ot="legendonly";break;case!1:ot=!1;break;case"legendonly":ot=!0;break}if(ct)if(s)for(T=0;T<c.length;T++){var st=c[T];st.visible!==!1&&st.legendgroup===f&&N(st,ot)}else N(p,ot);else N(p,ot)}else if(a==="toggleothers"){var dt,xt,At,St,Nt,Wt=!0;for(T=0;T<c.length;T++)if(Nt=c[T],dt=Nt===p,At=Nt.showlegend!==!0,!(dt||At)&&(xt=ct&&Nt.legendgroup===f,!xt&&Nt.legend===F&&Nt.visible===!0&&!M.traceIs(Nt,"notLegendIsolatable"))){Wt=!1;break}for(T=0;T<c.length;T++)if(Nt=c[T],!(Nt.visible===!1||Nt.legend!==F)&&!M.traceIs(Nt,"notLegendIsolatable"))switch(p.visible){case"legendonly":N(Nt,!0);break;case!0:St=Wt?!0:"legendonly",dt=Nt===p,At=Nt.showlegend!==!0&&!Nt.legendgroup,xt=dt||ct&&Nt.legendgroup===f,N(Nt,xt||At?!0:St);break}}for(T=0;T<L.length;T++)if(P=L[T],!!P){var Vt=P.constructUpdate(),jt=Object.keys(Vt);for(k=0;k<jt.length;k++)g=jt[k],E=d[g]=d[g]||[],E[b[T]]=Vt[g]}for(A=Object.keys(d),T=0;T<A.length;T++)for(g=A[T],k=0;k<_.length;k++)d[g].hasOwnProperty(k)||(d[g][k]=void 0);I?M.call("_guiUpdate",S,d,{shapes:B},_):M.call("_guiRestyle",S,d,_)}}},57599:function(nt,W){W.isGrouped=function(e){return(e.traceorder||"").indexOf("grouped")!==-1},W.isVertical=function(e){return e.orientation!=="h"},W.isReversed=function(e){return(e.traceorder||"").indexOf("reversed")!==-1}},82494:function(nt,W,e){nt.exports={moduleType:"component",name:"legend",layoutAttributes:e(86405),supplyLayoutDefaults:e(73970),draw:e(6134),style:e(14375)}},14375:function(nt,W,e){var M=e(45568),C=e(33626),r=e(34809),i=r.strTranslate,w=e(62203),S=e(78766),h=e(65477).extractOpts,l=e(64726),t=e(32891),n=e(37252).castOption,o=e(72783),a=12,s=5,u=2,x=10,m=5;nt.exports=function(f,T,k){var P=T._fullLayout;k||(k=P.legend);var g=k.itemsizing==="constant",A=k.itemwidth,E=(A+o.itemGap*2)/2,d=i(E,0),_=function(ut,lt,K,$){var H;if(ut+1)H=ut;else if(lt&&lt.width>0)H=lt.width;else return 0;return g?$:Math.min(H,K)};f.each(function(ut){var lt=M.select(this),K=r.ensureSingle(lt,"g","layers");K.style("opacity",ut[0].trace.opacity);var $=k.indentation,H=k.valign,at=ut[0].lineHeight,ct=ut[0].height;if(H==="middle"&&$===0||!at||!ct)K.attr("transform",null);else{var et={top:1,bottom:-1}[H],Z=et*(.5*(at-ct+3))||0,ot=k.indentation;K.attr("transform",i(ot,Z))}var st=K.selectAll("g.legendfill").data([ut]);st.enter().append("g").classed("legendfill",!0);var dt=K.selectAll("g.legendlines").data([ut]);dt.enter().append("g").classed("legendlines",!0);var xt=K.selectAll("g.legendsymbols").data([ut]);xt.enter().append("g").classed("legendsymbols",!0),xt.selectAll("g.legendpoints").data([ut]).enter().append("g").classed("legendpoints",!0)}).each(ft).each(D).each(I).each(B).each(N).each(Y).each(G).each(L).each(b).each(F).each(U);function L(ut){var lt=c(ut),K=lt.showFill,$=lt.showLine,H=lt.showGradientLine,at=lt.showGradientFill,ct=lt.anyFill,et=lt.anyLine,Z=ut[0],ot=Z.trace,st,dt,xt=h(ot),At=xt.colorscale,St=xt.reversescale,Nt=function(Ot){if(Ot.size())if(K)w.fillGroupStyle(Ot,T,!0);else{var Ht="legendfill-"+ot.uid;w.gradient(Ot,T,Ht,y(St),At,"fill")}},Wt=function(Ot){if(Ot.size()){var Ht="legendline-"+ot.uid;w.lineGroupStyle(Ot),w.gradient(Ot,T,Ht,y(St),At,"stroke")}},Vt=l.hasMarkers(ot)||!ct?"M5,0":et?"M5,-2":"M5,-3",jt=M.select(this),Dt=jt.select(".legendfill").selectAll("path").data(K||at?[ut]:[]);if(Dt.enter().append("path").classed("js-fill",!0),Dt.exit().remove(),Dt.attr("d",Vt+"h"+A+"v6h-"+A+"z").call(Nt),$||H){var kt=_(void 0,ot.line,x,s);dt=r.minExtend(ot,{line:{width:kt}}),st=[r.minExtend(Z,{trace:dt})]}var Bt=jt.select(".legendlines").selectAll("path").data($||H?[st]:[]);Bt.enter().append("path").classed("js-line",!0),Bt.exit().remove(),Bt.attr("d",Vt+(H?"l"+A+",0.0001":"h"+A)).call($?w.lineGroupStyle:Wt)}function b(ut){var lt=c(ut),K=lt.anyFill,$=lt.anyLine,H=lt.showLine,at=lt.showMarker,ct=ut[0],et=ct.trace,Z=!at&&!$&&!K&&l.hasText(et),ot,st;function dt(Dt,kt,Bt,Ot){var Ht=r.nestedProperty(et,Dt).get(),ye=r.isArrayOrTypedArray(Ht)&&kt?kt(Ht):Ht;if(g&&ye&&Ot!==void 0&&(ye=Ot),Bt){if(ye<Bt[0])return Bt[0];if(ye>Bt[1])return Bt[1]}return ye}function xt(Dt){return ct._distinct&&ct.index&&Dt[ct.index]?Dt[ct.index]:Dt[0]}if(at||Z||H){var At={},St={};if(at){At.mc=dt("marker.color",xt),At.mx=dt("marker.symbol",xt),At.mo=dt("marker.opacity",r.mean,[.2,1]),At.mlc=dt("marker.line.color",xt),At.mlw=dt("marker.line.width",r.mean,[0,5],u),St.marker={sizeref:1,sizemin:1,sizemode:"diameter"};var Nt=dt("marker.size",r.mean,[2,16],a);At.ms=Nt,St.marker.size=Nt}H&&(St.line={width:dt("line.width",xt,[0,10],s)}),Z&&(At.tx="Aa",At.tp=dt("textposition",xt),At.ts=10,At.tc=dt("textfont.color",xt),At.tf=dt("textfont.family",xt),At.tw=dt("textfont.weight",xt),At.ty=dt("textfont.style",xt),At.tv=dt("textfont.variant",xt),At.tC=dt("textfont.textcase",xt),At.tE=dt("textfont.lineposition",xt),At.tS=dt("textfont.shadow",xt)),ot=[r.minExtend(ct,At)],st=r.minExtend(et,St),st.selectedpoints=null,st.texttemplate=null}var Wt=M.select(this).select("g.legendpoints"),Vt=Wt.selectAll("path.scatterpts").data(at?ot:[]);Vt.enter().insert("path",":first-child").classed("scatterpts",!0).attr("transform",d),Vt.exit().remove(),Vt.call(w.pointStyle,st,T),at&&(ot[0].mrc=3);var jt=Wt.selectAll("g.pointtext").data(Z?ot:[]);jt.enter().append("g").classed("pointtext",!0).append("text").attr("transform",d),jt.exit().remove(),jt.selectAll("text").call(w.textPointStyle,st,T)}function D(ut){var lt=ut[0].trace,K=lt.type==="waterfall";if(ut[0]._distinct&&K){var $=ut[0].trace[ut[0].dir].marker;return ut[0].mc=$.color,ut[0].mlw=$.line.width,ut[0].mlc=$.line.color,V(ut,this,"waterfall")}var H=[];lt.visible&&K&&(H=ut[0].hasTotals?[["increasing","M-6,-6V6H0Z"],["totals","M6,6H0L-6,-6H-0Z"],["decreasing","M6,6V-6H0Z"]]:[["increasing","M-6,-6V6H6Z"],["decreasing","M6,6V-6H-6Z"]]);var at=M.select(this).select("g.legendpoints").selectAll("path.legendwaterfall").data(H);at.enter().append("path").classed("legendwaterfall",!0).attr("transform",d).style("stroke-miterlimit",1),at.exit().remove(),at.each(function(ct){var et=M.select(this),Z=lt[ct[0]].marker,ot=_(void 0,Z.line,m,u);et.attr("d",ct[1]).style("stroke-width",ot+"px").call(S.fill,Z.color),ot&&et.call(S.stroke,Z.line.color)})}function B(ut){V(ut,this)}function I(ut){V(ut,this,"funnel")}function V(ut,lt,K){var $=ut[0].trace,H=$.marker||{},at=H.line||{},ct=H.cornerradius?"M6,3a3,3,0,0,1-3,3H-3a3,3,0,0,1-3-3V-3a3,3,0,0,1,3-3H3a3,3,0,0,1,3,3Z":"M6,6H-6V-6H6Z",et=K?$.visible&&$.type===K:C.traceIs($,"bar"),Z=M.select(lt).select("g.legendpoints").selectAll("path.legend"+K).data(et?[ut]:[]);Z.enter().append("path").classed("legend"+K,!0).attr("d",ct).attr("transform",d),Z.exit().remove(),Z.each(function(ot){var st=M.select(this),dt=ot[0],xt=_(dt.mlw,H.line,m,u);st.style("stroke-width",xt+"px");var At=dt.mcc;if(!k._inHover&&"mc"in dt){var St=h(H),Nt=St.mid;Nt===void 0&&(Nt=(St.max+St.min)/2),At=w.tryColorscale(H,"")(Nt)}var Wt=At||dt.mc||H.color,Vt=H.pattern,jt=Vt&&w.getPatternAttr(Vt.shape,0,"");if(jt){var Dt=w.getPatternAttr(Vt.bgcolor,0,null),kt=w.getPatternAttr(Vt.fgcolor,0,null),Bt=Vt.fgopacity,Ot=p(Vt.size,8,10),Ht=p(Vt.solidity,.5,1),ye="legend-"+$.uid;st.call(w.pattern,"legend",T,ye,jt,Ot,Ht,At,Vt.fillmode,Dt,kt,Bt)}else st.call(S.fill,Wt);xt&&S.stroke(st,dt.mlc||at.color)})}function N(ut){var lt=ut[0].trace,K=M.select(this).select("g.legendpoints").selectAll("path.legendbox").data(lt.visible&&C.traceIs(lt,"box-violin")?[ut]:[]);K.enter().append("path").classed("legendbox",!0).attr("d","M6,6H-6V-6H6Z").attr("transform",d),K.exit().remove(),K.each(function(){var $=M.select(this);if((lt.boxpoints==="all"||lt.points==="all")&&S.opacity(lt.fillcolor)===0&&S.opacity((lt.line||{}).color)===0){var H=r.minExtend(lt,{marker:{size:g?a:r.constrain(lt.marker.size,2,16),sizeref:1,sizemin:1,sizemode:"diameter"}});K.call(w.pointStyle,H,T)}else{var at=_(void 0,lt.line,m,u);$.style("stroke-width",at+"px").call(S.fill,lt.fillcolor),at&&S.stroke($,lt.line.color)}})}function F(ut){var lt=ut[0].trace,K=M.select(this).select("g.legendpoints").selectAll("path.legendcandle").data(lt.visible&&lt.type==="candlestick"?[ut,ut]:[]);K.enter().append("path").classed("legendcandle",!0).attr("d",function($,H){return H?"M-15,0H-8M-8,6V-6H8Z":"M15,0H8M8,-6V6H-8Z"}).attr("transform",d).style("stroke-miterlimit",1),K.exit().remove(),K.each(function($,H){var at=M.select(this),ct=lt[H?"increasing":"decreasing"],et=_(void 0,ct.line,m,u);at.style("stroke-width",et+"px").call(S.fill,ct.fillcolor),et&&S.stroke(at,ct.line.color)})}function U(ut){var lt=ut[0].trace,K=M.select(this).select("g.legendpoints").selectAll("path.legendohlc").data(lt.visible&&lt.type==="ohlc"?[ut,ut]:[]);K.enter().append("path").classed("legendohlc",!0).attr("d",function($,H){return H?"M-15,0H0M-8,-6V0":"M15,0H0M8,6V0"}).attr("transform",d).style("stroke-miterlimit",1),K.exit().remove(),K.each(function($,H){var at=M.select(this),ct=lt[H?"increasing":"decreasing"],et=_(void 0,ct.line,m,u);at.style("fill","none").call(w.dashLine,ct.line.dash,et),et&&S.stroke(at,ct.line.color)})}function G(ut){Q(ut,this,"pie")}function Y(ut){Q(ut,this,"funnelarea")}function Q(ut,lt,K){var $=ut[0],H=$.trace,at=K?H.visible&&H.type===K:C.traceIs(H,K),ct=M.select(lt).select("g.legendpoints").selectAll("path.legend"+K).data(at?[ut]:[]);if(ct.enter().append("path").classed("legend"+K,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",d),ct.exit().remove(),ct.size()){var et=H.marker||{},Z=_(n(et.line.width,$.pts),et.line,m,u),ot="pieLike",st=r.minExtend(H,{marker:{line:{width:Z}}},ot),dt=r.minExtend($,{trace:st},ot);t(ct,dt,st,T)}}function ft(ut){var lt=ut[0].trace,K,$=[];if(lt.visible)switch(lt.type){case"histogram2d":case"heatmap":$=[["M-15,-2V4H15V-2Z"]],K=!0;break;case"choropleth":case"choroplethmapbox":case"choroplethmap":$=[["M-6,-6V6H6V-6Z"]],K=!0;break;case"densitymapbox":case"densitymap":$=[["M-6,0 a6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0"]],K="radial";break;case"cone":$=[["M-6,2 A2,2 0 0,0 -6,6 V6L6,4Z"],["M-6,-6 A2,2 0 0,0 -6,-2 L6,-4Z"],["M-6,-2 A2,2 0 0,0 -6,2 L6,0Z"]],K=!1;break;case"streamtube":$=[["M-6,2 A2,2 0 0,0 -6,6 H6 A2,2 0 0,1 6,2 Z"],["M-6,-6 A2,2 0 0,0 -6,-2 H6 A2,2 0 0,1 6,-6 Z"],["M-6,-2 A2,2 0 0,0 -6,2 H6 A2,2 0 0,1 6,-2 Z"]],K=!1;break;case"surface":$=[["M-6,-6 A2,3 0 0,0 -6,0 H6 A2,3 0 0,1 6,-6 Z"],["M-6,1 A2,3 0 0,1 -6,6 H6 A2,3 0 0,0 6,0 Z"]],K=!0;break;case"mesh3d":$=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],K=!1;break;case"volume":$=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],K=!0;break;case"isosurface":$=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6 A12,24 0 0,0 6,-6 L0,6Z"]],K=!1;break}var H=M.select(this).select("g.legendpoints").selectAll("path.legend3dandfriends").data($);H.enter().append("path").classed("legend3dandfriends",!0).attr("transform",d).style("stroke-miterlimit",1),H.exit().remove(),H.each(function(at,ct){var et=M.select(this),Z=h(lt),ot=Z.colorscale,st=Z.reversescale,dt=function(Nt){if(Nt.size()){var Wt="legendfill-"+lt.uid;w.gradient(Nt,T,Wt,y(st,K==="radial"),ot,"fill")}},xt;if(ot){if(!K){var At=ot.length;xt=ct===0?ot[st?At-1:0][1]:ct===1?ot[st?0:At-1][1]:ot[Math.floor((At-1)/2)][1]}}else{var St=lt.vertexcolor||lt.facecolor||lt.color;xt=r.isArrayOrTypedArray(St)?St[ct]||St[0]:St}et.attr("d",at[0]),xt?et.call(S.fill,xt):et.call(dt)})}};function y(f,T){var k=T?"radial":"horizontal";return k+(f?"":"reversed")}function c(f){var T=f[0].trace,k=T.contours,P=l.hasLines(T),g=l.hasMarkers(T),A=T.visible&&T.fill&&T.fill!=="none",E=!1,d=!1;if(k){var _=k.coloring;_==="lines"?E=!0:P=_==="none"||_==="heatmap"||k.showlines,k.type==="constraint"?A=k._operation!=="=":(_==="fill"||_==="heatmap")&&(d=!0)}return{showMarker:g,showLine:P,showFill:A,showGradientLine:E,showGradientFill:d,anyLine:P||E,anyFill:A||d}}function p(f,T,k){return f&&r.isArrayOrTypedArray(f)?T:f>k?k:f}},50308:function(nt,W,e){e(87632),nt.exports={editType:"modebar",orientation:{valType:"enumerated",values:["v","h"],dflt:"h",editType:"modebar"},bgcolor:{valType:"color",editType:"modebar"},color:{valType:"color",editType:"modebar"},activecolor:{valType:"color",editType:"modebar"},uirevision:{valType:"any",editType:"none"},add:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"},remove:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"}}},5832:function(nt,W,e){var M=e(33626),C=e(44122),r=e(5975),i=e(35188),w=e(28231).eraseActiveShape,S=e(34809),h=S._,l=nt.exports={};l.toImage={name:"toImage",title:function(k){var P=k._context.toImageButtonOptions||{},g=P.format||"png";return g==="png"?h(k,"Download plot as a png"):h(k,"Download plot")},icon:i.camera,click:function(k){var P=k._context.toImageButtonOptions,g={format:P.format||"png"};S.notifier(h(k,"Taking snapshot - this may take a few seconds"),"long"),g.format!=="svg"&&S.isIE()&&(S.notifier(h(k,"IE only supports svg. Changing format to svg."),"long"),g.format="svg"),["filename","width","height","scale"].forEach(function(A){A in P&&(g[A]=P[A])}),M.call("downloadImage",k,g).then(function(A){S.notifier(h(k,"Snapshot succeeded")+" - "+A,"long")}).catch(function(){S.notifier(h(k,"Sorry, there was a problem downloading your snapshot!"),"long")})}},l.sendDataToCloud={name:"sendDataToCloud",title:function(k){return h(k,"Edit in Chart Studio")},icon:i.disk,click:function(k){C.sendDataToCloud(k)}},l.editInChartStudio={name:"editInChartStudio",title:function(k){return h(k,"Edit in Chart Studio")},icon:i.pencil,click:function(k){C.sendDataToCloud(k)}},l.zoom2d={name:"zoom2d",_cat:"zoom",title:function(k){return h(k,"Zoom")},attr:"dragmode",val:"zoom",icon:i.zoombox,click:t},l.pan2d={name:"pan2d",_cat:"pan",title:function(k){return h(k,"Pan")},attr:"dragmode",val:"pan",icon:i.pan,click:t},l.select2d={name:"select2d",_cat:"select",title:function(k){return h(k,"Box Select")},attr:"dragmode",val:"select",icon:i.selectbox,click:t},l.lasso2d={name:"lasso2d",_cat:"lasso",title:function(k){return h(k,"Lasso Select")},attr:"dragmode",val:"lasso",icon:i.lasso,click:t},l.drawclosedpath={name:"drawclosedpath",title:function(k){return h(k,"Draw closed freeform")},attr:"dragmode",val:"drawclosedpath",icon:i.drawclosedpath,click:t},l.drawopenpath={name:"drawopenpath",title:function(k){return h(k,"Draw open freeform")},attr:"dragmode",val:"drawopenpath",icon:i.drawopenpath,click:t},l.drawline={name:"drawline",title:function(k){return h(k,"Draw line")},attr:"dragmode",val:"drawline",icon:i.drawline,click:t},l.drawrect={name:"drawrect",title:function(k){return h(k,"Draw rectangle")},attr:"dragmode",val:"drawrect",icon:i.drawrect,click:t},l.drawcircle={name:"drawcircle",title:function(k){return h(k,"Draw circle")},attr:"dragmode",val:"drawcircle",icon:i.drawcircle,click:t},l.eraseshape={name:"eraseshape",title:function(k){return h(k,"Erase active shape")},icon:i.eraseshape,click:w},l.zoomIn2d={name:"zoomIn2d",_cat:"zoomin",title:function(k){return h(k,"Zoom in")},attr:"zoom",val:"in",icon:i.zoom_plus,click:t},l.zoomOut2d={name:"zoomOut2d",_cat:"zoomout",title:function(k){return h(k,"Zoom out")},attr:"zoom",val:"out",icon:i.zoom_minus,click:t},l.autoScale2d={name:"autoScale2d",_cat:"autoscale",title:function(k){return h(k,"Autoscale")},attr:"zoom",val:"auto",icon:i.autoscale,click:t},l.resetScale2d={name:"resetScale2d",_cat:"resetscale",title:function(k){return h(k,"Reset axes")},attr:"zoom",val:"reset",icon:i.home,click:t},l.hoverClosestCartesian={name:"hoverClosestCartesian",_cat:"hoverclosest",title:function(k){return h(k,"Show closest data on hover")},attr:"hovermode",val:"closest",icon:i.tooltip_basic,gravity:"ne",click:t},l.hoverCompareCartesian={name:"hoverCompareCartesian",_cat:"hoverCompare",title:function(k){return h(k,"Compare data on hover")},attr:"hovermode",val:function(k){return k._fullLayout._isHoriz?"y":"x"},icon:i.tooltip_compare,gravity:"ne",click:t};function t(k,P){var g=P.currentTarget,A=g.getAttribute("data-attr"),E=g.getAttribute("data-val")||!0,d=k._fullLayout,_={},L=r.list(k,null,!0),b=d._cartesianSpikesEnabled,D,B;if(A==="zoom"){var I=E==="in"?.5:2,V=(1+I)/2,N=(1-I)/2,F;for(B=0;B<L.length;B++)if(D=L[B],!D.fixedrange)if(F=D._name,E==="auto")_[F+".autorange"]=!0;else if(E==="reset")D._rangeInitial0===void 0&&D._rangeInitial1===void 0?_[F+".autorange"]=!0:D._rangeInitial0===void 0?(_[F+".autorange"]=D._autorangeInitial,_[F+".range"]=[null,D._rangeInitial1]):D._rangeInitial1===void 0?(_[F+".range"]=[D._rangeInitial0,null],_[F+".autorange"]=D._autorangeInitial):_[F+".range"]=[D._rangeInitial0,D._rangeInitial1],D._showSpikeInitial!==void 0&&(_[F+".showspikes"]=D._showSpikeInitial,b==="on"&&!D._showSpikeInitial&&(b="off"));else{var U=[D.r2l(D.range[0]),D.r2l(D.range[1])],G=[V*U[0]+N*U[1],V*U[1]+N*U[0]];_[F+".range[0]"]=D.l2r(G[0]),_[F+".range[1]"]=D.l2r(G[1])}}else A==="hovermode"&&(E==="x"||E==="y")&&(E=d._isHoriz?"y":"x",g.setAttribute("data-val",E)),_[A]=E;d._cartesianSpikesEnabled=b,M.call("_guiRelayout",k,_)}l.zoom3d={name:"zoom3d",_cat:"zoom",title:function(k){return h(k,"Zoom")},attr:"scene.dragmode",val:"zoom",icon:i.zoombox,click:n},l.pan3d={name:"pan3d",_cat:"pan",title:function(k){return h(k,"Pan")},attr:"scene.dragmode",val:"pan",icon:i.pan,click:n},l.orbitRotation={name:"orbitRotation",title:function(k){return h(k,"Orbital rotation")},attr:"scene.dragmode",val:"orbit",icon:i["3d_rotate"],click:n},l.tableRotation={name:"tableRotation",title:function(k){return h(k,"Turntable rotation")},attr:"scene.dragmode",val:"turntable",icon:i["z-axis"],click:n};function n(k,P){for(var g=P.currentTarget,A=g.getAttribute("data-attr"),E=g.getAttribute("data-val")||!0,d=k._fullLayout._subplots.gl3d||[],_={},L=A.split("."),b=0;b<d.length;b++)_[d[b]+"."+L[1]]=E;var D=E==="pan"?E:"zoom";_.dragmode=D,M.call("_guiRelayout",k,_)}l.resetCameraDefault3d={name:"resetCameraDefault3d",_cat:"resetCameraDefault",title:function(k){return h(k,"Reset camera to default")},attr:"resetDefault",icon:i.home,click:o},l.resetCameraLastSave3d={name:"resetCameraLastSave3d",_cat:"resetCameraLastSave",title:function(k){return h(k,"Reset camera to last save")},attr:"resetLastSave",icon:i.movie,click:o};function o(k,P){for(var g=P.currentTarget,A=g.getAttribute("data-attr"),E=A==="resetLastSave",d=A==="resetDefault",_=k._fullLayout,L=_._subplots.gl3d||[],b={},D=0;D<L.length;D++){var B=L[D],I=B+".camera",V=B+".aspectratio",N=B+".aspectmode",F=_[B]._scene,U;E?(b[I+".up"]=F.viewInitial.up,b[I+".eye"]=F.viewInitial.eye,b[I+".center"]=F.viewInitial.center,U=!0):d&&(b[I+".up"]=null,b[I+".eye"]=null,b[I+".center"]=null,U=!0),U&&(b[V+".x"]=F.viewInitial.aspectratio.x,b[V+".y"]=F.viewInitial.aspectratio.y,b[V+".z"]=F.viewInitial.aspectratio.z,b[N]=F.viewInitial.aspectmode)}M.call("_guiRelayout",k,b)}l.hoverClosest3d={name:"hoverClosest3d",_cat:"hoverclosest",title:function(k){return h(k,"Toggle show closest data on hover")},attr:"hovermode",val:null,toggle:!0,icon:i.tooltip_basic,gravity:"ne",click:s};function a(k,P){var g=P.currentTarget,A=g._previousVal,E=k._fullLayout,d=E._subplots.gl3d||[],_=["xaxis","yaxis","zaxis"],L={},b={};if(A)b=A,g._previousVal=null;else{for(var D=0;D<d.length;D++){var B=d[D],I=E[B],V=B+".hovermode";L[V]=I.hovermode,b[V]=!1;for(var N=0;N<3;N++){var F=_[N],U=B+"."+F+".showspikes";b[U]=!1,L[U]=I[F].showspikes}}g._previousVal=L}return b}function s(k,P){var g=a(k,P);M.call("_guiRelayout",k,g)}l.zoomInGeo={name:"zoomInGeo",_cat:"zoomin",title:function(k){return h(k,"Zoom in")},attr:"zoom",val:"in",icon:i.zoom_plus,click:u},l.zoomOutGeo={name:"zoomOutGeo",_cat:"zoomout",title:function(k){return h(k,"Zoom out")},attr:"zoom",val:"out",icon:i.zoom_minus,click:u},l.resetGeo={name:"resetGeo",_cat:"reset",title:function(k){return h(k,"Reset")},attr:"reset",val:null,icon:i.autoscale,click:u},l.hoverClosestGeo={name:"hoverClosestGeo",_cat:"hoverclosest",title:function(k){return h(k,"Toggle show closest data on hover")},attr:"hovermode",val:null,toggle:!0,icon:i.tooltip_basic,gravity:"ne",click:m};function u(k,P){for(var g=P.currentTarget,A=g.getAttribute("data-attr"),E=g.getAttribute("data-val")||!0,d=k._fullLayout,_=d._subplots.geo||[],L=0;L<_.length;L++){var b=_[L],D=d[b];if(A==="zoom"){var B=D.projection.scale,I=E==="in"?2*B:.5*B;M.call("_guiRelayout",k,b+".projection.scale",I)}}A==="reset"&&T(k,"geo")}l.hoverClosestGl2d={name:"hoverClosestGl2d",_cat:"hoverclosest",title:function(k){return h(k,"Toggle show closest data on hover")},attr:"hovermode",val:null,toggle:!0,icon:i.tooltip_basic,gravity:"ne",click:m},l.hoverClosestPie={name:"hoverClosestPie",_cat:"hoverclosest",title:function(k){return h(k,"Toggle show closest data on hover")},attr:"hovermode",val:"closest",icon:i.tooltip_basic,gravity:"ne",click:m};function x(k){var P=k._fullLayout;return P.hovermode?!1:P._has("cartesian")?P._isHoriz?"y":"x":"closest"}function m(k){var P=x(k);M.call("_guiRelayout",k,"hovermode",P)}l.resetViewSankey={name:"resetSankeyGroup",title:function(k){return h(k,"Reset view")},icon:i.home,click:function(k){for(var P={"node.groups":[],"node.x":[],"node.y":[]},g=0;g<k._fullData.length;g++){var A=k._fullData[g]._viewInitial;P["node.groups"].push(A.node.groups.slice()),P["node.x"].push(A.node.x.slice()),P["node.y"].push(A.node.y.slice())}M.call("restyle",k,P)}},l.toggleHover={name:"toggleHover",title:function(k){return h(k,"Toggle show closest data on hover")},attr:"hovermode",val:null,toggle:!0,icon:i.tooltip_basic,gravity:"ne",click:function(k,P){var g=a(k,P);g.hovermode=x(k),M.call("_guiRelayout",k,g)}},l.resetViews={name:"resetViews",title:function(k){return h(k,"Reset views")},icon:i.home,click:function(k,P){var g=P.currentTarget;g.setAttribute("data-attr","zoom"),g.setAttribute("data-val","reset"),t(k,P),g.setAttribute("data-attr","resetLastSave"),o(k,P),T(k,"geo"),T(k,"mapbox"),T(k,"map")}},l.toggleSpikelines={name:"toggleSpikelines",title:function(k){return h(k,"Toggle Spike Lines")},icon:i.spikeline,attr:"_cartesianSpikesEnabled",val:"on",click:function(k){var P=k._fullLayout,g=P._cartesianSpikesEnabled;P._cartesianSpikesEnabled=g==="on"?"off":"on",M.call("_guiRelayout",k,y(k))}};function y(k){for(var P=k._fullLayout,g=P._cartesianSpikesEnabled==="on",A=r.list(k,null,!0),E={},d=0;d<A.length;d++){var _=A[d];E[_._name+".showspikes"]=g?!0:_._showSpikeInitial}return E}l.resetViewMapbox={name:"resetViewMapbox",_cat:"resetView",title:function(k){return h(k,"Reset view")},attr:"reset",icon:i.home,click:function(k){T(k,"mapbox")}},l.resetViewMap={name:"resetViewMap",_cat:"resetView",title:function(k){return h(k,"Reset view")},attr:"reset",icon:i.home,click:function(k){T(k,"map")}},l.zoomInMapbox={name:"zoomInMapbox",_cat:"zoomin",title:function(k){return h(k,"Zoom in")},attr:"zoom",val:"in",icon:i.zoom_plus,click:c},l.zoomInMap={name:"zoomInMap",_cat:"zoomin",title:function(k){return h(k,"Zoom in")},attr:"zoom",val:"in",icon:i.zoom_plus,click:p},l.zoomOutMapbox={name:"zoomOutMapbox",_cat:"zoomout",title:function(k){return h(k,"Zoom out")},attr:"zoom",val:"out",icon:i.zoom_minus,click:c},l.zoomOutMap={name:"zoomOutMap",_cat:"zoomout",title:function(k){return h(k,"Zoom out")},attr:"zoom",val:"out",icon:i.zoom_minus,click:p};function c(k,P){f(k,P,"mapbox")}function p(k,P){f(k,P,"map")}function f(k,P,g){for(var A=P.currentTarget,E=A.getAttribute("data-val"),d=k._fullLayout,_=d._subplots[g]||[],L=1.05,b={},D=0;D<_.length;D++){var B=_[D],I=d[B].zoom,V=E==="in"?L*I:I/L;b[B+".zoom"]=V}M.call("_guiRelayout",k,b)}function T(k,P){for(var g=k._fullLayout,A=g._subplots[P]||[],E={},d=0;d<A.length;d++)for(var _=A[d],L=g[_]._subplot,b=L.viewInitial,D=Object.keys(b),B=0;B<D.length;B++){var I=D[B];E[_+"."+I]=b[I]}M.call("_guiRelayout",k,E)}},87632:function(nt,W,e){var M=e(5832),C=Object.keys(M),r=["drawline","drawopenpath","drawclosedpath","drawcircle","drawrect","eraseshape"],i=["v1hovermode","hoverclosest","hovercompare","togglehover","togglespikelines"].concat(r),w=[],S=function(h){if(i.indexOf(h._cat||h.name)===-1){var l=h.name,t=(h._cat||h.name).toLowerCase();w.indexOf(l)===-1&&w.push(l),w.indexOf(t)===-1&&w.push(t)}};C.forEach(function(h){S(M[h])}),w.sort(),nt.exports={DRAW_MODES:r,backButtons:i,foreButtons:w}},17683:function(nt,W,e){var M=e(34809),C=e(78766),r=e(78032),i=e(50308);nt.exports=function(w,S){var h=w.modebar||{},l=r.newContainer(S,"modebar");function t(o,a){return M.coerce(h,l,i,o,a)}t("orientation"),t("bgcolor",C.addOpacity(S.paper_bgcolor,.5));var n=C.contrast(C.rgb(S.modebar.bgcolor));t("color",C.addOpacity(n,.3)),t("activecolor",C.addOpacity(n,.7)),t("uirevision",S.uirevision),t("add"),t("remove")}},95433:function(nt,W,e){nt.exports={moduleType:"component",name:"modebar",layoutAttributes:e(50308),supplyLayoutDefaults:e(17683),manage:e(75442)}},75442:function(nt,W,e){var M=e(5975),C=e(64726),r=e(33626),i=e(36040).isUnifiedHover,w=e(85393),S=e(5832),h=e(87632).DRAW_MODES,l=e(34809).extendDeep;nt.exports=function(x){var m=x._fullLayout,y=x._context,c=m._modeBar;if(!y.displayModeBar&&!y.watermark){c&&(c.destroy(),delete m._modeBar);return}if(!Array.isArray(y.modeBarButtonsToRemove))throw new Error(["*modeBarButtonsToRemove* configuration options","must be an array."].join(" "));if(!Array.isArray(y.modeBarButtonsToAdd))throw new Error(["*modeBarButtonsToAdd* configuration options","must be an array."].join(" "));var p=y.modeBarButtons,f;Array.isArray(p)&&p.length?f=u(p):!y.displayModeBar&&y.watermark?f=[]:f=t(x),c?c.update(x,f):m._modeBar=w(x,f)};function t(x){var m=x._fullLayout,y=x._fullData,c=x._context;function p(Z,ot){if(typeof ot=="string"){if(ot.toLowerCase()===Z.toLowerCase())return!0}else{var st=ot.name,dt=ot._cat||ot.name;if(st===Z||dt===Z.toLowerCase())return!0}return!1}var f=m.modebar.add;typeof f=="string"&&(f=[f]);var T=m.modebar.remove;typeof T=="string"&&(T=[T]);var k=c.modeBarButtonsToAdd.concat(f.filter(function(Z){for(var ot=0;ot<c.modeBarButtonsToRemove.length;ot++)if(p(Z,c.modeBarButtonsToRemove[ot]))return!1;return!0})),P=c.modeBarButtonsToRemove.concat(T.filter(function(Z){for(var ot=0;ot<c.modeBarButtonsToAdd.length;ot++)if(p(Z,c.modeBarButtonsToAdd[ot]))return!1;return!0})),g=m._has("cartesian"),A=m._has("gl3d"),E=m._has("geo"),d=m._has("pie"),_=m._has("funnelarea"),L=m._has("gl2d"),b=m._has("ternary"),D=m._has("mapbox"),B=m._has("map"),I=m._has("polar"),V=m._has("smith"),N=m._has("sankey"),F=n(m),U=i(m.hovermode),G=[];function Y(Z){if(Z.length){for(var ot=[],st=0;st<Z.length;st++){for(var dt=Z[st],xt=S[dt],At=xt.name.toLowerCase(),St=(xt._cat||xt.name).toLowerCase(),Nt=!1,Wt=0;Wt<P.length;Wt++){var Vt=P[Wt].toLowerCase();if(Vt===At||Vt===St){Nt=!0;break}}Nt||ot.push(S[dt])}G.push(ot)}}var Q=["toImage"];c.showEditInChartStudio?Q.push("editInChartStudio"):c.showSendToCloud&&Q.push("sendDataToCloud"),Y(Q);var ft=[],ut=[],lt=[],K=[];(g||L||d||_||b)+E+A+D+B+I+V>1?(ut=["toggleHover"],lt=["resetViews"]):E?(ft=["zoomInGeo","zoomOutGeo"],ut=["hoverClosestGeo"],lt=["resetGeo"]):A?(ut=["hoverClosest3d"],lt=["resetCameraDefault3d","resetCameraLastSave3d"]):D?(ft=["zoomInMapbox","zoomOutMapbox"],ut=["toggleHover"],lt=["resetViewMapbox"]):B?(ft=["zoomInMap","zoomOutMap"],ut=["toggleHover"],lt=["resetViewMap"]):L?ut=["hoverClosestGl2d"]:d?ut=["hoverClosestPie"]:N?(ut=["hoverClosestCartesian","hoverCompareCartesian"],lt=["resetViewSankey"]):ut=["toggleHover"],g&&ut.push("toggleSpikelines","hoverClosestCartesian","hoverCompareCartesian"),(a(y)||U)&&(ut=[]),(g||L)&&!F&&(ft=["zoomIn2d","zoomOut2d","autoScale2d"],lt[0]!=="resetViews"&&(lt=["resetScale2d"])),A?K=["zoom3d","pan3d","orbitRotation","tableRotation"]:(g||L)&&!F||b?K=["zoom2d","pan2d"]:D||B||E?K=["pan2d"]:I&&(K=["zoom2d"]),o(y)&&K.push("select2d","lasso2d");var $=[],H=function(Z){$.indexOf(Z)===-1&&ut.indexOf(Z)!==-1&&$.push(Z)};if(Array.isArray(k)){for(var at=[],ct=0;ct<k.length;ct++){var et=k[ct];typeof et=="string"?(et=et.toLowerCase(),h.indexOf(et)!==-1?(m._has("mapbox")||m._has("map")||m._has("cartesian"))&&K.push(et):et==="togglespikelines"?H("toggleSpikelines"):et==="togglehover"?H("toggleHover"):et==="hovercompare"?H("hoverCompareCartesian"):et==="hoverclosest"?(H("hoverClosestCartesian"),H("hoverClosestGeo"),H("hoverClosest3d"),H("hoverClosestGl2d"),H("hoverClosestPie")):et==="v1hovermode"&&(H("hoverClosestCartesian"),H("hoverCompareCartesian"),H("hoverClosestGeo"),H("hoverClosest3d"),H("hoverClosestGl2d"),H("hoverClosestPie"))):at.push(et)}k=at}return Y(K),Y(ft.concat(lt)),Y($),s(G,k)}function n(x){for(var m=M.list({_fullLayout:x},null,!0),y=0;y<m.length;y++)if(!m[y].fixedrange)return!1;return!0}function o(x){for(var m=!1,y=0;y<x.length&&!m;y++){var c=x[y];!c._module||!c._module.selectPoints||(r.traceIs(c,"scatter-like")?(C.hasMarkers(c)||C.hasText(c))&&(m=!0):r.traceIs(c,"box-violin")?(c.boxpoints==="all"||c.points==="all")&&(m=!0):m=!0)}return m}function a(x){for(var m=0;m<x.length;m++)if(!r.traceIs(x[m],"noHover"))return!1;return!0}function s(x,m){if(m.length)if(Array.isArray(m[0]))for(var y=0;y<m.length;y++)x.push(m[y]);else x.push(m);return x}function u(x){for(var m=l([],x),y=0;y<m.length;y++)for(var c=m[y],p=0;p<c.length;p++){var f=c[p];if(typeof f=="string")if(S[f]!==void 0)m[y][p]=S[f];else throw new Error(["*modeBarButtons* configuration options","invalid button name"].join(" "))}return m}},85393:function(nt,W,e){var M=e(45568),C=e(10721),r=e(34809),i=e(35188),w=e(29697).version,S=new DOMParser;function h(o){this.container=o.container,this.element=document.createElement("div"),this.update(o.graphInfo,o.buttons),this.container.appendChild(this.element)}var l=h.prototype;l.update=function(o,a){this.graphInfo=o;var s=this.graphInfo._context,u=this.graphInfo._fullLayout,x="modebar-"+u._uid;this.element.setAttribute("id",x),this._uid=x,this.element.className="modebar",s.displayModeBar==="hover"&&(this.element.className+=" modebar--hover ease-bg"),u.modebar.orientation==="v"&&(this.element.className+=" vertical",a=a.reverse());var m=u.modebar,y=s.displayModeBar==="hover"?".js-plotly-plot .plotly:hover ":"";r.deleteRelatedStyleRule(x),r.addRelatedStyleRule(x,y+"#"+x+" .modebar-group","background-color: "+m.bgcolor),r.addRelatedStyleRule(x,"#"+x+" .modebar-btn .icon path","fill: "+m.color),r.addRelatedStyleRule(x,"#"+x+" .modebar-btn:hover .icon path","fill: "+m.activecolor),r.addRelatedStyleRule(x,"#"+x+" .modebar-btn.active .icon path","fill: "+m.activecolor);var c=!this.hasButtons(a),p=this.hasLogo!==s.displaylogo,f=this.locale!==s.locale;if(this.locale=s.locale,(c||p||f)&&(this.removeAllButtons(),this.updateButtons(a),s.watermark||s.displaylogo)){var T=this.getLogo();s.watermark&&(T.className=T.className+" watermark"),u.modebar.orientation==="v"?this.element.insertBefore(T,this.element.childNodes[0]):this.element.appendChild(T),this.hasLogo=!0}this.updateActiveButton()},l.updateButtons=function(o){var a=this;this.buttons=o,this.buttonElements=[],this.buttonsNames=[],this.buttons.forEach(function(s){var u=a.createGroup();s.forEach(function(x){var m=x.name;if(!m)throw new Error("must provide button 'name' in button config");if(a.buttonsNames.indexOf(m)!==-1)throw new Error("button name '"+m+"' is taken");a.buttonsNames.push(m);var y=a.createButton(x);a.buttonElements.push(y),u.appendChild(y)}),a.element.appendChild(u)})},l.createGroup=function(){var o=document.createElement("div");return o.className="modebar-group",o},l.createButton=function(o){var a=this,s=document.createElement("a");s.setAttribute("rel","tooltip"),s.className="modebar-btn";var u=o.title;u===void 0?u=o.name:typeof u=="function"&&(u=u(this.graphInfo)),(u||u===0)&&s.setAttribute("data-title",u),o.attr!==void 0&&s.setAttribute("data-attr",o.attr);var x=o.val;x!==void 0&&(typeof x=="function"&&(x=x(this.graphInfo)),s.setAttribute("data-val",x));var m=o.click;if(typeof m!="function")throw new Error("must provide button 'click' function in button config");s.addEventListener("click",function(c){o.click(a.graphInfo,c),a.updateActiveButton(c.currentTarget)}),s.setAttribute("data-toggle",o.toggle||!1),o.toggle&&M.select(s).classed("active",!0);var y=o.icon;return typeof y=="function"?s.appendChild(y()):s.appendChild(this.createIcon(y||i.question)),s.setAttribute("data-gravity",o.gravity||"n"),s},l.createIcon=function(o){var a=C(o.height)?Number(o.height):o.ascent-o.descent,s="http://www.w3.org/2000/svg",u;if(o.path){u=document.createElementNS(s,"svg"),u.setAttribute("viewBox",[0,0,o.width,a].join(" ")),u.setAttribute("class","icon");var x=document.createElementNS(s,"path");x.setAttribute("d",o.path),o.transform?x.setAttribute("transform",o.transform):o.ascent!==void 0&&x.setAttribute("transform","matrix(1 0 0 -1 0 "+o.ascent+")"),u.appendChild(x)}if(o.svg){var m=S.parseFromString(o.svg,"application/xml");u=m.childNodes[0]}return u.setAttribute("height","1em"),u.setAttribute("width","1em"),u},l.updateActiveButton=function(o){var a=this.graphInfo._fullLayout,s=o!==void 0?o.getAttribute("data-attr"):null;this.buttonElements.forEach(function(u){var x=u.getAttribute("data-val")||!0,m=u.getAttribute("data-attr"),y=u.getAttribute("data-toggle")==="true",c=M.select(u);if(y)m===s&&c.classed("active",!c.classed("active"));else{var p=m===null?m:r.nestedProperty(a,m).get();c.classed("active",p===x)}})},l.hasButtons=function(o){var a=this.buttons;if(!a||o.length!==a.length)return!1;for(var s=0;s<o.length;++s){if(o[s].length!==a[s].length)return!1;for(var u=0;u<o[s].length;u++)if(o[s][u].name!==a[s][u].name)return!1}return!0};function t(o){return o+" (v"+w+")"}l.getLogo=function(){var o=this.createGroup(),a=document.createElement("a");return a.href="https://plotly.com/",a.target="_blank",a.setAttribute("data-title",t(r._(this.graphInfo,"Produced with Plotly.js"))),a.className="modebar-btn plotlyjsicon modebar-btn--logo",a.appendChild(this.createIcon(i.newplotlylogo)),o.appendChild(a),o},l.removeAllButtons=function(){for(;this.element.firstChild;)this.element.removeChild(this.element.firstChild);this.hasLogo=!1},l.destroy=function(){r.removeElement(this.container.querySelector(".modebar")),r.deleteRelatedStyleRule(this._uid)};function n(o,a){var s=o._fullLayout,u=new h({graphInfo:o,container:s._modebardiv.node(),buttons:a});return s._privateplot&&M.select(u.element).append("span").classed("badge-private float--left",!0).text("PRIVATE"),u}nt.exports=n},91032:function(nt,W,e){var M=e(80337),C=e(10229),r=e(78032).templatedArray,i=r("button",{visible:{valType:"boolean",dflt:!0,editType:"plot"},step:{valType:"enumerated",values:["month","year","day","hour","minute","second","all"],dflt:"month",editType:"plot"},stepmode:{valType:"enumerated",values:["backward","todate"],dflt:"backward",editType:"plot"},count:{valType:"number",min:0,dflt:1,editType:"plot"},label:{valType:"string",editType:"plot"},editType:"plot"});nt.exports={visible:{valType:"boolean",editType:"plot"},buttons:i,x:{valType:"number",min:-2,max:3,editType:"plot"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"plot"},y:{valType:"number",min:-2,max:3,editType:"plot"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"bottom",editType:"plot"},font:M({editType:"plot"}),bgcolor:{valType:"color",dflt:C.lightLine,editType:"plot"},activecolor:{valType:"color",editType:"plot"},bordercolor:{valType:"color",dflt:C.defaultLine,editType:"plot"},borderwidth:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"}},68508:function(nt){nt.exports={yPad:.02,minButtonWidth:30,rx:3,ry:3,lightAmount:25,darkAmount:10}},86255:function(nt,W,e){var M=e(34809),C=e(78766),r=e(78032),i=e(59008),w=e(91032),S=e(68508);nt.exports=function(t,n,o,a,s){var u=t.rangeselector||{},x=r.newContainer(n,"rangeselector");function m(T,k){return M.coerce(u,x,w,T,k)}var y=i(u,x,{name:"buttons",handleItemDefaults:h,calendar:s}),c=m("visible",y.length>0);if(c){var p=l(n,o,a);m("x",p[0]),m("y",p[1]),M.noneOrAll(t,n,["x","y"]),m("xanchor"),m("yanchor"),M.coerceFont(m,"font",o.font);var f=m("bgcolor");m("activecolor",C.contrast(f,S.lightAmount,S.darkAmount)),m("bordercolor"),m("borderwidth")}};function h(t,n,o,a){var s=a.calendar;function u(y,c){return M.coerce(t,n,w.buttons,y,c)}var x=u("visible");if(x){var m=u("step");m!=="all"&&(s&&s!=="gregorian"&&(m==="month"||m==="year")?n.stepmode="backward":u("stepmode"),u("count")),u("label")}}function l(t,n,o){for(var a=o.filter(function(m){return n[m].anchor===t._id}),s=0,u=0;u<a.length;u++){var x=n[a[u]].domain;x&&(s=Math.max(x[1],s))}return[t.domain[0],s+S.yPad]}},45431:function(nt,W,e){var M=e(45568),C=e(33626),r=e(44122),i=e(78766),w=e(62203),S=e(34809),h=S.strTranslate,l=e(30635),t=e(5975),n=e(4530),o=n.LINE_SPACING,a=n.FROM_TL,s=n.FROM_BR,u=e(68508),x=e(16383);nt.exports=function(g){var A=g._fullLayout,E=A._infolayer.selectAll(".rangeselector").data(m(g),y);E.enter().append("g").classed("rangeselector",!0),E.exit().remove(),E.style({cursor:"pointer","pointer-events":"all"}),E.each(function(d){var _=M.select(this),L=d,b=L.rangeselector,D=_.selectAll("g.button").data(S.filterVisible(b.buttons));D.enter().append("g").classed("button",!0),D.exit().remove(),D.each(function(B){var I=M.select(this),V=x(L,B);B._isActive=c(L,B,V),I.call(p,b,B),I.call(T,b,B,g),I.on("click",function(){g._dragged||C.call("_guiRelayout",g,V)}),I.on("mouseover",function(){B._isHovered=!0,I.call(p,b,B)}),I.on("mouseout",function(){B._isHovered=!1,I.call(p,b,B)})}),P(g,D,b,L._name,_)})};function m(g){for(var A=t.list(g,"x",!0),E=[],d=0;d<A.length;d++){var _=A[d];_.rangeselector&&_.rangeselector.visible&&E.push(_)}return E}function y(g){return g._id}function c(g,A,E){if(A.step==="all")return g.autorange===!0;var d=Object.keys(E);return g.range[0]===E[d[0]]&&g.range[1]===E[d[1]]}function p(g,A,E){var d=S.ensureSingle(g,"rect","selector-rect",function(_){_.attr("shape-rendering","crispEdges")});d.attr({rx:u.rx,ry:u.ry}),d.call(i.stroke,A.bordercolor).call(i.fill,f(A,E)).style("stroke-width",A.borderwidth+"px")}function f(g,A){return A._isActive||A._isHovered?g.activecolor:g.bgcolor}function T(g,A,E,d){function _(b){l.convertToTspans(b,d)}var L=S.ensureSingle(g,"text","selector-text",function(b){b.attr("text-anchor","middle")});L.call(w.font,A.font).text(k(E,d._fullLayout._meta)).call(_)}function k(g,A){return g.label?A?S.templateString(g.label,A):g.label:g.step==="all"?"all":g.count+g.step.charAt(0)}function P(g,A,E,d,_){var L=0,b=0,D=E.borderwidth;A.each(function(){var U=M.select(this),G=U.select(".selector-text"),Y=E.font.size*o,Q=Math.max(Y*l.lineCount(G),16)+3;b=Math.max(b,Q)}),A.each(function(){var U=M.select(this),G=U.select(".selector-rect"),Y=U.select(".selector-text"),Q=Y.node()&&w.bBox(Y.node()).width,ft=E.font.size*o,ut=l.lineCount(Y),lt=Math.max(Q+10,u.minButtonWidth);U.attr("transform",h(D+L,D)),G.attr({x:0,y:0,width:lt,height:b}),l.positionText(Y,lt/2,b/2-(ut-1)*ft/2+3),L+=lt+5});var B=g._fullLayout._size,I=B.l+B.w*E.x,V=B.t+B.h*(1-E.y),N="left";S.isRightAnchor(E)&&(I-=L,N="right"),S.isCenterAnchor(E)&&(I-=L/2,N="center");var F="top";S.isBottomAnchor(E)&&(V-=b,F="bottom"),S.isMiddleAnchor(E)&&(V-=b/2,F="middle"),L=Math.ceil(L),b=Math.ceil(b),I=Math.round(I),V=Math.round(V),r.autoMargin(g,d+"-range-selector",{x:E.x,y:E.y,l:L*a[N],r:L*s[N],b:b*s[F],t:b*a[F]}),_.attr("transform",h(I,V))}},16383:function(nt,W,e){var M=e(50936),C=e(34809).titleCase;nt.exports=function(i,w){var S=i._name,h={};if(w.step==="all")h[S+".autorange"]=!0;else{var l=r(i,w);h[S+".range[0]"]=l[0],h[S+".range[1]"]=l[1]}return h};function r(i,w){var S=i.range,h=new Date(i.r2l(S[1])),l=w.step,t=M["utc"+C(l)],n=w.count,o;switch(w.stepmode){case"backward":o=i.l2r(+t.offset(h,-n));break;case"todate":var a=t.offset(h,-n);o=i.l2r(+t.ceil(a));break}var s=S[1];return[o,s]}},44453:function(nt,W,e){nt.exports={moduleType:"component",name:"rangeselector",schema:{subplots:{xaxis:{rangeselector:e(91032)}}},layoutAttributes:e(91032),handleDefaults:e(86255),draw:e(45431)}},63608:function(nt,W,e){var M=e(10229);nt.exports={bgcolor:{valType:"color",dflt:M.background,editType:"plot"},bordercolor:{valType:"color",dflt:M.defaultLine,editType:"plot"},borderwidth:{valType:"integer",dflt:0,min:0,editType:"plot"},autorange:{valType:"boolean",dflt:!0,editType:"calc",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},range:{valType:"info_array",items:[{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}},{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}}],editType:"calc",impliedEdits:{autorange:!1}},thickness:{valType:"number",dflt:.15,min:0,max:1,editType:"plot"},visible:{valType:"boolean",dflt:!0,editType:"calc"},editType:"calc"}},46223:function(nt,W,e){var M=e(5975).list,C=e(32919).getAutoRange,r=e(20604);nt.exports=function(i){for(var w=M(i,"x",!0),S=0;S<w.length;S++){var h=w[S],l=h[r.name];l&&l.visible&&l.autorange&&(l._input.autorange=!0,l._input.range=l.range=C(i,h))}}},20604:function(nt){nt.exports={name:"rangeslider",containerClassName:"rangeslider-container",bgClassName:"rangeslider-bg",rangePlotClassName:"rangeslider-rangeplot",maskMinClassName:"rangeslider-mask-min",maskMaxClassName:"rangeslider-mask-max",slideBoxClassName:"rangeslider-slidebox",grabberMinClassName:"rangeslider-grabber-min",grabAreaMinClassName:"rangeslider-grabarea-min",handleMinClassName:"rangeslider-handle-min",grabberMaxClassName:"rangeslider-grabber-max",grabAreaMaxClassName:"rangeslider-grabarea-max",handleMaxClassName:"rangeslider-handle-max",maskMinOppAxisClassName:"rangeslider-mask-min-opp-axis",maskMaxOppAxisClassName:"rangeslider-mask-max-opp-axis",maskColor:"rgba(0,0,0,0.4)",maskOppAxisColor:"rgba(0,0,0,0.2)",slideBoxFill:"transparent",slideBoxCursor:"ew-resize",grabAreaFill:"transparent",grabAreaCursor:"col-resize",grabAreaWidth:10,handleWidth:4,handleRadius:1,handleStrokeWidth:1,extraPad:15}},41295:function(nt,W,e){var M=e(34809),C=e(78032),r=e(5975),i=e(63608),w=e(66249);nt.exports=function(S,h,l){var t=S[l],n=h[l];if(!(t.rangeslider||h._requestRangeslider[n._id]))return;M.isPlainObject(t.rangeslider)||(t.rangeslider={});var o=t.rangeslider,a=C.newContainer(n,"rangeslider");function s(E,d){return M.coerce(o,a,i,E,d)}var u,x;function m(E,d){return M.coerce(u,x,w,E,d)}var y=s("visible");if(y){s("bgcolor",h.plot_bgcolor),s("bordercolor"),s("borderwidth"),s("thickness"),s("autorange",!n.isValidRange(o.range)),s("range");var c=h._subplots;if(c)for(var p=c.cartesian.filter(function(E){return E.substr(0,E.indexOf("y"))===r.name2id(l)}).map(function(E){return E.substr(E.indexOf("y"),E.length)}),f=M.simpleMap(p,r.id2name),T=0;T<f.length;T++){var k=f[T];u=o[k]||{},x=C.newContainer(a,k,"yaxis");var P=h[k],g;u.range&&P.isValidRange(u.range)&&(g="fixed");var A=m("rangemode",g);A!=="match"&&m("range",P.range.slice())}a._input=o}}},88887:function(nt,W,e){var M=e(45568),C=e(33626),r=e(44122),i=e(34809),w=i.strTranslate,S=e(62203),h=e(78766),l=e(17240),t=e(37703),n=e(5975),o=e(14751),a=e(27983),s=e(20604);nt.exports=function(A){for(var E=A._fullLayout,d=E._rangeSliderData,_=0;_<d.length;_++){var L=d[_][s.name];L._clipId=L._id+"-"+E._uid}function b(B){return B._name}var D=E._infolayer.selectAll("g."+s.containerClassName).data(d,b);D.exit().each(function(B){var I=B[s.name];E._topdefs.select("#"+I._clipId).remove()}).remove(),d.length!==0&&(D.enter().append("g").classed(s.containerClassName,!0).attr("pointer-events","all"),D.each(function(B){var I=M.select(this),V=B[s.name],N=E[n.id2name(B.anchor)],F=V[n.id2name(B.anchor)];if(V.range){var U=i.simpleMap(V.range,B.r2l),G=i.simpleMap(B.range,B.r2l),Y;G[0]<G[1]?Y=[Math.min(U[0],G[0]),Math.max(U[1],G[1])]:Y=[Math.max(U[0],G[0]),Math.min(U[1],G[1])],V.range=V._input.range=i.simpleMap(Y,B.l2r)}B.cleanRange("rangeslider.range");var Q=E._size,ft=B.domain;V._width=Q.w*(ft[1]-ft[0]);var ut=Math.round(Q.l+Q.w*ft[0]),lt=Math.round(Q.t+Q.h*(1-B._counterDomainMin)+(B.side==="bottom"?B._depth:0)+V._offsetShift+s.extraPad);I.attr("transform",w(ut,lt)),V._rl=i.simpleMap(V.range,B.r2l);var K=V._rl[0],$=V._rl[1],H=$-K;if(V.p2d=function(St){return St/V._width*H+K},V.d2p=function(St){return(St-K)/H*V._width},B.rangebreaks){var at=B.locateBreaks(K,$);if(at.length){var ct,et,Z=0;for(ct=0;ct<at.length;ct++)et=at[ct],Z+=et.max-et.min;var ot=V._width/($-K-Z),st=[-ot*K];for(ct=0;ct<at.length;ct++)et=at[ct],st.push(st[st.length-1]-ot*(et.max-et.min));for(V.d2p=function(St){for(var Nt=st[0],Wt=0;Wt<at.length;Wt++){var Vt=at[Wt];if(St>=Vt.max)Nt=st[Wt+1];else if(St<Vt.min)break}return Nt+ot*St},ct=0;ct<at.length;ct++)et=at[ct],et.pmin=V.d2p(et.min),et.pmax=V.d2p(et.max);V.p2d=function(St){for(var Nt=st[0],Wt=0;Wt<at.length;Wt++){var Vt=at[Wt];if(St>=Vt.pmax)Nt=st[Wt+1];else if(St<Vt.pmin)break}return(St-Nt)/ot}}}if(F.rangemode!=="match"){var dt=N.r2l(F.range[0]),xt=N.r2l(F.range[1]),At=xt-dt;V.d2pOppAxis=function(St){return(St-dt)/At*V._height}}I.call(c,A,B,V).call(p,A,B,V).call(f,A,B,V).call(k,A,B,V,F).call(P,A,B,V).call(g,A,B,V),x(I,A,B,V),y(I,A,B,V,N,F),B.side==="bottom"&&l.draw(A,B._id+"title",{propContainer:B,propName:B._name+".title",placeholder:E._dfltTitle.x,attributes:{x:B._offset+B._length/2,y:lt+V._height+V._offsetShift+10+1.5*B.title.font.size,"text-anchor":"middle"}})}))};function u(A){return typeof A.clientX=="number"?A.clientX:A.touches&&A.touches.length>0?A.touches[0].clientX:0}function x(A,E,d,_){if(E._context.staticPlot)return;var L=A.select("rect."+s.slideBoxClassName).node(),b=A.select("rect."+s.grabAreaMinClassName).node(),D=A.select("rect."+s.grabAreaMaxClassName).node();function B(){var I=M.event,V=I.target,N=u(I),F=N-A.node().getBoundingClientRect().left,U=_.d2p(d._rl[0]),G=_.d2p(d._rl[1]),Y=o.coverSlip();this.addEventListener("touchmove",Q),this.addEventListener("touchend",ft),Y.addEventListener("mousemove",Q),Y.addEventListener("mouseup",ft);function Q(ut){var lt=u(ut),K=+lt-N,$,H,at;switch(V){case L:if(at="ew-resize",U+K>d._length||G+K<0)return;$=U+K,H=G+K;break;case b:if(at="col-resize",U+K>d._length)return;$=U+K,H=G;break;case D:if(at="col-resize",G+K<0)return;$=U,H=G+K;break;default:at="ew-resize",$=F,H=F+K;break}if(H<$){var ct=H;H=$,$=ct}_._pixelMin=$,_._pixelMax=H,a(M.select(Y),at),m(A,E,d,_)}function ft(){Y.removeEventListener("mousemove",Q),Y.removeEventListener("mouseup",ft),this.removeEventListener("touchmove",Q),this.removeEventListener("touchend",ft),i.removeElement(Y)}}A.on("mousedown",B),A.on("touchstart",B)}function m(A,E,d,_){function L(B){return d.l2r(i.constrain(B,_._rl[0],_._rl[1]))}var b=L(_.p2d(_._pixelMin)),D=L(_.p2d(_._pixelMax));window.requestAnimationFrame(function(){C.call("_guiRelayout",E,d._name+".range",[b,D])})}function y(A,E,d,_,L,b){var D=s.handleWidth/2;function B(ut){return i.constrain(ut,0,_._width)}function I(ut){return i.constrain(ut,0,_._height)}function V(ut){return i.constrain(ut,-D,_._width+D)}var N=B(_.d2p(d._rl[0])),F=B(_.d2p(d._rl[1]));if(A.select("rect."+s.slideBoxClassName).attr("x",N).attr("width",F-N),A.select("rect."+s.maskMinClassName).attr("width",N),A.select("rect."+s.maskMaxClassName).attr("x",F).attr("width",_._width-F),b.rangemode!=="match"){var U=_._height-I(_.d2pOppAxis(L._rl[1])),G=_._height-I(_.d2pOppAxis(L._rl[0]));A.select("rect."+s.maskMinOppAxisClassName).attr("x",N).attr("height",U).attr("width",F-N),A.select("rect."+s.maskMaxOppAxisClassName).attr("x",N).attr("y",G).attr("height",_._height-G).attr("width",F-N),A.select("rect."+s.slideBoxClassName).attr("y",U).attr("height",G-U)}var Y=.5,Q=Math.round(V(N-D))-Y,ft=Math.round(V(F-D))+Y;A.select("g."+s.grabberMinClassName).attr("transform",w(Q,Y)),A.select("g."+s.grabberMaxClassName).attr("transform",w(ft,Y))}function c(A,E,d,_){var L=i.ensureSingle(A,"rect",s.bgClassName,function(I){I.attr({x:0,y:0,"shape-rendering":"crispEdges"})}),b=_.borderwidth%2===0?_.borderwidth:_.borderwidth-1,D=-_._offsetShift,B=S.crispRound(E,_.borderwidth);L.attr({width:_._width+b,height:_._height+b,transform:w(D,D),"stroke-width":B}).call(h.stroke,_.bordercolor).call(h.fill,_.bgcolor)}function p(A,E,d,_){var L=E._fullLayout,b=i.ensureSingleById(L._topdefs,"clipPath",_._clipId,function(D){D.append("rect").attr({x:0,y:0})});b.select("rect").attr({width:_._width,height:_._height})}function f(A,E,d,_){var L=E.calcdata,b=A.selectAll("g."+s.rangePlotClassName).data(d._subplotsWith,i.identity);b.enter().append("g").attr("class",function(B){return s.rangePlotClassName+" "+B}).call(S.setClipUrl,_._clipId,E),b.order(),b.exit().remove();var D;b.each(function(B,I){var V=M.select(this),N=I===0,F=n.getFromId(E,B,"y"),U=F._name,G=_[U],Y={data:[],layout:{xaxis:{type:d.type,domain:[0,1],range:_.range.slice(),calendar:d.calendar},width:_._width,height:_._height,margin:{t:0,b:0,l:0,r:0}},_context:E._context};d.rangebreaks&&(Y.layout.xaxis.rangebreaks=d.rangebreaks),Y.layout[U]={type:F.type,domain:[0,1],range:G.rangemode!=="match"?G.range.slice():F.range.slice(),calendar:F.calendar},F.rangebreaks&&(Y.layout[U].rangebreaks=F.rangebreaks),r.supplyDefaults(Y);var Q=Y._fullLayout.xaxis,ft=Y._fullLayout[U];Q.clearCalc(),Q.setScale(),ft.clearCalc(),ft.setScale();var ut={id:B,plotgroup:V,xaxis:Q,yaxis:ft,isRangePlot:!0};N?D=ut:(ut.mainplot="xy",ut.mainplotinfo=D),t.rangePlot(E,ut,T(L,B))})}function T(A,E){for(var d=[],_=0;_<A.length;_++){var L=A[_],b=L[0].trace;b.xaxis+b.yaxis===E&&d.push(L)}return d}function k(A,E,d,_,L){var b=i.ensureSingle(A,"rect",s.maskMinClassName,function(V){V.attr({x:0,y:0,"shape-rendering":"crispEdges"})});b.attr("height",_._height).call(h.fill,s.maskColor);var D=i.ensureSingle(A,"rect",s.maskMaxClassName,function(V){V.attr({y:0,"shape-rendering":"crispEdges"})});if(D.attr("height",_._height).call(h.fill,s.maskColor),L.rangemode!=="match"){var B=i.ensureSingle(A,"rect",s.maskMinOppAxisClassName,function(V){V.attr({y:0,"shape-rendering":"crispEdges"})});B.attr("width",_._width).call(h.fill,s.maskOppAxisColor);var I=i.ensureSingle(A,"rect",s.maskMaxOppAxisClassName,function(V){V.attr({y:0,"shape-rendering":"crispEdges"})});I.attr("width",_._width).style("border-top",s.maskOppBorder).call(h.fill,s.maskOppAxisColor)}}function P(A,E,d,_){if(!E._context.staticPlot){var L=i.ensureSingle(A,"rect",s.slideBoxClassName,function(b){b.attr({y:0,cursor:s.slideBoxCursor,"shape-rendering":"crispEdges"})});L.attr({height:_._height,fill:s.slideBoxFill})}}function g(A,E,d,_){var L=i.ensureSingle(A,"g",s.grabberMinClassName),b=i.ensureSingle(A,"g",s.grabberMaxClassName),D={x:0,width:s.handleWidth,rx:s.handleRadius,fill:h.background,stroke:h.defaultLine,"stroke-width":s.handleStrokeWidth,"shape-rendering":"crispEdges"},B={y:Math.round(_._height/4),height:Math.round(_._height/2)},I=i.ensureSingle(L,"rect",s.handleMinClassName,function(G){G.attr(D)});I.attr(B);var V=i.ensureSingle(b,"rect",s.handleMaxClassName,function(G){G.attr(D)});V.attr(B);var N={width:s.grabAreaWidth,x:0,y:0,fill:s.grabAreaFill,cursor:E._context.staticPlot?void 0:s.grabAreaCursor},F=i.ensureSingle(L,"rect",s.grabAreaMinClassName,function(G){G.attr(N)});F.attr("height",_._height);var U=i.ensureSingle(b,"rect",s.grabAreaMaxClassName,function(G){G.attr(N)});U.attr("height",_._height)}},80400:function(nt,W,e){var M=e(5975),C=e(30635),r=e(20604),i=e(4530).LINE_SPACING,w=r.name;function S(h){var l=h&&h[w];return l&&l.visible}W.isVisible=S,W.makeData=function(h){var l=M.list({_fullLayout:h},"x",!0),t=h.margin,n=[];if(!h._has("gl2d"))for(var o=0;o<l.length;o++){var a=l[o];if(S(a)){n.push(a);var s=a[w];s._id=w+a._id,s._height=(h.height-t.b-t.t)*s.thickness,s._offsetShift=Math.floor(s.borderwidth/2)}}h._rangeSliderData=n},W.autoMarginOpts=function(h,l){var t=h._fullLayout,n=l[w],o=l._id.charAt(0),a=0,s=0;if(l.side==="bottom"&&(a=l._depth,l.title.text!==t._dfltTitle[o])){s=1.5*l.title.font.size+10+n._offsetShift;var u=(l.title.text.match(C.BR_TAG_ALL)||[]).length;s+=u*l.title.font.size*i}return{x:0,y:l._counterDomainMin,l:0,r:0,t:0,b:n._height+a+Math.max(t.margin.b,s),pad:r.extraPad+n._offsetShift*2}}},55429:function(nt,W,e){var M=e(34809),C=e(63608),r=e(66249),i=e(80400);nt.exports={moduleType:"component",name:"rangeslider",schema:{subplots:{xaxis:{rangeslider:M.extendFlat({},C,{yaxis:r})}}},layoutAttributes:e(63608),handleDefaults:e(41295),calcAutorange:e(46223),draw:e(88887),isVisible:i.isVisible,makeData:i.makeData,autoMarginOpts:i.autoMarginOpts}},66249:function(nt){nt.exports={_isSubplotObj:!0,rangemode:{valType:"enumerated",values:["auto","fixed","match"],dflt:"match",editType:"calc"},range:{valType:"info_array",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},editType:"calc"}},4327:function(nt,W,e){var M=e(50222),C=e(36640).line,r=e(94850).T,i=e(93049).extendFlat,w=e(13582).overrideAll,S=e(78032).templatedArray;e(35081),nt.exports=w(S("selection",{type:{valType:"enumerated",values:["rect","path"]},xref:i({},M.xref,{}),yref:i({},M.yref,{}),x0:{valType:"any"},x1:{valType:"any"},y0:{valType:"any"},y1:{valType:"any"},path:{valType:"string",editType:"arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:.7,editType:"arraydraw"},line:{color:C.color,width:i({},C.width,{min:1,dflt:1}),dash:i({},r,{dflt:"dot"})}}),"arraydraw","from-root")},78865:function(nt){nt.exports={BENDPX:1.5,MINSELECT:12,SELECTDELAY:100,SELECTID:"-select"}},2272:function(nt,W,e){var M=e(34809),C=e(29714),r=e(59008),i=e(4327),w=e(49728);nt.exports=function(h,l){r(h,l,{name:"selections",handleItemDefaults:S});for(var t=l.selections,n=0;n<t.length;n++){var o=t[n];o&&o.path===void 0&&(o.x0===void 0||o.x1===void 0||o.y0===void 0||o.y1===void 0)&&(l.selections[n]=null)}};function S(h,l,t){function n(L,b){return M.coerce(h,l,i,L,b)}var o=n("path"),a=o?"path":"rect",s=n("type",a),u=s!=="path";u&&delete l.path,n("opacity"),n("line.color"),n("line.width"),n("line.dash");for(var x=["x","y"],m=0;m<2;m++){var y=x[m],c={_fullLayout:t},p,f,T,k=C.coerceRef(h,l,c,y);if(p=C.getFromId(c,k),p._selectionIndices.push(l._index),T=w.rangeToShapePosition(p),f=w.shapePositionToRange(p),u){var P=y+"0",g=y+"1",A=h[P],E=h[g];h[P]=f(h[P],!0),h[g]=f(h[g],!0),C.coercePosition(l,c,n,k,P),C.coercePosition(l,c,n,k,g);var d=l[P],_=l[g];d!==void 0&&_!==void 0&&(l[P]=T(d),l[g]=T(_),h[P]=A,h[g]=E)}}u&&M.noneOrAll(h,l,["x0","x1","y0","y1"])}},7028:function(nt,W,e){var M=e(81055).readPaths,C=e(561),r=e(78534).clearOutlineControllers,i=e(78766),w=e(62203),S=e(78032).arrayEditor,h=e(49728),l=h.getPathString;nt.exports={draw:t,drawOne:o,activateLastSelection:u};function t(m){var y=m._fullLayout;r(m),y._selectionLayer.selectAll("path").remove();for(var c in y._plots){var p=y._plots[c].selectionLayer;p&&p.selectAll("path").remove()}for(var f=0;f<y.selections.length;f++)o(m,f)}function n(m){return m._context.editSelection}function o(m,y){m._fullLayout._paperdiv.selectAll('.selectionlayer [data-index="'+y+'"]').remove();var c=h.makeSelectionsOptionsAndPlotinfo(m,y),p=c.options,f=c.plotinfo;if(!p._input)return;T(m._fullLayout._selectionLayer);function T(k){var P=l(m,p),g={"data-index":y,"fill-rule":"evenodd",d:P},A=p.opacity,E="rgba(0,0,0,0)",d=p.line.color||i.contrast(m._fullLayout.plot_bgcolor),_=p.line.width,L=p.line.dash;_||(_=5,L="solid");var b=n(m)&&m._fullLayout._activeSelectionIndex===y;b&&(E=m._fullLayout.activeselection.fillcolor,A=m._fullLayout.activeselection.opacity);for(var D=[],B=1;B>=0;B--){var I=k.append("path").attr(g).style("opacity",B?.1:A).call(i.stroke,d).call(i.fill,E).call(w.dashLine,B?"solid":L,B?4+_:_);if(a(I,m,p),b){var V=S(m.layout,"selections",p);I.style({cursor:"move"});var N={element:I.node(),plotinfo:f,gd:m,editHelpers:V,isActiveSelection:!0},F=M(P,m);C(F,I,N)}else I.style("pointer-events",B?"all":"none");D[B]=I}var U=D[0],G=D[1];G.node().addEventListener("click",function(){return s(m,U)})}}function a(m,y,c){var p=c.xref+c.yref;w.setClipUrl(m,"clip"+y._fullLayout._uid+p,y)}function s(m,y){if(n(m)){var c=y.node(),p=+c.getAttribute("data-index");if(p>=0){if(p===m._fullLayout._activeSelectionIndex){x(m);return}m._fullLayout._activeSelectionIndex=p,m._fullLayout._deactivateSelection=x,t(m)}}}function u(m){if(n(m)){var y=m._fullLayout.selections.length-1;m._fullLayout._activeSelectionIndex=y,m._fullLayout._deactivateSelection=x,t(m)}}function x(m){if(n(m)){var y=m._fullLayout._activeSelectionIndex;y>=0&&(r(m),delete m._fullLayout._activeSelectionIndex,t(m))}}},52307:function(nt,W,e){var M=e(94850).T,C=e(93049).extendFlat;nt.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:C({},M,{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"}}},43028:function(nt){nt.exports=function(W,e,M){M("newselection.mode");var C=M("newselection.line.width");C&&(M("newselection.line.color"),M("newselection.line.dash")),M("activeselection.fillcolor"),M("activeselection.opacity")}},51817:function(nt,W,e){var M=e(70414),C=M.selectMode,r=e(78534),i=r.clearOutline,w=e(81055),S=w.readPaths,h=w.writePaths,l=w.fixDatesForPaths;nt.exports=function(t,n){if(t.length){var o=t[0][0];if(o){var a=o.getAttribute("d"),s=n.gd,u=s._fullLayout.newselection,x=n.plotinfo,m=x.xaxis,y=x.yaxis,c=n.isActiveSelection,p=n.dragmode,f=(s.layout||{}).selections||[];if(!C(p)&&c!==void 0){var T=s._fullLayout._activeSelectionIndex;if(T<f.length)switch(s._fullLayout.selections[T].type){case"rect":p="select";break;case"path":p="lasso";break}}var k=S(a,s,x,c),P={xref:m._id,yref:y._id,opacity:u.opacity,line:{color:u.line.color,width:u.line.width,dash:u.line.dash}},g;k.length===1&&(g=k[0]),g&&g.length===5&&p==="select"?(P.type="rect",P.x0=g[0][1],P.y0=g[0][2],P.x1=g[2][1],P.y1=g[2][2]):(P.type="path",m&&y&&l(k,m,y),P.path=h(k),g=null),i(s);for(var A=n.editHelpers,E=(A||{}).modifyItem,d=[],_=0;_<f.length;_++){var L=s._fullLayout.selections[_];if(!L){d[_]=L;continue}if(d[_]=L._input,c!==void 0&&_===s._fullLayout._activeSelectionIndex){var b=P;switch(L.type){case"rect":E("x0",b.x0),E("x1",b.x1),E("y0",b.y0),E("y1",b.y1);break;case"path":E("path",b.path);break}}}return c===void 0?(d.push(P),d):A?A.getUpdateObj():{}}}}},49801:function(nt,W,e){var M=e(34809).strTranslate;function C(S,h){switch(S.type){case"log":return S.p2d(h);case"date":return S.p2r(h,0,S.calendar);default:return S.p2r(h)}}function r(S,h){switch(S.type){case"log":return S.d2p(h);case"date":return S.r2p(h,0,S.calendar);default:return S.r2p(h)}}function i(S){var h=S._id.charAt(0)==="y"?1:0;return function(l){return C(S,l[h])}}function w(S){return M(S.xaxis._offset,S.yaxis._offset)}nt.exports={p2r:C,r2p:r,axValue:i,getTransform:w}},44844:function(nt,W,e){var M=e(7028),C=e(88666);nt.exports={moduleType:"component",name:"selections",layoutAttributes:e(4327),supplyLayoutDefaults:e(2272),supplyDrawNewSelectionDefaults:e(43028),includeBasePlot:e(20706)("selections"),draw:M.draw,drawOne:M.drawOne,reselect:C.reselect,prepSelect:C.prepSelect,clearOutline:C.clearOutline,clearSelectionsCache:C.clearSelectionsCache,selectOnClick:C.selectOnClick}},88666:function(nt,W,e){var M=e(11516),C=e(52773),r=e(33626),i=e(62203).dashStyle,w=e(78766),S=e(32141),h=e(36040).makeEventData,l=e(70414),t=l.freeMode,n=l.rectMode,o=l.drawMode,a=l.openMode,s=l.selectMode,u=e(49728),x=e(2956),m=e(561),y=e(78534).clearOutline,c=e(81055),p=c.handleEllipse,f=c.readPaths,T=e(87562).newShapes,k=e(51817),P=e(7028).activateLastSelection,g=e(34809),A=g.sorterAsc,E=e(80899),d=e(64025),_=e(5975).getFromId,L=e(34823),b=e(71817).redrawReglTraces,D=e(78865),B=D.MINSELECT,I=E.filter,V=E.tester,N=e(49801),F=N.p2r,U=N.axValue,G=N.getTransform;function Y(ne){return ne.subplot!==void 0}function Q(ne,zt,qt,Zt,ae){var vt=!Y(Zt),Mt=t(ae),Lt=n(ae),$t=a(ae),ge=o(ae),de=s(ae),sr=ae==="drawline",mr=ae==="drawcircle",Ve=sr||mr,le=Zt.gd,pe=le._fullLayout,Te=de&&pe.newselection.mode==="immediate"&&vt,Yt=pe._zoomlayer,Ee=Zt.element.getBoundingClientRect(),Ne=Zt.plotinfo,ar=G(Ne),Ye=zt-Ee.left,Jt=qt-Ee.top;pe._calcInverseTransform(le);var ue=g.apply3DTransform(pe._invTransform)(Ye,Jt);Ye=ue[0],Jt=ue[1];var Se=pe._invScaleX,De=pe._invScaleY,Ze=Ye,nr=Jt,Ke="M"+Ye+","+Jt,er=Zt.xaxes[0],xr=Zt.yaxes[0],Sr=er._length,Cr=xr._length,Er=ne.altKey&&!(o(ae)&&$t),Lr,Ur,zr,te,he,Je,br;H(ne,le,Zt),Mt&&(Lr=I([[Ye,Jt]],D.BENDPX));var pr=Yt.selectAll("path.select-outline-"+Ne.id).data([1]),We=ge?pe.newshape:pe.newselection;ge&&(Zt.hasText=We.label.text||We.label.texttemplate);var hr=ge&&!$t?We.fillcolor:"rgba(0,0,0,0)",Ar=We.line.color||(vt?w.contrast(le._fullLayout.plot_bgcolor):"#7f7f7f");pr.enter().append("path").attr("class","select-outline select-outline-"+Ne.id).style({opacity:ge?We.opacity/2:1,"stroke-dasharray":i(We.line.dash,We.line.width),"stroke-width":We.line.width+"px","shape-rendering":"crispEdges"}).call(w.stroke,Ar).call(w.fill,hr).attr("fill-rule","evenodd").classed("cursor-move",!!ge).attr("transform",ar).attr("d",Ke+"Z");var yr=Yt.append("path").attr("class","zoombox-corners").style({fill:w.background,stroke:w.defaultLine,"stroke-width":1}).attr("transform",ar).attr("d","M0,0Z");if(ge&&Zt.hasText){var dr=Yt.select(".label-temp");dr.empty()&&(dr=Yt.append("g").classed("label-temp",!0).classed("select-outline",!0).style({opacity:.8}))}var Rr=pe._uid+D.SELECTID,Qr=[],Xr=ot(le,Zt.xaxes,Zt.yaxes,Zt.subplot);Te&&!ne.shiftKey&&(Zt._clearSubplotSelections=function(){if(vt){var on=er._id,Hn=xr._id;Qt(le,on,Hn,Xr);for(var Fn=(le.layout||{}).selections||[],jr=[],Pr=!1,fn=0;fn<Fn.length;fn++){var nn=pe.selections[fn];nn.xref!==on||nn.yref!==Hn?jr.push(Fn[fn]):Pr=!0}Pr&&(le._fullLayout._noEmitSelectedAtStart=!0,r.call("_guiRelayout",le,{selections:jr}))}});var Dn=Ie(Zt);Zt.moveFn=function(on,Hn){Zt._clearSubplotSelections&&(Zt._clearSubplotSelections(),Zt._clearSubplotSelections=void 0),Ze=Math.max(0,Math.min(Sr,Se*on+Ye)),nr=Math.max(0,Math.min(Cr,De*Hn+Jt));var Fn=Math.abs(Ze-Ye),jr=Math.abs(nr-Jt);if(Lt){var Pr,fn,nn;if(de){var Rn=pe.selectdirection;switch(Rn==="any"?jr<Math.min(Fn*.6,B)?Pr="h":Fn<Math.min(jr*.6,B)?Pr="v":Pr="d":Pr=Rn,Pr){case"h":fn=mr?Cr/2:0,nn=Cr;break;case"v":fn=mr?Sr/2:0,nn=Sr;break}}if(ge)switch(pe.newshape.drawdirection){case"vertical":Pr="h",fn=mr?Cr/2:0,nn=Cr;break;case"horizontal":Pr="v",fn=mr?Sr/2:0,nn=Sr;break;case"ortho":Fn<jr?(Pr="h",fn=Jt,nn=nr):(Pr="v",fn=Ye,nn=Ze);break;default:Pr="d"}Pr==="h"?(te=Ve?p(mr,[Ze,fn],[Ze,nn]):[[Ye,fn],[Ye,nn],[Ze,nn],[Ze,fn]],te.xmin=Ve?Ze:Math.min(Ye,Ze),te.xmax=Ve?Ze:Math.max(Ye,Ze),te.ymin=Math.min(fn,nn),te.ymax=Math.max(fn,nn),yr.attr("d","M"+te.xmin+","+(Jt-B)+"h-4v"+2*B+"h4ZM"+(te.xmax-1)+","+(Jt-B)+"h4v"+2*B+"h-4Z")):Pr==="v"?(te=Ve?p(mr,[fn,nr],[nn,nr]):[[fn,Jt],[fn,nr],[nn,nr],[nn,Jt]],te.xmin=Math.min(fn,nn),te.xmax=Math.max(fn,nn),te.ymin=Ve?nr:Math.min(Jt,nr),te.ymax=Ve?nr:Math.max(Jt,nr),yr.attr("d","M"+(Ye-B)+","+te.ymin+"v-4h"+2*B+"v4ZM"+(Ye-B)+","+(te.ymax-1)+"v4h"+2*B+"v-4Z")):Pr==="d"&&(te=Ve?p(mr,[Ye,Jt],[Ze,nr]):[[Ye,Jt],[Ye,nr],[Ze,nr],[Ze,Jt]],te.xmin=Math.min(Ye,Ze),te.xmax=Math.max(Ye,Ze),te.ymin=Math.min(Jt,nr),te.ymax=Math.max(Jt,nr),yr.attr("d","M0,0Z"))}else Mt&&(Lr.addPt([Ze,nr]),te=Lr.filtered);if(Zt.selectionDefs&&Zt.selectionDefs.length?(zr=jt(Zt.mergedPolygons,te,Er),te.subtract=Er,Ur=$(Zt.selectionDefs.concat([te]))):(zr=[te],Ur=V(te)),m(kt(zr,$t),pr,Zt),de){var On=Ot(le,!1),vn=On.eventData?On.eventData.points.slice():[];On=Ot(le,!1,Ur,Xr,Zt),Ur=On.selectionTesters,br=On.eventData;var Gn;Lr?Gn=Lr.filtered:Gn=Oe(zr),d.throttle(Rr,D.SELECTDELAY,function(){Qr=Bt(Ur,Xr);for(var ii=Qr.slice(),Wi=0;Wi<vn.length;Wi++){for(var ra=vn[Wi],vi=!1,Oi=0;Oi<ii.length;Oi++)if(ii[Oi].curveNumber===ra.curveNumber&&ii[Oi].pointNumber===ra.pointNumber){vi=!0;break}vi||ii.push(ra)}ii.length&&(br||(br={}),br.points=ii),Dn(br,Gn),Ut(le,br)})}},Zt.clickFn=function(on,Hn){if(yr.remove(),le._fullLayout._activeShapeIndex>=0){le._fullLayout._deactivateShape(le);return}if(!ge){var Fn=pe.clickmode;d.done(Rr).then(function(){if(d.clear(Rr),on===2){for(pr.remove(),he=0;he<Xr.length;he++)Je=Xr[he],Je._module.selectPoints(Je,!1);if(Wt(le,Xr),et(Zt),Kt(le),Xr.length){var jr=Xr[0].xaxis,Pr=Xr[0].yaxis;if(jr&&Pr){for(var fn=[],nn=le._fullLayout.selections,Rn=0;Rn<nn.length;Rn++){var On=nn[Rn];On&&(On.xref!==jr._id||On.yref!==Pr._id)&&fn.push(On)}fn.length<nn.length&&(le._fullLayout._noEmitSelectedAtStart=!0,r.call("_guiRelayout",le,{selections:fn}))}}}else Fn.indexOf("select")>-1&&ft(Hn,le,Zt.xaxes,Zt.yaxes,Zt.subplot,Zt,pr),Fn==="event"&&ee(le,void 0);S.click(le,Hn,Ne.id)}).catch(g.error)}},Zt.doneFn=function(){yr.remove(),d.done(Rr).then(function(){d.clear(Rr),!Te&&te&&Zt.selectionDefs&&(te.subtract=Er,Zt.selectionDefs.push(te),Zt.mergedPolygons.length=0,[].push.apply(Zt.mergedPolygons,zr)),(Te||ge)&&et(Zt,Te),Zt.doneFnCompleted&&Zt.doneFnCompleted(Qr),de&&ee(le,br)}).catch(g.error)}}function ft(ne,zt,qt,Zt,ae,vt,Mt){var Lt=zt._hoverdata,$t=zt._fullLayout,ge=$t.clickmode,de=ge.indexOf("event")>-1,sr=[],mr,Ve,le,pe,Te,Yt,Ee,Ne,ar,Ye;if(dt(Lt)){H(ne,zt,vt),mr=ot(zt,qt,Zt,ae);var Jt=xt(Lt,mr),ue=Jt.pointNumbers.length>0;if(ue?St(mr,Jt):Nt(mr)&&(Ee=At(Jt))){for(Mt&&Mt.remove(),Ye=0;Ye<mr.length;Ye++)Ve=mr[Ye],Ve._module.selectPoints(Ve,!1);Wt(zt,mr),et(vt),de&&Kt(zt)}else{Ne=ne.shiftKey&&(Ee!==void 0?Ee:At(Jt)),le=ut(Jt.pointNumber,Jt.searchInfo,Ne);var Se=vt.selectionDefs.concat([le]);for(pe=$(Se),Ye=0;Ye<mr.length;Ye++)if(Te=mr[Ye]._module.selectPoints(mr[Ye],pe),Yt=Dt(Te,mr[Ye]),sr.length)for(var De=0;De<Yt.length;De++)sr.push(Yt[De]);else sr=Yt;if(ar={points:sr},Wt(zt,mr,ar),le&&vt&&vt.selectionDefs.push(le),Mt){var Ze=vt.mergedPolygons,nr=a(vt.dragmode);m(kt(Ze,nr),Mt,vt)}de&&ee(zt,ar)}}}function ut(ne,zt,qt){return{pointNumber:ne,searchInfo:zt,subtract:!!qt}}function lt(ne){return"pointNumber"in ne&&"searchInfo"in ne}function K(ne){return{xmin:0,xmax:0,ymin:0,ymax:0,pts:[],contains:function(zt,qt,Zt,ae){var vt=ne.searchInfo.cd[0].trace._expandedIndex,Mt=ae.cd[0].trace._expandedIndex;return Mt===vt&&Zt===ne.pointNumber},isRect:!1,degenerate:!1,subtract:!!ne.subtract}}function $(ne){if(!ne.length)return;for(var zt=[],qt=lt(ne[0])?0:ne[0][0][0],Zt=qt,ae=lt(ne[0])?0:ne[0][0][1],vt=ae,Mt=0;Mt<ne.length;Mt++)if(lt(ne[Mt]))zt.push(K(ne[Mt]));else{var Lt=V(ne[Mt]);Lt.subtract=!!ne[Mt].subtract,zt.push(Lt),qt=Math.min(qt,Lt.xmin),Zt=Math.max(Zt,Lt.xmax),ae=Math.min(ae,Lt.ymin),vt=Math.max(vt,Lt.ymax)}function $t(ge,de,sr,mr){for(var Ve=!1,le=0;le<zt.length;le++)zt[le].contains(ge,de,sr,mr)&&(Ve=!zt[le].subtract);return Ve}return{xmin:qt,xmax:Zt,ymin:ae,ymax:vt,pts:[],contains:$t,isRect:!1,degenerate:!1}}function H(ne,zt,qt){var Zt=zt._fullLayout,ae=qt.plotinfo,vt=qt.dragmode,Mt=Zt._lastSelectedSubplot&&Zt._lastSelectedSubplot===ae.id,Lt=(ne.shiftKey||ne.altKey)&&!(o(vt)&&a(vt));Mt&&Lt&&ae.selection&&ae.selection.selectionDefs&&!qt.selectionDefs?(qt.selectionDefs=ae.selection.selectionDefs,qt.mergedPolygons=ae.selection.mergedPolygons):(!Lt||!ae.selection)&&et(qt),Mt||(y(zt),Zt._lastSelectedSubplot=ae.id)}function at(ne){return ne._fullLayout._activeShapeIndex>=0}function ct(ne){return ne._fullLayout._activeSelectionIndex>=0}function et(ne,zt){var qt=ne.dragmode,Zt=ne.plotinfo,ae=ne.gd;at(ae)&&ae._fullLayout._deactivateShape(ae),ct(ae)&&ae._fullLayout._deactivateSelection(ae);var vt=ae._fullLayout,Mt=vt._zoomlayer,Lt=o(qt),$t=s(qt);if(Lt||$t){var ge=Mt.selectAll(".select-outline-"+Zt.id);if(ge&&ae._fullLayout._outlining){var de;Lt&&(de=T(ge,ne)),de&&r.call("_guiRelayout",ae,{shapes:de});var sr;$t&&!Y(ne)&&(sr=k(ge,ne)),sr&&(ae._fullLayout._noEmitSelectedAtStart=!0,r.call("_guiRelayout",ae,{selections:sr}).then(function(){zt&&P(ae)})),ae._fullLayout._outlining=!1}}Zt.selection={},Zt.selection.selectionDefs=ne.selectionDefs=[],Zt.selection.mergedPolygons=ne.mergedPolygons=[]}function Z(ne){return ne._id}function ot(ne,zt,qt,Zt){if(!ne.calcdata)return[];var ae=[],vt=zt.map(Z),Mt=qt.map(Z),Lt,$t,ge;for(ge=0;ge<ne.calcdata.length;ge++)if(Lt=ne.calcdata[ge],$t=Lt[0].trace,!($t.visible!==!0||!$t._module||!$t._module.selectPoints))if(Y({subplot:Zt})&&($t.subplot===Zt||$t.geo===Zt))ae.push(st($t._module,Lt,zt[0],qt[0]));else if($t.type==="splom"){if($t._xaxes[vt[0]]&&$t._yaxes[Mt[0]]){var de=st($t._module,Lt,zt[0],qt[0]);de.scene=ne._fullLayout._splomScenes[$t.uid],ae.push(de)}}else if($t.type==="sankey"){var sr=st($t._module,Lt,zt[0],qt[0]);ae.push(sr)}else{if(vt.indexOf($t.xaxis)===-1&&(!$t._xA||!$t._xA.overlaying)||Mt.indexOf($t.yaxis)===-1&&(!$t._yA||!$t._yA.overlaying))continue;ae.push(st($t._module,Lt,_(ne,$t.xaxis),_(ne,$t.yaxis)))}return ae}function st(ne,zt,qt,Zt){return{_module:ne,cd:zt,xaxis:qt,yaxis:Zt}}function dt(ne){return ne&&Array.isArray(ne)&&ne[0].hoverOnBox!==!0}function xt(ne,zt){var qt=ne[0],Zt=-1,ae=[],vt,Mt;for(Mt=0;Mt<zt.length;Mt++)if(vt=zt[Mt],qt.fullData._expandedIndex===vt.cd[0].trace._expandedIndex){if(qt.hoverOnBox===!0)break;qt.pointNumber!==void 0?Zt=qt.pointNumber:qt.binNumber!==void 0&&(Zt=qt.binNumber,ae=qt.pointNumbers);break}return{pointNumber:Zt,pointNumbers:ae,searchInfo:vt}}function At(ne){var zt=ne.searchInfo.cd[0].trace,qt=ne.pointNumber,Zt=ne.pointNumbers,ae=Zt.length>0,vt=ae?Zt[0]:qt;return zt.selectedpoints?zt.selectedpoints.indexOf(vt)>-1:!1}function St(ne,zt){var qt=[],Zt,ae,vt,Mt;for(Mt=0;Mt<ne.length;Mt++)Zt=ne[Mt],Zt.cd[0].trace.selectedpoints&&Zt.cd[0].trace.selectedpoints.length>0&&qt.push(Zt);if(qt.length===1&&(vt=qt[0]===zt.searchInfo,vt&&(ae=zt.searchInfo.cd[0].trace,ae.selectedpoints.length===zt.pointNumbers.length))){for(Mt=0;Mt<zt.pointNumbers.length;Mt++)if(ae.selectedpoints.indexOf(zt.pointNumbers[Mt])<0)return!1;return!0}return!1}function Nt(ne){var zt=0,qt,Zt,ae;for(ae=0;ae<ne.length;ae++)if(qt=ne[ae],Zt=qt.cd[0].trace,Zt.selectedpoints&&(Zt.selectedpoints.length>1||(zt+=Zt.selectedpoints.length,zt>1)))return!1;return zt===1}function Wt(ne,zt,qt){var Zt;for(Zt=0;Zt<zt.length;Zt++){var ae=zt[Zt].cd[0].trace._fullInput,vt=ne._fullLayout._tracePreGUI[ae.uid]||{};vt.selectedpoints===void 0&&(vt.selectedpoints=ae._input.selectedpoints||null)}var Mt;if(qt){var Lt=qt.points||[];for(Zt=0;Zt<zt.length;Zt++)Mt=zt[Zt].cd[0].trace,Mt._input.selectedpoints=Mt._fullInput.selectedpoints=[],Mt._fullInput!==Mt&&(Mt.selectedpoints=[]);for(var $t=0;$t<Lt.length;$t++){var ge=Lt[$t],de=ge.data,sr=ge.fullData,mr=ge.pointIndex,Ve=ge.pointIndices;Ve?([].push.apply(de.selectedpoints,Ve),Mt._fullInput!==Mt&&[].push.apply(sr.selectedpoints,Ve)):(de.selectedpoints.push(mr),Mt._fullInput!==Mt&&sr.selectedpoints.push(mr))}}else for(Zt=0;Zt<zt.length;Zt++)Mt=zt[Zt].cd[0].trace,delete Mt.selectedpoints,delete Mt._input.selectedpoints,Mt._fullInput!==Mt&&delete Mt._fullInput.selectedpoints;Vt(ne,zt)}function Vt(ne,zt){for(var qt=!1,Zt=0;Zt<zt.length;Zt++){var ae=zt[Zt],vt=ae.cd;r.traceIs(vt[0].trace,"regl")&&(qt=!0);var Mt=ae._module,Lt=Mt.styleOnSelect||Mt.style;Lt&&(Lt(ne,vt,vt[0].node3),vt[0].nodeRangePlot3&&Lt(ne,vt,vt[0].nodeRangePlot3))}qt&&(L(ne),b(ne))}function jt(ne,zt,qt){for(var Zt=qt?M.difference:M.union,ae=Zt({regions:ne},{regions:[zt]}),vt=ae.regions.reverse(),Mt=0;Mt<vt.length;Mt++){var Lt=vt[Mt];Lt.subtract=Ae(Lt,vt.slice(0,Mt))}return vt}function Dt(ne,zt){if(Array.isArray(ne))for(var qt=zt.cd,Zt=zt.cd[0].trace,ae=0;ae<ne.length;ae++)ne[ae]=h(ne[ae],Zt,qt);return ne}function kt(ne,zt){for(var qt=[],Zt=0;Zt<ne.length;Zt++){qt[Zt]=[];for(var ae=0;ae<ne[Zt].length;ae++){qt[Zt][ae]=[],qt[Zt][ae][0]=ae?"L":"M";for(var vt=0;vt<ne[Zt][ae].length;vt++)qt[Zt][ae].push(ne[Zt][ae][vt])}zt||qt[Zt].push(["Z",qt[Zt][0][1],qt[Zt][0][2]])}return qt}function Bt(ne,zt){for(var qt=[],Zt,ae,vt=0;vt<zt.length;vt++){var Mt=zt[vt];ae=Mt._module.selectPoints(Mt,ne),Zt=Dt(ae,Mt),qt=qt.concat(Zt)}return qt}function Ot(ne,zt,qt,Zt,ae){var vt=!!Zt,Mt,Lt,$t;ae&&(Mt=ae.plotinfo,Lt=ae.xaxes[0]._id,$t=ae.yaxes[0]._id);var ge=[],de=[],sr=ie(ne),mr=ne._fullLayout;if(Mt){var Ve=mr._zoomlayer,le=mr.dragmode,pe=o(le),Te=s(le);if(pe||Te){var Yt=_(ne,Lt,"x"),Ee=_(ne,$t,"y");if(Yt&&Ee){var Ne=Ve.selectAll(".select-outline-"+Mt.id);if(Ne&&ne._fullLayout._outlining&&Ne.length){for(var ar=Ne[0][0],Ye=ar.getAttribute("d"),Jt=f(Ye,ne,Mt),ue=[],Se=0;Se<Jt.length;Se++){for(var De=Jt[Se],Ze=[],nr=0;nr<De.length;nr++)Ze.push([Pe(Yt,De[nr][1]),Pe(Ee,De[nr][2])]);Ze.xref=Lt,Ze.yref=$t,Ze.subtract=Ae(Ze,ue),ue.push(Ze)}sr=sr.concat(ue)}}}}var Ke=Lt&&$t?[Lt+$t]:mr._subplots.cartesian;Ht(ne);for(var er={},xr=0;xr<Ke.length;xr++){var Sr=Ke[xr],Cr=Sr.indexOf("y"),Er=Sr.slice(0,Cr),Lr=Sr.slice(Cr),Ur=Lt&&$t?qt:void 0;if(Ur=_e(sr,Er,Lr,Ur),Ur){var zr=Zt;if(!vt){var te=_(ne,Er,"x"),he=_(ne,Lr,"y");zr=ot(ne,[te],[he],Sr);for(var Je=0;Je<zr.length;Je++){var br=zr[Je],pr=br.cd[0],We=pr.trace;if(br._module.name==="scattergl"&&!pr.t.xpx){var hr=We.x,Ar=We.y,yr=We._length;pr.t.xpx=[],pr.t.ypx=[];for(var dr=0;dr<yr;dr++)pr.t.xpx[dr]=te.c2p(hr[dr]),pr.t.ypx[dr]=he.c2p(Ar[dr])}br._module.name==="splom"&&(er[We.uid]||(er[We.uid]=!0))}}var Rr=Bt(Ur,zr);ge=ge.concat(Rr),de=de.concat(zr)}}var Qr={points:ge};Wt(ne,de,Qr);var Xr=mr.clickmode,Dn=Xr.indexOf("event")>-1&&zt;if(!Mt&&zt){var on=ie(ne,!0);if(on.length){var Hn=on[0].xref,Fn=on[0].yref;if(Hn&&Fn){var jr=Oe(on),Pr=Le([_(ne,Hn,"x"),_(ne,Fn,"y")]);Pr(Qr,jr)}}ne._fullLayout._noEmitSelectedAtStart?ne._fullLayout._noEmitSelectedAtStart=!1:Dn&&ee(ne,Qr),mr._reselect=!1}if(!Mt&&mr._deselect){var fn=mr._deselect;Lt=fn.xref,$t=fn.yref,ye(Lt,$t,de)||Qt(ne,Lt,$t,Zt),Dn&&(Qr.points.length?ee(ne,Qr):Kt(ne)),mr._deselect=!1}return{eventData:Qr,selectionTesters:qt}}function Ht(ne){var zt=ne.calcdata;if(zt)for(var qt=0;qt<zt.length;qt++){var Zt=zt[qt][0],ae=Zt.trace,vt=ne._fullLayout._splomScenes;if(vt){var Mt=vt[ae.uid];Mt&&(Mt.selectBatch=[])}}}function ye(ne,zt,qt){for(var Zt=0;Zt<qt.length;Zt++){var ae=qt[Zt];if(ae.xaxis&&ae.xaxis._id===ne&&ae.yaxis&&ae.yaxis._id===zt)return!0}return!1}function Qt(ne,zt,qt,Zt){Zt=ot(ne,[_(ne,zt,"x")],[_(ne,qt,"y")],zt+qt);for(var ae=0;ae<Zt.length;ae++){var vt=Zt[ae];vt._module.selectPoints(vt,!1)}Wt(ne,Zt)}function _e(ne,zt,qt,Zt){for(var ae,vt=0;vt<ne.length;vt++){var Mt=ne[vt];if(!(zt!==Mt.xref||qt!==Mt.yref))if(ae){var Lt=!!Mt.subtract;ae=jt(ae,Mt,Lt),Zt=$(ae)}else ae=[Mt],Zt=V(Mt)}return Zt}function ie(ne,zt){for(var qt=[],Zt=ne._fullLayout,ae=Zt.selections,vt=ae.length,Mt=0;Mt<vt;Mt++)if(!(zt&&Mt!==Zt._activeSelectionIndex)){var Lt=ae[Mt];if(Lt){var $t=Lt.xref,ge=Lt.yref,de=_(ne,$t,"x"),sr=_(ne,ge,"y"),mr,Ve,le,pe,Te;if(Lt.type==="rect"){Te=[];var Yt=Pe(de,Lt.x0),Ee=Pe(de,Lt.x1),Ne=Pe(sr,Lt.y0),ar=Pe(sr,Lt.y1);Te=[[Yt,Ne],[Yt,ar],[Ee,ar],[Ee,Ne]],mr=Math.min(Yt,Ee),Ve=Math.max(Yt,Ee),le=Math.min(Ne,ar),pe=Math.max(Ne,ar),Te.xmin=mr,Te.xmax=Ve,Te.ymin=le,Te.ymax=pe,Te.xref=$t,Te.yref=ge,Te.subtract=!1,Te.isRect=!0,qt.push(Te)}else if(Lt.type==="path")for(var Ye=Lt.path.split("Z"),Jt=[],ue=0;ue<Ye.length;ue++){var Se=Ye[ue];if(Se){Se+="Z";var De=u.extractPathCoords(Se,x.paramIsX,"raw"),Ze=u.extractPathCoords(Se,x.paramIsY,"raw");mr=1/0,Ve=-1/0,le=1/0,pe=-1/0,Te=[];for(var nr=0;nr<De.length;nr++){var Ke=Pe(de,De[nr]),er=Pe(sr,Ze[nr]);Te.push([Ke,er]),mr=Math.min(Ke,mr),Ve=Math.max(Ke,Ve),le=Math.min(er,le),pe=Math.max(er,pe)}Te.xmin=mr,Te.xmax=Ve,Te.ymin=le,Te.ymax=pe,Te.xref=$t,Te.yref=ge,Te.subtract=Ae(Te,Jt),Jt.push(Te),qt.push(Te)}}}}return qt}function Ae(ne,zt){for(var qt=!1,Zt=0;Zt<zt.length;Zt++)for(var ae=zt[Zt],vt=0;vt<ne.length;vt++)if(C(ne[vt],ae)){qt=!qt;break}return qt}function Pe(ne,zt){return ne.type==="date"&&(zt=zt.replace("_"," ")),ne.type==="log"?ne.c2p(zt):ne.r2p(zt,null,ne.calendar)}function Oe(ne){for(var zt=ne.length,qt=[],Zt=0;Zt<zt;Zt++){var ae=ne[Zt];qt=qt.concat(ae),qt=qt.concat([ae[0]])}return je(qt)}function je(ne){return ne.isRect=ne.length===5&&ne[0][0]===ne[4][0]&&ne[0][1]===ne[4][1]&&ne[0][0]===ne[1][0]&&ne[2][0]===ne[3][0]&&ne[0][1]===ne[3][1]&&ne[1][1]===ne[2][1]||ne[0][1]===ne[1][1]&&ne[2][1]===ne[3][1]&&ne[0][0]===ne[3][0]&&ne[1][0]===ne[2][0],ne.isRect&&(ne.xmin=Math.min(ne[0][0],ne[2][0]),ne.xmax=Math.max(ne[0][0],ne[2][0]),ne.ymin=Math.min(ne[0][1],ne[2][1]),ne.ymax=Math.max(ne[0][1],ne[2][1])),ne}function Le(ne){return function(zt,qt){for(var Zt,ae,vt=0;vt<ne.length;vt++){var Mt=ne[vt],Lt=Mt._id,$t=Lt.charAt(0);if(qt.isRect){Zt||(Zt={});var ge=qt[$t+"min"],de=qt[$t+"max"];ge!==void 0&&de!==void 0&&(Zt[Lt]=[F(Mt,ge),F(Mt,de)].sort(A))}else ae||(ae={}),ae[Lt]=qt.map(U(Mt))}Zt&&(zt.range=Zt),ae&&(zt.lassoPoints=ae)}}function Ie(ne){var zt=ne.plotinfo;return zt.fillRangeItems||Le(ne.xaxes.concat(ne.yaxes))}function Ut(ne,zt){ne.emit("plotly_selecting",zt)}function ee(ne,zt){zt&&(zt.selections=(ne.layout||{}).selections||[]),ne.emit("plotly_selected",zt)}function Kt(ne){ne.emit("plotly_deselect",null)}nt.exports={reselect:Ot,prepSelect:Q,clearOutline:y,clearSelectionsCache:et,selectOnClick:ft}},43144:function(nt,W,e){var M=e(50222),C=e(80337),r=e(36640).line,i=e(94850).T,w=e(93049).extendFlat,S=e(78032).templatedArray;e(35081);var h=e(9829),l=e(3208).LF,t=e(41235);nt.exports=S("shape",{visible:w({},h.visible,{editType:"calc+arraydraw"}),showlegend:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},legend:w({},h.legend,{editType:"calc+arraydraw"}),legendgroup:w({},h.legendgroup,{editType:"calc+arraydraw"}),legendgrouptitle:{text:w({},h.legendgrouptitle.text,{editType:"calc+arraydraw"}),font:C({editType:"calc+arraydraw"}),editType:"calc+arraydraw"},legendrank:w({},h.legendrank,{editType:"calc+arraydraw"}),legendwidth:w({},h.legendwidth,{editType:"calc+arraydraw"}),type:{valType:"enumerated",values:["circle","rect","path","line"],editType:"calc+arraydraw"},layer:{valType:"enumerated",values:["below","above","between"],dflt:"above",editType:"arraydraw"},xref:w({},M.xref,{}),xsizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},xanchor:{valType:"any",editType:"calc+arraydraw"},x0:{valType:"any",editType:"calc+arraydraw"},x1:{valType:"any",editType:"calc+arraydraw"},x0shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},x1shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},yref:w({},M.yref,{}),ysizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},yanchor:{valType:"any",editType:"calc+arraydraw"},y0:{valType:"any",editType:"calc+arraydraw"},y1:{valType:"any",editType:"calc+arraydraw"},y0shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},y1shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},path:{valType:"string",editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},line:{color:w({},r.color,{editType:"arraydraw"}),width:w({},r.width,{editType:"calc+arraydraw"}),dash:w({},i,{editType:"arraydraw"}),editType:"calc+arraydraw"},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd",editType:"arraydraw"},editable:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},label:{text:{valType:"string",dflt:"",editType:"arraydraw"},texttemplate:l({},{keys:Object.keys(t)}),font:C({editType:"calc+arraydraw",colorEditType:"arraydraw"}),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"],editType:"arraydraw"},textangle:{valType:"angle",dflt:"auto",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],editType:"calc+arraydraw"},padding:{valType:"number",dflt:3,min:0,editType:"arraydraw"},editType:"arraydraw"},editType:"arraydraw"})},44959:function(nt,W,e){var M=e(34809),C=e(29714),r=e(2956),i=e(49728);nt.exports=function(t){var n=t._fullLayout,o=M.filterVisible(n.shapes);if(!(!o.length||!t._fullData.length))for(var a=0;a<o.length;a++){var s=o[a];s._extremes={};var u,x,m=C.getRefType(s.xref),y=C.getRefType(s.yref);s.xref!=="paper"&&m!=="domain"&&(u=C.getFromId(t,s.xref),x=l(u,s,r.paramIsX),x&&(s._extremes[u._id]=C.findExtremes(u,x,w(s)))),s.yref!=="paper"&&y!=="domain"&&(u=C.getFromId(t,s.yref),x=l(u,s,r.paramIsY),x&&(s._extremes[u._id]=C.findExtremes(u,x,S(s))))}};function w(t){return h(t.line.width,t.xsizemode,t.x0,t.x1,t.path,!1)}function S(t){return h(t.line.width,t.ysizemode,t.y0,t.y1,t.path,!0)}function h(t,n,o,a,s,u){var x=t/2,m=u;if(n==="pixel"){var y=s?i.extractPathCoords(s,u?r.paramIsY:r.paramIsX):[o,a],c=M.aggNums(Math.max,null,y),p=M.aggNums(Math.min,null,y),f=p<0?Math.abs(p)+x:x,T=c>0?c+x:x;return{ppad:x,ppadplus:m?f:T,ppadminus:m?T:f}}else return{ppad:x}}function l(t,n,o){var a=t._id.charAt(0)==="x"?"x":"y",s=t.type==="category"||t.type==="multicategory",u,x,m=0,y=0,c=s?t.r2c:t.d2c,p=n[a+"sizemode"]==="scaled";if(p?(u=n[a+"0"],x=n[a+"1"],s&&(m=n[a+"0shift"],y=n[a+"1shift"])):(u=n[a+"anchor"],x=n[a+"anchor"]),u!==void 0)return[c(u)+m,c(x)+y];if(n.path){var f=1/0,T=-1/0,k=n.path.match(r.segmentRE),P,g,A,E,d;for(t.type==="date"&&(c=i.decodeDate(c)),P=0;P<k.length;P++)g=k[P],A=o[g.charAt(0)].drawn,A!==void 0&&(E=k[P].substr(1).match(r.paramRE),!(!E||E.length<A)&&(d=c(E[A]),d<f&&(f=d),d>T&&(T=d)));if(T>=f)return[f,T]}}},2956:function(nt){nt.exports={segmentRE:/[MLHVQCTSZ][^MLHVQCTSZ]*/g,paramRE:/[^\s,]+/g,paramIsX:{M:{0:!0,drawn:0},L:{0:!0,drawn:0},H:{0:!0,drawn:0},V:{},Q:{0:!0,2:!0,drawn:2},C:{0:!0,2:!0,4:!0,drawn:4},T:{0:!0,drawn:0},S:{0:!0,2:!0,drawn:2},Z:{}},paramIsY:{M:{1:!0,drawn:1},L:{1:!0,drawn:1},H:{},V:{0:!0,drawn:0},Q:{1:!0,3:!0,drawn:3},C:{1:!0,3:!0,5:!0,drawn:5},T:{1:!0,drawn:1},S:{1:!0,3:!0,drawn:5},Z:{}},numParams:{M:2,L:2,H:1,V:1,Q:4,C:6,T:2,S:4,Z:0}}},74367:function(nt,W,e){var M=e(34809),C=e(29714),r=e(59008),i=e(43144),w=e(49728);nt.exports=function(l,t){r(l,t,{name:"shapes",handleItemDefaults:h})};function S(l,t){return l?"bottom":t.indexOf("top")!==-1?"top":t.indexOf("bottom")!==-1?"bottom":"middle"}function h(l,t,n){function o(lt,K){return M.coerce(l,t,i,lt,K)}t._isShape=!0;var a=o("visible");if(a){var s=o("showlegend");s&&(o("legend"),o("legendwidth"),o("legendgroup"),o("legendgrouptitle.text"),M.coerceFont(o,"legendgrouptitle.font"),o("legendrank"));var u=o("path"),x=u?"path":"rect",m=o("type",x),y=m!=="path";y&&delete t.path,o("editable"),o("layer"),o("opacity"),o("fillcolor"),o("fillrule");var c=o("line.width");c&&(o("line.color"),o("line.dash"));for(var p=o("xsizemode"),f=o("ysizemode"),T=["x","y"],k=0;k<2;k++){var P=T[k],g=P+"anchor",A=P==="x"?p:f,E={_fullLayout:n},d,_,L,b=C.coerceRef(l,t,E,P,void 0,"paper"),D=C.getRefType(b);if(D==="range"?(d=C.getFromId(E,b),d._shapeIndices.push(t._index),L=w.rangeToShapePosition(d),_=w.shapePositionToRange(d),(d.type==="category"||d.type==="multicategory")&&(o(P+"0shift"),o(P+"1shift"))):_=L=M.identity,y){var B=.25,I=.75,V=P+"0",N=P+"1",F=l[V],U=l[N];l[V]=_(l[V],!0),l[N]=_(l[N],!0),A==="pixel"?(o(V,0),o(N,10)):(C.coercePosition(t,E,o,b,V,B),C.coercePosition(t,E,o,b,N,I)),t[V]=L(t[V]),t[N]=L(t[N]),l[V]=F,l[N]=U}if(A==="pixel"){var G=l[g];l[g]=_(l[g],!0),C.coercePosition(t,E,o,b,g,.25),t[g]=L(t[g]),l[g]=G}}y&&M.noneOrAll(l,t,["x0","x1","y0","y1"]);var Y=m==="line",Q,ft;if(y&&(Q=o("label.texttemplate")),Q||(ft=o("label.text")),ft||Q){o("label.textangle");var ut=o("label.textposition",Y?"middle":"middle center");o("label.xanchor"),o("label.yanchor",S(Y,ut)),o("label.padding"),M.coerceFont(o,"label.font",n.font)}}}},44433:function(nt,W,e){var M=e(34809),C=e(29714),r=e(30635),i=e(62203),w=e(81055).readPaths,S=e(49728),h=S.getPathString,l=e(41235),t=e(4530).FROM_TL;nt.exports=function(a,s,u,x){if(x.selectAll(".shape-label").remove(),!!(u.label.text||u.label.texttemplate)){var m;if(u.label.texttemplate){var y={};if(u.type!=="path"){var c=C.getFromId(a,u.xref),p=C.getFromId(a,u.yref);for(var f in l){var T=l[f](u,c,p);T!==void 0&&(y[f]=T)}}m=M.texttemplateStringForShapes(u.label.texttemplate,{},a._fullLayout._d3locale,y)}else m=u.label.text;var k={"data-index":s},P=u.label.font,g={"data-notex":1},A=x.append("g").attr(k).classed("shape-label",!0),E=A.append("text").attr(g).classed("shape-label-text",!0).text(m),d,_,L,b;if(u.path){var D=h(a,u),B=w(D,a);d=1/0,L=1/0,_=-1/0,b=-1/0;for(var I=0;I<B.length;I++)for(var V=0;V<B[I].length;V++)for(var N=B[I][V],F=1;F<N.length;F+=2){var U=N[F],G=N[F+1];d=Math.min(d,U),_=Math.max(_,U),L=Math.min(L,G),b=Math.max(b,G)}}else{var Y=C.getFromId(a,u.xref),Q=u.x0shift,ft=u.x1shift,ut=C.getRefType(u.xref),lt=C.getFromId(a,u.yref),K=u.y0shift,$=u.y1shift,H=C.getRefType(u.yref),at=function(At,St){var Nt=S.getDataToPixel(a,Y,St,!1,ut);return Nt(At)},ct=function(At,St){var Nt=S.getDataToPixel(a,lt,St,!0,H);return Nt(At)};d=at(u.x0,Q),_=at(u.x1,ft),L=ct(u.y0,K),b=ct(u.y1,$)}var et=u.label.textangle;et==="auto"&&(u.type==="line"?et=n(d,L,_,b):et=0),E.call(function(At){return At.call(i.font,P).attr({}),r.convertToTspans(At,a),At});var Z=i.bBox(E.node()),ot=o(d,L,_,b,u,et,Z),st=ot.textx,dt=ot.texty,xt=ot.xanchor;E.attr({"text-anchor":{left:"start",center:"middle",right:"end"}[xt],y:dt,x:st,transform:"rotate("+et+","+st+","+dt+")"}).call(r.positionText,st,dt)}};function n(a,s,u,x){var m,y;return y=Math.abs(u-a),u>=a?m=s-x:m=x-s,-180/Math.PI*Math.atan2(m,y)}function o(a,s,u,x,m,y,c){var p=m.label.textposition,f=m.label.textangle,T=m.label.padding,k=m.type,P=Math.PI/180*y,g=Math.sin(P),A=Math.cos(P),E=m.label.xanchor,d=m.label.yanchor,_,L,b,D;if(k==="line"){p==="start"?(_=a,L=s):p==="end"?(_=u,L=x):(_=(a+u)/2,L=(s+x)/2),E==="auto"&&(p==="start"?f==="auto"?u>a?E="left":u<a?E="right":E="center":u>a?E="right":u<a?E="left":E="center":p==="end"?f==="auto"?u>a?E="right":u<a?E="left":E="center":u>a?E="left":u<a?E="right":E="center":E="center");var B={left:1,center:0,right:-1},I={bottom:-1,middle:0,top:1};if(f==="auto"){var V=I[d];b=-T*g*V,D=T*A*V}else{var N=B[E],F=I[d];b=T*N,D=T*F}_=_+b,L=L+D}else b=T+3,p.indexOf("right")!==-1?(_=Math.max(a,u)-b,E==="auto"&&(E="right")):p.indexOf("left")!==-1?(_=Math.min(a,u)+b,E==="auto"&&(E="left")):(_=(a+u)/2,E==="auto"&&(E="center")),p.indexOf("top")!==-1?L=Math.min(s,x):p.indexOf("bottom")!==-1?L=Math.max(s,x):L=(s+x)/2,D=T,d==="bottom"?L=L-D:d==="top"&&(L=L+D);var U=t[d],G=m.label.font.size,Y=c.height,Q=(Y*U-G)*g,ft=-(Y*U-G)*A;return{textx:_+Q,texty:L+ft,xanchor:E}}},561:function(nt,W,e){var M=e(34809),C=M.strTranslate,r=e(14751),i=e(70414),w=i.drawMode,S=i.selectMode,h=e(33626),l=e(78766),t=e(93391),n=t.i000,o=t.i090,a=t.i180,s=t.i270,u=e(78534),x=u.clearOutlineControllers,m=e(81055),y=m.pointsOnRectangle,c=m.pointsOnEllipse,p=m.writePaths,f=e(87562).newShapes,T=e(87562).createShapeObj,k=e(51817),P=e(44433);nt.exports=function d(_,L,b,D){D||(D=0);var B=b.gd;function I(){d(_,L,b,D++),(c(_[0])||b.hasText)&&V({redrawing:!0})}function V(jt){var Dt={};b.isActiveShape!==void 0&&(b.isActiveShape=!1,Dt=f(L,b)),b.isActiveSelection!==void 0&&(b.isActiveSelection=!1,Dt=k(L,b),B._fullLayout._reselect=!0),Object.keys(Dt).length&&h.call((jt||{}).redrawing?"relayout":"_guiRelayout",B,Dt)}var N=B._fullLayout,F=N._zoomlayer,U=b.dragmode,G=w(U),Y=S(U);(G||Y)&&(B._fullLayout._outlining=!0),x(B),L.attr("d",p(_));var Q,ft,ut,lt,K;if(!D&&(b.isActiveShape||b.isActiveSelection)){K=g([],_);var $=F.append("g").attr("class","outline-controllers");dt($),Vt()}if(G&&b.hasText){var H=F.select(".label-temp"),at=T(L,b,b.dragmode);P(B,"label-temp",at,H)}function ct(jt){ut=+jt.srcElement.getAttribute("data-i"),lt=+jt.srcElement.getAttribute("data-j"),Q[ut][lt].moveFn=et}function et(jt,Dt){if(_.length){var kt=K[ut][lt][1],Bt=K[ut][lt][2],Ot=_[ut],Ht=Ot.length;if(y(Ot)){var ye=jt,Qt=Dt;if(b.isActiveSelection){var _e=A(Ot,lt);_e[1]===Ot[lt][1]?Qt=0:ye=0}for(var ie=0;ie<Ht;ie++)if(ie!==lt){var Ae=Ot[ie];Ae[1]===Ot[lt][1]&&(Ae[1]=kt+ye),Ae[2]===Ot[lt][2]&&(Ae[2]=Bt+Qt)}if(Ot[lt][1]=kt+ye,Ot[lt][2]=Bt+Qt,!y(Ot))for(var Pe=0;Pe<Ht;Pe++)for(var Oe=0;Oe<Ot[Pe].length;Oe++)Ot[Pe][Oe]=K[ut][Pe][Oe]}else Ot[lt][1]=kt+jt,Ot[lt][2]=Bt+Dt;I()}}function Z(){V()}function ot(){if(_.length&&_[ut]&&_[ut].length){for(var jt=[],Dt=0;Dt<_[ut].length;Dt++)Dt!==lt&&jt.push(_[ut][Dt]);jt.length>1&&!(jt.length===2&&jt[1][0]==="Z")&&(lt===0&&(jt[0][0]="M"),_[ut]=jt,I(),V())}}function st(jt,Dt){if(jt===2){ut=+Dt.srcElement.getAttribute("data-i"),lt=+Dt.srcElement.getAttribute("data-j");var kt=_[ut];!y(kt)&&!c(kt)&&ot()}}function dt(jt){Q=[];for(var Dt=0;Dt<_.length;Dt++){var kt=_[Dt],Bt=y(kt),Ot=!Bt&&c(kt);Q[Dt]=[];for(var Ht=kt.length,ye=0;ye<Ht;ye++)if(kt[ye][0]!=="Z"&&!(Ot&&ye!==n&&ye!==o&&ye!==a&&ye!==s)){var Qt=Bt&&b.isActiveSelection,_e;Qt&&(_e=A(kt,ye));var ie=kt[ye][1],Ae=kt[ye][2],Pe=jt.append(Qt?"rect":"circle").attr("data-i",Dt).attr("data-j",ye).style({fill:l.background,stroke:l.defaultLine,"stroke-width":1,"shape-rendering":"crispEdges"});if(Qt){var Oe=_e[1]-ie,je=_e[2]-Ae,Le=je?5:Math.max(Math.min(25,Math.abs(Oe)-5),5),Ie=Oe?5:Math.max(Math.min(25,Math.abs(je)-5),5);Pe.classed(je?"cursor-ew-resize":"cursor-ns-resize",!0).attr("width",Le).attr("height",Ie).attr("x",ie-Le/2).attr("y",Ae-Ie/2).attr("transform",C(Oe/2,je/2))}else Pe.classed("cursor-grab",!0).attr("r",5).attr("cx",ie).attr("cy",Ae);Q[Dt][ye]={element:Pe.node(),gd:B,prepFn:ct,doneFn:Z,clickFn:st},r.init(Q[Dt][ye])}}}function xt(jt,Dt){if(_.length)for(var kt=0;kt<_.length;kt++)for(var Bt=0;Bt<_[kt].length;Bt++)for(var Ot=0;Ot+2<_[kt][Bt].length;Ot+=2)_[kt][Bt][Ot+1]=K[kt][Bt][Ot+1]+jt,_[kt][Bt][Ot+2]=K[kt][Bt][Ot+2]+Dt}function At(jt,Dt){xt(jt,Dt),I()}function St(jt){ut=+jt.srcElement.getAttribute("data-i"),ut||(ut=0),ft[ut].moveFn=At}function Nt(){V()}function Wt(jt){jt===2&&E(B)}function Vt(){if(ft=[],!!_.length){var jt=0;ft[jt]={element:L[0][0],gd:B,prepFn:St,doneFn:Nt,clickFn:Wt},r.init(ft[jt])}}};function g(d,_){for(var L=0;L<_.length;L++){var b=_[L];d[L]=[];for(var D=0;D<b.length;D++){d[L][D]=[];for(var B=0;B<b[D].length;B++)d[L][D][B]=b[D][B]}}return d}function A(d,_){var L=d[_][1],b=d[_][2],D=d.length,B,I,V;return B=(_+1)%D,I=d[B][1],V=d[B][2],I===L&&V===b&&(B=(_+2)%D,I=d[B][1],V=d[B][2]),[B,I,V]}function E(d){if(S(d._fullLayout.dragmode)){x(d);var _=d._fullLayout._activeSelectionIndex,L=(d.layout||{}).selections||[];if(_<L.length){for(var b=[],D=0;D<L.length;D++)D!==_&&b.push(L[D]);delete d._fullLayout._activeSelectionIndex;var B=d._fullLayout.selections[_];d._fullLayout._deselect={xref:B.xref,yref:B.yref},h.call("_guiRelayout",d,{selections:b})}}}},28231:function(nt,W,e){var M=e(45568),C=e(33626),r=e(34809),i=e(29714),w=e(81055).readPaths,S=e(561),h=e(44433),l=e(78534).clearOutlineControllers,t=e(78766),n=e(62203),o=e(78032).arrayEditor,a=e(14751),s=e(27983),u=e(2956),x=e(49728),m=x.getPathString;nt.exports={draw:y,drawOne:f,eraseActiveShape:E,drawLabel:h};function y(d){var _=d._fullLayout;_._shapeUpperLayer.selectAll("path").remove(),_._shapeLowerLayer.selectAll("path").remove(),_._shapeUpperLayer.selectAll("text").remove(),_._shapeLowerLayer.selectAll("text").remove();for(var L in _._plots){var b=_._plots[L].shapelayer;b&&(b.selectAll("path").remove(),b.selectAll("text").remove())}for(var D=0;D<_.shapes.length;D++)_.shapes[D].visible===!0&&f(d,D)}function c(d){return!!d._fullLayout._outlining}function p(d){return!d._context.edits.shapePosition}function f(d,_){d._fullLayout._paperdiv.selectAll('.shapelayer [data-index="'+_+'"]').remove();var L=x.makeShapesOptionsAndPlotinfo(d,_),b=L.options,D=L.plotinfo;if(!b._input||b.visible!==!0)return;if(b.layer==="above")I(d._fullLayout._shapeUpperLayer);else if(b.xref==="paper"||b.yref==="paper")I(d._fullLayout._shapeLowerLayer);else if(b.layer==="between")I(D.shapelayerBetween);else if(D._hadPlotinfo){var B=D.mainplotinfo||D;I(B.shapelayer)}else I(d._fullLayout._shapeLowerLayer);function I(V){var N=m(d,b),F={"data-index":_,"fill-rule":b.fillrule,d:N},U=b.opacity,G=b.fillcolor,Y=b.line.width?b.line.color:"rgba(0,0,0,0)",Q=b.line.width,ft=b.line.dash;!Q&&b.editable===!0&&(Q=5,ft="solid");var ut=N[N.length-1]!=="Z",lt=p(d)&&b.editable&&d._fullLayout._activeShapeIndex===_;lt&&(G=ut?"rgba(0,0,0,0)":d._fullLayout.activeshape.fillcolor,U=d._fullLayout.activeshape.opacity);var K=V.append("g").classed("shape-group",!0).attr({"data-index":_}),$=K.append("path").attr(F).style("opacity",U).call(t.stroke,Y).call(t.fill,G).call(n.dashLine,ft,Q);T(K,d,b),h(d,_,b,K);var H;if((lt||d._context.edits.shapePosition)&&(H=o(d.layout,"shapes",b)),lt){$.style({cursor:"move"});var at={element:$.node(),plotinfo:D,gd:d,editHelpers:H,hasText:b.label.text||b.label.texttemplate,isActiveShape:!0},ct=w(N,d);S(ct,$,at)}else d._context.edits.shapePosition?k(d,$,b,_,V,H):b.editable===!0&&$.style("pointer-events",ut||t.opacity(G)*U<=.5?"stroke":"all");$.node().addEventListener("click",function(){return g(d,$)})}}function T(d,_,L){var b=(L.xref+L.yref).replace(/paper/g,"").replace(/[xyz][1-9]* *domain/g,"");n.setClipUrl(d,b?"clip"+_._fullLayout._uid+b:null,_)}function k(d,_,L,b,D,B){var I=10,V=10,N=L.xsizemode==="pixel",F=L.ysizemode==="pixel",U=L.type==="line",G=L.type==="path",Y=B.modifyItem,Q,ft,ut,lt,K,$,H,at,ct,et,Z,ot,st,dt,xt,At=M.select(_.node().parentNode),St=i.getFromId(d,L.xref),Nt=i.getRefType(L.xref),Wt=i.getFromId(d,L.yref),Vt=i.getRefType(L.yref),jt=L.x0shift,Dt=L.x1shift,kt=L.y0shift,Bt=L.y1shift,Ot=function(Zt,ae){var vt=x.getDataToPixel(d,St,ae,!1,Nt);return vt(Zt)},Ht=function(Zt,ae){var vt=x.getDataToPixel(d,Wt,ae,!0,Vt);return vt(Zt)},ye=x.getPixelToData(d,St,!1,Nt),Qt=x.getPixelToData(d,Wt,!0,Vt),_e=Pe(),ie={element:_e.node(),gd:d,prepFn:Le,doneFn:Ie,clickFn:Ut},Ae;a.init(ie),_e.node().onmousemove=je;function Pe(){return U?Oe():_}function Oe(){var Zt=10,ae=Math.max(L.line.width,Zt),vt=D.append("g").attr("data-index",b).attr("drag-helper",!0);vt.append("path").attr("d",_.attr("d")).style({cursor:"move","stroke-width":ae,"stroke-opacity":"0"});var Mt={"fill-opacity":"0"},Lt=Math.max(ae/2,Zt);return vt.append("circle").attr({"data-line-point":"start-point",cx:N?Ot(L.xanchor)+L.x0:Ot(L.x0,jt),cy:F?Ht(L.yanchor)-L.y0:Ht(L.y0,kt),r:Lt}).style(Mt).classed("cursor-grab",!0),vt.append("circle").attr({"data-line-point":"end-point",cx:N?Ot(L.xanchor)+L.x1:Ot(L.x1,Dt),cy:F?Ht(L.yanchor)-L.y1:Ht(L.y1,Bt),r:Lt}).style(Mt).classed("cursor-grab",!0),vt}function je(Zt){if(c(d)){Ae=null;return}if(U)Zt.target.tagName==="path"?Ae="move":Ae=Zt.target.attributes["data-line-point"].value==="start-point"?"resize-over-start-point":"resize-over-end-point";else{var ae=ie.element.getBoundingClientRect(),vt=ae.right-ae.left,Mt=ae.bottom-ae.top,Lt=Zt.clientX-ae.left,$t=Zt.clientY-ae.top,ge=!G&&vt>I&&Mt>V&&!Zt.shiftKey?a.getCursor(Lt/vt,1-$t/Mt):"move";s(_,ge),Ae=ge.split("-")[0]}}function Le(Zt){c(d)||(N&&(K=Ot(L.xanchor)),F&&($=Ht(L.yanchor)),L.type==="path"?xt=L.path:(Q=N?L.x0:Ot(L.x0),ft=F?L.y0:Ht(L.y0),ut=N?L.x1:Ot(L.x1),lt=F?L.y1:Ht(L.y1)),Q<ut?(ct=Q,st="x0",et=ut,dt="x1"):(ct=ut,st="x1",et=Q,dt="x0"),!F&&ft<lt||F&&ft>lt?(H=ft,Z="y0",at=lt,ot="y1"):(H=lt,Z="y1",at=ft,ot="y0"),je(Zt),ne(D,L),qt(_,L,d),ie.moveFn=Ae==="move"?ee:Kt,ie.altKey=Zt.altKey)}function Ie(){c(d)||(s(_),zt(D),T(_,d,L),C.call("_guiRelayout",d,B.getUpdateObj()))}function Ut(){c(d)||zt(D)}function ee(Zt,ae){if(L.type==="path"){var vt=function($t){return $t},Mt=vt,Lt=vt;N?Y("xanchor",L.xanchor=ye(K+Zt)):(Mt=function($t){return ye(Ot($t)+Zt)},St&&St.type==="date"&&(Mt=x.encodeDate(Mt))),F?Y("yanchor",L.yanchor=Qt($+ae)):(Lt=function($t){return Qt(Ht($t)+ae)},Wt&&Wt.type==="date"&&(Lt=x.encodeDate(Lt))),Y("path",L.path=P(xt,Mt,Lt))}else N?Y("xanchor",L.xanchor=ye(K+Zt)):(Y("x0",L.x0=ye(Q+Zt)),Y("x1",L.x1=ye(ut+Zt))),F?Y("yanchor",L.yanchor=Qt($+ae)):(Y("y0",L.y0=Qt(ft+ae)),Y("y1",L.y1=Qt(lt+ae)));_.attr("d",m(d,L)),ne(D,L),h(d,b,L,At)}function Kt(Zt,ae){if(G){var vt=function(Ye){return Ye},Mt=vt,Lt=vt;N?Y("xanchor",L.xanchor=ye(K+Zt)):(Mt=function(Ye){return ye(Ot(Ye)+Zt)},St&&St.type==="date"&&(Mt=x.encodeDate(Mt))),F?Y("yanchor",L.yanchor=Qt($+ae)):(Lt=function(Ye){return Qt(Ht(Ye)+ae)},Wt&&Wt.type==="date"&&(Lt=x.encodeDate(Lt))),Y("path",L.path=P(xt,Mt,Lt))}else if(U){if(Ae==="resize-over-start-point"){var $t=Q+Zt,ge=F?ft-ae:ft+ae;Y("x0",L.x0=N?$t:ye($t)),Y("y0",L.y0=F?ge:Qt(ge))}else if(Ae==="resize-over-end-point"){var de=ut+Zt,sr=F?lt-ae:lt+ae;Y("x1",L.x1=N?de:ye(de)),Y("y1",L.y1=F?sr:Qt(sr))}}else{var mr=function(Ye){return Ae.indexOf(Ye)!==-1},Ve=mr("n"),le=mr("s"),pe=mr("w"),Te=mr("e"),Yt=Ve?H+ae:H,Ee=le?at+ae:at,Ne=pe?ct+Zt:ct,ar=Te?et+Zt:et;F&&(Ve&&(Yt=H-ae),le&&(Ee=at-ae)),(!F&&Ee-Yt>V||F&&Yt-Ee>V)&&(Y(Z,L[Z]=F?Yt:Qt(Yt)),Y(ot,L[ot]=F?Ee:Qt(Ee))),ar-Ne>I&&(Y(st,L[st]=N?Ne:ye(Ne)),Y(dt,L[dt]=N?ar:ye(ar)))}_.attr("d",m(d,L)),ne(D,L),h(d,b,L,At)}function ne(Zt,ae){(N||F)&&vt();function vt(){var Mt=ae.type!=="path",Lt=Zt.selectAll(".visual-cue").data([0]),$t=1;Lt.enter().append("path").attr({fill:"#fff","fill-rule":"evenodd",stroke:"#000","stroke-width":$t}).classed("visual-cue",!0);var ge=Ot(N?ae.xanchor:r.midRange(Mt?[ae.x0,ae.x1]:x.extractPathCoords(ae.path,u.paramIsX))),de=Ht(F?ae.yanchor:r.midRange(Mt?[ae.y0,ae.y1]:x.extractPathCoords(ae.path,u.paramIsY)));if(ge=x.roundPositionForSharpStrokeRendering(ge,$t),de=x.roundPositionForSharpStrokeRendering(de,$t),N&&F){var sr="M"+(ge-1-$t)+","+(de-1-$t)+"h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z";Lt.attr("d",sr)}else if(N){var mr="M"+(ge-1-$t)+","+(de-9-$t)+"v18 h2 v-18 Z";Lt.attr("d",mr)}else{var Ve="M"+(ge-9-$t)+","+(de-1-$t)+"h18 v2 h-18 Z";Lt.attr("d",Ve)}}}function zt(Zt){Zt.selectAll(".visual-cue").remove()}function qt(Zt,ae,vt){var Mt=ae.xref,Lt=ae.yref,$t=i.getFromId(vt,Mt),ge=i.getFromId(vt,Lt),de="";Mt!=="paper"&&!$t.autorange&&(de+=Mt),Lt!=="paper"&&!ge.autorange&&(de+=Lt),n.setClipUrl(Zt,de?"clip"+vt._fullLayout._uid+de:null,vt)}}function P(d,_,L){return d.replace(u.segmentRE,function(b){var D=0,B=b.charAt(0),I=u.paramIsX[B],V=u.paramIsY[B],N=u.numParams[B],F=b.substr(1).replace(u.paramRE,function(U){return D>=N||(I[D]?U=_(U):V[D]&&(U=L(U)),D++),U});return B+F})}function g(d,_){if(p(d)){var L=_.node(),b=+L.getAttribute("data-index");if(b>=0){if(b===d._fullLayout._activeShapeIndex){A(d);return}d._fullLayout._activeShapeIndex=b,d._fullLayout._deactivateShape=A,y(d)}}}function A(d){if(p(d)){var _=d._fullLayout._activeShapeIndex;_>=0&&(l(d),delete d._fullLayout._activeShapeIndex,y(d))}}function E(d){if(p(d)){l(d);var _=d._fullLayout._activeShapeIndex,L=(d.layout||{}).shapes||[];if(_<L.length){for(var b=[],D=0;D<L.length;D++)D!==_&&b.push(L[D]);return delete d._fullLayout._activeShapeIndex,C.call("_guiRelayout",d,{shapes:b})}}}},64101:function(nt,W,e){var M=e(13582).overrideAll,C=e(9829),r=e(80337),i=e(94850).T,w=e(93049).extendFlat,S=e(3208).LF,h=e(41235);nt.exports=M({newshape:{visible:w({},C.visible,{}),showlegend:{valType:"boolean",dflt:!1},legend:w({},C.legend,{}),legendgroup:w({},C.legendgroup,{}),legendgrouptitle:{text:w({},C.legendgrouptitle.text,{}),font:r({})},legendrank:w({},C.legendrank,{}),legendwidth:w({},C.legendwidth,{}),line:{color:{valType:"color"},width:{valType:"number",min:0,dflt:4},dash:w({},i,{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:w({},C.name,{}),label:{text:{valType:"string",dflt:""},texttemplate:S({newshape:!0},{keys:Object.keys(h)}),font:r({}),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")},93391:function(nt){var W=32;nt.exports={CIRCLE_SIDES:W,i000:0,i090:W/4,i180:W/2,i270:W/4*3,cos45:Math.cos(Math.PI/4),sin45:Math.sin(Math.PI/4),SQRT2:Math.sqrt(2)}},85522:function(nt,W,e){var M=e(78766),C=e(34809);function r(i,w){return i?"bottom":w.indexOf("top")!==-1?"top":w.indexOf("bottom")!==-1?"bottom":"middle"}nt.exports=function(i,w,S){S("newshape.visible"),S("newshape.name"),S("newshape.showlegend"),S("newshape.legend"),S("newshape.legendwidth"),S("newshape.legendgroup"),S("newshape.legendgrouptitle.text"),C.coerceFont(S,"newshape.legendgrouptitle.font"),S("newshape.legendrank"),S("newshape.drawdirection"),S("newshape.layer"),S("newshape.fillcolor"),S("newshape.fillrule"),S("newshape.opacity");var h=S("newshape.line.width");if(h){var l=(i||{}).plot_bgcolor||"#FFF";S("newshape.line.color",M.contrast(l)),S("newshape.line.dash")}var t=i.dragmode==="drawline",n=S("newshape.label.text"),o=S("newshape.label.texttemplate");if(n||o){S("newshape.label.textangle");var a=S("newshape.label.textposition",t?"middle":"middle center");S("newshape.label.xanchor"),S("newshape.label.yanchor",r(t,a)),S("newshape.label.padding"),C.coerceFont(S,"newshape.label.font",w.font)}S("activeshape.fillcolor"),S("activeshape.opacity")}},81055:function(nt,W,e){var M=e(26953),C=e(93391),r=C.CIRCLE_SIDES,i=C.SQRT2,w=e(49801),S=w.p2r,h=w.r2p,l=[0,3,4,5,6,1,2],t=[0,3,4,1,2];W.writePaths=function(a){var s=a.length;if(!s)return"M0,0Z";for(var u="",x=0;x<s;x++)for(var m=a[x].length,y=0;y<m;y++){var c=a[x][y][0];if(c==="Z")u+="Z";else for(var p=a[x][y].length,f=0;f<p;f++){var T=f;c==="Q"||c==="S"?T=t[f]:c==="C"&&(T=l[f]),u+=a[x][y][T],f>0&&f<p-1&&(u+=",")}}return u},W.readPaths=function(a,s,u,x){var m=M(a),y=[],c=-1,p=function(){c++,y[c]=[]},f,T=0,k=0,P,g,A=function(){P=T,g=k};A();for(var E=0;E<m.length;E++){var d=[],_,L,b,D,B=m[E][0],I=B;switch(B){case"M":p(),T=+m[E][1],k=+m[E][2],d.push([I,T,k]),A();break;case"Q":case"S":_=+m[E][1],b=+m[E][2],T=+m[E][3],k=+m[E][4],d.push([I,T,k,_,b]);break;case"C":_=+m[E][1],b=+m[E][2],L=+m[E][3],D=+m[E][4],T=+m[E][5],k=+m[E][6],d.push([I,T,k,_,b,L,D]);break;case"T":case"L":T=+m[E][1],k=+m[E][2],d.push([I,T,k]);break;case"H":I="L",T=+m[E][1],d.push([I,T,k]);break;case"V":I="L",k=+m[E][1],d.push([I,T,k]);break;case"A":I="L";var V=+m[E][1],N=+m[E][2];+m[E][4]||(V=-V,N=-N);var F=T-V,U=k;for(f=1;f<=r/2;f++){var G=2*Math.PI*f/r;d.push([I,F+V*Math.cos(G),U+N*Math.sin(G)])}break;case"Z":(T!==P||k!==g)&&(T=P,k=g,d.push([I,T,k]));break}for(var Y=(u||{}).domain,Q=s._fullLayout._size,ft=u&&u.xsizemode==="pixel",ut=u&&u.ysizemode==="pixel",lt=x===!1,K=0;K<d.length;K++){for(f=0;f+2<7;f+=2){var $=d[K][f+1],H=d[K][f+2];$===void 0||H===void 0||(T=$,k=H,u&&(u.xaxis&&u.xaxis.p2r?(lt&&($-=u.xaxis._offset),ft?$=h(u.xaxis,u.xanchor)+$:$=S(u.xaxis,$)):(lt&&($-=Q.l),Y?$=Y.x[0]+$/Q.w:$=$/Q.w),u.yaxis&&u.yaxis.p2r?(lt&&(H-=u.yaxis._offset),ut?H=h(u.yaxis,u.yanchor)-H:H=S(u.yaxis,H)):(lt&&(H-=Q.t),Y?H=Y.y[1]-H/Q.h:H=1-H/Q.h)),d[K][f+1]=$,d[K][f+2]=H)}y[c].push(d[K].slice())}}return y};function n(a,s){return Math.abs(a-s)<=1e-6}function o(a,s){var u=s[1]-a[1],x=s[2]-a[2];return Math.sqrt(u*u+x*x)}W.pointsOnRectangle=function(a){var s=a.length;if(s!==5)return!1;for(var u=1;u<3;u++){var x=a[0][u]-a[1][u],m=a[3][u]-a[2][u];if(!n(x,m))return!1;var y=a[0][u]-a[3][u],c=a[1][u]-a[2][u];if(!n(y,c))return!1}return!n(a[0][1],a[1][1])&&!n(a[0][1],a[3][1])?!1:!!(o(a[0],a[1])*o(a[0],a[3]))},W.pointsOnEllipse=function(a){var s=a.length;if(s!==r+1)return!1;s=r;for(var u=0;u<s;u++){var x=(s*2-u)%s,m=(s/2+x)%s,y=(s/2+u)%s;if(!n(o(a[u],a[y]),o(a[x],a[m])))return!1}return!0},W.handleEllipse=function(a,s,u){if(!a)return[s,u];var x=W.ellipseOver({x0:s[0],y0:s[1],x1:u[0],y1:u[1]}),m=(x.x1+x.x0)/2,y=(x.y1+x.y0)/2,c=(x.x1-x.x0)/2,p=(x.y1-x.y0)/2;c||(c=p=p/i),p||(p=c=c/i);for(var f=[],T=0;T<r;T++){var k=T*2*Math.PI/r;f.push([m+c*Math.cos(k),y+p*Math.sin(k)])}return f},W.ellipseOver=function(a){var s=a.x0,u=a.y0,x=a.x1,m=a.y1,y=x-s,c=m-u;s-=y,u-=c;var p=(s+x)/2,f=(u+m)/2,T=i;return y*=T,c*=T,{x0:p-y,y0:f-c,x1:p+y,y1:f+c}},W.fixDatesForPaths=function(a,s,u){var x=s.type==="date",m=u.type==="date";if(!x&&!m)return a;for(var y=0;y<a.length;y++)for(var c=0;c<a[y].length;c++)for(var p=0;p+2<a[y][c].length;p+=2)x&&(a[y][c][p+1]=a[y][c][p+1].replace(" ","_")),m&&(a[y][c][p+2]=a[y][c][p+2].replace(" ","_"));return a}},87562:function(nt,W,e){var M=e(70414),C=M.drawMode,r=M.openMode,i=e(93391),w=i.i000,S=i.i090,h=i.i180,l=i.i270,t=i.cos45,n=i.sin45,o=e(49801),a=o.p2r,s=o.r2p,u=e(78534),x=u.clearOutline,m=e(81055),y=m.readPaths,c=m.writePaths,p=m.ellipseOver,f=m.fixDatesForPaths;function T(P,g){if(P.length){var A=P[0][0];if(A){var E=g.gd,d=g.isActiveShape,_=g.dragmode,L=(E.layout||{}).shapes||[];if(!C(_)&&d!==void 0){var b=E._fullLayout._activeShapeIndex;if(b<L.length)switch(E._fullLayout.shapes[b].type){case"rect":_="drawrect";break;case"circle":_="drawcircle";break;case"line":_="drawline";break;case"path":var D=L[b].path||"";D[D.length-1]==="Z"?_="drawclosedpath":_="drawopenpath";break}}var B=k(P,g,_);x(E);for(var I=g.editHelpers,V=(I||{}).modifyItem,N=[],F=0;F<L.length;F++){var U=E._fullLayout.shapes[F];if(N[F]=U._input,d!==void 0&&F===E._fullLayout._activeShapeIndex){var G=B;switch(U.type){case"line":case"rect":case"circle":V("x0",G.x0-(U.x0shift||0)),V("x1",G.x1-(U.x1shift||0)),V("y0",G.y0-(U.y0shift||0)),V("y1",G.y1-(U.y1shift||0));break;case"path":V("path",G.path);break}}}return d===void 0?(N.push(B),N):I?I.getUpdateObj():{}}}}function k(P,g,A){var E=P[0][0],d=g.gd,_=E.getAttribute("d"),L=d._fullLayout.newshape,b=g.plotinfo,D=g.isActiveShape,B=b.xaxis,I=b.yaxis,V=!!b.domain||!b.xaxis,N=!!b.domain||!b.yaxis,F=r(A),U=y(_,d,b,D),G={editable:!0,visible:L.visible,name:L.name,showlegend:L.showlegend,legend:L.legend,legendwidth:L.legendwidth,legendgroup:L.legendgroup,legendgrouptitle:{text:L.legendgrouptitle.text,font:L.legendgrouptitle.font},legendrank:L.legendrank,label:L.label,xref:V?"paper":B._id,yref:N?"paper":I._id,layer:L.layer,opacity:L.opacity,line:{color:L.line.color,width:L.line.width,dash:L.line.dash}};F||(G.fillcolor=L.fillcolor,G.fillrule=L.fillrule);var Y;if(U.length===1&&(Y=U[0]),Y&&Y.length===5&&A==="drawrect")G.type="rect",G.x0=Y[0][1],G.y0=Y[0][2],G.x1=Y[2][1],G.y1=Y[2][2];else if(Y&&A==="drawline")G.type="line",G.x0=Y[0][1],G.y0=Y[0][2],G.x1=Y[1][1],G.y1=Y[1][2];else if(Y&&A==="drawcircle"){G.type="circle";var Q=Y[w][1],ft=Y[S][1],ut=Y[h][1],lt=Y[l][1],K=Y[w][2],$=Y[S][2],H=Y[h][2],at=Y[l][2],ct=b.xaxis&&(b.xaxis.type==="date"||b.xaxis.type==="log"),et=b.yaxis&&(b.yaxis.type==="date"||b.yaxis.type==="log");ct&&(Q=s(b.xaxis,Q),ft=s(b.xaxis,ft),ut=s(b.xaxis,ut),lt=s(b.xaxis,lt)),et&&(K=s(b.yaxis,K),$=s(b.yaxis,$),H=s(b.yaxis,H),at=s(b.yaxis,at));var Z=(ft+lt)/2,ot=(K+H)/2,st=(lt-ft+ut-Q)/2,dt=(at-$+H-K)/2,xt=p({x0:Z,y0:ot,x1:Z+st*t,y1:ot+dt*n});ct&&(xt.x0=a(b.xaxis,xt.x0),xt.x1=a(b.xaxis,xt.x1)),et&&(xt.y0=a(b.yaxis,xt.y0),xt.y1=a(b.yaxis,xt.y1)),G.x0=xt.x0,G.y0=xt.y0,G.x1=xt.x1,G.y1=xt.y1}else G.type="path",B&&I&&f(U,B,I),G.path=c(U),Y=null;return G}nt.exports={newShapes:T,createShapeObj:k}},78534:function(nt){function W(M){var C=M._fullLayout._zoomlayer;C&&C.selectAll(".outline-controllers").remove()}function e(M){var C=M._fullLayout._zoomlayer;C&&C.selectAll(".select-outline").remove(),M._fullLayout._outlining=!1}nt.exports={clearOutlineControllers:W,clearOutline:e}},49728:function(nt,W,e){var M=e(2956),C=e(34809),r=e(29714);W.rangeToShapePosition=function(S){return S.type==="log"?S.r2d:function(h){return h}},W.shapePositionToRange=function(S){return S.type==="log"?S.d2r:function(h){return h}},W.decodeDate=function(S){return function(h){return h.replace&&(h=h.replace("_"," ")),S(h)}},W.encodeDate=function(S){return function(h){return S(h).replace(" ","_")}},W.extractPathCoords=function(S,h,l){var t=[],n=S.match(M.segmentRE);return n.forEach(function(o){var a=h[o.charAt(0)].drawn;if(a!==void 0){var s=o.substr(1).match(M.paramRE);if(!(!s||s.length<a)){var u=s[a],x=l?u:C.cleanNumber(u);t.push(x)}}}),t},W.getDataToPixel=function(S,h,l,t,n){var o=S._fullLayout._size,a;if(h)if(n==="domain")a=function(u){return h._length*(t?1-u:u)+h._offset};else{var s=W.shapePositionToRange(h);a=function(u){var x=w(h,l);return h._offset+h.r2p(s(u,!0))+x},h.type==="date"&&(a=W.decodeDate(a))}else t?a=function(u){return o.t+o.h*(1-u)}:a=function(u){return o.l+o.w*u};return a},W.getPixelToData=function(S,h,l,t){var n=S._fullLayout._size,o;if(h)if(t==="domain")o=function(s){var u=(s-h._offset)/h._length;return l?1-u:u};else{var a=W.rangeToShapePosition(h);o=function(s){return a(h.p2r(s-h._offset))}}else l?o=function(s){return 1-(s-n.t)/n.h}:o=function(s){return(s-n.l)/n.w};return o},W.roundPositionForSharpStrokeRendering=function(S,h){var l=Math.round(h%2)===1,t=Math.round(S);return l?t+.5:t},W.makeShapesOptionsAndPlotinfo=function(S,h){var l=S._fullLayout.shapes[h]||{},t=S._fullLayout._plots[l.xref+l.yref],n=!!t;return n?t._hadPlotinfo=!0:(t={},l.xref&&l.xref!=="paper"&&(t.xaxis=S._fullLayout[l.xref+"axis"]),l.yref&&l.yref!=="paper"&&(t.yaxis=S._fullLayout[l.yref+"axis"])),t.xsizemode=l.xsizemode,t.ysizemode=l.ysizemode,t.xanchor=l.xanchor,t.yanchor=l.yanchor,{options:l,plotinfo:t}},W.makeSelectionsOptionsAndPlotinfo=function(S,h){var l=S._fullLayout.selections[h]||{},t=S._fullLayout._plots[l.xref+l.yref],n=!!t;return n?t._hadPlotinfo=!0:(t={},l.xref&&(t.xaxis=S._fullLayout[l.xref+"axis"]),l.yref&&(t.yaxis=S._fullLayout[l.yref+"axis"])),{options:l,plotinfo:t}},W.getPathString=function(S,h){var l=h.type,t=r.getRefType(h.xref),n=r.getRefType(h.yref),o=r.getFromId(S,h.xref),a=r.getFromId(S,h.yref),s=S._fullLayout._size,u,x,m,y,c=w(o,h.x0shift),p=w(o,h.x1shift),f=w(a,h.y0shift),T=w(a,h.y1shift),k,P,g,A;if(o?t==="domain"?x=function(N){return o._offset+o._length*N}:(u=W.shapePositionToRange(o),x=function(N){return o._offset+o.r2p(u(N,!0))}):x=function(N){return s.l+s.w*N},a?n==="domain"?y=function(N){return a._offset+a._length*(1-N)}:(m=W.shapePositionToRange(a),y=function(N){return a._offset+a.r2p(m(N,!0))}):y=function(N){return s.t+s.h*(1-N)},l==="path")return o&&o.type==="date"&&(x=W.decodeDate(x)),a&&a.type==="date"&&(y=W.decodeDate(y)),i(h,x,y);if(h.xsizemode==="pixel"){var E=x(h.xanchor);k=E+h.x0+c,P=E+h.x1+p}else k=x(h.x0)+c,P=x(h.x1)+p;if(h.ysizemode==="pixel"){var d=y(h.yanchor);g=d-h.y0+f,A=d-h.y1+T}else g=y(h.y0)+f,A=y(h.y1)+T;if(l==="line")return"M"+k+","+g+"L"+P+","+A;if(l==="rect")return"M"+k+","+g+"H"+P+"V"+A+"H"+k+"Z";var _=(k+P)/2,L=(g+A)/2,b=Math.abs(_-k),D=Math.abs(L-g),B="A"+b+","+D,I=_+b+","+L,V=_+","+(L-D);return"M"+I+B+" 0 1,1 "+V+B+" 0 0,1 "+I+"Z"};function i(S,h,l){var t=S.path,n=S.xsizemode,o=S.ysizemode,a=S.xanchor,s=S.yanchor;return t.replace(M.segmentRE,function(u){var x=0,m=u.charAt(0),y=M.paramIsX[m],c=M.paramIsY[m],p=M.numParams[m],f=u.substr(1).replace(M.paramRE,function(T){return y[x]?n==="pixel"?T=h(a)+Number(T):T=h(T):c[x]&&(o==="pixel"?T=l(s)-Number(T):T=l(T)),x++,x>p&&(T="X"),T});return x>p&&(f=f.replace(/[\s,]*X.*/,""),C.log("Ignoring extra params in segment "+u)),m+f})}function w(S,h){h=h||0;var l=0;return h&&S&&(S.type==="category"||S.type==="multicategory")&&(l=(S.r2p(1)-S.r2p(0))*h),l}},43701:function(nt,W,e){var M=e(28231);nt.exports={moduleType:"component",name:"shapes",layoutAttributes:e(43144),supplyLayoutDefaults:e(74367),supplyDrawNewShapeDefaults:e(85522),includeBasePlot:e(20706)("shapes"),calcAutorange:e(44959),draw:M.draw,drawOne:M.drawOne}},41235:function(nt){function W(y,c){return c?c.d2l(y):y}function e(y,c){return c?c.l2d(y):y}function M(y){return y.x0}function C(y){return y.x1}function r(y){return y.y0}function i(y){return y.y1}function w(y){return y.x0shift||0}function S(y){return y.x1shift||0}function h(y){return y.y0shift||0}function l(y){return y.y1shift||0}function t(y,c){return W(y.x1,c)+S(y)-W(y.x0,c)-w(y)}function n(y,c,p){return W(y.y1,p)+l(y)-W(y.y0,p)-h(y)}function o(y,c){return Math.abs(t(y,c))}function a(y,c,p){return Math.abs(n(y,c,p))}function s(y,c,p){return y.type!=="line"?void 0:Math.sqrt(Math.pow(t(y,c),2)+Math.pow(n(y,c,p),2))}function u(y,c){return e((W(y.x1,c)+S(y)+W(y.x0,c)+w(y))/2,c)}function x(y,c,p){return e((W(y.y1,p)+l(y)+W(y.y0,p)+h(y))/2,p)}function m(y,c,p){return y.type!=="line"?void 0:n(y,c,p)/t(y,c)}nt.exports={x0:M,x1:C,y0:r,y1:i,slope:m,dx:t,dy:n,width:o,height:a,length:s,xcenter:u,ycenter:x}},8606:function(nt,W,e){var M=e(80337),C=e(57891),r=e(93049).extendDeepAll,i=e(13582).overrideAll,w=e(49722),S=e(78032).templatedArray,h=e(64194),l=S("step",{visible:{valType:"boolean",dflt:!0},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string"},value:{valType:"string"},execute:{valType:"boolean",dflt:!0}});nt.exports=i(S("slider",{visible:{valType:"boolean",dflt:!0},active:{valType:"number",min:0,dflt:0},steps:l,lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction"},len:{valType:"number",min:0,dflt:1},x:{valType:"number",min:-2,max:3,dflt:0},pad:r(C({editType:"arraydraw"}),{},{t:{dflt:20}}),xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left"},y:{valType:"number",min:-2,max:3,dflt:0},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},transition:{duration:{valType:"number",min:0,dflt:150},easing:{valType:"enumerated",values:w.transition.easing.values,dflt:"cubic-in-out"}},currentvalue:{visible:{valType:"boolean",dflt:!0},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left"},offset:{valType:"number",dflt:10},prefix:{valType:"string"},suffix:{valType:"string"},font:M({})},font:M({}),activebgcolor:{valType:"color",dflt:h.gripBgActiveColor},bgcolor:{valType:"color",dflt:h.railBgColor},bordercolor:{valType:"color",dflt:h.railBorderColor},borderwidth:{valType:"number",min:0,dflt:h.railBorderWidth},ticklen:{valType:"number",min:0,dflt:h.tickLength},tickcolor:{valType:"color",dflt:h.tickColor},tickwidth:{valType:"number",min:0,dflt:1},minorticklen:{valType:"number",min:0,dflt:h.minorTickLength}}),"arraydraw","from-root")},64194:function(nt){nt.exports={name:"sliders",containerClassName:"slider-container",groupClassName:"slider-group",inputAreaClass:"slider-input-area",railRectClass:"slider-rail-rect",railTouchRectClass:"slider-rail-touch-rect",gripRectClass:"slider-grip-rect",tickRectClass:"slider-tick-rect",inputProxyClass:"slider-input-proxy",labelsClass:"slider-labels",labelGroupClass:"slider-label-group",labelClass:"slider-label",currentValueClass:"slider-current-value",railHeight:5,menuIndexAttrName:"slider-active-index",autoMarginIdRoot:"slider-",minWidth:30,minHeight:30,textPadX:40,arrowOffsetX:4,railRadius:2,railWidth:5,railBorder:4,railBorderWidth:1,railBorderColor:"#bec8d9",railBgColor:"#f8fafc",railInset:8,stepInset:10,gripRadius:10,gripWidth:20,gripHeight:20,gripBorder:20,gripBorderWidth:1,gripBorderColor:"#bec8d9",gripBgColor:"#f6f8fa",gripBgActiveColor:"#dbdde0",labelPadding:8,labelOffset:0,tickWidth:1,tickColor:"#333",tickOffset:25,tickLength:7,minorTickOffset:25,minorTickColor:"#333",minorTickLength:4,currentValuePadding:8,currentValueInset:0}},74537:function(nt,W,e){var M=e(34809),C=e(59008),r=e(8606),i=e(64194),w=i.name,S=r.steps;nt.exports=function(t,n){C(t,n,{name:w,handleItemDefaults:h})};function h(t,n,o){function a(f,T){return M.coerce(t,n,r,f,T)}for(var s=C(t,n,{name:"steps",handleItemDefaults:l}),u=0,x=0;x<s.length;x++)s[x].visible&&u++;var m;if(u<2?m=n.visible=!1:m=a("visible"),!!m){n._stepCount=u;var y=n._visibleSteps=M.filterVisible(s),c=a("active");(s[c]||{}).visible||(n.active=y[0]._index),a("x"),a("y"),M.noneOrAll(t,n,["x","y"]),a("xanchor"),a("yanchor"),a("len"),a("lenmode"),a("pad.t"),a("pad.r"),a("pad.b"),a("pad.l"),M.coerceFont(a,"font",o.font);var p=a("currentvalue.visible");p&&(a("currentvalue.xanchor"),a("currentvalue.prefix"),a("currentvalue.suffix"),a("currentvalue.offset"),M.coerceFont(a,"currentvalue.font",n.font)),a("transition.duration"),a("transition.easing"),a("bgcolor"),a("activebgcolor"),a("bordercolor"),a("borderwidth"),a("ticklen"),a("tickwidth"),a("tickcolor"),a("minorticklen")}}function l(t,n){function o(u,x){return M.coerce(t,n,S,u,x)}var a;if(t.method!=="skip"&&!Array.isArray(t.args)?a=n.visible=!1:a=o("visible"),a){o("method"),o("args");var s=o("label","step-"+n._index);o("value",s),o("execute")}}},44097:function(nt,W,e){var M=e(45568),C=e(44122),r=e(78766),i=e(62203),w=e(34809),S=w.strTranslate,h=e(30635),l=e(78032).arrayEditor,t=e(64194),n=e(4530),o=n.LINE_SPACING,a=n.FROM_TL,s=n.FROM_BR;nt.exports=function(I){var V=I._context.staticPlot,N=I._fullLayout,F=x(N,I),U=N._infolayer.selectAll("g."+t.containerClassName).data(F.length>0?[0]:[]);U.enter().append("g").classed(t.containerClassName,!0).style("cursor",V?null:"ew-resize");function G(ut){ut._commandObserver&&(ut._commandObserver.remove(),delete ut._commandObserver),C.autoMargin(I,u(ut))}if(U.exit().each(function(){M.select(this).selectAll("g."+t.groupClassName).each(G)}).remove(),F.length!==0){var Y=U.selectAll("g."+t.groupClassName).data(F,m);Y.enter().append("g").classed(t.groupClassName,!0),Y.exit().each(G).remove();for(var Q=0;Q<F.length;Q++){var ft=F[Q];y(I,ft)}Y.each(function(ut){var lt=M.select(this);d(ut),C.manageCommandObserver(I,ut,ut._visibleSteps,function(K){var $=lt.data()[0];$.active!==K.index&&($._dragging||g(I,lt,$,K.index,!1,!0))}),c(I,M.select(this),ut)})}};function u(I){return t.autoMarginIdRoot+I._index}function x(I,V){for(var N=I[t.name],F=[],U=0;U<N.length;U++){var G=N[U];G.visible&&(G._gd=V,F.push(G))}return F}function m(I){return I._index}function y(I,V){var N=i.tester.selectAll("g."+t.labelGroupClass).data(V._visibleSteps);N.enter().append("g").classed(t.labelGroupClass,!0);var F=0,U=0;N.each(function(at){var ct=M.select(this),et=T(ct,{step:at},V),Z=et.node();if(Z){var ot=i.bBox(Z);U=Math.max(U,ot.height),F=Math.max(F,ot.width)}}),N.remove();var G=V._dims={};G.inputAreaWidth=Math.max(t.railWidth,t.gripHeight);var Y=I._fullLayout._size;G.lx=Y.l+Y.w*V.x,G.ly=Y.t+Y.h*(1-V.y),V.lenmode==="fraction"?G.outerLength=Math.round(Y.w*V.len):G.outerLength=V.len,G.inputAreaStart=0,G.inputAreaLength=Math.round(G.outerLength-V.pad.l-V.pad.r);var Q=G.inputAreaLength-2*t.stepInset,ft=Q/(V._stepCount-1),ut=F+t.labelPadding;if(G.labelStride=Math.max(1,Math.ceil(ut/ft)),G.labelHeight=U,G.currentValueMaxWidth=0,G.currentValueHeight=0,G.currentValueTotalHeight=0,G.currentValueMaxLines=1,V.currentvalue.visible){var lt=i.tester.append("g");N.each(function(at){var ct=p(lt,V,at.label),et=ct.node()&&i.bBox(ct.node())||{width:0,height:0},Z=h.lineCount(ct);G.currentValueMaxWidth=Math.max(G.currentValueMaxWidth,Math.ceil(et.width)),G.currentValueHeight=Math.max(G.currentValueHeight,Math.ceil(et.height)),G.currentValueMaxLines=Math.max(G.currentValueMaxLines,Z)}),G.currentValueTotalHeight=G.currentValueHeight+V.currentvalue.offset,lt.remove()}G.height=G.currentValueTotalHeight+t.tickOffset+V.ticklen+t.labelOffset+G.labelHeight+V.pad.t+V.pad.b;var K="left";w.isRightAnchor(V)&&(G.lx-=G.outerLength,K="right"),w.isCenterAnchor(V)&&(G.lx-=G.outerLength/2,K="center");var $="top";w.isBottomAnchor(V)&&(G.ly-=G.height,$="bottom"),w.isMiddleAnchor(V)&&(G.ly-=G.height/2,$="middle"),G.outerLength=Math.ceil(G.outerLength),G.height=Math.ceil(G.height),G.lx=Math.round(G.lx),G.ly=Math.round(G.ly);var H={y:V.y,b:G.height*s[$],t:G.height*a[$]};V.lenmode==="fraction"?(H.l=0,H.xl=V.x-V.len*a[K],H.r=0,H.xr=V.x+V.len*s[K]):(H.x=V.x,H.l=G.outerLength*a[K],H.r=G.outerLength*s[K]),C.autoMargin(I,u(V),H)}function c(I,V,N){(N.steps[N.active]||{}).visible||(N.active=N._visibleSteps[0]._index),V.call(p,N).call(B,N).call(k,N).call(E,N).call(D,I,N).call(f,I,N);var F=N._dims;i.setTranslate(V,F.lx+N.pad.l,F.ly+N.pad.t),V.call(_,N,!1),V.call(p,N)}function p(I,V,N){if(V.currentvalue.visible){var F=V._dims,U,G;switch(V.currentvalue.xanchor){case"right":U=F.inputAreaLength-t.currentValueInset-F.currentValueMaxWidth,G="left";break;case"center":U=F.inputAreaLength*.5,G="middle";break;default:U=t.currentValueInset,G="left"}var Y=w.ensureSingle(I,"text",t.labelClass,function($){$.attr({"text-anchor":G,"data-notex":1})}),Q=V.currentvalue.prefix?V.currentvalue.prefix:"";if(typeof N=="string")Q+=N;else{var ft=V.steps[V.active].label,ut=V._gd._fullLayout._meta;ut&&(ft=w.templateString(ft,ut)),Q+=ft}V.currentvalue.suffix&&(Q+=V.currentvalue.suffix),Y.call(i.font,V.currentvalue.font).text(Q).call(h.convertToTspans,V._gd);var lt=h.lineCount(Y),K=(F.currentValueMaxLines+1-lt)*V.currentvalue.font.size*o;return h.positionText(Y,U,K),Y}}function f(I,V,N){var F=w.ensureSingle(I,"rect",t.gripRectClass,function(U){U.call(A,V,I,N).style("pointer-events","all")});F.attr({width:t.gripWidth,height:t.gripHeight,rx:t.gripRadius,ry:t.gripRadius}).call(r.stroke,N.bordercolor).call(r.fill,N.bgcolor).style("stroke-width",N.borderwidth+"px")}function T(I,V,N){var F=w.ensureSingle(I,"text",t.labelClass,function(Y){Y.attr({"text-anchor":"middle","data-notex":1})}),U=V.step.label,G=N._gd._fullLayout._meta;return G&&(U=w.templateString(U,G)),F.call(i.font,N.font).text(U).call(h.convertToTspans,N._gd),F}function k(I,V){var N=w.ensureSingle(I,"g",t.labelsClass),F=V._dims,U=N.selectAll("g."+t.labelGroupClass).data(F.labelSteps);U.enter().append("g").classed(t.labelGroupClass,!0),U.exit().remove(),U.each(function(G){var Y=M.select(this);Y.call(T,G,V),i.setTranslate(Y,L(V,G.fraction),t.tickOffset+V.ticklen+V.font.size*o+t.labelOffset+F.currentValueTotalHeight)})}function P(I,V,N,F,U){var G=Math.round(F*(N._stepCount-1)),Y=N._visibleSteps[G]._index;Y!==N.active&&g(I,V,N,Y,!0,U)}function g(I,V,N,F,U,G){var Y=N.active;N.active=F,l(I.layout,t.name,N).applyUpdate("active",F);var Q=N.steps[N.active];V.call(_,N,G),V.call(p,N),I.emit("plotly_sliderchange",{slider:N,step:N.steps[N.active],interaction:U,previousActive:Y}),Q&&Q.method&&U&&(V._nextMethod?(V._nextMethod.step=Q,V._nextMethod.doCallback=U,V._nextMethod.doTransition=G):(V._nextMethod={step:Q,doCallback:U,doTransition:G},V._nextMethodRaf=window.requestAnimationFrame(function(){var ft=V._nextMethod.step;ft.method&&(ft.execute&&C.executeAPICommand(I,ft.method,ft.args),V._nextMethod=null,V._nextMethodRaf=null)})))}function A(I,V,N){if(V._context.staticPlot)return;var F=N.node(),U=M.select(V);function G(){return N.data()[0]}function Y(){var Q=G();V.emit("plotly_sliderstart",{slider:Q});var ft=N.select("."+t.gripRectClass);M.event.stopPropagation(),M.event.preventDefault(),ft.call(r.fill,Q.activebgcolor);var ut=b(Q,M.mouse(F)[0]);P(V,N,Q,ut,!0),Q._dragging=!0;function lt(){var $=G(),H=b($,M.mouse(F)[0]);P(V,N,$,H,!1)}U.on("mousemove",lt),U.on("touchmove",lt);function K(){var $=G();$._dragging=!1,ft.call(r.fill,$.bgcolor),U.on("mouseup",null),U.on("mousemove",null),U.on("touchend",null),U.on("touchmove",null),V.emit("plotly_sliderend",{slider:$,step:$.steps[$.active]})}U.on("mouseup",K),U.on("touchend",K)}I.on("mousedown",Y),I.on("touchstart",Y)}function E(I,V){var N=I.selectAll("rect."+t.tickRectClass).data(V._visibleSteps),F=V._dims;N.enter().append("rect").classed(t.tickRectClass,!0),N.exit().remove(),N.attr({width:V.tickwidth+"px","shape-rendering":"crispEdges"}),N.each(function(U,G){var Y=G%F.labelStride===0,Q=M.select(this);Q.attr({height:Y?V.ticklen:V.minorticklen}).call(r.fill,V.tickcolor),i.setTranslate(Q,L(V,G/(V._stepCount-1))-.5*V.tickwidth,(Y?t.tickOffset:t.minorTickOffset)+F.currentValueTotalHeight)})}function d(I){var V=I._dims;V.labelSteps=[];for(var N=I._stepCount,F=0;F<N;F+=V.labelStride)V.labelSteps.push({fraction:F/(N-1),step:I._visibleSteps[F]})}function _(I,V,N){for(var F=I.select("rect."+t.gripRectClass),U=0,G=0;G<V._stepCount;G++)if(V._visibleSteps[G]._index===V.active){U=G;break}var Y=L(V,U/(V._stepCount-1));if(!V._invokingCommand){var Q=F;N&&V.transition.duration>0&&(Q=Q.transition().duration(V.transition.duration).ease(V.transition.easing)),Q.attr("transform",S(Y-t.gripWidth*.5,V._dims.currentValueTotalHeight))}}function L(I,V){var N=I._dims;return N.inputAreaStart+t.stepInset+(N.inputAreaLength-2*t.stepInset)*Math.min(1,Math.max(0,V))}function b(I,V){var N=I._dims;return Math.min(1,Math.max(0,(V-t.stepInset-N.inputAreaStart)/(N.inputAreaLength-2*t.stepInset-2*N.inputAreaStart)))}function D(I,V,N){var F=N._dims,U=w.ensureSingle(I,"rect",t.railTouchRectClass,function(G){G.call(A,V,I,N).style("pointer-events","all")});U.attr({width:F.inputAreaLength,height:Math.max(F.inputAreaWidth,t.tickOffset+N.ticklen+F.labelHeight)}).call(r.fill,N.bgcolor).attr("opacity",0),i.setTranslate(U,0,F.currentValueTotalHeight)}function B(I,V){var N=V._dims,F=N.inputAreaLength-t.railInset*2,U=w.ensureSingle(I,"rect",t.railRectClass);U.attr({width:F,height:t.railWidth,rx:t.railRadius,ry:t.railRadius,"shape-rendering":"crispEdges"}).call(r.stroke,V.bordercolor).call(r.fill,V.bgcolor).style("stroke-width",V.borderwidth+"px"),i.setTranslate(U,t.railInset,(N.inputAreaWidth-t.railWidth)*.5+N.currentValueTotalHeight)}},15359:function(nt,W,e){var M=e(64194);nt.exports={moduleType:"component",name:M.name,layoutAttributes:e(8606),supplyLayoutDefaults:e(74537),draw:e(44097)}},17240:function(nt,W,e){var M=e(45568),C=e(10721),r=e(44122),i=e(33626),w=e(34809),S=w.strTranslate,h=e(62203),l=e(78766),t=e(30635),n=e(20438),o=e(4530).OPPOSITE_SIDE,a=/ [XY][0-9]* /,s=1.6,u=1.6;function x(m,y,c){var p=m._fullLayout,f=c.propContainer,T=c.propName,k=c.placeholder,P=c.traceIndex,g=c.avoid||{},A=c.attributes,E=c.transform,d=c.containerGroup,_=1,L=f.title,b=(L&&L.text?L.text:"").trim(),D=!1,B=L&&L.font?L.font:{},I=B.family,V=B.size,N=B.color,F=B.weight,U=B.style,G=B.variant,Y=B.textcase,Q=B.lineposition,ft=B.shadow,ut=c.subtitlePropName,lt=!!ut,K=c.subtitlePlaceholder,$=(f.title||{}).subtitle||{text:"",font:{}},H=$.text.trim(),at=!1,ct=1,et=$.font,Z=et.family,ot=et.size,st=et.color,dt=et.weight,xt=et.style,At=et.variant,St=et.textcase,Nt=et.lineposition,Wt=et.shadow,Vt;T==="title.text"?Vt="titleText":T.indexOf("axis")!==-1?Vt="axisTitleText":T.indexOf("colorbar"!==-1)&&(Vt="colorbarTitleText");var jt=m._context.edits[Vt];function Dt(Le,Ie){return Le===void 0||Ie===void 0?!1:Le.replace(a," % ")===Ie.replace(a," % ")}b===""?_=0:Dt(b,k)&&(jt||(b=""),_=.2,D=!0),lt&&(H===""?ct=0:Dt(H,K)&&(jt||(H=""),ct=.2,at=!0)),c._meta?b=w.templateString(b,c._meta):p._meta&&(b=w.templateString(b,p._meta));var kt=b||H||jt,Bt;d||(d=w.ensureSingle(p._infolayer,"g","g-"+y),Bt=p._hColorbarMoveTitle);var Ot=d.selectAll("text."+y).data(kt?[0]:[]);Ot.enter().append("text"),Ot.text(b).attr("class",y),Ot.exit().remove();var Ht=null,ye=y+"-subtitle",Qt=H||jt;if(lt&&Qt&&(Ht=d.selectAll("text."+ye).data(Qt?[0]:[]),Ht.enter().append("text"),Ht.text(H).attr("class",ye),Ht.exit().remove()),!kt)return d;function _e(Le,Ie){w.syncOrAsync([ie,Ae],{title:Le,subtitle:Ie})}function ie(Le){var Ie=Le.title,Ut=Le.subtitle,ee;!E&&Bt&&(E={}),E?(ee="",E.rotate&&(ee+="rotate("+[E.rotate,A.x,A.y]+")"),(E.offset||Bt)&&(ee+=S(0,(E.offset||0)-(Bt||0)))):ee=null,Ie.attr("transform",ee);function Kt(vt){if(vt){var Mt=M.select(vt.node().parentNode).select("."+ye);if(!Mt.empty()){var Lt=vt.node().getBBox();if(Lt.height){var $t=Lt.y+Lt.height+s*ot;Mt.attr("y",$t)}}}}if(Ie.style("opacity",_*l.opacity(N)).call(h.font,{color:l.rgb(N),size:M.round(V,2),family:I,weight:F,style:U,variant:G,textcase:Y,shadow:ft,lineposition:Q}).attr(A).call(t.convertToTspans,m,Kt),Ut){var ne=d.select("."+y+"-math-group"),zt=Ie.node().getBBox(),qt=ne.node()?ne.node().getBBox():void 0,Zt=qt?qt.y+qt.height+s*ot:zt.y+zt.height+u*ot,ae=w.extendFlat({},A,{y:Zt});Ut.attr("transform",ee),Ut.style("opacity",ct*l.opacity(st)).call(h.font,{color:l.rgb(st),size:M.round(ot,2),family:Z,weight:dt,style:xt,variant:At,textcase:St,shadow:Wt,lineposition:Nt}).attr(ae).call(t.convertToTspans,m)}return r.previousPromises(m)}function Ae(Le){var Ie=Le.title,Ut=M.select(Ie.node().parentNode);if(g.selection&&g.side&&b){Ut.attr("transform",null);var ee=o[g.side],Kt=g.side==="left"||g.side==="top"?-1:1,ne=C(g.pad)?g.pad:2,zt=h.bBox(Ut.node()),qt={t:0,b:0,l:0,r:0},Zt=m._fullLayout._reservedMargin;for(var ae in Zt)for(var vt in Zt[ae]){var Mt=Zt[ae][vt];qt[vt]=Math.max(qt[vt],Mt)}var Lt={left:qt.l,top:qt.t,right:p.width-qt.r,bottom:p.height-qt.b},$t=g.maxShift||Kt*(Lt[g.side]-zt[g.side]),ge=0;if($t<0)ge=$t;else{var de=g.offsetLeft||0,sr=g.offsetTop||0;zt.left-=de,zt.right-=de,zt.top-=sr,zt.bottom-=sr,g.selection.each(function(){var Ve=h.bBox(this);w.bBoxIntersect(zt,Ve,ne)&&(ge=Math.max(ge,Kt*(Ve[g.side]-zt[ee])+ne))}),ge=Math.min($t,ge),f._titleScoot=Math.abs(ge)}if(ge>0||$t<0){var mr={left:[-ge,0],right:[ge,0],top:[0,-ge],bottom:[0,ge]}[g.side];Ut.attr("transform",S(mr[0],mr[1]))}}}Ot.call(_e,Ht);function Pe(Le,Ie){Le.text(Ie).on("mouseover.opacity",function(){M.select(this).transition().duration(n.SHOW_PLACEHOLDER).style("opacity",1)}).on("mouseout.opacity",function(){M.select(this).transition().duration(n.HIDE_PLACEHOLDER).style("opacity",0)})}if(jt&&(b?Ot.on(".opacity",null):(Pe(Ot,k),D=!0),Ot.call(t.makeEditable,{gd:m}).on("edit",function(Le){P!==void 0?i.call("_guiRestyle",m,T,Le,P):i.call("_guiRelayout",m,T,Le)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(_e)}).on("input",function(Le){this.text(Le||" ").call(t.positionText,A.x,A.y)}),lt)){if(lt&&!b){var Oe=Ot.node().getBBox(),je=Oe.y+Oe.height+u*ot;Ht.attr("y",je)}H?Ht.on(".opacity",null):(Pe(Ht,K),at=!0),Ht.call(t.makeEditable,{gd:m}).on("edit",function(Le){i.call("_guiRelayout",m,"title.subtitle.text",Le)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(_e)}).on("input",function(Le){this.text(Le||" ").call(t.positionText,Ht.attr("x"),Ht.attr("y"))})}return Ot.classed("js-placeholder",D),Ht&&Ht.classed("js-placeholder",at),d}nt.exports={draw:x,SUBTITLE_PADDING_EM:u,SUBTITLE_PADDING_MATHJAX_EM:s}},85389:function(nt,W,e){var M=e(80337),C=e(10229),r=e(93049).extendFlat,i=e(13582).overrideAll,w=e(57891),S=e(78032).templatedArray,h=S("button",{visible:{valType:"boolean"},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},args2:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string",dflt:""},execute:{valType:"boolean",dflt:!0}});nt.exports=i(S("updatemenu",{_arrayAttrRegexps:[/^updatemenus\[(0|[1-9][0-9]+)\]\.buttons/],visible:{valType:"boolean"},type:{valType:"enumerated",values:["dropdown","buttons"],dflt:"dropdown"},direction:{valType:"enumerated",values:["left","right","up","down"],dflt:"down"},active:{valType:"integer",min:-1,dflt:0},showactive:{valType:"boolean",dflt:!0},buttons:h,x:{valType:"number",min:-2,max:3,dflt:-.05},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"right"},y:{valType:"number",min:-2,max:3,dflt:1},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},pad:r(w({editType:"arraydraw"}),{}),font:M({}),bgcolor:{valType:"color"},bordercolor:{valType:"color",dflt:C.borderLine},borderwidth:{valType:"number",min:0,dflt:1,editType:"arraydraw"}}),"arraydraw","from-root")},71559:function(nt){nt.exports={name:"updatemenus",containerClassName:"updatemenu-container",headerGroupClassName:"updatemenu-header-group",headerClassName:"updatemenu-header",headerArrowClassName:"updatemenu-header-arrow",dropdownButtonGroupClassName:"updatemenu-dropdown-button-group",dropdownButtonClassName:"updatemenu-dropdown-button",buttonClassName:"updatemenu-button",itemRectClassName:"updatemenu-item-rect",itemTextClassName:"updatemenu-item-text",menuIndexAttrName:"updatemenu-active-index",autoMarginIdRoot:"updatemenu-",blankHeaderOpts:{label:" "},minWidth:30,minHeight:30,textPadX:24,arrowPadX:16,rx:2,ry:2,textOffsetX:12,textOffsetY:3,arrowOffsetX:4,gapButtonHeader:5,gapButton:2,activeColor:"#F4FAFF",hoverColor:"#F4FAFF",arrowSymbol:{left:"\u25C4",right:"\u25BA",up:"\u25B2",down:"\u25BC"}}},42746:function(nt,W,e){var M=e(34809),C=e(59008),r=e(85389),i=e(71559),w=i.name,S=r.buttons;nt.exports=function(t,n){var o={name:w,handleItemDefaults:h};C(t,n,o)};function h(t,n,o){function a(x,m){return M.coerce(t,n,r,x,m)}var s=C(t,n,{name:"buttons",handleItemDefaults:l}),u=a("visible",s.length>0);u&&(a("active"),a("direction"),a("type"),a("showactive"),a("x"),a("y"),M.noneOrAll(t,n,["x","y"]),a("xanchor"),a("yanchor"),a("pad.t"),a("pad.r"),a("pad.b"),a("pad.l"),M.coerceFont(a,"font",o.font),a("bgcolor",o.paper_bgcolor),a("bordercolor"),a("borderwidth"))}function l(t,n){function o(s,u){return M.coerce(t,n,S,s,u)}var a=o("visible",t.method==="skip"||Array.isArray(t.args));a&&(o("method"),o("args"),o("args2"),o("label"),o("execute"))}},40974:function(nt,W,e){var M=e(45568),C=e(44122),r=e(78766),i=e(62203),w=e(34809),S=e(30635),h=e(78032).arrayEditor,l=e(4530).LINE_SPACING,t=e(71559),n=e(21736);nt.exports=function(L){var b=L._fullLayout,D=w.filterVisible(b[t.name]);function B(Q){C.autoMargin(L,E(Q))}var I=b._menulayer.selectAll("g."+t.containerClassName).data(D.length>0?[0]:[]);if(I.enter().append("g").classed(t.containerClassName,!0).style("cursor","pointer"),I.exit().each(function(){M.select(this).selectAll("g."+t.headerGroupClassName).each(B)}).remove(),D.length!==0){var V=I.selectAll("g."+t.headerGroupClassName).data(D,o);V.enter().append("g").classed(t.headerGroupClassName,!0);for(var N=w.ensureSingle(I,"g",t.dropdownButtonGroupClassName,function(Q){Q.style("pointer-events","all")}),F=0;F<D.length;F++){var U=D[F];A(L,U)}var G="updatemenus"+b._uid,Y=new n(L,N,G);V.enter().size()&&(N.node().parentNode.appendChild(N.node()),N.call(_)),V.exit().each(function(Q){N.call(_),B(Q)}).remove(),V.each(function(Q){var ft=M.select(this),ut=Q.type==="dropdown"?N:null;C.manageCommandObserver(L,Q,Q.buttons,function(lt){u(L,Q,Q.buttons[lt.index],ft,ut,Y,lt.index,!0)}),Q.type==="dropdown"?(x(L,ft,N,Y,Q),s(N,Q)&&m(L,ft,N,Y,Q)):m(L,ft,null,null,Q)})}};function o(L){return L._index}function a(L){return+L.attr(t.menuIndexAttrName)==-1}function s(L,b){return+L.attr(t.menuIndexAttrName)===b._index}function u(L,b,D,B,I,V,N,F){b.active=N,h(L.layout,t.name,b).applyUpdate("active",N),b.type==="buttons"?m(L,B,null,null,b):b.type==="dropdown"&&(I.attr(t.menuIndexAttrName,"-1"),x(L,B,I,V,b),F||m(L,B,I,V,b))}function x(L,b,D,B,I){var V=w.ensureSingle(b,"g",t.headerClassName,function(ft){ft.style("pointer-events","all")}),N=I._dims,F=I.active,U=I.buttons[F]||t.blankHeaderOpts,G={y:I.pad.t,yPad:0,x:I.pad.l,xPad:0,index:0},Y={width:N.headerWidth,height:N.headerHeight};V.call(p,I,U,L).call(d,I,G,Y);var Q=w.ensureSingle(b,"text",t.headerArrowClassName,function(ft){ft.attr("text-anchor","end").call(i.font,I.font).text(t.arrowSymbol[I.direction])});Q.attr({x:N.headerWidth-t.arrowOffsetX+I.pad.l,y:N.headerHeight/2+t.textOffsetY+I.pad.t}),V.on("click",function(){D.call(_,String(s(D,I)?-1:I._index)),m(L,b,D,B,I)}),V.on("mouseover",function(){V.call(P)}),V.on("mouseout",function(){V.call(g,I)}),i.setTranslate(b,N.lx,N.ly)}function m(L,b,D,B,I){D||(D=b,D.attr("pointer-events","all"));var V=!a(D)||I.type==="buttons"?I.buttons:[],N=I.type==="dropdown"?t.dropdownButtonClassName:t.buttonClassName,F=D.selectAll("g."+N).data(w.filterVisible(V)),U=F.enter().append("g").classed(N,!0),G=F.exit();I.type==="dropdown"?(U.attr("opacity","0").transition().attr("opacity","1"),G.transition().attr("opacity","0").remove()):G.remove();var Y=0,Q=0,ft=I._dims,ut=["up","down"].indexOf(I.direction)!==-1;I.type==="dropdown"&&(ut?Q=ft.headerHeight+t.gapButtonHeader:Y=ft.headerWidth+t.gapButtonHeader),I.type==="dropdown"&&I.direction==="up"&&(Q=-t.gapButtonHeader+t.gapButton-ft.openHeight),I.type==="dropdown"&&I.direction==="left"&&(Y=-t.gapButtonHeader+t.gapButton-ft.openWidth);var lt={x:ft.lx+Y+I.pad.l,y:ft.ly+Q+I.pad.t,yPad:t.gapButton,xPad:t.gapButton,index:0},K={l:lt.x+I.borderwidth,t:lt.y+I.borderwidth};F.each(function($,H){var at=M.select(this);at.call(p,I,$,L).call(d,I,lt),at.on("click",function(){M.event.defaultPrevented||($.execute&&($.args2&&I.active===H?(u(L,I,$,b,D,B,-1),C.executeAPICommand(L,$.method,$.args2)):(u(L,I,$,b,D,B,H),C.executeAPICommand(L,$.method,$.args))),L.emit("plotly_buttonclicked",{menu:I,button:$,active:I.active}))}),at.on("mouseover",function(){at.call(P)}),at.on("mouseout",function(){at.call(g,I),F.call(k,I)})}),F.call(k,I),ut?(K.w=Math.max(ft.openWidth,ft.headerWidth),K.h=lt.y-K.t):(K.w=lt.x-K.l,K.h=Math.max(ft.openHeight,ft.headerHeight)),K.direction=I.direction,B&&(F.size()?y(L,b,D,B,I,K):c(B))}function y(L,b,D,B,I,V){var N=I.direction,F=N==="up"||N==="down",U=I._dims,G=I.active,Y,Q,ft;if(F)for(Q=0,ft=0;ft<G;ft++)Q+=U.heights[ft]+t.gapButton;else for(Y=0,ft=0;ft<G;ft++)Y+=U.widths[ft]+t.gapButton;B.enable(V,Y,Q),B.hbar&&B.hbar.attr("opacity","0").transition().attr("opacity","1"),B.vbar&&B.vbar.attr("opacity","0").transition().attr("opacity","1")}function c(L){var b=!!L.hbar,D=!!L.vbar;b&&L.hbar.transition().attr("opacity","0").each("end",function(){b=!1,D||L.disable()}),D&&L.vbar.transition().attr("opacity","0").each("end",function(){D=!1,b||L.disable()})}function p(L,b,D,B){L.call(f,b).call(T,b,D,B)}function f(L,b){var D=w.ensureSingle(L,"rect",t.itemRectClassName,function(B){B.attr({rx:t.rx,ry:t.ry,"shape-rendering":"crispEdges"})});D.call(r.stroke,b.bordercolor).call(r.fill,b.bgcolor).style("stroke-width",b.borderwidth+"px")}function T(L,b,D,B){var I=w.ensureSingle(L,"text",t.itemTextClassName,function(F){F.attr({"text-anchor":"start","data-notex":1})}),V=D.label,N=B._fullLayout._meta;N&&(V=w.templateString(V,N)),I.call(i.font,b.font).text(V).call(S.convertToTspans,B)}function k(L,b){var D=b.active;L.each(function(B,I){var V=M.select(this);I===D&&b.showactive&&V.select("rect."+t.itemRectClassName).call(r.fill,t.activeColor)})}function P(L){L.select("rect."+t.itemRectClassName).call(r.fill,t.hoverColor)}function g(L,b){L.select("rect."+t.itemRectClassName).call(r.fill,b.bgcolor)}function A(L,b){var D=b._dims={width1:0,height1:0,heights:[],widths:[],totalWidth:0,totalHeight:0,openWidth:0,openHeight:0,lx:0,ly:0},B=i.tester.selectAll("g."+t.dropdownButtonClassName).data(w.filterVisible(b.buttons));B.enter().append("g").classed(t.dropdownButtonClassName,!0);var I=["up","down"].indexOf(b.direction)!==-1;B.each(function(Y,Q){var ft=M.select(this);ft.call(p,b,Y,L);var ut=ft.select("."+t.itemTextClassName),lt=ut.node()&&i.bBox(ut.node()).width,K=Math.max(lt+t.textPadX,t.minWidth),$=b.font.size*l,H=S.lineCount(ut),at=Math.max($*H,t.minHeight)+t.textOffsetY;at=Math.ceil(at),K=Math.ceil(K),D.widths[Q]=K,D.heights[Q]=at,D.height1=Math.max(D.height1,at),D.width1=Math.max(D.width1,K),I?(D.totalWidth=Math.max(D.totalWidth,K),D.openWidth=D.totalWidth,D.totalHeight+=at+t.gapButton,D.openHeight+=at+t.gapButton):(D.totalWidth+=K+t.gapButton,D.openWidth+=K+t.gapButton,D.totalHeight=Math.max(D.totalHeight,at),D.openHeight=D.totalHeight)}),I?D.totalHeight-=t.gapButton:D.totalWidth-=t.gapButton,D.headerWidth=D.width1+t.arrowPadX,D.headerHeight=D.height1,b.type==="dropdown"&&(I?(D.width1+=t.arrowPadX,D.totalHeight=D.height1):D.totalWidth=D.width1,D.totalWidth+=t.arrowPadX),B.remove();var V=D.totalWidth+b.pad.l+b.pad.r,N=D.totalHeight+b.pad.t+b.pad.b,F=L._fullLayout._size;D.lx=F.l+F.w*b.x,D.ly=F.t+F.h*(1-b.y);var U="left";w.isRightAnchor(b)&&(D.lx-=V,U="right"),w.isCenterAnchor(b)&&(D.lx-=V/2,U="center");var G="top";w.isBottomAnchor(b)&&(D.ly-=N,G="bottom"),w.isMiddleAnchor(b)&&(D.ly-=N/2,G="middle"),D.totalWidth=Math.ceil(D.totalWidth),D.totalHeight=Math.ceil(D.totalHeight),D.lx=Math.round(D.lx),D.ly=Math.round(D.ly),C.autoMargin(L,E(b),{x:b.x,y:b.y,l:V*({right:1,center:.5}[U]||0),r:V*({left:1,center:.5}[U]||0),b:N*({top:1,middle:.5}[G]||0),t:N*({bottom:1,middle:.5}[G]||0)})}function E(L){return t.autoMarginIdRoot+L._index}function d(L,b,D,B){B=B||{};var I=L.select("."+t.itemRectClassName),V=L.select("."+t.itemTextClassName),N=b.borderwidth,F=D.index,U=b._dims;i.setTranslate(L,N+D.x,N+D.y);var G=["up","down"].indexOf(b.direction)!==-1,Y=B.height||(G?U.heights[F]:U.height1);I.attr({x:0,y:0,width:B.width||(G?U.width1:U.widths[F]),height:Y});var Q=b.font.size*l,ft=S.lineCount(V),ut=(ft-1)*Q/2;S.positionText(V,t.textOffsetX,Y/2-ut+t.textOffsetY),G?D.y+=U.heights[F]+D.yPad:D.x+=U.widths[F]+D.xPad,D.index++}function _(L,b){L.attr(t.menuIndexAttrName,b||"-1").selectAll("g."+t.dropdownButtonClassName).remove()}},46230:function(nt,W,e){var M=e(71559);nt.exports={moduleType:"component",name:M.name,layoutAttributes:e(85389),supplyLayoutDefaults:e(42746),draw:e(40974)}},21736:function(nt,W,e){nt.exports=w;var M=e(45568),C=e(78766),r=e(62203),i=e(34809);function w(S,h,l){this.gd=S,this.container=h,this.id=l,this.position=null,this.translateX=null,this.translateY=null,this.hbar=null,this.vbar=null,this.bg=this.container.selectAll("rect.scrollbox-bg").data([0]),this.bg.exit().on(".drag",null).on("wheel",null).remove(),this.bg.enter().append("rect").classed("scrollbox-bg",!0).style("pointer-events","all").attr({opacity:0,x:0,y:0,width:0,height:0})}w.barWidth=2,w.barLength=20,w.barRadius=2,w.barPad=1,w.barColor="#808BA4",w.prototype.enable=function(S,h,l){var t=this.gd._fullLayout,n=t.width,o=t.height;this.position=S;var a=this.position.l,s=this.position.w,u=this.position.t,x=this.position.h,m=this.position.direction,y=m==="down",c=m==="left",p=m==="right",f=m==="up",T=s,k=x,P,g,A,E;!y&&!c&&!p&&!f&&(this.position.direction="down",y=!0);var d=y||f;d?(P=a,g=P+T,y?(A=u,E=Math.min(A+k,o),k=E-A):(E=u+k,A=Math.max(E-k,0),k=E-A)):(A=u,E=A+k,c?(g=a+T,P=Math.max(g-T,0),T=g-P):(P=a,g=Math.min(P+T,n),T=g-P)),this._box={l:P,t:A,w:T,h:k};var _=s>T,L=w.barLength+2*w.barPad,b=w.barWidth+2*w.barPad,D=a,B=u+x;B+b>o&&(B=o-b);var I=this.container.selectAll("rect.scrollbar-horizontal").data(_?[0]:[]);I.exit().on(".drag",null).remove(),I.enter().append("rect").classed("scrollbar-horizontal",!0).call(C.fill,w.barColor),_?(this.hbar=I.attr({rx:w.barRadius,ry:w.barRadius,x:D,y:B,width:L,height:b}),this._hbarXMin=D+L/2,this._hbarTranslateMax=T-L):(delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax);var V=x>k,N=w.barWidth+2*w.barPad,F=w.barLength+2*w.barPad,U=a+s,G=u;U+N>n&&(U=n-N);var Y=this.container.selectAll("rect.scrollbar-vertical").data(V?[0]:[]);Y.exit().on(".drag",null).remove(),Y.enter().append("rect").classed("scrollbar-vertical",!0).call(C.fill,w.barColor),V?(this.vbar=Y.attr({rx:w.barRadius,ry:w.barRadius,x:U,y:G,width:N,height:F}),this._vbarYMin=G+F/2,this._vbarTranslateMax=k-F):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var Q=this.id,ft=P-.5,ut=V?g+N+.5:g+.5,lt=A-.5,K=_?E+b+.5:E+.5,$=t._topdefs.selectAll("#"+Q).data(_||V?[0]:[]);if($.exit().remove(),$.enter().append("clipPath").attr("id",Q).append("rect"),_||V?(this._clipRect=$.select("rect").attr({x:Math.floor(ft),y:Math.floor(lt),width:Math.ceil(ut)-Math.floor(ft),height:Math.ceil(K)-Math.floor(lt)}),this.container.call(r.setClipUrl,Q,this.gd),this.bg.attr({x:a,y:u,width:s,height:x})):(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(r.setClipUrl,null),delete this._clipRect),_||V){var H=M.behavior.drag().on("dragstart",function(){M.event.sourceEvent.preventDefault()}).on("drag",this._onBoxDrag.bind(this));this.container.on("wheel",null).on("wheel",this._onBoxWheel.bind(this)).on(".drag",null).call(H);var at=M.behavior.drag().on("dragstart",function(){M.event.sourceEvent.preventDefault(),M.event.sourceEvent.stopPropagation()}).on("drag",this._onBarDrag.bind(this));_&&this.hbar.on(".drag",null).call(at),V&&this.vbar.on(".drag",null).call(at)}this.setTranslate(h,l)},w.prototype.disable=function(){(this.hbar||this.vbar)&&(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(r.setClipUrl,null),delete this._clipRect),this.hbar&&(this.hbar.on(".drag",null),this.hbar.remove(),delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax),this.vbar&&(this.vbar.on(".drag",null),this.vbar.remove(),delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax)},w.prototype._onBoxDrag=function(){var S=this.translateX,h=this.translateY;this.hbar&&(S-=M.event.dx),this.vbar&&(h-=M.event.dy),this.setTranslate(S,h)},w.prototype._onBoxWheel=function(){var S=this.translateX,h=this.translateY;this.hbar&&(S+=M.event.deltaY),this.vbar&&(h+=M.event.deltaY),this.setTranslate(S,h)},w.prototype._onBarDrag=function(){var S=this.translateX,h=this.translateY;if(this.hbar){var l=S+this._hbarXMin,t=l+this._hbarTranslateMax,n=i.constrain(M.event.x,l,t),o=(n-l)/(t-l),a=this.position.w-this._box.w;S=o*a}if(this.vbar){var s=h+this._vbarYMin,u=s+this._vbarTranslateMax,x=i.constrain(M.event.y,s,u),m=(x-s)/(u-s),y=this.position.h-this._box.h;h=m*y}this.setTranslate(S,h)},w.prototype.setTranslate=function(S,h){var l=this.position.w-this._box.w,t=this.position.h-this._box.h;if(S=i.constrain(S||0,0,l),h=i.constrain(h||0,0,t),this.translateX=S,this.translateY=h,this.container.call(r.setTranslate,this._box.l-this.position.l-S,this._box.t-this.position.t-h),this._clipRect&&this._clipRect.attr({x:Math.floor(this.position.l+S-.5),y:Math.floor(this.position.t+h-.5)}),this.hbar){var n=S/l;this.hbar.call(r.setTranslate,S+n*this._hbarTranslateMax,h)}if(this.vbar){var o=h/t;this.vbar.call(r.setTranslate,S,h+o*this._vbarTranslateMax)}}},4530:function(nt){nt.exports={FROM_BL:{left:0,center:.5,right:1,bottom:0,middle:.5,top:1},FROM_TL:{left:0,center:.5,right:1,bottom:1,middle:.5,top:0},FROM_BR:{left:1,center:.5,right:0,bottom:0,middle:.5,top:1},LINE_SPACING:1.3,CAP_SHIFT:.7,MID_SHIFT:.35,OPPOSITE_SIDE:{left:"right",right:"left",top:"bottom",bottom:"top"}}},35081:function(nt){nt.exports={axisRefDescription:function(W,e,M){return["If set to a",W,"axis id (e.g. *"+W+"* or","*"+W+"2*), the `"+W+"` position refers to a",W,"coordinate. If set to *paper*, the `"+W+"`","position refers to the distance from the",e,"of the plotting","area in normalized coordinates where *0* (*1*) corresponds to the",e,"("+M+"). If set to a",W,"axis ID followed by","*domain* (separated by a space), the position behaves like for","*paper*, but refers to the distance in fractions of the domain","length from the",e,"of the domain of that axis: e.g.,","*"+W+"2 domain* refers to the domain of the second",W," axis and a",W,"position of 0.5 refers to the","point between the",e,"and the",M,"of the domain of the","second",W,"axis."].join(" ")}}},20909:function(nt){nt.exports={INCREASING:{COLOR:"#3D9970",SYMBOL:"\u25B2"},DECREASING:{COLOR:"#FF4136",SYMBOL:"\u25BC"}}},87296:function(nt){nt.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"}},20726:function(nt){nt.exports={COMPARISON_OPS:["=","!=","<",">=",">","<="],COMPARISON_OPS2:["=","<",">=",">","<="],INTERVAL_OPS:["[]","()","[)","(]","][",")(","](",")["],SET_OPS:["{}","}{"],CONSTRAINT_REDUCTION:{"=":"=","<":"<","<=":"<",">":">",">=":">","[]":"[]","()":"[]","[)":"[]","(]":"[]","][":"][",")(":"][","](":"][",")[":"]["}}},84770:function(nt){nt.exports={solid:[[],0],dot:[[.5,1],200],dash:[[.5,1],50],longdash:[[.5,1],10],dashdot:[[.5,.625,.875,1],50],longdashdot:[[.5,.7,.8,1],10]}},49467:function(nt){nt.exports={circle:"\u25CF","circle-open":"\u25CB",square:"\u25A0","square-open":"\u25A1",diamond:"\u25C6","diamond-open":"\u25C7",cross:"+",x:"\u274C"}},20438:function(nt){nt.exports={SHOW_PLACEHOLDER:100,HIDE_PLACEHOLDER:1e3,DESELECTDIM:.2}},63821:function(nt){nt.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:.999999,LOG_CLIP:10,MINUS_SIGN:"\u2212"}},1837:function(nt,W){W.CSS_DECLARATIONS=[["image-rendering","optimizeSpeed"],["image-rendering","-moz-crisp-edges"],["image-rendering","-o-crisp-edges"],["image-rendering","-webkit-optimize-contrast"],["image-rendering","optimize-contrast"],["image-rendering","crisp-edges"],["image-rendering","pixelated"]],W.STYLE=W.CSS_DECLARATIONS.map(function(e){return e.join(": ")+"; "}).join("")},62972:function(nt,W){W.xmlns="http://www.w3.org/2000/xmlns/",W.svg="http://www.w3.org/2000/svg",W.xlink="http://www.w3.org/1999/xlink",W.svgAttrs={xmlns:W.svg,"xmlns:xlink":W.xlink}},17430:function(nt,W,e){W.version=e(29697).version,e(71116),e(6713);for(var M=e(33626),C=W.register=M.register,r=e(90742),i=Object.keys(r),w=0;w<i.length;w++){var S=i[w];S.charAt(0)!=="_"&&(W[S]=r[S]),C({moduleType:"apiMethod",name:S,fn:r[S]})}C(e(69693)),C([e(3599),e(83348),e(44844),e(43701),e(15553),e(46230),e(15359),e(55429),e(44453),e(83595),e(77901),e(88856),e(96919),e(82494),e(32141),e(95433)]),C([e(30227),e(44611)]),window.PlotlyLocales&&Array.isArray(window.PlotlyLocales)&&(C(window.PlotlyLocales),delete window.PlotlyLocales),W.Icons=e(35188);var h=e(32141),l=e(44122);W.Plots={resize:l.resize,graphJson:l.graphJson,sendDataToCloud:l.sendDataToCloud},W.Fx={hover:h.hover,unhover:h.unhover,loneHover:h.loneHover,loneUnhover:h.loneUnhover},W.Snapshot=e(6170),W.PlotSchema=e(57297)},35188:function(nt){nt.exports={undo:{width:857.1,height:1e3,path:"m857 350q0-87-34-166t-91-137-137-92-166-34q-96 0-183 41t-147 114q-4 6-4 13t5 11l76 77q6 5 14 5 9-1 13-7 41-53 100-82t126-29q58 0 110 23t92 61 61 91 22 111-22 111-61 91-92 61-110 23q-55 0-105-20t-90-57l77-77q17-16 8-38-10-23-33-23h-250q-15 0-25 11t-11 25v250q0 24 22 33 22 10 39-8l72-72q60 57 137 88t159 31q87 0 166-34t137-92 91-137 34-166z",transform:"matrix(1 0 0 -1 0 850)"},home:{width:928.6,height:1e3,path:"m786 296v-267q0-15-11-26t-25-10h-214v214h-143v-214h-214q-15 0-25 10t-11 26v267q0 1 0 2t0 2l321 264 321-264q1-1 1-4z m124 39l-34-41q-5-5-12-6h-2q-7 0-12 3l-386 322-386-322q-7-4-13-4-7 2-12 7l-35 41q-4 5-3 13t6 12l401 334q18 15 42 15t43-15l136-114v109q0 8 5 13t13 5h107q8 0 13-5t5-13v-227l122-102q5-5 6-12t-4-13z",transform:"matrix(1 0 0 -1 0 850)"},"camera-retro":{width:1e3,height:1e3,path:"m518 386q0 8-5 13t-13 5q-37 0-63-27t-26-63q0-8 5-13t13-5 12 5 5 13q0 23 16 38t38 16q8 0 13 5t5 13z m125-73q0-59-42-101t-101-42-101 42-42 101 42 101 101 42 101-42 42-101z m-572-320h858v71h-858v-71z m643 320q0 89-62 152t-152 62-151-62-63-152 63-151 151-63 152 63 62 151z m-571 358h214v72h-214v-72z m-72-107h858v143h-462l-36-71h-360v-72z m929 143v-714q0-30-21-51t-50-21h-858q-29 0-50 21t-21 51v714q0 30 21 51t50 21h858q29 0 50-21t21-51z",transform:"matrix(1 0 0 -1 0 850)"},zoombox:{width:1e3,height:1e3,path:"m1000-25l-250 251c40 63 63 138 63 218 0 224-182 406-407 406-224 0-406-182-406-406s183-406 407-406c80 0 155 22 218 62l250-250 125 125z m-812 250l0 438 437 0 0-438-437 0z m62 375l313 0 0-312-313 0 0 312z",transform:"matrix(1 0 0 -1 0 850)"},pan:{width:1e3,height:1e3,path:"m1000 350l-187 188 0-125-250 0 0 250 125 0-188 187-187-187 125 0 0-250-250 0 0 125-188-188 186-187 0 125 252 0 0-250-125 0 187-188 188 188-125 0 0 250 250 0 0-126 187 188z",transform:"matrix(1 0 0 -1 0 850)"},zoom_plus:{width:875,height:1e3,path:"m1 787l0-875 875 0 0 875-875 0z m687-500l-187 0 0-187-125 0 0 187-188 0 0 125 188 0 0 187 125 0 0-187 187 0 0-125z",transform:"matrix(1 0 0 -1 0 850)"},zoom_minus:{width:875,height:1e3,path:"m0 788l0-876 875 0 0 876-875 0z m688-500l-500 0 0 125 500 0 0-125z",transform:"matrix(1 0 0 -1 0 850)"},autoscale:{width:1e3,height:1e3,path:"m250 850l-187 0-63 0 0-62 0-188 63 0 0 188 187 0 0 62z m688 0l-188 0 0-62 188 0 0-188 62 0 0 188 0 62-62 0z m-875-938l0 188-63 0 0-188 0-62 63 0 187 0 0 62-187 0z m875 188l0-188-188 0 0-62 188 0 62 0 0 62 0 188-62 0z m-125 188l-1 0-93-94-156 156 156 156 92-93 2 0 0 250-250 0 0-2 93-92-156-156-156 156 94 92 0 2-250 0 0-250 0 0 93 93 157-156-157-156-93 94 0 0 0-250 250 0 0 0-94 93 156 157 156-157-93-93 0 0 250 0 0 250z",transform:"matrix(1 0 0 -1 0 850)"},tooltip_basic:{width:1500,height:1e3,path:"m375 725l0 0-375-375 375-374 0-1 1125 0 0 750-1125 0z",transform:"matrix(1 0 0 -1 0 850)"},tooltip_compare:{width:1125,height:1e3,path:"m187 786l0 2-187-188 188-187 0 0 937 0 0 373-938 0z m0-499l0 1-187-188 188-188 0 0 937 0 0 376-938-1z",transform:"matrix(1 0 0 -1 0 850)"},plotlylogo:{width:1542,height:1e3,path:"m0-10h182v-140h-182v140z m228 146h183v-286h-183v286z m225 714h182v-1000h-182v1000z m225-285h182v-715h-182v715z m225 142h183v-857h-183v857z m231-428h182v-429h-182v429z m225-291h183v-138h-183v138z",transform:"matrix(1 0 0 -1 0 850)"},"z-axis":{width:1e3,height:1e3,path:"m833 5l-17 108v41l-130-65 130-66c0 0 0 38 0 39 0-1 36-14 39-25 4-15-6-22-16-30-15-12-39-16-56-20-90-22-187-23-279-23-261 0-341 34-353 59 3 60 228 110 228 110-140-8-351-35-351-116 0-120 293-142 474-142 155 0 477 22 477 142 0 50-74 79-163 96z m-374 94c-58-5-99-21-99-40 0-24 65-43 144-43 79 0 143 19 143 43 0 19-42 34-98 40v216h87l-132 135-133-135h88v-216z m167 515h-136v1c16 16 31 34 46 52l84 109v54h-230v-71h124v-1c-16-17-28-32-44-51l-89-114v-51h245v72z",transform:"matrix(1 0 0 -1 0 850)"},"3d_rotate":{width:1e3,height:1e3,path:"m922 660c-5 4-9 7-14 11-359 263-580-31-580-31l-102 28 58-400c0 1 1 1 2 2 118 108 351 249 351 249s-62 27-100 42c88 83 222 183 347 122 16-8 30-17 44-27-2 1-4 2-6 4z m36-329c0 0 64 229-88 296-62 27-124 14-175-11 157-78 225-208 249-266 8-19 11-31 11-31 2 5 6 15 11 32-5-13-8-20-8-20z m-775-239c70-31 117-50 198-32-121 80-199 346-199 346l-96-15-58-12c0 0 55-226 155-287z m603 133l-317-139c0 0 4-4 19-14 7-5 24-15 24-15s-177-147-389 4c235-287 536-112 536-112l31-22 100 299-4-1z m-298-153c6-4 14-9 24-15 0 0-17 10-24 15z",transform:"matrix(1 0 0 -1 0 850)"},camera:{width:1e3,height:1e3,path:"m500 450c-83 0-150-67-150-150 0-83 67-150 150-150 83 0 150 67 150 150 0 83-67 150-150 150z m400 150h-120c-16 0-34 13-39 29l-31 93c-6 15-23 28-40 28h-340c-16 0-34-13-39-28l-31-94c-6-15-23-28-40-28h-120c-55 0-100-45-100-100v-450c0-55 45-100 100-100h800c55 0 100 45 100 100v450c0 55-45 100-100 100z m-400-550c-138 0-250 112-250 250 0 138 112 250 250 250 138 0 250-112 250-250 0-138-112-250-250-250z m365 380c-19 0-35 16-35 35 0 19 16 35 35 35 19 0 35-16 35-35 0-19-16-35-35-35z",transform:"matrix(1 0 0 -1 0 850)"},movie:{width:1e3,height:1e3,path:"m938 413l-188-125c0 37-17 71-44 94 64 38 107 107 107 187 0 121-98 219-219 219-121 0-219-98-219-219 0-61 25-117 66-156h-115c30 33 49 76 49 125 0 103-84 187-187 187s-188-84-188-187c0-57 26-107 65-141-38-22-65-62-65-109v-250c0-70 56-126 125-126h500c69 0 125 56 125 126l188-126c34 0 62 28 62 63v375c0 35-28 63-62 63z m-750 0c-69 0-125 56-125 125s56 125 125 125 125-56 125-125-56-125-125-125z m406-1c-87 0-157 70-157 157 0 86 70 156 157 156s156-70 156-156-70-157-156-157z",transform:"matrix(1 0 0 -1 0 850)"},question:{width:857.1,height:1e3,path:"m500 82v107q0 8-5 13t-13 5h-107q-8 0-13-5t-5-13v-107q0-8 5-13t13-5h107q8 0 13 5t5 13z m143 375q0 49-31 91t-77 65-95 23q-136 0-207-119-9-14 4-24l74-55q4-4 10-4 9 0 14 7 30 38 48 51 19 14 48 14 27 0 48-15t21-33q0-21-11-34t-38-25q-35-16-65-48t-29-70v-20q0-8 5-13t13-5h107q8 0 13 5t5 13q0 10 12 27t30 28q18 10 28 16t25 19 25 27 16 34 7 45z m214-107q0-117-57-215t-156-156-215-58-216 58-155 156-58 215 58 215 155 156 216 58 215-58 156-156 57-215z",transform:"matrix(1 0 0 -1 0 850)"},disk:{width:857.1,height:1e3,path:"m214-7h429v214h-429v-214z m500 0h72v500q0 8-6 21t-11 20l-157 156q-5 6-19 12t-22 5v-232q0-22-15-38t-38-16h-322q-22 0-37 16t-16 38v232h-72v-714h72v232q0 22 16 38t37 16h465q22 0 38-16t15-38v-232z m-214 518v178q0 8-5 13t-13 5h-107q-7 0-13-5t-5-13v-178q0-8 5-13t13-5h107q7 0 13 5t5 13z m357-18v-518q0-22-15-38t-38-16h-750q-23 0-38 16t-16 38v750q0 22 16 38t38 16h517q23 0 50-12t42-26l156-157q16-15 27-42t11-49z",transform:"matrix(1 0 0 -1 0 850)"},drawopenpath:{width:70,height:70,path:"M33.21,85.65a7.31,7.31,0,0,1-2.59-.48c-8.16-3.11-9.27-19.8-9.88-41.3-.1-3.58-.19-6.68-.35-9-.15-2.1-.67-3.48-1.43-3.79-2.13-.88-7.91,2.32-12,5.86L3,32.38c1.87-1.64,11.55-9.66,18.27-6.9,2.13.87,4.75,3.14,5.17,9,.17,2.43.26,5.59.36,9.25a224.17,224.17,0,0,0,1.5,23.4c1.54,10.76,4,12.22,4.48,12.4.84.32,2.79-.46,5.76-3.59L43,80.07C41.53,81.57,37.68,85.64,33.21,85.65ZM74.81,69a11.34,11.34,0,0,0,6.09-6.72L87.26,44.5,74.72,32,56.9,38.35c-2.37.86-5.57,3.42-6.61,6L38.65,72.14l8.42,8.43ZM55,46.27a7.91,7.91,0,0,1,3.64-3.17l14.8-5.3,8,8L76.11,60.6l-.06.19a6.37,6.37,0,0,1-3,3.43L48.25,74.59,44.62,71Zm16.57,7.82A6.9,6.9,0,1,0,64.64,61,6.91,6.91,0,0,0,71.54,54.09Zm-4.05,0a2.85,2.85,0,1,1-2.85-2.85A2.86,2.86,0,0,1,67.49,54.09Zm-4.13,5.22L60.5,56.45,44.26,72.7l2.86,2.86ZM97.83,35.67,84.14,22l-8.57,8.57L89.26,44.24Zm-13.69-8,8,8-2.85,2.85-8-8Z",transform:"matrix(1 0 0 1 -15 -15)"},drawclosedpath:{width:90,height:90,path:"M88.41,21.12a26.56,26.56,0,0,0-36.18,0l-2.07,2-2.07-2a26.57,26.57,0,0,0-36.18,0,23.74,23.74,0,0,0,0,34.8L48,90.12a3.22,3.22,0,0,0,4.42,0l36-34.21a23.73,23.73,0,0,0,0-34.79ZM84,51.24,50.16,83.35,16.35,51.25a17.28,17.28,0,0,1,0-25.47,20,20,0,0,1,27.3,0l4.29,4.07a3.23,3.23,0,0,0,4.44,0l4.29-4.07a20,20,0,0,1,27.3,0,17.27,17.27,0,0,1,0,25.46ZM66.76,47.68h-33v6.91h33ZM53.35,35H46.44V68h6.91Z",transform:"matrix(1 0 0 1 -5 -5)"},lasso:{width:1031,height:1e3,path:"m1018 538c-36 207-290 336-568 286-277-48-473-256-436-463 10-57 36-108 76-151-13-66 11-137 68-183 34-28 75-41 114-42l-55-70 0 0c-2-1-3-2-4-3-10-14-8-34 5-45 14-11 34-8 45 4 1 1 2 3 2 5l0 0 113 140c16 11 31 24 45 40 4 3 6 7 8 11 48-3 100 0 151 9 278 48 473 255 436 462z m-624-379c-80 14-149 48-197 96 42 42 109 47 156 9 33-26 47-66 41-105z m-187-74c-19 16-33 37-39 60 50-32 109-55 174-68-42-25-95-24-135 8z m360 75c-34-7-69-9-102-8 8 62-16 128-68 170-73 59-175 54-244-5-9 20-16 40-20 61-28 159 121 317 333 354s407-60 434-217c28-159-121-318-333-355z",transform:"matrix(1 0 0 -1 0 850)"},selectbox:{width:1e3,height:1e3,path:"m0 850l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-285l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z",transform:"matrix(1 0 0 -1 0 850)"},drawline:{width:70,height:70,path:"M60.64,62.3a11.29,11.29,0,0,0,6.09-6.72l6.35-17.72L60.54,25.31l-17.82,6.4c-2.36.86-5.57,3.41-6.6,6L24.48,65.5l8.42,8.42ZM40.79,39.63a7.89,7.89,0,0,1,3.65-3.17l14.79-5.31,8,8L61.94,54l-.06.19a6.44,6.44,0,0,1-3,3.43L34.07,68l-3.62-3.63Zm16.57,7.81a6.9,6.9,0,1,0-6.89,6.9A6.9,6.9,0,0,0,57.36,47.44Zm-4,0a2.86,2.86,0,1,1-2.85-2.85A2.86,2.86,0,0,1,53.32,47.44Zm-4.13,5.22L46.33,49.8,30.08,66.05l2.86,2.86ZM83.65,29,70,15.34,61.4,23.9,75.09,37.59ZM70,21.06l8,8-2.84,2.85-8-8ZM87,80.49H10.67V87H87Z",transform:"matrix(1 0 0 1 -15 -15)"},drawrect:{width:80,height:80,path:"M78,22V79H21V22H78m9-9H12V88H87V13ZM68,46.22H31V54H68ZM53,32H45.22V69H53Z",transform:"matrix(1 0 0 1 -10 -10)"},drawcircle:{width:80,height:80,path:"M50,84.72C26.84,84.72,8,69.28,8,50.3S26.84,15.87,50,15.87,92,31.31,92,50.3,73.16,84.72,50,84.72Zm0-60.59c-18.6,0-33.74,11.74-33.74,26.17S31.4,76.46,50,76.46,83.74,64.72,83.74,50.3,68.6,24.13,50,24.13Zm17.15,22h-34v7.11h34Zm-13.8-13H46.24v34h7.11Z",transform:"matrix(1 0 0 1 -10 -10)"},eraseshape:{width:80,height:80,path:"M82.77,78H31.85L6,49.57,31.85,21.14H82.77a8.72,8.72,0,0,1,8.65,8.77V69.24A8.72,8.72,0,0,1,82.77,78ZM35.46,69.84H82.77a.57.57,0,0,0,.49-.6V29.91a.57.57,0,0,0-.49-.61H35.46L17,49.57Zm32.68-34.7-24,24,5,5,24-24Zm-19,.53-5,5,24,24,5-5Z",transform:"matrix(1 0 0 1 -10 -10)"},spikeline:{width:1e3,height:1e3,path:"M512 409c0-57-46-104-103-104-57 0-104 47-104 104 0 57 47 103 104 103 57 0 103-46 103-103z m-327-39l92 0 0 92-92 0z m-185 0l92 0 0 92-92 0z m370-186l92 0 0 93-92 0z m0-184l92 0 0 92-92 0z",transform:"matrix(1.5 0 0 -1.5 0 850)"},pencil:{width:1792,height:1792,path:"M491 1536l91-91-235-235-91 91v107h128v128h107zm523-928q0-22-22-22-10 0-17 7l-542 542q-7 7-7 17 0 22 22 22 10 0 17-7l542-542q7-7 7-17zm-54-192l416 416-832 832h-416v-416zm683 96q0 53-37 90l-166 166-416-416 166-165q36-38 90-38 53 0 91 38l235 234q37 39 37 91z",transform:"matrix(1 0 0 1 0 1)"},newplotlylogo:{name:"newplotlylogo",svg:["<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 132 132'>","<defs>"," <style>"," .cls-0{fill:#000;}"," .cls-1{fill:#FFF;}"," .cls-2{fill:#F26;}"," .cls-3{fill:#D69;}"," .cls-4{fill:#BAC;}"," .cls-5{fill:#9EF;}"," </style>","</defs>"," <title>plotly-logomark</title>"," <g id='symbol'>"," <rect class='cls-0' x='0' y='0' width='132' height='132' rx='18' ry='18'/>"," <circle class='cls-5' cx='102' cy='30' r='6'/>"," <circle class='cls-4' cx='78' cy='30' r='6'/>"," <circle class='cls-4' cx='78' cy='54' r='6'/>"," <circle class='cls-3' cx='54' cy='30' r='6'/>"," <circle class='cls-2' cx='30' cy='30' r='6'/>"," <circle class='cls-2' cx='30' cy='54' r='6'/>"," <path class='cls-1' d='M30,72a6,6,0,0,0-6,6v24a6,6,0,0,0,12,0V78A6,6,0,0,0,30,72Z'/>"," <path class='cls-1' d='M78,72a6,6,0,0,0-6,6v24a6,6,0,0,0,12,0V78A6,6,0,0,0,78,72Z'/>"," <path class='cls-1' d='M54,48a6,6,0,0,0-6,6v48a6,6,0,0,0,12,0V54A6,6,0,0,0,54,48Z'/>"," <path class='cls-1' d='M102,48a6,6,0,0,0-6,6v48a6,6,0,0,0,12,0V54A6,6,0,0,0,102,48Z'/>"," </g>","</svg>"].join("")}}},32546:function(nt,W){W.isLeftAnchor=function(e){return e.xanchor==="left"||e.xanchor==="auto"&&e.x<=.3333333333333333},W.isCenterAnchor=function(e){return e.xanchor==="center"||e.xanchor==="auto"&&e.x>.3333333333333333&&e.x<.6666666666666666},W.isRightAnchor=function(e){return e.xanchor==="right"||e.xanchor==="auto"&&e.x>=.6666666666666666},W.isTopAnchor=function(e){return e.yanchor==="top"||e.yanchor==="auto"&&e.y>=.6666666666666666},W.isMiddleAnchor=function(e){return e.yanchor==="middle"||e.yanchor==="auto"&&e.y>.3333333333333333&&e.y<.6666666666666666},W.isBottomAnchor=function(e){return e.yanchor==="bottom"||e.yanchor==="auto"&&e.y<=.3333333333333333}},44313:function(nt,W,e){var M=e(98953),C=M.mod,r=M.modHalf,i=Math.PI,w=2*i;function S(y){return y/180*i}function h(y){return y/i*180}function l(y){return Math.abs(y[1]-y[0])>w-1e-14}function t(y,c){return r(c-y,w)}function n(y,c){return Math.abs(t(y,c))}function o(y,c){if(l(c))return!0;var p,f;c[0]<c[1]?(p=c[0],f=c[1]):(p=c[1],f=c[0]),p=C(p,w),f=C(f,w),p>f&&(f+=w);var T=C(y,w),k=T+w;return T>=p&&T<=f||k>=p&&k<=f}function a(y,c,p,f){if(!o(c,f))return!1;var T,k;return p[0]<p[1]?(T=p[0],k=p[1]):(T=p[1],k=p[0]),y>=T&&y<=k}function s(y,c,p,f,T,k,P){T=T||0,k=k||0;var g=l([p,f]),A,E,d,_,L;g?(A=0,E=i,d=w):p<f?(A=p,d=f):(A=f,d=p),y<c?(_=y,L=c):(_=c,L=y);function b(V,N){return[V*Math.cos(N)+T,k-V*Math.sin(N)]}var D=Math.abs(d-A)<=i?0:1;function B(V,N,F){return"A"+[V,V]+" "+[0,D,F]+" "+b(V,N)}var I;return g?_===null?I="M"+b(L,A)+B(L,E,0)+B(L,d,0)+"Z":I="M"+b(_,A)+B(_,E,0)+B(_,d,0)+"ZM"+b(L,A)+B(L,E,1)+B(L,d,1)+"Z":_===null?(I="M"+b(L,A)+B(L,d,0),P&&(I+="L0,0Z")):I="M"+b(_,A)+"L"+b(L,A)+B(L,d,0)+"L"+b(_,d)+B(_,A,1)+"Z",I}function u(y,c,p,f,T){return s(null,y,c,p,f,T,0)}function x(y,c,p,f,T){return s(null,y,c,p,f,T,1)}function m(y,c,p,f,T,k){return s(y,c,p,f,T,k,1)}nt.exports={deg2rad:S,rad2deg:h,angleDelta:t,angleDist:n,isFullCircle:l,isAngleInsideSector:o,isPtInsideSector:a,pathArc:u,pathSector:x,pathAnnulus:m}},87800:function(nt,W,e){var M=e(93229).decode,C=e(56174),r=Array.isArray,i=ArrayBuffer,w=DataView;function S(s){return i.isView(s)&&!(s instanceof w)}W.isTypedArray=S;function h(s){return r(s)||S(s)}W.isArrayOrTypedArray=h;function l(s){return!h(s[0])}W.isArray1D=l,W.ensureArray=function(s,u){return r(s)||(s=[]),s.length=u,s};var t={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};t.uint8c=t.u1c,t.uint8=t.u1,t.int8=t.i1,t.uint16=t.u2,t.int16=t.i2,t.uint32=t.u4,t.int32=t.i4,t.float32=t.f4,t.float64=t.f8;function n(s){return s.constructor===ArrayBuffer}W.isArrayBuffer=n,W.decodeTypedArraySpec=function(s){var u=[],x=o(s),m=x.dtype,y=t[m];if(!y)throw new Error('Error in dtype: "'+m+'"');var c=y.BYTES_PER_ELEMENT,p=x.bdata;n(p)||(p=M(p));var f=x.shape===void 0?[p.byteLength/c]:(""+x.shape).split(",");f.reverse();var T=f.length,k,P,g=+f[0],A=c*g,E=0;if(T===1)u=new y(p);else if(T===2)for(k=+f[1],P=0;P<k;P++)u[P]=new y(p,E,g),E+=A;else if(T===3){k=+f[1];for(var d=+f[2],_=0;_<d;_++)for(u[_]=[],P=0;P<k;P++)u[_][P]=new y(p,E,g),E+=A}else throw new Error("ndim: "+T+'is not supported with the shape:"'+x.shape+'"');return u.bdata=x.bdata,u.dtype=x.dtype,u.shape=f.reverse().join(","),s._inputArray=u,u},W.isTypedArraySpec=function(s){return C(s)&&s.hasOwnProperty("dtype")&&typeof s.dtype=="string"&&s.hasOwnProperty("bdata")&&(typeof s.bdata=="string"||n(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}}W.concat=function(){var s=[],u=!0,x=0,m,y,c,p,f,T,k,P;for(c=0;c<arguments.length;c++)p=arguments[c],T=p.length,T&&(y?s.push(p):(y=p,f=T),r(p)?m=!1:(u=!1,x?m!==p.constructor&&(m=!1):m=p.constructor),x+=T);if(!x)return[];if(!s.length)return y;if(u)return y.concat.apply(y,s);if(m){for(k=new m(x),k.set(y),c=0;c<s.length;c++)p=s[c],k.set(p,f),f+=p.length;return k}for(k=new Array(x),P=0;P<y.length;P++)k[P]=y[P];for(c=0;c<s.length;c++){for(p=s[c],P=0;P<p.length;P++)k[f+P]=p[P];f+=P}return k},W.maxRowLength=function(s){return a(s,Math.max,0)},W.minRowLength=function(s){return a(s,Math.min,1/0)};function a(s,u,x){if(h(s))if(h(s[0])){for(var m=x,y=0;y<s.length;y++)m=u(m,s[y].length);return m}else return s.length;return 0}},44498:function(nt,W,e){var M=e(10721),C=e(63821).BADNUM,r=/^['"%,$#\s']+|[, ]|['"%,$#\s']+$/g;nt.exports=function(i){return typeof i=="string"&&(i=i.replace(r,"")),M(i)?Number(i):C}},34823:function(nt){nt.exports=function(W){var e=W._fullLayout;e._glcanvas&&e._glcanvas.size()&&e._glcanvas.each(function(M){M.regl&&M.regl.clear({color:!0,depth:!0})})}},23493:function(nt){nt.exports=function(W){W._responsiveChartHandler&&(window.removeEventListener("resize",W._responsiveChartHandler),delete W._responsiveChartHandler)}},34220:function(nt,W,e){var M=e(10721),C=e(65657),r=e(93049).extendFlat,i=e(9829),w=e(19017),S=e(78766),h=e(20438).DESELECTDIM,l=e(35632),t=e(90694).counter,n=e(98953).modHalf,o=e(87800).isArrayOrTypedArray,a=e(87800).isTypedArraySpec,s=e(87800).decodeTypedArraySpec;W.valObjectMeta={data_array:{coerceFunction:function(x,m,y){m.set(o(x)?x:a(x)?s(x):y)}},enumerated:{coerceFunction:function(x,m,y,c){c.coerceNumber&&(x=+x),c.values.indexOf(x)===-1?m.set(y):m.set(x)},validateFunction:function(x,m){m.coerceNumber&&(x=+x);for(var y=m.values,c=0;c<y.length;c++){var p=String(y[c]);if(p.charAt(0)==="/"&&p.charAt(p.length-1)==="/"){var f=new RegExp(p.substr(1,p.length-2));if(f.test(x))return!0}else if(x===y[c])return!0}return!1}},boolean:{coerceFunction:function(x,m,y){x===!0||x===!1?m.set(x):m.set(y)}},number:{coerceFunction:function(x,m,y,c){a(x)&&(x=s(x)),!M(x)||c.min!==void 0&&x<c.min||c.max!==void 0&&x>c.max?m.set(y):m.set(+x)}},integer:{coerceFunction:function(x,m,y,c){if((c.extras||[]).indexOf(x)!==-1){m.set(x);return}a(x)&&(x=s(x)),x%1||!M(x)||c.min!==void 0&&x<c.min||c.max!==void 0&&x>c.max?m.set(y):m.set(+x)}},string:{coerceFunction:function(x,m,y,c){if(typeof x!="string"){var p=typeof x=="number";c.strict===!0||!p?m.set(y):m.set(String(x))}else c.noBlank&&!x?m.set(y):m.set(x)}},color:{coerceFunction:function(x,m,y){a(x)&&(x=s(x)),C(x).isValid()?m.set(x):m.set(y)}},colorlist:{coerceFunction:function(x,m,y){function c(p){return C(p).isValid()}!Array.isArray(x)||!x.length?m.set(y):x.every(c)?m.set(x):m.set(y)}},colorscale:{coerceFunction:function(x,m,y){m.set(w.get(x,y))}},angle:{coerceFunction:function(x,m,y){a(x)&&(x=s(x)),x==="auto"?m.set("auto"):M(x)?m.set(n(+x,360)):m.set(y)}},subplotid:{coerceFunction:function(x,m,y,c){var p=c.regex||t(y);if(typeof x=="string"&&p.test(x)){m.set(x);return}m.set(y)},validateFunction:function(x,m){var y=m.dflt;return x===y?!0:typeof x!="string"?!1:!!t(y).test(x)}},flaglist:{coerceFunction:function(x,m,y,c){if((c.extras||[]).indexOf(x)!==-1){m.set(x);return}if(typeof x!="string"){m.set(y);return}for(var p=x.split("+"),f=0;f<p.length;){var T=p[f];c.flags.indexOf(T)===-1||p.indexOf(T)<f?p.splice(f,1):f++}p.length?m.set(p.join("+")):m.set(y)}},any:{coerceFunction:function(x,m,y){x===void 0?m.set(y):m.set(a(x)?s(x):x)}},info_array:{coerceFunction:function(x,m,y,c){function p(I,V,N){var F,U={set:function(G){F=G}};return N===void 0&&(N=V.dflt),W.valObjectMeta[V.valType].coerceFunction(I,U,N,V),F}if(a(x)&&(x=s(x)),!o(x)){m.set(y);return}var f=c.dimensions===2||c.dimensions==="1-2"&&Array.isArray(x)&&o(x[0]),T=c.items,k=[],P=Array.isArray(T),g=P&&f&&o(T[0]),A=f&&P&&!g,E=P&&!A?T.length:x.length,d,_,L,b,D,B;if(y=Array.isArray(y)?y:[],f)for(d=0;d<E;d++)for(k[d]=[],L=o(x[d])?x[d]:[],A?D=T.length:P?D=T[d].length:D=L.length,_=0;_<D;_++)A?b=T[_]:P?b=T[d][_]:b=T,B=p(L[_],b,(y[d]||[])[_]),B!==void 0&&(k[d][_]=B);else for(d=0;d<E;d++)B=p(x[d],P?T[d]:T,y[d]),B!==void 0&&(k[d]=B);m.set(k)},validateFunction:function(x,m){if(!o(x))return!1;var y=m.items,c=Array.isArray(y),p=m.dimensions===2;if(!m.freeLength&&x.length!==y.length)return!1;for(var f=0;f<x.length;f++)if(p){if(!o(x[f])||!m.freeLength&&x[f].length!==y[f].length)return!1;for(var T=0;T<x[f].length;T++)if(!u(x[f][T],c?y[f][T]:y))return!1}else if(!u(x[f],c?y[f]:y))return!1;return!0}}},W.coerce=function(x,m,y,c,p){var f=l(y,c).get(),T=l(x,c),k=l(m,c),P=T.get(),g=m._template;if(P===void 0&&g&&(P=l(g,c).get(),g=0),p===void 0&&(p=f.dflt),f.arrayOk){if(o(P))return k.set(P),P;if(a(P))return P=s(P),k.set(P),P}var A=W.valObjectMeta[f.valType].coerceFunction;A(P,k,p,f);var E=k.get();return g&&E===p&&!u(P,f)&&(P=l(g,c).get(),A(P,k,p,f),E=k.get()),E},W.coerce2=function(x,m,y,c,p){var f=l(x,c),T=W.coerce(x,m,y,c,p),k=f.get();return k!=null?T:!1},W.coerceFont=function(x,m,y,c){c||(c={}),y=r({},y),y=r(y,c.overrideDflt||{});var p={family:x(m+".family",y.family),size:x(m+".size",y.size),color:x(m+".color",y.color),weight:x(m+".weight",y.weight),style:x(m+".style",y.style)};if(c.noFontVariant||(p.variant=x(m+".variant",y.variant)),c.noFontLineposition||(p.lineposition=x(m+".lineposition",y.lineposition)),c.noFontTextcase||(p.textcase=x(m+".textcase",y.textcase)),!c.noFontShadow){var f=y.shadow;f==="none"&&c.autoShadowDflt&&(f="auto"),p.shadow=x(m+".shadow",f)}return p},W.coercePattern=function(x,m,y,c){var p=x(m+".shape");if(p){x(m+".solidity"),x(m+".size");var f=x(m+".fillmode"),T=f==="overlay";if(!c){var k=x(m+".bgcolor",T?y:void 0);x(m+".fgcolor",T?S.contrast(k):y)}x(m+".fgopacity",T?.5:1)}},W.coerceHoverinfo=function(x,m,y){var c=m._module.attributes,p=c.hoverinfo?c:i,f=p.hoverinfo,T;if(y._dataLength===1){var k=f.dflt==="all"?f.flags.slice():f.dflt.split("+");k.splice(k.indexOf("name"),1),T=k.join("+")}return W.coerce(x,m,p,"hoverinfo",T)},W.coerceSelectionMarkerOpacity=function(x,m){if(x.marker){var y=x.marker.opacity;if(y!==void 0){var c,p;!o(y)&&!x.selected&&!x.unselected&&(c=y,p=h*y),m("selected.marker.opacity",c),m("unselected.marker.opacity",p)}}};function u(x,m){var y=W.valObjectMeta[m.valType];if(m.arrayOk&&o(x))return!0;if(y.validateFunction)return y.validateFunction(x,m);var c={},p=c,f={set:function(T){p=T}};return y.coerceFunction(x,f,c,m),p!==c}W.validate=u},92596:function(nt,W,e){var M=e(42696).DC,C=e(10721),r=e(48636),i=e(98953).mod,w=e(63821),S=w.BADNUM,h=w.ONEDAY,l=w.ONEHOUR,t=w.ONEMIN,n=w.ONESEC,o=w.EPOCHJD,a=e(33626),s=e(42696).aL,u=/^\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,x=/^\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,m=new Date().getFullYear()-70;function y(I){return I&&a.componentsRegistry.calendars&&typeof I=="string"&&I!=="gregorian"}W.dateTick0=function(I,V){var N=c(I,!!V);if(V<2)return N;var F=W.dateTime2ms(N,I);return F+=h*(V-1),W.ms2DateTime(F,0,I)};function c(I,V){return y(I)?V?a.getComponentMethod("calendars","CANONICAL_SUNDAY")[I]:a.getComponentMethod("calendars","CANONICAL_TICK")[I]:V?"2000-01-02":"2000-01-01"}W.dfltRange=function(I){return y(I)?a.getComponentMethod("calendars","DFLTRANGE")[I]:["2000-01-01","2001-01-01"]},W.isJSDate=function(I){return typeof I=="object"&&I!==null&&typeof I.getTime=="function"};var p,f;W.dateTime2ms=function(I,V){if(W.isJSDate(I)){var N=I.getTimezoneOffset()*t,F=(I.getUTCMinutes()-I.getMinutes())*t+(I.getUTCSeconds()-I.getSeconds())*n+(I.getUTCMilliseconds()-I.getMilliseconds());if(F){var U=3*t;N=N-U/2+i(F-N+U/2,U)}return I=Number(I)-N,I>=p&&I<=f?I:S}if(typeof I!="string"&&typeof I!="number")return S;I=String(I);var G=y(V),Y=I.charAt(0);G&&(Y==="G"||Y==="g")&&(I=I.substr(1),V="");var Q=G&&V.substr(0,7)==="chinese",ft=I.match(Q?x:u);if(!ft)return S;var ut=ft[1],lt=ft[3]||"1",K=Number(ft[5]||1),$=Number(ft[7]||0),H=Number(ft[9]||0),at=Number(ft[11]||0);if(G){if(ut.length===2)return S;ut=Number(ut);var ct;try{var et=a.getComponentMethod("calendars","getCal")(V);if(Q){var Z=lt.charAt(lt.length-1)==="i";lt=parseInt(lt,10),ct=et.newDate(ut,et.toMonthIndex(ut,lt,Z),K)}else ct=et.newDate(ut,Number(lt),K)}catch{return S}return ct?(ct.toJD()-o)*h+$*l+H*t+at*n:S}ut.length===2?ut=(Number(ut)+2e3-m)%100+m:ut=Number(ut),lt-=1;var ot=new Date(Date.UTC(2e3,lt,K,$,H));return ot.setUTCFullYear(ut),ot.getUTCMonth()!==lt||ot.getUTCDate()!==K?S:ot.getTime()+at*n},p=W.MIN_MS=W.dateTime2ms("-9999"),f=W.MAX_MS=W.dateTime2ms("9999-12-31 23:59:59.9999"),W.isDateTime=function(I,V){return W.dateTime2ms(I,V)!==S};function T(I,V){return String(I+Math.pow(10,V)).substr(1)}var k=90*h,P=3*l,g=5*t;W.ms2DateTime=function(I,V,N){if(typeof I!="number"||!(I>=p&&I<=f))return S;V||(V=0);var F=Math.floor(i(I+.05,1)*10),U=Math.round(I-F/10),G,Y,Q,ft,ut,lt;if(y(N)){var K=Math.floor(U/h)+o,$=Math.floor(i(I,h));try{G=a.getComponentMethod("calendars","getCal")(N).fromJD(K).formatDate("yyyy-mm-dd")}catch{G=s("G%Y-%m-%d")(new Date(U))}if(G.charAt(0)==="-")for(;G.length<11;)G="-0"+G.substr(1);else for(;G.length<10;)G="0"+G;Y=V<k?Math.floor($/l):0,Q=V<k?Math.floor($%l/t):0,ft=V<P?Math.floor($%t/n):0,ut=V<g?$%n*10+F:0}else lt=new Date(U),G=s("%Y-%m-%d")(lt),Y=V<k?lt.getUTCHours():0,Q=V<k?lt.getUTCMinutes():0,ft=V<P?lt.getUTCSeconds():0,ut=V<g?lt.getUTCMilliseconds()*10+F:0;return A(G,Y,Q,ft,ut)},W.ms2DateTimeLocal=function(I){if(!(I>=p+h&&I<=f-h))return S;var V=Math.floor(i(I+.05,1)*10),N=new Date(Math.round(I-V/10)),F=M("%Y-%m-%d")(N),U=N.getHours(),G=N.getMinutes(),Y=N.getSeconds(),Q=N.getUTCMilliseconds()*10+V;return A(F,U,G,Y,Q)};function A(I,V,N,F,U){if((V||N||F||U)&&(I+=" "+T(V,2)+":"+T(N,2),(F||U)&&(I+=":"+T(F,2),U))){for(var G=4;U%10===0;)G-=1,U/=10;I+="."+T(U,G)}return I}W.cleanDate=function(I,V,N){if(I===S)return V;if(W.isJSDate(I)||typeof I=="number"&&isFinite(I)){if(y(N))return r.error("JS Dates and milliseconds are incompatible with world calendars",I),V;if(I=W.ms2DateTimeLocal(+I),!I&&V!==void 0)return V}else if(!W.isDateTime(I,N))return r.error("unrecognized date",I),V;return I};var E=/%\d?f/g,d=/%h/g,_={1:"1",2:"1",3:"2",4:"2"};function L(I,V,N,F){I=I.replace(E,function(G){var Y=Math.min(+G.charAt(1)||6,6),Q=(V/1e3%1+2).toFixed(Y).substr(2).replace(/0+$/,"")||"0";return Q});var U=new Date(Math.floor(V+.05));if(I=I.replace(d,function(){return _[N("%q")(U)]}),y(F))try{I=a.getComponentMethod("calendars","worldCalFmt")(I,V,F)}catch{return"Invalid"}return N(I)(U)}var b=[59,59.9,59.99,59.999,59.9999];function D(I,V){var N=i(I+.05,h),F=T(Math.floor(N/l),2)+":"+T(i(Math.floor(N/t),60),2);if(V!=="M"){C(V)||(V=0);var U=Math.min(i(I/n,60),b[V]),G=(100+U).toFixed(V).substr(1);V>0&&(G=G.replace(/0+$/,"").replace(/[\.]$/,"")),F+=":"+G}return F}W.formatDate=function(I,V,N,F,U,G){if(U=y(U)&&U,!V)if(N==="y")V=G.year;else if(N==="m")V=G.month;else if(N==="d")V=G.dayMonth+`
1
+ import{r as op,p as Yg,g as Kg,O as Jg,C as Ug,ac as Wc,S as Gd,aL as Vg,ad as sp,ae as Qg,ag as t1,af as e1,aM as r1,aN as n1,ah as i1,aj as a1,M as o1,aO as w0,j as qg,F as Gg,aP as s1}from"./index-C1elUt1E.js";import{F as l1}from"./FormClearHelper-BtlF8Otx.js";import{w as c1,u as u1,E as h1}from"./withFullScreenWrapper-Cn2wnMdj.js";var Zg={},Xg={};(function(zn){function ua(s){"@babel/helpers - typeof";return ua=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(u){return typeof u}:function(u){return u&&typeof Symbol=="function"&&u.constructor===Symbol&&u!==Symbol.prototype?"symbol":typeof u},ua(s)}Object.defineProperty(zn,"__esModule",{value:!0}),zn.default=a;var so=nt(op),Va=Qa(Yg);function Qa(s){return s&&s.__esModule?s:{default:s}}function gs(s){if(typeof WeakMap!="function")return null;var u=new WeakMap,x=new WeakMap;return(gs=function(m){return m?x:u})(s)}function nt(s,u){if(s&&s.__esModule)return s;if(s===null||ua(s)!=="object"&&typeof s!="function")return{default:s};var x=gs(u);if(x&&x.has(s))return x.get(s);var m={},y=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in s)if(c!=="default"&&Object.prototype.hasOwnProperty.call(s,c)){var p=y?Object.getOwnPropertyDescriptor(s,c):null;p&&(p.get||p.set)?Object.defineProperty(m,c,p):m[c]=s[c]}return m.default=s,x&&x.set(s,m),m}function W(s,u){if(!(s instanceof u))throw new TypeError("Cannot call a class as a function")}function e(s,u){for(var x=0;x<u.length;x++){var m=u[x];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(s,m.key,m)}}function M(s,u,x){return e(s.prototype,u),Object.defineProperty(s,"prototype",{writable:!1}),s}function C(s,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");s.prototype=Object.create(u&&u.prototype,{constructor:{value:s,writable:!0,configurable:!0}}),Object.defineProperty(s,"prototype",{writable:!1}),u&&r(s,u)}function r(s,u){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(x,m){return x.__proto__=m,x},r(s,u)}function i(s){var u=h();return function(){var x=l(s),m;if(u){var y=l(this).constructor;m=Reflect.construct(x,arguments,y)}else m=x.apply(this,arguments);return w(this,m)}}function w(s,u){if(u&&(ua(u)==="object"||typeof u=="function"))return u;if(u!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return S(s)}function S(s){if(s===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s}function h(){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 l(s){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(u){return u.__proto__||Object.getPrototypeOf(u)},l(s)}var t=["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"],n=["plotly_restyle","plotly_redraw","plotly_relayout","plotly_relayouting","plotly_doubleclick","plotly_animated","plotly_sunburstclick"],o=typeof window<"u";function a(s){var u=function(x){C(y,x);var m=i(y);function y(c){var p;return W(this,y),p=m.call(this,c),p.p=Promise.resolve(),p.resizeHandler=null,p.handlers={},p.syncWindowResize=p.syncWindowResize.bind(S(p)),p.syncEventHandlers=p.syncEventHandlers.bind(S(p)),p.attachUpdateEvents=p.attachUpdateEvents.bind(S(p)),p.getRef=p.getRef.bind(S(p)),p.handleUpdate=p.handleUpdate.bind(S(p)),p.figureCallback=p.figureCallback.bind(S(p)),p.updatePlotly=p.updatePlotly.bind(S(p)),p}return M(y,[{key:"updatePlotly",value:function(c,p,f){var T=this;this.p=this.p.then(function(){if(!T.unmounting){if(!T.el)throw new Error("Missing element reference");return s.react(T.el,{data:T.props.data,layout:T.props.layout,config:T.props.config,frames:T.props.frames})}}).then(function(){T.unmounting||(T.syncWindowResize(c),T.syncEventHandlers(),T.figureCallback(p),f&&T.attachUpdateEvents())}).catch(function(k){T.props.onError&&T.props.onError(k)})}},{key:"componentDidMount",value:function(){this.unmounting=!1,this.updatePlotly(!0,this.props.onInitialized,!0)}},{key:"componentDidUpdate",value:function(c){this.unmounting=!1;var p=c.frames&&c.frames.length?c.frames.length:0,f=this.props.frames&&this.props.frames.length?this.props.frames.length:0,T=!(c.layout===this.props.layout&&c.data===this.props.data&&c.config===this.props.config&&f===p),k=c.revision!==void 0,P=c.revision!==this.props.revision;!T&&(!k||k&&!P)||this.updatePlotly(!1,this.props.onUpdate,!1)}},{key:"componentWillUnmount",value:function(){this.unmounting=!0,this.figureCallback(this.props.onPurge),this.resizeHandler&&o&&(window.removeEventListener("resize",this.resizeHandler),this.resizeHandler=null),this.removeUpdateEvents(),s.purge(this.el)}},{key:"attachUpdateEvents",value:function(){var c=this;!this.el||!this.el.removeListener||n.forEach(function(p){c.el.on(p,c.handleUpdate)})}},{key:"removeUpdateEvents",value:function(){var c=this;!this.el||!this.el.removeListener||n.forEach(function(p){c.el.removeListener(p,c.handleUpdate)})}},{key:"handleUpdate",value:function(){this.figureCallback(this.props.onUpdate)}},{key:"figureCallback",value:function(c){if(typeof c=="function"){var p=this.el,f=p.data,T=p.layout,k=this.el._transitionData?this.el._transitionData._frames:null,P={data:f,layout:T,frames:k};c(P,this.el)}}},{key:"syncWindowResize",value:function(c){var p=this;o&&(this.props.useResizeHandler&&!this.resizeHandler?(this.resizeHandler=function(){return s.Plots.resize(p.el)},window.addEventListener("resize",this.resizeHandler),c&&this.resizeHandler()):!this.props.useResizeHandler&&this.resizeHandler&&(window.removeEventListener("resize",this.resizeHandler),this.resizeHandler=null))}},{key:"getRef",value:function(c){this.el=c,this.props.debug&&o&&(window.gd=this.el)}},{key:"syncEventHandlers",value:function(){var c=this;t.forEach(function(p){var f=c.props["on"+p],T=c.handlers[p],k=!!T;f&&!k?c.addEventHandler(p,f):!f&&k?c.removeEventHandler(p):f&&k&&f!==T&&(c.removeEventHandler(p),c.addEventHandler(p,f))})}},{key:"addEventHandler",value:function(c,p){this.handlers[c]=p,this.el.on(this.getPlotlyEventName(c),this.handlers[c])}},{key:"removeEventHandler",value:function(c){this.el.removeListener(this.getPlotlyEventName(c),this.handlers[c]),delete this.handlers[c]}},{key:"getPlotlyEventName",value:function(c){return"plotly_"+c.toLowerCase()}},{key:"render",value:function(){return so.default.createElement("div",{id:this.props.divId,style:this.props.style,ref:this.getRef,className:this.props.className})}}]),y}(so.Component);return u.propTypes={data:Va.default.arrayOf(Va.default.object),config:Va.default.object,layout:Va.default.object,frames:Va.default.arrayOf(Va.default.object),revision:Va.default.number,onInitialized:Va.default.func,onPurge:Va.default.func,onError:Va.default.func,onUpdate:Va.default.func,debug:Va.default.bool,style:Va.default.object,className:Va.default.string,useResizeHandler:Va.default.bool,divId:Va.default.string},t.forEach(function(x){u.propTypes["on"+x]=Va.default.func}),u.defaultProps={debug:!1,useResizeHandler:!1,data:[],style:{position:"relative",display:"inline-block"}},u}})(Xg);var Wg={exports:{}};(function(zn,ua){(function(so,Va){zn.exports=Va()})(self,function(){return function(){var so={6713:function(nt,W,e){var M=e(34809),C={"X,X div":'direction:ltr;font-family:"Open Sans",verdana,arial,sans-serif;margin:0;padding:0;',"X input,X button":'font-family:"Open Sans",verdana,arial,sans-serif;',"X input:focus,X button:focus":"outline:none;","X a":"text-decoration:none;","X a:hover":"text-decoration:none;","X .crisp":"shape-rendering:crispEdges;","X .user-select-none":"-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none;","X svg":"overflow:hidden;","X svg a":"fill:#447adb;","X svg a:hover":"fill:#3c6dc5;","X .main-svg":"position:absolute;top:0;left:0;pointer-events:none;","X .main-svg .draglayer":"pointer-events:all;","X .cursor-default":"cursor:default;","X .cursor-pointer":"cursor:pointer;","X .cursor-crosshair":"cursor:crosshair;","X .cursor-move":"cursor:move;","X .cursor-col-resize":"cursor:col-resize;","X .cursor-row-resize":"cursor:row-resize;","X .cursor-ns-resize":"cursor:ns-resize;","X .cursor-ew-resize":"cursor:ew-resize;","X .cursor-sw-resize":"cursor:sw-resize;","X .cursor-s-resize":"cursor:s-resize;","X .cursor-se-resize":"cursor:se-resize;","X .cursor-w-resize":"cursor:w-resize;","X .cursor-e-resize":"cursor:e-resize;","X .cursor-nw-resize":"cursor:nw-resize;","X .cursor-n-resize":"cursor:n-resize;","X .cursor-ne-resize":"cursor:ne-resize;","X .cursor-grab":"cursor:-webkit-grab;cursor:grab;","X .modebar":"position:absolute;top:2px;right:2px;","X .ease-bg":"-webkit-transition:background-color .3s ease 0s;-moz-transition:background-color .3s ease 0s;-ms-transition:background-color .3s ease 0s;-o-transition:background-color .3s ease 0s;transition:background-color .3s ease 0s;","X .modebar--hover>:not(.watermark)":"opacity:0;-webkit-transition:opacity .3s ease 0s;-moz-transition:opacity .3s ease 0s;-ms-transition:opacity .3s ease 0s;-o-transition:opacity .3s ease 0s;transition:opacity .3s ease 0s;","X:hover .modebar--hover .modebar-group":"opacity:1;","X .modebar-group":"float:left;display:inline-block;box-sizing:border-box;padding-left:8px;position:relative;vertical-align:middle;white-space:nowrap;","X .modebar-btn":"position:relative;font-size:16px;padding:3px 4px;height:22px;cursor:pointer;line-height:normal;box-sizing:border-box;","X .modebar-btn svg":"position:relative;top:2px;","X .modebar.vertical":"display:flex;flex-direction:column;flex-wrap:wrap;align-content:flex-end;max-height:100%;","X .modebar.vertical svg":"top:-1px;","X .modebar.vertical .modebar-group":"display:block;float:none;padding-left:0px;padding-bottom:8px;","X .modebar.vertical .modebar-group .modebar-btn":"display:block;text-align:center;","X [data-title]:before,X [data-title]:after":"position:absolute;-webkit-transform:translate3d(0, 0, 0);-moz-transform:translate3d(0, 0, 0);-ms-transform:translate3d(0, 0, 0);-o-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);display:none;opacity:0;z-index:1001;pointer-events:none;top:110%;right:50%;","X [data-title]:hover:before,X [data-title]:hover:after":"display:block;opacity:1;","X [data-title]:before":'content:"";position:absolute;background:rgba(0,0,0,0);border:6px solid rgba(0,0,0,0);z-index:1002;margin-top:-12px;border-bottom-color:#69738a;margin-right:-6px;',"X [data-title]:after":"content:attr(data-title);background:#69738a;color:#fff;padding:8px 10px;font-size:12px;line-height:12px;white-space:nowrap;margin-right:-18px;border-radius:2px;","X .vertical [data-title]:before,X .vertical [data-title]:after":"top:0%;right:200%;","X .vertical [data-title]:before":"border:6px solid rgba(0,0,0,0);border-left-color:#69738a;margin-top:8px;margin-right:-30px;",Y:'font-family:"Open Sans",verdana,arial,sans-serif;position:fixed;top:50px;right:20px;z-index:10000;font-size:10pt;max-width:180px;',"Y p":"margin:0;","Y .notifier-note":"min-width:180px;max-width:250px;border:1px solid #fff;z-index:3000;margin:0;background-color:#8c97af;background-color:rgba(140,151,175,.9);color:#fff;padding:10px;overflow-wrap:break-word;word-wrap:break-word;-ms-hyphens:auto;-webkit-hyphens:auto;hyphens:auto;","Y .notifier-close":"color:#fff;opacity:.8;float:right;padding:0 5px;background:none;border:none;font-size:20px;font-weight:bold;line-height:20px;","Y .notifier-close:hover":"color:#444;text-decoration:none;cursor:pointer;"};for(var r in C){var i=r.replace(/^,/," ,").replace(/X/g,".js-plotly-plot .plotly").replace(/Y/g,".plotly-notifier");M.addStyleRule(i,C[r])}},14187:function(nt,W,e){nt.exports=e(47908)},20273:function(nt,W,e){nt.exports=e(58218)},6457:function(nt,W,e){nt.exports=e(89362)},15849:function(nt,W,e){nt.exports=e(53794)},38847:function(nt,W,e){nt.exports=e(29698)},7659:function(nt,W,e){nt.exports=e(51252)},60089:function(nt,W,e){nt.exports=e(48050)},22084:function(nt,W,e){nt.exports=e(58075)},35892:function(nt,W,e){nt.exports=e(9419)},81204:function(nt,W,e){nt.exports=e(28128)},55857:function(nt,W,e){nt.exports=e(47050)},12862:function(nt,W,e){nt.exports=e(91405)},97629:function(nt,W,e){nt.exports=e(34406)},67549:function(nt,W,e){nt.exports=e(17430)},2660:function(nt,W,e){nt.exports=e(91995)},86071:function(nt,W,e){nt.exports=e(81264)},66200:function(nt,W,e){nt.exports=e(42849)},53446:function(nt,W,e){nt.exports=e(52213)},86899:function(nt,W,e){nt.exports=e(91132)},13430:function(nt,W,e){nt.exports=e(50453)},21548:function(nt,W,e){nt.exports=e(29251)},53939:function(nt,W,e){nt.exports=e(72892)},1902:function(nt,W,e){nt.exports=e(74461)},29096:function(nt,W,e){nt.exports=e(66143)},23820:function(nt,W,e){nt.exports=e(81955)},82017:function(nt,W,e){nt.exports=e(36858)},113:function(nt,W,e){nt.exports=e(92106)},20260:function(nt,W,e){var M=e(67549);M.register([e(20273),e(15849),e(21548),e(1902),e(29096),e(23820),e(12862),e(1639),e(10067),e(53446),e(31014),e(113),e(78170),e(8202),e(92382),e(82017),e(86899),e(54357),e(66903),e(90594),e(71680),e(7412),e(55857),e(784),e(74221),e(22084),e(44001),e(97281),e(12345),e(53939),e(29117),e(5410),e(5057),e(81204),e(86071),e(14226),e(35892),e(2660),e(96599),e(28573),e(76832),e(60089),e(51469),e(97629),e(27700),e(7659),e(11780),e(27195),e(6457),e(84639),e(14187),e(66200),e(13430),e(90590),e(38847)]),nt.exports=M},28573:function(nt,W,e){nt.exports=e(25638)},90594:function(nt,W,e){nt.exports=e(75297)},7412:function(nt,W,e){nt.exports=e(58859)},27700:function(nt,W,e){nt.exports=e(12683)},5410:function(nt,W,e){nt.exports=e(6305)},29117:function(nt,W,e){nt.exports=e(83910)},78170:function(nt,W,e){nt.exports=e(49913)},12345:function(nt,W,e){nt.exports=e(15186)},96599:function(nt,W,e){nt.exports=e(71760)},54357:function(nt,W,e){nt.exports=e(17822)},51469:function(nt,W,e){nt.exports=e(56534)},74221:function(nt,W,e){nt.exports=e(18070)},44001:function(nt,W,e){nt.exports=e(52378)},14226:function(nt,W,e){nt.exports=e(30929)},5057:function(nt,W,e){nt.exports=e(83866)},11780:function(nt,W,e){nt.exports=e(66939)},27195:function(nt,W,e){nt.exports=e(23748)},84639:function(nt,W,e){nt.exports=e(73304)},1639:function(nt,W,e){nt.exports=e(12864)},90590:function(nt,W,e){nt.exports=e(99855)},97281:function(nt,W,e){nt.exports=e(91450)},784:function(nt,W,e){nt.exports=e(51943)},8202:function(nt,W,e){nt.exports=e(80809)},66903:function(nt,W,e){nt.exports=e(95984)},76832:function(nt,W,e){nt.exports=e(51671)},92382:function(nt,W,e){nt.exports=e(47181)},10067:function(nt,W,e){nt.exports=e(37276)},71680:function(nt,W,e){nt.exports=e(75703)},31014:function(nt,W,e){nt.exports=e(38261)},11645:function(nt){nt.exports=[{path:"",backoff:0},{path:"M-2.4,-3V3L0.6,0Z",backoff:.6},{path:"M-3.7,-2.5V2.5L1.3,0Z",backoff:1.3},{path:"M-4.45,-3L-1.65,-0.2V0.2L-4.45,3L1.55,0Z",backoff:1.55},{path:"M-2.2,-2.2L-0.2,-0.2V0.2L-2.2,2.2L-1.4,3L1.6,0L-1.4,-3Z",backoff:1.6},{path:"M-4.4,-2.1L-0.6,-0.2V0.2L-4.4,2.1L-4,3L2,0L-4,-3Z",backoff:2},{path:"M2,0A2,2 0 1,1 0,-2A2,2 0 0,1 2,0Z",backoff:0,noRotate:!0},{path:"M2,2V-2H-2V2Z",backoff:0,noRotate:!0}]},50222:function(nt,W,e){var M=e(11645),C=e(80337),r=e(54826),i=e(78032).templatedArray;e(35081),nt.exports=i("annotation",{visible:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},text:{valType:"string",editType:"calc+arraydraw"},textangle:{valType:"angle",dflt:0,editType:"calc+arraydraw"},font:C({editType:"calc+arraydraw",colorEditType:"arraydraw"}),width:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},height:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},align:{valType:"enumerated",values:["left","center","right"],dflt:"center",editType:"arraydraw"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"arraydraw"},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},bordercolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},borderpad:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},borderwidth:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},showarrow:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},arrowcolor:{valType:"color",editType:"arraydraw"},arrowhead:{valType:"integer",min:0,max:M.length,dflt:1,editType:"arraydraw"},startarrowhead:{valType:"integer",min:0,max:M.length,dflt:1,editType:"arraydraw"},arrowside:{valType:"flaglist",flags:["end","start"],extras:["none"],dflt:"end",editType:"arraydraw"},arrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},startarrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},arrowwidth:{valType:"number",min:.1,editType:"calc+arraydraw"},standoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},startstandoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},ax:{valType:"any",editType:"calc+arraydraw"},ay:{valType:"any",editType:"calc+arraydraw"},axref:{valType:"enumerated",dflt:"pixel",values:["pixel",r.idRegex.x.toString()],editType:"calc"},ayref:{valType:"enumerated",dflt:"pixel",values:["pixel",r.idRegex.y.toString()],editType:"calc"},xref:{valType:"enumerated",values:["paper",r.idRegex.x.toString()],editType:"calc"},x:{valType:"any",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},xshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},yref:{valType:"enumerated",values:["paper",r.idRegex.y.toString()],editType:"calc"},y:{valType:"any",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"auto",editType:"calc+arraydraw"},yshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},clicktoshow:{valType:"enumerated",values:[!1,"onoff","onout"],dflt:!1,editType:"arraydraw"},xclick:{valType:"any",editType:"arraydraw"},yclick:{valType:"any",editType:"arraydraw"},hovertext:{valType:"string",editType:"arraydraw"},hoverlabel:{bgcolor:{valType:"color",editType:"arraydraw"},bordercolor:{valType:"color",editType:"arraydraw"},font:C({editType:"arraydraw"}),editType:"arraydraw"},captureevents:{valType:"boolean",editType:"arraydraw"},editType:"calc",_deprecated:{ref:{valType:"string",editType:"calc"}}})},60317:function(nt,W,e){var M=e(34809),C=e(29714),r=e(3377).draw;nt.exports=function(S){var h=S._fullLayout,l=M.filterVisible(h.annotations);if(l.length&&S._fullData.length)return M.syncOrAsync([r,i],S)};function i(S){var h=S._fullLayout;M.filterVisible(h.annotations).forEach(function(l){var t=C.getFromId(S,l.xref),n=C.getFromId(S,l.yref),o=C.getRefType(l.xref),a=C.getRefType(l.yref);l._extremes={},o==="range"&&w(l,t),a==="range"&&w(l,n)})}function w(S,h){var l=h._id,t=l.charAt(0),n=S[t],o=S["a"+t],a=S[t+"ref"],s=S["a"+t+"ref"],u=S["_"+t+"padplus"],x=S["_"+t+"padminus"],m={x:1,y:-1}[t]*S[t+"shift"],y=3*S.arrowsize*S.arrowwidth||0,c=y+m,p=y-m,f=3*S.startarrowsize*S.arrowwidth||0,T=f+m,k=f-m,P;if(s===a){var g=C.findExtremes(h,[h.r2c(n)],{ppadplus:c,ppadminus:p}),A=C.findExtremes(h,[h.r2c(o)],{ppadplus:Math.max(u,T),ppadminus:Math.max(x,k)});P={min:[g.min[0],A.min[0]],max:[g.max[0],A.max[0]]}}else T=o?T+o:T,k=o?k-o:k,P=C.findExtremes(h,[h.r2c(n)],{ppadplus:Math.max(u,c,T),ppadminus:Math.max(x,p,k)});S._extremes[l]=P}},6035:function(nt,W,e){var M=e(34809),C=e(33626),r=e(78032).arrayEditor;nt.exports={hasClickToShow:i,onClick:w};function i(l,t){var n=S(l,t);return n.on.length>0||n.explicitOff.length>0}function w(l,t){var n=S(l,t),o=n.on,a=n.off.concat(n.explicitOff),s={},u=l._fullLayout.annotations,x,m;if(o.length||a.length){for(x=0;x<o.length;x++)m=r(l.layout,"annotations",u[o[x]]),m.modifyItem("visible",!0),M.extendFlat(s,m.getUpdateObj());for(x=0;x<a.length;x++)m=r(l.layout,"annotations",u[a[x]]),m.modifyItem("visible",!1),M.extendFlat(s,m.getUpdateObj());return C.call("update",l,{},s)}}function S(l,t){var n=l._fullLayout.annotations,o=[],a=[],s=[],u=(t||[]).length,x,m,y,c,p,f,T,k;for(x=0;x<n.length;x++)if(y=n[x],c=y.clicktoshow,c){for(m=0;m<u;m++)if(p=t[m],f=p.xaxis,T=p.yaxis,f._id===y.xref&&T._id===y.yref&&f.d2r(p.x)===h(y._xclick,f)&&T.d2r(p.y)===h(y._yclick,T)){y.visible?c==="onout"?k=a:k=s:k=o,k.push(x);break}m===u&&y.visible&&c==="onout"&&a.push(x)}return{on:o,off:a,explicitOff:s}}function h(l,t){return t.type==="log"?t.l2r(l):t.d2r(l)}},53271:function(nt,W,e){var M=e(34809),C=e(78766);nt.exports=function(r,i,w,S){S("opacity");var h=S("bgcolor"),l=S("bordercolor"),t=C.opacity(l);S("borderpad");var n=S("borderwidth"),o=S("showarrow");S("text",o?" ":w._dfltTitle.annotation),S("textangle"),M.coerceFont(S,"font",w.font),S("width"),S("align");var a=S("height");if(a&&S("valign"),o){var s=S("arrowside"),u,x;s.indexOf("end")!==-1&&(u=S("arrowhead"),x=S("arrowsize")),s.indexOf("start")!==-1&&(S("startarrowhead",u),S("startarrowsize",x)),S("arrowcolor",t?i.bordercolor:C.defaultLine),S("arrowwidth",(t&&n||1)*2),S("standoff"),S("startstandoff")}var m=S("hovertext"),y=w.hoverlabel||{};if(m){var c=S("hoverlabel.bgcolor",y.bgcolor||(C.opacity(h)?C.rgb(h):C.defaultLine)),p=S("hoverlabel.bordercolor",y.bordercolor||C.contrast(c)),f=M.extendFlat({},y.font);f.color||(f.color=p),M.coerceFont(S,"hoverlabel.font",f)}S("captureevents",!!m)}},59741:function(nt,W,e){var M=e(10721),C=e(8083);nt.exports=function(r,i,w,S){i=i||{};var h=w==="log"&&i.type==="linear",l=w==="linear"&&i.type==="log";if(!(h||l))return;var t=r._fullLayout.annotations,n=i._id.charAt(0),o,a;function s(x){var m=o[x],y=null;h?y=C(m,i.range):y=Math.pow(10,m),M(y)||(y=null),S(a+x,y)}for(var u=0;u<t.length;u++)o=t[u],a="annotations["+u+"].",o[n+"ref"]===i._id&&s(n),o["a"+n+"ref"]===i._id&&s("a"+n)}},63737:function(nt,W,e){var M=e(34809),C=e(29714),r=e(59008),i=e(53271),w=e(50222);nt.exports=function(h,l){r(h,l,{name:"annotations",handleItemDefaults:S})};function S(h,l,t){function n(E,d){return M.coerce(h,l,w,E,d)}var o=n("visible"),a=n("clicktoshow");if(o||a){i(h,l,t,n);for(var s=l.showarrow,u=["x","y"],x=[-10,-30],m={_fullLayout:t},y=0;y<2;y++){var c=u[y],p=C.coerceRef(h,l,m,c,"","paper");if(p!=="paper"){var f=C.getFromId(m,p);f._annIndices.push(l._index)}if(C.coercePosition(l,m,n,p,c,.5),s){var T="a"+c,k=C.coerceRef(h,l,m,T,"pixel",["pixel","paper"]);k!=="pixel"&&k!==p&&(k=l[T]="pixel");var P=k==="pixel"?x[y]:.4;C.coercePosition(l,m,n,k,T,P)}n(c+"anchor"),n(c+"shift")}if(M.noneOrAll(h,l,["x","y"]),s&&M.noneOrAll(h,l,["ax","ay"]),a){var g=n("xclick"),A=n("yclick");l._xclick=g===void 0?l.x:C.cleanPosition(g,m,l.xref),l._yclick=A===void 0?l.y:C.cleanPosition(A,m,l.yref)}}}},3377:function(nt,W,e){var M=e(45568),C=e(33626),r=e(44122),i=e(34809),w=i.strTranslate,S=e(29714),h=e(78766),l=e(62203),t=e(32141),n=e(30635),o=e(27983),a=e(14751),s=e(78032).arrayEditor,u=e(23768);nt.exports={draw:x,drawOne:m,drawRaw:c};function x(p){var f=p._fullLayout;f._infolayer.selectAll(".annotation").remove();for(var T=0;T<f.annotations.length;T++)f.annotations[T].visible&&m(p,T);return r.previousPromises(p)}function m(p,f){var T=p._fullLayout,k=T.annotations[f]||{},P=S.getFromId(p,k.xref),g=S.getFromId(p,k.yref);P&&P.setScale(),g&&g.setScale(),c(p,k,f,!1,P,g)}function y(p,f,T,k,P){var g=P[T],A=P[T+"ref"],E=T.indexOf("y")!==-1,d=S.getRefType(A)==="domain",_=E?k.h:k.w;return p?d?g+(E?-f:f)/p._length:p.p2r(p.r2p(g)+f):g+(E?-f:f)/_}function c(p,f,T,k,P,g){var A=p._fullLayout,E=p._fullLayout._size,d=p._context.edits,_,L;k?(_="annotation-"+k,L=k+".annotations"):(_="annotation",L="annotations");var b=s(p.layout,L,f),D=b.modifyBase,B=b.modifyItem,I=b.getUpdateObj;A._infolayer.selectAll("."+_+'[data-index="'+T+'"]').remove();var V="clip"+A._uid+"_ann"+T;if(!f._input||f.visible===!1){M.selectAll("#"+V).remove();return}var N={x:{},y:{}},F=+f.textangle||0,U=A._infolayer.append("g").classed(_,!0).attr("data-index",String(T)).style("opacity",f.opacity),G=U.append("g").classed("annotation-text-g",!0),Y=d[f.showarrow?"annotationTail":"annotationPosition"],Q=f.captureevents||d.annotationText||Y;function ft(xt){var At={index:T,annotation:f._input,fullAnnotation:f,event:xt};return k&&(At.subplotId=k),At}var ut=G.append("g").style("pointer-events",Q?"all":null).call(o,"pointer").on("click",function(){p._dragging=!1,p.emit("plotly_clickannotation",ft(M.event))});f.hovertext&&ut.on("mouseover",function(){var xt=f.hoverlabel,At=xt.font,St=this.getBoundingClientRect(),Nt=p.getBoundingClientRect();t.loneHover({x0:St.left-Nt.left,x1:St.right-Nt.left,y:(St.top+St.bottom)/2-Nt.top,text:f.hovertext,color:xt.bgcolor,borderColor:xt.bordercolor,fontFamily:At.family,fontSize:At.size,fontColor:At.color,fontWeight:At.weight,fontStyle:At.style,fontVariant:At.variant,fontShadow:At.fontShadow,fontLineposition:At.fontLineposition,fontTextcase:At.fontTextcase},{container:A._hoverlayer.node(),outerContainer:A._paper.node(),gd:p})}).on("mouseout",function(){t.loneUnhover(A._hoverlayer.node())});var lt=f.borderwidth,K=f.borderpad,$=lt+K,H=ut.append("rect").attr("class","bg").style("stroke-width",lt+"px").call(h.stroke,f.bordercolor).call(h.fill,f.bgcolor),at=f.width||f.height,ct=A._topclips.selectAll("#"+V).data(at?[0]:[]);ct.enter().append("clipPath").classed("annclip",!0).attr("id",V).append("rect"),ct.exit().remove();var et=f.font,Z=A._meta?i.templateString(f.text,A._meta):f.text,ot=ut.append("text").classed("annotation-text",!0).text(Z);function st(xt){return xt.call(l.font,et).attr({"text-anchor":{left:"start",right:"end"}[f.align]||"middle"}),n.convertToTspans(xt,p,dt),xt}function dt(){var xt=ot.selectAll("a");if(xt.size()===1&&xt.text()===ot.text()){var At=ut.insert("a",":first-child").attr({"xlink:xlink:href":xt.attr("xlink:href"),"xlink:xlink:show":xt.attr("xlink:show")}).style({cursor:"pointer"});At.node().appendChild(H.node())}var St=ut.select(".annotation-text-math-group"),Nt=!St.empty(),Wt=l.bBox((Nt?St:ot).node()),Vt=Wt.width,jt=Wt.height,Dt=f.width||Vt,kt=f.height||jt,Bt=Math.round(Dt+2*$),Ot=Math.round(kt+2*$);function Ht(ar,Ye){return Ye==="auto"&&(ar<.3333333333333333?Ye="left":ar>.6666666666666666?Ye="right":Ye="center"),{center:0,middle:0,left:.5,bottom:-.5,right:-.5,top:.5}[Ye]}for(var ye=!1,Qt=["x","y"],_e=0;_e<Qt.length;_e++){var ie=Qt[_e],Ae=f[ie+"ref"]||ie,Pe=f["a"+ie+"ref"],Oe={x:P,y:g}[ie],je=(F+(ie==="x"?0:-90))*Math.PI/180,Le=Bt*Math.cos(je),Ie=Ot*Math.sin(je),Ut=Math.abs(Le)+Math.abs(Ie),ee=f[ie+"anchor"],Kt=f[ie+"shift"]*(ie==="x"?1:-1),ne=N[ie],zt,qt,Zt,ae,vt,Mt=S.getRefType(Ae);if(Oe&&Mt!=="domain"){var Lt=Oe.r2fraction(f[ie]);(Lt<0||Lt>1)&&(Pe===Ae?(Lt=Oe.r2fraction(f["a"+ie]),(Lt<0||Lt>1)&&(ye=!0)):ye=!0),zt=Oe._offset+Oe.r2p(f[ie]),ae=.5}else{var $t=Mt==="domain";ie==="x"?(Zt=f[ie],zt=$t?Oe._offset+Oe._length*Zt:zt=E.l+E.w*Zt):(Zt=1-f[ie],zt=$t?Oe._offset+Oe._length*Zt:zt=E.t+E.h*Zt),ae=f.showarrow?.5:Zt}if(f.showarrow){ne.head=zt;var ge=f["a"+ie];if(vt=Le*Ht(.5,f.xanchor)-Ie*Ht(.5,f.yanchor),Pe===Ae){var de=S.getRefType(Pe);de==="domain"?(ie==="y"&&(ge=1-ge),ne.tail=Oe._offset+Oe._length*ge):de==="paper"?ie==="y"?(ge=1-ge,ne.tail=E.t+E.h*ge):ne.tail=E.l+E.w*ge:ne.tail=Oe._offset+Oe.r2p(ge),qt=vt}else ne.tail=zt+ge,qt=vt+ge;ne.text=ne.tail+vt;var sr=A[ie==="x"?"width":"height"];if(Ae==="paper"&&(ne.head=i.constrain(ne.head,1,sr-1)),Pe==="pixel"){var mr=-Math.max(ne.tail-3,ne.text),Ve=Math.min(ne.tail+3,ne.text)-sr;mr>0?(ne.tail+=mr,ne.text+=mr):Ve>0&&(ne.tail-=Ve,ne.text-=Ve)}ne.tail+=Kt,ne.head+=Kt}else vt=Ut*Ht(ae,ee),qt=vt,ne.text=zt+vt;ne.text+=Kt,vt+=Kt,qt+=Kt,f["_"+ie+"padplus"]=Ut/2+qt,f["_"+ie+"padminus"]=Ut/2-qt,f["_"+ie+"size"]=Ut,f["_"+ie+"shift"]=vt}if(ye){ut.remove();return}var le=0,pe=0;if(f.align!=="left"&&(le=(Dt-Vt)*(f.align==="center"?.5:1)),f.valign!=="top"&&(pe=(kt-jt)*(f.valign==="middle"?.5:1)),Nt)St.select("svg").attr({x:$+le-1,y:$+pe}).call(l.setClipUrl,at?V:null,p);else{var Te=$+pe-Wt.top,Yt=$+le-Wt.left;ot.call(n.positionText,Yt,Te).call(l.setClipUrl,at?V:null,p)}ct.select("rect").call(l.setRect,$,$,Dt,kt),H.call(l.setRect,lt/2,lt/2,Bt-lt,Ot-lt),ut.call(l.setTranslate,Math.round(N.x.text-Bt/2),Math.round(N.y.text-Ot/2)),G.attr({transform:"rotate("+F+","+N.x.text+","+N.y.text+")"});var Ee=function(ar,Ye){U.selectAll(".annotation-arrow-g").remove();var Jt=N.x.head,ue=N.y.head,Se=N.x.tail+ar,De=N.y.tail+Ye,Ze=N.x.text+ar,nr=N.y.text+Ye,Ke=i.rotationXYMatrix(F,Ze,nr),er=i.apply2DTransform(Ke),xr=i.apply2DTransform2(Ke),Sr=+H.attr("width"),Cr=+H.attr("height"),Er=Ze-.5*Sr,Lr=Er+Sr,Ur=nr-.5*Cr,zr=Ur+Cr,te=[[Er,Ur,Er,zr],[Er,zr,Lr,zr],[Lr,zr,Lr,Ur],[Lr,Ur,Er,Ur]].map(xr);if(!te.reduce(function(Xr,Dn){return Xr^!!i.segmentsIntersect(Jt,ue,Jt+1e6,ue+1e6,Dn[0],Dn[1],Dn[2],Dn[3])},!1)){te.forEach(function(Xr){var Dn=i.segmentsIntersect(Se,De,Jt,ue,Xr[0],Xr[1],Xr[2],Xr[3]);Dn&&(Se=Dn.x,De=Dn.y)});var he=f.arrowwidth,Je=f.arrowcolor,br=f.arrowside,pr=U.append("g").style({opacity:h.opacity(Je)}).classed("annotation-arrow-g",!0),We=pr.append("path").attr("d","M"+Se+","+De+"L"+Jt+","+ue).style("stroke-width",he+"px").call(h.stroke,h.rgb(Je));if(u(We,br,f),d.annotationPosition&&We.node().parentNode&&!k){var hr=Jt,Ar=ue;if(f.standoff){var yr=Math.sqrt(Math.pow(Jt-Se,2)+Math.pow(ue-De,2));hr+=f.standoff*(Se-Jt)/yr,Ar+=f.standoff*(De-ue)/yr}var dr=pr.append("path").classed("annotation-arrow",!0).classed("anndrag",!0).classed("cursor-move",!0).attr({d:"M3,3H-3V-3H3ZM0,0L"+(Se-hr)+","+(De-Ar),transform:w(hr,Ar)}).style("stroke-width",he+6+"px").call(h.stroke,"rgba(0,0,0,0)").call(h.fill,"rgba(0,0,0,0)"),Rr,Qr;a.init({element:dr.node(),gd:p,prepFn:function(){var Xr=l.getTranslate(ut);Rr=Xr.x,Qr=Xr.y,P&&P.autorange&&D(P._name+".autorange",!0),g&&g.autorange&&D(g._name+".autorange",!0)},moveFn:function(Xr,Dn){var on=er(Rr,Qr),Hn=on[0]+Xr,Fn=on[1]+Dn;ut.call(l.setTranslate,Hn,Fn),B("x",y(P,Xr,"x",E,f)),B("y",y(g,Dn,"y",E,f)),f.axref===f.xref&&B("ax",y(P,Xr,"ax",E,f)),f.ayref===f.yref&&B("ay",y(g,Dn,"ay",E,f)),pr.attr("transform",w(Xr,Dn)),G.attr({transform:"rotate("+F+","+Hn+","+Fn+")"})},doneFn:function(){C.call("_guiRelayout",p,I());var Xr=document.querySelector(".js-notes-box-panel");Xr&&Xr.redraw(Xr.selectedObj)}})}}};if(f.showarrow&&Ee(0,0),Y){var Ne;a.init({element:ut.node(),gd:p,prepFn:function(){Ne=G.attr("transform")},moveFn:function(ar,Ye){var Jt="pointer";if(f.showarrow)f.axref===f.xref?B("ax",y(P,ar,"ax",E,f)):B("ax",f.ax+ar),f.ayref===f.yref?B("ay",y(g,Ye,"ay",E.w,f)):B("ay",f.ay+Ye),Ee(ar,Ye);else{if(k)return;var ue,Se;if(P)ue=y(P,ar,"x",E,f);else{var De=f._xsize/E.w,Ze=f.x+(f._xshift-f.xshift)/E.w-De/2;ue=a.align(Ze+ar/E.w,De,0,1,f.xanchor)}if(g)Se=y(g,Ye,"y",E,f);else{var nr=f._ysize/E.h,Ke=f.y-(f._yshift+f.yshift)/E.h-nr/2;Se=a.align(Ke-Ye/E.h,nr,0,1,f.yanchor)}B("x",ue),B("y",Se),(!P||!g)&&(Jt=a.getCursor(P?.5:ue,g?.5:Se,f.xanchor,f.yanchor))}G.attr({transform:w(ar,Ye)+Ne}),o(ut,Jt)},clickFn:function(ar,Ye){f.captureevents&&p.emit("plotly_clickannotation",ft(Ye))},doneFn:function(){o(ut),C.call("_guiRelayout",p,I());var ar=document.querySelector(".js-notes-box-panel");ar&&ar.redraw(ar.selectedObj)}})}}d.annotationText?ot.call(n.makeEditable,{delegate:ut,gd:p}).call(st).on("edit",function(xt){f.text=xt,this.call(st),B("text",xt),P&&P.autorange&&D(P._name+".autorange",!0),g&&g.autorange&&D(g._name+".autorange",!0),C.call("_guiRelayout",p,I())}):ot.call(st)}},23768:function(nt,W,e){var M=e(45568),C=e(78766),r=e(11645),i=e(34809),w=i.strScale,S=i.strRotate,h=i.strTranslate;nt.exports=function(l,t,n){var o=l.node(),a=r[n.arrowhead||0],s=r[n.startarrowhead||0],u=(n.arrowwidth||1)*(n.arrowsize||1),x=(n.arrowwidth||1)*(n.startarrowsize||1),m=t.indexOf("start")>=0,y=t.indexOf("end")>=0,c=a.backoff*u+n.standoff,p=s.backoff*x+n.startstandoff,f,T,k,P;if(o.nodeName==="line"){f={x:+l.attr("x1"),y:+l.attr("y1")},T={x:+l.attr("x2"),y:+l.attr("y2")};var g=f.x-T.x,A=f.y-T.y;if(k=Math.atan2(A,g),P=k+Math.PI,c&&p&&c+p>Math.sqrt(g*g+A*A)){U();return}if(c){if(c*c>g*g+A*A){U();return}var E=c*Math.cos(k),d=c*Math.sin(k);T.x+=E,T.y+=d,l.attr({x2:T.x,y2:T.y})}if(p){if(p*p>g*g+A*A){U();return}var _=p*Math.cos(k),L=p*Math.sin(k);f.x-=_,f.y-=L,l.attr({x1:f.x,y1:f.y})}}else if(o.nodeName==="path"){var b=o.getTotalLength(),D="";if(b<c+p){U();return}var B=o.getPointAtLength(0),I=o.getPointAtLength(.1);k=Math.atan2(B.y-I.y,B.x-I.x),f=o.getPointAtLength(Math.min(p,b)),D="0px,"+p+"px,";var V=o.getPointAtLength(b),N=o.getPointAtLength(b-.1);P=Math.atan2(V.y-N.y,V.x-N.x),T=o.getPointAtLength(Math.max(0,b-c));var F=D?p+c:c;D+=b-F+"px,"+b+"px",l.style("stroke-dasharray",D)}function U(){l.style("stroke-dasharray","0px,100px")}function G(Y,Q,ft,ut){Y.path&&(Y.noRotate&&(ft=0),M.select(o.parentNode).append("path").attr({class:l.attr("class"),d:Y.path,transform:h(Q.x,Q.y)+S(ft*180/Math.PI)+w(ut)}).style({fill:C.rgb(n.arrowcolor),"stroke-width":0}))}m&&G(s,f,k,x),y&&G(a,T,P,u)}},3599:function(nt,W,e){var M=e(3377),C=e(6035);nt.exports={moduleType:"component",name:"annotations",layoutAttributes:e(50222),supplyLayoutDefaults:e(63737),includeBasePlot:e(20706)("annotations"),calcAutorange:e(60317),draw:M.draw,drawOne:M.drawOne,drawRaw:M.drawRaw,hasClickToShow:C.hasClickToShow,onClick:C.onClick,convertCoords:e(59741)}},38239:function(nt,W,e){var M=e(50222),C=e(13582).overrideAll,r=e(78032).templatedArray;nt.exports=C(r("annotation",{visible:M.visible,x:{valType:"any"},y:{valType:"any"},z:{valType:"any"},ax:{valType:"number"},ay:{valType:"number"},xanchor:M.xanchor,xshift:M.xshift,yanchor:M.yanchor,yshift:M.yshift,text:M.text,textangle:M.textangle,font:M.font,width:M.width,height:M.height,opacity:M.opacity,align:M.align,valign:M.valign,bgcolor:M.bgcolor,bordercolor:M.bordercolor,borderpad:M.borderpad,borderwidth:M.borderwidth,showarrow:M.showarrow,arrowcolor:M.arrowcolor,arrowhead:M.arrowhead,startarrowhead:M.startarrowhead,arrowside:M.arrowside,arrowsize:M.arrowsize,startarrowsize:M.startarrowsize,arrowwidth:M.arrowwidth,standoff:M.standoff,startstandoff:M.startstandoff,hovertext:M.hovertext,hoverlabel:M.hoverlabel,captureevents:M.captureevents}),"calc","from-root")},47979:function(nt,W,e){var M=e(34809),C=e(29714);nt.exports=function(i){for(var w=i.fullSceneLayout,S=w.annotations,h=0;h<S.length;h++)r(S[h],i);i.fullLayout._infolayer.selectAll(".annotation-"+i.id).remove()};function r(i,w){var S=w.fullSceneLayout,h=S.domain,l=w.fullLayout._size,t={pdata:null,type:"linear",autorange:!1,range:[-1/0,1/0]};i._xa={},M.extendFlat(i._xa,t),C.setConvert(i._xa),i._xa._offset=l.l+h.x[0]*l.w,i._xa.l2p=function(){return .5*(1+i._pdata[0]/i._pdata[3])*l.w*(h.x[1]-h.x[0])},i._ya={},M.extendFlat(i._ya,t),C.setConvert(i._ya),i._ya._offset=l.t+(1-h.y[1])*l.h,i._ya.l2p=function(){return .5*(1-i._pdata[1]/i._pdata[3])*l.h*(h.y[1]-h.y[0])}}},34232:function(nt,W,e){var M=e(34809),C=e(29714),r=e(59008),i=e(53271),w=e(38239);nt.exports=function(h,l,t){r(h,l,{name:"annotations",handleItemDefaults:S,fullLayout:t.fullLayout})};function S(h,l,t,n){function o(u,x){return M.coerce(h,l,w,u,x)}function a(u){var x=u+"axis",m={_fullLayout:{}};return m._fullLayout[x]=t[x],C.coercePosition(l,m,o,u,u,.5)}var s=o("visible");s&&(i(h,l,n.fullLayout,o),a("x"),a("y"),a("z"),M.noneOrAll(h,l,["x","y","z"]),l.xref="x",l.yref="y",l.zref="z",o("xanchor"),o("yanchor"),o("xshift"),o("yshift"),l.showarrow&&(l.axref="pixel",l.ayref="pixel",o("ax",-10),o("ay",-30),M.noneOrAll(h,l,["ax","ay"])))}},9756:function(nt,W,e){var M=e(3377).drawRaw,C=e(25802),r=["x","y","z"];nt.exports=function(i){for(var w=i.fullSceneLayout,S=i.dataScale,h=w.annotations,l=0;l<h.length;l++){for(var t=h[l],n=!1,o=0;o<3;o++){var a=r[o],s=t[a],u=w[a+"axis"],x=u.r2fraction(s);if(x<0||x>1){n=!0;break}}n?i.fullLayout._infolayer.select(".annotation-"+i.id+'[data-index="'+l+'"]').remove():(t._pdata=C(i.glplot.cameraParams,[w.xaxis.r2l(t.x)*S[0],w.yaxis.r2l(t.y)*S[1],w.zaxis.r2l(t.z)*S[2]]),M(i.graphDiv,t,l,i.id,t._xa,t._ya))}}},83348:function(nt,W,e){var M=e(33626),C=e(34809);nt.exports={moduleType:"component",name:"annotations3d",schema:{subplots:{scene:{annotations:e(38239)}}},layoutAttributes:e(38239),handleDefaults:e(34232),includeBasePlot:r,convert:e(47979),draw:e(9756)};function r(i,w){var S=M.subplotsRegistry.gl3d;if(S)for(var h=S.attrRegex,l=Object.keys(i),t=0;t<l.length;t++){var n=l[t];h.test(n)&&(i[n].annotations||[]).length&&(C.pushUnique(w._basePlotModules,S),C.pushUnique(w._subplots.gl3d,n))}}},37177:function(nt,W,e){nt.exports=e(24453),e(23428),e(1401),e(72210),e(28569),e(81133),e(78295),e(25512),e(42645),e(62324),e(91662),e(66445),e(50506),e(84756),e(41858),e(57985)},29698:function(nt,W,e){var M=e(37177),C=e(34809),r=e(63821),i=r.EPOCHJD,w=r.ONEDAY,S={valType:"enumerated",values:C.sortObjectKeys(M.calendars),editType:"calc",dflt:"gregorian"},h=function(P,g,A,E){var d={};return d[A]=S,C.coerce(P,g,d,A,E)},l=function(P,g,A,E){for(var d=0;d<A.length;d++)h(P,g,A[d]+"calendar",E.calendar)},t={chinese:"2000-01-01",coptic:"2000-01-01",discworld:"2000-01-01",ethiopian:"2000-01-01",hebrew:"5000-01-01",islamic:"1000-01-01",julian:"2000-01-01",mayan:"5000-01-01",nanakshahi:"1000-01-01",nepali:"2000-01-01",persian:"1000-01-01",jalali:"1000-01-01",taiwan:"1000-01-01",thai:"2000-01-01",ummalqura:"1400-01-01"},n={chinese:"2000-01-02",coptic:"2000-01-03",discworld:"2000-01-03",ethiopian:"2000-01-05",hebrew:"5000-01-01",islamic:"1000-01-02",julian:"2000-01-03",mayan:"5000-01-01",nanakshahi:"1000-01-05",nepali:"2000-01-05",persian:"1000-01-01",jalali:"1000-01-01",taiwan:"1000-01-04",thai:"2000-01-04",ummalqura:"1400-01-06"},o={chinese:["2000-01-01","2001-01-01"],coptic:["1700-01-01","1701-01-01"],discworld:["1800-01-01","1801-01-01"],ethiopian:["2000-01-01","2001-01-01"],hebrew:["5700-01-01","5701-01-01"],islamic:["1400-01-01","1401-01-01"],julian:["2000-01-01","2001-01-01"],mayan:["5200-01-01","5201-01-01"],nanakshahi:["0500-01-01","0501-01-01"],nepali:["2000-01-01","2001-01-01"],persian:["1400-01-01","1401-01-01"],jalali:["1400-01-01","1401-01-01"],taiwan:["0100-01-01","0101-01-01"],thai:["2500-01-01","2501-01-01"],ummalqura:["1400-01-01","1401-01-01"]},a="##",s={d:{0:"dd","-":"d"},e:{0:"d","-":"d"},a:{0:"D","-":"D"},A:{0:"DD","-":"DD"},j:{0:"oo","-":"o"},W:{0:"ww","-":"w"},m:{0:"mm","-":"m"},b:{0:"M","-":"M"},B:{0:"MM","-":"MM"},y:{0:"yy","-":"yy"},Y:{0:"yyyy","-":"yyyy"},U:a,w:a,c:{0:"D M d %X yyyy","-":"D M d %X yyyy"},x:{0:"mm/dd/yyyy","-":"mm/dd/yyyy"}};function u(P,g,A){for(var E=Math.floor((g+.05)/w)+i,d=m(A).fromJD(E),_=0,L,b,D,B,I;(_=P.indexOf("%",_))!==-1;)L=P.charAt(_+1),L==="0"||L==="-"||L==="_"?(D=3,b=P.charAt(_+2),L==="_"&&(L="-")):(b=L,L="0",D=2),B=s[b],B?(B===a?I=a:I=d.formatDate(B[L]),P=P.substr(0,_)+I+P.substr(_+D),_+=I.length):_+=D;return P}var x={};function m(P){var g=x[P];return g||(g=x[P]=M.instance(P),g)}function y(P){return C.extendFlat({},S,{description:P})}function c(P){return"Sets the calendar system to use with `"+P+"` date data."}var p={xcalendar:y(c("x"))},f=C.extendFlat({},p,{ycalendar:y(c("y"))}),T=C.extendFlat({},f,{zcalendar:y(c("z"))}),k=y(["Sets the calendar system to use for `range` and `tick0`","if this is a date axis. This does not set the calendar for","interpreting data on this axis, that's specified in the trace","or via the global `layout.calendar`"].join(" "));nt.exports={moduleType:"component",name:"calendars",schema:{traces:{scatter:f,bar:f,box:f,heatmap:f,contour:f,histogram:f,histogram2d:f,histogram2dcontour:f,scatter3d:T,surface:T,mesh3d:T,scattergl:f,ohlc:p,candlestick:p},layout:{calendar:y(["Sets the default calendar system to use for interpreting and","displaying dates throughout the plot."].join(" "))},subplots:{xaxis:{calendar:k},yaxis:{calendar:k},scene:{xaxis:{calendar:k},yaxis:{calendar:k},zaxis:{calendar:k}},polar:{radialaxis:{calendar:k}}},transforms:{filter:{valuecalendar:y(["WARNING: All transforms are deprecated and may be removed from the API in next major version.","Sets the calendar system to use for `value`, if it is a date."].join(" ")),targetcalendar:y(["WARNING: All transforms are deprecated and may be removed from the API in next major version.","Sets the calendar system to use for `target`, if it is an","array of dates. If `target` is a string (eg *x*) we use the","corresponding trace attribute (eg `xcalendar`) if it exists,","even if `targetcalendar` is provided."].join(" "))}}},layoutAttributes:S,handleDefaults:h,handleTraceDefaults:l,CANONICAL_SUNDAY:n,CANONICAL_TICK:t,DFLTRANGE:o,getCal:m,worldCalFmt:u}},10229:function(nt,W){W.defaults=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"],W.defaultLine="#444",W.lightLine="#eee",W.background="#fff",W.borderLine="#BEC8D9",W.lightFraction=90.9090909090909},78766:function(nt,W,e){var M=e(65657),C=e(10721),r=e(87800).isTypedArray,i=nt.exports={},w=e(10229);i.defaults=w.defaults;var S=i.defaultLine=w.defaultLine;i.lightLine=w.lightLine;var h=i.background=w.background;i.tinyRGB=function(t){var n=t.toRgb();return"rgb("+Math.round(n.r)+", "+Math.round(n.g)+", "+Math.round(n.b)+")"},i.rgb=function(t){return i.tinyRGB(M(t))},i.opacity=function(t){return t?M(t).getAlpha():0},i.addOpacity=function(t,n){var o=M(t).toRgb();return"rgba("+Math.round(o.r)+", "+Math.round(o.g)+", "+Math.round(o.b)+", "+n+")"},i.combine=function(t,n){var o=M(t).toRgb();if(o.a===1)return M(t).toRgbString();var a=M(n||h).toRgb(),s=a.a===1?a:{r:255*(1-a.a)+a.r*a.a,g:255*(1-a.a)+a.g*a.a,b:255*(1-a.a)+a.b*a.a},u={r:s.r*(1-o.a)+o.r*o.a,g:s.g*(1-o.a)+o.g*o.a,b:s.b*(1-o.a)+o.b*o.a};return M(u).toRgbString()},i.interpolate=function(t,n,o){var a=M(t).toRgb(),s=M(n).toRgb(),u={r:o*a.r+(1-o)*s.r,g:o*a.g+(1-o)*s.g,b:o*a.b+(1-o)*s.b};return M(u).toRgbString()},i.contrast=function(t,n,o){var a=M(t);a.getAlpha()!==1&&(a=M(i.combine(t,h)));var s=a.isDark()?n?a.lighten(n):h:o?a.darken(o):S;return s.toString()},i.stroke=function(t,n){var o=M(n);t.style({stroke:i.tinyRGB(o),"stroke-opacity":o.getAlpha()})},i.fill=function(t,n){var o=M(n);t.style({fill:i.tinyRGB(o),"fill-opacity":o.getAlpha()})},i.clean=function(t){if(!(!t||typeof t!="object")){var n=Object.keys(t),o,a,s,u;for(o=0;o<n.length;o++)if(s=n[o],u=t[s],s.substr(s.length-5)==="color")if(Array.isArray(u))for(a=0;a<u.length;a++)u[a]=l(u[a]);else t[s]=l(u);else if(s.substr(s.length-10)==="colorscale"&&Array.isArray(u))for(a=0;a<u.length;a++)Array.isArray(u[a])&&(u[a][1]=l(u[a][1]));else if(Array.isArray(u)){var x=u[0];if(!Array.isArray(x)&&x&&typeof x=="object")for(a=0;a<u.length;a++)i.clean(u[a])}else u&&typeof u=="object"&&!r(u)&&i.clean(u)}};function l(t){if(C(t)||typeof t!="string")return t;var n=t.trim();if(n.substr(0,3)!=="rgb")return t;var o=n.match(/^rgba?\s*\(([^()]*)\)$/);if(!o)return t;var a=o[1].trim().split(/\s*[\s,]\s*/),s=n.charAt(3)==="a"&&a.length===4;if(!s&&a.length!==3)return t;for(var u=0;u<a.length;u++){if(!a[u].length||(a[u]=Number(a[u]),!(a[u]>=0)))return t;if(u===3)a[u]>1&&(a[u]=1);else if(a[u]>=1)return t}var x=Math.round(a[0]*255)+", "+Math.round(a[1]*255)+", "+Math.round(a[2]*255);return s?"rgba("+x+", "+a[3]+")":"rgb("+x+")"}},25158:function(nt,W,e){var M=e(25829),C=e(80337),r=e(93049).extendFlat,i=e(13582).overrideAll;nt.exports=i({orientation:{valType:"enumerated",values:["h","v"],dflt:"v"},thicknessmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"pixels"},thickness:{valType:"number",min:0,dflt:30},lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction"},len:{valType:"number",min:0,dflt:1},x:{valType:"number"},xref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},xanchor:{valType:"enumerated",values:["left","center","right"]},xpad:{valType:"number",min:0,dflt:10},y:{valType:"number"},yref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},yanchor:{valType:"enumerated",values:["top","middle","bottom"]},ypad:{valType:"number",min:0,dflt:10},outlinecolor:M.linecolor,outlinewidth:M.linewidth,bordercolor:M.linecolor,borderwidth:{valType:"number",min:0,dflt:0},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},tickmode:M.minor.tickmode,nticks:M.nticks,tick0:M.tick0,dtick:M.dtick,tickvals:M.tickvals,ticktext:M.ticktext,ticks:r({},M.ticks,{dflt:""}),ticklabeloverflow:r({},M.ticklabeloverflow,{}),ticklabelposition:{valType:"enumerated",values:["outside","inside","outside top","inside top","outside left","inside left","outside right","inside right","outside bottom","inside bottom"],dflt:"outside"},ticklen:M.ticklen,tickwidth:M.tickwidth,tickcolor:M.tickcolor,ticklabelstep:M.ticklabelstep,showticklabels:M.showticklabels,labelalias:M.labelalias,tickfont:C({}),tickangle:M.tickangle,tickformat:M.tickformat,tickformatstops:M.tickformatstops,tickprefix:M.tickprefix,showtickprefix:M.showtickprefix,ticksuffix:M.ticksuffix,showticksuffix:M.showticksuffix,separatethousands:M.separatethousands,exponentformat:M.exponentformat,minexponent:M.minexponent,showexponent:M.showexponent,title:{text:{valType:"string"},font:C({}),side:{valType:"enumerated",values:["right","top","bottom"]}},_deprecated:{title:{valType:"string"},titlefont:C({}),titleside:{valType:"enumerated",values:["right","top","bottom"],dflt:"top"}}},"colorbars","from-root")},34554:function(nt){nt.exports={cn:{colorbar:"colorbar",cbbg:"cbbg",cbfill:"cbfill",cbfills:"cbfills",cbline:"cbline",cblines:"cblines",cbaxis:"cbaxis",cbtitleunshift:"cbtitleunshift",cbtitle:"cbtitle",cboutline:"cboutline",crisp:"crisp",jsPlaceholder:"js-placeholder"}}},42097:function(nt,W,e){var M=e(34809),C=e(78032),r=e(22777),i=e(87433),w=e(12036),S=e(54616),h=e(25158);nt.exports=function(l,t,n){var o=C.newContainer(t,"colorbar"),a=l.colorbar||{};function s(V,N){return M.coerce(a,o,h,V,N)}var u=n.margin||{t:0,b:0,l:0,r:0},x=n.width-u.l-u.r,m=n.height-u.t-u.b,y=s("orientation"),c=y==="v",p=s("thicknessmode");s("thickness",p==="fraction"?30/(c?x:m):30);var f=s("lenmode");s("len",f==="fraction"?1:c?m:x);var T=s("yref"),k=s("xref"),P=T==="paper",g=k==="paper",A,E,d,_="left";c?(d="middle",_=g?"left":"right",A=g?1.02:1,E=.5):(d=P?"bottom":"top",_="center",A=.5,E=P?1.02:1),M.coerce(a,o,{x:{valType:"number",min:g?-2:0,max:g?3:1,dflt:A}},"x"),M.coerce(a,o,{y:{valType:"number",min:P?-2:0,max:P?3:1,dflt:E}},"y"),s("xanchor",_),s("xpad"),s("yanchor",d),s("ypad"),M.noneOrAll(a,o,["x","y"]),s("outlinecolor"),s("outlinewidth"),s("bordercolor"),s("borderwidth"),s("bgcolor");var L=M.coerce(a,o,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:c?["outside","inside","outside top","inside top","outside bottom","inside bottom"]:["outside","inside","outside left","inside left","outside right","inside right"]}},"ticklabelposition");s("ticklabeloverflow",L.indexOf("inside")!==-1?"hide past domain":"hide past div"),r(a,o,s,"linear");var b=n.font,D={noAutotickangles:!0,noTicklabelshift:!0,noTicklabelstandoff:!0,outerTicks:!1,font:b};L.indexOf("inside")!==-1&&(D.bgColor="black"),S(a,o,s,"linear",D),w(a,o,s,"linear",D),i(a,o,s,"linear",D),s("title.text",n._dfltTitle.colorbar);var B=o.showticklabels?o.tickfont:b,I=M.extendFlat({},b,{family:B.family,size:M.bigFont(B.size)});M.coerceFont(s,"title.font",I),s("title.side",c?"top":"right")}},5881:function(nt,W,e){var M=e(45568),C=e(65657),r=e(44122),i=e(33626),w=e(29714),S=e(14751),h=e(34809),l=h.strTranslate,t=e(93049).extendFlat,n=e(27983),o=e(62203),a=e(78766),s=e(17240),u=e(30635),x=e(65477).flipScale,m=e(97655),y=e(40957),c=e(25829),p=e(4530),f=p.LINE_SPACING,T=p.FROM_TL,k=p.FROM_BR,P=e(34554).cn;function g(b){var D=b._fullLayout,B=D._infolayer.selectAll("g."+P.colorbar).data(A(b),function(I){return I._id});B.enter().append("g").attr("class",function(I){return I._id}).classed(P.colorbar,!0),B.each(function(I){var V=M.select(this);h.ensureSingle(V,"rect",P.cbbg),h.ensureSingle(V,"g",P.cbfills),h.ensureSingle(V,"g",P.cblines),h.ensureSingle(V,"g",P.cbaxis,function(F){F.classed(P.crisp,!0)}),h.ensureSingle(V,"g",P.cbtitleunshift,function(F){F.append("g").classed(P.cbtitle,!0)}),h.ensureSingle(V,"rect",P.cboutline);var N=E(V,I,b);N&&N.then&&(b._promises||[]).push(N),b._context.edits.colorbarPosition&&d(V,I,b)}),B.exit().each(function(I){r.autoMargin(b,I._id)}).remove(),B.order()}function A(b){var D=b._fullLayout,B=b.calcdata,I=[],V,N,F,U;function G(et){return t(et,{_fillcolor:null,_line:{color:null,width:null,dash:null},_levels:{start:null,end:null,size:null},_filllevels:null,_fillgradient:null,_zrange:null})}function Y(){typeof U.calc=="function"?U.calc(b,F,V):(V._fillgradient=N.reversescale?x(N.colorscale):N.colorscale,V._zrange=[N[U.min],N[U.max]])}for(var Q=0;Q<B.length;Q++){var ft=B[Q];if(F=ft[0].trace,!!F._module){var ut=F._module.colorbar;if(F.visible===!0&&ut)for(var lt=Array.isArray(ut),K=lt?ut:[ut],$=0;$<K.length;$++){U=K[$];var H=U.container;N=H?F[H]:F,N&&N.showscale&&(V=G(N.colorbar),V._id="cb"+F.uid+(lt&&H?"-"+H:""),V._traceIndex=F.index,V._propPrefix=(H?H+".":"")+"colorbar.",V._meta=F._meta,Y(),I.push(V))}}}for(var at in D._colorAxes)if(N=D[at],N.showscale){var ct=D._colorAxes[at];V=G(N.colorbar),V._id="cb"+at,V._propPrefix=at+".colorbar.",V._meta=D._meta,U={min:"cmin",max:"cmax"},ct[0]!=="heatmap"&&(F=ct[1],U.calc=F._module.colorbar.calc),Y(),I.push(V)}return I}function E(b,D,B){var I=D.orientation==="v",V=D.len,N=D.lenmode,F=D.thickness,U=D.thicknessmode,G=D.outlinewidth,Y=D.borderwidth,Q=D.bgcolor,ft=D.xanchor,ut=D.yanchor,lt=D.xpad,K=D.ypad,$=D.x,H=I?D.y:1-D.y,at=D.yref==="paper",ct=D.xref==="paper",et=B._fullLayout,Z=et._size,ot=D._fillcolor,st=D._line,dt=D.title,xt=dt.side,At=D._zrange||M.extent((typeof ot=="function"?ot:st.color).domain()),St=typeof st.color=="function"?st.color:function(){return st.color},Nt=typeof ot=="function"?ot:function(){return ot},Wt=D._levels,Vt=_(B,D,At),jt=Vt.fill,Dt=Vt.line,kt=Math.round(F*(U==="fraction"?I?Z.w:Z.h:1)),Bt=kt/(I?Z.w:Z.h),Ot=Math.round(V*(N==="fraction"?I?Z.h:Z.w:1)),Ht=Ot/(I?Z.h:Z.w),ye=ct?Z.w:B._fullLayout.width,Qt=at?Z.h:B._fullLayout.height,_e=Math.round(I?$*ye+lt:H*Qt+K),ie={center:.5,right:1}[ft]||0,Ae={top:1,middle:.5}[ut]||0,Pe=I?$-ie*Bt:H-Ae*Bt,Oe=I?H-Ae*Ht:$-ie*Ht,je=Math.round(I?Qt*(1-Oe):ye*Oe);D._lenFrac=Ht,D._thickFrac=Bt,D._uFrac=Pe,D._vFrac=Oe;var Le=D._axis=L(B,D,At);Le.position=Bt+(I?$+lt/Z.w:H+K/Z.h);var Ie=["top","bottom"].indexOf(xt)!==-1;if(I&&Ie&&(Le.title.side=xt,Le.titlex=$+lt/Z.w,Le.titley=Oe+(dt.side==="top"?Ht-K/Z.h:K/Z.h)),!I&&!Ie&&(Le.title.side=xt,Le.titley=H+K/Z.h,Le.titlex=Oe+lt/Z.w),st.color&&D.tickmode==="auto"){Le.tickmode="linear",Le.tick0=Wt.start;var Ut=Wt.size,ee=h.constrain(Ot/50,4,15)+1,Kt=(At[1]-At[0])/((D.nticks||ee)*Ut);if(Kt>1){var ne=Math.pow(10,Math.floor(Math.log(Kt)/Math.LN10));Ut*=ne*h.roundUp(Kt/ne,[2,5,10]),(Math.abs(Wt.start)/Wt.size+1e-6)%1<2e-6&&(Le.tick0=0)}Le.dtick=Ut}Le.domain=I?[Oe+K/Z.h,Oe+Ht-K/Z.h]:[Oe+lt/Z.w,Oe+Ht-lt/Z.w],Le.setScale(),b.attr("transform",l(Math.round(Z.l),Math.round(Z.t)));var zt=b.select("."+P.cbtitleunshift).attr("transform",l(-Math.round(Z.l),-Math.round(Z.t))),qt=Le.ticklabelposition,Zt=Le.title.font.size,ae=b.select("."+P.cbaxis),vt,Mt=0,Lt=0;function $t(Ve,le){var pe={propContainer:Le,propName:D._propPrefix+"title",traceIndex:D._traceIndex,_meta:D._meta,placeholder:et._dfltTitle.colorbar,containerGroup:b.select("."+P.cbtitle)},Te=Ve.charAt(0)==="h"?Ve.substr(1):"h"+Ve;b.selectAll("."+Te+",."+Te+"-math-group").remove(),s.draw(B,Ve,t(pe,le||{}))}function ge(){if(I&&Ie||!I&&!Ie){var Ve,le;xt==="top"&&(Ve=lt+Z.l+ye*$,le=K+Z.t+Qt*(1-Oe-Ht)+3+Zt*.75),xt==="bottom"&&(Ve=lt+Z.l+ye*$,le=K+Z.t+Qt*(1-Oe)-3-Zt*.25),xt==="right"&&(le=K+Z.t+Qt*H+3+Zt*.75,Ve=lt+Z.l+ye*Oe),$t(Le._id+"title",{attributes:{x:Ve,y:le,"text-anchor":I?"start":"middle"}})}}function de(){if(I&&!Ie||!I&&Ie){var Ve=Le.position||0,le=Le._offset+Le._length/2,pe,Te;if(xt==="right")Te=le,pe=Z.l+ye*Ve+10+Zt*(Le.showticklabels?1:.5);else if(pe=le,xt==="bottom"&&(Te=Z.t+Qt*Ve+10+(qt.indexOf("inside")===-1?Le.tickfont.size:0)+(Le.ticks!=="intside"&&D.ticklen||0)),xt==="top"){var Yt=dt.text.split("<br>").length;Te=Z.t+Qt*Ve+10-kt-f*Zt*Yt}$t((I?"h":"v")+Le._id+"title",{avoid:{selection:M.select(B).selectAll("g."+Le._id+"tick"),side:xt,offsetTop:I?0:Z.t,offsetLeft:I?Z.l:0,maxShift:I?et.width:et.height},attributes:{x:pe,y:Te,"text-anchor":"middle"},transform:{rotate:I?-90:0,offset:0}})}}function sr(){if(!I&&!Ie||I&&Ie){var Ve=b.select("."+P.cbtitle),le=Ve.select("text"),pe=[-G/2,G/2],Te=Ve.select(".h"+Le._id+"title-math-group").node(),Yt=15.6;le.node()&&(Yt=parseInt(le.node().style.fontSize,10)*f);var Ee;if(Te?(Ee=o.bBox(Te),Lt=Ee.width,Mt=Ee.height,Mt>Yt&&(pe[1]-=(Mt-Yt)/2)):le.node()&&!le.classed(P.jsPlaceholder)&&(Ee=o.bBox(le.node()),Lt=Ee.width,Mt=Ee.height),I){if(Mt){if(Mt+=5,xt==="top")Le.domain[1]-=Mt/Z.h,pe[1]*=-1;else{Le.domain[0]+=Mt/Z.h;var Ne=u.lineCount(le);pe[1]+=(1-Ne)*Yt}Ve.attr("transform",l(pe[0],pe[1])),Le.setScale()}}else Lt&&(xt==="right"&&(Le.domain[0]+=(Lt+Zt/2)/Z.w),Ve.attr("transform",l(pe[0],pe[1])),Le.setScale())}b.selectAll("."+P.cbfills+",."+P.cblines).attr("transform",I?l(0,Math.round(Z.h*(1-Le.domain[1]))):l(Math.round(Z.w*Le.domain[0]),0)),ae.attr("transform",I?l(0,Math.round(-Z.t)):l(Math.round(-Z.l),0));var ar=b.select("."+P.cbfills).selectAll("rect."+P.cbfill).attr("style","").data(jt);ar.enter().append("rect").classed(P.cbfill,!0).attr("style",""),ar.exit().remove();var Ye=At.map(Le.c2p).map(Math.round).sort(function(Ze,nr){return Ze-nr});ar.each(function(Ze,nr){var Ke=[nr===0?At[0]:(jt[nr]+jt[nr-1])/2,nr===jt.length-1?At[1]:(jt[nr]+jt[nr+1])/2].map(Le.c2p).map(Math.round);I&&(Ke[1]=h.constrain(Ke[1]+(Ke[1]>Ke[0])?1:-1,Ye[0],Ye[1]));var er=M.select(this).attr(I?"x":"y",_e).attr(I?"y":"x",M.min(Ke)).attr(I?"width":"height",Math.max(kt,2)).attr(I?"height":"width",Math.max(M.max(Ke)-M.min(Ke),2));if(D._fillgradient)o.gradient(er,B,D._id,I?"vertical":"horizontalreversed",D._fillgradient,"fill");else{var xr=Nt(Ze).replace("e-","");er.attr("fill",C(xr).toHexString())}});var Jt=b.select("."+P.cblines).selectAll("path."+P.cbline).data(st.color&&st.width?Dt:[]);Jt.enter().append("path").classed(P.cbline,!0),Jt.exit().remove(),Jt.each(function(Ze){var nr=_e,Ke=Math.round(Le.c2p(Ze))+st.width/2%1;M.select(this).attr("d","M"+(I?nr+","+Ke:Ke+","+nr)+(I?"h":"v")+kt).call(o.lineGroupStyle,st.width,St(Ze),st.dash)}),ae.selectAll("g."+Le._id+"tick,path").remove();var ue=_e+kt+(G||0)/2-(D.ticks==="outside"?1:0),Se=w.calcTicks(Le),De=w.getTickSigns(Le)[2];return w.drawTicks(B,Le,{vals:Le.ticks==="inside"?w.clipEnds(Le,Se):Se,layer:ae,path:w.makeTickPath(Le,ue,De),transFn:w.makeTransTickFn(Le)}),w.drawLabels(B,Le,{vals:Se,layer:ae,transFn:w.makeTransTickLabelFn(Le),labelFns:w.makeLabelFns(Le,ue)})}function mr(){var Ve,le=kt+G/2;qt.indexOf("inside")===-1&&(Ve=o.bBox(ae.node()),le+=I?Ve.width:Ve.height),vt=zt.select("text");var pe=0,Te=I&&xt==="top",Yt=!I&&xt==="right",Ee=0;if(vt.node()&&!vt.classed(P.jsPlaceholder)){var Ne,ar=zt.select(".h"+Le._id+"title-math-group").node();ar&&(I&&Ie||!I&&!Ie)?(Ve=o.bBox(ar),pe=Ve.width,Ne=Ve.height):(Ve=o.bBox(zt.node()),pe=Ve.right-Z.l-(I?_e:je),Ne=Ve.bottom-Z.t-(I?je:_e),!I&&xt==="top"&&(le+=Ve.height,Ee=Ve.height)),Yt&&(vt.attr("transform",l(pe/2+Zt/2,0)),pe*=2),le=Math.max(le,I?pe:Ne)}var Ye=(I?lt:K)*2+le+Y+G/2,Jt=0;!I&&dt.text&&ut==="bottom"&&H<=0&&(Jt=Ye/2,Ye+=Jt,Ee+=Jt),et._hColorbarMoveTitle=Jt,et._hColorbarMoveCBTitle=Ee;var ue=Y+G,Se=(I?_e:je)-ue/2-(I?lt:0),De=(I?je:_e)-(I?Ot:K+Ee-Jt);b.select("."+P.cbbg).attr("x",Se).attr("y",De).attr(I?"width":"height",Math.max(Ye-Jt,2)).attr(I?"height":"width",Math.max(Ot+ue,2)).call(a.fill,Q).call(a.stroke,D.bordercolor).style("stroke-width",Y);var Ze=Yt?Math.max(pe-10,0):0;b.selectAll("."+P.cboutline).attr("x",(I?_e:je+lt)+Ze).attr("y",(I?je+K-Ot:_e)+(Te?Mt:0)).attr(I?"width":"height",Math.max(kt,2)).attr(I?"height":"width",Math.max(Ot-(I?2*K+Mt:2*lt+Ze),2)).call(a.stroke,D.outlinecolor).style({fill:"none","stroke-width":G});var nr=I?ie*Ye:0,Ke=I?0:(1-Ae)*Ye-Ee;if(nr=ct?Z.l-nr:-nr,Ke=at?Z.t-Ke:-Ke,b.attr("transform",l(nr,Ke)),!I&&(Y||C(Q).getAlpha()&&!C.equals(et.paper_bgcolor,Q))){var er=ae.selectAll("text"),xr=er[0].length,Sr=b.select("."+P.cbbg).node(),Cr=o.bBox(Sr),Er=o.getTranslate(b),Lr=2;er.each(function(Ar,yr){var dr=0,Rr=xr-1;if(yr===dr||yr===Rr){var Qr=o.bBox(this),Xr=o.getTranslate(this),Dn;if(yr===Rr){var on=Qr.right+Xr.x,Hn=Cr.right+Er.x+je-Y-Lr+$;Dn=Hn-on,Dn>0&&(Dn=0)}else if(yr===dr){var Fn=Qr.left+Xr.x,jr=Cr.left+Er.x+je+Y+Lr;Dn=jr-Fn,Dn<0&&(Dn=0)}Dn&&(xr<3?this.setAttribute("transform","translate("+Dn+",0) "+this.getAttribute("transform")):this.setAttribute("visibility","hidden"))}})}var Ur={},zr=T[ft],te=k[ft],he=T[ut],Je=k[ut],br=Ye-kt;I?(N==="pixels"?(Ur.y=H,Ur.t=Ot*he,Ur.b=Ot*Je):(Ur.t=Ur.b=0,Ur.yt=H+V*he,Ur.yb=H-V*Je),U==="pixels"?(Ur.x=$,Ur.l=Ye*zr,Ur.r=Ye*te):(Ur.l=br*zr,Ur.r=br*te,Ur.xl=$-F*zr,Ur.xr=$+F*te)):(N==="pixels"?(Ur.x=$,Ur.l=Ot*zr,Ur.r=Ot*te):(Ur.l=Ur.r=0,Ur.xl=$+V*zr,Ur.xr=$-V*te),U==="pixels"?(Ur.y=1-H,Ur.t=Ye*he,Ur.b=Ye*Je):(Ur.t=br*he,Ur.b=br*Je,Ur.yt=H-F*he,Ur.yb=H+F*Je));var pr=D.y<.5?"b":"t",We=D.x<.5?"l":"r";B._fullLayout._reservedMargin[D._id]={};var hr={r:et.width-Se-nr,l:Se+Ur.r,b:et.height-De-Ke,t:De+Ur.b};ct&&at?r.autoMargin(B,D._id,Ur):ct?B._fullLayout._reservedMargin[D._id][pr]=hr[pr]:at||I?B._fullLayout._reservedMargin[D._id][We]=hr[We]:B._fullLayout._reservedMargin[D._id][pr]=hr[pr]}return h.syncOrAsync([r.previousPromises,ge,sr,de,r.previousPromises,mr],B)}function d(b,D,B){var I=D.orientation==="v",V=B._fullLayout,N=V._size,F,U,G;S.init({element:b.node(),gd:B,prepFn:function(){F=b.attr("transform"),n(b)},moveFn:function(Y,Q){b.attr("transform",F+l(Y,Q)),U=S.align((I?D._uFrac:D._vFrac)+Y/N.w,I?D._thickFrac:D._lenFrac,0,1,D.xanchor),G=S.align((I?D._vFrac:1-D._uFrac)-Q/N.h,I?D._lenFrac:D._thickFrac,0,1,D.yanchor);var ft=S.getCursor(U,G,D.xanchor,D.yanchor);n(b,ft)},doneFn:function(){if(n(b),U!==void 0&&G!==void 0){var Y={};Y[D._propPrefix+"x"]=U,Y[D._propPrefix+"y"]=G,D._traceIndex!==void 0?i.call("_guiRestyle",B,Y,D._traceIndex):i.call("_guiRelayout",B,Y)}}})}function _(b,D,B){var I=D._levels,V=[],N=[],F,U,G=I.end+I.size/100,Y=I.size,Q=1.001*B[0]-.001*B[1],ft=1.001*B[1]-.001*B[0];for(U=0;U<1e5&&(F=I.start+U*Y,!(Y>0?F>=G:F<=G));U++)F>Q&&F<ft&&V.push(F);if(D._fillgradient)N=[0];else if(typeof D._fillcolor=="function"){var ut=D._filllevels;if(ut)for(G=ut.end+ut.size/100,Y=ut.size,U=0;U<1e5&&(F=ut.start+U*Y,!(Y>0?F>=G:F<=G));U++)F>B[0]&&F<B[1]&&N.push(F);else N=V.map(function(lt){return lt-I.size/2}),N.push(N[N.length-1]+I.size)}else D._fillcolor&&typeof D._fillcolor=="string"&&(N=[0]);return I.size<0&&(V.reverse(),N.reverse()),{line:V,fill:N}}function L(b,D,B){var I=b._fullLayout,V=D.orientation==="v",N={type:"linear",range:B,tickmode:D.tickmode,nticks:D.nticks,tick0:D.tick0,dtick:D.dtick,tickvals:D.tickvals,ticktext:D.ticktext,ticks:D.ticks,ticklen:D.ticklen,tickwidth:D.tickwidth,tickcolor:D.tickcolor,showticklabels:D.showticklabels,labelalias:D.labelalias,ticklabelposition:D.ticklabelposition,ticklabeloverflow:D.ticklabeloverflow,ticklabelstep:D.ticklabelstep,tickfont:D.tickfont,tickangle:D.tickangle,tickformat:D.tickformat,exponentformat:D.exponentformat,minexponent:D.minexponent,separatethousands:D.separatethousands,showexponent:D.showexponent,showtickprefix:D.showtickprefix,tickprefix:D.tickprefix,showticksuffix:D.showticksuffix,ticksuffix:D.ticksuffix,title:D.title,showline:!0,anchor:"free",side:V?"right":"bottom",position:1},F=V?"y":"x",U={type:"linear",_id:F+D._id},G={letter:F,font:I.font,noAutotickangles:F==="y",noHover:!0,noTickson:!0,noTicklabelmode:!0,noInsideRange:!0,calendar:I.calendar};function Y(Q,ft){return h.coerce(N,U,c,Q,ft)}return m(N,U,Y,G,I),y(N,U,Y,G),U}nt.exports={draw:g}},91362:function(nt,W,e){var M=e(34809);nt.exports=function(C){return M.isPlainObject(C.colorbar)}},96919:function(nt,W,e){nt.exports={moduleType:"component",name:"colorbar",attributes:e(25158),supplyDefaults:e(42097),draw:e(5881).draw,hasColorbar:e(91362)}},87163:function(nt,W,e){var M=e(25158),C=e(90694).counter,r=e(62994),i=e(19017).scales;r(i),nt.exports=function(w,S){w=w||"",S=S||{};var h=S.cLetter||"c";"onlyIfNumerical"in S&&S.onlyIfNumerical;var l="noScale"in S?S.noScale:w==="marker.line",t="showScaleDflt"in S?S.showScaleDflt:h==="z",n=typeof S.colorscaleDflt=="string"?i[S.colorscaleDflt]:null,o=S.editTypeOverride||"",a;"colorAttr"in S?(a=S.colorAttr,S.colorAttr):a={z:"z",c:"color"}[h];var s=h+"auto",u=h+"min",x=h+"max",m=h+"mid",y={};y[u]=y[x]=void 0;var c={};c[s]=!1;var p={};return a==="color"&&(p.color={valType:"color",arrayOk:!0,editType:o||"style"},S.anim&&(p.color.anim=!0)),p[s]={valType:"boolean",dflt:!0,editType:"calc",impliedEdits:y},p[u]={valType:"number",dflt:null,editType:o||"plot",impliedEdits:c},p[x]={valType:"number",dflt:null,editType:o||"plot",impliedEdits:c},p[m]={valType:"number",dflt:null,editType:"calc",impliedEdits:y},p.colorscale={valType:"colorscale",editType:"calc",dflt:n,impliedEdits:{autocolorscale:!1}},p.autocolorscale={valType:"boolean",dflt:S.autoColorDflt!==!1,editType:"calc",impliedEdits:{colorscale:void 0}},p.reversescale={valType:"boolean",dflt:!1,editType:"plot"},l||(p.showscale={valType:"boolean",dflt:t,editType:"calc"},p.colorbar=M),S.noColorAxis||(p.coloraxis={valType:"subplotid",regex:C("coloraxis"),dflt:null,editType:"calc"}),p}},28379:function(nt,W,e){var M=e(10721),C=e(34809),r=e(65477).extractOpts;nt.exports=function(i,w,S){var h=i._fullLayout,l=S.vals,t=S.containerStr,n=t?C.nestedProperty(w,t).get():w,o=r(n),a=o.auto!==!1,s=o.min,u=o.max,x=o.mid,m=function(){return C.aggNums(Math.min,null,l)},y=function(){return C.aggNums(Math.max,null,l)};if(s===void 0?s=m():a&&(n._colorAx&&M(s)?s=Math.min(s,m()):s=m()),u===void 0?u=y():a&&(n._colorAx&&M(u)?u=Math.max(u,y()):u=y()),a&&x!==void 0&&(u-x>x-s?s=x-(u-x):u-x<x-s&&(u=x+(x-s))),s===u&&(s-=.5,u+=.5),o._sync("min",s),o._sync("max",u),o.autocolorscale){var c;s*u<0?c=h.colorscale.diverging:s>=0?c=h.colorscale.sequential:c=h.colorscale.sequentialminus,o._sync("colorscale",c)}}},67623:function(nt,W,e){var M=e(34809),C=e(65477).hasColorscale,r=e(65477).extractOpts;nt.exports=function(i,w){function S(s,u){var x=s["_"+u];x!==void 0&&(s[u]=x)}function h(s,u){var x=u.container?M.nestedProperty(s,u.container).get():s;if(x)if(x.coloraxis)x._colorAx=w[x.coloraxis];else{var m=r(x),y=m.auto;(y||m.min===void 0)&&S(x,u.min),(y||m.max===void 0)&&S(x,u.max),m.autocolorscale&&S(x,"colorscale")}}for(var l=0;l<i.length;l++){var t=i[l],n=t._module.colorbar;if(n)if(Array.isArray(n))for(var o=0;o<n.length;o++)h(t,n[o]);else h(t,n);C(t,"marker.line")&&h(t,{container:"marker.line",min:"cmin",max:"cmax"})}for(var a in w._colorAxes)h(w[a],{min:"cmin",max:"cmax"})}},39356:function(nt,W,e){var M=e(10721),C=e(34809),r=e(91362),i=e(42097),w=e(19017).isValid,S=e(33626).traceIs;function h(l,t){var n=t.slice(0,t.length-1);return t?C.nestedProperty(l,n).get()||{}:l}nt.exports=function l(t,n,o,a,s){var u=s.prefix,x=s.cLetter,m="_module"in n,y=h(t,u),c=h(n,u),p=h(n._template||{},u)||{},f=function(){return delete t.coloraxis,delete n.coloraxis,l(t,n,o,a,s)};if(m){var T=o._colorAxes||{},k=a(u+"coloraxis");if(k){var P=S(n,"contour")&&C.nestedProperty(n,"contours.coloring").get()||"heatmap",g=T[k];g?(g[2].push(f),g[0]!==P&&(g[0]=!1,C.warn(["Ignoring coloraxis:",k,"setting","as it is linked to incompatible colorscales."].join(" ")))):T[k]=[P,n,[f]];return}}var A=y[x+"min"],E=y[x+"max"],d=M(A)&&M(E)&&A<E,_=a(u+x+"auto",!d);_?a(u+x+"mid"):(a(u+x+"min"),a(u+x+"max"));var L=y.colorscale,b=p.colorscale,D;if(L!==void 0&&(D=!w(L)),b!==void 0&&(D=!w(b)),a(u+"autocolorscale",D),a(u+"colorscale"),a(u+"reversescale"),u!=="marker.line."){var B;u&&m&&(B=r(y));var I=a(u+"showscale",B);I&&(u&&p&&(c._template=p),i(y,c,o))}}},65477:function(nt,W,e){var M=e(45568),C=e(65657),r=e(10721),i=e(34809),w=e(78766),S=e(19017).isValid;function h(m,y,c){var p=y?i.nestedProperty(m,y).get()||{}:m,f=p[c||"color"];f&&f._inputArray&&(f=f._inputArray);var T=!1;if(i.isArrayOrTypedArray(f)){for(var k=0;k<f.length;k++)if(r(f[k])){T=!0;break}}return i.isPlainObject(p)&&(T||p.showscale===!0||r(p.cmin)&&r(p.cmax)||S(p.colorscale)||i.isPlainObject(p.colorbar))}var l=["showscale","autocolorscale","colorscale","reversescale","colorbar"],t=["min","max","mid","auto"];function n(m){var y=m._colorAx,c=y||m,p={},f,T,k;for(T=0;T<l.length;T++)k=l[T],p[k]=c[k];if(y)for(f="c",T=0;T<t.length;T++)k=t[T],p[k]=c["c"+k];else{var P;for(T=0;T<t.length;T++){if(k=t[T],P="c"+k,P in c){p[k]=c[P];continue}P="z"+k,P in c&&(p[k]=c[P])}f=P.charAt(0)}return p._sync=function(g,A){var E=t.indexOf(g)!==-1?f+g:g;c[E]=c["_"+E]=A},p}function o(m){for(var y=n(m),c=y.min,p=y.max,f=y.reversescale?a(y.colorscale):y.colorscale,T=f.length,k=new Array(T),P=new Array(T),g=0;g<T;g++){var A=f[g];k[g]=c+A[0]*(p-c),P[g]=A[1]}return{domain:k,range:P}}function a(m){for(var y=m.length,c=new Array(y),p=y-1,f=0;p>=0;p--,f++){var T=m[p];c[f]=[1-T[0],T[1]]}return c}function s(m,y){y=y||{};for(var c=m.domain,p=m.range,f=p.length,T=new Array(f),k=0;k<f;k++){var P=C(p[k]).toRgb();T[k]=[P.r,P.g,P.b,P.a]}var g=M.scale.linear().domain(c).range(T).clamp(!0),A=y.noNumericCheck,E=y.returnArray,d;return A&&E?d=g:A?d=function(_){return x(g(_))}:E?d=function(_){return r(_)?g(_):C(_).isValid()?_:w.defaultLine}:d=function(_){return r(_)?x(g(_)):C(_).isValid()?_:w.defaultLine},d.domain=g.domain,d.range=function(){return p},d}function u(m,y){return s(o(m),y)}function x(m){var y={r:m[0],g:m[1],b:m[2],a:m[3]};return C(y).toRgbString()}nt.exports={hasColorscale:h,extractOpts:n,extractScale:o,flipScale:a,makeColorScaleFunc:s,makeColorScaleFuncFromTrace:u}},88856:function(nt,W,e){var M=e(19017),C=e(65477);nt.exports={moduleType:"component",name:"colorscale",attributes:e(87163),layoutAttributes:e(56978),supplyLayoutDefaults:e(64613),handleDefaults:e(39356),crossTraceDefaults:e(67623),calc:e(28379),scales:M.scales,defaultScale:M.defaultScale,getScale:M.get,isValidScale:M.isValid,hasColorscale:C.hasColorscale,extractOpts:C.extractOpts,extractScale:C.extractScale,flipScale:C.flipScale,makeColorScaleFunc:C.makeColorScaleFunc,makeColorScaleFuncFromTrace:C.makeColorScaleFuncFromTrace}},56978:function(nt,W,e){var M=e(93049).extendFlat,C=e(87163),r=e(19017).scales;nt.exports={editType:"calc",colorscale:{editType:"calc",sequential:{valType:"colorscale",dflt:r.Reds,editType:"calc"},sequentialminus:{valType:"colorscale",dflt:r.Blues,editType:"calc"},diverging:{valType:"colorscale",dflt:r.RdBu,editType:"calc"}},coloraxis:M({_isSubplotObj:!0,editType:"calc"},C("",{colorAttr:"corresponding trace color array(s)",noColorAxis:!0,showScaleDflt:!0}))}},64613:function(nt,W,e){var M=e(34809),C=e(78032),r=e(56978),i=e(39356);nt.exports=function(w,S){function h(x,m){return M.coerce(w,S,r,x,m)}h("colorscale.sequential"),h("colorscale.sequentialminus"),h("colorscale.diverging");var l=S._colorAxes,t,n;function o(x,m){return M.coerce(t,n,r.coloraxis,x,m)}for(var a in l){var s=l[a];if(s[0])t=w[a]||{},n=C.newContainer(S,a,"coloraxis"),n._name=a,i(t,n,S,o,{prefix:"",cLetter:"c"});else{for(var u=0;u<s[2].length;u++)s[2][u]();delete S._colorAxes[a]}}}},19017:function(nt,W,e){var M=e(65657),C={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)"]]},r=C.RdBu;function i(h,l){if(l||(l=r),!h)return l;function t(){try{h=C[h]||JSON.parse(h)}catch{h=l}}return typeof h=="string"&&(t(),typeof h=="string"&&t()),w(h)?h:l}function w(h){var l=0;if(!Array.isArray(h)||h.length<2||!h[0]||!h[h.length-1]||+h[0][0]!=0||+h[h.length-1][0]!=1)return!1;for(var t=0;t<h.length;t++){var n=h[t];if(n.length!==2||+n[0]<l||!M(n[1]).isValid())return!1;l=+n[0]}return!0}function S(h){return C[h]!==void 0?!0:w(h)}nt.exports={scales:C,defaultScale:r,get:i,isValid:S}},53770:function(nt){nt.exports=function(W,e,M,C,r){var i=(W-M)/(C-M),w=i+e/(C-M),S=(i+w)/2;return r==="left"||r==="bottom"?i:r==="center"||r==="middle"?S:r==="right"||r==="top"?w:i<.6666666666666666-S?i:w>1.3333333333333333-S?w:S}},4001:function(nt,W,e){var M=e(34809),C=[["sw-resize","s-resize","se-resize"],["w-resize","move","e-resize"],["nw-resize","n-resize","ne-resize"]];nt.exports=function(r,i,w,S){return w==="left"?r=0:w==="center"?r=1:w==="right"?r=2:r=M.constrain(Math.floor(r*3),0,2),S==="bottom"?i=0:S==="middle"?i=1:S==="top"?i=2:i=M.constrain(Math.floor(i*3),0,2),C[i][r]}},70414:function(nt,W){W.selectMode=function(e){return e==="lasso"||e==="select"},W.drawMode=function(e){return e==="drawclosedpath"||e==="drawopenpath"||e==="drawline"||e==="drawrect"||e==="drawcircle"},W.openMode=function(e){return e==="drawline"||e==="drawopenpath"},W.rectMode=function(e){return e==="select"||e==="drawline"||e==="drawrect"||e==="drawcircle"},W.freeMode=function(e){return e==="lasso"||e==="drawclosedpath"||e==="drawopenpath"},W.selectingOrDrawing=function(e){return W.freeMode(e)||W.rectMode(e)}},14751:function(nt,W,e){var M=e(44039),C=e(39784),r=e(74043),i=e(34809).removeElement,w=e(54826),S=nt.exports={};S.align=e(53770),S.getCursor=e(4001);var h=e(60148);S.unhover=h.wrapped,S.unhoverRaw=h.raw,S.init=function(n){var o=n.gd,a=1,s=o._context.doubleClickDelay,u=n.element,x,m,y,c,p,f,T,k;o._mouseDownTime||(o._mouseDownTime=0),u.style.pointerEvents="all",u.onmousedown=A,r?(u._ontouchstart&&u.removeEventListener("touchstart",u._ontouchstart),u._ontouchstart=A,u.addEventListener("touchstart",A,{passive:!1})):u.ontouchstart=A;function P(_,L,b){return Math.abs(_)<b&&(_=0),Math.abs(L)<b&&(L=0),[_,L]}var g=n.clampFn||P;function A(_){o._dragged=!1,o._dragging=!0;var L=t(_);x=L[0],m=L[1],T=_.target,f=_,k=_.buttons===2||_.ctrlKey,typeof _.clientX>"u"&&typeof _.clientY>"u"&&(_.clientX=x,_.clientY=m),y=new Date().getTime(),y-o._mouseDownTime<s?a+=1:(a=1,o._mouseDownTime=y),n.prepFn&&n.prepFn(_,x,m),C&&!k?(p=l(),p.style.cursor=window.getComputedStyle(u).cursor):C||(p=document,c=window.getComputedStyle(document.documentElement).cursor,document.documentElement.style.cursor=window.getComputedStyle(u).cursor),document.addEventListener("mouseup",d),document.addEventListener("touchend",d),n.dragmode!==!1&&(_.preventDefault(),document.addEventListener("mousemove",E),document.addEventListener("touchmove",E,{passive:!1}))}function E(_){_.preventDefault();var L=t(_),b=n.minDrag||w.MINDRAG,D=g(L[0]-x,L[1]-m,b),B=D[0],I=D[1];(B||I)&&(o._dragged=!0,S.unhover(o,_)),o._dragged&&n.moveFn&&!k&&(o._dragdata={element:u,dx:B,dy:I},n.moveFn(B,I))}function d(_){if(delete o._dragdata,n.dragmode!==!1&&(_.preventDefault(),document.removeEventListener("mousemove",E),document.removeEventListener("touchmove",E)),document.removeEventListener("mouseup",d),document.removeEventListener("touchend",d),C?i(p):c&&(p.documentElement.style.cursor=c,c=null),!o._dragging){o._dragged=!1;return}if(o._dragging=!1,new Date().getTime()-o._mouseDownTime>s&&(a=Math.max(a-1,1)),o._dragged)n.doneFn&&n.doneFn();else if(n.clickFn&&n.clickFn(a,f),!k){var L;try{L=new MouseEvent("click",_)}catch{var b=t(_);L=document.createEvent("MouseEvents"),L.initMouseEvent("click",_.bubbles,_.cancelable,_.view,_.detail,_.screenX,_.screenY,b[0],b[1],_.ctrlKey,_.altKey,_.shiftKey,_.metaKey,_.button,_.relatedTarget)}T.dispatchEvent(L)}o._dragging=!1,o._dragged=!1}};function l(){var n=document.createElement("div");n.className="dragcover";var o=n.style;return o.position="fixed",o.left=0,o.right=0,o.top=0,o.bottom=0,o.zIndex=999999999,o.background="none",document.body.appendChild(n),n}S.coverSlip=l;function t(n){return M(n.changedTouches?n.changedTouches[0]:n,document.body)}},60148:function(nt,W,e){var M=e(68596),C=e(64025),r=e(95425).getGraphDiv,i=e(85988),w=nt.exports={};w.wrapped=function(S,h,l){S=r(S),S._fullLayout&&C.clear(S._fullLayout._uid+i.HOVERID),w.raw(S,h,l)},w.raw=function(S,h){var l=S._fullLayout,t=S._hoverdata;h||(h={}),!(h.target&&!S._dragged&&M.triggerHandler(S,"plotly_beforehover",h)===!1)&&(l._hoverlayer.selectAll("g").remove(),l._hoverlayer.selectAll("line").remove(),l._hoverlayer.selectAll("circle").remove(),S._hoverdata=void 0,h.target&&t&&S.emit("plotly_unhover",{event:h,points:t}))}},94850:function(nt,W){W.T={valType:"string",values:["solid","dot","dash","longdash","dashdot","longdashdot"],dflt:"solid",editType:"style"},W.k={shape:{valType:"enumerated",values:["","/","\\","x","-","|","+","."],dflt:"",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"}},62203:function(nt,W,e){var M=e(45568),C=e(34809),r=C.numberFormat,i=e(10721),w=e(65657),S=e(33626),h=e(78766),l=e(88856),t=C.strTranslate,n=e(30635),o=e(62972),a=e(4530),s=a.LINE_SPACING,u=e(20438).DESELECTDIM,x=e(64726),m=e(92527),y=e(36040).appendArrayPointValue,c=nt.exports={};c.font=function(kt,Bt){var Ot=Bt.variant,Ht=Bt.style,ye=Bt.weight,Qt=Bt.color,_e=Bt.size,ie=Bt.family,Ae=Bt.shadow,Pe=Bt.lineposition,Oe=Bt.textcase;ie&&kt.style("font-family",ie),_e+1&&kt.style("font-size",_e+"px"),Qt&&kt.call(h.fill,Qt),ye&&kt.style("font-weight",ye),Ht&&kt.style("font-style",Ht),Ot&&kt.style("font-variant",Ot),Oe&&kt.style("text-transform",p(T(Oe))),Ae&&kt.style("text-shadow",Ae==="auto"?n.makeTextShadow(h.contrast(Qt)):p(Ae)),Pe&&kt.style("text-decoration-line",p(k(Pe)))};function p(kt){return kt==="none"?void 0:kt}var f={normal:"none",lower:"lowercase",upper:"uppercase","word caps":"capitalize"};function T(kt){return f[kt]}function k(kt){return kt.replace("under","underline").replace("over","overline").replace("through","line-through").split("+").join(" ")}c.setPosition=function(kt,Bt,Ot){kt.attr("x",Bt).attr("y",Ot)},c.setSize=function(kt,Bt,Ot){kt.attr("width",Bt).attr("height",Ot)},c.setRect=function(kt,Bt,Ot,Ht,ye){kt.call(c.setPosition,Bt,Ot).call(c.setSize,Ht,ye)},c.translatePoint=function(kt,Bt,Ot,Ht){var ye=Ot.c2p(kt.x),Qt=Ht.c2p(kt.y);if(i(ye)&&i(Qt)&&Bt.node())Bt.node().nodeName==="text"?Bt.attr("x",ye).attr("y",Qt):Bt.attr("transform",t(ye,Qt));else return!1;return!0},c.translatePoints=function(kt,Bt,Ot){kt.each(function(Ht){var ye=M.select(this);c.translatePoint(Ht,ye,Bt,Ot)})},c.hideOutsideRangePoint=function(kt,Bt,Ot,Ht,ye,Qt){Bt.attr("display",Ot.isPtWithinRange(kt,ye)&&Ht.isPtWithinRange(kt,Qt)?null:"none")},c.hideOutsideRangePoints=function(kt,Bt){if(Bt._hasClipOnAxisFalse){var Ot=Bt.xaxis,Ht=Bt.yaxis;kt.each(function(ye){var Qt=ye[0].trace,_e=Qt.xcalendar,ie=Qt.ycalendar,Ae=S.traceIs(Qt,"bar-like")?".bartext":".point,.textpoint";kt.selectAll(Ae).each(function(Pe){c.hideOutsideRangePoint(Pe,M.select(this),Ot,Ht,_e,ie)})})}},c.crispRound=function(kt,Bt,Ot){return!Bt||!i(Bt)?Ot||0:kt._context.staticPlot?Bt:Bt<1?1:Math.round(Bt)},c.singleLineStyle=function(kt,Bt,Ot,Ht,ye){Bt.style("fill","none");var Qt=(((kt||[])[0]||{}).trace||{}).line||{},_e=Ot||Qt.width||0,ie=ye||Qt.dash||"";h.stroke(Bt,Ht||Qt.color),c.dashLine(Bt,ie,_e)},c.lineGroupStyle=function(kt,Bt,Ot,Ht){kt.style("fill","none").each(function(ye){var Qt=(((ye||[])[0]||{}).trace||{}).line||{},_e=Bt||Qt.width||0,ie=Ht||Qt.dash||"";M.select(this).call(h.stroke,Ot||Qt.color).call(c.dashLine,ie,_e)})},c.dashLine=function(kt,Bt,Ot){Ot=+Ot||0,Bt=c.dashStyle(Bt,Ot),kt.style({"stroke-dasharray":Bt,"stroke-width":Ot+"px"})},c.dashStyle=function(kt,Bt){Bt=+Bt||1;var Ot=Math.max(Bt,3);return kt==="solid"?kt="":kt==="dot"?kt=Ot+"px,"+Ot+"px":kt==="dash"?kt=3*Ot+"px,"+3*Ot+"px":kt==="longdash"?kt=5*Ot+"px,"+5*Ot+"px":kt==="dashdot"?kt=3*Ot+"px,"+Ot+"px,"+Ot+"px,"+Ot+"px":kt==="longdashdot"&&(kt=5*Ot+"px,"+2*Ot+"px,"+Ot+"px,"+2*Ot+"px"),kt};function P(kt,Bt,Ot,Ht){var ye=Bt.fillpattern,Qt=Bt.fillgradient,_e=ye&&c.getPatternAttr(ye.shape,0,"");if(_e){var ie=c.getPatternAttr(ye.bgcolor,0,null),Ae=c.getPatternAttr(ye.fgcolor,0,null),Pe=ye.fgopacity,Oe=c.getPatternAttr(ye.size,0,8),je=c.getPatternAttr(ye.solidity,0,.3),Le=Bt.uid;c.pattern(kt,"point",Ot,Le,_e,Oe,je,void 0,ye.fillmode,ie,Ae,Pe)}else if(Qt&&Qt.type!=="none"){var Ie=Qt.type,Ut="scatterfill-"+Bt.uid;if(Ht&&(Ut="legendfill-"+Bt.uid),!Ht&&(Qt.start!==void 0||Qt.stop!==void 0)){var ee,Kt;Ie==="horizontal"?(ee={x:Qt.start,y:0},Kt={x:Qt.stop,y:0}):Ie==="vertical"&&(ee={x:0,y:Qt.start},Kt={x:0,y:Qt.stop}),ee.x=Bt._xA.c2p(ee.x===void 0?Bt._extremes.x.min[0].val:ee.x,!0),ee.y=Bt._yA.c2p(ee.y===void 0?Bt._extremes.y.min[0].val:ee.y,!0),Kt.x=Bt._xA.c2p(Kt.x===void 0?Bt._extremes.x.max[0].val:Kt.x,!0),Kt.y=Bt._yA.c2p(Kt.y===void 0?Bt._extremes.y.max[0].val:Kt.y,!0),kt.call(b,Ot,Ut,"linear",Qt.colorscale,"fill",ee,Kt,!0,!1)}else Ie==="horizontal"&&(Ie=Ie+"reversed"),kt.call(c.gradient,Ot,Ut,Ie,Qt.colorscale,"fill")}else Bt.fillcolor&&kt.call(h.fill,Bt.fillcolor)}c.singleFillStyle=function(kt,Bt){var Ot=M.select(kt.node()),Ht=Ot.data(),ye=((Ht[0]||[])[0]||{}).trace||{};P(kt,ye,Bt,!1)},c.fillGroupStyle=function(kt,Bt,Ot){kt.style("stroke-width",0).each(function(Ht){var ye=M.select(this);Ht[0].trace&&P(ye,Ht[0].trace,Bt,Ot)})};var g=e(38882);c.symbolNames=[],c.symbolFuncs=[],c.symbolBackOffs=[],c.symbolNeedLines={},c.symbolNoDot={},c.symbolNoFill={},c.symbolList=[],Object.keys(g).forEach(function(kt){var Bt=g[kt],Ot=Bt.n;c.symbolList.push(Ot,String(Ot),kt,Ot+100,String(Ot+100),kt+"-open"),c.symbolNames[Ot]=kt,c.symbolFuncs[Ot]=Bt.f,c.symbolBackOffs[Ot]=Bt.backoff||0,Bt.needLine&&(c.symbolNeedLines[Ot]=!0),Bt.noDot?c.symbolNoDot[Ot]=!0:c.symbolList.push(Ot+200,String(Ot+200),kt+"-dot",Ot+300,String(Ot+300),kt+"-open-dot"),Bt.noFill&&(c.symbolNoFill[Ot]=!0)});var A=c.symbolNames.length,E="M0,0.5L0.5,0L0,-0.5L-0.5,0Z";c.symbolNumber=function(kt){if(i(kt))kt=+kt;else if(typeof kt=="string"){var Bt=0;kt.indexOf("-open")>0&&(Bt=100,kt=kt.replace("-open","")),kt.indexOf("-dot")>0&&(Bt+=200,kt=kt.replace("-dot","")),kt=c.symbolNames.indexOf(kt),kt>=0&&(kt+=Bt)}return kt%100>=A||kt>=400?0:Math.floor(Math.max(kt,0))};function d(kt,Bt,Ot,Ht){var ye=kt%100;return c.symbolFuncs[ye](Bt,Ot,Ht)+(kt>=200?E:"")}var _=r("~f"),L={radial:{type:"radial"},radialreversed:{type:"radial",reversed:!0},horizontal:{type:"linear",start:{x:1,y:0},stop:{x:0,y:0}},horizontalreversed:{type:"linear",start:{x:1,y:0},stop:{x:0,y:0},reversed:!0},vertical:{type:"linear",start:{x:0,y:1},stop:{x:0,y:0}},verticalreversed:{type:"linear",start:{x:0,y:1},stop:{x:0,y:0},reversed:!0}};c.gradient=function(kt,Bt,Ot,Ht,ye,Qt){var _e=L[Ht];return b(kt,Bt,Ot,_e.type,ye,Qt,_e.start,_e.stop,!1,_e.reversed)};function b(kt,Bt,Ot,Ht,ye,Qt,_e,ie,Ae,Pe){var Oe=ye.length,je;Ht==="linear"?je={node:"linearGradient",attrs:{x1:_e.x,y1:_e.y,x2:ie.x,y2:ie.y,gradientUnits:Ae?"userSpaceOnUse":"objectBoundingBox"},reversed:Pe}:Ht==="radial"&&(je={node:"radialGradient",reversed:Pe});for(var Le=new Array(Oe),Ie=0;Ie<Oe;Ie++)je.reversed?Le[Oe-1-Ie]=[_((1-ye[Ie][0])*100),ye[Ie][1]]:Le[Ie]=[_(ye[Ie][0]*100),ye[Ie][1]];var Ut=Bt._fullLayout,ee="g"+Ut._uid+"-"+Ot,Kt=Ut._defs.select(".gradients").selectAll("#"+ee).data([Ht+Le.join(";")],C.identity);Kt.exit().remove(),Kt.enter().append(je.node).each(function(){var ne=M.select(this);je.attrs&&ne.attr(je.attrs),ne.attr("id",ee);var zt=ne.selectAll("stop").data(Le);zt.exit().remove(),zt.enter().append("stop"),zt.each(function(qt){var Zt=w(qt[1]);M.select(this).attr({offset:qt[0]+"%","stop-color":h.tinyRGB(Zt),"stop-opacity":Zt.getAlpha()})})}),kt.style(Qt,at(ee,Bt)).style(Qt+"-opacity",null),kt.classed("gradient_filled",!0)}c.pattern=function(kt,Bt,Ot,Ht,ye,Qt,_e,ie,Ae,Pe,Oe,je){var Le=Bt==="legend";ie&&(Ae==="overlay"?(Pe=ie,Oe=h.contrast(Pe)):(Pe=void 0,Oe=ie));var Ie=Ot._fullLayout,Ut="p"+Ie._uid+"-"+Ht,ee,Kt,ne=function(mr,Ve,le,pe,Te){return pe+(Te-pe)*(mr-Ve)/(le-Ve)},zt,qt,Zt,ae,vt={},Mt=w(Oe),Lt=h.tinyRGB(Mt),$t=Mt.getAlpha(),ge=je*$t;switch(ye){case"/":ee=Qt*Math.sqrt(2),Kt=Qt*Math.sqrt(2),zt="M-"+ee/4+","+Kt/4+"l"+ee/2+",-"+Kt/2+"M0,"+Kt+"L"+ee+",0M"+ee/4*3+","+Kt/4*5+"l"+ee/2+",-"+Kt/2,qt=_e*Qt,ae="path",vt={d:zt,opacity:ge,stroke:Lt,"stroke-width":qt+"px"};break;case"\\":ee=Qt*Math.sqrt(2),Kt=Qt*Math.sqrt(2),zt="M"+ee/4*3+",-"+Kt/4+"l"+ee/2+","+Kt/2+"M0,0L"+ee+","+Kt+"M-"+ee/4+","+Kt/4*3+"l"+ee/2+","+Kt/2,qt=_e*Qt,ae="path",vt={d:zt,opacity:ge,stroke:Lt,"stroke-width":qt+"px"};break;case"x":ee=Qt*Math.sqrt(2),Kt=Qt*Math.sqrt(2),zt="M-"+ee/4+","+Kt/4+"l"+ee/2+",-"+Kt/2+"M0,"+Kt+"L"+ee+",0M"+ee/4*3+","+Kt/4*5+"l"+ee/2+",-"+Kt/2+"M"+ee/4*3+",-"+Kt/4+"l"+ee/2+","+Kt/2+"M0,0L"+ee+","+Kt+"M-"+ee/4+","+Kt/4*3+"l"+ee/2+","+Kt/2,qt=Qt-Qt*Math.sqrt(1-_e),ae="path",vt={d:zt,opacity:ge,stroke:Lt,"stroke-width":qt+"px"};break;case"|":ee=Qt,Kt=Qt,ae="path",zt="M"+ee/2+",0L"+ee/2+","+Kt,qt=_e*Qt,ae="path",vt={d:zt,opacity:ge,stroke:Lt,"stroke-width":qt+"px"};break;case"-":ee=Qt,Kt=Qt,ae="path",zt="M0,"+Kt/2+"L"+ee+","+Kt/2,qt=_e*Qt,ae="path",vt={d:zt,opacity:ge,stroke:Lt,"stroke-width":qt+"px"};break;case"+":ee=Qt,Kt=Qt,ae="path",zt="M"+ee/2+",0L"+ee/2+","+Kt+"M0,"+Kt/2+"L"+ee+","+Kt/2,qt=Qt-Qt*Math.sqrt(1-_e),ae="path",vt={d:zt,opacity:ge,stroke:Lt,"stroke-width":qt+"px"};break;case".":ee=Qt,Kt=Qt,_e<Math.PI/4?Zt=Math.sqrt(_e*Qt*Qt/Math.PI):Zt=ne(_e,Math.PI/4,1,Qt/2,Qt/Math.sqrt(2)),ae="circle",vt={cx:ee/2,cy:Kt/2,r:Zt,opacity:ge,fill:Lt};break}var de=[ye||"noSh",Pe||"noBg",Oe||"noFg",Qt,_e].join(";"),sr=Ie._defs.select(".patterns").selectAll("#"+Ut).data([de],C.identity);sr.exit().remove(),sr.enter().append("pattern").each(function(){var mr=M.select(this);if(mr.attr({id:Ut,width:ee+"px",height:Kt+"px",patternUnits:"userSpaceOnUse",patternTransform:Le?"scale(0.8)":""}),Pe){var Ve=w(Pe),le=h.tinyRGB(Ve),pe=Ve.getAlpha(),Te=mr.selectAll("rect").data([0]);Te.exit().remove(),Te.enter().append("rect").attr({width:ee+"px",height:Kt+"px",fill:le,"fill-opacity":pe})}var Yt=mr.selectAll(ae).data([0]);Yt.exit().remove(),Yt.enter().append(ae).attr(vt)}),kt.style("fill",at(Ut,Ot)).style("fill-opacity",null),kt.classed("pattern_filled",!0)},c.initGradients=function(kt){var Bt=kt._fullLayout,Ot=C.ensureSingle(Bt._defs,"g","gradients");Ot.selectAll("linearGradient,radialGradient").remove(),M.select(kt).selectAll(".gradient_filled").classed("gradient_filled",!1)},c.initPatterns=function(kt){var Bt=kt._fullLayout,Ot=C.ensureSingle(Bt._defs,"g","patterns");Ot.selectAll("pattern").remove(),M.select(kt).selectAll(".pattern_filled").classed("pattern_filled",!1)},c.getPatternAttr=function(kt,Bt,Ot){return kt&&C.isArrayOrTypedArray(kt)?Bt<kt.length?kt[Bt]:Ot:kt},c.pointStyle=function(kt,Bt,Ot,Ht){if(kt.size()){var ye=c.makePointStyleFns(Bt);kt.each(function(Qt){c.singlePointStyle(Qt,M.select(this),Bt,ye,Ot,Ht)})}},c.singlePointStyle=function(kt,Bt,Ot,Ht,ye,Qt){var _e=Ot.marker,ie=_e.line;if(Qt&&Qt.i>=0&&kt.i===void 0&&(kt.i=Qt.i),Bt.style("opacity",Ht.selectedOpacityFn?Ht.selectedOpacityFn(kt):kt.mo===void 0?_e.opacity:kt.mo),Ht.ms2mrc){var Ae;kt.ms==="various"||_e.size==="various"?Ae=3:Ae=Ht.ms2mrc(kt.ms),kt.mrc=Ae,Ht.selectedSizeFn&&(Ae=kt.mrc=Ht.selectedSizeFn(kt));var Pe=c.symbolNumber(kt.mx||_e.symbol)||0;kt.om=Pe%200>=100;var Oe=Dt(kt,Ot),je=Z(kt,Ot);Bt.attr("d",d(Pe,Ae,Oe,je))}var Le=!1,Ie,Ut,ee;if(kt.so)ee=ie.outlierwidth,Ut=ie.outliercolor,Ie=_e.outliercolor;else{var Kt=(ie||{}).width;ee=(kt.mlw+1||Kt+1||(kt.trace?(kt.trace.marker.line||{}).width:0)+1)-1||0,"mlc"in kt?Ut=kt.mlcc=Ht.lineScale(kt.mlc):C.isArrayOrTypedArray(ie.color)?Ut=h.defaultLine:Ut=ie.color,C.isArrayOrTypedArray(_e.color)&&(Ie=h.defaultLine,Le=!0),"mc"in kt?Ie=kt.mcc=Ht.markerScale(kt.mc):Ie=_e.color||_e.colors||"rgba(0,0,0,0)",Ht.selectedColorFn&&(Ie=Ht.selectedColorFn(kt))}if(kt.om)Bt.call(h.stroke,Ie).style({"stroke-width":(ee||1)+"px",fill:"none"});else{Bt.style("stroke-width",(kt.isBlank?0:ee)+"px");var ne=_e.gradient,zt=kt.mgt;zt?Le=!0:zt=ne&&ne.type,C.isArrayOrTypedArray(zt)&&(zt=zt[0],L[zt]||(zt=0));var qt=_e.pattern,Zt=qt&&c.getPatternAttr(qt.shape,kt.i,"");if(zt&&zt!=="none"){var ae=kt.mgc;ae?Le=!0:ae=ne.color;var vt=Ot.uid;Le&&(vt+="-"+kt.i),c.gradient(Bt,ye,vt,zt,[[0,ae],[1,Ie]],"fill")}else if(Zt){var Mt=!1,Lt=qt.fgcolor;!Lt&&Qt&&Qt.color&&(Lt=Qt.color,Mt=!0);var $t=c.getPatternAttr(Lt,kt.i,Qt&&Qt.color||null),ge=c.getPatternAttr(qt.bgcolor,kt.i,null),de=qt.fgopacity,sr=c.getPatternAttr(qt.size,kt.i,8),mr=c.getPatternAttr(qt.solidity,kt.i,.3);Mt=Mt||kt.mcc||C.isArrayOrTypedArray(qt.shape)||C.isArrayOrTypedArray(qt.bgcolor)||C.isArrayOrTypedArray(qt.fgcolor)||C.isArrayOrTypedArray(qt.size)||C.isArrayOrTypedArray(qt.solidity);var Ve=Ot.uid;Mt&&(Ve+="-"+kt.i),c.pattern(Bt,"point",ye,Ve,Zt,sr,mr,kt.mcc,qt.fillmode,ge,$t,de)}else C.isArrayOrTypedArray(Ie)?h.fill(Bt,Ie[kt.i]):h.fill(Bt,Ie);ee&&h.stroke(Bt,Ut)}},c.makePointStyleFns=function(kt){var Bt={},Ot=kt.marker;return Bt.markerScale=c.tryColorscale(Ot,""),Bt.lineScale=c.tryColorscale(Ot,"line"),S.traceIs(kt,"symbols")&&(Bt.ms2mrc=x.isBubble(kt)?m(kt):function(){return(Ot.size||6)/2}),kt.selectedpoints&&C.extendFlat(Bt,c.makeSelectedPointStyleFns(kt)),Bt},c.makeSelectedPointStyleFns=function(kt){var Bt={},Ot=kt.selected||{},Ht=kt.unselected||{},ye=kt.marker||{},Qt=Ot.marker||{},_e=Ht.marker||{},ie=ye.opacity,Ae=Qt.opacity,Pe=_e.opacity,Oe=Ae!==void 0,je=Pe!==void 0;(C.isArrayOrTypedArray(ie)||Oe||je)&&(Bt.selectedOpacityFn=function(Zt){var ae=Zt.mo===void 0?ye.opacity:Zt.mo;return Zt.selected?Oe?Ae:ae:je?Pe:u*ae});var Le=ye.color,Ie=Qt.color,Ut=_e.color;(Ie||Ut)&&(Bt.selectedColorFn=function(Zt){var ae=Zt.mcc||Le;return Zt.selected?Ie||ae:Ut||ae});var ee=ye.size,Kt=Qt.size,ne=_e.size,zt=Kt!==void 0,qt=ne!==void 0;return S.traceIs(kt,"symbols")&&(zt||qt)&&(Bt.selectedSizeFn=function(Zt){var ae=Zt.mrc||ee/2;return Zt.selected?zt?Kt/2:ae:qt?ne/2:ae}),Bt},c.makeSelectedTextStyleFns=function(kt){var Bt={},Ot=kt.selected||{},Ht=kt.unselected||{},ye=kt.textfont||{},Qt=Ot.textfont||{},_e=Ht.textfont||{},ie=ye.color,Ae=Qt.color,Pe=_e.color;return Bt.selectedTextColorFn=function(Oe){var je=Oe.tc||ie;return Oe.selected?Ae||je:Pe||(Ae?je:h.addOpacity(je,u))},Bt},c.selectedPointStyle=function(kt,Bt){if(!(!kt.size()||!Bt.selectedpoints)){var Ot=c.makeSelectedPointStyleFns(Bt),Ht=Bt.marker||{},ye=[];Ot.selectedOpacityFn&&ye.push(function(Qt,_e){Qt.style("opacity",Ot.selectedOpacityFn(_e))}),Ot.selectedColorFn&&ye.push(function(Qt,_e){h.fill(Qt,Ot.selectedColorFn(_e))}),Ot.selectedSizeFn&&ye.push(function(Qt,_e){var ie=_e.mx||Ht.symbol||0,Ae=Ot.selectedSizeFn(_e);Qt.attr("d",d(c.symbolNumber(ie),Ae,Dt(_e,Bt),Z(_e,Bt))),_e.mrc2=Ae}),ye.length&&kt.each(function(Qt){for(var _e=M.select(this),ie=0;ie<ye.length;ie++)ye[ie](_e,Qt)})}},c.tryColorscale=function(kt,Bt){var Ot=Bt?C.nestedProperty(kt,Bt).get():kt;if(Ot){var Ht=Ot.color;if((Ot.colorscale||Ot._colorAx)&&C.isArrayOrTypedArray(Ht))return l.makeColorScaleFuncFromTrace(Ot)}return C.identity};var D={start:1,end:-1,middle:0,bottom:1,top:-1};function B(kt,Bt,Ot,Ht,ye){var Qt=M.select(kt.node().parentNode),_e=Bt.indexOf("top")!==-1?"top":Bt.indexOf("bottom")!==-1?"bottom":"middle",ie=Bt.indexOf("left")!==-1?"end":Bt.indexOf("right")!==-1?"start":"middle",Ae=Ht?Ht/.8+1:0,Pe=(n.lineCount(kt)-1)*s+1,Oe=D[ie]*Ae,je=Ot*.75+D[_e]*Ae+(D[_e]-1)*Pe*Ot/2;kt.attr("text-anchor",ie),ye||Qt.attr("transform",t(Oe,je))}function I(kt,Bt){var Ot=kt.ts||Bt.textfont.size;return i(Ot)&&Ot>0?Ot:0}c.textPointStyle=function(kt,Bt,Ot){if(kt.size()){var Ht;if(Bt.selectedpoints){var ye=c.makeSelectedTextStyleFns(Bt);Ht=ye.selectedTextColorFn}var Qt=Bt.texttemplate,_e=Ot._fullLayout;kt.each(function(ie){var Ae=M.select(this),Pe=Qt?C.extractOption(ie,Bt,"txt","texttemplate"):C.extractOption(ie,Bt,"tx","text");if(!Pe&&Pe!==0){Ae.remove();return}if(Qt){var Oe=Bt._module.formatLabels,je=Oe?Oe(ie,Bt,_e):{},Le={};y(Le,Bt,ie.i);var Ie=Bt._meta||{};Pe=C.texttemplateString(Pe,je,_e._d3locale,Le,ie,Ie)}var Ut=ie.tp||Bt.textposition,ee=I(ie,Bt),Kt=Ht?Ht(ie):ie.tc||Bt.textfont.color;Ae.call(c.font,{family:ie.tf||Bt.textfont.family,weight:ie.tw||Bt.textfont.weight,style:ie.ty||Bt.textfont.style,variant:ie.tv||Bt.textfont.variant,textcase:ie.tC||Bt.textfont.textcase,lineposition:ie.tE||Bt.textfont.lineposition,shadow:ie.tS||Bt.textfont.shadow,size:ee,color:Kt}).text(Pe).call(n.convertToTspans,Ot).call(B,Ut,ee,ie.mrc)})}},c.selectedTextStyle=function(kt,Bt){if(!(!kt.size()||!Bt.selectedpoints)){var Ot=c.makeSelectedTextStyleFns(Bt);kt.each(function(Ht){var ye=M.select(this),Qt=Ot.selectedTextColorFn(Ht),_e=Ht.tp||Bt.textposition,ie=I(Ht,Bt);h.fill(ye,Qt);var Ae=S.traceIs(Bt,"bar-like");B(ye,_e,ie,Ht.mrc2||Ht.mrc,Ae)})}};var V=.5;c.smoothopen=function(kt,Bt){if(kt.length<3)return"M"+kt.join("L");var Ot="M"+kt[0],Ht=[],ye;for(ye=1;ye<kt.length-1;ye++)Ht.push(Q(kt[ye-1],kt[ye],kt[ye+1],Bt));for(Ot+="Q"+Ht[0][0]+" "+kt[1],ye=2;ye<kt.length-1;ye++)Ot+="C"+Ht[ye-2][1]+" "+Ht[ye-1][0]+" "+kt[ye];return Ot+="Q"+Ht[kt.length-3][1]+" "+kt[kt.length-1],Ot},c.smoothclosed=function(kt,Bt){if(kt.length<3)return"M"+kt.join("L")+"Z";var Ot="M"+kt[0],Ht=kt.length-1,ye=[Q(kt[Ht],kt[0],kt[1],Bt)],Qt;for(Qt=1;Qt<Ht;Qt++)ye.push(Q(kt[Qt-1],kt[Qt],kt[Qt+1],Bt));for(ye.push(Q(kt[Ht-1],kt[Ht],kt[0],Bt)),Qt=1;Qt<=Ht;Qt++)Ot+="C"+ye[Qt-1][1]+" "+ye[Qt][0]+" "+kt[Qt];return Ot+="C"+ye[Ht][1]+" "+ye[0][0]+" "+kt[0]+"Z",Ot};var N,F;function U(kt,Bt,Ot){return Ot&&(kt=lt(kt)),Bt?Y(kt[1]):G(kt[0])}function G(kt){var Bt=M.round(kt,2);return N=Bt,Bt}function Y(kt){var Bt=M.round(kt,2);return F=Bt,Bt}function Q(kt,Bt,Ot,Ht){var ye=kt[0]-Bt[0],Qt=kt[1]-Bt[1],_e=Ot[0]-Bt[0],ie=Ot[1]-Bt[1],Ae=Math.pow(ye*ye+Qt*Qt,V/2),Pe=Math.pow(_e*_e+ie*ie,V/2),Oe=(Pe*Pe*ye-Ae*Ae*_e)*Ht,je=(Pe*Pe*Qt-Ae*Ae*ie)*Ht,Le=3*Pe*(Ae+Pe),Ie=3*Ae*(Ae+Pe);return[[G(Bt[0]+(Le&&Oe/Le)),Y(Bt[1]+(Le&&je/Le))],[G(Bt[0]-(Ie&&Oe/Ie)),Y(Bt[1]-(Ie&&je/Ie))]]}var ft={hv:function(kt,Bt,Ot){return"H"+G(Bt[0])+"V"+U(Bt,1,Ot)},vh:function(kt,Bt,Ot){return"V"+Y(Bt[1])+"H"+U(Bt,0,Ot)},hvh:function(kt,Bt,Ot){return"H"+G((kt[0]+Bt[0])/2)+"V"+Y(Bt[1])+"H"+U(Bt,0,Ot)},vhv:function(kt,Bt,Ot){return"V"+Y((kt[1]+Bt[1])/2)+"H"+G(Bt[0])+"V"+U(Bt,1,Ot)}},ut=function(kt,Bt,Ot){return"L"+U(Bt,0,Ot)+","+U(Bt,1,Ot)};c.steps=function(kt){var Bt=ft[kt]||ut;return function(Ot){for(var Ht="M"+G(Ot[0][0])+","+Y(Ot[0][1]),ye=Ot.length,Qt=1;Qt<ye;Qt++)Ht+=Bt(Ot[Qt-1],Ot[Qt],Qt===ye-1);return Ht}};function lt(kt,Bt){var Ot=kt.backoff,Ht=kt.trace,ye=kt.d,Qt=kt.i;if(Ot&&Ht&&Ht.marker&&Ht.marker.angle%360===0&&Ht.line&&Ht.line.shape!=="spline"){var _e=C.isArrayOrTypedArray(Ot),ie=kt,Ae=Bt?Bt[0]:N||0,Pe=Bt?Bt[1]:F||0,Oe=ie[0],je=ie[1],Le=Oe-Ae,Ie=je-Pe,Ut=Math.atan2(Ie,Le),ee=_e?Ot[Qt]:Ot;if(ee==="auto"){var Kt=ie.i;Ht.type==="scatter"&&Kt--;var ne=ie.marker,zt=ne.symbol;C.isArrayOrTypedArray(zt)&&(zt=zt[Kt]);var qt=ne.size;C.isArrayOrTypedArray(qt)&&(qt=qt[Kt]),ee=ne?c.symbolBackOffs[c.symbolNumber(zt)]*qt:0,ee+=c.getMarkerStandoff(ye[Kt],Ht)||0}var Zt=Oe-ee*Math.cos(Ut),ae=je-ee*Math.sin(Ut);(Zt<=Oe&&Zt>=Ae||Zt>=Oe&&Zt<=Ae)&&(ae<=je&&ae>=Pe||ae>=je&&ae<=Pe)&&(kt=[Zt,ae])}return kt}c.applyBackoff=lt,c.makeTester=function(){var kt=C.ensureSingleById(M.select("body"),"svg","js-plotly-tester",function(Ot){Ot.attr(o.svgAttrs).style({position:"absolute",left:"-10000px",top:"-10000px",width:"9000px",height:"9000px","z-index":"1"})}),Bt=C.ensureSingle(kt,"path","js-reference-point",function(Ot){Ot.attr("d","M0,0H1V1H0Z").style({"stroke-width":0,fill:"black"})});c.tester=kt,c.testref=Bt},c.savedBBoxes={};var K=0,$=1e4;c.bBox=function(kt,Bt,Ot){Ot||(Ot=H(kt));var Ht;if(Ot){if(Ht=c.savedBBoxes[Ot],Ht)return C.extendFlat({},Ht)}else if(kt.childNodes.length===1){var ye=kt.childNodes[0];if(Ot=H(ye),Ot){var Qt=+ye.getAttribute("x")||0,_e=+ye.getAttribute("y")||0,ie=ye.getAttribute("transform");if(!ie){var Ae=c.bBox(ye,!1,Ot);return Qt&&(Ae.left+=Qt,Ae.right+=Qt),_e&&(Ae.top+=_e,Ae.bottom+=_e),Ae}if(Ot+="~"+Qt+"~"+_e+"~"+ie,Ht=c.savedBBoxes[Ot],Ht)return C.extendFlat({},Ht)}}var Pe,Oe;Bt?Pe=kt:(Oe=c.tester.node(),Pe=kt.cloneNode(!0),Oe.appendChild(Pe)),M.select(Pe).attr("transform",null).call(n.positionText,0,0);var je=Pe.getBoundingClientRect(),Le=c.testref.node().getBoundingClientRect();Bt||Oe.removeChild(Pe);var Ie={height:je.height,width:je.width,left:je.left-Le.left,top:je.top-Le.top,right:je.right-Le.left,bottom:je.bottom-Le.top};return K>=$&&(c.savedBBoxes={},K=0),Ot&&(c.savedBBoxes[Ot]=Ie),K++,C.extendFlat({},Ie)};function H(kt){var Bt=kt.getAttribute("data-unformatted");if(Bt!==null)return Bt+kt.getAttribute("data-math")+kt.getAttribute("text-anchor")+kt.getAttribute("style")}c.setClipUrl=function(kt,Bt,Ot){kt.attr("clip-path",at(Bt,Ot))};function at(kt,Bt){if(!kt)return null;var Ot=Bt._context,Ht=Ot._exportedPlot?"":Ot._baseUrl||"";return Ht?"url('"+Ht+"#"+kt+"')":"url(#"+kt+")"}c.getTranslate=function(kt){var Bt=/.*\btranslate\((-?\d*\.?\d*)[^-\d]*(-?\d*\.?\d*)[^\d].*/,Ot=kt.attr?"attr":"getAttribute",Ht=kt[Ot]("transform")||"",ye=Ht.replace(Bt,function(Qt,_e,ie){return[_e,ie].join(" ")}).split(" ");return{x:+ye[0]||0,y:+ye[1]||0}},c.setTranslate=function(kt,Bt,Ot){var Ht=/(\btranslate\(.*?\);?)/,ye=kt.attr?"attr":"getAttribute",Qt=kt.attr?"attr":"setAttribute",_e=kt[ye]("transform")||"";return Bt=Bt||0,Ot=Ot||0,_e=_e.replace(Ht,"").trim(),_e+=t(Bt,Ot),_e=_e.trim(),kt[Qt]("transform",_e),_e},c.getScale=function(kt){var Bt=/.*\bscale\((\d*\.?\d*)[^\d]*(\d*\.?\d*)[^\d].*/,Ot=kt.attr?"attr":"getAttribute",Ht=kt[Ot]("transform")||"",ye=Ht.replace(Bt,function(Qt,_e,ie){return[_e,ie].join(" ")}).split(" ");return{x:+ye[0]||1,y:+ye[1]||1}},c.setScale=function(kt,Bt,Ot){var Ht=/(\bscale\(.*?\);?)/,ye=kt.attr?"attr":"getAttribute",Qt=kt.attr?"attr":"setAttribute",_e=kt[ye]("transform")||"";return Bt=Bt||1,Ot=Ot||1,_e=_e.replace(Ht,"").trim(),_e+="scale("+Bt+","+Ot+")",_e=_e.trim(),kt[Qt]("transform",_e),_e};var ct=/\s*sc.*/;c.setPointGroupScale=function(kt,Bt,Ot){if(Bt=Bt||1,Ot=Ot||1,!!kt){var Ht=Bt===1&&Ot===1?"":"scale("+Bt+","+Ot+")";kt.each(function(){var ye=(this.getAttribute("transform")||"").replace(ct,"");ye+=Ht,ye=ye.trim(),this.setAttribute("transform",ye)})}};var et=/translate\([^)]*\)\s*$/;c.setTextPointsScale=function(kt,Bt,Ot){kt&&kt.each(function(){var Ht,ye=M.select(this),Qt=ye.select("text");if(Qt.node()){var _e=parseFloat(Qt.attr("x")||0),ie=parseFloat(Qt.attr("y")||0),Ae=(ye.attr("transform")||"").match(et);Bt===1&&Ot===1?Ht=[]:Ht=[t(_e,ie),"scale("+Bt+","+Ot+")",t(-_e,-ie)],Ae&&Ht.push(Ae),ye.attr("transform",Ht.join(""))}})};function Z(kt,Bt){var Ot;return kt&&(Ot=kt.mf),Ot===void 0&&(Ot=Bt.marker&&Bt.marker.standoff||0),!Bt._geo&&!Bt._xA?-Ot:Ot}c.getMarkerStandoff=Z;var ot=Math.atan2,st=Math.cos,dt=Math.sin;function xt(kt,Bt){var Ot=Bt[0],Ht=Bt[1];return[Ot*st(kt)-Ht*dt(kt),Ot*dt(kt)+Ht*st(kt)]}var At,St,Nt,Wt,Vt,jt;function Dt(kt,Bt){var Ot=kt.ma;Ot===void 0&&(Ot=Bt.marker.angle,(!Ot||C.isArrayOrTypedArray(Ot))&&(Ot=0));var Ht,ye,Qt=Bt.marker.angleref;if(Qt==="previous"||Qt==="north"){if(Bt._geo){var _e=Bt._geo.project(kt.lonlat);Ht=_e[0],ye=_e[1]}else{var ie=Bt._xA,Ae=Bt._yA;if(ie&&Ae)Ht=ie.c2p(kt.x),ye=Ae.c2p(kt.y);else return 90}if(Bt._geo){var Pe=kt.lonlat[0],Oe=kt.lonlat[1],je=Bt._geo.project([Pe,Oe+1e-5]),Le=Bt._geo.project([Pe+1e-5,Oe]),Ie=ot(Le[1]-ye,Le[0]-Ht),Ut=ot(je[1]-ye,je[0]-Ht),ee;if(Qt==="north")ee=Ot/180*Math.PI;else if(Qt==="previous"){var Kt=Pe/180*Math.PI,ne=Oe/180*Math.PI,zt=At/180*Math.PI,qt=St/180*Math.PI,Zt=zt-Kt,ae=st(qt)*dt(Zt),vt=dt(qt)*st(ne)-st(qt)*dt(ne)*st(Zt);ee=-ot(ae,vt)-Math.PI,At=Pe,St=Oe}var Mt=xt(Ie,[st(ee),0]),Lt=xt(Ut,[dt(ee),0]);Ot=ot(Mt[1]+Lt[1],Mt[0]+Lt[0])/Math.PI*180,Qt==="previous"&&!(jt===Bt.uid&&kt.i===Vt+1)&&(Ot=null)}if(Qt==="previous"&&!Bt._geo)if(jt===Bt.uid&&kt.i===Vt+1&&i(Ht)&&i(ye)){var $t=Ht-Nt,ge=ye-Wt,de=Bt.line&&Bt.line.shape||"",sr=de.slice(de.length-1);sr==="h"&&(ge=0),sr==="v"&&($t=0),Ot+=ot(ge,$t)/Math.PI*180+90}else Ot=null}return Nt=Ht,Wt=ye,Vt=kt.i,jt=Bt.uid,Ot}c.getMarkerAngle=Dt},38882:function(nt,W,e){var M=e(26953),C=e(45568).round,r="M0,0Z",i=Math.sqrt(2),w=Math.sqrt(3),S=Math.PI,h=Math.cos,l=Math.sin;nt.exports={circle:{n:0,f:function(x,m,y){if(t(m))return r;var c=C(x,2),p="M"+c+",0A"+c+","+c+" 0 1,1 0,-"+c+"A"+c+","+c+" 0 0,1 "+c+",0Z";return y?u(m,y,p):p}},square:{n:1,f:function(x,m,y){if(t(m))return r;var c=C(x,2);return u(m,y,"M"+c+","+c+"H-"+c+"V-"+c+"H"+c+"Z")}},diamond:{n:2,f:function(x,m,y){if(t(m))return r;var c=C(x*1.3,2);return u(m,y,"M"+c+",0L0,"+c+"L-"+c+",0L0,-"+c+"Z")}},cross:{n:3,f:function(x,m,y){if(t(m))return r;var c=C(x*.4,2),p=C(x*1.2,2);return u(m,y,"M"+p+","+c+"H"+c+"V"+p+"H-"+c+"V"+c+"H-"+p+"V-"+c+"H-"+c+"V-"+p+"H"+c+"V-"+c+"H"+p+"Z")}},x:{n:4,f:function(x,m,y){if(t(m))return r;var c=C(x*.8/i,2),p="l"+c+","+c,f="l"+c+",-"+c,T="l-"+c+",-"+c,k="l-"+c+","+c;return u(m,y,"M0,"+c+p+f+T+f+T+k+T+k+p+k+p+"Z")}},"triangle-up":{n:5,f:function(x,m,y){if(t(m))return r;var c=C(x*2/w,2),p=C(x/2,2),f=C(x,2);return u(m,y,"M-"+c+","+p+"H"+c+"L0,-"+f+"Z")}},"triangle-down":{n:6,f:function(x,m,y){if(t(m))return r;var c=C(x*2/w,2),p=C(x/2,2),f=C(x,2);return u(m,y,"M-"+c+",-"+p+"H"+c+"L0,"+f+"Z")}},"triangle-left":{n:7,f:function(x,m,y){if(t(m))return r;var c=C(x*2/w,2),p=C(x/2,2),f=C(x,2);return u(m,y,"M"+p+",-"+c+"V"+c+"L-"+f+",0Z")}},"triangle-right":{n:8,f:function(x,m,y){if(t(m))return r;var c=C(x*2/w,2),p=C(x/2,2),f=C(x,2);return u(m,y,"M-"+p+",-"+c+"V"+c+"L"+f+",0Z")}},"triangle-ne":{n:9,f:function(x,m,y){if(t(m))return r;var c=C(x*.6,2),p=C(x*1.2,2);return u(m,y,"M-"+p+",-"+c+"H"+c+"V"+p+"Z")}},"triangle-se":{n:10,f:function(x,m,y){if(t(m))return r;var c=C(x*.6,2),p=C(x*1.2,2);return u(m,y,"M"+c+",-"+p+"V"+c+"H-"+p+"Z")}},"triangle-sw":{n:11,f:function(x,m,y){if(t(m))return r;var c=C(x*.6,2),p=C(x*1.2,2);return u(m,y,"M"+p+","+c+"H-"+c+"V-"+p+"Z")}},"triangle-nw":{n:12,f:function(x,m,y){if(t(m))return r;var c=C(x*.6,2),p=C(x*1.2,2);return u(m,y,"M-"+c+","+p+"V-"+c+"H"+p+"Z")}},pentagon:{n:13,f:function(x,m,y){if(t(m))return r;var c=C(x*.951,2),p=C(x*.588,2),f=C(-x,2),T=C(x*-.309,2),k=C(x*.809,2);return u(m,y,"M"+c+","+T+"L"+p+","+k+"H-"+p+"L-"+c+","+T+"L0,"+f+"Z")}},hexagon:{n:14,f:function(x,m,y){if(t(m))return r;var c=C(x,2),p=C(x/2,2),f=C(x*w/2,2);return u(m,y,"M"+f+",-"+p+"V"+p+"L0,"+c+"L-"+f+","+p+"V-"+p+"L0,-"+c+"Z")}},hexagon2:{n:15,f:function(x,m,y){if(t(m))return r;var c=C(x,2),p=C(x/2,2),f=C(x*w/2,2);return u(m,y,"M-"+p+","+f+"H"+p+"L"+c+",0L"+p+",-"+f+"H-"+p+"L-"+c+",0Z")}},octagon:{n:16,f:function(x,m,y){if(t(m))return r;var c=C(x*.924,2),p=C(x*.383,2);return u(m,y,"M-"+p+",-"+c+"H"+p+"L"+c+",-"+p+"V"+p+"L"+p+","+c+"H-"+p+"L-"+c+","+p+"V-"+p+"Z")}},star:{n:17,f:function(x,m,y){if(t(m))return r;var c=x*1.4,p=C(c*.225,2),f=C(c*.951,2),T=C(c*.363,2),k=C(c*.588,2),P=C(-c,2),g=C(c*-.309,2),A=C(c*.118,2),E=C(c*.809,2),d=C(c*.382,2);return u(m,y,"M"+p+","+g+"H"+f+"L"+T+","+A+"L"+k+","+E+"L0,"+d+"L-"+k+","+E+"L-"+T+","+A+"L-"+f+","+g+"H-"+p+"L0,"+P+"Z")}},hexagram:{n:18,f:function(x,m,y){if(t(m))return r;var c=C(x*.66,2),p=C(x*.38,2),f=C(x*.76,2);return u(m,y,"M-"+f+",0l-"+p+",-"+c+"h"+f+"l"+p+",-"+c+"l"+p+","+c+"h"+f+"l-"+p+","+c+"l"+p+","+c+"h-"+f+"l-"+p+","+c+"l-"+p+",-"+c+"h-"+f+"Z")}},"star-triangle-up":{n:19,f:function(x,m,y){if(t(m))return r;var c=C(x*w*.8,2),p=C(x*.8,2),f=C(x*1.6,2),T=C(x*4,2),k="A "+T+","+T+" 0 0 1 ";return u(m,y,"M-"+c+","+p+k+c+","+p+k+"0,-"+f+k+"-"+c+","+p+"Z")}},"star-triangle-down":{n:20,f:function(x,m,y){if(t(m))return r;var c=C(x*w*.8,2),p=C(x*.8,2),f=C(x*1.6,2),T=C(x*4,2),k="A "+T+","+T+" 0 0 1 ";return u(m,y,"M"+c+",-"+p+k+"-"+c+",-"+p+k+"0,"+f+k+c+",-"+p+"Z")}},"star-square":{n:21,f:function(x,m,y){if(t(m))return r;var c=C(x*1.1,2),p=C(x*2,2),f="A "+p+","+p+" 0 0 1 ";return u(m,y,"M-"+c+",-"+c+f+"-"+c+","+c+f+c+","+c+f+c+",-"+c+f+"-"+c+",-"+c+"Z")}},"star-diamond":{n:22,f:function(x,m,y){if(t(m))return r;var c=C(x*1.4,2),p=C(x*1.9,2),f="A "+p+","+p+" 0 0 1 ";return u(m,y,"M-"+c+",0"+f+"0,"+c+f+c+",0"+f+"0,-"+c+f+"-"+c+",0Z")}},"diamond-tall":{n:23,f:function(x,m,y){if(t(m))return r;var c=C(x*.7,2),p=C(x*1.4,2);return u(m,y,"M0,"+p+"L"+c+",0L0,-"+p+"L-"+c+",0Z")}},"diamond-wide":{n:24,f:function(x,m,y){if(t(m))return r;var c=C(x*1.4,2),p=C(x*.7,2);return u(m,y,"M0,"+p+"L"+c+",0L0,-"+p+"L-"+c+",0Z")}},hourglass:{n:25,f:function(x,m,y){if(t(m))return r;var c=C(x,2);return u(m,y,"M"+c+","+c+"H-"+c+"L"+c+",-"+c+"H-"+c+"Z")},noDot:!0},bowtie:{n:26,f:function(x,m,y){if(t(m))return r;var c=C(x,2);return u(m,y,"M"+c+","+c+"V-"+c+"L-"+c+","+c+"V-"+c+"Z")},noDot:!0},"circle-cross":{n:27,f:function(x,m,y){if(t(m))return r;var c=C(x,2);return u(m,y,"M0,"+c+"V-"+c+"M"+c+",0H-"+c+"M"+c+",0A"+c+","+c+" 0 1,1 0,-"+c+"A"+c+","+c+" 0 0,1 "+c+",0Z")},needLine:!0,noDot:!0},"circle-x":{n:28,f:function(x,m,y){if(t(m))return r;var c=C(x,2),p=C(x/i,2);return u(m,y,"M"+p+","+p+"L-"+p+",-"+p+"M"+p+",-"+p+"L-"+p+","+p+"M"+c+",0A"+c+","+c+" 0 1,1 0,-"+c+"A"+c+","+c+" 0 0,1 "+c+",0Z")},needLine:!0,noDot:!0},"square-cross":{n:29,f:function(x,m,y){if(t(m))return r;var c=C(x,2);return u(m,y,"M0,"+c+"V-"+c+"M"+c+",0H-"+c+"M"+c+","+c+"H-"+c+"V-"+c+"H"+c+"Z")},needLine:!0,noDot:!0},"square-x":{n:30,f:function(x,m,y){if(t(m))return r;var c=C(x,2);return u(m,y,"M"+c+","+c+"L-"+c+",-"+c+"M"+c+",-"+c+"L-"+c+","+c+"M"+c+","+c+"H-"+c+"V-"+c+"H"+c+"Z")},needLine:!0,noDot:!0},"diamond-cross":{n:31,f:function(x,m,y){if(t(m))return r;var c=C(x*1.3,2);return u(m,y,"M"+c+",0L0,"+c+"L-"+c+",0L0,-"+c+"ZM0,-"+c+"V"+c+"M-"+c+",0H"+c)},needLine:!0,noDot:!0},"diamond-x":{n:32,f:function(x,m,y){if(t(m))return r;var c=C(x*1.3,2),p=C(x*.65,2);return u(m,y,"M"+c+",0L0,"+c+"L-"+c+",0L0,-"+c+"ZM-"+p+",-"+p+"L"+p+","+p+"M-"+p+","+p+"L"+p+",-"+p)},needLine:!0,noDot:!0},"cross-thin":{n:33,f:function(x,m,y){if(t(m))return r;var c=C(x*1.4,2);return u(m,y,"M0,"+c+"V-"+c+"M"+c+",0H-"+c)},needLine:!0,noDot:!0,noFill:!0},"x-thin":{n:34,f:function(x,m,y){if(t(m))return r;var c=C(x,2);return u(m,y,"M"+c+","+c+"L-"+c+",-"+c+"M"+c+",-"+c+"L-"+c+","+c)},needLine:!0,noDot:!0,noFill:!0},asterisk:{n:35,f:function(x,m,y){if(t(m))return r;var c=C(x*1.2,2),p=C(x*.85,2);return u(m,y,"M0,"+c+"V-"+c+"M"+c+",0H-"+c+"M"+p+","+p+"L-"+p+",-"+p+"M"+p+",-"+p+"L-"+p+","+p)},needLine:!0,noDot:!0,noFill:!0},hash:{n:36,f:function(x,m,y){if(t(m))return r;var c=C(x/2,2),p=C(x,2);return u(m,y,"M"+c+","+p+"V-"+p+"M"+(c-p)+",-"+p+"V"+p+"M"+p+","+c+"H-"+p+"M-"+p+","+(c-p)+"H"+p)},needLine:!0,noFill:!0},"y-up":{n:37,f:function(x,m,y){if(t(m))return r;var c=C(x*1.2,2),p=C(x*1.6,2),f=C(x*.8,2);return u(m,y,"M-"+c+","+f+"L0,0M"+c+","+f+"L0,0M0,-"+p+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-down":{n:38,f:function(x,m,y){if(t(m))return r;var c=C(x*1.2,2),p=C(x*1.6,2),f=C(x*.8,2);return u(m,y,"M-"+c+",-"+f+"L0,0M"+c+",-"+f+"L0,0M0,"+p+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-left":{n:39,f:function(x,m,y){if(t(m))return r;var c=C(x*1.2,2),p=C(x*1.6,2),f=C(x*.8,2);return u(m,y,"M"+f+","+c+"L0,0M"+f+",-"+c+"L0,0M-"+p+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-right":{n:40,f:function(x,m,y){if(t(m))return r;var c=C(x*1.2,2),p=C(x*1.6,2),f=C(x*.8,2);return u(m,y,"M-"+f+","+c+"L0,0M-"+f+",-"+c+"L0,0M"+p+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"line-ew":{n:41,f:function(x,m,y){if(t(m))return r;var c=C(x*1.4,2);return u(m,y,"M"+c+",0H-"+c)},needLine:!0,noDot:!0,noFill:!0},"line-ns":{n:42,f:function(x,m,y){if(t(m))return r;var c=C(x*1.4,2);return u(m,y,"M0,"+c+"V-"+c)},needLine:!0,noDot:!0,noFill:!0},"line-ne":{n:43,f:function(x,m,y){if(t(m))return r;var c=C(x,2);return u(m,y,"M"+c+",-"+c+"L-"+c+","+c)},needLine:!0,noDot:!0,noFill:!0},"line-nw":{n:44,f:function(x,m,y){if(t(m))return r;var c=C(x,2);return u(m,y,"M"+c+","+c+"L-"+c+",-"+c)},needLine:!0,noDot:!0,noFill:!0},"arrow-up":{n:45,f:function(x,m,y){if(t(m))return r;var c=C(x,2),p=C(x*2,2);return u(m,y,"M0,0L-"+c+","+p+"H"+c+"Z")},backoff:1,noDot:!0},"arrow-down":{n:46,f:function(x,m,y){if(t(m))return r;var c=C(x,2),p=C(x*2,2);return u(m,y,"M0,0L-"+c+",-"+p+"H"+c+"Z")},noDot:!0},"arrow-left":{n:47,f:function(x,m,y){if(t(m))return r;var c=C(x*2,2),p=C(x,2);return u(m,y,"M0,0L"+c+",-"+p+"V"+p+"Z")},noDot:!0},"arrow-right":{n:48,f:function(x,m,y){if(t(m))return r;var c=C(x*2,2),p=C(x,2);return u(m,y,"M0,0L-"+c+",-"+p+"V"+p+"Z")},noDot:!0},"arrow-bar-up":{n:49,f:function(x,m,y){if(t(m))return r;var c=C(x,2),p=C(x*2,2);return u(m,y,"M-"+c+",0H"+c+"M0,0L-"+c+","+p+"H"+c+"Z")},backoff:1,needLine:!0,noDot:!0},"arrow-bar-down":{n:50,f:function(x,m,y){if(t(m))return r;var c=C(x,2),p=C(x*2,2);return u(m,y,"M-"+c+",0H"+c+"M0,0L-"+c+",-"+p+"H"+c+"Z")},needLine:!0,noDot:!0},"arrow-bar-left":{n:51,f:function(x,m,y){if(t(m))return r;var c=C(x*2,2),p=C(x,2);return u(m,y,"M0,-"+p+"V"+p+"M0,0L"+c+",-"+p+"V"+p+"Z")},needLine:!0,noDot:!0},"arrow-bar-right":{n:52,f:function(x,m,y){if(t(m))return r;var c=C(x*2,2),p=C(x,2);return u(m,y,"M0,-"+p+"V"+p+"M0,0L-"+c+",-"+p+"V"+p+"Z")},needLine:!0,noDot:!0},arrow:{n:53,f:function(x,m,y){if(t(m))return r;var c=S/2.5,p=2*x*h(c),f=2*x*l(c);return u(m,y,"M0,0L"+-p+","+f+"L"+p+","+f+"Z")},backoff:.9,noDot:!0},"arrow-wide":{n:54,f:function(x,m,y){if(t(m))return r;var c=S/4,p=2*x*h(c),f=2*x*l(c);return u(m,y,"M0,0L"+-p+","+f+"A "+2*x+","+2*x+" 0 0 1 "+p+","+f+"Z")},backoff:.4,noDot:!0}};function t(x){return x===null}var n,o,a,s;function u(x,m,y){if((!x||x%360===0)&&!m)return y;if(a===x&&s===m&&n===y)return o;a=x,s=m,n=y;function c(D,B){var I=h(D),V=l(D),N=B[0],F=B[1]+(m||0);return[N*I-F*V,N*V+F*I]}for(var p=x/180*S,f=0,T=0,k=M(y),P="",g=0;g<k.length;g++){var A=k[g],E=A[0],d=f,_=T;if(E==="M"||E==="L")f=+A[1],T=+A[2];else if(E==="m"||E==="l")f+=+A[1],T+=+A[2];else if(E==="H")f=+A[1];else if(E==="h")f+=+A[1];else if(E==="V")T=+A[1];else if(E==="v")T+=+A[1];else if(E==="A"){f=+A[1],T=+A[2];var L=c(p,[+A[6],+A[7]]);A[6]=L[0],A[7]=L[1],A[3]=+A[3]+x}(E==="H"||E==="V")&&(E="L"),(E==="h"||E==="v")&&(E="l"),(E==="m"||E==="l")&&(f-=d,T-=_);var b=c(p,[f,T]);(E==="H"||E==="V")&&(E="L"),(E==="M"||E==="L"||E==="m"||E==="l")&&(A[1]=b[0],A[2]=b[1]),A[0]=E,P+=A[0]+A.slice(1).join(",")}return o=P,P}},75568:function(nt){nt.exports={visible:{valType:"boolean",editType:"calc"},type:{valType:"enumerated",values:["percent","constant","sqrt","data"],editType:"calc"},symmetric:{valType:"boolean",editType:"calc"},array:{valType:"data_array",editType:"calc"},arrayminus:{valType:"data_array",editType:"calc"},value:{valType:"number",min:0,dflt:10,editType:"calc"},valueminus:{valType:"number",min:0,dflt:10,editType:"calc"},traceref:{valType:"integer",min:0,dflt:0,editType:"style"},tracerefminus:{valType:"integer",min:0,dflt:0,editType:"style"},copy_ystyle:{valType:"boolean",editType:"plot"},copy_zstyle:{valType:"boolean",editType:"style"},color:{valType:"color",editType:"style"},thickness:{valType:"number",min:0,dflt:2,editType:"style"},width:{valType:"number",min:0,editType:"plot"},editType:"calc",_deprecated:{opacity:{valType:"number",editType:"style"}}}},352:function(nt,W,e){var M=e(10721),C=e(33626),r=e(29714),i=e(34809),w=e(25589);nt.exports=function(h){for(var l=h.calcdata,t=0;t<l.length;t++){var n=l[t],o=n[0].trace;if(o.visible===!0&&C.traceIs(o,"errorBarsOK")){var a=r.getFromId(h,o.xaxis),s=r.getFromId(h,o.yaxis);S(n,o,a,"x"),S(n,o,s,"y")}}};function S(h,l,t,n){var o=l["error_"+n]||{},a=o.visible&&["linear","log"].indexOf(t.type)!==-1,s=[];if(a){for(var u=w(o),x=0;x<h.length;x++){var m=h[x],y=m.i;if(y===void 0)y=x;else if(y===null)continue;var c=m[n];if(M(t.c2l(c))){var p=u(c,y);if(M(p[0])&&M(p[1])){var f=m[n+"s"]=c-p[0],T=m[n+"h"]=c+p[1];s.push(f,T)}}}var k=t._id,P=l._extremes[k],g=r.findExtremes(t,s,i.extendFlat({tozero:P.opts.tozero},{padded:!0}));P.min=P.min.concat(g.min),P.max=P.max.concat(g.max)}}},25589:function(nt){nt.exports=function(e){var M=e.type,C=e.symmetric;if(M==="data"){var r=e.array||[];if(C)return function(h,l){var t=+r[l];return[t,t]};var i=e.arrayminus||[];return function(h,l){var t=+r[l],n=+i[l];return!isNaN(t)||!isNaN(n)?[n||0,t||0]:[NaN,NaN]}}else{var w=W(M,e.value),S=W(M,e.valueminus);return C||e.valueminus===void 0?function(h){var l=w(h);return[l,l]}:function(h){return[S(h),w(h)]}}};function W(e,M){if(e==="percent")return function(C){return Math.abs(C*M/100)};if(e==="constant")return function(){return Math.abs(M)};if(e==="sqrt")return function(C){return Math.sqrt(Math.abs(C))}}},5543:function(nt,W,e){var M=e(10721),C=e(33626),r=e(34809),i=e(78032),w=e(75568);nt.exports=function(S,h,l,t){var n="error_"+t.axis,o=i.newContainer(h,n),a=S[n]||{};function s(f,T){return r.coerce(a,o,w,f,T)}var u=a.array!==void 0||a.value!==void 0||a.type==="sqrt",x=s("visible",u);if(x!==!1){var m=s("type","array"in a?"data":"percent"),y=!0;m!=="sqrt"&&(y=s("symmetric",!((m==="data"?"arrayminus":"valueminus")in a))),m==="data"?(s("array"),s("traceref"),y||(s("arrayminus"),s("tracerefminus"))):(m==="percent"||m==="constant")&&(s("value"),y||s("valueminus"));var c="copy_"+t.inherit+"style";if(t.inherit){var p=h["error_"+t.inherit];(p||{}).visible&&s(c,!(a.color||M(a.thickness)||M(a.width)))}(!t.inherit||!o[c])&&(s("color",l),s("thickness"),s("width",C.traceIs(h,"gl3d")?0:4))}}},77901:function(nt,W,e){var M=e(34809),C=e(13582).overrideAll,r=e(75568),i={error_x:M.extendFlat({},r),error_y:M.extendFlat({},r)};delete i.error_x.copy_zstyle,delete i.error_y.copy_zstyle,delete i.error_y.copy_ystyle;var w={error_x:M.extendFlat({},r),error_y:M.extendFlat({},r),error_z:M.extendFlat({},r)};delete w.error_x.copy_ystyle,delete w.error_y.copy_ystyle,delete w.error_z.copy_ystyle,delete w.error_z.copy_zstyle,nt.exports={moduleType:"component",name:"errorbars",schema:{traces:{scatter:i,bar:i,histogram:i,scatter3d:C(w,"calc","nested"),scattergl:C(i,"calc","nested")}},supplyDefaults:e(5543),calc:e(352),makeComputeError:e(25589),plot:e(42130),style:e(22800),hoverInfo:S};function S(h,l,t){(l.error_y||{}).visible&&(t.yerr=h.yh-h.y,l.error_y.symmetric||(t.yerrneg=h.y-h.ys)),(l.error_x||{}).visible&&(t.xerr=h.xh-h.x,l.error_x.symmetric||(t.xerrneg=h.x-h.xs))}},42130:function(nt,W,e){var M=e(45568),C=e(10721),r=e(62203),i=e(64726);nt.exports=function(S,h,l,t){var n,o=l.xaxis,a=l.yaxis,s=t&&t.duration>0,u=S._context.staticPlot;h.each(function(x){var m=x[0].trace,y=m.error_x||{},c=m.error_y||{},p;m.ids&&(p=function(P){return P.id});var f=i.hasMarkers(m)&&m.marker.maxdisplayed>0;!c.visible&&!y.visible&&(x=[]);var T=M.select(this).selectAll("g.errorbar").data(x,p);if(T.exit().remove(),!!x.length){y.visible||T.selectAll("path.xerror").remove(),c.visible||T.selectAll("path.yerror").remove(),T.style("opacity",1);var k=T.enter().append("g").classed("errorbar",!0);s&&k.style("opacity",0).transition().duration(t.duration).style("opacity",1),r.setClipUrl(T,l.layerClipId,S),T.each(function(P){var g=M.select(this),A=w(P,o,a);if(!(f&&!P.vis)){var E,d=g.select("path.yerror");if(c.visible&&C(A.x)&&C(A.yh)&&C(A.ys)){var _=c.width;E="M"+(A.x-_)+","+A.yh+"h"+2*_+"m-"+_+",0V"+A.ys,A.noYS||(E+="m-"+_+",0h"+2*_),n=!d.size(),n?d=g.append("path").style("vector-effect",u?"none":"non-scaling-stroke").classed("yerror",!0):s&&(d=d.transition().duration(t.duration).ease(t.easing)),d.attr("d",E)}else d.remove();var L=g.select("path.xerror");if(y.visible&&C(A.y)&&C(A.xh)&&C(A.xs)){var b=(y.copy_ystyle?c:y).width;E="M"+A.xh+","+(A.y-b)+"v"+2*b+"m0,-"+b+"H"+A.xs,A.noXS||(E+="m0,-"+b+"v"+2*b),n=!L.size(),n?L=g.append("path").style("vector-effect",u?"none":"non-scaling-stroke").classed("xerror",!0):s&&(L=L.transition().duration(t.duration).ease(t.easing)),L.attr("d",E)}else L.remove()}})}})};function w(S,h,l){var t={x:h.c2p(S.x),y:l.c2p(S.y)};return S.yh!==void 0&&(t.yh=l.c2p(S.yh),t.ys=l.c2p(S.ys),C(t.ys)||(t.noYS=!0,t.ys=l.c2p(S.ys,!0))),S.xh!==void 0&&(t.xh=h.c2p(S.xh),t.xs=h.c2p(S.xs),C(t.xs)||(t.noXS=!0,t.xs=h.c2p(S.xs,!0))),t}},22800:function(nt,W,e){var M=e(45568),C=e(78766);nt.exports=function(r){r.each(function(i){var w=i[0].trace,S=w.error_y||{},h=w.error_x||{},l=M.select(this);l.selectAll("path.yerror").style("stroke-width",S.thickness+"px").call(C.stroke,S.color),h.copy_ystyle&&(h=S),l.selectAll("path.xerror").style("stroke-width",h.thickness+"px").call(C.stroke,h.color)})}},70192:function(nt,W,e){var M=e(80337),C=e(6811).hoverlabel,r=e(93049).extendFlat;nt.exports={hoverlabel:{bgcolor:r({},C.bgcolor,{arrayOk:!0}),bordercolor:r({},C.bordercolor,{arrayOk:!0}),font:M({arrayOk:!0,editType:"none"}),align:r({},C.align,{arrayOk:!0}),namelength:r({},C.namelength,{arrayOk:!0}),editType:"none"}}},83552:function(nt,W,e){var M=e(34809),C=e(33626);nt.exports=function(i){var w=i.calcdata,S=i._fullLayout;function h(a){return function(s){return M.coerceHoverinfo({hoverinfo:s},{_module:a._module},S)}}for(var l=0;l<w.length;l++){var t=w[l],n=t[0].trace;if(!C.traceIs(n,"pie-like")){var o=C.traceIs(n,"2dMap")?r:M.fillArray;o(n.hoverinfo,t,"hi",h(n)),n.hovertemplate&&o(n.hovertemplate,t,"ht"),n.hoverlabel&&(o(n.hoverlabel.bgcolor,t,"hbg"),o(n.hoverlabel.bordercolor,t,"hbc"),o(n.hoverlabel.font.size,t,"hts"),o(n.hoverlabel.font.color,t,"htc"),o(n.hoverlabel.font.family,t,"htf"),o(n.hoverlabel.font.weight,t,"htw"),o(n.hoverlabel.font.style,t,"hty"),o(n.hoverlabel.font.variant,t,"htv"),o(n.hoverlabel.namelength,t,"hnl"),o(n.hoverlabel.align,t,"hta"))}}};function r(i,w,S,h){h=h||M.identity,Array.isArray(i)&&(w[0][S]=h(i))}},94225:function(nt,W,e){var M=e(33626),C=e(38103).hover;nt.exports=function(r,i,w){var S=M.getComponentMethod("annotations","onClick")(r,r._hoverdata);w!==void 0&&C(r,i,w,!0);function h(){r.emit("plotly_click",{points:r._hoverdata,event:i})}r._hoverdata&&i&&i.target&&(S&&S.then?S.then(h):h(),i.stopImmediatePropagation&&i.stopImmediatePropagation())}},85988:function(nt){nt.exports={YANGLE:60,HOVERARROWSIZE:6,HOVERTEXTPAD:3,HOVERFONTSIZE:13,HOVERFONT:"Arial, sans-serif",HOVERMINTIME:50,HOVERID:"-hover"}},3239:function(nt,W,e){var M=e(34809),C=e(70192),r=e(26430);nt.exports=function(i,w,S,h){function l(n,o){return M.coerce(i,w,C,n,o)}var t=M.extendFlat({},h.hoverlabel);w.hovertemplate&&(t.namelength=-1),r(i,w,l,t)}},36040:function(nt,W,e){var M=e(34809);W.getSubplot=function(h){return h.subplot||h.xaxis+h.yaxis||h.geo},W.isTraceInSubplots=function(h,l){if(h.type==="splom"){for(var t=h.xaxes||[],n=h.yaxes||[],o=0;o<t.length;o++)for(var a=0;a<n.length;a++)if(l.indexOf(t[o]+n[a])!==-1)return!0;return!1}return l.indexOf(W.getSubplot(h))!==-1},W.flat=function(h,l){for(var t=new Array(h.length),n=0;n<h.length;n++)t[n]=l;return t},W.p2c=function(h,l){for(var t=new Array(h.length),n=0;n<h.length;n++)t[n]=h[n].p2c(l);return t},W.getDistanceFunction=function(h,l,t,n){return h==="closest"?n||W.quadrature(l,t):h.charAt(0)==="x"?l:t},W.getClosest=function(h,l,t){if(t.index!==!1)t.index>=0&&t.index<h.length?t.distance=0:t.index=!1;else for(var n=0;n<h.length;n++){var o=l(h[n]);o<=t.distance&&(t.index=n,t.distance=o)}return t},W.inbox=function(h,l,t){return h*l<0||h===0?t:1/0},W.quadrature=function(h,l){return function(t){var n=h(t),o=l(t);return Math.sqrt(n*n+o*o)}},W.makeEventData=function(h,l,t){var n="index"in h?h.index:h.pointNumber,o={data:l._input,fullData:l,curveNumber:l.index,pointNumber:n};if(l._indexToPoints){var a=l._indexToPoints[n];a.length===1?o.pointIndex=a[0]:o.pointIndices=a}else o.pointIndex=n;return l._module.eventData?o=l._module.eventData(o,h,l,t,n):("xVal"in h?o.x=h.xVal:"x"in h&&(o.x=h.x),"yVal"in h?o.y=h.yVal:"y"in h&&(o.y=h.y),h.xa&&(o.xaxis=h.xa),h.ya&&(o.yaxis=h.ya),h.zLabelVal!==void 0&&(o.z=h.zLabelVal)),W.appendArrayPointValue(o,l,n),o},W.appendArrayPointValue=function(h,l,t){var n=l._arrayAttrs;if(n)for(var o=0;o<n.length;o++){var a=n[o],s=r(a);if(h[s]===void 0){var u=M.nestedProperty(l,a).get(),x=i(u,t);x!==void 0&&(h[s]=x)}}},W.appendArrayMultiPointValues=function(h,l,t){var n=l._arrayAttrs;if(n)for(var o=0;o<n.length;o++){var a=n[o],s=r(a);if(h[s]===void 0){for(var u=M.nestedProperty(l,a).get(),x=new Array(t.length),m=0;m<t.length;m++)x[m]=i(u,t[m]);h[s]=x}}};var C={ids:"id",locations:"location",labels:"label",values:"value","marker.colors":"color",parents:"parent"};function r(h){return C[h]||h}function i(h,l){if(Array.isArray(l)){if(Array.isArray(h)&&Array.isArray(h[l[0]]))return h[l[0]][l[1]]}else return h[l]}var w={x:!0,y:!0},S={"x unified":!0,"y unified":!0};W.isUnifiedHover=function(h){return typeof h!="string"?!1:!!S[h]},W.isXYhover=function(h){return typeof h!="string"?!1:!!w[h]}},38103:function(nt,W,e){var M=e(45568),C=e(10721),r=e(65657),i=e(34809),w=i.pushUnique,S=i.strTranslate,h=i.strRotate,l=e(68596),t=e(30635),n=e(93134),o=e(62203),a=e(78766),s=e(14751),u=e(29714),x=e(54826).zindexSeparator,m=e(33626),y=e(36040),c=e(85988),p=e(73970),f=e(6134),T=c.YANGLE,k=Math.PI*T/180,P=1/Math.sin(k),g=Math.cos(k),A=Math.sin(k),E=c.HOVERARROWSIZE,d=c.HOVERTEXTPAD,_={box:!0,ohlc:!0,violin:!0,candlestick:!0},L={scatter:!0,scattergl:!0,splom:!0};function b(Z,ot){return Z.distance-ot.distance}W.hover=function(Z,ot,st,dt){Z=i.getGraphDiv(Z);var xt=ot.target;i.throttle(Z._fullLayout._uid+c.HOVERID,c.HOVERMINTIME,function(){D(Z,ot,st,dt,xt)})},W.loneHover=function(Z,ot){var st=!0;Array.isArray(Z)||(st=!1,Z=[Z]);var dt=ot.gd,xt=at(dt),At=ct(dt),St=Z.map(function(Ht){var ye=Ht._x0||Ht.x0||Ht.x||0,Qt=Ht._x1||Ht.x1||Ht.x||0,_e=Ht._y0||Ht.y0||Ht.y||0,ie=Ht._y1||Ht.y1||Ht.y||0,Ae=Ht.eventData;if(Ae){var Pe=Math.min(ye,Qt),Oe=Math.max(ye,Qt),je=Math.min(_e,ie),Le=Math.max(_e,ie),Ie=Ht.trace;if(m.traceIs(Ie,"gl3d")){var Ut=dt._fullLayout[Ie.scene]._scene.container,ee=Ut.offsetLeft,Kt=Ut.offsetTop;Pe+=ee,Oe+=ee,je+=Kt,Le+=Kt}Ae.bbox={x0:Pe+At,x1:Oe+At,y0:je+xt,y1:Le+xt},ot.inOut_bbox&&ot.inOut_bbox.push(Ae.bbox)}else Ae=!1;return{color:Ht.color||a.defaultLine,x0:Ht.x0||Ht.x||0,x1:Ht.x1||Ht.x||0,y0:Ht.y0||Ht.y||0,y1:Ht.y1||Ht.y||0,xLabel:Ht.xLabel,yLabel:Ht.yLabel,zLabel:Ht.zLabel,text:Ht.text,name:Ht.name,idealAlign:Ht.idealAlign,borderColor:Ht.borderColor,fontFamily:Ht.fontFamily,fontSize:Ht.fontSize,fontColor:Ht.fontColor,fontWeight:Ht.fontWeight,fontStyle:Ht.fontStyle,fontVariant:Ht.fontVariant,nameLength:Ht.nameLength,textAlign:Ht.textAlign,trace:Ht.trace||{index:0,hoverinfo:""},xa:{_offset:0},ya:{_offset:0},index:0,hovertemplate:Ht.hovertemplate||!1,hovertemplateLabels:Ht.hovertemplateLabels||!1,eventData:Ae}}),Nt=!1,Wt=V(St,{gd:dt,hovermode:"closest",rotateLabels:Nt,bgColor:ot.bgColor||a.background,container:M.select(ot.container),outerContainer:ot.outerContainer||ot.container}),Vt=Wt.hoverLabels,jt=5,Dt=0,kt=0;Vt.sort(function(Ht,ye){return Ht.y0-ye.y0}).each(function(Ht,ye){var Qt=Ht.y0-Ht.by/2;Qt-jt<Dt?Ht.offset=Dt-Qt+jt:Ht.offset=0,Dt=Qt+Ht.by+Ht.offset,ye===ot.anchorIndex&&(kt=Ht.offset)}).each(function(Ht){Ht.offset-=kt});var Bt=dt._fullLayout._invScaleX,Ot=dt._fullLayout._invScaleY;return Y(Vt,Nt,Bt,Ot),st?Vt:Vt.node()};function D(Z,ot,st,dt,xt){st||(st="xy"),typeof st=="string"&&(st=st.split(x)[0]);var At=Array.isArray(st)?st:[st],St,Nt=Z._fullLayout,Wt=Nt.hoversubplots,Vt=Nt._plots||[],jt=Vt[st],Dt=Nt._has("cartesian"),kt=ot.hovermode||Nt.hovermode,Bt=(kt||"").charAt(0)==="x",Ot=(kt||"").charAt(0)==="y",Ht,ye;if(Dt&&(Bt||Ot)&&Wt==="axis"){for(var Qt=At.length,_e=0;_e<Qt;_e++)if(St=At[_e],Vt[St]){Ht=u.getFromId(Z,St,"x"),ye=u.getFromId(Z,St,"y");var ie=(Bt?Ht:ye)._subplotsWith;if(ie&&ie.length)for(var Ae=0;Ae<ie.length;Ae++)w(At,ie[Ae])}}if(jt&&Wt!=="single"){var Pe=jt.overlays.map(function(mi){return mi.id});At=At.concat(Pe)}for(var Oe=At.length,je=new Array(Oe),Le=new Array(Oe),Ie=!1,Ut=0;Ut<Oe;Ut++)if(St=At[Ut],Vt[St])Ie=!0,je[Ut]=Vt[St].xaxis,Le[Ut]=Vt[St].yaxis;else if(Nt[St]&&Nt[St]._subplot){var ee=Nt[St]._subplot;je[Ut]=ee.xaxis,Le[Ut]=ee.yaxis}else{i.warn("Unrecognized subplot: "+St);return}if(kt&&!Ie&&(kt="closest"),["x","y","closest","x unified","y unified"].indexOf(kt)===-1||!Z.calcdata||Z.querySelector(".zoombox")||Z._dragging)return s.unhoverRaw(Z,ot);var Kt=Nt.hoverdistance;Kt===-1&&(Kt=1/0);var ne=Nt.spikedistance;ne===-1&&(ne=1/0);var zt=[],qt=[],Zt,ae,vt,Mt,Lt,$t,ge,de,sr,mr,Ve,le,pe,Te={hLinePoint:null,vLinePoint:null},Yt=!1;if(Array.isArray(ot))for(kt="array",vt=0;vt<ot.length;vt++)Lt=Z.calcdata[ot[vt].curveNumber||0],Lt&&($t=Lt[0].trace,Lt[0].trace.hoverinfo!=="skip"&&(qt.push(Lt),$t.orientation==="h"&&(Yt=!0)));else{var Ee=Z.calcdata.slice();for(Ee.sort(function(mi,$r){var Tn=mi[0].trace.zorder||0,Pn=$r[0].trace.zorder||0;return Tn-Pn}),Mt=0;Mt<Ee.length;Mt++)Lt=Ee[Mt],$t=Lt[0].trace,$t.hoverinfo!=="skip"&&y.isTraceInSubplots($t,At)&&(qt.push(Lt),$t.orientation==="h"&&(Yt=!0));var Ne=!xt,ar,Ye;if(Ne)"xpx"in ot?ar=ot.xpx:ar=je[0]._length/2,"ypx"in ot?Ye=ot.ypx:Ye=Le[0]._length/2;else{if(l.triggerHandler(Z,"plotly_beforehover",ot)===!1)return;var Jt=xt.getBoundingClientRect();ar=ot.clientX-Jt.left,Ye=ot.clientY-Jt.top,Nt._calcInverseTransform(Z);var ue=i.apply3DTransform(Nt._invTransform)(ar,Ye);if(ar=ue[0],Ye=ue[1],ar<0||ar>je[0]._length||Ye<0||Ye>Le[0]._length)return s.unhoverRaw(Z,ot)}if(ot.pointerX=ar+je[0]._offset,ot.pointerY=Ye+Le[0]._offset,"xval"in ot?Zt=y.flat(At,ot.xval):Zt=y.p2c(je,ar),"yval"in ot?ae=y.flat(At,ot.yval):ae=y.p2c(Le,Ye),!C(Zt[0])||!C(ae[0]))return i.warn("Fx.hover failed",ot,Z),s.unhoverRaw(Z,ot)}var Se=1/0;function De(mi,$r){for(Mt=0;Mt<qt.length;Mt++)if(Lt=qt[Mt],!(!Lt||!Lt[0]||!Lt[0].trace)&&($t=Lt[0].trace,!($t.visible!==!0||$t._length===0)&&["carpet","contourcarpet"].indexOf($t._module.name)===-1)){if(sr=kt,y.isUnifiedHover(sr)&&(sr=sr.charAt(0)),$t.type==="splom"?(de=0,ge=At[de]):(ge=y.getSubplot($t),de=At.indexOf(ge)),le={cd:Lt,trace:$t,xa:je[de],ya:Le[de],maxHoverDistance:Kt,maxSpikeDistance:ne,index:!1,distance:Math.min(Se,Kt),spikeDistance:1/0,xSpike:void 0,ySpike:void 0,color:a.defaultLine,name:$t.name,x0:void 0,x1:void 0,y0:void 0,y1:void 0,xLabelVal:void 0,yLabelVal:void 0,zLabelVal:void 0,text:void 0},Nt[ge]&&(le.subplot=Nt[ge]._subplot),Nt._splomScenes&&Nt._splomScenes[$t.uid]&&(le.scene=Nt._splomScenes[$t.uid]),sr==="array"){var Tn=ot[Mt];"pointNumber"in Tn?(le.index=Tn.pointNumber,sr="closest"):(sr="","xval"in Tn&&(mr=Tn.xval,sr="x"),"yval"in Tn&&(Ve=Tn.yval,sr=sr?"closest":"y"))}else mi!==void 0&&$r!==void 0?(mr=mi,Ve=$r):(mr=Zt[de],Ve=ae[de]);if(pe=zt.length,Kt!==0)if($t._module&&$t._module.hoverPoints){var Pn=$t._module.hoverPoints(le,mr,Ve,sr,{finiteRange:!0,hoverLayer:Nt._hoverlayer,hoversubplots:Wt,gd:Z});if(Pn)for(var En,li=0;li<Pn.length;li++)En=Pn[li],C(En.x0)&&C(En.y0)&&zt.push(Q(En,kt))}else i.log("Unrecognized trace type in hover:",$t);if(kt==="closest"&&zt.length>pe&&(zt.splice(0,pe),Se=zt[0].distance),Dt&&ne!==0&&zt.length===0){le.distance=ne,le.index=!1;var Cn=$t._module.hoverPoints(le,mr,Ve,"closest",{hoverLayer:Nt._hoverlayer});if(Cn&&(Cn=Cn.filter(function(qr){return qr.spikeDistance<=ne})),Cn&&Cn.length){var ci,gi=Cn.filter(function(qr){return qr.xa.showspikes&&qr.xa.spikesnap!=="hovered data"});if(gi.length){var Bi=gi[0];C(Bi.x0)&&C(Bi.y0)&&(ci=nr(Bi),(!Te.vLinePoint||Te.vLinePoint.spikeDistance>ci.spikeDistance)&&(Te.vLinePoint=ci))}var Qi=Cn.filter(function(qr){return qr.ya.showspikes&&qr.ya.spikesnap!=="hovered data"});if(Qi.length){var Ma=Qi[0];C(Ma.x0)&&C(Ma.y0)&&(ci=nr(Ma),(!Te.hLinePoint||Te.hLinePoint.spikeDistance>ci.spikeDistance)&&(Te.hLinePoint=ci))}}}}}De();function Ze(mi,$r,Tn){for(var Pn=null,En=1/0,li,Cn=0;Cn<mi.length;Cn++)Ht&&Ht._id!==mi[Cn].xa._id||ye&&ye._id!==mi[Cn].ya._id||(li=mi[Cn].spikeDistance,Tn&&Cn===0&&(li=-1/0),li<=En&&li<=$r&&(Pn=mi[Cn],En=li));return Pn}function nr(mi){return mi?{xa:mi.xa,ya:mi.ya,x:mi.xSpike!==void 0?mi.xSpike:(mi.x0+mi.x1)/2,y:mi.ySpike!==void 0?mi.ySpike:(mi.y0+mi.y1)/2,distance:mi.distance,spikeDistance:mi.spikeDistance,curveNumber:mi.trace.index,color:mi.color,pointNumber:mi.index}:null}var Ke={fullLayout:Nt,container:Nt._hoverlayer,event:ot};Z._spikepoints;var er={vLinePoint:Te.vLinePoint,hLinePoint:Te.hLinePoint};Z._spikepoints=er;var xr=function(){var mi=zt.filter(function(Tn){return Ht&&Ht._id===Tn.xa._id&&ye&&ye._id===Tn.ya._id}),$r=zt.filter(function(Tn){return!(Ht&&Ht._id===Tn.xa._id&&ye&&ye._id===Tn.ya._id)});mi.sort(b),$r.sort(b),zt=mi.concat($r),zt=$(zt,kt)};xr();var Sr=kt.charAt(0),Cr=(Sr==="x"||Sr==="y")&&zt[0]&&L[zt[0].trace.type];if(Dt&&ne!==0&&zt.length!==0){var Er=zt.filter(function(mi){return mi.ya.showspikes}),Lr=Ze(Er,ne,Cr);Te.hLinePoint=nr(Lr);var Ur=zt.filter(function(mi){return mi.xa.showspikes}),zr=Ze(Ur,ne,Cr);Te.vLinePoint=nr(zr)}if(zt.length===0){var te=s.unhoverRaw(Z,ot);return Dt&&(Te.hLinePoint!==null||Te.vLinePoint!==null)&&lt()&&ft(Z,Te,Ke),te}if(Dt&&lt()&&ft(Z,Te,Ke),y.isXYhover(sr)&&zt[0].length!==0&&zt[0].trace.type!=="splom"){var he=zt[0];_[he.trace.type]?zt=zt.filter(function(mi){return mi.trace.index===he.trace.index}):zt=[he];var Je=zt.length,br=H("x",he,Nt),pr=H("y",he,Nt);De(br,pr);var We=[],hr={},Ar=0,yr=function(mi){var $r=_[mi.trace.type]?B(mi):mi.trace.index;if(!hr[$r])Ar++,hr[$r]=Ar,We.push(mi);else{var Tn=hr[$r]-1,Pn=We[Tn];Tn>0&&Math.abs(mi.distance)<Math.abs(Pn.distance)&&(We[Tn]=mi)}},dr;for(dr=0;dr<Je;dr++)yr(zt[dr]);for(dr=zt.length-1;dr>Je-1;dr--)yr(zt[dr]);zt=We,xr()}var Rr=Z._hoverdata,Qr=[],Xr=at(Z),Dn=ct(Z);for(vt=0;vt<zt.length;vt++){var on=zt[vt],Hn=y.makeEventData(on,on.trace,on.cd);if(on.hovertemplate!==!1){var Fn=!1;on.cd[on.index]&&on.cd[on.index].ht&&(Fn=on.cd[on.index].ht),on.hovertemplate=Fn||on.trace.hovertemplate||!1}if(on.xa&&on.ya){var jr=on.x0+on.xa._offset,Pr=on.x1+on.xa._offset,fn=on.y0+on.ya._offset,nn=on.y1+on.ya._offset,Rn=Math.min(jr,Pr),On=Math.max(jr,Pr),vn=Math.min(fn,nn),Gn=Math.max(fn,nn);Hn.bbox={x0:Rn+Dn,x1:On+Dn,y0:vn+Xr,y1:Gn+Xr}}on.eventData=[Hn],Qr.push(Hn)}Z._hoverdata=Qr;var ii=kt==="y"&&(qt.length>1||zt.length>1)||kt==="closest"&&Yt&&zt.length>1,Wi=a.combine(Nt.plot_bgcolor||a.background,Nt.paper_bgcolor),ra=V(zt,{gd:Z,hovermode:kt,rotateLabels:ii,bgColor:Wi,container:Nt._hoverlayer,outerContainer:Nt._paper.node(),commonLabelOpts:Nt.hoverlabel,hoverdistance:Nt.hoverdistance}),vi=ra.hoverLabels;if(y.isUnifiedHover(kt)||(F(vi,ii,Nt,ra.commonLabelBoundingBox),Y(vi,ii,Nt._invScaleX,Nt._invScaleY)),xt&&xt.tagName){var Oi=m.getComponentMethod("annotations","hasClickToShow")(Z,Qr);n(M.select(xt),Oi?"pointer":"")}!xt||dt||!ut(Z,ot,Rr)||(Rr&&Z.emit("plotly_unhover",{event:ot,points:Rr}),Z.emit("plotly_hover",{event:ot,points:Z._hoverdata,xaxes:je,yaxes:Le,xvals:Zt,yvals:ae}))}function B(Z){return[Z.trace.index,Z.index,Z.x0,Z.y0,Z.name,Z.attr,Z.xa?Z.xa._id:"",Z.ya?Z.ya._id:""].join(",")}var I=/<extra>([\s\S]*)<\/extra>/;function V(Z,ot){var st=ot.gd,dt=st._fullLayout,xt=ot.hovermode,At=ot.rotateLabels,St=ot.bgColor,Nt=ot.container,Wt=ot.outerContainer,Vt=ot.commonLabelOpts||{};if(Z.length===0)return[[]];var jt=ot.fontFamily||c.HOVERFONT,Dt=ot.fontSize||c.HOVERFONTSIZE,kt=ot.fontWeight||dt.font.weight,Bt=ot.fontStyle||dt.font.style,Ot=ot.fontVariant||dt.font.variant,Ht=ot.fontTextcase||dt.font.textcase,ye=ot.fontLineposition||dt.font.lineposition,Qt=ot.fontShadow||dt.font.shadow,_e=Z[0],ie=_e.xa,Ae=_e.ya,Pe=xt.charAt(0),Oe=Pe+"Label",je=_e[Oe];if(je===void 0&&ie.type==="multicategory")for(var Le=0;Le<Z.length&&(je=Z[Le][Oe],je===void 0);Le++);var Ie=et(st,Wt),Ut=Ie.top,ee=Ie.width,Kt=Ie.height,ne=je!==void 0&&_e.distance<=ot.hoverdistance&&(xt==="x"||xt==="y");if(ne){var zt=!0,qt,Zt;for(qt=0;qt<Z.length;qt++)if(zt&&Z[qt].zLabel===void 0&&(zt=!1),Zt=Z[qt].hoverinfo||Z[qt].trace.hoverinfo,Zt){var ae=Array.isArray(Zt)?Zt:Zt.split("+");if(ae.indexOf("all")===-1&&ae.indexOf(xt)===-1){ne=!1;break}}zt&&(ne=!1)}var vt=Nt.selectAll("g.axistext").data(ne?[0]:[]);vt.enter().append("g").classed("axistext",!0),vt.exit().remove();var Mt={minX:0,maxX:0,minY:0,maxY:0};if(vt.each(function(){var zr=M.select(this),te=i.ensureSingle(zr,"path","",function(On){On.style({"stroke-width":"1px"})}),he=i.ensureSingle(zr,"text","",function(On){On.attr("data-notex",1)}),Je=Vt.bgcolor||a.defaultLine,br=Vt.bordercolor||a.contrast(Je),pr=a.contrast(Je),We=Vt.font,hr={weight:We.weight||kt,style:We.style||Bt,variant:We.variant||Ot,textcase:We.textcase||Ht,lineposition:We.lineposition||ye,shadow:We.shadow||Qt,family:We.family||jt,size:We.size||Dt,color:We.color||pr};te.style({fill:Je,stroke:br}),he.text(je).call(o.font,hr).call(t.positionText,0,0).call(t.convertToTspans,st),zr.attr("transform","");var Ar=et(st,he.node()),yr,dr;if(xt==="x"){var Rr=ie.side==="top"?"-":"";he.attr("text-anchor","middle").call(t.positionText,0,ie.side==="top"?Ut-Ar.bottom-E-d:Ut-Ar.top+E+d),yr=ie._offset+(_e.x0+_e.x1)/2,dr=Ae._offset+(ie.side==="top"?0:Ae._length);var Qr=Ar.width/2+d,Xr=yr;yr<Qr?Xr=Qr:yr>dt.width-Qr&&(Xr=dt.width-Qr),te.attr("d","M"+(yr-Xr)+",0L"+(yr-Xr+E)+","+Rr+E+"H"+Qr+"v"+Rr+(d*2+Ar.height)+"H"+-Qr+"V"+Rr+E+"H"+(yr-Xr-E)+"Z"),yr=Xr,Mt.minX=yr-Qr,Mt.maxX=yr+Qr,ie.side==="top"?(Mt.minY=dr-(d*2+Ar.height),Mt.maxY=dr-d):(Mt.minY=dr+d,Mt.maxY=dr+(d*2+Ar.height))}else{var Dn,on,Hn;Ae.side==="right"?(Dn="start",on=1,Hn="",yr=ie._offset+ie._length):(Dn="end",on=-1,Hn="-",yr=ie._offset),dr=Ae._offset+(_e.y0+_e.y1)/2,he.attr("text-anchor",Dn),te.attr("d","M0,0L"+Hn+E+","+E+"V"+(d+Ar.height/2)+"h"+Hn+(d*2+Ar.width)+"V-"+(d+Ar.height/2)+"H"+Hn+E+"V-"+E+"Z"),Mt.minY=dr-(d+Ar.height/2),Mt.maxY=dr+(d+Ar.height/2),Ae.side==="right"?(Mt.minX=yr+E,Mt.maxX=yr+E+(d*2+Ar.width)):(Mt.minX=yr-E-(d*2+Ar.width),Mt.maxX=yr-E);var Fn=Ar.height/2,jr=Ut-Ar.top-Fn,Pr="clip"+dt._uid+"commonlabel"+Ae._id,fn;if(yr<Ar.width+2*d+E){fn="M-"+(E+d)+"-"+Fn+"h-"+(Ar.width-d)+"V"+Fn+"h"+(Ar.width-d)+"Z";var nn=Ar.width-yr+d;t.positionText(he,nn,jr),Dn==="end"&&he.selectAll("tspan").each(function(){var On=M.select(this),vn=o.tester.append("text").text(On.text()).call(o.font,hr),Gn=et(st,vn.node());Math.round(Gn.width)<Math.round(Ar.width)&&On.attr("x",nn-Gn.width),vn.remove()})}else t.positionText(he,on*(d+E),jr),fn=null;var Rn=dt._topclips.selectAll("#"+Pr).data(fn?[0]:[]);Rn.enter().append("clipPath").attr("id",Pr).append("path"),Rn.exit().remove(),Rn.select("path").attr("d",fn),o.setClipUrl(he,fn?Pr:null,st)}zr.attr("transform",S(yr,dr))}),y.isUnifiedHover(xt)){Nt.selectAll("g.hovertext").remove();var Lt=Z.filter(function(zr){return zr.hoverinfo!=="none"});if(Lt.length===0)return[];var $t=dt.hoverlabel,ge=$t.font,de={showlegend:!0,legend:{title:{text:je,font:ge},font:ge,bgcolor:$t.bgcolor,bordercolor:$t.bordercolor,borderwidth:1,tracegroupgap:7,traceorder:dt.legend?dt.legend.traceorder:void 0,orientation:"v"}},sr={font:ge};p(de,sr,st._fullData);var mr=sr.legend;mr.entries=[];for(var Ve=0;Ve<Lt.length;Ve++){var le=Lt[Ve];if(le.hoverinfo!=="none"){var pe=N(le,!0,xt,dt,je),Te=pe[0],Yt=pe[1];le.name=Yt,Yt!==""?le.text=Yt+" : "+Te:le.text=Te;var Ee=le.cd[le.index];Ee&&(Ee.mc&&(le.mc=Ee.mc),Ee.mcc&&(le.mc=Ee.mcc),Ee.mlc&&(le.mlc=Ee.mlc),Ee.mlcc&&(le.mlc=Ee.mlcc),Ee.mlw&&(le.mlw=Ee.mlw),Ee.mrc&&(le.mrc=Ee.mrc),Ee.dir&&(le.dir=Ee.dir)),le._distinct=!0,mr.entries.push([le])}}mr.entries.sort(function(zr,te){return zr[0].trace.index-te[0].trace.index}),mr.layer=Nt,mr._inHover=!0,mr._groupTitleFont=$t.grouptitlefont,f(st,mr);var Ne=Nt.select("g.legend"),ar=et(st,Ne.node()),Ye=ar.width+2*d,Jt=ar.height+2*d,ue=Lt[0],Se=(ue.x0+ue.x1)/2,De=(ue.y0+ue.y1)/2,Ze=!(m.traceIs(ue.trace,"bar-like")||m.traceIs(ue.trace,"box-violin")),nr,Ke;Pe==="y"?Ze?(Ke=De-d,nr=De+d):(Ke=Math.min.apply(null,Lt.map(function(zr){return Math.min(zr.y0,zr.y1)})),nr=Math.max.apply(null,Lt.map(function(zr){return Math.max(zr.y0,zr.y1)}))):Ke=nr=i.mean(Lt.map(function(zr){return(zr.y0+zr.y1)/2}))-Jt/2;var er,xr;Pe==="x"?Ze?(er=Se+d,xr=Se-d):(er=Math.max.apply(null,Lt.map(function(zr){return Math.max(zr.x0,zr.x1)})),xr=Math.min.apply(null,Lt.map(function(zr){return Math.min(zr.x0,zr.x1)}))):er=xr=i.mean(Lt.map(function(zr){return(zr.x0+zr.x1)/2}))-Ye/2;var Sr=ie._offset,Cr=Ae._offset;nr+=Cr,er+=Sr,xr+=Sr-Ye,Ke+=Cr-Jt;var Er,Lr;return er+Ye<ee&&er>=0?Er=er:xr+Ye<ee&&xr>=0?Er=xr:Sr+Ye<ee?Er=Sr:er-Se<Se-xr+Ye?Er=ee-Ye:Er=0,Er+=d,nr+Jt<Kt&&nr>=0?Lr=nr:Ke+Jt<Kt&&Ke>=0?Lr=Ke:Cr+Jt<Kt?Lr=Cr:nr-De<De-Ke+Jt?Lr=Kt-Jt:Lr=0,Lr+=d,Ne.attr("transform",S(Er-1,Lr-1)),Ne}var Ur=Nt.selectAll("g.hovertext").data(Z,function(zr){return B(zr)});return Ur.enter().append("g").classed("hovertext",!0).each(function(){var zr=M.select(this);zr.append("rect").call(a.fill,a.addOpacity(St,.8)),zr.append("text").classed("name",!0),zr.append("path").style("stroke-width","1px"),zr.append("text").classed("nums",!0).call(o.font,{weight:kt,style:Bt,variant:Ot,textcase:Ht,lineposition:ye,shadow:Qt,family:jt,size:Dt})}),Ur.exit().remove(),Ur.each(function(zr){var te=M.select(this).attr("transform",""),he=zr.color;Array.isArray(he)&&(he=he[zr.eventData[0].pointNumber]);var Je=zr.bgcolor||he,br=a.combine(a.opacity(Je)?Je:a.defaultLine,St),pr=a.combine(a.opacity(he)?he:a.defaultLine,St),We=zr.borderColor||a.contrast(br),hr=N(zr,ne,xt,dt,je,te),Ar=hr[0],yr=hr[1],dr=te.select("text.nums").call(o.font,{family:zr.fontFamily||jt,size:zr.fontSize||Dt,color:zr.fontColor||We,weight:zr.fontWeight||kt,style:zr.fontStyle||Bt,variant:zr.fontVariant||Ot,textcase:zr.fontTextcase||Ht,lineposition:zr.fontLineposition||ye,shadow:zr.fontShadow||Qt}).text(Ar).attr("data-notex",1).call(t.positionText,0,0).call(t.convertToTspans,st),Rr=te.select("text.name"),Qr=0,Xr=0;if(yr&&yr!==Ar){Rr.call(o.font,{family:zr.fontFamily||jt,size:zr.fontSize||Dt,color:pr,weight:zr.fontWeight||kt,style:zr.fontStyle||Bt,variant:zr.fontVariant||Ot,textcase:zr.fontTextcase||Ht,lineposition:zr.fontLineposition||ye,shadow:zr.fontShadow||Qt}).text(yr).attr("data-notex",1).call(t.positionText,0,0).call(t.convertToTspans,st);var Dn=et(st,Rr.node());Qr=Dn.width+2*d,Xr=Dn.height+2*d}else Rr.remove(),te.select("rect").remove();te.select("path").style({fill:br,stroke:We});var on=zr.xa._offset+(zr.x0+zr.x1)/2,Hn=zr.ya._offset+(zr.y0+zr.y1)/2,Fn=Math.abs(zr.x1-zr.x0),jr=Math.abs(zr.y1-zr.y0),Pr=et(st,dr.node()),fn=Pr.width/dt._invScaleX,nn=Pr.height/dt._invScaleY;zr.ty0=(Ut-Pr.top)/dt._invScaleY,zr.bx=fn+2*d,zr.by=Math.max(nn+2*d,Xr),zr.anchor="start",zr.txwidth=fn,zr.tx2width=Qr,zr.offset=0;var Rn=(fn+E+d+Qr)*dt._invScaleX,On,vn;if(At)zr.pos=on,On=Hn+jr/2+Rn<=Kt,vn=Hn-jr/2-Rn>=0,(zr.idealAlign==="top"||!On)&&vn?(Hn-=jr/2,zr.anchor="end"):On?(Hn+=jr/2,zr.anchor="start"):zr.anchor="middle",zr.crossPos=Hn;else{if(zr.pos=Hn,On=on+Fn/2+Rn<=ee,vn=on-Fn/2-Rn>=0,(zr.idealAlign==="left"||!On)&&vn)on-=Fn/2,zr.anchor="end";else if(On)on+=Fn/2,zr.anchor="start";else{zr.anchor="middle";var Gn=Rn/2,ii=on+Gn-ee,Wi=on-Gn;ii>0&&(on-=ii),Wi<0&&(on+=-Wi)}zr.crossPos=on}dr.attr("text-anchor",zr.anchor),Qr&&Rr.attr("text-anchor",zr.anchor),te.attr("transform",S(on,Hn)+(At?h(T):""))}),{hoverLabels:Ur,commonLabelBoundingBox:Mt}}function N(Z,ot,st,dt,xt,At){var St="",Nt="";Z.nameOverride!==void 0&&(Z.name=Z.nameOverride),Z.name&&(Z.trace._meta&&(Z.name=i.templateString(Z.name,Z.trace._meta)),St=K(Z.name,Z.nameLength));var Wt=st.charAt(0),Vt=Wt==="x"?"y":"x";Z.zLabel!==void 0?(Z.xLabel!==void 0&&(Nt+="x: "+Z.xLabel+"<br>"),Z.yLabel!==void 0&&(Nt+="y: "+Z.yLabel+"<br>"),Z.trace.type!=="choropleth"&&Z.trace.type!=="choroplethmapbox"&&Z.trace.type!=="choroplethmap"&&(Nt+=(Nt?"z: ":"")+Z.zLabel)):ot&&Z[Wt+"Label"]===xt?Nt=Z[Vt+"Label"]||"":Z.xLabel===void 0?Z.yLabel!==void 0&&Z.trace.type!=="scattercarpet"&&(Nt=Z.yLabel):Z.yLabel===void 0?Nt=Z.xLabel:Nt="("+Z.xLabel+", "+Z.yLabel+")",(Z.text||Z.text===0)&&!Array.isArray(Z.text)&&(Nt+=(Nt?"<br>":"")+Z.text),Z.extraText!==void 0&&(Nt+=(Nt?"<br>":"")+Z.extraText),At&&Nt===""&&!Z.hovertemplate&&(St===""&&At.remove(),Nt=St);var jt=Z.hovertemplate||!1;if(jt){var Dt=Z.hovertemplateLabels||Z;Z[Wt+"Label"]!==xt&&(Dt[Wt+"other"]=Dt[Wt+"Val"],Dt[Wt+"otherLabel"]=Dt[Wt+"Label"]),Nt=i.hovertemplateString(jt,Dt,dt._d3locale,Z.eventData[0]||{},Z.trace._meta),Nt=Nt.replace(I,function(kt,Bt){return St=K(Bt,Z.nameLength),""})}return[Nt,St]}function F(Z,ot,st,dt){var xt=ot?"xa":"ya",At=ot?"ya":"xa",St=0,Nt=1,Wt=Z.size(),Vt=new Array(Wt),jt=0,Dt=dt.minX,kt=dt.maxX,Bt=dt.minY,Ot=dt.maxY,Ht=function(Zt){return Zt*st._invScaleX},ye=function(Zt){return Zt*st._invScaleY};Z.each(function(Zt){var ae=Zt[xt],vt=Zt[At],Mt=ae._id.charAt(0)==="x",Lt=ae.range;jt===0&&Lt&&Lt[0]>Lt[1]!==Mt&&(Nt=-1);var $t=0,ge=Mt?st.width:st.height;if(st.hovermode==="x"||st.hovermode==="y"){var de=U(Zt,ot),sr=Zt.anchor,mr=sr==="end"?-1:1,Ve,le;if(sr==="middle")Ve=Zt.crossPos+(Mt?ye(de.y-Zt.by/2):Ht(Zt.bx/2+Zt.tx2width/2)),le=Ve+(Mt?ye(Zt.by):Ht(Zt.bx));else if(Mt)Ve=Zt.crossPos+ye(E+de.y)-ye(Zt.by/2-E),le=Ve+ye(Zt.by);else{var pe=Ht(mr*E+de.x),Te=pe+Ht(mr*Zt.bx);Ve=Zt.crossPos+Math.min(pe,Te),le=Zt.crossPos+Math.max(pe,Te)}Mt?Bt!==void 0&&Ot!==void 0&&Math.min(le,Ot)-Math.max(Ve,Bt)>1&&(vt.side==="left"?($t=vt._mainLinePosition,ge=st.width):ge=vt._mainLinePosition):Dt!==void 0&&kt!==void 0&&Math.min(le,kt)-Math.max(Ve,Dt)>1&&(vt.side==="top"?($t=vt._mainLinePosition,ge=st.height):ge=vt._mainLinePosition)}Vt[jt++]=[{datum:Zt,traceIndex:Zt.trace.index,dp:0,pos:Zt.pos,posref:Zt.posref,size:Zt.by*(Mt?P:1)/2,pmin:$t,pmax:ge}]}),Vt.sort(function(Zt,ae){return Zt[0].posref-ae[0].posref||Nt*(ae[0].traceIndex-Zt[0].traceIndex)});var Qt,_e,ie,Ae,Pe,Oe,je;function Le(Zt){var ae=Zt[0],vt=Zt[Zt.length-1];if(_e=ae.pmin-ae.pos-ae.dp+ae.size,ie=vt.pos+vt.dp+vt.size-ae.pmax,_e>.01){for(Pe=Zt.length-1;Pe>=0;Pe--)Zt[Pe].dp+=_e;Qt=!1}if(!(ie<.01)){if(_e<-.01){for(Pe=Zt.length-1;Pe>=0;Pe--)Zt[Pe].dp-=ie;Qt=!1}if(Qt){var Mt=0;for(Ae=0;Ae<Zt.length;Ae++)Oe=Zt[Ae],Oe.pos+Oe.dp+Oe.size>ae.pmax&&Mt++;for(Ae=Zt.length-1;Ae>=0&&!(Mt<=0);Ae--)Oe=Zt[Ae],Oe.pos>ae.pmax-1&&(Oe.del=!0,Mt--);for(Ae=0;Ae<Zt.length&&!(Mt<=0);Ae++)if(Oe=Zt[Ae],Oe.pos<ae.pmin+1)for(Oe.del=!0,Mt--,ie=Oe.size*2,Pe=Zt.length-1;Pe>=0;Pe--)Zt[Pe].dp-=ie;for(Ae=Zt.length-1;Ae>=0&&!(Mt<=0);Ae--)Oe=Zt[Ae],Oe.pos+Oe.dp+Oe.size>ae.pmax&&(Oe.del=!0,Mt--)}}}for(;!Qt&&St<=Wt;){for(St++,Qt=!0,Ae=0;Ae<Vt.length-1;){var Ie=Vt[Ae],Ut=Vt[Ae+1],ee=Ie[Ie.length-1],Kt=Ut[0];if(_e=ee.pos+ee.dp+ee.size-Kt.pos-Kt.dp+Kt.size,_e>.01){for(Pe=Ut.length-1;Pe>=0;Pe--)Ut[Pe].dp+=_e;for(Ie.push.apply(Ie,Ut),Vt.splice(Ae+1,1),je=0,Pe=Ie.length-1;Pe>=0;Pe--)je+=Ie[Pe].dp;for(ie=je/Ie.length,Pe=Ie.length-1;Pe>=0;Pe--)Ie[Pe].dp-=ie;Qt=!1}else Ae++}Vt.forEach(Le)}for(Ae=Vt.length-1;Ae>=0;Ae--){var ne=Vt[Ae];for(Pe=ne.length-1;Pe>=0;Pe--){var zt=ne[Pe],qt=zt.datum;qt.offset=zt.dp,qt.del=zt.del}}}function U(Z,ot){var st=0,dt=Z.offset;return ot&&(dt*=-A,st=Z.offset*g),{x:st,y:dt}}function G(Z){var ot={start:1,end:-1,middle:0}[Z.anchor],st=ot*(E+d),dt=st+ot*(Z.txwidth+d),xt=Z.anchor==="middle";return xt&&(st-=Z.tx2width/2,dt+=Z.txwidth/2+d),{alignShift:ot,textShiftX:st,text2ShiftX:dt}}function Y(Z,ot,st,dt){var xt=function(St){return St*st},At=function(St){return St*dt};Z.each(function(St){var Nt=M.select(this);if(St.del)return Nt.remove();var Wt=Nt.select("text.nums"),Vt=St.anchor,jt=Vt==="end"?-1:1,Dt=G(St),kt=U(St,ot),Bt=kt.x,Ot=kt.y,Ht=Vt==="middle";Nt.select("path").attr("d",Ht?"M-"+xt(St.bx/2+St.tx2width/2)+","+At(Ot-St.by/2)+"h"+xt(St.bx)+"v"+At(St.by)+"h-"+xt(St.bx)+"Z":"M0,0L"+xt(jt*E+Bt)+","+At(E+Ot)+"v"+At(St.by/2-E)+"h"+xt(jt*St.bx)+"v-"+At(St.by)+"H"+xt(jt*E+Bt)+"V"+At(Ot-E)+"Z");var ye=Bt+Dt.textShiftX,Qt=Ot+St.ty0-St.by/2+d,_e=St.textAlign||"auto";_e!=="auto"&&(_e==="left"&&Vt!=="start"?(Wt.attr("text-anchor","start"),ye=Ht?-St.bx/2-St.tx2width/2+d:-St.bx-d):_e==="right"&&Vt!=="end"&&(Wt.attr("text-anchor","end"),ye=Ht?St.bx/2-St.tx2width/2-d:St.bx+d)),Wt.call(t.positionText,xt(ye),At(Qt)),St.tx2width&&(Nt.select("text.name").call(t.positionText,xt(Dt.text2ShiftX+Dt.alignShift*d+Bt),At(Ot+St.ty0-St.by/2+d)),Nt.select("rect").call(o.setRect,xt(Dt.text2ShiftX+(Dt.alignShift-1)*St.tx2width/2+Bt),At(Ot-St.by/2-1),xt(St.tx2width),At(St.by+2)))})}function Q(Z,ot){var st=Z.index,dt=Z.trace||{},xt=Z.cd[0],At=Z.cd[st]||{};function St(kt){return kt||C(kt)&&kt===0}var Nt=Array.isArray(st)?function(kt,Bt){var Ot=i.castOption(xt,st,kt);return St(Ot)?Ot:i.extractOption({},dt,"",Bt)}:function(kt,Bt){return i.extractOption(At,dt,kt,Bt)};function Wt(kt,Bt,Ot){var Ht=Nt(Bt,Ot);St(Ht)&&(Z[kt]=Ht)}if(Wt("hoverinfo","hi","hoverinfo"),Wt("bgcolor","hbg","hoverlabel.bgcolor"),Wt("borderColor","hbc","hoverlabel.bordercolor"),Wt("fontFamily","htf","hoverlabel.font.family"),Wt("fontSize","hts","hoverlabel.font.size"),Wt("fontColor","htc","hoverlabel.font.color"),Wt("fontWeight","htw","hoverlabel.font.weight"),Wt("fontStyle","hty","hoverlabel.font.style"),Wt("fontVariant","htv","hoverlabel.font.variant"),Wt("nameLength","hnl","hoverlabel.namelength"),Wt("textAlign","hta","hoverlabel.align"),Z.posref=ot==="y"||ot==="closest"&&dt.orientation==="h"?Z.xa._offset+(Z.x0+Z.x1)/2:Z.ya._offset+(Z.y0+Z.y1)/2,Z.x0=i.constrain(Z.x0,0,Z.xa._length),Z.x1=i.constrain(Z.x1,0,Z.xa._length),Z.y0=i.constrain(Z.y0,0,Z.ya._length),Z.y1=i.constrain(Z.y1,0,Z.ya._length),Z.xLabelVal!==void 0&&(Z.xLabel="xLabel"in Z?Z.xLabel:u.hoverLabelText(Z.xa,Z.xLabelVal,dt.xhoverformat),Z.xVal=Z.xa.c2d(Z.xLabelVal)),Z.yLabelVal!==void 0&&(Z.yLabel="yLabel"in Z?Z.yLabel:u.hoverLabelText(Z.ya,Z.yLabelVal,dt.yhoverformat),Z.yVal=Z.ya.c2d(Z.yLabelVal)),Z.zLabelVal!==void 0&&Z.zLabel===void 0&&(Z.zLabel=String(Z.zLabelVal)),!isNaN(Z.xerr)&&!(Z.xa.type==="log"&&Z.xerr<=0)){var Vt=u.tickText(Z.xa,Z.xa.c2l(Z.xerr),"hover").text;Z.xerrneg!==void 0?Z.xLabel+=" +"+Vt+" / -"+u.tickText(Z.xa,Z.xa.c2l(Z.xerrneg),"hover").text:Z.xLabel+=" \xB1 "+Vt,ot==="x"&&(Z.distance+=1)}if(!isNaN(Z.yerr)&&!(Z.ya.type==="log"&&Z.yerr<=0)){var jt=u.tickText(Z.ya,Z.ya.c2l(Z.yerr),"hover").text;Z.yerrneg!==void 0?Z.yLabel+=" +"+jt+" / -"+u.tickText(Z.ya,Z.ya.c2l(Z.yerrneg),"hover").text:Z.yLabel+=" \xB1 "+jt,ot==="y"&&(Z.distance+=1)}var Dt=Z.hoverinfo||Z.trace.hoverinfo;return Dt&&Dt!=="all"&&(Dt=Array.isArray(Dt)?Dt:Dt.split("+"),Dt.indexOf("x")===-1&&(Z.xLabel=void 0),Dt.indexOf("y")===-1&&(Z.yLabel=void 0),Dt.indexOf("z")===-1&&(Z.zLabel=void 0),Dt.indexOf("text")===-1&&(Z.text=void 0),Dt.indexOf("name")===-1&&(Z.name=void 0)),Z}function ft(Z,ot,st){var dt=st.container,xt=st.fullLayout,At=xt._size,St=st.event,Nt=!!ot.hLinePoint,Wt=!!ot.vLinePoint,Vt,jt;if(dt.selectAll(".spikeline").remove(),!!(Wt||Nt)){var Dt=a.combine(xt.plot_bgcolor,xt.paper_bgcolor);if(Nt){var kt=ot.hLinePoint,Bt,Ot;Vt=kt&&kt.xa,jt=kt&&kt.ya;var Ht=jt.spikesnap;Ht==="cursor"?(Bt=St.pointerX,Ot=St.pointerY):(Bt=Vt._offset+kt.x,Ot=jt._offset+kt.y);var ye=r.readability(kt.color,Dt)<1.5?a.contrast(Dt):kt.color,Qt=jt.spikemode,_e=jt.spikethickness,ie=jt.spikecolor||ye,Ae=u.getPxPosition(Z,jt),Pe,Oe;if(Qt.indexOf("toaxis")!==-1||Qt.indexOf("across")!==-1){if(Qt.indexOf("toaxis")!==-1&&(Pe=Ae,Oe=Bt),Qt.indexOf("across")!==-1){var je=jt._counterDomainMin,Le=jt._counterDomainMax;jt.anchor==="free"&&(je=Math.min(je,jt.position),Le=Math.max(Le,jt.position)),Pe=At.l+je*At.w,Oe=At.l+Le*At.w}dt.insert("line",":first-child").attr({x1:Pe,x2:Oe,y1:Ot,y2:Ot,"stroke-width":_e,stroke:ie,"stroke-dasharray":o.dashStyle(jt.spikedash,_e)}).classed("spikeline",!0).classed("crisp",!0),dt.insert("line",":first-child").attr({x1:Pe,x2:Oe,y1:Ot,y2:Ot,"stroke-width":_e+2,stroke:Dt}).classed("spikeline",!0).classed("crisp",!0)}Qt.indexOf("marker")!==-1&&dt.insert("circle",":first-child").attr({cx:Ae+(jt.side!=="right"?_e:-_e),cy:Ot,r:_e,fill:ie}).classed("spikeline",!0)}if(Wt){var Ie=ot.vLinePoint,Ut,ee;Vt=Ie&&Ie.xa,jt=Ie&&Ie.ya;var Kt=Vt.spikesnap;Kt==="cursor"?(Ut=St.pointerX,ee=St.pointerY):(Ut=Vt._offset+Ie.x,ee=jt._offset+Ie.y);var ne=r.readability(Ie.color,Dt)<1.5?a.contrast(Dt):Ie.color,zt=Vt.spikemode,qt=Vt.spikethickness,Zt=Vt.spikecolor||ne,ae=u.getPxPosition(Z,Vt),vt,Mt;if(zt.indexOf("toaxis")!==-1||zt.indexOf("across")!==-1){if(zt.indexOf("toaxis")!==-1&&(vt=ae,Mt=ee),zt.indexOf("across")!==-1){var Lt=Vt._counterDomainMin,$t=Vt._counterDomainMax;Vt.anchor==="free"&&(Lt=Math.min(Lt,Vt.position),$t=Math.max($t,Vt.position)),vt=At.t+(1-$t)*At.h,Mt=At.t+(1-Lt)*At.h}dt.insert("line",":first-child").attr({x1:Ut,x2:Ut,y1:vt,y2:Mt,"stroke-width":qt,stroke:Zt,"stroke-dasharray":o.dashStyle(Vt.spikedash,qt)}).classed("spikeline",!0).classed("crisp",!0),dt.insert("line",":first-child").attr({x1:Ut,x2:Ut,y1:vt,y2:Mt,"stroke-width":qt+2,stroke:Dt}).classed("spikeline",!0).classed("crisp",!0)}zt.indexOf("marker")!==-1&&dt.insert("circle",":first-child").attr({cx:Ut,cy:ae-(Vt.side!=="top"?qt:-qt),r:qt,fill:Zt}).classed("spikeline",!0)}}}function ut(Z,ot,st){if(!st||st.length!==Z._hoverdata.length)return!0;for(var dt=st.length-1;dt>=0;dt--){var xt=st[dt],At=Z._hoverdata[dt];if(xt.curveNumber!==At.curveNumber||String(xt.pointNumber)!==String(At.pointNumber)||String(xt.pointNumbers)!==String(At.pointNumbers))return!0}return!1}function lt(Z,ot){return!0}function K(Z,ot){return t.plainText(Z||"",{len:ot,allowedTags:["br","sub","sup","b","i","em","s","u"]})}function $(Z,ot){for(var st=ot.charAt(0),dt=[],xt=[],At=[],St=0;St<Z.length;St++){var Nt=Z[St];m.traceIs(Nt.trace,"bar-like")||m.traceIs(Nt.trace,"box-violin")?At.push(Nt):Nt.trace[st+"period"]?xt.push(Nt):dt.push(Nt)}return dt.concat(xt).concat(At)}function H(Z,ot,st){var dt=ot[Z+"a"],xt=ot[Z+"Val"],At=ot.cd[0];if(dt.type==="category"||dt.type==="multicategory")xt=dt._categoriesMap[xt];else if(dt.type==="date"){var St=ot.trace[Z+"periodalignment"];if(St){var Nt=ot.cd[ot.index],Wt=Nt[Z+"Start"];Wt===void 0&&(Wt=Nt[Z]);var Vt=Nt[Z+"End"];Vt===void 0&&(Vt=Nt[Z]);var jt=Vt-Wt;St==="end"?xt+=jt:St==="middle"&&(xt+=jt/2)}xt=dt.d2c(xt)}return At&&At.t&&At.t.posLetter===dt._id&&(st.boxmode==="group"||st.violinmode==="group")&&(xt+=At.t.dPos),xt}function at(Z){return Z.offsetTop+Z.clientTop}function ct(Z){return Z.offsetLeft+Z.clientLeft}function et(Z,ot){var st=Z._fullLayout,dt=ot.getBoundingClientRect(),xt=dt.left,At=dt.top,St=xt+dt.width,Nt=At+dt.height,Wt=i.apply3DTransform(st._invTransform)(xt,At),Vt=i.apply3DTransform(st._invTransform)(St,Nt),jt=Wt[0],Dt=Wt[1],kt=Vt[0],Bt=Vt[1];return{x:jt,y:Dt,width:kt-jt,height:Bt-Dt,top:Math.min(Dt,Bt),left:Math.min(jt,kt),right:Math.max(jt,kt),bottom:Math.max(Dt,Bt)}}},26430:function(nt,W,e){var M=e(34809),C=e(78766),r=e(36040).isUnifiedHover;nt.exports=function(i,w,S,h){h=h||{};var l=w.legend;function t(n){h.font[n]||(h.font[n]=l?w.legend.font[n]:w.font[n])}w&&r(w.hovermode)&&(h.font||(h.font={}),t("size"),t("family"),t("color"),t("weight"),t("style"),t("variant"),l?(h.bgcolor||(h.bgcolor=C.combine(w.legend.bgcolor,w.paper_bgcolor)),h.bordercolor||(h.bordercolor=w.legend.bordercolor)):h.bgcolor||(h.bgcolor=w.paper_bgcolor)),S("hoverlabel.bgcolor",h.bgcolor),S("hoverlabel.bordercolor",h.bordercolor),S("hoverlabel.namelength",h.namelength),M.coerceFont(S,"hoverlabel.font",h.font),S("hoverlabel.align",h.align)}},45265:function(nt,W,e){var M=e(34809),C=e(6811);nt.exports=function(r,i){function w(S,h){return i[S]!==void 0?i[S]:M.coerce(r,i,C,S,h)}return w("clickmode"),w("hoversubplots"),w("hovermode")}},32141:function(nt,W,e){var M=e(45568),C=e(34809),r=e(14751),i=e(36040),w=e(6811),S=e(38103);nt.exports={moduleType:"component",name:"fx",constants:e(85988),schema:{layout:w},attributes:e(70192),layoutAttributes:w,supplyLayoutGlobalDefaults:e(5358),supplyDefaults:e(3239),supplyLayoutDefaults:e(8412),calc:e(83552),getDistanceFunction:i.getDistanceFunction,getClosest:i.getClosest,inbox:i.inbox,quadrature:i.quadrature,appendArrayPointValue:i.appendArrayPointValue,castHoverOption:l,castHoverinfo:t,hover:S.hover,unhover:r.unhover,loneHover:S.loneHover,loneUnhover:h,click:e(94225)};function h(n){var o=C.isD3Selection(n)?n:M.select(n);o.selectAll("g.hovertext").remove(),o.selectAll(".spikeline").remove()}function l(n,o,a){return C.castOption(n,o,"hoverlabel."+a)}function t(n,o,a){function s(u){return C.coerceHoverinfo({hoverinfo:u},{_module:n._module},o)}return C.castOption(n,a,"hoverinfo",s)}},6811:function(nt,W,e){var M=e(85988),C=e(80337),r=C({editType:"none"});r.family.dflt=M.HOVERFONT,r.size.dflt=M.HOVERFONTSIZE,nt.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:r,grouptitlefont:C({editType:"none"}),align:{valType:"enumerated",values:["left","right","auto"],dflt:"auto",editType:"none"},namelength:{valType:"integer",min:-1,dflt:15,editType:"none"},editType:"none"},selectdirection:{valType:"enumerated",values:["h","v","d","any"],dflt:"any",editType:"none"}}},8412:function(nt,W,e){var M=e(34809),C=e(6811),r=e(45265),i=e(26430);nt.exports=function(w,S){function h(u,x){return M.coerce(w,S,C,u,x)}var l=r(w,S);l&&(h("hoverdistance"),h("spikedistance"));var t=h("dragmode");t==="select"&&h("selectdirection");var n=S._has("mapbox"),o=S._has("map"),a=S._has("geo"),s=S._basePlotModules.length;S.dragmode==="zoom"&&((n||o||a)&&s===1||(n||o)&&a&&s===2)&&(S.dragmode="pan"),i(w,S,h),M.coerceFont(h,"hoverlabel.grouptitlefont",S.hoverlabel.font)}},5358:function(nt,W,e){var M=e(34809),C=e(26430),r=e(6811);nt.exports=function(i,w){function S(h,l){return M.coerce(i,w,r,h,l)}C(i,w,S)}},83595:function(nt,W,e){var M=e(34809),C=e(90694).counter,r=e(13792).u,i=e(54826).idRegex,w=e(78032),S={rows:{valType:"integer",min:1,editType:"plot"},roworder:{valType:"enumerated",values:["top to bottom","bottom to top"],dflt:"top to bottom",editType:"plot"},columns:{valType:"integer",min:1,editType:"plot"},subplots:{valType:"info_array",freeLength:!0,dimensions:2,items:{valType:"enumerated",values:[C("xy").toString(),""],editType:"plot"},editType:"plot"},xaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[i.x.toString(),""],editType:"plot"},editType:"plot"},yaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[i.y.toString(),""],editType:"plot"},editType:"plot"},pattern:{valType:"enumerated",values:["independent","coupled"],dflt:"coupled",editType:"plot"},xgap:{valType:"number",min:0,max:1,editType:"plot"},ygap:{valType:"number",min:0,max:1,editType:"plot"},domain:r({name:"grid",editType:"plot",noGridCell:!0},{}),xside:{valType:"enumerated",values:["bottom","bottom plot","top plot","top"],dflt:"bottom plot",editType:"plot"},yside:{valType:"enumerated",values:["left","left plot","right plot","right"],dflt:"left plot",editType:"plot"},editType:"plot"};function h(a,s,u){var x=s[u+"axes"],m=Object.keys((a._splomAxes||{})[u]||{});if(Array.isArray(x))return x;if(m.length)return m}function l(a,s){var u=a.grid||{},x=h(s,u,"x"),m=h(s,u,"y");if(!a.grid&&!x&&!m)return;var y=Array.isArray(u.subplots)&&Array.isArray(u.subplots[0]),c=Array.isArray(x),p=Array.isArray(m),f=c&&x!==u.xaxes&&p&&m!==u.yaxes,T,k;y?(T=u.subplots.length,k=u.subplots[0].length):(p&&(T=m.length),c&&(k=x.length));var P=w.newContainer(s,"grid");function g(V,N){return M.coerce(u,P,S,V,N)}var A=g("rows",T),E=g("columns",k);if(!(A*E>1)){delete s.grid;return}if(!y&&!c&&!p){var d=g("pattern")==="independent";d&&(y=!0)}P._hasSubplotGrid=y;var _=g("roworder"),L=_==="top to bottom",b=y?.2:.1,D=y?.3:.1,B,I;f&&s._splomGridDflt&&(B=s._splomGridDflt.xside,I=s._splomGridDflt.yside),P._domains={x:t("x",g,b,B,E),y:t("y",g,D,I,A,L)}}function t(a,s,u,x,m,y){var c=s(a+"gap",u),p=s("domain."+a);s(a+"side",x);for(var f=new Array(m),T=p[0],k=(p[1]-T)/(m-c),P=k*(1-c),g=0;g<m;g++){var A=T+k*g;f[y?m-1-g:g]=[A,A+P]}return f}function n(a,s){var u=s.grid;if(!(!u||!u._domains)){var x=a.grid||{},m=s._subplots,y=u._hasSubplotGrid,c=u.rows,p=u.columns,f=u.pattern==="independent",T,k,P,g,A,E,d,_=u._axisMap={};if(y){var L=x.subplots||[];E=u.subplots=new Array(c);var b=1;for(T=0;T<c;T++){var D=E[T]=new Array(p),B=L[T]||[];for(k=0;k<p;k++)if(f?(A=b===1?"xy":"x"+b+"y"+b,b++):A=B[k],D[k]="",m.cartesian.indexOf(A)!==-1){if(d=A.indexOf("y"),P=A.slice(0,d),g=A.slice(d),_[P]!==void 0&&_[P]!==k||_[g]!==void 0&&_[g]!==T)continue;D[k]=A,_[P]=k,_[g]=T}}}else{var I=h(s,x,"x"),V=h(s,x,"y");u.xaxes=o(I,m.xaxis,p,_,"x"),u.yaxes=o(V,m.yaxis,c,_,"y")}var N=u._anchors={},F=u.roworder==="top to bottom";for(var U in _){var G=U.charAt(0),Y=u[G+"side"],Q,ft,ut;if(Y.length<8)N[U]="free";else if(G==="x"){if(Y.charAt(0)==="t"===F?(Q=0,ft=1,ut=c):(Q=c-1,ft=-1,ut=-1),y){var lt=_[U];for(T=Q;T!==ut;T+=ft)if(A=E[T][lt],!!A&&(d=A.indexOf("y"),A.slice(0,d)===U)){N[U]=A.slice(d);break}}else for(T=Q;T!==ut;T+=ft)if(g=u.yaxes[T],m.cartesian.indexOf(U+g)!==-1){N[U]=g;break}}else if(Y.charAt(0)==="l"?(Q=0,ft=1,ut=p):(Q=p-1,ft=-1,ut=-1),y){var K=_[U];for(T=Q;T!==ut;T+=ft)if(A=E[K][T],!!A&&(d=A.indexOf("y"),A.slice(d)===U)){N[U]=A.slice(0,d);break}}else for(T=Q;T!==ut;T+=ft)if(P=u.xaxes[T],m.cartesian.indexOf(P+U)!==-1){N[U]=P;break}}}}function o(a,s,u,x,m){var y=new Array(u),c;function p(f,T){s.indexOf(T)!==-1&&x[T]===void 0?(y[f]=T,x[T]=f):y[f]=""}if(Array.isArray(a))for(c=0;c<u;c++)p(c,a[c]);else for(p(0,m),c=1;c<u;c++)p(c,m+(c+1));return y}nt.exports={moduleType:"component",name:"grid",schema:{layout:{grid:S}},layoutAttributes:S,sizeDefaults:l,contentDefaults:n}},37260:function(nt,W,e){var M=e(54826),C=e(78032).templatedArray;e(35081),nt.exports=C("image",{visible:{valType:"boolean",dflt:!0,editType:"arraydraw"},source:{valType:"string",editType:"arraydraw"},layer:{valType:"enumerated",values:["below","above"],dflt:"above",editType:"arraydraw"},sizex:{valType:"number",dflt:0,editType:"arraydraw"},sizey:{valType:"number",dflt:0,editType:"arraydraw"},sizing:{valType:"enumerated",values:["fill","contain","stretch"],dflt:"contain",editType:"arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},x:{valType:"any",dflt:0,editType:"arraydraw"},y:{valType:"any",dflt:0,editType:"arraydraw"},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left",editType:"arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],dflt:"top",editType:"arraydraw"},xref:{valType:"enumerated",values:["paper",M.idRegex.x.toString()],dflt:"paper",editType:"arraydraw"},yref:{valType:"enumerated",values:["paper",M.idRegex.y.toString()],dflt:"paper",editType:"arraydraw"},editType:"arraydraw"})},89443:function(nt,W,e){var M=e(10721),C=e(8083);nt.exports=function(r,i,w,S){i=i||{};var h=w==="log"&&i.type==="linear",l=w==="linear"&&i.type==="log";if(h||l){for(var t=r._fullLayout.images,n=i._id.charAt(0),o,a,s=0;s<t.length;s++)if(o=t[s],a="images["+s+"].",o[n+"ref"]===i._id){var u=o[n],x=o["size"+n],m=null,y=null;if(h){m=C(u,i.range);var c=x/Math.pow(10,m)/2;y=2*Math.log(c+Math.sqrt(1+c*c))/Math.LN10}else m=Math.pow(10,u),y=m*(Math.pow(10,x/2)-Math.pow(10,-x/2));M(m)?M(y)||(y=null):(m=null,y=null),S(a+n,m),S(a+"size"+n,y)}}}},507:function(nt,W,e){var M=e(34809),C=e(29714),r=e(59008),i=e(37260),w="images";nt.exports=function(h,l){var t={name:w,handleItemDefaults:S};r(h,l,t)};function S(h,l,t){function n(p,f){return M.coerce(h,l,i,p,f)}var o=n("source"),a=n("visible",!!o);if(!a)return l;n("layer"),n("xanchor"),n("yanchor"),n("sizex"),n("sizey"),n("sizing"),n("opacity");for(var s={_fullLayout:t},u=["x","y"],x=0;x<2;x++){var m=u[x],y=C.coerceRef(h,l,s,m,"paper",void 0);if(y!=="paper"){var c=C.getFromId(s,y);c._imgIndices.push(l._index)}C.coercePosition(l,s,n,y,m,0)}return l}},32211:function(nt,W,e){var M=e(45568),C=e(62203),r=e(29714),i=e(5975),w=e(62972);nt.exports=function(S){var h=S._fullLayout,l=[],t={},n=[],o,a;for(a=0;a<h.images.length;a++){var s=h.images[a];if(s.visible)if(s.layer==="below"&&s.xref!=="paper"&&s.yref!=="paper"){o=i.ref2id(s.xref)+i.ref2id(s.yref);var u=h._plots[o];if(!u){n.push(s);continue}u.mainplot&&(o=u.mainplot.id),t[o]||(t[o]=[]),t[o].push(s)}else s.layer==="above"?l.push(s):n.push(s)}var x={x:{left:{sizing:"xMin",offset:0},center:{sizing:"xMid",offset:-1/2},right:{sizing:"xMax",offset:-1}},y:{top:{sizing:"YMin",offset:0},middle:{sizing:"YMid",offset:-1/2},bottom:{sizing:"YMax",offset:-1}}};function m(P){var g=M.select(this);if(this._imgSrc!==P.source)if(g.attr("xmlns",w.svg),P.source&&P.source.slice(0,5)==="data:")g.attr("xlink:href",P.source),this._imgSrc=P.source;else{var A=new Promise((function(E){var d=new Image;this.img=d,d.setAttribute("crossOrigin","anonymous"),d.onerror=_,d.onload=function(){var L=document.createElement("canvas");L.width=this.width,L.height=this.height;var b=L.getContext("2d",{willReadFrequently:!0});b.drawImage(this,0,0);var D=L.toDataURL("image/png");g.attr("xlink:href",D),E()},g.on("error",_),d.src=P.source,this._imgSrc=P.source;function _(){g.remove(),E()}}).bind(this));S._promises.push(A)}}function y(P){var g=M.select(this),A=r.getFromId(S,P.xref),E=r.getFromId(S,P.yref),d=r.getRefType(P.xref)==="domain",_=r.getRefType(P.yref)==="domain",L=h._size,b,D;A!==void 0?b=typeof P.xref=="string"&&d?A._length*P.sizex:Math.abs(A.l2p(P.sizex)-A.l2p(0)):b=P.sizex*L.w,E!==void 0?D=typeof P.yref=="string"&&_?E._length*P.sizey:Math.abs(E.l2p(P.sizey)-E.l2p(0)):D=P.sizey*L.h;var B=b*x.x[P.xanchor].offset,I=D*x.y[P.yanchor].offset,V=x.x[P.xanchor].sizing+x.y[P.yanchor].sizing,N,F;switch(A!==void 0?N=typeof P.xref=="string"&&d?A._length*P.x+A._offset:A.r2p(P.x)+A._offset:N=P.x*L.w+L.l,N+=B,E!==void 0?F=typeof P.yref=="string"&&_?E._length*(1-P.y)+E._offset:E.r2p(P.y)+E._offset:F=L.h-P.y*L.h+L.t,F+=I,P.sizing){case"fill":V+=" slice";break;case"stretch":V="none";break}g.attr({x:N,y:F,width:b,height:D,preserveAspectRatio:V,opacity:P.opacity});var U=A&&r.getRefType(P.xref)!=="domain"?A._id:"",G=E&&r.getRefType(P.yref)!=="domain"?E._id:"",Y=U+G;C.setClipUrl(g,Y?"clip"+h._uid+Y:null,S)}var c=h._imageLowerLayer.selectAll("image").data(n),p=h._imageUpperLayer.selectAll("image").data(l);c.enter().append("image"),p.enter().append("image"),c.exit().remove(),p.exit().remove(),c.each(function(P){m.bind(this)(P),y.bind(this)(P)}),p.each(function(P){m.bind(this)(P),y.bind(this)(P)});var f=Object.keys(h._plots);for(a=0;a<f.length;a++){o=f[a];var T=h._plots[o];if(T.imagelayer){var k=T.imagelayer.selectAll("image").data(t[o]||[]);k.enter().append("image"),k.exit().remove(),k.each(function(P){m.bind(this)(P),y.bind(this)(P)})}}}},15553:function(nt,W,e){nt.exports={moduleType:"component",name:"images",layoutAttributes:e(37260),supplyLayoutDefaults:e(507),includeBasePlot:e(20706)("images"),draw:e(32211),convertCoords:e(89443)}},86405:function(nt,W,e){var M=e(80337),C=e(10229);nt.exports={_isSubplotObj:!0,visible:{valType:"boolean",dflt:!0,editType:"legend"},bgcolor:{valType:"color",editType:"legend"},bordercolor:{valType:"color",dflt:C.defaultLine,editType:"legend"},borderwidth:{valType:"number",min:0,dflt:0,editType:"legend"},font:M({editType:"legend"}),grouptitlefont:M({editType:"legend"}),orientation:{valType:"enumerated",values:["v","h"],dflt:"v",editType:"legend"},traceorder:{valType:"flaglist",flags:["reversed","grouped"],extras:["normal"],editType:"legend"},tracegroupgap:{valType:"number",min:0,dflt:10,editType:"legend"},entrywidth:{valType:"number",min:0,editType:"legend"},entrywidthmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"pixels",editType:"legend"},indentation:{valType:"number",min:-15,dflt:0,editType:"legend"},itemsizing:{valType:"enumerated",values:["trace","constant"],dflt:"trace",editType:"legend"},itemwidth:{valType:"number",min:30,dflt:30,editType:"legend"},itemclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggle",editType:"legend"},itemdoubleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggleothers",editType:"legend"},groupclick:{valType:"enumerated",values:["toggleitem","togglegroup"],dflt:"togglegroup",editType:"legend"},x:{valType:"number",editType:"legend"},xref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"legend"},y:{valType:"number",editType:"legend"},yref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],editType:"legend"},uirevision:{valType:"any",editType:"none"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"legend"},title:{text:{valType:"string",dflt:"",editType:"legend"},font:M({editType:"legend"}),side:{valType:"enumerated",values:["top","left","top left","top center","top right"],editType:"legend"},editType:"legend"},editType:"legend"}},72783:function(nt){nt.exports={scrollBarWidth:6,scrollBarMinHeight:20,scrollBarColor:"#808BA4",scrollBarMargin:4,scrollBarEnterAttrs:{rx:20,ry:3,width:0,height:0},titlePad:2,itemGap:5}},73970:function(nt,W,e){var M=e(33626),C=e(34809),r=e(78032),i=e(9829),w=e(86405),S=e(6704),h=e(57599);function l(t,n,o,a){var s=n[t]||{},u=r.newContainer(o,t);function x(ut,lt){return C.coerce(s,u,w,ut,lt)}var m=C.coerceFont(x,"font",o.font);x("bgcolor",o.paper_bgcolor),x("bordercolor");var y=x("visible");if(y){for(var c,p=function(ut,lt){var K=c._input,$=c;return C.coerce(K,$,i,ut,lt)},f=o.font||{},T=C.coerceFont(x,"grouptitlefont",f,{overrideDflt:{size:Math.round(f.size*1.1)}}),k=0,P=!1,g="normal",A=(o.shapes||[]).filter(function(ut){return ut.showlegend}),E=a.concat(A).filter(function(ut){return t===(ut.legend||"legend")}),d=0;d<E.length;d++)if(c=E[d],!!c.visible){var _=c._isShape;(c.showlegend||c._dfltShowLegend&&!(c._module&&c._module.attributes&&c._module.attributes.showlegend&&c._module.attributes.showlegend.dflt===!1))&&(k++,c.showlegend&&(P=!0,(!_&&M.traceIs(c,"pie-like")||c._input.showlegend===!0)&&k++),C.coerceFont(p,"legendgrouptitle.font",T)),(!_&&M.traceIs(c,"bar")&&o.barmode==="stack"||["tonextx","tonexty"].indexOf(c.fill)!==-1)&&(g=h.isGrouped({traceorder:g})?"grouped+reversed":"reversed"),c.legendgroup!==void 0&&c.legendgroup!==""&&(g=h.isReversed({traceorder:g})?"reversed+grouped":"grouped")}var L=C.coerce(n,o,S,"showlegend",P&&k>(t==="legend"?1:0));if(L===!1&&(o[t]=void 0),!(L===!1&&!s.uirevision)&&(x("uirevision",o.uirevision),L!==!1)){x("borderwidth");var b=x("orientation"),D=x("yref"),B=x("xref"),I=b==="h",V=D==="paper",N=B==="paper",F,U,G,Y="left";I?(F=0,M.getComponentMethod("rangeslider","isVisible")(n.xaxis)?V?(U=1.1,G="bottom"):(U=1,G="top"):V?(U=-.1,G="top"):(U=0,G="bottom")):(U=1,G="auto",N?F=1.02:(F=1,Y="right")),C.coerce(s,u,{x:{valType:"number",editType:"legend",min:N?-2:0,max:N?3:1,dflt:F}},"x"),C.coerce(s,u,{y:{valType:"number",editType:"legend",min:V?-2:0,max:V?3:1,dflt:U}},"y"),x("traceorder",g),h.isGrouped(o[t])&&x("tracegroupgap"),x("entrywidth"),x("entrywidthmode"),x("indentation"),x("itemsizing"),x("itemwidth"),x("itemclick"),x("itemdoubleclick"),x("groupclick"),x("xanchor",Y),x("yanchor",G),x("valign"),C.noneOrAll(s,u,["x","y"]);var Q=x("title.text");if(Q){x("title.side",I?"left":"top");var ft=C.extendFlat({},m,{size:C.bigFont(m.size)});C.coerceFont(x,"title.font",ft)}}}}nt.exports=function(t,n,o){var a,s=o.slice(),u=n.shapes;if(u)for(a=0;a<u.length;a++){var x=u[a];if(x.showlegend){var m={_input:x._input,visible:x.visible,showlegend:x.showlegend,legend:x.legend};s.push(m)}}var y=["legend"];for(a=0;a<s.length;a++)C.pushUnique(y,s[a].legend);for(n._legends=[],a=0;a<y.length;a++){var c=y[a];l(c,t,n,s),n[c]&&n[c].visible&&(n[c]._id=c),n._legends.push(c)}}},6134:function(nt,W,e){var M=e(45568),C=e(34809),r=e(44122),i=e(33626),w=e(68596),S=e(14751),h=e(62203),l=e(78766),t=e(30635),n=e(22165),o=e(72783),a=e(4530),s=a.LINE_SPACING,u=a.FROM_TL,x=a.FROM_BR,m=e(851),y=e(14375),c=e(57599),p=1,f=/^legend[0-9]*$/;nt.exports=function(F,U){if(U)k(F,U);else{var G=F._fullLayout,Y=G._legends,Q=G._infolayer.selectAll('[class^="legend"]');Q.each(function(){var K=M.select(this),$=K.attr("class"),H=$.split(" ")[0];H.match(f)&&Y.indexOf(H)===-1&&K.remove()});for(var ft=0;ft<Y.length;ft++){var ut=Y[ft],lt=F._fullLayout[ut];k(F,lt)}}};function T(F,U,G){if(!(U.title.side!=="top center"&&U.title.side!=="top right")){var Y=U.title.font,Q=Y.size*s,ft=0,ut=F.node(),lt=h.bBox(ut).width;U.title.side==="top center"?ft=.5*(U._width-2*G-2*o.titlePad-lt):U.title.side==="top right"&&(ft=U._width-2*G-2*o.titlePad-lt),t.positionText(F,G+o.titlePad+ft,G+Q)}}function k(F,U){var G=U||{},Y=F._fullLayout,Q=N(G),ft,ut,lt=G._inHover;if(lt?(ut=G.layer,ft="hover"):(ut=Y._infolayer,ft=Q),!!ut){ft+=Y._uid,F._legendMouseDownTime||(F._legendMouseDownTime=0);var K;if(lt){if(!G.entries)return;K=m(G.entries,G)}else{for(var $=(F.calcdata||[]).slice(),H=Y.shapes,at=0;at<H.length;at++){var ct=H[at];if(ct.showlegend){var et={_isShape:!0,_fullInput:ct,index:ct._index,name:ct.name||ct.label.text||"shape "+ct._index,legend:ct.legend,legendgroup:ct.legendgroup,legendgrouptitle:ct.legendgrouptitle,legendrank:ct.legendrank,legendwidth:ct.legendwidth,showlegend:ct.showlegend,visible:ct.visible,opacity:ct.opacity,mode:ct.type==="line"?"lines":"markers",line:ct.line,marker:{line:ct.line,color:ct.fillcolor,size:12,symbol:ct.type==="rect"?"square":ct.type==="circle"?"circle":"hexagon2"}};$.push([{trace:et}])}}K=Y.showlegend&&m($,G,Y._legends.length>1)}var Z=Y.hiddenlabels||[];if(!lt&&(!Y.showlegend||!K.length))return ut.selectAll("."+Q).remove(),Y._topdefs.select("#"+ft).remove(),r.autoMargin(F,Q);var ot=C.ensureSingle(ut,"g",Q,function(jt){lt||jt.attr("pointer-events","all")}),st=C.ensureSingleById(Y._topdefs,"clipPath",ft,function(jt){jt.append("rect")}),dt=C.ensureSingle(ot,"rect","bg",function(jt){jt.attr("shape-rendering","crispEdges")});dt.call(l.stroke,G.bordercolor).call(l.fill,G.bgcolor).style("stroke-width",G.borderwidth+"px");var xt=C.ensureSingle(ot,"g","scrollbox"),At=G.title;G._titleWidth=0,G._titleHeight=0;var St;At.text?(St=C.ensureSingle(xt,"text",Q+"titletext"),St.attr("text-anchor","start").call(h.font,At.font).text(At.text),_(St,xt,F,G,p)):xt.selectAll("."+Q+"titletext").remove();var Nt=C.ensureSingle(ot,"rect","scrollbar",function(jt){jt.attr(o.scrollBarEnterAttrs).call(l.fill,o.scrollBarColor)}),Wt=xt.selectAll("g.groups").data(K);Wt.enter().append("g").attr("class","groups"),Wt.exit().remove();var Vt=Wt.selectAll("g.traces").data(C.identity);Vt.enter().append("g").attr("class","traces"),Vt.exit().remove(),Vt.style("opacity",function(jt){var Dt=jt[0].trace;return i.traceIs(Dt,"pie-like")?Z.indexOf(jt[0].label)!==-1?.5:1:Dt.visible==="legendonly"?.5:1}).each(function(){M.select(this).call(A,F,G)}).call(y,F,G).each(function(){lt||M.select(this).call(d,F,Q)}),C.syncOrAsync([r.previousPromises,function(){return D(F,Wt,Vt,G)},function(){var jt=Y._size,Dt=G.borderwidth,kt=G.xref==="paper",Bt=G.yref==="paper";if(At.text&&T(St,G,Dt),!lt){var Ot,Ht;kt?Ot=jt.l+jt.w*G.x-u[I(G)]*G._width:Ot=Y.width*G.x-u[I(G)]*G._width,Bt?Ht=jt.t+jt.h*(1-G.y)-u[V(G)]*G._effHeight:Ht=Y.height*(1-G.y)-u[V(G)]*G._effHeight;var ye=B(F,Q,Ot,Ht);if(ye)return;if(Y.margin.autoexpand){var Qt=Ot,_e=Ht;Ot=kt?C.constrain(Ot,0,Y.width-G._width):Qt,Ht=Bt?C.constrain(Ht,0,Y.height-G._effHeight):_e,Ot!==Qt&&C.log("Constrain "+Q+".x to make legend fit inside graph"),Ht!==_e&&C.log("Constrain "+Q+".y to make legend fit inside graph")}h.setTranslate(ot,Ot,Ht)}if(Nt.on(".drag",null),ot.on("wheel",null),lt||G._height<=G._maxHeight||F._context.staticPlot){var ie=G._effHeight;lt&&(ie=G._height),dt.attr({width:G._width-Dt,height:ie-Dt,x:Dt/2,y:Dt/2}),h.setTranslate(xt,0,0),st.select("rect").attr({width:G._width-2*Dt,height:ie-2*Dt,x:Dt,y:Dt}),h.setClipUrl(xt,ft,F),h.setRect(Nt,0,0,0,0),delete G._scrollY}else{var Ae=Math.max(o.scrollBarMinHeight,G._effHeight*G._effHeight/G._height),Pe=G._effHeight-Ae-2*o.scrollBarMargin,Oe=G._height-G._effHeight,je=Pe/Oe,Le=Math.min(G._scrollY||0,Oe);dt.attr({width:G._width-2*Dt+o.scrollBarWidth+o.scrollBarMargin,height:G._effHeight-Dt,x:Dt/2,y:Dt/2}),st.select("rect").attr({width:G._width-2*Dt+o.scrollBarWidth+o.scrollBarMargin,height:G._effHeight-2*Dt,x:Dt,y:Dt+Le}),h.setClipUrl(xt,ft,F),Zt(Le,Ae,je),ot.on("wheel",function(){Le=C.constrain(G._scrollY+M.event.deltaY/Pe*Oe,0,Oe),Zt(Le,Ae,je),Le!==0&&Le!==Oe&&M.event.preventDefault()});var Ie,Ut,ee,Kt=function($t,ge,de){var sr=(de-ge)/je+$t;return C.constrain(sr,0,Oe)},ne=function($t,ge,de){var sr=(ge-de)/je+$t;return C.constrain(sr,0,Oe)},zt=M.behavior.drag().on("dragstart",function(){var $t=M.event.sourceEvent;$t.type==="touchstart"?Ie=$t.changedTouches[0].clientY:Ie=$t.clientY,ee=Le}).on("drag",function(){var $t=M.event.sourceEvent;$t.buttons===2||$t.ctrlKey||($t.type==="touchmove"?Ut=$t.changedTouches[0].clientY:Ut=$t.clientY,Le=Kt(ee,Ie,Ut),Zt(Le,Ae,je))});Nt.call(zt);var qt=M.behavior.drag().on("dragstart",function(){var $t=M.event.sourceEvent;$t.type==="touchstart"&&(Ie=$t.changedTouches[0].clientY,ee=Le)}).on("drag",function(){var $t=M.event.sourceEvent;$t.type==="touchmove"&&(Ut=$t.changedTouches[0].clientY,Le=ne(ee,Ie,Ut),Zt(Le,Ae,je))});xt.call(qt)}function Zt($t,ge,de){G._scrollY=F._fullLayout[Q]._scrollY=$t,h.setTranslate(xt,0,-$t),h.setRect(Nt,G._width,o.scrollBarMargin+$t*de,o.scrollBarWidth,ge),st.select("rect").attr("y",Dt+$t)}if(F._context.edits.legendPosition){var ae,vt,Mt,Lt;ot.classed("cursor-move",!0),S.init({element:ot.node(),gd:F,prepFn:function($t){if($t.target!==Nt.node()){var ge=h.getTranslate(ot);Mt=ge.x,Lt=ge.y}},moveFn:function($t,ge){if(Mt!==void 0&&Lt!==void 0){var de=Mt+$t,sr=Lt+ge;h.setTranslate(ot,de,sr),ae=S.align(de,G._width,jt.l,jt.l+jt.w,G.xanchor),vt=S.align(sr+G._height,-G._height,jt.t+jt.h,jt.t,G.yanchor)}},doneFn:function(){if(ae!==void 0&&vt!==void 0){var $t={};$t[Q+".x"]=ae,$t[Q+".y"]=vt,i.call("_guiRelayout",F,$t)}},clickFn:function($t,ge){var de=ut.selectAll("g.traces").filter(function(){var sr=this.getBoundingClientRect();return ge.clientX>=sr.left&&ge.clientX<=sr.right&&ge.clientY>=sr.top&&ge.clientY<=sr.bottom});de.size()>0&&g(F,ot,de,$t,ge)}})}}],F)}}function P(F,U,G){var Y=F[0],Q=Y.width,ft=U.entrywidthmode,ut=Y.trace.legendwidth||U.entrywidth;return ft==="fraction"?U._maxWidth*ut:G+(ut||Q)}function g(F,U,G,Y,Q){var ft=G.data()[0][0].trace,ut={event:Q,node:G.node(),curveNumber:ft.index,expandedIndex:ft._expandedIndex,data:F.data,layout:F.layout,frames:F._transitionData._frames,config:F._context,fullData:F._fullData,fullLayout:F._fullLayout};ft._group&&(ut.group=ft._group),i.traceIs(ft,"pie-like")&&(ut.label=G.datum()[0].label);var lt=w.triggerHandler(F,"plotly_legendclick",ut);if(Y===1){if(lt===!1)return;U._clickTimeout=setTimeout(function(){F._fullLayout&&n(G,F,Y)},F._context.doubleClickDelay)}else if(Y===2){U._clickTimeout&&clearTimeout(U._clickTimeout),F._legendMouseDownTime=0;var K=w.triggerHandler(F,"plotly_legenddoubleclick",ut);K!==!1&&lt!==!1&&n(G,F,Y)}}function A(F,U,G){var Y=N(G),Q=F.data()[0][0],ft=Q.trace,ut=i.traceIs(ft,"pie-like"),lt=!G._inHover&&U._context.edits.legendText&&!ut,K=G._maxNameLength,$,H;Q.groupTitle?($=Q.groupTitle.text,H=Q.groupTitle.font):(H=G.font,G.entries?$=Q.text:($=ut?Q.label:ft.name,ft._meta&&($=C.templateString($,ft._meta))));var at=C.ensureSingle(F,"text",Y+"text");at.attr("text-anchor","start").call(h.font,H).text(lt?E($,K):$);var ct=G.indentation+G.itemwidth+o.itemGap*2;t.positionText(at,ct,0),lt?at.call(t.makeEditable,{gd:U,text:$}).call(_,F,U,G).on("edit",function(et){this.text(E(et,K)).call(_,F,U,G);var Z=Q.trace._fullInput||{},ot={};if(i.hasTransform(Z,"groupby")){var st=i.getTransformIndices(Z,"groupby"),dt=st[st.length-1],xt=C.keyedContainer(Z,"transforms["+dt+"].styles","target","value.name");xt.set(Q.trace._group,et),ot=xt.constructUpdate()}else ot.name=et;return Z._isShape?i.call("_guiRelayout",U,"shapes["+ft.index+"].name",ot.name):i.call("_guiRestyle",U,ot,ft.index)}):_(at,F,U,G)}function E(F,U){var G=Math.max(4,U);if(F&&F.trim().length>=G/2)return F;F=F||"";for(var Y=G-F.length;Y>0;Y--)F+=" ";return F}function d(F,U,G){var Y=U._context.doubleClickDelay,Q,ft=1,ut=C.ensureSingle(F,"rect",G+"toggle",function(lt){U._context.staticPlot||lt.style("cursor","pointer").attr("pointer-events","all"),lt.call(l.fill,"rgba(0,0,0,0)")});U._context.staticPlot||(ut.on("mousedown",function(){Q=new Date().getTime(),Q-U._legendMouseDownTime<Y?ft+=1:(ft=1,U._legendMouseDownTime=Q)}),ut.on("mouseup",function(){if(!(U._dragged||U._editing)){var lt=U._fullLayout[G];new Date().getTime()-U._legendMouseDownTime>Y&&(ft=Math.max(ft-1,1)),g(U,lt,F,ft,M.event)}}))}function _(F,U,G,Y,Q){Y._inHover&&F.attr("data-notex",!0),t.convertToTspans(F,G,function(){L(U,G,Y,Q)})}function L(F,U,G,Y){var Q=F.data()[0][0];if(!G._inHover&&Q&&!Q.trace.showlegend){F.remove();return}var ft=F.select("g[class*=math-group]"),ut=ft.node(),lt=N(G);G||(G=U._fullLayout[lt]);var K=G.borderwidth,$;Y===p?$=G.title.font:Q.groupTitle?$=Q.groupTitle.font:$=G.font;var H=$.size*s,at,ct;if(ut){var et=h.bBox(ut);at=et.height,ct=et.width,Y===p?h.setTranslate(ft,K,K+at*.75):h.setTranslate(ft,0,at*.25)}else{var Z="."+lt+(Y===p?"title":"")+"text",ot=F.select(Z),st=t.lineCount(ot),dt=ot.node();if(at=H*st,ct=dt?h.bBox(dt).width:0,Y===p)G.title.side==="left"&&(ct+=o.itemGap*2),t.positionText(ot,K+o.titlePad,K+H);else{var xt=o.itemGap*2+G.indentation+G.itemwidth;Q.groupTitle&&(xt=o.itemGap,ct-=G.indentation+G.itemwidth),t.positionText(ot,xt,-H*((st-1)/2-.3))}}Y===p?(G._titleWidth=ct,G._titleHeight=at):(Q.lineHeight=H,Q.height=Math.max(at,16)+3,Q.width=ct)}function b(F){var U=0,G=0,Y=F.title.side;return Y&&(Y.indexOf("left")!==-1&&(U=F._titleWidth),Y.indexOf("top")!==-1&&(G=F._titleHeight)),[U,G]}function D(F,U,G,Y){var Q=F._fullLayout,ft=N(Y);Y||(Y=Q[ft]);var ut=Q._size,lt=c.isVertical(Y),K=c.isGrouped(Y),$=Y.entrywidthmode==="fraction",H=Y.borderwidth,at=2*H,ct=o.itemGap,et=Y.indentation+Y.itemwidth+ct*2,Z=2*(H+ct),ot=V(Y),st=Y.y<0||Y.y===0&&ot==="top",dt=Y.y>1||Y.y===1&&ot==="bottom",xt=Y.tracegroupgap,At={};Y._maxHeight=Math.max(st||dt?Q.height/2:ut.h,30);var St=0;Y._width=0,Y._height=0;var Nt=b(Y);if(lt)G.each(function(ee){var Kt=ee[0].height;h.setTranslate(this,H+Nt[0],H+Nt[1]+Y._height+Kt/2+ct),Y._height+=Kt,Y._width=Math.max(Y._width,ee[0].width)}),St=et+Y._width,Y._width+=ct+et+at,Y._height+=Z,K&&(U.each(function(ee,Kt){h.setTranslate(this,0,Kt*Y.tracegroupgap)}),Y._height+=(Y._lgroupsLength-1)*Y.tracegroupgap);else{var Wt=I(Y),Vt=Y.x<0||Y.x===0&&Wt==="right",jt=Y.x>1||Y.x===1&&Wt==="left",Dt=dt||st,kt=Q.width/2;Y._maxWidth=Math.max(Vt?Dt&&Wt==="left"?ut.l+ut.w:kt:jt?Dt&&Wt==="right"?ut.r+ut.w:kt:ut.w,2*et);var Bt=0,Ot=0;G.each(function(ee){var Kt=P(ee,Y,et);Bt=Math.max(Bt,Kt),Ot+=Kt}),St=null;var Ht=0;if(K){var ye=0,Qt=0,_e=0;U.each(function(){var ee=0,Kt=0;M.select(this).selectAll("g.traces").each(function(zt){var qt=P(zt,Y,et),Zt=zt[0].height;h.setTranslate(this,Nt[0],Nt[1]+H+ct+Zt/2+Kt),Kt+=Zt,ee=Math.max(ee,qt),At[zt[0].trace.legendgroup]=ee});var ne=ee+ct;Qt>0&&ne+H+Qt>Y._maxWidth?(Ht=Math.max(Ht,Qt),Qt=0,_e+=ye+xt,ye=Kt):ye=Math.max(ye,Kt),h.setTranslate(this,Qt,_e),Qt+=ne}),Y._width=Math.max(Ht,Qt)+H,Y._height=_e+ye+Z}else{var ie=G.size(),Ae=Ot+at+(ie-1)*ct<Y._maxWidth,Pe=0,Oe=0,je=0,Le=0;G.each(function(ee){var Kt=ee[0].height,ne=P(ee,Y,et),zt=Ae?ne:Bt;$||(zt+=ct),zt+H+Oe-ct>=Y._maxWidth&&(Ht=Math.max(Ht,Le),Oe=0,je+=Pe,Y._height+=Pe,Pe=0),h.setTranslate(this,Nt[0]+H+Oe,Nt[1]+H+je+Kt/2+ct),Le=Oe+ne+ct,Oe+=zt,Pe=Math.max(Pe,Kt)}),Ae?(Y._width=Oe+at,Y._height=Pe+Z):(Y._width=Math.max(Ht,Le)+at,Y._height+=Pe+Z)}}Y._width=Math.ceil(Math.max(Y._width+Nt[0],Y._titleWidth+2*(H+o.titlePad))),Y._height=Math.ceil(Math.max(Y._height+Nt[1],Y._titleHeight+2*(H+o.itemGap))),Y._effHeight=Math.min(Y._height,Y._maxHeight);var Ie=F._context.edits,Ut=Ie.legendText||Ie.legendPosition;G.each(function(ee){var Kt=M.select(this).select("."+ft+"toggle"),ne=ee[0].height,zt=ee[0].trace.legendgroup,qt=P(ee,Y,et);K&&zt!==""&&(qt=At[zt]);var Zt=Ut?et:St||qt;!lt&&!$&&(Zt+=ct/2),h.setRect(Kt,0,-ne/2,Zt,ne)})}function B(F,U,G,Y){var Q=F._fullLayout,ft=Q[U],ut=I(ft),lt=V(ft),K=ft.xref==="paper",$=ft.yref==="paper";F._fullLayout._reservedMargin[U]={};var H=ft.y<.5?"b":"t",at=ft.x<.5?"l":"r",ct={r:Q.width-G,l:G+ft._width,b:Q.height-Y,t:Y+ft._effHeight};if(K&&$)return r.autoMargin(F,U,{x:ft.x,y:ft.y,l:ft._width*u[ut],r:ft._width*x[ut],b:ft._effHeight*x[lt],t:ft._effHeight*u[lt]});K?F._fullLayout._reservedMargin[U][H]=ct[H]:$||ft.orientation==="v"?F._fullLayout._reservedMargin[U][at]=ct[at]:F._fullLayout._reservedMargin[U][H]=ct[H]}function I(F){return C.isRightAnchor(F)?"right":C.isCenterAnchor(F)?"center":"left"}function V(F){return C.isBottomAnchor(F)?"bottom":C.isMiddleAnchor(F)?"middle":"top"}function N(F){return F._id||"legend"}},851:function(nt,W,e){var M=e(33626),C=e(57599);nt.exports=function(r,i,w){var S=i._inHover,h=C.isGrouped(i),l=C.isReversed(i),t={},n=[],o=!1,a={},s=0,u=0,x,m;function y(N,F,U){if(i.visible!==!1&&!(w&&N!==i._id))if(F===""||!C.isGrouped(i)){var G="~~i"+s;n.push(G),t[G]=[U],s++}else n.indexOf(F)===-1?(n.push(F),o=!0,t[F]=[U]):t[F].push(U)}for(x=0;x<r.length;x++){var c=r[x],p=c[0],f=p.trace,T=f.legend,k=f.legendgroup;if(!(!S&&(!f.visible||!f.showlegend)))if(M.traceIs(f,"pie-like"))for(a[k]||(a[k]={}),m=0;m<c.length;m++){var P=c[m].label;a[k][P]||(y(T,k,{label:P,color:c[m].color,i:c[m].i,trace:f,pts:c[m].pts}),a[k][P]=!0,u=Math.max(u,(P||"").length))}else y(T,k,p),u=Math.max(u,(f.name||"").length)}if(!n.length)return[];var g=!o||!h,A=[];for(x=0;x<n.length;x++){var E=t[n[x]];g?A.push(E[0]):A.push(E)}for(g&&(A=[A]),x=0;x<A.length;x++){var d=1/0;for(m=0;m<A[x].length;m++){var _=A[x][m].trace.legendrank;d>_&&(d=_)}A[x][0]._groupMinRank=d,A[x][0]._preGroupSort=x}var L=function(N,F){return N[0]._groupMinRank-F[0]._groupMinRank||N[0]._preGroupSort-F[0]._preGroupSort},b=function(N,F){return N.trace.legendrank-F.trace.legendrank||N._preSort-F._preSort};for(A.forEach(function(N,F){N[0]._preGroupSort=F}),A.sort(L),x=0;x<A.length;x++){A[x].forEach(function(N,F){N._preSort=F}),A[x].sort(b);var D=A[x][0].trace,B=null;for(m=0;m<A[x].length;m++){var I=A[x][m].trace.legendgrouptitle;if(I&&I.text){B=I,S&&(I.font=i._groupTitleFont);break}}if(l&&A[x].reverse(),B){var V=!1;for(m=0;m<A[x].length;m++)if(M.traceIs(A[x][m].trace,"pie-like")){V=!0;break}A[x].unshift({i:-1,groupTitle:B,noClick:V,trace:{showlegend:D.showlegend,legendgroup:D.legendgroup,visible:i.groupclick==="toggleitem"?!0:D.visible}})}for(m=0;m<A[x].length;m++)A[x][m]=[A[x][m]]}return i._lgroupsLength=A.length,i._maxNameLength=u,A}},22165:function(nt,W,e){var M=e(33626),C=e(34809),r=C.pushUnique,i=!0;nt.exports=function(w,S,h){var l=S._fullLayout;if(S._dragged||S._editing)return;var t=l.legend.itemclick,n=l.legend.itemdoubleclick,o=l.legend.groupclick;h===1&&t==="toggle"&&n==="toggleothers"&&i&&S.data&&S._context.showTips&&C.notifier(C._(S,"Double-click on legend to isolate one trace"),"long"),i=!1;var a;if(h===1?a=t:h===2&&(a=n),!a)return;var s=o==="togglegroup",u=l.hiddenlabels?l.hiddenlabels.slice():[],x=w.data()[0][0];if(x.groupTitle&&x.noClick)return;var m=S._fullData,y=(l.shapes||[]).filter(function(Dt){return Dt.showlegend}),c=m.concat(y),p=x.trace;p._isShape&&(p=p._fullInput);var f=p.legendgroup,T,k,P,g,A,E,d={},_=[],L=[],b=[];function D(Dt,kt){var Bt=_.indexOf(Dt),Ot=d.visible;return Ot||(Ot=d.visible=[]),_.indexOf(Dt)===-1&&(_.push(Dt),Bt=_.length-1),Ot[Bt]=kt,Bt}var B=(l.shapes||[]).map(function(Dt){return Dt._input}),I=!1;function V(Dt,kt){B[Dt].visible=kt,I=!0}function N(Dt,kt){if(!(x.groupTitle&&!s)){var Bt=Dt._fullInput||Dt,Ot=Bt._isShape,Ht=Bt.index;if(Ht===void 0&&(Ht=Bt._index),M.hasTransform(Bt,"groupby")){var ye=L[Ht];if(!ye){var Qt=M.getTransformIndices(Bt,"groupby"),_e=Qt[Qt.length-1];ye=C.keyedContainer(Bt,"transforms["+_e+"].styles","target","value.visible"),L[Ht]=ye}var ie=ye.get(Dt._group);ie===void 0&&(ie=!0),ie!==!1&&ye.set(Dt._group,kt),b[Ht]=D(Ht,Bt.visible!==!1)}else{var Ae=Bt.visible===!1?!1:kt;Ot?V(Ht,Ae):D(Ht,Ae)}}}var F=p.legend,U=p._fullInput,G=U&&U._isShape;if(!G&&M.traceIs(p,"pie-like")){var Y=x.label,Q=u.indexOf(Y);if(a==="toggle")Q===-1?u.push(Y):u.splice(Q,1);else if(a==="toggleothers"){var ft=Q!==-1,ut=[];for(T=0;T<S.calcdata.length;T++){var lt=S.calcdata[T];for(k=0;k<lt.length;k++){var K=lt[k],$=K.label;F===lt[0].trace.legend&&Y!==$&&(u.indexOf($)===-1&&(ft=!0),r(u,$),ut.push($))}}if(!ft)for(var H=0;H<ut.length;H++){var at=u.indexOf(ut[H]);at!==-1&&u.splice(at,1)}}M.call("_guiRelayout",S,"hiddenlabels",u)}else{var ct=f&&f.length,et=[],Z;if(ct)for(T=0;T<c.length;T++)Z=c[T],Z.visible&&Z.legendgroup===f&&et.push(T);if(a==="toggle"){var ot;switch(p.visible){case!0:ot="legendonly";break;case!1:ot=!1;break;case"legendonly":ot=!0;break}if(ct)if(s)for(T=0;T<c.length;T++){var st=c[T];st.visible!==!1&&st.legendgroup===f&&N(st,ot)}else N(p,ot);else N(p,ot)}else if(a==="toggleothers"){var dt,xt,At,St,Nt,Wt=!0;for(T=0;T<c.length;T++)if(Nt=c[T],dt=Nt===p,At=Nt.showlegend!==!0,!(dt||At)&&(xt=ct&&Nt.legendgroup===f,!xt&&Nt.legend===F&&Nt.visible===!0&&!M.traceIs(Nt,"notLegendIsolatable"))){Wt=!1;break}for(T=0;T<c.length;T++)if(Nt=c[T],!(Nt.visible===!1||Nt.legend!==F)&&!M.traceIs(Nt,"notLegendIsolatable"))switch(p.visible){case"legendonly":N(Nt,!0);break;case!0:St=Wt?!0:"legendonly",dt=Nt===p,At=Nt.showlegend!==!0&&!Nt.legendgroup,xt=dt||ct&&Nt.legendgroup===f,N(Nt,xt||At?!0:St);break}}for(T=0;T<L.length;T++)if(P=L[T],!!P){var Vt=P.constructUpdate(),jt=Object.keys(Vt);for(k=0;k<jt.length;k++)g=jt[k],E=d[g]=d[g]||[],E[b[T]]=Vt[g]}for(A=Object.keys(d),T=0;T<A.length;T++)for(g=A[T],k=0;k<_.length;k++)d[g].hasOwnProperty(k)||(d[g][k]=void 0);I?M.call("_guiUpdate",S,d,{shapes:B},_):M.call("_guiRestyle",S,d,_)}}},57599:function(nt,W){W.isGrouped=function(e){return(e.traceorder||"").indexOf("grouped")!==-1},W.isVertical=function(e){return e.orientation!=="h"},W.isReversed=function(e){return(e.traceorder||"").indexOf("reversed")!==-1}},82494:function(nt,W,e){nt.exports={moduleType:"component",name:"legend",layoutAttributes:e(86405),supplyLayoutDefaults:e(73970),draw:e(6134),style:e(14375)}},14375:function(nt,W,e){var M=e(45568),C=e(33626),r=e(34809),i=r.strTranslate,w=e(62203),S=e(78766),h=e(65477).extractOpts,l=e(64726),t=e(32891),n=e(37252).castOption,o=e(72783),a=12,s=5,u=2,x=10,m=5;nt.exports=function(f,T,k){var P=T._fullLayout;k||(k=P.legend);var g=k.itemsizing==="constant",A=k.itemwidth,E=(A+o.itemGap*2)/2,d=i(E,0),_=function(ut,lt,K,$){var H;if(ut+1)H=ut;else if(lt&&lt.width>0)H=lt.width;else return 0;return g?$:Math.min(H,K)};f.each(function(ut){var lt=M.select(this),K=r.ensureSingle(lt,"g","layers");K.style("opacity",ut[0].trace.opacity);var $=k.indentation,H=k.valign,at=ut[0].lineHeight,ct=ut[0].height;if(H==="middle"&&$===0||!at||!ct)K.attr("transform",null);else{var et={top:1,bottom:-1}[H],Z=et*(.5*(at-ct+3))||0,ot=k.indentation;K.attr("transform",i(ot,Z))}var st=K.selectAll("g.legendfill").data([ut]);st.enter().append("g").classed("legendfill",!0);var dt=K.selectAll("g.legendlines").data([ut]);dt.enter().append("g").classed("legendlines",!0);var xt=K.selectAll("g.legendsymbols").data([ut]);xt.enter().append("g").classed("legendsymbols",!0),xt.selectAll("g.legendpoints").data([ut]).enter().append("g").classed("legendpoints",!0)}).each(ft).each(D).each(I).each(B).each(N).each(Y).each(G).each(L).each(b).each(F).each(U);function L(ut){var lt=c(ut),K=lt.showFill,$=lt.showLine,H=lt.showGradientLine,at=lt.showGradientFill,ct=lt.anyFill,et=lt.anyLine,Z=ut[0],ot=Z.trace,st,dt,xt=h(ot),At=xt.colorscale,St=xt.reversescale,Nt=function(Ot){if(Ot.size())if(K)w.fillGroupStyle(Ot,T,!0);else{var Ht="legendfill-"+ot.uid;w.gradient(Ot,T,Ht,y(St),At,"fill")}},Wt=function(Ot){if(Ot.size()){var Ht="legendline-"+ot.uid;w.lineGroupStyle(Ot),w.gradient(Ot,T,Ht,y(St),At,"stroke")}},Vt=l.hasMarkers(ot)||!ct?"M5,0":et?"M5,-2":"M5,-3",jt=M.select(this),Dt=jt.select(".legendfill").selectAll("path").data(K||at?[ut]:[]);if(Dt.enter().append("path").classed("js-fill",!0),Dt.exit().remove(),Dt.attr("d",Vt+"h"+A+"v6h-"+A+"z").call(Nt),$||H){var kt=_(void 0,ot.line,x,s);dt=r.minExtend(ot,{line:{width:kt}}),st=[r.minExtend(Z,{trace:dt})]}var Bt=jt.select(".legendlines").selectAll("path").data($||H?[st]:[]);Bt.enter().append("path").classed("js-line",!0),Bt.exit().remove(),Bt.attr("d",Vt+(H?"l"+A+",0.0001":"h"+A)).call($?w.lineGroupStyle:Wt)}function b(ut){var lt=c(ut),K=lt.anyFill,$=lt.anyLine,H=lt.showLine,at=lt.showMarker,ct=ut[0],et=ct.trace,Z=!at&&!$&&!K&&l.hasText(et),ot,st;function dt(Dt,kt,Bt,Ot){var Ht=r.nestedProperty(et,Dt).get(),ye=r.isArrayOrTypedArray(Ht)&&kt?kt(Ht):Ht;if(g&&ye&&Ot!==void 0&&(ye=Ot),Bt){if(ye<Bt[0])return Bt[0];if(ye>Bt[1])return Bt[1]}return ye}function xt(Dt){return ct._distinct&&ct.index&&Dt[ct.index]?Dt[ct.index]:Dt[0]}if(at||Z||H){var At={},St={};if(at){At.mc=dt("marker.color",xt),At.mx=dt("marker.symbol",xt),At.mo=dt("marker.opacity",r.mean,[.2,1]),At.mlc=dt("marker.line.color",xt),At.mlw=dt("marker.line.width",r.mean,[0,5],u),St.marker={sizeref:1,sizemin:1,sizemode:"diameter"};var Nt=dt("marker.size",r.mean,[2,16],a);At.ms=Nt,St.marker.size=Nt}H&&(St.line={width:dt("line.width",xt,[0,10],s)}),Z&&(At.tx="Aa",At.tp=dt("textposition",xt),At.ts=10,At.tc=dt("textfont.color",xt),At.tf=dt("textfont.family",xt),At.tw=dt("textfont.weight",xt),At.ty=dt("textfont.style",xt),At.tv=dt("textfont.variant",xt),At.tC=dt("textfont.textcase",xt),At.tE=dt("textfont.lineposition",xt),At.tS=dt("textfont.shadow",xt)),ot=[r.minExtend(ct,At)],st=r.minExtend(et,St),st.selectedpoints=null,st.texttemplate=null}var Wt=M.select(this).select("g.legendpoints"),Vt=Wt.selectAll("path.scatterpts").data(at?ot:[]);Vt.enter().insert("path",":first-child").classed("scatterpts",!0).attr("transform",d),Vt.exit().remove(),Vt.call(w.pointStyle,st,T),at&&(ot[0].mrc=3);var jt=Wt.selectAll("g.pointtext").data(Z?ot:[]);jt.enter().append("g").classed("pointtext",!0).append("text").attr("transform",d),jt.exit().remove(),jt.selectAll("text").call(w.textPointStyle,st,T)}function D(ut){var lt=ut[0].trace,K=lt.type==="waterfall";if(ut[0]._distinct&&K){var $=ut[0].trace[ut[0].dir].marker;return ut[0].mc=$.color,ut[0].mlw=$.line.width,ut[0].mlc=$.line.color,V(ut,this,"waterfall")}var H=[];lt.visible&&K&&(H=ut[0].hasTotals?[["increasing","M-6,-6V6H0Z"],["totals","M6,6H0L-6,-6H-0Z"],["decreasing","M6,6V-6H0Z"]]:[["increasing","M-6,-6V6H6Z"],["decreasing","M6,6V-6H-6Z"]]);var at=M.select(this).select("g.legendpoints").selectAll("path.legendwaterfall").data(H);at.enter().append("path").classed("legendwaterfall",!0).attr("transform",d).style("stroke-miterlimit",1),at.exit().remove(),at.each(function(ct){var et=M.select(this),Z=lt[ct[0]].marker,ot=_(void 0,Z.line,m,u);et.attr("d",ct[1]).style("stroke-width",ot+"px").call(S.fill,Z.color),ot&&et.call(S.stroke,Z.line.color)})}function B(ut){V(ut,this)}function I(ut){V(ut,this,"funnel")}function V(ut,lt,K){var $=ut[0].trace,H=$.marker||{},at=H.line||{},ct=H.cornerradius?"M6,3a3,3,0,0,1-3,3H-3a3,3,0,0,1-3-3V-3a3,3,0,0,1,3-3H3a3,3,0,0,1,3,3Z":"M6,6H-6V-6H6Z",et=K?$.visible&&$.type===K:C.traceIs($,"bar"),Z=M.select(lt).select("g.legendpoints").selectAll("path.legend"+K).data(et?[ut]:[]);Z.enter().append("path").classed("legend"+K,!0).attr("d",ct).attr("transform",d),Z.exit().remove(),Z.each(function(ot){var st=M.select(this),dt=ot[0],xt=_(dt.mlw,H.line,m,u);st.style("stroke-width",xt+"px");var At=dt.mcc;if(!k._inHover&&"mc"in dt){var St=h(H),Nt=St.mid;Nt===void 0&&(Nt=(St.max+St.min)/2),At=w.tryColorscale(H,"")(Nt)}var Wt=At||dt.mc||H.color,Vt=H.pattern,jt=Vt&&w.getPatternAttr(Vt.shape,0,"");if(jt){var Dt=w.getPatternAttr(Vt.bgcolor,0,null),kt=w.getPatternAttr(Vt.fgcolor,0,null),Bt=Vt.fgopacity,Ot=p(Vt.size,8,10),Ht=p(Vt.solidity,.5,1),ye="legend-"+$.uid;st.call(w.pattern,"legend",T,ye,jt,Ot,Ht,At,Vt.fillmode,Dt,kt,Bt)}else st.call(S.fill,Wt);xt&&S.stroke(st,dt.mlc||at.color)})}function N(ut){var lt=ut[0].trace,K=M.select(this).select("g.legendpoints").selectAll("path.legendbox").data(lt.visible&&C.traceIs(lt,"box-violin")?[ut]:[]);K.enter().append("path").classed("legendbox",!0).attr("d","M6,6H-6V-6H6Z").attr("transform",d),K.exit().remove(),K.each(function(){var $=M.select(this);if((lt.boxpoints==="all"||lt.points==="all")&&S.opacity(lt.fillcolor)===0&&S.opacity((lt.line||{}).color)===0){var H=r.minExtend(lt,{marker:{size:g?a:r.constrain(lt.marker.size,2,16),sizeref:1,sizemin:1,sizemode:"diameter"}});K.call(w.pointStyle,H,T)}else{var at=_(void 0,lt.line,m,u);$.style("stroke-width",at+"px").call(S.fill,lt.fillcolor),at&&S.stroke($,lt.line.color)}})}function F(ut){var lt=ut[0].trace,K=M.select(this).select("g.legendpoints").selectAll("path.legendcandle").data(lt.visible&&lt.type==="candlestick"?[ut,ut]:[]);K.enter().append("path").classed("legendcandle",!0).attr("d",function($,H){return H?"M-15,0H-8M-8,6V-6H8Z":"M15,0H8M8,-6V6H-8Z"}).attr("transform",d).style("stroke-miterlimit",1),K.exit().remove(),K.each(function($,H){var at=M.select(this),ct=lt[H?"increasing":"decreasing"],et=_(void 0,ct.line,m,u);at.style("stroke-width",et+"px").call(S.fill,ct.fillcolor),et&&S.stroke(at,ct.line.color)})}function U(ut){var lt=ut[0].trace,K=M.select(this).select("g.legendpoints").selectAll("path.legendohlc").data(lt.visible&&lt.type==="ohlc"?[ut,ut]:[]);K.enter().append("path").classed("legendohlc",!0).attr("d",function($,H){return H?"M-15,0H0M-8,-6V0":"M15,0H0M8,6V0"}).attr("transform",d).style("stroke-miterlimit",1),K.exit().remove(),K.each(function($,H){var at=M.select(this),ct=lt[H?"increasing":"decreasing"],et=_(void 0,ct.line,m,u);at.style("fill","none").call(w.dashLine,ct.line.dash,et),et&&S.stroke(at,ct.line.color)})}function G(ut){Q(ut,this,"pie")}function Y(ut){Q(ut,this,"funnelarea")}function Q(ut,lt,K){var $=ut[0],H=$.trace,at=K?H.visible&&H.type===K:C.traceIs(H,K),ct=M.select(lt).select("g.legendpoints").selectAll("path.legend"+K).data(at?[ut]:[]);if(ct.enter().append("path").classed("legend"+K,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",d),ct.exit().remove(),ct.size()){var et=H.marker||{},Z=_(n(et.line.width,$.pts),et.line,m,u),ot="pieLike",st=r.minExtend(H,{marker:{line:{width:Z}}},ot),dt=r.minExtend($,{trace:st},ot);t(ct,dt,st,T)}}function ft(ut){var lt=ut[0].trace,K,$=[];if(lt.visible)switch(lt.type){case"histogram2d":case"heatmap":$=[["M-15,-2V4H15V-2Z"]],K=!0;break;case"choropleth":case"choroplethmapbox":case"choroplethmap":$=[["M-6,-6V6H6V-6Z"]],K=!0;break;case"densitymapbox":case"densitymap":$=[["M-6,0 a6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0"]],K="radial";break;case"cone":$=[["M-6,2 A2,2 0 0,0 -6,6 V6L6,4Z"],["M-6,-6 A2,2 0 0,0 -6,-2 L6,-4Z"],["M-6,-2 A2,2 0 0,0 -6,2 L6,0Z"]],K=!1;break;case"streamtube":$=[["M-6,2 A2,2 0 0,0 -6,6 H6 A2,2 0 0,1 6,2 Z"],["M-6,-6 A2,2 0 0,0 -6,-2 H6 A2,2 0 0,1 6,-6 Z"],["M-6,-2 A2,2 0 0,0 -6,2 H6 A2,2 0 0,1 6,-2 Z"]],K=!1;break;case"surface":$=[["M-6,-6 A2,3 0 0,0 -6,0 H6 A2,3 0 0,1 6,-6 Z"],["M-6,1 A2,3 0 0,1 -6,6 H6 A2,3 0 0,0 6,0 Z"]],K=!0;break;case"mesh3d":$=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],K=!1;break;case"volume":$=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],K=!0;break;case"isosurface":$=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6 A12,24 0 0,0 6,-6 L0,6Z"]],K=!1;break}var H=M.select(this).select("g.legendpoints").selectAll("path.legend3dandfriends").data($);H.enter().append("path").classed("legend3dandfriends",!0).attr("transform",d).style("stroke-miterlimit",1),H.exit().remove(),H.each(function(at,ct){var et=M.select(this),Z=h(lt),ot=Z.colorscale,st=Z.reversescale,dt=function(Nt){if(Nt.size()){var Wt="legendfill-"+lt.uid;w.gradient(Nt,T,Wt,y(st,K==="radial"),ot,"fill")}},xt;if(ot){if(!K){var At=ot.length;xt=ct===0?ot[st?At-1:0][1]:ct===1?ot[st?0:At-1][1]:ot[Math.floor((At-1)/2)][1]}}else{var St=lt.vertexcolor||lt.facecolor||lt.color;xt=r.isArrayOrTypedArray(St)?St[ct]||St[0]:St}et.attr("d",at[0]),xt?et.call(S.fill,xt):et.call(dt)})}};function y(f,T){var k=T?"radial":"horizontal";return k+(f?"":"reversed")}function c(f){var T=f[0].trace,k=T.contours,P=l.hasLines(T),g=l.hasMarkers(T),A=T.visible&&T.fill&&T.fill!=="none",E=!1,d=!1;if(k){var _=k.coloring;_==="lines"?E=!0:P=_==="none"||_==="heatmap"||k.showlines,k.type==="constraint"?A=k._operation!=="=":(_==="fill"||_==="heatmap")&&(d=!0)}return{showMarker:g,showLine:P,showFill:A,showGradientLine:E,showGradientFill:d,anyLine:P||E,anyFill:A||d}}function p(f,T,k){return f&&r.isArrayOrTypedArray(f)?T:f>k?k:f}},50308:function(nt,W,e){e(87632),nt.exports={editType:"modebar",orientation:{valType:"enumerated",values:["v","h"],dflt:"h",editType:"modebar"},bgcolor:{valType:"color",editType:"modebar"},color:{valType:"color",editType:"modebar"},activecolor:{valType:"color",editType:"modebar"},uirevision:{valType:"any",editType:"none"},add:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"},remove:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"}}},5832:function(nt,W,e){var M=e(33626),C=e(44122),r=e(5975),i=e(35188),w=e(28231).eraseActiveShape,S=e(34809),h=S._,l=nt.exports={};l.toImage={name:"toImage",title:function(k){var P=k._context.toImageButtonOptions||{},g=P.format||"png";return g==="png"?h(k,"Download plot as a png"):h(k,"Download plot")},icon:i.camera,click:function(k){var P=k._context.toImageButtonOptions,g={format:P.format||"png"};S.notifier(h(k,"Taking snapshot - this may take a few seconds"),"long"),g.format!=="svg"&&S.isIE()&&(S.notifier(h(k,"IE only supports svg. Changing format to svg."),"long"),g.format="svg"),["filename","width","height","scale"].forEach(function(A){A in P&&(g[A]=P[A])}),M.call("downloadImage",k,g).then(function(A){S.notifier(h(k,"Snapshot succeeded")+" - "+A,"long")}).catch(function(){S.notifier(h(k,"Sorry, there was a problem downloading your snapshot!"),"long")})}},l.sendDataToCloud={name:"sendDataToCloud",title:function(k){return h(k,"Edit in Chart Studio")},icon:i.disk,click:function(k){C.sendDataToCloud(k)}},l.editInChartStudio={name:"editInChartStudio",title:function(k){return h(k,"Edit in Chart Studio")},icon:i.pencil,click:function(k){C.sendDataToCloud(k)}},l.zoom2d={name:"zoom2d",_cat:"zoom",title:function(k){return h(k,"Zoom")},attr:"dragmode",val:"zoom",icon:i.zoombox,click:t},l.pan2d={name:"pan2d",_cat:"pan",title:function(k){return h(k,"Pan")},attr:"dragmode",val:"pan",icon:i.pan,click:t},l.select2d={name:"select2d",_cat:"select",title:function(k){return h(k,"Box Select")},attr:"dragmode",val:"select",icon:i.selectbox,click:t},l.lasso2d={name:"lasso2d",_cat:"lasso",title:function(k){return h(k,"Lasso Select")},attr:"dragmode",val:"lasso",icon:i.lasso,click:t},l.drawclosedpath={name:"drawclosedpath",title:function(k){return h(k,"Draw closed freeform")},attr:"dragmode",val:"drawclosedpath",icon:i.drawclosedpath,click:t},l.drawopenpath={name:"drawopenpath",title:function(k){return h(k,"Draw open freeform")},attr:"dragmode",val:"drawopenpath",icon:i.drawopenpath,click:t},l.drawline={name:"drawline",title:function(k){return h(k,"Draw line")},attr:"dragmode",val:"drawline",icon:i.drawline,click:t},l.drawrect={name:"drawrect",title:function(k){return h(k,"Draw rectangle")},attr:"dragmode",val:"drawrect",icon:i.drawrect,click:t},l.drawcircle={name:"drawcircle",title:function(k){return h(k,"Draw circle")},attr:"dragmode",val:"drawcircle",icon:i.drawcircle,click:t},l.eraseshape={name:"eraseshape",title:function(k){return h(k,"Erase active shape")},icon:i.eraseshape,click:w},l.zoomIn2d={name:"zoomIn2d",_cat:"zoomin",title:function(k){return h(k,"Zoom in")},attr:"zoom",val:"in",icon:i.zoom_plus,click:t},l.zoomOut2d={name:"zoomOut2d",_cat:"zoomout",title:function(k){return h(k,"Zoom out")},attr:"zoom",val:"out",icon:i.zoom_minus,click:t},l.autoScale2d={name:"autoScale2d",_cat:"autoscale",title:function(k){return h(k,"Autoscale")},attr:"zoom",val:"auto",icon:i.autoscale,click:t},l.resetScale2d={name:"resetScale2d",_cat:"resetscale",title:function(k){return h(k,"Reset axes")},attr:"zoom",val:"reset",icon:i.home,click:t},l.hoverClosestCartesian={name:"hoverClosestCartesian",_cat:"hoverclosest",title:function(k){return h(k,"Show closest data on hover")},attr:"hovermode",val:"closest",icon:i.tooltip_basic,gravity:"ne",click:t},l.hoverCompareCartesian={name:"hoverCompareCartesian",_cat:"hoverCompare",title:function(k){return h(k,"Compare data on hover")},attr:"hovermode",val:function(k){return k._fullLayout._isHoriz?"y":"x"},icon:i.tooltip_compare,gravity:"ne",click:t};function t(k,P){var g=P.currentTarget,A=g.getAttribute("data-attr"),E=g.getAttribute("data-val")||!0,d=k._fullLayout,_={},L=r.list(k,null,!0),b=d._cartesianSpikesEnabled,D,B;if(A==="zoom"){var I=E==="in"?.5:2,V=(1+I)/2,N=(1-I)/2,F;for(B=0;B<L.length;B++)if(D=L[B],!D.fixedrange)if(F=D._name,E==="auto")_[F+".autorange"]=!0;else if(E==="reset")D._rangeInitial0===void 0&&D._rangeInitial1===void 0?_[F+".autorange"]=!0:D._rangeInitial0===void 0?(_[F+".autorange"]=D._autorangeInitial,_[F+".range"]=[null,D._rangeInitial1]):D._rangeInitial1===void 0?(_[F+".range"]=[D._rangeInitial0,null],_[F+".autorange"]=D._autorangeInitial):_[F+".range"]=[D._rangeInitial0,D._rangeInitial1],D._showSpikeInitial!==void 0&&(_[F+".showspikes"]=D._showSpikeInitial,b==="on"&&!D._showSpikeInitial&&(b="off"));else{var U=[D.r2l(D.range[0]),D.r2l(D.range[1])],G=[V*U[0]+N*U[1],V*U[1]+N*U[0]];_[F+".range[0]"]=D.l2r(G[0]),_[F+".range[1]"]=D.l2r(G[1])}}else A==="hovermode"&&(E==="x"||E==="y")&&(E=d._isHoriz?"y":"x",g.setAttribute("data-val",E)),_[A]=E;d._cartesianSpikesEnabled=b,M.call("_guiRelayout",k,_)}l.zoom3d={name:"zoom3d",_cat:"zoom",title:function(k){return h(k,"Zoom")},attr:"scene.dragmode",val:"zoom",icon:i.zoombox,click:n},l.pan3d={name:"pan3d",_cat:"pan",title:function(k){return h(k,"Pan")},attr:"scene.dragmode",val:"pan",icon:i.pan,click:n},l.orbitRotation={name:"orbitRotation",title:function(k){return h(k,"Orbital rotation")},attr:"scene.dragmode",val:"orbit",icon:i["3d_rotate"],click:n},l.tableRotation={name:"tableRotation",title:function(k){return h(k,"Turntable rotation")},attr:"scene.dragmode",val:"turntable",icon:i["z-axis"],click:n};function n(k,P){for(var g=P.currentTarget,A=g.getAttribute("data-attr"),E=g.getAttribute("data-val")||!0,d=k._fullLayout._subplots.gl3d||[],_={},L=A.split("."),b=0;b<d.length;b++)_[d[b]+"."+L[1]]=E;var D=E==="pan"?E:"zoom";_.dragmode=D,M.call("_guiRelayout",k,_)}l.resetCameraDefault3d={name:"resetCameraDefault3d",_cat:"resetCameraDefault",title:function(k){return h(k,"Reset camera to default")},attr:"resetDefault",icon:i.home,click:o},l.resetCameraLastSave3d={name:"resetCameraLastSave3d",_cat:"resetCameraLastSave",title:function(k){return h(k,"Reset camera to last save")},attr:"resetLastSave",icon:i.movie,click:o};function o(k,P){for(var g=P.currentTarget,A=g.getAttribute("data-attr"),E=A==="resetLastSave",d=A==="resetDefault",_=k._fullLayout,L=_._subplots.gl3d||[],b={},D=0;D<L.length;D++){var B=L[D],I=B+".camera",V=B+".aspectratio",N=B+".aspectmode",F=_[B]._scene,U;E?(b[I+".up"]=F.viewInitial.up,b[I+".eye"]=F.viewInitial.eye,b[I+".center"]=F.viewInitial.center,U=!0):d&&(b[I+".up"]=null,b[I+".eye"]=null,b[I+".center"]=null,U=!0),U&&(b[V+".x"]=F.viewInitial.aspectratio.x,b[V+".y"]=F.viewInitial.aspectratio.y,b[V+".z"]=F.viewInitial.aspectratio.z,b[N]=F.viewInitial.aspectmode)}M.call("_guiRelayout",k,b)}l.hoverClosest3d={name:"hoverClosest3d",_cat:"hoverclosest",title:function(k){return h(k,"Toggle show closest data on hover")},attr:"hovermode",val:null,toggle:!0,icon:i.tooltip_basic,gravity:"ne",click:s};function a(k,P){var g=P.currentTarget,A=g._previousVal,E=k._fullLayout,d=E._subplots.gl3d||[],_=["xaxis","yaxis","zaxis"],L={},b={};if(A)b=A,g._previousVal=null;else{for(var D=0;D<d.length;D++){var B=d[D],I=E[B],V=B+".hovermode";L[V]=I.hovermode,b[V]=!1;for(var N=0;N<3;N++){var F=_[N],U=B+"."+F+".showspikes";b[U]=!1,L[U]=I[F].showspikes}}g._previousVal=L}return b}function s(k,P){var g=a(k,P);M.call("_guiRelayout",k,g)}l.zoomInGeo={name:"zoomInGeo",_cat:"zoomin",title:function(k){return h(k,"Zoom in")},attr:"zoom",val:"in",icon:i.zoom_plus,click:u},l.zoomOutGeo={name:"zoomOutGeo",_cat:"zoomout",title:function(k){return h(k,"Zoom out")},attr:"zoom",val:"out",icon:i.zoom_minus,click:u},l.resetGeo={name:"resetGeo",_cat:"reset",title:function(k){return h(k,"Reset")},attr:"reset",val:null,icon:i.autoscale,click:u},l.hoverClosestGeo={name:"hoverClosestGeo",_cat:"hoverclosest",title:function(k){return h(k,"Toggle show closest data on hover")},attr:"hovermode",val:null,toggle:!0,icon:i.tooltip_basic,gravity:"ne",click:m};function u(k,P){for(var g=P.currentTarget,A=g.getAttribute("data-attr"),E=g.getAttribute("data-val")||!0,d=k._fullLayout,_=d._subplots.geo||[],L=0;L<_.length;L++){var b=_[L],D=d[b];if(A==="zoom"){var B=D.projection.scale,I=E==="in"?2*B:.5*B;M.call("_guiRelayout",k,b+".projection.scale",I)}}A==="reset"&&T(k,"geo")}l.hoverClosestGl2d={name:"hoverClosestGl2d",_cat:"hoverclosest",title:function(k){return h(k,"Toggle show closest data on hover")},attr:"hovermode",val:null,toggle:!0,icon:i.tooltip_basic,gravity:"ne",click:m},l.hoverClosestPie={name:"hoverClosestPie",_cat:"hoverclosest",title:function(k){return h(k,"Toggle show closest data on hover")},attr:"hovermode",val:"closest",icon:i.tooltip_basic,gravity:"ne",click:m};function x(k){var P=k._fullLayout;return P.hovermode?!1:P._has("cartesian")?P._isHoriz?"y":"x":"closest"}function m(k){var P=x(k);M.call("_guiRelayout",k,"hovermode",P)}l.resetViewSankey={name:"resetSankeyGroup",title:function(k){return h(k,"Reset view")},icon:i.home,click:function(k){for(var P={"node.groups":[],"node.x":[],"node.y":[]},g=0;g<k._fullData.length;g++){var A=k._fullData[g]._viewInitial;P["node.groups"].push(A.node.groups.slice()),P["node.x"].push(A.node.x.slice()),P["node.y"].push(A.node.y.slice())}M.call("restyle",k,P)}},l.toggleHover={name:"toggleHover",title:function(k){return h(k,"Toggle show closest data on hover")},attr:"hovermode",val:null,toggle:!0,icon:i.tooltip_basic,gravity:"ne",click:function(k,P){var g=a(k,P);g.hovermode=x(k),M.call("_guiRelayout",k,g)}},l.resetViews={name:"resetViews",title:function(k){return h(k,"Reset views")},icon:i.home,click:function(k,P){var g=P.currentTarget;g.setAttribute("data-attr","zoom"),g.setAttribute("data-val","reset"),t(k,P),g.setAttribute("data-attr","resetLastSave"),o(k,P),T(k,"geo"),T(k,"mapbox"),T(k,"map")}},l.toggleSpikelines={name:"toggleSpikelines",title:function(k){return h(k,"Toggle Spike Lines")},icon:i.spikeline,attr:"_cartesianSpikesEnabled",val:"on",click:function(k){var P=k._fullLayout,g=P._cartesianSpikesEnabled;P._cartesianSpikesEnabled=g==="on"?"off":"on",M.call("_guiRelayout",k,y(k))}};function y(k){for(var P=k._fullLayout,g=P._cartesianSpikesEnabled==="on",A=r.list(k,null,!0),E={},d=0;d<A.length;d++){var _=A[d];E[_._name+".showspikes"]=g?!0:_._showSpikeInitial}return E}l.resetViewMapbox={name:"resetViewMapbox",_cat:"resetView",title:function(k){return h(k,"Reset view")},attr:"reset",icon:i.home,click:function(k){T(k,"mapbox")}},l.resetViewMap={name:"resetViewMap",_cat:"resetView",title:function(k){return h(k,"Reset view")},attr:"reset",icon:i.home,click:function(k){T(k,"map")}},l.zoomInMapbox={name:"zoomInMapbox",_cat:"zoomin",title:function(k){return h(k,"Zoom in")},attr:"zoom",val:"in",icon:i.zoom_plus,click:c},l.zoomInMap={name:"zoomInMap",_cat:"zoomin",title:function(k){return h(k,"Zoom in")},attr:"zoom",val:"in",icon:i.zoom_plus,click:p},l.zoomOutMapbox={name:"zoomOutMapbox",_cat:"zoomout",title:function(k){return h(k,"Zoom out")},attr:"zoom",val:"out",icon:i.zoom_minus,click:c},l.zoomOutMap={name:"zoomOutMap",_cat:"zoomout",title:function(k){return h(k,"Zoom out")},attr:"zoom",val:"out",icon:i.zoom_minus,click:p};function c(k,P){f(k,P,"mapbox")}function p(k,P){f(k,P,"map")}function f(k,P,g){for(var A=P.currentTarget,E=A.getAttribute("data-val"),d=k._fullLayout,_=d._subplots[g]||[],L=1.05,b={},D=0;D<_.length;D++){var B=_[D],I=d[B].zoom,V=E==="in"?L*I:I/L;b[B+".zoom"]=V}M.call("_guiRelayout",k,b)}function T(k,P){for(var g=k._fullLayout,A=g._subplots[P]||[],E={},d=0;d<A.length;d++)for(var _=A[d],L=g[_]._subplot,b=L.viewInitial,D=Object.keys(b),B=0;B<D.length;B++){var I=D[B];E[_+"."+I]=b[I]}M.call("_guiRelayout",k,E)}},87632:function(nt,W,e){var M=e(5832),C=Object.keys(M),r=["drawline","drawopenpath","drawclosedpath","drawcircle","drawrect","eraseshape"],i=["v1hovermode","hoverclosest","hovercompare","togglehover","togglespikelines"].concat(r),w=[],S=function(h){if(i.indexOf(h._cat||h.name)===-1){var l=h.name,t=(h._cat||h.name).toLowerCase();w.indexOf(l)===-1&&w.push(l),w.indexOf(t)===-1&&w.push(t)}};C.forEach(function(h){S(M[h])}),w.sort(),nt.exports={DRAW_MODES:r,backButtons:i,foreButtons:w}},17683:function(nt,W,e){var M=e(34809),C=e(78766),r=e(78032),i=e(50308);nt.exports=function(w,S){var h=w.modebar||{},l=r.newContainer(S,"modebar");function t(o,a){return M.coerce(h,l,i,o,a)}t("orientation"),t("bgcolor",C.addOpacity(S.paper_bgcolor,.5));var n=C.contrast(C.rgb(S.modebar.bgcolor));t("color",C.addOpacity(n,.3)),t("activecolor",C.addOpacity(n,.7)),t("uirevision",S.uirevision),t("add"),t("remove")}},95433:function(nt,W,e){nt.exports={moduleType:"component",name:"modebar",layoutAttributes:e(50308),supplyLayoutDefaults:e(17683),manage:e(75442)}},75442:function(nt,W,e){var M=e(5975),C=e(64726),r=e(33626),i=e(36040).isUnifiedHover,w=e(85393),S=e(5832),h=e(87632).DRAW_MODES,l=e(34809).extendDeep;nt.exports=function(x){var m=x._fullLayout,y=x._context,c=m._modeBar;if(!y.displayModeBar&&!y.watermark){c&&(c.destroy(),delete m._modeBar);return}if(!Array.isArray(y.modeBarButtonsToRemove))throw new Error(["*modeBarButtonsToRemove* configuration options","must be an array."].join(" "));if(!Array.isArray(y.modeBarButtonsToAdd))throw new Error(["*modeBarButtonsToAdd* configuration options","must be an array."].join(" "));var p=y.modeBarButtons,f;Array.isArray(p)&&p.length?f=u(p):!y.displayModeBar&&y.watermark?f=[]:f=t(x),c?c.update(x,f):m._modeBar=w(x,f)};function t(x){var m=x._fullLayout,y=x._fullData,c=x._context;function p(Z,ot){if(typeof ot=="string"){if(ot.toLowerCase()===Z.toLowerCase())return!0}else{var st=ot.name,dt=ot._cat||ot.name;if(st===Z||dt===Z.toLowerCase())return!0}return!1}var f=m.modebar.add;typeof f=="string"&&(f=[f]);var T=m.modebar.remove;typeof T=="string"&&(T=[T]);var k=c.modeBarButtonsToAdd.concat(f.filter(function(Z){for(var ot=0;ot<c.modeBarButtonsToRemove.length;ot++)if(p(Z,c.modeBarButtonsToRemove[ot]))return!1;return!0})),P=c.modeBarButtonsToRemove.concat(T.filter(function(Z){for(var ot=0;ot<c.modeBarButtonsToAdd.length;ot++)if(p(Z,c.modeBarButtonsToAdd[ot]))return!1;return!0})),g=m._has("cartesian"),A=m._has("gl3d"),E=m._has("geo"),d=m._has("pie"),_=m._has("funnelarea"),L=m._has("gl2d"),b=m._has("ternary"),D=m._has("mapbox"),B=m._has("map"),I=m._has("polar"),V=m._has("smith"),N=m._has("sankey"),F=n(m),U=i(m.hovermode),G=[];function Y(Z){if(Z.length){for(var ot=[],st=0;st<Z.length;st++){for(var dt=Z[st],xt=S[dt],At=xt.name.toLowerCase(),St=(xt._cat||xt.name).toLowerCase(),Nt=!1,Wt=0;Wt<P.length;Wt++){var Vt=P[Wt].toLowerCase();if(Vt===At||Vt===St){Nt=!0;break}}Nt||ot.push(S[dt])}G.push(ot)}}var Q=["toImage"];c.showEditInChartStudio?Q.push("editInChartStudio"):c.showSendToCloud&&Q.push("sendDataToCloud"),Y(Q);var ft=[],ut=[],lt=[],K=[];(g||L||d||_||b)+E+A+D+B+I+V>1?(ut=["toggleHover"],lt=["resetViews"]):E?(ft=["zoomInGeo","zoomOutGeo"],ut=["hoverClosestGeo"],lt=["resetGeo"]):A?(ut=["hoverClosest3d"],lt=["resetCameraDefault3d","resetCameraLastSave3d"]):D?(ft=["zoomInMapbox","zoomOutMapbox"],ut=["toggleHover"],lt=["resetViewMapbox"]):B?(ft=["zoomInMap","zoomOutMap"],ut=["toggleHover"],lt=["resetViewMap"]):L?ut=["hoverClosestGl2d"]:d?ut=["hoverClosestPie"]:N?(ut=["hoverClosestCartesian","hoverCompareCartesian"],lt=["resetViewSankey"]):ut=["toggleHover"],g&&ut.push("toggleSpikelines","hoverClosestCartesian","hoverCompareCartesian"),(a(y)||U)&&(ut=[]),(g||L)&&!F&&(ft=["zoomIn2d","zoomOut2d","autoScale2d"],lt[0]!=="resetViews"&&(lt=["resetScale2d"])),A?K=["zoom3d","pan3d","orbitRotation","tableRotation"]:(g||L)&&!F||b?K=["zoom2d","pan2d"]:D||B||E?K=["pan2d"]:I&&(K=["zoom2d"]),o(y)&&K.push("select2d","lasso2d");var $=[],H=function(Z){$.indexOf(Z)===-1&&ut.indexOf(Z)!==-1&&$.push(Z)};if(Array.isArray(k)){for(var at=[],ct=0;ct<k.length;ct++){var et=k[ct];typeof et=="string"?(et=et.toLowerCase(),h.indexOf(et)!==-1?(m._has("mapbox")||m._has("map")||m._has("cartesian"))&&K.push(et):et==="togglespikelines"?H("toggleSpikelines"):et==="togglehover"?H("toggleHover"):et==="hovercompare"?H("hoverCompareCartesian"):et==="hoverclosest"?(H("hoverClosestCartesian"),H("hoverClosestGeo"),H("hoverClosest3d"),H("hoverClosestGl2d"),H("hoverClosestPie")):et==="v1hovermode"&&(H("hoverClosestCartesian"),H("hoverCompareCartesian"),H("hoverClosestGeo"),H("hoverClosest3d"),H("hoverClosestGl2d"),H("hoverClosestPie"))):at.push(et)}k=at}return Y(K),Y(ft.concat(lt)),Y($),s(G,k)}function n(x){for(var m=M.list({_fullLayout:x},null,!0),y=0;y<m.length;y++)if(!m[y].fixedrange)return!1;return!0}function o(x){for(var m=!1,y=0;y<x.length&&!m;y++){var c=x[y];!c._module||!c._module.selectPoints||(r.traceIs(c,"scatter-like")?(C.hasMarkers(c)||C.hasText(c))&&(m=!0):r.traceIs(c,"box-violin")?(c.boxpoints==="all"||c.points==="all")&&(m=!0):m=!0)}return m}function a(x){for(var m=0;m<x.length;m++)if(!r.traceIs(x[m],"noHover"))return!1;return!0}function s(x,m){if(m.length)if(Array.isArray(m[0]))for(var y=0;y<m.length;y++)x.push(m[y]);else x.push(m);return x}function u(x){for(var m=l([],x),y=0;y<m.length;y++)for(var c=m[y],p=0;p<c.length;p++){var f=c[p];if(typeof f=="string")if(S[f]!==void 0)m[y][p]=S[f];else throw new Error(["*modeBarButtons* configuration options","invalid button name"].join(" "))}return m}},85393:function(nt,W,e){var M=e(45568),C=e(10721),r=e(34809),i=e(35188),w=e(29697).version,S=new DOMParser;function h(o){this.container=o.container,this.element=document.createElement("div"),this.update(o.graphInfo,o.buttons),this.container.appendChild(this.element)}var l=h.prototype;l.update=function(o,a){this.graphInfo=o;var s=this.graphInfo._context,u=this.graphInfo._fullLayout,x="modebar-"+u._uid;this.element.setAttribute("id",x),this._uid=x,this.element.className="modebar",s.displayModeBar==="hover"&&(this.element.className+=" modebar--hover ease-bg"),u.modebar.orientation==="v"&&(this.element.className+=" vertical",a=a.reverse());var m=u.modebar,y=s.displayModeBar==="hover"?".js-plotly-plot .plotly:hover ":"";r.deleteRelatedStyleRule(x),r.addRelatedStyleRule(x,y+"#"+x+" .modebar-group","background-color: "+m.bgcolor),r.addRelatedStyleRule(x,"#"+x+" .modebar-btn .icon path","fill: "+m.color),r.addRelatedStyleRule(x,"#"+x+" .modebar-btn:hover .icon path","fill: "+m.activecolor),r.addRelatedStyleRule(x,"#"+x+" .modebar-btn.active .icon path","fill: "+m.activecolor);var c=!this.hasButtons(a),p=this.hasLogo!==s.displaylogo,f=this.locale!==s.locale;if(this.locale=s.locale,(c||p||f)&&(this.removeAllButtons(),this.updateButtons(a),s.watermark||s.displaylogo)){var T=this.getLogo();s.watermark&&(T.className=T.className+" watermark"),u.modebar.orientation==="v"?this.element.insertBefore(T,this.element.childNodes[0]):this.element.appendChild(T),this.hasLogo=!0}this.updateActiveButton()},l.updateButtons=function(o){var a=this;this.buttons=o,this.buttonElements=[],this.buttonsNames=[],this.buttons.forEach(function(s){var u=a.createGroup();s.forEach(function(x){var m=x.name;if(!m)throw new Error("must provide button 'name' in button config");if(a.buttonsNames.indexOf(m)!==-1)throw new Error("button name '"+m+"' is taken");a.buttonsNames.push(m);var y=a.createButton(x);a.buttonElements.push(y),u.appendChild(y)}),a.element.appendChild(u)})},l.createGroup=function(){var o=document.createElement("div");return o.className="modebar-group",o},l.createButton=function(o){var a=this,s=document.createElement("a");s.setAttribute("rel","tooltip"),s.className="modebar-btn";var u=o.title;u===void 0?u=o.name:typeof u=="function"&&(u=u(this.graphInfo)),(u||u===0)&&s.setAttribute("data-title",u),o.attr!==void 0&&s.setAttribute("data-attr",o.attr);var x=o.val;x!==void 0&&(typeof x=="function"&&(x=x(this.graphInfo)),s.setAttribute("data-val",x));var m=o.click;if(typeof m!="function")throw new Error("must provide button 'click' function in button config");s.addEventListener("click",function(c){o.click(a.graphInfo,c),a.updateActiveButton(c.currentTarget)}),s.setAttribute("data-toggle",o.toggle||!1),o.toggle&&M.select(s).classed("active",!0);var y=o.icon;return typeof y=="function"?s.appendChild(y()):s.appendChild(this.createIcon(y||i.question)),s.setAttribute("data-gravity",o.gravity||"n"),s},l.createIcon=function(o){var a=C(o.height)?Number(o.height):o.ascent-o.descent,s="http://www.w3.org/2000/svg",u;if(o.path){u=document.createElementNS(s,"svg"),u.setAttribute("viewBox",[0,0,o.width,a].join(" ")),u.setAttribute("class","icon");var x=document.createElementNS(s,"path");x.setAttribute("d",o.path),o.transform?x.setAttribute("transform",o.transform):o.ascent!==void 0&&x.setAttribute("transform","matrix(1 0 0 -1 0 "+o.ascent+")"),u.appendChild(x)}if(o.svg){var m=S.parseFromString(o.svg,"application/xml");u=m.childNodes[0]}return u.setAttribute("height","1em"),u.setAttribute("width","1em"),u},l.updateActiveButton=function(o){var a=this.graphInfo._fullLayout,s=o!==void 0?o.getAttribute("data-attr"):null;this.buttonElements.forEach(function(u){var x=u.getAttribute("data-val")||!0,m=u.getAttribute("data-attr"),y=u.getAttribute("data-toggle")==="true",c=M.select(u);if(y)m===s&&c.classed("active",!c.classed("active"));else{var p=m===null?m:r.nestedProperty(a,m).get();c.classed("active",p===x)}})},l.hasButtons=function(o){var a=this.buttons;if(!a||o.length!==a.length)return!1;for(var s=0;s<o.length;++s){if(o[s].length!==a[s].length)return!1;for(var u=0;u<o[s].length;u++)if(o[s][u].name!==a[s][u].name)return!1}return!0};function t(o){return o+" (v"+w+")"}l.getLogo=function(){var o=this.createGroup(),a=document.createElement("a");return a.href="https://plotly.com/",a.target="_blank",a.setAttribute("data-title",t(r._(this.graphInfo,"Produced with Plotly.js"))),a.className="modebar-btn plotlyjsicon modebar-btn--logo",a.appendChild(this.createIcon(i.newplotlylogo)),o.appendChild(a),o},l.removeAllButtons=function(){for(;this.element.firstChild;)this.element.removeChild(this.element.firstChild);this.hasLogo=!1},l.destroy=function(){r.removeElement(this.container.querySelector(".modebar")),r.deleteRelatedStyleRule(this._uid)};function n(o,a){var s=o._fullLayout,u=new h({graphInfo:o,container:s._modebardiv.node(),buttons:a});return s._privateplot&&M.select(u.element).append("span").classed("badge-private float--left",!0).text("PRIVATE"),u}nt.exports=n},91032:function(nt,W,e){var M=e(80337),C=e(10229),r=e(78032).templatedArray,i=r("button",{visible:{valType:"boolean",dflt:!0,editType:"plot"},step:{valType:"enumerated",values:["month","year","day","hour","minute","second","all"],dflt:"month",editType:"plot"},stepmode:{valType:"enumerated",values:["backward","todate"],dflt:"backward",editType:"plot"},count:{valType:"number",min:0,dflt:1,editType:"plot"},label:{valType:"string",editType:"plot"},editType:"plot"});nt.exports={visible:{valType:"boolean",editType:"plot"},buttons:i,x:{valType:"number",min:-2,max:3,editType:"plot"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"plot"},y:{valType:"number",min:-2,max:3,editType:"plot"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"bottom",editType:"plot"},font:M({editType:"plot"}),bgcolor:{valType:"color",dflt:C.lightLine,editType:"plot"},activecolor:{valType:"color",editType:"plot"},bordercolor:{valType:"color",dflt:C.defaultLine,editType:"plot"},borderwidth:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"}},68508:function(nt){nt.exports={yPad:.02,minButtonWidth:30,rx:3,ry:3,lightAmount:25,darkAmount:10}},86255:function(nt,W,e){var M=e(34809),C=e(78766),r=e(78032),i=e(59008),w=e(91032),S=e(68508);nt.exports=function(t,n,o,a,s){var u=t.rangeselector||{},x=r.newContainer(n,"rangeselector");function m(T,k){return M.coerce(u,x,w,T,k)}var y=i(u,x,{name:"buttons",handleItemDefaults:h,calendar:s}),c=m("visible",y.length>0);if(c){var p=l(n,o,a);m("x",p[0]),m("y",p[1]),M.noneOrAll(t,n,["x","y"]),m("xanchor"),m("yanchor"),M.coerceFont(m,"font",o.font);var f=m("bgcolor");m("activecolor",C.contrast(f,S.lightAmount,S.darkAmount)),m("bordercolor"),m("borderwidth")}};function h(t,n,o,a){var s=a.calendar;function u(y,c){return M.coerce(t,n,w.buttons,y,c)}var x=u("visible");if(x){var m=u("step");m!=="all"&&(s&&s!=="gregorian"&&(m==="month"||m==="year")?n.stepmode="backward":u("stepmode"),u("count")),u("label")}}function l(t,n,o){for(var a=o.filter(function(m){return n[m].anchor===t._id}),s=0,u=0;u<a.length;u++){var x=n[a[u]].domain;x&&(s=Math.max(x[1],s))}return[t.domain[0],s+S.yPad]}},45431:function(nt,W,e){var M=e(45568),C=e(33626),r=e(44122),i=e(78766),w=e(62203),S=e(34809),h=S.strTranslate,l=e(30635),t=e(5975),n=e(4530),o=n.LINE_SPACING,a=n.FROM_TL,s=n.FROM_BR,u=e(68508),x=e(16383);nt.exports=function(g){var A=g._fullLayout,E=A._infolayer.selectAll(".rangeselector").data(m(g),y);E.enter().append("g").classed("rangeselector",!0),E.exit().remove(),E.style({cursor:"pointer","pointer-events":"all"}),E.each(function(d){var _=M.select(this),L=d,b=L.rangeselector,D=_.selectAll("g.button").data(S.filterVisible(b.buttons));D.enter().append("g").classed("button",!0),D.exit().remove(),D.each(function(B){var I=M.select(this),V=x(L,B);B._isActive=c(L,B,V),I.call(p,b,B),I.call(T,b,B,g),I.on("click",function(){g._dragged||C.call("_guiRelayout",g,V)}),I.on("mouseover",function(){B._isHovered=!0,I.call(p,b,B)}),I.on("mouseout",function(){B._isHovered=!1,I.call(p,b,B)})}),P(g,D,b,L._name,_)})};function m(g){for(var A=t.list(g,"x",!0),E=[],d=0;d<A.length;d++){var _=A[d];_.rangeselector&&_.rangeselector.visible&&E.push(_)}return E}function y(g){return g._id}function c(g,A,E){if(A.step==="all")return g.autorange===!0;var d=Object.keys(E);return g.range[0]===E[d[0]]&&g.range[1]===E[d[1]]}function p(g,A,E){var d=S.ensureSingle(g,"rect","selector-rect",function(_){_.attr("shape-rendering","crispEdges")});d.attr({rx:u.rx,ry:u.ry}),d.call(i.stroke,A.bordercolor).call(i.fill,f(A,E)).style("stroke-width",A.borderwidth+"px")}function f(g,A){return A._isActive||A._isHovered?g.activecolor:g.bgcolor}function T(g,A,E,d){function _(b){l.convertToTspans(b,d)}var L=S.ensureSingle(g,"text","selector-text",function(b){b.attr("text-anchor","middle")});L.call(w.font,A.font).text(k(E,d._fullLayout._meta)).call(_)}function k(g,A){return g.label?A?S.templateString(g.label,A):g.label:g.step==="all"?"all":g.count+g.step.charAt(0)}function P(g,A,E,d,_){var L=0,b=0,D=E.borderwidth;A.each(function(){var U=M.select(this),G=U.select(".selector-text"),Y=E.font.size*o,Q=Math.max(Y*l.lineCount(G),16)+3;b=Math.max(b,Q)}),A.each(function(){var U=M.select(this),G=U.select(".selector-rect"),Y=U.select(".selector-text"),Q=Y.node()&&w.bBox(Y.node()).width,ft=E.font.size*o,ut=l.lineCount(Y),lt=Math.max(Q+10,u.minButtonWidth);U.attr("transform",h(D+L,D)),G.attr({x:0,y:0,width:lt,height:b}),l.positionText(Y,lt/2,b/2-(ut-1)*ft/2+3),L+=lt+5});var B=g._fullLayout._size,I=B.l+B.w*E.x,V=B.t+B.h*(1-E.y),N="left";S.isRightAnchor(E)&&(I-=L,N="right"),S.isCenterAnchor(E)&&(I-=L/2,N="center");var F="top";S.isBottomAnchor(E)&&(V-=b,F="bottom"),S.isMiddleAnchor(E)&&(V-=b/2,F="middle"),L=Math.ceil(L),b=Math.ceil(b),I=Math.round(I),V=Math.round(V),r.autoMargin(g,d+"-range-selector",{x:E.x,y:E.y,l:L*a[N],r:L*s[N],b:b*s[F],t:b*a[F]}),_.attr("transform",h(I,V))}},16383:function(nt,W,e){var M=e(50936),C=e(34809).titleCase;nt.exports=function(i,w){var S=i._name,h={};if(w.step==="all")h[S+".autorange"]=!0;else{var l=r(i,w);h[S+".range[0]"]=l[0],h[S+".range[1]"]=l[1]}return h};function r(i,w){var S=i.range,h=new Date(i.r2l(S[1])),l=w.step,t=M["utc"+C(l)],n=w.count,o;switch(w.stepmode){case"backward":o=i.l2r(+t.offset(h,-n));break;case"todate":var a=t.offset(h,-n);o=i.l2r(+t.ceil(a));break}var s=S[1];return[o,s]}},44453:function(nt,W,e){nt.exports={moduleType:"component",name:"rangeselector",schema:{subplots:{xaxis:{rangeselector:e(91032)}}},layoutAttributes:e(91032),handleDefaults:e(86255),draw:e(45431)}},63608:function(nt,W,e){var M=e(10229);nt.exports={bgcolor:{valType:"color",dflt:M.background,editType:"plot"},bordercolor:{valType:"color",dflt:M.defaultLine,editType:"plot"},borderwidth:{valType:"integer",dflt:0,min:0,editType:"plot"},autorange:{valType:"boolean",dflt:!0,editType:"calc",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},range:{valType:"info_array",items:[{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}},{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}}],editType:"calc",impliedEdits:{autorange:!1}},thickness:{valType:"number",dflt:.15,min:0,max:1,editType:"plot"},visible:{valType:"boolean",dflt:!0,editType:"calc"},editType:"calc"}},46223:function(nt,W,e){var M=e(5975).list,C=e(32919).getAutoRange,r=e(20604);nt.exports=function(i){for(var w=M(i,"x",!0),S=0;S<w.length;S++){var h=w[S],l=h[r.name];l&&l.visible&&l.autorange&&(l._input.autorange=!0,l._input.range=l.range=C(i,h))}}},20604:function(nt){nt.exports={name:"rangeslider",containerClassName:"rangeslider-container",bgClassName:"rangeslider-bg",rangePlotClassName:"rangeslider-rangeplot",maskMinClassName:"rangeslider-mask-min",maskMaxClassName:"rangeslider-mask-max",slideBoxClassName:"rangeslider-slidebox",grabberMinClassName:"rangeslider-grabber-min",grabAreaMinClassName:"rangeslider-grabarea-min",handleMinClassName:"rangeslider-handle-min",grabberMaxClassName:"rangeslider-grabber-max",grabAreaMaxClassName:"rangeslider-grabarea-max",handleMaxClassName:"rangeslider-handle-max",maskMinOppAxisClassName:"rangeslider-mask-min-opp-axis",maskMaxOppAxisClassName:"rangeslider-mask-max-opp-axis",maskColor:"rgba(0,0,0,0.4)",maskOppAxisColor:"rgba(0,0,0,0.2)",slideBoxFill:"transparent",slideBoxCursor:"ew-resize",grabAreaFill:"transparent",grabAreaCursor:"col-resize",grabAreaWidth:10,handleWidth:4,handleRadius:1,handleStrokeWidth:1,extraPad:15}},41295:function(nt,W,e){var M=e(34809),C=e(78032),r=e(5975),i=e(63608),w=e(66249);nt.exports=function(S,h,l){var t=S[l],n=h[l];if(!(t.rangeslider||h._requestRangeslider[n._id]))return;M.isPlainObject(t.rangeslider)||(t.rangeslider={});var o=t.rangeslider,a=C.newContainer(n,"rangeslider");function s(E,d){return M.coerce(o,a,i,E,d)}var u,x;function m(E,d){return M.coerce(u,x,w,E,d)}var y=s("visible");if(y){s("bgcolor",h.plot_bgcolor),s("bordercolor"),s("borderwidth"),s("thickness"),s("autorange",!n.isValidRange(o.range)),s("range");var c=h._subplots;if(c)for(var p=c.cartesian.filter(function(E){return E.substr(0,E.indexOf("y"))===r.name2id(l)}).map(function(E){return E.substr(E.indexOf("y"),E.length)}),f=M.simpleMap(p,r.id2name),T=0;T<f.length;T++){var k=f[T];u=o[k]||{},x=C.newContainer(a,k,"yaxis");var P=h[k],g;u.range&&P.isValidRange(u.range)&&(g="fixed");var A=m("rangemode",g);A!=="match"&&m("range",P.range.slice())}a._input=o}}},88887:function(nt,W,e){var M=e(45568),C=e(33626),r=e(44122),i=e(34809),w=i.strTranslate,S=e(62203),h=e(78766),l=e(17240),t=e(37703),n=e(5975),o=e(14751),a=e(27983),s=e(20604);nt.exports=function(A){for(var E=A._fullLayout,d=E._rangeSliderData,_=0;_<d.length;_++){var L=d[_][s.name];L._clipId=L._id+"-"+E._uid}function b(B){return B._name}var D=E._infolayer.selectAll("g."+s.containerClassName).data(d,b);D.exit().each(function(B){var I=B[s.name];E._topdefs.select("#"+I._clipId).remove()}).remove(),d.length!==0&&(D.enter().append("g").classed(s.containerClassName,!0).attr("pointer-events","all"),D.each(function(B){var I=M.select(this),V=B[s.name],N=E[n.id2name(B.anchor)],F=V[n.id2name(B.anchor)];if(V.range){var U=i.simpleMap(V.range,B.r2l),G=i.simpleMap(B.range,B.r2l),Y;G[0]<G[1]?Y=[Math.min(U[0],G[0]),Math.max(U[1],G[1])]:Y=[Math.max(U[0],G[0]),Math.min(U[1],G[1])],V.range=V._input.range=i.simpleMap(Y,B.l2r)}B.cleanRange("rangeslider.range");var Q=E._size,ft=B.domain;V._width=Q.w*(ft[1]-ft[0]);var ut=Math.round(Q.l+Q.w*ft[0]),lt=Math.round(Q.t+Q.h*(1-B._counterDomainMin)+(B.side==="bottom"?B._depth:0)+V._offsetShift+s.extraPad);I.attr("transform",w(ut,lt)),V._rl=i.simpleMap(V.range,B.r2l);var K=V._rl[0],$=V._rl[1],H=$-K;if(V.p2d=function(St){return St/V._width*H+K},V.d2p=function(St){return(St-K)/H*V._width},B.rangebreaks){var at=B.locateBreaks(K,$);if(at.length){var ct,et,Z=0;for(ct=0;ct<at.length;ct++)et=at[ct],Z+=et.max-et.min;var ot=V._width/($-K-Z),st=[-ot*K];for(ct=0;ct<at.length;ct++)et=at[ct],st.push(st[st.length-1]-ot*(et.max-et.min));for(V.d2p=function(St){for(var Nt=st[0],Wt=0;Wt<at.length;Wt++){var Vt=at[Wt];if(St>=Vt.max)Nt=st[Wt+1];else if(St<Vt.min)break}return Nt+ot*St},ct=0;ct<at.length;ct++)et=at[ct],et.pmin=V.d2p(et.min),et.pmax=V.d2p(et.max);V.p2d=function(St){for(var Nt=st[0],Wt=0;Wt<at.length;Wt++){var Vt=at[Wt];if(St>=Vt.pmax)Nt=st[Wt+1];else if(St<Vt.pmin)break}return(St-Nt)/ot}}}if(F.rangemode!=="match"){var dt=N.r2l(F.range[0]),xt=N.r2l(F.range[1]),At=xt-dt;V.d2pOppAxis=function(St){return(St-dt)/At*V._height}}I.call(c,A,B,V).call(p,A,B,V).call(f,A,B,V).call(k,A,B,V,F).call(P,A,B,V).call(g,A,B,V),x(I,A,B,V),y(I,A,B,V,N,F),B.side==="bottom"&&l.draw(A,B._id+"title",{propContainer:B,propName:B._name+".title",placeholder:E._dfltTitle.x,attributes:{x:B._offset+B._length/2,y:lt+V._height+V._offsetShift+10+1.5*B.title.font.size,"text-anchor":"middle"}})}))};function u(A){return typeof A.clientX=="number"?A.clientX:A.touches&&A.touches.length>0?A.touches[0].clientX:0}function x(A,E,d,_){if(E._context.staticPlot)return;var L=A.select("rect."+s.slideBoxClassName).node(),b=A.select("rect."+s.grabAreaMinClassName).node(),D=A.select("rect."+s.grabAreaMaxClassName).node();function B(){var I=M.event,V=I.target,N=u(I),F=N-A.node().getBoundingClientRect().left,U=_.d2p(d._rl[0]),G=_.d2p(d._rl[1]),Y=o.coverSlip();this.addEventListener("touchmove",Q),this.addEventListener("touchend",ft),Y.addEventListener("mousemove",Q),Y.addEventListener("mouseup",ft);function Q(ut){var lt=u(ut),K=+lt-N,$,H,at;switch(V){case L:if(at="ew-resize",U+K>d._length||G+K<0)return;$=U+K,H=G+K;break;case b:if(at="col-resize",U+K>d._length)return;$=U+K,H=G;break;case D:if(at="col-resize",G+K<0)return;$=U,H=G+K;break;default:at="ew-resize",$=F,H=F+K;break}if(H<$){var ct=H;H=$,$=ct}_._pixelMin=$,_._pixelMax=H,a(M.select(Y),at),m(A,E,d,_)}function ft(){Y.removeEventListener("mousemove",Q),Y.removeEventListener("mouseup",ft),this.removeEventListener("touchmove",Q),this.removeEventListener("touchend",ft),i.removeElement(Y)}}A.on("mousedown",B),A.on("touchstart",B)}function m(A,E,d,_){function L(B){return d.l2r(i.constrain(B,_._rl[0],_._rl[1]))}var b=L(_.p2d(_._pixelMin)),D=L(_.p2d(_._pixelMax));window.requestAnimationFrame(function(){C.call("_guiRelayout",E,d._name+".range",[b,D])})}function y(A,E,d,_,L,b){var D=s.handleWidth/2;function B(ut){return i.constrain(ut,0,_._width)}function I(ut){return i.constrain(ut,0,_._height)}function V(ut){return i.constrain(ut,-D,_._width+D)}var N=B(_.d2p(d._rl[0])),F=B(_.d2p(d._rl[1]));if(A.select("rect."+s.slideBoxClassName).attr("x",N).attr("width",F-N),A.select("rect."+s.maskMinClassName).attr("width",N),A.select("rect."+s.maskMaxClassName).attr("x",F).attr("width",_._width-F),b.rangemode!=="match"){var U=_._height-I(_.d2pOppAxis(L._rl[1])),G=_._height-I(_.d2pOppAxis(L._rl[0]));A.select("rect."+s.maskMinOppAxisClassName).attr("x",N).attr("height",U).attr("width",F-N),A.select("rect."+s.maskMaxOppAxisClassName).attr("x",N).attr("y",G).attr("height",_._height-G).attr("width",F-N),A.select("rect."+s.slideBoxClassName).attr("y",U).attr("height",G-U)}var Y=.5,Q=Math.round(V(N-D))-Y,ft=Math.round(V(F-D))+Y;A.select("g."+s.grabberMinClassName).attr("transform",w(Q,Y)),A.select("g."+s.grabberMaxClassName).attr("transform",w(ft,Y))}function c(A,E,d,_){var L=i.ensureSingle(A,"rect",s.bgClassName,function(I){I.attr({x:0,y:0,"shape-rendering":"crispEdges"})}),b=_.borderwidth%2===0?_.borderwidth:_.borderwidth-1,D=-_._offsetShift,B=S.crispRound(E,_.borderwidth);L.attr({width:_._width+b,height:_._height+b,transform:w(D,D),"stroke-width":B}).call(h.stroke,_.bordercolor).call(h.fill,_.bgcolor)}function p(A,E,d,_){var L=E._fullLayout,b=i.ensureSingleById(L._topdefs,"clipPath",_._clipId,function(D){D.append("rect").attr({x:0,y:0})});b.select("rect").attr({width:_._width,height:_._height})}function f(A,E,d,_){var L=E.calcdata,b=A.selectAll("g."+s.rangePlotClassName).data(d._subplotsWith,i.identity);b.enter().append("g").attr("class",function(B){return s.rangePlotClassName+" "+B}).call(S.setClipUrl,_._clipId,E),b.order(),b.exit().remove();var D;b.each(function(B,I){var V=M.select(this),N=I===0,F=n.getFromId(E,B,"y"),U=F._name,G=_[U],Y={data:[],layout:{xaxis:{type:d.type,domain:[0,1],range:_.range.slice(),calendar:d.calendar},width:_._width,height:_._height,margin:{t:0,b:0,l:0,r:0}},_context:E._context};d.rangebreaks&&(Y.layout.xaxis.rangebreaks=d.rangebreaks),Y.layout[U]={type:F.type,domain:[0,1],range:G.rangemode!=="match"?G.range.slice():F.range.slice(),calendar:F.calendar},F.rangebreaks&&(Y.layout[U].rangebreaks=F.rangebreaks),r.supplyDefaults(Y);var Q=Y._fullLayout.xaxis,ft=Y._fullLayout[U];Q.clearCalc(),Q.setScale(),ft.clearCalc(),ft.setScale();var ut={id:B,plotgroup:V,xaxis:Q,yaxis:ft,isRangePlot:!0};N?D=ut:(ut.mainplot="xy",ut.mainplotinfo=D),t.rangePlot(E,ut,T(L,B))})}function T(A,E){for(var d=[],_=0;_<A.length;_++){var L=A[_],b=L[0].trace;b.xaxis+b.yaxis===E&&d.push(L)}return d}function k(A,E,d,_,L){var b=i.ensureSingle(A,"rect",s.maskMinClassName,function(V){V.attr({x:0,y:0,"shape-rendering":"crispEdges"})});b.attr("height",_._height).call(h.fill,s.maskColor);var D=i.ensureSingle(A,"rect",s.maskMaxClassName,function(V){V.attr({y:0,"shape-rendering":"crispEdges"})});if(D.attr("height",_._height).call(h.fill,s.maskColor),L.rangemode!=="match"){var B=i.ensureSingle(A,"rect",s.maskMinOppAxisClassName,function(V){V.attr({y:0,"shape-rendering":"crispEdges"})});B.attr("width",_._width).call(h.fill,s.maskOppAxisColor);var I=i.ensureSingle(A,"rect",s.maskMaxOppAxisClassName,function(V){V.attr({y:0,"shape-rendering":"crispEdges"})});I.attr("width",_._width).style("border-top",s.maskOppBorder).call(h.fill,s.maskOppAxisColor)}}function P(A,E,d,_){if(!E._context.staticPlot){var L=i.ensureSingle(A,"rect",s.slideBoxClassName,function(b){b.attr({y:0,cursor:s.slideBoxCursor,"shape-rendering":"crispEdges"})});L.attr({height:_._height,fill:s.slideBoxFill})}}function g(A,E,d,_){var L=i.ensureSingle(A,"g",s.grabberMinClassName),b=i.ensureSingle(A,"g",s.grabberMaxClassName),D={x:0,width:s.handleWidth,rx:s.handleRadius,fill:h.background,stroke:h.defaultLine,"stroke-width":s.handleStrokeWidth,"shape-rendering":"crispEdges"},B={y:Math.round(_._height/4),height:Math.round(_._height/2)},I=i.ensureSingle(L,"rect",s.handleMinClassName,function(G){G.attr(D)});I.attr(B);var V=i.ensureSingle(b,"rect",s.handleMaxClassName,function(G){G.attr(D)});V.attr(B);var N={width:s.grabAreaWidth,x:0,y:0,fill:s.grabAreaFill,cursor:E._context.staticPlot?void 0:s.grabAreaCursor},F=i.ensureSingle(L,"rect",s.grabAreaMinClassName,function(G){G.attr(N)});F.attr("height",_._height);var U=i.ensureSingle(b,"rect",s.grabAreaMaxClassName,function(G){G.attr(N)});U.attr("height",_._height)}},80400:function(nt,W,e){var M=e(5975),C=e(30635),r=e(20604),i=e(4530).LINE_SPACING,w=r.name;function S(h){var l=h&&h[w];return l&&l.visible}W.isVisible=S,W.makeData=function(h){var l=M.list({_fullLayout:h},"x",!0),t=h.margin,n=[];if(!h._has("gl2d"))for(var o=0;o<l.length;o++){var a=l[o];if(S(a)){n.push(a);var s=a[w];s._id=w+a._id,s._height=(h.height-t.b-t.t)*s.thickness,s._offsetShift=Math.floor(s.borderwidth/2)}}h._rangeSliderData=n},W.autoMarginOpts=function(h,l){var t=h._fullLayout,n=l[w],o=l._id.charAt(0),a=0,s=0;if(l.side==="bottom"&&(a=l._depth,l.title.text!==t._dfltTitle[o])){s=1.5*l.title.font.size+10+n._offsetShift;var u=(l.title.text.match(C.BR_TAG_ALL)||[]).length;s+=u*l.title.font.size*i}return{x:0,y:l._counterDomainMin,l:0,r:0,t:0,b:n._height+a+Math.max(t.margin.b,s),pad:r.extraPad+n._offsetShift*2}}},55429:function(nt,W,e){var M=e(34809),C=e(63608),r=e(66249),i=e(80400);nt.exports={moduleType:"component",name:"rangeslider",schema:{subplots:{xaxis:{rangeslider:M.extendFlat({},C,{yaxis:r})}}},layoutAttributes:e(63608),handleDefaults:e(41295),calcAutorange:e(46223),draw:e(88887),isVisible:i.isVisible,makeData:i.makeData,autoMarginOpts:i.autoMarginOpts}},66249:function(nt){nt.exports={_isSubplotObj:!0,rangemode:{valType:"enumerated",values:["auto","fixed","match"],dflt:"match",editType:"calc"},range:{valType:"info_array",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},editType:"calc"}},4327:function(nt,W,e){var M=e(50222),C=e(36640).line,r=e(94850).T,i=e(93049).extendFlat,w=e(13582).overrideAll,S=e(78032).templatedArray;e(35081),nt.exports=w(S("selection",{type:{valType:"enumerated",values:["rect","path"]},xref:i({},M.xref,{}),yref:i({},M.yref,{}),x0:{valType:"any"},x1:{valType:"any"},y0:{valType:"any"},y1:{valType:"any"},path:{valType:"string",editType:"arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:.7,editType:"arraydraw"},line:{color:C.color,width:i({},C.width,{min:1,dflt:1}),dash:i({},r,{dflt:"dot"})}}),"arraydraw","from-root")},78865:function(nt){nt.exports={BENDPX:1.5,MINSELECT:12,SELECTDELAY:100,SELECTID:"-select"}},2272:function(nt,W,e){var M=e(34809),C=e(29714),r=e(59008),i=e(4327),w=e(49728);nt.exports=function(h,l){r(h,l,{name:"selections",handleItemDefaults:S});for(var t=l.selections,n=0;n<t.length;n++){var o=t[n];o&&o.path===void 0&&(o.x0===void 0||o.x1===void 0||o.y0===void 0||o.y1===void 0)&&(l.selections[n]=null)}};function S(h,l,t){function n(L,b){return M.coerce(h,l,i,L,b)}var o=n("path"),a=o?"path":"rect",s=n("type",a),u=s!=="path";u&&delete l.path,n("opacity"),n("line.color"),n("line.width"),n("line.dash");for(var x=["x","y"],m=0;m<2;m++){var y=x[m],c={_fullLayout:t},p,f,T,k=C.coerceRef(h,l,c,y);if(p=C.getFromId(c,k),p._selectionIndices.push(l._index),T=w.rangeToShapePosition(p),f=w.shapePositionToRange(p),u){var P=y+"0",g=y+"1",A=h[P],E=h[g];h[P]=f(h[P],!0),h[g]=f(h[g],!0),C.coercePosition(l,c,n,k,P),C.coercePosition(l,c,n,k,g);var d=l[P],_=l[g];d!==void 0&&_!==void 0&&(l[P]=T(d),l[g]=T(_),h[P]=A,h[g]=E)}}u&&M.noneOrAll(h,l,["x0","x1","y0","y1"])}},7028:function(nt,W,e){var M=e(81055).readPaths,C=e(561),r=e(78534).clearOutlineControllers,i=e(78766),w=e(62203),S=e(78032).arrayEditor,h=e(49728),l=h.getPathString;nt.exports={draw:t,drawOne:o,activateLastSelection:u};function t(m){var y=m._fullLayout;r(m),y._selectionLayer.selectAll("path").remove();for(var c in y._plots){var p=y._plots[c].selectionLayer;p&&p.selectAll("path").remove()}for(var f=0;f<y.selections.length;f++)o(m,f)}function n(m){return m._context.editSelection}function o(m,y){m._fullLayout._paperdiv.selectAll('.selectionlayer [data-index="'+y+'"]').remove();var c=h.makeSelectionsOptionsAndPlotinfo(m,y),p=c.options,f=c.plotinfo;if(!p._input)return;T(m._fullLayout._selectionLayer);function T(k){var P=l(m,p),g={"data-index":y,"fill-rule":"evenodd",d:P},A=p.opacity,E="rgba(0,0,0,0)",d=p.line.color||i.contrast(m._fullLayout.plot_bgcolor),_=p.line.width,L=p.line.dash;_||(_=5,L="solid");var b=n(m)&&m._fullLayout._activeSelectionIndex===y;b&&(E=m._fullLayout.activeselection.fillcolor,A=m._fullLayout.activeselection.opacity);for(var D=[],B=1;B>=0;B--){var I=k.append("path").attr(g).style("opacity",B?.1:A).call(i.stroke,d).call(i.fill,E).call(w.dashLine,B?"solid":L,B?4+_:_);if(a(I,m,p),b){var V=S(m.layout,"selections",p);I.style({cursor:"move"});var N={element:I.node(),plotinfo:f,gd:m,editHelpers:V,isActiveSelection:!0},F=M(P,m);C(F,I,N)}else I.style("pointer-events",B?"all":"none");D[B]=I}var U=D[0],G=D[1];G.node().addEventListener("click",function(){return s(m,U)})}}function a(m,y,c){var p=c.xref+c.yref;w.setClipUrl(m,"clip"+y._fullLayout._uid+p,y)}function s(m,y){if(n(m)){var c=y.node(),p=+c.getAttribute("data-index");if(p>=0){if(p===m._fullLayout._activeSelectionIndex){x(m);return}m._fullLayout._activeSelectionIndex=p,m._fullLayout._deactivateSelection=x,t(m)}}}function u(m){if(n(m)){var y=m._fullLayout.selections.length-1;m._fullLayout._activeSelectionIndex=y,m._fullLayout._deactivateSelection=x,t(m)}}function x(m){if(n(m)){var y=m._fullLayout._activeSelectionIndex;y>=0&&(r(m),delete m._fullLayout._activeSelectionIndex,t(m))}}},52307:function(nt,W,e){var M=e(94850).T,C=e(93049).extendFlat;nt.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:C({},M,{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"}}},43028:function(nt){nt.exports=function(W,e,M){M("newselection.mode");var C=M("newselection.line.width");C&&(M("newselection.line.color"),M("newselection.line.dash")),M("activeselection.fillcolor"),M("activeselection.opacity")}},51817:function(nt,W,e){var M=e(70414),C=M.selectMode,r=e(78534),i=r.clearOutline,w=e(81055),S=w.readPaths,h=w.writePaths,l=w.fixDatesForPaths;nt.exports=function(t,n){if(t.length){var o=t[0][0];if(o){var a=o.getAttribute("d"),s=n.gd,u=s._fullLayout.newselection,x=n.plotinfo,m=x.xaxis,y=x.yaxis,c=n.isActiveSelection,p=n.dragmode,f=(s.layout||{}).selections||[];if(!C(p)&&c!==void 0){var T=s._fullLayout._activeSelectionIndex;if(T<f.length)switch(s._fullLayout.selections[T].type){case"rect":p="select";break;case"path":p="lasso";break}}var k=S(a,s,x,c),P={xref:m._id,yref:y._id,opacity:u.opacity,line:{color:u.line.color,width:u.line.width,dash:u.line.dash}},g;k.length===1&&(g=k[0]),g&&g.length===5&&p==="select"?(P.type="rect",P.x0=g[0][1],P.y0=g[0][2],P.x1=g[2][1],P.y1=g[2][2]):(P.type="path",m&&y&&l(k,m,y),P.path=h(k),g=null),i(s);for(var A=n.editHelpers,E=(A||{}).modifyItem,d=[],_=0;_<f.length;_++){var L=s._fullLayout.selections[_];if(!L){d[_]=L;continue}if(d[_]=L._input,c!==void 0&&_===s._fullLayout._activeSelectionIndex){var b=P;switch(L.type){case"rect":E("x0",b.x0),E("x1",b.x1),E("y0",b.y0),E("y1",b.y1);break;case"path":E("path",b.path);break}}}return c===void 0?(d.push(P),d):A?A.getUpdateObj():{}}}}},49801:function(nt,W,e){var M=e(34809).strTranslate;function C(S,h){switch(S.type){case"log":return S.p2d(h);case"date":return S.p2r(h,0,S.calendar);default:return S.p2r(h)}}function r(S,h){switch(S.type){case"log":return S.d2p(h);case"date":return S.r2p(h,0,S.calendar);default:return S.r2p(h)}}function i(S){var h=S._id.charAt(0)==="y"?1:0;return function(l){return C(S,l[h])}}function w(S){return M(S.xaxis._offset,S.yaxis._offset)}nt.exports={p2r:C,r2p:r,axValue:i,getTransform:w}},44844:function(nt,W,e){var M=e(7028),C=e(88666);nt.exports={moduleType:"component",name:"selections",layoutAttributes:e(4327),supplyLayoutDefaults:e(2272),supplyDrawNewSelectionDefaults:e(43028),includeBasePlot:e(20706)("selections"),draw:M.draw,drawOne:M.drawOne,reselect:C.reselect,prepSelect:C.prepSelect,clearOutline:C.clearOutline,clearSelectionsCache:C.clearSelectionsCache,selectOnClick:C.selectOnClick}},88666:function(nt,W,e){var M=e(11516),C=e(52773),r=e(33626),i=e(62203).dashStyle,w=e(78766),S=e(32141),h=e(36040).makeEventData,l=e(70414),t=l.freeMode,n=l.rectMode,o=l.drawMode,a=l.openMode,s=l.selectMode,u=e(49728),x=e(2956),m=e(561),y=e(78534).clearOutline,c=e(81055),p=c.handleEllipse,f=c.readPaths,T=e(87562).newShapes,k=e(51817),P=e(7028).activateLastSelection,g=e(34809),A=g.sorterAsc,E=e(80899),d=e(64025),_=e(5975).getFromId,L=e(34823),b=e(71817).redrawReglTraces,D=e(78865),B=D.MINSELECT,I=E.filter,V=E.tester,N=e(49801),F=N.p2r,U=N.axValue,G=N.getTransform;function Y(ne){return ne.subplot!==void 0}function Q(ne,zt,qt,Zt,ae){var vt=!Y(Zt),Mt=t(ae),Lt=n(ae),$t=a(ae),ge=o(ae),de=s(ae),sr=ae==="drawline",mr=ae==="drawcircle",Ve=sr||mr,le=Zt.gd,pe=le._fullLayout,Te=de&&pe.newselection.mode==="immediate"&&vt,Yt=pe._zoomlayer,Ee=Zt.element.getBoundingClientRect(),Ne=Zt.plotinfo,ar=G(Ne),Ye=zt-Ee.left,Jt=qt-Ee.top;pe._calcInverseTransform(le);var ue=g.apply3DTransform(pe._invTransform)(Ye,Jt);Ye=ue[0],Jt=ue[1];var Se=pe._invScaleX,De=pe._invScaleY,Ze=Ye,nr=Jt,Ke="M"+Ye+","+Jt,er=Zt.xaxes[0],xr=Zt.yaxes[0],Sr=er._length,Cr=xr._length,Er=ne.altKey&&!(o(ae)&&$t),Lr,Ur,zr,te,he,Je,br;H(ne,le,Zt),Mt&&(Lr=I([[Ye,Jt]],D.BENDPX));var pr=Yt.selectAll("path.select-outline-"+Ne.id).data([1]),We=ge?pe.newshape:pe.newselection;ge&&(Zt.hasText=We.label.text||We.label.texttemplate);var hr=ge&&!$t?We.fillcolor:"rgba(0,0,0,0)",Ar=We.line.color||(vt?w.contrast(le._fullLayout.plot_bgcolor):"#7f7f7f");pr.enter().append("path").attr("class","select-outline select-outline-"+Ne.id).style({opacity:ge?We.opacity/2:1,"stroke-dasharray":i(We.line.dash,We.line.width),"stroke-width":We.line.width+"px","shape-rendering":"crispEdges"}).call(w.stroke,Ar).call(w.fill,hr).attr("fill-rule","evenodd").classed("cursor-move",!!ge).attr("transform",ar).attr("d",Ke+"Z");var yr=Yt.append("path").attr("class","zoombox-corners").style({fill:w.background,stroke:w.defaultLine,"stroke-width":1}).attr("transform",ar).attr("d","M0,0Z");if(ge&&Zt.hasText){var dr=Yt.select(".label-temp");dr.empty()&&(dr=Yt.append("g").classed("label-temp",!0).classed("select-outline",!0).style({opacity:.8}))}var Rr=pe._uid+D.SELECTID,Qr=[],Xr=ot(le,Zt.xaxes,Zt.yaxes,Zt.subplot);Te&&!ne.shiftKey&&(Zt._clearSubplotSelections=function(){if(vt){var on=er._id,Hn=xr._id;Qt(le,on,Hn,Xr);for(var Fn=(le.layout||{}).selections||[],jr=[],Pr=!1,fn=0;fn<Fn.length;fn++){var nn=pe.selections[fn];nn.xref!==on||nn.yref!==Hn?jr.push(Fn[fn]):Pr=!0}Pr&&(le._fullLayout._noEmitSelectedAtStart=!0,r.call("_guiRelayout",le,{selections:jr}))}});var Dn=Ie(Zt);Zt.moveFn=function(on,Hn){Zt._clearSubplotSelections&&(Zt._clearSubplotSelections(),Zt._clearSubplotSelections=void 0),Ze=Math.max(0,Math.min(Sr,Se*on+Ye)),nr=Math.max(0,Math.min(Cr,De*Hn+Jt));var Fn=Math.abs(Ze-Ye),jr=Math.abs(nr-Jt);if(Lt){var Pr,fn,nn;if(de){var Rn=pe.selectdirection;switch(Rn==="any"?jr<Math.min(Fn*.6,B)?Pr="h":Fn<Math.min(jr*.6,B)?Pr="v":Pr="d":Pr=Rn,Pr){case"h":fn=mr?Cr/2:0,nn=Cr;break;case"v":fn=mr?Sr/2:0,nn=Sr;break}}if(ge)switch(pe.newshape.drawdirection){case"vertical":Pr="h",fn=mr?Cr/2:0,nn=Cr;break;case"horizontal":Pr="v",fn=mr?Sr/2:0,nn=Sr;break;case"ortho":Fn<jr?(Pr="h",fn=Jt,nn=nr):(Pr="v",fn=Ye,nn=Ze);break;default:Pr="d"}Pr==="h"?(te=Ve?p(mr,[Ze,fn],[Ze,nn]):[[Ye,fn],[Ye,nn],[Ze,nn],[Ze,fn]],te.xmin=Ve?Ze:Math.min(Ye,Ze),te.xmax=Ve?Ze:Math.max(Ye,Ze),te.ymin=Math.min(fn,nn),te.ymax=Math.max(fn,nn),yr.attr("d","M"+te.xmin+","+(Jt-B)+"h-4v"+2*B+"h4ZM"+(te.xmax-1)+","+(Jt-B)+"h4v"+2*B+"h-4Z")):Pr==="v"?(te=Ve?p(mr,[fn,nr],[nn,nr]):[[fn,Jt],[fn,nr],[nn,nr],[nn,Jt]],te.xmin=Math.min(fn,nn),te.xmax=Math.max(fn,nn),te.ymin=Ve?nr:Math.min(Jt,nr),te.ymax=Ve?nr:Math.max(Jt,nr),yr.attr("d","M"+(Ye-B)+","+te.ymin+"v-4h"+2*B+"v4ZM"+(Ye-B)+","+(te.ymax-1)+"v4h"+2*B+"v-4Z")):Pr==="d"&&(te=Ve?p(mr,[Ye,Jt],[Ze,nr]):[[Ye,Jt],[Ye,nr],[Ze,nr],[Ze,Jt]],te.xmin=Math.min(Ye,Ze),te.xmax=Math.max(Ye,Ze),te.ymin=Math.min(Jt,nr),te.ymax=Math.max(Jt,nr),yr.attr("d","M0,0Z"))}else Mt&&(Lr.addPt([Ze,nr]),te=Lr.filtered);if(Zt.selectionDefs&&Zt.selectionDefs.length?(zr=jt(Zt.mergedPolygons,te,Er),te.subtract=Er,Ur=$(Zt.selectionDefs.concat([te]))):(zr=[te],Ur=V(te)),m(kt(zr,$t),pr,Zt),de){var On=Ot(le,!1),vn=On.eventData?On.eventData.points.slice():[];On=Ot(le,!1,Ur,Xr,Zt),Ur=On.selectionTesters,br=On.eventData;var Gn;Lr?Gn=Lr.filtered:Gn=Oe(zr),d.throttle(Rr,D.SELECTDELAY,function(){Qr=Bt(Ur,Xr);for(var ii=Qr.slice(),Wi=0;Wi<vn.length;Wi++){for(var ra=vn[Wi],vi=!1,Oi=0;Oi<ii.length;Oi++)if(ii[Oi].curveNumber===ra.curveNumber&&ii[Oi].pointNumber===ra.pointNumber){vi=!0;break}vi||ii.push(ra)}ii.length&&(br||(br={}),br.points=ii),Dn(br,Gn),Ut(le,br)})}},Zt.clickFn=function(on,Hn){if(yr.remove(),le._fullLayout._activeShapeIndex>=0){le._fullLayout._deactivateShape(le);return}if(!ge){var Fn=pe.clickmode;d.done(Rr).then(function(){if(d.clear(Rr),on===2){for(pr.remove(),he=0;he<Xr.length;he++)Je=Xr[he],Je._module.selectPoints(Je,!1);if(Wt(le,Xr),et(Zt),Kt(le),Xr.length){var jr=Xr[0].xaxis,Pr=Xr[0].yaxis;if(jr&&Pr){for(var fn=[],nn=le._fullLayout.selections,Rn=0;Rn<nn.length;Rn++){var On=nn[Rn];On&&(On.xref!==jr._id||On.yref!==Pr._id)&&fn.push(On)}fn.length<nn.length&&(le._fullLayout._noEmitSelectedAtStart=!0,r.call("_guiRelayout",le,{selections:fn}))}}}else Fn.indexOf("select")>-1&&ft(Hn,le,Zt.xaxes,Zt.yaxes,Zt.subplot,Zt,pr),Fn==="event"&&ee(le,void 0);S.click(le,Hn,Ne.id)}).catch(g.error)}},Zt.doneFn=function(){yr.remove(),d.done(Rr).then(function(){d.clear(Rr),!Te&&te&&Zt.selectionDefs&&(te.subtract=Er,Zt.selectionDefs.push(te),Zt.mergedPolygons.length=0,[].push.apply(Zt.mergedPolygons,zr)),(Te||ge)&&et(Zt,Te),Zt.doneFnCompleted&&Zt.doneFnCompleted(Qr),de&&ee(le,br)}).catch(g.error)}}function ft(ne,zt,qt,Zt,ae,vt,Mt){var Lt=zt._hoverdata,$t=zt._fullLayout,ge=$t.clickmode,de=ge.indexOf("event")>-1,sr=[],mr,Ve,le,pe,Te,Yt,Ee,Ne,ar,Ye;if(dt(Lt)){H(ne,zt,vt),mr=ot(zt,qt,Zt,ae);var Jt=xt(Lt,mr),ue=Jt.pointNumbers.length>0;if(ue?St(mr,Jt):Nt(mr)&&(Ee=At(Jt))){for(Mt&&Mt.remove(),Ye=0;Ye<mr.length;Ye++)Ve=mr[Ye],Ve._module.selectPoints(Ve,!1);Wt(zt,mr),et(vt),de&&Kt(zt)}else{Ne=ne.shiftKey&&(Ee!==void 0?Ee:At(Jt)),le=ut(Jt.pointNumber,Jt.searchInfo,Ne);var Se=vt.selectionDefs.concat([le]);for(pe=$(Se),Ye=0;Ye<mr.length;Ye++)if(Te=mr[Ye]._module.selectPoints(mr[Ye],pe),Yt=Dt(Te,mr[Ye]),sr.length)for(var De=0;De<Yt.length;De++)sr.push(Yt[De]);else sr=Yt;if(ar={points:sr},Wt(zt,mr,ar),le&&vt&&vt.selectionDefs.push(le),Mt){var Ze=vt.mergedPolygons,nr=a(vt.dragmode);m(kt(Ze,nr),Mt,vt)}de&&ee(zt,ar)}}}function ut(ne,zt,qt){return{pointNumber:ne,searchInfo:zt,subtract:!!qt}}function lt(ne){return"pointNumber"in ne&&"searchInfo"in ne}function K(ne){return{xmin:0,xmax:0,ymin:0,ymax:0,pts:[],contains:function(zt,qt,Zt,ae){var vt=ne.searchInfo.cd[0].trace._expandedIndex,Mt=ae.cd[0].trace._expandedIndex;return Mt===vt&&Zt===ne.pointNumber},isRect:!1,degenerate:!1,subtract:!!ne.subtract}}function $(ne){if(!ne.length)return;for(var zt=[],qt=lt(ne[0])?0:ne[0][0][0],Zt=qt,ae=lt(ne[0])?0:ne[0][0][1],vt=ae,Mt=0;Mt<ne.length;Mt++)if(lt(ne[Mt]))zt.push(K(ne[Mt]));else{var Lt=V(ne[Mt]);Lt.subtract=!!ne[Mt].subtract,zt.push(Lt),qt=Math.min(qt,Lt.xmin),Zt=Math.max(Zt,Lt.xmax),ae=Math.min(ae,Lt.ymin),vt=Math.max(vt,Lt.ymax)}function $t(ge,de,sr,mr){for(var Ve=!1,le=0;le<zt.length;le++)zt[le].contains(ge,de,sr,mr)&&(Ve=!zt[le].subtract);return Ve}return{xmin:qt,xmax:Zt,ymin:ae,ymax:vt,pts:[],contains:$t,isRect:!1,degenerate:!1}}function H(ne,zt,qt){var Zt=zt._fullLayout,ae=qt.plotinfo,vt=qt.dragmode,Mt=Zt._lastSelectedSubplot&&Zt._lastSelectedSubplot===ae.id,Lt=(ne.shiftKey||ne.altKey)&&!(o(vt)&&a(vt));Mt&&Lt&&ae.selection&&ae.selection.selectionDefs&&!qt.selectionDefs?(qt.selectionDefs=ae.selection.selectionDefs,qt.mergedPolygons=ae.selection.mergedPolygons):(!Lt||!ae.selection)&&et(qt),Mt||(y(zt),Zt._lastSelectedSubplot=ae.id)}function at(ne){return ne._fullLayout._activeShapeIndex>=0}function ct(ne){return ne._fullLayout._activeSelectionIndex>=0}function et(ne,zt){var qt=ne.dragmode,Zt=ne.plotinfo,ae=ne.gd;at(ae)&&ae._fullLayout._deactivateShape(ae),ct(ae)&&ae._fullLayout._deactivateSelection(ae);var vt=ae._fullLayout,Mt=vt._zoomlayer,Lt=o(qt),$t=s(qt);if(Lt||$t){var ge=Mt.selectAll(".select-outline-"+Zt.id);if(ge&&ae._fullLayout._outlining){var de;Lt&&(de=T(ge,ne)),de&&r.call("_guiRelayout",ae,{shapes:de});var sr;$t&&!Y(ne)&&(sr=k(ge,ne)),sr&&(ae._fullLayout._noEmitSelectedAtStart=!0,r.call("_guiRelayout",ae,{selections:sr}).then(function(){zt&&P(ae)})),ae._fullLayout._outlining=!1}}Zt.selection={},Zt.selection.selectionDefs=ne.selectionDefs=[],Zt.selection.mergedPolygons=ne.mergedPolygons=[]}function Z(ne){return ne._id}function ot(ne,zt,qt,Zt){if(!ne.calcdata)return[];var ae=[],vt=zt.map(Z),Mt=qt.map(Z),Lt,$t,ge;for(ge=0;ge<ne.calcdata.length;ge++)if(Lt=ne.calcdata[ge],$t=Lt[0].trace,!($t.visible!==!0||!$t._module||!$t._module.selectPoints))if(Y({subplot:Zt})&&($t.subplot===Zt||$t.geo===Zt))ae.push(st($t._module,Lt,zt[0],qt[0]));else if($t.type==="splom"){if($t._xaxes[vt[0]]&&$t._yaxes[Mt[0]]){var de=st($t._module,Lt,zt[0],qt[0]);de.scene=ne._fullLayout._splomScenes[$t.uid],ae.push(de)}}else if($t.type==="sankey"){var sr=st($t._module,Lt,zt[0],qt[0]);ae.push(sr)}else{if(vt.indexOf($t.xaxis)===-1&&(!$t._xA||!$t._xA.overlaying)||Mt.indexOf($t.yaxis)===-1&&(!$t._yA||!$t._yA.overlaying))continue;ae.push(st($t._module,Lt,_(ne,$t.xaxis),_(ne,$t.yaxis)))}return ae}function st(ne,zt,qt,Zt){return{_module:ne,cd:zt,xaxis:qt,yaxis:Zt}}function dt(ne){return ne&&Array.isArray(ne)&&ne[0].hoverOnBox!==!0}function xt(ne,zt){var qt=ne[0],Zt=-1,ae=[],vt,Mt;for(Mt=0;Mt<zt.length;Mt++)if(vt=zt[Mt],qt.fullData._expandedIndex===vt.cd[0].trace._expandedIndex){if(qt.hoverOnBox===!0)break;qt.pointNumber!==void 0?Zt=qt.pointNumber:qt.binNumber!==void 0&&(Zt=qt.binNumber,ae=qt.pointNumbers);break}return{pointNumber:Zt,pointNumbers:ae,searchInfo:vt}}function At(ne){var zt=ne.searchInfo.cd[0].trace,qt=ne.pointNumber,Zt=ne.pointNumbers,ae=Zt.length>0,vt=ae?Zt[0]:qt;return zt.selectedpoints?zt.selectedpoints.indexOf(vt)>-1:!1}function St(ne,zt){var qt=[],Zt,ae,vt,Mt;for(Mt=0;Mt<ne.length;Mt++)Zt=ne[Mt],Zt.cd[0].trace.selectedpoints&&Zt.cd[0].trace.selectedpoints.length>0&&qt.push(Zt);if(qt.length===1&&(vt=qt[0]===zt.searchInfo,vt&&(ae=zt.searchInfo.cd[0].trace,ae.selectedpoints.length===zt.pointNumbers.length))){for(Mt=0;Mt<zt.pointNumbers.length;Mt++)if(ae.selectedpoints.indexOf(zt.pointNumbers[Mt])<0)return!1;return!0}return!1}function Nt(ne){var zt=0,qt,Zt,ae;for(ae=0;ae<ne.length;ae++)if(qt=ne[ae],Zt=qt.cd[0].trace,Zt.selectedpoints&&(Zt.selectedpoints.length>1||(zt+=Zt.selectedpoints.length,zt>1)))return!1;return zt===1}function Wt(ne,zt,qt){var Zt;for(Zt=0;Zt<zt.length;Zt++){var ae=zt[Zt].cd[0].trace._fullInput,vt=ne._fullLayout._tracePreGUI[ae.uid]||{};vt.selectedpoints===void 0&&(vt.selectedpoints=ae._input.selectedpoints||null)}var Mt;if(qt){var Lt=qt.points||[];for(Zt=0;Zt<zt.length;Zt++)Mt=zt[Zt].cd[0].trace,Mt._input.selectedpoints=Mt._fullInput.selectedpoints=[],Mt._fullInput!==Mt&&(Mt.selectedpoints=[]);for(var $t=0;$t<Lt.length;$t++){var ge=Lt[$t],de=ge.data,sr=ge.fullData,mr=ge.pointIndex,Ve=ge.pointIndices;Ve?([].push.apply(de.selectedpoints,Ve),Mt._fullInput!==Mt&&[].push.apply(sr.selectedpoints,Ve)):(de.selectedpoints.push(mr),Mt._fullInput!==Mt&&sr.selectedpoints.push(mr))}}else for(Zt=0;Zt<zt.length;Zt++)Mt=zt[Zt].cd[0].trace,delete Mt.selectedpoints,delete Mt._input.selectedpoints,Mt._fullInput!==Mt&&delete Mt._fullInput.selectedpoints;Vt(ne,zt)}function Vt(ne,zt){for(var qt=!1,Zt=0;Zt<zt.length;Zt++){var ae=zt[Zt],vt=ae.cd;r.traceIs(vt[0].trace,"regl")&&(qt=!0);var Mt=ae._module,Lt=Mt.styleOnSelect||Mt.style;Lt&&(Lt(ne,vt,vt[0].node3),vt[0].nodeRangePlot3&&Lt(ne,vt,vt[0].nodeRangePlot3))}qt&&(L(ne),b(ne))}function jt(ne,zt,qt){for(var Zt=qt?M.difference:M.union,ae=Zt({regions:ne},{regions:[zt]}),vt=ae.regions.reverse(),Mt=0;Mt<vt.length;Mt++){var Lt=vt[Mt];Lt.subtract=Ae(Lt,vt.slice(0,Mt))}return vt}function Dt(ne,zt){if(Array.isArray(ne))for(var qt=zt.cd,Zt=zt.cd[0].trace,ae=0;ae<ne.length;ae++)ne[ae]=h(ne[ae],Zt,qt);return ne}function kt(ne,zt){for(var qt=[],Zt=0;Zt<ne.length;Zt++){qt[Zt]=[];for(var ae=0;ae<ne[Zt].length;ae++){qt[Zt][ae]=[],qt[Zt][ae][0]=ae?"L":"M";for(var vt=0;vt<ne[Zt][ae].length;vt++)qt[Zt][ae].push(ne[Zt][ae][vt])}zt||qt[Zt].push(["Z",qt[Zt][0][1],qt[Zt][0][2]])}return qt}function Bt(ne,zt){for(var qt=[],Zt,ae,vt=0;vt<zt.length;vt++){var Mt=zt[vt];ae=Mt._module.selectPoints(Mt,ne),Zt=Dt(ae,Mt),qt=qt.concat(Zt)}return qt}function Ot(ne,zt,qt,Zt,ae){var vt=!!Zt,Mt,Lt,$t;ae&&(Mt=ae.plotinfo,Lt=ae.xaxes[0]._id,$t=ae.yaxes[0]._id);var ge=[],de=[],sr=ie(ne),mr=ne._fullLayout;if(Mt){var Ve=mr._zoomlayer,le=mr.dragmode,pe=o(le),Te=s(le);if(pe||Te){var Yt=_(ne,Lt,"x"),Ee=_(ne,$t,"y");if(Yt&&Ee){var Ne=Ve.selectAll(".select-outline-"+Mt.id);if(Ne&&ne._fullLayout._outlining&&Ne.length){for(var ar=Ne[0][0],Ye=ar.getAttribute("d"),Jt=f(Ye,ne,Mt),ue=[],Se=0;Se<Jt.length;Se++){for(var De=Jt[Se],Ze=[],nr=0;nr<De.length;nr++)Ze.push([Pe(Yt,De[nr][1]),Pe(Ee,De[nr][2])]);Ze.xref=Lt,Ze.yref=$t,Ze.subtract=Ae(Ze,ue),ue.push(Ze)}sr=sr.concat(ue)}}}}var Ke=Lt&&$t?[Lt+$t]:mr._subplots.cartesian;Ht(ne);for(var er={},xr=0;xr<Ke.length;xr++){var Sr=Ke[xr],Cr=Sr.indexOf("y"),Er=Sr.slice(0,Cr),Lr=Sr.slice(Cr),Ur=Lt&&$t?qt:void 0;if(Ur=_e(sr,Er,Lr,Ur),Ur){var zr=Zt;if(!vt){var te=_(ne,Er,"x"),he=_(ne,Lr,"y");zr=ot(ne,[te],[he],Sr);for(var Je=0;Je<zr.length;Je++){var br=zr[Je],pr=br.cd[0],We=pr.trace;if(br._module.name==="scattergl"&&!pr.t.xpx){var hr=We.x,Ar=We.y,yr=We._length;pr.t.xpx=[],pr.t.ypx=[];for(var dr=0;dr<yr;dr++)pr.t.xpx[dr]=te.c2p(hr[dr]),pr.t.ypx[dr]=he.c2p(Ar[dr])}br._module.name==="splom"&&(er[We.uid]||(er[We.uid]=!0))}}var Rr=Bt(Ur,zr);ge=ge.concat(Rr),de=de.concat(zr)}}var Qr={points:ge};Wt(ne,de,Qr);var Xr=mr.clickmode,Dn=Xr.indexOf("event")>-1&&zt;if(!Mt&&zt){var on=ie(ne,!0);if(on.length){var Hn=on[0].xref,Fn=on[0].yref;if(Hn&&Fn){var jr=Oe(on),Pr=Le([_(ne,Hn,"x"),_(ne,Fn,"y")]);Pr(Qr,jr)}}ne._fullLayout._noEmitSelectedAtStart?ne._fullLayout._noEmitSelectedAtStart=!1:Dn&&ee(ne,Qr),mr._reselect=!1}if(!Mt&&mr._deselect){var fn=mr._deselect;Lt=fn.xref,$t=fn.yref,ye(Lt,$t,de)||Qt(ne,Lt,$t,Zt),Dn&&(Qr.points.length?ee(ne,Qr):Kt(ne)),mr._deselect=!1}return{eventData:Qr,selectionTesters:qt}}function Ht(ne){var zt=ne.calcdata;if(zt)for(var qt=0;qt<zt.length;qt++){var Zt=zt[qt][0],ae=Zt.trace,vt=ne._fullLayout._splomScenes;if(vt){var Mt=vt[ae.uid];Mt&&(Mt.selectBatch=[])}}}function ye(ne,zt,qt){for(var Zt=0;Zt<qt.length;Zt++){var ae=qt[Zt];if(ae.xaxis&&ae.xaxis._id===ne&&ae.yaxis&&ae.yaxis._id===zt)return!0}return!1}function Qt(ne,zt,qt,Zt){Zt=ot(ne,[_(ne,zt,"x")],[_(ne,qt,"y")],zt+qt);for(var ae=0;ae<Zt.length;ae++){var vt=Zt[ae];vt._module.selectPoints(vt,!1)}Wt(ne,Zt)}function _e(ne,zt,qt,Zt){for(var ae,vt=0;vt<ne.length;vt++){var Mt=ne[vt];if(!(zt!==Mt.xref||qt!==Mt.yref))if(ae){var Lt=!!Mt.subtract;ae=jt(ae,Mt,Lt),Zt=$(ae)}else ae=[Mt],Zt=V(Mt)}return Zt}function ie(ne,zt){for(var qt=[],Zt=ne._fullLayout,ae=Zt.selections,vt=ae.length,Mt=0;Mt<vt;Mt++)if(!(zt&&Mt!==Zt._activeSelectionIndex)){var Lt=ae[Mt];if(Lt){var $t=Lt.xref,ge=Lt.yref,de=_(ne,$t,"x"),sr=_(ne,ge,"y"),mr,Ve,le,pe,Te;if(Lt.type==="rect"){Te=[];var Yt=Pe(de,Lt.x0),Ee=Pe(de,Lt.x1),Ne=Pe(sr,Lt.y0),ar=Pe(sr,Lt.y1);Te=[[Yt,Ne],[Yt,ar],[Ee,ar],[Ee,Ne]],mr=Math.min(Yt,Ee),Ve=Math.max(Yt,Ee),le=Math.min(Ne,ar),pe=Math.max(Ne,ar),Te.xmin=mr,Te.xmax=Ve,Te.ymin=le,Te.ymax=pe,Te.xref=$t,Te.yref=ge,Te.subtract=!1,Te.isRect=!0,qt.push(Te)}else if(Lt.type==="path")for(var Ye=Lt.path.split("Z"),Jt=[],ue=0;ue<Ye.length;ue++){var Se=Ye[ue];if(Se){Se+="Z";var De=u.extractPathCoords(Se,x.paramIsX,"raw"),Ze=u.extractPathCoords(Se,x.paramIsY,"raw");mr=1/0,Ve=-1/0,le=1/0,pe=-1/0,Te=[];for(var nr=0;nr<De.length;nr++){var Ke=Pe(de,De[nr]),er=Pe(sr,Ze[nr]);Te.push([Ke,er]),mr=Math.min(Ke,mr),Ve=Math.max(Ke,Ve),le=Math.min(er,le),pe=Math.max(er,pe)}Te.xmin=mr,Te.xmax=Ve,Te.ymin=le,Te.ymax=pe,Te.xref=$t,Te.yref=ge,Te.subtract=Ae(Te,Jt),Jt.push(Te),qt.push(Te)}}}}return qt}function Ae(ne,zt){for(var qt=!1,Zt=0;Zt<zt.length;Zt++)for(var ae=zt[Zt],vt=0;vt<ne.length;vt++)if(C(ne[vt],ae)){qt=!qt;break}return qt}function Pe(ne,zt){return ne.type==="date"&&(zt=zt.replace("_"," ")),ne.type==="log"?ne.c2p(zt):ne.r2p(zt,null,ne.calendar)}function Oe(ne){for(var zt=ne.length,qt=[],Zt=0;Zt<zt;Zt++){var ae=ne[Zt];qt=qt.concat(ae),qt=qt.concat([ae[0]])}return je(qt)}function je(ne){return ne.isRect=ne.length===5&&ne[0][0]===ne[4][0]&&ne[0][1]===ne[4][1]&&ne[0][0]===ne[1][0]&&ne[2][0]===ne[3][0]&&ne[0][1]===ne[3][1]&&ne[1][1]===ne[2][1]||ne[0][1]===ne[1][1]&&ne[2][1]===ne[3][1]&&ne[0][0]===ne[3][0]&&ne[1][0]===ne[2][0],ne.isRect&&(ne.xmin=Math.min(ne[0][0],ne[2][0]),ne.xmax=Math.max(ne[0][0],ne[2][0]),ne.ymin=Math.min(ne[0][1],ne[2][1]),ne.ymax=Math.max(ne[0][1],ne[2][1])),ne}function Le(ne){return function(zt,qt){for(var Zt,ae,vt=0;vt<ne.length;vt++){var Mt=ne[vt],Lt=Mt._id,$t=Lt.charAt(0);if(qt.isRect){Zt||(Zt={});var ge=qt[$t+"min"],de=qt[$t+"max"];ge!==void 0&&de!==void 0&&(Zt[Lt]=[F(Mt,ge),F(Mt,de)].sort(A))}else ae||(ae={}),ae[Lt]=qt.map(U(Mt))}Zt&&(zt.range=Zt),ae&&(zt.lassoPoints=ae)}}function Ie(ne){var zt=ne.plotinfo;return zt.fillRangeItems||Le(ne.xaxes.concat(ne.yaxes))}function Ut(ne,zt){ne.emit("plotly_selecting",zt)}function ee(ne,zt){zt&&(zt.selections=(ne.layout||{}).selections||[]),ne.emit("plotly_selected",zt)}function Kt(ne){ne.emit("plotly_deselect",null)}nt.exports={reselect:Ot,prepSelect:Q,clearOutline:y,clearSelectionsCache:et,selectOnClick:ft}},43144:function(nt,W,e){var M=e(50222),C=e(80337),r=e(36640).line,i=e(94850).T,w=e(93049).extendFlat,S=e(78032).templatedArray;e(35081);var h=e(9829),l=e(3208).LF,t=e(41235);nt.exports=S("shape",{visible:w({},h.visible,{editType:"calc+arraydraw"}),showlegend:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},legend:w({},h.legend,{editType:"calc+arraydraw"}),legendgroup:w({},h.legendgroup,{editType:"calc+arraydraw"}),legendgrouptitle:{text:w({},h.legendgrouptitle.text,{editType:"calc+arraydraw"}),font:C({editType:"calc+arraydraw"}),editType:"calc+arraydraw"},legendrank:w({},h.legendrank,{editType:"calc+arraydraw"}),legendwidth:w({},h.legendwidth,{editType:"calc+arraydraw"}),type:{valType:"enumerated",values:["circle","rect","path","line"],editType:"calc+arraydraw"},layer:{valType:"enumerated",values:["below","above","between"],dflt:"above",editType:"arraydraw"},xref:w({},M.xref,{}),xsizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},xanchor:{valType:"any",editType:"calc+arraydraw"},x0:{valType:"any",editType:"calc+arraydraw"},x1:{valType:"any",editType:"calc+arraydraw"},x0shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},x1shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},yref:w({},M.yref,{}),ysizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},yanchor:{valType:"any",editType:"calc+arraydraw"},y0:{valType:"any",editType:"calc+arraydraw"},y1:{valType:"any",editType:"calc+arraydraw"},y0shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},y1shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},path:{valType:"string",editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},line:{color:w({},r.color,{editType:"arraydraw"}),width:w({},r.width,{editType:"calc+arraydraw"}),dash:w({},i,{editType:"arraydraw"}),editType:"calc+arraydraw"},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd",editType:"arraydraw"},editable:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},label:{text:{valType:"string",dflt:"",editType:"arraydraw"},texttemplate:l({},{keys:Object.keys(t)}),font:C({editType:"calc+arraydraw",colorEditType:"arraydraw"}),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"],editType:"arraydraw"},textangle:{valType:"angle",dflt:"auto",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],editType:"calc+arraydraw"},padding:{valType:"number",dflt:3,min:0,editType:"arraydraw"},editType:"arraydraw"},editType:"arraydraw"})},44959:function(nt,W,e){var M=e(34809),C=e(29714),r=e(2956),i=e(49728);nt.exports=function(t){var n=t._fullLayout,o=M.filterVisible(n.shapes);if(!(!o.length||!t._fullData.length))for(var a=0;a<o.length;a++){var s=o[a];s._extremes={};var u,x,m=C.getRefType(s.xref),y=C.getRefType(s.yref);s.xref!=="paper"&&m!=="domain"&&(u=C.getFromId(t,s.xref),x=l(u,s,r.paramIsX),x&&(s._extremes[u._id]=C.findExtremes(u,x,w(s)))),s.yref!=="paper"&&y!=="domain"&&(u=C.getFromId(t,s.yref),x=l(u,s,r.paramIsY),x&&(s._extremes[u._id]=C.findExtremes(u,x,S(s))))}};function w(t){return h(t.line.width,t.xsizemode,t.x0,t.x1,t.path,!1)}function S(t){return h(t.line.width,t.ysizemode,t.y0,t.y1,t.path,!0)}function h(t,n,o,a,s,u){var x=t/2,m=u;if(n==="pixel"){var y=s?i.extractPathCoords(s,u?r.paramIsY:r.paramIsX):[o,a],c=M.aggNums(Math.max,null,y),p=M.aggNums(Math.min,null,y),f=p<0?Math.abs(p)+x:x,T=c>0?c+x:x;return{ppad:x,ppadplus:m?f:T,ppadminus:m?T:f}}else return{ppad:x}}function l(t,n,o){var a=t._id.charAt(0)==="x"?"x":"y",s=t.type==="category"||t.type==="multicategory",u,x,m=0,y=0,c=s?t.r2c:t.d2c,p=n[a+"sizemode"]==="scaled";if(p?(u=n[a+"0"],x=n[a+"1"],s&&(m=n[a+"0shift"],y=n[a+"1shift"])):(u=n[a+"anchor"],x=n[a+"anchor"]),u!==void 0)return[c(u)+m,c(x)+y];if(n.path){var f=1/0,T=-1/0,k=n.path.match(r.segmentRE),P,g,A,E,d;for(t.type==="date"&&(c=i.decodeDate(c)),P=0;P<k.length;P++)g=k[P],A=o[g.charAt(0)].drawn,A!==void 0&&(E=k[P].substr(1).match(r.paramRE),!(!E||E.length<A)&&(d=c(E[A]),d<f&&(f=d),d>T&&(T=d)));if(T>=f)return[f,T]}}},2956:function(nt){nt.exports={segmentRE:/[MLHVQCTSZ][^MLHVQCTSZ]*/g,paramRE:/[^\s,]+/g,paramIsX:{M:{0:!0,drawn:0},L:{0:!0,drawn:0},H:{0:!0,drawn:0},V:{},Q:{0:!0,2:!0,drawn:2},C:{0:!0,2:!0,4:!0,drawn:4},T:{0:!0,drawn:0},S:{0:!0,2:!0,drawn:2},Z:{}},paramIsY:{M:{1:!0,drawn:1},L:{1:!0,drawn:1},H:{},V:{0:!0,drawn:0},Q:{1:!0,3:!0,drawn:3},C:{1:!0,3:!0,5:!0,drawn:5},T:{1:!0,drawn:1},S:{1:!0,3:!0,drawn:5},Z:{}},numParams:{M:2,L:2,H:1,V:1,Q:4,C:6,T:2,S:4,Z:0}}},74367:function(nt,W,e){var M=e(34809),C=e(29714),r=e(59008),i=e(43144),w=e(49728);nt.exports=function(l,t){r(l,t,{name:"shapes",handleItemDefaults:h})};function S(l,t){return l?"bottom":t.indexOf("top")!==-1?"top":t.indexOf("bottom")!==-1?"bottom":"middle"}function h(l,t,n){function o(lt,K){return M.coerce(l,t,i,lt,K)}t._isShape=!0;var a=o("visible");if(a){var s=o("showlegend");s&&(o("legend"),o("legendwidth"),o("legendgroup"),o("legendgrouptitle.text"),M.coerceFont(o,"legendgrouptitle.font"),o("legendrank"));var u=o("path"),x=u?"path":"rect",m=o("type",x),y=m!=="path";y&&delete t.path,o("editable"),o("layer"),o("opacity"),o("fillcolor"),o("fillrule");var c=o("line.width");c&&(o("line.color"),o("line.dash"));for(var p=o("xsizemode"),f=o("ysizemode"),T=["x","y"],k=0;k<2;k++){var P=T[k],g=P+"anchor",A=P==="x"?p:f,E={_fullLayout:n},d,_,L,b=C.coerceRef(l,t,E,P,void 0,"paper"),D=C.getRefType(b);if(D==="range"?(d=C.getFromId(E,b),d._shapeIndices.push(t._index),L=w.rangeToShapePosition(d),_=w.shapePositionToRange(d),(d.type==="category"||d.type==="multicategory")&&(o(P+"0shift"),o(P+"1shift"))):_=L=M.identity,y){var B=.25,I=.75,V=P+"0",N=P+"1",F=l[V],U=l[N];l[V]=_(l[V],!0),l[N]=_(l[N],!0),A==="pixel"?(o(V,0),o(N,10)):(C.coercePosition(t,E,o,b,V,B),C.coercePosition(t,E,o,b,N,I)),t[V]=L(t[V]),t[N]=L(t[N]),l[V]=F,l[N]=U}if(A==="pixel"){var G=l[g];l[g]=_(l[g],!0),C.coercePosition(t,E,o,b,g,.25),t[g]=L(t[g]),l[g]=G}}y&&M.noneOrAll(l,t,["x0","x1","y0","y1"]);var Y=m==="line",Q,ft;if(y&&(Q=o("label.texttemplate")),Q||(ft=o("label.text")),ft||Q){o("label.textangle");var ut=o("label.textposition",Y?"middle":"middle center");o("label.xanchor"),o("label.yanchor",S(Y,ut)),o("label.padding"),M.coerceFont(o,"label.font",n.font)}}}},44433:function(nt,W,e){var M=e(34809),C=e(29714),r=e(30635),i=e(62203),w=e(81055).readPaths,S=e(49728),h=S.getPathString,l=e(41235),t=e(4530).FROM_TL;nt.exports=function(a,s,u,x){if(x.selectAll(".shape-label").remove(),!!(u.label.text||u.label.texttemplate)){var m;if(u.label.texttemplate){var y={};if(u.type!=="path"){var c=C.getFromId(a,u.xref),p=C.getFromId(a,u.yref);for(var f in l){var T=l[f](u,c,p);T!==void 0&&(y[f]=T)}}m=M.texttemplateStringForShapes(u.label.texttemplate,{},a._fullLayout._d3locale,y)}else m=u.label.text;var k={"data-index":s},P=u.label.font,g={"data-notex":1},A=x.append("g").attr(k).classed("shape-label",!0),E=A.append("text").attr(g).classed("shape-label-text",!0).text(m),d,_,L,b;if(u.path){var D=h(a,u),B=w(D,a);d=1/0,L=1/0,_=-1/0,b=-1/0;for(var I=0;I<B.length;I++)for(var V=0;V<B[I].length;V++)for(var N=B[I][V],F=1;F<N.length;F+=2){var U=N[F],G=N[F+1];d=Math.min(d,U),_=Math.max(_,U),L=Math.min(L,G),b=Math.max(b,G)}}else{var Y=C.getFromId(a,u.xref),Q=u.x0shift,ft=u.x1shift,ut=C.getRefType(u.xref),lt=C.getFromId(a,u.yref),K=u.y0shift,$=u.y1shift,H=C.getRefType(u.yref),at=function(At,St){var Nt=S.getDataToPixel(a,Y,St,!1,ut);return Nt(At)},ct=function(At,St){var Nt=S.getDataToPixel(a,lt,St,!0,H);return Nt(At)};d=at(u.x0,Q),_=at(u.x1,ft),L=ct(u.y0,K),b=ct(u.y1,$)}var et=u.label.textangle;et==="auto"&&(u.type==="line"?et=n(d,L,_,b):et=0),E.call(function(At){return At.call(i.font,P).attr({}),r.convertToTspans(At,a),At});var Z=i.bBox(E.node()),ot=o(d,L,_,b,u,et,Z),st=ot.textx,dt=ot.texty,xt=ot.xanchor;E.attr({"text-anchor":{left:"start",center:"middle",right:"end"}[xt],y:dt,x:st,transform:"rotate("+et+","+st+","+dt+")"}).call(r.positionText,st,dt)}};function n(a,s,u,x){var m,y;return y=Math.abs(u-a),u>=a?m=s-x:m=x-s,-180/Math.PI*Math.atan2(m,y)}function o(a,s,u,x,m,y,c){var p=m.label.textposition,f=m.label.textangle,T=m.label.padding,k=m.type,P=Math.PI/180*y,g=Math.sin(P),A=Math.cos(P),E=m.label.xanchor,d=m.label.yanchor,_,L,b,D;if(k==="line"){p==="start"?(_=a,L=s):p==="end"?(_=u,L=x):(_=(a+u)/2,L=(s+x)/2),E==="auto"&&(p==="start"?f==="auto"?u>a?E="left":u<a?E="right":E="center":u>a?E="right":u<a?E="left":E="center":p==="end"?f==="auto"?u>a?E="right":u<a?E="left":E="center":u>a?E="left":u<a?E="right":E="center":E="center");var B={left:1,center:0,right:-1},I={bottom:-1,middle:0,top:1};if(f==="auto"){var V=I[d];b=-T*g*V,D=T*A*V}else{var N=B[E],F=I[d];b=T*N,D=T*F}_=_+b,L=L+D}else b=T+3,p.indexOf("right")!==-1?(_=Math.max(a,u)-b,E==="auto"&&(E="right")):p.indexOf("left")!==-1?(_=Math.min(a,u)+b,E==="auto"&&(E="left")):(_=(a+u)/2,E==="auto"&&(E="center")),p.indexOf("top")!==-1?L=Math.min(s,x):p.indexOf("bottom")!==-1?L=Math.max(s,x):L=(s+x)/2,D=T,d==="bottom"?L=L-D:d==="top"&&(L=L+D);var U=t[d],G=m.label.font.size,Y=c.height,Q=(Y*U-G)*g,ft=-(Y*U-G)*A;return{textx:_+Q,texty:L+ft,xanchor:E}}},561:function(nt,W,e){var M=e(34809),C=M.strTranslate,r=e(14751),i=e(70414),w=i.drawMode,S=i.selectMode,h=e(33626),l=e(78766),t=e(93391),n=t.i000,o=t.i090,a=t.i180,s=t.i270,u=e(78534),x=u.clearOutlineControllers,m=e(81055),y=m.pointsOnRectangle,c=m.pointsOnEllipse,p=m.writePaths,f=e(87562).newShapes,T=e(87562).createShapeObj,k=e(51817),P=e(44433);nt.exports=function d(_,L,b,D){D||(D=0);var B=b.gd;function I(){d(_,L,b,D++),(c(_[0])||b.hasText)&&V({redrawing:!0})}function V(jt){var Dt={};b.isActiveShape!==void 0&&(b.isActiveShape=!1,Dt=f(L,b)),b.isActiveSelection!==void 0&&(b.isActiveSelection=!1,Dt=k(L,b),B._fullLayout._reselect=!0),Object.keys(Dt).length&&h.call((jt||{}).redrawing?"relayout":"_guiRelayout",B,Dt)}var N=B._fullLayout,F=N._zoomlayer,U=b.dragmode,G=w(U),Y=S(U);(G||Y)&&(B._fullLayout._outlining=!0),x(B),L.attr("d",p(_));var Q,ft,ut,lt,K;if(!D&&(b.isActiveShape||b.isActiveSelection)){K=g([],_);var $=F.append("g").attr("class","outline-controllers");dt($),Vt()}if(G&&b.hasText){var H=F.select(".label-temp"),at=T(L,b,b.dragmode);P(B,"label-temp",at,H)}function ct(jt){ut=+jt.srcElement.getAttribute("data-i"),lt=+jt.srcElement.getAttribute("data-j"),Q[ut][lt].moveFn=et}function et(jt,Dt){if(_.length){var kt=K[ut][lt][1],Bt=K[ut][lt][2],Ot=_[ut],Ht=Ot.length;if(y(Ot)){var ye=jt,Qt=Dt;if(b.isActiveSelection){var _e=A(Ot,lt);_e[1]===Ot[lt][1]?Qt=0:ye=0}for(var ie=0;ie<Ht;ie++)if(ie!==lt){var Ae=Ot[ie];Ae[1]===Ot[lt][1]&&(Ae[1]=kt+ye),Ae[2]===Ot[lt][2]&&(Ae[2]=Bt+Qt)}if(Ot[lt][1]=kt+ye,Ot[lt][2]=Bt+Qt,!y(Ot))for(var Pe=0;Pe<Ht;Pe++)for(var Oe=0;Oe<Ot[Pe].length;Oe++)Ot[Pe][Oe]=K[ut][Pe][Oe]}else Ot[lt][1]=kt+jt,Ot[lt][2]=Bt+Dt;I()}}function Z(){V()}function ot(){if(_.length&&_[ut]&&_[ut].length){for(var jt=[],Dt=0;Dt<_[ut].length;Dt++)Dt!==lt&&jt.push(_[ut][Dt]);jt.length>1&&!(jt.length===2&&jt[1][0]==="Z")&&(lt===0&&(jt[0][0]="M"),_[ut]=jt,I(),V())}}function st(jt,Dt){if(jt===2){ut=+Dt.srcElement.getAttribute("data-i"),lt=+Dt.srcElement.getAttribute("data-j");var kt=_[ut];!y(kt)&&!c(kt)&&ot()}}function dt(jt){Q=[];for(var Dt=0;Dt<_.length;Dt++){var kt=_[Dt],Bt=y(kt),Ot=!Bt&&c(kt);Q[Dt]=[];for(var Ht=kt.length,ye=0;ye<Ht;ye++)if(kt[ye][0]!=="Z"&&!(Ot&&ye!==n&&ye!==o&&ye!==a&&ye!==s)){var Qt=Bt&&b.isActiveSelection,_e;Qt&&(_e=A(kt,ye));var ie=kt[ye][1],Ae=kt[ye][2],Pe=jt.append(Qt?"rect":"circle").attr("data-i",Dt).attr("data-j",ye).style({fill:l.background,stroke:l.defaultLine,"stroke-width":1,"shape-rendering":"crispEdges"});if(Qt){var Oe=_e[1]-ie,je=_e[2]-Ae,Le=je?5:Math.max(Math.min(25,Math.abs(Oe)-5),5),Ie=Oe?5:Math.max(Math.min(25,Math.abs(je)-5),5);Pe.classed(je?"cursor-ew-resize":"cursor-ns-resize",!0).attr("width",Le).attr("height",Ie).attr("x",ie-Le/2).attr("y",Ae-Ie/2).attr("transform",C(Oe/2,je/2))}else Pe.classed("cursor-grab",!0).attr("r",5).attr("cx",ie).attr("cy",Ae);Q[Dt][ye]={element:Pe.node(),gd:B,prepFn:ct,doneFn:Z,clickFn:st},r.init(Q[Dt][ye])}}}function xt(jt,Dt){if(_.length)for(var kt=0;kt<_.length;kt++)for(var Bt=0;Bt<_[kt].length;Bt++)for(var Ot=0;Ot+2<_[kt][Bt].length;Ot+=2)_[kt][Bt][Ot+1]=K[kt][Bt][Ot+1]+jt,_[kt][Bt][Ot+2]=K[kt][Bt][Ot+2]+Dt}function At(jt,Dt){xt(jt,Dt),I()}function St(jt){ut=+jt.srcElement.getAttribute("data-i"),ut||(ut=0),ft[ut].moveFn=At}function Nt(){V()}function Wt(jt){jt===2&&E(B)}function Vt(){if(ft=[],!!_.length){var jt=0;ft[jt]={element:L[0][0],gd:B,prepFn:St,doneFn:Nt,clickFn:Wt},r.init(ft[jt])}}};function g(d,_){for(var L=0;L<_.length;L++){var b=_[L];d[L]=[];for(var D=0;D<b.length;D++){d[L][D]=[];for(var B=0;B<b[D].length;B++)d[L][D][B]=b[D][B]}}return d}function A(d,_){var L=d[_][1],b=d[_][2],D=d.length,B,I,V;return B=(_+1)%D,I=d[B][1],V=d[B][2],I===L&&V===b&&(B=(_+2)%D,I=d[B][1],V=d[B][2]),[B,I,V]}function E(d){if(S(d._fullLayout.dragmode)){x(d);var _=d._fullLayout._activeSelectionIndex,L=(d.layout||{}).selections||[];if(_<L.length){for(var b=[],D=0;D<L.length;D++)D!==_&&b.push(L[D]);delete d._fullLayout._activeSelectionIndex;var B=d._fullLayout.selections[_];d._fullLayout._deselect={xref:B.xref,yref:B.yref},h.call("_guiRelayout",d,{selections:b})}}}},28231:function(nt,W,e){var M=e(45568),C=e(33626),r=e(34809),i=e(29714),w=e(81055).readPaths,S=e(561),h=e(44433),l=e(78534).clearOutlineControllers,t=e(78766),n=e(62203),o=e(78032).arrayEditor,a=e(14751),s=e(27983),u=e(2956),x=e(49728),m=x.getPathString;nt.exports={draw:y,drawOne:f,eraseActiveShape:E,drawLabel:h};function y(d){var _=d._fullLayout;_._shapeUpperLayer.selectAll("path").remove(),_._shapeLowerLayer.selectAll("path").remove(),_._shapeUpperLayer.selectAll("text").remove(),_._shapeLowerLayer.selectAll("text").remove();for(var L in _._plots){var b=_._plots[L].shapelayer;b&&(b.selectAll("path").remove(),b.selectAll("text").remove())}for(var D=0;D<_.shapes.length;D++)_.shapes[D].visible===!0&&f(d,D)}function c(d){return!!d._fullLayout._outlining}function p(d){return!d._context.edits.shapePosition}function f(d,_){d._fullLayout._paperdiv.selectAll('.shapelayer [data-index="'+_+'"]').remove();var L=x.makeShapesOptionsAndPlotinfo(d,_),b=L.options,D=L.plotinfo;if(!b._input||b.visible!==!0)return;if(b.layer==="above")I(d._fullLayout._shapeUpperLayer);else if(b.xref==="paper"||b.yref==="paper")I(d._fullLayout._shapeLowerLayer);else if(b.layer==="between")I(D.shapelayerBetween);else if(D._hadPlotinfo){var B=D.mainplotinfo||D;I(B.shapelayer)}else I(d._fullLayout._shapeLowerLayer);function I(V){var N=m(d,b),F={"data-index":_,"fill-rule":b.fillrule,d:N},U=b.opacity,G=b.fillcolor,Y=b.line.width?b.line.color:"rgba(0,0,0,0)",Q=b.line.width,ft=b.line.dash;!Q&&b.editable===!0&&(Q=5,ft="solid");var ut=N[N.length-1]!=="Z",lt=p(d)&&b.editable&&d._fullLayout._activeShapeIndex===_;lt&&(G=ut?"rgba(0,0,0,0)":d._fullLayout.activeshape.fillcolor,U=d._fullLayout.activeshape.opacity);var K=V.append("g").classed("shape-group",!0).attr({"data-index":_}),$=K.append("path").attr(F).style("opacity",U).call(t.stroke,Y).call(t.fill,G).call(n.dashLine,ft,Q);T(K,d,b),h(d,_,b,K);var H;if((lt||d._context.edits.shapePosition)&&(H=o(d.layout,"shapes",b)),lt){$.style({cursor:"move"});var at={element:$.node(),plotinfo:D,gd:d,editHelpers:H,hasText:b.label.text||b.label.texttemplate,isActiveShape:!0},ct=w(N,d);S(ct,$,at)}else d._context.edits.shapePosition?k(d,$,b,_,V,H):b.editable===!0&&$.style("pointer-events",ut||t.opacity(G)*U<=.5?"stroke":"all");$.node().addEventListener("click",function(){return g(d,$)})}}function T(d,_,L){var b=(L.xref+L.yref).replace(/paper/g,"").replace(/[xyz][1-9]* *domain/g,"");n.setClipUrl(d,b?"clip"+_._fullLayout._uid+b:null,_)}function k(d,_,L,b,D,B){var I=10,V=10,N=L.xsizemode==="pixel",F=L.ysizemode==="pixel",U=L.type==="line",G=L.type==="path",Y=B.modifyItem,Q,ft,ut,lt,K,$,H,at,ct,et,Z,ot,st,dt,xt,At=M.select(_.node().parentNode),St=i.getFromId(d,L.xref),Nt=i.getRefType(L.xref),Wt=i.getFromId(d,L.yref),Vt=i.getRefType(L.yref),jt=L.x0shift,Dt=L.x1shift,kt=L.y0shift,Bt=L.y1shift,Ot=function(Zt,ae){var vt=x.getDataToPixel(d,St,ae,!1,Nt);return vt(Zt)},Ht=function(Zt,ae){var vt=x.getDataToPixel(d,Wt,ae,!0,Vt);return vt(Zt)},ye=x.getPixelToData(d,St,!1,Nt),Qt=x.getPixelToData(d,Wt,!0,Vt),_e=Pe(),ie={element:_e.node(),gd:d,prepFn:Le,doneFn:Ie,clickFn:Ut},Ae;a.init(ie),_e.node().onmousemove=je;function Pe(){return U?Oe():_}function Oe(){var Zt=10,ae=Math.max(L.line.width,Zt),vt=D.append("g").attr("data-index",b).attr("drag-helper",!0);vt.append("path").attr("d",_.attr("d")).style({cursor:"move","stroke-width":ae,"stroke-opacity":"0"});var Mt={"fill-opacity":"0"},Lt=Math.max(ae/2,Zt);return vt.append("circle").attr({"data-line-point":"start-point",cx:N?Ot(L.xanchor)+L.x0:Ot(L.x0,jt),cy:F?Ht(L.yanchor)-L.y0:Ht(L.y0,kt),r:Lt}).style(Mt).classed("cursor-grab",!0),vt.append("circle").attr({"data-line-point":"end-point",cx:N?Ot(L.xanchor)+L.x1:Ot(L.x1,Dt),cy:F?Ht(L.yanchor)-L.y1:Ht(L.y1,Bt),r:Lt}).style(Mt).classed("cursor-grab",!0),vt}function je(Zt){if(c(d)){Ae=null;return}if(U)Zt.target.tagName==="path"?Ae="move":Ae=Zt.target.attributes["data-line-point"].value==="start-point"?"resize-over-start-point":"resize-over-end-point";else{var ae=ie.element.getBoundingClientRect(),vt=ae.right-ae.left,Mt=ae.bottom-ae.top,Lt=Zt.clientX-ae.left,$t=Zt.clientY-ae.top,ge=!G&&vt>I&&Mt>V&&!Zt.shiftKey?a.getCursor(Lt/vt,1-$t/Mt):"move";s(_,ge),Ae=ge.split("-")[0]}}function Le(Zt){c(d)||(N&&(K=Ot(L.xanchor)),F&&($=Ht(L.yanchor)),L.type==="path"?xt=L.path:(Q=N?L.x0:Ot(L.x0),ft=F?L.y0:Ht(L.y0),ut=N?L.x1:Ot(L.x1),lt=F?L.y1:Ht(L.y1)),Q<ut?(ct=Q,st="x0",et=ut,dt="x1"):(ct=ut,st="x1",et=Q,dt="x0"),!F&&ft<lt||F&&ft>lt?(H=ft,Z="y0",at=lt,ot="y1"):(H=lt,Z="y1",at=ft,ot="y0"),je(Zt),ne(D,L),qt(_,L,d),ie.moveFn=Ae==="move"?ee:Kt,ie.altKey=Zt.altKey)}function Ie(){c(d)||(s(_),zt(D),T(_,d,L),C.call("_guiRelayout",d,B.getUpdateObj()))}function Ut(){c(d)||zt(D)}function ee(Zt,ae){if(L.type==="path"){var vt=function($t){return $t},Mt=vt,Lt=vt;N?Y("xanchor",L.xanchor=ye(K+Zt)):(Mt=function($t){return ye(Ot($t)+Zt)},St&&St.type==="date"&&(Mt=x.encodeDate(Mt))),F?Y("yanchor",L.yanchor=Qt($+ae)):(Lt=function($t){return Qt(Ht($t)+ae)},Wt&&Wt.type==="date"&&(Lt=x.encodeDate(Lt))),Y("path",L.path=P(xt,Mt,Lt))}else N?Y("xanchor",L.xanchor=ye(K+Zt)):(Y("x0",L.x0=ye(Q+Zt)),Y("x1",L.x1=ye(ut+Zt))),F?Y("yanchor",L.yanchor=Qt($+ae)):(Y("y0",L.y0=Qt(ft+ae)),Y("y1",L.y1=Qt(lt+ae)));_.attr("d",m(d,L)),ne(D,L),h(d,b,L,At)}function Kt(Zt,ae){if(G){var vt=function(Ye){return Ye},Mt=vt,Lt=vt;N?Y("xanchor",L.xanchor=ye(K+Zt)):(Mt=function(Ye){return ye(Ot(Ye)+Zt)},St&&St.type==="date"&&(Mt=x.encodeDate(Mt))),F?Y("yanchor",L.yanchor=Qt($+ae)):(Lt=function(Ye){return Qt(Ht(Ye)+ae)},Wt&&Wt.type==="date"&&(Lt=x.encodeDate(Lt))),Y("path",L.path=P(xt,Mt,Lt))}else if(U){if(Ae==="resize-over-start-point"){var $t=Q+Zt,ge=F?ft-ae:ft+ae;Y("x0",L.x0=N?$t:ye($t)),Y("y0",L.y0=F?ge:Qt(ge))}else if(Ae==="resize-over-end-point"){var de=ut+Zt,sr=F?lt-ae:lt+ae;Y("x1",L.x1=N?de:ye(de)),Y("y1",L.y1=F?sr:Qt(sr))}}else{var mr=function(Ye){return Ae.indexOf(Ye)!==-1},Ve=mr("n"),le=mr("s"),pe=mr("w"),Te=mr("e"),Yt=Ve?H+ae:H,Ee=le?at+ae:at,Ne=pe?ct+Zt:ct,ar=Te?et+Zt:et;F&&(Ve&&(Yt=H-ae),le&&(Ee=at-ae)),(!F&&Ee-Yt>V||F&&Yt-Ee>V)&&(Y(Z,L[Z]=F?Yt:Qt(Yt)),Y(ot,L[ot]=F?Ee:Qt(Ee))),ar-Ne>I&&(Y(st,L[st]=N?Ne:ye(Ne)),Y(dt,L[dt]=N?ar:ye(ar)))}_.attr("d",m(d,L)),ne(D,L),h(d,b,L,At)}function ne(Zt,ae){(N||F)&&vt();function vt(){var Mt=ae.type!=="path",Lt=Zt.selectAll(".visual-cue").data([0]),$t=1;Lt.enter().append("path").attr({fill:"#fff","fill-rule":"evenodd",stroke:"#000","stroke-width":$t}).classed("visual-cue",!0);var ge=Ot(N?ae.xanchor:r.midRange(Mt?[ae.x0,ae.x1]:x.extractPathCoords(ae.path,u.paramIsX))),de=Ht(F?ae.yanchor:r.midRange(Mt?[ae.y0,ae.y1]:x.extractPathCoords(ae.path,u.paramIsY)));if(ge=x.roundPositionForSharpStrokeRendering(ge,$t),de=x.roundPositionForSharpStrokeRendering(de,$t),N&&F){var sr="M"+(ge-1-$t)+","+(de-1-$t)+"h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z";Lt.attr("d",sr)}else if(N){var mr="M"+(ge-1-$t)+","+(de-9-$t)+"v18 h2 v-18 Z";Lt.attr("d",mr)}else{var Ve="M"+(ge-9-$t)+","+(de-1-$t)+"h18 v2 h-18 Z";Lt.attr("d",Ve)}}}function zt(Zt){Zt.selectAll(".visual-cue").remove()}function qt(Zt,ae,vt){var Mt=ae.xref,Lt=ae.yref,$t=i.getFromId(vt,Mt),ge=i.getFromId(vt,Lt),de="";Mt!=="paper"&&!$t.autorange&&(de+=Mt),Lt!=="paper"&&!ge.autorange&&(de+=Lt),n.setClipUrl(Zt,de?"clip"+vt._fullLayout._uid+de:null,vt)}}function P(d,_,L){return d.replace(u.segmentRE,function(b){var D=0,B=b.charAt(0),I=u.paramIsX[B],V=u.paramIsY[B],N=u.numParams[B],F=b.substr(1).replace(u.paramRE,function(U){return D>=N||(I[D]?U=_(U):V[D]&&(U=L(U)),D++),U});return B+F})}function g(d,_){if(p(d)){var L=_.node(),b=+L.getAttribute("data-index");if(b>=0){if(b===d._fullLayout._activeShapeIndex){A(d);return}d._fullLayout._activeShapeIndex=b,d._fullLayout._deactivateShape=A,y(d)}}}function A(d){if(p(d)){var _=d._fullLayout._activeShapeIndex;_>=0&&(l(d),delete d._fullLayout._activeShapeIndex,y(d))}}function E(d){if(p(d)){l(d);var _=d._fullLayout._activeShapeIndex,L=(d.layout||{}).shapes||[];if(_<L.length){for(var b=[],D=0;D<L.length;D++)D!==_&&b.push(L[D]);return delete d._fullLayout._activeShapeIndex,C.call("_guiRelayout",d,{shapes:b})}}}},64101:function(nt,W,e){var M=e(13582).overrideAll,C=e(9829),r=e(80337),i=e(94850).T,w=e(93049).extendFlat,S=e(3208).LF,h=e(41235);nt.exports=M({newshape:{visible:w({},C.visible,{}),showlegend:{valType:"boolean",dflt:!1},legend:w({},C.legend,{}),legendgroup:w({},C.legendgroup,{}),legendgrouptitle:{text:w({},C.legendgrouptitle.text,{}),font:r({})},legendrank:w({},C.legendrank,{}),legendwidth:w({},C.legendwidth,{}),line:{color:{valType:"color"},width:{valType:"number",min:0,dflt:4},dash:w({},i,{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:w({},C.name,{}),label:{text:{valType:"string",dflt:""},texttemplate:S({newshape:!0},{keys:Object.keys(h)}),font:r({}),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")},93391:function(nt){var W=32;nt.exports={CIRCLE_SIDES:W,i000:0,i090:W/4,i180:W/2,i270:W/4*3,cos45:Math.cos(Math.PI/4),sin45:Math.sin(Math.PI/4),SQRT2:Math.sqrt(2)}},85522:function(nt,W,e){var M=e(78766),C=e(34809);function r(i,w){return i?"bottom":w.indexOf("top")!==-1?"top":w.indexOf("bottom")!==-1?"bottom":"middle"}nt.exports=function(i,w,S){S("newshape.visible"),S("newshape.name"),S("newshape.showlegend"),S("newshape.legend"),S("newshape.legendwidth"),S("newshape.legendgroup"),S("newshape.legendgrouptitle.text"),C.coerceFont(S,"newshape.legendgrouptitle.font"),S("newshape.legendrank"),S("newshape.drawdirection"),S("newshape.layer"),S("newshape.fillcolor"),S("newshape.fillrule"),S("newshape.opacity");var h=S("newshape.line.width");if(h){var l=(i||{}).plot_bgcolor||"#FFF";S("newshape.line.color",M.contrast(l)),S("newshape.line.dash")}var t=i.dragmode==="drawline",n=S("newshape.label.text"),o=S("newshape.label.texttemplate");if(n||o){S("newshape.label.textangle");var a=S("newshape.label.textposition",t?"middle":"middle center");S("newshape.label.xanchor"),S("newshape.label.yanchor",r(t,a)),S("newshape.label.padding"),C.coerceFont(S,"newshape.label.font",w.font)}S("activeshape.fillcolor"),S("activeshape.opacity")}},81055:function(nt,W,e){var M=e(26953),C=e(93391),r=C.CIRCLE_SIDES,i=C.SQRT2,w=e(49801),S=w.p2r,h=w.r2p,l=[0,3,4,5,6,1,2],t=[0,3,4,1,2];W.writePaths=function(a){var s=a.length;if(!s)return"M0,0Z";for(var u="",x=0;x<s;x++)for(var m=a[x].length,y=0;y<m;y++){var c=a[x][y][0];if(c==="Z")u+="Z";else for(var p=a[x][y].length,f=0;f<p;f++){var T=f;c==="Q"||c==="S"?T=t[f]:c==="C"&&(T=l[f]),u+=a[x][y][T],f>0&&f<p-1&&(u+=",")}}return u},W.readPaths=function(a,s,u,x){var m=M(a),y=[],c=-1,p=function(){c++,y[c]=[]},f,T=0,k=0,P,g,A=function(){P=T,g=k};A();for(var E=0;E<m.length;E++){var d=[],_,L,b,D,B=m[E][0],I=B;switch(B){case"M":p(),T=+m[E][1],k=+m[E][2],d.push([I,T,k]),A();break;case"Q":case"S":_=+m[E][1],b=+m[E][2],T=+m[E][3],k=+m[E][4],d.push([I,T,k,_,b]);break;case"C":_=+m[E][1],b=+m[E][2],L=+m[E][3],D=+m[E][4],T=+m[E][5],k=+m[E][6],d.push([I,T,k,_,b,L,D]);break;case"T":case"L":T=+m[E][1],k=+m[E][2],d.push([I,T,k]);break;case"H":I="L",T=+m[E][1],d.push([I,T,k]);break;case"V":I="L",k=+m[E][1],d.push([I,T,k]);break;case"A":I="L";var V=+m[E][1],N=+m[E][2];+m[E][4]||(V=-V,N=-N);var F=T-V,U=k;for(f=1;f<=r/2;f++){var G=2*Math.PI*f/r;d.push([I,F+V*Math.cos(G),U+N*Math.sin(G)])}break;case"Z":(T!==P||k!==g)&&(T=P,k=g,d.push([I,T,k]));break}for(var Y=(u||{}).domain,Q=s._fullLayout._size,ft=u&&u.xsizemode==="pixel",ut=u&&u.ysizemode==="pixel",lt=x===!1,K=0;K<d.length;K++){for(f=0;f+2<7;f+=2){var $=d[K][f+1],H=d[K][f+2];$===void 0||H===void 0||(T=$,k=H,u&&(u.xaxis&&u.xaxis.p2r?(lt&&($-=u.xaxis._offset),ft?$=h(u.xaxis,u.xanchor)+$:$=S(u.xaxis,$)):(lt&&($-=Q.l),Y?$=Y.x[0]+$/Q.w:$=$/Q.w),u.yaxis&&u.yaxis.p2r?(lt&&(H-=u.yaxis._offset),ut?H=h(u.yaxis,u.yanchor)-H:H=S(u.yaxis,H)):(lt&&(H-=Q.t),Y?H=Y.y[1]-H/Q.h:H=1-H/Q.h)),d[K][f+1]=$,d[K][f+2]=H)}y[c].push(d[K].slice())}}return y};function n(a,s){return Math.abs(a-s)<=1e-6}function o(a,s){var u=s[1]-a[1],x=s[2]-a[2];return Math.sqrt(u*u+x*x)}W.pointsOnRectangle=function(a){var s=a.length;if(s!==5)return!1;for(var u=1;u<3;u++){var x=a[0][u]-a[1][u],m=a[3][u]-a[2][u];if(!n(x,m))return!1;var y=a[0][u]-a[3][u],c=a[1][u]-a[2][u];if(!n(y,c))return!1}return!n(a[0][1],a[1][1])&&!n(a[0][1],a[3][1])?!1:!!(o(a[0],a[1])*o(a[0],a[3]))},W.pointsOnEllipse=function(a){var s=a.length;if(s!==r+1)return!1;s=r;for(var u=0;u<s;u++){var x=(s*2-u)%s,m=(s/2+x)%s,y=(s/2+u)%s;if(!n(o(a[u],a[y]),o(a[x],a[m])))return!1}return!0},W.handleEllipse=function(a,s,u){if(!a)return[s,u];var x=W.ellipseOver({x0:s[0],y0:s[1],x1:u[0],y1:u[1]}),m=(x.x1+x.x0)/2,y=(x.y1+x.y0)/2,c=(x.x1-x.x0)/2,p=(x.y1-x.y0)/2;c||(c=p=p/i),p||(p=c=c/i);for(var f=[],T=0;T<r;T++){var k=T*2*Math.PI/r;f.push([m+c*Math.cos(k),y+p*Math.sin(k)])}return f},W.ellipseOver=function(a){var s=a.x0,u=a.y0,x=a.x1,m=a.y1,y=x-s,c=m-u;s-=y,u-=c;var p=(s+x)/2,f=(u+m)/2,T=i;return y*=T,c*=T,{x0:p-y,y0:f-c,x1:p+y,y1:f+c}},W.fixDatesForPaths=function(a,s,u){var x=s.type==="date",m=u.type==="date";if(!x&&!m)return a;for(var y=0;y<a.length;y++)for(var c=0;c<a[y].length;c++)for(var p=0;p+2<a[y][c].length;p+=2)x&&(a[y][c][p+1]=a[y][c][p+1].replace(" ","_")),m&&(a[y][c][p+2]=a[y][c][p+2].replace(" ","_"));return a}},87562:function(nt,W,e){var M=e(70414),C=M.drawMode,r=M.openMode,i=e(93391),w=i.i000,S=i.i090,h=i.i180,l=i.i270,t=i.cos45,n=i.sin45,o=e(49801),a=o.p2r,s=o.r2p,u=e(78534),x=u.clearOutline,m=e(81055),y=m.readPaths,c=m.writePaths,p=m.ellipseOver,f=m.fixDatesForPaths;function T(P,g){if(P.length){var A=P[0][0];if(A){var E=g.gd,d=g.isActiveShape,_=g.dragmode,L=(E.layout||{}).shapes||[];if(!C(_)&&d!==void 0){var b=E._fullLayout._activeShapeIndex;if(b<L.length)switch(E._fullLayout.shapes[b].type){case"rect":_="drawrect";break;case"circle":_="drawcircle";break;case"line":_="drawline";break;case"path":var D=L[b].path||"";D[D.length-1]==="Z"?_="drawclosedpath":_="drawopenpath";break}}var B=k(P,g,_);x(E);for(var I=g.editHelpers,V=(I||{}).modifyItem,N=[],F=0;F<L.length;F++){var U=E._fullLayout.shapes[F];if(N[F]=U._input,d!==void 0&&F===E._fullLayout._activeShapeIndex){var G=B;switch(U.type){case"line":case"rect":case"circle":V("x0",G.x0-(U.x0shift||0)),V("x1",G.x1-(U.x1shift||0)),V("y0",G.y0-(U.y0shift||0)),V("y1",G.y1-(U.y1shift||0));break;case"path":V("path",G.path);break}}}return d===void 0?(N.push(B),N):I?I.getUpdateObj():{}}}}function k(P,g,A){var E=P[0][0],d=g.gd,_=E.getAttribute("d"),L=d._fullLayout.newshape,b=g.plotinfo,D=g.isActiveShape,B=b.xaxis,I=b.yaxis,V=!!b.domain||!b.xaxis,N=!!b.domain||!b.yaxis,F=r(A),U=y(_,d,b,D),G={editable:!0,visible:L.visible,name:L.name,showlegend:L.showlegend,legend:L.legend,legendwidth:L.legendwidth,legendgroup:L.legendgroup,legendgrouptitle:{text:L.legendgrouptitle.text,font:L.legendgrouptitle.font},legendrank:L.legendrank,label:L.label,xref:V?"paper":B._id,yref:N?"paper":I._id,layer:L.layer,opacity:L.opacity,line:{color:L.line.color,width:L.line.width,dash:L.line.dash}};F||(G.fillcolor=L.fillcolor,G.fillrule=L.fillrule);var Y;if(U.length===1&&(Y=U[0]),Y&&Y.length===5&&A==="drawrect")G.type="rect",G.x0=Y[0][1],G.y0=Y[0][2],G.x1=Y[2][1],G.y1=Y[2][2];else if(Y&&A==="drawline")G.type="line",G.x0=Y[0][1],G.y0=Y[0][2],G.x1=Y[1][1],G.y1=Y[1][2];else if(Y&&A==="drawcircle"){G.type="circle";var Q=Y[w][1],ft=Y[S][1],ut=Y[h][1],lt=Y[l][1],K=Y[w][2],$=Y[S][2],H=Y[h][2],at=Y[l][2],ct=b.xaxis&&(b.xaxis.type==="date"||b.xaxis.type==="log"),et=b.yaxis&&(b.yaxis.type==="date"||b.yaxis.type==="log");ct&&(Q=s(b.xaxis,Q),ft=s(b.xaxis,ft),ut=s(b.xaxis,ut),lt=s(b.xaxis,lt)),et&&(K=s(b.yaxis,K),$=s(b.yaxis,$),H=s(b.yaxis,H),at=s(b.yaxis,at));var Z=(ft+lt)/2,ot=(K+H)/2,st=(lt-ft+ut-Q)/2,dt=(at-$+H-K)/2,xt=p({x0:Z,y0:ot,x1:Z+st*t,y1:ot+dt*n});ct&&(xt.x0=a(b.xaxis,xt.x0),xt.x1=a(b.xaxis,xt.x1)),et&&(xt.y0=a(b.yaxis,xt.y0),xt.y1=a(b.yaxis,xt.y1)),G.x0=xt.x0,G.y0=xt.y0,G.x1=xt.x1,G.y1=xt.y1}else G.type="path",B&&I&&f(U,B,I),G.path=c(U),Y=null;return G}nt.exports={newShapes:T,createShapeObj:k}},78534:function(nt){function W(M){var C=M._fullLayout._zoomlayer;C&&C.selectAll(".outline-controllers").remove()}function e(M){var C=M._fullLayout._zoomlayer;C&&C.selectAll(".select-outline").remove(),M._fullLayout._outlining=!1}nt.exports={clearOutlineControllers:W,clearOutline:e}},49728:function(nt,W,e){var M=e(2956),C=e(34809),r=e(29714);W.rangeToShapePosition=function(S){return S.type==="log"?S.r2d:function(h){return h}},W.shapePositionToRange=function(S){return S.type==="log"?S.d2r:function(h){return h}},W.decodeDate=function(S){return function(h){return h.replace&&(h=h.replace("_"," ")),S(h)}},W.encodeDate=function(S){return function(h){return S(h).replace(" ","_")}},W.extractPathCoords=function(S,h,l){var t=[],n=S.match(M.segmentRE);return n.forEach(function(o){var a=h[o.charAt(0)].drawn;if(a!==void 0){var s=o.substr(1).match(M.paramRE);if(!(!s||s.length<a)){var u=s[a],x=l?u:C.cleanNumber(u);t.push(x)}}}),t},W.getDataToPixel=function(S,h,l,t,n){var o=S._fullLayout._size,a;if(h)if(n==="domain")a=function(u){return h._length*(t?1-u:u)+h._offset};else{var s=W.shapePositionToRange(h);a=function(u){var x=w(h,l);return h._offset+h.r2p(s(u,!0))+x},h.type==="date"&&(a=W.decodeDate(a))}else t?a=function(u){return o.t+o.h*(1-u)}:a=function(u){return o.l+o.w*u};return a},W.getPixelToData=function(S,h,l,t){var n=S._fullLayout._size,o;if(h)if(t==="domain")o=function(s){var u=(s-h._offset)/h._length;return l?1-u:u};else{var a=W.rangeToShapePosition(h);o=function(s){return a(h.p2r(s-h._offset))}}else l?o=function(s){return 1-(s-n.t)/n.h}:o=function(s){return(s-n.l)/n.w};return o},W.roundPositionForSharpStrokeRendering=function(S,h){var l=Math.round(h%2)===1,t=Math.round(S);return l?t+.5:t},W.makeShapesOptionsAndPlotinfo=function(S,h){var l=S._fullLayout.shapes[h]||{},t=S._fullLayout._plots[l.xref+l.yref],n=!!t;return n?t._hadPlotinfo=!0:(t={},l.xref&&l.xref!=="paper"&&(t.xaxis=S._fullLayout[l.xref+"axis"]),l.yref&&l.yref!=="paper"&&(t.yaxis=S._fullLayout[l.yref+"axis"])),t.xsizemode=l.xsizemode,t.ysizemode=l.ysizemode,t.xanchor=l.xanchor,t.yanchor=l.yanchor,{options:l,plotinfo:t}},W.makeSelectionsOptionsAndPlotinfo=function(S,h){var l=S._fullLayout.selections[h]||{},t=S._fullLayout._plots[l.xref+l.yref],n=!!t;return n?t._hadPlotinfo=!0:(t={},l.xref&&(t.xaxis=S._fullLayout[l.xref+"axis"]),l.yref&&(t.yaxis=S._fullLayout[l.yref+"axis"])),{options:l,plotinfo:t}},W.getPathString=function(S,h){var l=h.type,t=r.getRefType(h.xref),n=r.getRefType(h.yref),o=r.getFromId(S,h.xref),a=r.getFromId(S,h.yref),s=S._fullLayout._size,u,x,m,y,c=w(o,h.x0shift),p=w(o,h.x1shift),f=w(a,h.y0shift),T=w(a,h.y1shift),k,P,g,A;if(o?t==="domain"?x=function(N){return o._offset+o._length*N}:(u=W.shapePositionToRange(o),x=function(N){return o._offset+o.r2p(u(N,!0))}):x=function(N){return s.l+s.w*N},a?n==="domain"?y=function(N){return a._offset+a._length*(1-N)}:(m=W.shapePositionToRange(a),y=function(N){return a._offset+a.r2p(m(N,!0))}):y=function(N){return s.t+s.h*(1-N)},l==="path")return o&&o.type==="date"&&(x=W.decodeDate(x)),a&&a.type==="date"&&(y=W.decodeDate(y)),i(h,x,y);if(h.xsizemode==="pixel"){var E=x(h.xanchor);k=E+h.x0+c,P=E+h.x1+p}else k=x(h.x0)+c,P=x(h.x1)+p;if(h.ysizemode==="pixel"){var d=y(h.yanchor);g=d-h.y0+f,A=d-h.y1+T}else g=y(h.y0)+f,A=y(h.y1)+T;if(l==="line")return"M"+k+","+g+"L"+P+","+A;if(l==="rect")return"M"+k+","+g+"H"+P+"V"+A+"H"+k+"Z";var _=(k+P)/2,L=(g+A)/2,b=Math.abs(_-k),D=Math.abs(L-g),B="A"+b+","+D,I=_+b+","+L,V=_+","+(L-D);return"M"+I+B+" 0 1,1 "+V+B+" 0 0,1 "+I+"Z"};function i(S,h,l){var t=S.path,n=S.xsizemode,o=S.ysizemode,a=S.xanchor,s=S.yanchor;return t.replace(M.segmentRE,function(u){var x=0,m=u.charAt(0),y=M.paramIsX[m],c=M.paramIsY[m],p=M.numParams[m],f=u.substr(1).replace(M.paramRE,function(T){return y[x]?n==="pixel"?T=h(a)+Number(T):T=h(T):c[x]&&(o==="pixel"?T=l(s)-Number(T):T=l(T)),x++,x>p&&(T="X"),T});return x>p&&(f=f.replace(/[\s,]*X.*/,""),C.log("Ignoring extra params in segment "+u)),m+f})}function w(S,h){h=h||0;var l=0;return h&&S&&(S.type==="category"||S.type==="multicategory")&&(l=(S.r2p(1)-S.r2p(0))*h),l}},43701:function(nt,W,e){var M=e(28231);nt.exports={moduleType:"component",name:"shapes",layoutAttributes:e(43144),supplyLayoutDefaults:e(74367),supplyDrawNewShapeDefaults:e(85522),includeBasePlot:e(20706)("shapes"),calcAutorange:e(44959),draw:M.draw,drawOne:M.drawOne}},41235:function(nt){function W(y,c){return c?c.d2l(y):y}function e(y,c){return c?c.l2d(y):y}function M(y){return y.x0}function C(y){return y.x1}function r(y){return y.y0}function i(y){return y.y1}function w(y){return y.x0shift||0}function S(y){return y.x1shift||0}function h(y){return y.y0shift||0}function l(y){return y.y1shift||0}function t(y,c){return W(y.x1,c)+S(y)-W(y.x0,c)-w(y)}function n(y,c,p){return W(y.y1,p)+l(y)-W(y.y0,p)-h(y)}function o(y,c){return Math.abs(t(y,c))}function a(y,c,p){return Math.abs(n(y,c,p))}function s(y,c,p){return y.type!=="line"?void 0:Math.sqrt(Math.pow(t(y,c),2)+Math.pow(n(y,c,p),2))}function u(y,c){return e((W(y.x1,c)+S(y)+W(y.x0,c)+w(y))/2,c)}function x(y,c,p){return e((W(y.y1,p)+l(y)+W(y.y0,p)+h(y))/2,p)}function m(y,c,p){return y.type!=="line"?void 0:n(y,c,p)/t(y,c)}nt.exports={x0:M,x1:C,y0:r,y1:i,slope:m,dx:t,dy:n,width:o,height:a,length:s,xcenter:u,ycenter:x}},8606:function(nt,W,e){var M=e(80337),C=e(57891),r=e(93049).extendDeepAll,i=e(13582).overrideAll,w=e(49722),S=e(78032).templatedArray,h=e(64194),l=S("step",{visible:{valType:"boolean",dflt:!0},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string"},value:{valType:"string"},execute:{valType:"boolean",dflt:!0}});nt.exports=i(S("slider",{visible:{valType:"boolean",dflt:!0},active:{valType:"number",min:0,dflt:0},steps:l,lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction"},len:{valType:"number",min:0,dflt:1},x:{valType:"number",min:-2,max:3,dflt:0},pad:r(C({editType:"arraydraw"}),{},{t:{dflt:20}}),xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left"},y:{valType:"number",min:-2,max:3,dflt:0},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},transition:{duration:{valType:"number",min:0,dflt:150},easing:{valType:"enumerated",values:w.transition.easing.values,dflt:"cubic-in-out"}},currentvalue:{visible:{valType:"boolean",dflt:!0},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left"},offset:{valType:"number",dflt:10},prefix:{valType:"string"},suffix:{valType:"string"},font:M({})},font:M({}),activebgcolor:{valType:"color",dflt:h.gripBgActiveColor},bgcolor:{valType:"color",dflt:h.railBgColor},bordercolor:{valType:"color",dflt:h.railBorderColor},borderwidth:{valType:"number",min:0,dflt:h.railBorderWidth},ticklen:{valType:"number",min:0,dflt:h.tickLength},tickcolor:{valType:"color",dflt:h.tickColor},tickwidth:{valType:"number",min:0,dflt:1},minorticklen:{valType:"number",min:0,dflt:h.minorTickLength}}),"arraydraw","from-root")},64194:function(nt){nt.exports={name:"sliders",containerClassName:"slider-container",groupClassName:"slider-group",inputAreaClass:"slider-input-area",railRectClass:"slider-rail-rect",railTouchRectClass:"slider-rail-touch-rect",gripRectClass:"slider-grip-rect",tickRectClass:"slider-tick-rect",inputProxyClass:"slider-input-proxy",labelsClass:"slider-labels",labelGroupClass:"slider-label-group",labelClass:"slider-label",currentValueClass:"slider-current-value",railHeight:5,menuIndexAttrName:"slider-active-index",autoMarginIdRoot:"slider-",minWidth:30,minHeight:30,textPadX:40,arrowOffsetX:4,railRadius:2,railWidth:5,railBorder:4,railBorderWidth:1,railBorderColor:"#bec8d9",railBgColor:"#f8fafc",railInset:8,stepInset:10,gripRadius:10,gripWidth:20,gripHeight:20,gripBorder:20,gripBorderWidth:1,gripBorderColor:"#bec8d9",gripBgColor:"#f6f8fa",gripBgActiveColor:"#dbdde0",labelPadding:8,labelOffset:0,tickWidth:1,tickColor:"#333",tickOffset:25,tickLength:7,minorTickOffset:25,minorTickColor:"#333",minorTickLength:4,currentValuePadding:8,currentValueInset:0}},74537:function(nt,W,e){var M=e(34809),C=e(59008),r=e(8606),i=e(64194),w=i.name,S=r.steps;nt.exports=function(t,n){C(t,n,{name:w,handleItemDefaults:h})};function h(t,n,o){function a(f,T){return M.coerce(t,n,r,f,T)}for(var s=C(t,n,{name:"steps",handleItemDefaults:l}),u=0,x=0;x<s.length;x++)s[x].visible&&u++;var m;if(u<2?m=n.visible=!1:m=a("visible"),!!m){n._stepCount=u;var y=n._visibleSteps=M.filterVisible(s),c=a("active");(s[c]||{}).visible||(n.active=y[0]._index),a("x"),a("y"),M.noneOrAll(t,n,["x","y"]),a("xanchor"),a("yanchor"),a("len"),a("lenmode"),a("pad.t"),a("pad.r"),a("pad.b"),a("pad.l"),M.coerceFont(a,"font",o.font);var p=a("currentvalue.visible");p&&(a("currentvalue.xanchor"),a("currentvalue.prefix"),a("currentvalue.suffix"),a("currentvalue.offset"),M.coerceFont(a,"currentvalue.font",n.font)),a("transition.duration"),a("transition.easing"),a("bgcolor"),a("activebgcolor"),a("bordercolor"),a("borderwidth"),a("ticklen"),a("tickwidth"),a("tickcolor"),a("minorticklen")}}function l(t,n){function o(u,x){return M.coerce(t,n,S,u,x)}var a;if(t.method!=="skip"&&!Array.isArray(t.args)?a=n.visible=!1:a=o("visible"),a){o("method"),o("args");var s=o("label","step-"+n._index);o("value",s),o("execute")}}},44097:function(nt,W,e){var M=e(45568),C=e(44122),r=e(78766),i=e(62203),w=e(34809),S=w.strTranslate,h=e(30635),l=e(78032).arrayEditor,t=e(64194),n=e(4530),o=n.LINE_SPACING,a=n.FROM_TL,s=n.FROM_BR;nt.exports=function(I){var V=I._context.staticPlot,N=I._fullLayout,F=x(N,I),U=N._infolayer.selectAll("g."+t.containerClassName).data(F.length>0?[0]:[]);U.enter().append("g").classed(t.containerClassName,!0).style("cursor",V?null:"ew-resize");function G(ut){ut._commandObserver&&(ut._commandObserver.remove(),delete ut._commandObserver),C.autoMargin(I,u(ut))}if(U.exit().each(function(){M.select(this).selectAll("g."+t.groupClassName).each(G)}).remove(),F.length!==0){var Y=U.selectAll("g."+t.groupClassName).data(F,m);Y.enter().append("g").classed(t.groupClassName,!0),Y.exit().each(G).remove();for(var Q=0;Q<F.length;Q++){var ft=F[Q];y(I,ft)}Y.each(function(ut){var lt=M.select(this);d(ut),C.manageCommandObserver(I,ut,ut._visibleSteps,function(K){var $=lt.data()[0];$.active!==K.index&&($._dragging||g(I,lt,$,K.index,!1,!0))}),c(I,M.select(this),ut)})}};function u(I){return t.autoMarginIdRoot+I._index}function x(I,V){for(var N=I[t.name],F=[],U=0;U<N.length;U++){var G=N[U];G.visible&&(G._gd=V,F.push(G))}return F}function m(I){return I._index}function y(I,V){var N=i.tester.selectAll("g."+t.labelGroupClass).data(V._visibleSteps);N.enter().append("g").classed(t.labelGroupClass,!0);var F=0,U=0;N.each(function(at){var ct=M.select(this),et=T(ct,{step:at},V),Z=et.node();if(Z){var ot=i.bBox(Z);U=Math.max(U,ot.height),F=Math.max(F,ot.width)}}),N.remove();var G=V._dims={};G.inputAreaWidth=Math.max(t.railWidth,t.gripHeight);var Y=I._fullLayout._size;G.lx=Y.l+Y.w*V.x,G.ly=Y.t+Y.h*(1-V.y),V.lenmode==="fraction"?G.outerLength=Math.round(Y.w*V.len):G.outerLength=V.len,G.inputAreaStart=0,G.inputAreaLength=Math.round(G.outerLength-V.pad.l-V.pad.r);var Q=G.inputAreaLength-2*t.stepInset,ft=Q/(V._stepCount-1),ut=F+t.labelPadding;if(G.labelStride=Math.max(1,Math.ceil(ut/ft)),G.labelHeight=U,G.currentValueMaxWidth=0,G.currentValueHeight=0,G.currentValueTotalHeight=0,G.currentValueMaxLines=1,V.currentvalue.visible){var lt=i.tester.append("g");N.each(function(at){var ct=p(lt,V,at.label),et=ct.node()&&i.bBox(ct.node())||{width:0,height:0},Z=h.lineCount(ct);G.currentValueMaxWidth=Math.max(G.currentValueMaxWidth,Math.ceil(et.width)),G.currentValueHeight=Math.max(G.currentValueHeight,Math.ceil(et.height)),G.currentValueMaxLines=Math.max(G.currentValueMaxLines,Z)}),G.currentValueTotalHeight=G.currentValueHeight+V.currentvalue.offset,lt.remove()}G.height=G.currentValueTotalHeight+t.tickOffset+V.ticklen+t.labelOffset+G.labelHeight+V.pad.t+V.pad.b;var K="left";w.isRightAnchor(V)&&(G.lx-=G.outerLength,K="right"),w.isCenterAnchor(V)&&(G.lx-=G.outerLength/2,K="center");var $="top";w.isBottomAnchor(V)&&(G.ly-=G.height,$="bottom"),w.isMiddleAnchor(V)&&(G.ly-=G.height/2,$="middle"),G.outerLength=Math.ceil(G.outerLength),G.height=Math.ceil(G.height),G.lx=Math.round(G.lx),G.ly=Math.round(G.ly);var H={y:V.y,b:G.height*s[$],t:G.height*a[$]};V.lenmode==="fraction"?(H.l=0,H.xl=V.x-V.len*a[K],H.r=0,H.xr=V.x+V.len*s[K]):(H.x=V.x,H.l=G.outerLength*a[K],H.r=G.outerLength*s[K]),C.autoMargin(I,u(V),H)}function c(I,V,N){(N.steps[N.active]||{}).visible||(N.active=N._visibleSteps[0]._index),V.call(p,N).call(B,N).call(k,N).call(E,N).call(D,I,N).call(f,I,N);var F=N._dims;i.setTranslate(V,F.lx+N.pad.l,F.ly+N.pad.t),V.call(_,N,!1),V.call(p,N)}function p(I,V,N){if(V.currentvalue.visible){var F=V._dims,U,G;switch(V.currentvalue.xanchor){case"right":U=F.inputAreaLength-t.currentValueInset-F.currentValueMaxWidth,G="left";break;case"center":U=F.inputAreaLength*.5,G="middle";break;default:U=t.currentValueInset,G="left"}var Y=w.ensureSingle(I,"text",t.labelClass,function($){$.attr({"text-anchor":G,"data-notex":1})}),Q=V.currentvalue.prefix?V.currentvalue.prefix:"";if(typeof N=="string")Q+=N;else{var ft=V.steps[V.active].label,ut=V._gd._fullLayout._meta;ut&&(ft=w.templateString(ft,ut)),Q+=ft}V.currentvalue.suffix&&(Q+=V.currentvalue.suffix),Y.call(i.font,V.currentvalue.font).text(Q).call(h.convertToTspans,V._gd);var lt=h.lineCount(Y),K=(F.currentValueMaxLines+1-lt)*V.currentvalue.font.size*o;return h.positionText(Y,U,K),Y}}function f(I,V,N){var F=w.ensureSingle(I,"rect",t.gripRectClass,function(U){U.call(A,V,I,N).style("pointer-events","all")});F.attr({width:t.gripWidth,height:t.gripHeight,rx:t.gripRadius,ry:t.gripRadius}).call(r.stroke,N.bordercolor).call(r.fill,N.bgcolor).style("stroke-width",N.borderwidth+"px")}function T(I,V,N){var F=w.ensureSingle(I,"text",t.labelClass,function(Y){Y.attr({"text-anchor":"middle","data-notex":1})}),U=V.step.label,G=N._gd._fullLayout._meta;return G&&(U=w.templateString(U,G)),F.call(i.font,N.font).text(U).call(h.convertToTspans,N._gd),F}function k(I,V){var N=w.ensureSingle(I,"g",t.labelsClass),F=V._dims,U=N.selectAll("g."+t.labelGroupClass).data(F.labelSteps);U.enter().append("g").classed(t.labelGroupClass,!0),U.exit().remove(),U.each(function(G){var Y=M.select(this);Y.call(T,G,V),i.setTranslate(Y,L(V,G.fraction),t.tickOffset+V.ticklen+V.font.size*o+t.labelOffset+F.currentValueTotalHeight)})}function P(I,V,N,F,U){var G=Math.round(F*(N._stepCount-1)),Y=N._visibleSteps[G]._index;Y!==N.active&&g(I,V,N,Y,!0,U)}function g(I,V,N,F,U,G){var Y=N.active;N.active=F,l(I.layout,t.name,N).applyUpdate("active",F);var Q=N.steps[N.active];V.call(_,N,G),V.call(p,N),I.emit("plotly_sliderchange",{slider:N,step:N.steps[N.active],interaction:U,previousActive:Y}),Q&&Q.method&&U&&(V._nextMethod?(V._nextMethod.step=Q,V._nextMethod.doCallback=U,V._nextMethod.doTransition=G):(V._nextMethod={step:Q,doCallback:U,doTransition:G},V._nextMethodRaf=window.requestAnimationFrame(function(){var ft=V._nextMethod.step;ft.method&&(ft.execute&&C.executeAPICommand(I,ft.method,ft.args),V._nextMethod=null,V._nextMethodRaf=null)})))}function A(I,V,N){if(V._context.staticPlot)return;var F=N.node(),U=M.select(V);function G(){return N.data()[0]}function Y(){var Q=G();V.emit("plotly_sliderstart",{slider:Q});var ft=N.select("."+t.gripRectClass);M.event.stopPropagation(),M.event.preventDefault(),ft.call(r.fill,Q.activebgcolor);var ut=b(Q,M.mouse(F)[0]);P(V,N,Q,ut,!0),Q._dragging=!0;function lt(){var $=G(),H=b($,M.mouse(F)[0]);P(V,N,$,H,!1)}U.on("mousemove",lt),U.on("touchmove",lt);function K(){var $=G();$._dragging=!1,ft.call(r.fill,$.bgcolor),U.on("mouseup",null),U.on("mousemove",null),U.on("touchend",null),U.on("touchmove",null),V.emit("plotly_sliderend",{slider:$,step:$.steps[$.active]})}U.on("mouseup",K),U.on("touchend",K)}I.on("mousedown",Y),I.on("touchstart",Y)}function E(I,V){var N=I.selectAll("rect."+t.tickRectClass).data(V._visibleSteps),F=V._dims;N.enter().append("rect").classed(t.tickRectClass,!0),N.exit().remove(),N.attr({width:V.tickwidth+"px","shape-rendering":"crispEdges"}),N.each(function(U,G){var Y=G%F.labelStride===0,Q=M.select(this);Q.attr({height:Y?V.ticklen:V.minorticklen}).call(r.fill,V.tickcolor),i.setTranslate(Q,L(V,G/(V._stepCount-1))-.5*V.tickwidth,(Y?t.tickOffset:t.minorTickOffset)+F.currentValueTotalHeight)})}function d(I){var V=I._dims;V.labelSteps=[];for(var N=I._stepCount,F=0;F<N;F+=V.labelStride)V.labelSteps.push({fraction:F/(N-1),step:I._visibleSteps[F]})}function _(I,V,N){for(var F=I.select("rect."+t.gripRectClass),U=0,G=0;G<V._stepCount;G++)if(V._visibleSteps[G]._index===V.active){U=G;break}var Y=L(V,U/(V._stepCount-1));if(!V._invokingCommand){var Q=F;N&&V.transition.duration>0&&(Q=Q.transition().duration(V.transition.duration).ease(V.transition.easing)),Q.attr("transform",S(Y-t.gripWidth*.5,V._dims.currentValueTotalHeight))}}function L(I,V){var N=I._dims;return N.inputAreaStart+t.stepInset+(N.inputAreaLength-2*t.stepInset)*Math.min(1,Math.max(0,V))}function b(I,V){var N=I._dims;return Math.min(1,Math.max(0,(V-t.stepInset-N.inputAreaStart)/(N.inputAreaLength-2*t.stepInset-2*N.inputAreaStart)))}function D(I,V,N){var F=N._dims,U=w.ensureSingle(I,"rect",t.railTouchRectClass,function(G){G.call(A,V,I,N).style("pointer-events","all")});U.attr({width:F.inputAreaLength,height:Math.max(F.inputAreaWidth,t.tickOffset+N.ticklen+F.labelHeight)}).call(r.fill,N.bgcolor).attr("opacity",0),i.setTranslate(U,0,F.currentValueTotalHeight)}function B(I,V){var N=V._dims,F=N.inputAreaLength-t.railInset*2,U=w.ensureSingle(I,"rect",t.railRectClass);U.attr({width:F,height:t.railWidth,rx:t.railRadius,ry:t.railRadius,"shape-rendering":"crispEdges"}).call(r.stroke,V.bordercolor).call(r.fill,V.bgcolor).style("stroke-width",V.borderwidth+"px"),i.setTranslate(U,t.railInset,(N.inputAreaWidth-t.railWidth)*.5+N.currentValueTotalHeight)}},15359:function(nt,W,e){var M=e(64194);nt.exports={moduleType:"component",name:M.name,layoutAttributes:e(8606),supplyLayoutDefaults:e(74537),draw:e(44097)}},17240:function(nt,W,e){var M=e(45568),C=e(10721),r=e(44122),i=e(33626),w=e(34809),S=w.strTranslate,h=e(62203),l=e(78766),t=e(30635),n=e(20438),o=e(4530).OPPOSITE_SIDE,a=/ [XY][0-9]* /,s=1.6,u=1.6;function x(m,y,c){var p=m._fullLayout,f=c.propContainer,T=c.propName,k=c.placeholder,P=c.traceIndex,g=c.avoid||{},A=c.attributes,E=c.transform,d=c.containerGroup,_=1,L=f.title,b=(L&&L.text?L.text:"").trim(),D=!1,B=L&&L.font?L.font:{},I=B.family,V=B.size,N=B.color,F=B.weight,U=B.style,G=B.variant,Y=B.textcase,Q=B.lineposition,ft=B.shadow,ut=c.subtitlePropName,lt=!!ut,K=c.subtitlePlaceholder,$=(f.title||{}).subtitle||{text:"",font:{}},H=$.text.trim(),at=!1,ct=1,et=$.font,Z=et.family,ot=et.size,st=et.color,dt=et.weight,xt=et.style,At=et.variant,St=et.textcase,Nt=et.lineposition,Wt=et.shadow,Vt;T==="title.text"?Vt="titleText":T.indexOf("axis")!==-1?Vt="axisTitleText":T.indexOf("colorbar"!==-1)&&(Vt="colorbarTitleText");var jt=m._context.edits[Vt];function Dt(Le,Ie){return Le===void 0||Ie===void 0?!1:Le.replace(a," % ")===Ie.replace(a," % ")}b===""?_=0:Dt(b,k)&&(jt||(b=""),_=.2,D=!0),lt&&(H===""?ct=0:Dt(H,K)&&(jt||(H=""),ct=.2,at=!0)),c._meta?b=w.templateString(b,c._meta):p._meta&&(b=w.templateString(b,p._meta));var kt=b||H||jt,Bt;d||(d=w.ensureSingle(p._infolayer,"g","g-"+y),Bt=p._hColorbarMoveTitle);var Ot=d.selectAll("text."+y).data(kt?[0]:[]);Ot.enter().append("text"),Ot.text(b).attr("class",y),Ot.exit().remove();var Ht=null,ye=y+"-subtitle",Qt=H||jt;if(lt&&Qt&&(Ht=d.selectAll("text."+ye).data(Qt?[0]:[]),Ht.enter().append("text"),Ht.text(H).attr("class",ye),Ht.exit().remove()),!kt)return d;function _e(Le,Ie){w.syncOrAsync([ie,Ae],{title:Le,subtitle:Ie})}function ie(Le){var Ie=Le.title,Ut=Le.subtitle,ee;!E&&Bt&&(E={}),E?(ee="",E.rotate&&(ee+="rotate("+[E.rotate,A.x,A.y]+")"),(E.offset||Bt)&&(ee+=S(0,(E.offset||0)-(Bt||0)))):ee=null,Ie.attr("transform",ee);function Kt(vt){if(vt){var Mt=M.select(vt.node().parentNode).select("."+ye);if(!Mt.empty()){var Lt=vt.node().getBBox();if(Lt.height){var $t=Lt.y+Lt.height+s*ot;Mt.attr("y",$t)}}}}if(Ie.style("opacity",_*l.opacity(N)).call(h.font,{color:l.rgb(N),size:M.round(V,2),family:I,weight:F,style:U,variant:G,textcase:Y,shadow:ft,lineposition:Q}).attr(A).call(t.convertToTspans,m,Kt),Ut){var ne=d.select("."+y+"-math-group"),zt=Ie.node().getBBox(),qt=ne.node()?ne.node().getBBox():void 0,Zt=qt?qt.y+qt.height+s*ot:zt.y+zt.height+u*ot,ae=w.extendFlat({},A,{y:Zt});Ut.attr("transform",ee),Ut.style("opacity",ct*l.opacity(st)).call(h.font,{color:l.rgb(st),size:M.round(ot,2),family:Z,weight:dt,style:xt,variant:At,textcase:St,shadow:Wt,lineposition:Nt}).attr(ae).call(t.convertToTspans,m)}return r.previousPromises(m)}function Ae(Le){var Ie=Le.title,Ut=M.select(Ie.node().parentNode);if(g.selection&&g.side&&b){Ut.attr("transform",null);var ee=o[g.side],Kt=g.side==="left"||g.side==="top"?-1:1,ne=C(g.pad)?g.pad:2,zt=h.bBox(Ut.node()),qt={t:0,b:0,l:0,r:0},Zt=m._fullLayout._reservedMargin;for(var ae in Zt)for(var vt in Zt[ae]){var Mt=Zt[ae][vt];qt[vt]=Math.max(qt[vt],Mt)}var Lt={left:qt.l,top:qt.t,right:p.width-qt.r,bottom:p.height-qt.b},$t=g.maxShift||Kt*(Lt[g.side]-zt[g.side]),ge=0;if($t<0)ge=$t;else{var de=g.offsetLeft||0,sr=g.offsetTop||0;zt.left-=de,zt.right-=de,zt.top-=sr,zt.bottom-=sr,g.selection.each(function(){var Ve=h.bBox(this);w.bBoxIntersect(zt,Ve,ne)&&(ge=Math.max(ge,Kt*(Ve[g.side]-zt[ee])+ne))}),ge=Math.min($t,ge),f._titleScoot=Math.abs(ge)}if(ge>0||$t<0){var mr={left:[-ge,0],right:[ge,0],top:[0,-ge],bottom:[0,ge]}[g.side];Ut.attr("transform",S(mr[0],mr[1]))}}}Ot.call(_e,Ht);function Pe(Le,Ie){Le.text(Ie).on("mouseover.opacity",function(){M.select(this).transition().duration(n.SHOW_PLACEHOLDER).style("opacity",1)}).on("mouseout.opacity",function(){M.select(this).transition().duration(n.HIDE_PLACEHOLDER).style("opacity",0)})}if(jt&&(b?Ot.on(".opacity",null):(Pe(Ot,k),D=!0),Ot.call(t.makeEditable,{gd:m}).on("edit",function(Le){P!==void 0?i.call("_guiRestyle",m,T,Le,P):i.call("_guiRelayout",m,T,Le)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(_e)}).on("input",function(Le){this.text(Le||" ").call(t.positionText,A.x,A.y)}),lt)){if(lt&&!b){var Oe=Ot.node().getBBox(),je=Oe.y+Oe.height+u*ot;Ht.attr("y",je)}H?Ht.on(".opacity",null):(Pe(Ht,K),at=!0),Ht.call(t.makeEditable,{gd:m}).on("edit",function(Le){i.call("_guiRelayout",m,"title.subtitle.text",Le)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(_e)}).on("input",function(Le){this.text(Le||" ").call(t.positionText,Ht.attr("x"),Ht.attr("y"))})}return Ot.classed("js-placeholder",D),Ht&&Ht.classed("js-placeholder",at),d}nt.exports={draw:x,SUBTITLE_PADDING_EM:u,SUBTITLE_PADDING_MATHJAX_EM:s}},85389:function(nt,W,e){var M=e(80337),C=e(10229),r=e(93049).extendFlat,i=e(13582).overrideAll,w=e(57891),S=e(78032).templatedArray,h=S("button",{visible:{valType:"boolean"},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},args2:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string",dflt:""},execute:{valType:"boolean",dflt:!0}});nt.exports=i(S("updatemenu",{_arrayAttrRegexps:[/^updatemenus\[(0|[1-9][0-9]+)\]\.buttons/],visible:{valType:"boolean"},type:{valType:"enumerated",values:["dropdown","buttons"],dflt:"dropdown"},direction:{valType:"enumerated",values:["left","right","up","down"],dflt:"down"},active:{valType:"integer",min:-1,dflt:0},showactive:{valType:"boolean",dflt:!0},buttons:h,x:{valType:"number",min:-2,max:3,dflt:-.05},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"right"},y:{valType:"number",min:-2,max:3,dflt:1},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},pad:r(w({editType:"arraydraw"}),{}),font:M({}),bgcolor:{valType:"color"},bordercolor:{valType:"color",dflt:C.borderLine},borderwidth:{valType:"number",min:0,dflt:1,editType:"arraydraw"}}),"arraydraw","from-root")},71559:function(nt){nt.exports={name:"updatemenus",containerClassName:"updatemenu-container",headerGroupClassName:"updatemenu-header-group",headerClassName:"updatemenu-header",headerArrowClassName:"updatemenu-header-arrow",dropdownButtonGroupClassName:"updatemenu-dropdown-button-group",dropdownButtonClassName:"updatemenu-dropdown-button",buttonClassName:"updatemenu-button",itemRectClassName:"updatemenu-item-rect",itemTextClassName:"updatemenu-item-text",menuIndexAttrName:"updatemenu-active-index",autoMarginIdRoot:"updatemenu-",blankHeaderOpts:{label:" "},minWidth:30,minHeight:30,textPadX:24,arrowPadX:16,rx:2,ry:2,textOffsetX:12,textOffsetY:3,arrowOffsetX:4,gapButtonHeader:5,gapButton:2,activeColor:"#F4FAFF",hoverColor:"#F4FAFF",arrowSymbol:{left:"\u25C4",right:"\u25BA",up:"\u25B2",down:"\u25BC"}}},42746:function(nt,W,e){var M=e(34809),C=e(59008),r=e(85389),i=e(71559),w=i.name,S=r.buttons;nt.exports=function(t,n){var o={name:w,handleItemDefaults:h};C(t,n,o)};function h(t,n,o){function a(x,m){return M.coerce(t,n,r,x,m)}var s=C(t,n,{name:"buttons",handleItemDefaults:l}),u=a("visible",s.length>0);u&&(a("active"),a("direction"),a("type"),a("showactive"),a("x"),a("y"),M.noneOrAll(t,n,["x","y"]),a("xanchor"),a("yanchor"),a("pad.t"),a("pad.r"),a("pad.b"),a("pad.l"),M.coerceFont(a,"font",o.font),a("bgcolor",o.paper_bgcolor),a("bordercolor"),a("borderwidth"))}function l(t,n){function o(s,u){return M.coerce(t,n,S,s,u)}var a=o("visible",t.method==="skip"||Array.isArray(t.args));a&&(o("method"),o("args"),o("args2"),o("label"),o("execute"))}},40974:function(nt,W,e){var M=e(45568),C=e(44122),r=e(78766),i=e(62203),w=e(34809),S=e(30635),h=e(78032).arrayEditor,l=e(4530).LINE_SPACING,t=e(71559),n=e(21736);nt.exports=function(L){var b=L._fullLayout,D=w.filterVisible(b[t.name]);function B(Q){C.autoMargin(L,E(Q))}var I=b._menulayer.selectAll("g."+t.containerClassName).data(D.length>0?[0]:[]);if(I.enter().append("g").classed(t.containerClassName,!0).style("cursor","pointer"),I.exit().each(function(){M.select(this).selectAll("g."+t.headerGroupClassName).each(B)}).remove(),D.length!==0){var V=I.selectAll("g."+t.headerGroupClassName).data(D,o);V.enter().append("g").classed(t.headerGroupClassName,!0);for(var N=w.ensureSingle(I,"g",t.dropdownButtonGroupClassName,function(Q){Q.style("pointer-events","all")}),F=0;F<D.length;F++){var U=D[F];A(L,U)}var G="updatemenus"+b._uid,Y=new n(L,N,G);V.enter().size()&&(N.node().parentNode.appendChild(N.node()),N.call(_)),V.exit().each(function(Q){N.call(_),B(Q)}).remove(),V.each(function(Q){var ft=M.select(this),ut=Q.type==="dropdown"?N:null;C.manageCommandObserver(L,Q,Q.buttons,function(lt){u(L,Q,Q.buttons[lt.index],ft,ut,Y,lt.index,!0)}),Q.type==="dropdown"?(x(L,ft,N,Y,Q),s(N,Q)&&m(L,ft,N,Y,Q)):m(L,ft,null,null,Q)})}};function o(L){return L._index}function a(L){return+L.attr(t.menuIndexAttrName)==-1}function s(L,b){return+L.attr(t.menuIndexAttrName)===b._index}function u(L,b,D,B,I,V,N,F){b.active=N,h(L.layout,t.name,b).applyUpdate("active",N),b.type==="buttons"?m(L,B,null,null,b):b.type==="dropdown"&&(I.attr(t.menuIndexAttrName,"-1"),x(L,B,I,V,b),F||m(L,B,I,V,b))}function x(L,b,D,B,I){var V=w.ensureSingle(b,"g",t.headerClassName,function(ft){ft.style("pointer-events","all")}),N=I._dims,F=I.active,U=I.buttons[F]||t.blankHeaderOpts,G={y:I.pad.t,yPad:0,x:I.pad.l,xPad:0,index:0},Y={width:N.headerWidth,height:N.headerHeight};V.call(p,I,U,L).call(d,I,G,Y);var Q=w.ensureSingle(b,"text",t.headerArrowClassName,function(ft){ft.attr("text-anchor","end").call(i.font,I.font).text(t.arrowSymbol[I.direction])});Q.attr({x:N.headerWidth-t.arrowOffsetX+I.pad.l,y:N.headerHeight/2+t.textOffsetY+I.pad.t}),V.on("click",function(){D.call(_,String(s(D,I)?-1:I._index)),m(L,b,D,B,I)}),V.on("mouseover",function(){V.call(P)}),V.on("mouseout",function(){V.call(g,I)}),i.setTranslate(b,N.lx,N.ly)}function m(L,b,D,B,I){D||(D=b,D.attr("pointer-events","all"));var V=!a(D)||I.type==="buttons"?I.buttons:[],N=I.type==="dropdown"?t.dropdownButtonClassName:t.buttonClassName,F=D.selectAll("g."+N).data(w.filterVisible(V)),U=F.enter().append("g").classed(N,!0),G=F.exit();I.type==="dropdown"?(U.attr("opacity","0").transition().attr("opacity","1"),G.transition().attr("opacity","0").remove()):G.remove();var Y=0,Q=0,ft=I._dims,ut=["up","down"].indexOf(I.direction)!==-1;I.type==="dropdown"&&(ut?Q=ft.headerHeight+t.gapButtonHeader:Y=ft.headerWidth+t.gapButtonHeader),I.type==="dropdown"&&I.direction==="up"&&(Q=-t.gapButtonHeader+t.gapButton-ft.openHeight),I.type==="dropdown"&&I.direction==="left"&&(Y=-t.gapButtonHeader+t.gapButton-ft.openWidth);var lt={x:ft.lx+Y+I.pad.l,y:ft.ly+Q+I.pad.t,yPad:t.gapButton,xPad:t.gapButton,index:0},K={l:lt.x+I.borderwidth,t:lt.y+I.borderwidth};F.each(function($,H){var at=M.select(this);at.call(p,I,$,L).call(d,I,lt),at.on("click",function(){M.event.defaultPrevented||($.execute&&($.args2&&I.active===H?(u(L,I,$,b,D,B,-1),C.executeAPICommand(L,$.method,$.args2)):(u(L,I,$,b,D,B,H),C.executeAPICommand(L,$.method,$.args))),L.emit("plotly_buttonclicked",{menu:I,button:$,active:I.active}))}),at.on("mouseover",function(){at.call(P)}),at.on("mouseout",function(){at.call(g,I),F.call(k,I)})}),F.call(k,I),ut?(K.w=Math.max(ft.openWidth,ft.headerWidth),K.h=lt.y-K.t):(K.w=lt.x-K.l,K.h=Math.max(ft.openHeight,ft.headerHeight)),K.direction=I.direction,B&&(F.size()?y(L,b,D,B,I,K):c(B))}function y(L,b,D,B,I,V){var N=I.direction,F=N==="up"||N==="down",U=I._dims,G=I.active,Y,Q,ft;if(F)for(Q=0,ft=0;ft<G;ft++)Q+=U.heights[ft]+t.gapButton;else for(Y=0,ft=0;ft<G;ft++)Y+=U.widths[ft]+t.gapButton;B.enable(V,Y,Q),B.hbar&&B.hbar.attr("opacity","0").transition().attr("opacity","1"),B.vbar&&B.vbar.attr("opacity","0").transition().attr("opacity","1")}function c(L){var b=!!L.hbar,D=!!L.vbar;b&&L.hbar.transition().attr("opacity","0").each("end",function(){b=!1,D||L.disable()}),D&&L.vbar.transition().attr("opacity","0").each("end",function(){D=!1,b||L.disable()})}function p(L,b,D,B){L.call(f,b).call(T,b,D,B)}function f(L,b){var D=w.ensureSingle(L,"rect",t.itemRectClassName,function(B){B.attr({rx:t.rx,ry:t.ry,"shape-rendering":"crispEdges"})});D.call(r.stroke,b.bordercolor).call(r.fill,b.bgcolor).style("stroke-width",b.borderwidth+"px")}function T(L,b,D,B){var I=w.ensureSingle(L,"text",t.itemTextClassName,function(F){F.attr({"text-anchor":"start","data-notex":1})}),V=D.label,N=B._fullLayout._meta;N&&(V=w.templateString(V,N)),I.call(i.font,b.font).text(V).call(S.convertToTspans,B)}function k(L,b){var D=b.active;L.each(function(B,I){var V=M.select(this);I===D&&b.showactive&&V.select("rect."+t.itemRectClassName).call(r.fill,t.activeColor)})}function P(L){L.select("rect."+t.itemRectClassName).call(r.fill,t.hoverColor)}function g(L,b){L.select("rect."+t.itemRectClassName).call(r.fill,b.bgcolor)}function A(L,b){var D=b._dims={width1:0,height1:0,heights:[],widths:[],totalWidth:0,totalHeight:0,openWidth:0,openHeight:0,lx:0,ly:0},B=i.tester.selectAll("g."+t.dropdownButtonClassName).data(w.filterVisible(b.buttons));B.enter().append("g").classed(t.dropdownButtonClassName,!0);var I=["up","down"].indexOf(b.direction)!==-1;B.each(function(Y,Q){var ft=M.select(this);ft.call(p,b,Y,L);var ut=ft.select("."+t.itemTextClassName),lt=ut.node()&&i.bBox(ut.node()).width,K=Math.max(lt+t.textPadX,t.minWidth),$=b.font.size*l,H=S.lineCount(ut),at=Math.max($*H,t.minHeight)+t.textOffsetY;at=Math.ceil(at),K=Math.ceil(K),D.widths[Q]=K,D.heights[Q]=at,D.height1=Math.max(D.height1,at),D.width1=Math.max(D.width1,K),I?(D.totalWidth=Math.max(D.totalWidth,K),D.openWidth=D.totalWidth,D.totalHeight+=at+t.gapButton,D.openHeight+=at+t.gapButton):(D.totalWidth+=K+t.gapButton,D.openWidth+=K+t.gapButton,D.totalHeight=Math.max(D.totalHeight,at),D.openHeight=D.totalHeight)}),I?D.totalHeight-=t.gapButton:D.totalWidth-=t.gapButton,D.headerWidth=D.width1+t.arrowPadX,D.headerHeight=D.height1,b.type==="dropdown"&&(I?(D.width1+=t.arrowPadX,D.totalHeight=D.height1):D.totalWidth=D.width1,D.totalWidth+=t.arrowPadX),B.remove();var V=D.totalWidth+b.pad.l+b.pad.r,N=D.totalHeight+b.pad.t+b.pad.b,F=L._fullLayout._size;D.lx=F.l+F.w*b.x,D.ly=F.t+F.h*(1-b.y);var U="left";w.isRightAnchor(b)&&(D.lx-=V,U="right"),w.isCenterAnchor(b)&&(D.lx-=V/2,U="center");var G="top";w.isBottomAnchor(b)&&(D.ly-=N,G="bottom"),w.isMiddleAnchor(b)&&(D.ly-=N/2,G="middle"),D.totalWidth=Math.ceil(D.totalWidth),D.totalHeight=Math.ceil(D.totalHeight),D.lx=Math.round(D.lx),D.ly=Math.round(D.ly),C.autoMargin(L,E(b),{x:b.x,y:b.y,l:V*({right:1,center:.5}[U]||0),r:V*({left:1,center:.5}[U]||0),b:N*({top:1,middle:.5}[G]||0),t:N*({bottom:1,middle:.5}[G]||0)})}function E(L){return t.autoMarginIdRoot+L._index}function d(L,b,D,B){B=B||{};var I=L.select("."+t.itemRectClassName),V=L.select("."+t.itemTextClassName),N=b.borderwidth,F=D.index,U=b._dims;i.setTranslate(L,N+D.x,N+D.y);var G=["up","down"].indexOf(b.direction)!==-1,Y=B.height||(G?U.heights[F]:U.height1);I.attr({x:0,y:0,width:B.width||(G?U.width1:U.widths[F]),height:Y});var Q=b.font.size*l,ft=S.lineCount(V),ut=(ft-1)*Q/2;S.positionText(V,t.textOffsetX,Y/2-ut+t.textOffsetY),G?D.y+=U.heights[F]+D.yPad:D.x+=U.widths[F]+D.xPad,D.index++}function _(L,b){L.attr(t.menuIndexAttrName,b||"-1").selectAll("g."+t.dropdownButtonClassName).remove()}},46230:function(nt,W,e){var M=e(71559);nt.exports={moduleType:"component",name:M.name,layoutAttributes:e(85389),supplyLayoutDefaults:e(42746),draw:e(40974)}},21736:function(nt,W,e){nt.exports=w;var M=e(45568),C=e(78766),r=e(62203),i=e(34809);function w(S,h,l){this.gd=S,this.container=h,this.id=l,this.position=null,this.translateX=null,this.translateY=null,this.hbar=null,this.vbar=null,this.bg=this.container.selectAll("rect.scrollbox-bg").data([0]),this.bg.exit().on(".drag",null).on("wheel",null).remove(),this.bg.enter().append("rect").classed("scrollbox-bg",!0).style("pointer-events","all").attr({opacity:0,x:0,y:0,width:0,height:0})}w.barWidth=2,w.barLength=20,w.barRadius=2,w.barPad=1,w.barColor="#808BA4",w.prototype.enable=function(S,h,l){var t=this.gd._fullLayout,n=t.width,o=t.height;this.position=S;var a=this.position.l,s=this.position.w,u=this.position.t,x=this.position.h,m=this.position.direction,y=m==="down",c=m==="left",p=m==="right",f=m==="up",T=s,k=x,P,g,A,E;!y&&!c&&!p&&!f&&(this.position.direction="down",y=!0);var d=y||f;d?(P=a,g=P+T,y?(A=u,E=Math.min(A+k,o),k=E-A):(E=u+k,A=Math.max(E-k,0),k=E-A)):(A=u,E=A+k,c?(g=a+T,P=Math.max(g-T,0),T=g-P):(P=a,g=Math.min(P+T,n),T=g-P)),this._box={l:P,t:A,w:T,h:k};var _=s>T,L=w.barLength+2*w.barPad,b=w.barWidth+2*w.barPad,D=a,B=u+x;B+b>o&&(B=o-b);var I=this.container.selectAll("rect.scrollbar-horizontal").data(_?[0]:[]);I.exit().on(".drag",null).remove(),I.enter().append("rect").classed("scrollbar-horizontal",!0).call(C.fill,w.barColor),_?(this.hbar=I.attr({rx:w.barRadius,ry:w.barRadius,x:D,y:B,width:L,height:b}),this._hbarXMin=D+L/2,this._hbarTranslateMax=T-L):(delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax);var V=x>k,N=w.barWidth+2*w.barPad,F=w.barLength+2*w.barPad,U=a+s,G=u;U+N>n&&(U=n-N);var Y=this.container.selectAll("rect.scrollbar-vertical").data(V?[0]:[]);Y.exit().on(".drag",null).remove(),Y.enter().append("rect").classed("scrollbar-vertical",!0).call(C.fill,w.barColor),V?(this.vbar=Y.attr({rx:w.barRadius,ry:w.barRadius,x:U,y:G,width:N,height:F}),this._vbarYMin=G+F/2,this._vbarTranslateMax=k-F):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var Q=this.id,ft=P-.5,ut=V?g+N+.5:g+.5,lt=A-.5,K=_?E+b+.5:E+.5,$=t._topdefs.selectAll("#"+Q).data(_||V?[0]:[]);if($.exit().remove(),$.enter().append("clipPath").attr("id",Q).append("rect"),_||V?(this._clipRect=$.select("rect").attr({x:Math.floor(ft),y:Math.floor(lt),width:Math.ceil(ut)-Math.floor(ft),height:Math.ceil(K)-Math.floor(lt)}),this.container.call(r.setClipUrl,Q,this.gd),this.bg.attr({x:a,y:u,width:s,height:x})):(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(r.setClipUrl,null),delete this._clipRect),_||V){var H=M.behavior.drag().on("dragstart",function(){M.event.sourceEvent.preventDefault()}).on("drag",this._onBoxDrag.bind(this));this.container.on("wheel",null).on("wheel",this._onBoxWheel.bind(this)).on(".drag",null).call(H);var at=M.behavior.drag().on("dragstart",function(){M.event.sourceEvent.preventDefault(),M.event.sourceEvent.stopPropagation()}).on("drag",this._onBarDrag.bind(this));_&&this.hbar.on(".drag",null).call(at),V&&this.vbar.on(".drag",null).call(at)}this.setTranslate(h,l)},w.prototype.disable=function(){(this.hbar||this.vbar)&&(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(r.setClipUrl,null),delete this._clipRect),this.hbar&&(this.hbar.on(".drag",null),this.hbar.remove(),delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax),this.vbar&&(this.vbar.on(".drag",null),this.vbar.remove(),delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax)},w.prototype._onBoxDrag=function(){var S=this.translateX,h=this.translateY;this.hbar&&(S-=M.event.dx),this.vbar&&(h-=M.event.dy),this.setTranslate(S,h)},w.prototype._onBoxWheel=function(){var S=this.translateX,h=this.translateY;this.hbar&&(S+=M.event.deltaY),this.vbar&&(h+=M.event.deltaY),this.setTranslate(S,h)},w.prototype._onBarDrag=function(){var S=this.translateX,h=this.translateY;if(this.hbar){var l=S+this._hbarXMin,t=l+this._hbarTranslateMax,n=i.constrain(M.event.x,l,t),o=(n-l)/(t-l),a=this.position.w-this._box.w;S=o*a}if(this.vbar){var s=h+this._vbarYMin,u=s+this._vbarTranslateMax,x=i.constrain(M.event.y,s,u),m=(x-s)/(u-s),y=this.position.h-this._box.h;h=m*y}this.setTranslate(S,h)},w.prototype.setTranslate=function(S,h){var l=this.position.w-this._box.w,t=this.position.h-this._box.h;if(S=i.constrain(S||0,0,l),h=i.constrain(h||0,0,t),this.translateX=S,this.translateY=h,this.container.call(r.setTranslate,this._box.l-this.position.l-S,this._box.t-this.position.t-h),this._clipRect&&this._clipRect.attr({x:Math.floor(this.position.l+S-.5),y:Math.floor(this.position.t+h-.5)}),this.hbar){var n=S/l;this.hbar.call(r.setTranslate,S+n*this._hbarTranslateMax,h)}if(this.vbar){var o=h/t;this.vbar.call(r.setTranslate,S,h+o*this._vbarTranslateMax)}}},4530:function(nt){nt.exports={FROM_BL:{left:0,center:.5,right:1,bottom:0,middle:.5,top:1},FROM_TL:{left:0,center:.5,right:1,bottom:1,middle:.5,top:0},FROM_BR:{left:1,center:.5,right:0,bottom:0,middle:.5,top:1},LINE_SPACING:1.3,CAP_SHIFT:.7,MID_SHIFT:.35,OPPOSITE_SIDE:{left:"right",right:"left",top:"bottom",bottom:"top"}}},35081:function(nt){nt.exports={axisRefDescription:function(W,e,M){return["If set to a",W,"axis id (e.g. *"+W+"* or","*"+W+"2*), the `"+W+"` position refers to a",W,"coordinate. If set to *paper*, the `"+W+"`","position refers to the distance from the",e,"of the plotting","area in normalized coordinates where *0* (*1*) corresponds to the",e,"("+M+"). If set to a",W,"axis ID followed by","*domain* (separated by a space), the position behaves like for","*paper*, but refers to the distance in fractions of the domain","length from the",e,"of the domain of that axis: e.g.,","*"+W+"2 domain* refers to the domain of the second",W," axis and a",W,"position of 0.5 refers to the","point between the",e,"and the",M,"of the domain of the","second",W,"axis."].join(" ")}}},20909:function(nt){nt.exports={INCREASING:{COLOR:"#3D9970",SYMBOL:"\u25B2"},DECREASING:{COLOR:"#FF4136",SYMBOL:"\u25BC"}}},87296:function(nt){nt.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"}},20726:function(nt){nt.exports={COMPARISON_OPS:["=","!=","<",">=",">","<="],COMPARISON_OPS2:["=","<",">=",">","<="],INTERVAL_OPS:["[]","()","[)","(]","][",")(","](",")["],SET_OPS:["{}","}{"],CONSTRAINT_REDUCTION:{"=":"=","<":"<","<=":"<",">":">",">=":">","[]":"[]","()":"[]","[)":"[]","(]":"[]","][":"][",")(":"][","](":"][",")[":"]["}}},84770:function(nt){nt.exports={solid:[[],0],dot:[[.5,1],200],dash:[[.5,1],50],longdash:[[.5,1],10],dashdot:[[.5,.625,.875,1],50],longdashdot:[[.5,.7,.8,1],10]}},49467:function(nt){nt.exports={circle:"\u25CF","circle-open":"\u25CB",square:"\u25A0","square-open":"\u25A1",diamond:"\u25C6","diamond-open":"\u25C7",cross:"+",x:"\u274C"}},20438:function(nt){nt.exports={SHOW_PLACEHOLDER:100,HIDE_PLACEHOLDER:1e3,DESELECTDIM:.2}},63821:function(nt){nt.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:.999999,LOG_CLIP:10,MINUS_SIGN:"\u2212"}},1837:function(nt,W){W.CSS_DECLARATIONS=[["image-rendering","optimizeSpeed"],["image-rendering","-moz-crisp-edges"],["image-rendering","-o-crisp-edges"],["image-rendering","-webkit-optimize-contrast"],["image-rendering","optimize-contrast"],["image-rendering","crisp-edges"],["image-rendering","pixelated"]],W.STYLE=W.CSS_DECLARATIONS.map(function(e){return e.join(": ")+"; "}).join("")},62972:function(nt,W){W.xmlns="http://www.w3.org/2000/xmlns/",W.svg="http://www.w3.org/2000/svg",W.xlink="http://www.w3.org/1999/xlink",W.svgAttrs={xmlns:W.svg,"xmlns:xlink":W.xlink}},17430:function(nt,W,e){W.version=e(29697).version,e(71116),e(6713);for(var M=e(33626),C=W.register=M.register,r=e(90742),i=Object.keys(r),w=0;w<i.length;w++){var S=i[w];S.charAt(0)!=="_"&&(W[S]=r[S]),C({moduleType:"apiMethod",name:S,fn:r[S]})}C(e(69693)),C([e(3599),e(83348),e(44844),e(43701),e(15553),e(46230),e(15359),e(55429),e(44453),e(83595),e(77901),e(88856),e(96919),e(82494),e(32141),e(95433)]),C([e(30227),e(44611)]),window.PlotlyLocales&&Array.isArray(window.PlotlyLocales)&&(C(window.PlotlyLocales),delete window.PlotlyLocales),W.Icons=e(35188);var h=e(32141),l=e(44122);W.Plots={resize:l.resize,graphJson:l.graphJson,sendDataToCloud:l.sendDataToCloud},W.Fx={hover:h.hover,unhover:h.unhover,loneHover:h.loneHover,loneUnhover:h.loneUnhover},W.Snapshot=e(6170),W.PlotSchema=e(57297)},35188:function(nt){nt.exports={undo:{width:857.1,height:1e3,path:"m857 350q0-87-34-166t-91-137-137-92-166-34q-96 0-183 41t-147 114q-4 6-4 13t5 11l76 77q6 5 14 5 9-1 13-7 41-53 100-82t126-29q58 0 110 23t92 61 61 91 22 111-22 111-61 91-92 61-110 23q-55 0-105-20t-90-57l77-77q17-16 8-38-10-23-33-23h-250q-15 0-25 11t-11 25v250q0 24 22 33 22 10 39-8l72-72q60 57 137 88t159 31q87 0 166-34t137-92 91-137 34-166z",transform:"matrix(1 0 0 -1 0 850)"},home:{width:928.6,height:1e3,path:"m786 296v-267q0-15-11-26t-25-10h-214v214h-143v-214h-214q-15 0-25 10t-11 26v267q0 1 0 2t0 2l321 264 321-264q1-1 1-4z m124 39l-34-41q-5-5-12-6h-2q-7 0-12 3l-386 322-386-322q-7-4-13-4-7 2-12 7l-35 41q-4 5-3 13t6 12l401 334q18 15 42 15t43-15l136-114v109q0 8 5 13t13 5h107q8 0 13-5t5-13v-227l122-102q5-5 6-12t-4-13z",transform:"matrix(1 0 0 -1 0 850)"},"camera-retro":{width:1e3,height:1e3,path:"m518 386q0 8-5 13t-13 5q-37 0-63-27t-26-63q0-8 5-13t13-5 12 5 5 13q0 23 16 38t38 16q8 0 13 5t5 13z m125-73q0-59-42-101t-101-42-101 42-42 101 42 101 101 42 101-42 42-101z m-572-320h858v71h-858v-71z m643 320q0 89-62 152t-152 62-151-62-63-152 63-151 151-63 152 63 62 151z m-571 358h214v72h-214v-72z m-72-107h858v143h-462l-36-71h-360v-72z m929 143v-714q0-30-21-51t-50-21h-858q-29 0-50 21t-21 51v714q0 30 21 51t50 21h858q29 0 50-21t21-51z",transform:"matrix(1 0 0 -1 0 850)"},zoombox:{width:1e3,height:1e3,path:"m1000-25l-250 251c40 63 63 138 63 218 0 224-182 406-407 406-224 0-406-182-406-406s183-406 407-406c80 0 155 22 218 62l250-250 125 125z m-812 250l0 438 437 0 0-438-437 0z m62 375l313 0 0-312-313 0 0 312z",transform:"matrix(1 0 0 -1 0 850)"},pan:{width:1e3,height:1e3,path:"m1000 350l-187 188 0-125-250 0 0 250 125 0-188 187-187-187 125 0 0-250-250 0 0 125-188-188 186-187 0 125 252 0 0-250-125 0 187-188 188 188-125 0 0 250 250 0 0-126 187 188z",transform:"matrix(1 0 0 -1 0 850)"},zoom_plus:{width:875,height:1e3,path:"m1 787l0-875 875 0 0 875-875 0z m687-500l-187 0 0-187-125 0 0 187-188 0 0 125 188 0 0 187 125 0 0-187 187 0 0-125z",transform:"matrix(1 0 0 -1 0 850)"},zoom_minus:{width:875,height:1e3,path:"m0 788l0-876 875 0 0 876-875 0z m688-500l-500 0 0 125 500 0 0-125z",transform:"matrix(1 0 0 -1 0 850)"},autoscale:{width:1e3,height:1e3,path:"m250 850l-187 0-63 0 0-62 0-188 63 0 0 188 187 0 0 62z m688 0l-188 0 0-62 188 0 0-188 62 0 0 188 0 62-62 0z m-875-938l0 188-63 0 0-188 0-62 63 0 187 0 0 62-187 0z m875 188l0-188-188 0 0-62 188 0 62 0 0 62 0 188-62 0z m-125 188l-1 0-93-94-156 156 156 156 92-93 2 0 0 250-250 0 0-2 93-92-156-156-156 156 94 92 0 2-250 0 0-250 0 0 93 93 157-156-157-156-93 94 0 0 0-250 250 0 0 0-94 93 156 157 156-157-93-93 0 0 250 0 0 250z",transform:"matrix(1 0 0 -1 0 850)"},tooltip_basic:{width:1500,height:1e3,path:"m375 725l0 0-375-375 375-374 0-1 1125 0 0 750-1125 0z",transform:"matrix(1 0 0 -1 0 850)"},tooltip_compare:{width:1125,height:1e3,path:"m187 786l0 2-187-188 188-187 0 0 937 0 0 373-938 0z m0-499l0 1-187-188 188-188 0 0 937 0 0 376-938-1z",transform:"matrix(1 0 0 -1 0 850)"},plotlylogo:{width:1542,height:1e3,path:"m0-10h182v-140h-182v140z m228 146h183v-286h-183v286z m225 714h182v-1000h-182v1000z m225-285h182v-715h-182v715z m225 142h183v-857h-183v857z m231-428h182v-429h-182v429z m225-291h183v-138h-183v138z",transform:"matrix(1 0 0 -1 0 850)"},"z-axis":{width:1e3,height:1e3,path:"m833 5l-17 108v41l-130-65 130-66c0 0 0 38 0 39 0-1 36-14 39-25 4-15-6-22-16-30-15-12-39-16-56-20-90-22-187-23-279-23-261 0-341 34-353 59 3 60 228 110 228 110-140-8-351-35-351-116 0-120 293-142 474-142 155 0 477 22 477 142 0 50-74 79-163 96z m-374 94c-58-5-99-21-99-40 0-24 65-43 144-43 79 0 143 19 143 43 0 19-42 34-98 40v216h87l-132 135-133-135h88v-216z m167 515h-136v1c16 16 31 34 46 52l84 109v54h-230v-71h124v-1c-16-17-28-32-44-51l-89-114v-51h245v72z",transform:"matrix(1 0 0 -1 0 850)"},"3d_rotate":{width:1e3,height:1e3,path:"m922 660c-5 4-9 7-14 11-359 263-580-31-580-31l-102 28 58-400c0 1 1 1 2 2 118 108 351 249 351 249s-62 27-100 42c88 83 222 183 347 122 16-8 30-17 44-27-2 1-4 2-6 4z m36-329c0 0 64 229-88 296-62 27-124 14-175-11 157-78 225-208 249-266 8-19 11-31 11-31 2 5 6 15 11 32-5-13-8-20-8-20z m-775-239c70-31 117-50 198-32-121 80-199 346-199 346l-96-15-58-12c0 0 55-226 155-287z m603 133l-317-139c0 0 4-4 19-14 7-5 24-15 24-15s-177-147-389 4c235-287 536-112 536-112l31-22 100 299-4-1z m-298-153c6-4 14-9 24-15 0 0-17 10-24 15z",transform:"matrix(1 0 0 -1 0 850)"},camera:{width:1e3,height:1e3,path:"m500 450c-83 0-150-67-150-150 0-83 67-150 150-150 83 0 150 67 150 150 0 83-67 150-150 150z m400 150h-120c-16 0-34 13-39 29l-31 93c-6 15-23 28-40 28h-340c-16 0-34-13-39-28l-31-94c-6-15-23-28-40-28h-120c-55 0-100-45-100-100v-450c0-55 45-100 100-100h800c55 0 100 45 100 100v450c0 55-45 100-100 100z m-400-550c-138 0-250 112-250 250 0 138 112 250 250 250 138 0 250-112 250-250 0-138-112-250-250-250z m365 380c-19 0-35 16-35 35 0 19 16 35 35 35 19 0 35-16 35-35 0-19-16-35-35-35z",transform:"matrix(1 0 0 -1 0 850)"},movie:{width:1e3,height:1e3,path:"m938 413l-188-125c0 37-17 71-44 94 64 38 107 107 107 187 0 121-98 219-219 219-121 0-219-98-219-219 0-61 25-117 66-156h-115c30 33 49 76 49 125 0 103-84 187-187 187s-188-84-188-187c0-57 26-107 65-141-38-22-65-62-65-109v-250c0-70 56-126 125-126h500c69 0 125 56 125 126l188-126c34 0 62 28 62 63v375c0 35-28 63-62 63z m-750 0c-69 0-125 56-125 125s56 125 125 125 125-56 125-125-56-125-125-125z m406-1c-87 0-157 70-157 157 0 86 70 156 157 156s156-70 156-156-70-157-156-157z",transform:"matrix(1 0 0 -1 0 850)"},question:{width:857.1,height:1e3,path:"m500 82v107q0 8-5 13t-13 5h-107q-8 0-13-5t-5-13v-107q0-8 5-13t13-5h107q8 0 13 5t5 13z m143 375q0 49-31 91t-77 65-95 23q-136 0-207-119-9-14 4-24l74-55q4-4 10-4 9 0 14 7 30 38 48 51 19 14 48 14 27 0 48-15t21-33q0-21-11-34t-38-25q-35-16-65-48t-29-70v-20q0-8 5-13t13-5h107q8 0 13 5t5 13q0 10 12 27t30 28q18 10 28 16t25 19 25 27 16 34 7 45z m214-107q0-117-57-215t-156-156-215-58-216 58-155 156-58 215 58 215 155 156 216 58 215-58 156-156 57-215z",transform:"matrix(1 0 0 -1 0 850)"},disk:{width:857.1,height:1e3,path:"m214-7h429v214h-429v-214z m500 0h72v500q0 8-6 21t-11 20l-157 156q-5 6-19 12t-22 5v-232q0-22-15-38t-38-16h-322q-22 0-37 16t-16 38v232h-72v-714h72v232q0 22 16 38t37 16h465q22 0 38-16t15-38v-232z m-214 518v178q0 8-5 13t-13 5h-107q-7 0-13-5t-5-13v-178q0-8 5-13t13-5h107q7 0 13 5t5 13z m357-18v-518q0-22-15-38t-38-16h-750q-23 0-38 16t-16 38v750q0 22 16 38t38 16h517q23 0 50-12t42-26l156-157q16-15 27-42t11-49z",transform:"matrix(1 0 0 -1 0 850)"},drawopenpath:{width:70,height:70,path:"M33.21,85.65a7.31,7.31,0,0,1-2.59-.48c-8.16-3.11-9.27-19.8-9.88-41.3-.1-3.58-.19-6.68-.35-9-.15-2.1-.67-3.48-1.43-3.79-2.13-.88-7.91,2.32-12,5.86L3,32.38c1.87-1.64,11.55-9.66,18.27-6.9,2.13.87,4.75,3.14,5.17,9,.17,2.43.26,5.59.36,9.25a224.17,224.17,0,0,0,1.5,23.4c1.54,10.76,4,12.22,4.48,12.4.84.32,2.79-.46,5.76-3.59L43,80.07C41.53,81.57,37.68,85.64,33.21,85.65ZM74.81,69a11.34,11.34,0,0,0,6.09-6.72L87.26,44.5,74.72,32,56.9,38.35c-2.37.86-5.57,3.42-6.61,6L38.65,72.14l8.42,8.43ZM55,46.27a7.91,7.91,0,0,1,3.64-3.17l14.8-5.3,8,8L76.11,60.6l-.06.19a6.37,6.37,0,0,1-3,3.43L48.25,74.59,44.62,71Zm16.57,7.82A6.9,6.9,0,1,0,64.64,61,6.91,6.91,0,0,0,71.54,54.09Zm-4.05,0a2.85,2.85,0,1,1-2.85-2.85A2.86,2.86,0,0,1,67.49,54.09Zm-4.13,5.22L60.5,56.45,44.26,72.7l2.86,2.86ZM97.83,35.67,84.14,22l-8.57,8.57L89.26,44.24Zm-13.69-8,8,8-2.85,2.85-8-8Z",transform:"matrix(1 0 0 1 -15 -15)"},drawclosedpath:{width:90,height:90,path:"M88.41,21.12a26.56,26.56,0,0,0-36.18,0l-2.07,2-2.07-2a26.57,26.57,0,0,0-36.18,0,23.74,23.74,0,0,0,0,34.8L48,90.12a3.22,3.22,0,0,0,4.42,0l36-34.21a23.73,23.73,0,0,0,0-34.79ZM84,51.24,50.16,83.35,16.35,51.25a17.28,17.28,0,0,1,0-25.47,20,20,0,0,1,27.3,0l4.29,4.07a3.23,3.23,0,0,0,4.44,0l4.29-4.07a20,20,0,0,1,27.3,0,17.27,17.27,0,0,1,0,25.46ZM66.76,47.68h-33v6.91h33ZM53.35,35H46.44V68h6.91Z",transform:"matrix(1 0 0 1 -5 -5)"},lasso:{width:1031,height:1e3,path:"m1018 538c-36 207-290 336-568 286-277-48-473-256-436-463 10-57 36-108 76-151-13-66 11-137 68-183 34-28 75-41 114-42l-55-70 0 0c-2-1-3-2-4-3-10-14-8-34 5-45 14-11 34-8 45 4 1 1 2 3 2 5l0 0 113 140c16 11 31 24 45 40 4 3 6 7 8 11 48-3 100 0 151 9 278 48 473 255 436 462z m-624-379c-80 14-149 48-197 96 42 42 109 47 156 9 33-26 47-66 41-105z m-187-74c-19 16-33 37-39 60 50-32 109-55 174-68-42-25-95-24-135 8z m360 75c-34-7-69-9-102-8 8 62-16 128-68 170-73 59-175 54-244-5-9 20-16 40-20 61-28 159 121 317 333 354s407-60 434-217c28-159-121-318-333-355z",transform:"matrix(1 0 0 -1 0 850)"},selectbox:{width:1e3,height:1e3,path:"m0 850l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-285l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z",transform:"matrix(1 0 0 -1 0 850)"},drawline:{width:70,height:70,path:"M60.64,62.3a11.29,11.29,0,0,0,6.09-6.72l6.35-17.72L60.54,25.31l-17.82,6.4c-2.36.86-5.57,3.41-6.6,6L24.48,65.5l8.42,8.42ZM40.79,39.63a7.89,7.89,0,0,1,3.65-3.17l14.79-5.31,8,8L61.94,54l-.06.19a6.44,6.44,0,0,1-3,3.43L34.07,68l-3.62-3.63Zm16.57,7.81a6.9,6.9,0,1,0-6.89,6.9A6.9,6.9,0,0,0,57.36,47.44Zm-4,0a2.86,2.86,0,1,1-2.85-2.85A2.86,2.86,0,0,1,53.32,47.44Zm-4.13,5.22L46.33,49.8,30.08,66.05l2.86,2.86ZM83.65,29,70,15.34,61.4,23.9,75.09,37.59ZM70,21.06l8,8-2.84,2.85-8-8ZM87,80.49H10.67V87H87Z",transform:"matrix(1 0 0 1 -15 -15)"},drawrect:{width:80,height:80,path:"M78,22V79H21V22H78m9-9H12V88H87V13ZM68,46.22H31V54H68ZM53,32H45.22V69H53Z",transform:"matrix(1 0 0 1 -10 -10)"},drawcircle:{width:80,height:80,path:"M50,84.72C26.84,84.72,8,69.28,8,50.3S26.84,15.87,50,15.87,92,31.31,92,50.3,73.16,84.72,50,84.72Zm0-60.59c-18.6,0-33.74,11.74-33.74,26.17S31.4,76.46,50,76.46,83.74,64.72,83.74,50.3,68.6,24.13,50,24.13Zm17.15,22h-34v7.11h34Zm-13.8-13H46.24v34h7.11Z",transform:"matrix(1 0 0 1 -10 -10)"},eraseshape:{width:80,height:80,path:"M82.77,78H31.85L6,49.57,31.85,21.14H82.77a8.72,8.72,0,0,1,8.65,8.77V69.24A8.72,8.72,0,0,1,82.77,78ZM35.46,69.84H82.77a.57.57,0,0,0,.49-.6V29.91a.57.57,0,0,0-.49-.61H35.46L17,49.57Zm32.68-34.7-24,24,5,5,24-24Zm-19,.53-5,5,24,24,5-5Z",transform:"matrix(1 0 0 1 -10 -10)"},spikeline:{width:1e3,height:1e3,path:"M512 409c0-57-46-104-103-104-57 0-104 47-104 104 0 57 47 103 104 103 57 0 103-46 103-103z m-327-39l92 0 0 92-92 0z m-185 0l92 0 0 92-92 0z m370-186l92 0 0 93-92 0z m0-184l92 0 0 92-92 0z",transform:"matrix(1.5 0 0 -1.5 0 850)"},pencil:{width:1792,height:1792,path:"M491 1536l91-91-235-235-91 91v107h128v128h107zm523-928q0-22-22-22-10 0-17 7l-542 542q-7 7-7 17 0 22 22 22 10 0 17-7l542-542q7-7 7-17zm-54-192l416 416-832 832h-416v-416zm683 96q0 53-37 90l-166 166-416-416 166-165q36-38 90-38 53 0 91 38l235 234q37 39 37 91z",transform:"matrix(1 0 0 1 0 1)"},newplotlylogo:{name:"newplotlylogo",svg:["<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 132 132'>","<defs>"," <style>"," .cls-0{fill:#000;}"," .cls-1{fill:#FFF;}"," .cls-2{fill:#F26;}"," .cls-3{fill:#D69;}"," .cls-4{fill:#BAC;}"," .cls-5{fill:#9EF;}"," </style>","</defs>"," <title>plotly-logomark</title>"," <g id='symbol'>"," <rect class='cls-0' x='0' y='0' width='132' height='132' rx='18' ry='18'/>"," <circle class='cls-5' cx='102' cy='30' r='6'/>"," <circle class='cls-4' cx='78' cy='30' r='6'/>"," <circle class='cls-4' cx='78' cy='54' r='6'/>"," <circle class='cls-3' cx='54' cy='30' r='6'/>"," <circle class='cls-2' cx='30' cy='30' r='6'/>"," <circle class='cls-2' cx='30' cy='54' r='6'/>"," <path class='cls-1' d='M30,72a6,6,0,0,0-6,6v24a6,6,0,0,0,12,0V78A6,6,0,0,0,30,72Z'/>"," <path class='cls-1' d='M78,72a6,6,0,0,0-6,6v24a6,6,0,0,0,12,0V78A6,6,0,0,0,78,72Z'/>"," <path class='cls-1' d='M54,48a6,6,0,0,0-6,6v48a6,6,0,0,0,12,0V54A6,6,0,0,0,54,48Z'/>"," <path class='cls-1' d='M102,48a6,6,0,0,0-6,6v48a6,6,0,0,0,12,0V54A6,6,0,0,0,102,48Z'/>"," </g>","</svg>"].join("")}}},32546:function(nt,W){W.isLeftAnchor=function(e){return e.xanchor==="left"||e.xanchor==="auto"&&e.x<=.3333333333333333},W.isCenterAnchor=function(e){return e.xanchor==="center"||e.xanchor==="auto"&&e.x>.3333333333333333&&e.x<.6666666666666666},W.isRightAnchor=function(e){return e.xanchor==="right"||e.xanchor==="auto"&&e.x>=.6666666666666666},W.isTopAnchor=function(e){return e.yanchor==="top"||e.yanchor==="auto"&&e.y>=.6666666666666666},W.isMiddleAnchor=function(e){return e.yanchor==="middle"||e.yanchor==="auto"&&e.y>.3333333333333333&&e.y<.6666666666666666},W.isBottomAnchor=function(e){return e.yanchor==="bottom"||e.yanchor==="auto"&&e.y<=.3333333333333333}},44313:function(nt,W,e){var M=e(98953),C=M.mod,r=M.modHalf,i=Math.PI,w=2*i;function S(y){return y/180*i}function h(y){return y/i*180}function l(y){return Math.abs(y[1]-y[0])>w-1e-14}function t(y,c){return r(c-y,w)}function n(y,c){return Math.abs(t(y,c))}function o(y,c){if(l(c))return!0;var p,f;c[0]<c[1]?(p=c[0],f=c[1]):(p=c[1],f=c[0]),p=C(p,w),f=C(f,w),p>f&&(f+=w);var T=C(y,w),k=T+w;return T>=p&&T<=f||k>=p&&k<=f}function a(y,c,p,f){if(!o(c,f))return!1;var T,k;return p[0]<p[1]?(T=p[0],k=p[1]):(T=p[1],k=p[0]),y>=T&&y<=k}function s(y,c,p,f,T,k,P){T=T||0,k=k||0;var g=l([p,f]),A,E,d,_,L;g?(A=0,E=i,d=w):p<f?(A=p,d=f):(A=f,d=p),y<c?(_=y,L=c):(_=c,L=y);function b(V,N){return[V*Math.cos(N)+T,k-V*Math.sin(N)]}var D=Math.abs(d-A)<=i?0:1;function B(V,N,F){return"A"+[V,V]+" "+[0,D,F]+" "+b(V,N)}var I;return g?_===null?I="M"+b(L,A)+B(L,E,0)+B(L,d,0)+"Z":I="M"+b(_,A)+B(_,E,0)+B(_,d,0)+"ZM"+b(L,A)+B(L,E,1)+B(L,d,1)+"Z":_===null?(I="M"+b(L,A)+B(L,d,0),P&&(I+="L0,0Z")):I="M"+b(_,A)+"L"+b(L,A)+B(L,d,0)+"L"+b(_,d)+B(_,A,1)+"Z",I}function u(y,c,p,f,T){return s(null,y,c,p,f,T,0)}function x(y,c,p,f,T){return s(null,y,c,p,f,T,1)}function m(y,c,p,f,T,k){return s(y,c,p,f,T,k,1)}nt.exports={deg2rad:S,rad2deg:h,angleDelta:t,angleDist:n,isFullCircle:l,isAngleInsideSector:o,isPtInsideSector:a,pathArc:u,pathSector:x,pathAnnulus:m}},87800:function(nt,W,e){var M=e(93229).decode,C=e(56174),r=Array.isArray,i=ArrayBuffer,w=DataView;function S(s){return i.isView(s)&&!(s instanceof w)}W.isTypedArray=S;function h(s){return r(s)||S(s)}W.isArrayOrTypedArray=h;function l(s){return!h(s[0])}W.isArray1D=l,W.ensureArray=function(s,u){return r(s)||(s=[]),s.length=u,s};var t={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};t.uint8c=t.u1c,t.uint8=t.u1,t.int8=t.i1,t.uint16=t.u2,t.int16=t.i2,t.uint32=t.u4,t.int32=t.i4,t.float32=t.f4,t.float64=t.f8;function n(s){return s.constructor===ArrayBuffer}W.isArrayBuffer=n,W.decodeTypedArraySpec=function(s){var u=[],x=o(s),m=x.dtype,y=t[m];if(!y)throw new Error('Error in dtype: "'+m+'"');var c=y.BYTES_PER_ELEMENT,p=x.bdata;n(p)||(p=M(p));var f=x.shape===void 0?[p.byteLength/c]:(""+x.shape).split(",");f.reverse();var T=f.length,k,P,g=+f[0],A=c*g,E=0;if(T===1)u=new y(p);else if(T===2)for(k=+f[1],P=0;P<k;P++)u[P]=new y(p,E,g),E+=A;else if(T===3){k=+f[1];for(var d=+f[2],_=0;_<d;_++)for(u[_]=[],P=0;P<k;P++)u[_][P]=new y(p,E,g),E+=A}else throw new Error("ndim: "+T+'is not supported with the shape:"'+x.shape+'"');return u.bdata=x.bdata,u.dtype=x.dtype,u.shape=f.reverse().join(","),s._inputArray=u,u},W.isTypedArraySpec=function(s){return C(s)&&s.hasOwnProperty("dtype")&&typeof s.dtype=="string"&&s.hasOwnProperty("bdata")&&(typeof s.bdata=="string"||n(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}}W.concat=function(){var s=[],u=!0,x=0,m,y,c,p,f,T,k,P;for(c=0;c<arguments.length;c++)p=arguments[c],T=p.length,T&&(y?s.push(p):(y=p,f=T),r(p)?m=!1:(u=!1,x?m!==p.constructor&&(m=!1):m=p.constructor),x+=T);if(!x)return[];if(!s.length)return y;if(u)return y.concat.apply(y,s);if(m){for(k=new m(x),k.set(y),c=0;c<s.length;c++)p=s[c],k.set(p,f),f+=p.length;return k}for(k=new Array(x),P=0;P<y.length;P++)k[P]=y[P];for(c=0;c<s.length;c++){for(p=s[c],P=0;P<p.length;P++)k[f+P]=p[P];f+=P}return k},W.maxRowLength=function(s){return a(s,Math.max,0)},W.minRowLength=function(s){return a(s,Math.min,1/0)};function a(s,u,x){if(h(s))if(h(s[0])){for(var m=x,y=0;y<s.length;y++)m=u(m,s[y].length);return m}else return s.length;return 0}},44498:function(nt,W,e){var M=e(10721),C=e(63821).BADNUM,r=/^['"%,$#\s']+|[, ]|['"%,$#\s']+$/g;nt.exports=function(i){return typeof i=="string"&&(i=i.replace(r,"")),M(i)?Number(i):C}},34823:function(nt){nt.exports=function(W){var e=W._fullLayout;e._glcanvas&&e._glcanvas.size()&&e._glcanvas.each(function(M){M.regl&&M.regl.clear({color:!0,depth:!0})})}},23493:function(nt){nt.exports=function(W){W._responsiveChartHandler&&(window.removeEventListener("resize",W._responsiveChartHandler),delete W._responsiveChartHandler)}},34220:function(nt,W,e){var M=e(10721),C=e(65657),r=e(93049).extendFlat,i=e(9829),w=e(19017),S=e(78766),h=e(20438).DESELECTDIM,l=e(35632),t=e(90694).counter,n=e(98953).modHalf,o=e(87800).isArrayOrTypedArray,a=e(87800).isTypedArraySpec,s=e(87800).decodeTypedArraySpec;W.valObjectMeta={data_array:{coerceFunction:function(x,m,y){m.set(o(x)?x:a(x)?s(x):y)}},enumerated:{coerceFunction:function(x,m,y,c){c.coerceNumber&&(x=+x),c.values.indexOf(x)===-1?m.set(y):m.set(x)},validateFunction:function(x,m){m.coerceNumber&&(x=+x);for(var y=m.values,c=0;c<y.length;c++){var p=String(y[c]);if(p.charAt(0)==="/"&&p.charAt(p.length-1)==="/"){var f=new RegExp(p.substr(1,p.length-2));if(f.test(x))return!0}else if(x===y[c])return!0}return!1}},boolean:{coerceFunction:function(x,m,y){x===!0||x===!1?m.set(x):m.set(y)}},number:{coerceFunction:function(x,m,y,c){a(x)&&(x=s(x)),!M(x)||c.min!==void 0&&x<c.min||c.max!==void 0&&x>c.max?m.set(y):m.set(+x)}},integer:{coerceFunction:function(x,m,y,c){if((c.extras||[]).indexOf(x)!==-1){m.set(x);return}a(x)&&(x=s(x)),x%1||!M(x)||c.min!==void 0&&x<c.min||c.max!==void 0&&x>c.max?m.set(y):m.set(+x)}},string:{coerceFunction:function(x,m,y,c){if(typeof x!="string"){var p=typeof x=="number";c.strict===!0||!p?m.set(y):m.set(String(x))}else c.noBlank&&!x?m.set(y):m.set(x)}},color:{coerceFunction:function(x,m,y){a(x)&&(x=s(x)),C(x).isValid()?m.set(x):m.set(y)}},colorlist:{coerceFunction:function(x,m,y){function c(p){return C(p).isValid()}!Array.isArray(x)||!x.length?m.set(y):x.every(c)?m.set(x):m.set(y)}},colorscale:{coerceFunction:function(x,m,y){m.set(w.get(x,y))}},angle:{coerceFunction:function(x,m,y){a(x)&&(x=s(x)),x==="auto"?m.set("auto"):M(x)?m.set(n(+x,360)):m.set(y)}},subplotid:{coerceFunction:function(x,m,y,c){var p=c.regex||t(y);if(typeof x=="string"&&p.test(x)){m.set(x);return}m.set(y)},validateFunction:function(x,m){var y=m.dflt;return x===y?!0:typeof x!="string"?!1:!!t(y).test(x)}},flaglist:{coerceFunction:function(x,m,y,c){if((c.extras||[]).indexOf(x)!==-1){m.set(x);return}if(typeof x!="string"){m.set(y);return}for(var p=x.split("+"),f=0;f<p.length;){var T=p[f];c.flags.indexOf(T)===-1||p.indexOf(T)<f?p.splice(f,1):f++}p.length?m.set(p.join("+")):m.set(y)}},any:{coerceFunction:function(x,m,y){x===void 0?m.set(y):m.set(a(x)?s(x):x)}},info_array:{coerceFunction:function(x,m,y,c){function p(I,V,N){var F,U={set:function(G){F=G}};return N===void 0&&(N=V.dflt),W.valObjectMeta[V.valType].coerceFunction(I,U,N,V),F}if(a(x)&&(x=s(x)),!o(x)){m.set(y);return}var f=c.dimensions===2||c.dimensions==="1-2"&&Array.isArray(x)&&o(x[0]),T=c.items,k=[],P=Array.isArray(T),g=P&&f&&o(T[0]),A=f&&P&&!g,E=P&&!A?T.length:x.length,d,_,L,b,D,B;if(y=Array.isArray(y)?y:[],f)for(d=0;d<E;d++)for(k[d]=[],L=o(x[d])?x[d]:[],A?D=T.length:P?D=T[d].length:D=L.length,_=0;_<D;_++)A?b=T[_]:P?b=T[d][_]:b=T,B=p(L[_],b,(y[d]||[])[_]),B!==void 0&&(k[d][_]=B);else for(d=0;d<E;d++)B=p(x[d],P?T[d]:T,y[d]),B!==void 0&&(k[d]=B);m.set(k)},validateFunction:function(x,m){if(!o(x))return!1;var y=m.items,c=Array.isArray(y),p=m.dimensions===2;if(!m.freeLength&&x.length!==y.length)return!1;for(var f=0;f<x.length;f++)if(p){if(!o(x[f])||!m.freeLength&&x[f].length!==y[f].length)return!1;for(var T=0;T<x[f].length;T++)if(!u(x[f][T],c?y[f][T]:y))return!1}else if(!u(x[f],c?y[f]:y))return!1;return!0}}},W.coerce=function(x,m,y,c,p){var f=l(y,c).get(),T=l(x,c),k=l(m,c),P=T.get(),g=m._template;if(P===void 0&&g&&(P=l(g,c).get(),g=0),p===void 0&&(p=f.dflt),f.arrayOk){if(o(P))return k.set(P),P;if(a(P))return P=s(P),k.set(P),P}var A=W.valObjectMeta[f.valType].coerceFunction;A(P,k,p,f);var E=k.get();return g&&E===p&&!u(P,f)&&(P=l(g,c).get(),A(P,k,p,f),E=k.get()),E},W.coerce2=function(x,m,y,c,p){var f=l(x,c),T=W.coerce(x,m,y,c,p),k=f.get();return k!=null?T:!1},W.coerceFont=function(x,m,y,c){c||(c={}),y=r({},y),y=r(y,c.overrideDflt||{});var p={family:x(m+".family",y.family),size:x(m+".size",y.size),color:x(m+".color",y.color),weight:x(m+".weight",y.weight),style:x(m+".style",y.style)};if(c.noFontVariant||(p.variant=x(m+".variant",y.variant)),c.noFontLineposition||(p.lineposition=x(m+".lineposition",y.lineposition)),c.noFontTextcase||(p.textcase=x(m+".textcase",y.textcase)),!c.noFontShadow){var f=y.shadow;f==="none"&&c.autoShadowDflt&&(f="auto"),p.shadow=x(m+".shadow",f)}return p},W.coercePattern=function(x,m,y,c){var p=x(m+".shape");if(p){x(m+".solidity"),x(m+".size");var f=x(m+".fillmode"),T=f==="overlay";if(!c){var k=x(m+".bgcolor",T?y:void 0);x(m+".fgcolor",T?S.contrast(k):y)}x(m+".fgopacity",T?.5:1)}},W.coerceHoverinfo=function(x,m,y){var c=m._module.attributes,p=c.hoverinfo?c:i,f=p.hoverinfo,T;if(y._dataLength===1){var k=f.dflt==="all"?f.flags.slice():f.dflt.split("+");k.splice(k.indexOf("name"),1),T=k.join("+")}return W.coerce(x,m,p,"hoverinfo",T)},W.coerceSelectionMarkerOpacity=function(x,m){if(x.marker){var y=x.marker.opacity;if(y!==void 0){var c,p;!o(y)&&!x.selected&&!x.unselected&&(c=y,p=h*y),m("selected.marker.opacity",c),m("unselected.marker.opacity",p)}}};function u(x,m){var y=W.valObjectMeta[m.valType];if(m.arrayOk&&o(x))return!0;if(y.validateFunction)return y.validateFunction(x,m);var c={},p=c,f={set:function(T){p=T}};return y.coerceFunction(x,f,c,m),p!==c}W.validate=u},92596:function(nt,W,e){var M=e(42696).DC,C=e(10721),r=e(48636),i=e(98953).mod,w=e(63821),S=w.BADNUM,h=w.ONEDAY,l=w.ONEHOUR,t=w.ONEMIN,n=w.ONESEC,o=w.EPOCHJD,a=e(33626),s=e(42696).aL,u=/^\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,x=/^\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,m=new Date().getFullYear()-70;function y(I){return I&&a.componentsRegistry.calendars&&typeof I=="string"&&I!=="gregorian"}W.dateTick0=function(I,V){var N=c(I,!!V);if(V<2)return N;var F=W.dateTime2ms(N,I);return F+=h*(V-1),W.ms2DateTime(F,0,I)};function c(I,V){return y(I)?V?a.getComponentMethod("calendars","CANONICAL_SUNDAY")[I]:a.getComponentMethod("calendars","CANONICAL_TICK")[I]:V?"2000-01-02":"2000-01-01"}W.dfltRange=function(I){return y(I)?a.getComponentMethod("calendars","DFLTRANGE")[I]:["2000-01-01","2001-01-01"]},W.isJSDate=function(I){return typeof I=="object"&&I!==null&&typeof I.getTime=="function"};var p,f;W.dateTime2ms=function(I,V){if(W.isJSDate(I)){var N=I.getTimezoneOffset()*t,F=(I.getUTCMinutes()-I.getMinutes())*t+(I.getUTCSeconds()-I.getSeconds())*n+(I.getUTCMilliseconds()-I.getMilliseconds());if(F){var U=3*t;N=N-U/2+i(F-N+U/2,U)}return I=Number(I)-N,I>=p&&I<=f?I:S}if(typeof I!="string"&&typeof I!="number")return S;I=String(I);var G=y(V),Y=I.charAt(0);G&&(Y==="G"||Y==="g")&&(I=I.substr(1),V="");var Q=G&&V.substr(0,7)==="chinese",ft=I.match(Q?x:u);if(!ft)return S;var ut=ft[1],lt=ft[3]||"1",K=Number(ft[5]||1),$=Number(ft[7]||0),H=Number(ft[9]||0),at=Number(ft[11]||0);if(G){if(ut.length===2)return S;ut=Number(ut);var ct;try{var et=a.getComponentMethod("calendars","getCal")(V);if(Q){var Z=lt.charAt(lt.length-1)==="i";lt=parseInt(lt,10),ct=et.newDate(ut,et.toMonthIndex(ut,lt,Z),K)}else ct=et.newDate(ut,Number(lt),K)}catch{return S}return ct?(ct.toJD()-o)*h+$*l+H*t+at*n:S}ut.length===2?ut=(Number(ut)+2e3-m)%100+m:ut=Number(ut),lt-=1;var ot=new Date(Date.UTC(2e3,lt,K,$,H));return ot.setUTCFullYear(ut),ot.getUTCMonth()!==lt||ot.getUTCDate()!==K?S:ot.getTime()+at*n},p=W.MIN_MS=W.dateTime2ms("-9999"),f=W.MAX_MS=W.dateTime2ms("9999-12-31 23:59:59.9999"),W.isDateTime=function(I,V){return W.dateTime2ms(I,V)!==S};function T(I,V){return String(I+Math.pow(10,V)).substr(1)}var k=90*h,P=3*l,g=5*t;W.ms2DateTime=function(I,V,N){if(typeof I!="number"||!(I>=p&&I<=f))return S;V||(V=0);var F=Math.floor(i(I+.05,1)*10),U=Math.round(I-F/10),G,Y,Q,ft,ut,lt;if(y(N)){var K=Math.floor(U/h)+o,$=Math.floor(i(I,h));try{G=a.getComponentMethod("calendars","getCal")(N).fromJD(K).formatDate("yyyy-mm-dd")}catch{G=s("G%Y-%m-%d")(new Date(U))}if(G.charAt(0)==="-")for(;G.length<11;)G="-0"+G.substr(1);else for(;G.length<10;)G="0"+G;Y=V<k?Math.floor($/l):0,Q=V<k?Math.floor($%l/t):0,ft=V<P?Math.floor($%t/n):0,ut=V<g?$%n*10+F:0}else lt=new Date(U),G=s("%Y-%m-%d")(lt),Y=V<k?lt.getUTCHours():0,Q=V<k?lt.getUTCMinutes():0,ft=V<P?lt.getUTCSeconds():0,ut=V<g?lt.getUTCMilliseconds()*10+F:0;return A(G,Y,Q,ft,ut)},W.ms2DateTimeLocal=function(I){if(!(I>=p+h&&I<=f-h))return S;var V=Math.floor(i(I+.05,1)*10),N=new Date(Math.round(I-V/10)),F=M("%Y-%m-%d")(N),U=N.getHours(),G=N.getMinutes(),Y=N.getSeconds(),Q=N.getUTCMilliseconds()*10+V;return A(F,U,G,Y,Q)};function A(I,V,N,F,U){if((V||N||F||U)&&(I+=" "+T(V,2)+":"+T(N,2),(F||U)&&(I+=":"+T(F,2),U))){for(var G=4;U%10===0;)G-=1,U/=10;I+="."+T(U,G)}return I}W.cleanDate=function(I,V,N){if(I===S)return V;if(W.isJSDate(I)||typeof I=="number"&&isFinite(I)){if(y(N))return r.error("JS Dates and milliseconds are incompatible with world calendars",I),V;if(I=W.ms2DateTimeLocal(+I),!I&&V!==void 0)return V}else if(!W.isDateTime(I,N))return r.error("unrecognized date",I),V;return I};var E=/%\d?f/g,d=/%h/g,_={1:"1",2:"1",3:"2",4:"2"};function L(I,V,N,F){I=I.replace(E,function(G){var Y=Math.min(+G.charAt(1)||6,6),Q=(V/1e3%1+2).toFixed(Y).substr(2).replace(/0+$/,"")||"0";return Q});var U=new Date(Math.floor(V+.05));if(I=I.replace(d,function(){return _[N("%q")(U)]}),y(F))try{I=a.getComponentMethod("calendars","worldCalFmt")(I,V,F)}catch{return"Invalid"}return N(I)(U)}var b=[59,59.9,59.99,59.999,59.9999];function D(I,V){var N=i(I+.05,h),F=T(Math.floor(N/l),2)+":"+T(i(Math.floor(N/t),60),2);if(V!=="M"){C(V)||(V=0);var U=Math.min(i(I/n,60),b[V]),G=(100+U).toFixed(V).substr(1);V>0&&(G=G.replace(/0+$/,"").replace(/[\.]$/,"")),F+=":"+G}return F}W.formatDate=function(I,V,N,F,U,G){if(U=y(U)&&U,!V)if(N==="y")V=G.year;else if(N==="m")V=G.month;else if(N==="d")V=G.dayMonth+`
2
2
  `+G.year;else return D(I,N)+`
3
3
  `+L(G.dayMonthYear,I,F,U);return L(V,I,F,U)};var B=3*h;W.incrementMonth=function(I,V,N){N=y(N)&&N;var F=i(I,h);if(I=Math.round(I-F),N)try{var U=Math.round(I/h)+o,G=a.getComponentMethod("calendars","getCal")(N),Y=G.fromJD(U);return V%12?G.add(Y,V,"m"):G.add(Y,V/12,"y"),(Y.toJD()-o)*h+F}catch{r.error("invalid ms "+I+" in calendar "+N)}var Q=new Date(I+B);return Q.setUTCMonth(Q.getUTCMonth()+V)+F-B},W.findExactDates=function(I,V){for(var N=0,F=0,U=0,G=0,Y,Q,ft=y(V)&&a.getComponentMethod("calendars","getCal")(V),ut=0;ut<I.length;ut++){if(Q=I[ut],!C(Q)){G++;continue}if(!(Q%h))if(ft)try{Y=ft.fromJD(Q/h+o),Y.day()===1?Y.month()===1?N++:F++:U++}catch{}else Y=new Date(Q),Y.getUTCDate()===1?Y.getUTCMonth()===0?N++:F++:U++}F+=N,U+=F;var lt=I.length-G;return{exactYears:N/lt,exactMonths:F/lt,exactDays:U/lt}}},95425:function(nt,W,e){var M=e(45568),C=e(48636),r=e(15236),i=e(11191);function w(m){var y;if(typeof m=="string"){if(y=document.getElementById(m),y===null)throw new Error("No DOM element with id '"+m+"' exists on the page.");return y}else if(m==null)throw new Error("DOM element provided is null or undefined");return m}function S(m){var y=M.select(m);return y.node()instanceof HTMLElement&&y.size()&&y.classed("js-plotly-plot")}function h(m){var y=m&&m.parentNode;y&&y.removeChild(m)}function l(m,y){t("global",m,y)}function t(m,y,c){var p="plotly.js-style-"+m,f=document.getElementById(p);f||(f=document.createElement("style"),f.setAttribute("id",p),f.appendChild(document.createTextNode("")),document.head.appendChild(f));var T=f.sheet;T.insertRule?T.insertRule(y+"{"+c+"}",0):T.addRule?T.addRule(y,c,0):C.warn("addStyleRule failed")}function n(m){var y="plotly.js-style-"+m,c=document.getElementById(y);c&&h(c)}function o(m){var y=s(m),c=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];return y.forEach(function(p){var f=a(p);if(f){var T=r.convertCssMatrix(f);c=i.multiply(c,c,T)}}),c}function a(m){var y=window.getComputedStyle(m,null),c=y.getPropertyValue("-webkit-transform")||y.getPropertyValue("-moz-transform")||y.getPropertyValue("-ms-transform")||y.getPropertyValue("-o-transform")||y.getPropertyValue("transform");return c==="none"?null:c.replace("matrix","").replace("3d","").slice(1,-1).split(",").map(function(p){return+p})}function s(m){for(var y=[];u(m);)y.push(m),m=m.parentNode,typeof ShadowRoot=="function"&&m instanceof ShadowRoot&&(m=m.host);return y}function u(m){return m&&(m instanceof Element||m instanceof HTMLElement)}function x(m,y){return m&&y&&m.top===y.top&&m.left===y.left&&m.right===y.right&&m.bottom===y.bottom}nt.exports={getGraphDiv:w,isPlotDiv:S,removeElement:h,addStyleRule:l,addRelatedStyleRule:t,deleteRelatedStyleRule:n,getFullTransformMatrix:o,getElementTransformMatrix:a,getElementAndAncestors:s,equalDomRects:x}},68596:function(nt,W,e){var M=e(7683).EventEmitter,C={init:function(r){if(r._ev instanceof M)return r;var i=new M,w=new M;return r._ev=i,r._internalEv=w,r.on=i.on.bind(i),r.once=i.once.bind(i),r.removeListener=i.removeListener.bind(i),r.removeAllListeners=i.removeAllListeners.bind(i),r._internalOn=w.on.bind(w),r._internalOnce=w.once.bind(w),r._removeInternalListener=w.removeListener.bind(w),r._removeAllInternalListeners=w.removeAllListeners.bind(w),r.emit=function(S,h){typeof jQuery<"u"&&jQuery(r).trigger(S,h),i.emit(S,h),w.emit(S,h)},r},triggerHandler:function(r,i,w){var S,h;typeof jQuery<"u"&&(S=jQuery(r).triggerHandler(i,w));var l=r._ev;if(!l)return S;var t=l._events[i];if(!t)return S;function n(a){if(a.listener){if(l.removeListener(i,a.listener),!a.fired)return a.fired=!0,a.listener.apply(l,[w])}else return a.apply(l,[w])}t=Array.isArray(t)?t:[t];var o;for(o=0;o<t.length-1;o++)n(t[o]);return h=n(t[o]),S!==void 0?S:h},purge:function(r){return delete r._ev,delete r.on,delete r.once,delete r.removeListener,delete r.removeAllListeners,delete r.emit,delete r._ev,delete r._internalEv,delete r._internalOn,delete r._internalOnce,delete r._removeInternalListener,delete r._removeAllInternalListeners,r}};nt.exports=C},93049:function(nt,W,e){var M=e(56174),C=Array.isArray;function r(w,S){var h,l;for(h=0;h<w.length;h++){if(l=w[h],l!==null&&typeof l=="object")return!1;l!==void 0&&(S[h]=l)}return!0}W.extendFlat=function(){return i(arguments,!1,!1,!1)},W.extendDeep=function(){return i(arguments,!0,!1,!1)},W.extendDeepAll=function(){return i(arguments,!0,!0,!1)},W.extendDeepNoArrays=function(){return i(arguments,!0,!1,!0)};function i(w,S,h,l){var t=w[0],n=w.length,o,a,s,u,x,m,y;if(n===2&&C(t)&&C(w[1])&&t.length===0){if(y=r(w[1],t),y)return t;t.splice(0,t.length)}for(var c=1;c<n;c++){o=w[c];for(a in o)s=t[a],u=o[a],l&&C(u)?t[a]=u:S&&u&&(M(u)||(x=C(u)))?(x?(x=!1,m=s&&C(s)?s:[]):m=s&&M(s)?s:{},t[a]=i([m,u],S,h,l)):(typeof u<"u"||h)&&(t[a]=u)}return t}},48965:function(nt){nt.exports=function(W){for(var e={},M=[],C=0,r=0;r<W.length;r++){var i=W[r];e[i]!==1&&(e[i]=1,M[C++]=i)}return M}},78926:function(nt){nt.exports=function(C){for(var r=M(C)?e:W,i=[],w=0;w<C.length;w++){var S=C[w];r(S)&&i.push(S)}return i};function W(C){return C.visible===!0}function e(C){var r=C[0].trace;return r.visible===!0&&r._length!==0}function M(C){return Array.isArray(C)&&Array.isArray(C[0])&&C[0][0]&&C[0][0].trace}},3994:function(nt,W,e){var M=e(45568),C=e(78171),{area:r}=e(61990),{centroid:i}=e(30035),{bbox:w}=e(25368),S=e(29527),h=e(48636),l=e(56174),t=e(35632),n=e(80899),o=Object.keys(C),a={"ISO-3":S,"USA-states":S,"country names":s};function s(T){for(var k=0;k<o.length;k++){var P=o[k],g=new RegExp(C[P]);if(g.test(T.trim().toLowerCase()))return P}return h.log("Unrecognized country name: "+T+"."),!1}function u(T,k,P){if(!k||typeof k!="string")return!1;var g=a[T](k),A,E,d;if(g){if(T==="USA-states")for(A=[],d=0;d<P.length;d++)E=P[d],E.properties&&E.properties.gu&&E.properties.gu==="USA"&&A.push(E);else A=P;for(d=0;d<A.length;d++)if(E=A[d],E.id===g)return E;h.log(["Location with id",g,"does not have a matching topojson feature at this resolution."].join(" "))}return!1}function x(T){var k=T.geometry,P=k.coordinates,g=T.id,A=[],E,d,_,L;function b(D){for(var B=0;B<D.length-1;B++)if(D[B][0]>0&&D[B+1][0]<0)return B;return null}switch(g==="RUS"||g==="FJI"?E=function(D){var B;if(b(D)===null)B=D;else for(B=new Array(D.length),L=0;L<D.length;L++)B[L]=[D[L][0]<0?D[L][0]+360:D[L][0],D[L][1]];A.push(n.tester(B))}:g==="ATA"?E=function(D){var B=b(D);if(B===null)return A.push(n.tester(D));var I=new Array(D.length+1),V=0;for(L=0;L<D.length;L++)L>B?I[V++]=[D[L][0]+360,D[L][1]]:L===B?(I[V++]=D[L],I[V++]=[D[L][0],-90]):I[V++]=D[L];var N=n.tester(I);N.pts.pop(),A.push(N)}:E=function(D){A.push(n.tester(D))},k.type){case"MultiPolygon":for(d=0;d<P.length;d++)for(_=0;_<P[d].length;_++)E(P[d][_]);break;case"Polygon":for(d=0;d<P.length;d++)E(P[d]);break}return A}function m(T){var k=T.geojson,P=window.PlotlyGeoAssets||{},g=typeof k=="string"?P[k]:k;return l(g)?g:(h.error("Oops ... something went wrong when fetching "+k),!1)}function y(T){var k=T[0].trace,P=m(k);if(!P)return!1;var g={},A=[],E;for(E=0;E<k._length;E++){var d=T[E];(d.loc||d.loc===0)&&(g[d.loc]=d)}function _(D){var B=t(D,k.featureidkey||"id").get(),I=g[B];if(I){var V=D.geometry;if(V.type==="Polygon"||V.type==="MultiPolygon"){var N={type:"Feature",id:B,geometry:V,properties:{}};N.geometry.coordinates.length>0?N.properties.ct=c(N):N.properties.ct=[NaN,NaN],I.fIn=D,I.fOut=N,A.push(N)}else h.log(["Location",I.loc,"does not have a valid GeoJSON geometry.","Traces with locationmode *geojson-id* only support","*Polygon* and *MultiPolygon* geometries."].join(" "))}delete g[B]}switch(P.type){case"FeatureCollection":var L=P.features;for(E=0;E<L.length;E++)_(L[E]);break;case"Feature":_(P);break;default:return h.warn(["Invalid GeoJSON type",(P.type||"none")+".","Traces with locationmode *geojson-id* only support","*FeatureCollection* and *Feature* types."].join(" ")),!1}for(var b in g)h.log(["Location *"+b+"*","does not have a matching feature with id-key","*"+k.featureidkey+"*."].join(" "));return A}function c(T){var k=T.geometry,P;if(k.type==="MultiPolygon")for(var g=k.coordinates,A=0,E=0;E<g.length;E++){var d={type:"Polygon",coordinates:g[E]},_=r(d);_>A&&(A=_,P=d)}else P=k;return i(P).geometry.coordinates}function p(T){var k=window.PlotlyGeoAssets||{},P=[];function g(L){return new Promise(function(b,D){M.json(L,function(B,I){if(B){delete k[L];var V=B.status===404?'GeoJSON at URL "'+L+'" does not exist.':"Unexpected error while fetching from "+L;return D(new Error(V))}return k[L]=I,b(I)})})}function A(L){return new Promise(function(b,D){var B=0,I=setInterval(function(){if(k[L]&&k[L]!=="pending")return clearInterval(I),b(k[L]);if(B>100)return clearInterval(I),D("Unexpected error while fetching from "+L);B++},50)})}for(var E=0;E<T.length;E++){var d=T[E][0].trace,_=d.geojson;typeof _=="string"&&(k[_]?k[_]==="pending"&&P.push(A(_)):(k[_]="pending",P.push(g(_))))}return P}function f(T){return w(T)}nt.exports={locationToFeature:u,feature2polygons:x,getTraceGeojson:m,extractTraceFeature:y,fetchTraceGeoData:p,computeBbox:f}},39532:function(nt,W,e){var M=e(63821).BADNUM;W.calcTraceToLineCoords=function(C){for(var r=C[0].trace,i=r.connectgaps,w=[],S=[],h=0;h<C.length;h++){var l=C[h],t=l.lonlat;t[0]!==M?S.push(t):!i&&S.length>0&&(w.push(S),S=[])}return S.length>0&&w.push(S),w},W.makeLine=function(C){return C.length===1?{type:"LineString",coordinates:C[0]}:{type:"MultiLineString",coordinates:C}},W.makePolygon=function(C){if(C.length===1)return{type:"Polygon",coordinates:C};for(var r=new Array(C.length),i=0;i<C.length;i++)r[i]=[C[i]];return{type:"MultiPolygon",coordinates:r}},W.makeBlank=function(){return{type:"Point",coordinates:[]}}},3447:function(nt,W,e){var M=e(98953).mod;W.segmentsIntersect=C;function C(h,l,t,n,o,a,s,u){var x=t-h,m=o-h,y=s-o,c=n-l,p=a-l,f=u-a,T=x*f-y*c;if(T===0)return null;var k=(m*f-y*p)/T,P=(m*c-x*p)/T;return P<0||P>1||k<0||k>1?null:{x:h+x*k,y:l+c*k}}W.segmentDistance=function(h,l,t,n,o,a,s,u){if(C(h,l,t,n,o,a,s,u))return 0;var x=t-h,m=n-l,y=s-o,c=u-a,p=x*x+m*m,f=y*y+c*c,T=Math.min(r(x,m,p,o-h,a-l),r(x,m,p,s-h,u-l),r(y,c,f,h-o,l-a),r(y,c,f,t-o,n-a));return Math.sqrt(T)};function r(h,l,t,n,o){var a=n*h+o*l;if(a<0)return n*n+o*o;if(a>t){var s=n-h,u=o-l;return s*s+u*u}else{var x=n*l-o*h;return x*x/t}}var i,w,S;W.getTextLocation=function(h,l,t,n){if((h!==w||n!==S)&&(i={},w=h,S=n),i[t])return i[t];var o=h.getPointAtLength(M(t-n/2,l)),a=h.getPointAtLength(M(t+n/2,l)),s=Math.atan((a.y-o.y)/(a.x-o.x)),u=h.getPointAtLength(M(t,l)),x=(u.x*4+o.x+a.x)/6,m=(u.y*4+o.y+a.y)/6,y={x,y:m,theta:s};return i[t]=y,y},W.clearLocationCache=function(){w=null},W.getVisibleSegment=function(h,l,t){var n=l.left,o=l.right,a=l.top,s=l.bottom,u=0,x=h.getTotalLength(),m=x,y,c;function p(T){var k=h.getPointAtLength(T);T===0?y=k:T===x&&(c=k);var P=k.x<n?n-k.x:k.x>o?k.x-o:0,g=k.y<a?a-k.y:k.y>s?k.y-s:0;return Math.sqrt(P*P+g*g)}for(var f=p(u);f;){if(u+=f+t,u>m)return;f=p(u)}for(f=p(m);f;){if(m-=f+t,u>m)return;f=p(m)}return{min:u,max:m,len:m-u,total:x,isClosed:u===0&&m===x&&Math.abs(y.x-c.x)<.1&&Math.abs(y.y-c.y)<.1}},W.findPointOnPath=function(h,l,t,n){n=n||{};for(var o=n.pathLength||h.getTotalLength(),a=n.tolerance||.001,s=n.iterationLimit||30,u=h.getPointAtLength(0)[t]>h.getPointAtLength(o)[t]?-1:1,x=0,m=0,y=o,c,p,f;x<s;){if(c=(m+y)/2,p=h.getPointAtLength(c),f=p[t]-l,Math.abs(f)<a)return p;u*f>0?y=c:m=c,x++}return p}},46998:function(nt,W,e){var M=e(10721),C=e(65657),r=e(162),i=e(88856),w=e(10229).defaultLine,S=e(87800).isArrayOrTypedArray,h=r(w),l=1;function t(u,x){var m=u;return m[3]*=x,m}function n(u){if(M(u))return h;var x=r(u);return x.length?x:h}function o(u){return M(u)?u:l}function a(u,x,m){var y=u.color;y&&y._inputArray&&(y=y._inputArray);var c=S(y),p=S(x),f=i.extractOpts(u),T=[],k,P,g,A,E;if(f.colorscale!==void 0?k=i.makeColorScaleFuncFromTrace(u):k=n,c?P=function(_,L){return _[L]===void 0?h:r(k(_[L]))}:P=n,p?g=function(_,L){return _[L]===void 0?l:o(_[L])}:g=o,c||p)for(var d=0;d<m;d++)A=P(y,d),E=g(x,d),T[d]=t(A,E);else T=t(r(y),x);return T}function s(u){var x=i.extractOpts(u),m=x.colorscale;return x.reversescale&&(m=i.flipScale(x.colorscale)),m.map(function(y){var c=y[0],p=C(y[1]),f=p.toRgb();return{index:c,rgb:[f.r,f.g,f.b,f.a]}})}nt.exports={formatColor:a,parseColorScale:s}},71293:function(nt,W,e){var M=e(29527);function C(r){return[r]}nt.exports={keyFun:function(r){return r.key},repeat:C,descend:M,wrap:C,unwrap:function(r){return r[0]}}},29527:function(nt){nt.exports=function(W){return W}},10688:function(nt){nt.exports=function(W,e){if(!e)return W;var M=1/Math.abs(e),C=M>1?(M*W+M*e)/M:W+e,r=String(C).length;if(r>16){var i=String(e).length,w=String(W).length;if(r>=w+i){var S=parseFloat(C).toPrecision(12);S.indexOf("e+")===-1&&(C=+S)}}return C}},34809:function(nt,W,e){var M=e(45568),C=e(42696).aL,r=e(36464).GP,i=e(10721),w=e(63821),S=w.FP_SAFE,h=-S,l=w.BADNUM,t=nt.exports={};t.adjustFormat=function(at){return!at||/^\d[.]\df/.test(at)||/[.]\d%/.test(at)?at:at==="0.f"?"~f":/^\d%/.test(at)?"~%":/^\ds/.test(at)?"~s":!/^[~,.0$]/.test(at)&&/[&fps]/.test(at)?"~"+at:at};var n={};t.warnBadFormat=function(at){var ct=String(at);n[ct]||(n[ct]=1,t.warn('encountered bad format: "'+ct+'"'))},t.noFormat=function(at){return String(at)},t.numberFormat=function(at){var ct;try{ct=r(t.adjustFormat(at))}catch{return t.warnBadFormat(at),t.noFormat}return ct},t.nestedProperty=e(35632),t.keyedContainer=e(34967),t.relativeAttr=e(82047),t.isPlainObject=e(56174),t.toLogRange=e(8083),t.relinkPrivateKeys=e(80428);var o=e(87800);t.isArrayBuffer=o.isArrayBuffer,t.isTypedArray=o.isTypedArray,t.isArrayOrTypedArray=o.isArrayOrTypedArray,t.isArray1D=o.isArray1D,t.ensureArray=o.ensureArray,t.concat=o.concat,t.maxRowLength=o.maxRowLength,t.minRowLength=o.minRowLength;var a=e(98953);t.mod=a.mod,t.modHalf=a.modHalf;var s=e(34220);t.valObjectMeta=s.valObjectMeta,t.coerce=s.coerce,t.coerce2=s.coerce2,t.coerceFont=s.coerceFont,t.coercePattern=s.coercePattern,t.coerceHoverinfo=s.coerceHoverinfo,t.coerceSelectionMarkerOpacity=s.coerceSelectionMarkerOpacity,t.validate=s.validate;var u=e(92596);t.dateTime2ms=u.dateTime2ms,t.isDateTime=u.isDateTime,t.ms2DateTime=u.ms2DateTime,t.ms2DateTimeLocal=u.ms2DateTimeLocal,t.cleanDate=u.cleanDate,t.isJSDate=u.isJSDate,t.formatDate=u.formatDate,t.incrementMonth=u.incrementMonth,t.dateTick0=u.dateTick0,t.dfltRange=u.dfltRange,t.findExactDates=u.findExactDates,t.MIN_MS=u.MIN_MS,t.MAX_MS=u.MAX_MS;var x=e(98813);t.findBin=x.findBin,t.sorterAsc=x.sorterAsc,t.sorterDes=x.sorterDes,t.distinctVals=x.distinctVals,t.roundUp=x.roundUp,t.sort=x.sort,t.findIndexOfMin=x.findIndexOfMin,t.sortObjectKeys=e(62994);var m=e(89258);t.aggNums=m.aggNums,t.len=m.len,t.mean=m.mean,t.geometricMean=m.geometricMean,t.median=m.median,t.midRange=m.midRange,t.variance=m.variance,t.stdev=m.stdev,t.interp=m.interp;var y=e(15236);t.init2dArray=y.init2dArray,t.transposeRagged=y.transposeRagged,t.dot=y.dot,t.translationMatrix=y.translationMatrix,t.rotationMatrix=y.rotationMatrix,t.rotationXYMatrix=y.rotationXYMatrix,t.apply3DTransform=y.apply3DTransform,t.apply2DTransform=y.apply2DTransform,t.apply2DTransform2=y.apply2DTransform2,t.convertCssMatrix=y.convertCssMatrix,t.inverseTransformMatrix=y.inverseTransformMatrix;var c=e(44313);t.deg2rad=c.deg2rad,t.rad2deg=c.rad2deg,t.angleDelta=c.angleDelta,t.angleDist=c.angleDist,t.isFullCircle=c.isFullCircle,t.isAngleInsideSector=c.isAngleInsideSector,t.isPtInsideSector=c.isPtInsideSector,t.pathArc=c.pathArc,t.pathSector=c.pathSector,t.pathAnnulus=c.pathAnnulus;var p=e(32546);t.isLeftAnchor=p.isLeftAnchor,t.isCenterAnchor=p.isCenterAnchor,t.isRightAnchor=p.isRightAnchor,t.isTopAnchor=p.isTopAnchor,t.isMiddleAnchor=p.isMiddleAnchor,t.isBottomAnchor=p.isBottomAnchor;var f=e(3447);t.segmentsIntersect=f.segmentsIntersect,t.segmentDistance=f.segmentDistance,t.getTextLocation=f.getTextLocation,t.clearLocationCache=f.clearLocationCache,t.getVisibleSegment=f.getVisibleSegment,t.findPointOnPath=f.findPointOnPath;var T=e(93049);t.extendFlat=T.extendFlat,t.extendDeep=T.extendDeep,t.extendDeepAll=T.extendDeepAll,t.extendDeepNoArrays=T.extendDeepNoArrays;var k=e(48636);t.log=k.log,t.warn=k.warn,t.error=k.error;var P=e(90694);t.counterRegex=P.counter;var g=e(64025);t.throttle=g.throttle,t.throttleDone=g.done,t.clearThrottle=g.clear;var A=e(95425);t.getGraphDiv=A.getGraphDiv,t.isPlotDiv=A.isPlotDiv,t.removeElement=A.removeElement,t.addStyleRule=A.addStyleRule,t.addRelatedStyleRule=A.addRelatedStyleRule,t.deleteRelatedStyleRule=A.deleteRelatedStyleRule,t.getFullTransformMatrix=A.getFullTransformMatrix,t.getElementTransformMatrix=A.getElementTransformMatrix,t.getElementAndAncestors=A.getElementAndAncestors,t.equalDomRects=A.equalDomRects,t.clearResponsive=e(23493),t.preserveDrawingBuffer=e(32521),t.makeTraceGroups=e(75944),t._=e(38514),t.notifier=e(87355),t.filterUnique=e(48965),t.filterVisible=e(78926),t.pushUnique=e(36539),t.increment=e(10688),t.cleanNumber=e(44498),t.ensureNumber=function(at){return i(at)?(at=Number(at),at>S||at<h?l:at):l},t.isIndex=function(at,ct){return ct!==void 0&&at>=ct?!1:i(at)&&at>=0&&at%1===0},t.noop=e(4969),t.identity=e(29527),t.repeat=function(at,ct){for(var et=new Array(ct),Z=0;Z<ct;Z++)et[Z]=at;return et},t.swapAttrs=function(at,ct,et,Z){et||(et="x"),Z||(Z="y");for(var ot=0;ot<ct.length;ot++){var st=ct[ot],dt=t.nestedProperty(at,st.replace("?",et)),xt=t.nestedProperty(at,st.replace("?",Z)),At=dt.get();dt.set(xt.get()),xt.set(At)}},t.raiseToTop=function(at){at.parentNode.appendChild(at)},t.cancelTransition=function(at){return at.transition().duration(0)},t.constrain=function(at,ct,et){return ct>et?Math.max(et,Math.min(ct,at)):Math.max(ct,Math.min(et,at))},t.bBoxIntersect=function(at,ct,et){return et=et||0,at.left<=ct.right+et&&ct.left<=at.right+et&&at.top<=ct.bottom+et&&ct.top<=at.bottom+et},t.simpleMap=function(at,ct,et,Z,ot){for(var st=at.length,dt=new Array(st),xt=0;xt<st;xt++)dt[xt]=ct(at[xt],et,Z,ot);return dt},t.randstr=function at(ct,et,Z,ot){if(Z||(Z=16),et===void 0&&(et=24),et<=0)return"0";var st=Math.log(Math.pow(2,et))/Math.log(Z),dt="",xt,At,St;for(xt=2;st===1/0;xt*=2)st=Math.log(Math.pow(2,et/xt))/Math.log(Z)*xt;var Nt=st-Math.floor(st);for(xt=0;xt<Math.floor(st);xt++)St=Math.floor(Math.random()*Z).toString(Z),dt=St+dt;Nt&&(At=Math.pow(Z,Nt),St=Math.floor(Math.random()*At).toString(Z),dt=St+dt);var Wt=parseInt(dt,Z);return ct&&ct[dt]||Wt!==1/0&&Wt>=Math.pow(2,et)?ot>10?(t.warn("randstr failed uniqueness"),dt):at(ct,et,Z,(ot||0)+1):dt},t.OptionControl=function(at,ct){at||(at={}),ct||(ct="opt");var et={};return et.optionList=[],et._newoption=function(Z){Z[ct]=at,et[Z.name]=Z,et.optionList.push(Z)},et["_"+ct]=at,et},t.smooth=function(at,ct){if(ct=Math.round(ct)||0,ct<2)return at;var et=at.length,Z=2*et,ot=2*ct-1,st=new Array(ot),dt=new Array(et),xt,At,St,Nt;for(xt=0;xt<ot;xt++)st[xt]=(1-Math.cos(Math.PI*(xt+1)/ct))/(2*ct);for(xt=0;xt<et;xt++){for(Nt=0,At=0;At<ot;At++)St=xt+At+1-ct,St<-et?St-=Z*Math.round(St/Z):St>=Z&&(St-=Z*Math.floor(St/Z)),St<0?St=-1-St:St>=et&&(St=Z-1-St),Nt+=at[St]*st[At];dt[xt]=Nt}return dt},t.syncOrAsync=function(at,ct,et){var Z,ot;function st(){return t.syncOrAsync(at,ct,et)}for(;at.length;)if(ot=at.splice(0,1)[0],Z=ot(ct),Z&&Z.then)return Z.then(st);return et&&et(ct)},t.stripTrailingSlash=function(at){return at.substr(-1)==="/"?at.substr(0,at.length-1):at},t.noneOrAll=function(at,ct,et){if(at){var Z=!1,ot=!0,st,dt;for(st=0;st<et.length;st++)dt=at[et[st]],dt!=null?Z=!0:ot=!1;if(Z&&!ot)for(st=0;st<et.length;st++)at[et[st]]=ct[et[st]]}},t.mergeArray=function(at,ct,et,Z){var ot=typeof Z=="function";if(t.isArrayOrTypedArray(at))for(var st=Math.min(at.length,ct.length),dt=0;dt<st;dt++){var xt=at[dt];ct[dt][et]=ot?Z(xt):xt}},t.mergeArrayCastPositive=function(at,ct,et){return t.mergeArray(at,ct,et,function(Z){var ot=+Z;return isFinite(ot)&&ot>0?ot:0})},t.fillArray=function(at,ct,et,Z){if(Z=Z||t.identity,t.isArrayOrTypedArray(at))for(var ot=0;ot<ct.length;ot++)ct[ot][et]=Z(at[ot])},t.castOption=function(at,ct,et,Z){Z=Z||t.identity;var ot=t.nestedProperty(at,et).get();return t.isArrayOrTypedArray(ot)?Array.isArray(ct)&&t.isArrayOrTypedArray(ot[ct[0]])?Z(ot[ct[0]][ct[1]]):Z(ot[ct]):ot},t.extractOption=function(at,ct,et,Z){if(et in at)return at[et];var ot=t.nestedProperty(ct,Z).get();if(!Array.isArray(ot))return ot};function E(at){var ct={};for(var et in at)for(var Z=at[et],ot=0;ot<Z.length;ot++)ct[Z[ot]]=+et;return ct}t.tagSelected=function(at,ct,et){var Z=ct.selectedpoints,ot=ct._indexToPoints,st;ot&&(st=E(ot));function dt(Wt){return Wt!==void 0&&Wt<at.length}for(var xt=0;xt<Z.length;xt++){var At=Z[xt];if(t.isIndex(At)||t.isArrayOrTypedArray(At)&&t.isIndex(At[0])&&t.isIndex(At[1])){var St=st?st[At]:At,Nt=et?et[St]:St;dt(Nt)&&(at[Nt].selected=1)}}},t.selIndices2selPoints=function(at){var ct=at.selectedpoints,et=at._indexToPoints;if(et){for(var Z=E(et),ot=[],st=0;st<ct.length;st++){var dt=ct[st];if(t.isIndex(dt)){var xt=Z[dt];t.isIndex(xt)&&ot.push(xt)}}return ot}else return ct},t.getTargetArray=function(at,ct){var et=ct.target;if(typeof et=="string"&&et){var Z=t.nestedProperty(at,et).get();return t.isArrayOrTypedArray(Z)?Z:!1}else if(t.isArrayOrTypedArray(et))return et;return!1};function d(at,ct,et){var Z={};typeof ct!="object"&&(ct={});var ot=et==="pieLike"?-1:3,st=Object.keys(at),dt,xt,At;for(dt=0;dt<st.length;dt++)xt=st[dt],At=at[xt],!(xt.charAt(0)==="_"||typeof At=="function")&&(xt==="module"?Z[xt]=At:Array.isArray(At)?xt==="colorscale"||ot===-1?Z[xt]=At.slice():Z[xt]=At.slice(0,ot):t.isTypedArray(At)?ot===-1?Z[xt]=At.subarray():Z[xt]=At.subarray(0,ot):At&&typeof At=="object"?Z[xt]=d(at[xt],ct[xt],et):Z[xt]=At);for(st=Object.keys(ct),dt=0;dt<st.length;dt++)xt=st[dt],At=ct[xt],(typeof At!="object"||!(xt in Z)||typeof Z[xt]!="object")&&(Z[xt]=At);return Z}t.minExtend=d,t.titleCase=function(at){return at.charAt(0).toUpperCase()+at.substr(1)},t.containsAny=function(at,ct){for(var et=0;et<ct.length;et++)if(at.indexOf(ct[et])!==-1)return!0;return!1},t.isIE=function(){return typeof window.navigator.msSaveBlob<"u"};var _=/Version\/[\d\.]+.*Safari/;t.isSafari=function(){return _.test(window.navigator.userAgent)};var L=/iPad|iPhone|iPod/;t.isIOS=function(){return L.test(window.navigator.userAgent)};var b=/Firefox\/(\d+)\.\d+/;t.getFirefoxVersion=function(){var at=b.exec(window.navigator.userAgent);if(at&&at.length===2){var ct=parseInt(at[1]);if(!isNaN(ct))return ct}return null},t.isD3Selection=function(at){return at instanceof M.selection},t.ensureSingle=function(at,ct,et,Z){var ot=at.select(ct+(et?"."+et:""));if(ot.size())return ot;var st=at.append(ct);return et&&st.classed(et,!0),Z&&st.call(Z),st},t.ensureSingleById=function(at,ct,et,Z){var ot=at.select(ct+"#"+et);if(ot.size())return ot;var st=at.append(ct).attr("id",et);return Z&&st.call(Z),st},t.objectFromPath=function(at,ct){for(var et=at.split("."),Z,ot=Z={},st=0;st<et.length;st++){var dt=et[st],xt=null,At=et[st].match(/(.*)\[([0-9]+)\]/);At?(dt=At[1],xt=At[2],Z=Z[dt]=[],st===et.length-1?Z[xt]=ct:Z[xt]={},Z=Z[xt]):(st===et.length-1?Z[dt]=ct:Z[dt]={},Z=Z[dt])}return ot};var D=/^([^\[\.]+)\.(.+)?/,B=/^([^\.]+)\[([0-9]+)\](\.)?(.+)?/;function I(at){return at.slice(0,2)==="__"}t.expandObjectPaths=function(at){var ct,et,Z,ot,st,dt,xt;if(typeof at=="object"&&!Array.isArray(at)){for(et in at)if(at.hasOwnProperty(et))if(ct=et.match(D)){if(ot=at[et],Z=ct[1],I(Z))continue;delete at[et],at[Z]=t.extendDeepNoArrays(at[Z]||{},t.objectFromPath(et,t.expandObjectPaths(ot))[Z])}else if(ct=et.match(B)){if(ot=at[et],Z=ct[1],I(Z))continue;if(st=parseInt(ct[2]),delete at[et],at[Z]=at[Z]||[],ct[3]===".")xt=ct[4],dt=at[Z][st]=at[Z][st]||{},t.extendDeepNoArrays(dt,t.objectFromPath(xt,t.expandObjectPaths(ot)));else{if(I(Z))continue;at[Z][st]=t.expandObjectPaths(ot)}}else{if(I(et))continue;at[et]=t.expandObjectPaths(at[et])}}return at},t.numSeparate=function(at,ct,et){if(et||(et=!1),typeof ct!="string"||ct.length===0)throw new Error("Separator string required for formatting!");typeof at=="number"&&(at=String(at));var Z=/(\d+)(\d{3})/,ot=ct.charAt(0),st=ct.charAt(1),dt=at.split("."),xt=dt[0],At=dt.length>1?ot+dt[1]:"";if(st&&(dt.length>1||xt.length>4||et))for(;Z.test(xt);)xt=xt.replace(Z,"$1"+st+"$2");return xt+At},t.TEMPLATE_STRING_REGEX=/%{([^\s%{}:]*)([:|\|][^}]*)?}/g;var V=/^\w*$/;t.templateString=function(at,ct){var et={};return at.replace(t.TEMPLATE_STRING_REGEX,function(Z,ot){var st;return V.test(ot)?st=ct[ot]:(et[ot]=et[ot]||t.nestedProperty(ct,ot).get,st=et[ot]()),t.isValidTextValue(st)?st:""})};var N={max:10,count:0,name:"hovertemplate"};t.hovertemplateString=function(){return ft.apply(N,arguments)};var F={max:10,count:0,name:"texttemplate"};t.texttemplateString=function(){return ft.apply(F,arguments)};var U=/^(\S+)([\*\/])(-?\d+(\.\d+)?)$/;function G(at){var ct=at.match(U);return ct?{key:ct[1],op:ct[2],number:Number(ct[3])}:{key:at,op:null,number:null}}var Y={max:10,count:0,name:"texttemplate",parseMultDiv:!0};t.texttemplateStringForShapes=function(){return ft.apply(Y,arguments)};var Q=/^[:|\|]/;function ft(at,ct,et){var Z=this,ot=arguments;ct||(ct={});var st={};return at.replace(t.TEMPLATE_STRING_REGEX,function(dt,xt,At){var St=xt==="xother"||xt==="yother",Nt=xt==="_xother"||xt==="_yother",Wt=xt==="_xother_"||xt==="_yother_",Vt=xt==="xother_"||xt==="yother_",jt=St||Nt||Vt||Wt,Dt=xt;(Nt||Wt)&&(Dt=Dt.substring(1)),(Vt||Wt)&&(Dt=Dt.substring(0,Dt.length-1));var kt=null,Bt=null;if(Z.parseMultDiv){var Ot=G(Dt);Dt=Ot.key,kt=Ot.op,Bt=Ot.number}var Ht;if(jt){if(Ht=ct[Dt],Ht===void 0)return""}else{var ye,Qt;for(Qt=3;Qt<ot.length;Qt++)if(ye=ot[Qt],!!ye){if(ye.hasOwnProperty(Dt)){Ht=ye[Dt];break}if(V.test(Dt)||(Ht=t.nestedProperty(ye,Dt).get(),Ht=st[Dt]||t.nestedProperty(ye,Dt).get(),Ht&&(st[Dt]=Ht)),Ht!==void 0)break}}if(Ht!==void 0&&(kt==="*"&&(Ht*=Bt),kt==="/"&&(Ht/=Bt)),Ht===void 0&&Z)return Z.count<Z.max&&(t.warn("Variable '"+Dt+"' in "+Z.name+" could not be found!"),Ht=dt),Z.count===Z.max&&t.warn("Too many "+Z.name+" warnings - additional warnings will be suppressed"),Z.count++,dt;if(At){var _e;if(At[0]===":"&&(_e=et?et.numberFormat:t.numberFormat,Ht!==""&&(Ht=_e(At.replace(Q,""))(Ht))),At[0]==="|"){_e=et?et.timeFormat:C;var ie=t.dateTime2ms(Ht);Ht=t.formatDate(ie,At.replace(Q,""),!1,_e)}}else{var Ae=Dt+"Label";ct.hasOwnProperty(Ae)&&(Ht=ct[Ae])}return jt&&(Ht="("+Ht+")",(Nt||Wt)&&(Ht=" "+Ht),(Vt||Wt)&&(Ht=Ht+" ")),Ht})}var ut=48,lt=57;t.subplotSort=function(at,ct){for(var et=Math.min(at.length,ct.length)+1,Z=0,ot=0,st=0;st<et;st++){var dt=at.charCodeAt(st)||0,xt=ct.charCodeAt(st)||0,At=dt>=ut&&dt<=lt,St=xt>=ut&&xt<=lt;if(At&&(Z=10*Z+dt-ut),St&&(ot=10*ot+xt-ut),!At||!St){if(Z!==ot)return Z-ot;if(dt!==xt)return dt-xt}}return ot-Z};var K=2e9;t.seedPseudoRandom=function(){K=2e9},t.pseudoRandom=function(){var at=K;return K=(69069*K+1)%4294967296,Math.abs(K-at)<429496729?t.pseudoRandom():K/4294967296},t.fillText=function(at,ct,et){var Z=Array.isArray(et)?function(dt){et.push(dt)}:function(dt){et.text=dt},ot=t.extractOption(at,ct,"htx","hovertext");if(t.isValidTextValue(ot))return Z(ot);var st=t.extractOption(at,ct,"tx","text");if(t.isValidTextValue(st))return Z(st)},t.isValidTextValue=function(at){return at||at===0},t.formatPercent=function(at,ct){ct=ct||0;for(var et=(Math.round(100*at*Math.pow(10,ct))*Math.pow(.1,ct)).toFixed(ct)+"%",Z=0;Z<ct;Z++)et.indexOf(".")!==-1&&(et=et.replace("0%","%"),et=et.replace(".%","%"));return et},t.isHidden=function(at){var ct=window.getComputedStyle(at).display;return!ct||ct==="none"},t.strTranslate=function(at,ct){return at||ct?"translate("+at+","+ct+")":""},t.strRotate=function(at){return at?"rotate("+at+")":""},t.strScale=function(at){return at!==1?"scale("+at+")":""},t.getTextTransform=function(at){var ct=at.noCenter,et=at.textX,Z=at.textY,ot=at.targetX,st=at.targetY,dt=at.anchorX||0,xt=at.anchorY||0,At=at.rotate,St=at.scale;return St?St>1&&(St=1):St=0,t.strTranslate(ot-St*(et+dt),st-St*(Z+xt))+t.strScale(St)+(At?"rotate("+At+(ct?"":" "+et+" "+Z)+")":"")},t.setTransormAndDisplay=function(at,ct){at.attr("transform",t.getTextTransform(ct)),at.style("display",ct.scale?null:"none")},t.ensureUniformFontSize=function(at,ct){var et=t.extendFlat({},ct);return et.size=Math.max(ct.size,at._fullLayout.uniformtext.minsize||0),et},t.join2=function(at,ct,et){var Z=at.length;return Z>1?at.slice(0,-1).join(ct)+et+at[Z-1]:at.join(ct)},t.bigFont=function(at){return Math.round(1.2*at)};var $=t.getFirefoxVersion(),H=$!==null&&$<86;t.getPositionFromD3Event=function(){return H?[M.event.layerX,M.event.layerY]:[M.event.offsetX,M.event.offsetY]}},56174:function(nt){nt.exports=function(W){return window&&window.process&&window.process.versions?Object.prototype.toString.call(W)==="[object Object]":Object.prototype.toString.call(W)==="[object Object]"&&Object.getPrototypeOf(W).hasOwnProperty("hasOwnProperty")}},34967:function(nt,W,e){var M=e(35632),C=/^\w*$/,r=0,i=1,w=2,S=3,h=4;nt.exports=function(l,t,n,o){n=n||"name",o=o||"value";var a,s,u,x={};t&&t.length?(u=M(l,t),s=u.get()):s=l,t=t||"";var m={};if(s)for(a=0;a<s.length;a++)m[s[a][n]]=a;var y=C.test(o),c={set:function(p,f){var T=f===null?h:r;if(!s){if(!u||T===h)return;s=[],u.set(s)}var k=m[p];if(k===void 0){if(T===h)return;T=T|S,k=s.length,m[p]=k}else f!==(y?s[k][o]:M(s[k],o).get())&&(T=T|w);var P=s[k]=s[k]||{};return P[n]=p,y?P[o]=f:M(P,o).set(f),f!==null&&(T=T&-5),x[k]=x[k]|T,c},get:function(p){if(s){var f=m[p];if(f!==void 0)return y?s[f][o]:M(s[f],o).get()}},rename:function(p,f){var T=m[p];return T===void 0||(x[T]=x[T]|i,m[f]=T,delete m[p],s[T][n]=f),c},remove:function(p){var f=m[p];if(f===void 0)return c;var T=s[f];if(Object.keys(T).length>2)return x[f]=x[f]|w,c.set(p,null);if(y){for(a=f;a<s.length;a++)x[a]=x[a]|S;for(a=f;a<s.length;a++)m[s[a][n]]--;s.splice(f,1),delete m[p]}else M(T,o).set(null),x[f]=x[f]|w|h;return c},constructUpdate:function(){for(var p,f,T={},k=Object.keys(x),P=0;P<k.length;P++)f=k[P],p=t+"["+f+"]",s[f]?(x[f]&i&&(T[p+"."+n]=s[f][n]),x[f]&w&&(y?T[p+"."+o]=x[f]&h?null:s[f][o]:T[p+"."+o]=x[f]&h?null:M(s[f],o).get())):T[p]=null;return T}};return c}},38514:function(nt,W,e){var M=e(33626);nt.exports=function(C,r){for(var i=C._context.locale,w=0;w<2;w++){for(var S=C._context.locales,h=0;h<2;h++){var l=(S[i]||{}).dictionary;if(l){var t=l[r];if(t)return t}S=M.localeRegistry}var n=i.split("-")[0];if(n===i)break;i=n}return r}},48636:function(nt,W,e){var M=e(24452).dfltConfig,C=e(87355),r=nt.exports={};r.log=function(){var i;if(M.logging>1){var w=["LOG:"];for(i=0;i<arguments.length;i++)w.push(arguments[i]);console.trace.apply(console,w)}if(M.notifyOnLogging>1){var S=[];for(i=0;i<arguments.length;i++)S.push(arguments[i]);C(S.join("<br>"),"long")}},r.warn=function(){var i;if(M.logging>0){var w=["WARN:"];for(i=0;i<arguments.length;i++)w.push(arguments[i]);console.trace.apply(console,w)}if(M.notifyOnLogging>0){var S=[];for(i=0;i<arguments.length;i++)S.push(arguments[i]);C(S.join("<br>"),"stick")}},r.error=function(){var i;if(M.logging>0){var w=["ERROR:"];for(i=0;i<arguments.length;i++)w.push(arguments[i]);console.error.apply(console,w)}if(M.notifyOnLogging>0){var S=[];for(i=0;i<arguments.length;i++)S.push(arguments[i]);C(S.join("<br>"),"stick")}}},75944:function(nt,W,e){var M=e(45568);nt.exports=function(C,r,i){var w=C.selectAll("g."+i.replace(/\s/g,".")).data(r,function(h){return h[0].trace.uid});w.exit().remove(),w.enter().append("g").attr("class",i),w.order();var S=C.classed("rangeplot")?"nodeRangePlot3":"node3";return w.each(function(h){h[0][S]=M.select(this)}),w}},15236:function(nt,W,e){var M=e(11191);W.init2dArray=function(C,r){for(var i=new Array(C),w=0;w<C;w++)i[w]=new Array(r);return i},W.transposeRagged=function(C){var r=0,i=C.length,w,S;for(w=0;w<i;w++)r=Math.max(r,C[w].length);var h=new Array(r);for(w=0;w<r;w++)for(h[w]=new Array(i),S=0;S<i;S++)h[w][S]=C[S][w];return h},W.dot=function(C,r){if(!(C.length&&r.length)||C.length!==r.length)return null;var i=C.length,w,S;if(C[0].length)for(w=new Array(i),S=0;S<i;S++)w[S]=W.dot(C[S],r);else if(r[0].length){var h=W.transposeRagged(r);for(w=new Array(h.length),S=0;S<h.length;S++)w[S]=W.dot(C,h[S])}else for(w=0,S=0;S<i;S++)w+=C[S]*r[S];return w},W.translationMatrix=function(C,r){return[[1,0,C],[0,1,r],[0,0,1]]},W.rotationMatrix=function(C){var r=C*Math.PI/180;return[[Math.cos(r),-Math.sin(r),0],[Math.sin(r),Math.cos(r),0],[0,0,1]]},W.rotationXYMatrix=function(C,r,i){return W.dot(W.dot(W.translationMatrix(r,i),W.rotationMatrix(C)),W.translationMatrix(-r,-i))},W.apply3DTransform=function(C){return function(){var r=arguments,i=arguments.length===1?r[0]:[r[0],r[1],r[2]||0];return W.dot(C,[i[0],i[1],i[2],1]).slice(0,3)}},W.apply2DTransform=function(C){return function(){var r=arguments;r.length===3&&(r=r[0]);var i=arguments.length===1?r[0]:[r[0],r[1]];return W.dot(C,[i[0],i[1],1]).slice(0,2)}},W.apply2DTransform2=function(C){var r=W.apply2DTransform(C);return function(i){return r(i.slice(0,2)).concat(r(i.slice(2,4)))}},W.convertCssMatrix=function(C){if(C){var r=C.length;if(r===16)return C;if(r===6)return[C[0],C[1],0,0,C[2],C[3],0,0,0,0,1,0,C[4],C[5],0,1]}return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]},W.inverseTransformMatrix=function(C){var r=[];return M.invert(r,C),[[r[0],r[1],r[2],r[3]],[r[4],r[5],r[6],r[7]],[r[8],r[9],r[10],r[11]],[r[12],r[13],r[14],r[15]]]}},98953:function(nt){function W(M,C){var r=M%C;return r<0?r+C:r}function e(M,C){return Math.abs(M)>C/2?M-Math.round(M/C)*C:M}nt.exports={mod:W,modHalf:e}},35632:function(nt,W,e){var M=e(10721),C=e(87800).isArrayOrTypedArray;nt.exports=function(o,a){if(M(a))a=String(a);else if(typeof a!="string"||a.substr(a.length-4)==="[-1]")throw"bad property string";var s=a.split("."),u,x,m,y;for(y=0;y<s.length;y++)if(String(s[y]).slice(0,2)==="__")throw"bad property string";for(y=0;y<s.length;){if(u=String(s[y]).match(/^([^\[\]]*)((\[\-?[0-9]*\])+)$/),u){if(u[1])s[y]=u[1];else if(y===0)s.splice(0,1);else throw"bad property string";for(x=u[2].substr(1,u[2].length-2).split("]["),m=0;m<x.length;m++)y++,s.splice(y,0,Number(x[m]))}y++}return typeof o!="object"?n(o,a,s):{set:S(o,s,a),get:r(o,s),astr:a,parts:s,obj:o}};function r(o,a){return function(){var s=o,u,x,m,y,c;for(y=0;y<a.length-1;y++){if(u=a[y],u===-1){for(x=!0,m=[],c=0;c<s.length;c++)m[c]=r(s[c],a.slice(y+1))(),m[c]!==m[0]&&(x=!1);return x?m[0]:m}if(typeof u=="number"&&!C(s)||(s=s[u],typeof s!="object"||s===null))return}if(!(typeof s!="object"||s===null)&&(m=s[a[y]],m!==null))return m}}var i=/(^|\.)args\[/;function w(o,a){return o===void 0||o===null&&!a.match(i)}function S(o,a,s){return function(u){var x=o,m="",y=w(u,s),c,p;for(p=0;p<a.length-1;p++){if(c=a[p],typeof c=="number"&&!C(x))throw"array index but container is not an array";if(c===-1){if(y=!l(x,a.slice(p+1),u,s),y)break;return}if(!t(x,c,a[p+1],y))break;if(x=x[c],typeof x!="object"||x===null)throw"container is not an object";m=h(m,c)}if(y){if(p===a.length-1&&(delete x[a[p]],Array.isArray(x)&&+a[p]===x.length-1))for(;x.length&&x[x.length-1]===void 0;)x.pop()}else x[a[p]]=u}}function h(o,a){var s=a;return M(a)?s="["+a+"]":o&&(s="."+a),o+s}function l(o,a,s,u){var x=C(s),m=!0,y=s,c=u.replace("-1",0),p=x?!1:w(s,c),f=a[0],T;for(T=0;T<o.length;T++)c=u.replace("-1",T),x&&(y=s[T%s.length],p=w(y,c)),p&&(m=!1),t(o,T,f,p)&&S(o[T],a,u.replace("-1",T))(y);return m}function t(o,a,s,u){if(o[a]===void 0){if(u)return!1;typeof s=="number"?o[a]=[]:o[a]={}}return!0}function n(o,a,s){return{set:function(){throw"bad container"},get:function(){},astr:a,parts:s,obj:o}}},4969:function(nt){nt.exports=function(){}},87355:function(nt,W,e){var M=e(45568),C=e(10721),r=[];nt.exports=function(i,w){if(r.indexOf(i)!==-1)return;r.push(i);var S=1e3;C(w)?S=w:w==="long"&&(S=3e3);var h=M.select("body").selectAll(".plotly-notifier").data([0]);h.enter().append("div").classed("plotly-notifier",!0);var l=h.selectAll(".notifier-note").data(r);function t(n){n.duration(700).style("opacity",0).each("end",function(o){var a=r.indexOf(o);a!==-1&&r.splice(a,1),M.select(this).remove()})}l.enter().append("div").classed("notifier-note",!0).style("opacity",0).each(function(n){var o=M.select(this);o.append("button").classed("notifier-close",!0).html("&times;").on("click",function(){o.transition().call(t)});for(var a=o.append("p"),s=n.split(/<br\s*\/?>/g),u=0;u<s.length;u++)u&&a.append("br"),a.append("span").text(s[u]);w==="stick"?o.transition().duration(350).style("opacity",1):o.transition().duration(700).style("opacity",1).transition().delay(S).call(t)})}},93134:function(nt,W,e){var M=e(27983),C="data-savedcursor",r="!!";nt.exports=function(i,w){var S=i.attr(C);if(w){if(!S){for(var h=(i.attr("class")||"").split(" "),l=0;l<h.length;l++){var t=h[l];t.indexOf("cursor-")===0&&i.attr(C,t.substr(7)).classed(t,!1)}i.attr(C)||i.attr(C,r)}M(i,w)}else S&&(i.attr(C,null),S===r?M(i):M(i,S))}},80899:function(nt,W,e){var M=e(15236).dot,C=e(63821).BADNUM,r=nt.exports={};r.tester=function(i){var w=i.slice(),S=w[0][0],h=S,l=w[0][1],t=l,n;for((w[w.length-1][0]!==w[0][0]||w[w.length-1][1]!==w[0][1])&&w.push(w[0]),n=1;n<w.length;n++)S=Math.min(S,w[n][0]),h=Math.max(h,w[n][0]),l=Math.min(l,w[n][1]),t=Math.max(t,w[n][1]);var o=!1,a;w.length===5&&(w[0][0]===w[1][0]?w[2][0]===w[3][0]&&w[0][1]===w[3][1]&&w[1][1]===w[2][1]&&(o=!0,a=function(y){return y[0]===w[0][0]}):w[0][1]===w[1][1]&&w[2][1]===w[3][1]&&w[0][0]===w[3][0]&&w[1][0]===w[2][0]&&(o=!0,a=function(y){return y[1]===w[0][1]}));function s(y,c){var p=y[0],f=y[1];return!(p===C||p<S||p>h||f===C||f<l||f>t||c&&a(y))}function u(y,c){var p=y[0],f=y[1];if(p===C||p<S||p>h||f===C||f<l||f>t)return!1;var T=w.length,k=w[0][0],P=w[0][1],g=0,A,E,d,_,L;for(A=1;A<T;A++)if(E=k,d=P,k=w[A][0],P=w[A][1],_=Math.min(E,k),!(p<_||p>Math.max(E,k)||f>Math.max(d,P)))if(f<Math.min(d,P))p!==_&&g++;else{if(k===E?L=f:L=d+(p-E)*(P-d)/(k-E),f===L)return!(A===1&&c);f<=L&&p!==_&&g++}return g%2===1}var x=!0,m=w[0];for(n=1;n<w.length;n++)if(m[0]!==w[n][0]||m[1]!==w[n][1]){x=!1;break}return{xmin:S,xmax:h,ymin:l,ymax:t,pts:w,contains:o?s:u,isRect:o,degenerate:x}},r.isSegmentBent=function(i,w,S,h){var l=i[w],t=[i[S][0]-l[0],i[S][1]-l[1]],n=M(t,t),o=Math.sqrt(n),a=[-t[1]/o,t[0]/o],s,u,x;for(s=w+1;s<S;s++)if(u=[i[s][0]-l[0],i[s][1]-l[1]],x=M(u,t),x<0||x>n||Math.abs(M(u,a))>h)return!0;return!1},r.filter=function(i,w){var S=[i[0]],h=0,l=0;function t(o){i.push(o);var a=S.length,s=h;S.splice(l+1);for(var u=s+1;u<i.length;u++)(u===i.length-1||r.isSegmentBent(i,s,u+1,w))&&(S.push(i[u]),S.length<a-2&&(h=u,l=S.length-1),s=u)}if(i.length>1){var n=i.pop();t(n)}return{addPt:t,raw:i,filtered:S}}},22459:function(nt,W,e){var M=e(97464),C=e(81330);nt.exports=function(r,i,w){var S=r._fullLayout,h=!0;return S._glcanvas.each(function(l){if(l.regl){l.regl.preloadCachedCode(w);return}if(!(l.pick&&!S._has("parcoords"))){try{l.regl=C({canvas:this,attributes:{antialias:!l.pick,preserveDrawingBuffer:!0},pixelRatio:r._context.plotGlPixelRatio||e.g.devicePixelRatio,extensions:i||[],cachedCode:w||{}})}catch{h=!1}l.regl||(h=!1),h&&this.addEventListener("webglcontextlost",function(t){r&&r.emit&&r.emit("plotly_webglcontextlost",{event:t,layer:l.key})},!1)}}),h||M({container:S._glcontainer.node()}),h}},32521:function(nt,W,e){var M=e(10721),C=e(13087);nt.exports=function(i){var w;if(i&&i.hasOwnProperty("userAgent")?w=i.userAgent:w=r(),typeof w!="string")return!0;var S=C({ua:{headers:{"user-agent":w}},tablet:!0,featureDetect:!1});if(!S)for(var h=w.split(" "),l=1;l<h.length;l++){var t=h[l];if(t.indexOf("Safari")!==-1)for(var n=l-1;n>-1;n--){var o=h[n];if(o.substr(0,8)==="Version/"){var a=o.substr(8).split(".")[0];if(M(a)&&(a=+a),a>=13)return!0}}}return S};function r(){var i;return typeof navigator<"u"&&(i=navigator.userAgent),i&&i.headers&&typeof i.headers["user-agent"]=="string"&&(i=i.headers["user-agent"]),i}},36539:function(nt){nt.exports=function(W,e){if(e instanceof RegExp){for(var M=e.toString(),C=0;C<W.length;C++)if(W[C]instanceof RegExp&&W[C].toString()===M)return W;W.push(e)}else(e||e===0)&&W.indexOf(e)===-1&&W.push(e);return W}},40486:function(nt,W,e){var M=e(34809),C=e(24452).dfltConfig;function r(w,S){for(var h=[],l,t=0;t<S.length;t++)l=S[t],l===w?h[t]=l:typeof l=="object"?h[t]=Array.isArray(l)?M.extendDeep([],l):M.extendDeepAll({},l):h[t]=l;return h}var i={};i.add=function(w,S,h,l,t){var n,o;if(w.undoQueue=w.undoQueue||{index:0,queue:[],sequence:!1},o=w.undoQueue.index,w.autoplay){w.undoQueue.inSequence||(w.autoplay=!1);return}!w.undoQueue.sequence||w.undoQueue.beginSequence?(n={undo:{calls:[],args:[]},redo:{calls:[],args:[]}},w.undoQueue.queue.splice(o,w.undoQueue.queue.length-o,n),w.undoQueue.index+=1):n=w.undoQueue.queue[o-1],w.undoQueue.beginSequence=!1,n&&(n.undo.calls.unshift(S),n.undo.args.unshift(h),n.redo.calls.push(l),n.redo.args.push(t)),w.undoQueue.queue.length>C.queueLength&&(w.undoQueue.queue.shift(),w.undoQueue.index--)},i.startSequence=function(w){w.undoQueue=w.undoQueue||{index:0,queue:[],sequence:!1},w.undoQueue.sequence=!0,w.undoQueue.beginSequence=!0},i.stopSequence=function(w){w.undoQueue=w.undoQueue||{index:0,queue:[],sequence:!1},w.undoQueue.sequence=!1,w.undoQueue.beginSequence=!1},i.undo=function(w){var S,h;if(!(w.undoQueue===void 0||isNaN(w.undoQueue.index)||w.undoQueue.index<=0)){for(w.undoQueue.index--,S=w.undoQueue.queue[w.undoQueue.index],w.undoQueue.inSequence=!0,h=0;h<S.undo.calls.length;h++)i.plotDo(w,S.undo.calls[h],S.undo.args[h]);w.undoQueue.inSequence=!1,w.autoplay=!1}},i.redo=function(w){var S,h;if(!(w.undoQueue===void 0||isNaN(w.undoQueue.index)||w.undoQueue.index>=w.undoQueue.queue.length)){for(S=w.undoQueue.queue[w.undoQueue.index],w.undoQueue.inSequence=!0,h=0;h<S.redo.calls.length;h++)i.plotDo(w,S.redo.calls[h],S.redo.args[h]);w.undoQueue.inSequence=!1,w.autoplay=!1,w.undoQueue.index++}},i.plotDo=function(w,S,h){w.autoplay=!0,h=r(w,h),S.apply(null,h)},nt.exports=i},90694:function(nt,W){W.counter=function(e,M,C,r){var i=(M||"")+(C?"":"$"),w=r===!1?"":"^";return e==="xy"?new RegExp(w+"x([2-9]|[1-9][0-9]+)?y([2-9]|[1-9][0-9]+)?"+i):new RegExp(w+e+"([2-9]|[1-9][0-9]+)?"+i)}},82047:function(nt){var W=/^(.*)(\.[^\.\[\]]+|\[\d\])$/,e=/^[^\.\[\]]+$/;nt.exports=function(M,C){for(;C;){var r=M.match(W);if(r)M=r[1];else if(M.match(e))M="";else throw new Error("bad relativeAttr call:"+[M,C]);if(C.charAt(0)==="^")C=C.slice(1);else break}return M&&C.charAt(0)!=="["?M+"."+C:M+C}},80428:function(nt,W,e){var M=e(87800).isArrayOrTypedArray,C=e(56174);nt.exports=function r(i,w){for(var S in w){var h=w[S],l=i[S];if(l!==h)if(S.charAt(0)==="_"||typeof h=="function"){if(S in i)continue;i[S]=h}else if(M(h)&&M(l)&&C(h[0])){if(S==="customdata"||S==="ids")continue;for(var t=Math.min(h.length,l.length),n=0;n<t;n++)l[n]!==h[n]&&C(h[n])&&C(l[n])&&r(l[n],h[n])}else C(h)&&C(l)&&(r(l,h),Object.keys(l).length||delete i[S])}}},98813:function(nt,W,e){var M=e(10721),C=e(48636),r=e(29527),i=e(63821).BADNUM,w=1e-9;W.findBin=function(n,o,a){if(M(o.start))return a?Math.ceil((n-o.start)/o.size-w)-1:Math.floor((n-o.start)/o.size+w);var s=0,u=o.length,x=0,m=u>1?(o[u-1]-o[0])/(u-1):1,y,c;for(m>=0?c=a?S:h:c=a?t:l,n+=m*w*(a?-1:1)*(m>=0?1:-1);s<u&&x++<100;)y=Math.floor((s+u)/2),c(o[y],n)?s=y+1:u=y;return x>90&&C.log("Long binary search..."),s-1};function S(n,o){return n<o}function h(n,o){return n<=o}function l(n,o){return n>o}function t(n,o){return n>=o}W.sorterAsc=function(n,o){return n-o},W.sorterDes=function(n,o){return o-n},W.distinctVals=function(n){var o=n.slice();o.sort(W.sorterAsc);var a;for(a=o.length-1;a>-1&&o[a]===i;a--);for(var s=o[a]-o[0]||1,u=s/(a||1)/1e4,x=[],m,y=0;y<=a;y++){var c=o[y],p=c-m;m===void 0?(x.push(c),m=c):p>u&&(s=Math.min(s,p),x.push(c),m=c)}return{vals:x,minDiff:s}},W.roundUp=function(n,o,a){for(var s=0,u=o.length-1,x,m=0,y=a?0:1,c=a?1:0,p=a?Math.ceil:Math.floor;s<u&&m++<100;)x=p((s+u)/2),o[x]<=n?s=x+y:u=x-c;return o[s]},W.sort=function(n,o){for(var a=0,s=0,u=1;u<n.length;u++){var x=o(n[u],n[u-1]);if(x<0?a=1:x>0&&(s=1),a&&s)return n.sort(o)}return s?n:n.reverse()},W.findIndexOfMin=function(n,o){o=o||r;for(var a=1/0,s,u=0;u<n.length;u++){var x=o(n[u]);x<a&&(a=x,s=u)}return s}},27983:function(nt){nt.exports=function(W,e){(W.attr("class")||"").split(" ").forEach(function(M){M.indexOf("cursor-")===0&&W.classed(M,!1)}),e&&W.classed("cursor-"+e,!0)}},97464:function(nt,W,e){var M=e(78766),C=function(){};nt.exports=function(r){for(var i in r)typeof r[i]=="function"&&(r[i]=C);r.destroy=function(){r.container.parentNode.removeChild(r.container)};var w=document.createElement("div");w.className="no-webgl",w.style.cursor="pointer",w.style.fontSize="24px",w.style.color=M.defaults[0],w.style.position="absolute",w.style.left=w.style.top="0px",w.style.width=w.style.height="100%",w.style["background-color"]=M.lightLine,w.style["z-index"]=30;var S=document.createElement("p");return S.textContent="WebGL is not supported by your browser - visit https://get.webgl.org for more info",S.style.position="relative",S.style.top="50%",S.style.left="50%",S.style.height="30%",S.style.width="50%",S.style.margin="-15% 0 0 -25%",w.appendChild(S),r.container.appendChild(w),r.container.style.background="#FFFFFF",r.container.onclick=function(){window.open("https://get.webgl.org")},!1}},62994:function(nt){nt.exports=function(W){return Object.keys(W).sort()}},89258:function(nt,W,e){var M=e(10721),C=e(87800).isArrayOrTypedArray;W.aggNums=function(r,i,w,S){var h,l;if((!S||S>w.length)&&(S=w.length),M(i)||(i=!1),C(w[0])){for(l=new Array(S),h=0;h<S;h++)l[h]=W.aggNums(r,i,w[h]);w=l}for(h=0;h<S;h++)M(i)?M(w[h])&&(i=r(+i,+w[h])):i=w[h];return i},W.len=function(r){return W.aggNums(function(i){return i+1},0,r)},W.mean=function(r,i){return i||(i=W.len(r)),W.aggNums(function(w,S){return w+S},0,r)/i},W.geometricMean=function(r,i){return i||(i=W.len(r)),Math.pow(W.aggNums(function(w,S){return w*S},1,r),1/i)},W.midRange=function(r){if(!(r===void 0||r.length===0))return(W.aggNums(Math.max,null,r)+W.aggNums(Math.min,null,r))/2},W.variance=function(r,i,w){return i||(i=W.len(r)),M(w)||(w=W.mean(r,i)),W.aggNums(function(S,h){return S+Math.pow(h-w,2)},0,r)/i},W.stdev=function(r,i,w){return Math.sqrt(W.variance(r,i,w))},W.median=function(r){var i=r.slice().sort();return W.interp(i,.5)},W.interp=function(r,i){if(!M(i))throw"n should be a finite number";if(i=i*r.length-.5,i<0)return r[0];if(i>r.length-1)return r[r.length-1];var w=i%1;return w*r[Math.ceil(i)]+(1-w)*r[Math.floor(i)]}},55010:function(nt,W,e){var M=e(162);function C(r){return r?M(r):[0,0,0,1]}nt.exports=C},95544:function(nt,W,e){var M=e(1837),C=e(62203),r=e(34809),i=null;function w(){if(i!==null)return i;i=!1;var S=r.isIE()||r.isSafari()||r.isIOS();if(window.navigator.userAgent&&!S){var h=Array.from(M.CSS_DECLARATIONS).reverse(),l=window.CSS&&window.CSS.supports||window.supportsCSS;if(typeof l=="function")i=h.some(function(a){return l.apply(null,a)});else{var t=C.tester.append("image").attr("style",M.STYLE),n=window.getComputedStyle(t.node()),o=n.imageRendering;i=h.some(function(a){var s=a[1];return o===s||o===s.toLowerCase()}),t.remove()}}return i}nt.exports=w},30635:function(nt,W,e){var M=e(45568),C=e(34809),r=C.strTranslate,i=e(62972),w=e(4530).LINE_SPACING,S=/([^$]*)([$]+[^$]*[$]+)([^$]*)/;W.convertToTspans=function(N,F,U){var G=N.text(),Y=!N.attr("data-notex")&&F&&F._context.typesetMath&&typeof MathJax<"u"&&G.match(S),Q=M.select(N.node().parentNode);if(Q.empty())return;var ft=N.attr("class")?N.attr("class").split(" ")[0]:"text";ft+="-math",Q.selectAll("svg."+ft).remove(),Q.selectAll("g."+ft+"-group").remove(),N.style("display",null).attr({"data-unformatted":G,"data-math":"N"});function ut(){Q.empty()||(ft=N.attr("class")+"-math",Q.select("svg."+ft).remove()),N.text("").style("white-space","pre");var lt=D(N.node(),G);lt&&N.style("pointer-events","all"),W.positionText(N),U&&U.call(N)}return Y?(F&&F._promises||[]).push(new Promise(function(lt){N.style("display","none");var K=parseInt(N.node().style.fontSize,10),$={fontSize:K};o(Y[2],$,function(H,at,ct){Q.selectAll("svg."+ft).remove(),Q.selectAll("g."+ft+"-group").remove();var et=H&&H.select("svg");if(!et||!et.node()){ut(),lt();return}var Z=Q.append("g").classed(ft+"-group",!0).attr({"pointer-events":"none","data-unformatted":G,"data-math":"Y"});Z.node().appendChild(et.node()),at&&at.node()&&et.node().insertBefore(at.node().cloneNode(!0),et.node().firstChild);var ot=ct.width,st=ct.height;et.attr({class:ft,height:st,preserveAspectRatio:"xMinYMin meet"}).style({overflow:"visible","pointer-events":"none"});var dt=N.node().style.fill||"black",xt=et.select("g");xt.attr({fill:dt,stroke:dt});var At=xt.node().getBoundingClientRect(),St=At.width,Nt=At.height;(St>ot||Nt>st)&&(et.style("overflow","hidden"),At=et.node().getBoundingClientRect(),St=At.width,Nt=At.height);var Wt=+N.attr("x"),Vt=+N.attr("y"),jt=K||N.node().getBoundingClientRect().height,Dt=-jt/4;if(ft[0]==="y")Z.attr({transform:"rotate("+[-90,Wt,Vt]+")"+r(-St/2,Dt-Nt/2)});else if(ft[0]==="l")Vt=Dt-Nt/2;else if(ft[0]==="a"&&ft.indexOf("atitle")!==0)Wt=0,Vt=Dt;else{var kt=N.attr("text-anchor");Wt=Wt-St*(kt==="middle"?.5:kt==="end"?1:0),Vt=Vt+Dt-Nt/2}et.attr({x:Wt,y:Vt}),U&&U.call(N,Z),lt(Z)})})):ut(),N};var h=/(<|&lt;|&#60;)/g,l=/(>|&gt;|&#62;)/g;function t(N){return N.replace(h,"\\lt ").replace(l,"\\gt ")}var n=[["$","$"],["\\(","\\)"]];function o(N,F,U){var G=parseInt((MathJax.version||"").split(".")[0]);if(G!==2&&G!==3){C.warn("No MathJax version:",MathJax.version);return}var Y,Q,ft,ut,lt=function(){return Q=C.extendDeepAll({},MathJax.Hub.config),ft=MathJax.Hub.processSectionDelay,MathJax.Hub.processSectionDelay!==void 0&&(MathJax.Hub.processSectionDelay=0),MathJax.Hub.Config({messageStyle:"none",tex2jax:{inlineMath:n},displayAlign:"left"})},K=function(){Q=C.extendDeepAll({},MathJax.config),MathJax.config.tex||(MathJax.config.tex={}),MathJax.config.tex.inlineMath=n},$=function(){if(Y=MathJax.Hub.config.menuSettings.renderer,Y!=="SVG")return MathJax.Hub.setRenderer("SVG")},H=function(){Y=MathJax.config.startup.output,Y!=="svg"&&(MathJax.config.startup.output="svg")},at=function(){var dt="math-output-"+C.randstr({},64);ut=M.select("body").append("div").attr({id:dt}).style({visibility:"hidden",position:"absolute","font-size":F.fontSize+"px"}).text(t(N));var xt=ut.node();return G===2?MathJax.Hub.Typeset(xt):MathJax.typeset([xt])},ct=function(){var dt=ut.select(G===2?".MathJax_SVG":".MathJax"),xt=!dt.empty()&&ut.select("svg").node();if(!xt)C.log("There was an error in the tex syntax.",N),U();else{var At=xt.getBoundingClientRect(),St;G===2?St=M.select("body").select("#MathJax_SVG_glyphs"):St=dt.select("defs"),U(dt,St,At)}ut.remove()},et=function(){if(Y!=="SVG")return MathJax.Hub.setRenderer(Y)},Z=function(){Y!=="svg"&&(MathJax.config.startup.output=Y)},ot=function(){return ft!==void 0&&(MathJax.Hub.processSectionDelay=ft),MathJax.Hub.Config(Q)},st=function(){MathJax.config=Q};G===2?MathJax.Hub.Queue(lt,$,at,ct,et,ot):G===3&&(K(),H(),MathJax.startup.defaultReady(),MathJax.startup.promise.then(function(){at(),ct(),Z(),st()}))}var a={sup:"font-size:70%",sub:"font-size:70%",s:"text-decoration:line-through",u:"text-decoration:underline",b:"font-weight:bold",i:"font-style:italic",a:"cursor:pointer",span:"",em:"font-style:italic;font-weight:bold"},s={sub:"0.3em",sup:"-0.6em"},u={sub:"-0.21em",sup:"0.42em"},x="\u200B",m=["http:","https:","mailto:","",void 0,":"],y=W.NEWLINES=/(\r\n?|\n)/g,c=/(<[^<>]*>)/,p=/<(\/?)([^ >]*)(\s+(.*))?>/i,f=/<br(\s+.*)?>/i;W.BR_TAG_ALL=/<br(\s+.*)?>/gi;var T=/(^|[\s"'])style\s*=\s*("([^"]*);?"|'([^']*);?')/i,k=/(^|[\s"'])href\s*=\s*("([^"]*)"|'([^']*)')/i,P=/(^|[\s"'])target\s*=\s*("([^"\s]*)"|'([^'\s]*)')/i,g=/(^|[\s"'])popup\s*=\s*("([\w=,]*)"|'([\w=,]*)')/i;function A(N,F){if(!N)return null;var U=N.match(F),G=U&&(U[3]||U[4]);return G&&L(G)}var E=/(^|;)\s*color:/;W.plainText=function(N,F){F=F||{};for(var U=F.len!==void 0&&F.len!==-1?F.len:1/0,G=F.allowedTags!==void 0?F.allowedTags:["br"],Y="...",Q=Y.length,ft=N.split(c),ut=[],lt="",K=0,$=0;$<ft.length;$++){var H=ft[$],at=H.match(p),ct=at&&at[2].toLowerCase();if(ct)G.indexOf(ct)!==-1&&(ut.push(H),lt=ct);else{var et=H.length;if(K+et<U)ut.push(H),K+=et;else if(K<U){var Z=U-K;lt&&(lt!=="br"||Z<=Q||et<=Q)&&ut.pop(),U>Q?ut.push(H.substr(0,Z-Q)+Y):ut.push(H.substr(0,Z));break}lt=""}}return ut.join("")};var d={mu:"\u03BC",amp:"&",lt:"<",gt:">",nbsp:"\xA0",times:"\xD7",plusmn:"\xB1",deg:"\xB0"},_=/&(#\d+|#x[\da-fA-F]+|[a-z]+);/g;function L(N){return N.replace(_,function(F,U){var G;return U.charAt(0)==="#"?G=b(U.charAt(1)==="x"?parseInt(U.substr(2),16):parseInt(U.substr(1),10)):G=d[U],G||F})}W.convertEntities=L;function b(N){if(!(N>1114111)){var F=String.fromCodePoint;if(F)return F(N);var U=String.fromCharCode;return N<=65535?U(N):U((N>>10)+55232,N%1024+56320)}}function D(N,F){F=F.replace(y," ");var U=!1,G=[],Y,Q=-1;function ft(){Q++;var Nt=document.createElementNS(i.svg,"tspan");M.select(Nt).attr({class:"line",dy:Q*w+"em"}),N.appendChild(Nt),Y=Nt;var Wt=G;if(G=[{node:Nt}],Wt.length>1)for(var Vt=1;Vt<Wt.length;Vt++)ut(Wt[Vt])}function ut(Nt){var Wt=Nt.type,Vt={},jt;if(Wt==="a"){jt="a";var Dt=Nt.target,kt=Nt.href,Bt=Nt.popup;kt&&(Vt={"xlink:xlink:show":Dt==="_blank"||Dt.charAt(0)!=="_"?"new":"replace",target:Dt,"xlink:xlink:href":kt},Bt&&(Vt.onclick='window.open(this.href.baseVal,this.target.baseVal,"'+Bt+'");return false;'))}else jt="tspan";Nt.style&&(Vt.style=Nt.style);var Ot=document.createElementNS(i.svg,jt);if(Wt==="sup"||Wt==="sub"){lt(Y,x),Y.appendChild(Ot);var Ht=document.createElementNS(i.svg,"tspan");lt(Ht,x),M.select(Ht).attr("dy",u[Wt]),Vt.dy=s[Wt],Y.appendChild(Ot),Y.appendChild(Ht)}else Y.appendChild(Ot);M.select(Ot).attr(Vt),Y=Nt.node=Ot,G.push(Nt)}function lt(Nt,Wt){Nt.appendChild(document.createTextNode(Wt))}function K(Nt){if(G.length===1){C.log("Ignoring unexpected end tag </"+Nt+">.",F);return}var Wt=G.pop();Nt!==Wt.type&&C.log("Start tag <"+Wt.type+"> doesnt match end tag <"+Nt+">. Pretending it did match.",F),Y=G[G.length-1].node}var $=f.test(F);$?ft():(Y=N,G=[{node:N}]);for(var H=F.split(c),at=0;at<H.length;at++){var ct=H[at],et=ct.match(p),Z=et&&et[2].toLowerCase(),ot=a[Z];if(Z==="br")ft();else if(ot===void 0)lt(Y,L(ct));else if(et[1])K(Z);else{var st=et[4],dt={type:Z},xt=A(st,T);if(xt?(xt=xt.replace(E,"$1 fill:"),ot&&(xt+=";"+ot)):ot&&(xt=ot),xt&&(dt.style=xt),Z==="a"){U=!0;var At=A(st,k);if(At){var St=B(At);St&&(dt.href=St,dt.target=A(st,P)||"_blank",dt.popup=A(st,g))}}ut(dt)}}return U}function B(N){var F=encodeURI(decodeURI(N)),U=document.createElement("a"),G=document.createElement("a");U.href=N,G.href=F;var Y=U.protocol,Q=G.protocol;return m.indexOf(Y)!==-1&&m.indexOf(Q)!==-1?F:""}W.sanitizeHTML=function(N){N=N.replace(y," ");for(var F=document.createElement("p"),U=F,G=[],Y=N.split(c),Q=0;Q<Y.length;Q++){var ft=Y[Q],ut=ft.match(p),lt=ut&&ut[2].toLowerCase();if(lt in a)if(ut[1])G.length&&(U=G.pop());else{var K=ut[4],$=A(K,T),H=$?{style:$}:{};if(lt==="a"){var at=A(K,k);if(at){var ct=B(at);if(ct){H.href=ct;var et=A(K,P);et&&(H.target=et)}}}var Z=document.createElement(lt);U.appendChild(Z),M.select(Z).attr(H),U=Z,G.push(Z)}else U.appendChild(document.createTextNode(L(ft)))}var ot="innerHTML";return F[ot]},W.lineCount=function(N){return N.selectAll("tspan.line").size()||1},W.positionText=function(N,F,U){return N.each(function(){var G=M.select(this);function Y(ut,lt){return lt===void 0?(lt=G.attr(ut),lt===null&&(G.attr(ut,0),lt=0)):G.attr(ut,lt),lt}var Q=Y("x",F),ft=Y("y",U);this.nodeName==="text"&&G.selectAll("tspan.line").attr({x:Q,y:ft})})};function I(N,F,U){var G=U.horizontalAlign,Y=U.verticalAlign||"top",Q=N.node().getBoundingClientRect(),ft=F.node().getBoundingClientRect(),ut,lt,K;return Y==="bottom"?lt=function(){return Q.bottom-ut.height}:Y==="middle"?lt=function(){return Q.top+(Q.height-ut.height)/2}:lt=function(){return Q.top},G==="right"?K=function(){return Q.right-ut.width}:G==="center"?K=function(){return Q.left+(Q.width-ut.width)/2}:K=function(){return Q.left},function(){ut=this.node().getBoundingClientRect();var $=K()-ft.left,H=lt()-ft.top,at=U.gd||{};if(U.gd){at._fullLayout._calcInverseTransform(at);var ct=C.apply3DTransform(at._fullLayout._invTransform)($,H);$=ct[0],H=ct[1]}return this.style({top:H+"px",left:$+"px","z-index":1e3}),this}}var V="1px ";W.makeTextShadow=function(N){var F=V,U=V,G=V;return F+U+G+N+", -"+F+"-"+U+G+N+", "+F+"-"+U+G+N+", -"+F+U+G+N},W.makeEditable=function(N,F){var U=F.gd,G=F.delegate,Y=M.dispatch("edit","input","cancel"),Q=G||N;if(N.style({"pointer-events":G?"none":"all"}),N.size()!==1)throw new Error("boo");function ft(){lt(),N.style({opacity:0});var K=Q.attr("class"),$;K?$="."+K.split(" ")[0]+"-math-group":$="[class*=-math-group]",$&&M.select(N.node().parentNode).select($).style({opacity:0})}function ut(K){var $=K.node(),H=document.createRange();H.selectNodeContents($);var at=window.getSelection();at.removeAllRanges(),at.addRange(H),$.focus()}function lt(){var K=M.select(U),$=K.select(".svg-container"),H=$.append("div"),at=N.node().style,ct=parseFloat(at.fontSize||12),et=F.text;et===void 0&&(et=N.attr("data-unformatted")),H.classed("plugin-editable editable",!0).style({position:"absolute","font-family":at.fontFamily||"Arial","font-size":ct,color:F.fill||at.fill||"black",opacity:1,"background-color":F.background||"transparent",outline:"#ffffff33 1px solid",margin:[-ct/8+1,0,0,-1].join("px ")+"px",padding:"0","box-sizing":"border-box"}).attr({contenteditable:!0}).text(et).call(I(N,$,F)).on("blur",function(){U._editing=!1,N.text(this.textContent).style({opacity:1});var Z=M.select(this).attr("class"),ot;Z?ot="."+Z.split(" ")[0]+"-math-group":ot="[class*=-math-group]",ot&&M.select(N.node().parentNode).select(ot).style({opacity:0});var st=this.textContent;M.select(this).transition().duration(0).remove(),M.select(document).on("mouseup",null),Y.edit.call(N,st)}).on("focus",function(){var Z=this;U._editing=!0,M.select(document).on("mouseup",function(){if(M.event.target===Z)return!1;document.activeElement===H.node()&&H.node().blur()})}).on("keyup",function(){M.event.which===27?(U._editing=!1,N.style({opacity:1}),M.select(this).style({opacity:0}).on("blur",function(){return!1}).transition().remove(),Y.cancel.call(N,this.textContent)):(Y.input.call(N,this.textContent),M.select(this).call(I(N,$,F)))}).on("keydown",function(){M.event.which===13&&this.blur()}).call(ut)}return F.immediate?ft():Q.on("click",ft),M.rebind(N,Y,"on")}},64025:function(nt,W){var e={};W.throttle=function(C,r,i){var w=e[C],S=Date.now();if(!w){for(var h in e)e[h].ts<S-6e4&&delete e[h];w=e[C]={ts:0,timer:null}}M(w);function l(){i(),w.ts=Date.now(),w.onDone&&(w.onDone(),w.onDone=null)}if(S>w.ts+r){l();return}w.timer=setTimeout(function(){l(),w.timer=null},r)},W.done=function(C){var r=e[C];return!r||!r.timer?Promise.resolve():new Promise(function(i){var w=r.onDone;r.onDone=function(){w&&w(),i(),r.onDone=null}})},W.clear=function(C){if(C)M(e[C]),delete e[C];else for(var r in e)W.clear(r)};function M(C){C&&C.timer!==null&&(clearTimeout(C.timer),C.timer=null)}},8083:function(nt,W,e){var M=e(10721);nt.exports=function(C,r){if(C>0)return Math.log(C)/Math.LN10;var i=Math.log(Math.min(r[0],r[1]))/Math.LN10;return M(i)||(i=Math.log(Math.max(r[0],r[1]))/Math.LN10-6),i}},11577:function(nt,W,e){var M=nt.exports={},C=e(74285).locationmodeToLayer,r=e(48640).N4;M.getTopojsonName=function(i){return[i.scope.replace(/ /g,"-"),"_",i.resolution.toString(),"m"].join("")},M.getTopojsonPath=function(i,w){return i+w+".json"},M.getTopojsonFeatures=function(i,w){var S=C[i.locationmode],h=w.objects[S];return r(w,h).features}},44611:function(nt){nt.exports={moduleType:"locale",name:"en-US",dictionary:{"Click to enter Colorscale title":"Click to enter Colorscale title"},format:{date:"%m/%d/%Y"}}},30227:function(nt){nt.exports={moduleType:"locale",name:"en",dictionary:{"Click to enter Colorscale title":"Click to enter Colourscale title"},format:{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"],periods:["AM","PM"],dateTime:"%a %b %e %X %Y",date:"%d/%m/%Y",time:"%H:%M:%S",decimal:".",thousands:",",grouping:[3],currency:["$",""],year:"%Y",month:"%b %Y",dayMonth:"%b %-d",dayMonthYear:"%b %-d, %Y"}}},56037:function(nt,W,e){var M=e(33626);nt.exports=function(C){for(var r=M.layoutArrayContainers,i=M.layoutArrayRegexes,w=C.split("[")[0],S,h,l=0;l<i.length;l++)if(h=C.match(i[l]),h&&h.index===0){S=h[0];break}if(S||(S=r[r.indexOf(w)]),!S)return!1;var t=C.substr(S.length);return t?(h=t.match(/^\[(0|[1-9][0-9]*)\](\.(.+))?$/),h?{array:S,index:Number(h[1]),property:h[3]||""}:!1):{array:S,index:"",property:""}}},13582:function(nt,W,e){var M=e(93049).extendFlat,C=e(56174),r={valType:"flaglist",extras:["none"],flags:["calc","clearAxisTypes","plot","style","markerSize","colorbars"]},i={valType:"flaglist",extras:["none"],flags:["calc","plot","legend","ticks","axrange","layoutstyle","modebar","camera","arraydraw","colorbars"]},w=r.flags.slice().concat(["fullReplot"]),S=i.flags.slice().concat("layoutReplot");nt.exports={traces:r,layout:i,traceFlags:function(){return h(w)},layoutFlags:function(){return h(S)},update:function(n,o){var a=o.editType;if(a&&a!=="none")for(var s=a.split("+"),u=0;u<s.length;u++)n[s[u]]=!0},overrideAll:l};function h(n){for(var o={},a=0;a<n.length;a++)o[n[a]]=!1;return o}function l(n,o,a){var s=M({},n);for(var u in s){var x=s[u];C(x)&&(s[u]=t(x,o,a,u))}return a==="from-root"&&(s.editType=o),s}function t(n,o,a,s){if(n.valType){var u=M({},n);if(u.editType=o,Array.isArray(n.items)){u.items=new Array(n.items.length);for(var x=0;x<n.items.length;x++)u.items[x]=t(n.items[x],o)}return u}else return l(n,o,s.charAt(0)==="_"?"nested":"from-root")}},10887:function(nt,W,e){var M=e(10721),C=e(36472),r=e(33626),i=e(34809),w=e(44122),S=e(5975),h=e(78766),l=S.cleanId,t=S.getFromTrace,n=r.traceIs;W.clearPromiseQueue=function(f){Array.isArray(f._promises)&&f._promises.length>0&&i.log("Clearing previous rejected promises from queue."),f._promises=[]},W.cleanLayout=function(f){var T,k;f||(f={}),f.xaxis1&&(f.xaxis||(f.xaxis=f.xaxis1),delete f.xaxis1),f.yaxis1&&(f.yaxis||(f.yaxis=f.yaxis1),delete f.yaxis1),f.scene1&&(f.scene||(f.scene=f.scene1),delete f.scene1);var P=(w.subplotsRegistry.cartesian||{}).attrRegex,g=(w.subplotsRegistry.polar||{}).attrRegex,A=(w.subplotsRegistry.ternary||{}).attrRegex,E=(w.subplotsRegistry.gl3d||{}).attrRegex,d=Object.keys(f);for(T=0;T<d.length;T++){var _=d[T];if(P&&P.test(_)){var L=f[_];L.anchor&&L.anchor!=="free"&&(L.anchor=l(L.anchor)),L.overlaying&&(L.overlaying=l(L.overlaying)),L.type||(L.isdate?L.type="date":L.islog?L.type="log":L.isdate===!1&&L.islog===!1&&(L.type="linear")),(L.autorange==="withzero"||L.autorange==="tozero")&&(L.autorange=!0,L.rangemode="tozero"),L.insiderange&&delete L.range,delete L.islog,delete L.isdate,delete L.categories,m(L,"domain")&&delete L.domain,L.autotick!==void 0&&(L.tickmode===void 0&&(L.tickmode=L.autotick?"auto":"linear"),delete L.autotick),a(L)}else if(g&&g.test(_)){var b=f[_];a(b.radialaxis)}else if(A&&A.test(_)){var D=f[_];a(D.aaxis),a(D.baxis),a(D.caxis)}else if(E&&E.test(_)){var B=f[_],I=B.cameraposition;if(Array.isArray(I)&&I[0].length===4){var V=I[0],N=I[1],F=I[2],U=C([],V),G=[];for(k=0;k<3;++k)G[k]=N[k]+F*U[2+4*k];B.camera={eye:{x:G[0],y:G[1],z:G[2]},center:{x:N[0],y:N[1],z:N[2]},up:{x:0,y:0,z:1}},delete B.cameraposition}a(B.xaxis),a(B.yaxis),a(B.zaxis)}}var Y=Array.isArray(f.annotations)?f.annotations.length:0;for(T=0;T<Y;T++){var Q=f.annotations[T];i.isPlainObject(Q)&&(Q.ref&&(Q.ref==="paper"?(Q.xref="paper",Q.yref="paper"):Q.ref==="data"&&(Q.xref="x",Q.yref="y"),delete Q.ref),o(Q,"xref"),o(Q,"yref"))}var ft=Array.isArray(f.shapes)?f.shapes.length:0;for(T=0;T<ft;T++){var ut=f.shapes[T];i.isPlainObject(ut)&&(o(ut,"xref"),o(ut,"yref"))}var lt=Array.isArray(f.images)?f.images.length:0;for(T=0;T<lt;T++){var K=f.images[T];i.isPlainObject(K)&&(o(K,"xref"),o(K,"yref"))}var $=f.legend;return $&&($.x>3?($.x=1.02,$.xanchor="left"):$.x<-2&&($.x=-.02,$.xanchor="right"),$.y>3?($.y=1.02,$.yanchor="bottom"):$.y<-2&&($.y=-.02,$.yanchor="top")),a(f),f.dragmode==="rotate"&&(f.dragmode="orbit"),h.clean(f),f.template&&f.template.layout&&W.cleanLayout(f.template.layout),f};function o(f,T){var k=f[T],P=T.charAt(0);k&&k!=="paper"&&(f[T]=l(k,P,!0))}function a(f){f&&((typeof f.title=="string"||typeof f.title=="number")&&(f.title={text:f.title}),T("titlefont","font"),T("titleposition","position"),T("titleside","side"),T("titleoffset","offset"));function T(k,P){var g=f[k],A=f.title&&f.title[P];g&&!A&&(f.title||(f.title={}),f.title[P]=f[k],delete f[k])}}W.cleanData=function(f){for(var T=0;T<f.length;T++){var k=f[T],P;if(k.type==="histogramy"&&"xbins"in k&&!("ybins"in k)&&(k.ybins=k.xbins,delete k.xbins),k.error_y&&"opacity"in k.error_y){var g=h.defaults,A=k.error_y.color||(n(k,"bar")?h.defaultLine:g[T%g.length]);k.error_y.color=h.addOpacity(h.rgb(A),h.opacity(A)*k.error_y.opacity),delete k.error_y.opacity}if("bardir"in k&&(k.bardir==="h"&&(n(k,"bar")||k.type.substr(0,9)==="histogram")&&(k.orientation="h",W.swapXYData(k)),delete k.bardir),k.type==="histogramy"&&W.swapXYData(k),(k.type==="histogramx"||k.type==="histogramy")&&(k.type="histogram"),"scl"in k&&!("colorscale"in k)&&(k.colorscale=k.scl,delete k.scl),"reversescl"in k&&!("reversescale"in k)&&(k.reversescale=k.reversescl,delete k.reversescl),k.xaxis&&(k.xaxis=l(k.xaxis,"x")),k.yaxis&&(k.yaxis=l(k.yaxis,"y")),n(k,"gl3d")&&k.scene&&(k.scene=w.subplotsRegistry.gl3d.cleanId(k.scene)),!n(k,"pie-like")&&!n(k,"bar-like"))if(Array.isArray(k.textposition))for(P=0;P<k.textposition.length;P++)k.textposition[P]=x(k.textposition[P]);else k.textposition&&(k.textposition=x(k.textposition));var E=r.getModule(k);if(E&&E.colorbar){var d=E.colorbar.container,_=d?k[d]:k;_&&_.colorscale&&(_.colorscale==="YIGnBu"&&(_.colorscale="YlGnBu"),_.colorscale==="YIOrRd"&&(_.colorscale="YlOrRd"))}if(k.type==="surface"&&i.isPlainObject(k.contours)){var L=["x","y","z"];for(P=0;P<L.length;P++){var b=k.contours[L[P]];i.isPlainObject(b)&&(b.highlightColor&&(b.highlightcolor=b.highlightColor,delete b.highlightColor),b.highlightWidth&&(b.highlightwidth=b.highlightWidth,delete b.highlightWidth))}}if(k.type==="candlestick"||k.type==="ohlc"){var D=(k.increasing||{}).showlegend!==!1,B=(k.decreasing||{}).showlegend!==!1,I=s(k.increasing),V=s(k.decreasing);if(I!==!1&&V!==!1){var N=u(I,V,D,B);N&&(k.name=N)}else(I||V)&&!k.name&&(k.name=I||V)}if(Array.isArray(k.transforms)){var F=k.transforms;for(P=0;P<F.length;P++){var U=F[P];if(i.isPlainObject(U))switch(U.type){case"filter":U.filtersrc&&(U.target=U.filtersrc,delete U.filtersrc),U.calendar&&(U.valuecalendar||(U.valuecalendar=U.calendar),delete U.calendar);break;case"groupby":if(U.styles=U.styles||U.style,U.styles&&!Array.isArray(U.styles)){var G=U.styles,Y=Object.keys(G);U.styles=[];for(var Q=0;Q<Y.length;Q++)U.styles.push({target:Y[Q],value:G[Y[Q]]})}break}}}m(k,"line")&&delete k.line,"marker"in k&&(m(k.marker,"line")&&delete k.marker.line,m(k,"marker")&&delete k.marker),h.clean(k),k.autobinx&&(delete k.autobinx,delete k.xbins),k.autobiny&&(delete k.autobiny,delete k.ybins),a(k),k.colorbar&&a(k.colorbar),k.marker&&k.marker.colorbar&&a(k.marker.colorbar),k.line&&k.line.colorbar&&a(k.line.colorbar),k.aaxis&&a(k.aaxis),k.baxis&&a(k.baxis)}};function s(f){if(!i.isPlainObject(f))return!1;var T=f.name;return delete f.name,delete f.showlegend,(typeof T=="string"||typeof T=="number")&&String(T)}function u(f,T,k,P){if(k&&!P)return f;if(P&&!k||!f.trim())return T;if(!T.trim())return f;var g=Math.min(f.length,T.length),A;for(A=0;A<g&&f.charAt(A)===T.charAt(A);A++);var E=f.substr(0,A);return E.trim()}function x(f){var T="middle",k="center";return typeof f=="string"&&(f.indexOf("top")!==-1?T="top":f.indexOf("bottom")!==-1&&(T="bottom"),f.indexOf("left")!==-1?k="left":f.indexOf("right")!==-1&&(k="right")),T+" "+k}function m(f,T){return T in f&&typeof f[T]=="object"&&Object.keys(f[T]).length===0}W.swapXYData=function(f){var T;if(i.swapAttrs(f,["?","?0","d?","?bins","nbins?","autobin?","?src","error_?"]),Array.isArray(f.z)&&Array.isArray(f.z[0])&&(f.transpose?delete f.transpose:f.transpose=!0),f.error_x&&f.error_y){var k=f.error_y,P="copy_ystyle"in k?k.copy_ystyle:!(k.color||k.thickness||k.width);i.swapAttrs(f,["error_?.copy_ystyle"]),P&&i.swapAttrs(f,["error_?.color","error_?.thickness","error_?.width"])}if(typeof f.hoverinfo=="string"){var g=f.hoverinfo.split("+");for(T=0;T<g.length;T++)g[T]==="x"?g[T]="y":g[T]==="y"&&(g[T]="x");f.hoverinfo=g.join("+")}},W.coerceTraceIndices=function(f,T){if(M(T))return[T];if(!Array.isArray(T)||!T.length)return f.data.map(function(g,A){return A});if(Array.isArray(T)){for(var k=[],P=0;P<T.length;P++)i.isIndex(T[P],f.data.length)?k.push(T[P]):i.warn("trace index (",T[P],") is not a number or is out of bounds");return k}return T},W.manageArrayContainers=function(f,T,k){var P=f.obj,g=f.parts,A=g.length,E=g[A-1],d=M(E);if(d&&T===null){var _=g.slice(0,A-1).join("."),L=i.nestedProperty(P,_).get();L.splice(E,1)}else d&&f.get()===void 0&&f.get()===void 0&&(k[f.astr]=null),f.set(T)};var y=/(\.[^\[\]\.]+|\[[^\[\]\.]+\])$/;function c(f){var T=f.search(y);if(T>0)return f.substr(0,T)}W.hasParent=function(f,T){for(var k=c(T);k;){if(k in f)return!0;k=c(k)}return!1};var p=["x","y","z"];W.clearAxisTypes=function(f,T,k){for(var P=0;P<T.length;P++)for(var g=f._fullData[P],A=0;A<3;A++){var E=t(f,g,p[A]);if(E&&E.type!=="log"){var d=E._name,_=E._id.substr(1);if(_.substr(0,5)==="scene"){if(k[_]!==void 0)continue;d=_+"."+d}var L=d+".type";k[d]===void 0&&k[L]===void 0&&i.nestedProperty(f.layout,L).set(null)}}}},90742:function(nt,W,e){var M=e(31420);W._doPlot=M._doPlot,W.newPlot=M.newPlot,W.restyle=M.restyle,W.relayout=M.relayout,W.redraw=M.redraw,W.update=M.update,W._guiRestyle=M._guiRestyle,W._guiRelayout=M._guiRelayout,W._guiUpdate=M._guiUpdate,W._storeDirectGUIEdit=M._storeDirectGUIEdit,W.react=M.react,W.extendTraces=M.extendTraces,W.prependTraces=M.prependTraces,W.addTraces=M.addTraces,W.deleteTraces=M.deleteTraces,W.moveTraces=M.moveTraces,W.purge=M.purge,W.addFrames=M.addFrames,W.deleteFrames=M.deleteFrames,W.animate=M.animate,W.setPlotConfig=M.setPlotConfig;var C=e(95425).getGraphDiv,r=e(28231).eraseActiveShape;W.deleteActiveShape=function(w){return r(C(w))},W.toImage=e(80491),W.validate=e(2466),W.downloadImage=e(26452);var i=e(53853);W.makeTemplate=i.makeTemplate,W.validateTemplate=i.validateTemplate},85844:function(nt,W,e){var M=e(56174),C=e(4969),r=e(48636),i=e(98813).sorterAsc,w=e(33626);W.containerArrayMatch=e(56037);var S=W.isAddVal=function(l){return l==="add"||M(l)},h=W.isRemoveVal=function(l){return l===null||l==="remove"};W.applyContainerArrayChanges=function(l,t,n,o,a){var s=t.astr,u=w.getComponentMethod(s,"supplyLayoutDefaults"),x=w.getComponentMethod(s,"draw"),m=w.getComponentMethod(s,"drawOne"),y=o.replot||o.recalc||u===C||x===C,c=l.layout,p=l._fullLayout;if(n[""]){Object.keys(n).length>1&&r.warn("Full array edits are incompatible with other edits",s);var f=n[""][""];if(h(f))t.set(null);else if(Array.isArray(f))t.set(f);else return r.warn("Unrecognized full array edit value",s,f),!0;return y?!1:(u(c,p),x(l),!0)}var T=Object.keys(n).map(Number).sort(i),k=t.get(),P=k||[],g=a(p,s).get(),A=[],E=-1,d=P.length,_,L,b,D,B,I,V,N;for(_=0;_<T.length;_++){if(b=T[_],D=n[b],B=Object.keys(D),I=D[""],V=S(I),b<0||b>P.length-(V?0:1)){r.warn("index out of range",s,b);continue}if(I!==void 0)B.length>1&&r.warn("Insertion & removal are incompatible with edits to the same index.",s,b),h(I)?A.push(b):V?(I==="add"&&(I={}),P.splice(b,0,I),g&&g.splice(b,0,{})):r.warn("Unrecognized full object edit value",s,b,I),E===-1&&(E=b);else for(L=0;L<B.length;L++)N=s+"["+b+"].",a(P[b],B[L],N).set(D[B[L]])}for(_=A.length-1;_>=0;_--)P.splice(A[_],1),g&&g.splice(A[_],1);if(P.length?k||t.set(P):t.set(null),y)return!1;if(u(c,p),m!==C){var F;if(E===-1)F=T;else{for(d=Math.max(P.length,d),F=[],_=0;_<T.length&&(b=T[_],!(b>=E));_++)F.push(b);for(_=E;_<d;_++)F.push(_)}for(_=0;_<F.length;_++)m(l,F[_])}else x(l);return!0}},31420:function(nt,W,e){var M=e(45568),C=e(10721),r=e(39784),i=e(34809),w=i.nestedProperty,S=e(68596),h=e(40486),l=e(33626),t=e(57297),n=e(44122),o=e(29714),a=e(90259),s=e(25829),u=e(62203),x=e(78766),m=e(95284).initInteractions,y=e(62972),c=e(44844).clearOutline,p=e(24452).dfltConfig,f=e(85844),T=e(10887),k=e(71817),P=e(13582),g=e(54826).AX_NAME_PATTERN,A=0,E=5;function d(vt,Mt,Lt,$t){var ge;if(vt=i.getGraphDiv(vt),S.init(vt),i.isPlainObject(Mt)){var de=Mt;Mt=de.data,Lt=de.layout,$t=de.config,ge=de.frames}var sr=S.triggerHandler(vt,"plotly_beforeplot",[Mt,Lt,$t]);if(sr===!1)return Promise.reject();!Mt&&!Lt&&!i.isPlotDiv(vt)&&i.warn("Calling _doPlot as if redrawing but this container doesn't yet have a plot.",vt);function mr(){if(ge)return W.addFrames(vt,ge)}B(vt,$t),Lt||(Lt={}),M.select(vt).classed("js-plotly-plot",!0),u.makeTester(),Array.isArray(vt._promises)||(vt._promises=[]);var Ve=(vt.data||[]).length===0&&Array.isArray(Mt);Array.isArray(Mt)&&(T.cleanData(Mt),Ve?vt.data=Mt:vt.data.push.apply(vt.data,Mt),vt.empty=!1),(!vt.layout||Ve)&&(vt.layout=T.cleanLayout(Lt)),n.supplyDefaults(vt);var le=vt._fullLayout,pe=le._has("cartesian");le._replotting=!0,(Ve||le._shouldCreateBgLayer)&&(ae(vt),le._shouldCreateBgLayer&&delete le._shouldCreateBgLayer),u.initGradients(vt),u.initPatterns(vt),Ve&&o.saveShowSpikeInitial(vt);var Te=!vt.calcdata||vt.calcdata.length!==(vt._fullData||[]).length;Te&&n.doCalcdata(vt);for(var Yt=0;Yt<vt.calcdata.length;Yt++)vt.calcdata[Yt][0].trace=vt._fullData[Yt];vt._context.responsive?vt._responsiveChartHandler||(vt._responsiveChartHandler=function(){i.isHidden(vt)||n.resize(vt)},window.addEventListener("resize",vt._responsiveChartHandler)):i.clearResponsive(vt);var Ee=i.extendFlat({},le._size),Ne=0;function ar(){for(var Ke=le._basePlotModules,er=0;er<Ke.length;er++)Ke[er].drawFramework&&Ke[er].drawFramework(vt);!le._glcanvas&&le._has("gl")&&(le._glcanvas=le._glcontainer.selectAll(".gl-canvas").data([{key:"contextLayer",context:!0,pick:!1},{key:"focusLayer",context:!1,pick:!1},{key:"pickLayer",context:!1,pick:!0}],function(Er){return Er.key}),le._glcanvas.enter().append("canvas").attr("class",function(Er){return"gl-canvas gl-canvas-"+Er.key.replace("Layer","")}).style({position:"absolute",top:0,left:0,overflow:"visible","pointer-events":"none"}));var xr=vt._context.plotGlPixelRatio;if(le._glcanvas){le._glcanvas.attr("width",le.width*xr).attr("height",le.height*xr).style("width",le.width+"px").style("height",le.height+"px");var Sr=le._glcanvas.data()[0].regl;if(Sr&&(Math.floor(le.width*xr)!==Sr._gl.drawingBufferWidth||Math.floor(le.height*xr)!==Sr._gl.drawingBufferHeight)){var Cr="WebGL context buffer and canvas dimensions do not match due to browser/WebGL bug.";if(Ne)i.error(Cr);else return i.log(Cr+" Clearing graph and plotting again."),n.cleanPlot([],{},vt._fullData,le),n.supplyDefaults(vt),le=vt._fullLayout,n.doCalcdata(vt),Ne++,ar()}}return le.modebar.orientation==="h"?le._modebardiv.style("height",null).style("width","100%"):le._modebardiv.style("width",null).style("height",le.height+"px"),n.previousPromises(vt)}function Ye(){if(n.clearAutoMarginIds(vt),k.drawMarginPushers(vt),o.allowAutoMargin(vt),vt._fullLayout.title.text&&vt._fullLayout.title.automargin&&n.allowAutoMargin(vt,"title.automargin"),le._has("pie"))for(var Ke=vt._fullData,er=0;er<Ke.length;er++){var xr=Ke[er];xr.type==="pie"&&xr.automargin&&n.allowAutoMargin(vt,"pie."+xr.uid+".automargin")}return n.doAutoMargin(vt),n.previousPromises(vt)}function Jt(){if(n.didMarginChange(Ee,le._size))return i.syncOrAsync([Ye,k.layoutStyles],vt)}function ue(){if(!Te){Se();return}return i.syncOrAsync([l.getComponentMethod("shapes","calcAutorange"),l.getComponentMethod("annotations","calcAutorange"),Se],vt)}function Se(){vt._transitioning||(k.doAutoRangeAndConstraints(vt),Ve&&o.saveRangeInitial(vt),l.getComponentMethod("rangeslider","calcAutorange")(vt))}function De(){return o.draw(vt,Ve?"":"redraw")}var Ze=[n.previousPromises,mr,ar,Ye,Jt];pe&&Ze.push(ue),Ze.push(k.layoutStyles),pe&&Ze.push(De,function(Ke){var er=Ke._fullLayout._insideTickLabelsUpdaterange;if(er)return Ke._fullLayout._insideTickLabelsUpdaterange=void 0,At(Ke,er).then(function(){o.saveRangeInitial(Ke,!0)})}),Ze.push(k.drawData,k.finalDraw,m,n.addLinks,n.rehover,n.redrag,n.reselect,n.doAutoMargin,n.previousPromises);var nr=i.syncOrAsync(Ze,vt);return(!nr||!nr.then)&&(nr=Promise.resolve()),nr.then(function(){return _(vt),vt})}function _(vt){var Mt=vt._fullLayout;Mt._redrawFromAutoMarginCount?Mt._redrawFromAutoMarginCount--:vt.emit("plotly_afterplot")}function L(vt){return i.extendFlat(p,vt)}function b(vt,Mt){try{vt._fullLayout._paper.style("background",Mt)}catch(Lt){i.error(Lt)}}function D(vt,Mt){var Lt=x.combine(Mt,"white");b(vt,Lt)}function B(vt,Mt){if(!vt._context){vt._context=i.extendDeep({},p);var Lt=M.select("base");vt._context._baseUrl=Lt.size()&&Lt.attr("href")?window.location.href.split("#")[0]:""}var $t=vt._context,ge,de,sr;if(Mt){for(de=Object.keys(Mt),ge=0;ge<de.length;ge++)sr=de[ge],!(sr==="editable"||sr==="edits")&&sr in $t&&(sr==="setBackground"&&Mt[sr]==="opaque"?$t[sr]=D:$t[sr]=Mt[sr]);Mt.plot3dPixelRatio&&!$t.plotGlPixelRatio&&($t.plotGlPixelRatio=$t.plot3dPixelRatio);var mr=Mt.editable;if(mr!==void 0)for($t.editable=mr,de=Object.keys($t.edits),ge=0;ge<de.length;ge++)$t.edits[de[ge]]=mr;if(Mt.edits)for(de=Object.keys(Mt.edits),ge=0;ge<de.length;ge++)sr=de[ge],sr in $t.edits&&($t.edits[sr]=Mt.edits[sr]);$t._exportedPlot=Mt._exportedPlot}$t.staticPlot&&($t.editable=!1,$t.edits={},$t.autosizable=!1,$t.scrollZoom=!1,$t.doubleClick=!1,$t.showTips=!1,$t.showLink=!1,$t.displayModeBar=!1),$t.displayModeBar==="hover"&&!r&&($t.displayModeBar=!0),($t.setBackground==="transparent"||typeof $t.setBackground!="function")&&($t.setBackground=b),$t._hasZeroHeight=$t._hasZeroHeight||vt.clientHeight===0,$t._hasZeroWidth=$t._hasZeroWidth||vt.clientWidth===0;var Ve=$t.scrollZoom,le=$t._scrollZoom={};if(Ve===!0)le.cartesian=1,le.gl3d=1,le.geo=1,le.mapbox=1,le.map=1;else if(typeof Ve=="string"){var pe=Ve.split("+");for(ge=0;ge<pe.length;ge++)le[pe[ge]]=1}else Ve!==!1&&(le.gl3d=1,le.geo=1,le.mapbox=1,le.map=1)}function I(vt){if(vt=i.getGraphDiv(vt),!i.isPlotDiv(vt))throw new Error("This element is not a Plotly plot: "+vt);return T.cleanData(vt.data),T.cleanLayout(vt.layout),vt.calcdata=void 0,W._doPlot(vt).then(function(){return vt.emit("plotly_redraw"),vt})}function V(vt,Mt,Lt,$t){return vt=i.getGraphDiv(vt),n.cleanPlot([],{},vt._fullData||[],vt._fullLayout||{}),n.purge(vt),W._doPlot(vt,Mt,Lt,$t)}function N(vt,Mt){var Lt=Mt+1,$t=[],ge,de;for(ge=0;ge<vt.length;ge++)de=vt[ge],de<0?$t.push(Lt+de):$t.push(de);return $t}function F(vt,Mt,Lt){var $t,ge;for($t=0;$t<Mt.length;$t++){if(ge=Mt[$t],ge!==parseInt(ge,10))throw new Error("all values in "+Lt+" must be integers");if(ge>=vt.data.length||ge<-vt.data.length)throw new Error(Lt+" must be valid indices for gd.data.");if(Mt.indexOf(ge,$t+1)>-1||ge>=0&&Mt.indexOf(-vt.data.length+ge)>-1||ge<0&&Mt.indexOf(vt.data.length+ge)>-1)throw new Error("each index in "+Lt+" must be unique.")}}function U(vt,Mt,Lt){if(!Array.isArray(vt.data))throw new Error("gd.data must be an array.");if(typeof Mt>"u")throw new Error("currentIndices is a required argument.");if(Array.isArray(Mt)||(Mt=[Mt]),F(vt,Mt,"currentIndices"),typeof Lt<"u"&&!Array.isArray(Lt)&&(Lt=[Lt]),typeof Lt<"u"&&F(vt,Lt,"newIndices"),typeof Lt<"u"&&Mt.length!==Lt.length)throw new Error("current and new indices must be of equal length.")}function G(vt,Mt,Lt){var $t,ge;if(!Array.isArray(vt.data))throw new Error("gd.data must be an array.");if(typeof Mt>"u")throw new Error("traces must be defined.");for(Array.isArray(Mt)||(Mt=[Mt]),$t=0;$t<Mt.length;$t++)if(ge=Mt[$t],typeof ge!="object"||Array.isArray(ge)||ge===null)throw new Error("all values in traces array must be non-array objects");if(typeof Lt<"u"&&!Array.isArray(Lt)&&(Lt=[Lt]),typeof Lt<"u"&&Lt.length!==Mt.length)throw new Error("if indices is specified, traces.length must equal indices.length")}function Y(vt,Mt,Lt,$t){var ge=i.isPlainObject($t);if(!Array.isArray(vt.data))throw new Error("gd.data must be an array");if(!i.isPlainObject(Mt))throw new Error("update must be a key:value object");if(typeof Lt>"u")throw new Error("indices must be an integer or array of integers");F(vt,Lt,"indices");for(var de in Mt){if(!Array.isArray(Mt[de])||Mt[de].length!==Lt.length)throw new Error("attribute "+de+" must be an array of length equal to indices array length");if(ge&&(!(de in $t)||!Array.isArray($t[de])||$t[de].length!==Mt[de].length))throw new Error("when maxPoints is set as a key:value object it must contain a 1:1 corrispondence with the keys and number of traces in the update object")}}function Q(vt,Mt,Lt,$t){var ge=i.isPlainObject($t),de=[],sr,mr,Ve,le,pe;Array.isArray(Lt)||(Lt=[Lt]),Lt=N(Lt,vt.data.length-1);for(var Te in Mt)for(var Yt=0;Yt<Lt.length;Yt++){if(sr=vt.data[Lt[Yt]],Ve=w(sr,Te),mr=Ve.get(),le=Mt[Te][Yt],!i.isArrayOrTypedArray(le))throw new Error("attribute: "+Te+" index: "+Yt+" must be an array");if(!i.isArrayOrTypedArray(mr))throw new Error("cannot extend missing or non-array attribute: "+Te);if(mr.constructor!==le.constructor)throw new Error("cannot extend array with an array of a different type: "+Te);pe=ge?$t[Te][Yt]:$t,C(pe)||(pe=-1),de.push({prop:Ve,target:mr,insert:le,maxp:Math.floor(pe)})}return de}function ft(vt,Mt,Lt,$t,ge){Y(vt,Mt,Lt,$t);for(var de=Q(vt,Mt,Lt,$t),sr={},mr={},Ve=0;Ve<de.length;Ve++){var le=de[Ve].prop,pe=de[Ve].maxp,Te=ge(de[Ve].target,de[Ve].insert,pe);le.set(Te[0]),Array.isArray(sr[le.astr])||(sr[le.astr]=[]),sr[le.astr].push(Te[1]),Array.isArray(mr[le.astr])||(mr[le.astr]=[]),mr[le.astr].push(de[Ve].target.length)}return{update:sr,maxPoints:mr}}function ut(vt,Mt){var Lt=new vt.constructor(vt.length+Mt.length);return Lt.set(vt),Lt.set(Mt,vt.length),Lt}function lt(vt,Mt,Lt,$t){vt=i.getGraphDiv(vt);function ge(Ve,le,pe){var Te,Yt;if(i.isTypedArray(Ve))if(pe<0){var Ee=new Ve.constructor(0),Ne=ut(Ve,le);pe<0?(Te=Ne,Yt=Ee):(Te=Ee,Yt=Ne)}else if(Te=new Ve.constructor(pe),Yt=new Ve.constructor(Ve.length+le.length-pe),pe===le.length)Te.set(le),Yt.set(Ve);else if(pe<le.length){var ar=le.length-pe;Te.set(le.subarray(ar)),Yt.set(Ve),Yt.set(le.subarray(0,ar),Ve.length)}else{var Ye=pe-le.length,Jt=Ve.length-Ye;Te.set(Ve.subarray(Jt)),Te.set(le,Ye),Yt.set(Ve.subarray(0,Jt))}else Te=Ve.concat(le),Yt=pe>=0&&pe<Te.length?Te.splice(0,Te.length-pe):[];return[Te,Yt]}var de=ft(vt,Mt,Lt,$t,ge),sr=W.redraw(vt),mr=[vt,de.update,Lt,de.maxPoints];return h.add(vt,W.prependTraces,mr,lt,arguments),sr}function K(vt,Mt,Lt,$t){vt=i.getGraphDiv(vt);function ge(Ve,le,pe){var Te,Yt;if(i.isTypedArray(Ve))if(pe<=0){var Ee=new Ve.constructor(0),Ne=ut(le,Ve);pe<0?(Te=Ne,Yt=Ee):(Te=Ee,Yt=Ne)}else if(Te=new Ve.constructor(pe),Yt=new Ve.constructor(Ve.length+le.length-pe),pe===le.length)Te.set(le),Yt.set(Ve);else if(pe<le.length){var ar=le.length-pe;Te.set(le.subarray(0,ar)),Yt.set(le.subarray(ar)),Yt.set(Ve,ar)}else{var Ye=pe-le.length;Te.set(le),Te.set(Ve.subarray(0,Ye),le.length),Yt.set(Ve.subarray(Ye))}else Te=le.concat(Ve),Yt=pe>=0&&pe<Te.length?Te.splice(pe,Te.length):[];return[Te,Yt]}var de=ft(vt,Mt,Lt,$t,ge),sr=W.redraw(vt),mr=[vt,de.update,Lt,de.maxPoints];return h.add(vt,W.extendTraces,mr,K,arguments),sr}function $(vt,Mt,Lt){vt=i.getGraphDiv(vt);var $t=[],ge=W.deleteTraces,de=$,sr=[vt,$t],mr=[vt,Mt],Ve,le;for(G(vt,Mt,Lt),Array.isArray(Mt)||(Mt=[Mt]),Mt=Mt.map(function(pe){return i.extendFlat({},pe)}),T.cleanData(Mt),Ve=0;Ve<Mt.length;Ve++)vt.data.push(Mt[Ve]);for(Ve=0;Ve<Mt.length;Ve++)$t.push(-Mt.length+Ve);if(typeof Lt>"u")return le=W.redraw(vt),h.add(vt,ge,sr,de,mr),le;Array.isArray(Lt)||(Lt=[Lt]);try{U(vt,$t,Lt)}catch(pe){throw vt.data.splice(vt.data.length-Mt.length,Mt.length),pe}return h.startSequence(vt),h.add(vt,ge,sr,de,mr),le=W.moveTraces(vt,$t,Lt),h.stopSequence(vt),le}function H(vt,Mt){vt=i.getGraphDiv(vt);var Lt=[],$t=W.addTraces,ge=H,de=[vt,Lt,Mt],sr=[vt,Mt],mr,Ve;if(typeof Mt>"u")throw new Error("indices must be an integer or array of integers.");for(Array.isArray(Mt)||(Mt=[Mt]),F(vt,Mt,"indices"),Mt=N(Mt,vt.data.length-1),Mt.sort(i.sorterDes),mr=0;mr<Mt.length;mr+=1)Ve=vt.data.splice(Mt[mr],1)[0],Lt.push(Ve);var le=W.redraw(vt);return h.add(vt,$t,de,ge,sr),le}function at(vt,Mt,Lt){vt=i.getGraphDiv(vt);var $t=[],ge=[],de=at,sr=at,mr=[vt,Lt,Mt],Ve=[vt,Mt,Lt],le;if(U(vt,Mt,Lt),Mt=Array.isArray(Mt)?Mt:[Mt],typeof Lt>"u")for(Lt=[],le=0;le<Mt.length;le++)Lt.push(-Mt.length+le);for(Lt=Array.isArray(Lt)?Lt:[Lt],Mt=N(Mt,vt.data.length-1),Lt=N(Lt,vt.data.length-1),le=0;le<vt.data.length;le++)Mt.indexOf(le)===-1&&$t.push(vt.data[le]);for(le=0;le<Mt.length;le++)ge.push({newIndex:Lt[le],trace:vt.data[Mt[le]]});for(ge.sort(function(Te,Yt){return Te.newIndex-Yt.newIndex}),le=0;le<ge.length;le+=1)$t.splice(ge[le].newIndex,0,ge[le].trace);vt.data=$t;var pe=W.redraw(vt);return h.add(vt,de,mr,sr,Ve),pe}function ct(vt,Mt,Lt,$t){vt=i.getGraphDiv(vt),T.clearPromiseQueue(vt);var ge={};if(typeof Mt=="string")ge[Mt]=Lt;else if(i.isPlainObject(Mt))ge=i.extendFlat({},Mt),$t===void 0&&($t=Lt);else return i.warn("Restyle fail.",Mt,Lt,$t),Promise.reject();Object.keys(ge).length&&(vt.changed=!0);var de=T.coerceTraceIndices(vt,$t),sr=dt(vt,ge,de),mr=sr.flags;mr.calc&&(vt.calcdata=void 0),mr.clearAxisTypes&&T.clearAxisTypes(vt,de,{});var Ve=[];mr.fullReplot?Ve.push(W._doPlot):(Ve.push(n.previousPromises),n.supplyDefaults(vt),mr.markerSize&&(n.doCalcdata(vt),Nt(Ve)),mr.style&&Ve.push(k.doTraceStyle),mr.colorbars&&Ve.push(k.doColorBars),Ve.push(_)),Ve.push(n.rehover,n.redrag,n.reselect),h.add(vt,ct,[vt,sr.undoit,sr.traces],ct,[vt,sr.redoit,sr.traces]);var le=i.syncOrAsync(Ve,vt);return(!le||!le.then)&&(le=Promise.resolve()),le.then(function(){return vt.emit("plotly_restyle",sr.eventData),vt})}function et(vt){return vt===void 0?null:vt}function Z(vt,Mt){return Mt?function(Lt,$t,ge){var de=w(Lt,$t),sr=de.set;return de.set=function(mr){var Ve=(ge||"")+$t;ot(Ve,de.get(),mr,vt),sr(mr)},de}:w}function ot(vt,Mt,Lt,$t){if(Array.isArray(Mt)||Array.isArray(Lt))for(var ge=Array.isArray(Mt)?Mt:[],de=Array.isArray(Lt)?Lt:[],sr=Math.max(ge.length,de.length),mr=0;mr<sr;mr++)ot(vt+"["+mr+"]",ge[mr],de[mr],$t);else if(i.isPlainObject(Mt)||i.isPlainObject(Lt)){var Ve=i.isPlainObject(Mt)?Mt:{},le=i.isPlainObject(Lt)?Lt:{},pe=i.extendFlat({},Ve,le);for(var Te in pe)ot(vt+"."+Te,Ve[Te],le[Te],$t)}else $t[vt]===void 0&&($t[vt]=et(Mt))}function st(vt,Mt,Lt){for(var $t in Lt){var ge=w(vt,$t);ot($t,ge.get(),Lt[$t],Mt)}}function dt(vt,Mt,Lt){var $t=vt._fullLayout,ge=vt._fullData,de=vt.data,sr=$t._guiEditing,mr=Z($t._preGUI,sr),Ve=i.extendDeepAll({},Mt),le;xt(Mt);var pe=P.traceFlags(),Te={},Yt={},Ee;function Ne(){return Lt.map(function(){})}function ar(Fn){var jr=o.id2name(Fn);Ee.indexOf(jr)===-1&&Ee.push(jr)}function Ye(Fn){return"LAYOUT"+Fn+".autorange"}function Jt(Fn){return"LAYOUT"+Fn+".range"}function ue(Fn){for(var jr=Fn;jr<ge.length;jr++)if(ge[jr]._input===de[Fn])return ge[jr]}function Se(Fn,jr,Pr){if(Array.isArray(Fn)){Fn.forEach(function(On){Se(On,jr,Pr)});return}if(!(Fn in Mt||T.hasParent(Mt,Fn))){var fn;if(Fn.substr(0,6)==="LAYOUT")fn=mr(vt.layout,Fn.replace("LAYOUT",""));else{var nn=Lt[Pr],Rn=$t._tracePreGUI[ue(nn)._fullInput.uid];fn=Z(Rn,sr)(de[nn],Fn)}Fn in Yt||(Yt[Fn]=Ne()),Yt[Fn][Pr]===void 0&&(Yt[Fn][Pr]=et(fn.get())),jr!==void 0&&fn.set(jr)}}function De(Fn){return function(jr){return ge[jr][Fn]}}function Ze(Fn){return function(jr,Pr){return jr===!1?ge[Lt[Pr]][Fn]:null}}for(var nr in Mt){if(T.hasParent(Mt,nr))throw new Error("cannot set "+nr+" and a parent attribute simultaneously");var Ke=Mt[nr],er,xr,Sr,Cr,Er,Lr;if((nr==="autobinx"||nr==="autobiny")&&(nr=nr.charAt(nr.length-1)+"bins",Array.isArray(Ke)?Ke=Ke.map(Ze(nr)):Ke===!1?Ke=Lt.map(De(nr)):Ke=null),Te[nr]=Ke,nr.substr(0,6)==="LAYOUT"){Sr=mr(vt.layout,nr.replace("LAYOUT","")),Yt[nr]=[et(Sr.get())],Sr.set(Array.isArray(Ke)?Ke[0]:Ke),pe.calc=!0;continue}for(Yt[nr]=Ne(),le=0;le<Lt.length;le++){er=de[Lt[le]],xr=ue(Lt[le]);var Ur=$t._tracePreGUI[xr._fullInput.uid];if(Sr=Z(Ur,sr)(er,nr),Cr=Sr.get(),Er=Array.isArray(Ke)?Ke[le%Ke.length]:Ke,Er!==void 0){var zr=Sr.parts[Sr.parts.length-1],te=nr.substr(0,nr.length-zr.length-1),he=te?te+".":"",Je=te?w(xr,te).get():xr;if(Lr=t.getTraceValObject(xr,Sr.parts),Lr&&Lr.impliedEdits&&Er!==null)for(var br in Lr.impliedEdits)Se(i.relativeAttr(nr,br),Lr.impliedEdits[br],le);else if((zr==="thicknessmode"||zr==="lenmode")&&Cr!==Er&&(Er==="fraction"||Er==="pixels")&&Je){var pr=$t._size,We=Je.orient,hr=We==="top"||We==="bottom";if(zr==="thicknessmode"){var Ar=hr?pr.h:pr.w;Se(he+"thickness",Je.thickness*(Er==="fraction"?1/Ar:Ar),le)}else{var yr=hr?pr.w:pr.h;Se(he+"len",Je.len*(Er==="fraction"?1/yr:yr),le)}}else if(nr==="type"&&(Er==="pie"!=(Cr==="pie")||Er==="funnelarea"!=(Cr==="funnelarea"))){var dr="x",Rr="y";(Er==="bar"||Cr==="bar")&&er.orientation==="h"&&(dr="y",Rr="x"),i.swapAttrs(er,["?","?src"],"labels",dr),i.swapAttrs(er,["d?","?0"],"label",dr),i.swapAttrs(er,["?","?src"],"values",Rr),Cr==="pie"||Cr==="funnelarea"?(w(er,"marker.color").set(w(er,"marker.colors").get()),$t._pielayer.selectAll("g.trace").remove()):l.traceIs(er,"cartesian")&&w(er,"marker.colors").set(w(er,"marker.color").get())}Yt[nr][le]=et(Cr);var Qr=["swapxy","swapxyaxes","orientation","orientationaxes"];if(Qr.indexOf(nr)!==-1){if(nr==="orientation"){Sr.set(Er);var Xr=er.x&&!er.y?"h":"v";if((Sr.get()||Xr)===xr.orientation)continue}else nr==="orientationaxes"&&(er.orientation={v:"h",h:"v"}[xr.orientation]);T.swapXYData(er),pe.calc=pe.clearAxisTypes=!0}else n.dataArrayContainers.indexOf(Sr.parts[0])!==-1?(T.manageArrayContainers(Sr,Er,Yt),pe.calc=!0):(Lr?Lr.arrayOk&&!l.traceIs(xr,"regl")&&(i.isArrayOrTypedArray(Er)||i.isArrayOrTypedArray(Cr))?pe.calc=!0:P.update(pe,Lr):pe.calc=!0,Sr.set(Er))}}if(["swapxyaxes","orientationaxes"].indexOf(nr)!==-1&&o.swap(vt,Lt),nr==="orientationaxes"){var Dn=w(vt.layout,"hovermode"),on=Dn.get();on==="x"?Dn.set("y"):on==="y"?Dn.set("x"):on==="x unified"?Dn.set("y unified"):on==="y unified"&&Dn.set("x unified")}if(["orientation","type"].indexOf(nr)!==-1){for(Ee=[],le=0;le<Lt.length;le++){var Hn=de[Lt[le]];l.traceIs(Hn,"cartesian")&&(ar(Hn.xaxis||"x"),ar(Hn.yaxis||"y"))}Se(Ee.map(Ye),!0,0),Se(Ee.map(Jt),[0,1],0)}}return(pe.calc||pe.plot)&&(pe.fullReplot=!0),{flags:pe,undoit:Yt,redoit:Te,traces:Lt,eventData:i.extendDeepNoArrays([],[Ve,Lt])}}function xt(vt){var Mt=i.counterRegex("axis",".title",!1,!1),Lt=/colorbar\.title$/,$t=Object.keys(vt),ge,de,sr;for(ge=0;ge<$t.length;ge++)de=$t[ge],sr=vt[de],(de==="title"||Mt.test(de)||Lt.test(de))&&(typeof sr=="string"||typeof sr=="number")?mr(de,de.replace("title","title.text")):de.indexOf("titlefont")>-1&&de.indexOf("grouptitlefont")===-1?mr(de,de.replace("titlefont","title.font")):de.indexOf("titleposition")>-1?mr(de,de.replace("titleposition","title.position")):de.indexOf("titleside")>-1?mr(de,de.replace("titleside","title.side")):de.indexOf("titleoffset")>-1&&mr(de,de.replace("titleoffset","title.offset"));function mr(Ve,le){vt[le]=vt[Ve],delete vt[Ve]}}function At(vt,Mt,Lt){vt=i.getGraphDiv(vt),T.clearPromiseQueue(vt);var $t={};if(typeof Mt=="string")$t[Mt]=Lt;else if(i.isPlainObject(Mt))$t=i.extendFlat({},Mt);else return i.warn("Relayout fail.",Mt,Lt),Promise.reject();Object.keys($t).length&&(vt.changed=!0);var ge=Dt(vt,$t),de=ge.flags;de.calc&&(vt.calcdata=void 0);var sr=[n.previousPromises];de.layoutReplot?sr.push(k.layoutReplot):Object.keys($t).length&&(St(vt,de,ge)||n.supplyDefaults(vt),de.legend&&sr.push(k.doLegend),de.layoutstyle&&sr.push(k.layoutStyles),de.axrange&&Nt(sr,ge.rangesAltered),de.ticks&&sr.push(k.doTicksRelayout),de.modebar&&sr.push(k.doModeBar),de.camera&&sr.push(k.doCamera),de.colorbars&&sr.push(k.doColorBars),sr.push(_)),sr.push(n.rehover,n.redrag,n.reselect),h.add(vt,At,[vt,ge.undoit],At,[vt,ge.redoit]);var mr=i.syncOrAsync(sr,vt);return(!mr||!mr.then)&&(mr=Promise.resolve(vt)),mr.then(function(){return vt.emit("plotly_relayout",ge.eventData),vt})}function St(vt,Mt,Lt){var $t=vt._fullLayout;if(!Mt.axrange)return!1;for(var ge in Mt)if(ge!=="axrange"&&Mt[ge])return!1;var de,sr,mr=function(Ee,Ne){return i.coerce(de,sr,s,Ee,Ne)},Ve={};for(var le in Lt.rangesAltered){var pe=o.id2name(le);if(de=vt.layout[pe],sr=$t[pe],a(de,sr,mr,Ve),sr._matchGroup){for(var Te in sr._matchGroup)if(Te!==le){var Yt=$t[o.id2name(Te)];Yt.autorange=sr.autorange,Yt.range=sr.range.slice(),Yt._input.range=sr.range.slice()}}}return!0}function Nt(vt,Mt){var Lt=Mt?function($t){var ge=[],de=!0;for(var sr in Mt){var mr=o.getFromId($t,sr);if(ge.push(sr),(mr.ticklabelposition||"").indexOf("inside")!==-1&&mr._anchorAxis&&ge.push(mr._anchorAxis._id),mr._matchGroup)for(var Ve in mr._matchGroup)Mt[Ve]||ge.push(Ve)}return o.draw($t,ge,{skipTitle:de})}:function($t){return o.draw($t,"redraw")};vt.push(c,k.doAutoRangeAndConstraints,Lt,k.drawData,k.finalDraw)}var Wt=/^[xyz]axis[0-9]*\.range(\[[0|1]\])?$/,Vt=/^[xyz]axis[0-9]*\.autorange$/,jt=/^[xyz]axis[0-9]*\.domain(\[[0|1]\])?$/;function Dt(vt,Mt){var Lt=vt.layout,$t=vt._fullLayout,ge=$t._guiEditing,de=Z($t._preGUI,ge),sr=Object.keys(Mt),mr=o.list(vt),Ve=i.extendDeepAll({},Mt),le={},pe,Te,Yt;for(xt(Mt),sr=Object.keys(Mt),Te=0;Te<sr.length;Te++)if(sr[Te].indexOf("allaxes")===0){for(Yt=0;Yt<mr.length;Yt++){var Ee=mr[Yt]._id.substr(1),Ne=Ee.indexOf("scene")!==-1?Ee+".":"",ar=sr[Te].replace("allaxes",Ne+mr[Yt]._name);Mt[ar]||(Mt[ar]=Mt[sr[Te]])}delete Mt[sr[Te]]}var Ye=P.layoutFlags(),Jt={},ue={};function Se(Rn,On){if(Array.isArray(Rn)){Rn.forEach(function(Gn){Se(Gn,On)});return}if(!(Rn in Mt||T.hasParent(Mt,Rn))){var vn=de(Lt,Rn);Rn in ue||(ue[Rn]=et(vn.get())),On!==void 0&&vn.set(On)}}var De={},Ze;function nr(Rn){var On=o.name2id(Rn.split(".")[0]);return De[On]=1,On}for(var Ke in Mt){if(T.hasParent(Mt,Ke))throw new Error("cannot set "+Ke+" and a parent attribute simultaneously");for(var er=de(Lt,Ke),xr=Mt[Ke],Sr=er.parts.length,Cr=Sr-1;Cr>0&&typeof er.parts[Cr]!="string";)Cr--;var Er=er.parts[Cr],Lr=er.parts[Cr-1]+"."+Er,Ur=er.parts.slice(0,Cr).join("."),zr=w(vt.layout,Ur).get(),te=w($t,Ur).get(),he=er.get();if(xr!==void 0){Jt[Ke]=xr,ue[Ke]=Er==="reverse"?xr:et(he);var Je=t.getLayoutValObject($t,er.parts);if(Je&&Je.impliedEdits&&xr!==null)for(var br in Je.impliedEdits)Se(i.relativeAttr(Ke,br),Je.impliedEdits[br]);if(["width","height"].indexOf(Ke)!==-1)if(xr){Se("autosize",null);var pr=Ke==="height"?"width":"height";Se(pr,$t[pr])}else $t[Ke]=vt._initialAutoSize[Ke];else if(Ke==="autosize")Se("width",xr?null:$t.width),Se("height",xr?null:$t.height);else if(Lr.match(Wt))nr(Lr),w($t,Ur+"._inputRange").set(null);else if(Lr.match(Vt)){nr(Lr),w($t,Ur+"._inputRange").set(null);var We=w($t,Ur).get();We._inputDomain&&(We._input.domain=We._inputDomain.slice())}else Lr.match(jt)&&w($t,Ur+"._inputDomain").set(null);if(Er==="type"){Ze=zr;var hr=te.type==="linear"&&xr==="log",Ar=te.type==="log"&&xr==="linear";if(hr||Ar){if(!Ze||!Ze.range)Se(Ur+".autorange",!0);else if(te.autorange)hr&&(Ze.range=Ze.range[1]>Ze.range[0]?[1,2]:[2,1]);else{var yr=Ze.range[0],dr=Ze.range[1];hr?(yr<=0&&dr<=0&&Se(Ur+".autorange",!0),yr<=0?yr=dr/1e6:dr<=0&&(dr=yr/1e6),Se(Ur+".range[0]",Math.log(yr)/Math.LN10),Se(Ur+".range[1]",Math.log(dr)/Math.LN10)):(Se(Ur+".range[0]",Math.pow(10,yr)),Se(Ur+".range[1]",Math.pow(10,dr)))}Array.isArray($t._subplots.polar)&&$t._subplots.polar.length&&$t[er.parts[0]]&&er.parts[1]==="radialaxis"&&delete $t[er.parts[0]]._subplot.viewInitial["radialaxis.range"],l.getComponentMethod("annotations","convertCoords")(vt,te,xr,Se),l.getComponentMethod("images","convertCoords")(vt,te,xr,Se)}else Se(Ur+".autorange",!0),Se(Ur+".range",null);w($t,Ur+"._inputRange").set(null)}else if(Er.match(g)){var Rr=w($t,Ke).get(),Qr=(xr||{}).type;(!Qr||Qr==="-")&&(Qr="linear"),l.getComponentMethod("annotations","convertCoords")(vt,Rr,Qr,Se),l.getComponentMethod("images","convertCoords")(vt,Rr,Qr,Se)}var Xr=f.containerArrayMatch(Ke);if(Xr){pe=Xr.array,Te=Xr.index;var Dn=Xr.property,on=Je||{editType:"calc"};Te!==""&&Dn===""&&(f.isAddVal(xr)?ue[Ke]=null:f.isRemoveVal(xr)?ue[Ke]=(w(Lt,pe).get()||[])[Te]:i.warn("unrecognized full object value",Mt)),P.update(Ye,on),le[pe]||(le[pe]={});var Hn=le[pe][Te];Hn||(Hn=le[pe][Te]={}),Hn[Dn]=xr,delete Mt[Ke]}else Er==="reverse"?(zr.range?zr.range.reverse():(Se(Ur+".autorange",!0),zr.range=[1,0]),te.autorange?Ye.calc=!0:Ye.plot=!0):(Ke==="dragmode"&&(xr===!1&&he!==!1||xr!==!1&&he===!1)||$t._has("scatter-like")&&$t._has("regl")&&Ke==="dragmode"&&(xr==="lasso"||xr==="select")&&!(he==="lasso"||he==="select")||$t._has("gl2d")?Ye.plot=!0:Je?P.update(Ye,Je):Ye.calc=!0,er.set(xr))}}for(pe in le){var Fn=f.applyContainerArrayChanges(vt,de(Lt,pe),le[pe],Ye,de);Fn||(Ye.plot=!0)}for(var jr in De){Ze=o.getFromId(vt,jr);var Pr=Ze&&Ze._constraintGroup;if(Pr){Ye.calc=!0;for(var fn in Pr)De[fn]||(o.getFromId(vt,fn)._constraintShrinkable=!0)}}(kt(vt)||Mt.height||Mt.width)&&(Ye.plot=!0);var nn=$t.shapes;for(Te=0;Te<nn.length;Te++)if(nn[Te].showlegend){Ye.calc=!0;break}return(Ye.plot||Ye.calc)&&(Ye.layoutReplot=!0),{flags:Ye,rangesAltered:De,undoit:ue,redoit:Jt,eventData:Ve}}function kt(vt){var Mt=vt._fullLayout,Lt=Mt.width,$t=Mt.height;return vt.layout.autosize&&n.plotAutoSize(vt,vt.layout,Mt),Mt.width!==Lt||Mt.height!==$t}function Bt(vt,Mt,Lt,$t){vt=i.getGraphDiv(vt),T.clearPromiseQueue(vt),i.isPlainObject(Mt)||(Mt={}),i.isPlainObject(Lt)||(Lt={}),Object.keys(Mt).length&&(vt.changed=!0),Object.keys(Lt).length&&(vt.changed=!0);var ge=T.coerceTraceIndices(vt,$t),de=dt(vt,i.extendFlat({},Mt),ge),sr=de.flags,mr=Dt(vt,i.extendFlat({},Lt)),Ve=mr.flags;(sr.calc||Ve.calc)&&(vt.calcdata=void 0),sr.clearAxisTypes&&T.clearAxisTypes(vt,ge,Lt);var le=[];Ve.layoutReplot?le.push(k.layoutReplot):sr.fullReplot?le.push(W._doPlot):(le.push(n.previousPromises),St(vt,Ve,mr)||n.supplyDefaults(vt),sr.style&&le.push(k.doTraceStyle),(sr.colorbars||Ve.colorbars)&&le.push(k.doColorBars),Ve.legend&&le.push(k.doLegend),Ve.layoutstyle&&le.push(k.layoutStyles),Ve.axrange&&Nt(le,mr.rangesAltered),Ve.ticks&&le.push(k.doTicksRelayout),Ve.modebar&&le.push(k.doModeBar),Ve.camera&&le.push(k.doCamera),le.push(_)),le.push(n.rehover,n.redrag,n.reselect),h.add(vt,Bt,[vt,de.undoit,mr.undoit,de.traces],Bt,[vt,de.redoit,mr.redoit,de.traces]);var pe=i.syncOrAsync(le,vt);return(!pe||!pe.then)&&(pe=Promise.resolve(vt)),pe.then(function(){return vt.emit("plotly_update",{data:de.eventData,layout:mr.eventData}),vt})}function Ot(vt){return function(Mt){Mt._fullLayout._guiEditing=!0;var Lt=vt.apply(null,arguments);return Mt._fullLayout._guiEditing=!1,Lt}}var Ht=[{pattern:/^hiddenlabels/,attr:"legend.uirevision"},{pattern:/^((x|y)axis\d*)\.((auto)?range|title\.text)/},{pattern:/axis\d*\.showspikes$/,attr:"modebar.uirevision"},{pattern:/(hover|drag)mode$/,attr:"modebar.uirevision"},{pattern:/^(scene\d*)\.camera/},{pattern:/^(geo\d*)\.(projection|center|fitbounds)/},{pattern:/^(ternary\d*\.[abc]axis)\.(min|title\.text)$/},{pattern:/^(polar\d*\.radialaxis)\.((auto)?range|angle|title\.text)/},{pattern:/^(polar\d*\.angularaxis)\.rotation/},{pattern:/^(mapbox\d*)\.(center|zoom|bearing|pitch)/},{pattern:/^(map\d*)\.(center|zoom|bearing|pitch)/},{pattern:/^legend\.(x|y)$/,attr:"editrevision"},{pattern:/^(shapes|annotations)/,attr:"editrevision"},{pattern:/^title\.text$/,attr:"editrevision"}],ye=[{pattern:/^selectedpoints$/,attr:"selectionrevision"},{pattern:/(^|value\.)visible$/,attr:"legend.uirevision"},{pattern:/^dimensions\[\d+\]\.constraintrange/},{pattern:/^node\.(x|y|groups)/},{pattern:/^level$/},{pattern:/(^|value\.)name$/},{pattern:/colorbar\.title\.text$/},{pattern:/colorbar\.(x|y)$/,attr:"editrevision"}];function Qt(vt,Mt){for(var Lt=0;Lt<Mt.length;Lt++){var $t=Mt[Lt],ge=vt.match($t.pattern);if(ge){var de=ge[1]||"";return{head:de,tail:vt.substr(de.length+1),attr:$t.attr}}}}function _e(vt,Mt){var Lt=w(Mt,vt).get();if(Lt!==void 0)return Lt;var $t=vt.split(".");for($t.pop();$t.length>1;)if($t.pop(),Lt=w(Mt,$t.join(".")+".uirevision").get(),Lt!==void 0)return Lt;return Mt.uirevision}function ie(vt,Mt){for(var Lt=0;Lt<Mt.length;Lt++)if(Mt[Lt]._fullInput.uid===vt)return Lt;return-1}function Ae(vt,Mt,Lt){for(var $t=0;$t<Mt.length;$t++)if(Mt[$t].uid===vt)return $t;return!Mt[Lt]||Mt[Lt].uid?-1:Lt}function Pe(vt,Mt){var Lt=i.isPlainObject(vt),$t=Array.isArray(vt);return Lt||$t?(Lt&&i.isPlainObject(Mt)||$t&&Array.isArray(Mt))&&JSON.stringify(vt)===JSON.stringify(Mt):vt===Mt}function Oe(vt,Mt,Lt,$t){var ge=$t._preGUI,de,sr,mr,Ve,le,pe,Te,Yt,Ee,Ne,ar=[],Ye={},Jt={};for(de in ge){if(le=Qt(de,Ht),le){if(Ee=le.head,Ne=le.tail,sr=le.attr||Ee+".uirevision",mr=w($t,sr).get(),Ve=mr&&_e(sr,Mt),Ve&&Ve===mr){if(pe=ge[de],pe===null&&(pe=void 0),Te=w(Mt,de),Yt=Te.get(),Pe(Yt,pe)){Yt===void 0&&Ne==="autorange"&&ar.push(Ee),Te.set(et(w($t,de).get()));continue}else if(Ne==="autorange"||Ne.substr(0,6)==="range["){var ue=ge[Ee+".range[0]"],Se=ge[Ee+".range[1]"],De=ge[Ee+".autorange"];if(De||De===null&&ue===null&&Se===null){if(!(Ee in Ye)){var Ze=w(Mt,Ee).get();Ye[Ee]=Ze&&(Ze.autorange||Ze.autorange!==!1&&(!Ze.range||Ze.range.length!==2))}if(Ye[Ee]){Te.set(et(w($t,de).get()));continue}}}}}else i.warn("unrecognized GUI edit: "+de);delete ge[de],le&&le.tail.substr(0,6)==="range["&&(Jt[le.head]=1)}for(var nr=0;nr<ar.length;nr++){var Ke=ar[nr];if(Jt[Ke]){var er=w(Mt,Ke).get();er&&delete er.autorange}}var xr=$t._tracePreGUI;for(var Sr in xr){var Cr=xr[Sr],Er=null,Lr;for(de in Cr){if(!Er){var Ur=ie(Sr,Lt);if(Ur<0){delete xr[Sr];break}var zr=Lt[Ur];Lr=zr._fullInput;var te=Ae(Sr,vt,Lr.index);if(te<0){delete xr[Sr];break}Er=vt[te]}if(le=Qt(de,ye),le){if(le.attr?(mr=w($t,le.attr).get(),Ve=mr&&_e(le.attr,Mt)):(mr=Lr.uirevision,Ve=Er.uirevision,Ve===void 0&&(Ve=Mt.uirevision)),Ve&&Ve===mr&&(pe=Cr[de],pe===null&&(pe=void 0),Te=w(Er,de),Yt=Te.get(),Pe(Yt,pe))){Te.set(et(w(Lr,de).get()));continue}}else i.warn("unrecognized GUI edit: "+de+" in trace uid "+Sr);delete Cr[de]}}}function je(vt,Mt,Lt,$t){var ge,de;function sr(){return W.addFrames(vt,ge)}vt=i.getGraphDiv(vt),T.clearPromiseQueue(vt);var mr=vt._fullData,Ve=vt._fullLayout;if(!i.isPlotDiv(vt)||!mr||!Ve)de=W.newPlot(vt,Mt,Lt,$t);else{if(i.isPlainObject(Mt)){var le=Mt;Mt=le.data,Lt=le.layout,$t=le.config,ge=le.frames}var pe=!1;if($t){var Te=i.extendDeep({},vt._context);vt._context=void 0,B(vt,$t),pe=ee(Te,vt._context)}vt.data=Mt||[],T.cleanData(vt.data),vt.layout=Lt||{},T.cleanLayout(vt.layout),Oe(vt.data,vt.layout,mr,Ve),n.supplyDefaults(vt,{skipUpdateCalc:!0});var Yt=vt._fullData,Ee=vt._fullLayout,Ne=Ee.datarevision===void 0,ar=Ee.transition,Ye=Ie(vt,Ve,Ee,Ne,ar),Jt=Ye.newDataRevision,ue=Le(vt,mr,Yt,Ne,ar,Jt);if(kt(vt)&&(Ye.layoutReplot=!0),ue.calc||Ye.calc){vt.calcdata=void 0;for(var Se=Object.getOwnPropertyNames(Ee),De=0;De<Se.length;De++){var Ze=Se[De],nr=Ze.substring(0,5);if(nr==="xaxis"||nr==="yaxis"){var Ke=Ee[Ze]._emptyCategories;Ke&&Ke()}}}else n.supplyDefaultsUpdateCalc(vt.calcdata,Yt);var er=[];if(ge&&(vt._transitionData={},n.createTransitionData(vt),er.push(sr)),Ee.transition&&!pe&&(ue.anim||Ye.anim))Ye.ticks&&er.push(k.doTicksRelayout),n.doCalcdata(vt),k.doAutoRangeAndConstraints(vt),er.push(function(){return n.transitionFromReact(vt,ue,Ye,Ve)});else if(ue.fullReplot||Ye.layoutReplot||pe)vt._fullLayout._skipDefaults=!0,er.push(W._doPlot);else{for(var xr in Ye.arrays){var Sr=Ye.arrays[xr];if(Sr.length){var Cr=l.getComponentMethod(xr,"drawOne");if(Cr!==i.noop)for(var Er=0;Er<Sr.length;Er++)Cr(vt,Sr[Er]);else{var Lr=l.getComponentMethod(xr,"draw");if(Lr===i.noop)throw new Error("cannot draw components: "+xr);Lr(vt)}}}er.push(n.previousPromises),ue.style&&er.push(k.doTraceStyle),(ue.colorbars||Ye.colorbars)&&er.push(k.doColorBars),Ye.legend&&er.push(k.doLegend),Ye.layoutstyle&&er.push(k.layoutStyles),Ye.axrange&&Nt(er),Ye.ticks&&er.push(k.doTicksRelayout),Ye.modebar&&er.push(k.doModeBar),Ye.camera&&er.push(k.doCamera),er.push(_)}er.push(n.rehover,n.redrag,n.reselect),de=i.syncOrAsync(er,vt),(!de||!de.then)&&(de=Promise.resolve(vt))}return de.then(function(){return vt.emit("plotly_react",{data:Mt,layout:Lt}),vt})}function Le(vt,Mt,Lt,$t,ge,de){var sr=Mt.length===Lt.length;if(!ge&&!sr)return{fullReplot:!0,calc:!0};var mr=P.traceFlags();mr.arrays={},mr.nChanges=0,mr.nChangesAnim=0;var Ve,le;function pe(Ee){var Ne=t.getTraceValObject(le,Ee);return!le._module.animatable&&Ne.anim&&(Ne.anim=!1),Ne}var Te={getValObject:pe,flags:mr,immutable:$t,transition:ge,newDataRevision:de,gd:vt},Yt={};for(Ve=0;Ve<Mt.length;Ve++)if(Lt[Ve]){if(le=Lt[Ve]._fullInput,n.hasMakesDataTransform(le)&&(le=Lt[Ve]),Yt[le.uid])continue;Yt[le.uid]=1,Ut(Mt[Ve]._fullInput,le,[],Te)}return(mr.calc||mr.plot)&&(mr.fullReplot=!0),ge&&mr.nChanges&&mr.nChangesAnim&&(mr.anim=mr.nChanges===mr.nChangesAnim&&sr?"all":"some"),mr}function Ie(vt,Mt,Lt,$t,ge){var de=P.layoutFlags();de.arrays={},de.rangesAltered={},de.nChanges=0,de.nChangesAnim=0;function sr(Ve){return t.getLayoutValObject(Lt,Ve)}var mr={getValObject:sr,flags:de,immutable:$t,transition:ge,gd:vt};return Ut(Mt,Lt,[],mr),(de.plot||de.calc)&&(de.layoutReplot=!0),ge&&de.nChanges&&de.nChangesAnim&&(de.anim=de.nChanges===de.nChangesAnim?"all":"some"),de}function Ut(vt,Mt,Lt,$t){var ge,de,sr,mr=$t.getValObject,Ve=$t.flags,le=$t.immutable,pe=$t.inArray,Te=$t.arrayIndex;function Yt(){var Ur=ge.editType;if(pe&&Ur.indexOf("arraydraw")!==-1){i.pushUnique(Ve.arrays[pe],Te);return}P.update(Ve,ge),Ur!=="none"&&Ve.nChanges++,$t.transition&&ge.anim&&Ve.nChangesAnim++,(Wt.test(sr)||Vt.test(sr))&&(Ve.rangesAltered[Lt[0]]=1),jt.test(sr)&&w(Mt,"_inputDomain").set(null),de==="datarevision"&&(Ve.newDataRevision=1)}function Ee(Ur){return Ur.valType==="data_array"||Ur.arrayOk}for(de in vt){if(Ve.calc&&!$t.transition)return;var Ne=vt[de],ar=Mt[de],Ye=Lt.concat(de);if(sr=Ye.join("."),!(de.charAt(0)==="_"||typeof Ne=="function"||Ne===ar)){if((de==="tick0"||de==="dtick")&&Lt[0]!=="geo"){var Jt=Mt.tickmode;if(Jt==="auto"||Jt==="array"||!Jt)continue}if(!(de==="range"&&Mt.autorange)&&!((de==="zmin"||de==="zmax")&&Mt.type==="contourcarpet")&&(ge=mr(Ye),!!ge&&!(ge._compareAsJSON&&JSON.stringify(Ne)===JSON.stringify(ar)))){var ue=ge.valType,Se,De=Ee(ge),Ze=Array.isArray(Ne),nr=Array.isArray(ar);if(Ze&&nr){var Ke="_input_"+de,er=vt[Ke],xr=Mt[Ke];if(Array.isArray(er)&&er===xr)continue}if(ar===void 0)De&&Ze?Ve.calc=!0:Yt();else if(ge._isLinkedToArray){var Sr=[],Cr=!1;pe||(Ve.arrays[de]=Sr);var Er=Math.min(Ne.length,ar.length),Lr=Math.max(Ne.length,ar.length);if(Er!==Lr)if(ge.editType==="arraydraw")Cr=!0;else{Yt();continue}for(Se=0;Se<Er;Se++)Ut(Ne[Se],ar[Se],Ye.concat(Se),i.extendFlat({inArray:de,arrayIndex:Se},$t));if(Cr)for(Se=Er;Se<Lr;Se++)Sr.push(Se)}else!ue&&i.isPlainObject(Ne)?Ut(Ne,ar,Ye,$t):De?Ze&&nr?(le&&(Ve.calc=!0),(le||$t.newDataRevision)&&Yt()):Ze!==nr?Ve.calc=!0:Yt():Ze&&nr?(Ne.length!==ar.length||String(Ne)!==String(ar))&&Yt():Yt()}}}for(de in Mt)if(!(de in vt||de.charAt(0)==="_"||typeof Mt[de]=="function"))if(ge=mr(Lt.concat(de)),Ee(ge)&&Array.isArray(Mt[de])){Ve.calc=!0;return}else Yt()}function ee(vt,Mt){var Lt;for(Lt in vt)if(Lt.charAt(0)!=="_"){var $t=vt[Lt],ge=Mt[Lt];if($t!==ge)if(i.isPlainObject($t)&&i.isPlainObject(ge)){if(ee($t,ge))return!0}else if(Array.isArray($t)&&Array.isArray(ge)){if($t.length!==ge.length)return!0;for(var de=0;de<$t.length;de++)if($t[de]!==ge[de])if(i.isPlainObject($t[de])&&i.isPlainObject(ge[de])){if(ee($t[de],ge[de]))return!0}else return!0}else return!0}}function Kt(vt,Mt,Lt){if(vt=i.getGraphDiv(vt),!i.isPlotDiv(vt))throw new Error("This element is not a Plotly plot: "+vt+". It's likely that you've failed to create a plot before animating it. For more details, see https://plotly.com/javascript/animations/");var $t=vt._transitionData;$t._frameQueue||($t._frameQueue=[]),Lt=n.supplyAnimationDefaults(Lt);var ge=Lt.transition,de=Lt.frame;$t._frameWaitingCnt===void 0&&($t._frameWaitingCnt=0);function sr(le){return Array.isArray(ge)?le>=ge.length?ge[0]:ge[le]:ge}function mr(le){return Array.isArray(de)?le>=de.length?de[0]:de[le]:de}function Ve(le,pe){var Te=0;return function(){if(le&&++Te===pe)return le()}}return new Promise(function(le,pe){function Te(){if($t._frameQueue.length!==0){for(;$t._frameQueue.length;){var Er=$t._frameQueue.pop();Er.onInterrupt&&Er.onInterrupt()}vt.emit("plotly_animationinterrupted",[])}}function Yt(Er){if(Er.length!==0){for(var Lr=0;Lr<Er.length;Lr++){var Ur;Er[Lr].type==="byname"?Ur=n.computeFrame(vt,Er[Lr].name):Ur=Er[Lr].data;var zr=mr(Lr),te=sr(Lr);te.duration=Math.min(te.duration,zr.duration);var he={frame:Ur,name:Er[Lr].name,frameOpts:zr,transitionOpts:te};Lr===Er.length-1&&(he.onComplete=Ve(le,2),he.onInterrupt=pe),$t._frameQueue.push(he)}Lt.mode==="immediate"&&($t._lastFrameAt=-1/0),$t._animationRaf||ar()}}function Ee(){vt.emit("plotly_animated"),window.cancelAnimationFrame($t._animationRaf),$t._animationRaf=null}function Ne(){$t._currentFrame&&$t._currentFrame.onComplete&&$t._currentFrame.onComplete();var Er=$t._currentFrame=$t._frameQueue.shift();if(Er){var Lr=Er.name?Er.name.toString():null;vt._fullLayout._currentFrame=Lr,$t._lastFrameAt=Date.now(),$t._timeToNext=Er.frameOpts.duration,n.transition(vt,Er.frame.data,Er.frame.layout,T.coerceTraceIndices(vt,Er.frame.traces),Er.frameOpts,Er.transitionOpts).then(function(){Er.onComplete&&Er.onComplete()}),vt.emit("plotly_animatingframe",{name:Lr,frame:Er.frame,animation:{frame:Er.frameOpts,transition:Er.transitionOpts}})}else Ee()}function ar(){vt.emit("plotly_animating"),$t._lastFrameAt=-1/0,$t._timeToNext=0,$t._runningTransitions=0,$t._currentFrame=null;var Er=function(){$t._animationRaf=window.requestAnimationFrame(Er),Date.now()-$t._lastFrameAt>$t._timeToNext&&Ne()};Er()}var Ye=0;function Jt(Er){return Array.isArray(ge)?Ye>=ge.length?Er.transitionOpts=ge[Ye]:Er.transitionOpts=ge[0]:Er.transitionOpts=ge,Ye++,Er}var ue,Se,De=[],Ze=Mt==null,nr=Array.isArray(Mt),Ke=!Ze&&!nr&&i.isPlainObject(Mt);if(Ke)De.push({type:"object",data:Jt(i.extendFlat({},Mt))});else if(Ze||["string","number"].indexOf(typeof Mt)!==-1)for(ue=0;ue<$t._frames.length;ue++)Se=$t._frames[ue],Se&&(Ze||String(Se.group)===String(Mt))&&De.push({type:"byname",name:String(Se.name),data:Jt({name:Se.name})});else if(nr)for(ue=0;ue<Mt.length;ue++){var er=Mt[ue];["number","string"].indexOf(typeof er)!==-1?(er=String(er),De.push({type:"byname",name:er,data:Jt({name:er})})):i.isPlainObject(er)&&De.push({type:"object",data:Jt(i.extendFlat({},er))})}for(ue=0;ue<De.length;ue++)if(Se=De[ue],Se.type==="byname"&&!$t._frameHash[Se.data.name]){i.warn('animate failure: frame not found: "'+Se.data.name+'"'),pe();return}["next","immediate"].indexOf(Lt.mode)!==-1&&Te(),Lt.direction==="reverse"&&De.reverse();var xr=vt._fullLayout._currentFrame;if(xr&&Lt.fromcurrent){var Sr=-1;for(ue=0;ue<De.length;ue++)if(Se=De[ue],Se.type==="byname"&&Se.name===xr){Sr=ue;break}if(Sr>0&&Sr<De.length-1){var Cr=[];for(ue=0;ue<De.length;ue++)Se=De[ue],(De[ue].type!=="byname"||ue>Sr)&&Cr.push(Se);De=Cr}}De.length>0?Yt(De):(vt.emit("plotly_animated"),le())})}function ne(vt,Mt,Lt){if(vt=i.getGraphDiv(vt),Mt==null)return Promise.resolve();if(!i.isPlotDiv(vt))throw new Error("This element is not a Plotly plot: "+vt+". It's likely that you've failed to create a plot before adding frames. For more details, see https://plotly.com/javascript/animations/");var $t,ge,de,sr,mr=vt._transitionData._frames,Ve=vt._transitionData._frameHash;if(!Array.isArray(Mt))throw new Error("addFrames failure: frameList must be an Array of frame definitions"+Mt);var le=mr.length+Mt.length*2,pe=[],Te={};for($t=Mt.length-1;$t>=0;$t--)if(i.isPlainObject(Mt[$t])){var Yt=Mt[$t].name,Ee=(Ve[Yt]||Te[Yt]||{}).name,Ne=Mt[$t].name,ar=Ve[Ee]||Te[Ee];Ee&&Ne&&typeof Ne=="number"&&ar&&A<E&&(A++,i.warn('addFrames: overwriting frame "'+(Ve[Ee]||Te[Ee]).name+'" with a frame whose name of type "number" also equates to "'+Ee+'". This is valid but may potentially lead to unexpected behavior since all plotly.js frame names are stored internally as strings.'),A===E&&i.warn("addFrames: This API call has yielded too many of these warnings. For the rest of this call, further warnings about numeric frame names will be suppressed.")),Te[Yt]={name:Yt},pe.push({frame:n.supplyFrameDefaults(Mt[$t]),index:Lt&&Lt[$t]!==void 0&&Lt[$t]!==null?Lt[$t]:le+$t})}pe.sort(function(Ke,er){return Ke.index>er.index?-1:Ke.index<er.index?1:0});var Ye=[],Jt=[],ue=mr.length;for($t=pe.length-1;$t>=0;$t--){if(ge=pe[$t].frame,typeof ge.name=="number"&&i.warn("Warning: addFrames accepts frames with numeric names, but the numbers areimplicitly cast to strings"),!ge.name)for(;Ve[ge.name="frame "+vt._transitionData._counter++];);if(Ve[ge.name]){for(de=0;de<mr.length&&(mr[de]||{}).name!==ge.name;de++);Ye.push({type:"replace",index:de,value:ge}),Jt.unshift({type:"replace",index:de,value:mr[de]})}else sr=Math.max(0,Math.min(pe[$t].index,ue)),Ye.push({type:"insert",index:sr,value:ge}),Jt.unshift({type:"delete",index:sr}),ue++}var Se=n.modifyFrames,De=n.modifyFrames,Ze=[vt,Jt],nr=[vt,Ye];return h&&h.add(vt,Se,Ze,De,nr),n.modifyFrames(vt,Ye)}function zt(vt,Mt){if(vt=i.getGraphDiv(vt),!i.isPlotDiv(vt))throw new Error("This element is not a Plotly plot: "+vt);var Lt,$t,ge=vt._transitionData._frames,de=[],sr=[];if(!Mt)for(Mt=[],Lt=0;Lt<ge.length;Lt++)Mt.push(Lt);for(Mt=Mt.slice(),Mt.sort(),Lt=Mt.length-1;Lt>=0;Lt--)$t=Mt[Lt],de.push({type:"delete",index:$t}),sr.unshift({type:"insert",index:$t,value:ge[$t]});var mr=n.modifyFrames,Ve=n.modifyFrames,le=[vt,sr],pe=[vt,de];return h&&h.add(vt,mr,le,Ve,pe),n.modifyFrames(vt,de)}function qt(vt){vt=i.getGraphDiv(vt);var Mt=vt._fullLayout||{},Lt=vt._fullData||[];return n.cleanPlot([],{},Lt,Mt),n.purge(vt),S.purge(vt),Mt._container&&Mt._container.remove(),delete vt._context,vt}function Zt(vt){var Mt=vt._fullLayout,Lt=vt.getBoundingClientRect();if(!i.equalDomRects(Lt,Mt._lastBBox)){var $t=Mt._invTransform=i.inverseTransformMatrix(i.getFullTransformMatrix(vt));Mt._invScaleX=Math.sqrt($t[0][0]*$t[0][0]+$t[0][1]*$t[0][1]+$t[0][2]*$t[0][2]),Mt._invScaleY=Math.sqrt($t[1][0]*$t[1][0]+$t[1][1]*$t[1][1]+$t[1][2]*$t[1][2]),Mt._lastBBox=Lt}}function ae(vt){var Mt=M.select(vt),Lt=vt._fullLayout;if(Lt._calcInverseTransform=Zt,Lt._calcInverseTransform(vt),Lt._container=Mt.selectAll(".plot-container").data([0]),Lt._container.enter().insert("div",":first-child").classed("plot-container",!0).classed("plotly",!0),Lt._paperdiv=Lt._container.selectAll(".svg-container").data([0]),Lt._paperdiv.enter().append("div").classed("user-select-none",!0).classed("svg-container",!0).style("position","relative"),Lt._glcontainer=Lt._paperdiv.selectAll(".gl-container").data([{}]),Lt._glcontainer.enter().append("div").classed("gl-container",!0),Lt._paperdiv.selectAll(".main-svg").remove(),Lt._paperdiv.select(".modebar-container").remove(),Lt._paper=Lt._paperdiv.insert("svg",":first-child").classed("main-svg",!0),Lt._toppaper=Lt._paperdiv.append("svg").classed("main-svg",!0),Lt._modebardiv=Lt._paperdiv.append("div"),delete Lt._modeBar,Lt._hoverpaper=Lt._paperdiv.append("svg").classed("main-svg",!0),!Lt._uid){var $t={};M.selectAll("defs").each(function(){this.id&&($t[this.id.split("-")[1]]=1)}),Lt._uid=i.randstr($t)}Lt._paperdiv.selectAll(".main-svg").attr(y.svgAttrs),Lt._defs=Lt._paper.append("defs").attr("id","defs-"+Lt._uid),Lt._clips=Lt._defs.append("g").classed("clips",!0),Lt._topdefs=Lt._toppaper.append("defs").attr("id","topdefs-"+Lt._uid),Lt._topclips=Lt._topdefs.append("g").classed("clips",!0),Lt._bgLayer=Lt._paper.append("g").classed("bglayer",!0),Lt._draggers=Lt._paper.append("g").classed("draglayer",!0);var ge=Lt._paper.append("g").classed("layer-below",!0);Lt._imageLowerLayer=ge.append("g").classed("imagelayer",!0),Lt._shapeLowerLayer=ge.append("g").classed("shapelayer",!0),Lt._cartesianlayer=Lt._paper.append("g").classed("cartesianlayer",!0),Lt._polarlayer=Lt._paper.append("g").classed("polarlayer",!0),Lt._smithlayer=Lt._paper.append("g").classed("smithlayer",!0),Lt._ternarylayer=Lt._paper.append("g").classed("ternarylayer",!0),Lt._geolayer=Lt._paper.append("g").classed("geolayer",!0),Lt._funnelarealayer=Lt._paper.append("g").classed("funnelarealayer",!0),Lt._pielayer=Lt._paper.append("g").classed("pielayer",!0),Lt._iciclelayer=Lt._paper.append("g").classed("iciclelayer",!0),Lt._treemaplayer=Lt._paper.append("g").classed("treemaplayer",!0),Lt._sunburstlayer=Lt._paper.append("g").classed("sunburstlayer",!0),Lt._indicatorlayer=Lt._toppaper.append("g").classed("indicatorlayer",!0),Lt._glimages=Lt._paper.append("g").classed("glimages",!0);var de=Lt._toppaper.append("g").classed("layer-above",!0);Lt._imageUpperLayer=de.append("g").classed("imagelayer",!0),Lt._shapeUpperLayer=de.append("g").classed("shapelayer",!0),Lt._selectionLayer=Lt._toppaper.append("g").classed("selectionlayer",!0),Lt._infolayer=Lt._toppaper.append("g").classed("infolayer",!0),Lt._menulayer=Lt._toppaper.append("g").classed("menulayer",!0),Lt._zoomlayer=Lt._toppaper.append("g").classed("zoomlayer",!0),Lt._hoverlayer=Lt._hoverpaper.append("g").classed("hoverlayer",!0),Lt._modebardiv.classed("modebar-container",!0).style("position","absolute").style("top","0px").style("right","0px"),vt.emit("plotly_framework")}W.animate=Kt,W.addFrames=ne,W.deleteFrames=zt,W.addTraces=$,W.deleteTraces=H,W.extendTraces=lt,W.moveTraces=at,W.prependTraces=K,W.newPlot=V,W._doPlot=d,W.purge=qt,W.react=je,W.redraw=I,W.relayout=At,W.restyle=ct,W.setPlotConfig=L,W.update=Bt,W._guiRelayout=Ot(At),W._guiRestyle=Ot(ct),W._guiUpdate=Ot(Bt),W._storeDirectGUIEdit=st},24452:function(nt){var W={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/"},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},globalTransforms:{valType:"any",dflt:[]},locale:{valType:"string",dflt:"en-US"},locales:{valType:"any",dflt:{}}},e={};function M(C,r){for(var i in C){var w=C[i];w.valType?r[i]=w.dflt:(r[i]||(r[i]={}),M(w,r[i]))}}M(W,e),nt.exports={configAttributes:W,dfltConfig:e}},57297:function(nt,W,e){var M=e(33626),C=e(34809),r=e(9829),i=e(6704),w=e(58935),S=e(49722),h=e(24452).configAttributes,l=e(13582),t=C.extendDeepAll,n=C.isPlainObject,o=C.isArrayOrTypedArray,a=C.nestedProperty,s=C.valObjectMeta,u="_isSubplotObj",x="_isLinkedToArray",m="_arrayAttrRegexps",y="_deprecated",c=[u,x,m,y];W.IS_SUBPLOT_OBJ=u,W.IS_LINKED_TO_ARRAY=x,W.DEPRECATED=y,W.UNDERSCORE_ATTRS=c,W.get=function(){var B={};M.allTypes.forEach(function(V){B[V]=k(V)});var I={};return Object.keys(M.transformsRegistry).forEach(function(V){I[V]=g(V)}),{defs:{valObjects:s,metaKeys:c.concat(["description","role","editType","impliedEdits"]),editType:{traces:l.traces,layout:l.layout},impliedEdits:{}},traces:B,layout:P(),transforms:I,frames:A(),animation:E(S),config:E(h)}},W.crawl=function(B,I,V,N){var F=V||0;N=N||"",Object.keys(B).forEach(function(U){var G=B[U];if(c.indexOf(U)===-1){var Y=(N?N+".":"")+U;I(G,U,B,F,Y),!W.isValObject(G)&&n(G)&&U!=="impliedEdits"&&W.crawl(G,I,F+1,Y)}})},W.isValObject=function(B){return B&&B.valType!==void 0},W.findArrayAttributes=function(B){var I=[],V=[],N=[],F,U;function G(K,$,H,at){V=V.slice(0,at).concat([$]),N=N.slice(0,at).concat([K&&K._isLinkedToArray]);var ct=K&&(K.valType==="data_array"||K.arrayOk===!0)&&!(V[at-1]==="colorbar"&&($==="ticktext"||$==="tickvals"));ct&&Y(F,0,"")}function Y(K,$,H){var at=K[V[$]],ct=H+V[$];if($===V.length-1)o(at)&&I.push(U+ct);else if(N[$]){if(Array.isArray(at))for(var et=0;et<at.length;et++)n(at[et])&&Y(at[et],$+1,ct+"["+et+"].")}else n(at)&&Y(at,$+1,ct+".")}F=B,U="",W.crawl(r,G),B._module&&B._module.attributes&&W.crawl(B._module.attributes,G);var Q=B.transforms;if(Q)for(var ft=0;ft<Q.length;ft++){var ut=Q[ft],lt=ut._module;lt&&(U="transforms["+ft+"].",F=ut,W.crawl(lt.attributes,G))}return I},W.getTraceValObject=function(B,I){var V=I[0],N=1,F,U;if(V==="transforms"){if(I.length===1)return r.transforms;var G=B.transforms;if(!Array.isArray(G)||!G.length)return!1;var Y=I[1];if(!T(Y)||Y>=G.length)return!1;F=(M.transformsRegistry[G[Y].type]||{}).attributes,U=F&&F[I[2]],N=3}else{var Q=B._module;if(Q||(Q=(M.modules[B.type||r.type.dflt]||{})._module),!Q)return!1;if(F=Q.attributes,U=F&&F[V],!U){var ft=Q.basePlotModule;ft&&ft.attributes&&(U=ft.attributes[V])}U||(U=r[V])}return f(U,I,N)},W.getLayoutValObject=function(B,I){var V=p(B,I[0]);return f(V,I,1)};function p(B,I){var V,N,F,U,G=B._basePlotModules;if(G){var Y;for(V=0;V<G.length;V++){if(F=G[V],F.attrRegex&&F.attrRegex.test(I)){if(F.layoutAttrOverrides)return F.layoutAttrOverrides;!Y&&F.layoutAttributes&&(Y=F.layoutAttributes)}var Q=F.baseLayoutAttrOverrides;if(Q&&I in Q)return Q[I]}if(Y)return Y}var ft=B._modules;if(ft){for(V=0;V<ft.length;V++)if(U=ft[V].layoutAttributes,U&&I in U)return U[I]}for(N in M.componentsRegistry){if(F=M.componentsRegistry[N],F.name==="colorscale"&&I.indexOf("coloraxis")===0)return F.layoutAttributes[I];if(!F.schema&&I===F.name)return F.layoutAttributes}return I in i?i[I]:!1}function f(B,I,V){if(!B)return!1;if(B._isLinkedToArray){if(T(I[V]))V++;else if(V<I.length)return!1}for(;V<I.length;V++){var N=B[I[V]];if(n(N))B=N;else break;if(V===I.length-1)break;if(B._isLinkedToArray){if(V++,!T(I[V]))return!1}else if(B.valType==="info_array"){V++;var F=I[V];if(!T(F))return!1;var U=B.items;if(Array.isArray(U)){if(F>=U.length)return!1;if(B.dimensions===2){if(V++,I.length===V)return B;var G=I[V];if(!T(G))return!1;B=U[F][G]}else B=U[F]}else B=U}}return B}function T(B){return B===Math.round(B)&&B>=0}function k(B){var I,V;I=M.modules[B]._module,V=I.basePlotModule;var N={};N.type=null;var F=t({},r),U=t({},I.attributes);W.crawl(U,function(Q,ft,ut,lt,K){a(F,K).set(void 0),Q===void 0&&a(U,K).set(void 0)}),t(N,F),M.traceIs(B,"noOpacity")&&delete N.opacity,M.traceIs(B,"showLegend")||(delete N.showlegend,delete N.legendgroup),M.traceIs(B,"noHover")&&(delete N.hoverinfo,delete N.hoverlabel),I.selectPoints||delete N.selectedpoints,t(N,U),V.attributes&&t(N,V.attributes),N.type=B;var G={meta:I.meta||{},categories:I.categories||{},animatable:!!I.animatable,type:B,attributes:E(N)};if(I.layoutAttributes){var Y={};t(Y,I.layoutAttributes),G.layoutAttributes=E(Y)}return I.animatable||W.crawl(G,function(Q){W.isValObject(Q)&&"anim"in Q&&delete Q.anim}),G}function P(){var B={},I,V;t(B,i);for(I in M.subplotsRegistry)if(V=M.subplotsRegistry[I],!!V.layoutAttributes)if(Array.isArray(V.attr))for(var N=0;N<V.attr.length;N++)b(B,V,V.attr[N]);else{var F=V.attr==="subplot"?V.name:V.attr;b(B,V,F)}for(I in M.componentsRegistry){V=M.componentsRegistry[I];var U=V.schema;if(U&&(U.subplots||U.layout)){var G=U.subplots;if(G&&G.xaxis&&!G.yaxis)for(var Y in G.xaxis)delete B.yaxis[Y];delete B.xaxis.shift,delete B.xaxis.autoshift}else V.name==="colorscale"?t(B,V.layoutAttributes):V.layoutAttributes&&D(B,V.layoutAttributes,V.name)}return{layoutAttributes:E(B)}}function g(B){var I=M.transformsRegistry[B],V=t({},I.attributes);return Object.keys(M.componentsRegistry).forEach(function(N){var F=M.componentsRegistry[N];F.schema&&F.schema.transforms&&F.schema.transforms[B]&&Object.keys(F.schema.transforms[B]).forEach(function(U){D(V,F.schema.transforms[B][U],U)})}),{attributes:E(V)}}function A(){var B={frames:t({},w)};return E(B),B.frames}function E(B){return d(B),_(B),L(B),B}function d(B){function I(N){return{valType:"string",editType:"none"}}function V(N,F,U){W.isValObject(N)?(N.arrayOk===!0||N.valType==="data_array")&&(U[F+"src"]=I()):n(N)&&(N.role="object")}W.crawl(B,V)}function _(B){function I(V,N,F){if(V){var U=V[x];U&&(delete V[x],F[N]={items:{}},F[N].items[U]=V,F[N].role="object")}}W.crawl(B,I)}function L(B){function I(V){for(var N in V)if(n(V[N]))I(V[N]);else if(Array.isArray(V[N]))for(var F=0;F<V[N].length;F++)I(V[N][F]);else V[N]instanceof RegExp&&(V[N]=V[N].toString())}I(B)}function b(B,I,V){var N=a(B,V),F=t({},I.layoutAttributes);F[u]=!0,N.set(F)}function D(B,I,V){var N=a(B,V);N.set(t(N.get()||{},I))}},78032:function(nt,W,e){var M=e(34809),C=e(9829),r="templateitemname",i={name:{valType:"string",editType:"none"}};i[r]={valType:"string",editType:"calc"},W.templatedArray=function(h,l){return l._isLinkedToArray=h,l.name=i.name,l[r]=i[r],l},W.traceTemplater=function(h){var l={},t,n;for(t in h)n=h[t],Array.isArray(n)&&n.length&&(l[t]=0);function o(a){t=M.coerce(a,{},C,"type");var s={type:t,_template:null};if(t in l){n=h[t];var u=l[t]%n.length;l[t]++,s._template=n[u]}return s}return{newTrace:o}},W.newContainer=function(h,l,t){var n=h._template,o=n&&(n[l]||t&&n[t]);M.isPlainObject(o)||(o=null);var a=h[l]={_template:o};return a},W.arrayTemplater=function(h,l,t){var n=h._template,o=n&&n[S(l)],a=n&&n[l];(!Array.isArray(a)||!a.length)&&(a=[]);var s={};function u(m){var y={name:m.name,_input:m},c=y[r]=m[r];if(!w(c))return y._template=o,y;for(var p=0;p<a.length;p++){var f=a[p];if(f.name===c)return s[c]=1,y._template=f,y}return y[t]=m[t]||!1,y._template=!1,y}function x(){for(var m=[],y=0;y<a.length;y++){var c=a[y],p=c.name;if(w(p)&&!s[p]){var f={_template:c,name:p,_input:{_templateitemname:p}};f[r]=c[r],m.push(f),s[p]=1}}return m}return{newItem:u,defaultItems:x}};function w(h){return h&&typeof h=="string"}function S(h){var l=h.length-1;return h.charAt(l)!=="s"&&M.warn("bad argument to arrayDefaultKey: "+h),h.substr(0,h.length-1)+"defaults"}W.arrayDefaultKey=S,W.arrayEditor=function(h,l,t){var n=(M.nestedProperty(h,l).get()||[]).length,o=t._index,a=o>=n&&(t._input||{})._templateitemname;a&&(o=n);var s=l+"["+o+"]",u;function x(){u={},a&&(u[s]={},u[s][r]=a)}x();function m(f,T){u[f]=T}function y(f,T){a?M.nestedProperty(u[s],f).set(T):u[s+"."+f]=T}function c(){var f=u;return x(),f}function p(f,T){f&&y(f,T);var k=c();for(var P in k)M.nestedProperty(h,P).set(k[P])}return{modifyBase:m,modifyItem:y,getUpdateObj:c,applyUpdate:p}}},71817:function(nt,W,e){var M=e(45568),C=e(33626),r=e(44122),i=e(34809),w=e(30635),S=e(34823),h=e(78766),l=e(62203),t=e(17240),n=e(95433),o=e(29714),a=e(4530),s=e(84391),u=s.enforce,x=s.clean,m=e(32919).doAutoRange,y="start",c="middle",p="end",f=e(54826).zindexSeparator;W.layoutStyles=function(N){return i.syncOrAsync([r.doAutoMargin,k],N)};function T(N,F,U){for(var G=0;G<U.length;G++){var Y=U[G][0],Q=U[G][1];if(!(Y[0]>=N[1]||Y[1]<=N[0])&&Q[0]<F[1]&&Q[1]>F[0])return!0}return!1}function k(N){var F=N._fullLayout,U=F._size,G=U.p,Y=o.list(N,"",!0),Q,ft,ut,lt,K,$;if(F._paperdiv.style({width:N._context.responsive&&F.autosize&&!N._context._hasZeroWidth&&!N.layout.width?"100%":F.width+"px",height:N._context.responsive&&F.autosize&&!N._context._hasZeroHeight&&!N.layout.height?"100%":F.height+"px"}).selectAll(".main-svg").call(l.setSize,F.width,F.height),N._context.setBackground(N,F.paper_bgcolor),W.drawMainTitle(N),n.manage(N),!F._has("cartesian"))return r.previousPromises(N);function H(Zt,ae,vt){var Mt=Zt._lw/2;if(Zt._id.charAt(0)==="x"){if(ae){if(vt==="top")return ae._offset-G-Mt}else return U.t+U.h*(1-(Zt.position||0))+Mt%1;return ae._offset+ae._length+G+Mt}if(ae){if(vt==="right")return ae._offset+ae._length+G+Mt}else return U.l+U.w*(Zt.position||0)+Mt%1;return ae._offset-G-Mt}for(Q=0;Q<Y.length;Q++){lt=Y[Q];var at=lt._anchorAxis;lt._linepositions={},lt._lw=l.crispRound(N,lt.linewidth,1),lt._mainLinePosition=H(lt,at,lt.side),lt._mainMirrorPosition=lt.mirror&&at?H(lt,at,a.OPPOSITE_SIDE[lt.side]):null}var ct=[],et=[],Z=[],ot=h.opacity(F.paper_bgcolor)===1&&h.opacity(F.plot_bgcolor)===1&&F.paper_bgcolor===F.plot_bgcolor;for(ft in F._plots)if(ut=F._plots[ft],ut.mainplot)ut.bg&&ut.bg.remove(),ut.bg=void 0;else{var st=ut.xaxis.domain,dt=ut.yaxis.domain,xt=ut.plotgroup;if(T(st,dt,Z)&&ft.indexOf(f)===-1){var At=xt.node(),St=ut.bg=i.ensureSingle(xt,"rect","bg");At.insertBefore(St.node(),At.childNodes[0]),et.push(ft)}else xt.select("rect.bg").remove(),Z.push([st,dt]),ot||(ct.push(ft),et.push(ft))}var Nt=F._bgLayer.selectAll(".bg").data(ct);for(Nt.enter().append("rect").classed("bg",!0),Nt.exit().remove(),Nt.each(function(Zt){F._plots[Zt].bg=M.select(this)}),Q=0;Q<et.length;Q++)ut=F._plots[et[Q]],K=ut.xaxis,$=ut.yaxis,ut.bg&&K._offset!==void 0&&$._offset!==void 0&&ut.bg.call(l.setRect,K._offset-G,$._offset-G,K._length+2*G,$._length+2*G).call(h.fill,F.plot_bgcolor).style("stroke-width",0);if(!F._hasOnlyLargeSploms)for(ft in F._plots){ut=F._plots[ft],K=ut.xaxis,$=ut.yaxis;var Wt=ut.clipId="clip"+F._uid+ft+"plot",Vt=i.ensureSingleById(F._clips,"clipPath",Wt,function(Zt){Zt.classed("plotclip",!0).append("rect")});ut.clipRect=Vt.select("rect").attr({width:K._length,height:$._length}),l.setTranslate(ut.plot,K._offset,$._offset);var jt,Dt;ut._hasClipOnAxisFalse?(jt=null,Dt=Wt):(jt=Wt,Dt=null),l.setClipUrl(ut.plot,jt,N),ut.layerClipId=Dt}var kt,Bt,Ot,Ht,ye,Qt,_e,ie,Ae,Pe,Oe,je,Le;function Ie(Zt){return"M"+kt+","+Zt+"H"+Bt}function Ut(Zt){return"M"+K._offset+","+Zt+"h"+K._length}function ee(Zt){return"M"+Zt+","+ie+"V"+_e}function Kt(Zt){return $._shift!==void 0&&(Zt+=$._shift),"M"+Zt+","+$._offset+"v"+$._length}function ne(Zt,ae,vt){if(!Zt.showline||ft!==Zt._mainSubplot)return"";if(!Zt._anchorAxis)return vt(Zt._mainLinePosition);var Mt=ae(Zt._mainLinePosition);return Zt.mirror&&(Mt+=ae(Zt._mainMirrorPosition)),Mt}for(ft in F._plots){ut=F._plots[ft],K=ut.xaxis,$=ut.yaxis;var zt="M0,0";P(K,ft)&&(ye=A(K,"left",$,Y),kt=K._offset-(ye?G+ye:0),Qt=A(K,"right",$,Y),Bt=K._offset+K._length+(Qt?G+Qt:0),Ot=H(K,$,"bottom"),Ht=H(K,$,"top"),Le=!K._anchorAxis||ft!==K._mainSubplot,Le&&(K.mirror==="allticks"||K.mirror==="all")&&(K._linepositions[ft]=[Ot,Ht]),zt=ne(K,Ie,Ut),Le&&K.showline&&(K.mirror==="all"||K.mirror==="allticks")&&(zt+=Ie(Ot)+Ie(Ht)),ut.xlines.style("stroke-width",K._lw+"px").call(h.stroke,K.showline?K.linecolor:"rgba(0,0,0,0)")),ut.xlines.attr("d",zt);var qt="M0,0";P($,ft)&&(Oe=A($,"bottom",K,Y),_e=$._offset+$._length+(Oe?G:0),je=A($,"top",K,Y),ie=$._offset-(je?G:0),Ae=H($,K,"left"),Pe=H($,K,"right"),Le=!$._anchorAxis||ft!==$._mainSubplot,Le&&($.mirror==="allticks"||$.mirror==="all")&&($._linepositions[ft]=[Ae,Pe]),qt=ne($,ee,Kt),Le&&$.showline&&($.mirror==="all"||$.mirror==="allticks")&&(qt+=ee(Ae)+ee(Pe)),ut.ylines.style("stroke-width",$._lw+"px").call(h.stroke,$.showline?$.linecolor:"rgba(0,0,0,0)")),ut.ylines.attr("d",qt)}return o.makeClipPaths(N),r.previousPromises(N)}function P(N,F){return(N.ticks||N.showline)&&(F===N._mainSubplot||N.mirror==="all"||N.mirror==="allticks")}function g(N,F,U){if(!U.showline||!U._lw)return!1;if(U.mirror==="all"||U.mirror==="allticks")return!0;var G=U._anchorAxis;if(!G)return!1;var Y=a.FROM_BL[F];return U.side===F?G.domain[Y]===N.domain[Y]:U.mirror&&G.domain[1-Y]===N.domain[1-Y]}function A(N,F,U,G){if(g(N,F,U))return U._lw;for(var Y=0;Y<G.length;Y++){var Q=G[Y];if(Q._mainAxis===U._mainAxis&&g(N,F,Q))return Q._lw}return 0}W.drawMainTitle=function(N){var F=N._fullLayout.title,U=N._fullLayout,G=I(U),Y=V(U),Q=D(U,Y),ft=b(U,G);if(t.draw(N,"gtitle",{propContainer:U,propName:"title.text",subtitlePropName:"title.subtitle.text",placeholder:U._dfltTitle.plot,subtitlePlaceholder:U._dfltTitle.subtitle,attributes:{x:ft,y:Q,"text-anchor":G,dy:Y}}),F.text&&F.automargin){var ut=M.selectAll(".gtitle"),lt=l.bBox(M.selectAll(".g-gtitle").node()).height,K=_(N,F,lt);if(K>0){L(N,Q,K,lt),ut.attr({x:ft,y:Q,"text-anchor":G,dy:B(F.yanchor)}).call(w.positionText,ft,Q);var $=(F.text.match(w.BR_TAG_ALL)||[]).length;if($){var H=a.LINE_SPACING*$+a.MID_SHIFT;F.y===0&&(H=-H),ut.selectAll(".line").each(function(){var ot=+this.getAttribute("dy").slice(0,-2)-H+"em";this.setAttribute("dy",ot)})}var at=M.selectAll(".gtitle-subtitle");if(at.node()){var ct=ut.node().getBBox(),et=ct.y+ct.height,Z=et+t.SUBTITLE_PADDING_EM*F.subtitle.font.size;at.attr({x:ft,y:Z,"text-anchor":G,dy:B(F.yanchor)}).call(w.positionText,ft,Z)}}}};function E(N,F,U,G,Y){var Q=F.yref==="paper"?N._fullLayout._size.h:N._fullLayout.height,ft=i.isTopAnchor(F)?G:G-Y,ut=U==="b"?Q-ft:ft;return i.isTopAnchor(F)&&U==="t"||i.isBottomAnchor(F)&&U==="b"?!1:ut<Y}function d(N,F,U,G,Y){var Q=0;return U==="middle"&&(Q+=Y/2),N==="t"?(U==="top"&&(Q+=Y),Q+=G-F*G):(U==="bottom"&&(Q+=Y),Q+=F*G),Q}function _(N,F,U){var G=F.y,Y=F.yanchor,Q=G>.5?"t":"b",ft=N._fullLayout.margin[Q],ut=0;return F.yref==="paper"?ut=U+F.pad.t+F.pad.b:F.yref==="container"&&(ut=d(Q,G,Y,N._fullLayout.height,U)+F.pad.t+F.pad.b),ut>ft?ut:0}function L(N,F,U,G){var Y="title.automargin",Q=N._fullLayout.title,ft=Q.y>.5?"t":"b",ut={x:Q.x,y:Q.y,t:0,b:0},lt={};Q.yref==="paper"&&E(N,Q,ft,F,G)?ut[ft]=U:Q.yref==="container"&&(lt[ft]=U,N._fullLayout._reservedMargin[Y]=lt),r.allowAutoMargin(N,Y),r.autoMargin(N,Y,ut)}function b(N,F){var U=N.title,G=N._size,Y=0;switch(F===y?Y=U.pad.l:F===p&&(Y=-U.pad.r),U.xref){case"paper":return G.l+G.w*U.x+Y;case"container":default:return N.width*U.x+Y}}function D(N,F){var U=N.title,G=N._size,Y=0;if(F==="0em"||!F?Y=-U.pad.b:F===a.CAP_SHIFT+"em"&&(Y=U.pad.t),U.y==="auto")return G.t/2;switch(U.yref){case"paper":return G.t+G.h-G.h*U.y+Y;case"container":default:return N.height-N.height*U.y+Y}}function B(N){return N==="top"?a.CAP_SHIFT+.3+"em":N==="bottom"?"-0.3em":a.MID_SHIFT+"em"}function I(N){var F=N.title,U=c;return i.isRightAnchor(F)?U=p:i.isLeftAnchor(F)&&(U=y),U}function V(N){var F=N.title,U="0em";return i.isTopAnchor(F)?U=a.CAP_SHIFT+"em":i.isMiddleAnchor(F)&&(U=a.MID_SHIFT+"em"),U}W.doTraceStyle=function(N){var F=N.calcdata,U=[],G;for(G=0;G<F.length;G++){var Y=F[G],Q=Y[0]||{},ft=Q.trace||{},ut=ft._module||{},lt=ut.arraysToCalcdata;lt&&lt(Y,ft);var K=ut.editStyle;K&&U.push({fn:K,cd0:Q})}if(U.length){for(G=0;G<U.length;G++){var $=U[G];$.fn(N,$.cd0)}S(N),W.redrawReglTraces(N)}return r.style(N),C.getComponentMethod("legend","draw")(N),r.previousPromises(N)},W.doColorBars=function(N){return C.getComponentMethod("colorbar","draw")(N),r.previousPromises(N)},W.layoutReplot=function(N){var F=N.layout;return N.layout=void 0,C.call("_doPlot",N,"",F)},W.doLegend=function(N){return C.getComponentMethod("legend","draw")(N),r.previousPromises(N)},W.doTicksRelayout=function(N){return o.draw(N,"redraw"),N._fullLayout._hasOnlyLargeSploms&&(C.subplotsRegistry.splom.updateGrid(N),S(N),W.redrawReglTraces(N)),W.drawMainTitle(N),r.previousPromises(N)},W.doModeBar=function(N){var F=N._fullLayout;n.manage(N);for(var U=0;U<F._basePlotModules.length;U++){var G=F._basePlotModules[U].updateFx;G&&G(N)}return r.previousPromises(N)},W.doCamera=function(N){for(var F=N._fullLayout,U=F._subplots.gl3d,G=0;G<U.length;G++){var Y=F[U[G]],Q=Y._scene;Q.setViewport(Y)}},W.drawData=function(N){var F=N._fullLayout;S(N);for(var U=F._basePlotModules,G=0;G<U.length;G++)U[G].plot(N);return W.redrawReglTraces(N),r.style(N),C.getComponentMethod("selections","draw")(N),C.getComponentMethod("shapes","draw")(N),C.getComponentMethod("annotations","draw")(N),C.getComponentMethod("images","draw")(N),F._replotting=!1,r.previousPromises(N)},W.redrawReglTraces=function(N){var F=N._fullLayout;if(F._has("regl")){var U=N._fullData,G=[],Y=[],Q,ft;for(F._hasOnlyLargeSploms&&F._splomGrid.draw(),Q=0;Q<U.length;Q++){var ut=U[Q];ut.visible===!0&&ut._length!==0&&(ut.type==="splom"?F._splomScenes[ut.uid].draw():ut.type==="scattergl"?i.pushUnique(G,ut.xaxis+ut.yaxis):ut.type==="scatterpolargl"&&i.pushUnique(Y,ut.subplot))}for(Q=0;Q<G.length;Q++)ft=F._plots[G[Q]],ft._scene&&ft._scene.draw();for(Q=0;Q<Y.length;Q++)ft=F[Y[Q]]._subplot,ft._scene&&ft._scene.draw()}},W.doAutoRangeAndConstraints=function(N){for(var F=o.list(N,"",!0),U,G={},Y=0;Y<F.length;Y++)if(U=F[Y],!G[U._id]){G[U._id]=1,x(N,U),m(N,U);var Q=U._matchGroup;if(Q)for(var ft in Q){var ut=o.getFromId(N,ft);m(N,ut,U.range),G[ft]=1}}u(N)},W.finalDraw=function(N){C.getComponentMethod("rangeslider","draw")(N),C.getComponentMethod("rangeselector","draw")(N)},W.drawMarginPushers=function(N){C.getComponentMethod("legend","draw")(N),C.getComponentMethod("rangeselector","draw")(N),C.getComponentMethod("sliders","draw")(N),C.getComponentMethod("updatemenus","draw")(N),C.getComponentMethod("colorbar","draw")(N)}},53853:function(nt,W,e){var M=e(34809),C=M.isPlainObject,r=e(57297),i=e(44122),w=e(9829),S=e(78032),h=e(24452).dfltConfig;W.makeTemplate=function(m){m=M.isPlainObject(m)?m:M.getGraphDiv(m),m=M.extendDeep({_context:h},{data:m.data,layout:m.layout}),i.supplyDefaults(m);var y=m.data||[],c=m.layout||{};c._basePlotModules=m._fullLayout._basePlotModules,c._modules=m._fullLayout._modules;var p={data:{},layout:{}};y.forEach(function(L){var b={};n(L,b,a.bind(null,L));var D=M.coerce(L,{},w,"type"),B=p.data[D];B||(B=p.data[D]=[]),B.push(b)}),n(c,p.layout,o.bind(null,c)),delete p.layout.template;var f=c.template;if(C(f)){var T=f.layout,k,P,g,A,E,d;C(T)&&l(T,p.layout);var _=f.data;if(C(_)){for(P in p.data)if(g=_[P],Array.isArray(g)){for(E=p.data[P],d=E.length,A=g.length,k=0;k<d;k++)l(g[k%A],E[k]);for(k=d;k<A;k++)E.push(M.extendDeep({},g[k]))}for(P in _)P in p.data||(p.data[P]=M.extendDeep([],_[P]))}}return p};function l(m,y){m=M.extendDeep({},m);var c=Object.keys(m).sort(),p,f;function T(E,d,_){if(C(d)&&C(E))l(E,d);else if(Array.isArray(d)&&Array.isArray(E)){var L=S.arrayTemplater({_template:m},_);for(f=0;f<d.length;f++){var b=d[f],D=L.newItem(b)._template;D&&l(D,b)}var B=L.defaultItems();for(f=0;f<B.length;f++)d.push(B[f]._template);for(f=0;f<d.length;f++)delete d[f].templateitemname}}for(p=0;p<c.length;p++){var k=c[p],P=m[k];if(k in y?T(P,y[k],k):y[k]=P,t(k)===k)for(var g in y){var A=t(g);g!==A&&A===k&&!(g in m)&&T(P,y[g],k)}}}function t(m){return m.replace(/[0-9]+$/,"")}function n(m,y,c,p,f){var T=f&&c(f);for(var k in m){var P=m[k],g=s(m,k,p),A=s(m,k,f),E=c(A);if(!E){var d=t(k);d!==k&&(A=s(m,d,f),E=c(A))}if(!(T&&T===E)&&!(!E||E._noTemplating||E.valType==="data_array"||E.arrayOk&&Array.isArray(P)))if(!E.valType&&C(P))n(P,y,c,g,A);else if(E._isLinkedToArray&&Array.isArray(P))for(var _=!1,L=0,b={},D=0;D<P.length;D++){var B=P[D];if(C(B)){var I=B.name;if(I)b[I]||(n(B,y,c,s(P,L,g),s(P,L,A)),L++,b[I]=1);else if(!_){var V=S.arrayDefaultKey(k),N=s(m,V,p),F=s(P,L,g);n(B,y,c,F,s(P,L,A));var U=M.nestedProperty(y,F),G=M.nestedProperty(y,N);G.set(U.get()),U.set(null),_=!0}}}else{var Y=M.nestedProperty(y,g);Y.set(P)}}}function o(m,y){return r.getLayoutValObject(m,M.nestedProperty({},y).parts)}function a(m,y){return r.getTraceValObject(m,M.nestedProperty({},y).parts)}function s(m,y,c){var p;return c?Array.isArray(m)?p=c+"["+y+"]":p=c+"."+y:p=y,p}W.validateTemplate=function(m,y){var c=M.extendDeep({},{_context:h,data:m.data,layout:m.layout}),p=c.layout||{};C(y)||(y=p.template||{});var f=y.layout,T=y.data,k=[];c.layout=p,c.layout.template=y,i.supplyDefaults(c);var P=c._fullLayout,g=c._fullData,A={};function E(N,F){for(var U in N)if(U.charAt(0)!=="_"&&C(N[U])){var G=t(U),Y=[],Q;for(Q=0;Q<F.length;Q++)Y.push(s(N,U,F[Q])),G!==U&&Y.push(s(N,G,F[Q]));for(Q=0;Q<Y.length;Q++)A[Y[Q]]=1;E(N[U],Y)}}function d(N,F){for(var U in N)if(U.indexOf("defaults")===-1&&C(N[U])){var G=s(N,U,F);A[G]?d(N[U],G):k.push({code:"unused",path:G})}}if(C(f)?(E(P,["layout"]),d(f,"layout")):k.push({code:"layout"}),!C(T))k.push({code:"data"});else{for(var _={},L,b=0;b<g.length;b++){var D=g[b];L=D.type,_[L]=(_[L]||0)+1,D._fullInput._template||k.push({code:"missing",index:D._fullInput.index,traceType:L})}for(L in T){var B=T[L].length,I=_[L]||0;B>I?k.push({code:"unused",traceType:L,templateCount:B,dataCount:I}):I>B&&k.push({code:"reused",traceType:L,templateCount:B,dataCount:I})}}function V(N,F){for(var U in N)if(U.charAt(0)!=="_"){var G=N[U],Y=s(N,U,F);C(G)?(Array.isArray(N)&&G._template===!1&&G.templateitemname&&k.push({code:"missing",path:Y,templateitemname:G.templateitemname}),V(G,Y)):Array.isArray(G)&&u(G)&&V(G,Y)}}if(V({data:g,layout:P},""),k.length)return k.map(x)};function u(m){for(var y=0;y<m.length;y++)if(C(m[y]))return!0}function x(m){var y;switch(m.code){case"data":y="The template has no key data.";break;case"layout":y="The template has no key layout.";break;case"missing":m.path?y="There are no templates for item "+m.path+" with name "+m.templateitemname:y="There are no templates for trace "+m.index+", of type "+m.traceType+".";break;case"unused":m.path?y="The template item at "+m.path+" was not used in constructing the plot.":m.dataCount?y="Some of the templates of type "+m.traceType+" were not used. The template has "+m.templateCount+" traces, the data only has "+m.dataCount+" of this type.":y="The template has "+m.templateCount+" traces of type "+m.traceType+" but there are none in the data.";break;case"reused":y="Some of the templates of type "+m.traceType+" were used more than once. The template has "+m.templateCount+" traces, the data has "+m.dataCount+" of this type.";break}return m.msg=y,m}},80491:function(nt,W,e){var M=e(10721),C=e(31420),r=e(44122),i=e(34809),w=e(84619),S=e(6243),h=e(72914),l=e(29697).version,t={format:{valType:"enumerated",values:["png","jpeg","webp","svg","full-json"],dflt:"png"},width:{valType:"number",min:1},height:{valType:"number",min:1},scale:{valType:"number",min:0,dflt:1},setBackground:{valType:"any",dflt:!1},imageDataOnly:{valType:"boolean",dflt:!1}};function n(o,a){a=a||{};var s,u,x,m;i.isPlainObject(o)?(s=o.data||[],u=o.layout||{},x=o.config||{},m={}):(o=i.getGraphDiv(o),s=i.extendDeep([],o.data),u=i.extendDeep({},o.layout),x=o._context,m=o._fullLayout||{});function y(I){return!(I in a)||i.validate(a[I],t[I])}if(!y("width")&&a.width!==null||!y("height")&&a.height!==null)throw new Error("Height and width should be pixel values.");if(!y("format"))throw new Error("Export format is not "+i.join2(t.format.values,", "," or ")+".");var c={};function p(I,V){return i.coerce(a,c,t,I,V)}var f=p("format"),T=p("width"),k=p("height"),P=p("scale"),g=p("setBackground"),A=p("imageDataOnly"),E=document.createElement("div");E.style.position="absolute",E.style.left="-5000px",document.body.appendChild(E);var d=i.extendFlat({},u);T?d.width=T:a.width===null&&M(m.width)&&(d.width=m.width),k?d.height=k:a.height===null&&M(m.height)&&(d.height=m.height);var _=i.extendFlat({},x,{_exportedPlot:!0,staticPlot:!0,setBackground:g}),L=w.getRedrawFunc(E);function b(){return new Promise(function(I){setTimeout(I,w.getDelay(E._fullLayout))})}function D(){return new Promise(function(I,V){var N=S(E,f,P),F=E._fullLayout.width,U=E._fullLayout.height;function G(){C.purge(E),document.body.removeChild(E)}if(f==="full-json"){var Y=r.graphJson(E,!1,"keepdata","object",!0,!0);return Y.version=l,Y=JSON.stringify(Y),G(),I(A?Y:w.encodeJSON(Y))}if(G(),f==="svg")return I(A?N:w.encodeSVG(N));var Q=document.createElement("canvas");Q.id=i.randstr(),h({format:f,width:F,height:U,scale:P,canvas:Q,svg:N,promise:!0}).then(I).catch(V)})}function B(I){return A?I.replace(w.IMAGE_URL_PREFIX,""):I}return new Promise(function(I,V){C.newPlot(E,s,d,_).then(L).then(b).then(D).then(function(N){I(B(N))}).catch(function(N){V(N)})})}nt.exports=n},2466:function(nt,W,e){var M=e(34809),C=e(44122),r=e(57297),i=e(24452).dfltConfig,w=M.isPlainObject,S=Array.isArray,h=M.isArrayOrTypedArray;nt.exports=function(c,p){c===void 0&&(c=[]),p===void 0&&(p={});var f=r.get(),T=[],k={_context:M.extendFlat({},i)},P,g;S(c)?(k.data=M.extendDeep([],c),P=c):(k.data=[],P=[],T.push(a("array","data"))),w(p)?(k.layout=M.extendDeep({},p),g=p):(k.layout={},g={},arguments.length>1&&T.push(a("object","layout"))),C.supplyDefaults(k);for(var A=k._fullData,E=P.length,d=0;d<E;d++){var _=P[d],L=["data",d];if(!w(_)){T.push(a("object",L));continue}var b=A[d],D=b.type,B=f.traces[D].attributes;B.type={valType:"enumerated",values:[D]},b.visible===!1&&_.visible!==!1&&T.push(a("invisible",L)),l(_,b,B,T,L);var I=_.transforms,V=b.transforms;if(I){S(I)||T.push(a("array",L,["transforms"])),L.push("transforms");for(var N=0;N<I.length;N++){var F=["transforms",N],U=I[N].type;if(!w(I[N])){T.push(a("object",L,F));continue}var G=f.transforms[U]?f.transforms[U].attributes:{};G.type={valType:"enumerated",values:Object.keys(f.transforms)},l(I[N],V[N],G,T,L,F)}}}var Y=k._fullLayout,Q=t(f,A);return l(g,Y,Q,T,"layout"),T.length===0?void 0:T};function l(c,p,f,T,k,P){P=P||[];for(var g=Object.keys(c),A=0;A<g.length;A++){var E=g[A];if(E!=="transforms"){var d=P.slice();d.push(E);var _=c[E],L=p[E],b=u(f,E),D=(b||{}).valType,B=D==="info_array",I=D==="colorscale",V=(b||{}).items;if(!s(f,E))T.push(a("schema",k,d));else if(w(_)&&w(L)&&D!=="any")l(_,L,b,T,k,d);else if(B&&S(_)){_.length>L.length&&T.push(a("unused",k,d.concat(L.length)));var N=L.length,F=Array.isArray(V);F&&(N=Math.min(N,V.length));var U,G,Y,Q,ft;if(b.dimensions===2)for(G=0;G<N;G++)if(S(_[G])){_[G].length>L[G].length&&T.push(a("unused",k,d.concat(G,L[G].length)));var ut=L[G].length;for(U=0;U<(F?Math.min(ut,V[G].length):ut);U++)Y=F?V[G][U]:V,Q=_[G][U],ft=L[G][U],M.validate(Q,Y)?ft!==Q&&ft!==+Q&&T.push(a("dynamic",k,d.concat(G,U),Q,ft)):T.push(a("value",k,d.concat(G,U),Q))}else T.push(a("array",k,d.concat(G),_[G]));else for(G=0;G<N;G++)Y=F?V[G]:V,Q=_[G],ft=L[G],M.validate(Q,Y)?ft!==Q&&ft!==+Q&&T.push(a("dynamic",k,d.concat(G),Q,ft)):T.push(a("value",k,d.concat(G),Q))}else if(b.items&&!B&&S(_)){var lt=V[Object.keys(V)[0]],K=[],$,H;for($=0;$<L.length;$++){var at=L[$]._index||$;if(H=d.slice(),H.push(at),w(_[at])&&w(L[$])){K.push(at);var ct=_[at],et=L[$];w(ct)&&ct.visible!==!1&&et.visible===!1?T.push(a("invisible",k,H)):l(ct,et,lt,T,k,H)}}for($=0;$<_.length;$++)H=d.slice(),H.push($),w(_[$])?K.indexOf($)===-1&&T.push(a("unused",k,H)):T.push(a("object",k,H,_[$]))}else!w(_)&&w(L)?T.push(a("object",k,d,_)):!h(_)&&h(L)&&!B&&!I?T.push(a("array",k,d,_)):E in p?M.validate(_,b)?b.valType==="enumerated"&&(b.coerceNumber&&_!==+L||_!==L)&&T.push(a("dynamic",k,d,_,L)):T.push(a("value",k,d,_)):T.push(a("unused",k,d,_))}}return T}function t(c,p){for(var f=c.layout.layoutAttributes,T=0;T<p.length;T++){var k=p[T],P=c.traces[k.type],g=P.layoutAttributes;g&&(k.subplot?M.extendFlat(f[P.attributes.subplot.dflt],g):M.extendFlat(f,g))}return f}var n={object:function(c,p){var f;return c==="layout"&&p===""?f="The layout argument":c[0]==="data"&&p===""?f="Trace "+c[1]+" in the data argument":f=o(c)+"key "+p,f+" must be linked to an object container"},array:function(c,p){var f;return c==="data"?f="The data argument":f=o(c)+"key "+p,f+" must be linked to an array container"},schema:function(c,p){return o(c)+"key "+p+" is not part of the schema"},unused:function(c,p,f){var T=w(f)?"container":"key";return o(c)+T+" "+p+" did not get coerced"},dynamic:function(c,p,f,T){return[o(c)+"key",p,"(set to '"+f+"')","got reset to","'"+T+"'","during defaults."].join(" ")},invisible:function(c,p){return(p?o(c)+"item "+p:"Trace "+c[1])+" got defaulted to be not visible"},value:function(c,p,f){return[o(c)+"key "+p,"is set to an invalid value ("+f+")"].join(" ")}};function o(c){return S(c)?"In data trace "+c[1]+", ":"In "+c+", "}function a(c,p,f,T,k){f=f||"";var P,g;S(p)?(P=p[0],g=p[1]):(P=p,g=null);var A=y(f),E=n[c](p,A,T,k);return M.log(E),{code:c,container:P,trace:g,path:f,astr:A,msg:E}}function s(c,p){var f=m(p),T=f.keyMinusId,k=f.id;return T in c&&c[T]._isSubplotObj&&k?!0:p in c}function u(c,p){if(p in c)return c[p];var f=m(p);return c[f.keyMinusId]}var x=M.counterRegex("([a-z]+)");function m(c){var p=c.match(x);return{keyMinusId:p&&p[1],id:p&&p[2]}}function y(c){if(!S(c))return String(c);for(var p="",f=0;f<c.length;f++){var T=c[f];typeof T=="number"?p=p.substr(0,p.length-1)+"["+T+"]":p+=T,f<c.length-1&&(p+=".")}return p}},49722:function(nt){nt.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"}}}},59008:function(nt,W,e){var M=e(34809),C=e(78032);nt.exports=function(r,i,w){var S=w.name,h=w.inclusionAttr||"visible",l=i[S],t=M.isArrayOrTypedArray(r[S])?r[S]:[],n=i[S]=[],o=C.arrayTemplater(i,S,h),a,s;for(a=0;a<t.length;a++){var u=t[a];M.isPlainObject(u)?s=o.newItem(u):(s=o.newItem({}),s[h]=!1),s._index=a,s[h]!==!1&&w.handleItemDefaults(u,s,i,w),n.push(s)}var x=o.defaultItems();for(a=0;a<x.length;a++)s=x[a],s._index=n.length,w.handleItemDefaults({},s,i,w,{}),n.push(s);if(M.isArrayOrTypedArray(l)){var m=Math.min(l.length,n.length);for(a=0;a<m;a++)M.relinkPrivateKeys(n[a],l[a])}return n}},9829:function(nt,W,e){var M=e(80337),C=e(70192);nt.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:M({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:C.hoverlabel,stream:{token:{valType:"string",noBlank:!0,strict:!0,editType:"calc"},maxpoints:{valType:"number",min:0,max:1e4,dflt:500,editType:"calc"},editType:"calc"},transforms:{_isLinkedToArray:"transform",editType:"calc"},uirevision:{valType:"any",editType:"none"}}},40528:function(nt,W,e){var M=e(10721),C=e(34809),r=C.dateTime2ms,i=C.incrementMonth,w=e(63821),S=w.ONEAVGMONTH;nt.exports=function(h,l,t,n){if(l.type!=="date")return{vals:n};var o=h[t+"periodalignment"];if(!o)return{vals:n};var a=h[t+"period"],s;if(M(a)){if(a=+a,a<=0)return{vals:n}}else if(typeof a=="string"&&a.charAt(0)==="M"){var u=+a.substring(1);if(u>0&&Math.round(u)===u)s=u;else return{vals:n}}for(var x=l.calendar,m=o==="start",y=o==="end",c=h[t+"period0"],p=r(c,x)||0,f=[],T=[],k=[],P=n.length,g=0;g<P;g++){var A=n[g],E,d,_;if(s){for(E=Math.round((A-p)/(s*S)),_=i(p,s*E,x);_>A;)_=i(_,-s,x);for(;_<=A;)_=i(_,s,x);d=i(_,-s,x)}else{for(E=Math.round((A-p)/a),_=p+E*a;_>A;)_-=a;for(;_<=A;)_+=a;d=_-a}f[g]=m?d:y?_:(d+_)/2,T[g]=d,k[g]=_}return{vals:f,starts:T,ends:k}}},55126:function(nt){nt.exports={xaxis:{valType:"subplotid",dflt:"x",editType:"calc+clearAxisTypes"},yaxis:{valType:"subplotid",dflt:"y",editType:"calc+clearAxisTypes"}}},32919:function(nt,W,e){var M=e(45568),C=e(10721),r=e(34809),i=e(63821).FP_SAFE,w=e(33626),S=e(62203),h=e(5975),l=h.getFromId,t=h.isLinked;nt.exports={applyAutorangeOptions:d,getAutoRange:n,makePadFn:a,doAutoRange:m,findExtremes:y,concatExtremes:x};function n(_,L){var b,D,B=[],I=_._fullLayout,V=a(I,L,0),N=a(I,L,1),F=x(_,L),U=F.min,G=F.max;if(U.length===0||G.length===0)return r.simpleMap(L.range,L.r2l);var Y=U[0].val,Q=G[0].val;for(b=1;b<U.length&&Y===Q;b++)Y=Math.min(Y,U[b].val);for(b=1;b<G.length&&Y===Q;b++)Q=Math.max(Q,G[b].val);var ft=L.autorange,ut=ft==="reversed"||ft==="min reversed"||ft==="max reversed";if(!ut&&L.range){var lt=r.simpleMap(L.range,L.r2l);ut=lt[1]<lt[0]}L.autorange==="reversed"&&(L.autorange=!0);var K=L.rangemode,$=K==="tozero",H=K==="nonnegative",at=L._length,ct=at/10,et=0,Z,ot,st,dt,xt,At;for(b=0;b<U.length;b++)for(Z=U[b],D=0;D<G.length;D++)ot=G[D],At=ot.val-Z.val-o(L,Z.val,ot.val),At>0&&(xt=at-V(Z)-N(ot),xt>ct?At/xt>et&&(st=Z,dt=ot,et=At/xt):At/at>et&&(st={val:Z.val,nopad:1},dt={val:ot.val,nopad:1},et=At/at));function St(Dt,kt){return Math.max(Dt,N(kt))}if(Y===Q){var Nt=Y-1,Wt=Y+1;if($)if(Y===0)B=[0,1];else{var Vt=(Y>0?G:U).reduce(St,0),jt=Y/(1-Math.min(.5,Vt/at));B=Y>0?[0,jt]:[jt,0]}else H?B=[Math.max(0,Nt),Math.max(1,Wt)]:B=[Nt,Wt]}else $?(st.val>=0&&(st={val:0,nopad:1}),dt.val<=0&&(dt={val:0,nopad:1})):H&&(st.val-et*V(st)<0&&(st={val:0,nopad:1}),dt.val<=0&&(dt={val:1,nopad:1})),et=(dt.val-st.val-o(L,Z.val,ot.val))/(at-V(st)-N(dt)),B=[st.val-et*V(st),dt.val+et*N(dt)];return B=d(B,L),L.limitRange&&L.limitRange(),ut&&B.reverse(),r.simpleMap(B,L.l2r||Number)}function o(_,L,b){var D=0;if(_.rangebreaks)for(var B=_.locateBreaks(L,b),I=0;I<B.length;I++){var V=B[I];D+=V.max-V.min}return D}function a(_,L,b){var D=.05*L._length,B=L._anchorAxis||{};if((L.ticklabelposition||"").indexOf("inside")!==-1||(B.ticklabelposition||"").indexOf("inside")!==-1){var I=L.isReversed();if(!I){var V=r.simpleMap(L.range,L.r2l);I=V[1]<V[0]}I&&(b=!b)}var N=0;return t(_,L._id)||(N=u(_,L,b)),D=Math.max(N,D),L.constrain==="domain"&&L._inputDomain&&(D*=(L._inputDomain[1]-L._inputDomain[0])/(L.domain[1]-L.domain[0])),function(F){return F.nopad?0:F.pad+(F.extrapad?D:N)}}var s=3;function u(_,L,b){var D=0,B=L._id.charAt(0)==="x";for(var I in _._plots){var V=_._plots[I];if(!(L._id!==V.xaxis._id&&L._id!==V.yaxis._id)){var N=(B?V.yaxis:V.xaxis)||{};if((N.ticklabelposition||"").indexOf("inside")!==-1&&(!b&&(N.side==="left"||N.side==="bottom")||b&&(N.side==="top"||N.side==="right"))){if(N._vals){var F=r.deg2rad(N._tickAngles[N._id+"tick"]||0),U=Math.abs(Math.cos(F)),G=Math.abs(Math.sin(F));if(!N._vals[0].bb){var Y=N._id+"tick",Q=N._selections[Y];Q.each(function(H){var at=M.select(this),ct=at.select(".text-math-group");ct.empty()&&(H.bb=S.bBox(at.node()))})}for(var ft=0;ft<N._vals.length;ft++){var ut=N._vals[ft],lt=ut.bb;if(lt){var K=2*s+lt.width,$=2*s+lt.height;D=Math.max(D,B?Math.max(K*U,$*G):Math.max($*U,K*G))}}}N.ticks==="inside"&&N.ticklabelposition==="inside"&&(D+=N.ticklen||0)}}}return D}function x(_,L,b){var D=L._id,B=_._fullData,I=_._fullLayout,V=[],N=[],F,U,G;function Y(K,$){for(F=0;F<$.length;F++){var H=K[$[F]],at=(H._extremes||{})[D];if(H.visible===!0&&at){for(U=0;U<at.min.length;U++)G=at.min[U],c(V,G.val,G.pad,{extrapad:G.extrapad});for(U=0;U<at.max.length;U++)G=at.max[U],p(N,G.val,G.pad,{extrapad:G.extrapad})}}}if(Y(B,L._traceIndices),Y(I.annotations||[],L._annIndices||[]),Y(I.shapes||[],L._shapeIndices||[]),L._matchGroup&&!b){for(var Q in L._matchGroup)if(Q!==L._id){var ft=l(_,Q),ut=x(_,ft,!0),lt=L._length/ft._length;for(U=0;U<ut.min.length;U++)G=ut.min[U],c(V,G.val,G.pad*lt,{extrapad:G.extrapad});for(U=0;U<ut.max.length;U++)G=ut.max[U],p(N,G.val,G.pad*lt,{extrapad:G.extrapad})}}return{min:V,max:N}}function m(_,L,b){if(L.setScale(),L.autorange){L.range=b?b.slice():n(_,L),L._r=L.range.slice(),L._rl=r.simpleMap(L._r,L.r2l);var D=L._input,B={};B[L._attr+".range"]=L.range,B[L._attr+".autorange"]=L.autorange,w.call("_storeDirectGUIEdit",_.layout,_._fullLayout._preGUI,B),D.range=L.range.slice(),D.autorange=L.autorange}var I=L._anchorAxis;if(I&&I.rangeslider){var V=I.rangeslider[L._name];V&&V.rangemode==="auto"&&(V.range=n(_,L)),I._input.rangeslider[L._name]=r.extendFlat({},V)}}function y(_,L,b){b||(b={}),_._m||_.setScale();var D=[],B=[],I=L.length,V=b.padded||!1,N=b.tozero&&(_.type==="linear"||_.type==="-"),F=_.type==="log",U=!1,G=b.vpadLinearized||!1,Y,Q,ft,ut,lt,K,$,H,at;function ct(St){if(Array.isArray(St))return U=!0,function(Wt){return Math.max(Number(St[Wt]||0),0)};var Nt=Math.max(Number(St||0),0);return function(){return Nt}}var et=ct((_._m>0?b.ppadplus:b.ppadminus)||b.ppad||0),Z=ct((_._m>0?b.ppadminus:b.ppadplus)||b.ppad||0),ot=ct(b.vpadplus||b.vpad),st=ct(b.vpadminus||b.vpad);if(!U){if(H=1/0,at=-1/0,F)for(Y=0;Y<I;Y++)Q=L[Y],Q<H&&Q>0&&(H=Q),Q>at&&Q<i&&(at=Q);else for(Y=0;Y<I;Y++)Q=L[Y],Q<H&&Q>-i&&(H=Q),Q>at&&Q<i&&(at=Q);L=[H,at],I=2}var dt={tozero:N,extrapad:V};function xt(St){ft=L[St],C(ft)&&(K=et(St),$=Z(St),G?(ut=_.c2l(ft)-st(St),lt=_.c2l(ft)+ot(St)):(H=ft-st(St),at=ft+ot(St),F&&H<at/10&&(H=at/10),ut=_.c2l(H),lt=_.c2l(at)),N&&(ut=Math.min(0,ut),lt=Math.max(0,lt)),T(ut)&&c(D,ut,$,dt),T(lt)&&p(B,lt,K,dt))}var At=Math.min(6,I);for(Y=0;Y<At;Y++)xt(Y);for(Y=I-1;Y>=At;Y--)xt(Y);return{min:D,max:B,opts:b}}function c(_,L,b,D){f(_,L,b,D,k)}function p(_,L,b,D){f(_,L,b,D,P)}function f(_,L,b,D,B){for(var I=D.tozero,V=D.extrapad,N=!0,F=0;F<_.length&&N;F++){var U=_[F];if(B(U.val,L)&&U.pad>=b&&(U.extrapad||!V)){N=!1;break}else B(L,U.val)&&U.pad<=b&&(V||!U.extrapad)&&(_.splice(F,1),F--)}if(N){var G=I&&L===0;_.push({val:L,pad:G?0:b,extrapad:G?!1:V})}}function T(_){return C(_)&&Math.abs(_)<i}function k(_,L){return _<=L}function P(_,L){return _>=L}function g(_,L){var b=L.autorangeoptions;return b&&b.minallowed!==void 0&&E(L,b.minallowed,b.maxallowed)?b.minallowed:b&&b.clipmin!==void 0&&E(L,b.clipmin,b.clipmax)?Math.max(_,L.d2l(b.clipmin)):_}function A(_,L){var b=L.autorangeoptions;return b&&b.maxallowed!==void 0&&E(L,b.minallowed,b.maxallowed)?b.maxallowed:b&&b.clipmax!==void 0&&E(L,b.clipmin,b.clipmax)?Math.min(_,L.d2l(b.clipmax)):_}function E(_,L,b){return L!==void 0&&b!==void 0?(L=_.d2l(L),b=_.d2l(b),L<b):!0}function d(_,L){if(!L||!L.autorangeoptions)return _;var b=_[0],D=_[1],B=L.autorangeoptions.include;if(B!==void 0){var I=L.d2l(b),V=L.d2l(D);r.isArrayOrTypedArray(B)||(B=[B]);for(var N=0;N<B.length;N++){var F=L.d2l(B[N]);I>=F&&(I=F,b=F),V<=F&&(V=F,D=F)}}return b=g(b,L),D=A(D,L),[b,D]}},75511:function(nt){nt.exports=function(W,e,M){var C,r;if(M){var i=e==="reversed"||e==="min reversed"||e==="max reversed";C=M[i?1:0],r=M[i?0:1]}var w=W("autorangeoptions.minallowed",r===null?C:void 0),S=W("autorangeoptions.maxallowed",C===null?r:void 0);w===void 0&&W("autorangeoptions.clipmin"),S===void 0&&W("autorangeoptions.clipmax"),W("autorangeoptions.include")}},29714:function(nt,W,e){var M=e(45568),C=e(10721),r=e(44122),i=e(33626),w=e(34809),S=w.strTranslate,h=e(30635),l=e(17240),t=e(78766),n=e(62203),o=e(25829),a=e(68599),s=e(63821),u=s.ONEMAXYEAR,x=s.ONEAVGYEAR,m=s.ONEMINYEAR,y=s.ONEMAXQUARTER,c=s.ONEAVGQUARTER,p=s.ONEMINQUARTER,f=s.ONEMAXMONTH,T=s.ONEAVGMONTH,k=s.ONEMINMONTH,P=s.ONEWEEK,g=s.ONEDAY,A=g/2,E=s.ONEHOUR,d=s.ONEMIN,_=s.ONESEC,L=s.ONEMILLI,b=s.ONEMICROSEC,D=s.MINUS_SIGN,B=s.BADNUM,I={K:"zeroline"},V={K:"gridline",L:"path"},N={K:"minor-gridline",L:"path"},F={K:"tick",L:"path"},U={K:"tick",L:"text"},G={width:["x","r","l","xl","xr"],height:["y","t","b","yt","yb"],right:["r","xr"],left:["l","xl"],top:["t","yt"],bottom:["b","yb"]},Y=e(4530),Q=Y.MID_SHIFT,ft=Y.CAP_SHIFT,ut=Y.LINE_SPACING,lt=Y.OPPOSITE_SIDE,K=3,$=nt.exports={};$.setConvert=e(19091);var H=e(9666),at=e(5975),ct=at.idSort,et=at.isLinked;$.id2name=at.id2name,$.name2id=at.name2id,$.cleanId=at.cleanId,$.list=at.list,$.listIds=at.listIds,$.getFromId=at.getFromId,$.getFromTrace=at.getFromTrace;var Z=e(32919);$.getAutoRange=Z.getAutoRange,$.findExtremes=Z.findExtremes;var ot=1e-4;function st(te){var he=(te[1]-te[0])*ot;return[te[0]-he,te[1]+he]}$.coerceRef=function(te,he,Je,br,pr,We){var hr=br.charAt(br.length-1),Ar=Je._fullLayout._subplots[hr+"axis"],yr=br+"ref",dr={};return pr||(pr=Ar[0]||(typeof We=="string"?We:We[0])),We||(We=pr),Ar=Ar.concat(Ar.map(function(Rr){return Rr+" domain"})),dr[yr]={valType:"enumerated",values:Ar.concat(We?typeof We=="string"?[We]:We:[]),dflt:pr},w.coerce(te,he,dr,yr)},$.getRefType=function(te){return te===void 0?te:te==="paper"?"paper":te==="pixel"?"pixel":/( domain)$/.test(te)?"domain":"range"},$.coercePosition=function(te,he,Je,br,pr,We){var hr,Ar,yr=$.getRefType(br);if(yr!=="range")hr=w.ensureNumber,Ar=Je(pr,We);else{var dr=$.getFromId(he,br);We=dr.fraction2r(We),Ar=Je(pr,We),hr=dr.cleanPos}te[pr]=hr(Ar)},$.cleanPosition=function(te,he,Je){var br=Je==="paper"||Je==="pixel"?w.ensureNumber:$.getFromId(he,Je).cleanPos;return br(te)},$.redrawComponents=function(te,he){he=he||$.listIds(te);var Je=te._fullLayout;function br(pr,We,hr,Ar){for(var yr=i.getComponentMethod(pr,We),dr={},Rr=0;Rr<he.length;Rr++)for(var Qr=Je[$.id2name(he[Rr])],Xr=Qr[hr],Dn=0;Dn<Xr.length;Dn++){var on=Xr[Dn];if(!dr[on]&&(yr(te,on),dr[on]=1,Ar))return}}br("annotations","drawOne","_annIndices"),br("shapes","drawOne","_shapeIndices"),br("images","draw","_imgIndices",!0),br("selections","drawOne","_selectionIndices")};var dt=$.getDataConversions=function(te,he,Je,br){var pr,We=Je==="x"||Je==="y"||Je==="z"?Je:br;if(w.isArrayOrTypedArray(We)){if(pr={type:H(br,void 0,{autotypenumbers:te._fullLayout.autotypenumbers}),_categories:[]},$.setConvert(pr),pr.type==="category")for(var hr=0;hr<br.length;hr++)pr.d2c(br[hr])}else pr=$.getFromTrace(te,he,We);return pr?{d2c:pr.d2c,c2d:pr.c2d}:We==="ids"?{d2c:At,c2d:At}:{d2c:xt,c2d:xt}};function xt(te){return+te}function At(te){return String(te)}$.getDataToCoordFunc=function(te,he,Je,br){return dt(te,he,Je,br).d2c},$.counterLetter=function(te){var he=te.charAt(0);if(he==="x")return"y";if(he==="y")return"x"},$.minDtick=function(te,he,Je,br){["log","category","multicategory"].indexOf(te.type)!==-1||!br?te._minDtick=0:te._minDtick===void 0?(te._minDtick=he,te._forceTick0=Je):te._minDtick&&((te._minDtick/he+1e-6)%1<2e-6&&((Je-te._forceTick0)/he%1+1.000001)%1<2e-6?(te._minDtick=he,te._forceTick0=Je):((he/te._minDtick+1e-6)%1>2e-6||((Je-te._forceTick0)/te._minDtick%1+1.000001)%1>2e-6)&&(te._minDtick=0))},$.saveRangeInitial=function(te,he){for(var Je=$.list(te,"",!0),br=!1,pr=0;pr<Je.length;pr++){var We=Je[pr],hr=We._rangeInitial0===void 0&&We._rangeInitial1===void 0,Ar=hr||We.range[0]!==We._rangeInitial0||We.range[1]!==We._rangeInitial1,yr=We.autorange;(hr&&yr!==!0||he&&Ar)&&(We._rangeInitial0=yr==="min"||yr==="max reversed"?void 0:We.range[0],We._rangeInitial1=yr==="max"||yr==="min reversed"?void 0:We.range[1],We._autorangeInitial=yr,br=!0)}return br},$.saveShowSpikeInitial=function(te,he){for(var Je=$.list(te,"",!0),br=!1,pr="on",We=0;We<Je.length;We++){var hr=Je[We],Ar=hr._showSpikeInitial===void 0,yr=Ar||hr.showspikes!==hr._showspikes;(Ar||he&&yr)&&(hr._showSpikeInitial=hr.showspikes,br=!0),pr==="on"&&!hr.showspikes&&(pr="off")}return te._fullLayout._cartesianSpikesEnabled=pr,br},$.autoBin=function(te,he,Je,br,pr,We){var hr=w.aggNums(Math.min,null,te),Ar=w.aggNums(Math.max,null,te);if(he.type==="category"||he.type==="multicategory")return{start:hr-.5,end:Ar+.5,size:Math.max(1,Math.round(We)||1),_dataSpan:Ar-hr};pr||(pr=he.calendar);var yr;if(he.type==="log"?yr={type:"linear",range:[hr,Ar]}:yr={type:he.type,range:w.simpleMap([hr,Ar],he.c2r,0,pr),calendar:pr},$.setConvert(yr),We=We&&a.dtick(We,yr.type),We)yr.dtick=We,yr.tick0=a.tick0(void 0,yr.type,pr);else{var dr;if(Je)dr=(Ar-hr)/Je;else{var Rr=w.distinctVals(te),Qr=Math.pow(10,Math.floor(Math.log(Rr.minDiff)/Math.LN10)),Xr=Qr*w.roundUp(Rr.minDiff/Qr,[.9,1.9,4.9,9.9],!0);dr=Math.max(Xr,2*w.stdev(te)/Math.pow(te.length,br?.25:.4)),C(dr)||(dr=1)}$.autoTicks(yr,dr)}var Dn=yr.dtick,on=$.tickIncrement($.tickFirst(yr),Dn,"reverse",pr),Hn,Fn;if(typeof Dn=="number")on=St(on,te,yr,hr,Ar),Fn=1+Math.floor((Ar-on)/Dn),Hn=on+Fn*Dn;else for(yr.dtick.charAt(0)==="M"&&(on=Nt(on,te,Dn,hr,pr)),Hn=on,Fn=0;Hn<=Ar;)Hn=$.tickIncrement(Hn,Dn,!1,pr),Fn++;return{start:he.c2r(on,0,pr),end:he.c2r(Hn,0,pr),size:Dn,_dataSpan:Ar-hr}};function St(te,he,Je,br,pr){var We=0,hr=0,Ar=0,yr=0;function dr(Dn){return(1+(Dn-te)*100/Je.dtick)%100<2}for(var Rr=0;Rr<he.length;Rr++)he[Rr]%1===0?Ar++:C(he[Rr])||yr++,dr(he[Rr])&&We++,dr(he[Rr]+Je.dtick/2)&&hr++;var Qr=he.length-yr;if(Ar===Qr&&Je.type!=="date")Je.dtick<1?te=br-.5*Je.dtick:(te-=.5,te+Je.dtick<br&&(te+=Je.dtick));else if(hr<Qr*.1&&(We>Qr*.3||dr(br)||dr(pr))){var Xr=Je.dtick/2;te+=te+Xr<br?Xr:-Xr}return te}function Nt(te,he,Je,br,pr){var We=w.findExactDates(he,pr),hr=.8;if(We.exactDays>hr){var Ar=Number(Je.substr(1));We.exactYears>hr&&Ar%12===0?te=$.tickIncrement(te,"M6","reverse")+g*1.5:We.exactMonths>hr?te=$.tickIncrement(te,"M1","reverse")+g*15.5:te-=A;var yr=$.tickIncrement(te,Je);if(yr<=br)return yr}return te}$.prepMinorTicks=function(te,he,Je){if(!he.minor.dtick){delete te.dtick;var br=he.dtick&&C(he._tmin),pr;if(br){var We=$.tickIncrement(he._tmin,he.dtick,!0);pr=[he._tmin,We*.99+he._tmin*.01]}else{var hr=w.simpleMap(he.range,he.r2l);pr=[hr[0],.8*hr[0]+.2*hr[1]]}if(te.range=w.simpleMap(pr,he.l2r),te._isMinor=!0,$.prepTicks(te,Je),br){var Ar=C(he.dtick),yr=C(te.dtick),dr=Ar?he.dtick:+he.dtick.substring(1),Rr=yr?te.dtick:+te.dtick.substring(1);Ar&&yr?Wt(dr,Rr)?dr===2*P&&Rr===2*g&&(te.dtick=P):dr===2*P&&Rr===3*g?te.dtick=P:dr===P&&!(he._input.minor||{}).nticks?te.dtick=g:Vt(dr/Rr,2.5)?te.dtick=dr/2:te.dtick=dr:String(he.dtick).charAt(0)==="M"?yr?te.dtick="M1":Wt(dr,Rr)?dr>=12&&Rr===2&&(te.dtick="M3"):te.dtick=he.dtick:String(te.dtick).charAt(0)==="L"?String(he.dtick).charAt(0)==="L"?Wt(dr,Rr)||(te.dtick=Vt(dr/Rr,2.5)?he.dtick/2:he.dtick):te.dtick="D1":te.dtick==="D2"&&+he.dtick>1&&(te.dtick=1)}te.range=he.range}he.minor._tick0Init===void 0&&(te.tick0=he.tick0)};function Wt(te,he){return Math.abs((te/he+.5)%1-.5)<.001}function Vt(te,he){return Math.abs(te/he-1)<.001}$.prepTicks=function(te,he){var Je=w.simpleMap(te.range,te.r2l,void 0,void 0,he);if(te.tickmode==="auto"||!te.dtick){var br=te.nticks,pr;br||(te.type==="category"||te.type==="multicategory"?(pr=te.tickfont?w.bigFont(te.tickfont.size||12):15,br=te._length/pr):(pr=te._id.charAt(0)==="y"?40:80,br=w.constrain(te._length/pr,4,9)+1),te._name==="radialaxis"&&(br*=2)),te.minor&&te.minor.tickmode!=="array"||te.tickmode==="array"&&(br*=100),te._roughDTick=Math.abs(Je[1]-Je[0])/br,$.autoTicks(te,te._roughDTick),te._minDtick>0&&te.dtick<te._minDtick*2&&(te.dtick=te._minDtick,te.tick0=te.l2r(te._forceTick0))}te.ticklabelmode==="period"&&Dt(te),te.tick0||(te.tick0=te.type==="date"?"2000-01-01":0),te.type==="date"&&te.dtick<.1&&(te.dtick=.1),Le(te)};function jt(te){return+te.substring(1)}function Dt(te){var he;function Je(){return!(C(te.dtick)||te.dtick.charAt(0)!=="M")}var br=Je(),pr=$.getTickFormat(te);if(pr){var We=te._dtickInit!==te.dtick;/%[fLQsSMX]/.test(pr)||(/%[HI]/.test(pr)?(he=E,We&&!br&&te.dtick<E&&(te.dtick=E)):/%p/.test(pr)?(he=A,We&&!br&&te.dtick<A&&(te.dtick=A)):/%[Aadejuwx]/.test(pr)?(he=g,We&&!br&&te.dtick<g&&(te.dtick=g)):/%[UVW]/.test(pr)?(he=P,We&&!br&&te.dtick<P&&(te.dtick=P)):/%[Bbm]/.test(pr)?(he=T,We&&(br?jt(te.dtick)<1:te.dtick<k)&&(te.dtick="M1")):/%[q]/.test(pr)?(he=c,We&&(br?jt(te.dtick)<3:te.dtick<p)&&(te.dtick="M3")):/%[Yy]/.test(pr)&&(he=x,We&&(br?jt(te.dtick)<12:te.dtick<m)&&(te.dtick="M12")))}br=Je(),br&&te.tick0===te._dowTick0&&(te.tick0=te._rawTick0),te._definedDelta=he}function kt(te,he,Je){for(var br=0;br<te.length;br++){var pr=te[br].value,We=br,hr=br+1;br<te.length-1?(We=br,hr=br+1):br>0?(We=br-1,hr=br):(We=br,hr=br);var Ar=te[We].value,yr=te[hr].value,dr=Math.abs(yr-Ar),Rr=Je||dr,Qr=0;Rr>=m?dr>=m&&dr<=u?Qr=dr:Qr=x:Je===c&&Rr>=p?dr>=p&&dr<=y?Qr=dr:Qr=c:Rr>=k?dr>=k&&dr<=f?Qr=dr:Qr=T:Je===P&&Rr>=P?Qr=P:Rr>=g?Qr=g:Je===A&&Rr>=A?Qr=A:Je===E&&Rr>=E&&(Qr=E);var Xr;Qr>=dr&&(Qr=dr,Xr=!0);var Dn=pr+Qr;if(he.rangebreaks&&Qr>0){for(var on=84,Hn=0,Fn=0;Fn<on;Fn++){var jr=(Fn+.5)/on;he.maskBreaks(pr*(1-jr)+jr*Dn)!==B&&Hn++}Qr*=Hn/on,Qr||(te[br].drop=!0),Xr&&dr>P&&(Qr=dr)}(Qr>0||br===0)&&(te[br].periodX=pr+Qr/2)}}$.calcTicks=function(te,he){for(var Je=te.type,br=te.calendar,pr=te.ticklabelstep,We=te.ticklabelmode==="period",hr=te.range[0]>te.range[1],Ar=!te.ticklabelindex||w.isArrayOrTypedArray(te.ticklabelindex)?te.ticklabelindex:[te.ticklabelindex],yr=w.simpleMap(te.range,te.r2l,void 0,void 0,he),dr=yr[1]<yr[0],Rr=Math.min(yr[0],yr[1]),Qr=Math.max(yr[0],yr[1]),Xr=Math.max(1e3,te._length||0),Dn=[],on=[],Hn=[],Fn=[],jr=[],Pr=te.minor&&(te.minor.ticks||te.minor.showgrid),fn=1;fn>=(Pr?0:1);fn--){var nn=!fn;fn?(te._dtickInit=te.dtick,te._tick0Init=te.tick0):(te.minor._dtickInit=te.minor.dtick,te.minor._tick0Init=te.minor.tick0);var Rn=fn?te:w.extendFlat({},te,te.minor);if(nn?$.prepMinorTicks(Rn,te,he):$.prepTicks(Rn,he),Rn.tickmode==="array"){fn?(Hn=[],Dn=Ht(te,!nn)):(Fn=[],on=Ht(te,!nn));continue}if(Rn.tickmode==="sync"){Hn=[],Dn=Ot(te);continue}var On=st(yr),vn=On[0],Gn=On[1],ii=C(Rn.dtick),Wi=Je==="log"&&!(ii||Rn.dtick.charAt(0)==="L"),ra=$.tickFirst(Rn,he);if(fn){if(te._tmin=ra,ra<vn!==dr)break;(Je==="category"||Je==="multicategory")&&(Gn=dr?Math.max(-.5,Gn):Math.min(te._categories.length-.5,Gn))}var vi=null,Oi=ra,mi;if(fn){var $r;ii?$r=te.dtick:Je==="date"?typeof te.dtick=="string"&&te.dtick.charAt(0)==="M"&&($r=T*te.dtick.substring(1)):$r=te._roughDTick,mi=Math.round((te.r2l(Oi)-te.r2l(te.tick0))/$r)-1}var Tn=Rn.dtick;for(Rn.rangebreaks&&Rn._tick0Init!==Rn.tick0&&(Oi=Sr(Oi,te),dr||(Oi=$.tickIncrement(Oi,Tn,!dr,br))),fn&&We&&(Oi=$.tickIncrement(Oi,Tn,!dr,br),mi--);dr?Oi>=Gn:Oi<=Gn;Oi=$.tickIncrement(Oi,Tn,dr,br)){if(fn&&mi++,Rn.rangebreaks&&!dr){if(Oi<vn)continue;if(Rn.maskBreaks(Oi)===B&&Sr(Oi,Rn)>=Qr)break}if(Hn.length>Xr||Oi===vi)break;vi=Oi;var Pn={value:Oi};fn?(Wi&&Oi!==(Oi|0)&&(Pn.simpleLabel=!0),pr>1&&mi%pr&&(Pn.skipLabel=!0),Hn.push(Pn)):(Pn.minor=!0,Fn.push(Pn))}}if(!Fn||Fn.length<2)Ar=!1;else{var En=(Fn[1].value-Fn[0].value)*(hr?-1:1);zr(En,te.tickformat)||(Ar=!1)}if(!Ar)jr=Hn;else{var li=Hn.concat(Fn);We&&Hn.length&&(li=li.slice(1)),li=li.sort(function(ui,yi){return ui.value-yi.value}).filter(function(ui,yi,di){return yi===0||ui.value!==di[yi-1].value});var Cn=li.map(function(ui,yi){return ui.minor===void 0&&!ui.skipLabel?yi:null}).filter(function(ui){return ui!==null});Cn.forEach(function(ui){Ar.map(function(yi){var di=ui+yi;di>=0&&di<li.length&&w.pushUnique(jr,li[di])})})}if(Pr){var ci=te.minor.ticks==="inside"&&te.ticks==="outside"||te.minor.ticks==="outside"&&te.ticks==="inside";if(!ci){for(var gi=Hn.map(function(ui){return ui.value}),Bi=[],Qi=0;Qi<Fn.length;Qi++){var Ma=Fn[Qi],qr=Ma.value;if(gi.indexOf(qr)===-1){for(var cn=!1,Gr=0;!cn&&Gr<Hn.length;Gr++)1e7+Hn[Gr].value===1e7+qr&&(cn=!0);cn||Bi.push(Ma)}}Fn=Bi}}We&&kt(jr,te,te._definedDelta);var sn;if(te.rangebreaks){var $n=te._id.charAt(0)==="y",hi=1;te.tickmode==="auto"&&(hi=te.tickfont?te.tickfont.size:12);var Wn=NaN;for(sn=Hn.length-1;sn>-1;sn--){if(Hn[sn].drop){Hn.splice(sn,1);continue}Hn[sn].value=Sr(Hn[sn].value,te);var Zn=te.c2p(Hn[sn].value);($n?Wn>Zn-hi:Wn<Zn+hi)?Hn.splice(dr?sn+1:sn,1):Wn=Zn}}xr(te)&&Math.abs(yr[1]-yr[0])===360&&Hn.pop(),te._tmax=(Hn[Hn.length-1]||{}).value,te._prevDateHead="",te._inCalcTicks=!0;var Yr,xn=function(ui){ui.text="",te._prevDateHead=Yr};Hn=Hn.concat(Fn);function dn(ui,yi){var di=$.tickText(ui,yi.value,!1,yi.simpleLabel),Li=yi.periodX;return Li!==void 0&&(di.periodX=Li,(Li>Qr||Li<Rr)&&(Li>Qr&&(di.periodX=Qr),Li<Rr&&(di.periodX=Rr),xn(di))),di}var An;for(sn=0;sn<Hn.length;sn++){var oi=Hn[sn].minor,si=Hn[sn].value;oi?(Ar&&jr.indexOf(Hn[sn])!==-1?An=dn(te,Hn[sn]):An={x:si},An.minor=!0,on.push(An)):(Yr=te._prevDateHead,An=dn(te,Hn[sn]),(Hn[sn].skipLabel||Ar&&jr.indexOf(Hn[sn])===-1)&&xn(An),Dn.push(An))}return Dn=Dn.concat(on),te._inCalcTicks=!1,We&&Dn.length&&(Dn[0].noTick=!0),Dn};function Bt(te,he){return te.rangebreaks&&(he=he.filter(function(Je){return te.maskBreaks(Je.x)!==B})),he}function Ot(te){var he=te._mainAxis,Je=[];if(he._vals){for(var br=0;br<he._vals.length;br++)if(!he._vals[br].noTick){var pr=he.l2p(he._vals[br].x),We=te.p2l(pr),hr=$.tickText(te,We);he._vals[br].minor&&(hr.minor=!0,hr.text=""),Je.push(hr)}}return Je=Bt(te,Je),Je}function Ht(te,he){var Je=w.simpleMap(te.range,te.r2l),br=st(Je),pr=Math.min(br[0],br[1]),We=Math.max(br[0],br[1]),hr=te.type==="category"?te.d2l_noadd:te.d2l;te.type==="log"&&String(te.dtick).charAt(0)!=="L"&&(te.dtick="L"+Math.pow(10,Math.floor(Math.min(te.range[0],te.range[1]))-1));for(var Ar=[],yr=0;yr<=1;yr++)if(!(he!==void 0&&(he&&yr||he===!1&&!yr))&&!(yr&&!te.minor)){var dr=yr?te.minor.tickvals:te.tickvals,Rr=yr?[]:te.ticktext;if(dr){w.isArrayOrTypedArray(Rr)||(Rr=[]);for(var Qr=0;Qr<dr.length;Qr++){var Xr=hr(dr[Qr]);if(Xr>pr&&Xr<We){var Dn=$.tickText(te,Xr,!1,String(Rr[Qr]));yr&&(Dn.minor=!0,Dn.text=""),Ar.push(Dn)}}}}return Ar=Bt(te,Ar),Ar}var ye=[2,5,10],Qt=[1,2,3,6,12],_e=[1,2,5,10,15,30],ie=[1,2,3,7,14],Ae=[-.046,0,.301,.477,.602,.699,.778,.845,.903,.954,1],Pe=[-.301,0,.301,.699,1],Oe=[15,30,45,90,180];function je(te,he,Je){return he*w.roundUp(te/he,Je)}$.autoTicks=function(te,he,Je){var br;function pr(Qr){return Math.pow(Qr,Math.floor(Math.log(he)/Math.LN10))}if(te.type==="date"){te.tick0=w.dateTick0(te.calendar,0);var We=2*he;if(We>x)he/=x,br=pr(10),te.dtick="M"+12*je(he,br,ye);else if(We>T)he/=T,te.dtick="M"+je(he,1,Qt);else if(We>g){if(te.dtick=je(he,g,te._hasDayOfWeekBreaks?[1,2,7,14]:ie),!Je){var hr=$.getTickFormat(te),Ar=te.ticklabelmode==="period";Ar&&(te._rawTick0=te.tick0),/%[uVW]/.test(hr)?te.tick0=w.dateTick0(te.calendar,2):te.tick0=w.dateTick0(te.calendar,1),Ar&&(te._dowTick0=te.tick0)}}else We>E?te.dtick=je(he,E,Qt):We>d?te.dtick=je(he,d,_e):We>_?te.dtick=je(he,_,_e):(br=pr(10),te.dtick=je(he,br,ye))}else if(te.type==="log"){te.tick0=0;var yr=w.simpleMap(te.range,te.r2l);if(te._isMinor&&(he*=1.5),he>.7)te.dtick=Math.ceil(he);else if(Math.abs(yr[1]-yr[0])<1){var dr=1.5*Math.abs((yr[1]-yr[0])/he);he=Math.abs(Math.pow(10,yr[1])-Math.pow(10,yr[0]))/dr,br=pr(10),te.dtick="L"+je(he,br,ye)}else te.dtick=he>.3?"D2":"D1"}else te.type==="category"||te.type==="multicategory"?(te.tick0=0,te.dtick=Math.ceil(Math.max(he,1))):xr(te)?(te.tick0=0,br=1,te.dtick=je(he,br,Oe)):(te.tick0=0,br=pr(10),te.dtick=je(he,br,ye));if(te.dtick===0&&(te.dtick=1),!C(te.dtick)&&typeof te.dtick!="string"){var Rr=te.dtick;throw te.dtick=1,"ax.dtick error: "+String(Rr)}};function Le(te){var he=te.dtick;if(te._tickexponent=0,!C(he)&&typeof he!="string"&&(he=1),(te.type==="category"||te.type==="multicategory")&&(te._tickround=null),te.type==="date"){var Je=te.r2l(te.tick0),br=te.l2r(Je).replace(/(^-|i)/g,""),pr=br.length;if(String(he).charAt(0)==="M")pr>10||br.substr(5)!=="01-01"?te._tickround="d":te._tickround=+he.substr(1)%12===0?"y":"m";else if(he>=g&&pr<=10||he>=g*15)te._tickround="d";else if(he>=d&&pr<=16||he>=E)te._tickround="M";else if(he>=_&&pr<=19||he>=d)te._tickround="S";else{var We=te.l2r(Je+he).replace(/^-/,"").length;te._tickround=Math.max(pr,We)-20,te._tickround<0&&(te._tickround=4)}}else if(C(he)||he.charAt(0)==="L"){var hr=te.range.map(te.r2d||Number);C(he)||(he=Number(he.substr(1))),te._tickround=2-Math.floor(Math.log(he)/Math.LN10+.01);var Ar=Math.max(Math.abs(hr[0]),Math.abs(hr[1])),yr=Math.floor(Math.log(Ar)/Math.LN10+.01),dr=te.minexponent===void 0?3:te.minexponent;Math.abs(yr)>dr&&(vt(te.exponentformat)&&!Mt(yr)?te._tickexponent=3*Math.round((yr-1)/3):te._tickexponent=yr)}else te._tickround=null}$.tickIncrement=function(te,he,Je,br){var pr=Je?-1:1;if(C(he))return w.increment(te,pr*he);var We=he.charAt(0),hr=pr*Number(he.substr(1));if(We==="M")return w.incrementMonth(te,hr,br);if(We==="L")return Math.log(Math.pow(10,te)+hr)/Math.LN10;if(We==="D"){var Ar=he==="D2"?Pe:Ae,yr=te+pr*.01,dr=w.roundUp(w.mod(yr,1),Ar,Je);return Math.floor(yr)+Math.log(M.round(Math.pow(10,dr),1))/Math.LN10}throw"unrecognized dtick "+String(he)},$.tickFirst=function(te,he){var Je=te.r2l||Number,br=w.simpleMap(te.range,Je,void 0,void 0,he),pr=br[1]<br[0],We=pr?Math.floor:Math.ceil,hr=st(br)[0],Ar=te.dtick,yr=Je(te.tick0);if(C(Ar)){var dr=We((hr-yr)/Ar)*Ar+yr;return(te.type==="category"||te.type==="multicategory")&&(dr=w.constrain(dr,0,te._categories.length-1)),dr}var Rr=Ar.charAt(0),Qr=Number(Ar.substr(1));if(Rr==="M"){for(var Xr=0,Dn=yr,on,Hn,Fn;Xr<10;){if(on=$.tickIncrement(Dn,Ar,pr,te.calendar),(on-hr)*(Dn-hr)<=0)return pr?Math.min(Dn,on):Math.max(Dn,on);Hn=(hr-(Dn+on)/2)/(on-Dn),Fn=Rr+(Math.abs(Math.round(Hn))||1)*Qr,Dn=$.tickIncrement(Dn,Fn,Hn<0?!pr:pr,te.calendar),Xr++}return w.error("tickFirst did not converge",te),Dn}else{if(Rr==="L")return Math.log(We((Math.pow(10,hr)-yr)/Qr)*Qr+yr)/Math.LN10;if(Rr==="D"){var jr=Ar==="D2"?Pe:Ae,Pr=w.roundUp(w.mod(hr,1),jr,pr);return Math.floor(hr)+Math.log(M.round(Math.pow(10,Pr),1))/Math.LN10}else throw"unrecognized dtick "+String(Ar)}},$.tickText=function(te,he,Je,br){var pr=Ie(te,he),We=te.tickmode==="array",hr=Je||We,Ar=te.type,yr=Ar==="category"?te.d2l_noadd:te.d2l,dr,Rr=function(Fn){var jr=te.l2p(Fn);return jr>=0&&jr<=te._length?Fn:null};if(We&&w.isArrayOrTypedArray(te.ticktext)){var Qr=w.simpleMap(te.range,te.r2l),Xr=(Math.abs(Qr[1]-Qr[0])-(te._lBreaks||0))/1e4;for(dr=0;dr<te.ticktext.length&&!(Math.abs(he-yr(te.tickvals[dr]))<Xr);dr++);if(dr<te.ticktext.length)return pr.text=String(te.ticktext[dr]),pr.xbnd=[Rr(pr.x-.5),Rr(pr.x+te.dtick-.5)],pr}function Dn(Fn){if(Fn===void 0)return!0;if(Je)return Fn==="none";var jr={first:te._tmin,last:te._tmax}[Fn];return Fn!=="all"&&he!==jr}var on=Je?"never":te.exponentformat!=="none"&&Dn(te.showexponent)?"hide":"";if(Ar==="date"?Ut(te,pr,Je,hr):Ar==="log"?ee(te,pr,Je,hr,on):Ar==="category"?Kt(te,pr):Ar==="multicategory"?ne(te,pr,Je):xr(te)?qt(te,pr,Je,hr,on):zt(te,pr,Je,hr,on),br||(te.tickprefix&&!Dn(te.showtickprefix)&&(pr.text=te.tickprefix+pr.text),te.ticksuffix&&!Dn(te.showticksuffix)&&(pr.text+=te.ticksuffix)),te.labelalias&&te.labelalias.hasOwnProperty(pr.text)){var Hn=te.labelalias[pr.text];typeof Hn=="string"&&(pr.text=Hn)}return(te.tickson==="boundaries"||te.showdividers)&&(pr.xbnd=[Rr(pr.x-.5),Rr(pr.x+te.dtick-.5)]),pr},$.hoverLabelText=function(te,he,Je){Je&&(te=w.extendFlat({},te,{hoverformat:Je}));var br=w.isArrayOrTypedArray(he)?he[0]:he,pr=w.isArrayOrTypedArray(he)?he[1]:void 0;if(pr!==void 0&&pr!==br)return $.hoverLabelText(te,br,Je)+" - "+$.hoverLabelText(te,pr,Je);var We=te.type==="log"&&br<=0,hr=$.tickText(te,te.c2l(We?-br:br),"hover").text;return We?br===0?"0":D+hr:hr};function Ie(te,he,Je){var br=te.tickfont||{};return{x:he,dx:0,dy:0,text:Je||"",fontSize:br.size,font:br.family,fontWeight:br.weight,fontStyle:br.style,fontVariant:br.variant,fontTextcase:br.textcase,fontLineposition:br.lineposition,fontShadow:br.shadow,fontColor:br.color}}function Ut(te,he,Je,br){var pr=te._tickround,We=Je&&te.hoverformat||$.getTickFormat(te);br=!We&&br,br&&(C(pr)?pr=4:pr={y:"m",m:"d",d:"M",M:"S",S:4}[pr]);var hr=w.formatDate(he.x,We,pr,te._dateFormat,te.calendar,te._extraFormat),Ar,yr=hr.indexOf(`
4
4
  `);if(yr!==-1&&(Ar=hr.substr(yr+1),hr=hr.substr(0,yr)),br&&(Ar!==void 0&&(hr==="00:00:00"||hr==="00:00")?(hr=Ar,Ar=""):hr.length===8&&(hr=hr.replace(/:00$/,""))),Ar)if(Je)pr==="d"?hr+=", "+Ar:hr=Ar+(hr?", "+hr:"");else if(!te._inCalcTicks||te._prevDateHead!==Ar)te._prevDateHead=Ar,hr+="<br>"+Ar;else{var dr=Cr(te),Rr=te._trueSide||te.side;(!dr&&Rr==="top"||dr&&Rr==="bottom")&&(hr+="<br> ")}he.text=hr}function ee(te,he,Je,br,pr){var We=te.dtick,hr=he.x,Ar=te.tickformat,yr=typeof We=="string"&&We.charAt(0);if(pr==="never"&&(pr=""),br&&yr!=="L"&&(We="L3",yr="L"),Ar||yr==="L")he.text=Lt(Math.pow(10,hr),te,pr,br);else if(C(We)||yr==="D"&&w.mod(hr+.01,1)<.1){var dr=Math.round(hr),Rr=Math.abs(dr),Qr=te.exponentformat;Qr==="power"||vt(Qr)&&Mt(dr)?(dr===0?he.text=1:dr===1?he.text="10":he.text="10<sup>"+(dr>1?"":D)+Rr+"</sup>",he.fontSize*=1.25):(Qr==="e"||Qr==="E")&&Rr>2?he.text="1"+Qr+(dr>0?"+":D)+Rr:(he.text=Lt(Math.pow(10,hr),te,"","fakehover"),We==="D1"&&te._id.charAt(0)==="y"&&(he.dy-=he.fontSize/6))}else if(yr==="D")he.text=String(Math.round(Math.pow(10,w.mod(hr,1)))),he.fontSize*=.75;else throw"unrecognized dtick "+String(We);if(te.dtick==="D1"){var Xr=String(he.text).charAt(0);(Xr==="0"||Xr==="1")&&(te._id.charAt(0)==="y"?he.dx-=he.fontSize/4:(he.dy+=he.fontSize/2,he.dx+=(te.range[1]>te.range[0]?1:-1)*he.fontSize*(hr<0?.5:.25)))}}function Kt(te,he){var Je=te._categories[Math.round(he.x)];Je===void 0&&(Je=""),he.text=String(Je)}function ne(te,he,Je){var br=Math.round(he.x),pr=te._categories[br]||[],We=pr[1]===void 0?"":String(pr[1]),hr=pr[0]===void 0?"":String(pr[0]);Je?he.text=hr+" - "+We:(he.text=We,he.text2=hr)}function zt(te,he,Je,br,pr){pr==="never"?pr="":te.showexponent==="all"&&Math.abs(he.x/te.dtick)<1e-6&&(pr="hide"),he.text=Lt(he.x,te,pr,br)}function qt(te,he,Je,br,pr){if(te.thetaunit==="radians"&&!Je){var We=he.x/180;if(We===0)he.text="0";else{var hr=Zt(We);if(hr[1]>=100)he.text=Lt(w.deg2rad(he.x),te,pr,br);else{var Ar=he.x<0;hr[1]===1?hr[0]===1?he.text="\u03C0":he.text=hr[0]+"\u03C0":he.text=["<sup>",hr[0],"</sup>","\u2044","<sub>",hr[1],"</sub>","\u03C0"].join(""),Ar&&(he.text=D+he.text)}}}else he.text=Lt(he.x,te,pr,br)}function Zt(te){function he(Ar,yr){return Math.abs(Ar-yr)<=1e-6}function Je(Ar,yr){return he(yr,0)?Ar:Je(yr,Ar%yr)}function br(Ar){for(var yr=1;!he(Math.round(Ar*yr)/yr,Ar);)yr*=10;return yr}var pr=br(te),We=te*pr,hr=Math.abs(Je(We,pr));return[Math.round(We/hr),Math.round(pr/hr)]}var ae=["f","p","n","\u03BC","m","","k","M","G","T"];function vt(te){return te==="SI"||te==="B"}function Mt(te){return te>14||te<-15}function Lt(te,he,Je,br){var pr=te<0,We=he._tickround,hr=Je||he.exponentformat||"B",Ar=he._tickexponent,yr=$.getTickFormat(he),dr=he.separatethousands;if(br){var Rr={exponentformat:hr,minexponent:he.minexponent,dtick:he.showexponent==="none"?he.dtick:C(te)&&Math.abs(te)||1,range:he.showexponent==="none"?he.range.map(he.r2d):[0,te||1]};Le(Rr),We=(Number(Rr._tickround)||0)+4,Ar=Rr._tickexponent,he.hoverformat&&(yr=he.hoverformat)}if(yr)return he._numFormat(yr)(te).replace(/-/g,D);var Qr=Math.pow(10,-We)/2;if(hr==="none"&&(Ar=0),te=Math.abs(te),te<Qr)te="0",pr=!1;else{if(te+=Qr,Ar&&(te*=Math.pow(10,-Ar),We+=Ar),We===0)te=String(Math.floor(te));else if(We<0){te=String(Math.round(te)),te=te.substr(0,te.length+We);for(var Xr=We;Xr<0;Xr++)te+="0"}else{te=String(te);var Dn=te.indexOf(".")+1;Dn&&(te=te.substr(0,Dn+We).replace(/\.?0+$/,""))}te=w.numSeparate(te,he._separators,dr)}if(Ar&&hr!=="hide"){vt(hr)&&Mt(Ar)&&(hr="power");var on;Ar<0?on=D+-Ar:hr!=="power"?on="+"+Ar:on=String(Ar),hr==="e"||hr==="E"?te+=hr+on:hr==="power"?te+="\xD710<sup>"+on+"</sup>":hr==="B"&&Ar===9?te+="B":vt(hr)&&(te+=ae[Ar/3+5])}return pr?D+te:te}$.getTickFormat=function(te){var he;function Je(yr){return typeof yr!="string"?yr:Number(yr.replace("M",""))*T}function br(yr,dr){var Rr=["L","D"];if(typeof yr==typeof dr){if(typeof yr=="number")return yr-dr;var Qr=Rr.indexOf(yr.charAt(0)),Xr=Rr.indexOf(dr.charAt(0));return Qr===Xr?Number(yr.replace(/(L|D)/g,""))-Number(dr.replace(/(L|D)/g,"")):Qr-Xr}else return typeof yr=="number"?1:-1}function pr(yr,dr,Rr){var Qr=Rr,Xr=dr[0],Dn=dr[1];return(!Xr&&typeof Xr!="number"||Qr(Xr)<=Qr(yr))&&(!Dn&&typeof Dn!="number"||Qr(Dn)>=Qr(yr))}function We(yr,dr){var Rr=dr[0]===null,Qr=dr[1]===null,Xr=br(yr,dr[0])>=0,Dn=br(yr,dr[1])<=0;return(Rr||Xr)&&(Qr||Dn)}var hr,Ar;if(te.tickformatstops&&te.tickformatstops.length>0)switch(te.type){case"date":case"linear":{for(he=0;he<te.tickformatstops.length;he++)if(Ar=te.tickformatstops[he],Ar.enabled&&pr(te.dtick,Ar.dtickrange,Je)){hr=Ar;break}break}case"log":{for(he=0;he<te.tickformatstops.length;he++)if(Ar=te.tickformatstops[he],Ar.enabled&&We(te.dtick,Ar.dtickrange)){hr=Ar;break}break}}return hr?hr.value:te.tickformat},$.getSubplots=function(te,he){var Je=te._fullLayout._subplots,br=Je.cartesian.concat(Je.gl2d||[]),pr=he?$.findSubplotsWithAxis(br,he):br;return pr.sort(function(We,hr){var Ar=We.substr(1).split("y"),yr=hr.substr(1).split("y");return Ar[0]===yr[0]?+Ar[1]-+yr[1]:+Ar[0]-+yr[0]}),pr},$.findSubplotsWithAxis=function(te,he){for(var Je=new RegExp(he._id.charAt(0)==="x"?"^"+he._id+"y":he._id+"$"),br=[],pr=0;pr<te.length;pr++){var We=te[pr];Je.test(We)&&br.push(We)}return br},$.makeClipPaths=function(te){var he=te._fullLayout;if(!he._hasOnlyLargeSploms){var Je={_offset:0,_length:he.width,_id:""},br={_offset:0,_length:he.height,_id:""},pr=$.list(te,"x",!0),We=$.list(te,"y",!0),hr=[],Ar,yr;for(Ar=0;Ar<pr.length;Ar++)for(hr.push({x:pr[Ar],y:br}),yr=0;yr<We.length;yr++)Ar===0&&hr.push({x:Je,y:We[yr]}),hr.push({x:pr[Ar],y:We[yr]});var dr=he._clips.selectAll(".axesclip").data(hr,function(Rr){return Rr.x._id+Rr.y._id});dr.enter().append("clipPath").classed("axesclip",!0).attr("id",function(Rr){return"clip"+he._uid+Rr.x._id+Rr.y._id}).append("rect"),dr.exit().remove(),dr.each(function(Rr){M.select(this).select("rect").attr({x:Rr.x._offset||0,y:Rr.y._offset||0,width:Rr.x._length||1,height:Rr.y._length||1})})}},$.draw=function(te,he,Je){var br=te._fullLayout;he==="redraw"&&br._paper.selectAll("g.subplot").each(function(yr){var dr=yr[0],Rr=br._plots[dr];if(Rr){var Qr=Rr.xaxis,Xr=Rr.yaxis;Rr.xaxislayer.selectAll("."+Qr._id+"tick").remove(),Rr.yaxislayer.selectAll("."+Xr._id+"tick").remove(),Rr.xaxislayer.selectAll("."+Qr._id+"tick2").remove(),Rr.yaxislayer.selectAll("."+Xr._id+"tick2").remove(),Rr.xaxislayer.selectAll("."+Qr._id+"divider").remove(),Rr.yaxislayer.selectAll("."+Xr._id+"divider").remove(),Rr.minorGridlayer&&Rr.minorGridlayer.selectAll("path").remove(),Rr.gridlayer&&Rr.gridlayer.selectAll("path").remove(),Rr.zerolinelayer&&Rr.zerolinelayer.selectAll("path").remove(),br._infolayer.select(".g-"+Qr._id+"title").remove(),br._infolayer.select(".g-"+Xr._id+"title").remove()}});var pr=!he||he==="redraw"?$.listIds(te):he,We=$.list(te),hr=We.filter(function(yr){return yr.autoshift}).map(function(yr){return yr.overlaying});pr.map(function(yr){var dr=$.getFromId(te,yr);if(dr.tickmode==="sync"&&dr.overlaying){var Rr=pr.findIndex(function(Qr){return Qr===dr.overlaying});Rr>=0&&pr.unshift(pr.splice(Rr,1).shift())}});var Ar={false:{left:0,right:0}};return w.syncOrAsync(pr.map(function(yr){return function(){if(yr){var dr=$.getFromId(te,yr);Je||(Je={}),Je.axShifts=Ar,Je.overlayingShiftedAx=hr;var Rr=$.drawOne(te,dr,Je);return dr._shiftPusher&&Lr(dr,dr._fullDepth||0,Ar,!0),dr._r=dr.range.slice(),dr._rl=w.simpleMap(dr._r,dr.r2l),Rr}}}))},$.drawOne=function(te,he,Je){Je=Je||{};var br=Je.axShifts||{},pr=Je.overlayingShiftedAx||[],We,hr,Ar;he.setScale();var yr=te._fullLayout,dr=he._id,Rr=dr.charAt(0),Qr=$.counterLetter(dr),Xr=yr._plots[he._mainSubplot];if(!Xr)return;if(he._shiftPusher=he.autoshift||pr.indexOf(he._id)!==-1||pr.indexOf(he.overlaying)!==-1,he._shiftPusher&he.anchor==="free"){var Dn=he.linewidth/2||0;he.ticks==="inside"&&(Dn+=he.ticklen),Lr(he,Dn,br,!0),Lr(he,he.shift||0,br,!1)}(Je.skipTitle!==!0||he._shift===void 0)&&(he._shift=Ur(he,br));var on=Xr[Rr+"axislayer"],Hn=he._mainLinePosition,Fn=Hn+=he._shift,jr=he._mainMirrorPosition,Pr=he._vals=$.calcTicks(he),fn=[he.mirror,Fn,jr].join("_");for(We=0;We<Pr.length;We++)Pr[We].axInfo=fn;he._selections={},he._tickAngles&&(he._prevTickAngles=he._tickAngles),he._tickAngles={},he._depth=null;var nn={};function Rn(si){var ui=dr+(si||"tick");return nn[ui]||(nn[ui]=mr(he,ui,Fn)),nn[ui]}if(he.visible){var On=$.makeTransTickFn(he),vn=$.makeTransTickLabelFn(he),Gn,ii,Wi=he.ticks==="inside",ra=he.ticks==="outside";if(he.tickson==="boundaries"){var vi=ge(he,Pr);ii=$.clipEnds(he,vi),Gn=Wi?ii:vi}else ii=$.clipEnds(he,Pr),Gn=Wi&&he.ticklabelmode!=="period"?ii:Pr;var Oi=he._gridVals=ii,mi=sr(he,Pr);if(!yr._hasOnlyLargeSploms){var $r=he._subplotsWith,Tn={};for(We=0;We<$r.length;We++){hr=$r[We],Ar=yr._plots[hr];var Pn=Ar[Qr+"axis"],En=Pn._mainAxis._id;if(!Tn[En]){Tn[En]=1;var li=Rr==="x"?"M0,"+Pn._offset+"v"+Pn._length:"M"+Pn._offset+",0h"+Pn._length;$.drawGrid(te,he,{vals:Oi,counterAxis:Pn,layer:Ar.gridlayer.select("."+dr),minorLayer:Ar.minorGridlayer.select("."+dr),path:li,transFn:On}),$.drawZeroLine(te,he,{counterAxis:Pn,layer:Ar.zerolinelayer,path:li,transFn:On})}}}var Cn,ci=$.getTickSigns(he),gi=$.getTickSigns(he,"minor");if(he.ticks||he.minor&&he.minor.ticks){var Bi=$.makeTickPath(he,Fn,ci[2]),Qi=$.makeTickPath(he,Fn,gi[2],{minor:!0}),Ma,qr,cn,Gr;if(he._anchorAxis&&he.mirror&&he.mirror!==!0?(Ma=$.makeTickPath(he,jr,ci[3]),qr=$.makeTickPath(he,jr,gi[3],{minor:!0}),cn=Bi+Ma,Gr=Qi+qr):(Ma="",qr="",cn=Bi,Gr=Qi),he.showdividers&&ra&&he.tickson==="boundaries"){var sn={};for(We=0;We<mi.length;We++)sn[mi[We].x]=1;Cn=function(si){return sn[si.x]?Ma:cn}}else Cn=function(si){return si.minor?Gr:cn}}if($.drawTicks(te,he,{vals:Gn,layer:on,path:Cn,transFn:On}),he.mirror==="allticks"){var $n=Object.keys(he._linepositions||{});for(We=0;We<$n.length;We++){hr=$n[We],Ar=yr._plots[hr];var hi=he._linepositions[hr]||[],Wn=hi[0],Zn=hi[1],Yr=hi[2],xn=$.makeTickPath(he,Wn,Yr?ci[0]:gi[0],{minor:Yr})+$.makeTickPath(he,Zn,Yr?ci[1]:gi[1],{minor:Yr});$.drawTicks(te,he,{vals:Gn,layer:Ar[Rr+"axislayer"],path:xn,transFn:On})}}var dn=[];if(dn.push(function(){return $.drawLabels(te,he,{vals:Pr,layer:on,plotinfo:Ar,transFn:vn,labelFns:$.makeLabelFns(he,Fn)})}),he.type==="multicategory"){var An={x:2,y:10}[Rr];dn.push(function(){var si={x:"height",y:"width"}[Rr],ui=Rn()[si]+An+(he._tickAngles[dr+"tick"]?he.tickfont.size*ut:0);return $.drawLabels(te,he,{vals:de(he,Pr),layer:on,cls:dr+"tick2",repositionOnUpdate:!0,secondary:!0,transFn:On,labelFns:$.makeLabelFns(he,Fn+ui*ci[4])})}),dn.push(function(){return he._depth=ci[4]*(Rn("tick2")[he.side]-Fn),Te(te,he,{vals:mi,layer:on,path:$.makeTickPath(he,Fn,ci[4],{len:he._depth}),transFn:On})})}else he.title.hasOwnProperty("standoff")&&dn.push(function(){he._depth=ci[4]*(Rn()[he.side]-Fn)});var oi=i.getComponentMethod("rangeslider","isVisible")(he);return!Je.skipTitle&&!(oi&&he.side==="bottom")&&dn.push(function(){return Ee(te,he)}),dn.push(function(){var si=he.side.charAt(0),ui=lt[he.side].charAt(0),yi=$.getPxPosition(te,he),di=ra?he.ticklen:0,Li,Ri,Yi,_a;(he.automargin||oi||he._shiftPusher)&&(he.type==="multicategory"?Li=Rn("tick2"):(Li=Rn(),Rr==="x"&&si==="b"&&(he._depth=Math.max(Li.width>0?Li.bottom-yi:0,di))));var Lo=0,lo=0;if(he._shiftPusher&&(Lo=Math.max(di,Li.height>0?si==="l"?yi-Li.left:Li.right-yi:0),he.title.text!==yr._dfltTitle[Rr]&&(lo=(he._titleStandoff||0)+(he._titleScoot||0),si==="l"&&(lo+=Yt(he))),he._fullDepth=Math.max(Lo,lo)),he.automargin){Ri={x:0,y:0,r:0,l:0,t:0,b:0};var Ts=[0,1],Ds=typeof he._shift=="number"?he._shift:0;if(Rr==="x"){if(si==="b"?Ri[si]=he._depth:(Ri[si]=he._depth=Math.max(Li.width>0?yi-Li.top:0,di),Ts.reverse()),Li.width>0){var ro=Li.right-(he._offset+he._length);ro>0&&(Ri.xr=1,Ri.r=ro);var Fl=he._offset-Li.left;Fl>0&&(Ri.xl=0,Ri.l=Fl)}}else if(si==="l"?(he._depth=Math.max(Li.height>0?yi-Li.left:0,di),Ri[si]=he._depth-Ds):(he._depth=Math.max(Li.height>0?Li.right-yi:0,di),Ri[si]=he._depth+Ds,Ts.reverse()),Li.height>0){var Ec=Li.bottom-(he._offset+he._length);Ec>0&&(Ri.yb=0,Ri.b=Ec);var Fs=he._offset-Li.top;Fs>0&&(Ri.yt=1,Ri.t=Fs)}Ri[Qr]=he.anchor==="free"?he.position:he._anchorAxis.domain[Ts[0]],he.title.text!==yr._dfltTitle[Rr]&&(Ri[si]+=Yt(he)+(he.title.standoff||0)),he.mirror&&he.anchor!=="free"&&(Yi={x:0,y:0,r:0,l:0,t:0,b:0},Yi[ui]=he.linewidth,he.mirror&&he.mirror!==!0&&(Yi[ui]+=di),he.mirror===!0||he.mirror==="ticks"?Yi[Qr]=he._anchorAxis.domain[Ts[1]]:(he.mirror==="all"||he.mirror==="allticks")&&(Yi[Qr]=[he._counterDomainMin,he._counterDomainMax][Ts[1]]))}oi&&(_a=i.getComponentMethod("rangeslider","autoMarginOpts")(te,he)),typeof he.automargin=="string"&&($t(Ri,he.automargin),$t(Yi,he.automargin)),r.autoMargin(te,ue(he),Ri),r.autoMargin(te,Se(he),Yi),r.autoMargin(te,De(he),_a)}),w.syncOrAsync(dn)}};function $t(te,he){if(te){var Je=Object.keys(G).reduce(function(br,pr){return he.indexOf(pr)!==-1&&G[pr].forEach(function(We){br[We]=1}),br},{});Object.keys(te).forEach(function(br){Je[br]||(br.length===1?te[br]=0:delete te[br])})}}function ge(te,he){var Je=[],br,pr=function(We,hr){var Ar=We.xbnd[hr];Ar!==null&&Je.push(w.extendFlat({},We,{x:Ar}))};if(he.length){for(br=0;br<he.length;br++)pr(he[br],0);pr(he[br-1],1)}return Je}function de(te,he){for(var Je=[],br={},pr=0;pr<he.length;pr++){var We=he[pr];br[We.text2]?br[We.text2].push(We.x):br[We.text2]=[We.x]}for(var hr in br)Je.push(Ie(te,w.interp(br[hr],.5),hr));return Je}function sr(te,he){var Je=[],br,pr,We=he.length&&he[he.length-1].x<he[0].x,hr=function(yr,dr){var Rr=yr.xbnd[dr];Rr!==null&&Je.push(w.extendFlat({},yr,{x:Rr}))};if(te.showdividers&&he.length){for(br=0;br<he.length;br++){var Ar=he[br];Ar.text2!==pr&&hr(Ar,We?1:0),pr=Ar.text2}hr(he[br-1],We?0:1)}return Je}function mr(te,he,Je){var br,pr,We,hr;if(te._selections[he].size())br=1/0,pr=-1/0,We=1/0,hr=-1/0,te._selections[he].each(function(){var yr=Jt(this),dr=n.bBox(yr.node().parentNode);br=Math.min(br,dr.top),pr=Math.max(pr,dr.bottom),We=Math.min(We,dr.left),hr=Math.max(hr,dr.right)});else{var Ar=$.makeLabelFns(te,Je);br=pr=Ar.yFn({dx:0,dy:0,fontSize:0}),We=hr=Ar.xFn({dx:0,dy:0,fontSize:0})}return{top:br,bottom:pr,left:We,right:hr,height:pr-br,width:hr-We}}$.getTickSigns=function(te,he){var Je=te._id.charAt(0),br={x:"top",y:"right"}[Je],pr=te.side===br?1:-1,We=[-1,1,pr,-pr],hr=he?(te.minor||{}).ticks:te.ticks;return hr!=="inside"==(Je==="x")&&(We=We.map(function(Ar){return-Ar})),te.side&&We.push({l:-1,t:-1,r:1,b:1}[te.side.charAt(0)]),We},$.makeTransTickFn=function(te){return te._id.charAt(0)==="x"?function(he){return S(te._offset+te.l2p(he.x),0)}:function(he){return S(0,te._offset+te.l2p(he.x))}},$.makeTransTickLabelFn=function(te){var he=le(te),Je=te.ticklabelshift||0,br=te.ticklabelstandoff||0,pr=he[0],We=he[1],hr=te.range[0]>te.range[1],Ar=te.ticklabelposition&&te.ticklabelposition.indexOf("inside")!==-1,yr=!Ar;if(Je){var dr=hr?-1:1;Je=Je*dr}if(br){var Rr=te.side,Qr=Ar&&(Rr==="top"||Rr==="left")||yr&&(Rr==="bottom"||Rr==="right")?1:-1;br=br*Qr}return te._id.charAt(0)==="x"?function(Xr){return S(pr+te._offset+te.l2p(Ve(Xr))+Je,We+br)}:function(Xr){return S(We+br,pr+te._offset+te.l2p(Ve(Xr))+Je)}};function Ve(te){return te.periodX!==void 0?te.periodX:te.x}function le(te){var he=te.ticklabelposition||"",Je=function(Dn){return he.indexOf(Dn)!==-1},br=Je("top"),pr=Je("left"),We=Je("right"),hr=Je("bottom"),Ar=Je("inside"),yr=hr||pr||br||We;if(!yr&&!Ar)return[0,0];var dr=te.side,Rr=yr?(te.tickwidth||0)/2:0,Qr=K,Xr=te.tickfont?te.tickfont.size:12;return(hr||br)&&(Rr+=Xr*ft,Qr+=(te.linewidth||0)/2),(pr||We)&&(Rr+=(te.linewidth||0)/2,Qr+=K),Ar&&dr==="top"&&(Qr-=Xr*(1-ft)),(pr||br)&&(Rr=-Rr),(dr==="bottom"||dr==="right")&&(Qr=-Qr),[yr?Rr:0,Ar?Qr:0]}$.makeTickPath=function(te,he,Je,br){br||(br={});var pr=br.minor;if(pr&&!te.minor)return"";var We=br.len!==void 0?br.len:pr?te.minor.ticklen:te.ticklen,hr=te._id.charAt(0),Ar=(te.linewidth||1)/2;return hr==="x"?"M0,"+(he+Ar*Je)+"v"+We*Je:"M"+(he+Ar*Je)+",0h"+We*Je},$.makeLabelFns=function(te,he,Je){var br=te.ticklabelposition||"",pr=function(vi){return br.indexOf(vi)!==-1},We=pr("top"),hr=pr("left"),Ar=pr("right"),yr=pr("bottom"),dr=yr||hr||We||Ar,Rr=pr("inside"),Qr=br==="inside"&&te.ticks==="inside"||!Rr&&te.ticks==="outside"&&te.tickson!=="boundaries",Xr=0,Dn=0,on=Qr?te.ticklen:0;if(Rr?on*=-1:dr&&(on=0),Qr&&(Xr+=on,Je)){var Hn=w.deg2rad(Je);Xr=on*Math.cos(Hn)+1,Dn=on*Math.sin(Hn)}te.showticklabels&&(Qr||te.showline)&&(Xr+=.2*te.tickfont.size),Xr+=(te.linewidth||1)/2*(Rr?-1:1);var Fn={labelStandoff:Xr,labelShift:Dn},jr,Pr,fn,nn,Rn=0,On=te.side,vn=te._id.charAt(0),Gn=te.tickangle,ii;if(vn==="x")ii=!Rr&&On==="bottom"||Rr&&On==="top",nn=ii?1:-1,Rr&&(nn*=-1),jr=Dn*nn,Pr=he+Xr*nn,fn=ii?1:-.2,Math.abs(Gn)===90&&(Rr?fn+=Q:Gn===-90&&On==="bottom"?fn=ft:Gn===90&&On==="top"?fn=Q:fn=.5,Rn=Q/2*(Gn/90)),Fn.xFn=function(vi){return vi.dx+jr+Rn*vi.fontSize},Fn.yFn=function(vi){return vi.dy+Pr+vi.fontSize*fn},Fn.anchorFn=function(vi,Oi){if(dr){if(hr)return"end";if(Ar)return"start"}return!C(Oi)||Oi===0||Oi===180?"middle":Oi*nn<0!==Rr?"end":"start"},Fn.heightFn=function(vi,Oi,mi){return Oi<-60||Oi>60?-.5*mi:te.side==="top"!==Rr?-mi:0};else if(vn==="y"){if(ii=!Rr&&On==="left"||Rr&&On==="right",nn=ii?1:-1,Rr&&(nn*=-1),jr=Xr,Pr=Dn*nn,fn=0,!Rr&&Math.abs(Gn)===90&&(Gn===-90&&On==="left"||Gn===90&&On==="right"?fn=ft:fn=.5),Rr){var Wi=C(Gn)?+Gn:0;if(Wi!==0){var ra=w.deg2rad(Wi);Rn=Math.abs(Math.sin(ra))*ft*nn,fn=0}}Fn.xFn=function(vi){return vi.dx+he-(jr+vi.fontSize*fn)*nn+Rn*vi.fontSize},Fn.yFn=function(vi){return vi.dy+Pr+vi.fontSize*Q},Fn.anchorFn=function(vi,Oi){return C(Oi)&&Math.abs(Oi)===90?"middle":ii?"end":"start"},Fn.heightFn=function(vi,Oi,mi){return te.side==="right"&&(Oi*=-1),Oi<-30?-mi:Oi<30?-.5*mi:0}}return Fn};function pe(te){return[te.text,te.x,te.axInfo,te.font,te.fontSize,te.fontColor].join("_")}$.drawTicks=function(te,he,Je){Je=Je||{};var br=he._id+"tick",pr=[].concat(he.minor&&he.minor.ticks?Je.vals.filter(function(hr){return hr.minor&&!hr.noTick}):[]).concat(he.ticks?Je.vals.filter(function(hr){return!hr.minor&&!hr.noTick}):[]),We=Je.layer.selectAll("path."+br).data(pr,pe);We.exit().remove(),We.enter().append("path").classed(br,1).classed("ticks",1).classed("crisp",Je.crisp!==!1).each(function(hr){return t.stroke(M.select(this),hr.minor?he.minor.tickcolor:he.tickcolor)}).style("stroke-width",function(hr){return n.crispRound(te,hr.minor?he.minor.tickwidth:he.tickwidth,1)+"px"}).attr("d",Je.path).style("display",null),Er(he,[F]),We.attr("transform",Je.transFn)},$.drawGrid=function(te,he,Je){if(Je=Je||{},he.tickmode!=="sync"){var br=he._id+"grid",pr=he.minor&&he.minor.showgrid,We=pr?Je.vals.filter(function(jr){return jr.minor}):[],hr=he.showgrid?Je.vals.filter(function(jr){return!jr.minor}):[],Ar=Je.counterAxis;if(Ar&&$.shouldShowZeroLine(te,he,Ar))for(var yr=he.tickmode==="array",dr=0;dr<hr.length;dr++){var Rr=hr[dr].x;if(yr?!Rr:Math.abs(Rr)<he.dtick/100)if(hr=hr.slice(0,dr).concat(hr.slice(dr+1)),yr)dr--;else break}he._gw=n.crispRound(te,he.gridwidth,1);for(var Qr=pr?n.crispRound(te,he.minor.gridwidth,1):0,Xr=Je.layer,Dn=Je.minorLayer,on=1;on>=0;on--){var Hn=on?Xr:Dn;if(Hn){var Fn=Hn.selectAll("path."+br).data(on?hr:We,pe);Fn.exit().remove(),Fn.enter().append("path").classed(br,1).classed("crisp",Je.crisp!==!1),Fn.attr("transform",Je.transFn).attr("d",Je.path).each(function(jr){return t.stroke(M.select(this),jr.minor?he.minor.gridcolor:he.gridcolor||"#ddd")}).style("stroke-dasharray",function(jr){return n.dashStyle(jr.minor?he.minor.griddash:he.griddash,jr.minor?he.minor.gridwidth:he.gridwidth)}).style("stroke-width",function(jr){return(jr.minor?Qr:he._gw)+"px"}).style("display",null),typeof Je.path=="function"&&Fn.attr("d",Je.path)}}Er(he,[V,N])}},$.drawZeroLine=function(te,he,Je){Je=Je||Je;var br=he._id+"zl",pr=$.shouldShowZeroLine(te,he,Je.counterAxis),We=Je.layer.selectAll("path."+br).data(pr?[{x:0,id:he._id}]:[]);We.exit().remove(),We.enter().append("path").classed(br,1).classed("zl",1).classed("crisp",Je.crisp!==!1).each(function(){Je.layer.selectAll("path").sort(function(hr,Ar){return ct(hr.id,Ar.id)})}),We.attr("transform",Je.transFn).attr("d",Je.path).call(t.stroke,he.zerolinecolor||t.defaultLine).style("stroke-width",n.crispRound(te,he.zerolinewidth,he._gw||1)+"px").style("display",null),Er(he,[I])},$.drawLabels=function(te,he,Je){Je=Je||{};var br=te._fullLayout,pr=he._id,We=Je.cls||pr+"tick",hr=Je.vals.filter(function(En){return En.text}),Ar=Je.labelFns,yr=Je.secondary?0:he.tickangle,dr=(he._prevTickAngles||{})[We],Rr=Je.layer.selectAll("g."+We).data(he.showticklabels?hr:[],pe),Qr=[];Rr.enter().append("g").classed(We,1).append("text").attr("text-anchor","middle").each(function(En){var li=M.select(this),Cn=te._promises.length;li.call(h.positionText,Ar.xFn(En),Ar.yFn(En)).call(n.font,{family:En.font,size:En.fontSize,color:En.fontColor,weight:En.fontWeight,style:En.fontStyle,variant:En.fontVariant,textcase:En.fontTextcase,lineposition:En.fontLineposition,shadow:En.fontShadow}).text(En.text).call(h.convertToTspans,te),te._promises[Cn]?Qr.push(te._promises.pop().then(function(){Xr(li,yr)})):Xr(li,yr)}),Er(he,[U]),Rr.exit().remove(),Je.repositionOnUpdate&&Rr.each(function(En){M.select(this).select("text").call(h.positionText,Ar.xFn(En),Ar.yFn(En))});function Xr(En,li){En.each(function(Cn){var ci=M.select(this),gi=ci.select(".text-math-group"),Bi=Ar.anchorFn(Cn,li),Qi=Je.transFn.call(ci.node(),Cn)+(C(li)&&+li!=0?" rotate("+li+","+Ar.xFn(Cn)+","+(Ar.yFn(Cn)-Cn.fontSize/2)+")":""),Ma=h.lineCount(ci),qr=ut*Cn.fontSize,cn=Ar.heightFn(Cn,C(li)?+li:0,(Ma-1)*qr);if(cn&&(Qi+=S(0,cn)),gi.empty()){var Gr=ci.select("text");Gr.attr({transform:Qi,"text-anchor":Bi}),Gr.style("opacity",1),he._adjustTickLabelsOverflow&&he._adjustTickLabelsOverflow()}else{var sn=n.bBox(gi.node()).width,$n=sn*{end:-.5,start:.5}[Bi];gi.attr("transform",Qi+S($n,0))}})}he._adjustTickLabelsOverflow=function(){var En=he.ticklabeloverflow;if(!(!En||En==="allow")){var li=En.indexOf("hide")!==-1,Cn=he._id.charAt(0)==="x",ci=0,gi=Cn?te._fullLayout.width:te._fullLayout.height;if(En.indexOf("domain")!==-1){var Bi=w.simpleMap(he.range,he.r2l);ci=he.l2p(Bi[0])+he._offset,gi=he.l2p(Bi[1])+he._offset}var Qi=Math.min(ci,gi),Ma=Math.max(ci,gi),qr=he.side,cn=1/0,Gr=-1/0;Rr.each(function(Wn){var Zn=M.select(this),Yr=Zn.select(".text-math-group");if(Yr.empty()){var xn=n.bBox(Zn.node()),dn=0;Cn?(xn.right>Ma||xn.left<Qi)&&(dn=1):(xn.bottom>Ma||xn.top+(he.tickangle?0:Wn.fontSize/4)<Qi)&&(dn=1);var An=Zn.select("text");dn?li&&An.style("opacity",0):(An.style("opacity",1),qr==="bottom"||qr==="right"?cn=Math.min(cn,Cn?xn.top:xn.left):cn=-1/0,qr==="top"||qr==="left"?Gr=Math.max(Gr,Cn?xn.bottom:xn.right):Gr=1/0)}});for(var sn in br._plots){var $n=br._plots[sn];if(!(he._id!==$n.xaxis._id&&he._id!==$n.yaxis._id)){var hi=Cn?$n.yaxis:$n.xaxis;hi&&(hi["_visibleLabelMin_"+he._id]=cn,hi["_visibleLabelMax_"+he._id]=Gr)}}}},he._hideCounterAxisInsideTickLabels=function(En){var li=he._id.charAt(0)==="x",Cn=[];for(var ci in br._plots){var gi=br._plots[ci];he._id!==gi.xaxis._id&&he._id!==gi.yaxis._id||Cn.push(li?gi.yaxis:gi.xaxis)}Cn.forEach(function(Bi,Qi){Bi&&Cr(Bi)&&(En||[I,N,V,F,U]).forEach(function(Ma){var qr=Ma.K==="tick"&&Ma.L==="text"&&he.ticklabelmode==="period",cn=br._plots[he._mainSubplot],Gr;Ma.K===I.K?Gr=cn.zerolinelayer.selectAll("."+he._id+"zl"):Ma.K===N.K?Gr=cn.minorGridlayer.selectAll("."+he._id):Ma.K===V.K?Gr=cn.gridlayer.selectAll("."+he._id):Gr=cn[he._id.charAt(0)+"axislayer"],Gr.each(function(){var sn=M.select(this);Ma.L&&(sn=sn.selectAll(Ma.L)),sn.each(function($n){var hi=he.l2p(qr?Ve($n):$n.x)+he._offset,Wn=M.select(this);hi<he["_visibleLabelMax_"+Bi._id]&&hi>he["_visibleLabelMin_"+Bi._id]?Wn.style("display","none"):Ma.K==="tick"&&!Qi&&Wn.style("display",null)})})})})},Xr(Rr,dr+1?dr:yr);function Dn(){return Qr.length&&Promise.all(Qr)}var on=null;function Hn(){if(Xr(Rr,yr),hr.length&&he.autotickangles&&(he.type!=="log"||String(he.dtick).charAt(0)!=="D")){on=he.autotickangles[0];var En=0,li=[],Cn,ci=1;Rr.each(function(Li){En=Math.max(En,Li.fontSize);var Ri=he.l2p(Li.x),Yi=Jt(this),_a=n.bBox(Yi.node());ci=Math.max(ci,h.lineCount(Yi)),li.push({top:0,bottom:10,height:10,left:Ri-_a.width/2,right:Ri+_a.width/2+2,width:_a.width+2})});var gi=(he.tickson==="boundaries"||he.showdividers)&&!Je.secondary,Bi=hr.length,Qi=Math.abs((hr[Bi-1].x-hr[0].x)*he._m)/(Bi-1),Ma=gi?Qi/2:Qi,qr=gi?he.ticklen:En*1.25*ci,cn=Math.sqrt(Math.pow(Ma,2)+Math.pow(qr,2)),Gr=Ma/cn,sn=he.autotickangles.map(function(Li){return Li*Math.PI/180}),$n=sn.find(function(Li){return Math.abs(Math.cos(Li))<=Gr});$n===void 0&&($n=sn.reduce(function(Li,Ri){return Math.abs(Math.cos(Li))<Math.abs(Math.cos(Ri))?Li:Ri},sn[0]));var hi=$n*(180/Math.PI);if(gi){var Wn=2;for(he.ticks&&(Wn+=he.tickwidth/2),Cn=0;Cn<li.length;Cn++){var Zn=hr[Cn].xbnd,Yr=li[Cn];if(Zn[0]!==null&&Yr.left-he.l2p(Zn[0])<Wn||Zn[1]!==null&&he.l2p(Zn[1])-Yr.right<Wn){on=hi;break}}}else{var xn=he.ticklabelposition||"",dn=function(Li){return xn.indexOf(Li)!==-1},An=dn("top"),oi=dn("left"),si=dn("right"),ui=dn("bottom"),yi=ui||oi||An||si,di=yi?(he.tickwidth||0)+2*K:0;for(Cn=0;Cn<li.length-1;Cn++)if(w.bBoxIntersect(li[Cn],li[Cn+1],di)){on=hi;break}}on&&Xr(Rr,on)}}he._selections&&(he._selections[We]=Rr);var Fn=[Dn];he.automargin&&br._redrawFromAutoMarginCount&&dr===90?(on=dr,Fn.push(function(){Xr(Rr,dr)})):Fn.push(Hn),he._tickAngles&&Fn.push(function(){he._tickAngles[We]=on===null?C(yr)?yr:0:on});var jr=function(){var En=0,li=0;return Rr.each(function(Cn,ci){var gi=Jt(this),Bi=gi.select(".text-math-group");if(Bi.empty()){var Qi;he._vals[ci]&&(Qi=he._vals[ci].bb||n.bBox(gi.node()),he._vals[ci].bb=Qi),En=Math.max(En,Qi.width),li=Math.max(li,Qi.height)}}),{labelsMaxW:En,labelsMaxH:li}},Pr=he._anchorAxis;if(Pr&&(Pr.autorange||Pr.insiderange)&&Cr(he)&&!et(br,he._id)&&(br._insideTickLabelsUpdaterange||(br._insideTickLabelsUpdaterange={}),Pr.autorange&&(br._insideTickLabelsUpdaterange[Pr._name+".autorange"]=Pr.autorange,Fn.push(jr)),Pr.insiderange)){var fn=jr(),nn=he._id.charAt(0)==="y"?fn.labelsMaxW:fn.labelsMaxH;nn+=2*K,he.ticklabelposition==="inside"&&(nn+=he.ticklen||0);var Rn=he.side==="right"||he.side==="top"?1:-1,On=Rn===1?1:0,vn=Rn===1?0:1,Gn=[];Gn[vn]=Pr.range[vn];var ii=Pr.range,Wi=Pr.r2p(ii[On]),ra=Pr.r2p(ii[vn]),vi=br._insideTickLabelsUpdaterange[Pr._name+".range"];if(vi){var Oi=Pr.r2p(vi[On]),mi=Pr.r2p(vi[vn]),$r=Rn*(he._id.charAt(0)==="y"?1:-1);$r*Wi<$r*Oi&&(Wi=Oi,Gn[On]=ii[On]=vi[On]),$r*ra>$r*mi&&(ra=mi,Gn[vn]=ii[vn]=vi[vn])}var Tn=Math.abs(ra-Wi);Tn-nn>0?(Tn-=nn,nn*=1+nn/Tn):nn=0,he._id.charAt(0)!=="y"&&(nn=-nn),Gn[On]=Pr.p2r(Pr.r2p(ii[On])+Rn*nn),Pr.autorange==="min"||Pr.autorange==="max reversed"?(Gn[0]=null,Pr._rangeInitial0=void 0,Pr._rangeInitial1=void 0):(Pr.autorange==="max"||Pr.autorange==="min reversed")&&(Gn[1]=null,Pr._rangeInitial0=void 0,Pr._rangeInitial1=void 0),br._insideTickLabelsUpdaterange[Pr._name+".range"]=Gn}var Pn=w.syncOrAsync(Fn);return Pn&&Pn.then&&te._promises.push(Pn),Pn};function Te(te,he,Je){var br=he._id+"divider",pr=Je.vals,We=Je.layer.selectAll("path."+br).data(pr,pe);We.exit().remove(),We.enter().insert("path",":first-child").classed(br,1).classed("crisp",1).call(t.stroke,he.dividercolor).style("stroke-width",n.crispRound(te,he.dividerwidth,1)+"px"),We.attr("transform",Je.transFn).attr("d",Je.path)}$.getPxPosition=function(te,he){var Je=te._fullLayout._size,br=he._id.charAt(0),pr=he.side,We;if(he.anchor!=="free"?We=he._anchorAxis:br==="x"?We={_offset:Je.t+(1-(he.position||0))*Je.h,_length:0}:br==="y"&&(We={_offset:Je.l+(he.position||0)*Je.w+he._shift,_length:0}),pr==="top"||pr==="left")return We._offset;if(pr==="bottom"||pr==="right")return We._offset+We._length};function Yt(te){var he=te.title.font.size,Je=(te.title.text.match(h.BR_TAG_ALL)||[]).length;return te.title.hasOwnProperty("standoff")?he*(ft+Je*ut):Je?he*(Je+1)*ut:he}function Ee(te,he){var Je=te._fullLayout,br=he._id,pr=br.charAt(0),We=he.title.font.size,hr,Ar=(he.title.text.match(h.BR_TAG_ALL)||[]).length;if(he.title.hasOwnProperty("standoff"))he.side==="bottom"||he.side==="right"?hr=he._depth+he.title.standoff+We*ft:(he.side==="top"||he.side==="left")&&(hr=he._depth+he.title.standoff+We*(Q+Ar*ut));else{var yr=Cr(he);if(he.type==="multicategory")hr=he._depth;else{var dr=1.5*We;yr&&(dr=.5*We,he.ticks==="outside"&&(dr+=he.ticklen)),hr=10+dr+(he.linewidth?he.linewidth-1:0)}yr||(pr==="x"?hr+=he.side==="top"?We*(he.showticklabels?1:0):We*(he.showticklabels?1.5:.5):hr+=he.side==="right"?We*(he.showticklabels?1:.5):We*(he.showticklabels?.5:0))}var Rr=$.getPxPosition(te,he),Qr,Xr,Dn;pr==="x"?(Xr=he._offset+he._length/2,Dn=he.side==="top"?Rr-hr:Rr+hr):(Dn=he._offset+he._length/2,Xr=he.side==="right"?Rr+hr:Rr-hr,Qr={rotate:"-90",offset:0});var on;if(he.type!=="multicategory"){var Hn=he._selections[he._id+"tick"];if(on={selection:Hn,side:he.side},Hn&&Hn.node()&&Hn.node().parentNode){var Fn=n.getTranslate(Hn.node().parentNode);on.offsetLeft=Fn.x,on.offsetTop=Fn.y}he.title.hasOwnProperty("standoff")&&(on.pad=0)}return he._titleStandoff=hr,l.draw(te,br+"title",{propContainer:he,propName:he._name+".title.text",placeholder:Je._dfltTitle[pr],avoid:on,transform:Qr,attributes:{x:Xr,y:Dn,"text-anchor":"middle"}})}$.shouldShowZeroLine=function(te,he,Je){var br=w.simpleMap(he.range,he.r2l);return br[0]*br[1]<=0&&he.zeroline&&(he.type==="linear"||he.type==="-")&&!(he.rangebreaks&&he.maskBreaks(0)===B)&&(Ne(he,0)||!ar(te,he,Je,br)||Ye(te,he))},$.clipEnds=function(te,he){return he.filter(function(Je){return Ne(te,Je.x)})};function Ne(te,he){var Je=te.l2p(he);return Je>1&&Je<te._length-1}function ar(te,he,Je,br){var pr=Je._mainAxis;if(!pr)return;var We=te._fullLayout,hr=he._id.charAt(0),Ar=$.counterLetter(he._id),yr=he._offset+(Math.abs(br[0])<Math.abs(br[1])==(hr==="x")?0:he._length);function dr(on){if(!on.showline||!on.linewidth)return!1;var Hn=Math.max((on.linewidth+he.zerolinewidth)/2,1);function Fn(fn){return typeof fn=="number"&&Math.abs(fn-yr)<Hn}if(Fn(on._mainLinePosition)||Fn(on._mainMirrorPosition))return!0;var jr=on._linepositions||{};for(var Pr in jr)if(Fn(jr[Pr][0])||Fn(jr[Pr][1]))return!0}var Rr=We._plots[Je._mainSubplot];if(!(Rr.mainplotinfo||Rr).overlays.length)return dr(Je);for(var Qr=$.list(te,Ar),Xr=0;Xr<Qr.length;Xr++){var Dn=Qr[Xr];if(Dn._mainAxis===pr&&dr(Dn))return!0}}function Ye(te,he){for(var Je=te._fullData,br=he._mainSubplot,pr=he._id.charAt(0),We=0;We<Je.length;We++){var hr=Je[We];if(hr.visible===!0&&hr.xaxis+hr.yaxis===br&&(i.traceIs(hr,"bar-like")&&hr.orientation==={x:"h",y:"v"}[pr]||hr.fill&&hr.fill.charAt(hr.fill.length-1)===pr))return!0}return!1}function Jt(te){var he=M.select(te),Je=he.select(".text-math-group");return Je.empty()?he.select("text"):Je}$.allowAutoMargin=function(te){for(var he=$.list(te,"",!0),Je=0;Je<he.length;Je++){var br=he[Je];br.automargin&&(r.allowAutoMargin(te,ue(br)),br.mirror&&r.allowAutoMargin(te,Se(br))),i.getComponentMethod("rangeslider","isVisible")(br)&&r.allowAutoMargin(te,De(br))}};function ue(te){return te._id+".automargin"}function Se(te){return ue(te)+".mirror"}function De(te){return te._id+".rangeslider"}$.swap=function(te,he){for(var Je=Ze(te,he),br=0;br<Je.length;br++)Ke(te,Je[br].x,Je[br].y)};function Ze(te,he){var Je=[],br,pr;for(br=0;br<he.length;br++){var We=[],hr=te._fullData[he[br]].xaxis,Ar=te._fullData[he[br]].yaxis;if(!(!hr||!Ar)){for(pr=0;pr<Je.length;pr++)(Je[pr].x.indexOf(hr)!==-1||Je[pr].y.indexOf(Ar)!==-1)&&We.push(pr);if(!We.length){Je.push({x:[hr],y:[Ar]});continue}var yr=Je[We[0]],dr;if(We.length>1)for(pr=1;pr<We.length;pr++)dr=Je[We[pr]],nr(yr.x,dr.x),nr(yr.y,dr.y);nr(yr.x,[hr]),nr(yr.y,[Ar])}}return Je}function nr(te,he){for(var Je=0;Je<he.length;Je++)te.indexOf(he[Je])===-1&&te.push(he[Je])}function Ke(te,he,Je){var br=[],pr=[],We=te.layout,hr,Ar;for(hr=0;hr<he.length;hr++)br.push($.getFromId(te,he[hr]));for(hr=0;hr<Je.length;hr++)pr.push($.getFromId(te,Je[hr]));var yr=Object.keys(o),dr=["anchor","domain","overlaying","position","side","tickangle","editType"],Rr=["linear","log"];for(hr=0;hr<yr.length;hr++){var Qr=yr[hr],Xr=br[0][Qr],Dn=pr[0][Qr],on=!0,Hn=!1,Fn=!1;if(!(Qr.charAt(0)==="_"||typeof Xr=="function"||dr.indexOf(Qr)!==-1)){for(Ar=1;Ar<br.length&&on;Ar++){var jr=br[Ar][Qr];Qr==="type"&&Rr.indexOf(Xr)!==-1&&Rr.indexOf(jr)!==-1&&Xr!==jr?Hn=!0:jr!==Xr&&(on=!1)}for(Ar=1;Ar<pr.length&&on;Ar++){var Pr=pr[Ar][Qr];Qr==="type"&&Rr.indexOf(Dn)!==-1&&Rr.indexOf(Pr)!==-1&&Dn!==Pr?Fn=!0:pr[Ar][Qr]!==Dn&&(on=!1)}on&&(Hn&&(We[br[0]._name].type="linear"),Fn&&(We[pr[0]._name].type="linear"),er(We,Qr,br,pr,te._fullLayout._dfltTitle))}}for(hr=0;hr<te._fullLayout.annotations.length;hr++){var fn=te._fullLayout.annotations[hr];he.indexOf(fn.xref)!==-1&&Je.indexOf(fn.yref)!==-1&&w.swapAttrs(We.annotations[hr],["?"])}}function er(te,he,Je,br,pr){var We=w.nestedProperty,hr=We(te[Je[0]._name],he).get(),Ar=We(te[br[0]._name],he).get(),yr;for(he==="title"&&(hr&&hr.text===pr.x&&(hr.text=pr.y),Ar&&Ar.text===pr.y&&(Ar.text=pr.x)),yr=0;yr<Je.length;yr++)We(te,Je[yr]._name+"."+he).set(Ar);for(yr=0;yr<br.length;yr++)We(te,br[yr]._name+"."+he).set(hr)}function xr(te){return te._id==="angularaxis"}function Sr(te,he){for(var Je=he._rangebreaks.length,br=0;br<Je;br++){var pr=he._rangebreaks[br];if(te>=pr.min&&te<pr.max)return pr.max}return te}function Cr(te){return(te.ticklabelposition||"").indexOf("inside")!==-1}function Er(te,he){Cr(te._anchorAxis||{})&&te._hideCounterAxisInsideTickLabels&&te._hideCounterAxisInsideTickLabels(he)}function Lr(te,he,Je,br){var pr=te.anchor!=="free"&&(te.overlaying===void 0||te.overlaying===!1)?te._id:te.overlaying,We;br?We=te.side==="right"?he:-he:We=he,pr in Je||(Je[pr]={}),te.side in Je[pr]||(Je[pr][te.side]=0),Je[pr][te.side]+=We}function Ur(te,he){return te.autoshift?he[te.overlaying][te.side]:te.shift||0}function zr(te,he){return/%f/.test(he)?te>=b:/%L/.test(he)?te>=L:/%[SX]/.test(he)?te>=_:/%M/.test(he)?te>=d:/%[HI]/.test(he)?te>=E:/%p/.test(he)?te>=A:/%[Aadejuwx]/.test(he)?te>=g:/%[UVW]/.test(he)?te>=P:/%[Bbm]/.test(he)?te>=k:/%[q]/.test(he)?te>=p:/%[Yy]/.test(he)?te>=m:!0}},9666:function(nt,W,e){var M=e(10721),C=e(34809),r=e(63821).BADNUM,i=C.isArrayOrTypedArray,w=C.isDateTime,S=C.cleanNumber,h=Math.round;nt.exports=function(u,x,m){var y=u,c=m.noMultiCategory;if(i(y)&&!y.length)return"-";if(!c&&s(y))return"multicategory";if(c&&Array.isArray(y[0])){for(var p=[],f=0;f<y.length;f++)if(i(y[f]))for(var T=0;T<y[f].length;T++)p.push(y[f][T]);y=p}if(n(y,x))return"date";var k=m.autotypenumbers!=="strict";return a(y,k)?"category":t(y,k)?"linear":"-"};function l(u,x){return x?M(u):typeof u=="number"}function t(u,x){for(var m=u.length,y=0;y<m;y++)if(l(u[y],x))return!0;return!1}function n(u,x){for(var m=u.length,y=o(m),c=0,p=0,f={},T=0;T<m;T+=y){var k=h(T),P=u[k],g=String(P);f[g]||(f[g]=1,w(P,x)&&c++,M(P)&&p++)}return c>p*2}function o(u){return Math.max(1,(u-1)/1e3)}function a(u,x){for(var m=u.length,y=o(m),c=0,p=0,f={},T=0;T<m;T+=y){var k=h(T),P=u[k],g=String(P);if(!f[g]){f[g]=1;var A=typeof P;A==="boolean"?p++:(x?S(P)!==r:A==="number")?c++:A==="string"&&p++}}return p>c*2}function s(u){return i(u[0])&&i(u[1])}},97655:function(nt,W,e){var M=e(10721),C=e(33626),r=e(34809),i=e(78032),w=e(59008),S=e(25829),h=e(22777),l=e(87433),t=e(12036),n=e(54616),o=e(46473),a=e(97405),s=e(90259),u=e(19091),x=e(54826).WEEKDAY_PATTERN,m=e(54826).HOUR_PATTERN;nt.exports=function(f,T,k,P,g){var A=P.letter,E=P.font||{},d=P.splomStash||{},_=k("visible",!P.visibleDflt),L=T._template||{},b=T.type||L.type||"-",D;if(b==="date"){var B=C.getComponentMethod("calendars","handleDefaults");B(f,T,"calendar",P.calendar),P.noTicklabelmode||(D=k("ticklabelmode"))}!P.noTicklabelindex&&(b==="date"||b==="linear")&&k("ticklabelindex");var I="";(!P.noTicklabelposition||b==="multicategory")&&(I=r.coerce(f,T,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:D==="period"?["outside","inside"]:A==="x"?["outside","inside","outside left","inside left","outside right","inside right"]:["outside","inside","outside top","inside top","outside bottom","inside bottom"]}},"ticklabelposition")),P.noTicklabeloverflow||k("ticklabeloverflow",I.indexOf("inside")!==-1?"hide past domain":b==="category"||b==="multicategory"?"allow":"hide past div"),u(T,g),s(f,T,k,P),o(f,T,k,P),b!=="category"&&!P.noHover&&k("hoverformat");var V=k("color"),N=V!==S.color.dflt?V:E.color,F=d.label||g._dfltTitle[A];if(n(f,T,k,b,P),!_)return T;k("title.text",F),r.coerceFont(k,"title.font",E,{overrideDflt:{size:r.bigFont(E.size),color:N}}),h(f,T,k,b);var U=P.hasMinor;if(U&&(i.newContainer(T,"minor"),h(f,T,k,b,{isMinor:!0})),t(f,T,k,b,P),l(f,T,k,P),U){var G=P.isMinor;P.isMinor=!0,l(f,T,k,P),P.isMinor=G}a(f,T,k,{dfltColor:V,bgColor:P.bgColor,showGrid:P.showGrid,hasMinor:U,attributes:S}),U&&!T.minor.ticks&&!T.minor.showgrid&&delete T.minor,(T.showline||T.ticks)&&k("mirror");var Y=b==="multicategory";if(!P.noTickson&&(b==="category"||Y)&&(T.ticks||T.showgrid)){var Q;Y&&(Q="boundaries");var ft=k("tickson",Q);ft==="boundaries"&&delete T.ticklabelposition}if(Y){var ut=k("showdividers");ut&&(k("dividercolor"),k("dividerwidth"))}if(b==="date")if(w(f,T,{name:"rangebreaks",inclusionAttr:"enabled",handleItemDefaults:y}),!T.rangebreaks.length)delete T.rangebreaks;else{for(var lt=0;lt<T.rangebreaks.length;lt++)if(T.rangebreaks[lt].pattern===x){T._hasDayOfWeekBreaks=!0;break}if(u(T,g),g._has("scattergl")||g._has("splom"))for(var K=0;K<P.data.length;K++){var $=P.data[K];($.type==="scattergl"||$.type==="splom")&&($.visible=!1,r.warn($.type+" traces do not work on axes with rangebreaks. Setting trace "+$.index+" to `visible: false`."))}}return T};function y(f,T,k){function P(B,I){return r.coerce(f,T,S.rangebreaks,B,I)}var g=P("enabled");if(g){var A=P("bounds");if(A&&A.length>=2){var E="",d,_;if(A.length===2){for(d=0;d<2;d++)if(_=p(A[d]),_){E=x;break}}var L=P("pattern",E);if(L===x)for(d=0;d<2;d++)_=p(A[d]),_&&(T.bounds[d]=A[d]=_-1);if(L)for(d=0;d<2;d++)switch(_=A[d],L){case x:if(!M(_)){T.enabled=!1;return}if(_=+_,_!==Math.floor(_)||_<0||_>=7){T.enabled=!1;return}T.bounds[d]=A[d]=_;break;case m:if(!M(_)){T.enabled=!1;return}if(_=+_,_<0||_>24){T.enabled=!1;return}T.bounds[d]=A[d]=_;break}if(k.autorange===!1){var b=k.range;if(b[0]<b[1]){if(A[0]<b[0]&&A[1]>b[1]){T.enabled=!1;return}}else if(A[0]>b[0]&&A[1]<b[1]){T.enabled=!1;return}}}else{var D=P("values");if(D&&D.length)P("dvalue");else{T.enabled=!1;return}}}}var c={sun:1,mon:2,tue:3,wed:4,thu:5,fri:6,sat:7};function p(f){if(typeof f=="string")return c[f.substr(0,3).toLowerCase()]}},80712:function(nt,W,e){var M=e(87296),C=M.FORMAT_LINK,r=M.DATE_FORMAT_LINK;function i(h,l){return{valType:"string",dflt:"",editType:"none",description:(l?w:S)("hover text",h)+["By default the values are formatted using "+(l?"generic number format":"`"+h+"axis.hoverformat`")+"."].join(" ")}}function w(h,l){return["Sets the "+h+" formatting rule"+(l?"for `"+l+"` ":""),"using d3 formatting mini-languages","which are very similar to those in Python. For numbers, see: "+C+"."].join(" ")}function S(h,l){return w(h,l)+[" And for dates see: "+r+".","We add two items to d3's date formatter:","*%h* for half of the year as a decimal number as well as","*%{n}f* for fractional seconds","with n digits. For example, *2016-10-13 09:15:23.456* with tickformat","*%H~%M~%S.%2f* would display *09~15~23.46*"].join(" ")}nt.exports={axisHoverFormat:i,descriptionOnlyNumbers:w,descriptionWithDates:S}},5975:function(nt,W,e){var M=e(33626),C=e(54826);W.id2name=function(i){if(!(typeof i!="string"||!i.match(C.AX_ID_PATTERN))){var w=i.split(" ")[0].substr(1);return w==="1"&&(w=""),i.charAt(0)+"axis"+w}},W.name2id=function(i){if(i.match(C.AX_NAME_PATTERN)){var w=i.substr(5);return w==="1"&&(w=""),i.charAt(0)+w}},W.cleanId=function(i,w,S){var h=/( domain)$/.test(i);if(!(typeof i!="string"||!i.match(C.AX_ID_PATTERN))&&!(w&&i.charAt(0)!==w)&&!(h&&!S)){var l=i.split(" ")[0].substr(1).replace(/^0+/,"");return l==="1"&&(l=""),i.charAt(0)+l+(h&&S?" domain":"")}},W.list=function(i,w,S){var h=i._fullLayout;if(!h)return[];var l=W.listIds(i,w),t=new Array(l.length),n;for(n=0;n<l.length;n++){var o=l[n];t[n]=h[o.charAt(0)+"axis"+o.substr(1)]}if(!S){var a=h._subplots.gl3d||[];for(n=0;n<a.length;n++){var s=h[a[n]];w?t.push(s[w+"axis"]):t.push(s.xaxis,s.yaxis,s.zaxis)}}return t},W.listIds=function(i,w){var S=i._fullLayout;if(!S)return[];var h=S._subplots;return w?h[w+"axis"]:h.xaxis.concat(h.yaxis)},W.getFromId=function(i,w,S){var h=i._fullLayout;return w=w===void 0||typeof w!="string"?w:w.replace(" domain",""),S==="x"?w=w.replace(/y[0-9]*/,""):S==="y"&&(w=w.replace(/x[0-9]*/,"")),h[W.id2name(w)]},W.getFromTrace=function(i,w,S){var h=i._fullLayout,l=null;if(M.traceIs(w,"gl3d")){var t=w.scene;t.substr(0,5)==="scene"&&(l=h[t][S+"axis"])}else l=W.getFromId(i,w[S+"axis"]||S);return l},W.idSort=function(i,w){var S=i.charAt(0),h=w.charAt(0);return S!==h?S>h?1:-1:+(i.substr(1)||1)-+(w.substr(1)||1)},W.ref2id=function(i){return/^[xyz]/.test(i)?i.split(" ")[0]:!1};function r(i,w){if(w&&w.length){for(var S=0;S<w.length;S++)if(w[S][i])return!0}return!1}W.isLinked=function(i,w){return r(w,i._axisMatchGroups)||r(w,i._axisConstraintGroups)}},46473:function(nt,W,e){var M=e(87800).isTypedArraySpec;function C(r,i){var w=i.dataAttr||r._id.charAt(0),S={},h,l,t;if(i.axData)h=i.axData;else for(h=[],l=0;l<i.data.length;l++){var n=i.data[l];n[w+"axis"]===r._id&&h.push(n)}for(l=0;l<h.length;l++){var o=h[l][w];for(t=0;t<o.length;t++){var a=o[t];a!=null&&(S[a]=1)}}return Object.keys(S)}nt.exports=function(r,i,w,S){if(i.type==="category"){var h=r.categoryarray,l=Array.isArray(h)&&h.length>0||M(h),t;l&&(t="array");var n=w("categoryorder",t),o;n==="array"&&(o=w("categoryarray")),!l&&n==="array"&&(n=i.categoryorder="trace"),n==="trace"?i._initialCategories=[]:n==="array"?i._initialCategories=o.slice():(o=C(i,S).sort(),n==="category ascending"?i._initialCategories=o:n==="category descending"&&(i._initialCategories=o.reverse()))}}},68599:function(nt,W,e){var M=e(10721),C=e(34809),r=e(63821),i=r.ONEDAY,w=r.ONEWEEK;W.dtick=function(S,h){var l=h==="log",t=h==="date",n=h==="category",o=t?i:1;if(!S)return o;if(M(S))return S=Number(S),S<=0?o:n?Math.max(1,Math.round(S)):t?Math.max(.1,S):S;if(typeof S!="string"||!(t||l))return o;var a=S.charAt(0),s=S.substr(1);return s=M(s)?Number(s):0,s<=0||!(t&&a==="M"&&s===Math.round(s)||l&&a==="L"||l&&a==="D"&&(s===1||s===2))?o:S},W.tick0=function(S,h,l,t){if(h==="date")return C.cleanDate(S,C.dateTick0(l,t%w===0?1:0));if(!(t==="D1"||t==="D2"))return M(S)?Number(S):0}},54826:function(nt,W,e){var M=e(90694).counter;nt.exports={idRegex:{x:M("x","( domain)?"),y:M("y","( domain)?")},attrRegex:M("[xy]axis"),xAxisMatch:M("xaxis"),yAxisMatch:M("yaxis"),AX_ID_PATTERN:/^[xyz][0-9]*( domain)?$/,AX_NAME_PATTERN:/^[xyz]axis[0-9]*$/,SUBPLOT_PATTERN:/^x([0-9]*)y([0-9]*)$/,HOUR_PATTERN:"hour",WEEKDAY_PATTERN:"day of week",MINDRAG:8,MINZOOM:20,DRAGGERSIZE:20,REDRAWDELAY:50,DFLTRANGEX:[-1,6],DFLTRANGEY:[-1,4],traceLayerClasses:["imagelayer","heatmaplayer","contourcarpetlayer","contourlayer","funnellayer","waterfalllayer","barlayer","carpetlayer","violinlayer","boxlayer","ohlclayer","scattercarpetlayer","scatterlayer"],clipOnAxisFalseQuery:[".scatterlayer",".barlayer",".funnellayer",".waterfalllayer"],layerValue2layerClass:{"above traces":"above","below traces":"below"},zindexSeparator:"z"}},84391:function(nt,W,e){var M=e(34809),C=e(32919),r=e(5975).id2name,i=e(25829),w=e(67611),S=e(19091),h=e(63821).ALMOST_EQUAL,l=e(4530).FROM_BL;W.handleDefaults=function(m,y,c){var p=c.axIds,f=c.axHasImage,T=y._axisConstraintGroups=[],k=y._axisMatchGroups=[],P,g,A,E,d,_,L,b;for(P=0;P<p.length;P++)E=r(p[P]),d=m[E],_=y[E],t(d,_,{axIds:p,layoutOut:y,hasImage:f[E]});function D(Q,ft){for(P=0;P<Q.length;P++){g=Q[P];for(A in g)y[r(A)][ft]=g}}for(D(k,"_matchGroup"),P=0;P<T.length;P++){g=T[P];for(A in g)if(_=y[r(A)],_.fixedrange){for(var B in g){var I=r(B);(m[I]||{}).fixedrange===!1&&M.warn("fixedrange was specified as false for axis "+I+" but was overridden because another axis in its constraint group has fixedrange true"),y[I].fixedrange=!0}break}}for(P=0;P<T.length;){g=T[P];for(A in g){_=y[r(A)],_._matchGroup&&Object.keys(_._matchGroup).length===Object.keys(g).length&&(T.splice(P,1),P--);break}P++}D(T,"_constraintGroup");var V=["constrain","range","autorange","rangemode","rangebreaks","categoryorder","categoryarray"],N=!1,F=!1;function U(){b=_[L],L==="rangebreaks"&&(F=_._hasDayOfWeekBreaks)}for(P=0;P<k.length;P++){g=k[P];for(var G=0;G<V.length;G++){L=V[G],b=null;var Y;for(A in g)if(E=r(A),d=m[E],_=y[E],L in _){if(!_.matches&&(Y=_,L in d)){U();break}b===null&&L in d&&U()}if(L==="range"&&b&&d.range&&d.range.length===2&&d.range[0]!==null&&d.range[1]!==null&&(N=!0),L==="autorange"&&b===null&&N&&(b=!1),b===null&&L in Y&&(b=Y[L]),b!==null)for(A in g)_=y[r(A)],_[L]=L==="range"?b.slice():b,L==="rangebreaks"&&(_._hasDayOfWeekBreaks=F,S(_,y))}}};function t(m,y,c){var p=c.axIds,f=c.layoutOut,T=c.hasImage,k=f._axisConstraintGroups,P=f._axisMatchGroups,g=y._id,A=g.charAt(0),E=((f._splomAxes||{})[A]||{})[g]||{},d=y._id,_=d.charAt(0)==="x";y._matchGroup=null,y._constraintGroup=null;function L(K,$){return M.coerce(m,y,i,K,$)}L("constrain",T?"domain":"range"),M.coerce(m,y,{constraintoward:{valType:"enumerated",values:_?["left","center","right"]:["bottom","middle","top"],dflt:_?"center":"middle"}},"constraintoward");var b=y.type,D,B,I=[];for(D=0;D<p.length;D++)if(B=p[D],B!==d){var V=f[r(B)];V.type===b&&I.push(B)}var N=o(k,d);if(N){var F=[];for(D=0;D<I.length;D++)B=I[D],N[B]||F.push(B);I=F}var U=I.length,G,Y;U&&(m.matches||E.matches)&&(G=M.coerce(m,y,{matches:{valType:"enumerated",values:I,dflt:I.indexOf(E.matches)!==-1?E.matches:void 0}},"matches"));var Q=T&&!_?y.anchor:void 0;if(U&&!G&&(m.scaleanchor||Q)&&(Y=M.coerce(m,y,{scaleanchor:{valType:"enumerated",values:I.concat([!1])}},"scaleanchor",Q)),G){y._matchGroup=a(P,d,G,1);var ft=f[r(G)],ut=n(f,y)/n(f,ft);_!==(G.charAt(0)==="x")&&(ut=(_?"x":"y")+ut),a(k,d,G,ut)}else m.matches&&p.indexOf(m.matches)!==-1&&M.warn("ignored "+y._name+'.matches: "'+m.matches+'" to avoid an infinite loop');if(Y){var lt=L("scaleratio");lt||(lt=y.scaleratio=1),a(k,d,Y,lt)}else m.scaleanchor&&p.indexOf(m.scaleanchor)!==-1&&M.warn("ignored "+y._name+'.scaleanchor: "'+m.scaleanchor+'" to avoid either an infinite loop and possibly inconsistent scaleratios, or because this axis declares a *matches* constraint.')}function n(m,y){var c=y.domain;return c||(c=m[r(y.overlaying)].domain),c[1]-c[0]}function o(m,y){for(var c=0;c<m.length;c++)if(m[c][y])return m[c];return null}function a(m,y,c,p){var f,T,k,P,g,A=o(m,y);A===null?(A={},A[y]=1,g=m.length,m.push(A)):g=m.indexOf(A);var E=Object.keys(A);for(f=0;f<m.length;f++)if(k=m[f],f!==g&&k[c]){var d=k[c];for(T=0;T<E.length;T++)P=E[T],k[P]=s(d,s(p,A[P]));m.splice(g,1);return}if(p!==1)for(T=0;T<E.length;T++){var _=E[T];A[_]=s(p,A[_])}A[c]=1}function s(m,y){var c="",p="",f,T;typeof m=="string"&&(c=m.match(/^[xy]*/)[0],f=c.length,m=+m.substr(f)),typeof y=="string"&&(p=y.match(/^[xy]*/)[0],T=p.length,y=+y.substr(T));var k=m*y;return!f&&!T?k:!f||!T||c.charAt(0)===p.charAt(0)?c+p+m*y:f===T?k:(f>T?c.substr(T):p.substr(f))+k}function u(m,y){for(var c=y._size,p=c.h/c.w,f={},T=Object.keys(m),k=0;k<T.length;k++){var P=T[k],g=m[P];if(typeof g=="string"){var A=g.match(/^[xy]*/)[0],E=A.length;g=+g.substr(E);for(var d=A.charAt(0)==="y"?p:1/p,_=0;_<E;_++)g*=d}f[P]=g}return f}W.enforce=function(m){var y=m._fullLayout,c=y._axisConstraintGroups||[],p,f,T,k,P,g,A,E;for(p=0;p<c.length;p++){T=u(c[p],y);var d=Object.keys(T),_=1/0,L=0,b=1/0,D={},B={},I=!1;for(f=0;f<d.length;f++)k=d[f],B[k]=P=y[r(k)],P._inputDomain?P.domain=P._inputDomain.slice():P._inputDomain=P.domain.slice(),P._inputRange||(P._inputRange=P.range.slice()),P.setScale(),D[k]=g=Math.abs(P._m)/T[k],_=Math.min(_,g),(P.constrain==="domain"||!P._constraintShrinkable)&&(b=Math.min(b,g)),delete P._constraintShrinkable,L=Math.max(L,g),P.constrain==="domain"&&(I=!0);if(!(_>h*L&&!I)){for(f=0;f<d.length;f++)if(k=d[f],g=D[k],P=B[k],A=P.constrain,g!==b||A==="domain")if(E=g/b,A==="range")w(P,E);else{var V=P._inputDomain,N=(P.domain[1]-P.domain[0])/(V[1]-V[0]),F=(P.r2l(P.range[1])-P.r2l(P.range[0]))/(P.r2l(P._inputRange[1])-P.r2l(P._inputRange[0]));if(E/=N,E*F<1){P.domain=P._input.domain=V.slice(),w(P,E);continue}if(F<1&&(P.range=P._input.range=P._inputRange.slice(),E*=F),P.autorange){var U=P.r2l(P.range[0]),G=P.r2l(P.range[1]),Y=(U+G)/2,Q=Y,ft=Y,ut=Math.abs(G-Y),lt=Y-ut*E*1.0001,K=Y+ut*E*1.0001,$=C.makePadFn(y,P,0),H=C.makePadFn(y,P,1);x(P,E);var at=Math.abs(P._m),ct=C.concatExtremes(m,P),et=ct.min,Z=ct.max,ot,st;for(st=0;st<et.length;st++)ot=et[st].val-$(et[st])/at,ot>lt&&ot<Q&&(Q=ot);for(st=0;st<Z.length;st++)ot=Z[st].val+H(Z[st])/at,ot<K&&ot>ft&&(ft=ot);var dt=(ft-Q)/(2*ut);E/=dt,Q=P.l2r(Q),ft=P.l2r(ft),P.range=P._input.range=U<G?[Q,ft]:[ft,Q]}x(P,E)}}}},W.getAxisGroup=function(m,y){for(var c=m._axisMatchGroups,p=0;p<c.length;p++){var f=c[p];if(f[y])return"g"+p}return y},W.clean=function(m,y){if(y._inputDomain){for(var c=!1,p=y._id,f=m._fullLayout._axisConstraintGroups,T=0;T<f.length;T++)if(f[T][p]){c=!0;break}(!c||y.constrain!=="domain")&&(y._input.domain=y.domain=y._inputDomain,delete y._inputDomain)}};function x(m,y){var c=m._inputDomain,p=l[m.constraintoward],f=c[0]+(c[1]-c[0])*p;m.domain=m._input.domain=[f+(c[0]-f)/y,f+(c[1]-f)/y],m.setScale()}},51680:function(nt,W,e){var M=e(45568),C=e(34809),r=C.numberFormat,i=e(65657),w=e(74043),S=e(33626),h=C.strTranslate,l=e(30635),t=e(78766),n=e(62203),o=e(32141),a=e(29714),s=e(27983),u=e(14751),x=e(70414),m=x.selectingOrDrawing,y=x.freeMode,c=e(4530).FROM_TL,p=e(34823),f=e(71817).redrawReglTraces,T=e(44122),k=e(5975).getFromId,P=e(44844).prepSelect,g=e(44844).clearOutline,A=e(44844).selectOnClick,E=e(67611),d=e(54826),_=d.MINDRAG,L=d.MINZOOM,b=!0;function D(st,dt,xt,At,St,Nt,Wt,Vt){var jt=st._fullLayout._zoomlayer,Dt=Wt+Vt==="nsew",kt=(Wt+Vt).length===1,Bt,Ot,Ht,ye,Qt,_e,ie,Ae,Pe,Oe,je,Le,Ie,Ut,ee,Kt,ne,zt,qt,Zt,ae,vt,Mt;xt+=dt.yaxis._shift;function Lt(){if(Bt=dt.xaxis,Ot=dt.yaxis,Pe=Bt._length,Oe=Ot._length,ie=Bt._offset,Ae=Ot._offset,Ht={},Ht[Bt._id]=Bt,ye={},ye[Ot._id]=Ot,Wt&&Vt)for(var pr=dt.overlays,We=0;We<pr.length;We++){var hr=pr[We].xaxis;Ht[hr._id]=hr;var Ar=pr[We].yaxis;ye[Ar._id]=Ar}Qt=ot(Ht),_e=ot(ye),Ie=V(Qt,Vt),Ut=V(_e,Wt),ee=!Ut&&!Ie,Le=et(st,st._fullLayout._axisMatchGroups,Ht,ye),je=et(st,st._fullLayout._axisConstraintGroups,Ht,ye,Le);var yr=je.isSubplotConstrained||Le.isSubplotConstrained;Kt=Vt||yr,ne=Wt||yr;var dr=st._fullLayout;zt=dr._has("scattergl"),qt=dr._has("splom"),Zt=dr._has("svg")}Lt();var $t=Y(Ut+Ie,st._fullLayout.dragmode,Dt),ge=I(dt,Wt+Vt+"drag",$t,xt,At,St,Nt);if(ee&&!Dt)return ge.onmousedown=null,ge.style.pointerEvents="none",ge;var de={element:ge,gd:st,plotinfo:dt};de.prepFn=function(pr,We,hr){var Ar=de.dragmode,yr=st._fullLayout.dragmode;yr!==Ar&&(de.dragmode=yr),Lt(),vt=st._fullLayout._invScaleX,Mt=st._fullLayout._invScaleY,ee||(Dt?pr.shiftKey?yr==="pan"?yr="zoom":m(yr)||(yr="pan"):pr.ctrlKey&&(yr="pan"):yr="pan"),y(yr)?de.minDrag=1:de.minDrag=void 0,m(yr)?(de.xaxes=Qt,de.yaxes=_e,P(pr,We,hr,de,yr)):(de.clickFn=mr,m(Ar)&&sr(),ee||(yr==="zoom"?(de.moveFn=Se,de.doneFn=Ze,de.minDrag=1,ue(pr,We,hr)):yr==="pan"&&(de.moveFn=Cr,de.doneFn=zr))),st._fullLayout._redrag=function(){var dr=st._dragdata;if(dr&&dr.element===ge){var Rr=st._fullLayout.dragmode;m(Rr)||(Lt(),te([0,0,Pe,Oe]),de.moveFn(dr.dx,dr.dy))}}};function sr(){de.plotinfo.selection=!1,g(st)}function mr(pr,We){var hr=de.gd;if(hr._fullLayout._activeShapeIndex>=0){hr._fullLayout._deactivateShape(hr);return}var Ar=hr._fullLayout.clickmode;if(K(hr),pr===2&&!kt&&Ur(),Dt)Ar.indexOf("select")>-1&&A(We,hr,Qt,_e,dt.id,de),Ar.indexOf("event")>-1&&o.click(hr,We,dt.id);else if(pr===1&&kt){var yr=Wt?Ot:Bt,dr=Wt==="s"||Vt==="w"?0:1,Rr=yr._name+".range["+dr+"]",Qr=N(yr,dr),Xr="left",Dn="middle";if(yr.fixedrange)return;Wt?(Dn=Wt==="n"?"top":"bottom",yr.side==="right"&&(Xr="right")):Vt==="e"&&(Xr="right"),hr._context.showAxisRangeEntryBoxes&&M.select(ge).call(l.makeEditable,{gd:hr,immediate:!0,background:hr._fullLayout.paper_bgcolor,text:String(Qr),fill:yr.tickfont?yr.tickfont.color:"#444",horizontalAlign:Xr,verticalAlign:Dn}).on("edit",function(on){var Hn=yr.d2r(on);Hn!==void 0&&S.call("_guiRelayout",hr,Rr,Hn)})}}u.init(de);var Ve,le,pe,Te,Yt,Ee,Ne,ar,Ye,Jt;function ue(pr,We,hr){var Ar=ge.getBoundingClientRect();Ve=We-Ar.left,le=hr-Ar.top,st._fullLayout._calcInverseTransform(st);var yr=C.apply3DTransform(st._fullLayout._invTransform)(Ve,le);Ve=yr[0],le=yr[1],pe={l:Ve,r:Ve,w:0,t:le,b:le,h:0},Te=st._hmpixcount?st._hmlumcount/st._hmpixcount:i(st._fullLayout.plot_bgcolor).getLuminance(),Yt="M0,0H"+Pe+"V"+Oe+"H0V0",Ee=!1,Ne="xy",Jt=!1,ar=Q(jt,Te,ie,Ae,Yt),Ye=ft(jt,ie,Ae)}function Se(pr,We){if(st._transitioningWithDuration)return!1;var hr=Math.max(0,Math.min(Pe,vt*pr+Ve)),Ar=Math.max(0,Math.min(Oe,Mt*We+le)),yr=Math.abs(hr-Ve),dr=Math.abs(Ar-le);pe.l=Math.min(Ve,hr),pe.r=Math.max(Ve,hr),pe.t=Math.min(le,Ar),pe.b=Math.max(le,Ar);function Rr(){Ne="",pe.r=pe.l,pe.t=pe.b,Ye.attr("d","M0,0Z")}if(je.isSubplotConstrained)yr>L||dr>L?(Ne="xy",yr/Pe>dr/Oe?(dr=yr*Oe/Pe,le>Ar?pe.t=le-dr:pe.b=le+dr):(yr=dr*Pe/Oe,Ve>hr?pe.l=Ve-yr:pe.r=Ve+yr),Ye.attr("d",ct(pe))):Rr();else if(Le.isSubplotConstrained)if(yr>L||dr>L){Ne="xy";var Qr=Math.min(pe.l/Pe,(Oe-pe.b)/Oe),Xr=Math.max(pe.r/Pe,(Oe-pe.t)/Oe);pe.l=Qr*Pe,pe.r=Xr*Pe,pe.b=(1-Qr)*Oe,pe.t=(1-Xr)*Oe,Ye.attr("d",ct(pe))}else Rr();else!Ut||dr<Math.min(Math.max(yr*.6,_),L)?yr<_||!Ie?Rr():(pe.t=0,pe.b=Oe,Ne="x",Ye.attr("d",H(pe,le))):!Ie||yr<Math.min(dr*.6,L)?(pe.l=0,pe.r=Pe,Ne="y",Ye.attr("d",at(pe,Ve))):(Ne="xy",Ye.attr("d",ct(pe)));pe.w=pe.r-pe.l,pe.h=pe.b-pe.t,Ne&&(Jt=!0),st._dragged=Jt,ut(ar,Ye,pe,Yt,Ee,Te),De(),st.emit("plotly_relayouting",ae),Ee=!0}function De(){ae={},(Ne==="xy"||Ne==="x")&&(F(Qt,pe.l/Pe,pe.r/Pe,ae,je.xaxes),Er("x",ae)),(Ne==="xy"||Ne==="y")&&(F(_e,(Oe-pe.b)/Oe,(Oe-pe.t)/Oe,ae,je.yaxes),Er("y",ae))}function Ze(){De(),K(st),zr(),$(st)}var nr=[0,0,Pe,Oe],Ke=null,er=d.REDRAWDELAY,xr=dt.mainplot?st._fullLayout._plots[dt.mainplot]:dt;function Sr(pr){if(!st._context._scrollZoom.cartesian&&!st._fullLayout._enablescrollzoom)return;if(sr(),st._transitioningWithDuration){pr.preventDefault(),pr.stopPropagation();return}Lt(),clearTimeout(Ke);var We=-pr.deltaY;if(isFinite(We)||(We=pr.wheelDelta/10),!isFinite(We)){C.log("Did not find wheel motion attributes: ",pr);return}var hr=Math.exp(-Math.min(Math.max(We,-20),20)/200),Ar=xr.draglayer.select(".nsewdrag").node().getBoundingClientRect(),yr=(pr.clientX-Ar.left)/Ar.width,dr=(Ar.bottom-pr.clientY)/Ar.height,Rr;function Qr(Xr,Dn,on){if(Xr.fixedrange)return;var Hn=C.simpleMap(Xr.range,Xr.r2l),Fn=Hn[0]+(Hn[1]-Hn[0])*Dn;function jr(Pr){return Xr.l2r(Fn+(Pr-Fn)*on)}Xr.range=Hn.map(jr)}if(Kt){for(Vt||(yr=.5),Rr=0;Rr<Qt.length;Rr++)Qr(Qt[Rr],yr,hr);Er("x"),nr[2]*=hr,nr[0]+=nr[2]*yr*(1/hr-1)}if(ne){for(Wt||(dr=.5),Rr=0;Rr<_e.length;Rr++)Qr(_e[Rr],dr,hr);Er("y"),nr[3]*=hr,nr[1]+=nr[3]*(1-dr)*(1/hr-1)}te(nr),Lr(),st.emit("plotly_relayouting",ae),Ke=setTimeout(function(){st._fullLayout&&(nr=[0,0,Pe,Oe],zr())},er),pr.preventDefault()}Wt.length*Vt.length!==1&&Z(ge,Sr);function Cr(pr,We){if(pr=pr*vt,We=We*Mt,st._transitioningWithDuration)return;if(st._fullLayout._replotting=!0,Ie==="ew"||Ut==="ns"){var hr=Ie?-pr:0,Ar=Ut?-We:0;if(Le.isSubplotConstrained){if(Ie&&Ut){var yr=(pr/Pe-We/Oe)/2;pr=yr*Pe,We=-yr*Oe,hr=-pr,Ar=-We}Ut?hr=-Ar*Pe/Oe:Ar=-hr*Oe/Pe}Ie&&(U(Qt,pr),Er("x")),Ut&&(U(_e,We),Er("y")),te([hr,Ar,Pe,Oe]),Lr(),st.emit("plotly_relayouting",ae);return}function dr(jr,Pr,fn){for(var nn=1-Pr,Rn,On,vn=0;vn<jr.length;vn++){var Gn=jr[vn];if(!Gn.fixedrange){Rn=Gn,On=Gn._rl[nn]+(Gn._rl[Pr]-Gn._rl[nn])/G(fn/Gn._length);var ii=Gn.l2r(On);ii!==!1&&ii!==void 0&&(Gn.range[Pr]=ii)}}return Rn._length*(Rn._rl[Pr]-On)/(Rn._rl[Pr]-Rn._rl[nn])}var Rr=Ie==="w"==(Ut==="n")?1:-1;if(Ie&&Ut&&(je.isSubplotConstrained||Le.isSubplotConstrained)){var Qr=(pr/Pe+Rr*We/Oe)/2;pr=Qr*Pe,We=Rr*Qr*Oe}var Xr,Dn;if(Ie==="w"?pr=dr(Qt,0,pr):Ie==="e"?pr=dr(Qt,1,-pr):Ie||(pr=0),Ut==="n"?We=dr(_e,1,We):Ut==="s"?We=dr(_e,0,-We):Ut||(We=0),Xr=Ie==="w"?pr:0,Dn=Ut==="n"?We:0,je.isSubplotConstrained&&!Le.isSubplotConstrained||Le.isSubplotConstrained&&Ie&&Ut&&Rr>0){var on;if(Le.isSubplotConstrained||!Ie&&Ut.length===1){for(on=0;on<Qt.length;on++)Qt[on].range=Qt[on]._r.slice(),E(Qt[on],1-We/Oe);pr=We*Pe/Oe,Xr=pr/2}if(Le.isSubplotConstrained||!Ut&&Ie.length===1){for(on=0;on<_e.length;on++)_e[on].range=_e[on]._r.slice(),E(_e[on],1-pr/Pe);We=pr*Oe/Pe,Dn=We/2}}(!Le.isSubplotConstrained||!Ut)&&Er("x"),(!Le.isSubplotConstrained||!Ie)&&Er("y");var Hn=Pe-pr,Fn=Oe-We;Le.isSubplotConstrained&&!(Ie&&Ut)&&(Ie?(Dn=Xr?0:pr*Oe/Pe,Fn=Hn*Oe/Pe):(Xr=Dn?0:We*Pe/Oe,Hn=Fn*Pe/Oe)),te([Xr,Dn,Hn,Fn]),Lr(),st.emit("plotly_relayouting",ae)}function Er(pr,We){for(var hr=Le.isSubplotConstrained?{x:_e,y:Qt}[pr]:Le[pr+"axes"],Ar=Le.isSubplotConstrained?{x:Qt,y:_e}[pr]:[],yr=0;yr<hr.length;yr++){var dr=hr[yr],Rr=dr._id,Qr=Le.xLinks[Rr]||Le.yLinks[Rr],Xr=Ar[0]||Ht[Qr]||ye[Qr];Xr&&(We?(We[dr._name+".range[0]"]=We[Xr._name+".range[0]"],We[dr._name+".range[1]"]=We[Xr._name+".range[1]"]):dr.range=Xr.range.slice())}}function Lr(){var pr=[],We;function hr(Rr){for(We=0;We<Rr.length;We++)Rr[We].fixedrange||pr.push(Rr[We]._id)}function Ar(Rr,Qr){for(We=0;We<Rr.length;We++){var Xr=Rr[We],Dn=Xr[Qr];!Xr.fixedrange&&Dn.tickmode==="sync"&&pr.push(Dn._id)}}for(Kt&&(hr(Qt),hr(je.xaxes),hr(Le.xaxes),Ar(dt.overlays,"xaxis")),ne&&(hr(_e),hr(je.yaxes),hr(Le.yaxes),Ar(dt.overlays,"yaxis")),ae={},We=0;We<pr.length;We++){var yr=pr[We],dr=k(st,yr);a.drawOne(st,dr,{skipTitle:!0}),ae[dr._name+".range[0]"]=dr.range[0],ae[dr._name+".range[1]"]=dr.range[1]}a.redrawComponents(st,pr)}function Ur(){if(!st._transitioningWithDuration){var pr=st._context.doubleClick,We=[];Ie&&(We=We.concat(Qt)),Ut&&(We=We.concat(_e)),Le.xaxes&&(We=We.concat(Le.xaxes)),Le.yaxes&&(We=We.concat(Le.yaxes));var hr={},Ar,yr;if(pr==="reset+autosize")for(pr="autosize",yr=0;yr<We.length;yr++){Ar=We[yr];var dr=Ar._rangeInitial0,Rr=Ar._rangeInitial1,Qr=dr!==void 0||Rr!==void 0;if(Qr&&(dr!==void 0&&dr!==Ar.range[0]||Rr!==void 0&&Rr!==Ar.range[1])||!Qr&&Ar.autorange!==!0){pr="reset";break}}if(pr==="autosize")for(yr=0;yr<We.length;yr++)Ar=We[yr],Ar.fixedrange||(hr[Ar._name+".autorange"]=!0);else if(pr==="reset"){for((Ie||je.isSubplotConstrained)&&(We=We.concat(je.xaxes)),Ut&&!je.isSubplotConstrained&&(We=We.concat(je.yaxes)),je.isSubplotConstrained&&(Ie?Ut||(We=We.concat(_e)):We=We.concat(Qt)),yr=0;yr<We.length;yr++)if(Ar=We[yr],!Ar.fixedrange){var Xr=Ar._name,Dn=Ar._autorangeInitial;Ar._rangeInitial0===void 0&&Ar._rangeInitial1===void 0?hr[Xr+".autorange"]=!0:Ar._rangeInitial0===void 0?(hr[Xr+".autorange"]=Dn,hr[Xr+".range"]=[null,Ar._rangeInitial1]):Ar._rangeInitial1===void 0?(hr[Xr+".range"]=[Ar._rangeInitial0,null],hr[Xr+".autorange"]=Dn):hr[Xr+".range"]=[Ar._rangeInitial0,Ar._rangeInitial1]}}st.emit("plotly_doubleclick",null),S.call("_guiRelayout",st,hr)}}function zr(){te([0,0,Pe,Oe]),C.syncOrAsync([T.previousPromises,function(){st._fullLayout._replotting=!1,S.call("_guiRelayout",st,ae)}],st)}function te(pr){var We=st._fullLayout,hr=We._plots,Ar=We._subplots.cartesian,yr,dr,Rr,Qr;if(qt&&S.subplotsRegistry.splom.drag(st),zt){for(yr=0;yr<Ar.length;yr++)if(dr=hr[Ar[yr]],Rr=dr.xaxis,Qr=dr.yaxis,dr._scene){Rr.limitRange&&Rr.limitRange(),Qr.limitRange&&Qr.limitRange();var Xr=C.simpleMap(Rr.range,Rr.r2l),Dn=C.simpleMap(Qr.range,Qr.r2l);dr._scene.update({range:[Xr[0],Dn[0],Xr[1],Dn[1]]})}}if((qt||zt)&&(p(st),f(st)),Zt){var on=pr[2]/Bt._length,Hn=pr[3]/Ot._length;for(yr=0;yr<Ar.length;yr++){dr=hr[Ar[yr]],Rr=dr.xaxis,Qr=dr.yaxis;var Fn=(Kt||Le.isSubplotConstrained)&&!Rr.fixedrange&&Ht[Rr._id],jr=(ne||Le.isSubplotConstrained)&&!Qr.fixedrange&&ye[Qr._id],Pr,fn,nn,Rn;if(Fn?(Pr=on,nn=Vt||Le.isSubplotConstrained?pr[0]:br(Rr,Pr)):Le.xaHash[Rr._id]?(Pr=on,nn=pr[0]*Rr._length/Bt._length):Le.yaHash[Rr._id]?(Pr=Hn,nn=Ut==="ns"?-pr[1]*Rr._length/Ot._length:br(Rr,Pr,{n:"top",s:"bottom"}[Ut])):(Pr=he(Rr,on,Hn),nn=Je(Rr,Pr)),Pr>1&&(Rr.maxallowed!==void 0&&Kt===(Rr.range[0]<Rr.range[1]?"e":"w")||Rr.minallowed!==void 0&&Kt===(Rr.range[0]<Rr.range[1]?"w":"e"))&&(Pr=1,nn=0),jr?(fn=Hn,Rn=Wt||Le.isSubplotConstrained?pr[1]:br(Qr,fn)):Le.yaHash[Qr._id]?(fn=Hn,Rn=pr[1]*Qr._length/Ot._length):Le.xaHash[Qr._id]?(fn=on,Rn=Ie==="ew"?-pr[0]*Qr._length/Bt._length:br(Qr,fn,{e:"right",w:"left"}[Ie])):(fn=he(Qr,on,Hn),Rn=Je(Qr,fn)),fn>1&&(Qr.maxallowed!==void 0&&ne===(Qr.range[0]<Qr.range[1]?"n":"s")||Qr.minallowed!==void 0&&ne===(Qr.range[0]<Qr.range[1]?"s":"n"))&&(fn=1,Rn=0),!(!Pr&&!fn)){Pr||(Pr=1),fn||(fn=1);var On=Rr._offset-nn/Pr,vn=Qr._offset-Rn/fn;dr.clipRect.call(n.setTranslate,nn,Rn).call(n.setScale,Pr,fn),dr.plot.call(n.setTranslate,On,vn).call(n.setScale,1/Pr,1/fn),(Pr!==dr.xScaleFactor||fn!==dr.yScaleFactor)&&(n.setPointGroupScale(dr.zoomScalePts,Pr,fn),n.setTextPointsScale(dr.zoomScaleTxt,Pr,fn)),n.hideOutsideRangePoints(dr.clipOnAxisFalseTraces,dr),dr.xScaleFactor=Pr,dr.yScaleFactor=fn}}}}function he(pr,We,hr){return pr.fixedrange?0:Kt&&je.xaHash[pr._id]?We:ne&&(je.isSubplotConstrained?je.xaHash:je.yaHash)[pr._id]?hr:0}function Je(pr,We){return We?(pr.range=pr._r.slice(),E(pr,We),br(pr,We)):0}function br(pr,We,hr){return pr._length*(1-We)*c[hr||pr.constraintoward||"middle"]}return ge}function B(st,dt,xt,At){var St=C.ensureSingle(st.draglayer,dt,xt,function(Nt){Nt.classed("drag",!0).style({fill:"transparent","stroke-width":0}).attr("data-subplot",st.id)});return St.call(s,At),St.node()}function I(st,dt,xt,At,St,Nt,Wt){var Vt=B(st,"rect",dt,xt);return M.select(Vt).call(n.setRect,At,St,Nt,Wt),Vt}function V(st,dt){for(var xt=0;xt<st.length;xt++)if(!st[xt].fixedrange)return dt;return""}function N(st,dt){var xt=st.range[dt],At=Math.abs(xt-st.range[1-dt]),St;return st.type==="date"?xt:st.type==="log"?(St=Math.ceil(Math.max(0,-Math.log(At)/Math.LN10))+3,r("."+St+"g")(Math.pow(10,xt))):(St=Math.floor(Math.log(Math.abs(xt))/Math.LN10)-Math.floor(Math.log(At)/Math.LN10)+4,r("."+String(St)+"g")(xt))}function F(st,dt,xt,At,St){for(var Nt=0;Nt<st.length;Nt++){var Wt=st[Nt];if(!Wt.fixedrange)if(Wt.rangebreaks){var Vt=Wt._id.charAt(0)==="y",jt=Vt?1-dt:dt,Dt=Vt?1-xt:xt;At[Wt._name+".range[0]"]=Wt.l2r(Wt.p2l(jt*Wt._length)),At[Wt._name+".range[1]"]=Wt.l2r(Wt.p2l(Dt*Wt._length))}else{var kt=Wt._rl[0],Bt=Wt._rl[1]-kt;At[Wt._name+".range[0]"]=Wt.l2r(kt+Bt*dt),At[Wt._name+".range[1]"]=Wt.l2r(kt+Bt*xt)}}if(St&&St.length){var Ot=(dt+(1-xt))/2;F(St,Ot,1-Ot,At,[])}}function U(st,dt){for(var xt=0;xt<st.length;xt++){var At=st[xt];if(!At.fixedrange){if(At.rangebreaks){var St=0,Nt=At._length,Wt=At.p2l(St+dt)-At.p2l(St),Vt=At.p2l(Nt+dt)-At.p2l(Nt),jt=(Wt+Vt)/2;At.range=[At.l2r(At._rl[0]-jt),At.l2r(At._rl[1]-jt)]}else At.range=[At.l2r(At._rl[0]-dt/At._m),At.l2r(At._rl[1]-dt/At._m)];At.limitRange&&At.limitRange()}}}function G(st){return 1-(st>=0?Math.min(st,.9):1/(1/Math.max(st,-.3)+3.222))}function Y(st,dt,xt){return st?st==="nsew"?xt?"":dt==="pan"?"move":"crosshair":st.toLowerCase()+"-resize":"pointer"}function Q(st,dt,xt,At,St){return st.append("path").attr("class","zoombox").style({fill:dt>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("transform",h(xt,At)).attr("d",St+"Z")}function ft(st,dt,xt){return st.append("path").attr("class","zoombox-corners").style({fill:t.background,stroke:t.defaultLine,"stroke-width":1,opacity:0}).attr("transform",h(dt,xt)).attr("d","M0,0Z")}function ut(st,dt,xt,At,St,Nt){st.attr("d",At+"M"+xt.l+","+xt.t+"v"+xt.h+"h"+xt.w+"v-"+xt.h+"h-"+xt.w+"Z"),lt(st,dt,St,Nt)}function lt(st,dt,xt,At){xt||(st.transition().style("fill",At>.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),dt.transition().style("opacity",1).duration(200))}function K(st){M.select(st).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}function $(st){b&&st.data&&st._context.showTips&&(C.notifier(C._(st,"Double-click to zoom back out"),"long"),b=!1)}function H(st,dt){return"M"+(st.l-.5)+","+(dt-L-.5)+"h-3v"+(2*L+1)+"h3ZM"+(st.r+.5)+","+(dt-L-.5)+"h3v"+(2*L+1)+"h-3Z"}function at(st,dt){return"M"+(dt-L-.5)+","+(st.t-.5)+"v-3h"+(2*L+1)+"v3ZM"+(dt-L-.5)+","+(st.b+.5)+"v3h"+(2*L+1)+"v-3Z"}function ct(st){var dt=Math.floor(Math.min(st.b-st.t,st.r-st.l,L)/2);return"M"+(st.l-3.5)+","+(st.t-.5+dt)+"h3v"+-dt+"h"+dt+"v-3h-"+(dt+3)+"ZM"+(st.r+3.5)+","+(st.t-.5+dt)+"h-3v"+-dt+"h"+-dt+"v-3h"+(dt+3)+"ZM"+(st.r+3.5)+","+(st.b+.5-dt)+"h-3v"+dt+"h"+-dt+"v3h"+(dt+3)+"ZM"+(st.l-3.5)+","+(st.b+.5-dt)+"h3v"+dt+"h"+dt+"v3h-"+(dt+3)+"Z"}function et(st,dt,xt,At,St){for(var Nt=!1,Wt={},Vt={},jt,Dt,kt,Bt,Ot=(St||{}).xaHash,Ht=(St||{}).yaHash,ye=0;ye<dt.length;ye++){var Qt=dt[ye];for(jt in xt)if(Qt[jt]){for(kt in Qt)!(St&&(Ot[kt]||Ht[kt]))&&!(kt.charAt(0)==="x"?xt:At)[kt]&&(Wt[kt]=jt);for(Dt in At)!(St&&(Ot[Dt]||Ht[Dt]))&&Qt[Dt]&&(Nt=!0)}for(Dt in At)if(Qt[Dt])for(Bt in Qt)!(St&&(Ot[Bt]||Ht[Bt]))&&!(Bt.charAt(0)==="x"?xt:At)[Bt]&&(Vt[Bt]=Dt)}Nt&&(C.extendFlat(Wt,Vt),Vt={});var _e={},ie=[];for(kt in Wt){var Ae=k(st,kt);ie.push(Ae),_e[Ae._id]=Ae}var Pe={},Oe=[];for(Bt in Vt){var je=k(st,Bt);Oe.push(je),Pe[je._id]=je}return{xaHash:_e,yaHash:Pe,xaxes:ie,yaxes:Oe,xLinks:Wt,yLinks:Vt,isSubplotConstrained:Nt}}function Z(st,dt){if(!w)st.onwheel!==void 0?st.onwheel=dt:st.onmousewheel!==void 0?st.onmousewheel=dt:st.isAddedWheelEvent||(st.isAddedWheelEvent=!0,st.addEventListener("wheel",dt,{passive:!1}));else{var xt=st.onwheel!==void 0?"wheel":"mousewheel";st._onwheel&&st.removeEventListener(xt,st._onwheel),st._onwheel=dt,st.addEventListener(xt,dt,{passive:!1})}}function ot(st){var dt=[];for(var xt in st)dt.push(st[xt]);return dt}nt.exports={makeDragBox:D,makeDragger:B,makeRectDragger:I,makeZoombox:Q,makeCorners:ft,updateZoombox:ut,xyCorners:ct,transitionZoombox:lt,removeZoombox:K,showDoubleClickNotifier:$,attachWheelEventHandler:Z}},95284:function(nt,W,e){var M=e(45568),C=e(32141),r=e(14751),i=e(27983),w=e(51680).makeDragBox,S=e(54826).DRAGGERSIZE;W.initInteractions=function(h){var l=h._fullLayout;if(h._context.staticPlot){M.select(h).selectAll(".drag").remove();return}if(!(!l._has("cartesian")&&!l._has("splom"))){var t=Object.keys(l._plots||{}).sort(function(o,a){if((l._plots[o].mainplot&&!0)===(l._plots[a].mainplot&&!0)){var s=o.split("y"),u=a.split("y");return s[0]===u[0]?Number(s[1]||1)-Number(u[1]||1):Number(s[0]||1)-Number(u[0]||1)}return l._plots[o].mainplot?1:-1});t.forEach(function(o){var a=l._plots[o],s=a.xaxis,u=a.yaxis;if(!a.mainplot){var x=w(h,a,s._offset,u._offset,s._length,u._length,"ns","ew");x.onmousemove=function(c){h._fullLayout._rehover=function(){h._fullLayout._hoversubplot===o&&h._fullLayout._plots[o]&&C.hover(h,c,o)},C.hover(h,c,o),h._fullLayout._lasthover=x,h._fullLayout._hoversubplot=o},x.onmouseout=function(c){h._dragging||(h._fullLayout._hoversubplot=null,r.unhover(h,c))},h._context.showAxisDragHandles&&(w(h,a,s._offset-S,u._offset-S,S,S,"n","w"),w(h,a,s._offset+s._length,u._offset-S,S,S,"n","e"),w(h,a,s._offset-S,u._offset+u._length,S,S,"s","w"),w(h,a,s._offset+s._length,u._offset+u._length,S,S,"s","e"))}if(h._context.showAxisDragHandles){if(o===s._mainSubplot){var m=s._mainLinePosition;s.side==="top"&&(m-=S),w(h,a,s._offset+s._length*.1,m,s._length*.8,S,"","ew"),w(h,a,s._offset,m,s._length*.1,S,"","w"),w(h,a,s._offset+s._length*.9,m,s._length*.1,S,"","e")}if(o===u._mainSubplot){var y=u._mainLinePosition;u.side!=="right"&&(y-=S),w(h,a,y,u._offset+u._length*.1,S,u._length*.8,"ns",""),w(h,a,y,u._offset+u._length*.9,S,u._length*.1,"s",""),w(h,a,y,u._offset,S,u._length*.1,"n","")}}});var n=l._hoverlayer.node();n.onmousemove=function(o){o.target=h._fullLayout._lasthover,C.hover(h,o,l._hoversubplot)},n.onclick=function(o){o.target=h._fullLayout._lasthover,C.click(h,o)},n.onmousedown=function(o){h._fullLayout._lasthover.onmousedown(o)},W.updateFx(h)}},W.updateFx=function(h){var l=h._fullLayout,t=l.dragmode==="pan"?"move":"crosshair";i(l._draggers,t)}},20706:function(nt,W,e){var M=e(33626),C=e(34809),r=e(5975);nt.exports=function(i){return function(w,S){var h=w[i];if(Array.isArray(h))for(var l=M.subplotsRegistry.cartesian,t=l.idRegex,n=S._subplots,o=n.xaxis,a=n.yaxis,s=n.cartesian,u=S._has("cartesian")||S._has("gl2d"),x=0;x<h.length;x++){var m=h[x];if(C.isPlainObject(m)){var y=r.cleanId(m.xref,"x",!1),c=r.cleanId(m.yref,"y",!1),p=t.x.test(y),f=t.y.test(c);if(p||f){u||C.pushUnique(S._basePlotModules,l);var T=!1;p&&o.indexOf(y)===-1&&(o.push(y),T=!0),f&&a.indexOf(c)===-1&&(a.push(c),T=!0),T&&p&&f&&s.push(y+c)}}}}}},37703:function(nt,W,e){var M=e(45568),C=e(33626),r=e(34809),i=e(44122),w=e(62203),S=e(4173).eV,h=e(5975),l=e(54826),t=e(62972),n=r.ensureSingle;function o(c,p,f){return r.ensureSingle(c,p,f,function(T){T.datum(f)})}var a=l.zindexSeparator;W.name="cartesian",W.attr=["xaxis","yaxis"],W.idRoot=["x","y"],W.idRegex=l.idRegex,W.attrRegex=l.attrRegex,W.attributes=e(55126),W.layoutAttributes=e(25829),W.supplyLayoutDefaults=e(74098),W.transitionAxes=e(84982),W.finalizeSubplots=function(c,p){var f=p._subplots,T=f.xaxis,k=f.yaxis,P=f.cartesian,g=P.concat(f.gl2d||[]),A={},E={},d,_,L;for(d=0;d<g.length;d++){var b=g[d].split("y");A[b[0]]=1,E["y"+b[1]]=1}for(d=0;d<T.length;d++)_=T[d],A[_]||(L=(c[h.id2name(_)]||{}).anchor,l.idRegex.y.test(L)||(L="y"),P.push(_+L),g.push(_+L),E[L]||(E[L]=1,r.pushUnique(k,L)));for(d=0;d<k.length;d++)L=k[d],E[L]||(_=(c[h.id2name(L)]||{}).anchor,l.idRegex.x.test(_)||(_="x"),P.push(_+L),g.push(_+L),A[_]||(A[_]=1,r.pushUnique(T,_)));if(!g.length){_="",L="";for(var D in c)if(l.attrRegex.test(D)){var B=D.charAt(0);B==="x"?(!_||+D.substr(5)<+_.substr(5))&&(_=D):(!L||+D.substr(5)<+L.substr(5))&&(L=D)}_=_?h.name2id(_):"x",L=L?h.name2id(L):"y",T.push(_),k.push(L),P.push(_+L)}},W.plot=function(c,p,f,T){var k=c._fullLayout,P=k._subplots.cartesian,g=c.calcdata,A;if(!Array.isArray(p))for(p=[],A=0;A<g.length;A++)p.push(A);for(var E=k._zindices,d=0;d<E.length;d++){var _=E[d];for(A=0;A<P.length;A++){var L=P[A],b=k._plots[L];if(d>0){var D=b.id;if(D.indexOf(a)!==-1)continue;D+=a+(d+1),b=r.extendFlat({},b,{id:D,plot:k._cartesianlayer.selectAll(".subplot").select("."+D)})}for(var B=[],I,V=0;V<g.length;V++){var N=g[V],F=N[0].trace;_===(F.zorder||0)&&F.xaxis+F.yaxis===L&&((p.indexOf(F.index)!==-1||F.carpet)&&(I&&I[0].trace.xaxis+I[0].trace.yaxis===L&&["tonextx","tonexty","tonext"].indexOf(F.fill)!==-1&&B.indexOf(I)===-1&&B.push(I),B.push(N)),I=N)}s(c,b,B,f,T)}}};function s(c,p,f,T,k){for(var P=l.traceLayerClasses,g=c._fullLayout,A=g._zindices,E=g._modules,d,_,L,b=[],D=[],B=0;B<A.length;B++)for(var I=A[B],V=0;V<E.length;V++){d=E[V];var N=d.name,F=C.modules[N].categories;if(F.svg){var U=d.layerName||N+"layer",G=U+(B?Number(B)+1:""),Y=d.plot;_=S(f,Y,I),L=_[0],f=_[1],L.length&&b.push({i:P.indexOf(U),zorder:B,className:G,plotMethod:Y,cdModule:L}),F.zoomScale&&D.push("."+G)}}b.sort(function(ut,lt){return(ut.zorder||0)-(lt.zorder||0)||ut.i-lt.i});var Q=p.plot.selectAll("g.mlayer").data(b,function(ut){return ut.className});if(Q.enter().append("g").attr("class",function(ut){return ut.className}).classed("mlayer",!0).classed("rangeplot",p.isRangePlot),Q.exit().remove(),Q.order(),Q.each(function(ut){var lt=M.select(this),K=ut.className;ut.plotMethod(c,p,ut.cdModule,lt,T,k),l.clipOnAxisFalseQuery.indexOf("."+K)===-1&&w.setClipUrl(lt,p.layerClipId,c)}),g._has("scattergl")&&(d=C.getModule("scattergl"),L=S(f,d)[0],d.plot(c,p,L)),!c._context.staticPlot&&(p._hasClipOnAxisFalse&&(p.clipOnAxisFalseTraces=p.plot.selectAll(l.clipOnAxisFalseQuery.join(",")).selectAll(".trace")),D.length)){var ft=p.plot.selectAll(D.join(",")).selectAll(".trace");p.zoomScalePts=ft.selectAll("path.point"),p.zoomScaleTxt=ft.selectAll(".textpoint")}}W.clean=function(c,p,f,T){var k=T._plots||{},P=p._plots||{},g=T._subplots||{},A,E,d;if(T._hasOnlyLargeSploms&&!p._hasOnlyLargeSploms)for(d in k)A=k[d],A.plotgroup&&A.plotgroup.remove();var _=T._has&&T._has("gl"),L=p._has&&p._has("gl");if(_&&!L)for(d in k)A=k[d],A._scene&&A._scene.destroy();if(g.xaxis&&g.yaxis){var b=h.listIds({_fullLayout:T});for(E=0;E<b.length;E++){var D=b[E];p[h.id2name(D)]||T._infolayer.selectAll(".g-"+D+"title").remove()}}var B=T._has&&T._has("cartesian"),I=p._has&&p._has("cartesian");if(B&&!I)m(T._cartesianlayer.selectAll(".subplot"),T),T._defs.selectAll(".axesclip").remove(),delete T._axisConstraintGroups,delete T._axisMatchGroups;else if(g.cartesian)for(E=0;E<g.cartesian.length;E++){var V=g.cartesian[E];if(V.indexOf(a)===-1&&!P[V]){var N="."+V+",."+V+"-x,."+V+"-y";T._cartesianlayer.selectAll(N).remove(),y(V,T)}}},W.drawFramework=function(c){var p=c._fullLayout,f=c.calcdata,T,k={};for(T=0;T<f.length;T++){var P=f[T][0],g=P.trace,A=g.zorder||0;k[A]||(k[A]=[]),k[A].push(P)}var E=Object.keys(k).map(Number).sort(r.sorterAsc);E.length||(E=[0]),p._zindices=E;var d=u(c),_=d.length,L=[];for(T=0;T<_;T++)L[T]=d[T].slice();for(var b=1;b<E.length;b++){var D=[];for(T=0;T<_;T++)D[T]=d[T].slice(),D[T][0]+=a+(b+1);L=L.concat(D)}var B=p._cartesianlayer.selectAll(".subplot").data(L,String);B.enter().append("g").attr("class",function(I){return"subplot "+I[0]}),B.order(),B.exit().call(m,p),B.each(function(I){var V=I[0],N=V.indexOf(a),F=N!==-1,U=F?V.slice(0,N):V,G=p._plots[V];G||(G=r.extendFlat({},p._plots[U]),G&&(G.id=V,p._plots[V]=G,p._subplots.cartesian.push(V))),G&&(G.plotgroup=M.select(this),x(c,G),F||(G.draglayer=n(p._draggers,"g",V)))})},W.rangePlot=function(c,p,f){x(c,p),s(c,p,f),i.style(c)};function u(c){var p=c._fullLayout,f=p._zindices.length,T=p._subplots.cartesian,k=T.length,P,g,A,E,d,_,L=[],b=[];for(P=0;P<k;P++){A=T[P],E=p._plots[A],d=E.xaxis,_=E.yaxis;var D=d._mainAxis,B=_._mainAxis,I=D._id+B._id,V=p._plots[I];E.overlays=[],I!==A&&V?(E.mainplot=I,E.mainplotinfo=V,b.push(A)):(E.mainplot=void 0,E.mainplotinfo=void 0,L.push(A))}for(P=0;P<b.length;P++)A=b[P],E=p._plots[A],E.mainplotinfo.overlays.push(E);var N=L.concat(b),F=[];for(P=0;P<k;P++){A=N[P],E=p._plots[A],d=E.xaxis,_=E.yaxis;for(var U=[],G=1;G<=f;G++){var Y="";for(G>1&&(Y+=a+G),U.push(A+Y),g=0;g<E.overlays.length;g++)U.push(E.overlays[g].id+Y)}U=U.concat([d.layer,_.layer,d.overlaying||"",_.overlaying||""]),F.push(U)}return F}function x(c,p){var f=p.plotgroup,T=p.id,k=T.indexOf(a),P=k!==-1,g=l.layerValue2layerClass[p.xaxis.layer],A=l.layerValue2layerClass[p.yaxis.layer],E=c._fullLayout._hasOnlyLargeSploms;if(p.mainplot){var d=p.mainplotinfo,_=d.plotgroup,L=T+"-x",b=T+"-y";p.minorGridlayer=d.minorGridlayer,p.gridlayer=d.gridlayer,p.zerolinelayer=d.zerolinelayer,n(d.overlinesBelow,"path",L),n(d.overlinesBelow,"path",b),n(d.overaxesBelow,"g",L),n(d.overaxesBelow,"g",b),p.plot=n(d.overplot,"g",T),n(d.overlinesAbove,"path",L),n(d.overlinesAbove,"path",b),n(d.overaxesAbove,"g",L),n(d.overaxesAbove,"g",b),p.xlines=_.select(".overlines-"+g).select("."+L),p.ylines=_.select(".overlines-"+A).select("."+b),p.xaxislayer=_.select(".overaxes-"+g).select("."+L),p.yaxislayer=_.select(".overaxes-"+A).select("."+b)}else if(E)p.xlines=n(f,"path","xlines-above"),p.ylines=n(f,"path","ylines-above"),p.xaxislayer=n(f,"g","xaxislayer-above"),p.yaxislayer=n(f,"g","yaxislayer-above");else{if(!P){var D=n(f,"g","layer-subplot");p.shapelayer=n(D,"g","shapelayer"),p.imagelayer=n(D,"g","imagelayer"),p.minorGridlayer=n(f,"g","minor-gridlayer"),p.gridlayer=n(f,"g","gridlayer"),p.zerolinelayer=n(f,"g","zerolinelayer");var B=n(f,"g","layer-between");p.shapelayerBetween=n(B,"g","shapelayer"),p.imagelayerBetween=n(B,"g","imagelayer"),n(f,"path","xlines-below"),n(f,"path","ylines-below"),p.overlinesBelow=n(f,"g","overlines-below"),n(f,"g","xaxislayer-below"),n(f,"g","yaxislayer-below"),p.overaxesBelow=n(f,"g","overaxes-below")}p.overplot=n(f,"g","overplot"),p.plot=n(p.overplot,"g",T),P||(p.xlines=n(f,"path","xlines-above"),p.ylines=n(f,"path","ylines-above"),p.overlinesAbove=n(f,"g","overlines-above"),n(f,"g","xaxislayer-above"),n(f,"g","yaxislayer-above"),p.overaxesAbove=n(f,"g","overaxes-above"),p.xlines=f.select(".xlines-"+g),p.ylines=f.select(".ylines-"+A),p.xaxislayer=f.select(".xaxislayer-"+g),p.yaxislayer=f.select(".yaxislayer-"+A))}P||(E||(o(p.minorGridlayer,"g",p.xaxis._id),o(p.minorGridlayer,"g",p.yaxis._id),p.minorGridlayer.selectAll("g").map(function(I){return I[0]}).sort(h.idSort),o(p.gridlayer,"g",p.xaxis._id),o(p.gridlayer,"g",p.yaxis._id),p.gridlayer.selectAll("g").map(function(I){return I[0]}).sort(h.idSort)),p.xlines.style("fill","none").classed("crisp",!0),p.ylines.style("fill","none").classed("crisp",!0))}function m(c,p){if(c){var f={};c.each(function(E){var d=E[0],_=M.select(this);_.remove(),y(d,p),f[d]=!0});for(var T in p._plots)for(var k=p._plots[T],P=k.overlays||[],g=0;g<P.length;g++){var A=P[g];f[A.id]&&A.plot.selectAll(".trace").remove()}}}function y(c,p){p._draggers.selectAll("g."+c).remove(),p._defs.select("#clip"+p._uid+c+"plot").remove()}W.toSVG=function(c){var p=c._fullLayout._glimages,f=M.select(c).selectAll(".svg-container"),T=f.filter(function(P,g){return g===f.size()-1}).selectAll(".gl-canvas-context, .gl-canvas-focus");function k(){var P=this,g=P.toDataURL("image/png"),A=p.append("svg:image");A.attr({xmlns:t.svg,"xlink:href":g,preserveAspectRatio:"none",x:0,y:0,width:P.style.width,height:P.style.height})}T.each(k)},W.updateFx=e(95284).updateFx},25829:function(nt,W,e){var M=e(80337),C=e(10229),r=e(94850).T,i=e(93049).extendFlat,w=e(78032).templatedArray,S=e(80712).descriptionWithDates,h=e(63821).ONEDAY,l=e(54826),t=l.HOUR_PATTERN,n=l.WEEKDAY_PATTERN,o={valType:"enumerated",values:["auto","linear","array"],editType:"ticks",impliedEdits:{tick0:void 0,dtick:void 0}},a=i({},o,{values:o.values.slice().concat(["sync"])});function s(A){return{valType:"integer",min:0,dflt:A?5:0,editType:"ticks"}}var u={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},x={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},m={valType:"data_array",editType:"ticks"},y={valType:"enumerated",values:["outside","inside",""],editType:"ticks"};function c(A){var E={valType:"number",min:0,editType:"ticks"};return A||(E.dflt=5),E}function p(A){var E={valType:"number",min:0,editType:"ticks"};return A||(E.dflt=1),E}var f={valType:"color",dflt:C.defaultLine,editType:"ticks"},T={valType:"color",dflt:C.lightLine,editType:"ticks"};function k(A){var E={valType:"number",min:0,editType:"ticks"};return A||(E.dflt=1),E}var P=i({},r,{editType:"ticks"}),g={valType:"boolean",editType:"ticks"};nt.exports={visible:{valType:"boolean",editType:"plot"},color:{valType:"color",dflt:C.defaultLine,editType:"ticks"},title:{text:{valType:"string",editType:"ticks"},font:M({editType:"ticks"}),standoff:{valType:"number",min:0,editType:"ticks"},editType:"ticks"},type:{valType:"enumerated",values:["-","linear","log","date","category","multicategory"],dflt:"-",editType:"calc",_noTemplating:!0},autotypenumbers:{valType:"enumerated",values:["convert types","strict"],dflt:"convert types",editType:"calc"},autorange:{valType:"enumerated",values:[!0,!1,"reversed","min reversed","max reversed","min","max"],dflt:!0,editType:"axrange",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},autorangeoptions:{minallowed:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},maxallowed:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},clipmin:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},clipmax:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},include:{valType:"any",arrayOk:!0,editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},editType:"plot"},rangemode:{valType:"enumerated",values:["normal","tozero","nonnegative"],dflt:"normal",editType:"plot"},range:{valType:"info_array",items:[{valType:"any",editType:"axrange",impliedEdits:{"^autorange":!1},anim:!0},{valType:"any",editType:"axrange",impliedEdits:{"^autorange":!1},anim:!0}],editType:"axrange",impliedEdits:{autorange:!1},anim:!0},minallowed:{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},maxallowed:{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},fixedrange:{valType:"boolean",dflt:!1,editType:"calc"},insiderange:{valType:"info_array",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},scaleanchor:{valType:"enumerated",values:[l.idRegex.x.toString(),l.idRegex.y.toString(),!1],editType:"plot"},scaleratio:{valType:"number",min:0,dflt:1,editType:"plot"},constrain:{valType:"enumerated",values:["range","domain"],editType:"plot"},constraintoward:{valType:"enumerated",values:["left","center","right","top","middle","bottom"],editType:"plot"},matches:{valType:"enumerated",values:[l.idRegex.x.toString(),l.idRegex.y.toString()],editType:"calc"},rangebreaks:w("rangebreak",{enabled:{valType:"boolean",dflt:!0,editType:"calc"},bounds:{valType:"info_array",items:[{valType:"any",editType:"calc"},{valType:"any",editType:"calc"}],editType:"calc"},pattern:{valType:"enumerated",values:[n,t,""],editType:"calc"},values:{valType:"info_array",freeLength:!0,editType:"calc",items:{valType:"any",editType:"calc"}},dvalue:{valType:"number",editType:"calc",min:0,dflt:h},editType:"calc"}),tickmode:a,nticks:s(),tick0:u,dtick:x,ticklabelstep:{valType:"integer",min:1,dflt:1,editType:"ticks"},tickvals:m,ticktext:{valType:"data_array",editType:"ticks"},ticks:y,tickson:{valType:"enumerated",values:["labels","boundaries"],dflt:"labels",editType:"ticks"},ticklabelmode:{valType:"enumerated",values:["instant","period"],dflt:"instant",editType:"ticks"},ticklabelposition:{valType:"enumerated",values:["outside","inside","outside top","inside top","outside left","inside left","outside right","inside right","outside bottom","inside bottom"],dflt:"outside",editType:"calc"},ticklabeloverflow:{valType:"enumerated",values:["allow","hide past div","hide past domain"],editType:"calc"},ticklabelshift:{valType:"integer",dflt:0,editType:"ticks"},ticklabelstandoff:{valType:"integer",dflt:0,editType:"ticks"},ticklabelindex:{valType:"integer",arrayOk:!0,editType:"calc"},mirror:{valType:"enumerated",values:[!0,"ticks",!1,"all","allticks"],dflt:!1,editType:"ticks+layoutstyle"},ticklen:c(),tickwidth:p(),tickcolor:f,showticklabels:{valType:"boolean",dflt:!0,editType:"ticks"},labelalias:{valType:"any",dflt:!1,editType:"ticks"},automargin:{valType:"flaglist",flags:["height","width","left","right","top","bottom"],extras:[!0,!1],dflt:!1,editType:"ticks"},showspikes:{valType:"boolean",dflt:!1,editType:"modebar"},spikecolor:{valType:"color",dflt:null,editType:"none"},spikethickness:{valType:"number",dflt:3,editType:"none"},spikedash:i({},r,{dflt:"dash",editType:"none"}),spikemode:{valType:"flaglist",flags:["toaxis","across","marker"],dflt:"toaxis",editType:"none"},spikesnap:{valType:"enumerated",values:["data","cursor","hovered data"],dflt:"hovered data",editType:"none"},tickfont:M({editType:"ticks"}),tickangle:{valType:"angle",dflt:"auto",editType:"ticks"},autotickangles:{valType:"info_array",freeLength:!0,items:{valType:"angle"},dflt:[0,30,90],editType:"ticks"},tickprefix:{valType:"string",dflt:"",editType:"ticks"},showtickprefix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},ticksuffix:{valType:"string",dflt:"",editType:"ticks"},showticksuffix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},showexponent:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},exponentformat:{valType:"enumerated",values:["none","e","E","power","SI","B"],dflt:"B",editType:"ticks"},minexponent:{valType:"number",dflt:3,min:0,editType:"ticks"},separatethousands:{valType:"boolean",dflt:!1,editType:"ticks"},tickformat:{valType:"string",dflt:"",editType:"ticks",description:S("tick label")},tickformatstops:w("tickformatstop",{enabled:{valType:"boolean",dflt:!0,editType:"ticks"},dtickrange:{valType:"info_array",items:[{valType:"any",editType:"ticks"},{valType:"any",editType:"ticks"}],editType:"ticks"},value:{valType:"string",dflt:"",editType:"ticks"},editType:"ticks"}),hoverformat:{valType:"string",dflt:"",editType:"none",description:S("hover text")},showline:{valType:"boolean",dflt:!1,editType:"ticks+layoutstyle"},linecolor:{valType:"color",dflt:C.defaultLine,editType:"layoutstyle"},linewidth:{valType:"number",min:0,dflt:1,editType:"ticks+layoutstyle"},showgrid:g,gridcolor:T,gridwidth:k(),griddash:P,zeroline:{valType:"boolean",editType:"ticks"},zerolinecolor:{valType:"color",dflt:C.defaultLine,editType:"ticks"},zerolinewidth:{valType:"number",dflt:1,editType:"ticks"},showdividers:{valType:"boolean",dflt:!0,editType:"ticks"},dividercolor:{valType:"color",dflt:C.defaultLine,editType:"ticks"},dividerwidth:{valType:"number",dflt:1,editType:"ticks"},anchor:{valType:"enumerated",values:["free",l.idRegex.x.toString(),l.idRegex.y.toString()],editType:"plot"},side:{valType:"enumerated",values:["top","bottom","left","right"],editType:"plot"},overlaying:{valType:"enumerated",values:["free",l.idRegex.x.toString(),l.idRegex.y.toString()],editType:"plot"},minor:{tickmode:o,nticks:s("minor"),tick0:u,dtick:x,tickvals:m,ticks:y,ticklen:c("minor"),tickwidth:p("minor"),tickcolor:f,gridcolor:T,gridwidth:k("minor"),griddash:P,showgrid:g,editType:"ticks"},layer:{valType:"enumerated",values:["above traces","below traces"],dflt:"above traces",editType:"plot"},domain:{valType:"info_array",items:[{valType:"number",min:0,max:1,editType:"plot"},{valType:"number",min:0,max:1,editType:"plot"}],dflt:[0,1],editType:"plot"},position:{valType:"number",min:0,max:1,dflt:0,editType:"plot"},autoshift:{valType:"boolean",dflt:!1,editType:"plot"},shift:{valType:"number",editType:"plot"},categoryorder:{valType:"enumerated",values:["trace","category ascending","category descending","array","total ascending","total descending","min ascending","min descending","max ascending","max descending","sum ascending","sum descending","mean ascending","mean descending","geometric mean ascending","geometric mean descending","median ascending","median descending"],dflt:"trace",editType:"calc"},categoryarray:{valType:"data_array",editType:"calc"},uirevision:{valType:"any",editType:"none"},editType:"calc",_deprecated:{autotick:{valType:"boolean",editType:"ticks"},title:{valType:"string",editType:"ticks"},titlefont:M({editType:"ticks"})}}},74098:function(nt,W,e){var M=e(34809),C=e(78766),r=e(36040).isUnifiedHover,i=e(45265),w=e(78032),S=e(6704),h=e(25829),l=e(4392),t=e(97655),n=e(84391),o=e(40957),a=e(5975),s=a.id2name,u=a.name2id,x=e(54826).AX_ID_PATTERN,m=e(33626),y=m.traceIs,c=m.getComponentMethod;function p(f,T,k){Array.isArray(f[T])?f[T].push(k):f[T]=[k]}nt.exports=function(f,T,k){var P=T.autotypenumbers,g={},A={},E={},d={},_={},L={},b={},D={},B={},I={},V,N;for(V=0;V<k.length;V++){var F=k[V];if(!(!y(F,"cartesian")&&!y(F,"gl2d"))){var U;if(F.xaxis)U=s(F.xaxis),p(g,U,F);else if(F.xaxes)for(N=0;N<F.xaxes.length;N++)p(g,s(F.xaxes[N]),F);var G;if(F.yaxis)G=s(F.yaxis),p(g,G,F);else if(F.yaxes)for(N=0;N<F.yaxes.length;N++)p(g,s(F.yaxes[N]),F);if(F.type==="funnel"?F.orientation==="h"?(U&&(A[U]=!0),G&&(b[G]=!0)):G&&(E[G]=!0):F.type==="image"?(G&&(D[G]=!0),U&&(D[U]=!0)):(G&&(_[G]=!0,L[G]=!0),(!y(F,"carpet")||F.type==="carpet"&&!F._cheater)&&U&&(d[U]=!0)),F.type==="carpet"&&F._cheater&&U&&(A[U]=!0),y(F,"2dMap")&&(B[U]=!0,B[G]=!0),y(F,"oriented")){var Y=F.orientation==="h"?G:U;I[Y]=!0}}}var Q=T._subplots,ft=Q.xaxis,ut=Q.yaxis,lt=M.simpleMap(ft,s),K=M.simpleMap(ut,s),$=lt.concat(K),H=C.background;ft.length&&ut.length&&(H=M.coerce(f,T,S,"plot_bgcolor"));var at=C.combine(H,T.paper_bgcolor),ct,et,Z,ot,st;function dt(){var ae=g[ct]||[];st._traceIndices=ae.map(function(vt){return vt._expandedIndex}),st._annIndices=[],st._shapeIndices=[],st._selectionIndices=[],st._imgIndices=[],st._subplotsWith=[],st._counterAxes=[],st._name=st._attr=ct,st._id=et}function xt(ae,vt){return M.coerce(ot,st,h,ae,vt)}function At(ae,vt){return M.coerce2(ot,st,h,ae,vt)}function St(ae){return ae==="x"?ut:ft}function Nt(ae,vt){for(var Mt=ae==="x"?lt:K,Lt=[],$t=0;$t<Mt.length;$t++){var ge=Mt[$t];ge!==vt&&!(f[ge]||{}).overlaying&&Lt.push(u(ge))}return Lt}var Wt={x:St("x"),y:St("y")},Vt=Wt.x.concat(Wt.y),jt={},Dt=[];function kt(){var ae=ot.matches;x.test(ae)&&Vt.indexOf(ae)===-1&&(jt[ae]=ot.type,Dt=Object.keys(jt))}var Bt=i(f,T),Ot=r(Bt);for(V=0;V<$.length;V++){ct=$[V],et=u(ct),Z=ct.charAt(0),M.isPlainObject(f[ct])||(f[ct]={}),ot=f[ct],st=w.newContainer(T,ct,Z+"axis"),dt();var Ht=Z==="x"&&!d[ct]&&A[ct]||Z==="y"&&!_[ct]&&E[ct],ye=Z==="y"&&(!L[ct]&&b[ct]||D[ct]),Qt={hasMinor:!0,letter:Z,font:T.font,outerTicks:B[ct],showGrid:!I[ct],data:g[ct]||[],bgColor:at,calendar:T.calendar,automargin:!0,visibleDflt:Ht,reverseDflt:ye,autotypenumbersDflt:P,splomStash:((T._splomAxes||{})[Z]||{})[et],noAutotickangles:Z==="y"};xt("uirevision",T.uirevision),l(ot,st,xt,Qt),t(ot,st,xt,Qt,T);var _e=Ot&&Z===Bt.charAt(0),ie=At("spikecolor",Ot?st.color:void 0),Ae=At("spikethickness",Ot?1.5:void 0),Pe=At("spikedash",Ot?"dot":void 0),Oe=At("spikemode",Ot?"across":void 0),je=At("spikesnap"),Le=xt("showspikes",!!_e||!!ie||!!Ae||!!Pe||!!Oe||!!je);Le||(delete st.spikecolor,delete st.spikethickness,delete st.spikedash,delete st.spikemode,delete st.spikesnap);var Ie=s(ot.overlaying),Ut=[0,1];if(T[Ie]!==void 0){var ee=s(T[Ie].anchor);T[ee]!==void 0&&(Ut=T[ee].domain)}o(ot,st,xt,{letter:Z,counterAxes:Wt[Z],overlayableAxes:Nt(Z,ct),grid:T.grid,overlayingDomain:Ut}),xt("title.standoff"),kt(),st._input=ot}for(V=0;V<Dt.length;){et=Dt[V++],ct=s(et),Z=ct.charAt(0),M.isPlainObject(f[ct])||(f[ct]={}),ot=f[ct],st=w.newContainer(T,ct,Z+"axis"),dt();var Kt={letter:Z,font:T.font,outerTicks:B[ct],showGrid:!I[ct],data:[],bgColor:at,calendar:T.calendar,automargin:!0,visibleDflt:!1,reverseDflt:!1,autotypenumbersDflt:P,splomStash:((T._splomAxes||{})[Z]||{})[et]};xt("uirevision",T.uirevision),st.type=jt[et]||"linear",t(ot,st,xt,Kt,T),o(ot,st,xt,{letter:Z,counterAxes:Wt[Z],overlayableAxes:Nt(Z,ct),grid:T.grid}),xt("fixedrange"),kt(),st._input=ot}var ne=c("rangeslider","handleDefaults"),zt=c("rangeselector","handleDefaults");for(V=0;V<lt.length;V++)ct=lt[V],ot=f[ct],st=T[ct],ne(f,T,ct),st.type==="date"&&zt(ot,st,T,K,st.calendar),xt("fixedrange");for(V=0;V<K.length;V++){ct=K[V],ot=f[ct],st=T[ct];var qt=T[s(st.anchor)],Zt=c("rangeslider","isVisible")(qt);xt("fixedrange",Zt)}n.handleDefaults(f,T,{axIds:Vt.concat(Dt).sort(a.idSort),axHasImage:D})}},97405:function(nt,W,e){var M=e(65657).mix,C=e(10229),r=e(34809);nt.exports=function(i,w,S,h){h=h||{};var l=h.dfltColor;function t(E,d){return r.coerce2(i,w,h.attributes,E,d)}var n=t("linecolor",l),o=t("linewidth"),a=S("showline",h.showLine||!!n||!!o);a||(delete w.linecolor,delete w.linewidth);var s=M(l,h.bgColor,h.blend||C.lightFraction).toRgbString(),u=t("gridcolor",s),x=t("gridwidth"),m=t("griddash"),y=S("showgrid",h.showGrid||!!u||!!x||!!m);if(y||(delete w.gridcolor,delete w.gridwidth,delete w.griddash),h.hasMinor){var c=M(w.gridcolor,h.bgColor,67).toRgbString(),p=t("minor.gridcolor",c),f=t("minor.gridwidth",w.gridwidth||1),T=t("minor.griddash",w.griddash||"solid"),k=S("minor.showgrid",!!p||!!f||!!T);k||(delete w.minor.gridcolor,delete w.minor.gridwidth,delete w.minor.griddash)}if(!h.noZeroLine){var P=t("zerolinecolor",l),g=t("zerolinewidth"),A=S("zeroline",h.showGrid||!!P||!!g);A||(delete w.zerolinecolor,delete w.zerolinewidth)}}},40957:function(nt,W,e){var M=e(10721),C=e(34809);nt.exports=function(r,i,w,S){var h=S.counterAxes||[],l=S.overlayableAxes||[],t=S.letter,n=S.grid,o=S.overlayingDomain,a,s,u,x,m,y;n&&(s=n._domains[t][n._axisMap[i._id]],a=n._anchors[i._id],s&&(u=n[t+"side"].split(" ")[0],x=n.domain[t][u==="right"||u==="top"?1:0])),s=s||[0,1],a=a||(M(r.position)?"free":h[0]||"free"),u=u||(t==="x"?"bottom":"left"),x=x||0,m=0,y=!1;var c=C.coerce(r,i,{anchor:{valType:"enumerated",values:["free"].concat(h),dflt:a}},"anchor"),p=C.coerce(r,i,{side:{valType:"enumerated",values:t==="x"?["bottom","top"]:["left","right"],dflt:u}},"side");if(c==="free"){if(t==="y"){var f=w("autoshift");f&&(x=p==="left"?o[0]:o[1],y=i.automargin?i.automargin:!0,m=p==="left"?-3:3),w("shift",m)}w("position",x)}w("automargin",y);var T=!1;if(l.length&&(T=C.coerce(r,i,{overlaying:{valType:"enumerated",values:[!1].concat(l),dflt:!1}},"overlaying")),!T){var k=w("domain",s);k[0]>k[1]-.000244140625&&(i.domain=s),C.noneOrAll(r.domain,i.domain,s),i.tickmode==="sync"&&(i.tickmode="auto")}return w("layer"),i}},54616:function(nt,W,e){var M=e(87703);nt.exports=function(C,r,i,w,S){S||(S={});var h=S.tickSuffixDflt,l=M(C),t=i("tickprefix");t&&i("showtickprefix",l);var n=i("ticksuffix",h);n&&i("showticksuffix",l)}},90259:function(nt,W,e){var M=e(75511);nt.exports=function(C,r,i,w){var S=r._template||{},h=r.type||S.type||"-";i("minallowed"),i("maxallowed");var l=i("range");if(!l){var t;!w.noInsiderange&&h!=="log"&&(t=i("insiderange"),t&&(t[0]===null||t[1]===null)&&(r.insiderange=!1,t=void 0),t&&(l=i("range",t)))}var n=r.getAutorangeDflt(l,w),o=i("autorange",n),a;l&&(l[0]===null&&l[1]===null||(l[0]===null||l[1]===null)&&(o==="reversed"||o===!0)||l[0]!==null&&(o==="min"||o==="max reversed")||l[1]!==null&&(o==="max"||o==="min reversed"))&&(l=void 0,delete r.range,r.autorange=!0,a=!0),a||(n=r.getAutorangeDflt(l,w),o=i("autorange",n)),o&&(M(i,o,l),(h==="linear"||h==="-")&&i("rangemode")),r.cleanRange()}},67611:function(nt,W,e){var M=e(4530).FROM_BL;nt.exports=function(C,r,i){i===void 0&&(i=M[C.constraintoward||"center"]);var w=[C.r2l(C.range[0]),C.r2l(C.range[1])],S=w[0]+(w[1]-w[0])*i;C.range=C._input.range=[C.l2r(S+(w[0]-S)*r),C.l2r(S+(w[1]-S)*r)],C.setScale()}},19091:function(nt,W,e){var M=e(45568),C=e(42696).aL,r=e(34809),i=r.numberFormat,w=e(10721),S=r.cleanNumber,h=r.ms2DateTime,l=r.dateTime2ms,t=r.ensureNumber,n=r.isArrayOrTypedArray,o=e(63821),a=o.FP_SAFE,s=o.BADNUM,u=o.LOG_CLIP,x=o.ONEWEEK,m=o.ONEDAY,y=o.ONEHOUR,c=o.ONEMIN,p=o.ONESEC,f=e(5975),T=e(54826),k=T.HOUR_PATTERN,P=T.WEEKDAY_PATTERN;function g(E){return Math.pow(10,E)}function A(E){return E!=null}nt.exports=function(E,d){d=d||{};var _=E._id||"x",L=_.charAt(0);function b($,H){if($>0)return Math.log($)/Math.LN10;if($<=0&&H&&E.range&&E.range.length===2){var at=E.range[0],ct=E.range[1];return .5*(at+ct-2*u*Math.abs(at-ct))}else return s}function D($,H,at,ct){if((ct||{}).msUTC&&w($))return+$;var et=l($,at||E.calendar);if(et===s)if(w($)){$=+$;var Z=Math.floor(r.mod($+.05,1)*10),ot=Math.round($-Z/10);et=l(new Date(ot))+Z/10}else return s;return et}function B($,H,at){return h($,H,at||E.calendar)}function I($){return E._categories[Math.round($)]}function V($){if(A($)){if(E._categoriesMap===void 0&&(E._categoriesMap={}),E._categoriesMap[$]!==void 0)return E._categoriesMap[$];E._categories.push(typeof $=="number"?String($):$);var H=E._categories.length-1;return E._categoriesMap[$]=H,H}return s}function N($,H){for(var at=new Array(H),ct=0;ct<H;ct++){var et=($[0]||[])[ct],Z=($[1]||[])[ct];at[ct]=F([et,Z])}return at}function F($){if(E._categoriesMap)return E._categoriesMap[$]}function U($){var H=F($);if(H!==void 0)return H;if(w($))return+$}function G($){return w($)?+$:F($)}function Y($,H,at){return M.round(at+H*$,2)}function Q($,H,at){return($-at)/H}var ft=function($){return w($)?Y($,E._m,E._b):s},ut=function($){return Q($,E._m,E._b)};if(E.rangebreaks){var lt=L==="y";ft=function($){if(!w($))return s;var H=E._rangebreaks.length;if(!H)return Y($,E._m,E._b);var at=lt;E.range[0]>E.range[1]&&(at=!at);for(var ct=at?-1:1,et=ct*$,Z=0,ot=0;ot<H;ot++){var st=ct*E._rangebreaks[ot].min,dt=ct*E._rangebreaks[ot].max;if(et<st)break;if(et>dt)Z=ot+1;else{Z=et<(st+dt)/2?ot:ot+1;break}}var xt=E._B[Z]||0;return isFinite(xt)?Y($,E._m2,xt):0},ut=function($){var H=E._rangebreaks.length;if(!H)return Q($,E._m,E._b);for(var at=0,ct=0;ct<H&&!($<E._rangebreaks[ct].pmin);ct++)$>E._rangebreaks[ct].pmax&&(at=ct+1);return Q($,E._m2,E._B[at])}}E.c2l=E.type==="log"?b:t,E.l2c=E.type==="log"?g:t,E.l2p=ft,E.p2l=ut,E.c2p=E.type==="log"?function($,H){return ft(b($,H))}:ft,E.p2c=E.type==="log"?function($){return g(ut($))}:ut,["linear","-"].indexOf(E.type)!==-1?(E.d2r=E.r2d=E.d2c=E.r2c=E.d2l=E.r2l=S,E.c2d=E.c2r=E.l2d=E.l2r=t,E.d2p=E.r2p=function($){return E.l2p(S($))},E.p2d=E.p2r=ut,E.cleanPos=t):E.type==="log"?(E.d2r=E.d2l=function($,H){return b(S($),H)},E.r2d=E.r2c=function($){return g(S($))},E.d2c=E.r2l=S,E.c2d=E.l2r=t,E.c2r=b,E.l2d=g,E.d2p=function($,H){return E.l2p(E.d2r($,H))},E.p2d=function($){return g(ut($))},E.r2p=function($){return E.l2p(S($))},E.p2r=ut,E.cleanPos=t):E.type==="date"?(E.d2r=E.r2d=r.identity,E.d2c=E.r2c=E.d2l=E.r2l=D,E.c2d=E.c2r=E.l2d=E.l2r=B,E.d2p=E.r2p=function($,H,at){return E.l2p(D($,0,at))},E.p2d=E.p2r=function($,H,at){return B(ut($),H,at)},E.cleanPos=function($){return r.cleanDate($,s,E.calendar)}):E.type==="category"?(E.d2c=E.d2l=V,E.r2d=E.c2d=E.l2d=I,E.d2r=E.d2l_noadd=U,E.r2c=function($){var H=G($);return H!==void 0?H:E.fraction2r(.5)},E.l2r=E.c2r=t,E.r2l=G,E.d2p=function($){return E.l2p(E.r2c($))},E.p2d=function($){return I(ut($))},E.r2p=E.d2p,E.p2r=ut,E.cleanPos=function($){return typeof $=="string"&&$!==""?$:t($)}):E.type==="multicategory"&&(E.r2d=E.c2d=E.l2d=I,E.d2r=E.d2l_noadd=U,E.r2c=function($){var H=U($);return H!==void 0?H:E.fraction2r(.5)},E.r2c_just_indices=F,E.l2r=E.c2r=t,E.r2l=U,E.d2p=function($){return E.l2p(E.r2c($))},E.p2d=function($){return I(ut($))},E.r2p=E.d2p,E.p2r=ut,E.cleanPos=function($){return Array.isArray($)||typeof $=="string"&&$!==""?$:t($)},E.setupMultiCategory=function($){var H=E._traceIndices,at,ct,et=E._matchGroup;if(et&&E._categories.length===0){for(var Z in et)if(Z!==_){var ot=d[f.id2name(Z)];H=H.concat(ot._traceIndices)}}var st=[[0,{}],[0,{}]],dt=[];for(at=0;at<H.length;at++){var xt=$[H[at]];if(L in xt){var At=xt[L],St=xt._length||r.minRowLength(At);if(n(At[0])&&n(At[1]))for(ct=0;ct<St;ct++){var Nt=At[0][ct],Wt=At[1][ct];A(Nt)&&A(Wt)&&(dt.push([Nt,Wt]),Nt in st[0][1]||(st[0][1][Nt]=st[0][0]++),Wt in st[1][1]||(st[1][1][Wt]=st[1][0]++))}}}for(dt.sort(function(Vt,jt){var Dt=st[0][1],kt=Dt[Vt[0]]-Dt[jt[0]];if(kt)return kt;var Bt=st[1][1];return Bt[Vt[1]]-Bt[jt[1]]}),at=0;at<dt.length;at++)V(dt[at])}),E.fraction2r=function($){var H=E.r2l(E.range[0]),at=E.r2l(E.range[1]);return E.l2r(H+$*(at-H))},E.r2fraction=function($){var H=E.r2l(E.range[0]),at=E.r2l(E.range[1]);return(E.r2l($)-H)/(at-H)},E.limitRange=function($){var H=E.minallowed,at=E.maxallowed;if(!(H===void 0&&at===void 0)){$||($="range");var ct=r.nestedProperty(E,$).get(),et=r.simpleMap(ct,E.r2l),Z=et[1]<et[0];Z&&et.reverse();var ot=r.simpleMap([H,at],E.r2l);if(H!==void 0&&et[0]<ot[0]&&(ct[Z?1:0]=H),at!==void 0&&et[1]>ot[1]&&(ct[Z?0:1]=at),ct[0]===ct[1]){var st=E.l2r(H),dt=E.l2r(at);if(H!==void 0){var xt=st+1;at!==void 0&&(xt=Math.min(xt,dt)),ct[Z?1:0]=xt}if(at!==void 0){var At=dt+1;H!==void 0&&(At=Math.max(At,st)),ct[Z?0:1]=At}}}},E.cleanRange=function($,H){E._cleanRange($,H),E.limitRange($)},E._cleanRange=function($,H){H||(H={}),$||($="range");var at=r.nestedProperty(E,$).get(),ct,et;if(E.type==="date"?et=r.dfltRange(E.calendar):L==="y"?et=T.DFLTRANGEY:E._name==="realaxis"?et=[0,1]:et=H.dfltRange||T.DFLTRANGEX,et=et.slice(),(E.rangemode==="tozero"||E.rangemode==="nonnegative")&&(et[0]=0),!at||at.length!==2){r.nestedProperty(E,$).set(et);return}var Z=at[0]===null,ot=at[1]===null;for(E.type==="date"&&!E.autorange&&(at[0]=r.cleanDate(at[0],s,E.calendar),at[1]=r.cleanDate(at[1],s,E.calendar)),ct=0;ct<2;ct++)if(E.type==="date"){if(!r.isDateTime(at[ct],E.calendar)){E[$]=et;break}if(E.r2l(at[0])===E.r2l(at[1])){var st=r.constrain(E.r2l(at[0]),r.MIN_MS+1e3,r.MAX_MS-1e3);at[0]=E.l2r(st-1e3),at[1]=E.l2r(st+1e3);break}}else{if(!w(at[ct]))if(!(Z||ot)&&w(at[1-ct]))at[ct]=at[1-ct]*(ct?10:.1);else{E[$]=et;break}if(at[ct]<-a?at[ct]=-a:at[ct]>a&&(at[ct]=a),at[0]===at[1]){var dt=Math.max(1,Math.abs(at[0]*1e-6));at[0]-=dt,at[1]+=dt}}},E.setScale=function($){var H=d._size;if(E.overlaying){var at=f.getFromId({_fullLayout:d},E.overlaying);E.domain=at.domain}var ct=$&&E._r?"_r":"range",et=E.calendar;E.cleanRange(ct);var Z=E.r2l(E[ct][0],et),ot=E.r2l(E[ct][1],et),st=L==="y";if(st?(E._offset=H.t+(1-E.domain[1])*H.h,E._length=H.h*(E.domain[1]-E.domain[0]),E._m=E._length/(Z-ot),E._b=-E._m*ot):(E._offset=H.l+E.domain[0]*H.w,E._length=H.w*(E.domain[1]-E.domain[0]),E._m=E._length/(ot-Z),E._b=-E._m*Z),E._rangebreaks=[],E._lBreaks=0,E._m2=0,E._B=[],E.rangebreaks){var dt,xt;if(E._rangebreaks=E.locateBreaks(Math.min(Z,ot),Math.max(Z,ot)),E._rangebreaks.length){for(dt=0;dt<E._rangebreaks.length;dt++)xt=E._rangebreaks[dt],E._lBreaks+=Math.abs(xt.max-xt.min);var At=st;Z>ot&&(At=!At),At&&E._rangebreaks.reverse();var St=At?-1:1;for(E._m2=St*E._length/(Math.abs(ot-Z)-E._lBreaks),E._B.push(-E._m2*(st?ot:Z)),dt=0;dt<E._rangebreaks.length;dt++)xt=E._rangebreaks[dt],E._B.push(E._B[E._B.length-1]-St*E._m2*(xt.max-xt.min));for(dt=0;dt<E._rangebreaks.length;dt++)xt=E._rangebreaks[dt],xt.pmin=ft(xt.min),xt.pmax=ft(xt.max)}}if(!isFinite(E._m)||!isFinite(E._b)||E._length<0)throw d._replotting=!1,new Error("Something went wrong with axis scaling")},E.maskBreaks=function($){var H=E.rangebreaks||[],at,ct,et,Z,ot;H._cachedPatterns||(H._cachedPatterns=H.map(function(Dt){return Dt.enabled&&Dt.bounds?r.simpleMap(Dt.bounds,Dt.pattern?S:E.d2c):null})),H._cachedValues||(H._cachedValues=H.map(function(Dt){return Dt.enabled&&Dt.values?r.simpleMap(Dt.values,E.d2c).sort(r.sorterAsc):null}));for(var st=0;st<H.length;st++){var dt=H[st];if(dt.enabled){if(dt.bounds){var xt=dt.pattern;switch(at=H._cachedPatterns[st],ct=at[0],et=at[1],xt){case P:ot=new Date($),Z=ot.getUTCDay(),ct>et&&(et+=7,Z<ct&&(Z+=7));break;case k:ot=new Date($);var At=ot.getUTCHours(),St=ot.getUTCMinutes(),Nt=ot.getUTCSeconds(),Wt=ot.getUTCMilliseconds();Z=At+(St/60+Nt/3600+Wt/36e5),ct>et&&(et+=24,Z<ct&&(Z+=24));break;case"":Z=$;break}if(Z>=ct&&Z<et)return s}else for(var Vt=H._cachedValues[st],jt=0;jt<Vt.length;jt++)if(ct=Vt[jt],et=ct+dt.dvalue,$>=ct&&$<et)return s}}return $},E.locateBreaks=function($,H){var at,ct,et,Z,ot=[];if(!E.rangebreaks)return ot;var st=E.rangebreaks.slice().sort(function(Bt,Ot){return Bt.pattern===P&&Ot.pattern===k?-1:Ot.pattern===P&&Bt.pattern===k?1:0}),dt=function(Bt,Ot){if(Bt=r.constrain(Bt,$,H),Ot=r.constrain(Ot,$,H),Bt!==Ot){for(var Ht=!0,ye=0;ye<ot.length;ye++){var Qt=ot[ye];Bt<Qt.max&&Ot>=Qt.min&&(Bt<Qt.min&&(Qt.min=Bt),Ot>Qt.max&&(Qt.max=Ot),Ht=!1)}Ht&&ot.push({min:Bt,max:Ot})}};for(at=0;at<st.length;at++){var xt=st[at];if(xt.enabled)if(xt.bounds){var At=$,St=H;xt.pattern&&(At=Math.floor(At)),ct=r.simpleMap(xt.bounds,xt.pattern?S:E.r2l),et=ct[0],Z=ct[1];var Nt=new Date(At),Wt,Vt;switch(xt.pattern){case P:Vt=x,Wt=((Z<et?7:0)+(Z-et))*m,At+=et*m-(Nt.getUTCDay()*m+Nt.getUTCHours()*y+Nt.getUTCMinutes()*c+Nt.getUTCSeconds()*p+Nt.getUTCMilliseconds());break;case k:Vt=m,Wt=((Z<et?24:0)+(Z-et))*y,At+=et*y-(Nt.getUTCHours()*y+Nt.getUTCMinutes()*c+Nt.getUTCSeconds()*p+Nt.getUTCMilliseconds());break;default:At=Math.min(ct[0],ct[1]),St=Math.max(ct[0],ct[1]),Vt=St-At,Wt=Vt}for(var jt=At;jt<St;jt+=Vt)dt(jt,jt+Wt)}else for(var Dt=r.simpleMap(xt.values,E.d2c),kt=0;kt<Dt.length;kt++)et=Dt[kt],Z=et+xt.dvalue,dt(et,Z)}return ot.sort(function(Bt,Ot){return Bt.min-Ot.min}),ot},E.makeCalcdata=function($,H,at){var ct,et,Z,ot,st=E.type,dt=st==="date"&&$[H+"calendar"];if(H in $){if(ct=$[H],ot=$._length||r.minRowLength(ct),r.isTypedArray(ct)&&(st==="linear"||st==="log")){if(ot===ct.length)return ct;if(ct.subarray)return ct.subarray(0,ot)}if(st==="multicategory")return N(ct,ot);for(et=new Array(ot),Z=0;Z<ot;Z++)et[Z]=E.d2c(ct[Z],0,dt,at)}else{var xt=H+"0"in $?E.d2c($[H+"0"],0,dt):0,At=$["d"+H]?Number($["d"+H]):1;for(ct=$[{x:"y",y:"x"}[H]],ot=$._length||ct.length,et=new Array(ot),Z=0;Z<ot;Z++)et[Z]=xt+Z*At}if(E.rangebreaks)for(Z=0;Z<ot;Z++)et[Z]=E.maskBreaks(et[Z]);return et},E.isValidRange=function($,H){return Array.isArray($)&&$.length===2&&(H&&$[0]===null||w(E.r2l($[0])))&&(H&&$[1]===null||w(E.r2l($[1])))},E.getAutorangeDflt=function($,H){var at=!E.isValidRange($,"nullOk");return at&&H&&H.reverseDflt?at="reversed":$&&($[0]===null&&$[1]===null?at=!0:$[0]===null&&$[1]!==null?at="min":$[0]!==null&&$[1]===null&&(at="max")),at},E.isReversed=function(){var $=E.autorange;return $==="reversed"||$==="min reversed"||$==="max reversed"},E.isPtWithinRange=function($,H){var at=E.c2l($[L],null,H),ct=E.r2l(E.range[0]),et=E.r2l(E.range[1]);return ct<et?ct<=at&&at<=et:et<=at&&at<=ct},E._emptyCategories=function(){E._categories=[],E._categoriesMap={}},E.clearCalc=function(){var $=E._matchGroup;if($){var H=null,at=null;for(var ct in $){var et=d[f.id2name(ct)];if(et._categories){H=et._categories,at=et._categoriesMap;break}}H&&at?(E._categories=H,E._categoriesMap=at):E._emptyCategories()}else E._emptyCategories();if(E._initialCategories)for(var Z=0;Z<E._initialCategories.length;Z++)V(E._initialCategories[Z])},E.sortByInitialCategories=function(){var $=[];if(E._emptyCategories(),E._initialCategories)for(var H=0;H<E._initialCategories.length;H++)V(E._initialCategories[H]);$=$.concat(E._traceIndices);var at=E._matchGroup;for(var ct in at)if(_!==ct){var et=d[f.id2name(ct)];et._categories=E._categories,et._categoriesMap=E._categoriesMap,$=$.concat(et._traceIndices)}return $};var K=d._d3locale;E.type==="date"&&(E._dateFormat=K?K.timeFormat:C,E._extraFormat=d._extraFormat),E._separators=d.separators,E._numFormat=K?K.numberFormat:i,delete E._minDtick,delete E._forceTick0}},87703:function(nt){nt.exports=function(W){var e=["showexponent","showtickprefix","showticksuffix"],M=e.filter(function(r){return W[r]!==void 0}),C=function(r){return W[r]===W[M[0]]};if(M.every(C)||M.length===1)return W[M[0]]}},12036:function(nt,W,e){var M=e(34809),C=e(78766).contrast,r=e(25829),i=e(87703),w=e(59008);nt.exports=function(h,l,t,n,o){o||(o={});var a=t("labelalias");M.isPlainObject(a)||delete l.labelalias;var s=i(h),u=t("showticklabels");if(u){o.noTicklabelshift||t("ticklabelshift"),o.noTicklabelstandoff||t("ticklabelstandoff");var x=o.font||{},m=l.color,y=l.ticklabelposition||"",c=y.indexOf("inside")!==-1?C(o.bgColor):m&&m!==r.color.dflt?m:x.color;if(M.coerceFont(t,"tickfont",x,{overrideDflt:{color:c}}),!o.noTicklabelstep&&n!=="multicategory"&&n!=="log"&&t("ticklabelstep"),!o.noAng){var p=t("tickangle");!o.noAutotickangles&&p==="auto"&&t("autotickangles")}if(n!=="category"){var f=t("tickformat");w(h,l,{name:"tickformatstops",inclusionAttr:"enabled",handleItemDefaults:S}),l.tickformatstops.length||delete l.tickformatstops,!o.noExp&&!f&&n!=="date"&&(t("showexponent",s),t("exponentformat"),t("minexponent"),t("separatethousands"))}}};function S(h,l){function t(o,a){return M.coerce(h,l,r.tickformatstops,o,a)}var n=t("enabled");n&&(t("dtickrange"),t("value"))}},87433:function(nt,W,e){var M=e(34809),C=e(25829);nt.exports=function(r,i,w,S){var h=S.isMinor,l=h?r.minor||{}:r,t=h?i.minor:i,n=h?C.minor:C,o=h?"minor.":"",a=M.coerce2(l,t,n,"ticklen",h?(i.ticklen||5)*.6:void 0),s=M.coerce2(l,t,n,"tickwidth",h?i.tickwidth||1:void 0),u=M.coerce2(l,t,n,"tickcolor",(h?i.tickcolor:void 0)||t.color),x=w(o+"ticks",!h&&S.outerTicks||a||s||u?"outside":"");x||(delete t.ticklen,delete t.tickwidth,delete t.tickcolor)}},22777:function(nt,W,e){var M=e(68599),C=e(34809).isArrayOrTypedArray,r=e(87800).isTypedArraySpec,i=e(87800).decodeTypedArraySpec;nt.exports=function(w,S,h,l,t){t||(t={});var n=t.isMinor,o=n?w.minor||{}:w,a=n?S.minor:S,s=n?"minor.":"";function u(k){var P=o[k];return r(P)&&(P=i(P)),P!==void 0?P:(a._template||{})[k]}var x=u("tick0"),m=u("dtick"),y=u("tickvals"),c=C(y)?"array":m?"linear":"auto",p=h(s+"tickmode",c);if(p==="auto"||p==="sync")h(s+"nticks");else if(p==="linear"){var f=a.dtick=M.dtick(m,l);a.tick0=M.tick0(x,l,S.calendar,f)}else if(l!=="multicategory"){var T=h(s+"tickvals");T===void 0?a.tickmode="auto":n||h("ticktext")}}},84982:function(nt,W,e){var M=e(45568),C=e(33626),r=e(34809),i=e(62203),w=e(29714);nt.exports=function(S,h,l,t){var n=S._fullLayout;if(h.length===0){w.redrawComponents(S);return}function o(T){var k=T.xaxis,P=T.yaxis;n._defs.select("#"+T.clipId+"> rect").call(i.setTranslate,0,0).call(i.setScale,1,1),T.plot.call(i.setTranslate,k._offset,P._offset).call(i.setScale,1,1);var g=T.plot.selectAll(".scatterlayer .trace");g.selectAll(".point").call(i.setPointGroupScale,1,1),g.selectAll(".textpoint").call(i.setTextPointsScale,1,1),g.call(i.hideOutsideRangePoints,T)}function a(T,k){var P=T.plotinfo,g=P.xaxis,A=P.yaxis,E=g._length,d=A._length,_=!!T.xr1,L=!!T.yr1,b=[];if(_){var D=r.simpleMap(T.xr0,g.r2l),B=r.simpleMap(T.xr1,g.r2l),I=D[1]-D[0],V=B[1]-B[0];b[0]=(D[0]*(1-k)+k*B[0]-D[0])/(D[1]-D[0])*E,b[2]=E*(1-k+k*V/I),g.range[0]=g.l2r(D[0]*(1-k)+k*B[0]),g.range[1]=g.l2r(D[1]*(1-k)+k*B[1])}else b[0]=0,b[2]=E;if(L){var N=r.simpleMap(T.yr0,A.r2l),F=r.simpleMap(T.yr1,A.r2l),U=N[1]-N[0],G=F[1]-F[0];b[1]=(N[1]*(1-k)+k*F[1]-N[1])/(N[0]-N[1])*d,b[3]=d*(1-k+k*G/U),A.range[0]=g.l2r(N[0]*(1-k)+k*F[0]),A.range[1]=A.l2r(N[1]*(1-k)+k*F[1])}else b[1]=0,b[3]=d;w.drawOne(S,g,{skipTitle:!0}),w.drawOne(S,A,{skipTitle:!0}),w.redrawComponents(S,[g._id,A._id]);var Y=_?E/b[2]:1,Q=L?d/b[3]:1,ft=_?b[0]:0,ut=L?b[1]:0,lt=_?b[0]/b[2]*E:0,K=L?b[1]/b[3]*d:0,$=g._offset-lt,H=A._offset-K;P.clipRect.call(i.setTranslate,ft,ut).call(i.setScale,1/Y,1/Q),P.plot.call(i.setTranslate,$,H).call(i.setScale,Y,Q),i.setPointGroupScale(P.zoomScalePts,1/Y,1/Q),i.setTextPointsScale(P.zoomScaleTxt,1/Y,1/Q)}var s;t&&(s=t());function u(){for(var T={},k=0;k<h.length;k++){var P=h[k],g=P.plotinfo.xaxis,A=P.plotinfo.yaxis;P.xr1&&(T[g._name+".range"]=P.xr1.slice()),P.yr1&&(T[A._name+".range"]=P.yr1.slice())}return s&&s(),C.call("relayout",S,T).then(function(){for(var E=0;E<h.length;E++)o(h[E].plotinfo)})}function x(){for(var T={},k=0;k<h.length;k++){var P=h[k],g=P.plotinfo.xaxis,A=P.plotinfo.yaxis;P.xr0&&(T[g._name+".range"]=P.xr0.slice()),P.yr0&&(T[A._name+".range"]=P.yr0.slice())}return C.call("relayout",S,T).then(function(){for(var E=0;E<h.length;E++)o(h[E].plotinfo)})}var m,y,c,p=M.ease(l.easing);S._transitionData._interruptCallbacks.push(function(){return window.cancelAnimationFrame(c),c=null,x()});function f(){y=Date.now();for(var T=Math.min(1,(y-m)/l.duration),k=p(T),P=0;P<h.length;P++)a(h[P],k);y-m>l.duration?(u(),c=window.cancelAnimationFrame(f)):c=window.requestAnimationFrame(f)}return m=Date.now(),c=window.requestAnimationFrame(f),Promise.resolve()}},4392:function(nt,W,e){var M=e(33626).traceIs,C=e(9666);nt.exports=function(h,l,t,n){t("autotypenumbers",n.autotypenumbersDflt);var o=t("type",(n.splomStash||{}).type);o==="-"&&(r(l,n.data),l.type==="-"?l.type="linear":h.type=l.type)};function r(h,l){if(h.type==="-"){var t=h._id,n=t.charAt(0),o;t.indexOf("scene")!==-1&&(t=n);var a=i(l,t,n);if(a){if(a.type==="histogram"&&n==={v:"y",h:"x"}[a.orientation||"v"]){h.type="linear";return}var s=n+"calendar",u=a[s],x={noMultiCategory:!M(a,"cartesian")||M(a,"noMultiCategory")};if(a.type==="box"&&a._hasPreCompStats&&n==={h:"x",v:"y"}[a.orientation||"v"]&&(x.noMultiCategory=!0),x.autotypenumbers=h.autotypenumbers,S(a,n)){var m=w(a),y=[];for(o=0;o<l.length;o++){var c=l[o];!M(c,"box-violin")||(c[n+"axis"]||n)!==t||(c[m]!==void 0?y.push(c[m][0]):c.name!==void 0?y.push(c.name):y.push("text"),c[s]!==u&&(u=void 0))}h.type=C(y,u,x)}else if(a.type==="splom"){var p=a.dimensions,f=p[a._axesDim[t]];f.visible&&(h.type=C(f.values,u,x))}else h.type=C(a[n]||[a[n+"0"]],u,x)}}}function i(h,l,t){for(var n=0;n<h.length;n++){var o=h[n];if(o.type==="splom"&&o._length>0&&(o["_"+t+"axes"]||{})[l]||(o[t+"axis"]||t)===l&&(S(o,t)||(o[t]||[]).length||o[t+"0"]))return o}}function w(h){return{v:"x",h:"y"}[h.orientation||"v"]}function S(h,l){var t=w(h),n=M(h,"box-violin"),o=M(h._fullInput||{},"candlestick");return n&&!o&&l===t&&h[t]===void 0&&h[t+"0"]===void 0}},90251:function(nt,W,e){var M=e(33626),C=e(34809);W.manageCommandObserver=function(l,t,n,o){var a={},s=!0;t&&t._commandObserver&&(a=t._commandObserver),a.cache||(a.cache={}),a.lookupTable={};var u=W.hasSimpleAPICommandBindings(l,n,a.lookupTable);if(t&&t._commandObserver){if(u)return a;if(t._commandObserver.remove)return t._commandObserver.remove(),t._commandObserver=null,a}if(u){r(l,u,a.cache),a.check=function(){if(s){var y=r(l,u,a.cache);return y.changed&&o&&a.lookupTable[y.value]!==void 0&&(a.disable(),Promise.resolve(o({value:y.value,type:u.type,prop:u.prop,traces:u.traces,index:a.lookupTable[y.value]})).then(a.enable,a.enable)),y.changed}};for(var x=["plotly_relayout","plotly_redraw","plotly_restyle","plotly_update","plotly_animatingframe","plotly_afterplot"],m=0;m<x.length;m++)l._internalOn(x[m],a.check);a.remove=function(){for(var y=0;y<x.length;y++)l._removeInternalListener(x[y],a.check)}}else C.log("Unable to automatically bind plot updates to API command"),a.lookupTable={},a.remove=function(){};return a.disable=function(){s=!1},a.enable=function(){s=!0},t&&(t._commandObserver=a),a},W.hasSimpleAPICommandBindings=function(l,t,n){var o,a=t.length,s;for(o=0;o<a;o++){var u,x=t[o],m=x.method,y=x.args;if(Array.isArray(y)||(y=[]),!m)return!1;var c=W.computeAPICommandBindings(l,m,y);if(c.length!==1)return!1;if(!s)s=c[0],Array.isArray(s.traces)&&s.traces.sort();else{if(u=c[0],u.type!==s.type||u.prop!==s.prop)return!1;if(Array.isArray(s.traces))if(Array.isArray(u.traces)){u.traces.sort();for(var p=0;p<s.traces.length;p++)if(s.traces[p]!==u.traces[p])return!1}else return!1;else if(u.prop!==s.prop)return!1}u=c[0];var f=u.value;if(Array.isArray(f))if(f.length===1)f=f[0];else return!1;n&&(n[f]=o)}return s};function r(l,t,n){var o,a,s,u=!1;if(t.type==="data")o=l._fullData[t.traces!==null?t.traces[0]:0];else if(t.type==="layout")o=l._fullLayout;else return!1;return a=C.nestedProperty(o,t.prop).get(),s=n[t.type]=n[t.type]||{},s.hasOwnProperty(t.prop)&&s[t.prop]!==a&&(u=!0),s[t.prop]=a,{changed:u,value:a}}W.executeAPICommand=function(l,t,n){if(t==="skip")return Promise.resolve();var o=M.apiMethodRegistry[t],a=[l];Array.isArray(n)||(n=[]);for(var s=0;s<n.length;s++)a.push(n[s]);return o.apply(null,a).catch(function(u){return C.warn("API call to Plotly."+t+" rejected.",u),Promise.reject(u)})},W.computeAPICommandBindings=function(l,t,n){var o;switch(Array.isArray(n)||(n=[]),t){case"restyle":o=S(l,n);break;case"relayout":o=w(l,n);break;case"update":o=S(l,[n[0],n[2]]).concat(w(l,[n[1]]));break;case"animate":o=i(l,n);break;default:o=[]}return o};function i(l,t){return Array.isArray(t[0])&&t[0].length===1&&["string","number"].indexOf(typeof t[0][0])!==-1?[{type:"layout",prop:"_currentFrame",value:t[0][0].toString()}]:[]}function w(l,t){var n=[],o=t[0],a={};if(typeof o=="string")a[o]=t[1];else if(C.isPlainObject(o))a=o;else return n;return h(a,function(s,u,x){n.push({type:"layout",prop:s,value:x})},"",0),n}function S(l,t){var n,o,a,s,u=[];if(o=t[0],a=t[1],n=t[2],s={},typeof o=="string")s[o]=a;else if(C.isPlainObject(o))s=o,n===void 0&&(n=a);else return u;return n===void 0&&(n=null),h(s,function(x,m,y){var c,p;if(Array.isArray(y)){p=y.slice();var f=Math.min(p.length,l.data.length);n&&(f=Math.min(f,n.length)),c=[];for(var T=0;T<f;T++)c[T]=n?n[T]:T}else p=y,c=n?n.slice():null;if(c===null)Array.isArray(p)&&(p=p[0]);else if(Array.isArray(c)){if(!Array.isArray(p)){var k=p;p=[];for(var P=0;P<c.length;P++)p[P]=k}p.length=Math.min(c.length,p.length)}u.push({type:"data",prop:x,traces:c,value:p})},"",0),u}function h(l,t,n,o){Object.keys(l).forEach(function(a){var s=l[a];if(a[0]!=="_"){var u=n+(o>0?".":"")+a;C.isPlainObject(s)?h(s,t,u,o+1):t(u,a,s)}})}},13792:function(nt,W,e){var M=e(93049).extendFlat;W.u=function(C,r){C=C||{},r=r||{};var i={valType:"info_array",editType:C.editType,items:[{valType:"number",min:0,max:1,editType:C.editType},{valType:"number",min:0,max:1,editType:C.editType}],dflt:[0,1]};C.name&&C.name+"",C.trace,r.description&&""+r.description;var w={x:M({},i,{}),y:M({},i,{}),editType:C.editType};return C.noGridCell||(w.row={valType:"integer",min:0,dflt:0,editType:C.editType},w.column={valType:"integer",min:0,dflt:0,editType:C.editType}),w},W.N=function(C,r,i,w){var S=w&&w.x||[0,1],h=w&&w.y||[0,1],l=r.grid;if(l){var t=i("domain.column");t!==void 0&&(t<l.columns?S=l._domains.x[t]:delete C.domain.column);var n=i("domain.row");n!==void 0&&(n<l.rows?h=l._domains.y[n]:delete C.domain.row)}var o=i("domain.x",S),a=i("domain.y",h);o[0]<o[1]||(C.domain.x=S.slice()),a[0]<a[1]||(C.domain.y=h.slice())}},80337:function(nt){nt.exports=function(W){var e=W.variantValues,M=W.editType,C=W.colorEditType;C===void 0&&(C=M);var r={editType:M,valType:"integer",min:1,max:1e3,extras:["normal","bold"],dflt:"normal"};W.noNumericWeightValues&&(r.valType="enumerated",r.values=r.extras,r.extras=void 0,r.min=void 0,r.max=void 0);var i={family:{valType:"string",noBlank:!0,strict:!0,editType:M},size:{valType:"number",min:1,editType:M},color:{valType:"color",editType:C},weight:r,style:{editType:M,valType:"enumerated",values:["normal","italic"],dflt:"normal"},variant:W.noFontVariant?void 0:{editType:M,valType:"enumerated",values:e||["normal","small-caps","all-small-caps","all-petite-caps","petite-caps","unicase"],dflt:"normal"},textcase:W.noFontTextcase?void 0:{editType:M,valType:"enumerated",values:["normal","word caps","upper","lower"],dflt:"normal"},lineposition:W.noFontLineposition?void 0:{editType:M,valType:"flaglist",flags:["under","over","through"],extras:["none"],dflt:"none"},shadow:W.noFontShadow?void 0:{editType:M,valType:"string",dflt:W.autoShadowDflt?"auto":"none"},editType:M};return W.autoSize&&(i.size.dflt="auto"),W.autoColor&&(i.color.dflt="auto"),W.arrayOk&&(i.family.arrayOk=!0,i.weight.arrayOk=!0,i.style.arrayOk=!0,W.noFontVariant||(i.variant.arrayOk=!0),W.noFontTextcase||(i.textcase.arrayOk=!0),W.noFontLineposition||(i.lineposition.arrayOk=!0),W.noFontShadow||(i.shadow.arrayOk=!0),i.size.arrayOk=!0,i.color.arrayOk=!0),i}},58935:function(nt){nt.exports={_isLinkedToArray:"frames_entry",group:{valType:"string"},name:{valType:"string"},traces:{valType:"any"},baseframe:{valType:"string"},data:{valType:"any"},layout:{valType:"any"}}},74285:function(nt,W){W.projNames={airy:"airy",aitoff:"aitoff","albers usa":"albersUsa",albers:"albers",august:"august","azimuthal equal area":"azimuthalEqualArea","azimuthal equidistant":"azimuthalEquidistant",baker:"baker",bertin1953:"bertin1953",boggs:"boggs",bonne:"bonne",bottomley:"bottomley",bromley:"bromley",collignon:"collignon","conic conformal":"conicConformal","conic equal area":"conicEqualArea","conic equidistant":"conicEquidistant",craig:"craig",craster:"craster","cylindrical equal area":"cylindricalEqualArea","cylindrical stereographic":"cylindricalStereographic",eckert1:"eckert1",eckert2:"eckert2",eckert3:"eckert3",eckert4:"eckert4",eckert5:"eckert5",eckert6:"eckert6",eisenlohr:"eisenlohr","equal earth":"equalEarth",equirectangular:"equirectangular",fahey:"fahey","foucaut sinusoidal":"foucautSinusoidal",foucaut:"foucaut",ginzburg4:"ginzburg4",ginzburg5:"ginzburg5",ginzburg6:"ginzburg6",ginzburg8:"ginzburg8",ginzburg9:"ginzburg9",gnomonic:"gnomonic","gringorten quincuncial":"gringortenQuincuncial",gringorten:"gringorten",guyou:"guyou",hammer:"hammer",hill:"hill",homolosine:"homolosine",hufnagel:"hufnagel",hyperelliptical:"hyperelliptical",kavrayskiy7:"kavrayskiy7",lagrange:"lagrange",larrivee:"larrivee",laskowski:"laskowski",loximuthal:"loximuthal",mercator:"mercator",miller:"miller",mollweide:"mollweide","mt flat polar parabolic":"mtFlatPolarParabolic","mt flat polar quartic":"mtFlatPolarQuartic","mt flat polar sinusoidal":"mtFlatPolarSinusoidal","natural earth":"naturalEarth","natural earth1":"naturalEarth1","natural earth2":"naturalEarth2","nell hammer":"nellHammer",nicolosi:"nicolosi",orthographic:"orthographic",patterson:"patterson","peirce quincuncial":"peirceQuincuncial",polyconic:"polyconic","rectangular polyconic":"rectangularPolyconic",robinson:"robinson",satellite:"satellite","sinu mollweide":"sinuMollweide",sinusoidal:"sinusoidal",stereographic:"stereographic",times:"times","transverse mercator":"transverseMercator","van der grinten":"vanDerGrinten","van der grinten2":"vanDerGrinten2","van der grinten3":"vanDerGrinten3","van der grinten4":"vanDerGrinten4",wagner4:"wagner4",wagner6:"wagner6",wiechel:"wiechel","winkel tripel":"winkel3",winkel3:"winkel3"},W.axesNames=["lonaxis","lataxis"],W.lonaxisSpan={orthographic:180,"azimuthal equal area":360,"azimuthal equidistant":360,"conic conformal":180,gnomonic:160,stereographic:180,"transverse mercator":180,"*":360},W.lataxisSpan={"conic conformal":150,stereographic:179.5,"*":180},W.scopeDefaults={world:{lonaxisRange:[-180,180],lataxisRange:[-90,90],projType:"equirectangular",projRotate:[0,0,0]},usa:{lonaxisRange:[-180,-50],lataxisRange:[15,80],projType:"albers usa"},europe:{lonaxisRange:[-30,60],lataxisRange:[30,85],projType:"conic conformal",projRotate:[15,0,0],projParallels:[0,60]},asia:{lonaxisRange:[22,160],lataxisRange:[-15,55],projType:"mercator",projRotate:[0,0,0]},africa:{lonaxisRange:[-30,60],lataxisRange:[-40,40],projType:"mercator",projRotate:[0,0,0]},"north america":{lonaxisRange:[-180,-45],lataxisRange:[5,85],projType:"conic conformal",projRotate:[-100,0,0],projParallels:[29.5,45.5]},"south america":{lonaxisRange:[-100,-30],lataxisRange:[-60,15],projType:"mercator",projRotate:[0,0,0]}},W.clipPad=.001,W.precision=.1,W.landColor="#F0DC82",W.waterColor="#3399FF",W.locationmodeToLayer={"ISO-3":"countries","USA-states":"subunits","country names":"countries"},W.sphereSVG={type:"Sphere"},W.fillLayers={ocean:1,land:1,lakes:1},W.lineLayers={subunits:1,countries:1,coastlines:1,rivers:1,frame:1},W.layers=["bg","ocean","land","lakes","subunits","countries","coastlines","rivers","lataxis","lonaxis","frame","backplot","frontplot"],W.layersForChoropleth=["bg","ocean","land","subunits","countries","coastlines","lataxis","lonaxis","frame","backplot","rivers","lakes","frontplot"],W.layerNameToAdjective={ocean:"ocean",land:"land",lakes:"lake",subunits:"subunit",countries:"country",coastlines:"coastline",rivers:"river",frame:"frame"}},6493:function(nt,W,e){var M=e(45568),C=e(70884),r=C.geoPath,i=C.geoDistance,w=e(75987),S=e(33626),h=e(34809),l=h.strTranslate,t=e(78766),n=e(62203),o=e(32141),a=e(44122),s=e(29714),u=e(32919).getAutoRange,x=e(14751),m=e(44844).prepSelect,y=e(44844).clearOutline,c=e(44844).selectOnClick,p=e(14309),f=e(74285),T=e(3994),k=e(11577),P=e(48640).N4;function g(L){this.id=L.id,this.graphDiv=L.graphDiv,this.container=L.container,this.topojsonURL=L.topojsonURL,this.isStatic=L.staticPlot,this.topojsonName=null,this.topojson=null,this.projection=null,this.scope=null,this.viewInitial=null,this.fitScale=null,this.bounds=null,this.midPt=null,this.hasChoropleth=!1,this.traceHash={},this.layers={},this.basePaths={},this.dataPaths={},this.dataPoints={},this.clipDef=null,this.clipRect=null,this.bgRect=null,this.makeFramework()}var A=g.prototype;nt.exports=function(L){return new g(L)},A.plot=function(L,b,D,B){var I=this;if(B)return I.update(L,b,!0);I._geoCalcData=L,I._fullLayout=b;var V=b[this.id],N=[],F=!1;for(var U in f.layerNameToAdjective)if(U!=="frame"&&V["show"+U]){F=!0;break}for(var G=!1,Y=0;Y<L.length;Y++){var Q=L[0][0].trace;Q._geo=I,Q.locationmode&&(F=!0);var ft=Q.marker;if(ft){var ut=ft.angle,lt=ft.angleref;(ut||lt==="north"||lt==="previous")&&(G=!0)}}if(this._hasMarkerAngles=G,F){var K=k.getTopojsonName(V);(I.topojson===null||K!==I.topojsonName)&&(I.topojsonName=K,PlotlyGeoAssets.topojson[I.topojsonName]===void 0&&N.push(I.fetchTopojson()))}N=N.concat(T.fetchTraceGeoData(L)),D.push(new Promise(function($,H){Promise.all(N).then(function(){I.topojson=PlotlyGeoAssets.topojson[I.topojsonName],I.update(L,b),$()}).catch(H)}))},A.fetchTopojson=function(){var L=this,b=k.getTopojsonPath(L.topojsonURL,L.topojsonName);return new Promise(function(D,B){M.json(b,function(I,V){if(I)return I.status===404?B(new Error(["plotly.js could not find topojson file at",b+".","Make sure the *topojsonURL* plot config option","is set properly."].join(" "))):B(new Error(["unexpected error while fetching topojson file at",b].join(" ")));PlotlyGeoAssets.topojson[L.topojsonName]=V,D()})})},A.update=function(L,b,D){var B=b[this.id];this.hasChoropleth=!1;for(var I=0;I<L.length;I++){var V=L[I],N=V[0].trace;N.type==="choropleth"&&(this.hasChoropleth=!0),N.visible===!0&&N._length>0&&N._module.calcGeoJSON(V,b)}if(!D){var F=this.updateProjection(L,b);if(F)return;(!this.viewInitial||this.scope!==B.scope)&&this.saveViewInitial(B)}this.scope=B.scope,this.updateBaseLayers(b,B),this.updateDims(b,B),this.updateFx(b,B),a.generalUpdatePerTraceModule(this.graphDiv,this,L,B);var U=this.layers.frontplot.select(".scatterlayer");this.dataPoints.point=U.selectAll(".point"),this.dataPoints.text=U.selectAll("text"),this.dataPaths.line=U.selectAll(".js-line");var G=this.layers.backplot.select(".choroplethlayer");this.dataPaths.choropleth=G.selectAll("path"),this._render()},A.updateProjection=function(L,b){var D=this.graphDiv,B=b[this.id],I=b._size,V=B.domain,N=B.projection,F=B.lonaxis,U=B.lataxis,G=F._ax,Y=U._ax,Q=this.projection=E(B),ft=[[I.l+I.w*V.x[0],I.t+I.h*(1-V.y[1])],[I.l+I.w*V.x[1],I.t+I.h*(1-V.y[0])]],ut=B.center||{},lt=N.rotation||{},K=F.range||[],$=U.range||[];if(B.fitbounds){G._length=ft[1][0]-ft[0][0],Y._length=ft[1][1]-ft[0][1],G.range=u(D,G),Y.range=u(D,Y);var H=(G.range[0]+G.range[1])/2,at=(Y.range[0]+Y.range[1])/2;if(B._isScoped)ut={lon:H,lat:at};else if(B._isClipped){ut={lon:H,lat:at},lt={lon:H,lat:at,roll:lt.roll};var ct=N.type,et=f.lonaxisSpan[ct]/2||180,Z=f.lataxisSpan[ct]/2||90;K=[H-et,H+et],$=[at-Z,at+Z]}else ut={lon:H,lat:at},lt={lon:H,lat:lt.lat,roll:lt.roll}}Q.center([ut.lon-lt.lon,ut.lat-lt.lat]).rotate([-lt.lon,-lt.lat,lt.roll]).parallels(N.parallels);var ot=_(K,$);Q.fitExtent(ft,ot);var st=this.bounds=Q.getBounds(ot),dt=this.fitScale=Q.scale(),xt=Q.translate();if(B.fitbounds){var At=Q.getBounds(_(G.range,Y.range)),St=Math.min((st[1][0]-st[0][0])/(At[1][0]-At[0][0]),(st[1][1]-st[0][1])/(At[1][1]-At[0][1]));isFinite(St)?Q.scale(St*dt):h.warn("Something went wrong during"+this.id+"fitbounds computations.")}else Q.scale(N.scale*dt);var Nt=this.midPt=[(st[0][0]+st[1][0])/2,(st[0][1]+st[1][1])/2];if(Q.translate([xt[0]+(Nt[0]-xt[0]),xt[1]+(Nt[1]-xt[1])]).clipExtent(st),B._isAlbersUsa){var Wt=Q([ut.lon,ut.lat]),Vt=Q.translate();Q.translate([Vt[0]-(Wt[0]-Vt[0]),Vt[1]-(Wt[1]-Vt[1])])}},A.updateBaseLayers=function(L,b){var D=this,B=D.topojson,I=D.layers,V=D.basePaths;function N(ft){return ft==="lonaxis"||ft==="lataxis"}function F(ft){return!!f.lineLayers[ft]}function U(ft){return!!f.fillLayers[ft]}var G=this.hasChoropleth?f.layersForChoropleth:f.layers,Y=G.filter(function(ft){return F(ft)||U(ft)?b["show"+ft]:N(ft)?b[ft].showgrid:!0}),Q=D.framework.selectAll(".layer").data(Y,String);Q.exit().each(function(ft){delete I[ft],delete V[ft],M.select(this).remove()}),Q.enter().append("g").attr("class",function(ft){return"layer "+ft}).each(function(ft){var ut=I[ft]=M.select(this);ft==="bg"?D.bgRect=ut.append("rect").style("pointer-events","all"):N(ft)?V[ft]=ut.append("path").style("fill","none"):ft==="backplot"?ut.append("g").classed("choroplethlayer",!0):ft==="frontplot"?ut.append("g").classed("scatterlayer",!0):F(ft)?V[ft]=ut.append("path").style("fill","none").style("stroke-miterlimit",2):U(ft)&&(V[ft]=ut.append("path").style("stroke","none"))}),Q.order(),Q.each(function(ft){var ut=V[ft],lt=f.layerNameToAdjective[ft];ft==="frame"?ut.datum(f.sphereSVG):F(ft)||U(ft)?ut.datum(P(B,B.objects[ft])):N(ft)&&ut.datum(d(ft,b,L)).call(t.stroke,b[ft].gridcolor).call(n.dashLine,b[ft].griddash,b[ft].gridwidth),F(ft)?ut.call(t.stroke,b[lt+"color"]).call(n.dashLine,"",b[lt+"width"]):U(ft)&&ut.call(t.fill,b[lt+"color"])})},A.updateDims=function(L,b){var D=this.bounds,B=(b.framewidth||0)/2,I=D[0][0]-B,V=D[0][1]-B,N=D[1][0]-I+B,F=D[1][1]-V+B;n.setRect(this.clipRect,I,V,N,F),this.bgRect.call(n.setRect,I,V,N,F).call(t.fill,b.bgcolor),this.xaxis._offset=I,this.xaxis._length=N,this.yaxis._offset=V,this.yaxis._length=F},A.updateFx=function(L,b){var D=this,B=D.graphDiv,I=D.bgRect,V=L.dragmode,N=L.clickmode;if(D.isStatic)return;function F(){var Q=D.viewInitial,ft={};for(var ut in Q)ft[D.id+"."+ut]=Q[ut];S.call("_guiRelayout",B,ft),B.emit("plotly_doubleclick",null)}function U(Q){return D.projection.invert([Q[0]+D.xaxis._offset,Q[1]+D.yaxis._offset])}var G=function(Q,ft){if(ft.isRect){var ut=Q.range={};ut[D.id]=[U([ft.xmin,ft.ymin]),U([ft.xmax,ft.ymax])]}else{var lt=Q.lassoPoints={};lt[D.id]=ft.map(U)}},Y={element:D.bgRect.node(),gd:B,plotinfo:{id:D.id,xaxis:D.xaxis,yaxis:D.yaxis,fillRangeItems:G},xaxes:[D.xaxis],yaxes:[D.yaxis],subplot:D.id,clickFn:function(Q){Q===2&&y(B)}};V==="pan"?(I.node().onmousedown=null,I.call(p(D,b)),I.on("dblclick.zoom",F),B._context._scrollZoom.geo||I.on("wheel.zoom",null)):(V==="select"||V==="lasso")&&(I.on(".zoom",null),Y.prepFn=function(Q,ft,ut){m(Q,ft,ut,Y,V)},x.init(Y)),I.on("mousemove",function(){var Q=D.projection.invert(h.getPositionFromD3Event());if(!Q)return x.unhover(B,M.event);D.xaxis.p2c=function(){return Q[0]},D.yaxis.p2c=function(){return Q[1]},o.hover(B,M.event,D.id)}),I.on("mouseout",function(){B._dragging||x.unhover(B,M.event)}),I.on("click",function(){V!=="select"&&V!=="lasso"&&(N.indexOf("select")>-1&&c(M.event,B,[D.xaxis],[D.yaxis],D.id,Y),N.indexOf("event")>-1&&o.click(B,M.event))})},A.makeFramework=function(){var L=this,b=L.graphDiv,D=b._fullLayout,B="clip"+D._uid+L.id;L.clipDef=D._clips.append("clipPath").attr("id",B),L.clipRect=L.clipDef.append("rect"),L.framework=M.select(L.container).append("g").attr("class","geo "+L.id).call(n.setClipUrl,B,b),L.project=function(I){var V=L.projection(I);return V?[V[0]-L.xaxis._offset,V[1]-L.yaxis._offset]:[null,null]},L.xaxis={_id:"x",c2p:function(I){return L.project(I)[0]}},L.yaxis={_id:"y",c2p:function(I){return L.project(I)[1]}},L.mockAxis={type:"linear",showexponent:"all",exponentformat:"B"},s.setConvert(L.mockAxis,D)},A.saveViewInitial=function(L){var b=L.center||{},D=L.projection,B=D.rotation||{};this.viewInitial={fitbounds:L.fitbounds,"projection.scale":D.scale};var I;L._isScoped?I={"center.lon":b.lon,"center.lat":b.lat}:L._isClipped?I={"projection.rotation.lon":B.lon,"projection.rotation.lat":B.lat}:I={"center.lon":b.lon,"center.lat":b.lat,"projection.rotation.lon":B.lon},h.extendFlat(this.viewInitial,I)},A.render=function(L){this._hasMarkerAngles&&L?this.plot(this._geoCalcData,this._fullLayout,[],!0):this._render()},A._render=function(){var L=this.projection,b=L.getPath(),D;function B(V){var N=L(V.lonlat);return N?l(N[0],N[1]):null}function I(V){return L.isLonLatOverEdges(V.lonlat)?"none":null}for(D in this.basePaths)this.basePaths[D].attr("d",b);for(D in this.dataPaths)this.dataPaths[D].attr("d",function(V){return b(V.geojson)});for(D in this.dataPoints)this.dataPoints[D].attr("display",I).attr("transform",B)};function E(L){var b=L.projection,D=b.type,B=f.projNames[D];B="geo"+h.titleCase(B);for(var I=C[B]||w[B],V=I(),N=L._isSatellite?Math.acos(1/b.distance)*180/Math.PI:L._isClipped?f.lonaxisSpan[D]/2:null,F=["center","rotate","parallels","clipExtent"],U=function(Q){return Q?V:[]},G=0;G<F.length;G++){var Y=F[G];typeof V[Y]!="function"&&(V[Y]=U)}return V.isLonLatOverEdges=function(Q){if(V(Q)===null)return!0;if(N){var ft=V.rotate(),ut=i(Q,[-ft[0],-ft[1]]),lt=N*Math.PI/180;return ut>lt}else return!1},V.getPath=function(){return r().projection(V)},V.getBounds=function(Q){return V.getPath().bounds(Q)},V.precision(f.precision),L._isSatellite&&V.tilt(b.tilt).distance(b.distance),N&&V.clipAngle(N-f.clipPad),V}function d(L,b,D){var B=1e-6,I=2.5,V=b[L],N=f.scopeDefaults[b.scope],F,U,G;L==="lonaxis"?(F=N.lonaxisRange,U=N.lataxisRange,G=function(at,ct){return[at,ct]}):L==="lataxis"&&(F=N.lataxisRange,U=N.lonaxisRange,G=function(at,ct){return[ct,at]});var Y={type:"linear",range:[F[0],F[1]-B],tick0:V.tick0,dtick:V.dtick};s.setConvert(Y,D);var Q=s.calcTicks(Y);!b.isScoped&&L==="lonaxis"&&Q.pop();for(var ft=Q.length,ut=new Array(ft),lt=0;lt<ft;lt++)for(var K=Q[lt].x,$=ut[lt]=[],H=U[0];H<U[1]+I;H+=I)$.push(G(K,H));return{type:"MultiLineString",coordinates:ut}}function _(L,b){var D=f.clipPad,B=L[0]+D,I=L[1]-D,V=b[0]+D,N=b[1]-D;B>0&&I<0&&(I+=360);var F=(I-B)/4;return{type:"Polygon",coordinates:[[[B,V],[B,N],[B+F,N],[B+2*F,N],[B+3*F,N],[I,N],[I,V],[I-F,V],[I-2*F,V],[I-3*F,V],[B,V]]]}}},47544:function(nt,W,e){var M=e(4173).fX,C=e(34809).counterRegex,r=e(6493),i="geo",w=C(i),S={};S[i]={valType:"subplotid",dflt:i,editType:"calc"};function h(n){for(var o=n._fullLayout,a=n.calcdata,s=o._subplots[i],u=0;u<s.length;u++){var x=s[u],m=M(a,i,x),y=o[x],c=y._subplot;c||(c=r({id:x,graphDiv:n,container:o._geolayer.node(),topojsonURL:n._context.topojsonURL,staticPlot:n._context.staticPlot}),o[x]._subplot=c),c.plot(m,o,n._promises)}}function l(n,o,a,s){for(var u=s._subplots[i]||[],x=0;x<u.length;x++){var m=u[x],y=s[m]._subplot;!o[m]&&y&&(y.framework.remove(),y.clipDef.remove())}}function t(n){for(var o=n._fullLayout,a=o._subplots[i],s=0;s<a.length;s++){var u=o[a[s]],x=u._subplot;x.updateFx(o,u)}}nt.exports={attr:i,name:i,idRoot:i,idRegex:w,attrRegex:w,attributes:S,layoutAttributes:e(42194),supplyLayoutDefaults:e(31653),plot:h,updateFx:t,clean:l}},42194:function(nt,W,e){var M=e(10229),C=e(13792).u,r=e(94850).T,i=e(74285),w=e(13582).overrideAll,S=e(62994),h={range:{valType:"info_array",items:[{valType:"number"},{valType:"number"}]},showgrid:{valType:"boolean",dflt:!1},tick0:{valType:"number",dflt:0},dtick:{valType:"number"},gridcolor:{valType:"color",dflt:M.lightLine},gridwidth:{valType:"number",min:0,dflt:1},griddash:r},l=nt.exports=w({domain:C({name:"geo"},{}),fitbounds:{valType:"enumerated",values:[!1,"locations","geojson"],dflt:!1,editType:"plot"},resolution:{valType:"enumerated",values:[110,50],dflt:110,coerceNumber:!0},scope:{valType:"enumerated",values:S(i.scopeDefaults),dflt:"world"},projection:{type:{valType:"enumerated",values:S(i.projNames)},rotation:{lon:{valType:"number"},lat:{valType:"number"},roll:{valType:"number"}},tilt:{valType:"number",dflt:0},distance:{valType:"number",min:1.001,dflt:2},parallels:{valType:"info_array",items:[{valType:"number"},{valType:"number"}]},scale:{valType:"number",min:0,dflt:1}},center:{lon:{valType:"number"},lat:{valType:"number"}},visible:{valType:"boolean",dflt:!0},showcoastlines:{valType:"boolean"},coastlinecolor:{valType:"color",dflt:M.defaultLine},coastlinewidth:{valType:"number",min:0,dflt:1},showland:{valType:"boolean",dflt:!1},landcolor:{valType:"color",dflt:i.landColor},showocean:{valType:"boolean",dflt:!1},oceancolor:{valType:"color",dflt:i.waterColor},showlakes:{valType:"boolean",dflt:!1},lakecolor:{valType:"color",dflt:i.waterColor},showrivers:{valType:"boolean",dflt:!1},rivercolor:{valType:"color",dflt:i.waterColor},riverwidth:{valType:"number",min:0,dflt:1},showcountries:{valType:"boolean"},countrycolor:{valType:"color",dflt:M.defaultLine},countrywidth:{valType:"number",min:0,dflt:1},showsubunits:{valType:"boolean"},subunitcolor:{valType:"color",dflt:M.defaultLine},subunitwidth:{valType:"number",min:0,dflt:1},showframe:{valType:"boolean"},framecolor:{valType:"color",dflt:M.defaultLine},framewidth:{valType:"number",min:0,dflt:1},bgcolor:{valType:"color",dflt:M.background},lonaxis:h,lataxis:h},"plot","from-root");l.uirevision={valType:"any",editType:"none"}},31653:function(nt,W,e){var M=e(34809),C=e(4448),r=e(4173).KO,i=e(74285),w=e(42194),S=i.axesNames;nt.exports=function(l,t,n){C(l,t,n,{type:"geo",attributes:w,handleDefaults:h,fullData:n,partition:"y"})};function h(l,t,n,o){var a=r(o.fullData,"geo",o.id),s=a.map(function($){return $._expandedIndex}),u=n("resolution"),x=n("scope"),m=i.scopeDefaults[x],y=n("projection.type",m.projType),c=t._isAlbersUsa=y==="albers usa";c&&(x=t.scope="usa");var p=t._isScoped=x!=="world",f=t._isSatellite=y==="satellite",T=t._isConic=y.indexOf("conic")!==-1||y==="albers",k=t._isClipped=!!i.lonaxisSpan[y];if(l.visible===!1){var P=M.extendDeep({},t._template);P.showcoastlines=!1,P.showcountries=!1,P.showframe=!1,P.showlakes=!1,P.showland=!1,P.showocean=!1,P.showrivers=!1,P.showsubunits=!1,P.lonaxis&&(P.lonaxis.showgrid=!1),P.lataxis&&(P.lataxis.showgrid=!1),t._template=P}for(var g=n("visible"),A,E=0;E<S.length;E++){var d=S[E],_=[30,10][E],L;if(p)L=m[d+"Range"];else{var b=i[d+"Span"],D=(b[y]||b["*"])/2,B=n("projection.rotation."+d.substr(0,3),m.projRotate[E]);L=[B-D,B+D]}var I=n(d+".range",L);n(d+".tick0"),n(d+".dtick",_),A=n(d+".showgrid",g?void 0:!1),A&&(n(d+".gridcolor"),n(d+".gridwidth"),n(d+".griddash")),t[d]._ax={type:"linear",_id:d.slice(0,3),_traceIndices:s,setScale:M.identity,c2l:M.identity,r2l:M.identity,autorange:!0,range:I.slice(),_m:1,_input:{}}}var V=t.lonaxis.range,N=t.lataxis.range,F=V[0],U=V[1];F>0&&U<0&&(U+=360);var G=(F+U)/2,Y;if(!c){var Q=p?m.projRotate:[G,0,0];Y=n("projection.rotation.lon",Q[0]),n("projection.rotation.lat",Q[1]),n("projection.rotation.roll",Q[2]),A=n("showcoastlines",!p&&g),A&&(n("coastlinecolor"),n("coastlinewidth")),A=n("showocean",g?void 0:!1),A&&n("oceancolor")}var ft,ut;if(c?(ft=-96.6,ut=38.7):(ft=p?G:Y,ut=(N[0]+N[1])/2),n("center.lon",ft),n("center.lat",ut),f&&(n("projection.tilt"),n("projection.distance")),T){var lt=m.projParallels||[0,60];n("projection.parallels",lt)}n("projection.scale"),A=n("showland",g?void 0:!1),A&&n("landcolor"),A=n("showlakes",g?void 0:!1),A&&n("lakecolor"),A=n("showrivers",g?void 0:!1),A&&(n("rivercolor"),n("riverwidth")),A=n("showcountries",p&&x!=="usa"&&g),A&&(n("countrycolor"),n("countrywidth")),(x==="usa"||x==="north america"&&u===50)&&(n("showsubunits",g),n("subunitcolor"),n("subunitwidth")),p||(A=n("showframe",g),A&&(n("framecolor"),n("framewidth"))),n("bgcolor");var K=n("fitbounds");K&&(delete t.projection.scale,p?(delete t.center.lon,delete t.center.lat):k?(delete t.center.lon,delete t.center.lat,delete t.projection.rotation.lon,delete t.projection.rotation.lat,delete t.lonaxis.range,delete t.lataxis.range):(delete t.center.lon,delete t.center.lat,delete t.projection.rotation.lon))}},14309:function(nt,W,e){var M=e(45568),C=e(34809),r=e(33626),i=Math.PI/180,w=180/Math.PI,S={cursor:"pointer"},h={cursor:"auto"};function l(d,_){var L=d.projection,b;return _._isScoped?b=o:_._isClipped?b=s:b=a,b(d,L)}nt.exports=l;function t(d,_){return M.behavior.zoom().translate(_.translate()).scale(_.scale())}function n(d,_,L){var b=d.id,D=d.graphDiv,B=D.layout,I=B[b],V=D._fullLayout,N=V[b],F={},U={};function G(Y,Q){F[b+"."+Y]=C.nestedProperty(I,Y).get(),r.call("_storeDirectGUIEdit",B,V._preGUI,F);var ft=C.nestedProperty(N,Y);ft.get()!==Q&&(ft.set(Q),C.nestedProperty(I,Y).set(Q),U[b+"."+Y]=Q)}L(G),G("projection.scale",_.scale()/d.fitScale),G("fitbounds",!1),D.emit("plotly_relayout",U)}function o(d,_){var L=t(d,_);function b(){M.select(this).style(S)}function D(){_.scale(M.event.scale).translate(M.event.translate),d.render(!0);var V=_.invert(d.midPt);d.graphDiv.emit("plotly_relayouting",{"geo.projection.scale":_.scale()/d.fitScale,"geo.center.lon":V[0],"geo.center.lat":V[1]})}function B(V){var N=_.invert(d.midPt);V("center.lon",N[0]),V("center.lat",N[1])}function I(){M.select(this).style(h),n(d,_,B)}return L.on("zoomstart",b).on("zoom",D).on("zoomend",I),L}function a(d,_){var L=t(d,_),b=2,D,B,I,V,N,F,U,G,Y;function Q(H){return _.invert(H)}function ft(H){var at=Q(H);if(!at)return!0;var ct=_(at);return Math.abs(ct[0]-H[0])>b||Math.abs(ct[1]-H[1])>b}function ut(){M.select(this).style(S),D=M.mouse(this),B=_.rotate(),I=_.translate(),V=B,N=Q(D)}function lt(){if(F=M.mouse(this),ft(D)){L.scale(_.scale()),L.translate(_.translate());return}_.scale(M.event.scale),_.translate([I[0],M.event.translate[1]]),N?Q(F)&&(G=Q(F),U=[V[0]+(G[0]-N[0]),B[1],B[2]],_.rotate(U),V=U):(D=F,N=Q(D)),Y=!0,d.render(!0);var H=_.rotate(),at=_.invert(d.midPt);d.graphDiv.emit("plotly_relayouting",{"geo.projection.scale":_.scale()/d.fitScale,"geo.center.lon":at[0],"geo.center.lat":at[1],"geo.projection.rotation.lon":-H[0]})}function K(){M.select(this).style(h),Y&&n(d,_,$)}function $(H){var at=_.rotate(),ct=_.invert(d.midPt);H("projection.rotation.lon",-at[0]),H("center.lon",ct[0]),H("center.lat",ct[1])}return L.on("zoomstart",ut).on("zoom",lt).on("zoomend",K),L}function s(d,_){_.rotate(),_.scale();var L=t(d,_),b=E(L,"zoomstart","zoom","zoomend"),D=0,B=L.on,I;L.on("zoomstart",function(){M.select(this).style(S);var G=M.mouse(this),Y=_.rotate(),Q=Y,ft=_.translate(),ut=x(Y);I=u(_,G),B.call(L,"zoom",function(){var lt=M.mouse(this);if(_.scale(M.event.scale),!I)G=lt,I=u(_,G);else if(u(_,lt)){_.rotate(Y).translate(ft);var K=u(_,lt),$=y(I,K),H=k(m(ut,$)),at=c(H,I,Q);(!isFinite(at[0])||!isFinite(at[1])||!isFinite(at[2]))&&(at=Q),_.rotate(at),Q=at}N(b.of(this,arguments))}),V(b.of(this,arguments))}).on("zoomend",function(){M.select(this).style(h),B.call(L,"zoom",null),F(b.of(this,arguments)),n(d,_,U)}).on("zoom.redraw",function(){d.render(!0);var G=_.rotate();d.graphDiv.emit("plotly_relayouting",{"geo.projection.scale":_.scale()/d.fitScale,"geo.projection.rotation.lon":-G[0],"geo.projection.rotation.lat":-G[1]})});function V(G){D++||G({type:"zoomstart"})}function N(G){G({type:"zoom"})}function F(G){--D||G({type:"zoomend"})}function U(G){var Y=_.rotate();G("projection.rotation.lon",-Y[0]),G("projection.rotation.lat",-Y[1])}return M.rebind(L,b,"on")}function u(d,_){var L=d.invert(_);return L&&isFinite(L[0])&&isFinite(L[1])&&P(L)}function x(d){var _=.5*d[0]*i,L=.5*d[1]*i,b=.5*d[2]*i,D=Math.sin(_),B=Math.cos(_),I=Math.sin(L),V=Math.cos(L),N=Math.sin(b),F=Math.cos(b);return[B*V*F+D*I*N,D*V*F-B*I*N,B*I*F+D*V*N,B*V*N-D*I*F]}function m(d,_){var L=d[0],b=d[1],D=d[2],B=d[3],I=_[0],V=_[1],N=_[2],F=_[3];return[L*I-b*V-D*N-B*F,L*V+b*I+D*F-B*N,L*N-b*F+D*I+B*V,L*F+b*N-D*V+B*I]}function y(d,_){if(!(!d||!_)){var L=A(d,_),b=Math.sqrt(g(L,L)),D=.5*Math.acos(Math.max(-1,Math.min(1,g(d,_)))),B=Math.sin(D)/b;return b&&[Math.cos(D),L[2]*B,-L[1]*B,L[0]*B]}}function c(d,_,L){var b=T(_,2,d[0]);b=T(b,1,d[1]),b=T(b,0,d[2]-L[2]);var D=_[0],B=_[1],I=_[2],V=b[0],N=b[1],F=b[2],U=Math.atan2(B,D)*w,G=Math.sqrt(D*D+B*B),Y,Q;Math.abs(N)>G?(Q=(N>0?90:-90)-U,Y=0):(Q=Math.asin(N/G)*w-U,Y=Math.sqrt(G*G-N*N));var ft=180-Q-2*U,ut=(Math.atan2(F,V)-Math.atan2(I,Y))*w,lt=(Math.atan2(F,V)-Math.atan2(I,-Y))*w,K=p(L[0],L[1],Q,ut),$=p(L[0],L[1],ft,lt);return K<=$?[Q,ut,L[2]]:[ft,lt,L[2]]}function p(d,_,L,b){var D=f(L-d),B=f(b-_);return Math.sqrt(D*D+B*B)}function f(d){return(d%360+540)%360-180}function T(d,_,L){var b=L*i,D=d.slice(),B=_===0?1:0,I=_===2?1:2,V=Math.cos(b),N=Math.sin(b);return D[B]=d[B]*V-d[I]*N,D[I]=d[I]*V+d[B]*N,D}function k(d){return[Math.atan2(2*(d[0]*d[1]+d[2]*d[3]),1-2*(d[1]*d[1]+d[2]*d[2]))*w,Math.asin(Math.max(-1,Math.min(1,2*(d[0]*d[2]-d[3]*d[1]))))*w,Math.atan2(2*(d[0]*d[3]+d[1]*d[2]),1-2*(d[2]*d[2]+d[3]*d[3]))*w]}function P(d){var _=d[0]*i,L=d[1]*i,b=Math.cos(L);return[b*Math.cos(_),b*Math.sin(_),Math.sin(L)]}function g(d,_){for(var L=0,b=0,D=d.length;b<D;++b)L+=d[b]*_[b];return L}function A(d,_){return[d[1]*_[2]-d[2]*_[1],d[2]*_[0]-d[0]*_[2],d[0]*_[1]-d[1]*_[0]]}function E(d){for(var _=0,L=arguments.length,b=[];++_<L;)b.push(arguments[_]);var D=M.dispatch.apply(null,b);return D.of=function(B,I){return function(V){var N;try{N=V.sourceEvent=M.event,V.target=d,M.event=V,D[V.type].apply(B,I)}finally{M.event=N}}},D}},4173:function(nt,W,e){var M=e(33626),C=e(54826).SUBPLOT_PATTERN;W.fX=function(r,i,w){var S=M.subplotsRegistry[i];if(!S)return[];for(var h=S.attr,l=[],t=0;t<r.length;t++){var n=r[t],o=n[0].trace;o[h]===w&&l.push(n)}return l},W.eV=function(r,i,w){var S=[],h=[],l;if(typeof i=="string"?l=M.getModule(i).plot:typeof i=="function"?l=i:l=i.plot,!l)return[S,r];for(var t=w,n=0;n<r.length;n++){var o=r[n],a=o[0].trace,s=a.zorder!==void 0;a.visible!==!0||a._length===0||(a._module&&a._module.plot===l&&(!s||a.zorder===t)?S.push(o):h.push(o))}return[S,h]},W.KO=function(r,i,w){if(!M.subplotsRegistry[i])return[];var S=M.subplotsRegistry[i].attr,h=[],l,t,n;if(i==="gl2d"){var o=w.match(C);t="x"+o[1],n="y"+o[2]}for(var a=0;a<r.length;a++)l=r[a],i==="gl2d"&&M.traceIs(l,"gl2d")?l[S[0]]===t&&l[S[1]]===n&&h.push(l):l[S]===w&&h.push(l);return h}},77055:function(nt,W,e){var M=e(99978),C=e(20573),r=e(44039),i=e(54826),w=e(74043);nt.exports=h;function S(l,t){this.element=l,this.plot=t,this.mouseListener=null,this.wheelListener=null,this.lastInputTime=Date.now(),this.lastPos=[0,0],this.boxEnabled=!1,this.boxInited=!1,this.boxStart=[0,0],this.boxEnd=[0,0],this.dragStart=[0,0]}function h(l){var t=l.mouseContainer,n=l.glplot,o=new S(t,n);function a(){l.xaxis.autorange=!1,l.yaxis.autorange=!1}function s(){for(var x=l.graphDiv._fullLayout._axisConstraintGroups,m=l.xaxis._id,y=l.yaxis._id,c=0;c<x.length;c++)if(x[c][m]!==-1){if(x[c][y]!==-1)return!0;break}return!1}o.mouseListener=M(t,u),t.addEventListener("touchstart",function(x){var m=r(x.changedTouches[0],t);u(0,m[0],m[1]),u(1,m[0],m[1]),x.preventDefault()},w?{passive:!1}:!1),t.addEventListener("touchmove",function(x){x.preventDefault();var m=r(x.changedTouches[0],t);u(1,m[0],m[1]),x.preventDefault()},w?{passive:!1}:!1),t.addEventListener("touchend",function(x){u(0,o.lastPos[0],o.lastPos[1]),x.preventDefault()},w?{passive:!1}:!1);function u(x,m,y){var c=l.calcDataBox(),p=n.viewBox,f=o.lastPos[0],T=o.lastPos[1],k=i.MINDRAG*n.pixelRatio,P=i.MINZOOM*n.pixelRatio,g,A;m*=n.pixelRatio,y*=n.pixelRatio,y=p[3]-p[1]-y;function E(B,I,V){var N=Math.min(I,V),F=Math.max(I,V);N!==F?(c[B]=N,c[B+2]=F,o.dataBox=c,l.setRanges(c)):(l.selectBox.selectBox=[0,0,1,1],l.glplot.setDirty())}switch(l.fullLayout.dragmode){case"zoom":if(x){var d=m/(p[2]-p[0])*(c[2]-c[0])+c[0],_=y/(p[3]-p[1])*(c[3]-c[1])+c[1];o.boxInited||(o.boxStart[0]=d,o.boxStart[1]=_,o.dragStart[0]=m,o.dragStart[1]=y),o.boxEnd[0]=d,o.boxEnd[1]=_,o.boxInited=!0,!o.boxEnabled&&(o.boxStart[0]!==o.boxEnd[0]||o.boxStart[1]!==o.boxEnd[1])&&(o.boxEnabled=!0);var L=Math.abs(o.dragStart[0]-m)<P,b=Math.abs(o.dragStart[1]-y)<P;if(s()&&!(L&&b)){g=o.boxEnd[0]-o.boxStart[0],A=o.boxEnd[1]-o.boxStart[1];var D=(c[3]-c[1])/(c[2]-c[0]);Math.abs(g*D)>Math.abs(A)?(o.boxEnd[1]=o.boxStart[1]+Math.abs(g)*D*(A>=0?1:-1),o.boxEnd[1]<c[1]?(o.boxEnd[1]=c[1],o.boxEnd[0]=o.boxStart[0]+(c[1]-o.boxStart[1])/Math.abs(D)):o.boxEnd[1]>c[3]&&(o.boxEnd[1]=c[3],o.boxEnd[0]=o.boxStart[0]+(c[3]-o.boxStart[1])/Math.abs(D))):(o.boxEnd[0]=o.boxStart[0]+Math.abs(A)/D*(g>=0?1:-1),o.boxEnd[0]<c[0]?(o.boxEnd[0]=c[0],o.boxEnd[1]=o.boxStart[1]+(c[0]-o.boxStart[0])*Math.abs(D)):o.boxEnd[0]>c[2]&&(o.boxEnd[0]=c[2],o.boxEnd[1]=o.boxStart[1]+(c[2]-o.boxStart[0])*Math.abs(D)))}else L&&(o.boxEnd[0]=o.boxStart[0]),b&&(o.boxEnd[1]=o.boxStart[1])}else o.boxEnabled?(g=o.boxStart[0]!==o.boxEnd[0],A=o.boxStart[1]!==o.boxEnd[1],g||A?(g&&(E(0,o.boxStart[0],o.boxEnd[0]),l.xaxis.autorange=!1),A&&(E(1,o.boxStart[1],o.boxEnd[1]),l.yaxis.autorange=!1),l.relayoutCallback()):l.glplot.setDirty(),o.boxEnabled=!1,o.boxInited=!1):o.boxInited&&(o.boxInited=!1);break;case"pan":o.boxEnabled=!1,o.boxInited=!1,x?(o.panning||(o.dragStart[0]=m,o.dragStart[1]=y),Math.abs(o.dragStart[0]-m)<k&&(m=o.dragStart[0]),Math.abs(o.dragStart[1]-y)<k&&(y=o.dragStart[1]),g=(f-m)*(c[2]-c[0])/(n.viewBox[2]-n.viewBox[0]),A=(T-y)*(c[3]-c[1])/(n.viewBox[3]-n.viewBox[1]),c[0]+=g,c[2]+=g,c[1]+=A,c[3]+=A,l.setRanges(c),o.panning=!0,o.lastInputTime=Date.now(),a(),l.cameraChanged(),l.handleAnnotations()):o.panning&&(o.panning=!1,l.relayoutCallback());break}o.lastPos[0]=m,o.lastPos[1]=y}return o.wheelListener=C(t,function(x,m){if(!l.scrollZoom)return!1;var y=l.calcDataBox(),c=n.viewBox,p=o.lastPos[0],f=o.lastPos[1],T=Math.exp(5*m/(c[3]-c[1])),k=p/(c[2]-c[0])*(y[2]-y[0])+y[0],P=f/(c[3]-c[1])*(y[3]-y[1])+y[1];return y[0]=(y[0]-k)*T+k,y[2]=(y[2]-k)*T+k,y[1]=(y[1]-P)*T+P,y[3]=(y[3]-P)*T+P,l.setRanges(y),o.lastInputTime=Date.now(),a(),l.cameraChanged(),l.handleAnnotations(),l.relayoutCallback(),!0},!0),o}},10749:function(nt,W,e){var M=e(29714),C=e(55010);function r(h){this.scene=h,this.gl=h.gl,this.pixelRatio=h.pixelRatio,this.screenBox=[0,0,1,1],this.viewBox=[0,0,1,1],this.dataBox=[-1,-1,1,1],this.borderLineEnable=[!1,!1,!1,!1],this.borderLineWidth=[1,1,1,1],this.borderLineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.ticks=[[],[]],this.tickEnable=[!0,!0,!1,!1],this.tickPad=[15,15,15,15],this.tickAngle=[0,0,0,0],this.tickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.tickMarkLength=[0,0,0,0],this.tickMarkWidth=[0,0,0,0],this.tickMarkColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.labels=["x","y"],this.labelEnable=[!0,!0,!1,!1],this.labelAngle=[0,Math.PI/2,0,3*Math.PI/2],this.labelPad=[15,15,15,15],this.labelSize=[12,12],this.labelFont=["sans-serif","sans-serif"],this.labelColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.title="",this.titleEnable=!0,this.titleCenter=[0,0,0,0],this.titleAngle=0,this.titleColor=[0,0,0,1],this.titleFont="sans-serif",this.titleSize=18,this.gridLineEnable=[!0,!0],this.gridLineColor=[[0,0,0,.5],[0,0,0,.5]],this.gridLineWidth=[1,1],this.zeroLineEnable=[!0,!0],this.zeroLineWidth=[1,1],this.zeroLineColor=[[0,0,0,1],[0,0,0,1]],this.borderColor=[0,0,0,0],this.backgroundColor=[0,0,0,0],this.static=this.scene.staticPlot}var i=r.prototype,w=["xaxis","yaxis"];i.merge=function(h){this.titleEnable=!1,this.backgroundColor=C(h.plot_bgcolor);var l,t,n,o,a,s,u,x,m,y,c;for(y=0;y<2;++y){l=w[y];var p=l.charAt(0);for(t=h[this.scene[l]._name],n=t.title.text===this.scene.fullLayout._dfltTitle[p]?"":t.title.text,c=0;c<=2;c+=2)this.labelEnable[y+c]=!1,this.labels[y+c]=n,this.labelColor[y+c]=C(t.title.font.color),this.labelFont[y+c]=t.title.font.family,this.labelSize[y+c]=t.title.font.size,this.labelPad[y+c]=this.getLabelPad(l,t),this.tickEnable[y+c]=!1,this.tickColor[y+c]=C((t.tickfont||{}).color),this.tickAngle[y+c]=t.tickangle==="auto"?0:Math.PI*-t.tickangle/180,this.tickPad[y+c]=this.getTickPad(t),this.tickMarkLength[y+c]=0,this.tickMarkWidth[y+c]=t.tickwidth||0,this.tickMarkColor[y+c]=C(t.tickcolor),this.borderLineEnable[y+c]=!1,this.borderLineColor[y+c]=C(t.linecolor),this.borderLineWidth[y+c]=t.linewidth||0;u=this.hasSharedAxis(t),a=this.hasAxisInDfltPos(l,t)&&!u,s=this.hasAxisInAltrPos(l,t)&&!u,o=t.mirror||!1,x=u?String(o).indexOf("all")!==-1:!!o,m=u?o==="allticks":String(o).indexOf("ticks")!==-1,a?this.labelEnable[y]=!0:s&&(this.labelEnable[y+2]=!0),a?this.tickEnable[y]=t.showticklabels:s&&(this.tickEnable[y+2]=t.showticklabels),(a||x)&&(this.borderLineEnable[y]=t.showline),(s||x)&&(this.borderLineEnable[y+2]=t.showline),(a||m)&&(this.tickMarkLength[y]=this.getTickMarkLength(t)),(s||m)&&(this.tickMarkLength[y+2]=this.getTickMarkLength(t)),this.gridLineEnable[y]=t.showgrid,this.gridLineColor[y]=C(t.gridcolor),this.gridLineWidth[y]=t.gridwidth,this.zeroLineEnable[y]=t.zeroline,this.zeroLineColor[y]=C(t.zerolinecolor),this.zeroLineWidth[y]=t.zerolinewidth}},i.hasSharedAxis=function(h){var l=this.scene,t=l.fullLayout._subplots.gl2d,n=M.findSubplotsWithAxis(t,h);return n.indexOf(l.id)!==0},i.hasAxisInDfltPos=function(h,l){var t=l.side;if(h==="xaxis")return t==="bottom";if(h==="yaxis")return t==="left"},i.hasAxisInAltrPos=function(h,l){var t=l.side;if(h==="xaxis")return t==="top";if(h==="yaxis")return t==="right"},i.getLabelPad=function(h,l){var t=1.5,n=l.title.font.size,o=l.showticklabels;if(h==="xaxis")return l.side==="top"?-10+n*(t+(o?1:0)):-10+n*(t+(o?.5:0));if(h==="yaxis")return l.side==="right"?10+n*(t+(o?1:.5)):10+n*(t+(o?.5:0))},i.getTickPad=function(h){return h.ticks==="outside"?10+h.ticklen:15},i.getTickMarkLength=function(h){if(!h.ticks)return 0;var l=h.ticklen;return h.ticks==="inside"?-l:l};function S(h){return new r(h)}nt.exports=S},24585:function(nt,W,e){var M=e(13582).overrideAll,C=e(27672),r=e(6704),i=e(62972),w=e(54826),S=e(37703),h=e(6811),l=e(4173).KO;W.name="gl2d",W.attr=["xaxis","yaxis"],W.idRoot=["x","y"],W.idRegex=w.idRegex,W.attrRegex=w.attrRegex,W.attributes=e(55126),W.supplyLayoutDefaults=function(t,n,o){n._has("cartesian")||S.supplyLayoutDefaults(t,n,o)},W.layoutAttrOverrides=M(S.layoutAttributes,"plot","from-root"),W.baseLayoutAttrOverrides=M({plot_bgcolor:r.plot_bgcolor,hoverlabel:h.hoverlabel},"plot","nested"),W.plot=function(t){for(var n=t._fullLayout,o=t._fullData,a=n._subplots.gl2d,s=0;s<a.length;s++){var u=a[s],x=n._plots[u],m=l(o,"gl2d",u),y=x._scene2d;y===void 0&&(y=new C({id:u,graphDiv:t,container:t.querySelector(".gl-container"),staticPlot:t._context.staticPlot,plotGlPixelRatio:t._context.plotGlPixelRatio},n),x._scene2d=y),y.plot(m,t.calcdata,n,t.layout)}},W.clean=function(t,n,o,a){for(var s=a._subplots.gl2d||[],u=0;u<s.length;u++){var x=s[u],m=a._plots[x];if(m._scene2d){var y=l(t,"gl2d",x);y.length===0&&(m._scene2d.destroy(),delete a._plots[x])}}S.clean.apply(this,arguments)},W.drawFramework=function(t){t._context.staticPlot||S.drawFramework(t)},W.toSVG=function(t){for(var n=t._fullLayout,o=n._subplots.gl2d,a=0;a<o.length;a++){var s=n._plots[o[a]],u=s._scene2d,x=u.toImage("png"),m=n._glimages.append("svg:image");m.attr({xmlns:i.svg,"xlink:href":x,x:0,y:0,width:"100%",height:"100%",preserveAspectRatio:"none"}),u.destroy()}},W.updateFx=function(t){for(var n=t._fullLayout,o=n._subplots.gl2d,a=0;a<o.length;a++){var s=n._plots[o[a]]._scene2d;s.updateFx(n.dragmode)}}},27672:function(nt,W,e){var M=e(33626),C=e(29714),r=e(32141),i=e(99098).gl_plot2d,w=e(99098).gl_spikes2d,S=e(99098).gl_select_box,h=e(22248),l=e(10749),t=e(77055),n=e(97464),o=e(84391),a=o.enforce,s=o.clean,u=e(32919).doAutoRange,x=e(70414),m=x.drawMode,y=x.selectMode,c=["xaxis","yaxis"],p,f,T=e(54826).SUBPLOT_PATTERN;function k(A,E){this.container=A.container,this.graphDiv=A.graphDiv,this.pixelRatio=A.plotGlPixelRatio||window.devicePixelRatio,this.id=A.id,this.staticPlot=!!A.staticPlot,this.scrollZoom=this.graphDiv._context._scrollZoom.cartesian,this.fullData=null,this.updateRefs(E),this.makeFramework(),!this.stopped&&(this.glplotOptions=l(this),this.glplotOptions.merge(E),this.glplot=i(this.glplotOptions),this.camera=t(this),this.traces={},this.spikes=w(this.glplot),this.selectBox=S(this.glplot,{innerFill:!1,outerFill:!0}),this.lastButtonState=0,this.pickResult=null,this.isMouseOver=!0,this.stopped=!1,this.redraw=this.draw.bind(this),this.redraw())}nt.exports=k;var P=k.prototype;P.makeFramework=function(){if(this.staticPlot){if(!f&&(p=document.createElement("canvas"),f=h({canvas:p,preserveDrawingBuffer:!1,premultipliedAlpha:!0,antialias:!0}),!f))throw new Error("Error creating static canvas/context for image server");this.canvas=p,this.gl=f}else{var A=this.container.querySelector(".gl-canvas-focus"),E=h({canvas:A,preserveDrawingBuffer:!0,premultipliedAlpha:!0});if(!E){n(this),this.stopped=!0;return}this.canvas=A,this.gl=E}var d=this.canvas;d.style.width="100%",d.style.height="100%",d.style.position="absolute",d.style.top="0px",d.style.left="0px",d.style["pointer-events"]="none",this.updateSize(d);var _=this.svgContainer=document.createElementNS("http://www.w3.org/2000/svg","svg");_.style.position="absolute",_.style.top=_.style.left="0px",_.style.width=_.style.height="100%",_.style["z-index"]=20,_.style["pointer-events"]="none";var L=this.mouseContainer=document.createElement("div");L.style.position="absolute",L.style["pointer-events"]="auto",this.pickCanvas=this.container.querySelector(".gl-canvas-pick");var b=this.container;b.appendChild(_),b.appendChild(L);var D=this;L.addEventListener("mouseout",function(){D.isMouseOver=!1,D.unhover()}),L.addEventListener("mouseover",function(){D.isMouseOver=!0})},P.toImage=function(A){A||(A="png"),this.stopped=!0,this.staticPlot&&this.container.appendChild(p),this.updateSize(this.canvas);var E=this.glplot.gl,d=E.drawingBufferWidth,_=E.drawingBufferHeight;E.clearColor(1,1,1,0),E.clear(E.COLOR_BUFFER_BIT|E.DEPTH_BUFFER_BIT),this.glplot.setDirty(),this.glplot.draw(),E.bindFramebuffer(E.FRAMEBUFFER,null);var L=new Uint8Array(d*_*4);E.readPixels(0,0,d,_,E.RGBA,E.UNSIGNED_BYTE,L);for(var b=0,D=_-1;b<D;++b,--D)for(var B=0;B<d;++B)for(var I=0;I<4;++I){var V=L[4*(d*b+B)+I];L[4*(d*b+B)+I]=L[4*(d*D+B)+I],L[4*(d*D+B)+I]=V}var N=document.createElement("canvas");N.width=d,N.height=_;var F=N.getContext("2d",{willReadFrequently:!0}),U=F.createImageData(d,_);U.data.set(L),F.putImageData(U,0,0);var G;switch(A){case"jpeg":G=N.toDataURL("image/jpeg");break;case"webp":G=N.toDataURL("image/webp");break;default:G=N.toDataURL("image/png")}return this.staticPlot&&this.container.removeChild(p),G},P.updateSize=function(A){A||(A=this.canvas);var E=this.pixelRatio,d=this.fullLayout,_=d.width,L=d.height,b=Math.ceil(E*_)|0,D=Math.ceil(E*L)|0;return(A.width!==b||A.height!==D)&&(A.width=b,A.height=D),A},P.computeTickMarks=function(){this.xaxis.setScale(),this.yaxis.setScale();for(var A=[C.calcTicks(this.xaxis),C.calcTicks(this.yaxis)],E=0;E<2;++E)for(var d=0;d<A[E].length;++d)A[E][d].text=A[E][d].text+"";return A};function g(A,E){for(var d=0;d<2;++d){var _=A[d],L=E[d];if(_.length!==L.length)return!0;for(var b=0;b<_.length;++b)if(_[b].x!==L[b].x)return!0}return!1}P.updateRefs=function(A){this.fullLayout=A;var E=this.id.match(T),d="xaxis"+E[1],_="yaxis"+E[2];this.xaxis=this.fullLayout[d],this.yaxis=this.fullLayout[_]},P.relayoutCallback=function(){var A=this.graphDiv,E=this.xaxis,d=this.yaxis,_=A.layout,L={},b=L[E._name+".range"]=E.range.slice(),D=L[d._name+".range"]=d.range.slice();L[E._name+".autorange"]=E.autorange,L[d._name+".autorange"]=d.autorange,M.call("_storeDirectGUIEdit",A.layout,A._fullLayout._preGUI,L);var B=_[E._name];B.range=b,B.autorange=E.autorange;var I=_[d._name];I.range=D,I.autorange=d.autorange,L.lastInputTime=this.camera.lastInputTime,A.emit("plotly_relayout",L)},P.cameraChanged=function(){var A=this.camera;this.glplot.setDataBox(this.calcDataBox());var E=this.computeTickMarks(),d=this.glplotOptions.ticks;g(E,d)&&(this.glplotOptions.ticks=E,this.glplotOptions.dataBox=A.dataBox,this.glplot.update(this.glplotOptions),this.handleAnnotations())},P.handleAnnotations=function(){for(var A=this.graphDiv,E=this.fullLayout.annotations,d=0;d<E.length;d++){var _=E[d];_.xref===this.xaxis._id&&_.yref===this.yaxis._id&&M.getComponentMethod("annotations","drawOne")(A,d)}},P.destroy=function(){if(this.glplot){var A=this.traces;A&&Object.keys(A).map(function(E){A[E].dispose(),delete A[E]}),this.glplot.dispose(),this.container.removeChild(this.svgContainer),this.container.removeChild(this.mouseContainer),this.fullData=null,this.glplot=null,this.stopped=!0,this.camera.mouseListener.enabled=!1,this.mouseContainer.removeEventListener("wheel",this.camera.wheelListener),this.camera=null}},P.plot=function(A,E,d){var _=this.glplot;this.updateRefs(d),this.xaxis.clearCalc(),this.yaxis.clearCalc(),this.updateTraces(A,E),this.updateFx(d.dragmode);var L=d.width,b=d.height;this.updateSize(this.canvas);var D=this.glplotOptions;D.merge(d),D.screenBox=[0,0,L,b];var B={_fullLayout:{_axisConstraintGroups:d._axisConstraintGroups,xaxis:this.xaxis,yaxis:this.yaxis,_size:d._size}};s(B,this.xaxis),s(B,this.yaxis);var I=d._size,V=this.xaxis.domain,N=this.yaxis.domain;D.viewBox=[I.l+V[0]*I.w,I.b+N[0]*I.h,L-I.r-(1-V[1])*I.w,b-I.t-(1-N[1])*I.h],this.mouseContainer.style.width=I.w*(V[1]-V[0])+"px",this.mouseContainer.style.height=I.h*(N[1]-N[0])+"px",this.mouseContainer.height=I.h*(N[1]-N[0]),this.mouseContainer.style.left=I.l+V[0]*I.w+"px",this.mouseContainer.style.top=I.t+(1-N[1])*I.h+"px";var F,U;for(U=0;U<2;++U)F=this[c[U]],F._length=D.viewBox[U+2]-D.viewBox[U],u(this.graphDiv,F),F.setScale();a(B),D.ticks=this.computeTickMarks(),D.dataBox=this.calcDataBox(),D.merge(d),_.update(D),this.glplot.draw()},P.calcDataBox=function(){var A=this.xaxis,E=this.yaxis,d=A.range,_=E.range,L=A.r2l,b=E.r2l;return[L(d[0]),b(_[0]),L(d[1]),b(_[1])]},P.setRanges=function(A){var E=this.xaxis,d=this.yaxis,_=E.l2r,L=d.l2r;E.range=[_(A[0]),_(A[2])],d.range=[L(A[1]),L(A[3])]},P.updateTraces=function(A,E){var d=Object.keys(this.traces),_,L,b;this.fullData=A;t:for(_=0;_<d.length;_++){var D=d[_],B=this.traces[D];for(L=0;L<A.length;L++)if(b=A[L],b.uid===D&&b.type===B.type)continue t;B.dispose(),delete this.traces[D]}for(_=0;_<A.length;_++){b=A[_];var I=E[_],V=this.traces[b.uid];V?V.update(b,I):(V=b._module.plot(this,b,I),this.traces[b.uid]=V)}this.glplot.objects.sort(function(N,F){return N._trace.index-F._trace.index})},P.updateFx=function(A){y(A)||m(A)?(this.pickCanvas.style["pointer-events"]="none",this.mouseContainer.style["pointer-events"]="none"):(this.pickCanvas.style["pointer-events"]="auto",this.mouseContainer.style["pointer-events"]="auto"),A==="pan"?this.mouseContainer.style.cursor="move":A==="zoom"?this.mouseContainer.style.cursor="crosshair":this.mouseContainer.style.cursor=null},P.emitPointAction=function(A,E){for(var d=A.trace.uid,_=A.pointIndex,L,b=0;b<this.fullData.length;b++)this.fullData[b].uid===d&&(L=this.fullData[b]);var D={x:A.traceCoord[0],y:A.traceCoord[1],curveNumber:L.index,pointNumber:_,data:L._input,fullData:this.fullData,xaxis:this.xaxis,yaxis:this.yaxis};r.appendArrayPointValue(D,L,_),this.graphDiv.emit(E,{points:[D]})},P.draw=function(){if(!this.stopped){requestAnimationFrame(this.redraw);var A=this.glplot,E=this.camera,d=E.mouseListener,_=this.lastButtonState===1&&d.buttons===0,L=this.fullLayout;this.lastButtonState=d.buttons,this.cameraChanged();var b=d.x*A.pixelRatio,D=this.canvas.height-A.pixelRatio*d.y,B;if(E.boxEnabled&&L.dragmode==="zoom"){this.selectBox.enabled=!0;for(var I=this.selectBox.selectBox=[Math.min(E.boxStart[0],E.boxEnd[0]),Math.min(E.boxStart[1],E.boxEnd[1]),Math.max(E.boxStart[0],E.boxEnd[0]),Math.max(E.boxStart[1],E.boxEnd[1])],V=0;V<2;V++)E.boxStart[V]===E.boxEnd[V]&&(I[V]=A.dataBox[V],I[V+2]=A.dataBox[V+2]);A.setDirty()}else if(!E.panning&&this.isMouseOver){this.selectBox.enabled=!1;var N=L._size,F=this.xaxis.domain,U=this.yaxis.domain;B=A.pick(b/A.pixelRatio+N.l+F[0]*N.w,D/A.pixelRatio-(N.t+(1-U[1])*N.h));var G=B&&B.object._trace.handlePick(B);if(G&&_&&this.emitPointAction(G,"plotly_click"),B&&B.object._trace.hoverinfo!=="skip"&&L.hovermode&&G&&(!this.lastPickResult||this.lastPickResult.traceUid!==G.trace.uid||this.lastPickResult.dataCoord[0]!==G.dataCoord[0]||this.lastPickResult.dataCoord[1]!==G.dataCoord[1])){var Y=G;this.lastPickResult={traceUid:G.trace?G.trace.uid:null,dataCoord:G.dataCoord.slice()},this.spikes.update({center:B.dataCoord}),Y.screenCoord=[((A.viewBox[2]-A.viewBox[0])*(B.dataCoord[0]-A.dataBox[0])/(A.dataBox[2]-A.dataBox[0])+A.viewBox[0])/A.pixelRatio,(this.canvas.height-(A.viewBox[3]-A.viewBox[1])*(B.dataCoord[1]-A.dataBox[1])/(A.dataBox[3]-A.dataBox[1])-A.viewBox[1])/A.pixelRatio],this.emitPointAction(G,"plotly_hover");var Q=this.fullData[Y.trace.index]||{},ft=Y.pointIndex,ut=r.castHoverinfo(Q,L,ft);if(ut&&ut!=="all"){var lt=ut.split("+");lt.indexOf("x")===-1&&(Y.traceCoord[0]=void 0),lt.indexOf("y")===-1&&(Y.traceCoord[1]=void 0),lt.indexOf("z")===-1&&(Y.traceCoord[2]=void 0),lt.indexOf("text")===-1&&(Y.textLabel=void 0),lt.indexOf("name")===-1&&(Y.name=void 0)}r.loneHover({x:Y.screenCoord[0],y:Y.screenCoord[1],xLabel:this.hoverFormatter("xaxis",Y.traceCoord[0]),yLabel:this.hoverFormatter("yaxis",Y.traceCoord[1]),zLabel:Y.traceCoord[2],text:Y.textLabel,name:Y.name,color:r.castHoverOption(Q,ft,"bgcolor")||Y.color,borderColor:r.castHoverOption(Q,ft,"bordercolor"),fontFamily:r.castHoverOption(Q,ft,"font.family"),fontSize:r.castHoverOption(Q,ft,"font.size"),fontColor:r.castHoverOption(Q,ft,"font.color"),nameLength:r.castHoverOption(Q,ft,"namelength"),textAlign:r.castHoverOption(Q,ft,"align")},{container:this.svgContainer,gd:this.graphDiv})}}B||this.unhover(),A.draw()}},P.unhover=function(){this.lastPickResult&&(this.spikes.update({}),this.lastPickResult=null,this.graphDiv.emit("plotly_unhover"),r.loneUnhover(this.svgContainer))},P.hoverFormatter=function(A,E){if(E!==void 0){var d=this[A];return C.tickText(d,d.c2l(E),"hover").text}}},2487:function(nt,W,e){var M=e(13582).overrideAll,C=e(6811),r=e(20299),i=e(4173).KO,w=e(34809),S=e(62972),h="gl3d",l="scene";W.name=h,W.attr=l,W.idRoot=l,W.idRegex=W.attrRegex=w.counterRegex("scene"),W.attributes=e(22597),W.layoutAttributes=e(77168),W.baseLayoutAttrOverrides=M({hoverlabel:C.hoverlabel},"plot","nested"),W.supplyLayoutDefaults=e(15250),W.plot=function(t){for(var n=t._fullLayout,o=t._fullData,a=n._subplots[h],s=0;s<a.length;s++){var u=a[s],x=i(o,h,u),m=n[u],y=m.camera,c=m._scene;c||(c=new r({id:u,graphDiv:t,container:t.querySelector(".gl-container"),staticPlot:t._context.staticPlot,plotGlPixelRatio:t._context.plotGlPixelRatio,camera:y},n),m._scene=c),c.viewInitial||(c.viewInitial={up:{x:y.up.x,y:y.up.y,z:y.up.z},eye:{x:y.eye.x,y:y.eye.y,z:y.eye.z},center:{x:y.center.x,y:y.center.y,z:y.center.z}}),c.plot(x,n,t.layout)}},W.clean=function(t,n,o,a){for(var s=a._subplots[h]||[],u=0;u<s.length;u++){var x=s[u];!n[x]&&a[x]._scene&&(a[x]._scene.destroy(),a._infolayer&&a._infolayer.selectAll(".annotation-"+x).remove())}},W.toSVG=function(t){for(var n=t._fullLayout,o=n._subplots[h],a=n._size,s=0;s<o.length;s++){var u=n[o[s]],x=u.domain,m=u._scene,y=m.toImage("png"),c=n._glimages.append("svg:image");c.attr({xmlns:S.svg,"xlink:href":y,x:a.l+a.w*x.x[0],y:a.t+a.h*(1-x.y[1]),width:a.w*(x.x[1]-x.x[0]),height:a.h*(x.y[1]-x.y[0]),preserveAspectRatio:"none"}),m.destroy()}},W.cleanId=function(t){if(t.match(/^scene[0-9]*$/)){var n=t.substr(5);return n==="1"&&(n=""),l+n}},W.updateFx=function(t){for(var n=t._fullLayout,o=n._subplots[h],a=0;a<o.length;a++){var s=n[o[a]]._scene;s.updateFx(n.dragmode,n.hovermode)}}},22597:function(nt){nt.exports={scene:{valType:"subplotid",dflt:"scene",editType:"calc+clearAxisTypes"}}},63397:function(nt,W,e){var M=e(78766),C=e(25829),r=e(93049).extendFlat,i=e(13582).overrideAll;nt.exports=i({visible:C.visible,showspikes:{valType:"boolean",dflt:!0},spikesides:{valType:"boolean",dflt:!0},spikethickness:{valType:"number",min:0,dflt:2},spikecolor:{valType:"color",dflt:M.defaultLine},showbackground:{valType:"boolean",dflt:!1},backgroundcolor:{valType:"color",dflt:"rgba(204, 204, 204, 0.5)"},showaxeslabels:{valType:"boolean",dflt:!0},color:C.color,categoryorder:C.categoryorder,categoryarray:C.categoryarray,title:{text:C.title.text,font:C.title.font},type:r({},C.type,{values:["-","linear","log","date","category"]}),autotypenumbers:C.autotypenumbers,autorange:C.autorange,autorangeoptions:{minallowed:C.autorangeoptions.minallowed,maxallowed:C.autorangeoptions.maxallowed,clipmin:C.autorangeoptions.clipmin,clipmax:C.autorangeoptions.clipmax,include:C.autorangeoptions.include,editType:"plot"},rangemode:C.rangemode,minallowed:C.minallowed,maxallowed:C.maxallowed,range:r({},C.range,{items:[{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}}],anim:!1}),tickmode:C.minor.tickmode,nticks:C.nticks,tick0:C.tick0,dtick:C.dtick,tickvals:C.tickvals,ticktext:C.ticktext,ticks:C.ticks,mirror:C.mirror,ticklen:C.ticklen,tickwidth:C.tickwidth,tickcolor:C.tickcolor,showticklabels:C.showticklabels,labelalias:C.labelalias,tickfont:C.tickfont,tickangle:C.tickangle,tickprefix:C.tickprefix,showtickprefix:C.showtickprefix,ticksuffix:C.ticksuffix,showticksuffix:C.showticksuffix,showexponent:C.showexponent,exponentformat:C.exponentformat,minexponent:C.minexponent,separatethousands:C.separatethousands,tickformat:C.tickformat,tickformatstops:C.tickformatstops,hoverformat:C.hoverformat,showline:C.showline,linecolor:C.linecolor,linewidth:C.linewidth,showgrid:C.showgrid,gridcolor:r({},C.gridcolor,{dflt:"rgb(204, 204, 204)"}),gridwidth:C.gridwidth,zeroline:C.zeroline,zerolinecolor:C.zerolinecolor,zerolinewidth:C.zerolinewidth,_deprecated:{title:C._deprecated.title,titlefont:C._deprecated.titlefont}},"plot","from-root")},34258:function(nt,W,e){var M=e(65657).mix,C=e(34809),r=e(78032),i=e(63397),w=e(4392),S=e(97655),h=["xaxis","yaxis","zaxis"],l=100*136/187;nt.exports=function(t,n,o){var a,s;function u(y,c){return C.coerce(a,s,i,y,c)}for(var x=0;x<h.length;x++){var m=h[x];a=t[m]||{},s=r.newContainer(n,m),s._id=m[0]+o.scene,s._name=m,w(a,s,u,o),S(a,s,u,{font:o.font,letter:m[0],data:o.data,showGrid:!0,noAutotickangles:!0,noTicklabelindex:!0,noTickson:!0,noTicklabelmode:!0,noTicklabelshift:!0,noTicklabelstandoff:!0,noTicklabelstep:!0,noTicklabelposition:!0,noTicklabeloverflow:!0,noInsiderange:!0,bgColor:o.bgColor,calendar:o.calendar},o.fullLayout),u("gridcolor",M(s.color,o.bgColor,l).toRgbString()),u("title.text",m[0]),s.setScale=C.noop,u("showspikes")&&(u("spikesides"),u("spikethickness"),u("spikecolor",s.color)),u("showaxeslabels"),u("showbackground")&&u("backgroundcolor")}}},95701:function(nt,W,e){var M=e(55010),C=e(34809),r=["xaxis","yaxis","zaxis"];function i(){this.bounds=[[-10,-10,-10],[10,10,10]],this.ticks=[[],[],[]],this.tickEnable=[!0,!0,!0],this.tickFont=["sans-serif","sans-serif","sans-serif"],this.tickSize=[12,12,12],this.tickFontWeight=["normal","normal","normal","normal"],this.tickFontStyle=["normal","normal","normal","normal"],this.tickFontVariant=["normal","normal","normal","normal"],this.tickAngle=[0,0,0],this.tickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.tickPad=[18,18,18],this.labels=["x","y","z"],this.labelEnable=[!0,!0,!0],this.labelFont=["Open Sans","Open Sans","Open Sans"],this.labelSize=[20,20,20],this.labelFontWeight=["normal","normal","normal","normal"],this.labelFontStyle=["normal","normal","normal","normal"],this.labelFontVariant=["normal","normal","normal","normal"],this.labelColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.labelPad=[30,30,30],this.lineEnable=[!0,!0,!0],this.lineMirror=[!1,!1,!1],this.lineWidth=[1,1,1],this.lineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.lineTickEnable=[!0,!0,!0],this.lineTickMirror=[!1,!1,!1],this.lineTickLength=[10,10,10],this.lineTickWidth=[1,1,1],this.lineTickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.gridEnable=[!0,!0,!0],this.gridWidth=[1,1,1],this.gridColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.zeroEnable=[!0,!0,!0],this.zeroLineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.zeroLineWidth=[2,2,2],this.backgroundEnable=[!0,!0,!0],this.backgroundColor=[[.8,.8,.8,.5],[.8,.8,.8,.5],[.8,.8,.8,.5]],this._defaultTickPad=this.tickPad.slice(),this._defaultLabelPad=this.labelPad.slice(),this._defaultLineTickLength=this.lineTickLength.slice()}var w=i.prototype;w.merge=function(h,l){for(var t=this,n=0;n<3;++n){var o=l[r[n]];if(!o.visible){t.tickEnable[n]=!1,t.labelEnable[n]=!1,t.lineEnable[n]=!1,t.lineTickEnable[n]=!1,t.gridEnable[n]=!1,t.zeroEnable[n]=!1,t.backgroundEnable[n]=!1;continue}t.labels[n]=h._meta?C.templateString(o.title.text,h._meta):o.title.text,"font"in o.title&&(o.title.font.color&&(t.labelColor[n]=M(o.title.font.color)),o.title.font.family&&(t.labelFont[n]=o.title.font.family),o.title.font.size&&(t.labelSize[n]=o.title.font.size),o.title.font.weight&&(t.labelFontWeight[n]=o.title.font.weight),o.title.font.style&&(t.labelFontStyle[n]=o.title.font.style),o.title.font.variant&&(t.labelFontVariant[n]=o.title.font.variant)),"showline"in o&&(t.lineEnable[n]=o.showline),"linecolor"in o&&(t.lineColor[n]=M(o.linecolor)),"linewidth"in o&&(t.lineWidth[n]=o.linewidth),"showgrid"in o&&(t.gridEnable[n]=o.showgrid),"gridcolor"in o&&(t.gridColor[n]=M(o.gridcolor)),"gridwidth"in o&&(t.gridWidth[n]=o.gridwidth),o.type==="log"?t.zeroEnable[n]=!1:"zeroline"in o&&(t.zeroEnable[n]=o.zeroline),"zerolinecolor"in o&&(t.zeroLineColor[n]=M(o.zerolinecolor)),"zerolinewidth"in o&&(t.zeroLineWidth[n]=o.zerolinewidth),"ticks"in o&&o.ticks?t.lineTickEnable[n]=!0:t.lineTickEnable[n]=!1,"ticklen"in o&&(t.lineTickLength[n]=t._defaultLineTickLength[n]=o.ticklen),"tickcolor"in o&&(t.lineTickColor[n]=M(o.tickcolor)),"tickwidth"in o&&(t.lineTickWidth[n]=o.tickwidth),"tickangle"in o&&(t.tickAngle[n]=o.tickangle==="auto"?-3600:Math.PI*-o.tickangle/180),"showticklabels"in o&&(t.tickEnable[n]=o.showticklabels),"tickfont"in o&&(o.tickfont.color&&(t.tickColor[n]=M(o.tickfont.color)),o.tickfont.family&&(t.tickFont[n]=o.tickfont.family),o.tickfont.size&&(t.tickSize[n]=o.tickfont.size),o.tickfont.weight&&(t.tickFontWeight[n]=o.tickfont.weight),o.tickfont.style&&(t.tickFontStyle[n]=o.tickfont.style),o.tickfont.variant&&(t.tickFontVariant[n]=o.tickfont.variant)),"mirror"in o?["ticks","all","allticks"].indexOf(o.mirror)!==-1?(t.lineTickMirror[n]=!0,t.lineMirror[n]=!0):o.mirror===!0?(t.lineTickMirror[n]=!1,t.lineMirror[n]=!0):(t.lineTickMirror[n]=!1,t.lineMirror[n]=!1):t.lineMirror[n]=!1,"showbackground"in o&&o.showbackground!==!1?(t.backgroundEnable[n]=!0,t.backgroundColor[n]=M(o.backgroundcolor)):t.backgroundEnable[n]=!1}};function S(h,l){var t=new i;return t.merge(h,l),t}nt.exports=S},15250:function(nt,W,e){var M=e(34809),C=e(78766),r=e(33626),i=e(4448),w=e(34258),S=e(77168),h=e(4173).KO,l="gl3d";nt.exports=function(n,o,a){var s=o._basePlotModules.length>1;function u(x){if(!s){var m=M.validate(n[x],S[x]);if(m)return n[x]}}i(n,o,a,{type:l,attributes:S,handleDefaults:t,fullLayout:o,font:o.font,fullData:a,getDfltFromLayout:u,autotypenumbersDflt:o.autotypenumbers,paper_bgcolor:o.paper_bgcolor,calendar:o.calendar})};function t(n,o,a,s){for(var u=a("bgcolor"),x=C.combine(u,s.paper_bgcolor),m=["up","center","eye"],y=0;y<m.length;y++)a("camera."+m[y]+".x"),a("camera."+m[y]+".y"),a("camera."+m[y]+".z");a("camera.projection.type");var c=!!a("aspectratio.x")&&!!a("aspectratio.y")&&!!a("aspectratio.z"),p=c?"manual":"auto",f=a("aspectmode",p);c||(n.aspectratio=o.aspectratio={x:1,y:1,z:1},f==="manual"&&(o.aspectmode="auto"),n.aspectmode=o.aspectmode);var T=h(s.fullData,l,s.id);w(n,o,{font:s.font,scene:s.id,data:T,bgColor:x,calendar:s.calendar,autotypenumbersDflt:s.autotypenumbersDflt,fullLayout:s.fullLayout}),r.getComponentMethod("annotations3d","handleDefaults")(n,o,s);var k=s.getDfltFromLayout("dragmode");if(k!==!1&&!k)if(k="orbit",n.camera&&n.camera.up){var P=n.camera.up.x,g=n.camera.up.y,A=n.camera.up.z;A!==0&&(!P||!g||!A||A/Math.sqrt(P*P+g*g+A*A)>.999)&&(k="turntable")}else k="turntable";a("dragmode",k),a("hovermode",s.getDfltFromLayout("hovermode"))}},77168:function(nt,W,e){var M=e(63397),C=e(13792).u,r=e(93049).extendFlat,i=e(34809).counterRegex;function w(S,h,l){return{x:{valType:"number",dflt:S,editType:"camera"},y:{valType:"number",dflt:h,editType:"camera"},z:{valType:"number",dflt:l,editType:"camera"},editType:"camera"}}nt.exports={_arrayAttrRegexps:[i("scene",".annotations",!0)],bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"plot"},camera:{up:r(w(0,0,1),{}),center:r(w(0,0,0),{}),eye:r(w(1.25,1.25,1.25),{}),projection:{type:{valType:"enumerated",values:["perspective","orthographic"],dflt:"perspective",editType:"calc"},editType:"calc"},editType:"camera"},domain:C({name:"scene",editType:"plot"}),aspectmode:{valType:"enumerated",values:["auto","cube","data","manual"],dflt:"auto",editType:"plot",impliedEdits:{"aspectratio.x":void 0,"aspectratio.y":void 0,"aspectratio.z":void 0}},aspectratio:{x:{valType:"number",min:0,editType:"plot",impliedEdits:{"^aspectmode":"manual"}},y:{valType:"number",min:0,editType:"plot",impliedEdits:{"^aspectmode":"manual"}},z:{valType:"number",min:0,editType:"plot",impliedEdits:{"^aspectmode":"manual"}},editType:"plot",impliedEdits:{aspectmode:"manual"}},xaxis:M,yaxis:M,zaxis:M,dragmode:{valType:"enumerated",values:["orbit","turntable","zoom","pan",!1],editType:"plot"},hovermode:{valType:"enumerated",values:["closest",!1],dflt:"closest",editType:"modebar"},uirevision:{valType:"any",editType:"none"},editType:"plot",_deprecated:{cameraposition:{valType:"info_array",editType:"camera"}}}},64087:function(nt,W,e){var M=e(55010),C=["xaxis","yaxis","zaxis"];function r(){this.enabled=[!0,!0,!0],this.colors=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.drawSides=[!0,!0,!0],this.lineWidth=[1,1,1]}var i=r.prototype;i.merge=function(S){for(var h=0;h<3;++h){var l=S[C[h]];if(!l.visible){this.enabled[h]=!1,this.drawSides[h]=!1;continue}this.enabled[h]=l.showspikes,this.colors[h]=M(l.spikecolor),this.drawSides[h]=l.spikesides,this.lineWidth[h]=l.spikethickness}};function w(S){var h=new r;return h.merge(S),h}nt.exports=w},32412:function(nt,W,e){nt.exports=w;var M=e(29714),C=e(34809),r=["xaxis","yaxis","zaxis"];function i(S){for(var h=new Array(3),l=0;l<3;++l){for(var t=S[l],n=new Array(t.length),o=0;o<t.length;++o)n[o]=t[o].x;h[l]=n}return h}function w(S){for(var h=S.axesOptions,l=S.glplot.axesPixels,t=S.fullSceneLayout,n=[[],[],[]],o=0;o<3;++o){var a=t[r[o]];if(a._length=(l[o].hi-l[o].lo)*l[o].pixelsPerDataUnit/S.dataScale[o],Math.abs(a._length)===1/0||isNaN(a._length))n[o]=[];else{a._input_range=a.range.slice(),a.range[0]=l[o].lo/S.dataScale[o],a.range[1]=l[o].hi/S.dataScale[o],a._m=1/(S.dataScale[o]*l[o].pixelsPerDataUnit),a.range[0]===a.range[1]&&(a.range[0]-=1,a.range[1]+=1);var s=a.tickmode;if(a.tickmode==="auto"){a.tickmode="linear";var u=a.nticks||C.constrain(a._length/40,4,9);M.autoTicks(a,Math.abs(a.range[1]-a.range[0])/u)}for(var x=M.calcTicks(a,{msUTC:!0}),m=0;m<x.length;++m)x[m].x=x[m].x*S.dataScale[o],a.type==="date"&&(x[m].text=x[m].text.replace(/\<br\>/g," "));n[o]=x,a.tickmode=s}}h.ticks=n;for(var o=0;o<3;++o){.5*(S.glplot.bounds[0][o]+S.glplot.bounds[1][o]);for(var m=0;m<2;++m)h.bounds[m][o]=S.glplot.bounds[m][o]}S.contourLevels=i(n)}},25802:function(nt){function W(M,C){var r=[0,0,0,0],i,w;for(i=0;i<4;++i)for(w=0;w<4;++w)r[w]+=M[4*i+w]*C[i];return r}function e(M,C){var r=W(M.projection,W(M.view,W(M.model,[C[0],C[1],C[2],1])));return r}nt.exports=e},20299:function(nt,W,e){var M=e(99098).gl_plot3d,C=M.createCamera,r=M.createScene,i=e(22248),w=e(74043),S=e(33626),h=e(34809),l=h.preserveDrawingBuffer(),t=e(29714),n=e(32141),o=e(55010),a=e(97464),s=e(25802),u=e(95701),x=e(64087),m=e(32412),y=e(32919).applyAutorangeOptions,c,p,f=!1;function T(D,B){var I=document.createElement("div"),V=D.container;this.graphDiv=D.graphDiv;var N=document.createElementNS("http://www.w3.org/2000/svg","svg");N.style.position="absolute",N.style.top=N.style.left="0px",N.style.width=N.style.height="100%",N.style["z-index"]=20,N.style["pointer-events"]="none",I.appendChild(N),this.svgContainer=N,I.id=D.id,I.style.position="absolute",I.style.top=I.style.left="0px",I.style.width=I.style.height="100%",V.appendChild(I),this.fullLayout=B,this.id=D.id||"scene",this.fullSceneLayout=B[this.id],this.plotArgs=[[],{},{}],this.axesOptions=u(B,B[this.id]),this.spikeOptions=x(B[this.id]),this.container=I,this.staticMode=!!D.staticPlot,this.pixelRatio=this.pixelRatio||D.plotGlPixelRatio||2,this.dataScale=[1,1,1],this.contourLevels=[[],[],[]],this.convertAnnotations=S.getComponentMethod("annotations3d","convert"),this.drawAnnotations=S.getComponentMethod("annotations3d","draw"),this.initializeGLPlot()}var k=T.prototype;k.prepareOptions=function(){var D=this,B={canvas:D.canvas,gl:D.gl,glOptions:{preserveDrawingBuffer:l,premultipliedAlpha:!0,antialias:!0},container:D.container,axes:D.axesOptions,spikes:D.spikeOptions,pickRadius:10,snapToData:!0,autoScale:!0,autoBounds:!1,cameraObject:D.camera,pixelRatio:D.pixelRatio};if(D.staticMode){if(!p&&(c=document.createElement("canvas"),p=i({canvas:c,preserveDrawingBuffer:!0,premultipliedAlpha:!0,antialias:!0}),!p))throw new Error("error creating static canvas/context for image server");B.gl=p,B.canvas=c}return B};var P=!0;k.tryCreatePlot=function(){var D=this,B=D.prepareOptions(),I=!0;try{D.glplot=r(B)}catch{if(D.staticMode||!P||l)I=!1;else{h.warn(["webgl setup failed possibly due to","false preserveDrawingBuffer config.","The mobile/tablet device may not be detected by is-mobile module.","Enabling preserveDrawingBuffer in second attempt to create webgl scene..."].join(" "));try{l=B.glOptions.preserveDrawingBuffer=!0,D.glplot=r(B)}catch{l=B.glOptions.preserveDrawingBuffer=!1,I=!1}}}return P=!1,I},k.initializeGLCamera=function(){var D=this,B=D.fullSceneLayout.camera,I=B.projection.type==="orthographic";D.camera=C(D.container,{center:[B.center.x,B.center.y,B.center.z],eye:[B.eye.x,B.eye.y,B.eye.z],up:[B.up.x,B.up.y,B.up.z],_ortho:I,zoomMin:.01,zoomMax:100,mode:"orbit"})},k.initializeGLPlot=function(){var D=this;D.initializeGLCamera();var B=D.tryCreatePlot();if(!B)return a(D);D.traces={},D.make4thDimension();var I=D.graphDiv,V=I.layout,N=function(){var U={};return D.isCameraChanged(V)&&(U[D.id+".camera"]=D.getCamera()),D.isAspectChanged(V)&&(U[D.id+".aspectratio"]=D.glplot.getAspectratio(),V[D.id].aspectmode!=="manual"&&(D.fullSceneLayout.aspectmode=V[D.id].aspectmode=U[D.id+".aspectmode"]="manual")),U},F=function(U){if(U.fullSceneLayout.dragmode!==!1){var G=N();U.saveLayout(V),U.graphDiv.emit("plotly_relayout",G)}};return D.glplot.canvas&&(D.glplot.canvas.addEventListener("mouseup",function(){F(D)}),D.glplot.canvas.addEventListener("touchstart",function(){f=!0}),D.glplot.canvas.addEventListener("wheel",function(U){if(I._context._scrollZoom.gl3d){if(D.camera._ortho){var G=U.deltaX>U.deltaY?1.1:.9090909090909091,Y=D.glplot.getAspectratio();D.glplot.setAspectratio({x:G*Y.x,y:G*Y.y,z:G*Y.z})}F(D)}},w?{passive:!1}:!1),D.glplot.canvas.addEventListener("mousemove",function(){if(D.fullSceneLayout.dragmode!==!1&&D.camera.mouseListener.buttons!==0){var U=N();D.graphDiv.emit("plotly_relayouting",U)}}),D.staticMode||D.glplot.canvas.addEventListener("webglcontextlost",function(U){I&&I.emit&&I.emit("plotly_webglcontextlost",{event:U,layer:D.id})},!1)),D.glplot.oncontextloss=function(){D.recoverContext()},D.glplot.onrender=function(){D.render()},!0},k.render=function(){var D=this,B=D.graphDiv,I,V=D.svgContainer,N=D.container.getBoundingClientRect();B._fullLayout._calcInverseTransform(B);var F=B._fullLayout._invScaleX,U=B._fullLayout._invScaleY,G=N.width*F,Y=N.height*U;V.setAttributeNS(null,"viewBox","0 0 "+G+" "+Y),V.setAttributeNS(null,"width",G),V.setAttributeNS(null,"height",Y),m(D),D.glplot.axes.update(D.axesOptions);for(var Q=Object.keys(D.traces),ft=null,ut=D.glplot.selection,lt=0;lt<Q.length;++lt)I=D.traces[Q[lt]],I.data.hoverinfo!=="skip"&&I.handlePick(ut)&&(ft=I),I.setContourLevels&&I.setContourLevels();function K(Nt,Wt,Vt){var jt=D.fullSceneLayout[Nt+"axis"];return jt.type!=="log"&&(Wt=jt.d2l(Wt)),t.hoverLabelText(jt,Wt,Vt)}if(ft!==null){var $=s(D.glplot.cameraParams,ut.dataCoordinate);I=ft.data;var H=B._fullData[I.index],at=ut.index,ct={xLabel:K("x",ut.traceCoordinate[0],I.xhoverformat),yLabel:K("y",ut.traceCoordinate[1],I.yhoverformat),zLabel:K("z",ut.traceCoordinate[2],I.zhoverformat)},et=n.castHoverinfo(H,D.fullLayout,at),Z=(et||"").split("+"),ot=et&&et==="all";!H.hovertemplate&&!ot&&(Z.indexOf("x")===-1&&(ct.xLabel=void 0),Z.indexOf("y")===-1&&(ct.yLabel=void 0),Z.indexOf("z")===-1&&(ct.zLabel=void 0),Z.indexOf("text")===-1&&(ut.textLabel=void 0),Z.indexOf("name")===-1&&(ft.name=void 0));var st,dt=[];I.type==="cone"||I.type==="streamtube"?(ct.uLabel=K("x",ut.traceCoordinate[3],I.uhoverformat),(ot||Z.indexOf("u")!==-1)&&dt.push("u: "+ct.uLabel),ct.vLabel=K("y",ut.traceCoordinate[4],I.vhoverformat),(ot||Z.indexOf("v")!==-1)&&dt.push("v: "+ct.vLabel),ct.wLabel=K("z",ut.traceCoordinate[5],I.whoverformat),(ot||Z.indexOf("w")!==-1)&&dt.push("w: "+ct.wLabel),ct.normLabel=ut.traceCoordinate[6].toPrecision(3),(ot||Z.indexOf("norm")!==-1)&&dt.push("norm: "+ct.normLabel),I.type==="streamtube"&&(ct.divergenceLabel=ut.traceCoordinate[7].toPrecision(3),(ot||Z.indexOf("divergence")!==-1)&&dt.push("divergence: "+ct.divergenceLabel)),ut.textLabel&&dt.push(ut.textLabel),st=dt.join("<br>")):I.type==="isosurface"||I.type==="volume"?(ct.valueLabel=t.hoverLabelText(D._mockAxis,D._mockAxis.d2l(ut.traceCoordinate[3]),I.valuehoverformat),dt.push("value: "+ct.valueLabel),ut.textLabel&&dt.push(ut.textLabel),st=dt.join("<br>")):st=ut.textLabel;var xt={x:ut.traceCoordinate[0],y:ut.traceCoordinate[1],z:ut.traceCoordinate[2],data:H._input,fullData:H,curveNumber:H.index,pointNumber:at};n.appendArrayPointValue(xt,H,at),I._module.eventData&&(xt=H._module.eventData(xt,ut,H,{},at));var At={points:[xt]};if(D.fullSceneLayout.hovermode){var St=[];n.loneHover({trace:H,x:(.5+.5*$[0]/$[3])*G,y:(.5-.5*$[1]/$[3])*Y,xLabel:ct.xLabel,yLabel:ct.yLabel,zLabel:ct.zLabel,text:st,name:ft.name,color:n.castHoverOption(H,at,"bgcolor")||ft.color,borderColor:n.castHoverOption(H,at,"bordercolor"),fontFamily:n.castHoverOption(H,at,"font.family"),fontSize:n.castHoverOption(H,at,"font.size"),fontColor:n.castHoverOption(H,at,"font.color"),nameLength:n.castHoverOption(H,at,"namelength"),textAlign:n.castHoverOption(H,at,"align"),hovertemplate:h.castOption(H,at,"hovertemplate"),hovertemplateLabels:h.extendFlat({},xt,ct),eventData:[xt]},{container:V,gd:B,inOut_bbox:St}),xt.bbox=St[0]}ut.distance<5&&(ut.buttons||f)?B.emit("plotly_click",At):B.emit("plotly_hover",At),this.oldEventData=At}else n.loneUnhover(V),this.oldEventData&&B.emit("plotly_unhover",this.oldEventData),this.oldEventData=void 0;D.drawAnnotations(D)},k.recoverContext=function(){var D=this;D.glplot.dispose();var B=function(){if(D.glplot.gl.isContextLost()){requestAnimationFrame(B);return}if(!D.initializeGLPlot()){h.error("Catastrophic and unrecoverable WebGL error. Context lost.");return}D.plot.apply(D,D.plotArgs)};requestAnimationFrame(B)};var g=["xaxis","yaxis","zaxis"];function A(D,B,I){for(var V=D.fullSceneLayout,N=0;N<3;N++){var F=g[N],U=F.charAt(0),G=V[F],Y=B[U],Q=B[U+"calendar"],ft=B["_"+U+"length"];if(!h.isArrayOrTypedArray(Y))I[0][N]=Math.min(I[0][N],0),I[1][N]=Math.max(I[1][N],ft-1);else for(var ut,lt=0;lt<(ft||Y.length);lt++)if(h.isArrayOrTypedArray(Y[lt]))for(var K=0;K<Y[lt].length;++K)ut=G.d2l(Y[lt][K],0,Q),!isNaN(ut)&&isFinite(ut)&&(I[0][N]=Math.min(I[0][N],ut),I[1][N]=Math.max(I[1][N],ut));else ut=G.d2l(Y[lt],0,Q),!isNaN(ut)&&isFinite(ut)&&(I[0][N]=Math.min(I[0][N],ut),I[1][N]=Math.max(I[1][N],ut))}}function E(D,B){for(var I=D.fullSceneLayout,V=I.annotations||[],N=0;N<3;N++)for(var F=g[N],U=F.charAt(0),G=I[F],Y=0;Y<V.length;Y++){var Q=V[Y];if(Q.visible){var ft=G.r2l(Q[U]);!isNaN(ft)&&isFinite(ft)&&(B[0][N]=Math.min(B[0][N],ft),B[1][N]=Math.max(B[1][N],ft))}}}k.plot=function(D,B,I){var V=this;if(V.plotArgs=[D,B,I],!V.glplot.contextLost){var N,F,U,G,Y,Q,ft=B[V.id],ut=I[V.id];V.fullLayout=B,V.fullSceneLayout=ft,V.axesOptions.merge(B,ft),V.spikeOptions.merge(ft),V.setViewport(ft),V.updateFx(ft.dragmode,ft.hovermode),V.camera.enableWheel=V.graphDiv._context._scrollZoom.gl3d,V.glplot.setClearColor(o(ft.bgcolor)),V.setConvert(Y),D?Array.isArray(D)||(D=[D]):D=[];var lt=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]];for(U=0;U<D.length;++U)N=D[U],!(N.visible!==!0||N._length===0)&&A(this,N,lt);E(this,lt);var K=[1,1,1];for(G=0;G<3;++G)lt[1][G]===lt[0][G]?K[G]=1:K[G]=1/(lt[1][G]-lt[0][G]);for(V.dataScale=K,V.convertAnnotations(this),U=0;U<D.length;++U)N=D[U],!(N.visible!==!0||N._length===0)&&(F=V.traces[N.uid],F?F.data.type===N.type?F.update(N):(F.dispose(),F=N._module.plot(this,N),V.traces[N.uid]=F):(F=N._module.plot(this,N),V.traces[N.uid]=F),F.name=N.name);var $=Object.keys(V.traces);t:for(U=0;U<$.length;++U){for(G=0;G<D.length;++G)if(D[G].uid===$[U]&&D[G].visible===!0&&D[G]._length!==0)continue t;F=V.traces[$[U]],F.dispose(),delete V.traces[$[U]]}V.glplot.objects.sort(function(Qt,_e){return Qt._trace.data.index-_e._trace.data.index});var H=[[0,0,0],[0,0,0]],at={};for(U=0;U<3;++U){Y=ft[g[U]],Q=Y.type,Q in at?(at[Q].acc*=K[U],at[Q].count+=1):at[Q]={acc:K[U],count:1};var ct;if(Y.autorange){H[0][U]=1/0,H[1][U]=-1/0;var et=V.glplot.objects,Z=V.fullSceneLayout.annotations||[],ot=Y._name.charAt(0);for(G=0;G<et.length;G++){var st=et[G],dt=st.bounds,xt=st._trace.data._pad||0;st.constructor.name==="ErrorBars"&&Y._lowerLogErrorBound?H[0][U]=Math.min(H[0][U],Y._lowerLogErrorBound):H[0][U]=Math.min(H[0][U],dt[0][U]/K[U]-xt),H[1][U]=Math.max(H[1][U],dt[1][U]/K[U]+xt)}for(G=0;G<Z.length;G++){var At=Z[G];if(At.visible){var St=Y.r2l(At[ot]);H[0][U]=Math.min(H[0][U],St),H[1][U]=Math.max(H[1][U],St)}}if("rangemode"in Y&&Y.rangemode==="tozero"&&(H[0][U]=Math.min(H[0][U],0),H[1][U]=Math.max(H[1][U],0)),H[0][U]>H[1][U])H[0][U]=-1,H[1][U]=1;else{var Nt=H[1][U]-H[0][U];H[0][U]-=Nt/32,H[1][U]+=Nt/32}if(ct=[H[0][U],H[1][U]],ct=y(ct,Y),H[0][U]=ct[0],H[1][U]=ct[1],Y.isReversed()){var Wt=H[0][U];H[0][U]=H[1][U],H[1][U]=Wt}}else ct=Y.range,H[0][U]=Y.r2l(ct[0]),H[1][U]=Y.r2l(ct[1]);H[0][U]===H[1][U]&&(H[0][U]-=1,H[1][U]+=1),Y.range=[H[0][U],H[1][U]],Y.limitRange(),V.glplot.setBounds(U,{min:Y.range[0]*K[U],max:Y.range[1]*K[U]})}var Vt,jt=ft.aspectmode;if(jt==="cube")Vt=[1,1,1];else if(jt==="manual"){var Dt=ft.aspectratio;Vt=[Dt.x,Dt.y,Dt.z]}else if(jt==="auto"||jt==="data"){var kt=[1,1,1];for(U=0;U<3;++U){Y=ft[g[U]],Q=Y.type;var Bt=at[Q];kt[U]=Math.pow(Bt.acc,1/Bt.count)/K[U]}jt==="data"||Math.max.apply(null,kt)/Math.min.apply(null,kt)<=4?Vt=kt:Vt=[1,1,1]}else throw new Error("scene.js aspectRatio was not one of the enumerated types");ft.aspectratio.x=ut.aspectratio.x=Vt[0],ft.aspectratio.y=ut.aspectratio.y=Vt[1],ft.aspectratio.z=ut.aspectratio.z=Vt[2],V.glplot.setAspectratio(ft.aspectratio),V.viewInitial.aspectratio||(V.viewInitial.aspectratio={x:ft.aspectratio.x,y:ft.aspectratio.y,z:ft.aspectratio.z}),V.viewInitial.aspectmode||(V.viewInitial.aspectmode=ft.aspectmode);var Ot=ft.domain||null,Ht=B._size||null;if(Ot&&Ht){var ye=V.container.style;ye.position="absolute",ye.left=Ht.l+Ot.x[0]*Ht.w+"px",ye.top=Ht.t+(1-Ot.y[1])*Ht.h+"px",ye.width=Ht.w*(Ot.x[1]-Ot.x[0])+"px",ye.height=Ht.h*(Ot.y[1]-Ot.y[0])+"px"}V.glplot.redraw()}},k.destroy=function(){var D=this;D.glplot&&(D.camera.mouseListener.enabled=!1,D.container.removeEventListener("wheel",D.camera.wheelListener),D.camera=null,D.glplot.dispose(),D.container.parentNode.removeChild(D.container),D.glplot=null)};function d(D){return[[D.eye.x,D.eye.y,D.eye.z],[D.center.x,D.center.y,D.center.z],[D.up.x,D.up.y,D.up.z]]}function _(D){return{up:{x:D.up[0],y:D.up[1],z:D.up[2]},center:{x:D.center[0],y:D.center[1],z:D.center[2]},eye:{x:D.eye[0],y:D.eye[1],z:D.eye[2]},projection:{type:D._ortho===!0?"orthographic":"perspective"}}}k.getCamera=function(){var D=this;return D.camera.view.recalcMatrix(D.camera.view.lastT()),_(D.camera)},k.setViewport=function(D){var B=this,I=D.camera;B.camera.lookAt.apply(this,d(I)),B.glplot.setAspectratio(D.aspectratio);var V=I.projection.type==="orthographic",N=B.camera._ortho;V!==N&&(B.glplot.redraw(),B.glplot.clearRGBA(),B.glplot.dispose(),B.initializeGLPlot())},k.isCameraChanged=function(D){var B=this,I=B.getCamera(),V=h.nestedProperty(D,B.id+".camera"),N=V.get();function F(Q,ft,ut,lt){var K=["up","center","eye"],$=["x","y","z"];return ft[K[ut]]&&Q[K[ut]][$[lt]]===ft[K[ut]][$[lt]]}var U=!1;if(N===void 0)U=!0;else{for(var G=0;G<3;G++)for(var Y=0;Y<3;Y++)if(!F(I,N,G,Y)){U=!0;break}(!N.projection||I.projection&&I.projection.type!==N.projection.type)&&(U=!0)}return U},k.isAspectChanged=function(D){var B=this,I=B.glplot.getAspectratio(),V=h.nestedProperty(D,B.id+".aspectratio"),N=V.get();return N===void 0||N.x!==I.x||N.y!==I.y||N.z!==I.z},k.saveLayout=function(D){var B=this,I=B.fullLayout,V,N,F,U,G,Y,Q=B.isCameraChanged(D),ft=B.isAspectChanged(D),ut=Q||ft;if(ut){var lt={};if(Q&&(V=B.getCamera(),N=h.nestedProperty(D,B.id+".camera"),F=N.get(),lt[B.id+".camera"]=F),ft&&(U=B.glplot.getAspectratio(),G=h.nestedProperty(D,B.id+".aspectratio"),Y=G.get(),lt[B.id+".aspectratio"]=Y),S.call("_storeDirectGUIEdit",D,I._preGUI,lt),Q){N.set(V);var K=h.nestedProperty(I,B.id+".camera");K.set(V)}if(ft){G.set(U);var $=h.nestedProperty(I,B.id+".aspectratio");$.set(U),B.glplot.redraw()}}return ut},k.updateFx=function(D,B){var I=this,V=I.camera;if(V)if(D==="orbit")V.mode="orbit",V.keyBindingMode="rotate";else if(D==="turntable"){V.up=[0,0,1],V.mode="turntable",V.keyBindingMode="rotate";var N=I.graphDiv,F=N._fullLayout,U=I.fullSceneLayout.camera,G=U.up.x,Y=U.up.y,Q=U.up.z;if(Q/Math.sqrt(G*G+Y*Y+Q*Q)<.999){var ft=I.id+".camera.up",ut={x:0,y:0,z:1},lt={};lt[ft]=ut;var K=N.layout;S.call("_storeDirectGUIEdit",K,F._preGUI,lt),U.up=ut,h.nestedProperty(K,ft).set(ut)}}else V.keyBindingMode=D;I.fullSceneLayout.hovermode=B};function L(D,B,I){for(var V=0,N=I-1;V<N;++V,--N)for(var F=0;F<B;++F)for(var U=0;U<4;++U){var G=4*(B*V+F)+U,Y=4*(B*N+F)+U,Q=D[G];D[G]=D[Y],D[Y]=Q}}function b(D,B,I){for(var V=0;V<I;++V)for(var N=0;N<B;++N){var F=4*(B*V+N),U=D[F+3];if(U>0)for(var G=255/U,Y=0;Y<3;++Y)D[F+Y]=Math.min(G*D[F+Y],255)}}k.toImage=function(D){var B=this;D||(D="png"),B.staticMode&&B.container.appendChild(c),B.glplot.redraw();var I=B.glplot.gl,V=I.drawingBufferWidth,N=I.drawingBufferHeight;I.bindFramebuffer(I.FRAMEBUFFER,null);var F=new Uint8Array(V*N*4);I.readPixels(0,0,V,N,I.RGBA,I.UNSIGNED_BYTE,F),L(F,V,N),b(F,V,N);var U=document.createElement("canvas");U.width=V,U.height=N;var G=U.getContext("2d",{willReadFrequently:!0}),Y=G.createImageData(V,N);Y.data.set(F),G.putImageData(Y,0,0);var Q;switch(D){case"jpeg":Q=U.toDataURL("image/jpeg");break;case"webp":Q=U.toDataURL("image/webp");break;default:Q=U.toDataURL("image/png")}return B.staticMode&&B.container.removeChild(c),Q},k.setConvert=function(){for(var D=this,B=0;B<3;B++){var I=D.fullSceneLayout[g[B]];t.setConvert(I,D.fullLayout),I.setScale=h.noop}},k.make4thDimension=function(){var D=this,B=D.graphDiv,I=B._fullLayout;D._mockAxis={type:"linear",showexponent:"all",exponentformat:"B"},t.setConvert(D._mockAxis,I)},nt.exports=T},88239:function(nt){nt.exports=function(W,e,M,C){C=C||W.length;for(var r=new Array(C),i=0;i<C;i++)r[i]=[W[i],e[i],M[i]];return r}},6704:function(nt,W,e){var M=e(80337),C=e(49722),r=e(10229),i=e(64101),w=e(52307),S=e(57891),h=e(93049).extendFlat,l=M({editType:"calc"});l.family.dflt='"Open Sans", verdana, arial, sans-serif',l.size.dflt=12,l.color.dflt=r.defaultLine,nt.exports={font:l,title:{text:{valType:"string",editType:"layoutstyle"},font:M({editType:"layoutstyle"}),subtitle:{text:{valType:"string",editType:"layoutstyle"},font:M({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:h(S({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:r.background,editType:"plot"},plot_bgcolor:{valType:"color",dflt:r.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:r.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:i.newshape,activeshape:i.activeshape,newselection:w.newselection,activeselection:w.activeselection,meta:{valType:"any",arrayOk:!0,editType:"plot"},transition:h({},C.transition,{editType:"none"}),_deprecated:{title:{valType:"string",editType:"layoutstyle"},titlefont:M({editType:"layoutstyle"})}}},8814:function(nt,W,e){var M=e(62994),C=e(37071),r=e(51962),i='\xA9 <a target="_blank" href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors',w="https://basemaps.cartocdn.com/gl/positron-gl-style/style.json",S="https://basemaps.cartocdn.com/gl/dark-matter-gl-style/style.json",h="https://basemaps.cartocdn.com/gl/voyager-gl-style/style.json",l="https://basemaps.cartocdn.com/gl/positron-nolabels-gl-style/style.json",t="https://basemaps.cartocdn.com/gl/dark-matter-nolabels-gl-style/style.json",n="https://basemaps.cartocdn.com/gl/voyager-nolabels-gl-style/style.json",o={basic:h,streets:h,outdoors:h,light:w,dark:S,satellite:r,"satellite-streets":C,"open-street-map":{id:"osm",version:8,sources:{"plotly-osm-tiles":{type:"raster",attribution:i,tiles:["https://tile.openstreetmap.org/{z}/{x}/{y}.png"],tileSize:256}},layers:[{id:"plotly-osm-tiles",type:"raster",source:"plotly-osm-tiles",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"white-bg":{id:"white-bg",version:8,sources:{},layers:[{id:"white-bg",type:"background",paint:{"background-color":"#FFFFFF"},minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"carto-positron":w,"carto-darkmatter":S,"carto-voyager":h,"carto-positron-nolabels":l,"carto-darkmatter-nolabels":t,"carto-voyager-nolabels":n},a=M(o);nt.exports={styleValueDflt:"basic",stylesMap:o,styleValuesMap:a,traceLayerPrefix:"plotly-trace-layer-",layoutLayerPrefix:"plotly-layout-layer-",missingStyleErrorMsg:["No valid maplibre style found, please set `map.style` to one of:",a.join(", "),"or use a tile service."].join(`