cthep-ui-vue3
Version:
Vue 3 试题组件库
1 lines • 211 kB
JavaScript
(()=>{"use strict";var __webpack_modules__={971:()=>{function _typeof(e){return(_typeof="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)}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:t=e.split("-");return 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,d=a;0,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,d),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 e(){return e.method.apply(e.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("&").split("<").join("<").split(">").join(">")},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;i="[";t+="\t";for(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 d=e.toString();if("[object Object]"!=d)return d}var u=null;i="{\n";t+="\t";var m=null!=e.hasOwnProperty;for(var u in e)m&&!e.hasOwnProperty(u)||"prototype"!=u&&"__class__"!=u&&"__super__"!=u&&"__interfaces__"!=u&&"__properties__"!=u&&(2!=i.length&&(i+=", \n"),i+=t+u+" : "+js.Boot.__string_rec(e[u],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:t=e.split("-");return 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,d=a;0,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,d),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 e(){return e.method.apply(e.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("&").split("<").join("<").split(">").join(">")},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;i="[";t+="\t";for(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 d=e.toString();if("[object Object]"!=d)return d}var u=null;i="{\n";t+="\t";var m=null!=e.hasOwnProperty;for(var u in e)m&&!e.hasOwnProperty(u)||"prototype"!=u&&"__class__"!=u&&"__super__"!=u&&"__interfaces__"!=u&&"__properties__"!=u&&(2!=i.length&&(i+=", \n"),i+=t+u+" : "+js.Boot.__string_rec(e[u],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__},733:(e,t,n)=>{function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var r=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,r;return t=e,r=[{key:"safeXmlCharactersEntities",get:function(){return{tagOpener:"«",tagCloser:"»",doubleQuote:"¨",realDoubleQuote:"""}}},{key:"safeBadBlackboardCharacters",get:function(){return{ltElement:"«mo»<«/mo»",gtElement:"«mo»>«/mo»",ampElement:"«mo»&«/mo»"}}},{key:"safeGoodBlackboardCharacters",get:function(){return{ltElement:"«mo»§lt;«/mo»",gtElement:"«mo»§gt;«/mo»",ampElement:"«mo»§amp;«/mo»"}}},{key:"xmlCharacters",get:function(){return{id:"xmlCharacters",tagOpener:"<",tagCloser:">",doubleQuote:'"',ampersand:"&",quote:"'"}}},{key:"safeXmlCharacters",get:function(){return{id:"safeXmlCharacters",tagOpener:"«",tagCloser:"»",doubleQuote:"¨",ampersand:"§",quote:"`",realDoubleQuote:"¨"}}}],(n=null)&&i(t.prototype,n),r&&i(t,r),e}();function a(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var o=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,i;return t=e,i=[{key:"isMathmlInAttribute",value:function(e,t){var n="[\\s]*(".concat("\"[^\"]*\"|'[^']*'",")[\\s]*=[\\s]*[\\w-]+[\\s]*"),i="('".concat(n,"')*"),r="^".concat("['\"][\\s]*=[\\s]*[\\w-]+").concat(i,"[\\s]+gmi<"),a=new RegExp(r),o=e.substring(0,t).split("").reverse().join("");return a.test(o)}},{key:"safeXmlDecode",value:function(e){var t=r.safeXmlCharactersEntities.tagOpener,n=r.safeXmlCharactersEntities.tagCloser,i=r.safeXmlCharactersEntities.doubleQuote,a=r.safeXmlCharactersEntities.realDoubleQuote;e=(e=(e=(e=e.split(t).join(r.safeXmlCharacters.tagOpener)).split(n).join(r.safeXmlCharacters.tagCloser)).split(i).join(r.safeXmlCharacters.doubleQuote)).split(a).join(r.safeXmlCharacters.realDoubleQuote);var o=r.safeBadBlackboardCharacters.ltElement,s=r.safeBadBlackboardCharacters.gtElement,l=r.safeBadBlackboardCharacters.ampElement;"_wrs_blackboard"in window&&window._wrs_blackboard&&(e=(e=(e=e.split(o).join(r.safeGoodBlackboardCharacters.ltElement)).split(s).join(r.safeGoodBlackboardCharacters.gtElement)).split(l).join(r.safeGoodBlackboardCharacters.ampElement)),t=r.safeXmlCharacters.tagOpener,n=r.safeXmlCharacters.tagCloser,i=r.safeXmlCharacters.doubleQuote,a=r.safeXmlCharacters.realDoubleQuote;var c=r.safeXmlCharacters.ampersand,d=r.safeXmlCharacters.quote;e=(e=(e=(e=(e=e.split(t).join(r.xmlCharacters.tagOpener)).split(n).join(r.xmlCharacters.tagCloser)).split(i).join(r.xmlCharacters.doubleQuote)).split(c).join(r.xmlCharacters.ampersand)).split(d).join(r.xmlCharacters.quote);for(var u="",m=null,h=0;h<e.length;h+=1){var g=e.charAt(h);null==m?"$"===g?m="":u+=g:";"===g?(u+="&".concat(m),m=null):g.match(/([a-zA-Z0-9#._-] | '-')/)?m+=g:(u+="$".concat(m),m=null,h-=1)}return u}},{key:"safeXmlEncode",value:function(e){var t=r.xmlCharacters.tagOpener,n=r.xmlCharacters.tagCloser,i=r.xmlCharacters.doubleQuote,a=r.xmlCharacters.ampersand,o=r.xmlCharacters.quote;return e=(e=(e=(e=(e=e.split(t).join(r.safeXmlCharacters.tagOpener)).split(n).join(r.safeXmlCharacters.tagCloser)).split(i).join(r.safeXmlCharacters.doubleQuote)).split(a).join(r.safeXmlCharacters.ampersand)).split(o).join(r.safeXmlCharacters.quote)}},{key:"mathMLEntities",value:function(e){for(var t="",n=0;n<e.length;n+=1){var i=e.charAt(n);if(e.codePointAt(n)>128)t+="&#".concat(e.codePointAt(n),";"),e.codePointAt(n)>65535&&(n+=1);else if("&"===i){var r=e.indexOf(";",n+1);if(r>=0){var a=document.createElement("span");a.innerHTML=e.substring(n,r+1),t+="&#".concat(w.fixedCharCodeAt(a.textContent||a.innerText,0),";"),n=r}else t+=i}else t+=i}return t}},{key:"addCustomEditorClassAttribute",value:function(e,t){var n="",i=e.indexOf("<math");if(0===i){var r=e.indexOf(">");if(-1===e.indexOf("class"))return n="".concat(e.substr(i,r),' class="wrs_').concat(t,'">'),n+=e.substr(r+1,e.length)}return e}},{key:"removeCustomEditorClassAttribute",value:function(e,t){return-1===e.indexOf("class")||-1===e.indexOf("wrs_".concat(t))?e:-1!==e.indexOf('class="wrs_'.concat(t,'"'))?e.replace('class="wrs_'.concat(t,'"'),""):e.replace("wrs_".concat(t),"")}},{key:"addAnnotation",value:function(t,n,i){var r="";if(-1!==t.indexOf("<annotation")){var a=t.indexOf("</semantics>");r="".concat(t.substring(0,a),'<annotation encoding="').concat(i,'">').concat(n,"</annotation>").concat(t.substring(a))}else if(e.isEmpty(t)){var o=t.indexOf("/>"),s=t.indexOf(">"),l=s===o?o:s;r="".concat(t.substring(0,l),'><semantics><annotation encoding="').concat(i,'">').concat(n,"</annotation></semantics></math>")}else{var c=t.indexOf(">")+1,d=t.lastIndexOf("</math>"),u=t.substring(c,d);r="".concat(t.substring(0,c),"<semantics>").concat(u,'<annotation encoding="').concat(i,'">').concat(n,"</annotation></semantics></math>")}return r}},{key:"removeAnnotation",value:function(t,n){var i=t,r='<annotation encoding="'.concat(n,'">'),a="</annotation>",o=t.indexOf(r);if(-1!==o){for(var s=!1,l=t.indexOf("<annotation");-1!==l;)l!==o&&(s=!0),l=t.indexOf("<annotation",l+1);if(s){var c=t.indexOf(a,o)+a.length;i=t.substring(0,o)+t.substring(c)}else i=e.removeSemantics(t)}return i}},{key:"removeSemantics",value:function(e){var t="<semantics>",n=e,i=e.indexOf(t);if(-1!==i){var r=e.indexOf("<annotation",i+t.length);-1!==r&&(n=e.substring(0,i)+e.substring(i+t.length,r)+"</math>")}return n}},{key:"removeSemanticsOcurrences",value:function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r.xmlCharacters,n="".concat(t.tagOpener,"math"),i="".concat(t.tagOpener,"/math").concat(t.tagCloser),a="/".concat(t.tagCloser),o=t.tagCloser,s="".concat(t.tagOpener,"semantics").concat(t.tagCloser),l="".concat(t.tagOpener,"annotation encoding="),c="",d=e.indexOf(n),u=0;-1!==d;){c+=e.substring(u,d);var m=e.indexOf(i,d),h=e.indexOf(a,d),g=e.indexOf(o,d);-1!==m?u=m:h===g-1&&(u=h);var p=e.indexOf(s,d);if(-1!==p){var f=e.substring(d,p),_=e.indexOf(l,d);if(-1!==_){var v=p+s.length,b=e.substring(v,_);c+=f+b+i,d=e.indexOf(n,d+n.length),u+=i.length}else u=d,d=e.indexOf(n,d+n.length)}else u=d,d=e.indexOf(n,d+n.length)}return c+=e.substring(u,e.length)}},{key:"containClass",value:function(e,t){var n=e.indexOf("class");if(-1===n)return!1;var i=e.indexOf(">",n);return-1!==e.substring(n,i).indexOf(t)}},{key:"isEmpty",value:function(e){var t=e.indexOf(">"),n=e.indexOf("/>"),i=!1;if(-1!==n&&n===t-1&&(i=!0),!i){var r=new RegExp("</(.+:)?math>").exec(e);r&&(i=t+1===r.index)}return i}},{key:"encodeProperties",value:function(e){return e.replace(/\w+=".*?"/g,(function(e){var t=e.indexOf('"'),n=e.substring(t+1,e.length-1),i=w.htmlEntities(n);return"".concat(e.substring(0,t+1)).concat(i,'"')}))}}],(n=null)&&a(t.prototype,n),i&&a(t,i),e}();function s(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var l=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,i;return t=e,i=[{key:"addConfiguration",value:function(t){Object.assign(e.properties,t)}},{key:"properties",get:function(){return e._properties},set:function(t){e._properties=t}},{key:"get",value:function(t){return Object.prototype.hasOwnProperty.call(e.properties,t)?e.properties[t]:!!Object.prototype.hasOwnProperty.call(e.properties,"_wrs_conf_")&&e.properties["_wrs_conf_".concat(t)]}},{key:"set",value:function(t,n){e.properties[t]=n}},{key:"update",value:function(t,n){if(e.get(t)){var i=Object.assign(e.get(t),n);e.set(t,i)}else e.set(t,n)}}],(n=null)&&s(t.prototype,n),i&&s(t,i),e}();function c(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}l._properties={};var d=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.cache=[]}var t,n,i;return t=e,(n=[{key:"populate",value:function(e,t){this.cache[e]=t}},{key:"get",value:function(e){return!!Object.prototype.hasOwnProperty.call(this.cache,e)&&this.cache[e]}}])&&c(t.prototype,n),i&&c(t,i),e}();function u(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var m=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.listeners=[]}var t,n,i;return t=e,i=[{key:"newListener",value:function(e,t){var n={};return n.eventName=e,n.callback=t,n}}],(n=[{key:"add",value:function(e){this.listeners.push(e)}},{key:"fire",value:function(e,t){for(var n=0;n<this.listeners.length&&!t.cancelled;n+=1)this.listeners[n].eventName===e&&this.listeners[n].callback(t);return t.defaultPrevented}}])&&u(t.prototype,n),i&&u(t,i),e}();function h(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var g=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,i;return t=e,i=[{key:"listeners",get:function(){return e._listeners}},{key:"addListener",value:function(t){e.listeners.add(t)}},{key:"fireEvent",value:function(t,n){e.listeners.fire(t,n)}},{key:"parameters",get:function(){return e._parameters},set:function(t){e._parameters=t}},{key:"servicePaths",get:function(){return e._servicePaths},set:function(t){e._servicePaths=t}},{key:"setServicePath",value:function(t,n){e.servicePaths[t]=n}},{key:"getServicePath",value:function(t){return e.servicePaths[t]}},{key:"integrationPath",get:function(){return e._integrationPath},set:function(t){e._integrationPath=t}},{key:"getServerURL",value:function(){var e=window.location.href.split("/");return"".concat(e[0],"//").concat(e[2])}},{key:"init",value:function(t){e.parameters=t;var n=e.createServiceURI("configurationjs"),i=e.createServiceURI("createimage"),r=e.createServiceURI("showimage"),a=e.createServiceURI("getmathml"),o=e.createServiceURI("service");if(0===e.parameters.URI.indexOf("/")){var s=e.getServerURL();n=s+n,r=s+r,i=s+i,a=s+a,o=s+o}e.setServicePath("configurationjs",n),e.setServicePath("showimage",r),e.setServicePath("createimage",i),e.setServicePath("service",o),e.setServicePath("getmathml",a),e.setServicePath("configurationjs",n),e.listeners.fire("onInit",{})}},{key:"getUrl",value:function(e,t){var n=window.location.toString().substr(0,window.location.toString().lastIndexOf("/")+1),i=w.createHttpRequest();return i?(void 0===t||void 0===t?i.open("GET",e,!1):"/"===e.substr(0,1)||"http://"===e.substr(0,7)||"https://"===e.substr(0,8)?i.open("POST",e,!1):i.open("POST",n+e,!1),void 0!==t&&t?(i.setRequestHeader("Content-type","application/x-www-form-urlencoded; charset=UTF-8"),i.send(w.httpBuildQuery(t))):i.send(null),i.responseText):""}},{key:"getService",value:function(t,n,i){var r;if(!0===i){var a=n?"?".concat(n):"",o="".concat(e.getServicePath(t)).concat(a);r=e.getUrl(o)}else{var s=e.getServicePath(t);r=e.getUrl(s,n)}return r}},{key:"getServerLanguageFromService",value:function(e){return-1!==e.indexOf(".php")?"php":-1!==e.indexOf(".aspx")?"aspx":-1!==e.indexOf("wirispluginengine")?"ruby":"java"}},{key:"createServiceURI",value:function(t){var n=e.serverExtension();return w.concatenateUrl(e.parameters.URI,t)+n}},{key:"serverExtension",value:function(){return-1!==e.parameters.server.indexOf("php")?".php":-1!==e.parameters.server.indexOf("aspx")?".aspx":""}}],(n=null)&&h(t.prototype,n),i&&h(t,i),e}();function p(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}g._servicePaths={},g._integrationPath="",g._listeners=new m,g._parameters={};var f=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,i;return t=e,i=[{key:"cache",get:function(){return e._cache},set:function(t){e._cache=t}},{key:"getLatexFromMathML",value:function(t){var n=o.removeSemantics(t),i=e.cache,r={service:"mathml2latex",mml:n},a=JSON.parse(g.getService("service",r)),s="";if("ok"===a.status){s=a.result.text;var l=w.htmlEntities(s),c=o.addAnnotation(t,l,"LaTeX");i.populate(s,c)}return s}},{key:"getMathMLFromLatex",value:function(t,n){var i=e.cache;if(e.cache.get(t))return e.cache.get(t);var r={service:"latex2mathml",latex:t};n&&(r.saveLatex="");var a,s=JSON.parse(g.getService("service",r));if("ok"===s.status){var l=s.result.text;if(-1===(l=l.split("\r").join("").split("\n").join(" ")).indexOf("semantics")&&-1===l.indexOf("annotation")){var c=w.htmlEntities(t);a=l=o.addAnnotation(l,c,"LaTeX")}else a=l;i.get(t)||i.populate(t,l)}else a="$$".concat(t,"$$");return a}},{key:"parseMathmlToLatex",value:function(t,n){for(var i,a,s,l="",c="".concat(n.tagOpener,"math"),d="".concat(n.tagOpener,"/math").concat(n.tagCloser),u="".concat(n.tagOpener,"annotation encoding=").concat(n.doubleQuote,"LaTeX").concat(n.doubleQuote).concat(n.tagCloser),m="".concat(n.tagOpener,"/annotation").concat(n.tagCloser),h=t.indexOf(c),g=0;-1!==h;){if(l+=t.substring(g,h),-1===(g=t.indexOf(d,h))?g=t.length-1:g+=d.length,-1!==(a=(i=t.substring(h,g)).indexOf(u))){a+=u.length,s=i.indexOf(m);var p=i.substring(a,s);n===r.safeXmlCharacters&&(p=o.safeXmlDecode(p)),l+="$$".concat(p,"$$"),e.cache.populate(p,i)}else l+=i;h=t.indexOf(c,g)}return l+=t.substring(g,t.length)}},{key:"getLatexFromTextNode",value:function(e,t,n){void 0!==n&&null!=n||(n={open:"$$",close:"$$"});for(var i,r=e;r.previousSibling&&3===r.previousSibling.nodeType;)r=r.previousSibling;function a(e,t,i){for(var r=e.nodeValue.indexOf(i,t);-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}var s,l={node:r,position:0},c=n.open.length;do{if(null==(i=a(l.node,l.position,n.open))||o(e,t,i.node,i.position))return null;if(null==(l=a(i.node,i.position+c,n.close)))return null;l.position+=c}while(o(l.node,l.position,e,t));if(i.node===l.node)s=i.node.nodeValue.substring(i.position+c,l.position-c);else{var d=i.position+c;s=i.node.nodeValue.substring(d,i.node.nodeValue.length);var u=i.node;do{(u=u.nextSibling)===l.node?s+=l.node.nodeValue.substring(0,l.position-c):s+=u.nodeValue?u.nodeValue:""}while(u!==l.node)}return{latex:s,startNode:i.node,startPosition:i.position,endNode:l.node,endPosition:l.position}}}],(n=null)&&p(t.prototype,n),i&&p(t,i),e}();f._cache=new d;const _=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_chem":"化学公式","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