!function(){"use strict";vart,e,o,i,r,n,l={589:function(t,e,o){vari,r=this&&this.__extends||(i=function(t,e){returni=Object.setPrototypeOf||{__proto__:[]}instanceofArray&&function(t,e){t.__proto__=e}||function(t,e){for(varoine)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},i(t,e)},function(t,e){if("function"!=typeofe&&null!==e)thrownewTypeError("Class extends value "+String(e)+" is not a constructor or null");functiono(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,newo)}),n=this&&this.__assign||function(){returnn=Object.assign||function(t){for(vare,o=1,i=arguments.length;o<i;o++)for(varrine=arguments[o])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);returnt},n.apply(this,arguments)},l=this&&this.__read||function(t,e){varo="function"==typeofSymbol&&t[Symbol.iterator];if(!o)returnt;vari,r,n=o.call(t),l=[];try{for(;(void0===e||e-->0)&&!(i=n.next()).done;)l.push(i.value)}catch(t){r={error:t}}finally{try{i&&!i.done&&(o=n.return)&&o.call(n)}finally{if(r)throwr.error}}returnl},s=this&&this.__spreadArray||function(t,e,o){if(o||2===arguments.length)for(vari,r=0,n=e.length;r<n;r++)!i&&rine||(i||(i=Array.prototype.slice.call(e,0,r)),i[r]=e[r]);returnt.concat(i||Array.prototype.slice.call(e))},a=this&&this.__values||function(t){vare="function"==typeofSymbol&&Symbol.iterator,o=e&&t[e],i=0;if(o)returno.call(t);if(t&&"number"==typeoft.length)return{next:function(){returnt&&i>=t.length&&(t=void0),{value:t&&t[i++],done:!t}}};thrownewTypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.ComplexityHandler=e.ComplexityMathDocumentMixin=e.ComplexityMathItemMixin=void0;varp=o(769),c=o(511),u=o(175),h=o(77);functiony(t,e){returnfunction(t){functiono(){returnnull!==t&&t.apply(this,arguments)||this}returnr(o,t),o.prototype.complexity=function(t,o){void0===o&&(o=!1),this.state()>=p.STATE.COMPLEXITY||(this.isEscaped||!t.options.enableComplexity&&!o||(this.enrich(t,!0),e(this.root)),this.state(p.STATE.COMPLEXITY))},o}(t)}functiond(t){vare;returne=function(t){functione(){for(vare=[],o=0;o<arguments.length;o++)e[o]=arguments[o];vari=t.apply(this,s([],l(e),!1))||this,r=i.constructor.ProcessBits;r.has("complexity")||r.allocate("complexity");varn=(0,h.selectOptionsFromKeys)(i.options,i.options.ComplexityVisitor.OPTIONS);i.complexityVisitor=newi.options.ComplexityVisitor(i.mmlFactory,n);vara=function(t){returni.complexityVisitor.visitTree(t)};returni.options.MathItem=y(i.options.MathItem,a),i}returnr(e,t),e.prototype.complexity=function(){vart,e;if(!this.processed.isSet("complexity")){if(this.options.enableComplexity)try{for(varo=a(this.math),i=o.next();!i.done;i=o.next()){i.value.complexity(this)}}catch(e){t={error:e}}finally{try{i&&!i.done&&(e=o.return)&&e.call(o)}finally{if(t)throwt.error}}this.processed.set("complexity")}returnthis},e.prototype.state=function(e,o){returnvoid0===o&&(o=!1),t.prototype.state.call(this,e,o),e<p.STATE.COMPLEXITY&&this.processed.clear("complexity"),this},e}(t),e.OPTIONS=n(n(n({},t.OPTIONS),u.ComplexityVisitor.OPTIONS),{enableComplexity:!0,ComplexityVisitor:u.ComplexityVisitor,renderActions:(0,h.expandable)(n(n({},t.OPTIONS.renderActions),{complexity:[p.STATE.COMPLEXITY]}))}),e}(0,p.newState)("COMPLEXITY",40),e.ComplexityMathItemMixin=y,e.ComplexityMathDocumentMixin=d,e.ComplexityHandler=function(t,e){returnvoid0===e&&(e=null),!t.documentClass.prototype.enrich&&e&&(t=(0,c.EnrichHandler)(t,e)),t.documentClass=d(t.documentClass),t}},850:function(t,e){varo=this&&this.__values||function(t){vare="function"==typeofSymbol&&Symbol.iterator,o=e&&t[e],i=0;if(o)returno.call(t);if(t&&"number"==typeoft.length)return{next:function(){returnt&&i>=t.length&&(t=void0),{value:t&&t[i++],done:!t}}};thrownewTypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.Collapse=void0;vari=function(){functiont(e){varo=this;this.cutoff={identifier:3,number:3,text:10,infixop:15,