1import{r as Jl,g as hn,c as W0,b as Ql,e as Fe,a as fe}from"./core-framework-7Hvi-wJy.js";import{r as e1}from"./mui-extended-BjJDpkDo.js";var a0={exports:{}},J0={exports:{}},t1=J0.exports,pi;function r1(){return pi||(pi=1,(function(t,e){(function(s,u){t.exports=u()})(typeof self<"u"?self:t1,function(){return(function(){var n={};(function(){n.d=function(a,r){for(var i in r)n.o(r,i)&&!n.o(a,i)&&Object.defineProperty(a,i,{enumerable:!0,get:r[i]})}})(),(function(){n.o=function(a,r){return Object.prototype.hasOwnProperty.call(a,r)}})();var s={};n.d(s,{default:function(){return Xl}});class u{constructor(r,i){this.name=void 0,this.position=void 0,this.length=void 0,this.rawMessage=void 0;let o="KaTeX parse error: "+r,l,h;const g=i&&i.loc;if(g&&g.start<=g.end){const B=g.lexer.input;l=g.start,h=g.end,l===B.length?o+=" at end of input: ":o+=" at position "+(l+1)+": ";const k=B.slice(l,h).replace(/[^]/g,"$&̲");let N;l>15?N="â¦"+B.slice(l-15,l):N=B.slice(0,l);let I;h+15<B.length?I=B.slice(h,h+15)+"â¦":I=B.slice(h),o+=N+k+I}const y=new Error(o);return y.name="ParseError",y.__proto__=u.prototype,y.position=l,l!=null&&h!=null&&(y.length=h-l),y.rawMessage=r,y}}u.prototype.__proto__=Error.prototype;var f=u;const m=function(a,r){return a===void 0?r:a},D=/([A-Z])/g,x=function(a){return a.replace(D,"-$1").toLowerCase()},C={"&":"&",">":">","<":"<",'"':""","'":"'"},A=/[&><"']/g;function T(a){return String(a).replace(A,r=>C[r])}const F=function(a){return a.type==="ordgroup"||a.type==="color"?a.body.length===1?F(a.body[0]):a:a.type==="font"?F(a.body):a},P=function(a){const r=F(a);return r.type==="mathord"||r.type==="textord"||r.type==="atom"},q=function(a){if(!a)throw new Error("Expected non-null, but got "+String(a));return a};var p={deflt:m,escape:T,hyphenate:x,getBaseElem:F,isCharacterBox:P,protocolFromUrl:function(a){const r=/^[\x00-\x20]*([^\\/#?]*?)(:|�*58|�*3a|&colon)/i.exec(a);return r?r[2]!==":"||!/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(r[1])?null:r[1].toLowerCase():"_relative"}};const W={displayMode:{type:"boolean",description:"Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.",cli:"-d, --display-mode"},output:{type:{enum:["htmlAndMathml","html","mathml"]},description:"Determines the markup language of the output.",cli:"-F, --format <type>"},leqno:{type:"boolean",description:"Render display math in leqno style (left-justified tags)."},fleqn:{type:"boolean",description:"Render display math flush left."},throwOnError:{type:"boolean",default:!0,cli:"-t, --no-throw-on-error",cliDescription:"Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error."},errorColor:{type:"string",default:"#cc0000",cli:"-c, --error-color <color>",cliDescription:"A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.",cliProcessor:a=>"#"+a},macros:{type:"object",cli:"-m, --macro <def>",cliDescription:"Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).",cliDefault:[],cliProcessor:(a,r)=>(r.push(a),r)},minRuleThickness:{type:"number",description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:a=>Math.max(0,a),cli:"--min-rule-thickness <size>",cliProcessor:parseFloat},colorIsTextColor:{type:"boolean",description:"Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.",cli:"-b, --color-is-text-color"},strict:{type:[{enum:["warn","ignore","error"]},"boolean","function"],description:"Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.",cli:"-S, --strict",cliDefault:!1},trust:{type:["boolean","function"],description:"Trust the input, enabling all HTML features such as \\url.",cli:"-T, --trust"},maxSize:{type:"number",default:1/0,description:"If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large",processor:a=>Math.max(0,a),cli:"-s, --max-size <n>",cliProcessor:parseInt},maxExpand:{type:"number",default:1e3,description:"Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.",processor:a=>Math.max(0,a),cli:"-e, --max-expand <n>",cliProcessor:a=>a==="Infinity"?1/0:parseInt(a)},globalGroup:{type:"boolean",cli:!1}};function j(a){if(a.default)return a.default;const r=a.type,i=Array.isArray(r)?r[0]:r;
1if(typeof i!="string")return i.enum[0];switch(i){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{}}}class V{constructor(r){this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,r=r||{};for(const i in W)if(W.hasOwnProperty(i)){const o=W[i];this[i]=r[i]!==void 0?o.processor?o.processor(r[i]):r[i]:j(o)}}reportNonstrict(r,i,o){let l=this.strict;if(typeof l=="function"&&(l=l(r,i,o)),!(!l||l==="ignore")){if(l===!0||l==="error")throw new f("LaTeX-incompatible input and strict mode is set to 'error': "+(i+" ["+r+"]"),o);l==="warn"?typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(i+" ["+r+"]")):typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+l+"': "+i+" ["+r+"]"))}}useStrictBehavior(r,i,o){let l=this.strict;if(typeof l=="function")try{l=l(r,i,o)}catch{l="error"}return!l||l==="ignore"?!1:l===!0||l==="error"?!0:l==="warn"?(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(i+" ["+r+"]")),!1):(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+l+"': "+i+" ["+r+"]")),!1)}isTrusted(r){if(r.url&&!r.protocol){const o=p.protocolFromUrl(r.url);if(o==null)return!1;r.protocol=o}return!!(typeof this.trust=="function"?this.trust(r):this.trust)}}class U{constructor(r,i,o){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=r,this.size=i,this.cramped=o}sup(){return K[ee[this.id]]}sub(){return K[te[this.id]]}fracNum(){return K[Me[this.id]]}fracDen(){return K[be[this.id]]}cramp(){return K[He[this.id]]}text(){return K[ze[this.id]]}isTight(){return this.size>=2}}const X=0,ce=1,oe=2,he=3,ge=4,ne=5,ue=6,G=7,K=[new U(X,0,!1),new U(ce,0,!0),new U(oe,1,!1),new U(he,1,!0),new U(ge,2,!1),new U(ne,2,!0),new U(ue,3,!1),new U(G,3,!0)],ee=[ge,ne,ge,ne,ue,G,ue,G],te=[ne,ne,ne,ne,G,G,G,G],Me=[oe,he,ge,ne,ue,G,ue,G],be=[he,he,ne,ne,G,G,G,G],He=[ce,ce,he,he,ne,ne,G,G],ze=[X,ce,oe,he,oe,he,oe,he];var ae={DISPLAY:K[X],TEXT:K[oe],SCRIPT:K[ge],SCRIPTSCRIPT:K[ue]};const We=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"armenian",blocks:[[1328,1423]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}];function Ve(a){for(let r=0;r<We.length;r++){const i=We[r];for(let o=0;o<i.blocks.length;o++){const l=i.blocks[o];if(a>=l[0]&&a<=l[1])return i.name}}return null}const ke=[];We.forEach(a=>a.blocks.forEach(r=>ke.push(...r)));function pt(a){for(let r=0;r<ke.length;r+=2)if(a>=ke[r]&&a<=ke[r+1])return!0;return!1}const Be=80,R=function(a,r){return"M95,"+(622+a+r)+` 2c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14 3c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54 4c44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10 5s173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429 6c69,-144,104.5,-217.7,106.5,-221 7l`+a/2.075+" -"+a+` 8c5.3,-9.3,12,-14,20,-14 9H400000v`+(40+a)+`H845.2724 10s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7 11c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z 12M`+(834+a)+" "+r+"h400000v"+(40+a)+"h-400000z"},de=function(a,r){return"M263,"+(601+a+r)+`c0.7,0,18,39.7,52,119 13c34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120 14c340,-704.7,510.7,-1060.3,512,-1067 15l`+a/2.084+" -"+a+` 16c4.7,-7.3,11,-11,19,-11 17H40000v`+(40+a)+`H1012.3 18s-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232 19c-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1 20s-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26 21c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z
22M`+(1001+a)+" "+r+"h400000v"+(40+a)+"h-400000z"},Q=function(a,r){return"M983 "+(10+a+r)+` 23l`+a/3.13+" -"+a+` 24c4,-6.7,10,-10,18,-10 H400000v`+(40+a)+` 25H1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7 26s-12,0,-12,0c-1.3,-3.3,-3.7,-11.7,-7,-25c-35.3,-125.3,-106.7,-373.3,-214,-744 27c-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30 28c26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722 29c56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5 30c53.7,-170.3,84.5,-266.8,92.5,-289.5z 31M`+(1001+a)+" "+r+"h400000v"+(40+a)+"h-400000z"},se=function(a,r){return"M424,"+(2398+a+r)+` 32c-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514 33c0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20 34s-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121 35s209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081 36l`+a/4.223+" -"+a+`c4,-6.7,10,-10,18,-10 H400000 37v`+(40+a)+`H1014.6 38s-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185 39c-2,6,-10,9,-24,9 40c-8,0,-12,-0.7,-12,-2z M`+(1001+a)+" "+r+` 41h400000v`+(40+a)+"h-400000z"},Oe=function(a,r){return"M473,"+(2713+a+r)+` 42c339.3,-1799.3,509.3,-2700,510,-2702 l`+a/5.298+" -"+a+` 43c3.3,-7.3,9.3,-11,18,-11 H400000v`+(40+a)+`H1017.7 44s-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9 45c-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200 46c0,-1.3,-5.3,8.7,-16,30c-10.7,21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26 47s76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104, 48606zM`+(1001+a)+" "+r+"h400000v"+(40+a)+"H1017.7z"},Ce=function(a){const r=a/2;return"M400000 "+a+" H0 L"+r+" 0 l65 45 L145 "+(a-80)+" H400000z"},Xe=function(a,r,i){const o=i-54-r-a;return"M702 "+(a+r)+"H400000"+(40+a)+` 49H742v`+o+`l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1 50h-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170 51c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667 52219 661 l218 661zM702 `+r+"H400000v"+(40+a)+"H742z"},Ge=function(a,r,i){r=1e3*r;let o="";switch(a){case"sqrtMain":o=R(r,Be);break;case"sqrtSize1":o=de(r,Be);break;case"sqrtSize2":o=Q(r,Be);break;case"sqrtSize3":o=se(r,Be);break;case"sqrtSize4":o=Oe(r,Be);break;case"sqrtTall":o=Xe(r,Be,i)}return o},Ee=function(a,r){switch(a){case"â":return"M291 0 H417 V"+r+" H291z M291 0 H417 V"+r+" H291z";case"â£":return"M145 0 H188 V"+r+" H145z M145 0 H188 V"+r+" H145z";case"â¥":return"M145 0 H188 V"+r+" H145z M145 0 H188 V"+r+" H145z"+("M367 0 H410 V"+r+" H367z M367 0 H410 V"+r+" H367z");case"â":return"M457 0 H583 V"+r+" H457z M457 0 H583 V"+r+" H457z";case"â¢":return"M319 0 H403 V"+r+" H319z M319 0 H403 V"+r+" H319z";case"â¥":return"M263 0 H347 V"+r+" H263z M263 0 H347 V"+r+" H263z";case"âª":return"M384 0 H504 V"+r+" H384z M384 0 H504 V"+r+" H384z";case"â":return"M312 0 H355 V"+r+" H312z M312 0 H355 V"+r+" H312z";case"â":return"M257 0 H300 V"+r+" H257z M257 0 H300 V"+r+" H257z"+("M478 0 H521 V"+r+" H478z M478 0 H521 V"+r+" H478z");default:return""}},Ze
vendor: 15,381 bytes, lines 52-227
52={doubleleftarrow:`M262 157 53l10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3 54 0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28 55 14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5 56c2 1.7 6.3 3.5 13 5.5 68 17.3 128.2 47.8 180.5 91.5 52.3 43.7 93.8 96.2 124.5 57 157.5 9.3 8 15.3 12.3 18 13h6c12-.7 18-4 18-10 0-2-1.7-7-5-15-23.3-46-52-87 58-86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7 59-2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z 60m8 0v40h399730v-40zm0 194v40h399730v-40z`,doublerightarrow:`M399738 392l 61-10 10c-34 36-62.7 77-86 123-3.3 8-5 13.3-5 16 0 5.3 6.7 8 20 8 7.3 0 12.2-.5 62 14.5-1.5 2.3-1 4.8-4.5 7.5-10.5 49.3-97.3 121.7-169.3 217-216 28-14 57.3-25 88 63-33 6.7-2 11-3.8 13-5.5 2-1.7 3-4.2 3-7.5s-1-5.8-3-7.5c-2-1.7-6.3-3.5-13-5.5-68 64-17.3-128.2-47.8-180.5-91.5-52.3-43.7-93.8-96.2-124.5-157.5-9.3-8-15.3-12.3-18 65-13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782 66c-328 0 0 0 0 0l10 8c26.7 20 65.7 43 117 69-2.7 2-6 3.7-10 5-36.7 16-72.3 37.3 67-107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z`,leftarrow:`M400000 241H110l3-3c68.7-52.7 113.7-120 68 135-202 4-14.7 6-23 6-25 0-7.3-7-11-21-11-8 0-13.2.8-15.5 2.5-2.3 1.7-4.2 5.8 69-5.5 12.5-1.3 4.7-2.7 10.3-4 17-12 48.7-34.8 92-68.5 130S65.3 228.3 18 247 70c-10 4-16 7.7-18 11 0 8.7 6 14.3 18 17 47.3 18.7 87.8 47 121.5 85S196 441.3 208 71 490c.7 2 1.3 5 2 9s1.2 6.7 1.5 8c.3 1.3 1 3.3 2 6s2.2 4.5 3.5 5.5c1.3 1 3.3 72 1.8 6 2.5s6 1 10 1c14 0 21-3.7 21-11 0-2-2-10.3-6-25-20-79.3-65-146.7-135-202 73 l-3-3h399890zM100 241v40h399900v-40z`,leftbrace:`M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117 74-45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7 75 5-6 9-10 13-.7 1-7.3 1-20 1H6z`,leftbraceunder:`M0 6l6-6h17c12.688 0 19.313.3 20 1 4 4 7.313 8.3 10 13 76 35.313 51.3 80.813 93.8 136.5 127.5 55.688 33.7 117.188 55.8 184.5 66.5.688 77 0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7 78-331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z`,leftgroup:`M400000 80 79H435C64 80 168.3 229.4 21 260c-5.9 1.2-18 0-18 0-2 0-3-1-3-3v-38C76 61 257 0 80 435 0h399565z`,leftgroupunder:`M400000 262 81H435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219 82 435 219h399565z`,leftharpoon:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3 83-3.3 10.2-9.5 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5 84-18.3 3-21-1.3-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7 85-196 228-6.7 4.7-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40z`,leftharpoonplus:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3-3.3 10.2-9.5 86 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5-18.3 3-21-1.3 87-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7-196 228-6.7 4.7 88-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z 89m0 0v40h400000v-40z`,leftharpoondown:`M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333 90 5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5 91 1 9 1h5c10.667 0 16.667-2 18-6 2-2.667 1-9.667-3-21-32-87.333-82.667-157.667 92-152-211l-3-3h399907v-40zM93 281 H400000 v-40L7 241z`,leftharpoondownplus:`M7 435c-4 4-6.3 8.7-7 14 0 5.3.7 9 2 11s5.3 5.3 12 93 10c90.7 54 156 130 196 228 3.3 10.7 6.3 16.3 9 17 2 .7 5 1 9 1h5c10.7 0 16.7 94-2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0 95v40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z`,lefthook:`M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5 96-83.5C70.8 58.2 104 47 142 47 c16.7 0 25 6.7 25 20 0 12-8.7 18.7-26 20-40 3.3 97-68.7 15.7-86 37-10 12-15 25.3-15 40 0 22.7 9.8 40.7 29.5 54 19.7 13.3 43.5 21 98 71.5 23h399859zM103 281v-40h399897v40z`,leftlinesegment:`M40 281 V428 H0 V94 H40 V241 H400000 v40z 99M40 281 V428 H0 V94 H40 V241 H400000 v40z`,leftmapsto:`M40 281 V448H0V74H40V241H400000v40z 100M40 281 V448H0V74H40V241H400000v40z`,leftToFrom:`M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23 101-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8 102c28.7-32 52-65.7 70-101 10.7-23.3 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 265.3 103 68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z`,longequal:`M0 50 h400000 v40H0z m0 194h40000v40H0z 104M0 50 h400000 v40H0z m0 194h40000v40H0z`,midbrace:`M200428 334 105c-100.7-8.3-195.3-44-280-108-55.3-42-101.7-93-139-153l-9-14c-2.7 4-5.7 8.7-9 14 106-53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7 107 311.7-78.3 403-201 6-8 9.7-12 11-12 .7-.7 6.7-1 18-1s17.3.3 18 1c1.3 0 5 4 11 108 12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z`,midbraceunder:`M199572 214 109c100.7 8.3 195.3 44 280 108 55.3 42 101.7 93 139 153l9 14c2.7-4 5.7-8.7 9-14 110 53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3 111 11.7-311.7 78.3-403 201-6 8-9.7 12-11 12-.7.7-6.7 1-18 1s-17.3-.3-18-1c-1.3 0 112-5-4-11-12-44.7-59.3-101.3-106.3-170-141s-145.3-54.3-229-60H0V214z`,oiintSize1:`M512.6 71.6c272.6 0 320.3 106.8 320.3 178.2 0 70.8-47.7 177.6 113-320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z 114m368.1 178.2c0-86.4-60.9-215.4-368.1-215.4-306.4 0-367.3 129-367.3 215.4 0 85.8 11560.9 214.8 367.3 214.8 307.2 0 368.1-129 368.1-214.8z`,oiintSize2:`M757.8 100.1c384.7 0 451.1 137.6 451.1 230 0 91.3-66.4 228.8 116-451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z 117m502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2 118c0 110 84 276 504 276s502.4-166 502.4-276z`,oiiintSize1:`M681.4 71.6c408.9 0 480.5 106.8 480.5 178.2 0 70.8-71.6 177.6 119-480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z 120m525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0 12185.8 86.8 214.8 524.7 214.8 438.9 0 525.7-129 525.7-214.8z`,oiiintSize2:`M1021.2 53c603.6 0 707.8 165.8 707.8 277.2 0 110-104.2 275.8 122-707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z 123m770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1 124c0 130 128.8 326.4 772.7 326.4s770.5-196.4 770.5-326.4z`,rightarrow:`M0 241v40h399891c-47.3 35.3-84 78-110 128 125-16.7 32-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 126 11 8 0 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 127 39-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85 128-40.5-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5 129-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67 130 151.7 139 205zm0 0v40h399900v-40z`,rightbrace:`M400000 542l 131-6 6h-17c-12.7 0-19.3-.3-20-1-4-4-7.3-8.3-10-13-35.3-51.3-80.8-93.8-136.5-127.5 132s-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1 133c124.7 8 235 61.7 331 161 31.3 33.3 59.7 72.7 85 118l7 13v35z`,rightbraceunder:`M399994 0l6 6v35l-6 11c-56 104-135.3 181.3-238 232-57.3 134 28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237 135-174 2.7-5 6-9 10-13 .7-1 7.3-1 20-1h17z`,rightgroup:`M0 80h399565c371 0 266.7 149.4 414 180 5.9 1.2 18 0 18 0 2 0 136 3-1 3-3v-38c-76-158-257-219-435-219H0z`,rightgroupunder:`M0 262h399565c371 0 266.7-149.4 414-180 5.9-1.2 18 0 18 137 0 2 0 3 1 3 3v38c-76 158-257 219-435 219H0z`,rightharpoon:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3 138-3.7-15.3-11-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2 139-10.7 0-16.7 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 140 69.2 92 94.5zm0 0v40h399900v-40z`,rightharpoonplus:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3-3.7-15.3-11 141-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2-10.7 0-16.7 142 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 69.2 92 94.5z 143m0 0v40h399900v-40z m100 194v40h399900v-40zm0 0v40h399900v-40z`,rightharpoondown:`M399747 511c0 7.3 6.7 11 20 11 8 0 13-.8 15-2.5s4.7-6.8 144 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 8.5-5.8 9.5 145-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3-64.7 57-92 95 146-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 241v40h399900v-40z`,rightharpoondownplus:`M399747 705c0 7.3 6.7 11 20 11 8 0 13-.8 147 15-2.5s4.7-6.8 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 148 8.5-5.8 9.5-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3 149-64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z 150m0-194v40h400000v-40zm0 0v40h400000v-40z`,righthook:`M399859 241c-764 0 0 0 0 0 40-3.3 68.7-15.7 86-37 10-12 15-25.3 151 15-40 0-22.7-9.8-40.7-29.5-54-19.7-13.3-43.5-21-71.5-23-17.3-1.3-26-8-26-20 0 152-13.3 8.7-20 26-20 38 0 71 11.2 99 33.5 0 0 7 5.6 21 16.7 14 11.2 21 33.5 21 153 66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z`,rightlinesegment:`M399960 241 V94 h40 V428 h-40 V281 H0 v-40z 154M399960 241 V94 h40 V428 h-40 V281 H0 v-40z`,rightToFrom:`M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23 155 1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32 156-52 65.7-70 101-10.7 23.3-16 35.7-16 37 0 .7 7.7 1 23 1h23c24-69.3 71.3-125 142 157-167z M100 147v40h399900v-40zM0 341v40h399900v-40z`,twoheadleftarrow:`M0 167c68 40 158 115.7 95.7 143 167h22c15.3 0 23-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69 159-70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3 160-40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19 161-37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101 162 10.7-23.333 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 71.3 68 127 0 167z`,twoheadrightarrow:`M400000 167 163c-68-40-115.7-95.7-143-167h-22c-15.3 0-23 .3-23 1 0 1.3 5.3 13.7 16 37 18 35.3 164 41.3 69 70 101l7 8h-125l-9-7c-50.7-39.3-85-86-103-140h-46c0 4.7 6.3 18.7 19 42 165 18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333 166-19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70 167 101-10.7 23.333-16 35.7-16 37 0 .7 7.7 1 23 1h22c27.3-71.3 75-127 143-167z`,tilde1:`M200 55.538c-77 0-168 73.953-177 73.953-3 0-7 168-2.175-9-5.437L2 97c-1-2-2-4-2-6 0-4 2-7 5-9l20-12C116 12 171 0 207 0c86 0 169 114 68 191 68 78 0 168-68 177-68 4 0 7 2 9 5l12 19c1 2.175 2 4.35 2 6.525 0 170 4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128 171-68.267.847-113-73.952-191-73.952z`,tilde2:`M344 55.266c-142 0-300.638 81.316-311.5 86.418 172-8.01 3.762-22.5 10.91-23.5 5.562L1 120c-1-2-1-3-1-4 0-5 3-9 8-10l18.4-9C160.9 173 31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114 174c1 2.14 1 3.21 1 4.28 0 5.347-3 9.626-7 10.696l-22.3 12.622C852.6 158.372 751 175 181.476 676 181.476c-149 0-189-126.21-332-126.21z`,tilde3:`M786 59C457 59 32 175.242 13 175.242c-6 0-10-3.457 176-11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0 177 411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697 178 16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696 179 -338 0-409-156.573-744-156.573z`,tilde4:`M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345 180-11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409 181 177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9 182 14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409 183 -175.236-744-175.236z`,vec:`M377 20c0-5.333 1.833-10 5.5-14S391 0 397 0c4.667 0 8.667 1.667 12 5 1843.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11 18510.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63 186-1.333 1.333-3.167 3.5-5.5 6.5s-4 4.833-5 5.5c-1 .667-2.5 1.333-4.5 2s-4.333 1 187-7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59 188H213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359 189c-16-25.333-24-45-24-59z`,widehat1:`M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22 190c-1 5-5 9-11 9h-2L532 67 19 159h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13z`,widehat2:`M1181 0h2l1171 176c6 0 10 5 10 11l-2 23c-1 6-5 10 191-11 10h-1L1182 67 15 220h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat3:`M1181 0h2l1171 236c6 0 10 5 10 11l-2 23c-1 6-5 10 192-11 10h-1L1182 67 15 280h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat4:`M1181 0h2l1171 296c6 0 10 5 10 11l-2 23c-1 6-5 10 193-11 10h-1L1182 67 15 340h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widecheck1:`M529,159h5l519,-115c5,-1,9,-5,9,-10c0,-1,-1,-2,-1,-3l-4,-22c-1, 194-5,-5,-9,-11,-9h-2l-512,92l-513,-92h-2c-5,0,-9,4,-11,9l-5,22c-1,6,2,12,8,13z`,widecheck2:`M1181,220h2l1171,-176c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10, 195-11,-10h-1l-1168,153l-1167,-153h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck3:`M1181,280h2l1171,-236c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10, 196-11,-10h-1l-1168,213l-1167,-213h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck4:`M1181,340h2l1171,-296c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10, 197-11,-10h-1l-1168,273l-1167,-273h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,baraboveleftarrow:`M400000 620h-399890l3 -3c68.7 -52.7 113.7 -120 135 -202 198c4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5 199c-2.3 1.7 -4.2 5.8 -5.5 12.5c-1.3 4.7 -2.7 10.3 -4 17c-12 48.7 -34.8 92 -68.5 130 200s-74.2 66.3 -121.5 85c-10 4 -16 7.7 -18 11c0 8.7 6 14.3 18 17c47.3 18.7 87.8 47 201121.5 85s56.5 81.3 68.5 130c0.7 2 1.3 5 2 9s1.2 6.7 1.5 8c0.3 1.3 1 3.3 2 6 202s2.2 4.5 3.5 5.5c1.3 1 3.3 1.8 6 2.5s6 1 10 1c14 0 21 -3.7 21 -11 203c0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z 204M100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z`,rightarrowabovebar:`M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32 205-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 11 8 0 20613.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 39 207-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85-40.5 208-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5 209-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67 210151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z`,baraboveshortleftharpoon:`M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11 211c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17 212c2,0.7,5,1,9,1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21 213c-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40 214c-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z 215M0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z`,rightharpoonaboveshortbar:`M0,241 l0,40c399126,0,399993,0,399993,0 216c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199, 217-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6 218c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z 219M0 241 v40 H399908 v-40z M0 475 v-40 H399500 v40z M0 475 v-40 H399500 v40z`,shortbaraboveleftharpoon:`M7,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11 220c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17c2,0.7,5,1,9, 2211c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21c-32,-87.3,-82.7,-157.7, 222-152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z 223M93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z`,shortrightharpoonabovebar:`M53,241l0,40c398570,0,399437,0,399437,0 224c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199, 225-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6 226c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z 227M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},
227et=function(a,r){switch(a){case"lbrack":return"M403 1759 V84 H666 V0 H319 V1759 v"+r+` v1759 h347 v-84 228H403z M403 1759 V0 H319 V1759 v`+r+" v1759 h84z";case"rbrack":return"M347 1759 V0 H0 V84 H263 V1759 v"+r+` v1759 H0 v84 H347z 229M347 1759 V0 H263 V1759 v`+r+" v1759 h84z";case"vert":return"M145 15 v585 v"+r+` v585 c2.667,10,9.667,15,21,15 230c10,0,16.667,-5,20,-15 v-585 v`+-r+` v-585 c-2.667,-10,-9.667,-15,-21,-15 231c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+r+" v585 h43z";case"doublevert":return"M145 15 v585 v"+r+` v585 c2.667,10,9.667,15,21,15 232c10,0,16.667,-5,20,-15 v-585 v`+-r+` v-585 c-2.667,-10,-9.667,-15,-21,-15 233c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+r+` v585 h43z 234M367 15 v585 v`+r+` v585 c2.667,10,9.667,15,21,15 235c10,0,16.667,-5,20,-15 v-585 v`+-r+` v-585 c-2.667,-10,-9.667,-15,-21,-15 236c-10,0,-16.667,5,-20,15z M410 15 H367 v585 v`+r+" v585 h43z";case"lfloor":return"M319 602 V0 H403 V602 v"+r+` v1715 h263 v84 H319z 237MM319 602 V0 H403 V602 v`+r+" v1715 H319z";case"rfloor":return"M319 602 V0 H403 V602 v"+r+` v1799 H0 v-84 H319z 238MM319 602 V0 H403 V602 v`+r+" v1715 H319z";case"lceil":return"M403 1759 V84 H666 V0 H319 V1759 v"+r+` v602 h84z 239M403 1759 V0 H319 V1759 v`+r+" v602 h84z";case"rceil":return"M347 1759 V0 H0 V84 H263 V1759 v"+r+` v602 h84z 240M347 1759 V0 h-84 V1759 v`+r+" v602 h84z";case"lparen":return`M863,9c0,-2,-2,-5,-6,-9c0,0,-17,0,-17,0c-12.7,0,-19.3,0.3,-20,1 241c-5.3,5.3,-10.3,11,-15,17c-242.7,294.7,-395.3,682,-458,1162c-21.3,163.3,-33.3,349, 242-36,557 l0,`+(r+84)+`c0.2,6,0,26,0,60c2,159.3,10,310.7,24,454c53.3,528,210, 243949.7,470,1265c4.7,6,9.7,11.7,15,17c0.7,0.7,7,1,19,1c0,0,18,0,18,0c4,-4,6,-7,6,-9 244c0,-2.7,-3.3,-8.7,-10,-18c-135.3,-192.7,-235.5,-414.3,-300.5,-665c-65,-250.7,-102.5, 245-544.7,-112.5,-882c-2,-104,-3,-167,-3,-189 246l0,-`+(r+92)+`c0,-162.7,5.7,-314,17,-454c20.7,-272,63.7,-513,129,-723c65.3, 247-210,155.3,-396.3,270,-559c6.7,-9.3,10,-15.3,10,-18z`;case"rparen":return`M76,0c-16.7,0,-25,3,-25,9c0,2,2,6.3,6,13c21.3,28.7,42.3,60.3, 24863,95c96.7,156.7,172.8,332.5,228.5,527.5c55.7,195,92.8,416.5,111.5,664.5 249c11.3,139.3,17,290.7,17,454c0,28,1.7,43,3.3,45l0,`+(r+9)+` 250c-3,4,-3.3,16.7,-3.3,38c0,162,-5.7,313.7,-17,455c-18.7,248,-55.8,469.3,-111.5,664 251c-55.7,194.7,-131.8,370.3,-228.5,527c-20.7,34.7,-41.7,66.3,-63,95c-2,3.3,-4,7,-6,11 252c0,7.3,5.7,11,17,11c0,0,11,0,11,0c9.3,0,14.3,-0.3,15,-1c5.3,-5.3,10.3,-11,15,-17 253c242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558 254l0,-`+(r+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7, 255-470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z`;default:throw new Error("Unknown stretchy delimiter.")}};var $e
vendor: 57,628 bytes, line 255
255={"AMS-Regular":{32:[0,0,0,0,.25],65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],160:[0,0,0,0,.25],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77778],8809:[.25142,.75726,0,0,.77778],8812:[.25583,.75583,0,0,.5],8814:[.20576,.70576,0,0,.77778],8815:[.20576,.70576,0,0,.77778],8816:[.30274,.79383,0,0,.77778],8817:[.30274,.79383,0,0,.77778],8818:[.22958,.72958,0,0,.77778],8819:[.22958,.72958,0,0,.77778],8822:[.1808,.675,0,0,.77778],8823:[.1808,.675,0,0,.77778],8828:[.13667,.63667,0,0,.77778],8829:[.13667,.63667,0,0,.77778],8830:[.22958,.72958,0,0,.77778],8831:[.22958,.72958,0,0,.77778],8832:[.20576,.70576,0,0,.77778],8833:[.20576,.70576,0,0,.77778],8840:[.30274,.79383,0,0,.77778],8841:[.30274,.79383,0,0,.77778],8842:[.13597,.63597,0,0,.77778],8843:[.13597,.63597,0,0,.77778],8847:[.03517,.54986,0,0,.77778],8848:[.03517,.54986,0,0,.77778],8858:[.08198,.58198,0,0,.77778],8859:[.08198,.58198,0,0,.77778],8861:[.08198,.58198,0,0,.77778],8862:[0,.675,0,0,.77778],8863:[0,.675,0,0,.77778],8864:[0,.675,0,0,.77778],8865:[0,.675,0,0,.77778],8872:[0,.69224,0,0,.61111],8873:[0,.69224,0,0,.72222],8874:[0,.69224,0,0,.88889],8876:[0,.68889,0,0,.61111],8877:[0,.68889,0,0,.61111],8878:[0,.68889,0,0,.72222],8879:[0,.68889,0,0,.72222],8882:[.03517,.54986,0,0,.77778],8883:[.03517,.54986,0,0,.77778],8884:[.13667,.63667,0,0,.77778],8885:[.13667,.63667,0,0,.77778],8888:[0,.54986,0,0,1.11111],8890:[.19444,.43056,0,0,.55556],8891:[.19444,.69224,0,0,.61111],8892:[.19444,.69224,0,0,.61111],8901:[0,.54986,0,0,.27778],8903:[.08167,.58167,0,0,.77778],8905:[.08167,.58167,0,0,.77778],8906:[.08167,.58167,0,0,.77778],8907:[0,.69224,0,0,.77778],8908:[0,.69224,0,0,.77778],8909:[-.03598,.46402,0,0,.77778],8910:[0,.54986,0,0,.76042],8911:[0,.54986,0,0,.76042],8912:[.03517,.54986,0,0,.77778],8913:[.03517,.54986,0,0,.77778],8914:[0,.54986,0,0,.66667],8915:[0,.54986,0,0,.66667],8916:[0,.69224,0,0,.66667],8918:[.0391,.5391,0,0,.77778],8919:[.0391,.5391,0,0,.77778],8920:[.03517,.54986,0,0,1.33334],8921:[.03517,.54986,0,0,1.33334],8922:[.38569,.88569,0,0,.77778],8923:[.38569,.88569,0,0,.77778],8926:[.13667,.63667,0,0,.77778],8927:[.13667,.63667,0,0,.77778],8928:[.30274,.79383,0,0,.77778],8929:[.30274,.79383,0,0,.77778],8934:[.23222,.74111,0,0,.77778],8935:[.23222,.74111,0,0,.77778],8936:[.23222,.74111,0,0,.77778],8937:[.23222,.74111,0,0,.77778],8938:[.20576,.70576,0,0,.77778],8939:[.20576,.70576,0,0,.77778],8940:[.30274,.79383,0,0,.77778],8941:[.30274,.79383,0,0,.77778],8994:[.19444,.69224,0,0,.77778],8995:[.19444,.69224,0,0,.77778],9416:[.15559,.69224,0,0,.90222],9484:[0,.69224,0,0,.5],9488:[0,.69224,0,0,.5],9492:[0,.37788,0,0,.5],9496:[0,.37788,0,0,.5],9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:[0,.675,0,0,.77778],9633:[0,.675,0,0,.77778],9650:[0,.54986,0,0,.72222],9651:[0,.54986,0,0,.72222],9654:[.03517,.54986,0,0,.77778],9660:[0,.54986,0,0,.72222],9661:[0,.54986,0,0,.72222],9664:[.03517,.54986,0,0,.77778],9674:[.11111,.69224,0,0,.66667],9733:[.19444,.69224,0,0,.94445],10003:[0,.69224,0,0,.83334],10016:[0,.69224,0,0,.83334],10731:[.11111,.69224,0,0,.66667],10846:[.19444,.75583,0,0,.61111],10877:[.13667,.63667,0,0,.77778],10878:[.13667,.63667,0,0,.77778],10885:[.25583,.75583,0,0,.77778],10886:[.25583,.75583,0,0,.77778],10887:[.13597,.63597,0,0,.77778],10888:[.13597,.63597,0,0,.77778],10889:[.26167,.75726,0,0,.77778],10890:[.26167,.75726,0,0,.77778],10891:[.48256,.98256,0,0,.77778],10892:[.48256,.98256,0,0,.77778],10901:[.13667,.63667,0,0,.77778],10902:[.13667,.63667,0,0,.77778],10933:[.25142,.75726,0,0,.77778],10934:[.25142,.75726,0,0,.77778],10935:[.26167,.75726,0,0,.77778],10936:[.26167,.75726,0,0,.77778],10937:[.26167,.75726,0,0,.77778],10938:[.26167,.75726,0,0,.77778],10949:[.25583,.75583,0,0,.77778],10950:[.25583,.75583,0,0,.77778],10955:[.28481,.79383,0,0,.77778],10956:[.28481,.79383,0,0,.77778],57350:[.08167,.58167,0,0,.22222],57351:[.08167,.58167,0,0,.38889],57352:[.08167,.58167,0,0,.77778],57353:[0,.43056,.04028,0,.66667],57356:[.25142,.75726,0,0,.77778],57357:[.25142,.75726,0,0,.77778],57358:[.41951,.91951,0,0,.77778],57359:[.30274,.79383,0,0,.77778],57360:[.30274,.79383,0,0,.77778],57361:[.41951,.91951,0,0,.77778],57366:[.25142,.75726,0,0,.77778],57367:[.25142,.75726,0,0,.77778],57368:[.25142,.75726,0,0,.77778],57369:[.25142,.75726,0,0,.77778],57370:[.13597,.63597,0,0,.77778],57371:[.13597,.63597,0,0,.77778]},"Caligraphic-Regular":{32:[0,0,0,0,.25],65:[0,.68333,0,.19445,.79847],66:[0,.68333,.03041,.13889,.65681],67:[0,.68333,.05834,.13889,.52653],68:[0,.68333,.02778,.08334,.77139],69:[0,.68333,.08944,.11111,.52778],70:[0,.68333,.09931,.11111,.71875],71:[.09722,.68333,.0593,.11111,.59487],72:[0,.68333,.00965,.11111,.84452],73:[0,.68333,.07382,0,.54452],74:[.09722,.68333,.18472,.16667,.67778],75:[0,.68333,.01445,.05556,.76195],76:[0,.68333,0,.13889,.68972],77:[0,.68333,0,.13889,1.2009],78:[0,.68333,.14736,.08334,.82049],79:[0,.68333,.02778,.11111,.79611],80:[0,.68333,.08222,.08334,.69556],81:[.09722,.68333,0,.11111,.81667],82:[0,.68333,0,.08334,.8475],83:[0,.68333,.075,.13889,.60556],84:[0,.68333,.25417,0,.54464],85:[0,.68333,.09931,.08334,.62583],86:[0,.68333,.08222,0,.61278],87:[0,.68333,.08222,.08334,.98778],88:[0,.68333,.14643,.13889,.7133],89:[.09722,.68333,.08222,.08334,.66834],90:[0,.68333,.07944,.13889,.72473],160:[0,0,0,0,.25]},"Fraktur-Regular":{32:[0,0,0,0,.25],33:[0,.69141,0,0,.29574],34:[0,.69141,0,0,.21471],38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:[.24982,.74947,0,0,.38865],41:[.24982,.74947,0,0,.38865],42:[0,.62119,0,0,.27764],43:[.08319,.58283,0,0,.75623],44:[0,.10803,0,0,.27764],45:[.08319,.58283,0,0,.75623],46:[0,.10803,0,0,.27764],47:[.24982,.74947,0,0,.50181],48:[0,.47534,0,0,.50181],49:[0,.47534,0,0,.50181],50:[0,.47534,0,0,.50181],51:[.18906,.47534,0,0,.50181],52:[.18906,.47534,0,0,.50181],53:[.18906,.47534,0,0,.50181],54:[0,.69141,0,0,.50181],55:[.18906,.47534,0,0,.50181],56:[0,.69141,0,0,.50181],57:[.18906,.47534,0,0,.50181],58:[0,.47534,0,0,.21606],59:[.12604,.47534,0,0,.21606],61:[-.13099,.36866,0,0,.75623],63:[0,.69141,0,0,.36245],65:[0,.69141,0,0,.7176],66:[0,.69141,0,0,.88397],67:[0,.69141,0,0,.61254],68:[0,.69141,0,0,.83158],69:[0,.69141,0,0,.66278],70:[.12604,.69141,0,0,.61119],71:[0,.69141,0,0,.78539],72:[.06302,.69141,0,0,.7203],73:[0,.69141,0,0,.55448],74:[.12604,.69141,0,0,.55231],75:[0,.69141,0,0,.66845],76:[0,.69141,0,0,.66602],77:[0,.69141,0,0,1.04953],78:[0,.69141,0,0,.83212],79:[0,.69141,0,0,.82699],80:[.18906,.69141,0,0,.82753],81:[.03781,.69141,0,0,.82699],82:[0,.69141,0,0,.82807],83:[0,.69141,0,0,.82861],84:[0,.69141,0,0,.66899],85:[0,.69141,0,0,.64576],86:[0,.69141,0,0,.83131],87:[0,.69141,0,0,1.04602],88:[0,.69141,0,0,.71922],89:[.18906,.69141,0,0,.83293],90:[.12604,.69141,0,0,.60201],91:[.24982,.74947,0,0,.27764],93:[.24982,.74947,0,0,.27764],94:[0,.69141,0,0,.49965],97:[0,.47534,0,0,.50046],98:[0,.69141,0,0,.51315],99:[0,.47534,0,0,.38946],100:[0,.62119,0,0,.49857],101:[0,.47534,0,0,.40053],102:[.18906,.69141,0,0,.32626],103:[.18906,.47534,0,0,.5037],104:[.18906,.69141,0,0,.52126],105:[0,.69141,0,0,.27899],106:[0,.69141,0,0,.28088],107:[0,.69141,0,0,.38946],108:[0,.69141,0,0,.27953],109:[0,.47534,0,0,.76676],110:[0,.47534,0,0,.52666],111:[0,.47534,0,0,.48885],112:[.18906,.52396,0,0,.50046],113:[.18906,.47534,0,0,.48912],114:[0,.47534,0,0,.38919],115:[0,.47534,0,0,.44266],116:[0,.62119,0,0,.33301],117:[0,.47534,0,0,.5172],118:[0,.52396,0,0,.5118],119:[0,.52396,0,0,.77351],120:[.18906,.47534,0,0,.38865],121:[.18906,.47534,0,0,.49884],122:[.18906,.47534,0,0,.39054],160:[0,0,0,0,.25],8216:[0,.69141,0,0,.21471],8217:[0,.69141,0,0,.21471],58112:[0,.62119,0,0,.49749],58113:[0,.62119,0,0,.4983],58114:[.18906,.69141,0,0,.33328],58115:[.18906,.69141,0,0,.32923],58116:[.18906,.47534,0,0,.50343],58117:[0,.69141,0,0,.33301],58118:[0,.62119,0,0,.33409],58119:[0,.47534,0,0,.50073]},"Main-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.35],34:[0,.69444,0,0,.60278],35:[.19444,.69444,0,0,.95833],36:[.05556,.75,0,0,.575],37:[.05556,.75,0,0,.95833],38:[0,.69444,0,0,.89444],39:[0,.69444,0,0,.31944],40:[.25,.75,0,0,.44722],41:[.25,.75,0,0,.44722],42:[0,.75,0,0,.575],43:[.13333,.63333,0,0,.89444],44:[.19444,.15556,0,0,.31944],45:[0,.44444,0,0,.38333],46:[0,.15556,0,0,.31944],47:[.25,.75,0,0,.575],48:[0,.64444,0,0,.575],49:[0,.64444,0,0,.575],50:[0,.64444,0,0,.575],51:[0,.64444,0,0,.575],52:[0,.64444,0,0,.575],53:[0,.64444,0,0,.575],54:[0,.64444,0,0,.575],55:[0,.64444,0,0,.575],56:[0,.64444,0,0,.575],57:[0,.64444,0,0,.575],58:[0,.44444,0,0,.31944],59:[.19444,.44444,0,0,.31944],60:[.08556,.58556,0,0,.89444],61:[-.10889,.39111,0,0,.89444],62:[.08556,.58556,0,0,.89444],63:[0,.69444,0,0,.54305],64:[0,.69444,0,0,.89444],65:[0,.68611,0,0,.86944],66:[0,.68611,0,0,.81805],67:[0,.68611,0,0,.83055],68:[0,.68611,0,0,.88194],69:[0,.68611,0,0,.75555],70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:[0,.68611,0,0,.9],73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:[0,.68611,0,0,.69166],77:[0,.68611,0,0,1.09166],78:[0,.68611,0,0,.9],79:[0,.68611,0,0,.86388],80:[0,.68611,0,0,.78611],81:[.19444,.68611,0,0,.86388],82:[0,.68611,0,0,.8625],83:[0,.68611,0,0,.63889],84:[0,.68611,0,0,.8],85:[0,.68611,0,0,.88472],86:[0,.68611,.01597,0,.86944],87:[0,.68611,.01597,0,1.18888],88:[0,.68611,0,0,.86944],89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:[.25,.75,0,0,.31944],92:[.25,.75,0,0,.575],93:[.25,.75,0,0,.31944],94:[0,.69444,0,0,.575],95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:[0,.69444,0,0,.63889],99:[0,.44444,0,0,.51111],100:[0,.69444,0,0,.63889],101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:[0,.69444,0,0,.63889],105:[0,.69444,0,0,.31944],106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:[0,.69444,0,0,.31944],109:[0,.44444,0,0,.95833],110:[0,.44444,0,0,.63889],111:[0,.44444,0,0,.575],112:[.19444,.44444,0,0,.63889],113:[.19444,.44444,0,0,.60694],114:[0,.44444,0,0,.47361],115:[0,.44444,0,0,.45361],116:[0,.63492,0,0,.44722],117:[0,.44444,0,0,.63889],118:[0,.44444,.01597,0,.60694],119:[0,.44444,.01597,0,.83055],120:[0,.44444,0,0,.60694],121:[.19444,.44444,.01597,0,.60694],122:[0,.44444,0,0,.51111],123:[.25,.75,0,0,.575],124:[.25,.75,0,0,.31944],125:[.25,.75,0,0,.575],126:[.35,.34444,0,0,.575],160:[0,0,0,0,.25],163:[0,.69444,0,0,.86853],168:[0,.69444,0,0,.575],172:[0,.44444,0,0,.76666],176:[0,.69444,0,0,.86944],177:[.13333,.63333,0,0,.89444],184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:[.13333,.63333,0,0,.89444],216:[.04861,.73472,0,0,.89444],223:[0,.69444,0,0,.59722],230:[0,.44444,0,0,.83055],247:[.13333,.63333,0,0,.89444],248:[.09722,.54167,0,0,.575],305:[0,.44444,0,0,.31944],338:[0,.68611,0,0,1.16944],339:[0,.44444,0,0,.89444],567:[.19444,.44444,0,0,.35139],710:[0,.69444,0,0,.575],711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:[0,.69444,0,0,.575],715:[0,.69444,0,0,.575],728:[0,.69444,0,0,.575],729:[0,.69444,0,0,.31944],730:[0,.69444,0,0,.86944],732:[0,.69444,0,0,.575],733:[0,.69444,0,0,.575],915:[0,.68611,0,0,.69166],916:[0,.68611,0,0,.95833],920:[0,.68611,0,0,.89444],923:[0,.68611,0,0,.80555],926:[0,.68611,0,0,.76666],928:[0,.68611,0,0,.9],931:[0,.68611,0,0,.83055],933:[0,.68611,0,0,.89444],934:[0,.68611,0,0,.83055],936:[0,.68611,0,0,.89444],937:[0,.68611,0,0,.83055],8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:[0,.69444,0,0,.31944],8217:[0,.69444,0,0,.31944],8220:[0,.69444,0,0,.60278],8221:[0,.69444,0,0,.60278],8224:[.19444,.69444,0,0,.51111],8225:[.19444,.69444,0,0,.51111],8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:[0,.69444,0,0,.66759],8465:[0,.69444,0,0,.83055],8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:[0,.69444,0,0,.83055],8501:[0,.69444,0,0,.70277],8592:[-.10889,.39111,0,0,1.14999],8593:[.19444,.69444,0,0,.575],8594:[-.10889,.39111,0,0,1.14999],8595:[.19444,.69444,0,0,.575],8596:[-.10889,.39111,0,0,1.14999],8597:[.25,.75,0,0,.575],8598:[.19444,.69444,0,0,1.14999],8599:[.19444,.69444,0,0,1.14999],8600:[.19444,.69444,0,0,1.14999],8601:[.19444,.69444,0,0,1.14999],8636:[-.10889,.39111,0,0,1.14999],8637:[-.10889,.39111,0,0,1.14999],8640:[-.10889,.39111,0,0,1.14999],8641:[-.10889,.39111,0,0,1.14999],8656:[-.10889,.39111,0,0,1.14999],8657:[.19444,.69444,0,0,.70277],8658:[-.10889,.39111,0,0,1.14999],8659:[.19444,.69444,0,0,.70277],8660:[-.10889,.39111,0,0,1.14999],8661:[.25,.75,0,0,.70277],8704:[0,.69444,0,0,.63889],8706:[0,.69444,.06389,0,.62847],8707:[0,.69444,0,0,.63889],8709:[.05556,.75,0,0,.575],8711:[0,.68611,0,0,.95833],8712:[.08556,.58556,0,0,.76666],8715:[.08556,.58556,0,0,.76666],8722:[.13333,.63333,0,0,.89444],8723:[.13333,.63333,0,0,.89444],8725:[.25,.75,0,0,.575],8726:[.25,.75,0,0,.575],8727:[-.02778,.47222,0,0,.575],8728:[-.02639,.47361,0,0,.575],8729:[-.02639,.47361,0,0,.575],8730:[.18,.82,0,0,.95833],8733:[0,.44444,0,0,.89444],8734:[0,.44444,0,0,1.14999],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.31944],8741:[.25,.75,0,0,.575],8743:[0,.55556,0,0,.76666],8744:[0,.55556,0,0,.76666],8745:[0,.55556,0,0,.76666],8746:[0,.55556,0,0,.76666],8747:[.19444,.69444,.12778,0,.56875],8764:[-.10889,.39111,0,0,.89444],8768:[.19444,.69444,0,0,.31944],8771:[.00222,.50222,0,0,.89444],8773:[.027,.638,0,0,.894],8776:[.02444,.52444,0,0,.89444],8781:[.00222,.50222,0,0,.89444],8801:[.00222,.50222,0,0,.89444],8804:[.19667,.69667,0,0,.89444],8805:[.19667,.69667,0,0,.89444],8810:[.08556,.58556,0,0,1.14999],8811:[.08556,.58556,0,0,1.14999],8826:[.08556,.58556,0,0,.89444],8827:[.08556,.58556,0,0,.89444],8834:[.08556,.58556,0,0,.89444],8835:[.08556,.58556,0,0,.89444],8838:[.19667,.69667,0,0,.89444],8839:[.19667,.69667,0,0,.89444],8846:[0,.55556,0,0,.76666],8849:[.19667,.69667,0,0,.89444],8850:[.19667,.69667,0,0,.89444],8851:[0,.55556,0,0,.76666],8852:[0,.55556,0,0,.76666],8853:[.13333,.63333,0,0,.89444],8854:[.13333,.63333,0,0,.89444],8855:[.13333,.63333,0,0,.89444],8856:[.13333,.63333,0,0,.89444],8857:[.13333,.63333,0,0,.89444],8866:[0,.69444,0,0,.70277],8867:[0,.69444,0,0,.70277],8868:[0,.69444,0,0,.89444],8869:[0,.69444,0,0,.89444],8900:[-.02639,.47361,0,0,.575],8901:[-.02639,.47361,0,0,.31944],8902:[-.02778,.47222,0,0,.575],8968:[.25,.75,0,0,.51111],8969:[.25,.75,0,0,.51111],8970:[.25,.75,0,0,.51111],8971:[.25,.75,0,0,.51111],8994:[-.13889,.36111,0,0,1.14999],8995:[-.13889,.36111,0,0,1.14999],9651:[.19444,.69444,0,0,1.02222],9657:[-.02778,.47222,0,0,.575],9661:[.19444,.69444,0,0,1.02222],9667:[-.02778,.47222,0,0,.575],9711:[.19444,.69444,0,0,1.14999],9824:[.12963,.69444,0,0,.89444],9825:[.12963,.69444,0,0,.89444],9826:[.12963,.69444,0,0,.89444],9827:[.12963,.69444,0,0,.89444],9837:[0,.75,0,0,.44722],9838:[.19444,.69444,0,0,.44722],9839:[.19444,.69444,0,0,.44722],10216:[.25,.75,0,0,.44722],10217:[.25,.75,0,0,.44722],10815:[0,.68611,0,0,.9],10927:[.19667,.69667,0,0,.89444],10928:[.19667,.69667,0,0,.89444],57376:[.19444,.69444,0,0,0]},"Main-BoldItalic":{32:[0,0,0,0,.25],33:[0,.69444,.11417,0,.38611],34:[0,.69444,.07939,0,.62055],35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:[0,.69444,.12945,0,.35555],40:[.25,.75,.15806,0,.47333],41:[.25,.75,.03306,0,.47333],42:[0,.75,.14333,0,.59111],43:[.10333,.60333,.03306,0,.88555],44:[.19444,.14722,0,0,.35555],45:[0,.44444,.02611,0,.41444],46:[0,.14722,0,0,.35555],47:[.25,.75,.15806,0,.59111],48:[0,.64444,.13167,0,.59111],49:[0,.64444,.13167,0,.59111],50:[0,.64444,.13167,0,.59111],51:[0,.64444,.13167,0,.59111],52:[.19444,.64444,.13167,0,.59111],53:[0,.64444,.13167,0,.59111],54:[0,.64444,.13167,0,.59111],55:[.19444,.64444,.13167,0,.59111],56:[0,.64444,.13167,0,.59111],57:[0,.64444,.13167,0,.59111],58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:[0,.69444,.11472,0,.59111],64:[0,.69444,.09208,0,.88555],65:[0,.68611,0,0,.86555],66:[0,.68611,.0992,0,.81666],67:[0,.68611,.14208,0,.82666],68:[0,.68611,.09062,0,.87555],69:[0,.68611,.11431,0,.75666],70:[0,.68611,.12903,0,.72722],71:[0,.68611,.07347,0,.89527],72:[0,.68611,.17208,0,.8961],73:[0,.68611,.15681,0,.47166],74:[0,.68611,.145,0,.61055],75:[0,.68611,.14208,0,.89499],76:[0,.68611,0,0,.69777],77:[0,.68611,.17208,0,1.07277],78:[0,.68611,.17208,0,.8961],79:[0,.68611,.09062,0,.85499],80:[0,.68611,.0992,0,.78721],81:[.19444,.68611,.09062,0,.85499],82:[0,.68611,.02559,0,.85944],83:[0,.68611,.11264,0,.64999],84:[0,.68611,.12903,0,.7961],85:[0,.68611,.17208,0,.88083],86:[0,.68611,.18625,0,.86555],87:[0,.68611,.18625,0,1.15999],88:[0,.68611,.15681,0,.86555],89:[0,.68611,.19803,0,.86555],90:[0,.68611,.14208,0,.70888],91:[.25,.75,.1875,0,.35611],93:[.25,.75,.09972,0,.35611],94:[0,.69444,.06709,0,.59111],95:[.31,.13444,.09811,0,.59111],97:[0,.44444,.09426,0,.59111],98:[0,.69444,.07861,0,.53222],99:[0,.44444,.05222,0,.53222],100:[0,.69444,.10861,0,.59111],101:[0,.44444,.085,0,.53222],102:[.19444,.69444,.21778,0,.4],103:[.19444,.44444,.105,0,.53222],104:[0,.69444,.09426,0,.59111],105:[0,.69326,.11387,0,.35555],106:[.19444,.69326,.1672,0,.35555],107:[0,.69444,.11111,0,.53222],108:[0,.69444,.10861,0,.29666],109:[0,.44444,.09426,0,.94444],110:[0,.44444,.09426,0,.64999],111:[0,.44444,.07861,0,.59111],112:[.19444,.44444,.07861,0,.59111],113:[.19444,.44444,.105,0,.53222],114:[0,.44444,.11111,0,.50167],115:[0,.44444,.08167,0,.48694],116:[0,.63492,.09639,0,.385],117:[0,.44444,.09426,0,.62055],118:[0,.44444,.11111,0,.53222],119:[0,.44444,.11111,0,.76777],120:[0,.44444,.12583,0,.56055],121:[.19444,.44444,.105,0,.56166],122:[0,.44444,.13889,0,.49055],126:[.35,.34444,.11472,0,.59111],160:[0,0,0,0,.25],168:[0,.69444,.11473,0,.59111],176:[0,.69444,0,0,.94888],184:[.17014,0,0,0,.53222],198:[0,.68611,.11431,0,1.02277],216:[.04861,.73472,.09062,0,.88555],223:[.19444,.69444,.09736,0,.665],230:[0,.44444,.085,0,.82666],248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:[0,.44444,.085,0,.82666],567:[.19444,.44444,.04611,0,.385],710:[0,.69444,.06709,0,.59111],711:[0,.63194,.08271,0,.59111],713:[0,.59444,.10444,0,.59111],714:[0,.69444,.08528,0,.59111],715:[0,.69444,0,0,.59111],728:[0,.69444,.10333,0,.59111],729:[0,.69444,.12945,0,.35555],730:[0,.69444,0,0,.94888],732:[0,.69444,.11472,0,.59111],733:[0,.69444,.11472,0,.59111],915:[0,.68611,.12903,0,.69777],916:[0,.68611,0,0,.94444],920:[0,.68611,.09062,0,.88555],923:[0,.68611,0,0,.80666],926:[0,.68611,.15092,0,.76777],928:[0,.68611,.17208,0,.8961],931:[0,.68611,.11431,0,.82666],933:[0,.68611,.10778,0,.88555],934:[0,.68611,.05632,0,.82666],936:[0,.68611,.10778,0,.88555],937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:[0,.69444,.12945,0,.35555],8217:[0,.69444,.12945,0,.35555],8220:[0,.69444,.16772,0,.62055],8221:[0,.69444,.07939,0,.62055]},"Main-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.12417,0,.30667],34:[0,.69444,.06961,0,.51444],35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:[0,.69444,.12417,0,.30667],40:[.25,.75,.16194,0,.40889],41:[.25,.75,.03694,0,.40889],42:[0,.75,.14917,0,.51111],43:[.05667,.56167,.03694,0,.76666],44:[.19444,.10556,0,0,.30667],45:[0,.43056,.02826,0,.35778],46:[0,.10556,0,0,.30667],47:[.25,.75,.16194,0,.51111],48:[0,.64444,.13556,0,.51111],49:[0,.64444,.13556,0,.51111],50:[0,.64444,.13556,0,.51111],51:[0,.64444,.13556,0,.51111],52:[.19444,.64444,.13556,0,.51111],53:[0,.64444,.13556,0,.51111],54:[0,.64444,.13556,0,.51111],55:[.19444,.64444,.13556,0,.51111],56:[0,.64444,.13556,0,.51111],57:[0,.64444,.13556,0,.51111],58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:[0,.69444,.1225,0,.51111],64:[0,.69444,.09597,0,.76666],65:[0,.68333,0,0,.74333],66:[0,.68333,.10257,0,.70389],67:[0,.68333,.14528,0,.71555],68:[0,.68333,.09403,0,.755],69:[0,.68333,.12028,0,.67833],70:[0,.68333,.13305,0,.65277],71:[0,.68333,.08722,0,.77361],72:[0,.68333,.16389,0,.74333],73:[0,.68333,.15806,0,.38555],74:[0,.68333,.14028,0,.525],75:[0,.68333,.14528,0,.76888],76:[0,.68333,0,0,.62722],77:[0,.68333,.16389,0,.89666],78:[0,.68333,.16389,0,.74333],79:[0,.68333,.09403,0,.76666],80:[0,.68333,.10257,0,.67833],81:[.19444,.68333,.09403,0,.76666],82:[0,.68333,.03868,0,.72944],83:[0,.68333,.11972,0,.56222],84:[0,.68333,.13305,0,.71555],85:[0,.68333,.16389,0,.74333],86:[0,.68333,.18361,0,.74333],87:[0,.68333,.18361,0,.99888],88:[0,.68333,.15806,0,.74333],89:[0,.68333,.19383,0,.74333],90:[0,.68333,.14528,0,.61333],91:[.25,.75,.1875,0,.30667],93:[.25,.75,.10528,0,.30667],94:[0,.69444,.06646,0,.51111],95:[.31,.12056,.09208,0,.51111],97:[0,.43056,.07671,0,.51111],98:[0,.69444,.06312,0,.46],99:[0,.43056,.05653,0,.46],100:[0,.69444,.10333,0,.51111],101:[0,.43056,.07514,0,.46],102:[.19444,.69444,.21194,0,.30667],103:[.19444,.43056,.08847,0,.46],104:[0,.69444,.07671,0,.51111],105:[0,.65536,.1019,0,.30667],106:[.19444,.65536,.14467,0,.30667],107:[0,.69444,.10764,0,.46],108:[0,.69444,.10333,0,.25555],109:[0,.43056,.07671,0,.81777],110:[0,.43056,.07671,0,.56222],111:[0,.43056,.06312,0,.51111],112:[.19444,.43056,.06312,0,.51111],113:[.19444,.43056,.08847,0,.46],114:[0,.43056,.10764,0,.42166],115:[0,.43056,.08208,0,.40889],116:[0,.61508,.09486,0,.33222],117:[0,.43056,.07671,0,.53666],118:[0,.43056,.10764,0,.46],119:[0,.43056,.10764,0,.66444],120:[0,.43056,.12042,0,.46389],121:[.19444,.43056,.08847,0,.48555],122:[0,.43056,.12292,0,.40889],126:[.35,.31786,.11585,0,.51111],160:[0,0,0,0,.25],168:[0,.66786,.10474,0,.51111],176:[0,.69444,0,0,.83129],184:[.17014,0,0,0,.46],198:[0,.68333,.12028,0,.88277],216:[.04861,.73194,.09403,0,.76666],223:[.19444,.69444,.10514,0,.53666],230:[0,.43056,.07514,0,.71555],248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:[0,.43056,.07514,0,.71555],710:[0,.69444,.06646,0,.51111],711:[0,.62847,.08295,0,.51111],713:[0,.56167,.10333,0,.51111],714:[0,.69444,.09694,0,.51111],715:[0,.69444,0,0,.51111],728:[0,.69444,.10806,0,.51111],729:[0,.66786,.11752,0,.30667],730:[0,.69444,0,0,.83129],732:[0,.66786,.11585,0,.51111],733:[0,.69444,.1225,0,.51111],915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:[0,.68333,.09403,0,.76666],923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:[0,.68333,.16389,0,.74333],931:[0,.68333,.12028,0,.71555],933:[0,.68333,.11111,0,.76666],934:[0,.68333,.05986,0,.71555],936:[0,.68333,.11111,0,.76666],937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:[0,.69444,.12417,0,.30667],8217:[0,.69444,.12417,0,.30667],8220:[0,.69444,.1685,0,.51444],8221:[0,.69444,.06961,0,.51444],8463:[0,.68889,0,0,.54028]},"Main-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.27778],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.77778],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.64444,0,0,.5],49:[0,.64444,0,0,.5],50:[0,.64444,0,0,.5],51:[0,.64444,0,0,.5],52:[0,.64444,0,0,.5],53:[0,.64444,0,0,.5],54:[0,.64444,0,0,.5],55:[0,.64444,0,0,.5],56:[0,.64444,0,0,.5],57:[0,.64444,0,0,.5],58:[0,.43056,0,0,.27778],59:[.19444,.43056,0,0,.27778],60:[.0391,.5391,0,0,.77778],61:[-.13313,.36687,0,0,.77778],62:[.0391,.5391,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.77778],65:[0,.68333,0,0,.75],66:[0,.68333,0,0,.70834],67:[0,.68333,0,0,.72222],68:[0,.68333,0,0,.76389],69:[0,.68333,0,0,.68056],70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:[0,.68333,0,0,.75],73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:[0,.68333,0,0,.77778],76:[0,.68333,0,0,.625],77:[0,.68333,0,0,.91667],78:[0,.68333,0,0,.75],79:[0,.68333,0,0,.77778],80:[0,.68333,0,0,.68056],81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:[0,.68333,0,0,.72222],85:[0,.68333,0,0,.75],86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:[0,.68333,0,0,.75],89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:[.25,.75,0,0,.27778],92:[.25,.75,0,0,.5],93:[.25,.75,0,0,.27778],94:[0,.69444,0,0,.5],95:[.31,.12056,.02778,0,.5],97:[0,.43056,0,0,.5],98:[0,.69444,0,0,.55556],99:[0,.43056,0,0,.44445],100:[0,.69444,0,0,.55556],101:[0,.43056,0,0,.44445],102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:[0,.69444,0,0,.55556],105:[0,.66786,0,0,.27778],106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:[0,.69444,0,0,.27778],109:[0,.43056,0,0,.83334],110:[0,.43056,0,0,.55556],111:[0,.43056,0,0,.5],112:[.19444,.43056,0,0,.55556],113:[.19444,.43056,0,0,.52778],114:[0,.43056,0,0,.39167],115:[0,.43056,0,0,.39445],116:[0,.61508,0,0,.38889],117:[0,.43056,0,0,.55556],118:[0,.43056,.01389,0,.52778],119:[0,.43056,.01389,0,.72222],120:[0,.43056,0,0,.52778],121:[.19444,.43056,.01389,0,.52778],122:[0,.43056,0,0,.44445],123:[.25,.75,0,0,.5],124:[.25,.75,0,0,.27778],125:[.25,.75,0,0,.5],126:[.35,.31786,0,0,.5],160:[0,0,0,0,.25],163:[0,.69444,0,0,.76909],167:[.19444,.69444,0,0,.44445],168:[0,.66786,0,0,.5],172:[0,.43056,0,0,.66667],176:[0,.69444,0,0,.75],177:[.08333,.58333,0,0,.77778],182:[.19444,.69444,0,0,.61111],184:[.17014,0,0,0,.44445],198:[0,.68333,0,0,.90278],215:[.08333,.58333,0,0,.77778],216:[.04861,.73194,0,0,.77778],223:[0,.69444,0,0,.5],230:[0,.43056,0,0,.72222],247:[.08333,.58333,0,0,.77778],248:[.09722,.52778,0,0,.5],305:[0,.43056,0,0,.27778],338:[0,.68333,0,0,1.01389],339:[0,.43056,0,0,.77778],567:[.19444,.43056,0,0,.30556],710:[0,.69444,0,0,.5],711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.66786,0,0,.27778],730:[0,.69444,0,0,.75],732:[0,.66786,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.68333,0,0,.625],916:[0,.68333,0,0,.83334],920:[0,.68333,0,0,.77778],923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:[0,.68333,0,0,.75],931:[0,.68333,0,0,.72222],933:[0,.68333,0,0,.77778],934:[0,.68333,0,0,.72222],936:[0,.68333,0,0,.77778],937:[0,.68333,0,0,.72222],8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5],8224:[.19444,.69444,0,0,.44445],8225:[.19444,.69444,0,0,.44445],8230:[0,.123,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:[0,.68889,0,0,.54028],8465:[0,.69444,0,0,.72222],8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:[0,.69444,0,0,.72222],8501:[0,.69444,0,0,.61111],8592:[-.13313,.36687,0,0,1],8593:[.19444,.69444,0,0,.5],8594:[-.13313,.36687,0,0,1],8595:[.19444,.69444,0,0,.5],8596:[-.13313,.36687,0,0,1],8597:[.25,.75,0,0,.5],8598:[.19444,.69444,0,0,1],8599:[.19444,.69444,0,0,1],8600:[.19444,.69444,0,0,1],8601:[.19444,.69444,0,0,1],8614:[.011,.511,0,0,1],8617:[.011,.511,0,0,1.126],8618:[.011,.511,0,0,1.126],8636:[-.13313,.36687,0,0,1],8637:[-.13313,.36687,0,0,1],8640:[-.13313,.36687,0,0,1],8641:[-.13313,.36687,0,0,1],8652:[.011,.671,0,0,1],8656:[-.13313,.36687,0,0,1],8657:[.19444,.69444,0,0,.61111],8658:[-.13313,.36687,0,0,1],8659:[.19444,.69444,0,0,.61111],8660:[-.13313,.36687,0,0,1],8661:[.25,.75,0,0,.61111],8704:[0,.69444,0,0,.55556],8706:[0,.69444,.05556,.08334,.5309],8707:[0,.69444,0,0,.55556],8709:[.05556,.75,0,0,.5],8711:[0,.68333,0,0,.83334],8712:[.0391,.5391,0,0,.66667],8715:[.0391,.5391,0,0,.66667],8722:[.08333,.58333,0,0,.77778],8723:[.08333,.58333,0,0,.77778],8725:[.25,.75,0,0,.5],8726:[.25,.75,0,0,.5],8727:[-.03472,.46528,0,0,.5],8728:[-.05555,.44445,0,0,.5],8729:[-.05555,.44445,0,0,.5],8730:[.2,.8,0,0,.83334],8733:[0,.43056,0,0,.77778],8734:[0,.43056,0,0,1],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.27778],8741:[.25,.75,0,0,.5],8743:[0,.55556,0,0,.66667],8744:[0,.55556,0,0,.66667],8745:[0,.55556,0,0,.66667],8746:[0,.55556,0,0,.66667],8747:[.19444,.69444,.11111,0,.41667],8764:[-.13313,.36687,0,0,.77778],8768:[.19444,.69444,0,0,.27778],8771:[-.03625,.46375,0,0,.77778],8773:[-.022,.589,0,0,.778],8776:[-.01688,.48312,0,0,.77778],8781:[-.03625,.46375,0,0,.77778],8784:[-.133,.673,0,0,.778],8801:[-.03625,.46375,0,0,.77778],8804:[.13597,.63597,0,0,.77778],8805:[.13597,.63597,0,0,.77778],8810:[.0391,.5391,0,0,1],8811:[.0391,.5391,0,0,1],8826:[.0391,.5391,0,0,.77778],8827:[.0391,.5391,0,0,.77778],8834:[.0391,.5391,0,0,.77778],8835:[.0391,.5391,0,0,.77778],8838:[.13597,.63597,0,0,.77778],8839:[.13597,.63597,0,0,.77778],8846:[0,.55556,0,0,.66667],8849:[.13597,.63597,0,0,.77778],8850:[.13597,.63597,0,0,.77778],8851:[0,.55556,0,0,.66667],8852:[0,.55556,0,0,.66667],8853:[.08333,.58333,0,0,.77778],8854:[.08333,.58333,0,0,.77778],8855:[.08333,.58333,0,0,.77778],8856:[.08333,.58333,0,0,.77778],8857:[.08333,.58333,0,0,.77778],8866:[0,.69444,0,0,.61111],8867:[0,.69444,0,0,.61111],8868:[0,.69444,0,0,.77778],8869:[0,.69444,0,0,.77778],8872:[.249,.75,0,0,.867],8900:[-.05555,.44445,0,0,.5],8901:[-.05555,.44445,0,0,.27778],8902:[-.03472,.46528,0,0,.5],8904:[.005,.505,0,0,.9],8942:[.03,.903,0,0,.278],8943:[-.19,.313,0,0,1.172],8945:[-.1,.823,0,0,1.282],8968:[.25,.75,0,0,.44445],8969:[.25,.75,0,0,.44445],8970:[.25,.75,0,0,.44445],8971:[.25,.75,0,0,.44445],8994:[-.14236,.35764,0,0,1],8995:[-.14236,.35764,0,0,1],9136:[.244,.744,0,0,.412],9137:[.244,.745,0,0,.412],9651:[.19444,.69444,0,0,.88889],9657:[-.03472,.46528,0,0,.5],9661:[.19444,.69444,0,0,.88889],9667:[-.03472,.46528,0,0,.5],9711:[.19444,.69444,0,0,1],9824:[.12963,.69444,0,0,.77778],9825:[.12963,.69444,0,0,.77778],9826:[.12963,.69444,0,0,.77778],9827:[.12963,.69444,0,0,.77778],9837:[0,.75,0,0,.38889],9838:[.19444,.69444,0,0,.38889],9839:[.19444,.69444,0,0,.38889],10216:[.25,.75,0,0,.38889],10217:[.25,.75,0,0,.38889],10222:[.244,.744,0,0,.412],10223:[.244,.745,0,0,.412],10229:[.011,.511,0,0,1.609],10230:[.011,.511,0,0,1.638],10231:[.011,.511,0,0,1.859],10232:[.024,.525,0,0,1.609],10233:[.024,.525,0,0,1.638],10234:[.024,.525,0,0,1.858],10236:[.011,.511,0,0,1.638],10815:[0,.68333,0,0,.75],10927:[.13597,.63597,0,0,.77778],10928:[.13597,.63597,0,0,.77778],57376:[.19444,.69444,0,0,0]},"Math-BoldItalic":{32:[0,0,0,0,.25],48:[0,.44444,0,0,.575],49:[0,.44444,0,0,.575],50:[0,.44444,0,0,.575],51:[.19444,.44444,0,0,.575],52:[.19444,.44444,0,0,.575],53:[.19444,.44444,0,0,.575],54:[0,.64444,0,0,.575],55:[.19444,.44444,0,0,.575],56:[0,.64444,0,0,.575],57:[.19444,.44444,0,0,.575],65:[0,.68611,0,0,.86944],66:[0,.68611,.04835,0,.8664],67:[0,.68611,.06979,0,.81694],68:[0,.68611,.03194,0,.93812],69:[0,.68611,.05451,0,.81007],70:[0,.68611,.15972,0,.68889],71:[0,.68611,0,0,.88673],72:[0,.68611,.08229,0,.98229],73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:[0,.68611,0,0,.75555],77:[0,.68611,.11424,0,1.14201],78:[0,.68611,.11424,0,.95034],79:[0,.68611,.03194,0,.83666],80:[0,.68611,.15972,0,.72309],81:[.19444,.68611,0,0,.86861],82:[0,.68611,.00421,0,.87235],83:[0,.68611,.05382,0,.69271],84:[0,.68611,.15972,0,.63663],85:[0,.68611,.11424,0,.80027],86:[0,.68611,.25555,0,.67778],87:[0,.68611,.15972,0,1.09305],88:[0,.68611,.07778,0,.94722],89:[0,.68611,.25555,0,.67458],90:[0,.68611,.06979,0,.77257],97:[0,.44444,0,0,.63287],98:[0,.69444,0,0,.52083],99:[0,.44444,0,0,.51342],100:[0,.69444,0,0,.60972],101:[0,.44444,0,0,.55361],102:[.19444,.69444,.11042,0,.56806],103:[.19444,.44444,.03704,0,.5449],104:[0,.69444,0,0,.66759],105:[0,.69326,0,0,.4048],106:[.19444,.69326,.0622,0,.47083],107:[0,.69444,.01852,0,.6037],108:[0,.69444,.0088,0,.34815],109:[0,.44444,0,0,1.0324],110:[0,.44444,0,0,.71296],111:[0,.44444,0,0,.58472],112:[.19444,.44444,0,0,.60092],113:[.19444,.44444,.03704,0,.54213],114:[0,.44444,.03194,0,.5287],115:[0,.44444,0,0,.53125],116:[0,.63492,0,0,.41528],117:[0,.44444,0,0,.68102],118:[0,.44444,.03704,0,.56666],119:[0,.44444,.02778,0,.83148],120:[0,.44444,0,0,.65903],121:[.19444,.44444,.03704,0,.59028],122:[0,.44444,.04213,0,.55509],160:[0,0,0,0,.25],915:[0,.68611,.15972,0,.65694],916:[0,.68611,0,0,.95833],920:[0,.68611,.03194,0,.86722],923:[0,.68611,0,0,.80555],926:[0,.68611,.07458,0,.84125],928:[0,.68611,.08229,0,.98229],931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:[0,.68611,0,0,.76666],936:[0,.68611,.11653,0,.71402],937:[0,.68611,.04835,0,.8789],945:[0,.44444,0,0,.76064],946:[.19444,.69444,.03403,0,.65972],947:[.19444,.44444,.06389,0,.59003],948:[0,.69444,.03819,0,.52222],949:[0,.44444,0,0,.52882],950:[.19444,.69444,.06215,0,.50833],951:[.19444,.44444,.03704,0,.6],952:[0,.69444,.03194,0,.5618],953:[0,.44444,0,0,.41204],954:[0,.44444,0,0,.66759],955:[0,.69444,0,0,.67083],956:[.19444,.44444,0,0,.70787],957:[0,.44444,.06898,0,.57685],958:[.19444,.69444,.03021,0,.50833],959:[0,.44444,0,0,.58472],960:[0,.44444,.03704,0,.68241],961:[.19444,.44444,0,0,.6118],962:[.09722,.44444,.07917,0,.42361],963:[0,.44444,.03704,0,.68588],964:[0,.44444,.13472,0,.52083],965:[0,.44444,.03704,0,.63055],966:[.19444,.44444,0,0,.74722],967:[.19444,.44444,0,0,.71805],968:[.19444,.69444,.03704,0,.75833],969:[0,.44444,.03704,0,.71782],977:[0,.69444,0,0,.69155],981:[.19444,.69444,0,0,.7125],982:[0,.44444,.03194,0,.975],1009:[.19444,.44444,0,0,.6118],1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:[0,0,0,0,.25],48:[0,.43056,0,0,.5],49:[0,.43056,0,0,.5],50:[0,.43056,0,0,.5],51:[.19444,.43056,0,0,.5],52:[.19444,.43056,0,0,.5],53:[.19444,.43056,0,0,.5],54:[0,.64444,0,0,.5],55:[.19444,.43056,0,0,.5],56:[0,.64444,0,0,.5],57:[.19444,.43056,0,0,.5],65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:[0,.68333,.08125,.05556,.83125],73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:[0,.68333,.02778,.08334,.76278],80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:[0,.43056,0,.05556,.48472],112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],160:[0,0,0,0,.25],915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:[0,.68333,.02778,.08334,.76278],923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:[0,.68333,.08125,.05556,.83125],931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:[0,.43056,0,.05556,.48472],960:[0,.43056,.03588,0,.57003],961:[.19444,.43056,0,.08334,.51702],962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:[.19444,.43056,0,.08334,.51702],1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.36667],34:[0,.69444,0,0,.55834],35:[.19444,.69444,0,0,.91667],36:[.05556,.75,0,0,.55],37:[.05556,.75,0,0,1.02912],38:[0,.69444,0,0,.83056],39:[0,.69444,0,0,.30556],40:[.25,.75,0,0,.42778],41:[.25,.75,0,0,.42778],42:[0,.75,0,0,.55],43:[.11667,.61667,0,0,.85556],44:[.10556,.13056,0,0,.30556],45:[0,.45833,0,0,.36667],46:[0,.13056,0,0,.30556],47:[.25,.75,0,0,.55],48:[0,.69444,0,0,.55],49:[0,.69444,0,0,.55],50:[0,.69444,0,0,.55],51:[0,.69444,0,0,.55],52:[0,.69444,0,0,.55],53:[0,.69444,0,0,.55],54:[0,.69444,0,0,.55],55:[0,.69444,0,0,.55],56:[0,.69444,0,0,.55],57:[0,.69444,0,0,.55],58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:[0,.69444,0,0,.51945],64:[0,.69444,0,0,.73334],65:[0,.69444,0,0,.73334],66:[0,.69444,0,0,.73334],67:[0,.69444,0,0,.70278],68:[0,.69444,0,0,.79445],69:[0,.69444,0,0,.64167],70:[0,.69444,0,0,.61111],71:[0,.69444,0,0,.73334],72:[0,.69444,0,0,.79445],73:[0,.69444,0,0,.33056],74:[0,.69444,0,0,.51945],75:[0,.69444,0,0,.76389],76:[0,.69444,0,0,.58056],77:[0,.69444,0,0,.97778],78:[0,.69444,0,0,.79445],79:[0,.69444,0,0,.79445],80:[0,.69444,0,0,.70278],81:[.10556,.69444,0,0,.79445],82:[0,.69444,0,0,.70278],83:[0,.69444,0,0,.61111],84:[0,.69444,0,0,.73334],85:[0,.69444,0,0,.76389],86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:[0,.69444,0,0,.73334],89:[0,.69444,.0275,0,.73334],90:[0,.69444,0,0,.67223],91:[.25,.75,0,0,.34306],93:[.25,.75,0,0,.34306],94:[0,.69444,0,0,.55],95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:[0,.69444,0,0,.56111],99:[0,.45833,0,0,.48889],100:[0,.69444,0,0,.56111],101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:[0,.69444,0,0,.56111],105:[0,.69444,0,0,.25556],106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:[0,.69444,0,0,.25556],109:[0,.45833,0,0,.86667],110:[0,.45833,0,0,.56111],111:[0,.45833,0,0,.55],112:[.19444,.45833,0,0,.56111],113:[.19444,.45833,0,0,.56111],114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:[0,.45833,0,0,.56111],118:[0,.45833,.01528,0,.5],119:[0,.45833,.01528,0,.74445],120:[0,.45833,0,0,.5],121:[.19444,.45833,.01528,0,.5],122:[0,.45833,0,0,.47639],126:[.35,.34444,0,0,.55],160:[0,0,0,0,.25],168:[0,.69444,0,0,.55],176:[0,.69444,0,0,.73334],180:[0,.69444,0,0,.55],184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:[0,.69444,0,0,.55],711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:[0,.69444,0,0,.55],729:[0,.69444,0,0,.30556],730:[0,.69444,0,0,.73334],732:[0,.69444,0,0,.55],733:[0,.69444,0,0,.55],915:[0,.69444,0,0,.58056],916:[0,.69444,0,0,.91667],920:[0,.69444,0,0,.85556],923:[0,.69444,0,0,.67223],926:[0,.69444,0,0,.73334],928:[0,.69444,0,0,.79445],931:[0,.69444,0,0,.79445],933:[0,.69444,0,0,.85556],934:[0,.69444,0,0,.79445],936:[0,.69444,0,0,.85556],937:[0,.69444,0,0,.79445],8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:[0,.69444,0,0,.30556],8217:[0,.69444,0,0,.30556],8220:[0,.69444,0,0,.55834],8221:[0,.69444,0,0,.55834]},"SansSerif-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.05733,0,.31945],34:[0,.69444,.00316,0,.5],35:[.19444,.69444,.05087,0,.83334],36:[.05556,.75,.11156,0,.5],37:[.05556,.75,.03126,0,.83334],38:[0,.69444,.03058,0,.75834],39:[0,.69444,.07816,0,.27778],40:[.25,.75,.13164,0,.38889],41:[.25,.75,.02536,0,.38889],42:[0,.75,.11775,0,.5],43:[.08333,.58333,.02536,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,.01946,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,.13164,0,.5],48:[0,.65556,.11156,0,.5],49:[0,.65556,.11156,0,.5],50:[0,.65556,.11156,0,.5],51:[0,.65556,.11156,0,.5],52:[0,.65556,.11156,0,.5],53:[0,.65556,.11156,0,.5],54:[0,.65556,.11156,0,.5],55:[0,.65556,.11156,0,.5],56:[0,.65556,.11156,0,.5],57:[0,.65556,.11156,0,.5],58:[0,.44444,.02502,0,.27778],59:[.125,.44444,.02502,0,.27778],61:[-.13,.37,.05087,0,.77778],63:[0,.69444,.11809,0,.47222],64:[0,.69444,.07555,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,.08293,0,.66667],67:[0,.69444,.11983,0,.63889],68:[0,.69444,.07555,0,.72223],69:[0,.69444,.11983,0,.59722],70:[0,.69444,.13372,0,.56945],71:[0,.69444,.11983,0,.66667],72:[0,.69444,.08094,0,.70834],73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,.08094,0,.875],78:[0,.69444,.08094,0,.70834],79:[0,.69444,.07555,0,.73611],80:[0,.69444,.08293,0,.63889],81:[.125,.69444,.07555,0,.73611],82:[0,.69444,.08293,0,.64584],83:[0,.69444,.09205,0,.55556],84:[0,.69444,.13372,0,.68056],85:[0,.69444,.08094,0,.6875],86:[0,.69444,.1615,0,.66667],87:[0,.69444,.1615,0,.94445],88:[0,.69444,.13372,0,.66667],89:[0,.69444,.17261,0,.66667],90:[0,.69444,.11983,0,.61111],91:[.25,.75,.15942,0,.28889],93:[.25,.75,.08719,0,.28889],94:[0,.69444,.0799,0,.5],95:[.35,.09444,.08616,0,.5],97:[0,.44444,.00981,0,.48056],98:[0,.69444,.03057,0,.51667],99:[0,.44444,.08336,0,.44445],100:[0,.69444,.09483,0,.51667],101:[0,.44444,.06778,0,.44445],102:[0,.69444,.21705,0,.30556],103:[.19444,.44444,.10836,0,.5],104:[0,.69444,.01778,0,.51667],105:[0,.67937,.09718,0,.23889],106:[.19444,.67937,.09162,0,.26667],107:[0,.69444,.08336,0,.48889],108:[0,.69444,.09483,0,.23889],109:[0,.44444,.01778,0,.79445],110:[0,.44444,.01778,0,.51667],111:[0,.44444,.06613,0,.5],112:[.19444,.44444,.0389,0,.51667],113:[.19444,.44444,.04169,0,.51667],114:[0,.44444,.10836,0,.34167],115:[0,.44444,.0778,0,.38333],116:[0,.57143,.07225,0,.36111],117:[0,.44444,.04169,0,.51667],118:[0,.44444,.10836,0,.46111],119:[0,.44444,.10836,0,.68334],120:[0,.44444,.09169,0,.46111],121:[.19444,.44444,.10836,0,.46111],122:[0,.44444,.08752,0,.43472],126:[.35,.32659,.08826,0,.5],160:[0,0,0,0,.25],168:[0,.67937,.06385,0,.5],176:[0,.69444,0,0,.73752],184:[.17014,0,0,0,.44445],305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:[0,.69444,.0799,0,.5],711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:[0,.69444,.09205,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:[0,.69444,0,0,.73752],732:[0,.67659,.08826,0,.5],733:[0,.69444,.09205,0,.5],915:[0,.69444,.13372,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,.07555,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,.12816,0,.66667],928:[0,.69444,.08094,0,.70834],931:[0,.69444,.11983,0,.72222],933:[0,.69444,.09031,0,.77778],934:[0,.69444,.04603,0,.72222],936:[0,.69444,.09031,0,.77778],937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:[0,.69444,.07816,0,.27778],8217:[0,.69444,.07816,0,.27778],8220:[0,.69444,.14205,0,.5],8221:[0,.69444,.00316,0,.5]},"SansSerif-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.31945],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.75834],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,0,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.65556,0,0,.5],49:[0,.65556,0,0,.5],50:[0,.65556,0,0,.5],51:[0,.65556,0,0,.5],52:[0,.65556,0,0,.5],53:[0,.65556,0,0,.5],54:[0,.65556,0,0,.5],55:[0,.65556,0,0,.5],56:[0,.65556,0,0,.5],57:[0,.65556,0,0,.5],58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,0,0,.66667],67:[0,.69444,0,0,.63889],68:[0,.69444,0,0,.72223],69:[0,.69444,0,0,.59722],70:[0,.69444,0,0,.56945],71:[0,.69444,0,0,.66667],72:[0,.69444,0,0,.70834],73:[0,.69444,0,0,.27778],74:[0,.69444,0,0,.47222],75:[0,.69444,0,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,0,0,.875],78:[0,.69444,0,0,.70834],79:[0,.69444,0,0,.73611],80:[0,.69444,0,0,.63889],81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:[0,.69444,0,0,.55556],84:[0,.69444,0,0,.68056],85:[0,.69444,0,0,.6875],86:[0,.69444,.01389,0,.66667],87:[0,.69444,.01389,0,.94445],88:[0,.69444,0,0,.66667],89:[0,.69444,.025,0,.66667],90:[0,.69444,0,0,.61111],91:[.25,.75,0,0,.28889],93:[.25,.75,0,0,.28889],94:[0,.69444,0,0,.5],95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:[0,.69444,0,0,.51667],99:[0,.44444,0,0,.44445],100:[0,.69444,0,0,.51667],101:[0,.44444,0,0,.44445],102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:[0,.69444,0,0,.51667],105:[0,.67937,0,0,.23889],106:[.19444,.67937,0,0,.26667],107:[0,.69444,0,0,.48889],108:[0,.69444,0,0,.23889],109:[0,.44444,0,0,.79445],110:[0,.44444,0,0,.51667],111:[0,.44444,0,0,.5],112:[.19444,.44444,0,0,.51667],113:[.19444,.44444,0,0,.51667],114:[0,.44444,.01389,0,.34167],115:[0,.44444,0,0,.38333],116:[0,.57143,0,0,.36111],117:[0,.44444,0,0,.51667],118:[0,.44444,.01389,0,.46111],119:[0,.44444,.01389,0,.68334],120:[0,.44444,0,0,.46111],121:[.19444,.44444,.01389,0,.46111],122:[0,.44444,0,0,.43472],126:[.35,.32659,0,0,.5],160:[0,0,0,0,.25],168:[0,.67937,0,0,.5],176:[0,.69444,0,0,.66667],184:[.17014,0,0,0,.44445],305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:[0,.69444,0,0,.5],711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.67937,0,0,.27778],730:[0,.69444,0,0,.66667],732:[0,.67659,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.69444,0,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,0,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,0,0,.66667],928:[0,.69444,0,0,.70834],931:[0,.69444,0,0,.72222],933:[0,.69444,0,0,.77778],934:[0,.69444,0,0,.72222],936:[0,.69444,0,0,.77778],937:[0,.69444,0,0,.72222],8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5]},"Script-Regular":{32:[0,0,0,0,.25],65:[0,.7,.22925,0,.80253],66:[0,.7,.04087,0,.90757],67:[0,.7,.1689,0,.66619],68:[0,.7,.09371,0,.77443],69:[0,.7,.18583,0,.56162],70:[0,.7,.13634,0,.89544],71:[0,.7,.17322,0,.60961],72:[0,.7,.29694,0,.96919],73:[0,.7,.19189,0,.80907],74:[.27778,.7,.19189,0,1.05159],75:[0,.7,.31259,0,.91364],76:[0,.7,.19189,0,.87373],77:[0,.7,.15981,0,1.08031],78:[0,.7,.3525,0,.9015],79:[0,.7,.08078,0,.73787],80:[0,.7,.08078,0,1.01262],81:[0,.7,.03305,0,.88282],82:[0,.7,.06259,0,.85],83:[0,.7,.19189,0,.86767],84:[0,.7,.29087,0,.74697],85:[0,.7,.25815,0,.79996],86:[0,.7,.27523,0,.62204],87:[0,.7,.27523,0,.80532],88:[0,.7,.26006,0,.94445],89:[0,.7,.2939,0,.70961],90:[0,.7,.24037,0,.8212],160:[0,0,0,0,.25]},"Size1-Regular":{32:[0,0,0,0,.25],40:[.35001,.85,0,0,.45834],41:[.35001,.85,0,0,.45834],47:[.35001,.85,0,0,.57778],91:[.35001,.85,0,0,.41667],92:[.35001,.85,0,0,.57778],93:[.35001,.85,0,0,.41667],123:[.35001,.85,0,0,.58334],125:[.35001,.85,0,0,.58334],160:[0,0,0,0,.25],710:[0,.72222,0,0,.55556],732:[0,.72222,0,0,.55556],770:[0,.72222,0,0,.55556],771:[0,.72222,0,0,.55556],8214:[-99e-5,.601,0,0,.77778],8593:[1e-5,.6,0,0,.66667],8595:[1e-5,.6,0,0,.66667],8657:[1e-5,.6,0,0,.77778],8659:[1e-5,.6,0,0,.77778],8719:[.25001,.75,0,0,.94445],8720:[.25001,.75,0,0,.94445],8721:[.25001,.75,0,0,1.05556],8730:[.35001,.85,0,0,1],8739:[-.00599,.606,0,0,.33333],8741:[-.00599,.606,0,0,.55556],8747:[.30612,.805,.19445,0,.47222],8748:[.306,.805,.19445,0,.47222],8749:[.306,.805,.19445,0,.47222],8750:[.30612,.805,.19445,0,.47222],8896:[.25001,.75,0,0,.83334],8897:[.25001,.75,0,0,.83334],8898:[.25001,.75,0,0,.83334],8899:[.25001,.75,0,0,.83334],8968:[.35001,.85,0,0,.47222],8969:[.35001,.85,0,0,.47222],8970:[.35001,.85,0,0,.47222],8971:[.35001,.85,0,0,.47222],9168:[-99e-5,.601,0,0,.66667],10216:[.35001,.85,0,0,.47222],10217:[.35001,.85,0,0,.47222],10752:[.25001,.75,0,0,1.11111],10753:[.25001,.75,0,0,1.11111],10754:[.25001,.75,0,0,1.11111],10756:[.25001,.75,0,0,.83334],10758:[.25001,.75,0,0,.83334]},"Size2-Regular":{32:[0,0,0,0,.25],40:[.65002,1.15,0,0,.59722],41:[.65002,1.15,0,0,.59722],47:[.65002,1.15,0,0,.81111],91:[.65002,1.15,0,0,.47222],92:[.65002,1.15,0,0,.81111],93:[.65002,1.15,0,0,.47222],123:[.65002,1.15,0,0,.66667],125:[.65002,1.15,0,0,.66667],160:[0,0,0,0,.25],710:[0,.75,0,0,1],732:[0,.75,0,0,1],770:[0,.75,0,0,1],771:[0,.75,0,0,1],8719:[.55001,1.05,0,0,1.27778],8720:[.55001,1.05,0,0,1.27778],8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:[.86225,1.36,.44445,0,.55556],8748:[.862,1.36,.44445,0,.55556],8749:[.862,1.36,.44445,0,.55556],8750:[.86225,1.36,.44445,0,.55556],8896:[.55001,1.05,0,0,1.11111],8897:[.55001,1.05,0,0,1.11111],8898:[.55001,1.05,0,0,1.11111],8899:[.55001,1.05,0,0,1.11111],8968:[.65002,1.15,0,0,.52778],8969:[.65002,1.15,0,0,.52778],8970:[.65002,1.15,0,0,.52778],8971:[.65002,1.15,0,0,.52778],10216:[.65002,1.15,0,0,.61111],10217:[.65002,1.15,0,0,.61111],10752:[.55001,1.05,0,0,1.51112],10753:[.55001,1.05,0,0,1.51112],10754:[.55001,1.05,0,0,1.51112],10756:[.55001,1.05,0,0,1.11111],10758:[.55001,1.05,0,0,1.11111]},"Size3-Regular":{32:[0,0,0,0,.25],40:[.95003,1.45,0,0,.73611],41:[.95003,1.45,0,0,.73611],47:[.95003,1.45,0,0,1.04445],91:[.95003,1.45,0,0,.52778],92:[.95003,1.45,0,0,1.04445],93:[.95003,1.45,0,0,.52778],123:[.95003,1.45,0,0,.75],125:[.95003,1.45,0,0,.75],160:[0,0,0,0,.25],710:[0,.75,0,0,1.44445],732:[0,.75,0,0,1.44445],770:[0,.75,0,0,1.44445],771:[0,.75,0,0,1.44445],8730:[.95003,1.45,0,0,1],8968:[.95003,1.45,0,0,.58334],8969:[.95003,1.45,0,0,.58334],8970:[.95003,1.45,0,0,.58334],8971:[.95003,1.45,0,0,.58334],10216:[.95003,1.45,0,0,.75],10217:[.95003,1.45,0,0,.75]},"Size4-Regular":{32:[0,0,0,0,.25],40:[1.25003,1.75,0,0,.79167],41:[1.25003,1.75,0,0,.79167],47:[1.25003,1.75,0,0,1.27778],91:[1.25003,1.75,0,0,.58334],92:[1.25003,1.75,0,0,1.27778],93:[1.25003,1.75,0,0,.58334],123:[1.25003,1.75,0,0,.80556],125:[1.25003,1.75,0,0,.80556],160:[0,0,0,0,.25],710:[0,.825,0,0,1.8889],732:[0,.825,0,0,1.8889],770:[0,.825,0,0,1.8889],771:[0,.825,0,0,1.8889],8730:[1.25003,1.75,0,0,1],8968:[1.25003,1.75,0,0,.63889],8969:[1.25003,1.75,0,0,.63889],8970:[1.25003,1.75,0,0,.63889],8971:[1.25003,1.75,0,0,.63889],9115:[.64502,1.155,0,0,.875],9116:[1e-5,.6,0,0,.875],9117:[.64502,1.155,0,0,.875],9118:[.64502,1.155,0,0,.875],9119:[1e-5,.6,0,0,.875],9120:[.64502,1.155,0,0,.875],9121:[.64502,1.155,0,0,.66667],9122:[-99e-5,.601,0,0,.66667],9123:[.64502,1.155,0,0,.66667],9124:[.64502,1.155,0,0,.66667],9125:[-99e-5,.601,0,0,.66667],9126:[.64502,1.155,0,0,.66667],9127:[1e-5,.9,0,0,.88889],9128:[.65002,1.15,0,0,.88889],9129:[.90001,0,0,0,.88889],9130:[0,.3,0,0,.88889],9131:[1e-5,.9,0,0,.88889],9132:[.65002,1.15,0,0,.88889],9133:[.90001,0,0,0,.88889],9143:[.88502,.915,0,0,1.05556],10216:[1.25003,1.75,0,0,.80556],10217:[1.25003,1.75,0,0,.80556],57344:[-.00499,.605,0,0,1.05556],57345:[-.00499,.605,0,0,1.05556],57680:[0,.12,0,0,.45],57681:[0,.12,0,0,.45],57682:[0,.12,0,0,.45],57683:[0,.12,0,0,.45]},"Typewriter-Regular":{32:[0,0,0,0,.525],33:[0,.61111,0,0,.525],34:[0,.61111,0,0,.525],35:[0,.61111,0,0,.525],36:[.08333,.69444,0,0,.525],37:[.08333,.69444,0,0,.525],38:[0,.61111,0,0,.525],39:[0,.61111,0,0,.525],40:[.08333,.69444,0,0,.525],41:[.08333,.69444,0,0,.525],42:[0,.52083,0,0,.525],43:[-.08056,.53055,0,0,.525],44:[.13889,.125,0,0,.525],45:[-.08056,.53055,0,0,.525],46:[0,.125,0,0,.525],47:[.08333,.69444,0,0,.525],48:[0,.61111,0,0,.525],49:[0,.61111,0,0,.525],50:[0,.61111,0,0,.525],51:[0,.61111,0,0,.525],52:[0,.61111,0,0,.525],53:[0,.61111,0,0,.525],54:[0,.61111,0,0,.525],55:[0,.61111,0,0,.525],56:[0,.61111,0,0,.525],57:[0,.61111,0,0,.525],58:[0,.43056,0,0,.525],59:[.13889,.43056,0,0,.525],60:[-.05556,.55556,0,0,.525],61:[-.19549,.41562,0,0,.525],62:[-.05556,.55556,0,0,.525],63:[0,.61111,0,0,.525],64:[0,.61111,0,0,.525],65:[0,.61111,0,0,.525],66:[0,.61111,0,0,.525],67:[0,.61111,0,0,.525],68:[0,.61111,0,0,.525],69:[0,.61111,0,0,.525],70:[0,.61111,0,0,.525],71:[0,.61111,0,0,.525],72:[0,.61111,0,0,.525],73:[0,.61111,0,0,.525],74:[0,.61111,0,0,.525],75:[0,.61111,0,0,.525],76:[0,.61111,0,0,.525],77:[0,.61111,0,0,.525],78:[0,.61111,0,0,.525],79:[0,.61111,0,0,.525],80:[0,.61111,0,0,.525],81:[.13889,.61111,0,0,.525],82:[0,.61111,0,0,.525],83:[0,.61111,0,0,.525],84:[0,.61111,0,0,.525],85:[0,.61111,0,0,.525],86:[0,.61111,0,0,.525],87:[0,.61111,0,0,.525],88:[0,.61111,0,0,.525],89:[0,.61111,0,0,.525],90:[0,.61111,0,0,.525],91:[.08333,.69444,0,0,.525],92:[.08333,.69444,0,0,.525],93:[.08333,.69444,0,0,.525],94:[0,.61111,0,0,.525],95:[.09514,0,0,0,.525],96:[0,.61111,0,0,.525],97:[0,.43056,0,0,.525],98:[0,.61111,0,0,.525],99:[0,.43056,0,0,.525],100:[0,.61111,0,0,.525],101:[0,.43056,0,0,.525],102:[0,.61111,0,0,.525],103:[.22222,.43056,0,0,.525],104:[0,.61111,0,0,.525],105:[0,.61111,0,0,.525],106:[.22222,.61111,0,0,.525],107:[0,.61111,0,0,.525],108:[0,.61111,0,0,.525],109:[0,.43056,0,0,.525],110:[0,.43056,0,0,.525],111:[0,.43056,0,0,.525],112:[.22222,.43056,0,0,.525],113:[.22222,.43056,0,0,.525],114:[0,.43056,0,0,.525],115:[0,.43056,0,0,.525],116:[0,.55358,0,0,.525],117:[0,.43056,0,0,.525],118:[0,.43056,0,0,.525],119:[0,.43056,0,0,.525],120:[0,.43056,0,0,.525],121:[.22222,.43056,0,0,.525],122:[0,.43056,0,0,.525],123:[.08333,.69444,0,0,.525],124:[.08333,.69444,0,0,.525],125:[.08333,.69444,0,0,.525],126:[0,.61111,0,0,.525],127:[0,.61111,0,0,.525],160:[0,0,0,0,.525],176:[0,.61111,0,0,.525],184:[.19445,0,0,0,.525],305:[0,.43056,0,0,.525],567:[.22222,.43056,0,0,.525],711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:[0,.61111,0,0,.525],715:[0,.61111,0,0,.525],728:[0,.61111,0,0,.525],730:[0,.61111,0,0,.525],770:[0,.61111,0,0,.525],771:[0,.61111,0,0,.525],776:[0,.61111,0,0,.525],915:[0,.61111,0,0,.525],916:[0,.61111,0,0,.525],920:[0,.61111,0,0,.525],923:[0,.61111,0,0,.525],926:[0,.61111,0,0,.525],928:[0,.61111,0,0,.525],931:[0,.61111,0,0,.525],933:[0,.61111,0,0,.525],934:[0,.61111,0,0,.525],936:[0,.61111,0,0,.525],937:[0,.61111,0,0,.525],8216:[0,.61111,0,0,.525],8217:[0,.61111,0,0,.525],8242:[0,.61111,0,0,.525],9251:[.11111,.21944,0,0,.525]}}
255;const Ue={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[.431,.431,.431],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.677,.732,.925],num2:[.394,.384,.387],num3:[.444,.471,.504],denom1:[.686,.752,1.025],denom2:[.345,.344,.532],sup1:[.413,.503,.504],sup2:[.363,.431,.404],sup3:[.289,.286,.294],sub1:[.15,.143,.2],sub2:[.247,.286,.4],supDrop:[.386,.353,.494],subDrop:[.05,.071,.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[.25,.25,.25],defaultRuleThickness:[.04,.049,.049],bigOpSpacing1:[.111,.111,.111],bigOpSpacing2:[.166,.166,.166],bigOpSpacing3:[.2,.2,.2],bigOpSpacing4:[.6,.611,.611],bigOpSpacing5:[.1,.143,.143],sqrtRuleThickness:[.04,.04,.04],ptPerEm:[10,10,10],doubleRuleSep:[.2,.2,.2],arrayRuleWidth:[.04,.04,.04],fboxsep:[.3,.3,.3],fboxrule:[.04,.04,.04]},vt={Ã
:"A",Ã:"D",Ã:"o",Ã¥:"a",ð:"d",þ:"o",Ð:"A",Ð:"B",Ð:"B",Ð:"F",Ð:"A",Ð:"E",Ð:"K",Ð:"3",Ð:"N",Ð:"N",Ð:"K",Ð:"N",Ð:"M",Ð:"H",Ð:"O",Ð:"N",Ð :"P",С:"C",Т:"T",У:"y",Ф:"O",Ð¥:"X",Ц:"U",Ч:"h",Ш:"W",Щ:"W",Ъ:"B",Ы:"X",Ь:"B",Ð:"3",Ю:"X",Я:"R",а:"a",б:"b",в:"a",г:"r",д:"y",е:"e",ж:"m",з:"e",и:"n",й:"n",к:"n",л:"n",м:"m",н:"n",о:"o",п:"n",Ñ:"p",Ñ:"c",Ñ:"o",Ñ:"y",Ñ:"b",Ñ
:"x",Ñ:"n",Ñ:"n",Ñ:"w",Ñ:"w",Ñ:"a",Ñ:"m",Ñ:"a",Ñ:"e",Ñ:"m",Ñ:"r"};function Ct(a,r){$e[a]=r}function Tt(a,r,i){if(!$e[r])throw new Error("Font metrics not found for font: "+r+".");let o=a.charCodeAt(0),l=$e[r][o];if(!l&&a[0]in vt&&(o=vt[a[0]].charCodeAt(0),l=$e[r][o]),!l&&i==="text"&&pt(o)&&(l=$e[r][77]),l)return{depth:l[0],height:l[1],italic:l[2],skew:l[3],width:l[4]}}const _e={};function It(a){let r;if(a>=5?r=0:a>=3?r=1:r=2,!_e[r]){const i=_e[r]={cssEmPerMu:Ue.quad[r]/18};for(const o in Ue)Ue.hasOwnProperty(o)&&(i[o]=Ue[o][r])}return _e[r]}const qt=[[1,1,1],[2,1,1],[3,1,1],[4,2,1],[5,2,1],[6,3,1],[7,4,2],[8,6,3],[9,7,6],[10,8,7],[11,10,9]],Ke=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],Qe=function(a,r){return r.size<2?a:qt[a-1][r.size-1]};class yt{constructor(r){this.style=void 0,this.color=void 0,this.size=void 0,this.textSize=void 0,this.phantom=void 0,this.font=void 0,this.fontFamily=void 0,this.fontWeight=void 0,this.fontShape=void 0,this.sizeMultiplier=void 0,this.maxSize=void 0,this.minRuleThickness=void 0,this._fontMetrics=void 0,this.style=r.style,this.color=r.color,this.size=r.size||yt.BASESIZE,this.textSize=r.textSize||this.size,this.phantom=!!r.phantom,this.font=r.font||"",this.fontFamily=r.fontFamily||"",this.fontWeight=r.fontWeight||"",this.fontShape=r.fontShape||"",this.sizeMultiplier=Ke[this.size-1],this.maxSize=r.maxSize,this.minRuleThickness=r.minRuleThickness,this._fontMetrics=void 0}extend(r){const i={style:this.style,size:this.size,textSize:this.textSize,color:this.color,ph
255antom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};for(const o in r)r.hasOwnProperty(o)&&(i[o]=r[o]);return new yt(i)}havingStyle(r){return this.style===r?this:this.extend({style:r,size:Qe(this.textSize,r)})}havingCrampedStyle(){return this.havingStyle(this.style.cramp())}havingSize(r){return this.size===r&&this.textSize===r?this:this.extend({style:this.style.text(),size:r,textSize:r,sizeMultiplier:Ke[r-1]})}havingBaseStyle(r){r=r||this.style.text();const i=Qe(yt.BASESIZE,r);return this.size===i&&this.textSize===yt.BASESIZE&&this.style===r?this:this.extend({style:r,size:i})}havingBaseSizing(){let r;switch(this.style.id){case 4:case 5:r=3;break;case 6:case 7:r=1;break;default:r=6}return this.extend({style:this.style.text(),size:r})}withColor(r){return this.extend({color:r})}withPhantom(){return this.extend({phantom:!0})}withFont(r){return this.extend({font:r})}withTextFontFamily(r){return this.extend({fontFamily:r,font:""})}withTextFontWeight(r){return this.extend({fontWeight:r,font:""})}withTextFontShape(r){return this.extend({fontShape:r,font:""})}sizingClasses(r){return r.size!==this.size?["sizing","reset-size"+r.size,"size"+this.size]:[]}baseSizingClasses(){return this.size!==yt.BASESIZE?["sizing","reset-size"+this.size,"size"+yt.BASESIZE]:[]}fontMetrics(){return this._fontMetrics||(this._fontMetrics=It(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}}yt.BASESIZE=6;var Bt=yt;const Mt={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:803/800,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:803/800},ur={ex:!0,em:!0,mu:!0},Lt=function(a){return typeof a!="string"&&(a=a.unit),a in Mt||a in ur||a==="ex"},tt=function(a,r){let i;if(a.unit in Mt)i=Mt[a.unit]/r.fontMetrics().ptPerEm/r.sizeMultiplier;else if(a.unit==="mu")i=r.fontMetrics().cssEmPerMu;else{let o;if(r.style.isTight()?o=r.havingStyle(r.style.text()):o=r,a.unit==="ex")i=o.fontMetrics().xHeight;else if(a.unit==="em")i=o.fontMetrics().quad;else throw new f("Invalid unit: '"+a.unit+"'");o!==r&&(i*=o.sizeMultiplier/r.sizeMultiplier)}return Math.min(a.number*i,r.maxSize)},re=function(a){return+a.toFixed(4)+"em"},At=function(a){return a.filter(r=>r).join(" ")},y0=function(a,r,i){if(this.classes=a||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=i||{},r){r.style.isTight()&&this.classes.push("mtight");const o=r.getColor();o&&(this.style.color=o)}},w0=function(a){const r=document.createElement(a);r.className=At(this.classes);for(const i in this.style)this.style.hasOwnProperty(i)&&(r.style[i]=this.style[i]);for(const i in this.attributes)this.attributes.hasOwnProperty(i)&&r.setAttribute(i,this.attributes[i]);for(let i=0;i<this.children.length;i++)r.appendChild(this.children[i].toNode());return r},vn=/[\s"'>/=\x00-\x1f]/,C0=function(a){let r="<"+a;this.classes.length&&(r+=' class="'+p.escape(At(this.classes))+'"');let i="";for(const o in this.style)this.style.hasOwnProperty(o)&&(i+=p.hyphenate(o)+":"+this.style[o]+";");i&&(r+=' style="'+p.escape(i)+'"');for(const o in this.attributes)if(this.attributes.hasOwnProperty(o)){if(vn.test(o))throw new f("Invalid attribute name '"+o+"'");r+=" "+o+'="'+p.escape(this.attributes[o])+'"'}r+=">";for(let o=0;o<this.children.length;o++)r+=this.children[o].toMarkup();return r+="</"+a+">",r};class Fr{constructor(r,i,o,l){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.width=void 0,this.maxFontSize=void 0,this.style=void 0,y0.call(this,r,o,l),this.children=i||[]}setAttribute(r,i){this.attributes[r]=i}hasClass(r){return this.classes.includes(r)}toNode(){return w0.call(this,"span")}toMarkup(){return C0.call(this,"span")}}class Zr{constructor(r,i,o,l){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,y0.call(this,i,l),this.children=o||[],this.setAttribute("href",r)}setAttribute(r,i){this.attributes[r]=i}hasClass(r){return this.classes.includes(r)}toNode(){return w0.call(this,"a")}
vendor: 8,540 bytes, line 255
255toMarkup(){return C0.call(this,"a")}}class qo{constructor(r,i,o){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=i,this.src=r,this.classes=["mord"],this.style=o}hasClass(r){return this.classes.includes(r)}toNode(){const r=document.createElement("img");r.src=this.src,r.alt=this.alt,r.className="mord";for(const i in this.style)this.style.hasOwnProperty(i)&&(r.style[i]=this.style[i]);return r}toMarkup(){let r='<img src="'+p.escape(this.src)+'"'+(' alt="'+p.escape(this.alt)+'"'),i="";for(const o in this.style)this.style.hasOwnProperty(o)&&(i+=p.hyphenate(o)+":"+this.style[o]+";");return i&&(r+=' style="'+p.escape(i)+'"'),r+="'/>",r}}const Lo={î:"ıÌ",ï:"ıÌ",Ã:"ıÌ",ì:"ıÌ"};class Vt{constructor(r,i,o,l,h,g,y,B){this.text=void 0,this.height=void 0,this.depth=void 0,this.italic=void 0,this.skew=void 0,this.width=void 0,this.maxFontSize=void 0,this.classes=void 0,this.style=void 0,this.text=r,this.height=i||0,this.depth=o||0,this.italic=l||0,this.skew=h||0,this.width=g||0,this.classes=y||[],this.style=B||{},this.maxFontSize=0;const k=Ve(this.text.charCodeAt(0));k&&this.classes.push(k+"_fallback"),/[îïÃì]/.test(this.text)&&(this.text=Lo[this.text])}hasClass(r){return this.classes.includes(r)}toNode(){const r=document.createTextNode(this.text);let i=null;this.italic>0&&(i=document.createElement("span"),i.style.marginRight=re(this.italic)),this.classes.length>0&&(i=i||document.createElement("span"),i.className=At(this.classes));for(const o in this.style)this.style.hasOwnProperty(o)&&(i=i||document.createElement("span"),i.style[o]=this.style[o]);return i?(i.appendChild(r),i):r}toMarkup(){let r=!1,i="<span";this.classes.length&&(r=!0,i+=' class="',i+=p.escape(At(this.classes)),i+='"');let o="";this.italic>0&&(o+="margin-right:"+this.italic+"em;");for(const h in this.style)this.style.hasOwnProperty(h)&&(o+=p.hyphenate(h)+":"+this.style[h]+";");o&&(r=!0,i+=' style="'+p.escape(o)+'"');const l=p.escape(this.text);return r?(i+=">",i+=l,i+="</span>",i):l}}class or{constructor(r,i){this.children=void 0,this.attributes=void 0,this.children=r||[],this.attributes=i||{}}toNode(){const i=document.createElementNS("http://www.w3.org/2000/svg","svg");for(const o in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,o)&&i.setAttribute(o,this.attributes[o]);for(let o=0;o<this.children.length;o++)i.appendChild(this.children[o].toNode());return i}toMarkup(){let r='<svg xmlns="http://www.w3.org/2000/svg"';for(const i in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,i)&&(r+=" "+i+'="'+p.escape(this.attributes[i])+'"');r+=">";for(let i=0;i<this.children.length;i++)r+=this.children[i].toMarkup();return r+="</svg>",r}}class vr{constructor(r,i){this.pathName=void 0,this.alternate=void 0,this.pathName=r,this.alternate=i}toNode(){const i=document.createElementNS("http://www.w3.org/2000/svg","path");return this.alternate?i.setAttribute("d",this.alternate):i.setAttribute("d",Ze[this.pathName]),i}toMarkup(){return this.alternate?'<path d="'+p.escape(this.alternate)+'"/>':'<path d="'+p.escape(Ze[this.pathName])+'"/>'}}class bn{constructor(r){this.attributes=void 0,this.attributes=r||{}}toNode(){const i=document.createElementNS("http://www.w3.org/2000/svg","line");for(const o in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,o)&&i.setAttribute(o,this.attributes[o]);return i}toMarkup(){let r="<line";for(const i in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,i)&&(r+=" "+i+'="'+p.escape(this.attributes[i])+'"');return r+="/>",r}}function Za(a){if(a instanceof Vt)return a;throw new Error("Expected symbolNode but got "+String(a)+".")}function jo(a){if(a instanceof Fr)return a;throw new Error("Expected span<HtmlDomNode> but got "+String(a)+".")}const Ho={bin:1,close:1,inner:1,open:1,punct:1,rel:1},Wo={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},x0={math:{},text:{}};var lt=x0;function c(a,r,i,o,l,h){x0[a][l]={font:r,group:i,replace:o},h&&o&&(x0[a][o]=x0[a][l])}const d="math",_="text",v="main",E="ams",st="accent-token",ve="bin",Et="close",Hr="inner",xe="mathord",gt="op-token",jt="open",B0="punct",S="rel",lr="spacing",z="textord";c(d,v,S,"â¡","\\equiv",!0),c(d,v,S,"âº","\\prec",!0),c(d,v,S,"â»","\\succ",!0),c(d,v,S,"â¼","\\sim",!0),c(d,v,S,"â¥","\\perp"),c(d,v,S,"⪯","\\preceq",!0),c(d,v,S,"⪰","\\succeq",!0),c(d,v,S,"â","\\simeq",!0),c(d,v,S,"â£","\\mid",!0),c(d,v,S,"âª","\\ll",!0),c(d,v,S,"â«","\\gg",!0),c(d,v,S,"â","\\asymp",!0),c(d,v,S,"â¥","\\parallel"),c(d,v,S,"â","\\bowtie",!0),c(d,v,S,"â£","\\smile",!0),c(d,v,S,"â","\\sqsubseteq",!0),c(d,v,S,"â","\\sqsupseteq",!0),c(d,v,S,"â","\\doteq",!0),c(d,v,S,"â¢","\\frown",!0),c(d,v,S,"â","\\ni",!0),c(d,v,S,"â","\\propto",!0),c(d,v,S,"â¢","\\vdash",!0),c(d,v,S,"â£","\\dashv",!0),c(d,v,S,"â","\\owns"),c(d,v,B0,".","\\ldotp"),c(d,v,B0,"â
","\\cdotp"),c(d,v,z,"#","\\#"),c(_,v,z,"#","\\#"),c(d,v,z,"&","\\&"),c(_,v,z,"&","\\&"),c(d,v,z,"âµ","\\aleph",!0),c(d,v,z,"â","\\forall",!0),c(d,v,z,"â","\\hbar",!0),c(d,v,z,"â","\\exists",!0),c(d,v,z,"â","\\nabla",!0),c(d,v,z,"â","\\flat",!0),c(d,v,z,"â","\\ell",!0),c(d,v,z,"â®","\\natural",!0),c(d,v,z,"â£","\\clubsuit",!0),c(d,v,z,"â","\\wp",!0),c(d,v,z,"â¯","\\sharp",!0),c(d,v,z,"â¢","\\diamondsuit",!0),c(d,v,z,"â","\\Re",!0),c(d,v,z,"â¡","\\heartsuit",!0),c(d,v,z,"â","\\Im",!0),c(d,v,z,"â ","\\spadesuit",!0),c(d,v,z,"§","\\S",!0),c(_,v,z,"§","\\S"),c(d,v,z,"¶","\\P",!0),c(_,v,z,"¶","\\P"),c(d,v,z,"â ","\\dag"),c(_,v,z,"â ","\\dag"),c(_,v,z,"â ","\\textdagger"),c(d,v,z,"â¡","\\ddag"),c(_,v,z,"â¡","\\ddag"),c(_,v,z,"â¡","\\textdaggerdbl"),c(d,v,Et,"â±","\\rmoustache",!0),c(d,v,jt,"â°","\\lmoustache",!0),c(d,v,Et,"â¯","\\rgroup",!0),c(d,v,jt,"â®","\\lgroup",!0),c(d,v,ve,"â","\\mp",!0),c(d,v,ve,"â","\\ominus",!0),c(d,v,ve,"â","\\uplus",!0),c(d,v,ve,"â","\\sqcap",!0),c(d,v,ve,"â","\\ast"),c(d,v,ve,"â","\\sqcup",!0),c(d,v,ve,"â¯","\\bigcirc",!0),c(d,v,ve,"â","\\bullet",!0),c(d,v,ve,"â¡","\\ddagger"),c(d,v,ve,"â","\\wr",!0),c(d,v,ve,"⨿","\\amalg"),c(d,v,ve,"&","\\And"),c(d,v,S,"âµ","\\longleftarrow",!0),c(d,v,S,"â","\\Leftarrow",!0),c(d,v,S,"â¸","\\Longleftarrow",!0),c(d,v,S,"â¶","\\longrightarrow",!0),c(d,v,S,"â","\\Rightarrow",!0),c(d,v,S,"â¹","\\Longrightarrow",!0),c(d,v,S,"â","\\leftrightarrow",!0),c(d,v,S,"â·","\\longleftrightarrow",!0),c(d,v,S,"â","\\Leftrightarrow",!0),c(d,v,S,"âº","\\Longleftrightarrow",!0),c(d,v,S,"â¦","\\mapsto",!0),c(d,v,S,"â¼","\\longmapsto",!0),c(d,v,S,"â","\\nearrow",!0),c(d,v,S,"â©","\\hookleftarrow",!0),c(d,v,S,"âª","\\hookrightarrow",!0),c(d,v,S,"â","\\searrow",!0),c(d,v,S,"â¼","\\leftharpoonup",!0),c(d,v,S,"â","\\rightharpoonup",!0),c(d,v,S,"â","\\swarrow",!0),c(d,v,S,"â½","\\leftharpoondown",!0),c(d,v,S,"â","\\rightharpoondown",!0),c(d,v,S,"â","\\nwarrow",!0),c(d,v,S,"â","\\rightleftharpoons",!0),c(d,E,S,"â®","\\nless",!0),c(d,E,S,"î","\\@nleqslant"),c(d,E,S,"î","\\@nleqq"),c(d,E,S,"âª","\\lneq",!0),c(d,E,S,"â¨","\\lneqq",!0),c(d,E,S,"î","\\@lvertneqq"),c(d,E,S,"â¦","\\lnsim",!0),c(d,E,S,"âª","\\lnapprox",!0),c(d,E,S,"â","\\nprec",!0),c(d,E,S,"â ","\\npreceq",!0),c(d,E,S,"â¨","\\precnsim",!0),c(d,E,S,"⪹","\\precnapprox",!0),c(d,E,S,"â","\\nsim",!0),c(d,E,S,"î","\\@nshortmid"),c(d,E,S,"â¤","\\nmid",!0),c(d,E,S,"â¬","\\nvdash",!0),c(d,E,S,"â","\\nvDash",!0),c(d,E,S,"âª","\\ntriangleleft"),c(d,E,S,"â¬","\\ntrianglelefteq",!0),c(d,E,S,"â","\\subsetneq",!0),c(d,E,S,"î","\\@varsubsetneq"),c(d,E,S,"â«","\\subsetneqq",!0),c(d,E,S,"î","\\@varsubsetneqq"),c(d,E,S,"â¯","\\ngtr",!0),c(d,E,S,"î","\\@ngeqslant"),c(d,E,S,"î","\\@ngeqq"),c(d,E,S,"âª","\\gneq",!0),c(d,E,S,"â©","\\gneqq",!0),c(d,E,S,"î","\\@gvertneqq"),c(d,E,S,"â§","\\gnsim",!0),c(d,E,S,"âª","\\gnapprox",!0),c(d,E,S,"â","\\nsucc",!0),c(d,E,S,"â¡","\\nsucceq",!0),c(d,E,S,"â©","\\succnsim",!0),c(d,E,S,"⪺","\\succnapprox",!0),c(d,E,S,"â","\\ncong",!0),c(d,E,S,"î","\\@nshortparallel"),c(d,E,S,"â¦","\\nparallel",!0),c(d,E,S,"â¯","\\nVDash",!0),c(d,E,S,"â«","\\ntriangleright"),c(d,E,S,"â","\\ntrianglerighteq",!0),c(d,E,S,"î","\\@nsupseteqq"),c(d,E,S,"â","\\supsetneq",!0),c(d,E,S,"î","\\@varsupsetneq"),c(d,E,S,"â«","\\supsetneqq",!0),c(d,E,S,"î","\\@varsupsetneqq"),c(d,E,S,"â®","\\nVdash",!0),c(d,E,S,"⪵","\\precneqq",!0),c(d,E,S,"⪶","\\succneqq",!0),c(d,E,S,"î","\\@nsub
255seteqq"),c(d,E,ve,"â´","\\unlhd"),c(d,E,ve,"âµ","\\unrhd"),c(d,E,S,"â","\\nleftarrow",!0),c(d,E,S,"â","\\nrightarrow",!0),c(d,E,S,"â","\\nLeftarrow",!0),c(d,E,S,"â","\\nRightarrow",!0),c(d,E,S,"â®","\\nleftrightarrow",!0),c(d,E,S,"â","\\nLeftrightarrow",!0),c(d,E,S,"â³","\\vartriangle"),c(d,E,z,"â","\\hslash"),c(d,E,z,"â½","\\triangledown"),c(d,E,z,"â","\\lozenge"),c(d,E,z,"â","\\circledS"),c(d,E,z,"®","\\circledR"),c(_,E,z,"®","\\circledR"),c(d,E,z,"â¡","\\measuredangle",!0),c(d,E,z,"â","\\nexists"),c(d,E,z,"â§","\\mho"),c(d,E,z,"â²","\\Finv",!0),c(d,E,z,"â
","\\Game",!0),c(d,E,z,"âµ","\\backprime"),c(d,E,z,"â²","\\blacktriangle"),c(d,E,z,"â¼","\\blacktriangledown"),c(d,E,z,"â ","\\blacksquare"),c(d,E,z,"â§«","\\blacklozenge"),c(d,E,z,"â
","\\bigstar"),c(d,E,z,"â¢","\\sphericalangle",!0),c(d,E,z,"â","\\complement",!0),c(d,E,z,"ð","\\eth",!0),c(_,v,z,"ð","ð"),c(d,E,z,"â±","\\diagup"),c(d,E,z,"â²","\\diagdown"),c(d,E,z,"â¡","\\square"),c(d,E,z,"â¡","\\Box"),c(d,E,z,"â","\\Diamond"),c(d,E,z,"Â¥","\\yen",!0),c(_,E,z,"Â¥","\\yen",!0),c(d,E,z,"â","\\checkmark",!0),c(_,E,z,"â","\\checkmark"),c(d,E,z,"â¶","\\beth",!0),c(d,E,z,"â¸","\\daleth",!0),c(d,E,z,"â·","\\gimel",!0),c(d,E,z,"Ï","\\digamma",!0),c(d,E,z,"ϰ","\\varkappa"),c(d,E,jt,"â","\\@ulcorner",!0),c(d,E,Et,"â","\\@urcorner",!0),c(d,E,jt,"â","\\@llcorner",!0),c(d,E,Et,"â","\\@lrcorner",!0),c(d,E,S,"â¦","\\leqq",!0),c(d,E,S,"⩽","\\leqslant",!0),c(d,E,S,"âª","\\eqslantless",!0),c(d,E,S,"â²","\\lesssim",!0),c(d,E,S,"âª
","\\lessapprox",!0),c(d,E,S,"â","\\approxeq",!0),c(d,E,ve,"â","\\lessdot"),c(d,E,S,"â","\\lll",!0),c(d,E,S,"â¶","\\lessgtr",!0),c(d,E,S,"â","\\lesseqgtr",!0),c(d,E,S,"âª","\\lesseqqgtr",!0),c(d,E,S,"â","\\doteqdot"),c(d,E,S,"â","\\risingdotseq",!0),c(d,E,S,"â","\\fallingdotseq",!0),c(d,E,S,"â½","\\backsim",!0),c(d,E,S,"â","\\backsimeq",!0),c(d,E,S,"â«
","\\subseteqq",!0),c(d,E,S,"â","\\Subset",!0),c(d,E,S,"â","\\sqsubset",!0),c(d,E,S,"â¼","\\preccurlyeq",!0),c(d,E,S,"â","\\curlyeqprec",!0),c(d,E,S,"â¾","\\precsim",!0),c(d,E,S,"⪷","\\precapprox",!0),c(d,E,S,"â²","\\vartriangleleft"),c(d,E,S,"â´","\\trianglelefteq"),c(d,E,S,"â¨","\\vDash",!0),c(d,E,S,"âª","\\Vvdash",!0),c(d,E,S,"â£","\\smallsmile"),c(d,E,S,"â¢","\\smallfrown"),c(d,E,S,"â","\\bumpeq",!0),c(d,E,S,"â","\\Bumpeq",!0),c(d,E,S,"â§","\\geqq",!0),c(d,E,S,"⩾","\\geqslant",!0),c(d,E,S,"âª","\\eqslantgtr",!0),c(d,E,S,"â³","\\gtrsim",!0),c(d,E,S,"âª","\\gtrapprox",!0),c(d,E,ve,"â","\\gtrdot"),c(d,E,S,"â","\\ggg",!0),c(d,E,S,"â·","\\gtrless",!0),c(d,E,S,"â","\\gtreqless",!0),c(d,E,S,"âª","\\gtreqqless",!0),c(d,E,S,"â","\\eqcirc",!0),c(d,E,S,"â","\\circeq",!0),c(d,E,S,"â","\\triangleq",!0),c(d,E,S,"â¼","\\thicksim"),c(d,E,S,"â","\\thickapprox"),c(d,E,S,"â«","\\supseteqq",!0),c(d,E,S,"â","\\Supset",!0),c(d,E,S,"â","\\sqsupset",!0),c(d,E,S,"â½","\\succcurlyeq",!0),c(d,E,S,"â","\\curlyeqsucc",!0),c(d,E,S,"â¿","\\succsim",!0),c(d,E,S,"⪸","\\succapprox",!0),c(d,E,S,"â³","\\vartriangleright"),c(d,E,S,"âµ","\\trianglerighteq"),c(d,E,S,"â©","\\Vdash",!0),c(d,E,S,"â£","\\shortmid"),c(d,E,S,"â¥","\\shortparallel"),c(d,E,S,"â¬","\\between",!0),c(d,E,S,"â","\\pitchfork",!0),c(d,E,S,"â","\\varpropto"),c(d,E,S,"â","\\blacktriangleleft"),c(d,E,S,"â´","\\therefore",!0),c(d,E,S,"â","\\backepsilon"),c(d,E,S,"â¶","\\blacktriangleright"),c(d,E,S,"âµ","\\because",!0),c(d,E,S,"â","\\llless"),c(d,E,S,"â","\\gggtr"),c(d,E,ve,"â²","\\lhd"),c(d,E,ve,"â³","\\rhd"),c(d,E,S,"â","\\eqsim",!0),c(d,v,S,"â","\\Join"),c(d,E,S,"â","\\Doteq",!0),c(d,E,ve,"â","\\dotplus",!0),c(d,E,ve,"â","\\smallsetminus"),c(d,E,ve,"â","\\Cap",!0),c(d,E,ve,"â","\\Cup",!0),c(d,E,ve,"â©","\\doublebarwedge",!0),c(d,E,ve,"â","\\boxminus",!0),c(d,E,ve,"â","\\boxplus",!0),c(d,E,ve,"â","\\divideontimes",!0),c(d,E,ve,"â","\\ltimes",!0),c(d,E,ve,"â","\\rtimes",!0),c(d,E,ve,"â","\\leftthreetimes",!0),c(d,E,ve,"â","\\rightthreetimes",!0),c(d,E,ve,"â","\\curlywedge",!0),c(d,E,ve,"â","\\curlyvee",!0),c(d,E,ve,"â","\\circleddash",!0),c(d,E,ve,"â","\\circledast",!0),c(d,E,ve,"â
","\\centerdot"),c(d,E,ve,"âº","\\intercal",!0),c(d,E,ve,"â","\\doublecap"),c(d,E,ve,"â","\\doublecup"),c(d,E,ve,"â ","\\boxtimes",!0),c(d,E,S,"â¢","\\dashrightarrow",!0),c(d,E,S,"â ","\\dashleftarrow",!0),c(d,E,S,"â","\\leftleftarrows",!0),c(d,E,S,"â","\\leftrightarrows",!0),c(d,E,S,"â","\\Lleftarrow",!0),c(d,E,S,"â","\\twoheadleftarrow",!0),c(d,E,S,"â¢","\\leftarrowtail",!0),c(d,E,S,"â«","\\looparrowleft",!0),c(d,E,S,"â","\\leftrightharpoons",!0),c(d,E,S,"â¶","\\curvearrowleft",!0),c(d,E,S,"âº","\\circlearrowleft",!0),c(d,E,S,"â°","\\Lsh",!0),c(d,E,S,"â","\\upuparrows",!0),c(d,E,S,"â¿","\\upharpoonleft",!0),c(d,E,S,"â","\\downharpoonleft",!0),c(d,v,S,"â¶","\\origof",!0),c(d,v,S,"â·","\\imageof",!0),c(d,E,S,"â¸","\\multimap",!0),c(d,E,S,"â","\\leftrightsquigarrow",!0),c(d,E,S,"â","\\rightrightarrows",!0),c(d,E,S,"â","\\rightleftarrows",!0),c(d,E,S,"â ","\\twoheadrightarrow",!0),c(d,E,S,"â£","\\rightarrowtail",!0),c(d,E,S,"â¬","\\looparrowright",!0),c(d,E,S,"â·","\\curvearrowright",!0),c(d,E,S,"â»","\\circlearrowright",!0),c(d,E,S,"â±","\\Rsh",!0),c(d,E,S,"â","\\downdownarrows",!0),c(d,E,S,"â¾","\\upharpoonright",!0),c(d,E,S,"â","\\downharpoonright",!0),c(d,E,S,"â","\\rightsquigarrow",!0),c(d,E,S,"â","\\leadsto"),c(d,E,S,"â","\\Rrightarrow",!0),c(d,E,S,"â¾","\\restriction"),c(d,v,z,"â","`"),c(d,v,z,"$","\\$"),c(_,v,z,"$","\\$"),c(_,v,z,"$","\\textdollar"),c(d,v,z,"%","\\%"),c(_,v,z,"%","\\%"),c(d,v,z,"_","\\_"),c(_,v,z,"_","\\_"),c(_,v,z,"_","\\textunderscore"),c(d,v,z,"â ","\\angle",!0),c(d,v,z,"â","\\infty",!0),c(d,v,z,"â²","\\prime"),c(d,v,z,"â³","\\triangle"),c(d,v,z,"Î","\\Gamma",!0),c(d,v,z,"Î","\\Delta",!0),c(d,v,z,"Î","\\Theta",!0),c(d,v,z,"Î","\\Lambda",!0),c(d,v,z,"Î","\\Xi",!0),c(d,v,z,"Î ","\\Pi",!0),c(d,v,z,"Σ","\\Sigma",!0),c(d,v,z,"Î¥","\\Upsilon",!0),c(d,v,z,"Φ","\\Phi",!0),c(d,v,z,"Ψ","\\Psi",!0),c(d,v,z,"Ω","\\Omega",!0),c(d,v,z,"A","Î"),c(d,v,z,"B","Î"),c(d,v,z,"E","Î"),c(d,v,z,"Z","Î"),c(d,v,z,"H","Î"),c(d,v,z,"I","Î"),c(d,v,z,"K","Î"),c(d,v,z,"M","Î"),c(d,v,z,"N","Î"),c(d,v,z,"O","Î"),c(d,v,z,"P","Ρ"),c(d,v,z,"T","Τ"),c(d,v,z,"X","Χ"),
255c(d,v,z,"¬","\\neg",!0),c(d,v,z,"¬","\\lnot"),c(d,v,z,"â¤","\\top"),c(d,v,z,"â¥","\\bot"),c(d,v,z,"â
","\\emptyset"),c(d,E,z,"â
","\\varnothing"),c(d,v,xe,"α","\\alpha",!0),c(d,v,xe,"β","\\beta",!0),c(d,v,xe,"γ","\\gamma",!0),c(d,v,xe,"δ","\\delta",!0),c(d,v,xe,"ϵ","\\epsilon",!0),c(d,v,xe,"ζ","\\zeta",!0),c(d,v,xe,"η","\\eta",!0),c(d,v,xe,"θ","\\theta",!0),c(d,v,xe,"ι","\\iota",!0),c(d,v,xe,"κ","\\kappa",!0),c(d,v,xe,"λ","\\lambda",!0),c(d,v,xe,"μ","\\mu",!0),c(d,v,xe,"ν","\\nu",!0),c(d,v,xe,"ξ","\\xi",!0),c(d,v,xe,"ο","\\omicron",!0),c(d,v,xe,"Ï","\\pi",!0),c(d,v,xe,"Ï","\\rho",!0),c(d,v,xe,"Ï","\\sigma",!0),c(d,v,xe,"Ï","\\tau",!0),c(d,v,xe,"Ï
","\\upsilon",!0),c(d,v,xe,"Ï","\\phi",!0),c(d,v,xe,"Ï","\\chi",!0),c(d,v,xe,"Ï","\\psi",!0),c(d,v,xe,"Ï","\\omega",!0),c(d,v,xe,"ε","\\varepsilon",!0),c(d,v,xe,"Ï","\\vartheta",!0),c(d,v,xe,"Ï","\\varpi",!0),c(d,v,xe,"ϱ","\\varrho",!0),c(d,v,xe,"Ï","\\varsigma",!0),c(d,v,xe,"Ï","\\varphi",!0),c(d,v,ve,"â","*",!0),c(d,v,ve,"+","+"),c(d,v,ve,"â","-",!0),c(d,v,ve,"â
","\\cdot",!0),c(d,v,ve,"â","\\circ",!0),c(d,v,ve,"÷","\\div",!0),c(d,v,ve,"±","\\pm",!0),c(d,v,ve,"Ã","\\times",!0),c(d,v,ve,"â©","\\cap",!0),c(d,v,ve,"âª","\\cup",!0),c(d,v,ve,"â","\\setminus",!0),c(d,v,ve,"â§","\\land"),c(d,v,ve,"â¨","\\lor"),c(d,v,ve,"â§","\\wedge",!0),c(d,v,ve,"â¨","\\vee",!0),c(d,v,z,"â","\\surd"),c(d,v,jt,"â¨","\\langle",!0),c(d,v,jt,"â£","\\lvert"),c(d,v,jt,"â¥","\\lVert"),c(d,v,Et,"?","?"),c(d,v,Et,"!","!"),c(d,v,Et,"â©","\\rangle",!0),c(d,v,Et,"â£","\\rvert"),c(d,v,Et,"â¥","\\rVert"),c(d,v,S,"=","="),c(d,v,S,":",":"),c(d,v,S,"â","\\approx",!0),c(d,v,S,"â
","\\cong",!0),c(d,v,S,"â¥","\\ge"),c(d,v,S,"â¥","\\geq",!0),c(d,v,S,"â","\\gets"),c(d,v,S,">","\\gt",!0),c(d,v,S,"â","\\in",!0),c(d,v,S,"î ","\\@not"),c(d,v,S,"â","\\subset",!0),c(d,v,S,"â","\\supset",!0),c(d,v,S,"â","\\subseteq",!0),c(d,v,S,"â","\\supseteq",!0),c(d,E,S,"â","\\nsubseteq",!0),c(d,E,S,"â","\\nsupseteq",!0),c(d,v,S,"â¨","\\models"),c(d,v,S,"â","\\leftarrow",!0),c(d,v,S,"â¤","\\le"),c(d,v,S,"â¤","\\leq",!0),c(d,v,S,"<","\\lt",!0),c(d,v,S,"â","\\rightarrow",!0),c(d,v,S,"â","\\to"),c(d,E,S,"â±","\\ngeq",!0),c(d,E,S,"â°","\\nleq",!0),c(d,v,lr," ","\\ "),c(d,v,lr," ","\\space"),c(d,v,lr," ","\\nobreakspace"),c(_,v,lr," ","\\ "),c(_,v,lr," "," "),c(_,v,lr," ","\\space"),c(_,v,lr," ","\\nobreakspace"),c(d,v,lr,null,"\\nobreak"),c(d,v,lr,null,"\\allowbreak"),c(d,v,B0,",",","),c(d,v,B0,";",";"),c(d,E,ve,"â¼","\\barwedge",!0),c(d,E,ve,"â»","\\veebar",!0),c(d,v,ve,"â","\\odot",!0),c(d,v,ve,"â","\\oplus",!0),c(d,v,ve,"â","\\otimes",!0),c(d,v,z,"â","\\partial",!0),c(d,v,ve,"â","\\oslash",!0),c(d,E,ve,"â","\\circledcirc",!0),c(d,E,ve,"â¡","\\boxdot",!0),c(d,v,ve,"â³","\\bigtri
255angleup"),c(d,v,ve,"â½","\\bigtriangledown"),c(d,v,ve,"â ","\\dagger"),c(d,v,ve,"â","\\diamond"),c(d,v,ve,"â","\\star"),c(d,v,ve,"â","\\triangleleft"),c(d,v,ve,"â¹","\\triangleright"),c(d,v,jt,"{","\\{"),c(_,v,z,"{","\\{"),c(_,v,z,"{","\\textbraceleft"),c(d,v,Et,"}","\\}"),c(_,v,z,"}","\\}"),c(_,v,z,"}","\\textbraceright"),c(d,v,jt,"{","\\lbrace"),c(d,v,Et,"}","\\rbrace"),c(d,v,jt,"[","\\lbrack",!0),c(_,v,z,"[","\\lbrack",!0),c(d,v,Et,"]","\\rbrack",!0),c(_,v,z,"]","\\rbrack",!0),c(d,v,jt,"(","\\lparen",!0),c(d,v,Et,")","\\rparen",!0),c(_,v,z,"<","\\textless",!0),c(_,v,z,">","\\textgreater",!0),c(d,v,jt,"â","\\lfloor",!0),c(d,v,Et,"â","\\rfloor",!0),c(d,v,jt,"â","\\lceil",!0),c(d,v,Et,"â","\\rceil",!0),c(d,v,z,"\\","\\backslash"),c(d,v,z,"â£","|"),c(d,v,z,"â£","\\vert"),c(_,v,z,"|","\\textbar",!0),c(d,v,z,"â¥","\\|"),c(d,v,z,"â¥","\\Vert"),c(_,v,z,"â¥","\\textbardbl"),c(_,v,z,"~","\\textasciitilde"),c(_,v,z,"\\","\\textbackslash"),c(_,v,z,"^","\\textasciicircum"),c(d,v,S,"â","\\uparrow",!0),c(d,v,S,"â","\\Uparrow",!0),c(d,v,S,"â","\\downarrow",!0),c(d,v,S,"â","\\Downarrow",!0),c(d,v,S,"â","\\updownarrow",!0),c(d,v,S,"â","\\Updownarrow",!0),c(d,v,gt,"â","\\coprod"),c(d,v,gt,"â","\\bigvee"),c(d,v,gt,"â","\\bigwedge"),c(d,v,gt,"â¨","\\biguplus"),c(d,v,gt,"â","\\bigcap"),c(d,v,gt,"â","\\bigcup"),c(d,v,gt,"â«","\\int"),c(d,v,gt,"â«","\\intop"),c(d,v,gt,"â¬","\\iint"),c(d,v,gt,"â","\\iiint"),c(d,v,gt,"â","\\prod"),c(d,v,gt,"â","\\sum"),c(d,v,gt,"â¨","\\bigotimes"),c(d,v,gt,"â¨","\\bigoplus"),c(d,v,gt,"â¨","\\bigodot"),c(d,v,gt,"â®","\\oint"),c(d,v,gt,"â¯","\\oiint"),c(d,v,gt,"â°","\\oiiint"),c(d,v,gt,"â¨","\\bigsqcup"),c(d,v,gt,"â«","\\smallint"),c(_,v,Hr,"â¦","\\textellipsis"),c(d,v,Hr,"â¦","\\mathellipsis"),c(_,v,Hr,"â¦","\\ldots",!0),c(d,v,Hr,"â¦","\\ldots",!0),c(d,v,Hr,"â¯","\\@cdots",!0),c(d,v,Hr,"â±","\\ddots",!0),c(d,v,z,"â®","\\varvdots"),c(_,v,z,"â®","\\varvdots"),c(d,v,st,"Ë","\\acute"),c(d,v,st,"Ë","\\grave"),c(d,v,st,"¨","\\ddot"),c(d,v,st,"~","\\tilde"),c(d,v,st,"Ë","\\bar"),c(d,v,st,"Ë","\\breve"),c(d,v,st,"Ë","\\check"),c(d,v,st,"^","\\hat"),c(d,v,st,"â","\\vec"),c(d,v,st,"Ë","\\dot"),c(d,v,st,"Ë","\\mathring"),c(d,v,xe,"î±","\\@imath"),c(d,v,xe,"î·","\\@jmath"),c(d,v,z,"ı","ı"),c(d,v,z,"È·","È·"),c(_,v,z,"ı","\\i",!0),c(_,v,z,"È·","\\j",!0),c(_,v,z,"Ã","\\ss",!0),c(_,v,z,"æ","\\ae",!0),c(_,v,z,"Å","\\oe",!0),c(_,v,z,"ø","\\o",!0),c(_,v,z,"Ã","\\AE",!0),c(_,v,z,"Å","\\OE",!0),c(_,v,z,"Ã","\\O",!0),c(_,v,st,"Ë","\\'"),c(_,v,st,"Ë","\\`"),c(_,v,st,"Ë","\\^"),c(_,v,st,"Ë","\\~"),c(_,v,st,"Ë","\\="),c(_,v,st,"Ë","\\u"),c(_,v,st,"Ë","\\."),c(_,v,st,"¸","\\c"),c(_,v,st,"Ë","\\r"),c(_,v,st,"Ë","\\v"),c(_,v,st,"¨",'\\"'),c(_,v,st,"Ë","\\H"),c(_,v,st,"â¯","\\textcircled");const Ja={"--":!0,"---":!0,"``":!0,"''":!0};c(_,v,z,"â","--",!0),c(_,v,z,"â","\\textendash"),c(_,v,z,"â","---",!0),c(_,v,z,"â","\\textemdash"),c(_,v,z,"â","`",!0),c(_,v,z,"â","\\textquoteleft"),c(_,v,z,"â","'",!0),c(_,v,z,"â","\\textquoteright"),c(_,v,z,"â","``",!0),c(_,v,z,"â","\\textquotedblleft"),c(_,v,z,"â","''",!0),c(_,v,z,"â","\\textquotedblright"),c(d,v,z,"°","\\degree",!0),c(_,v,z,"°","\\degree"),c(_,v,z,"°","\\textdegree",!0),c(d,v,z,"£","\\pounds"),c(d,v,z,"£","\\mathsterling",!0),c(_,v,z,"£","\\pounds"),c(_,v,z,"£","\\textsterling",!0),c(d,E,z,"â ","\\maltese"),c(_,E,z,"â ","\\maltese");const Qa='0123456789/@."';for(let a=0;a<Qa.length;a++){const r=Qa.charAt(a);c(d,v,z,r,r)}const es='0123456789!@*()-=+";:?/.,';for(let a=0;a<es.length;a++){const r=es.charAt(a);c(_,v,z,r,r)}const A0="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";for(let a=0;a<A0.length;a++){const r=A0.charAt(a);c(d,v,xe,r,r),c(_,v,z,r,r)}c(d,E,z,"C","â"),c(_,E,z,"C","â"),c(d,E,z,"H","â"),c(_,E,z,"H","â"),c(d,E,z,"N","â"),c(_,E,z,"N","â"),c(d,E,z,"P","â"),c(_,E,z,"P","â"),c(d,E,z,"Q","â"),c(_,E,z,"Q","â"),c(d,E,z,"R","â"),c(_,E,z,"R","â"),c(d,E,z,"Z","â¤"),c(_,E,z,"Z","â¤"),c(d,v,xe,"h","â"),c(_,v,xe,"h","â");let Ae="";for(let a=0;a<A0.length;a++){const r=A0.charAt(a);Ae=String.fromCharCode(55349,56320+a),c(d,v,xe,r,Ae),c(_,v,z,r,Ae),Ae=String.fromCharCode(55349,56372+a),c(d,v,xe,r,Ae),c(_,v,z,r,Ae),Ae=String.fromCharCode(55349,56424+a),c(d,v,xe,r,Ae),c(_,v,z,r,Ae),Ae=String.fromCharCode(55349,56580+a),c(d,v,xe,r,Ae),c(_,v,z,r,Ae),Ae=String.fromCharCode(55349,56684+a),c(d,v,xe,r,Ae),c(_,v,z,r,Ae),Ae=String.fromCharCode(55349,56736+a),c(d,v,xe,r,Ae),c(_,v,z,r,Ae),Ae=String.fromCharCode(55349,56788+a),c(d,v,xe,r,Ae),c(_,v,z,r,Ae),Ae=String.fromCharCode(55349,56840+a),c(d,v,xe,r,Ae),c(_,v,z,r,Ae),Ae=String.fromCharCode(55349,56944+a),c(d,v,xe,r,Ae),c(_,v,z,r,Ae),a<26&&(Ae=String.fromCharCode(55349,56632+a),c(d,v,xe,r,Ae),c(_,v,z,r,Ae),Ae=String.fromCharCode(55349,56476+a),c(d,v,xe,r,Ae),c(_,v,z,r,Ae))}Ae="ð",c(d,v,xe,"k",Ae),c(_,v,z,"k",Ae);for(let a=0;a<10;a++){const r=a.toString();Ae=String.fromCharCode(55349,57294+a),c(d,v,xe,r,Ae),c(_,v,z,r,Ae),Ae=String.fromCharCode(55349,57314+a),c(d,v,xe,r,Ae),c(_,v,z,r,Ae),Ae=String.fromCharCode(55349,57324+a),c(d,v,xe,r,Ae),c(_,v,z,r,Ae),Ae=String.fromCharCode(55349,57334+a),c(d,v,xe,r,Ae),c(_,v,z,r,Ae)}const Dn="ÃÃþ";for(let a=0;a<Dn.length;a++){const r=Dn.charAt(a);c(d,v,xe,r,r),c(_,v,z,r,r)}const E0=[["mathbf","textbf","Main-Bold"],["mathbf","textbf","Main-Bold"],["mathnormal","textit","Math-Italic"],["mathnormal","textit","Math-Italic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["mathscr","textscr","Script-Regular"],["","",""],["","",""],["","",""],["mathfrak","textfrak","Fraktur-Regular"],["mathfrak","textfrak","Fraktur-Regular"],["mathbb","textbb","AMS-Regular"],["mathbb","textbb","AMS-Regular"],["mathboldfrak","textboldfrak","Fraktur-Regular"],["mathboldfrak","textboldfrak","Fraktur-Regular"],["mathsf","textsf","SansSerif-Regular"],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathitsf","textitsf","SansSerif-Italic"],["mathitsf","textitsf","SansSerif-Italic"],["","",""],["","",""],["mathtt","texttt","Typewriter-Regular"],["mathtt","texttt","Typewriter-Regular"]],ts=[["mathbf","textbf","Main-Bold"],["","",""],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathtt","texttt","Typewriter-Regular"]],$o=function(a,r){const i=a.charCo
255deAt(0),o=a.charCodeAt(1),l=(i-55296)*1024+(o-56320)+65536,h=r==="math"?0:1;if(119808<=l&&l<120484){const g=Math.floor((l-119808)/26);return[E0[g][2],E0[g][h]]}else if(120782<=l&&l<=120831){const g=Math.floor((l-120782)/10);return[ts[g][2],ts[g][h]]}else{if(l===120485||l===120486)return[E0[0][2],E0[0][h]];if(120486<l&&l<120782)return["",""];throw new f("Unsupported character: "+a)}};class Jr{constructor(r){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=r,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(r){return this.classes.includes(r)}toNode(){const r=document.createDocumentFragment();for(let i=0;i<this.children.length;i++)r.appendChild(this.children[i].toNode());return r}toMarkup(){let r="";for(let i=0;i<this.children.length;i++)r+=this.children[i].toMarkup();return r}toText(){const r=i=>i.toText();return this.children.map(r).join("")}}const S0=function(a,r,i){return lt[i][a]&<[i][a].replace&&(a=lt[i][a].replace),{value:a,metrics:Tt(a,r,i)}},Xt=function(a,r,i,o,l){const h=S0(a,r,i),g=h.metrics;a=h.value;let y;if(g){let B=g.italic;(i==="text"||o&&o.font==="mathit")&&(B=0),y=new Vt(a,g.height,g.depth,B,g.skew,g.width,l)}else typeof console<"u"&&console.warn("No character metrics "+("for '"+a+"' in style '"+r+"' and mode '"+i+"'")),y=new Vt(a,0,0,0,0,0,l);if(o){y.maxFontSize=o.sizeMultiplier,o.style.isTight()&&y.classes.push("mtight");const B=o.getColor();B&&(y.style.color=B)}return y},Vo=function(a,r,i,o){return o===void 0&&(o=[]),i.font==="boldsymbol"&&S0(a,"Main-Bold",r).metrics?Xt(a,"Main-Bold",r,i,o.concat(["mathbf"])):a==="\\"||lt[r][a].font==="main"?Xt(a,"Main-Regular",r,i,o):Xt(a,"AMS-Regular",r,i,o.concat(["amsrm"]))},Go=function(a,r,i,o,l){return l!=="textord"&&S0(a,"Math-BoldItalic",r).metrics?{fontName:"Math-BoldItalic",fontClass:"boldsymbol"}:{fontName:"Main-Bold",fontClass:"mathbf"}},Uo=function(a,r,i){const o=a.mode,l=a.text,h=["mord"],g=o==="math"||o==="text"&&r.font,y=g?r.font:r.fontFamily;let B="",k="";if(l.charCodeAt(0)===55349&&([B,k]=$o(l,o)),B.length>0)return Xt(l,B,o,r,h.concat(k));if(y){let N,I;if(y==="boldsymbol"){const H=Go(l,o,r,h,i);N=H.fontName,I=[H.fontClass]}else g?(N=as[y].fontName,I=[y]):(N=F0(y,r.fontWeight,r.fontShape),I=[y,r.fontWeight,r.fontShape]);if(S0(l,N,o).metrics)return Xt(l,N,o,r,h.concat(I));if(Ja.hasOwnProperty(l)&&N.slice(0,10)==="Typewriter"){const H=[];for(let Y=0;Y<l.length;Y++)H.push(Xt(l[Y],N,o,r,h.concat(I)));return ns(H)}}if(i==="mathord")return Xt(l,"Math-Italic",o,r,h.concat(["mathnormal"]));if(i==="textord"){const N=lt[o][l]&<[o][l].font;if(N==="ams"){const I=F0("amsrm",r.fontWeight,r.fontShape);return Xt(l,I,o,r,h.concat("amsrm",r.fontWeight,r.fontShape))}else if(N==="main"||!N){const I=F0("textrm",r.fontWeight,r.fontShape);return Xt(l,I,o,r,h.concat(r.fontWeight,r.fontShape))}else{const I=F0(N,r.fontWeight,r.fontShape);return Xt(l,I,o,r,h.concat(I,r.fontWeight,r.fontShape))}}else throw new Error("unexpected type: "+i+" in makeOrd")},Ko=(a,r)=>{if(At(a.classes)!==At(r.classes)||a.skew!==r.skew||a.maxFontSize!==r.maxFontSize)return!1;if(a.classes.length===1){const i=a.classes[0];if(i==="mbin"||i==="mord")return!1}for(const i in a.style)if(a.style.hasOwnProperty(i)&&a.style[i]!==r.style[i])return!1;for(const i in r.style)if(r.style.hasOwnProperty(i)&&a.style[i]!==r.style[i])return!1;return!0},Yo=a=>{for(let r=0;r<a.length-1;r++){const i=a[r],o=a[r+1];i instanceof Vt&&o instanceof Vt&&Ko(i,o)&&(i.text+=o.text,i.height=Math.max(i.height,o.height),i.depth=Math.max(i.depth,o.depth),i.italic=o.italic,a.splice(r+1,1),r--)}return a},yn=function(a){let r=0,i=0,o=0;for(let l=0;l<a.children.length;l++){const h=a.children[l];h.height>r&&(r=h.height),h.depth>i&&(i=h.depth),h.maxFontSize>o&&(o=h.maxFontSize)}a.height=r,a.depth=i,a.maxFontSize=o},zt=function(a,r,i,o){const l=new Fr(a,r,i,o);return yn(l),l},rs=(a,r,i,o)=>new Fr(a,r,i,o),Xo=function(a,r,i){const o=zt([a],[],r);return o.height=Math.max(i||r.fontMetrics().defaultRuleThickness,r.minRuleThickness),o.style.borderBottomWidth=re(o.height),o.maxFontSize=1,o},_o=function(a,r,i,o){const l=new Zr(a,r,i,o);return yn(l),l},ns=function(a){const r=new Jr(a);return yn(r),r},Zo=function(a,r){return a instanceof Jr?zt([],[a],r):a}
255,Jo=function(a){if(a.positionType==="individualShift"){const i=a.children,o=[i[0]],l=-i[0].shift-i[0].elem.depth;let h=l;for(let g=1;g<i.length;g++){const y=-i[g].shift-h-i[g].elem.depth,B=y-(i[g-1].elem.height+i[g-1].elem.depth);h=h+y,o.push({type:"kern",size:B}),o.push(i[g])}return{children:o,depth:l}}let r;if(a.positionType==="top"){let i=a.positionData;for(let o=0;o<a.children.length;o++){const l=a.children[o];i-=l.type==="kern"?l.size:l.elem.height+l.elem.depth}r=i}else if(a.positionType==="bottom")r=-a.positionData;else{const i=a.children[0];if(i.type!=="elem")throw new Error('First child must have type "elem".');if(a.positionType==="shift")r=-i.elem.depth-a.positionData;else if(a.positionType==="firstBaseline")r=-i.elem.depth;else throw new Error("Invalid positionType "+a.positionType+".")}return{children:a.children,depth:r}},Qo=function(a,r){const{children:i,depth:o}=Jo(a);let l=0;for(let Y=0;Y<i.length;Y++){const pe=i[Y];if(pe.type==="elem"){const we=pe.elem;l=Math.max(l,we.maxFontSize,we.height)}}l+=2;const h=zt(["pstrut"],[]);h.style.height=re(l);const g=[];let y=o,B=o,k=o;for(let Y=0;Y<i.length;Y++){const pe=i[Y];if(pe.type==="kern")k+=pe.size;else{const we=pe.elem,Ie=pe.wrapperClasses||[],Re=pe.wrapperStyle||{},qe=zt(Ie,[h,we],void 0,Re);qe.style.top=re(-l-k-we.depth),pe.marginLeft&&(qe.style.marginLeft=pe.marginLeft),pe.marginRight&&(qe.style.marginRight=pe.marginRight),g.push(qe),k+=we.height+we.depth}y=Math.min(y,k),B=Math.max(B,k)}const N=zt(["vlist"],g);N.style.height=re(B);let I;if(y<0){const Y=zt([],[]),pe=zt(["vlist"],[Y]);pe.style.height=re(-y);const we=zt(["vlist-s"],[new Vt("â")]);I=[zt(["vlist-r"],[N,we]),zt(["vlist-r"],[pe])]}else I=[zt(["vlist-r"],[N])];const H=zt(["vlist-t"],I);return I.length===2&&H.classes.push("vlist-t2"),H.height=B,H.depth=-y,H},el=(a,r)=>{const i=zt(["mspace"],[],r),o=tt(a,r);return i.style.marginRight=re(o),i},F0=function(a,r,i){let o="";switch(a){case"amsrm":o="AMS";break;case"textrm":o="Main";break;case"textsf":o="SansSerif";break;case"texttt":o="Typewriter";break;default:o=a}let l;return r==="textbf"&&i==="textit"?l="BoldItalic":r==="textbf"?l="Bold":r==="textit"?l="Italic":l="Regular",o+"-"+l},as={mathbf:{variant:"bold",fontName:"Main-Bold"},mathrm:{variant:"normal",fontName:"Main-Regular"},textit:{variant:"italic",fontName:"Main-Italic"},mathit:{variant:"italic",fontName:"Main-Italic"},mathnormal:{variant:"italic",fontName:"Math-Italic"},mathsfit:{variant:"sans-serif-italic",fontName:"SansSerif-Italic"},mathbb:{variant:"double-struck",fontName:"AMS-Regular"},mathcal:{variant:"script",fontName:"Caligraphic-Regular"},mathfrak:{variant:"fraktur",fontName:"Fraktur-Regular"},mathscr:{variant:"script",fontName:"Script-Regular"},mathsf:{variant:"sans-serif",fontName:"SansSerif-Regular"},mathtt:{variant:"monospace",fontName:"Typewriter-Regular"}},ss={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]};var L={fontMap:as,makeSymbol:Xt,mathsym:Vo,makeSpan:zt,makeSvgSpan:rs,makeLineSpan:Xo,makeAnchor:_o,makeFragment:ns,wrapFragment:Zo,makeVList:Qo,makeOrd:Uo,makeGlue:el,staticSvg:function(a,r){const[i,o,l]=ss[a],h=new vr(i),g=new or([h],{width:re(o),height:re(l),style:"width:"+re(o),viewBox:"0 0 "+1e3*o+" "+1e3*l,preserveAspectRatio:"xMinYMin"}),y=rs(["overlay"],[g],r);return y.height=l,y.style.height=re(l),y.style.width=re(o),y},svgData:ss,tryCombineChars:Yo};const ct={number:3,unit:"mu"},kr={number:4,unit:"mu"},cr={number:5,unit:"mu"},tl={mord:{mop:ct,mbin:kr,mrel:cr,minner:ct},mop:{mord:ct,mop:ct,mrel:cr,minner:ct},mbin:{mord:kr,mop:kr,mopen:kr,minner:kr},mrel:{mord:cr,mop:cr,mopen:cr,minner:cr},mopen:{},mclose:{mop:ct,mbin:kr,mrel:cr,minner:ct},mpunct:{mord:ct,mop:ct,mrel:cr,mopen:ct,mclose:ct,mpunct:ct,minner:ct},minner:{mord:ct,mop:ct,mbin:kr,mrel:cr,mopen:ct,mpunct:ct,minner:ct}},rl={mord:{mop:ct},mop:{mord:ct,mop:ct},mbin:{},mrel:{},mopen:{},mclose:{mop:ct},mpunct:{},minner:{mop:ct}},is={},k0={},O0={};function me(a){let{type:r,names:i,props:o,handler:l,htmlBuilder:h,mathmlBuilder:g}=a;const y={type:r,numArgs:o.numArgs,argTypes:o.argTypes,allowedInArgument:!!o.allowedInArgument,allowedInText:!!o.allowedInText,allowedInMath:o.allowedInMath===void 0?!0:o.allowedInMath,numOptionalArgs:o.numOptionalArgs||0,infix:!!o.infix,primitive:!!o.primitive,handler:l};for(let B=0;B<i.length;++B)is[i[B]]=y;r&&(h&&(k0[r]=h),g&&(O0[r]=g))}function Or(a){let{type:r,htmlBuilder:i,mathmlBuilder:o}=a;me({type:r,names:[],props:{numArgs:0},handler(){throw new Error("Should never be called.")},htmlBuilder:i,mathmlBuilder:o})}const T0=function(a){return a.type==="ordgroup"&&a.body.length===1?a.body[0]:a},mt=function(a){return a.type==="ordgroup"?a.body:[a]},fr=L.makeSpan,nl=["leftmost","mbin","mopen","mrel","mop","mpunct"],al=["rightmost","mrel","mclose","mpunct"],sl={display:ae.DISPLAY,text:ae.TEXT,script:ae.SCRIPT,scriptscript:ae.SCRIPTSCRIPT},il={mord:"mord",mop:"mop",mbin:"mbin",mrel:"mrel",mopen:"mopen",mclose:"mclose",mpunct:"mpunct",minner:"minner"},bt=function(a,r,i,o){o===void 0&&(o=[null,null]);const l=[];for(let k=0;k<a.length;k++){const N=Le(a[k],r);if(N instanceof Jr){const I=N.children;l.push(...I)}else l.push(N)}if(L.tryCombineChars(l),!i)return l;let h=r;if(a.length===1){const k=a[0];k.type==="sizing"?h=r.havingSize(k.size):k.type==="styling"&&(h=r.havingStyle(sl[k.style]))}const g=fr([o[0]||"leftmost"],[],r),y=fr([o[1]||"rightmost"],[],r),B=i==="root";return wn(l,(k,N)=>{const I=N.classes[0],H=k.classes[0];I==="mbin"&&al.includes(H)?N.classes[0]="mord":H==="mbin"&&nl.includes(I)&&(k.classes[0]="mord")},{node:g},y,B),wn(l,(k,N)=>{const I=xn(N),H=xn(k),Y=I&&H?k.hasClass("mtight")?rl[I][H]:tl[I][H]:null;if(Y)return L.makeGlue(Y,h)},{node:g},y,B),l},wn=function(a,r,i,o,l){o&&a.push(o);let h=0;for(;h<a.length;
255h++){const g=a[h],y=us(g);if(y){wn(y.children,r,i,null,l);continue}const B=!g.hasClass("mspace");if(B){const k=r(g,i.node);k&&(i.insertAfter?i.insertAfter(k):(a.unshift(k),h++))}B?i.node=g:l&&g.hasClass("newline")&&(i.node=fr(["leftmost"])),i.insertAfter=(k=>N=>{a.splice(k+1,0,N),h++})(h)}o&&a.pop()},us=function(a){return a instanceof Jr||a instanceof Zr||a instanceof Fr&&a.hasClass("enclosing")?a:null},Cn=function(a,r){const i=us(a);if(i){const o=i.children;if(o.length){if(r==="right")return Cn(o[o.length-1],"right");if(r==="left")return Cn(o[0],"left")}}return a},xn=function(a,r){return a?(r&&(a=Cn(a,r)),il[a.classes[0]]||null):null},Qr=function(a,r){const i=["nulldelimiter"].concat(a.baseSizingClasses());return fr(r.concat(i))},Le=function(a,r,i){if(!a)return fr();if(k0[a.type]){let o=k0[a.type](a,r);if(i&&r.size!==i.size){o=fr(r.sizingClasses(i),[o],r);const l=r.sizeMultiplier/i.sizeMultiplier;o.height*=l,o.depth*=l}return o}else throw new f("Got group of unknown type: '"+a.type+"'")};function M0(a,r){const i=fr(["base"],a,r),o=fr(["strut"]);return o.style.height=re(i.height+i.depth),i.depth&&(o.style.verticalAlign=re(-i.depth)),i.children.unshift(o),i}function Bn(a,r){let i=null;a.length===1&&a[0].type==="tag"&&(i=a[0].tag,a=a[0].body);const o=bt(a,r,"root");let l;o.length===2&&o[1].hasClass("tag")&&(l=o.pop());const h=[];let g=[];for(let k=0;k<o.length;k++)if(g.push(o[k]),o[k].hasClass("mbin")||o[k].hasClass("mrel")||o[k].hasClass("allowbreak")){let N=!1;for(;k<o.length-1&&o[k+1].hasClass("mspace")&&!o[k+1].hasClass("newline");)k++,g.push(o[k]),o[k].hasClass("nobreak")&&(N=!0);N||(h.push(M0(g,r)),g=[])}else o[k].hasClass("newline")&&(g.pop(),g.length>0&&(h.push(M0(g,r)),g=[]),h.push(o[k]));g.length>0&&h.push(M0(g,r));let y;i?(y=M0(bt(i,r,!0)),y.classes=["tag"],h.push(y)):l&&h.push(l);const B=fr(["katex-html"],h);if(B.setAttribute("aria-hidden","true"),y){const k=y.children[0];k.style.height=re(B.height+B.depth),B.depth&&(k.style.verticalAlign=re(-B.depth))}return B}function os(a){return new Jr(a)}class Ht{constructor(r,i,o){this.type=void 0,this.attributes=void 0,this.children=void 0,this.classes=void 0,this.type=r,this.attributes={},this.children=i||[],this.classes=o||[]}setAttribute(r,i){this.attributes[r]=i}getAttribute(r){return this.attributes[r]}toNode(){const r=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(const i in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,i)&&r.setAttribute(i,this.attributes[i]);this.classes.length>0&&(r.className=At(this.classes));for(let i=0;i<this.children.length;i++)if(this.children[i]instanceof Qt&&this.children[i+1]instanceof Qt){let o=this.children[i].toText()+this.children[++i].toText();for(;this.children[i+1]instanceof Qt;)o+=this.children[++i].toText();r.appendChild(new Qt(o).toNode())}else r.appendChild(this.children[i].toNode());return r}toMarkup(){let r="<"+this.type;for(const i in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,i)&&(r+=" "+i+'="',r+=p.escape(this.attributes[i]),r+='"');this.classes.length>0&&(r+=' class ="'+p.escape(At(this.classes))+'"'),r+=">";for(let i=0;i<this.children.length;i++)r+=this.children[i].toMarkup();return r+="</"+this.type+">",r}toText(){return this.children.map(r=>r.toText()).join("")}}class Qt{constructor(r){this.text=void 0,this.text=r}toNode(){return document.createTextNode(this.text)}toMarkup(){return p.escape(this.toText())}toText(){return this.text}}class ul{constructor(r){this.width=void 0,this.character=void 0,this.width=r,r>=.05555&&r<=.05556?this.character="â":r>=.1666&&r<=.1667?this.character="â":r>=.2222&&r<=.2223?this.character="â
":r>=.2777&&r<=.2778?this.character="â
â":r>=-.05556&&r<=-.05555?this.character="ââ£":r>=-.1667&&r<=-.1666?this.character="ââ£":r>=-.2223&&r<=-.2222?this.character="ââ£":r>=-.2778&&r<=-.2777?this.character="â
â£":this.character=null}toNode(){if(this.character)return document.createTextNode(this.character);{const r=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return r.setAttribute("width",re(this.width)),r}}toMarkup(){return this.character?"<mtext>"+this.character+"</mtext>":'<mspace width="'+re(this.width)+'"/>'}toText(){return this.character?this.character:" "}}var J={MathNode:Ht,TextNode:Qt,SpaceNode:ul,newDocumentFragment:os};const Gt=function(a,r,i){return lt[r][a]&<[r][a].replace&&a.charCodeAt(0)!==55349&&!(Ja.hasOwnProperty(a)&&i&&(i.fontFamily&&i.fontFamily.slice(4,6)==="tt"||i.font&&i.font.slice(4,6)==="tt"))&&(a=lt[r][a].replace),new J.TextNode(a)},An=function(a){return a.length===1?a[0]:new J.MathNode("mrow",a)},En=function(a,r){if(r.fontFamily==="texttt")return"monospace";if(r.fontFamily==="textsf")return r.fontShape==="textit"&&r.fontWeight==="textbf"?"sans-serif-bold-italic":r.fontShape==="textit"?"sans-serif-italic":r.fontWeight==="textbf"?"bold-sans-serif":"sans-serif";if(r.fontShape==="textit"&&r.fontWeight==="textbf")return"bold-italic";if(r.fontShape==="textit")return"italic";if(r.fontWeight==="textbf")return"bold";const i=r.font;if(!i||i==="mathnormal")return null;const o=a.mode;if(i==="mathit")return"italic";if(i==="boldsymbol")return a.type==="textord"?"bold":"bold-italic";if(i==="mathbf")return"bold";if(i==="mathbb")return"double-struck";if(i==="mathsfit")return"sans-serif-italic";if(i==="mathfrak")return"fraktur";if(i==="mathscr"||i==="mathcal")return"script";if(i==="mathsf")return"sans-serif";if(i==="mathtt")return"monospace";let l=a.text;if(["\\imath","\\jmath"].includes(l))return null;lt[o][l]&<[o][l].replace&&(l=lt[o][l].replace);const h=L.fontMap[i].fontName;return Tt(l,h,o)?L.fontMap[i].variant:null};
255function Sn(a){if(!a)return!1;if(a.type==="mi"&&a.children.length===1){const r=a.children[0];return r instanceof Qt&&r.text==="."}else if(a.type==="mo"&&a.children.length===1&&a.getAttribute("separator")==="true"&&a.getAttribute("lspace")==="0em"&&a.getAttribute("rspace")==="0em"){const r=a.children[0];return r instanceof Qt&&r.text===","}else return!1}const Nt=function(a,r,i){if(a.length===1){const h=rt(a[0],r);return i&&h instanceof Ht&&h.type==="mo"&&(h.setAttribute("lspace","0em"),h.setAttribute("rspace","0em")),[h]}const o=[];let l;for(let h=0;h<a.length;h++){const g=rt(a[h],r);if(g instanceof Ht&&l instanceof Ht){if(g.type==="mtext"&&l.type==="mtext"&&g.getAttribute("mathvariant")===l.getAttribute("mathvariant")){l.children.push(...g.children);continue}else if(g.type==="mn"&&l.type==="mn"){l.children.push(...g.children);continue}else if(Sn(g)&&l.type==="mn"){l.children.push(...g.children);continue}else if(g.type==="mn"&&Sn(l))g.children=[...l.children,...g.children],o.pop();else if((g.type==="msup"||g.type==="msub")&&g.children.length>=1&&(l.type==="mn"||Sn(l))){const y=g.children[0];y instanceof Ht&&y.type==="mn"&&(y.children=[...l.children,...y.children],o.pop())}else if(l.type==="mi"&&l.children.length===1){const y=l.children[0];if(y instanceof Qt&&y.text==="̸"&&(g.type==="mo"||g.type==="mi"||g.type==="mn")){const B=g.children[0];B instanceof Qt&&B.text.length>0&&(B.text=B.text.slice(0,1)+"̸"+B.text.slice(1),o.pop())}}}o.push(g),l=g}return o},br=function(a,r,i){return An(Nt(a,r,i))},rt=function(a,r){if(!a)return new J.MathNode("mrow");if(O0[a.type])return O0[a.type](a,r);throw new f("Got group of unknown type: '"+a.type+"'")};function ls(a,r,i,o,l){const h=Nt(a,i);let g;h.length===1&&h[0]instanceof Ht&&["mrow","mtable"].includes(h[0].type)?g=h[0]:g=new J.MathNode("mrow",h);const y=new J.MathNode("annotation",[new J.TextNode(r)]);y.setAttribute("encoding","application/x-tex");const B=new J.MathNode("semantics",[g,y]),k=new J.MathNode("math",[B]);k.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),o&&k.setAttribute("display","block");const N=l?"katex":"katex-mathml";return L.makeSpan([N],[k])}const cs=function(a){return new Bt({style:a.displayMode?ae.DISPLAY:ae.TEXT,maxSize:a.maxSize,minRuleThickness:a.minRuleThickness})},fs=function(a,r){if(r.displayMode){const i=["katex-display"];r.leqno&&i.push("leqno"),r.fleqn&&i.push("fleqn"),a=L.makeSpan(i,[a])}return a},ol=function(a,r,i){const o=cs(i);let l;if(i.output==="mathml")return ls(a,r,o,i.displayMode,!0);if(i.output==="html"){const h=Bn(a,o);l=L.makeSpan(["katex"],[h])}else{const h=ls(a,r,o,i.displayMode,!1),g=Bn(a,o);l=L.makeSpan(["katex"],[h,g])}return fs(l,i)},ll=function(a,r,i){const o=cs(i),l=Bn(a,o),h=L.makeSpan(["katex"],[l]);return fs(h,i)},cl={widehat:"^",widecheck:"Ë",widetilde:"~",utilde:"~",overleftarrow:"â",underleftarrow:"â",xleftarrow:"â",overrightarrow:"â",underrightarrow:"â",xrightarrow:"â",underbrace:"â",overbrace:"â",overgroup:"â ",undergroup:"â¡",overleftrightarrow:"â",underleftrightarrow:"â",xleftrightarrow:"â",Overrightarrow:"â",xRightarrow:"â",overleftharpoon:"â¼",xleftharpoonup:"â¼",overrightharpoon:"â",xrightharpoonup:"â",xLeftarrow:"â",xLeftrightarrow:"â",xhookleftarrow:"â©",xhookrightarrow:"âª",xmapsto:"â¦",xrightharpoondown:"â",xleftharpoondown:"â½",xrightleftharpoons:"â",xleftrightharpoons:"â",xtwoheadleftarrow:"â",xtwoheadrightarrow:"â ",xlongequal:"=",xtofrom:"â",xrightleftarrows:"â",xrightequilibrium:"â",xleftequilibrium:"â","\\cdrightarrow":"â","\\cdleftarrow":"â","\\cdlongequal":"="},fl=function(a){const r=new J.MathNode("mo",[new J.TextNode(cl[a.replace(/^\\/,"")])]);return r.setAttribute("stretchy","true"),r},hl={overrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],overleftarrow:[["leftarrow"],.888,522,"xMinYMin"],underrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],underleftarrow:[["leftarrow"],.888,522,"xMinYMin"],xrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],"\\cdrightarrow":[["rightarrow"],3,522,"xMaxYMin"],xleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],"\\cdleftarrow":[["leftarrow"],3,522,"xMinYMin"],Overrightarrow:[["doublerightarrow"],.888,560,"xMaxYMin"],xRightarrow:[["doublerightarrow"],1.526,560,"xMaxYMin"],xLeftarrow:[["doubleleftarrow"],1.526,560,"xMinYMin"],overleftharpoon:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoonup:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoondown:[["leftharpoondown"],.888,522,"xMinYMin"],overrightharpoon:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoonup:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoondown:[["rightharpoondown"],.888,522,"xMaxYMin"],xlongequal:[["longequal"],.888,334,"xMinYMin"],"\\cdlongequal":[["longequal"],3,334,"xMinYMin"],xtwoheadleftarrow:[["twoheadleftarrow"],.888,334,"xMinYMin"],xtwoheadrightarrow:[["twoheadrightarrow"],.888,334,"xMaxYMin"],overleftrightarrow:[["leftarrow","rightarrow"],.888,522],overbrace:[["leftbrace","midbrace","rightbrace"],1.6,548],underbrace:[["leftbraceunder","midbraceunder","rightbraceunder"],1.6,548],underleftrightarrow:[["leftarrow","rightarrow"],.888,522],xleftrightarrow:[["leftarrow","rightarrow"],1.75,522],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],xhookleftarrow:[["leftarrow","righthook"],1.08,522],xhookrightarrow:[["lefthook","rightarrow"],1.08,522],overlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],underlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],overgroup:[["leftgroup","rightgroup"],.888,342],undergroup:[["leftgroupunder","rightgroupunder"],.888,342],xmapsto:[["leftmapsto","rightarrow"],1.5,522],xtofrom:[["leftToFrom","rightToFrom"],1.75,528],xrightleftarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],xrightequilibrium:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xleftequilibrium:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]},dl=function(a){return a.type==="ordgroup"?a.body.length:1};var hr={encloseSpan:function(a,r,i,o,l){let h;const g=a.height+a.depth+i+o;if(/fbox|color|angl/.test(r)){if(h=L.makeSpan(["stretchy",r],[],l),r==="fbox"){const y=l.color&&l.getColor();y&&(h.style.borderColor=y)}}else{const y=[];/^[bx]cancel$/.test(r)&&y.push(new bn({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(r)&&y.push(new bn({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));const B=new or(y,{width:"100%",height:re(g)});h=L.makeSvgSpan([],[B],l)}return h.height=g,h.style.height=re(g),h},mathMLnode:fl,svgSpan:function(a,r){function i(){let g=4e5;const y=a.label.slice(1);if(["widehat","widecheck","widetilde","utilde"].includes(y)){const k=dl(a.base);let N,I,H;if(k>5)y==="widehat"||y==="widecheck"?(N=420,g=2364,H=.42,I=y+"4"):(N=312,g=2340,H=.34,I="tilde4");else{const we=[1,1,2,2,3,3][k];y==="widehat"||y==="widecheck"?(g=[0,1062,2364,2364,2364][we],N=[0,239,300,360,420][we],H=[0,.24,.3,.3,.36,.42][we],I=y+we):(g=[0,600,
2551033,2339,2340][we],N=[0,260,286,306,312][we],H=[0,.26,.286,.3,.306,.34][we],I="tilde"+we)}const Y=new vr(I),pe=new or([Y],{width:"100%",height:re(H),viewBox:"0 0 "+g+" "+N,preserveAspectRatio:"none"});return{span:L.makeSvgSpan([],[pe],r),minWidth:0,height:H}}else{const B=[],k=hl[y],[N,I,H]=k,Y=H/1e3,pe=N.length;let we,Ie;if(pe===1){const Re=k[3];we=["hide-tail"],Ie=[Re]}else if(pe===2)we=["halfarrow-left","halfarrow-right"],Ie=["xMinYMin","xMaxYMin"];else if(pe===3)we=["brace-left","brace-center","brace-right"],Ie=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support 256 `+pe+" children.");for(let Re=0;Re<pe;Re++){const qe=new vr(N[Re]),Ye=new or([qe],{width:"400em",height:re(Y),viewBox:"0 0 "+g+" "+H,preserveAspectRatio:Ie[Re]+" slice"}),nt=L.makeSvgSpan([we[Re]],[Ye],r);if(pe===1)return{span:nt,minWidth:I,height:Y};nt.style.height=re(Y),B.push(nt)}return{span:L.makeSpan(["stretchy"],B,r),minWidth:I,height:Y}}}const{span:o,minWidth:l,height:h}=i();return o.height=h,o.style.height=re(h),l>0&&(o.style.minWidth=re(l)),o}};function Ne(a,r){if(!a||a.type!==r)throw new Error("Expected node of type "+r+", but got "+(a?"node of type "+a.type:String(a)));return a}function Fn(a){const r=z0(a);if(!r)throw new Error("Expected node of symbol group type, but got "+(a?"node of type "+a.type:String(a)));return r}function z0(a){return a&&(a.type==="atom"||Wo.hasOwnProperty(a.type))?a:null}const kn=(a,r)=>{let i,o,l;a&&a.type==="supsub"?(o=Ne(a.base,"accent"),i=o.base,a.base=i,l=jo(Le(a,r)),a.base=o):(o=Ne(a,"accent"),i=o.base);const h=Le(i,r.havingCrampedStyle()),g=o.isShifty&&p.isCharacterBox(i);let y=0;if(g){const H=p.getBaseElem(i),Y=Le(H,r.havingCrampedStyle());y=Za(Y).skew}const B=o.label==="\\c";let k=B?h.height+h.depth:Math.min(h.height,r.fontMetrics().xHeight),N;if(o.isStretchy)N=hr.svgSpan(o,r),N=L.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:h},{type:"elem",elem:N,wrapperClasses:["svg-align"],wrapperStyle:y>0?{width:"calc(100% - "+re(2*y)+")",marginLeft:re(2*y)}:void 0}]},r);else{let H,Y;o.label==="\\vec"?(H=L.staticSvg("vec",r),Y=L.svgData.vec[1]):(H=L.makeOrd({mode:o.mode,text:o.label},r,"textord"),H=Za(H),H.italic=0,Y=H.width,B&&(k+=H.depth)),N=L.makeSpan(["accent-body"],[H]);const pe=o.label==="\\textcircled";pe&&(N.classes.push("accent-full"),k=h.height);let we=y;pe||(we-=Y/2),N.style.left=re(we),o.label==="\\textcircled"&&(N.style.top=".2em"),N=L.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:h},{type:"kern",size:-k},{type:"elem",elem:N}]},r)}const I=L.makeSpan(["mord","accent"],[N],r);return l?(l.children[0]=I,l.height=Math.max(I.height,l.height),l.classes[0]="mord",l):I},hs=(a,r)=>{const i=a.isStretchy?hr.mathMLnode(a.label):new J.MathNode("mo",[Gt(a.label,a.mode)]),o=new J.MathNode("mover",[rt(a.base,r),i]);return o.setAttribute("accent","true"),o},ml=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(a=>"\\"+a).join("|"));me({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:(a,r)=>{const i=T0(r[0]),o=!ml.test(a.funcName),l=!o||a.funcName==="\\widehat"||a.funcName==="\\widetilde"||a.funcName==="\\widecheck";return{type:"accent",mode:a.parser.mode,label:a.funcName,isStretchy:o,isShifty:l,base:i}},htmlBuilder:kn,mathmlBuilder:hs}),me({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:(a,r)=>{const i=r[0];let o=a.parser.mode;return o==="math"&&(a.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+a.funcName+" works only in text mode"),o="text"),{type:"accent",mode:o,label:a.funcName,isStretchy:!1,isShifty:!0,base:i}},htmlBuilder:kn,mathmlBuilder:hs}),me({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:(a,r)=>{let{parser:i,funcName:o}=a;const l=r[0];return{type:"accentUnder",mode:i.mode,label:o,base:l}},htmlBuilder:(a,r)=>{const i=Le(a.base,r),o=hr.svgSpan(a,r),l=a.label==="\\utilde"?.12:0,h=L.makeVList({positionType:"top",positionData:i.height,children:[{type:"elem",elem:o,wrapperClasses:["svg-align"]},{type:"kern",size:l},{type:"elem",elem:i}]},r);return L.makeSpan(["mord","accentunder"],[h],r)},mathmlBuilder:(a,r)=>{const i=hr.mathMLnode(a.label),o=new J.MathNode("munder",[rt(a.base,r),i]);return o.setAttribute("accentunder","true"),o}});const N0=a=>{const r=new J.MathNode("mpadded",a?[a]:[]);return r.setAttribute("width","+0.6em"),r.setAttribute("lspace","0.3em"),r};me({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium","\\\\cdrightarrow","\\\\cdleftarrow","\\\\cdlongequal"],props:{numArgs:1,numOptionalArgs:1},handler(a,r,i){let{parser:o,funcName:l}=a;return{type:"xArrow",mode:o.mode,label:l,body:r[0],below:i[0]}},htmlBuilder(a,r){const i=r.style;let o=r.havingStyle(i.sup());const l=L.wrapFragment(Le(a.body,o,r),r),h=a.label.slice(0,2)==="\\x"?"x":"cd";l.classes.push(h+"-arrow-pad");let g;a.below&&(o=r.havingStyle(i.sub()),g=L.wrapFragment(Le(a.below,o,r),r),g.classes.push(h+"-arrow-pad"));const y=hr.svgSpan(a,r),B=-r.fontMetrics().axisHeight+.5*y.height;let k=-r.fontMetrics().axisHeight-.5*y.height-.111;(l.depth>.25||a.label==="\\xleftequilibrium")&&(k-=l.depth);let N;if(g){const I=-r.fontMetrics().axisHeight+g.height+.5*y.height+.111;N=L.makeVList({positionType:"individualShift",children:[{type:"elem",elem:l,shift:k},{type:"elem",elem:y,shift:B},{type:"elem",elem:g,shift:I}]},r)}else N=L.makeVList({positionType:"individualShift",children:[{type:"elem",elem:l,shift:k},{type:"elem",elem:y,shift:B}]},r);return N.children[0].children[0].children[1].classes.push("svg-align"),L.makeSpan(["mrel","x-arrow"],[N],r)},mathmlBuilder(a,r){const i=hr.mathMLnode(a.label);i.setAttribute("minsize",a.label.charAt(0)==="x"?"1.75em":"3.0em");let o;if(a.body){const l=N0(rt(a.body,r));if(a.below){const h=N0(rt(a.below,r));o=new J.MathNode("munderover",[i,h,l])}else o=new J.MathNode("mover",[i,l])}else if(a.below){const l=N0(rt(a.below,r));o=new J.MathNode("munder",[i,l])}else o=N0(),o=new J.MathNode("mover",[i,o]);return o}});const pl=L.makeSpan;function ds(a,r){const i=bt(a.body,r,!0);return pl([a.mclass],i,r)}function ms(a,r){let i;const o=Nt(a.body,r);return a.mclass==="minner"?i=new J.MathNode("mpadded",o):a.mclass==="mord"?a.isCharacterBox?(i=o[0],i.type="mi"):i=new J.MathNode("mi",o):(a.isCharacterBox?(i=o[0],i.type="mo"):i=new J.MathNode("mo",o),a.mclass==="mbin"?(i.attributes.lspace="0.22em",i.attributes.rspace="0.22em"):a.mclass==="mpunct"?(i.attributes.lspace="0em",i.attributes.rspace="0.17em"):a.mclass==="mopen"||a.mclass==="mclose"?(i.attributes.lspace="0em",i.attributes.rspace="0em"):a.mclass==="minner"&&(i.attributes.lspace="0.0556em",i.attributes.width="+0.1111em")),i}me({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1,primitive:!0},handler(a,r){let{parser:i,funcName:o}=a;const l=r[0];return{type:"mclass",mode:i.mode,mclass:"m"+o.slice(5),body:mt(l),isCharacterBox:p.isCharacterBox(l)}},htmlBuilder:ds,mathmlBuilder:ms});const P0=a=>{const r=a.type==="ordgroup"&&a.body.length?a.body[0]:a;return r.type==="atom"&&(r.family==="bin"||r.family==="rel")?"m"+r.family:"mord"};me({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler(a,r){let{parser:i}=a;return{type:"mclass",mode:i.mode,mclass:P0(r[0]),body:mt(r[1]),isCharacterBox:p.isCharacterBox(r[1])}}}),me({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler(a,r){let{parser:i,funcName:o}=a;const l=r[1],h=r[0];let g;o!=="\\stackrel"?g=P0(l):g="mrel";const y={type:"op",mode:l.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:o!=="\\stackrel",body:mt(l)},B={type:"supsub",mode:h.mode,base:y,sup:o==="\\underset"?null:h,sub:o==="\\underset"?h:null};return{type:"mclass",mode:i.mode,mclass:g,body:[B],isCharacterBox:p.isCharacterBox(B)}},htmlBuilder:ds,mathmlBuilder:ms}),me({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler(a,r){let{parser:i}=a;return{type:"pmb",mode:i.mode,mclass:P0(r[0]),body:mt(r[0])}},htmlBuilder(a,r){const i=bt(a.body,r,!0),o=L.makeSpan([a.mclass],i,r);return o.style.textShadow="0.02em 0.01em 0.04px",o},mathmlBuilder(a,r){const i=Nt(a.body,r),o=new J.MathNode("mstyle",i);return o.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),o}});const gl={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},ps=()=>({type:"styling",body:[],mode:"math",style:"display"}),gs=a=>a.type==="textord"&&a.text==="@",vl=(a,r)=>(a.type==="mathord"||a.type==="atom")&&a.text===r;function bl(a,r,i){const o=gl[a];switch(o){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return i.callFunction(o,[r[0]],[r[1]]);case"\\uparrow":case"\\downarrow":{const l=i.callFunction("\\\\cdleft",[r[0]],[]),h={type:"atom",text:o,mode:"math",family:"rel"},g=i.callFunction("\\Big",[h],[]),y=i.callFunction("\\\\cdright",[r[1]],[]),B={type:"ordgroup",mode:"math",body:[l,g,y]};return i.callFunction("\\\\cdparent",[B],[])}case"\\\\cdlongequal":return i.callFunction("\\\\cdlongequal",[],[]);
256case"\\Vert":{const l={type:"textord",text:"\\Vert",mode:"math"};return i.callFunction("\\Big",[l],[])}default:return{type:"textord",text:" ",mode:"math"}}}function Dl(a){const r=[];for(a.gullet.beginGroup(),a.gullet.macros.set("\\cr","\\\\\\relax"),a.gullet.beginGroup();;){r.push(a.parseExpression(!1,"\\\\")),a.gullet.endGroup(),a.gullet.beginGroup();const h=a.fetch().text;if(h==="&"||h==="\\\\")a.consume();else if(h==="\\end"){r[r.length-1].length===0&&r.pop();break}else throw new f("Expected \\\\ or \\cr or \\end",a.nextToken)}let i=[];const o=[i];for(let h=0;h<r.length;h++){const g=r[h];let y=ps();for(let B=0;B<g.length;B++)if(!gs(g[B]))y.body.push(g[B]);else{i.push(y),B+=1;const k=Fn(g[B]).text,N=new Array(2);if(N[0]={type:"ordgroup",mode:"math",body:[]},N[1]={type:"ordgroup",mode:"math",body:[]},!("=|.".indexOf(k)>-1))if("<>AV".indexOf(k)>-1)for(let Y=0;Y<2;Y++){let pe=!0;for(let we=B+1;we<g.length;we++){if(vl(g[we],k)){pe=!1,B=we;break}if(gs(g[we]))throw new f("Missing a "+k+" character to complete a CD arrow.",g[we]);N[Y].body.push(g[we])}if(pe)throw new f("Missing a "+k+" character to complete a CD arrow.",g[B])}else throw new f('Expected one of "<>AV=|." after @',g[B]);const H={type:"styling",body:[bl(k,N,a)],mode:"math",style:"display"};i.push(H),y=ps()}h%2===0?i.push(y):i.shift(),i=[],o.push(i)}a.gullet.endGroup(),a.gullet.endGroup();const l=new Array(o[0].length).fill({type:"align",align:"c",pregap:.25,postgap:.25});return{type:"array",mode:"math",body:o,arraystretch:1,addJot:!0,rowGaps:[null],cols:l,colSeparationType:"CD",hLinesBeforeRow:new Array(o.length+1).fill([])}}me({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],props:{numArgs:1},handler(a,r){let{parser:i,funcName:o}=a;return{type:"cdlabel",mode:i.mode,side:o.slice(4),label:r[0]}},htmlBuilder(a,r){const i=r.havingStyle(r.style.sup()),o=L.wrapFragment(Le(a.label,i,r),r);return o.classes.push("cd-label-"+a.side),o.style.bottom=re(.8-o.depth),o.height=0,o.depth=0,o},mathmlBuilder(a,r){let i=new J.MathNode("mrow",[rt(a.label,r)]);return i=new J.MathNode("mpadded",[i]),i.setAttribute("width","0"),a.side==="left"&&i.setAttribute("lspace","-1width"),i.setAttribute("voffset","0.7em"),i=new J.MathNode("mstyle",[i]),i.setAttribute("displaystyle","false"),i.setAttribute("scriptlevel","1"),i}}),me({type:"cdlabelparent",names:["\\\\cdparent"],props:{numArgs:1},handler(a,r){let{parser:i}=a;return{type:"cdlabelparent",mode:i.mode,fragment:r[0]}},htmlBuilder(a,r){const i=L.wrapFragment(Le(a.fragment,r),r);return i.classes.push("cd-vert-arrow"),i},mathmlBuilder(a,r){return new J.MathNode("mrow",[rt(a.fragment,r)])}}),me({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler(a,r){let{parser:i}=a;const l=Ne(r[0],"ordgroup").body;let h="";for(let B=0;B<l.length;B++){const k=Ne(l[B],"textord");h+=k.text}let g=parseInt(h),y;if(isNaN(g))throw new f("\\@char has non-numeric argument "+h);if(g<0||g>=1114111)throw new f("\\@char with invalid code point "+h);return g<=65535?y=String.fromCharCode(g):(g-=65536,y=String.fromCharCode((g>>10)+55296,(g&1023)+56320)),{type:"textord",mode:i.mode,text:y}}});const vs=(a,r)=>{const i=bt(a.body,r.withColor(a.color),!1);return L.makeFragment(i)},bs=(a,r)=>{const i=Nt(a.body,r.withColor(a.color)),o=new J.MathNode("mstyle",i);return o.setAttribute("mathcolor",a.color),o};me({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler(a,r){let{parser:i}=a;const o=Ne(r[0],"color-token").color,l=r[1];return{type:"color",mode:i.mode,color:o,body:mt(l)}},htmlBuilder:vs,mathmlBuilder:bs}),me({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler(a,r){let{parser:i,breakOnTokenText:o}=a;const l=Ne(r[0],"color-token").color;i.gullet.macros.set("\\current@color",l);const h=i.parseExpression(!0,o);return{type:"color",mode:i.mode,color:l,body:h}},htmlBuilder:vs,mathmlBuilder:bs}),me({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler(a,r,i){let{parser:o}=a;const l=o.gullet.future().text==="["?o.parseSizeGroup(!0):null,h=!o.settings.displayMode||!o.settings.useStrictBehavior("newLineInDisplayMode","In LaTe
256X, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:o.mode,newLine:h,size:l&&Ne(l,"size").value}},htmlBuilder(a,r){const i=L.makeSpan(["mspace"],[],r);return a.newLine&&(i.classes.push("newline"),a.size&&(i.style.marginTop=re(tt(a.size,r)))),i},mathmlBuilder(a,r){const i=new J.MathNode("mspace");return a.newLine&&(i.setAttribute("linebreak","newline"),a.size&&i.setAttribute("height",re(tt(a.size,r)))),i}});const On={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},Ds=a=>{const r=a.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(r))throw new f("Expected a control sequence",a);return r},yl=a=>{let r=a.gullet.popToken();return r.text==="="&&(r=a.gullet.popToken(),r.text===" "&&(r=a.gullet.popToken())),r},ys=(a,r,i,o)=>{let l=a.gullet.macros.get(i.text);l==null&&(i.noexpand=!0,l={tokens:[i],numArgs:0,unexpandable:!a.gullet.isExpandable(i.text)}),a.gullet.macros.set(r,l,o)};me({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:!0},handler(a){let{parser:r,funcName:i}=a;r.consumeSpaces();const o=r.fetch();if(On[o.text])return(i==="\\global"||i==="\\\\globallong")&&(o.text=On[o.text]),Ne(r.parseFunction(),"internal");throw new f("Invalid token after macro prefix",o)}}),me({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(a){let{parser:r,funcName:i}=a,o=r.gullet.popToken();const l=o.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(l))throw new f("Expected a control sequence",o);let h=0,g;const y=[[]];for(;r.gullet.future().text!=="{";)if(o=r.gullet.popToken(),o.text==="#"){if(r.gullet.future().text==="{"){g=r.gullet.future(),y[h].push("{");break}if(o=r.gullet.popToken(),!/^[1-9]$/.test(o.text))throw new f('Invalid argument number "'+o.text+'"');if(parseInt(o.text)!==h+1)throw new f('Argument number "'+o.text+'" out of order');h++,y.push([])}else{if(o.text==="EOF")throw new f("Expected a macro definition");y[h].push(o.text)}let{tokens:B}=r.gullet.consumeArg();return g&&B.unshift(g),(i==="\\edef"||i==="\\xdef")&&(B=r.gullet.expandTokens(B),B.reverse()),r.gullet.macros.set(l,{tokens:B,numArgs:h,delimiters:y},i===On[i]),{type:"internal",mode:r.mode}}}),me({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(a){let{parser:r,funcName:i}=a;const o=Ds(r.gullet.popToken());r.gullet.consumeSpaces();const l=yl(r);return ys(r,o,l,i==="\\\\globallet"),{type:"internal",mode:r.mode}}}),me({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(a){let{parser:r,funcName:i}=a;const o=Ds(r.gullet.popToken()),l=r.gullet.popToken(),h=r.gullet.popToken();return ys(r,o,h,i==="\\\\globalfuture"),r.gullet.pushToken(h),r.gullet.pushToken(l),{type:"internal",mode:r.mode}}});const e0=function(a,r,i){const o=lt.math[a]&<.math[a].replace,l=Tt(o||a,r,i);if(!l)throw new Error("Unsupported symbol "+a+" and font size "+r+".");return l},Tn=function(a,r,i,o){const l=i.havingBaseStyle(r),h=L.makeSpan(o.concat(l.sizingClasses(i)),[a],i),g=l.sizeMultiplier/i.sizeMultiplier;return h.height*=g,h.depth*=g,h.maxFontSize=l.sizeMultiplier,h},ws=function(a,r,i){const o=r.havingBaseStyle(i),l=(1-r.sizeMultiplier/o.sizeMultiplier)*r.fontMetrics().axisHeight;a.classes.push("delimcenter"),a.style.top=re(l),a.height-=l,a.depth+=l},wl=function(a,r,i,o,l,h){const g=L.makeSymbol(a,"Main-Regular",l,o),y=Tn(g,r,o,h);return i&&ws(y,o,r),y},Cl=function(a,r,i,o){return L.makeSymbol(a,"Size"+r+"-Regular",i,o)},Cs=function(a,r,i,o,l,h){const g=Cl(a,r,l,o),y=Tn(L.makeSpan(["delimsizing","size"+r],[g],o),ae.TEXT,o,h);return i&&ws(y,o,ae.TEXT),y},Mn=function(a,r,i){let o;return r==="Size1-Regular"?o="delim-size1":o="delim-size4",{type:"elem",elem:L.makeSpan(["delimsizinginner",o],[L.makeSpan([],[L.makeSymbol(a,r,i)])])}},zn=function(a,r,i){const o=$e["Size4-Regular"][a.charCodeAt(0)]?$e["Size4-Regular"][a.charCodeAt(0)][4]:$e["Size1-Regular"][a.charCodeAt(0)][4],l=new vr("inner",Ee(a,Math.round(1e3*r))),h=new or([l],{width:re(o),height:re(r),style:"width:"+re(o),viewBox:"0 0 "+1e3*o+" "+Math.round(1e3*r),preserveAspectRatio:"xMinYMin"}),g=L.makeSvgSpan([],[h],i);return g.height=r,g.style.height=re(r),g.style.width=re(o),{type:"elem",elem:g}},Nn=.008,R0={type:"kern",size:-1*Nn},xl=["|","\\lvert","\\rvert","\\vert"],Bl=["\\|","\\lVert","\\rVert","\\Vert"],xs=function(a,r,i,o,l,h){let g,y,B,k,N="",I=0;g=B=k=a,y=null;let H="Size1-Regular";a==="\\uparrow"?B=k="â":a==="\\Uparrow"?B=k="â":a==="\\downarrow"?g=B="â":a==="\\Downarrow"?g=B="â":a==="\\updownarrow"?(g="\\uparrow",B="â",k="\\downarrow"):a==="\\Updownarrow"?(g="\\Uparrow",B="â",k="\\Downarrow"):xl.includes(a)?(B="â£",N="vert",I=333):Bl.includes(a)?(B="â¥",N="doublevert",I=556):a==="["||a==="\\lbrack"?(g="â¡",B="â¢",k="â£",H="Size4-Regular",N="lbrack",I=667):a==="]"||a==="\\rbrack"?(g="â¤",B="â¥",k="â¦",H="Size4-Regular",N="rbrack",I=667):a==="\\lfloor"||a==="â"?(B=g="â¢",k="â£",H="Size4-Regular",N="lfloor",I=667):a==="\\lceil"||a==="â"?(g="â¡",B=k="â¢",H="Size4-Regular",N="lceil",I=667):a==="\\rfloor"||a==="â"?(B=g="â¥",k="â¦",H="Size4-Regular",N="rfloor",I=667):a==="\\rceil"||a==="â"?(g="â¤",B=k="â¥",H="Size4-Regular",N="rceil",I=667):a==="("||a==="\\lparen"?(g="â",B="â",k="â",H="Size4-Regular",N="lparen",I=875):a===")"||a==="\\rparen"?(g="â",B="â",k="â ",H="Size4-Regular",N="rparen",I=875):a==="\\{"||a==="\\lbrace"?(g="â§",y="â¨",k="â©",B="âª",H="Size4-Regular"):a==="\\}"||a==="\\rbrace"?(g="â«",y="â¬",k="â",B="âª",H="Size4-Regular"):a==="\\lgroup"||a==="â®"?(g="â§",k="â©",B="âª",H="Size4-Regular"):a==="\\rgroup"||a==="â¯"?(g="â«",k="â",B="âª",H="Size4-Regular"):a==="\\lmou
256stache"||a==="â°"?(g="â§",k="â",B="âª",H="Size4-Regular"):(a==="\\rmoustache"||a==="â±")&&(g="â«",k="â©",B="âª",H="Size4-Regular");const Y=e0(g,H,l),pe=Y.height+Y.depth,we=e0(B,H,l),Ie=we.height+we.depth,Re=e0(k,H,l),qe=Re.height+Re.depth;let Ye=0,nt=1;if(y!==null){const dt=e0(y,H,l);Ye=dt.height+dt.depth,nt=2}const St=pe+qe+Ye,Dt=Math.max(0,Math.ceil((r-St)/(nt*Ie))),Ut=St+Dt*nt*Ie;let $r=o.fontMetrics().axisHeight;i&&($r*=o.sizeMultiplier);const je=Ut/2-$r,Je=[];if(N.length>0){const dt=Ut-pe-qe,ft=Math.round(Ut*1e3),Kt=et(N,Math.round(dt*1e3)),_l=new vr(N,Kt),di=(I/1e3).toFixed(3)+"em",mi=(ft/1e3).toFixed(3)+"em",Zl=new or([_l],{width:di,height:mi,viewBox:"0 0 "+I+" "+ft}),H0=L.makeSvgSpan([],[Zl],o);H0.height=ft/1e3,H0.style.width=di,H0.style.height=mi,Je.push({type:"elem",elem:H0})}else{if(Je.push(Mn(k,H,l)),Je.push(R0),y===null){const dt=Ut-pe-qe+2*Nn;Je.push(zn(B,dt,o))}else{const dt=(Ut-pe-qe-Ye)/2+2*Nn;Je.push(zn(B,dt,o)),Je.push(R0),Je.push(Mn(y,H,l)),Je.push(R0),Je.push(zn(B,dt,o))}Je.push(R0),Je.push(Mn(g,H,l))}const at=o.havingBaseStyle(ae.TEXT),it=L.makeVList({positionType:"bottom",positionData:je,children:Je},at);return Tn(L.makeSpan(["delimsizing","mult"],[it],at),ae.TEXT,o,h)},Pn=80,Rn=.08,In=function(a,r,i,o,l){const h=Ge(a,o,i),g=new vr(a,h),y=new or([g],{width:"400em",height:re(r),viewBox:"0 0 400000 "+i,preserveAspectRatio:"xMinYMin slice"});return L.makeSvgSpan(["hide-tail"],[y],l)},Al=function(a,r){const i=r.havingBaseSizing(),o=Ss("\\surd",a*i.sizeMultiplier,Es,i);let l=i.sizeMultiplier;const h=Math.max(0,r.minRuleThickness-r.fontMetrics().sqrtRuleThickness);let g,y=0,B=0,k=0,N;return o.type==="small"?(k=1e3+1e3*h+Pn,a<1?l=1:a<1.4&&(l=.7),y=(1+h+Rn)/l,B=(1+h)/l,g=In("sqrtMain",y,k,h,r),g.style.minWidth="0.853em",N=.833/l):o.type==="large"?(k=(1e3+Pn)*t0[o.size],B=(t0[o.size]+h)/l,y=(t0[o.size]+h+Rn)/l,g=In("sqrtSize"+o.size,y,k,h,r),g.style.minWidth="1.02em",N=1/l):(y=a+h+Rn,B=a+h,k=Math.floor(1e3*a+h)+Pn,g=In("sqrtTall",y,k,h,r),g.style.minWidth="0.742em",N=1.056),g.height=B,g.style.height=re(y),{span:g,advanceWidth:N,ruleWidth:(r.fontMetrics().sqrtRuleThickness+h)*l}},Bs=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","â","â","\\lceil","\\rceil","â","â","\\surd"],El=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","â®","â¯","\\lmoustache","\\rmoustache","â°","â±"],As=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],t0=[0,1.2,1.8,2.4,3],Sl=function(a,r,i,o,l){if(a==="<"||a==="\\lt"||a==="â¨"?a="\\langle":(a===">"||a==="\\gt"||a==="â©")&&(a="\\rangle"),Bs.includes(a)||As.includes(a))return Cs(a,r,!1,i,o,l);if(El.includes(a))return xs(a,t0[r],!1,i,o,l);throw new f("Illegal delimiter: '"+a+"'")},Fl=[{type:"small",style:ae.SCRIPTSCRIPT},{type:"small",style:ae.SCRIPT},{type:"small",style:ae.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],kl=[{type:"small",style:ae.SCRIPTSCRIPT},{type:"small",style:ae.SCRIPT},{type:"small",style:ae.TEXT},{type:"stack"}],Es=[{type:"small",style:ae.SCRIPTSCRIPT},{type:"small",style:ae.SCRIPT},{type:"small",style:ae.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],Ol=function(a){if(a.type==="small")return"Main-Regular";if(a.type==="large")return"Size"+a.size+"-Regular";if(a.type==="stack")return"Size4-Regular";throw new Error("Add support for delim type '"+a.type+"' here.")},Ss=function(a,r,i,o){const l=Math.min(2,3-o.style.size);for(let h=l;h<i.length&&i[h].type!=="stack";h++){const g=e0(a,Ol(i[h]),"math");let y=g.height+g.depth;if(i[h].type==="small"){const B=o.havingBaseStyle(i[h].style);y*=B.sizeMultiplier}if(y>r)return i[h]}return i[i.length-1]},Fs=function(a,r,i,o,l,h){a==="<"||a==="\\lt"||a==="â¨"?a="\\langle":(a===">"||a==="\\gt"||a==="â©")&&(a="\\rangle");let g;As.includes(a)?g=Fl:Bs.includes(a)?g=Es:g=kl;const y=Ss(a,r,g,o);return y.type==="small"?wl(a,y.style,i,o,l,h):y.type==="large"?Cs(a,y.size,i,o,l,h):xs(a,r,i,o,l,h)};var dr={sqrtImage:Al,sizedDelim:Sl,sizeToMaxHeight:t0,customSizedDelim:Fs,leftRightDelim:function(a,r,i,o,l,h){const g=o.fontMetrics().axisHeight*o.sizeMultiplier,y=901,B=5/o.fontMetrics().ptPerEm,k=Math.max(r-g,i+g),N=Math.max(k/500*y,2*k-B);return Fs(a,N,!0,o,l,h)}};const ks={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}},Tl=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","â","â","\\lceil","\\rceil","â","â","<",">","\\langle","â¨","\\rangle","â©","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","â®","â¯","\\lmoustache","\\rmoustache","â°","â±","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."];function I0(a,r){const i=z0(a);if(i&&Tl.includes(i.text))return i;throw i?new f("Invalid delimiter '"+i.text+"' after '"+r.funcName+"'",a):new f("Invalid delimiter type '"+a.type+"'",a)}me({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1,argTypes:["primitive"]},handler:(a,r)=>{const i=I0(r[0],a);return{type:"delimsizing",mode:a.parser.mode,size:ks[a.funcName].size,mclass:ks[a.funcName].mclass,delim:i.text}},htmlBuilder:(a,r)=>a.delim==="."?L.makeSpan([a.mclass]):dr.sizedDelim(a.delim,a.size,r,a.mode,[a.mclass]),mathmlBuilder:
256a=>{const r=[];a.delim!=="."&&r.push(Gt(a.delim,a.mode));const i=new J.MathNode("mo",r);a.mclass==="mopen"||a.mclass==="mclose"?i.setAttribute("fence","true"):i.setAttribute("fence","false"),i.setAttribute("stretchy","true");const o=re(dr.sizeToMaxHeight[a.size]);return i.setAttribute("minsize",o),i.setAttribute("maxsize",o),i}});function Os(a){if(!a.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}me({type:"leftright-right",names:["\\right"],props:{numArgs:1,primitive:!0},handler:(a,r)=>{const i=a.parser.gullet.macros.get("\\current@color");if(i&&typeof i!="string")throw new f("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:a.parser.mode,delim:I0(r[0],a).text,color:i}}}),me({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:(a,r)=>{const i=I0(r[0],a),o=a.parser;++o.leftrightDepth;const l=o.parseExpression(!1);--o.leftrightDepth,o.expect("\\right",!1);const h=Ne(o.parseFunction(),"leftright-right");return{type:"leftright",mode:o.mode,body:l,left:i.text,right:h.delim,rightColor:h.color}},htmlBuilder:(a,r)=>{Os(a);const i=bt(a.body,r,!0,["mopen","mclose"]);let o=0,l=0,h=!1;for(let B=0;B<i.length;B++)i[B].isMiddle?h=!0:(o=Math.max(i[B].height,o),l=Math.max(i[B].depth,l));o*=r.sizeMultiplier,l*=r.sizeMultiplier;let g;if(a.left==="."?g=Qr(r,["mopen"]):g=dr.leftRightDelim(a.left,o,l,r,a.mode,["mopen"]),i.unshift(g),h)for(let B=1;B<i.length;B++){const N=i[B].isMiddle;N&&(i[B]=dr.leftRightDelim(N.delim,o,l,N.options,a.mode,[]))}let y;if(a.right===".")y=Qr(r,["mclose"]);else{const B=a.rightColor?r.withColor(a.rightColor):r;y=dr.leftRightDelim(a.right,o,l,B,a.mode,["mclose"])}return i.push(y),L.makeSpan(["minner"],i,r)},mathmlBuilder:(a,r)=>{Os(a);const i=Nt(a.body,r);if(a.left!=="."){const o=new J.MathNode("mo",[Gt(a.left,a.mode)]);o.setAttribute("fence","true"),i.unshift(o)}if(a.right!=="."){const o=new J.MathNode("mo",[Gt(a.right,a.mode)]);o.setAttribute("fence","true"),a.rightColor&&o.setAttribute("mathcolor",a.rightColor),i.push(o)}return An(i)}}),me({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:(a,r)=>{const i=I0(r[0],a);if(!a.parser.leftrightDepth)throw new f("\\middle without preceding \\left",i);return{type:"middle",mode:a.parser.mode,delim:i.text}},htmlBuilder:(a,r)=>{let i;if(a.delim===".")i=Qr(r,[]);else{i=dr.sizedDelim(a.delim,1,r,a.mode,[]);const o={delim:a.delim,options:r};i.isMiddle=o}return i},mathmlBuilder:(a,r)=>{const i=a.delim==="\\vert"||a.delim==="|"?Gt("|","text"):Gt(a.delim,a.mode),o=new J.MathNode("mo",[i]);return o.setAttribute("fence","true"),o.setAttribute("lspace","0.05em"),o.setAttribute("rspace","0.05em"),o}});const qn=(a,r)=>{const i=L.wrapFragment(Le(a.body,r),r),o=a.label.slice(1);let l=r.sizeMultiplier,h,g=0;const y=p.isCharacterBox(a.body);if(o==="sout")h=L.makeSpan(["stretchy","sout"]),h.height=r.fontMetrics().defaultRuleThickness/l,g=-.5*r.fontMetrics().xHeight;else if(o==="phase"){const k=tt({number:.6,unit:"pt"},r),N=tt({number:.35,unit:"ex"},r),I=r.havingBaseSizing();l=l/I.sizeMultiplier;const H=i.height+i.depth+k+N;i.style.paddingLeft=re(H/2+k);const Y=Math.floor(1e3*H*l),pe=Ce(Y),we=new or([new vr("phase",pe)],{width:"400em",height:re(Y/1e3),viewBox:"0 0 400000 "+Y,preserveAspectRatio:"xMinYMin slice"});h=L.makeSvgSpan(["hide-tail"],[we],r),h.style.height=re(H),g=i.depth+k+N}else{/cancel/.test(o)?y||i.classes.push("cancel-pad"):o==="angl"?i.classes.push("anglpad"):i.classes.push("boxpad");let k=0,N=0,I=0;/box/.test(o)?(I=Math.max(r.fontMetrics().fboxrule,r.minRuleThickness),k=r.fontMetrics().fboxsep+(o==="colorbox"?0:I),N=k):o==="angl"?(I=Math.max(r.fontMetrics().defaultRuleThickness,r.minRuleThickness),k=4*I,N=Math.max(0,.25-i.depth)):(k=y?.2:0,N=k),h=hr.encloseSpan(i,o,k,N,r),/fbox|boxed|fcolorbox/.test(o)?(h.style.borderStyle="solid",h.style.borderWidth=re(I)):o==="angl"&&I!==.049&&(h.style.borderTopWidth=re(I),h.style.borderRightWidth=re(I)),g=i.depth+N,a.backgroundColor&&(h.style.backgroundColor=a.backgroundColor,a.borderColor&&(h.style.borderColor=a.borderColor))}let B;if(a.backgroundColor)B=L.makeVList({positionType:"individualShift",children:[{type:"elem",elem:h,shift:g},{type:"elem",elem:i,shift:0}]},r);
256else{const k=/cancel|phase/.test(o)?["svg-align"]:[];B=L.makeVList({positionType:"individualShift",children:[{type:"elem",elem:i,shift:0},{type:"elem",elem:h,shift:g,wrapperClasses:k}]},r)}return/cancel/.test(o)&&(B.height=i.height,B.depth=i.depth),/cancel/.test(o)&&!y?L.makeSpan(["mord","cancel-lap"],[B],r):L.makeSpan(["mord"],[B],r)},Ln=(a,r)=>{let i=0;const o=new J.MathNode(a.label.indexOf("colorbox")>-1?"mpadded":"menclose",[rt(a.body,r)]);switch(a.label){case"\\cancel":o.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":o.setAttribute("notation","downdiagonalstrike");break;case"\\phase":o.setAttribute("notation","phasorangle");break;case"\\sout":o.setAttribute("notation","horizontalstrike");break;case"\\fbox":o.setAttribute("notation","box");break;case"\\angl":o.setAttribute("notation","actuarial");break;case"\\fcolorbox":case"\\colorbox":if(i=r.fontMetrics().fboxsep*r.fontMetrics().ptPerEm,o.setAttribute("width","+"+2*i+"pt"),o.setAttribute("height","+"+2*i+"pt"),o.setAttribute("lspace",i+"pt"),o.setAttribute("voffset",i+"pt"),a.label==="\\fcolorbox"){const l=Math.max(r.fontMetrics().fboxrule,r.minRuleThickness);o.setAttribute("style","border: "+l+"em solid "+String(a.borderColor))}break;case"\\xcancel":o.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return a.backgroundColor&&o.setAttribute("mathbackground",a.backgroundColor),o};me({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","text"]},handler(a,r,i){let{parser:o,funcName:l}=a;const h=Ne(r[0],"color-token").color,g=r[1];return{type:"enclose",mode:o.mode,label:l,backgroundColor:h,body:g}},htmlBuilder:qn,mathmlBuilder:Ln}),me({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","text"]},handler(a,r,i){let{parser:o,funcName:l}=a;const h=Ne(r[0],"color-token").color,g=Ne(r[1],"color-token").color,y=r[2];return{type:"enclose",mode:o.mode,label:l,backgroundColor:g,borderColor:h,body:y}},htmlBuilder:qn,mathmlBuilder:Ln}),me({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler(a,r){let{parser:i}=a;return{type:"enclose",mode:i.mode,label:"\\fbox",body:r[0]}}}),me({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout","\\phase"],props:{numArgs:1},handler(a,r){let{parser:i,funcName:o}=a;const l=r[0];return{type:"enclose",mode:i.mode,label:o,body:l}},htmlBuilder:qn,mathmlBuilder:Ln}),me({type:"enclose",names:["\\angl"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!1},handler(a,r){let{parser:i}=a;return{type:"enclose",mode:i.mode,label:"\\angl",body:r[0]}}});const Ts={};function er(a){let{type:r,names:i,props:o,handler:l,htmlBuilder:h,mathmlBuilder:g}=a;const y={type:r,numArgs:o.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:l};for(let B=0;B<i.length;++B)Ts[i[B]]=y;h&&(k0[r]=h),g&&(O0[r]=g)}const Ms={};function w(a,r){Ms[a]=r}class Pt{constructor(r,i,o){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=r,this.start=i,this.end=o}static range(r,i){return i?!r||!r.loc||!i.loc||r.loc.lexer!==i.loc.lexer?null:new Pt(r.loc.lexer,r.loc.start,i.loc.end):r&&r.loc}}class Wt{constructor(r,i){this.text=void 0,this.loc=void 0,this.noexpand=void 0,this.treatAsRelax=void 0,this.text=r,this.loc=i}range(r,i){return new Wt(i,Pt.range(this,r))}}function zs(a){const r=[];a.consumeSpaces();let i=a.fetch().text;for(i==="\\relax"&&(a.consume(),a.consumeSpaces(),i=a.fetch().text);i==="\\hline"||i==="\\hdashline";)a.consume(),r.push(i==="\\hdashline"),a.consumeSpaces(),i=a.fetch().text;return r}const q0=a=>{if(!a.parser.settings.displayMode)throw new f("{"+a.envName+"} can be used only in display mode.")};function jn(a){if(a.indexOf("ed")===-1)return a.indexOf("*")===-1}function Dr(a,r,i){let{hskipBeforeAndAfter:o,addJot:l,cols:h,arraystretch:g,colSeparationType:y,autoTag:B,singleRow:k,emptySingleRow:N,maxNumCols:I,leqno:H}=r;if(a.gullet.beginGroup(),k||a.gullet.macros.set("\\cr","\\\\\\relax"),!g){const nt=a.gullet.expandMacroAsText("\\arraystretch");if(nt==null)g=1;else if(g=parseFloat(nt),!g||g<0)throw new f("Invalid \\arraystretch: "+nt)}a.gullet.beginGroup();let Y=[];const pe=[Y],we=[],Ie=[],Re=B!=null?[]:void 0;function qe(){B&&a.gullet.macros.set("\\@eqnsw","1",!0)}function Ye(){Re&&(a.gullet.macros.get("\\df@tag")?(Re.push(a.subparse([new Wt("\\df@tag")])),a.gullet.macros.set("\\df@tag",void 0,!0)):Re.pu
256sh(!!B&&a.gullet.macros.get("\\@eqnsw")==="1"))}for(qe(),Ie.push(zs(a));;){let nt=a.parseExpression(!1,k?"\\end":"\\\\");a.gullet.endGroup(),a.gullet.beginGroup(),nt={type:"ordgroup",mode:a.mode,body:nt},i&&(nt={type:"styling",mode:a.mode,style:i,body:[nt]}),Y.push(nt);const St=a.fetch().text;if(St==="&"){if(I&&Y.length===I){if(k||y)throw new f("Too many tab characters: &",a.nextToken);a.settings.reportNonstrict("textEnv","Too few columns specified in the {array} column argument.")}a.consume()}else if(St==="\\end"){Ye(),Y.length===1&&nt.type==="styling"&&nt.body[0].body.length===0&&(pe.length>1||!N)&&pe.pop(),Ie.length<pe.length+1&&Ie.push([]);break}else if(St==="\\\\"){a.consume();let Dt;a.gullet.future().text!==" "&&(Dt=a.parseSizeGroup(!0)),we.push(Dt?Dt.value:null),Ye(),Ie.push(zs(a)),Y=[],pe.push(Y),qe()}else throw new f("Expected & or \\\\ or \\cr or \\end",a.nextToken)}return a.gullet.endGroup(),a.gullet.endGroup(),{type:"array",mode:a.mode,addJot:l,arraystretch:g,body:pe,cols:h,rowGaps:we,hskipBeforeAndAfter:o,hLinesBeforeRow:Ie,colSeparationType:y,tags:Re,leqno:H}}function Hn(a){return a.slice(0,1)==="d"?"display":"text"}const tr=function(a,r){let i,o;const l=a.body.length,h=a.hLinesBeforeRow;let g=0,y=new Array(l);const B=[],k=Math.max(r.fontMetrics().arrayRuleWidth,r.minRuleThickness),N=1/r.fontMetrics().ptPerEm;let I=5*N;a.colSeparationType&&a.colSeparationType==="small"&&(I=.2778*(r.havingStyle(ae.SCRIPT).sizeMultiplier/r.sizeMultiplier));const H=a.colSeparationType==="CD"?tt({number:3,unit:"ex"},r):12*N,Y=3*N,pe=a.arraystretch*H,we=.7*pe,Ie=.3*pe;let Re=0;function qe(je){for(let Je=0;Je<je.length;++Je)Je>0&&(Re+=.25),B.push({pos:Re,isDashed:je[Je]})}for(qe(h[0]),i=0;i<a.body.length;++i){const je=a.body[i];let Je=we,at=Ie;g<je.length&&(g=je.length);const it=new Array(je.length);for(o=0;o<je.length;++o){const Kt=Le(je[o],r);at<Kt.depth&&(at=Kt.depth),Je<Kt.height&&(Je=Kt.height),it[o]=Kt}const dt=a.rowGaps[i];let ft=0;dt&&(ft=tt(dt,r),ft>0&&(ft+=Ie,at<ft&&(at=ft),ft=0)),a.addJot&&(at+=Y),it.height=Je,it.depth=at,Re+=Je,it.pos=Re,Re+=at+ft,y[i]=it,qe(h[i+1])}const Ye=Re/2+r.fontMetrics().axisHeight,nt=a.cols||[],St=[];let Dt,Ut;const $r=[];if(a.tags&&a.tags.some(je=>je))for(i=0;i<l;++i){const je=y[i],Je=je.pos-Ye,at=a.tags[i];let it;at===!0?it=L.makeSpan(["eqn-num"],[],r):at===!1?it=L.makeSpan([],[],r):it=L.makeSpan([],bt(at,r,!0),r),it.depth=je.depth,it.height=je.height,$r.push({type:"elem",elem:it,shift:Je})}for(o=0,Ut=0;o<g||Ut<nt.length;++o,++Ut){let je=nt[Ut]||{},Je=!0;for(;je.type==="separator";){if(Je||(Dt=L.makeSpan(["arraycolsep"],[]),Dt.style.width=re(r.fontMetrics().doubleRuleSep),St.push(Dt)),je.separator==="|"||je.separator===":"){const dt=je.separator==="|"?"solid":"dashed",ft=L.makeSpan(["vertical-separator"],[],r);ft.style.height=re(Re),ft.style.borderRightWidth=re(k),ft.style.borderRightStyle=dt,ft.style.margin="0 "+re(-k/2);const Kt=Re-Ye;Kt&&(ft.style.verticalAlign=re(-Kt)),St.push(ft)}else throw new f("Invalid separator type: "+je.separator);Ut++,je=nt[Ut]||{},Je=!1}if(o>=g)continue;let at;(o>0||a.hskipBeforeAndAfter)&&(at=p.deflt(je.pregap,I),at!==0&&(Dt=L.makeSpan(["arraycolsep"],[]),Dt.style.width=re(at),St.push(Dt)));let it=[];for(i=0;i<l;++i){const dt=y[i],ft=dt[o];if(!ft)continue;const Kt=dt.pos-Ye;ft.depth=dt.depth,ft.height=dt.height,it.push({type:"elem",elem:ft,shift:Kt})}it=L.makeVList({positionType:"individualShift",children:it},r),it=L.makeSpan(["col-align-"+(je.align||"c")],[it]),St.push(it),(o<g-1||a.hskipBeforeAndAfter)&&(at=p.deflt(je.postgap,I),at!==0&&(Dt=L.makeSpan(["arraycolsep"],[]),Dt.style.width=re(at),St.push(Dt)))}if(y=L.makeSpan(["mtable"],St),B.length>0){const je=L.makeLineSpan("hline",r,k),Je=L.makeLineSpan("hdashline",r,k),at=[{type:"elem",elem:y,shift:0}];for(;B.length>0;){const it=B.pop(),dt=it.pos-Ye;it.isDashed?at.push({type:"elem",elem:Je,shift:dt}):at.push({type:"elem",elem:je,shift:dt})}y=L.makeVList({positionType:"individualShift",children:at},r)}if($r.length===0)return L.makeSpan(["mord"],[y],r);{let je=L.makeVList({positionType:"individualShift",children:$r},r);return je=L.makeSpan(["tag"],[je],r),L.makeFragment([y,je])}},Ml={c:"center ",l:"left ",r:"right "},rr=function(a,r){const i=[],o=new J.MathNode("mtd",[],["mtr-glue"]),l=new J.MathNode("mtd",[],["mml-eqn-num"]);for(let I=0;I<a.body.length;I++){const H=a.body[I],Y=[];for(let pe=0;pe<H.length;pe++)Y.push(new J.MathNode("mtd",[rt(H[pe],r)]));a.tags&&a.tags[I]&&(Y.unshift(o),Y.push(o),a.leqno?Y.unshift(l):Y.push(l)),i.push(new J.MathNode("mtr",Y))}let h=new J.MathNode("mtable",i);const g=a.arraystretch===.5?.1:.16+a.arraystretch-1+(a.addJot?.09:0);h.setAttribute("rowspacing",re(g));let y="",B="";if(a.cols&&a.cols.length>0){const I=a.cols;let H="",Y=!1,pe=0,we=I.length;I[0].type==="separator"&&(y+="top ",pe=1),I[I.length-1].type==="separator"&&(y+="bottom ",we-=1);for(let Ie=pe;Ie<we;Ie++)I[Ie].type==="align"?(B+=Ml[I[Ie].align],Y&&(H+="none "),Y=!0):I[Ie].type==="separator"&&Y&&(H+=I[Ie].separator==="|"?"solid ":"dashed ",Y=!1);h.setAttribute("columnalign",B.trim()),/[sd]/.test(H)&&h.setAttribute("columnlines",H.trim())}if(a.colSeparationType==="align"){const I=a.cols||[];let H="";for(let Y=1;Y<I.length;Y++)H+=Y%2?"0em ":"1em ";h.setAttribute("columnspacing",H.trim())}else a.colSeparationType==="alignat"||a.colSeparationType==="gather"?h.setAttribute("columnspacing","0em"):a.colSeparationType==="small"?h.setAttribute("columnspacing","0.2778em"):a.colSeparationType==="CD"?h.setAttribute("columnspacing","0.5em"):h.setAttribute("columnspacing","1em");let k="";const N=a.hLinesBeforeRow;y+=N[0].length>0?"left ":"",y+=N[N.length-1].length>0?"right ":"";for(let I=1;I<N.length-1;I++)k+=N[I].length===0?"none ":N[I][0]?"dashed ":"solid ";return/[sd]/.test(k)&&h.setAttribute("rowlines",k.trim()),y!==""&&(h=new J.MathNode("menclose",[h]),h.setAttribute("notation",y.trim())),a.arraystretch&&a.arraystretch<1&&(h=new J.MathNode("mstyle",[h]),h.setAttribute("scriptlevel","1")),h},Ns=function(a,r){a.envName.indexOf("ed")===-1&&q0(a);const i=[],o=a.envName.indexOf("at")>-1?"alignat":"align",l=a.envName==="split",h=Dr(a.parser,{cols:i,addJot:!0,autoTag:l?void 0:jn(a.envName),emptySingleRow:!0,colSeparationType:o,maxNumCols:l?2:void 0,leqno:a.parser.settings.leqno},"display");let g,y=0;const B={type:"ordgroup",mode:a.mode,body:[]};if(r[0]&&r[0].type==="ordgroup"){let N="";for(let I=0;I<r[0].body.length;I++){const H=Ne(r[0].body[I],"textord");N+=H.text}g=Number(N),y=g*2}const k=!y;h.body.forEach(function(N){for(let I=1;I<N.length;I+=2){const H=Ne(N[I],"styling");Ne(H.body[0],"ordgroup").body.unshift(B)}if(k)y<N.length&&(y=N.length);else{const I=N.length/2;if(g<I)throw new f("Too many math in a row: "+("expected "+g+", but got "+I),N[0])}});for(let N=0;N<y;++N){let I="r",H=0;N%2===1?I="l":N>0&&k&&(H=1),i[N]={type:"align",align:I,pregap:H,postgap:0}}return h.colSeparationType=k?"align":"alignat",h};er({type:"array",names:["array","darray"],props:{numArgs:1},handler(a,r){const l=(z0(r[0])?[r[0]]:Ne(r[0],"ordgroup").body).map(function(g){const B=Fn(g).text;if("lcr".indexOf(B)!==-1)return{type:"align",align:B};if(B==="|")return{type:"separator",separator:"|"};if(B===":")return{type:"separator",separator:":"};throw new f("Unknown column alignment: "+B,g)}),h={cols:l,hskipBeforeAndAfter:!0,maxNumCols:l.length};return Dr(a.parser,h,Hn(a.envName))},htmlBuilder:tr,mathmlBuilder:rr}),er({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],props:{numArgs:0},handler(a){const r={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[a.envName.replace("*","")];let i="c";const o={hskipBeforeAndAfter:!1,cols:[{type:"align",align:i}]};if(a.envName.charAt(a.envName.length-1)==="*"){const g=a.parser;if(g.consumeSpaces(),g.fetch().text==="["){if(g.consume(),g.consumeSpaces(),i=g.fetch().text,"lcr".indexOf(i)===-1)throw new f("Expected l or c or r",g.nextToken);g.consume(),g.consumeSpaces(),g.expect("]"),g.consume(),o.cols=[{type:"align",align:i}]}}
256const l=Dr(a.parser,o,Hn(a.envName)),h=Math.max(0,...l.body.map(g=>g.length));return l.cols=new Array(h).fill({type:"align",align:i}),r?{type:"leftright",mode:a.mode,body:[l],left:r[0],right:r[1],rightColor:void 0}:l},htmlBuilder:tr,mathmlBuilder:rr}),er({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(a){const r={arraystretch:.5},i=Dr(a.parser,r,"script");return i.colSeparationType="small",i},htmlBuilder:tr,mathmlBuilder:rr}),er({type:"array",names:["subarray"],props:{numArgs:1},handler(a,r){const l=(z0(r[0])?[r[0]]:Ne(r[0],"ordgroup").body).map(function(g){const B=Fn(g).text;if("lc".indexOf(B)!==-1)return{type:"align",align:B};throw new f("Unknown column alignment: "+B,g)});if(l.length>1)throw new f("{subarray} can contain only one column");let h={cols:l,hskipBeforeAndAfter:!1,arraystretch:.5};if(h=Dr(a.parser,h,"script"),h.body.length>0&&h.body[0].length>1)throw new f("{subarray} can contain only one column");return h},htmlBuilder:tr,mathmlBuilder:rr}),er({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler(a){const r={arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},i=Dr(a.parser,r,Hn(a.envName));return{type:"leftright",mode:a.mode,body:[i],left:a.envName.indexOf("r")>-1?".":"\\{",right:a.envName.indexOf("r")>-1?"\\}":".",rightColor:void 0}},htmlBuilder:tr,mathmlBuilder:rr}),er({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:Ns,htmlBuilder:tr,mathmlBuilder:rr}),er({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(a){["gather","gather*"].includes(a.envName)&&q0(a);const r={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:jn(a.envName),emptySingleRow:!0,leqno:a.parser.settings.leqno};return Dr(a.parser,r,"display")},htmlBuilder:tr,mathmlBuilder:rr}),er({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:Ns,htmlBuilder:tr,mathmlBuilder:rr}),er({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(a){q0(a);const r={autoTag:jn(a.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:a.parser.settings.leqno};return Dr(a.parser,r,"display")},htmlBuilder:tr,mathmlBuilder:rr}),er({type:"array",names:["CD"],props:{numArgs:0},handler(a){return q0(a),Dl(a.parser)},htmlBuilder:tr,mathmlBuilder:rr}),w("\\nonumber","\\gdef\\@eqnsw{0}"),w("\\notag","\\nonumber"),me({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler(a,r){throw new f(a.funcName+" valid only within array environment")}});var Ps=Ts;me({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler(a,r){let{parser:i,funcName:o}=a;const l=r[0];if(l.type!=="ordgroup")throw new f("Invalid environment name",l);let h="";for(let g=0;g<l.body.length;++g)h+=Ne(l.body[g],"textord").text;if(o==="\\begin"){if(!Ps.hasOwnProperty(h))throw new f("No such environment: "+h,l);const g=Ps[h],{args:y,optArgs:B}=i.parseArguments("\\begin{"+h+"}",g),k={mode:i.mode,envName:h,parser:i},N=g.handler(k,y,B);i.expect("\\end",!1);const I=i.nextToken,H=Ne(i.parseFunction(),"environment");if(H.name!==h)throw new f("Mismatch: \\begin{"+h+"} matched by \\end{"+H.name+"}",I);return N}return{type:"environment",mode:i.mode,name:h,nameGroup:l}}});const Rs=(a,r)=>{const i=a.font,o=r.withFont(i);return Le(a.body,o)},Is=(a,r)=>{const i=a.font,o=r.withFont(i);return rt(a.body,o)},qs={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};me({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathsfit","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,allowedInArgument:!0},handler:(a,r)=>{let{parser:i,funcName:o}=a;const l=T0(r[0]);let h=o;return h in qs&&(h=qs[h]),{type:"font",mode:i.mode,font:h.slice(1),body:l}},htmlBuilder:Rs,mathmlBuilder:Is}),me({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1},handler:(a,r)=>{let{parser:i}=a;const o=r[0],l=p.isCharacterBox(o);return{type:"mclass",mode:i.mode,mclass:P0(o),body:[{type:"font",mode:i.mode,font:"boldsymbol",body:o}],isCharacterBox:l}}}),me({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],props:{numArgs:0,allowedInText:!0},handler:(a,r)=>{let{parser:i,funcName:o,breakOnTokenText:l}=a;const{mode:h}=i,g=i.parseExpression(!0,l),y="math"+o.slice(1);return{type:"font",mode:h,font:y,body:{type:"ordgroup",mode:i.mode,body:g}}},htmlBuilder:Rs,mathmlBuilder:Is});const Ls=(a,r)=>
256{let i=r;return a==="display"?i=i.id>=ae.SCRIPT.id?i.text():ae.DISPLAY:a==="text"&&i.size===ae.DISPLAY.size?i=ae.TEXT:a==="script"?i=ae.SCRIPT:a==="scriptscript"&&(i=ae.SCRIPTSCRIPT),i},Wn=(a,r)=>{const i=Ls(a.size,r.style),o=i.fracNum(),l=i.fracDen();let h;h=r.havingStyle(o);const g=Le(a.numer,h,r);if(a.continued){const qe=8.5/r.fontMetrics().ptPerEm,Ye=3.5/r.fontMetrics().ptPerEm;g.height=g.height<qe?qe:g.height,g.depth=g.depth<Ye?Ye:g.depth}h=r.havingStyle(l);const y=Le(a.denom,h,r);let B,k,N;a.hasBarLine?(a.barSize?(k=tt(a.barSize,r),B=L.makeLineSpan("frac-line",r,k)):B=L.makeLineSpan("frac-line",r),k=B.height,N=B.height):(B=null,k=0,N=r.fontMetrics().defaultRuleThickness);let I,H,Y;i.size===ae.DISPLAY.size||a.size==="display"?(I=r.fontMetrics().num1,k>0?H=3*N:H=7*N,Y=r.fontMetrics().denom1):(k>0?(I=r.fontMetrics().num2,H=N):(I=r.fontMetrics().num3,H=3*N),Y=r.fontMetrics().denom2);let pe;if(B){const qe=r.fontMetrics().axisHeight;I-g.depth-(qe+.5*k)<H&&(I+=H-(I-g.depth-(qe+.5*k))),qe-.5*k-(y.height-Y)<H&&(Y+=H-(qe-.5*k-(y.height-Y)));const Ye=-(qe-.5*k);pe=L.makeVList({positionType:"individualShift",children:[{type:"elem",elem:y,shift:Y},{type:"elem",elem:B,shift:Ye},{type:"elem",elem:g,shift:-I}]},r)}else{const qe=I-g.depth-(y.height-Y);qe<H&&(I+=.5*(H-qe),Y+=.5*(H-qe)),pe=L.makeVList({positionType:"individualShift",children:[{type:"elem",elem:y,shift:Y},{type:"elem",elem:g,shift:-I}]},r)}h=r.havingStyle(i),pe.height*=h.sizeMultiplier/r.sizeMultiplier,pe.depth*=h.sizeMultiplier/r.sizeMultiplier;let we;i.size===ae.DISPLAY.size?we=r.fontMetrics().delim1:i.size===ae.SCRIPTSCRIPT.size?we=r.havingStyle(ae.SCRIPT).fontMetrics().delim2:we=r.fontMetrics().delim2;let Ie,Re;return a.leftDelim==null?Ie=Qr(r,["mopen"]):Ie=dr.customSizedDelim(a.leftDelim,we,!0,r.havingStyle(i),a.mode,["mopen"]),a.continued?Re=L.makeSpan([]):a.rightDelim==null?Re=Qr(r,["mclose"]):Re=dr.customSizedDelim(a.rightDelim,we,!0,r.havingStyle(i),a.mode,["mclose"]),L.makeSpan(["mord"].concat(h.sizingClasses(r)),[Ie,L.makeSpan(["mfrac"],[pe]),Re],r)},$n=(a,r)=>{let i=new J.MathNode("mfrac",[rt(a.numer,r),rt(a.denom,r)]);if(!a.hasBarLine)i.setAttribute("linethickness","0px");else if(a.barSize){const l=tt(a.barSize,r);i.setAttribute("linethickness",re(l))}const o=Ls(a.size,r.style);if(o.size!==r.style.size){i=new J.MathNode("mstyle",[i]);const l=o.size===ae.DISPLAY.size?"true":"false";i.setAttribute("displaystyle",l),i.setAttribute("scriptlevel","0")}if(a.leftDelim!=null||a.rightDelim!=null){const l=[];if(a.leftDelim!=null){const h=new J.MathNode("mo",[new J.TextNode(a.leftDelim.replace("\\",""))]);h.setAttribute("fence","true"),l.push(h)}if(l.push(i),a.rightDelim!=null){const h=new J.MathNode("mo",[new J.TextNode(a.rightDelim.replace("\\",""))]);h.setAttribute("fence","true"),l.push(h)}return An(l)}return i};me({type:"genfrac",names:["\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,allowedInArgument:!0},handler:(a,r)=>{let{parser:i,funcName:o}=a;const l=r[0],h=r[1];let g,y=null,B=null,k="auto";switch(o){case"\\dfrac":case"\\frac":case"\\tfrac":g=!0;break;case"\\\\atopfrac":g=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":g=!1,y="(",B=")";break;case"\\\\bracefrac":g=!1,y="\\{",B="\\}";break;case"\\\\brackfrac":g=!1,y="[",B="]";break;default:throw new Error("Unrecognized genfrac command")}switch(o){case"\\dfrac":case"\\dbinom":k="display";break;case"\\tfrac":case"\\tbinom":k="text";break}return{type:"genfrac",mode:i.mode,continued:!1,numer:l,denom:h,hasBarLine:g,leftDelim:y,rightDelim:B,size:k,barSize:null}},htmlBuilder:Wn,mathmlBuilder:$n}),me({type:"genfrac",names:["\\cfrac"],props:{numArgs:2},handler:(a,r)=>{let{parser:i,funcName:o}=a;const l=r[0],h=r[1];return{type:"genfrac",mode:i.mode,continued:!0,numer:l,denom:h,hasBarLine:!0,leftDelim:null,rightDelim:null,size:"display",barSize:null}}}),me({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler(a){let{parser:r,funcName:i,token:o}=a,l;switch(i){case"\\over":l="\\frac";break;case"\\choose":l="\\binom";break;case"\\atop":l="\\\\atopfrac";break;case"\\brace":l="\\\\bracefrac";break;case"\\brack":l="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:r.mode,replaceWith:l,token:o}}});const js=["display","text","script","scriptscript"],Hs=function(a){let r=null;return a.length>0&&(r=a,r=r==="."?null:r),r};me({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"]},handler(a,r){let{parser:i}=a;const o=r[4],l=r[5],h=T0(r[0]),g=h.type==="atom"&&h.family==="open"?Hs(h.text):null,y=T0(r[1]),B=y.type==="atom"&&y.family==="close"?Hs(y.text):null,k=Ne(r[2],"size");let N,I=null;k.isBlank?N=!0:(I=k.value,N=I.number>0);let H="auto",Y=r[3];if(Y.type==="ordgroup"){if(Y.body.length>0){const pe=Ne(Y.body[0],"textord");H=js[Number(pe.text)]}}else Y=Ne(Y,"textord"),H=js[Number(Y.text)];return{type:"genfrac",mode:i.mode,numer:o,denom:l,continued:!1,hasBarLine:N,barSize:I,leftDelim:g,rightDelim:B,size:H}},htmlBuilder:Wn,mathmlBuilder:$n}),me({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infi
256x:!0},handler(a,r){let{parser:i,funcName:o,token:l}=a;return{type:"infix",mode:i.mode,replaceWith:"\\\\abovefrac",size:Ne(r[0],"size").value,token:l}}}),me({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:(a,r)=>{let{parser:i,funcName:o}=a;const l=r[0],h=q(Ne(r[1],"infix").size),g=r[2],y=h.number>0;return{type:"genfrac",mode:i.mode,numer:l,denom:g,continued:!1,hasBarLine:y,barSize:h,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:Wn,mathmlBuilder:$n});const Ws=(a,r)=>{const i=r.style;let o,l;a.type==="supsub"?(o=a.sup?Le(a.sup,r.havingStyle(i.sup()),r):Le(a.sub,r.havingStyle(i.sub()),r),l=Ne(a.base,"horizBrace")):l=Ne(a,"horizBrace");const h=Le(l.base,r.havingBaseStyle(ae.DISPLAY)),g=hr.svgSpan(l,r);let y;if(l.isOver?(y=L.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:h},{type:"kern",size:.1},{type:"elem",elem:g}]},r),y.children[0].children[0].children[1].classes.push("svg-align")):(y=L.makeVList({positionType:"bottom",positionData:h.depth+.1+g.height,children:[{type:"elem",elem:g},{type:"kern",size:.1},{type:"elem",elem:h}]},r),y.children[0].children[0].children[0].classes.push("svg-align")),o){const B=L.makeSpan(["mord",l.isOver?"mover":"munder"],[y],r);l.isOver?y=L.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:B},{type:"kern",size:.2},{type:"elem",elem:o}]},r):y=L.makeVList({positionType:"bottom",positionData:B.depth+.2+o.height+o.depth,children:[{type:"elem",elem:o},{type:"kern",size:.2},{type:"elem",elem:B}]},r)}return L.makeSpan(["mord",l.isOver?"mover":"munder"],[y],r)};me({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler(a,r){let{parser:i,funcName:o}=a;return{type:"horizBrace",mode:i.mode,label:o,isOver:/^\\over/.test(o),base:r[0]}},htmlBuilder:Ws,mathmlBuilder:(a,r)=>{const i=hr.mathMLnode(a.label);return new J.MathNode(a.isOver?"mover":"munder",[rt(a.base,r),i])}}),me({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:(a,r)=>{let{parser:i}=a;const o=r[1],l=Ne(r[0],"url").url;return i.settings.isTrusted({command:"\\href",url:l})?{type:"href",mode:i.mode,href:l,body:mt(o)}:i.formatUnsupportedCmd("\\href")},htmlBuilder:(a,r)=>{const i=bt(a.body,r,!1);return L.makeAnchor(a.href,[],i,r)},mathmlBuilder:(a,r)=>{let i=br(a.body,r);return i instanceof Ht||(i=new Ht("mrow",[i])),i.setAttribute("href",a.href),i}}),me({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:(a,r)=>{let{parser:i}=a;const o=Ne(r[0],"url").url;if(!i.settings.isTrusted({command:"\\url",url:o}))return i.formatUnsupportedCmd("\\url");const l=[];for(let g=0;g<o.length;g++){let y=o[g];y==="~"&&(y="\\textasciitilde"),l.push({type:"textord",mode:"text",text:y})}const h={type:"text",mode:i.mode,font:"\\texttt",body:l};return{type:"href",mode:i.mode,href:o,body:mt(h)}}}),me({type:"hbox",names:["\\hbox"],props:{numArgs:1,argTypes:["text"],allowedInText:!0,primitive:!0},handler(a,r){let{parser:i}=a;return{type:"hbox",mode:i.mode,body:mt(r[0])}},htmlBuilder(a,r){const i=bt(a.body,r,!1);return L.makeFragment(i)},mathmlBuilder(a,r){return new J.MathNode("mrow",Nt(a.body,r))}}),me({type:"html",names:["\\htmlClass","\\htmlId","\\htmlStyle","\\htmlData"],props:{numArgs:2,argTypes:["raw","original"],allowedInText:!0},handler:(a,r)=>{let{parser:i,funcName:o,token:l}=a;const h=Ne(r[0],"raw").string,g=r[1];i.settings.strict&&i.settings.reportNonstrict("htmlExtension","HTML extension is disabled on strict mode");let y;const B={};switch(o){case"\\htmlClass":B.class=h,y={command:"\\htmlClass",class:h};break;case"\\htmlId":B.id=h,y={command:"\\htmlId",id:h};break;case"\\htmlStyle":B.style=h,y={command:"\\htmlStyle",style:h};break;case"\\htmlData":{const k=h.split(",");for(let N=0;N<k.length;N++){const I=k[N],H=I.indexOf("=");if(H<0)throw new f("\\htmlData key/value '"+I+"' missing equals sign");const Y=I.slice(0,H),pe=I.slice(H+1);B["data-"+Y.trim()]=pe}y={command:"\\htmlData",attributes:B};break}default:throw new Error("Unrecognized html command")}return i.settings.isTrusted(y)?{type:"html",mode:i.mode,attributes:B,body:mt(g)}:i.formatUnsupportedCmd(o)},htmlBuilder:(a,r)=>{const i=bt(a.body,r,!1),o=["enclosing"];a.attributes.class&&o.push(...a.attributes.class.trim().split(/\s+/));const l=L.makeSpan(o,i,r);for(const h in a.attributes)h!=="class"&&a.attributes.hasOwnProperty(h)&&l.setAttribute(h,a.attributes[h]);return l},mathmlBuilder:(a,r)=>br(a.body,r)}),me({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInText:!0},handler:(a,r)=>{let{parser:i}=a;return{type:"htmlmathml",mode:i.mode,html:mt(r[0]),mathml:mt(r[1])}},htmlBuilder:(a,r)=>{const i=bt(a.html,r,!1);return L.makeFragment(i)},mathmlBuilder:(a,r)=>br(a.mathml,r)});
256const Vn=function(a){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(a))return{number:+a,unit:"bp"};{const r=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(a);if(!r)throw new f("Invalid size: '"+a+"' in \\includegraphics");const i={number:+(r[1]+r[2]),unit:r[3]};if(!Lt(i))throw new f("Invalid unit: '"+i.unit+"' in \\includegraphics.");return i}};me({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:(a,r,i)=>{let{parser:o}=a,l={number:0,unit:"em"},h={number:.9,unit:"em"},g={number:0,unit:"em"},y="";if(i[0]){const N=Ne(i[0],"raw").string.split(",");for(let I=0;I<N.length;I++){const H=N[I].split("=");if(H.length===2){const Y=H[1].trim();switch(H[0].trim()){case"alt":y=Y;break;case"width":l=Vn(Y);break;case"height":h=Vn(Y);break;case"totalheight":g=Vn(Y);break;default:throw new f("Invalid key: '"+H[0]+"' in \\includegraphics.")}}}}const B=Ne(r[0],"url").url;return y===""&&(y=B,y=y.replace(/^.*[\\/]/,""),y=y.substring(0,y.lastIndexOf("."))),o.settings.isTrusted({command:"\\includegraphics",url:B})?{type:"includegraphics",mode:o.mode,alt:y,width:l,height:h,totalheight:g,src:B}:o.formatUnsupportedCmd("\\includegraphics")},htmlBuilder:(a,r)=>{const i=tt(a.height,r);let o=0;a.totalheight.number>0&&(o=tt(a.totalheight,r)-i);let l=0;a.width.number>0&&(l=tt(a.width,r));const h={height:re(i+o)};l>0&&(h.width=re(l)),o>0&&(h.verticalAlign=re(-o));const g=new qo(a.src,a.alt,h);return g.height=i,g.depth=o,g},mathmlBuilder:(a,r)=>{const i=new J.MathNode("mglyph",[]);i.setAttribute("alt",a.alt);const o=tt(a.height,r);let l=0;if(a.totalheight.number>0&&(l=tt(a.totalheight,r)-o,i.setAttribute("valign",re(-l))),i.setAttribute("height",re(o+l)),a.width.number>0){const h=tt(a.width,r);i.setAttribute("width",re(h))}return i.setAttribute("src",a.src),i}}),me({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0},handler(a,r){let{parser:i,funcName:o}=a;const l=Ne(r[0],"size");if(i.settings.strict){const h=o[1]==="m",g=l.value.unit==="mu";h?(g||i.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+o+" supports only mu units, "+("not "+l.value.unit+" units")),i.mode!=="math"&&i.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+o+" works only in math mode")):g&&i.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+o+" doesn't support mu units")}return{type:"kern",mode:i.mode,dimension:l.value}},htmlBuilder(a,r){return L.makeGlue(a.dimension,r)},mathmlBuilder(a,r){const i=tt(a.dimension,r);return new J.SpaceNode(i)}}),me({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:(a,r)=>{let{parser:i,funcName:o}=a;const l=r[0];return{type:"lap",mode:i.mode,alignment:o.slice(5),body:l}},htmlBuilder:(a,r)=>{let i;a.alignment==="clap"?(i=L.makeSpan([],[Le(a.body,r)]),i=L.makeSpan(["inner"],[i],r)):i=L.makeSpan(["inner"],[Le(a.body,r)]);const o=L.makeSpan(["fix"],[]);let l=L.makeSpan([a.alignment],[i,o],r);const h=L.makeSpan(["strut"]);return h.style.height=re(l.height+l.depth),l.depth&&(h.style.verticalAlign=re(-l.depth)),l.children.unshift(h),l=L.makeSpan(["thinbox"],[l],r),L.makeSpan(["mord","vbox"],[l],r)},mathmlBuilder:(a,r)=>{const i=new J.MathNode("mpadded",[rt(a.body,r)]);if(a.alignment!=="rlap"){const o=a.alignment==="llap"?"-1":"-0.5";i.setAttribute("lspace",o+"width")}return i.setAttribute("width","0px"),i}}),me({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(a,r){let{funcName:i,parser:o}=a;const l=o.mode;o.switchMode("math");const h=i==="\\("?"\\)":"$",g=o.parseExpression(!1,h);return o.expect(h),o.switchMode(l),{type:"styling",mode:o.mode,style:"text",body:g}}}),me({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(a,r){throw new f("Mismatched "+a.funcName)}});const $s=(a,r)=>{switch(r.style.size){case ae.DISPLAY.size:return a.display;case ae.TEXT.size:return a.text;case ae.SCRIPT.size:return a.script;case ae.SCRIPTSCRIPT.size:return a.scriptscript;default:return a.text}};me({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:(a,r)=>{let{parser:i}=a;return{type:"mathchoice",mode:i.mode,display:mt(r[0]),text:mt(r[1]),script:mt(r[2]),scriptscript:mt(r[3])}},htmlBuilder:(a,r)=>{const i=$s(a,r),o=bt(i,r,!1);return L.makeFragment(o)},mathmlBuilder:(a,r)=>{const i=$s(a,r);return br(i,r)}});const Vs=(a,r,i,o,l,h,g)=>{a=L.makeSpan([],[a]);const y=i&&p.isCharacterBox(i);let B,k;if(r){const H=Le(r,o.havingStyle(l.sup()),o);k={elem:H,kern:Math.max(o.fontMetrics().bigOpSpacing1,o.fontMetrics().bigOpSpacing3-H.depth)}}if(i){const H=Le(i,o.havingStyle(l.sub()),o);B={elem:H,kern:Math.max(o.fontMetrics().bigOpSpacing2,o.fontMetrics().bigOpSpacing4-H.height)}}let N;if(k&&B){const H=o.fontMetrics().bigOpSpacing5+B.elem.height+B.elem.depth+B.kern+a.depth+g;N=L.makeVList({positionType:"bottom",positionData:H,children:[{type:"kern",size:o.fontMetrics().bigOpSpacing5},{type:"elem",elem:B.elem,marginLeft:re(-h)},{type:"kern",size:B.kern},{type:"elem",elem:a},{type:"kern",size:k.kern},{type:"elem",elem:k.elem,marginLeft:re(h)},{type:"kern",size:o.fontMetrics().bigOpSpacing5}]},o)}else if(B){const H=a.height-g;N=L.makeVList({positionType:"top",positionData:H,children:[{type:"kern",size:o.fontMetrics().bigOpSpacing5},{type:"elem",elem:B.elem,marginLeft:re(-h)},{type:"kern",size:B.kern},{type:"elem",elem:a}]},o)}else if(k){const H=a.depth+g;N=L.makeVList({positionType:"bottom",positionData:H,children:[{type:"elem",elem:a},{type:"kern",size:k.kern},{type:"elem",elem:k.elem,marginLeft:re(h)},{type:"kern",size:o.fontMetrics().bigOpSpacing5}]},o)}else return a;const I=[N];if(B&&h!==0&&!y){const H=L.makeSpan(["mspace"],[],o);H.style.marginRight=re(h),I.unshift(H)}return L.makeSpan(["mop","op-limits"],I,o)},Gs=["\\smallint"],Wr=(a,r)=>{let i,o,l=!1,h;a.type==="supsub"?(i=a.sup,o=a.sub,h=Ne(a.base,"op"),l=!0):h=Ne(a,"op");const g=r.style;let y=!1;g.size===ae.DISPLAY.size&&h.symbol&&!Gs.includes(h.name)&&(y=!0);let B;if(h.symbol){const I=y?"Size2-Regular":"Size1-Regular";let H="";if((h.name==="\\oiint"||h.name==="\\oiiint")&&(H=h.name.slice(1),h.name=H==="oiint"?"\\iint":"\\iiint"),B=L.makeSymbol(h.name,I,"math",r,["mop","op-symbol",y?"large-op":"small-op"]),H.length>0){const Y=B.italic,pe=L.staticSvg(H+"Size"+(y?"2":"1"),r);B=L.makeVList({positionType:"individualShift",children:[{type:"elem",elem:B,shift:0},{type:"elem",elem:pe,shift:y?.08:0}]},r),h.name="\\"+H,B.classes.unshift("mop"),B.italic=Y}}else if(h.body){const I=bt(h.body,r,!0);I.length===1&&I[0]instanceof Vt?(B=I[0],B.classes[0]="mop"):B=L.makeSpan(["mop"],I,r)}else{const I=[];for(let H=1;H<h.name.length;H++)I.push(L.mathsym(h.name[H],h.mode,r));B=L.makeSpan(["mop"],I,r)}let k=0,N=0;return(B instanceof Vt||h.name==="\\oiint"||h.name==="\\oiiint")&&!h.suppressBaseShift&&(k=(B.height-B.depth)/2-r.fontMetrics().axisHeight,N=B.italic),l?Vs(B,i,o,r,g,N,k):(k&&(B.style.position="relative",B.style.top=re(k)),B)},r0=(a,r)=>{let i;if(a.symbol)i=new Ht("mo",[Gt(a.name,a.mode)]),Gs.includes(a.name)&&i.setAttribute("largeop","false");else if(a.body)i=new Ht("mo",Nt(a.body,r));else{i=new Ht("mi",[new Qt(a.name.slice(1))]);const o=new Ht("mo",[Gt("â¡","text")]);
256a.parentIsSupSub?i=new Ht("mrow",[i,o]):i=os([i,o])}return i},zl={"â":"\\prod","â":"\\coprod","â":"\\sum","â":"\\bigwedge","â":"\\bigvee","â":"\\bigcap","â":"\\bigcup","â¨":"\\bigodot","â¨":"\\bigoplus","â¨":"\\bigotimes","â¨":"\\biguplus","â¨":"\\bigsqcup"};me({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","â","â","â","â","â","â","â","â¨","â¨","â¨","â¨","â¨"],props:{numArgs:0},handler:(a,r)=>{let{parser:i,funcName:o}=a,l=o;return l.length===1&&(l=zl[l]),{type:"op",mode:i.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:l}},htmlBuilder:Wr,mathmlBuilder:r0}),me({type:"op",names:["\\mathop"],props:{numArgs:1,primitive:!0},handler:(a,r)=>{let{parser:i}=a;const o=r[0];return{type:"op",mode:i.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:mt(o)}},htmlBuilder:Wr,mathmlBuilder:r0});const Nl={"â«":"\\int","â¬":"\\iint","â":"\\iiint","â®":"\\oint","â¯":"\\oiint","â°":"\\oiiint"};me({type:"op",names:["\\arcsin","\\arccos","\\arctan","\\arctg","\\arcctg","\\arg","\\ch","\\cos","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\deg","\\dim","\\exp","\\hom","\\ker","\\lg","\\ln","\\log","\\sec","\\sin","\\sinh","\\sh","\\tan","\\tanh","\\tg","\\th"],props:{numArgs:0},handler(a){let{parser:r,funcName:i}=a;return{type:"op",mode:r.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:i}},htmlBuilder:Wr,mathmlBuilder:r0}),me({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler(a){let{parser:r,funcName:i}=a;return{type:"op",mode:r.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:i}},htmlBuilder:Wr,mathmlBuilder:r0}),me({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","â«","â¬","â","â®","â¯","â°"],props:{numArgs:0,allowedInArgument:!0},handler(a){let{parser:r,funcName:i}=a,o=i;return o.length===1&&(o=Nl[o]),{type:"op",mode:r.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:o}},htmlBuilder:Wr,mathmlBuilder:r0});const Us=(a,r)=>{let i,o,l=!1,h;a.type==="supsub"?(i=a.sup,o=a.sub,h=Ne(a.base,"operatorname"),l=!0):h=Ne(a,"operatorname");let g;if(h.body.length>0){const y=h.body.map(k=>{const N=k.text;return typeof N=="string"?{type:"textord",mode:k.mode,text:N}:k}),B=bt(y,r.withFont("mathrm"),!0);for(let k=0;k<B.length;k++){const N=B[k];N instanceof Vt&&(N.text=N.text.replace(/\u2212/,"-").replace(/\u2217/,"*"))}g=L.makeSpan(["mop"],B,r)}else g=L.makeSpan(["mop"],[],r);return l?Vs(g,i,o,r,r.style,0,0):g};me({type:"operatorname",names:["\\operatorname@","\\operatornamewithlimits"],props:{numArgs:1},handler:(a,r)=>{let{parser:i,funcName:o}=a;const l=r[0];return{type:"operatorname",mode:i.mode,body:mt(l),alwaysHandleSupSub:o==="\\operatornamewithlimits",limits:!1,parentIsSupSub:!1}},htmlBuilder:Us,mathmlBuilder:(a,r)=>{let i=Nt(a.body,r.withFont("mathrm")),o=!0;for(let g=0;g<i.length;g++){const y=i[g];if(!(y instanceof J.SpaceNode))if(y instanceof J.MathNode)switch(y.type){case"mi":case"mn":case"ms":case"mspace":case"mtext":break;case"mo":{const B=y.children[0];y.children.length===1&&B instanceof J.TextNode?B.text=B.text.replace(/\u2212/,"-").replace(/\u2217/,"*"):o=!1;break}default:o=!1}else o=!1}if(o){const g=i.map(y=>y.toText()).join("");i=[new J.TextNode(g)]}const l=new J.MathNode("mi",i);l.setAttribute("mathvariant","normal");const h=new J.MathNode("mo",[Gt("â¡","text")]);return a.parentIsSupSub?new J.MathNode("mrow",[l,h]):J.newDocumentFragment([l,h])}}),w("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@"),Or({type:"ordgroup",htmlBuilder(a,r){return a.semisimple?L.makeFragment(bt(a.body,r,!1)):L.makeSpan(["mord"],bt(a.body,r,!0),r)},mathmlBuilder(a,r){return br(a.body,r,!0)}}),me({type:"overline",names:["\\overline"],props:{numArgs:1},handler(a,r){let{parser:i}=a;const o=r[0];return{type:"overline",mode:i.mode,body:o}},htmlBuilder(a,r){const i=Le(a.body,r.havingCrampedStyle()),o=L.makeLineSpan("overline-line",r),l=r.fontMetrics().defaultRuleThickness,h=L.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:i},{type:"kern",size:3*l},{type:"elem",elem:o},{type:"kern",size:l}]},r);return L.makeSpan(["mord","overline"],[h],r)},mathmlBuilder(a,r){const i=new J.MathNode("mo",[new J.TextNode("â¾")]);i.setAttribute("stretchy","true");const o=new J.MathNode("mover",[rt(a.body,r),i]);return o.setAttribute("accent","true"),o}}),me({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:(a,r)=>{let{parser:i}=a;const o=r[0];
vendor: 5,240 bytes, line 256
256return{type:"phantom",mode:i.mode,body:mt(o)}},htmlBuilder:(a,r)=>{const i=bt(a.body,r.withPhantom(),!1);return L.makeFragment(i)},mathmlBuilder:(a,r)=>{const i=Nt(a.body,r);return new J.MathNode("mphantom",i)}}),me({type:"hphantom",names:["\\hphantom"],props:{numArgs:1,allowedInText:!0},handler:(a,r)=>{let{parser:i}=a;const o=r[0];return{type:"hphantom",mode:i.mode,body:o}},htmlBuilder:(a,r)=>{let i=L.makeSpan([],[Le(a.body,r.withPhantom())]);if(i.height=0,i.depth=0,i.children)for(let o=0;o<i.children.length;o++)i.children[o].height=0,i.children[o].depth=0;return i=L.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:i}]},r),L.makeSpan(["mord"],[i],r)},mathmlBuilder:(a,r)=>{const i=Nt(mt(a.body),r),o=new J.MathNode("mphantom",i),l=new J.MathNode("mpadded",[o]);return l.setAttribute("height","0px"),l.setAttribute("depth","0px"),l}}),me({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:(a,r)=>{let{parser:i}=a;const o=r[0];return{type:"vphantom",mode:i.mode,body:o}},htmlBuilder:(a,r)=>{const i=L.makeSpan(["inner"],[Le(a.body,r.withPhantom())]),o=L.makeSpan(["fix"],[]);return L.makeSpan(["mord","rlap"],[i,o],r)},mathmlBuilder:(a,r)=>{const i=Nt(mt(a.body),r),o=new J.MathNode("mphantom",i),l=new J.MathNode("mpadded",[o]);return l.setAttribute("width","0px"),l}}),me({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler(a,r){let{parser:i}=a;const o=Ne(r[0],"size").value,l=r[1];return{type:"raisebox",mode:i.mode,dy:o,body:l}},htmlBuilder(a,r){const i=Le(a.body,r),o=tt(a.dy,r);return L.makeVList({positionType:"shift",positionData:-o,children:[{type:"elem",elem:i}]},r)},mathmlBuilder(a,r){const i=new J.MathNode("mpadded",[rt(a.body,r)]),o=a.dy.number+a.dy.unit;return i.setAttribute("voffset",o),i}}),me({type:"internal",names:["\\relax"],props:{numArgs:0,allowedInText:!0,allowedInArgument:!0},handler(a){let{parser:r}=a;return{type:"internal",mode:r.mode}}}),me({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["size","size","size"]},handler(a,r,i){let{parser:o}=a;const l=i[0],h=Ne(r[0],"size"),g=Ne(r[1],"size");return{type:"rule",mode:o.mode,shift:l&&Ne(l,"size").value,width:h.value,height:g.value}},htmlBuilder(a,r){const i=L.makeSpan(["mord","rule"],[],r),o=tt(a.width,r),l=tt(a.height,r),h=a.shift?tt(a.shift,r):0;return i.style.borderRightWidth=re(o),i.style.borderTopWidth=re(l),i.style.bottom=re(h),i.width=o,i.height=l+h,i.depth=-h,i.maxFontSize=l*1.125*r.sizeMultiplier,i},mathmlBuilder(a,r){const i=tt(a.width,r),o=tt(a.height,r),l=a.shift?tt(a.shift,r):0,h=r.color&&r.getColor()||"black",g=new J.MathNode("mspace");g.setAttribute("mathbackground",h),g.setAttribute("width",re(i)),g.setAttribute("height",re(o));const y=new J.MathNode("mpadded",[g]);return l>=0?y.setAttribute("height",re(l)):(y.setAttribute("height",re(l)),y.setAttribute("depth",re(-l))),y.setAttribute("voffset",re(l)),y}});function Ks(a,r,i){const o=bt(a,r,!1),l=r.sizeMultiplier/i.sizeMultiplier;for(let h=0;h<o.length;h++){const g=o[h].classes.indexOf("sizing");g<0?Array.prototype.push.apply(o[h].classes,r.sizingClasses(i)):o[h].classes[g+1]==="reset-size"+r.size&&(o[h].classes[g+1]="reset-size"+i.size),o[h].height*=l,o[h].depth*=l}return L.makeFragment(o)}const Ys=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"];me({type:"sizing",names:Ys,props:{numArgs:0,allowedInText:!0},handler:(a,r)=>{let{breakOnTokenText:i,funcName:o,parser:l}=a;const h=l.parseExpression(!1,i);return{type:"sizing",mode:l.mode,size:Ys.indexOf(o)+1,body:h}},htmlBuilder:(a,r)=>{const i=r.havingSize(a.size);return Ks(a.body,i,r)},mathmlBuilder:(a,r)=>{const i=r.havingSize(a.size),o=Nt(a.body,i),l=new J.MathNode("mstyle",o);return l.setAttribute("mathsize",re(i.sizeMultiplier)),l}}),me({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:(a,r,i)=>{let{parser:o}=a,l=!1,h=!1;const g=i[0]&&Ne(i[0],"ordgroup");if(g){let B="";for(let k=0;k<g.body.length;++k)if(B=g.body[k].text,B==="t")l=!0;else if(B==="b")h=!0;else{l=!1,h=!1;break}}else l=!0,h=!0;const y=r[0];return{type:"smash",mode:o.mode,body:y,smashHeight:l,smashDepth:h}},htmlBuilder:(a,r)=>{const i=L.makeSpan([],[Le(a.body,r)]);if(!a.smashHeight&&!a.smashDepth)return i;if(a.smashHeight&&(i.height=0,i.children))for(let l=0;l<i.children.length;l++)i.children[l].height=0;if(a.smashDepth&&(i.depth=0,i.children))for(let l=0;l<i.children.length;l++)i.children[l].depth=0;const o=L.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:i}]},r);return L.makeSpan(["mord"],[o],r)},mathmlBuilder:(a,r)=>{const i=new J.MathNode("mpadded",[rt(a.body,r)]);return a.smashHeight&&i.setAttribute("height","0px"),a.smashDepth&&i.setAttribute("depth","0px"),i}}),me({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler(a,r,i){let{parser:o}=a;const l=i[0],h=r[0];return{type:"sqrt",mode:o.mode,body:h,index:l}},htmlBuilder(a,r){let i=Le(a.body,r.havingCrampedStyle());i.height===0&&(i.height=r.fontMetrics().xHeight),i=L.wrapFragment(i,r);const l=r.fontMetrics().defaultRuleThickness;let h=l;
256r.style.id<ae.TEXT.id&&(h=r.fontMetrics().xHeight);let g=l+h/4;const y=i.height+i.depth+g+l,{span:B,ruleWidth:k,advanceWidth:N}=dr.sqrtImage(y,r),I=B.height-k;I>i.height+i.depth+g&&(g=(g+I-i.height-i.depth)/2);const H=B.height-i.height-g-k;i.style.paddingLeft=re(N);const Y=L.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:i,wrapperClasses:["svg-align"]},{type:"kern",size:-(i.height+H)},{type:"elem",elem:B},{type:"kern",size:k}]},r);if(a.index){const pe=r.havingStyle(ae.SCRIPTSCRIPT),we=Le(a.index,pe,r),Ie=.6*(Y.height-Y.depth),Re=L.makeVList({positionType:"shift",positionData:-Ie,children:[{type:"elem",elem:we}]},r),qe=L.makeSpan(["root"],[Re]);return L.makeSpan(["mord","sqrt"],[qe,Y],r)}else return L.makeSpan(["mord","sqrt"],[Y],r)},mathmlBuilder(a,r){const{body:i,index:o}=a;return o?new J.MathNode("mroot",[rt(i,r),rt(o,r)]):new J.MathNode("msqrt",[rt(i,r)])}});const Xs={display:ae.DISPLAY,text:ae.TEXT,script:ae.SCRIPT,scriptscript:ae.SCRIPTSCRIPT};me({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(a,r){let{breakOnTokenText:i,funcName:o,parser:l}=a;const h=l.parseExpression(!0,i),g=o.slice(1,o.length-5);return{type:"styling",mode:l.mode,style:g,body:h}},htmlBuilder(a,r){const i=Xs[a.style],o=r.havingStyle(i).withFont("");return Ks(a.body,o,r)},mathmlBuilder(a,r){const i=Xs[a.style],o=r.havingStyle(i),l=Nt(a.body,o),h=new J.MathNode("mstyle",l),y={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]}[a.style];return h.setAttribute("scriptlevel",y[0]),h.setAttribute("displaystyle",y[1]),h}});const Pl=function(a,r){const i=a.base;return i?i.type==="op"?i.limits&&(r.style.size===ae.DISPLAY.size||i.alwaysHandleSupSub)?Wr:null:i.type==="operatorname"?i.alwaysHandleSupSub&&(r.style.size===ae.DISPLAY.size||i.limits)?Us:null:i.type==="accent"?p.isCharacterBox(i.base)?kn:null:i.type==="horizBrace"&&!a.sub===i.isOver?Ws:null:null};Or({type:"supsub",htmlBuilder(a,r){const i=Pl(a,r);if(i)return i(a,r);const{base:o,sup:l,sub:h}=a,g=Le(o,r);let y,B;const k=r.fontMetrics();let N=0,I=0;const H=o&&p.isCharacterBox(o);if(l){const Ye=r.havingStyle(r.style.sup());y=Le(l,Ye,r),H||(N=g.height-Ye.fontMetrics().supDrop*Ye.sizeMultiplier/r.sizeMultiplier)}if(h){const Ye=r.havingStyle(r.style.sub());B=Le(h,Ye,r),H||(I=g.depth+Ye.fontMetrics().subDrop*Ye.sizeMultiplier/r.sizeMultiplier)}let Y;r.style===ae.DISPLAY?Y=k.sup1:r.style.cramped?Y=k.sup3:Y=k.sup2;const pe=r.sizeMultiplier,we=re(.5/k.ptPerEm/pe);let Ie=null;if(B){const Ye=a.base&&a.base.type==="op"&&a.base.name&&(a.base.name==="\\oiint"||a.base.name==="\\oiiint");(g instanceof Vt||Ye)&&(Ie=re(-g.italic))}let Re;if(y&&B){N=Math.max(N,Y,y.depth+.25*k.xHeight),I=Math.max(I,k.sub2);const nt=4*k.defaultRuleThickness;if(N-y.depth-(B.height-I)<nt){I=nt-(N-y.depth)+B.height;const Dt=.8*k.xHeight-(N-y.depth);Dt>0&&(N+=Dt,I-=Dt)}const St=[{type:"elem",elem:B,shift:I,marginRight:we,marginLeft:Ie},{type:"elem",elem:y,shift:-N,marginRight:we}];Re=L.makeVList({positionType:"individualShift",children:St},r)}else if(B){I=Math.max(I,k.sub1,B.height-.8*k.xHeight);const Ye=[{type:"elem",elem:B,marginLeft:Ie,marginRight:we}];Re=L.makeVList({positionType:"shift",positionData:I,children:Ye},r)}else if(y)N=Math.max(N,Y,y.depth+.25*k.xHeight),Re=L.makeVList({positionType:"shift",positionData:-N,children:[{type:"elem",elem:y,marginRight:we}]},r);else throw new Error("supsub must have either sup or sub.");const qe=xn(g,"right")||"mord";return L.makeSpan([qe],[g,L.makeSpan(["msupsub"],[Re])],r)},mathmlBuilder(a,r){let i=!1,o,l;a.base&&a.base.type==="horizBrace"&&(l=!!a.sup,l===a.base.isOver&&(i=!0,o=a.base.isOver)),a.base&&(a.base.type==="op"||a.base.type==="operatorname")&&(a.base.parentIsSupSub=!0);const h=[rt(a.base,r)];a.sub&&h.push(rt(a.sub,r)),a.sup&&h.push(rt(a.sup,r));let g;if(i)g=o?"mover":"munder";else if(a.sub)if(a.sup){const y=a.base;y&&y.type==="op"&&y.limits&&r.style===ae.DISPLAY||y&&y.type==="operatorname"&&y.alwaysHandleSupSub&&(r.style===ae.DISPLAY||y.limits)?g="munderover":g="msubsup"}else{const y=a.base;y&&y.type==="op"&&y.limits&&(r.style===ae.DISPLAY||y.alwaysHandleSupSub)||y&&y.type==="operatorname"&&y.alwaysHandleSupSub&&(y.limits||r.style===ae.DISPLAY)?g="munder":g="msub"}else{const y=a.base;y&&y.type==="op"&&y.limits&&(r.style===ae.DISPLAY||y.alwaysHandleSupSub)||y&&y.type==="operatorname"&&y.alwaysHandleSupSub&&(y.limits||r.style===ae.DISPLAY)?g="mover":g="msup"}return new J.MathNode(g,h)}}),Or({type:"atom",htmlBuilder(a,r){return L.mathsym(a.text,a.mode,r,["m"+a.family])},mathmlBuilder(a,r){const i=new J.MathNode("mo",[Gt(a.text,a.mode)]);if(a.family==="bin"){const o=En(a,r);o==="bold-italic"&&i.setAttribute("mathvariant",o)}else a.family==="punct"?i.setAttribute("separator","true"):(a.family==="open"||a.family==="close")&&i.setAttribute("stretchy","false");return i}});const _s={mi:"italic",mn:"normal",mtext:"normal"};Or({type:"mathord",htmlBuilder(a,r){return L.makeOrd(a,r,"mathord")},mathmlBuilder(a,r){const i=new J.MathNode("mi",[Gt(a.text,a.mode,r)]),o=En(a,r)||"italic";return o!==_s[i.type]&&i.setAttribute("mathvariant",o),i}}),Or({type:"textord",htmlBuilder(a,r){return L.makeOrd(a,r,"textord")},mathmlBuilder(a,r){const i=Gt(a.text,a.mode,r),o=En(a,r)||"normal";let l;return a.mode==="text"?l=new J.MathNode("mtext",[i]):/[0-9]/.test(a.text)?l=new J.MathNode("mn",[i]):a.text==="\\prime"?l=new J.MathNode("mo",[i]):l=new J.MathNode("mi",[i]),o!==_s[l.type]&&l.setAttribute("mathvariant",o),l}});const Gn={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},Un={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};Or({type:"spacing",htmlBuilder(a,r){if(Un.hasOwnProperty(a.text)){const i=Un[a.text].className||"";if(a.mode==="text"){const o=L.makeOrd(a,r,"textord");return o.classes.push(i),o}else return L.makeSpan(["mspace",i],[L.mathsym(a.text,a.mode,r)],r)}else{if(Gn.hasOwnProperty(a.text))return L.makeSpan(["mspace",Gn[a.text]],[],r);throw new f('Unknown type of space "'+a.text+'"')}},mathmlBuilder(a,r){let i;if(Un.hasOwnProperty(a.text))i=new J.MathNode("mtext",[new J.TextNode("Â ")]);else{if(Gn.hasOwnProperty(a.text))return new J.MathNode("mspace");throw new f('Unknown type of space "'+a.text+'"')}return i}});const Zs=()=>{const a=new J.MathNode("mtd",[]);return a.setAttribute("width","50%"),a};Or({type:"tag",mathmlBuilder(a,r){const i=new J.MathNode("mtable",[new J.MathNode("mtr",[Zs(),new J.MathNode("mtd",[br(a.body,r)]),Zs(),new J.MathNode("mtd",[br(a.tag,r)])])]);return i.setAttribute("width","100%"),i}});const Js={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},Qs={"\\textbf":"textbf","\\textmd":"textmd"},Rl={"\\textit":"textit","\\textup":"textup"},ei=(a,r)=>{const i=a.font;if(i){if(Js[i])return r.withTextFontFamily(Js[i]);if(Qs[i])return r.withTextFontWeight(Qs[i]);if(i==="\\emph")return r.fontShape==="textit"?r.withTextFontShape("textup"):r.withTextFontShape("textit")}else return r;return r.withTextFontShape(Rl[i])};me({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup","\\emph"],props:{numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0},handler(a,r){let{parser:i,funcName:o}=a;const l=r[0];return{type:"text",mode:i.mode,body:mt(l),font:o}},htmlBuilder(a,r){const i=ei(a,r),o=bt(a.body,i,!0);return L.makeSpan(["mord","text"],o,i)},mathmlBuilder(a,r){const i=ei(a,r);return br(a.body,i)}}),me({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler(a,r){let{parser:i}=a;return{type:"underline",mode:i.mode,body:r[0]}},htmlBuilder(a,r){const i=Le(a.body,r),o=L.makeLineSpan("underline-line",r),l=r.fontMetrics().defaultRuleThickness,h=L.makeVList({positionType:"top",positionData:i.height,children:[{type:"kern",size:l},{type:"elem",elem:o},{type:"kern",size:3*l},{type:"elem",elem:i}]},r);return L.makeSpan(["mord","underline"],[h],r)},mathmlBuilder(a,r){const i=new J.MathNode("mo",[new J.TextNode("â¾")]);i.setAttribute("stretchy","true");const o=new J.MathNode("munder",[rt(a.body,r),i]);return o.setAttribute("accentunder","true"),o}}
256),me({type:"vcenter",names:["\\vcenter"],props:{numArgs:1,argTypes:["original"],allowedInText:!1},handler(a,r){let{parser:i}=a;return{type:"vcenter",mode:i.mode,body:r[0]}},htmlBuilder(a,r){const i=Le(a.body,r),o=r.fontMetrics().axisHeight,l=.5*(i.height-o-(i.depth+o));return L.makeVList({positionType:"shift",positionData:l,children:[{type:"elem",elem:i}]},r)},mathmlBuilder(a,r){return new J.MathNode("mpadded",[rt(a.body,r)],["vcenter"])}}),me({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler(a,r,i){throw new f("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(a,r){const i=ti(a),o=[],l=r.havingStyle(r.style.text());for(let h=0;h<i.length;h++){let g=i[h];g==="~"&&(g="\\textasciitilde"),o.push(L.makeSymbol(g,"Typewriter-Regular",a.mode,l,["mord","texttt"]))}return L.makeSpan(["mord","text"].concat(l.sizingClasses(r)),L.tryCombineChars(o),l)},mathmlBuilder(a,r){const i=new J.TextNode(ti(a)),o=new J.MathNode("mtext",[i]);return o.setAttribute("mathvariant","monospace"),o}});const ti=a=>a.body.replace(/ /g,a.star?"â£":" ");var yr=is;const ri=`[ \r 257 ]`,Il="\\\\[a-zA-Z@]+",ql="\\\\[^\uD800-\uDFFF]",Ll="("+Il+")"+ri+"*",jl=`\\\\( 258|[ \r ]+ 259?)[ \r ]*`,Kn="[Ì-ͯ]",Hl=new RegExp(Kn+"+$"),Wl="("+ri+"+)|"+(jl+"|")+"([!-\\[\\]-â§âª-í¿ï¤-ï¿¿]"+(Kn+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(Kn+"*")+"|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5"+("|"+Ll)+("|"+ql+")");class ni{constructor(r,i){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=r,this.settings=i,this.tokenRegex=new RegExp(Wl,"g"),this.catcodes={"%":14,"~":13}}
259setCatcode(r,i){this.catcodes[r]=i}lex(){const r=this.input,i=this.tokenRegex.lastIndex;if(i===r.length)return new Wt("EOF",new Pt(this,i,i));const o=this.tokenRegex.exec(r);if(o===null||o.index!==i)throw new f("Unexpected character: '"+r[i]+"'",new Wt(r[i],new Pt(this,i,i+1)));const l=o[6]||o[3]||(o[2]?"\\ ":" ");if(this.catcodes[l]===14){const h=r.indexOf(` 260`,this.tokenRegex.lastIndex);return h===-1?(this.tokenRegex.lastIndex=r.length,this.settings.reportNonstrict("commentAtEnd","% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)")):this.tokenRegex.lastIndex=h+1,this.lex()}return new Wt(l,new Pt(this,i,this.tokenRegex.lastIndex))}}class $l{constructor(r,i){r===void 0&&(r={}),i===void 0&&(i={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=i,this.builtins=r,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(this.undefStack.length===0)throw new f("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");const r=this.undefStack.pop();for(const i in r)r.hasOwnProperty(i)&&(r[i]==null?delete this.current[i]:this.current[i]=r[i])}endGroups(){for(;this.undefStack.length>0;)this.endGroup()}has(r){return this.current.hasOwnProperty(r)||this.builtins.hasOwnProperty(r)}get(r){return this.current.hasOwnProperty(r)?this.current[r]:this.builtins[r]}set(r,i,o){if(o===void 0&&(o=!1),o){for(let l=0;l<this.undefStack.length;l++)delete this.undefStack[l][r];this.undefStack.length>0&&(this.undefStack[this.undefStack.length-1][r]=i)}else{const l=this.undefStack[this.undefStack.length-1];l&&!l.hasOwnProperty(r)&&(l[r]=this.current[r])}i==null?delete this.current[r]:this.current[r]=i}}var Vl=Ms;w("\\noexpand",function(a){const r=a.popToken();return a.isExpandable(r.text)&&(r.noexpand=!0,r.treatAsRelax=!0),{tokens:[r],numArgs:0}}),w("\\expandafter",function(a){const r=a.popToken();return a.expandOnce(!0),{tokens:[r],numArgs:0}}),w("\\@firstoftwo",function(a){return{tokens:a.consumeArgs(2)[0],numArgs:0}}),w("\\@secondoftwo",function(a){return{tokens:a.consumeArgs(2)[1],numArgs:0}}),w("\\@ifnextchar",function(a){const r=a.consumeArgs(3);a.consumeSpaces();const i=a.future();return r[0].length===1&&r[0][0].text===i.text?{tokens:r[1],numArgs:0}:{tokens:r[2],numArgs:0}}),w("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}"),w("\\TextOrMath",function(a){const r=a.consumeArgs(2);return a.mode==="text"?{tokens:r[0],numArgs:0}:{tokens:r[1],numArgs:0}});const ai={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};w("\\char",function(a){let r=a.popToken(),i,o="";if(r.text==="'")i=8,r=a.popToken();else if(r.text==='"')i=16,r=a.popToken();else if(r.text==="`")if(r=a.popToken(),r.text[0]==="\\")o=r.text.charCodeAt(1);else{if(r.text==="EOF")throw new f("\\char` missing argument");o=r.text.charCodeAt(0)}else i=10;if(i){if(o=ai[r.text],o==null||o>=i)throw new f("Invalid base-"+i+" digit "+r.text);let l;for(;(l=ai[a.future().text])!=null&&l<i;)o*=i,o+=l,a.popToken()}return"\\@char{"+o+"}"});const Yn=(a,r,i,o)=>{let l=a.consumeArg().tokens;if(l.length!==1)throw new f("\\newcommand's first argument must be a macro name");const h=l[0].text,g=a.isDefined(h);if(g&&!r)throw new f("\\newcommand{"+h+"} attempting to redefine "+(h+"; use \\renewcommand"));if(!g&&!i)throw new f("\\renewcommand{"+h+"} when command "+h+" does not yet exist; use \\newcommand");let y=0;if(l=a.consumeArg().tokens,l.length===1&&l[0].text==="["){let B="",k=a.expandNextToken();for(;k.text!=="]"&&k.text!=="EOF";)B+=k.text,k=a.expandNextToken();if(!B.match(/^\s*[0-9]+\s*$/))throw new f("Invalid number of arguments: "+B);y=parseInt(B),l=a.consumeArg().tokens}return g&&o||a.macros.set(h,{tokens:l,numArgs:y}),""};w("\\newcommand",a=>Yn(a,!1,!0,!1)),w("\\renewcommand",a=>Yn(a,!0,!1,!1)),w("\\providecommand",a=>Yn(a,!0,!0,!0)),w("\\message",a=>(a.consumeArgs(1)[0].reverse().map(i=>i.text).join(""),"")),w("\\errmessage",a=>{const r=a.consumeArgs(1)[0];return console.error(r.reverse().map(i=>i.text).join("")),""}),w("\\show",a=>{const r=a.popToken(),i=r.text;return a.macros.get(i),yr[i],lt.math[i],lt.text[i],""}),w("\\bgroup","{"),w("\\egroup","}
260"),w("~","\\nobreakspace"),w("\\lq","`"),w("\\rq","'"),w("\\aa","\\r a"),w("\\AA","\\r A"),w("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`©}"),w("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}"),w("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}"),w("â¬","\\mathscr{B}"),w("â°","\\mathscr{E}"),w("â±","\\mathscr{F}"),w("â","\\mathscr{H}"),w("â","\\mathscr{I}"),w("â","\\mathscr{L}"),w("â³","\\mathscr{M}"),w("â","\\mathscr{R}"),w("â","\\mathfrak{C}"),w("â","\\mathfrak{H}"),w("â¨","\\mathfrak{Z}"),w("\\Bbbk","\\Bbb{k}"),w("·","\\cdotp"),w("\\llap","\\mathllap{\\textrm{#1}}"),w("\\rlap","\\mathrlap{\\textrm{#1}}"),w("\\clap","\\mathclap{\\textrm{#1}}"),w("\\mathstrut","\\vphantom{(}"),w("\\underbar","\\underline{\\text{#1}}"),w("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}}{\\char"338}'),w("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`â }}"),w("\\ne","\\neq"),w("â ","\\neq"),w("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`â}}"),w("â","\\notin"),w("â","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`â}}"),w("â","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`â}}"),w("â","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`â}}"),w("â","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`â}}"),w("â","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`â}}"),w("â","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`â}}"),w("â","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`â}}"),w("â","\\perp"),w("â¼","\\mathclose{!\\mkern-0.8mu!}"),w("â","\\notni"),w("â","\\ulcorner"),w("â","\\urcorner"),w("â","\\llcorner"),w("â","\\lrcorner"),w("©","\\copyright"),w("®","\\textregistered"),w("ï¸","\\textregistered"),w("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}'),w("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}'),w("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}'),w("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}'),w("\\vdots","{\\varvdots\\rule{0pt}{15pt}}"),w("â®","\\vdots"),w("\\varGamma","\\mathit{\\Gamma}"),w("\\varDelta","\\mathit{\\Delta}"),w("\\varTheta","\\mathit{\\Theta}"),w("\\varLambda","\\mathit{\\Lambda}"),w("\\varXi","\\mathit{\\Xi}"),w("\\varPi","\\mathit{\\Pi}"),w("\\varSigma","\\mathit{\\Sigma}"),w("\\varUpsilon","\\mathit{\\Upsilon}"),w("\\varPhi","\\mathit{\\Phi}"),w("\\varPsi","\\mathit{\\Psi}"),w("\\varOmega","\\mathit{\\Omega}"),w("\\substack","\\begin{subarray}{c}#1\\end{subarray}"),w("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax"),w("\\boxed","\\fbox{$\\displaystyle{#1}$}"),w("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;"),w("\\implies","\\DOTSB\\;\\Longrightarrow\\;"),w("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;"),w("\\dddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ...}}{#1}}"),w("\\ddddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ....}}{#1}}");const si={",":"\\dotsc","\\not":"\\dotsb","+":"\\dotsb","=":"\\dotsb","<":"\\dotsb",">":"\\dotsb","-":"\\dotsb","*":"\\dotsb",":":"\\dotsb","\\DOTSB":"\\dotsb","\\coprod":"\\dotsb","\\bigvee":"\\dotsb","\\bigwedge":"\\dotsb","\\biguplus":"\\dotsb","\\bigcap":"\\dotsb","\\bigcup":"\\dotsb","\\prod":"\\dotsb","\\sum":"\\dotsb","\\bigotimes":"\\dotsb","\\bigoplus":"\\dotsb","\\bigodot":"\\dotsb","\\bigsqcup":"\\dotsb","\\And":"\\dotsb","\\longrightarrow":"\\dotsb","\\Longrightarrow":"\\dotsb","\\longleftarrow":"\\dotsb","\\Longleftarrow":"\\dotsb","\\longleftrightarrow":"\\dotsb","\\Longleftrightarrow":"\\dotsb","\\mapsto":"\\dotsb","\\longmapsto":"\\dotsb","\\hookrightarrow":"\\dotsb","\\doteq":"\\dotsb","\\mathbin":"\\dotsb","\\mathrel":"\\dotsb","\\relbar":"\\dotsb","\\Relbar":"\\dotsb","\\xrightarrow":"\\dotsb","\\xleftarrow":"\\dotsb","\\DOTSI":"\\dotsi","\\int":"\\dotsi","\\oint":"\\dotsi","\\iint":"\\dotsi","\\iiint":"\\dotsi","\\iiiint":"\\dotsi","\\idotsint":"\\dotsi","\\DOTSX":"\\dotsx"};w("\\dots",function(a){let r="\\dotso";const i=a.expandAfterFuture().text;return i in si?r=si[i]:(i.slice(0,4)==="\\not"||i in lt.math&&["bin","rel"].includes(lt.math[i].group))&&(r="\\dotsb"),r});const Xn={")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0};w("\\dotso",function(a){return a.future().text in Xn?"\\ldots\\,":"\\ldots"}),w("\\dotsc",function(a){const r=a.future().text;return r in Xn&&r!==","?"\\ldots\\,":"\\ldots"}),w("\\cdots",function(a){return a.future().text in Xn?"\\@cdots\\,":"\\@cdots"}),w("\\dotsb","\\cdots"),w("\\dotsm","\\cdots"),w("\\dotsi","\\!\\cdots"),w("\\dotsx","\\ldots\\,"),w("\\DOTSI","\\relax"),w("\\DOTSB","\\relax"),w("\\DOTSX","\\relax"),w("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax"),w("\\,","\\tmspace+{3mu}{.1667em}"),w("\\thinspace","\\,"),w("\\>","\\mskip{4mu}"),w("\\:","\\tmspace+{4mu}{.2222em}"),w("\\medspace","\\:"),w("\\;","\\tmspace+{5mu}{.2777em}"),w("\\thickspace","\\;"),w("\\!","\\tmspace-{3mu}{.1667em}"),w("\\negthinspace","\\!"),w("\\negmedspace","\\tmspace-{4mu}{.2222em}"),w("\\negthickspace","\\tmspace-{5mu}{.277em}"),w("\\enspace","\\kern.5em "),w("\\enskip","\\hskip.5em\\relax"),w("\\quad","\\hskip1em\\relax"),w("\\qquad","\\hskip2em\\relax"),w("\\tag","\\@ifstar\\tag@literal\\tag@paren"),w("\\tag@paren","\\tag@literal{({#1})}"),w("\\tag@literal",a=>{if(a.macros.get("\\df@tag"))throw new f("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"}),w("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}"),w("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)"),w("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}"),w("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1"),w("\\newline","\\\\\\relax"),w("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");const ii=re($e["Main-Regular"][84][1]-.7*$e["Main-Regular"][65][1]);w("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+ii+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}
260"),w("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+ii+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}"),w("\\hspace","\\@ifstar\\@hspacer\\@hspace"),w("\\@hspace","\\hskip #1\\relax"),w("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax"),w("\\ordinarycolon",":"),w("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}"),w("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}'),w("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}'),w("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}'),w("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}'),w("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}'),w("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}'),w("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}'),w("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}'),w("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}'),w("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}'),w("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}'),w("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}'),w("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}'),w("â·","\\dblcolon"),w("â¹","\\eqcolon"),w("â","\\coloneqq"),w("â","\\eqqcolon"),w("â©´","\\Coloneqq"),w("\\ratio","\\vcentcolon"),w("\\coloncolon","\\dblcolon"),w("\\colonequals","\\coloneqq"),w("\\coloncolonequals","\\Coloneqq"),w("\\equalscolon","\\eqqcolon"),w("\\equalscoloncolon","\\Eqqcolon"),w("\\colonminus","\\coloneq"),w("\\coloncolonminus","\\Coloneq"),w("\\minuscolon","\\eqcolon"),w("\\minuscoloncolon","\\Eqcolon"),w("\\coloncolonapprox","\\Colonapprox"),w("\\coloncolonsim","\\Colonsim"),w("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),w("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}"),w("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),w("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}"),w("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`â}}"),w("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}"),w("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}"),w("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}"),w("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}"),w("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}"),w("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}"),w("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}"),w("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}"),w("\\gvertneqq","\\html@mathml{\\@gvertneqq}{â©}"),w("\\lvertneqq","\\html@mathml{\\@lvertneqq}{â¨}"),w("\\ngeqq","\\html@mathml{\\@ngeqq}{â±}"),w("\\ngeqslant","\\html@mathml{\\@ngeqslant}{â±}"),w("\\nleqq","\\html@mathml{\\@nleqq}{â°}"),w("\\nleqslant","\\html@mathml{\\@nleqslant}{â°}"),w("\\nshortmid","\\html@mathml{\\@nshortmid}{â¤}"),w("\\nshortparallel","\\html@mathml{\\@nshortparallel}{â¦}"),w("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{â}"),w("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{â}"),w("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{â}"),w("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{â«}"),w("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{â}"),w("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{â«}"),w("\\imath","\\html@mathml{\\@imath}{ı}"),w("\\jmath","\\html@mathml{\\@jmath}{È·}"),w("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`â¦}}"),w("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`â§}}"),w("â¦","\\llbracket"),w("â§","\\rrbracket"),w("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}
260{\\mathopen{\\char`â¦}}"),w("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`â¦}}"),w("â¦","\\lBrace"),w("â¦","\\rBrace"),w("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}"),w("⦵","\\minuso"),w("\\darr","\\downarrow"),w("\\dArr","\\Downarrow"),w("\\Darr","\\Downarrow"),w("\\lang","\\langle"),w("\\rang","\\rangle"),w("\\uarr","\\uparrow"),w("\\uArr","\\Uparrow"),w("\\Uarr","\\Uparrow"),w("\\N","\\mathbb{N}"),w("\\R","\\mathbb{R}"),w("\\Z","\\mathbb{Z}"),w("\\alef","\\aleph"),w("\\alefsym","\\aleph"),w("\\Alpha","\\mathrm{A}"),w("\\Beta","\\mathrm{B}"),w("\\bull","\\bullet"),w("\\Chi","\\mathrm{X}"),w("\\clubs","\\clubsuit"),w("\\cnums","\\mathbb{C}"),w("\\Complex","\\mathbb{C}"),w("\\Dagger","\\ddagger"),w("\\diamonds","\\diamondsuit"),w("\\empty","\\emptyset"),w("\\Epsilon","\\mathrm{E}"),w("\\Eta","\\mathrm{H}"),w("\\exist","\\exists"),w("\\harr","\\leftrightarrow"),w("\\hArr","\\Leftrightarrow"),w("\\Harr","\\Leftrightarrow"),w("\\hearts","\\heartsuit"),w("\\image","\\Im"),w("\\infin","\\infty"),w("\\Iota","\\mathrm{I}"),w("\\isin","\\in"),w("\\Kappa","\\mathrm{K}"),w("\\larr","\\leftarrow"),w("\\lArr","\\Leftarrow"),w("\\Larr","\\Leftarrow"),w("\\lrarr","\\leftrightarrow"),w("\\lrArr","\\Leftrightarrow"),w("\\Lrarr","\\Leftrightarrow"),w("\\Mu","\\mathrm{M}"),w("\\natnums","\\mathbb{N}"),w("\\Nu","\\mathrm{N}"),w("\\Omicron","\\mathrm{O}"),w("\\plusmn","\\pm"),w("\\rarr","\\rightarrow"),w("\\rArr","\\Rightarrow"),w("\\Rarr","\\Rightarrow"),w("\\real","\\Re"),w("\\reals","\\mathbb{R}"),w("\\Reals","\\mathbb{R}"),w("\\Rho","\\mathrm{P}"),w("\\sdot","\\cdot"),w("\\sect","\\S"),w("\\spades","\\spadesuit"),w("\\sub","\\subset"),w("\\sube","\\subseteq"),w("\\supe","\\supseteq"),w("\\Tau","\\mathrm{T}"),w("\\thetasym","\\vartheta"),w("\\weierp","\\wp"),w("\\Zeta","\\mathrm{Z}"),w("\\argmin","\\DOTSB\\operatorname*{arg\\,min}"),w("\\argmax","\\DOTSB\\operatorname*{arg\\,max}"),w("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits"),w("\\bra","\\mathinner{\\langle{#1}|}"),w("\\ket","\\mathinner{|{#1}\\rangle}"),w("\\braket","\\mathinner{\\langle{#1}\\rangle}"),w("\\Bra","\\left\\langle#1\\right|"),w("\\Ket","\\left|#1\\right\\rangle");const ui=a=>r=>{const i=r.consumeArg().tokens,o=r.consumeArg().tokens,l=r.consumeArg().tokens,h=r.consumeArg().tokens,g=r.macros.get("|"),y=r.macros.get("\\|");r.macros.beginGroup();const B=I=>H=>{a&&(H.macros.set("|",g),l.length&&H.macros.set("\\|",y));let Y=I;return!I&&l.length&&H.future().text==="|"&&(H.popToken(),Y=!0),{tokens:Y?l:o,numArgs:0}};r.macros.set("|",B(!1)),l.length&&r.macros.set("\\|",B(!0));const k=r.consumeArg().tokens,N=r.expandTokens([...h,...k,...i]);return r.macros.endGroup(),{tokens:N.reverse(),numArgs:0}};w("\\bra@ket",ui(!1)),w("\\bra@set",ui(!0)),w("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}"),w("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}"),w("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}"),w("\\angln","{\\angl n}"),w("\\blue","\\textcolor{##6495ed}{#1}"),w("\\orange","\\textcolor{##ffa500}{#1}"),w("\\pink","\\textcolor{##ff00af}{#1}"),w("\\red","\\textcolor{##df0030}{#1}"),w("\\green","\\textcolor{##28ae7b}{#1}"),w("\\gray","\\textcolor{gray}{#1}"),w("\\purple","\\textcolor{##9d38bd}{#1}"),w("\\blueA","\\textcolor{##ccfaff}{#1}"),w("\\blueB","\\textcolor{##80f6ff}{#1}"),w("\\blueC","\\textcolor{##63d9ea}{#1}"),w("\\blueD","\\textcolor{##11accd}{#1}"),w("\\blueE","\\textcolor{##0c7f99}{#1}"),w("\\tealA","\\textcolor{##94fff5}{#1}"),w("\\tealB","\\textcolor{##26edd5}{#1}"),w("\\tealC","\\textcolor{##01d1c1}{#1}"),w("\\tealD","\\textcolor{##01a995}{#1}"),w("\\tealE","\\textcolor{##208170}{#1}"),w("\\greenA","\\textcolor{##b6ffb0}{#1}"),w("\\greenB","\\textcolor{##8af281}{#1}"),w("\\greenC","\\textcolor{##74cf70}{#1}"),w("\\greenD","\\textcolor{##1fab54}{#1}"),w("\\greenE","\\textcolor{##0d923f}{#1}"),w("\\goldA","\\textcolor{##ffd0a9}{#1}"),w("\\goldB","\\textcolor{##ffbb71}{#1}"),w("\\goldC","\\textcolor{##ff9c39}{#1}"),w("\\goldD","\\textcolor{##e07d10}{#1}"),w("\\goldE","\\textcolor{##a75a05}{#1}"),w("\\redA","\\textcolor{##fca9a9}{#1}"),w("\\redB","\\textcolor{##ff8482}{#1}"),w("\\redC","\\textcolor{##f9685d}{#1}"),w("\\redD","\\textcolor{##e84d39}{#1}
260"),w("\\redE","\\textcolor{##bc2612}{#1}"),w("\\maroonA","\\textcolor{##ffbde0}{#1}"),w("\\maroonB","\\textcolor{##ff92c6}{#1}"),w("\\maroonC","\\textcolor{##ed5fa6}{#1}"),w("\\maroonD","\\textcolor{##ca337c}{#1}"),w("\\maroonE","\\textcolor{##9e034e}{#1}"),w("\\purpleA","\\textcolor{##ddd7ff}{#1}"),w("\\purpleB","\\textcolor{##c6b9fc}{#1}"),w("\\purpleC","\\textcolor{##aa87ff}{#1}"),w("\\purpleD","\\textcolor{##7854ab}{#1}"),w("\\purpleE","\\textcolor{##543b78}{#1}"),w("\\mintA","\\textcolor{##f5f9e8}{#1}"),w("\\mintB","\\textcolor{##edf2df}{#1}"),w("\\mintC","\\textcolor{##e0e5cc}{#1}"),w("\\grayA","\\textcolor{##f6f7f7}{#1}"),w("\\grayB","\\textcolor{##f0f1f2}{#1}"),w("\\grayC","\\textcolor{##e3e5e6}{#1}"),w("\\grayD","\\textcolor{##d6d8da}{#1}"),w("\\grayE","\\textcolor{##babec2}{#1}"),w("\\grayF","\\textcolor{##888d93}{#1}"),w("\\grayG","\\textcolor{##626569}{#1}"),w("\\grayH","\\textcolor{##3b3e40}{#1}"),w("\\grayI","\\textcolor{##21242c}{#1}"),w("\\kaBlue","\\textcolor{##314453}{#1}"),w("\\kaGreen","\\textcolor{##71B307}{#1}");const oi={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0};class Gl{constructor(r,i,o){this.settings=void 0,this.expansionCount=void 0,this.lexer=void 0,this.macros=void 0,this.stack=void 0,this.mode=void 0,this.settings=i,this.expansionCount=0,this.feed(r),this.macros=new $l(Vl,i.macros),this.mode=o,this.stack=[]}feed(r){this.lexer=new ni(r,this.settings)}switchMode(r){this.mode=r}beginGroup(){this.macros.beginGroup()}endGroup(){this.macros.endGroup()}endGroups(){this.macros.endGroups()}future(){return this.stack.length===0&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]}popToken(){return this.future(),this.stack.pop()}pushToken(r){this.stack.push(r)}pushTokens(r){this.stack.push(...r)}scanArgument(r){let i,o,l;if(r){if(this.consumeSpaces(),this.future().text!=="[")return null;i=this.popToken(),{tokens:l,end:o}=this.consumeArg(["]"])}else({tokens:l,start:i,end:o}=this.consumeArg());return this.pushToken(new Wt("EOF",o.loc)),this.pushTokens(l),new Wt("",Pt.range(i,o))}consumeSpaces(){for(;this.future().text===" ";)this.stack.pop()}consumeArg(r){const i=[],o=r&&r.length>0;o||this.consumeSpaces();const l=this.future();let h,g=0,y=0;do{if(h=this.popToken(),i.push(h),h.text==="{")++g;else if(h.text==="}"){if(--g,g===-1)throw new f("Extra }",h)}else if(h.text==="EOF")throw new f("Unexpected end of input in a macro argument, expected '"+(r&&o?r[y]:"}")+"'",h);if(r&&o)if((g===0||g===1&&r[y]==="{")&&h.text===r[y]){if(++y,y===r.length){i.splice(-y,y);break}}else y=0}while(g!==0||o);return l.text==="{"&&i[i.length-1].text==="}"&&(i.pop(),i.shift()),i.reverse(),{tokens:i,start:l,end:h}}consumeArgs(r,i){if(i){if(i.length!==r+1)throw new f("The length of delimiters doesn't match the number of args!");const l=i[0];for(let h=0;h<l.length;h++){const g=this.popToken();if(l[h]!==g.text)throw new f("Use of the macro doesn't match its definition",g)}}const o=[];for(let l=0;l<r;l++)o.push(this.consumeArg(i&&i[l+1]).tokens);return o}countExpansion(r){if(this.expansionCount+=r,this.expansionCount>this.settings.maxExpand)throw new f("Too many expansions: infinite loop or need to increase maxExpand setting")}expandOnce(r){const i=this.popToken(),o=i.text,l=i.noexpand?null:this._getExpansion(o);if(l==null||r&&l.unexpandable){if(r&&l==null&&o[0]==="\\"&&!this.isDefined(o))throw new f("Undefined control sequence: "+o);return this.pushToken(i),!1}this.countExpansion(1);let h=l.tokens;const g=this.consumeArgs(l.numArgs,l.delimiters);if(l.numArgs){h=h.slice();for(let y=h.length-1;y>=0;--y){let B=h[y];if(B.text==="#"){if(y===0)throw new f("Incomplete placeholder at end of macro body",B);if(B=h[--y],B.text==="#")h.splice(y+1,1);else if(/^[1-9]$/.test(B.text))h.splice(y,2,...g[+B.text-1]);else throw new f("Not a valid argument number",B)}}}return this.pushTokens(h),h.length}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;)if(this.expandOnce()===!1){const r=this.stack.pop();return r.treatAsRelax&&(r.text="\\relax"),r}throw new Error}expandMacro(r){return this.macros.has(r)?this.expandTokens([new Wt(r)]):void 0}expandTokens(r){const i=[],o=this.stack.length;for(this.pushTokens(r);this.stack.length>o;)if(this.expandOnce(!0)===!1){const l=this.stack.pop();l.treatAsRelax&&(l.noexpand=!1,l.treatAsRelax=!1),i.push(l)}return this.countExpansion(i.length),i}expandMacroAsText(r){const i=this.expandMacro(r);return i&&i.map(o=>o.text).join("")}_getExpansion(r){const i=this.macros.get(r);if(i==null)return i;if(r.length===1){const l=this.lexer.catcodes[r];if(l!=null&&l!==13)return}const o=typeof i=="function"?i(this):i;
260if(typeof o=="string"){let l=0;if(o.indexOf("#")!==-1){const k=o.replace(/##/g,"");for(;k.indexOf("#"+(l+1))!==-1;)++l}const h=new ni(o,this.settings),g=[];let y=h.lex();for(;y.text!=="EOF";)g.push(y),y=h.lex();return g.reverse(),{tokens:g,numArgs:l}}return o}isDefined(r){return this.macros.has(r)||yr.hasOwnProperty(r)||lt.math.hasOwnProperty(r)||lt.text.hasOwnProperty(r)||oi.hasOwnProperty(r)}isExpandable(r){const i=this.macros.get(r);return i!=null?typeof i=="string"||typeof i=="function"||!i.unexpandable:yr.hasOwnProperty(r)&&!yr[r].primitive}}const li=/^[âââââââââââ
âââââââᵢⱼââââââáµ£ââᵤᵥâᵦᵧᵨᵩᵪ]/,L0=Object.freeze({"â":"+","â":"-","â":"=","â":"(","â":")","â":"0","â":"1","â":"2","â":"3","â":"4","â
":"5","â":"6","â":"7","â":"8","â":"9","â":"a","â":"e","â":"h","áµ¢":"i","â±¼":"j","â":"k","â":"l","â":"m","â":"n","â":"o","â":"p","áµ£":"r","â":"s","â":"t","ᵤ":"u","áµ¥":"v","â":"x","ᵦ":"β","áµ§":"γ","ᵨ":"Ï","ᵩ":"Ï","ᵪ":"Ï","âº":"+","â»":"-","â¼":"=","â½":"(","â¾":")","â°":"0","¹":"1","²":"2","³":"3","â´":"4","âµ":"5","â¶":"6","â·":"7","â¸":"8","â¹":"9","á´¬":"A","á´®":"B","á´°":"D","á´±":"E","á´³":"G","á´´":"H","á´µ":"I","á´¶":"J","á´·":"K","á´¸":"L","á´¹":"M","á´º":"N","á´¼":"O","á´¾":"P","á´¿":"R","áµ":"T","áµ":"U","â±½":"V","áµ":"W","áµ":"a","áµ":"b","á¶":"c","áµ":"d","áµ":"e","á¶ ":"f","áµ":"g",ʰ:"h","â±":"i",ʲ:"j","áµ":"k",Ë¡:"l","áµ":"m",â¿:"n","áµ":"o","áµ":"p",ʳ:"r",Ë¢:"s","áµ":"t","áµ":"u","áµ":"v",Ê·:"w",Ë£:"x",ʸ:"y","á¶»":"z","áµ":"β","áµ":"γ","áµ":"δ","áµ ":"Ï","ᵡ":"Ï","á¶¿":"θ"}),_n={"Ì":{text:"\\'",math:"\\acute"},"Ì":{text:"\\`",math:"\\grave"},"Ì":{text:'\\"',math:"\\ddot"},"Ì":{text:"\\~",math:"\\tilde"},"Ì":{text:"\\=",math:"\\bar"},"Ì":{text:"\\u",math:"\\breve"},"Ì":{text:"\\v",math:"\\check"},"Ì":{text:"\\^",math:"\\hat"},"Ì":{text:"\\.",math:"\\dot"},"Ì":{text:"\\r",math:"\\mathring"},"Ì":{text:"\\H"},"̧":{text:"\\c"}},ci={á:"aÌ",à :"aÌ",ä:"aÌ",Ç:"aÌÌ",ã:"aÌ",Ä:"aÌ",Ä:"aÌ",ắ:"aÌÌ",ằ:"aÌÌ",ẵ:"aÌÌ",Ç:"aÌ",â:"aÌ",ấ:"aÌÌ",ầ:"aÌÌ",ẫ:"aÌÌ",ȧ:"aÌ",Ç¡:"aÌÌ",Ã¥:"aÌ",Ç»:"aÌÌ",á¸:"bÌ",Ä:"cÌ",á¸:"çÌ",Ä:"cÌ",Ä:"cÌ",Ä:"cÌ",ç:"ç",Ä:"dÌ",á¸:"dÌ",á¸:"ḑ",é:"eÌ",è:"eÌ",ë:"eÌ",ẽ:"eÌ",Ä:"eÌ",á¸:"eÌÌ",á¸:"eÌÌ",Ä:"eÌ",á¸:"ȩÌ",Ä:"eÌ",ê:"eÌ",ế:"eÌÌ",á»:"eÌÌ",á»
:"eÌÌ",Ä:"eÌ",È©:"ȩ",á¸:"fÌ",ǵ:"gÌ",ḡ:"gÌ",Ä:"gÌ",ǧ:"gÌ",Ä:"gÌ",Ä¡:"gÌ",Ä£:"ģ",ḧ:"hÌ",È:"hÌ",Ä¥:"hÌ",ḣ:"hÌ",ḩ:"ḩ",Ã:"iÌ",ì:"iÌ",ï:"iÌ",ḯ:"iÌÌ",Ä©:"iÌ",Ä«:"iÌ",Ä:"iÌ",Ç:"iÌ",î:"iÌ",ǰ:"jÌ",ĵ:"jÌ",ḱ:"kÌ",Ç©:"kÌ",Ä·:"ķ",ĺ:"lÌ",ľ:"lÌ",ļ:"ļ",ḿ:"mÌ",á¹:"mÌ",Å:"nÌ",ǹ:"nÌ",ñ:"nÌ",Å:"nÌ",á¹
:"nÌ",Å:"ņ",ó:"oÌ",ò:"oÌ",ö:"oÌ",È«:"oÌÌ",õ:"oÌ",á¹:"oÌÌ",á¹:"oÌÌ",È:"oÌÌ",Å:"oÌ",á¹:"oÌÌ",á¹:"oÌÌ",Å:"oÌ",Ç:"oÌ",ô:"oÌ",á»:"oÌÌ",á»:"oÌÌ",á»:"oÌÌ",ȯ:"oÌ",ȱ:"oÌÌ",Å:"oÌ",á¹:"pÌ",á¹:"pÌ",Å:"rÌ",Å:"rÌ",á¹:"rÌ",Å:"ŗ",Å:"sÌ",á¹¥:"sÌÌ",Å¡:"sÌ",á¹§:"sÌÌ",Å:"sÌ",ṡ:"sÌ",Å:"ş",áº:"tÌ",Å¥:"tÌ",ṫ:"tÌ",Å£:"ţ",ú:"uÌ",ù:"uÌ",ü:"uÌ",Ç:"uÌÌ",Ç:"uÌÌ",Ç:"uÌÌ",Ç:"uÌÌ",Å©:"uÌ",á¹¹:"uÌÌ",Å«:"uÌ",á¹»:"uÌÌ",Å:"uÌ",Ç:"uÌ",û:"uÌ",ů:"uÌ",ű:"uÌ",á¹½:"vÌ",áº:"wÌ",áº:"wÌ",áº
:"wÌ",ŵ:"wÌ",áº:"wÌ",áº:"wÌ",áº:"xÌ",áº:"xÌ",ý:"yÌ",ỳ:"yÌ",ÿ:"yÌ",ỹ:"yÌ",ȳ:"yÌ",Å·:"yÌ",áº:"yÌ",áº:"yÌ",ź:"zÌ",ž:"zÌ",áº:"zÌ",ż:"zÌ",Ã:"AÌ",Ã:"AÌ",Ã:"AÌ",Ç:"AÌÌ",Ã:"AÌ",Ä:"AÌ",Ä:"AÌ",Ắ:"AÌÌ",Ằ:"AÌÌ",Ẵ:"AÌÌ",Ç:"AÌ",Ã:"AÌ",Ấ:"AÌÌ",Ầ:"AÌÌ",Ẫ:"AÌÌ",Ȧ:"AÌ",Ç :"AÌÌ",Ã
:"AÌ",Ǻ:"AÌÌ",á¸:"BÌ",Ä:"CÌ",á¸:"ÇÌ",Ä:"CÌ",Ä:"CÌ",Ä:"CÌ",Ã:"Ç",Ä:"DÌ",á¸:"DÌ",á¸:"Ḑ",Ã:"EÌ",Ã:"EÌ",Ã:"EÌ",Ẽ:"EÌ",Ä:"EÌ",á¸:"EÌÌ",á¸:"EÌÌ",Ä:"EÌ",á¸:"ȨÌ",Ä:"EÌ",Ã:"EÌ",Ế:"EÌÌ",á»:"EÌÌ",á»:"EÌÌ",Ä:"EÌ",Ȩ:"Ȩ",á¸:"FÌ",Ç´:"GÌ",Ḡ:"GÌ",Ä:"GÌ",Ǧ:"GÌ",Ä:"GÌ",Ä :"GÌ",Ä¢:"Ģ",Ḧ:"HÌ",È:"HÌ",Ĥ:"HÌ",Ḣ:"HÌ",Ḩ:"Ḩ",Ã:"IÌ",Ã:"IÌ",Ã:"IÌ",Ḯ:"IÌÌ",Ĩ:"IÌ",Ī:"IÌ",Ĭ:"IÌ",Ç:"IÌ",Ã:"IÌ",İ:"IÌ",Ä´:"JÌ",Ḱ:"KÌ",Ǩ:"KÌ",Ķ:"Ķ",Ĺ:"LÌ",Ľ:"LÌ",Ä»:"Ļ",Ḿ:"MÌ",á¹:"MÌ",Å:"NÌ",Ǹ:"NÌ",Ã:"NÌ",Å:"NÌ",á¹:"NÌ",Å
:"Ņ",Ã:"OÌ",Ã:"OÌ",Ã:"OÌ",Ȫ:"OÌÌ",Ã:"OÌ",á¹:"OÌÌ",á¹:"OÌÌ",Ȭ:"OÌÌ",Å:"OÌ",á¹:"OÌÌ",á¹:"OÌÌ",Å:"OÌ",Ç:"OÌ",Ã:"OÌ",á»:"OÌÌ",á»:"OÌÌ",á»:"OÌÌ",È®:"OÌ",Ȱ:"OÌÌ",Å:"OÌ",á¹:"PÌ",á¹:"PÌ",Å:"RÌ",Å:"RÌ",á¹:"RÌ",Å:"Ŗ",Å:"SÌ",Ṥ:"SÌÌ",Å :"SÌ",Ṧ:"SÌÌ",Å:"SÌ",á¹ :"SÌ",Å:"Ş",Ť:"TÌ",Ṫ:"TÌ",Å¢:"Ţ",Ã:"UÌ",Ã:"UÌ",Ã:"UÌ",Ç:"UÌÌ",Ç:"UÌÌ",Ç:"UÌÌ",Ç:"UÌÌ",Ũ:"UÌ",Ṹ:"UÌÌ",Ū:"UÌ",Ṻ:"UÌÌ",Ŭ:"UÌ",Ç:"UÌ",Ã:"UÌ",Å®:"UÌ",Ű:"UÌ",á¹¼:"VÌ",áº:"WÌ",áº:"WÌ",áº:"WÌ",Å´:"WÌ",áº:"WÌ",áº:"XÌ",áº:"XÌ",Ã:"YÌ",Ỳ:"YÌ",Ÿ:"YÌ",Ỹ:"YÌ",Ȳ
260:"YÌ",Ŷ:"YÌ",áº:"YÌ",Ź:"ZÌ",Ž:"ZÌ",áº:"ZÌ",Å»:"ZÌ",ά:"αÌ",á½°:"αÌ",á¾±:"αÌ",á¾°:"αÌ",Î:"εÌ",á½²:"εÌ",ή:"ηÌ",á½´:"ηÌ",ί:"ιÌ",á½¶:"ιÌ",Ï:"ιÌ",Î:"ιÌÌ",á¿:"ιÌÌ",á¿:"ιÌ",á¿:"ιÌ",Ï:"οÌ",ὸ:"οÌ",Ï:"Ï
Ì",ὺ:"Ï
Ì",Ï:"Ï
Ì",ΰ:"Ï
ÌÌ",á¿¢:"Ï
ÌÌ",á¿¡:"Ï
Ì",á¿ :"Ï
Ì",Ï:"ÏÌ",á½¼:"ÏÌ",Î:"Î¥Ì",Ὺ:"Î¥Ì",Ϋ:"Î¥Ì",á¿©:"Î¥Ì",Ῠ:"Î¥Ì",Î:"ΩÌ",Ὼ:"ΩÌ"};class j0{constructor(r,i){this.mode=void 0,this.gullet=void 0,this.settings=void 0,this.leftrightDepth=void 0,this.nextToken=void 0,this.mode="math",this.gullet=new Gl(r,i,this.mode),this.settings=i,this.leftrightDepth=0}expect(r,i){if(i===void 0&&(i=!0),this.fetch().text!==r)throw new f("Expected '"+r+"', got '"+this.fetch().text+"'",this.fetch());i&&this.consume()}consume(){this.nextToken=null}fetch(){return this.nextToken==null&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken}switchMode(r){this.mode=r,this.gullet.switchMode(r)}parse(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");try{const r=this.parseExpression(!1);return this.expect("EOF"),this.settings.globalGroup||this.gullet.endGroup(),r}finally{this.gullet.endGroups()}}subparse(r){const i=this.nextToken;this.consume(),this.gullet.pushToken(new Wt("}")),this.gullet.pushTokens(r);const o=this.parseExpression(!1);return this.expect("}"),this.nextToken=i,o}parseExpression(r,i){const o=[];for(;;){this.mode==="math"&&this.consumeSpaces();const l=this.fetch();if(j0.endOfExpression.indexOf(l.text)!==-1||i&&l.text===i||r&&yr[l.text]&&yr[l.text].infix)break;const h=this.parseAtom(i);if(h){if(h.type==="internal")continue}else break;o.push(h)}return this.mode==="text"&&this.formLigatures(o),this.handleInfixNodes(o)}handleInfixNodes(r){let i=-1,o;for(let l=0;l<r.length;l++)if(r[l].type==="infix"){if(i!==-1)throw new f("only one infix operator per group",r[l].token);i=l,o=r[l].replaceWith}if(i!==-1&&o){let l,h;const g=r.slice(0,i),y=r.slice(i+1);g.length===1&&g[0].type==="ordgroup"?l=g[0]:l={type:"ordgroup",mode:this.mode,body:g},y.length===1&&y[0].type==="ordgroup"?h=y[0]:h={type:"ordgroup",mode:this.mode,body:y};let B;return o==="\\\\abovefrac"?B=this.callFunction(o,[l,r[i],h],[]):B=this.callFunction(o,[l,h],[]),[B]}else return r}handleSupSubscript(r){const i=this.fetch(),o=i.text;this.consume(),this.consumeSpaces();let l;do{var h;l=this.parseGroup(r)}while(((h=l)==null?void 0:h.type)==="internal");if(!l)throw new f("Expected group after '"+o+"'",i);return l}formatUnsupportedCmd(r){const i=[];for(let h=0;h<r.length;h++)i.push({type:"textord",mode:"text",text:r[h]});const o={type:"text",mode:this.mode,body:i};return{type:"color",mode:this.mode,color:this.settings.errorColor,body:[o]}}parseAtom(r){const i=this.parseGroup("atom",r);if(i?.type==="internal"||this.mode==="text")return i;let o,l;for(;;){this.consumeSpaces();const h=this.fetch();if(h.text==="\\limits"||h.text==="\\nolimits"){if(i&&i.type==="op"){const g=h.text==="\\limits";i.limits=g,i.alwaysHandleSupSub=!0}else if(i&&i.type==="operatorname")i.alwaysHandleSupSub&&(i.limits=h.text==="\\limits");else throw new f("Limit controls must follow a math operator",h);this.consume()}else if(h.text==="^"){if(o)throw new f("Double superscript",h);o=this.handleSupSubscript("superscript")}else if(h.text==="_"){if(l)throw new f("Double subscript",h);l=this.handleSupSubscript("subscript")}else if(h.text==="'"){if(o)throw new f("Double superscript",h);const g={type:"textord",mode:this.mode,text:"\\prime"},y=[g];for(this.consume();this.fetch().text==="'";)y.push(g),this.consume();this.fetch().text==="^"&&y.push(this.handleSupSubscript("superscript")),o={type:"ordgroup",mode:this.mode,body:y}}else if(L0[h.text]){const g=li.test(h.text),y=[];for(y.push(new Wt(L0[h.text])),this.consume();;){const k=this.fetch().text;if(!L0[k]||li.test(k)!==g)break;y.unshift(new Wt(L0[k])),this.consume()}const B=this.subparse(y);g?l={type:"ordgroup",mode:"math",body:B}:o={type:"ordgroup",mode:"math",body:B}}else break}return o||l?{type:"supsub",mode:this.mode,base:i,sup:o,sub:l}:i}parseFunction(r,i){const o=this.fetch(),l=o.text,h=yr[l];if(!h)return null;if(this.consume(),i&&i!=="atom"&&!h.allowedInArgument)throw new f("Got function '"+l+"' with no arguments"+(i?" as "+i:""),o);if(this.mode==="text"&&!h.allowedInText)throw new f("Can't use function '"+l+"' in text mode",o);if(this.mode==="math"&&h.allowedInMath===!1)throw new f("Can't use function '"+l+"' in math mode",o);const{args:g,optArgs:y}=this.parseArguments(l,h);return this.callFunction(l,g,y,o,r)}callFunction(r,i,o,l,h){const g={funcName:r,parser:this,token:l,breakOnTokenText:h},y=yr[r];if(y&&y.handler)return y.handler(g,i,o);throw new f("No function handler for "+r)}parseArguments(r,i){const o=i.numArgs+i.numOptionalArgs;if(o===0)return{args:[],optArgs:[]};const l=[],h=[];for(let g=0;g<o;g++){let y=i.argTypes&&i.argTypes[g];const B=g<i.numOptionalArgs;(i.primitive&&y==null||i.type==="sqrt"&&g===1&&h[0]==null)&&(y="primitive");const k=this.parseGroupOfType("argument to '"+r+"'",y,B);if(B)h.push(k);else if(k!=null)l.push(k);else throw new f("Null argument, please report this as a bug")}return{args:l,optArgs:h}}parseGroupOfType(r,i,o){switch(i){case"color":return this.parseColorGroup(o);case"size":return this.parseSizeGroup(o);case"url":return this.parseUrlGroup(o);case"math":case"text":return this.parseArgumentGroup(o,i);case"hbox":{const l=this.parseArgumentGroup(o,"text");return l!=null?{type:"styling",mode:l.mode,body:[l],style:"text"}:null}case"raw":{const l=this.parseStringGroup("raw",o);return l!=null?{type:"raw",mode:"text",string:l.text}:null}case"primitive":{if(o)throw new f("A primitive argument cannot be optional");const l=this.parseGroup(r);if(l==null)throw new f("Expected group as "+r,this.fetch());return l}case"original":case null:case void 0:return this.parseArgumentGroup(o);default:throw new f("Unknown group type as "+r,this.fetch())}}consumeSpaces(){for(;this.fetch().text===" ";)this.consume()}parseStringGroup(r,i){const o=this.gullet.scanArgument(i);if(o==null)return null;let l="",h;for(;(h=this.fetch()).text!=="EOF";)l+=h.text,this.consume();return this.consume(),o.text=l,o}parseRegexGroup(r,i){const o=this.fetch();let l=o,h="",g;for(;(g=this.fetch()).text!=="EOF"&&r.test(h+g.text);)l=g,h+=l.text,this.consume();if(h==="")throw new f("Invalid "+i+": '"+o.text+"'",o);return o.range(l,h)}parseColorGroup(r){const i=this.parseStringGroup("color",r);if(i==null)return null;const o=/^(#[a-f0-9]{3,4}|#[a-f0-9]{6}|#[a-f0-9]{8}|[a-f0-9]{6}|[a-z]+)$/i.exec(i.text);if(!o)throw new f("Invalid color: '"+i.text+"'",i);let l=o[0];return/^[0-9a-f]{6}$/i.test(l)&&(l="#"+l),{type:"color-token",mode:this.mode,color:l}}parseSizeGroup(r){let i,o=!1;if(this.gullet.consumeSpaces(),!r&&this.gullet.future().text!=="{"?i=this.parseRegexGroup(/^[-+]? *(?:$|\d+|\d+\.\d*|\.\d*) *[a-z]{0,2} *$/,"size"):i=this.parseStringGroup("size",r),!i)return null;!r&&i.text.length===0&&(i.text="0pt",o=!0);const l=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(i.text);if(!l)throw new f("Invalid size: '"+i.text+"'",i);const h={number:+(l[1]+l[2]),unit:l[3]};if(!Lt(h))throw new f("Invalid unit: '"+h.unit+"'",i);return{type:"size",mode:this.mode,value:h,isBlank:o}}parseUrlGroup(r){this.gullet.lexer.setCatcode("%",13),this.gullet.lexer.setCatcode("~",12);const i=this.parseStringGroup("url",r);if(this.gullet.lexer.setCatcode("%",14),this.gullet.lexer.setCatcode("~",13),i==null)return null;const o=i.text.replace(/\\([#$%&~_^{}])/g,"$1");return{type:"url",mode:this.mode,url:o}}parseArgumentGroup(r,i){const o=this.gullet.scanArgument(r);if(o==null)return null;const l=this.mode;i&&this.switchMode(i),this.gullet.beginGroup();const h=this.parseExpression(!1,"EOF");this.expect("EOF"),this.gullet.endGroup();const g={type:"ordgroup",mode:this.mode,loc:o.loc,body:h};return i&&this.switchMode(l),g}parseGroup(r,i){const o=this.fetch(),l=o.text;let h;if(l==="{"||l==="\\begingroup"){this.consume();const g=l==="{"?"}":"\\endgroup";this.gullet.beginGroup();const y=this.parseExpression(!1,g),B=this.fetch();this.expect(g),this.gullet.endGroup(),h={type:"ordgroup",mode:this.mode,loc:Pt.range(o,B),body:y,semisimple:l==="\\begingroup"||void 0}}else if(h=this.parseFunction(i,r)||this.parseSymbol(),h==null&&l[0]==="\\"&&!oi.hasOwnProperty(l)){if(this.settings.throwOnError)throw new f("Undefined control sequence: "+l,o);h=this.formatUnsupportedCmd(l),this.consume()}return h}formLigatures(r){let i=r.length-1;for(let o=0;o<i;
260++o){const l=r[o],h=l.text;h==="-"&&r[o+1].text==="-"&&(o+1<i&&r[o+2].text==="-"?(r.splice(o,3,{type:"textord",mode:"text",loc:Pt.range(l,r[o+2]),text:"---"}),i-=2):(r.splice(o,2,{type:"textord",mode:"text",loc:Pt.range(l,r[o+1]),text:"--"}),i-=1)),(h==="'"||h==="`")&&r[o+1].text===h&&(r.splice(o,2,{type:"textord",mode:"text",loc:Pt.range(l,r[o+1]),text:h+h}),i-=1)}}parseSymbol(){const r=this.fetch();let i=r.text;if(/^\\verb[^a-zA-Z]/.test(i)){this.consume();let h=i.slice(5);const g=h.charAt(0)==="*";if(g&&(h=h.slice(1)),h.length<2||h.charAt(0)!==h.slice(-1))throw new f(`\\verb assertion failed -- 261 please report what input caused this bug`);return h=h.slice(1,-1),{type:"verb",mode:"text",body:h,star:g}}ci.hasOwnProperty(i[0])&&!lt[this.mode][i[0]]&&(this.settings.strict&&this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Accented Unicode text character "'+i[0]+'" used in math mode',r),i=ci[i[0]]+i.slice(1));const o=Hl.exec(i);o&&(i=i.substring(0,o.index),i==="i"?i="ı":i==="j"&&(i="ȷ"));let l;if(lt[this.mode][i]){this.settings.strict&&this.mode==="math"&&Dn.indexOf(i)>=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+i[0]+'" used in math mode',r);const h=lt[this.mode][i].group,g=Pt.range(r);let y;if(Ho.hasOwnProperty(h)){const B=h;y={type:"atom",mode:this.mode,family:B,loc:g,text:i}}else y={type:h,mode:this.mode,loc:g,text:i};l=y}else if(i.charCodeAt(0)>=128)this.settings.strict&&(pt(i.charCodeAt(0))?this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+i[0]+'" used in math mode',r):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+i[0]+'"'+(" ("+i.charCodeAt(0)+")"),r)),l={type:"textord",mode:"text",loc:Pt.range(r),text:i};else return null;if(this.consume(),o)for(let h=0;h<o[0].length;h++){const g=o[0][h];if(!_n[g])throw new f("Unknown accent ' "+g+"'",r);const y=_n[g][this.mode]||_n[g].text;if(!y)throw new f("Accent "+g+" unsupported in "+this.mode+" mode",r);l={type:"accent",mode:this.mode,loc:Pt.range(r),label:y,isStretchy:!1,isShifty:!0,base:l}}return l}}j0.endOfExpression=["}","\\endgroup","\\end","\\right","&"];var Zn=function(a,r){if(!(typeof a=="string"||a instanceof String))throw new TypeError("KaTeX can only parse string typed expression");const i=new j0(a,r);delete i.gullet.macros.current["\\df@tag"];let o=i.parse();if(delete i.gullet.macros.current["\\current@color"],delete i.gullet.macros.current["\\color"],i.gullet.macros.get("\\df@tag")){if(!r.displayMode)throw new f("\\tag works only in display equations");o=[{type:"tag",mode:"text",body:o,tag:i.subparse([new Wt("\\df@tag")])}]}return o};let fi=function(a,r,i){r.textContent="";const o=Jn(a,i).toNode();r.appendChild(o)};typeof document<"u"&&document.compatMode!=="CSS1Compat"&&(typeof console<"u"&&console.warn("Warning: KaTeX doesn't work in quirks mode. Make sure your website has a suitable doctype."),fi=function(){throw new f("KaTeX doesn't work in quirks mode.")});const Ul=function(a,r){return Jn(a,r).toMarkup()},Kl=function(a,r){const i=new V(r);return Zn(a,i)},hi=function(a,r,i){if(i.throwOnError||!(a instanceof f))throw a;const o=L.makeSpan(["katex-error"],[new Vt(r)]);return o.setAttribute("title",a.toString()),o.setAttribute("style","color:"+i.errorColor),o},Jn=function(a,r){const i=new V(r);try{const o=Zn(a,i);return ol(o,a,i)}catch(o){return hi(o,a,i)}};var Yl={version:"0.16.28",render:fi,renderToString:Ul,ParseError:f,SETTINGS_SCHEMA:W,__parse:Kl,__renderToDomTree:Jn,__renderToHTMLTree:function(a,r){const i=new V(r);try{const o=Zn(a,i);return ll(o,a,i)}catch(o){return hi(o,a,i)}},__setFontMetrics:Ct,__defineSymbol:c,__defineFunction:me,__defineMacro:w,__domTree:{Span:Fr,Anchor:Zr,SymbolNode:Vt,SvgNode:or,PathNode:vr,LineNode:bn}},Xl=Yl;return s=s.default,s})()})})(J0)),J0.exports}var n1=a0.exports,gi;function bd(){return gi||(gi=1,(function(t,e){(function(n,s){s(e,Jl(),e1(),r1())})(n1,function(n,s,u,f){Object.defineProperty(n,"__esModule",{value:!0});function m(p,W){for(var j in W)Object.defineProperty(p,j,{enumerable:!0,get:W[j]})}m(n,{BlockMath:()=>q,InlineMath:()=>M}),s=C(s),u=D(u),f=D(f);function D(p){return p&&p.__esModule?p:{default:p}}function x(p){if(typeof WeakMap!="function")return null;var W=new WeakMap,j=new WeakMap;return(x=function(V){return V?j:W})(p)}function C(p,W){if(p&&p.__esModule)return p;if(p===null||typeof p!="object"&&typeof p!="function")return{default:p};var j=x(W);
261if(j&&j.has(p))return j.get(p);var V={},U=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var X in p)if(X!=="default"&&Object.prototype.hasOwnProperty.call(p,X)){var ce=U?Object.getOwnPropertyDescriptor(p,X):null;ce&&(ce.get||ce.set)?Object.defineProperty(V,X,ce):V[X]=p[X]}return V.default=p,j&&j.set(p,V),V}const A=(p,{displayMode:W})=>{const j=({children:V,errorColor:U,math:X,renderError:ce})=>{const oe=X??V,{html:he,error:ge}=(0,s.useMemo)(()=>{try{return{html:f.default.renderToString(oe,{displayMode:W,errorColor:U,throwOnError:!!ce}),error:void 0}}catch(ne){if(ne instanceof f.default.ParseError||ne instanceof TypeError)return{error:ne};throw ne}},[oe,U,ce]);return ge?ce?ce(ge):s.default.createElement(p,{html:`${ge.message}`}):s.default.createElement(p,{html:he})};return j.propTypes={children:u.default.string,errorColor:u.default.string,math:u.default.string,renderError:u.default.func},j},T={html:u.default.string.isRequired},F=({html:p})=>s.default.createElement("div",{"data-testid":"react-katex",dangerouslySetInnerHTML:{__html:p}});F.propTypes=T;const P=({html:p})=>s.default.createElement("span",{"data-testid":"react-katex",dangerouslySetInnerHTML:{__html:p}});P.propTypes=T;const q=A(F,{displayMode:!0}),M=A(P,{displayMode:!1})})})(a0,a0.exports)),a0.exports}var _u=Symbol.for("immer-nothing"),vi=Symbol.for("immer-draftable"),$t=Symbol.for("immer-state");function Zt(t,...e){throw new Error(`[Immer] minified error nr: ${t}. Full error at: https://bit.ly/3cXEKWf`)}var l0=Object.getPrototypeOf;function qr(t){return!!t&&!!t[$t]}function Lr(t){return t?Zu(t)||Array.isArray(t)||!!t[vi]||!!t.constructor?.[vi]||D0(t)||mn(t):!1}var a1=Object.prototype.constructor.toString(),bi=new WeakMap;function Zu(t){if(!t||typeof t!="object")return!1;const e=Object.getPrototypeOf(t);if(e===null||e===Object.prototype)return!0;const n=Object.hasOwnProperty.call(e,"constructor")&&e.constructor;if(n===Object)return!0;if(typeof n!="function")return!1;let s=bi.get(n);return s===void 0&&(s=Function.toString.call(n),bi.set(n,s)),s===a1}function an(t,e,n=!0){dn(t)===0?(n?Reflect.ownKeys(t):Object.keys(t)).forEach(u=>{e(u,t[u],t)}):t.forEach((s,u)=>e(u,s,t))}function dn(t){const e=t[$t];return e?e.type_:Array.isArray(t)?1:D0(t)?2:mn(t)?3:0}function xa(t,e){return dn(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function Ju(t,e,n){const s=dn(t);s===2?t.set(e,n):s===3?t.add(n):t[e]=n}function s1(t,e){return t===e?t!==0||1/t===1/e:t!==t&&e!==e}function D0(t){return t instanceof Map}function mn(t){return t instanceof Set}function Mr(t){return t.copy_||t.base_}function Ba(t,e){if(D0(t))return new Map(t);if(mn(t))return new Set(t);if(Array.isArray(t))return Array.prototype.slice.call(t);const n=Zu(t);if(e===!0||e==="class_only"&&!n){const s=Object.getOwnPropertyDescriptors(t);delete s[$t];let u=Reflect.ownKeys(s);for(let f=0;f<u.length;f++){const m=u[f],D=s[m];D.writable===!1&&(D.writable=!0,D.configurable=!0),(D.get||D.set)&&(s[m]={configurable:!0,writable:!0,enumerable:D.enumerable,value:t[m]})}return Object.create(l0(t),s)}else{const s=l0(t);if(s!==null&&n)return{...t};const u=Object.create(s);return Object.assign(u,t)}}function Ia(t,e=!1){return pn(t)||qr(t)||!Lr(t)||(dn(t)>1&&Object.defineProperties(t,{set:$0,add:$0,clear:$0,delete:$0}),Object.freeze(t),e&&Object.values(t).forEach(n=>Ia(n,!0))),t}function i1(){Zt(2)}var $0={value:i1};function pn(t){return t===null||typeof t!="object"?!0:Object.isFrozen(t)}var u1={};function jr(t){const e=u1[t];return e||Zt(0,t),e}var c0;function Qu(){return c0}function o1(t,e){return{drafts_:[],parent_:t,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function Di(t,e){e&&(jr("Patches"),t.patches_=[],t.inversePatches_=[],t.patchListener_=e)}function Aa(t){Ea(t),t.drafts_.forEach(l1),t.drafts_=null}function Ea(t){t===c0&&(c0=t.parent_)}function yi(t){return c0=o1(c0,t)}function l1(t){const e=t[$t];e.type_===0||e.type_===1?e.revoke_():e.revoked_=!0}function wi(t,e){e.unfinalizedDrafts_=e.drafts_.length;const n=e.drafts_[0];return t!==void 0&&t!==n?(n[$t].modified_&&(Aa(e),Zt(4)),Lr(t)&&(t=sn(e,t),e.parent_||un(e,t)),e.patches_&&jr("Patches").generateReplacementPatches_(n[$t].base_,t,e.patches_,e.inversePatches_)):t=sn(e,n,[]),Aa(e),e.patches_&&e.patchListener_(e.patches_,e.inversePatches_),t!==_u?t:void 0}function sn(t,e,n){if(pn(e))return e;const s=t.immer_.shouldUseStrictIteration(),u=e[$t];if(!u)return an(e,(f,m)=>Ci(t,u,e,f,m,n),s),e;if(u.scope_!==t)return e;if(!u.modified_)return un(t,u.base_,!0),u.base_;
261if(!u.finalized_){u.finalized_=!0,u.scope_.unfinalizedDrafts_--;const f=u.copy_;let m=f,D=!1;u.type_===3&&(m=new Set(f),f.clear(),D=!0),an(m,(x,C)=>Ci(t,u,f,x,C,n,D),s),un(t,f,!1),n&&t.patches_&&jr("Patches").generatePatches_(u,n,t.patches_,t.inversePatches_)}return u.copy_}function Ci(t,e,n,s,u,f,m){if(u==null||typeof u!="object"&&!m)return;const D=pn(u);if(!(D&&!m)){if(qr(u)){const x=f&&e&&e.type_!==3&&!xa(e.assigned_,s)?f.concat(s):void 0,C=sn(t,u,x);if(Ju(n,s,C),qr(C))t.canAutoFreeze_=!1;else return}else m&&n.add(u);if(Lr(u)&&!D){if(!t.immer_.autoFreeze_&&t.unfinalizedDrafts_<1||e&&e.base_&&e.base_[s]===u&&D)return;sn(t,u),(!e||!e.scope_.parent_)&&typeof s!="symbol"&&(D0(n)?n.has(s):Object.prototype.propertyIsEnumerable.call(n,s))&&un(t,u)}}}function un(t,e,n=!1){!t.parent_&&t.immer_.autoFreeze_&&t.canAutoFreeze_&&Ia(e,n)}function c1(t,e){const n=Array.isArray(t),s={type_:n?1:0,scope_:e?e.scope_:Qu(),modified_:!1,finalized_:!1,assigned_:{},parent_:e,base_:t,draft_:null,copy_:null,revoke_:null,isManual_:!1};let u=s,f=qa;n&&(u=[s],f=f0);const{revoke:m,proxy:D}=Proxy.revocable(u,f);return s.draft_=D,s.revoke_=m,D}var qa={get(t,e){if(e===$t)return t;const n=Mr(t);if(!xa(n,e))return f1(t,n,e);const s=n[e];return t.finalized_||!Lr(s)?s:s===Qn(t.base_,e)?(ea(t),t.copy_[e]=Fa(s,t)):s},has(t,e){return e in Mr(t)},ownKeys(t){return Reflect.ownKeys(Mr(t))},set(t,e,n){const s=eo(Mr(t),e);if(s?.set)return s.set.call(t.draft_,n),!0;if(!t.modified_){const u=Qn(Mr(t),e),f=u?.[$t];if(f&&f.base_===n)return t.copy_[e]=n,t.assigned_[e]=!1,!0;if(s1(n,u)&&(n!==void 0||xa(t.base_,e)))return!0;ea(t),Sa(t)}return t.copy_[e]===n&&(n!==void 0||e in t.copy_)||Number.isNaN(n)&&Number.isNaN(t.copy_[e])||(t.copy_[e]=n,t.assigned_[e]=!0),!0},deleteProperty(t,e){return Qn(t.base_,e)!==void 0||e in t.base_?(t.assigned_[e]=!1,ea(t),Sa(t)):delete t.assigned_[e],t.copy_&&delete t.copy_[e],!0},getOwnPropertyDescriptor(t,e){const n=Mr(t),s=Reflect.getOwnPropertyDescriptor(n,e);return s&&{writable:!0,configurable:t.type_!==1||e!=="length",enumerable:s.enumerable,value:n[e]}},defineProperty(){Zt(11)},getPrototypeOf(t){return l0(t.base_)},setPrototypeOf(){Zt(12)}},f0={};an(qa,(t,e)=>{f0[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}});f0.deleteProperty=function(t,e){return f0.set.call(this,t,e,void 0)};f0.set=function(t,e,n){return qa.set.call(this,t[0],e,n,t[0])};function Qn(t,e){const n=t[$t];return(n?Mr(n):t)[e]}function f1(t,e,n){const s=eo(e,n);return s?"value"in s?s.value:s.get?.call(t.draft_):void 0}function eo(t,e){if(!(e in t))return;let n=l0(t);for(;n;){const s=Object.getOwnPropertyDescriptor(n,e);if(s)return s;n=l0(n)}}function Sa(t){t.modified_||(t.modified_=!0,t.parent_&&Sa(t.parent_))}function ea(t){t.copy_||(t.copy_=Ba(t.base_,t.scope_.immer_.useStrictShallowCopy_))}var h1=class{constructor(t){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!0,this.produce=(e,n,s)=>{if(typeof e=="function"&&typeof n!="function"){const f=n;n=e;const m=this;return function(x=f,...C){return m.produce(x,A=>n.call(this,A,...C))}}typeof n!="function"&&Zt(6),s!==void 0&&typeof s!="function"&&Zt(7);let u;if(Lr(e)){const f=yi(this),m=Fa(e,void 0);let D=!0;try{u=n(m),D=!1}finally{D?Aa(f):Ea(f)}return Di(f,s),wi(u,f)}else if(!e||typeof e!="object"){if(u=n(e),u===void 0&&(u=e),u===_u&&(u=void 0),this.autoFreeze_&&Ia(u,!0),s){const f=[],m=[];jr("Patches").generateReplacementPatches_(e,u,f,m),s(f,m)}return u}else Zt(1,e)},this.produceWithPatches=(e,n)=>{if(typeof e=="function")return(m,...D)=>this.produceWithPatches(m,x=>e(x,...D));let s,u;return[this.produce(e,n,(m,D)=>{s=m,u=D}),s,u]},typeof t?.autoFreeze=="boolean"&&this.setAutoFreeze(t.autoFreeze),typeof t?.useStrictShallowCopy=="boolean"&&this.setUseStrictShallowCopy(t.useStrictShallowCopy),typeof t?.useStrictIteration=="boolean"&&this.setUseStrictIteration(t.useStrictIteration)}createDraft(t){Lr(t)||Zt(8),qr(t)&&(t=d1(t));const e=yi(this),n=Fa(t,void 0);return n[$t].isManual_=!0,Ea(e),n}finishDraft(t,e){const n=t&&t[$t];(!n||!n.isManual_)&&Zt(9);const{scope_:s}=n;return Di(s,e),wi(void 0,s)}setAutoFreeze(t){this.autoFreeze_=t}setUseStrictShallowCopy(t){this.useStrictShallowCopy_=t}setUseStrictIteration(t){this.useStrictIteration_=t}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(t,e){let n;for(n=e.length-1;n>=0;n--){const u=e[n];
261if(u.path.length===0&&u.op==="replace"){t=u.value;break}}n>-1&&(e=e.slice(n+1));const s=jr("Patches").applyPatches_;return qr(t)?s(t,e):this.produce(t,u=>s(u,e))}};function Fa(t,e){const n=D0(t)?jr("MapSet").proxyMap_(t,e):mn(t)?jr("MapSet").proxySet_(t,e):c1(t,e);return(e?e.scope_:Qu()).drafts_.push(n),n}function d1(t){return qr(t)||Zt(10,t),to(t)}function to(t){if(!Lr(t)||pn(t))return t;const e=t[$t];let n,s=!0;if(e){if(!e.modified_)return e.base_;e.finalized_=!0,n=Ba(t,e.scope_.immer_.useStrictShallowCopy_),s=e.scope_.immer_.shouldUseStrictIteration()}else n=Ba(t,!0);return an(n,(u,f)=>{Ju(n,u,to(f))},s),e&&(e.finalized_=!1),n}var h0=new h1,La=h0.produce,xi=h0.createDraft.bind(h0),Bi=h0.finishDraft.bind(h0),_t={},Ai;function m1(){if(Ai)return _t;Ai=1,Object.defineProperty(_t,"__esModule",{value:!0});for(var t=typeof window<"u"&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform),e={alt:"altKey",control:"ctrlKey",meta:"metaKey",shift:"shiftKey"},n={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:t?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:" ",spacebar:" ",up:"arrowup",win:"meta",windows:"meta"},s={backspace:8,tab:9,enter:13,shift:16,control:17,alt:18,pause:19,capslock:20,escape:27," ":32,pageup:33,pagedown:34,end:35,home:36,arrowleft:37,arrowup:38,arrowright:39,arrowdown:40,insert:45,delete:46,meta:91,numlock:144,scrolllock:145,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},u=1;u<20;u++)s["f"+u]=111+u;function f(F,P,q){P&&!("byKey"in P)&&(q=P,P=null),Array.isArray(F)||(F=[F]);var M=F.map(function(j){return x(j,P)}),p=function(V){return M.some(function(U){return C(U,V)})},W=q==null?p:p(q);return W}function m(F,P){return f(F,P)}function D(F,P){return f(F,{byKey:!0},P)}function x(F,P){var q=P&&P.byKey,M={};F=F.replace("++","+add");var p=F.split("+"),W=p.length;for(var j in e)M[e[j]]=!1;var V=!0,U=!1,X=void 0;try{for(var ce=p[Symbol.iterator](),oe;!(V=(oe=ce.next()).done);V=!0){var he=oe.value,ge=he.endsWith("?")&&he.length>1;ge&&(he=he.slice(0,-1));var ne=T(he),ue=e[ne];if(he.length>1&&!ue&&!n[he]&&!s[ne])throw new TypeError('Unknown modifier: "'+he+'"');(W===1||!ue)&&(q?M.key=ne:M.which=A(he)),ue&&(M[ue]=ge?null:!0)}}catch(G){U=!0,X=G}finally{try{!V&&ce.return&&ce.return()}finally{if(U)throw X}}return M}function C(F,P){for(var q in F){var M=F[q],p=void 0;if(M!=null&&(q==="key"&&P.key!=null?p=P.key.toLowerCase():q==="which"?p=M===91&&P.which===93?91:P.which:p=P[q],!(p==null&&M===!1)&&p!==M))return!1}return!0}function A(F){F=T(F);var P=s[F]||F.toUpperCase().charCodeAt(0);return P}function T(F){return F=F.toLowerCase(),F=n[F]||F,F}return _t.default=f,_t.isHotkey=f,_t.isCodeHotkey=m,_t.isKeyHotkey=D,_t.parseHotkey=x,_t.compareHotkey=C,_t.toKeyCode=A,_t.toKeyName=T,_t}var Q0=m1();const Dd=hn(Q0);var ta,Ei;function p1(){if(Ei)return ta;Ei=1,ta=u;var t="Ö-ß¿ï¬-﷽ﹰ-ﻼ",e="A-Za-zÃ-ÃÃ-öø-ʸÌ-Öà -á¿¿ââ°-ï¬ï¸-﹯﻽-ï¿¿",n=new RegExp("^[^"+e+"]*["+t+"]"),s=new RegExp("^[^"+t+"]*["+e+"]");function u(f){return f=String(f||""),n.test(f)?"rtl":s.test(f)?"ltr":"neutral"}return ta}var g1=p1();const ro=hn(g1);var ra,Si;function ja(){if(Si)return ra;Si=1;function t(e){var n=typeof e;return e!=null&&(n=="object"||n=="function")}return ra=t,ra}var na,Fi;function v1(){if(Fi)return na;Fi=1;var t=typeof W0=="object"&&W0&&W0.Object===Object&&W0;return na=t,na}var aa,ki;function no(){if(ki)return aa;ki=1;var t=v1(),e=typeof self=="object"&&self&&self.Object===Object&&self,n=t||e||Function("return this")();return aa=n,aa}var sa,Oi;function b1(){if(Oi)return sa;Oi=1;var t=no(),e=function(){return t.Date.now()};return sa=e,sa}var ia,Ti;function D1(){if(Ti)return ia;Ti=1;var t=/\s/;function e(n){for(var s=n.length;s--&&t.test(n.charAt(s)););return s}return ia=e,ia}var ua,Mi;function y1(){if(Mi)return ua;Mi=1;var t=D1(),e=/^\s+/;function n(s){return s&&s.slice(0,t(s)+1).replace(e,"")}return ua=n,ua}var oa,zi;function ao(){if(zi)return oa;zi=1;var t=no(),e=t.Symbol;return oa=e,oa}var la,Ni;function w1(){if(Ni)return la;Ni=1;var t=ao(),e=Object.prototype,n=e.hasOwnProperty,s=e.toString,u=t?t.toStringTag:void 0;function f(m){var D=n.call(m,u),x=m[u];try{m[u]=void 0;var C=!0}catch{}var A=s.call(m);return C&&(D?m[u]=x:delete m[u]),A}return la=f,la}var ca,Pi;function C1(){if(Pi)return ca;Pi=1;var t=Object.prototype,e=t.toString;function n(s){return e.call(s)}return ca=n,ca}var fa,Ri;function x1(){if(Ri)return fa;Ri=1;
261var t=ao(),e=w1(),n=C1(),s="[object Null]",u="[object Undefined]",f=t?t.toStringTag:void 0;function m(D){return D==null?D===void 0?u:s:f&&f in Object(D)?e(D):n(D)}return fa=m,fa}var ha,Ii;function B1(){if(Ii)return ha;Ii=1;function t(e){return e!=null&&typeof e=="object"}return ha=t,ha}var da,qi;function A1(){if(qi)return da;qi=1;var t=x1(),e=B1(),n="[object Symbol]";function s(u){return typeof u=="symbol"||e(u)&&t(u)==n}return da=s,da}var ma,Li;function E1(){if(Li)return ma;Li=1;var t=y1(),e=ja(),n=A1(),s=NaN,u=/^[-+]0x[0-9a-f]+$/i,f=/^0b[01]+$/i,m=/^0o[0-7]+$/i,D=parseInt;function x(C){if(typeof C=="number")return C;if(n(C))return s;if(e(C)){var A=typeof C.valueOf=="function"?C.valueOf():C;C=e(A)?A+"":A}if(typeof C!="string")return C===0?C:+C;C=t(C);var T=f.test(C);return T||m.test(C)?D(C.slice(2),T?2:8):u.test(C)?s:+C}return ma=x,ma}var pa,ji;function so(){if(ji)return pa;ji=1;var t=ja(),e=b1(),n=E1(),s="Expected a function",u=Math.max,f=Math.min;function m(D,x,C){var A,T,F,P,q,M,p=0,W=!1,j=!1,V=!0;if(typeof D!="function")throw new TypeError(s);x=n(x)||0,t(C)&&(W=!!C.leading,j="maxWait"in C,F=j?u(n(C.maxWait)||0,x):F,V="trailing"in C?!!C.trailing:V);function U(K){var ee=A,te=T;return A=T=void 0,p=K,P=D.apply(te,ee),P}function X(K){return p=K,q=setTimeout(he,x),W?U(K):P}function ce(K){var ee=K-M,te=K-p,Me=x-ee;return j?f(Me,F-te):Me}function oe(K){var ee=K-M,te=K-p;return M===void 0||ee>=x||ee<0||j&&te>=F}function he(){var K=e();if(oe(K))return ge(K);q=setTimeout(he,ce(K))}function ge(K){return q=void 0,V&&A?U(K):(A=T=void 0,P)}function ne(){q!==void 0&&clearTimeout(q),p=0,A=M=T=q=void 0}function ue(){return q===void 0?P:ge(e())}function G(){var K=e(),ee=oe(K);if(A=arguments,T=this,M=K,ee){if(q===void 0)return X(M);if(j)return clearTimeout(q),q=setTimeout(he,x),U(M)}return q===void 0&&(q=setTimeout(he,x)),P}return G.cancel=ne,G.flush=ue,G}return pa=m,pa}var S1=so();const F1=hn(S1);var ga,Hi;function k1(){if(Hi)return ga;Hi=1;var t=so(),e=ja(),n="Expected a function";function s(u,f,m){var D=!0,x=!0;if(typeof u!="function")throw new TypeError(n);return e(m)&&(D="leading"in m?!!m.leading:D,x="trailing"in m?!!m.trailing:x),t(u,f,{leading:D,maxWait:f,trailing:x})}return ga=s,ga}var O1=k1();const T1=hn(O1),Wi=t=>typeof t=="object"&&t!=null&&t.nodeType===1,$i=(t,e)=>(!e||t!=="hidden")&&t!=="visible"&&t!=="clip",V0=(t,e)=>{if(t.clientHeight<t.scrollHeight||t.clientWidth<t.scrollWidth){const n=getComputedStyle(t,null);return $i(n.overflowY,e)||$i(n.overflowX,e)||(s=>{const u=(f=>{if(!f.ownerDocument||!f.ownerDocument.defaultView)return null;try{return f.ownerDocument.defaultView.frameElement}catch{return null}})(s);return!!u&&(u.clientHeight<s.scrollHeight||u.clientWidth<s.scrollWidth)})(t)}return!1},G0=(t,e,n,s,u,f,m,D)=>f<t&&m>e||f>t&&m<e?0:f<=t&&D<=n||m>=e&&D>=n?f-t-s:m>e&&D<n||f<t&&D>n?m-e+u:0,M1=t=>{const e=t.parentElement;return e??(t.getRootNode().host||null)},Vi=(t,e)=>{var n,s,u,f;if(typeof document>"u")return[];const{scrollMode:m,block:D,inline:x,boundary:C,skipOverflowHiddenElements:A}=e,T=typeof C=="function"?C:Me=>Me!==C;if(!Wi(t))throw new TypeError("Invalid target");const F=document.scrollingElement||document.documentElement,P=[];let q=t;for(;Wi(q)&&T(q);){if(q=M1(q),q===F){P.push(q);break}q!=null&&q===document.body&&V0(q)&&!V0(document.documentElement)||q!=null&&V0(q,A)&&P.push(q)}const M=(s=(n=window.visualViewport)==null?void 0:n.width)!=null?s:innerWidth,p=(f=(u=window.visualViewport)==null?void 0:u.height)!=null?f:innerHeight,{scrollX:W,scrollY:j}=window,{height:V,width:U,top:X,right:ce,bottom:oe,left:he}=t.getBoundingClientRect(),{top:ge,right:ne,bottom:ue,left:G}=(Me=>{const be=window.getComputedStyle(Me);return{top:parseFloat(be.scrollMarginTop)||0,right:parseFloat(be.scrollMarginRight)||0,bottom:parseFloat(be.scrollMarginBottom)||0,left:parseFloat(be.scrollMarginLeft)||0}})(t);let K=D==="start"||D==="nearest"?X-ge:D==="end"?oe+ue:X+V/2-ge+ue,ee=x==="center"?he+U/2-G+ne:x==="end"?ce+ne:he-G;const te=[];for(let Me=0;Me<P.length;Me++){const be=P[Me],{height:He,width:ze,top:ae,right:We,bottom:Ve,left:ke}=be.getBoundingClientRect();if(m==="if-needed"&&X>=0&&he>=0&&oe<=p&&ce<=M&&(be===F&&!V0(be)||X>=ae&&oe<=Ve&&he>=ke&&ce<=We))return te;const pt=getComputedStyle(be),Be=parseInt(pt.borderLeftWidth,10),R=parseInt(pt.borderTopWidth,10),de=parseInt(pt.borderRightWidth,10),Q=parseInt(pt.borderBottomWidth,10);let se=0,Oe=0;const Ce="offsetWidth"in be?be.offsetWidth-be.clientWidth-Be-de:0,Xe="offsetHeight"in be?be.offsetHeight-be.clientHeight-R-Q:0,Ge="offsetWidth"in be?be.offsetWidth===0?0:ze/be.offsetWidth:0,Ee="offsetHeight"in be?be.offsetHeight===0?0:He/be.offsetHeight:0;if(F===be)se=D==="start"?K:D==="end"?K-p:D==="nearest"?G0(j,j+p,p,R,Q,j+K,j+K+V,V):K-p/2,Oe=x==="start"?ee:x==="center"?ee-M/2:x==="end"?ee-M:G0(W,W+M,M,Be,de,W+ee,W+ee+U,U),se=Math.max(0,se+j),Oe=Math.max(0,Oe+W);else{se=D==="start"?K-ae-R:D==="end"?K-Ve+Q+Xe:D==="nearest"?G0(ae,Ve,He,R,Q+Xe,K,K+V,V):K-(ae+He/2)+Xe/2,Oe=x==="start"?ee-ke-Be:x==="center"?ee-(ke+ze/2)+Ce/2:x==="end"?ee-We+de+Ce:G0(ke,We,ze,Be,de+Ce,ee,ee+U,U);const{scrollLeft:Ze,scrollTop:et}=be;se=Ee===0?0:Math.max(0,Math.min(et+se/Ee,be.scrollHeight-He/Ee+Xe)),Oe=Ge===0?0:Math.max(0,Math.min(Ze+Oe/Ge,be.scrollWidth-ze/Ge+Ce)),K+=et-se,ee+=Ze
261-Oe}te.push({el:be,top:se,left:Oe})}return te},z1=t=>t===!1?{block:"end",inline:"nearest"}:(e=>e===Object(e)&&Object.keys(e).length!==0)(t)?t:{block:"start",inline:"nearest"};function N1(t,e){if(!t.isConnected||!(u=>{let f=u;for(;f&&f.parentNode;){if(f.parentNode===document)return!0;f=f.parentNode instanceof ShadowRoot?f.parentNode.host:f.parentNode}return!1})(t))return;const n=(u=>{const f=window.getComputedStyle(u);return{top:parseFloat(f.scrollMarginTop)||0,right:parseFloat(f.scrollMarginRight)||0,bottom:parseFloat(f.scrollMarginBottom)||0,left:parseFloat(f.scrollMarginLeft)||0}})(t);if((u=>typeof u=="object"&&typeof u.behavior=="function")(e))return e.behavior(Vi(t,e));const s=typeof e=="boolean"||e==null?void 0:e.behavior;for(const{el:u,top:f,left:m}of Vi(t,z1(e))){const D=f-n.top+n.bottom,x=m-n.left+n.right;u.scroll({top:D,left:x,behavior:s})}}function Gi(t){return Object.prototype.toString.call(t)==="[object Object]"}function xt(t){var e,n;return Gi(t)===!1?!1:(e=t.constructor,e===void 0?!0:(n=e.prototype,!(Gi(n)===!1||n.hasOwnProperty("isPrototypeOf")===!1)))}var P1={transform(t,e){var{current:n,affinity:s}=t;if(n!=null){var u=O.transform(n,e,{affinity:s});t.current=u,u==null&&t.unref()}}},R1={transform(t,e){var{current:n,affinity:s}=t;if(n!=null){var u=Pe.transform(n,e,{affinity:s});t.current=u,u==null&&t.unref()}}},I1={transform(t,e){var{current:n,affinity:s}=t;if(n!=null){var u=$.transform(n,e,{affinity:s});t.current=u,u==null&&t.unref()}}},on=new WeakMap,ln=new WeakMap,s0=new WeakMap,io=new WeakMap,Ui=new WeakMap,Ki=new WeakMap,Yi=new WeakMap,O={ancestors(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:n=!1}=e,s=O.levels(t,e);return n?s=s.slice(1):s=s.slice(0,-1),s},common(t,e){for(var n=[],s=0;s<t.length&&s<e.length;s++){var u=t[s],f=e[s];if(u!==f)break;n.push(u)}return n},compare(t,e){for(var n=Math.min(t.length,e.length),s=0;s<n;s++){if(t[s]<e[s])return-1;if(t[s]>e[s])return 1}return 0},endsAfter(t,e){var n=t.length-1,s=t.slice(0,n),u=e.slice(0,n),f=t[n],m=e[n];return O.equals(s,u)&&f>m},endsAt(t,e){var n=t.length,s=t.slice(0,n),u=e.slice(0,n);return O.equals(s,u)},endsBefore(t,e){var n=t.length-1,s=t.slice(0,n),u=e.slice(0,n),f=t[n],m=e[n];return O.equals(s,u)&&f<m},equals(t,e){return t.length===e.length&&t.every((n,s)=>n===e[s])},hasPrevious(t){return t[t.length-1]>0},isAfter(t,e){return O.compare(t,e)===1},isAncestor(t,e){return t.length<e.length&&O.compare(t,e)===0},isBefore(t,e){return O.compare(t,e)===-1},isChild(t,e){return t.length===e.length+1&&O.compare(t,e)===0},isCommon(t,e){return t.length<=e.length&&O.compare(t,e)===0},isDescendant(t,e){return t.length>e.length&&O.compare(t,e)===0},isParent(t,e){return t.length+1===e.length&&O.compare(t,e)===0},isPath(t){return Array.isArray(t)&&(t.length===0||typeof t[0]=="number")},isSibling(t,e){if(t.length!==e.length)return!1;var n=t.slice(0,-1),s=e.slice(0,-1),u=t[t.length-1],f=e[e.length-1];return u!==f&&O.equals(n,s)},levels(t){for(var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:n=!1}=e,s=[],u=0;u<=t.length;u++)s.push(t.slice(0,u));return n&&s.reverse(),s},next(t){if(t.length===0)throw new Error("Cannot get the next path of a root path [".concat(t,"], because it has no next index."));var e=t[t.length-1];return t.slice(0,-1).concat(e+1)},operationCanTransformPath(t){switch(t.type){case"insert_node":case"remove_node":case"merge_node":case"split_node":case"move_node":return!0;default:return!1}},parent(t){if(t.length===0)throw new Error("Cannot get the parent path of the root path [".concat(t,"]."));return t.slice(0,-1)},previous(t){if(t.length===0)throw new Error("Cannot get the previous path of a root path [".concat(t,"], because it has no previous index."));var e=t[t.length-1];if(e<=0)throw new Error("Cannot get the previous path of a first child path [".concat(t,"] because it would result in a negative index."));return t.slice(0,-1).concat(e-1)},relative(t,e){if(!O.isAncestor(e,t)&&!O.equals(t,e))throw new Error("Cannot get the relative path of [".concat(t,"] inside ancestor [").concat(e,"], because it is not above or equal to the path."));return t.slice(e.length)},transform(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(!t)return null;
261var s=[...t],{affinity:u="forward"}=n;if(t.length===0)return s;switch(e.type){case"insert_node":{var{path:f}=e;(O.equals(f,s)||O.endsBefore(f,s)||O.isAncestor(f,s))&&(s[f.length-1]+=1);break}case"remove_node":{var{path:m}=e;if(O.equals(m,s)||O.isAncestor(m,s))return null;O.endsBefore(m,s)&&(s[m.length-1]-=1);break}case"merge_node":{var{path:D,position:x}=e;O.equals(D,s)||O.endsBefore(D,s)?s[D.length-1]-=1:O.isAncestor(D,s)&&(s[D.length-1]-=1,s[D.length]+=x);break}case"split_node":{var{path:C,position:A}=e;if(O.equals(C,s)){if(u==="forward")s[s.length-1]+=1;else if(u!=="backward")return null}else O.endsBefore(C,s)?s[C.length-1]+=1:O.isAncestor(C,s)&&t[C.length]>=A&&(s[C.length-1]+=1,s[C.length]-=A);break}case"move_node":{var{path:T,newPath:F}=e;if(O.equals(T,F))return s;if(O.isAncestor(T,s)||O.equals(T,s)){var P=F.slice();return O.endsBefore(T,F)&&T.length<F.length&&(P[T.length-1]-=1),P.concat(s.slice(T.length))}else O.isSibling(T,F)&&(O.isAncestor(F,s)||O.equals(F,s))?O.endsBefore(T,s)?s[T.length-1]-=1:s[T.length-1]+=1:O.endsBefore(F,s)||O.equals(F,s)||O.isAncestor(F,s)?(O.endsBefore(T,s)&&(s[T.length-1]-=1),s[F.length-1]+=1):O.endsBefore(T,s)&&(O.equals(F,s)&&(s[F.length-1]+=1),s[T.length-1]-=1);break}}return s}};function d0(t){"@babel/helpers - typeof";return d0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},d0(t)}function q1(t,e){if(d0(t)!=="object"||t===null)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var s=n.call(t,e);if(d0(s)!=="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function L1(t){var e=q1(t,"string");return d0(e)==="symbol"?e:String(e)}function Ot(t,e,n){return e=L1(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Xi(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter(function(u){return Object.getOwnPropertyDescriptor(t,u).enumerable})),n.push.apply(n,s)}return n}function n0(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Xi(Object(n),!0).forEach(function(s){Ot(t,s,n[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Xi(Object(n)).forEach(function(s){Object.defineProperty(t,s,Object.getOwnPropertyDescriptor(n,s))})}return t}var j1=(t,e,n)=>{switch(n.type){case"insert_node":{var{path:s,node:u}=n,f=ie.parent(t,s),m=s[s.length-1];if(m>f.children.length)throw new Error('Cannot apply an "insert_node" operation at path ['.concat(s,"] because the destination is past the end of the node."));if(f.children.splice(m,0,u),e)for(var[D,x]of $.points(e))e[x]=Pe.transform(D,n);break}case"insert_text":{var{path:C,offset:A,text:T}=n;if(T.length===0)break;var F=ie.leaf(t,C),P=F.text.slice(0,A),q=F.text.slice(A);if(F.text=P+T+q,e)for(var[M,p]of $.points(e))e[p]=Pe.transform(M,n);break}case"merge_node":{var{path:W}=n,j=ie.get(t,W),V=O.previous(W),U=ie.get(t,V),X=ie.parent(t,W),ce=W[W.length-1];if(De.isText(j)&&De.isText(U))U.text+=j.text;else if(!De.isText(j)&&!De.isText(U))U.children.push(...j.children);else throw new Error('Cannot apply a "merge_node" operation at path ['.concat(W,"] to nodes of different interfaces: ").concat(wt.stringify(j)," ").concat(wt.stringify(U)));if(X.children.splice(ce,1),e)for(var[oe,he]of $.points(e))e[he]=Pe.transform(oe,n);break}case"move_node":{var{path:ge,newPath:ne}=n;if(O.isAncestor(ge,ne))throw new Error("Cannot move a path [".concat(ge,"] to new path [").concat(ne,"] because the destination is inside itself."));var ue=ie.get(t,ge),G=ie.parent(t,ge),K=ge[ge.length-1];G.children.splice(K,1);var ee=O.transform(ge,n),te=ie.get(t,O.parent(ee)),Me=ee[ee.length-1];if(te.children.splice(Me,0,ue),e)for(var[be,He]of $.points(e))e[He]=Pe.transform(be,n);break}case"remove_node":{var{path:ze}=n,ae=ze[ze.length-1],We=ie.parent(t,ze);if(We.children.splice(ae,1),e)for(var[Ve,ke]of $.points(e)){var pt=Pe.transform(Ve,n);if(e!=null&&pt!=null)e[ke]=pt;else{var Be=void 0,R=void 0;for(var[de,Q]of ie.texts(t))if(O.compare(Q,ze)===-1)Be=[de,Q];else{R=[de,Q];break}var se=!1;Be&&R&&(O.equals(R[1],ze)?se=!O.hasPrevious(R[1]):se=O.common(Be[1],ze).length<O.common(R[1],ze).length),Be&&!se?(Ve.path=Be[1],Ve.offset=Be[0].text.length):R?(Ve.path=R[1],Ve.offset=0):e=null}}break}case"remove_text":{var{path:Oe,offset:Ce,text:Xe}=n;if(Xe.length===0)break;var Ge=ie.leaf(t,Oe),Ee=Ge.text.slice(0,Ce),Ze=Ge.text.slice(Ce+Xe.length);if(Ge.text=Ee+Ze,e)for(var[et,$e]of $.points(e))e[$e]=Pe.transform(et,n);break}case"set_node":{var{path:Ue,properties:vt,newProperties:Ct}=n;if(Ue.length===0)throw new Error("Cannot set properties on the root node!");var Tt=ie.get(t,Ue);for(var _e in Ct){if(_e==="children"||_e==="text")throw new Error('Cannot set the "'.concat(_e,'" property of nodes!'));var It=Ct[_e];It==null?delete Tt[_e]:Tt[_e]=It}for(var qt in vt)Ct.hasOwnProperty(qt)||delete Tt[qt];break}case"set_selection":{var{newProperties:Ke}=n;if(Ke==null)e=Ke;else{if(e==null){if(!$.isRange(Ke))throw new Error('Cannot apply an incomplete "set_selection" operation properties '.concat(wt.stringify(Ke)," when there is no current selection."));e=n0({},Ke)}for(var Qe in Ke){var yt=Ke[Qe];if(yt==null){if(Qe==="anchor"||Qe==="focus")throw new Error('Cannot remove the "'.concat(Qe,'" selection property'));delete e[Qe]}
261else e[Qe]=yt}}break}case"split_node":{var{path:Bt,position:Mt,properties:ur}=n;if(Bt.length===0)throw new Error('Cannot apply a "split_node" operation at path ['.concat(Bt,"] because the root node cannot be split."));var Lt=ie.get(t,Bt),tt=ie.parent(t,Bt),re=Bt[Bt.length-1],At;if(De.isText(Lt)){var y0=Lt.text.slice(0,Mt),w0=Lt.text.slice(Mt);Lt.text=y0,At=n0(n0({},ur),{},{text:w0})}else{var vn=Lt.children.slice(0,Mt),C0=Lt.children.slice(Mt);Lt.children=vn,At=n0(n0({},ur),{},{children:C0})}if(tt.children.splice(re+1,0,At),e)for(var[Fr,Zr]of $.points(e))e[Zr]=Pe.transform(Fr,n);break}}return e},H1={transform(t,e){t.children=xi(t.children);var n=t.selection&&xi(t.selection);try{n=j1(t,n,e)}finally{t.children=Bi(t.children),n?t.selection=qr(n)?Bi(n):n:t.selection=null}}},W1={insertNodes(t,e,n){t.insertNodes(e,n)},liftNodes(t,e){t.liftNodes(e)},mergeNodes(t,e){t.mergeNodes(e)},moveNodes(t,e){t.moveNodes(e)},removeNodes(t,e){t.removeNodes(e)},setNodes(t,e,n){t.setNodes(e,n)},splitNodes(t,e){t.splitNodes(e)},unsetNodes(t,e,n){t.unsetNodes(e,n)},unwrapNodes(t,e){t.unwrapNodes(e)},wrapNodes(t,e,n){t.wrapNodes(e,n)}},$1={collapse(t,e){t.collapse(e)},deselect(t){t.deselect()},move(t,e){t.move(e)},select(t,e){t.select(e)},setPoint(t,e,n){t.setPoint(e,n)},setSelection(t,e){t.setSelection(e)}},uo=(t,e)=>{for(var n in t){var s=t[n],u=e[n];if(xt(s)&&xt(u)){if(!uo(s,u))return!1}else if(Array.isArray(s)&&Array.isArray(u)){if(s.length!==u.length)return!1;for(var f=0;f<s.length;f++)if(s[f]!==u[f])return!1}else if(s!==u)return!1}for(var m in e)if(t[m]===void 0&&e[m]!==void 0)return!1;return!0};function V1(t,e){if(t==null)return{};var n={},s=Object.keys(t),u,f;for(f=0;f<s.length;f++)u=s[f],!(e.indexOf(u)>=0)&&(n[u]=t[u]);return n}function gr(t,e){if(t==null)return{};var n=V1(t,e),s,u;if(Object.getOwnPropertySymbols){var f=Object.getOwnPropertySymbols(t);for(u=0;u<f.length;u++)s=f[u],!(e.indexOf(s)>=0)&&Object.prototype.propertyIsEnumerable.call(t,s)&&(n[s]=t[s])}return n}var G1=["anchor","focus"];function _i(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter(function(u){return Object.getOwnPropertyDescriptor(t,u).enumerable})),n.push.apply(n,s)}return n}function U1(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?_i(Object(n),!0).forEach(function(s){Ot(t,s,n[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):_i(Object(n)).forEach(function(s){Object.defineProperty(t,s,Object.getOwnPropertyDescriptor(n,s))})}return t}var $={edges(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:n=!1}=e,{anchor:s,focus:u}=t;return $.isBackward(t)===n?[s,u]:[u,s]},end(t){var[,e]=$.edges(t);return e},equals(t,e){return Pe.equals(t.anchor,e.anchor)&&Pe.equals(t.focus,e.focus)},surrounds(t,e){var n=$.intersection(t,e);return n?$.equals(n,e):!1},includes(t,e){if($.isRange(e)){if($.includes(t,e.anchor)||$.includes(t,e.focus))return!0;var[n,s]=$.edges(t),[u,f]=$.edges(e);return Pe.isBefore(n,u)&&Pe.isAfter(s,f)}var[m,D]=$.edges(t),x=!1,C=!1;return Pe.isPoint(e)?(x=Pe.compare(e,m)>=0,C=Pe.compare(e,D)<=0):(x=O.compare(e,m.path)>=0,C=O.compare(e,D.path)<=0),x&&C},intersection(t,e){var n=gr(t,G1),[s,u]=$.edges(t),[f,m]=$.edges(e),D=Pe.isBefore(s,f)?f:s,x=Pe.isBefore(u,m)?u:m;return Pe.isBefore(x,D)?null:U1({anchor:D,focus:x},n)},isBackward(t){var{anchor:e,focus:n}=t;return Pe.isAfter(e,n)},isCollapsed(t){var{anchor:e,focus:n}=t;return Pe.equals(e,n)},isExpanded(t){return!$.isCollapsed(t)},isForward(t){return!$.isBackward(t)},isRange(t){return xt(t)&&Pe.isPoint(t.anchor)&&Pe.isPoint(t.focus)},*points(t){yield[t.anchor,"anchor"],yield[t.focus,"focus"]},start(t){var[e]=$.edges(t);return e},transform(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return La(t,s=>{if(s===null)return null;var{affinity:u="inward"}=n,f,m;if(u==="inward"){var D=$.isCollapsed(s);$.isForward(s)?(f="forward",m=D?f:"backward"):(f="backward",m=D?f:"forward")}else u==="outward"?$.isForward(s)?(f="backward",m="forward"):(f="forward",m="backward"):(f=u,m=u);var x=Pe.transform(s.anchor,e,{affinity:f}),C=Pe.transform(s.focus,e,{affinity:m});if(!x||!C)return null;s.anchor=x,s.focus=C})}},Zi=t=>xt(t)&&ie.isNodeList(t.children)&&!b.isEditor(t),ye={isAncestor(t){return xt(t)&&ie.isNodeList(t.children)},isElement:Zi,isElementList(t){return Array.isArray(t)&&t.every(e=>ye.isElement(e))},isElementProps(t){return t.children!==void 0},isElementType:function(e,n){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"type";return Zi(e)&&e[s]===n},matches(t,e){for(var n in e)if(n!=="children"&&t[n]!==e[n])return!1;return!0}},K1=["children"],Y1=["text"],Ji=new WeakMap,ie={ancestor(t,e){var n=ie.get(t,e);if(De.isText(n))throw new Error("Cannot get the ancestor node at path [".concat(e,"] because it refers to a text node instead: ").concat(wt.stringify(n)));return n},ancestors(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return(function*(){for(var s of O.ancestors(e,n)){var u=ie.ancestor(t,s),f=[u,s];yield f}})()},child(t,e){if(De.isText(t))throw new Error("Cannot get the child of a text node: ".concat(wt.stringify(t)));var n=t.children[e];if(n==null)throw new Error("Cannot get child at index `".concat(e,"` in node: ").concat(wt.stringify(t)));return n},children(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return(function*(){for(var{reverse:s=!1}=n,u=ie.ancestor(t,e),{children:f}=u,m=s?f.length-1:0;s?m>=0:m<f.length;){var D=ie.child(u,m),x=e.concat(m);yield[D,x],m=s?m-1:m+1}})()},common(t,e,n){var s=O.common(e,n),u=ie.get(t,s);return[u,s]},descendant(t,e){var n=ie.get(t,e);if(b.isEditor(n))throw new Error("Cannot get the descendant node at path [".concat(e,"] because it refers to the root editor node instead: ").concat(wt.stringify(n)));return n},descendants(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return(function*(){for(var[n,s]of ie.nodes(t,e))s.length!==0&&(yield[n,s])})()},elements(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return(function*(){for(var[n,s]of ie.nodes(t,e))ye.isElement(n)&&(yield[n,s])})()},extractProps(t){if(ye.isAncestor(t)){var e=gr(t,K1);return e}else{var e=gr(t,Y1);return e}},first(t,e){for(var n=e.slice(),s=ie.get(t,n);s&&!(De.isText(s)||s.children.length===0);)s=s.children[0],n.push(0);return[s,n]},fragment(t,e){if(De.isText(t))throw new Error("Cannot get a fragment starting from a root text node: ".concat(wt.stringify(t)));var n=La({children:t.children},s=>{var[u,f]=$.edges(e),m=ie.nodes(s,{reverse:!0,pass:F=>{var[,P]=F;return!$.includes(e,P)}});for(var[,D]of m){if(!$.includes(e,D)){var x=ie.parent(s,D),C=D[D.length-1];x.children.splice(C,1)}if(O.equals(D,f.path)){var A=ie.leaf(s,D);A.text=A.text.slice(0,f.offset)}if(O.equals(D,u.path)){var T=ie.leaf(s,D);T.text=T.text.slice(u.offset)}}b.isEditor(s)&&(s.selection=null)});return n.children},get(t,e){var n=ie.getIf(t,e);if(n===void 0)throw new Error("Cannot find a descendant at path [".concat(e,"] in node: ").concat(wt.stringify(t)));return n},getIf(t,e){for(var n=t,s=0;s<e.length;s++){var u=e[s];if(De.isText(n)||!n.children[u])return;n=n.children[u]}return n},has(t,e){for(var n=t,s=0;s<e.length;s++){var u=e[s];if(De.isText(n)||!n.children[u])return!1;
261n=n.children[u]}return!0},isNode(t){return De.isText(t)||ye.isElement(t)||b.isEditor(t)},isNodeList(t){if(!Array.isArray(t))return!1;var e=Ji.get(t);if(e!==void 0)return e;var n=t.every(s=>ie.isNode(s));return Ji.set(t,n),n},last(t,e){for(var n=e.slice(),s=ie.get(t,n);s&&!(De.isText(s)||s.children.length===0);){var u=s.children.length-1;s=s.children[u],n.push(u)}return[s,n]},leaf(t,e){var n=ie.get(t,e);if(!De.isText(n))throw new Error("Cannot get the leaf node at path [".concat(e,"] because it refers to a non-leaf node: ").concat(wt.stringify(n)));return n},levels(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return(function*(){for(var s of O.levels(e,n)){var u=ie.get(t,s);yield[u,s]}})()},matches(t,e){return ye.isElement(t)&&ye.isElementProps(e)&&ye.matches(t,e)||De.isText(t)&&De.isTextProps(e)&&De.matches(t,e)},nodes(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return(function*(){for(var{pass:n,reverse:s=!1}=e,{from:u=[],to:f}=e,m=new Set,D=[],x=t;!(f&&(s?O.isBefore(D,f):O.isAfter(D,f)));){if(m.has(x)||(yield[x,D]),!m.has(x)&&!De.isText(x)&&x.children.length!==0&&(n==null||n([x,D])===!1)){m.add(x);var C=s?x.children.length-1:0;O.isAncestor(D,u)&&(C=u[D.length]),D=D.concat(C),x=ie.get(t,D);continue}if(D.length===0)break;if(!s){var A=O.next(D);if(ie.has(t,A)){D=A,x=ie.get(t,D);continue}}if(s&&D[D.length-1]!==0){var T=O.previous(D);D=T,x=ie.get(t,D);continue}D=O.parent(D),x=ie.get(t,D),m.add(x)}})()},parent(t,e){var n=O.parent(e),s=ie.get(t,n);if(De.isText(s))throw new Error("Cannot get the parent of path [".concat(e,"] because it does not exist in the root."));return s},string(t){return De.isText(t)?t.text:t.children.map(ie.string).join("")},texts(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return(function*(){for(var[n,s]of ie.nodes(t,e))De.isText(n)&&(yield[n,s])})()}};function Qi(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter(function(u){return Object.getOwnPropertyDescriptor(t,u).enumerable})),n.push.apply(n,s)}return n}function ut(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Qi(Object(n),!0).forEach(function(s){Ot(t,s,n[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Qi(Object(n)).forEach(function(s){Object.defineProperty(t,s,Object.getOwnPropertyDescriptor(n,s))})}return t}var Br={isNodeOperation(t){return Br.isOperation(t)&&t.type.endsWith("_node")},isOperation(t){if(!xt(t))return!1;switch(t.type){case"insert_node":return O.isPath(t.path)&&ie.isNode(t.node);case"insert_text":return typeof t.offset=="number"&&typeof t.text=="string"&&O.isPath(t.path);case"merge_node":return typeof t.position=="number"&&O.isPath(t.path)&&xt(t.properties);case"move_node":return O.isPath(t.path)&&O.isPath(t.newPath);case"remove_node":return O.isPath(t.path)&&ie.isNode(t.node);case"remove_text":return typeof t.offset=="number"&&typeof t.text=="string"&&O.isPath(t.path);case"set_node":return O.isPath(t.path)&&xt(t.properties)&&xt(t.newProperties);case"set_selection":return t.properties===null&&$.isRange(t.newProperties)||t.newProperties===null&&$.isRange(t.properties)||xt(t.properties)&&xt(t.newProperties);case"split_node":return O.isPath(t.path)&&typeof t.position=="number"&&xt(t.properties);default:return!1}},isOperationList(t){return Array.isArray(t)&&t.every(e=>Br.isOperation(e))},isSelectionOperation(t){return Br.isOperation(t)&&t.type.endsWith("_selection")},isTextOperation(t){return Br.isOperation(t)&&t.type.endsWith("_text")},inverse(t){switch(t.type){case"insert_node":return ut(ut({},t),{},{type:"remove_node"});case"insert_text":return ut(ut({},t),{},{type:"remove_text"});case"merge_node":return ut(ut({},t),{},{type:"split_node",path:O.previous(t.path)});case"move_node":{var{newPath:e,path:n}=t;if(O.equals(e,n))return t;if(O.isSibling(n,e))return ut(ut({},t),{},{path:e,newPath:n});var s=O.transform(n,t),u=O.transform(O.next(n),t);return ut(ut({},t),{},{path:s,newPath:u})}case"remove_node":return ut(ut({},t),{},{type:"insert_node"});case"remove_text":return ut(ut({},t),{},{type:"insert_text"});case"set_node":{var{properties:f,newProperties:m}=t;return ut(ut({},t),{},{properties:m,newProperties:f})}case"set_selection":{var{properties:D,newProperties:x}=t;return D==null?ut(ut({},t),{},{properties:x,newProperties:null}):x==null?ut(ut({},t),{},{properties:null,newProperties:D}):ut(ut({},t),{},{properties:x,newProperties:D})}case"split_node":return ut(ut({},t),{},{type:"merge_node",path:O.next(t.path)})}}},eu=new WeakMap,X1=t=>{var e=eu.get(t);if(e!==void 0)return e;if(!xt(t))return!1;var n=typeof t.addMark=="function"&&typeof t.apply=="function"&&typeof t.deleteFragment=="function"&&typeof t.insertBreak=="function"&&typeof t.insertSoftBreak=="function"&&typeof t.insertFragment=="function"&&typeof t.insertN
261ode=="function"&&typeof t.insertText=="function"&&typeof t.isElementReadOnly=="function"&&typeof t.isInline=="function"&&typeof t.isSelectable=="function"&&typeof t.isVoid=="function"&&typeof t.normalizeNode=="function"&&typeof t.onChange=="function"&&typeof t.removeMark=="function"&&typeof t.getDirtyPaths=="function"&&(t.marks===null||xt(t.marks))&&(t.selection===null||$.isRange(t.selection))&&ie.isNodeList(t.children)&&Br.isOperationList(t.operations);return eu.set(t,n),n},b={above(t,e){return t.above(e)},addMark(t,e,n){t.addMark(e,n)},after(t,e,n){return t.after(e,n)},before(t,e,n){return t.before(e,n)},deleteBackward(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{unit:n="character"}=e;t.deleteBackward(n)},deleteForward(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{unit:n="character"}=e;t.deleteForward(n)},deleteFragment(t,e){t.deleteFragment(e)},edges(t,e){return t.edges(e)},elementReadOnly(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return t.elementReadOnly(e)},end(t,e){return t.end(e)},first(t,e){return t.first(e)},fragment(t,e){return t.fragment(e)},hasBlocks(t,e){return t.hasBlocks(e)},hasInlines(t,e){return t.hasInlines(e)},hasPath(t,e){return t.hasPath(e)},hasTexts(t,e){return t.hasTexts(e)},insertBreak(t){t.insertBreak()},insertFragment(t,e,n){t.insertFragment(e,n)},insertNode(t,e){t.insertNode(e)},insertSoftBreak(t){t.insertSoftBreak()},insertText(t,e){t.insertText(e)},isBlock(t,e){return t.isBlock(e)},isEdge(t,e,n){return t.isEdge(e,n)},isEditor(t){return X1(t)},isElementReadOnly(t,e){return t.isElementReadOnly(e)},isEmpty(t,e){return t.isEmpty(e)},isEnd(t,e,n){return t.isEnd(e,n)},isInline(t,e){return t.isInline(e)},isNormalizing(t){return t.isNormalizing()},isSelectable(t,e){return t.isSelectable(e)},isStart(t,e,n){return t.isStart(e,n)},isVoid(t,e){return t.isVoid(e)},last(t,e){return t.last(e)},leaf(t,e,n){return t.leaf(e,n)},levels(t,e){return t.levels(e)},marks(t){return t.getMarks()},next(t,e){return t.next(e)},node(t,e,n){return t.node(e,n)},nodes(t,e){return t.nodes(e)},normalize(t,e){t.normalize(e)},parent(t,e,n){return t.parent(e,n)},path(t,e,n){return t.path(e,n)},pathRef(t,e,n){return t.pathRef(e,n)},pathRefs(t){return t.pathRefs()},point(t,e,n){return t.point(e,n)},pointRef(t,e,n){return t.pointRef(e,n)},pointRefs(t){return t.pointRefs()},positions(t,e){return t.positions(e)},previous(t,e){return t.previous(e)},range(t,e,n){return t.range(e,n)},rangeRef(t,e,n){return t.rangeRef(e,n)},rangeRefs(t){return t.rangeRefs()},removeMark(t,e){t.removeMark(e)},setNormalizing(t,e){t.setNormalizing(e)},start(t,e){return t.start(e)},string(t,e,n){return t.string(e,n)},unhangRange(t,e,n){return t.unhangRange(e,n)},void(t,e){return t.void(e)},withoutNormalizing(t,e){t.withoutNormalizing(e)},shouldMergeNodesRemovePrevNode:(t,e,n)=>t.shouldMergeNodesRemovePrevNode(e,n)},_1={isSpan(t){return Array.isArray(t)&&t.length===2&&t.every(O.isPath)}};function tu(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter(function(u){return Object.getOwnPropertyDescriptor(t,u).enumerable})),n.push.apply(n,s)}return n}function ru(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?tu(Object(n),!0).forEach(function(s){Ot(t,s,n[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):tu(Object(n)).forEach(function(s){Object.defineProperty(t,s,Object.getOwnPropertyDescriptor(n,s))})}return t}var Pe={compare(t,e){var n=O.compare(t.path,e.path);return n===0?t.offset<e.offset?-1:t.offset>e.offset?1:0:n},isAfter(t,e){return Pe.compare(t,e)===1},isBefore(t,e){return Pe.compare(t,e)===-1},equals(t,e){return t.offset===e.offset&&O.equals(t.path,e.path)},isPoint(t){return xt(t)&&typeof t.offset=="number"&&O.isPath(t.path)},transform(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return La(t,s=>{if(s===null)return null;var{affinity:u="forward"}=n,{path:f,offset:m}=s;switch(e.type){case"insert_node":case"move_node":{s.path=O.transform(f,e,n);break}case"insert_text":{O.equals(e.path,f)&&(e.offset<m||e.offset===m&&u==="forward")&&(s.offset+=e.text.length);break}case"merge_node":{O.equals(e.path,f)&&(s.offset+=e.position),s.path=O.transform(f,e,n);break}case"remove_text":{O.equals(e.path,f)&&e.offset<=m&&(s.offset-=Math.min(m-e.offset,e.text.length));break}case"remove_node":{if(O.equals(e.path,f)||O.isAncestor(e.path,f))return null;s.path=O.transform(f,e,n);break}case"split_node":{if(O.equals(e.path,f)){if(e.position===m&&u==null)return null;(e.position<m||e.position===m&&u==="forward")&&(s.offset-=e.position,s.path=O.transform(f,e,ru(ru({},n),{},{affinity:"forward"})))}else s.path=O.transform(f,e,n);break}}})}},nu=void 0,wt={setScrubber(t){nu=t},stringify(t){return JSON.stringify(t,nu)}},Z1=["text"],J1=["anchor","focus","merge"];function au(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter(function(u){return Object.getOwnPropertyDescriptor(t,u).enumerable})),n.push.apply(n,s)}return n}function mr(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};
261e%2?au(Object(n),!0).forEach(function(s){Ot(t,s,n[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):au(Object(n)).forEach(function(s){Object.defineProperty(t,s,Object.getOwnPropertyDescriptor(n,s))})}return t}var De={equals(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{loose:s=!1}=n;function u(f){var m=gr(f,Z1);return m}return uo(s?u(t):t,s?u(e):e)},isText(t){return xt(t)&&typeof t.text=="string"},isTextList(t){return Array.isArray(t)&&t.every(e=>De.isText(e))},isTextProps(t){return t.text!==void 0},matches(t,e){for(var n in e)if(n!=="text"&&(!t.hasOwnProperty(n)||t[n]!==e[n]))return!1;return!0},decorations(t,e){var n=[mr({},t)];for(var s of e){var{anchor:u,focus:f,merge:m}=s,D=gr(s,J1),[x,C]=$.edges(s),A=[],T=0,F=x.offset,P=C.offset,q=m??Object.assign;for(var M of n){var{length:p}=M.text,W=T;if(T+=p,F<=W&&T<=P){q(M,D),A.push(M);continue}if(F!==P&&(F===T||P===W)||F>T||P<W||P===W&&W!==0){A.push(M);continue}var j=M,V=void 0,U=void 0;if(P<T){var X=P-W;U=mr(mr({},j),{},{text:j.text.slice(X)}),j=mr(mr({},j),{},{text:j.text.slice(0,X)})}if(F>W){var ce=F-W;V=mr(mr({},j),{},{text:j.text.slice(0,ce)}),j=mr(mr({},j),{},{text:j.text.slice(ce)})}q(j,D),V&&A.push(V),A.push(j),U&&A.push(U)}n=A}return n}},Ha=t=>t.selection?t.selection:t.children.length>0?b.end(t,[]):[0],_r=(t,e)=>{var[n]=b.node(t,e);return s=>s===n},Wa=function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,s=!n,u=n?ac(e):e,f=Se.None,m=Se.None,D=0,x=null,C=null;for(var A of u){var T=A.codePointAt(0);if(!T)break;var F=gc(A,T);if([f,m]=s?[m,F]:[F,f],Gr(f,Se.ZWJ)&&Gr(m,Se.ExtPict)&&(s?x=su(e.substring(0,D)):x=su(e.substring(0,e.length-D)),!x)||Gr(f,Se.RI)&&Gr(m,Se.RI)&&(C!==null?C=!C:s?C=!0:C=wc(e.substring(0,e.length-D)),!C)||f!==Se.None&&m!==Se.None&&bc(f,m))break;D+=A.length}return D||1},Q1=/\s/,ec=/[\u002B\u0021-\u0023\u0025-\u002A\u002C-\u002F\u003A\u003B\u003F\u0040\u005B-\u005D\u005F\u007B\u007D\u00A1\u00A7\u00AB\u00B6\u00B7\u00BB\u00BF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E3B\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/,tc=/['\u2018\u2019]/,rc=function(e){for(var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,s=0,u=!1;e.length>0;){var f=Wa(e,n),[m,D]=$a(e,f,n);if(nc(m,D,n))u=!0,s+=f;else if(!u)s+=f;else break;e=D}return s},$a=(t,e,n)=>{if(n){var s=t.length-e;return[t.slice(s,t.length),t.slice(0,s)]}return[t.slice(0,e),t.slice(e)]},nc=function t(e,n){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(Q1.test(e))return!1;if(tc.test(e)){var u=Wa(n,s),[f,m]=$a(n,u,s);if(t(f,m,s))return!0}return!ec.test(e)},ac=function*(e){for(var n=e.length-1,s=0;s<e.length;s++){var u=e.charAt(n-s);if(ic(u.charCodeAt(0))){var f=e.charAt(n-s-1);if(sc(f.charCodeAt(0))){yield f+u,s++;continue}}yield u}},sc=t=>t>=55296&&t<=56319,ic=t=>t>=56320&&t<=57343,Se;(function(t){t[t.None=0]="None",t[t.Extend=1]="Extend",t[t.ZWJ=2]="ZWJ",t[t.RI=4]="RI",t[t.Prepend=8]="Prepend",t[t.SpacingMark=16]="SpacingMark",t[t.L=32]="L",t[t.V=64]="V",t[t.T=128]="T",t[t.LV=256]="LV",t[t.LVT=512]="LVT",t[t.ExtPict=1024]="ExtPict",t[t.Any=2048]="Any"})(Se||(Se={}));
261var uc=/^(?:[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0898-\u089F\u08CA-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09BE\u09C1-\u09C4\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3E\u0B3F\u0B41-\u0B44\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE\u0BC0\u0BCD\u0BD7\u0C00\u0C04\u0C3C\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CBF\u0CC2\u0CC6\u0CCC\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D3E\u0D41-\u0D44\u0D4D\u0D57\u0D62\u0D63\u0D81\u0DCA\u0DCF\u0DD2-\u0DD4\u0DD6\u0DDF\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732\u1733\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u180F\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1ACE\u1B00-\u1B03\u1B34-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DFF\u200C\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFF9E\uFF9F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDEAB\uDEAC\uDEFD-\uDEFF\uDF46-\uDF50\uDF82-\uDF85]|\uD804[\uDC01\uDC38-\uDC46\uDC70\uDC73\uDC74\uDC7F-\uDC81\uDCB3-\uDCB6\uDCB9\uDCBA\uDCC2\uDD00-\uDD02\uDD27-\uDD2B\uDD2D-\uDD34\uDD73\uDD80\uDD81\uDDB6-\uDDBE\uDDC9-\uDDCC\uDDCF\uDE2F-\uDE31\uDE34\uDE36\uDE37\uDE3E\uDE41\uDEDF\uDEE3-\uDEEA\uDF00\uDF01\uDF3B\uDF3C\uDF3E\uDF40\uDF57\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC38-\uDC3F\uDC42-\uDC44\uDC46\uDC5E\uDCB0\uDCB3-\uDCB8\uDCBA\uDCBD\uDCBF\uDCC0\uDCC2\uDCC3\uDDAF\uDDB2-\uDDB5\uDDBC\uDDBD\uDDBF\uDDC0\uDDDC\uDDDD\uDE33-\uDE3A\uDE3D\uDE3F\uDE40\uDEAB\uDEAD\uDEB0-\uDEB5\uDEB7\uDF1D-\uDF1F\uDF22-\uDF25\uDF27-\uDF2B]|\uD806[\uDC2F-\uDC37\uDC39\uDC3A\uDD30\uDD3B\uDD3C\uDD3E\uDD43\uDDD4-\uDDD7\uDDDA\uDDDB\uDDE0\uDE01-\uDE0A\uDE33-\uDE38\uDE3B-\uDE3E\uDE47\uDE51-\uDE56\uDE59-\uDE5B\uDE8A-\uDE96\uDE98\uDE99]|\uD807[\uDC30-\uDC36\uDC38-\uDC3D\uDC3F\uDC92-\uDCA7\uDCAA-\uDCB0\uDCB2\uDCB3\uDCB5\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD45\uDD47\uDD90\uDD91\uDD95\uDD97\uDEF3\uDEF4\uDF00\uDF01\uDF36-\uDF3A\uDF40\uDF42]|\uD80D[\uDC40\uDC47-\uDC55]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF4F\uDF8F-\uDF92\uDFE4]|\uD82F[\uDC9D\uDC9E]|\uD833[\uDF00-\uDF2D\uDF30-\uDF46]|\uD834[\uDD65\uDD67-\uDD69\uDD6E-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDC8F\uDD30-\uDD36\uDEAE\uDEEC-\uDEEF]|\uD839[\uDCEC-\uDCEF]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A]|\uD83C[\uDFFB-\uDFFF]|\uDB40[\uDC20-\uDC7F\uDD00-\uDDEF])$/,oc=/^(?:[\u0600-\u0605\u06DD\u070F\u0890\u0891\u08E2\u0D4E]|\uD804[\uDCBD\uDCCD\uDDC2\uDDC3]|\uD806[\uDD3F\uDD41\uDE3A\uDE84-\uDE89]|\uD807\uDD46)$/,lc=/^(?:[\u0903\u093B\u093E-\u0940\u0949-\u094C\u094E\u094F\u0982\u0983\u09BF\u09C0\u09C7\u09C8\u09CB\u09CC\u0A03\u0A3E-\u0A40\u0A83\u0ABE-\u0AC0\u0AC9\u0ACB\u0ACC\u0B02\u0B03\u0B40\u0B47\u0B48\u0B4B\u0B4C\u0BBF\u0BC1\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCC\u0C01-\u0C03\u0C41-\u0C44\u0C82\u0C83\u0CBE\u0CC0\u0CC1\u0CC3\u0CC4\u
2610CC7\u0CC8\u0CCA\u0CCB\u0D02\u0D03\u0D3F\u0D40\u0D46-\u0D48\u0D4A-\u0D4C\u0D82\u0D83\u0DD0\u0DD1\u0DD8-\u0DDE\u0DF2\u0DF3\u0E33\u0EB3\u0F3E\u0F3F\u0F7F\u1031\u103B\u103C\u1056\u1057\u1084\u1715\u1734\u17B6\u17BE-\u17C5\u17C7\u17C8\u1923-\u1926\u1929-\u192B\u1930\u1931\u1933-\u1938\u1A19\u1A1A\u1A55\u1A57\u1A6D-\u1A72\u1B04\u1B3B\u1B3D-\u1B41\u1B43\u1B44\u1B82\u1BA1\u1BA6\u1BA7\u1BAA\u1BE7\u1BEA-\u1BEC\u1BEE\u1BF2\u1BF3\u1C24-\u1C2B\u1C34\u1C35\u1CE1\u1CF7\uA823\uA824\uA827\uA880\uA881\uA8B4-\uA8C3\uA952\uA953\uA983\uA9B4\uA9B5\uA9BA\uA9BB\uA9BE-\uA9C0\uAA2F\uAA30\uAA33\uAA34\uAA4D\uAAEB\uAAEE\uAAEF\uAAF5\uABE3\uABE4\uABE6\uABE7\uABE9\uABEA\uABEC]|\uD804[\uDC00\uDC02\uDC82\uDCB0-\uDCB2\uDCB7\uDCB8\uDD2C\uDD45\uDD46\uDD82\uDDB3-\uDDB5\uDDBF\uDDC0\uDDCE\uDE2C-\uDE2E\uDE32\uDE33\uDE35\uDEE0-\uDEE2\uDF02\uDF03\uDF3F\uDF41-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF62\uDF63]|\uD805[\uDC35-\uDC37\uDC40\uDC41\uDC45\uDCB1\uDCB2\uDCB9\uDCBB\uDCBC\uDCBE\uDCC1\uDDB0\uDDB1\uDDB8-\uDDBB\uDDBE\uDE30-\uDE32\uDE3B\uDE3C\uDE3E\uDEAC\uDEAE\uDEAF\uDEB6\uDF26]|\uD806[\uDC2C-\uDC2E\uDC38\uDD31-\uDD35\uDD37\uDD38\uDD3D\uDD40\uDD42\uDDD1-\uDDD3\uDDDC-\uDDDF\uDDE4\uDE39\uDE57\uDE58\uDE97]|\uD807[\uDC2F\uDC3E\uDCA9\uDCB1\uDCB4\uDD8A-\uDD8E\uDD93\uDD94\uDD96\uDEF5\uDEF6]|\uD81B[\uDF51-\uDF87\uDFF0\uDFF1]|\uD834[\uDD66\uDD6D])$/,cc=/^[\u1100-\u115F\uA960-\uA97C]$/,fc=/^[\u1160-\u11A7\uD7B0-\uD7C6]$/,hc=/^[\u11A8-\u11FF\uD7CB-\uD7FB]$/,dc=/^[\uAC00\uAC1C\uAC38\uAC54\uAC70\uAC8C\uACA8\uACC4\uACE0\uACFC\uAD18\uAD34\uAD50\uAD6C\uAD88\uADA4\uADC0\uADDC\uADF8\uAE14\uAE30\uAE4C\uAE68\uAE84\uAEA0\uAEBC\uAED8\uAEF4\uAF10\uAF2C\uAF48\uAF64\uAF80\uAF9C\uAFB8\uAFD4\uAFF0\uB00C\uB028\uB044\uB060\uB07C\uB098\uB0B4\uB0D0\uB0EC\uB108\uB124\uB140\uB15C\uB178\uB194\uB1B0\uB1CC\uB1E8\uB204\uB220\uB23C\uB258\uB274\uB290\uB2AC\uB2C8\uB2E4\uB300\uB31C\uB338\uB354\uB370\uB38C\uB3A8\uB3C4\uB3E0\uB3FC\uB418\uB434\uB450\uB46C\uB488\uB4A4\uB4C0\uB4DC\uB4F8\uB514\uB530\uB54C\uB568\uB584\uB5A0\uB5BC\uB5D8\uB5F4\uB610\uB62C\uB648\uB664\uB680\uB69C\uB6B8\uB6D4\uB6F0\uB70C\uB728\uB744\uB760\uB77C\uB798\uB7B4\uB7D0\uB7EC\uB808\uB824\uB840\uB85C\uB878\uB894\uB8B0\uB8CC\uB8E8\uB904\uB920\uB93C\uB958\uB974\uB990\uB9AC\uB9C8\uB9E4\uBA00\uBA1C\uBA38\uBA54\uBA70\uBA8C\uBAA8\uBAC4\uBAE0\uBAFC\uBB18\uBB34\uBB50\uBB6C\uBB88\uBBA4\uBBC0\uBBDC\uBBF8\uBC14\uBC30\uBC4C\uBC68\uBC84\uBCA0\uBCBC\uBCD8\uBCF4\uBD10\uBD2C\uBD48\uBD64\uBD80\uBD9C\uBDB8\uBDD4\uBDF0\uBE0C\uBE28\uBE44\uBE60\uBE7C\uBE98\uBEB4\uBED0\uBEEC\uBF08\uBF24\uBF40\uBF5C\uBF78\uBF94\uBFB0\uBFCC\uBFE8\uC004\uC020\uC03C\uC058\uC074\uC090\uC0AC\uC0C8\uC0E4\uC100\uC11C\uC138\uC154\uC170\uC18C\uC1A8\uC1C4\uC1E0\uC1FC\uC218\uC234\uC250\uC26C\uC288\uC2A4\uC2C0\uC2DC\uC2F8\uC314\uC330\uC34C\uC368\uC384\uC3A0\uC3BC\uC3D8\uC3F4\uC410\uC42C\uC448\uC464\uC480\uC49C\uC4B8\uC4D4\uC4F0\uC50C\uC528\uC544\uC560\uC57C\uC598\uC5B4\uC5D0\uC5EC\uC608\uC624\uC640\uC65C\uC678\uC694\uC6B0\uC6CC\uC6E8\uC704\uC720\uC73C\uC758\uC774\uC790\uC7AC\uC7C8\uC7E4\uC800\uC81C\uC838\uC854\uC870\uC88C\uC8A8\uC8C4\uC8E0\uC8FC\uC918\uC934\uC950\uC96C\uC988\uC9A4\uC9C0\uC9DC\uC9F8\uCA14\uCA30\uCA4C\uCA68\uCA84\uCAA0\uCABC\uCAD8\uCAF4\uCB10\uCB2C\uCB48\uCB64\uCB80\uCB9C\uCBB8\uCBD4\uCBF0\uCC0C\uCC28\uCC44\uCC60\uCC7C\uCC98\uCCB4\uCCD0\uCCEC\uCD08\uCD24\uCD40\uCD5C\uCD78\uCD94\uCDB0\uCDCC\uCDE8\uCE04\uCE20\uCE3C\uCE58\uCE74\uCE90\uCEAC\uCEC8\uCEE4\uCF00\uCF1C\uCF38\uCF54\uCF70\uCF8C\uCFA8\uCFC4\uCFE0\uCFFC\uD018\uD034\uD050\uD06C\uD088\uD0A4\uD0C0\uD0DC\uD0F8\uD114\uD130\uD14C\uD168\uD184\uD1A0\uD1BC\uD1D8\uD1F4\uD210\uD22C\uD248\uD264\uD280\uD29C\uD2B8\uD2D4\uD2F0\uD30C\uD328\uD344\uD360\uD37C\uD398\uD3B4\uD3D0\uD3EC\uD408\uD424\uD440\uD45C\uD478\uD494\uD4B0\uD4CC\uD4E8\uD504\uD520\uD53C\uD558\uD574\uD590\uD5AC\uD5C8\uD5E4\uD600\uD61C\uD638\uD654\uD670\uD68C\uD6A8\uD6C4\uD6E0\uD6FC\uD718\uD734\uD750\uD76C\uD788]$/,mc=/^[\uAC01-\uAC1B\uAC1D-\uAC37\uAC39-\uAC53\uAC55-\uAC6F\uAC71-\uAC8B\uAC8D-\uACA7\uACA9-\uACC3\uACC5-\uACDF\uACE1-\uACFB\uACFD-\uAD17\uAD19-\uAD33\uAD35-\uAD4F\uAD51-\uAD6B\uAD6D-\uAD87\uAD89-\uADA3\uADA5-\uADBF\uADC1-\uADDB\uADDD-\uADF7\uADF9-\uAE13\uAE15-\uAE2F\uAE31-\uAE4B\uAE4D-\uAE67\uAE69-\uAE83\uAE85-\uAE9F\uAEA1-\uAEBB\uAEBD-\uAED7\uAED9-\uAEF3\uAEF5-\uAF0F\uAF11-\uAF2B\uAF2D-\uAF47\uAF49-\uAF63\uAF65-\uAF7F\uAF81-\uAF9B\uAF9D-\uAFB7\uAFB9-\uAFD3\uAFD5-\uAFEF\uAFF1-\uB00B\uB00D-\uB027\uB029-\uB043\uB045-\uB05F\uB061-\uB07B\uB07D-\uB097\uB099-\uB0B3\uB0B5-\uB0CF\uB0D1-\uB0EB\uB0ED-\uB107\uB109-\uB123\uB125-\uB13F\uB141-\uB15B\uB15D-\uB177\uB179-\uB193\uB195-\uB1AF\uB1B1-\uB1CB\uB1CD-\uB1E7\uB1E9-\uB203\uB205-\uB21F\uB221-\uB23B\uB23D-\uB257\uB259-\uB273\uB275-\uB28F\uB291-\uB2AB\uB2AD-\uB2C7\uB2C9-\uB2E3\uB2E5-\uB2FF\uB301-\uB31B\uB31D-\uB337\uB339-\uB353\uB355-\uB36F\uB371-\uB38B\uB38D-\uB3A7\uB3A9-\uB3C3\uB3C5-\uB3DF\uB3E1-\uB3FB\uB3FD-\uB417\uB419-\uB433\uB435-\uB44F\uB451-\uB46B\uB46D-\uB487\uB489-\uB4A3\uB4A5-\uB4BF\uB4C1-\uB4DB\uB4DD-\uB4F7\uB4F9-\uB513\uB515-\uB52F\uB531-\uB54B\uB54D-\uB567\uB569-\uB583\uB585-\uB59F\uB5A1-\uB5BB\uB5BD-\uB5D7\uB5D9-\uB5F3\uB5F5-\uB60F\uB611-\uB62B\uB62D-\uB647\uB649-\uB663\uB665-\uB67F\uB681-\uB69B\uB69D-\uB6B7\uB6B9-\uB6D3\uB6D5-\uB6EF\uB6F1-\uB70B\uB70D-\uB727\uB729-\uB743\uB745-\uB75F\uB761-\uB77B\uB77D-\uB797\uB799-\uB7B3\uB7B5-\uB7CF\uB7D1-\uB7EB\uB7ED-\uB807\uB809-\uB823\uB825-\uB83F\uB841-\uB85B\uB85D-\uB877\uB879-\uB893\uB895-\uB8AF\uB8B1-\uB8CB\uB8CD-\uB8E7\uB8E9-\uB903\uB905-\uB91F\uB921-\uB93B\uB93D-\uB957\uB959-\uB973\uB975-\uB98F\uB991-\uB9AB\uB9AD-\uB9C7\uB9C9-\uB9E3\uB9E5-\uB9FF\uBA01-\uBA1B\uBA1D-\uBA37\uBA39-\uBA53\uBA55-\uBA6F\uBA71-\uBA8B\uBA8D-\uBAA7\uBAA9-\uBAC3\uBAC5-\uBADF\uBAE1-\uBAFB\uBAFD-\uBB17\uBB19-\uBB33\uBB35-\uBB4F\uBB51-\uBB6B\uBB6D-\uBB87\uBB89-\uBBA3\uBBA5-\uBBBF\uBBC1-\uBBDB\uBBDD-\uBBF7\uBBF9-\uBC13\uBC15-\uBC2F\uBC31-\uBC4B\uBC4D-\uBC67\uBC69-\uBC83\uBC85-\uBC9F\uBCA1-\uBCBB\uBCBD-\uBCD7\uBCD9-\uBCF3\uBCF5-\uBD0F\uBD11-\uBD2B\uBD2D-\uBD47\uBD49-\uBD63\uBD65-\uBD7F\uBD81-\uBD9B\uBD9D-\uBDB7\uBDB9-\uBDD3\uBDD5-\uBDEF\uBDF1-\uBE0B\uBE0D-\uBE27\uBE29-\uBE43\uBE45-\uBE5F\uBE61-\uBE7B\uBE7D-\uBE97\uBE99-\uBEB3\uBEB5-\uBECF\uBED1-\uBEEB\uBEED-\uBF07\uBF09-\uBF23\uBF25-\uBF3F\uBF41-\uBF5B\uBF5D-\uBF77\uBF79-\uBF93\uBF95-\uBFAF\uBFB1-\uBFCB\uBFCD-\uBFE7\uBFE9-\uC003\uC005-\uC01F\uC021-\uC03B\uC03D-\uC057\uC059-\uC073\uC075-\uC08F\uC091-\uC0AB\uC0AD-\uC0C7\uC0C9-\uC0E3\uC0E5-\uC0FF\uC101-\uC11B\uC11D-\uC137\uC139-\uC153\uC155-\uC16F\uC171-\uC18B\uC18D-\uC1A7\uC1A9-\uC1C3\uC1C5-\uC1DF\uC1E1-\uC1FB\uC1FD-\uC217\uC219-\uC233\uC235-\uC24F\uC251-\uC26B\uC26D-\uC287\uC289-\uC2A3\uC2A5-\uC2BF\uC2C1-\uC2DB\uC2DD-\uC2F7\u
261C2F9-\uC313\uC315-\uC32F\uC331-\uC34B\uC34D-\uC367\uC369-\uC383\uC385-\uC39F\uC3A1-\uC3BB\uC3BD-\uC3D7\uC3D9-\uC3F3\uC3F5-\uC40F\uC411-\uC42B\uC42D-\uC447\uC449-\uC463\uC465-\uC47F\uC481-\uC49B\uC49D-\uC4B7\uC4B9-\uC4D3\uC4D5-\uC4EF\uC4F1-\uC50B\uC50D-\uC527\uC529-\uC543\uC545-\uC55F\uC561-\uC57B\uC57D-\uC597\uC599-\uC5B3\uC5B5-\uC5CF\uC5D1-\uC5EB\uC5ED-\uC607\uC609-\uC623\uC625-\uC63F\uC641-\uC65B\uC65D-\uC677\uC679-\uC693\uC695-\uC6AF\uC6B1-\uC6CB\uC6CD-\uC6E7\uC6E9-\uC703\uC705-\uC71F\uC721-\uC73B\uC73D-\uC757\uC759-\uC773\uC775-\uC78F\uC791-\uC7AB\uC7AD-\uC7C7\uC7C9-\uC7E3\uC7E5-\uC7FF\uC801-\uC81B\uC81D-\uC837\uC839-\uC853\uC855-\uC86F\uC871-\uC88B\uC88D-\uC8A7\uC8A9-\uC8C3\uC8C5-\uC8DF\uC8E1-\uC8FB\uC8FD-\uC917\uC919-\uC933\uC935-\uC94F\uC951-\uC96B\uC96D-\uC987\uC989-\uC9A3\uC9A5-\uC9BF\uC9C1-\uC9DB\uC9DD-\uC9F7\uC9F9-\uCA13\uCA15-\uCA2F\uCA31-\uCA4B\uCA4D-\uCA67\uCA69-\uCA83\uCA85-\uCA9F\uCAA1-\uCABB\uCABD-\uCAD7\uCAD9-\uCAF3\uCAF5-\uCB0F\uCB11-\uCB2B\uCB2D-\uCB47\uCB49-\uCB63\uCB65-\uCB7F\uCB81-\uCB9B\uCB9D-\uCBB7\uCBB9-\uCBD3\uCBD5-\uCBEF\uCBF1-\uCC0B\uCC0D-\uCC27\uCC29-\uCC43\uCC45-\uCC5F\uCC61-\uCC7B\uCC7D-\uCC97\uCC99-\uCCB3\uCCB5-\uCCCF\uCCD1-\uCCEB\uCCED-\uCD07\uCD09-\uCD23\uCD25-\uCD3F\uCD41-\uCD5B\uCD5D-\uCD77\uCD79-\uCD93\uCD95-\uCDAF\uCDB1-\uCDCB\uCDCD-\uCDE7\uCDE9-\uCE03\uCE05-\uCE1F\uCE21-\uCE3B\uCE3D-\uCE57\uCE59-\uCE73\uCE75-\uCE8F\uCE91-\uCEAB\uCEAD-\uCEC7\uCEC9-\uCEE3\uCEE5-\uCEFF\uCF01-\uCF1B\uCF1D-\uCF37\uCF39-\uCF53\uCF55-\uCF6F\uCF71-\uCF8B\uCF8D-\uCFA7\uCFA9-\uCFC3\uCFC5-\uCFDF\uCFE1-\uCFFB\uCFFD-\uD017\uD019-\uD033\uD035-\uD04F\uD051-\uD06B\uD06D-\uD087\uD089-\uD0A3\uD0A5-\uD0BF\uD0C1-\uD0DB\uD0DD-\uD0F7\uD0F9-\uD113\uD115-\uD12F\uD131-\uD14B\uD14D-\uD167\uD169-\uD183\uD185-\uD19F\uD1A1-\uD1BB\uD1BD-\uD1D7\uD1D9-\uD1F3\uD1F5-\uD20F\uD211-\uD22B\uD22D-\uD247\uD249-\uD263\uD265-\uD27F\uD281-\uD29B\uD29D-\uD2B7\uD2B9-\uD2D3\uD2D5-\uD2EF\uD2F1-\uD30B\uD30D-\uD327\uD329-\uD343\uD345-\uD35F\uD361-\uD37B\uD37D-\uD397\uD399-\uD3B3\uD3B5-\uD3CF\uD3D1-\uD3EB\uD3ED-\uD407\uD409-\uD423\uD425-\uD43F\uD441-\uD45B\uD45D-\uD477\uD479-\uD493\uD495-\uD4AF\uD4B1-\uD4CB\uD4CD-\uD4E7\uD4E9-\uD503\uD505-\uD51F\uD521-\uD53B\uD53D-\uD557\uD559-\uD573\uD575-\uD58F\uD591-\uD5AB\uD5AD-\uD5C7\uD5C9-\uD5E3\uD5E5-\uD5FF\uD601-\uD61B\uD61D-\uD637\uD639-\uD653\uD655-\uD66F\uD671-\uD68B\uD68D-\uD6A7\uD6A9-\uD6C3\uD6C5-\uD6DF\uD6E1-\uD6FB\uD6FD-\uD717\uD719-\uD733\uD735-\uD74F\uD751-\uD76B\uD76D-\uD787\uD789-\uD7A3]$/,pc=/^(?:[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u2388\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2605\u2607-\u2612\u2614-\u2685\u2690-\u2705\u2708-\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763-\u2767\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC00-\uDCFF\uDD0D-\uDD0F\uDD2F\uDD6C-\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDAD-\uDDE5\uDE01-\uDE0F\uDE1A\uDE2F\uDE32-\uDE3A\uDE3C-\uDE3F\uDE49-\uDFFA]|\uD83D[\uDC00-\uDD3D\uDD46-\uDE4F\uDE80-\uDEFF\uDF74-\uDF7F\uDFD5-\uDFFF]|\uD83E[\uDC0C-\uDC0F\uDC48-\uDC4F\uDC5A-\uDC5F\uDC88-\uDC8F\uDCAE-\uDCFF\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDEFF]|\uD83F[\uDC00-\uDFFD])$/,gc=(t,e)=>{var n=Se.Any;return t.search(uc)!==-1&&(n|=Se.Extend),e===8205&&(n|=Se.ZWJ),e>=127462&&e<=127487&&(n|=Se.RI),t.search(oc)!==-1&&(n|=Se.Prepend),t.search(lc)!==-1&&(n|=Se.SpacingMark),t.search(cc)!==-1&&(n|=Se.L),t.search(fc)!==-1&&(n|=Se.V),t.search(hc)!==-1&&(n|=Se.T),t.search(dc)!==-1&&(n|=Se.LV),t.search(mc)!==-1&&(n|=Se.LVT),t.search(pc)!==-1&&(n|=Se.ExtPict),n};function Gr(t,e){return(t&e)!==0}var vc=[[Se.L,Se.L|Se.V|Se.LV|Se.LVT],[Se.LV|Se.V,Se.V|Se.T],[Se.LVT|Se.T,Se.T],[Se.Any,Se.Extend|Se.ZWJ],[Se.Any,Se.SpacingMark],[Se.Prepend,Se.Any],[Se.ZWJ,Se.ExtPict],[Se.RI,Se.RI]];function bc(t,e){return vc.findIndex(n=>Gr(t,n[0])&&Gr(e,n[1]))===-1}var Dc=/(?:[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u2388\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2605\u2607-\u2612\u2614-\u2685\u2690-\u2705\u2708-\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763-\u2767\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC00-\uDCFF\uDD0D-\uDD0F\uDD2F\uDD6C-\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDAD-\uDDE5\uDE01-\uDE0F\uDE1A\uDE2F\uDE32-\uDE3A\uDE3C-\uDE3F\uDE49-\uDFFA]|\uD83D[\uDC00-\uDD3D\uDD46-\uDE4F\uDE80-\uDEFF\uDF74-\uDF7F\uDFD5-\uDFFF]|\uD83E[\uDC0C-\uDC0F\uDC48-\uDC4F\uDC5A-\uDC5F\uDC88-\uDC8F\uDCAE-\uDCFF\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDEFF]|\uD83F[\uDC00-\uDFFD])(?:[\u0300-\u036F\u0483-\u0489\u
2610591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0898-\u089F\u08CA-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09BE\u09C1-\u09C4\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3E\u0B3F\u0B41-\u0B44\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE\u0BC0\u0BCD\u0BD7\u0C00\u0C04\u0C3C\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CBF\u0CC2\u0CC6\u0CCC\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D3E\u0D41-\u0D44\u0D4D\u0D57\u0D62\u0D63\u0D81\u0DCA\u0DCF\u0DD2-\u0DD4\u0DD6\u0DDF\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732\u1733\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u180F\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1ACE\u1B00-\u1B03\u1B34-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DFF\u200C\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFF9E\uFF9F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDEAB\uDEAC\uDEFD-\uDEFF\uDF46-\uDF50\uDF82-\uDF85]|\uD804[\uDC01\uDC38-\uDC46\uDC70\uDC73\uDC74\uDC7F-\uDC81\uDCB3-\uDCB6\uDCB9\uDCBA\uDCC2\uDD00-\uDD02\uDD27-\uDD2B\uDD2D-\uDD34\uDD73\uDD80\uDD81\uDDB6-\uDDBE\uDDC9-\uDDCC\uDDCF\uDE2F-\uDE31\uDE34\uDE36\uDE37\uDE3E\uDE41\uDEDF\uDEE3-\uDEEA\uDF00\uDF01\uDF3B\uDF3C\uDF3E\uDF40\uDF57\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC38-\uDC3F\uDC42-\uDC44\uDC46\uDC5E\uDCB0\uDCB3-\uDCB8\uDCBA\uDCBD\uDCBF\uDCC0\uDCC2\uDCC3\uDDAF\uDDB2-\uDDB5\uDDBC\uDDBD\uDDBF\uDDC0\uDDDC\uDDDD\uDE33-\uDE3A\uDE3D\uDE3F\uDE40\uDEAB\uDEAD\uDEB0-\uDEB5\uDEB7\uDF1D-\uDF1F\uDF22-\uDF25\uDF27-\uDF2B]|\uD806[\uDC2F-\uDC37\uDC39\uDC3A\uDD30\uDD3B\uDD3C\uDD3E\uDD43\uDDD4-\uDDD7\uDDDA\uDDDB\uDDE0\uDE01-\uDE0A\uDE33-\uDE38\uDE3B-\uDE3E\uDE47\uDE51-\uDE56\uDE59-\uDE5B\uDE8A-\uDE96\uDE98\uDE99]|\uD807[\uDC30-\uDC36\uDC38-\uDC3D\uDC3F\uDC92-\uDCA7\uDCAA-\uDCB0\uDCB2\uDCB3\uDCB5\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD45\uDD47\uDD90\uDD91\uDD95\uDD97\uDEF3\uDEF4\uDF00\uDF01\uDF36-\uDF3A\uDF40\uDF42]|\uD80D[\uDC40\uDC47-\uDC55]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF4F\uDF8F-\uDF92\uDFE4]|\uD82F[\uDC9D\uDC9E]|\uD833[\uDF00-\uDF2D\uDF30-\uDF46]|\uD834[\uDD65\uDD67-\uDD69\uDD6E-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDC8F\uDD30-\uDD36\uDEAE\uDEEC-\uDEEF]|\uD839[\uDCEC-\uDCEF]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A]|\uD83C[\uDFFB-\uDFFF]|\uDB40[\uDC20-\uDC7F\uDD00-\uDDEF])*\u200D$/,su=t=>t.search(Dc)!==-1,yc=/(?:\uD83C[\uDDE6-\uDDFF])+$/g,wc=t=>{var e=t.match(yc);if(e===null)return!1;var n=e[0].length/2;return n%2===1},Cc={delete(t,e){t.delete(e)},insertFragment(t,e,n){t.insertFragment(e,n)},insertText(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};b.withoutNormalizing(t,()=>{var{voids:s=!1}=n,{at:u=Ha(t)}=n;if(O.isPath(u)&&(u=b.range(t,u)),$.isRange(u))if($.isCollapsed(u))u=u.anchor;else{var f=$.end(u);if(!s&&b.void(t,{at:f}))return;var m=$.start(u),D=b.pointRef(t,m),x=b.pointRef(t,f);Z.delete(t,{at:u,voids:s});var C=D.unref(),A=x.unref();u=C||A,Z.setSelection(t,{anchor:u,focus:u})}if(!(!s&&b.void(t,{at:u})||b.elementReadOnly(t,{at:u}))){var{path:T,offset:F}=u;e.length>0&&t.apply({type:"insert_text",path:T,offset:F,text:e})}})}};function iu(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter(function(u){return Object.getOwnPropertyDescriptor(t,u).enumerable})),n.push.apply(n,s)}return n}function U0(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};
261e%2?iu(Object(n),!0).forEach(function(s){Ot(t,s,n[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):iu(Object(n)).forEach(function(s){Object.defineProperty(t,s,Object.getOwnPropertyDescriptor(n,s))})}return t}var Z=U0(U0(U0(U0({},H1),W1),$1),Cc),en=new WeakMap,xc=t=>en.get(t)||!1,Bc=(t,e,n)=>{var s=en.get(t)||!1;en.set(t,!0);try{e(),n()}finally{en.set(t,s)}};function oo(t,e,n){var s=on.get(t)||[],u=ln.get(t)||new Set,f,m,D=T=>{if(T){var F=T.join(",");m.has(F)||(m.add(F),f.push(T))}};if(n){f=[],m=new Set;for(var x of s){var C=n(x);D(C)}}else f=s,m=u;for(var A of e)D(A);on.set(t,f),ln.set(t,m)}var Ac=(t,e)=>{for(var n of b.pathRefs(t))P1.transform(n,e);for(var s of b.pointRefs(t))R1.transform(s,e);for(var u of b.rangeRefs(t))I1.transform(u,e);if(!xc(t)){var f=O.operationCanTransformPath(e)?m=>O.transform(m,e):void 0;oo(t,t.getDirtyPaths(e),f)}Z.transform(t,e),t.operations.push(e),b.normalize(t,{operation:e}),e.type==="set_selection"&&(t.marks=null),s0.get(t)||(s0.set(t,!0),Promise.resolve().then(()=>{s0.set(t,!1),t.onChange({operation:e}),t.operations=[]}))},Ec=(t,e)=>{switch(e.type){case"insert_text":case"remove_text":case"set_node":{var{path:n}=e;return O.levels(n)}case"insert_node":{var{node:s,path:u}=e,f=O.levels(u),m=De.isText(s)?[]:Array.from(ie.nodes(s),ne=>{var[,ue]=ne;return u.concat(ue)});return[...f,...m]}case"merge_node":{var{path:D}=e,x=O.ancestors(D),C=O.previous(D);return[...x,C]}case"move_node":{var{path:A,newPath:T}=e;if(O.equals(A,T))return[];var F=[],P=[];for(var q of O.ancestors(A)){var M=O.transform(q,e);F.push(M)}for(var p of O.ancestors(T)){var W=O.transform(p,e);P.push(W)}var j=P[P.length-1],V=T[T.length-1],U=j.concat(V);return[...F,...P,U]}case"remove_node":{var{path:X}=e,ce=O.ancestors(X);return[...ce]}case"split_node":{var{path:oe}=e,he=O.levels(oe),ge=O.next(oe);return[...he,ge]}default:return[]}},Sc=t=>{var{selection:e}=t;return e?ie.fragment(t,e):[]},Fc=(t,e)=>{var[n,s]=e;if(!De.isText(n)){if(ye.isElement(n)&&n.children.length===0){var u={text:""};Z.insertNodes(t,u,{at:s.concat(0),voids:!0});return}for(var f=b.isEditor(n)?!1:ye.isElement(n)&&(t.isInline(n)||n.children.length===0||De.isText(n.children[0])||t.isInline(n.children[0])),m=0,D=0;D<n.children.length;D++,m++){var x=ie.get(t,s);if(!De.isText(x)){var C=x.children[m],A=x.children[m-1],T=D===n.children.length-1,F=De.isText(C)||ye.isElement(C)&&t.isInline(C);if(F!==f)F?Z.removeNodes(t,{at:s.concat(m),voids:!0}):Z.unwrapNodes(t,{at:s.concat(m),voids:!0}),m--;else if(ye.isElement(C)){if(t.isInline(C)){if(A==null||!De.isText(A)){var P={text:""};Z.insertNodes(t,P,{at:s.concat(m),voids:!0}),m++}else if(T){var q={text:""};Z.insertNodes(t,q,{at:s.concat(m+1),voids:!0}),m++}}}else{if(!De.isText(C)&&!("children"in C)){var M=C;M.children=[]}A!=null&&De.isText(A)&&(De.equals(C,A,{loose:!0})?(Z.mergeNodes(t,{at:s.concat(m),voids:!0}),m--):A.text===""?(Z.removeNodes(t,{at:s.concat(m-1),voids:!0}),m--):C.text===""&&(Z.removeNodes(t,{at:s.concat(m),voids:!0}),m--))}}}}},kc=(t,e)=>{var{iteration:n,initialDirtyPathsLength:s}=e,u=s*42;if(n>u)throw new Error("Could not completely normalize the editor after ".concat(u," iterations! This is usually due to incorrect normalization logic that leaves a node in an invalid state."));return!0},Oc=function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{voids:s=!1,mode:u="lowest",at:f=e.selection,match:m}=n;if(f){var D=b.path(e,f),x=u==="lowest";for(var[C,A]of b.levels(e,{at:D,voids:s,match:m,reverse:x}))if(!De.isText(C)){if($.isRange(f)){if(O.isAncestor(A,f.anchor.path)&&O.isAncestor(A,f.focus.path))return[C,A]}else if(!O.equals(D,A))return[C,A]}}};function uu(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter(function(u){return Object.getOwnPropertyDescriptor(t,u).enumerable})),n.push.apply(n,s)}return n}function ou(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?uu(Object(n),!0).forEach(function(s){Ot(t,s,n[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):uu(Object(n)).forEac
261h(function(s){Object.defineProperty(t,s,Object.getOwnPropertyDescriptor(n,s))})}return t}var Tc=(t,e,n)=>{var{selection:s}=t;if(s){var u=(T,F)=>{if(!De.isText(T))return!1;var[P,q]=b.parent(t,F);return!t.isVoid(P)||t.markableVoid(P)},f=$.isExpanded(s),m=!1;if(!f){var[D,x]=b.node(t,s);if(D&&u(D,x)){var[C]=b.parent(t,x);m=C&&t.markableVoid(C)}}if(f||m)Z.setNodes(t,{[e]:n},{match:u,split:!0,voids:!0});else{var A=ou(ou({},b.marks(t)||{}),{},{[e]:n});t.marks=A,s0.get(t)||t.onChange()}}};function lu(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter(function(u){return Object.getOwnPropertyDescriptor(t,u).enumerable})),n.push.apply(n,s)}return n}function cu(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?lu(Object(n),!0).forEach(function(s){Ot(t,s,n[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):lu(Object(n)).forEach(function(s){Object.defineProperty(t,s,Object.getOwnPropertyDescriptor(n,s))})}return t}var Mc=function(e,n){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},u=b.point(e,n,{edge:"end"}),f=b.end(e,[]),m={anchor:u,focus:f},{distance:D=1}=s,x=0,C;for(var A of b.positions(e,cu(cu({},s),{},{at:m}))){if(x>D)break;x!==0&&(C=A),x++}return C};function fu(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter(function(u){return Object.getOwnPropertyDescriptor(t,u).enumerable})),n.push.apply(n,s)}return n}function hu(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?fu(Object(n),!0).forEach(function(s){Ot(t,s,n[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):fu(Object(n)).forEach(function(s){Object.defineProperty(t,s,Object.getOwnPropertyDescriptor(n,s))})}return t}var zc=function(e,n){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},u=b.start(e,[]),f=b.point(e,n,{edge:"start"}),m={anchor:u,focus:f},{distance:D=1}=s,x=0,C;for(var A of b.positions(e,hu(hu({},s),{},{at:m,reverse:!0}))){if(x>D)break;x!==0&&(C=A),x++}return C},Nc=(t,e)=>{var{selection:n}=t;n&&$.isCollapsed(n)&&Z.delete(t,{unit:e,reverse:!0})},Pc=(t,e)=>{var{selection:n}=t;n&&$.isCollapsed(n)&&Z.delete(t,{unit:e})},Rc=function(e){var{direction:n="forward"}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{selection:s}=e;s&&$.isExpanded(s)&&Z.delete(e,{reverse:n==="backward"})},Ic=(t,e)=>[b.start(t,e),b.end(t,e)];function du(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter(function(u){return Object.getOwnPropertyDescriptor(t,u).enumerable})),n.push.apply(n,s)}return n}function mu(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?du(Object(n),!0).forEach(function(s){Ot(t,s,n[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):du(Object(n)).forEach(function(s){Object.defineProperty(t,s,Object.getOwnPropertyDescriptor(n,s))})}return t}var qc=function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return b.above(e,mu(mu({},n),{},{match:s=>ye.isElement(s)&&b.isElementReadOnly(e,s)}))},Lc=(t,e)=>b.point(t,e,{edge:"end"}),jc=(t,e)=>{var n=b.path(t,e,{edge:"start"});return b.node(t,n)},Hc=(t,e)=>{var n=b.range(t,e);return ie.fragment(t,n)};function pu(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter(function(u){return Object.getOwnPropertyDescriptor(t,u).enumerable})),n.push.apply(n,s)}return n}function gu(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?pu(Object(n),!0).forEach(function(s){Ot(t,s,n[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):pu(Object(n)).forEach(function(s){Object.defineProperty(t,s,Object.getOwnPropertyDescriptor(n,s))})}return t}var Wc=function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return b.above(e,gu(gu({},n),{},{match:s=>ye.isElement(s)&&b.isVoid(e,s)}))},$c=(t,e)=>e.children.some(n=>ye.isElement(n)&&b.isBlock(t,n)),Vc=(t,e)=>e.children.some(n=>De.isText(n)||b.isInline(t,n)),Gc=(t,e)=>ie.has(t,e),Uc=(t,e)=>e.children.every(n=>De.isText(n)),Kc=t=>{Z.splitNodes(t,{always:!0})},Yc=(t,e,n)=>{Z.insertNodes(t,e,n)},Xc=t=>{Z.splitNodes(t,{always:!0})};function vu(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter(function(u){return Object.getOwnPropertyDescriptor(t,u).enumerable})),n.push.apply(n,s)}return n}function _c(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};
261e%2?vu(Object(n),!0).forEach(function(s){Ot(t,s,n[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):vu(Object(n)).forEach(function(s){Object.defineProperty(t,s,Object.getOwnPropertyDescriptor(n,s))})}return t}var Zc=function(e,n){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{selection:u,marks:f}=e;if(u){if(f){var m=_c({text:n},f);Z.insertNodes(e,m,{at:s.at,voids:s.voids})}else Z.insertText(e,n,s);e.marks=null}},Jc=(t,e)=>!t.isInline(e),Qc=(t,e,n)=>b.isStart(t,e,n)||b.isEnd(t,e,n),ef=(t,e)=>{var{children:n}=e,[s]=n;return n.length===0||n.length===1&&De.isText(s)&&s.text===""&&!t.isVoid(e)},tf=(t,e,n)=>{var s=b.end(t,n);return Pe.equals(e,s)},rf=t=>{var e=io.get(t);return e===void 0?!0:e},nf=(t,e,n)=>{if(e.offset!==0)return!1;var s=b.start(t,n);return Pe.equals(e,s)},af=(t,e)=>{var n=b.path(t,e,{edge:"end"});return b.node(t,n)},sf=function(e,n){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},u=b.path(e,n,s),f=ie.leaf(e,u);return[f,u]};function uf(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return(function*(){var{at:n=t.selection,reverse:s=!1,voids:u=!1}=e,{match:f}=e;if(f==null&&(f=()=>!0),!!n){var m=[],D=b.path(t,n);for(var[x,C]of ie.levels(t,D))if(f(x,C)&&(m.push([x,C]),!u&&ye.isElement(x)&&b.isVoid(t,x)))break;s&&m.reverse(),yield*m}})()}var of=["text"],lf=["text"],cf=function(e){var{marks:n,selection:s}=e;if(!s)return null;var{anchor:u,focus:f}=s;if(n)return n;if($.isExpanded(s)){var m=$.isBackward(s);m&&([f,u]=[u,f]);var D=b.isEnd(e,u,u.path);if(D){var x=b.after(e,u);x&&(u=x)}var[C]=b.nodes(e,{match:De.isText,at:{anchor:u,focus:f}});if(C){var[A]=C,T=gr(A,of);return T}else return{}}var{path:F}=u,[P]=b.leaf(e,F);if(u.offset===0){var q=b.previous(e,{at:F,match:De.isText}),M=b.above(e,{match:X=>ye.isElement(X)&&b.isVoid(e,X)&&e.markableVoid(X)});if(!M){var p=b.above(e,{match:X=>ye.isElement(X)&&b.isBlock(e,X)});if(q&&p){var[W,j]=q,[,V]=p;O.isAncestor(V,j)&&(P=W)}}}var U=gr(P,lf);return U},ff=function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{mode:s="lowest",voids:u=!1}=n,{match:f,at:m=e.selection}=n;if(m){var D=b.after(e,m,{voids:u});if(D){var[,x]=b.last(e,[]),C=[D.path,x];if(O.isPath(m)&&m.length===0)throw new Error("Cannot get the next node from the root node!");if(f==null)if(O.isPath(m)){var[A]=b.parent(e,m);f=F=>A.children.includes(F)}else f=()=>!0;var[T]=b.nodes(e,{at:C,match:f,mode:s,voids:u});return T}}},hf=function(e,n){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},u=b.path(e,n,s),f=ie.get(e,u);return[f,u]};function df(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return(function*(){var{at:n=t.selection,mode:s="all",universal:u=!1,reverse:f=!1,voids:m=!1,ignoreNonSelectable:D=!1}=e,{match:x}=e;if(x||(x=()=>!0),!!n){var C,A;if(_1.isSpan(n))C=n[0],A=n[1];else{var T=b.path(t,n,{edge:"start"}),F=b.path(t,n,{edge:"end"});C=f?F:T,A=f?T:F}var P=ie.nodes(t,{reverse:f,from:C,to:A,pass:U=>{var[X]=U;return ye.isElement(X)?!!(!m&&(b.isVoid(t,X)||b.isElementReadOnly(t,X))||D&&!b.isSelectable(t,X)):!1}}),q=[],M;for(var[p,W]of P)if(!(D&&ye.isElement(p)&&!b.isSelectable(t,p))){var j=M&&O.compare(W,M[1])===0;if(!(s==="highest"&&j)){if(!x(p,W)){if(u&&!j&&De.isText(p))return;continue}if(s==="lowest"&&j){M=[p,W];continue}var V=s==="lowest"?M:[p,W];V&&(u?q.push(V):yield V),M=[p,W]}}s==="lowest"&&M&&(u?q.push(M):yield M),u&&(yield*q)}})()}var mf=function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{force:s=!1,operation:u}=n,f=A=>on.get(A)||[],m=A=>ln.get(A)||new Set,D=A=>{var T=f(A).pop(),F=T.join(",");return m(A).delete(F),T};if(b.isNormalizing(e)){if(s){var x=Array.from(ie.nodes(e),A=>{var[,T]=A;return T}),C=new Set(x.map(A=>A.join(",")));on.set(e,x),ln.set(e,C)}f(e).length!==0&&b.withoutNormalizing(e,()=>{for(var A of f(e))if(ie.has(e,A)){var T=b.node(e,A),[F,P]=T;ye.isElement(F)&&F.children.length===0&&e.normalizeNode(T,{operation:u})}for(var q=f(e),M=q.length,p=0;q.length!==0;){if(!e.shouldNormalize({dirtyPaths:q,iteration:p,initialDirtyPathsLength:M,operation:u}))return;var W=D(e);if(ie.has(e,W)){var j=b.node(e,W);e.normalizeNode(j,{operation:u})}p++,q=f(e)}})}},pf=function(e,n){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},u=b.path(e,n,s),f=O.parent(u),m=b.node(e,f);return m},gf=function(e,n){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{}
261,{affinity:u="forward"}=s,f={current:n,affinity:u,unref(){var{current:D}=f,x=b.pathRefs(e);return x.delete(f),f.current=null,D}},m=b.pathRefs(e);return m.add(f),f},vf=t=>{var e=Ui.get(t);return e||(e=new Set,Ui.set(t,e)),e},bf=function(e,n){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{depth:u,edge:f}=s;if(O.isPath(n)){if(f==="start"){var[,m]=ie.first(e,n);n=m}else if(f==="end"){var[,D]=ie.last(e,n);n=D}}return $.isRange(n)&&(f==="start"?n=$.start(n):f==="end"?n=$.end(n):n=O.common(n.anchor.path,n.focus.path)),Pe.isPoint(n)&&(n=n.path),u!=null&&(n=n.slice(0,u)),n},Df=function(e,n){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{affinity:u="forward"}=s,f={current:n,affinity:u,unref(){var{current:D}=f,x=b.pointRefs(e);return x.delete(f),f.current=null,D}},m=b.pointRefs(e);return m.add(f),f},yf=t=>{var e=Ki.get(t);return e||(e=new Set,Ki.set(t,e)),e},wf=function(e,n){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{edge:u="start"}=s;if(O.isPath(n)){var f;if(u==="end"){var[,m]=ie.last(e,n);f=m}else{var[,D]=ie.first(e,n);f=D}var x=ie.get(e,f);if(!De.isText(x))throw new Error("Cannot get the ".concat(u," point in the node at path [").concat(n,"] because it has no ").concat(u," text node."));return{path:f,offset:u==="end"?x.text.length:0}}if($.isRange(n)){var[C,A]=$.edges(n);return u==="start"?C:A}return n};function Cf(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return(function*(){var{at:n=t.selection,unit:s="offset",reverse:u=!1,voids:f=!1,ignoreNonSelectable:m=!1}=e;if(!n)return;var D=b.range(t,n),[x,C]=$.edges(D),A=u?C:x,T=!1,F="",P=0,q=0,M=0;for(var[p,W]of b.nodes(t,{at:n,reverse:u,voids:f,ignoreNonSelectable:m})){if(ye.isElement(p)){if(!f&&(t.isVoid(p)||t.isElementReadOnly(p))){yield b.start(t,W);continue}if(t.isInline(p))continue;if(b.hasInlines(t,p)){var j=O.isAncestor(W,C.path)?C:b.end(t,W),V=O.isAncestor(W,x.path)?x:b.start(t,W);F=b.string(t,{anchor:V,focus:j},{voids:f}),T=!0}}if(De.isText(p)){var U=O.equals(W,A.path);for(U?(q=u?A.offset:p.text.length-A.offset,M=A.offset):(q=p.text.length,M=u?q:0),(U||T||s==="offset")&&(yield{path:W,offset:M},T=!1);;){if(P===0){if(F==="")break;P=X(F,s,u),F=$a(F,P,u)[1]}if(M=u?M-P:M+P,q=q-P,q<0){P=-q;break}P=0,yield{path:W,offset:M}}}}function X(ce,oe,he){return oe==="character"?Wa(ce,he):oe==="word"?rc(ce,he):oe==="line"||oe==="block"?ce.length:1}})()}var xf=function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{mode:s="lowest",voids:u=!1}=n,{match:f,at:m=e.selection}=n;if(m){var D=b.before(e,m,{voids:u});if(D){var[,x]=b.first(e,[]),C=[D.path,x];if(O.isPath(m)&&m.length===0)throw new Error("Cannot get the previous node from the root node!");if(f==null)if(O.isPath(m)){var[A]=b.parent(e,m);f=F=>A.children.includes(F)}else f=()=>!0;var[T]=b.nodes(e,{reverse:!0,at:C,match:f,mode:s,voids:u});return T}}},Bf=function(e,n){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{affinity:u="forward"}=s,f={current:n,affinity:u,unref(){var{current:D}=f,x=b.rangeRefs(e);return x.delete(f),f.current=null,D}},m=b.rangeRefs(e);return m.add(f),f},Af=t=>{var e=Yi.get(t);return e||(e=new Set,Yi.set(t,e)),e},Ef=(t,e,n)=>{if($.isRange(e)&&!n)return e;var s=b.start(t,e),u=b.end(t,n||e);return{anchor:s,focus:u}};function bu(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter(function(u){return Object.getOwnPropertyDescriptor(t,u).enumerable})),n.push.apply(n,s)}return n}function Sf(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?bu(Object(n),!0).forEach(function(s){Ot(t,s,n[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):bu(Object(n)).forEach(function(s){Object.defineProperty(t,s,Object.getOwnPropertyDescriptor(n,s))})}return t}var Ff=(t,e)=>{var{selection:n}=t;if(n){var s=(A,T)=>{if(!De.isText(A))return!1;var[F,P]=b.parent(t,T);return!t.isVoid(F)||t.markableVoid(F)},u=$.isExpanded(n),f=!1;if(!u){var[m,D]=b.node(t,n);if(m&&s(m,D)){var[x]=b.parent(t,D);f=x&&t.markableVoid(x)}}if(u||f)Z.unsetNodes(t,e,{match:s,split:!0,voids:!0});else{var C=Sf({},b.marks(t)||{});delete C[e],t.marks=C,s0.get(t)||t.onChange()}}},kf=(t,e)=>{io.set(t,e)},Of=(t,e)=>b.point(t,e,{edge:"start"}),Tf=function(e,n){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{voids:u=!1}=s,f=b.range(e,n),[m,D]=$.edges(f),x="";for(var[C,A]of b.nodes(e,{at:f,match:De.isText,voids:u})){var T=C.text;O.equals(A,D.path)&&(T=T.slice(0,D.offset)),O.equals(A,m.path)&&(T=T.slice(m.offset)),x+=T}return x},Mf=function(e,n){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{voids:u=!1}=s,[f,m]=$.edges(n);if(f.offset!==0||m.offset!==0||$.isCollapsed(n)||O.hasPrevious(m.path))return n;var D=b.above(e,{at:m,match:q=>ye.isElement(q)&&b.isBlock(e,q),voids:u}),x=D?D[1]:[],C=b.start(e,f),A={anchor:C,focus:m},T=!0;for(var[F,P]of b.nodes(e,{at:A,match:De.isText,reverse:!0,voids:u})){if(T){T=!1;continue}if(F.text!==""||O.isBefore(P,x)){m={path:P,offset:F.text.length};break}}return{anchor:f,focus:m}},zf=(t,e)=>{var n=b.isNormalizing(t);b.setNormalizing(t,!1);try{e()}finally{b.setNormalizing(t,n)}b.normalize(t)},Nf=(t,e,n)=>{var[s,u]=e;return ye.isElement(s)&&b.isEmpty(t,s)||De.isText(s)&&s.text===""&&u[u.length-1]!==0},Pf=function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};b.withoutNormalizing(e,()=>{var s,u,{reverse:f=!1,unit:m="character",distance:D=1,voids:x=!1}=n,{at:C=e.selection,hanging:A=!1}=n;if(C){var T=!1;
261if($.isRange(C)&&$.isCollapsed(C)&&(T=!0,C=C.anchor),Pe.isPoint(C)){var F=b.void(e,{at:C,mode:"highest"});if(!x&&F){var[,P]=F;C=P}else{var q={unit:m,distance:D},M=f?b.before(e,C,q)||b.start(e,[]):b.after(e,C,q)||b.end(e,[]);C={anchor:C,focus:M},A=!0}}if(O.isPath(C)){Z.removeNodes(e,{at:C,voids:x});return}if(!$.isCollapsed(C)){if(!A){var[,p]=$.edges(C),W=b.end(e,[]);Pe.equals(p,W)||(C=b.unhangRange(e,C,{voids:x}))}var[j,V]=$.edges(C),U=b.above(e,{match:Ee=>ye.isElement(Ee)&&b.isBlock(e,Ee),at:j,voids:x}),X=b.above(e,{match:Ee=>ye.isElement(Ee)&&b.isBlock(e,Ee),at:V,voids:x}),ce=U&&X&&!O.equals(U[1],X[1]),oe=O.equals(j.path,V.path),he=x?null:(s=b.void(e,{at:j,mode:"highest"}))!==null&&s!==void 0?s:b.elementReadOnly(e,{at:j,mode:"highest"}),ge=x?null:(u=b.void(e,{at:V,mode:"highest"}))!==null&&u!==void 0?u:b.elementReadOnly(e,{at:V,mode:"highest"});if(he){var ne=b.before(e,j);ne&&U&&O.isAncestor(U[1],ne.path)&&(j=ne)}if(ge){var ue=b.after(e,V);ue&&X&&O.isAncestor(X[1],ue.path)&&(V=ue)}var G=[],K;for(var ee of b.nodes(e,{at:C,voids:x})){var[te,Me]=ee;K&&O.compare(Me,K)===0||(!x&&ye.isElement(te)&&(b.isVoid(e,te)||b.isElementReadOnly(e,te))||!O.isCommon(Me,j.path)&&!O.isCommon(Me,V.path))&&(G.push(ee),K=Me)}var be=Array.from(G,Ee=>{var[,Ze]=Ee;return b.pathRef(e,Ze)}),He=b.pointRef(e,j),ze=b.pointRef(e,V),ae="";if(!oe&&!he){var We=He.current,[Ve]=b.leaf(e,We),{path:ke}=We,{offset:pt}=j,Be=Ve.text.slice(pt);Be.length>0&&(e.apply({type:"remove_text",path:ke,offset:pt,text:Be}),ae=Be)}if(be.reverse().map(Ee=>Ee.unref()).filter(Ee=>Ee!==null).forEach(Ee=>Z.removeNodes(e,{at:Ee,voids:x})),!ge){var R=ze.current,[de]=b.leaf(e,R),{path:Q}=R,se=oe?j.offset:0,Oe=de.text.slice(se,V.offset);Oe.length>0&&(e.apply({type:"remove_text",path:Q,offset:se,text:Oe}),ae=Oe)}!oe&&ce&&ze.current&&He.current&&Z.mergeNodes(e,{at:ze.current,hanging:!0,voids:x}),T&&f&&m==="character"&&ae.length>1&&ae.match(/[\u0E00-\u0E7F]+/)&&Z.insertText(e,ae.slice(0,ae.length-D));var Ce=He.unref(),Xe=ze.unref(),Ge=f?Ce||Xe:Xe||Ce;n.at==null&&Ge&&Z.select(e,Ge)}}})},Rf=function(e,n){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};b.withoutNormalizing(e,()=>{var{hanging:u=!1,voids:f=!1}=s,{at:m=Ha(e),batchDirty:D=!0}=s;if(n.length){if($.isRange(m))if(u||(m=b.unhangRange(e,m,{voids:f})),$.isCollapsed(m))m=m.anchor;else{var[,x]=$.edges(m);if(!f&&b.void(e,{at:x}))return;var C=b.pointRef(e,x);Z.delete(e,{at:m}),m=C.unref()}else O.isPath(m)&&(m=b.start(e,m));if(!(!f&&b.void(e,{at:m}))){var A=b.above(e,{at:m,match:Be=>ye.isElement(Be)&&b.isInline(e,Be),mode:"highest",voids:f});if(A){var[,T]=A;if(b.isEnd(e,m,T)){var F=b.after(e,T);m=F}else if(b.isStart(e,m,T)){var P=b.before(e,T);m=P}}var q=b.above(e,{match:Be=>ye.isElement(Be)&&b.isBlock(e,Be),at:m,voids:f}),[,M]=q,p=b.isStart(e,m,M),W=b.isEnd(e,m,M),j=p&&W,V=!p||p&&W,U=!W,[,X]=ie.first({children:n},[]),[,ce]=ie.last({children:n},[]),oe=[],he=Be=>{var[R,de]=Be,Q=de.length===0;return Q?!1:j?!0:!(V&&O.isAncestor(de,X)&&ye.isElement(R)&&!e.isVoid(R)&&!e.isInline(R)||U&&O.isAncestor(de,ce)&&ye.isElement(R)&&!e.isVoid(R)&&!e.isInline(R))};for(var ge of ie.nodes({children:n},{pass:he}))he(ge)&&oe.push(ge);var ne=[],ue=[],G=[],K=!0,ee=!1;for(var[te]of oe)ye.isElement(te)&&!e.isInline(te)?(K=!1,ee=!0,ue.push(te)):K?ne.push(te):G.push(te);var[Me]=b.nodes(e,{at:m,match:Be=>De.isText(Be)||b.isInline(e,Be),mode:"highest",voids:f}),[,be]=Me,He=b.isStart(e,m,be),ze=b.isEnd(e,m,be),ae=b.pathRef(e,W&&!G.length?O.next(M):M),We=b.pathRef(e,ze?O.next(be):be);Z.splitNodes(e,{at:m,match:Be=>ee?ye.isElement(Be)&&b.isBlock(e,Be):De.isText(Be)||b.isInline(e,Be),mode:ee?"lowest":"highest",always:ee&&(!p||ne.length>0)&&(!W||G.length>0),voids:f});var Ve=b.pathRef(e,!He||He&&ze?O.next(be):be);if(Z.insertNodes(e,ne,{at:Ve.current,match:Be=>De.isText(Be)||b.isInline(e,Be),mode:"highest",voids:f,batchDirty:D}),j&&!ne.length&&ue.length&&!G.length&&Z.delete(e,{at:M,voids:f}),Z.insertNodes(e,ue,{at:ae.current,match:Be=>ye.isElement(Be)&&b.isBlock(e,Be),mode:"lowest",voids:f,batchDirty:D}),Z.insertNodes(e,G,{at:We.current,match:Be=>De.isText(Be)||b.isInline(e,Be),mode:"highest",voids:f,batchDirty:D}),!s.at){var ke;if(G.length>0&&We.current?ke=O.previous(We.current):ue.length>0&&ae.current?ke=O.previous(ae.current):Ve.current&&(ke=O.previous(Ve.current)),ke){var pt=b.end(e,ke);Z.select(e,pt)}}Ve.unref(),ae.unref(),We.unref()}}})},If=function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{edge:s="anchor"}=n,{selection:u}=e;if(u){if(s==="anchor")Z.select(e,u.anchor);else if(s==="focus")Z.select(e,u.focus);else if(s==="start"){var[f]=$.edges(u);Z.select(e,f)}else if(s==="end"){var[,m]=$.edges(u);Z.select(e,m)}}else return},qf=t=>{var{selection:e}=t;e&&t.apply({type:"set_selection",properties:e,newProperties:null})},Lf=function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{selection:s}=e,{distance:u=1,unit:f="character",reverse:m=!1}=n,{edge:D=null}=n;if(s){D==="start"&&(D=$.isBackward(s)?"focus":"anchor"),D==="end"&&(D=$.isBackward(s)?"anchor":"focus");
261var{anchor:x,focus:C}=s,A={distance:u,unit:f,ignoreNonSelectable:!0},T={};if(D==null||D==="anchor"){var F=m?b.before(e,x,A):b.after(e,x,A);F&&(T.anchor=F)}if(D==null||D==="focus"){var P=m?b.before(e,C,A):b.after(e,C,A);P&&(T.focus=P)}Z.setSelection(e,T)}},jf=(t,e)=>{var{selection:n}=t;if(e=b.range(t,e),n){Z.setSelection(t,e);return}if(!$.isRange(e))throw new Error("When setting the selection and the current selection is `null` you must provide at least an `anchor` and `focus`, but you passed: ".concat(wt.stringify(e)));t.apply({type:"set_selection",properties:n,newProperties:e})};function Du(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter(function(u){return Object.getOwnPropertyDescriptor(t,u).enumerable})),n.push.apply(n,s)}return n}function yu(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Du(Object(n),!0).forEach(function(s){Ot(t,s,n[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Du(Object(n)).forEach(function(s){Object.defineProperty(t,s,Object.getOwnPropertyDescriptor(n,s))})}return t}var Hf=function(e,n){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{selection:u}=e,{edge:f="both"}=s;if(u){f==="start"&&(f=$.isBackward(u)?"focus":"anchor"),f==="end"&&(f=$.isBackward(u)?"anchor":"focus");
261var{anchor:m,focus:D}=u,x=f==="anchor"?m:D;Z.setSelection(e,{[f==="anchor"?"anchor":"focus"]:yu(yu({},x),n)})}},Wf=(t,e)=>{var{selection:n}=t,s={},u={};if(n){for(var f in e)(f==="anchor"&&e.anchor!=null&&!Pe.equals(e.anchor,n.anchor)||f==="focus"&&e.focus!=null&&!Pe.equals(e.focus,n.focus)||f!=="anchor"&&f!=="focus"&&e[f]!==n[f])&&(s[f]=n[f],u[f]=e[f]);Object.keys(s).length>0&&t.apply({type:"set_selection",properties:s,newProperties:u})}},$f=function(e,n){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};b.withoutNormalizing(e,()=>{var{hanging:u=!1,voids:f=!1,mode:m="lowest",batchDirty:D=!0}=s,{at:x,match:C,select:A}=s;if(ie.isNode(n)&&(n=[n]),n.length!==0){var[T]=n;if(x||(x=Ha(e),A!==!1&&(A=!0)),A==null&&(A=!1),$.isRange(x))if(u||(x=b.unhangRange(e,x,{voids:f})),$.isCollapsed(x))x=x.anchor;else{var[,F]=$.edges(x),P=b.pointRef(e,F);Z.delete(e,{at:x}),x=P.unref()}if(Pe.isPoint(x)){C==null&&(De.isText(T)?C=ne=>De.isText(ne):e.isInline(T)?C=ne=>De.isText(ne)||b.isInline(e,ne):C=ne=>ye.isElement(ne)&&b.isBlock(e,ne));var[q]=b.nodes(e,{at:x.path,match:C,mode:m,voids:f});if(q){var[,M]=q,p=b.pathRef(e,M),W=b.isEnd(e,x,M);Z.splitNodes(e,{at:x,match:C,mode:m,voids:f});var j=p.unref();x=W?O.next(j):j}else return}var V=O.parent(x),U=x[x.length-1];if(!(!f&&b.void(e,{at:V}))){if(D){var X=[],ce=O.levels(V);Bc(e,()=>{var ne=function(){var K=V.concat(U);U++;var ee={type:"insert_node",path:K,node:ue};e.apply(ee),x=O.next(x),X.push(ee),De.isText?ce.push(...Array.from(ie.nodes(ue),te=>{var[,Me]=te;return K.concat(Me)})):ce.push(K)};for(var ue of n)ne()},()=>{oo(e,ce,ne=>{var ue=ne;for(var G of X)if(O.operationCanTransformPath(G)&&(ue=O.transform(ue,G),!ue))return null;return ue})})}else for(var oe of n){var he=V.concat(U);U++,e.apply({type:"insert_node",path:he,node:oe}),x=O.next(x)}if(x=O.previous(x),A){var ge=b.end(e,x);ge&&Z.select(e,ge)}}}})},Vf=function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};b.withoutNormalizing(e,()=>{var{at:s=e.selection,mode:u="lowest",voids:f=!1}=n,{match:m}=n;if(m==null&&(m=O.isPath(s)?_r(e,s):U=>ye.isElement(U)&&b.isBlock(e,U)),!!s){var D=b.nodes(e,{at:s,match:m,mode:u,voids:f}),x=Array.from(D,U=>{var[,X]=U;return b.pathRef(e,X)});for(var C of x){var A=C.unref();if(A.length<2)throw new Error("Cannot lift node at a path [".concat(A,"] because it has a depth of less than `2`."));var T=b.node(e,O.parent(A)),[F,P]=T,q=A[A.length-1],{length:M}=F.children;if(M===1){var p=O.next(P);Z.moveNodes(e,{at:A,to:p,voids:f}),Z.removeNodes(e,{at:P,voids:f})}else if(q===0)Z.moveNodes(e,{at:A,to:P,voids:f});else if(q===M-1){var W=O.next(P);Z.moveNodes(e,{at:A,to:W,voids:f})}else{var j=O.next(A),V=O.next(P);Z.splitNodes(e,{at:j,voids:f}),Z.moveNodes(e,{at:A,to:V,voids:f})}}}})},Gf=["text"],Uf=["children"],lo=(t,e)=>{if(ye.isElement(e)){var n=e;return b.isVoid(t,e)?!0:n.children.length===1?lo(t,n.children[0]):!1}else return!b.isEditor(e)},Kf=function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};b.withoutNormalizing(e,()=>{var{match:s,at:u=e.selection}=n,{hanging:f=!1,voids:m=!1,mode:D="lowest"}=n;if(u){if(s==null)if(O.isPath(u)){var[x]=b.parent(e,u);s=ne=>x.children.includes(ne)}else s=ne=>ye.isElement(ne)&&b.isBlock(e,ne);if(!f&&$.isRange(u)&&(u=b.unhangRange(e,u,{voids:m})),$.isRange(u))if($.isCollapsed(u))u=u.anchor;else{var[,C]=$.edges(u),A=b.pointRef(e,C);Z.delete(e,{at:u}),u=A.unref(),n.at==null&&Z.select(e,u)}var[T]=b.nodes(e,{at:u,match:s,voids:m,mode:D}),F=b.previous(e,{at:u,match:s,voids:m,mode:D});if(!(!T||!F)){var[P,q]=T,[M,p]=F;if(!(q.length===0||p.length===0)){var W=O.next(p),j=O.common(q,p),V=O.isSibling(q,p),U=Array.from(b.levels(e,{at:q}),ne=>{var[ue]=ne;return ue}).slice(j.length).slice(0,-1),X=b.above(e,{at:q,mode:"highest",match:ne=>U.includes(ne)&&lo(e,ne)}),ce=X&&b.pathRef(e,X[1]),oe,he;if(De.isText(P)&&De.isText(M)){var ge=gr(P,Gf);he=M.text.length,oe=ge}else if(ye.isElement(P)&&ye.isElement(M)){var ge=gr(P,Uf);he=M.children.length,oe=ge}else throw new Error("Cannot merge the node at path [".concat(q,"] with the previous sibling because it is not the same kind: ").concat(wt.stringify(P)," ").concat(wt.stringify(M)));V||Z.moveNodes(e,{at:q,to:W,voids:m}),ce&&Z.removeNodes(e,{at:ce.current,voids:m}),b.shouldMergeNodesRemovePrevNode(e,F,T)?Z.removeNodes(e,{at:p,voids:m}):e.apply({type:"merge_node",path:W,position:he,properties:oe}),ce&&ce.unref()}}}})},Yf=(t,e)=>{b.withoutNormalizing(t,()=>{var{to:n,at:s=t.selection,mode:u="lowest",voids:f=!1}=e,{match:m}=e;if(s){m==null&&(m=O.isPath(s)?_r(t,s):P=>ye.isElement(P)&&b.isBlock(t,P));var D=b.pathRef(t,n),x=b.nodes(t,{at:s,match:m,mode:u,voids:f}),C=Array.from(x,P=>{var[,q]=P;return b.pathRef(t,q)});for(var A of C){var T=A.unref(),F=D.current;T.length!==0&&t.apply({type:"move_node",path:T,newPath:F}),D.current&&O.isSibling(F,T)&&O.isAfter(F,T)&&(D.current=O.next(D.current))}D.unref()}})},Xf=function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};b.withoutNormalizing(e,()=>{var{hanging:s=!1,voids:u=!1,mode:f="lowest"}=n,{at:m=e.selection,match:D}=n;if(m){D==null&&(D=O.isPath(m)?_r(e,m):P=>ye.isElement(P)&&b.isBlock(e,P)),!s&&$.isRange(m)&&(m=b.unhangRange(e,m,{voids:u}));var x=b.nodes(e,{at:m,match:D,mode:f,voids:u}),C=Array.from(x,P=>{var[,q]=P;return b.pathRef(e,q)});for(var A of C){var T=A.unref();if(T){var[F]=b.node(e,T);e.apply({type:"remove_node",path:T,node:F})}}}})},_f=function(e,n){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};b.withoutNormalizing(e,()=>{var{match:u,at:f=e.selection,compare:m,merge:D}=s,{hanging:x=!1,mode:C="lowest",split:A=!1,voids:T=!1}=s;if(f){if(u==null&&(u=O.isPath(f)?_r(e,f):he=>ye.isElement(he)&&b.isBlock(e,he)),!x&&$.isRange(f)&&(f=b.unhangRange(e,f,{voids:T})),A&&$.isRange(f)){if($.isCollapsed(f)&&b.leaf(e,f.anchor)[0].text.length>0)return;var F=b.rangeRef(e,f,{affinity:"inward"}),[P,q]=$.edges(f),M=C==="lowest"?"lowest":"highest",p=b.isEnd(e,q,q.path);Z.splitNodes(e,{at:q,match:u,mode:M,voids:T,always:!p});var W=b.isStart(e,P,P.path);Z.splitNodes(e,{at:P,match:u,mode:M,voids:T,always:!W}),f=F.unref(),s.at==null&&Z.select(e,f)}m||(m=(he,ge)=>he!==ge);for(var[j,V]of b.nodes(e,{at:f,match:u,mode:C,voids:T})){var U={},X={};if(V.length!==0){var ce=!1;for(var oe in n)oe==="children"||oe==="text"||m(n[oe],j[oe])&&(ce=!0,j.hasOwnProperty(oe)&&(U[oe]=j[oe]),D?n[oe]!=null&&(X[oe]=D(j[oe],n[oe])):n[oe]!=null&&(X[oe]=n[oe]));ce&&e.apply({type:"set_node",path:V,properties:U,newProperties:X})}}}})},Zf=(t,e)=>{if($.isCollapsed(e))return e.anchor;var[,n]=$.edges(e),s=b.pointRef(t,n);return Z.delete(t,{at:e}),s.unref()},Jf=function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};b.withoutNormalizing(e,()=>{var{mode:s="lowest",voids:u=!1}=n,{match:f,at:m=e.selection,height:D=0,always:x=!1}=n;if(f==null&&(f=ze=>ye.isElement(ze)&&b.isBlock(e,ze)),$.isRange(m)&&(m=Zf(e,m)),O.isPath(m)){var C=m,A=b.point(e,C),[T]=b.parent(e,C);f=ze=>ze===T,D=A.path.length-C.length+1,m=A,x=!0}if(m){var F=b.pointRef(e,m,{affinity:"backward"}),P;try{var[q]=b.nodes(e,{at:m,match:f,mode:s,voids:u});if(!q)return;var M=b.void(e,{at:m,mode:"highest"}),p=0;if(!u&&M){var[W,j]=M;if(ye.isElement(W)&&e.isInline(W)){var V=b.after(e,j);if(!V){var U={text:""},X=O.next(j);Z.insertNodes(e,U,{at:X,voids:u}),V=b.point(e,X)}m=V,x=!0}var ce=m.path.length-j.length;D=ce+1,x=!0}P=b.pointRef(e,m);var oe=m.path.length-D,[,he]=q,ge=m.path.slice(0,oe),ne=D===0?m.offset:m.path[oe]+p;for(var[ue,G]of b.levels(e,{at:ge,reverse:!0,voids:u})){var K=!1;if(G.length<he.length||G.length===0||!u&&ye.isElement(ue)&&b.isVoid(e,ue))break;var ee=F.current,te=b.isEnd(e,ee,G);if(x||!F||!b.isEdge(e,ee,G)){K=!0;var Me=ie.extractProps(ue);e.apply({type:"split_node",path:G,position:ne,properties:Me})}ne=G[G.length-1]+(K||te?1:0)}if(n.at==null){var be=P.current||b.end(e,[]);Z.select(e,be)}}finally{var He;F.unref(),(He=P)===null||He===void 0||He.unref()}}})},Qf=function(e,n){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Array.isArray(n)||(n=[n]);var u={};for(var f of n)u[f]=null;Z.setNodes(e,u,s)},e4=function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};b.withoutNormalizing(e,()=>{var{mode:s="lowest",split:u=!1,voids:f=!1}=n,{at:m=e.selection,match:D}=n;if(m){D==null&&(D=O.isPath(m)?_r(e,m):P=>ye.isElement(P)&&b.isBlock(e,P)),O.isPath(m)&&(m=b.range(e,m));var x=$.isRange(m)?b.rangeRef(e,m):null,C=b.nodes(e,{at:m,match:D,mode:s,voids:f}),A=Array.from(C,P=>{var[,q]=P;return b.pathRef(e,q)}).reverse(),T=function(){var q=F.unref(),[M]=b.node(e,q),p=b.range(e,q);u&&x&&(p=$.intersection(x.current,p)),Z.liftNodes(e,{at:p,match:W=>ye.isAncestor(M)&&M.children.includes(W),voids:f})};for(var F of A)T();x&&x.unref()}})};function wu(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter(function(u){return Object.getOwnPropertyDescriptor(t,u).enumerable})),n.push.apply(n,s)}return n}function Cu(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};
261e%2?wu(Object(n),!0).forEach(function(s){Ot(t,s,n[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):wu(Object(n)).forEach(function(s){Object.defineProperty(t,s,Object.getOwnPropertyDescriptor(n,s))})}return t}var t4=function(e,n){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};b.withoutNormalizing(e,()=>{var{mode:u="lowest",split:f=!1,voids:m=!1}=s,{match:D,at:x=e.selection}=s;if(x){if(D==null&&(O.isPath(x)?D=_r(e,x):e.isInline(n)?D=p=>ye.isElement(p)&&b.isInline(e,p)||De.isText(p):D=p=>ye.isElement(p)&&b.isBlock(e,p)),f&&$.isRange(x)){var[C,A]=$.edges(x),T=b.rangeRef(e,x,{affinity:"inward"});Z.splitNodes(e,{at:A,match:D,voids:m}),Z.splitNodes(e,{at:C,match:D,voids:m}),x=T.unref(),s.at==null&&Z.select(e,x)}var F=Array.from(b.nodes(e,{at:x,match:e.isInline(n)?p=>ye.isElement(p)&&b.isBlock(e,p):p=>b.isEditor(p),mode:"lowest",voids:m})),P=function(){var W=$.isRange(x)?$.intersection(x,b.range(e,M)):x;if(!W)return 0;var j=Array.from(b.nodes(e,{at:W,match:D,mode:u,voids:m}));if(j.length>0){var[V]=j,U=j[j.length-1],[,X]=V,[,ce]=U;if(X.length===0&&ce.length===0)return 0;var oe=O.equals(X,ce)?O.parent(X):O.common(X,ce),he=b.range(e,X,ce),ge=b.node(e,oe),[ne]=ge,ue=oe.length+1,G=O.next(ce.slice(0,ue)),K=Cu(Cu({},n),{},{children:[]});Z.insertNodes(e,K,{at:G,voids:m}),Z.moveNodes(e,{at:he,match:ee=>ye.isAncestor(ne)&&ne.children.includes(ee),to:G.concat(0),voids:m})}},q;for(var[,M]of F)q=P()}})},yd=()=>{var t={children:[],operations:[],selection:null,marks:null,isElementReadOnly:()=>!1,isInline:()=>!1,isSelectable:()=>!0,isVoid:()=>!1,markableVoid:()=>!1,onChange:()=>{},apply:function(){for(var n=arguments.length,s=new Array(n),u=0;u<n;u++)s[u]=arguments[u];return Ac(t,...s)},addMark:function(){for(var n=arguments.length,s=new Array(n),u=0;u<n;u++)s[u]=arguments[u];return Tc(t,...s)},deleteBackward:function(){for(var n=arguments.length,s=new Array(n),u=0;u<n;u++)s[u]=arguments[u];return Nc(t,...s)},deleteForward:function(){for(var n=arguments.length,s=new Array(n),u=0;u<n;u++)s[u]=arguments[u];return Pc(t,...s)},deleteFragment:function(){for(var n=arguments.length,s=new Array(n),u=0;u<n;u++)s[u]=arguments[u];return Rc(t,...s)},getFragment:function(){for(var n=arguments.length,s=new Array(n),u=0;u<n;u++)s[u]=arguments[u];return Sc(t,...s)},insertBreak:function(){for(var n=arguments.length,s=new Array(n),u=0;u<n;u++)s[u]=arguments[u];return Kc(t,...s)},insertSoftBreak:function(){for(var n=arguments.length,s=new Array(n),u=0;u<n;u++)s[u]=arguments[u];return Xc(t,...s)},insertFragment:function(){for(var n=arguments.length,s=new Array(n),u=0;u<n;u++)s[u]=arguments[u];return Rf(t,...s)},insertNode:function(){for(var n=arguments.length,s=new Array(n),u=0;u<n;u++)s[u]=arguments[u];return Yc(t,...s)},insertText:function(){for(var n=arguments.length,s=new Array(n),u=0;u<n;u++)s[u]=arguments[u];return Zc(t,...s)},normalizeNode:function(){for(var n=arguments.length,s=new Array(n),u=0;u<n;u++)s[u]=arguments[u];return Fc(t,...s)},removeMark:function(){for(var n=arguments.length,s=new Array(n),u=0;u<n;u++)s[u]=arguments[u];return Ff(t,...s)},getDirtyPaths:function(){for(var n=arguments.length,s=new Array(n),u=0;u<n;u++)s[u]=arguments[u];return Ec(t,...s)},shouldNormalize:function(){for(var n=arguments.length,s=new Array(n),u=0;u<n;u++)s[u]=arguments[u];return kc(t,...s)},above:function(){for(var n=arguments.length,s=new Array(n),u=0;u<n;u++)s[u]=arguments[u];return Oc(t,...s)},after:function(){for(var n=arguments.length,s=new Array(n),u=0;u<n;u++)s[u]=arguments[u];return Mc(t,...s)},before:function(){for(var n=arguments.length,s=new Array(n),u=0;u<n;u++)s[u]=arguments[u];return zc(t,...s)},collapse:function(){for(var n=arguments.length,s=new Array(n),u=0;u<n;u++)s[u]=arguments[u];return If(t,...s)},delete:function(){for(var n=arguments.length,s=new Array(n),u=0;u<n;u++)s[u]=arguments[u];return Pf(t,...s)},deselect:function(){for(var n=arguments.length,s=new Array(n),u=0;u<n;u++)s[u]=arguments[u];return qf(t,...s)},edges:function(){for(var n=arguments.length,s=new Array(n),u=0;u<n;u++)s[u]=arguments[u];return Ic(t,...s)},elementReadOnly:function(){for(var n=arguments.length,s=new Array(n),u=0;u<n;u++)s[u]=arguments[u];return qc(t,...s)},end:function(){for(var n=arguments.length,s=new Array(n),u=0;u<n;u++)s[u]=arguments[u];return Lc(t,...s)},first:function(){for(var n=arguments.length,s=new Array(n),u=0;u<n;u++)s[u]=arguments[u];return jc(t,...s)},fragment:function(){for(var n=arguments.length,s=new Array(n),u=0;u<n;u++)s[u]=arguments[u];return Hc(t,...s)},getMarks:function(){for(var n=arguments.length,s=new Array(n),u=0;u<n;u++)s[u]=arguments[u];return cf(t,...s)},hasBlocks:function(){for(var n=arguments.length,s=new Array(n),u=0;u<n;u++)s[u]=arguments[u];return $c(t,...s)},hasInlines:function(){for(var n=arguments.length,s=new Array(n),u=0;u<n;u++)s[u]=arguments[u];return Vc(t,...s)},hasPath:function(){for(var n=arguments.length,s=new Array(n),u=0;u<n;u++)s[u]=arguments[u];return Gc(t,...s)},hasTexts:function(){for(var n=arguments.length,s=new Array(n),u=0;u<n;u++)s[u]=arguments[u];return Uc(t,...s)},insertNodes:function(){for(var n=arguments.length,s=new Array(n),u=0;u<n;u++)s[u]=arguments[u];return $f(t,...s)},isBlock:function(){for(var n=arguments.length,s=new Array(n),u=0;u<n;u++)s[u]=arguments[u];return Jc(t,...s)},isEdge:function(){for(var n=arguments.length,s=new Array(n),u=0;u<n;u++)s[u]=arguments[u];return Qc(t,...s)},isEmpty:function(){for(var n=arguments.length,s=new Array(n),u=0;u<n;u++)s[u]=arguments[u];return ef(t,...s)},isEnd:function(){for(var n=arguments.length,s=new Array(n),u=0;u<n;u++)s[u]=arguments[u];return tf(t,...s)},isNormalizing:function(){for(var n=arguments.length,s=new Array(n),u=0;u<n;u++)s[u]=arguments[u];return rf(t,...s)},isStart:function(){for(var n=arguments.length,s=new Array(n),u=0;u<n;u++)s[u]=arguments[u];return nf(t,...s)},last:function(){for(var n=arguments.length,s=new Array(n),u=0;u<n;u++)s[u]=arguments[u];return af(t,...s)},leaf:function(){for(var n=arguments.length,s=new Array(n),u=0;u<n;u++)s[u]=arguments[u];return sf(t,...s)},levels:function(){for(var n=arguments.length,s=new Array(n),u=0;u<n;u++)s[u]=arguments[u];return uf(t,...s)},liftNodes:function(){for(var n=arguments.length,s=new Array(n),u=0;u<n;u++)s[u]=arguments[u];return Vf(t,...s)},mergeNodes:function(){for(var n=arguments.length,s=new Array(n),u=0;u<n;u++)s[u]=arguments[u];return Kf(t,...s)},move:function(){for(var n=arguments.length,s=new Array(n),u=0;u<n;u++)s[u]=arguments[u];return Lf(t,...s)},moveNodes:function(){for(var n=arguments.length,s=new Array(n),u=0;u<n;u++)s[u]=arguments[u];return Yf(t,...s)},next:function(){for(var n=arguments.length,s=new Array(n),u=0;u<n;u++)s[u]=arguments[u];return ff(t,...s)},node:function(){for(var n=arguments.length,s=new Array(n),u=0;u<n;u++)s[u]=arguments[u];return hf(t,...s)},nodes:function(){for(var n=arguments.length,s=new Array(n),u=0;u<n;u++)s[u]=arguments[u];return df(t,...s)},normalize:function(){for(var n=arguments.length,s=new Array(n),u=0;u<n;u++)s[u]=arguments[u];return mf(t,...s)},parent:function(){for(var n=arguments.length,s=new Array(n),u=0;u<n;u++)s[u]=arguments[u];return pf(t,...s)},path:function(){for(var n=arguments.length,s=new Array(n),u=0;u<n;u++)s[u]=arguments[u];return bf(t,...s)},pathRef:function(){for(var n=arguments.length,s=new Array(n),u=0;u<n;u++)s[u]=arguments[u];return gf(t,...s)},pathRefs:function(){for(var n=arguments.length,s=new Array(n),u=0;u<n;u++)s[u]=arguments[u];return vf(t,...s)},point:function(){for(var n=arguments.length,s=new Array(n),u=0;u<n;u++)s[u]=arguments[u];return wf(t,...s)},pointRef:function(){for(var n=arguments.length,s=new Array(n),u=0;u<n;u++)s[u]=arguments[u];return Df(t,...s)},pointRefs:function(){for(var n=arguments.length,s=new Array(n),u=0;u<n;u++)s[u]=arguments[u];return yf(t,...s)},positions:function(){for(var n=arguments.length,s=new Array(n),u=0;u<n;u++)s[u]=arguments[u];return Cf(t,...s)},previous:function(){for(var n=arguments.length,s=new Array(n),u=0;u<n;u++)s[u]=arguments[u];return xf(t,...s)},range:function(){for(var n=arguments.length,s=new Array(n),u=0;u<n;u++)s[u]=arguments[u];return Ef(t,...s)},rangeRef:function(){for(var n=arguments.length,s=new Array(n),u=0;u<n;u++)s[u]=arguments[u];return Bf(t,...s)},rangeRefs:function(){for(var n=arguments.length,s=new Array(n),u=0;u<n;u++)s[u]=arguments[u];return Af(t,...s)},removeNodes:function(){for(var n=arguments.length,s=new Array(n),u=0;u<n;u++)s[u]=arguments[u];return Xf(t,...s)},select:function(){for(var n=arguments.length,s=new Array(n),u=0;u<n;u++)s[u]=arguments[u];return jf(t,...s)},setNodes:function(){for(var n=arguments.length,s=new Array(n),u=0;u<n;u++)s[u]=arguments[u];return _f(t,...s)},setNormalizing:function(){for(var n=arguments.length,s=new Array(n),u=0;u<n;u++)s[u]=arguments[u];return kf(t,...s)},setPoint:function(){for(var n=arguments.length,s=new Array(n),u=0;u<n;u++)s[u]=arguments[u];return Hf(t,...s)},setSelection:function(){for(var n=arguments.length,s=new Array(n),u=0;u<n;u++)s[u]=arguments[u];return Wf(t,...s)},splitNodes:function(){for(var n=arguments.length,s=new Array(n),u=0;u<n;u++)s[u]=arguments[u];return Jf(t,...s)},start:function(){for(var n=arguments.length,s=new Array(n),u=0;u<n;u++)s[u]=arguments[u];return Of(t,...s)},string:function(){for(var n=arguments.length,s=new Array(n),u=0;u<n;u++)s[u]=arguments[u];return Tf(t,...s)},unhangRange:function(){for(var n=arguments.length,s=new Array(n),u=0;u<n;u++)s[u]=arguments[u];return Mf(t,...s)},unsetNodes:function(){for(var n=arguments.length,s=new Array(n),u=0;u<n;u++)s[u]=arguments[u];return Qf(t,...s)},unwrapNodes:function(){for(var n=arguments.length,s=new Array(n),u=0;u<n;u++)s[u]=arguments[u];return e4(t,...s)},void:function(){for(var n=arguments.length,s=new Array(n),u=0;u<n;u++)s[u]=arguments[u];return Wc(t,...s)},withoutNormalizing:function(){for(var n=arguments.length,s=new Array(n),u=0;u<n;u++)s[u]=arguments[u];return zf(t,...s)},wrapNodes:function(){for(var n=arguments.length,s=new Array(n),u=0;u<n;u++)s[u]=arguments[u];return t4(t,...s)},shouldMergeNodesRemovePrevNode:function(){for(var n=arguments.length,s=new Array(n),u=0;u<n;u++)s[u]=arguments[u];return Nf(t,...s)}};return t},co=globalThis.Node,r4=globalThis.Text,Va=t=>t&&t.ownerDocument&&t.ownerDocument.defaultView||null,n4=t=>Er(t)&&t.nodeType===8,Yt=t=>Er(t)&&t.nodeType===1,Er=t=>{var e=Va(t);return!!e&&t instanceof e.Node},ka=t=>{var e=t&&t.anchorNode&&Va(t.anchorNode);return!!e&&t instanceof e.Selection},fo=t=>Er(t)&&t.nodeType===3,a4=t=>t.clipboardData&&t.clipboardData.getData("text/plain")!==""&&t.clipboardData.types.length===1,s4=t=>{var[e,n]=t;if(Yt(e)&&e.childNodes.length){var s=n===e.childNodes.length,u=s?n-1:n;for([e,u]=ho(e,u,s?"backward":"forward"),s=u<n;Yt(e)&&e.childNodes.length;){var f=s?e.childNodes.length-1:0;e=u4(e,f,s?"backward":"forward")}n=s&&e.textContent!=null?e.textContent.length:0}return[e,n]},i4=t=>{for(var e=t&&t.parentNode;e;){if(e.toString()==="[object ShadowRoot]")return!0;e=e.parentNode}return!1},ho=(t,e,n)=>{for(var{childNodes:s}=t,u=s[e],f=e,m=!1,D=!1;(n4(u)||Yt(u)&&u.childNodes.length===0||Yt(u)&&u.getAttribute("contenteditable")==="false")&&!(m&&D);){if(f>=s.length){m=!0,f=e-1,n="backward";continue}if(f<0){D=!0,f=e+1,n="forward";continue}u=s[f],e=f,f+=n==="forward"?1:-1}return[u,e]},u4=(t,e,n)=>{var[s]=ho(t,e,n);return s},mo=t=>{var e="";if(fo(t)&&t.nodeValue)return t.nodeValue;if(Yt(t)){for(var n of Array.from(t.childNodes))e+=mo(n);var s=getComputedStyle(t).getPropertyValue("display");(s==="block"||s==="list"||t.tagName==="BR")&&(e+=` 262`)}return e},o4=/data-slate-fragment="(.+?)"/m,l4=t=>{var e=t.getData("text/html"),[,n]=e.match(o4)||[];return n},i0=t=>t.getSelection!=null?t.getSelection():document.getSelection(),Ga=(t,e,n)=>{var{target:s}=e;if(Yt(s)&&s.matches('[contentEditable="false"]'))return!1;var{document:u}=Te.getWindow(t);if(u.contains(s))return Te.hasDOMNode(t,s,{editable:!0});var f=n.find(m=>{var{addedNodes:D,removedNodes:x}=m;for(var C of D)if(C===s||C.contains(s))return!0;for(var A of x)if(A===s||A.contains(s))return!0});return!f||f===e?!1:Ga(t,f,n)},c4=()=>{for(var t=document.activeElement;(e=t)!==null&&e!==void 0&&e.shadowRoot&&(n=t.shadowRoot)!==null&&n!==void 0&&n.activeElement;){var e,n,s;t=(s=t)===null||s===void 0||(s=s.shadowRoot)===null||s===void 0?void 0:s.activeElement}return t},xu=(t,e)=>!!(t.compareDocumentPosition(e)&co.DOCUMENT_POSITION_PRECEDING),f4=(t,e)=>!!(t.compareDocumentPosition(e)&co.DOCUMENT_POSITION_FOLLOWING),va,ba,po=typeof navigator<"u"&&typeof window<"u"&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,Bu=typeof navigator<"u"&&/Mac OS X/.test(navigator.userAgent),kt=typeof navigator<"u"&&/Android/.test(navigator.userAgent),Ur=typeof navigator<"u"&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),zr=typeof navigator<"u"&&/AppleWeb
262Kit(?!.*Chrome)/i.test(navigator.userAgent),h4=typeof navigator<"u"&&/Edge?\/(?:[0-6][0-9]|[0-7][0-8])(?:\.)/i.test(navigator.userAgent),go=typeof navigator<"u"&&/Chrome/i.test(navigator.userAgent),d4=typeof navigator<"u"&&/Chrome?\/(?:[0-7][0-5]|[0-6][0-9])(?:\.)/i.test(navigator.userAgent),m4=kt&&typeof navigator<"u"&&/Chrome?\/(?:[0-5]?\d)(?:\.)/i.test(navigator.userAgent),p4=typeof navigator<"u"&&/^(?!.*Seamonkey)(?=.*Firefox\/(?:[0-7][0-9]|[0-8][0-6])(?:\.)).*/i.test(navigator.userAgent),g4=typeof navigator<"u"&&/.*UCBrowser/.test(navigator.userAgent),v4=typeof navigator<"u"&&/.*Wechat/.test(navigator.userAgent)&&!/.*MacWechat/.test(navigator.userAgent),tn=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";typeof navigator<"u"&&/Safari/.test(navigator.userAgent)&&/Version\/(\d+)/.test(navigator.userAgent)&&((va=navigator.userAgent.match(/Version\/(\d+)/))!==null&&va!==void 0&&va[1]&&parseInt((ba=navigator.userAgent.match(/Version\/(\d+)/))===null||ba===void 0?void 0:ba[1],10)<17);var wr=(!d4||!m4)&&!h4&&typeof globalThis<"u"&&globalThis.InputEvent&&typeof globalThis.InputEvent.prototype.getTargetRanges=="function";function m0(t){"@babel/helpers - typeof";return m0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},m0(t)}function b4(t,e){if(m0(t)!=="object"||t===null)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var s=n.call(t,e);if(m0(s)!=="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function D4(t){var e=b4(t,"string");return m0(e)==="symbol"?e:String(e)}function vo(t,e,n){return e=D4(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var y4=0;class w4{constructor(){vo(this,"id",void 0),this.id="".concat(y4++)}}var Kr=new WeakMap,Ua=new WeakMap,Ka=new WeakMap,bo=new WeakMap,rn=new WeakMap,Oa=new WeakMap,p0=new WeakMap,Pr=new WeakMap,cn=new WeakMap,gn=new WeakMap,Ta=new WeakMap,Ar=new WeakMap,Nr=new WeakMap,u0=new WeakMap,Ma=new WeakMap,Ya=new WeakMap,Jt=new WeakMap,pr=new WeakMap,Rt=new WeakMap,Cr=new WeakMap,xr=new WeakMap,Do=new WeakMap,Xr=Symbol("placeholder"),yo=Symbol("mark-placeholder"),Te={androidPendingDiffs:t=>Rt.get(t),androidScheduleFlush:t=>{var e;(e=Ya.get(t))===null||e===void 0||e()},blur:t=>{var e=Te.toDOMNode(t,t),n=Te.findDocumentOrShadowRoot(t);Ar.set(t,!1),n.activeElement===e&&e.blur()},deselect:t=>{var{selection:e}=t,n=Te.findDocumentOrShadowRoot(t),s=i0(n);s&&s.rangeCount>0&&s.removeAllRanges(),e&&Z.deselect(t)},findDocumentOrShadowRoot:t=>{var e=Te.toDOMNode(t,t),n=e.getRootNode();return n instanceof Document||n instanceof ShadowRoot?n:e.ownerDocument},findEventRange:(t,e)=>{"nativeEvent"in e&&(e=e.nativeEvent);var{clientX:n,clientY:s,target:u}=e;if(n==null||s==null)throw new Error("Cannot resolve a Slate range from a DOM event: ".concat(e));var f=Te.toSlateNode(t,e.target),m=Te.findPath(t,f);if(ye.isElement(f)&&b.isVoid(t,f)){var D=u.getBoundingClientRect(),x=t.isInline(f)?n-D.left<D.left+D.width-n:s-D.top<D.top+D.height-s,C=b.point(t,m,{edge:x?"start":"end"}),A=x?b.before(t,C):b.after(t,C);if(A){var T=b.range(t,A);return T}}var F,{document:P}=Te.getWindow(t);if(P.caretRangeFromPoint)F=P.caretRangeFromPoint(n,s);else{var q=P.caretPositionFromPoint(n,s);q&&(F=P.createRange(),F.setStart(q.offsetNode,q.offset),F.setEnd(q.offsetNode,q.offset))}if(!F)throw new Error("Cannot resolve a Slate range from a DOM event: ".concat(e));var M=Te.toSlateRange(t,F,{exactMatch:!1,suppressThrow:!1});return M},findKey:(t,e)=>{var n=cn.get(e);return n||(n=new w4,cn.set(e,n)),n},findPath:(t,e)=>{for(var n=[],s=e;;){var u=Ka.get(s);if(u==null){if(b.isEditor(s))return n;break}var f=Ua.get(s);if(f==null)break;n.unshift(f),s=u}throw new Error("Unable to find the path for Slate node: ".concat(wt.stringify(e)))},focus:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{retries:5};if(!Ar.get(e)){if(n.retries<=0)throw new Error("Could not set focus, editor seems stuck with pending operations");
262if(e.operations.length>0){setTimeout(()=>{Te.focus(e,{retries:n.retries-1})},10);return}var s=Te.toDOMNode(e,e),u=Te.findDocumentOrShadowRoot(e);if(u.activeElement!==s){if(e.selection&&u instanceof Document){var f=i0(u),m=Te.toDOMRange(e,e.selection);f?.removeAllRanges(),f?.addRange(m)}e.selection||Z.select(e,b.start(e,[])),Ar.set(e,!0),s.focus({preventScroll:!0})}}},getWindow:t=>{var e=bo.get(t);if(!e)throw new Error("Unable to find a host window element for this editor");return e},hasDOMNode:function(e,n){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{editable:u=!1}=s,f=Te.toDOMNode(e,e),m;try{m=Yt(n)?n:n.parentElement}catch(D){if(D instanceof Error&&!D.message.includes('Permission denied to access property "nodeType"'))throw D}return m?m.closest("[data-slate-editor]")===f&&(!u||m.isContentEditable?!0:typeof m.isContentEditable=="boolean"&&m.closest('[contenteditable="false"]')===f||!!m.getAttribute("data-slate-zero-width")):!1},hasEditableTarget:(t,e)=>Er(e)&&Te.hasDOMNode(t,e,{editable:!0}),hasRange:(t,e)=>{var{anchor:n,focus:s}=e;return b.hasPath(t,n.path)&&b.hasPath(t,s.path)},hasSelectableTarget:(t,e)=>Te.hasEditableTarget(t,e)||Te.isTargetInsideNonReadonlyVoid(t,e),hasTarget:(t,e)=>Er(e)&&Te.hasDOMNode(t,e),insertData:(t,e)=>{t.insertData(e)},insertFragmentData:(t,e)=>t.insertFragmentData(e),insertTextData:(t,e)=>t.insertTextData(e),isComposing:t=>!!Nr.get(t),isFocused:t=>!!Ar.get(t),isReadOnly:t=>!!Ta.get(t),isTargetInsideNonReadonlyVoid:(t,e)=>{if(Ta.get(t))return!1;var n=Te.hasTarget(t,e)&&Te.toSlateNode(t,e);return ye.isElement(n)&&b.isVoid(t,n)},setFragmentData:(t,e,n)=>t.setFragmentData(e,n),toDOMNode:(t,e)=>{var n=gn.get(t),s=b.isEditor(e)?rn.get(t):n?.get(Te.findKey(t,e));if(!s)throw new Error("Cannot resolve a DOM node from Slate node: ".concat(wt.stringify(e)));return s},toDOMPoint:(t,e)=>{var[n]=b.node(t,e.path),s=Te.toDOMNode(t,n),u;b.void(t,{at:e})&&(e={path:e.path,offset:0});for(var f="[data-slate-string], [data-slate-zero-width]",m=Array.from(s.querySelectorAll(f)),D=0,x=0;x<m.length;x++){var C=m[x],A=C.childNodes[0];if(!(A==null||A.textContent==null)){var{length:T}=A.textContent,F=C.getAttribute("data-slate-length"),P=F==null?T:parseInt(F,10),q=D+P,M=m[x+1];if(e.offset===q&&M!==null&&M!==void 0&&M.hasAttribute("data-slate-mark-placeholder")){var p,W=M.childNodes[0];u=[W instanceof r4?W:M,(p=M.textContent)!==null&&p!==void 0&&p.startsWith("\uFEFF")?1:0];break}if(e.offset<=q){var j=Math.min(T,Math.max(0,e.offset-D));u=[A,j];break}D=q}}if(!u)throw new Error("Cannot resolve a DOM point from Slate point: ".concat(wt.stringify(e)));return u},toDOMRange:(t,e)=>{var{anchor:n,focus:s}=e,u=$.isBackward(e),f=Te.toDOMPoint(t,n),m=$.isCollapsed(e)?f:Te.toDOMPoint(t,s),D=Te.getWindow(t),x=D.document.createRange(),[C,A]=u?m:f,[T,F]=u?f:m,P=Yt(C)?C:C.parentElement,q=!!P.getAttribute("data-slate-zero-width"),M=Yt(T)?T:T.parentElement,p=!!M.getAttribute("data-slate-zero-width");return x.setStart(C,q?1:A),x.setEnd(T,p?1:F),x},toSlateNode:(t,e)=>{var n=Yt(e)?e:e.parentElement;n&&!n.hasAttribute("data-slate-node")&&(n=n.closest("[data-slate-node]"));var s=n?p0.get(n):null;if(!s)throw new Error("Cannot resolve a Slate node from DOM node: ".concat(n));return s},toSlatePoint:(t,e,n)=>{var{exactMatch:s,suppressThrow:u,searchDirection:f="backward"}=n,[m,D]=s?e:s4(e),x=m.parentNode,C=null,A=0;if(x){var T,F,P=Te.toDOMNode(t,t),q=x.closest('[data-slate-void="true"]'),M=q&&P.contains(q)?q:null,p=x.closest('[contenteditable="false"]'),W=p&&P.contains(p)?p:null,j=x.closest("[data-slate-leaf]"),V=null;if(j){if(C=j.closest('[data-slate-node="text"]'),C){var U=Te.getWindow(t),X=U.document.createRange();X.setStart(C,0),X.setEnd(m,D);var ce=X.cloneContents(),oe=[...Array.prototype.slice.call(ce.querySelectorAll("[data-slate-zero-width]")),...Array.prototype.slice.call(ce.querySelectorAll("[contenteditable=false]"))];oe.forEach(ke=>{if(kt&&!s&&ke.hasAttribute("data-slate-zero-width")&&ke.textContent.length>0&&ke.textContext!=="\uFEFF"){ke.textContent.startsWith("\uFEFF")&&(ke.textContent=ke.textContent.slice(1));return}ke.parentNode.removeChild(ke)}),A=ce.textContent.length,V=C}}else if(M){for(var he=M.querySelectorAll("[data-slate-leaf]"),ge=0;ge<he.length;ge++){var ne=he[ge];if(Te.hasDOMNode(t,ne)){j=ne;break}}j?(C=j.closest('[data-slate-node="text"]'),V=j,A=V.textContent.length,V.querySelectorAll("[data-slate-zero-width]").forEach(ke=>{A-=ke.textContent.length})):A=1}else if(W){var ue=ke=>ke?ke.querySelectorAll("[data-slate-leaf]:not(:scope [data-slate-editor] [data-slate-leaf])"):[],G=W.closest('[data-slate-node="element"]');if(f==="forward"){var K,ee=[...ue(G),...ue(G?.nextElementSibling)];j=(K=ee.find(ke=>f4(W,ke)))!==null&&K!==void 0?K:null}else{var te,Me=[...ue(G?.previousElementSibling),...ue(G)];j=(te=Me.findLast(ke=>xu(W,ke)))!==null&&te!==void 0?te:null}j&&(C=j.closest('[data-slate-node="text"]'),V=j,f==="forward"?A=0:(A=V.textContent.length,V.querySelectorAll("[data-slate-zero-width]").forEach(ke=>{A-=ke.textContent.length})))}V&&A===V.textContent.length&&kt&&V.getAttribute("data-slate-zero-width")==="z"&&(T=V.textContent)!==null&&T!==void 0&&T.startsWith("\uFEFF")&&(x.hasAttribute("data-slate-zero-width")||Ur&&(F=V.textContent)!==null&&F!==void 0&&F.endsWith(` 263 264`))&&A--}if(kt&&!C&&!s){var be=x.hasAttribute("data-slate-node")?x:x.closest("[data-slate-node]");if(be&&Te.hasDOMNode(t,be,{editable:!0})){var He=Te.toSlateNode(t,be),{path:ze,offset:ae}=b.start(t,Te.findPath(t,He));return be.querySelector("[data-slate-leaf]")||(ae=D),{path:ze,offset:ae}}}if(!C){if(u)return null;throw new Error("Cannot resolve a Slate point from DOM point: ".concat(e))}var We=Te.toSlateNode(t,C),Ve=Te.findPath(t,We);return{path:Ve,offset:A}},toSlateRange:(t,e,n)=>{var s,{exactMatch:u,suppressThrow:f}=n,m=ka(e)?e.anchorNode:e.startContainer,D,x,C,A,T;if(m)if(ka(e)){if(Ur&&e.rangeCount>1){C=e.focusNode;var F=e.getRangeAt(0),P=e.getRangeAt(e.rangeCount-1);if(C instanceof HTMLTableRowElement&&F.startContainer instanceof HTMLTableRowElement&&P.startContainer instanceof HTMLTableRowElement){let ce=function(oe){return oe.childElementCount>0?ce(oe.children[0]):oe};var q=F.startContainer,M=P.startContainer,p=ce(q.children[F.startOffset]),W=ce(M.children[P.startOffset]);A=0,W.childNodes.length>0?D=W.childNodes[0]:D=W,p.childNodes.length>0?C=p.childNodes[0]:C=p,W instanceof HTMLElement?x=W.innerHTML.length:x=0}else F.startContainer===C?(D=P.endContainer,x=P.endOffset,A=F.startOffset):(D=F.startContainer,x=F.endOffset,A=P.startOffset)}
264else D=e.anchorNode,x=e.anchorOffset,C=e.focusNode,A=e.focusOffset;go&&i4(D)||Ur?T=e.anchorNode===e.focusNode&&e.anchorOffset===e.focusOffset:T=e.isCollapsed}else D=e.startContainer,x=e.startOffset,C=e.endContainer,A=e.endOffset,T=e.collapsed;if(D==null||C==null||x==null||A==null)throw new Error("Cannot resolve a Slate range from DOM range: ".concat(e));Ur&&(s=C.textContent)!==null&&s!==void 0&&s.endsWith(` 265 266`)&&A===C.textContent.length&&A--;var j=Te.toSlatePoint(t,[D,x],{exactMatch:u,suppressThrow:f});if(!j)return null;var V=xu(D,C)||D===C&&A<x,U=T?j:Te.toSlatePoint(t,[C,A],{exactMatch:u,suppressThrow:f,searchDirection:V?"forward":"backward"});if(!U)return null;var X={anchor:j,focus:U};return $.isExpanded(X)&&$.isForward(X)&&Yt(C)&&b.void(t,{at:X.focus,mode:"highest"})&&(X=b.unhangRange(t,X,{voids:!0})),X}};function C4(t,e){var{path:n,diff:s}=e;if(!b.hasPath(t,n))return!1;var u=ie.get(t,n);if(!De.isText(u))return!1;if(s.start!==u.text.length||s.text.length===0)return u.text.slice(s.start,s.start+s.text.length)===s.text;var f=O.next(n);if(!b.hasPath(t,f))return!1;var m=ie.get(t,f);return De.isText(m)&&m.text.startsWith(s.text)}function wo(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),s=1;s<e;s++)n[s-1]=arguments[s];return n.reduce((u,f)=>u.slice(0,f.start)+f.text+u.slice(f.end),t)}function x4(t,e){for(var n=Math.min(t.length,e.length),s=0;s<n;s++)if(t.charAt(s)!==e.charAt(s))return s;return n}function B4(t,e,n){for(var s=Math.min(t.length,e.length,n),u=0;u<s;u++)if(t.charAt(t.length-u-1)!==e.charAt(e.length-u-1))return u;return s}function Co(t,e){var{start:n,end:s,text:u}=e,f=t.slice(n,s),m=x4(f,u),D=Math.min(f.length-m,u.length-m),x=B4(f,u,D),C={start:n+m,end:s-x,text:u.slice(m,u.length-x)};return C.start===C.end&&C.text.length===0?null:C}function A4(t,e,n){var s=Math.min(e.start,n.start),u=Math.max(0,Math.min(e.start+e.text.length,n.end)-n.start),f=wo(t,e,n),m=Math.max(n.start+n.text.length,e.start+e.text.length+(e.start+e.text.length>n.start?n.text.length:0)-u),D=f.slice(s,m),x=Math.max(e.end,n.end-e.text.length+(e.end-e.start));return Co(t,{start:s,end:x,text:D})}function E4(t){var{path:e,diff:n}=t;return{anchor:{path:e,offset:n.start},focus:{path:e,offset:n.end}}}function za(t,e){var{path:n,offset:s}=e;if(!b.hasPath(t,n))return null;var u=ie.get(t,n);if(!De.isText(u))return null;var f=b.above(t,{match:D=>ye.isElement(D)&&b.isBlock(t,D),at:n});if(!f)return null;for(;s>u.text.length;){var m=b.next(t,{at:n,match:De.isText});if(!m||!O.isDescendant(m[1],f[1]))return null;s-=u.text.length,u=m[0],n=m[1]}return{path:n,offset:s}}function Au(t,e){var n=za(t,e.anchor);if(!n)return null;if($.isCollapsed(e))return{anchor:n,focus:n};var s=za(t,e.focus);return s?{anchor:n,focus:s}:null}function Na(t,e,n){var s=Rt.get(t),u=s?.find(A=>{var{path:T}=A;return O.equals(T,e.path)});if(!u||e.offset<=u.diff.start)return Pe.transform(e,n,{affinity:"backward"});var{diff:f}=u;if(e.offset<=f.start+f.text.length){var m={path:e.path,offset:f.start},D=Pe.transform(m,n,{affinity:"backward"});return D?{path:D.path,offset:D.offset+e.offset-f.start}:null}var x={path:e.path,offset:e.offset-f.text.length+f.end-f.start},C=Pe.transform(x,n,{affinity:"backward"});return C?n.type==="split_node"&&O.equals(n.path,e.path)&&x.offset<n.position&&f.start<n.position?C:{path:C.path,offset:C.offset+f.text.length-f.end+f.start}:null}function Eu(t,e,n){var s=Na(t,e.anchor,n);if(!s)return null;if($.isCollapsed(e))return{anchor:s,focus:s};var u=Na(t,e.focus,n);return u?{anchor:s,focus:u}:null}function S4(t,e){var{path:n,diff:s,id:u}=t;switch(e.type){case"insert_text":return!O.equals(e.path,n)||e.offset>=s.end?t:e.offset<=s.start?{diff:{start:e.text.length+s.start,end:e.text.length+s.end,text:s.text},id:u,path:n}:{diff:{start:s.start,end:s.end+e.text.length,text:s.text},id:u,path:n};case"remove_text":return!O.equals(e.path,n)||e.offset>=s.end?t:e.offset+e.text.length<=s.start?{diff:{start:s.start-e.text.length,end:s.end-e.text.length,text:s.text},id:u,path:n}:{diff:{start:s.start,end:s.end-e.text.length,text:s.text},id:u,path:n};case"split_node":return!O.equals(e.path,n)||e.position>=s.end?{diff:s,id:u,path:O.transform(n,e,{affinity:"backward"})}:e.position>s.start?{diff:{start:s.start,end:Math.min(e.position,s.end),text:s.text},id:u,path:n}:{diff:{start:s.start-e.position,end:s.end-e.position,text:s.text},id:u,path:O.transform(n,e,{affinity:"forward"})};case"merge_node":return O.equals(e.path,n)?{diff:{start:s.start+e.position,end:s.end+e.position,text:s.text},id:u,path:O.transform(n,e)}:{diff:s,id:u,path:O.transform(n,e)}}var f=O.transform(n,e);return f?{diff:s,path:f,id:u}:null}var Su=(t,e)=>{var n=(e.top+e.bottom)/2;return t.top<=n&&t.bottom>=n},Fu=(t,e,n)=>{var s=Te.toDOMRange(t,e).getBoundingClientRect(),u=Te.toDOMRange(t,n).getBoundingClientRect();return Su(s,u)&&Su(u,s)},F4=(t,e)=>{var n=b.range(t,$.end(e)),s=Array.from(b.positions(t,{at:e})),u=0,f=s.length,m=Math.floor(f/2);if(Fu(t,b.range(t,s[u]),n))return b.range(t,s[u],n);if(s.length<2)return b.range(t,s[s.length-1],n);for(;m!==s.length&&m!==u;)Fu(t,b.range(t,s[m]),n)?f=m:u=m,m=Math.floor((u+f)/2);return b.range(t,s[f],n)};function ku(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter(function(u){return Object.getOwnPropertyDescriptor(t,u).enumerable})),n.push.apply(n,s)}return n}function Ou(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};
266e%2?ku(Object(n),!0).forEach(function(s){vo(t,s,n[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ku(Object(n)).forEach(function(s){Object.defineProperty(t,s,Object.getOwnPropertyDescriptor(n,s))})}return t}var k4=function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"x-slate-fragment",s=e,{apply:u,onChange:f,deleteBackward:m,addMark:D,removeMark:x}=s;return gn.set(s,new WeakMap),s.addMark=(C,A)=>{var T,F;(T=Ya.get(s))===null||T===void 0||T(),!Jt.get(s)&&(F=Rt.get(s))!==null&&F!==void 0&&F.length&&Jt.set(s,null),pr.delete(s),D(C,A)},s.removeMark=C=>{var A;!Jt.get(s)&&(A=Rt.get(s))!==null&&A!==void 0&&A.length&&Jt.set(s,null),pr.delete(s),x(C)},s.deleteBackward=C=>{if(C!=="line")return m(C);if(s.selection&&$.isCollapsed(s.selection)){var A=b.above(s,{match:q=>ye.isElement(q)&&b.isBlock(s,q),at:s.selection});if(A){var[,T]=A,F=b.range(s,T,s.selection.anchor),P=F4(s,F);$.isCollapsed(P)||Z.delete(s,{at:P})}}},s.apply=C=>{var A=[],T=[],F=Rt.get(s);if(F!=null&&F.length){var P=F.map(ee=>S4(ee,C)).filter(Boolean);Rt.set(s,P)}var q=xr.get(s);q&&xr.set(s,Eu(s,q,C));var M=Cr.get(s);if(M!=null&&M.at){var p=Pe.isPoint(M?.at)?Na(s,M.at,C):Eu(s,M.at,C);Cr.set(s,p?Ou(Ou({},M),{},{at:p}):null)}switch(C.type){case"insert_text":case"remove_text":case"set_node":case"split_node":{A.push(...Vr(s,C.path));break}case"set_selection":{var W;(W=u0.get(s))===null||W===void 0||W.unref(),u0.delete(s);break}case"insert_node":case"remove_node":{A.push(...Vr(s,O.parent(C.path)));break}case"merge_node":{var j=O.previous(C.path);A.push(...Vr(s,j));break}case"move_node":{var V=O.common(O.parent(C.path),O.parent(C.newPath));A.push(...Vr(s,V));var U;O.isBefore(C.path,C.newPath)?(A.push(...Vr(s,O.parent(C.path))),U=C.newPath):(A.push(...Vr(s,O.parent(C.newPath))),U=C.path);var X=ie.get(e,O.parent(U)),ce=Te.findKey(s,X),oe=b.pathRef(s,O.parent(U));T.push([oe,ce]);break}}switch(u(C),C.type){case"insert_node":case"remove_node":case"merge_node":case"move_node":case"split_node":Kr.set(s,!0)}for(var[he,ge]of A){var[ne]=b.node(s,he);cn.set(ne,ge)}for(var[ue,G]of T){if(ue.current){var[K]=b.node(s,ue.current);cn.set(K,G)}ue.unref()}},s.setFragmentData=C=>{var{selection:A}=s;if(A){var[T,F]=$.edges(A),P=b.void(s,{at:T.path}),q=b.void(s,{at:F.path});if(!($.isCollapsed(A)&&!P)){var M=Te.toDOMRange(s,A),p=M.cloneContents(),W=p.childNodes[0];if(p.childNodes.forEach(ne=>{ne.textContent&&ne.textContent.trim()!==""&&(W=ne)}),q){var[j]=q,V=M.cloneRange(),U=Te.toDOMNode(s,j);V.setEndAfter(U),p=V.cloneContents()}if(P&&(W=p.querySelector("[data-slate-spacer]")),Array.from(p.querySelectorAll("[data-slate-zero-width]")).forEach(ne=>{var ue=ne.getAttribute("data-slate-zero-width")==="n";ne.textContent=ue?` 267`:""}),fo(W)){var X=W.ownerDocument.createElement("span");X.style.whiteSpace="pre",X.appendChild(W),p.appendChild(X),W=X}var ce=s.getFragment(),oe=JSON.stringify(ce),he=window.btoa(encodeURIComponent(oe));W.setAttribute("data-slate-fragment",he),C.setData("application/".concat(n),he);var ge=p.ownerDocument.createElement("div");return ge.appendChild(p),ge.setAttribute("hidden","true"),p.ownerDocument.body.appendChild(ge),C.setData("text/html",ge.innerHTML),C.setData("text/plain",mo(ge)),p.ownerDocument.body.removeChild(ge),C}}},s.insertData=C=>{s.insertFragmentData(C)||s.insertTextData(C)},s.insertFragmentData=C=>{var A=C.getData("application/".concat(n))||l4(C);if(A){var T=decodeURIComponent(window.atob(A)),F=JSON.parse(T);return s.insertFragment(F),!0}return!1},s.insertTextData=C=>{var A=C.getData("text/plain");if(A){var T=A.split(/\r\n|\r|\n/),F=!1;for(var P of T)F&&Z.splitNodes(s,{always:!0}),s.insertText(P),F=!0;return!0}return!1},s.onChange=C=>{var A=Ma.get(s);A&&A(C),f(C)},s},Vr=(t,e)=>{var n=[];for(var[s,u]of b.levels(t,{at:e})){var f=Te.findKey(t,s);n.push([u,f])}return n},O4=3,T4={bold:"mod+b",compose:["down","left","right","up","backspace","enter"],moveBackward:"left",moveForward:"right",moveWordBackward:"ctrl+left",moveWordForward:"ctrl+right",deleteBackward:"shift?+backspace",deleteForward:"shift?+delete",extendBackward:"shift+left",extendForward:"shift+right",italic:"mod+i",insertSoftBreak:"shift+enter",splitBlock:"enter",undo:"mod+z"},M4={moveLineBackward:"opt+up",moveLineForward:"opt+down",moveWordBackward:"opt+left",moveWordForward:"opt+right",deleteBackward:["ctrl+backspace","ctrl+h"],deleteForward:["ctrl+delete","ctrl+d"],deleteLineBackward:"cmd+shift?+backspace",deleteLineForward:["cmd+shift?+delete","ctrl+k"],deleteWordBackward:"opt+shift?+backspace",deleteWord
267Forward:"opt+shift?+delete",extendLineBackward:"opt+shift+up",extendLineForward:"opt+shift+down",redo:"cmd+shift+z",transposeCharacter:"ctrl+t"},z4={deleteWordBackward:"ctrl+shift?+backspace",deleteWordForward:"ctrl+shift?+delete",redo:["ctrl+y","ctrl+shift+z"]},ot=t=>{var e=T4[t],n=M4[t],s=z4[t],u=e&&Q0.isHotkey(e),f=n&&Q0.isHotkey(n),m=s&&Q0.isHotkey(s);return D=>!!(u&&u(D)||Bu&&f&&f(D)||!Bu&&m&&m(D))},ht={isBold:ot("bold"),isCompose:ot("compose"),isMoveBackward:ot("moveBackward"),isMoveForward:ot("moveForward"),isDeleteBackward:ot("deleteBackward"),isDeleteForward:ot("deleteForward"),isDeleteLineBackward:ot("deleteLineBackward"),isDeleteLineForward:ot("deleteLineForward"),isDeleteWordBackward:ot("deleteWordBackward"),isDeleteWordForward:ot("deleteWordForward"),isExtendBackward:ot("extendBackward"),isExtendForward:ot("extendForward"),isExtendLineBackward:ot("extendLineBackward"),isExtendLineForward:ot("extendLineForward"),isItalic:ot("italic"),isMoveLineBackward:ot("moveLineBackward"),isMoveLineForward:ot("moveLineForward"),isMoveWordBackward:ot("moveWordBackward"),isMoveWordForward:ot("moveWordForward"),isRedo:ot("redo"),isSoftBreak:ot("insertSoftBreak"),isSplitBlock:ot("splitBlock"),isTransposeCharacter:ot("transposeCharacter"),isUndo:ot("undo")};function N4(t,e){if(t==null)return{};var n={},s=Object.keys(t),u,f;for(f=0;f<s.length;f++)u=s[f],!(e.indexOf(u)>=0)&&(n[u]=t[u]);return n}function Tu(t,e){if(t==null)return{};var n=N4(t,e),s,u;if(Object.getOwnPropertySymbols){var f=Object.getOwnPropertySymbols(t);for(u=0;u<f.length;u++)s=f[u],!(e.indexOf(s)>=0)&&Object.prototype.propertyIsEnumerable.call(t,s)&&(n[s]=t[s])}return n}var P4=["anchor","focus"],R4=["anchor","focus"],I4=(t,e)=>Object.keys(t).length===Object.keys(e).length&&Object.keys(t).every(n=>e.hasOwnProperty(n)&&t[n]===e[n]),xo=(t,e)=>{var n=Tu(t,P4),s=Tu(e,R4);return t[Xr]===e[Xr]&&I4(n,s)},q4=(t,e)=>{if(t.length!==e.length)return!1;for(var n=0;n<t.length;n++){var s=t[n],u=e[n];if(!$.equals(s,u)||!xo(s,u))return!1}return!0},L4=(t,e)=>{if(t.length!==e.length)return!1;for(var n=0;n<t.length;n++){var s=t[n],u=e[n];if(s.anchor.offset!==u.anchor.offset||s.focus.offset!==u.focus.offset||!xo(s,u))return!1}return!0},Rr=[],j4=function(){return Rr.some(function(t){return t.activeTargets.length>0})},H4=function(){return Rr.some(function(t){return t.skippedTargets.length>0})},Mu="ResizeObserver loop completed with undelivered notifications.",W4=function(){var t;typeof ErrorEvent=="function"?t=new ErrorEvent("error",{message:Mu}):(t=document.createEvent("Event"),t.initEvent("error",!1,!1),t.message=Mu),window.dispatchEvent(t)},g0;(function(t){t.BORDER_BOX="border-box",t.CONTENT_BOX="content-box",t.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(g0||(g0={}));var Ir=function(t){return Object.freeze(t)},$4=(function(){function t(e,n){this.inlineSize=e,this.blockSize=n,Ir(this)}return t})(),Bo=(function(){function t(e,n,s,u){return this.x=e,this.y=n,this.width=s,this.height=u,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,Ir(this)}return t.prototype.toJSON=function(){var e=this,n=e.x,s=e.y,u=e.top,f=e.right,m=e.bottom,D=e.left,x=e.width,C=e.height;return{x:n,y:s,top:u,right:f,bottom:m,left:D,width:x,height:C}},t.fromRect=function(e){return new t(e.x,e.y,e.width,e.height)},t})(),Xa=function(t){return t instanceof SVGElement&&"getBBox"in t},Ao=function(t){if(Xa(t)){var e=t.getBBox(),n=e.width,s=e.height;return!n&&!s}var u=t,f=u.offsetWidth,m=u.offsetHeight;return!(f||m||t.getClientRects().length)},zu=function(t){var e;if(t instanceof Element)return!0;var n=(e=t?.ownerDocument)===null||e===void 0?void 0:e.defaultView;return!!(n&&t instanceof n.Element)},V4=function(t){switch(t.tagName){case"INPUT":if(t.type!=="image")break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},o0=typeof window<"u"?window:{},K0=new WeakMap,Nu=/auto|scroll/,G4=/^tb|vertical/,U4=/msie|trident/i.test(o0.navigator&&o0.navigator.userAgent),nr=function(t){return parseFloat(t||"0")},Yr=function(t,e,n){return t===void 0&&(t=0),e===void 0&&(e=0),n===void 0&&(n=!1),new $4((n?e:t)||0,(n?t:e)||0)},Pu=Ir({devicePixelContentBoxSize:Yr(),borderBoxSize:Yr(),contentBoxSize:Yr(),contentRect:new Bo(0,0,0,0)}),Eo=function(t,e){if(e===void 0&&(e=!1),K0.has(t)&&!e)return K0.get(t);if(Ao(t))return K0.set(t,Pu),Pu;var n=getComputedStyle(t),s=Xa(t)&&t.ownerSVGElement&&t.getBBox(),u=!U4&&n.boxSizing==="border-box",f=G4.test(n.writingMode||""),m=!s&&Nu.test(n.overflowY||""),D=!s&&Nu.test(n.overflowX||""),x=s?0:nr(n.paddingTop),C=s?0:nr(n.paddingRight),A=s?0:nr(n.paddingBottom),T=s?0:nr(n.paddingLeft),F=s?0:nr(n.borderTopWidth),P=s?0:nr(n.borderRightWidth),q=s?0:nr(n.borderBottomWidth),M=s?0:nr(n.borderLeftWidth),p=T+C,W=x+A,j=M+P,V=F+q,U=D?t.offsetHeight-V-t.clientHeight:0,X=m?t.offsetWidth-j-t.clientWidth:0,ce=u?p+j:0,oe=u?W+V:0,he=s?s.width:nr(n.width)-ce-X,ge=s?s.height:nr(n.height)-oe-U,ne=he+p+X+j,ue=ge+W+U+V,G=Ir({devicePixelContentBoxSize:Yr(Math.round(he*devicePixelRatio),Math.round(ge*devicePixelRatio),f),borderBoxSize:Yr(ne,ue,f),contentBoxSize:Yr(he,ge,f),contentRect:new Bo(T,x,he,ge)});return K0.set(t,G),G},So=function(t,e,n){var s=Eo(t,n),u=s.borderBoxSize,f=s.contentBoxSize,m=s.devicePixelContentBoxSize;switch(e){case g0.DEVICE_PIXEL_CONTENT_BOX:return m;case g0.BORDER_BOX:return u;default:return f}},K4=(function(){function t(e){var n=Eo(e);this.target=e,this.contentRect=n.contentRect,this.borderBoxSize=Ir([n.borderBoxSize]),this.contentBoxSize=Ir([n.c
267ontentBoxSize]),this.devicePixelContentBoxSize=Ir([n.devicePixelContentBoxSize])}return t})(),Fo=function(t){if(Ao(t))return 1/0;for(var e=0,n=t.parentNode;n;)e+=1,n=n.parentNode;return e},Y4=function(){var t=1/0,e=[];Rr.forEach(function(m){if(m.activeTargets.length!==0){var D=[];m.activeTargets.forEach(function(C){var A=new K4(C.target),T=Fo(C.target);D.push(A),C.lastReportedSize=So(C.target,C.observedBox),T<t&&(t=T)}),e.push(function(){m.callback.call(m.observer,D,m.observer)}),m.activeTargets.splice(0,m.activeTargets.length)}});for(var n=0,s=e;n<s.length;n++){var u=s[n];u()}return t},Ru=function(t){Rr.forEach(function(n){n.activeTargets.splice(0,n.activeTargets.length),n.skippedTargets.splice(0,n.skippedTargets.length),n.observationTargets.forEach(function(u){u.isActive()&&(Fo(u.target)>t?n.activeTargets.push(u):n.skippedTargets.push(u))})})},X4=function(){var t=0;for(Ru(t);j4();)t=Y4(),Ru(t);return H4()&&W4(),t>0},Da,ko=[],_4=function(){return ko.splice(0).forEach(function(t){return t()})},Z4=function(t){if(!Da){var e=0,n=document.createTextNode(""),s={characterData:!0};new MutationObserver(function(){return _4()}).observe(n,s),Da=function(){n.textContent="".concat(e?e--:e++)}}ko.push(t),Da()},J4=function(t){Z4(function(){requestAnimationFrame(t)})},nn=0,Q4=function(){return!!nn},eh=250,th={attributes:!0,characterData:!0,childList:!0,subtree:!0},Iu=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],qu=function(t){return t===void 0&&(t=0),Date.now()+t},ya=!1,rh=(function(){function t(){var e=this;this.stopped=!0,this.listener=function(){return e.schedule()}}return t.prototype.run=function(e){var n=this;if(e===void 0&&(e=eh),!ya){ya=!0;var s=qu(e);J4(function(){var u=!1;try{u=X4()}finally{if(ya=!1,e=s-qu(),!Q4())return;u?n.run(1e3):e>0?n.run(e):n.start()}})}},t.prototype.schedule=function(){this.stop(),this.run()},t.prototype.observe=function(){var e=this,n=function(){return e.observer&&e.observer.observe(document.body,th)};document.body?n():o0.addEventListener("DOMContentLoaded",n)},t.prototype.start=function(){var e=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),Iu.forEach(function(n){return o0.addEventListener(n,e.listener,!0)}))},t.prototype.stop=function(){var e=this;this.stopped||(this.observer&&this.observer.disconnect(),Iu.forEach(function(n){return o0.removeEventListener(n,e.listener,!0)}),this.stopped=!0)},t})(),Pa=new rh,Lu=function(t){!nn&&t>0&&Pa.start(),nn+=t,!nn&&Pa.stop()},nh=function(t){return!Xa(t)&&!V4(t)&&getComputedStyle(t).display==="inline"},ah=(function(){function t(e,n){this.target=e,this.observedBox=n||g0.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return t.prototype.isActive=function(){var e=So(this.target,this.observedBox,!0);return nh(this.target)&&(this.lastReportedSize=e),this.lastReportedSize.inlineSize!==e.inlineSize||this.lastReportedSize.blockSize!==e.blockSize},t})(),sh=(function(){function t(e,n){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=e,this.callback=n}return t})(),Y0=new WeakMap,ju=function(t,e){for(var n=0;n<t.length;n+=1)if(t[n].target===e)return n;return-1},X0=(function(){function t(){}return t.connect=function(e,n){var s=new sh(e,n);Y0.set(e,s)},t.observe=function(e,n,s){var u=Y0.get(e),f=u.observationTargets.length===0;ju(u.observationTargets,n)<0&&(f&&Rr.push(u),u.observationTargets.push(new ah(n,s&&s.box)),Lu(1),Pa.schedule())},t.unobserve=function(e,n){var s=Y0.get(e),u=ju(s.observationTargets,n),f=s.observationTargets.length===1;u>=0&&(f&&Rr.splice(Rr.indexOf(s),1),s.observationTargets.splice(u,1),Lu(-1))},t.disconnect=function(e){var n=this,s=Y0.get(e);s.observationTargets.slice().forEach(function(u){return n.unobserve(e,u.target)}),s.activeTargets.splice(0,s.activeTargets.length)},t})(),ih=(function(){function t(e){if(arguments.length===0)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if(typeof e!="function")throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");X0.connect(this,e)}return t.prototype.observe=function(e,n){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!zu(e))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");X0.observe(this,e,n)},t.prototype.unobserve=function(e){if(arguments.length===0)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!zu(e))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");X0.unobserve(this,e)},t.prototype.disconnect=function(){X0.disconnect(this)},t.toString=function(){return"function ResizeObserver () { [polyfill code] }"},t})();function uh(t,e){if(t==null)return{};var n={},s=Object.keys(t),u,f;for(f=0;f<s.length;f++)u=s[f],!(e.indexOf(u)>=0)&&(n[u]=t[u]);return n}function fn(t,e){if(t==null)return{};var n=uh(t,e),s,u;if(Object.getOwnPropertySymbols){var f=Object.getOwnPropertySymbols(t);for(u=0;
267u<f.length;u++)s=f[u],!(e.indexOf(s)>=0)&&Object.prototype.propertyIsEnumerable.call(t,s)&&(n[s]=t[s])}return n}function v0(t){"@babel/helpers - typeof";return v0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},v0(t)}function oh(t,e){if(v0(t)!=="object"||t===null)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var s=n.call(t,e);if(v0(s)!=="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function lh(t){var e=oh(t,"string");return v0(e)==="symbol"?e:String(e)}function ir(t,e,n){return e=lh(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var _a=fe.createContext(null),Sr=()=>{var t=fe.useContext(_a);if(!t)throw new Error("The `useSlateStatic` hook must be used inside the <Slate> component's context.");return t},le=Te;function Hu(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter(function(u){return Object.getOwnPropertyDescriptor(t,u).enumerable})),n.push.apply(n,s)}return n}function _0(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Hu(Object(n),!0).forEach(function(s){ir(t,s,n[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Hu(Object(n)).forEach(function(s){Object.defineProperty(t,s,Object.getOwnPropertyDescriptor(n,s))})}return t}var ch=25,fh=200,hh=function(){},dh=t=>t?.constructor.name==="DataTransfer";function mh(t){var{editor:e,scheduleOnDOMSelectionChange:n,onDOMSelectionChange:s}=t,u=!1,f=null,m=null,D=null,x=0,C=!1,A=()=>{var G=xr.get(e);if(xr.delete(e),G){var{selection:K}=e,ee=Au(e,G);ee&&(!K||!$.equals(ee,K))&&Z.select(e,ee)}},T=()=>{var G=Cr.get(e);if(Cr.delete(e),!!G){if(G.at){var K=Pe.isPoint(G.at)?za(e,G.at):Au(e,G.at);if(!K)return;var ee=b.range(e,K);(!e.selection||!$.equals(e.selection,ee))&&Z.select(e,K)}G.run()}},F=()=>{if(m&&(clearTimeout(m),m=null),D&&(clearTimeout(D),D=null),!U()&&!V()){A();return}u||(u=!0,setTimeout(()=>u=!1)),V()&&(u="action");var G=e.selection&&b.rangeRef(e,e.selection,{affinity:"forward"});pr.set(e,e.marks),hh("flush",Cr.get(e),Rt.get(e));for(var K=U(),ee;ee=(te=Rt.get(e))===null||te===void 0?void 0:te[0];){var te,Me,be=Jt.get(e);be!==void 0&&(Jt.delete(e),e.marks=be),be&&C===!1&&(C=null);var He=E4(ee);(!e.selection||!$.equals(e.selection,He))&&Z.select(e,He),ee.diff.text?b.insertText(e,ee.diff.text):b.deleteFragment(e),Rt.set(e,(Me=Rt.get(e))===null||Me===void 0?void 0:Me.filter(We=>{var{id:Ve}=We;return Ve!==ee.id})),C4(e,ee)||(K=!1,Cr.delete(e),pr.delete(e),u="action",xr.delete(e),n.cancel(),s.cancel(),G?.unref())}var ze=G?.unref();if(ze&&!xr.get(e)&&(!e.selection||!$.equals(ze,e.selection))&&Z.select(e,ze),V()){T();return}K&&n(),n.flush(),s.flush(),A();var ae=pr.get(e);pr.delete(e),ae!==void 0&&(e.marks=ae,e.onChange())},P=G=>{f&&clearTimeout(f),f=setTimeout(()=>{Nr.set(e,!1),F()},ch)},q=G=>{Nr.set(e,!0),f&&(clearTimeout(f),f=null)},M=function(){var K=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,ee=Oa.get(e);if(ee){if(U()||K){ee.style.display="none";return}ee.style.removeProperty("display")}},p=(G,K)=>{var ee,te=(ee=Rt.get(e))!==null&&ee!==void 0?ee:[];Rt.set(e,te);var Me=ie.leaf(e,G),be=te.findIndex(ae=>O.equals(ae.path,G));if(be<0){var He=Co(Me.text,K);He&&te.push({path:G,diff:K,id:x++}),M();return}var ze=A4(Me.text,te[be].diff,K);if(!ze){te.splice(be,1),M();return}te[be]=_0(_0({},te[be]),{},{diff:ze})},W=function(K){var{at:ee}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};C=!1,xr.delete(e),n.cancel(),s.cancel(),V()&&F(),Cr.set(e,{at:ee,run:K}),D=setTimeout(F)},j=G=>{var K;if(m&&(clearTimeout(m),m=null),!Kr.get(e)){var{inputType:ee}=G,te=null,Me=G.dataTransfer||G.data||void 0;C!==!1&&ee!=="insertText"&&ee!=="insertCompositionText"&&(C=!1);var[be]=G.getTargetRanges();be&&(te=le.toSlateRange(e,be,{exactMatch:!1,suppressThrow:!0}));
267var He=le.getWindow(e),ze=He.getSelection();if(!te&&ze&&(be=ze,te=le.toSlateRange(e,ze,{exactMatch:!1,suppressThrow:!0})),te=(K=te)!==null&&K!==void 0?K:e.selection,!!te){var ae=!0;if(ee.startsWith("delete")){if($.isExpanded(te)){var[We,Ve]=$.edges(te),ke=ie.leaf(e,We.path);if(ke.text.length===We.offset&&Ve.offset===0){var pt=b.next(e,{at:We.path,match:De.isText});pt&&O.equals(pt[1],Ve.path)&&(te={anchor:Ve,focus:Ve})}}var Be=ee.endsWith("Backward")?"backward":"forward",[R,de]=$.edges(te),[Q,se]=b.leaf(e,R.path),Oe={text:"",start:R.offset,end:de.offset},Ce=Rt.get(e),Xe=Ce?.find(Bt=>O.equals(Bt.path,se)),Ge=Xe?[Xe.diff,Oe]:[Oe],Ee=wo(Q.text,...Ge);if(Ee.length===0&&(ae=!1),$.isExpanded(te)){if(ae&&O.equals(te.anchor.path,te.focus.path)){var Ze={path:te.anchor.path,offset:R.offset},et=b.range(e,Ze,Ze);return oe(et),p(te.anchor.path,{text:"",end:de.offset,start:R.offset})}return W(()=>b.deleteFragment(e,{direction:Be}),{at:te})}}switch(ee){case"deleteByComposition":case"deleteByCut":case"deleteByDrag":return W(()=>b.deleteFragment(e),{at:te});case"deleteContent":case"deleteContentForward":{var{anchor:$e}=te;if(ae&&$.isCollapsed(te)){var Ue=ie.leaf(e,$e.path);if($e.offset<Ue.text.length)return p($e.path,{text:"",start:$e.offset,end:$e.offset+1})}return W(()=>b.deleteForward(e),{at:te})}case"deleteContentBackward":{var vt,{anchor:Ct}=te,Tt=ka(be)?be.isCollapsed:!!((vt=be)!==null&&vt!==void 0&&vt.collapsed);return ae&&Tt&&$.isCollapsed(te)&&Ct.offset>0?p(Ct.path,{text:"",start:Ct.offset-1,end:Ct.offset}):W(()=>b.deleteBackward(e),{at:te})}case"deleteEntireSoftLine":return W(()=>{b.deleteBackward(e,{unit:"line"}),b.deleteForward(e,{unit:"line"})},{at:te});case"deleteHardLineBackward":return W(()=>b.deleteBackward(e,{unit:"block"}),{at:te});case"deleteSoftLineBackward":return W(()=>b.deleteBackward(e,{unit:"line"}),{at:te});case"deleteHardLineForward":return W(()=>b.deleteForward(e,{unit:"block"}),{at:te});case"deleteSoftLineForward":return W(()=>b.deleteForward(e,{unit:"line"}),{at:te});case"deleteWordBackward":return W(()=>b.deleteBackward(e,{unit:"word"}),{at:te});
267case"deleteWordForward":return W(()=>b.deleteForward(e,{unit:"word"}),{at:te});case"insertLineBreak":return W(()=>b.insertSoftBreak(e),{at:te});case"insertParagraph":return W(()=>b.insertBreak(e),{at:te});case"insertCompositionText":case"deleteCompositionText":case"insertFromComposition":case"insertFromDrop":case"insertFromPaste":case"insertFromYank":case"insertReplacementText":case"insertText":{if(dh(Me))return W(()=>le.insertData(e,Me),{at:te});var _e=Me??"";if(Jt.get(e)&&(_e=_e.replace("\uFEFF","")),ee==="insertText"&&/.*\n.*\n$/.test(_e)&&(_e=_e.slice(0,-1)),_e.includes(` 268`))return W(()=>{var Bt=_e.split(` 269`);Bt.forEach((Mt,ur)=>{Mt&&b.insertText(e,Mt),ur!==Bt.length-1&&b.insertSoftBreak(e)})},{at:te});if(O.equals(te.anchor.path,te.focus.path)){var[It,qt]=$.edges(te),Ke={start:It.offset,end:qt.offset,text:_e};if(_e&&C&&ee==="insertCompositionText"){var Qe=C.start+C.text.search(/\S|$/),yt=Ke.start+Ke.text.search(/\S|$/);yt===Qe+1&&Ke.end===C.start+C.text.length?(Ke.start-=1,C=null,ne()):C=!1}else ee==="insertText"?C===null?C=Ke:C&&$.isCollapsed(te)&&C.end+C.text.length===It.offset?C=_0(_0({},C),{},{text:C.text+_e}):C=!1:C=!1;if(ae){p(It.path,Ke);return}}return W(()=>b.insertText(e,_e),{at:te})}}}}},V=()=>!!Cr.get(e),U=()=>{var G;return!!((G=Rt.get(e))!==null&&G!==void 0&&G.length)},X=()=>V()||U(),ce=()=>u,oe=G=>{xr.set(e,G),m&&(clearTimeout(m),m=null);var{selection:K}=e;if(G){var ee=!K||!O.equals(K.anchor.path,G.anchor.path),te=!K||!O.equals(K.anchor.path.slice(0,-1),G.anchor.path.slice(0,-1));(ee&&C||te)&&(C=!1),(ee||U())&&(m=setTimeout(F,fh))}},he=()=>{(V()||!U())&&F()},ge=G=>{U()||(M(!0),setTimeout(M))},ne=()=>{V()||(D=setTimeout(F))},ue=G=>{if(!(U()||V())&&G.some(ee=>Ga(e,ee,G))){var K;(K=Do.get(e))===null||K===void 0||K()}};return{flush:F,scheduleFlush:ne,hasPendingDiffs:U,hasPendingAction:V,hasPendingChanges:X,isFlushing:ce,handleUserSelect:oe,handleCompositionEnd:P,handleCompositionStart:q,handleDOMBeforeInput:j,handleKeyDown:ge,handleDomMutations:ue,handleInput:he}}function ph(){var t=fe.useRef(!1);return fe.useEffect(()=>(t.current=!0,()=>{t.current=!1}),[]),t.current}var b0=tn?fe.useLayoutEffect:fe.useEffect;function gh(t,e,n){var[s]=fe.useState(()=>new MutationObserver(e));b0(()=>{s.takeRecords()}),fe.useEffect(()=>{if(!t.current)throw new Error("Failed to attach MutationObserver, `node` is undefined");return s.observe(t.current,n),()=>s.disconnect()},[s,t,n])}var vh=["node"];function Wu(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter(function(u){return Object.getOwnPropertyDescriptor(t,u).enumerable})),n.push.apply(n,s)}return n}function bh(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Wu(Object(n),!0).forEach(function(s){ir(t,s,n[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Wu(Object(n)).forEach(function(s){Object.defineProperty(t,s,Object.getOwnPropertyDescriptor(n,s))})}return t}var Dh={subtree:!0,childList:!0,characterData:!0},yh=kt?t=>{var{node:e}=t,n=fn(t,vh);if(!kt)return null;var s=Sr(),u=ph(),[f]=fe.useState(()=>mh(bh({editor:s},n)));return gh(e,f.handleDomMutations,Dh),Ya.set(s,f.scheduleFlush),u&&f.flush(),f}:()=>null;function $u(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter(function(u){return Object.getOwnPropertyDescriptor(t,u).enumerable})),n.push.apply(n,s)}return n}function wh(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?$u(Object(n),!0).forEach(function(s){ir(t,s,n[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):$u(Object(n)).forEach(function(s){Object.defineProperty(t,s,Object.getOwnPropertyDescriptor(n,s))})}return t}var Ch=t=>{var{isLast:e,leaf:n,parent:s,text:u}=t,f=Sr(),m=le.findPath(f,u),D=O.parent(m),x=!!n[yo];return f.isVoid(s)?Fe.createElement(wa,{length:ie.string(s).length}):n.text===""&&s.children[s.children.length-1]===u&&!f.isInline(s)&&b.string(f,D)===""?Fe.createElement(wa,{isLineBreak:!0,isMarkPlaceholder:x}):n.text===""?Fe.createElement(wa,{isMarkPlaceholder:x}):e&&n.text.slice(-1)===` 270`?Fe.createElement(Vu,{isTrailing:!0,text:n.text}):Fe.createElement(Vu,{text:n.text})},Vu=t=>{var{text:e,isTrailing:n=!1}=t,s=fe.useRef(null),u=()=>"".concat(e??"").concat(n?` 271`:""),[f]=fe.useState(u);return b0(()=>{var m=u();s.current&&s.current.textContent!==m&&(s.current.textContent=m)}),Fe.createElement(xh,{ref:s},f)},xh=fe.memo(fe.forwardRef((t,e)=>Fe.createElement("span",{"data-slate-string":!0,ref:e},t.children))),wa=t=>{var{length:e=0,isLineBreak:n=!1,isMarkPlaceholder:s=!1}=t,u={"data-slate-zero-width":n?"n":"z","data-slate-length":e};return s&&(u["data-slate-mark-placeholder"]=!0),Fe.createElement("span",wh({},u),!(kt||po)||!n?"\uFEFF":null,n?Fe.createElement("br",null):null)};function Gu(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter(function(u){return Object.getOwnPropertyDescriptor(t,u).enumerable})),n.push.apply(n,s)}return n}function Oo(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};
271e%2?Gu(Object(n),!0).forEach(function(s){ir(t,s,n[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Gu(Object(n)).forEach(function(s){Object.defineProperty(t,s,Object.getOwnPropertyDescriptor(n,s))})}return t}var Bh=kt?300:0;function Ah(t,e){t.current&&(t.current.disconnect(),e&&(t.current=null))}function Uu(t){t.current&&(clearTimeout(t.current),t.current=null)}var Eh=t=>{var{leaf:e,isLast:n,text:s,parent:u,renderPlaceholder:f,renderLeaf:m=j=>Fe.createElement(Fh,Oo({},j))}=t,D=Sr(),x=fe.useRef(null),C=fe.useRef(null),[A,T]=fe.useState(!1),F=fe.useRef(null),P=fe.useCallback(j=>{if(Ah(x,j==null),j==null){var V;Oa.delete(D),(V=e.onPlaceholderResize)===null||V===void 0||V.call(e,null)}else{if(Oa.set(D,j),!x.current){var U=window.ResizeObserver||ih;x.current=new U(()=>{var X;(X=e.onPlaceholderResize)===null||X===void 0||X.call(e,j)})}x.current.observe(j),C.current=j}},[C,e,D]),q=Fe.createElement(Ch,{isLast:n,leaf:e,parent:u,text:s}),M=!!e[Xr];if(fe.useEffect(()=>(M?F.current||(F.current=setTimeout(()=>{T(!0),F.current=null},Bh)):(Uu(F),T(!1)),()=>Uu(F)),[M,T]),M&&A){var p={children:e.placeholder,attributes:{"data-slate-placeholder":!0,style:{position:"absolute",top:0,pointerEvents:"none",width:"100%",maxWidth:"100%",display:"block",opacity:"0.333",userSelect:"none",textDecoration:"none",WebkitUserModify:zr?"inherit":void 0},contentEditable:!1,ref:P}};q=Fe.createElement(Fe.Fragment,null,f(p),q)}var W={"data-slate-leaf":!0};return m({attributes:W,children:q,leaf:e,text:s})},Sh=Fe.memo(Eh,(t,e)=>e.parent===t.parent&&e.isLast===t.isLast&&e.renderLeaf===t.renderLeaf&&e.renderPlaceholder===t.renderPlaceholder&&e.text===t.text&&De.equals(e.leaf,t.leaf)&&e.leaf[Xr]===t.leaf[Xr]),Fh=t=>{var{attributes:e,children:n}=t;return Fe.createElement("span",Oo({},e),n)},kh=t=>{for(var{decorations:e,isLast:n,parent:s,renderPlaceholder:u,renderLeaf:f,text:m}=t,D=Sr(),x=fe.useRef(null),C=De.decorations(m,e),A=le.findKey(D,m),T=[],F=0;F<C.length;F++){var P=C[F];T.push(Fe.createElement(Sh,{isLast:n&&F===C.length-1,key:"".concat(A.id,"-").concat(F),renderPlaceholder:u,leaf:P,text:m,parent:s,renderLeaf:f}))}var q=fe.useCallback(M=>{var p=gn.get(D);M?(p?.set(A,M),Pr.set(m,M),p0.set(M,m)):(p?.delete(A),Pr.delete(m),x.current&&p0.delete(x.current)),x.current=M},[x,D,A,m]);return Fe.createElement("span",{"data-slate-node":"text",ref:q},T)},To=Fe.memo(kh,(t,e)=>e.parent===t.parent&&e.isLast===t.isLast&&e.renderLeaf===t.renderLeaf&&e.renderPlaceholder===t.renderPlaceholder&&e.text===t.text&&L4(e.decorations,t.decorations));function Ku(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter(function(u){return Object.getOwnPropertyDescriptor(t,u).enumerable})),n.push.apply(n,s)}return n}function Ra(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Ku(Object(n),!0).forEach(function(s){ir(t,s,n[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ku(Object(n)).forEach(function(s){Object.defineProperty(t,s,Object.getOwnPropertyDescriptor(n,s))})}return t}var Oh=t=>{var{decorations:e,element:n,renderElement:s=j=>Fe.createElement(Mh,Ra({},j)),renderPlaceholder:u,renderLeaf:f,selection:m}=t,D=Sr(),x=Ph(),C=D.isInline(n),A=le.findKey(D,n),T=fe.useCallback(j=>{var V=gn.get(D);j?(V?.set(A,j),Pr.set(n,j),p0.set(j,n)):(V?.delete(A),Pr.delete(n))},[D,A,n]),F=zo({decorations:e,node:n,renderElement:s,renderPlaceholder:u,renderLeaf:f,selection:m}),P={"data-slate-node":"element",ref:T};if(C&&(P["data-slate-inline"]=!0),!C&&b.hasInlines(D,n)){var q=ie.string(n),M=ro(q);M==="rtl"&&(P.dir=M)}if(b.isVoid(D,n)){P["data-slate-void"]=!0,!x&&C&&(P.contentEditable=!1);var p=C?"span":"div",[[W]]=ie.texts(n);F=Fe.createElement(p,{"data-slate-spacer":!0,style:{height:"0",color:"transparent",outline:"none",position:"absolute"}},Fe.createElement(To,{renderPlaceholder:u,decorations:[],isLast:!1,parent:n,text:W})),Ua.set(W,0),Ka.set(W,n)}return s({attributes:P,children:F,element:n})},Th=Fe.memo(Oh,(t,e)=>t.element===e.element&&t.renderElement===e.renderElement&&t.renderLeaf===e.renderLeaf&&t.renderPlaceholder===e.renderPlaceholder&&q4(t.decorations,e.decorations)&&(t.selection===e.selection||!!t.selection&&!!e.selection&&$.equals(t.selection,e.selection))),Mh=t=>{var{attributes:e,children:n,element:s}=t,u=Sr(),f=u.isInline(s)?"span":"div";return Fe.createElement(f,Ra(Ra({},e),{},{style:{position:"relative"}}
271),n)},Mo=fe.createContext(()=>[]),zh=()=>fe.useContext(Mo),Nh=fe.createContext(!1),zo=t=>{var{decorations:e,node:n,renderElement:s,renderPlaceholder:u,renderLeaf:f,selection:m}=t,D=zh(),x=Sr();Kr.set(x,!1);for(var C=le.findPath(x,n),A=[],T=ye.isElement(n)&&!x.isInline(n)&&b.hasInlines(x,n),F=0;F<n.children.length;F++){var P=C.concat(F),q=n.children[F],M=le.findKey(x,q),p=b.range(x,P),W=m&&$.intersection(p,m),j=D([q,P]);for(var V of e){var U=$.intersection(V,p);U&&j.push(U)}ye.isElement(q)?A.push(Fe.createElement(Nh.Provider,{key:"provider-".concat(M.id),value:!!W},Fe.createElement(Th,{decorations:j,element:q,key:M.id,renderElement:s,renderPlaceholder:u,renderLeaf:f,selection:W}))):A.push(Fe.createElement(To,{decorations:j,key:M.id,isLast:T&&F===n.children.length-1,parent:n,renderPlaceholder:u,renderLeaf:f,text:q})),Ua.set(q,F),Ka.set(q,n)}return A},No=fe.createContext(!1),Ph=()=>fe.useContext(No),Po=fe.createContext(null),Rh=()=>{var t=fe.useContext(Po);if(!t)throw new Error("The `useSlate` hook must be used inside the <Slate> component's context.");var{editor:e}=t;return e};function Ih(){var t=Sr(),e=fe.useRef(!1),n=fe.useRef(0),s=fe.useCallback(()=>{if(!e.current){e.current=!0;var u=le.getWindow(t);u.cancelAnimationFrame(n.current),n.current=u.requestAnimationFrame(()=>{e.current=!1})}},[t]);return fe.useEffect(()=>()=>cancelAnimationFrame(n.current),[]),{receivedUserInput:e,onUserInput:s}}var qh=(t,e)=>{var n=[],s=()=>{n=[]},u=m=>{if(e.current){var D=m.filter(x=>Ga(t,x,m));n.push(...D)}};function f(){n.length>0&&(n.reverse().forEach(m=>{m.type!=="characterData"&&(m.removedNodes.forEach(D=>{m.target.insertBefore(D,m.nextSibling)}),m.addedNodes.forEach(D=>{m.target.removeChild(D)}))}),s())}return{registerMutations:u,restoreDOM:f,clear:s}},Lh={subtree:!0,childList:!0,characterData:!0,characterDataOldValue:!0};class Ro extends fe.Component{constructor(){super(...arguments),ir(this,"context",null),ir(this,"manager",null),ir(this,"mutationObserver",null)}observe(){var e,{node:n}=this.props;if(!n.current)throw new Error("Failed to attach MutationObserver, `node` is undefined");(e=this.mutationObserver)===null||e===void 0||e.observe(n.current,Lh)}componentDidMount(){var{receivedUserInput:e}=this.props,n=this.context;this.manager=qh(n,e),this.mutationObserver=new MutationObserver(this.manager.registerMutations),this.observe()}getSnapshotBeforeUpdate(){var e,n,s,u=(e=this.mutationObserver)===null||e===void 0?void 0:e.takeRecords();if(u!=null&&u.length){var f;(f=this.manager)===null||f===void 0||f.registerMutations(u)}return(n=this.mutationObserver)===null||n===void 0||n.disconnect(),(s=this.manager)===null||s===void 0||s.restoreDOM(),null}componentDidUpdate(){var e;(e=this.manager)===null||e===void 0||e.clear(),this.observe()}componentWillUnmount(){var e;(e=this.mutationObserver)===null||e===void 0||e.disconnect()}render(){return this.props.children}}ir(Ro,"contextType",_a);var jh=kt?Ro:t=>{var{children:e}=t;return Fe.createElement(Fe.Fragment,null,e)},Hh=fe.createContext(!1),Wh=["autoFocus","decorate","onDOMBeforeInput","placeholder","readOnly","renderElement","renderLeaf","renderPlaceholder","scrollSelectionIntoView","style","as","disableDefaultStyles"],$h=["text"];function Yu(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter(function(u){return Object.getOwnPropertyDescriptor(t,u).enumerable})),n.push.apply(n,s)}return n}function ar(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Yu(Object(n),!0).forEach(function(s){ir(t,s,n[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Yu(Object(n)).forEach(function(s){Object.defineProperty(t,s,Object.getOwnPropertyDescriptor(n,s))})}return t}var Vh=t=>Fe.createElement(Fe.Fragment,null,zo(t)),wd=fe.forwardRef((t,e)=>{var n=fe.useCallback(R=>Fe.createElement(Gh,ar({},R)),[]),{autoFocus:s,decorate:u=Uh,onDOMBeforeInput:f,placeholder:m,readOnly:D=!1,renderElement:x,renderLeaf:C,renderPlaceholder:A=n,scrollSelectionIntoView:T=Kh,style:F={},as:P="div",disableDefaultStyles:q=!1}=t,M=fn(t,Wh),p=Rh(),[W,j]=fe.useState(!1),V=fe.useRef(null),U=fe.useRef([]),[X,ce]=fe.useState(),oe=fe.useRef(!1),{onUserInput:he,receivedUserInput:ge}=Ih(),[,ne]=fe.useReducer(R=>R+1,0);Do.set(p,ne),Ta.set(p,D);var ue=fe.useMemo(()=>({isDraggingInternally:!1,isUpdatingSelection:!1,latestElement:null,hasMarkPlaceholder:!1}),[]);fe.useEffect(()=>{V.current&&s&&V.current.focus()},[s]);var G=fe.useRef(),K=fe.useMemo(()=>T1(()=>
271{if(Kr.get(p)){K();return}var R=le.toDOMNode(p,p),de=R.getRootNode();if(!oe.current&&zr&&de instanceof ShadowRoot){oe.current=!0;var Q=c4();Q?document.execCommand("indent"):Z.deselect(p),oe.current=!1;return}var se=G.current;if((kt||!le.isComposing(p))&&(!ue.isUpdatingSelection||se!=null&&se.isFlushing())&&!ue.isDraggingInternally){var Oe=le.findDocumentOrShadowRoot(p),{activeElement:Ce}=Oe,Xe=le.toDOMNode(p,p),Ge=i0(Oe);if(Ce===Xe?(ue.latestElement=Ce,Ar.set(p,!0)):Ar.delete(p),!Ge)return Z.deselect(p);var{anchorNode:Ee,focusNode:Ze}=Ge,et=le.hasEditableTarget(p,Ee)||le.isTargetInsideNonReadonlyVoid(p,Ee),$e=le.hasTarget(p,Ze);if(et&&$e){var Ue=le.toSlateRange(p,Ge,{exactMatch:!1,suppressThrow:!0});Ue&&(!le.isComposing(p)&&!(se!=null&&se.hasPendingChanges())&&!(se!=null&&se.isFlushing())?Z.select(p,Ue):se?.handleUserSelect(Ue))}D&&(!et||!$e)&&Z.deselect(p)}},100),[p,D,ue]),ee=fe.useMemo(()=>F1(K,0),[K]);G.current=yh({node:V,onDOMSelectionChange:K,scheduleOnDOMSelectionChange:ee}),b0(()=>{var R,de,Q;V.current&&(Q=Va(V.current))?(bo.set(p,Q),rn.set(p,V.current),Pr.set(p,V.current),p0.set(V.current,p)):Pr.delete(p);var{selection:se}=p,Oe=le.findDocumentOrShadowRoot(p),Ce=i0(Oe);if(!(!Ce||!le.isFocused(p)||(R=G.current)!==null&&R!==void 0&&R.hasPendingAction())){var Xe=et=>{var $e=Ce.type!=="None";if(!(!se&&!$e)){var Ue=Ce.focusNode,vt;if(Ur&&Ce.rangeCount>1){var Ct=Ce.getRangeAt(0),Tt=Ce.getRangeAt(Ce.rangeCount-1);Ct.startContainer===Ue?vt=Tt.endContainer:vt=Ct.startContainer}else vt=Ce.anchorNode;var _e=rn.get(p),It=!1;if(_e.contains(vt)&&_e.contains(Ue)&&(It=!0),$e&&It&&se&&!et){var qt=le.toSlateRange(p,Ce,{exactMatch:!0,suppressThrow:!0});if(qt&&$.equals(qt,se)){var Ke;if(!ue.hasMarkPlaceholder||(Ke=vt)!==null&&Ke!==void 0&&(Ke=Ke.parentElement)!==null&&Ke!==void 0&&Ke.hasAttribute("data-slate-mark-placeholder"))return}}if(se&&!le.hasRange(p,se)){p.selection=le.toSlateRange(p,Ce,{exactMatch:!1,suppressThrow:!0});return}ue.isUpdatingSelection=!0;var Qe=null;try{Qe=se&&le.toDOMRange(p,se)}catch{}return Qe?(le.isComposing(p)&&!kt?Ce.collapseToEnd():$.isBackward(se)?Ce.setBaseAndExtent(Qe.endContainer,Qe.endOffset,Qe.startContainer,Qe.startOffset):Ce.setBaseAndExtent(Qe.startContainer,Qe.startOffset,Qe.endContainer,Qe.endOffset),T(p,Qe)):Ce.removeAllRanges(),Qe}};Ce.rangeCount<=1&&Xe();var Ge=((de=G.current)===null||de===void 0?void 0:de.isFlushing())==="action";if(!kt||!Ge){setTimeout(()=>{ue.isUpdatingSelection=!1});return}var Ee=null,Ze=requestAnimationFrame(()=>{if(Ge){var et=$e=>{try{var Ue=le.toDOMNode(p,p);Ue.focus(),Xe($e)}catch{}};et(),Ee=setTimeout(()=>{et(!0),ue.isUpdatingSelection=!1})}});return()=>{cancelAnimationFrame(Ze),Ee&&clearTimeout(Ee)}}});var te=fe.useCallback(R=>{var de=le.toDOMNode(p,p),Q=de.getRootNode();if(oe!=null&&oe.current&&zr&&Q instanceof ShadowRoot){var se=R.getTargetRanges(),Oe=se[0],Ce=new window.Range;Ce.setStart(Oe.startContainer,Oe.startOffset),Ce.setEnd(Oe.endContainer,Oe.endOffset);var Xe=le.toSlateRange(p,Ce,{exactMatch:!1,suppressThrow:!1});Z.select(p,Xe),R.preventDefault(),R.stopImmediatePropagation();return}if(he(),!D&&le.hasEditableTarget(p,R.target)&&!Yh(R,f)){var Ge;if(G.current)return G.current.handleDOMBeforeInput(R);ee.flush(),K.flush();var{selection:Ee}=p,{inputType:Ze}=R,et=R.dataTransfer||R.data||void 0,$e=Ze==="insertCompositionText"||Ze==="deleteCompositionText";if($e&&le.isComposing(p))return;var Ue=!1;if(Ze==="insertText"&&Ee&&$.isCollapsed(Ee)&&R.data&&R.data.length===1&&/[a-z ]/i.test(R.data)&&Ee.anchor.offset!==0&&(Ue=!0,p.marks&&(Ue=!1),!Kr.get(p))){var vt,Ct,{anchor:Tt}=Ee,[_e,It]=le.toDOMPoint(p,Tt),qt=(vt=_e.parentElement)===null||vt===void 0?void 0:vt.closest("a"),Ke=le.getWindow(p);if(Ue&&qt&&le.hasDOMNode(p,qt)){var Qe,yt=Ke?.document.createTreeWalker(qt,NodeFilter.SHOW_TEXT).lastChild();yt===_e&&((Qe=yt.textContent)===null||Qe===void 0?void 0:Qe.length)===It&&(Ue=!1)}if(Ue&&_e.parentElement&&(Ke==null||(Ct=Ke.getComputedStyle(_e.parentElement))===null||Ct===void 0?void 0:Ct.whiteSpace)==="pre"){var Bt=b.above(p,{at:Tt.path,match:At=>ye.isElement(At)&&b.isBlock(p,At)});Bt&&ie.string(Bt[0]).includes(" ")&&(Ue=!1)}}if((!Ze.startsWith("delete")||Ze.startsWith("deleteBy"))&&!Kr.get(p)){var[Mt]=R.getTargetRanges();if(Mt){var ur=le.toSlateRange(p,Mt,{exactMatch:!1,suppressThrow:!1});if(!Ee||!$.equals(Ee,ur)){Ue=!1;var Lt=!$e&&p.selection&&b.rangeRef(p,p.selection);Z.select(p,ur),Lt&&u0.set(p,Lt)}}}if($e)return;if(Ue||R.preventDefault(),Ee&&$.isExpanded(Ee)&&Ze.startsWith("delete")){var tt=Ze.endsWith("Backward")?"backward":"forward";b.deleteFragment(p,{direction:tt});return}switch(Ze){case"deleteByComposition":case"deleteByCut":case"deleteByDrag":{b.deleteFragment(p);break}case"deleteContent":case"deleteContentForward":{b.deleteForward(p);break}case"deleteContentBackward":{b.deleteBackward(p);break}case"deleteEntireSoftLine":{b.deleteBackward(p,{unit:"line"}),b.deleteForward(p,{unit:"line"});break}case"deleteHardLineBackward":{b.deleteBackward(p,{unit:"block"});break}case"deleteSoftLineBackward":{b.deleteBackward(p,{unit:"line"});break}case"deleteHardLineForward":{b.deleteForward(p,{unit:"block"});break}case"deleteSoftLineForward":{b.deleteForward(p,{unit:"line"});break}case"deleteWordBackward":{b.deleteBackward(p,{unit:"word"});break}
271case"deleteWordForward":{b.deleteForward(p,{unit:"word"});break}case"insertLineBreak":b.insertSoftBreak(p);break;case"insertParagraph":{b.insertBreak(p);break}case"insertFromComposition":case"insertFromDrop":case"insertFromPaste":case"insertFromYank":case"insertReplacementText":case"insertText":{Ze==="insertFromComposition"&&le.isComposing(p)&&(j(!1),Nr.set(p,!1)),et?.constructor.name==="DataTransfer"?le.insertData(p,et):typeof et=="string"&&(Ue?U.current.push(()=>b.insertText(p,et)):b.insertText(p,et));break}}var re=(Ge=u0.get(p))===null||Ge===void 0?void 0:Ge.unref();u0.delete(p),re&&(!p.selection||!$.equals(p.selection,re))&&Z.select(p,re)}},[p,K,he,f,D,ee]),Me=fe.useCallback(R=>{R==null?(K.cancel(),ee.cancel(),rn.delete(p),Pr.delete(p),V.current&&wr&&V.current.removeEventListener("beforeinput",te)):wr&&R.addEventListener("beforeinput",te),V.current=R,typeof e=="function"?e(R):e&&(e.current=R)},[K,ee,p,te,e]);b0(()=>{var R=le.getWindow(p),de=se=>{var{target:Oe}=se,Ce=Oe instanceof HTMLElement?Oe:null,Xe=Ce?.tagName;Xe==="INPUT"||Xe==="TEXTAREA"||ee()};R.document.addEventListener("selectionchange",de);var Q=()=>{ue.isDraggingInternally=!1};return R.document.addEventListener("dragend",Q),R.document.addEventListener("drop",Q),()=>{R.document.removeEventListener("selectionchange",de),R.document.removeEventListener("dragend",Q),R.document.removeEventListener("drop",Q)}},[ee,ue]);var be=u([p,[]]),He=m&&p.children.length===1&&Array.from(ie.texts(p)).length===1&&ie.string(p)===""&&!W,ze=fe.useCallback(R=>{if(R&&He){var de;ce((de=R.getBoundingClientRect())===null||de===void 0?void 0:de.height)}else ce(void 0)},[He]);if(He){var ae=b.start(p,[]);be.push({[Xr]:!0,placeholder:m,onPlaceholderResize:ze,anchor:ae,focus:ae})}var{marks:We}=p;if(ue.hasMarkPlaceholder=!1,p.selection&&$.isCollapsed(p.selection)&&We){var{anchor:Ve}=p.selection,ke=ie.leaf(p,Ve.path),pt=fn(ke,$h);if(!De.equals(ke,We,{loose:!0})){ue.hasMarkPlaceholder=!0;var Be=Object.fromEntries(Object.keys(pt).map(R=>[R,null]));be.push(ar(ar(ar({[yo]:!0},Be),We),{},{anchor:Ve,focus:Ve}))}}return fe.useEffect(()=>{setTimeout(()=>{var{selection:R}=p;if(R){var{anchor:de}=R,Q=ie.leaf(p,de.path);if(We&&!De.equals(Q,We,{loose:!0})){Jt.set(p,We);return}}Jt.delete(p)})}),Fe.createElement(No.Provider,{value:D},Fe.createElement(Hh.Provider,{value:W},Fe.createElement(Mo.Provider,{value:u},Fe.createElement(jh,{node:V,receivedUserInput:ge},Fe.createElement(P,ar(ar({role:D?void 0:"textbox","aria-multiline":D?void 0:!0},M),{},{spellCheck:wr||!tn?M.spellCheck:!1,autoCorrect:wr||!tn?M.autoCorrect:"false",autoCapitalize:wr||!tn?M.autoCapitalize:"false","data-slate-editor":!0,"data-slate-node":"value",contentEditable:!D,zindex:-1,suppressContentEditableWarning:!0,ref:Me,style:ar(ar({},q?{}:ar({position:"relative",whiteSpace:"pre-wrap",wordWrap:"break-word"},X?{minHeight:X}:{})),F),onBeforeInput:fe.useCallback(R=>{if(!wr&&!D&&!Ft(R,M.onBeforeInput)&&le.hasSelectableTarget(p,R.target)&&(R.preventDefault(),!le.isComposing(p))){var de=R.data;b.insertText(p,de)}},[M.onBeforeInput,p,D]),onInput:fe.useCallback(R=>{if(!Ft(R,M.onInput)){if(G.current){G.current.handleInput();return}for(var de of U.current)de();if(U.current=[],!le.isFocused(p)){var Q=R.nativeEvent,se=p;if(Q.inputType==="historyUndo"&&typeof se.undo=="function"){se.undo();return}if(Q.inputType==="historyRedo"&&typeof se.redo=="function"){se.redo();return}}}},[M.onInput,p]),onBlur:fe.useCallback(R=>{if(!(D||ue.isUpdatingSelection||!le.hasSelectableTarget(p,R.target)||Ft(R,M.onBlur))){var de=le.findDocumentOrShadowRoot(p);if(ue.latestElement!==de.activeElement){var{relatedTarget:Q}=R,se=le.toDOMNode(p,p);if(Q!==se&&!(Yt(Q)&&Q.hasAttribute("data-slate-spacer"))){if(Q!=null&&Er(Q)&&le.hasDOMNode(p,Q)){var Oe=le.toSlateNode(p,Q);if(ye.isElement(Oe)&&!p.isVoid(Oe))return}if(zr){var Ce=i0(de);Ce?.removeAllRanges()}Ar.delete(p)}}}},[D,ue.isUpdatingSelection,ue.latestElement,p,M.onBlur]),onClick:fe.useCallback(R=>{if(le.hasTarget(p,R.target)&&!Ft(R,M.onClick)&&Er(R.target)){var de=le.toSlateNode(p,R.target),Q=le.findPath(p,de);if(!b.hasPath(p,Q)||ie.get(p,Q)!==de)return;if(R.detail===O4&&Q.length>=1){var se=Q;if(!(ye.isElement(de)&&b.isBlock(p,de))){var Oe,Ce=b.above(p,{match:Ue=>ye.isElement(Ue)&&b.isBlock(p,Ue),at:Q});se=(Oe=Ce?.[1])!==null&&Oe!==void 0?Oe:Q.slice(0,1)}var Xe=b.range(p,se);Z.select(p,Xe);return}if(D)return;var Ge=b.start(p,Q),Ee=b.end(p,Q),Ze=b.void(p,{at:Ge}),et=b.void(p,{at:Ee});
271if(Ze&&et&&O.equals(Ze[1],et[1])){var $e=b.range(p,Ge);Z.select(p,$e)}}},[p,M.onClick,D]),onCompositionEnd:fe.useCallback(R=>{if(le.hasSelectableTarget(p,R.target)){var de;if(le.isComposing(p)&&Promise.resolve().then(()=>{j(!1),Nr.set(p,!1)}),(de=G.current)===null||de===void 0||de.handleCompositionEnd(R),Ft(R,M.onCompositionEnd)||kt)return;if(!zr&&!p4&&!po&&!v4&&!g4&&R.data){var Q=Jt.get(p);Jt.delete(p),Q!==void 0&&(pr.set(p,p.marks),p.marks=Q),b.insertText(p,R.data);var se=pr.get(p);pr.delete(p),se!==void 0&&(p.marks=se)}}},[M.onCompositionEnd,p]),onCompositionUpdate:fe.useCallback(R=>{le.hasSelectableTarget(p,R.target)&&!Ft(R,M.onCompositionUpdate)&&(le.isComposing(p)||(j(!0),Nr.set(p,!0)))},[M.onCompositionUpdate,p]),onCompositionStart:fe.useCallback(R=>{if(le.hasSelectableTarget(p,R.target)){var de;if((de=G.current)===null||de===void 0||de.handleCompositionStart(R),Ft(R,M.onCompositionStart)||kt)return;j(!0);var{selection:Q}=p;if(Q&&$.isExpanded(Q)){b.deleteFragment(p);return}}},[M.onCompositionStart,p]),onCopy:fe.useCallback(R=>{le.hasSelectableTarget(p,R.target)&&!Ft(R,M.onCopy)&&!Xu(R)&&(R.preventDefault(),le.setFragmentData(p,R.clipboardData,"copy"))},[M.onCopy,p]),onCut:fe.useCallback(R=>{if(!D&&le.hasSelectableTarget(p,R.target)&&!Ft(R,M.onCut)&&!Xu(R)){R.preventDefault(),le.setFragmentData(p,R.clipboardData,"cut");var{selection:de}=p;if(de)if($.isExpanded(de))b.deleteFragment(p);else{var Q=ie.parent(p,de.anchor.path);b.isVoid(p,Q)&&Z.delete(p)}}},[D,p,M.onCut]),onDragOver:fe.useCallback(R=>{if(le.hasTarget(p,R.target)&&!Ft(R,M.onDragOver)){var de=le.toSlateNode(p,R.target);ye.isElement(de)&&b.isVoid(p,de)&&R.preventDefault()}},[M.onDragOver,p]),onDragStart:fe.useCallback(R=>{if(!D&&le.hasTarget(p,R.target)&&!Ft(R,M.onDragStart)){var de=le.toSlateNode(p,R.target),Q=le.findPath(p,de),se=ye.isElement(de)&&b.isVoid(p,de)||b.void(p,{at:Q,voids:!0});if(se){var Oe=b.range(p,Q);Z.select(p,Oe)}ue.isDraggingInternally=!0,le.setFragmentData(p,R.dataTransfer,"drag")}},[D,p,M.onDragStart,ue]),onDrop:fe.useCallback(R=>{if(!D&&le.hasTarget(p,R.target)&&!Ft(R,M.onDrop)){R.preventDefault();var de=p.selection,Q=le.findEventRange(p,R),se=R.dataTransfer;Z.select(p,Q),ue.isDraggingInternally&&de&&!$.equals(de,Q)&&!b.void(p,{at:Q,voids:!0})&&Z.delete(p,{at:de}),le.insertData(p,se),le.isFocused(p)||le.focus(p)}},[D,p,M.onDrop,ue]),onDragEnd:fe.useCallback(R=>{!D&&ue.isDraggingInternally&&M.onDragEnd&&le.hasTarget(p,R.target)&&M.onDragEnd(R)},[D,ue,M,p]),onFocus:fe.useCallback(R=>{if(!D&&!ue.isUpdatingSelection&&le.hasEditableTarget(p,R.target)&&!Ft(R,M.onFocus)){var de=le.toDOMNode(p,p),Q=le.findDocumentOrShadowRoot(p);if(ue.latestElement=Q.activeElement,Ur&&R.target!==de){de.focus();return}Ar.set(p,!0)}},[D,ue,p,M.onFocus]),onKeyDown:fe.useCallback(R=>{if(!D&&le.hasEditableTarget(p,R.target)){var de;(de=G.current)===null||de===void 0||de.handleKeyDown(R);var{nativeEvent:Q}=R;if(le.isComposing(p)&&Q.isComposing===!1&&(Nr.set(p,!1),j(!1)),Ft(R,M.onKeyDown)||le.isComposing(p))return;var{selection:se}
271=p,Oe=p.children[se!==null?se.focus.path[0]:0],Ce=ro(ie.string(Oe))==="rtl";if(ht.isRedo(Q)){R.preventDefault();var Xe=p;typeof Xe.redo=="function"&&Xe.redo();return}if(ht.isUndo(Q)){R.preventDefault();var Ge=p;typeof Ge.undo=="function"&&Ge.undo();return}if(ht.isMoveLineBackward(Q)){R.preventDefault(),Z.move(p,{unit:"line",reverse:!0});return}if(ht.isMoveLineForward(Q)){R.preventDefault(),Z.move(p,{unit:"line"});return}if(ht.isExtendLineBackward(Q)){R.preventDefault(),Z.move(p,{unit:"line",edge:"focus",reverse:!0});return}if(ht.isExtendLineForward(Q)){R.preventDefault(),Z.move(p,{unit:"line",edge:"focus"});return}if(ht.isMoveBackward(Q)){R.preventDefault(),se&&$.isCollapsed(se)?Z.move(p,{reverse:!Ce}):Z.collapse(p,{edge:Ce?"end":"start"});return}if(ht.isMoveForward(Q)){R.preventDefault(),se&&$.isCollapsed(se)?Z.move(p,{reverse:Ce}):Z.collapse(p,{edge:Ce?"start":"end"});return}if(ht.isMoveWordBackward(Q)){R.preventDefault(),se&&$.isExpanded(se)&&Z.collapse(p,{edge:"focus"}),Z.move(p,{unit:"word",reverse:!Ce});return}if(ht.isMoveWordForward(Q)){R.preventDefault(),se&&$.isExpanded(se)&&Z.collapse(p,{edge:"focus"}),Z.move(p,{unit:"word",reverse:Ce});return}if(wr){if((go||zr)&&se&&(ht.isDeleteBackward(Q)||ht.isDeleteForward(Q))&&$.isCollapsed(se)){var Ee=ie.parent(p,se.anchor.path);if(ye.isElement(Ee)&&b.isVoid(p,Ee)&&(b.isInline(p,Ee)||b.isBlock(p,Ee))){R.preventDefault(),b.deleteBackward(p,{unit:"block"});return}}}else{if(ht.isBold(Q)||ht.isItalic(Q)||ht.isTransposeCharacter(Q)){R.preventDefault();return}if(ht.isSoftBreak(Q)){R.preventDefault(),b.insertSoftBreak(p);return}if(ht.isSplitBlock(Q)){R.preventDefault(),b.insertBreak(p);return}if(ht.isDeleteBackward(Q)){R.preventDefault(),se&&$.isExpanded(se)?b.deleteFragment(p,{direction:"backward"}):b.deleteBackward(p);return}if(ht.isDeleteForward(Q)){R.preventDefault(),se&&$.isExpanded(se)?b.deleteFragment(p,{direction:"forward"}):b.deleteForward(p);return}if(ht.isDeleteLineBackward(Q)){R.preventDefault(),se&&$.isExpanded(se)?b.deleteFragment(p,{direction:"backward"}):b.deleteBackward(p,{unit:"line"});return}if(ht.isDeleteLineForward(Q)){R.preventDefault(),se&&$.isExpanded(se)?b.deleteFragment(p,{direction:"forward"}):b.deleteForward(p,{unit:"line"});return}if(ht.isDeleteWordBackward(Q)){R.preventDefault(),se&&$.isExpanded(se)?b.deleteFragment(p,{direction:"backward"}):b.deleteBackward(p,{unit:"word"});return}if(ht.isDeleteWordForward(Q)){R.preventDefault(),se&&$.isExpanded(se)?b.deleteFragment(p,{direction:"forward"}):b.deleteForward(p,{unit:"word"});return}}}},[D,p,M.onKeyDown]),onPaste:fe.useCallback(R=>{!D&&le.hasEditableTarget(p,R.target)&&!Ft(R,M.onPaste)&&(!wr||a4(R.nativeEvent)||zr)&&(R.preventDefault(),le.insertData(p,R.clipboardData))},[D,p,M.onPaste])}),Fe.createElement(Vh,{decorations:be,node:p,renderElement:x,renderPlaceholder:A,renderLeaf:C,selection:p.selection}))))))}),Gh=t=>{var{attributes:e,children:n}=t;return Fe.createElement("span",ar({},e),n,kt&&Fe.createElement("br",null))},Uh=()=>[],Kh=(t,e)=>{if(e.getBoundingClientRect&&(!t.selection||t.selection&&$.isCollapsed(t.selection))){var n=e.startContainer.parentElement;n.getBoundingClientRect=e.getBoundingClientRect.bind(e),N1(n,{scrollMode:"if-needed"}),delete n.getBoundingClientRect}},Ft=(t,e)=>{if(!e)return!1;var n=e(t);return n??(t.isDefaultPrevented()||t.isPropagationStopped())},Xu=t=>Er(t.target)&&(t.target instanceof HTMLInputElement||t.target instanceof HTMLTextAreaElement),Yh=(t,e)=>{if(!e)return!1;var n=e(t);return n??t.defaultPrevented},Xh=fe.createContext(!1),_h=fe.createContext({});function Zh(t){var e=fe.useRef([]).current,n=fe.useRef({editor:t}).current,s=fe.useCallback(f=>{n.editor=f,e.forEach(m=>m(f))},[e,n]),u=fe.useMemo(()=>({getSlate:()=>n.editor,addEventListener:f=>(e.push(f),()=>{e.splice(e.indexOf(f),1)})}),[e,n]);return{selectorContext:u,onChange:s}}var Io=parseInt(Fe.version.split(".")[0],10),Jh=["editor","children","onChange","onSelectionChange","onValueChange","initialValue"],Cd=t=>{var{editor:e,children:n,onChange:s,onSelectionChange:u,onValueChange:f,initialValue:m}=t,D=fn(t,Jh),[x,C]=Fe.useState(()=>{if(!ie.isNodeList(m))throw new Error("[Slate] initialValue is invali
271d! Expected a list of elements but got: ".concat(wt.stringify(m)));if(!b.isEditor(e))throw new Error("[Slate] editor is invalid! You passed: ".concat(wt.stringify(e)));return e.children=m,Object.assign(e,D),{v:0,editor:e}}),{selectorContext:A,onChange:T}=Zh(e),F=fe.useCallback(M=>{var p;switch(s&&s(e.children),M==null||(p=M.operation)===null||p===void 0?void 0:p.type){case"set_selection":u?.(e.selection);break;default:f?.(e.children)}C(W=>({v:W.v+1,editor:e})),T(e)},[e,T,s,u,f]);fe.useEffect(()=>(Ma.set(e,F),()=>{Ma.set(e,()=>{})}),[e,F]);var[P,q]=fe.useState(le.isFocused(e));return fe.useEffect(()=>{q(le.isFocused(e))},[e]),b0(()=>{var M=()=>q(le.isFocused(e));return Io>=17?(document.addEventListener("focusin",M),document.addEventListener("focusout",M),()=>{document.removeEventListener("focusin",M),document.removeEventListener("focusout",M)}):(document.addEventListener("focus",M,!0),document.addEventListener("blur",M,!0),()=>{document.removeEventListener("focus",M,!0),document.removeEventListener("blur",M,!0)})},[]),Fe.createElement(_h.Provider,{value:A},Fe.createElement(Po.Provider,{value:x},Fe.createElement(_a.Provider,{value:x.editor},Fe.createElement(Xh.Provider,{value:P},n))))},xd=function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"x-slate-fragment",s=e;s=k4(s,n);var{onChange:u}=s;return s.onChange=f=>{var m=Io<18?Ql.unstable_batchedUpdates:D=>D();m(()=>{u(f)})},s},Qh={isHistory(t){return xt(t)&&Array.isArray(t.redos)&&Array.isArray(t.undos)&&(t.redos.length===0||Br.isOperationList(t.redos[0].operations))&&(t.undos.length===0||Br.isOperationList(t.undos[0].operations))}},Ca=new WeakMap,Tr=new WeakMap,Z0=new WeakMap,sr={isHistoryEditor(t){return Qh.isHistory(t.history)&&b.isEditor(t)},isMerging(t){return Tr.get(t)},isSplittingOnce(t){return Z0.get(t)},setSplittingOnce(t,e){Z0.set(t,e)},isSaving(t){return Ca.get(t)},redo(t){t.redo()},undo(t){t.undo()},withMerging(t,e){var n=sr.isMerging(t);Tr.set(t,!0),e(),Tr.set(t,n)},withNewBatch(t,e){var n=sr.isMerging(t);Tr.set(t,!0),Z0.set(t,!0),e(),Tr.set(t,n),Z0.delete(t)},withoutMerging(t,e){var n=sr.isMerging(t);Tr.set(t,!1),e(),Tr.set(t,n)},withoutSaving(t,e){var n=sr.isSaving(t);Ca.set(t,!1),e(),Ca.set(t,n)}},Bd=t=>{var e=t,{apply:n}=e;return e.history={undos:[],redos:[]},e.redo=()=>{var{history:s}=e,{redos:u}=s;if(u.length>0){var f=u[u.length-1];f.selectionBefore&&Z.setSelection(e,f.selectionBefore),sr.withoutSaving(e,()=>{b.withoutNormalizing(e,()=>{for(var m of f.operations)e.apply(m)})}),s.redos.pop(),e.writeHistory("undos",f)}},e.undo=()=>{var{history:s}=e,{undos:u}=s;if(u.length>0){var f=u[u.length-1];sr.withoutSaving(e,()=>{b.withoutNormalizing(e,()=>{var m=f.operations.map(Br.inverse).reverse();for(var D of m)e.apply(D);f.selectionBefore&&Z.setSelection(e,f.selectionBefore)})}),e.writeHistory("redos",f),s.undos.pop()}},e.apply=s=>{var{operations:u,history:f}=e,{undos:m}=f,D=m[m.length-1],x=D&&D.operations[D.operations.length-1],C=sr.isSaving(e),A=sr.isMerging(e);if(C==null&&(C=td(s)),C){if(A==null&&(D==null?A=!1:u.length!==0?A=!0:A=ed(s,x)),sr.isSplittingOnce(e)&&(A=!1,sr.setSplittingOnce(e,void 0)),D&&A)D.operations.push(s);else{var T={operations:[s],selectionBefore:e.selection};e.writeHistory("undos",T)}for(;m.length>100;)m.shift();f.redos=[]}n(s)},e.writeHistory=(s,u)=>{e.history[s].push(u)},e},ed=(t,e)=>!!(e&&t.type==="insert_text"&&e.type==="insert_text"&&t.offset===e.offset+e.text.length&&O.equals(t.path,e.path)||e&&t.type==="remove_text"&&e.type==="remove_text"&&t.offset+t.text.length===e.offset&&O.equals(t.path,e.path)),td=(t,e)=>t.type!=="set_selection";export{b as E,Cd as S,De as T,xd as a,wd as b,yd as c,Z as d,ye as e,x1 as f,ja as g,no as h,Dd as i,ao as j,B1 as k,v1 as l,E1 as m,bd as n,A1 as r,T1 as t,Rh as u,Bd as w};
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.