"use strict";(self.webpackChunkjupyter_web=self.webpackChunkjupyter_web||[]).push([[8597],{58597:function(w,p,g){var e,M=this&&this.__extends||(e=function(i,s){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,l){a.__proto__=l}||function(a,l){for(var c in l)Object.prototype.hasOwnProperty.call(l,c)&&(a[c]=l[c])})(i,s)},function(i,s){if("function"!=typeof s&&null!==s)throw new TypeError("Class extends value "+String(s)+" is not a constructor or null");function a(){this.constructor=i}e(i,s),i.prototype=null===s?Object.create(s):(a.prototype=s.prototype,new a)}),d=this&&this.__assign||function(){return d=Object.assign||function(e){for(var i,s=1,a=arguments.length;s0)&&!(l=a.next()).done;)c.push(l.value)}catch(y){h={error:y}}finally{try{l&&!l.done&&(s=a.return)&&s.call(a)}finally{if(h)throw h.error}}return c},_=this&&this.__spreadArray||function(e,i,s){if(s||2===arguments.length)for(var c,a=0,l=i.length;a=e.length&&(e=void 0),{value:e&&e[a++],done:!e}}};throw new TypeError(i?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(p,"__esModule",{value:!0}),p.AssistiveMmlHandler=p.AssistiveMmlMathDocumentMixin=p.AssistiveMmlMathItemMixin=p.LimitedMmlVisitor=void 0;var f=g(5520),u=g(27978),v=g(80084),r=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return M(i,e),i.prototype.getAttributes=function(s){return e.prototype.getAttributes.call(this,s).replace(/ ?id=".*?"/,"")},i}(u.SerializedMmlVisitor);function o(e){return function(i){function s(){return null!==i&&i.apply(this,arguments)||this}return M(s,i),s.prototype.assistiveMml=function(a,l){if(void 0===l&&(l=!1),!(this.state()>=f.STATE.ASSISTIVEMML)){if(!this.isEscaped&&(a.options.enableAssistiveMml||l)){var c=a.adaptor,h=a.toMML(this.root).replace(/\n */g,"").replace(//g,""),y=c.firstChild(c.body(c.parse(h,"text/html"))),S=c.node("mjx-assistive-mml",{unselectable:"on",display:this.display?"block":"inline"},[y]);c.setAttribute(c.firstChild(this.typesetRoot),"aria-hidden","true"),c.setStyle(this.typesetRoot,"position","relative"),c.append(this.typesetRoot,S)}this.state(f.STATE.ASSISTIVEMML)}},s}(e)}function t(e){var i;return i=function(s){function a(){for(var l=[],c=0;c=r.length&&(r=void 0),{value:r&&r[n++],done:!r}}};throw new TypeError(o?"Object is not iterable.":"Symbol.iterator is not defined.")},A=this&&this.__read||function(r,o){var t="function"==typeof Symbol&&r[Symbol.iterator];if(!t)return r;var e,s,n=t.call(r),i=[];try{for(;(void 0===o||o-- >0)&&!(e=n.next()).done;)i.push(e.value)}catch(a){s={error:a}}finally{try{e&&!e.done&&(t=n.return)&&t.call(n)}finally{if(s)throw s.error}}return i};Object.defineProperty(p,"__esModule",{value:!0}),p.SerializedMmlVisitor=p.toEntity=p.DATAMJX=void 0;var _=g(20098),m=g(91585),f=g(2862);p.DATAMJX="data-mjx-";p.toEntity=function(r){return"&#x"+r.codePointAt(0).toString(16).toUpperCase()+";"};var v=function(r){function o(){return null!==r&&r.apply(this,arguments)||this}return M(o,r),o.prototype.visitTree=function(t){return this.visitNode(t,"")},o.prototype.visitTextNode=function(t,n){return this.quoteHTML(t.getText())},o.prototype.visitXMLNode=function(t,n){return n+t.getSerializedXML()},o.prototype.visitInferredMrowNode=function(t,n){var e,i,s=[];try{for(var a=d(t.childNodes),l=a.next();!l.done;l=a.next()){var c=l.value;s.push(this.visitNode(c,n))}}catch(h){e={error:h}}finally{try{l&&!l.done&&(i=a.return)&&i.call(a)}finally{if(e)throw e.error}}return s.join("\n")},o.prototype.visitTeXAtomNode=function(t,n){var e=this.childNodeMml(t,n+" ","\n");return n+""+(e.match(/\S/)?"\n"+e+n:"")+""},o.prototype.visitAnnotationNode=function(t,n){return n+""+this.childNodeMml(t,"","")+""},o.prototype.visitDefault=function(t,n){var e=t.kind,i=A(t.isToken||0===t.childNodes.length?["",""]:["\n",n],2),s=i[0],a=i[1],l=this.childNodeMml(t,n+" ",s);return n+"<"+e+this.getAttributes(t)+">"+(l.match(/\S/)?s+l+a:"")+""},o.prototype.childNodeMml=function(t,n,e){var i,s,a="";try{for(var l=d(t.childNodes),c=l.next();!c.done;c=l.next()){var h=c.value;a+=this.visitNode(h,n)+e}}catch(y){i={error:y}}finally{try{c&&!c.done&&(s=l.return)&&s.call(l)}finally{if(i)throw i.error}}return a},o.prototype.getAttributes=function(t){var n,e,i=[],s=this.constructor.defaultAttributes[t.kind]||{},a=Object.assign({},s,this.getDataAttributes(t),t.attributes.getAllAttributes()),l=this.constructor.variants;a.hasOwnProperty("mathvariant")&&l.hasOwnProperty(a.mathvariant)&&(a.mathvariant=l[a.mathvariant]);try{for(var c=d(Object.keys(a)),h=c.next();!h.done;h=c.next()){var y=h.value,S=String(a[y]);void 0!==S&&i.push(y+'="'+this.quoteHTML(S)+'"')}}catch(b){n={error:b}}finally{try{h&&!h.done&&(e=c.return)&&e.call(c)}finally{if(n)throw n.error}}return i.length?" "+i.join(" "):""},o.prototype.getDataAttributes=function(t){var n={},e=t.attributes.getExplicit("mathvariant"),i=this.constructor.variants;e&&i.hasOwnProperty(e)&&this.setDataAttribute(n,"variant",e),t.getProperty("variantForm")&&this.setDataAttribute(n,"alternate","1"),t.getProperty("pseudoscript")&&this.setDataAttribute(n,"pseudoscript","true"),!1===t.getProperty("autoOP")&&this.setDataAttribute(n,"auto-op","false");var s=t.getProperty("scriptalign");s&&this.setDataAttribute(n,"script-align",s);var a=t.getProperty("texClass");if(void 0!==a){var l=!0;if(a===m.TEXCLASS.OP&&t.isKind("mi")){var c=t.getText();l=!(c.length>1&&c.match(f.MmlMi.operatorName))}l&&this.setDataAttribute(n,"texclass",a<0?"NONE":m.TEXCLASSNAMES[a])}return t.getProperty("scriptlevel")&&!1===t.getProperty("useHeight")&&this.setDataAttribute(n,"smallmatrix","true"),n},o.prototype.setDataAttribute=function(t,n,e){t[p.DATAMJX+n]=e},o.prototype.quoteHTML=function(t){return t.replace(/&/g,"&").replace(//g,">").replace(/\"/g,""").replace(/[\uD800-\uDBFF]./g,p.toEntity).replace(/[\u0080-\uD7FF\uE000-\uFFFF]/g,p.toEntity)},o.variants={"-tex-calligraphic":"script","-tex-bold-calligraphic":"bold-script","-tex-oldstyle":"normal","-tex-bold-oldstyle":"bold","-tex-mathit":"italic"},o.defaultAttributes={math:{xmlns:"http://www.w3.org/1998/Math/MathML"}},o}(_.MmlVisitor);p.SerializedMmlVisitor=v},22815:function(w,p,g){var M=this&&this.__values||function(f){var u="function"==typeof Symbol&&Symbol.iterator,v=u&&f[u],r=0;if(v)return v.call(f);if(f&&"number"==typeof f.length)return{next:function(){return f&&r>=f.length&&(f=void 0),{value:f&&f[r++],done:!f}}};throw new TypeError(u?"Object is not iterable.":"Symbol.iterator is not defined.")},d=this&&this.__read||function(f,u){var v="function"==typeof Symbol&&f[Symbol.iterator];if(!v)return f;var o,n,r=v.call(f),t=[];try{for(;(void 0===u||u-- >0)&&!(o=r.next()).done;)t.push(o.value)}catch(e){n={error:e}}finally{try{o&&!o.done&&(v=r.return)&&v.call(r)}finally{if(n)throw n.error}}return t},A=this&&this.__spreadArray||function(f,u,v){if(v||2===arguments.length)for(var t,r=0,o=u.length;r