mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-18 12:15:44 +01:00
1 line
1.5 MiB
JavaScript
1 line
1.5 MiB
JavaScript
|
!function(){"use strict";var Q={351:function(Q,t,T){var e,r=this&&this.__extends||(e=function(Q,t){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Q,t){Q.__proto__=t}||function(Q,t){for(var T in t)Object.prototype.hasOwnProperty.call(t,T)&&(Q[T]=t[T])})(Q,t)},function(Q,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function T(){this.constructor=Q}e(Q,t),Q.prototype=null===t?Object.create(t):(T.prototype=t.prototype,new T)}),n=this&&this.__assign||function(){return(n=Object.assign||function(Q){for(var t,T=1,e=arguments.length;T<e;T++)for(var r in t=arguments[T])Object.prototype.hasOwnProperty.call(t,r)&&(Q[r]=t[r]);return Q}).apply(this,arguments)},o=this&&this.__read||function(Q,t){var T="function"==typeof Symbol&&Q[Symbol.iterator];if(!T)return Q;var e,r,n=T.call(Q),o=[];try{for(;(void 0===t||t-- >0)&&!(e=n.next()).done;)o.push(e.value)}catch(Q){r={error:Q}}finally{try{e&&!e.done&&(T=n.return)&&T.call(n)}finally{if(r)throw r.error}}return o},i=this&&this.__spreadArray||function(Q,t){for(var T=0,e=t.length,r=Q.length;T<e;T++,r++)Q[r]=t[T];return Q},s=this&&this.__values||function(Q){var t="function"==typeof Symbol&&Symbol.iterator,T=t&&Q[t],e=0;if(T)return T.call(Q);if(Q&&"number"==typeof Q.length)return{next:function(){return Q&&e>=Q.length&&(Q=void 0),{value:Q&&Q[e++],done:!Q}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.AssistiveMmlHandler=t.AssistiveMmlMathDocumentMixin=t.AssistiveMmlMathItemMixin=t.LimitedMmlVisitor=void 0;var a=T(4474),l=T(9259),c=T(7233),u=function(Q){function t(){return null!==Q&&Q.apply(this,arguments)||this}return r(t,Q),t.prototype.getAttributes=function(t){return Q.prototype.getAttributes.call(this,t).replace(/ ?id=".*?"/,"")},t}(l.SerializedMmlVisitor);function L(Q){return function(Q){function t(){return null!==Q&&Q.apply(this,arguments)||this}return r(t,Q),t.prototype.assistiveMml=function(Q,t){if(void 0===t&&(t=!1),!(this.state()>=a.STATE.ASSISTIVEMML)){if(!this.isEscaped&&(Q.options.enableAssistiveMml||t)){var T=Q.adaptor,e=Q.toMML(this.root).replace(/\n */g,"").replace(/<!--.*?-->/g,""),r=T.firstChild(T.body(T.parse(e,"text/html"))),n=T.node("mjx-assistive-mml",{unselectable:"on",display:this.display?"block":"inline"},[r]);T.setAttribute(T.firstChild(this.typesetRoot),"aria-hidden","true"),T.setStyle(this.typesetRoot,"position","relative"),T.append(this.typesetRoot,n)}this.state(a.STATE.ASSISTIVEMML)}},t}(Q)}function p(Q){var t;return(t=function(Q){function t(){for(var t=[],T=0;T<arguments.length;T++)t[T]=arguments[T];var e=Q.apply(this,i([],o(t)))||this,r=e.constructor,n=r.ProcessBits;return n.has("assistive-mml")||n.allocate("assistive-mml"),e.visitor=new u(e.mmlFactory),e.options.MathItem=L(e.options.MathItem),"addStyles"in e&&e.addStyles(r.assistiveStyles),e}return r(t,Q),t.prototype.toMML=function(Q){return this.visitor.visitTree(Q)},t.prototype.assistiveMml=function(){var Q,t;if(!this.processed.isSet("assistive-mml")){try{for(var T=s(this.math),e=T.next();!e.done;e=T.next()){e.value.assistiveMml(this)}}catch(t){Q={error:t}}finally{try{e&&!e.done&&(t=T.return)&&t.call(T)}finally{if(Q)throw Q.error}}this.processed.set("assistive-mml")}return this},t.prototype.state=function(t,T){return void 0===T&&(T=!1),Q.prototype.state.call(this,t,T),t<a.STATE.ASSISTIVEMML&&this.processed.clear("assistive-mml"),this},t}(Q)).OPTIONS=n(n({},Q.OPTIONS),{enableAssistiveMml:!0,renderActions:c.expandable(n(n({},Q.OPTIONS.renderActions),{assistiveMml:[a.STATE.ASSISTIVEMML]}))}),t.assistiveStyles={"mjx-assistive-mml":{position:"absolute !important",top:"0px",left:"0px",clip:"rect(1px, 1px, 1px, 1px)",padding:"1px 0px 0px 0px !important",border:"0px !important",display:"block !important",width:"auto !important",overflow:"hidden !important","-webkit-touch-callout":"none","-webkit-user-select":"none","-khtml-user-select":"none","-moz-user-select":"none","-ms-user-select":"none","user-select":"none"},'mjx-assistive-mm
|