/*! For license information please see dll.TeX.js.LICENSE.txt */
(window.webpackJsonp_name_dll=window.webpackJsonp_name_dll||[]).push([[138],{3278:function(e,t,o){"use strict";o.r(t);var n=o(22),a=o.n(n),r=o(3279),s={insert:"head",singleton:!1};a()(r.default,s);t.default=r.default.locals||{}},3279:function(e,t,o){"use strict";o.r(t);var n=o(23),a=o.n(n)()(!1);a.push([e.i,".katex .mord {\n\tcolor: inherit;\n}\n",""]),t.default=a},932:function(e,t,o){"use strict";o.r(t);var n=o(202),a=o.n(n),r=o(14),s=o.n(r),i=o(12),l=o.n(i),p=o(15),c=o.n(p),u=o(16),d=o.n(u),h=o(8),f=o.n(h),m=o(0),v=o.n(m),y=o(26),g=o(1),b=o.n(g),w=o(1063),T=o(212),k=o(1043),E=o(817),P=o(822),C=o.n(P),x=o(40),M=o.n(x),S=o(27),N=o.n(S),R=o(87),j=o.n(R),O=o(204),_=o(102);o(3278);function D(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var o,n=f()(e);if(t){var a=f()(this).constructor;o=Reflect.construct(n,arguments,a)}else o=n.apply(this,arguments);return d()(this,o)}}var I=1,q=function(e){c()(o,e);var t=D(o);function o(e){var n;s()(this,o),n=t.call(this,e);var a={legend:"",showTooltip:!1,tooltipText:"",showPopover:!1,popoverContent:null,popoverName:null};return!0===e.displayMode&&(a.id=I,I+=1),n.state=a,n}return l()(o,[{key:"componentDidMount",value:function(){this.registerElements()}},{key:"componentDidUpdate",value:function(){this.registerElements()}},{key:"componentWillUnmount",value:function(){I=1}},{key:"registerElements",value:function(){var e=Object(y.findDOMNode)(this),t=this;Object(E.select)(e).selectAll(".mord").each((function(e){var o=Object(E.select)(this);t.state.popoverTarget!==this&&o.style("color","inherit");j()(t.props.elems).forEach((function(e){var n=t.props.elems[e];o.text()===e&&(n.variable&&(o.style("cursor","pointer"),o.style("color","blue")),o.on("mouseover",(function(){o.style("color","red"),n.tooltip&&t.setState({showTooltip:!0,tooltipText:n.tooltip,tooltipTarget:this})})).on("mouseout",(function(){t.state.showPopover||o.style("color","blue"),n.tooltip&&t.setState({showTooltip:!1})})).on("click",(function(){if(n.variable){var o={legend:n.legend||n.variable,min:n.min||M.a,max:n.max||N.a,step:n.step||"any"};n.onChange?(o.onChange=n.onChange,o.defaultValue=n.defaultValue):o.bind=n.variable,t.state.popoverName!==e?(t.setState({showTooltip:!1,showPopover:!0,popoverContent:n.body,popoverTarget:this,popoverName:e,config:o}),t.props.onPopover(!0)):(t.setState({showTooltip:!1,showPopover:!1,popoverContent:null,popoverTarget:null,popoverName:null}),t.props.onPopover(!1))}})))}))}))}},{key:"render",value:function(){var e,t=this,o=Object(_.isPrimitive)(this.props.raw)?this.props.raw.toString():this.props.raw,n=v.a.createElement("span",null,v.a.createElement(w.default,{show:this.state.showTooltip,container:document.body,target:this.state.tooltipTarget,placement:"top"},v.a.createElement(T.default,{id:"tooltip-top"},this.state.tooltipText)),v.a.createElement(w.default,{show:this.state.showPopover,container:document.body,target:this.state.popoverTarget,placement:this.props.popoverPlacement},v.a.createElement(k.default,{id:"popover-top"},v.a.createElement(O.default,a()({inline:!0},this.state.config)))));try{e=C.a.renderToString(o,{displayMode:this.props.displayMode})}catch(t){e=""}var r={__html:e};return!0===this.props.displayMode?v.a.createElement("div",{className:"tex",role:"button",tabIndex:0,style:this.props.style,onClick:this.props.onClick,onKeyPress:this.props.onClick,"aria-label":"Equation"},this.props.numbered?v.a.createElement("div",{className:"tag",style:{float:"right",marginTop:5,marginRight:5}},null!==this.props.tag?this.props.tag:"["+this.state.id+"]"):null,v.a.createElement("span",{ref:function(e){t.katex=e},dangerouslySetInnerHTML:r,"aria-hidden":!!r}),n):v.a.createElement("span",{className:"tex",role:"button",tabIndex:0,ref:function(e){t.katex=e},style:this.props.style,onClick:this.props.onClick,onKeyPress:this.props.onClick,"aria-label":"Equation"},v.a.createElement("span",{dangerouslySetInnerHTML:r,"aria-hidden":!!r,style:{whiteSpace:"nowrap"}}),n)}}]),o}(m.Component);q.propTypes={raw:b.a.oneOfType([b.a.string,b.a.number]).isRequired,displayMode:b.a.bool,numbered:b.a.bool,style:b.a.object,tag:b.a.string,elems:b.a.object,popoverPlacement:b.a.string,onPopover:b.a.func,onClick:b.a.func},q.defaultProps={displayMode:!1,numbered:!1,style:{},tag:null,elems:{},popoverPlacement:"top",onPopover:function(){},onClick:function(){}},t.default=q}}]);