{"ast":null,"code":"\"use strict\";\n\nvar __extends = this && this.__extends || function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p];\n };\n return extendStatics(d, b);\n };\n return function (d, b) {\n if (typeof b !== \"function\" && b !== null) throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\n extendStatics(d, b);\n function __() {\n this.constructor = d;\n }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.SVGmerror = void 0;\nvar Wrapper_js_1 = require(\"../Wrapper.js\");\nvar merror_js_1 = require(\"../../../core/MmlTree/MmlNodes/merror.js\");\nvar SVGmerror = function (_super) {\n __extends(SVGmerror, _super);\n function SVGmerror() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n SVGmerror.prototype.toSVG = function (parent) {\n var svg = this.standardSVGnode(parent);\n var _a = this.getBBox(),\n h = _a.h,\n d = _a.d,\n w = _a.w;\n this.adaptor.append(this.element, this.svg('rect', {\n 'data-background': true,\n width: this.fixed(w),\n height: this.fixed(h + d),\n y: this.fixed(-d)\n }));\n var title = this.node.attributes.get('title');\n if (title) {\n this.adaptor.append(this.element, this.svg('title', {}, [this.adaptor.text(title)]));\n }\n this.addChildren(svg);\n };\n SVGmerror.kind = merror_js_1.MmlMerror.prototype.kind;\n SVGmerror.styles = {\n 'g[data-mml-node=\"merror\"] > g': {\n fill: 'red',\n stroke: 'red'\n },\n 'g[data-mml-node=\"merror\"] > rect[data-background]': {\n fill: 'yellow',\n stroke: 'none'\n }\n };\n return SVGmerror;\n}(Wrapper_js_1.SVGWrapper);\nexports.SVGmerror = SVGmerror;","map":{"version":3,"names":["__extends","extendStatics","d","b","Object","setPrototypeOf","__proto__","Array","p","prototype","hasOwnProperty","call","TypeError","String","__","constructor","create","defineProperty","exports","value","SVGmerror","Wrapper_js_1","require","merror_js_1","_super","apply","arguments","toSVG","parent","svg","standardSVGnode","_a","getBBox","h","w","adaptor","append","element","width","fixed","height","y","title","node","attributes","get","text","addChildren","kind","MmlMerror","styles","fill","stroke","SVGWrapper"],"sources":["F:/workspace/202226701027/huinongbao-app/node_modules/mathjax-full/js/output/svg/Wrappers/merror.js"],"sourcesContent":["\"use strict\";\nvar __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n if (typeof b !== \"function\" && b !== null)\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.SVGmerror = void 0;\nvar Wrapper_js_1 = require(\"../Wrapper.js\");\nvar merror_js_1 = require(\"../../../core/MmlTree/MmlNodes/merror.js\");\nvar SVGmerror = (function (_super) {\n __extends(SVGmerror, _super);\n function SVGmerror() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n SVGmerror.prototype.toSVG = function (parent) {\n var svg = this.standardSVGnode(parent);\n var _a = this.getBBox(), h = _a.h, d = _a.d, w = _a.w;\n this.adaptor.append(this.element, this.svg('rect', {\n 'data-background': true,\n width: this.fixed(w), height: this.fixed(h + d), y: this.fixed(-d)\n }));\n var title = this.node.attributes.get('title');\n if (title) {\n this.adaptor.append(this.element, this.svg('title', {}, [this.adaptor.text(title)]));\n }\n this.addChildren(svg);\n };\n SVGmerror.kind = merror_js_1.MmlMerror.prototype.kind;\n SVGmerror.styles = {\n 'g[data-mml-node=\"merror\"] > g': {\n fill: 'red',\n stroke: 'red'\n },\n 'g[data-mml-node=\"merror\"] > rect[data-background]': {\n fill: 'yellow',\n stroke: 'none'\n }\n };\n return SVGmerror;\n}(Wrapper_js_1.SVGWrapper));\nexports.SVGmerror = SVGmerror;\n"],"mappings":"AAAA,YAAY;;AACZ,IAAIA,SAAS,GAAI,IAAI,IAAI,IAAI,CAACA,SAAS,IAAM,YAAY;EACrD,IAAIC,aAAa,GAAG,SAAAA,CAAUC,CAAC,EAAEC,CAAC,EAAE;IAChCF,aAAa,GAAGG,MAAM,CAACC,cAAc,IAChC;MAAEC,SAAS,EAAE;IAAG,CAAC,YAAYC,KAAK,IAAI,UAAUL,CAAC,EAAEC,CAAC,EAAE;MAAED,CAAC,CAACI,SAAS,GAAGH,CAAC;IAAE,CAAE,IAC5E,UAAUD,CAAC,EAAEC,CAAC,EAAE;MAAE,KAAK,IAAIK,CAAC,IAAIL,CAAC,EAAE,IAAIC,MAAM,CAACK,SAAS,CAACC,cAAc,CAACC,IAAI,CAACR,CAAC,EAAEK,CAAC,CAAC,EAAEN,CAAC,CAACM,CAAC,CAAC,GAAGL,CAAC,CAACK,CAAC,CAAC;IAAE,CAAC;IACrG,OAAOP,aAAa,CAACC,CAAC,EAAEC,CAAC,CAAC;EAC9B,CAAC;EACD,OAAO,UAAUD,CAAC,EAAEC,CAAC,EAAE;IACnB,IAAI,OAAOA,CAAC,KAAK,UAAU,IAAIA,CAAC,KAAK,IAAI,EACrC,MAAM,IAAIS,SAAS,CAAC,sBAAsB,GAAGC,MAAM,CAACV,CAAC,CAAC,GAAG,+BAA+B,CAAC;IAC7FF,aAAa,CAACC,CAAC,EAAEC,CAAC,CAAC;IACnB,SAASW,EAAEA,CAAA,EAAG;MAAE,IAAI,CAACC,WAAW,GAAGb,CAAC;IAAE;IACtCA,CAAC,CAACO,SAAS,GAAGN,CAAC,KAAK,IAAI,GAAGC,MAAM,CAACY,MAAM,CAACb,CAAC,CAAC,IAAIW,EAAE,CAACL,SAAS,GAAGN,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