!function(){"use strict";vart,e,r,n,a,i={306:function(t,e){e.q=void0,e.q="3.2.2"},63:function(t,e,r){varn,a=this&&this.__extends||(n=function(t,e){returnn=Object.setPrototypeOf||{__proto__:[]}instanceofArray&&function(t,e){t.__proto__=e}||function(t,e){for(varrine)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeofe&&null!==e)thrownewTypeError("Class extends value "+String(e)+" is not a constructor or null");functionr(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,newr)}),i=this&&this.__assign||function(){returni=Object.assign||function(t){for(vare,r=1,n=arguments.length;r<n;r++)for(varaine=arguments[r])Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a]);returnt},i.apply(this,arguments)},o=this&&this.__read||function(t,e){varr="function"==typeofSymbol&&t[Symbol.iterator];if(!r)returnt;varn,a,i=r.call(t),o=[];try{for(;(void0===e||e-->0)&&!(n=i.next()).done;)o.push(n.value)}catch(t){a={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(a)throwa.error}}returno},l=this&&this.__spreadArray||function(t,e,r){if(r||2===arguments.length)for(varn,a=0,i=e.length;a<i;a++)!n&&aine||(n||(n=Array.prototype.slice.call(e,0,a)),n[a]=e[a]);returnt.concat(n||Array.prototype.slice.call(e))},s=this&&this.__values||function(t){vare="function"==typeofSymbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)returnr.call(t);if(t&&"number"==typeoft.length)return{next:function(){returnt&&n>=t.length&&(t=void0),{value:t&&t[n++],done:!t}}};thrownewTypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.SafeHandler=e.SafeMathDocumentMixin=void0;varf=r(477);functionu(t){vare;returne=function(t){functione(){for(vare,r,n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];vari=t.apply(this,l([],o(n),!1))||this;i.safe=newi.options.SafeClass(i,i.options.safeOptions);varf=i.constructor.ProcessBits;f.has("safe")||f.allocate("safe");try{for(varu=s(i.inputJax),p=u.next();!p.done;p=u.next()){varc=p.value;c.name.match(/MathML/)?(c.mathml.filterAttribute=i.safe.mmlAttribute.bind(i.safe),c.mathml.filterClassList=i.safe.mmlClassList.bind(i.safe)):c.name.match(/TeX/)&&c.postFilters.add(i.sanitize.bind(c),-5.5)}}catch(t){e={error:t}}finally{try{p&&!p.done&&(r=u.return)&&r.call(u)}finally{if(e)throwe.error}}returni}returna(e,t),e.prototype.sanitize=function(t){t.math.root=this.parseOptions.root,t.document.safe.sanitize(t.math,t.document)},e}(t),e.OPTIONS=i(i({},t.OPTIONS),{safeOptions:i({},f.Safe.OPTIONS),SafeClass:f.Safe}),e}e.SafeMathDocumentMixin=u,e.SafeHandler=function(t){returnt.documentClass=u(t.documentClass),t}},509:function(t,e,r){varn=this&&this.__values||function(t){vare="function"==typeofSymbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)returnr.call(t);if(t&&"number"==typeoft.length)return{next:function(){returnt&&n>=t.length&&(t=void0),{value:t&&t[n++],done:!t}}};thrownewTypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},a=this&&this.__read||function(t,e){varr="function"==typeofSymbol&&t[Symbol.iterator];if(!r)returnt;varn,a,i=r.call(t),o=[];try{for(;(void0===e||e-->0)&&!(n=i.next()).done;)o.push(n.value)}catch(t){a={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(a)throwa.error}}returno};Object.defineProperty(e,"__esModule",{value:!0}),e.SafeMethods=void0;vari=r(914);e.SafeMethods={filterURL:function(t,e){varr=(e.match(/^\s*([a-z]+):/i)||[null,""])[1].toLowerCase(),n=t.allow.URLs;return"all"===n||"safe"===n&&(t.options.safeProtocols[r]||!r)?e:null},filterClassList:function(t,e){varr=this;returne.trim().replace(/\s\s+/g," ").split(/ /).map((function(e){returnr.filterClass(t,e)||""})).join(" ").trim().replace(/\s\s+/g,"")},filterClass:function(t,e){varr=t.allow.classes;return"all"===r||"safe"===r&&e.match(t.options.classPattern)?e:null},filterID:function(t,e){varr=t.allow.cssIDs;return"all"===r||"safe"===r&&e.match(t.options.idPattern)?e:null},filterStyles:function(t,e){varr,a,i,o;if("all"===t.allow.styles)returne;if("safe"!==t.allow.styles)returnnull;varl=t.adaptor,s=t.options;try{varf=l.node("div",{style:e}),u=l.node("div");try{for(varp=n(Object.keys(s.safeStyles)),c=p.next();!c.done;c=p.next()){varh=c.value;if(s.styleParts[h])try{for(vard=(i=void0,n(["Top","Right","Bottom","Left"])),y=d.next();!y.done;y=d.next()){varm,v=h+y.value;(m=this.filterStyle(t,v,f))&&l.setStyle(u,v,m)}}catch(t){i={error:t}}finally{try{y&&!y.done&&(o=d.return)&&o.call(d)}finally{if(i)throwi.error}}else(m=this.filterStyle(t,h,f))&&l.setStyle(u,h,m)}}catch(t){r={error:t}}finally{try{c&&!c.done&&(a=p.return)&&a.call(p)}finally{if(r)throwr.error}}e=l.allStyles(u)}catch(t){e=""}returne},filterStyle:function(t,e,r){varn=t.adaptor.getStyle(r,e);if("string"!=typeofn||""===n||n.match(/^\s*calc/)||n.match(/javascript:/)&&!t.options.safeProtocols.javascript||n.match(/data:/)&&!t.options.safeProtocols.data)returnnull;vara=e.replace(/Top|Right|Left|Bottom/,"");returnt.options.safeStyles[e]||t.options.safeStyles[a]?this.filterStyleValue(t,e,n,r):null},filterStyleValue:function(t,e,r,n){vara=t.options.styleLengths[e];if(!a)returnr;if("string"!=typeofa)returnthis.filterStyleLength(t,e,r);vari=this.filterStyleLength(t,a,t.adaptor.getStyle(n,a));returni?(t.adaptor.setStyle(n,a,i),t.adaptor.getStyle(n,e)):null},filterStyleLength:function(t,e,r){if(!r.match(/^(.+)(em|ex|ch|rem|px|mm|cm|in|pt|pc|%)$/))returnnull;varn=(0,i.length2em)(r,1),o=t.options.styleLengths[e],l=a(Array.isArray(o)?o:[-t.options.lengthMax,t.options.lengthMax],2),s=l[0],f=l[1];returns<=n&&n<=f?r:(n<s?s:f).toFixed(3).replace(/\.?0+$/,"")+"em"},filterFontSize:function(t,e){returnthis.filterStyleLength(t,"fontSize",e)},filterSizeMultiplier:function(t,e){varr=a(t.options.scriptsizemultiplierRange||[-1/0,1/0],2),n=r[0],i=r[1];returnMath.min(i,Math.max(n,parseFloat(e))).toString()},filterScriptLevel:function(t,e){varr=a(t.options.scriptlevelRange||[-1/0,1/0],2),n=r[0],i=r[1];returnMath.min(i,Math.max(n,parseInt(e))).toString()},filterData:function(t,e,r){returnr.match(t.options.dataPattern)?e:null}}},477:function(t,e,r){varn=this&&this.__assign||function(){returnn=Object.assign||function(t){for(vare,r=1,n=arguments.length;r<n;r++)for(varaine=arguments[r])Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a]);returnt},n.apply(this,arguments)},a=this&&this.__values||function(t){vare="function"==typeofSymbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)returnr.call(t);if(t&&"number"==typeoft.length)return{next:function(){returnt&&n>=t.length&&(t=void0),{value:t&&t[n++],done:!t}}};thrownewTypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.Safe=void0;vari=r(77),o=r(509),l=function(){functiont(t,e){this.filterAttributes=newMap([["href","filterURL"],["src","filterURL"],["altimg","filterURL"],["class","filterClassList"],["style","filterStyles"],["id","filterID"],["fontsize","filterFontSize"],["mathsize","filterFontSize"],["scriptminsize","filterFontSize"],["scriptsizemultiplier","filterSizeMultiplier"],["scriptlevel","filterScriptLevel"],["data-","filterData"]]),this.filterMethods=n({},o.SafeMethods),this.adaptor=t.adaptor,this.options=e,this.allow=this.options.allow}returnt.prototype.sanitize=function(t,e){try{t.root.walkTree(this.sanitizeNode.bind(this))}catch(r){e.options.compileError(e,t,r)}},t.prototype.sanitizeNode=function(t){vare,r,n=t.attributes.getAllAttributes();try{for(vari=a(Object.keys(n)),o=i.next();!o.done;o=i.next()){varl=o.value,s=this.filterAttributes.get(l);if(s){varf=this.filterMethods[s](this,n[l]);f?f!==("number"==typeoff?parseFloat(n[l]):n[l])&&(n[l]=f):deleten[l]}}}catch(t){e={error:t}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(e)throwe.error}}},t.prototype.mmlAttribute=function(t,e){if("class"===t)returnnull;varr=this.filterAttributes.get(t)||("data-"===t.substr(0,5)?this.filterAttributes.get("data-"):null);if(!r)returne;varn=this.filterMethods[r](this,e,t);return"number"==typeofn||"boolean"==typeofn?String(n):n},t.prototype.mmlClassList=function(t){vare=this;returnt.map((function(t){returne.filterMethods.filterClass(e,t)})).filter((function(t){returnnull!==t}))},t.OPTIONS={allow:{URLs:"safe",classes:"safe",cssIDs:"safe",styles:"safe"},lengthMax:3,scriptsizemultiplierRange:[.6,1],scriptlevelRange:[-2,2],classPattern:/^mjx-[-a-zA-Z0-9_.]+$/,idPattern:/^mjx-[-a-zA-Z0-9_.]+$/,dataPattern:/^data-mjx-/,safeProtocols:(0,i.expandable)({http:!0,https:!0,file:!0,javascript:!1,data:!1}),safeStyles:(0,i.expandable)({color:!0,backgroundColor:!0,border:!0,cursor:!0,margin:!0,padding:!0,textShadow:!0,fontFamily:!0,fontSize:!0,fontStyle:!0,fontWeight:!0,opacity:!0,outline:!0}),styleParts:(0,i.expandable)({border:!0,padding:!0,margin:!0,outline:!0}),styleLengths:(0,i.expandable)({borderTop:"borderTopWidth",borderRight:"borderRightWidth",borderBottom:"borderBottomWidth",borderLeft:"borderLeftWidth",paddingTop:!0,paddingRight:!0,paddingBottom:!0,paddingLeft:!0,marginTop:!0,marginRight:!0,marginBottom:!0,marginLeft:!0,outlineTop:!0,outlineRight:!0,outlineBottom:!0,outlineLeft:!0,fontSize:[.707,1.44]})},t}();e.Safe=l},723:function(t,e){MathJax._.components.global.isObject,MathJax._.components.global.combineConfig,MathJax._.components.global.combineDefaults,e.r8=MathJax._.components.global.combineWithMathJax,MathJax._.components.global.MathJax},77:function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.isObject=MathJax._.util.Options.isObject,e.APPEND=MathJax._.util.Options.APPEND,e.REMOVE=MathJax._.util.Options.REMOVE,e.OPTIONS=MathJax._.util.Options.OPTIONS,e.Expandable=MathJax._.util.Options.Expandable,e.expandable=MathJax._.util.Options.expandable,e.makeArray=MathJax._.util.Options.makeArray,e.keys=MathJax._.util.Options.keys,e.copy=MathJax._.util.Options.copy,e.insert=MathJax._.util.Options.insert,e.defaultOptions=MathJax._.util.Options.defaultOptions,e.userOptions=MathJax._.util.Options.userOptions,e.selectOptions=MathJax._.util.Options.selectOptions,e.selectOptionsFromKeys=MathJax._.util.Options.selectOptionsFromKeys,e.separateOptions=MathJax._.util.Options.separateOptions,e.lookup=MathJax._.util.Options.lookup},914:function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.BIGDIMEN=MathJax._.util.lengths.BIGDIMEN,e.UNITS=MathJax._.util.lengths.UNITS,e.RELUNITS=MathJax._.util.lengths.RELUNITS,e.MATHSPACE=MathJax._.util.lengths.MATHSPACE,e.length2em=MathJax._.util.lengths.length2em,e.percent=MathJax._.util.lengths.percent,e.em=MathJax._.util.lengths.em,e.emRounded=MathJax._.util.lengths.emRounded,e.px=MathJax._.util.lengths.px}},o={};functionl(t){vare=o[t];if(void0!==e)returne.exports;varr=o[t]={exports:{}};returni[t].call(r.exports,r,r.exports,l),r.exports}t=l(723),e=l(306),r=l(63),n=l(509),a=l(477),MathJax.loader&&MathJax.loader.checkVersion("ui/safe",e.q,"ui"),(0,t.r8)({_:{ui:{safe:{SafeHandler:r,SafeMethods:n,safe:a}}}}),MathJax.startup&&"undefined"!=typeofwindow&&MathJax.startup.extendHandler((function(t){return(0,r.SafeHandler)(t)}))}();