"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[3724,6059],{63724:function(t,e,r){var n=this&&this.__extends||function(){var t=function(e,r){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]};return t(e,r)};return function(e,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();var i=this&&this.__assign||function(){i=Object.assign||function(t){for(var e,r=1,n=arguments.length;r0)&&!(i=n.next()).done)a.push(i.value)}catch(l){o={error:l}}finally{try{if(i&&!i.done&&(r=n["return"]))r.call(n)}finally{if(o)throw o.error}}return a};var o=this&&this.__spreadArray||function(t,e,r){if(r||arguments.length===2)for(var n=0,i=e.length,a;n=t.length)t=void 0;return{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:true});e.SafeHandler=e.SafeMathDocumentMixin=void 0;var s=r(63553);function f(t){var e;return e=function(t){n(e,t);function e(){var e,r;var n=[];for(var i=0;i=t.length)t=void 0;return{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};var i=this&&this.__read||function(t,e){var r=typeof Symbol==="function"&&t[Symbol.iterator];if(!r)return t;var n=r.call(t),i,a=[],o;try{while((e===void 0||e-- >0)&&!(i=n.next()).done)a.push(i.value)}catch(l){o={error:l}}finally{try{if(i&&!i.done&&(r=n["return"]))r.call(n)}finally{if(o)throw o.error}}return a};Object.defineProperty(e,"__esModule",{value:true});e.SafeMethods=void 0;var a=r(77130);e.SafeMethods={filterURL:function(t,e){var r=(e.match(/^\s*([a-z]+):/i)||[null,""])[1].toLowerCase();var n=t.allow.URLs;return n==="all"||n==="safe"&&(t.options.safeProtocols[r]||!r)?e:null},filterClassList:function(t,e){var r=this;var n=e.trim().replace(/\s\s+/g," ").split(/ /);return n.map((function(e){return r.filterClass(t,e)||""})).join(" ").trim().replace(/\s\s+/g,"")},filterClass:function(t,e){var r=t.allow.classes;return r==="all"||r==="safe"&&e.match(t.options.classPattern)?e:null},filterID:function(t,e){var r=t.allow.cssIDs;return r==="all"||r==="safe"&&e.match(t.options.idPattern)?e:null},filterStyles:function(t,e){var r,i,a,o;if(t.allow.styles==="all")return e;if(t.allow.styles!=="safe")return null;var l=t.adaptor;var s=t.options;try{var f=l.node("div",{style:e});var u=l.node("div");try{for(var c=n(Object.keys(s.safeStyles)),p=c.next();!p.done;p=c.next()){var y=p.value;if(s.styleParts[y]){try{for(var h=(a=void 0,n(["Top","Right","Bottom","Left"])),v=h.next();!v.done;v=h.next()){var d=v.value;var m=y+d;var b=this.filterStyle(t,m,f);if(b){l.setStyle(u,m,b)}}}catch(g){a={error:g}}finally{try{if(v&&!v.done&&(o=h.return))o.call(h)}finally{if(a)throw a.error}}}else{var b=this.filterStyle(t,y,f);if(b){l.setStyle(u,y,b)}}}}catch(S){r={error:S}}finally{try{if(p&&!p.done&&(i=c.return))i.call(c)}finally{if(r)throw r.error}}e=l.allStyles(u)}catch(O){e=""}return e},filterStyle:function(t,e,r){var n=t.adaptor.getStyle(r,e);if(typeof n!=="string"||n===""||n.match(/^\s*calc/)||n.match(/javascript:/)&&!t.options.safeProtocols.javascript||n.match(/data:/)&&!t.options.safeProtocols.data){return null}var i=e.replace(/Top|Right|Left|Bottom/,"");if(!t.options.safeStyles[e]&&!t.options.safeStyles[i]){return null}return this.filterStyleValue(t,e,n,r)},filterStyleValue:function(t,e,r,n){var i=t.options.styleLengths[e];if(!i){return r}if(typeof i!=="string"){return this.filterStyleLength(t,e,r)}var a=this.filterStyleLength(t,i,t.adaptor.getStyle(n,i));if(!a){return null}t.adaptor.setStyle(n,i,a);return t.adaptor.getStyle(n,e)},filterStyleLength:function(t,e,r){if(!r.match(/^(.+)(em|ex|ch|rem|px|mm|cm|in|pt|pc|%)$/))return null;var n=(0,a.length2em)(r,1);var o=t.options.styleLengths[e];var l=i(Array.isArray(o)?o:[-t.options.lengthMax,t.options.lengthMax],2),s=l[0],f=l[1];return s<=n&&n<=f?r:(n=t.length)t=void 0;return{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:true});e.Safe=void 0;var a=r(36059);var o=r(52351);var l=function(){function t(t,e){this.filterAttributes=new Map([["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}t.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){var e,r;var n=t.attributes.getAllAttributes();try{for(var a=i(Object.keys(n)),o=a.next();!o.done;o=a.next()){var l=o.value;var s=this.filterAttributes.get(l);if(s){var f=this.filterMethods[s](this,n[l]);if(f){if(f!==(typeof f==="number"?parseFloat(n[l]):n[l])){n[l]=f}}else{delete n[l]}}}}catch(u){e={error:u}}finally{try{if(o&&!o.done&&(r=a.return))r.call(a)}finally{if(e)throw e.error}}};t.prototype.mmlAttribute=function(t,e){if(t==="class")return null;var r=this.filterAttributes.get(t);var n=r||(t.substr(0,5)==="data-"?this.filterAttributes.get("data-"):null);if(!n){return e}var i=this.filterMethods[n](this,e,t);return typeof i==="number"||typeof i==="boolean"?String(i):i};t.prototype.mmlClassList=function(t){var e=this;return t.map((function(t){return e.filterMethods.filterClass(e,t)})).filter((function(t){return t!==null}))};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,a.expandable)({http:true,https:true,file:true,javascript:false,data:false}),safeStyles:(0,a.expandable)({color:true,backgroundColor:true,border:true,cursor:true,margin:true,padding:true,textShadow:true,fontFamily:true,fontSize:true,fontStyle:true,fontWeight:true,opacity:true,outline:true}),styleParts:(0,a.expandable)({border:true,padding:true,margin:true,outline:true}),styleLengths:(0,a.expandable)({borderTop:"borderTopWidth",borderRight:"borderRightWidth",borderBottom:"borderBottomWidth",borderLeft:"borderLeftWidth",paddingTop:true,paddingRight:true,paddingBottom:true,paddingLeft:true,marginTop:true,marginRight:true,marginBottom:true,marginLeft:true,outlineTop:true,outlineRight:true,outlineBottom:true,outlineLeft:true,fontSize:[.707,1.44]})};return t}();e.Safe=l},36059:function(t,e){var r=this&&this.__values||function(t){var e=typeof Symbol==="function"&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&typeof t.length==="number")return{next:function(){if(t&&n>=t.length)t=void 0;return{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};var n=this&&this.__read||function(t,e){var r=typeof Symbol==="function"&&t[Symbol.iterator];if(!r)return t;var n=r.call(t),i,a=[],o;try{while((e===void 0||e-- >0)&&!(i=n.next()).done)a.push(i.value)}catch(l){o={error:l}}finally{try{if(i&&!i.done&&(r=n["return"]))r.call(n)}finally{if(o)throw o.error}}return a};var i=this&&this.__spreadArray||function(t,e,r){if(r||arguments.length===2)for(var n=0,i=e.length,a;n{Object.defineProperty(e,"__esModule",{value:true});e.px=e.emRounded=e.em=e.percent=e.length2em=e.MATHSPACE=e.RELUNITS=e.UNITS=e.BIGDIMEN=void 0;e.BIGDIMEN=1e6;e.UNITS={px:1,in:96,cm:96/2.54,mm:96/25.4};e.RELUNITS={em:1,ex:.431,pt:1/10,pc:12/10,mu:1/18};e.MATHSPACE={veryverythinmathspace:1/18,verythinmathspace:2/18,thinmathspace:3/18,mediummathspace:4/18,thickmathspace:5/18,verythickmathspace:6/18,veryverythickmathspace:7/18,negativeveryverythinmathspace:-1/18,negativeverythinmathspace:-2/18,negativethinmathspace:-3/18,negativemediummathspace:-4/18,negativethickmathspace:-5/18,negativeverythickmathspace:-6/18,negativeveryverythickmathspace:-7/18,thin:.04,medium:.06,thick:.1,normal:1,big:2,small:1/Math.sqrt(2),infinity:e.BIGDIMEN};function r(t,r,n,i){if(r===void 0){r=0}if(n===void 0){n=1}if(i===void 0){i=16}if(typeof t!=="string"){t=String(t)}if(t===""||t==null){return r}if(e.MATHSPACE[t]){return e.MATHSPACE[t]}var a=t.match(/^\s*([-+]?(?:\.\d+|\d+(?:\.\d*)?))?(pt|em|ex|mu|px|pc|in|mm|cm|%)?/);if(!a){return r}var o=parseFloat(a[1]||"1"),l=a[2];if(e.UNITS.hasOwnProperty(l)){return o*e.UNITS[l]/i/n}if(e.RELUNITS.hasOwnProperty(l)){return o*e.RELUNITS[l]}if(l==="%"){return o/100*r}return o*r}e.length2em=r;function n(t){return(100*t).toFixed(1).replace(/\.?0+$/,"")+"%"}e.percent=n;function i(t){if(Math.abs(t)<.001)return"0";return t.toFixed(3).replace(/\.?0+$/,"")+"em"}e.em=i;function a(t,e){if(e===void 0){e=16}t=(Math.round(t*e)+.05)/e;if(Math.abs(t)<.001)return"0em";return t.toFixed(3).replace(/\.?0+$/,"")+"em"}e.emRounded=a;function o(t,r,n){if(r===void 0){r=-e.BIGDIMEN}if(n===void 0){n=16}t*=n;if(r&&t