@wiris/mathtype-viewer 1.4.1 → 1.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,2 +1,2 @@
1
1
  /*! For license information please see WIRISplugins.js.LICENSE.txt */
2
- (()=>{var __webpack_modules__={368:function(e){e.exports=function(){"use strict";function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}function t(e,n){return t=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},t(e,n)}function n(e,i,r){return n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}()?Reflect.construct:function(e,n,i){var r=[null];r.push.apply(r,n);var a=new(Function.bind.apply(e,r));return i&&t(a,i.prototype),a},n.apply(null,arguments)}function i(e){return function(e){if(Array.isArray(e))return r(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var a=Object.hasOwnProperty,o=Object.setPrototypeOf,s=Object.isFrozen,l=Object.getPrototypeOf,c=Object.getOwnPropertyDescriptor,u=Object.freeze,d=Object.seal,m=Object.create,f="undefined"!=typeof Reflect&&Reflect,h=f.apply,p=f.construct;h||(h=function(e,t,n){return e.apply(t,n)}),u||(u=function(e){return e}),d||(d=function(e){return e}),p||(p=function(e,t){return n(e,i(t))});var _,g=A(Array.prototype.forEach),b=A(Array.prototype.pop),v=A(Array.prototype.push),x=A(String.prototype.toLowerCase),y=A(String.prototype.toString),w=A(String.prototype.match),k=A(String.prototype.replace),T=A(String.prototype.indexOf),M=A(String.prototype.trim),j=A(RegExp.prototype.test),O=(_=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return p(_,t)});function A(e){return function(t){for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];return h(e,t,i)}}function S(e,t,n){var i;n=null!==(i=n)&&void 0!==i?i:x,o&&o(e,null);for(var r=t.length;r--;){var a=t[r];if("string"==typeof a){var l=n(a);l!==a&&(s(t)||(t[r]=l),a=l)}e[a]=!0}return e}function C(e){var t,n=m(null);for(t in e)!0===h(a,e,[t])&&(n[t]=e[t]);return n}function E(e,t){for(;null!==e;){var n=c(e,t);if(n){if(n.get)return A(n.get);if("function"==typeof n.value)return A(n.value)}e=l(e)}return function(e){return console.warn("fallback value for",e),null}}var L=u(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),N=u(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),z=u(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),I=u(["animate","color-profile","cursor","discard","fedropshadow","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),P=u(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover"]),F=u(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),R=u(["#text"]),D=u(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),B=u(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),X=u(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),H=u(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),$=d(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Z=d(/<%[\w\W]*|[\w\W]*%>/gm),U=d(/\${[\w\W]*}/gm),J=d(/^data-[\-\w.\u00B7-\uFFFF]/),V=d(/^aria-[\-\w]+$/),q=d(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),W=d(/^(?:\w+script|data):/i),G=d(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Q=d(/^html$/i),K=function(){return"undefined"==typeof window?null:window};return function t(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:K(),r=function(e){return t(e)};if(r.version="2.4.7",r.removed=[],!n||!n.document||9!==n.document.nodeType)return r.isSupported=!1,r;var a=n.document,o=n.document,s=n.DocumentFragment,l=n.HTMLTemplateElement,c=n.Node,d=n.Element,m=n.NodeFilter,f=n.NamedNodeMap,h=void 0===f?n.NamedNodeMap||n.MozNamedAttrMap:f,p=n.HTMLFormElement,_=n.DOMParser,A=n.trustedTypes,Y=d.prototype,ee=E(Y,"cloneNode"),te=E(Y,"nextSibling"),ne=E(Y,"childNodes"),ie=E(Y,"parentNode");if("function"==typeof l){var re=o.createElement("template");re.content&&re.content.ownerDocument&&(o=re.content.ownerDocument)}var ae=function(t,n){if("object"!==e(t)||"function"!=typeof t.createPolicy)return null;var i=null,r="data-tt-policy-suffix";n.currentScript&&n.currentScript.hasAttribute(r)&&(i=n.currentScript.getAttribute(r));var a="dompurify"+(i?"#"+i:"");try{return t.createPolicy(a,{createHTML:function(e){return e},createScriptURL:function(e){return e}})}catch(e){return console.warn("TrustedTypes policy "+a+" could not be created."),null}}(A,a),oe=ae?ae.createHTML(""):"",se=o,le=se.implementation,ce=se.createNodeIterator,ue=se.createDocumentFragment,de=se.getElementsByTagName,me=a.importNode,fe={};try{fe=C(o).documentMode?o.documentMode:{}}catch(e){}var he={};r.isSupported="function"==typeof ie&&le&&void 0!==le.createHTMLDocument&&9!==fe;var pe,_e,ge=$,be=Z,ve=U,xe=J,ye=V,we=W,ke=G,Te=q,Me=null,je=S({},[].concat(i(L),i(N),i(z),i(P),i(R))),Oe=null,Ae=S({},[].concat(i(D),i(B),i(X),i(H))),Se=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Ce=null,Ee=null,Le=!0,Ne=!0,ze=!1,Ie=!0,Pe=!1,Fe=!1,Re=!1,De=!1,Be=!1,Xe=!1,He=!1,$e=!0,Ze=!1,Ue=!0,Je=!1,Ve={},qe=null,We=S({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),Ge=null,Qe=S({},["audio","video","img","source","image","track"]),Ke=null,Ye=S({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),et="http://www.w3.org/1998/Math/MathML",tt="http://www.w3.org/2000/svg",nt="http://www.w3.org/1999/xhtml",it=nt,rt=!1,at=null,ot=S({},[et,tt,nt],y),st=["application/xhtml+xml","text/html"],lt=null,ct=o.createElement("form"),ut=function(e){return e instanceof RegExp||e instanceof Function},dt=function(t){lt&&lt===t||(t&&"object"===e(t)||(t={}),t=C(t),pe=pe=-1===st.indexOf(t.PARSER_MEDIA_TYPE)?"text/html":t.PARSER_MEDIA_TYPE,_e="application/xhtml+xml"===pe?y:x,Me="ALLOWED_TAGS"in t?S({},t.ALLOWED_TAGS,_e):je,Oe="ALLOWED_ATTR"in t?S({},t.ALLOWED_ATTR,_e):Ae,at="ALLOWED_NAMESPACES"in t?S({},t.ALLOWED_NAMESPACES,y):ot,Ke="ADD_URI_SAFE_ATTR"in t?S(C(Ye),t.ADD_URI_SAFE_ATTR,_e):Ye,Ge="ADD_DATA_URI_TAGS"in t?S(C(Qe),t.ADD_DATA_URI_TAGS,_e):Qe,qe="FORBID_CONTENTS"in t?S({},t.FORBID_CONTENTS,_e):We,Ce="FORBID_TAGS"in t?S({},t.FORBID_TAGS,_e):{},Ee="FORBID_ATTR"in t?S({},t.FORBID_ATTR,_e):{},Ve="USE_PROFILES"in t&&t.USE_PROFILES,Le=!1!==t.ALLOW_ARIA_ATTR,Ne=!1!==t.ALLOW_DATA_ATTR,ze=t.ALLOW_UNKNOWN_PROTOCOLS||!1,Ie=!1!==t.ALLOW_SELF_CLOSE_IN_ATTR,Pe=t.SAFE_FOR_TEMPLATES||!1,Fe=t.WHOLE_DOCUMENT||!1,Be=t.RETURN_DOM||!1,Xe=t.RETURN_DOM_FRAGMENT||!1,He=t.RETURN_TRUSTED_TYPE||!1,De=t.FORCE_BODY||!1,$e=!1!==t.SANITIZE_DOM,Ze=t.SANITIZE_NAMED_PROPS||!1,Ue=!1!==t.KEEP_CONTENT,Je=t.IN_PLACE||!1,Te=t.ALLOWED_URI_REGEXP||Te,it=t.NAMESPACE||nt,Se=t.CUSTOM_ELEMENT_HANDLING||{},t.CUSTOM_ELEMENT_HANDLING&&ut(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Se.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),t.CUSTOM_ELEMENT_HANDLING&&ut(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Se.attributeNameCheck=t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),t.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Se.allowCustomizedBuiltInElements=t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Pe&&(Ne=!1),Xe&&(Be=!0),Ve&&(Me=S({},i(R)),Oe=[],!0===Ve.html&&(S(Me,L),S(Oe,D)),!0===Ve.svg&&(S(Me,N),S(Oe,B),S(Oe,H)),!0===Ve.svgFilters&&(S(Me,z),S(Oe,B),S(Oe,H)),!0===Ve.mathMl&&(S(Me,P),S(Oe,X),S(Oe,H))),t.ADD_TAGS&&(Me===je&&(Me=C(Me)),S(Me,t.ADD_TAGS,_e)),t.ADD_ATTR&&(Oe===Ae&&(Oe=C(Oe)),S(Oe,t.ADD_ATTR,_e)),t.ADD_URI_SAFE_ATTR&&S(Ke,t.ADD_URI_SAFE_ATTR,_e),t.FORBID_CONTENTS&&(qe===We&&(qe=C(qe)),S(qe,t.FORBID_CONTENTS,_e)),Ue&&(Me["#text"]=!0),Fe&&S(Me,["html","head","body"]),Me.table&&(S(Me,["tbody"]),delete Ce.tbody),u&&u(t),lt=t)},mt=S({},["mi","mo","mn","ms","mtext"]),ft=S({},["foreignobject","desc","title","annotation-xml"]),ht=S({},["title","style","font","a","script"]),pt=S({},N);S(pt,z),S(pt,I);var _t=S({},P);S(_t,F);var gt=function(e){v(r.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){try{e.outerHTML=oe}catch(t){e.remove()}}},bt=function(e,t){try{v(r.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){v(r.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!Oe[e])if(Be||Xe)try{gt(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},vt=function(e){var t,n;if(De)e="<remove></remove>"+e;else{var i=w(e,/^[\r\n\t ]+/);n=i&&i[0]}"application/xhtml+xml"===pe&&it===nt&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");var r=ae?ae.createHTML(e):e;if(it===nt)try{t=(new _).parseFromString(r,pe)}catch(e){}if(!t||!t.documentElement){t=le.createDocument(it,"template",null);try{t.documentElement.innerHTML=rt?oe:r}catch(e){}}var a=t.body||t.documentElement;return e&&n&&a.insertBefore(o.createTextNode(n),a.childNodes[0]||null),it===nt?de.call(t,Fe?"html":"body")[0]:Fe?t.documentElement:a},xt=function(e){return ce.call(e.ownerDocument||e,e,m.SHOW_ELEMENT|m.SHOW_COMMENT|m.SHOW_TEXT,null,!1)},yt=function(t){return"object"===e(c)?t instanceof c:t&&"object"===e(t)&&"number"==typeof t.nodeType&&"string"==typeof t.nodeName},wt=function(e,t,n){he[e]&&g(he[e],(function(e){e.call(r,t,n,lt)}))},kt=function(e){var t,n;if(wt("beforeSanitizeElements",e,null),(n=e)instanceof p&&("string"!=typeof n.nodeName||"string"!=typeof n.textContent||"function"!=typeof n.removeChild||!(n.attributes instanceof h)||"function"!=typeof n.removeAttribute||"function"!=typeof n.setAttribute||"string"!=typeof n.namespaceURI||"function"!=typeof n.insertBefore||"function"!=typeof n.hasChildNodes))return gt(e),!0;if(j(/[\u0080-\uFFFF]/,e.nodeName))return gt(e),!0;var i=_e(e.nodeName);if(wt("uponSanitizeElement",e,{tagName:i,allowedTags:Me}),e.hasChildNodes()&&!yt(e.firstElementChild)&&(!yt(e.content)||!yt(e.content.firstElementChild))&&j(/<[/\w]/g,e.innerHTML)&&j(/<[/\w]/g,e.textContent))return gt(e),!0;if("select"===i&&j(/<template/i,e.innerHTML))return gt(e),!0;if(!Me[i]||Ce[i]){if(!Ce[i]&&Mt(i)){if(Se.tagNameCheck instanceof RegExp&&j(Se.tagNameCheck,i))return!1;if(Se.tagNameCheck instanceof Function&&Se.tagNameCheck(i))return!1}if(Ue&&!qe[i]){var a=ie(e)||e.parentNode,o=ne(e)||e.childNodes;if(o&&a)for(var s=o.length-1;s>=0;--s)a.insertBefore(ee(o[s],!0),te(e))}return gt(e),!0}return e instanceof d&&!function(e){var t=ie(e);t&&t.tagName||(t={namespaceURI:it,tagName:"template"});var n=x(e.tagName),i=x(t.tagName);return!!at[e.namespaceURI]&&(e.namespaceURI===tt?t.namespaceURI===nt?"svg"===n:t.namespaceURI===et?"svg"===n&&("annotation-xml"===i||mt[i]):Boolean(pt[n]):e.namespaceURI===et?t.namespaceURI===nt?"math"===n:t.namespaceURI===tt?"math"===n&&ft[i]:Boolean(_t[n]):e.namespaceURI===nt?!(t.namespaceURI===tt&&!ft[i])&&!(t.namespaceURI===et&&!mt[i])&&!_t[n]&&(ht[n]||!pt[n]):!("application/xhtml+xml"!==pe||!at[e.namespaceURI]))}(e)?(gt(e),!0):"noscript"!==i&&"noembed"!==i&&"noframes"!==i||!j(/<\/no(script|embed|frames)/i,e.innerHTML)?(Pe&&3===e.nodeType&&(t=e.textContent,t=k(t,ge," "),t=k(t,be," "),t=k(t,ve," "),e.textContent!==t&&(v(r.removed,{element:e.cloneNode()}),e.textContent=t)),wt("afterSanitizeElements",e,null),!1):(gt(e),!0)},Tt=function(e,t,n){if($e&&("id"===t||"name"===t)&&(n in o||n in ct))return!1;if(Ne&&!Ee[t]&&j(xe,t));else if(Le&&j(ye,t));else if(!Oe[t]||Ee[t]){if(!(Mt(e)&&(Se.tagNameCheck instanceof RegExp&&j(Se.tagNameCheck,e)||Se.tagNameCheck instanceof Function&&Se.tagNameCheck(e))&&(Se.attributeNameCheck instanceof RegExp&&j(Se.attributeNameCheck,t)||Se.attributeNameCheck instanceof Function&&Se.attributeNameCheck(t))||"is"===t&&Se.allowCustomizedBuiltInElements&&(Se.tagNameCheck instanceof RegExp&&j(Se.tagNameCheck,n)||Se.tagNameCheck instanceof Function&&Se.tagNameCheck(n))))return!1}else if(Ke[t]);else if(j(Te,k(n,ke,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==T(n,"data:")||!Ge[e])if(ze&&!j(we,k(n,ke,"")));else if(n)return!1;return!0},Mt=function(e){return e.indexOf("-")>0},jt=function(t){var n,i,a,o;wt("beforeSanitizeAttributes",t,null);var s=t.attributes;if(s){var l={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Oe};for(o=s.length;o--;){var c=n=s[o],u=c.name,d=c.namespaceURI;if(i="value"===u?n.value:M(n.value),a=_e(u),l.attrName=a,l.attrValue=i,l.keepAttr=!0,l.forceKeepAttr=void 0,wt("uponSanitizeAttribute",t,l),i=l.attrValue,!l.forceKeepAttr&&(bt(u,t),l.keepAttr))if(Ie||!j(/\/>/i,i)){Pe&&(i=k(i,ge," "),i=k(i,be," "),i=k(i,ve," "));var m=_e(t.nodeName);if(Tt(m,a,i)){if(!Ze||"id"!==a&&"name"!==a||(bt(u,t),i="user-content-"+i),ae&&"object"===e(A)&&"function"==typeof A.getAttributeType)if(d);else switch(A.getAttributeType(m,a)){case"TrustedHTML":i=ae.createHTML(i);break;case"TrustedScriptURL":i=ae.createScriptURL(i)}try{d?t.setAttributeNS(d,u,i):t.setAttribute(u,i),b(r.removed)}catch(e){}}}else bt(u,t)}wt("afterSanitizeAttributes",t,null)}},Ot=function e(t){var n,i=xt(t);for(wt("beforeSanitizeShadowDOM",t,null);n=i.nextNode();)wt("uponSanitizeShadowNode",n,null),kt(n)||(n.content instanceof s&&e(n.content),jt(n));wt("afterSanitizeShadowDOM",t,null)};return r.sanitize=function(t){var i,o,l,u,d,m=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if((rt=!t)&&(t="\x3c!--\x3e"),"string"!=typeof t&&!yt(t)){if("function"!=typeof t.toString)throw O("toString is not a function");if("string"!=typeof(t=t.toString()))throw O("dirty is not a string, aborting")}if(!r.isSupported){if("object"===e(n.toStaticHTML)||"function"==typeof n.toStaticHTML){if("string"==typeof t)return n.toStaticHTML(t);if(yt(t))return n.toStaticHTML(t.outerHTML)}return t}if(Re||dt(m),r.removed=[],"string"==typeof t&&(Je=!1),Je){if(t.nodeName){var f=_e(t.nodeName);if(!Me[f]||Ce[f])throw O("root node is forbidden and cannot be sanitized in-place")}}else if(t instanceof c)1===(o=(i=vt("\x3c!----\x3e")).ownerDocument.importNode(t,!0)).nodeType&&"BODY"===o.nodeName||"HTML"===o.nodeName?i=o:i.appendChild(o);else{if(!Be&&!Pe&&!Fe&&-1===t.indexOf("<"))return ae&&He?ae.createHTML(t):t;if(!(i=vt(t)))return Be?null:He?oe:""}i&&De&&gt(i.firstChild);for(var h=xt(Je?t:i);l=h.nextNode();)3===l.nodeType&&l===u||kt(l)||(l.content instanceof s&&Ot(l.content),jt(l),u=l);if(u=null,Je)return t;if(Be){if(Xe)for(d=ue.call(i.ownerDocument);i.firstChild;)d.appendChild(i.firstChild);else d=i;return(Oe.shadowroot||Oe.shadowrootmod)&&(d=me.call(a,d,!0)),d}var p=Fe?i.outerHTML:i.innerHTML;return Fe&&Me["!doctype"]&&i.ownerDocument&&i.ownerDocument.doctype&&i.ownerDocument.doctype.name&&j(Q,i.ownerDocument.doctype.name)&&(p="<!DOCTYPE "+i.ownerDocument.doctype.name+">\n"+p),Pe&&(p=k(p,ge," "),p=k(p,be," "),p=k(p,ve," ")),ae&&He?ae.createHTML(p):p},r.setConfig=function(e){dt(e),Re=!0},r.clearConfig=function(){lt=null,Re=!1},r.isValidAttribute=function(e,t,n){lt||dt({});var i=_e(e),r=_e(t);return Tt(i,r,n)},r.addHook=function(e,t){"function"==typeof t&&(he[e]=he[e]||[],v(he[e],t))},r.removeHook=function(e){if(he[e])return b(he[e])},r.removeHooks=function(e){he[e]&&(he[e]=[])},r.removeAllHooks=function(){he={}},r}()}()},701:function(e,t,n){"use strict";var i=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(r,a){function o(e){try{l(i.next(e))}catch(e){a(e)}}function s(e){try{l(i.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}l((i=i.apply(e,t||[])).next())}))},r=this&&this.__generator||function(e,t){var n,i,r,a,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,i&&(r=2&a[0]?i.return:a[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,a[1])).done)return r;switch(i=0,r&&(a=[2&a[0],r.value]),a[0]){case 0:case 1:r=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,i=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!((r=(r=o.trys).length>0&&r[r.length-1])||6!==a[0]&&2!==a[0])){o=0;continue}if(3===a[0]&&(!r||a[1]>r[0]&&a[1]<r[3])){o.label=a[1];break}if(6===a[0]&&o.label<r[1]){o.label=r[1],r=a;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(a);break}r[2]&&o.ops.pop(),o.trys.pop();continue}a=t.call(e,o)}catch(e){a=[6,e],i=0}finally{n=r=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}};Object.defineProperty(t,"__esModule",{value:!0});var a=n(944),o=n(250),s=n(985),l=n(390);!function(e){i(this,void 0,void 0,(function(){var t,n,c,u=this;return r(this,(function(d){switch(d.label){case 0:return[4,a.Properties.generate()];case 1:return t=d.sent(),e.viewer||(e.viewer={properties:t,isLoaded:!1}),n=e.document,t.render=function(){return i(u,void 0,void 0,(function(){var e;return r(this,(function(i){switch(i.label){case 0:return(e=n.querySelector(t.element))?[4,(0,o.renderLatex)(t,e)]:[3,3];case 1:return i.sent(),[4,(0,s.renderMathML)(t,e)];case 2:i.sent(),i.label=3;case 3:return[2]}}))}))},c=function(){return i(u,void 0,void 0,(function(){return r(this,(function(n){return e.viewer.isLoaded||(e.viewer.isLoaded=!0,t.render()),[2]}))}))},"loading"===n.readyState?n.addEventListener("DOMContentLoaded",c):c(),(0,l.bypassEncapsulation)(t,e),n.dispatchEvent(new Event("viewerLoaded")),[2]}}))}))}(window)},250:function(e,t,n){"use strict";var i=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(r,a){function o(e){try{l(i.next(e))}catch(e){a(e)}}function s(e){try{l(i.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}l((i=i.apply(e,t||[])).next())}))},r=this&&this.__generator||function(e,t){var n,i,r,a,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,i&&(r=2&a[0]?i.return:a[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,a[1])).done)return r;switch(i=0,r&&(a=[2&a[0],r.value]),a[0]){case 0:case 1:r=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,i=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!((r=(r=o.trys).length>0&&r[r.length-1])||6!==a[0]&&2!==a[0])){o=0;continue}if(3===a[0]&&(!r||a[1]>r[0]&&a[1]<r[3])){o.label=a[1];break}if(6===a[0]&&o.label<r[1]){o.label=r[1],r=a;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(a);break}r[2]&&o.ops.pop(),o.trys.pop();continue}a=t.call(e,o)}catch(e){a=[6,e],i=0}finally{n=r=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}},a=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],i=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.renderLatex=void 0;var o=n(775);function s(e,t){var n,a,s,l;return i(this,void 0,void 0,(function(){var i,c,u,d,m,f,h,p,_,g;return r(this,(function(r){switch(r.label){case 0:i=t.textContent||"",c=0,r.label=1;case 1:return c<i.length?(u=function(e,t){var n=t.indexOf("$$",e),i=-1==n?-1:t.indexOf("$$",n+2);return-1!=n&&-1!=i?{start:n,end:i}:null}(c,i),u?(d=i.substring(c,u.start),m=document.createTextNode(d),null===(n=t.parentNode)||void 0===n||n.insertBefore(m,t),t.nodeValue=t.nodeValue.substring(c,u.start),f=i.substring(u.start+2,u.end),[4,(0,o.latexToMathml)(f,e.editorServicesRoot,e.editorServicesExtension)]):[3,3]):[3,5];case 2:return h=r.sent(),p=document.createRange().createContextualFragment(h.text),null===(a=t.parentNode)||void 0===a||a.insertBefore(p,t),t.nodeValue=t.nodeValue.substring(u.start,u.end),c=u.end+2,[3,4];case 3:_=i.substring(c),g=document.createTextNode(_),null===(s=t.parentNode)||void 0===s||s.insertBefore(g,t),t.nodeValue="",c=i.length,r.label=4;case 4:return[3,1];case 5:return null===(l=t.parentNode)||void 0===l||l.removeChild(t),[2]}}))}))}t.renderLatex=function(e,t){return i(this,void 0,void 0,(function(){var n,i,o,l,c,u,d;return r(this,(function(r){switch(r.label){case 0:if("image"!==e.viewer&&"latex"!==e.viewer)return[2];n=function(e){for(var t,n=document.createNodeIterator(e,NodeFilter.SHOW_TEXT,(function(e){return/(\$\$)(.*)(\$\$)/.test(e.nodeValue||"")?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT})),i=[];t=n.nextNode();)i.push(t);return i}(t),r.label=1;case 1:r.trys.push([1,6,7,8]),i=a(n),o=i.next(),r.label=2;case 2:return o.done?[3,5]:(l=o.value,[4,s(e,l)]);case 3:r.sent(),r.label=4;case 4:return o=i.next(),[3,2];case 5:return[3,8];case 6:return c=r.sent(),u={error:c},[3,8];case 7:try{o&&!o.done&&(d=i.return)&&d.call(i)}finally{if(u)throw u.error}return[7];case 8:return[2]}}))}))}},985:function(e,t,n){"use strict";var i=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(r,a){function o(e){try{l(i.next(e))}catch(e){a(e)}}function s(e){try{l(i.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}l((i=i.apply(e,t||[])).next())}))},r=this&&this.__generator||function(e,t){var n,i,r,a,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,i&&(r=2&a[0]?i.return:a[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,a[1])).done)return r;switch(i=0,r&&(a=[2&a[0],r.value]),a[0]){case 0:case 1:r=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,i=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!((r=(r=o.trys).length>0&&r[r.length-1])||6!==a[0]&&2!==a[0])){o=0;continue}if(3===a[0]&&(!r||a[1]>r[0]&&a[1]<r[3])){o.label=a[1];break}if(6===a[0]&&o.label<r[1]){o.label=r[1],r=a;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(a);break}r[2]&&o.ops.pop(),o.trys.pop();continue}a=t.call(e,o)}catch(e){a=[6,e],i=0}finally{n=r=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}},a=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],i=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},o=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,r,a=n.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(i=a.next()).done;)o.push(i.value)}catch(e){r={error:e}}finally{try{i&&!i.done&&(n=a.return)&&n.call(a)}finally{if(r)throw r.error}}return o},s=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var i,r=0,a=t.length;r<a;r++)!i&&r in t||(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))},l=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.renderMathML=void 0;var c=n(775),u=n(930),d=l(n(954));function m(e,t,n){return i(this,void 0,void 0,(function(){var i,a;return r(this,(function(r){switch(r.label){case 0:return(i=document.createElement("img")).src="data:image/svg+xml;charset=utf8,".concat(encodeURIComponent(t.content)),i.setAttribute(e.wiriseditormathmlattribute,n),i.setAttribute("class","Wirisformula"),i.setAttribute("role","math"),+t.height>0&&(i.style.verticalAlign="-"+(+t.height-+t.baseline)+"px",i.height=+t.height,i.width=+t.width),u.corruptMathML.some((function(e){return n.includes(e)}))?[3,2]:[4,(0,c.mathml2accessible)(n,e.lang,e.editorServicesRoot,e.editorServicesExtension)];case 1:a=r.sent().text,i.alt=a,r.label=2;case 2:return[2,i]}}))}))}t.renderMathML=function(e,t){var n;return i(this,void 0,void 0,(function(){var i,l,f,h,p,_,g,b,v,x;return r(this,(function(r){switch(r.label){case 0:if("image"!==e.viewer&&"mathml"!==e.viewer)return[2];(function(e){var t,n,i,r,o=function(e){for(var t,n=document.createNodeIterator(e,NodeFilter.SHOW_TEXT,(function(e){return/«math(.*?)«\/math»/g.test(e.nodeValue||"")?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT})),i=[];t=n.nextNode();)i.push(t);return i}(e);try{for(var s=a(o),l=s.next();!l.done;l=s.next()){var c=l.value,u=d.default.safeXmlDecode(c.textContent),m=document.createRange().createContextualFragment(u);null===(i=c.parentNode)||void 0===i||i.insertBefore(m,c),null===(r=c.parentNode)||void 0===r||r.removeChild(c)}}catch(e){t={error:e}}finally{try{l&&!l.done&&(n=s.return)&&n.call(s)}finally{if(t)throw t.error}}})(t),r.label=1;case 1:r.trys.push([1,11,12,13]),i=a(s([],o(t.getElementsByTagName("math")),!1)),l=i.next(),r.label=2;case 2:return l.done?[3,10]:(f=l.value,h=(0,u.htmlEntitiesToXmlEntities)(f.outerHTML),p=void 0,"true"!==e.wirispluginperformance?[3,4]:[4,(0,c.showImage)(h,e.lang,e.editorServicesRoot,e.editorServicesExtension)]);case 3:return p=r.sent(),[3,7];case 4:return[4,(0,c.createImage)(h,e.lang,e.editorServicesRoot,e.editorServicesExtension)];case 5:return _=(_=r.sent()).replace("pluginsapp","plugins/app"),[4,(0,c.processJsonResponse)(fetch(_))];case 6:p=r.sent(),r.label=7;case 7:return[4,m(e,p,h)];case 8:g=r.sent(),null===(n=f.parentNode)||void 0===n||n.replaceChild(g,f),r.label=9;case 9:return l=i.next(),[3,2];case 10:return[3,13];case 11:return b=r.sent(),v={error:b},[3,13];case 12:try{l&&!l.done&&(x=i.return)&&x.call(i)}finally{if(v)throw v.error}return[7];case 13:return[2]}}))}))}},944:function(e,t,n){"use strict";var i=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(r,a){function o(e){try{l(i.next(e))}catch(e){a(e)}}function s(e){try{l(i.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}l((i=i.apply(e,t||[])).next())}))},r=this&&this.__generator||function(e,t){var n,i,r,a,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,i&&(r=2&a[0]?i.return:a[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,a[1])).done)return r;switch(i=0,r&&(a=[2&a[0],r.value]),a[0]){case 0:case 1:r=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,i=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!((r=(r=o.trys).length>0&&r[r.length-1])||6!==a[0]&&2!==a[0])){o=0;continue}if(3===a[0]&&(!r||a[1]>r[0]&&a[1]<r[3])){o.label=a[1];break}if(6===a[0]&&o.label<r[1]){o.label=r[1],r=a;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(a);break}r[2]&&o.ops.pop(),o.trys.pop();continue}a=t.call(e,o)}catch(e){a=[6,e],i=0}finally{n=r=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.Properties=void 0;var a=n(775),o={editorServicesRoot:"https://www.wiris.net/demo/plugins/app/",editorServicesExtension:"",backendConfig:{wirispluginperformance:"true",wiriseditormathmlattribute:"data-mathml"},dpi:96,element:"body",lang:"en",viewer:"none",zoom:1},s=function(){function e(){var e=this;this.render=function(){return i(e,void 0,void 0,(function(){return r(this,(function(e){return[2]}))}))},this.config=o}return e.prototype.new=function(){},e.generate=function(){return i(this,void 0,void 0,(function(){var t,n,i,o,s,l,c,u;return r(this,(function(r){switch(r.label){case 0:t=new e,n="WIRISplugins.js",(i=document.querySelector('script[src*="'.concat(n,'"]')))&&(o=i.src.lastIndexOf(n),s=i.src.substring(o+15),null!==(l=new URLSearchParams(s)).get("dpi")&&void 0!==l.get("dpi")&&(t.config.dpi=+l.get("dpi")),null!==l.get("element")&&void 0!==l.get("element")&&(t.config.element=l.get("element")),null!==l.get("lang")&&void 0!==l.get("lang")&&(t.config.lang=l.get("lang")),null!==l.get("viewer")&&void 0!==l.get("viewer")&&(t.config.viewer=l.get("viewer")),null!==l.get("zoom")&&void 0!==l.get("zoom")&&(t.config.zoom=+l.get("zoom"))),t.checkServices(),r.label=1;case 1:return r.trys.push([1,3,,4]),c=t.config,[4,(0,a.configurationJson)(["wirispluginperformance","wiriseditormathmlattribute"],t.editorServicesRoot,t.editorServicesExtension)];case 2:return c.backendConfig=r.sent(),[3,4];case 3:if(!((u=r.sent())instanceof a.StatusError))throw u;return console.error(u),[3,4];case 4:return[2,t]}}))}))},e.prototype.checkServices=function(){var e=document.currentScript.src;e.includes("pluginwiris_engine")?(this.config.editorServicesRoot=e,this.config.editorServicesExtension=""):e.includes("integration/WIRISplugins")&&(this.config.editorServicesRoot=e,this.config.editorServicesExtension=".php")},Object.defineProperty(e.prototype,"editorServicesRoot",{get:function(){return this.config.editorServicesRoot||o.editorServicesRoot},set:function(e){this.config.editorServicesRoot=e,this.render()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"editorServicesExtension",{get:function(){return this.config.editorServicesExtension||o.editorServicesExtension},set:function(e){this.config.editorServicesExtension=e,this.render()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"lang",{get:function(){return("inherit"===this.config.lang?null:this.config.lang)||document.getElementsByTagName("html")[0].lang||navigator.language||o.lang},set:function(e){this.config.lang=e,this.render()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"viewer",{get:function(){return this.config.viewer||o.viewer},set:function(e){this.config.viewer=e,this.render()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"dpi",{get:function(){return this.config.dpi||o.dpi},set:function(e){this.config.dpi=e,this.render()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"zoom",{get:function(){return this.config.zoom||o.zoom},set:function(e){this.config.zoom=e,this.render()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"element",{get:function(){return this.config.element||o.element},set:function(e){this.config.element=e,this.render()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"wirispluginperformance",{get:function(){return this.config.backendConfig.wirispluginperformance||o.backendConfig.wirispluginperformance},set:function(e){this.config.backendConfig.wirispluginperformance=e,this.render()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"wiriseditormathmlattribute",{get:function(){return this.config.backendConfig.wiriseditormathmlattribute||o.backendConfig.wiriseditormathmlattribute},set:function(e){this.config.backendConfig.wiriseditormathmlattribute=e,this.render()},enumerable:!1,configurable:!0}),e}();t.Properties=s},390:function(e,t,n){"use strict";var i=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(r,a){function o(e){try{l(i.next(e))}catch(e){a(e)}}function s(e){try{l(i.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}l((i=i.apply(e,t||[])).next())}))},r=this&&this.__generator||function(e,t){var n,i,r,a,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,i&&(r=2&a[0]?i.return:a[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,a[1])).done)return r;switch(i=0,r&&(a=[2&a[0],r.value]),a[0]){case 0:case 1:r=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,i=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!((r=(r=o.trys).length>0&&r[r.length-1])||6!==a[0]&&2!==a[0])){o=0;continue}if(3===a[0]&&(!r||a[1]>r[0]&&a[1]<r[3])){o.label=a[1];break}if(6===a[0]&&o.label<r[1]){o.label=r[1],r=a;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(a);break}r[2]&&o.ops.pop(),o.trys.pop();continue}a=t.call(e,o)}catch(e){a=[6,e],i=0}finally{n=r=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.bypassEncapsulation=void 0;var a=n(250),o=n(985);t.bypassEncapsulation=function(e,t){var n=t;void 0===n.com&&(n.com={}),void 0===n.com.wiris&&(n.com.wiris={}),void 0===n.com.wiris.js&&(n.com.wiris.js={}),void 0===n.com.wiris.js.JsPluginViewer&&(n.com.wiris.js.JsPluginViewer=s.getInstance(),s.properties=e)};var s=function(){function e(){}return e.getInstance=function(){return null==e.instance&&(e.instance=new e),e.instance},e.prototype.parseSafeMathMLElement=function(t,n,i){var r=[];e.getMathMLPositionsAtElementAndChildren(t,r);for(var a=0;a<r.length;a++){var o=r[a],s=document.createElement("math");o.nextElement.parentNode.insertBefore(s,o.nextElement),s.outerHTML=e.decodeSafeMathML(o.safeMML)}},e.prototype.parseDocument=function(t,n,a){return i(this,void 0,void 0,(function(){return r(this,(function(t){return[2,(0,o.renderMathML)(e.properties,document.documentElement)]}))}))},e.prototype.parseElement=function(t,n,a){return i(this,void 0,void 0,(function(){return r(this,(function(n){return[2,(0,o.renderMathML)(e.properties,t)]}))}))},e.prototype.parseLatexDocument=function(t,n){return i(this,void 0,void 0,(function(){return r(this,(function(t){return[2,(0,a.renderLatex)(e.properties,document.documentElement)]}))}))},e.prototype.parseLatexElement=function(t,n,o){return i(this,void 0,void 0,(function(){return r(this,(function(n){return[2,(0,a.renderLatex)(e.properties,t)]}))}))},e.decodeSafeMathML=function(e){var t=l.getSafeXMLCharactersEntities(),n=l.getXMLCharacters(),i=l.getSafeXMLCharacters(),r=t.tagOpener,a=t.tagCloser,o=t.doubleQuote,s=t.realDoubleQuote,c=e.slice();c=(c=(c=(c=c.split(r).join(i.tagOpener)).split(a).join(i.tagCloser)).split(o).join(i.doubleQuote)).split(s).join(i.realDoubleQuote);var u=i.tagOpener,d=i.tagCloser,m=i.doubleQuote,f=(i.realDoubleQuote,i.ampersand),h=i.quote;c=(c=(c=(c=(c=c.split(u).join(n.tagOpener)).split(d).join(n.tagCloser)).split(m).join(n.doubleQuote)).split(f).join(n.ampersand)).split(h).join(n.quote);for(var p="",_=null,g=0;g<c.length;){var b=c.charAt(g);null==_?"$"==b?_="":p+=b:";"==b?(p+="&"+_,_=null):b.match(/([a-zA-Z0-9#._-] | '-')/)?_+=b:(p+="$currentEntity",_=null,g-=1),g++}return p},e.getMathMLPositionsAtElementAndChildren=function(t,n){e.getMathMLPositionsAtNode(t,n);var i=Array.from(t.childNodes);if(i.length>0)for(var r=0;r<i.length;r++){var a=i[r];e.getMathMLPositionsAtElementAndChildren(a,n)}},e.getMathMLPositionsAtNode=function(e,t){var n=l.getSafeXMLCharacters();if(3==e.nodeType)for(var i=n.tagOpener+"math",r=n.tagOpener+"/math"+n.tagCloser,a=e.textContent.indexOf(i),o=0;-1!=a&&-1!=(o=e.textContent.indexOf(r,a+i.length));){var s=e.textContent.indexOf(i,o+r.length);if(s>=0&&o>s)break;var c=e.textContent.substring(a,o+r.length);e.textContent=e.textContent.substring(0,a)+e.textContent.substring(o+r.length),a=(e=e.splitText(a)).textContent.indexOf(i),t.push({safeMML:c,nextElement:e})}},e}(),l=function(){function e(){}return e.getSafeXMLCharactersEntities=function(){return{tagOpener:"&laquo;",tagCloser:"&raquo;",doubleQuote:"&uml;",realDoubleQuote:"&quot;"}},e.getXMLCharacters=function(){return{id:"xmlCharacters",tagOpener:"<",tagCloser:">",doubleQuote:'"',ampersand:"&",quote:"'"}},e.getSafeXMLCharacters=function(){return{id:"safeXmlCharacters",tagOpener:"«",tagCloser:"»",doubleQuote:"¨",ampersand:"§",quote:"`",realDoubleQuote:"¨"}},e}()},775:function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},i(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=this&&this.__assign||function(){return a=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},a.apply(this,arguments)},o=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(r,a){function o(e){try{l(i.next(e))}catch(e){a(e)}}function s(e){try{l(i.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}l((i=i.apply(e,t||[])).next())}))},s=this&&this.__generator||function(e,t){var n,i,r,a,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,i&&(r=2&a[0]?i.return:a[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,a[1])).done)return r;switch(i=0,r&&(a=[2&a[0],r.value]),a[0]){case 0:case 1:r=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,i=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!((r=(r=o.trys).length>0&&r[r.length-1])||6!==a[0]&&2!==a[0])){o=0;continue}if(3===a[0]&&(!r||a[1]>r[0]&&a[1]<r[3])){o.label=a[1];break}if(6===a[0]&&o.label<r[1]){o.label=r[1],r=a;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(a);break}r[2]&&o.ops.pop(),o.trys.pop();continue}a=t.call(e,o)}catch(e){a=[6,e],i=0}finally{n=r=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}},l=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],i=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},c=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,r,a=n.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(i=a.next()).done;)o.push(i.value)}catch(e){r={error:e}}finally{try{i&&!i.done&&(n=a.return)&&n.call(a)}finally{if(r)throw r.error}}return o},u=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.configurationJson=t.latexToMathml=t.createImage=t.showImage=t.mathml2accessible=t.callService=t.processJsonResponse=t.StatusError=void 0;var d,m=u(n(172));!function(e){e.Post="POST",e.Get="GET"}(d||(d={}));var f=function(e){function t(n){var i=e.call(this,n)||this;return Object.setPrototypeOf(i,t.prototype),i}return r(t,e),t}(Error);function h(e){return o(this,void 0,void 0,(function(){var t,n,i;return s(this,(function(r){switch(r.label){case 0:return r.trys.push([0,3,,4]),[4,e];case 1:return[4,r.sent().json()];case 2:if(t=r.sent(),n=t.status,i=t.result,"ok"!==n)throw new f("Service responded with a non-ok status");return[2,i];case 3:throw r.sent();case 4:return[2]}}))}))}function p(e,t,n,i,r){return o(this,void 0,void 0,(function(){var o,u,m,f,h,p,_,g,b;return s(this,(function(s){try{if(o=new URL(t+r,i),u={method:n,headers:{"Content-type":"application/x-www-form-urlencoded; charset=utf-8"}},n===d.Get)try{for(m=l(Object.entries(e)),f=m.next();!f.done;f=m.next())h=c(f.value,2),p=h[0],_=h[1],o.searchParams.set(p,_)}catch(e){g={error:e}}finally{try{f&&!f.done&&(b=m.return)&&b.call(m)}finally{if(g)throw g.error}}else u.body=new URLSearchParams(a({},e));return[2,fetch(o.toString(),u)]}catch(e){throw e}return[2]}))}))}t.StatusError=f,t.processJsonResponse=h,t.callService=p,t.mathml2accessible=function(e,t,n,i){return o(this,void 0,void 0,(function(){return s(this,(function(r){return[2,h(p({service:"mathml2accessible",mml:e,metrics:"true",centerbaseline:"false",lang:t,ignoreStyles:"true"},"service",d.Post,n,i))]}))}))},t.showImage=function(e,t,n,i){return o(this,void 0,void 0,(function(){var r,a,o,l;return s(this,(function(s){switch(s.label){case 0:r={mml:e,metrics:"true",centerbaseline:"false",lang:t},a=m.default.createShowImageSrcData(r),o=p(a,"showimage",d.Get,n,i),s.label=1;case 1:return s.trys.push([1,3,,4]),[4,h(o)];case 2:return[2,s.sent()];case 3:if(!((l=s.sent())instanceof f))throw l;return[3,4];case 4:return[2,h(p(r,"showimage",d.Post,n,i))]}}))}))},t.createImage=function(e,t,n,i){return o(this,void 0,void 0,(function(){return s(this,(function(r){switch(r.label){case 0:return[4,p({mml:e,metrics:"true",centerbaseline:"false",lang:t},"createimage",d.Get,n,i)];case 1:return[2,r.sent().text()]}}))}))},t.latexToMathml=function(e,t,n){return o(this,void 0,void 0,(function(){return s(this,(function(i){return[2,h(p({service:"latex2mathml",latex:e},"service",d.Post,t,n))]}))}))},t.configurationJson=function(e,t,n){return o(this,void 0,void 0,(function(){return s(this,(function(i){return[2,h(p({variablekeys:e.join(",")},"configurationjson",d.Get,t,n))]}))}))}},930:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.corruptMathML=t.htmlEntitiesToXmlEntities=void 0,t.htmlEntitiesToXmlEntities=function(e){e=(e=function(e){var t=document.createElement("textarea");return t.innerHTML=e,t.value}(e)).split("&").join("&amp;").split('"<"').join('"&lt;"').split('">"').join('"&gt;"').split("><<").join(">&lt;<");for(var t="",n=0;n<e.length;n++){var i=e.charAt(n);e.charCodeAt(n)>128?t+="&#"+e.charCodeAt(n)+";":t+=i}return t},t.corruptMathML=["⟦","&#10214;","⟧","&#10215;","mscarries","mscarry","msgroup","mstack","msline","msrow"]},975:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});class i{static addConfiguration(e){Object.assign(i.properties,e)}static get properties(){return i._properties}static set properties(e){i._properties=e}static get(e){return Object.prototype.hasOwnProperty.call(i.properties,e)?i.properties[e]:!!Object.prototype.hasOwnProperty.call(i.properties,"_wrs_conf_")&&i.properties[`_wrs_conf_${e}`]}static set(e,t){i.properties[e]=t}static update(e,t){if(i.get(e)){const n=Object.assign(i.get(e),t);i.set(e,n)}else i.set(e,t)}}i._properties={}},724:(e,t,n)=>{"use strict";n.d(t,{default:()=>i});class i{static get safeXmlCharactersEntities(){return{tagOpener:"&laquo;",tagCloser:"&raquo;",doubleQuote:"&uml;",realDoubleQuote:"&quot;"}}static get safeBadBlackboardCharacters(){return{ltElement:"«mo»<«/mo»",gtElement:"«mo»>«/mo»",ampElement:"«mo»&«/mo»"}}static get safeGoodBlackboardCharacters(){return{ltElement:"«mo»§lt;«/mo»",gtElement:"«mo»§gt;«/mo»",ampElement:"«mo»§amp;«/mo»"}}static get xmlCharacters(){return{id:"xmlCharacters",tagOpener:"<",tagCloser:">",doubleQuote:'"',ampersand:"&",quote:"'"}}static get safeXmlCharacters(){return{id:"safeXmlCharacters",tagOpener:"«",tagCloser:"»",doubleQuote:"¨",ampersand:"§",quote:"`",realDoubleQuote:"¨"}}}},699:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var i=n(158),r=n(954),a=n(862),o=n(724),s=n(683);class l{static get cache(){return l._cache}static set cache(e){l._cache=e}static getLatexFromMathML(e){const t=r.default.removeSemantics(e),{cache:n}=l,i={service:"mathml2latex",mml:t},o=JSON.parse(a.Z.getService("service",i));let c="";if("ok"===o.status){c=o.result.text;const t=s.Z.htmlEntities(c),i=r.default.addAnnotation(e,t,"LaTeX");n.populate(c,i)}return c}static getMathMLFromLatex(e,t){const n=l.cache;if(l.cache.get(e))return l.cache.get(e);const i={service:"latex2mathml",latex:e};t&&(i.saveLatex="");const o=JSON.parse(a.Z.getService("service",i));let c;if("ok"===o.status){let t=o.result.text;if(t=t.split("\r").join("").split("\n").join(" "),-1===t.indexOf("semantics")&&-1===t.indexOf("annotation")){const n=s.Z.htmlEntities(e);t=r.default.addAnnotation(t,n,"LaTeX"),c=t}else c=t;n.get(e)||n.populate(e,t)}else c=`$$${e}$$`;return c}static parseMathmlToLatex(e,t){let n="";const i=`${t.tagOpener}math`,a=`${t.tagOpener}/math${t.tagCloser}`,s=`${t.tagOpener}annotation encoding=${t.doubleQuote}LaTeX${t.doubleQuote}${t.tagCloser}`,c=`${t.tagOpener}/annotation${t.tagCloser}`;let u,d,m,f=e.indexOf(i),h=0;for(;-1!==f;){if(n+=e.substring(h,f),h=e.indexOf(a,f),-1===h?h=e.length-1:h+=a.length,u=e.substring(f,h),d=u.indexOf(s),-1!==d){d+=s.length,m=u.indexOf(c);let e=u.substring(d,m);t===o.default.safeXmlCharacters&&(e=r.default.safeXmlDecode(e)),n+=`$$${e}$$`,l.cache.populate(e,u)}else n+=u;f=e.indexOf(i,h)}return n+=e.substring(h,e.length),n}static getLatexFromTextNode(e,t,n){void 0!==n&&null!=n||(n={open:"$$",close:"$$"});let i,r=e;for(;r.previousSibling&&3===r.previousSibling.nodeType;)r=r.previousSibling;function a(e,t,i){let r=e.nodeValue.indexOf(i,t);for(;-1===r;){if(!(e=e.nextSibling))return null;r=e.nodeValue?e.nodeValue.indexOf(n.close):-1}return{node:e,position:r}}function o(e,t,n,i){if(e===n)return t<=i;for(;e&&e!==n;)e=e.nextSibling;return e===n}let s={node:r,position:0};const l=n.open.length;do{if(i=a(s.node,s.position,n.open),null==i||o(e,t,i.node,i.position))return null;if(s=a(i.node,i.position+l,n.close),null==s)return null;s.position+=l}while(o(s.node,s.position,e,t));let c;if(i.node===s.node)c=i.node.nodeValue.substring(i.position+l,s.position-l);else{const e=i.position+l;c=i.node.nodeValue.substring(e,i.node.nodeValue.length);let t=i.node;do{t=t.nextSibling,t===s.node?c+=s.node.nodeValue.substring(0,s.position-l):c+=t.nodeValue?t.nodeValue:""}while(t!==s.node)}return{latex:c,startNode:i.node,startPosition:i.position,endNode:s.node,endPosition:s.position}}}l._cache=new i.Z},954:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var i=n(724),r=n(683);class a{static isMathmlInAttribute(e,t){const n=new RegExp("^['\"][\\s]*=[\\s]*[\\w-]+('[\\s]*(\"[^\"]*\"|'[^']*')[\\s]*=[\\s]*[\\w-]+[\\s]*')*[\\s]+gmi<"),i=e.substring(0,t).split("").reverse().join("");return n.test(i)}static safeXmlDecode(e){let{tagOpener:t}=i.default.safeXmlCharactersEntities,{tagCloser:n}=i.default.safeXmlCharactersEntities,{doubleQuote:r}=i.default.safeXmlCharactersEntities,{realDoubleQuote:a}=i.default.safeXmlCharactersEntities;e=(e=(e=(e=e.split(t).join(i.default.safeXmlCharacters.tagOpener)).split(n).join(i.default.safeXmlCharacters.tagCloser)).split(r).join(i.default.safeXmlCharacters.doubleQuote)).split(a).join(i.default.safeXmlCharacters.realDoubleQuote);const{ltElement:o}=i.default.safeBadBlackboardCharacters,{gtElement:s}=i.default.safeBadBlackboardCharacters,{ampElement:l}=i.default.safeBadBlackboardCharacters;"_wrs_blackboard"in window&&window._wrs_blackboard&&(e=(e=(e=e.split(o).join(i.default.safeGoodBlackboardCharacters.ltElement)).split(s).join(i.default.safeGoodBlackboardCharacters.gtElement)).split(l).join(i.default.safeGoodBlackboardCharacters.ampElement)),({tagOpener:t}=i.default.safeXmlCharacters),({tagCloser:n}=i.default.safeXmlCharacters),({doubleQuote:r}=i.default.safeXmlCharacters),({realDoubleQuote:a}=i.default.safeXmlCharacters);const{ampersand:c}=i.default.safeXmlCharacters,{quote:u}=i.default.safeXmlCharacters;e=(e=(e=(e=(e=e.split(t).join(i.default.xmlCharacters.tagOpener)).split(n).join(i.default.xmlCharacters.tagCloser)).split(r).join(i.default.xmlCharacters.doubleQuote)).split(c).join(i.default.xmlCharacters.ampersand)).split(u).join(i.default.xmlCharacters.quote);let d="",m=null;for(let t=0;t<e.length;t+=1){const n=e.charAt(t);null==m?"$"===n?m="":d+=n:";"===n?(d+=`&${m}`,m=null):n.match(/([a-zA-Z0-9#._-] | '-')/)?m+=n:(d+=`$${m}`,m=null,t-=1)}return d}static safeXmlEncode(e){const{tagOpener:t}=i.default.xmlCharacters,{tagCloser:n}=i.default.xmlCharacters,{doubleQuote:r}=i.default.xmlCharacters,{ampersand:a}=i.default.xmlCharacters,{quote:o}=i.default.xmlCharacters;return(e=(e=(e=(e=e.split(t).join(i.default.safeXmlCharacters.tagOpener)).split(n).join(i.default.safeXmlCharacters.tagCloser)).split(r).join(i.default.safeXmlCharacters.doubleQuote)).split(a).join(i.default.safeXmlCharacters.ampersand)).split(o).join(i.default.safeXmlCharacters.quote)}static mathMLEntities(e){let t="";for(let n=0;n<e.length;n+=1){const i=e.charAt(n);if(e.codePointAt(n)>128)t+=`&#${e.codePointAt(n)};`,e.codePointAt(n)>65535&&(n+=1);else if("&"===i){const a=e.indexOf(";",n+1);if(a>=0){const i=document.createElement("span");i.innerHTML=e.substring(n,a+1),t+=`&#${r.Z.fixedCharCodeAt(i.textContent||i.innerText,0)};`,n=a}else t+=i}else t+=i}return t}static addCustomEditorClassAttribute(e,t){let n="";const i=e.indexOf("<math");if(0===i){const r=e.indexOf(">");if(-1===e.indexOf("class"))return n=`${e.substr(i,r)} class="wrs_${t}">`,n+=e.substr(r+1,e.length),n}return e}static removeCustomEditorClassAttribute(e,t){return-1===e.indexOf("class")||-1===e.indexOf(`wrs_${t}`)?e:-1!==e.indexOf(` class="wrs_${t}"`)?e.replace(` class="wrs_${t}"`,""):-1!==e.indexOf(`class="wrs_${t}"`)?e.replace(`class="wrs_${t}"`,""):e.replace(`wrs_${t}`,"")}static addAnnotation(e,t,n){let i="";if(-1!==e.indexOf("<annotation")){const r=e.indexOf("</semantics>");i=`${e.substring(0,r)}<annotation encoding="${n}">${t}</annotation>${e.substring(r)}`}else if(a.isEmpty(e)){const r=e.indexOf("/>"),a=e.indexOf(">"),o=a===r?r:a;i=`${e.substring(0,o)}><semantics><annotation encoding="${n}">${t}</annotation></semantics></math>`}else{const r=e.indexOf(">")+1,a=e.lastIndexOf("</math>"),o=e.substring(r,a);i=`${e.substring(0,r)}<semantics><mrow>${o}</mrow><annotation encoding="${n}">${t}</annotation></semantics></math>`}return i}static removeAnnotation(e,t){let n=e;const i=`<annotation encoding="${t}">`,r=e.indexOf(i);if(-1!==r){let t=!1,i=e.indexOf("<annotation");for(;-1!==i;)i!==r&&(t=!0),i=e.indexOf("<annotation",i+1);if(t){const t=e.indexOf("</annotation>",r)+13;n=e.substring(0,r)+e.substring(t)}else n=a.removeSemantics(e)}return n}static removeSemantics(e){return e.replace(/<semantics>\s*?(<mrow>)?/gm,"").replace(/(<\/mrow>)?\s*<annotation[\W\w]*?<\/semantics>/gm,"")}static removeSemanticsOcurrences(e,t=i.default.xmlCharacters){const n=`${t.tagOpener}math`,r=`${t.tagOpener}/math${t.tagCloser}`,a=`/${t.tagCloser}`,{tagCloser:o}=t,s=`${t.tagOpener}semantics${t.tagCloser}`,l=`${t.tagOpener}annotation encoding=`;let c="",u=e.indexOf(n),d=0;for(;-1!==u;){c+=e.substring(d,u);const t=e.indexOf(r,u),i=e.indexOf(a,u),m=e.indexOf(o,u);-1!==t?d=t:i===m-1&&(d=i);const f=e.indexOf(s,u);if(-1!==f){const t=e.substring(u,f),i=e.indexOf(l,u);if(-1!==i){const a=f+s.length;c+=t+e.substring(a,i)+r,u=e.indexOf(n,u+n.length),d+=r.length}else d=u,u=e.indexOf(n,u+n.length)}else d=u,u=e.indexOf(n,u+n.length)}return c+=e.substring(d,e.length),c}static containClass(e,t){const n=e.indexOf("class");if(-1===n)return!1;const i=e.indexOf(">",n);return-1!==e.substring(n,i).indexOf(t)}static isEmpty(e){const t=e.indexOf(">"),n=e.indexOf("/>");let i=!1;if(-1!==n&&n===t-1&&(i=!0),!i){const n=new RegExp("</(.+:)?math>").exec(e);n&&(i=t+1===n.index)}return i}static encodeProperties(e){return e.replace(/\w+=".*?"/g,(e=>{const t=e.indexOf('"'),n=e.substring(t+1,e.length-1),i=r.Z.htmlEntities(n);return`${e.substring(0,t+1)}${i}"`}))}}},874:()=>{"use strict";var md5,__WEBPACK_DEFAULT_EXPORT__=md5;(function(){var HxOverrides=function(){};HxOverrides.__name__=!0,HxOverrides.dateStr=function(e){var t=e.getMonth()+1,n=e.getDate(),i=e.getHours(),r=e.getMinutes(),a=e.getSeconds();return e.getFullYear()+"-"+(t<10?"0"+t:""+t)+"-"+(n<10?"0"+n:""+n)+" "+(i<10?"0"+i:""+i)+":"+(r<10?"0"+r:""+r)+":"+(a<10?"0"+a:""+a)},HxOverrides.strDate=function(e){switch(e.length){case 8:var t=e.split(":"),n=new Date;return n.setTime(0),n.setUTCHours(t[0]),n.setUTCMinutes(t[1]),n.setUTCSeconds(t[2]),n;case 10:return t=e.split("-"),new Date(t[0],t[1]-1,t[2],0,0,0);case 19:var i=(t=e.split(" "))[0].split("-"),r=t[1].split(":");return new Date(i[0],i[1]-1,i[2],r[0],r[1],r[2]);default:throw"Invalid date format : "+e}},HxOverrides.cca=function(e,t){var n=e.charCodeAt(t);if(n==n)return n},HxOverrides.substr=function(e,t,n){return null!=t&&0!=t&&null!=n&&n<0?"":(null==n&&(n=e.length),t<0?(t=e.length+t)<0&&(t=0):n<0&&(n=e.length+n-t),e.substr(t,n))},HxOverrides.remove=function(e,t){for(var n=0,i=e.length;n<i;){if(e[n]==t)return e.splice(n,1),!0;n++}return!1},HxOverrides.iter=function(e){return{cur:0,arr:e,hasNext:function(){return this.cur<this.arr.length},next:function(){return this.arr[this.cur++]}}};var IntIter=function(e,t){this.min=e,this.max=t};IntIter.__name__=!0,IntIter.prototype={next:function(){return this.min++},hasNext:function(){return this.min<this.max},__class__:IntIter};var Std=function(){};Std.__name__=!0,Std.is=function(e,t){return js.Boot.__instanceof(e,t)},Std.string=function(e){return js.Boot.__string_rec(e,"")},Std.int=function(e){return 0|e},Std.parseInt=function(e){var t=parseInt(e,10);return 0!=t||120!=HxOverrides.cca(e,1)&&88!=HxOverrides.cca(e,1)||(t=parseInt(e)),isNaN(t)?null:t},Std.parseFloat=function(e){return parseFloat(e)},Std.random=function(e){return Math.floor(Math.random()*e)};var com=com||{};com.wiris||(com.wiris={}),com.wiris.js||(com.wiris.js={}),com.wiris.js.JsPluginTools=function(){this.tryReady()},com.wiris.js.JsPluginTools.__name__=!0,com.wiris.js.JsPluginTools.main=function(){var e;e=com.wiris.js.JsPluginTools.getInstance(),haxe.Timer.delay($bind(e,e.tryReady),100)},com.wiris.js.JsPluginTools.getInstance=function(){return null==com.wiris.js.JsPluginTools.instance&&(com.wiris.js.JsPluginTools.instance=new com.wiris.js.JsPluginTools),com.wiris.js.JsPluginTools.instance},com.wiris.js.JsPluginTools.bypassEncapsulation=function(){null==window.com&&(window.com={}),null==window.com.wiris&&(window.com.wiris={}),null==window.com.wiris.js&&(window.com.wiris.js={}),null==window.com.wiris.js.JsPluginTools&&(window.com.wiris.js.JsPluginTools=com.wiris.js.JsPluginTools.getInstance())},com.wiris.js.JsPluginTools.prototype={md5encode:function(e){return haxe.Md5.encode(e)},doLoad:function(){this.ready=!0,com.wiris.js.JsPluginTools.instance=this,com.wiris.js.JsPluginTools.bypassEncapsulation()},tryReady:function(){this.ready=!1,js.Lib.document.readyState&&(this.doLoad(),this.ready=!0),this.ready||haxe.Timer.delay($bind(this,this.tryReady),100)},__class__:com.wiris.js.JsPluginTools};var haxe=haxe||{};haxe.Log=function(){},haxe.Log.__name__=!0,haxe.Log.trace=function(e,t){js.Boot.__trace(e,t)},haxe.Log.clear=function(){js.Boot.__clear_trace()},haxe.Md5=function(){},haxe.Md5.__name__=!0,haxe.Md5.encode=function(e){return(new haxe.Md5).doEncode(e)},haxe.Md5.prototype={doEncode:function(e){for(var t=this.str2blks(e),n=1732584193,i=-271733879,r=-1732584194,a=271733878,o=0;o<t.length;){var s=n,l=i,c=r,u=a;n=this.ff(n,i,r,a,t[o],7,-680876936),a=this.ff(a,n,i,r,t[o+1],12,-389564586),r=this.ff(r,a,n,i,t[o+2],17,606105819),i=this.ff(i,r,a,n,t[o+3],22,-1044525330),n=this.ff(n,i,r,a,t[o+4],7,-176418897),a=this.ff(a,n,i,r,t[o+5],12,1200080426),r=this.ff(r,a,n,i,t[o+6],17,-1473231341),i=this.ff(i,r,a,n,t[o+7],22,-45705983),n=this.ff(n,i,r,a,t[o+8],7,1770035416),a=this.ff(a,n,i,r,t[o+9],12,-1958414417),r=this.ff(r,a,n,i,t[o+10],17,-42063),i=this.ff(i,r,a,n,t[o+11],22,-1990404162),n=this.ff(n,i,r,a,t[o+12],7,1804603682),a=this.ff(a,n,i,r,t[o+13],12,-40341101),r=this.ff(r,a,n,i,t[o+14],17,-1502002290),i=this.ff(i,r,a,n,t[o+15],22,1236535329),n=this.gg(n,i,r,a,t[o+1],5,-165796510),a=this.gg(a,n,i,r,t[o+6],9,-1069501632),r=this.gg(r,a,n,i,t[o+11],14,643717713),i=this.gg(i,r,a,n,t[o],20,-373897302),n=this.gg(n,i,r,a,t[o+5],5,-701558691),a=this.gg(a,n,i,r,t[o+10],9,38016083),r=this.gg(r,a,n,i,t[o+15],14,-660478335),i=this.gg(i,r,a,n,t[o+4],20,-405537848),n=this.gg(n,i,r,a,t[o+9],5,568446438),a=this.gg(a,n,i,r,t[o+14],9,-1019803690),r=this.gg(r,a,n,i,t[o+3],14,-187363961),i=this.gg(i,r,a,n,t[o+8],20,1163531501),n=this.gg(n,i,r,a,t[o+13],5,-1444681467),a=this.gg(a,n,i,r,t[o+2],9,-51403784),r=this.gg(r,a,n,i,t[o+7],14,1735328473),i=this.gg(i,r,a,n,t[o+12],20,-1926607734),n=this.hh(n,i,r,a,t[o+5],4,-378558),a=this.hh(a,n,i,r,t[o+8],11,-2022574463),r=this.hh(r,a,n,i,t[o+11],16,1839030562),i=this.hh(i,r,a,n,t[o+14],23,-35309556),n=this.hh(n,i,r,a,t[o+1],4,-1530992060),a=this.hh(a,n,i,r,t[o+4],11,1272893353),r=this.hh(r,a,n,i,t[o+7],16,-155497632),i=this.hh(i,r,a,n,t[o+10],23,-1094730640),n=this.hh(n,i,r,a,t[o+13],4,681279174),a=this.hh(a,n,i,r,t[o],11,-358537222),r=this.hh(r,a,n,i,t[o+3],16,-722521979),i=this.hh(i,r,a,n,t[o+6],23,76029189),n=this.hh(n,i,r,a,t[o+9],4,-640364487),a=this.hh(a,n,i,r,t[o+12],11,-421815835),r=this.hh(r,a,n,i,t[o+15],16,530742520),i=this.hh(i,r,a,n,t[o+2],23,-995338651),n=this.ii(n,i,r,a,t[o],6,-198630844),a=this.ii(a,n,i,r,t[o+7],10,1126891415),r=this.ii(r,a,n,i,t[o+14],15,-1416354905),i=this.ii(i,r,a,n,t[o+5],21,-57434055),n=this.ii(n,i,r,a,t[o+12],6,1700485571),a=this.ii(a,n,i,r,t[o+3],10,-1894986606),r=this.ii(r,a,n,i,t[o+10],15,-1051523),i=this.ii(i,r,a,n,t[o+1],21,-2054922799),n=this.ii(n,i,r,a,t[o+8],6,1873313359),a=this.ii(a,n,i,r,t[o+15],10,-30611744),r=this.ii(r,a,n,i,t[o+6],15,-1560198380),i=this.ii(i,r,a,n,t[o+13],21,1309151649),n=this.ii(n,i,r,a,t[o+4],6,-145523070),a=this.ii(a,n,i,r,t[o+11],10,-1120210379),r=this.ii(r,a,n,i,t[o+2],15,718787259),i=this.ii(i,r,a,n,t[o+9],21,-343485551),n=this.addme(n,s),i=this.addme(i,l),r=this.addme(r,c),a=this.addme(a,u),o+=16}return this.rhex(n)+this.rhex(i)+this.rhex(r)+this.rhex(a)},ii:function(e,t,n,i,r,a,o){return this.cmn(this.bitXOR(n,this.bitOR(t,~i)),e,t,r,a,o)},hh:function(e,t,n,i,r,a,o){return this.cmn(this.bitXOR(this.bitXOR(t,n),i),e,t,r,a,o)},gg:function(e,t,n,i,r,a,o){return this.cmn(this.bitOR(this.bitAND(t,i),this.bitAND(n,~i)),e,t,r,a,o)},ff:function(e,t,n,i,r,a,o){return this.cmn(this.bitOR(this.bitAND(t,n),this.bitAND(~t,i)),e,t,r,a,o)},cmn:function(e,t,n,i,r,a){return this.addme(this.rol(this.addme(this.addme(t,e),this.addme(i,a)),r),n)},rol:function(e,t){return e<<t|e>>>32-t},str2blks:function(e){for(var t=1+(e.length+8>>6),n=new Array,i=0,r=16*t;i<r;)n[a=i++]=0;for(var a=0;a<e.length;)n[a>>2]|=HxOverrides.cca(e,a)<<(8*e.length+a)%4*8,a++;n[a>>2]|=128<<(8*e.length+a)%4*8;var o=8*e.length,s=16*t-2;return n[s]=255&o,n[s]|=(o>>>8&255)<<8,n[s]|=(o>>>16&255)<<16,n[s]|=(o>>>24&255)<<24,n},rhex:function(e){for(var t="",n="0123456789abcdef",i=0;i<4;){var r=i++;t+=n.charAt(e>>8*r+4&15)+n.charAt(e>>8*r&15)}return t},addme:function(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n},bitAND:function(e,t){return(e>>>1&t>>>1)<<1|1&e&t},bitXOR:function(e,t){return(e>>>1^t>>>1)<<1|1&e^1&t},bitOR:function(e,t){return(e>>>1|t>>>1)<<1|1&e|1&t},__class__:haxe.Md5},haxe.Timer=function(e){var t=this;this.id=window.setInterval((function(){t.run()}),e)},haxe.Timer.__name__=!0,haxe.Timer.delay=function(e,t){var n=new haxe.Timer(t);return n.run=function(){n.stop(),e()},n},haxe.Timer.measure=function(e,t){var n=haxe.Timer.stamp(),i=e();return haxe.Log.trace(haxe.Timer.stamp()-n+"s",t),i},haxe.Timer.stamp=function(){return(new Date).getTime()/1e3},haxe.Timer.prototype={run:function(){},stop:function(){null!=this.id&&(window.clearInterval(this.id),this.id=null)},__class__:haxe.Timer};var js=js||{},$_;function $bind(e,t){var n=function(){return n.method.apply(n.scope,arguments)};return n.scope=e,n.method=t,n}js.Boot=function(){},js.Boot.__name__=!0,js.Boot.__unhtml=function(e){return e.split("&").join("&amp;").split("<").join("&lt;").split(">").join("&gt;")},js.Boot.__trace=function(e,t){var n,i=null!=t?t.fileName+":"+t.lineNumber+": ":"";i+=js.Boot.__string_rec(e,""),"undefined"!=typeof document&&null!=(n=document.getElementById("haxe:trace"))?n.innerHTML+=js.Boot.__unhtml(i)+"<br/>":"undefined"!=typeof console&&null!=console.log&&console.log(i)},js.Boot.__clear_trace=function(){var e=document.getElementById("haxe:trace");null!=e&&(e.innerHTML="")},js.Boot.isClass=function(e){return e.__name__},js.Boot.isEnum=function(e){return e.__ename__},js.Boot.getClass=function(e){return e.__class__},js.Boot.__string_rec=function(e,t){if(null==e)return"null";if(t.length>=5)return"<...>";var n=typeof e;switch("function"==n&&(e.__name__||e.__ename__)&&(n="object"),n){case"object":if(e instanceof Array){if(e.__enum__){if(2==e.length)return e[0];var i=e[0]+"(";t+="\t";for(var r=2,a=e.length;r<a;)i+=2!=(o=r++)?","+js.Boot.__string_rec(e[o],t):js.Boot.__string_rec(e[o],t);return i+")"}var o,s=e.length;for(i="[",t+="\t",a=0;a<s;){var l=a++;i+=(l>0?",":"")+js.Boot.__string_rec(e[l],t)}return i+"]"}var c;try{c=e.toString}catch(e){return"???"}if(null!=c&&c!=Object.toString){var u=e.toString();if("[object Object]"!=u)return u}var d=null;i="{\n",t+="\t";var m=null!=e.hasOwnProperty;for(var d in e)m&&!e.hasOwnProperty(d)||"prototype"!=d&&"__class__"!=d&&"__super__"!=d&&"__interfaces__"!=d&&"__properties__"!=d&&(2!=i.length&&(i+=", \n"),i+=t+d+" : "+js.Boot.__string_rec(e[d],t));return i+"\n"+(t=t.substring(1))+"}";case"function":return"<function>";case"string":return e;default:return String(e)}},js.Boot.__interfLoop=function(e,t){if(null==e)return!1;if(e==t)return!0;var n=e.__interfaces__;if(null!=n)for(var i=0,r=n.length;i<r;){var a=n[i++];if(a==t||js.Boot.__interfLoop(a,t))return!0}return js.Boot.__interfLoop(e.__super__,t)},js.Boot.__instanceof=function(e,t){try{if(e instanceof t)return t!=Array||null==e.__enum__;if(js.Boot.__interfLoop(e.__class__,t))return!0}catch(e){if(null==t)return!1}switch(t){case Int:return Math.ceil(e%2147483648)===e;case Float:return"number"==typeof e;case Bool:return!0===e||!1===e;case String:return"string"==typeof e;case Dynamic:return!0;default:return null!=e&&(t==Class&&null!=e.__name__||t==Enum&&null!=e.__ename__||e.__enum__==t)}},js.Boot.__cast=function(e,t){if(js.Boot.__instanceof(e,t))return e;throw"Cannot cast "+Std.string(e)+" to "+Std.string(t)},js.Lib=function(){},js.Lib.__name__=!0,js.Lib.debug=function(){},js.Lib.alert=function(e){alert(js.Boot.__string_rec(e,""))},js.Lib.eval=function(code){return eval(code)},js.Lib.setErrorHandler=function(e){js.Lib.onerror=e},Array.prototype.indexOf&&(HxOverrides.remove=function(e,t){var n=e.indexOf(t);return-1!=n&&(e.splice(n,1),!0)}),Math.__name__=["Math"],Math.NaN=Number.NaN,Math.NEGATIVE_INFINITY=Number.NEGATIVE_INFINITY,Math.POSITIVE_INFINITY=Number.POSITIVE_INFINITY,Math.isFinite=function(e){return isFinite(e)},Math.isNaN=function(e){return isNaN(e)},String.prototype.__class__=String,String.__name__=!0,Array.prototype.__class__=Array,Array.__name__=!0,Date.prototype.__class__=Date,Date.__name__=["Date"];var Int={__name__:["Int"]},Dynamic={__name__:["Dynamic"]},Float=Number;Float.__name__=["Float"];var Bool=Boolean;Bool.__ename__=["Bool"];var Class={__name__:["Class"]},Enum={},Void={__ename__:["Void"]};"undefined"!=typeof document&&(js.Lib.document=document),"undefined"!=typeof window&&(js.Lib.window=window,js.Lib.window.onerror=function(e,t,n){var i=js.Lib.onerror;return null!=i&&i(e,[t+":"+n])}),com.wiris.js.JsPluginTools.main(),delete Array.prototype.__class__})(),function(){var HxOverrides=function(){};HxOverrides.__name__=!0,HxOverrides.dateStr=function(e){var t=e.getMonth()+1,n=e.getDate(),i=e.getHours(),r=e.getMinutes(),a=e.getSeconds();return e.getFullYear()+"-"+(t<10?"0"+t:""+t)+"-"+(n<10?"0"+n:""+n)+" "+(i<10?"0"+i:""+i)+":"+(r<10?"0"+r:""+r)+":"+(a<10?"0"+a:""+a)},HxOverrides.strDate=function(e){switch(e.length){case 8:var t=e.split(":"),n=new Date;return n.setTime(0),n.setUTCHours(t[0]),n.setUTCMinutes(t[1]),n.setUTCSeconds(t[2]),n;case 10:return t=e.split("-"),new Date(t[0],t[1]-1,t[2],0,0,0);case 19:var i=(t=e.split(" "))[0].split("-"),r=t[1].split(":");return new Date(i[0],i[1]-1,i[2],r[0],r[1],r[2]);default:throw"Invalid date format : "+e}},HxOverrides.cca=function(e,t){var n=e.charCodeAt(t);if(n==n)return n},HxOverrides.substr=function(e,t,n){return null!=t&&0!=t&&null!=n&&n<0?"":(null==n&&(n=e.length),t<0?(t=e.length+t)<0&&(t=0):n<0&&(n=e.length+n-t),e.substr(t,n))},HxOverrides.remove=function(e,t){for(var n=0,i=e.length;n<i;){if(e[n]==t)return e.splice(n,1),!0;n++}return!1},HxOverrides.iter=function(e){return{cur:0,arr:e,hasNext:function(){return this.cur<this.arr.length},next:function(){return this.arr[this.cur++]}}};var IntIter=function(e,t){this.min=e,this.max=t};IntIter.__name__=!0,IntIter.prototype={next:function(){return this.min++},hasNext:function(){return this.min<this.max},__class__:IntIter};var Std=function(){};Std.__name__=!0,Std.is=function(e,t){return js.Boot.__instanceof(e,t)},Std.string=function(e){return js.Boot.__string_rec(e,"")},Std.int=function(e){return 0|e},Std.parseInt=function(e){var t=parseInt(e,10);return 0!=t||120!=HxOverrides.cca(e,1)&&88!=HxOverrides.cca(e,1)||(t=parseInt(e)),isNaN(t)?null:t},Std.parseFloat=function(e){return parseFloat(e)},Std.random=function(e){return Math.floor(Math.random()*e)};var com=com||{};com.wiris||(com.wiris={}),com.wiris.js||(com.wiris.js={}),com.wiris.js.JsPluginTools=function(){this.tryReady()},com.wiris.js.JsPluginTools.__name__=!0,com.wiris.js.JsPluginTools.main=function(){var e;e=com.wiris.js.JsPluginTools.getInstance(),haxe.Timer.delay($bind(e,e.tryReady),100)},com.wiris.js.JsPluginTools.getInstance=function(){return null==com.wiris.js.JsPluginTools.instance&&(com.wiris.js.JsPluginTools.instance=new com.wiris.js.JsPluginTools),com.wiris.js.JsPluginTools.instance},com.wiris.js.JsPluginTools.bypassEncapsulation=function(){null==window.com&&(window.com={}),null==window.com.wiris&&(window.com.wiris={}),null==window.com.wiris.js&&(window.com.wiris.js={}),null==window.com.wiris.js.JsPluginTools&&(window.com.wiris.js.JsPluginTools=com.wiris.js.JsPluginTools.getInstance())},com.wiris.js.JsPluginTools.prototype={md5encode:function(e){return haxe.Md5.encode(e)},doLoad:function(){this.ready=!0,com.wiris.js.JsPluginTools.instance=this,com.wiris.js.JsPluginTools.bypassEncapsulation()},tryReady:function(){this.ready=!1,js.Lib.document.readyState&&(this.doLoad(),this.ready=!0),this.ready||haxe.Timer.delay($bind(this,this.tryReady),100)},__class__:com.wiris.js.JsPluginTools};var haxe=haxe||{};haxe.Log=function(){},haxe.Log.__name__=!0,haxe.Log.trace=function(e,t){js.Boot.__trace(e,t)},haxe.Log.clear=function(){js.Boot.__clear_trace()},haxe.Md5=function(){},haxe.Md5.__name__=!0,haxe.Md5.encode=function(e){return(new haxe.Md5).doEncode(e)},haxe.Md5.prototype={doEncode:function(e){for(var t=this.str2blks(e),n=1732584193,i=-271733879,r=-1732584194,a=271733878,o=0;o<t.length;){var s=n,l=i,c=r,u=a;n=this.ff(n,i,r,a,t[o],7,-680876936),a=this.ff(a,n,i,r,t[o+1],12,-389564586),r=this.ff(r,a,n,i,t[o+2],17,606105819),i=this.ff(i,r,a,n,t[o+3],22,-1044525330),n=this.ff(n,i,r,a,t[o+4],7,-176418897),a=this.ff(a,n,i,r,t[o+5],12,1200080426),r=this.ff(r,a,n,i,t[o+6],17,-1473231341),i=this.ff(i,r,a,n,t[o+7],22,-45705983),n=this.ff(n,i,r,a,t[o+8],7,1770035416),a=this.ff(a,n,i,r,t[o+9],12,-1958414417),r=this.ff(r,a,n,i,t[o+10],17,-42063),i=this.ff(i,r,a,n,t[o+11],22,-1990404162),n=this.ff(n,i,r,a,t[o+12],7,1804603682),a=this.ff(a,n,i,r,t[o+13],12,-40341101),r=this.ff(r,a,n,i,t[o+14],17,-1502002290),i=this.ff(i,r,a,n,t[o+15],22,1236535329),n=this.gg(n,i,r,a,t[o+1],5,-165796510),a=this.gg(a,n,i,r,t[o+6],9,-1069501632),r=this.gg(r,a,n,i,t[o+11],14,643717713),i=this.gg(i,r,a,n,t[o],20,-373897302),n=this.gg(n,i,r,a,t[o+5],5,-701558691),a=this.gg(a,n,i,r,t[o+10],9,38016083),r=this.gg(r,a,n,i,t[o+15],14,-660478335),i=this.gg(i,r,a,n,t[o+4],20,-405537848),n=this.gg(n,i,r,a,t[o+9],5,568446438),a=this.gg(a,n,i,r,t[o+14],9,-1019803690),r=this.gg(r,a,n,i,t[o+3],14,-187363961),i=this.gg(i,r,a,n,t[o+8],20,1163531501),n=this.gg(n,i,r,a,t[o+13],5,-1444681467),a=this.gg(a,n,i,r,t[o+2],9,-51403784),r=this.gg(r,a,n,i,t[o+7],14,1735328473),i=this.gg(i,r,a,n,t[o+12],20,-1926607734),n=this.hh(n,i,r,a,t[o+5],4,-378558),a=this.hh(a,n,i,r,t[o+8],11,-2022574463),r=this.hh(r,a,n,i,t[o+11],16,1839030562),i=this.hh(i,r,a,n,t[o+14],23,-35309556),n=this.hh(n,i,r,a,t[o+1],4,-1530992060),a=this.hh(a,n,i,r,t[o+4],11,1272893353),r=this.hh(r,a,n,i,t[o+7],16,-155497632),i=this.hh(i,r,a,n,t[o+10],23,-1094730640),n=this.hh(n,i,r,a,t[o+13],4,681279174),a=this.hh(a,n,i,r,t[o],11,-358537222),r=this.hh(r,a,n,i,t[o+3],16,-722521979),i=this.hh(i,r,a,n,t[o+6],23,76029189),n=this.hh(n,i,r,a,t[o+9],4,-640364487),a=this.hh(a,n,i,r,t[o+12],11,-421815835),r=this.hh(r,a,n,i,t[o+15],16,530742520),i=this.hh(i,r,a,n,t[o+2],23,-995338651),n=this.ii(n,i,r,a,t[o],6,-198630844),a=this.ii(a,n,i,r,t[o+7],10,1126891415),r=this.ii(r,a,n,i,t[o+14],15,-1416354905),i=this.ii(i,r,a,n,t[o+5],21,-57434055),n=this.ii(n,i,r,a,t[o+12],6,1700485571),a=this.ii(a,n,i,r,t[o+3],10,-1894986606),r=this.ii(r,a,n,i,t[o+10],15,-1051523),i=this.ii(i,r,a,n,t[o+1],21,-2054922799),n=this.ii(n,i,r,a,t[o+8],6,1873313359),a=this.ii(a,n,i,r,t[o+15],10,-30611744),r=this.ii(r,a,n,i,t[o+6],15,-1560198380),i=this.ii(i,r,a,n,t[o+13],21,1309151649),n=this.ii(n,i,r,a,t[o+4],6,-145523070),a=this.ii(a,n,i,r,t[o+11],10,-1120210379),r=this.ii(r,a,n,i,t[o+2],15,718787259),i=this.ii(i,r,a,n,t[o+9],21,-343485551),n=this.addme(n,s),i=this.addme(i,l),r=this.addme(r,c),a=this.addme(a,u),o+=16}return this.rhex(n)+this.rhex(i)+this.rhex(r)+this.rhex(a)},ii:function(e,t,n,i,r,a,o){return this.cmn(this.bitXOR(n,this.bitOR(t,~i)),e,t,r,a,o)},hh:function(e,t,n,i,r,a,o){return this.cmn(this.bitXOR(this.bitXOR(t,n),i),e,t,r,a,o)},gg:function(e,t,n,i,r,a,o){return this.cmn(this.bitOR(this.bitAND(t,i),this.bitAND(n,~i)),e,t,r,a,o)},ff:function(e,t,n,i,r,a,o){return this.cmn(this.bitOR(this.bitAND(t,n),this.bitAND(~t,i)),e,t,r,a,o)},cmn:function(e,t,n,i,r,a){return this.addme(this.rol(this.addme(this.addme(t,e),this.addme(i,a)),r),n)},rol:function(e,t){return e<<t|e>>>32-t},str2blks:function(e){for(var t=1+(e.length+8>>6),n=new Array,i=0,r=16*t;i<r;)n[a=i++]=0;for(var a=0;a<e.length;)n[a>>2]|=HxOverrides.cca(e,a)<<(8*e.length+a)%4*8,a++;n[a>>2]|=128<<(8*e.length+a)%4*8;var o=8*e.length,s=16*t-2;return n[s]=255&o,n[s]|=(o>>>8&255)<<8,n[s]|=(o>>>16&255)<<16,n[s]|=(o>>>24&255)<<24,n},rhex:function(e){for(var t="",n="0123456789abcdef",i=0;i<4;){var r=i++;t+=n.charAt(e>>8*r+4&15)+n.charAt(e>>8*r&15)}return t},addme:function(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n},bitAND:function(e,t){return(e>>>1&t>>>1)<<1|1&e&t},bitXOR:function(e,t){return(e>>>1^t>>>1)<<1|1&e^1&t},bitOR:function(e,t){return(e>>>1|t>>>1)<<1|1&e|1&t},__class__:haxe.Md5},haxe.Timer=function(e){var t=this;this.id=window.setInterval((function(){t.run()}),e)},haxe.Timer.__name__=!0,haxe.Timer.delay=function(e,t){var n=new haxe.Timer(t);return n.run=function(){n.stop(),e()},n},haxe.Timer.measure=function(e,t){var n=haxe.Timer.stamp(),i=e();return haxe.Log.trace(haxe.Timer.stamp()-n+"s",t),i},haxe.Timer.stamp=function(){return(new Date).getTime()/1e3},haxe.Timer.prototype={run:function(){},stop:function(){null!=this.id&&(window.clearInterval(this.id),this.id=null)},__class__:haxe.Timer};var js=js||{},$_;function $bind(e,t){var n=function(){return n.method.apply(n.scope,arguments)};return n.scope=e,n.method=t,n}js.Boot=function(){},js.Boot.__name__=!0,js.Boot.__unhtml=function(e){return e.split("&").join("&amp;").split("<").join("&lt;").split(">").join("&gt;")},js.Boot.__trace=function(e,t){var n,i=null!=t?t.fileName+":"+t.lineNumber+": ":"";i+=js.Boot.__string_rec(e,""),"undefined"!=typeof document&&null!=(n=document.getElementById("haxe:trace"))?n.innerHTML+=js.Boot.__unhtml(i)+"<br/>":"undefined"!=typeof console&&null!=console.log&&console.log(i)},js.Boot.__clear_trace=function(){var e=document.getElementById("haxe:trace");null!=e&&(e.innerHTML="")},js.Boot.isClass=function(e){return e.__name__},js.Boot.isEnum=function(e){return e.__ename__},js.Boot.getClass=function(e){return e.__class__},js.Boot.__string_rec=function(e,t){if(null==e)return"null";if(t.length>=5)return"<...>";var n=typeof e;switch("function"==n&&(e.__name__||e.__ename__)&&(n="object"),n){case"object":if(e instanceof Array){if(e.__enum__){if(2==e.length)return e[0];var i=e[0]+"(";t+="\t";for(var r=2,a=e.length;r<a;)i+=2!=(o=r++)?","+js.Boot.__string_rec(e[o],t):js.Boot.__string_rec(e[o],t);return i+")"}var o,s=e.length;for(i="[",t+="\t",a=0;a<s;){var l=a++;i+=(l>0?",":"")+js.Boot.__string_rec(e[l],t)}return i+"]"}var c;try{c=e.toString}catch(e){return"???"}if(null!=c&&c!=Object.toString){var u=e.toString();if("[object Object]"!=u)return u}var d=null;i="{\n",t+="\t";var m=null!=e.hasOwnProperty;for(var d in e)m&&!e.hasOwnProperty(d)||"prototype"!=d&&"__class__"!=d&&"__super__"!=d&&"__interfaces__"!=d&&"__properties__"!=d&&(2!=i.length&&(i+=", \n"),i+=t+d+" : "+js.Boot.__string_rec(e[d],t));return i+"\n"+(t=t.substring(1))+"}";case"function":return"<function>";case"string":return e;default:return String(e)}},js.Boot.__interfLoop=function(e,t){if(null==e)return!1;if(e==t)return!0;var n=e.__interfaces__;if(null!=n)for(var i=0,r=n.length;i<r;){var a=n[i++];if(a==t||js.Boot.__interfLoop(a,t))return!0}return js.Boot.__interfLoop(e.__super__,t)},js.Boot.__instanceof=function(e,t){try{if(e instanceof t)return t!=Array||null==e.__enum__;if(js.Boot.__interfLoop(e.__class__,t))return!0}catch(e){if(null==t)return!1}switch(t){case Int:return Math.ceil(e%2147483648)===e;case Float:return"number"==typeof e;case Bool:return!0===e||!1===e;case String:return"string"==typeof e;case Dynamic:return!0;default:return null!=e&&(t==Class&&null!=e.__name__||t==Enum&&null!=e.__ename__||e.__enum__==t)}},js.Boot.__cast=function(e,t){if(js.Boot.__instanceof(e,t))return e;throw"Cannot cast "+Std.string(e)+" to "+Std.string(t)},js.Lib=function(){},js.Lib.__name__=!0,js.Lib.debug=function(){},js.Lib.alert=function(e){alert(js.Boot.__string_rec(e,""))},js.Lib.eval=function(code){return eval(code)},js.Lib.setErrorHandler=function(e){js.Lib.onerror=e},Array.prototype.indexOf&&(HxOverrides.remove=function(e,t){var n=e.indexOf(t);return-1!=n&&(e.splice(n,1),!0)}),Math.__name__=["Math"],Math.NaN=Number.NaN,Math.NEGATIVE_INFINITY=Number.NEGATIVE_INFINITY,Math.POSITIVE_INFINITY=Number.POSITIVE_INFINITY,Math.isFinite=function(e){return isFinite(e)},Math.isNaN=function(e){return isNaN(e)},String.prototype.__class__=String,String.__name__=!0,Array.prototype.__class__=Array,Array.__name__=!0,Date.prototype.__class__=Date,Date.__name__=["Date"];var Int={__name__:["Int"]},Dynamic={__name__:["Dynamic"]},Float=Number;Float.__name__=["Float"];var Bool=Boolean;Bool.__ename__=["Bool"];var Class={__name__:["Class"]},Enum={},Void={__ename__:["Void"]};"undefined"!=typeof document&&(js.Lib.document=document),"undefined"!=typeof window&&(js.Lib.window=window,js.Lib.window.onerror=function(e,t,n){var i=js.Lib.onerror;return null!=i&&i(e,[t+":"+n])}),com.wiris.js.JsPluginTools.main()}(),delete Array.prototype.__class__},172:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>f});var i=n(683),r=n(699),a=n(954),o=n(975);class s{static removeImgDataAttributes(e){const t=[],{attributes:n}=e;Object.keys(n).forEach((e=>{const i=n[e];void 0!==i&&void 0!==i.name&&0===i.name.indexOf("data-")&&t.push(i.name)})),t.forEach((t=>{e.removeAttribute(t)}))}static clone(e,t){const n=o.Z.get("imageCustomEditorName");e.hasAttribute(n)||t.removeAttribute(n),[o.Z.get("imageMathmlAttribute"),n,"alt","height","width","style","src","role"].forEach((n=>{const i=e.getAttribute(n);i&&t.setAttribute(n,i)}))}static isSvg(e){return e.src.startsWith("data:image/svg+xml;")}static isBase64(e){return e.src.startsWith("data:image/svg+xml;base64,")||e.src.startsWith("data:image/png;base64,")}static setImgSize(e,t,n){let r,a,o,l;if(n)if(s.isSvg(e))if(s.isBase64(e)){a=e.src.substr(e.src.indexOf("base64,")+7,e.src.length),l="",o=i.Z.b64ToByteArray(a,a.length);for(let e=0;e<o.length;e+=1)l+=String.fromCharCode(o[e]);r=s.getMetricsFromSvgString(l)}else r=s.getMetricsFromSvgString(t);else a=e.src.substr(e.src.indexOf("base64,")+7,e.src.length),o=i.Z.b64ToByteArray(a,88),r=s.getMetricsFromBytes(o);else r=i.Z.urlToAssArray(t);let c=r.cw;if(!c)return;let u=r.ch,d=r.cb;const{dpi:m}=r;m&&(c=96*c/m,u=96*u/m,d=96*d/m),e.width=c,e.height=u,e.style.verticalAlign=`-${u-d}px`}static fixAfterResize(e){e.removeAttribute("style"),e.removeAttribute("width"),e.removeAttribute("height"),e.style.maxWidth="none";const t=e=>{if(-1!==e.src.indexOf("data:image"))if(-1!==e.src.indexOf("data:image/svg+xml"))if(-1!==e.src.indexOf("data:image/svg+xml;base64,")){const t=e.getAttribute("src").substring(26),n=window.atob(t),i=encodeURIComponent(n);e.setAttribute("src",`data:image/svg+xml;charset=utf8,${i}`);const r=decodeURIComponent(e.src.substring(32,e.src.length));s.setImgSize(e,r,!0),e.setAttribute("src",`data:image/svg+xml;base64,${t}`)}else{const t=decodeURIComponent(e.src.substring(32,e.src.length));s.setImgSize(e,t,!0)}else{const t=e.src.substring(22,e.src.length);s.setImgSize(e,t,!0)}else s.setImgSize(e,e.src)};if(-1===e.src.indexOf("blob:"))t(e);else{let n=new FileReader;n.onload=function(){e.setAttribute("src",n.result),t(e)},fetch(e.src).then((e=>e.blob())).then((e=>{n.readAsDataURL(e)}))}}static getMetricsFromSvgString(e){let t=e.indexOf('height="'),n=e.indexOf('"',t+8,e.length);const i=e.substring(t+8,n);t=e.indexOf('width="'),n=e.indexOf('"',t+7,e.length);const r=e.substring(t+7,n);t=e.indexOf('wrs:baseline="'),n=e.indexOf('"',t+14,e.length);const a=e.substring(t+14,n);if(void 0!==r){const e=[];return e.cw=r,e.ch=i,void 0!==a&&(e.cb=a),e}return[]}static getMetricsFromBytes(e){let t,n,r,a,o;for(i.Z.readBytes(e,0,8);e.length>=4;)r=i.Z.readInt32(e),1229472850===r?(t=i.Z.readInt32(e),n=i.Z.readInt32(e),i.Z.readInt32(e),i.Z.readByte(e)):1650545477===r?a=i.Z.readInt32(e):1883789683===r&&(o=i.Z.readInt32(e),o=Math.round(o/39.37),i.Z.readInt32(e),i.Z.readByte(e)),i.Z.readInt32(e);if(void 0!==t){const e=[];return e.cw=t,e.ch=n,e.dpi=o,a&&(e.cb=a),e}return[]}}var l=n(158),c=n(862),u=n(184);class d{static get cache(){return d._cache}static set cache(e){d._cache=e}static mathMLToAccessible(e,t,n){void 0===t&&(t="en"),a.default.containClass(e,"wrs_chemistry")&&(n.mode="chemistry"),n.ignoreStyles=!0;let i="";if(d.cache.get(e))i=d.cache.get(e);else{n.service="mathml2accessible",n.lang=t;const r=JSON.parse(c.Z.getService("service",n));"error"!==r.status?(i=r.result.text,d.cache.populate(e,i)):i=u.Z.get("error_convert_accessibility")}return i}}d._cache=new l.Z;var m=n(724);n(874);class f{static mathmlToImgObject(e,t,n,r){const l=e.createElement("img");l.align="middle",l.style.maxWidth="none";let u=n||{};if(u={...o.Z.get("editorParameters"),...u},u.mml=t,u.lang=r,u.metrics="true",u.centerbaseline="false","base64"===o.Z.get("saveMode")&&"default"===o.Z.get("base64savemode")&&(u.base64=!0),l.className=o.Z.get("imageClassName"),-1!==t.indexOf('class="')){let e=t.substring(t.indexOf('class="')+7,t.length);e=e.substring(0,e.indexOf('"')),e=e.substring(4,e.length),l.setAttribute(o.Z.get("imageCustomEditorName"),e)}if(!o.Z.get("wirisPluginPerformance")||"xml"!==o.Z.get("saveMode")&&"safeXml"!==o.Z.get("saveMode")){const e=f.createImageSrc(t,u);l.setAttribute(o.Z.get("imageMathmlAttribute"),a.default.safeXmlEncode(t)),l.src=e,s.setImgSize(l,e,"base64"===o.Z.get("saveMode")&&"default"===o.Z.get("base64savemode")),o.Z.get("enableAccessibility")&&(l.alt=d.mathMLToAccessible(t,r,u))}else{let e=JSON.parse(f.createShowImageSrc(u,r));if("warning"===e.status)try{e=JSON.parse(c.Z.getService("showimage",u))}catch(e){return null}({result:e}=e),"png"===e.format?l.src=`data:image/png;base64,${e.content}`:l.src=`data:image/svg+xml;charset=utf8,${i.Z.urlEncode(e.content)}`,l.setAttribute(o.Z.get("imageMathmlAttribute"),a.default.safeXmlEncode(t)),s.setImgSize(l,e.content,!0),o.Z.get("enableAccessibility")&&(void 0===e.alt?l.alt=d.mathMLToAccessible(t,r,u):l.alt=e.alt)}return void 0!==f.observer&&f.observer.observe(l),l.setAttribute("role","math"),l}static createImageSrc(e,t){"base64"===o.Z.get("saveMode")&&"default"===o.Z.get("base64savemode")&&(t.base64=!0);let n=c.Z.getService("createimage",t);if(-1!==n.indexOf("@BASE@")){const e=c.Z.getServicePath("createimage").split("/");e.pop(),n=n.split("@BASE@").join(e.join("/"))}return n}static initParse(e,t){return e=f.initParseSaveMode(e,t),f.initParseEditMode(e)}static initParseSaveMode(e,t){return o.Z.get("saveMode")&&(e=r.Z.parseMathmlToLatex(e,m.default.safeXmlCharacters),e=r.Z.parseMathmlToLatex(e,m.default.xmlCharacters),e=f.parseMathmlToImg(e,m.default.safeXmlCharacters,t),e=f.parseMathmlToImg(e,m.default.xmlCharacters,t),"base64"===o.Z.get("saveMode")&&"image"===o.Z.get("base64savemode")&&(e=f.codeImgTransform(e,"base642showimage"))),e}static initParseEditMode(e){if(-1!==o.Z.get("parseModes").indexOf("latex")){const t=i.Z.getElementsByNameFromString(e,"img",!0),n='encoding="LaTeX">';let r=0;for(let s=0;s<t.length;s+=1){const l=e.substring(t[s].start+r,t[s].end+r);if(-1!==l.indexOf(` class="${o.Z.get("imageClassName")}"`)){let c=` ${o.Z.get("imageMathmlAttribute")}="`,u=l.indexOf(c);if(-1===u&&(c=' alt="',u=l.indexOf(c)),-1!==u){u+=c.length;const o=l.indexOf('"',u),d=i.Z.htmlSanitize(a.default.safeXmlDecode(l.substring(u,o)));let m=d.indexOf(n);if(-1!==m){m+=n.length;const a=d.indexOf("</annotation>",m),o=d.substring(m,a),l=`$$${i.Z.htmlEntitiesDecode(o)}$$`,c=e.substring(0,t[s].start+r),u=e.substring(t[s].end+r);e=c+l+u,r+=l.length-(t[s].end-t[s].start)}}}}}return e}static endParse(e){const t=f.endParseEditMode(e);return f.endParseSaveMode(t)}static endParseEditMode(e){if(-1!==o.Z.get("parseModes").indexOf("latex")){let t="",n=0,s=e.indexOf("$$");for(;-1!==s;){if(t+=e.substring(n,s),n=e.indexOf("$$",s+2),-1!==n){const l=e.substring(s+2,n),c=i.Z.htmlEntitiesDecode(l);let u=i.Z.htmlSanitize(r.Z.getMathMLFromLatex(c,!0));o.Z.get("saveHandTraces")||(u=a.default.removeAnnotation(u,"application/json")),t+=u,n+=2}else t+="$$",n=s+2;s=e.indexOf("$$",n)}t+=e.substring(n,e.length),e=t}return e}static endParseSaveMode(e){return o.Z.get("saveMode")&&("safeXml"===o.Z.get("saveMode")||"xml"===o.Z.get("saveMode")?e=f.codeImgTransform(e,"img2mathml"):"base64"===o.Z.get("saveMode")&&"image"===o.Z.get("base64savemode")&&(e=f.codeImgTransform(e,"img264"))),e}static createShowImageSrcData(e,t){const n={};["mml","color","centerbaseline","zoom","dpi","fontSize","fontFamily","defaultStretchy","backgroundColor","format"].forEach((t=>{void 0!==e[t]&&(n[t]=e[t])}));const r={};return Object.keys(e).forEach((t=>{"mml"!==t&&(r[t]=e[t])})),r.formula=com.wiris.js.JsPluginTools.md5encode(i.Z.propertiesToString(n)),r.lang=void 0===t?"en":t,r.version=o.Z.get("version"),r}static createShowImageSrc(e,t){const n=this.createShowImageSrcData(e,t);return c.Z.getService("showimage",i.Z.httpBuildQuery(n),!0)}static codeImgTransform(e,t){let n="",r=0;const l=/<img/gi,c=l.source.length;for(;l.test(e);){const u=l.lastIndex-c;n+=e.substring(r,u);let d=u+1;for(;d<e.length&&r<=u;){const t=e.charAt(d);if('"'===t||"'"===t){const n=e.indexOf(t,d+1);d=-1===n?e.length:n}else">"===t&&(r=d+1);d+=1}if(r<u)return n+=e.substring(u,e.length),n;let m=e.substring(u,r);const h=i.Z.createObject(m);let p,_,g=h.getAttribute(o.Z.get("imageMathmlAttribute"));if("base642showimage"===t)null==g&&(g=h.getAttribute("alt")),g=a.default.safeXmlDecode(g),m=f.mathmlToImgObject(document,g,null,null),n+=i.Z.createObjectCode(m);else if("img2mathml"===t)o.Z.get("saveMode")&&("safeXml"===o.Z.get("saveMode")?(p=!0,_=!0):"xml"===o.Z.get("saveMode")&&(p=!0,_=!1)),n+=i.Z.getWIRISImageOutput(m,p,_);else if("img264"===t){null===g&&(g=h.getAttribute("alt")),g=a.default.safeXmlDecode(g);const e={base64:"true"};m=f.mathmlToImgObject(document,g,e,null),s.setImgSize(m,m.src,!0),n+=i.Z.createObjectCode(m)}}return n+=e.substring(r,e.length),n}static parseMathmlToImg(e,t,n){let r="";const s=`${t.tagOpener}math`,l=`${t.tagOpener}/math${t.tagCloser}`;let c=e.indexOf(s),u=0;for(;-1!==c;){r+=e.substring(u,c);const d=e.indexOf(o.Z.get("imageMathmlAttribute"));if(u=e.indexOf(l,c),-1===u?u=e.length-1:u+=-1!==d?e.indexOf("/>",c):l.length,a.default.isMathmlInAttribute(e,c)||-1!==d)r+=e.substring(c,u);else{let o=e.substring(c,u);o=t.id===m.default.safeXmlCharacters.id?a.default.safeXmlDecode(o):a.default.mathMLEntities(o),r+=i.Z.createObjectCode(f.mathmlToImgObject(document,o,null,n))}c=e.indexOf(s,u)}return r+=e.substring(u,e.length),r}}if("undefined"!=typeof MutationObserver){const e=new MutationObserver((e=>{e.forEach((e=>{e.oldValue===o.Z.get("imageClassName")&&"class"===e.attributeName&&-1===e.target.className.indexOf(o.Z.get("imageClassName"))&&(e.target.className=o.Z.get("imageClassName"))}))}));f.observer=Object.create(e),f.observer.Config={attributes:!0,attributeOldValue:!0},f.observer.observe=function(e){Object.getPrototypeOf(this).observe(e,this.Config)}}},862:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var i=n(683),r=n(975);class a{static get listeners(){return a._listeners}static addListener(e){a.listeners.add(e)}static fireEvent(e,t){a.listeners.fire(e,t)}static get parameters(){return a._parameters}static set parameters(e){a._parameters=e}static get servicePaths(){return a._servicePaths}static set servicePaths(e){a._servicePaths=e}static setServicePath(e,t){a.servicePaths[e]=t}static getServicePath(e){return a.servicePaths[e]}static get integrationPath(){return a._integrationPath}static set integrationPath(e){a._integrationPath=e}static getServerURL(){const e=window.location.href.split("/");return`${e[0]}//${e[2]}`}static init(e){a.parameters=e;let t=a.createServiceURI("configurationjs"),n=a.createServiceURI("createimage"),i=a.createServiceURI("showimage"),r=a.createServiceURI("getmathml"),o=a.createServiceURI("service");if(0===a.parameters.URI.indexOf("/")){const e=a.getServerURL();t=e+t,i=e+i,n=e+n,r=e+r,o=e+o}a.setServicePath("configurationjs",t),a.setServicePath("showimage",i),a.setServicePath("createimage",n),a.setServicePath("service",o),a.setServicePath("getmathml",r),a.setServicePath("configurationjs",t),a.listeners.fire("onInit",{})}static getUrl(e,t){const n=window.location.toString().substr(0,window.location.toString().lastIndexOf("/")+1),a=i.Z.createHttpRequest();if(a){void 0===t||void 0===t?a.open("GET",e,!1):"/"===e.substr(0,1)||"http://"===e.substr(0,7)||"https://"===e.substr(0,8)?a.open("POST",e,!1):a.open("POST",n+e,!1);let o=r.Z.get("customHeaders");return o&&(o=o.toString(),o.split(",").map((e=>e.trim().split("="))).forEach((([e,t])=>a.setRequestHeader(e,t)))),void 0!==t&&t?(a.setRequestHeader("Content-type","application/x-www-form-urlencoded; charset=UTF-8"),a.send(i.Z.httpBuildQuery(t))):a.send(null),a.responseText}return""}static getService(e,t,n){let i;if(!0===n){const n=t?`?${t}`:"",r=`${a.getServicePath(e)}${n}`;i=a.getUrl(r)}else{const n=a.getServicePath(e);i=a.getUrl(n,t)}return i}static getServerLanguageFromService(e){return-1!==e.indexOf(".php")?"php":-1!==e.indexOf(".aspx")?"aspx":-1!==e.indexOf("wirispluginengine")?"ruby":"java"}static createServiceURI(e){const t=a.serverExtension();return i.Z.concatenateUrl(a.parameters.URI,e)+t}static serverExtension(){return-1!==a.parameters.server.indexOf("php")?".php":-1!==a.parameters.server.indexOf("aspx")?".aspx":""}}a._servicePaths={},a._integrationPath="",a._listeners=new class{constructor(){this.listeners=[]}add(e){this.listeners.push(e)}fire(e,t){for(let n=0;n<this.listeners.length&&!t.cancelled;n+=1)this.listeners[n].eventName===e&&this.listeners[n].callback(t);return t.defaultPrevented}static newListener(e,t){const n={};return n.eventName=e,n.callback=t,n}},a._parameters={}},184:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const i=JSON.parse('{"ar":{"latex":"LaTeX","cancel":"إلغاء","accept":"إدراج","manual":"الدليل","insert_math":"إدراج صيغة رياضية - MathType","insert_chem":"إدراج صيغة كيميائية - ChemType","minimize":"تصغير","maximize":"تكبير","fullscreen":"ملء الشاشة","exit_fullscreen":"الخروج من ملء الشاشة","close":"إغلاق","mathtype":"MathType","title_modalwindow":"نافذة MathType مشروطة","close_modal_warning":"هل تريد المغادرة بالتأكيد؟ ستُفقد التغييرات التي أجريتها.","latex_name_label":"صيغة Latex","browser_no_compatible":"المستعرض غير متوافق مع تقنية AJAX. الرجاء استخدام أحدث إصدار من Mozilla Firefox.","error_convert_accessibility":"حدث خطأ أثناء التحويل من MathML إلى نص قابل للاستخدام.","exception_cross_site":"البرمجة النصية للمواقع المشتركة مسموح بها لـ HTTP فقط.","exception_high_surrogate":"المركّب المرتفع غير متبوع بمركّب منخفض في fixedCharCodeAt()‎","exception_string_length":"سلسلة غير صالحة. يجب أن يكون الطول من مضاعفات العدد 4","exception_key_nonobject":"Object.keys مستدعاة على غير كائن","exception_null_or_undefined":" هذا فارغ أو غير محدد","exception_not_function":" ليست دالة","exception_invalid_date_format":"تنسيق تاريخ غير صالح: ","exception_casting":"لا يمكن الصياغة ","exception_casting_to":" إلى "},"ca":{"latex":"LaTeX","cancel":"Cancel·lar","accept":"Inserir","manual":"Manual","insert_math":"Inserir fórmula matemàtica - MathType","insert_chem":"Inserir fórmula química - ChemType","minimize":"Minimitza","maximize":"Maximitza","fullscreen":"Pantalla completa","exit_fullscreen":"Sortir de la pantalla complera","close":"Tanca","mathtype":"MathType","title_modalwindow":" Finestra modal de MathType","close_modal_warning":"N\'estàs segur que vols sortir? Es perdran els canvis que has fet.","latex_name_label":"Fórmula en Latex","browser_no_compatible":"El teu navegador no és compatible amb AJAX. Si us plau, usa la darrera versió de Mozilla Firefox.","error_convert_accessibility":"Error en convertir de MathML a text accessible.","exception_cross_site":"Els scripts de llocs creuats només estan permesos per HTTP.","exception_high_surrogate":"Subrogat alt no seguit de subrogat baix a fixedCharCodeAt()","exception_string_length":"Cadena invàlida. La longitud ha de ser un múltiple de 4","exception_key_nonobject":"Object.keys anomenat a non-object","exception_null_or_undefined":" això és null o no definit","exception_not_function":" no és una funció","exception_invalid_date_format":"Format de data invàlid : ","exception_casting":"No es pot emetre ","exception_casting_to":" a "},"cs":{"latex":"LaTeX","cancel":"Storno","accept":"Vložit","manual":"Příručka","insert_math":"Vložit matematický vzorec - MathType","insert_chem":"Vložení chemického vzorce – ChemType","minimize":"Minimalizovat","maximize":"Maximalizovat","fullscreen":"Celá obrazovka","exit_fullscreen":"Opustit režim celé obrazovky","close":"Zavřít","mathtype":"MathType","title_modalwindow":"Modální okno MathType","close_modal_warning":"Opravdu chcete okno zavřít? Provedené změny budou ztraceny.","latex_name_label":"Vzorec v LaTeXu","browser_no_compatible":"Váš prohlížeč nepodporuje technologii AJAX. Použijte nejnovější verzi prohlížeče Mozilla Firefox.","error_convert_accessibility":"Při převodu kódu MathML na čitelný text došlo k chybě.","exception_cross_site":"Skriptování mezi více servery je povoleno jen v HTTP.","exception_high_surrogate":"Ve funkci fixedCharCodeAt() nenásleduje po první části kódu znaku druhá část","exception_string_length":"Neplatný řetězec. Délka musí být násobkem 4.","exception_key_nonobject":"Funkce Object.keys byla použita pro prvek, který není objektem","exception_null_or_undefined":" hodnota je null nebo není definovaná","exception_not_function":" není funkce","exception_invalid_date_format":"Neplatný formát data: ","exception_casting":"Nelze přetypovat ","exception_casting_to":" na "},"da":{"latex":"LaTeX","cancel":"Annuller","accept":"Indsæt","manual":"Brugervejledning","insert_math":"Indsæt matematisk formel - MathType","insert_chem":"Indsæt en kemisk formel - ChemType","minimize":"Minimer","maximize":"Maksimer","fullscreen":"Fuld skærm","exit_fullscreen":"Afslut Fuld skærm","close":"Luk","mathtype":"MathType","title_modalwindow":"MathType-modalvindue","close_modal_warning":"Er du sikker på, du vil lukke? Dine ændringer går tabt.","latex_name_label":"LaTex-formel","browser_no_compatible":"Din browser er ikke kompatibel med AJAX-teknologi. Brug den nyeste version af Mozilla Firefox.","error_convert_accessibility":"Fejl under konvertering fra MathML til tilgængelig tekst.","exception_cross_site":"Scripts på tværs af websteder er kun tilladt for HTTP.","exception_high_surrogate":"Et højt erstatningstegn er ikke fulgt af et lavt erstatningstegn i fixedCharCodeAt()","exception_string_length":"Ugyldig streng. Længden skal være et multiplum af 4","exception_key_nonobject":"Object.keys kaldet ved ikke-objekt","exception_null_or_undefined":" dette er nul eller ikke defineret","exception_not_function":" er ikke en funktion","exception_invalid_date_format":"Ugyldigt datoformat: ","exception_casting":"Kan ikke beregne ","exception_casting_to":" til "},"de":{"latex":"LaTeX","cancel":"Abbrechen","accept":"Einfügen","manual":"Handbuch","insert_math":"Mathematische Formel einfügen - MathType","insert_chem":"Eine chemische Formel einfügen – ChemType","minimize":"Verkleinern","maximize":"Vergrößern","fullscreen":"Vollbild","exit_fullscreen":"Vollbild schließen","close":"Schließen","mathtype":"MathType","title_modalwindow":"Modales MathType-Fenster","close_modal_warning":"Bist du sicher, dass du das Programm verlassen willst? Alle vorgenommenen Änderungen gehen damit verloren.","latex_name_label":"Latex-Formel","browser_no_compatible":"Dein Browser ist nicht mit der AJAX-Technologie kompatibel. Verwende bitte die neueste Version von Mozilla Firefox.","error_convert_accessibility":"Fehler beim Konvertieren von MathML in barrierefreien Text.","exception_cross_site":"Cross-Site-Scripting ist nur bei HTTP zulässig.","exception_high_surrogate":"Hoher Ersatz bei bei festerZeichenkodierungbei() nicht von niedrigem Ersatz befolgt.","exception_string_length":"Ungültige Zeichenfolge. Länge muss ein Vielfaches von 4 sein.","exception_key_nonobject":"Object.keys wurde für ein Nicht-Objekt aufgerufen.","exception_null_or_undefined":" Das ist Null oder nicht definiert.","exception_not_function":" ist keine Funktion","exception_invalid_date_format":"Ungültiges Datumsformat: ","exception_casting":"Umwandlung nicht möglich ","exception_casting_to":" zu "},"el":{"latex":"LaTeX","cancel":"Άκυρο","accept":"Εισαγωγή","manual":"Χειροκίνητα","insert_math":"Εισαγωγή μαθηματικού τύπου - MathType","insert_chem":"Εισαγωγή χημικού τύπου - ChemType","minimize":"Ελαχιστοποίηση","maximize":"Μεγιστοποίηση","fullscreen":"Πλήρης οθόνη","exit_fullscreen":"Έξοδος από πλήρη οθόνη","close":"Κλείσιμο","mathtype":"MathType","title_modalwindow":"Τροπικό παράθυρο MathType","close_modal_warning":"Επιθυμείτε σίγουρα αποχώρηση; Θα χαθούν οι αλλαγές που έχετε κάνει.","latex_name_label":"Τύπος LaTeX","browser_no_compatible":"Το πρόγραμμα περιήγησής σας δεν είναι συμβατό με την τεχνολογία AJAX. Χρησιμοποιήστε την πιο πρόσφατη έκδοση του Mozilla Firefox.","error_convert_accessibility":"Σφάλμα κατά τη μετατροπή από MathML σε προσβάσιμο κείμενο.","exception_cross_site":"Το XSS (Cross site scripting) επιτρέπεται μόνο για HTTP.","exception_high_surrogate":"Το υψηλό υποκατάστατο δεν ακολουθείται από χαμηλό υποκατάστατο στο fixedCharCodeAt()","exception_string_length":"Μη έγκυρη συμβολοσειρά. Το μήκος πρέπει να είναι πολλαπλάσιο του 4","exception_key_nonobject":"Έγινε κλήση του Object.keys σε μη αντικείμενο","exception_null_or_undefined":" αυτό είναι μηδενικό ή δεν έχει οριστεί","exception_not_function":" δεν είναι συνάρτηση","exception_invalid_date_format":"Μη έγκυρη μορφή ημερομηνίας: ","exception_casting":"Δεν είναι δυνατή η μετατροπή ","exception_casting_to":" σε "},"en":{"latex":"LaTeX","cancel":"Cancel","accept":"Insert","manual":"Manual","insert_math":"Insert a math equation - MathType","insert_chem":"Insert a chemistry formula - ChemType","minimize":"Minimize","maximize":"Maximize","fullscreen":"Full-screen","exit_fullscreen":"Exit full-screen","close":"Close","mathtype":"MathType","title_modalwindow":"MathType modal window","close_modal_warning":"Are you sure you want to leave? The changes you made will be lost.","latex_name_label":"Latex Formula","browser_no_compatible":"Your browser is not compatible with AJAX technology. Please, use the latest version of Mozilla Firefox.","error_convert_accessibility":"Error converting from MathML to accessible text.","exception_cross_site":"Cross site scripting is only allowed for HTTP.","exception_high_surrogate":"High surrogate not followed by low surrogate in fixedCharCodeAt()","exception_string_length":"Invalid string. Length must be a multiple of 4","exception_key_nonobject":"Object.keys called on non-object","exception_null_or_undefined":" this is null or not defined","exception_not_function":" is not a function","exception_invalid_date_format":"Invalid date format : ","exception_casting":"Cannot cast ","exception_casting_to":" to "},"es":{"latex":"LaTeX","cancel":"Cancelar","accept":"Insertar","manual":"Manual","insert_math":"Insertar fórmula matemática - MathType","insert_chem":"Insertar fórmula química - ChemType","minimize":"Minimizar","maximize":"Maximizar","fullscreen":"Pantalla completa","exit_fullscreen":"Salir de pantalla completa","close":"Cerrar","mathtype":"MathType","title_modalwindow":"Ventana modal de MathType","close_modal_warning":"Seguro que quieres cerrar? Los cambios que has hecho se perderán","latex_name_label":"Formula en Latex","browser_no_compatible":"Tu navegador no es complatible con AJAX. Por favor, usa la última version de Mozilla Firefox.","error_convert_accessibility":"Error conviertiendo una fórmula MathML a texto accesible.","exception_cross_site":"Cross site scripting solo está permitido para HTTP.","exception_high_surrogate":"Subrogado alto no seguido por subrogado bajo en fixedCharCodeAt()","exception_string_length":"Cadena no válida. La longitud debe ser múltiplo de 4","exception_key_nonobject":"Object.keys called on non-object","exception_null_or_undefined":" esto es null o no definido","exception_not_function":" no es una función","exception_invalid_date_format":"Formato de fecha inválido: ","exception_casting":"No se puede emitir","exception_casting_to":" a "},"et":{"latex":"LaTeX","cancel":"Loobu","accept":"Lisa","manual":"Käsiraamat","insert_math":"Lisa matemaatiline valem – WIRIS","insert_chem":"Lisa keemiline valem – ChemType","minimize":"Minimeeri","maximize":"Maksimeeri","fullscreen":"Täiskuva","exit_fullscreen":"Välju täiskuvalt","close":"Sule","mathtype":"MathType","title_modalwindow":"MathType\'i modaalaken","close_modal_warning":"Kas soovite kindlasti lahkuda? Tehtud muudatused lähevad kaduma.","latex_name_label":"Latexi valem","browser_no_compatible":"Teie brauser ei ühildu AJAXi tehnoloogiaga. Palun kasutage Mozilla Firefoxi uusimat versiooni.","error_convert_accessibility":"Tõrge teisendamisel MathML-ist muudetavaks tekstiks.","exception_cross_site":"Ristskriptimine on lubatud ainult HTTP kasutamisel.","exception_high_surrogate":"Funktsioonis fixedCharCodeAt() ei järgne kõrgemale asendusliikmele madalam asendusliige.","exception_string_length":"Vigane string. Pikkus peab olema 4 kordne.","exception_key_nonobject":"Protseduur Object.keys kutsuti mitteobjekti korral.","exception_null_or_undefined":" see on null või määramata","exception_not_function":" ei ole funktsioon","exception_invalid_date_format":"Sobimatu kuupäeva kuju: ","exception_casting":"Esitamine ei õnnestu ","exception_casting_to":" – "},"eu":{"latex":"LaTeX","cancel":"Ezeztatu","accept":"Txertatu","manual":"Gida","insert_math":"Txertatu matematikako formula - MathType","insert_chem":"Txertatu formula kimiko bat - ChemType","minimize":"Ikonotu","maximize":"Maximizatu","fullscreen":"Pantaila osoa","exit_fullscreen":"Irten pantaila osotik","close":"Itxi","mathtype":"MathType","title_modalwindow":"MathType leiho modala","close_modal_warning":"Ziur irten nahi duzula? Egiten dituzun aldaketak galdu egingo dira.","latex_name_label":"LaTex Formula","browser_no_compatible":"Zure arakatzailea ez da bateragarria AJAX teknologiarekin. Erabili Mozilla Firefoxen azken bertsioa.","error_convert_accessibility":"Errorea MathMLtik testu irisgarrira bihurtzean.","exception_cross_site":"Gune arteko scriptak HTTPrako soilik onartzen dira.","exception_high_surrogate":"Ordezko baxuak ez dio ordezko altuari jarraitzen, hemen: fixedCharCodeAt()","exception_string_length":"Kate baliogabea. Luzerak 4ren multiploa izan behar du","exception_key_nonobject":"Object.keys deitu zaio objektua ez den zerbaiti","exception_null_or_undefined":" nulua edo definitu gabea da","exception_not_function":" ez da funtzio bat","exception_invalid_date_format":"Data-formatu baliogabea : ","exception_casting":"Ezin da igorri ","exception_casting_to":" honi "},"fi":{"latex":"LaTeX","cancel":"Peruuta","accept":"Lisää","manual":"Manual","insert_math":"Liitä matemaattinen kaava - MathType","insert_chem":"Lisää kemian kaava - ChemType","minimize":"Pienennä","maximize":"Suurenna","fullscreen":"Koko ruutu","exit_fullscreen":"Poistu koko ruudun tilasta","close":"Sulje","mathtype":"MathType","title_modalwindow":"MathTypen modaalinen ikkuna","close_modal_warning":"Oletko varma, että haluat poistua? Menetät tekemäsi muutokset.","latex_name_label":"Latex-kaava","browser_no_compatible":"Selaimesi ei tue AJAX-tekniikkaa. Ole hyvä ja käytä uusinta Firefox-versiota.","error_convert_accessibility":"Virhe muunnettaessa MathML:stä tekstiksi.","exception_cross_site":"Cross site scripting sallitaan vain HTTP:llä.","exception_high_surrogate":"fixedCharCodeAt(): yläsijaismerkkiä ei seurannut alasijaismerkki","exception_string_length":"Epäkelpo merkkijono. Pituuden on oltava 4:n kerrannainen","exception_key_nonobject":"Object.keys kutsui muuta kuin oliota","exception_null_or_undefined":" tämä on null tai ei määritelty","exception_not_function":" ei ole funktio","exception_invalid_date_format":"Virheellinen päivämäärämuoto : ","exception_casting":"Ei voida muuntaa tyyppiä ","exception_casting_to":" tyyppiin "},"fr":{"latex":"LaTeX","cancel":"Annuler","accept":"Insérer","manual":"Manuel","insert_math":"Insérer une formule mathématique - MathType","insert_chem":"Insérer une formule chimique - ChemType","minimize":"Minimiser","maximize":"Maximiser","fullscreen":"Plein écran","exit_fullscreen":"Quitter le plein écran","close":"Fermer","mathtype":"MathType","title_modalwindow":"Fenêtre modale MathType","close_modal_warning":"Confirmez-vous vouloir fermer ? Les changements effectués seront perdus.","latex_name_label":"Formule LaTeX","browser_no_compatible":"Votre navigateur n’est pas compatible avec la technologie AJAX. Veuillez utiliser la dernière version de Mozilla Firefox.","error_convert_accessibility":"Une erreur de conversion du format MathML en texte accessible est survenue.","exception_cross_site":"Le cross-site scripting n’est autorisé que pour HTTP.","exception_high_surrogate":"Substitut élevé non suivi d’un substitut inférieur dans fixedCharCodeAt()","exception_string_length":"Chaîne non valide. Longueur limitée aux multiples de 4","exception_key_nonobject":"Object.keys appelé sur un non-objet","exception_null_or_undefined":" nul ou non défini","exception_not_function":" n’est pas une fonction","exception_invalid_date_format":"Format de date non valide : ","exception_casting":"Impossible de convertir ","exception_casting_to":" sur "},"gl":{"latex":"LaTeX","cancel":"Cancelar","accept":"Inserir","manual":"Manual","insert_math":"Inserir unha fórmula matemática - MathType","insert_chem":"Inserir unha fórmula química - ChemType","minimize":"Minimizar","maximize":"Maximizar","fullscreen":"Pantalla completa","exit_fullscreen":"Saír da pantalla completa","close":"Pechar","mathtype":"MathType","title_modalwindow":"Ventá modal de MathType","close_modal_warning":"Seguro que quere saír? Perderanse os cambios realizados.","latex_name_label":"Fórmula Latex","browser_no_compatible":"O seu explorador non é compatible coa tecnoloxía AJAX. Use a versión máis recente de Mozilla Firefox.","error_convert_accessibility":"Erro ao converter de MathML a texto accesible.","exception_cross_site":"Os scripts de sitios só se permiten para HTTP.","exception_high_surrogate":"Suplente superior non seguido por suplente inferior en fixedCharCodeAt()","exception_string_length":"Cadea non válida. A lonxitude debe ser un múltiplo de 4","exception_key_nonobject":"Claves de obxecto chamadas en non obxecto","exception_null_or_undefined":" nulo ou non definido","exception_not_function":" non é unha función","exception_invalid_date_format":"Formato de data non válido: ","exception_casting":"Non se pode converter ","exception_casting_to":" a "},"he":{"latex":"LaTeX","cancel":"ביטול","accept":"עדכון","manual":"ידני","insert_math":"הוספת נוסחה מתמטית - MathType","insert_chem":"הוספת כתיבה כימית - ChemType","minimize":"מזערי","maximize":"מרבי","fullscreen":"מסך מלא","exit_fullscreen":"יציאה ממצב מסך מלא","close":"סגירה","mathtype":"MathType","title_modalwindow":"חלון מודאלי של MathType","close_modal_warning":"האם לצאת? שינויים אשר בוצעו ימחקו.","latex_name_label":"נוסחת Latex","browser_no_compatible":"הדפדפן שלך אינו תואם לטכנולוגיית AJAX. יש להשתמש בגרסה העדכנית ביותר של Mozilla Firefox.","error_convert_accessibility":"שגיאה בהמרה מ-MathML לטקסט נגיש.","exception_cross_site":"סקריפטינג חוצה-אתרים מורשה עבור HTTP בלבד.","exception_high_surrogate":"ערך ממלא מקום גבוה אינו מופיע אחרי ערך ממלא מקום נמוך ב-fixedCharCodeAt()‎","exception_string_length":"מחרוזת לא חוקית. האורך חייב להיות כפולה של 4","exception_key_nonobject":"בוצעה קריאה אל Object.keys ברכיב שאינו אובייקט","exception_null_or_undefined":" הוא Null או לא מוגדר","exception_not_function":"איננה פונקציה","exception_invalid_date_format":"תסדיר תאריך אינו תקין : ","exception_casting":"לא ניתן להמיר ","exception_casting_to":" ל "},"hr":{"latex":"LaTeX","cancel":"Poništi","accept":"Umetni","manual":"Priručnik","insert_math":"Umetnite matematičku formulu - MathType","insert_chem":"Umetnite kemijsku formulu - ChemType","minimize":"Minimiziraj","maximize":"Maksimiziraj","fullscreen":"Cijeli zaslon","exit_fullscreen":"Izlaz iz prikaza na cijelom zaslonu","close":"Zatvori","mathtype":"MathType","title_modalwindow":"MathType modalni prozor","close_modal_warning":"Sigurno želite zatvoriti? Izgubit će se unesene promjene.","latex_name_label":"Latex formula","browser_no_compatible":"Vaš preglednik nije kompatibilan s AJAX tehnologijom. Upotrijebite najnoviju verziju Mozilla Firefoxa.","error_convert_accessibility":"Pogreška konverzije iz MathML-a u dostupni tekst.","exception_cross_site":"Skriptiranje na različitim web-mjestima dopušteno je samo za HTTP.","exception_high_surrogate":"Iza visoke zamjene ne slijedi niska zamjena u fixedCharCodeAt()","exception_string_length":"Nevažeći niz. Duljina mora biti višekratnik broja 4","exception_key_nonobject":"Object.keys pozvano na ne-objekt","exception_null_or_undefined":" ovo je nula ili nije definirano","exception_not_function":" nije funkcija","exception_invalid_date_format":"Nevažeći format datuma : ","exception_casting":"Ne može se poslati ","exception_casting_to":" na "},"hu":{"latex":"LaTeX","cancel":"Mégsem","accept":"Beszúrás","manual":"Kézikönyv","insert_math":"Matematikai képlet beszúrása - MathType","insert_chem":"Kémiai képet beillesztése - ChemType","minimize":"Kis méret","maximize":"Nagy méret","fullscreen":"Teljes képernyő","exit_fullscreen":"Teljes képernyő elhagyása","close":"Bezárás","mathtype":"MathType","title_modalwindow":"MathType modális ablak","close_modal_warning":"Biztosan kilép? A módosítások el fognak veszni.","latex_name_label":"Latex képlet","browser_no_compatible":"A böngészője nem kompatibilis az AJAX technológiával. Használja a Mozilla Firefox legújabb verzióját.","error_convert_accessibility":"Hiba lépett fel a MathML szöveggé történő konvertálása során.","exception_cross_site":"Az oldalak közti scriptelés csak HTTP esetén engedélyezett.","exception_high_surrogate":"A magas helyettesítő karaktert nem alacsony helyettesítő karakter követi a fixedCharCodeAt() esetében","exception_string_length":"Érvénytelen karakterlánc. A hossznak a 4 többszörösének kell lennie","exception_key_nonobject":"Az Object.keys egy nem objektumra került meghívásra","exception_null_or_undefined":" null vagy nem definiált","exception_not_function":" nem függvény","exception_invalid_date_format":"Érvénytelen dátumformátum: ","exception_casting":"Nem alkalmazható ","exception_casting_to":" erre "},"id":{"latex":"LaTeX","cancel":"Membatalkan","accept":"Masukkan","manual":"Manual","insert_math":"Masukkan rumus matematika - MathType","insert_chem":"Masukkan rumus kimia - ChemType","minimize":"Minikan","maximize":"Perbesar","fullscreen":"Layar penuh","exit_fullscreen":"Keluar layar penuh","close":"Tutup","mathtype":"MathType","title_modalwindow":"Jendela modal MathType","close_modal_warning":"Anda yakin ingin keluar? Anda akan kehilangan perubahan yang Anda buat.","latex_name_label":"Rumus Latex","browser_no_compatible":"Penjelajah Anda tidak kompatibel dengan teknologi AJAX. Harap gunakan Mozilla Firefox versi terbaru.","error_convert_accessibility":"Kesalahan konversi dari MathML menjadi teks yang dapat diakses.","exception_cross_site":"Skrip lintas situs hanya diizinkan untuk HTTP.","exception_high_surrogate":"Pengganti tinggi tidak diikuti oleh pengganti rendah di fixedCharCodeAt()","exception_string_length":"String tidak valid. Panjang harus kelipatan 4","exception_key_nonobject":"Object.keys meminta nonobjek","exception_null_or_undefined":" ini tidak berlaku atau tidak didefinisikan","exception_not_function":" bukan sebuah fungsi","exception_invalid_date_format":"Format tanggal tidak valid : ","exception_casting":"Tidak dapat mentransmisikan ","exception_casting_to":" untuk "},"it":{"latex":"LaTeX","cancel":"Annulla","accept":"Inserisci","manual":"Manuale","insert_math":"Inserisci una formula matematica - MathType","insert_chem":"Inserisci una formula chimica - ChemType","minimize":"Riduci a icona","maximize":"Ingrandisci","fullscreen":"Schermo intero","exit_fullscreen":"Esci da schermo intero","close":"Chiudi","mathtype":"MathType","title_modalwindow":"Finestra modale di MathType","close_modal_warning":"Confermi di voler uscire? Le modifiche effettuate andranno perse.","latex_name_label":"Formula LaTeX","browser_no_compatible":"Il tuo browser non è compatibile con la tecnologia AJAX. Utilizza la versione più recente di Mozilla Firefox.","error_convert_accessibility":"Errore durante la conversione da MathML in testo accessibile.","exception_cross_site":"Lo scripting tra siti è consentito solo per HTTP.","exception_high_surrogate":"Surrogato alto non seguito da surrogato basso in fixedCharCodeAt()","exception_string_length":"Stringa non valida. La lunghezza deve essere un multiplo di 4","exception_key_nonobject":"Metodo Object.keys richiamato in un elemento non oggetto","exception_null_or_undefined":" questo è un valore null o non definito","exception_not_function":" non è una funzione","exception_invalid_date_format":"Formato di data non valido: ","exception_casting":"Impossibile eseguire il cast ","exception_casting_to":" a "},"ja":{"latex":"LaTeX","cancel":"キャンセル","accept":"挿入","manual":"マニュアル","insert_math":"数式を挿入 - MathType","insert_chem":"化学式を挿入 - ChemType","minimize":"最小化","maximize":"最大化","fullscreen":"全画面表示","exit_fullscreen":"全画面表示を解除","close":"閉じる","mathtype":"MathType","title_modalwindow":"MathType モードウィンドウ","close_modal_warning":"このページから移動してもよろしいですか?変更内容は失われます。","latex_name_label":"LaTeX 数式","browser_no_compatible":"お使いのブラウザは、AJAX 技術と互換性がありません。Mozilla Firefox の最新バージョンをご使用ください。","error_convert_accessibility":"MathML からアクセシブルなテキストへの変換中にエラーが発生しました。","exception_cross_site":"クロスサイトスクリプティングは、HTTP のみに許可されています。","exception_high_surrogate":"fixedCharCodeAt()で上位サロゲートの後に下位サロゲートがありません","exception_string_length":"無効な文字列です。長さは4の倍数である必要があります","exception_key_nonobject":"Object.keys が非オブジェクトで呼び出されました","exception_null_or_undefined":" null であるか、定義されていません","exception_not_function":" は関数ではありません","exception_invalid_date_format":"無効な日付形式: ","exception_casting":"次にキャスト ","exception_casting_to":" できません "},"ko":{"latex":"LaTeX","cancel":"취소","accept":"삽입","manual":"설명서","insert_math":"수학 공식 삽입 - MathType","insert_chem":"화학 공식 입력하기 - ChemType","minimize":"최소화","maximize":"최대화","fullscreen":"전체 화면","exit_fullscreen":"전체 화면 나가기","close":"닫기","mathtype":"MathType","title_modalwindow":"MathType 모달 창","close_modal_warning":"정말로 나가시겠습니까? 변경 사항이 손실됩니다.","latex_name_label":"Latex 공식","browser_no_compatible":"사용자의 브라우저는 AJAX 기술과 호환되지 않습니다. Mozilla Firefox 최신 버전을 사용하십시오.","error_convert_accessibility":"MathML로부터 접근 가능한 텍스트로 오류 변환.","exception_cross_site":"사이트 교차 스크립팅은 HTTP 환경에서만 사용할 수 있습니다.","exception_high_surrogate":"fixedCharCodeAt()에서는 상위 서러게이트 뒤에 하위 서러게이트가 붙지 않습니다","exception_string_length":"유효하지 않은 스트링입니다. 길이는 4의 배수여야 합니다","exception_key_nonobject":"Object.keys가 non-object를 요청하였습니다","exception_null_or_undefined":" Null값이거나 정의되지 않았습니다","exception_not_function":" 함수가 아닙니다","exception_invalid_date_format":"유효하지 않은 날짜 포맷 : ","exception_casting":"캐스팅할 수 없습니다 ","exception_casting_to":" (으)로 "},"nl":{"latex":"LaTeX","cancel":"Annuleren","insert_chem":"Een scheikundige formule invoegen - ChemType","minimize":"Minimaliseer","maximize":"Maximaliseer","fullscreen":"Schermvullend","exit_fullscreen":"Verlaat volledig scherm","close":"Sluit","mathtype":"MathType","title_modalwindow":"Modaal venster MathType","close_modal_warning":"Weet je zeker dat je de app wilt sluiten? De gemaakte wijzigingen gaan verloren.","latex_name_label":"LaTeX-formule","browser_no_compatible":"Je browser is niet compatibel met AJAX-technologie. Gebruik de meest recente versie van Mozilla Firefox.","error_convert_accessibility":"Fout bij conversie van MathML naar toegankelijke tekst.","exception_cross_site":"Cross-site scripting is alleen toegestaan voor HTTP.","exception_high_surrogate":"Hoog surrogaat niet gevolgd door laag surrogaat in fixedCharCodeAt()","exception_string_length":"Ongeldige tekenreeks. Lengte moet een veelvoud van 4 zijn","exception_key_nonobject":"Object.keys opgeroepen voor niet-object","exception_null_or_undefined":" dit is nul of niet gedefinieerd","exception_not_function":" is geen functie","exception_invalid_date_format":"Ongeldige datumnotatie: ","exception_casting":"Kan niet weergeven ","exception_casting_to":" op "},"no":{"latex":"LaTeX","cancel":"Avbryt","accept":"Set inn","manual":"Håndbok","insert_math":"Sett inn matematikkformel - MathType","insert_chem":"Set inn ein kjemisk formel – ChemType","minimize":"Minimer","maximize":"Maksimer","fullscreen":"Fullskjerm","exit_fullscreen":"Avslutt fullskjerm","close":"Lukk","mathtype":"MathType","title_modalwindow":"Modalt MathType-vindu","close_modal_warning":"Er du sikker på at du vil gå ut? Endringane du har gjort, vil gå tapt.","latex_name_label":"LaTeX-formel","browser_no_compatible":"Nettlesaren er ikkje kompatibel med AJAX-teknologien. Bruk den nyaste versjonen av Mozilla Firefox.","error_convert_accessibility":"Feil under konvertering frå MathML til tilgjengeleg tekst.","exception_cross_site":"Skripting på tvers av nettstadar er bere tillaten med HTTP.","exception_high_surrogate":"Høgt surrogat er ikkje etterfølgt av lågt surrogat i fixedCharCodeAt()","exception_string_length":"Ugyldig streng. Lengda må vera deleleg på 4","exception_key_nonobject":"Object.keys kalla på eit ikkje-objekt","exception_null_or_undefined":" dette er null eller ikkje definert","exception_not_function":" er ikkje ein funksjon","exception_invalid_date_format":"Ugyldig datoformat: ","exception_casting":"Kan ikkje bruka casting ","exception_casting_to":" til "},"nb":{"latex":"LaTeX","cancel":"Avbryt","accept":"Insert","manual":"Håndbok","insert_math":"Sett inn matematikkformel - MathType","insert_chem":"Sett inn en kjemisk formel – ChemType","minimize":"Minimer","maximize":"Maksimer","fullscreen":"Fullskjerm","exit_fullscreen":"Avslutt fullskjerm","close":"Lukk","mathtype":"MathType","title_modalwindow":"Modalt MathType-vindu","close_modal_warning":"Er du sikker på at du vil gå ut? Endringene du har gjort, vil gå tapt.","latex_name_label":"LaTeX-formel","browser_no_compatible":"Nettleseren er ikke kompatibel med AJAX-teknologien. Bruk den nyeste versjonen av Mozilla Firefox.","error_convert_accessibility":"Feil under konvertering fra MathML til tilgjengelig tekst.","exception_cross_site":"Skripting på tvers av nettsteder er bare tillatt med HTTP.","exception_high_surrogate":"Høyt surrogat etterfølges ikke av lavt surrogat i fixedCharCodeAt()","exception_string_length":"Ugyldig streng. Lengden må være delelig på 4","exception_key_nonobject":"Object.keys kalte på et ikke-objekt","exception_null_or_undefined":" dette er null eller ikke definert","exception_not_function":" er ikke en funksjon","exception_invalid_date_format":"Ugyldig datoformat: ","exception_casting":"Kan ikke bruke casting ","exception_casting_to":" til "},"nn":{"latex":"LaTeX","cancel":"Avbryt","accept":"Set inn","manual":"Håndbok","insert_math":"Sett inn matematikkformel - MathType","insert_chem":"Set inn ein kjemisk formel – ChemType","minimize":"Minimer","maximize":"Maksimer","fullscreen":"Fullskjerm","exit_fullscreen":"Avslutt fullskjerm","close":"Lukk","mathtype":"MathType","title_modalwindow":"Modalt MathType-vindu","close_modal_warning":"Er du sikker på at du vil gå ut? Endringane du har gjort, vil gå tapt.","latex_name_label":"LaTeX-formel","browser_no_compatible":"Nettlesaren er ikkje kompatibel med AJAX-teknologien. Bruk den nyaste versjonen av Mozilla Firefox.","error_convert_accessibility":"Feil under konvertering frå MathML til tilgjengeleg tekst.","exception_cross_site":"Skripting på tvers av nettstadar er bere tillaten med HTTP.","exception_high_surrogate":"Høgt surrogat er ikkje etterfølgt av lågt surrogat i fixedCharCodeAt()","exception_string_length":"Ugyldig streng. Lengda må vera deleleg på 4","exception_key_nonobject":"Object.keys kalla på eit ikkje-objekt","exception_null_or_undefined":" dette er null eller ikkje definert","exception_not_function":" er ikkje ein funksjon","exception_invalid_date_format":"Ugyldig datoformat: ","exception_casting":"Kan ikkje bruka casting ","exception_casting_to":" til "},"pl":{"latex":"LaTeX","cancel":"Anuluj","accept":"Wstaw","manual":"Instrukcja","insert_math":"Wstaw formułę matematyczną - MathType","insert_chem":"Wstaw wzór chemiczny — ChemType","minimize":"Minimalizuj","maximize":"Maksymalizuj","fullscreen":"Pełny ekran","exit_fullscreen":"Opuść tryb pełnoekranowy","close":"Zamknij","mathtype":"MathType","title_modalwindow":"Okno modalne MathType","close_modal_warning":"Czy na pewno chcesz zamknąć? Wprowadzone zmiany zostaną utracone.","latex_name_label":"Wzór Latex","browser_no_compatible":"Twoja przeglądarka jest niezgodna z technologią AJAX Użyj najnowszej wersji Mozilla Firefox.","error_convert_accessibility":"Błąd podczas konwertowania z formatu MathML na dostępny tekst.","exception_cross_site":"Krzyżowanie skryptów witryny jest dozwolone tylko dla HTTP.","exception_high_surrogate":"Brak niskiego surogatu po wysokim surogacie w fixedCharCodeAt()","exception_string_length":"Niewłaściwy ciąg znaków. Długość musi być wielokrotnością liczby 4.","exception_key_nonobject":"Argumentem wywołanej funkcji Object.key nie jest obiekt.","exception_null_or_undefined":" jest zerowy lub niezdefiniowany","exception_not_function":" nie jest funkcją","exception_invalid_date_format":"Nieprawidłowy format daty: ","exception_casting":"Nie można rzutować ","exception_casting_to":" na "},"pt":{"latex":"LaTeX","cancel":"Cancelar","accept":"Inserir","manual":"Manual","insert_math":"Inserir fórmula matemática - MathType","insert_chem":"Inserir uma fórmula química - ChemType","minimize":"Minimizar","maximize":"Maximizar","fullscreen":"Ecrã completo","exit_fullscreen":"Sair do ecrã completo","close":"Fechar","mathtype":"MathType","title_modalwindow":"Janela modal do MathType","close_modal_warning":"Pretende sair? As alterações efetuadas serão perdidas.","latex_name_label":"Fórmula Latex","browser_no_compatible":"O seu navegador não é compatível com a tecnologia AJAX. Utilize a versão mais recente do Mozilla Firefox.","error_convert_accessibility":"Erro ao converter de MathML para texto acessível.","exception_cross_site":"O processamento de scripts em vários sites só é permitido para HTTP.","exception_high_surrogate":"Substituto alto não seguido por um substituto baixo em fixedCharCodeAt()","exception_string_length":"Cadeia inválida. O comprimento tem de ser um múltiplo de 4","exception_key_nonobject":"Object.keys chamou um não-objeto","exception_null_or_undefined":" é nulo ou não está definido","exception_not_function":" não é uma função","exception_invalid_date_format":"Formato de data inválido: ","exception_casting":"Não é possível adicionar ","exception_casting_to":" até "},"pt_br":{"latex":"LaTeX","cancel":"Cancelar","accept":"Inserir","manual":"Manual","insert_math":"Inserir fórmula matemática - MathType","insert_chem":"Insira uma fórmula química - ChemType","minimize":"Minimizar","maximize":"Maximizar","fullscreen":"Tela cheia","exit_fullscreen":"Sair de tela cheia","close":"Fechar","mathtype":"MathType","title_modalwindow":"Janela modal do MathType","close_modal_warning":"Tem certeza de que deseja sair? Todas as alterações serão perdidas.","latex_name_label":"Fórmula LaTeX","browser_no_compatible":"O navegador não é compatível com a tecnologia AJAX. Use a versão mais recente do Mozilla Firefox.","error_convert_accessibility":"Erro ao converter de MathML para texto acessível.","exception_cross_site":"O uso de scripts entre sites só é permitido para HTTP.","exception_high_surrogate":"High surrogate não seguido de low surrogate em fixedCharCodeAt()","exception_string_length":"String inválida. O comprimento deve ser um múltiplo de 4","exception_key_nonobject":"Object.keys chamados em não objeto","exception_null_or_undefined":" isto é nulo ou não definido","exception_not_function":" não é uma função","exception_invalid_date_format":"Formato de data inválido: ","exception_casting":"Não é possível transmitir ","exception_casting_to":" para "},"ro":{"latex":"LaTeX","cancel":"Anulare","accept":"Inserați","manual":"Ghid","insert_math":"Inserați o formulă matematică - MathType","insert_chem":"Inserați o formulă chimică - ChemType","minimize":"Minimizați","maximize":"Maximizați","fullscreen":"Afișați pe tot ecranul","exit_fullscreen":"Opriți afișarea pe tot ecranul","close":"Închideți","mathtype":"MathType","title_modalwindow":"Fereastră modală MathType","close_modal_warning":"Sigur doriți să ieșiți? Modificările realizate se vor pierde.","latex_name_label":"Formulă Latex","browser_no_compatible":"Browserul dvs. nu este compatibil cu tehnologia AJAX. Utilizați cea mai recentă versiune de Mozilla Firefox.","error_convert_accessibility":"Eroare la convertirea din MathML în text accesibil.","exception_cross_site":"Scriptarea între site‑uri este permisă doar pentru HTTP.","exception_high_surrogate":"Surogatul superior nu este urmat de un surogat inferior în fixedCharCodeAt()","exception_string_length":"Șir nevalid. Lungimea trebuie să fie multiplu de 4","exception_key_nonobject":"Object.keys a apelat un non-obiect","exception_null_or_undefined":" este null sau nu este definit","exception_not_function":" nu este funcție","exception_invalid_date_format":"Format de dată nevalid: ","exception_casting":"nu se poate difuza ","exception_casting_to":" către "},"ru":{"latex":"LaTeX","cancel":"отмена","accept":"Вставка","manual":"вручную","insert_math":"Вставить математическую формулу: WIRIS","insert_chem":"Вставить химическую формулу — ChemType","minimize":"Свернуть","maximize":"Развернуть","fullscreen":"На весь экран","exit_fullscreen":"Выйти из полноэкранного режима","close":"Закрыть","mathtype":"MathType","title_modalwindow":"Режимное окно MathType","close_modal_warning":"Вы уверены, что хотите выйти? Все внесенные изменения будут утрачены.","latex_name_label":"Формула Latex","browser_no_compatible":"Ваш браузер несовместим с технологией AJAX. Используйте последнюю версию Mozilla Firefox.","error_convert_accessibility":"При преобразовании формулы в текст допустимого формата произошла ошибка.","exception_cross_site":"Межсайтовые сценарии доступны только для HTTP.","exception_high_surrogate":"Младший символ-заместитель не сопровождает старший символ-заместитель в исправленном методе CharCodeAt()","exception_string_length":"Недопустимая строка. Длинна должна быть кратной 4.","exception_key_nonobject":"Метод Object.keys вызван не для объекта","exception_null_or_undefined":" значение пустое или не определено","exception_not_function":" не функция","exception_invalid_date_format":"Недопустимый формат даты: ","exception_casting":"Не удается привести ","exception_casting_to":" к "},"sv":{"latex":"LaTeX","cancel":"Avbryt","accept":"Infoga","manual":"Bruksanvisning","insert_math":"Infoga matematisk formel - MathType","insert_chem":"Infoga en kemiformel – ChemType","minimize":"Minimera","maximize":"Maximera","fullscreen":"Helskärm","exit_fullscreen":"Stäng helskärm","close":"Stäng","mathtype":"MathType","title_modalwindow":"MathType modulfönster","close_modal_warning":"Vill du avsluta? Inga ändringar kommer att sparas.","latex_name_label":"Latex-formel","browser_no_compatible":"Din webbläsare är inte kompatibel med AJAX-teknik. Använd den senaste versionen av Mozilla Firefox.","error_convert_accessibility":"Det uppstod ett fel vid konvertering från MathML till åtkomlig text.","exception_cross_site":"Skriptkörning över flera sajter är endast tillåtet för HTTP.","exception_high_surrogate":"Hög surrogat följs inte av låg surrogat i fixedCharCodeAt()","exception_string_length":"Ogiltig sträng. Längden måste vara en multipel av 4","exception_key_nonobject":"Object.keys anropade icke-objekt","exception_null_or_undefined":" det är null eller inte definierat","exception_not_function":" är inte en funktion","exception_invalid_date_format":"Ogiltigt datumformat: ","exception_casting":"Går inte att konvertera ","exception_casting_to":" till "},"tr":{"latex":"LaTeX","cancel":"Vazgeç","accept":"Ekle","manual":"Kılavuz","insert_math":"Matematik formülü ekle - MathType","insert_chem":"Kimya formülü ekleyin - ChemType","minimize":"Simge Durumuna Küçült","maximize":"Ekranı Kapla","fullscreen":"Tam Ekran","exit_fullscreen":"Tam Ekrandan Çık","close":"Kapat","mathtype":"MathType","title_modalwindow":"MathType kalıcı penceresi","close_modal_warning":"Çıkmak istediğinizden emin misiniz? Yaptığınız değişiklikler kaybolacak.","latex_name_label":"Latex Formülü","browser_no_compatible":"Tarayıcınız AJAX teknolojisiyle uyumlu değil. Lütfen en güncel Mozilla Firefox sürümünü kullanın.","error_convert_accessibility":"MathML biçiminden erişilebilir metne dönüştürme hatası.","exception_cross_site":"Siteler arası komut dosyası yazma işlemine yalnızca HTTP için izin verilir.","exception_high_surrogate":"fixedCharCodeAt() fonksiyonunda üst vekilin ardından alt vekil gelmiyor","exception_string_length":"Geçersiz dizgi. Uzunluk, 4\'ün katlarından biri olmalıdır","exception_key_nonobject":"Nesne olmayan öğe üzerinde Object.keys çağrıldı","exception_null_or_undefined":" bu değer boş veya tanımlanmamış","exception_not_function":" bir fonksiyon değil","exception_invalid_date_format":"Geçersiz tarih biçimi: ","exception_casting":"Tür dönüştürülemiyor ","exception_casting_to":" hedef: "},"zh":{"latex":"LaTeX","cancel":"取消","accept":"插入","manual":"手册","insert_math":"插入数学公式 - MathType","insert_chem":"插入化学分子式 - ChemType","minimize":"最小化","maximize":"最大化","fullscreen":"全屏幕","exit_fullscreen":"退出全屏幕","close":"关闭","mathtype":"MathType","title_modalwindow":"MathType 模式窗口","close_modal_warning":"您确定要离开吗?您所做的修改将丢失。","latex_name_label":"Latex 分子式","browser_no_compatible":"您的浏览器不兼容 AJAX 技术。请使用最新版 Mozilla Firefox。","error_convert_accessibility":"将 MathML 转换为可访问文本时出错。","exception_cross_site":"仅 HTTP 允许跨站脚本。","exception_high_surrogate":"fixedCharCodeAt() 中的高位代理之后未跟随低位代理","exception_string_length":"无效字符串。长度必须是 4 的倍数","exception_key_nonobject":"非对象调用了 Object.keys","exception_null_or_undefined":" 该值为空或未定义","exception_not_function":" 不是一个函数","exception_invalid_date_format":"无效日期格式: ","exception_casting":"无法转换 ","exception_casting_to":" 为 "},"":{}}');class r{constructor(){throw new Error("Static class StringManager can not be instantiated.")}static get(e,t){let{language:n}=this;return t&&(n=t),n&&n.length>2&&(n=n.slice(0,2)),this.strings.hasOwnProperty(n)||(console.warn(`Unknown language ${n} set in StringManager.`),n="en"),this.strings[n].hasOwnProperty(e)?this.strings[n][e]:(console.warn(`Unknown key ${e} for language ${n} in StringManager.`),e)}}r.strings=i,r.language="en"},158:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});class i{constructor(){this.cache=[]}populate(e,t){this.cache[e]=t}get(e){return!!Object.prototype.hasOwnProperty.call(this.cache,e)&&this.cache[e]}}},683:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var i=n(368),r=n.n(i),a=n(954),o=n(975),s=n(699),l=n(184);class c{static fireEvent(e,t){if(document.createEvent){const n=document.createEvent("HTMLEvents");return n.initEvent(t,!0,!0),!e.dispatchEvent(n)}const n=document.createEventObject();return e.fireEvent(`on${t}`,n)}static addEvent(e,t,n){e.addEventListener?e.addEventListener(t,n,!0):e.attachEvent&&e.attachEvent(`on${t}`,n)}static removeEvent(e,t,n){e.removeEventListener?e.removeEventListener(t,n,!0):e.detachEvent&&e.detachEvent(`on${t}`,n)}static addElementEvents(e,t,n,i){t&&(this.callbackDblclick=e=>{const n=e||window.event,i=n.srcElement?n.srcElement:n.target;t(i,n)},c.addEvent(e,"dblclick",this.callbackDblclick)),n&&(this.callbackMousedown=e=>{const t=e||window.event,i=t.srcElement?t.srcElement:t.target;n(i,t)},c.addEvent(e,"mousedown",this.callbackMousedown)),i&&(this.callbackMouseup=e=>{const t=e||window.event,n=t.srcElement?t.srcElement:t.target;i(n,t)},c.addEvent(document,"mouseup",this.callbackMouseup),c.addEvent(e,"mouseup",this.callbackMouseup))}static removeElementEvents(e){c.removeEvent(e,"dblclick",this.callbackDblclick),c.removeEvent(e,"mousedown",this.callbackMousedown),c.removeEvent(document,"mouseup",this.callbackMouseup),c.removeEvent(e,"mouseup",this.callbackMouseup)}static addClass(e,t){c.containsClass(e,t)||(e.className+=` ${t}`)}static containsClass(e,t){if(null==e||!("className"in e))return!1;const n=e.className.split(" ");for(let e=n.length-1;e>=0;e-=1)if(n[e]===t)return!0;return!1}static removeClass(e,t){let n="";const i=e.className.split(" ");for(let e=0;e<i.length;e+=1)i[e]!==t&&(n+=`${i[e]} `);e.className=n.trim()}static convertOldXmlinitialtextAttribute(e){const t=e.indexOf("xmlinitialtext"),n=e.indexOf("value=",t),i=e.charAt(n+6),r=n+6+1,a=e.indexOf(i,r),o=e.substring(r,a);let s=o.split("«").join("§lt;");return s=s.split("»").join("§gt;"),s=s.split("&").join("§"),s=s.split("¨").join("§quot;"),e.split(o).join(s)}static createElement(e,t,n){let i;void 0===t&&(t={}),void 0===n&&(n=document);try{let r=`<${e}`;Object.keys(t).forEach((e=>{r+=` ${e}="${c.htmlEntities(t[e])}"`})),r+=">",i=n.createElement(r)}catch(r){i=n.createElement(e),Object.keys(t).forEach((e=>{i.setAttribute(e,t[e])}))}return i}static createObject(e,t){void 0===t&&(t=document),e=(e=(e=(e=e.split("<applet ").join('<span wirisObject="WirisApplet" ').split("<APPLET ").join('<span wirisObject="WirisApplet" ')).split("</applet>").join("</span>").split("</APPLET>").join("</span>")).split("<param ").join('<br wirisObject="WirisParam" ').split("<PARAM ").join('<br wirisObject="WirisParam" ')).split("</param>").join("</br>").split("</PARAM>").join("</br>");const n=c.createElement("div",{},t);return n.innerHTML=e,function e(n){if(n.getAttribute&&"WirisParam"===n.getAttribute("wirisObject")){const e={};for(let t=0;t<n.attributes.length;t+=1)null!==n.attributes[t].nodeValue&&(e[n.attributes[t].nodeName]=n.attributes[t].nodeValue);const i=c.createElement("param",e,t);i.NAME&&(i.name=i.NAME,i.value=i.VALUE),i.removeAttribute("wirisObject"),n.parentNode.replaceChild(i,n)}else if(n.getAttribute&&"WirisApplet"===n.getAttribute("wirisObject")){const i={};for(let e=0;e<n.attributes.length;e+=1)null!==n.attributes[e].nodeValue&&(i[n.attributes[e].nodeName]=n.attributes[e].nodeValue);const r=c.createElement("applet",i,t);r.removeAttribute("wirisObject");for(let t=0;t<n.childNodes.length;t+=1)e(n.childNodes[t]),"param"===n.childNodes[t].nodeName.toLowerCase()&&(r.appendChild(n.childNodes[t]),t-=1);n.parentNode.replaceChild(r,n)}else for(let t=0;t<n.childNodes.length;t+=1)e(n.childNodes[t])}(n),n.firstChild}static createObjectCode(e){if(null==e)return null;if(1===e.nodeType){let t=`<${e.tagName}`;for(let n=0;n<e.attributes.length;n+=1)e.attributes[n].specified&&(t+=` ${e.attributes[n].name}="${c.htmlEntities(e.attributes[n].value)}"`);if(e.childNodes.length>0){t+=">";for(let n=0;n<e.childNodes.length;n+=1)t+=c.createObject(e.childNodes[n]);t+=`</${e.tagName}>`}else"DIV"===e.nodeName||"SCRIPT"===e.nodeName?t+=`></${e.tagName}>`:t+="/>";return t}return 3===e.nodeType?c.htmlEntities(e.nodeValue):""}static concatenateUrl(e,t){let n="";return e.indexOf("/")!==e.length&&0!==t.indexOf("/")&&(n="/"),(e+n+t).replace(/([^:]\/)\/+/g,"$1")}static htmlEntities(e){return e.split("&").join("&amp;").split("<").join("&lt;").split(">").join("&gt;").split('"').join("&quot;")}static htmlSanitize(e){let t=/\<annotation.+\<\/annotation\>/,n=e.match(t);return(e=r().sanitize(e,{ADD_TAGS:["semantics","annotation"],ALLOWED_ATTR:["mathvariant","class","linebreak","open","close"]})).replace(t,n)}static htmlEntitiesDecode(e){const t=document.createElement("textarea");return t.innerHTML=e,t.value}static createHttpRequest(){if("file://"===window.location.toString().substr(0,window.location.toString().lastIndexOf("/")+1).substr(0,7))throw l.Z.get("exception_cross_site");if("undefined"!=typeof XMLHttpRequest)return new XMLHttpRequest;try{return new ActiveXObject("Msxml2.XMLHTTP")}catch(e){try{return new ActiveXObject("Microsoft.XMLHTTP")}catch(e){return null}}}static httpBuildQuery(e){let t="";return Object.keys(e).forEach((n=>{null!=e[n]&&(t+=`${c.urlEncode(n)}=${c.urlEncode(e[n])}&`)})),"&"===t.substring(t.length-1)&&(t=t.substring(0,t.length-1)),t}static propertiesToString(e){const t=[];Object.keys(e).forEach((n=>{Object.prototype.hasOwnProperty.call(e,n)&&t.push(n)}));const n=t.length;for(let e=0;e<n;e+=1)for(let i=e+1;i<n;i+=1){const n=t[e],r=t[i];c.compareStrings(n,r)>0&&(t[e]=r,t[i]=n)}let i="";for(let r=0;r<n;r+=1){const n=t[r];i+=n,i+="=";let a=e[n];a=a.replace("\\","\\\\"),a=a.replace("\n","\\n"),a=a.replace("\r","\\r"),a=a.replace("\t","\\t"),i+=a,i+="\n"}return i}static compareStrings(e,t){let n;const i=e.length,r=t.length,a=i>r?r:i;for(n=0;n<a;n+=1){const i=c.fixedCharCodeAt(e,n)-c.fixedCharCodeAt(t,n);if(0!==i)return i}return e.length-t.length}static fixedCharCodeAt(e,t){t=t||0;const n=e.charCodeAt(t);let i,r;if(n>=55296&&n<=56319){if(i=n,r=e.charCodeAt(t+1),Number.isNaN(r))throw l.Z.get("exception_high_surrogate");return 1024*(i-55296)+(r-56320)+65536}return!(n>=56320&&n<=57343)&&n}static urlToAssArray(e){let t;if(t=e.indexOf("?"),t>0){const n=e.substring(t+1).split("&"),i={};for(t=0;t<n.length;t+=1){const e=n[t].split("=");e.length>1&&(i[e[0]]=decodeURIComponent(e[1].replace(/\+/g," ")))}return i}return{}}static urlEncode(e){let t="";return t=encodeURIComponent(e),t}static getWIRISImageOutput(e,t,n){const i=c.createObject(e);if(i&&(i.className===o.Z.get("imageClassName")||i.getAttribute(o.Z.get("imageMathmlAttribute")))){if(!t)return e;const r=i.getAttribute(o.Z.get("imageMathmlAttribute"));let s=a.default.safeXmlDecode(r);return o.Z.get("saveHandTraces")||(s=a.default.removeAnnotation(s,"application/json")),null==s&&(s=i.getAttribute("alt")),n?a.default.safeXmlEncode(s):s}return e}static getNodeLength(e){const t={IMG:1,BR:1};if(3===e.nodeType)return e.nodeValue.length;if(1===e.nodeType){let n=t[e.nodeName.toUpperCase()];void 0===n&&(n=0);for(let t=0;t<e.childNodes.length;t+=1)n+=c.getNodeLength(e.childNodes[t]);return n}return 0}static getSelectedItem(e,t,n){let i;if(t?(i=e.contentWindow,i.focus()):(i=window,e.focus()),document.selection&&!n){const n=i.document.selection.createRange();if(n.parentElement){if(n.htmlText.length>0)return 0===n.text.length?c.getSelectedItem(e,t,!0):null;i.document.execCommand("InsertImage",!1,"#");let r,a,o=n.parentElement();return"IMG"!==o.nodeName.toUpperCase()&&(n.pasteHTML('<span id="wrs_openEditorWindow_temporalObject"></span>'),o=i.document.getElementById("wrs_openEditorWindow_temporalObject")),o.nextSibling&&3===o.nextSibling.nodeType?(r=o.nextSibling,a=0):o.previousSibling&&3===o.previousSibling.nodeType?(r=o.previousSibling,a=r.nodeValue.length):(r=i.document.createTextNode(""),o.parentNode.insertBefore(r,o),a=0),o.parentNode.removeChild(o),{node:r,caretPosition:a}}return n.length>1?null:{node:n.item(0)}}if(i.getSelection){let a;const o=i.getSelection();try{a=o.getRangeAt(0)}catch(e){a=i.document.createRange()}const s=a.startContainer;if(3===s.nodeType)return{node:s,caretPosition:a.startOffset};if(s!==a.endContainer)return null;if(1===s.nodeType){const i=a.startOffset;if(s.childNodes[i]){if(a.startOffset===a.endOffset){if(0!==i&&"span"===s.childNodes[i-1].localName&&s.childNodes[i].classList.contains("Wirisformula"))return s.childNodes[i-1].remove(),c.getSelectedItem(e,t,n);if(s.childNodes[i].classList?.contains("Wirisformula")&&(i>0&&s.childNodes[i-1].classList.contains("Wirisformula")||0===i)){var r=document.createElement("span");return s.insertBefore(r,s.childNodes[i]),{node:s.childNodes[i]}}}return{node:s.childNodes[i]}}}}return null}static getSelectedItemOnTextarea(e){const t=document.createTextNode(e.value),n=s.Z.getLatexFromTextNode(t,e.selectionStart);return null===n?null:{node:t,caretPosition:e.selectionStart,startPosition:n.startPosition,endPosition:n.endPosition}}static getElementsByNameFromString(e,t,n){const i=[];e=e.toLowerCase(),t=t.toLowerCase();let r=e.indexOf(`<${t} `);for(;-1!==r;){let a;a=n?">":`</${t}>`;let o=e.indexOf(a,r);-1!==o?(o+=a.length,i.push({start:r,end:o})):o=r+1,r=e.indexOf(`<${t} `,o)}return i}static decode64(e){const t="+".charCodeAt(0),n="/".charCodeAt(0),i="0".charCodeAt(0),r="a".charCodeAt(0),a="A".charCodeAt(0),o="-".charCodeAt(0),s="_".charCodeAt(0),l=e.charCodeAt(0);return l===t||l===o?62:l===n||l===s?63:l<i?-1:l<i+10?l-i+26+26:l<a+26?l-a:l<r+26?l-r+26:null}static b64ToByteArray(e,t){let n;if(e.length%4>0)throw new Error("Invalid string. Length must be a multiple of 4");const i=[];let r,a,o;for(t?r=t:(a="="===e.charAt(e.length-2)?2:"="===e.charAt(e.length-1)?1:0,r=a>0?e.length-4:e.length),o=0;o<r;o+=4)n=c.decode64(e.charAt(o))<<18|c.decode64(e.charAt(o+1))<<12|c.decode64(e.charAt(o+2))<<6|c.decode64(e.charAt(o+3)),i.push(n>>16&255),i.push(n>>8&255),i.push(255&n);return a&&(2===a?(n=c.decode64(e.charAt(o))<<2|c.decode64(e.charAt(o+1))>>4,i.push(255&n)):1===a&&(n=c.decode64(e.charAt(o))<<10|c.decode64(e.charAt(o+1))<<4|c.decode64(e.charAt(o+2))>>2,i.push(n>>8&255),i.push(255&n))),i}static readInt32(e){if(e.length<4)return!1;const t=e.splice(0,4);return t[0]<<24|t[1]<<16|t[2]<<8|t[3]<<0}static readByte(e){return e.shift()<<0}static readBytes(e,t,n){return e.splice(t,n)}static updateTextArea(e,t){if(e&&t)if(e.focus(),null!=e.selectionStart){const{selectionEnd:n}=e,i=e.value.substring(0,e.selectionStart),r=e.value.substring(n,e.value.length);e.value=i+t+r,e.selectionEnd=n+t.length}else document.selection.createRange().text=t}static updateExistingTextOnTextarea(e,t,n,i){e.focus();const r=e.value.substring(0,n);e.value=r+t+e.value.substring(i,e.value.length),e.selectionEnd=n+t.length}static addArgument(e,t,n){let i;return i=e.indexOf("?")>0?"&":"?",`${e+i+t}=${n}`}}}},__webpack_module_cache__={};function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var n=__webpack_module_cache__[e]={exports:{}};return __webpack_modules__[e].call(n.exports,n,n.exports,__webpack_require__),n.exports}__webpack_require__.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return __webpack_require__.d(t,{a:t}),t},__webpack_require__.d=(e,t)=>{for(var n in t)__webpack_require__.o(t,n)&&!__webpack_require__.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__=__webpack_require__(701)})();
2
+ (()=>{var __webpack_modules__={651:function(e){e.exports=function(){"use strict";function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}function t(e,n){return t=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},t(e,n)}function n(e,i,r){return n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}()?Reflect.construct:function(e,n,i){var r=[null];r.push.apply(r,n);var a=new(Function.bind.apply(e,r));return i&&t(a,i.prototype),a},n.apply(null,arguments)}function i(e){return function(e){if(Array.isArray(e))return r(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var a=Object.hasOwnProperty,o=Object.setPrototypeOf,s=Object.isFrozen,l=Object.getPrototypeOf,c=Object.getOwnPropertyDescriptor,u=Object.freeze,d=Object.seal,m=Object.create,h="undefined"!=typeof Reflect&&Reflect,f=h.apply,p=h.construct;f||(f=function(e,t,n){return e.apply(t,n)}),u||(u=function(e){return e}),d||(d=function(e){return e}),p||(p=function(e,t){return n(e,i(t))});var _,g=O(Array.prototype.forEach),b=O(Array.prototype.pop),v=O(Array.prototype.push),x=O(String.prototype.toLowerCase),y=O(String.prototype.toString),w=O(String.prototype.match),k=O(String.prototype.replace),T=O(String.prototype.indexOf),A=O(String.prototype.trim),M=O(RegExp.prototype.test),j=(_=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return p(_,t)});function O(e){return function(t){for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];return f(e,t,i)}}function S(e,t,n){var i;n=null!==(i=n)&&void 0!==i?i:x,o&&o(e,null);for(var r=t.length;r--;){var a=t[r];if("string"==typeof a){var l=n(a);l!==a&&(s(t)||(t[r]=l),a=l)}e[a]=!0}return e}function C(e){var t,n=m(null);for(t in e)!0===f(a,e,[t])&&(n[t]=e[t]);return n}function E(e,t){for(;null!==e;){var n=c(e,t);if(n){if(n.get)return O(n.get);if("function"==typeof n.value)return O(n.value)}e=l(e)}return function(e){return console.warn("fallback value for",e),null}}var L=u(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),N=u(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),z=u(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),I=u(["animate","color-profile","cursor","discard","fedropshadow","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),P=u(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover"]),F=u(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),R=u(["#text"]),D=u(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),B=u(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),X=u(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),H=u(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),$=d(/\{\{[\w\W]*|[\w\W]*\}\}/gm),U=d(/<%[\w\W]*|[\w\W]*%>/gm),J=d(/\${[\w\W]*}/gm),V=d(/^data-[\-\w.\u00B7-\uFFFF]/),q=d(/^aria-[\-\w]+$/),W=d(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),G=d(/^(?:\w+script|data):/i),Q=d(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),K=d(/^html$/i),Y=function(){return"undefined"==typeof window?null:window};return function t(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Y(),r=function(e){return t(e)};if(r.version="2.4.7",r.removed=[],!n||!n.document||9!==n.document.nodeType)return r.isSupported=!1,r;var a=n.document,o=n.document,s=n.DocumentFragment,l=n.HTMLTemplateElement,c=n.Node,d=n.Element,m=n.NodeFilter,h=n.NamedNodeMap,f=void 0===h?n.NamedNodeMap||n.MozNamedAttrMap:h,p=n.HTMLFormElement,_=n.DOMParser,O=n.trustedTypes,Z=d.prototype,ee=E(Z,"cloneNode"),te=E(Z,"nextSibling"),ne=E(Z,"childNodes"),ie=E(Z,"parentNode");if("function"==typeof l){var re=o.createElement("template");re.content&&re.content.ownerDocument&&(o=re.content.ownerDocument)}var ae=function(t,n){if("object"!==e(t)||"function"!=typeof t.createPolicy)return null;var i=null,r="data-tt-policy-suffix";n.currentScript&&n.currentScript.hasAttribute(r)&&(i=n.currentScript.getAttribute(r));var a="dompurify"+(i?"#"+i:"");try{return t.createPolicy(a,{createHTML:function(e){return e},createScriptURL:function(e){return e}})}catch(e){return console.warn("TrustedTypes policy "+a+" could not be created."),null}}(O,a),oe=ae?ae.createHTML(""):"",se=o,le=se.implementation,ce=se.createNodeIterator,ue=se.createDocumentFragment,de=se.getElementsByTagName,me=a.importNode,he={};try{he=C(o).documentMode?o.documentMode:{}}catch(e){}var fe={};r.isSupported="function"==typeof ie&&le&&void 0!==le.createHTMLDocument&&9!==he;var pe,_e,ge=$,be=U,ve=J,xe=V,ye=q,we=G,ke=Q,Te=W,Ae=null,Me=S({},[].concat(i(L),i(N),i(z),i(P),i(R))),je=null,Oe=S({},[].concat(i(D),i(B),i(X),i(H))),Se=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Ce=null,Ee=null,Le=!0,Ne=!0,ze=!1,Ie=!0,Pe=!1,Fe=!1,Re=!1,De=!1,Be=!1,Xe=!1,He=!1,$e=!0,Ue=!1,Je=!0,Ve=!1,qe={},We=null,Ge=S({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),Qe=null,Ke=S({},["audio","video","img","source","image","track"]),Ye=null,Ze=S({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),et="http://www.w3.org/1998/Math/MathML",tt="http://www.w3.org/2000/svg",nt="http://www.w3.org/1999/xhtml",it=nt,rt=!1,at=null,ot=S({},[et,tt,nt],y),st=["application/xhtml+xml","text/html"],lt=null,ct=o.createElement("form"),ut=function(e){return e instanceof RegExp||e instanceof Function},dt=function(t){lt&&lt===t||(t&&"object"===e(t)||(t={}),t=C(t),pe=pe=-1===st.indexOf(t.PARSER_MEDIA_TYPE)?"text/html":t.PARSER_MEDIA_TYPE,_e="application/xhtml+xml"===pe?y:x,Ae="ALLOWED_TAGS"in t?S({},t.ALLOWED_TAGS,_e):Me,je="ALLOWED_ATTR"in t?S({},t.ALLOWED_ATTR,_e):Oe,at="ALLOWED_NAMESPACES"in t?S({},t.ALLOWED_NAMESPACES,y):ot,Ye="ADD_URI_SAFE_ATTR"in t?S(C(Ze),t.ADD_URI_SAFE_ATTR,_e):Ze,Qe="ADD_DATA_URI_TAGS"in t?S(C(Ke),t.ADD_DATA_URI_TAGS,_e):Ke,We="FORBID_CONTENTS"in t?S({},t.FORBID_CONTENTS,_e):Ge,Ce="FORBID_TAGS"in t?S({},t.FORBID_TAGS,_e):{},Ee="FORBID_ATTR"in t?S({},t.FORBID_ATTR,_e):{},qe="USE_PROFILES"in t&&t.USE_PROFILES,Le=!1!==t.ALLOW_ARIA_ATTR,Ne=!1!==t.ALLOW_DATA_ATTR,ze=t.ALLOW_UNKNOWN_PROTOCOLS||!1,Ie=!1!==t.ALLOW_SELF_CLOSE_IN_ATTR,Pe=t.SAFE_FOR_TEMPLATES||!1,Fe=t.WHOLE_DOCUMENT||!1,Be=t.RETURN_DOM||!1,Xe=t.RETURN_DOM_FRAGMENT||!1,He=t.RETURN_TRUSTED_TYPE||!1,De=t.FORCE_BODY||!1,$e=!1!==t.SANITIZE_DOM,Ue=t.SANITIZE_NAMED_PROPS||!1,Je=!1!==t.KEEP_CONTENT,Ve=t.IN_PLACE||!1,Te=t.ALLOWED_URI_REGEXP||Te,it=t.NAMESPACE||nt,Se=t.CUSTOM_ELEMENT_HANDLING||{},t.CUSTOM_ELEMENT_HANDLING&&ut(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Se.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),t.CUSTOM_ELEMENT_HANDLING&&ut(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Se.attributeNameCheck=t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),t.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Se.allowCustomizedBuiltInElements=t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Pe&&(Ne=!1),Xe&&(Be=!0),qe&&(Ae=S({},i(R)),je=[],!0===qe.html&&(S(Ae,L),S(je,D)),!0===qe.svg&&(S(Ae,N),S(je,B),S(je,H)),!0===qe.svgFilters&&(S(Ae,z),S(je,B),S(je,H)),!0===qe.mathMl&&(S(Ae,P),S(je,X),S(je,H))),t.ADD_TAGS&&(Ae===Me&&(Ae=C(Ae)),S(Ae,t.ADD_TAGS,_e)),t.ADD_ATTR&&(je===Oe&&(je=C(je)),S(je,t.ADD_ATTR,_e)),t.ADD_URI_SAFE_ATTR&&S(Ye,t.ADD_URI_SAFE_ATTR,_e),t.FORBID_CONTENTS&&(We===Ge&&(We=C(We)),S(We,t.FORBID_CONTENTS,_e)),Je&&(Ae["#text"]=!0),Fe&&S(Ae,["html","head","body"]),Ae.table&&(S(Ae,["tbody"]),delete Ce.tbody),u&&u(t),lt=t)},mt=S({},["mi","mo","mn","ms","mtext"]),ht=S({},["foreignobject","desc","title","annotation-xml"]),ft=S({},["title","style","font","a","script"]),pt=S({},N);S(pt,z),S(pt,I);var _t=S({},P);S(_t,F);var gt=function(e){v(r.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){try{e.outerHTML=oe}catch(t){e.remove()}}},bt=function(e,t){try{v(r.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){v(r.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!je[e])if(Be||Xe)try{gt(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},vt=function(e){var t,n;if(De)e="<remove></remove>"+e;else{var i=w(e,/^[\r\n\t ]+/);n=i&&i[0]}"application/xhtml+xml"===pe&&it===nt&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");var r=ae?ae.createHTML(e):e;if(it===nt)try{t=(new _).parseFromString(r,pe)}catch(e){}if(!t||!t.documentElement){t=le.createDocument(it,"template",null);try{t.documentElement.innerHTML=rt?oe:r}catch(e){}}var a=t.body||t.documentElement;return e&&n&&a.insertBefore(o.createTextNode(n),a.childNodes[0]||null),it===nt?de.call(t,Fe?"html":"body")[0]:Fe?t.documentElement:a},xt=function(e){return ce.call(e.ownerDocument||e,e,m.SHOW_ELEMENT|m.SHOW_COMMENT|m.SHOW_TEXT,null,!1)},yt=function(t){return"object"===e(c)?t instanceof c:t&&"object"===e(t)&&"number"==typeof t.nodeType&&"string"==typeof t.nodeName},wt=function(e,t,n){fe[e]&&g(fe[e],(function(e){e.call(r,t,n,lt)}))},kt=function(e){var t,n;if(wt("beforeSanitizeElements",e,null),(n=e)instanceof p&&("string"!=typeof n.nodeName||"string"!=typeof n.textContent||"function"!=typeof n.removeChild||!(n.attributes instanceof f)||"function"!=typeof n.removeAttribute||"function"!=typeof n.setAttribute||"string"!=typeof n.namespaceURI||"function"!=typeof n.insertBefore||"function"!=typeof n.hasChildNodes))return gt(e),!0;if(M(/[\u0080-\uFFFF]/,e.nodeName))return gt(e),!0;var i=_e(e.nodeName);if(wt("uponSanitizeElement",e,{tagName:i,allowedTags:Ae}),e.hasChildNodes()&&!yt(e.firstElementChild)&&(!yt(e.content)||!yt(e.content.firstElementChild))&&M(/<[/\w]/g,e.innerHTML)&&M(/<[/\w]/g,e.textContent))return gt(e),!0;if("select"===i&&M(/<template/i,e.innerHTML))return gt(e),!0;if(!Ae[i]||Ce[i]){if(!Ce[i]&&At(i)){if(Se.tagNameCheck instanceof RegExp&&M(Se.tagNameCheck,i))return!1;if(Se.tagNameCheck instanceof Function&&Se.tagNameCheck(i))return!1}if(Je&&!We[i]){var a=ie(e)||e.parentNode,o=ne(e)||e.childNodes;if(o&&a)for(var s=o.length-1;s>=0;--s)a.insertBefore(ee(o[s],!0),te(e))}return gt(e),!0}return e instanceof d&&!function(e){var t=ie(e);t&&t.tagName||(t={namespaceURI:it,tagName:"template"});var n=x(e.tagName),i=x(t.tagName);return!!at[e.namespaceURI]&&(e.namespaceURI===tt?t.namespaceURI===nt?"svg"===n:t.namespaceURI===et?"svg"===n&&("annotation-xml"===i||mt[i]):Boolean(pt[n]):e.namespaceURI===et?t.namespaceURI===nt?"math"===n:t.namespaceURI===tt?"math"===n&&ht[i]:Boolean(_t[n]):e.namespaceURI===nt?!(t.namespaceURI===tt&&!ht[i])&&!(t.namespaceURI===et&&!mt[i])&&!_t[n]&&(ft[n]||!pt[n]):!("application/xhtml+xml"!==pe||!at[e.namespaceURI]))}(e)?(gt(e),!0):"noscript"!==i&&"noembed"!==i&&"noframes"!==i||!M(/<\/no(script|embed|frames)/i,e.innerHTML)?(Pe&&3===e.nodeType&&(t=e.textContent,t=k(t,ge," "),t=k(t,be," "),t=k(t,ve," "),e.textContent!==t&&(v(r.removed,{element:e.cloneNode()}),e.textContent=t)),wt("afterSanitizeElements",e,null),!1):(gt(e),!0)},Tt=function(e,t,n){if($e&&("id"===t||"name"===t)&&(n in o||n in ct))return!1;if(Ne&&!Ee[t]&&M(xe,t));else if(Le&&M(ye,t));else if(!je[t]||Ee[t]){if(!(At(e)&&(Se.tagNameCheck instanceof RegExp&&M(Se.tagNameCheck,e)||Se.tagNameCheck instanceof Function&&Se.tagNameCheck(e))&&(Se.attributeNameCheck instanceof RegExp&&M(Se.attributeNameCheck,t)||Se.attributeNameCheck instanceof Function&&Se.attributeNameCheck(t))||"is"===t&&Se.allowCustomizedBuiltInElements&&(Se.tagNameCheck instanceof RegExp&&M(Se.tagNameCheck,n)||Se.tagNameCheck instanceof Function&&Se.tagNameCheck(n))))return!1}else if(Ye[t]);else if(M(Te,k(n,ke,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==T(n,"data:")||!Qe[e])if(ze&&!M(we,k(n,ke,"")));else if(n)return!1;return!0},At=function(e){return e.indexOf("-")>0},Mt=function(t){var n,i,a,o;wt("beforeSanitizeAttributes",t,null);var s=t.attributes;if(s){var l={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:je};for(o=s.length;o--;){var c=n=s[o],u=c.name,d=c.namespaceURI;if(i="value"===u?n.value:A(n.value),a=_e(u),l.attrName=a,l.attrValue=i,l.keepAttr=!0,l.forceKeepAttr=void 0,wt("uponSanitizeAttribute",t,l),i=l.attrValue,!l.forceKeepAttr&&(bt(u,t),l.keepAttr))if(Ie||!M(/\/>/i,i)){Pe&&(i=k(i,ge," "),i=k(i,be," "),i=k(i,ve," "));var m=_e(t.nodeName);if(Tt(m,a,i)){if(!Ue||"id"!==a&&"name"!==a||(bt(u,t),i="user-content-"+i),ae&&"object"===e(O)&&"function"==typeof O.getAttributeType)if(d);else switch(O.getAttributeType(m,a)){case"TrustedHTML":i=ae.createHTML(i);break;case"TrustedScriptURL":i=ae.createScriptURL(i)}try{d?t.setAttributeNS(d,u,i):t.setAttribute(u,i),b(r.removed)}catch(e){}}}else bt(u,t)}wt("afterSanitizeAttributes",t,null)}},jt=function e(t){var n,i=xt(t);for(wt("beforeSanitizeShadowDOM",t,null);n=i.nextNode();)wt("uponSanitizeShadowNode",n,null),kt(n)||(n.content instanceof s&&e(n.content),Mt(n));wt("afterSanitizeShadowDOM",t,null)};return r.sanitize=function(t){var i,o,l,u,d,m=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if((rt=!t)&&(t="\x3c!--\x3e"),"string"!=typeof t&&!yt(t)){if("function"!=typeof t.toString)throw j("toString is not a function");if("string"!=typeof(t=t.toString()))throw j("dirty is not a string, aborting")}if(!r.isSupported){if("object"===e(n.toStaticHTML)||"function"==typeof n.toStaticHTML){if("string"==typeof t)return n.toStaticHTML(t);if(yt(t))return n.toStaticHTML(t.outerHTML)}return t}if(Re||dt(m),r.removed=[],"string"==typeof t&&(Ve=!1),Ve){if(t.nodeName){var h=_e(t.nodeName);if(!Ae[h]||Ce[h])throw j("root node is forbidden and cannot be sanitized in-place")}}else if(t instanceof c)1===(o=(i=vt("\x3c!----\x3e")).ownerDocument.importNode(t,!0)).nodeType&&"BODY"===o.nodeName||"HTML"===o.nodeName?i=o:i.appendChild(o);else{if(!Be&&!Pe&&!Fe&&-1===t.indexOf("<"))return ae&&He?ae.createHTML(t):t;if(!(i=vt(t)))return Be?null:He?oe:""}i&&De&&gt(i.firstChild);for(var f=xt(Ve?t:i);l=f.nextNode();)3===l.nodeType&&l===u||kt(l)||(l.content instanceof s&&jt(l.content),Mt(l),u=l);if(u=null,Ve)return t;if(Be){if(Xe)for(d=ue.call(i.ownerDocument);i.firstChild;)d.appendChild(i.firstChild);else d=i;return(je.shadowroot||je.shadowrootmod)&&(d=me.call(a,d,!0)),d}var p=Fe?i.outerHTML:i.innerHTML;return Fe&&Ae["!doctype"]&&i.ownerDocument&&i.ownerDocument.doctype&&i.ownerDocument.doctype.name&&M(K,i.ownerDocument.doctype.name)&&(p="<!DOCTYPE "+i.ownerDocument.doctype.name+">\n"+p),Pe&&(p=k(p,ge," "),p=k(p,be," "),p=k(p,ve," ")),ae&&He?ae.createHTML(p):p},r.setConfig=function(e){dt(e),Re=!0},r.clearConfig=function(){lt=null,Re=!1},r.isValidAttribute=function(e,t,n){lt||dt({});var i=_e(e),r=_e(t);return Tt(i,r,n)},r.addHook=function(e,t){"function"==typeof t&&(fe[e]=fe[e]||[],v(fe[e],t))},r.removeHook=function(e){if(fe[e])return b(fe[e])},r.removeHooks=function(e){fe[e]&&(fe[e]=[])},r.removeAllHooks=function(){fe={}},r}()}()},816:function(e,t,n){"use strict";var i=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(r,a){function o(e){try{l(i.next(e))}catch(e){a(e)}}function s(e){try{l(i.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}l((i=i.apply(e,t||[])).next())}))},r=this&&this.__generator||function(e,t){var n,i,r,a,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,i&&(r=2&a[0]?i.return:a[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,a[1])).done)return r;switch(i=0,r&&(a=[2&a[0],r.value]),a[0]){case 0:case 1:r=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,i=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!((r=(r=o.trys).length>0&&r[r.length-1])||6!==a[0]&&2!==a[0])){o=0;continue}if(3===a[0]&&(!r||a[1]>r[0]&&a[1]<r[3])){o.label=a[1];break}if(6===a[0]&&o.label<r[1]){o.label=r[1],r=a;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(a);break}r[2]&&o.ops.pop(),o.trys.pop();continue}a=t.call(e,o)}catch(e){a=[6,e],i=0}finally{n=r=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=n(614),s=n(11),l=n(480),c=n(619),u=a(n(330));!function(e){i(this,void 0,void 0,(function(){var t,n,a,d=this;return r(this,(function(m){switch(m.label){case 0:return[4,o.Properties.generate()];case 1:return t=m.sent(),e.viewer?(e.viewer.properties=t,e.viewer.isLoaded=!1,e.viewer.version=u.default.version):e.viewer={properties:t,isLoaded:!1,version:u.default.version},n=e.document,t.render=function(){return i(d,void 0,void 0,(function(){var e;return r(this,(function(i){switch(i.label){case 0:return(e=n.querySelector(t.element))?[4,(0,s.renderLatex)(t,e)]:[3,3];case 1:return i.sent(),[4,(0,l.renderMathML)(t,e)];case 2:i.sent(),i.label=3;case 3:return[2]}}))}))},a=function(){return i(d,void 0,void 0,(function(){return r(this,(function(n){return e.viewer.isLoaded||(e.viewer.isLoaded=!0,t.render()),[2]}))}))},"loading"===n.readyState?n.addEventListener("DOMContentLoaded",a):a(),(0,c.bypassEncapsulation)(t,e),n.dispatchEvent(new Event("viewerLoaded")),[2]}}))}))}(window)},11:function(e,t,n){"use strict";var i=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(r,a){function o(e){try{l(i.next(e))}catch(e){a(e)}}function s(e){try{l(i.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}l((i=i.apply(e,t||[])).next())}))},r=this&&this.__generator||function(e,t){var n,i,r,a,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,i&&(r=2&a[0]?i.return:a[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,a[1])).done)return r;switch(i=0,r&&(a=[2&a[0],r.value]),a[0]){case 0:case 1:r=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,i=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!((r=(r=o.trys).length>0&&r[r.length-1])||6!==a[0]&&2!==a[0])){o=0;continue}if(3===a[0]&&(!r||a[1]>r[0]&&a[1]<r[3])){o.label=a[1];break}if(6===a[0]&&o.label<r[1]){o.label=r[1],r=a;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(a);break}r[2]&&o.ops.pop(),o.trys.pop();continue}a=t.call(e,o)}catch(e){a=[6,e],i=0}finally{n=r=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}},a=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],i=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.renderLatex=void 0;var o=n(975);function s(e,t){var n,a,s,l;return i(this,void 0,void 0,(function(){var i,c,u,d,m,h,f,p,_,g;return r(this,(function(r){switch(r.label){case 0:i=t.textContent||"",c=0,r.label=1;case 1:return c<i.length?(u=function(e,t){var n=t.indexOf("$$",e),i=-1==n?-1:t.indexOf("$$",n+2);return-1!=n&&-1!=i?{start:n,end:i}:null}(c,i),u?(d=i.substring(c,u.start),m=document.createTextNode(d),null===(n=t.parentNode)||void 0===n||n.insertBefore(m,t),t.nodeValue=t.nodeValue.substring(c,u.start),h=i.substring(u.start+2,u.end),[4,(0,o.latexToMathml)(h,e.editorServicesRoot,e.editorServicesExtension)]):[3,3]):[3,5];case 2:return f=r.sent(),p=document.createRange().createContextualFragment(f.text),null===(a=t.parentNode)||void 0===a||a.insertBefore(p,t),t.nodeValue=t.nodeValue.substring(u.start,u.end),c=u.end+2,[3,4];case 3:_=i.substring(c),g=document.createTextNode(_),null===(s=t.parentNode)||void 0===s||s.insertBefore(g,t),t.nodeValue="",c=i.length,r.label=4;case 4:return[3,1];case 5:return null===(l=t.parentNode)||void 0===l||l.removeChild(t),[2]}}))}))}t.renderLatex=function(e,t){return i(this,void 0,void 0,(function(){var n,i,o,l,c,u,d;return r(this,(function(r){switch(r.label){case 0:if("image"!==e.viewer&&"latex"!==e.viewer)return[2];n=function(e){for(var t,n=document.createNodeIterator(e,NodeFilter.SHOW_TEXT,(function(e){return/(\$\$)(.*)(\$\$)/.test(e.nodeValue||"")?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT})),i=[];t=n.nextNode();)i.push(t);return i}(t),r.label=1;case 1:r.trys.push([1,6,7,8]),i=a(n),o=i.next(),r.label=2;case 2:return o.done?[3,5]:(l=o.value,[4,s(e,l)]);case 3:r.sent(),r.label=4;case 4:return o=i.next(),[3,2];case 5:return[3,8];case 6:return c=r.sent(),u={error:c},[3,8];case 7:try{o&&!o.done&&(d=i.return)&&d.call(i)}finally{if(u)throw u.error}return[7];case 8:return[2]}}))}))}},480:function(e,t,n){"use strict";var i=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(r,a){function o(e){try{l(i.next(e))}catch(e){a(e)}}function s(e){try{l(i.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}l((i=i.apply(e,t||[])).next())}))},r=this&&this.__generator||function(e,t){var n,i,r,a,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,i&&(r=2&a[0]?i.return:a[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,a[1])).done)return r;switch(i=0,r&&(a=[2&a[0],r.value]),a[0]){case 0:case 1:r=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,i=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!((r=(r=o.trys).length>0&&r[r.length-1])||6!==a[0]&&2!==a[0])){o=0;continue}if(3===a[0]&&(!r||a[1]>r[0]&&a[1]<r[3])){o.label=a[1];break}if(6===a[0]&&o.label<r[1]){o.label=r[1],r=a;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(a);break}r[2]&&o.ops.pop(),o.trys.pop();continue}a=t.call(e,o)}catch(e){a=[6,e],i=0}finally{n=r=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}},a=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],i=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},o=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,r,a=n.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(i=a.next()).done;)o.push(i.value)}catch(e){r={error:e}}finally{try{i&&!i.done&&(n=a.return)&&n.call(a)}finally{if(r)throw r.error}}return o},s=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var i,r=0,a=t.length;r<a;r++)!i&&r in t||(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))},l=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.renderMathML=void 0;var c=n(975),u=n(622),d=l(n(704));function m(e,t,n){return i(this,void 0,void 0,(function(){var i,a;return r(this,(function(r){switch(r.label){case 0:if((i=document.createElement("img")).src="data:image/svg+xml;charset=utf8,".concat(encodeURIComponent(t.content)),i.setAttribute(e.wiriseditormathmlattribute,n),i.setAttribute("class","Wirisformula"),i.setAttribute("role","math"),+t.height>0&&(i.style.verticalAlign="-"+(+t.height-+t.baseline)+"px",i.height=+t.height,i.width=+t.width),u.corruptMathML.some((function(e){return n.includes(e)})))return[3,5];r.label=1;case 1:return r.trys.push([1,4,,5]),t.alt?[3,3]:[4,(0,c.mathml2accessible)(n,e.lang,e.editorServicesRoot,e.editorServicesExtension)];case 2:a=r.sent().text,t.alt=a,r.label=3;case 3:return i.alt=t.alt,[3,5];case 4:return r.sent(),i.alt="Alternative text not available",[3,5];case 5:return[2,i]}}))}))}t.renderMathML=function(e,t){var n;return i(this,void 0,void 0,(function(){var i,l,h,f,p,_,g,b,v,x;return r(this,(function(r){switch(r.label){case 0:if("image"!==e.viewer&&"mathml"!==e.viewer)return[2];(function(e){var t,n,i,r,o=function(e){for(var t,n=document.createNodeIterator(e,NodeFilter.SHOW_TEXT,(function(e){return/«math(.*?)«\/math»/g.test(e.nodeValue||"")?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT})),i=[];t=n.nextNode();)i.push(t);return i}(e);try{for(var s=a(o),l=s.next();!l.done;l=s.next()){var c=l.value,u=d.default.safeXmlDecode(c.textContent),m=document.createRange().createContextualFragment(u);null===(i=c.parentNode)||void 0===i||i.insertBefore(m,c),null===(r=c.parentNode)||void 0===r||r.removeChild(c)}}catch(e){t={error:e}}finally{try{l&&!l.done&&(n=s.return)&&n.call(s)}finally{if(t)throw t.error}}})(t),r.label=1;case 1:r.trys.push([1,11,12,13]),i=a(s([],o(t.getElementsByTagName("math")),!1)),l=i.next(),r.label=2;case 2:return l.done?[3,10]:(h=l.value,f=(0,u.htmlEntitiesToXmlEntities)(h.outerHTML),p=void 0,"true"!==e.wirispluginperformance?[3,4]:[4,(0,c.showImage)(f,e.lang,e.editorServicesRoot,e.editorServicesExtension)]);case 3:return p=r.sent(),[3,7];case 4:return[4,(0,c.createImage)(f,e.lang,e.editorServicesRoot,e.editorServicesExtension)];case 5:return _=(_=r.sent()).replace("pluginsapp","plugins/app"),[4,(0,c.processJsonResponse)(fetch(_))];case 6:p=r.sent(),r.label=7;case 7:return[4,m(e,p,f)];case 8:g=r.sent(),null===(n=h.parentNode)||void 0===n||n.replaceChild(g,h),r.label=9;case 9:return l=i.next(),[3,2];case 10:return[3,13];case 11:return b=r.sent(),v={error:b},[3,13];case 12:try{l&&!l.done&&(x=i.return)&&x.call(i)}finally{if(v)throw v.error}return[7];case 13:return[2]}}))}))}},614:function(e,t,n){"use strict";var i=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(r,a){function o(e){try{l(i.next(e))}catch(e){a(e)}}function s(e){try{l(i.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}l((i=i.apply(e,t||[])).next())}))},r=this&&this.__generator||function(e,t){var n,i,r,a,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,i&&(r=2&a[0]?i.return:a[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,a[1])).done)return r;switch(i=0,r&&(a=[2&a[0],r.value]),a[0]){case 0:case 1:r=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,i=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!((r=(r=o.trys).length>0&&r[r.length-1])||6!==a[0]&&2!==a[0])){o=0;continue}if(3===a[0]&&(!r||a[1]>r[0]&&a[1]<r[3])){o.label=a[1];break}if(6===a[0]&&o.label<r[1]){o.label=r[1],r=a;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(a);break}r[2]&&o.ops.pop(),o.trys.pop();continue}a=t.call(e,o)}catch(e){a=[6,e],i=0}finally{n=r=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.Properties=void 0;var a=n(975),o={editorServicesRoot:"https://www.wiris.net/demo/plugins/app/",editorServicesExtension:"",backendConfig:{wirispluginperformance:"true",wiriseditormathmlattribute:"data-mathml"},dpi:96,element:"body",lang:"en",viewer:"none",zoom:1},s=function(){function e(){var e=this;this.render=function(){return i(e,void 0,void 0,(function(){return r(this,(function(e){return[2]}))}))},this.config=o}return e.prototype.new=function(){},e.generate=function(){return i(this,void 0,void 0,(function(){var t,n,i,o,s,l,c,u;return r(this,(function(r){switch(r.label){case 0:t=new e,n="WIRISplugins.js",(i=document.querySelector('script[src*="'.concat(n,'"]')))&&(o=i.src.lastIndexOf(n),s=i.src.substring(o+15),null!==(l=new URLSearchParams(s)).get("dpi")&&void 0!==l.get("dpi")&&(t.config.dpi=+l.get("dpi")),null!==l.get("element")&&void 0!==l.get("element")&&(t.config.element=l.get("element")),null!==l.get("lang")&&void 0!==l.get("lang")&&(t.config.lang=l.get("lang")),null!==l.get("viewer")&&void 0!==l.get("viewer")&&(t.config.viewer=l.get("viewer")),null!==l.get("zoom")&&void 0!==l.get("zoom")&&(t.config.zoom=+l.get("zoom"))),t.checkServices(),r.label=1;case 1:return r.trys.push([1,3,,4]),c=t.config,[4,(0,a.configurationJson)(["wirispluginperformance","wiriseditormathmlattribute"],t.editorServicesRoot,t.editorServicesExtension)];case 2:return c.backendConfig=r.sent(),[3,4];case 3:if(!((u=r.sent())instanceof a.StatusError))throw u;return console.error(u),[3,4];case 4:return[2,t]}}))}))},e.prototype.checkServices=function(){var e=document.currentScript.src;e.includes("pluginwiris_engine")?(this.config.editorServicesRoot=e,this.config.editorServicesExtension=""):e.includes("integration/WIRISplugins")&&(this.config.editorServicesRoot=e,this.config.editorServicesExtension=".php")},Object.defineProperty(e.prototype,"editorServicesRoot",{get:function(){return this.config.editorServicesRoot||o.editorServicesRoot},set:function(e){this.config.editorServicesRoot=e,this.render()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"editorServicesExtension",{get:function(){return this.config.editorServicesExtension||o.editorServicesExtension},set:function(e){this.config.editorServicesExtension=e,this.render()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"lang",{get:function(){return("inherit"===this.config.lang?null:this.config.lang)||document.getElementsByTagName("html")[0].lang||navigator.language||o.lang},set:function(e){this.config.lang=e,this.render()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"viewer",{get:function(){return this.config.viewer||o.viewer},set:function(e){this.config.viewer=e,this.render()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"dpi",{get:function(){return this.config.dpi||o.dpi},set:function(e){this.config.dpi=e,this.render()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"zoom",{get:function(){return this.config.zoom||o.zoom},set:function(e){this.config.zoom=e,this.render()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"element",{get:function(){return this.config.element||o.element},set:function(e){this.config.element=e,this.render()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"wirispluginperformance",{get:function(){return this.config.backendConfig.wirispluginperformance||o.backendConfig.wirispluginperformance},set:function(e){this.config.backendConfig.wirispluginperformance=e,this.render()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"wiriseditormathmlattribute",{get:function(){return this.config.backendConfig.wiriseditormathmlattribute||o.backendConfig.wiriseditormathmlattribute},set:function(e){this.config.backendConfig.wiriseditormathmlattribute=e,this.render()},enumerable:!1,configurable:!0}),e}();t.Properties=s},619:function(e,t,n){"use strict";var i=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(r,a){function o(e){try{l(i.next(e))}catch(e){a(e)}}function s(e){try{l(i.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}l((i=i.apply(e,t||[])).next())}))},r=this&&this.__generator||function(e,t){var n,i,r,a,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,i&&(r=2&a[0]?i.return:a[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,a[1])).done)return r;switch(i=0,r&&(a=[2&a[0],r.value]),a[0]){case 0:case 1:r=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,i=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!((r=(r=o.trys).length>0&&r[r.length-1])||6!==a[0]&&2!==a[0])){o=0;continue}if(3===a[0]&&(!r||a[1]>r[0]&&a[1]<r[3])){o.label=a[1];break}if(6===a[0]&&o.label<r[1]){o.label=r[1],r=a;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(a);break}r[2]&&o.ops.pop(),o.trys.pop();continue}a=t.call(e,o)}catch(e){a=[6,e],i=0}finally{n=r=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.bypassEncapsulation=void 0;var a=n(11),o=n(480);t.bypassEncapsulation=function(e,t){var n=t;void 0===n.com&&(n.com={}),void 0===n.com.wiris&&(n.com.wiris={}),void 0===n.com.wiris.js&&(n.com.wiris.js={}),void 0===n.com.wiris.js.JsPluginViewer&&(n.com.wiris.js.JsPluginViewer=s.getInstance(),s.properties=e)};var s=function(){function e(){}return e.getInstance=function(){return null==e.instance&&(e.instance=new e),e.instance},e.prototype.parseSafeMathMLElement=function(t,n,i){var r=[];e.getMathMLPositionsAtElementAndChildren(t,r);for(var a=0;a<r.length;a++){var o=r[a],s=document.createElement("math");o.nextElement.parentNode.insertBefore(s,o.nextElement),s.outerHTML=e.decodeSafeMathML(o.safeMML)}},e.prototype.parseDocument=function(t,n,a){return i(this,void 0,void 0,(function(){return r(this,(function(t){return[2,(0,o.renderMathML)(e.properties,document.documentElement)]}))}))},e.prototype.parseElement=function(t,n,s){return i(this,void 0,void 0,(function(){return r(this,(function(n){switch(n.label){case 0:return[4,(0,a.renderLatex)(e.properties,t)];case 1:return n.sent(),[4,(0,o.renderMathML)(e.properties,t)];case 2:return[2,n.sent()]}}))}))},e.prototype.parseLatexDocument=function(t,n){return i(this,void 0,void 0,(function(){return r(this,(function(t){return[2,(0,a.renderLatex)(e.properties,document.documentElement)]}))}))},e.prototype.parseLatexElement=function(t,n,o){return i(this,void 0,void 0,(function(){return r(this,(function(n){return[2,(0,a.renderLatex)(e.properties,t)]}))}))},e.decodeSafeMathML=function(e){var t=l.getSafeXMLCharactersEntities(),n=l.getXMLCharacters(),i=l.getSafeXMLCharacters(),r=t.tagOpener,a=t.tagCloser,o=t.doubleQuote,s=t.realDoubleQuote,c=e.slice();c=(c=(c=(c=c.split(r).join(i.tagOpener)).split(a).join(i.tagCloser)).split(o).join(i.doubleQuote)).split(s).join(i.realDoubleQuote);var u=i.tagOpener,d=i.tagCloser,m=i.doubleQuote,h=(i.realDoubleQuote,i.ampersand),f=i.quote;c=(c=(c=(c=(c=c.split(u).join(n.tagOpener)).split(d).join(n.tagCloser)).split(m).join(n.doubleQuote)).split(h).join(n.ampersand)).split(f).join(n.quote);for(var p="",_=null,g=0;g<c.length;){var b=c.charAt(g);null==_?"$"==b?_="":p+=b:";"==b?(p+="&"+_,_=null):b.match(/([a-zA-Z0-9#._-] | '-')/)?_+=b:(p+="$currentEntity",_=null,g-=1),g++}return p},e.getMathMLPositionsAtElementAndChildren=function(t,n){e.getMathMLPositionsAtNode(t,n);var i=Array.from(t.childNodes);if(i.length>0)for(var r=0;r<i.length;r++){var a=i[r];e.getMathMLPositionsAtElementAndChildren(a,n)}},e.getMathMLPositionsAtNode=function(e,t){var n=l.getSafeXMLCharacters();if(3==e.nodeType)for(var i=n.tagOpener+"math",r=n.tagOpener+"/math"+n.tagCloser,a=e.textContent.indexOf(i),o=0;-1!=a&&-1!=(o=e.textContent.indexOf(r,a+i.length));){var s=e.textContent.indexOf(i,o+r.length);if(s>=0&&o>s)break;var c=e.textContent.substring(a,o+r.length);e.textContent=e.textContent.substring(0,a)+e.textContent.substring(o+r.length),a=(e=e.splitText(a)).textContent.indexOf(i),t.push({safeMML:c,nextElement:e})}},e}(),l=function(){function e(){}return e.getSafeXMLCharactersEntities=function(){return{tagOpener:"&laquo;",tagCloser:"&raquo;",doubleQuote:"&uml;",realDoubleQuote:"&quot;"}},e.getXMLCharacters=function(){return{id:"xmlCharacters",tagOpener:"<",tagCloser:">",doubleQuote:'"',ampersand:"&",quote:"'"}},e.getSafeXMLCharacters=function(){return{id:"safeXmlCharacters",tagOpener:"«",tagCloser:"»",doubleQuote:"¨",ampersand:"§",quote:"`",realDoubleQuote:"¨"}},e}()},975:function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},i(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=this&&this.__assign||function(){return a=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},a.apply(this,arguments)},o=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(r,a){function o(e){try{l(i.next(e))}catch(e){a(e)}}function s(e){try{l(i.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}l((i=i.apply(e,t||[])).next())}))},s=this&&this.__generator||function(e,t){var n,i,r,a,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,i&&(r=2&a[0]?i.return:a[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,a[1])).done)return r;switch(i=0,r&&(a=[2&a[0],r.value]),a[0]){case 0:case 1:r=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,i=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!((r=(r=o.trys).length>0&&r[r.length-1])||6!==a[0]&&2!==a[0])){o=0;continue}if(3===a[0]&&(!r||a[1]>r[0]&&a[1]<r[3])){o.label=a[1];break}if(6===a[0]&&o.label<r[1]){o.label=r[1],r=a;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(a);break}r[2]&&o.ops.pop(),o.trys.pop();continue}a=t.call(e,o)}catch(e){a=[6,e],i=0}finally{n=r=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}},l=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],i=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},c=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,r,a=n.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(i=a.next()).done;)o.push(i.value)}catch(e){r={error:e}}finally{try{i&&!i.done&&(n=a.return)&&n.call(a)}finally{if(r)throw r.error}}return o},u=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.configurationJson=t.latexToMathml=t.createImage=t.showImage=t.mathml2accessible=t.callService=t.processJsonResponse=t.StatusError=void 0;var d,m=u(n(643));!function(e){e.Post="POST",e.Get="GET"}(d||(d={}));var h=function(e){function t(n){var i=e.call(this,n)||this;return Object.setPrototypeOf(i,t.prototype),i}return r(t,e),t}(Error);function f(e){return o(this,void 0,void 0,(function(){var t,n,i;return s(this,(function(r){switch(r.label){case 0:return r.trys.push([0,3,,4]),[4,e];case 1:return[4,r.sent().json()];case 2:if(t=r.sent(),n=t.status,i=t.result,"ok"!==n)throw new h("Service responded with a non-ok status");return[2,i];case 3:throw r.sent();case 4:return[2]}}))}))}function p(e,t,n,i,r){return o(this,void 0,void 0,(function(){var o,u,m,h,f,p,_,g,b;return s(this,(function(s){try{if(o=new URL(t+r,i),u={method:n,headers:{"Content-type":"application/x-www-form-urlencoded; charset=utf-8"}},n===d.Get)try{for(m=l(Object.entries(e)),h=m.next();!h.done;h=m.next())f=c(h.value,2),p=f[0],_=f[1],o.searchParams.set(p,_)}catch(e){g={error:e}}finally{try{h&&!h.done&&(b=m.return)&&b.call(m)}finally{if(g)throw g.error}}else u.body=new URLSearchParams(a({},e));return[2,fetch(o.toString(),u)]}catch(e){throw e}return[2]}))}))}t.StatusError=h,t.processJsonResponse=f,t.callService=p,t.mathml2accessible=function(e,t,n,i){return o(this,void 0,void 0,(function(){return s(this,(function(r){return[2,f(p({service:"mathml2accessible",mml:e,metrics:"true",centerbaseline:"false",lang:t,ignoreStyles:"true"},"service",d.Post,n,i))]}))}))},t.showImage=function(e,t,n,i){return o(this,void 0,void 0,(function(){var r,a,o,l;return s(this,(function(s){switch(s.label){case 0:r={mml:e,metrics:"true",centerbaseline:"false",lang:t},a=m.default.createShowImageSrcData(r,r.lang),o=p(a,"showimage",d.Get,n,i),s.label=1;case 1:return s.trys.push([1,3,,4]),[4,f(o)];case 2:return[2,s.sent()];case 3:if(!((l=s.sent())instanceof h))throw l;return[3,4];case 4:return[2,f(p(r,"showimage",d.Post,n,i))]}}))}))},t.createImage=function(e,t,n,i){return o(this,void 0,void 0,(function(){return s(this,(function(r){switch(r.label){case 0:return[4,p({mml:e,metrics:"true",centerbaseline:"false",lang:t},"createimage",d.Get,n,i)];case 1:return[2,r.sent().text()]}}))}))},t.latexToMathml=function(e,t,n){return o(this,void 0,void 0,(function(){return s(this,(function(i){return[2,f(p({service:"latex2mathml",latex:e},"service",d.Post,t,n))]}))}))},t.configurationJson=function(e,t,n){return o(this,void 0,void 0,(function(){return s(this,(function(i){return[2,f(p({variablekeys:e.join(",")},"configurationjson",d.Get,t,n))]}))}))}},622:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.corruptMathML=t.htmlEntitiesToXmlEntities=void 0,t.htmlEntitiesToXmlEntities=function(e){e=(e=function(e){var t=document.createElement("textarea");return t.innerHTML=e,t.value}(e)).split("&").join("&amp;").split('"<"').join('"&lt;"').split('">"').join('"&gt;"').split("><<").join(">&lt;<");for(var t="",n=0;n<e.length;n++){var i=e.charAt(n);e.charCodeAt(n)>128?t+="&#"+e.charCodeAt(n)+";":t+=i}return t},t.corruptMathML=["⟦","&#10214;","⟧","&#10215;","mscarries","mscarry","msgroup","mstack","msline","msrow"]},41:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});class i{static addConfiguration(e){Object.assign(i.properties,e)}static get properties(){return i._properties}static set properties(e){i._properties=e}static get(e){return Object.prototype.hasOwnProperty.call(i.properties,e)?i.properties[e]:!!Object.prototype.hasOwnProperty.call(i.properties,"_wrs_conf_")&&i.properties[`_wrs_conf_${e}`]}static set(e,t){i.properties[e]=t}static update(e,t){if(i.get(e)){const n=Object.assign(i.get(e),t);i.set(e,n)}else i.set(e,t)}}i._properties={}},178:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});class i{static get safeXmlCharactersEntities(){return{tagOpener:"&laquo;",tagCloser:"&raquo;",doubleQuote:"&uml;",realDoubleQuote:"&quot;"}}static get safeBadBlackboardCharacters(){return{ltElement:"«mo»<«/mo»",gtElement:"«mo»>«/mo»",ampElement:"«mo»&«/mo»"}}static get safeGoodBlackboardCharacters(){return{ltElement:"«mo»§lt;«/mo»",gtElement:"«mo»§gt;«/mo»",ampElement:"«mo»§amp;«/mo»"}}static get xmlCharacters(){return{id:"xmlCharacters",tagOpener:"<",tagCloser:">",doubleQuote:'"',ampersand:"&",quote:"'"}}static get safeXmlCharacters(){return{id:"safeXmlCharacters",tagOpener:"«",tagCloser:"»",doubleQuote:"¨",ampersand:"§",quote:"`",realDoubleQuote:"¨"}}}},583:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var i=n(756),r=n(704),a=n(22),o=n(178),s=n(567);class l{static get cache(){return l._cache}static set cache(e){l._cache=e}static getLatexFromMathML(e){const t=r.default.removeSemantics(e),{cache:n}=l,i={service:"mathml2latex",mml:t},o=JSON.parse(a.A.getService("service",i));let c="";if("ok"===o.status){c=o.result.text;const t=s.A.htmlEntities(c),i=r.default.addAnnotation(e,t,"LaTeX");n.populate(c,i)}return c}static getMathMLFromLatex(e,t){const n=l.cache;if(l.cache.get(e))return l.cache.get(e);const i={service:"latex2mathml",latex:e};t&&(i.saveLatex="");const o=JSON.parse(a.A.getService("service",i));let c;if("ok"===o.status){let t=o.result.text;if(t=t.split("\r").join("").split("\n").join(" "),-1===t.indexOf("semantics")&&-1===t.indexOf("annotation")){const n=s.A.htmlEntities(e);t=r.default.addAnnotation(t,n,"LaTeX"),c=t}else c=t;n.get(e)||n.populate(e,t)}else c=`$$${e}$$`;return c}static parseMathmlToLatex(e,t){let n="";const i=`${t.tagOpener}math`,a=`${t.tagOpener}/math${t.tagCloser}`,s=`${t.tagOpener}annotation encoding=${t.doubleQuote}LaTeX${t.doubleQuote}${t.tagCloser}`,c=`${t.tagOpener}/annotation${t.tagCloser}`;let u,d,m,h=e.indexOf(i),f=0;for(;-1!==h;){if(n+=e.substring(f,h),f=e.indexOf(a,h),-1===f?f=e.length-1:f+=a.length,u=e.substring(h,f),d=u.indexOf(s),-1!==d){d+=s.length,m=u.indexOf(c);let e=u.substring(d,m);t===o.A.safeXmlCharacters&&(e=r.default.safeXmlDecode(e)),n+=`$$${e}$$`,l.cache.populate(e,u)}else n+=u;h=e.indexOf(i,f)}return n+=e.substring(f,e.length),n}static getLatexFromTextNode(e,t,n){void 0!==n&&null!=n||(n={open:"$$",close:"$$"});let i,r=e;for(;r.previousSibling&&3===r.previousSibling.nodeType;)r=r.previousSibling;function a(e,t,i){let r=e.nodeValue.indexOf(i,t);for(;-1===r;){if(!(e=e.nextSibling))return null;r=e.nodeValue?e.nodeValue.indexOf(n.close):-1}return{node:e,position:r}}function o(e,t,n,i){if(e===n)return t<=i;for(;e&&e!==n;)e=e.nextSibling;return e===n}let s={node:r,position:0};const l=n.open.length;do{if(i=a(s.node,s.position,n.open),null==i||o(e,t,i.node,i.position))return null;if(s=a(i.node,i.position+l,n.close),null==s)return null;s.position+=l}while(o(s.node,s.position,e,t));let c;if(i.node===s.node)c=i.node.nodeValue.substring(i.position+l,s.position-l);else{const e=i.position+l;c=i.node.nodeValue.substring(e,i.node.nodeValue.length);let t=i.node;do{t=t.nextSibling,t===s.node?c+=s.node.nodeValue.substring(0,s.position-l):c+=t.nodeValue?t.nodeValue:""}while(t!==s.node)}return{latex:c,startNode:i.node,startPosition:i.position,endNode:s.node,endPosition:s.position}}}l._cache=new i.A},704:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var i=n(178),r=n(567);class a{static isMathmlInAttribute(e,t){const n=new RegExp("^['\"][\\s]*=[\\s]*[\\w-]+('[\\s]*(\"[^\"]*\"|'[^']*')[\\s]*=[\\s]*[\\w-]+[\\s]*')*[\\s]+gmi<"),i=e.substring(0,t).split("").reverse().join("");return n.test(i)}static safeXmlDecode(e){let{tagOpener:t}=i.A.safeXmlCharactersEntities,{tagCloser:n}=i.A.safeXmlCharactersEntities,{doubleQuote:r}=i.A.safeXmlCharactersEntities,{realDoubleQuote:a}=i.A.safeXmlCharactersEntities;e=(e=(e=(e=e.split(t).join(i.A.safeXmlCharacters.tagOpener)).split(n).join(i.A.safeXmlCharacters.tagCloser)).split(r).join(i.A.safeXmlCharacters.doubleQuote)).split(a).join(i.A.safeXmlCharacters.realDoubleQuote);const{ltElement:o}=i.A.safeBadBlackboardCharacters,{gtElement:s}=i.A.safeBadBlackboardCharacters,{ampElement:l}=i.A.safeBadBlackboardCharacters;"_wrs_blackboard"in window&&window._wrs_blackboard&&(e=(e=(e=e.split(o).join(i.A.safeGoodBlackboardCharacters.ltElement)).split(s).join(i.A.safeGoodBlackboardCharacters.gtElement)).split(l).join(i.A.safeGoodBlackboardCharacters.ampElement)),({tagOpener:t}=i.A.safeXmlCharacters),({tagCloser:n}=i.A.safeXmlCharacters),({doubleQuote:r}=i.A.safeXmlCharacters),({realDoubleQuote:a}=i.A.safeXmlCharacters);const{ampersand:c}=i.A.safeXmlCharacters,{quote:u}=i.A.safeXmlCharacters;e=(e=(e=(e=(e=e.split(t).join(i.A.xmlCharacters.tagOpener)).split(n).join(i.A.xmlCharacters.tagCloser)).split(r).join(i.A.xmlCharacters.doubleQuote)).split(c).join(i.A.xmlCharacters.ampersand)).split(u).join(i.A.xmlCharacters.quote);let d="",m=null;for(let t=0;t<e.length;t+=1){const n=e.charAt(t);null==m?"$"===n?m="":d+=n:";"===n?(d+=`&${m}`,m=null):n.match(/([a-zA-Z0-9#._-] | '-')/)?m+=n:(d+=`$${m}`,m=null,t-=1)}return d}static safeXmlEncode(e){const{tagOpener:t}=i.A.xmlCharacters,{tagCloser:n}=i.A.xmlCharacters,{doubleQuote:r}=i.A.xmlCharacters,{ampersand:a}=i.A.xmlCharacters,{quote:o}=i.A.xmlCharacters;return(e=(e=(e=(e=e.split(t).join(i.A.safeXmlCharacters.tagOpener)).split(n).join(i.A.safeXmlCharacters.tagCloser)).split(r).join(i.A.safeXmlCharacters.doubleQuote)).split(a).join(i.A.safeXmlCharacters.ampersand)).split(o).join(i.A.safeXmlCharacters.quote)}static mathMLEntities(e){let t="";for(let n=0;n<e.length;n+=1){const i=e.charAt(n);if(e.codePointAt(n)>128)t+=`&#${e.codePointAt(n)};`,e.codePointAt(n)>65535&&(n+=1);else if("&"===i){const a=e.indexOf(";",n+1);if(a>=0){const i=document.createElement("span");i.innerHTML=e.substring(n,a+1),t+=`&#${r.A.fixedCharCodeAt(i.textContent||i.innerText,0)};`,n=a}else t+=i}else t+=i}return t}static addCustomEditorClassAttribute(e,t){let n="";const i=e.indexOf("<math");if(0===i){const r=e.indexOf(">");if(-1===e.indexOf("class"))return n=`${e.substr(i,r)} class="wrs_${t}">`,n+=e.substr(r+1,e.length),n}return e}static removeCustomEditorClassAttribute(e,t){return-1===e.indexOf("class")||-1===e.indexOf(`wrs_${t}`)?e:-1!==e.indexOf(` class="wrs_${t}"`)?e.replace(` class="wrs_${t}"`,""):-1!==e.indexOf(`class="wrs_${t}"`)?e.replace(`class="wrs_${t}"`,""):e.replace(`wrs_${t}`,"")}static addAnnotation(e,t,n){let i="";if(-1!==e.indexOf("<annotation")){const r=e.indexOf("</semantics>");i=`${e.substring(0,r)}<annotation encoding="${n}">${t}</annotation>${e.substring(r)}`}else if(a.isEmpty(e)){const r=e.indexOf("/>"),a=e.indexOf(">"),o=a===r?r:a;i=`${e.substring(0,o)}><semantics><annotation encoding="${n}">${t}</annotation></semantics></math>`}else{const r=e.indexOf(">")+1,a=e.lastIndexOf("</math>"),o=e.substring(r,a);i=`${e.substring(0,r)}<semantics><mrow>${o}</mrow><annotation encoding="${n}">${t}</annotation></semantics></math>`}return i}static removeAnnotation(e,t){let n=e;const i=`<annotation encoding="${t}">`,r=e.indexOf(i);if(-1!==r){let t=!1,i=e.indexOf("<annotation");for(;-1!==i;)i!==r&&(t=!0),i=e.indexOf("<annotation",i+1);if(t){const t=e.indexOf("</annotation>",r)+13;n=e.substring(0,r)+e.substring(t)}else n=a.removeSemantics(e)}return n}static removeSemantics(e){return e.replace(/<semantics>\s*?(<mrow>)?/gm,"").replace(/(<\/mrow>)?\s*<annotation[\W\w]*?<\/semantics>/gm,"")}static removeSemanticsOcurrences(e,t=i.A.xmlCharacters){const n=`${t.tagOpener}math`,r=`${t.tagOpener}/math${t.tagCloser}`,a=`/${t.tagCloser}`,{tagCloser:o}=t,s=`${t.tagOpener}semantics${t.tagCloser}`,l=`${t.tagOpener}annotation encoding=`;let c="",u=e.indexOf(n),d=0;for(;-1!==u;){c+=e.substring(d,u);const t=e.indexOf(r,u),i=e.indexOf(a,u),m=e.indexOf(o,u);-1!==t?d=t:i===m-1&&(d=i);const h=e.indexOf(s,u);if(-1!==h){const t=e.substring(u,h),i=e.indexOf(l,u);if(-1!==i){const a=h+s.length;c+=t+e.substring(a,i)+r,u=e.indexOf(n,u+n.length),d+=r.length}else d=u,u=e.indexOf(n,u+n.length)}else d=u,u=e.indexOf(n,u+n.length)}return c+=e.substring(d,e.length),c}static containClass(e,t){const n=e.indexOf("class");if(-1===n)return!1;const i=e.indexOf(">",n);return-1!==e.substring(n,i).indexOf(t)}static isEmpty(e){const t=e.indexOf(">"),n=e.indexOf("/>");let i=!1;if(-1!==n&&n===t-1&&(i=!0),!i){const n=new RegExp("</(.+:)?math>").exec(e);n&&(i=t+1===n.index)}return i}static encodeProperties(e){return e.replace(/\w+=".*?"/g,(e=>{const t=e.indexOf('"'),n=e.substring(t+1,e.length-1),i=r.A.htmlEntities(n);return`${e.substring(0,t+1)}${i}"`}))}}},23:()=>{"use strict";var md5,__WEBPACK_DEFAULT_EXPORT__=md5;(function(){var HxOverrides=function(){};HxOverrides.__name__=!0,HxOverrides.dateStr=function(e){var t=e.getMonth()+1,n=e.getDate(),i=e.getHours(),r=e.getMinutes(),a=e.getSeconds();return e.getFullYear()+"-"+(t<10?"0"+t:""+t)+"-"+(n<10?"0"+n:""+n)+" "+(i<10?"0"+i:""+i)+":"+(r<10?"0"+r:""+r)+":"+(a<10?"0"+a:""+a)},HxOverrides.strDate=function(e){switch(e.length){case 8:var t=e.split(":"),n=new Date;return n.setTime(0),n.setUTCHours(t[0]),n.setUTCMinutes(t[1]),n.setUTCSeconds(t[2]),n;case 10:return t=e.split("-"),new Date(t[0],t[1]-1,t[2],0,0,0);case 19:var i=(t=e.split(" "))[0].split("-"),r=t[1].split(":");return new Date(i[0],i[1]-1,i[2],r[0],r[1],r[2]);default:throw"Invalid date format : "+e}},HxOverrides.cca=function(e,t){var n=e.charCodeAt(t);if(n==n)return n},HxOverrides.substr=function(e,t,n){return null!=t&&0!=t&&null!=n&&n<0?"":(null==n&&(n=e.length),t<0?(t=e.length+t)<0&&(t=0):n<0&&(n=e.length+n-t),e.substr(t,n))},HxOverrides.remove=function(e,t){for(var n=0,i=e.length;n<i;){if(e[n]==t)return e.splice(n,1),!0;n++}return!1},HxOverrides.iter=function(e){return{cur:0,arr:e,hasNext:function(){return this.cur<this.arr.length},next:function(){return this.arr[this.cur++]}}};var IntIter=function(e,t){this.min=e,this.max=t};IntIter.__name__=!0,IntIter.prototype={next:function(){return this.min++},hasNext:function(){return this.min<this.max},__class__:IntIter};var Std=function(){};Std.__name__=!0,Std.is=function(e,t){return js.Boot.__instanceof(e,t)},Std.string=function(e){return js.Boot.__string_rec(e,"")},Std.int=function(e){return 0|e},Std.parseInt=function(e){var t=parseInt(e,10);return 0!=t||120!=HxOverrides.cca(e,1)&&88!=HxOverrides.cca(e,1)||(t=parseInt(e)),isNaN(t)?null:t},Std.parseFloat=function(e){return parseFloat(e)},Std.random=function(e){return Math.floor(Math.random()*e)};var com=com||{};com.wiris||(com.wiris={}),com.wiris.js||(com.wiris.js={}),com.wiris.js.JsPluginTools=function(){this.tryReady()},com.wiris.js.JsPluginTools.__name__=!0,com.wiris.js.JsPluginTools.main=function(){var e;e=com.wiris.js.JsPluginTools.getInstance(),haxe.Timer.delay($bind(e,e.tryReady),100)},com.wiris.js.JsPluginTools.getInstance=function(){return null==com.wiris.js.JsPluginTools.instance&&(com.wiris.js.JsPluginTools.instance=new com.wiris.js.JsPluginTools),com.wiris.js.JsPluginTools.instance},com.wiris.js.JsPluginTools.bypassEncapsulation=function(){null==window.com&&(window.com={}),null==window.com.wiris&&(window.com.wiris={}),null==window.com.wiris.js&&(window.com.wiris.js={}),null==window.com.wiris.js.JsPluginTools&&(window.com.wiris.js.JsPluginTools=com.wiris.js.JsPluginTools.getInstance())},com.wiris.js.JsPluginTools.prototype={md5encode:function(e){return haxe.Md5.encode(e)},doLoad:function(){this.ready=!0,com.wiris.js.JsPluginTools.instance=this,com.wiris.js.JsPluginTools.bypassEncapsulation()},tryReady:function(){this.ready=!1,js.Lib.document.readyState&&(this.doLoad(),this.ready=!0),this.ready||haxe.Timer.delay($bind(this,this.tryReady),100)},__class__:com.wiris.js.JsPluginTools};var haxe=haxe||{};haxe.Log=function(){},haxe.Log.__name__=!0,haxe.Log.trace=function(e,t){js.Boot.__trace(e,t)},haxe.Log.clear=function(){js.Boot.__clear_trace()},haxe.Md5=function(){},haxe.Md5.__name__=!0,haxe.Md5.encode=function(e){return(new haxe.Md5).doEncode(e)},haxe.Md5.prototype={doEncode:function(e){for(var t=this.str2blks(e),n=1732584193,i=-271733879,r=-1732584194,a=271733878,o=0;o<t.length;){var s=n,l=i,c=r,u=a;n=this.ff(n,i,r,a,t[o],7,-680876936),a=this.ff(a,n,i,r,t[o+1],12,-389564586),r=this.ff(r,a,n,i,t[o+2],17,606105819),i=this.ff(i,r,a,n,t[o+3],22,-1044525330),n=this.ff(n,i,r,a,t[o+4],7,-176418897),a=this.ff(a,n,i,r,t[o+5],12,1200080426),r=this.ff(r,a,n,i,t[o+6],17,-1473231341),i=this.ff(i,r,a,n,t[o+7],22,-45705983),n=this.ff(n,i,r,a,t[o+8],7,1770035416),a=this.ff(a,n,i,r,t[o+9],12,-1958414417),r=this.ff(r,a,n,i,t[o+10],17,-42063),i=this.ff(i,r,a,n,t[o+11],22,-1990404162),n=this.ff(n,i,r,a,t[o+12],7,1804603682),a=this.ff(a,n,i,r,t[o+13],12,-40341101),r=this.ff(r,a,n,i,t[o+14],17,-1502002290),i=this.ff(i,r,a,n,t[o+15],22,1236535329),n=this.gg(n,i,r,a,t[o+1],5,-165796510),a=this.gg(a,n,i,r,t[o+6],9,-1069501632),r=this.gg(r,a,n,i,t[o+11],14,643717713),i=this.gg(i,r,a,n,t[o],20,-373897302),n=this.gg(n,i,r,a,t[o+5],5,-701558691),a=this.gg(a,n,i,r,t[o+10],9,38016083),r=this.gg(r,a,n,i,t[o+15],14,-660478335),i=this.gg(i,r,a,n,t[o+4],20,-405537848),n=this.gg(n,i,r,a,t[o+9],5,568446438),a=this.gg(a,n,i,r,t[o+14],9,-1019803690),r=this.gg(r,a,n,i,t[o+3],14,-187363961),i=this.gg(i,r,a,n,t[o+8],20,1163531501),n=this.gg(n,i,r,a,t[o+13],5,-1444681467),a=this.gg(a,n,i,r,t[o+2],9,-51403784),r=this.gg(r,a,n,i,t[o+7],14,1735328473),i=this.gg(i,r,a,n,t[o+12],20,-1926607734),n=this.hh(n,i,r,a,t[o+5],4,-378558),a=this.hh(a,n,i,r,t[o+8],11,-2022574463),r=this.hh(r,a,n,i,t[o+11],16,1839030562),i=this.hh(i,r,a,n,t[o+14],23,-35309556),n=this.hh(n,i,r,a,t[o+1],4,-1530992060),a=this.hh(a,n,i,r,t[o+4],11,1272893353),r=this.hh(r,a,n,i,t[o+7],16,-155497632),i=this.hh(i,r,a,n,t[o+10],23,-1094730640),n=this.hh(n,i,r,a,t[o+13],4,681279174),a=this.hh(a,n,i,r,t[o],11,-358537222),r=this.hh(r,a,n,i,t[o+3],16,-722521979),i=this.hh(i,r,a,n,t[o+6],23,76029189),n=this.hh(n,i,r,a,t[o+9],4,-640364487),a=this.hh(a,n,i,r,t[o+12],11,-421815835),r=this.hh(r,a,n,i,t[o+15],16,530742520),i=this.hh(i,r,a,n,t[o+2],23,-995338651),n=this.ii(n,i,r,a,t[o],6,-198630844),a=this.ii(a,n,i,r,t[o+7],10,1126891415),r=this.ii(r,a,n,i,t[o+14],15,-1416354905),i=this.ii(i,r,a,n,t[o+5],21,-57434055),n=this.ii(n,i,r,a,t[o+12],6,1700485571),a=this.ii(a,n,i,r,t[o+3],10,-1894986606),r=this.ii(r,a,n,i,t[o+10],15,-1051523),i=this.ii(i,r,a,n,t[o+1],21,-2054922799),n=this.ii(n,i,r,a,t[o+8],6,1873313359),a=this.ii(a,n,i,r,t[o+15],10,-30611744),r=this.ii(r,a,n,i,t[o+6],15,-1560198380),i=this.ii(i,r,a,n,t[o+13],21,1309151649),n=this.ii(n,i,r,a,t[o+4],6,-145523070),a=this.ii(a,n,i,r,t[o+11],10,-1120210379),r=this.ii(r,a,n,i,t[o+2],15,718787259),i=this.ii(i,r,a,n,t[o+9],21,-343485551),n=this.addme(n,s),i=this.addme(i,l),r=this.addme(r,c),a=this.addme(a,u),o+=16}return this.rhex(n)+this.rhex(i)+this.rhex(r)+this.rhex(a)},ii:function(e,t,n,i,r,a,o){return this.cmn(this.bitXOR(n,this.bitOR(t,~i)),e,t,r,a,o)},hh:function(e,t,n,i,r,a,o){return this.cmn(this.bitXOR(this.bitXOR(t,n),i),e,t,r,a,o)},gg:function(e,t,n,i,r,a,o){return this.cmn(this.bitOR(this.bitAND(t,i),this.bitAND(n,~i)),e,t,r,a,o)},ff:function(e,t,n,i,r,a,o){return this.cmn(this.bitOR(this.bitAND(t,n),this.bitAND(~t,i)),e,t,r,a,o)},cmn:function(e,t,n,i,r,a){return this.addme(this.rol(this.addme(this.addme(t,e),this.addme(i,a)),r),n)},rol:function(e,t){return e<<t|e>>>32-t},str2blks:function(e){for(var t=1+(e.length+8>>6),n=new Array,i=0,r=16*t;i<r;)n[a=i++]=0;for(var a=0;a<e.length;)n[a>>2]|=HxOverrides.cca(e,a)<<(8*e.length+a)%4*8,a++;n[a>>2]|=128<<(8*e.length+a)%4*8;var o=8*e.length,s=16*t-2;return n[s]=255&o,n[s]|=(o>>>8&255)<<8,n[s]|=(o>>>16&255)<<16,n[s]|=(o>>>24&255)<<24,n},rhex:function(e){for(var t="",n="0123456789abcdef",i=0;i<4;){var r=i++;t+=n.charAt(e>>8*r+4&15)+n.charAt(e>>8*r&15)}return t},addme:function(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n},bitAND:function(e,t){return(e>>>1&t>>>1)<<1|1&e&t},bitXOR:function(e,t){return(e>>>1^t>>>1)<<1|1&e^1&t},bitOR:function(e,t){return(e>>>1|t>>>1)<<1|1&e|1&t},__class__:haxe.Md5},haxe.Timer=function(e){var t=this;this.id=window.setInterval((function(){t.run()}),e)},haxe.Timer.__name__=!0,haxe.Timer.delay=function(e,t){var n=new haxe.Timer(t);return n.run=function(){n.stop(),e()},n},haxe.Timer.measure=function(e,t){var n=haxe.Timer.stamp(),i=e();return haxe.Log.trace(haxe.Timer.stamp()-n+"s",t),i},haxe.Timer.stamp=function(){return(new Date).getTime()/1e3},haxe.Timer.prototype={run:function(){},stop:function(){null!=this.id&&(window.clearInterval(this.id),this.id=null)},__class__:haxe.Timer};var js=js||{},$_;function $bind(e,t){var n=function(){return n.method.apply(n.scope,arguments)};return n.scope=e,n.method=t,n}js.Boot=function(){},js.Boot.__name__=!0,js.Boot.__unhtml=function(e){return e.split("&").join("&amp;").split("<").join("&lt;").split(">").join("&gt;")},js.Boot.__trace=function(e,t){var n,i=null!=t?t.fileName+":"+t.lineNumber+": ":"";i+=js.Boot.__string_rec(e,""),"undefined"!=typeof document&&null!=(n=document.getElementById("haxe:trace"))?n.innerHTML+=js.Boot.__unhtml(i)+"<br/>":"undefined"!=typeof console&&null!=console.log&&console.log(i)},js.Boot.__clear_trace=function(){var e=document.getElementById("haxe:trace");null!=e&&(e.innerHTML="")},js.Boot.isClass=function(e){return e.__name__},js.Boot.isEnum=function(e){return e.__ename__},js.Boot.getClass=function(e){return e.__class__},js.Boot.__string_rec=function(e,t){if(null==e)return"null";if(t.length>=5)return"<...>";var n=typeof e;switch("function"==n&&(e.__name__||e.__ename__)&&(n="object"),n){case"object":if(e instanceof Array){if(e.__enum__){if(2==e.length)return e[0];var i=e[0]+"(";t+="\t";for(var r=2,a=e.length;r<a;)i+=2!=(o=r++)?","+js.Boot.__string_rec(e[o],t):js.Boot.__string_rec(e[o],t);return i+")"}var o,s=e.length;for(i="[",t+="\t",a=0;a<s;){var l=a++;i+=(l>0?",":"")+js.Boot.__string_rec(e[l],t)}return i+"]"}var c;try{c=e.toString}catch(e){return"???"}if(null!=c&&c!=Object.toString){var u=e.toString();if("[object Object]"!=u)return u}var d=null;i="{\n",t+="\t";var m=null!=e.hasOwnProperty;for(var d in e)m&&!e.hasOwnProperty(d)||"prototype"!=d&&"__class__"!=d&&"__super__"!=d&&"__interfaces__"!=d&&"__properties__"!=d&&(2!=i.length&&(i+=", \n"),i+=t+d+" : "+js.Boot.__string_rec(e[d],t));return i+"\n"+(t=t.substring(1))+"}";case"function":return"<function>";case"string":return e;default:return String(e)}},js.Boot.__interfLoop=function(e,t){if(null==e)return!1;if(e==t)return!0;var n=e.__interfaces__;if(null!=n)for(var i=0,r=n.length;i<r;){var a=n[i++];if(a==t||js.Boot.__interfLoop(a,t))return!0}return js.Boot.__interfLoop(e.__super__,t)},js.Boot.__instanceof=function(e,t){try{if(e instanceof t)return t!=Array||null==e.__enum__;if(js.Boot.__interfLoop(e.__class__,t))return!0}catch(e){if(null==t)return!1}switch(t){case Int:return Math.ceil(e%2147483648)===e;case Float:return"number"==typeof e;case Bool:return!0===e||!1===e;case String:return"string"==typeof e;case Dynamic:return!0;default:return null!=e&&(t==Class&&null!=e.__name__||t==Enum&&null!=e.__ename__||e.__enum__==t)}},js.Boot.__cast=function(e,t){if(js.Boot.__instanceof(e,t))return e;throw"Cannot cast "+Std.string(e)+" to "+Std.string(t)},js.Lib=function(){},js.Lib.__name__=!0,js.Lib.debug=function(){},js.Lib.alert=function(e){alert(js.Boot.__string_rec(e,""))},js.Lib.eval=function(code){return eval(code)},js.Lib.setErrorHandler=function(e){js.Lib.onerror=e},Array.prototype.indexOf&&(HxOverrides.remove=function(e,t){var n=e.indexOf(t);return-1!=n&&(e.splice(n,1),!0)}),Math.__name__=["Math"],Math.NaN=Number.NaN,Math.NEGATIVE_INFINITY=Number.NEGATIVE_INFINITY,Math.POSITIVE_INFINITY=Number.POSITIVE_INFINITY,Math.isFinite=function(e){return isFinite(e)},Math.isNaN=function(e){return isNaN(e)},String.prototype.__class__=String,String.__name__=!0,Array.prototype.__class__=Array,Array.__name__=!0,Date.prototype.__class__=Date,Date.__name__=["Date"];var Int={__name__:["Int"]},Dynamic={__name__:["Dynamic"]},Float=Number;Float.__name__=["Float"];var Bool=Boolean;Bool.__ename__=["Bool"];var Class={__name__:["Class"]},Enum={},Void={__ename__:["Void"]};"undefined"!=typeof document&&(js.Lib.document=document),"undefined"!=typeof window&&(js.Lib.window=window,js.Lib.window.onerror=function(e,t,n){var i=js.Lib.onerror;return null!=i&&i(e,[t+":"+n])}),com.wiris.js.JsPluginTools.main(),delete Array.prototype.__class__})(),function(){var HxOverrides=function(){};HxOverrides.__name__=!0,HxOverrides.dateStr=function(e){var t=e.getMonth()+1,n=e.getDate(),i=e.getHours(),r=e.getMinutes(),a=e.getSeconds();return e.getFullYear()+"-"+(t<10?"0"+t:""+t)+"-"+(n<10?"0"+n:""+n)+" "+(i<10?"0"+i:""+i)+":"+(r<10?"0"+r:""+r)+":"+(a<10?"0"+a:""+a)},HxOverrides.strDate=function(e){switch(e.length){case 8:var t=e.split(":"),n=new Date;return n.setTime(0),n.setUTCHours(t[0]),n.setUTCMinutes(t[1]),n.setUTCSeconds(t[2]),n;case 10:return t=e.split("-"),new Date(t[0],t[1]-1,t[2],0,0,0);case 19:var i=(t=e.split(" "))[0].split("-"),r=t[1].split(":");return new Date(i[0],i[1]-1,i[2],r[0],r[1],r[2]);default:throw"Invalid date format : "+e}},HxOverrides.cca=function(e,t){var n=e.charCodeAt(t);if(n==n)return n},HxOverrides.substr=function(e,t,n){return null!=t&&0!=t&&null!=n&&n<0?"":(null==n&&(n=e.length),t<0?(t=e.length+t)<0&&(t=0):n<0&&(n=e.length+n-t),e.substr(t,n))},HxOverrides.remove=function(e,t){for(var n=0,i=e.length;n<i;){if(e[n]==t)return e.splice(n,1),!0;n++}return!1},HxOverrides.iter=function(e){return{cur:0,arr:e,hasNext:function(){return this.cur<this.arr.length},next:function(){return this.arr[this.cur++]}}};var IntIter=function(e,t){this.min=e,this.max=t};IntIter.__name__=!0,IntIter.prototype={next:function(){return this.min++},hasNext:function(){return this.min<this.max},__class__:IntIter};var Std=function(){};Std.__name__=!0,Std.is=function(e,t){return js.Boot.__instanceof(e,t)},Std.string=function(e){return js.Boot.__string_rec(e,"")},Std.int=function(e){return 0|e},Std.parseInt=function(e){var t=parseInt(e,10);return 0!=t||120!=HxOverrides.cca(e,1)&&88!=HxOverrides.cca(e,1)||(t=parseInt(e)),isNaN(t)?null:t},Std.parseFloat=function(e){return parseFloat(e)},Std.random=function(e){return Math.floor(Math.random()*e)};var com=com||{};com.wiris||(com.wiris={}),com.wiris.js||(com.wiris.js={}),com.wiris.js.JsPluginTools=function(){this.tryReady()},com.wiris.js.JsPluginTools.__name__=!0,com.wiris.js.JsPluginTools.main=function(){var e;e=com.wiris.js.JsPluginTools.getInstance(),haxe.Timer.delay($bind(e,e.tryReady),100)},com.wiris.js.JsPluginTools.getInstance=function(){return null==com.wiris.js.JsPluginTools.instance&&(com.wiris.js.JsPluginTools.instance=new com.wiris.js.JsPluginTools),com.wiris.js.JsPluginTools.instance},com.wiris.js.JsPluginTools.bypassEncapsulation=function(){null==window.com&&(window.com={}),null==window.com.wiris&&(window.com.wiris={}),null==window.com.wiris.js&&(window.com.wiris.js={}),null==window.com.wiris.js.JsPluginTools&&(window.com.wiris.js.JsPluginTools=com.wiris.js.JsPluginTools.getInstance())},com.wiris.js.JsPluginTools.prototype={md5encode:function(e){return haxe.Md5.encode(e)},doLoad:function(){this.ready=!0,com.wiris.js.JsPluginTools.instance=this,com.wiris.js.JsPluginTools.bypassEncapsulation()},tryReady:function(){this.ready=!1,js.Lib.document.readyState&&(this.doLoad(),this.ready=!0),this.ready||haxe.Timer.delay($bind(this,this.tryReady),100)},__class__:com.wiris.js.JsPluginTools};var haxe=haxe||{};haxe.Log=function(){},haxe.Log.__name__=!0,haxe.Log.trace=function(e,t){js.Boot.__trace(e,t)},haxe.Log.clear=function(){js.Boot.__clear_trace()},haxe.Md5=function(){},haxe.Md5.__name__=!0,haxe.Md5.encode=function(e){return(new haxe.Md5).doEncode(e)},haxe.Md5.prototype={doEncode:function(e){for(var t=this.str2blks(e),n=1732584193,i=-271733879,r=-1732584194,a=271733878,o=0;o<t.length;){var s=n,l=i,c=r,u=a;n=this.ff(n,i,r,a,t[o],7,-680876936),a=this.ff(a,n,i,r,t[o+1],12,-389564586),r=this.ff(r,a,n,i,t[o+2],17,606105819),i=this.ff(i,r,a,n,t[o+3],22,-1044525330),n=this.ff(n,i,r,a,t[o+4],7,-176418897),a=this.ff(a,n,i,r,t[o+5],12,1200080426),r=this.ff(r,a,n,i,t[o+6],17,-1473231341),i=this.ff(i,r,a,n,t[o+7],22,-45705983),n=this.ff(n,i,r,a,t[o+8],7,1770035416),a=this.ff(a,n,i,r,t[o+9],12,-1958414417),r=this.ff(r,a,n,i,t[o+10],17,-42063),i=this.ff(i,r,a,n,t[o+11],22,-1990404162),n=this.ff(n,i,r,a,t[o+12],7,1804603682),a=this.ff(a,n,i,r,t[o+13],12,-40341101),r=this.ff(r,a,n,i,t[o+14],17,-1502002290),i=this.ff(i,r,a,n,t[o+15],22,1236535329),n=this.gg(n,i,r,a,t[o+1],5,-165796510),a=this.gg(a,n,i,r,t[o+6],9,-1069501632),r=this.gg(r,a,n,i,t[o+11],14,643717713),i=this.gg(i,r,a,n,t[o],20,-373897302),n=this.gg(n,i,r,a,t[o+5],5,-701558691),a=this.gg(a,n,i,r,t[o+10],9,38016083),r=this.gg(r,a,n,i,t[o+15],14,-660478335),i=this.gg(i,r,a,n,t[o+4],20,-405537848),n=this.gg(n,i,r,a,t[o+9],5,568446438),a=this.gg(a,n,i,r,t[o+14],9,-1019803690),r=this.gg(r,a,n,i,t[o+3],14,-187363961),i=this.gg(i,r,a,n,t[o+8],20,1163531501),n=this.gg(n,i,r,a,t[o+13],5,-1444681467),a=this.gg(a,n,i,r,t[o+2],9,-51403784),r=this.gg(r,a,n,i,t[o+7],14,1735328473),i=this.gg(i,r,a,n,t[o+12],20,-1926607734),n=this.hh(n,i,r,a,t[o+5],4,-378558),a=this.hh(a,n,i,r,t[o+8],11,-2022574463),r=this.hh(r,a,n,i,t[o+11],16,1839030562),i=this.hh(i,r,a,n,t[o+14],23,-35309556),n=this.hh(n,i,r,a,t[o+1],4,-1530992060),a=this.hh(a,n,i,r,t[o+4],11,1272893353),r=this.hh(r,a,n,i,t[o+7],16,-155497632),i=this.hh(i,r,a,n,t[o+10],23,-1094730640),n=this.hh(n,i,r,a,t[o+13],4,681279174),a=this.hh(a,n,i,r,t[o],11,-358537222),r=this.hh(r,a,n,i,t[o+3],16,-722521979),i=this.hh(i,r,a,n,t[o+6],23,76029189),n=this.hh(n,i,r,a,t[o+9],4,-640364487),a=this.hh(a,n,i,r,t[o+12],11,-421815835),r=this.hh(r,a,n,i,t[o+15],16,530742520),i=this.hh(i,r,a,n,t[o+2],23,-995338651),n=this.ii(n,i,r,a,t[o],6,-198630844),a=this.ii(a,n,i,r,t[o+7],10,1126891415),r=this.ii(r,a,n,i,t[o+14],15,-1416354905),i=this.ii(i,r,a,n,t[o+5],21,-57434055),n=this.ii(n,i,r,a,t[o+12],6,1700485571),a=this.ii(a,n,i,r,t[o+3],10,-1894986606),r=this.ii(r,a,n,i,t[o+10],15,-1051523),i=this.ii(i,r,a,n,t[o+1],21,-2054922799),n=this.ii(n,i,r,a,t[o+8],6,1873313359),a=this.ii(a,n,i,r,t[o+15],10,-30611744),r=this.ii(r,a,n,i,t[o+6],15,-1560198380),i=this.ii(i,r,a,n,t[o+13],21,1309151649),n=this.ii(n,i,r,a,t[o+4],6,-145523070),a=this.ii(a,n,i,r,t[o+11],10,-1120210379),r=this.ii(r,a,n,i,t[o+2],15,718787259),i=this.ii(i,r,a,n,t[o+9],21,-343485551),n=this.addme(n,s),i=this.addme(i,l),r=this.addme(r,c),a=this.addme(a,u),o+=16}return this.rhex(n)+this.rhex(i)+this.rhex(r)+this.rhex(a)},ii:function(e,t,n,i,r,a,o){return this.cmn(this.bitXOR(n,this.bitOR(t,~i)),e,t,r,a,o)},hh:function(e,t,n,i,r,a,o){return this.cmn(this.bitXOR(this.bitXOR(t,n),i),e,t,r,a,o)},gg:function(e,t,n,i,r,a,o){return this.cmn(this.bitOR(this.bitAND(t,i),this.bitAND(n,~i)),e,t,r,a,o)},ff:function(e,t,n,i,r,a,o){return this.cmn(this.bitOR(this.bitAND(t,n),this.bitAND(~t,i)),e,t,r,a,o)},cmn:function(e,t,n,i,r,a){return this.addme(this.rol(this.addme(this.addme(t,e),this.addme(i,a)),r),n)},rol:function(e,t){return e<<t|e>>>32-t},str2blks:function(e){for(var t=1+(e.length+8>>6),n=new Array,i=0,r=16*t;i<r;)n[a=i++]=0;for(var a=0;a<e.length;)n[a>>2]|=HxOverrides.cca(e,a)<<(8*e.length+a)%4*8,a++;n[a>>2]|=128<<(8*e.length+a)%4*8;var o=8*e.length,s=16*t-2;return n[s]=255&o,n[s]|=(o>>>8&255)<<8,n[s]|=(o>>>16&255)<<16,n[s]|=(o>>>24&255)<<24,n},rhex:function(e){for(var t="",n="0123456789abcdef",i=0;i<4;){var r=i++;t+=n.charAt(e>>8*r+4&15)+n.charAt(e>>8*r&15)}return t},addme:function(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n},bitAND:function(e,t){return(e>>>1&t>>>1)<<1|1&e&t},bitXOR:function(e,t){return(e>>>1^t>>>1)<<1|1&e^1&t},bitOR:function(e,t){return(e>>>1|t>>>1)<<1|1&e|1&t},__class__:haxe.Md5},haxe.Timer=function(e){var t=this;this.id=window.setInterval((function(){t.run()}),e)},haxe.Timer.__name__=!0,haxe.Timer.delay=function(e,t){var n=new haxe.Timer(t);return n.run=function(){n.stop(),e()},n},haxe.Timer.measure=function(e,t){var n=haxe.Timer.stamp(),i=e();return haxe.Log.trace(haxe.Timer.stamp()-n+"s",t),i},haxe.Timer.stamp=function(){return(new Date).getTime()/1e3},haxe.Timer.prototype={run:function(){},stop:function(){null!=this.id&&(window.clearInterval(this.id),this.id=null)},__class__:haxe.Timer};var js=js||{},$_;function $bind(e,t){var n=function(){return n.method.apply(n.scope,arguments)};return n.scope=e,n.method=t,n}js.Boot=function(){},js.Boot.__name__=!0,js.Boot.__unhtml=function(e){return e.split("&").join("&amp;").split("<").join("&lt;").split(">").join("&gt;")},js.Boot.__trace=function(e,t){var n,i=null!=t?t.fileName+":"+t.lineNumber+": ":"";i+=js.Boot.__string_rec(e,""),"undefined"!=typeof document&&null!=(n=document.getElementById("haxe:trace"))?n.innerHTML+=js.Boot.__unhtml(i)+"<br/>":"undefined"!=typeof console&&null!=console.log&&console.log(i)},js.Boot.__clear_trace=function(){var e=document.getElementById("haxe:trace");null!=e&&(e.innerHTML="")},js.Boot.isClass=function(e){return e.__name__},js.Boot.isEnum=function(e){return e.__ename__},js.Boot.getClass=function(e){return e.__class__},js.Boot.__string_rec=function(e,t){if(null==e)return"null";if(t.length>=5)return"<...>";var n=typeof e;switch("function"==n&&(e.__name__||e.__ename__)&&(n="object"),n){case"object":if(e instanceof Array){if(e.__enum__){if(2==e.length)return e[0];var i=e[0]+"(";t+="\t";for(var r=2,a=e.length;r<a;)i+=2!=(o=r++)?","+js.Boot.__string_rec(e[o],t):js.Boot.__string_rec(e[o],t);return i+")"}var o,s=e.length;for(i="[",t+="\t",a=0;a<s;){var l=a++;i+=(l>0?",":"")+js.Boot.__string_rec(e[l],t)}return i+"]"}var c;try{c=e.toString}catch(e){return"???"}if(null!=c&&c!=Object.toString){var u=e.toString();if("[object Object]"!=u)return u}var d=null;i="{\n",t+="\t";var m=null!=e.hasOwnProperty;for(var d in e)m&&!e.hasOwnProperty(d)||"prototype"!=d&&"__class__"!=d&&"__super__"!=d&&"__interfaces__"!=d&&"__properties__"!=d&&(2!=i.length&&(i+=", \n"),i+=t+d+" : "+js.Boot.__string_rec(e[d],t));return i+"\n"+(t=t.substring(1))+"}";case"function":return"<function>";case"string":return e;default:return String(e)}},js.Boot.__interfLoop=function(e,t){if(null==e)return!1;if(e==t)return!0;var n=e.__interfaces__;if(null!=n)for(var i=0,r=n.length;i<r;){var a=n[i++];if(a==t||js.Boot.__interfLoop(a,t))return!0}return js.Boot.__interfLoop(e.__super__,t)},js.Boot.__instanceof=function(e,t){try{if(e instanceof t)return t!=Array||null==e.__enum__;if(js.Boot.__interfLoop(e.__class__,t))return!0}catch(e){if(null==t)return!1}switch(t){case Int:return Math.ceil(e%2147483648)===e;case Float:return"number"==typeof e;case Bool:return!0===e||!1===e;case String:return"string"==typeof e;case Dynamic:return!0;default:return null!=e&&(t==Class&&null!=e.__name__||t==Enum&&null!=e.__ename__||e.__enum__==t)}},js.Boot.__cast=function(e,t){if(js.Boot.__instanceof(e,t))return e;throw"Cannot cast "+Std.string(e)+" to "+Std.string(t)},js.Lib=function(){},js.Lib.__name__=!0,js.Lib.debug=function(){},js.Lib.alert=function(e){alert(js.Boot.__string_rec(e,""))},js.Lib.eval=function(code){return eval(code)},js.Lib.setErrorHandler=function(e){js.Lib.onerror=e},Array.prototype.indexOf&&(HxOverrides.remove=function(e,t){var n=e.indexOf(t);return-1!=n&&(e.splice(n,1),!0)}),Math.__name__=["Math"],Math.NaN=Number.NaN,Math.NEGATIVE_INFINITY=Number.NEGATIVE_INFINITY,Math.POSITIVE_INFINITY=Number.POSITIVE_INFINITY,Math.isFinite=function(e){return isFinite(e)},Math.isNaN=function(e){return isNaN(e)},String.prototype.__class__=String,String.__name__=!0,Array.prototype.__class__=Array,Array.__name__=!0,Date.prototype.__class__=Date,Date.__name__=["Date"];var Int={__name__:["Int"]},Dynamic={__name__:["Dynamic"]},Float=Number;Float.__name__=["Float"];var Bool=Boolean;Bool.__ename__=["Bool"];var Class={__name__:["Class"]},Enum={},Void={__ename__:["Void"]};"undefined"!=typeof document&&(js.Lib.document=document),"undefined"!=typeof window&&(js.Lib.window=window,js.Lib.window.onerror=function(e,t,n){var i=js.Lib.onerror;return null!=i&&i(e,[t+":"+n])}),com.wiris.js.JsPluginTools.main()}(),delete Array.prototype.__class__},643:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>h});var i=n(567),r=n(583),a=n(704),o=n(41);class s{static removeImgDataAttributes(e){const t=[],{attributes:n}=e;Object.keys(n).forEach((e=>{const i=n[e];void 0!==i&&void 0!==i.name&&0===i.name.indexOf("data-")&&t.push(i.name)})),t.forEach((t=>{e.removeAttribute(t)}))}static clone(e,t){const n=o.A.get("imageCustomEditorName");e.hasAttribute(n)||t.removeAttribute(n),[o.A.get("imageMathmlAttribute"),n,"alt","height","width","style","src","role"].forEach((n=>{const i=e.getAttribute(n);i&&t.setAttribute(n,i)}))}static isSvg(e){return e.src.startsWith("data:image/svg+xml;")}static isBase64(e){return e.src.startsWith("data:image/svg+xml;base64,")||e.src.startsWith("data:image/png;base64,")}static setImgSize(e,t,n){let r,a,o,l;if(n)if(s.isSvg(e))if(s.isBase64(e)){a=e.src.substr(e.src.indexOf("base64,")+7,e.src.length),l="",o=i.A.b64ToByteArray(a,a.length);for(let e=0;e<o.length;e+=1)l+=String.fromCharCode(o[e]);r=s.getMetricsFromSvgString(l)}else r=s.getMetricsFromSvgString(t);else a=e.src.substr(e.src.indexOf("base64,")+7,e.src.length),o=i.A.b64ToByteArray(a,88),r=s.getMetricsFromBytes(o);else r=i.A.urlToAssArray(t);let c=r.cw;if(!c)return;let u=r.ch,d=r.cb;const{dpi:m}=r;m&&(c=96*c/m,u=96*u/m,d=96*d/m),e.width=c,e.height=u,e.style.verticalAlign=`-${u-d}px`}static fixAfterResize(e){e.removeAttribute("style"),e.removeAttribute("width"),e.removeAttribute("height"),e.style.maxWidth="none";const t=e=>{if(-1!==e.src.indexOf("data:image"))if(-1!==e.src.indexOf("data:image/svg+xml"))if(-1!==e.src.indexOf("data:image/svg+xml;base64,")){const t=e.getAttribute("src").substring(26),n=window.atob(t),i=encodeURIComponent(n);e.setAttribute("src",`data:image/svg+xml;charset=utf8,${i}`);const r=decodeURIComponent(e.src.substring(32,e.src.length));s.setImgSize(e,r,!0),e.setAttribute("src",`data:image/svg+xml;base64,${t}`)}else{const t=decodeURIComponent(e.src.substring(32,e.src.length));s.setImgSize(e,t,!0)}else{const t=e.src.substring(22,e.src.length);s.setImgSize(e,t,!0)}else s.setImgSize(e,e.src)};if(-1===e.src.indexOf("blob:"))t(e);else{let n=new FileReader;n.onload=function(){e.setAttribute("src",n.result),t(e)},fetch(e.src).then((e=>e.blob())).then((e=>{n.readAsDataURL(e)}))}}static getMetricsFromSvgString(e){let t=e.indexOf('height="'),n=e.indexOf('"',t+8,e.length);const i=e.substring(t+8,n);t=e.indexOf('width="'),n=e.indexOf('"',t+7,e.length);const r=e.substring(t+7,n);t=e.indexOf('wrs:baseline="'),n=e.indexOf('"',t+14,e.length);const a=e.substring(t+14,n);if(void 0!==r){const e=[];return e.cw=r,e.ch=i,void 0!==a&&(e.cb=a),e}return[]}static getMetricsFromBytes(e){let t,n,r,a,o;for(i.A.readBytes(e,0,8);e.length>=4;)r=i.A.readInt32(e),1229472850===r?(t=i.A.readInt32(e),n=i.A.readInt32(e),i.A.readInt32(e),i.A.readByte(e)):1650545477===r?a=i.A.readInt32(e):1883789683===r&&(o=i.A.readInt32(e),o=Math.round(o/39.37),i.A.readInt32(e),i.A.readByte(e)),i.A.readInt32(e);if(void 0!==t){const e=[];return e.cw=t,e.ch=n,e.dpi=o,a&&(e.cb=a),e}return[]}}var l=n(756),c=n(22),u=n(56);class d{static get cache(){return d._cache}static set cache(e){d._cache=e}static mathMLToAccessible(e,t,n){void 0===t&&(t="en"),a.default.containClass(e,"wrs_chemistry")&&(n.mode="chemistry"),n.ignoreStyles=!0;let i="";if(d.cache.get(e))i=d.cache.get(e);else{n.service="mathml2accessible",n.lang=t;const r=JSON.parse(c.A.getService("service",n));"error"!==r.status?(i=r.result.text,d.cache.populate(e,i)):i=u.A.get("error_convert_accessibility")}return i}}d._cache=new l.A;var m=n(178);n(23);class h{static mathmlToImgObject(e,t,n,r){const l=e.createElement("img");l.align="middle",l.style.maxWidth="none";let u=n||{};if(u={...o.A.get("editorParameters"),...u},u.mml=t,u.lang=r,u.metrics="true",u.centerbaseline="false","base64"===o.A.get("saveMode")&&"default"===o.A.get("base64savemode")&&(u.base64=!0),l.className=o.A.get("imageClassName"),-1!==t.indexOf('class="')){let e=t.substring(t.indexOf('class="')+7,t.length);e=e.substring(0,e.indexOf('"')),e=e.substring(4,e.length),l.setAttribute(o.A.get("imageCustomEditorName"),e)}if(!o.A.get("wirisPluginPerformance")||"xml"!==o.A.get("saveMode")&&"safeXml"!==o.A.get("saveMode")){const e=h.createImageSrc(t,u);l.setAttribute(o.A.get("imageMathmlAttribute"),a.default.safeXmlEncode(t)),l.src=e,s.setImgSize(l,e,"base64"===o.A.get("saveMode")&&"default"===o.A.get("base64savemode")),o.A.get("enableAccessibility")&&(l.alt=d.mathMLToAccessible(t,r,u))}else{let e=JSON.parse(h.createShowImageSrc(u,r));if("warning"===e.status)try{e=JSON.parse(c.A.getService("showimage",u))}catch(e){return null}({result:e}=e),"png"===e.format?l.src=`data:image/png;base64,${e.content}`:l.src=`data:image/svg+xml;charset=utf8,${i.A.urlEncode(e.content)}`,l.setAttribute(o.A.get("imageMathmlAttribute"),a.default.safeXmlEncode(t)),s.setImgSize(l,e.content,!0),o.A.get("enableAccessibility")&&(void 0===e.alt?l.alt=d.mathMLToAccessible(t,r,u):l.alt=e.alt)}return void 0!==h.observer&&h.observer.observe(l),l.setAttribute("role","math"),l}static createImageSrc(e,t){"base64"===o.A.get("saveMode")&&"default"===o.A.get("base64savemode")&&(t.base64=!0);let n=c.A.getService("createimage",t);if(-1!==n.indexOf("@BASE@")){const e=c.A.getServicePath("createimage").split("/");e.pop(),n=n.split("@BASE@").join(e.join("/"))}return n}static initParse(e,t){return e=h.initParseSaveMode(e,t),h.initParseEditMode(e)}static initParseSaveMode(e,t){return o.A.get("saveMode")&&(e=r.A.parseMathmlToLatex(e,m.A.safeXmlCharacters),e=r.A.parseMathmlToLatex(e,m.A.xmlCharacters),e=h.parseMathmlToImg(e,m.A.safeXmlCharacters,t),e=h.parseMathmlToImg(e,m.A.xmlCharacters,t),"base64"===o.A.get("saveMode")&&"image"===o.A.get("base64savemode")&&(e=h.codeImgTransform(e,"base642showimage"))),e}static initParseEditMode(e){if(-1!==o.A.get("parseModes").indexOf("latex")){const t=i.A.getElementsByNameFromString(e,"img",!0),n='encoding="LaTeX">';let r=0;for(let s=0;s<t.length;s+=1){const l=e.substring(t[s].start+r,t[s].end+r);if(-1!==l.indexOf(` class="${o.A.get("imageClassName")}"`)){let c=` ${o.A.get("imageMathmlAttribute")}="`,u=l.indexOf(c);if(-1===u&&(c=' alt="',u=l.indexOf(c)),-1!==u){u+=c.length;const o=l.indexOf('"',u),d=i.A.htmlSanitize(a.default.safeXmlDecode(l.substring(u,o)));let m=d.indexOf(n);if(-1!==m){m+=n.length;const a=d.indexOf("</annotation>",m),o=d.substring(m,a),l=`$$${i.A.htmlEntitiesDecode(o)}$$`,c=e.substring(0,t[s].start+r),u=e.substring(t[s].end+r);e=c+l+u,r+=l.length-(t[s].end-t[s].start)}}}}}return e}static endParse(e){const t=h.endParseEditMode(e);return h.endParseSaveMode(t)}static endParseEditMode(e){if(-1!==o.A.get("parseModes").indexOf("latex")){let t="",n=0,s=e.indexOf("$$");for(;-1!==s;){if(t+=e.substring(n,s),n=e.indexOf("$$",s+2),-1!==n){const l=e.substring(s+2,n),c=i.A.htmlEntitiesDecode(l);let u=i.A.htmlSanitize(r.A.getMathMLFromLatex(c,!0));o.A.get("saveHandTraces")||(u=a.default.removeAnnotation(u,"application/json")),t+=u,n+=2}else t+="$$",n=s+2;s=e.indexOf("$$",n)}t+=e.substring(n,e.length),e=t}return e}static endParseSaveMode(e){return o.A.get("saveMode")&&("safeXml"===o.A.get("saveMode")||"xml"===o.A.get("saveMode")?e=h.codeImgTransform(e,"img2mathml"):"base64"===o.A.get("saveMode")&&"image"===o.A.get("base64savemode")&&(e=h.codeImgTransform(e,"img264"))),e}static createShowImageSrcData(e,t){const n={};["mml","color","centerbaseline","zoom","dpi","fontSize","fontFamily","defaultStretchy","backgroundColor","format"].forEach((t=>{void 0!==e[t]&&(n[t]=e[t])}));const r={};return Object.keys(e).forEach((t=>{"mml"!==t&&(r[t]=e[t])})),r.formula=com.wiris.js.JsPluginTools.md5encode(i.A.propertiesToString(n)),r.lang=void 0===t?"en":t,r.version=o.A.get("version"),r}static createShowImageSrc(e,t){const n=this.createShowImageSrcData(e,t);return c.A.getService("showimage",i.A.httpBuildQuery(n),!0)}static codeImgTransform(e,t){let n="",r=0;const l=/<img/gi,c=l.source.length;for(;l.test(e);){const u=l.lastIndex-c;n+=e.substring(r,u);let d=u+1;for(;d<e.length&&r<=u;){const t=e.charAt(d);if('"'===t||"'"===t){const n=e.indexOf(t,d+1);d=-1===n?e.length:n}else">"===t&&(r=d+1);d+=1}if(r<u)return n+=e.substring(u,e.length),n;let m=e.substring(u,r);const f=i.A.createObject(m);let p,_,g=f.getAttribute(o.A.get("imageMathmlAttribute"));if("base642showimage"===t)null==g&&(g=f.getAttribute("alt")),g=a.default.safeXmlDecode(g),m=h.mathmlToImgObject(document,g,null,null),n+=i.A.createObjectCode(m);else if("img2mathml"===t)o.A.get("saveMode")&&("safeXml"===o.A.get("saveMode")?(p=!0,_=!0):"xml"===o.A.get("saveMode")&&(p=!0,_=!1)),n+=i.A.getWIRISImageOutput(m,p,_);else if("img264"===t){null===g&&(g=f.getAttribute("alt")),g=a.default.safeXmlDecode(g);const e={base64:"true"};m=h.mathmlToImgObject(document,g,e,null),s.setImgSize(m,m.src,!0),n+=i.A.createObjectCode(m)}}return n+=e.substring(r,e.length),n}static parseMathmlToImg(e,t,n){let r="";const s=`${t.tagOpener}math`,l=`${t.tagOpener}/math${t.tagCloser}`;let c=e.indexOf(s),u=0;for(;-1!==c;){r+=e.substring(u,c);const d=e.indexOf(o.A.get("imageMathmlAttribute"));if(u=e.indexOf(l,c),-1===u?u=e.length-1:u+=-1!==d?e.indexOf("/>",c):l.length,a.default.isMathmlInAttribute(e,c)||-1!==d)r+=e.substring(c,u);else{let o=e.substring(c,u);o=t.id===m.A.safeXmlCharacters.id?a.default.safeXmlDecode(o):a.default.mathMLEntities(o),r+=i.A.createObjectCode(h.mathmlToImgObject(document,o,null,n))}c=e.indexOf(s,u)}return r+=e.substring(u,e.length),r}}if("undefined"!=typeof MutationObserver){const e=new MutationObserver((e=>{e.forEach((e=>{e.oldValue===o.A.get("imageClassName")&&"class"===e.attributeName&&-1===e.target.className.indexOf(o.A.get("imageClassName"))&&(e.target.className=o.A.get("imageClassName"))}))}));h.observer=Object.create(e),h.observer.Config={attributes:!0,attributeOldValue:!0},h.observer.observe=function(e){Object.getPrototypeOf(this).observe(e,this.Config)}}},22:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var i=n(567),r=n(41);class a{static get listeners(){return a._listeners}static addListener(e){a.listeners.add(e)}static fireEvent(e,t){a.listeners.fire(e,t)}static get parameters(){return a._parameters}static set parameters(e){a._parameters=e}static get servicePaths(){return a._servicePaths}static set servicePaths(e){a._servicePaths=e}static setServicePath(e,t){a.servicePaths[e]=t}static getServicePath(e){return a.servicePaths[e]}static get integrationPath(){return a._integrationPath}static set integrationPath(e){a._integrationPath=e}static getServerURL(){const e=window.location.href.split("/");return`${e[0]}//${e[2]}`}static init(e){a.parameters=e;let t=a.createServiceURI("configurationjs"),n=a.createServiceURI("createimage"),i=a.createServiceURI("showimage"),r=a.createServiceURI("getmathml"),o=a.createServiceURI("service");if(0===a.parameters.URI.indexOf("/")){const e=a.getServerURL();t=e+t,i=e+i,n=e+n,r=e+r,o=e+o}a.setServicePath("configurationjs",t),a.setServicePath("showimage",i),a.setServicePath("createimage",n),a.setServicePath("service",o),a.setServicePath("getmathml",r),a.setServicePath("configurationjs",t),a.listeners.fire("onInit",{})}static getUrl(e,t){const n=window.location.toString().substr(0,window.location.toString().lastIndexOf("/")+1),a=i.A.createHttpRequest();if(a){void 0===t||void 0===t?a.open("GET",e,!1):"/"===e.substr(0,1)||"http://"===e.substr(0,7)||"https://"===e.substr(0,8)?a.open("POST",e,!1):a.open("POST",n+e,!1);let o=r.A.get("customHeaders");return o&&(o=o.toString(),o.split(",").map((e=>e.trim().split("="))).forEach((([e,t])=>a.setRequestHeader(e,t)))),void 0!==t&&t?(a.setRequestHeader("Content-type","application/x-www-form-urlencoded; charset=UTF-8"),a.send(i.A.httpBuildQuery(t))):a.send(null),a.responseText}return""}static getService(e,t,n){let i;if(!0===n){const n=t?`?${t}`:"",r=`${a.getServicePath(e)}${n}`;i=a.getUrl(r)}else{const n=a.getServicePath(e);i=a.getUrl(n,t)}return i}static getServerLanguageFromService(e){return-1!==e.indexOf(".php")?"php":-1!==e.indexOf(".aspx")?"aspx":-1!==e.indexOf("wirispluginengine")?"ruby":"java"}static createServiceURI(e){const t=a.serverExtension();return i.A.concatenateUrl(a.parameters.URI,e)+t}static serverExtension(){return-1!==a.parameters.server.indexOf("php")?".php":-1!==a.parameters.server.indexOf("aspx")?".aspx":""}}a._servicePaths={},a._integrationPath="",a._listeners=new class{constructor(){this.listeners=[]}add(e){this.listeners.push(e)}fire(e,t){for(let n=0;n<this.listeners.length&&!t.cancelled;n+=1)this.listeners[n].eventName===e&&this.listeners[n].callback(t);return t.defaultPrevented}static newListener(e,t){const n={};return n.eventName=e,n.callback=t,n}},a._parameters={}},56:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const i=JSON.parse('{"ar":{"latex":"LaTeX","cancel":"إلغاء","accept":"إدراج","manual":"الدليل","insert_math":"إدراج صيغة رياضية - MathType","insert_chem":"إدراج صيغة كيميائية - ChemType","minimize":"تصغير","maximize":"تكبير","fullscreen":"ملء الشاشة","exit_fullscreen":"الخروج من ملء الشاشة","close":"إغلاق","mathtype":"MathType","title_modalwindow":"نافذة MathType مشروطة","close_modal_warning":"هل تريد المغادرة بالتأكيد؟ ستُفقد التغييرات التي أجريتها.","latex_name_label":"صيغة Latex","browser_no_compatible":"المستعرض غير متوافق مع تقنية AJAX. الرجاء استخدام أحدث إصدار من Mozilla Firefox.","error_convert_accessibility":"حدث خطأ أثناء التحويل من MathML إلى نص قابل للاستخدام.","exception_cross_site":"البرمجة النصية للمواقع المشتركة مسموح بها لـ HTTP فقط.","exception_high_surrogate":"المركّب المرتفع غير متبوع بمركّب منخفض في fixedCharCodeAt()‎","exception_string_length":"سلسلة غير صالحة. يجب أن يكون الطول من مضاعفات العدد 4","exception_key_nonobject":"Object.keys مستدعاة على غير كائن","exception_null_or_undefined":" هذا فارغ أو غير محدد","exception_not_function":" ليست دالة","exception_invalid_date_format":"تنسيق تاريخ غير صالح: ","exception_casting":"لا يمكن الصياغة ","exception_casting_to":" إلى "},"ca":{"latex":"LaTeX","cancel":"Cancel·lar","accept":"Inserir","manual":"Manual","insert_math":"Inserir fórmula matemàtica - MathType","insert_chem":"Inserir fórmula química - ChemType","minimize":"Minimitza","maximize":"Maximitza","fullscreen":"Pantalla completa","exit_fullscreen":"Sortir de la pantalla complera","close":"Tanca","mathtype":"MathType","title_modalwindow":" Finestra modal de MathType","close_modal_warning":"N\'estàs segur que vols sortir? Es perdran els canvis que has fet.","latex_name_label":"Fórmula en Latex","browser_no_compatible":"El teu navegador no és compatible amb AJAX. Si us plau, usa la darrera versió de Mozilla Firefox.","error_convert_accessibility":"Error en convertir de MathML a text accessible.","exception_cross_site":"Els scripts de llocs creuats només estan permesos per HTTP.","exception_high_surrogate":"Subrogat alt no seguit de subrogat baix a fixedCharCodeAt()","exception_string_length":"Cadena invàlida. La longitud ha de ser un múltiple de 4","exception_key_nonobject":"Object.keys anomenat a non-object","exception_null_or_undefined":" això és null o no definit","exception_not_function":" no és una funció","exception_invalid_date_format":"Format de data invàlid : ","exception_casting":"No es pot emetre ","exception_casting_to":" a "},"cs":{"latex":"LaTeX","cancel":"Storno","accept":"Vložit","manual":"Příručka","insert_math":"Vložit matematický vzorec - MathType","insert_chem":"Vložení chemického vzorce – ChemType","minimize":"Minimalizovat","maximize":"Maximalizovat","fullscreen":"Celá obrazovka","exit_fullscreen":"Opustit režim celé obrazovky","close":"Zavřít","mathtype":"MathType","title_modalwindow":"Modální okno MathType","close_modal_warning":"Opravdu chcete okno zavřít? Provedené změny budou ztraceny.","latex_name_label":"Vzorec v LaTeXu","browser_no_compatible":"Váš prohlížeč nepodporuje technologii AJAX. Použijte nejnovější verzi prohlížeče Mozilla Firefox.","error_convert_accessibility":"Při převodu kódu MathML na čitelný text došlo k chybě.","exception_cross_site":"Skriptování mezi více servery je povoleno jen v HTTP.","exception_high_surrogate":"Ve funkci fixedCharCodeAt() nenásleduje po první části kódu znaku druhá část","exception_string_length":"Neplatný řetězec. Délka musí být násobkem 4.","exception_key_nonobject":"Funkce Object.keys byla použita pro prvek, který není objektem","exception_null_or_undefined":" hodnota je null nebo není definovaná","exception_not_function":" není funkce","exception_invalid_date_format":"Neplatný formát data: ","exception_casting":"Nelze přetypovat ","exception_casting_to":" na "},"da":{"latex":"LaTeX","cancel":"Annuller","accept":"Indsæt","manual":"Brugervejledning","insert_math":"Indsæt matematisk formel - MathType","insert_chem":"Indsæt en kemisk formel - ChemType","minimize":"Minimer","maximize":"Maksimer","fullscreen":"Fuld skærm","exit_fullscreen":"Afslut Fuld skærm","close":"Luk","mathtype":"MathType","title_modalwindow":"MathType-modalvindue","close_modal_warning":"Er du sikker på, du vil lukke? Dine ændringer går tabt.","latex_name_label":"LaTex-formel","browser_no_compatible":"Din browser er ikke kompatibel med AJAX-teknologi. Brug den nyeste version af Mozilla Firefox.","error_convert_accessibility":"Fejl under konvertering fra MathML til tilgængelig tekst.","exception_cross_site":"Scripts på tværs af websteder er kun tilladt for HTTP.","exception_high_surrogate":"Et højt erstatningstegn er ikke fulgt af et lavt erstatningstegn i fixedCharCodeAt()","exception_string_length":"Ugyldig streng. Længden skal være et multiplum af 4","exception_key_nonobject":"Object.keys kaldet ved ikke-objekt","exception_null_or_undefined":" dette er nul eller ikke defineret","exception_not_function":" er ikke en funktion","exception_invalid_date_format":"Ugyldigt datoformat: ","exception_casting":"Kan ikke beregne ","exception_casting_to":" til "},"de":{"latex":"LaTeX","cancel":"Abbrechen","accept":"Einfügen","manual":"Handbuch","insert_math":"Mathematische Formel einfügen - MathType","insert_chem":"Eine chemische Formel einfügen – ChemType","minimize":"Verkleinern","maximize":"Vergrößern","fullscreen":"Vollbild","exit_fullscreen":"Vollbild schließen","close":"Schließen","mathtype":"MathType","title_modalwindow":"Modales MathType-Fenster","close_modal_warning":"Bist du sicher, dass du das Programm verlassen willst? Alle vorgenommenen Änderungen gehen damit verloren.","latex_name_label":"Latex-Formel","browser_no_compatible":"Dein Browser ist nicht mit der AJAX-Technologie kompatibel. Verwende bitte die neueste Version von Mozilla Firefox.","error_convert_accessibility":"Fehler beim Konvertieren von MathML in barrierefreien Text.","exception_cross_site":"Cross-Site-Scripting ist nur bei HTTP zulässig.","exception_high_surrogate":"Hoher Ersatz bei bei festerZeichenkodierungbei() nicht von niedrigem Ersatz befolgt.","exception_string_length":"Ungültige Zeichenfolge. Länge muss ein Vielfaches von 4 sein.","exception_key_nonobject":"Object.keys wurde für ein Nicht-Objekt aufgerufen.","exception_null_or_undefined":" Das ist Null oder nicht definiert.","exception_not_function":" ist keine Funktion","exception_invalid_date_format":"Ungültiges Datumsformat: ","exception_casting":"Umwandlung nicht möglich ","exception_casting_to":" zu "},"el":{"latex":"LaTeX","cancel":"Άκυρο","accept":"Εισαγωγή","manual":"Χειροκίνητα","insert_math":"Εισαγωγή μαθηματικού τύπου - MathType","insert_chem":"Εισαγωγή χημικού τύπου - ChemType","minimize":"Ελαχιστοποίηση","maximize":"Μεγιστοποίηση","fullscreen":"Πλήρης οθόνη","exit_fullscreen":"Έξοδος από πλήρη οθόνη","close":"Κλείσιμο","mathtype":"MathType","title_modalwindow":"Τροπικό παράθυρο MathType","close_modal_warning":"Επιθυμείτε σίγουρα αποχώρηση; Θα χαθούν οι αλλαγές που έχετε κάνει.","latex_name_label":"Τύπος LaTeX","browser_no_compatible":"Το πρόγραμμα περιήγησής σας δεν είναι συμβατό με την τεχνολογία AJAX. Χρησιμοποιήστε την πιο πρόσφατη έκδοση του Mozilla Firefox.","error_convert_accessibility":"Σφάλμα κατά τη μετατροπή από MathML σε προσβάσιμο κείμενο.","exception_cross_site":"Το XSS (Cross site scripting) επιτρέπεται μόνο για HTTP.","exception_high_surrogate":"Το υψηλό υποκατάστατο δεν ακολουθείται από χαμηλό υποκατάστατο στο fixedCharCodeAt()","exception_string_length":"Μη έγκυρη συμβολοσειρά. Το μήκος πρέπει να είναι πολλαπλάσιο του 4","exception_key_nonobject":"Έγινε κλήση του Object.keys σε μη αντικείμενο","exception_null_or_undefined":" αυτό είναι μηδενικό ή δεν έχει οριστεί","exception_not_function":" δεν είναι συνάρτηση","exception_invalid_date_format":"Μη έγκυρη μορφή ημερομηνίας: ","exception_casting":"Δεν είναι δυνατή η μετατροπή ","exception_casting_to":" σε "},"en":{"latex":"LaTeX","cancel":"Cancel","accept":"Insert","manual":"Manual","insert_math":"Insert a math equation - MathType","insert_chem":"Insert a chemistry formula - ChemType","minimize":"Minimize","maximize":"Maximize","fullscreen":"Full-screen","exit_fullscreen":"Exit full-screen","close":"Close","mathtype":"MathType","title_modalwindow":"MathType modal window","close_modal_warning":"Are you sure you want to leave? The changes you made will be lost.","latex_name_label":"Latex Formula","browser_no_compatible":"Your browser is not compatible with AJAX technology. Please, use the latest version of Mozilla Firefox.","error_convert_accessibility":"Error converting from MathML to accessible text.","exception_cross_site":"Cross site scripting is only allowed for HTTP.","exception_high_surrogate":"High surrogate not followed by low surrogate in fixedCharCodeAt()","exception_string_length":"Invalid string. Length must be a multiple of 4","exception_key_nonobject":"Object.keys called on non-object","exception_null_or_undefined":" this is null or not defined","exception_not_function":" is not a function","exception_invalid_date_format":"Invalid date format : ","exception_casting":"Cannot cast ","exception_casting_to":" to "},"es":{"latex":"LaTeX","cancel":"Cancelar","accept":"Insertar","manual":"Manual","insert_math":"Insertar fórmula matemática - MathType","insert_chem":"Insertar fórmula química - ChemType","minimize":"Minimizar","maximize":"Maximizar","fullscreen":"Pantalla completa","exit_fullscreen":"Salir de pantalla completa","close":"Cerrar","mathtype":"MathType","title_modalwindow":"Ventana modal de MathType","close_modal_warning":"Seguro que quieres cerrar? Los cambios que has hecho se perderán","latex_name_label":"Formula en Latex","browser_no_compatible":"Tu navegador no es complatible con AJAX. Por favor, usa la última version de Mozilla Firefox.","error_convert_accessibility":"Error conviertiendo una fórmula MathML a texto accesible.","exception_cross_site":"Cross site scripting solo está permitido para HTTP.","exception_high_surrogate":"Subrogado alto no seguido por subrogado bajo en fixedCharCodeAt()","exception_string_length":"Cadena no válida. La longitud debe ser múltiplo de 4","exception_key_nonobject":"Object.keys called on non-object","exception_null_or_undefined":" esto es null o no definido","exception_not_function":" no es una función","exception_invalid_date_format":"Formato de fecha inválido: ","exception_casting":"No se puede emitir","exception_casting_to":" a "},"et":{"latex":"LaTeX","cancel":"Loobu","accept":"Lisa","manual":"Käsiraamat","insert_math":"Lisa matemaatiline valem – WIRIS","insert_chem":"Lisa keemiline valem – ChemType","minimize":"Minimeeri","maximize":"Maksimeeri","fullscreen":"Täiskuva","exit_fullscreen":"Välju täiskuvalt","close":"Sule","mathtype":"MathType","title_modalwindow":"MathType\'i modaalaken","close_modal_warning":"Kas soovite kindlasti lahkuda? Tehtud muudatused lähevad kaduma.","latex_name_label":"Latexi valem","browser_no_compatible":"Teie brauser ei ühildu AJAXi tehnoloogiaga. Palun kasutage Mozilla Firefoxi uusimat versiooni.","error_convert_accessibility":"Tõrge teisendamisel MathML-ist muudetavaks tekstiks.","exception_cross_site":"Ristskriptimine on lubatud ainult HTTP kasutamisel.","exception_high_surrogate":"Funktsioonis fixedCharCodeAt() ei järgne kõrgemale asendusliikmele madalam asendusliige.","exception_string_length":"Vigane string. Pikkus peab olema 4 kordne.","exception_key_nonobject":"Protseduur Object.keys kutsuti mitteobjekti korral.","exception_null_or_undefined":" see on null või määramata","exception_not_function":" ei ole funktsioon","exception_invalid_date_format":"Sobimatu kuupäeva kuju: ","exception_casting":"Esitamine ei õnnestu ","exception_casting_to":" – "},"eu":{"latex":"LaTeX","cancel":"Ezeztatu","accept":"Txertatu","manual":"Gida","insert_math":"Txertatu matematikako formula - MathType","insert_chem":"Txertatu formula kimiko bat - ChemType","minimize":"Ikonotu","maximize":"Maximizatu","fullscreen":"Pantaila osoa","exit_fullscreen":"Irten pantaila osotik","close":"Itxi","mathtype":"MathType","title_modalwindow":"MathType leiho modala","close_modal_warning":"Ziur irten nahi duzula? Egiten dituzun aldaketak galdu egingo dira.","latex_name_label":"LaTex Formula","browser_no_compatible":"Zure arakatzailea ez da bateragarria AJAX teknologiarekin. Erabili Mozilla Firefoxen azken bertsioa.","error_convert_accessibility":"Errorea MathMLtik testu irisgarrira bihurtzean.","exception_cross_site":"Gune arteko scriptak HTTPrako soilik onartzen dira.","exception_high_surrogate":"Ordezko baxuak ez dio ordezko altuari jarraitzen, hemen: fixedCharCodeAt()","exception_string_length":"Kate baliogabea. Luzerak 4ren multiploa izan behar du","exception_key_nonobject":"Object.keys deitu zaio objektua ez den zerbaiti","exception_null_or_undefined":" nulua edo definitu gabea da","exception_not_function":" ez da funtzio bat","exception_invalid_date_format":"Data-formatu baliogabea : ","exception_casting":"Ezin da igorri ","exception_casting_to":" honi "},"fi":{"latex":"LaTeX","cancel":"Peruuta","accept":"Lisää","manual":"Manual","insert_math":"Liitä matemaattinen kaava - MathType","insert_chem":"Lisää kemian kaava - ChemType","minimize":"Pienennä","maximize":"Suurenna","fullscreen":"Koko ruutu","exit_fullscreen":"Poistu koko ruudun tilasta","close":"Sulje","mathtype":"MathType","title_modalwindow":"MathTypen modaalinen ikkuna","close_modal_warning":"Oletko varma, että haluat poistua? Menetät tekemäsi muutokset.","latex_name_label":"Latex-kaava","browser_no_compatible":"Selaimesi ei tue AJAX-tekniikkaa. Ole hyvä ja käytä uusinta Firefox-versiota.","error_convert_accessibility":"Virhe muunnettaessa MathML:stä tekstiksi.","exception_cross_site":"Cross site scripting sallitaan vain HTTP:llä.","exception_high_surrogate":"fixedCharCodeAt(): yläsijaismerkkiä ei seurannut alasijaismerkki","exception_string_length":"Epäkelpo merkkijono. Pituuden on oltava 4:n kerrannainen","exception_key_nonobject":"Object.keys kutsui muuta kuin oliota","exception_null_or_undefined":" tämä on null tai ei määritelty","exception_not_function":" ei ole funktio","exception_invalid_date_format":"Virheellinen päivämäärämuoto : ","exception_casting":"Ei voida muuntaa tyyppiä ","exception_casting_to":" tyyppiin "},"fr":{"latex":"LaTeX","cancel":"Annuler","accept":"Insérer","manual":"Manuel","insert_math":"Insérer une formule mathématique - MathType","insert_chem":"Insérer une formule chimique - ChemType","minimize":"Minimiser","maximize":"Maximiser","fullscreen":"Plein écran","exit_fullscreen":"Quitter le plein écran","close":"Fermer","mathtype":"MathType","title_modalwindow":"Fenêtre modale MathType","close_modal_warning":"Confirmez-vous vouloir fermer ? Les changements effectués seront perdus.","latex_name_label":"Formule LaTeX","browser_no_compatible":"Votre navigateur n’est pas compatible avec la technologie AJAX. Veuillez utiliser la dernière version de Mozilla Firefox.","error_convert_accessibility":"Une erreur de conversion du format MathML en texte accessible est survenue.","exception_cross_site":"Le cross-site scripting n’est autorisé que pour HTTP.","exception_high_surrogate":"Substitut élevé non suivi d’un substitut inférieur dans fixedCharCodeAt()","exception_string_length":"Chaîne non valide. Longueur limitée aux multiples de 4","exception_key_nonobject":"Object.keys appelé sur un non-objet","exception_null_or_undefined":" nul ou non défini","exception_not_function":" n’est pas une fonction","exception_invalid_date_format":"Format de date non valide : ","exception_casting":"Impossible de convertir ","exception_casting_to":" sur "},"gl":{"latex":"LaTeX","cancel":"Cancelar","accept":"Inserir","manual":"Manual","insert_math":"Inserir unha fórmula matemática - MathType","insert_chem":"Inserir unha fórmula química - ChemType","minimize":"Minimizar","maximize":"Maximizar","fullscreen":"Pantalla completa","exit_fullscreen":"Saír da pantalla completa","close":"Pechar","mathtype":"MathType","title_modalwindow":"Ventá modal de MathType","close_modal_warning":"Seguro que quere saír? Perderanse os cambios realizados.","latex_name_label":"Fórmula Latex","browser_no_compatible":"O seu explorador non é compatible coa tecnoloxía AJAX. Use a versión máis recente de Mozilla Firefox.","error_convert_accessibility":"Erro ao converter de MathML a texto accesible.","exception_cross_site":"Os scripts de sitios só se permiten para HTTP.","exception_high_surrogate":"Suplente superior non seguido por suplente inferior en fixedCharCodeAt()","exception_string_length":"Cadea non válida. A lonxitude debe ser un múltiplo de 4","exception_key_nonobject":"Claves de obxecto chamadas en non obxecto","exception_null_or_undefined":" nulo ou non definido","exception_not_function":" non é unha función","exception_invalid_date_format":"Formato de data non válido: ","exception_casting":"Non se pode converter ","exception_casting_to":" a "},"he":{"latex":"LaTeX","cancel":"ביטול","accept":"עדכון","manual":"ידני","insert_math":"הוספת נוסחה מתמטית - MathType","insert_chem":"הוספת כתיבה כימית - ChemType","minimize":"מזערי","maximize":"מרבי","fullscreen":"מסך מלא","exit_fullscreen":"יציאה ממצב מסך מלא","close":"סגירה","mathtype":"MathType","title_modalwindow":"חלון מודאלי של MathType","close_modal_warning":"האם לצאת? שינויים אשר בוצעו ימחקו.","latex_name_label":"נוסחת Latex","browser_no_compatible":"הדפדפן שלך אינו תואם לטכנולוגיית AJAX. יש להשתמש בגרסה העדכנית ביותר של Mozilla Firefox.","error_convert_accessibility":"שגיאה בהמרה מ-MathML לטקסט נגיש.","exception_cross_site":"סקריפטינג חוצה-אתרים מורשה עבור HTTP בלבד.","exception_high_surrogate":"ערך ממלא מקום גבוה אינו מופיע אחרי ערך ממלא מקום נמוך ב-fixedCharCodeAt()‎","exception_string_length":"מחרוזת לא חוקית. האורך חייב להיות כפולה של 4","exception_key_nonobject":"בוצעה קריאה אל Object.keys ברכיב שאינו אובייקט","exception_null_or_undefined":" הוא Null או לא מוגדר","exception_not_function":"איננה פונקציה","exception_invalid_date_format":"תסדיר תאריך אינו תקין : ","exception_casting":"לא ניתן להמיר ","exception_casting_to":" ל "},"hr":{"latex":"LaTeX","cancel":"Poništi","accept":"Umetni","manual":"Priručnik","insert_math":"Umetnite matematičku formulu - MathType","insert_chem":"Umetnite kemijsku formulu - ChemType","minimize":"Minimiziraj","maximize":"Maksimiziraj","fullscreen":"Cijeli zaslon","exit_fullscreen":"Izlaz iz prikaza na cijelom zaslonu","close":"Zatvori","mathtype":"MathType","title_modalwindow":"MathType modalni prozor","close_modal_warning":"Sigurno želite zatvoriti? Izgubit će se unesene promjene.","latex_name_label":"Latex formula","browser_no_compatible":"Vaš preglednik nije kompatibilan s AJAX tehnologijom. Upotrijebite najnoviju verziju Mozilla Firefoxa.","error_convert_accessibility":"Pogreška konverzije iz MathML-a u dostupni tekst.","exception_cross_site":"Skriptiranje na različitim web-mjestima dopušteno je samo za HTTP.","exception_high_surrogate":"Iza visoke zamjene ne slijedi niska zamjena u fixedCharCodeAt()","exception_string_length":"Nevažeći niz. Duljina mora biti višekratnik broja 4","exception_key_nonobject":"Object.keys pozvano na ne-objekt","exception_null_or_undefined":" ovo je nula ili nije definirano","exception_not_function":" nije funkcija","exception_invalid_date_format":"Nevažeći format datuma : ","exception_casting":"Ne može se poslati ","exception_casting_to":" na "},"hu":{"latex":"LaTeX","cancel":"Mégsem","accept":"Beszúrás","manual":"Kézikönyv","insert_math":"Matematikai képlet beszúrása - MathType","insert_chem":"Kémiai képet beillesztése - ChemType","minimize":"Kis méret","maximize":"Nagy méret","fullscreen":"Teljes képernyő","exit_fullscreen":"Teljes képernyő elhagyása","close":"Bezárás","mathtype":"MathType","title_modalwindow":"MathType modális ablak","close_modal_warning":"Biztosan kilép? A módosítások el fognak veszni.","latex_name_label":"Latex képlet","browser_no_compatible":"A böngészője nem kompatibilis az AJAX technológiával. Használja a Mozilla Firefox legújabb verzióját.","error_convert_accessibility":"Hiba lépett fel a MathML szöveggé történő konvertálása során.","exception_cross_site":"Az oldalak közti scriptelés csak HTTP esetén engedélyezett.","exception_high_surrogate":"A magas helyettesítő karaktert nem alacsony helyettesítő karakter követi a fixedCharCodeAt() esetében","exception_string_length":"Érvénytelen karakterlánc. A hossznak a 4 többszörösének kell lennie","exception_key_nonobject":"Az Object.keys egy nem objektumra került meghívásra","exception_null_or_undefined":" null vagy nem definiált","exception_not_function":" nem függvény","exception_invalid_date_format":"Érvénytelen dátumformátum: ","exception_casting":"Nem alkalmazható ","exception_casting_to":" erre "},"id":{"latex":"LaTeX","cancel":"Membatalkan","accept":"Masukkan","manual":"Manual","insert_math":"Masukkan rumus matematika - MathType","insert_chem":"Masukkan rumus kimia - ChemType","minimize":"Minikan","maximize":"Perbesar","fullscreen":"Layar penuh","exit_fullscreen":"Keluar layar penuh","close":"Tutup","mathtype":"MathType","title_modalwindow":"Jendela modal MathType","close_modal_warning":"Anda yakin ingin keluar? Anda akan kehilangan perubahan yang Anda buat.","latex_name_label":"Rumus Latex","browser_no_compatible":"Penjelajah Anda tidak kompatibel dengan teknologi AJAX. Harap gunakan Mozilla Firefox versi terbaru.","error_convert_accessibility":"Kesalahan konversi dari MathML menjadi teks yang dapat diakses.","exception_cross_site":"Skrip lintas situs hanya diizinkan untuk HTTP.","exception_high_surrogate":"Pengganti tinggi tidak diikuti oleh pengganti rendah di fixedCharCodeAt()","exception_string_length":"String tidak valid. Panjang harus kelipatan 4","exception_key_nonobject":"Object.keys meminta nonobjek","exception_null_or_undefined":" ini tidak berlaku atau tidak didefinisikan","exception_not_function":" bukan sebuah fungsi","exception_invalid_date_format":"Format tanggal tidak valid : ","exception_casting":"Tidak dapat mentransmisikan ","exception_casting_to":" untuk "},"it":{"latex":"LaTeX","cancel":"Annulla","accept":"Inserisci","manual":"Manuale","insert_math":"Inserisci una formula matematica - MathType","insert_chem":"Inserisci una formula chimica - ChemType","minimize":"Riduci a icona","maximize":"Ingrandisci","fullscreen":"Schermo intero","exit_fullscreen":"Esci da schermo intero","close":"Chiudi","mathtype":"MathType","title_modalwindow":"Finestra modale di MathType","close_modal_warning":"Confermi di voler uscire? Le modifiche effettuate andranno perse.","latex_name_label":"Formula LaTeX","browser_no_compatible":"Il tuo browser non è compatibile con la tecnologia AJAX. Utilizza la versione più recente di Mozilla Firefox.","error_convert_accessibility":"Errore durante la conversione da MathML in testo accessibile.","exception_cross_site":"Lo scripting tra siti è consentito solo per HTTP.","exception_high_surrogate":"Surrogato alto non seguito da surrogato basso in fixedCharCodeAt()","exception_string_length":"Stringa non valida. La lunghezza deve essere un multiplo di 4","exception_key_nonobject":"Metodo Object.keys richiamato in un elemento non oggetto","exception_null_or_undefined":" questo è un valore null o non definito","exception_not_function":" non è una funzione","exception_invalid_date_format":"Formato di data non valido: ","exception_casting":"Impossibile eseguire il cast ","exception_casting_to":" a "},"ja":{"latex":"LaTeX","cancel":"キャンセル","accept":"挿入","manual":"マニュアル","insert_math":"数式を挿入 - MathType","insert_chem":"化学式を挿入 - ChemType","minimize":"最小化","maximize":"最大化","fullscreen":"全画面表示","exit_fullscreen":"全画面表示を解除","close":"閉じる","mathtype":"MathType","title_modalwindow":"MathType モードウィンドウ","close_modal_warning":"このページから移動してもよろしいですか?変更内容は失われます。","latex_name_label":"LaTeX 数式","browser_no_compatible":"お使いのブラウザは、AJAX 技術と互換性がありません。Mozilla Firefox の最新バージョンをご使用ください。","error_convert_accessibility":"MathML からアクセシブルなテキストへの変換中にエラーが発生しました。","exception_cross_site":"クロスサイトスクリプティングは、HTTP のみに許可されています。","exception_high_surrogate":"fixedCharCodeAt()で上位サロゲートの後に下位サロゲートがありません","exception_string_length":"無効な文字列です。長さは4の倍数である必要があります","exception_key_nonobject":"Object.keys が非オブジェクトで呼び出されました","exception_null_or_undefined":" null であるか、定義されていません","exception_not_function":" は関数ではありません","exception_invalid_date_format":"無効な日付形式: ","exception_casting":"次にキャスト ","exception_casting_to":" できません "},"ko":{"latex":"LaTeX","cancel":"취소","accept":"삽입","manual":"설명서","insert_math":"수학 공식 삽입 - MathType","insert_chem":"화학 공식 입력하기 - ChemType","minimize":"최소화","maximize":"최대화","fullscreen":"전체 화면","exit_fullscreen":"전체 화면 나가기","close":"닫기","mathtype":"MathType","title_modalwindow":"MathType 모달 창","close_modal_warning":"정말로 나가시겠습니까? 변경 사항이 손실됩니다.","latex_name_label":"Latex 공식","browser_no_compatible":"사용자의 브라우저는 AJAX 기술과 호환되지 않습니다. Mozilla Firefox 최신 버전을 사용하십시오.","error_convert_accessibility":"MathML로부터 접근 가능한 텍스트로 오류 변환.","exception_cross_site":"사이트 교차 스크립팅은 HTTP 환경에서만 사용할 수 있습니다.","exception_high_surrogate":"fixedCharCodeAt()에서는 상위 서러게이트 뒤에 하위 서러게이트가 붙지 않습니다","exception_string_length":"유효하지 않은 스트링입니다. 길이는 4의 배수여야 합니다","exception_key_nonobject":"Object.keys가 non-object를 요청하였습니다","exception_null_or_undefined":" Null값이거나 정의되지 않았습니다","exception_not_function":" 함수가 아닙니다","exception_invalid_date_format":"유효하지 않은 날짜 포맷 : ","exception_casting":"캐스팅할 수 없습니다 ","exception_casting_to":" (으)로 "},"nl":{"latex":"LaTeX","cancel":"Annuleren","insert_chem":"Een scheikundige formule invoegen - ChemType","minimize":"Minimaliseer","maximize":"Maximaliseer","fullscreen":"Schermvullend","exit_fullscreen":"Verlaat volledig scherm","close":"Sluit","mathtype":"MathType","title_modalwindow":"Modaal venster MathType","close_modal_warning":"Weet je zeker dat je de app wilt sluiten? De gemaakte wijzigingen gaan verloren.","latex_name_label":"LaTeX-formule","browser_no_compatible":"Je browser is niet compatibel met AJAX-technologie. Gebruik de meest recente versie van Mozilla Firefox.","error_convert_accessibility":"Fout bij conversie van MathML naar toegankelijke tekst.","exception_cross_site":"Cross-site scripting is alleen toegestaan voor HTTP.","exception_high_surrogate":"Hoog surrogaat niet gevolgd door laag surrogaat in fixedCharCodeAt()","exception_string_length":"Ongeldige tekenreeks. Lengte moet een veelvoud van 4 zijn","exception_key_nonobject":"Object.keys opgeroepen voor niet-object","exception_null_or_undefined":" dit is nul of niet gedefinieerd","exception_not_function":" is geen functie","exception_invalid_date_format":"Ongeldige datumnotatie: ","exception_casting":"Kan niet weergeven ","exception_casting_to":" op "},"no":{"latex":"LaTeX","cancel":"Avbryt","accept":"Set inn","manual":"Håndbok","insert_math":"Sett inn matematikkformel - MathType","insert_chem":"Set inn ein kjemisk formel – ChemType","minimize":"Minimer","maximize":"Maksimer","fullscreen":"Fullskjerm","exit_fullscreen":"Avslutt fullskjerm","close":"Lukk","mathtype":"MathType","title_modalwindow":"Modalt MathType-vindu","close_modal_warning":"Er du sikker på at du vil gå ut? Endringane du har gjort, vil gå tapt.","latex_name_label":"LaTeX-formel","browser_no_compatible":"Nettlesaren er ikkje kompatibel med AJAX-teknologien. Bruk den nyaste versjonen av Mozilla Firefox.","error_convert_accessibility":"Feil under konvertering frå MathML til tilgjengeleg tekst.","exception_cross_site":"Skripting på tvers av nettstadar er bere tillaten med HTTP.","exception_high_surrogate":"Høgt surrogat er ikkje etterfølgt av lågt surrogat i fixedCharCodeAt()","exception_string_length":"Ugyldig streng. Lengda må vera deleleg på 4","exception_key_nonobject":"Object.keys kalla på eit ikkje-objekt","exception_null_or_undefined":" dette er null eller ikkje definert","exception_not_function":" er ikkje ein funksjon","exception_invalid_date_format":"Ugyldig datoformat: ","exception_casting":"Kan ikkje bruka casting ","exception_casting_to":" til "},"nb":{"latex":"LaTeX","cancel":"Avbryt","accept":"Insert","manual":"Håndbok","insert_math":"Sett inn matematikkformel - MathType","insert_chem":"Sett inn en kjemisk formel – ChemType","minimize":"Minimer","maximize":"Maksimer","fullscreen":"Fullskjerm","exit_fullscreen":"Avslutt fullskjerm","close":"Lukk","mathtype":"MathType","title_modalwindow":"Modalt MathType-vindu","close_modal_warning":"Er du sikker på at du vil gå ut? Endringene du har gjort, vil gå tapt.","latex_name_label":"LaTeX-formel","browser_no_compatible":"Nettleseren er ikke kompatibel med AJAX-teknologien. Bruk den nyeste versjonen av Mozilla Firefox.","error_convert_accessibility":"Feil under konvertering fra MathML til tilgjengelig tekst.","exception_cross_site":"Skripting på tvers av nettsteder er bare tillatt med HTTP.","exception_high_surrogate":"Høyt surrogat etterfølges ikke av lavt surrogat i fixedCharCodeAt()","exception_string_length":"Ugyldig streng. Lengden må være delelig på 4","exception_key_nonobject":"Object.keys kalte på et ikke-objekt","exception_null_or_undefined":" dette er null eller ikke definert","exception_not_function":" er ikke en funksjon","exception_invalid_date_format":"Ugyldig datoformat: ","exception_casting":"Kan ikke bruke casting ","exception_casting_to":" til "},"nn":{"latex":"LaTeX","cancel":"Avbryt","accept":"Set inn","manual":"Håndbok","insert_math":"Sett inn matematikkformel - MathType","insert_chem":"Set inn ein kjemisk formel – ChemType","minimize":"Minimer","maximize":"Maksimer","fullscreen":"Fullskjerm","exit_fullscreen":"Avslutt fullskjerm","close":"Lukk","mathtype":"MathType","title_modalwindow":"Modalt MathType-vindu","close_modal_warning":"Er du sikker på at du vil gå ut? Endringane du har gjort, vil gå tapt.","latex_name_label":"LaTeX-formel","browser_no_compatible":"Nettlesaren er ikkje kompatibel med AJAX-teknologien. Bruk den nyaste versjonen av Mozilla Firefox.","error_convert_accessibility":"Feil under konvertering frå MathML til tilgjengeleg tekst.","exception_cross_site":"Skripting på tvers av nettstadar er bere tillaten med HTTP.","exception_high_surrogate":"Høgt surrogat er ikkje etterfølgt av lågt surrogat i fixedCharCodeAt()","exception_string_length":"Ugyldig streng. Lengda må vera deleleg på 4","exception_key_nonobject":"Object.keys kalla på eit ikkje-objekt","exception_null_or_undefined":" dette er null eller ikkje definert","exception_not_function":" er ikkje ein funksjon","exception_invalid_date_format":"Ugyldig datoformat: ","exception_casting":"Kan ikkje bruka casting ","exception_casting_to":" til "},"pl":{"latex":"LaTeX","cancel":"Anuluj","accept":"Wstaw","manual":"Instrukcja","insert_math":"Wstaw formułę matematyczną - MathType","insert_chem":"Wstaw wzór chemiczny — ChemType","minimize":"Minimalizuj","maximize":"Maksymalizuj","fullscreen":"Pełny ekran","exit_fullscreen":"Opuść tryb pełnoekranowy","close":"Zamknij","mathtype":"MathType","title_modalwindow":"Okno modalne MathType","close_modal_warning":"Czy na pewno chcesz zamknąć? Wprowadzone zmiany zostaną utracone.","latex_name_label":"Wzór Latex","browser_no_compatible":"Twoja przeglądarka jest niezgodna z technologią AJAX Użyj najnowszej wersji Mozilla Firefox.","error_convert_accessibility":"Błąd podczas konwertowania z formatu MathML na dostępny tekst.","exception_cross_site":"Krzyżowanie skryptów witryny jest dozwolone tylko dla HTTP.","exception_high_surrogate":"Brak niskiego surogatu po wysokim surogacie w fixedCharCodeAt()","exception_string_length":"Niewłaściwy ciąg znaków. Długość musi być wielokrotnością liczby 4.","exception_key_nonobject":"Argumentem wywołanej funkcji Object.key nie jest obiekt.","exception_null_or_undefined":" jest zerowy lub niezdefiniowany","exception_not_function":" nie jest funkcją","exception_invalid_date_format":"Nieprawidłowy format daty: ","exception_casting":"Nie można rzutować ","exception_casting_to":" na "},"pt":{"latex":"LaTeX","cancel":"Cancelar","accept":"Inserir","manual":"Manual","insert_math":"Inserir fórmula matemática - MathType","insert_chem":"Inserir uma fórmula química - ChemType","minimize":"Minimizar","maximize":"Maximizar","fullscreen":"Ecrã completo","exit_fullscreen":"Sair do ecrã completo","close":"Fechar","mathtype":"MathType","title_modalwindow":"Janela modal do MathType","close_modal_warning":"Pretende sair? As alterações efetuadas serão perdidas.","latex_name_label":"Fórmula Latex","browser_no_compatible":"O seu navegador não é compatível com a tecnologia AJAX. Utilize a versão mais recente do Mozilla Firefox.","error_convert_accessibility":"Erro ao converter de MathML para texto acessível.","exception_cross_site":"O processamento de scripts em vários sites só é permitido para HTTP.","exception_high_surrogate":"Substituto alto não seguido por um substituto baixo em fixedCharCodeAt()","exception_string_length":"Cadeia inválida. O comprimento tem de ser um múltiplo de 4","exception_key_nonobject":"Object.keys chamou um não-objeto","exception_null_or_undefined":" é nulo ou não está definido","exception_not_function":" não é uma função","exception_invalid_date_format":"Formato de data inválido: ","exception_casting":"Não é possível adicionar ","exception_casting_to":" até "},"pt_br":{"latex":"LaTeX","cancel":"Cancelar","accept":"Inserir","manual":"Manual","insert_math":"Inserir fórmula matemática - MathType","insert_chem":"Insira uma fórmula química - ChemType","minimize":"Minimizar","maximize":"Maximizar","fullscreen":"Tela cheia","exit_fullscreen":"Sair de tela cheia","close":"Fechar","mathtype":"MathType","title_modalwindow":"Janela modal do MathType","close_modal_warning":"Tem certeza de que deseja sair? Todas as alterações serão perdidas.","latex_name_label":"Fórmula LaTeX","browser_no_compatible":"O navegador não é compatível com a tecnologia AJAX. Use a versão mais recente do Mozilla Firefox.","error_convert_accessibility":"Erro ao converter de MathML para texto acessível.","exception_cross_site":"O uso de scripts entre sites só é permitido para HTTP.","exception_high_surrogate":"High surrogate não seguido de low surrogate em fixedCharCodeAt()","exception_string_length":"String inválida. O comprimento deve ser um múltiplo de 4","exception_key_nonobject":"Object.keys chamados em não objeto","exception_null_or_undefined":" isto é nulo ou não definido","exception_not_function":" não é uma função","exception_invalid_date_format":"Formato de data inválido: ","exception_casting":"Não é possível transmitir ","exception_casting_to":" para "},"ro":{"latex":"LaTeX","cancel":"Anulare","accept":"Inserați","manual":"Ghid","insert_math":"Inserați o formulă matematică - MathType","insert_chem":"Inserați o formulă chimică - ChemType","minimize":"Minimizați","maximize":"Maximizați","fullscreen":"Afișați pe tot ecranul","exit_fullscreen":"Opriți afișarea pe tot ecranul","close":"Închideți","mathtype":"MathType","title_modalwindow":"Fereastră modală MathType","close_modal_warning":"Sigur doriți să ieșiți? Modificările realizate se vor pierde.","latex_name_label":"Formulă Latex","browser_no_compatible":"Browserul dvs. nu este compatibil cu tehnologia AJAX. Utilizați cea mai recentă versiune de Mozilla Firefox.","error_convert_accessibility":"Eroare la convertirea din MathML în text accesibil.","exception_cross_site":"Scriptarea între site‑uri este permisă doar pentru HTTP.","exception_high_surrogate":"Surogatul superior nu este urmat de un surogat inferior în fixedCharCodeAt()","exception_string_length":"Șir nevalid. Lungimea trebuie să fie multiplu de 4","exception_key_nonobject":"Object.keys a apelat un non-obiect","exception_null_or_undefined":" este null sau nu este definit","exception_not_function":" nu este funcție","exception_invalid_date_format":"Format de dată nevalid: ","exception_casting":"nu se poate difuza ","exception_casting_to":" către "},"ru":{"latex":"LaTeX","cancel":"отмена","accept":"Вставка","manual":"вручную","insert_math":"Вставить математическую формулу: WIRIS","insert_chem":"Вставить химическую формулу — ChemType","minimize":"Свернуть","maximize":"Развернуть","fullscreen":"На весь экран","exit_fullscreen":"Выйти из полноэкранного режима","close":"Закрыть","mathtype":"MathType","title_modalwindow":"Режимное окно MathType","close_modal_warning":"Вы уверены, что хотите выйти? Все внесенные изменения будут утрачены.","latex_name_label":"Формула Latex","browser_no_compatible":"Ваш браузер несовместим с технологией AJAX. Используйте последнюю версию Mozilla Firefox.","error_convert_accessibility":"При преобразовании формулы в текст допустимого формата произошла ошибка.","exception_cross_site":"Межсайтовые сценарии доступны только для HTTP.","exception_high_surrogate":"Младший символ-заместитель не сопровождает старший символ-заместитель в исправленном методе CharCodeAt()","exception_string_length":"Недопустимая строка. Длинна должна быть кратной 4.","exception_key_nonobject":"Метод Object.keys вызван не для объекта","exception_null_or_undefined":" значение пустое или не определено","exception_not_function":" не функция","exception_invalid_date_format":"Недопустимый формат даты: ","exception_casting":"Не удается привести ","exception_casting_to":" к "},"sv":{"latex":"LaTeX","cancel":"Avbryt","accept":"Infoga","manual":"Bruksanvisning","insert_math":"Infoga matematisk formel - MathType","insert_chem":"Infoga en kemiformel – ChemType","minimize":"Minimera","maximize":"Maximera","fullscreen":"Helskärm","exit_fullscreen":"Stäng helskärm","close":"Stäng","mathtype":"MathType","title_modalwindow":"MathType modulfönster","close_modal_warning":"Vill du avsluta? Inga ändringar kommer att sparas.","latex_name_label":"Latex-formel","browser_no_compatible":"Din webbläsare är inte kompatibel med AJAX-teknik. Använd den senaste versionen av Mozilla Firefox.","error_convert_accessibility":"Det uppstod ett fel vid konvertering från MathML till åtkomlig text.","exception_cross_site":"Skriptkörning över flera sajter är endast tillåtet för HTTP.","exception_high_surrogate":"Hög surrogat följs inte av låg surrogat i fixedCharCodeAt()","exception_string_length":"Ogiltig sträng. Längden måste vara en multipel av 4","exception_key_nonobject":"Object.keys anropade icke-objekt","exception_null_or_undefined":" det är null eller inte definierat","exception_not_function":" är inte en funktion","exception_invalid_date_format":"Ogiltigt datumformat: ","exception_casting":"Går inte att konvertera ","exception_casting_to":" till "},"tr":{"latex":"LaTeX","cancel":"Vazgeç","accept":"Ekle","manual":"Kılavuz","insert_math":"Matematik formülü ekle - MathType","insert_chem":"Kimya formülü ekleyin - ChemType","minimize":"Simge Durumuna Küçült","maximize":"Ekranı Kapla","fullscreen":"Tam Ekran","exit_fullscreen":"Tam Ekrandan Çık","close":"Kapat","mathtype":"MathType","title_modalwindow":"MathType kalıcı penceresi","close_modal_warning":"Çıkmak istediğinizden emin misiniz? Yaptığınız değişiklikler kaybolacak.","latex_name_label":"Latex Formülü","browser_no_compatible":"Tarayıcınız AJAX teknolojisiyle uyumlu değil. Lütfen en güncel Mozilla Firefox sürümünü kullanın.","error_convert_accessibility":"MathML biçiminden erişilebilir metne dönüştürme hatası.","exception_cross_site":"Siteler arası komut dosyası yazma işlemine yalnızca HTTP için izin verilir.","exception_high_surrogate":"fixedCharCodeAt() fonksiyonunda üst vekilin ardından alt vekil gelmiyor","exception_string_length":"Geçersiz dizgi. Uzunluk, 4\'ün katlarından biri olmalıdır","exception_key_nonobject":"Nesne olmayan öğe üzerinde Object.keys çağrıldı","exception_null_or_undefined":" bu değer boş veya tanımlanmamış","exception_not_function":" bir fonksiyon değil","exception_invalid_date_format":"Geçersiz tarih biçimi: ","exception_casting":"Tür dönüştürülemiyor ","exception_casting_to":" hedef: "},"zh":{"latex":"LaTeX","cancel":"取消","accept":"插入","manual":"手册","insert_math":"插入数学公式 - MathType","insert_chem":"插入化学分子式 - ChemType","minimize":"最小化","maximize":"最大化","fullscreen":"全屏幕","exit_fullscreen":"退出全屏幕","close":"关闭","mathtype":"MathType","title_modalwindow":"MathType 模式窗口","close_modal_warning":"您确定要离开吗?您所做的修改将丢失。","latex_name_label":"Latex 分子式","browser_no_compatible":"您的浏览器不兼容 AJAX 技术。请使用最新版 Mozilla Firefox。","error_convert_accessibility":"将 MathML 转换为可访问文本时出错。","exception_cross_site":"仅 HTTP 允许跨站脚本。","exception_high_surrogate":"fixedCharCodeAt() 中的高位代理之后未跟随低位代理","exception_string_length":"无效字符串。长度必须是 4 的倍数","exception_key_nonobject":"非对象调用了 Object.keys","exception_null_or_undefined":" 该值为空或未定义","exception_not_function":" 不是一个函数","exception_invalid_date_format":"无效日期格式: ","exception_casting":"无法转换 ","exception_casting_to":" 为 "},"":{}}');class r{constructor(){throw new Error("Static class StringManager can not be instantiated.")}static get(e,t){let{language:n}=this;return t&&(n=t),n&&n.length>2&&(n=n.slice(0,2)),this.strings.hasOwnProperty(n)||(console.warn(`Unknown language ${n} set in StringManager.`),n="en"),this.strings[n].hasOwnProperty(e)?this.strings[n][e]:(console.warn(`Unknown key ${e} for language ${n} in StringManager.`),e)}}r.strings=i,r.language="en"},756:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});class i{constructor(){this.cache=[]}populate(e,t){this.cache[e]=t}get(e){return!!Object.prototype.hasOwnProperty.call(this.cache,e)&&this.cache[e]}}},567:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var i=n(651),r=n.n(i),a=n(704),o=n(41),s=n(583),l=n(56);class c{static fireEvent(e,t){if(document.createEvent){const n=document.createEvent("HTMLEvents");return n.initEvent(t,!0,!0),!e.dispatchEvent(n)}const n=document.createEventObject();return e.fireEvent(`on${t}`,n)}static addEvent(e,t,n){e.addEventListener?e.addEventListener(t,n,!0):e.attachEvent&&e.attachEvent(`on${t}`,n)}static removeEvent(e,t,n){e.removeEventListener?e.removeEventListener(t,n,!0):e.detachEvent&&e.detachEvent(`on${t}`,n)}static addElementEvents(e,t,n,i){t&&(this.callbackDblclick=e=>{const n=e||window.event,i=n.srcElement?n.srcElement:n.target;t(i,n)},c.addEvent(e,"dblclick",this.callbackDblclick)),n&&(this.callbackMousedown=e=>{const t=e||window.event,i=t.srcElement?t.srcElement:t.target;n(i,t)},c.addEvent(e,"mousedown",this.callbackMousedown)),i&&(this.callbackMouseup=e=>{const t=e||window.event,n=t.srcElement?t.srcElement:t.target;i(n,t)},c.addEvent(document,"mouseup",this.callbackMouseup),c.addEvent(e,"mouseup",this.callbackMouseup))}static removeElementEvents(e){c.removeEvent(e,"dblclick",this.callbackDblclick),c.removeEvent(e,"mousedown",this.callbackMousedown),c.removeEvent(document,"mouseup",this.callbackMouseup),c.removeEvent(e,"mouseup",this.callbackMouseup)}static addClass(e,t){c.containsClass(e,t)||(e.className+=` ${t}`)}static containsClass(e,t){if(null==e||!("className"in e))return!1;const n=e.className.split(" ");for(let e=n.length-1;e>=0;e-=1)if(n[e]===t)return!0;return!1}static removeClass(e,t){let n="";const i=e.className.split(" ");for(let e=0;e<i.length;e+=1)i[e]!==t&&(n+=`${i[e]} `);e.className=n.trim()}static convertOldXmlinitialtextAttribute(e){const t=e.indexOf("xmlinitialtext"),n=e.indexOf("value=",t),i=e.charAt(n+6),r=n+6+1,a=e.indexOf(i,r),o=e.substring(r,a);let s=o.split("«").join("§lt;");return s=s.split("»").join("§gt;"),s=s.split("&").join("§"),s=s.split("¨").join("§quot;"),e.split(o).join(s)}static createElement(e,t,n){let i;void 0===t&&(t={}),void 0===n&&(n=document);try{let r=`<${e}`;Object.keys(t).forEach((e=>{r+=` ${e}="${c.htmlEntities(t[e])}"`})),r+=">",i=n.createElement(r)}catch(r){i=n.createElement(e),Object.keys(t).forEach((e=>{i.setAttribute(e,t[e])}))}return i}static createObject(e,t){void 0===t&&(t=document),e=(e=(e=(e=e.split("<applet ").join('<span wirisObject="WirisApplet" ').split("<APPLET ").join('<span wirisObject="WirisApplet" ')).split("</applet>").join("</span>").split("</APPLET>").join("</span>")).split("<param ").join('<br wirisObject="WirisParam" ').split("<PARAM ").join('<br wirisObject="WirisParam" ')).split("</param>").join("</br>").split("</PARAM>").join("</br>");const n=c.createElement("div",{},t);return n.innerHTML=e,function e(n){if(n.getAttribute&&"WirisParam"===n.getAttribute("wirisObject")){const e={};for(let t=0;t<n.attributes.length;t+=1)null!==n.attributes[t].nodeValue&&(e[n.attributes[t].nodeName]=n.attributes[t].nodeValue);const i=c.createElement("param",e,t);i.NAME&&(i.name=i.NAME,i.value=i.VALUE),i.removeAttribute("wirisObject"),n.parentNode.replaceChild(i,n)}else if(n.getAttribute&&"WirisApplet"===n.getAttribute("wirisObject")){const i={};for(let e=0;e<n.attributes.length;e+=1)null!==n.attributes[e].nodeValue&&(i[n.attributes[e].nodeName]=n.attributes[e].nodeValue);const r=c.createElement("applet",i,t);r.removeAttribute("wirisObject");for(let t=0;t<n.childNodes.length;t+=1)e(n.childNodes[t]),"param"===n.childNodes[t].nodeName.toLowerCase()&&(r.appendChild(n.childNodes[t]),t-=1);n.parentNode.replaceChild(r,n)}else for(let t=0;t<n.childNodes.length;t+=1)e(n.childNodes[t])}(n),n.firstChild}static createObjectCode(e){if(null==e)return null;if(1===e.nodeType){let t=`<${e.tagName}`;for(let n=0;n<e.attributes.length;n+=1)e.attributes[n].specified&&(t+=` ${e.attributes[n].name}="${c.htmlEntities(e.attributes[n].value)}"`);if(e.childNodes.length>0){t+=">";for(let n=0;n<e.childNodes.length;n+=1)t+=c.createObject(e.childNodes[n]);t+=`</${e.tagName}>`}else"DIV"===e.nodeName||"SCRIPT"===e.nodeName?t+=`></${e.tagName}>`:t+="/>";return t}return 3===e.nodeType?c.htmlEntities(e.nodeValue):""}static concatenateUrl(e,t){let n="";return e.indexOf("/")!==e.length&&0!==t.indexOf("/")&&(n="/"),(e+n+t).replace(/([^:]\/)\/+/g,"$1")}static htmlEntities(e){return e.split("&").join("&amp;").split("<").join("&lt;").split(">").join("&gt;").split('"').join("&quot;")}static htmlSanitize(e){let t=/\<annotation.+\<\/annotation\>/,n=e.match(t);return(e=r().sanitize(e,{ADD_TAGS:["semantics","annotation"],ADD_ATTR:["linebreak","indentalign"]})).replace(t,n)}static htmlEntitiesDecode(e){const t=document.createElement("textarea");return t.innerHTML=e,t.value}static createHttpRequest(){if("file://"===window.location.toString().substr(0,window.location.toString().lastIndexOf("/")+1).substr(0,7))throw l.A.get("exception_cross_site");if("undefined"!=typeof XMLHttpRequest)return new XMLHttpRequest;try{return new ActiveXObject("Msxml2.XMLHTTP")}catch(e){try{return new ActiveXObject("Microsoft.XMLHTTP")}catch(e){return null}}}static httpBuildQuery(e){let t="";return Object.keys(e).forEach((n=>{null!=e[n]&&(t+=`${c.urlEncode(n)}=${c.urlEncode(e[n])}&`)})),"&"===t.substring(t.length-1)&&(t=t.substring(0,t.length-1)),t}static propertiesToString(e){const t=[];Object.keys(e).forEach((n=>{Object.prototype.hasOwnProperty.call(e,n)&&t.push(n)}));const n=t.length;for(let e=0;e<n;e+=1)for(let i=e+1;i<n;i+=1){const n=t[e],r=t[i];c.compareStrings(n,r)>0&&(t[e]=r,t[i]=n)}let i="";for(let r=0;r<n;r+=1){const n=t[r];i+=n,i+="=";let a=e[n];a=a.replace("\\","\\\\"),a=a.replace("\n","\\n"),a=a.replace("\r","\\r"),a=a.replace("\t","\\t"),i+=a,i+="\n"}return i}static compareStrings(e,t){let n;const i=e.length,r=t.length,a=i>r?r:i;for(n=0;n<a;n+=1){const i=c.fixedCharCodeAt(e,n)-c.fixedCharCodeAt(t,n);if(0!==i)return i}return e.length-t.length}static fixedCharCodeAt(e,t){t=t||0;const n=e.charCodeAt(t);let i,r;if(n>=55296&&n<=56319){if(i=n,r=e.charCodeAt(t+1),Number.isNaN(r))throw l.A.get("exception_high_surrogate");return 1024*(i-55296)+(r-56320)+65536}return!(n>=56320&&n<=57343)&&n}static urlToAssArray(e){let t;if(t=e.indexOf("?"),t>0){const n=e.substring(t+1).split("&"),i={};for(t=0;t<n.length;t+=1){const e=n[t].split("=");e.length>1&&(i[e[0]]=decodeURIComponent(e[1].replace(/\+/g," ")))}return i}return{}}static urlEncode(e){let t="";return t=encodeURIComponent(e),t}static getWIRISImageOutput(e,t,n){const i=c.createObject(e);if(i&&(i.className===o.A.get("imageClassName")||i.getAttribute(o.A.get("imageMathmlAttribute")))){if(!t)return e;const r=i.getAttribute(o.A.get("imageMathmlAttribute"));let s=a.default.safeXmlDecode(r);return o.A.get("saveHandTraces")||(s=a.default.removeAnnotation(s,"application/json")),null==s&&(s=i.getAttribute("alt")),n?a.default.safeXmlEncode(s):s}return e}static getNodeLength(e){const t={IMG:1,BR:1};if(3===e.nodeType)return e.nodeValue.length;if(1===e.nodeType){let n=t[e.nodeName.toUpperCase()];void 0===n&&(n=0);for(let t=0;t<e.childNodes.length;t+=1)n+=c.getNodeLength(e.childNodes[t]);return n}return 0}static getSelectedItem(e,t,n){let i;if(t?(i=e.contentWindow,i.focus()):(i=window,e.focus()),document.selection&&!n){const n=i.document.selection.createRange();if(n.parentElement){if(n.htmlText.length>0)return 0===n.text.length?c.getSelectedItem(e,t,!0):null;i.document.execCommand("InsertImage",!1,"#");let r,a,o=n.parentElement();return"IMG"!==o.nodeName.toUpperCase()&&(n.pasteHTML('<span id="wrs_openEditorWindow_temporalObject"></span>'),o=i.document.getElementById("wrs_openEditorWindow_temporalObject")),o.nextSibling&&3===o.nextSibling.nodeType?(r=o.nextSibling,a=0):o.previousSibling&&3===o.previousSibling.nodeType?(r=o.previousSibling,a=r.nodeValue.length):(r=i.document.createTextNode(""),o.parentNode.insertBefore(r,o),a=0),o.parentNode.removeChild(o),{node:r,caretPosition:a}}return n.length>1?null:{node:n.item(0)}}if(i.getSelection){let a;const o=i.getSelection();try{a=o.getRangeAt(0)}catch(e){a=i.document.createRange()}const s=a.startContainer;if(3===s.nodeType)return{node:s,caretPosition:a.startOffset};if(s!==a.endContainer)return null;if(1===s.nodeType){const i=a.startOffset;if(s.childNodes[i]){if(a.startOffset===a.endOffset){if(0!==i&&"span"===s.childNodes[i-1].localName&&s.childNodes[i].classList.contains("Wirisformula"))return s.childNodes[i-1].remove(),c.getSelectedItem(e,t,n);if(s.childNodes[i].classList?.contains("Wirisformula")&&(i>0&&s.childNodes[i-1].classList.contains("Wirisformula")||0===i)){var r=document.createElement("span");return s.insertBefore(r,s.childNodes[i]),{node:s.childNodes[i]}}}return{node:s.childNodes[i]}}}}return null}static getSelectedItemOnTextarea(e){const t=document.createTextNode(e.value),n=s.A.getLatexFromTextNode(t,e.selectionStart);return null===n?null:{node:t,caretPosition:e.selectionStart,startPosition:n.startPosition,endPosition:n.endPosition}}static getElementsByNameFromString(e,t,n){const i=[];e=e.toLowerCase(),t=t.toLowerCase();let r=e.indexOf(`<${t} `);for(;-1!==r;){let a;a=n?">":`</${t}>`;let o=e.indexOf(a,r);-1!==o?(o+=a.length,i.push({start:r,end:o})):o=r+1,r=e.indexOf(`<${t} `,o)}return i}static decode64(e){const t="+".charCodeAt(0),n="/".charCodeAt(0),i="0".charCodeAt(0),r="a".charCodeAt(0),a="A".charCodeAt(0),o="-".charCodeAt(0),s="_".charCodeAt(0),l=e.charCodeAt(0);return l===t||l===o?62:l===n||l===s?63:l<i?-1:l<i+10?l-i+26+26:l<a+26?l-a:l<r+26?l-r+26:null}static b64ToByteArray(e,t){let n;if(e.length%4>0)throw new Error("Invalid string. Length must be a multiple of 4");const i=[];let r,a,o;for(t?r=t:(a="="===e.charAt(e.length-2)?2:"="===e.charAt(e.length-1)?1:0,r=a>0?e.length-4:e.length),o=0;o<r;o+=4)n=c.decode64(e.charAt(o))<<18|c.decode64(e.charAt(o+1))<<12|c.decode64(e.charAt(o+2))<<6|c.decode64(e.charAt(o+3)),i.push(n>>16&255),i.push(n>>8&255),i.push(255&n);return a&&(2===a?(n=c.decode64(e.charAt(o))<<2|c.decode64(e.charAt(o+1))>>4,i.push(255&n)):1===a&&(n=c.decode64(e.charAt(o))<<10|c.decode64(e.charAt(o+1))<<4|c.decode64(e.charAt(o+2))>>2,i.push(n>>8&255),i.push(255&n))),i}static readInt32(e){if(e.length<4)return!1;const t=e.splice(0,4);return t[0]<<24|t[1]<<16|t[2]<<8|t[3]}static readByte(e){return 0|e.shift()}static readBytes(e,t,n){return e.splice(t,n)}static updateTextArea(e,t){if(e&&t)if(e.focus(),null!=e.selectionStart){const{selectionEnd:n}=e,i=e.value.substring(0,e.selectionStart),r=e.value.substring(n,e.value.length);e.value=i+t+r,e.selectionEnd=n+t.length}else document.selection.createRange().text=t}static updateExistingTextOnTextarea(e,t,n,i){e.focus();const r=e.value.substring(0,n);e.value=r+t+e.value.substring(i,e.value.length),e.selectionEnd=n+t.length}static addArgument(e,t,n){let i;return i=e.indexOf("?")>0?"&":"?",`${e+i+t}=${n}`}}},330:e=>{"use strict";e.exports=JSON.parse('{"name":"@wiris/mathtype-viewer","version":"1.4.2","description":"","main":"app.js","scripts":{"build":"webpack --mode production","build-dev":"webpack --mode development","serve":"webpack serve","prepack":"yarn && npm run build"},"keywords":["typescript","course"],"author":"Integrations","license":"ISC","dependencies":{"@wiris/mathtype-html-integration-devkit":"1.16.2"},"devDependencies":{"babel-loader":"^9.1.2","lite-server":"^2.5.4","ts-loader":"^9.4.2","webpack":"^5.75.0","webpack-cli":"^4.0.0","webpack-dev-server":"^4.12.0"}}')}},__webpack_module_cache__={};function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var n=__webpack_module_cache__[e]={exports:{}};return __webpack_modules__[e].call(n.exports,n,n.exports,__webpack_require__),n.exports}__webpack_require__.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return __webpack_require__.d(t,{a:t}),t},__webpack_require__.d=(e,t)=>{for(var n in t)__webpack_require__.o(t,n)&&!__webpack_require__.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__=__webpack_require__(816)})();
package/dist/app.d.ts CHANGED
@@ -4,6 +4,7 @@ declare global {
4
4
  viewer: {
5
5
  properties: Properties;
6
6
  isLoaded: boolean;
7
+ version: string;
7
8
  };
8
9
  }
9
10
  }
package/dist/app.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"app.d.ts","sourceRoot":"","sources":["../src/app.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAK1C,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,MAAM;QACd,MAAM,EAAE;YACN,UAAU,EAAE,UAAU,CAAC;YACvB,QAAQ,EAAE,OAAO,CAAA;SAClB,CAAC;KACH;CACF"}
1
+ {"version":3,"file":"app.d.ts","sourceRoot":"","sources":["../src/app.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAM1C,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,MAAM;QACd,MAAM,EAAE;YACN,UAAU,EAAE,UAAU,CAAC;YACvB,QAAQ,EAAE,OAAO,CAAC;YAClB,OAAO,EAAE,MAAM,CAAA;SAChB,CAAC;KACH;CACF"}
@@ -1 +1 @@
1
- {"version":3,"file":"mathml.d.ts","sourceRoot":"","sources":["../src/mathml.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAyD1C,wBAAsB,YAAY,CAAC,UAAU,EAAE,UAAU,EAAE,IAAI,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC,CAgC3F"}
1
+ {"version":3,"file":"mathml.d.ts","sourceRoot":"","sources":["../src/mathml.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AA0D1C,wBAAsB,YAAY,CAAC,UAAU,EAAE,UAAU,EAAE,IAAI,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC,CAgC3F"}
package/index.html CHANGED
@@ -14,13 +14,7 @@
14
14
  </head>
15
15
  <body>
16
16
  <p>
17
- <math>
18
- <mn>2</mn>
19
- <mo>+</mo>
20
- <mn>2</mn>
21
- <mo>=</mo>
22
- <mn>4</mn>
23
- </math>
17
+ <math xmlns="http://www.w3.org/1998/Math/MathML"><mn>2</mn><mo>+</mo><mn>2</mn><mo>=</mo><mn>4</mn></math>
24
18
  </p>
25
19
  <p>
26
20
  $$4 - 2 = 2$$
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wiris/mathtype-viewer",
3
- "version": "1.4.1",
3
+ "version": "1.4.2",
4
4
  "description": "",
5
5
  "main": "app.js",
6
6
  "scripts": {
@@ -16,7 +16,7 @@
16
16
  "author": "Integrations",
17
17
  "license": "ISC",
18
18
  "dependencies": {
19
- "@wiris/mathtype-html-integration-devkit": "1.16.1"
19
+ "@wiris/mathtype-html-integration-devkit": "1.16.2"
20
20
  },
21
21
  "devDependencies": {
22
22
  "babel-loader": "^9.1.2",
package/src/app.ts CHANGED
@@ -2,12 +2,14 @@ import { Properties } from './properties';
2
2
  import { renderLatex } from './latex';
3
3
  import { renderMathML } from './mathml';
4
4
  import { bypassEncapsulation } from './retro';
5
+ import packageInformation from '../../../node_modules/@wiris/mathtype-viewer/package.json'
5
6
 
6
7
  declare global {
7
8
  interface Window {
8
9
  viewer: {
9
10
  properties: Properties,
10
- isLoaded: boolean
11
+ isLoaded: boolean,
12
+ version: string
11
13
  };
12
14
  }
13
15
  }
@@ -30,7 +32,12 @@ async function main(w: Window): Promise<void> {
30
32
  w.viewer = {
31
33
  properties,
32
34
  isLoaded: false,
35
+ version: packageInformation.version
33
36
  };
37
+ } else {
38
+ w.viewer.properties = properties;
39
+ w.viewer.isLoaded = false;
40
+ w.viewer.version = packageInformation.version;
34
41
  }
35
42
 
36
43
  const document = w.document;
package/src/mathml.ts CHANGED
@@ -11,6 +11,7 @@ interface FormulaData {
11
11
  baseline: string,
12
12
  height: string,
13
13
  width: string,
14
+ alt?: string,
14
15
  }
15
16
 
16
17
  /**
@@ -118,8 +119,15 @@ async function setImageProperties(properties: Properties, data: FormulaData, mml
118
119
 
119
120
  // Set the alt text whenever there's a translation for the characters and MathML on the mml.
120
121
  if (!corruptMathML.some(corruptMathML => mml.includes(corruptMathML))) {
121
- const { text } = await mathml2accessible(mml, properties.lang, properties.editorServicesRoot, properties.editorServicesExtension);
122
- img.alt = text;
122
+ try {
123
+ if (!data.alt) {
124
+ const { text } = await mathml2accessible(mml, properties.lang, properties.editorServicesRoot, properties.editorServicesExtension);
125
+ data.alt = text;
126
+ }
127
+ img.alt = data.alt;
128
+ } catch {
129
+ img.alt = 'Alternative text not available';
130
+ }
123
131
  }
124
132
 
125
133
  return img;
package/src/retro.ts CHANGED
@@ -87,7 +87,8 @@ class JsPluginViewer {
87
87
  * @deprecated Please consider using {@link renderMathML}.
88
88
  */
89
89
  async parseElement(element: HTMLElement, asynchronously?: boolean, callbackFunc?: () => void): Promise<void> {
90
- return renderMathML(JsPluginViewer.properties, element);
90
+ await renderLatex(JsPluginViewer.properties, element);
91
+ return await renderMathML(JsPluginViewer.properties, element);
91
92
  }
92
93
 
93
94
  /**
package/src/services.ts CHANGED
@@ -113,7 +113,7 @@ export async function showImage(mml: string, lang: string, url: string, extensio
113
113
  }
114
114
 
115
115
  // Try to obtain the image via GET
116
- const getParams = Parser.createShowImageSrcData(params);
116
+ const getParams = Parser.createShowImageSrcData(params, params.lang);
117
117
  const getResponse = callService(getParams, 'showimage', MethodType.Get, url, extension);
118
118
  try {
119
119
  return await processJsonResponse(getResponse);
package/tsconfig.json CHANGED
@@ -69,6 +69,7 @@
69
69
  /* Experimental Options */
70
70
  "experimentalDecorators": true, /* Enables experimental support for ES7 decorators. */
71
71
  // "emitDecoratorMetadata": true, /* Enables experimental support for emitting type metadata for decorators. */
72
+ "resolveJsonModule": true
72
73
  },
73
74
  "exclude": [
74
75
  "node_modules", // would be the default