PageSourceSearch

https://aunivers.no/815d0d87/_nuxt/n5qIHvPw.js

js aunivers.no collected 2026-10-09 04:42:14 UTC 78,881 bytes, 4 lines download raw bytes

1
2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="bbb70ef6-c6db-5260-9c36-8b974585df5c")}catch(e){}}();
3var t="http://www.w3.org/1998/Math/MathML",e={_plugins:new Map,_css:"",_createStyleSheet:t=>{if(t.length!==e.cssKey){e.cssKey=t.length;const n=document.createElement("style");n.textContent=t,document.head.appendChild(n),e.styleSheet=n,document.head.removeChild(n)}return e.styleSheet},getCSSStyleSheet:()=>e._createStyleSheet(e._css).cloneNode(!0),transform:t=>{for(const n of e._plugins.keys()){let r=e._plugins.get(n);Array.from(t.querySelectorAll(n)).reverse().forEach(t=>{let e=r(t);e&&e!==t&&t.parentElement.replaceChild(e,t)})}},add:(t,n,r="")=>{e._plugins.set(t,n),e._css+=r}};function n(t,r){if(void 0===r&&(r=t.cloneNode(!0)),t.shadowRoot){let i=r.attachShadow({mode:"open"});i.appendChild(e.getCSSStyleSheet());for(let e=0;e<t.shadowRoot.childElementCount;e++)i.appendChild(n(t.shadowRoot.children[e]))}for(let e=0;e<t.childElementCount;e++)n(t.children[e],r.children[e]);return r}function r(t){t.offsetHeight}function i(e){if(!e||!e.parentElement)return{width:0,height:0,depth:0};const r=document.createElementNS(t,"mrow");r.appendChild(document.createElementNS(t,"mspace"));const i=n(e);for(;i.children.length>0;)r.appendChild(i.children[0]);i.appendChild(r);const a=e.parentElement;a.replaceChild(i,e);const o=r.firstElementChild.getBoundingClientRect(),l=r.getBoundingClientRect();return a.replaceChild(e,i),{width:l.width,height:o.y-l.top,depth:l.bottom-o.y}}function a(e,n){const i=document.createElementNS(t,"math");i.setAttribute("display","block"),Object.assign(i.style,{position:"absolute",left:"-9999px",top:"0",visibility:"hidden",pointerEvents:"none"});const a=document.createElementNS(t,"mrow");let o=null;o=document.createElementNS(t,"mspace"),a.appendChild(o),a.appendChild(e),i.appendChild(a),document.body.appendChild(i),r(i);const l=e.getBoundingClientRect();let s;if(o){const t=o.getBoundingClientRect().y;s={width:l.width,height:Math.max(0,t-l.top),depth:Math.max(0,l.bottom-t)}}else s={width:l.width,height:l.height,depth:0};return e.remove(),i.remove(),s}function o(e,n){if(/px/.test(n))return parseFloat(n);let r=document.createElement("img"),i=document.createElementNS(t,"mtext");i.appendChild(r),i.style.overflow="hidden",i.style.visibility="hidden",r.style.width=n,e.appendChild(i);const a=i.getBoundingClientRect().width;return i.remove(),a}e.add("mglyph",t=>{const e=document.createElement("img"),n=t.attributes;for(let r=n.length-1;r>=0;r--)switch(n[r].name){case"valign":e.setAttribute("style",`vertical-align: ${n[r].value}`);break;case"width":case"height":e.setAttribute(n[r].name,o(t.parentElement,n[r].value).toString());break;default:e.setAttribute(n[r].name,n[r].value)}return e});var l="http://www.w3.org/1998/Math/MathML";function s(t){return t.replace(/^[\s]+|[\s]+$/g,"").replace(/[\s]+/g," ")}function d(t,e){let n=document.createElementNS(l,"mo");return n.appendChild(document.createTextNode(t)),n.setAttribute("fence","true"),n}function c(){return document.createElementNS(l,"mrow")}function m(t){return t.namespaceURI||!["dir","open","close","separators"].includes(t.localName)}function h(e){return e.namespaceURI===t}function u(t){if(!h(t))return!1;const e=t.localName;return"annotation"===e||"annotation-xml"===e}function p(t){if(null==t)return!1;const e=t.trim().split(";")[0].trim().toLowerCase();return"application/mathml-presentation+xml"===e||"mathml-presentation"===e}e.add("mfenced",t=>{let e=c();if(e.appendChild(d(s(t.getAttribute("open")||"("))),1===t.childElementCount)e.appendChild(n(t.firstElementChild));else if(t.childElementCount>1){let r=function(t){if(null===t)return[","];let e=[];for(let n=0;n<t.length;n++)if(!/\s/g.test(t.charAt(n))){let r=t.charCodeAt(n);r>=55296&&r<56320&&n+1<t.length?(e.push(t.substr(n,2)),n++):e.push(t.charAt(n))}return e}(t.getAttribute("separators")),i=c(),a=t.firstElementChild;for(;a;)i.appendChild(n(a)),a=a.nextElementSibling,a&&r.length&&i.appendChild(d(r.length>
31?r.shift():r[0]));e.appendChild(i)}e.appendChild(d(s(t.getAttribute("close")||")")));for(let n=0;n<t.attributes.length;n++){let r=t.attributes[n];m(r)&&e.setAttributeNS(r.namespaceURI,r.localName,r.value)}return e});e.add("math semantics",t=>{if("semantics"!==t.localName||!h(t))return t;const e=t.firstElementChild;if(e&&h(e)&&!u(e))return t;let n=null;for(const i of t.children)if(h(i)&&"annotation-xml"===i.localName&&p(i.getAttribute("encoding"))&&i.hasChildNodes()){n=i;break}if(n){const e=document.createDocumentFragment();for(;n.firstChild;)e.appendChild(n.firstChild);return t.insertBefore(e,t.firstChild),n.remove(),t}let r=null;for(const i of t.children)if(h(i)&&!u(i)){r=i;break}return r&&t.insertBefore(r,t.firstChild),t});e.add("mfrac[bevelled]",e=>{if(!function(t){if(!t.hasAttribute("bevelled"))return!1;const e=t.getAttribute("bevelled");if(null==e)return!1;const n=e.trim();if(""===n)return!0;const r=n.toLowerCase();return"false"!==r&&"0"!==r&&"no"!==r&&("true"===r||"yes"===r||"1"===r)}(e))return e;if(2!==e.childElementCount)return e;const n=e.children[0],r=e.children[1],i=o(n,"0.5em"),l=document.createElementNS(t,"mstyle");l.setAttribute("displaystyle","false"),l.setAttribute("scriptlevel","+1"),l.appendChild(n);const s=document.createElementNS(t,"mstyle");s.setAttribute("displaystyle","false"),s.setAttribute("scriptlevel","+1"),s.appendChild(r);const d=a(l),c=a(s),m=Math.max(d.height,c.height)+i,h=d.height+i,u=Math.max(Math.max(h,c.height),Math.max(d.depth+i,c.depth)),p=document.createElementNS(t,"mrow"),f=document.createElementNS(t,"mpadded");f.setAttribute("height",`${h}px`),f.setAttribute("depth",d.depth-i+"px"),f.setAttribute("voffset",`${i}px`),f.appendChild(l),p.appendChild(f);const g=document.createElementNS(t,"mo");g.setAttribute("stretchy","true"),g.setAttribute("maxsize",`${Math.round(u)}px`),g.setAttribute("symmetric","false"),g.setAttribute("lspace","0px"),g.setAttribute("rspace","0px"),g.appendChild(document.createTextNode("/")),p.appendChild(g),p.appendChild(s);const b=a(p),w=document.createElementNS(t,"mpadded"),C=i/2;return w.setAttribute("voffset",-C+"px"),w.setAttribute("height",`${Math.max(0,m-C)}px`),w.setAttribute("depth",b.depth-i+"px"),w.appendChild(p),w});var f=["msub","msup","msubsup","munder","mover","munderover","mmultiscripts","mfrac","semantics"],g=["mrow","mstyle","mphantom","mpadded"];function b(t){if("mtext"===t.tagName||"mspace"===t.tagName||"maligngroup"===t.tagName||"malignmark"===t.tagName)return!0;if(g.includes(t.tagName)){for(let e=0;e<t.children.length;e++)if(!b(t.children[e]))return!1;return"maction"===t.tagName&&t.hasAttribute("selection")&&b(t.children[t.elAttribute("selection")]),!0}return!1}function w(t){if("mo"===t.tagName)return t;if(f.includes(t.tagName))return w(t.firstChild);if(g.includes(t.tagName)){for(let e=0;e<t.children.length;e++)if(!b(t.children[e]))return w(t.children[e]);return null}return null}function C(t,e){const n=w(t);if(null===n)return;let r=n.getAttribute("accent");null===r&&"mo"===t.tagName&&(r="true"),null!==r&&t.parentElement.setAttribute(e,r)}var A=t=>{t.getAttribute("accentunder")||"mover"===t.tagName||C(t.children[1],"accentunder"),t.getAttribute("accent")||"munder"===t.tagName||C(2===t.children.length?t.children[1]:t.children[2],"accent")};function y(t){return t.getBoundingClientRect().width}function x(e,n,r,i){if(n>=i||"center"===r)return e;if("mrow"!==e.tagName){const n=e.nextElementSibling,r=document.createElementNS(t,"mrow"),i=e.parentElement;r.appendChild(e),i.insertBefore(r,n),e=r}let a=document.createElementNS(t,"mspace");return a.setAttribute("width",`${(i-n).toPrecision(2)}px`),"left"===r?e.appendChild(a):"right"===r&&e.insertBefore(a,e.firstElementChild),e}function E(t,e,n,r){return x(t.children[e],y(t.children[e]),t.getAttribute(r),y(t.children[n])),t}e.add("munder",A),e.add("mover",A),e.add("munderover",A);var S=t=>E(t,1,0,"align");function N(e,n,r,a){if(!e.hasAttribute(r))return;const l=e.getAttribute(r);if(null==l||!l.trim())return void e.removeAttribute(r);const s=e.children[n];if(!s)return;const d=o(s,l.trim());e.removeAttribute(r),function(e,n,r){if(!Number.isFinite(n)||n<=0)return;const a=document.createElementNS(t,"mpadded"),o=e.parentElement;if(!o)return;o.insertBefore(a,e),a.appendChild(e);const l=i(a),s=Math.max(0,l.height+("up"===r?n:0)),d=Math.max(0,l.depth+("down"===r?n:0)),c="down"===r?-n:n;a.setAttribute("height",`${s.toFixed(2)}px`),a.setAttribute("depth",`${d.toFixed(2)}px`),a.setAttribute("voffset",`${c.toFixed(2)}px`)}(s,d,a)}e.add("mfrac[numalign]",t=>E(t,0,1,"numalign")),e.add("mfrac[denomalign]",t=>E(t,1,0,"denomalign")),e.add("munder[align]",S),e.add("mover[align]",S),e.add("munderover[align]",t=>{const e=t.getAttribute("align"),n=y(t.children[0]),r=y(t.children[1]),i=y(t.children[2]),a=Math.max(n,r,i);return x(t.children[1],r,e,a),x(t.children[2],i,e,a),t});var v=t=>3!==t.childElementCount?t:t.hasAttribute("subscriptshift")||t.hasAttribute("superscriptshift")?(N(t,1,"subscriptshift","down"),N(t,2,"superscriptshift","up"),t):t;e.add("msub[subscriptshift]",t=>(2!==t.childElementCount||N(t,1,"subscriptshift","down"),t)),e.add("msup[superscriptshift]",t=>(2!==t.childElementCount||N(t,1,"superscriptshift","up"),t)),e.add("msubsup[subscriptshift]",v),e.add("msubsup[superscriptshift]",v);e.add('[mathsize="small"]',t=>(t.setAttribute("mathsize","75%"),t)),e.add('[mathsize="normal"]',t=>(t.setAttribute("mathsize","100%"),t)),e.add('[mathsize="big"]',t=>(t.setAttribute("mathsize","150%"),t));var k={veryverythinmathspace:"0.05555555555555555em",verythinmathspace:"0.1111111111111111em",thinmathspace:"0.16666666666666666em",veryverythickmathspace:"0.3888888888888889em",verythickmathspace:"0.3333333333333333em",thickmathspace:"0.2777777777777778em",mediummathspace:"0.2222222222222222em"},R=t=>{let e=t.getAttribute("rspace");if(e){for(const[t,n]of Object.entries(k))e=e.replaceAll(t,n);e=e.replaceAll("negative0","-0"),t.setAttribute("rspace",e)}if(e=t.getAttribute("lspace"),e){for(const[t,n]of Object.entries(k))e=e.replaceAll(t,n);e=e.replaceAll("negative0","-0"),t.setAttribute("lspace",e)}return t};e.add('math *[rspace*="mathspace"]',R),e.add('math *[lspace*="mathspace"]',R);var $,M,B=["left","right","top","bottom","actuarial","madruwb"],I={longdiv:"padding: 0.05em 0.2em 0.0em 0.433em; border-top: 0.067em solid;",actuarial:"padding-top: 0.01em; padding-right: 0.1em;",radical:"padding-top: 0.403em; padding-bottom: 0.112em; padding-left: 1.02em;",box:"padding: 0.2em;",roundedbox:"padding: 0.267em;",circle:"padding: 0.267em;",phasorangle:"border-bottom: 0.067em solid; padding: 0.2em 0.2em 0.0em 0.7em;",phasoranglertl:"border-bottom: 0.067em solid; padding: 0.2em 0.7em 0.0em 0.2em;",madruwb:"padding-bottom: 0.2em; padding-right: 0.2em;"},L={horizontalstrike:[0,0,!1,[""]],verticalstrike:[0,Math.PI/2,!1,[""]],updiagonalstrike:[-1,0,!1,[""]],downdiagonalstrike:[1,0,!1,[""]],uparrow:[0,-Math.PI/2,!1,["verticalstrike"]],downarrow:[0,Math.PI/2,!1,["verticalstrike"]],rightarrow:[0,0,!1,["horizontalstrike"]],leftarrow:[0,Math.PI,!1,["horizontalstrike"]],updownarrow:[0,Math.PI/2,!0,["verticalstrike","uparrow","downarrow"]],leftrightarrow:[0,0,!0,["horizontalstrike","leftarrow","rightarrow"]],northeastarrow:[-1,0,!1,["updiagonalstrike"]],southeastarrow:[1,0,!1,["downdiagonalstrike"]],northwestarrow:[1,Math.PI,!1,["downdiagonalstrike"]],southwestarrow:[-1,Math.PI,!1,["updiagonalstrike"]],northeastsouthwestarrow:[-1,0,!0,["updiagonalstrike","northeastarrow","southwestarrow"]],northwestsoutheastarrow:[1,0,!0,["downdiagonalstrike","northwestarrow","southeastarrow"]]},O=Array.from(new Set(B.concat(Object.keys(I).filter(t=>"phasoranglertl"!==t),Object.keys(L)))),U=new Set([...Object.keys(L),"phasorangle","phasoranglertl"]);function z(e){const n=document.createElement("div");n.setAttribute("style","position:fixed;left:0;top:0;visibility:hidden;pointer-events:none;display:inline-block;width:max-content;height:max-content;margin:0;padding:0;border:0;");const r=document.createElementNS(t,"math");r.innerHTML=e,n.appendChild(r),document.body.appendChild(n);const i=r.getBoundingClientRect(),a={width:i.width,height:i.height};return n.remove(),a}function q(t,e){return Math.abs(t.width-e.width)<.51&&Math.abs(t.height-e.height)<.51}function F(t){if(!function(){if(void 0!==$)return $;const t=z("<mrow><mi>x</mi></mrow>"),e=z('<mrow style="border:8px solid"><mi>x</mi></mrow>');return $=e.width>t.width+1||e.height>t.height+1}())return!1;
3if(t.trim().split(/\s+/).filter(Boolean).some(t=>U.has(t))&&!function(){if(void 0!==M)return M;const t="menclose-pos-probe-outer",e="menclose-pos-probe-abs",n=document.createElement("style");n.textContent=`mrow.${t}{display:inline-block;position:relative;}mrow.${e}{position:absolute;top:0;left:0;}`,document.head.appendChild(n);const r=z(`<mrow class="${t}"><mtext>X</mtext></mrow>`),i=z(`<mrow class="${t}"><mtext>X</mtext><mrow class="${e}"><mtext>MMMMMMMM</mtext></mrow></mrow>`);return n.remove(),M=i.width<r.width+4}())return!1;const e=z("<mi>x</mi>");return!!q(e,z('<menclose notation="box"><mi>x</mi></menclose>'))||(!(!/arrow/.test(t)||!q(e,z('<menclose notation="rightarrow"><mi>x</mi></menclose>')))||!(!/phasorangle/.test(t)||!q(e,z('<menclose notation="phasorangle"><mi>x</mi></menclose>'))))}var j=new Set(["notation"]);e.add("menclose",e=>{let r=e.getAttribute("notation")||"";if(!F(r))return e;let i=r.trim().split(/\s+/).filter(Boolean);if(i=i.filter(t=>O.includes(t)),0===i.length&&i.push("longdiv"),i=function(t){(t=Array.from(new Set(t))).includes("box")&&(t=t.filter(t=>!B.includes(t)));for(const[e,n]of Object.entries(L)){const r=n[3];r.some(t=>""!==t)&&t.includes(e)&&(t=t.filter(t=>!r.includes(t)))}return t}(i),i.includes("phasorangle")&&!function(t){let e=!0;do{if(t.hasAttribute("dir"))return"ltr"===t.getAttribute("dir");e="math"!==t.tagName,t=t.parentElement}while(e);return!0}(e)){const t=i.indexOf("phasorangle");i[t]="phasoranglertl"}const a=document.createElementNS(t,"mrow");let l=e.firstElementChild;for(;l;)a.appendChild(n(l)),l=l.nextElementSibling;const s=document.createElementNS(t,"mrow");if(s.appendChild(a),i.includes("radical")){const e=document.createElementNS(t,"msqrt");e.appendChild(s.firstElementChild),s.appendChild(e),i=i.filter(t=>"radical"!==t)}let d="";const c=function(t,e){let n="0.467em";return(e.includes("roundedbox")||e.includes("circle"))&&(n="0.601em"),o(t,n)}(e,i),m=e.getBoundingClientRect(),h=m.width+c,u=m.height+c;return i.forEach(n=>{const r=document.createElementNS(t,"mrow");if(void 0!==L[n]){const[e,i,a,o]=L[n],l=0===i||i===Math.PI,s=0===e?i:e*(Math.atan2(u,h)-i);let d=h,c=u;/arrow/.test(n)&&(d--,c--);const m=0===e?l?d:c:Math.sqrt(d*d+c*c);r.style.width=`${m}px`,r.style.transform=(s?`rotate(${s}rad) `:"")+"translate(0.067em, 0.0em)",r.style.left=(d-m)/2+"px";const p=document.createElementNS(t,"mrow");if(p.className="line",r.appendChild(p),/arrow/.test(n)){const e=document.createElementNS(t,"mrow");e.className="rthead",r.appendChild(e);const n=document.createElementNS(t,"mrow");if(n.className="rbhead",r.appendChild(n),a){const e=document.createElementNS(t,"mrow");e.className="lthead",r.appendChild(e);const n=document.createElementNS(t,"mrow");n.className="lbhead",r.appendChild(n)}}}else if("phasorangle"===n||"phasoranglertl"===n){const t=o(e,".7em"),i=m.height;r.style.width=`${Math.sqrt(t*t+i*i)}px`,r.style.transform=`rotate(${"phasoranglertl"===n?"":"-"}${Math.atan(i/t)}rad) translateY(0.067em)`}let i=I[n]||"";""===i&&0===d.length&&(i="padding: 0.2em;"),d.includes(i)||(d+=i),r.className=`menclose-${void 0!==L[n]?"arrow":n}`,s.appendChild(r)}),function(t,e,n){for(const{name:a,value:o}of[...t.attributes]){const t=a.toLowerCase();j.has(t)||"class"!==t&&"style"!==t&&(t.startsWith("xmlns")||e.setAttribute(a,o))}const r=(t.getAttribute("class")||"").trim().split(/\s+/).filter(Boolean);e.setAttribute("class",["menclose",...r].join(" "));const i=[t.getAttribute("style")?.trim(),n?.trim()].filter(Boolean);i.length&&e.setAttribute("style",i.join("; "))}(e,s,d),s},"\nmrow.menclose {\n    display: inline-block;\n    text-align: left;\n    position: relative;\n}\n\n/* the following class names should be of the form 'menclose-[notation name]' */\nmrow.menclose-longdiv {\n    position: absolute;\n    top: 0;\n    bottom: 0.1em;\n    left: -0.4em;\n    width: 0.7em;\n    border: 0.067em solid;\n    transform: translateY(-0.067em);\n    border-radius: 70%;\n    clip-path: inset(0 0 0 0.4em);\n    box-sizing: border-box;\n}\n\nmrow.menclose-actuarial {\n    position: absolute;\n    display: inline-block;\n    top: 0;\n    bottom: 0;\n    right: 0;\n    left: 0;\n    border-top: 0.067em solid;\n    border-right: 0.067em solid;\n}\n\nmrow.menclose-phasorangle {\n    display: inline-block;\n    left: 0;\n    bottom: 0;\n    position: absolute;\n    border-top: 0.067em solid;\n    transform-origin: bottom left;\n}\n\nmrow.menclose-phasoranglertl {\n    display: inline-block;\n    right: 0;\n    bottom: 0;\n    position: absolute;\n    border-top: 0.067em solid;\n    transform-origin: bottom right;\n}\n\nmrow.menclose-box {\n    position: absolute;\n    top: 0;\n    bottom: 0;\n    right: 0;\n    left: 0;\n    border: 0.067em solid;\n}
3\n\nmrow.menclose-roundedbox {\n    position: absolute;\n    top: 0;\n    bottom: 0;\n    right: 0;\n    left: 0;\n    border: 0.067em solid;\n    border-radius: 0.267em;\n}\n\nmrow.menclose-circle {\n    position: absolute;\n    top: 0;\n    bottom: 0;\n    right: 0;\n    left: 0;\n    border: 0.067em solid;\n    border-radius: 50%;\n}\n\nmrow.menclose-left {\n    position: absolute;\n    top: 0;\n    bottom: 0;\n    right: 0;\n    left: 0;\n    border-left: 0.067em solid;\n}\n\nmrow.menclose-right {\n    position: absolute;\n    top: 0;\n    bottom: 0;\n    right: 0;\n    left: 0;\n    border-right: 0.067em solid;\n}\n\nmrow.menclose-top {\n    position: absolute;\n    top: 0;\n    bottom: 0;\n    right: 0;\n    left: 0;\n    border-top: 0.067em solid;\n}\n\nmrow.menclose-bottom {\n    position: absolute;\n    top: 0;\n    bottom: 0;\n    right: 0;\n    left: 0;\n    border-bottom: 0.067em solid;\n}\n\nmrow.menclose-madruwb {\n    position: absolute;\n    top: 0;\n    bottom: 0;\n    right: 0;\n    left: 0;\n    border-right: 0.067em solid;\n    border-bottom: 0.067em solid;\n}\n\n/*\n * Arrows and 'strikes' are composed of an 'menclose-arrow' wrapper and one, three or five children\n * Strikes just have class 'line'\n * Single-headed arrows have the children with classes 'line', 'rthead' (right top arrow head), and 'rbhead'\n * Double-headed arrows add lthead' (left top arrow head), and 'lbhead'\n */\nmrow.menclose-arrow {\n    position: absolute;\n    left: 0;\n    bottom: 50%;\n    height: 0;\n    width: 0;\n}\n\nmrow.menclose > mrow.menclose-arrow > * {\n    display: block;\n    position: absolute;\n    transform-origin: bottom;\n    border-left: 0.268em solid;\n    border-right: 0;\n    box-sizing: border-box;\n  }\n\nmrow.menclose-arrow  > mrow.line{\n    left: 0;\n    top: -0.0335em;\n    right: 0.201em;\n    height: 0;\n    border-top: 0.067em solid;\n    border-left: 0;\n}\n\nmrow.menclose-arrow > mrow.rthead {\n    transform: skewX(0.464rad);\n    right: 1px;\n    bottom: -1px;\n    border-bottom: 1px solid transparent;\n    border-top: 0.134em solid transparent;\n}\n\nmrow.menclose-arrow > mrow.rbhead {\n    transform: skewX(-0.464rad);\n    transform-origin: top;\n    right: 1px;\n    top: -1px;\n    border-top: 1px solid transparent;\n    border-bottom: 0.134em solid transparent;\n}\n\nmrow.menclose-arrow > mrow.lthead {\n    transform: skewX(-0.464rad);\n    left: 0;\n    bottom: -1px;\n    border-left: 0;\n    border-right: 0.268em solid;\n    border-bottom: 1px solid transparent;\n    border-top: 0.134em solid transparent;\n}\n\nmrow.menclose-arrow > mrow.lbhead {\n    transform: skewX(0.464rad);\n    transform-origin: top;\n    left: 0;\n    top: -1px;\n    border-left: 0;\n    border-right: 0.268em solid;\n    border-top: 1px solid transparent;\n    border-bottom: 0.134em solid transparent;\n}\n");e.add('[linethickness="thin"]',t=>(t.setAttribute("linethickness","67%"),t)),e.add('[linethickness="medium"]',t=>(t.setAttribute("linethickness","100%"),t)),e.add('[linethickness="thick"]',t=>(t.setAttribute("linethickness","167%"),t));e.add("ms",e=>{const n=e.getAttribute("lquote")||'"',r=e.getAttribute("rquote")||'"';let i=e.textContent.replace(/^[\s]+|[\s]+$/g,"").replace(/[\s]+/g," ");n===r?i=i.split(n).join("\\"+n):(i=i.split(n).join("\\"+n),i=i.split(r).join("\\"+r));const a=document.createElementNS(t,"mtext");for(const t of Array.from(e.attributes))"lquote"!==t.name&&"rquote"!==t.name&&a.setAttribute(t.name,t.value);return a.textContent=n+i+r,a});var T={normal:"mup",bold:"mbf",italic:"mit","bold-italic":"mbfit","double-struck":"Bbb","bold-fraktur":"mbffrak",script:"mscr","bold-script":"mbfscr",fraktur:"mfrak","sans-serif":"msans","bold-sans-serif":"mbfsans","sans-serif-italic":"mitsans","sans-serif-bold-italic":"mbfitsans",monospace:"mtt",isolated:"misol",initial:"minit",tailed:"mtail",looped:"mloop",stretched:"mstrc",chancery:"mchan",roundhand:"mrhnd"},P=[0,1,-1,21,22,2,7,23,3,24,19,6,14,20,17,25,8,26,15,27,-1,-1,-1,-1,-1,-1,16,18,10,11,12,13,4,5,-1,9],D="ٮںڡٯ",_={C:"ℂ",H:"ℍ",N:"ℕ",P:"ℙ",Q:"ℚ",R:"ℝ",Z:"ℤ"},W={C:"ℭ",H:"ℌ",I:"ℑ",R:"ℜ",Z:"ℨ"},H={B:"ℬ",E:"ℰ",F:"ℱ",H:"ℋ",I:"ℐ",L:"ℒ",M:"ℳ",R:"ℛ",e:"ℯ",g:"ℊ",o:"ℴ"},Y=[4110942569,1432950139,2701658217,4026531840,4026531840],X={"∂":51,"∇":25,"ϴ":17,"ϵ":52,"ϑ":53,"ϰ":54,"ϕ":55,"ϱ":56,"ϖ":57},J=["misol","minit","mtail","mstrc","mloop","Bbb"],Z=["mbf","Bbb","msans","mbfsans","mtt"],K=["mbf","mit","mbfit","mscr","mbfscr","mfrak","Bbb","mbffrak","msans","mbfsans","mitsans","mbfitsans","mtt"],V=["mbf","mit","mbfit","mbfsans","mbfitsans"];function Q(t,e){if(!e||"mup"==e)return t;let n,r=t.charCodeAt(0);if(t>="0"&&t<="9")return r+=120734,n=Z.indexOf(e),-1!=n?String.fromCodePoint(r+10*n):t;if(/[A-Za-z]/.test(t)){let i="";"mchan"!=e&&"mrhnd"!=e||(i="mchan"==e?"︀":"︁",e="mscr");let a="";switch(e){case"mit":if("h"==t)return"ℎ";break;case"mfrak":a=W[t];break;case"mscr":a=H[t];break;case"Bbb":a=_[t]}return a?a+i:(n=K.indexOf(e),-1==n?t:(r-=65,r>26&&(r-=6),String.fromCodePoint(r+52*n+119808)+i))}if(t>="Α"&&t<="ϵ"||"∂"==t||"∇"==t){if("mbf"==e){if("Ϝ"==t)return"𝟊";if("ϝ"==t)return"𝟋"}if(n=V.indexOf(e),-1==n)return t;let i=X[t];return i?r=i:(r-=913,r>25&&(r-=6)),String.fromCodePoint(r+58*n+120488)}if(r<1575)return"ı"==t?"𝚤":"ȷ"==t?"𝚥":t;if(r>1722)return t;if(n=J.indexOf(e),-1==n)return t;if(r<=1610){if(r=P[r-1575],-1==r)return t}else{if(r=D.indexOf(t),-1==r)return t;r+=28}if("misol"==e)4==r&&(n=1);else if(1<<r&Y[n-1])return t;return String.fromCodePoint(32*n+r+126464)}function G(t,e,n,r){const i=t.getAttribute(e);
3if(null==i)return!1;const a=i.toLowerCase();if(a.includes(n)){const i=parseFloat(a)*r[n]/(a.includes("%")?100:1);return t.setAttribute(e,i.toFixed(1)+"px"),!0}return!1}function tt(t,e,n){return!!t.hasAttribute(e)&&(!!G(t,e,"width",n)||(!!G(t,e,"height",n)||!!G(t,e,"depth",n)))}e.add("*[mathvariant]",t=>{let e=t.getAttribute("mathvariant");if(!e||"normal"==e)return;let n=T[e];if(!n)return;let r=t.textContent,i="",a=!0;for(let o=0;o<r.length;o++){let t=Q(r[o],n);t==r[o]&&(a=!1),i+=t}t.textContent=i,a&&t.removeAttribute("mathVariant")});e.add("mpadded",t=>{const e=i(t);return tt(t,"width",e),tt(t,"height",e),tt(t,"depth",e),tt(t,"lspace",e),tt(t,"voffset",e),t});var et=null,nt=null,rt=["top","bottom","center","baseline","axis"],it=["left","center","right"],at=["none","solid","dashed"],ot="0.25ex";function lt(t){return t.trim().toLowerCase()}function st(t){return null==t||""===String(t).trim()?[]:String(t).trim().replace(/,/g," ").split(/\s+/).filter(Boolean)}function dt(t,e,n){return t.length?e<t.length?t[e]:t[t.length-1]:n}function ct(t,e,n){const r=lt(t);for(const i of e)if(r===i)return i;return n}function mt(t,e){const n=st(t);return n.length?n.map(t=>ct(t,at,"none")):[e]}function ht(t){return t.some(t=>"none"!==t)}function ut(e){const n=document.createElementNS(t,"math");n.setAttribute("display","block"),Object.assign(n.style,{position:"absolute",left:"-9999px",top:"0",visibility:"hidden",pointerEvents:"none"});const i=function(e){const n=document.createElementNS(t,"mtable");n.setAttribute("columnspacing",e);const r=document.createElementNS(t,"mtr");for(let i=0;i<2;i++){const e=document.createElementNS(t,"mtd"),n=document.createElementNS(t,"mi");n.textContent=String.fromCharCode(97+i),e.appendChild(n),r.appendChild(e)}return n.appendChild(r),n}(e);n.appendChild(i),document.body.appendChild(n),r(n);const a=i.getBoundingClientRect().width;return n.remove(),a}function pt(){if(null!==et)return et;if("undefined"==typeof document||!document.body)return!1;try{const t=ut("0em");et=ut("3em")-t>1}catch{et=!1}return et}function ft(){if(null!==nt)return nt;if("undefined"==typeof document||!document.body)return nt=!1,!1;try{nt=gt("right")&&gt("left")}catch{nt=!1}return nt}function gt(e){const n=document.createElementNS(t,"math");n.setAttribute("display","block"),Object.assign(n.style,{position:"absolute",left:"-9999px",top:"0",visibility:"hidden",pointerEvents:"none"});const i=document.createElementNS(t,"mtable");i.setAttribute("side",e);const a=document.createElementNS(t,"mlabeledtr"),o=document.createElementNS(t,"mtd"),l=document.createElementNS(t,"mtext");l.textContent="L",o.appendChild(l);const s=document.createElementNS(t,"mtd"),d=document.createElementNS(t,"mi");d.textContent="E",s.appendChild(d),a.appendChild(o),a.appendChild(s),i.appendChild(a),n.appendChild(i),document.body.appendChild(n),r(n);const c=o.getBoundingClientRect(),m=s.getBoundingClientRect();n.remove();return"right"===e?m.left+.5<c.left:c.left+.5<m.left}function bt(e){if(!e||e.namespaceURI!==t||"mspace"!==e.localName)return!1;const n=lt(e.getAttribute("width")??"0"),r=lt(e.getAttribute("height")??"0"),i=lt(e.getAttribute("depth")??"0");return"0"===n&&"0"===r&&"0"===i}function wt(e){if(bt(e.firstElementChild))return;const n=e.ownerDocument;if(!n)return;const r=n.createElementNS(t,"mspace");r.setAttribute("width","0"),r.setAttribute("height","0"),r.setAttribute("depth","0"),e.insertBefore(r,e.firstChild)}function Ct(e){const n=e.firstElementChild;return n&&n.namespaceURI===t&&"mrow"===n.localName?n:null}function At(t,e,n,r,i,a){const o=a&&i?Nt(t,n,a,i):n;let l=dt(r,e,"baseline");if(i){const t=st(i.getAttribute("rowalign"));t.length&&(l=ct(dt(t,o,l),rt,l))}const s=t.getAttribute("rowalign");if(null!=s&&""!==String(s).trim()){const t=st(s);t.length&&(l=ct(dt(t,0,l),rt,l))}return ct(l,rt,"baseline")}function yt(e){const n=e.ownerDocument;if(!n||!n.body)return null;const i=n.createElementNS(t,"math");i.setAttribute("display","inline");const a=e.getAttribute("displaystyle");null!=a&&""!==String(a).trim()?i.setAttribute("displaystyle",Ft(a,!1)?"true":"false"):i.setAttribute("displaystyle","false"),Object.assign(i.style,{position:"absolute",left:"-9999px",to
3p:"0",visibility:"hidden",pointerEvents:"none"});const o=n.createElementNS(t,"mrow"),l=n.createElementNS(t,"mspace");l.setAttribute("width","0"),l.setAttribute("height","0"),l.setAttribute("depth","0");const s=n.createElementNS(t,"mo");s.textContent="−",o.appendChild(l),o.appendChild(s),i.appendChild(o),n.body.appendChild(i),r(i);const d=l.getBoundingClientRect().top,c=s.getBoundingClientRect();if(!(c.height>0))return i.remove(),null;const m=d-(c.top+c.height/2);return i.remove(),!Number.isFinite(m)||m<=0?null:m}function xt(t){const e=ct(t,it,"center");return"left"===e?"flex-start":"right"===e?"flex-end":"center"}function Et(e){const n=Array.from(e.children);if(n.length>=2){const n=e.ownerDocument;if(!n)return;const r=n.createElementNS(t,"mrow");for(;e.firstChild;)r.appendChild(e.firstChild);e.appendChild(r)}else if(1===n.length){const r=n[0];if(r.namespaceURI===t&&"mrow"!==r.localName){const n=e.ownerDocument;if(!n)return;const i=n.createElementNS(t,"mrow");e.replaceChild(i,r),i.appendChild(r)}}const r=e.firstElementChild;r&&r.namespaceURI===t&&"mrow"===r.localName&&wt(r)}function St(t){const e=lt(t||"right");return"left"===e||"right"===e?e:"right"}function Nt(e,n,r,i){if(!r||!r.hasAttribute("data-mlabeledtr-expanded"))return n;if(!i||i.namespaceURI!==t||"mtr"!==i.localName)return n;const a=Array.from(i.children).filter(e=>e.namespaceURI===t&&"mtd"===e.localName).length;if(a<2)return n;const o=St(r.getAttribute("side"));return n===("right"===o?a-1:0)?a-1:"left"===o?n-1:n}function vt(t,e,n,r,i){const{rowalign:a,columnalign:o}=Pt(t),l=dt(a,n,"baseline"),s="right"===r?i:0,d=ct(l,rt,"baseline"),c=ct(dt(o,s,"center"),it,"center"),m=t=>{const n="rowalign"===t?"rowalign":"columnalign";if(!e.hasAttribute(n))return null;const a=e.getAttribute(n);if(null==a||""===String(a).trim())return null;const s=st(a),m="rowalign"===t?rt:it,h=[];for(let e=0;e<i;e++){const n="rowalign"===t?l:dt(o,"right"===r?e:e+1,"center"),i=s.length?dt(s,e,n):n;h.push(ct(i,m,n))}const u="rowalign"===t?d:c;return("right"===r?[...h,u]:[u,...h]).join(" ")},h=m("rowalign"),u=m("columnalign");null!=h&&e.setAttribute("rowalign",h),null!=u&&e.setAttribute("columnalign",u)}function kt(t){if(!t.hasAttribute("intent"))return void t.setAttribute("intent",":equation-label");let e=t.getAttribute("intent")||"";const n=e.indexOf("("),r=-1===n?e:e.substring(0,n);r.includes(":equation-label")||(e=r+":equation-label"+e.substring(r.length),t.setAttribute("intent",e))}var Rt=["frame","framespacing","rowlines","columnlines","columnspacing","equalcolumns","columnwidth","columnalign","width"],$t=["rows
3pacing","rowalign","equalrows","displaystyle"];function Mt(t,e,n){if(!t.hasAttribute("rowalign"))return{equationRowalign:null,labelRowalign:null};const r=t.getAttribute("rowalign");if(null==r||""===String(r).trim())return{equationRowalign:null,labelRowalign:null};const i=st(r);if(!i.length)return{equationRowalign:null,labelRowalign:null};const a=ct(dt(i,n,"baseline"),rt,"baseline"),o=[];for(let l=0;l<e;l++)l!==n&&o.push(ct(dt(i,l,"baseline"),rt,"baseline"));return{equationRowalign:o.length?o.join(" "):null,labelRowalign:a}}function Bt(e){if(0===Array.from(e.children).length){const n=e.ownerDocument;if(!n)return;const r=n.createElementNS(t,"mrow");return e.appendChild(r),void wt(r)}Et(e)}function It(e){if(!e||"mtable"!==e.localName||e.namespaceURI!==t)return;if(!e.hasAttribute("data-mlabeledtr-expanded"))return;if(!pt())return;const n=e.ownerDocument;if(!n)return;const i=Array.from(e.children).filter(e=>e.namespaceURI===t&&"mtr"===e.localName),a=_t(i),o=a-1;if(0===i.length||o<1)return void e.removeAttribute("data-mlabeledtr-expanded");const l=St(e.getAttribute("side")),s="right"===l?a-1:0;for(const r of i)if(Array.from(r.children).filter(e=>e.namespaceURI===t&&"mtd"===e.localName).length!==a)return;const d=n.createElementNS(t,"mtable"),c=n.createElementNS(t,"mtable");d.setAttribute("data-mlabeledtr-equation-table",""),c.setAttribute("data-mlabeledtr-label-table","");for(const r of i){const e=Array.from(r.children).filter(e=>e.namespaceURI===t&&"mtd"===e.localName),i=n.createElementNS(t,"mtr"),o=n.createElementNS(t,"mtr"),{equationRowalign:l,labelRowalign:m}=Mt(r,a,s);l&&i.setAttribute("rowalign",l),m&&o.setAttribute("rowalign",m);for(let t=0;t<e.length;t++)t===s?o.appendChild(e[t]):i.appendChild(e[t]);d.appendChild(i),c.appendChild(o)}for(const t of Rt){if(!e.hasAttribute(t))continue;const n=e.getAttribute(t);null!=n&&d.setAttribute(t,n),e.removeAttribute(t)}for(const t of $t){if(!e.hasAttribute(t))continue;const n=e.getAttribute(t);null!=n&&(d.setAttribute(t,n),c.setAttribute(t,n),e.removeAttribute(t))}for(e.removeAttribute("side"),e.removeAttribute("data-mlabeledtr-expanded");e.firstChild;)e.removeChild(e.firstChild);for(const r of d.children)if(r.namespaceURI===t&&"mtr"===r.localName)for(const e of r.children)e.namespaceURI===t&&"mtd"===e.localName&&Bt(e);for(const r of c.children)if(r.namespaceURI===t&&"mtr"===r.localName)for(const e of r.children)e.namespaceURI===t&&"mtd"===e.localName&&Bt(e);const m=n.createElementNS(t,"mtr"),h=n.createElementNS(t,"mtd"),u=n.createElementNS(t,"mtd");h.appendChild(d),u.appendChild(c),"right"===l?(m.appendChild(h),m.appendChild(u)):(m.appendChild(u),m.appendChild(h)),e.appendChild(m),function(e){const n=Lt.get(e);n&&(n.disconnect(),Lt.delete(e));const i=()=>function(e){if(!e||!e.isConnected)return;const n=Ot(e,"data-mlabeledtr-equation-table"),i=Ot(e,"data-mlabeledtr-label-table");if(!n||!i)return;const a=Array.from(n.children).filter(e=>e.namespaceURI===t&&"mtr"===e.localName),o=Array.from(i.children).filter(e=>e.namespaceURI===t&&"mtr"===e.localName);if(0===a.length||a.length!==o.length)return;Ut(a),Ut(o),r(e);for(let t=0;t<a.length;t++){const e=a[t],n=o[t],r=zt(e),i=zt(n),l=Math.max(r.ascent,i.ascent),s=Math.max(r.descent,i.descent);qt(e,l,s,r.ascent,r.descent),qt(n,l,s,i.ascent,i.descent)}}(e);if("undefined"!=typeof ResizeObserver){const t=new ResizeObserver(()=>{requestAnimationFrame(i)});t.observe(e),Lt.set(e,t)}requestAnimationFrame(()=>requestAnimationFrame(i))}(e)}var Lt=new WeakMap;function Ot(e,n){const r=e.firstElementChild;if(!r)return null;for(const i of r.children){if(i.namespaceURI!==t||"mtd"!==i.localName)continue;const e=i.firstElementChild;if(e&&e.namespaceURI===t&&"mtable"===e.localName&&e.hasAttribute(n))return e}return null}function Ut(e){for(const n of e)for(const e of n.children){if(e.namespaceURI!==t||"mtd"!==e.localName)continue;const n=Ct(e);if(!n)continue;n.style.marginTop="";const r=n.lastElementChild;r&&r.namespaceURI===t&&"mspace"===r.localName&&r.hasAttribute("data-mlabeledtr-descent-pad")&&r.remove()}}function zt(e){for(const n of e.children){if(n.namespaceURI!==t||"mtd"!==n.localName)continue;const e=Ct(n);if(!e)continue;const r=e.firstElementChild;if(!bt(r))continue;const i=n.getBoundingClientRect(),a=r.getBoundingClientRect();return{ascent:Math.max(0,a.top-i.top),descent:Math.max(0,i.bottom-a.top)}}return{ascent:0,descent:0}}function qt(e,n,r,i,a){const o=Math.max(0,n-i),l=Math.max(0,r-a);for(const s of e.children){if(s.namespaceURI!==t||"mtd"!==s.localName)continue;const e=Ct(s);if(e&&(e.style.marginTop=o>0?`${o}px`:"",l>0)){const n=s.ownerDocument;if(!n)continue;const r=n.createElementNS(t,"mspace");r.setAttribute("width","0"),r.setAttribute("height","0"),r.setAttribute("depth",`${l}px`),r.setAttribute("data-mlabeledtr-descent-pad",""),e.appendChild(r)}}}function Ft(t,e){if(null==t||""===String(t).trim())return e;const n=String(t).trim().toLowerCase();return"true"===n||"yes"===n||"1"===n||"false"!==n&&"no"!==n&&"0"!==n&&e}
3function jt(t,e){const n=(t.getAttribute("style")||"").trim(),r=e.trim();r&&t.setAttribute("style",n?`${n}; ${r}`:r)}function Tt(t,e,n,r,i,a,o,l,s){const d=ct(r,at,"none"),c="none"===d?"none":d,m="none"===d?"":`border: 0.067em ${c} currentColor; padding: ${a} ${i}; box-sizing: border-box;`,h=t.hasAttribute("data-mlabeledtr-expanded"),u=h?_t(l):0,p=St(t.getAttribute("side")),f=h&&u>=2?"right"===p?u-1:0:-1;if("none"!==d&&h?(jt(t,`border: none; padding: ${a} ${i}; box-sizing: border-box;`),function(t,e,n,r){const i=_t(n);if(i<2)return;const a=St(t.getAttribute("side")),o="right"===a?i-1:0,l="right"===a?0:1,s="right"===a?i-2:i-1,d=n.length-1,c=`0.067em ${r} currentColor`;for(const m of e){if(m.col===o)continue;const t=[];0===m.row&&t.push(`border-top: ${c}`),m.row===d&&t.push(`border-bottom: ${c}`),m.col===l&&t.push(`border-left: ${c}`),m.col===s&&t.push(`border-right: ${c}`),t.length&&(t.unshift("box-sizing: border-box"),jt(m.mtd,t.join("; ")))}}(t,o,l,c)):m&&jt(t,m),s&&"none"!==d&&jt(t,"overflow: visible;"),s){const t=l.length;for(let e=0;e<t;e++){const n=l[e],r=["box-sizing: border-box"];"none"!==d?(r.push(`margin-left: -${i}`),r.push(`margin-right: -${i}`),r.push(`width: calc(100% + ${i} + ${i})`),0===e&&r.push(`margin-top: -${a}`),e===t-1&&r.push(`margin-bottom: -${a}`)):r.push("min-width: 100%"),jt(n,r.join("; "))}}for(let g=1;g<l.length;g++){const t=dt(e,g-1,"none");if("none"!==t)if(f>=0)for(const e of o)e.row===g&&e.col!==f&&jt(e.mtd,`border-top: 0.067em ${t} currentColor; box-sizing: border-box;`);else jt(l[g],`border-top: 0.067em ${t} currentColor; box-sizing: border-box;`)}for(const g of o){const{mtd:e,col:r}=g;if(r<=0)continue;const i=Wt(t,r,n,l);"none"!==i&&jt(e,`border-left: 0.067em ${i} currentColor; box-sizing: border-box;`)}if(s&&"none"!==d&&l.length>0){const t=l.length-1;for(const e of o)e.row===t&&e.col!==f&&jt(e.mtd,`padding-bottom: ${a}; box-sizing: border-box;`)}}function Pt(t){let e=st(t.getAttribute("rowalign")).map(t=>ct(t,rt,"baseline"));e.length||(e=["baseline"]);let n=st(t.getAttribute("columnalign")).map(t=>ct(t,it,"center"));return n.length||(n=["center"]),{rowalign:e,columnalign:n}}function Dt(t,e,n,r,i,a,o,l,s){const d=At(t,e,n,r,a,s),c=function(t,e,n,r,i){const a=i&&r?Nt(0,e,i,r):e;let o=dt(n,a,"center");if(r){const t=st(r.getAttribute("columnalign"));t.length&&(o=ct(dt(t,a,o),it,o))}const l=t.getAttribute("columnalign");if(null!=l&&""!==String(l).trim()){const t=st(l);t.length&&(o=ct(dt(t,0,o),it,o))}return ct(o,it,"center")}(t,n,i,a,s),m=[];o&&m.push("min-width: 0"),l?(m.push("box-sizing: border-box"),m.push("justify-self: stretch"),m.push("align-self: stretch"),m.push("display: flex"),m.push("flex-direction: column"),m.push("width: 100%"),m.push("height: 100%"),m.push("min-height: 0"),m.push(`align-items: ${xt(c)}`)):(m.push(`justify-self: ${function(t){const e=ct(t,it,"center");return"left"===e?"start":"right"===e?"end":"center"}(c)}`),"top"===d||"bottom"===d||"center"===d?(m.push("align-self: stretch"),m.push("display: flex"),m.push("flex-direction: column"),m.push("width: 100%"),m.push("height: 100%"),m.push("min-height: 0"),m.push(`justify-content: ${function(t){const e=ct(t,rt,"baseline");return"top"===e?"flex-start":"bottom"===e?"flex-end":"center"===e?"center":"flex-start"}(d)}`),m.push(`align-items: ${xt(c)}`)):m.push("align-self: baseline")),m.push(`text-align: ${function(t){const e=ct(t,it,"center");return"left"===e?"left":"right"===e?"right":"center"}(c)}`),jt(t,`${m.join("; ")};`)}function _t(e){let n=0;for(const r of e){let e=0;for(const n of r.children)n.namespaceURI===t&&"mtd"===n.localName&&(e+=1);e>n&&(n=e)}return n}function Wt(t,e,n,r){if(e<=0)return"none";if(!t.hasAttribute("data-mlabeledtr-expanded"))return dt(n,e-1,"none");const i=_t(r);if(i<2)return dt(n,e-1,"none");const a=St(t.getAttribute("side")),o="right"===a?i-1:0;return e-1===o||e===o?"none":dt(n,"right"===a?e-1:e-2,"none")}function Ht(t){return t.top+t.height/2}function Yt(t,e){let n=1/0,r=-1/0;for(const i of t.children){if(i===e||1!==i.nodeType)continue;const t=i.getBoundingClientRect();n=Math.min(n,t.top),r=Math.max(r,t.bottom)}return Number.isFinite(n)&&n!==1/0?{top:n,bottom:r,mid:(n+r)/2}:null}function Xt(e){const n=e.ownerDocument,i=e.parentElement;if(!n||!i)return null;const a=n.createElementNS(t,"mspace");a.setAttribute("width","0"),a.setAttribute("height","0"),a.setAttribute("depth","0"),i.insertBefore(a,e.nextSibling),r(a);const o=a.getBoundingClientRect().top;return a.remove(),Number.isFinite(o)?o:null}function Jt(e){const n=e.ownerDocument;if(!n)return null;const i=n.createElementNS(t,"mrow"),a=n.createElementNS(t,"mspace");a.setAttribute("width","0"),a.setAttribute("height","0"),a.setAttribute("depth","0"),i.appendChild(a);const o=[];for(;e.firstChild;){const t=e.firstChild;o.push(t),i.appendChild(t)}e.appendChild(i),r(a);const l=a.getBoundingClientRect(),s=i.getBoundingClientRect(),d=Number.isFinite(l.top)?{baselineY:l.top,top:s.top,bottom:s.bottom}:null;for(const t of o)e.appendChild(t);return i.remove(),d}function Zt(t){const e=t.parentElement;return e?{span:Yt(e,t),refBaseline:Xt(t)}:{span:null,refBaseline:null}}function Kt(t,e){queueMicrotask(()=>{requestAnimationFrame(()=>{requestAnimationFrame(()=>{t.isConnected&&(r(t),e())})})})}function Vt(t,e){jt(t,`${[`transform: translateY(${e}px)`,`padding-top: ${e<0?-e:0}px`,`padding-bottom: ${e>0?e:0}px`,"box-sizing: content-box"].join("; ")};`)}function Qt(t,e){if(!e)return void t.setAttribute("displaystyle","false");const n=Ft(t.getAttribute("displaystyle"),!1);t.setAttribute("displaystyle",n?"true":"false")}var Gt=new WeakMap;function te(e,n,i){const a=Gt.get(e);a&&(a.disconnect(),Gt.delete(e));const o=()=>function(e,n,i){if(e&&n.length){for(let e=0;e<n.length;e++){const r=n[e],i=Array.from(r.children).filter(e=>e.namespaceURI===t&&"mtd"===e.localName);for(const t of i){const e=Ct(t);e&&(e.style.marginTop="0")}}r(e);for(let r=0;r<n.length;r++){const a=n[r],o=Array.from(a.children).filter(e=>e.namespaceURI===t&&"mtd"===e.localName);if(!o.length)continue;const l=o.map(t=>{const e=getComputedStyle(t),n=parseFloat(e.paddingTop)||0,r=parseFloat(e.paddingBottom)||
30;return Math.max(0,t.clientHeight-n-r)}),s=Math.max(...l,0),d=[];let c=0;for(const t of o){const n=At(t,r,c,i,a,e);c+=1;const o=Ct(t);if(!o)continue;const l=getComputedStyle(t),s=parseFloat(l.borderTopWidth)||0,m=parseFloat(l.paddingTop)||0,h=t.getBoundingClientRect().top+s+m,u=o.getBoundingClientRect().height,p=o.firstElementChild;let f=0;bt(p)?f=p.getBoundingClientRect().top-h:u>0&&(f=.75*u),d.push({mrow:o,ra:n,h:u,b:f})}let m=0;for(const t of d)"baseline"!==t.ra&&"axis"!==t.ra||(m=Math.max(m,t.b));for(const t of d){const{mrow:e,ra:n,h:r,b:i}=t;let a=0;"top"===n?a=0:"bottom"===n?a=Math.max(0,s-r):"center"===n?a=Math.max(0,(s-r)/2):"baseline"!==n&&"axis"!==n||(a=Math.max(0,m-i)),e.style.marginTop=`${a}px`}}r(e)}}(e,n,i);if("undefined"!=typeof ResizeObserver){const t=new ResizeObserver(()=>{requestAnimationFrame(o)});t.observe(e),Gt.set(e,t)}requestAnimationFrame(()=>requestAnimationFrame(o))}function ee(e){if(!e||"mtable"!==e.localName||e.namespaceURI!==t)return e;const n=pt();if(!Array.from(e.children).some(e=>e.namespaceURI===t&&"mlabeledtr"===e.localName)||n&&ft()?e.removeAttribute("data-mlabeledtr-expanded"):function(e){if(!e||"mtable"!==e.localName||e.namespaceURI!==t)return e;const n=Array.from(e.children);if(!n.some(e=>e.namespaceURI===t&&"mlabeledtr"===e.localName))return e.removeAttribute("data-mlabeledtr-expanded"),e;e.setAttribute("data-mlabeledtr-expanded","");const r=e.ownerDocument;if(!r)return e;const i=St(e.getAttribute("side")),a=r.createElementNS(t,"mtd");a.setAttribute("intent",":no-equation-label");for(let o=0;o<n.length;o++){const l=n[o];if(l.namespaceURI===t)if("mlabeledtr"===l.localName){const n=l.firstElementChild;if(!n)continue;kt(n);const a=r.createElementNS(t,"mtr");for(const t of l.attributes)a.setAttribute(t.name,t.value);const s="left"===i?0:1,d=l.children[s];for(d&&a.appendChild(d);l.firstChild;)a.appendChild(l.firstChild);"right"===i&&a.appendChild(n);const c=Array.from(a.children).filter(e=>e.namespaceURI===t&&"mtd"===e.localName).length-1;c>=1&&vt(e,a,o,i,c),l.replaceWith(a)}else if("mtr"===l.localName){const t=a.cloneNode(!1);"right"===i?l.appendChild(t):l.insertBefore(t,l.firstChild)}}}(e),n&&e.hasAttribute("data-mlabeledtr-expanded")&&It(e),n)return e;const r=e.hasAttribute("displaystyle")&&""!==String(e.getAttribute("displaystyle")).trim(),{rows:i,placed:a}=function(e){const n=Array.from(e.children).filter(e=>e.namespaceURI===t&&"mtr"===e.localName),r=[];for(let i=0;i<n.length;i++){const e=n[i],a=Array.from(e.children).filter(e=>e.namespaceURI===t&&"mtd"===e.localName);let o=0;for(const t of a)Et(t),r.push({mtd:t,row:i,col:o}),o+=1}return{rows:n,placed:r}}(e);if(!i.length)return Qt(e,r),e;const l=_t(i),s=st(e.getAttribute("rowspacing")),d=st(e.getAttribute("columnspacing")),c=Ft(e.getAttribute("equalrows"),!1),m=Ft(e.getAttribute("equalcolumns"),!1),h=st(e.getAttribute("columnwidth")),u=m?`repeat(${l}, minmax(0, 1fr))`:function(t,e){if(e<=0)return"none";if(!t.length)return`repeat(${e}, auto)`;const n=[];for(let r=0;r<e;r++){const e=dt(t,r,"auto"),i=lt(e);"auto"===i?n.push("auto"):"fit"===i?n.push("minmax(0, 1fr)"):n.push(e)}return n.join(" ")}(h,l),p=c?`repeat(${i.length}, minmax(0, 1fr))`:`repeat(${i.length}, auto)`,{rowalign:f,columnalign:g}=Pt(e),b=mt(e.getAttribute("rowlines"),"none"),w=mt(e.getAttribute("columnlines"),"none"),C=ht(w)||ht(b),A=c?"stretch":"first baseline",y="undefined"!=typeof CSS&&"function"==typeof CSS.supports&&CSS.supports("grid-template-columns","subgrid"),x=!y&&C?`repeat(${l}, minmax(0, 1fr))`:u;if(y){jt(e,`display: inline-grid; vertical-align: baseline; grid-template-columns: ${u}; grid-template-rows: ${p}; row-gap: 0; column-gap: 0; justify-items: stretch; align-items: ${A};`);for(let t=0;t<i.length;t++){const e=C?"stretch":"first baseline";jt(i[t],`display: grid; grid-column: 1 / -1; grid-row: ${t+1}; grid-template-columns: subgrid; grid-template-rows: auto; justify-items: stretch; align-items: ${e};`)}}else{jt(e,`display: inline-grid; vertical-align: baseline; grid-template-columns: minmax(0, auto); grid-template-rows: ${p}; row-gap: 0; column-gap: 0;`);for(let t=0;t<i.length;t++){const e=C?"stretch":"first baseline";jt(i[t],`display: grid; grid-template-columns: ${x}; grid-column: 1 / -1; grid-row: ${t+1}; justify-items: stretch; align-items: ${e};`)}}let E=`${o(e,ot)}px`;if(a.some(t=>{const n=i[t.row]??null;return"axis"===At(t.mtd,t.row,t.col,f,n,e)})){const t=yt(e);null!=t&&t>0&&(E=`${t}px`)}for(const t of a){const n=i[t.row]??null,r=At(t.mtd,t.row,t.col,f,n,e),a=dt(s,Math.max(0,t.row-1),"1.0ex"),o=dt(d,Math.max(0,t.col-1),"0.8em"),l=[];C&&l.push("box-sizing: border-box");const c=C?"padding-top":"margin-top",m=C?"padding-left":"margin-left";if(t.row>0){const t="axis"===r?`calc(${a} + ${E})`:a;l.push(`${c}: ${t}`)}else"axis"===r&&l.push(`${c}: ${E}`);t.col>0&&l.push(`${m}: ${o}`),l.length&&jt(t.mtd,l.join("; "))}const S=e.getAttribute("width");
3if(null!=S&&""!==String(S).trim()){const t=String(S).trim();jt(e,"auto"===lt(t)?"width: auto;":`width: ${t}; max-width: 100%;`)}if(e.hasAttribute("align")){const n=function(t){if(null==t||""===String(t).trim())return{mode:"axis",row1Based:null};const e=String(t).trim().replace(/,/g," ").split(/\s+/).filter(Boolean);if(!e.length)return{mode:"axis",row1Based:null};let n=null,r=e;if(e.length>=2){const t=e[e.length-1];/^-?\d+$/.test(t)&&(n=parseInt(t,10),r=e.slice(0,-1))}return{mode:ct(r.join(" "),rt,"axis"),row1Based:n}}(e.getAttribute("align"));null!=n.row1Based?function(e,n,r){const{mode:i,row1Based:a}=n;if(null==a)return;const l=function(t,e){if(e<=0)return-1;let n=t>0?t-1:e+t;return n<0||n>=e?-1:n}(a,r.length);l<0||Kt(e,()=>{const{refBaseline:n}=Zt(e);if(null==n)return;const a=r[l],s=Array.from(a.children).filter(e=>e.namespaceURI===t&&"mtd"===e.localName);if(!s.length)return;let d=1/0,c=-1/0,m=null;for(const t of s){const e=Jt(t);e&&(d=Math.min(d,e.top),c=Math.max(c,e.bottom),m=null==m?e.baselineY:Math.max(m,e.baselineY))}if(null==m||!Number.isFinite(m)||!Number.isFinite(d)||!Number.isFinite(c))return;const h=(d+c)/2,u=yt(e),p=null!=u&&u>0?u:o(e,ot),f=ct(i,rt,"axis");let g=0;if("top"===f)g=n-d;else if("bottom"===f)g=n-c;else if("center"===f)g=n-h;else if("baseline"===f)g=n-m;else{if("axis"!==f)return;g=n-p-(m-p)}!Number.isFinite(g)||Math.abs(g)<.25||Vt(e,g)})}(e,n,i):function(t,e){Kt(t,()=>{const{refBaseline:n}=Zt(t);if(null==n)return;const r=t.getBoundingClientRect(),i=ct(e,rt,"axis"),a=yt(t),l=null!=a&&a>0?a:o(t,ot);let s=0;if("top"===i)s=n-r.top;else if("bottom"===i)s=n-r.bottom;else if("center"===i||"baseline"===i)s=n-Ht(r);else{if("axis"!==i)return;s=n-l-Ht(r)}!Number.isFinite(s)||Math.abs(s)<.25||Vt(t,s)})}(e,n.mode)}Qt(e,r);const N=e.getAttribute("frame")??"none",[v,k]=function(t){const e=st(t);return 0===e.length?["0.4em","0.5ex"]:1===e.length?[e[0],e[0]]:[e[0],e[1]]}(e.getAttribute("framespacing"));Tt(e,b,w,N,v,k,a,i,C);for(const t of a){const n=i[t.row]??null,r=lt(dt(h,Nt(t.mtd,t.col,e,n),"auto")),a=m||"fit"===r||!y&&C;Dt(t.mtd,t.row,t.col,f,g,n,a,C,e)}return C&&te(e,i,f),e}e.add("mtable",function(e){const r=pt(),i=Array.from(e.children).some(e=>e.namespaceURI===t&&"mlabeledtr"===e.localName)&&!ft();if(r&&!i)return e;const a=n(e);return ee(a),a});var ne="M-ELEM-MATH",re=".35ex",ie=" ",ae=class{constructor(t,e){if(this.attrs={},e){if(this.attrs=Object.assign({},e),"mstyle"===t.tagName.toLowerCase())for(let n of t.attributes)this.attrs[n.name]=n.value}else{for(;t&&"math"!==t.tagName.toLowerCase();)"mstyle"===t.tagName.toLowerCase()&&this.addAttrs(t),t=t.parentElement;t&&"math"===t.tagName.toLowerCase()&&this.addAttrs(t)}}addAttrs(t){for(let e of t.attributes)this.attrs[e.name]||(this.attrs[e.name]=e.value)}getAttr(t,e,n){return t.hasAttribute(e)?t.getAttribute(e):this.attrs[e]?this.attrs[e]:n}},oe=class{constructor(t,e,n){this.location=t,this.crossout=e,this.scriptsizemultiplier=n}},le=class{constructor(t,e,n){if(n){if("object"!=typeof t)throw new Error("Elementary math mscarry isn't an 'object'");this.data=document.createElement("n"===n.location||"s"===n.location?"div":"span"),this.data.appendChild(t),this.data.className="carry",this.data.style.fontSize=Math.round(n.scriptsizemultiplier).toString()+"%"}else{if("string"!=typeof t)throw new Error("Elementary math mscarry isn't a 'string'");this.data=document.createTextNode(""===t?ie:t)}this.carry=n,this.style=e||""}},se=class{constructor(t,e,n){0===n?this.data=t:n>0?this.data=this.padOnRight(t,n):n<0&&(this.data=this.padOnLeft(t,-n),e-=n),this.nRight=e,this.shift=n,this.style="",this.addSpacingAfterRow=!1,this.alignAt=0}addUnderline(t,e){this.style+=`border-bottom: ${t} solid ${e};`,this.addSpacingAfterRow=!0}addUnderlineToCells(t,e,n,r){let i=this.data.length-this.nRight,a=i-t;t+e>i&&(this.data=this.padOnLeft(this.data,t+e-i),a=e),t<-this.nRight&&(this.data=this.padOnRight(this.data,this.nRight-t),this.nRight-=t,a=this.data.length);for(let o=a-e;o<a;o++)this.data[o].style+=`border-bottom: ${n} solid ${r};`;this.addSpacingAfterRow=!0}padOnLeft(t,e){let n=Array(e);for(let r=0;r<e;r++)n[r]=new le(ie);return n.concat(t)}padOnRight(t,e){let n=Array(e);for(let r=0;r<e;r++)n[r]=new le(ie);return t.concat(n)}},de=class{constructor(t){this.stack=t,this.attrs=new ae(t),this.stackAlign=this.getAttr(t,"stackalign","decimalpoint"),this.charAlign=this.getAttr(t,"charalign","right"),this.charSpacing=this.getAttr(t,"charspacing","medium"),"loose"===this.charSpacing?this.charSpacing=".4em":"medium"===this.charSpacing?this.charSpacing=".2em":"tight"===this.charSpacing&&(this.charSpacing="0em"),this.longdivstyle="mstack"===t.tagName?"":this.getAttr(t,"longdivstyle","lefttop"),this.align=this.getAttr(t,"algin","baseline")}getAttr(t,e,n){return this.attrs.getAttr(t,e,n)}add(t,e){function n(t,e){const n=e.split(" ");let r=t.data;
3return n.forEach(function(t){if("none"===t||""===t)return;let e=document.createElement("span");switch(e.appendChild(r),t){case"updiagonalstrike":default:e.className="crossout-up";break;case"downdiagonalstrike":e.className="crossout-down";break;case"verticalstrike":e.className="crossout-vert";break;case"horizontalstrike":e.className="crossout-horiz"}r=e}),t.data=r,t}function r(t,e){let n=t.data;if(n.textContent===ie){let t=document.createElement("span");t.appendChild(n),n.textContent="0",t.className="hidden-digit",n=t}let r=document.createElement("span");switch(r.appendChild(n),e.carry.location){case"n":case"w":r.prepend(e.data);break;case"nw":{let t=document.createElement("sup");t.appendChild(e.data),r.prepend(t);break}case"ne":{let t=document.createElement("sup");t.appendChild(e.data),r.appendChild(t);break}case"e":case"s":r.appendChild(e.data);break;case"se":{let t=document.createElement("sub");t.appendChild(e.data),r.appendChild(t);break}case"sw":{let t=document.createElement("sub");t.appendChild(e.data),r.prepend(t);break}}return t.data=r,t}let i=t[t.length-1];if(0===t.length||!i.data.find(t=>t.carry))return void t.push(e);const a=e.data.length-e.nRight-(i.data.length-i.nRight);0!==a&&(a<0?e.data=e.padOnLeft(e.data,-a):i.data=i.padOnLeft(i.data,a));const o=e.nRight-i.nRight;0!==o&&(o<0?(e.data=e.padOnRight(e.data,-o),e.nRight=i.nRight):(i.data=i.padOnRight(i.data,o),i.nRight+=o,e.nRight=i.nRight));for(let l=0;l<e.data.length;l++){const t=i.data[l];let a=e.data[l];t.carry&&(a=n(a,t.carry.crossout),a=r(a,t),a.alignAt="s"===t.carry.location?1:-1,e.data[l]=a)}t[t.length-1]=e}process_msrow(t){let e=!1,n=0,r=[];for(let i=0;i<t.children.length;i++){const a=t.children[i];if("mn"===a.tagName.toLowerCase()){const t=a.textContent.trim().split("");if(r=r.concat(t.map(t=>new le(t))),e)n+=t.length;else{const r=a.textContent.trim().indexOf(this.getAttr(a,"decimalpoint","."));n=r<0?0:t.length-r,e=!0}}else{let t=a.textContent.trim();"-"===t&&(t="−"),r.push(new le(t)),e&&(n+=1)}}return[r,"decimalpoint"!==this.stackAlign?0:n]}process_mscarries(t,e,n,r){let i=[],a=t.children[0];for(;a;){let t=a.nextElementSibling,o=e,l=n;"mscarry"===a.tagName.toLowerCase()&&(o=this.getAttr(a,"location","n"),l=this.getAttr(a,"crossout","none")),i.push(new le(a,"",new oe(o,l,r))),a=t}return i}processChildren(t,e,n,r){if(!t.children)return e;r=r||0;for(let i="mlongdiv"===t.tagName.toLowerCase()?2:0;i<t.children.length;i++)e=this.processChild(t.children[i],e,n),n+=r;return e}processChild(t,e,n){let r=n+parseInt(this.getAttr(t,"position","0"));switch(t.tagName.toLowerCase()){case"mn":{const n=t.textContent.trim().split(""),i=t.textContent.trim().indexOf(this.getAttr(t,"decimalpoint",".")),a="decimalpoint"!==this.stackAlign||i<0?0:n.length-i,o=n.map(t=>new le(t));this.add(e,new se(o,a,r));break}case"msgroup":e=this.processChildren(t,e,r,parseInt(this.getAttr(t,"shift","0")));break;case"msline":{const n=parseInt(this.getAttr(t,"length","0"));let i=this.getAttr(t,"mslinethickness","medium");"medium"===i?i=re:"thin"===i?i=".1ex":"thick"===i&&(i=".65ex"),0===e.length&&this.add(e,new se([],0,0));const a=e[e.length-1],o=this.getAttr(t,"mathcolor","black");0===n?a.addUnderline(i,o):a.addUnderlineToCells(r,n,i,o);break}case"mscarries":{let n=this.getAttr(t,"location","n"),i=this.getAttr(t,"crossout","none"),a=parseFloat(this.getAttr(t,"scriptsizemultiplier","0.6"));this.add(e,new se(this.process_mscarries(t,n,i,100*a),0,r));break}case"mstyle":{const n=this.attrs;if(this.attrs=new ae(t,n),1===t.children.length&&"msline"===t.children[0].tagName.toLowerCase())this.processChild(t.children[0],e,r);else{let i,a;[i,a]=this.process_msrow(t),this.add(e,new se(i,a,r)),this.attrs=n}break}default:{let n,i=0;"msrow"==t.tagName.toLowerCase()?[n,i]=this.process_msrow(t):n=[new le(t.textContent.trim())],this.add(e,new se(n,i,r));break}}return e}processShifts(t,e){let n=0,r=0;for(const i of t)"decimalpoint"===e?(n=Math.max(n,i.data.length-i.nRight),r=Math.max(r,i.nRight)):n=Math.max(n,i.data.length);for(const i of t)switch(e){case"decimalpoint":i.data=i.padOnLeft(i.data,n-(i.data.length-i.nRight)),i.data=i.padOnRight(i.data,r-i.nRight),i.nRight=r;break;case"left":i.data=i.padOnRight(i.data,n-i.data.length);break;case"center":{const t=n-i.data.length;i.data=i.padOnRight(i.data,t/2),i.data=i.padOnLeft(i.data,t-t/2);break}case"right":i.data=i.padOnLeft(i.data,n-i.data.length)}return t}addOnLongDivParts(t,e,n){function r(t){for(let e=t.data.length-1;e>=0;e--)if(t.data[e].data.textContent!==ie)return t.data.length-1-e;return t.data.length}function i(t,e){let n=0;for(let r=t.data.length-1;r>=0&&t.data[r].data.textContent===ie;r--)e>0?e--:(t.data.pop(),n++);for(let r=0;r<e;r++)t.data.push(new le(ie));return t.nRight-=n-e,t}const a=this.getAttr(this.stack,"mathcolor","black");0==n.length&&n.push(new se([new le(ie)],0,0));let o=(t?this.processChild(t,[],0):[new se([new le(ie)],0,0)])[0],l=o.data.length-1,s=e?this.processChild(e,[],0):[new se([new le(ie)],0,0)],d=s[0];switch(this.longdivstyle){case"left/\\right":case"left)(right":{const t=new le("left/\\right"===this.longdivstyle?"/":")"),e=new le("left/\\right"===this.longdivstyle?"\\":"(");0===n.length?n.push(new se(o.data.concat([t],new le(ie),[e],s[0].data))):(n[0].data=o.data.concat([t],i(n[0],0).data,[e],s[0].data),n[0].nRight+=1+s[0].data.length);break}case":right=right":0===n.length?n.push(new se([new le(":")].concat(o.data,[new le("=")],d.data))):(n[0].data=i(n[0],0).data.concat([new le(":")],o.data,[new le("=")],d.data),n[0].nRight+=2+o.data.length+d.data.length);break;case"stackedrightright":case"mediumstackedrightright":case"shortstackedrightright":{if
3(1==n.length&&(n.push(new se([new le(ie)],0,0)),n=this.processShifts(n,this.stackAlign)),"stackedrightright"!==this.longdivstyle){const t=r(n[0]),e=r(n[1]),a=Math.min(t,e);n[0]=i(n[0],t-a),n[1]=i(n[1],e-a)}const t="shortstackedrightright"===this.longdivstyle?1:"mediumstackedrightright"===this.longdivstyle?2:n.length;for(let r=0;r<t;r++){let e=new le(ie);r<t&&(e.style+=`border-right: ${re} solid ${a};`),n[r].data.push(e)}"stackedrightright"===this.longdivstyle&&(o.data[0].style+="padding-left: 0.5em;",d.data[0].style+="padding-left: 0.5em;");const e=d.data.length-o.data.length;e>0&&(o.data=o.padOnRight(o.data,e)),o.addUnderlineToCells(-o.nRight,o.data.length,re,a),o.addSpacingAfterRow=!1,n[0].data=n[0].data.concat(o.data),n[0].nRight+=o.data.length,n[1].data=n[1].data.concat(d.data),n[1].nRight+=d.data.length;break}case"stackedleftleft":{1==n.length&&(n.push(new se([new le(ie)],0,0)),n=this.processShifts(n,this.stackAlign));for(let e=0;e<n.length;e++){let t=new le("");t.style+=`border-left: ${re} solid ${a};`,n[e].data.unshift(t)}o.data[o.data.length-1].style+="padding-right: 0.5em;",d.data[d.data.length-1].style+="padding-right: 0.5em;";const t=d.data.length-o.data.length;t>0&&(o.data=o.padOnLeft(o.data,t)),o.addUnderlineToCells(-o.nRight,o.data.length,re,a),o.addSpacingAfterRow=!1,n[0].data=o.data.concat(n[0].data),n[1].data=d.data.concat(n[1].data);break}case"righttop":{d.addUnderline(re,a),d.addSpacingAfterRow=!1;let t=s.concat(n);n=this.processShifts(t,this.stackAlign),o.data[0].style+=`border-left: ${re} solid ${a};`,o.addUnderlineToCells(-o.nRight,o.data.length,re,a),n[1].data=n[1].data.concat(o.data),n[1].nRight+=o.data.length;break}default:{d.addUnderlineToCells(-d.nRight,Math.max(d.data.length,n[0].data.length),re,a),d.addSpacingAfterRow=!1;let t=s.concat(n);n=this.processShifts(t,this.stackAlign),"stackedleftlinetop"===this.longdivstyle?(o.data[o.data.length-1].style+=`border-right: ${re} solid ${a};`,o.addUnderlineToCells(-o.nRight,o.data.length,re,a)):(o.data=o.padOnRight(o.data,1),l+=1,o.data[l].class="curved-line",o.data[l].style=""),n[1].data=o.data.concat(n[1].data);break}}let c=this.processShifts(n,this.stackAlign);return"lefttop"===this.longdivstyle&&(n[0].data[l].style+=`border-bottom: ${re} solid ${a};`),c}shrinkSeparatorColumns(t){if(0===t.length)return;const e=(t,e)=>{const n=new Set((t.class||"").trim().split(/\s+/).filter(Boolean));for(const r of e.trim().split(/\s+/))r&&n.add(r);t.class=[...n].join(" ")};let n=new Set(Array(t[0].data.length).keys()),r=new Set(Array(t[0].data.length).keys());for(let o of t){let t=o.data;for(let e=0;e<t.length;e++){let i=t[e].data.textContent;"."===i||","===i?r.delete(e):i!==ie&&(n.delete(e),r.delete(e))}}r.forEach(t=>n.delete(t));for(let o of n)t.forEach(t=>{e(t.data[o],"separator"),o>0&&e(t.data[o-1],"precedes-separator")});t.forEach(t=>{for(let n=0;n<t.data.length;n++){const r=t.data[n].data.textContent;","===r?(e(t.data[n],"separator separator-comma"),n>0&&e(t.data[n-1],"precedes-separator"),n+1<t.data.length&&e(t.data[n+1],"follows-separator")):"."===r&&(e(t.data[n],"separator separator-decimal"),n>0&&e(t.data[n-1],"precedes-separator"),n+1<t.data.length&&e(t.data[n+1],"follows-separator"))}});const i=new Set;t.forEach(t=>{for(let e=0;e<t.data.length;e++){const n=t.data[e].class;n&&n.split(/\s+/).includes("follows-separator")&&i.add(e)}});for(const o of i)t.forEach(t=>{o<t.data.length&&e(t.data[o],"follows-separator")});const a=new Set;t.forEach(t=>{for(let e=0;e<t.data.length;e++){const n=t.data[e].class;n&&n.split(/\s+/).includes("precedes-separator")&&a.add(e)}});for(const o of a)t.forEach(t=>{o<t.data.length&&e(t.data[o],"precedes-separator")})}expandMStackElement(t){let e=/[-+]?\d*\.?\d*/g;const n=parseFloat(e.exec(this.charSpacing)[0])/2+this.charSpacing.slice(e.lastIndex);this.charSpacing.slice(e.lastIndex);const r=t=>{const e=(t.class||"").trim().split(/\s+/).filter(Boolean),r=t=>e.includes(t);if(r("curved-line"))return{boxStyle:"padding-top: .1ex; padding-right: 0; padding-bottom: 0; padding-left: 0;"};let i=n,a=n;r("separator")&&(i="0",a="0"),r("precedes-separator")&&(a="0"),r("follows-separator")&&(i="0");return{boxStyle:`padding-top: .1ex; padding-right: ${a}; padding-bottom: 0; padding-left: ${i}; text-align: ${"."===t.data.textContent?"center":this.charAlign};`}};let i=[];i=this.processChildren(t,i,0,0),i=this.processShifts(i,this.stackAlign),"mlongdiv"===t.tagName.toLowerCase()&&(i=this.addOnLongDivParts(t.children[0],t.children[1],i)),i.length>0&&(i[i.length-1].addSpacingAfterRow=!1),this.shrinkSeparatorColumns(i);const a=document.createElement("div");a.setAttribute("class","elem-math");const o=i.reduce((t,e)=>Math.max(t,e.data.length),0);o>0&&(a.style.gridTemplateColumns=`repeat(${o}, max-content)`);let l=1;for(const s of i){for(let t=0;t<s.data.length;t++){const e=s.data[t];let n=document.createElement("div");if(n.className="elem-math-cell",e.style&&/(^|;)\s*border-(left|right):/.test(e.style)&&n.classList.add("elem-math-vrule-cell"),e.alignAt){let t=document.createElement("span");t.style.display=1===e.alignAt?"inline-table":"inline-block",t.appendChild(e.data),e.data=t}
3const i=(e.class||"").trim().split(/\s+/).filter(Boolean).includes("curved-line");if(i){const t=document.createElement("div");t.className="curved-line",t.textContent=" ",n.appendChild(t),e.data.textContent=" ",n.appendChild(e.data)}else n.appendChild(e.data);const{boxStyle:o}=r(e);if(s.style||e.style||o){const t=`${s.style||""}${o}${e.style||""}`;t&&n.setAttribute("style",t)}if(e.class&&!i)for(const t of e.class.trim().split(/\s+/))t&&n.classList.add(t);n.style.gridColumn=(t+1).toString(),n.style.gridRow=l.toString(),a.appendChild(n)}if(s.addSpacingAfterRow){const t=l+1;for(let e=0;e<s.data.length;e++){const n=s.data[e];let r=document.createElement("div");if(r.className="elem-math-cell elem-math-spacer",/(border-left|border-right)/.test(n.style)){r.classList.add("elem-math-vrule-cell");const t=n.style.match(/(border-left|border-right).*?;/g);t&&r.setAttribute("style",t.join(""))}r.style.gridColumn=(e+1).toString(),r.style.gridRow=t.toString(),a.appendChild(r)}l+=1}l+=1}return a}},ce=n=>{if(n.parentElement&&(n.parentElement.tagName===ne||n.parentElement.parentElement&&n.parentElement.parentElement.tagName===ne))return null;const r=document.createElement("span"),i=r.attachShadow({mode:"open"});i.appendChild(e.getCSSStyleSheet());const a=n.parentElement,o=n.nextElementSibling,l=new de(n).expandMStackElement(n);i.appendChild(l);const s=document.createElementNS(t,"mtext");s.appendChild(r);const d=document.createElementNS(t,"math");return r.appendChild(d),d.appendChild(n),a.insertBefore(s,o),null};e.add("mstack",ce,"\ndiv.elem-math {\n    display: inline-grid;\n    grid-auto-flow: row;\n    /* Use baseline so plain-digit cells line up with merged-carry cells whose digit sits below the carry. */\n    align-items: baseline;\n    grid-auto-columns: max-content;\n    gap: 0;\n}\n\n.elem-math-cell {\n    display: inline-block;\n    /* IMPORTANT: do not set 'align-self: stretch' on every cell -- that overrides 'align-items: baseline'\n       from the grid. Exception: cells that only draw a vertical rule (border-left/right) must stretch to\n       the row height so the rule meets rows where neighbors use border-bottom (msline); otherwise the\n       rule ends short by the border-bottom width. */\n    position: relative;\n    overflow: visible;\n}\n\n.elem-math-cell.elem-math-vrule-cell {\n    align-self: stretch;\n    box-sizing: border-box;\n}\n\n/* Empty rows added after underlines need explicit height (no content to give them one). */\n.elem-math-spacer {\n    align-self: stretch;\n    height: .5ex;\n}\n\n/* Curved bracket: absolutely positioned child so placement is relative to the cell box, not the grid item. */\n.elem-math-cell .curved-line {\n    position: absolute;\n    top: 0;\n    left: 0;\n    padding-top: 0em;\n    width: 0.75em;\n    border: 0.3ex solid;  /* match border bottom */\n    transform: translate(0.48em, -0.15em);\n    border-radius: 70%;\n    clip-path: inset(0.1em 0 0 0.45em);\n    box-sizing: border-box;\n    margin-left: -0.85em;\n    margin-right: 0.75em;\n}\n\n/* .precedes-separator / .separator / .follows-separator: horizontal padding set in JS (expandMStackElement). */\n\n.carry {\n    font-size: 60%;\n    line-height: 90%;\n    width: 1px;\n    overflow: visible;\n}\n\n.hidden-digit {\n    visibility: hidden;\n}\n\n.crossout-horiz, .crossout-vert, .crossout-up, .crossout-down{\n    position: relative;\n    display: inline-block;\n}\n.crossout-horiz:before {\n    content: '';\n    border-bottom: .3ex solid black;\n    width: 140%;\n    position: absolute;\n    right: -20%;\n    top: 40%;\n}\n\n.crossout-vert::before {\n    content: '';\n    border-left: .3ex solid black;\n    height: 100%;\n    position: absolute;\n    right: 35%;\n    top: 0%;\n}\n\n.crossout-up::before {\n    content: '';\n    width: 100%;\n    position: absolute;\n    right: 0;\n    top: 40%;\n}\n.crossout-up::before {\n    border-bottom: .2em solid black;\n    transform: skewY(-60deg);\n}\n\n.crossout-down::after {\n    content: '';\n    width: 100%;\n    position: absolute;\n    right: 0;\n    top: 40%;\n}\n.crossout-down::after {\n    border-bottom: .2em solid black;\n    transform: skewY(60deg);\n}\n"),e.add("mlongdiv",ce),customElements.define("m-elem-math",class extends HTMLElement{constructor(){super();const t=new de(this.children[0]).expandMStackElement(this.children[0]),n=this.attachShadow({mode:"open"});n.appendChild(e.getCSSStyleSheet()),n.appendChild(t)}});var me,he,ue,pe="data-has-linebreaks",fe="data-max-linebreak-width",ge="data-saved-indent-attrs",be="data-x-indent",we="data-nesting-depth",Ce=["msub","msub","msubsup","mover","munder","munderover","mfrac","mmultiscripts"],Ae=(me=null,he=0,ue=0,{set:function(t,e,n){me=t,he=e,ue=n},get:function(){return me},getEmInPixels:function(){return he},getBreakWidth:function(){return ue}});function ye(t){const e=Ae.get().getElementById(t);return e||document.getElementById(t)}function xe(e){return document.createElementNS(t,e)}function Ee(t,e){const n=e.attributes;for(let r=0;r<n.length;r++)t.setAttribute(n[r].name,n[r].value);return t}function Se(t,e,n){let r=!0;
3do{if(t.hasAttribute(e))return t.getAttribute(e);r="math"!==t.tagName,t=t.parentElement}while(r);return n}function Ne(t){return"mtd"===t.tagName&&"mtr"===t.parentElement.tagName&&"mtable"===t.parentElement.parentElement.tagName&&t.parentElement.parentElement.hasAttribute(pe)}function ve(t){const e=xe("mtr"),n=xe("mtd");return n.appendChild(t),e.appendChild(n),e}function ke(t,e){const n={};let r=Se(t,"linebreakstyle","before");return"infixLineBreakStyle"===r&&(r=Se(t,"infixLineBreakStyle","before")),n.linebreakstyle=r,n.indentAlign=Se(t,"indentalign","auto"),n.indentShift=Se(t,"indentshift","0px"),"first"==e?(n.indentAlign=Se(t,"indentalignfirst",n.indentAlign),n.indentShift=Se(t,"indentshiftfirst",n.indentShift)):"last"===e&&(n.indentAlign=Se(t,"indentalignlast",n.indentAlign),n.indentShift=Se(t,"indentshiftlast",n.indentShift)),n.indentShift=o(t,n.indentShift),n.target=Se(t,"indenttarget",""),n.firstMiddleOrLast=e,n}function Re(t,e){let n="middle";t.parentElement===t.parentElement.parentElement.firstElementChild?n="first":t.parentElement===t.parentElement.parentElement.lastElementChild&&(n="last"),t.setAttribute(ge,JSON.stringify(ke(e,n)))}function $e(t,e,n){const r=ve(e);if(Ne(t)){for(Ee(r.firstElementChild,t);t.attributes.length>0;)t.removeAttributeNode(t.attributes[0]);return t.parentElement.parentElement.insertBefore(r,t.parentElement),t.parentElement}{const t=function(){const t=xe("mtable");return t.setAttribute(pe,"true"),t.setAttribute("displaystyle","true"),t}();return t.setAttribute("style","width: 100%"),t.appendChild(r),n.replaceWith(t),t.appendChild(ve(n)),t.lastElementChild}}function Me(t){let e=Se(t,"linebreakstyle","before");"infixLineBreakStyle"===e&&(e=Se(t,"infixLineBreakStyle","before"));let n=null,r=t;null!==t.previousElementSibling&&null!==t.nextElementSibling&&t.setAttribute("form","infix");let i=r.parentElement;for(;"mrow"===i.tagName;i=i.parentElement){let t=xe("mrow");for(;i.firstElementChild;){const n=i.firstElementChild;if(n===r){if("after"===e){t.appendChild(n),e="before";break}"duplicate"===e&&(e="before",t.appendChild(n.cloneNode(!0)));break}t.appendChild(n)}r=i,n&&t.appendChild(n),n=1===t.children.length?t.firstElementChild:t}if("mrow"===r.tagName&&1===r.children.length){const t=r.firstElementChild;r.replaceWith(t),r=t}return $e(i,n,r)}function Be(t,e,n){return e-t<=.5*n}function Ie(t,e){return"-"===e&&(e="+"),t.filter(function(t){let n=t.textContent.trim();return"-"===n&&(n="+"),e===n})}function Le(t,e,n){t.setAttribute("style",`text-align: ${e};`);const r=xe("mspace");if(r.setAttribute("width",n.toString()+"px"),t.setAttribute(be,n.toString()),1!==t.children.length||"mrow"!==t.firstElementChild.tagName)return;const i=t.firstElementChild;"right"===e?i.appendChild(i):i.insertBefore(r,i.firstElementChild)}function Oe(t,e,n){let r=parseFloat(n.indentShift),i=n.indentAlign;if("id"===i){const t=ye(n.target);if(t)return t.getBoundingClientRect().left-e+r;i="auto"}if("auto"==i&&"first"!==n.firstMiddleOrLast){for(;"mtd"!==t.tagName&&!t.parentElement.parentElement.hasAttribute(pe);)t=t.parentElement;r+=function(t){if((e=t.parentElement)===e.parentElement.firstElementChild)return 0;var e;const n=function(t){for(;t.children.length>0;)t=t.firstElementChild;return"mspace"==t.tagName?t.nextElementSibling:t}(t);n.hasAttribute(we);const r=n.getAttribute(we),i=n.textContent.trim();let a=1e21,l=!1;const s=t.getBoundingClientRect().left,d=parseFloat(t.parentElement.parentElement.getAttribute(fe));let c=t.parentElement.previousElementSibling;for(;c;){const t=ze(c.firstElementChild).filter(t=>r===t.getAttribute(we));0===t.length||t[0].textContent.trim();const e=Ie(t,i);let n=0===e.length?a:e[0].getBoundingClientRect().left;Be(s,n,d)&&(n<a||!l)&&(l=!0,a=n),n=0===t.length?a:t[0].getBoundingClientRect().left,!l&&Be(s,n,d)&&(a=Math.min(n,a)),c=c.previousElementSibling}return 1e21==a?o(n,"3em"):a-s}(t)}return r}function Ue(t){if(t.hasAttribute(be))return;const e=JSON.parse(t.getAttribute(ge)),n=t.getBoundingClientRect().left;let r=Oe(t,n,e),i=e.indentAlign;if("id"===i){if(ye(e.target)&&!t.querySelector("#"+e.target))return void Le(t,"left",r);i="auto"}"auto"==i&&(i="left"),Le(t,i,r)}function ze(t){return Array.from(t.querySelectorAll('mo:not([linebreak="nobreak"])')).filter(t=>{do{t=t.parentElement}while("mrow"===t.tagName||"mstyle"===t.tagName||"mpadded"===t.tagName);return"math"===t.tagName||Ne(t)}).map(t=>function(t){let e=t,n=t.parentElement;do{if(n.firstElementChild!==t||!Ce.includes(n.tagName))return e!==t&&(t.hasAttribute(we),e.setAttribute(we,t.getAttribute(we))),e;e=n,n=n.parentElement}while(n);return t}(t))}var qe={"(":0,")":0,"=":10,"+":30,"±":30,"-":30,"*":40,"×":40,InvisibleTimes:40,InvisibleFunctionApply:50},Fe=["(","[","{"],je=[")","]","}"];function Te(t){const e=qe[t];return void 0===e?40:e}function Pe(t){if("mo"===t.tagName)return t;let e=t;for(;Ce.includes(e.tagName);)if(e=e.firstElementChild,!e)return t;return"mo"===e.tagName?e:t}function De(t){return t[t.length-1]}function _e(t){return Array.isArray(t)}function We(t){return Fe.includes(t)}function He(t,e,n){let r=De(t),i=r+1;for(;n<r;){let n=e.length-1;for(;Array.isArray(e[n]);)n--;for(n--,t.pop();Array.isArray(e[n]);)n--;const a=e.splice(n+1);if(r===i&&Array.isArray(De(a))){const t=a.pop();e.push(a.concat(t))}else e.push(a);i=r,r=De(t)}return[t,e]}var Ye=function(){const e=document.createElementNS(t,"mo");return e.textContent="⁡",e};function Xe(t,e){const n=Te("⁡");[t,e]=He(t,e,n),t.push(n),e.push(Ye)}function Je(t,e,n){for(let r=0;r<t.children.length;r++){const i=Pe(t.children[r]);if("mo"===i.tagName){const t=i.textContent.trim();if(_e(De(n))&&We(t)&&Xe(e,n),We(t))e.push(0),n.push(i);else if(je.includes(t)){[e,n]=He(e,n,0),n.push(i),De(e),e.pop();const t=n.splice(n.length-3);n.push(t)}else{const r=Te(t);[e,n]=He(e,n,r),e.push(r),n.push(i)}}else"mrow"===i.tagName||"mpadded"===i.tagName||"mstyle"===i.tagName?[e,n]=Je(i,e,n):(_e(De(n))&&Xe(e,n),n.push([i]))}return[e,n]}function Ze(t,e){t.forEach(t=>{Array.isArray(t)?Ze(t,e+1):"mo"===t.tagName&&t.setAttribute(we,e.toString())})}function Ke(t){if(t.childElementCount<=3)return!0;
3if(t.childElementCount%2==0)return!1;const e=Te(t.children[1].textContent.trim());for(let n=0;n<t.childElementCount-1;n+=2)if("mo"===t.children[n].tagName||"mo"!==t.children[n+1].tagName||Te(t.children[n+1].textContent.trim())!==e)return!1;return!0}function Ve(t,e){const n=Pe(t);if("mo"!==n.tagName){if("mrow"===t.tagName||"mstyle"===t.tagName||"mpadded"===t.tagName||"math"===t.tagName)for(let r=0;r<t.childElementCount;r++)Ve(t.children[r],e+("mrow"===t.tagName?1:0))}else n.setAttribute(we,e.toString())}function Qe(t){let e=[];const n=Array.from(t.querySelectorAll('mo[linebreak="newline"]'));n.push(t),n.forEach(t=>{const n=function(t){let e=t,n=t.parentElement;for(;"mrow"===n.tagName||"mstyle"===n.tagName||"mpadded"===n.tagName;)e=n,n=n.parentElement;return e}(t);if(!e.includes(n))if(e.push(n),function(t){const e=Array.from(t.querySelectorAll("mrow"));switch("mrow"!==t.tagName&&"math"!==t.tagName||e.push(t),e.length){case 0:return!0;case 1:return Ke(e[0]);case 2:return Ke(e[0])&&Ke(e[1]);default:return Ke(e[0])&&Ke(e[Math.floor(e.length/2)])&&Ke(e[e.length-1])}}(n))Ve(n,0);else{let[t,e]=Je(n,[-1],[null]);2!=e.length&&([t,e]=He(t,e,-1)),Ze(e[1],0)}})}function Ge(t,e,n){const r=3*function(t){const e=[.05,.090909,.173554,.248685,.316987,.379079,.435526,.486842,.533493,.575902,.614457,.649506,.681369,.710336,.736669,.760608];t.hasAttribute(we);let n=parseInt(t.getAttribute(we));return n>=e.length?1-3.482066/n:e[n]}(t)+function(t,e){const n=(.9*e-t)/e;return n*n}(e,n),i=Se(t,"linebreak","auto");return"goodbreak"===i?r/3:"badbreak"===i?3*r:r}function tn(t,e){const n=t[e];if("⁢"===n.textContent.trim()){const r=Se(n,"linebreakmultchar","⁢");if("⁢"!==r){const i=xe("mo");return i.textContent=r,Ee(i,n),n.replaceWith(i),t[e]=i,i}}return n}function en(t,e){if(parseFloat(t.getAttribute(an))<=e)return;const n=ze(t);let r,i="mtd"===t.tagName?t.parentElement:t.parentNode,a=0,o=1;for(;o<n.length;){let l=o;const s="mtd"===t.tagName?i.firstElementChild:i.lastElementChild,d=JSON.parse(s.getAttribute(ge)),c="before"===d.linebreakstyle?n[o-1].getBoundingClientRect().left:s.firstElementChild.getBoundingClientRect().left,m=e-Oe(n[o-1],s.getBoundingClientRect().left,d);let h=1e5,u=-1;for(;l<n.length;){const t=n[l].getBoundingClientRect().right-c;if(t>m)break;const e=Ge(n[l],t,m);e<=h&&(h=e,u=l),l++}if(-1===u&&(u=o),a++,o=u+1,o<n.length){r=tn(n,u),i=Me(n[u]),i.parentElement.setAttribute(fe,e.toString()),Re(i.firstElementChild,r);const a=i.previousElementSibling;a.firstElementChild.hasAttribute(ge)||a.firstElementChild.setAttribute(ge,t.getAttribute(ge)),Ue(a.firstElementChild)}else if(1===a)return}a>0&&Ue(i.firstElementChild)}var nn="math-with-linebreaks";function rn(t,e){e=Math.min(e,parseFloat(t.getAttribute(an)));const n=t.shadowRoot.lastElementChild;if(n.childElementCount>1){const t=xe("mrow");for(;n.firstElementChild;)t.appendChild(n.firstElementChild);n.appendChild(t)}Ae.set(t.shadowRoot),function(t){const e=t.querySelectorAll('mo[linebreak="newline"]');if(0===e.length)return;let n=null;e.forEach(t=>{n=Me(t)});const r=n.parentElement.children;Re(r[0].firstElementChild,r[0].firstElementChild);for(let i=0;i<e.length;i++)Re(r[i+1].firstElementChild,e[i])}(n);let r=Array.from(n.querySelectorAll(`mtable[${pe}]`));r.length>0?r.forEach(t=>{t.setAttribute(fe,e.toString()),Array.from(t.children).forEach(t=>{const n=t.firstElementChild;Ue(n),n.firstElementChild.getBoundingClientRect().right-n.getBoundingClientRect().left>e&&en(n,e)})}):parseInt(t.getAttribute(an))>=e&&(n.setAttribute(ge,JSON.stringify(ke(n,"first"))),en(n,e))}var an="data-full-width",on="data-linebreak-width";function ln(t,e){const r=n(e);t.shadowRoot.appendChild(r);let i=r.lastElementChild.getBoundingClientRect().right-r.firstElementChild.getBoundingClientRect().left;r.hasAttribute("maxwidth")&&(i=Math.min(i,o(r,r.getAttribute("maxwidth")))),t.setAttribute(an,i.toString()),rn(t,i),t.setAttribute(on,(2*i).toString())}e.add("math",function(t){const e=getComputedStyle(t).getPropertyValue("display"),n=t.hasAttribute("display")?t.getAttribute("display"):"inline";if("inline"===e||"inline"===n)return null;if(t.tagName.toLowerCase()===nn)return t;if(t.parentElement.tagName.toLowerCase()===nn)return t;{const e=t.parentElement,n=t.nextElementSibling,r=document.createElement(nn);return r.appendChild(t),e.insertBefore(r,n),Qe(t),ln(r,t),null}});var sn=new ResizeObserver(t=>{for(let e of t)if(e.target.tagName.toLowerCase()===nn){const t=e.target;if(e.contentRect.width<parseInt(t.getAttribute(an))){const r=n(t.firstElementChild);t.shadowRoot.lastElementChild.replaceWith(r),t.setAttribute(on,e.contentRect.width.toString()),rn(t,e.contentRect.width.toString())}
3else if(!t.hasAttribute(on)||parseInt(t.getAttribute(on))<=parseInt(t.getAttribute(an))){const r=n(t.firstElementChild);t.shadowRoot.lastElementChild.replaceWith(r),t.setAttribute(on,(2*e.contentRect.width).toString()),rn(t,2*e.contentRect.width.toString())}}});customElements.define(nn,class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"}).appendChild(e.getCSSStyleSheet());const t=this.firstElementChild;t&&(Qe(t),ln(this,t)),sn.observe(this)}});{let t=document.createElement("style");t.innerHTML="\n           math-with-linebreaks {\n                display: block;\n            }\n    ",document.head.insertBefore(t,document.head.firstElementChild)}e.add("math *[href]",e=>(e.namespaceURI==t&&(e.style.cursor="pointer",e.tabIndex=0,e.setAttribute("role","link"),e.addEventListener("click",t=>{document.location=t.currentTarget.getAttribute("href")}),e.addEventListener("keydown",t=>{"Enter"==t.key&&(document.location=t.currentTarget.getAttribute("href"))}),e.addEventListener("mouseover",t=>{t.currentTarget.style.textDecoration="solid underline"}),e.addEventListener("mouseout",t=>{t.currentTarget.style.textDecoration=""})),e));var dn=function(){if(void 0===window.doNotRunTransformsOnPageLoad||window.doNotRunTransformsOnPageLoad)for(let t of document.querySelectorAll("math"))e.transform(t)};"loading"===document.readyState?window.addEventListener("DOMContentLoaded",dn):dn();export{e as default};
4//# debugId=bbb70ef6-c6db-5260-9c36-8b974585df5c

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.