{"version":3,"sources":["webpack:///./plugins/mathjax/js/mathjax.ts"],"names":["elements","head","document","mathJaxSrc","createElement","this","config","init","window","MathJax","JSON","parse","stringify","nonce","UX","getRequestId","type","src","utils","releasedAssetsPath","appendChild","error","console"],"mappings":"2FAIA,wBAOI,mBAJA,KAAAA,SAAW,CACPC,KAAMC,SAASD,KACfE,WAAYD,SAASE,cAAc,WAGnCC,KAAKC,OAAS,+JACdD,KAAKE,OAgBb,OAdI,kBAAAA,KAAA,WACI,IACKC,OAAeC,QAAUC,KAAKC,MAAMD,KAAKE,UAAUP,KAAKC,SACzD,IAAMO,EAAQC,IAAMA,GAAGC,aAAeD,GAAGC,eAAiB,KACvDF,IACCR,KAAKL,SAASG,WAAWU,MAAQA,GAErCR,KAAKL,SAASG,WAAWa,KAAO,kBAChCX,KAAKL,SAASG,WAAWc,IAASH,GAAGI,MAAMC,qBAATL,uFAClCT,KAAKL,SAASC,KAAKmB,YAAYf,KAAKL,SAASG,YAC/C,MAAOkB,GACLC,QAAQD,MAAM,gDAAiDA,KAG3E,QAzBA,G","file":"js/mathjax-76cd3cb1e6846056b11b.js","sourcesContent":["\n\ndeclare let FilesFingerprint: any;\n\nexport default class Mathjax {\n public src: string;\n public config: string;\n elements = {\n head: document.head,\n mathJaxSrc: document.createElement('script')\n };\n constructor() {\n this.config = 'MathJax.Hub.Config({CommonHTML: { linebreaks: { automatic: true } },\"HTML-CSS\": { linebreaks: {automatic: true}},SVG: { linebreaks: { automatic: true} },});'\n this.init();\n }\n init() {\n try {\n (window as any).MathJax = JSON.parse(JSON.stringify(this.config));\n const nonce = UX && UX.getRequestId ? UX.getRequestId() : null;\n if(nonce) {\n this.elements.mathJaxSrc.nonce = nonce;\n }\n this.elements.mathJaxSrc.type = 'text/javascript';\n this.elements.mathJaxSrc.src = `${UX.utils.releasedAssetsPath()}public/mathjaxV2-${FilesFingerprint.mathjaxV2}/MathJax.js?config=TeX-MML-AM_CHTML`;\n this.elements.head.appendChild(this.elements.mathJaxSrc);\n } catch (error) {\n console.error(\"something went wrong when importing Mathjax :\", error)\n }\n }\n}"],"sourceRoot":""}